@codragraph/cli 2.1.6 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/dist/cli/graphpack.d.ts +48 -0
- package/dist/cli/graphpack.js +217 -0
- package/dist/cli/index.js +72 -0
- package/dist/cli/tool.d.ts +1 -0
- package/dist/cli/tool.js +111 -2
- package/dist/core/graphpack/index.d.ts +14 -0
- package/dist/core/graphpack/index.js +474 -0
- package/dist/core/graphpack/types.d.ts +129 -0
- package/dist/core/graphpack/types.js +4 -0
- package/dist/core/semantic/relationships.d.ts +36 -0
- package/dist/core/semantic/relationships.js +261 -0
- package/dist/mcp/local/local-backend.js +42 -0
- package/dist/mcp/resources.js +125 -0
- package/dist/mcp/tools.js +105 -0
- package/dist/server/api.js +112 -0
- package/dist/web/assets/agent-CQNZQ-hg.js +1139 -0
- package/dist/web/assets/{architectureDiagram-UL44E2DR-DFSpa3Hb.js → architectureDiagram-UL44E2DR-B5_goS_i.js} +1 -1
- package/dist/web/assets/{blockDiagram-7IZFK4PR-DlFaxH1b.js → blockDiagram-7IZFK4PR-D7ZAlDyv.js} +1 -1
- package/dist/web/assets/{c4Diagram-Y2BXMSZH-BjJ_Yrim.js → c4Diagram-Y2BXMSZH-Djcgm_54.js} +1 -1
- package/dist/web/assets/{chunk-3SSMPTDK-KGZSzG3Y.js → chunk-3SSMPTDK-Cv2Zy2FO.js} +1 -1
- package/dist/web/assets/{chunk-6764PJDD-p1sGJgVm.js → chunk-6764PJDD-Cppb-jH-.js} +1 -1
- package/dist/web/assets/{chunk-AZZRMDJM-DIDkQA4V.js → chunk-AZZRMDJM-BHlLC7p3.js} +1 -1
- package/dist/web/assets/{chunk-JQRUD6KW-DAwg-yCU.js → chunk-JQRUD6KW-3F8Zg-1N.js} +1 -1
- package/dist/web/assets/{chunk-KRXBNO2N-ChVO_XdS.js → chunk-KRXBNO2N-C0mbN9a7.js} +1 -1
- package/dist/web/assets/{chunk-LCXTWHL2-DGYdb_Eh.js → chunk-LCXTWHL2-BoiuJpIF.js} +1 -1
- package/dist/web/assets/{chunk-LII3EMHJ-Bzh9SNgD.js → chunk-LII3EMHJ-Dqq0Qguw.js} +1 -1
- package/dist/web/assets/{chunk-RG4AUYOV-Bcl7U_IV.js → chunk-RG4AUYOV-Bl5F_gDs.js} +1 -1
- package/dist/web/assets/{chunk-T5OCTHI4-CZYMg5sc.js → chunk-T5OCTHI4-B2tIcggA.js} +1 -1
- package/dist/web/assets/{chunk-W44A43WB-REOI67PN.js → chunk-W44A43WB-BHe37iN7.js} +1 -1
- package/dist/web/assets/{chunk-ZXARS5L4-BfFdV1tf.js → chunk-ZXARS5L4-wcrIaQvY.js} +1 -1
- package/dist/web/assets/classDiagram-KGZ6W3CR-IbI6v_24.js +1 -0
- package/dist/web/assets/classDiagram-v2-72OJOZXJ-IbI6v_24.js +1 -0
- package/dist/web/assets/{cose-bilkent-UX7MHV2Q-D6vANJGG.js → cose-bilkent-UX7MHV2Q-BWr7v0Wr.js} +1 -1
- package/dist/web/assets/{dagre-ND4H6XIP-BiHe5Lal.js → dagre-ND4H6XIP-De5LIh1B.js} +1 -1
- package/dist/web/assets/{diagram-3NCE3AQN-CEutBCOW.js → diagram-3NCE3AQN-Dd22FSHy.js} +1 -1
- package/dist/web/assets/{diagram-GF46GFSD-CZns6HPQ.js → diagram-GF46GFSD-Cev3THY8.js} +1 -1
- package/dist/web/assets/{diagram-HNR7UZ2L-Vz8fE5of.js → diagram-HNR7UZ2L-D8Z8RQGs.js} +1 -1
- package/dist/web/assets/{diagram-QXG6HAR7-D60HKZ_y.js → diagram-QXG6HAR7-B8VOJOiE.js} +1 -1
- package/dist/web/assets/{diagram-WEQXMOUZ-vGAf1p3E.js → diagram-WEQXMOUZ-va1bLoMD.js} +1 -1
- package/dist/web/assets/{erDiagram-L5TCEMPS-DZaplJA6.js → erDiagram-L5TCEMPS-B3_9uAoP.js} +1 -1
- package/dist/web/assets/{flowDiagram-H6V6AXG4-BqUqeAsI.js → flowDiagram-H6V6AXG4-98m6maI1.js} +1 -1
- package/dist/web/assets/{ganttDiagram-JCBTUEKG-XEB6H-0G.js → ganttDiagram-JCBTUEKG-vE2nzETb.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-S2ZK5IYY-7G50u1Cd.js → gitGraphDiagram-S2ZK5IYY-DKc8uUg_.js} +1 -1
- package/dist/web/assets/index-BAhe1HSk.css +1 -0
- package/dist/web/assets/{index-B5WxtMpv.js → index-VTKdaklA.js} +230 -230
- package/dist/web/assets/{infoDiagram-3YFTVSEB-Cut_rzaf.js → infoDiagram-3YFTVSEB-DYP-Srzx.js} +1 -1
- package/dist/web/assets/{ishikawaDiagram-BNXS4ZKH-B4DGfGi3.js → ishikawaDiagram-BNXS4ZKH-QZnkpmmb.js} +1 -1
- package/dist/web/assets/{journeyDiagram-M6C3CM3L-BBFhsL3E.js → journeyDiagram-M6C3CM3L-B5ojIuqu.js} +1 -1
- package/dist/web/assets/{kanban-definition-75IXJCU3-DarGRyn3.js → kanban-definition-75IXJCU3-BJA8liRR.js} +1 -1
- package/dist/web/assets/{katex-K3KEBU37-W5XTYMhr.js → katex-K3KEBU37-DUqZiCRL.js} +1 -1
- package/dist/web/assets/{mindmap-definition-2TDM6QVE-BgeczIJM.js → mindmap-definition-2TDM6QVE-BQj5yylD.js} +1 -1
- package/dist/web/assets/{pieDiagram-CU6KROY3-Kkoo-Noq.js → pieDiagram-CU6KROY3-4eSrPiQz.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-VICAPDV7-CDQFeRWN.js → quadrantDiagram-VICAPDV7-PzxN8j55.js} +1 -1
- package/dist/web/assets/{requirementDiagram-JXO7QTGE-Cz9-XnkA.js → requirementDiagram-JXO7QTGE-CtplTc5y.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-URQDO5SZ-CU26z0n7.js → sankeyDiagram-URQDO5SZ-CoSgvkxv.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-VS2MUI6T-OGK1FLOt.js → sequenceDiagram-VS2MUI6T-D7ygyXvJ.js} +1 -1
- package/dist/web/assets/{stateDiagram-7D4R322I-DJ9brq0U.js → stateDiagram-7D4R322I-v01gvwji.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-36443NZ5-DFD2b8_x.js +1 -0
- package/dist/web/assets/{timeline-definition-O6YCAMPW-XZvnjqTT.js → timeline-definition-O6YCAMPW-CTI3M65J.js} +1 -1
- package/dist/web/assets/{vennDiagram-MWXL3ELB-CJUssEjA.js → vennDiagram-MWXL3ELB-RnB0XMP7.js} +1 -1
- package/dist/web/assets/{wardley-L42UT6IY-5TKZOOLJ-DZr11zBG.js → wardley-L42UT6IY-5TKZOOLJ-C-ZcgEBb.js} +1 -1
- package/dist/web/assets/{wardleyDiagram-CUQ6CDDI-C276iqrN.js → wardleyDiagram-CUQ6CDDI-EwRi4kwo.js} +1 -1
- package/dist/web/assets/{xychartDiagram-N2JHSOCM-B9-uCZyP.js → xychartDiagram-N2JHSOCM-DA38II6y.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +2 -2
- package/dist/web/assets/__vite-browser-external-BIHI7g3E.js +0 -1
- package/dist/web/assets/agent-DcdaQnmu.js +0 -1104
- package/dist/web/assets/classDiagram-KGZ6W3CR-B-qkKMYi.js +0 -1
- package/dist/web/assets/classDiagram-v2-72OJOZXJ-B-qkKMYi.js +0 -1
- package/dist/web/assets/index-CT0GtFLZ.css +0 -1
- package/dist/web/assets/stateDiagram-v2-36443NZ5-DhJ4Ky-7.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m,i as e}from"./index-
|
|
1
|
+
import{m,i as e}from"./index-VTKdaklA.js";var r=m((o,t)=>{let a;return t==="sandbox"&&(a=e("#i"+o)),(t==="sandbox"?e(a.nodes()[0].contentDocument.body):e("body")).select(`[id="${o}"]`)},"getDiagramElement");export{r as m};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m}from"./index-
|
|
1
|
+
import{m}from"./index-VTKdaklA.js";function r(t,c){var a,o,l;t.accDescr&&((a=c.setAccDescription)==null||a.call(c,t.accDescr)),t.accTitle&&((o=c.setAccTitle)==null||o.call(c,t.accTitle)),t.title&&((l=c.setDiagramTitle)==null||l.call(c,t.title))}m(r,"populateCommonDb");export{r as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as f,H as y,I as X,e as Y,R as ot,P as x,a as D,T as A,b as ie,t as m,s as O,u as b,j as C,m as Ne,L as Ee,M as R,c as ae,d as rt,Q as ue,F as T,K as I,B as q,f as it,h as j,g as at,o as ut,i as dt,V as st,l as ct}from"./chunk-W44A43WB-REOI67PN.js";import{m as d}from"./index-B5WxtMpv.js";function E(e,n,t,o){var r;do r=ie(o);while(e.hasNode(r));return t.dummy=n,e.setNode(r,t),r}d(E,"addDummyNode");function Oe(e){var n=new y().setGraph(e.graph());return f(e.nodes(),function(t){n.setNode(t,e.node(t))}),f(e.edges(),function(t){var o=n.edge(t.v,t.w)||{weight:0,minlen:1},r=e.edge(t);n.setEdge(t.v,t.w,{weight:o.weight+r.weight,minlen:Math.max(o.minlen,r.minlen)})}),n}d(Oe,"simplify");function de(e){var n=new y({multigraph:e.isMultigraph()}).setGraph(e.graph());return f(e.nodes(),function(t){e.children(t).length||n.setNode(t,e.node(t))}),f(e.edges(),function(t){n.setEdge(t,e.edge(t))}),n}d(de,"asNonCompoundGraph");function K(e,n){var t=e.x,o=e.y,r=n.x-t,i=n.y-o,a=e.width/2,u=e.height/2;if(!r&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var s,c;return Math.abs(i)*a>Math.abs(r)*u?(i<0&&(u=-u),s=u*r/i,c=u):(r<0&&(a=-a),s=a,c=a*i/r),{x:t+s,y:o+c}}d(K,"intersectRect");function M(e){var n=m(O(se(e)+1),function(){return[]});return f(e.nodes(),function(t){var o=e.node(t),r=o.rank;b(r)||(n[r][o.order]=t)}),n}d(M,"buildLayerMatrix");function Ie(e){var n=C(m(e.nodes(),function(t){return e.node(t).rank}));f(e.nodes(),function(t){var o=e.node(t);Ne(o,"rank")&&(o.rank-=n)})}d(Ie,"normalizeRanks");function Pe(e){var n=C(m(e.nodes(),function(i){return e.node(i).rank})),t=[];f(e.nodes(),function(i){var a=e.node(i).rank-n;t[a]||(t[a]=[]),t[a].push(i)});var o=0,r=e.graph().nodeRankFactor;f(t,function(i,a){b(i)&&a%r!==0?--o:o&&f(i,function(u){e.node(u).rank+=o})})}d(Pe,"removeEmptyRanks");function J(e,n,t,o){var r={width:0,height:0};return arguments.length>=4&&(r.rank=t,r.order=o),E(e,"border",r,n)}d(J,"addBorderNode");function se(e){return x(m(e.nodes(),function(n){var t=e.node(n).rank;if(!b(t))return t}))}d(se,"maxRank");function Le(e,n){var t={lhs:[],rhs:[]};return f(e,function(o){n(o)?t.lhs.push(o):t.rhs.push(o)}),t}d(Le,"partition");function Ce(e,n){var t=Ee();try{return n()}finally{console.log(e+" time: "+(Ee()-t)+"ms")}}d(Ce,"time");function _e(e,n){return n()}d(_e,"notime");function Re(e){function n(t){var o=e.children(t),r=e.node(t);if(o.length&&f(o,n),Object.prototype.hasOwnProperty.call(r,"minRank")){r.borderLeft=[],r.borderRight=[];for(var i=r.minRank,a=r.maxRank+1;i<a;++i)Q(e,"borderLeft","_bl",t,r,i),Q(e,"borderRight","_br",t,r,i)}}d(n,"dfs"),f(e.children(),n)}d(Re,"addBorderSegments");function Q(e,n,t,o,r,i){var a={width:0,height:0,rank:i,borderType:n},u=r[n][i-1],s=E(e,"border",a,t);r[n][i]=s,e.setParent(s,o),u&&e.setEdge(u,s,{weight:1})}d(Q,"addBorderNode");function Te(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&ce(e)}d(Te,"adjust");function je(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&Me(e),(n==="lr"||n==="rl")&&(Se(e),ce(e))}d(je,"undo");function ce(e){f(e.nodes(),function(n){U(e.node(n))}),f(e.edges(),function(n){U(e.edge(n))})}d(ce,"swapWidthHeight");function U(e){var n=e.width;e.width=e.height,e.height=n}d(U,"swapWidthHeightOne");function Me(e){f(e.nodes(),function(n){S(e.node(n))}),f(e.edges(),function(n){var t=e.edge(n);f(t.points,S),Object.prototype.hasOwnProperty.call(t,"y")&&S(t)})}d(Me,"reverseY");function S(e){e.y=-e.y}d(S,"reverseYOne");function Se(e){f(e.nodes(),function(n){B(e.node(n))}),f(e.edges(),function(n){var t=e.edge(n);f(t.points,B),Object.prototype.hasOwnProperty.call(t,"x")&&B(t)})}d(Se,"swapXY");function B(e){var n=e.x;e.x=e.y,e.y=n}d(B,"swapXYOne");var N,ft=(N=class{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,t=n._prev;if(t!==n)return Z(t),t}enqueue(n){var t=this._sentinel;n._prev&&n._next&&Z(n),n._next=t._next,t._next._prev=n,t._next=n,n._prev=t}toString(){for(var n=[],t=this._sentinel,o=t._prev;o!==t;)n.push(JSON.stringify(o,Be)),o=o._prev;return"["+n.join(", ")+"]"}},d(N,"List"),N);function Z(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}d(Z,"unlink");function Be(e,n){if(e!=="_next"&&e!=="_prev")return n}d(Be,"filterOutLinks");var ht=st(1);function Fe(e,n){if(e.nodeCount()<=1)return[];var t=Ve(e,n||ht),o=Ge(t.graph,t.buckets,t.zeroIdx);return R(m(o,function(r){return e.outEdges(r.v,r.w)}))}d(Fe,"greedyFAS");function Ge(e,n,t){for(var o=[],r=n[n.length-1],i=n[0],a;e.nodeCount();){for(;a=i.dequeue();)F(e,n,t,a);for(;a=r.dequeue();)F(e,n,t,a);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(a=n[u].dequeue(),a){o=o.concat(F(e,n,t,a,!0));break}}}return o}d(Ge,"doGreedyFAS");function F(e,n,t,o,r){var i=r?[]:void 0;return f(e.inEdges(o.v),function(a){var u=e.edge(a),s=e.node(a.v);r&&i.push({v:a.v,w:a.w}),s.out-=u,z(n,t,s)}),f(e.outEdges(o.v),function(a){var u=e.edge(a),s=a.w,c=e.node(s);c.in-=u,z(n,t,c)}),e.removeNode(o.v),i}d(F,"removeNode");function Ve(e,n){var t=new y,o=0,r=0;f(e.nodes(),function(u){t.setNode(u,{v:u,in:0,out:0})}),f(e.edges(),function(u){var s=t.edge(u.v,u.w)||0,c=n(u),h=s+c;t.setEdge(u.v,u.w,h),r=Math.max(r,t.node(u.v).out+=c),o=Math.max(o,t.node(u.w).in+=c)});var i=O(r+o+3).map(function(){return new ft}),a=o+1;return f(t.nodes(),function(u){z(i,a,t.node(u))}),{graph:t,buckets:i,zeroIdx:a}}d(Ve,"buildState");function z(e,n,t){t.out?t.in?e[t.out-t.in+n].enqueue(t):e[e.length-1].enqueue(t):e[0].enqueue(t)}d(z,"assignBucket");function Ye(e){var n=e.graph().acyclicer==="greedy"?Fe(e,t(e)):De(e);f(n,function(o){var r=e.edge(o);e.removeEdge(o),r.forwardName=o.name,r.reversed=!0,e.setEdge(o.w,o.v,r,ie("rev"))});function t(o){return function(r){return o.edge(r).weight}}d(t,"weightFn")}d(Ye,"run");function De(e){var n=[],t={},o={};function r(i){Object.prototype.hasOwnProperty.call(o,i)||(o[i]=!0,t[i]=!0,f(e.outEdges(i),function(a){Object.prototype.hasOwnProperty.call(t,a.w)?n.push(a):r(a.w)}),delete t[i])}return d(r,"dfs"),f(e.nodes(),r),n}d(De,"dfsFAS");function ze(e){f(e.edges(),function(n){var t=e.edge(n);if(t.reversed){e.removeEdge(n);var o=t.forwardName;delete t.reversed,delete t.forwardName,e.setEdge(n.w,n.v,t,o)}})}d(ze,"undo");function Ae(e){e.graph().dummyChains=[],f(e.edges(),function(n){qe(e,n)})}d(Ae,"run");function qe(e,n){var t=n.v,o=e.node(t).rank,r=n.w,i=e.node(r).rank,a=n.name,u=e.edge(n),s=u.labelRank;if(i!==o+1){e.removeEdge(n);var c=void 0,h,g;for(g=0,++o;o<i;++g,++o)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:n,rank:o},h=E(e,"edge",c,"_d"),o===s&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),e.setEdge(t,h,{weight:u.weight},a),g===0&&e.graph().dummyChains.push(h),t=h;e.setEdge(t,r,{weight:u.weight},a)}}d(qe,"normalizeEdge");function He(e){f(e.graph().dummyChains,function(n){var t=e.node(n),o=t.edgeLabel,r;for(e.setEdge(t.edgeObj,o);t.dummy;)r=e.successors(n)[0],e.removeNode(n),o.points.push({x:t.x,y:t.y}),t.dummy==="edge-label"&&(o.x=t.x,o.y=t.y,o.width=t.width,o.height=t.height),n=r,t=e.node(n)})}d(He,"undo");function H(e){var n={};function t(o){var r=e.node(o);if(Object.prototype.hasOwnProperty.call(n,o))return r.rank;n[o]=!0;var i=C(m(e.outEdges(o),function(a){return t(a.w)-e.edge(a).minlen}));return(i===Number.POSITIVE_INFINITY||i===void 0||i===null)&&(i=0),r.rank=i}d(t,"dfs"),f(e.sources(),t)}d(H,"longestPath");function P(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}d(P,"slack");function fe(e){var n=new y({directed:!1}),t=e.nodes()[0],o=e.nodeCount();n.setNode(t,{});for(var r,i;We(n,e)<o;)r=$e(n,e),i=n.hasNode(r.v)?P(e,r):-P(e,r),Xe(n,e,i);return n}d(fe,"feasibleTree");function We(e,n){function t(o){f(n.nodeEdges(o),function(r){var i=r.v,a=o===i?r.w:i;!e.hasNode(a)&&!P(n,r)&&(e.setNode(a,{}),e.setEdge(o,a,{}),t(a))})}return d(t,"dfs"),f(e.nodes(),t),e.nodeCount()}d(We,"tightTree");function $e(e,n){return ae(n.edges(),function(t){if(e.hasNode(t.v)!==e.hasNode(t.w))return P(n,t)})}d($e,"findMinSlackEdge");function Xe(e,n,t){f(e.nodes(),function(o){n.node(o).rank+=t})}d(Xe,"shiftRanks");Ke.CycleException=_;function Ke(e){var n={},t={},o=[];function r(i){if(Object.prototype.hasOwnProperty.call(t,i))throw new _;Object.prototype.hasOwnProperty.call(n,i)||(t[i]=!0,n[i]=!0,f(e.predecessors(i),r),delete t[i],o.push(i))}if(d(r,"visit"),f(e.sinks(),r),rt(n)!==e.nodeCount())throw new _;return o}d(Ke,"topsort");function _(){}d(_,"CycleException");_.prototype=new Error;function he(e,n,t){ct(n)||(n=[n]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),r=[],i={};return f(n,function(a){if(!e.hasNode(a))throw new Error("Graph does not have node: "+a);ge(e,a,t==="post",i,o,r)}),r}d(he,"dfs");function ge(e,n,t,o,r,i){Object.prototype.hasOwnProperty.call(o,n)||(o[n]=!0,t||i.push(n),f(r(n),function(a){ge(e,a,t,o,r,i)}),t&&i.push(n))}d(ge,"doDfs");function Je(e,n){return he(e,n,"post")}d(Je,"postorder");function Qe(e,n){return he(e,n,"pre")}d(Qe,"preorder");k.initLowLimValues=$;k.initCutValues=W;k.calcCutValue=le;k.leaveEdge=ve;k.enterEdge=me;k.exchangeEdges=we;function k(e){e=Oe(e),H(e);var n=fe(e);$(n),W(n,e);for(var t,o;t=ve(n);)o=me(n,e,t),we(n,e,t,o)}d(k,"networkSimplex");function W(e,n){var t=Je(e,e.nodes());t=t.slice(0,t.length-1),f(t,function(o){Ue(e,n,o)})}d(W,"initCutValues");function Ue(e,n,t){var o=e.node(t),r=o.parent;e.edge(t,r).cutvalue=le(e,n,t)}d(Ue,"assignCutValue");function le(e,n,t){var o=e.node(t),r=o.parent,i=!0,a=n.edge(t,r),u=0;return a||(i=!1,a=n.edge(r,t)),u=a.weight,f(n.nodeEdges(t),function(s){var c=s.v===t,h=c?s.w:s.v;if(h!==r){var g=c===i,l=n.edge(s).weight;if(u+=g?l:-l,en(e,t,h)){var p=e.edge(t,h).cutvalue;u+=g?-p:p}}}),u}d(le,"calcCutValue");function $(e,n){arguments.length<2&&(n=e.nodes()[0]),pe(e,{},1,n)}d($,"initLowLimValues");function pe(e,n,t,o,r){var i=t,a=e.node(o);return n[o]=!0,f(e.neighbors(o),function(u){Object.prototype.hasOwnProperty.call(n,u)||(t=pe(e,n,t,u,o))}),a.low=i,a.lim=t++,r?a.parent=r:delete a.parent,t}d(pe,"dfsAssignLowLim");function ve(e){return ue(e.edges(),function(n){return e.edge(n).cutvalue<0})}d(ve,"leaveEdge");function me(e,n,t){var o=t.v,r=t.w;n.hasEdge(o,r)||(o=t.w,r=t.v);var i=e.node(o),a=e.node(r),u=i,s=!1;i.lim>a.lim&&(u=a,s=!0);var c=T(n.edges(),function(h){return s===ee(e,e.node(h.v),u)&&s!==ee(e,e.node(h.w),u)});return ae(c,function(h){return P(n,h)})}d(me,"enterEdge");function we(e,n,t,o){var r=t.v,i=t.w;e.removeEdge(r,i),e.setEdge(o.v,o.w,{}),$(e),W(e,n),Ze(e,n)}d(we,"exchangeEdges");function Ze(e,n){var t=ue(e.nodes(),function(r){return!n.node(r).parent}),o=Qe(e,t);o=o.slice(1),f(o,function(r){var i=e.node(r).parent,a=n.edge(r,i),u=!1;a||(a=n.edge(i,r),u=!0),n.node(r).rank=n.node(i).rank+(u?a.minlen:-a.minlen)})}d(Ze,"updateRanks");function en(e,n,t){return e.hasEdge(n,t)}d(en,"isTreeEdge");function ee(e,n,t){return t.low<=n.lim&&n.lim<=t.lim}d(ee,"isDescendant");function nn(e){switch(e.graph().ranker){case"network-simplex":ne(e);break;case"tight-tree":tn(e);break;case"longest-path":gt(e);break;default:ne(e)}}d(nn,"rank");var gt=H;function tn(e){H(e),fe(e)}d(tn,"tightTreeRanker");function ne(e){k(e)}d(ne,"networkSimplexRanker");function on(e){var n=E(e,"root",{},"_root"),t=rn(e),o=x(I(t))-1,r=2*o+1;e.graph().nestingRoot=n,f(e.edges(),function(a){e.edge(a).minlen*=r});var i=an(e)+1;f(e.children(),function(a){be(e,n,r,i,o,t,a)}),e.graph().nodeRankFactor=r}d(on,"run");function be(e,n,t,o,r,i,a){var u=e.children(a);if(!u.length){a!==n&&e.setEdge(n,a,{weight:0,minlen:t});return}var s=J(e,"_bt"),c=J(e,"_bb"),h=e.node(a);e.setParent(s,a),h.borderTop=s,e.setParent(c,a),h.borderBottom=c,f(u,function(g){be(e,n,t,o,r,i,g);var l=e.node(g),p=l.borderTop?l.borderTop:g,v=l.borderBottom?l.borderBottom:g,w=l.borderTop?o:2*o,L=p!==v?1:r-i[a]+1;e.setEdge(s,p,{weight:w,minlen:L,nestingEdge:!0}),e.setEdge(v,c,{weight:w,minlen:L,nestingEdge:!0})}),e.parent(a)||e.setEdge(n,s,{weight:0,minlen:r+i[a]})}d(be,"dfs");function rn(e){var n={};function t(o,r){var i=e.children(o);i&&i.length&&f(i,function(a){t(a,r+1)}),n[o]=r}return d(t,"dfs"),f(e.children(),function(o){t(o,1)}),n}d(rn,"treeDepths");function an(e){return q(e.edges(),function(n,t){return n+e.edge(t).weight},0)}d(an,"sumWeights");function un(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f(e.edges(),function(t){var o=e.edge(t);o.nestingEdge&&e.removeEdge(t)})}d(un,"cleanup");function dn(e,n,t){var o={},r;f(t,function(i){for(var a=e.parent(i),u,s;a;){if(u=e.parent(a),u?(s=o[u],o[u]=a):(s=r,r=a),s&&s!==a){n.setEdge(s,a);return}a=u}})}d(dn,"addSubgraphConstraints");function sn(e,n,t){var o=cn(e),r=new y({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(i){return e.node(i)});return f(e.nodes(),function(i){var a=e.node(i),u=e.parent(i);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(r.setNode(i),r.setParent(i,u||o),f(e[t](i),function(s){var c=s.v===i?s.w:s.v,h=r.edge(c,i),g=b(h)?0:h.weight;r.setEdge(c,i,{weight:e.edge(s).weight+g})}),Object.prototype.hasOwnProperty.call(a,"minRank")&&r.setNode(i,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),r}d(sn,"buildLayerGraph");function cn(e){for(var n;e.hasNode(n=ie("_root")););return n}d(cn,"createRootNode");function fn(e,n){for(var t=0,o=1;o<n.length;++o)t+=hn(e,n[o-1],n[o]);return t}d(fn,"crossCount");function hn(e,n,t){for(var o=it(t,m(t,function(c,h){return h})),r=R(m(n,function(c){return j(m(e.outEdges(c),function(h){return{pos:o[h.w],weight:e.edge(h).weight}}),"pos")})),i=1;i<t.length;)i<<=1;var a=2*i-1;i-=1;var u=m(new Array(a),function(){return 0}),s=0;return f(r.forEach(function(c){var h=c.pos+i;u[h]+=c.weight;for(var g=0;h>0;)h%2&&(g+=u[h+1]),h=h-1>>1,u[h]+=c.weight;s+=c.weight*g})),s}d(hn,"twoLayerCrossCount");function gn(e){var n={},t=T(e.nodes(),function(u){return!e.children(u).length}),o=x(m(t,function(u){return e.node(u).rank})),r=m(O(o+1),function(){return[]});function i(u){if(!Ne(n,u)){n[u]=!0;var s=e.node(u);r[s.rank].push(u),f(e.successors(u),i)}}d(i,"dfs");var a=j(t,function(u){return e.node(u).rank});return f(a,i),r}d(gn,"initOrder");function ln(e,n){return m(n,function(t){var o=e.inEdges(t);if(o.length){var r=q(o,function(i,a){var u=e.edge(a),s=e.node(a.v);return{sum:i.sum+u.weight*s.order,weight:i.weight+u.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}else return{v:t}})}d(ln,"barycenter");function pn(e,n){var t={};f(e,function(r,i){var a=t[r.v]={indegree:0,in:[],out:[],vs:[r.v],i};b(r.barycenter)||(a.barycenter=r.barycenter,a.weight=r.weight)}),f(n.edges(),function(r){var i=t[r.v],a=t[r.w];!b(i)&&!b(a)&&(a.indegree++,i.out.push(t[r.w]))});var o=T(t,function(r){return!r.indegree});return vn(o)}d(pn,"resolveConflicts");function vn(e){var n=[];function t(i){return function(a){a.merged||(b(a.barycenter)||b(i.barycenter)||a.barycenter>=i.barycenter)&&mn(i,a)}}d(t,"handleIn");function o(i){return function(a){a.in.push(i),--a.indegree===0&&e.push(a)}}for(d(o,"handleOut");e.length;){var r=e.pop();n.push(r),f(r.in.reverse(),t(r)),f(r.out,o(r))}return m(T(n,function(i){return!i.merged}),function(i){return Y(i,["vs","i","barycenter","weight"])})}d(vn,"doResolveConflicts");function mn(e,n){var t=0,o=0;e.weight&&(t+=e.barycenter*e.weight,o+=e.weight),n.weight&&(t+=n.barycenter*n.weight,o+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=t/o,e.weight=o,e.i=Math.min(n.i,e.i),n.merged=!0}d(mn,"mergeEntries");function wn(e,n){var t=Le(e,function(h){return Object.prototype.hasOwnProperty.call(h,"barycenter")}),o=t.lhs,r=j(t.rhs,function(h){return-h.i}),i=[],a=0,u=0,s=0;o.sort(bn(!!n)),s=te(i,r,s),f(o,function(h){s+=h.vs.length,i.push(h.vs),a+=h.barycenter*h.weight,u+=h.weight,s=te(i,r,s)});var c={vs:R(i)};return u&&(c.barycenter=a/u,c.weight=u),c}d(wn,"sort");function te(e,n,t){for(var o;n.length&&(o=D(n)).i<=t;)n.pop(),e.push(o.vs),t++;return t}d(te,"consumeUnsortable");function bn(e){return function(n,t){return n.barycenter<t.barycenter?-1:n.barycenter>t.barycenter?1:e?t.i-n.i:n.i-t.i}}d(bn,"compareWithBias");function ye(e,n,t,o){var r=e.children(n),i=e.node(n),a=i?i.borderLeft:void 0,u=i?i.borderRight:void 0,s={};a&&(r=T(r,function(v){return v!==a&&v!==u}));var c=ln(e,r);f(c,function(v){if(e.children(v.v).length){var w=ye(e,v.v,t,o);s[v.v]=w,Object.prototype.hasOwnProperty.call(w,"barycenter")&&kn(v,w)}});var h=pn(c,t);yn(h,s);var g=wn(h,o);if(a&&(g.vs=R([a,g.vs,u]),e.predecessors(a).length)){var l=e.node(e.predecessors(a)[0]),p=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+l.order+p.order)/(g.weight+2),g.weight+=2}return g}d(ye,"sortSubgraph");function yn(e,n){f(e,function(t){t.vs=R(t.vs.map(function(o){return n[o]?n[o].vs:o}))})}d(yn,"expandSubgraphs");function kn(e,n){b(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}d(kn,"mergeBarycenters");function xn(e){var n=se(e),t=oe(e,O(1,n+1),"inEdges"),o=oe(e,O(n-1,-1,-1),"outEdges"),r=gn(e);re(e,r);for(var i=Number.POSITIVE_INFINITY,a,u=0,s=0;s<4;++u,++s){En(u%2?t:o,u%4>=2),r=M(e);var c=fn(e,r);c<i&&(s=0,a=at(r),i=c)}re(e,a)}d(xn,"order");function oe(e,n,t){return m(n,function(o){return sn(e,o,t)})}d(oe,"buildLayerGraphs");function En(e,n){var t=new y;f(e,function(o){var r=o.graph().root,i=ye(o,r,t,n);f(i.vs,function(a,u){o.node(a).order=u}),dn(o,t,i.vs)})}d(En,"sweepLayerGraphs");function re(e,n){f(n,function(t){f(t,function(o,r){e.node(o).order=r})})}d(re,"assignOrder");function Nn(e){var n=In(e);f(e.graph().dummyChains,function(t){for(var o=e.node(t),r=o.edgeObj,i=On(e,n,r.v,r.w),a=i.path,u=i.lca,s=0,c=a[s],h=!0;t!==r.w;){if(o=e.node(t),h){for(;(c=a[s])!==u&&e.node(c).maxRank<o.rank;)s++;c===u&&(h=!1)}if(!h){for(;s<a.length-1&&e.node(c=a[s+1]).minRank<=o.rank;)s++;c=a[s]}e.setParent(t,c),t=e.successors(t)[0]}})}d(Nn,"parentDummyChains");function On(e,n,t,o){var r=[],i=[],a=Math.min(n[t].low,n[o].low),u=Math.max(n[t].lim,n[o].lim),s,c;s=t;do s=e.parent(s),r.push(s);while(s&&(n[s].low>a||u>n[s].lim));for(c=s,s=o;(s=e.parent(s))!==c;)i.push(s);return{path:r.concat(i.reverse()),lca:c}}d(On,"findPath");function In(e){var n={},t=0;function o(r){var i=t;f(e.children(r),o),n[r]={low:i,lim:t++}}return d(o,"dfs"),f(e.children(),o),n}d(In,"postorder");function Pn(e,n){var t={};function o(r,i){var a=0,u=0,s=r.length,c=D(i);return f(i,function(h,g){var l=Cn(e,h),p=l?e.node(l).order:s;(l||h===c)&&(f(i.slice(u,g+1),function(v){f(e.predecessors(v),function(w){var L=e.node(w),xe=L.order;(xe<a||p<xe)&&!(L.dummy&&e.node(v).dummy)&&ke(t,w,v)})}),u=g+1,a=p)}),i}return d(o,"visitLayer"),q(n,o),t}d(Pn,"findType1Conflicts");function Ln(e,n){var t={};function o(i,a,u,s,c){var h;f(O(a,u),function(g){h=i[g],e.node(h).dummy&&f(e.predecessors(h),function(l){var p=e.node(l);p.dummy&&(p.order<s||p.order>c)&&ke(t,l,h)})})}d(o,"scan");function r(i,a){var u=-1,s,c=0;return f(a,function(h,g){if(e.node(h).dummy==="border"){var l=e.predecessors(h);l.length&&(s=e.node(l[0]).order,o(a,c,g,u,s),c=g,u=s)}o(a,c,a.length,s,i.length)}),a}return d(r,"visitLayer"),q(n,r),t}d(Ln,"findType2Conflicts");function Cn(e,n){if(e.node(n).dummy)return ue(e.predecessors(n),function(t){return e.node(t).dummy})}d(Cn,"findOtherInnerSegmentNode");function ke(e,n,t){if(n>t){var o=n;n=t,t=o}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var r=e[n];Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:!0,writable:!0})}d(ke,"addConflict");function _n(e,n,t){if(n>t){var o=n;n=t,t=o}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],t)}d(_n,"hasConflict");function Rn(e,n,t,o){var r={},i={},a={};return f(n,function(u){f(u,function(s,c){r[s]=s,i[s]=s,a[s]=c})}),f(n,function(u){var s=-1;f(u,function(c){var h=o(c);if(h.length){h=j(h,function(w){return a[w]});for(var g=(h.length-1)/2,l=Math.floor(g),p=Math.ceil(g);l<=p;++l){var v=h[l];i[c]===c&&s<a[v]&&!_n(t,c,v)&&(i[v]=c,i[c]=r[c]=r[v],s=a[v])}}})}),{root:r,align:i}}d(Rn,"verticalAlignment");function Tn(e,n,t,o,r){var i={},a=jn(e,n,t,r),u=r?"borderLeft":"borderRight";function s(g,l){for(var p=a.nodes(),v=p.pop(),w={};v;)w[v]?g(v):(w[v]=!0,p.push(v),p=p.concat(l(v))),v=p.pop()}d(s,"iterate");function c(g){i[g]=a.inEdges(g).reduce(function(l,p){return Math.max(l,i[p.v]+a.edge(p))},0)}d(c,"pass1");function h(g){var l=a.outEdges(g).reduce(function(v,w){return Math.min(v,i[w.w]-a.edge(w))},Number.POSITIVE_INFINITY),p=e.node(g);l!==Number.POSITIVE_INFINITY&&p.borderType!==u&&(i[g]=Math.max(i[g],l))}return d(h,"pass2"),s(c,a.predecessors.bind(a)),s(h,a.successors.bind(a)),f(o,function(g){i[g]=i[t[g]]}),i}d(Tn,"horizontalCompaction");function jn(e,n,t,o){var r=new y,i=e.graph(),a=Gn(i.nodesep,i.edgesep,o);return f(n,function(u){var s;f(u,function(c){var h=t[c];if(r.setNode(h),s){var g=t[s],l=r.edge(g,h);r.setEdge(g,h,Math.max(a(e,c,s),l||0))}s=c})}),r}d(jn,"buildBlockGraph");function Mn(e,n){return ae(I(n),function(t){var o=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return ut(t,function(i,a){var u=Vn(e,a)/2;o=Math.max(i+u,o),r=Math.min(i-u,r)}),o-r})}d(Mn,"findSmallestWidthAlignment");function Sn(e,n){var t=I(n),o=C(t),r=x(t);f(["u","d"],function(i){f(["l","r"],function(a){var u=i+a,s=e[u],c;if(s!==n){var h=I(s);c=a==="l"?o-C(h):r-x(h),c&&(e[u]=A(s,function(g){return g+c}))}})})}d(Sn,"alignCoordinates");function Bn(e,n){return A(e.ul,function(t,o){if(n)return e[n.toLowerCase()][o];var r=j(m(e,o));return(r[1]+r[2])/2})}d(Bn,"balance");function Fn(e){var n=M(e),t=X(Pn(e,n),Ln(e,n)),o={},r;f(["u","d"],function(a){r=a==="u"?n:I(n).reverse(),f(["l","r"],function(u){u==="r"&&(r=m(r,function(g){return I(g).reverse()}));var s=(a==="u"?e.predecessors:e.successors).bind(e),c=Rn(e,r,t,s),h=Tn(e,r,c.root,c.align,u==="r");u==="r"&&(h=A(h,function(g){return-g})),o[a+u]=h})});var i=Mn(e,o);return Sn(o,i),Bn(o,e.graph().align)}d(Fn,"positionX");function Gn(e,n,t){return function(o,r,i){var a=o.node(r),u=o.node(i),s=0,c;if(s+=a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":c=-a.width/2;break;case"r":c=a.width/2;break}if(c&&(s+=t?c:-c),c=0,s+=(a.dummy?n:e)/2,s+=(u.dummy?n:e)/2,s+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2;break}return c&&(s+=t?c:-c),c=0,s}}d(Gn,"sep");function Vn(e,n){return e.node(n).width}d(Vn,"width");function Yn(e){e=de(e),Dn(e),dt(Fn(e),function(n,t){e.node(t).x=n})}d(Yn,"position");function Dn(e){var n=M(e),t=e.graph().ranksep,o=0;f(n,function(r){var i=x(m(r,function(a){return e.node(a).height}));f(r,function(a){e.node(a).y=o+i/2}),o+=i+t})}d(Dn,"positionY");function lt(e,n){var t=n&&n.debugTiming?Ce:_e;t("layout",()=>{var o=t(" buildLayoutGraph",()=>qn(e));t(" runLayout",()=>zn(o,t)),t(" updateInputGraph",()=>An(e,o))})}d(lt,"layout");function zn(e,n){n(" makeSpaceForEdgeLabels",()=>Hn(e)),n(" removeSelfEdges",()=>et(e)),n(" acyclic",()=>Ye(e)),n(" nestingGraph.run",()=>on(e)),n(" rank",()=>nn(de(e))),n(" injectEdgeLabelProxies",()=>Wn(e)),n(" removeEmptyRanks",()=>Pe(e)),n(" nestingGraph.cleanup",()=>un(e)),n(" normalizeRanks",()=>Ie(e)),n(" assignRankMinMax",()=>$n(e)),n(" removeEdgeLabelProxies",()=>Xn(e)),n(" normalize.run",()=>Ae(e)),n(" parentDummyChains",()=>Nn(e)),n(" addBorderSegments",()=>Re(e)),n(" order",()=>xn(e)),n(" insertSelfEdges",()=>nt(e)),n(" adjustCoordinateSystem",()=>Te(e)),n(" position",()=>Yn(e)),n(" positionSelfEdges",()=>tt(e)),n(" removeBorderNodes",()=>Zn(e)),n(" normalize.undo",()=>He(e)),n(" fixupEdgeLabelCoords",()=>Qn(e)),n(" undoCoordinateSystem",()=>je(e)),n(" translateGraph",()=>Kn(e)),n(" assignNodeIntersects",()=>Jn(e)),n(" reversePoints",()=>Un(e)),n(" acyclic.undo",()=>ze(e))}d(zn,"runLayout");function An(e,n){f(e.nodes(),function(t){var o=e.node(t),r=n.node(t);o&&(o.x=r.x,o.y=r.y,n.children(t).length&&(o.width=r.width,o.height=r.height))}),f(e.edges(),function(t){var o=e.edge(t),r=n.edge(t);o.points=r.points,Object.prototype.hasOwnProperty.call(r,"x")&&(o.x=r.x,o.y=r.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}d(An,"updateInputGraph");var pt=["nodesep","edgesep","ranksep","marginx","marginy"],vt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},mt=["acyclicer","ranker","rankdir","align"],wt=["width","height"],bt={width:0,height:0},yt=["minlen","weight","width","height","labeloffset"],kt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},xt=["labelpos"];function qn(e){var n=new y({multigraph:!0,compound:!0}),t=V(e.graph());return n.setGraph(X({},vt,G(t,pt),Y(t,mt))),f(e.nodes(),function(o){var r=V(e.node(o));n.setNode(o,ot(G(r,wt),bt)),n.setParent(o,e.parent(o))}),f(e.edges(),function(o){var r=V(e.edge(o));n.setEdge(o,X({},kt,G(r,yt),Y(r,xt)))}),n}d(qn,"buildLayoutGraph");function Hn(e){var n=e.graph();n.ranksep/=2,f(e.edges(),function(t){var o=e.edge(t);o.minlen*=2,o.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?o.width+=o.labeloffset:o.height+=o.labeloffset)})}d(Hn,"makeSpaceForEdgeLabels");function Wn(e){f(e.edges(),function(n){var t=e.edge(n);if(t.width&&t.height){var o=e.node(n.v),r=e.node(n.w),i={rank:(r.rank-o.rank)/2+o.rank,e:n};E(e,"edge-proxy",i,"_ep")}})}d(Wn,"injectEdgeLabelProxies");function $n(e){var n=0;f(e.nodes(),function(t){var o=e.node(t);o.borderTop&&(o.minRank=e.node(o.borderTop).rank,o.maxRank=e.node(o.borderBottom).rank,n=x(n,o.maxRank))}),e.graph().maxRank=n}d($n,"assignRankMinMax");function Xn(e){f(e.nodes(),function(n){var t=e.node(n);t.dummy==="edge-proxy"&&(e.edge(t.e).labelRank=t.rank,e.removeNode(n))})}d(Xn,"removeEdgeLabelProxies");function Kn(e){var n=Number.POSITIVE_INFINITY,t=0,o=Number.POSITIVE_INFINITY,r=0,i=e.graph(),a=i.marginx||0,u=i.marginy||0;function s(c){var h=c.x,g=c.y,l=c.width,p=c.height;n=Math.min(n,h-l/2),t=Math.max(t,h+l/2),o=Math.min(o,g-p/2),r=Math.max(r,g+p/2)}d(s,"getExtremes"),f(e.nodes(),function(c){s(e.node(c))}),f(e.edges(),function(c){var h=e.edge(c);Object.prototype.hasOwnProperty.call(h,"x")&&s(h)}),n-=a,o-=u,f(e.nodes(),function(c){var h=e.node(c);h.x-=n,h.y-=o}),f(e.edges(),function(c){var h=e.edge(c);f(h.points,function(g){g.x-=n,g.y-=o}),Object.prototype.hasOwnProperty.call(h,"x")&&(h.x-=n),Object.prototype.hasOwnProperty.call(h,"y")&&(h.y-=o)}),i.width=t-n+a,i.height=r-o+u}d(Kn,"translateGraph");function Jn(e){f(e.edges(),function(n){var t=e.edge(n),o=e.node(n.v),r=e.node(n.w),i,a;t.points?(i=t.points[0],a=t.points[t.points.length-1]):(t.points=[],i=r,a=o),t.points.unshift(K(o,i)),t.points.push(K(r,a))})}d(Jn,"assignNodeIntersects");function Qn(e){f(e.edges(),function(n){var t=e.edge(n);if(Object.prototype.hasOwnProperty.call(t,"x"))switch((t.labelpos==="l"||t.labelpos==="r")&&(t.width-=t.labeloffset),t.labelpos){case"l":t.x-=t.width/2+t.labeloffset;break;case"r":t.x+=t.width/2+t.labeloffset;break}})}d(Qn,"fixupEdgeLabelCoords");function Un(e){f(e.edges(),function(n){var t=e.edge(n);t.reversed&&t.points.reverse()})}d(Un,"reversePointsForReversedEdges");function Zn(e){f(e.nodes(),function(n){if(e.children(n).length){var t=e.node(n),o=e.node(t.borderTop),r=e.node(t.borderBottom),i=e.node(D(t.borderLeft)),a=e.node(D(t.borderRight));t.width=Math.abs(a.x-i.x),t.height=Math.abs(r.y-o.y),t.x=i.x+t.width/2,t.y=o.y+t.height/2}}),f(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}d(Zn,"removeBorderNodes");function et(e){f(e.edges(),function(n){if(n.v===n.w){var t=e.node(n.v);t.selfEdges||(t.selfEdges=[]),t.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}d(et,"removeSelfEdges");function nt(e){var n=M(e);f(n,function(t){var o=0;f(t,function(r,i){var a=e.node(r);a.order=i+o,f(a.selfEdges,function(u){E(e,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:i+ ++o,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}d(nt,"insertSelfEdges");function tt(e){f(e.nodes(),function(n){var t=e.node(n);if(t.dummy==="selfedge"){var o=e.node(t.e.v),r=o.x+o.width/2,i=o.y,a=t.x-r,u=o.height/2;e.setEdge(t.e,t.label),e.removeNode(n),t.label.points=[{x:r+2*a/3,y:i-u},{x:r+5*a/6,y:i-u},{x:r+a,y:i},{x:r+5*a/6,y:i+u},{x:r+2*a/3,y:i+u}],t.label.x=t.x,t.label.y=t.y}})}d(tt,"positionSelfEdges");function G(e,n){return A(Y(e,n),Number)}d(G,"selectNumberAttrs");function V(e){var n={};return f(e,function(t,o){n[o.toLowerCase()]=t}),n}d(V,"canonicalize");export{lt as f};
|
|
1
|
+
import{D as f,H as y,I as X,e as Y,R as ot,P as x,a as D,T as A,b as ie,t as m,s as O,u as b,j as C,m as Ne,L as Ee,M as R,c as ae,d as rt,Q as ue,F as T,K as I,B as q,f as it,h as j,g as at,o as ut,i as dt,V as st,l as ct}from"./chunk-W44A43WB-BHe37iN7.js";import{m as d}from"./index-VTKdaklA.js";function E(e,n,t,o){var r;do r=ie(o);while(e.hasNode(r));return t.dummy=n,e.setNode(r,t),r}d(E,"addDummyNode");function Oe(e){var n=new y().setGraph(e.graph());return f(e.nodes(),function(t){n.setNode(t,e.node(t))}),f(e.edges(),function(t){var o=n.edge(t.v,t.w)||{weight:0,minlen:1},r=e.edge(t);n.setEdge(t.v,t.w,{weight:o.weight+r.weight,minlen:Math.max(o.minlen,r.minlen)})}),n}d(Oe,"simplify");function de(e){var n=new y({multigraph:e.isMultigraph()}).setGraph(e.graph());return f(e.nodes(),function(t){e.children(t).length||n.setNode(t,e.node(t))}),f(e.edges(),function(t){n.setEdge(t,e.edge(t))}),n}d(de,"asNonCompoundGraph");function K(e,n){var t=e.x,o=e.y,r=n.x-t,i=n.y-o,a=e.width/2,u=e.height/2;if(!r&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var s,c;return Math.abs(i)*a>Math.abs(r)*u?(i<0&&(u=-u),s=u*r/i,c=u):(r<0&&(a=-a),s=a,c=a*i/r),{x:t+s,y:o+c}}d(K,"intersectRect");function M(e){var n=m(O(se(e)+1),function(){return[]});return f(e.nodes(),function(t){var o=e.node(t),r=o.rank;b(r)||(n[r][o.order]=t)}),n}d(M,"buildLayerMatrix");function Ie(e){var n=C(m(e.nodes(),function(t){return e.node(t).rank}));f(e.nodes(),function(t){var o=e.node(t);Ne(o,"rank")&&(o.rank-=n)})}d(Ie,"normalizeRanks");function Pe(e){var n=C(m(e.nodes(),function(i){return e.node(i).rank})),t=[];f(e.nodes(),function(i){var a=e.node(i).rank-n;t[a]||(t[a]=[]),t[a].push(i)});var o=0,r=e.graph().nodeRankFactor;f(t,function(i,a){b(i)&&a%r!==0?--o:o&&f(i,function(u){e.node(u).rank+=o})})}d(Pe,"removeEmptyRanks");function J(e,n,t,o){var r={width:0,height:0};return arguments.length>=4&&(r.rank=t,r.order=o),E(e,"border",r,n)}d(J,"addBorderNode");function se(e){return x(m(e.nodes(),function(n){var t=e.node(n).rank;if(!b(t))return t}))}d(se,"maxRank");function Le(e,n){var t={lhs:[],rhs:[]};return f(e,function(o){n(o)?t.lhs.push(o):t.rhs.push(o)}),t}d(Le,"partition");function Ce(e,n){var t=Ee();try{return n()}finally{console.log(e+" time: "+(Ee()-t)+"ms")}}d(Ce,"time");function _e(e,n){return n()}d(_e,"notime");function Re(e){function n(t){var o=e.children(t),r=e.node(t);if(o.length&&f(o,n),Object.prototype.hasOwnProperty.call(r,"minRank")){r.borderLeft=[],r.borderRight=[];for(var i=r.minRank,a=r.maxRank+1;i<a;++i)Q(e,"borderLeft","_bl",t,r,i),Q(e,"borderRight","_br",t,r,i)}}d(n,"dfs"),f(e.children(),n)}d(Re,"addBorderSegments");function Q(e,n,t,o,r,i){var a={width:0,height:0,rank:i,borderType:n},u=r[n][i-1],s=E(e,"border",a,t);r[n][i]=s,e.setParent(s,o),u&&e.setEdge(u,s,{weight:1})}d(Q,"addBorderNode");function Te(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&ce(e)}d(Te,"adjust");function je(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&Me(e),(n==="lr"||n==="rl")&&(Se(e),ce(e))}d(je,"undo");function ce(e){f(e.nodes(),function(n){U(e.node(n))}),f(e.edges(),function(n){U(e.edge(n))})}d(ce,"swapWidthHeight");function U(e){var n=e.width;e.width=e.height,e.height=n}d(U,"swapWidthHeightOne");function Me(e){f(e.nodes(),function(n){S(e.node(n))}),f(e.edges(),function(n){var t=e.edge(n);f(t.points,S),Object.prototype.hasOwnProperty.call(t,"y")&&S(t)})}d(Me,"reverseY");function S(e){e.y=-e.y}d(S,"reverseYOne");function Se(e){f(e.nodes(),function(n){B(e.node(n))}),f(e.edges(),function(n){var t=e.edge(n);f(t.points,B),Object.prototype.hasOwnProperty.call(t,"x")&&B(t)})}d(Se,"swapXY");function B(e){var n=e.x;e.x=e.y,e.y=n}d(B,"swapXYOne");var N,ft=(N=class{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,t=n._prev;if(t!==n)return Z(t),t}enqueue(n){var t=this._sentinel;n._prev&&n._next&&Z(n),n._next=t._next,t._next._prev=n,t._next=n,n._prev=t}toString(){for(var n=[],t=this._sentinel,o=t._prev;o!==t;)n.push(JSON.stringify(o,Be)),o=o._prev;return"["+n.join(", ")+"]"}},d(N,"List"),N);function Z(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}d(Z,"unlink");function Be(e,n){if(e!=="_next"&&e!=="_prev")return n}d(Be,"filterOutLinks");var ht=st(1);function Fe(e,n){if(e.nodeCount()<=1)return[];var t=Ve(e,n||ht),o=Ge(t.graph,t.buckets,t.zeroIdx);return R(m(o,function(r){return e.outEdges(r.v,r.w)}))}d(Fe,"greedyFAS");function Ge(e,n,t){for(var o=[],r=n[n.length-1],i=n[0],a;e.nodeCount();){for(;a=i.dequeue();)F(e,n,t,a);for(;a=r.dequeue();)F(e,n,t,a);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(a=n[u].dequeue(),a){o=o.concat(F(e,n,t,a,!0));break}}}return o}d(Ge,"doGreedyFAS");function F(e,n,t,o,r){var i=r?[]:void 0;return f(e.inEdges(o.v),function(a){var u=e.edge(a),s=e.node(a.v);r&&i.push({v:a.v,w:a.w}),s.out-=u,z(n,t,s)}),f(e.outEdges(o.v),function(a){var u=e.edge(a),s=a.w,c=e.node(s);c.in-=u,z(n,t,c)}),e.removeNode(o.v),i}d(F,"removeNode");function Ve(e,n){var t=new y,o=0,r=0;f(e.nodes(),function(u){t.setNode(u,{v:u,in:0,out:0})}),f(e.edges(),function(u){var s=t.edge(u.v,u.w)||0,c=n(u),h=s+c;t.setEdge(u.v,u.w,h),r=Math.max(r,t.node(u.v).out+=c),o=Math.max(o,t.node(u.w).in+=c)});var i=O(r+o+3).map(function(){return new ft}),a=o+1;return f(t.nodes(),function(u){z(i,a,t.node(u))}),{graph:t,buckets:i,zeroIdx:a}}d(Ve,"buildState");function z(e,n,t){t.out?t.in?e[t.out-t.in+n].enqueue(t):e[e.length-1].enqueue(t):e[0].enqueue(t)}d(z,"assignBucket");function Ye(e){var n=e.graph().acyclicer==="greedy"?Fe(e,t(e)):De(e);f(n,function(o){var r=e.edge(o);e.removeEdge(o),r.forwardName=o.name,r.reversed=!0,e.setEdge(o.w,o.v,r,ie("rev"))});function t(o){return function(r){return o.edge(r).weight}}d(t,"weightFn")}d(Ye,"run");function De(e){var n=[],t={},o={};function r(i){Object.prototype.hasOwnProperty.call(o,i)||(o[i]=!0,t[i]=!0,f(e.outEdges(i),function(a){Object.prototype.hasOwnProperty.call(t,a.w)?n.push(a):r(a.w)}),delete t[i])}return d(r,"dfs"),f(e.nodes(),r),n}d(De,"dfsFAS");function ze(e){f(e.edges(),function(n){var t=e.edge(n);if(t.reversed){e.removeEdge(n);var o=t.forwardName;delete t.reversed,delete t.forwardName,e.setEdge(n.w,n.v,t,o)}})}d(ze,"undo");function Ae(e){e.graph().dummyChains=[],f(e.edges(),function(n){qe(e,n)})}d(Ae,"run");function qe(e,n){var t=n.v,o=e.node(t).rank,r=n.w,i=e.node(r).rank,a=n.name,u=e.edge(n),s=u.labelRank;if(i!==o+1){e.removeEdge(n);var c=void 0,h,g;for(g=0,++o;o<i;++g,++o)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:n,rank:o},h=E(e,"edge",c,"_d"),o===s&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),e.setEdge(t,h,{weight:u.weight},a),g===0&&e.graph().dummyChains.push(h),t=h;e.setEdge(t,r,{weight:u.weight},a)}}d(qe,"normalizeEdge");function He(e){f(e.graph().dummyChains,function(n){var t=e.node(n),o=t.edgeLabel,r;for(e.setEdge(t.edgeObj,o);t.dummy;)r=e.successors(n)[0],e.removeNode(n),o.points.push({x:t.x,y:t.y}),t.dummy==="edge-label"&&(o.x=t.x,o.y=t.y,o.width=t.width,o.height=t.height),n=r,t=e.node(n)})}d(He,"undo");function H(e){var n={};function t(o){var r=e.node(o);if(Object.prototype.hasOwnProperty.call(n,o))return r.rank;n[o]=!0;var i=C(m(e.outEdges(o),function(a){return t(a.w)-e.edge(a).minlen}));return(i===Number.POSITIVE_INFINITY||i===void 0||i===null)&&(i=0),r.rank=i}d(t,"dfs"),f(e.sources(),t)}d(H,"longestPath");function P(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}d(P,"slack");function fe(e){var n=new y({directed:!1}),t=e.nodes()[0],o=e.nodeCount();n.setNode(t,{});for(var r,i;We(n,e)<o;)r=$e(n,e),i=n.hasNode(r.v)?P(e,r):-P(e,r),Xe(n,e,i);return n}d(fe,"feasibleTree");function We(e,n){function t(o){f(n.nodeEdges(o),function(r){var i=r.v,a=o===i?r.w:i;!e.hasNode(a)&&!P(n,r)&&(e.setNode(a,{}),e.setEdge(o,a,{}),t(a))})}return d(t,"dfs"),f(e.nodes(),t),e.nodeCount()}d(We,"tightTree");function $e(e,n){return ae(n.edges(),function(t){if(e.hasNode(t.v)!==e.hasNode(t.w))return P(n,t)})}d($e,"findMinSlackEdge");function Xe(e,n,t){f(e.nodes(),function(o){n.node(o).rank+=t})}d(Xe,"shiftRanks");Ke.CycleException=_;function Ke(e){var n={},t={},o=[];function r(i){if(Object.prototype.hasOwnProperty.call(t,i))throw new _;Object.prototype.hasOwnProperty.call(n,i)||(t[i]=!0,n[i]=!0,f(e.predecessors(i),r),delete t[i],o.push(i))}if(d(r,"visit"),f(e.sinks(),r),rt(n)!==e.nodeCount())throw new _;return o}d(Ke,"topsort");function _(){}d(_,"CycleException");_.prototype=new Error;function he(e,n,t){ct(n)||(n=[n]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),r=[],i={};return f(n,function(a){if(!e.hasNode(a))throw new Error("Graph does not have node: "+a);ge(e,a,t==="post",i,o,r)}),r}d(he,"dfs");function ge(e,n,t,o,r,i){Object.prototype.hasOwnProperty.call(o,n)||(o[n]=!0,t||i.push(n),f(r(n),function(a){ge(e,a,t,o,r,i)}),t&&i.push(n))}d(ge,"doDfs");function Je(e,n){return he(e,n,"post")}d(Je,"postorder");function Qe(e,n){return he(e,n,"pre")}d(Qe,"preorder");k.initLowLimValues=$;k.initCutValues=W;k.calcCutValue=le;k.leaveEdge=ve;k.enterEdge=me;k.exchangeEdges=we;function k(e){e=Oe(e),H(e);var n=fe(e);$(n),W(n,e);for(var t,o;t=ve(n);)o=me(n,e,t),we(n,e,t,o)}d(k,"networkSimplex");function W(e,n){var t=Je(e,e.nodes());t=t.slice(0,t.length-1),f(t,function(o){Ue(e,n,o)})}d(W,"initCutValues");function Ue(e,n,t){var o=e.node(t),r=o.parent;e.edge(t,r).cutvalue=le(e,n,t)}d(Ue,"assignCutValue");function le(e,n,t){var o=e.node(t),r=o.parent,i=!0,a=n.edge(t,r),u=0;return a||(i=!1,a=n.edge(r,t)),u=a.weight,f(n.nodeEdges(t),function(s){var c=s.v===t,h=c?s.w:s.v;if(h!==r){var g=c===i,l=n.edge(s).weight;if(u+=g?l:-l,en(e,t,h)){var p=e.edge(t,h).cutvalue;u+=g?-p:p}}}),u}d(le,"calcCutValue");function $(e,n){arguments.length<2&&(n=e.nodes()[0]),pe(e,{},1,n)}d($,"initLowLimValues");function pe(e,n,t,o,r){var i=t,a=e.node(o);return n[o]=!0,f(e.neighbors(o),function(u){Object.prototype.hasOwnProperty.call(n,u)||(t=pe(e,n,t,u,o))}),a.low=i,a.lim=t++,r?a.parent=r:delete a.parent,t}d(pe,"dfsAssignLowLim");function ve(e){return ue(e.edges(),function(n){return e.edge(n).cutvalue<0})}d(ve,"leaveEdge");function me(e,n,t){var o=t.v,r=t.w;n.hasEdge(o,r)||(o=t.w,r=t.v);var i=e.node(o),a=e.node(r),u=i,s=!1;i.lim>a.lim&&(u=a,s=!0);var c=T(n.edges(),function(h){return s===ee(e,e.node(h.v),u)&&s!==ee(e,e.node(h.w),u)});return ae(c,function(h){return P(n,h)})}d(me,"enterEdge");function we(e,n,t,o){var r=t.v,i=t.w;e.removeEdge(r,i),e.setEdge(o.v,o.w,{}),$(e),W(e,n),Ze(e,n)}d(we,"exchangeEdges");function Ze(e,n){var t=ue(e.nodes(),function(r){return!n.node(r).parent}),o=Qe(e,t);o=o.slice(1),f(o,function(r){var i=e.node(r).parent,a=n.edge(r,i),u=!1;a||(a=n.edge(i,r),u=!0),n.node(r).rank=n.node(i).rank+(u?a.minlen:-a.minlen)})}d(Ze,"updateRanks");function en(e,n,t){return e.hasEdge(n,t)}d(en,"isTreeEdge");function ee(e,n,t){return t.low<=n.lim&&n.lim<=t.lim}d(ee,"isDescendant");function nn(e){switch(e.graph().ranker){case"network-simplex":ne(e);break;case"tight-tree":tn(e);break;case"longest-path":gt(e);break;default:ne(e)}}d(nn,"rank");var gt=H;function tn(e){H(e),fe(e)}d(tn,"tightTreeRanker");function ne(e){k(e)}d(ne,"networkSimplexRanker");function on(e){var n=E(e,"root",{},"_root"),t=rn(e),o=x(I(t))-1,r=2*o+1;e.graph().nestingRoot=n,f(e.edges(),function(a){e.edge(a).minlen*=r});var i=an(e)+1;f(e.children(),function(a){be(e,n,r,i,o,t,a)}),e.graph().nodeRankFactor=r}d(on,"run");function be(e,n,t,o,r,i,a){var u=e.children(a);if(!u.length){a!==n&&e.setEdge(n,a,{weight:0,minlen:t});return}var s=J(e,"_bt"),c=J(e,"_bb"),h=e.node(a);e.setParent(s,a),h.borderTop=s,e.setParent(c,a),h.borderBottom=c,f(u,function(g){be(e,n,t,o,r,i,g);var l=e.node(g),p=l.borderTop?l.borderTop:g,v=l.borderBottom?l.borderBottom:g,w=l.borderTop?o:2*o,L=p!==v?1:r-i[a]+1;e.setEdge(s,p,{weight:w,minlen:L,nestingEdge:!0}),e.setEdge(v,c,{weight:w,minlen:L,nestingEdge:!0})}),e.parent(a)||e.setEdge(n,s,{weight:0,minlen:r+i[a]})}d(be,"dfs");function rn(e){var n={};function t(o,r){var i=e.children(o);i&&i.length&&f(i,function(a){t(a,r+1)}),n[o]=r}return d(t,"dfs"),f(e.children(),function(o){t(o,1)}),n}d(rn,"treeDepths");function an(e){return q(e.edges(),function(n,t){return n+e.edge(t).weight},0)}d(an,"sumWeights");function un(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f(e.edges(),function(t){var o=e.edge(t);o.nestingEdge&&e.removeEdge(t)})}d(un,"cleanup");function dn(e,n,t){var o={},r;f(t,function(i){for(var a=e.parent(i),u,s;a;){if(u=e.parent(a),u?(s=o[u],o[u]=a):(s=r,r=a),s&&s!==a){n.setEdge(s,a);return}a=u}})}d(dn,"addSubgraphConstraints");function sn(e,n,t){var o=cn(e),r=new y({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(i){return e.node(i)});return f(e.nodes(),function(i){var a=e.node(i),u=e.parent(i);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(r.setNode(i),r.setParent(i,u||o),f(e[t](i),function(s){var c=s.v===i?s.w:s.v,h=r.edge(c,i),g=b(h)?0:h.weight;r.setEdge(c,i,{weight:e.edge(s).weight+g})}),Object.prototype.hasOwnProperty.call(a,"minRank")&&r.setNode(i,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),r}d(sn,"buildLayerGraph");function cn(e){for(var n;e.hasNode(n=ie("_root")););return n}d(cn,"createRootNode");function fn(e,n){for(var t=0,o=1;o<n.length;++o)t+=hn(e,n[o-1],n[o]);return t}d(fn,"crossCount");function hn(e,n,t){for(var o=it(t,m(t,function(c,h){return h})),r=R(m(n,function(c){return j(m(e.outEdges(c),function(h){return{pos:o[h.w],weight:e.edge(h).weight}}),"pos")})),i=1;i<t.length;)i<<=1;var a=2*i-1;i-=1;var u=m(new Array(a),function(){return 0}),s=0;return f(r.forEach(function(c){var h=c.pos+i;u[h]+=c.weight;for(var g=0;h>0;)h%2&&(g+=u[h+1]),h=h-1>>1,u[h]+=c.weight;s+=c.weight*g})),s}d(hn,"twoLayerCrossCount");function gn(e){var n={},t=T(e.nodes(),function(u){return!e.children(u).length}),o=x(m(t,function(u){return e.node(u).rank})),r=m(O(o+1),function(){return[]});function i(u){if(!Ne(n,u)){n[u]=!0;var s=e.node(u);r[s.rank].push(u),f(e.successors(u),i)}}d(i,"dfs");var a=j(t,function(u){return e.node(u).rank});return f(a,i),r}d(gn,"initOrder");function ln(e,n){return m(n,function(t){var o=e.inEdges(t);if(o.length){var r=q(o,function(i,a){var u=e.edge(a),s=e.node(a.v);return{sum:i.sum+u.weight*s.order,weight:i.weight+u.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}else return{v:t}})}d(ln,"barycenter");function pn(e,n){var t={};f(e,function(r,i){var a=t[r.v]={indegree:0,in:[],out:[],vs:[r.v],i};b(r.barycenter)||(a.barycenter=r.barycenter,a.weight=r.weight)}),f(n.edges(),function(r){var i=t[r.v],a=t[r.w];!b(i)&&!b(a)&&(a.indegree++,i.out.push(t[r.w]))});var o=T(t,function(r){return!r.indegree});return vn(o)}d(pn,"resolveConflicts");function vn(e){var n=[];function t(i){return function(a){a.merged||(b(a.barycenter)||b(i.barycenter)||a.barycenter>=i.barycenter)&&mn(i,a)}}d(t,"handleIn");function o(i){return function(a){a.in.push(i),--a.indegree===0&&e.push(a)}}for(d(o,"handleOut");e.length;){var r=e.pop();n.push(r),f(r.in.reverse(),t(r)),f(r.out,o(r))}return m(T(n,function(i){return!i.merged}),function(i){return Y(i,["vs","i","barycenter","weight"])})}d(vn,"doResolveConflicts");function mn(e,n){var t=0,o=0;e.weight&&(t+=e.barycenter*e.weight,o+=e.weight),n.weight&&(t+=n.barycenter*n.weight,o+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=t/o,e.weight=o,e.i=Math.min(n.i,e.i),n.merged=!0}d(mn,"mergeEntries");function wn(e,n){var t=Le(e,function(h){return Object.prototype.hasOwnProperty.call(h,"barycenter")}),o=t.lhs,r=j(t.rhs,function(h){return-h.i}),i=[],a=0,u=0,s=0;o.sort(bn(!!n)),s=te(i,r,s),f(o,function(h){s+=h.vs.length,i.push(h.vs),a+=h.barycenter*h.weight,u+=h.weight,s=te(i,r,s)});var c={vs:R(i)};return u&&(c.barycenter=a/u,c.weight=u),c}d(wn,"sort");function te(e,n,t){for(var o;n.length&&(o=D(n)).i<=t;)n.pop(),e.push(o.vs),t++;return t}d(te,"consumeUnsortable");function bn(e){return function(n,t){return n.barycenter<t.barycenter?-1:n.barycenter>t.barycenter?1:e?t.i-n.i:n.i-t.i}}d(bn,"compareWithBias");function ye(e,n,t,o){var r=e.children(n),i=e.node(n),a=i?i.borderLeft:void 0,u=i?i.borderRight:void 0,s={};a&&(r=T(r,function(v){return v!==a&&v!==u}));var c=ln(e,r);f(c,function(v){if(e.children(v.v).length){var w=ye(e,v.v,t,o);s[v.v]=w,Object.prototype.hasOwnProperty.call(w,"barycenter")&&kn(v,w)}});var h=pn(c,t);yn(h,s);var g=wn(h,o);if(a&&(g.vs=R([a,g.vs,u]),e.predecessors(a).length)){var l=e.node(e.predecessors(a)[0]),p=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+l.order+p.order)/(g.weight+2),g.weight+=2}return g}d(ye,"sortSubgraph");function yn(e,n){f(e,function(t){t.vs=R(t.vs.map(function(o){return n[o]?n[o].vs:o}))})}d(yn,"expandSubgraphs");function kn(e,n){b(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}d(kn,"mergeBarycenters");function xn(e){var n=se(e),t=oe(e,O(1,n+1),"inEdges"),o=oe(e,O(n-1,-1,-1),"outEdges"),r=gn(e);re(e,r);for(var i=Number.POSITIVE_INFINITY,a,u=0,s=0;s<4;++u,++s){En(u%2?t:o,u%4>=2),r=M(e);var c=fn(e,r);c<i&&(s=0,a=at(r),i=c)}re(e,a)}d(xn,"order");function oe(e,n,t){return m(n,function(o){return sn(e,o,t)})}d(oe,"buildLayerGraphs");function En(e,n){var t=new y;f(e,function(o){var r=o.graph().root,i=ye(o,r,t,n);f(i.vs,function(a,u){o.node(a).order=u}),dn(o,t,i.vs)})}d(En,"sweepLayerGraphs");function re(e,n){f(n,function(t){f(t,function(o,r){e.node(o).order=r})})}d(re,"assignOrder");function Nn(e){var n=In(e);f(e.graph().dummyChains,function(t){for(var o=e.node(t),r=o.edgeObj,i=On(e,n,r.v,r.w),a=i.path,u=i.lca,s=0,c=a[s],h=!0;t!==r.w;){if(o=e.node(t),h){for(;(c=a[s])!==u&&e.node(c).maxRank<o.rank;)s++;c===u&&(h=!1)}if(!h){for(;s<a.length-1&&e.node(c=a[s+1]).minRank<=o.rank;)s++;c=a[s]}e.setParent(t,c),t=e.successors(t)[0]}})}d(Nn,"parentDummyChains");function On(e,n,t,o){var r=[],i=[],a=Math.min(n[t].low,n[o].low),u=Math.max(n[t].lim,n[o].lim),s,c;s=t;do s=e.parent(s),r.push(s);while(s&&(n[s].low>a||u>n[s].lim));for(c=s,s=o;(s=e.parent(s))!==c;)i.push(s);return{path:r.concat(i.reverse()),lca:c}}d(On,"findPath");function In(e){var n={},t=0;function o(r){var i=t;f(e.children(r),o),n[r]={low:i,lim:t++}}return d(o,"dfs"),f(e.children(),o),n}d(In,"postorder");function Pn(e,n){var t={};function o(r,i){var a=0,u=0,s=r.length,c=D(i);return f(i,function(h,g){var l=Cn(e,h),p=l?e.node(l).order:s;(l||h===c)&&(f(i.slice(u,g+1),function(v){f(e.predecessors(v),function(w){var L=e.node(w),xe=L.order;(xe<a||p<xe)&&!(L.dummy&&e.node(v).dummy)&&ke(t,w,v)})}),u=g+1,a=p)}),i}return d(o,"visitLayer"),q(n,o),t}d(Pn,"findType1Conflicts");function Ln(e,n){var t={};function o(i,a,u,s,c){var h;f(O(a,u),function(g){h=i[g],e.node(h).dummy&&f(e.predecessors(h),function(l){var p=e.node(l);p.dummy&&(p.order<s||p.order>c)&&ke(t,l,h)})})}d(o,"scan");function r(i,a){var u=-1,s,c=0;return f(a,function(h,g){if(e.node(h).dummy==="border"){var l=e.predecessors(h);l.length&&(s=e.node(l[0]).order,o(a,c,g,u,s),c=g,u=s)}o(a,c,a.length,s,i.length)}),a}return d(r,"visitLayer"),q(n,r),t}d(Ln,"findType2Conflicts");function Cn(e,n){if(e.node(n).dummy)return ue(e.predecessors(n),function(t){return e.node(t).dummy})}d(Cn,"findOtherInnerSegmentNode");function ke(e,n,t){if(n>t){var o=n;n=t,t=o}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var r=e[n];Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:!0,writable:!0})}d(ke,"addConflict");function _n(e,n,t){if(n>t){var o=n;n=t,t=o}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],t)}d(_n,"hasConflict");function Rn(e,n,t,o){var r={},i={},a={};return f(n,function(u){f(u,function(s,c){r[s]=s,i[s]=s,a[s]=c})}),f(n,function(u){var s=-1;f(u,function(c){var h=o(c);if(h.length){h=j(h,function(w){return a[w]});for(var g=(h.length-1)/2,l=Math.floor(g),p=Math.ceil(g);l<=p;++l){var v=h[l];i[c]===c&&s<a[v]&&!_n(t,c,v)&&(i[v]=c,i[c]=r[c]=r[v],s=a[v])}}})}),{root:r,align:i}}d(Rn,"verticalAlignment");function Tn(e,n,t,o,r){var i={},a=jn(e,n,t,r),u=r?"borderLeft":"borderRight";function s(g,l){for(var p=a.nodes(),v=p.pop(),w={};v;)w[v]?g(v):(w[v]=!0,p.push(v),p=p.concat(l(v))),v=p.pop()}d(s,"iterate");function c(g){i[g]=a.inEdges(g).reduce(function(l,p){return Math.max(l,i[p.v]+a.edge(p))},0)}d(c,"pass1");function h(g){var l=a.outEdges(g).reduce(function(v,w){return Math.min(v,i[w.w]-a.edge(w))},Number.POSITIVE_INFINITY),p=e.node(g);l!==Number.POSITIVE_INFINITY&&p.borderType!==u&&(i[g]=Math.max(i[g],l))}return d(h,"pass2"),s(c,a.predecessors.bind(a)),s(h,a.successors.bind(a)),f(o,function(g){i[g]=i[t[g]]}),i}d(Tn,"horizontalCompaction");function jn(e,n,t,o){var r=new y,i=e.graph(),a=Gn(i.nodesep,i.edgesep,o);return f(n,function(u){var s;f(u,function(c){var h=t[c];if(r.setNode(h),s){var g=t[s],l=r.edge(g,h);r.setEdge(g,h,Math.max(a(e,c,s),l||0))}s=c})}),r}d(jn,"buildBlockGraph");function Mn(e,n){return ae(I(n),function(t){var o=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return ut(t,function(i,a){var u=Vn(e,a)/2;o=Math.max(i+u,o),r=Math.min(i-u,r)}),o-r})}d(Mn,"findSmallestWidthAlignment");function Sn(e,n){var t=I(n),o=C(t),r=x(t);f(["u","d"],function(i){f(["l","r"],function(a){var u=i+a,s=e[u],c;if(s!==n){var h=I(s);c=a==="l"?o-C(h):r-x(h),c&&(e[u]=A(s,function(g){return g+c}))}})})}d(Sn,"alignCoordinates");function Bn(e,n){return A(e.ul,function(t,o){if(n)return e[n.toLowerCase()][o];var r=j(m(e,o));return(r[1]+r[2])/2})}d(Bn,"balance");function Fn(e){var n=M(e),t=X(Pn(e,n),Ln(e,n)),o={},r;f(["u","d"],function(a){r=a==="u"?n:I(n).reverse(),f(["l","r"],function(u){u==="r"&&(r=m(r,function(g){return I(g).reverse()}));var s=(a==="u"?e.predecessors:e.successors).bind(e),c=Rn(e,r,t,s),h=Tn(e,r,c.root,c.align,u==="r");u==="r"&&(h=A(h,function(g){return-g})),o[a+u]=h})});var i=Mn(e,o);return Sn(o,i),Bn(o,e.graph().align)}d(Fn,"positionX");function Gn(e,n,t){return function(o,r,i){var a=o.node(r),u=o.node(i),s=0,c;if(s+=a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":c=-a.width/2;break;case"r":c=a.width/2;break}if(c&&(s+=t?c:-c),c=0,s+=(a.dummy?n:e)/2,s+=(u.dummy?n:e)/2,s+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2;break}return c&&(s+=t?c:-c),c=0,s}}d(Gn,"sep");function Vn(e,n){return e.node(n).width}d(Vn,"width");function Yn(e){e=de(e),Dn(e),dt(Fn(e),function(n,t){e.node(t).x=n})}d(Yn,"position");function Dn(e){var n=M(e),t=e.graph().ranksep,o=0;f(n,function(r){var i=x(m(r,function(a){return e.node(a).height}));f(r,function(a){e.node(a).y=o+i/2}),o+=i+t})}d(Dn,"positionY");function lt(e,n){var t=n&&n.debugTiming?Ce:_e;t("layout",()=>{var o=t(" buildLayoutGraph",()=>qn(e));t(" runLayout",()=>zn(o,t)),t(" updateInputGraph",()=>An(e,o))})}d(lt,"layout");function zn(e,n){n(" makeSpaceForEdgeLabels",()=>Hn(e)),n(" removeSelfEdges",()=>et(e)),n(" acyclic",()=>Ye(e)),n(" nestingGraph.run",()=>on(e)),n(" rank",()=>nn(de(e))),n(" injectEdgeLabelProxies",()=>Wn(e)),n(" removeEmptyRanks",()=>Pe(e)),n(" nestingGraph.cleanup",()=>un(e)),n(" normalizeRanks",()=>Ie(e)),n(" assignRankMinMax",()=>$n(e)),n(" removeEdgeLabelProxies",()=>Xn(e)),n(" normalize.run",()=>Ae(e)),n(" parentDummyChains",()=>Nn(e)),n(" addBorderSegments",()=>Re(e)),n(" order",()=>xn(e)),n(" insertSelfEdges",()=>nt(e)),n(" adjustCoordinateSystem",()=>Te(e)),n(" position",()=>Yn(e)),n(" positionSelfEdges",()=>tt(e)),n(" removeBorderNodes",()=>Zn(e)),n(" normalize.undo",()=>He(e)),n(" fixupEdgeLabelCoords",()=>Qn(e)),n(" undoCoordinateSystem",()=>je(e)),n(" translateGraph",()=>Kn(e)),n(" assignNodeIntersects",()=>Jn(e)),n(" reversePoints",()=>Un(e)),n(" acyclic.undo",()=>ze(e))}d(zn,"runLayout");function An(e,n){f(e.nodes(),function(t){var o=e.node(t),r=n.node(t);o&&(o.x=r.x,o.y=r.y,n.children(t).length&&(o.width=r.width,o.height=r.height))}),f(e.edges(),function(t){var o=e.edge(t),r=n.edge(t);o.points=r.points,Object.prototype.hasOwnProperty.call(r,"x")&&(o.x=r.x,o.y=r.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}d(An,"updateInputGraph");var pt=["nodesep","edgesep","ranksep","marginx","marginy"],vt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},mt=["acyclicer","ranker","rankdir","align"],wt=["width","height"],bt={width:0,height:0},yt=["minlen","weight","width","height","labeloffset"],kt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},xt=["labelpos"];function qn(e){var n=new y({multigraph:!0,compound:!0}),t=V(e.graph());return n.setGraph(X({},vt,G(t,pt),Y(t,mt))),f(e.nodes(),function(o){var r=V(e.node(o));n.setNode(o,ot(G(r,wt),bt)),n.setParent(o,e.parent(o))}),f(e.edges(),function(o){var r=V(e.edge(o));n.setEdge(o,X({},kt,G(r,yt),Y(r,xt)))}),n}d(qn,"buildLayoutGraph");function Hn(e){var n=e.graph();n.ranksep/=2,f(e.edges(),function(t){var o=e.edge(t);o.minlen*=2,o.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?o.width+=o.labeloffset:o.height+=o.labeloffset)})}d(Hn,"makeSpaceForEdgeLabels");function Wn(e){f(e.edges(),function(n){var t=e.edge(n);if(t.width&&t.height){var o=e.node(n.v),r=e.node(n.w),i={rank:(r.rank-o.rank)/2+o.rank,e:n};E(e,"edge-proxy",i,"_ep")}})}d(Wn,"injectEdgeLabelProxies");function $n(e){var n=0;f(e.nodes(),function(t){var o=e.node(t);o.borderTop&&(o.minRank=e.node(o.borderTop).rank,o.maxRank=e.node(o.borderBottom).rank,n=x(n,o.maxRank))}),e.graph().maxRank=n}d($n,"assignRankMinMax");function Xn(e){f(e.nodes(),function(n){var t=e.node(n);t.dummy==="edge-proxy"&&(e.edge(t.e).labelRank=t.rank,e.removeNode(n))})}d(Xn,"removeEdgeLabelProxies");function Kn(e){var n=Number.POSITIVE_INFINITY,t=0,o=Number.POSITIVE_INFINITY,r=0,i=e.graph(),a=i.marginx||0,u=i.marginy||0;function s(c){var h=c.x,g=c.y,l=c.width,p=c.height;n=Math.min(n,h-l/2),t=Math.max(t,h+l/2),o=Math.min(o,g-p/2),r=Math.max(r,g+p/2)}d(s,"getExtremes"),f(e.nodes(),function(c){s(e.node(c))}),f(e.edges(),function(c){var h=e.edge(c);Object.prototype.hasOwnProperty.call(h,"x")&&s(h)}),n-=a,o-=u,f(e.nodes(),function(c){var h=e.node(c);h.x-=n,h.y-=o}),f(e.edges(),function(c){var h=e.edge(c);f(h.points,function(g){g.x-=n,g.y-=o}),Object.prototype.hasOwnProperty.call(h,"x")&&(h.x-=n),Object.prototype.hasOwnProperty.call(h,"y")&&(h.y-=o)}),i.width=t-n+a,i.height=r-o+u}d(Kn,"translateGraph");function Jn(e){f(e.edges(),function(n){var t=e.edge(n),o=e.node(n.v),r=e.node(n.w),i,a;t.points?(i=t.points[0],a=t.points[t.points.length-1]):(t.points=[],i=r,a=o),t.points.unshift(K(o,i)),t.points.push(K(r,a))})}d(Jn,"assignNodeIntersects");function Qn(e){f(e.edges(),function(n){var t=e.edge(n);if(Object.prototype.hasOwnProperty.call(t,"x"))switch((t.labelpos==="l"||t.labelpos==="r")&&(t.width-=t.labeloffset),t.labelpos){case"l":t.x-=t.width/2+t.labeloffset;break;case"r":t.x+=t.width/2+t.labeloffset;break}})}d(Qn,"fixupEdgeLabelCoords");function Un(e){f(e.edges(),function(n){var t=e.edge(n);t.reversed&&t.points.reverse()})}d(Un,"reversePointsForReversedEdges");function Zn(e){f(e.nodes(),function(n){if(e.children(n).length){var t=e.node(n),o=e.node(t.borderTop),r=e.node(t.borderBottom),i=e.node(D(t.borderLeft)),a=e.node(D(t.borderRight));t.width=Math.abs(a.x-i.x),t.height=Math.abs(r.y-o.y),t.x=i.x+t.width/2,t.y=o.y+t.height/2}}),f(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}d(Zn,"removeBorderNodes");function et(e){f(e.edges(),function(n){if(n.v===n.w){var t=e.node(n.v);t.selfEdges||(t.selfEdges=[]),t.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}d(et,"removeSelfEdges");function nt(e){var n=M(e);f(n,function(t){var o=0;f(t,function(r,i){var a=e.node(r);a.order=i+o,f(a.selfEdges,function(u){E(e,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:i+ ++o,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}d(nt,"insertSelfEdges");function tt(e){f(e.nodes(),function(n){var t=e.node(n);if(t.dummy==="selfedge"){var o=e.node(t.e.v),r=o.x+o.width/2,i=o.y,a=t.x-r,u=o.height/2;e.setEdge(t.e,t.label),e.removeNode(n),t.label.points=[{x:r+2*a/3,y:i-u},{x:r+5*a/6,y:i-u},{x:r+a,y:i},{x:r+5*a/6,y:i+u},{x:r+2*a/3,y:i+u}],t.label.x=t.x,t.label.y=t.y}})}d(tt,"positionSelfEdges");function G(e,n){return A(Y(e,n),Number)}d(G,"selectNumberAttrs");function V(e){var n={};return f(e,function(t,o){n[o.toLowerCase()]=t}),n}d(V,"canonicalize");export{lt as f};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as Zt}from"./chunk-6764PJDD-
|
|
1
|
+
import{m as Zt}from"./chunk-6764PJDD-Cppb-jH-.js";import{y as Jt}from"./chunk-ZXARS5L4-wcrIaQvY.js";import{m as d,p as _,q as w,j as te,k as ee,s as se,e as ie,a as re,l as ae,n as ne,o as oe,an as le,C as K,u as ce}from"./index-VTKdaklA.js";var Ct=function(){var t=d(function(Y,o,n,g){for(n=n||{},g=Y.length;g--;n[Y[g]]=o);return n},"o"),e=[1,2],i=[1,3],a=[1,4],r=[2,4],l=[1,9],h=[1,11],y=[1,16],u=[1,17],S=[1,18],m=[1,19],E=[1,33],x=[1,20],O=[1,21],I=[1,22],R=[1,23],$=[1,24],p=[1,26],v=[1,27],L=[1,28],F=[1,29],M=[1,30],G=[1,31],W=[1,32],it=[1,35],rt=[1,36],at=[1,37],nt=[1,38],H=[1,34],f=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ot=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],vt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],mt={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:d(function(Y,o,n,g,k,s,T){var c=s.length-1;switch(k){case 3:return g.setRootDoc(s[c]),s[c];case 4:this.$=[];break;case 5:s[c]!="nl"&&(s[c-1].push(s[c]),this.$=s[c-1]);break;case 6:case 7:this.$=s[c];break;case 8:this.$="nl";break;case 12:this.$=s[c];break;case 13:let ht=s[c-1];ht.description=g.trimColon(s[c]),this.$=ht;break;case 14:this.$={stmt:"relation",state1:s[c-2],state2:s[c]};break;case 15:let dt=g.trimColon(s[c]);this.$={stmt:"relation",state1:s[c-3],state2:s[c-1],description:dt};break;case 19:this.$={stmt:"state",id:s[c-3],type:"default",description:"",doc:s[c-1]};break;case 20:var B=s[c],q=s[c-2].trim();if(s[c].match(":")){var ct=s[c].split(":");B=ct[0],q=[q,ct[1]]}this.$={stmt:"state",id:B,type:"default",description:q};break;case 21:this.$={stmt:"state",id:s[c-3],type:"default",description:s[c-5],doc:s[c-1]};break;case 22:this.$={stmt:"state",id:s[c],type:"fork"};break;case 23:this.$={stmt:"state",id:s[c],type:"join"};break;case 24:this.$={stmt:"state",id:s[c],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:s[c-1].trim(),note:{position:s[c-2].trim(),text:s[c].trim()}};break;case 29:this.$=s[c].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=s[c].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:s[c-3],url:s[c-2],tooltip:s[c-1]};break;case 33:this.$={stmt:"click",id:s[c-3],url:s[c-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:s[c-1].trim(),classes:s[c].trim()};break;case 36:this.$={stmt:"style",id:s[c-1].trim(),styleClass:s[c].trim()};break;case 37:this.$={stmt:"applyClass",id:s[c-1].trim(),styleClass:s[c].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:s[c].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:s[c-2].trim(),classes:[s[c].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:s[c-2].trim(),classes:[s[c].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:i,6:a},{1:[3]},{3:5,4:e,5:i,6:a},{3:6,4:e,5:i,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:l,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:u,19:S,22:m,24:E,25:x,26:O,27:I,28:R,29:$,32:25,33:p,35:v,37:L,38:F,41:M,45:G,48:W,51:it,52:rt,53:at,54:nt,57:H},t(f,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:y,17:u,19:S,22:m,24:E,25:x,26:O,27:I,28:R,29:$,32:25,33:p,35:v,37:L,38:F,41:M,45:G,48:W,51:it,52:rt,53:at,54:nt,57:H},t(f,[2,7]),t(f,[2,8]),t(f,[2,9]),t(f,[2,10]),t(f,[2,11]),t(f,[2,12],{14:[1,40],15:[1,41]}),t(f,[2,16]),{18:[1,42]},t(f,[2,18],{20:[1,43]}),{23:[1,44]},t(f,[2,22]),t(f,[2,23]),t(f,[2,24]),t(f,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(f,[2,28]),{34:[1,49]},{36:[1,50]},t(f,[2,31]),{13:51,24:E,57:H},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ot,[2,44],{58:[1,56]}),t(ot,[2,45],{58:[1,57]}),t(f,[2,38]),t(f,[2,39]),t(f,[2,40]),t(f,[2,41]),t(f,[2,6]),t(f,[2,13]),{13:58,24:E,57:H},t(f,[2,17]),t(vt,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(f,[2,29]),t(f,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(f,[2,14],{14:[1,71]}),{4:l,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:u,19:S,21:[1,72],22:m,24:E,25:x,26:O,27:I,28:R,29:$,32:25,33:p,35:v,37:L,38:F,41:M,45:G,48:W,51:it,52:rt,53:at,54:nt,57:H},t(f,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(f,[2,34]),t(f,[2,35]),t(f,[2,36]),t(f,[2,37]),t(ot,[2,46]),t(ot,[2,47]),t(f,[2,15]),t(f,[2,19]),t(vt,r,{7:78}),t(f,[2,26]),t(f,[2,27]),{5:[1,79]},{5:[1,80]},{4:l,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:u,19:S,21:[1,81],22:m,24:E,25:x,26:O,27:I,28:R,29:$,32:25,33:p,35:v,37:L,38:F,41:M,45:G,48:W,51:it,52:rt,53:at,54:nt,57:H},t(f,[2,32]),t(f,[2,33]),t(f,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:d(function(Y,o){if(o.recoverable)this.trace(Y);else{var n=new Error(Y);throw n.hash=o,n}},"parseError"),parse:d(function(Y){var o=this,n=[0],g=[],k=[null],s=[],T=this.table,c="",B=0,q=0,ct=0,ht=2,dt=1,qt=s.slice.call(arguments,1),b=Object.create(this.lexer),j={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(j.yy[St]=this.yy[St]);b.setInput(Y,j.yy),j.yy.lexer=b,j.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var kt=b.yylloc;s.push(kt);var Vt=b.options&&b.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Qt(A){n.length=n.length-2*A,k.length=k.length-A,s.length=s.length-A}d(Qt,"popStack");function Lt(){var A;return A=g.pop()||b.lex()||dt,typeof A!="number"&&(A instanceof Array&&(g=A,A=g.pop()),A=o.symbols_[A]||A),A}d(Lt,"lex");for(var C,_t,U,N,we,Tt,V={},ut,P,It,pt;;){if(U=n[n.length-1],this.defaultActions[U]?N=this.defaultActions[U]:((C===null||typeof C>"u")&&(C=Lt()),N=T[U]&&T[U][C]),typeof N>"u"||!N.length||!N[0]){var bt="";pt=[];for(ut in T[U])this.terminals_[ut]&&ut>ht&&pt.push("'"+this.terminals_[ut]+"'");b.showPosition?bt="Parse error on line "+(B+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+pt.join(", ")+", got '"+(this.terminals_[C]||C)+"'":bt="Parse error on line "+(B+1)+": Unexpected "+(C==dt?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(bt,{text:b.match,token:this.terminals_[C]||C,line:b.yylineno,loc:kt,expected:pt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+C);switch(N[0]){case 1:n.push(C),k.push(b.yytext),s.push(b.yylloc),n.push(N[1]),C=null,_t?(C=_t,_t=null):(q=b.yyleng,c=b.yytext,B=b.yylineno,kt=b.yylloc,ct>0);break;case 2:if(P=this.productions_[N[1]][1],V.$=k[k.length-P],V._$={first_line:s[s.length-(P||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(P||1)].first_column,last_column:s[s.length-1].last_column},Vt&&(V._$.range=[s[s.length-(P||1)].range[0],s[s.length-1].range[1]]),Tt=this.performAction.apply(V,[c,q,B,j.yy,N[1],k,s].concat(qt)),typeof Tt<"u")return Tt;P&&(n=n.slice(0,-1*P*2),k=k.slice(0,-1*P),s=s.slice(0,-1*P)),n.push(this.productions_[N[1]][0]),k.push(V.$),s.push(V._$),It=T[n[n.length-2]][n[n.length-1]],n.push(It);break;case 3:return!0}}return!0},"parse")},Ht=function(){var Y={EOF:1,parseError:d(function(o,n){if(this.yy.parser)this.yy.parser.parseError(o,n);else throw new Error(o)},"parseError"),setInput:d(function(o,n){return this.yy=n||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var n=o.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:d(function(o){var n=o.length,g=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var k=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===k.length?this.yylloc.first_column:0)+k[k.length-g.length].length-g[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(o){this.unput(this.match.slice(o))},"less"),pastInput:d(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var o=this.pastInput(),n=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as l,i as n,ao as o,f as d,g as p}from"./index-
|
|
1
|
+
import{m as l,i as n,ao as o,f as d,g as p}from"./index-VTKdaklA.js";var x=d(p()),y=l((a,t)=>{let e=a.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(let r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),h=l((a,t)=>{let e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};y(a,e).lower()},"drawBackgroundRect"),g=l((a,t)=>{let e=t.text.replace(o," "),r=a.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);let s=r.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),r},"drawText"),f=l((a,t,e,r)=>{let s=a.append("image");s.attr("x",t),s.attr("y",e);let i=(0,x.sanitizeUrl)(r);s.attr("xlink:href",i)},"drawImage"),m=l((a,t,e,r)=>{let s=a.append("use");s.attr("x",t),s.attr("y",e);let i=(0,x.sanitizeUrl)(r);s.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),w=l(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),u=l(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),k=l(()=>{let a=n(".mermaidTooltip");return a.empty()&&(a=n("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),a},"createTooltip");export{f as E,u as G,k as T,g as f,h as g,m as h,w as u,y as x};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as ie}from"./chunk-AZZRMDJM-DIDkQA4V.js";import{T as ae}from"./chunk-LII3EMHJ-Bzh9SNgD.js";import{m as ne}from"./chunk-6764PJDD-p1sGJgVm.js";import{y as re}from"./chunk-ZXARS5L4-BfFdV1tf.js";import{m as A,p as Ot,q as F,M as ue,j as le,k as wt,i as At,B as oe,e as ce,s as he,l as pe,a as de,n as Ae,o as ye,C as v,u as me,t as be,d as ge,al as z}from"./index-B5WxtMpv.js";var Rt=function(){var s=A(function(x,o,p,u){for(p=p||{},u=x.length;u--;p[x[u]]=o);return p},"o"),i=[1,18],a=[1,19],n=[1,20],r=[1,41],l=[1,26],h=[1,42],y=[1,24],c=[1,25],b=[1,32],B=[1,33],M=[1,34],g=[1,45],mt=[1,35],bt=[1,36],gt=[1,37],Ct=[1,38],ft=[1,27],kt=[1,28],Et=[1,29],Tt=[1,30],Dt=[1,31],C=[1,44],f=[1,46],k=[1,43],E=[1,47],Ft=[1,9],d=[1,8,9],tt=[1,58],et=[1,59],st=[1,60],it=[1,61],at=[1,62],Bt=[1,63],_t=[1,64],S=[1,8,9,41],Pt=[1,77],G=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],nt=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],rt=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Mt=[13,60,68,69,70,71,72,86,100,102,103],ut=[1,103],W=[1,121],j=[1,117],Q=[1,113],X=[1,119],q=[1,114],H=[1,115],J=[1,116],V=[1,118],Z=[1,120],Gt=[22,50,60,61,82,86,87,88,89,90],Ut=[1,128],lt=[12,39],St=[1,8,9,39,41,44,46],ot=[1,8,9,22],zt=[1,153],Yt=[1,8,9,61],L=[1,8,9,22,50,60,61,82,86,87,88,89,90],$t={trace:A(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:A(function(x,o,p,u,m,t,_){var e=t.length-1;switch(m){case 8:this.$=t[e-1];break;case 9:case 10:case 13:case 15:this.$=t[e];break;case 11:case 14:this.$=t[e-2]+"."+t[e];break;case 12:case 16:this.$=t[e-1]+t[e];break;case 17:case 18:this.$=t[e-1]+"~"+t[e]+"~";break;case 19:u.addRelation(t[e]);break;case 20:t[e-1].title=u.cleanupLabel(t[e]),u.addRelation(t[e-1]);break;case 31:this.$=t[e].trim(),u.setAccTitle(this.$);break;case 32:case 33:this.$=t[e].trim(),u.setAccDescription(this.$);break;case 34:u.addClassesToNamespace(t[e-3],t[e-1][0],t[e-1][1]),u.popNamespace();break;case 35:u.addClassesToNamespace(t[e-4],t[e-1][0],t[e-1][1]),u.popNamespace();break;case 36:this.$=u.addNamespace(t[e]);break;case 37:this.$=u.addNamespace(t[e-1],t[e]);break;case 38:this.$=[[t[e]],[]];break;case 39:this.$=[[t[e-1]],[]];break;case 40:t[e][0].unshift(t[e-2]),this.$=t[e];break;case 41:this.$=[[],[t[e]]];break;case 42:this.$=[[],[t[e-1]]];break;case 43:t[e][1].unshift(t[e-2]),this.$=t[e];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=t[e];break;case 48:u.setCssClass(t[e-2],t[e]);break;case 49:u.addMembers(t[e-3],t[e-1]);break;case 51:u.setCssClass(t[e-5],t[e-3]),u.addMembers(t[e-5],t[e-1]);break;case 52:u.addAnnotation(t[e-3],t[e-1]);break;case 53:u.addAnnotation(t[e-6],t[e-4]),u.addMembers(t[e-6],t[e-1]);break;case 54:u.addAnnotation(t[e-5],t[e-3]);break;case 55:this.$=t[e],u.addClass(t[e]);break;case 56:this.$=t[e-1],u.addClass(t[e-1]),u.setClassLabel(t[e-1],t[e]);break;case 60:u.addAnnotation(t[e],t[e-2]);break;case 61:case 74:this.$=[t[e]];break;case 62:t[e].push(t[e-1]),this.$=t[e];break;case 63:break;case 64:u.addMember(t[e-1],u.cleanupLabel(t[e]));break;case 65:break;case 66:break;case 67:this.$={id1:t[e-2],id2:t[e],relation:t[e-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:t[e-3],id2:t[e],relation:t[e-1],relationTitle1:t[e-2],relationTitle2:"none"};break;case 69:this.$={id1:t[e-3],id2:t[e],relation:t[e-2],relationTitle1:"none",relationTitle2:t[e-1]};break;case 70:this.$={id1:t[e-4],id2:t[e],relation:t[e-2],relationTitle1:t[e-3],relationTitle2:t[e-1]};break;case 71:this.$=u.addNote(t[e],t[e-1]);break;case 72:this.$=u.addNote(t[e]);break;case 73:this.$=t[e-2],u.defineClass(t[e-1],t[e]);break;case 75:this.$=t[e-2].concat([t[e]]);break;case 76:u.setDirection("TB");break;case 77:u.setDirection("BT");break;case 78:u.setDirection("RL");break;case 79:u.setDirection("LR");break;case 80:this.$={type1:t[e-2],type2:t[e],lineType:t[e-1]};break;case 81:this.$={type1:"none",type2:t[e],lineType:t[e-1]};break;case 82:this.$={type1:t[e-1],type2:"none",lineType:t[e]};break;case 83:this.$={type1:"none",type2:"none",lineType:t[e]};break;case 84:this.$=u.relationType.AGGREGATION;break;case 85:this.$=u.relationType.EXTENSION;break;case 86:this.$=u.relationType.COMPOSITION;break;case 87:this.$=u.relationType.DEPENDENCY;break;case 88:this.$=u.relationType.LOLLIPOP;break;case 89:this.$=u.lineType.LINE;break;case 90:this.$=u.lineType.DOTTED_LINE;break;case 91:case 97:this.$=t[e-2],u.setClickEvent(t[e-1],t[e]);break;case 92:case 98:this.$=t[e-3],u.setClickEvent(t[e-2],t[e-1]),u.setTooltip(t[e-2],t[e]);break;case 93:this.$=t[e-2],u.setLink(t[e-1],t[e]);break;case 94:this.$=t[e-3],u.setLink(t[e-2],t[e-1],t[e]);break;case 95:this.$=t[e-3],u.setLink(t[e-2],t[e-1]),u.setTooltip(t[e-2],t[e]);break;case 96:this.$=t[e-4],u.setLink(t[e-3],t[e-2],t[e]),u.setTooltip(t[e-3],t[e-1]);break;case 99:this.$=t[e-3],u.setClickEvent(t[e-2],t[e-1],t[e]);break;case 100:this.$=t[e-4],u.setClickEvent(t[e-3],t[e-2],t[e-1]),u.setTooltip(t[e-3],t[e]);break;case 101:this.$=t[e-3],u.setLink(t[e-2],t[e]);break;case 102:this.$=t[e-4],u.setLink(t[e-3],t[e-1],t[e]);break;case 103:this.$=t[e-4],u.setLink(t[e-3],t[e-1]),u.setTooltip(t[e-3],t[e]);break;case 104:this.$=t[e-5],u.setLink(t[e-4],t[e-2],t[e]),u.setTooltip(t[e-4],t[e-1]);break;case 105:this.$=t[e-2],u.setCssStyle(t[e-1],t[e]);break;case 106:u.setCssClass(t[e-1],t[e]);break;case 107:this.$=[t[e]];break;case 108:t[e-2].push(t[e]),this.$=t[e-2];break;case 110:this.$=t[e-1]+t[e];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:l,48:h,51:y,52:c,54:b,56:B,57:M,60:g,62:mt,63:bt,64:gt,65:Ct,75:ft,76:kt,78:Et,82:Tt,83:Dt,86:C,100:f,102:k,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Ft,[2,5],{8:[1,48]}),{8:[1,49]},s(d,[2,19],{22:[1,50]}),s(d,[2,21]),s(d,[2,22]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),{34:[1,51]},{36:[1,52]},s(d,[2,33]),s(d,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:tt,69:et,70:st,71:it,72:at,73:Bt,74:_t}),{39:[1,65]},s(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(d,[2,65]),s(d,[2,66]),{16:69,60:g,86:C,100:f,102:k},{16:39,17:40,19:70,60:g,86:C,100:f,102:k,103:E},{16:39,17:40,19:71,60:g,86:C,100:f,102:k,103:E},{16:39,17:40,19:72,60:g,86:C,100:f,102:k,103:E},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:g,86:C,100:f,102:k,103:E},{13:Pt,55:76},{58:78,60:[1,79]},s(d,[2,76]),s(d,[2,77]),s(d,[2,78]),s(d,[2,79]),s(G,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:g,86:C,100:f,102:k,103:E}),s(G,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:g,86:C,100:f,102:k,103:E},{16:39,17:40,19:87,60:g,86:C,100:f,102:k,103:E},s(nt,[2,133]),s(nt,[2,134]),s(nt,[2,135]),s(nt,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Ft,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:n,42:r,46:l,48:h,51:y,52:c,54:b,56:B,57:M,60:g,62:mt,63:bt,64:gt,65:Ct,75:ft,76:kt,78:Et,82:Tt,83:Dt,86:C,100:f,102:k,103:E}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:l,48:h,51:y,52:c,54:b,56:B,57:M,60:g,62:mt,63:bt,64:gt,65:Ct,75:ft,76:kt,78:Et,82:Tt,83:Dt,86:C,100:f,102:k,103:E},s(d,[2,20]),s(d,[2,31]),s(d,[2,32]),{13:[1,91],16:39,17:40,19:90,60:g,86:C,100:f,102:k,103:E},{53:92,66:56,67:57,68:tt,69:et,70:st,71:it,72:at,73:Bt,74:_t},s(d,[2,64]),{67:93,73:Bt,74:_t},s(rt,[2,83],{66:94,68:tt,69:et,70:st,71:it,72:at}),s(K,[2,84]),s(K,[2,85]),s(K,[2,86]),s(K,[2,87]),s(K,[2,88]),s(Mt,[2,89]),s(Mt,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:r,43:23,48:h,54:b,56:B},{16:100,60:g,86:C,100:f,102:k},{41:[1,102],45:101,51:ut},{16:104,60:g,86:C,100:f,102:k},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:j,59:110,60:Q,82:X,84:111,85:112,86:q,87:H,88:J,89:V,90:Z},{60:[1,122]},{13:Pt,55:123},s(S,[2,72]),s(S,[2,138]),{22:W,50:j,59:124,60:Q,61:[1,125],82:X,84:111,85:112,86:q,87:H,88:J,89:V,90:Z},s(Gt,[2,74]),{16:39,17:40,19:126,60:g,86:C,100:f,102:k,103:E},s(G,[2,16]),s(G,[2,17]),s(G,[2,18]),{11:127,12:Ut,39:[2,36]},s(lt,[2,9],{16:85,17:86,15:130,18:[1,129],60:g,86:C,100:f,102:k,103:E}),s(lt,[2,10]),s(St,[2,55],{11:131,12:Ut}),s(Ft,[2,7]),{9:[1,132]},s(ot,[2,67]),{16:39,17:40,19:133,60:g,86:C,100:f,102:k,103:E},{13:[1,135],16:39,17:40,19:134,60:g,86:C,100:f,102:k,103:E},s(rt,[2,82],{66:136,68:tt,69:et,70:st,71:it,72:at}),s(rt,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:r,43:23,48:h,54:b,56:B},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(S,[2,48],{39:[1,142]}),{41:[1,143]},s(S,[2,50]),{41:[2,61],45:144,51:ut},{47:[1,145]},{16:39,17:40,19:146,60:g,86:C,100:f,102:k,103:E},s(d,[2,91],{13:[1,147]}),s(d,[2,93],{13:[1,149],77:[1,148]}),s(d,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(d,[2,105],{61:zt}),s(Yt,[2,107],{85:154,22:W,50:j,60:Q,82:X,86:q,87:H,88:J,89:V,90:Z}),s(L,[2,109]),s(L,[2,111]),s(L,[2,112]),s(L,[2,113]),s(L,[2,114]),s(L,[2,115]),s(L,[2,116]),s(L,[2,117]),s(L,[2,118]),s(L,[2,119]),s(d,[2,106]),s(S,[2,71]),s(d,[2,73],{61:zt}),{60:[1,155]},s(G,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:g,86:C,100:f,102:k,103:E},s(lt,[2,12]),s(St,[2,56]),{1:[2,4]},s(ot,[2,69]),s(ot,[2,68]),{16:39,17:40,19:158,60:g,86:C,100:f,102:k,103:E},s(rt,[2,80]),s(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:r,43:23,48:h,54:b,56:B},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:r,43:23,48:h,54:b,56:B},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:r,43:23,48:h,54:b,56:B},{45:163,51:ut},s(S,[2,49]),{41:[2,62]},s(S,[2,52],{39:[1,164]}),s(d,[2,60]),s(d,[2,92]),s(d,[2,94]),s(d,[2,95],{77:[1,165]}),s(d,[2,98]),s(d,[2,99],{13:[1,166]}),s(d,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:j,60:Q,82:X,84:169,85:112,86:q,87:H,88:J,89:V,90:Z},s(L,[2,110]),s(Gt,[2,75]),{14:[1,170]},s(lt,[2,11]),s(ot,[2,70]),s(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ut},s(d,[2,96]),s(d,[2,100]),s(d,[2,102]),s(d,[2,103],{77:[1,174]}),s(Yt,[2,108],{85:154,22:W,50:j,60:Q,82:X,86:q,87:H,88:J,89:V,90:Z}),s(St,[2,8]),s(S,[2,51]),{41:[1,175]},s(S,[2,54]),s(d,[2,104]),s(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:A(function(x,o){if(o.recoverable)this.trace(x);else{var p=new Error(x);throw p.hash=o,p}},"parseError"),parse:A(function(x){var o=this,p=[0],u=[],m=[null],t=[],_=this.table,e="",ht=0,Kt=0,Vt=0,Zt=2,Wt=1,te=t.slice.call(arguments,1),T=Object.create(this.lexer),w={yy:{}};for(var Nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Nt)&&(w.yy[Nt]=this.yy[Nt]);T.setInput(x,w.yy),w.yy.lexer=T,w.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var Lt=T.yylloc;t.push(Lt);var ee=T.options&&T.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se($){p.length=p.length-2*$,m.length=m.length-$,t.length=t.length-$}A(se,"popStack");function jt(){var $;return $=u.pop()||T.lex()||Wt,typeof $!="number"&&($ instanceof Array&&(u=$,$=u.pop()),$=o.symbols_[$]||$),$}A(jt,"lex");for(var D,xt,R,N,Te,It,U={},pt,I,Qt,dt;;){if(R=p[p.length-1],this.defaultActions[R]?N=this.defaultActions[R]:((D===null||typeof D>"u")&&(D=jt()),N=_[R]&&_[R][D]),typeof N>"u"||!N.length||!N[0]){var vt="";dt=[];for(pt in _[R])this.terminals_[pt]&&pt>Zt&&dt.push("'"+this.terminals_[pt]+"'");T.showPosition?vt="Parse error on line "+(ht+1)+`:
|
|
1
|
+
import{o as ie}from"./chunk-AZZRMDJM-BHlLC7p3.js";import{T as ae}from"./chunk-LII3EMHJ-Dqq0Qguw.js";import{m as ne}from"./chunk-6764PJDD-Cppb-jH-.js";import{y as re}from"./chunk-ZXARS5L4-wcrIaQvY.js";import{m as A,p as Ot,q as F,M as ue,j as le,k as wt,i as At,B as oe,e as ce,s as he,l as pe,a as de,n as Ae,o as ye,C as v,u as me,t as be,d as ge,al as z}from"./index-VTKdaklA.js";var Rt=function(){var s=A(function(x,o,p,u){for(p=p||{},u=x.length;u--;p[x[u]]=o);return p},"o"),i=[1,18],a=[1,19],n=[1,20],r=[1,41],l=[1,26],h=[1,42],y=[1,24],c=[1,25],b=[1,32],B=[1,33],M=[1,34],g=[1,45],mt=[1,35],bt=[1,36],gt=[1,37],Ct=[1,38],ft=[1,27],kt=[1,28],Et=[1,29],Tt=[1,30],Dt=[1,31],C=[1,44],f=[1,46],k=[1,43],E=[1,47],Ft=[1,9],d=[1,8,9],tt=[1,58],et=[1,59],st=[1,60],it=[1,61],at=[1,62],Bt=[1,63],_t=[1,64],S=[1,8,9,41],Pt=[1,77],G=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],nt=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],rt=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Mt=[13,60,68,69,70,71,72,86,100,102,103],ut=[1,103],W=[1,121],j=[1,117],Q=[1,113],X=[1,119],q=[1,114],H=[1,115],J=[1,116],V=[1,118],Z=[1,120],Gt=[22,50,60,61,82,86,87,88,89,90],Ut=[1,128],lt=[12,39],St=[1,8,9,39,41,44,46],ot=[1,8,9,22],zt=[1,153],Yt=[1,8,9,61],L=[1,8,9,22,50,60,61,82,86,87,88,89,90],$t={trace:A(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:A(function(x,o,p,u,m,t,_){var e=t.length-1;switch(m){case 8:this.$=t[e-1];break;case 9:case 10:case 13:case 15:this.$=t[e];break;case 11:case 14:this.$=t[e-2]+"."+t[e];break;case 12:case 16:this.$=t[e-1]+t[e];break;case 17:case 18:this.$=t[e-1]+"~"+t[e]+"~";break;case 19:u.addRelation(t[e]);break;case 20:t[e-1].title=u.cleanupLabel(t[e]),u.addRelation(t[e-1]);break;case 31:this.$=t[e].trim(),u.setAccTitle(this.$);break;case 32:case 33:this.$=t[e].trim(),u.setAccDescription(this.$);break;case 34:u.addClassesToNamespace(t[e-3],t[e-1][0],t[e-1][1]),u.popNamespace();break;case 35:u.addClassesToNamespace(t[e-4],t[e-1][0],t[e-1][1]),u.popNamespace();break;case 36:this.$=u.addNamespace(t[e]);break;case 37:this.$=u.addNamespace(t[e-1],t[e]);break;case 38:this.$=[[t[e]],[]];break;case 39:this.$=[[t[e-1]],[]];break;case 40:t[e][0].unshift(t[e-2]),this.$=t[e];break;case 41:this.$=[[],[t[e]]];break;case 42:this.$=[[],[t[e-1]]];break;case 43:t[e][1].unshift(t[e-2]),this.$=t[e];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=t[e];break;case 48:u.setCssClass(t[e-2],t[e]);break;case 49:u.addMembers(t[e-3],t[e-1]);break;case 51:u.setCssClass(t[e-5],t[e-3]),u.addMembers(t[e-5],t[e-1]);break;case 52:u.addAnnotation(t[e-3],t[e-1]);break;case 53:u.addAnnotation(t[e-6],t[e-4]),u.addMembers(t[e-6],t[e-1]);break;case 54:u.addAnnotation(t[e-5],t[e-3]);break;case 55:this.$=t[e],u.addClass(t[e]);break;case 56:this.$=t[e-1],u.addClass(t[e-1]),u.setClassLabel(t[e-1],t[e]);break;case 60:u.addAnnotation(t[e],t[e-2]);break;case 61:case 74:this.$=[t[e]];break;case 62:t[e].push(t[e-1]),this.$=t[e];break;case 63:break;case 64:u.addMember(t[e-1],u.cleanupLabel(t[e]));break;case 65:break;case 66:break;case 67:this.$={id1:t[e-2],id2:t[e],relation:t[e-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:t[e-3],id2:t[e],relation:t[e-1],relationTitle1:t[e-2],relationTitle2:"none"};break;case 69:this.$={id1:t[e-3],id2:t[e],relation:t[e-2],relationTitle1:"none",relationTitle2:t[e-1]};break;case 70:this.$={id1:t[e-4],id2:t[e],relation:t[e-2],relationTitle1:t[e-3],relationTitle2:t[e-1]};break;case 71:this.$=u.addNote(t[e],t[e-1]);break;case 72:this.$=u.addNote(t[e]);break;case 73:this.$=t[e-2],u.defineClass(t[e-1],t[e]);break;case 75:this.$=t[e-2].concat([t[e]]);break;case 76:u.setDirection("TB");break;case 77:u.setDirection("BT");break;case 78:u.setDirection("RL");break;case 79:u.setDirection("LR");break;case 80:this.$={type1:t[e-2],type2:t[e],lineType:t[e-1]};break;case 81:this.$={type1:"none",type2:t[e],lineType:t[e-1]};break;case 82:this.$={type1:t[e-1],type2:"none",lineType:t[e]};break;case 83:this.$={type1:"none",type2:"none",lineType:t[e]};break;case 84:this.$=u.relationType.AGGREGATION;break;case 85:this.$=u.relationType.EXTENSION;break;case 86:this.$=u.relationType.COMPOSITION;break;case 87:this.$=u.relationType.DEPENDENCY;break;case 88:this.$=u.relationType.LOLLIPOP;break;case 89:this.$=u.lineType.LINE;break;case 90:this.$=u.lineType.DOTTED_LINE;break;case 91:case 97:this.$=t[e-2],u.setClickEvent(t[e-1],t[e]);break;case 92:case 98:this.$=t[e-3],u.setClickEvent(t[e-2],t[e-1]),u.setTooltip(t[e-2],t[e]);break;case 93:this.$=t[e-2],u.setLink(t[e-1],t[e]);break;case 94:this.$=t[e-3],u.setLink(t[e-2],t[e-1],t[e]);break;case 95:this.$=t[e-3],u.setLink(t[e-2],t[e-1]),u.setTooltip(t[e-2],t[e]);break;case 96:this.$=t[e-4],u.setLink(t[e-3],t[e-2],t[e]),u.setTooltip(t[e-3],t[e-1]);break;case 99:this.$=t[e-3],u.setClickEvent(t[e-2],t[e-1],t[e]);break;case 100:this.$=t[e-4],u.setClickEvent(t[e-3],t[e-2],t[e-1]),u.setTooltip(t[e-3],t[e]);break;case 101:this.$=t[e-3],u.setLink(t[e-2],t[e]);break;case 102:this.$=t[e-4],u.setLink(t[e-3],t[e-1],t[e]);break;case 103:this.$=t[e-4],u.setLink(t[e-3],t[e-1]),u.setTooltip(t[e-3],t[e]);break;case 104:this.$=t[e-5],u.setLink(t[e-4],t[e-2],t[e]),u.setTooltip(t[e-4],t[e-1]);break;case 105:this.$=t[e-2],u.setCssStyle(t[e-1],t[e]);break;case 106:u.setCssClass(t[e-1],t[e]);break;case 107:this.$=[t[e]];break;case 108:t[e-2].push(t[e]),this.$=t[e-2];break;case 110:this.$=t[e-1]+t[e];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:l,48:h,51:y,52:c,54:b,56:B,57:M,60:g,62:mt,63:bt,64:gt,65:Ct,75:ft,76:kt,78:Et,82:Tt,83:Dt,86:C,100:f,102:k,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Ft,[2,5],{8:[1,48]}),{8:[1,49]},s(d,[2,19],{22:[1,50]}),s(d,[2,21]),s(d,[2,22]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),{34:[1,51]},{36:[1,52]},s(d,[2,33]),s(d,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:tt,69:et,70:st,71:it,72:at,73:Bt,74:_t}),{39:[1,65]},s(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(d,[2,65]),s(d,[2,66]),{16:69,60:g,86:C,100:f,102:k},{16:39,17:40,19:70,60:g,86:C,100:f,102:k,103:E},{16:39,17:40,19:71,60:g,86:C,100:f,102:k,103:E},{16:39,17:40,19:72,60:g,86:C,100:f,102:k,103:E},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:g,86:C,100:f,102:k,103:E},{13:Pt,55:76},{58:78,60:[1,79]},s(d,[2,76]),s(d,[2,77]),s(d,[2,78]),s(d,[2,79]),s(G,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:g,86:C,100:f,102:k,103:E}),s(G,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:g,86:C,100:f,102:k,103:E},{16:39,17:40,19:87,60:g,86:C,100:f,102:k,103:E},s(nt,[2,133]),s(nt,[2,134]),s(nt,[2,135]),s(nt,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Ft,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:n,42:r,46:l,48:h,51:y,52:c,54:b,56:B,57:M,60:g,62:mt,63:bt,64:gt,65:Ct,75:ft,76:kt,78:Et,82:Tt,83:Dt,86:C,100:f,102:k,103:E}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:l,48:h,51:y,52:c,54:b,56:B,57:M,60:g,62:mt,63:bt,64:gt,65:Ct,75:ft,76:kt,78:Et,82:Tt,83:Dt,86:C,100:f,102:k,103:E},s(d,[2,20]),s(d,[2,31]),s(d,[2,32]),{13:[1,91],16:39,17:40,19:90,60:g,86:C,100:f,102:k,103:E},{53:92,66:56,67:57,68:tt,69:et,70:st,71:it,72:at,73:Bt,74:_t},s(d,[2,64]),{67:93,73:Bt,74:_t},s(rt,[2,83],{66:94,68:tt,69:et,70:st,71:it,72:at}),s(K,[2,84]),s(K,[2,85]),s(K,[2,86]),s(K,[2,87]),s(K,[2,88]),s(Mt,[2,89]),s(Mt,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:r,43:23,48:h,54:b,56:B},{16:100,60:g,86:C,100:f,102:k},{41:[1,102],45:101,51:ut},{16:104,60:g,86:C,100:f,102:k},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:j,59:110,60:Q,82:X,84:111,85:112,86:q,87:H,88:J,89:V,90:Z},{60:[1,122]},{13:Pt,55:123},s(S,[2,72]),s(S,[2,138]),{22:W,50:j,59:124,60:Q,61:[1,125],82:X,84:111,85:112,86:q,87:H,88:J,89:V,90:Z},s(Gt,[2,74]),{16:39,17:40,19:126,60:g,86:C,100:f,102:k,103:E},s(G,[2,16]),s(G,[2,17]),s(G,[2,18]),{11:127,12:Ut,39:[2,36]},s(lt,[2,9],{16:85,17:86,15:130,18:[1,129],60:g,86:C,100:f,102:k,103:E}),s(lt,[2,10]),s(St,[2,55],{11:131,12:Ut}),s(Ft,[2,7]),{9:[1,132]},s(ot,[2,67]),{16:39,17:40,19:133,60:g,86:C,100:f,102:k,103:E},{13:[1,135],16:39,17:40,19:134,60:g,86:C,100:f,102:k,103:E},s(rt,[2,82],{66:136,68:tt,69:et,70:st,71:it,72:at}),s(rt,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:r,43:23,48:h,54:b,56:B},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(S,[2,48],{39:[1,142]}),{41:[1,143]},s(S,[2,50]),{41:[2,61],45:144,51:ut},{47:[1,145]},{16:39,17:40,19:146,60:g,86:C,100:f,102:k,103:E},s(d,[2,91],{13:[1,147]}),s(d,[2,93],{13:[1,149],77:[1,148]}),s(d,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(d,[2,105],{61:zt}),s(Yt,[2,107],{85:154,22:W,50:j,60:Q,82:X,86:q,87:H,88:J,89:V,90:Z}),s(L,[2,109]),s(L,[2,111]),s(L,[2,112]),s(L,[2,113]),s(L,[2,114]),s(L,[2,115]),s(L,[2,116]),s(L,[2,117]),s(L,[2,118]),s(L,[2,119]),s(d,[2,106]),s(S,[2,71]),s(d,[2,73],{61:zt}),{60:[1,155]},s(G,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:g,86:C,100:f,102:k,103:E},s(lt,[2,12]),s(St,[2,56]),{1:[2,4]},s(ot,[2,69]),s(ot,[2,68]),{16:39,17:40,19:158,60:g,86:C,100:f,102:k,103:E},s(rt,[2,80]),s(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:r,43:23,48:h,54:b,56:B},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:r,43:23,48:h,54:b,56:B},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:r,43:23,48:h,54:b,56:B},{45:163,51:ut},s(S,[2,49]),{41:[2,62]},s(S,[2,52],{39:[1,164]}),s(d,[2,60]),s(d,[2,92]),s(d,[2,94]),s(d,[2,95],{77:[1,165]}),s(d,[2,98]),s(d,[2,99],{13:[1,166]}),s(d,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:j,60:Q,82:X,84:169,85:112,86:q,87:H,88:J,89:V,90:Z},s(L,[2,110]),s(Gt,[2,75]),{14:[1,170]},s(lt,[2,11]),s(ot,[2,70]),s(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ut},s(d,[2,96]),s(d,[2,100]),s(d,[2,102]),s(d,[2,103],{77:[1,174]}),s(Yt,[2,108],{85:154,22:W,50:j,60:Q,82:X,86:q,87:H,88:J,89:V,90:Z}),s(St,[2,8]),s(S,[2,51]),{41:[1,175]},s(S,[2,54]),s(d,[2,104]),s(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:A(function(x,o){if(o.recoverable)this.trace(x);else{var p=new Error(x);throw p.hash=o,p}},"parseError"),parse:A(function(x){var o=this,p=[0],u=[],m=[null],t=[],_=this.table,e="",ht=0,Kt=0,Vt=0,Zt=2,Wt=1,te=t.slice.call(arguments,1),T=Object.create(this.lexer),w={yy:{}};for(var Nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Nt)&&(w.yy[Nt]=this.yy[Nt]);T.setInput(x,w.yy),w.yy.lexer=T,w.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var Lt=T.yylloc;t.push(Lt);var ee=T.options&&T.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se($){p.length=p.length-2*$,m.length=m.length-$,t.length=t.length-$}A(se,"popStack");function jt(){var $;return $=u.pop()||T.lex()||Wt,typeof $!="number"&&($ instanceof Array&&(u=$,$=u.pop()),$=o.symbols_[$]||$),$}A(jt,"lex");for(var D,xt,R,N,Te,It,U={},pt,I,Qt,dt;;){if(R=p[p.length-1],this.defaultActions[R]?N=this.defaultActions[R]:((D===null||typeof D>"u")&&(D=jt()),N=_[R]&&_[R][D]),typeof N>"u"||!N.length||!N[0]){var vt="";dt=[];for(pt in _[R])this.terminals_[pt]&&pt>Zt&&dt.push("'"+this.terminals_[pt]+"'");T.showPosition?vt="Parse error on line "+(ht+1)+`:
|
|
2
2
|
`+T.showPosition()+`
|
|
3
3
|
Expecting `+dt.join(", ")+", got '"+(this.terminals_[D]||D)+"'":vt="Parse error on line "+(ht+1)+": Unexpected "+(D==Wt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(vt,{text:T.match,token:this.terminals_[D]||D,line:T.yylineno,loc:Lt,expected:dt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+D);switch(N[0]){case 1:p.push(D),m.push(T.yytext),t.push(T.yylloc),p.push(N[1]),D=null,xt?(D=xt,xt=null):(Kt=T.yyleng,e=T.yytext,ht=T.yylineno,Lt=T.yylloc,Vt>0);break;case 2:if(I=this.productions_[N[1]][1],U.$=m[m.length-I],U._$={first_line:t[t.length-(I||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(I||1)].first_column,last_column:t[t.length-1].last_column},ee&&(U._$.range=[t[t.length-(I||1)].range[0],t[t.length-1].range[1]]),It=this.performAction.apply(U,[e,Kt,ht,w.yy,N[1],m,t].concat(te)),typeof It<"u")return It;I&&(p=p.slice(0,-1*I*2),m=m.slice(0,-1*I),t=t.slice(0,-1*I)),p.push(this.productions_[N[1]][0]),m.push(U.$),t.push(U._$),Qt=_[p[p.length-2]][p[p.length-1]],p.push(Qt);break;case 3:return!0}}return!0},"parse")},Jt=function(){var x={EOF:1,parseError:A(function(o,p){if(this.yy.parser)this.yy.parser.parseError(o,p);else throw new Error(o)},"parseError"),setInput:A(function(o,p){return this.yy=p||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:A(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var p=o.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:A(function(o){var p=o.length,u=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var t=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===m.length?this.yylloc.first_column:0)+m[m.length-u.length].length-u[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:A(function(){return this._more=!0,this},"more"),reject:A(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:A(function(o){this.unput(this.match.slice(o))},"less"),pastInput:A(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:A(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:A(function(){var o=this.pastInput(),p=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as s}from"./index-
|
|
1
|
+
import{m as s}from"./index-VTKdaklA.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as a}from"./index-B5WxtMpv.js";var hi=typeof global=="object"&&global&&global.Object===Object&&global,Ht=hi,pi=typeof self=="object"&&self&&self.Object===Object&&self,di=Ht||pi||Function("return this")(),S=di,bi=S.Symbol,A=bi,qt=Object.prototype,yi=qt.hasOwnProperty,gi=qt.toString,ee=A?A.toStringTag:void 0;function Wt(e){var t=yi.call(e,ee),r=e[ee];try{e[ee]=void 0;var n=!0}catch{}var o=gi.call(e);return n&&(t?e[ee]=r:delete e[ee]),o}a(Wt,"getRawTag");var _i=Wt,ji=Object.prototype,mi=ji.toString;function Qt(e){return mi.call(e)}a(Qt,"objectToString");var Oi=Qt,wi="[object Null]",Ai="[object Undefined]",vt=A?A.toStringTag:void 0;function Zt(e){return e==null?e===void 0?Ai:wi:vt&&vt in Object(e)?_i(e):Oi(e)}a(Zt,"baseGetTag");var x=Zt;function Jt(e){return e!=null&&typeof e=="object"}a(Jt,"isObjectLike");var C=Jt,Ci="[object Symbol]";function Xt(e){return typeof e=="symbol"||C(e)&&x(e)==Ci}a(Xt,"isSymbol");var L=Xt;function Yt(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}a(Yt,"arrayMap");var H=Yt,Si=Array.isArray,b=Si,ht=A?A.prototype:void 0,pt=ht?ht.toString:void 0;function We(e){if(typeof e=="string")return e;if(b(e))return H(e,We)+"";if(L(e))return pt?pt.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}a(We,"baseToString");var Ii=We,xi=/\s/;function er(e){for(var t=e.length;t--&&xi.test(e.charAt(t)););return t}a(er,"trimmedEndIndex");var Ei=er,Pi=/^\s+/;function tr(e){return e&&e.slice(0,Ei(e)+1).replace(Pi,"")}a(tr,"baseTrim");var Mi=tr;function rr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}a(rr,"isObject");var w=rr,dt=NaN,Di=/^[-+]0x[0-9a-f]+$/i,Fi=/^0b[01]+$/i,Li=/^0o[0-7]+$/i,Ni=parseInt;function nr(e){if(typeof e=="number")return e;if(L(e))return dt;if(w(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=w(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Mi(e);var r=Fi.test(e);return r||Li.test(e)?Ni(e.slice(2),r?2:8):Di.test(e)?dt:+e}a(nr,"toNumber");var zi=nr,bt=1/0,ki=17976931348623157e292;function ar(e){if(!e)return e===0?e:0;if(e=zi(e),e===bt||e===-bt){var t=e<0?-1:1;return t*ki}return e===e?e:0}a(ar,"toFinite");var de=ar;function or(e){var t=de(e),r=t%1;return t===t?r?t-r:t:0}a(or,"toInteger");var Bi=or;function ir(e){return e}a(ir,"identity");var z=ir,Ti="[object AsyncFunction]",Ri="[object Function]",Ui="[object GeneratorFunction]",$i="[object Proxy]";function ur(e){if(!w(e))return!1;var t=x(e);return t==Ri||t==Ui||t==Ti||t==$i}a(ur,"isFunction");var ae=ur,Gi=S["__core-js_shared__"],Le=Gi,yt=function(){var e=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sr(e){return!!yt&&yt in e}a(sr,"isMasked");var Vi=sr,Ki=Function.prototype,Hi=Ki.toString;function cr(e){if(e!=null){try{return Hi.call(e)}catch{}try{return e+""}catch{}}return""}a(cr,"toSource");var k=cr,qi=/[\\^$.*+?()[\]{}|]/g,Wi=/^\[object .+?Constructor\]$/,Qi=Function.prototype,Zi=Object.prototype,Ji=Qi.toString,Xi=Zi.hasOwnProperty,Yi=RegExp("^"+Ji.call(Xi).replace(qi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fr(e){if(!w(e)||Vi(e))return!1;var t=ae(e)?Yi:Wi;return t.test(k(e))}a(fr,"baseIsNative");var eu=fr;function lr(e,t){return e==null?void 0:e[t]}a(lr,"getValue");var tu=lr;function vr(e,t){var r=tu(e,t);return eu(r)?r:void 0}a(vr,"getNative");var B=vr,ru=B(S,"WeakMap"),Be=ru,gt=Object.create,nu=function(){function e(){}return a(e,"object"),function(t){if(!w(t))return{};if(gt)return gt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),au=nu;function hr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}a(hr,"apply");var ou=hr;function pr(){}a(pr,"noop");var iu=pr;function dr(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}a(dr,"copyArray");var br=dr,uu=800,su=16,cu=Date.now;function yr(e){var t=0,r=0;return function(){var n=cu(),o=su-(n-r);if(r=n,o>0){if(++t>=uu)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}a(yr,"shortOut");var fu=yr;function gr(e){return function(){return e}}a(gr,"constant");var te=gr,lu=function(){try{var e=B(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ye=lu,vu=ye?function(e,t){return ye(e,"toString",{configurable:!0,enumerable:!1,value:te(t),writable:!0})}:z,hu=vu,pu=fu(hu),_r=pu;function jr(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}a(jr,"arrayEach");var mr=jr;function Or(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}a(Or,"baseFindIndex");var wr=Or;function Ar(e){return e!==e}a(Ar,"baseIsNaN");var du=Ar;function Cr(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}a(Cr,"strictIndexOf");var bu=Cr;function Sr(e,t,r){return t===t?bu(e,t,r):wr(e,du,r)}a(Sr,"baseIndexOf");var yu=Sr;function Ir(e,t){var r=e==null?0:e.length;return!!r&&yu(e,t,0)>-1}a(Ir,"arrayIncludes");var gu=Ir,_u=9007199254740991,ju=/^(?:0|[1-9]\d*)$/;function xr(e,t){var r=typeof e;return t=t??_u,!!t&&(r=="number"||r!="symbol"&&ju.test(e))&&e>-1&&e%1==0&&e<t}a(xr,"isIndex");var _e=xr;function Er(e,t,r){t=="__proto__"&&ye?ye(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}a(Er,"baseAssignValue");var je=Er;function Pr(e,t){return e===t||e!==e&&t!==t}a(Pr,"eq");var Y=Pr,mu=Object.prototype,Ou=mu.hasOwnProperty;function Mr(e,t,r){var n=e[t];(!(Ou.call(e,t)&&Y(n,r))||r===void 0&&!(t in e))&&je(e,t,r)}a(Mr,"assignValue");var me=Mr;function Dr(e,t,r,n){var o=!r;r||(r={});for(var i=-1,u=t.length;++i<u;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;c===void 0&&(c=e[s]),o?je(r,s,c):me(r,s,c)}return r}a(Dr,"copyObject");var ce=Dr,_t=Math.max;function Fr(e,t,r){return t=_t(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=_t(n.length-t,0),u=Array(i);++o<i;)u[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(u),ou(e,this,s)}}a(Fr,"overRest");var Lr=Fr;function Nr(e,t){return _r(Lr(e,t,z),e+"")}a(Nr,"baseRest");var Oe=Nr,wu=9007199254740991;function zr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=wu}a(zr,"isLength");var Qe=zr;function kr(e){return e!=null&&Qe(e.length)&&!ae(e)}a(kr,"isArrayLike");var I=kr;function Br(e,t,r){if(!w(r))return!1;var n=typeof t;return(n=="number"?I(r)&&_e(t,r.length):n=="string"&&t in r)?Y(r[t],e):!1}a(Br,"isIterateeCall");var oe=Br;function Tr(e){return Oe(function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,u=o>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,u&&oe(r[0],r[1],u)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,i)}return t})}a(Tr,"createAssigner");var Au=Tr,Cu=Object.prototype;function Rr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Cu;return e===r}a(Rr,"isPrototype");var we=Rr;function Ur(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}a(Ur,"baseTimes");var Su=Ur,Iu="[object Arguments]";function $r(e){return C(e)&&x(e)==Iu}a($r,"baseIsArguments");var jt=$r,Gr=Object.prototype,xu=Gr.hasOwnProperty,Eu=Gr.propertyIsEnumerable,Pu=jt(function(){return arguments}())?jt:function(e){return C(e)&&xu.call(e,"callee")&&!Eu.call(e,"callee")},Z=Pu;function Vr(){return!1}a(Vr,"stubFalse");var Mu=Vr,Kr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mt=Kr&&typeof module=="object"&&module&&!module.nodeType&&module,Du=mt&&mt.exports===Kr,Ot=Du?S.Buffer:void 0,Fu=Ot?Ot.isBuffer:void 0,Lu=Fu||Mu,J=Lu,Nu="[object Arguments]",zu="[object Array]",ku="[object Boolean]",Bu="[object Date]",Tu="[object Error]",Ru="[object Function]",Uu="[object Map]",$u="[object Number]",Gu="[object Object]",Vu="[object RegExp]",Ku="[object Set]",Hu="[object String]",qu="[object WeakMap]",Wu="[object ArrayBuffer]",Qu="[object DataView]",Zu="[object Float32Array]",Ju="[object Float64Array]",Xu="[object Int8Array]",Yu="[object Int16Array]",es="[object Int32Array]",ts="[object Uint8Array]",rs="[object Uint8ClampedArray]",ns="[object Uint16Array]",as="[object Uint32Array]",d={};d[Zu]=d[Ju]=d[Xu]=d[Yu]=d[es]=d[ts]=d[rs]=d[ns]=d[as]=!0;d[Nu]=d[zu]=d[Wu]=d[ku]=d[Qu]=d[Bu]=d[Tu]=d[Ru]=d[Uu]=d[$u]=d[Gu]=d[Vu]=d[Ku]=d[Hu]=d[qu]=!1;function Hr(e){return C(e)&&Qe(e.length)&&!!d[x(e)]}a(Hr,"baseIsTypedArray");var os=Hr;function qr(e){return function(t){return e(t)}}a(qr,"baseUnary");var Ae=qr,Wr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,re=Wr&&typeof module=="object"&&module&&!module.nodeType&&module,is=re&&re.exports===Wr,Ne=is&&Ht.process,us=function(){try{var e=re&&re.require&&re.require("util").types;return e||Ne&&Ne.binding&&Ne.binding("util")}catch{}}(),X=us,wt=X&&X.isTypedArray,ss=wt?Ae(wt):os,Ce=ss,cs=Object.prototype,fs=cs.hasOwnProperty;function Qr(e,t){var r=b(e),n=!r&&Z(e),o=!r&&!n&&J(e),i=!r&&!n&&!o&&Ce(e),u=r||n||o||i,s=u?Su(e.length,String):[],c=s.length;for(var f in e)(t||fs.call(e,f))&&!(u&&(f=="length"||o&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||_e(f,c)))&&s.push(f);return s}a(Qr,"arrayLikeKeys");var Zr=Qr;function Jr(e,t){return function(r){return e(t(r))}}a(Jr,"overArg");var Xr=Jr,ls=Xr(Object.keys,Object),vs=ls,hs=Object.prototype,ps=hs.hasOwnProperty;function Yr(e){if(!we(e))return vs(e);var t=[];for(var r in Object(e))ps.call(e,r)&&r!="constructor"&&t.push(r);return t}a(Yr,"baseKeys");var Ze=Yr;function en(e){return I(e)?Zr(e):Ze(e)}a(en,"keys");var O=en;function tn(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}a(tn,"nativeKeysIn");var ds=tn,bs=Object.prototype,ys=bs.hasOwnProperty;function rn(e){if(!w(e))return ds(e);var t=we(e),r=[];for(var n in e)n=="constructor"&&(t||!ys.call(e,n))||r.push(n);return r}a(rn,"baseKeysIn");var gs=rn;function nn(e){return I(e)?Zr(e,!0):gs(e)}a(nn,"keysIn");var T=nn,_s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,js=/^\w*$/;function an(e,t){if(b(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||L(e)?!0:js.test(e)||!_s.test(e)||t!=null&&e in Object(t)}a(an,"isKey");var Je=an,ms=B(Object,"create"),ie=ms;function on(){this.__data__=ie?ie(null):{},this.size=0}a(on,"hashClear");var Os=on;function un(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}a(un,"hashDelete");var ws=un,As="__lodash_hash_undefined__",Cs=Object.prototype,Ss=Cs.hasOwnProperty;function sn(e){var t=this.__data__;if(ie){var r=t[e];return r===As?void 0:r}return Ss.call(t,e)?t[e]:void 0}a(sn,"hashGet");var Is=sn,xs=Object.prototype,Es=xs.hasOwnProperty;function cn(e){var t=this.__data__;return ie?t[e]!==void 0:Es.call(t,e)}a(cn,"hashHas");var Ps=cn,Ms="__lodash_hash_undefined__";function fn(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ie&&t===void 0?Ms:t,this}a(fn,"hashSet");var Ds=fn;function R(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a(R,"Hash");R.prototype.clear=Os;R.prototype.delete=ws;R.prototype.get=Is;R.prototype.has=Ps;R.prototype.set=Ds;var At=R;function ln(){this.__data__=[],this.size=0}a(ln,"listCacheClear");var Fs=ln;function vn(e,t){for(var r=e.length;r--;)if(Y(e[r][0],t))return r;return-1}a(vn,"assocIndexOf");var Se=vn,Ls=Array.prototype,Ns=Ls.splice;function hn(e){var t=this.__data__,r=Se(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ns.call(t,r,1),--this.size,!0}a(hn,"listCacheDelete");var zs=hn;function pn(e){var t=this.__data__,r=Se(t,e);return r<0?void 0:t[r][1]}a(pn,"listCacheGet");var ks=pn;function dn(e){return Se(this.__data__,e)>-1}a(dn,"listCacheHas");var Bs=dn;function bn(e,t){var r=this.__data__,n=Se(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}a(bn,"listCacheSet");var Ts=bn;function U(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a(U,"ListCache");U.prototype.clear=Fs;U.prototype.delete=zs;U.prototype.get=ks;U.prototype.has=Bs;U.prototype.set=Ts;var Ie=U,Rs=B(S,"Map"),ue=Rs;function yn(){this.size=0,this.__data__={hash:new At,map:new(ue||Ie),string:new At}}a(yn,"mapCacheClear");var Us=yn;function gn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}a(gn,"isKeyable");var $s=gn;function _n(e,t){var r=e.__data__;return $s(t)?r[typeof t=="string"?"string":"hash"]:r.map}a(_n,"getMapData");var xe=_n;function jn(e){var t=xe(this,e).delete(e);return this.size-=t?1:0,t}a(jn,"mapCacheDelete");var Gs=jn;function mn(e){return xe(this,e).get(e)}a(mn,"mapCacheGet");var Vs=mn;function On(e){return xe(this,e).has(e)}a(On,"mapCacheHas");var Ks=On;function wn(e,t){var r=xe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}a(wn,"mapCacheSet");var Hs=wn;function $(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a($,"MapCache");$.prototype.clear=Us;$.prototype.delete=Gs;$.prototype.get=Vs;$.prototype.has=Ks;$.prototype.set=Hs;var Ee=$,qs="Expected a function";function Pe(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(qs);var r=a(function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=e.apply(this,n);return r.cache=i.set(o,u)||i,u},"memoized");return r.cache=new(Pe.Cache||Ee),r}a(Pe,"memoize");Pe.Cache=Ee;var Ws=Pe,Qs=500;function An(e){var t=Ws(e,function(n){return r.size===Qs&&r.clear(),n}),r=t.cache;return t}a(An,"memoizeCapped");var Zs=An,Js=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xs=/\\(\\)?/g,Ys=Zs(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Js,function(r,n,o,i){t.push(o?i.replace(Xs,"$1"):n||r)}),t}),ec=Ys;function Cn(e){return e==null?"":Ii(e)}a(Cn,"toString");var Sn=Cn;function In(e,t){return b(e)?e:Je(e,t)?[e]:ec(Sn(e))}a(In,"castPath");var Me=In;function xn(e){if(typeof e=="string"||L(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}a(xn,"toKey");var fe=xn;function En(e,t){t=Me(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[fe(t[r++])];return r&&r==n?e:void 0}a(En,"baseGet");var De=En;function Pn(e,t,r){var n=e==null?void 0:De(e,t);return n===void 0?r:n}a(Pn,"get");var tc=Pn;function Mn(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}a(Mn,"arrayPush");var Xe=Mn,Ct=A?A.isConcatSpreadable:void 0;function Dn(e){return b(e)||Z(e)||!!(Ct&&e&&e[Ct])}a(Dn,"isFlattenable");var rc=Dn;function Ye(e,t,r,n,o){var i=-1,u=e.length;for(r||(r=rc),o||(o=[]);++i<u;){var s=e[i];t>0&&r(s)?t>1?Ye(s,t-1,r,n,o):Xe(o,s):n||(o[o.length]=s)}return o}a(Ye,"baseFlatten");var et=Ye;function Fn(e){var t=e==null?0:e.length;return t?et(e,1):[]}a(Fn,"flatten");var nc=Fn;function Ln(e){return _r(Lr(e,void 0,nc),e+"")}a(Ln,"flatRest");var ac=Ln,oc=Xr(Object.getPrototypeOf,Object),tt=oc,ic="[object Object]",uc=Function.prototype,sc=Object.prototype,Nn=uc.toString,cc=sc.hasOwnProperty,fc=Nn.call(Object);function zn(e){if(!C(e)||x(e)!=ic)return!1;var t=tt(e);if(t===null)return!0;var r=cc.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Nn.call(r)==fc}a(zn,"isPlainObject");var lc=zn,vc="\\ud800-\\udfff",hc="\\u0300-\\u036f",pc="\\ufe20-\\ufe2f",dc="\\u20d0-\\u20ff",bc=hc+pc+dc,yc="\\ufe0e\\ufe0f",gc="\\u200d",_c=RegExp("["+gc+vc+bc+yc+"]");function kn(e){return _c.test(e)}a(kn,"hasUnicode");var jc=kn;function Bn(e,t,r,n){var o=-1,i=e==null?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}a(Bn,"arrayReduce");var mc=Bn;function Tn(){this.__data__=new Ie,this.size=0}a(Tn,"stackClear");var Oc=Tn;function Rn(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}a(Rn,"stackDelete");var wc=Rn;function Un(e){return this.__data__.get(e)}a(Un,"stackGet");var Ac=Un;function $n(e){return this.__data__.has(e)}a($n,"stackHas");var Cc=$n,Sc=200;function Gn(e,t){var r=this.__data__;if(r instanceof Ie){var n=r.__data__;if(!ue||n.length<Sc-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ee(n)}return r.set(e,t),this.size=r.size,this}a(Gn,"stackSet");var Ic=Gn;function G(e){var t=this.__data__=new Ie(e);this.size=t.size}a(G,"Stack");G.prototype.clear=Oc;G.prototype.delete=wc;G.prototype.get=Ac;G.prototype.has=Cc;G.prototype.set=Ic;var q=G;function Vn(e,t){return e&&ce(t,O(t),e)}a(Vn,"baseAssign");var xc=Vn;function Kn(e,t){return e&&ce(t,T(t),e)}a(Kn,"baseAssignIn");var Ec=Kn,Hn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,St=Hn&&typeof module=="object"&&module&&!module.nodeType&&module,Pc=St&&St.exports===Hn,It=Pc?S.Buffer:void 0,xt=It?It.allocUnsafe:void 0;function qn(e,t){if(t)return e.slice();var r=e.length,n=xt?xt(r):new e.constructor(r);return e.copy(n),n}a(qn,"cloneBuffer");var Wn=qn;function Qn(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var u=e[r];t(u,r,e)&&(i[o++]=u)}return i}a(Qn,"arrayFilter");var Zn=Qn;function Jn(){return[]}a(Jn,"stubArray");var Xn=Jn,Mc=Object.prototype,Dc=Mc.propertyIsEnumerable,Et=Object.getOwnPropertySymbols,Fc=Et?function(e){return e==null?[]:(e=Object(e),Zn(Et(e),function(t){return Dc.call(e,t)}))}:Xn,rt=Fc;function Yn(e,t){return ce(e,rt(e),t)}a(Yn,"copySymbols");var Lc=Yn,Nc=Object.getOwnPropertySymbols,zc=Nc?function(e){for(var t=[];e;)Xe(t,rt(e)),e=tt(e);return t}:Xn,ea=zc;function ta(e,t){return ce(e,ea(e),t)}a(ta,"copySymbolsIn");var kc=ta;function ra(e,t,r){var n=t(e);return b(e)?n:Xe(n,r(e))}a(ra,"baseGetAllKeys");var na=ra;function aa(e){return na(e,O,rt)}a(aa,"getAllKeys");var Te=aa;function oa(e){return na(e,T,ea)}a(oa,"getAllKeysIn");var Bc=oa,Tc=B(S,"DataView"),Re=Tc,Rc=B(S,"Promise"),Ue=Rc,Uc=B(S,"Set"),W=Uc,Pt="[object Map]",$c="[object Object]",Mt="[object Promise]",Dt="[object Set]",Ft="[object WeakMap]",Lt="[object DataView]",Gc=k(Re),Vc=k(ue),Kc=k(Ue),Hc=k(W),qc=k(Be),F=x;(Re&&F(new Re(new ArrayBuffer(1)))!=Lt||ue&&F(new ue)!=Pt||Ue&&F(Ue.resolve())!=Mt||W&&F(new W)!=Dt||Be&&F(new Be)!=Ft)&&(F=a(function(e){var t=x(e),r=t==$c?e.constructor:void 0,n=r?k(r):"";if(n)switch(n){case Gc:return Lt;case Vc:return Pt;case Kc:return Mt;case Hc:return Dt;case qc:return Ft}return t},"getTag"));var N=F,Wc=Object.prototype,Qc=Wc.hasOwnProperty;function ia(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Qc.call(e,"index")&&(r.index=e.index,r.input=e.input),r}a(ia,"initCloneArray");var Zc=ia,Jc=S.Uint8Array,ge=Jc;function ua(e){var t=new e.constructor(e.byteLength);return new ge(t).set(new ge(e)),t}a(ua,"cloneArrayBuffer");var nt=ua;function sa(e,t){var r=t?nt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}a(sa,"cloneDataView");var Xc=sa,Yc=/\w*$/;function ca(e){var t=new e.constructor(e.source,Yc.exec(e));return t.lastIndex=e.lastIndex,t}a(ca,"cloneRegExp");var ef=ca,Nt=A?A.prototype:void 0,zt=Nt?Nt.valueOf:void 0;function fa(e){return zt?Object(zt.call(e)):{}}a(fa,"cloneSymbol");var tf=fa;function la(e,t){var r=t?nt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}a(la,"cloneTypedArray");var va=la,rf="[object Boolean]",nf="[object Date]",af="[object Map]",of="[object Number]",uf="[object RegExp]",sf="[object Set]",cf="[object String]",ff="[object Symbol]",lf="[object ArrayBuffer]",vf="[object DataView]",hf="[object Float32Array]",pf="[object Float64Array]",df="[object Int8Array]",bf="[object Int16Array]",yf="[object Int32Array]",gf="[object Uint8Array]",_f="[object Uint8ClampedArray]",jf="[object Uint16Array]",mf="[object Uint32Array]";function ha(e,t,r){var n=e.constructor;switch(t){case lf:return nt(e);case rf:case nf:return new n(+e);case vf:return Xc(e,r);case hf:case pf:case df:case bf:case yf:case gf:case _f:case jf:case mf:return va(e,r);case af:return new n;case of:case cf:return new n(e);case uf:return ef(e);case sf:return new n;case ff:return tf(e)}}a(ha,"initCloneByTag");var Of=ha;function pa(e){return typeof e.constructor=="function"&&!we(e)?au(tt(e)):{}}a(pa,"initCloneObject");var da=pa,wf="[object Map]";function ba(e){return C(e)&&N(e)==wf}a(ba,"baseIsMap");var Af=ba,kt=X&&X.isMap,Cf=kt?Ae(kt):Af,Sf=Cf,If="[object Set]";function ya(e){return C(e)&&N(e)==If}a(ya,"baseIsSet");var xf=ya,Bt=X&&X.isSet,Ef=Bt?Ae(Bt):xf,Pf=Ef,Mf=1,Df=2,Ff=4,ga="[object Arguments]",Lf="[object Array]",Nf="[object Boolean]",zf="[object Date]",kf="[object Error]",_a="[object Function]",Bf="[object GeneratorFunction]",Tf="[object Map]",Rf="[object Number]",ja="[object Object]",Uf="[object RegExp]",$f="[object Set]",Gf="[object String]",Vf="[object Symbol]",Kf="[object WeakMap]",Hf="[object ArrayBuffer]",qf="[object DataView]",Wf="[object Float32Array]",Qf="[object Float64Array]",Zf="[object Int8Array]",Jf="[object Int16Array]",Xf="[object Int32Array]",Yf="[object Uint8Array]",el="[object Uint8ClampedArray]",tl="[object Uint16Array]",rl="[object Uint32Array]",p={};p[ga]=p[Lf]=p[Hf]=p[qf]=p[Nf]=p[zf]=p[Wf]=p[Qf]=p[Zf]=p[Jf]=p[Xf]=p[Tf]=p[Rf]=p[ja]=p[Uf]=p[$f]=p[Gf]=p[Vf]=p[Yf]=p[el]=p[tl]=p[rl]=!0;p[kf]=p[_a]=p[Kf]=!1;function ne(e,t,r,n,o,i){var u,s=t&Mf,c=t&Df,f=t&Ff;if(r&&(u=o?r(e,n,o,i):r(e)),u!==void 0)return u;if(!w(e))return e;var l=b(e);if(l){if(u=Zc(e),!s)return br(e,u)}else{var v=N(e),h=v==_a||v==Bf;if(J(e))return Wn(e,s);if(v==ja||v==ga||h&&!o){if(u=c||h?{}:da(e),!s)return c?kc(e,Ec(u,e)):Lc(e,xc(u,e))}else{if(!p[v])return o?e:{};u=Of(e,v,s)}}i||(i=new q);var _=i.get(e);if(_)return _;i.set(e,u),Pf(e)?e.forEach(function(g){u.add(ne(g,t,r,g,e,i))}):Sf(e)&&e.forEach(function(g,j){u.set(j,ne(g,t,r,j,e,i))});var y=f?c?Bc:Te:c?T:O,m=l?void 0:y(e);return mr(m||e,function(g,j){m&&(j=g,g=e[j]),me(u,j,ne(g,t,r,j,e,i))}),u}a(ne,"baseClone");var ma=ne,nl=4;function Oa(e){return ma(e,nl)}a(Oa,"clone");var ch=Oa,al=1,ol=4;function wa(e){return ma(e,al|ol)}a(wa,"cloneDeep");var fh=wa,il="__lodash_hash_undefined__";function Aa(e){return this.__data__.set(e,il),this}a(Aa,"setCacheAdd");var ul=Aa;function Ca(e){return this.__data__.has(e)}a(Ca,"setCacheHas");var sl=Ca;function se(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ee;++t<r;)this.add(e[t])}a(se,"SetCache");se.prototype.add=se.prototype.push=ul;se.prototype.has=sl;var Sa=se;function Ia(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}a(Ia,"arraySome");var cl=Ia;function xa(e,t){return e.has(t)}a(xa,"cacheHas");var Ea=xa,fl=1,ll=2;function Pa(e,t,r,n,o,i){var u=r&fl,s=e.length,c=t.length;if(s!=c&&!(u&&c>s))return!1;var f=i.get(e),l=i.get(t);if(f&&l)return f==t&&l==e;var v=-1,h=!0,_=r&ll?new Sa:void 0;for(i.set(e,t),i.set(t,e);++v<s;){var y=e[v],m=t[v];if(n)var g=u?n(m,y,v,t,e,i):n(y,m,v,e,t,i);if(g!==void 0){if(g)continue;h=!1;break}if(_){if(!cl(t,function(j,P){if(!Ea(_,P)&&(y===j||o(y,j,r,n,i)))return _.push(P)})){h=!1;break}}else if(!(y===m||o(y,m,r,n,i))){h=!1;break}}return i.delete(e),i.delete(t),h}a(Pa,"equalArrays");var Ma=Pa;function Da(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}a(Da,"mapToArray");var vl=Da;function Fa(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}a(Fa,"setToArray");var at=Fa,hl=1,pl=2,dl="[object Boolean]",bl="[object Date]",yl="[object Error]",gl="[object Map]",_l="[object Number]",jl="[object RegExp]",ml="[object Set]",Ol="[object String]",wl="[object Symbol]",Al="[object ArrayBuffer]",Cl="[object DataView]",Tt=A?A.prototype:void 0,ze=Tt?Tt.valueOf:void 0;function La(e,t,r,n,o,i,u){switch(r){case Cl:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Al:return!(e.byteLength!=t.byteLength||!i(new ge(e),new ge(t)));case dl:case bl:case _l:return Y(+e,+t);case yl:return e.name==t.name&&e.message==t.message;case jl:case Ol:return e==t+"";case gl:var s=vl;case ml:var c=n&hl;if(s||(s=at),e.size!=t.size&&!c)return!1;var f=u.get(e);if(f)return f==t;n|=pl,u.set(e,t);var l=Ma(s(e),s(t),n,o,i,u);return u.delete(e),l;case wl:if(ze)return ze.call(e)==ze.call(t)}return!1}a(La,"equalByTag");var Sl=La,Il=1,xl=Object.prototype,El=xl.hasOwnProperty;function Na(e,t,r,n,o,i){var u=r&Il,s=Te(e),c=s.length,f=Te(t),l=f.length;if(c!=l&&!u)return!1;for(var v=c;v--;){var h=s[v];if(!(u?h in t:El.call(t,h)))return!1}var _=i.get(e),y=i.get(t);if(_&&y)return _==t&&y==e;var m=!0;i.set(e,t),i.set(t,e);for(var g=u;++v<c;){h=s[v];var j=e[h],P=t[h];if(n)var lt=u?n(P,j,h,t,e,i):n(j,P,h,e,t,i);if(!(lt===void 0?j===P||o(j,P,r,n,i):lt)){m=!1;break}g||(g=h=="constructor")}if(m&&!g){var le=e.constructor,ve=t.constructor;le!=ve&&"constructor"in e&&"constructor"in t&&!(typeof le=="function"&&le instanceof le&&typeof ve=="function"&&ve instanceof ve)&&(m=!1)}return i.delete(e),i.delete(t),m}a(Na,"equalObjects");var Pl=Na,Ml=1,Rt="[object Arguments]",Ut="[object Array]",he="[object Object]",Dl=Object.prototype,$t=Dl.hasOwnProperty;function za(e,t,r,n,o,i){var u=b(e),s=b(t),c=u?Ut:N(e),f=s?Ut:N(t);c=c==Rt?he:c,f=f==Rt?he:f;var l=c==he,v=f==he,h=c==f;if(h&&J(e)){if(!J(t))return!1;u=!0,l=!1}if(h&&!l)return i||(i=new q),u||Ce(e)?Ma(e,t,r,n,o,i):Sl(e,t,c,r,n,o,i);if(!(r&Ml)){var _=l&&$t.call(e,"__wrapped__"),y=v&&$t.call(t,"__wrapped__");if(_||y){var m=_?e.value():e,g=y?t.value():t;return i||(i=new q),o(m,g,r,n,i)}}return h?(i||(i=new q),Pl(e,t,r,n,o,i)):!1}a(za,"baseIsEqualDeep");var Fl=za;function ot(e,t,r,n,o){return e===t?!0:e==null||t==null||!C(e)&&!C(t)?e!==e&&t!==t:Fl(e,t,r,n,ot,o)}a(ot,"baseIsEqual");var ka=ot,Ll=1,Nl=2;function Ba(e,t,r,n){var o=r.length,i=o,u=!n;if(e==null)return!i;for(e=Object(e);o--;){var s=r[o];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=r[o];var c=s[0],f=e[c],l=s[1];if(u&&s[2]){if(f===void 0&&!(c in e))return!1}else{var v=new q;if(n)var h=n(f,l,c,e,t,v);if(!(h===void 0?ka(l,f,Ll|Nl,n,v):h))return!1}}return!0}a(Ba,"baseIsMatch");var zl=Ba;function Ta(e){return e===e&&!w(e)}a(Ta,"isStrictComparable");var Ra=Ta;function Ua(e){for(var t=O(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Ra(o)]}return t}a(Ua,"getMatchData");var kl=Ua;function $a(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}a($a,"matchesStrictComparable");var Ga=$a;function Va(e){var t=kl(e);return t.length==1&&t[0][2]?Ga(t[0][0],t[0][1]):function(r){return r===e||zl(r,e,t)}}a(Va,"baseMatches");var Bl=Va;function Ka(e,t){return e!=null&&t in Object(e)}a(Ka,"baseHasIn");var Tl=Ka;function Ha(e,t,r){t=Me(t,e);for(var n=-1,o=t.length,i=!1;++n<o;){var u=fe(t[n]);if(!(i=e!=null&&r(e,u)))break;e=e[u]}return i||++n!=o?i:(o=e==null?0:e.length,!!o&&Qe(o)&&_e(u,o)&&(b(e)||Z(e)))}a(Ha,"hasPath");var qa=Ha;function Wa(e,t){return e!=null&&qa(e,t,Tl)}a(Wa,"hasIn");var Qa=Wa,Rl=1,Ul=2;function Za(e,t){return Je(e)&&Ra(t)?Ga(fe(e),t):function(r){var n=tc(r,e);return n===void 0&&n===t?Qa(r,e):ka(t,n,Rl|Ul)}}a(Za,"baseMatchesProperty");var $l=Za;function Ja(e){return function(t){return t==null?void 0:t[e]}}a(Ja,"baseProperty");var Xa=Ja;function Ya(e){return function(t){return De(t,e)}}a(Ya,"basePropertyDeep");var Gl=Ya;function eo(e){return Je(e)?Xa(fe(e)):Gl(e)}a(eo,"property");var Vl=eo;function to(e){return typeof e=="function"?e:e==null?z:typeof e=="object"?b(e)?$l(e[0],e[1]):Bl(e):Vl(e)}a(to,"baseIteratee");var E=to;function ro(e){return function(t,r,n){for(var o=-1,i=Object(t),u=n(t),s=u.length;s--;){var c=u[e?s:++o];if(r(i[c],c,i)===!1)break}return t}}a(ro,"createBaseFor");var Kl=ro,Hl=Kl(),it=Hl;function no(e,t){return e&&it(e,t,O)}a(no,"baseForOwn");var ut=no;function ao(e,t){return function(r,n){if(r==null)return r;if(!I(r))return e(r,n);for(var o=r.length,i=t?o:-1,u=Object(r);(t?i--:++i<o)&&n(u[i],i,u)!==!1;);return r}}a(ao,"createBaseEach");var ql=ao,Wl=ql(ut),Fe=Wl,Ql=a(function(){return S.Date.now()},"now"),lh=Ql,oo=Object.prototype,Zl=oo.hasOwnProperty,Jl=Oe(function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&oe(t[0],t[1],o)&&(n=1);++r<n;)for(var i=t[r],u=T(i),s=-1,c=u.length;++s<c;){var f=u[s],l=e[f];(l===void 0||Y(l,oo[f])&&!Zl.call(e,f))&&(e[f]=i[f])}return e}),vh=Jl;function io(e,t,r){(r!==void 0&&!Y(e[t],r)||r===void 0&&!(t in e))&&je(e,t,r)}a(io,"assignMergeValue");var $e=io;function uo(e){return C(e)&&I(e)}a(uo,"isArrayLikeObject");var so=uo;function co(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}a(co,"safeGet");var Ge=co;function fo(e){return ce(e,T(e))}a(fo,"toPlainObject");var Xl=fo;function lo(e,t,r,n,o,i,u){var s=Ge(e,r),c=Ge(t,r),f=u.get(c);if(f){$e(e,r,f);return}var l=i?i(s,c,r+"",e,t,u):void 0,v=l===void 0;if(v){var h=b(c),_=!h&&J(c),y=!h&&!_&&Ce(c);l=c,h||_||y?b(s)?l=s:so(s)?l=br(s):_?(v=!1,l=Wn(c,!0)):y?(v=!1,l=va(c,!0)):l=[]:lc(c)||Z(c)?(l=s,Z(s)?l=Xl(s):(!w(s)||ae(s))&&(l=da(c))):v=!1}v&&(u.set(c,l),o(l,c,n,i,u),u.delete(c)),$e(e,r,l)}a(lo,"baseMergeDeep");var Yl=lo;function st(e,t,r,n,o){e!==t&&it(t,function(i,u){if(o||(o=new q),w(i))Yl(e,t,u,r,st,n,o);else{var s=n?n(Ge(e,u),i,u+"",e,t,o):void 0;s===void 0&&(s=i),$e(e,u,s)}},T)}a(st,"baseMerge");var ev=st;function vo(e,t,r){for(var n=-1,o=e==null?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}a(vo,"arrayIncludesWith");var tv=vo;function ho(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}a(ho,"last");var hh=ho;function po(e){return typeof e=="function"?e:z}a(po,"castFunction");var ct=po;function bo(e,t){var r=b(e)?mr:Fe;return r(e,ct(t))}a(bo,"forEach");var M=bo;function yo(e,t){var r=[];return Fe(e,function(n,o,i){t(n,o,i)&&r.push(n)}),r}a(yo,"baseFilter");var rv=yo;function go(e,t){var r=b(e)?Zn:rv;return r(e,E(t))}a(go,"filter");var pe=go;function _o(e){return function(t,r,n){var o=Object(t);if(!I(t)){var i=E(r);t=O(t),r=a(function(s){return i(o[s],s,o)},"predicate")}var u=e(t,r,n);return u>-1?o[i?t[u]:u]:void 0}}a(_o,"createFind");var nv=_o,av=Math.max;function jo(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var o=r==null?0:Bi(r);return o<0&&(o=av(n+o,0)),wr(e,E(t),o)}a(jo,"findIndex");var ov=jo,iv=nv(ov),ph=iv;function mo(e,t){var r=-1,n=I(e)?Array(e.length):[];return Fe(e,function(o,i,u){n[++r]=t(o,i,u)}),n}a(mo,"baseMap");var Oo=mo;function wo(e,t){var r=b(e)?H:Oo;return r(e,E(t))}a(wo,"map");var dh=wo;function Ao(e,t){return e==null?e:it(e,ct(t),T)}a(Ao,"forIn");var bh=Ao;function Co(e,t){return e&&ut(e,ct(t))}a(Co,"forOwn");var yh=Co;function So(e,t){return e>t}a(So,"baseGt");var uv=So,sv=Object.prototype,cv=sv.hasOwnProperty;function Io(e,t){return e!=null&&cv.call(e,t)}a(Io,"baseHas");var fv=Io;function xo(e,t){return e!=null&&qa(e,t,fv)}a(xo,"has");var gh=xo,lv="[object String]";function Eo(e){return typeof e=="string"||!b(e)&&C(e)&&x(e)==lv}a(Eo,"isString");var vv=Eo;function Po(e,t){return H(t,function(r){return e[r]})}a(Po,"baseValues");var hv=Po;function Mo(e){return e==null?[]:hv(e,O(e))}a(Mo,"values");var ke=Mo,pv="[object Map]",dv="[object Set]",bv=Object.prototype,yv=bv.hasOwnProperty;function Do(e){if(e==null)return!0;if(I(e)&&(b(e)||typeof e=="string"||typeof e.splice=="function"||J(e)||Ce(e)||Z(e)))return!e.length;var t=N(e);if(t==pv||t==dv)return!e.size;if(we(e))return!Ze(e).length;for(var r in e)if(yv.call(e,r))return!1;return!0}a(Do,"isEmpty");var Gt=Do;function Fo(e){return e===void 0}a(Fo,"isUndefined");var V=Fo;function Lo(e,t){return e<t}a(Lo,"baseLt");var No=Lo;function zo(e,t){var r={};return t=E(t),ut(e,function(n,o,i){je(r,o,t(n,o,i))}),r}a(zo,"mapValues");var _h=zo;function ko(e,t,r){for(var n=-1,o=e.length;++n<o;){var i=e[n],u=t(i);if(u!=null&&(s===void 0?u===u&&!L(u):r(u,s)))var s=u,c=i}return c}a(ko,"baseExtremum");var ft=ko;function Bo(e){return e&&e.length?ft(e,z,uv):void 0}a(Bo,"max");var jh=Bo,gv=Au(function(e,t,r){ev(e,t,r)}),mh=gv;function To(e){return e&&e.length?ft(e,z,No):void 0}a(To,"min");var Oh=To;function Ro(e,t){return e&&e.length?ft(e,E(t),No):void 0}a(Ro,"minBy");var wh=Ro;function Uo(e,t,r,n){if(!w(e))return e;t=Me(t,e);for(var o=-1,i=t.length,u=i-1,s=e;s!=null&&++o<i;){var c=fe(t[o]),f=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=u){var l=s[c];f=n?n(l,c,s):void 0,f===void 0&&(f=w(l)?l:_e(t[o+1])?[]:{})}me(s,c,f),s=s[c]}return e}a(Uo,"baseSet");var _v=Uo;function $o(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var u=t[n],s=De(e,u);r(s,u)&&_v(i,Me(u,e),s)}return i}a($o,"basePickBy");var jv=$o;function Go(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}a(Go,"baseSortBy");var mv=Go;function Vo(e,t){if(e!==t){var r=e!==void 0,n=e===null,o=e===e,i=L(e),u=t!==void 0,s=t===null,c=t===t,f=L(t);if(!s&&!f&&!i&&e>t||i&&u&&c&&!s&&!f||n&&u&&c||!r&&c||!o)return 1;if(!n&&!i&&!f&&e<t||f&&r&&o&&!n&&!i||s&&r&&o||!u&&o||!c)return-1}return 0}a(Vo,"compareAscending");var Ov=Vo;function Ko(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,u=o.length,s=r.length;++n<u;){var c=Ov(o[n],i[n]);if(c){if(n>=s)return c;var f=r[n];return c*(f=="desc"?-1:1)}}return e.index-t.index}a(Ko,"compareMultiple");var wv=Ko;function Ho(e,t,r){t.length?t=H(t,function(i){return b(i)?function(u){return De(u,i.length===1?i[0]:i)}:i}):t=[z];var n=-1;t=H(t,Ae(E));var o=Oo(e,function(i,u,s){var c=H(t,function(f){return f(i)});return{criteria:c,index:++n,value:i}});return mv(o,function(i,u){return wv(i,u,r)})}a(Ho,"baseOrderBy");var Av=Ho,Cv=Xa("length"),Sv=Cv,qo="\\ud800-\\udfff",Iv="\\u0300-\\u036f",xv="\\ufe20-\\ufe2f",Ev="\\u20d0-\\u20ff",Pv=Iv+xv+Ev,Mv="\\ufe0e\\ufe0f",Dv="["+qo+"]",Ve="["+Pv+"]",Ke="\\ud83c[\\udffb-\\udfff]",Fv="(?:"+Ve+"|"+Ke+")",Wo="[^"+qo+"]",Qo="(?:\\ud83c[\\udde6-\\uddff]){2}",Zo="[\\ud800-\\udbff][\\udc00-\\udfff]",Lv="\\u200d",Jo=Fv+"?",Xo="["+Mv+"]?",Nv="(?:"+Lv+"(?:"+[Wo,Qo,Zo].join("|")+")"+Xo+Jo+")*",zv=Xo+Jo+Nv,kv="(?:"+[Wo+Ve+"?",Ve,Qo,Zo,Dv].join("|")+")",Vt=RegExp(Ke+"(?="+Ke+")|"+kv+zv,"g");function Yo(e){for(var t=Vt.lastIndex=0;Vt.test(e);)++t;return t}a(Yo,"unicodeSize");var Bv=Yo;function ei(e){return jc(e)?Bv(e):Sv(e)}a(ei,"stringSize");var Tv=ei;function ti(e,t){return jv(e,t,function(r,n){return Qa(e,n)})}a(ti,"basePick");var Rv=ti,Uv=ac(function(e,t){return e==null?{}:Rv(e,t)}),Ah=Uv,$v=Math.ceil,Gv=Math.max;function ri(e,t,r,n){for(var o=-1,i=Gv($v((t-e)/(r||1)),0),u=Array(i);i--;)u[n?i:++o]=e,e+=r;return u}a(ri,"baseRange");var Vv=ri;function ni(e){return function(t,r,n){return n&&typeof n!="number"&&oe(t,r,n)&&(r=n=void 0),t=de(t),r===void 0?(r=t,t=0):r=de(r),n=n===void 0?t<r?1:-1:de(n),Vv(t,r,n,e)}}a(ni,"createRange");var Kv=ni,Hv=Kv(),Ch=Hv;function ai(e,t,r,n,o){return o(e,function(i,u,s){r=n?(n=!1,i):t(r,i,u,s)}),r}a(ai,"baseReduce");var qv=ai;function oi(e,t,r){var n=b(e)?mc:qv,o=arguments.length<3;return n(e,E(t),r,o,Fe)}a(oi,"reduce");var Wv=oi,Qv="[object Map]",Zv="[object Set]";function ii(e){if(e==null)return 0;if(I(e))return vv(e)?Tv(e):e.length;var t=N(e);return t==Qv||t==Zv?e.size:Ze(e).length}a(ii,"size");var Sh=ii,Jv=Oe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&oe(e,t[0],t[1])?t=[]:r>2&&oe(t[0],t[1],t[2])&&(t=[t[0]]),Av(e,et(t,1),[])}),Ih=Jv,Xv=1/0,Yv=W&&1/at(new W([,-0]))[1]==Xv?function(e){return new W(e)}:iu,eh=Yv,th=200;function ui(e,t,r){var n=-1,o=gu,i=e.length,u=!0,s=[],c=s;if(r)u=!1,o=tv;else if(i>=th){var f=t?null:eh(e);if(f)return at(f);u=!1,o=Ea,c=new Sa}else c=t?[]:s;e:for(;++n<i;){var l=e[n],v=t?t(l):l;if(l=r||l!==0?l:0,u&&v===v){for(var h=c.length;h--;)if(c[h]===v)continue e;t&&c.push(v),s.push(l)}else o(c,v,r)||(c!==s&&c.push(v),s.push(l))}return s}a(ui,"baseUniq");var rh=ui,nh=Oe(function(e){return rh(et(e,1,so,!0))}),ah=nh,oh=0;function si(e){var t=++oh;return Sn(e)+t}a(si,"uniqueId");var xh=si;function ci(e,t,r){for(var n=-1,o=e.length,i=t.length,u={};++n<o;){var s=n<i?t[n]:void 0;r(u,e[n],s)}return u}a(ci,"baseZipObject");var ih=ci;function fi(e,t){return ih(e||[],t||[],me)}a(fi,"zipObject");var Eh=fi,uh="\0",D="\0",Kt="",Q,li=(Q=class{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=te(void 0),this._defaultEdgeLabelFn=te(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[D]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return ae(t)||(t=te(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return O(this._nodes)}sources(){var t=this;return pe(this.nodes(),function(r){return Gt(t._in[r])})}sinks(){var t=this;return pe(this.nodes(),function(r){return Gt(t._out[r])})}setNodes(t,r){var n=arguments,o=this;return M(t,function(i){n.length>1?o.setNode(i,r):o.setNode(i)}),this}setNode(t,r){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=D,this._children[t]={},this._children[D][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var r=a(n=>this.removeEdge(this._edgeObjs[n]),"removeEdge");delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],M(this.children(t),n=>{this.setParent(n)}),delete this._children[t]),M(O(this._in[t]),r),delete this._in[t],delete this._preds[t],M(O(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(V(r))r=D;else{r+="";for(var n=r;!V(n);n=this.parent(n))if(n===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==D)return r}}children(t){if(V(t)&&(t=D),this._isCompound){var r=this._children[t];if(r)return O(r)}else{if(t===D)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return O(r)}successors(t){var r=this._sucs[t];if(r)return O(r)}neighbors(t){var r=this.predecessors(t);if(r)return ah(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;M(this._nodes,function(u,s){t(s)&&r.setNode(s,u)}),M(this._edgeObjs,function(u){r.hasNode(u.v)&&r.hasNode(u.w)&&r.setEdge(u,n.edge(u))});var o={};function i(u){var s=n.parent(u);return s===void 0||r.hasNode(s)?(o[u]=s,s):s in o?o[s]:i(s)}return a(i,"findParent"),this._isCompound&&M(r.nodes(),function(u){r.setParent(u,i(u))}),r}setDefaultEdgeLabel(t){return ae(t)||(t=te(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return ke(this._edgeObjs)}setPath(t,r){var n=this,o=arguments;return Wv(t,function(i,u){return o.length>1?n.setEdge(i,u,r):n.setEdge(i,u),u}),this}setEdge(){var t,r,n,o,i=!1,u=arguments[0];typeof u=="object"&&u!==null&&"v"in u?(t=u.v,r=u.w,n=u.name,arguments.length===2&&(o=arguments[1],i=!0)):(t=u,r=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),t=""+t,r=""+r,V(n)||(n=""+n);var s=K(this._isDirected,t,r,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,s))return i&&(this._edgeLabels[s]=o),this;if(!V(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[s]=i?o:this._defaultEdgeLabelFn(t,r,n);var c=vi(this._isDirected,t,r,n);return t=c.v,r=c.w,Object.freeze(c),this._edgeObjs[s]=c,He(this._preds[r],t),He(this._sucs[t],r),this._in[r][s]=c,this._out[t][s]=c,this._edgeCount++,this}edge(t,r,n){var o=arguments.length===1?be(this._isDirected,arguments[0]):K(this._isDirected,t,r,n);return this._edgeLabels[o]}hasEdge(t,r,n){var o=arguments.length===1?be(this._isDirected,arguments[0]):K(this._isDirected,t,r,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,o)}removeEdge(t,r,n){var o=arguments.length===1?be(this._isDirected,arguments[0]):K(this._isDirected,t,r,n),i=this._edgeObjs[o];return i&&(t=i.v,r=i.w,delete this._edgeLabels[o],delete this._edgeObjs[o],qe(this._preds[r],t),qe(this._sucs[t],r),delete this._in[r][o],delete this._out[t][o],this._edgeCount--),this}inEdges(t,r){var n=this._in[t];if(n){var o=ke(n);return r?pe(o,function(i){return i.v===r}):o}}outEdges(t,r){var n=this._out[t];if(n){var o=ke(n);return r?pe(o,function(i){return i.w===r}):o}}nodeEdges(t,r){var n=this.inEdges(t,r);if(n)return n.concat(this.outEdges(t,r))}},a(Q,"Graph"),Q);li.prototype._nodeCount=0;li.prototype._edgeCount=0;function He(e,t){e[t]?e[t]++:e[t]=1}a(He,"incrementOrInitEntry");function qe(e,t){--e[t]||delete e[t]}a(qe,"decrementOrRemoveEntry");function K(e,t,r,n){var o=""+t,i=""+r;if(!e&&o>i){var u=o;o=i,i=u}return o+Kt+i+Kt+(V(n)?uh:n)}a(K,"edgeArgsToId");function vi(e,t,r,n){var o=""+t,i=""+r;if(!e&&o>i){var u=o;o=i,i=u}var s={v:o,w:i};return n&&(s.name=n),s}a(vi,"edgeArgsToObj");function be(e,t){return K(e,t.v,t.w,t.name)}a(be,"edgeObjToId");/*! Bundled license information:
|
|
1
|
+
import{m as a}from"./index-VTKdaklA.js";var hi=typeof global=="object"&&global&&global.Object===Object&&global,Ht=hi,pi=typeof self=="object"&&self&&self.Object===Object&&self,di=Ht||pi||Function("return this")(),S=di,bi=S.Symbol,A=bi,qt=Object.prototype,yi=qt.hasOwnProperty,gi=qt.toString,ee=A?A.toStringTag:void 0;function Wt(e){var t=yi.call(e,ee),r=e[ee];try{e[ee]=void 0;var n=!0}catch{}var o=gi.call(e);return n&&(t?e[ee]=r:delete e[ee]),o}a(Wt,"getRawTag");var _i=Wt,ji=Object.prototype,mi=ji.toString;function Qt(e){return mi.call(e)}a(Qt,"objectToString");var Oi=Qt,wi="[object Null]",Ai="[object Undefined]",vt=A?A.toStringTag:void 0;function Zt(e){return e==null?e===void 0?Ai:wi:vt&&vt in Object(e)?_i(e):Oi(e)}a(Zt,"baseGetTag");var x=Zt;function Jt(e){return e!=null&&typeof e=="object"}a(Jt,"isObjectLike");var C=Jt,Ci="[object Symbol]";function Xt(e){return typeof e=="symbol"||C(e)&&x(e)==Ci}a(Xt,"isSymbol");var L=Xt;function Yt(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}a(Yt,"arrayMap");var H=Yt,Si=Array.isArray,b=Si,ht=A?A.prototype:void 0,pt=ht?ht.toString:void 0;function We(e){if(typeof e=="string")return e;if(b(e))return H(e,We)+"";if(L(e))return pt?pt.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}a(We,"baseToString");var Ii=We,xi=/\s/;function er(e){for(var t=e.length;t--&&xi.test(e.charAt(t)););return t}a(er,"trimmedEndIndex");var Ei=er,Pi=/^\s+/;function tr(e){return e&&e.slice(0,Ei(e)+1).replace(Pi,"")}a(tr,"baseTrim");var Mi=tr;function rr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}a(rr,"isObject");var w=rr,dt=NaN,Di=/^[-+]0x[0-9a-f]+$/i,Fi=/^0b[01]+$/i,Li=/^0o[0-7]+$/i,Ni=parseInt;function nr(e){if(typeof e=="number")return e;if(L(e))return dt;if(w(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=w(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Mi(e);var r=Fi.test(e);return r||Li.test(e)?Ni(e.slice(2),r?2:8):Di.test(e)?dt:+e}a(nr,"toNumber");var zi=nr,bt=1/0,ki=17976931348623157e292;function ar(e){if(!e)return e===0?e:0;if(e=zi(e),e===bt||e===-bt){var t=e<0?-1:1;return t*ki}return e===e?e:0}a(ar,"toFinite");var de=ar;function or(e){var t=de(e),r=t%1;return t===t?r?t-r:t:0}a(or,"toInteger");var Bi=or;function ir(e){return e}a(ir,"identity");var z=ir,Ti="[object AsyncFunction]",Ri="[object Function]",Ui="[object GeneratorFunction]",$i="[object Proxy]";function ur(e){if(!w(e))return!1;var t=x(e);return t==Ri||t==Ui||t==Ti||t==$i}a(ur,"isFunction");var ae=ur,Gi=S["__core-js_shared__"],Le=Gi,yt=function(){var e=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sr(e){return!!yt&&yt in e}a(sr,"isMasked");var Vi=sr,Ki=Function.prototype,Hi=Ki.toString;function cr(e){if(e!=null){try{return Hi.call(e)}catch{}try{return e+""}catch{}}return""}a(cr,"toSource");var k=cr,qi=/[\\^$.*+?()[\]{}|]/g,Wi=/^\[object .+?Constructor\]$/,Qi=Function.prototype,Zi=Object.prototype,Ji=Qi.toString,Xi=Zi.hasOwnProperty,Yi=RegExp("^"+Ji.call(Xi).replace(qi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fr(e){if(!w(e)||Vi(e))return!1;var t=ae(e)?Yi:Wi;return t.test(k(e))}a(fr,"baseIsNative");var eu=fr;function lr(e,t){return e==null?void 0:e[t]}a(lr,"getValue");var tu=lr;function vr(e,t){var r=tu(e,t);return eu(r)?r:void 0}a(vr,"getNative");var B=vr,ru=B(S,"WeakMap"),Be=ru,gt=Object.create,nu=function(){function e(){}return a(e,"object"),function(t){if(!w(t))return{};if(gt)return gt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),au=nu;function hr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}a(hr,"apply");var ou=hr;function pr(){}a(pr,"noop");var iu=pr;function dr(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}a(dr,"copyArray");var br=dr,uu=800,su=16,cu=Date.now;function yr(e){var t=0,r=0;return function(){var n=cu(),o=su-(n-r);if(r=n,o>0){if(++t>=uu)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}a(yr,"shortOut");var fu=yr;function gr(e){return function(){return e}}a(gr,"constant");var te=gr,lu=function(){try{var e=B(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ye=lu,vu=ye?function(e,t){return ye(e,"toString",{configurable:!0,enumerable:!1,value:te(t),writable:!0})}:z,hu=vu,pu=fu(hu),_r=pu;function jr(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}a(jr,"arrayEach");var mr=jr;function Or(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}a(Or,"baseFindIndex");var wr=Or;function Ar(e){return e!==e}a(Ar,"baseIsNaN");var du=Ar;function Cr(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}a(Cr,"strictIndexOf");var bu=Cr;function Sr(e,t,r){return t===t?bu(e,t,r):wr(e,du,r)}a(Sr,"baseIndexOf");var yu=Sr;function Ir(e,t){var r=e==null?0:e.length;return!!r&&yu(e,t,0)>-1}a(Ir,"arrayIncludes");var gu=Ir,_u=9007199254740991,ju=/^(?:0|[1-9]\d*)$/;function xr(e,t){var r=typeof e;return t=t??_u,!!t&&(r=="number"||r!="symbol"&&ju.test(e))&&e>-1&&e%1==0&&e<t}a(xr,"isIndex");var _e=xr;function Er(e,t,r){t=="__proto__"&&ye?ye(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}a(Er,"baseAssignValue");var je=Er;function Pr(e,t){return e===t||e!==e&&t!==t}a(Pr,"eq");var Y=Pr,mu=Object.prototype,Ou=mu.hasOwnProperty;function Mr(e,t,r){var n=e[t];(!(Ou.call(e,t)&&Y(n,r))||r===void 0&&!(t in e))&&je(e,t,r)}a(Mr,"assignValue");var me=Mr;function Dr(e,t,r,n){var o=!r;r||(r={});for(var i=-1,u=t.length;++i<u;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;c===void 0&&(c=e[s]),o?je(r,s,c):me(r,s,c)}return r}a(Dr,"copyObject");var ce=Dr,_t=Math.max;function Fr(e,t,r){return t=_t(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=_t(n.length-t,0),u=Array(i);++o<i;)u[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(u),ou(e,this,s)}}a(Fr,"overRest");var Lr=Fr;function Nr(e,t){return _r(Lr(e,t,z),e+"")}a(Nr,"baseRest");var Oe=Nr,wu=9007199254740991;function zr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=wu}a(zr,"isLength");var Qe=zr;function kr(e){return e!=null&&Qe(e.length)&&!ae(e)}a(kr,"isArrayLike");var I=kr;function Br(e,t,r){if(!w(r))return!1;var n=typeof t;return(n=="number"?I(r)&&_e(t,r.length):n=="string"&&t in r)?Y(r[t],e):!1}a(Br,"isIterateeCall");var oe=Br;function Tr(e){return Oe(function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,u=o>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,u&&oe(r[0],r[1],u)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,i)}return t})}a(Tr,"createAssigner");var Au=Tr,Cu=Object.prototype;function Rr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Cu;return e===r}a(Rr,"isPrototype");var we=Rr;function Ur(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}a(Ur,"baseTimes");var Su=Ur,Iu="[object Arguments]";function $r(e){return C(e)&&x(e)==Iu}a($r,"baseIsArguments");var jt=$r,Gr=Object.prototype,xu=Gr.hasOwnProperty,Eu=Gr.propertyIsEnumerable,Pu=jt(function(){return arguments}())?jt:function(e){return C(e)&&xu.call(e,"callee")&&!Eu.call(e,"callee")},Z=Pu;function Vr(){return!1}a(Vr,"stubFalse");var Mu=Vr,Kr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mt=Kr&&typeof module=="object"&&module&&!module.nodeType&&module,Du=mt&&mt.exports===Kr,Ot=Du?S.Buffer:void 0,Fu=Ot?Ot.isBuffer:void 0,Lu=Fu||Mu,J=Lu,Nu="[object Arguments]",zu="[object Array]",ku="[object Boolean]",Bu="[object Date]",Tu="[object Error]",Ru="[object Function]",Uu="[object Map]",$u="[object Number]",Gu="[object Object]",Vu="[object RegExp]",Ku="[object Set]",Hu="[object String]",qu="[object WeakMap]",Wu="[object ArrayBuffer]",Qu="[object DataView]",Zu="[object Float32Array]",Ju="[object Float64Array]",Xu="[object Int8Array]",Yu="[object Int16Array]",es="[object Int32Array]",ts="[object Uint8Array]",rs="[object Uint8ClampedArray]",ns="[object Uint16Array]",as="[object Uint32Array]",d={};d[Zu]=d[Ju]=d[Xu]=d[Yu]=d[es]=d[ts]=d[rs]=d[ns]=d[as]=!0;d[Nu]=d[zu]=d[Wu]=d[ku]=d[Qu]=d[Bu]=d[Tu]=d[Ru]=d[Uu]=d[$u]=d[Gu]=d[Vu]=d[Ku]=d[Hu]=d[qu]=!1;function Hr(e){return C(e)&&Qe(e.length)&&!!d[x(e)]}a(Hr,"baseIsTypedArray");var os=Hr;function qr(e){return function(t){return e(t)}}a(qr,"baseUnary");var Ae=qr,Wr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,re=Wr&&typeof module=="object"&&module&&!module.nodeType&&module,is=re&&re.exports===Wr,Ne=is&&Ht.process,us=function(){try{var e=re&&re.require&&re.require("util").types;return e||Ne&&Ne.binding&&Ne.binding("util")}catch{}}(),X=us,wt=X&&X.isTypedArray,ss=wt?Ae(wt):os,Ce=ss,cs=Object.prototype,fs=cs.hasOwnProperty;function Qr(e,t){var r=b(e),n=!r&&Z(e),o=!r&&!n&&J(e),i=!r&&!n&&!o&&Ce(e),u=r||n||o||i,s=u?Su(e.length,String):[],c=s.length;for(var f in e)(t||fs.call(e,f))&&!(u&&(f=="length"||o&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||_e(f,c)))&&s.push(f);return s}a(Qr,"arrayLikeKeys");var Zr=Qr;function Jr(e,t){return function(r){return e(t(r))}}a(Jr,"overArg");var Xr=Jr,ls=Xr(Object.keys,Object),vs=ls,hs=Object.prototype,ps=hs.hasOwnProperty;function Yr(e){if(!we(e))return vs(e);var t=[];for(var r in Object(e))ps.call(e,r)&&r!="constructor"&&t.push(r);return t}a(Yr,"baseKeys");var Ze=Yr;function en(e){return I(e)?Zr(e):Ze(e)}a(en,"keys");var O=en;function tn(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}a(tn,"nativeKeysIn");var ds=tn,bs=Object.prototype,ys=bs.hasOwnProperty;function rn(e){if(!w(e))return ds(e);var t=we(e),r=[];for(var n in e)n=="constructor"&&(t||!ys.call(e,n))||r.push(n);return r}a(rn,"baseKeysIn");var gs=rn;function nn(e){return I(e)?Zr(e,!0):gs(e)}a(nn,"keysIn");var T=nn,_s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,js=/^\w*$/;function an(e,t){if(b(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||L(e)?!0:js.test(e)||!_s.test(e)||t!=null&&e in Object(t)}a(an,"isKey");var Je=an,ms=B(Object,"create"),ie=ms;function on(){this.__data__=ie?ie(null):{},this.size=0}a(on,"hashClear");var Os=on;function un(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}a(un,"hashDelete");var ws=un,As="__lodash_hash_undefined__",Cs=Object.prototype,Ss=Cs.hasOwnProperty;function sn(e){var t=this.__data__;if(ie){var r=t[e];return r===As?void 0:r}return Ss.call(t,e)?t[e]:void 0}a(sn,"hashGet");var Is=sn,xs=Object.prototype,Es=xs.hasOwnProperty;function cn(e){var t=this.__data__;return ie?t[e]!==void 0:Es.call(t,e)}a(cn,"hashHas");var Ps=cn,Ms="__lodash_hash_undefined__";function fn(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ie&&t===void 0?Ms:t,this}a(fn,"hashSet");var Ds=fn;function R(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a(R,"Hash");R.prototype.clear=Os;R.prototype.delete=ws;R.prototype.get=Is;R.prototype.has=Ps;R.prototype.set=Ds;var At=R;function ln(){this.__data__=[],this.size=0}a(ln,"listCacheClear");var Fs=ln;function vn(e,t){for(var r=e.length;r--;)if(Y(e[r][0],t))return r;return-1}a(vn,"assocIndexOf");var Se=vn,Ls=Array.prototype,Ns=Ls.splice;function hn(e){var t=this.__data__,r=Se(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ns.call(t,r,1),--this.size,!0}a(hn,"listCacheDelete");var zs=hn;function pn(e){var t=this.__data__,r=Se(t,e);return r<0?void 0:t[r][1]}a(pn,"listCacheGet");var ks=pn;function dn(e){return Se(this.__data__,e)>-1}a(dn,"listCacheHas");var Bs=dn;function bn(e,t){var r=this.__data__,n=Se(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}a(bn,"listCacheSet");var Ts=bn;function U(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a(U,"ListCache");U.prototype.clear=Fs;U.prototype.delete=zs;U.prototype.get=ks;U.prototype.has=Bs;U.prototype.set=Ts;var Ie=U,Rs=B(S,"Map"),ue=Rs;function yn(){this.size=0,this.__data__={hash:new At,map:new(ue||Ie),string:new At}}a(yn,"mapCacheClear");var Us=yn;function gn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}a(gn,"isKeyable");var $s=gn;function _n(e,t){var r=e.__data__;return $s(t)?r[typeof t=="string"?"string":"hash"]:r.map}a(_n,"getMapData");var xe=_n;function jn(e){var t=xe(this,e).delete(e);return this.size-=t?1:0,t}a(jn,"mapCacheDelete");var Gs=jn;function mn(e){return xe(this,e).get(e)}a(mn,"mapCacheGet");var Vs=mn;function On(e){return xe(this,e).has(e)}a(On,"mapCacheHas");var Ks=On;function wn(e,t){var r=xe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}a(wn,"mapCacheSet");var Hs=wn;function $(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a($,"MapCache");$.prototype.clear=Us;$.prototype.delete=Gs;$.prototype.get=Vs;$.prototype.has=Ks;$.prototype.set=Hs;var Ee=$,qs="Expected a function";function Pe(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(qs);var r=a(function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=e.apply(this,n);return r.cache=i.set(o,u)||i,u},"memoized");return r.cache=new(Pe.Cache||Ee),r}a(Pe,"memoize");Pe.Cache=Ee;var Ws=Pe,Qs=500;function An(e){var t=Ws(e,function(n){return r.size===Qs&&r.clear(),n}),r=t.cache;return t}a(An,"memoizeCapped");var Zs=An,Js=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xs=/\\(\\)?/g,Ys=Zs(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Js,function(r,n,o,i){t.push(o?i.replace(Xs,"$1"):n||r)}),t}),ec=Ys;function Cn(e){return e==null?"":Ii(e)}a(Cn,"toString");var Sn=Cn;function In(e,t){return b(e)?e:Je(e,t)?[e]:ec(Sn(e))}a(In,"castPath");var Me=In;function xn(e){if(typeof e=="string"||L(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}a(xn,"toKey");var fe=xn;function En(e,t){t=Me(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[fe(t[r++])];return r&&r==n?e:void 0}a(En,"baseGet");var De=En;function Pn(e,t,r){var n=e==null?void 0:De(e,t);return n===void 0?r:n}a(Pn,"get");var tc=Pn;function Mn(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}a(Mn,"arrayPush");var Xe=Mn,Ct=A?A.isConcatSpreadable:void 0;function Dn(e){return b(e)||Z(e)||!!(Ct&&e&&e[Ct])}a(Dn,"isFlattenable");var rc=Dn;function Ye(e,t,r,n,o){var i=-1,u=e.length;for(r||(r=rc),o||(o=[]);++i<u;){var s=e[i];t>0&&r(s)?t>1?Ye(s,t-1,r,n,o):Xe(o,s):n||(o[o.length]=s)}return o}a(Ye,"baseFlatten");var et=Ye;function Fn(e){var t=e==null?0:e.length;return t?et(e,1):[]}a(Fn,"flatten");var nc=Fn;function Ln(e){return _r(Lr(e,void 0,nc),e+"")}a(Ln,"flatRest");var ac=Ln,oc=Xr(Object.getPrototypeOf,Object),tt=oc,ic="[object Object]",uc=Function.prototype,sc=Object.prototype,Nn=uc.toString,cc=sc.hasOwnProperty,fc=Nn.call(Object);function zn(e){if(!C(e)||x(e)!=ic)return!1;var t=tt(e);if(t===null)return!0;var r=cc.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Nn.call(r)==fc}a(zn,"isPlainObject");var lc=zn,vc="\\ud800-\\udfff",hc="\\u0300-\\u036f",pc="\\ufe20-\\ufe2f",dc="\\u20d0-\\u20ff",bc=hc+pc+dc,yc="\\ufe0e\\ufe0f",gc="\\u200d",_c=RegExp("["+gc+vc+bc+yc+"]");function kn(e){return _c.test(e)}a(kn,"hasUnicode");var jc=kn;function Bn(e,t,r,n){var o=-1,i=e==null?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}a(Bn,"arrayReduce");var mc=Bn;function Tn(){this.__data__=new Ie,this.size=0}a(Tn,"stackClear");var Oc=Tn;function Rn(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}a(Rn,"stackDelete");var wc=Rn;function Un(e){return this.__data__.get(e)}a(Un,"stackGet");var Ac=Un;function $n(e){return this.__data__.has(e)}a($n,"stackHas");var Cc=$n,Sc=200;function Gn(e,t){var r=this.__data__;if(r instanceof Ie){var n=r.__data__;if(!ue||n.length<Sc-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ee(n)}return r.set(e,t),this.size=r.size,this}a(Gn,"stackSet");var Ic=Gn;function G(e){var t=this.__data__=new Ie(e);this.size=t.size}a(G,"Stack");G.prototype.clear=Oc;G.prototype.delete=wc;G.prototype.get=Ac;G.prototype.has=Cc;G.prototype.set=Ic;var q=G;function Vn(e,t){return e&&ce(t,O(t),e)}a(Vn,"baseAssign");var xc=Vn;function Kn(e,t){return e&&ce(t,T(t),e)}a(Kn,"baseAssignIn");var Ec=Kn,Hn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,St=Hn&&typeof module=="object"&&module&&!module.nodeType&&module,Pc=St&&St.exports===Hn,It=Pc?S.Buffer:void 0,xt=It?It.allocUnsafe:void 0;function qn(e,t){if(t)return e.slice();var r=e.length,n=xt?xt(r):new e.constructor(r);return e.copy(n),n}a(qn,"cloneBuffer");var Wn=qn;function Qn(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var u=e[r];t(u,r,e)&&(i[o++]=u)}return i}a(Qn,"arrayFilter");var Zn=Qn;function Jn(){return[]}a(Jn,"stubArray");var Xn=Jn,Mc=Object.prototype,Dc=Mc.propertyIsEnumerable,Et=Object.getOwnPropertySymbols,Fc=Et?function(e){return e==null?[]:(e=Object(e),Zn(Et(e),function(t){return Dc.call(e,t)}))}:Xn,rt=Fc;function Yn(e,t){return ce(e,rt(e),t)}a(Yn,"copySymbols");var Lc=Yn,Nc=Object.getOwnPropertySymbols,zc=Nc?function(e){for(var t=[];e;)Xe(t,rt(e)),e=tt(e);return t}:Xn,ea=zc;function ta(e,t){return ce(e,ea(e),t)}a(ta,"copySymbolsIn");var kc=ta;function ra(e,t,r){var n=t(e);return b(e)?n:Xe(n,r(e))}a(ra,"baseGetAllKeys");var na=ra;function aa(e){return na(e,O,rt)}a(aa,"getAllKeys");var Te=aa;function oa(e){return na(e,T,ea)}a(oa,"getAllKeysIn");var Bc=oa,Tc=B(S,"DataView"),Re=Tc,Rc=B(S,"Promise"),Ue=Rc,Uc=B(S,"Set"),W=Uc,Pt="[object Map]",$c="[object Object]",Mt="[object Promise]",Dt="[object Set]",Ft="[object WeakMap]",Lt="[object DataView]",Gc=k(Re),Vc=k(ue),Kc=k(Ue),Hc=k(W),qc=k(Be),F=x;(Re&&F(new Re(new ArrayBuffer(1)))!=Lt||ue&&F(new ue)!=Pt||Ue&&F(Ue.resolve())!=Mt||W&&F(new W)!=Dt||Be&&F(new Be)!=Ft)&&(F=a(function(e){var t=x(e),r=t==$c?e.constructor:void 0,n=r?k(r):"";if(n)switch(n){case Gc:return Lt;case Vc:return Pt;case Kc:return Mt;case Hc:return Dt;case qc:return Ft}return t},"getTag"));var N=F,Wc=Object.prototype,Qc=Wc.hasOwnProperty;function ia(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Qc.call(e,"index")&&(r.index=e.index,r.input=e.input),r}a(ia,"initCloneArray");var Zc=ia,Jc=S.Uint8Array,ge=Jc;function ua(e){var t=new e.constructor(e.byteLength);return new ge(t).set(new ge(e)),t}a(ua,"cloneArrayBuffer");var nt=ua;function sa(e,t){var r=t?nt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}a(sa,"cloneDataView");var Xc=sa,Yc=/\w*$/;function ca(e){var t=new e.constructor(e.source,Yc.exec(e));return t.lastIndex=e.lastIndex,t}a(ca,"cloneRegExp");var ef=ca,Nt=A?A.prototype:void 0,zt=Nt?Nt.valueOf:void 0;function fa(e){return zt?Object(zt.call(e)):{}}a(fa,"cloneSymbol");var tf=fa;function la(e,t){var r=t?nt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}a(la,"cloneTypedArray");var va=la,rf="[object Boolean]",nf="[object Date]",af="[object Map]",of="[object Number]",uf="[object RegExp]",sf="[object Set]",cf="[object String]",ff="[object Symbol]",lf="[object ArrayBuffer]",vf="[object DataView]",hf="[object Float32Array]",pf="[object Float64Array]",df="[object Int8Array]",bf="[object Int16Array]",yf="[object Int32Array]",gf="[object Uint8Array]",_f="[object Uint8ClampedArray]",jf="[object Uint16Array]",mf="[object Uint32Array]";function ha(e,t,r){var n=e.constructor;switch(t){case lf:return nt(e);case rf:case nf:return new n(+e);case vf:return Xc(e,r);case hf:case pf:case df:case bf:case yf:case gf:case _f:case jf:case mf:return va(e,r);case af:return new n;case of:case cf:return new n(e);case uf:return ef(e);case sf:return new n;case ff:return tf(e)}}a(ha,"initCloneByTag");var Of=ha;function pa(e){return typeof e.constructor=="function"&&!we(e)?au(tt(e)):{}}a(pa,"initCloneObject");var da=pa,wf="[object Map]";function ba(e){return C(e)&&N(e)==wf}a(ba,"baseIsMap");var Af=ba,kt=X&&X.isMap,Cf=kt?Ae(kt):Af,Sf=Cf,If="[object Set]";function ya(e){return C(e)&&N(e)==If}a(ya,"baseIsSet");var xf=ya,Bt=X&&X.isSet,Ef=Bt?Ae(Bt):xf,Pf=Ef,Mf=1,Df=2,Ff=4,ga="[object Arguments]",Lf="[object Array]",Nf="[object Boolean]",zf="[object Date]",kf="[object Error]",_a="[object Function]",Bf="[object GeneratorFunction]",Tf="[object Map]",Rf="[object Number]",ja="[object Object]",Uf="[object RegExp]",$f="[object Set]",Gf="[object String]",Vf="[object Symbol]",Kf="[object WeakMap]",Hf="[object ArrayBuffer]",qf="[object DataView]",Wf="[object Float32Array]",Qf="[object Float64Array]",Zf="[object Int8Array]",Jf="[object Int16Array]",Xf="[object Int32Array]",Yf="[object Uint8Array]",el="[object Uint8ClampedArray]",tl="[object Uint16Array]",rl="[object Uint32Array]",p={};p[ga]=p[Lf]=p[Hf]=p[qf]=p[Nf]=p[zf]=p[Wf]=p[Qf]=p[Zf]=p[Jf]=p[Xf]=p[Tf]=p[Rf]=p[ja]=p[Uf]=p[$f]=p[Gf]=p[Vf]=p[Yf]=p[el]=p[tl]=p[rl]=!0;p[kf]=p[_a]=p[Kf]=!1;function ne(e,t,r,n,o,i){var u,s=t&Mf,c=t&Df,f=t&Ff;if(r&&(u=o?r(e,n,o,i):r(e)),u!==void 0)return u;if(!w(e))return e;var l=b(e);if(l){if(u=Zc(e),!s)return br(e,u)}else{var v=N(e),h=v==_a||v==Bf;if(J(e))return Wn(e,s);if(v==ja||v==ga||h&&!o){if(u=c||h?{}:da(e),!s)return c?kc(e,Ec(u,e)):Lc(e,xc(u,e))}else{if(!p[v])return o?e:{};u=Of(e,v,s)}}i||(i=new q);var _=i.get(e);if(_)return _;i.set(e,u),Pf(e)?e.forEach(function(g){u.add(ne(g,t,r,g,e,i))}):Sf(e)&&e.forEach(function(g,j){u.set(j,ne(g,t,r,j,e,i))});var y=f?c?Bc:Te:c?T:O,m=l?void 0:y(e);return mr(m||e,function(g,j){m&&(j=g,g=e[j]),me(u,j,ne(g,t,r,j,e,i))}),u}a(ne,"baseClone");var ma=ne,nl=4;function Oa(e){return ma(e,nl)}a(Oa,"clone");var ch=Oa,al=1,ol=4;function wa(e){return ma(e,al|ol)}a(wa,"cloneDeep");var fh=wa,il="__lodash_hash_undefined__";function Aa(e){return this.__data__.set(e,il),this}a(Aa,"setCacheAdd");var ul=Aa;function Ca(e){return this.__data__.has(e)}a(Ca,"setCacheHas");var sl=Ca;function se(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ee;++t<r;)this.add(e[t])}a(se,"SetCache");se.prototype.add=se.prototype.push=ul;se.prototype.has=sl;var Sa=se;function Ia(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}a(Ia,"arraySome");var cl=Ia;function xa(e,t){return e.has(t)}a(xa,"cacheHas");var Ea=xa,fl=1,ll=2;function Pa(e,t,r,n,o,i){var u=r&fl,s=e.length,c=t.length;if(s!=c&&!(u&&c>s))return!1;var f=i.get(e),l=i.get(t);if(f&&l)return f==t&&l==e;var v=-1,h=!0,_=r&ll?new Sa:void 0;for(i.set(e,t),i.set(t,e);++v<s;){var y=e[v],m=t[v];if(n)var g=u?n(m,y,v,t,e,i):n(y,m,v,e,t,i);if(g!==void 0){if(g)continue;h=!1;break}if(_){if(!cl(t,function(j,P){if(!Ea(_,P)&&(y===j||o(y,j,r,n,i)))return _.push(P)})){h=!1;break}}else if(!(y===m||o(y,m,r,n,i))){h=!1;break}}return i.delete(e),i.delete(t),h}a(Pa,"equalArrays");var Ma=Pa;function Da(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}a(Da,"mapToArray");var vl=Da;function Fa(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}a(Fa,"setToArray");var at=Fa,hl=1,pl=2,dl="[object Boolean]",bl="[object Date]",yl="[object Error]",gl="[object Map]",_l="[object Number]",jl="[object RegExp]",ml="[object Set]",Ol="[object String]",wl="[object Symbol]",Al="[object ArrayBuffer]",Cl="[object DataView]",Tt=A?A.prototype:void 0,ze=Tt?Tt.valueOf:void 0;function La(e,t,r,n,o,i,u){switch(r){case Cl:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Al:return!(e.byteLength!=t.byteLength||!i(new ge(e),new ge(t)));case dl:case bl:case _l:return Y(+e,+t);case yl:return e.name==t.name&&e.message==t.message;case jl:case Ol:return e==t+"";case gl:var s=vl;case ml:var c=n&hl;if(s||(s=at),e.size!=t.size&&!c)return!1;var f=u.get(e);if(f)return f==t;n|=pl,u.set(e,t);var l=Ma(s(e),s(t),n,o,i,u);return u.delete(e),l;case wl:if(ze)return ze.call(e)==ze.call(t)}return!1}a(La,"equalByTag");var Sl=La,Il=1,xl=Object.prototype,El=xl.hasOwnProperty;function Na(e,t,r,n,o,i){var u=r&Il,s=Te(e),c=s.length,f=Te(t),l=f.length;if(c!=l&&!u)return!1;for(var v=c;v--;){var h=s[v];if(!(u?h in t:El.call(t,h)))return!1}var _=i.get(e),y=i.get(t);if(_&&y)return _==t&&y==e;var m=!0;i.set(e,t),i.set(t,e);for(var g=u;++v<c;){h=s[v];var j=e[h],P=t[h];if(n)var lt=u?n(P,j,h,t,e,i):n(j,P,h,e,t,i);if(!(lt===void 0?j===P||o(j,P,r,n,i):lt)){m=!1;break}g||(g=h=="constructor")}if(m&&!g){var le=e.constructor,ve=t.constructor;le!=ve&&"constructor"in e&&"constructor"in t&&!(typeof le=="function"&&le instanceof le&&typeof ve=="function"&&ve instanceof ve)&&(m=!1)}return i.delete(e),i.delete(t),m}a(Na,"equalObjects");var Pl=Na,Ml=1,Rt="[object Arguments]",Ut="[object Array]",he="[object Object]",Dl=Object.prototype,$t=Dl.hasOwnProperty;function za(e,t,r,n,o,i){var u=b(e),s=b(t),c=u?Ut:N(e),f=s?Ut:N(t);c=c==Rt?he:c,f=f==Rt?he:f;var l=c==he,v=f==he,h=c==f;if(h&&J(e)){if(!J(t))return!1;u=!0,l=!1}if(h&&!l)return i||(i=new q),u||Ce(e)?Ma(e,t,r,n,o,i):Sl(e,t,c,r,n,o,i);if(!(r&Ml)){var _=l&&$t.call(e,"__wrapped__"),y=v&&$t.call(t,"__wrapped__");if(_||y){var m=_?e.value():e,g=y?t.value():t;return i||(i=new q),o(m,g,r,n,i)}}return h?(i||(i=new q),Pl(e,t,r,n,o,i)):!1}a(za,"baseIsEqualDeep");var Fl=za;function ot(e,t,r,n,o){return e===t?!0:e==null||t==null||!C(e)&&!C(t)?e!==e&&t!==t:Fl(e,t,r,n,ot,o)}a(ot,"baseIsEqual");var ka=ot,Ll=1,Nl=2;function Ba(e,t,r,n){var o=r.length,i=o,u=!n;if(e==null)return!i;for(e=Object(e);o--;){var s=r[o];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=r[o];var c=s[0],f=e[c],l=s[1];if(u&&s[2]){if(f===void 0&&!(c in e))return!1}else{var v=new q;if(n)var h=n(f,l,c,e,t,v);if(!(h===void 0?ka(l,f,Ll|Nl,n,v):h))return!1}}return!0}a(Ba,"baseIsMatch");var zl=Ba;function Ta(e){return e===e&&!w(e)}a(Ta,"isStrictComparable");var Ra=Ta;function Ua(e){for(var t=O(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Ra(o)]}return t}a(Ua,"getMatchData");var kl=Ua;function $a(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}a($a,"matchesStrictComparable");var Ga=$a;function Va(e){var t=kl(e);return t.length==1&&t[0][2]?Ga(t[0][0],t[0][1]):function(r){return r===e||zl(r,e,t)}}a(Va,"baseMatches");var Bl=Va;function Ka(e,t){return e!=null&&t in Object(e)}a(Ka,"baseHasIn");var Tl=Ka;function Ha(e,t,r){t=Me(t,e);for(var n=-1,o=t.length,i=!1;++n<o;){var u=fe(t[n]);if(!(i=e!=null&&r(e,u)))break;e=e[u]}return i||++n!=o?i:(o=e==null?0:e.length,!!o&&Qe(o)&&_e(u,o)&&(b(e)||Z(e)))}a(Ha,"hasPath");var qa=Ha;function Wa(e,t){return e!=null&&qa(e,t,Tl)}a(Wa,"hasIn");var Qa=Wa,Rl=1,Ul=2;function Za(e,t){return Je(e)&&Ra(t)?Ga(fe(e),t):function(r){var n=tc(r,e);return n===void 0&&n===t?Qa(r,e):ka(t,n,Rl|Ul)}}a(Za,"baseMatchesProperty");var $l=Za;function Ja(e){return function(t){return t==null?void 0:t[e]}}a(Ja,"baseProperty");var Xa=Ja;function Ya(e){return function(t){return De(t,e)}}a(Ya,"basePropertyDeep");var Gl=Ya;function eo(e){return Je(e)?Xa(fe(e)):Gl(e)}a(eo,"property");var Vl=eo;function to(e){return typeof e=="function"?e:e==null?z:typeof e=="object"?b(e)?$l(e[0],e[1]):Bl(e):Vl(e)}a(to,"baseIteratee");var E=to;function ro(e){return function(t,r,n){for(var o=-1,i=Object(t),u=n(t),s=u.length;s--;){var c=u[e?s:++o];if(r(i[c],c,i)===!1)break}return t}}a(ro,"createBaseFor");var Kl=ro,Hl=Kl(),it=Hl;function no(e,t){return e&&it(e,t,O)}a(no,"baseForOwn");var ut=no;function ao(e,t){return function(r,n){if(r==null)return r;if(!I(r))return e(r,n);for(var o=r.length,i=t?o:-1,u=Object(r);(t?i--:++i<o)&&n(u[i],i,u)!==!1;);return r}}a(ao,"createBaseEach");var ql=ao,Wl=ql(ut),Fe=Wl,Ql=a(function(){return S.Date.now()},"now"),lh=Ql,oo=Object.prototype,Zl=oo.hasOwnProperty,Jl=Oe(function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&oe(t[0],t[1],o)&&(n=1);++r<n;)for(var i=t[r],u=T(i),s=-1,c=u.length;++s<c;){var f=u[s],l=e[f];(l===void 0||Y(l,oo[f])&&!Zl.call(e,f))&&(e[f]=i[f])}return e}),vh=Jl;function io(e,t,r){(r!==void 0&&!Y(e[t],r)||r===void 0&&!(t in e))&&je(e,t,r)}a(io,"assignMergeValue");var $e=io;function uo(e){return C(e)&&I(e)}a(uo,"isArrayLikeObject");var so=uo;function co(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}a(co,"safeGet");var Ge=co;function fo(e){return ce(e,T(e))}a(fo,"toPlainObject");var Xl=fo;function lo(e,t,r,n,o,i,u){var s=Ge(e,r),c=Ge(t,r),f=u.get(c);if(f){$e(e,r,f);return}var l=i?i(s,c,r+"",e,t,u):void 0,v=l===void 0;if(v){var h=b(c),_=!h&&J(c),y=!h&&!_&&Ce(c);l=c,h||_||y?b(s)?l=s:so(s)?l=br(s):_?(v=!1,l=Wn(c,!0)):y?(v=!1,l=va(c,!0)):l=[]:lc(c)||Z(c)?(l=s,Z(s)?l=Xl(s):(!w(s)||ae(s))&&(l=da(c))):v=!1}v&&(u.set(c,l),o(l,c,n,i,u),u.delete(c)),$e(e,r,l)}a(lo,"baseMergeDeep");var Yl=lo;function st(e,t,r,n,o){e!==t&&it(t,function(i,u){if(o||(o=new q),w(i))Yl(e,t,u,r,st,n,o);else{var s=n?n(Ge(e,u),i,u+"",e,t,o):void 0;s===void 0&&(s=i),$e(e,u,s)}},T)}a(st,"baseMerge");var ev=st;function vo(e,t,r){for(var n=-1,o=e==null?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}a(vo,"arrayIncludesWith");var tv=vo;function ho(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}a(ho,"last");var hh=ho;function po(e){return typeof e=="function"?e:z}a(po,"castFunction");var ct=po;function bo(e,t){var r=b(e)?mr:Fe;return r(e,ct(t))}a(bo,"forEach");var M=bo;function yo(e,t){var r=[];return Fe(e,function(n,o,i){t(n,o,i)&&r.push(n)}),r}a(yo,"baseFilter");var rv=yo;function go(e,t){var r=b(e)?Zn:rv;return r(e,E(t))}a(go,"filter");var pe=go;function _o(e){return function(t,r,n){var o=Object(t);if(!I(t)){var i=E(r);t=O(t),r=a(function(s){return i(o[s],s,o)},"predicate")}var u=e(t,r,n);return u>-1?o[i?t[u]:u]:void 0}}a(_o,"createFind");var nv=_o,av=Math.max;function jo(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var o=r==null?0:Bi(r);return o<0&&(o=av(n+o,0)),wr(e,E(t),o)}a(jo,"findIndex");var ov=jo,iv=nv(ov),ph=iv;function mo(e,t){var r=-1,n=I(e)?Array(e.length):[];return Fe(e,function(o,i,u){n[++r]=t(o,i,u)}),n}a(mo,"baseMap");var Oo=mo;function wo(e,t){var r=b(e)?H:Oo;return r(e,E(t))}a(wo,"map");var dh=wo;function Ao(e,t){return e==null?e:it(e,ct(t),T)}a(Ao,"forIn");var bh=Ao;function Co(e,t){return e&&ut(e,ct(t))}a(Co,"forOwn");var yh=Co;function So(e,t){return e>t}a(So,"baseGt");var uv=So,sv=Object.prototype,cv=sv.hasOwnProperty;function Io(e,t){return e!=null&&cv.call(e,t)}a(Io,"baseHas");var fv=Io;function xo(e,t){return e!=null&&qa(e,t,fv)}a(xo,"has");var gh=xo,lv="[object String]";function Eo(e){return typeof e=="string"||!b(e)&&C(e)&&x(e)==lv}a(Eo,"isString");var vv=Eo;function Po(e,t){return H(t,function(r){return e[r]})}a(Po,"baseValues");var hv=Po;function Mo(e){return e==null?[]:hv(e,O(e))}a(Mo,"values");var ke=Mo,pv="[object Map]",dv="[object Set]",bv=Object.prototype,yv=bv.hasOwnProperty;function Do(e){if(e==null)return!0;if(I(e)&&(b(e)||typeof e=="string"||typeof e.splice=="function"||J(e)||Ce(e)||Z(e)))return!e.length;var t=N(e);if(t==pv||t==dv)return!e.size;if(we(e))return!Ze(e).length;for(var r in e)if(yv.call(e,r))return!1;return!0}a(Do,"isEmpty");var Gt=Do;function Fo(e){return e===void 0}a(Fo,"isUndefined");var V=Fo;function Lo(e,t){return e<t}a(Lo,"baseLt");var No=Lo;function zo(e,t){var r={};return t=E(t),ut(e,function(n,o,i){je(r,o,t(n,o,i))}),r}a(zo,"mapValues");var _h=zo;function ko(e,t,r){for(var n=-1,o=e.length;++n<o;){var i=e[n],u=t(i);if(u!=null&&(s===void 0?u===u&&!L(u):r(u,s)))var s=u,c=i}return c}a(ko,"baseExtremum");var ft=ko;function Bo(e){return e&&e.length?ft(e,z,uv):void 0}a(Bo,"max");var jh=Bo,gv=Au(function(e,t,r){ev(e,t,r)}),mh=gv;function To(e){return e&&e.length?ft(e,z,No):void 0}a(To,"min");var Oh=To;function Ro(e,t){return e&&e.length?ft(e,E(t),No):void 0}a(Ro,"minBy");var wh=Ro;function Uo(e,t,r,n){if(!w(e))return e;t=Me(t,e);for(var o=-1,i=t.length,u=i-1,s=e;s!=null&&++o<i;){var c=fe(t[o]),f=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=u){var l=s[c];f=n?n(l,c,s):void 0,f===void 0&&(f=w(l)?l:_e(t[o+1])?[]:{})}me(s,c,f),s=s[c]}return e}a(Uo,"baseSet");var _v=Uo;function $o(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var u=t[n],s=De(e,u);r(s,u)&&_v(i,Me(u,e),s)}return i}a($o,"basePickBy");var jv=$o;function Go(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}a(Go,"baseSortBy");var mv=Go;function Vo(e,t){if(e!==t){var r=e!==void 0,n=e===null,o=e===e,i=L(e),u=t!==void 0,s=t===null,c=t===t,f=L(t);if(!s&&!f&&!i&&e>t||i&&u&&c&&!s&&!f||n&&u&&c||!r&&c||!o)return 1;if(!n&&!i&&!f&&e<t||f&&r&&o&&!n&&!i||s&&r&&o||!u&&o||!c)return-1}return 0}a(Vo,"compareAscending");var Ov=Vo;function Ko(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,u=o.length,s=r.length;++n<u;){var c=Ov(o[n],i[n]);if(c){if(n>=s)return c;var f=r[n];return c*(f=="desc"?-1:1)}}return e.index-t.index}a(Ko,"compareMultiple");var wv=Ko;function Ho(e,t,r){t.length?t=H(t,function(i){return b(i)?function(u){return De(u,i.length===1?i[0]:i)}:i}):t=[z];var n=-1;t=H(t,Ae(E));var o=Oo(e,function(i,u,s){var c=H(t,function(f){return f(i)});return{criteria:c,index:++n,value:i}});return mv(o,function(i,u){return wv(i,u,r)})}a(Ho,"baseOrderBy");var Av=Ho,Cv=Xa("length"),Sv=Cv,qo="\\ud800-\\udfff",Iv="\\u0300-\\u036f",xv="\\ufe20-\\ufe2f",Ev="\\u20d0-\\u20ff",Pv=Iv+xv+Ev,Mv="\\ufe0e\\ufe0f",Dv="["+qo+"]",Ve="["+Pv+"]",Ke="\\ud83c[\\udffb-\\udfff]",Fv="(?:"+Ve+"|"+Ke+")",Wo="[^"+qo+"]",Qo="(?:\\ud83c[\\udde6-\\uddff]){2}",Zo="[\\ud800-\\udbff][\\udc00-\\udfff]",Lv="\\u200d",Jo=Fv+"?",Xo="["+Mv+"]?",Nv="(?:"+Lv+"(?:"+[Wo,Qo,Zo].join("|")+")"+Xo+Jo+")*",zv=Xo+Jo+Nv,kv="(?:"+[Wo+Ve+"?",Ve,Qo,Zo,Dv].join("|")+")",Vt=RegExp(Ke+"(?="+Ke+")|"+kv+zv,"g");function Yo(e){for(var t=Vt.lastIndex=0;Vt.test(e);)++t;return t}a(Yo,"unicodeSize");var Bv=Yo;function ei(e){return jc(e)?Bv(e):Sv(e)}a(ei,"stringSize");var Tv=ei;function ti(e,t){return jv(e,t,function(r,n){return Qa(e,n)})}a(ti,"basePick");var Rv=ti,Uv=ac(function(e,t){return e==null?{}:Rv(e,t)}),Ah=Uv,$v=Math.ceil,Gv=Math.max;function ri(e,t,r,n){for(var o=-1,i=Gv($v((t-e)/(r||1)),0),u=Array(i);i--;)u[n?i:++o]=e,e+=r;return u}a(ri,"baseRange");var Vv=ri;function ni(e){return function(t,r,n){return n&&typeof n!="number"&&oe(t,r,n)&&(r=n=void 0),t=de(t),r===void 0?(r=t,t=0):r=de(r),n=n===void 0?t<r?1:-1:de(n),Vv(t,r,n,e)}}a(ni,"createRange");var Kv=ni,Hv=Kv(),Ch=Hv;function ai(e,t,r,n,o){return o(e,function(i,u,s){r=n?(n=!1,i):t(r,i,u,s)}),r}a(ai,"baseReduce");var qv=ai;function oi(e,t,r){var n=b(e)?mc:qv,o=arguments.length<3;return n(e,E(t),r,o,Fe)}a(oi,"reduce");var Wv=oi,Qv="[object Map]",Zv="[object Set]";function ii(e){if(e==null)return 0;if(I(e))return vv(e)?Tv(e):e.length;var t=N(e);return t==Qv||t==Zv?e.size:Ze(e).length}a(ii,"size");var Sh=ii,Jv=Oe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&oe(e,t[0],t[1])?t=[]:r>2&&oe(t[0],t[1],t[2])&&(t=[t[0]]),Av(e,et(t,1),[])}),Ih=Jv,Xv=1/0,Yv=W&&1/at(new W([,-0]))[1]==Xv?function(e){return new W(e)}:iu,eh=Yv,th=200;function ui(e,t,r){var n=-1,o=gu,i=e.length,u=!0,s=[],c=s;if(r)u=!1,o=tv;else if(i>=th){var f=t?null:eh(e);if(f)return at(f);u=!1,o=Ea,c=new Sa}else c=t?[]:s;e:for(;++n<i;){var l=e[n],v=t?t(l):l;if(l=r||l!==0?l:0,u&&v===v){for(var h=c.length;h--;)if(c[h]===v)continue e;t&&c.push(v),s.push(l)}else o(c,v,r)||(c!==s&&c.push(v),s.push(l))}return s}a(ui,"baseUniq");var rh=ui,nh=Oe(function(e){return rh(et(e,1,so,!0))}),ah=nh,oh=0;function si(e){var t=++oh;return Sn(e)+t}a(si,"uniqueId");var xh=si;function ci(e,t,r){for(var n=-1,o=e.length,i=t.length,u={};++n<o;){var s=n<i?t[n]:void 0;r(u,e[n],s)}return u}a(ci,"baseZipObject");var ih=ci;function fi(e,t){return ih(e||[],t||[],me)}a(fi,"zipObject");var Eh=fi,uh="\0",D="\0",Kt="",Q,li=(Q=class{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=te(void 0),this._defaultEdgeLabelFn=te(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[D]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return ae(t)||(t=te(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return O(this._nodes)}sources(){var t=this;return pe(this.nodes(),function(r){return Gt(t._in[r])})}sinks(){var t=this;return pe(this.nodes(),function(r){return Gt(t._out[r])})}setNodes(t,r){var n=arguments,o=this;return M(t,function(i){n.length>1?o.setNode(i,r):o.setNode(i)}),this}setNode(t,r){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=D,this._children[t]={},this._children[D][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var r=a(n=>this.removeEdge(this._edgeObjs[n]),"removeEdge");delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],M(this.children(t),n=>{this.setParent(n)}),delete this._children[t]),M(O(this._in[t]),r),delete this._in[t],delete this._preds[t],M(O(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(V(r))r=D;else{r+="";for(var n=r;!V(n);n=this.parent(n))if(n===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==D)return r}}children(t){if(V(t)&&(t=D),this._isCompound){var r=this._children[t];if(r)return O(r)}else{if(t===D)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return O(r)}successors(t){var r=this._sucs[t];if(r)return O(r)}neighbors(t){var r=this.predecessors(t);if(r)return ah(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;M(this._nodes,function(u,s){t(s)&&r.setNode(s,u)}),M(this._edgeObjs,function(u){r.hasNode(u.v)&&r.hasNode(u.w)&&r.setEdge(u,n.edge(u))});var o={};function i(u){var s=n.parent(u);return s===void 0||r.hasNode(s)?(o[u]=s,s):s in o?o[s]:i(s)}return a(i,"findParent"),this._isCompound&&M(r.nodes(),function(u){r.setParent(u,i(u))}),r}setDefaultEdgeLabel(t){return ae(t)||(t=te(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return ke(this._edgeObjs)}setPath(t,r){var n=this,o=arguments;return Wv(t,function(i,u){return o.length>1?n.setEdge(i,u,r):n.setEdge(i,u),u}),this}setEdge(){var t,r,n,o,i=!1,u=arguments[0];typeof u=="object"&&u!==null&&"v"in u?(t=u.v,r=u.w,n=u.name,arguments.length===2&&(o=arguments[1],i=!0)):(t=u,r=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),t=""+t,r=""+r,V(n)||(n=""+n);var s=K(this._isDirected,t,r,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,s))return i&&(this._edgeLabels[s]=o),this;if(!V(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[s]=i?o:this._defaultEdgeLabelFn(t,r,n);var c=vi(this._isDirected,t,r,n);return t=c.v,r=c.w,Object.freeze(c),this._edgeObjs[s]=c,He(this._preds[r],t),He(this._sucs[t],r),this._in[r][s]=c,this._out[t][s]=c,this._edgeCount++,this}edge(t,r,n){var o=arguments.length===1?be(this._isDirected,arguments[0]):K(this._isDirected,t,r,n);return this._edgeLabels[o]}hasEdge(t,r,n){var o=arguments.length===1?be(this._isDirected,arguments[0]):K(this._isDirected,t,r,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,o)}removeEdge(t,r,n){var o=arguments.length===1?be(this._isDirected,arguments[0]):K(this._isDirected,t,r,n),i=this._edgeObjs[o];return i&&(t=i.v,r=i.w,delete this._edgeLabels[o],delete this._edgeObjs[o],qe(this._preds[r],t),qe(this._sucs[t],r),delete this._in[r][o],delete this._out[t][o],this._edgeCount--),this}inEdges(t,r){var n=this._in[t];if(n){var o=ke(n);return r?pe(o,function(i){return i.v===r}):o}}outEdges(t,r){var n=this._out[t];if(n){var o=ke(n);return r?pe(o,function(i){return i.w===r}):o}}nodeEdges(t,r){var n=this.inEdges(t,r);if(n)return n.concat(this.outEdges(t,r))}},a(Q,"Graph"),Q);li.prototype._nodeCount=0;li.prototype._edgeCount=0;function He(e,t){e[t]?e[t]++:e[t]=1}a(He,"incrementOrInitEntry");function qe(e,t){--e[t]||delete e[t]}a(qe,"decrementOrRemoveEntry");function K(e,t,r,n){var o=""+t,i=""+r;if(!e&&o>i){var u=o;o=i,i=u}return o+Kt+i+Kt+(V(n)?uh:n)}a(K,"edgeArgsToId");function vi(e,t,r,n){var o=""+t,i=""+r;if(!e&&o>i){var u=o;o=i,i=u}var s={v:o,w:i};return n&&(s.name=n),s}a(vi,"edgeArgsToObj");function be(e,t){return K(e,t.v,t.w,t.name)}a(be,"edgeObjToId");/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
lodash-es/lodash.js:
|
|
4
4
|
(**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as a,b as x,p as g}from"./index-
|
|
1
|
+
import{m as a,b as x,p as g}from"./index-VTKdaklA.js";var m=a((t,i,e,h)=>{t.attr("class",e);let{width:o,height:r,x:s,y:w}=n(t,i);x(t,r,o,h);let d=$(s,w,o,r,i);t.attr("viewBox",d),g.debug(`viewBox configured: ${d} with padding: ${i}`)},"setupViewPortForSVG"),n=a((t,i)=>{var h;let e=((h=t.node())==null?void 0:h.getBBox())||{width:0,height:0,x:0,y:0};return{width:e.width+i*2,height:e.height+i*2,x:e.x,y:e.y}},"calculateDimensionsWithPadding"),$=a((t,i,e,h,o)=>`${t-o} ${i-o} ${e} ${h}`,"createViewBox");export{m as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Y as t,Z as a,D as s,p as e}from"./chunk-RG4AUYOV-Bl5F_gDs.js";import"./chunk-AZZRMDJM-BHlLC7p3.js";import"./chunk-LII3EMHJ-Dqq0Qguw.js";import"./chunk-6764PJDD-Cppb-jH-.js";import"./chunk-ZXARS5L4-wcrIaQvY.js";import{m as o}from"./index-VTKdaklA.js";var c={parser:s,get db(){return new e},renderer:a,styles:t,init:o(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{c as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Y as t,Z as a,D as s,p as e}from"./chunk-RG4AUYOV-Bl5F_gDs.js";import"./chunk-AZZRMDJM-BHlLC7p3.js";import"./chunk-LII3EMHJ-Dqq0Qguw.js";import"./chunk-6764PJDD-Cppb-jH-.js";import"./chunk-ZXARS5L4-wcrIaQvY.js";import{m as o}from"./index-VTKdaklA.js";var c={parser:s,get db(){return new e},renderer:a,styles:t,init:o(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{c as diagram};
|