@eeshaai/code 0.0.0-stage → 1.0.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.
Files changed (128) hide show
  1. package/LICENSE.md +115 -0
  2. package/README.md +322 -3
  3. package/dist/THIRD-PARTY-NOTICES.md +23 -0
  4. package/dist/claude-agent-sdk/LICENSE.md +1 -0
  5. package/dist/claude-agent-sdk/sdk.mjs +156 -0
  6. package/dist/cli.js +23 -0
  7. package/dist/pluginWorker.js +1610 -0
  8. package/dist/resources/styles/custom/instructions/design.md +284 -0
  9. package/dist/resources/styles/custom/instructions/requirements.md +161 -0
  10. package/dist/resources/styles/custom/instructions/tasks-implement.md +90 -0
  11. package/dist/resources/styles/custom/instructions/tasks.md +159 -0
  12. package/dist/resources/styles/custom/process.md +49 -0
  13. package/dist/resources/styles/custom/prompts/first.md +29 -0
  14. package/dist/resources/styles/custom/prompts/implement.md +27 -0
  15. package/dist/resources/styles/custom/prompts/rewrite-note.md +40 -0
  16. package/dist/resources/styles/custom/prompts/rewrite.md +32 -0
  17. package/dist/resources/styles/custom/style.yml +46 -0
  18. package/dist/resources/styles/grammar.md +731 -0
  19. package/dist/server.js +839 -0
  20. package/dist/web/chunks/abnfDiagram-VCTEODGH-6KC3BO47.js +2 -0
  21. package/dist/web/chunks/architecture-7GRP2DOG-JLXNDD4H.js +2 -0
  22. package/dist/web/chunks/architectureDiagram-5GKGNRK7-QKPCVOD2.js +37 -0
  23. package/dist/web/chunks/blockDiagram-I7D4REHJ-4XZWNXLB.js +130 -0
  24. package/dist/web/chunks/c4Diagram-7LVT6UL2-4HJHKNE3.js +39 -0
  25. package/dist/web/chunks/chunk-2DLEMZHM.js +33 -0
  26. package/dist/web/chunks/chunk-2RFQIKC6.js +232 -0
  27. package/dist/web/chunks/chunk-37NHO5VO.js +2 -0
  28. package/dist/web/chunks/chunk-46RPN6IE.js +3 -0
  29. package/dist/web/chunks/chunk-4IPDIKAU.js +2 -0
  30. package/dist/web/chunks/chunk-4KP3BIPB.js +2 -0
  31. package/dist/web/chunks/chunk-4S2DRQJ6.js +340 -0
  32. package/dist/web/chunks/chunk-4TORDSRR.js +2 -0
  33. package/dist/web/chunks/chunk-5KNOHX5X.js +15 -0
  34. package/dist/web/chunks/chunk-6FQEBIA3.js +133 -0
  35. package/dist/web/chunks/chunk-6KSWTVXD.js +3 -0
  36. package/dist/web/chunks/chunk-6TGTE6CF.js +2 -0
  37. package/dist/web/chunks/chunk-6URXM4C4.js +2 -0
  38. package/dist/web/chunks/chunk-6VRLULJH.js +2 -0
  39. package/dist/web/chunks/chunk-7XAOOQR4.js +2 -0
  40. package/dist/web/chunks/chunk-BUZPUGIT.js +2 -0
  41. package/dist/web/chunks/chunk-DIRT34TZ.js +2 -0
  42. package/dist/web/chunks/chunk-FGASMJTA.js +4 -0
  43. package/dist/web/chunks/chunk-FNIFXWXL.js +2 -0
  44. package/dist/web/chunks/chunk-FPLIRG3U.js +73 -0
  45. package/dist/web/chunks/chunk-GQPX4EIC.js +11 -0
  46. package/dist/web/chunks/chunk-HAKJ3AUV.js +2 -0
  47. package/dist/web/chunks/chunk-HBEUVMXY.js +2 -0
  48. package/dist/web/chunks/chunk-HNYXDXPN.js +63 -0
  49. package/dist/web/chunks/chunk-HX7W7GSO.js +2 -0
  50. package/dist/web/chunks/chunk-II6WN3ZG.js +2 -0
  51. package/dist/web/chunks/chunk-JOSXY3EP.js +169 -0
  52. package/dist/web/chunks/chunk-L34PKG4P.js +2 -0
  53. package/dist/web/chunks/chunk-LDXBIOBF.js +2 -0
  54. package/dist/web/chunks/chunk-LHNPPNB7.js +3 -0
  55. package/dist/web/chunks/chunk-LQ6CTWX6.js +2 -0
  56. package/dist/web/chunks/chunk-LSVIQRSY.js +2 -0
  57. package/dist/web/chunks/chunk-M3SWKTLZ.js +2 -0
  58. package/dist/web/chunks/chunk-MBZYSJFT.js +2 -0
  59. package/dist/web/chunks/chunk-MZEMPN3C.js +2 -0
  60. package/dist/web/chunks/chunk-OODDZ447.js +2 -0
  61. package/dist/web/chunks/chunk-OXLTOJNY.js +3 -0
  62. package/dist/web/chunks/chunk-PR453BYT.js +2 -0
  63. package/dist/web/chunks/chunk-QNEZP2TE.js +179 -0
  64. package/dist/web/chunks/chunk-R7TFKRNM.js +2 -0
  65. package/dist/web/chunks/chunk-T4HEWXAQ.js +2 -0
  66. package/dist/web/chunks/chunk-TPXX77KB.js +2 -0
  67. package/dist/web/chunks/chunk-TPYBIPJG.js +2 -0
  68. package/dist/web/chunks/chunk-TXNHMPKM.js +89 -0
  69. package/dist/web/chunks/chunk-VAKN3BTM.js +2 -0
  70. package/dist/web/chunks/chunk-VY4GEFSG.js +2 -0
  71. package/dist/web/chunks/chunk-XBYCKXUJ.js +207 -0
  72. package/dist/web/chunks/chunk-YM7LHP34.js +16 -0
  73. package/dist/web/chunks/classDiagram-ZZMXUADV-4J5HHZD6.js +2 -0
  74. package/dist/web/chunks/classDiagram-v2-VYDZK3BY-X6WY2DAS.js +2 -0
  75. package/dist/web/chunks/cose-bilkent-JH36ORCC-ZPRW5JRW.js +2 -0
  76. package/dist/web/chunks/cynefin-OW5HDTMX-SVVTQRRB.js +2 -0
  77. package/dist/web/chunks/cynefinDiagram-5FMLGOSQ-O7GURHJG.js +63 -0
  78. package/dist/web/chunks/dagre-GXQ25YYZ-WK67O4N6.js +5 -0
  79. package/dist/web/chunks/diagram-S7CK7UJ4-2CEO2EN2.js +31 -0
  80. package/dist/web/chunks/diagram-UQ7AKVKN-2Z4VHGF3.js +42 -0
  81. package/dist/web/chunks/diagram-VSXAHHWV-AN4BOWYB.js +4 -0
  82. package/dist/web/chunks/diagram-VX7I27RA-VEZ2GXCM.js +25 -0
  83. package/dist/web/chunks/diagram-Z3DM3KII-TGGNDSLW.js +25 -0
  84. package/dist/web/chunks/ebnfDiagram-PWID7BFC-7RM57IJV.js +2 -0
  85. package/dist/web/chunks/erDiagram-RLTQ6QDP-LCATC3YT.js +100 -0
  86. package/dist/web/chunks/eventmodeling-NTZA5JFV-2SR57JAH.js +2 -0
  87. package/dist/web/chunks/flowDiagram-HODETNUW-HU6Y2EYQ.js +2 -0
  88. package/dist/web/chunks/ganttDiagram-EL5Y4UJY-5VPBBF2V.js +293 -0
  89. package/dist/web/chunks/gitGraph-4MIJSDKK-25JPIQP7.js +2 -0
  90. package/dist/web/chunks/gitGraphDiagram-WWUBYQGX-HZMAGPIJ.js +107 -0
  91. package/dist/web/chunks/info-A6RAGUB7-72MROTVX.js +2 -0
  92. package/dist/web/chunks/infoDiagram-27XIBGKW-BQYTPGNG.js +3 -0
  93. package/dist/web/chunks/ishikawaDiagram-5VMMS53U-A54WWBPX.js +71 -0
  94. package/dist/web/chunks/journeyDiagram-3NMN7TZE-XRCTMTR7.js +140 -0
  95. package/dist/web/chunks/kanban-definition-UXKFOSKX-UW2PQXZF.js +90 -0
  96. package/dist/web/chunks/katex-B7HWCVTN.js +258 -0
  97. package/dist/web/chunks/mermaid.core-VL5SQK5M.js +19 -0
  98. package/dist/web/chunks/mindmap-definition-YA3MSWOX-2H2Z6CVN.js +97 -0
  99. package/dist/web/chunks/packet-AYTQ26CC-NEGDW4B6.js +2 -0
  100. package/dist/web/chunks/pegDiagram-XKGWAZYB-KC4BYUN7.js +2 -0
  101. package/dist/web/chunks/pie-WAS4IAKB-OT3EMGHT.js +2 -0
  102. package/dist/web/chunks/pieDiagram-E7YTZNPT-54T6XSU5.js +40 -0
  103. package/dist/web/chunks/quadrantDiagram-AXDQQJYC-3G3RXSTE.js +8 -0
  104. package/dist/web/chunks/radar-RG4KPBEZ-DCHU5FOQ.js +2 -0
  105. package/dist/web/chunks/railroad-74A4TZTK-RZX6D7H6.js +2 -0
  106. package/dist/web/chunks/railroad-abnf-HS5TGJTU-STTFN7R4.js +2 -0
  107. package/dist/web/chunks/railroad-ebnf-LZEXJU2U-RBXU3IBK.js +2 -0
  108. package/dist/web/chunks/railroad-peg-WCYAUIDC-OD5BXOH6.js +2 -0
  109. package/dist/web/chunks/railroadDiagram-O6MQD6OU-3LHKFF5N.js +2 -0
  110. package/dist/web/chunks/requirementDiagram-BXWQKSXE-M4LF54YT.js +85 -0
  111. package/dist/web/chunks/sankeyDiagram-P5KCCOFB-USCKKKNT.js +41 -0
  112. package/dist/web/chunks/sequenceDiagram-WJ2MYXX4-QZ2O4KWV.js +163 -0
  113. package/dist/web/chunks/sizeCapture-INFHLROL-DZI5JWEV.js +2 -0
  114. package/dist/web/chunks/stateDiagram-D77RDMKH-EQJNTBF3.js +2 -0
  115. package/dist/web/chunks/stateDiagram-v2-MP3YSRHH-WSCDKLG6.js +2 -0
  116. package/dist/web/chunks/swimlanes-42K2YHIH-H7SZ2HG6.js +2 -0
  117. package/dist/web/chunks/swimlanesDiagram-VR7AAH4N-DFYTBPVS.js +9 -0
  118. package/dist/web/chunks/timeline-definition-24CTP7MA-4Q2ARIQ6.js +121 -0
  119. package/dist/web/chunks/treeView-Q6P3EWNA-ADCP6RPT.js +2 -0
  120. package/dist/web/chunks/treemap-WGGIJYW6-NEV7DUDY.js +2 -0
  121. package/dist/web/chunks/vennDiagram-4TSXK5OY-WMJVK74C.js +35 -0
  122. package/dist/web/chunks/wardley-WFR3VGLG-4QZOFDI5.js +2 -0
  123. package/dist/web/chunks/wardleyDiagram-VM6X3IG4-CLB324RQ.js +79 -0
  124. package/dist/web/chunks/xychartDiagram-S5SC5T6Z-G5C2R7C2.js +8 -0
  125. package/dist/web/index.html +24 -0
  126. package/dist/web/page.css +2 -0
  127. package/dist/web/page.js +210 -0
  128. package/package.json +62 -6
@@ -0,0 +1,2 @@
1
+ import{A as D,B as $,C as y,a as _r,b as G,c as O,d as wr,e as Z,f as br,g as S,h as f,i as I,j as z,k as w,l as Er,m as yr,n as X,o as L,p as x,q as V,r as k,s as U,t as C,u as B,v as A,w as g,x as M,y as xr,z as P}from"./chunk-5KNOHX5X.js";import{d as h}from"./chunk-R7TFKRNM.js";h();h();h();function N(r,e,n,t){var o;do o=D(t);while(r.hasNode(o));return n.dummy=e,r.setNode(o,n),o}function kr(r){var e=new y().setGraph(r.graph());return f(r.nodes(),function(n){e.setNode(n,r.node(n))}),f(r.edges(),function(n){var t=e.edge(n.v,n.w)||{weight:0,minlen:1},o=r.edge(n);e.setEdge(n.v,n.w,{weight:t.weight+o.weight,minlen:Math.max(t.minlen,o.minlen)})}),e}function H(r){var e=new y({multigraph:r.isMultigraph()}).setGraph(r.graph());return f(r.nodes(),function(n){r.children(n).length||e.setNode(n,r.node(n))}),f(r.edges(),function(n){e.setEdge(n,r.edge(n))}),e}function rr(r,e){var n=r.x,t=r.y,o=e.x-n,a=e.y-t,i=r.width/2,s=r.height/2;if(!o&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var u,d;return Math.abs(a)*i>Math.abs(o)*s?(a<0&&(s=-s),u=s*o/a,d=s):(o<0&&(i=-i),u=i,d=i*a/o),{x:n+u,y:t+d}}function j(r){var e=w(g(nr(r)+1),function(){return[]});return f(r.nodes(),function(n){var t=r.node(n),o=t.rank;x(o)||(e[o][t.order]=n)}),e}function gr(r){var e=C(w(r.nodes(),function(n){return r.node(n).rank}));f(r.nodes(),function(n){var t=r.node(n);X(t,"rank")&&(t.rank-=e)})}function Nr(r){var e=C(w(r.nodes(),function(a){return r.node(a).rank})),n=[];f(r.nodes(),function(a){var i=r.node(a).rank-e;n[i]||(n[i]=[]),n[i].push(a)});var t=0,o=r.graph().nodeRankFactor;f(n,function(a,i){x(a)&&i%o!==0?--t:t&&f(a,function(s){r.node(s).rank+=t})})}function er(r,e,n,t){var o={width:0,height:0};return arguments.length>=4&&(o.rank=n,o.order=t),N(r,"border",o,e)}function nr(r){return k(w(r.nodes(),function(e){var n=r.node(e).rank;if(!x(n))return n}))}function Or(r,e){var n={lhs:[],rhs:[]};return f(r,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n}function Ir(r,e){var n=Z();try{return e()}finally{console.log(r+" time: "+(Z()-n)+"ms")}}function Pr(r,e){return e()}function Cr(r){function e(n){var t=r.children(n),o=r.node(n);if(t.length&&f(t,e),Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var a=o.minRank,i=o.maxRank+1;a<i;++a)Lr(r,"borderLeft","_bl",n,o,a),Lr(r,"borderRight","_br",n,o,a)}}f(r.children(),e)}function Lr(r,e,n,t,o,a){var i={width:0,height:0,rank:a,borderType:e},s=o[e][a-1],u=N(r,"border",i,n);o[e][a]=u,r.setParent(u,t),s&&r.setEdge(s,u,{weight:1})}h();function Tr(r){var e=r.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Sr(r)}function Rr(r){var e=r.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&me(r),(e==="lr"||e==="rl")&&(ve(r),Sr(r))}function Sr(r){f(r.nodes(),function(e){jr(r.node(e))}),f(r.edges(),function(e){jr(r.edge(e))})}function jr(r){var e=r.width;r.width=r.height,r.height=e}function me(r){f(r.nodes(),function(e){tr(r.node(e))}),f(r.edges(),function(e){var n=r.edge(e);f(n.points,tr),Object.prototype.hasOwnProperty.call(n,"y")&&tr(n)})}function tr(r){r.y=-r.y}function ve(r){f(r.nodes(),function(e){or(r.node(e))}),f(r.edges(),function(e){var n=r.edge(e);f(n.points,or),Object.prototype.hasOwnProperty.call(n,"x")&&or(n)})}function or(r){var e=r.x;r.x=r.y,r.y=e}h();h();h();var J=class{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,n=e._prev;if(n!==e)return Mr(n),n}enqueue(e){var n=this._sentinel;e._prev&&e._next&&Mr(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n}toString(){for(var e=[],n=this._sentinel,t=n._prev;t!==n;)e.push(JSON.stringify(t,we)),t=t._prev;return"["+e.join(", ")+"]"}};function Mr(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function we(r,e){if(r!=="_next"&&r!=="_prev")return e}var be=G(1);function Fr(r,e){if(r.nodeCount()<=1)return[];var n=ye(r,e||be),t=Ee(n.graph,n.buckets,n.zeroIdx);return O(w(t,function(o){return r.outEdges(o.v,o.w)}))}function Ee(r,e,n){for(var t=[],o=e[e.length-1],a=e[0],i;r.nodeCount();){for(;i=a.dequeue();)ar(r,e,n,i);for(;i=o.dequeue();)ar(r,e,n,i);if(r.nodeCount()){for(var s=e.length-2;s>0;--s)if(i=e[s].dequeue(),i){t=t.concat(ar(r,e,n,i,!0));break}}}return t}function ar(r,e,n,t,o){var a=o?[]:void 0;return f(r.inEdges(t.v),function(i){var s=r.edge(i),u=r.node(i.v);o&&a.push({v:i.v,w:i.w}),u.out-=s,ir(e,n,u)}),f(r.outEdges(t.v),function(i){var s=r.edge(i),u=i.w,d=r.node(u);d.in-=s,ir(e,n,d)}),r.removeNode(t.v),a}function ye(r,e){var n=new y,t=0,o=0;f(r.nodes(),function(s){n.setNode(s,{v:s,in:0,out:0})}),f(r.edges(),function(s){var u=n.edge(s.v,s.w)||0,d=e(s),c=u+d;n.setEdge(s.v,s.w,c),o=Math.max(o,n.node(s.v).out+=d),t=Math.max(t,n.node(s.w).in+=d)});var a=g(o+t+3).map(function(){return new J}),i=t+1;return f(n.nodes(),function(s){ir(a,i,n.node(s))}),{graph:n,buckets:a,zeroIdx:i}}function ir(r,e,n){n.out?n.in?r[n.out-n.in+e].enqueue(n):r[r.length-1].enqueue(n):r[0].enqueue(n)}function Gr(r){var e=r.graph().acyclicer==="greedy"?Fr(r,n(r)):xe(r);f(e,function(t){var o=r.edge(t);r.removeEdge(t),o.forwardName=t.name,o.reversed=!0,r.setEdge(t.w,t.v,o,D("rev"))});function n(t){return function(o){return t.edge(o).weight}}}function xe(r){var e=[],n={},t={};function o(a){Object.prototype.hasOwnProperty.call(t,a)||(t[a]=!0,n[a]=!0,f(r.outEdges(a),function(i){Object.prototype.hasOwnProperty.call(n,i.w)?e.push(i):o(i.w)}),delete n[a])}return f(r.nodes(),o),e}function Vr(r){f(r.edges(),function(e){var n=r.edge(e);if(n.reversed){r.removeEdge(e);var t=n.forwardName;delete n.reversed,delete n.forwardName,r.setEdge(e.w,e.v,n,t)}})}h();function Ar(r){r.graph().dummyChains=[],f(r.edges(),function(e){ke(r,e)})}function ke(r,e){var n=e.v,t=r.node(n).rank,o=e.w,a=r.node(o).rank,i=e.name,s=r.edge(e),u=s.labelRank;if(a!==t+1){r.removeEdge(e);var d=void 0,c,l;for(l=0,++t;t<a;++l,++t)s.points=[],d={width:0,height:0,edgeLabel:s,edgeObj:e,rank:t},c=N(r,"edge",d,"_d"),t===u&&(d.width=s.width,d.height=s.height,d.dummy="edge-label",d.labelpos=s.labelpos),r.setEdge(n,c,{weight:s.weight},i),l===0&&r.graph().dummyChains.push(c),n=c;r.setEdge(n,o,{weight:s.weight},i)}}function Dr(r){f(r.graph().dummyChains,function(e){var n=r.node(e),t=n.edgeLabel,o;for(r.setEdge(n.edgeObj,t);n.dummy;)o=r.successors(e)[0],r.removeNode(e),t.points.push({x:n.x,y:n.y}),n.dummy==="edge-label"&&(t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height),e=o,n=r.node(e)})}h();h();h();function W(r){var e={};function n(t){var o=r.node(t);if(Object.prototype.hasOwnProperty.call(e,t))return o.rank;e[t]=!0;var a=C(w(r.outEdges(t),function(i){return n(i.w)-r.edge(i).minlen}));return(a===Number.POSITIVE_INFINITY||a===void 0||a===null)&&(a=0),o.rank=a}f(r.sources(),n)}function F(r,e){return r.node(e.w).rank-r.node(e.v).rank-r.edge(e).minlen}function K(r){var e=new y({directed:!1}),n=r.nodes()[0],t=r.nodeCount();e.setNode(n,{});for(var o,a;ge(e,r)<t;)o=Ne(e,r),a=e.hasNode(o.v)?F(r,o):-F(r,o),Oe(e,r,a);return e}function ge(r,e){function n(t){f(e.nodeEdges(t),function(o){var a=o.v,i=t===a?o.w:a;!r.hasNode(i)&&!F(e,o)&&(r.setNode(i,{}),r.setEdge(t,i,{}),n(i))})}return f(r.nodes(),n),r.nodeCount()}function Ne(r,e){return B(e.edges(),function(n){if(r.hasNode(n.v)!==r.hasNode(n.w))return F(e,n)})}function Oe(r,e,n){f(r.nodes(),function(t){e.node(t).rank+=n})}h();h();h();h();h();var ot=G(1);h();h();h();h();var mt=G(1);h();h();sr.CycleException=q;function sr(r){var e={},n={},t=[];function o(a){if(Object.prototype.hasOwnProperty.call(n,a))throw new q;Object.prototype.hasOwnProperty.call(e,a)||(n[a]=!0,e[a]=!0,f(r.predecessors(a),o),delete n[a],t.push(a))}if(f(r.sinks(),o),xr(e)!==r.nodeCount())throw new q;return t}function q(){}q.prototype=new Error;h();h();function Q(r,e,n){_r(e)||(e=[e]);var t=(r.isDirected()?r.successors:r.neighbors).bind(r),o=[],a={};return f(e,function(i){if(!r.hasNode(i))throw new Error("Graph does not have node: "+i);zr(r,i,n==="post",a,t,o)}),o}function zr(r,e,n,t,o,a){Object.prototype.hasOwnProperty.call(t,e)||(t[e]=!0,n||a.push(e),f(o(e),function(i){zr(r,i,n,t,o,a)}),n&&a.push(e))}function fr(r,e){return Q(r,e,"post")}h();function ur(r,e){return Q(r,e,"pre")}h();R.initLowLimValues=cr;R.initCutValues=dr;R.calcCutValue=Wr;R.leaveEdge=Xr;R.enterEdge=Hr;R.exchangeEdges=Jr;function R(r){r=kr(r),W(r);var e=K(r);cr(e),dr(e,r);for(var n,t;n=Xr(e);)t=Hr(e,r,n),Jr(e,r,n,t)}function dr(r,e){var n=fr(r,r.nodes());n=n.slice(0,n.length-1),f(n,function(t){je(r,e,t)})}function je(r,e,n){var t=r.node(n),o=t.parent;r.edge(n,o).cutvalue=Wr(r,e,n)}function Wr(r,e,n){var t=r.node(n),o=t.parent,a=!0,i=e.edge(n,o),s=0;return i||(a=!1,i=e.edge(o,n)),s=i.weight,f(e.nodeEdges(n),function(u){var d=u.v===n,c=d?u.w:u.v;if(c!==o){var l=d===a,m=e.edge(u).weight;if(s+=l?m:-m,Re(r,n,c)){var v=r.edge(n,c).cutvalue;s+=l?-v:v}}}),s}function cr(r,e){arguments.length<2&&(e=r.nodes()[0]),qr(r,{},1,e)}function qr(r,e,n,t,o){var a=n,i=r.node(t);return e[t]=!0,f(r.neighbors(t),function(s){Object.prototype.hasOwnProperty.call(e,s)||(n=qr(r,e,n,s,t))}),i.low=a,i.lim=n++,o?i.parent=o:delete i.parent,n}function Xr(r){return z(r.edges(),function(e){return r.edge(e).cutvalue<0})}function Hr(r,e,n){var t=n.v,o=n.w;e.hasEdge(t,o)||(t=n.w,o=n.v);var a=r.node(t),i=r.node(o),s=a,u=!1;a.lim>i.lim&&(s=i,u=!0);var d=I(e.edges(),function(c){return u===Ur(r,r.node(c.v),s)&&u!==Ur(r,r.node(c.w),s)});return B(d,function(c){return F(e,c)})}function Jr(r,e,n,t){var o=n.v,a=n.w;r.removeEdge(o,a),r.setEdge(t.v,t.w,{}),cr(r),dr(r,e),Te(r,e)}function Te(r,e){var n=z(r.nodes(),function(o){return!e.node(o).parent}),t=ur(r,n);t=t.slice(1),f(t,function(o){var a=r.node(o).parent,i=e.edge(o,a),s=!1;i||(i=e.edge(a,o),s=!0),e.node(o).rank=e.node(a).rank+(s?i.minlen:-i.minlen)})}function Re(r,e,n){return r.hasEdge(e,n)}function Ur(r,e,n){return n.low<=e.lim&&e.lim<=n.lim}function hr(r){switch(r.graph().ranker){case"network-simplex":Kr(r);break;case"tight-tree":Me(r);break;case"longest-path":Se(r);break;default:Kr(r)}}var Se=W;function Me(r){W(r),K(r)}function Kr(r){R(r)}h();function Qr(r){var e=N(r,"root",{},"_root"),n=Fe(r),t=k(L(n))-1,o=2*t+1;r.graph().nestingRoot=e,f(r.edges(),function(i){r.edge(i).minlen*=o});var a=Ge(r)+1;f(r.children(),function(i){Zr(r,e,o,a,t,n,i)}),r.graph().nodeRankFactor=o}function Zr(r,e,n,t,o,a,i){var s=r.children(i);if(!s.length){i!==e&&r.setEdge(e,i,{weight:0,minlen:n});return}var u=er(r,"_bt"),d=er(r,"_bb"),c=r.node(i);r.setParent(u,i),c.borderTop=u,r.setParent(d,i),c.borderBottom=d,f(s,function(l){Zr(r,e,n,t,o,a,l);var m=r.node(l),v=m.borderTop?m.borderTop:l,_=m.borderBottom?m.borderBottom:l,E=m.borderTop?t:2*t,Y=v!==_?1:o-a[i]+1;r.setEdge(u,v,{weight:E,minlen:Y,nestingEdge:!0}),r.setEdge(_,d,{weight:E,minlen:Y,nestingEdge:!0})}),r.parent(i)||r.setEdge(e,u,{weight:0,minlen:o+a[i]})}function Fe(r){var e={};function n(t,o){var a=r.children(t);a&&a.length&&f(a,function(i){n(i,o+1)}),e[t]=o}return f(r.children(),function(t){n(t,1)}),e}function Ge(r){return M(r.edges(),function(e,n){return e+r.edge(n).weight},0)}function $r(r){var e=r.graph();r.removeNode(e.nestingRoot),delete e.nestingRoot,f(r.edges(),function(n){var t=r.edge(n);t.nestingEdge&&r.removeEdge(n)})}h();h();function re(r,e,n){var t={},o;f(n,function(a){for(var i=r.parent(a),s,u;i;){if(s=r.parent(i),s?(u=t[s],t[s]=i):(u=o,o=i),u&&u!==i){e.setEdge(u,i);return}i=s}})}h();function ee(r,e,n){var t=Be(r),o=new y({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(a){return r.node(a)});return f(r.nodes(),function(a){var i=r.node(a),s=r.parent(a);(i.rank===e||i.minRank<=e&&e<=i.maxRank)&&(o.setNode(a),o.setParent(a,s||t),f(r[n](a),function(u){var d=u.v===a?u.w:u.v,c=o.edge(d,a),l=x(c)?0:c.weight;o.setEdge(d,a,{weight:r.edge(u).weight+l})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&o.setNode(a,{borderLeft:i.borderLeft[e],borderRight:i.borderRight[e]}))}),o}function Be(r){for(var e;r.hasNode(e=D("_root")););return e}h();function ne(r,e){for(var n=0,t=1;t<e.length;++t)n+=Ae(r,e[t-1],e[t]);return n}function Ae(r,e,n){for(var t=$(n,w(n,function(d,c){return c})),o=O(w(e,function(d){return P(w(r.outEdges(d),function(c){return{pos:t[c.w],weight:r.edge(c).weight}}),"pos")})),a=1;a<n.length;)a<<=1;var i=2*a-1;a-=1;var s=w(new Array(i),function(){return 0}),u=0;return f(o.forEach(function(d){var c=d.pos+a;s[c]+=d.weight;for(var l=0;c>0;)c%2&&(l+=s[c+1]),c=c-1>>1,s[c]+=d.weight;u+=d.weight*l})),u}h();function te(r){var e={},n=I(r.nodes(),function(s){return!r.children(s).length}),t=k(w(n,function(s){return r.node(s).rank})),o=w(g(t+1),function(){return[]});function a(s){if(!X(e,s)){e[s]=!0;var u=r.node(s);o[u.rank].push(s),f(r.successors(s),a)}}var i=P(n,function(s){return r.node(s).rank});return f(i,a),o}h();h();function oe(r,e){return w(e,function(n){var t=r.inEdges(n);if(t.length){var o=M(t,function(a,i){var s=r.edge(i),u=r.node(i.v);return{sum:a.sum+s.weight*u.order,weight:a.weight+s.weight}},{sum:0,weight:0});return{v:n,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:n}})}h();function ae(r,e){var n={};f(r,function(o,a){var i=n[o.v]={indegree:0,in:[],out:[],vs:[o.v],i:a};x(o.barycenter)||(i.barycenter=o.barycenter,i.weight=o.weight)}),f(e.edges(),function(o){var a=n[o.v],i=n[o.w];!x(a)&&!x(i)&&(i.indegree++,a.out.push(n[o.w]))});var t=I(n,function(o){return!o.indegree});return De(t)}function De(r){var e=[];function n(a){return function(i){i.merged||(x(i.barycenter)||x(a.barycenter)||i.barycenter>=a.barycenter)&&Ye(a,i)}}function t(a){return function(i){i.in.push(a),--i.indegree===0&&r.push(i)}}for(;r.length;){var o=r.pop();e.push(o),f(o.in.reverse(),n(o)),f(o.out,t(o))}return w(I(e,function(a){return!a.merged}),function(a){return A(a,["vs","i","barycenter","weight"])})}function Ye(r,e){var n=0,t=0;r.weight&&(n+=r.barycenter*r.weight,t+=r.weight),e.weight&&(n+=e.barycenter*e.weight,t+=e.weight),r.vs=e.vs.concat(r.vs),r.barycenter=n/t,r.weight=t,r.i=Math.min(e.i,r.i),e.merged=!0}h();function se(r,e){var n=Or(r,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=n.lhs,o=P(n.rhs,function(c){return-c.i}),a=[],i=0,s=0,u=0;t.sort(ze(!!e)),u=ie(a,o,u),f(t,function(c){u+=c.vs.length,a.push(c.vs),i+=c.barycenter*c.weight,s+=c.weight,u=ie(a,o,u)});var d={vs:O(a)};return s&&(d.barycenter=i/s,d.weight=s),d}function ie(r,e,n){for(var t;e.length&&(t=S(e)).i<=n;)e.pop(),r.push(t.vs),n++;return n}function ze(r){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:r?n.i-e.i:e.i-n.i}}function lr(r,e,n,t){var o=r.children(e),a=r.node(e),i=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,u={};i&&(o=I(o,function(_){return _!==i&&_!==s}));var d=oe(r,o);f(d,function(_){if(r.children(_.v).length){var E=lr(r,_.v,n,t);u[_.v]=E,Object.prototype.hasOwnProperty.call(E,"barycenter")&&We(_,E)}});var c=ae(d,n);Ue(c,u);var l=se(c,t);if(i&&(l.vs=O([i,l.vs,s]),r.predecessors(i).length)){var m=r.node(r.predecessors(i)[0]),v=r.node(r.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+m.order+v.order)/(l.weight+2),l.weight+=2}return l}function Ue(r,e){f(r,function(n){n.vs=O(n.vs.map(function(t){return e[t]?e[t].vs:t}))})}function We(r,e){x(r.barycenter)?(r.barycenter=e.barycenter,r.weight=e.weight):(r.barycenter=(r.barycenter*r.weight+e.barycenter*e.weight)/(r.weight+e.weight),r.weight+=e.weight)}function de(r){var e=nr(r),n=fe(r,g(1,e+1),"inEdges"),t=fe(r,g(e-1,-1,-1),"outEdges"),o=te(r);ue(r,o);for(var a=Number.POSITIVE_INFINITY,i,s=0,u=0;u<4;++s,++u){qe(s%2?n:t,s%4>=2),o=j(r);var d=ne(r,o);d<a&&(u=0,i=wr(o),a=d)}ue(r,i)}function fe(r,e,n){return w(e,function(t){return ee(r,t,n)})}function qe(r,e){var n=new y;f(r,function(t){var o=t.graph().root,a=lr(t,o,n,e);f(a.vs,function(i,s){t.node(i).order=s}),re(t,n,a.vs)})}function ue(r,e){f(e,function(n){f(n,function(t,o){r.node(t).order=o})})}h();function ce(r){var e=He(r);f(r.graph().dummyChains,function(n){for(var t=r.node(n),o=t.edgeObj,a=Xe(r,e,o.v,o.w),i=a.path,s=a.lca,u=0,d=i[u],c=!0;n!==o.w;){if(t=r.node(n),c){for(;(d=i[u])!==s&&r.node(d).maxRank<t.rank;)u++;d===s&&(c=!1)}if(!c){for(;u<i.length-1&&r.node(d=i[u+1]).minRank<=t.rank;)u++;d=i[u]}r.setParent(n,d),n=r.successors(n)[0]}})}function Xe(r,e,n,t){var o=[],a=[],i=Math.min(e[n].low,e[t].low),s=Math.max(e[n].lim,e[t].lim),u,d;u=n;do u=r.parent(u),o.push(u);while(u&&(e[u].low>i||s>e[u].lim));for(d=u,u=t;(u=r.parent(u))!==d;)a.push(u);return{path:o.concat(a.reverse()),lca:d}}function He(r){var e={},n=0;function t(o){var a=n;f(r.children(o),t),e[o]={low:a,lim:n++}}return f(r.children(),t),e}h();h();function Je(r,e){var n={};function t(o,a){var i=0,s=0,u=o.length,d=S(a);return f(a,function(c,l){var m=Qe(r,c),v=m?r.node(m).order:u;(m||c===d)&&(f(a.slice(s,l+1),function(_){f(r.predecessors(_),function(E){var Y=r.node(E),vr=Y.order;(vr<i||v<vr)&&!(Y.dummy&&r.node(_).dummy)&&he(n,E,_)})}),s=l+1,i=v)}),a}return M(e,t),n}function Ke(r,e){var n={};function t(a,i,s,u,d){var c;f(g(i,s),function(l){c=a[l],r.node(c).dummy&&f(r.predecessors(c),function(m){var v=r.node(m);v.dummy&&(v.order<u||v.order>d)&&he(n,m,c)})})}function o(a,i){var s=-1,u,d=0;return f(i,function(c,l){if(r.node(c).dummy==="border"){var m=r.predecessors(c);m.length&&(u=r.node(m[0]).order,t(i,d,l,s,u),d=l,s=u)}t(i,d,i.length,u,a.length)}),i}return M(e,o),n}function Qe(r,e){if(r.node(e).dummy)return z(r.predecessors(e),function(n){return r.node(n).dummy})}function he(r,e,n){if(e>n){var t=e;e=n,n=t}Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:{},writable:!0});var o=r[e];Object.defineProperty(o,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Ze(r,e,n){if(e>n){var t=e;e=n,n=t}return!!r[e]&&Object.prototype.hasOwnProperty.call(r[e],n)}function $e(r,e,n,t){var o={},a={},i={};return f(e,function(s){f(s,function(u,d){o[u]=u,a[u]=u,i[u]=d})}),f(e,function(s){var u=-1;f(s,function(d){var c=t(d);if(c.length){c=P(c,function(E){return i[E]});for(var l=(c.length-1)/2,m=Math.floor(l),v=Math.ceil(l);m<=v;++m){var _=c[m];a[d]===d&&u<i[_]&&!Ze(n,d,_)&&(a[_]=d,a[d]=o[d]=o[_],u=i[_])}}})}),{root:o,align:a}}function rn(r,e,n,t,o){var a={},i=en(r,e,n,o),s=o?"borderLeft":"borderRight";function u(l,m){for(var v=i.nodes(),_=v.pop(),E={};_;)E[_]?l(_):(E[_]=!0,v.push(_),v=v.concat(m(_))),_=v.pop()}function d(l){a[l]=i.inEdges(l).reduce(function(m,v){return Math.max(m,a[v.v]+i.edge(v))},0)}function c(l){var m=i.outEdges(l).reduce(function(_,E){return Math.min(_,a[E.w]-i.edge(E))},Number.POSITIVE_INFINITY),v=r.node(l);m!==Number.POSITIVE_INFINITY&&v.borderType!==s&&(a[l]=Math.max(a[l],m))}return u(d,i.predecessors.bind(i)),u(c,i.successors.bind(i)),f(t,function(l){a[l]=a[n[l]]}),a}function en(r,e,n,t){var o=new y,a=r.graph(),i=an(a.nodesep,a.edgesep,t);return f(e,function(s){var u;f(s,function(d){var c=n[d];if(o.setNode(c),u){var l=n[u],m=o.edge(l,c);o.setEdge(l,c,Math.max(i(r,d,u),m||0))}u=d})}),o}function nn(r,e){return B(L(e),function(n){var t=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return Er(n,function(a,i){var s=sn(r,i)/2;t=Math.max(a+s,t),o=Math.min(a-s,o)}),t-o})}function tn(r,e){var n=L(e),t=C(n),o=k(n);f(["u","d"],function(a){f(["l","r"],function(i){var s=a+i,u=r[s],d;if(u!==e){var c=L(u);d=i==="l"?t-C(c):o-k(c),d&&(r[s]=V(u,function(l){return l+d}))}})})}function on(r,e){return V(r.ul,function(n,t){if(e)return r[e.toLowerCase()][t];var o=P(w(r,t));return(o[1]+o[2])/2})}function le(r){var e=j(r),n=U(Je(r,e),Ke(r,e)),t={},o;f(["u","d"],function(i){o=i==="u"?e:L(e).reverse(),f(["l","r"],function(s){s==="r"&&(o=w(o,function(l){return L(l).reverse()}));var u=(i==="u"?r.predecessors:r.successors).bind(r),d=$e(r,o,n,u),c=rn(r,o,d.root,d.align,s==="r");s==="r"&&(c=V(c,function(l){return-l})),t[i+s]=c})});var a=nn(r,t);return tn(t,a),on(t,r.graph().align)}function an(r,e,n){return function(t,o,a){var i=t.node(o),s=t.node(a),u=0,d;if(u+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":d=-i.width/2;break;case"r":d=i.width/2;break}if(d&&(u+=n?d:-d),d=0,u+=(i.dummy?e:r)/2,u+=(s.dummy?e:r)/2,u+=s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":d=s.width/2;break;case"r":d=-s.width/2;break}return d&&(u+=n?d:-d),d=0,u}}function sn(r,e){return r.node(e).width}function pe(r){r=H(r),fn(r),yr(le(r),function(e,n){r.node(n).x=e})}function fn(r){var e=j(r),n=r.graph().ranksep,t=0;f(e,function(o){var a=k(w(o,function(i){return r.node(i).height}));f(o,function(i){r.node(i).y=t+a/2}),t+=a+n})}function un(r,e){var n=e&&e.debugTiming?Ir:Pr;n("layout",()=>{var t=n(" buildLayoutGraph",()=>En(r));n(" runLayout",()=>dn(t,n)),n(" updateInputGraph",()=>cn(r,t))})}function dn(r,e){e(" makeSpaceForEdgeLabels",()=>yn(r)),e(" removeSelfEdges",()=>Cn(r)),e(" acyclic",()=>Gr(r)),e(" nestingGraph.run",()=>Qr(r)),e(" rank",()=>hr(H(r))),e(" injectEdgeLabelProxies",()=>xn(r)),e(" removeEmptyRanks",()=>Nr(r)),e(" nestingGraph.cleanup",()=>$r(r)),e(" normalizeRanks",()=>gr(r)),e(" assignRankMinMax",()=>kn(r)),e(" removeEdgeLabelProxies",()=>gn(r)),e(" normalize.run",()=>Ar(r)),e(" parentDummyChains",()=>ce(r)),e(" addBorderSegments",()=>Cr(r)),e(" order",()=>de(r)),e(" insertSelfEdges",()=>jn(r)),e(" adjustCoordinateSystem",()=>Tr(r)),e(" position",()=>pe(r)),e(" positionSelfEdges",()=>Tn(r)),e(" removeBorderNodes",()=>Ln(r)),e(" normalize.undo",()=>Dr(r)),e(" fixupEdgeLabelCoords",()=>In(r)),e(" undoCoordinateSystem",()=>Rr(r)),e(" translateGraph",()=>Nn(r)),e(" assignNodeIntersects",()=>On(r)),e(" reversePoints",()=>Pn(r)),e(" acyclic.undo",()=>Vr(r))}function cn(r,e){f(r.nodes(),function(n){var t=r.node(n),o=e.node(n);t&&(t.x=o.x,t.y=o.y,e.children(n).length&&(t.width=o.width,t.height=o.height))}),f(r.edges(),function(n){var t=r.edge(n),o=e.edge(n);t.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(t.x=o.x,t.y=o.y)}),r.graph().width=e.graph().width,r.graph().height=e.graph().height}var hn=["nodesep","edgesep","ranksep","marginx","marginy"],ln={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},pn=["acyclicer","ranker","rankdir","align"],mn=["width","height"],vn={width:0,height:0},_n=["minlen","weight","width","height","labeloffset"],wn={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},bn=["labelpos"];function En(r){var e=new y({multigraph:!0,compound:!0}),n=mr(r.graph());return e.setGraph(U({},ln,pr(n,hn),A(n,pn))),f(r.nodes(),function(t){var o=mr(r.node(t));e.setNode(t,br(pr(o,mn),vn)),e.setParent(t,r.parent(t))}),f(r.edges(),function(t){var o=mr(r.edge(t));e.setEdge(t,U({},wn,pr(o,_n),A(o,bn)))}),e}function yn(r){var e=r.graph();e.ranksep/=2,f(r.edges(),function(n){var t=r.edge(n);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function xn(r){f(r.edges(),function(e){var n=r.edge(e);if(n.width&&n.height){var t=r.node(e.v),o=r.node(e.w),a={rank:(o.rank-t.rank)/2+t.rank,e};N(r,"edge-proxy",a,"_ep")}})}function kn(r){var e=0;f(r.nodes(),function(n){var t=r.node(n);t.borderTop&&(t.minRank=r.node(t.borderTop).rank,t.maxRank=r.node(t.borderBottom).rank,e=k(e,t.maxRank))}),r.graph().maxRank=e}function gn(r){f(r.nodes(),function(e){var n=r.node(e);n.dummy==="edge-proxy"&&(r.edge(n.e).labelRank=n.rank,r.removeNode(e))})}function Nn(r){var e=Number.POSITIVE_INFINITY,n=0,t=Number.POSITIVE_INFINITY,o=0,a=r.graph(),i=a.marginx||0,s=a.marginy||0;function u(d){var c=d.x,l=d.y,m=d.width,v=d.height;e=Math.min(e,c-m/2),n=Math.max(n,c+m/2),t=Math.min(t,l-v/2),o=Math.max(o,l+v/2)}f(r.nodes(),function(d){u(r.node(d))}),f(r.edges(),function(d){var c=r.edge(d);Object.prototype.hasOwnProperty.call(c,"x")&&u(c)}),e-=i,t-=s,f(r.nodes(),function(d){var c=r.node(d);c.x-=e,c.y-=t}),f(r.edges(),function(d){var c=r.edge(d);f(c.points,function(l){l.x-=e,l.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=e),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),a.width=n-e+i,a.height=o-t+s}function On(r){f(r.edges(),function(e){var n=r.edge(e),t=r.node(e.v),o=r.node(e.w),a,i;n.points?(a=n.points[0],i=n.points[n.points.length-1]):(n.points=[],a=o,i=t),n.points.unshift(rr(t,a)),n.points.push(rr(o,i))})}function In(r){f(r.edges(),function(e){var n=r.edge(e);if(Object.prototype.hasOwnProperty.call(n,"x"))switch((n.labelpos==="l"||n.labelpos==="r")&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}})}function Pn(r){f(r.edges(),function(e){var n=r.edge(e);n.reversed&&n.points.reverse()})}function Ln(r){f(r.nodes(),function(e){if(r.children(e).length){var n=r.node(e),t=r.node(n.borderTop),o=r.node(n.borderBottom),a=r.node(S(n.borderLeft)),i=r.node(S(n.borderRight));n.width=Math.abs(i.x-a.x),n.height=Math.abs(o.y-t.y),n.x=a.x+n.width/2,n.y=t.y+n.height/2}}),f(r.nodes(),function(e){r.node(e).dummy==="border"&&r.removeNode(e)})}function Cn(r){f(r.edges(),function(e){if(e.v===e.w){var n=r.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:r.edge(e)}),r.removeEdge(e)}})}function jn(r){var e=j(r);f(e,function(n){var t=0;f(n,function(o,a){var i=r.node(o);i.order=a+t,f(i.selfEdges,function(s){N(r,"selfedge",{width:s.label.width,height:s.label.height,rank:i.rank,order:a+ ++t,e:s.e,label:s.label},"_se")}),delete i.selfEdges})})}function Tn(r){f(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="selfedge"){var t=r.node(n.e.v),o=t.x+t.width/2,a=t.y,i=n.x-o,s=t.height/2;r.setEdge(n.e,n.label),r.removeNode(e),n.label.points=[{x:o+2*i/3,y:a-s},{x:o+5*i/6,y:a-s},{x:o+i,y:a},{x:o+5*i/6,y:a+s},{x:o+2*i/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function pr(r,e){return V(A(r,e),Number)}function mr(r){var e={};return f(r,function(n,t){e[t.toLowerCase()]=n}),e}h();export{un as a};
2
+ //# sourceMappingURL=chunk-4TORDSRR.js.map
@@ -0,0 +1,15 @@
1
+ import{d as e}from"./chunk-R7TFKRNM.js";e();e();e();e();e();e();e();var Va=typeof global=="object"&&global&&global.Object===Object&&global,Vr=Va;var Ya=typeof self=="object"&&self&&self.Object===Object&&self,Za=Vr||Ya||Function("return this")(),y=Za;var Ja=y.Symbol,O=Ja;e();var Kt=Object.prototype,Xa=Kt.hasOwnProperty,Qa=Kt.toString,Dr=O?O.toStringTag:void 0;function ka(r){var t=Xa.call(r,Dr),o=r[Dr];try{r[Dr]=void 0;var a=!0}catch{}var n=Qa.call(r);return a&&(t?r[Dr]=o:delete r[Dr]),n}var Wt=ka;e();var rf=Object.prototype,tf=rf.toString;function ef(r){return tf.call(r)}var Ht=ef;var of="[object Null]",af="[object Undefined]",zt=O?O.toStringTag:void 0;function ff(r){return r==null?r===void 0?af:of:zt&&zt in Object(r)?Wt(r):Ht(r)}var I=ff;e();function nf(r){return r!=null&&typeof r=="object"}var v=nf;var sf="[object Symbol]";function pf(r){return typeof r=="symbol"||v(r)&&I(r)==sf}var F=pf;e();e();function uf(r,t){for(var o=-1,a=r==null?0:r.length,n=Array(a);++o<a;)n[o]=t(r[o],o,r);return n}var U=uf;e();var mf=Array.isArray,d=mf;var lf=1/0,qt=O?O.prototype:void 0,$t=qt?qt.toString:void 0;function Vt(r){if(typeof r=="string")return r;if(d(r))return U(r,Vt)+"";if(F(r))return $t?$t.call(r):"";var t=r+"";return t=="0"&&1/r==-lf?"-0":t}var Yt=Vt;e();e();e();e();e();var df=/\s/;function cf(r){for(var t=r.length;t--&&df.test(r.charAt(t)););return t}var Zt=cf;var xf=/^\s+/;function hf(r){return r&&r.slice(0,Zt(r)+1).replace(xf,"")}var Jt=hf;e();function gf(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var b=gf;var Xt=NaN,bf=/^[-+]0x[0-9a-f]+$/i,yf=/^0b[01]+$/i,_f=/^0o[0-7]+$/i,vf=parseInt;function Of(r){if(typeof r=="number")return r;if(F(r))return Xt;if(b(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=b(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=Jt(r);var o=yf.test(r);return o||_f.test(r)?vf(r.slice(2),o?2:8):bf.test(r)?Xt:+r}var Qt=Of;var kt=1/0,Af=17976931348623157e292;function Tf(r){if(!r)return r===0?r:0;if(r=Qt(r),r===kt||r===-kt){var t=r<0?-1:1;return t*Af}return r===r?r:0}var hr=Tf;function wf(r){var t=hr(r),o=t%1;return t===t?o?t-o:t:0}var re=wf;e();function Sf(r){return r}var j=Sf;e();e();e();e();var Pf="[object AsyncFunction]",Cf="[object Function]",If="[object GeneratorFunction]",Ef="[object Proxy]";function jf(r){if(!b(r))return!1;var t=I(r);return t==Cf||t==If||t==Pf||t==Ef}var K=jf;e();e();var Lf=y["__core-js_shared__"],Yr=Lf;var te=(function(){var r=/[^.]+$/.exec(Yr&&Yr.keys&&Yr.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function Mf(r){return!!te&&te in r}var ee=Mf;e();var Ff=Function.prototype,Rf=Ff.toString;function Nf(r){if(r!=null){try{return Rf.call(r)}catch{}try{return r+""}catch{}}return""}var q=Nf;var Df=/[\\^$.*+?()[\]{}|]/g,Bf=/^\[object .+?Constructor\]$/,Gf=Function.prototype,Uf=Object.prototype,Kf=Gf.toString,Wf=Uf.hasOwnProperty,Hf=RegExp("^"+Kf.call(Wf).replace(Df,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zf(r){if(!b(r)||ee(r))return!1;var t=K(r)?Hf:Bf;return t.test(q(r))}var oe=zf;e();function qf(r,t){return r?.[t]}var ae=qf;function $f(r,t){var o=ae(r,t);return oe(o)?o:void 0}var L=$f;var Vf=L(y,"WeakMap"),Zr=Vf;e();var fe=Object.create,Yf=(function(){function r(){}return function(t){if(!b(t))return{};if(fe)return fe(t);r.prototype=t;var o=new r;return r.prototype=void 0,o}})(),ne=Yf;e();function Zf(r,t,o){switch(o.length){case 0:return r.call(t);case 1:return r.call(t,o[0]);case 2:return r.call(t,o[0],o[1]);case 3:return r.call(t,o[0],o[1],o[2])}return r.apply(t,o)}var ie=Zf;e();function Jf(){}var se=Jf;e();function Xf(r,t){var o=-1,a=r.length;for(t||(t=Array(a));++o<a;)t[o]=r[o];return t}var Jr=Xf;e();var Qf=800,kf=16,rn=Date.now;function tn(r){var t=0,o=0;return function(){var a=rn(),n=kf-(a-o);if(o=a,n>0){if(++t>=Qf)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}var pe=tn;e();e();e();function en(r){return function(){return r}}var Z=en;e();var on=(function(){try{var r=L(Object,"defineProperty");return r({},"",{}),r}catch{}})(),gr=on;var an=gr?function(r,t){return gr(r,"toString",{configurable:!0,enumerable:!1,value:Z(t),writable:!0})}:j,ue=an;var fn=pe(ue),Xr=fn;e();function nn(r,t){for(var o=-1,a=r==null?0:r.length;++o<a&&t(r[o],o,r)!==!1;);return r}var Qr=nn;e();e();e();function sn(r,t,o,a){for(var n=r.length,i=o+(a?1:-1);a?i--:++i<n;)if(t(r[i],i,r))return i;return-1}var kr=sn;e();function pn(r){return r!==r}var me=pn;e();function un(r,t,o){for(var a=o-1,n=r.length;++a<n;)if(r[a]===t)return a;return-1}var le=un;function mn(r,t,o){return t===t?le(r,t,o):kr(r,me,o)}var de=mn;function ln(r,t){var o=r==null?0:r.length;return!!o&&de(r,t,0)>-1}var ce=ln;e();var dn=9007199254740991,cn=/^(?:0|[1-9]\d*)$/;function xn(r,t){var o=typeof r;return t=t??dn,!!t&&(o=="number"||o!="symbol"&&cn.test(r))&&r>-1&&r%1==0&&r<t}var J=xn;e();e();function hn(r,t,o){t=="__proto__"&&gr?gr(r,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):r[t]=o}var X=hn;e();function gn(r,t){return r===t||r!==r&&t!==t}var N=gn;var bn=Object.prototype,yn=bn.hasOwnProperty;function _n(r,t,o){var a=r[t];(!(yn.call(r,t)&&N(a,o))||o===void 0&&!(t in r))&&X(r,t,o)}var Q=_n;e();function vn(r,t,o,a){var n=!o;o||(o={});for(var i=-1,s=t.length;++i<s;){var p=t[i],u=a?a(o[p],r[p],p,o,r):void 0;u===void 0&&(u=r[p]),n?X(o,p,u):Q(o,p,u)}return o}var W=vn;e();e();e();var xe=Math.max;function On(r,t,o){return t=xe(t===void 0?r.length-1:t,0),function(){for(var a=arguments,n=-1,i=xe(a.length-t,0),s=Array(i);++n<i;)s[n]=a[t+n];n=-1;for(var p=Array(t+1);++n<t;)p[n]=a[n];return p[t]=o(s),ie(r,this,p)}}var rt=On;function An(r,t){return Xr(rt(r,t,j),r+"")}var k=An;e();e();e();var Tn=9007199254740991;function wn(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Tn}var br=wn;function Sn(r){return r!=null&&br(r.length)&&!K(r)}var A=Sn;function Pn(r,t,o){if(!b(o))return!1;var a=typeof t;return(a=="number"?A(o)&&J(t,o.length):a=="string"&&t in o)?N(o[t],r):!1}var $=Pn;function Cn(r){return k(function(t,o){var a=-1,n=o.length,i=n>1?o[n-1]:void 0,s=n>2?o[2]:void 0;for(i=r.length>3&&typeof i=="function"?(n--,i):void 0,s&&$(o[0],o[1],s)&&(i=n<3?void 0:i,n=1),t=Object(t);++a<n;){var p=o[a];p&&r(t,p,a,i)}return t})}var he=Cn;e();var In=Object.prototype;function En(r){var t=r&&r.constructor,o=typeof t=="function"&&t.prototype||In;return r===o}var rr=En;e();e();e();function jn(r,t){for(var o=-1,a=Array(r);++o<r;)a[o]=t(o);return a}var ge=jn;e();e();var Ln="[object Arguments]";function Mn(r){return v(r)&&I(r)==Ln}var It=Mn;var be=Object.prototype,Fn=be.hasOwnProperty,Rn=be.propertyIsEnumerable,Nn=It((function(){return arguments})())?It:function(r){return v(r)&&Fn.call(r,"callee")&&!Rn.call(r,"callee")},D=Nn;e();e();function Dn(){return!1}var ye=Dn;var Oe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_e=Oe&&typeof module=="object"&&module&&!module.nodeType&&module,Bn=_e&&_e.exports===Oe,ve=Bn?y.Buffer:void 0,Gn=ve?ve.isBuffer:void 0,Un=Gn||ye,B=Un;e();e();var Kn="[object Arguments]",Wn="[object Array]",Hn="[object Boolean]",zn="[object Date]",qn="[object Error]",$n="[object Function]",Vn="[object Map]",Yn="[object Number]",Zn="[object Object]",Jn="[object RegExp]",Xn="[object Set]",Qn="[object String]",kn="[object WeakMap]",ri="[object ArrayBuffer]",ti="[object DataView]",ei="[object Float32Array]",oi="[object Float64Array]",ai="[object Int8Array]",fi="[object Int16Array]",ni="[object Int32Array]",ii="[object Uint8Array]",si="[object Uint8ClampedArray]",pi="[object Uint16Array]",ui="[object Uint32Array]",g={};g[ei]=g[oi]=g[ai]=g[fi]=g[ni]=g[ii]=g[si]=g[pi]=g[ui]=!0;g[Kn]=g[Wn]=g[ri]=g[Hn]=g[ti]=g[zn]=g[qn]=g[$n]=g[Vn]=g[Yn]=g[Zn]=g[Jn]=g[Xn]=g[Qn]=g[kn]=!1;function mi(r){return v(r)&&br(r.length)&&!!g[I(r)]}var Ae=mi;e();function li(r){return function(t){return r(t)}}var tr=li;e();var Te=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Br=Te&&typeof module=="object"&&module&&!module.nodeType&&module,di=Br&&Br.exports===Te,Et=di&&Vr.process,ci=(function(){try{var r=Br&&Br.require&&Br.require("util").types;return r||Et&&Et.binding&&Et.binding("util")}catch{}})(),V=ci;var we=V&&V.isTypedArray,xi=we?tr(we):Ae,er=xi;var hi=Object.prototype,gi=hi.hasOwnProperty;function bi(r,t){var o=d(r),a=!o&&D(r),n=!o&&!a&&B(r),i=!o&&!a&&!n&&er(r),s=o||a||n||i,p=s?ge(r.length,String):[],u=p.length;for(var m in r)(t||gi.call(r,m))&&!(s&&(m=="length"||n&&(m=="offset"||m=="parent")||i&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||J(m,u)))&&p.push(m);return p}var tt=bi;e();e();e();function yi(r,t){return function(o){return r(t(o))}}var et=yi;var _i=et(Object.keys,Object),Se=_i;var vi=Object.prototype,Oi=vi.hasOwnProperty;function Ai(r){if(!rr(r))return Se(r);var t=[];for(var o in Object(r))Oi.call(r,o)&&o!="constructor"&&t.push(o);return t}var yr=Ai;function Ti(r){return A(r)?tt(r):yr(r)}var _=Ti;e();e();e();function wi(r){var t=[];if(r!=null)for(var o in Object(r))t.push(o);return t}var Pe=wi;var Si=Object.prototype,Pi=Si.hasOwnProperty;function Ci(r){if(!b(r))return Pe(r);var t=rr(r),o=[];for(var a in r)a=="constructor"&&(t||!Pi.call(r,a))||o.push(a);return o}var Ce=Ci;function Ii(r){return A(r)?tt(r,!0):Ce(r)}var M=Ii;e();e();e();e();var Ei=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ji=/^\w*$/;function Li(r,t){if(d(r))return!1;var o=typeof r;return o=="number"||o=="symbol"||o=="boolean"||r==null||F(r)?!0:ji.test(r)||!Ei.test(r)||t!=null&&r in Object(t)}var _r=Li;e();e();e();e();e();e();e();e();var Mi=L(Object,"create"),Y=Mi;function Fi(){this.__data__=Y?Y(null):{},this.size=0}var Ie=Fi;e();function Ri(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var Ee=Ri;e();var Ni="__lodash_hash_undefined__",Di=Object.prototype,Bi=Di.hasOwnProperty;function Gi(r){var t=this.__data__;if(Y){var o=t[r];return o===Ni?void 0:o}return Bi.call(t,r)?t[r]:void 0}var je=Gi;e();var Ui=Object.prototype,Ki=Ui.hasOwnProperty;function Wi(r){var t=this.__data__;return Y?t[r]!==void 0:Ki.call(t,r)}var Le=Wi;e();var Hi="__lodash_hash_undefined__";function zi(r,t){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=Y&&t===void 0?Hi:t,this}var Me=zi;function vr(r){var t=-1,o=r==null?0:r.length;for(this.clear();++t<o;){var a=r[t];this.set(a[0],a[1])}}vr.prototype.clear=Ie;vr.prototype.delete=Ee;vr.prototype.get=je;vr.prototype.has=Le;vr.prototype.set=Me;var jt=vr;e();e();function qi(){this.__data__=[],this.size=0}var Fe=qi;e();e();function $i(r,t){for(var o=r.length;o--;)if(N(r[o][0],t))return o;return-1}var or=$i;var Vi=Array.prototype,Yi=Vi.splice;function Zi(r){var t=this.__data__,o=or(t,r);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():Yi.call(t,o,1),--this.size,!0}var Re=Zi;e();function Ji(r){var t=this.__data__,o=or(t,r);return o<0?void 0:t[o][1]}var Ne=Ji;e();function Xi(r){return or(this.__data__,r)>-1}var De=Xi;e();function Qi(r,t){var o=this.__data__,a=or(o,r);return a<0?(++this.size,o.push([r,t])):o[a][1]=t,this}var Be=Qi;function Or(r){var t=-1,o=r==null?0:r.length;for(this.clear();++t<o;){var a=r[t];this.set(a[0],a[1])}}Or.prototype.clear=Fe;Or.prototype.delete=Re;Or.prototype.get=Ne;Or.prototype.has=De;Or.prototype.set=Be;var ar=Or;e();var ki=L(y,"Map"),fr=ki;function rs(){this.size=0,this.__data__={hash:new jt,map:new(fr||ar),string:new jt}}var Ge=rs;e();e();e();function ts(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}var Ue=ts;function es(r,t){var o=r.__data__;return Ue(t)?o[typeof t=="string"?"string":"hash"]:o.map}var nr=es;function os(r){var t=nr(this,r).delete(r);return this.size-=t?1:0,t}var Ke=os;e();function as(r){return nr(this,r).get(r)}var We=as;e();function fs(r){return nr(this,r).has(r)}var He=fs;e();function ns(r,t){var o=nr(this,r),a=o.size;return o.set(r,t),this.size+=o.size==a?0:1,this}var ze=ns;function Ar(r){var t=-1,o=r==null?0:r.length;for(this.clear();++t<o;){var a=r[t];this.set(a[0],a[1])}}Ar.prototype.clear=Ge;Ar.prototype.delete=Ke;Ar.prototype.get=We;Ar.prototype.has=He;Ar.prototype.set=ze;var dr=Ar;var is="Expected a function";function Lt(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError(is);var o=function(){var a=arguments,n=t?t.apply(this,a):a[0],i=o.cache;if(i.has(n))return i.get(n);var s=r.apply(this,a);return o.cache=i.set(n,s)||i,s};return o.cache=new(Lt.Cache||dr),o}Lt.Cache=dr;var qe=Lt;var ss=500;function ps(r){var t=qe(r,function(a){return o.size===ss&&o.clear(),a}),o=t.cache;return t}var $e=ps;var us=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ms=/\\(\\)?/g,ls=$e(function(r){var t=[];return r.charCodeAt(0)===46&&t.push(""),r.replace(us,function(o,a,n,i){t.push(n?i.replace(ms,"$1"):a||o)}),t}),Ve=ls;e();function ds(r){return r==null?"":Yt(r)}var ot=ds;function cs(r,t){return d(r)?r:_r(r,t)?[r]:Ve(ot(r))}var ir=cs;e();var xs=1/0;function hs(r){if(typeof r=="string"||F(r))return r;var t=r+"";return t=="0"&&1/r==-xs?"-0":t}var H=hs;function gs(r,t){t=ir(t,r);for(var o=0,a=t.length;r!=null&&o<a;)r=r[H(t[o++])];return o&&o==a?r:void 0}var sr=gs;function bs(r,t,o){var a=r==null?void 0:sr(r,t);return a===void 0?o:a}var Ye=bs;e();e();e();e();function ys(r,t){for(var o=-1,a=t.length,n=r.length;++o<a;)r[n+o]=t[o];return r}var Tr=ys;e();var Ze=O?O.isConcatSpreadable:void 0;function _s(r){return d(r)||D(r)||!!(Ze&&r&&r[Ze])}var Je=_s;function Xe(r,t,o,a,n){var i=-1,s=r.length;for(o||(o=Je),n||(n=[]);++i<s;){var p=r[i];t>0&&o(p)?t>1?Xe(p,t-1,o,a,n):Tr(n,p):a||(n[n.length]=p)}return n}var wr=Xe;function vs(r){var t=r==null?0:r.length;return t?wr(r,1):[]}var Mt=vs;function Os(r){return Xr(rt(r,void 0,Mt),r+"")}var Qe=Os;e();e();var As=et(Object.getPrototypeOf,Object),Sr=As;var Ts="[object Object]",ws=Function.prototype,Ss=Object.prototype,ke=ws.toString,Ps=Ss.hasOwnProperty,Cs=ke.call(Object);function Is(r){if(!v(r)||I(r)!=Ts)return!1;var t=Sr(r);if(t===null)return!0;var o=Ps.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&ke.call(o)==Cs}var ro=Is;e();var Es="\\ud800-\\udfff",js="\\u0300-\\u036f",Ls="\\ufe20-\\ufe2f",Ms="\\u20d0-\\u20ff",Fs=js+Ls+Ms,Rs="\\ufe0e\\ufe0f",Ns="\\u200d",Ds=RegExp("["+Ns+Es+Fs+Rs+"]");function Bs(r){return Ds.test(r)}var to=Bs;e();function Gs(r,t,o,a){var n=-1,i=r==null?0:r.length;for(a&&i&&(o=r[++n]);++n<i;)o=t(o,r[n],n,r);return o}var eo=Gs;e();e();e();function Us(){this.__data__=new ar,this.size=0}var oo=Us;e();function Ks(r){var t=this.__data__,o=t.delete(r);return this.size=t.size,o}var ao=Ks;e();function Ws(r){return this.__data__.get(r)}var fo=Ws;e();function Hs(r){return this.__data__.has(r)}var no=Hs;e();var zs=200;function qs(r,t){var o=this.__data__;if(o instanceof ar){var a=o.__data__;if(!fr||a.length<zs-1)return a.push([r,t]),this.size=++o.size,this;o=this.__data__=new dr(a)}return o.set(r,t),this.size=o.size,this}var io=qs;function Pr(r){var t=this.__data__=new ar(r);this.size=t.size}Pr.prototype.clear=oo;Pr.prototype.delete=ao;Pr.prototype.get=fo;Pr.prototype.has=no;Pr.prototype.set=io;var z=Pr;e();function $s(r,t){return r&&W(t,_(t),r)}var so=$s;e();function Vs(r,t){return r&&W(t,M(t),r)}var po=Vs;e();var co=typeof exports=="object"&&exports&&!exports.nodeType&&exports,uo=co&&typeof module=="object"&&module&&!module.nodeType&&module,Ys=uo&&uo.exports===co,mo=Ys?y.Buffer:void 0,lo=mo?mo.allocUnsafe:void 0;function Zs(r,t){if(t)return r.slice();var o=r.length,a=lo?lo(o):new r.constructor(o);return r.copy(a),a}var at=Zs;e();e();e();function Js(r,t){for(var o=-1,a=r==null?0:r.length,n=0,i=[];++o<a;){var s=r[o];t(s,o,r)&&(i[n++]=s)}return i}var ft=Js;e();function Xs(){return[]}var nt=Xs;var Qs=Object.prototype,ks=Qs.propertyIsEnumerable,xo=Object.getOwnPropertySymbols,rp=xo?function(r){return r==null?[]:(r=Object(r),ft(xo(r),function(t){return ks.call(r,t)}))}:nt,Cr=rp;function tp(r,t){return W(r,Cr(r),t)}var ho=tp;e();e();var ep=Object.getOwnPropertySymbols,op=ep?function(r){for(var t=[];r;)Tr(t,Cr(r)),r=Sr(r);return t}:nt,it=op;function ap(r,t){return W(r,it(r),t)}var go=ap;e();e();function fp(r,t,o){var a=t(r);return d(r)?a:Tr(a,o(r))}var st=fp;function np(r){return st(r,_,Cr)}var Gr=np;e();function ip(r){return st(r,M,it)}var bo=ip;e();e();var sp=L(y,"DataView"),pt=sp;e();var pp=L(y,"Promise"),ut=pp;e();var up=L(y,"Set"),pr=up;var yo="[object Map]",mp="[object Object]",_o="[object Promise]",vo="[object Set]",Oo="[object WeakMap]",Ao="[object DataView]",lp=q(pt),dp=q(fr),cp=q(ut),xp=q(pr),hp=q(Zr),cr=I;(pt&&cr(new pt(new ArrayBuffer(1)))!=Ao||fr&&cr(new fr)!=yo||ut&&cr(ut.resolve())!=_o||pr&&cr(new pr)!=vo||Zr&&cr(new Zr)!=Oo)&&(cr=function(r){var t=I(r),o=t==mp?r.constructor:void 0,a=o?q(o):"";if(a)switch(a){case lp:return Ao;case dp:return yo;case cp:return _o;case xp:return vo;case hp:return Oo}return t});var R=cr;e();var gp=Object.prototype,bp=gp.hasOwnProperty;function yp(r){var t=r.length,o=new r.constructor(t);return t&&typeof r[0]=="string"&&bp.call(r,"index")&&(o.index=r.index,o.input=r.input),o}var To=yp;e();e();e();var _p=y.Uint8Array,Ir=_p;function vp(r){var t=new r.constructor(r.byteLength);return new Ir(t).set(new Ir(r)),t}var Er=vp;e();function Op(r,t){var o=t?Er(r.buffer):r.buffer;return new r.constructor(o,r.byteOffset,r.byteLength)}var wo=Op;e();var Ap=/\w*$/;function Tp(r){var t=new r.constructor(r.source,Ap.exec(r));return t.lastIndex=r.lastIndex,t}var So=Tp;e();var Po=O?O.prototype:void 0,Co=Po?Po.valueOf:void 0;function wp(r){return Co?Object(Co.call(r)):{}}var Io=wp;e();function Sp(r,t){var o=t?Er(r.buffer):r.buffer;return new r.constructor(o,r.byteOffset,r.length)}var mt=Sp;var Pp="[object Boolean]",Cp="[object Date]",Ip="[object Map]",Ep="[object Number]",jp="[object RegExp]",Lp="[object Set]",Mp="[object String]",Fp="[object Symbol]",Rp="[object ArrayBuffer]",Np="[object DataView]",Dp="[object Float32Array]",Bp="[object Float64Array]",Gp="[object Int8Array]",Up="[object Int16Array]",Kp="[object Int32Array]",Wp="[object Uint8Array]",Hp="[object Uint8ClampedArray]",zp="[object Uint16Array]",qp="[object Uint32Array]";function $p(r,t,o){var a=r.constructor;switch(t){case Rp:return Er(r);case Pp:case Cp:return new a(+r);case Np:return wo(r,o);case Dp:case Bp:case Gp:case Up:case Kp:case Wp:case Hp:case zp:case qp:return mt(r,o);case Ip:return new a;case Ep:case Mp:return new a(r);case jp:return So(r);case Lp:return new a;case Fp:return Io(r)}}var Eo=$p;e();function Vp(r){return typeof r.constructor=="function"&&!rr(r)?ne(Sr(r)):{}}var lt=Vp;e();e();var Yp="[object Map]";function Zp(r){return v(r)&&R(r)==Yp}var jo=Zp;var Lo=V&&V.isMap,Jp=Lo?tr(Lo):jo,Mo=Jp;e();e();var Xp="[object Set]";function Qp(r){return v(r)&&R(r)==Xp}var Fo=Qp;var Ro=V&&V.isSet,kp=Ro?tr(Ro):Fo,No=kp;var ru=1,tu=2,eu=4,Do="[object Arguments]",ou="[object Array]",au="[object Boolean]",fu="[object Date]",nu="[object Error]",Bo="[object Function]",iu="[object GeneratorFunction]",su="[object Map]",pu="[object Number]",Go="[object Object]",uu="[object RegExp]",mu="[object Set]",lu="[object String]",du="[object Symbol]",cu="[object WeakMap]",xu="[object ArrayBuffer]",hu="[object DataView]",gu="[object Float32Array]",bu="[object Float64Array]",yu="[object Int8Array]",_u="[object Int16Array]",vu="[object Int32Array]",Ou="[object Uint8Array]",Au="[object Uint8ClampedArray]",Tu="[object Uint16Array]",wu="[object Uint32Array]",h={};h[Do]=h[ou]=h[xu]=h[hu]=h[au]=h[fu]=h[gu]=h[bu]=h[yu]=h[_u]=h[vu]=h[su]=h[pu]=h[Go]=h[uu]=h[mu]=h[lu]=h[du]=h[Ou]=h[Au]=h[Tu]=h[wu]=!0;h[nu]=h[Bo]=h[cu]=!1;function dt(r,t,o,a,n,i){var s,p=t&ru,u=t&tu,m=t&eu;if(o&&(s=n?o(r,a,n,i):o(r)),s!==void 0)return s;if(!b(r))return r;var l=d(r);if(l){if(s=To(r),!p)return Jr(r,s)}else{var c=R(r),x=c==Bo||c==iu;if(B(r))return at(r,p);if(c==Go||c==Do||x&&!n){if(s=u||x?{}:lt(r),!p)return u?go(r,po(s,r)):ho(r,so(s,r))}else{if(!h[c])return n?r:{};s=Eo(r,c,p)}}i||(i=new z);var S=i.get(r);if(S)return S;i.set(r,s),No(r)?r.forEach(function(w){s.add(dt(w,t,o,w,r,i))}):Mo(r)&&r.forEach(function(w,C){s.set(C,dt(w,t,o,C,r,i))});var T=m?u?bo:Gr:u?M:_,E=l?void 0:T(r);return Qr(E||r,function(w,C){E&&(C=w,w=r[C]),Q(s,C,dt(w,t,o,C,r,i))}),s}var Uo=dt;e();var Su=1,Pu=4;function Cu(r){return Uo(r,Su|Pu)}var Iu=Cu;e();e();e();e();e();e();e();e();var Eu="__lodash_hash_undefined__";function ju(r){return this.__data__.set(r,Eu),this}var Ko=ju;e();function Lu(r){return this.__data__.has(r)}var Wo=Lu;function ct(r){var t=-1,o=r==null?0:r.length;for(this.__data__=new dr;++t<o;)this.add(r[t])}ct.prototype.add=ct.prototype.push=Ko;ct.prototype.has=Wo;var xt=ct;e();function Mu(r,t){for(var o=-1,a=r==null?0:r.length;++o<a;)if(t(r[o],o,r))return!0;return!1}var Ho=Mu;e();function Fu(r,t){return r.has(t)}var ht=Fu;var Ru=1,Nu=2;function Du(r,t,o,a,n,i){var s=o&Ru,p=r.length,u=t.length;if(p!=u&&!(s&&u>p))return!1;var m=i.get(r),l=i.get(t);if(m&&l)return m==t&&l==r;var c=-1,x=!0,S=o&Nu?new xt:void 0;for(i.set(r,t),i.set(t,r);++c<p;){var T=r[c],E=t[c];if(a)var w=s?a(E,T,c,t,r,i):a(T,E,c,r,t,i);if(w!==void 0){if(w)continue;x=!1;break}if(S){if(!Ho(t,function(C,lr){if(!ht(S,lr)&&(T===C||n(T,C,o,a,i)))return S.push(lr)})){x=!1;break}}else if(!(T===E||n(T,E,o,a,i))){x=!1;break}}return i.delete(r),i.delete(t),x}var gt=Du;e();e();function Bu(r){var t=-1,o=Array(r.size);return r.forEach(function(a,n){o[++t]=[n,a]}),o}var zo=Bu;e();function Gu(r){var t=-1,o=Array(r.size);return r.forEach(function(a){o[++t]=a}),o}var jr=Gu;var Uu=1,Ku=2,Wu="[object Boolean]",Hu="[object Date]",zu="[object Error]",qu="[object Map]",$u="[object Number]",Vu="[object RegExp]",Yu="[object Set]",Zu="[object String]",Ju="[object Symbol]",Xu="[object ArrayBuffer]",Qu="[object DataView]",qo=O?O.prototype:void 0,Ft=qo?qo.valueOf:void 0;function ku(r,t,o,a,n,i,s){switch(o){case Qu:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Xu:return!(r.byteLength!=t.byteLength||!i(new Ir(r),new Ir(t)));case Wu:case Hu:case $u:return N(+r,+t);case zu:return r.name==t.name&&r.message==t.message;case Vu:case Zu:return r==t+"";case qu:var p=zo;case Yu:var u=a&Uu;if(p||(p=jr),r.size!=t.size&&!u)return!1;var m=s.get(r);if(m)return m==t;a|=Ku,s.set(r,t);var l=gt(p(r),p(t),a,n,i,s);return s.delete(r),l;case Ju:if(Ft)return Ft.call(r)==Ft.call(t)}return!1}var $o=ku;e();var rm=1,tm=Object.prototype,em=tm.hasOwnProperty;function om(r,t,o,a,n,i){var s=o&rm,p=Gr(r),u=p.length,m=Gr(t),l=m.length;if(u!=l&&!s)return!1;for(var c=u;c--;){var x=p[c];if(!(s?x in t:em.call(t,x)))return!1}var S=i.get(r),T=i.get(t);if(S&&T)return S==t&&T==r;var E=!0;i.set(r,t),i.set(t,r);for(var w=s;++c<u;){x=p[c];var C=r[x],lr=t[x];if(a)var Ut=s?a(lr,C,x,t,r,i):a(C,lr,x,r,t,i);if(!(Ut===void 0?C===lr||n(C,lr,o,a,i):Ut)){E=!1;break}w||(w=x=="constructor")}if(E&&!w){var qr=r.constructor,$r=t.constructor;qr!=$r&&"constructor"in r&&"constructor"in t&&!(typeof qr=="function"&&qr instanceof qr&&typeof $r=="function"&&$r instanceof $r)&&(E=!1)}return i.delete(r),i.delete(t),E}var Vo=om;var am=1,Yo="[object Arguments]",Zo="[object Array]",bt="[object Object]",fm=Object.prototype,Jo=fm.hasOwnProperty;function nm(r,t,o,a,n,i){var s=d(r),p=d(t),u=s?Zo:R(r),m=p?Zo:R(t);u=u==Yo?bt:u,m=m==Yo?bt:m;var l=u==bt,c=m==bt,x=u==m;if(x&&B(r)){if(!B(t))return!1;s=!0,l=!1}if(x&&!l)return i||(i=new z),s||er(r)?gt(r,t,o,a,n,i):$o(r,t,u,o,a,n,i);if(!(o&am)){var S=l&&Jo.call(r,"__wrapped__"),T=c&&Jo.call(t,"__wrapped__");if(S||T){var E=S?r.value():r,w=T?t.value():t;return i||(i=new z),n(E,w,o,a,i)}}return x?(i||(i=new z),Vo(r,t,o,a,n,i)):!1}var Xo=nm;function Qo(r,t,o,a,n){return r===t?!0:r==null||t==null||!v(r)&&!v(t)?r!==r&&t!==t:Xo(r,t,o,a,Qo,n)}var yt=Qo;var im=1,sm=2;function pm(r,t,o,a){var n=o.length,i=n,s=!a;if(r==null)return!i;for(r=Object(r);n--;){var p=o[n];if(s&&p[2]?p[1]!==r[p[0]]:!(p[0]in r))return!1}for(;++n<i;){p=o[n];var u=p[0],m=r[u],l=p[1];if(s&&p[2]){if(m===void 0&&!(u in r))return!1}else{var c=new z;if(a)var x=a(m,l,u,r,t,c);if(!(x===void 0?yt(l,m,im|sm,a,c):x))return!1}}return!0}var ko=pm;e();e();function um(r){return r===r&&!b(r)}var _t=um;function mm(r){for(var t=_(r),o=t.length;o--;){var a=t[o],n=r[a];t[o]=[a,n,_t(n)]}return t}var ra=mm;e();function lm(r,t){return function(o){return o==null?!1:o[r]===t&&(t!==void 0||r in Object(o))}}var vt=lm;function dm(r){var t=ra(r);return t.length==1&&t[0][2]?vt(t[0][0],t[0][1]):function(o){return o===r||ko(o,r,t)}}var ta=dm;e();e();e();function cm(r,t){return r!=null&&t in Object(r)}var ea=cm;e();function xm(r,t,o){t=ir(t,r);for(var a=-1,n=t.length,i=!1;++a<n;){var s=H(t[a]);if(!(i=r!=null&&o(r,s)))break;r=r[s]}return i||++a!=n?i:(n=r==null?0:r.length,!!n&&br(n)&&J(s,n)&&(d(r)||D(r)))}var Ot=xm;function hm(r,t){return r!=null&&Ot(r,t,ea)}var At=hm;var gm=1,bm=2;function ym(r,t){return _r(r)&&_t(t)?vt(H(r),t):function(o){var a=Ye(o,r);return a===void 0&&a===t?At(o,r):yt(t,a,gm|bm)}}var oa=ym;e();e();function _m(r){return function(t){return t?.[r]}}var Tt=_m;e();function vm(r){return function(t){return sr(t,r)}}var aa=vm;function Om(r){return _r(r)?Tt(H(r)):aa(r)}var fa=Om;function Am(r){return typeof r=="function"?r:r==null?j:typeof r=="object"?d(r)?oa(r[0],r[1]):ta(r):fa(r)}var P=Am;e();e();e();e();function Tm(r){return function(t,o,a){for(var n=-1,i=Object(t),s=a(t),p=s.length;p--;){var u=s[r?p:++n];if(o(i[u],u,i)===!1)break}return t}}var na=Tm;var wm=na(),Lr=wm;function Sm(r,t){return r&&Lr(r,t,_)}var Mr=Sm;e();function Pm(r,t){return function(o,a){if(o==null)return o;if(!A(o))return r(o,a);for(var n=o.length,i=t?n:-1,s=Object(o);(t?i--:++i<n)&&a(s[i],i,s)!==!1;);return o}}var ia=Pm;var Cm=ia(Mr),ur=Cm;e();var Im=function(){return y.Date.now()},Em=Im;e();var sa=Object.prototype,jm=sa.hasOwnProperty,Lm=k(function(r,t){r=Object(r);var o=-1,a=t.length,n=a>2?t[2]:void 0;for(n&&$(t[0],t[1],n)&&(a=1);++o<a;)for(var i=t[o],s=M(i),p=-1,u=s.length;++p<u;){var m=s[p],l=r[m];(l===void 0||N(l,sa[m])&&!jm.call(r,m))&&(r[m]=i[m])}return r}),Mm=Lm;e();e();function Fm(r,t,o){(o!==void 0&&!N(r[t],o)||o===void 0&&!(t in r))&&X(r,t,o)}var Ur=Fm;e();e();function Rm(r){return v(r)&&A(r)}var wt=Rm;e();function Nm(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}var Kr=Nm;e();function Dm(r){return W(r,M(r))}var pa=Dm;function Bm(r,t,o,a,n,i,s){var p=Kr(r,o),u=Kr(t,o),m=s.get(u);if(m){Ur(r,o,m);return}var l=i?i(p,u,o+"",r,t,s):void 0,c=l===void 0;if(c){var x=d(u),S=!x&&B(u),T=!x&&!S&&er(u);l=u,x||S||T?d(p)?l=p:wt(p)?l=Jr(p):S?(c=!1,l=at(u,!0)):T?(c=!1,l=mt(u,!0)):l=[]:ro(u)||D(u)?(l=p,D(p)?l=pa(p):(!b(p)||K(p))&&(l=lt(u))):c=!1}c&&(s.set(u,l),n(l,u,a,i,s),s.delete(u)),Ur(r,o,l)}var ua=Bm;function ma(r,t,o,a,n){r!==t&&Lr(t,function(i,s){if(n||(n=new z),b(i))ua(r,t,s,o,ma,a,n);else{var p=a?a(Kr(r,s),i,s+"",r,t,n):void 0;p===void 0&&(p=i),Ur(r,s,p)}},M)}var la=ma;e();function Gm(r,t,o){for(var a=-1,n=r==null?0:r.length;++a<n;)if(o(t,r[a]))return!0;return!1}var da=Gm;e();function Um(r){var t=r==null?0:r.length;return t?r[t-1]:void 0}var Km=Um;e();e();e();function Wm(r){return typeof r=="function"?r:j}var Fr=Wm;function Hm(r,t){var o=d(r)?Qr:ur;return o(r,Fr(t))}var G=Hm;e();e();function zm(r,t){var o=[];return ur(r,function(a,n,i){t(a,n,i)&&o.push(a)}),o}var ca=zm;function qm(r,t){var o=d(r)?ft:ca;return o(r,P(t,3))}var Rr=qm;e();e();function $m(r){return function(t,o,a){var n=Object(t);if(!A(t)){var i=P(o,3);t=_(t),o=function(p){return i(n[p],p,n)}}var s=r(t,o,a);return s>-1?n[i?t[s]:s]:void 0}}var xa=$m;e();var Vm=Math.max;function Ym(r,t,o){var a=r==null?0:r.length;if(!a)return-1;var n=o==null?0:re(o);return n<0&&(n=Vm(a+n,0)),kr(r,P(t,3),n)}var ha=Ym;var Zm=xa(ha),Jm=Zm;e();e();function Xm(r,t){var o=-1,a=A(r)?Array(r.length):[];return ur(r,function(n,i,s){a[++o]=t(n,i,s)}),a}var St=Xm;function Qm(r,t){var o=d(r)?U:St;return o(r,P(t,3))}var km=Qm;e();function rl(r,t){return r==null?r:Lr(r,Fr(t),M)}var tl=rl;e();function el(r,t){return r&&Mr(r,Fr(t))}var ol=el;e();function al(r,t){return r>t}var ga=al;e();e();var fl=Object.prototype,nl=fl.hasOwnProperty;function il(r,t){return r!=null&&nl.call(r,t)}var ba=il;function sl(r,t){return r!=null&&Ot(r,t,ba)}var pl=sl;e();var ul="[object String]";function ml(r){return typeof r=="string"||!d(r)&&v(r)&&I(r)==ul}var ya=ml;e();e();function ll(r,t){return U(t,function(o){return r[o]})}var _a=ll;function dl(r){return r==null?[]:_a(r,_(r))}var Wr=dl;e();var cl="[object Map]",xl="[object Set]",hl=Object.prototype,gl=hl.hasOwnProperty;function bl(r){if(r==null)return!0;if(A(r)&&(d(r)||typeof r=="string"||typeof r.splice=="function"||B(r)||er(r)||D(r)))return!r.length;var t=R(r);if(t==cl||t==xl)return!r.size;if(rr(r))return!yr(r).length;for(var o in r)if(gl.call(r,o))return!1;return!0}var Pt=bl;e();function yl(r){return r===void 0}var mr=yl;e();function _l(r,t){return r<t}var Ct=_l;e();function vl(r,t){var o={};return t=P(t,3),Mr(r,function(a,n,i){X(o,n,t(a,n,i))}),o}var Ol=vl;e();e();function Al(r,t,o){for(var a=-1,n=r.length;++a<n;){var i=r[a],s=t(i);if(s!=null&&(p===void 0?s===s&&!F(s):o(s,p)))var p=s,u=i}return u}var Nr=Al;function Tl(r){return r&&r.length?Nr(r,j,ga):void 0}var wl=Tl;e();var Sl=he(function(r,t,o){la(r,t,o)}),Pl=Sl;e();function Cl(r){return r&&r.length?Nr(r,j,Ct):void 0}var Il=Cl;e();function El(r,t){return r&&r.length?Nr(r,P(t,2),Ct):void 0}var jl=El;e();e();function Ll(r,t,o,a){if(!b(r))return r;t=ir(t,r);for(var n=-1,i=t.length,s=i-1,p=r;p!=null&&++n<i;){var u=H(t[n]),m=o;if(u==="__proto__"||u==="constructor"||u==="prototype")return r;if(n!=s){var l=p[u];m=a?a(l,u,p):void 0,m===void 0&&(m=b(l)?l:J(t[n+1])?[]:{})}Q(p,u,m),p=p[u]}return r}var va=Ll;function Ml(r,t,o){for(var a=-1,n=t.length,i={};++a<n;){var s=t[a],p=sr(r,s);o(p,s)&&va(i,ir(s,r),p)}return i}var Oa=Ml;e();e();function Fl(r,t){var o=r.length;for(r.sort(t);o--;)r[o]=r[o].value;return r}var Aa=Fl;e();e();function Rl(r,t){if(r!==t){var o=r!==void 0,a=r===null,n=r===r,i=F(r),s=t!==void 0,p=t===null,u=t===t,m=F(t);if(!p&&!m&&!i&&r>t||i&&s&&u&&!p&&!m||a&&s&&u||!o&&u||!n)return 1;if(!a&&!i&&!m&&r<t||m&&o&&n&&!a&&!i||p&&o&&n||!s&&n||!u)return-1}return 0}var Ta=Rl;function Nl(r,t,o){for(var a=-1,n=r.criteria,i=t.criteria,s=n.length,p=o.length;++a<s;){var u=Ta(n[a],i[a]);if(u){if(a>=p)return u;var m=o[a];return u*(m=="desc"?-1:1)}}return r.index-t.index}var wa=Nl;function Dl(r,t,o){t.length?t=U(t,function(i){return d(i)?function(s){return sr(s,i.length===1?i[0]:i)}:i}):t=[j];var a=-1;t=U(t,tr(P));var n=St(r,function(i,s,p){var u=U(t,function(m){return m(i)});return{criteria:u,index:++a,value:i}});return Aa(n,function(i,s){return wa(i,s,o)})}var Sa=Dl;e();e();var Bl=Tt("length"),Pa=Bl;e();var Ia="\\ud800-\\udfff",Gl="\\u0300-\\u036f",Ul="\\ufe20-\\ufe2f",Kl="\\u20d0-\\u20ff",Wl=Gl+Ul+Kl,Hl="\\ufe0e\\ufe0f",zl="["+Ia+"]",Rt="["+Wl+"]",Nt="\\ud83c[\\udffb-\\udfff]",ql="(?:"+Rt+"|"+Nt+")",Ea="[^"+Ia+"]",ja="(?:\\ud83c[\\udde6-\\uddff]){2}",La="[\\ud800-\\udbff][\\udc00-\\udfff]",$l="\\u200d",Ma=ql+"?",Fa="["+Hl+"]?",Vl="(?:"+$l+"(?:"+[Ea,ja,La].join("|")+")"+Fa+Ma+")*",Yl=Fa+Ma+Vl,Zl="(?:"+[Ea+Rt+"?",Rt,ja,La,zl].join("|")+")",Ca=RegExp(Nt+"(?="+Nt+")|"+Zl+Yl,"g");function Jl(r){for(var t=Ca.lastIndex=0;Ca.test(r);)++t;return t}var Ra=Jl;function Xl(r){return to(r)?Ra(r):Pa(r)}var Na=Xl;e();e();function Ql(r,t){return Oa(r,t,function(o,a){return At(r,a)})}var Da=Ql;var kl=Qe(function(r,t){return r==null?{}:Da(r,t)}),rd=kl;e();e();e();var td=Math.ceil,ed=Math.max;function od(r,t,o,a){for(var n=-1,i=ed(td((t-r)/(o||1)),0),s=Array(i);i--;)s[a?i:++n]=r,r+=o;return s}var Ba=od;function ad(r){return function(t,o,a){return a&&typeof a!="number"&&$(t,o,a)&&(o=a=void 0),t=hr(t),o===void 0?(o=t,t=0):o=hr(o),a=a===void 0?t<o?1:-1:hr(a),Ba(t,o,a,r)}}var Ga=ad;var fd=Ga(),nd=fd;e();e();function id(r,t,o,a,n){return n(r,function(i,s,p){o=a?(a=!1,i):t(o,i,s,p)}),o}var Ua=id;function sd(r,t,o){var a=d(r)?eo:Ua,n=arguments.length<3;return a(r,P(t,4),o,n,ur)}var Dt=sd;e();var pd="[object Map]",ud="[object Set]";function md(r){if(r==null)return 0;if(A(r))return ya(r)?Na(r):r.length;var t=R(r);return t==pd||t==ud?r.size:yr(r).length}var ld=md;e();var dd=k(function(r,t){if(r==null)return[];var o=t.length;return o>1&&$(r,t[0],t[1])?t=[]:o>2&&$(t[0],t[1],t[2])&&(t=[t[0]]),Sa(r,wr(t,1),[])}),cd=dd;e();e();e();var xd=1/0,hd=pr&&1/jr(new pr([,-0]))[1]==xd?function(r){return new pr(r)}:se,Ka=hd;var gd=200;function bd(r,t,o){var a=-1,n=ce,i=r.length,s=!0,p=[],u=p;if(o)s=!1,n=da;else if(i>=gd){var m=t?null:Ka(r);if(m)return jr(m);s=!1,n=ht,u=new xt}else u=t?[]:p;r:for(;++a<i;){var l=r[a],c=t?t(l):l;if(l=o||l!==0?l:0,s&&c===c){for(var x=u.length;x--;)if(u[x]===c)continue r;t&&u.push(c),p.push(l)}else n(u,c,o)||(u!==p&&u.push(c),p.push(l))}return p}var Wa=bd;var yd=k(function(r){return Wa(wr(r,1,wt,!0))}),Bt=yd;e();var _d=0;function vd(r){var t=++_d;return ot(r)+t}var Od=vd;e();e();function Ad(r,t,o){for(var a=-1,n=r.length,i=t.length,s={};++a<n;){var p=a<i?t[a]:void 0;o(s,r[a],p)}return s}var Ha=Ad;function Td(r,t){return Ha(r||[],t||[],Q)}var wd=Td;var Pd="\0",xr="\0",za="",zr=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=Z(void 0),this._defaultEdgeLabelFn=Z(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[xr]={}),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 K(t)||(t=Z(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var t=this;return Rr(this.nodes(),function(o){return Pt(t._in[o])})}sinks(){var t=this;return Rr(this.nodes(),function(o){return Pt(t._out[o])})}setNodes(t,o){var a=arguments,n=this;return G(t,function(i){a.length>1?n.setNode(i,o):n.setNode(i)}),this}setNode(t,o){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=o),this):(this._nodes[t]=arguments.length>1?o:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=xr,this._children[t]={},this._children[xr][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 o=a=>this.removeEdge(this._edgeObjs[a]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],G(this.children(t),a=>{this.setParent(a)}),delete this._children[t]),G(_(this._in[t]),o),delete this._in[t],delete this._preds[t],G(_(this._out[t]),o),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,o){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(mr(o))o=xr;else{o+="";for(var a=o;!mr(a);a=this.parent(a))if(a===t)throw new Error("Setting "+o+" as parent of "+t+" would create a cycle");this.setNode(o)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=o,this._children[o][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var o=this._parent[t];if(o!==xr)return o}}children(t){if(mr(t)&&(t=xr),this._isCompound){var o=this._children[t];if(o)return _(o)}else{if(t===xr)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var o=this._preds[t];if(o)return _(o)}successors(t){var o=this._sucs[t];if(o)return _(o)}neighbors(t){var o=this.predecessors(t);if(o)return Bt(o,this.successors(t))}isLeaf(t){var o;return this.isDirected()?o=this.successors(t):o=this.neighbors(t),o.length===0}filterNodes(t){var o=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});o.setGraph(this.graph());var a=this;G(this._nodes,function(s,p){t(p)&&o.setNode(p,s)}),G(this._edgeObjs,function(s){o.hasNode(s.v)&&o.hasNode(s.w)&&o.setEdge(s,a.edge(s))});var n={};function i(s){var p=a.parent(s);return p===void 0||o.hasNode(p)?(n[s]=p,p):p in n?n[p]:i(p)}return this._isCompound&&G(o.nodes(),function(s){o.setParent(s,i(s))}),o}setDefaultEdgeLabel(t){return K(t)||(t=Z(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Wr(this._edgeObjs)}setPath(t,o){var a=this,n=arguments;return Dt(t,function(i,s){return n.length>1?a.setEdge(i,s,o):a.setEdge(i,s),s}),this}setEdge(){var t,o,a,n,i=!1,s=arguments[0];typeof s=="object"&&s!==null&&"v"in s?(t=s.v,o=s.w,a=s.name,arguments.length===2&&(n=arguments[1],i=!0)):(t=s,o=arguments[1],a=arguments[3],arguments.length>2&&(n=arguments[2],i=!0)),t=""+t,o=""+o,mr(a)||(a=""+a);var p=Hr(this._isDirected,t,o,a);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,p))return i&&(this._edgeLabels[p]=n),this;if(!mr(a)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(o),this._edgeLabels[p]=i?n:this._defaultEdgeLabelFn(t,o,a);var u=Cd(this._isDirected,t,o,a);return t=u.v,o=u.w,Object.freeze(u),this._edgeObjs[p]=u,qa(this._preds[o],t),qa(this._sucs[t],o),this._in[o][p]=u,this._out[t][p]=u,this._edgeCount++,this}edge(t,o,a){var n=arguments.length===1?Gt(this._isDirected,arguments[0]):Hr(this._isDirected,t,o,a);return this._edgeLabels[n]}hasEdge(t,o,a){var n=arguments.length===1?Gt(this._isDirected,arguments[0]):Hr(this._isDirected,t,o,a);return Object.prototype.hasOwnProperty.call(this._edgeLabels,n)}removeEdge(t,o,a){var n=arguments.length===1?Gt(this._isDirected,arguments[0]):Hr(this._isDirected,t,o,a),i=this._edgeObjs[n];return i&&(t=i.v,o=i.w,delete this._edgeLabels[n],delete this._edgeObjs[n],$a(this._preds[o],t),$a(this._sucs[t],o),delete this._in[o][n],delete this._out[t][n],this._edgeCount--),this}inEdges(t,o){var a=this._in[t];if(a){var n=Wr(a);return o?Rr(n,function(i){return i.v===o}):n}}outEdges(t,o){var a=this._out[t];if(a){var n=Wr(a);return o?Rr(n,function(i){return i.w===o}):n}}nodeEdges(t,o){var a=this.inEdges(t,o);if(a)return a.concat(this.outEdges(t,o))}};zr.prototype._nodeCount=0;zr.prototype._edgeCount=0;function qa(r,t){r[t]?r[t]++:r[t]=1}function $a(r,t){--r[t]||delete r[t]}function Hr(r,t,o,a){var n=""+t,i=""+o;if(!r&&n>i){var s=n;n=i,i=s}return n+za+i+za+(mr(a)?Pd:a)}function Cd(r,t,o,a){var n=""+t,i=""+o;if(!r&&n>i){var s=n;n=i,i=s}var p={v:n,w:i};return a&&(p.name=a),p}function Gt(r,t){return Hr(r,t.v,t.w,t.name)}e();export{d as a,Z as b,Mt as c,Iu as d,Em as e,Mm as f,Km as g,G as h,Rr as i,Jm as j,km as k,tl as l,ol as m,pl as n,Wr as o,mr as p,Ol as q,wl as r,Pl as s,Il as t,jl as u,rd as v,nd as w,Dt as x,ld as y,cd as z,Od as A,wd as B,zr as C};
2
+ /*! Bundled license information:
3
+
4
+ lodash-es/lodash.js:
5
+ (**
6
+ * @license
7
+ * Lodash (Custom Build) <https://lodash.com/>
8
+ * Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./`
9
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
10
+ * Released under MIT license <https://lodash.com/license>
11
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
12
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
13
+ *)
14
+ */
15
+ //# sourceMappingURL=chunk-5KNOHX5X.js.map