@visulima/packem 1.19.0 → 1.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +116 -107
  3. package/dist/builder/typedoc/index.cjs +3 -3
  4. package/dist/builder/typedoc/index.mjs +3 -3
  5. package/dist/cli/commands/build.d.mts +1 -4
  6. package/dist/cli/index.mjs +106 -103
  7. package/dist/config/index.d.cts +2 -8
  8. package/dist/config/index.d.mts +2 -8
  9. package/dist/config/index.d.ts +2 -8
  10. package/dist/config/preset/utils/infer-entries.d.mts +4 -5
  11. package/dist/config/utils/load-packem-config.d.mts +1 -1
  12. package/dist/constants.d.cts +5 -19
  13. package/dist/constants.d.mts +5 -19
  14. package/dist/constants.d.ts +5 -19
  15. package/dist/index.cjs +84 -81
  16. package/dist/index.d.cts +4 -10
  17. package/dist/index.d.mts +4 -10
  18. package/dist/index.d.ts +4 -10
  19. package/dist/index.mjs +85 -82
  20. package/dist/packem/build.d.cts +2 -5
  21. package/dist/packem/build.d.mts +2 -5
  22. package/dist/packem/build.d.ts +2 -5
  23. package/dist/packem/index.d.cts +5 -8
  24. package/dist/packem/index.d.mts +5 -8
  25. package/dist/packem/index.d.ts +5 -8
  26. package/dist/packem/utils/group-by-keys.d.cts +1 -1
  27. package/dist/packem/utils/group-by-keys.d.mts +1 -1
  28. package/dist/packem/utils/group-by-keys.d.ts +1 -1
  29. package/dist/packem_shared/Mime-BEcV1ESr.mjs +3 -0
  30. package/dist/packem_shared/Mime-UGY_zUAS.cjs +1 -0
  31. package/dist/packem_shared/{constants-CR0qfKZx.cjs → constants-DIrGIX0w.cjs} +1 -1
  32. package/dist/packem_shared/{constants-CwJdgxph.mjs → constants-Eq2rMfX-.mjs} +1 -1
  33. package/dist/packem_shared/{create-or-update-key-storage-Bm-Xu0uJ.mjs → create-or-update-key-storage-BATQud1F.mjs} +1 -1
  34. package/dist/packem_shared/create-or-update-key-storage-DKcZnYd5.cjs +3 -0
  35. package/dist/packem_shared/{url-I6Jx3crl.mjs → url-BJXna-1T.mjs} +1 -1
  36. package/dist/packem_shared/{url-DFE8cAA0.cjs → url-C84CQz1g.cjs} +1 -1
  37. package/dist/rollup/plugins/chunk-splitter/parse/types.d.cts +12 -12
  38. package/dist/rollup/plugins/chunk-splitter/parse/types.d.mts +12 -12
  39. package/dist/rollup/plugins/chunk-splitter/parse/types.d.ts +12 -12
  40. package/dist/rollup/plugins/cjs-interop.d.cts +2 -2
  41. package/dist/rollup/plugins/cjs-interop.d.mts +2 -2
  42. package/dist/rollup/plugins/cjs-interop.d.ts +2 -2
  43. package/dist/rollup/plugins/copy.d.cts +6 -8
  44. package/dist/rollup/plugins/copy.d.mts +6 -8
  45. package/dist/rollup/plugins/copy.d.ts +6 -8
  46. package/dist/rollup/plugins/css/loaders/less/index.cjs +1 -1
  47. package/dist/rollup/plugins/css/loaders/less/index.mjs +1 -1
  48. package/dist/rollup/plugins/css/loaders/less/types.d.cts +1 -1
  49. package/dist/rollup/plugins/css/loaders/less/types.d.mts +1 -1
  50. package/dist/rollup/plugins/css/loaders/less/types.d.ts +1 -1
  51. package/dist/rollup/plugins/css/loaders/lightningcss.cjs +2 -2
  52. package/dist/rollup/plugins/css/loaders/lightningcss.mjs +2 -2
  53. package/dist/rollup/plugins/css/loaders/postcss/import/apply-styles.d.cts +1 -1
  54. package/dist/rollup/plugins/css/loaders/postcss/import/apply-styles.d.mts +1 -1
  55. package/dist/rollup/plugins/css/loaders/postcss/import/apply-styles.d.ts +1 -1
  56. package/dist/rollup/plugins/css/loaders/postcss/import/import-resolve.d.cts +1 -1
  57. package/dist/rollup/plugins/css/loaders/postcss/import/import-resolve.d.mts +1 -1
  58. package/dist/rollup/plugins/css/loaders/postcss/import/import-resolve.d.ts +1 -1
  59. package/dist/rollup/plugins/css/loaders/postcss/import/index.d.cts +2 -2
  60. package/dist/rollup/plugins/css/loaders/postcss/import/index.d.mts +2 -2
  61. package/dist/rollup/plugins/css/loaders/postcss/import/index.d.ts +2 -2
  62. package/dist/rollup/plugins/css/loaders/postcss/import/parser/parse-styles.d.cts +2 -2
  63. package/dist/rollup/plugins/css/loaders/postcss/import/parser/parse-styles.d.mts +2 -2
  64. package/dist/rollup/plugins/css/loaders/postcss/import/parser/parse-styles.d.ts +2 -2
  65. package/dist/rollup/plugins/css/loaders/postcss/import/parser/parse-stylesheet.d.cts +1 -1
  66. package/dist/rollup/plugins/css/loaders/postcss/import/parser/parse-stylesheet.d.mts +1 -1
  67. package/dist/rollup/plugins/css/loaders/postcss/import/parser/parse-stylesheet.d.ts +1 -1
  68. package/dist/rollup/plugins/css/loaders/postcss/import/types.d.cts +33 -36
  69. package/dist/rollup/plugins/css/loaders/postcss/import/types.d.mts +33 -36
  70. package/dist/rollup/plugins/css/loaders/postcss/import/types.d.ts +33 -36
  71. package/dist/rollup/plugins/css/loaders/postcss/index.cjs +3 -3
  72. package/dist/rollup/plugins/css/loaders/postcss/index.mjs +3 -3
  73. package/dist/rollup/plugins/css/loaders/postcss/modules/index.d.cts +1 -1
  74. package/dist/rollup/plugins/css/loaders/postcss/modules/index.d.mts +1 -1
  75. package/dist/rollup/plugins/css/loaders/postcss/modules/index.d.ts +1 -1
  76. package/dist/rollup/plugins/css/loaders/postcss/url/index.d.cts +1 -1
  77. package/dist/rollup/plugins/css/loaders/postcss/url/index.d.mts +1 -1
  78. package/dist/rollup/plugins/css/loaders/postcss/url/index.d.ts +1 -1
  79. package/dist/rollup/plugins/css/loaders/sass/index.cjs +6 -6
  80. package/dist/rollup/plugins/css/loaders/sass/index.mjs +7 -7
  81. package/dist/rollup/plugins/css/loaders/sass/types.d.cts +4 -4
  82. package/dist/rollup/plugins/css/loaders/sass/types.d.mts +4 -4
  83. package/dist/rollup/plugins/css/loaders/sass/types.d.ts +4 -4
  84. package/dist/rollup/plugins/css/loaders/sass/utils/get-compile-function.d.cts +3 -3
  85. package/dist/rollup/plugins/css/loaders/sass/utils/get-compile-function.d.mts +3 -3
  86. package/dist/rollup/plugins/css/loaders/sass/utils/get-compile-function.d.ts +3 -3
  87. package/dist/rollup/plugins/css/loaders/sass/utils/get-sass-implementation.d.cts +2 -2
  88. package/dist/rollup/plugins/css/loaders/sass/utils/get-sass-implementation.d.mts +2 -2
  89. package/dist/rollup/plugins/css/loaders/sass/utils/get-sass-implementation.d.ts +2 -2
  90. package/dist/rollup/plugins/css/loaders/sass/utils/resolve-syntax.d.cts +1 -1
  91. package/dist/rollup/plugins/css/loaders/sass/utils/resolve-syntax.d.mts +1 -1
  92. package/dist/rollup/plugins/css/loaders/sass/utils/resolve-syntax.d.ts +1 -1
  93. package/dist/rollup/plugins/css/loaders/sass/utils/sass-error-factory.d.cts +4 -4
  94. package/dist/rollup/plugins/css/loaders/sass/utils/sass-error-factory.d.mts +4 -4
  95. package/dist/rollup/plugins/css/loaders/sass/utils/sass-error-factory.d.ts +4 -4
  96. package/dist/rollup/plugins/css/loaders/types.d.cts +15 -15
  97. package/dist/rollup/plugins/css/loaders/types.d.mts +15 -15
  98. package/dist/rollup/plugins/css/loaders/types.d.ts +15 -15
  99. package/dist/rollup/plugins/css/minifiers/lightningcss.cjs +2 -2
  100. package/dist/rollup/plugins/css/minifiers/lightningcss.mjs +2 -2
  101. package/dist/rollup/plugins/css/minifiers/types.d.cts +4 -4
  102. package/dist/rollup/plugins/css/minifiers/types.d.mts +4 -4
  103. package/dist/rollup/plugins/css/minifiers/types.d.ts +4 -4
  104. package/dist/rollup/plugins/css/runtime/inject-css.cjs +1 -1
  105. package/dist/rollup/plugins/css/runtime/inject-css.d.cts +1 -1
  106. package/dist/rollup/plugins/css/runtime/inject-css.d.mts +1 -1
  107. package/dist/rollup/plugins/css/runtime/inject-css.d.ts +1 -1
  108. package/dist/rollup/plugins/css/runtime/inject-css.mjs +1 -1
  109. package/dist/rollup/plugins/css/types.d.cts +75 -75
  110. package/dist/rollup/plugins/css/types.d.mts +75 -75
  111. package/dist/rollup/plugins/css/types.d.ts +75 -75
  112. package/dist/rollup/plugins/css/utils/load-module.d.cts +2 -2
  113. package/dist/rollup/plugins/css/utils/load-module.d.mts +2 -2
  114. package/dist/rollup/plugins/css/utils/load-module.d.ts +2 -2
  115. package/dist/rollup/plugins/css/utils/url.d.cts +2 -3
  116. package/dist/rollup/plugins/css/utils/url.d.mts +2 -3
  117. package/dist/rollup/plugins/css/utils/url.d.ts +2 -3
  118. package/dist/rollup/plugins/esbuild/get-render-chunk.d.cts +2 -2
  119. package/dist/rollup/plugins/esbuild/get-render-chunk.d.mts +2 -2
  120. package/dist/rollup/plugins/esbuild/get-render-chunk.d.ts +2 -2
  121. package/dist/rollup/plugins/esbuild/index.cjs +1 -1
  122. package/dist/rollup/plugins/esbuild/index.mjs +2 -2
  123. package/dist/rollup/plugins/esbuild/types.d.cts +18 -18
  124. package/dist/rollup/plugins/esbuild/types.d.mts +18 -18
  125. package/dist/rollup/plugins/esbuild/types.d.ts +18 -18
  126. package/dist/rollup/plugins/jsx-remove-attributes.d.cts +2 -2
  127. package/dist/rollup/plugins/jsx-remove-attributes.d.mts +2 -2
  128. package/dist/rollup/plugins/jsx-remove-attributes.d.ts +2 -2
  129. package/dist/rollup/plugins/oxc/oxc-resolve.d.cts +2 -2
  130. package/dist/rollup/plugins/oxc/oxc-resolve.d.mts +2 -2
  131. package/dist/rollup/plugins/oxc/oxc-resolve.d.ts +2 -2
  132. package/dist/rollup/plugins/oxc/oxc-transformer.cjs +1 -1
  133. package/dist/rollup/plugins/oxc/oxc-transformer.mjs +1 -1
  134. package/dist/rollup/plugins/oxc/types.d.cts +5 -5
  135. package/dist/rollup/plugins/oxc/types.d.mts +5 -5
  136. package/dist/rollup/plugins/oxc/types.d.ts +5 -5
  137. package/dist/rollup/plugins/plugin-cache.d.cts +4 -5
  138. package/dist/rollup/plugins/plugin-cache.d.mts +4 -5
  139. package/dist/rollup/plugins/plugin-cache.d.ts +4 -5
  140. package/dist/rollup/plugins/resolve-externals-plugin.d.cts +3 -5
  141. package/dist/rollup/plugins/resolve-externals-plugin.d.mts +3 -5
  142. package/dist/rollup/plugins/resolve-externals-plugin.d.ts +3 -5
  143. package/dist/rollup/plugins/sucrase/index.cjs +1 -1
  144. package/dist/rollup/plugins/sucrase/index.mjs +1 -1
  145. package/dist/rollup/plugins/swc/swc-plugin.cjs +1 -1
  146. package/dist/rollup/plugins/swc/swc-plugin.mjs +1 -1
  147. package/dist/rollup/plugins/swc/types.d.cts +2 -2
  148. package/dist/rollup/plugins/swc/types.d.mts +2 -2
  149. package/dist/rollup/plugins/swc/types.d.ts +2 -2
  150. package/dist/rollup/plugins/typescript/resolve-tsconfig-root-dirs.d.cts +0 -1
  151. package/dist/rollup/plugins/typescript/resolve-tsconfig-root-dirs.d.mts +0 -1
  152. package/dist/rollup/plugins/typescript/resolve-tsconfig-root-dirs.d.ts +0 -1
  153. package/dist/rollup/plugins/typescript/resolve-typescript-mjs-cjs.d.cts +1 -1
  154. package/dist/rollup/plugins/typescript/resolve-typescript-mjs-cjs.d.mts +1 -1
  155. package/dist/rollup/plugins/typescript/resolve-typescript-mjs-cjs.d.ts +1 -1
  156. package/dist/rollup/plugins/typescript/utils/patch-cjs-default-export.d.cts +2 -2
  157. package/dist/rollup/plugins/typescript/utils/patch-cjs-default-export.d.mts +2 -2
  158. package/dist/rollup/plugins/typescript/utils/patch-cjs-default-export.d.ts +2 -2
  159. package/dist/rollup/plugins/url.d.cts +4 -13
  160. package/dist/rollup/plugins/url.d.mts +4 -13
  161. package/dist/rollup/plugins/url.d.ts +4 -13
  162. package/dist/rollup/utils/chunks/create-split-chunks.d.cts +1 -1
  163. package/dist/rollup/utils/chunks/create-split-chunks.d.mts +1 -1
  164. package/dist/rollup/utils/chunks/create-split-chunks.d.ts +1 -1
  165. package/dist/rollup/utils/get-hash.d.cts +1 -1
  166. package/dist/rollup/utils/get-hash.d.mts +1 -1
  167. package/dist/rollup/utils/get-hash.d.ts +1 -1
  168. package/dist/rollup/utils/svg-encoder.d.cts +4 -0
  169. package/dist/rollup/utils/svg-encoder.d.mts +2 -0
  170. package/dist/rollup/utils/svg-encoder.d.ts +4 -0
  171. package/dist/types.d.cts +213 -215
  172. package/dist/types.d.mts +213 -215
  173. package/dist/types.d.ts +213 -215
  174. package/dist/utils/extract-export-filenames.d.cts +2 -2
  175. package/dist/utils/extract-export-filenames.d.mts +2 -2
  176. package/dist/utils/extract-export-filenames.d.ts +2 -2
  177. package/dist/utils/file-cache.d.cts +2 -1
  178. package/dist/utils/file-cache.d.mts +2 -1
  179. package/dist/utils/file-cache.d.ts +2 -1
  180. package/dist/utils/get-package-side-effect.d.cts +1 -1
  181. package/dist/utils/get-package-side-effect.d.mts +1 -1
  182. package/dist/utils/get-package-side-effect.d.ts +1 -1
  183. package/dist/utils/kill-process.d.cts +4 -5
  184. package/dist/utils/kill-process.d.mts +4 -5
  185. package/dist/utils/kill-process.d.ts +4 -5
  186. package/dist/utils/replace-content-within-marker.d.cts +2 -2
  187. package/dist/utils/replace-content-within-marker.d.mts +2 -2
  188. package/dist/utils/replace-content-within-marker.d.ts +2 -2
  189. package/files.d.ts +40 -0
  190. package/package.json +28 -28
  191. package/dist/packem_shared/Mime-DDqfACcK.cjs +0 -1
  192. package/dist/packem_shared/Mime-DfuxWtpt.mjs +0 -3
  193. package/dist/packem_shared/create-or-update-key-storage-mzqiq3Nk.cjs +0 -3
  194. /package/dist/utils/{levenstein.d.cts → find-alternatives.d.cts} +0 -0
  195. /package/dist/utils/{levenstein.d.mts → find-alternatives.d.mts} +0 -0
  196. /package/dist/utils/{levenstein.d.ts → find-alternatives.d.ts} +0 -0
  197. /package/dist/utils/{memoize.d.cts → memoize-by-key.d.cts} +0 -0
  198. /package/dist/utils/{memoize.d.mts → memoize-by-key.d.mts} +0 -0
  199. /package/dist/utils/{memoize.d.ts → memoize-by-key.d.ts} +0 -0
@@ -3,11 +3,9 @@ import type FileCache from "../utils/file-cache.d.cts";
3
3
  /**
4
4
  * Main build function that orchestrates the entire build process.
5
5
  * Handles both JavaScript/TypeScript compilation and type definition generation.
6
- *
7
- * @param context - Build context containing configuration and state
8
- * @param fileCache - Cache instance for file operations
6
+ * @param context Build context containing configuration and state
7
+ * @param fileCache Cache instance for file operations
9
8
  * @returns Promise resolving to a boolean indicating build success
10
- *
11
9
  * @example
12
10
  * ```typescript
13
11
  * const success = await build(buildContext, new FileCache());
@@ -15,7 +13,6 @@ import type FileCache from "../utils/file-cache.d.cts";
15
13
  * console.log('Build completed successfully');
16
14
  * }
17
15
  * ```
18
- *
19
16
  * @throws {Error} If the build process encounters critical errors
20
17
  * @public
21
18
  */
@@ -3,11 +3,9 @@ import type FileCache from "../utils/file-cache.d.mts";
3
3
  /**
4
4
  * Main build function that orchestrates the entire build process.
5
5
  * Handles both JavaScript/TypeScript compilation and type definition generation.
6
- *
7
- * @param context - Build context containing configuration and state
8
- * @param fileCache - Cache instance for file operations
6
+ * @param context Build context containing configuration and state
7
+ * @param fileCache Cache instance for file operations
9
8
  * @returns Promise resolving to a boolean indicating build success
10
- *
11
9
  * @example
12
10
  * ```typescript
13
11
  * const success = await build(buildContext, new FileCache());
@@ -15,7 +13,6 @@ import type FileCache from "../utils/file-cache.d.mts";
15
13
  * console.log('Build completed successfully');
16
14
  * }
17
15
  * ```
18
- *
19
16
  * @throws {Error} If the build process encounters critical errors
20
17
  * @public
21
18
  */
@@ -3,11 +3,9 @@ import type FileCache from "../utils/file-cache.d.ts";
3
3
  /**
4
4
  * Main build function that orchestrates the entire build process.
5
5
  * Handles both JavaScript/TypeScript compilation and type definition generation.
6
- *
7
- * @param context - Build context containing configuration and state
8
- * @param fileCache - Cache instance for file operations
6
+ * @param context Build context containing configuration and state
7
+ * @param fileCache Cache instance for file operations
9
8
  * @returns Promise resolving to a boolean indicating build success
10
- *
11
9
  * @example
12
10
  * ```typescript
13
11
  * const success = await build(buildContext, new FileCache());
@@ -15,7 +13,6 @@ import type FileCache from "../utils/file-cache.d.ts";
15
13
  * console.log('Build completed successfully');
16
14
  * }
17
15
  * ```
18
- *
19
16
  * @throws {Error} If the build process encounters critical errors
20
17
  * @public
21
18
  */
@@ -4,13 +4,11 @@ import type { BuildConfig, Environment, Mode } from '../types.d.cts';
4
4
  * Main entry point for the Packem bundler.
5
5
  * Handles the complete build process including configuration loading, validation,
6
6
  * and execution of the build/watch process.
7
- *
8
- * @param rootDirectory - Root directory of the project
9
- * @param mode - Build mode (build/watch)
10
- * @param environment - Build environment (development/production)
11
- * @param logger - Logger instance for output
12
- * @param inputConfig - User provided build configuration and options
13
- *
7
+ * @param rootDirectory Root directory of the project
8
+ * @param mode Build mode (build/watch)
9
+ * @param environment Build environment (development/production)
10
+ * @param logger Logger instance for output
11
+ * @param inputConfig User provided build configuration and options
14
12
  * @example
15
13
  * ```typescript
16
14
  * import packem from 'packem';
@@ -20,7 +18,6 @@ import type { BuildConfig, Environment, Mode } from '../types.d.cts';
20
18
  * configPath: './packem.config.js'
21
19
  * });
22
20
  * ```
23
- *
24
21
  * @throws {Error} If configuration validation fails or build process encounters errors
25
22
  * @public
26
23
  */
@@ -4,13 +4,11 @@ import type { BuildConfig, Environment, Mode } from '../types.d.mts';
4
4
  * Main entry point for the Packem bundler.
5
5
  * Handles the complete build process including configuration loading, validation,
6
6
  * and execution of the build/watch process.
7
- *
8
- * @param rootDirectory - Root directory of the project
9
- * @param mode - Build mode (build/watch)
10
- * @param environment - Build environment (development/production)
11
- * @param logger - Logger instance for output
12
- * @param inputConfig - User provided build configuration and options
13
- *
7
+ * @param rootDirectory Root directory of the project
8
+ * @param mode Build mode (build/watch)
9
+ * @param environment Build environment (development/production)
10
+ * @param logger Logger instance for output
11
+ * @param inputConfig User provided build configuration and options
14
12
  * @example
15
13
  * ```typescript
16
14
  * import packem from 'packem';
@@ -20,7 +18,6 @@ import type { BuildConfig, Environment, Mode } from '../types.d.mts';
20
18
  * configPath: './packem.config.js'
21
19
  * });
22
20
  * ```
23
- *
24
21
  * @throws {Error} If configuration validation fails or build process encounters errors
25
22
  * @public
26
23
  */
@@ -4,13 +4,11 @@ import type { BuildConfig, Environment, Mode } from '../types.d.ts';
4
4
  * Main entry point for the Packem bundler.
5
5
  * Handles the complete build process including configuration loading, validation,
6
6
  * and execution of the build/watch process.
7
- *
8
- * @param rootDirectory - Root directory of the project
9
- * @param mode - Build mode (build/watch)
10
- * @param environment - Build environment (development/production)
11
- * @param logger - Logger instance for output
12
- * @param inputConfig - User provided build configuration and options
13
- *
7
+ * @param rootDirectory Root directory of the project
8
+ * @param mode Build mode (build/watch)
9
+ * @param environment Build environment (development/production)
10
+ * @param logger Logger instance for output
11
+ * @param inputConfig User provided build configuration and options
14
12
  * @example
15
13
  * ```typescript
16
14
  * import packem from 'packem';
@@ -20,7 +18,6 @@ import type { BuildConfig, Environment, Mode } from '../types.d.ts';
20
18
  * configPath: './packem.config.js'
21
19
  * });
22
20
  * ```
23
- *
24
21
  * @throws {Error} If configuration validation fails or build process encounters errors
25
22
  * @public
26
23
  */
@@ -1,4 +1,4 @@
1
- type Key = string | number | symbol;
1
+ type Key = number | string | symbol;
2
2
  declare const groupByKeys: <T extends Record<Key, unknown>>(array: T[], key1: Key, key2: Key) => Record<string, Record<string, T[]>>;
3
3
 
4
4
 
@@ -1,3 +1,3 @@
1
- type Key = string | number | symbol;
1
+ type Key = number | string | symbol;
2
2
  declare const groupByKeys: <T extends Record<Key, unknown>>(array: T[], key1: Key, key2: Key) => Record<string, Record<string, T[]>>;
3
3
  export default groupByKeys;
@@ -1,4 +1,4 @@
1
- type Key = string | number | symbol;
1
+ type Key = number | string | symbol;
2
2
  declare const groupByKeys: <T extends Record<Key, unknown>>(array: T[], key1: Key, key2: Key) => Record<string, Record<string, T[]>>;
3
3
 
4
4
 
@@ -0,0 +1,3 @@
1
+ var b=Object.defineProperty;var s=(a,i)=>b(a,"name",{value:i,configurable:!0});import{createHash as w}from"node:crypto";import{r as j,p as y}from"./resolve-C7N_MxXM.mjs";import{interopDefault as k,loadModule as z}from"mlly";import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
2
+ const require = __cjs_mod__.createRequire(import.meta.url);
3
+ var q=Object.defineProperty,O=s((a,i)=>q(a,"name",{value:i,configurable:!0}),"t");const I=O(a=>w("sha256").update(a).digest("hex"),"getHash");var M=Object.defineProperty,$=s((a,i)=>M(a,"name",{value:i,configurable:!0}),"o");const n={},S=[".js",".mjs",".cjs",".json"],E=$(async(a,i)=>{if(n[a])return n[a];if(n[a]===null)return;const p={baseDirs:[i],caller:"Module loader",extensions:S,symlinks:!1};try{n[a]=require(j([a,`./${a}`],p))}catch(o){if(o.code==="ERR_REQUIRE_ESM")try{n[a]=k(await z(j([a,`./${a}`],p)))}catch{}else{n[a]=null;return}}const t=n[a];return t?.default??t},"loadModule");var C=Object.defineProperty,r=s((a,i)=>C(a,"name",{value:i,configurable:!0}),"r$1");const v=["inject","extract","emit"],P=y(v),U=r(a=>{const i=Array.isArray(a)?a:[a];if(i[0]&&!v.includes(i[0]))throw new Error(`Incorrect mode provided, allowed modes are ${P}`);return{emit:i[0]==="emit",extract:i[0]==="extract"&&(i[1]??!0),inject:(!i[0]||i[0]==="inject")&&(i[1]??!0)}},"inferModeOption"),A=r((a,i)=>typeof a=="boolean"?a&&{}:typeof a=="object"?a:i,"inferOption"),B=r(a=>{const i=Array.isArray(a)?a:[a];return i[0]?{content:!0,...i[1],inline:i[0]==="inline"}:!1},"inferSourceMapOption"),Q=r((a,i)=>{const p=A(a,{});return i&&typeof p=="object"&&!p.alias&&(p.alias=i),p},"inferHandlerOption"),g=r(async(a,i,p)=>{if(typeof a!="string")return a;const t=await E(a,p);if(!t)throw new Error(`Unable to load PostCSS ${i} \`${a}\``);return t},"ensurePCSSOption"),F=r(async(a,i)=>{if(a===void 0)return[];if(a.length===0)return[];const p=[];for await(const t of a.filter(Boolean)){if(!Array.isArray(t)){p.push(await g(t,"plugin",i));continue}const[o,d]=t;d?p.push((await g(o,"plugin",i))(d)):p.push(await g(o,"plugin",i))}return p},"ensurePCSSPlugins"),L={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(L);var R=Object.defineProperty,H=s((a,i)=>R(a,"name",{value:i,configurable:!0}),"g"),l=s(function(a,i,p,t){if(typeof i=="function"?a!==i||!0:!i.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return p==="m"?t:p==="a"?t.call(a):t?t.value:i.get(a)},"n"),c,x,m;class G{static{s(this,"p")}static{H(this,"Mime")}constructor(...i){c.set(this,new Map),x.set(this,new Map),m.set(this,new Map);for(const p of i)this.define(p)}define(i,p=!1){for(let[t,o]of Object.entries(i)){t=t.toLowerCase(),o=o.map(e=>e.toLowerCase()),l(this,m,"f").has(t)||l(this,m,"f").set(t,new Set);const d=l(this,m,"f").get(t);let u=!0;for(let e of o){const h=e.startsWith("*");if(e=h?e.slice(1):e,d?.add(e),u&&l(this,x,"f").set(t,e),u=!1,h)continue;const f=l(this,c,"f").get(e);if(f&&f!=t&&!p)throw new Error(`"${t} -> ${e}" conflicts with "${f} -> ${e}". Pass \`force=true\` to override this definition.`);l(this,c,"f").set(e,t)}}return this}getType(i){if(typeof i!="string")return null;const p=i.replace(/^.*[/\\]/s,"").toLowerCase(),t=p.replace(/^.*\./s,"").toLowerCase(),o=p.length<i.length;return!(t.length<p.length-1)&&o?null:l(this,c,"f").get(t)??null}getExtension(i){return typeof i!="string"?null:(i=i?.split?.(";")[0],(i&&l(this,x,"f").get(i.trim().toLowerCase()))??null)}getAllExtensions(i){return typeof i!="string"?null:l(this,m,"f").get(i.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const i of l(this,m,"f").values())Object.freeze(i);return this}_getTestState(){return{types:l(this,c,"f"),extensions:l(this,x,"f")}}}c=new WeakMap,x=new WeakMap,m=new WeakMap;export{U as a,Q as b,A as c,F as d,g as e,I as f,L as g,B as i,G as p};
@@ -0,0 +1 @@
1
+ "use strict";var k=Object.defineProperty;var n=(a,i)=>k(a,"name",{value:i,configurable:!0});const q=require("node:crypto"),u=require("./resolve-DSG4Zlek.cjs"),v=require("mlly");var z=Object.defineProperty,O=n((a,i)=>z(a,"name",{value:i,configurable:!0}),"t");const M=O(a=>q.createHash("sha256").update(a).digest("hex"),"getHash");var S=Object.defineProperty,$=n((a,i)=>S(a,"name",{value:i,configurable:!0}),"o");const s={},E=[".js",".mjs",".cjs",".json"],C=$(async(a,i)=>{if(s[a])return s[a];if(s[a]===null)return;const p={baseDirs:[i],caller:"Module loader",extensions:E,symlinks:!1};try{s[a]=require(u.r([a,`./${a}`],p))}catch(o){if(o.code==="ERR_REQUIRE_ESM")try{s[a]=v.interopDefault(await v.loadModule(u.r([a,`./${a}`],p)))}catch{}else{s[a]=null;return}}const t=s[a];return t?.default??t},"loadModule");var P=Object.defineProperty,r=n((a,i)=>P(a,"name",{value:i,configurable:!0}),"r$1");const b=["inject","extract","emit"],A=u.p(b),L=r(a=>{const i=Array.isArray(a)?a:[a];if(i[0]&&!b.includes(i[0]))throw new Error(`Incorrect mode provided, allowed modes are ${A}`);return{emit:i[0]==="emit",extract:i[0]==="extract"&&(i[1]??!0),inject:(!i[0]||i[0]==="inject")&&(i[1]??!0)}},"inferModeOption"),w=r((a,i)=>typeof a=="boolean"?a&&{}:typeof a=="object"?a:i,"inferOption"),R=r(a=>{const i=Array.isArray(a)?a:[a];return i[0]?{content:!0,...i[1],inline:i[0]==="inline"}:!1},"inferSourceMapOption"),H=r((a,i)=>{const p=w(a,{});return i&&typeof p=="object"&&!p.alias&&(p.alias=i),p},"inferHandlerOption"),f=r(async(a,i,p)=>{if(typeof a!="string")return a;const t=await C(a,p);if(!t)throw new Error(`Unable to load PostCSS ${i} \`${a}\``);return t},"ensurePCSSOption"),W=r(async(a,i)=>{if(a===void 0)return[];if(a.length===0)return[];const p=[];for await(const t of a.filter(Boolean)){if(!Array.isArray(t)){p.push(await f(t,"plugin",i));continue}const[o,d]=t;d?p.push((await f(o,"plugin",i))(d)):p.push(await f(o,"plugin",i))}return p},"ensurePCSSPlugins"),y={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(y);var _=Object.defineProperty,D=n((a,i)=>_(a,"name",{value:i,configurable:!0}),"g"),l=n(function(a,i,p,t){if(typeof i=="function"?a!==i||!0:!i.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return p==="m"?t:p==="a"?t.call(a):t?t.value:i.get(a)},"n"),c,x,m;class T{static{n(this,"p")}static{D(this,"Mime")}constructor(...i){c.set(this,new Map),x.set(this,new Map),m.set(this,new Map);for(const p of i)this.define(p)}define(i,p=!1){for(let[t,o]of Object.entries(i)){t=t.toLowerCase(),o=o.map(e=>e.toLowerCase()),l(this,m,"f").has(t)||l(this,m,"f").set(t,new Set);const d=l(this,m,"f").get(t);let h=!0;for(let e of o){const j=e.startsWith("*");if(e=j?e.slice(1):e,d?.add(e),h&&l(this,x,"f").set(t,e),h=!1,j)continue;const g=l(this,c,"f").get(e);if(g&&g!=t&&!p)throw new Error(`"${t} -> ${e}" conflicts with "${g} -> ${e}". Pass \`force=true\` to override this definition.`);l(this,c,"f").set(e,t)}}return this}getType(i){if(typeof i!="string")return null;const p=i.replace(/^.*[/\\]/s,"").toLowerCase(),t=p.replace(/^.*\./s,"").toLowerCase(),o=p.length<i.length;return!(t.length<p.length-1)&&o?null:l(this,c,"f").get(t)??null}getExtension(i){return typeof i!="string"?null:(i=i?.split?.(";")[0],(i&&l(this,x,"f").get(i.trim().toLowerCase()))??null)}getAllExtensions(i){return typeof i!="string"?null:l(this,m,"f").get(i.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const i of l(this,m,"f").values())Object.freeze(i);return this}_getTestState(){return{types:l(this,c,"f"),extensions:l(this,x,"f")}}}c=new WeakMap,x=new WeakMap,m=new WeakMap;exports.a=L;exports.b=H;exports.c=w;exports.d=W;exports.e=f;exports.f=M;exports.g=y;exports.i=R;exports.p=T;
@@ -1 +1 @@
1
- "use strict";const t=[".mjs",".js",".json",".node",".cjs",".ts",".cts",".mts",".tsx",".ctsx",".mtsx",".jsx"],E={".aac":"file",".cjs":"js",".cts":"ts",".ctsx":"tsx",".eot":"file",".flac":"file",".js":"js",".jsx":"jsx",".mjs":"js",".mp3":"file",".mp4":"file",".mts":"ts",".mtsx":"tsx",".ogg":"file",".otf":"file",".ts":"ts",".tsx":"tsx",".ttf":"file",".wav":"file",".webm":"file",".woff":"file",".woff2":"file"},s="production",_="development",e=new Set(["react-server","react-native","edge-light"]),c=new Set([_,s,...e]),f=/node_modules/,N=/(?:\.d\.[mc]?tsx?|\.\w+)$/,i="packem_chunks",l="packem_shared",O=/\.(?:m|c)?(?:j|t)sx?$/;exports.A=O;exports.C=i;exports.D=t;exports.E=N;exports.P=s;exports.R=e;exports.S=l;exports.a=c;exports.b=f;exports.c=E;
1
+ "use strict";const t=[".mjs",".js",".json",".node",".cjs",".ts",".cts",".mts",".tsx",".ctsx",".mtsx",".jsx"],E={".aac":"file",".cjs":"js",".cts":"ts",".ctsx":"tsx",".eot":"file",".flac":"file",".js":"js",".jsx":"jsx",".mjs":"js",".mp3":"file",".mp4":"file",".mts":"ts",".mtsx":"tsx",".ogg":"file",".otf":"file",".ts":"ts",".tsx":"tsx",".ttf":"file",".wav":"file",".webm":"file",".woff":"file",".woff2":"file"},s="production",_="development",e=new Set(["edge-light","react-native","react-server"]),c=new Set([_,s,...e]),f=/node_modules/,N=/(?:\.d\.[mc]?tsx?|\.\w+)$/,i="packem_chunks",l="packem_shared",O=/\.(?:m|c)?(?:j|t)sx?$/;exports.A=O;exports.C=i;exports.D=t;exports.E=N;exports.P=s;exports.R=e;exports.S=l;exports.a=c;exports.b=f;exports.c=E;
@@ -1 +1 @@
1
- const E=[".mjs",".js",".json",".node",".cjs",".ts",".cts",".mts",".tsx",".ctsx",".mtsx",".jsx"],a={".aac":"file",".cjs":"js",".cts":"ts",".ctsx":"tsx",".eot":"file",".flac":"file",".js":"js",".jsx":"jsx",".mjs":"js",".mp3":"file",".mp4":"file",".mts":"ts",".mtsx":"tsx",".ogg":"file",".otf":"file",".ts":"ts",".tsx":"tsx",".ttf":"file",".wav":"file",".webm":"file",".woff":"file",".woff2":"file"},s="production",e="development",t=new Set(["react-server","react-native","edge-light"]),_=new Set([e,s,...t]),f=/node_modules/,N=/(?:\.d\.[mc]?tsx?|\.\w+)$/,c="packem_chunks",l="packem_shared",O=/\.(?:m|c)?(?:j|t)sx?$/;export{O as A,c as C,E as D,N as E,s as P,t as R,l as S,_ as a,f as b,a as c};
1
+ const E=[".mjs",".js",".json",".node",".cjs",".ts",".cts",".mts",".tsx",".ctsx",".mtsx",".jsx"],a={".aac":"file",".cjs":"js",".cts":"ts",".ctsx":"tsx",".eot":"file",".flac":"file",".js":"js",".jsx":"jsx",".mjs":"js",".mp3":"file",".mp4":"file",".mts":"ts",".mtsx":"tsx",".ogg":"file",".otf":"file",".ts":"ts",".tsx":"tsx",".ttf":"file",".wav":"file",".webm":"file",".woff":"file",".woff2":"file"},s="production",e="development",t=new Set(["edge-light","react-native","react-server"]),_=new Set([e,s,...t]),f=/node_modules/,N=/(?:\.d\.[mc]?tsx?|\.\w+)$/,c="packem_chunks",l="packem_shared",O=/\.(?:m|c)?(?:j|t)sx?$/;export{O as A,c as C,E as D,N as E,s as P,t as R,l as S,_ as a,f as b,a as c};
@@ -1,3 +1,3 @@
1
1
  var s=Object.defineProperty;var c=(e,r)=>s(e,"name",{value:r,configurable:!0});import{isAccessibleSync as i,readJsonSync as g,writeJsonSync as p}from"@visulima/fs";import{join as u}from"@visulima/path";var y=Object.defineProperty,f=c((e,r)=>y(e,"name",{value:r,configurable:!0}),"r");const b=f((e,r,n)=>{const o=new RegExp(`(<!-- ${r} -->)[\\s\\S]*?(<!-- /${r} -->)`,"g");if(o.test(e))return e.replace(o,`$1
2
2
  ${n}
3
- $2`)},"replaceContentWithin");var l=Object.defineProperty,m=c((e,r)=>l(e,"name",{value:r,configurable:!0}),"i");const $=m((e,r,n,o)=>{try{let t={};const a=u(r,"keystore.json");o&&i(a)&&(t=g(a)),t[e]===void 0&&(t[e]=new Date().toISOString()),p(a,t,{overwrite:!0})}catch(t){n.debug({context:[t],message:t.message,prefix:"cache-key-store"})}},"createOrUpdateKeyStorage");export{$ as d,b as g};
3
+ $2`)},"replaceContentWithinMarker");var l=Object.defineProperty,m=c((e,r)=>l(e,"name",{value:r,configurable:!0}),"i");const $=m((e,r,n,o)=>{try{let t={};const a=u(r,"keystore.json");o&&i(a)&&(t=g(a)),t[e]===void 0&&(t[e]=new Date().toISOString()),p(a,t,{overwrite:!0})}catch(t){n.debug({context:[t],message:t.message,prefix:"cache-key-store"})}},"createOrUpdateKeyStorage");export{$ as d,b as g};
@@ -0,0 +1,3 @@
1
+ "use strict";var i=Object.defineProperty;var s=(e,r)=>i(e,"name",{value:r,configurable:!0});const o=require("@visulima/fs"),u=require("@visulima/path");var g=Object.defineProperty,y=s((e,r)=>g(e,"name",{value:r,configurable:!0}),"r");const d=y((e,r,a)=>{const n=new RegExp(`(<!-- ${r} -->)[\\s\\S]*?(<!-- /${r} -->)`,"g");if(n.test(e))return e.replace(n,`$1
2
+ ${a}
3
+ $2`)},"replaceContentWithinMarker");var l=Object.defineProperty,p=s((e,r)=>l(e,"name",{value:r,configurable:!0}),"i");const v=p((e,r,a,n)=>{try{let t={};const c=u.join(r,"keystore.json");n&&o.isAccessibleSync(c)&&(t=o.readJsonSync(c)),t[e]===void 0&&(t[e]=new Date().toISOString()),o.writeJsonSync(c,t,{overwrite:!0})}catch(t){a.debug({context:[t],message:t.message,prefix:"cache-key-store"})}},"createOrUpdateKeyStorage");exports.d=v;exports.g=d;
@@ -1 +1 @@
1
- var s=Object.defineProperty;var o=(e,r)=>s(e,"name",{value:r,configurable:!0});import{parse as t,normalize as a,isAbsolute as n}from"@visulima/path";import{isRelative as f}from"@visulima/path/utils";var m=Object.defineProperty,i=o((e,r)=>m(e,"name",{value:r,configurable:!0}),"e");const c=i(e=>/^~[\d@A-Z]/i.test(e),"hasModuleSpecifier"),b=i(e=>{const{base:r,dir:l}=t(e);return l?`${a(l)}/_${r}`:`_${r}`},"getUrlOfPartial"),g=i(e=>c(e)?a(e.slice(1)):n(e)||f(e)?a(e):"./"+a(e),"normalizeUrl");export{b as g,c as h,g as n};
1
+ var s=Object.defineProperty;var o=(e,r)=>s(e,"name",{value:r,configurable:!0});import{parse as t,normalize as a,isAbsolute as n}from"@visulima/path";import{isRelative as f}from"@visulima/path/utils";var m=Object.defineProperty,i=o((e,r)=>m(e,"name",{value:r,configurable:!0}),"e");const c=i(e=>/^~[\d@A-Z]/i.test(e),"hasModuleSpecifier"),b=i(e=>{const{base:r,dir:l}=t(e);return l?`${a(l)}/_${r}`:`_${r}`},"getUrlOfPartial"),g=i(e=>c(e)?a(e.slice(1)):n(e)||f(e)?a(e):`./${a(e)}`,"normalizeUrl");export{b as g,c as h,g as n};
@@ -1 +1 @@
1
- "use strict";var n=Object.defineProperty;var s=(e,r)=>n(e,"name",{value:r,configurable:!0});const i=require("@visulima/path"),t=require("@visulima/path/utils");var u=Object.defineProperty,a=s((e,r)=>u(e,"name",{value:r,configurable:!0}),"e");const o=a(e=>/^~[\d@A-Z]/i.test(e),"hasModuleSpecifier"),c=a(e=>{const{base:r,dir:l}=i.parse(e);return l?`${i.normalize(l)}/_${r}`:`_${r}`},"getUrlOfPartial"),m=a(e=>o(e)?i.normalize(e.slice(1)):i.isAbsolute(e)||t.isRelative(e)?i.normalize(e):"./"+i.normalize(e),"normalizeUrl");exports.g=c;exports.h=o;exports.n=m;
1
+ "use strict";var n=Object.defineProperty;var s=(e,r)=>n(e,"name",{value:r,configurable:!0});const i=require("@visulima/path"),t=require("@visulima/path/utils");var u=Object.defineProperty,a=s((e,r)=>u(e,"name",{value:r,configurable:!0}),"e");const o=a(e=>/^~[\d@A-Z]/i.test(e),"hasModuleSpecifier"),c=a(e=>{const{base:r,dir:l}=i.parse(e);return l?`${i.normalize(l)}/_${r}`:`_${r}`},"getUrlOfPartial"),m=a(e=>o(e)?i.normalize(e.slice(1)):i.isAbsolute(e)||t.isRelative(e)?i.normalize(e):`./${i.normalize(e)}`,"normalizeUrl");exports.g=c;exports.h=o;exports.n=m;
@@ -1,10 +1,7 @@
1
- /**
2
- * Modified copy of https://github.com/cprecioso/rollup-plugin-chunk-per-export/blob/main/src/parse/types.ts
3
- */
4
- export interface NamedSelfExport {
5
- exportedName: string;
6
- from: "self";
7
- type: "named";
1
+ export interface BarrelReExport {
2
+ from: "other";
3
+ source: string;
4
+ type: "barrel";
8
5
  }
9
6
  export interface ExportBinding {
10
7
  exportedName: string;
@@ -16,9 +13,12 @@ export interface NamedReExport {
16
13
  source: string;
17
14
  type: "named";
18
15
  }
19
- export interface BarrelReExport {
20
- from: "other";
21
- source: string;
22
- type: "barrel";
16
+ /**
17
+ * Modified copy of https://github.com/cprecioso/rollup-plugin-chunk-per-export/blob/main/src/parse/types.ts
18
+ */
19
+ export interface NamedSelfExport {
20
+ exportedName: string;
21
+ from: "self";
22
+ type: "named";
23
23
  }
24
- export type ParsedExportInfo = NamedSelfExport | NamedReExport | BarrelReExport;
24
+ export type ParsedExportInfo = BarrelReExport | NamedReExport | NamedSelfExport;
@@ -1,10 +1,7 @@
1
- /**
2
- * Modified copy of https://github.com/cprecioso/rollup-plugin-chunk-per-export/blob/main/src/parse/types.ts
3
- */
4
- export interface NamedSelfExport {
5
- exportedName: string;
6
- from: "self";
7
- type: "named";
1
+ export interface BarrelReExport {
2
+ from: "other";
3
+ source: string;
4
+ type: "barrel";
8
5
  }
9
6
  export interface ExportBinding {
10
7
  exportedName: string;
@@ -16,9 +13,12 @@ export interface NamedReExport {
16
13
  source: string;
17
14
  type: "named";
18
15
  }
19
- export interface BarrelReExport {
20
- from: "other";
21
- source: string;
22
- type: "barrel";
16
+ /**
17
+ * Modified copy of https://github.com/cprecioso/rollup-plugin-chunk-per-export/blob/main/src/parse/types.ts
18
+ */
19
+ export interface NamedSelfExport {
20
+ exportedName: string;
21
+ from: "self";
22
+ type: "named";
23
23
  }
24
- export type ParsedExportInfo = NamedSelfExport | NamedReExport | BarrelReExport;
24
+ export type ParsedExportInfo = BarrelReExport | NamedReExport | NamedSelfExport;
@@ -1,10 +1,7 @@
1
- /**
2
- * Modified copy of https://github.com/cprecioso/rollup-plugin-chunk-per-export/blob/main/src/parse/types.ts
3
- */
4
- export interface NamedSelfExport {
5
- exportedName: string;
6
- from: "self";
7
- type: "named";
1
+ export interface BarrelReExport {
2
+ from: "other";
3
+ source: string;
4
+ type: "barrel";
8
5
  }
9
6
  export interface ExportBinding {
10
7
  exportedName: string;
@@ -16,9 +13,12 @@ export interface NamedReExport {
16
13
  source: string;
17
14
  type: "named";
18
15
  }
19
- export interface BarrelReExport {
20
- from: "other";
21
- source: string;
22
- type: "barrel";
16
+ /**
17
+ * Modified copy of https://github.com/cprecioso/rollup-plugin-chunk-per-export/blob/main/src/parse/types.ts
18
+ */
19
+ export interface NamedSelfExport {
20
+ exportedName: string;
21
+ from: "self";
22
+ type: "named";
23
23
  }
24
- export type ParsedExportInfo = NamedSelfExport | NamedReExport | BarrelReExport;
24
+ export type ParsedExportInfo = BarrelReExport | NamedReExport | NamedSelfExport;
@@ -3,7 +3,7 @@ import type { Plugin } from "rollup";
3
3
  export interface CJSInteropOptions {
4
4
  addDefaultProperty?: boolean;
5
5
  }
6
- export declare const cjsInteropPlugin: ({ addDefaultProperty, logger, type, }: {
6
+ export declare const cjsInteropPlugin: ({ addDefaultProperty, logger, type, }: CJSInteropOptions & {
7
7
  logger: Pail;
8
8
  type: "commonjs" | "module";
9
- } & CJSInteropOptions) => Plugin;
9
+ }) => Plugin;
@@ -3,7 +3,7 @@ import type { Plugin } from "rollup";
3
3
  export interface CJSInteropOptions {
4
4
  addDefaultProperty?: boolean;
5
5
  }
6
- export declare const cjsInteropPlugin: ({ addDefaultProperty, logger, type, }: {
6
+ export declare const cjsInteropPlugin: ({ addDefaultProperty, logger, type, }: CJSInteropOptions & {
7
7
  logger: Pail;
8
8
  type: "commonjs" | "module";
9
- } & CJSInteropOptions) => Plugin;
9
+ }) => Plugin;
@@ -3,7 +3,7 @@ import type { Plugin } from "rollup";
3
3
  export interface CJSInteropOptions {
4
4
  addDefaultProperty?: boolean;
5
5
  }
6
- export declare const cjsInteropPlugin: ({ addDefaultProperty, logger, type, }: {
6
+ export declare const cjsInteropPlugin: ({ addDefaultProperty, logger, type, }: CJSInteropOptions & {
7
7
  logger: Pail;
8
8
  type: "commonjs" | "module";
9
- } & CJSInteropOptions) => Plugin;
9
+ }) => Plugin;
@@ -1,26 +1,24 @@
1
1
  import type { Pail } from "@visulima/pail";
2
2
  import type { Plugin } from "rollup";
3
- type SingleTargetDesc = {
4
- dest?: string;
5
- exclude?: string[] | string;
6
- src: string[] | string;
7
- };
8
- type MultipleTargetsDesc = SingleTargetDesc | SingleTargetDesc[] | string[] | string;
9
3
  export type CopyPluginOptions = {
10
4
  /**
11
5
  * Copy items once. Useful in watch mode.
12
- *
13
6
  * @default false
14
7
  */
15
8
  copyOnce?: boolean;
16
9
  exactFileNames?: boolean;
17
10
  /**
18
11
  * Remove the directory structure of copied files.
19
- *
20
12
  * @default true
21
13
  */
22
14
  flatten?: boolean;
23
15
  targets: MultipleTargetsDesc;
24
16
  };
17
+ type MultipleTargetsDesc = SingleTargetDesc | SingleTargetDesc[] | string[] | string;
18
+ type SingleTargetDesc = {
19
+ dest?: string;
20
+ exclude?: string[] | string;
21
+ src: string[] | string;
22
+ };
25
23
  export declare const copyPlugin: (options: CopyPluginOptions, logger: Pail) => Plugin;
26
24
  export {};
@@ -1,26 +1,24 @@
1
1
  import type { Pail } from "@visulima/pail";
2
2
  import type { Plugin } from "rollup";
3
- type SingleTargetDesc = {
4
- dest?: string;
5
- exclude?: string[] | string;
6
- src: string[] | string;
7
- };
8
- type MultipleTargetsDesc = SingleTargetDesc | SingleTargetDesc[] | string[] | string;
9
3
  export type CopyPluginOptions = {
10
4
  /**
11
5
  * Copy items once. Useful in watch mode.
12
- *
13
6
  * @default false
14
7
  */
15
8
  copyOnce?: boolean;
16
9
  exactFileNames?: boolean;
17
10
  /**
18
11
  * Remove the directory structure of copied files.
19
- *
20
12
  * @default true
21
13
  */
22
14
  flatten?: boolean;
23
15
  targets: MultipleTargetsDesc;
24
16
  };
17
+ type MultipleTargetsDesc = SingleTargetDesc | SingleTargetDesc[] | string[] | string;
18
+ type SingleTargetDesc = {
19
+ dest?: string;
20
+ exclude?: string[] | string;
21
+ src: string[] | string;
22
+ };
25
23
  export declare const copyPlugin: (options: CopyPluginOptions, logger: Pail) => Plugin;
26
24
  export {};
@@ -1,26 +1,24 @@
1
1
  import type { Pail } from "@visulima/pail";
2
2
  import type { Plugin } from "rollup";
3
- type SingleTargetDesc = {
4
- dest?: string;
5
- exclude?: string[] | string;
6
- src: string[] | string;
7
- };
8
- type MultipleTargetsDesc = SingleTargetDesc | SingleTargetDesc[] | string[] | string;
9
3
  export type CopyPluginOptions = {
10
4
  /**
11
5
  * Copy items once. Useful in watch mode.
12
- *
13
6
  * @default false
14
7
  */
15
8
  copyOnce?: boolean;
16
9
  exactFileNames?: boolean;
17
10
  /**
18
11
  * Remove the directory structure of copied files.
19
- *
20
12
  * @default true
21
13
  */
22
14
  flatten?: boolean;
23
15
  targets: MultipleTargetsDesc;
24
16
  };
17
+ type MultipleTargetsDesc = SingleTargetDesc | SingleTargetDesc[] | string[] | string;
18
+ type SingleTargetDesc = {
19
+ dest?: string;
20
+ exclude?: string[] | string;
21
+ src: string[] | string;
22
+ };
25
23
  export declare const copyPlugin: (options: CopyPluginOptions, logger: Pail) => Plugin;
26
24
  export {};
@@ -1 +1 @@
1
- "use strict";var h=Object.defineProperty;var l=(e,s)=>h(e,"name",{value:s,configurable:!0});const p=require("@visulima/path"),m=require("less"),f=require("@visulima/fs"),g=require("@visulima/path/utils"),y=require("../../../../../packem_shared/resolve-DSG4Zlek.cjs"),c=require("../../../../../packem_shared/url-DFE8cAA0.cjs"),F=l(e=>e&&typeof e=="object"&&"default"in e?e.default:e,"_interopDefaultCompat"),b=F(m);var q=Object.defineProperty,d=l((e,s)=>q(e,"name",{value:s,configurable:!0}),"i");const v=[".less",".css"],M=d((e,s)=>new class extends e.FileManager{supports(){return!0}async loadFile(t,a,r){const i=c.n(g.resolveAlias(t,s)),n=c.g(i),o={baseDirs:[],caller:"Less importer",extensions:v};Array.isArray(r.paths)&&o.baseDirs.push(...r.paths),o.baseDirs.push(a);const u=y.r([n,i],o);return{contents:f.readFileSync(u),filename:u}}},"getStylesFileManager"),D=d(e=>({install(s,t){t.addFileManager(M(s,e))}}),"importer"),x={name:"less",async process({code:e,map:s}){const t=[D(this.alias)];this.options.plugins&&t.push(...this.options.plugins);const a=b.render,r=await a(e,{...this.options,filename:this.id,plugins:t,sourceMap:{outputSourceFiles:!0,sourceMapBasepath:p.dirname(this.id)}}),i=r.imports;for(const n of i)this.deps.add(p.normalize(n));return{code:r.css,map:r.map??s}},test:/\.less$/i};module.exports=x;
1
+ "use strict";var h=Object.defineProperty;var l=(e,s)=>h(e,"name",{value:s,configurable:!0});const p=require("@visulima/path"),m=require("less"),f=require("@visulima/fs"),g=require("@visulima/path/utils"),y=require("../../../../../packem_shared/resolve-DSG4Zlek.cjs"),c=require("../../../../../packem_shared/url-C84CQz1g.cjs"),F=l(e=>e&&typeof e=="object"&&"default"in e?e.default:e,"_interopDefaultCompat"),b=F(m);var q=Object.defineProperty,d=l((e,s)=>q(e,"name",{value:s,configurable:!0}),"i");const v=[".less",".css"],M=d((e,s)=>new class extends e.FileManager{supports(){return!0}async loadFile(t,a,r){const i=c.n(g.resolveAlias(t,s)),n=c.g(i),o={baseDirs:[],caller:"Less importer",extensions:v};Array.isArray(r.paths)&&o.baseDirs.push(...r.paths),o.baseDirs.push(a);const u=y.r([n,i],o);return{contents:f.readFileSync(u),filename:u}}},"getStylesFileManager"),D=d(e=>({install(s,t){t.addFileManager(M(s,e))}}),"importer"),x={name:"less",async process({code:e,map:s}){const t=[D(this.alias)];this.options.plugins&&t.push(...this.options.plugins);const a=b.render,r=await a(e,{...this.options,filename:this.id,plugins:t,sourceMap:{outputSourceFiles:!0,sourceMapBasepath:p.dirname(this.id)}}),i=r.imports;for(const n of i)this.deps.add(p.normalize(n));return{code:r.css,map:r.map??s}},test:/\.less$/i};module.exports=x;
@@ -1 +1 @@
1
- var c=Object.defineProperty;var l=(s,e)=>c(s,"name",{value:e,configurable:!0});import{dirname as u,normalize as d}from"@visulima/path";import f from"less";import{readFileSync as h}from"@visulima/fs";import{resolveAlias as g}from"@visulima/path/utils";import{r as y}from"../../../../../packem_shared/resolve-C7N_MxXM.mjs";import{n as F,g as v}from"../../../../../packem_shared/url-I6Jx3crl.mjs";var b=Object.defineProperty,m=l((s,e)=>b(s,"name",{value:e,configurable:!0}),"i");const M=[".less",".css"],x=m((s,e)=>new class extends s.FileManager{supports(){return!0}async loadFile(r,i,t){const a=F(g(r,e)),o=v(a),n={baseDirs:[],caller:"Less importer",extensions:M};Array.isArray(t.paths)&&n.baseDirs.push(...t.paths),n.baseDirs.push(i);const p=y([o,a],n);return{contents:h(p),filename:p}}},"getStylesFileManager"),A=m(s=>({install(e,r){r.addFileManager(x(e,s))}}),"importer"),U={name:"less",async process({code:s,map:e}){const r=[A(this.alias)];this.options.plugins&&r.push(...this.options.plugins);const i=f.render,t=await i(s,{...this.options,filename:this.id,plugins:r,sourceMap:{outputSourceFiles:!0,sourceMapBasepath:u(this.id)}}),a=t.imports;for(const o of a)this.deps.add(d(o));return{code:t.css,map:t.map??e}},test:/\.less$/i};export{U as default};
1
+ var c=Object.defineProperty;var l=(s,e)=>c(s,"name",{value:e,configurable:!0});import{dirname as u,normalize as d}from"@visulima/path";import f from"less";import{readFileSync as h}from"@visulima/fs";import{resolveAlias as g}from"@visulima/path/utils";import{r as y}from"../../../../../packem_shared/resolve-C7N_MxXM.mjs";import{n as F,g as v}from"../../../../../packem_shared/url-BJXna-1T.mjs";var b=Object.defineProperty,m=l((s,e)=>b(s,"name",{value:e,configurable:!0}),"i");const M=[".less",".css"],x=m((s,e)=>new class extends s.FileManager{supports(){return!0}async loadFile(r,i,t){const a=F(g(r,e)),o=v(a),n={baseDirs:[],caller:"Less importer",extensions:M};Array.isArray(t.paths)&&n.baseDirs.push(...t.paths),n.baseDirs.push(i);const p=y([o,a],n);return{contents:h(p),filename:p}}},"getStylesFileManager"),A=m(s=>({install(e,r){r.addFileManager(x(e,s))}}),"importer"),U={name:"less",async process({code:s,map:e}){const r=[A(this.alias)];this.options.plugins&&r.push(...this.options.plugins);const i=f.render,t=await i(s,{...this.options,filename:this.id,plugins:r,sourceMap:{outputSourceFiles:!0,sourceMapBasepath:u(this.id)}}),a=t.imports;for(const o of a)this.deps.add(d(o));return{code:t.css,map:t.map??e}},test:/\.less$/i};export{U as default};
@@ -1,2 +1,2 @@
1
- export interface LESSLoaderOptions extends Record<string, unknown>, Less.Options {
1
+ export interface LESSLoaderOptions extends Less.Options, Record<string, unknown> {
2
2
  }
@@ -1,2 +1,2 @@
1
- export interface LESSLoaderOptions extends Record<string, unknown>, Less.Options {
1
+ export interface LESSLoaderOptions extends Less.Options, Record<string, unknown> {
2
2
  }
@@ -1,2 +1,2 @@
1
- export interface LESSLoaderOptions extends Record<string, unknown>, Less.Options {
1
+ export interface LESSLoaderOptions extends Less.Options, Record<string, unknown> {
2
2
  }
@@ -1,3 +1,3 @@
1
1
  "use strict";const t=require("lightningcss"),o=require("../../../../packem_shared/ensure-auto-modules-Cs9762qZ.cjs"),a={name:"lightningCSS",async process({code:i,map:n}){let s=!1;typeof this.options.modules=="boolean"?s=this.options.modules:typeof this.options.modules=="object"&&(s=o.n(this.options.modules.include,this.id)),this.autoModules&&this.options.modules===void 0&&(s=o.n(this.autoModules,this.id));const e=t.transform({...this.options,code:Buffer.from(i),cssModules:this.options.modules??s,filename:this.id,inputSourceMap:n,minify:!1,sourceMap:!this.sourceMap,targets:t.browserslistToTargets(this.browserTargets)});return e.warnings.length>0&&this.warn(`warnings when transforming css:
2
- `+e.warnings.map(r=>r.message).join(`
3
- `)),{code:e.code.toString(),map:e.map?JSON.parse(Buffer.from(e.map).toString()):void 0,moduleSideEffects:s||typeof this.inject=="object"&&this.inject.treeshakeable?!1:"no-treeshake"}},test:/\.css$/i};module.exports=a;
2
+ ${e.warnings.map(r=>r.message).join(`
3
+ `)}`),{code:e.code.toString(),map:e.map?JSON.parse(Buffer.from(e.map).toString()):void 0,moduleSideEffects:s||typeof this.inject=="object"&&this.inject.treeshakeable?!1:"no-treeshake"}},test:/\.css$/i};module.exports=a;