@powerlines/plugin-env 0.16.66 → 0.16.68

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 (142) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +0 -2
  2. package/dist/_virtual/_rolldown/runtime.mjs +2 -31
  3. package/dist/babel/plugin.cjs +83 -11
  4. package/dist/babel/plugin.mjs +83 -11
  5. package/dist/babel/plugin.mjs.map +1 -1
  6. package/dist/components/env-builtin.cjs +1 -1
  7. package/dist/components/env-builtin.mjs +1 -1
  8. package/dist/helpers/automd-generator.cjs +14 -4
  9. package/dist/helpers/automd-generator.d.mts +1 -1
  10. package/dist/helpers/automd-generator.mjs +14 -4
  11. package/dist/helpers/automd-generator.mjs.map +1 -1
  12. package/dist/helpers/create-reflection-resource.cjs +8 -0
  13. package/dist/helpers/create-reflection-resource.mjs +9 -0
  14. package/dist/helpers/create-reflection-resource.mjs.map +1 -1
  15. package/dist/helpers/docs-helper.cjs +8 -0
  16. package/dist/helpers/docs-helper.mjs +8 -0
  17. package/dist/helpers/docs-helper.mjs.map +1 -1
  18. package/dist/helpers/index.cjs +1 -0
  19. package/dist/helpers/index.mjs +2 -2
  20. package/dist/helpers/load.cjs +61 -10
  21. package/dist/helpers/load.mjs +60 -9
  22. package/dist/helpers/load.mjs.map +1 -1
  23. package/dist/helpers/persistence.cjs +108 -1
  24. package/dist/helpers/persistence.mjs +108 -1
  25. package/dist/helpers/persistence.mjs.map +1 -1
  26. package/dist/helpers/reflect.cjs +156 -3
  27. package/dist/helpers/reflect.mjs +156 -4
  28. package/dist/helpers/reflect.mjs.map +1 -1
  29. package/dist/helpers/source-file-env.cjs +34 -4
  30. package/dist/helpers/source-file-env.mjs +34 -4
  31. package/dist/helpers/source-file-env.mjs.map +1 -1
  32. package/dist/helpers/template-helpers.cjs +33 -5
  33. package/dist/helpers/template-helpers.mjs +33 -5
  34. package/dist/helpers/template-helpers.mjs.map +1 -1
  35. package/dist/types/index.cjs +11 -0
  36. package/dist/types/index.mjs +4 -1
  37. package/dist/types/plugin.cjs +137 -0
  38. package/dist/types/plugin.d.mts +4 -4
  39. package/dist/types/plugin.mjs +132 -1
  40. package/dist/types/plugin.mjs.map +1 -0
  41. package/dist/types/runtime.cjs +244 -0
  42. package/dist/types/runtime.mjs +242 -1
  43. package/dist/types/runtime.mjs.map +1 -0
  44. package/package.json +11 -26
  45. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.cjs +0 -346
  46. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs +0 -347
  47. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs.map +0 -1
  48. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.cjs +0 -23
  49. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs +0 -23
  50. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs.map +0 -1
  51. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.cjs +0 -10
  52. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs +0 -11
  53. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs.map +0 -1
  54. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.cjs +0 -1060
  55. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs +0 -1060
  56. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs.map +0 -1
  57. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.cjs +0 -761
  58. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs +0 -761
  59. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs.map +0 -1
  60. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.cjs +0 -388
  61. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs +0 -388
  62. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs.map +0 -1
  63. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.cjs +0 -639
  64. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs +0 -639
  65. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs.map +0 -1
  66. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.cjs +0 -17
  67. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs +0 -15
  68. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs.map +0 -1
  69. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.cjs +0 -13
  70. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs +0 -14
  71. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs.map +0 -1
  72. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.cjs +0 -11
  73. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs +0 -12
  74. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs.map +0 -1
  75. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.cjs +0 -11
  76. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.mjs +0 -12
  77. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.mjs.map +0 -1
  78. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.cjs +0 -11
  79. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs +0 -12
  80. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs.map +0 -1
  81. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +0 -46
  82. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +0 -46
  83. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs.map +0 -1
  84. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.cjs +0 -285
  85. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs +0 -283
  86. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs.map +0 -1
  87. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.cjs +0 -71
  88. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs +0 -69
  89. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs.map +0 -1
  90. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +0 -1013
  91. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +0 -1008
  92. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs.map +0 -1
  93. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +0 -23
  94. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +0 -10
  95. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs.map +0 -1
  96. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +0 -2695
  97. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +0 -2682
  98. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs.map +0 -1
  99. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +0 -4457
  100. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +0 -4455
  101. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs.map +0 -1
  102. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +0 -29
  103. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +0 -30
  104. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs.map +0 -1
  105. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +0 -181
  106. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +0 -177
  107. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs.map +0 -1
  108. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +0 -22
  109. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +0 -18
  110. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs.map +0 -1
  111. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +0 -3967
  112. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +0 -3963
  113. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs.map +0 -1
  114. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +0 -11766
  115. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +0 -11762
  116. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs.map +0 -1
  117. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +0 -25
  118. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +0 -21
  119. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs.map +0 -1
  120. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +0 -20
  121. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +0 -18
  122. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs.map +0 -1
  123. package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.cjs +0 -178
  124. package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs +0 -176
  125. package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs.map +0 -1
  126. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +0 -13
  127. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +0 -13
  128. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs.map +0 -1
  129. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +0 -3
  130. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +0 -3
  131. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +0 -145
  132. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +0 -139
  133. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs.map +0 -1
  134. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +0 -128
  135. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +0 -127
  136. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs.map +0 -1
  137. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +0 -138
  138. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +0 -137
  139. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs.map +0 -1
  140. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +0 -629
  141. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +0 -628
  142. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs.map +0 -1
@@ -1,639 +0,0 @@
1
- //#region ../../node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs
2
- /*!
3
- * Copyright (c) Squirrel Chat et al., All rights reserved.
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- *
6
- * Redistribution and use in source and binary forms, with or without
7
- * modification, are permitted provided that the following conditions are met:
8
- *
9
- * 1. Redistributions of source code must retain the above copyright notice, this
10
- * list of conditions and the following disclaimer.
11
- * 2. Redistributions in binary form must reproduce the above copyright notice,
12
- * this list of conditions and the following disclaimer in the
13
- * documentation and/or other materials provided with the distribution.
14
- * 3. Neither the name of the copyright holder nor the names of its contributors
15
- * may be used to endorse or promote products derived from this software without
16
- * specific prior written permission.
17
- *
18
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
- */
29
- function e(e, t) {
30
- let n = e.slice(0, t).split(/\r\n|\n|\r/g);
31
- return [n.length, n.pop().length + 1];
32
- }
33
- function t(e, t, n) {
34
- let r = e.split(/\r\n|\n|\r/g), i = ``, a = (Math.log10(t + 1) | 0) + 1;
35
- for (let e = t - 1; e <= t + 1; e++) {
36
- let o = r[e - 1];
37
- o && (i += e.toString().padEnd(a, ` `), i += `: `, i += o, i += `
38
- `, e === t && (i += ` `.repeat(a + n + 2), i += `^
39
- `));
40
- }
41
- return i;
42
- }
43
- var n = class extends Error {
44
- line;
45
- column;
46
- codeblock;
47
- constructor(n, r) {
48
- let [i, a] = e(r.toml, r.ptr), o = t(r.toml, i, a);
49
- super(`Invalid TOML document: ${n}\n\n${o}`, r), this.line = i, this.column = a, this.codeblock = o;
50
- }
51
- };
52
- /*!
53
- * Copyright (c) Squirrel Chat et al., All rights reserved.
54
- * SPDX-License-Identifier: BSD-3-Clause
55
- *
56
- * Redistribution and use in source and binary forms, with or without
57
- * modification, are permitted provided that the following conditions are met:
58
- *
59
- * 1. Redistributions of source code must retain the above copyright notice, this
60
- * list of conditions and the following disclaimer.
61
- * 2. Redistributions in binary form must reproduce the above copyright notice,
62
- * this list of conditions and the following disclaimer in the
63
- * documentation and/or other materials provided with the distribution.
64
- * 3. Neither the name of the copyright holder nor the names of its contributors
65
- * may be used to endorse or promote products derived from this software without
66
- * specific prior written permission.
67
- *
68
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
69
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
70
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
71
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
72
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
73
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
74
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
75
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
76
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
77
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
78
- */
79
- function r(e, t) {
80
- let n = 0;
81
- for (; e[t - ++n] === `\\`;);
82
- return --n && n % 2;
83
- }
84
- function i(e, t = 0, n = e.length) {
85
- let r = e.indexOf(`
86
- `, t);
87
- return e[r - 1] === `\r` && r--, r <= n ? r : -1;
88
- }
89
- function a(e, t) {
90
- for (let r = t; r < e.length; r++) {
91
- let i = e[r];
92
- if (i === `
93
- `) return r;
94
- if (i === `\r` && e[r + 1] === `
95
- `) return r + 1;
96
- if (i < ` ` && i !== ` ` || i === ``) throw new n(`control characters are not allowed in comments`, {
97
- toml: e,
98
- ptr: t
99
- });
100
- }
101
- return e.length;
102
- }
103
- function o(e, t, n, r) {
104
- let i;
105
- for (; (i = e[t]) === ` ` || i === ` ` || !n && (i === `
106
- ` || i === `\r` && e[t + 1] === `
107
- `);) t++;
108
- return r || i !== `#` ? t : o(e, a(e, t), n);
109
- }
110
- function s(e, t, r, a, o = !1) {
111
- if (!a) return t = i(e, t), t < 0 ? e.length : t;
112
- for (let n = t; n < e.length; n++) {
113
- let t = e[n];
114
- if (t === `#`) n = i(e, n);
115
- else if (t === r) return n + 1;
116
- else if (t === a || o && (t === `
117
- ` || t === `\r` && e[n + 1] === `
118
- `)) return n;
119
- }
120
- throw new n(`cannot find end of structure`, {
121
- toml: e,
122
- ptr: t
123
- });
124
- }
125
- function c(e, t) {
126
- let n = e[t], i = n === e[t + 1] && e[t + 1] === e[t + 2] ? e.slice(t, t + 3) : n;
127
- t += i.length - 1;
128
- do
129
- t = e.indexOf(i, ++t);
130
- while (t > -1 && n !== `'` && r(e, t));
131
- return t > -1 && (t += i.length, i.length > 1 && (e[t] === n && t++, e[t] === n && t++)), t;
132
- }
133
- /*!
134
- * Copyright (c) Squirrel Chat et al., All rights reserved.
135
- * SPDX-License-Identifier: BSD-3-Clause
136
- *
137
- * Redistribution and use in source and binary forms, with or without
138
- * modification, are permitted provided that the following conditions are met:
139
- *
140
- * 1. Redistributions of source code must retain the above copyright notice, this
141
- * list of conditions and the following disclaimer.
142
- * 2. Redistributions in binary form must reproduce the above copyright notice,
143
- * this list of conditions and the following disclaimer in the
144
- * documentation and/or other materials provided with the distribution.
145
- * 3. Neither the name of the copyright holder nor the names of its contributors
146
- * may be used to endorse or promote products derived from this software without
147
- * specific prior written permission.
148
- *
149
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
150
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
151
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
152
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
153
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
154
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
155
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
156
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
157
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
158
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
159
- */
160
- let l = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;
161
- var u = class e extends Date {
162
- #e = !1;
163
- #t = !1;
164
- #n = null;
165
- constructor(e) {
166
- let t = !0, n = !0, r = `Z`;
167
- if (typeof e == `string`) {
168
- let i = e.match(l);
169
- i ? (i[1] || (t = !1, e = `0000-01-01T${e}`), n = !!i[2], n && e[10] === ` ` && (e = e.replace(` `, `T`)), i[2] && +i[2] > 23 ? e = `` : (r = i[3] || null, e = e.toUpperCase(), !r && n && (e += `Z`))) : e = ``;
170
- }
171
- super(e), isNaN(this.getTime()) || (this.#e = t, this.#t = n, this.#n = r);
172
- }
173
- isDateTime() {
174
- return this.#e && this.#t;
175
- }
176
- isLocal() {
177
- return !this.#e || !this.#t || !this.#n;
178
- }
179
- isDate() {
180
- return this.#e && !this.#t;
181
- }
182
- isTime() {
183
- return this.#t && !this.#e;
184
- }
185
- isValid() {
186
- return this.#e || this.#t;
187
- }
188
- toISOString() {
189
- let e = super.toISOString();
190
- if (this.isDate()) return e.slice(0, 10);
191
- if (this.isTime()) return e.slice(11, 23);
192
- if (this.#n === null) return e.slice(0, -1);
193
- if (this.#n === `Z`) return e;
194
- let t = this.#n.slice(1, 3) * 60 + +this.#n.slice(4, 6);
195
- return t = this.#n[0] === `-` ? t : -t, (/* @__PURE__ */ new Date(this.getTime() - t * 6e4)).toISOString().slice(0, -1) + this.#n;
196
- }
197
- static wrapAsOffsetDateTime(t, n = `Z`) {
198
- let r = new e(t);
199
- return r.#n = n, r;
200
- }
201
- static wrapAsLocalDateTime(t) {
202
- let n = new e(t);
203
- return n.#n = null, n;
204
- }
205
- static wrapAsLocalDate(t) {
206
- let n = new e(t);
207
- return n.#t = !1, n.#n = null, n;
208
- }
209
- static wrapAsLocalTime(t) {
210
- let n = new e(t);
211
- return n.#e = !1, n.#n = null, n;
212
- }
213
- };
214
- /*!
215
- * Copyright (c) Squirrel Chat et al., All rights reserved.
216
- * SPDX-License-Identifier: BSD-3-Clause
217
- *
218
- * Redistribution and use in source and binary forms, with or without
219
- * modification, are permitted provided that the following conditions are met:
220
- *
221
- * 1. Redistributions of source code must retain the above copyright notice, this
222
- * list of conditions and the following disclaimer.
223
- * 2. Redistributions in binary form must reproduce the above copyright notice,
224
- * this list of conditions and the following disclaimer in the
225
- * documentation and/or other materials provided with the distribution.
226
- * 3. Neither the name of the copyright holder nor the names of its contributors
227
- * may be used to endorse or promote products derived from this software without
228
- * specific prior written permission.
229
- *
230
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
231
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
232
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
233
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
234
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
235
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
236
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
237
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
238
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
239
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
240
- */
241
- let d = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/, f = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/, p = /^[+-]?0[0-9_]/, m = /^[0-9a-f]{2,8}$/i, h = {
242
- b: `\b`,
243
- t: ` `,
244
- n: `
245
- `,
246
- f: `\f`,
247
- r: `\r`,
248
- e: `\x1B`,
249
- "\"": `"`,
250
- "\\": `\\`
251
- };
252
- function g(e, t = 0, r = e.length) {
253
- let i = e[t] === `'`, a = e[t++] === e[t] && e[t] === e[t + 1];
254
- a && (r -= 2, e[t += 2] === `\r` && t++, e[t] === `
255
- ` && t++);
256
- let s = 0, c, l = ``, u = t;
257
- for (; t < r - 1;) {
258
- let r = e[t++];
259
- if (r === `
260
- ` || r === `\r` && e[t] === `
261
- `) {
262
- if (!a) throw new n(`newlines are not allowed in strings`, {
263
- toml: e,
264
- ptr: t - 1
265
- });
266
- } else if (r < ` ` && r !== ` ` || r === ``) throw new n(`control characters are not allowed in strings`, {
267
- toml: e,
268
- ptr: t - 1
269
- });
270
- if (c) {
271
- if (c = !1, r === `x` || r === `u` || r === `U`) {
272
- let i = e.slice(t, t += r === `x` ? 2 : r === `u` ? 4 : 8);
273
- if (!m.test(i)) throw new n(`invalid unicode escape`, {
274
- toml: e,
275
- ptr: s
276
- });
277
- try {
278
- l += String.fromCodePoint(parseInt(i, 16));
279
- } catch {
280
- throw new n(`invalid unicode escape`, {
281
- toml: e,
282
- ptr: s
283
- });
284
- }
285
- } else if (a && (r === `
286
- ` || r === ` ` || r === ` ` || r === `\r`)) {
287
- if (t = o(e, t - 1, !0), e[t] !== `
288
- ` && e[t] !== `\r`) throw new n(`invalid escape: only line-ending whitespace may be escaped`, {
289
- toml: e,
290
- ptr: s
291
- });
292
- t = o(e, t);
293
- } else if (r in h) l += h[r];
294
- else throw new n(`unrecognized escape sequence`, {
295
- toml: e,
296
- ptr: s
297
- });
298
- u = t;
299
- } else !i && r === `\\` && (s = t - 1, c = !0, l += e.slice(u, s));
300
- }
301
- return l + e.slice(u, r - 1);
302
- }
303
- function _(e, t, r, i) {
304
- if (e === `true`) return !0;
305
- if (e === `false`) return !1;
306
- if (e === `-inf`) return -Infinity;
307
- if (e === `inf` || e === `+inf`) return Infinity;
308
- if (e === `nan` || e === `+nan` || e === `-nan`) return NaN;
309
- if (e === `-0`) return i ? 0n : 0;
310
- let a = d.test(e);
311
- if (a || f.test(e)) {
312
- if (p.test(e)) throw new n(`leading zeroes are not allowed`, {
313
- toml: t,
314
- ptr: r
315
- });
316
- e = e.replace(/_/g, ``);
317
- let o = +e;
318
- if (isNaN(o)) throw new n(`invalid number`, {
319
- toml: t,
320
- ptr: r
321
- });
322
- if (a) {
323
- if ((a = !Number.isSafeInteger(o)) && !i) throw new n(`integer value cannot be represented losslessly`, {
324
- toml: t,
325
- ptr: r
326
- });
327
- (a || i === !0) && (o = BigInt(e));
328
- }
329
- return o;
330
- }
331
- let o = new u(e);
332
- if (!o.isValid()) throw new n(`invalid value`, {
333
- toml: t,
334
- ptr: r
335
- });
336
- return o;
337
- }
338
- /*!
339
- * Copyright (c) Squirrel Chat et al., All rights reserved.
340
- * SPDX-License-Identifier: BSD-3-Clause
341
- *
342
- * Redistribution and use in source and binary forms, with or without
343
- * modification, are permitted provided that the following conditions are met:
344
- *
345
- * 1. Redistributions of source code must retain the above copyright notice, this
346
- * list of conditions and the following disclaimer.
347
- * 2. Redistributions in binary form must reproduce the above copyright notice,
348
- * this list of conditions and the following disclaimer in the
349
- * documentation and/or other materials provided with the distribution.
350
- * 3. Neither the name of the copyright holder nor the names of its contributors
351
- * may be used to endorse or promote products derived from this software without
352
- * specific prior written permission.
353
- *
354
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
355
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
356
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
357
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
358
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
359
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
360
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
361
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
362
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
363
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
364
- */
365
- function v(e, t, n) {
366
- let r = e.slice(t, n), i = r.indexOf(`#`);
367
- return i > -1 && (a(e, i), r = r.slice(0, i)), [r.trimEnd(), i];
368
- }
369
- function y(e, t, r, i, a) {
370
- if (i === 0) throw new n(`document contains excessively nested structures. aborting.`, {
371
- toml: e,
372
- ptr: t
373
- });
374
- let l = e[t];
375
- if (l === `[` || l === `{`) {
376
- let [s, c] = l === `[` ? C(e, t, i, a) : S(e, t, i, a);
377
- if (r) {
378
- if (c = o(e, c), e[c] === `,`) c++;
379
- else if (e[c] !== r) throw new n(`expected comma or end of structure`, {
380
- toml: e,
381
- ptr: c
382
- });
383
- }
384
- return [s, c];
385
- }
386
- let u;
387
- if (l === `"` || l === `'`) {
388
- u = c(e, t);
389
- let i = g(e, t, u);
390
- if (r) {
391
- if (u = o(e, u), e[u] && e[u] !== `,` && e[u] !== r && e[u] !== `
392
- ` && e[u] !== `\r`) throw new n(`unexpected character encountered`, {
393
- toml: e,
394
- ptr: u
395
- });
396
- u += +(e[u] === `,`);
397
- }
398
- return [i, u];
399
- }
400
- u = s(e, t, `,`, r);
401
- let d = v(e, t, u - +(e[u - 1] === `,`));
402
- if (!d[0]) throw new n(`incomplete key-value declaration: no value specified`, {
403
- toml: e,
404
- ptr: t
405
- });
406
- return r && d[1] > -1 && (u = o(e, t + d[1]), u += +(e[u] === `,`)), [_(d[0], e, t, a), u];
407
- }
408
- /*!
409
- * Copyright (c) Squirrel Chat et al., All rights reserved.
410
- * SPDX-License-Identifier: BSD-3-Clause
411
- *
412
- * Redistribution and use in source and binary forms, with or without
413
- * modification, are permitted provided that the following conditions are met:
414
- *
415
- * 1. Redistributions of source code must retain the above copyright notice, this
416
- * list of conditions and the following disclaimer.
417
- * 2. Redistributions in binary form must reproduce the above copyright notice,
418
- * this list of conditions and the following disclaimer in the
419
- * documentation and/or other materials provided with the distribution.
420
- * 3. Neither the name of the copyright holder nor the names of its contributors
421
- * may be used to endorse or promote products derived from this software without
422
- * specific prior written permission.
423
- *
424
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
425
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
426
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
427
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
428
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
429
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
430
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
431
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
432
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
433
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
434
- */
435
- let b = /^[a-zA-Z0-9-_]+[ \t]*$/;
436
- function x(e, t, r = `=`) {
437
- let a = t - 1, s = [], l = e.indexOf(r, t);
438
- if (l < 0) throw new n(`incomplete key-value: cannot find end of key`, {
439
- toml: e,
440
- ptr: t
441
- });
442
- do {
443
- let o = e[t = ++a];
444
- if (o !== ` ` && o !== ` `) if (o === `"` || o === `'`) {
445
- if (o === e[t + 1] && o === e[t + 2]) throw new n(`multiline strings are not allowed in keys`, {
446
- toml: e,
447
- ptr: t
448
- });
449
- let u = c(e, t);
450
- if (u < 0) throw new n(`unfinished string encountered`, {
451
- toml: e,
452
- ptr: t
453
- });
454
- a = e.indexOf(`.`, u);
455
- let d = e.slice(u, a < 0 || a > l ? l : a), f = i(d);
456
- if (f > -1) throw new n(`newlines are not allowed in keys`, {
457
- toml: e,
458
- ptr: t + a + f
459
- });
460
- if (d.trimStart()) throw new n(`found extra tokens after the string part`, {
461
- toml: e,
462
- ptr: u
463
- });
464
- if (l < u && (l = e.indexOf(r, u), l < 0)) throw new n(`incomplete key-value: cannot find end of key`, {
465
- toml: e,
466
- ptr: t
467
- });
468
- s.push(g(e, t, u));
469
- } else {
470
- a = e.indexOf(`.`, t);
471
- let r = e.slice(t, a < 0 || a > l ? l : a);
472
- if (!b.test(r)) throw new n(`only letter, numbers, dashes and underscores are allowed in keys`, {
473
- toml: e,
474
- ptr: t
475
- });
476
- s.push(r.trimEnd());
477
- }
478
- } while (a + 1 && a < l);
479
- return [s, o(e, l + 1, !0, !0)];
480
- }
481
- function S(e, t, r, i) {
482
- let o = {}, s = /* @__PURE__ */ new Set(), c;
483
- for (t++; (c = e[t++]) !== `}` && c;) if (c === `,`) throw new n(`expected value, found comma`, {
484
- toml: e,
485
- ptr: t - 1
486
- });
487
- else if (c === `#`) t = a(e, t);
488
- else if (c !== ` ` && c !== ` ` && c !== `
489
- ` && c !== `\r`) {
490
- let a, c = o, l = !1, [u, d] = x(e, t - 1);
491
- for (let r = 0; r < u.length; r++) {
492
- if (r && (c = l ? c[a] : c[a] = {}), a = u[r], (l = Object.hasOwn(c, a)) && (typeof c[a] != `object` || s.has(c[a]))) throw new n(`trying to redefine an already defined value`, {
493
- toml: e,
494
- ptr: t
495
- });
496
- !l && a === `__proto__` && Object.defineProperty(c, a, {
497
- enumerable: !0,
498
- configurable: !0,
499
- writable: !0
500
- });
501
- }
502
- if (l) throw new n(`trying to redefine an already defined value`, {
503
- toml: e,
504
- ptr: t
505
- });
506
- let [f, p] = y(e, d, `}`, r - 1, i);
507
- s.add(f), c[a] = f, t = p;
508
- }
509
- if (!c) throw new n(`unfinished table encountered`, {
510
- toml: e,
511
- ptr: t
512
- });
513
- return [o, t];
514
- }
515
- function C(e, t, r, i) {
516
- let o = [], s;
517
- for (t++; (s = e[t++]) !== `]` && s;) if (s === `,`) throw new n(`expected value, found comma`, {
518
- toml: e,
519
- ptr: t - 1
520
- });
521
- else if (s === `#`) t = a(e, t);
522
- else if (s !== ` ` && s !== ` ` && s !== `
523
- ` && s !== `\r`) {
524
- let n = y(e, t - 1, `]`, r - 1, i);
525
- o.push(n[0]), t = n[1];
526
- }
527
- if (!s) throw new n(`unfinished array encountered`, {
528
- toml: e,
529
- ptr: t
530
- });
531
- return [o, t];
532
- }
533
- /*!
534
- * Copyright (c) Squirrel Chat et al., All rights reserved.
535
- * SPDX-License-Identifier: BSD-3-Clause
536
- *
537
- * Redistribution and use in source and binary forms, with or without
538
- * modification, are permitted provided that the following conditions are met:
539
- *
540
- * 1. Redistributions of source code must retain the above copyright notice, this
541
- * list of conditions and the following disclaimer.
542
- * 2. Redistributions in binary form must reproduce the above copyright notice,
543
- * this list of conditions and the following disclaimer in the
544
- * documentation and/or other materials provided with the distribution.
545
- * 3. Neither the name of the copyright holder nor the names of its contributors
546
- * may be used to endorse or promote products derived from this software without
547
- * specific prior written permission.
548
- *
549
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
550
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
551
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
552
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
553
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
554
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
555
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
556
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
557
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
558
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
559
- */
560
- function w(e, t, n, r) {
561
- let i = t, a = n, o, s = !1, c;
562
- for (let t = 0; t < e.length; t++) {
563
- if (t) {
564
- if (i = s ? i[o] : i[o] = {}, a = (c = a[o]).c, r === 0 && (c.t === 1 || c.t === 2)) return null;
565
- if (c.t === 2) {
566
- let e = i.length - 1;
567
- i = i[e], a = a[e].c;
568
- }
569
- }
570
- if (o = e[t], (s = Object.hasOwn(i, o)) && a[o]?.t === 0 && a[o]?.d) return null;
571
- s || (o === `__proto__` && (Object.defineProperty(i, o, {
572
- enumerable: !0,
573
- configurable: !0,
574
- writable: !0
575
- }), Object.defineProperty(a, o, {
576
- enumerable: !0,
577
- configurable: !0,
578
- writable: !0
579
- })), a[o] = {
580
- t: t < e.length - 1 && r === 2 ? 3 : r,
581
- d: !1,
582
- i: 0,
583
- c: {}
584
- });
585
- }
586
- if (c = a[o], c.t !== r && !(r === 1 && c.t === 3) || (r === 2 && (c.d || (c.d = !0, i[o] = []), i[o].push(i = {}), c.c[c.i++] = c = {
587
- t: 1,
588
- d: !1,
589
- i: 0,
590
- c: {}
591
- }), c.d)) return null;
592
- if (c.d = !0, r === 1) i = s ? i[o] : i[o] = {};
593
- else if (r === 0 && s) return null;
594
- return [
595
- o,
596
- i,
597
- c.c
598
- ];
599
- }
600
- function T(e, { maxDepth: t = 1e3, integersAsBigInt: r } = {}) {
601
- let i = {}, a = {}, s = i, c = a;
602
- for (let l = o(e, 0); l < e.length;) {
603
- if (e[l] === `[`) {
604
- let t = e[++l] === `[`, r = x(e, l += +t, `]`);
605
- if (t) {
606
- if (e[r[1] - 1] !== `]`) throw new n(`expected end of table declaration`, {
607
- toml: e,
608
- ptr: r[1] - 1
609
- });
610
- r[1]++;
611
- }
612
- let o = w(r[0], i, a, t ? 2 : 1);
613
- if (!o) throw new n(`trying to redefine an already defined table or value`, {
614
- toml: e,
615
- ptr: l
616
- });
617
- c = o[2], s = o[1], l = r[1];
618
- } else {
619
- let i = x(e, l), a = w(i[0], s, c, 0);
620
- if (!a) throw new n(`trying to redefine an already defined table or value`, {
621
- toml: e,
622
- ptr: l
623
- });
624
- let o = y(e, i[1], void 0, t, r);
625
- a[1][a[0]] = o[0], l = o[1];
626
- }
627
- if (l = o(e, l, !0), e[l] && e[l] !== `
628
- ` && e[l] !== `\r`) throw new n(`each key-value declaration must be followed by an end-of-line`, {
629
- toml: e,
630
- ptr: l
631
- });
632
- l = o(e, l);
633
- }
634
- return i;
635
- }
636
-
637
- //#endregion
638
- export { T };
639
- //# sourceMappingURL=smol-toml.mjs.map