@powerlines/plugin-env 0.15.13 → 0.15.14

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