@kky42/pievo-server 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 (197) hide show
  1. package/.output/nitro.json +17 -0
  2. package/.output/public/assets/CodeField-dOzyFQNH.js +34 -0
  3. package/.output/public/assets/LoopView-B4H9QibC.js +55 -0
  4. package/.output/public/assets/Modal-D33gNSgx.js +1 -0
  5. package/.output/public/assets/SignIn-SHuRRyOv.js +1 -0
  6. package/.output/public/assets/actionUi-ChGGALzg.js +1 -0
  7. package/.output/public/assets/app-DElSo_jy.css +2 -0
  8. package/.output/public/assets/artifactView-DFuubXLJ.js +66 -0
  9. package/.output/public/assets/index-DfpTWRSz.js +12 -0
  10. package/.output/public/assets/invite._token-DJtd-XE2.js +1 -0
  11. package/.output/public/assets/invite._token-T8oo4Qtw.js +1 -0
  12. package/.output/public/assets/jsx-runtime-BseJUIpC.js +1 -0
  13. package/.output/public/assets/lifecycleUi-DKkChdnU.js +1 -0
  14. package/.output/public/assets/loopApi-BM2nj71x.js +3 -0
  15. package/.output/public/assets/loops._loopId-B19Jw7jC.js +5 -0
  16. package/.output/public/assets/loops._loopId_.runs._runId-_CflHV38.js +3 -0
  17. package/.output/public/assets/notifyFns-DCubjpRy.js +1 -0
  18. package/.output/public/assets/preload-helper-CKUiEq3b.js +3 -0
  19. package/.output/public/assets/routes-B9tgli5f.js +1 -0
  20. package/.output/public/assets/routes-CTtlM_qt.js +1 -0
  21. package/.output/public/assets/t._teamId-Bm21mngW.js +1 -0
  22. package/.output/public/assets/t._teamId-gR7BVKkR.js +1 -0
  23. package/.output/public/assets/ui-Dp88qUWh.js +1 -0
  24. package/.output/public/assets/useRouter-DsjH8G0p.js +1 -0
  25. package/.output/public/favicon.svg +12 -0
  26. package/.output/public/fonts/GeistPixel-Square.woff2 +0 -0
  27. package/.output/server/_chunks/ssr-renderer.mjs +26 -0
  28. package/.output/server/_libs/@aws-crypto/crc32+[...].mjs +419 -0
  29. package/.output/server/_libs/@aws-sdk/checksums+[...].mjs +10732 -0
  30. package/.output/server/_libs/@aws-sdk/client-s3+[...].mjs +9475 -0
  31. package/.output/server/_libs/@aws-sdk/credential-provider-http+[...].mjs +137 -0
  32. package/.output/server/_libs/@aws-sdk/credential-provider-ini+[...].mjs +440 -0
  33. package/.output/server/_libs/@aws-sdk/credential-provider-process+[...].mjs +62 -0
  34. package/.output/server/_libs/@aws-sdk/credential-provider-sso+[...].mjs +818 -0
  35. package/.output/server/_libs/@aws-sdk/credential-provider-web-identity+[...].mjs +59 -0
  36. package/.output/server/_libs/@base-ui/react+[...].mjs +11125 -0
  37. package/.output/server/_libs/@codemirror/autocomplete+[...].mjs +19713 -0
  38. package/.output/server/_libs/@codemirror/lang-css+[...].mjs +2636 -0
  39. package/.output/server/_libs/@codemirror/lang-html+[...].mjs +2247 -0
  40. package/.output/server/_libs/@codemirror/lang-json+[...].mjs +79 -0
  41. package/.output/server/_libs/@reduxjs/toolkit+[...].mjs +1736 -0
  42. package/.output/server/_libs/@smithy/credential-provider-imds+[...].mjs +342 -0
  43. package/.output/server/_libs/@tanstack/react-router+[...].mjs +14300 -0
  44. package/.output/server/_libs/@uiw/codemirror-extensions-basic-setup+[...].mjs +76 -0
  45. package/.output/server/_libs/atomic-sleep.mjs +27 -0
  46. package/.output/server/_libs/aws-crypto__crc32c.mjs +314 -0
  47. package/.output/server/_libs/aws-sdk__nested-clients.mjs +2671 -0
  48. package/.output/server/_libs/babel__runtime.mjs +30 -0
  49. package/.output/server/_libs/clsx.mjs +16 -0
  50. package/.output/server/_libs/codemirror__commands.mjs +1725 -0
  51. package/.output/server/_libs/codemirror__lint.mjs +565 -0
  52. package/.output/server/_libs/codemirror__search.mjs +1138 -0
  53. package/.output/server/_libs/codemirror__theme-one-dark.mjs +161 -0
  54. package/.output/server/_libs/colorette.mjs +129 -0
  55. package/.output/server/_libs/croner.mjs +735 -0
  56. package/.output/server/_libs/d3-array.mjs +231 -0
  57. package/.output/server/_libs/d3-color.mjs +330 -0
  58. package/.output/server/_libs/d3-format.mjs +252 -0
  59. package/.output/server/_libs/d3-interpolate.mjs +163 -0
  60. package/.output/server/_libs/d3-path.mjs +77 -0
  61. package/.output/server/_libs/d3-scale+[...].mjs +1907 -0
  62. package/.output/server/_libs/d3-shape.mjs +689 -0
  63. package/.output/server/_libs/dateformat.mjs +341 -0
  64. package/.output/server/_libs/decimal.js-light.mjs +884 -0
  65. package/.output/server/_libs/diff.mjs +732 -0
  66. package/.output/server/_libs/dom-serializer+[...].mjs +708 -0
  67. package/.output/server/_libs/domhandler.mjs +461 -0
  68. package/.output/server/_libs/dompurify.mjs +2111 -0
  69. package/.output/server/_libs/domutils.mjs +868 -0
  70. package/.output/server/_libs/drizzle-orm+postgres.mjs +7689 -0
  71. package/.output/server/_libs/electric-sql__pglite.mjs +14674 -0
  72. package/.output/server/_libs/end-of-stream+once+wrappy.mjs +145 -0
  73. package/.output/server/_libs/es-toolkit.mjs +1737 -0
  74. package/.output/server/_libs/eventemitter3.mjs +236 -0
  75. package/.output/server/_libs/fast-copy.mjs +285 -0
  76. package/.output/server/_libs/fast-safe-stringify.mjs +172 -0
  77. package/.output/server/_libs/h3+rou3+srvx.mjs +1201 -0
  78. package/.output/server/_libs/html-dom-parser+htmlparser2.mjs +1560 -0
  79. package/.output/server/_libs/html-react-parser+[...].mjs +1360 -0
  80. package/.output/server/_libs/initdb.wasm +0 -0
  81. package/.output/server/_libs/marked.mjs +1548 -0
  82. package/.output/server/_libs/on-exit-leak-free.mjs +80 -0
  83. package/.output/server/_libs/pglite.data +37667 -8
  84. package/.output/server/_libs/pglite.wasm +0 -0
  85. package/.output/server/_libs/pino+[...].mjs +3196 -0
  86. package/.output/server/_libs/pino-abstract-transport+split2.mjs +194 -0
  87. package/.output/server/_libs/pino-pretty+[...].mjs +1623 -0
  88. package/.output/server/_libs/pinojs__redact.mjs +280 -0
  89. package/.output/server/_libs/react-redux+[...].mjs +205 -0
  90. package/.output/server/_libs/recharts+victory-vendor.mjs +15875 -0
  91. package/.output/server/_libs/tanstack__history.mjs +342 -0
  92. package/.output/server/_libs/ufo.mjs +64 -0
  93. package/.output/server/_libs/uiw__codemirror-themes.mjs +32 -0
  94. package/.output/server/_libs/uiw__react-codemirror.mjs +354 -0
  95. package/.output/server/_runtime.mjs +37 -0
  96. package/.output/server/_ssr/CodeField-tm4rr6G3.mjs +143 -0
  97. package/.output/server/_ssr/DashboardView-CC7htv28.mjs +2795 -0
  98. package/.output/server/_ssr/LoopPlaybook-BXH8mhiX.mjs +2105 -0
  99. package/.output/server/_ssr/LoopView-DCugEbHx.mjs +1106 -0
  100. package/.output/server/_ssr/Modal-DpKZHLZK.mjs +49 -0
  101. package/.output/server/_ssr/SignIn-dTndU6Hw.mjs +67 -0
  102. package/.output/server/_ssr/actionUi-CZbEixbf.mjs +119 -0
  103. package/.output/server/_ssr/adapters-BS8XosjF.mjs +130 -0
  104. package/.output/server/_ssr/artifactFiles-Cagtj7J0.mjs +61 -0
  105. package/.output/server/_ssr/artifactKind-BW0isV8L.mjs +37 -0
  106. package/.output/server/_ssr/artifactView-DS4O22wl.mjs +304 -0
  107. package/.output/server/_ssr/artifacts-DngKyW2u.mjs +2 -0
  108. package/.output/server/_ssr/auth-DY1DuYZd.mjs +38429 -0
  109. package/.output/server/_ssr/boot-BbtG0ImW.mjs +9010 -0
  110. package/.output/server/_ssr/boot-CMHTxQpJ.mjs +2 -0
  111. package/.output/server/_ssr/bun-sqlite-dialect-BW9W1_Ps-CU1Spd6z.mjs +162 -0
  112. package/.output/server/_ssr/core-RrmWoKne.mjs +5 -0
  113. package/.output/server/_ssr/createServerRpc-BD8Xn_0_.mjs +12 -0
  114. package/.output/server/_ssr/d1-sqlite-dialect-BLC8LXE6-DfG7tB8s.mjs +112 -0
  115. package/.output/server/_ssr/db-DWAuZq1o.mjs +2 -0
  116. package/.output/server/_ssr/dist-BIxFFVZg.mjs +342 -0
  117. package/.output/server/_ssr/empty-plugin-adapters-DKUlnwwl.mjs +5 -0
  118. package/.output/server/_ssr/factory-Blq0DYfT.mjs +6903 -0
  119. package/.output/server/_ssr/invite._token-BRCo9LGB.mjs +36 -0
  120. package/.output/server/_ssr/invite._token-DJxGLILJ.mjs +28 -0
  121. package/.output/server/_ssr/invite._token-NewFt27g.mjs +92 -0
  122. package/.output/server/_ssr/kysely-adapter-D3XTe64J.mjs +2 -0
  123. package/.output/server/_ssr/kysely-migration-tables-JkVUjPF_-bPAX9LR_.mjs +19 -0
  124. package/.output/server/_ssr/lifecycleUi-C9lg1r3r.mjs +38 -0
  125. package/.output/server/_ssr/logger-Dw82jNjH.mjs +2 -0
  126. package/.output/server/_ssr/loopApi-BtfkZQYK.mjs +532 -0
  127. package/.output/server/_ssr/loopApi-Cxe8WyOB.mjs +105 -0
  128. package/.output/server/_ssr/loops._loopId-7NQJPB9W.mjs +30 -0
  129. package/.output/server/_ssr/loops._loopId-DhnArGdL.mjs +1635 -0
  130. package/.output/server/_ssr/loops._loopId_.runs._runId-Bvuo2nki.mjs +29 -0
  131. package/.output/server/_ssr/loops._loopId_.runs._runId-Dip5Xk-q.mjs +674 -0
  132. package/.output/server/_ssr/machineFns-Dvr5ICUy.mjs +266 -0
  133. package/.output/server/_ssr/node-sqlite-dialect-DhyOpJTX.mjs +162 -0
  134. package/.output/server/_ssr/notifyFns-BcMRY5kP.mjs +118 -0
  135. package/.output/server/_ssr/notifyFns-Q458pZmE.mjs +580 -0
  136. package/.output/server/_ssr/router-J8KZ30xw.mjs +678 -0
  137. package/.output/server/_ssr/routes-Bcs4T1ox.mjs +28 -0
  138. package/.output/server/_ssr/routes-BoGrcf-b.mjs +43 -0
  139. package/.output/server/_ssr/routes-D4am3Zff.mjs +28 -0
  140. package/.output/server/_ssr/runDiff-CpEFqo7G.mjs +113 -0
  141. package/.output/server/_ssr/ssr.mjs +5837 -0
  142. package/.output/server/_ssr/start-4ifArtKx.mjs +4 -0
  143. package/.output/server/_ssr/store-b3JcQ08F.mjs +2 -0
  144. package/.output/server/_ssr/t._teamId-CeUhzgzT.mjs +32 -0
  145. package/.output/server/_ssr/t._teamId-DR-hQK7o.mjs +47 -0
  146. package/.output/server/_ssr/t._teamId-Dy_McbRt.mjs +31 -0
  147. package/.output/server/_ssr/teamCookie-B7hLOIie.mjs +10 -0
  148. package/.output/server/_ssr/teamFns-BIDnsg2A.mjs +473 -0
  149. package/.output/server/_ssr/teamFns-DA4ovI5g.mjs +33 -0
  150. package/.output/server/_ssr/tokens-ytd60FUt.mjs +2 -0
  151. package/.output/server/_ssr/ui-Dej2qjuS.mjs +267 -0
  152. package/.output/server/_tanstack-start-manifest_v-CVS6c7re.mjs +95 -0
  153. package/.output/server/drizzle/0000_round_marauders.sql +193 -0
  154. package/.output/server/drizzle/0001_naive_silver_fox.sql +25 -0
  155. package/.output/server/drizzle/0002_funny_sage.sql +12 -0
  156. package/.output/server/drizzle/0003_optimal_slapstick.sql +102 -0
  157. package/.output/server/drizzle/0004_remove_grok_agent.sql +5 -0
  158. package/.output/server/drizzle/0005_heavy_gauntlet.sql +8 -0
  159. package/.output/server/drizzle/0006_tranquil_sharon_carter.sql +1 -0
  160. package/.output/server/drizzle/0007_faulty_starbolt.sql +30 -0
  161. package/.output/server/drizzle/0008_durable_lifecycle_evidence.sql +15 -0
  162. package/.output/server/drizzle/meta/0000_snapshot.json +1333 -0
  163. package/.output/server/drizzle/meta/0001_snapshot.json +1498 -0
  164. package/.output/server/drizzle/meta/0002_snapshot.json +1576 -0
  165. package/.output/server/drizzle/meta/0003_snapshot.json +1666 -0
  166. package/.output/server/drizzle/meta/0005_snapshot.json +1666 -0
  167. package/.output/server/drizzle/meta/0006_snapshot.json +1672 -0
  168. package/.output/server/drizzle/meta/0007_snapshot.json +1787 -0
  169. package/.output/server/drizzle/meta/_journal.json +69 -0
  170. package/.output/server/index.mjs +464 -0
  171. package/.output/server/node_modules/tslib/modules/index.js +70 -0
  172. package/.output/server/node_modules/tslib/modules/package.json +3 -0
  173. package/.output/server/node_modules/tslib/package.json +47 -0
  174. package/.output/server/node_modules/tslib/tslib.js +484 -0
  175. package/.output/server/package.json +9 -0
  176. package/LICENSE +21 -0
  177. package/drizzle/0000_round_marauders.sql +193 -0
  178. package/drizzle/0001_naive_silver_fox.sql +25 -0
  179. package/drizzle/0002_funny_sage.sql +12 -0
  180. package/drizzle/0003_optimal_slapstick.sql +102 -0
  181. package/drizzle/0004_remove_grok_agent.sql +5 -0
  182. package/drizzle/0005_heavy_gauntlet.sql +8 -0
  183. package/drizzle/0006_tranquil_sharon_carter.sql +1 -0
  184. package/drizzle/0007_faulty_starbolt.sql +30 -0
  185. package/drizzle/0008_durable_lifecycle_evidence.sql +15 -0
  186. package/drizzle/meta/0000_snapshot.json +1333 -0
  187. package/drizzle/meta/0001_snapshot.json +1498 -0
  188. package/drizzle/meta/0002_snapshot.json +1576 -0
  189. package/drizzle/meta/0003_snapshot.json +1666 -0
  190. package/drizzle/meta/0005_snapshot.json +1666 -0
  191. package/drizzle/meta/0006_snapshot.json +1672 -0
  192. package/drizzle/meta/0007_snapshot.json +1787 -0
  193. package/drizzle/meta/_journal.json +69 -0
  194. package/package.json +84 -0
  195. package/scripts/pievo-server.mjs +390 -0
  196. package/scripts/prestart.mjs +66 -0
  197. package/scripts/server-cli-lib.mjs +451 -0
@@ -0,0 +1,252 @@
1
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatDecimal.js
2
+ function formatDecimal_default(x) {
3
+ return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10);
4
+ }
5
+ function formatDecimalParts(x, p) {
6
+ if (!isFinite(x) || x === 0) return null;
7
+ var i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e"), coefficient = x.slice(0, i);
8
+ return [coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, +x.slice(i + 1)];
9
+ }
10
+ //#endregion
11
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js
12
+ function exponent_default(x) {
13
+ return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;
14
+ }
15
+ //#endregion
16
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatGroup.js
17
+ function formatGroup_default(grouping, thousands) {
18
+ return function(value, width) {
19
+ var i = value.length, t = [], j = 0, g = grouping[0], length = 0;
20
+ while (i > 0 && g > 0) {
21
+ if (length + g + 1 > width) g = Math.max(1, width - length);
22
+ t.push(value.substring(i -= g, i + g));
23
+ if ((length += g + 1) > width) break;
24
+ g = grouping[j = (j + 1) % grouping.length];
25
+ }
26
+ return t.reverse().join(thousands);
27
+ };
28
+ }
29
+ //#endregion
30
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatNumerals.js
31
+ function formatNumerals_default(numerals) {
32
+ return function(value) {
33
+ return value.replace(/[0-9]/g, function(i) {
34
+ return numerals[+i];
35
+ });
36
+ };
37
+ }
38
+ //#endregion
39
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js
40
+ var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
41
+ function formatSpecifier(specifier) {
42
+ if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
43
+ var match;
44
+ return new FormatSpecifier({
45
+ fill: match[1],
46
+ align: match[2],
47
+ sign: match[3],
48
+ symbol: match[4],
49
+ zero: match[5],
50
+ width: match[6],
51
+ comma: match[7],
52
+ precision: match[8] && match[8].slice(1),
53
+ trim: match[9],
54
+ type: match[10]
55
+ });
56
+ }
57
+ formatSpecifier.prototype = FormatSpecifier.prototype;
58
+ function FormatSpecifier(specifier) {
59
+ this.fill = specifier.fill === void 0 ? " " : specifier.fill + "";
60
+ this.align = specifier.align === void 0 ? ">" : specifier.align + "";
61
+ this.sign = specifier.sign === void 0 ? "-" : specifier.sign + "";
62
+ this.symbol = specifier.symbol === void 0 ? "" : specifier.symbol + "";
63
+ this.zero = !!specifier.zero;
64
+ this.width = specifier.width === void 0 ? void 0 : +specifier.width;
65
+ this.comma = !!specifier.comma;
66
+ this.precision = specifier.precision === void 0 ? void 0 : +specifier.precision;
67
+ this.trim = !!specifier.trim;
68
+ this.type = specifier.type === void 0 ? "" : specifier.type + "";
69
+ }
70
+ FormatSpecifier.prototype.toString = function() {
71
+ return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
72
+ };
73
+ //#endregion
74
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTrim.js
75
+ function formatTrim_default(s) {
76
+ out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) switch (s[i]) {
77
+ case ".":
78
+ i0 = i1 = i;
79
+ break;
80
+ case "0":
81
+ if (i0 === 0) i0 = i;
82
+ i1 = i;
83
+ break;
84
+ default:
85
+ if (!+s[i]) break out;
86
+ if (i0 > 0) i0 = 0;
87
+ break;
88
+ }
89
+ return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
90
+ }
91
+ //#endregion
92
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatPrefixAuto.js
93
+ var prefixExponent;
94
+ function formatPrefixAuto_default(x, p) {
95
+ var d = formatDecimalParts(x, p);
96
+ if (!d) return prefixExponent = void 0, x.toPrecision(p);
97
+ var coefficient = d[0], exponent = d[1], i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1, n = coefficient.length;
98
+ return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0];
99
+ }
100
+ //#endregion
101
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatRounded.js
102
+ function formatRounded_default(x, p) {
103
+ var d = formatDecimalParts(x, p);
104
+ if (!d) return x + "";
105
+ var coefficient = d[0], exponent = d[1];
106
+ return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) : coefficient + new Array(exponent - coefficient.length + 2).join("0");
107
+ }
108
+ //#endregion
109
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTypes.js
110
+ var formatTypes_default = {
111
+ "%": (x, p) => (x * 100).toFixed(p),
112
+ "b": (x) => Math.round(x).toString(2),
113
+ "c": (x) => x + "",
114
+ "d": formatDecimal_default,
115
+ "e": (x, p) => x.toExponential(p),
116
+ "f": (x, p) => x.toFixed(p),
117
+ "g": (x, p) => x.toPrecision(p),
118
+ "o": (x) => Math.round(x).toString(8),
119
+ "p": (x, p) => formatRounded_default(x * 100, p),
120
+ "r": formatRounded_default,
121
+ "s": formatPrefixAuto_default,
122
+ "X": (x) => Math.round(x).toString(16).toUpperCase(),
123
+ "x": (x) => Math.round(x).toString(16)
124
+ };
125
+ //#endregion
126
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/identity.js
127
+ function identity_default(x) {
128
+ return x;
129
+ }
130
+ //#endregion
131
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/locale.js
132
+ var map = Array.prototype.map, prefixes = [
133
+ "y",
134
+ "z",
135
+ "a",
136
+ "f",
137
+ "p",
138
+ "n",
139
+ "µ",
140
+ "m",
141
+ "",
142
+ "k",
143
+ "M",
144
+ "G",
145
+ "T",
146
+ "P",
147
+ "E",
148
+ "Z",
149
+ "Y"
150
+ ];
151
+ function locale_default(locale) {
152
+ var group = locale.grouping === void 0 || locale.thousands === void 0 ? identity_default : formatGroup_default(map.call(locale.grouping, Number), locale.thousands + ""), currencyPrefix = locale.currency === void 0 ? "" : locale.currency[0] + "", currencySuffix = locale.currency === void 0 ? "" : locale.currency[1] + "", decimal = locale.decimal === void 0 ? "." : locale.decimal + "", numerals = locale.numerals === void 0 ? identity_default : formatNumerals_default(map.call(locale.numerals, String)), percent = locale.percent === void 0 ? "%" : locale.percent + "", minus = locale.minus === void 0 ? "−" : locale.minus + "", nan = locale.nan === void 0 ? "NaN" : locale.nan + "";
153
+ function newFormat(specifier, options) {
154
+ specifier = formatSpecifier(specifier);
155
+ var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero = specifier.zero, width = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type = specifier.type;
156
+ if (type === "n") comma = true, type = "g";
157
+ else if (!formatTypes_default[type]) precision === void 0 && (precision = 12), trim = true, type = "g";
158
+ if (zero || fill === "0" && align === "=") zero = true, fill = "0", align = "=";
159
+ var prefix = (options && options.prefix !== void 0 ? options.prefix : "") + (symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : ""), suffix = (symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "") + (options && options.suffix !== void 0 ? options.suffix : "");
160
+ var formatType = formatTypes_default[type], maybeSuffix = /[defgprs%]/.test(type);
161
+ precision = precision === void 0 ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision));
162
+ function format(value) {
163
+ var valuePrefix = prefix, valueSuffix = suffix, i, n, c;
164
+ if (type === "c") {
165
+ valueSuffix = formatType(value) + valueSuffix;
166
+ value = "";
167
+ } else {
168
+ value = +value;
169
+ var valueNegative = value < 0 || 1 / value < 0;
170
+ value = isNaN(value) ? nan : formatType(Math.abs(value), precision);
171
+ if (trim) value = formatTrim_default(value);
172
+ if (valueNegative && +value === 0 && sign !== "+") valueNegative = false;
173
+ valuePrefix = (valueNegative ? sign === "(" ? sign : minus : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
174
+ valueSuffix = (type === "s" && !isNaN(value) && prefixExponent !== void 0 ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
175
+ if (maybeSuffix) {
176
+ i = -1, n = value.length;
177
+ while (++i < n) if (c = value.charCodeAt(i), 48 > c || c > 57) {
178
+ valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
179
+ value = value.slice(0, i);
180
+ break;
181
+ }
182
+ }
183
+ }
184
+ if (comma && !zero) value = group(value, Infinity);
185
+ var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width ? new Array(width - length + 1).join(fill) : "";
186
+ if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = "";
187
+ switch (align) {
188
+ case "<":
189
+ value = valuePrefix + value + valueSuffix + padding;
190
+ break;
191
+ case "=":
192
+ value = valuePrefix + padding + value + valueSuffix;
193
+ break;
194
+ case "^":
195
+ value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length);
196
+ break;
197
+ default:
198
+ value = padding + valuePrefix + value + valueSuffix;
199
+ break;
200
+ }
201
+ return numerals(value);
202
+ }
203
+ format.toString = function() {
204
+ return specifier + "";
205
+ };
206
+ return format;
207
+ }
208
+ function formatPrefix(specifier, value) {
209
+ var e = Math.max(-8, Math.min(8, Math.floor(exponent_default(value) / 3))) * 3, k = Math.pow(10, -e), f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier), { suffix: prefixes[8 + e / 3] });
210
+ return function(value) {
211
+ return f(k * value);
212
+ };
213
+ }
214
+ return {
215
+ format: newFormat,
216
+ formatPrefix
217
+ };
218
+ }
219
+ //#endregion
220
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js
221
+ var locale;
222
+ var format;
223
+ var formatPrefix;
224
+ defaultLocale({
225
+ thousands: ",",
226
+ grouping: [3],
227
+ currency: ["$", ""]
228
+ });
229
+ function defaultLocale(definition) {
230
+ locale = locale_default(definition);
231
+ format = locale.format;
232
+ formatPrefix = locale.formatPrefix;
233
+ return locale;
234
+ }
235
+ //#endregion
236
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionFixed.js
237
+ function precisionFixed_default(step) {
238
+ return Math.max(0, -exponent_default(Math.abs(step)));
239
+ }
240
+ //#endregion
241
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionPrefix.js
242
+ function precisionPrefix_default(step, value) {
243
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent_default(value) / 3))) * 3 - exponent_default(Math.abs(step)));
244
+ }
245
+ //#endregion
246
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionRound.js
247
+ function precisionRound_default(step, max) {
248
+ step = Math.abs(step), max = Math.abs(max) - step;
249
+ return Math.max(0, exponent_default(max) - exponent_default(step)) + 1;
250
+ }
251
+ //#endregion
252
+ export { formatPrefix as a, format as i, precisionPrefix_default as n, formatSpecifier as o, precisionFixed_default as r, precisionRound_default as t };
@@ -0,0 +1,163 @@
1
+ import { n as rgb, t as color } from "./d3-color.mjs";
2
+ //#endregion
3
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.js
4
+ var constant_default = (x) => () => x;
5
+ //#endregion
6
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.js
7
+ function linear(a, d) {
8
+ return function(t) {
9
+ return a + t * d;
10
+ };
11
+ }
12
+ function exponential(a, b, y) {
13
+ return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {
14
+ return Math.pow(a + t * b, y);
15
+ };
16
+ }
17
+ function gamma(y) {
18
+ return (y = +y) === 1 ? nogamma : function(a, b) {
19
+ return b - a ? exponential(a, b, y) : constant_default(isNaN(a) ? b : a);
20
+ };
21
+ }
22
+ function nogamma(a, b) {
23
+ var d = b - a;
24
+ return d ? linear(a, d) : constant_default(isNaN(a) ? b : a);
25
+ }
26
+ //#endregion
27
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js
28
+ var rgb_default = (function rgbGamma(y) {
29
+ var color = gamma(y);
30
+ function rgb$1(start, end) {
31
+ var r = color((start = rgb(start)).r, (end = rgb(end)).r), g = color(start.g, end.g), b = color(start.b, end.b), opacity = nogamma(start.opacity, end.opacity);
32
+ return function(t) {
33
+ start.r = r(t);
34
+ start.g = g(t);
35
+ start.b = b(t);
36
+ start.opacity = opacity(t);
37
+ return start + "";
38
+ };
39
+ }
40
+ rgb$1.gamma = rgbGamma;
41
+ return rgb$1;
42
+ })(1);
43
+ //#endregion
44
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.js
45
+ function numberArray_default(a, b) {
46
+ if (!b) b = [];
47
+ var n = a ? Math.min(b.length, a.length) : 0, c = b.slice(), i;
48
+ return function(t) {
49
+ for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;
50
+ return c;
51
+ };
52
+ }
53
+ function isNumberArray(x) {
54
+ return ArrayBuffer.isView(x) && !(x instanceof DataView);
55
+ }
56
+ //#endregion
57
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.js
58
+ function genericArray(a, b) {
59
+ var nb = b ? b.length : 0, na = a ? Math.min(nb, a.length) : 0, x = new Array(na), c = new Array(nb), i;
60
+ for (i = 0; i < na; ++i) x[i] = value_default(a[i], b[i]);
61
+ for (; i < nb; ++i) c[i] = b[i];
62
+ return function(t) {
63
+ for (i = 0; i < na; ++i) c[i] = x[i](t);
64
+ return c;
65
+ };
66
+ }
67
+ //#endregion
68
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/date.js
69
+ function date_default(a, b) {
70
+ var d = /* @__PURE__ */ new Date();
71
+ return a = +a, b = +b, function(t) {
72
+ return d.setTime(a * (1 - t) + b * t), d;
73
+ };
74
+ }
75
+ //#endregion
76
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.js
77
+ function number_default(a, b) {
78
+ return a = +a, b = +b, function(t) {
79
+ return a * (1 - t) + b * t;
80
+ };
81
+ }
82
+ //#endregion
83
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/object.js
84
+ function object_default(a, b) {
85
+ var i = {}, c = {}, k;
86
+ if (a === null || typeof a !== "object") a = {};
87
+ if (b === null || typeof b !== "object") b = {};
88
+ for (k in b) if (k in a) i[k] = value_default(a[k], b[k]);
89
+ else c[k] = b[k];
90
+ return function(t) {
91
+ for (k in i) c[k] = i[k](t);
92
+ return c;
93
+ };
94
+ }
95
+ //#endregion
96
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js
97
+ var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g");
98
+ function zero(b) {
99
+ return function() {
100
+ return b;
101
+ };
102
+ }
103
+ function one(b) {
104
+ return function(t) {
105
+ return b(t) + "";
106
+ };
107
+ }
108
+ function string_default(a, b) {
109
+ var bi = reA.lastIndex = reB.lastIndex = 0, am, bm, bs, i = -1, s = [], q = [];
110
+ a = a + "", b = b + "";
111
+ while ((am = reA.exec(a)) && (bm = reB.exec(b))) {
112
+ if ((bs = bm.index) > bi) {
113
+ bs = b.slice(bi, bs);
114
+ if (s[i]) s[i] += bs;
115
+ else s[++i] = bs;
116
+ }
117
+ if ((am = am[0]) === (bm = bm[0])) if (s[i]) s[i] += bm;
118
+ else s[++i] = bm;
119
+ else {
120
+ s[++i] = null;
121
+ q.push({
122
+ i,
123
+ x: number_default(am, bm)
124
+ });
125
+ }
126
+ bi = reB.lastIndex;
127
+ }
128
+ if (bi < b.length) {
129
+ bs = b.slice(bi);
130
+ if (s[i]) s[i] += bs;
131
+ else s[++i] = bs;
132
+ }
133
+ return s.length < 2 ? q[0] ? one(q[0].x) : zero(b) : (b = q.length, function(t) {
134
+ for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);
135
+ return s.join("");
136
+ });
137
+ }
138
+ //#endregion
139
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.js
140
+ function value_default(a, b) {
141
+ var t = typeof b, c;
142
+ return b == null || t === "boolean" ? constant_default(b) : (t === "number" ? number_default : t === "string" ? (c = color(b)) ? (b = c, rgb_default) : string_default : b instanceof color ? rgb_default : b instanceof Date ? date_default : isNumberArray(b) ? numberArray_default : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object_default : number_default)(a, b);
143
+ }
144
+ //#endregion
145
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/round.js
146
+ function round_default(a, b) {
147
+ return a = +a, b = +b, function(t) {
148
+ return Math.round(a * (1 - t) + b * t);
149
+ };
150
+ }
151
+ //#endregion
152
+ //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/piecewise.js
153
+ function piecewise(interpolate, values) {
154
+ if (values === void 0) values = interpolate, interpolate = value_default;
155
+ var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);
156
+ while (i < n) I[i] = interpolate(v, v = values[++i]);
157
+ return function(t) {
158
+ var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));
159
+ return I[i](t - i);
160
+ };
161
+ }
162
+ //#endregion
163
+ export { number_default as i, round_default as n, value_default as r, piecewise as t };
@@ -0,0 +1,77 @@
1
+ //#region ../../node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.js
2
+ var pi = Math.PI, tau = 2 * pi, epsilon = 1e-6, tauEpsilon = tau - epsilon;
3
+ function append(strings) {
4
+ this._ += strings[0];
5
+ for (let i = 1, n = strings.length; i < n; ++i) this._ += arguments[i] + strings[i];
6
+ }
7
+ function appendRound(digits) {
8
+ let d = Math.floor(digits);
9
+ if (!(d >= 0)) throw new Error(`invalid digits: ${digits}`);
10
+ if (d > 15) return append;
11
+ const k = 10 ** d;
12
+ return function(strings) {
13
+ this._ += strings[0];
14
+ for (let i = 1, n = strings.length; i < n; ++i) this._ += Math.round(arguments[i] * k) / k + strings[i];
15
+ };
16
+ }
17
+ var Path = class {
18
+ constructor(digits) {
19
+ this._x0 = this._y0 = this._x1 = this._y1 = null;
20
+ this._ = "";
21
+ this._append = digits == null ? append : appendRound(digits);
22
+ }
23
+ moveTo(x, y) {
24
+ this._append`M${this._x0 = this._x1 = +x},${this._y0 = this._y1 = +y}`;
25
+ }
26
+ closePath() {
27
+ if (this._x1 !== null) {
28
+ this._x1 = this._x0, this._y1 = this._y0;
29
+ this._append`Z`;
30
+ }
31
+ }
32
+ lineTo(x, y) {
33
+ this._append`L${this._x1 = +x},${this._y1 = +y}`;
34
+ }
35
+ quadraticCurveTo(x1, y1, x, y) {
36
+ this._append`Q${+x1},${+y1},${this._x1 = +x},${this._y1 = +y}`;
37
+ }
38
+ bezierCurveTo(x1, y1, x2, y2, x, y) {
39
+ this._append`C${+x1},${+y1},${+x2},${+y2},${this._x1 = +x},${this._y1 = +y}`;
40
+ }
41
+ arcTo(x1, y1, x2, y2, r) {
42
+ x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;
43
+ if (r < 0) throw new Error(`negative radius: ${r}`);
44
+ let x0 = this._x1, y0 = this._y1, x21 = x2 - x1, y21 = y2 - y1, x01 = x0 - x1, y01 = y0 - y1, l01_2 = x01 * x01 + y01 * y01;
45
+ if (this._x1 === null) this._append`M${this._x1 = x1},${this._y1 = y1}`;
46
+ else if (!(l01_2 > epsilon));
47
+ else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) this._append`L${this._x1 = x1},${this._y1 = y1}`;
48
+ else {
49
+ let x20 = x2 - x0, y20 = y2 - y0, l21_2 = x21 * x21 + y21 * y21, l20_2 = x20 * x20 + y20 * y20, l21 = Math.sqrt(l21_2), l01 = Math.sqrt(l01_2), l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2), t01 = l / l01, t21 = l / l21;
50
+ if (Math.abs(t01 - 1) > epsilon) this._append`L${x1 + t01 * x01},${y1 + t01 * y01}`;
51
+ this._append`A${r},${r},0,0,${+(y01 * x20 > x01 * y20)},${this._x1 = x1 + t21 * x21},${this._y1 = y1 + t21 * y21}`;
52
+ }
53
+ }
54
+ arc(x, y, r, a0, a1, ccw) {
55
+ x = +x, y = +y, r = +r, ccw = !!ccw;
56
+ if (r < 0) throw new Error(`negative radius: ${r}`);
57
+ let dx = r * Math.cos(a0), dy = r * Math.sin(a0), x0 = x + dx, y0 = y + dy, cw = 1 ^ ccw, da = ccw ? a0 - a1 : a1 - a0;
58
+ if (this._x1 === null) this._append`M${x0},${y0}`;
59
+ else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) this._append`L${x0},${y0}`;
60
+ if (!r) return;
61
+ if (da < 0) da = da % tau + tau;
62
+ if (da > tauEpsilon) this._append`A${r},${r},0,1,${cw},${x - dx},${y - dy}A${r},${r},0,1,${cw},${this._x1 = x0},${this._y1 = y0}`;
63
+ else if (da > epsilon) this._append`A${r},${r},0,${+(da >= pi)},${cw},${this._x1 = x + r * Math.cos(a1)},${this._y1 = y + r * Math.sin(a1)}`;
64
+ }
65
+ rect(x, y, w, h) {
66
+ this._append`M${this._x0 = this._x1 = +x},${this._y0 = this._y1 = +y}h${w = +w}v${+h}h${-w}Z`;
67
+ }
68
+ toString() {
69
+ return this._;
70
+ }
71
+ };
72
+ function path() {
73
+ return new Path();
74
+ }
75
+ path.prototype = Path.prototype;
76
+ //#endregion
77
+ export { Path as t };