@kky42/pievo-server 2.3.0 → 2.4.2

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 (199) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/MachinesModal-CSbnrUER.js +1 -0
  3. package/.output/public/assets/SignIn-0Tjqs-Ma.js +1 -0
  4. package/.output/public/assets/actionUi-DpwGIGpw.js +1 -0
  5. package/.output/public/assets/app-CaZpuwOS.css +2 -0
  6. package/.output/public/assets/index-CaS_SmDq.js +10 -0
  7. package/.output/public/assets/invite._token-Btg_0aLp.js +1 -0
  8. package/.output/public/assets/invite._token-KMD2JAgE.js +1 -0
  9. package/.output/public/assets/lifecycleUi-C7dwHtbw.js +1 -0
  10. package/.output/public/assets/loops._loopId-D5usF3DO.js +67 -0
  11. package/.output/public/assets/loops._loopId_.runs._runId-DRCgXaCq.js +3 -0
  12. package/.output/public/assets/preload-helper-DsxECZIS.js +5 -0
  13. package/.output/public/assets/routes-CtFgwdgW.js +1 -0
  14. package/.output/public/assets/routes-LDbnnQ3f.js +1 -0
  15. package/.output/public/assets/t._teamId-D41xcbsF.js +1 -0
  16. package/.output/public/assets/t._teamId-DUena1pV.js +1 -0
  17. package/.output/public/assets/ui-Do4gqMyP.js +1 -0
  18. package/.output/server/_libs/@base-ui/react+[...].mjs +4130 -4130
  19. package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
  20. package/.output/server/_libs/drizzle-orm+postgres.mjs +28 -1
  21. package/.output/server/_ssr/DashboardView-C2LdV6J0.mjs +914 -0
  22. package/.output/server/_ssr/{notifyFns-DuPR1zd7.mjs → MachinesModal-BjkcVjjx.mjs} +55 -35
  23. package/.output/server/_ssr/{SignIn-RmpWm9uy.mjs → SignIn-DEGrvJvb.mjs} +10 -24
  24. package/.output/server/_ssr/SocialLinks-Cm4H8pUJ.mjs +1044 -0
  25. package/.output/server/_ssr/{actionUi-BN55TNYE.mjs → actionUi-DJBWuNwr.mjs} +3 -3
  26. package/.output/server/_ssr/{artifactFiles-BCaIIrrT.mjs → artifactFiles-DtpRidFZ.mjs} +7 -8
  27. package/.output/server/_ssr/{artifactKind-BW0isV8L.mjs → artifactKind-FBYbgSuf.mjs} +27 -2
  28. package/.output/server/_ssr/artifacts-BR3jj0NC.mjs +2 -0
  29. package/.output/server/_ssr/{auth-30Z4lV1w.mjs → auth-C0zoZCGe.mjs} +16 -19
  30. package/.output/server/_ssr/boot-CdOO4xOo.mjs +2 -0
  31. package/.output/server/_ssr/{boot-3BNKujyp.mjs → boot-sNlIkoLe.mjs} +1331 -3927
  32. package/.output/server/_ssr/{bun-sqlite-dialect-BW9W1_Ps-_7tfuNRi.mjs → bun-sqlite-dialect-BW9W1_Ps-DmlZWqO7.mjs} +2 -2
  33. package/.output/server/_ssr/{d1-sqlite-dialect-BLC8LXE6-ucDUbeBk.mjs → d1-sqlite-dialect-BLC8LXE6-CCNzqZwZ.mjs} +2 -2
  34. package/.output/server/_ssr/db-CwLD-5w1.mjs +2 -0
  35. package/.output/server/_ssr/{dist-Cd6nlLlO.mjs → dist-B3SxDOpW.mjs} +2 -2
  36. package/.output/server/_ssr/{factory-CWWwV7XZ.mjs → factory-Dv3Zopis.mjs} +2 -2
  37. package/.output/server/_ssr/invite._token-CJ6-H-s3.mjs +20 -0
  38. package/.output/server/_ssr/{invite._token-SdWXemIc.mjs → invite._token-dLKDJKVs.mjs} +9 -17
  39. package/.output/server/_ssr/{invite._token-BKlz0R2f.mjs → invite._token-l1SjouDz.mjs} +6 -15
  40. package/.output/server/_ssr/{kysely-adapter-C8iS51DB.mjs → kysely-adapter-nL7WKSgw.mjs} +1 -1
  41. package/.output/server/_ssr/{lifecycleUi-DgBQAYzp.mjs → lifecycleUi-Dad3hvhm.mjs} +11 -11
  42. package/.output/server/_ssr/logger-B8m8F1Qu.mjs +2 -0
  43. package/.output/server/_ssr/loopApi-BKyFB4KM.mjs +342 -0
  44. package/.output/server/_ssr/{adapters-BoLkOf1T.mjs → loopProjection-B8a829ij.mjs} +25 -55
  45. package/.output/server/_ssr/loops._loopId-DS16Phmq.mjs +1271 -0
  46. package/.output/server/_ssr/{loops._loopId_.runs._runId-PUGBrD5q.mjs → loops._loopId_.runs._runId-BEJI6iK5.mjs} +23 -74
  47. package/.output/server/_ssr/{loops._loopId_.runs._runId-Ymy4lwee.mjs → loops._loopId_.runs._runId-CduETLqH.mjs} +4 -5
  48. package/.output/server/_ssr/{machineFns-BZ9puxDt.mjs → machineFns-ByMsgG12.mjs} +3 -5
  49. package/.output/server/_ssr/{node-sqlite-dialect-D_3JmkMo.mjs → node-sqlite-dialect-CjNineno.mjs} +2 -2
  50. package/.output/server/_ssr/router-CXyrnvx-.mjs +565 -0
  51. package/.output/server/_ssr/{routes-ClZEdsnB.mjs → routes-BulNEUEE.mjs} +6 -10
  52. package/.output/server/_ssr/{routes-ComqHvCL.mjs → routes-DD94baie.mjs} +3 -3
  53. package/.output/server/_ssr/{routes-D5jJJ-30.mjs → routes-Wjexi35W.mjs} +6 -6
  54. package/.output/server/_ssr/runDiff-Ba8Lg1vg.mjs +2 -0
  55. package/.output/server/_ssr/ssr.mjs +60 -100
  56. package/.output/server/_ssr/store-Cujtg2QE.mjs +2 -0
  57. package/.output/server/_ssr/{t._teamId-BgHV_KFP.mjs → t._teamId-1CreIlPV.mjs} +7 -11
  58. package/.output/server/_ssr/{t._teamId-DDERNgfn.mjs → t._teamId-Bd6-zZsy.mjs} +4 -4
  59. package/.output/server/_ssr/{t._teamId-DRJvKHZn.mjs → t._teamId-COuMKQ4r.mjs} +7 -7
  60. package/.output/server/_ssr/{teamFns-Bp81UO-x.mjs → teamFns-H438WnZC.mjs} +12 -30
  61. package/.output/server/_ssr/{teamFns-bm82twd5.mjs → teamFns-j2JKjorZ.mjs} +2 -2
  62. package/.output/server/_ssr/tokens-DgG_Syq3.mjs +2 -0
  63. package/.output/server/_ssr/{ui-Ww2tTM2u.mjs → ui-D5KWstlb.mjs} +26 -48
  64. package/.output/server/{_tanstack-start-manifest_v-DwKENYCN.mjs → _tanstack-start-manifest_v-3H7yBKLz.mjs} +25 -35
  65. package/{drizzle/0000_round_marauders.sql → .output/server/drizzle/0000_baseline.sql} +102 -44
  66. package/.output/server/drizzle/meta/_journal.json +3 -115
  67. package/.output/server/index.mjs +83 -132
  68. package/{.output/server/drizzle/0000_round_marauders.sql → drizzle/0000_baseline.sql} +102 -44
  69. package/drizzle/meta/_journal.json +3 -115
  70. package/package.json +2 -11
  71. package/scripts/pievo-server.mjs +3 -1
  72. package/scripts/server-cli-lib.mjs +23 -16
  73. package/.output/public/assets/CodeField-dOzyFQNH.js +0 -34
  74. package/.output/public/assets/LoopView-DjVHUyrR.js +0 -59
  75. package/.output/public/assets/Modal-CCRvx959.js +0 -1
  76. package/.output/public/assets/SignIn-Qxw5zDFq.js +0 -1
  77. package/.output/public/assets/actionUi-CXxhzYe2.js +0 -1
  78. package/.output/public/assets/app-D1cij_NJ.css +0 -2
  79. package/.output/public/assets/artifactView-Cd5wWPil.js +0 -66
  80. package/.output/public/assets/index-BRN_CQ8U.js +0 -12
  81. package/.output/public/assets/invite._token-BIxr8DlP.js +0 -1
  82. package/.output/public/assets/invite._token-j2BTCeG1.js +0 -1
  83. package/.output/public/assets/jsx-runtime-BseJUIpC.js +0 -1
  84. package/.output/public/assets/lifecycleUi-Qy_8beQK.js +0 -1
  85. package/.output/public/assets/loopApi-CT1mMhlb.js +0 -3
  86. package/.output/public/assets/loops._loopId-BRBQzioy.js +0 -4
  87. package/.output/public/assets/loops._loopId_.runs._runId-CMnOJkem.js +0 -3
  88. package/.output/public/assets/notifyFns-DYD4EKaG.js +0 -1
  89. package/.output/public/assets/preload-helper-DFkkpP6W.js +0 -3
  90. package/.output/public/assets/routes-3nuEJGdo.js +0 -1
  91. package/.output/public/assets/routes-DORLim-C.js +0 -1
  92. package/.output/public/assets/t._teamId-F5f4K8kd.js +0 -1
  93. package/.output/public/assets/t._teamId-XfE_S1Fo.js +0 -1
  94. package/.output/public/assets/ui-Dhsx6SW0.js +0 -1
  95. package/.output/public/assets/useRouter-DsjH8G0p.js +0 -1
  96. package/.output/server/_libs/@codemirror/autocomplete+[...].mjs +0 -19713
  97. package/.output/server/_libs/@codemirror/lang-css+[...].mjs +0 -2636
  98. package/.output/server/_libs/@codemirror/lang-html+[...].mjs +0 -2247
  99. package/.output/server/_libs/@codemirror/lang-json+[...].mjs +0 -79
  100. package/.output/server/_libs/@reduxjs/toolkit+[...].mjs +0 -1736
  101. package/.output/server/_libs/@uiw/codemirror-extensions-basic-setup+[...].mjs +0 -76
  102. package/.output/server/_libs/babel__runtime.mjs +0 -30
  103. package/.output/server/_libs/clsx.mjs +0 -16
  104. package/.output/server/_libs/codemirror__commands.mjs +0 -1725
  105. package/.output/server/_libs/codemirror__lint.mjs +0 -565
  106. package/.output/server/_libs/codemirror__search.mjs +0 -1138
  107. package/.output/server/_libs/codemirror__theme-one-dark.mjs +0 -161
  108. package/.output/server/_libs/d3-array.mjs +0 -231
  109. package/.output/server/_libs/d3-color.mjs +0 -330
  110. package/.output/server/_libs/d3-format.mjs +0 -252
  111. package/.output/server/_libs/d3-interpolate.mjs +0 -163
  112. package/.output/server/_libs/d3-path.mjs +0 -77
  113. package/.output/server/_libs/d3-scale+[...].mjs +0 -1907
  114. package/.output/server/_libs/d3-shape.mjs +0 -818
  115. package/.output/server/_libs/decimal.js-light.mjs +0 -884
  116. package/.output/server/_libs/dom-serializer+[...].mjs +0 -708
  117. package/.output/server/_libs/domhandler.mjs +0 -461
  118. package/.output/server/_libs/domutils.mjs +0 -868
  119. package/.output/server/_libs/es-toolkit.mjs +0 -1737
  120. package/.output/server/_libs/eventemitter3.mjs +0 -236
  121. package/.output/server/_libs/html-dom-parser+htmlparser2.mjs +0 -1560
  122. package/.output/server/_libs/html-react-parser+[...].mjs +0 -1360
  123. package/.output/server/_libs/react-is.mjs +0 -48
  124. package/.output/server/_libs/react-redux+[...].mjs +0 -205
  125. package/.output/server/_libs/recharts+victory-vendor.mjs +0 -17303
  126. package/.output/server/_libs/uiw__codemirror-themes.mjs +0 -32
  127. package/.output/server/_libs/uiw__react-codemirror.mjs +0 -354
  128. package/.output/server/_ssr/CodeField-B7oOmmwH.mjs +0 -143
  129. package/.output/server/_ssr/DashboardView-BF7PciP7.mjs +0 -2736
  130. package/.output/server/_ssr/LoopPlaybook-DC7QVvPY.mjs +0 -2105
  131. package/.output/server/_ssr/LoopView-DwSrm9Ja.mjs +0 -1300
  132. package/.output/server/_ssr/Modal-MaCG52Pv.mjs +0 -49
  133. package/.output/server/_ssr/artifactView-iuPsp5aa.mjs +0 -304
  134. package/.output/server/_ssr/artifacts-jQ-bfdhI.mjs +0 -2
  135. package/.output/server/_ssr/boot-CsEFT53K.mjs +0 -2
  136. package/.output/server/_ssr/db-CXownd1H.mjs +0 -2
  137. package/.output/server/_ssr/invite._token-CWl6kipD.mjs +0 -28
  138. package/.output/server/_ssr/logger-Gy-47z3k.mjs +0 -2
  139. package/.output/server/_ssr/loopApi-8_KgBapr.mjs +0 -109
  140. package/.output/server/_ssr/loopApi-ABi9SgWS.mjs +0 -564
  141. package/.output/server/_ssr/loops._loopId-SON_t43g.mjs +0 -30
  142. package/.output/server/_ssr/loops._loopId-p1KWsvMM.mjs +0 -1477
  143. package/.output/server/_ssr/notifyFns-BUCePuF3.mjs +0 -118
  144. package/.output/server/_ssr/router-Czxvra6l.mjs +0 -685
  145. package/.output/server/_ssr/runDiff--qLtU4FI.mjs +0 -2
  146. package/.output/server/_ssr/store-40eVzW1S.mjs +0 -2
  147. package/.output/server/_ssr/tokens-CbfoRC_s.mjs +0 -2
  148. package/.output/server/drizzle/0001_naive_silver_fox.sql +0 -25
  149. package/.output/server/drizzle/0002_funny_sage.sql +0 -12
  150. package/.output/server/drizzle/0003_optimal_slapstick.sql +0 -102
  151. package/.output/server/drizzle/0004_remove_grok_agent.sql +0 -5
  152. package/.output/server/drizzle/0005_heavy_gauntlet.sql +0 -8
  153. package/.output/server/drizzle/0006_tranquil_sharon_carter.sql +0 -1
  154. package/.output/server/drizzle/0007_faulty_starbolt.sql +0 -30
  155. package/.output/server/drizzle/0008_durable_lifecycle_evidence.sql +0 -15
  156. package/.output/server/drizzle/0009_ordinary_electro.sql +0 -1
  157. package/.output/server/drizzle/0010_workable_rage.sql +0 -14
  158. package/.output/server/drizzle/0011_steep_marvel_zombies.sql +0 -3
  159. package/.output/server/drizzle/0012_blocked_run_status.sql +0 -12
  160. package/.output/server/drizzle/0013_drop_run_outcome.sql +0 -2
  161. package/.output/server/drizzle/0014_luxuriant_scrambler.sql +0 -5
  162. package/.output/server/drizzle/0015_run_history_foundation.sql +0 -43
  163. package/.output/server/drizzle/0016_plural_machine_runs.sql +0 -4
  164. package/.output/server/drizzle/meta/0000_snapshot.json +0 -1333
  165. package/.output/server/drizzle/meta/0001_snapshot.json +0 -1498
  166. package/.output/server/drizzle/meta/0002_snapshot.json +0 -1576
  167. package/.output/server/drizzle/meta/0003_snapshot.json +0 -1666
  168. package/.output/server/drizzle/meta/0005_snapshot.json +0 -1666
  169. package/.output/server/drizzle/meta/0006_snapshot.json +0 -1672
  170. package/.output/server/drizzle/meta/0007_snapshot.json +0 -1787
  171. package/.output/server/drizzle/meta/0009_snapshot.json +0 -1793
  172. package/.output/server/drizzle/meta/0010_snapshot.json +0 -1891
  173. package/.output/server/drizzle/meta/0011_snapshot.json +0 -1872
  174. package/drizzle/0001_naive_silver_fox.sql +0 -25
  175. package/drizzle/0002_funny_sage.sql +0 -12
  176. package/drizzle/0003_optimal_slapstick.sql +0 -102
  177. package/drizzle/0004_remove_grok_agent.sql +0 -5
  178. package/drizzle/0005_heavy_gauntlet.sql +0 -8
  179. package/drizzle/0006_tranquil_sharon_carter.sql +0 -1
  180. package/drizzle/0007_faulty_starbolt.sql +0 -30
  181. package/drizzle/0008_durable_lifecycle_evidence.sql +0 -15
  182. package/drizzle/0009_ordinary_electro.sql +0 -1
  183. package/drizzle/0010_workable_rage.sql +0 -14
  184. package/drizzle/0011_steep_marvel_zombies.sql +0 -3
  185. package/drizzle/0012_blocked_run_status.sql +0 -12
  186. package/drizzle/0013_drop_run_outcome.sql +0 -2
  187. package/drizzle/0014_luxuriant_scrambler.sql +0 -5
  188. package/drizzle/0015_run_history_foundation.sql +0 -43
  189. package/drizzle/0016_plural_machine_runs.sql +0 -4
  190. package/drizzle/meta/0000_snapshot.json +0 -1333
  191. package/drizzle/meta/0001_snapshot.json +0 -1498
  192. package/drizzle/meta/0002_snapshot.json +0 -1576
  193. package/drizzle/meta/0003_snapshot.json +0 -1666
  194. package/drizzle/meta/0005_snapshot.json +0 -1666
  195. package/drizzle/meta/0006_snapshot.json +0 -1672
  196. package/drizzle/meta/0007_snapshot.json +0 -1787
  197. package/drizzle/meta/0009_snapshot.json +0 -1793
  198. package/drizzle/meta/0010_snapshot.json +0 -1891
  199. package/drizzle/meta/0011_snapshot.json +0 -1872
@@ -1,818 +0,0 @@
1
- import { t as Path } from "./d3-path.mjs";
2
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js
3
- function constant_default(x) {
4
- return function constant() {
5
- return x;
6
- };
7
- }
8
- //#endregion
9
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.js
10
- var cos = Math.cos;
11
- var sin = Math.sin;
12
- var sqrt = Math.sqrt;
13
- var pi = Math.PI;
14
- pi / 2;
15
- var tau = 2 * pi;
16
- //#endregion
17
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js
18
- function withPath(shape) {
19
- let digits = 3;
20
- shape.digits = function(_) {
21
- if (!arguments.length) return digits;
22
- if (_ == null) digits = null;
23
- else {
24
- const d = Math.floor(_);
25
- if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`);
26
- digits = d;
27
- }
28
- return shape;
29
- };
30
- return () => new Path(digits);
31
- }
32
- Array.prototype.slice;
33
- function array_default(x) {
34
- return typeof x === "object" && "length" in x ? x : Array.from(x);
35
- }
36
- //#endregion
37
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js
38
- function Linear(context) {
39
- this._context = context;
40
- }
41
- Linear.prototype = {
42
- areaStart: function() {
43
- this._line = 0;
44
- },
45
- areaEnd: function() {
46
- this._line = NaN;
47
- },
48
- lineStart: function() {
49
- this._point = 0;
50
- },
51
- lineEnd: function() {
52
- if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
53
- this._line = 1 - this._line;
54
- },
55
- point: function(x, y) {
56
- x = +x, y = +y;
57
- switch (this._point) {
58
- case 0:
59
- this._point = 1;
60
- this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
61
- break;
62
- case 1: this._point = 2;
63
- default:
64
- this._context.lineTo(x, y);
65
- break;
66
- }
67
- }
68
- };
69
- function linear_default(context) {
70
- return new Linear(context);
71
- }
72
- //#endregion
73
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.js
74
- function x(p) {
75
- return p[0];
76
- }
77
- function y(p) {
78
- return p[1];
79
- }
80
- //#endregion
81
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.js
82
- function line_default(x$1, y$1) {
83
- var defined = constant_default(true), context = null, curve = linear_default, output = null, path = withPath(line);
84
- x$1 = typeof x$1 === "function" ? x$1 : x$1 === void 0 ? x : constant_default(x$1);
85
- y$1 = typeof y$1 === "function" ? y$1 : y$1 === void 0 ? y : constant_default(y$1);
86
- function line(data) {
87
- var i, n = (data = array_default(data)).length, d, defined0 = false, buffer;
88
- if (context == null) output = curve(buffer = path());
89
- for (i = 0; i <= n; ++i) {
90
- if (!(i < n && defined(d = data[i], i, data)) === defined0) if (defined0 = !defined0) output.lineStart();
91
- else output.lineEnd();
92
- if (defined0) output.point(+x$1(d, i, data), +y$1(d, i, data));
93
- }
94
- if (buffer) return output = null, buffer + "" || null;
95
- }
96
- line.x = function(_) {
97
- return arguments.length ? (x$1 = typeof _ === "function" ? _ : constant_default(+_), line) : x$1;
98
- };
99
- line.y = function(_) {
100
- return arguments.length ? (y$1 = typeof _ === "function" ? _ : constant_default(+_), line) : y$1;
101
- };
102
- line.defined = function(_) {
103
- return arguments.length ? (defined = typeof _ === "function" ? _ : constant_default(!!_), line) : defined;
104
- };
105
- line.curve = function(_) {
106
- return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;
107
- };
108
- line.context = function(_) {
109
- return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;
110
- };
111
- return line;
112
- }
113
- //#endregion
114
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/area.js
115
- function area_default(x0, y0, y1) {
116
- var x1 = null, defined = constant_default(true), context = null, curve = linear_default, output = null, path = withPath(area);
117
- x0 = typeof x0 === "function" ? x0 : x0 === void 0 ? x : constant_default(+x0);
118
- y0 = typeof y0 === "function" ? y0 : y0 === void 0 ? constant_default(0) : constant_default(+y0);
119
- y1 = typeof y1 === "function" ? y1 : y1 === void 0 ? y : constant_default(+y1);
120
- function area(data) {
121
- var i, j, k, n = (data = array_default(data)).length, d, defined0 = false, buffer, x0z = new Array(n), y0z = new Array(n);
122
- if (context == null) output = curve(buffer = path());
123
- for (i = 0; i <= n; ++i) {
124
- if (!(i < n && defined(d = data[i], i, data)) === defined0) if (defined0 = !defined0) {
125
- j = i;
126
- output.areaStart();
127
- output.lineStart();
128
- } else {
129
- output.lineEnd();
130
- output.lineStart();
131
- for (k = i - 1; k >= j; --k) output.point(x0z[k], y0z[k]);
132
- output.lineEnd();
133
- output.areaEnd();
134
- }
135
- if (defined0) {
136
- x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);
137
- output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);
138
- }
139
- }
140
- if (buffer) return output = null, buffer + "" || null;
141
- }
142
- function arealine() {
143
- return line_default().defined(defined).curve(curve).context(context);
144
- }
145
- area.x = function(_) {
146
- return arguments.length ? (x0 = typeof _ === "function" ? _ : constant_default(+_), x1 = null, area) : x0;
147
- };
148
- area.x0 = function(_) {
149
- return arguments.length ? (x0 = typeof _ === "function" ? _ : constant_default(+_), area) : x0;
150
- };
151
- area.x1 = function(_) {
152
- return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : constant_default(+_), area) : x1;
153
- };
154
- area.y = function(_) {
155
- return arguments.length ? (y0 = typeof _ === "function" ? _ : constant_default(+_), y1 = null, area) : y0;
156
- };
157
- area.y0 = function(_) {
158
- return arguments.length ? (y0 = typeof _ === "function" ? _ : constant_default(+_), area) : y0;
159
- };
160
- area.y1 = function(_) {
161
- return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : constant_default(+_), area) : y1;
162
- };
163
- area.lineX0 = area.lineY0 = function() {
164
- return arealine().x(x0).y(y0);
165
- };
166
- area.lineY1 = function() {
167
- return arealine().x(x0).y(y1);
168
- };
169
- area.lineX1 = function() {
170
- return arealine().x(x1).y(y0);
171
- };
172
- area.defined = function(_) {
173
- return arguments.length ? (defined = typeof _ === "function" ? _ : constant_default(!!_), area) : defined;
174
- };
175
- area.curve = function(_) {
176
- return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;
177
- };
178
- area.context = function(_) {
179
- return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;
180
- };
181
- return area;
182
- }
183
- //#endregion
184
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bump.js
185
- var Bump = class {
186
- constructor(context, x) {
187
- this._context = context;
188
- this._x = x;
189
- }
190
- areaStart() {
191
- this._line = 0;
192
- }
193
- areaEnd() {
194
- this._line = NaN;
195
- }
196
- lineStart() {
197
- this._point = 0;
198
- }
199
- lineEnd() {
200
- if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
201
- this._line = 1 - this._line;
202
- }
203
- point(x, y) {
204
- x = +x, y = +y;
205
- switch (this._point) {
206
- case 0:
207
- this._point = 1;
208
- if (this._line) this._context.lineTo(x, y);
209
- else this._context.moveTo(x, y);
210
- break;
211
- case 1: this._point = 2;
212
- default:
213
- if (this._x) this._context.bezierCurveTo(this._x0 = (this._x0 + x) / 2, this._y0, this._x0, y, x, y);
214
- else this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + y) / 2, x, this._y0, x, y);
215
- break;
216
- }
217
- this._x0 = x, this._y0 = y;
218
- }
219
- };
220
- function bumpX(context) {
221
- return new Bump(context, true);
222
- }
223
- function bumpY(context) {
224
- return new Bump(context, false);
225
- }
226
- //#endregion
227
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/symbol/circle.js
228
- var circle_default = { draw(context, size) {
229
- const r = sqrt(size / pi);
230
- context.moveTo(r, 0);
231
- context.arc(0, 0, r, 0, tau);
232
- } };
233
- //#endregion
234
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/symbol/cross.js
235
- var cross_default = { draw(context, size) {
236
- const r = sqrt(size / 5) / 2;
237
- context.moveTo(-3 * r, -r);
238
- context.lineTo(-r, -r);
239
- context.lineTo(-r, -3 * r);
240
- context.lineTo(r, -3 * r);
241
- context.lineTo(r, -r);
242
- context.lineTo(3 * r, -r);
243
- context.lineTo(3 * r, r);
244
- context.lineTo(r, r);
245
- context.lineTo(r, 3 * r);
246
- context.lineTo(-r, 3 * r);
247
- context.lineTo(-r, r);
248
- context.lineTo(-3 * r, r);
249
- context.closePath();
250
- } };
251
- //#endregion
252
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/symbol/diamond.js
253
- var tan30 = sqrt(1 / 3);
254
- var tan30_2 = tan30 * 2;
255
- var diamond_default = { draw(context, size) {
256
- const y = sqrt(size / tan30_2);
257
- const x = y * tan30;
258
- context.moveTo(0, -y);
259
- context.lineTo(x, 0);
260
- context.lineTo(0, y);
261
- context.lineTo(-x, 0);
262
- context.closePath();
263
- } };
264
- //#endregion
265
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/symbol/square.js
266
- var square_default = { draw(context, size) {
267
- const w = sqrt(size);
268
- const x = -w / 2;
269
- context.rect(x, x, w, w);
270
- } };
271
- //#endregion
272
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/symbol/star.js
273
- var ka = .8908130915292852;
274
- var kr = sin(pi / 10) / sin(7 * pi / 10);
275
- var kx = sin(tau / 10) * kr;
276
- var ky = -cos(tau / 10) * kr;
277
- var star_default = { draw(context, size) {
278
- const r = sqrt(size * ka);
279
- const x = kx * r;
280
- const y = ky * r;
281
- context.moveTo(0, -r);
282
- context.lineTo(x, y);
283
- for (let i = 1; i < 5; ++i) {
284
- const a = tau * i / 5;
285
- const c = cos(a);
286
- const s = sin(a);
287
- context.lineTo(s * r, -c * r);
288
- context.lineTo(c * x - s * y, s * x + c * y);
289
- }
290
- context.closePath();
291
- } };
292
- //#endregion
293
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/symbol/triangle.js
294
- var sqrt3 = sqrt(3);
295
- var triangle_default = { draw(context, size) {
296
- const y = -sqrt(size / (sqrt3 * 3));
297
- context.moveTo(0, y * 2);
298
- context.lineTo(-sqrt3 * y, -y);
299
- context.lineTo(sqrt3 * y, -y);
300
- context.closePath();
301
- } };
302
- //#endregion
303
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/symbol/wye.js
304
- var c = -.5;
305
- var s = sqrt(3) / 2;
306
- var k = 1 / sqrt(12);
307
- var a = (k / 2 + 1) * 3;
308
- var wye_default = { draw(context, size) {
309
- const r = sqrt(size / a);
310
- const x0 = r / 2, y0 = r * k;
311
- const x1 = x0, y1 = r * k + r;
312
- const x2 = -x1, y2 = y1;
313
- context.moveTo(x0, y0);
314
- context.lineTo(x1, y1);
315
- context.lineTo(x2, y2);
316
- context.lineTo(c * x0 - s * y0, s * x0 + c * y0);
317
- context.lineTo(c * x1 - s * y1, s * x1 + c * y1);
318
- context.lineTo(c * x2 - s * y2, s * x2 + c * y2);
319
- context.lineTo(c * x0 + s * y0, c * y0 - s * x0);
320
- context.lineTo(c * x1 + s * y1, c * y1 - s * x1);
321
- context.lineTo(c * x2 + s * y2, c * y2 - s * x2);
322
- context.closePath();
323
- } };
324
- //#endregion
325
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/symbol.js
326
- function Symbol(type, size) {
327
- let context = null, path = withPath(symbol);
328
- type = typeof type === "function" ? type : constant_default(type || circle_default);
329
- size = typeof size === "function" ? size : constant_default(size === void 0 ? 64 : +size);
330
- function symbol() {
331
- let buffer;
332
- if (!context) context = buffer = path();
333
- type.apply(this, arguments).draw(context, +size.apply(this, arguments));
334
- if (buffer) return context = null, buffer + "" || null;
335
- }
336
- symbol.type = function(_) {
337
- return arguments.length ? (type = typeof _ === "function" ? _ : constant_default(_), symbol) : type;
338
- };
339
- symbol.size = function(_) {
340
- return arguments.length ? (size = typeof _ === "function" ? _ : constant_default(+_), symbol) : size;
341
- };
342
- symbol.context = function(_) {
343
- return arguments.length ? (context = _ == null ? null : _, symbol) : context;
344
- };
345
- return symbol;
346
- }
347
- //#endregion
348
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/noop.js
349
- function noop_default() {}
350
- //#endregion
351
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basis.js
352
- function point$1(that, x, y) {
353
- that._context.bezierCurveTo((2 * that._x0 + that._x1) / 3, (2 * that._y0 + that._y1) / 3, (that._x0 + 2 * that._x1) / 3, (that._y0 + 2 * that._y1) / 3, (that._x0 + 4 * that._x1 + x) / 6, (that._y0 + 4 * that._y1 + y) / 6);
354
- }
355
- function Basis(context) {
356
- this._context = context;
357
- }
358
- Basis.prototype = {
359
- areaStart: function() {
360
- this._line = 0;
361
- },
362
- areaEnd: function() {
363
- this._line = NaN;
364
- },
365
- lineStart: function() {
366
- this._x0 = this._x1 = this._y0 = this._y1 = NaN;
367
- this._point = 0;
368
- },
369
- lineEnd: function() {
370
- switch (this._point) {
371
- case 3: point$1(this, this._x1, this._y1);
372
- case 2:
373
- this._context.lineTo(this._x1, this._y1);
374
- break;
375
- }
376
- if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
377
- this._line = 1 - this._line;
378
- },
379
- point: function(x, y) {
380
- x = +x, y = +y;
381
- switch (this._point) {
382
- case 0:
383
- this._point = 1;
384
- this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
385
- break;
386
- case 1:
387
- this._point = 2;
388
- break;
389
- case 2:
390
- this._point = 3;
391
- this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
392
- default:
393
- point$1(this, x, y);
394
- break;
395
- }
396
- this._x0 = this._x1, this._x1 = x;
397
- this._y0 = this._y1, this._y1 = y;
398
- }
399
- };
400
- function basis_default(context) {
401
- return new Basis(context);
402
- }
403
- //#endregion
404
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisClosed.js
405
- function BasisClosed(context) {
406
- this._context = context;
407
- }
408
- BasisClosed.prototype = {
409
- areaStart: noop_default,
410
- areaEnd: noop_default,
411
- lineStart: function() {
412
- this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;
413
- this._point = 0;
414
- },
415
- lineEnd: function() {
416
- switch (this._point) {
417
- case 1:
418
- this._context.moveTo(this._x2, this._y2);
419
- this._context.closePath();
420
- break;
421
- case 2:
422
- this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);
423
- this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);
424
- this._context.closePath();
425
- break;
426
- case 3:
427
- this.point(this._x2, this._y2);
428
- this.point(this._x3, this._y3);
429
- this.point(this._x4, this._y4);
430
- break;
431
- }
432
- },
433
- point: function(x, y) {
434
- x = +x, y = +y;
435
- switch (this._point) {
436
- case 0:
437
- this._point = 1;
438
- this._x2 = x, this._y2 = y;
439
- break;
440
- case 1:
441
- this._point = 2;
442
- this._x3 = x, this._y3 = y;
443
- break;
444
- case 2:
445
- this._point = 3;
446
- this._x4 = x, this._y4 = y;
447
- this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6);
448
- break;
449
- default:
450
- point$1(this, x, y);
451
- break;
452
- }
453
- this._x0 = this._x1, this._x1 = x;
454
- this._y0 = this._y1, this._y1 = y;
455
- }
456
- };
457
- function basisClosed_default(context) {
458
- return new BasisClosed(context);
459
- }
460
- //#endregion
461
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisOpen.js
462
- function BasisOpen(context) {
463
- this._context = context;
464
- }
465
- BasisOpen.prototype = {
466
- areaStart: function() {
467
- this._line = 0;
468
- },
469
- areaEnd: function() {
470
- this._line = NaN;
471
- },
472
- lineStart: function() {
473
- this._x0 = this._x1 = this._y0 = this._y1 = NaN;
474
- this._point = 0;
475
- },
476
- lineEnd: function() {
477
- if (this._line || this._line !== 0 && this._point === 3) this._context.closePath();
478
- this._line = 1 - this._line;
479
- },
480
- point: function(x, y) {
481
- x = +x, y = +y;
482
- switch (this._point) {
483
- case 0:
484
- this._point = 1;
485
- break;
486
- case 1:
487
- this._point = 2;
488
- break;
489
- case 2:
490
- this._point = 3;
491
- var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6;
492
- this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0);
493
- break;
494
- case 3: this._point = 4;
495
- default:
496
- point$1(this, x, y);
497
- break;
498
- }
499
- this._x0 = this._x1, this._x1 = x;
500
- this._y0 = this._y1, this._y1 = y;
501
- }
502
- };
503
- function basisOpen_default(context) {
504
- return new BasisOpen(context);
505
- }
506
- //#endregion
507
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linearClosed.js
508
- function LinearClosed(context) {
509
- this._context = context;
510
- }
511
- LinearClosed.prototype = {
512
- areaStart: noop_default,
513
- areaEnd: noop_default,
514
- lineStart: function() {
515
- this._point = 0;
516
- },
517
- lineEnd: function() {
518
- if (this._point) this._context.closePath();
519
- },
520
- point: function(x, y) {
521
- x = +x, y = +y;
522
- if (this._point) this._context.lineTo(x, y);
523
- else this._point = 1, this._context.moveTo(x, y);
524
- }
525
- };
526
- function linearClosed_default(context) {
527
- return new LinearClosed(context);
528
- }
529
- //#endregion
530
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/monotone.js
531
- function sign(x) {
532
- return x < 0 ? -1 : 1;
533
- }
534
- function slope3(that, x2, y2) {
535
- var h0 = that._x1 - that._x0, h1 = x2 - that._x1, s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0), s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0), p = (s0 * h1 + s1 * h0) / (h0 + h1);
536
- return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), .5 * Math.abs(p)) || 0;
537
- }
538
- function slope2(that, t) {
539
- var h = that._x1 - that._x0;
540
- return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;
541
- }
542
- function point(that, t0, t1) {
543
- var x0 = that._x0, y0 = that._y0, x1 = that._x1, y1 = that._y1, dx = (x1 - x0) / 3;
544
- that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);
545
- }
546
- function MonotoneX(context) {
547
- this._context = context;
548
- }
549
- MonotoneX.prototype = {
550
- areaStart: function() {
551
- this._line = 0;
552
- },
553
- areaEnd: function() {
554
- this._line = NaN;
555
- },
556
- lineStart: function() {
557
- this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN;
558
- this._point = 0;
559
- },
560
- lineEnd: function() {
561
- switch (this._point) {
562
- case 2:
563
- this._context.lineTo(this._x1, this._y1);
564
- break;
565
- case 3:
566
- point(this, this._t0, slope2(this, this._t0));
567
- break;
568
- }
569
- if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
570
- this._line = 1 - this._line;
571
- },
572
- point: function(x, y) {
573
- var t1 = NaN;
574
- x = +x, y = +y;
575
- if (x === this._x1 && y === this._y1) return;
576
- switch (this._point) {
577
- case 0:
578
- this._point = 1;
579
- this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
580
- break;
581
- case 1:
582
- this._point = 2;
583
- break;
584
- case 2:
585
- this._point = 3;
586
- point(this, slope2(this, t1 = slope3(this, x, y)), t1);
587
- break;
588
- default:
589
- point(this, this._t0, t1 = slope3(this, x, y));
590
- break;
591
- }
592
- this._x0 = this._x1, this._x1 = x;
593
- this._y0 = this._y1, this._y1 = y;
594
- this._t0 = t1;
595
- }
596
- };
597
- function MonotoneY(context) {
598
- this._context = new ReflectContext(context);
599
- }
600
- (MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {
601
- MonotoneX.prototype.point.call(this, y, x);
602
- };
603
- function ReflectContext(context) {
604
- this._context = context;
605
- }
606
- ReflectContext.prototype = {
607
- moveTo: function(x, y) {
608
- this._context.moveTo(y, x);
609
- },
610
- closePath: function() {
611
- this._context.closePath();
612
- },
613
- lineTo: function(x, y) {
614
- this._context.lineTo(y, x);
615
- },
616
- bezierCurveTo: function(x1, y1, x2, y2, x, y) {
617
- this._context.bezierCurveTo(y1, x1, y2, x2, y, x);
618
- }
619
- };
620
- function monotoneX(context) {
621
- return new MonotoneX(context);
622
- }
623
- function monotoneY(context) {
624
- return new MonotoneY(context);
625
- }
626
- //#endregion
627
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/natural.js
628
- function Natural(context) {
629
- this._context = context;
630
- }
631
- Natural.prototype = {
632
- areaStart: function() {
633
- this._line = 0;
634
- },
635
- areaEnd: function() {
636
- this._line = NaN;
637
- },
638
- lineStart: function() {
639
- this._x = [];
640
- this._y = [];
641
- },
642
- lineEnd: function() {
643
- var x = this._x, y = this._y, n = x.length;
644
- if (n) {
645
- this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);
646
- if (n === 2) this._context.lineTo(x[1], y[1]);
647
- else {
648
- var px = controlPoints(x), py = controlPoints(y);
649
- for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);
650
- }
651
- }
652
- if (this._line || this._line !== 0 && n === 1) this._context.closePath();
653
- this._line = 1 - this._line;
654
- this._x = this._y = null;
655
- },
656
- point: function(x, y) {
657
- this._x.push(+x);
658
- this._y.push(+y);
659
- }
660
- };
661
- function controlPoints(x) {
662
- var i, n = x.length - 1, m, a = new Array(n), b = new Array(n), r = new Array(n);
663
- a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];
664
- for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];
665
- a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];
666
- for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];
667
- a[n - 1] = r[n - 1] / b[n - 1];
668
- for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];
669
- b[n - 1] = (x[n] + a[n - 1]) / 2;
670
- for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];
671
- return [a, b];
672
- }
673
- function natural_default(context) {
674
- return new Natural(context);
675
- }
676
- //#endregion
677
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/step.js
678
- function Step(context, t) {
679
- this._context = context;
680
- this._t = t;
681
- }
682
- Step.prototype = {
683
- areaStart: function() {
684
- this._line = 0;
685
- },
686
- areaEnd: function() {
687
- this._line = NaN;
688
- },
689
- lineStart: function() {
690
- this._x = this._y = NaN;
691
- this._point = 0;
692
- },
693
- lineEnd: function() {
694
- if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);
695
- if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
696
- if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;
697
- },
698
- point: function(x, y) {
699
- x = +x, y = +y;
700
- switch (this._point) {
701
- case 0:
702
- this._point = 1;
703
- this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
704
- break;
705
- case 1: this._point = 2;
706
- default:
707
- if (this._t <= 0) {
708
- this._context.lineTo(this._x, y);
709
- this._context.lineTo(x, y);
710
- } else {
711
- var x1 = this._x * (1 - this._t) + x * this._t;
712
- this._context.lineTo(x1, this._y);
713
- this._context.lineTo(x1, y);
714
- }
715
- break;
716
- }
717
- this._x = x, this._y = y;
718
- }
719
- };
720
- function step_default(context) {
721
- return new Step(context, .5);
722
- }
723
- function stepBefore(context) {
724
- return new Step(context, 0);
725
- }
726
- function stepAfter(context) {
727
- return new Step(context, 1);
728
- }
729
- //#endregion
730
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/offset/none.js
731
- function none_default$1(series, order) {
732
- if (!((n = series.length) > 1)) return;
733
- for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {
734
- s0 = s1, s1 = series[order[i]];
735
- for (j = 0; j < m; ++j) s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];
736
- }
737
- }
738
- //#endregion
739
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/order/none.js
740
- function none_default(series) {
741
- var n = series.length, o = new Array(n);
742
- while (--n >= 0) o[n] = n;
743
- return o;
744
- }
745
- //#endregion
746
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/stack.js
747
- function stackValue(d, key) {
748
- return d[key];
749
- }
750
- function stackSeries(key) {
751
- const series = [];
752
- series.key = key;
753
- return series;
754
- }
755
- function stack_default() {
756
- var keys = constant_default([]), order = none_default, offset = none_default$1, value = stackValue;
757
- function stack(data) {
758
- var sz = Array.from(keys.apply(this, arguments), stackSeries), i, n = sz.length, j = -1, oz;
759
- for (const d of data) for (i = 0, ++j; i < n; ++i) (sz[i][j] = [0, +value(d, sz[i].key, j, data)]).data = d;
760
- for (i = 0, oz = array_default(order(sz)); i < n; ++i) sz[oz[i]].index = i;
761
- offset(sz, oz);
762
- return sz;
763
- }
764
- stack.keys = function(_) {
765
- return arguments.length ? (keys = typeof _ === "function" ? _ : constant_default(Array.from(_)), stack) : keys;
766
- };
767
- stack.value = function(_) {
768
- return arguments.length ? (value = typeof _ === "function" ? _ : constant_default(+_), stack) : value;
769
- };
770
- stack.order = function(_) {
771
- return arguments.length ? (order = _ == null ? none_default : typeof _ === "function" ? _ : constant_default(Array.from(_)), stack) : order;
772
- };
773
- stack.offset = function(_) {
774
- return arguments.length ? (offset = _ == null ? none_default$1 : _, stack) : offset;
775
- };
776
- return stack;
777
- }
778
- //#endregion
779
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/offset/expand.js
780
- function expand_default(series, order) {
781
- if (!((n = series.length) > 0)) return;
782
- for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {
783
- for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;
784
- if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;
785
- }
786
- none_default$1(series, order);
787
- }
788
- //#endregion
789
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/offset/silhouette.js
790
- function silhouette_default(series, order) {
791
- if (!((n = series.length) > 0)) return;
792
- for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {
793
- for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;
794
- s0[j][1] += s0[j][0] = -y / 2;
795
- }
796
- none_default$1(series, order);
797
- }
798
- //#endregion
799
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/offset/wiggle.js
800
- function wiggle_default(series, order) {
801
- if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;
802
- for (var y = 0, j = 1, s0, m, n; j < m; ++j) {
803
- for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {
804
- var si = series[order[i]], sij0 = si[j][1] || 0, s3 = (sij0 - (si[j - 1][1] || 0)) / 2;
805
- for (var k = 0; k < i; ++k) {
806
- var sk = series[order[k]], skj0 = sk[j][1] || 0, skj1 = sk[j - 1][1] || 0;
807
- s3 += skj0 - skj1;
808
- }
809
- s1 += sij0, s2 += s3 * sij0;
810
- }
811
- s0[j - 1][1] += s0[j - 1][0] = y;
812
- if (s1) y -= s2 / s1;
813
- }
814
- s0[j - 1][1] += s0[j - 1][0] = y;
815
- none_default$1(series, order);
816
- }
817
- //#endregion
818
- export { cross_default as C, area_default as D, bumpY as E, line_default as O, diamond_default as S, bumpX as T, Symbol as _, none_default as a, star_default as b, stepBefore as c, monotoneX as d, monotoneY as f, basis_default as g, basisClosed_default as h, stack_default as i, linear_default as k, step_default as l, basisOpen_default as m, silhouette_default as n, none_default$1 as o, linearClosed_default as p, expand_default as r, stepAfter as s, wiggle_default as t, natural_default as u, wye_default as v, circle_default as w, square_default as x, triangle_default as y };