tailwind-styled-v4 5.0.40 → 5.0.411

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 (101) hide show
  1. package/dist/analyzer.js +43 -16
  2. package/dist/analyzer.js.map +1 -1
  3. package/dist/analyzer.mjs +104 -72
  4. package/dist/analyzer.mjs.map +1 -1
  5. package/dist/animate.js +33 -7
  6. package/dist/animate.js.map +1 -1
  7. package/dist/animate.mjs +55 -22
  8. package/dist/animate.mjs.map +1 -1
  9. package/dist/atomic.js +39 -10
  10. package/dist/atomic.js.map +1 -1
  11. package/dist/atomic.mjs +56 -23
  12. package/dist/atomic.mjs.map +1 -1
  13. package/dist/cli.js +222 -38
  14. package/dist/cli.js.map +1 -1
  15. package/dist/cli.mjs +321 -203
  16. package/dist/cli.mjs.map +1 -1
  17. package/dist/compiler.js +57 -14
  18. package/dist/compiler.js.map +1 -1
  19. package/dist/compiler.mjs +71 -28
  20. package/dist/compiler.mjs.map +1 -1
  21. package/dist/dashboard.js +0 -1
  22. package/dist/dashboard.js.map +1 -1
  23. package/dist/devtools.js +16 -2
  24. package/dist/devtools.js.map +1 -1
  25. package/dist/devtools.mjs +21 -2
  26. package/dist/devtools.mjs.map +1 -1
  27. package/dist/engine.js +141 -51
  28. package/dist/engine.js.map +1 -1
  29. package/dist/engine.mjs +238 -148
  30. package/dist/engine.mjs.map +1 -1
  31. package/dist/index.js +50 -8
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.mjs +74 -29
  34. package/dist/index.mjs.map +1 -1
  35. package/dist/next.js +98 -37
  36. package/dist/next.js.map +1 -1
  37. package/dist/next.mjs +177 -115
  38. package/dist/next.mjs.map +1 -1
  39. package/dist/plugin-api.js +0 -1
  40. package/dist/plugin-api.js.map +1 -1
  41. package/dist/plugin-registry.js +6 -2
  42. package/dist/plugin-registry.js.map +1 -1
  43. package/dist/plugin-registry.mjs +9 -2
  44. package/dist/plugin-registry.mjs.map +1 -1
  45. package/dist/plugin.js +0 -1
  46. package/dist/plugin.js.map +1 -1
  47. package/dist/preset.js +0 -1
  48. package/dist/preset.js.map +1 -1
  49. package/dist/rspack.js +89 -6
  50. package/dist/rspack.js.map +1 -1
  51. package/dist/rspack.mjs +39 -18
  52. package/dist/rspack.mjs.map +1 -1
  53. package/dist/runtime-css.js +0 -1
  54. package/dist/runtime-css.js.map +1 -1
  55. package/dist/runtime.js +0 -1
  56. package/dist/runtime.js.map +1 -1
  57. package/dist/scanner.js +29 -11
  58. package/dist/scanner.js.map +1 -1
  59. package/dist/scanner.mjs +84 -61
  60. package/dist/scanner.mjs.map +1 -1
  61. package/dist/shared.js +91 -35
  62. package/dist/shared.js.map +1 -1
  63. package/dist/shared.mjs +122 -64
  64. package/dist/shared.mjs.map +1 -1
  65. package/dist/storybook-addon.js +0 -1
  66. package/dist/storybook-addon.js.map +1 -1
  67. package/dist/svelte.js +40 -8
  68. package/dist/svelte.js.map +1 -1
  69. package/dist/svelte.mjs +57 -28
  70. package/dist/svelte.mjs.map +1 -1
  71. package/dist/syntax.js +7 -3
  72. package/dist/syntax.js.map +1 -1
  73. package/dist/syntax.mjs +30 -23
  74. package/dist/syntax.mjs.map +1 -1
  75. package/dist/testing.js +0 -1
  76. package/dist/testing.js.map +1 -1
  77. package/dist/theme.js +23 -5
  78. package/dist/theme.js.map +1 -1
  79. package/dist/theme.mjs +41 -17
  80. package/dist/theme.mjs.map +1 -1
  81. package/dist/turbopackLoader.js +58 -14
  82. package/dist/turbopackLoader.js.map +1 -1
  83. package/dist/turbopackLoader.mjs +89 -45
  84. package/dist/turbopackLoader.mjs.map +1 -1
  85. package/dist/tw.js +224 -38
  86. package/dist/tw.js.map +1 -1
  87. package/dist/tw.mjs +321 -203
  88. package/dist/tw.mjs.map +1 -1
  89. package/dist/vite.js +132 -50
  90. package/dist/vite.js.map +1 -1
  91. package/dist/vite.mjs +226 -143
  92. package/dist/vite.mjs.map +1 -1
  93. package/dist/vue.js +40 -8
  94. package/dist/vue.js.map +1 -1
  95. package/dist/vue.mjs +57 -28
  96. package/dist/vue.mjs.map +1 -1
  97. package/dist/webpackLoader.js +40 -10
  98. package/dist/webpackLoader.js.map +1 -1
  99. package/dist/webpackLoader.mjs +59 -27
  100. package/dist/webpackLoader.mjs.map +1 -1
  101. package/package.json +1 -1
package/dist/tw.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- const __importMetaUrl = typeof __filename !== "undefined" ? require("node:url").pathToFileURL(__filename).href : "file://unknown";
3
2
  /* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
4
3
  "use strict";
5
4
  var __create = Object.create;
@@ -36,10 +35,21 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
35
  ));
37
36
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
38
37
 
38
+ // node_modules/tsup/assets/cjs_shims.js
39
+ var getImportMetaUrl, importMetaUrl;
40
+ var init_cjs_shims = __esm({
41
+ "node_modules/tsup/assets/cjs_shims.js"() {
42
+ "use strict";
43
+ getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
44
+ importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
45
+ }
46
+ });
47
+
39
48
  // packages/infrastructure/cli/node_modules/commander/lib/error.js
40
49
  var require_error = __commonJS({
41
50
  "packages/infrastructure/cli/node_modules/commander/lib/error.js"(exports2) {
42
51
  "use strict";
52
+ init_cjs_shims();
43
53
  var CommanderError2 = class extends Error {
44
54
  /**
45
55
  * Constructs the CommanderError class
@@ -76,6 +86,7 @@ var require_error = __commonJS({
76
86
  var require_argument = __commonJS({
77
87
  "packages/infrastructure/cli/node_modules/commander/lib/argument.js"(exports2) {
78
88
  "use strict";
89
+ init_cjs_shims();
79
90
  var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
80
91
  var Argument2 = class {
81
92
  /**
@@ -204,6 +215,7 @@ var require_argument = __commonJS({
204
215
  var require_help = __commonJS({
205
216
  "packages/infrastructure/cli/node_modules/commander/lib/help.js"(exports2) {
206
217
  "use strict";
218
+ init_cjs_shims();
207
219
  var { humanReadableArgName } = require_argument();
208
220
  var Help2 = class {
209
221
  constructor() {
@@ -619,6 +631,7 @@ var require_help = __commonJS({
619
631
  var require_option = __commonJS({
620
632
  "packages/infrastructure/cli/node_modules/commander/lib/option.js"(exports2) {
621
633
  "use strict";
634
+ init_cjs_shims();
622
635
  var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
623
636
  var Option2 = class {
624
637
  /**
@@ -892,6 +905,7 @@ var require_option = __commonJS({
892
905
  var require_suggestSimilar = __commonJS({
893
906
  "packages/infrastructure/cli/node_modules/commander/lib/suggestSimilar.js"(exports2) {
894
907
  "use strict";
908
+ init_cjs_shims();
895
909
  var maxDistance = 3;
896
910
  function editDistance(a, b) {
897
911
  if (Math.abs(a.length - b.length) > maxDistance)
@@ -973,6 +987,7 @@ var require_suggestSimilar = __commonJS({
973
987
  var require_command = __commonJS({
974
988
  "packages/infrastructure/cli/node_modules/commander/lib/command.js"(exports2) {
975
989
  "use strict";
990
+ init_cjs_shims();
976
991
  var EventEmitter = require("events").EventEmitter;
977
992
  var childProcess = require("child_process");
978
993
  var path30 = require("path");
@@ -3017,6 +3032,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
3017
3032
  var require_commander = __commonJS({
3018
3033
  "packages/infrastructure/cli/node_modules/commander/index.js"(exports2) {
3019
3034
  "use strict";
3035
+ init_cjs_shims();
3020
3036
  var { Argument: Argument2 } = require_argument();
3021
3037
  var { Command: Command2 } = require_command();
3022
3038
  var { CommanderError: CommanderError2, InvalidArgumentError: InvalidArgumentError2 } = require_error();
@@ -3041,6 +3057,7 @@ var import_index, program, createCommand, createArgument, createOption, Commande
3041
3057
  var init_esm = __esm({
3042
3058
  "packages/infrastructure/cli/node_modules/commander/esm.mjs"() {
3043
3059
  "use strict";
3060
+ init_cjs_shims();
3044
3061
  import_index = __toESM(require_commander(), 1);
3045
3062
  ({
3046
3063
  program,
@@ -3087,6 +3104,7 @@ var CliError, CliUsageError;
3087
3104
  var init_errors = __esm({
3088
3105
  "packages/infrastructure/cli/src/utils/errors.ts"() {
3089
3106
  "use strict";
3107
+ init_cjs_shims();
3090
3108
  CliError = class extends Error {
3091
3109
  exitCode;
3092
3110
  code;
@@ -3106,15 +3124,91 @@ var init_errors = __esm({
3106
3124
  }
3107
3125
  });
3108
3126
 
3127
+ // packages/domain/shared/src/esmHelpers.ts
3128
+ function getNodeModuleRef() {
3129
+ if (isBrowser) return null;
3130
+ if (nodeModuleRef !== null) return nodeModuleRef;
3131
+ try {
3132
+ const test = typeof require === "function" ? require("module") : null;
3133
+ nodeModuleRef = test;
3134
+ return test;
3135
+ } catch {
3136
+ nodeModuleRef = null;
3137
+ return null;
3138
+ }
3139
+ }
3140
+ function getCurrentFileUrl() {
3141
+ if (importMetaUrl) {
3142
+ return importMetaUrl;
3143
+ }
3144
+ if (typeof __filename !== "undefined") {
3145
+ return `file://${__filename.replace(/\\/g, "/")}`;
3146
+ }
3147
+ return "file://unknown";
3148
+ }
3149
+ function getNodePath() {
3150
+ if (isBrowser) throw new Error("node:path not available in browser");
3151
+ if (!_nodePath) {
3152
+ if (typeof require === "function") {
3153
+ _nodePath = require("path");
3154
+ } else {
3155
+ const nodeRequire = getNodeModuleRef();
3156
+ if (!nodeRequire) throw new Error("require not available");
3157
+ _nodePath = nodeRequire.createRequire(getCurrentFileUrl())("node:path");
3158
+ }
3159
+ }
3160
+ return _nodePath;
3161
+ }
3162
+ function getNodeUrl() {
3163
+ if (isBrowser) throw new Error("node:url not available in browser");
3164
+ if (!_nodeUrl) {
3165
+ if (typeof require === "function") {
3166
+ _nodeUrl = require("url");
3167
+ } else {
3168
+ const nodeRequire = getNodeModuleRef();
3169
+ if (!nodeRequire) throw new Error("require not available");
3170
+ _nodeUrl = nodeRequire.createRequire(getCurrentFileUrl())("node:url");
3171
+ }
3172
+ }
3173
+ return _nodeUrl;
3174
+ }
3175
+ function getDirname(importMetaUrl2) {
3176
+ if (isBrowser) return "";
3177
+ if (typeof __dirname !== "undefined") return __dirname;
3178
+ const nodePath = getNodePath();
3179
+ const nodeUrl = getNodeUrl();
3180
+ return nodePath.dirname(nodeUrl.fileURLToPath(importMetaUrl2));
3181
+ }
3182
+ var isBrowser, nodeModuleRef, _nodePath, _nodeUrl;
3183
+ var init_esmHelpers = __esm({
3184
+ "packages/domain/shared/src/esmHelpers.ts"() {
3185
+ "use strict";
3186
+ init_cjs_shims();
3187
+ isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
3188
+ nodeModuleRef = null;
3189
+ _nodePath = null;
3190
+ _nodeUrl = null;
3191
+ }
3192
+ });
3193
+
3109
3194
  // packages/domain/shared/src/native-resolution.ts
3195
+ function _safeCreateRequire() {
3196
+ if (typeof import_meta !== "undefined" && importMetaUrl && !importMetaUrl.includes("unknown")) {
3197
+ return (0, import_node_module.createRequire)(importMetaUrl);
3198
+ }
3199
+ if (typeof __filename !== "undefined") {
3200
+ return (0, import_node_module.createRequire)(__filename);
3201
+ }
3202
+ return (0, import_node_module.createRequire)(new URL(`file://${process.cwd()}/`).href);
3203
+ }
3110
3204
  function platformKey() {
3111
- if (isBrowser) return "browser";
3205
+ if (isBrowser2) return "browser";
3112
3206
  return `${process.platform}-${process.arch}`;
3113
3207
  }
3114
3208
  function resolveNativeBinary(runtimeDir) {
3115
3209
  const platform = platformKey();
3116
3210
  const tried = [];
3117
- if (isBrowser) {
3211
+ if (isBrowser2) {
3118
3212
  return { path: null, source: "not-found", platform, tried: ["not available in browser"] };
3119
3213
  }
3120
3214
  if (process.env.TWS_NO_NATIVE === "1" || process.env.TWS_DISABLE_NATIVE === "1") {
@@ -3188,17 +3282,17 @@ function resolveNativeBinary(runtimeDir) {
3188
3282
  }
3189
3283
  return { path: null, source: "not-found", platform, tried };
3190
3284
  }
3191
- var import_node_module, fs, path, isBrowser, _require, PLATFORM_MAP;
3285
+ var import_node_module, fs, path, import_meta, isBrowser2, _require, PLATFORM_MAP;
3192
3286
  var init_native_resolution = __esm({
3193
3287
  "packages/domain/shared/src/native-resolution.ts"() {
3194
3288
  "use strict";
3289
+ init_cjs_shims();
3195
3290
  import_node_module = require("module");
3196
3291
  fs = __toESM(require("fs"));
3197
3292
  path = __toESM(require("path"));
3198
- isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
3199
- _require = (0, import_node_module.createRequire)(
3200
- typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
3201
- );
3293
+ import_meta = {};
3294
+ isBrowser2 = typeof window !== "undefined" || typeof document !== "undefined";
3295
+ _require = _safeCreateRequire();
3202
3296
  PLATFORM_MAP = {
3203
3297
  "linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
3204
3298
  "linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
@@ -3310,10 +3404,10 @@ function resolveNativeBindingCandidates(options) {
3310
3404
  }
3311
3405
  return Array.from(new Set(candidates));
3312
3406
  }
3313
- function resolveRuntimeDir(dir, importMetaUrl) {
3407
+ function resolveRuntimeDir(dir, importMetaUrl2) {
3314
3408
  if (dir) return import_node_path.default.resolve(dir);
3315
3409
  try {
3316
- return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl));
3410
+ return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl2));
3317
3411
  } catch {
3318
3412
  return process.cwd();
3319
3413
  }
@@ -3322,11 +3416,13 @@ var import_node_crypto, import_node_fs, import_node_path, import_node_url, impor
3322
3416
  var init_src = __esm({
3323
3417
  "packages/domain/shared/src/index.ts"() {
3324
3418
  "use strict";
3419
+ init_cjs_shims();
3325
3420
  import_node_crypto = require("crypto");
3326
3421
  import_node_fs = __toESM(require("fs"));
3327
3422
  import_node_path = __toESM(require("path"));
3328
3423
  import_node_url = require("url");
3329
3424
  import_node_module2 = require("module");
3425
+ init_esmHelpers();
3330
3426
  init_native_resolution();
3331
3427
  TwError = class _TwError extends Error {
3332
3428
  /** @deprecated Gunakan source */
@@ -3381,7 +3477,7 @@ var init_src = __esm({
3381
3477
  }
3382
3478
  };
3383
3479
  _require2 = (0, import_node_module2.createRequire)(
3384
- typeof __filename !== "undefined" ? `file://${__filename}` : __importMetaUrl ?? "file://unknown"
3480
+ typeof __filename !== "undefined" ? `file://${__filename}` : importMetaUrl ?? "file://unknown"
3385
3481
  );
3386
3482
  }
3387
3483
  });
@@ -3415,12 +3511,12 @@ __export(native_bridge_exports, {
3415
3511
  startWatchNative: () => startWatchNative,
3416
3512
  stopWatchNative: () => stopWatchNative
3417
3513
  });
3418
- function getDirname() {
3514
+ function getDirname2() {
3419
3515
  if (typeof __dirname !== "undefined") {
3420
3516
  return __dirname;
3421
3517
  }
3422
- if (false) {
3423
- return path3.dirname(fileURLToPath2(__importMetaUrl));
3518
+ if (typeof import_meta2 !== "undefined" && importMetaUrl) {
3519
+ return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(importMetaUrl));
3424
3520
  }
3425
3521
  return process.cwd();
3426
3522
  }
@@ -3625,13 +3721,15 @@ function hasNativeWatchBinding() {
3625
3721
  return false;
3626
3722
  }
3627
3723
  }
3628
- var import_node_path2, import_node_url2, log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
3724
+ var import_node_path2, import_node_url2, import_meta2, log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
3629
3725
  var init_native_bridge = __esm({
3630
3726
  "packages/domain/scanner/src/native-bridge.ts"() {
3631
3727
  "use strict";
3632
- import_node_path2 = require("path");
3728
+ init_cjs_shims();
3729
+ import_node_path2 = __toESM(require("path"), 1);
3633
3730
  import_node_url2 = require("url");
3634
3731
  init_src();
3732
+ import_meta2 = {};
3635
3733
  log = createDebugLogger("scanner:native");
3636
3734
  isValidScannerBinding = (module2) => {
3637
3735
  const candidate = module2;
@@ -3673,7 +3771,7 @@ var init_native_bridge = __esm({
3673
3771
  }
3674
3772
  return throwNativeBindingError();
3675
3773
  }
3676
- const runtimeDir = getDirname();
3774
+ const runtimeDir = getDirname2();
3677
3775
  const candidates = resolveNativeBindingCandidates({
3678
3776
  runtimeDir,
3679
3777
  includeDefaultCandidates: true
@@ -3757,6 +3855,7 @@ var import_node_fs2, import_node_path3, STALE_THRESHOLD_MS;
3757
3855
  var init_cache_native = __esm({
3758
3856
  "packages/domain/scanner/src/cache-native.ts"() {
3759
3857
  "use strict";
3858
+ init_cjs_shims();
3760
3859
  import_node_fs2 = __toESM(require("fs"), 1);
3761
3860
  import_node_path3 = __toESM(require("path"), 1);
3762
3861
  init_native_bridge();
@@ -3825,6 +3924,7 @@ var import_node_worker_threads, import_node_path4, import_node_os, import_node_u
3825
3924
  var init_parallel_scanner = __esm({
3826
3925
  "packages/domain/scanner/src/parallel-scanner.ts"() {
3827
3926
  "use strict";
3927
+ init_cjs_shims();
3828
3928
  import_node_worker_threads = require("worker_threads");
3829
3929
  import_node_path4 = __toESM(require("path"), 1);
3830
3930
  import_node_os = require("os");
@@ -3847,7 +3947,7 @@ var init_parallel_scanner = __esm({
3847
3947
  import_node_worker_threads.parentPort.postMessage(msg);
3848
3948
  }
3849
3949
  }
3850
- _workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(__importMetaUrl);
3950
+ _workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(importMetaUrl);
3851
3951
  }
3852
3952
  });
3853
3953
 
@@ -3856,6 +3956,7 @@ var import_zod, formatIssuePath2, formatIssues, parseWithSchema, NonNegativeInte
3856
3956
  var init_schemas = __esm({
3857
3957
  "packages/domain/scanner/src/schemas.ts"() {
3858
3958
  "use strict";
3959
+ init_cjs_shims();
3859
3960
  import_zod = require("zod");
3860
3961
  init_src();
3861
3962
  formatIssuePath2 = (path30) => path30.length > 0 ? path30.map(
@@ -3939,8 +4040,8 @@ function getRuntimeDir() {
3939
4040
  if (typeof __dirname !== "undefined" && __dirname.length > 0) {
3940
4041
  return __dirname;
3941
4042
  }
3942
- if (false) {
3943
- return import_node_path5.default.dirname(fileURLToPath4(__importMetaUrl));
4043
+ if (typeof import_meta3 !== "undefined" && importMetaUrl) {
4044
+ return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(importMetaUrl));
3944
4045
  }
3945
4046
  return process.cwd();
3946
4047
  }
@@ -3949,8 +4050,8 @@ function resolveScannerWorkerModulePath() {
3949
4050
  if (typeof __dirname !== "undefined" && __dirname.length > 0) {
3950
4051
  return __dirname;
3951
4052
  }
3952
- if (false) {
3953
- return import_node_path5.default.dirname(fileURLToPath4(__importMetaUrl));
4053
+ if (typeof import_meta3 !== "undefined" && importMetaUrl) {
4054
+ return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(importMetaUrl));
3954
4055
  }
3955
4056
  return process.cwd();
3956
4057
  })();
@@ -4223,10 +4324,11 @@ async function scanWorkspaceAsync(rootDir, options = {}) {
4223
4324
  return scanWorkspace(rootDir, normalizedOptions);
4224
4325
  }
4225
4326
  }
4226
- var import_node_fs3, import_node_module3, import_node_path5, import_node_url4, import_node_worker_threads2, log2, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
4327
+ var import_node_fs3, import_node_module3, import_node_path5, import_node_url4, import_node_worker_threads2, import_meta3, log2, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
4227
4328
  var init_src2 = __esm({
4228
4329
  "packages/domain/scanner/src/index.ts"() {
4229
4330
  "use strict";
4331
+ init_cjs_shims();
4230
4332
  import_node_fs3 = __toESM(require("fs"), 1);
4231
4333
  import_node_module3 = require("module");
4232
4334
  import_node_path5 = __toESM(require("path"), 1);
@@ -4239,6 +4341,7 @@ var init_src2 = __esm({
4239
4341
  init_schemas();
4240
4342
  init_schemas();
4241
4343
  init_native_bridge();
4344
+ import_meta3 = {};
4242
4345
  log2 = createLogger("scanner");
4243
4346
  SCAN_WORKER_TIMEOUT_MS = 12e4;
4244
4347
  createNativeParserLoader = () => {
@@ -4354,6 +4457,7 @@ var import_node_fs4, DEFAULT_TOP_LIMIT, DEFAULT_FREQUENT_THRESHOLD, DEBUG_NAMESP
4354
4457
  var init_utils = __esm({
4355
4458
  "packages/domain/analyzer/src/utils.ts"() {
4356
4459
  "use strict";
4460
+ init_cjs_shims();
4357
4461
  import_node_fs4 = __toESM(require("fs"), 1);
4358
4462
  init_src();
4359
4463
  DEFAULT_TOP_LIMIT = 10;
@@ -4372,7 +4476,7 @@ async function requireNativeBinding() {
4372
4476
  if (binding?.analyzeClasses) return binding;
4373
4477
  const runtimeDir = resolveRuntimeDir(
4374
4478
  typeof __dirname === "string" ? __dirname : void 0,
4375
- __importMetaUrl
4479
+ importMetaUrl
4376
4480
  );
4377
4481
  const candidates = resolveNativeBindingCandidates({
4378
4482
  runtimeDir,
@@ -4406,6 +4510,7 @@ var isAnalyzerModule, createAnalyzerBindingLoader, analyzerBindingLoader;
4406
4510
  var init_binding = __esm({
4407
4511
  "packages/domain/analyzer/src/binding.ts"() {
4408
4512
  "use strict";
4513
+ init_cjs_shims();
4409
4514
  init_src();
4410
4515
  init_utils();
4411
4516
  isAnalyzerModule = (module2) => {
@@ -4419,7 +4524,7 @@ var init_binding = __esm({
4419
4524
  _state.bindingPromise = (async () => {
4420
4525
  const runtimeDir = resolveRuntimeDir(
4421
4526
  typeof __dirname === "string" ? __dirname : void 0,
4422
- __importMetaUrl
4527
+ importMetaUrl
4423
4528
  );
4424
4529
  const candidates = resolveNativeBindingCandidates({
4425
4530
  runtimeDir,
@@ -4462,6 +4567,7 @@ var import_zod2, formatIssuePath3, isPlainObject, formatIssues2, parseWithSchema
4462
4567
  var init_schemas2 = __esm({
4463
4568
  "packages/domain/analyzer/src/schemas.ts"() {
4464
4569
  "use strict";
4570
+ init_cjs_shims();
4465
4571
  init_src();
4466
4572
  import_zod2 = require("zod");
4467
4573
  formatIssuePath3 = (path30) => path30.length > 0 ? path30.map(
@@ -4576,6 +4682,7 @@ var import_node_fs5, import_node_path6, import_node_url5, SUPPORTED_TAILWIND_CON
4576
4682
  var init_semantic = __esm({
4577
4683
  "packages/domain/analyzer/src/semantic.ts"() {
4578
4684
  "use strict";
4685
+ init_cjs_shims();
4579
4686
  import_node_fs5 = __toESM(require("fs"), 1);
4580
4687
  import_node_path6 = __toESM(require("path"), 1);
4581
4688
  import_node_url5 = require("url");
@@ -4996,6 +5103,7 @@ var import_node_path7;
4996
5103
  var init_analyzeWorkspace = __esm({
4997
5104
  "packages/domain/analyzer/src/analyzeWorkspace.ts"() {
4998
5105
  "use strict";
5106
+ init_cjs_shims();
4999
5107
  import_node_path7 = __toESM(require("path"), 1);
5000
5108
  init_src2();
5001
5109
  init_binding();
@@ -5010,6 +5118,7 @@ var normalizeClassInput, normalizeClassToCssOptions, mergeDeclarationMap, declar
5010
5118
  var init_classToCss = __esm({
5011
5119
  "packages/domain/analyzer/src/classToCss.ts"() {
5012
5120
  "use strict";
5121
+ init_cjs_shims();
5013
5122
  init_binding();
5014
5123
  init_schemas2();
5015
5124
  init_utils();
@@ -5131,6 +5240,7 @@ var __internal;
5131
5240
  var init_src3 = __esm({
5132
5241
  "packages/domain/analyzer/src/index.ts"() {
5133
5242
  "use strict";
5243
+ init_cjs_shims();
5134
5244
  init_analyzeWorkspace();
5135
5245
  init_classToCss();
5136
5246
  init_schemas2();
@@ -5192,6 +5302,7 @@ var import_promises, import_node_path8;
5192
5302
  var init_fs = __esm({
5193
5303
  "packages/infrastructure/cli/src/utils/fs.ts"() {
5194
5304
  "use strict";
5305
+ init_cjs_shims();
5195
5306
  import_promises = __toESM(require("fs/promises"), 1);
5196
5307
  import_node_path8 = __toESM(require("path"), 1);
5197
5308
  }
@@ -5201,6 +5312,7 @@ var init_fs = __esm({
5201
5312
  var require_picocolors = __commonJS({
5202
5313
  "node_modules/picocolors/picocolors.js"(exports2, module2) {
5203
5314
  "use strict";
5315
+ init_cjs_shims();
5204
5316
  var p = process || {};
5205
5317
  var argv = p.argv || [];
5206
5318
  var env = p.env || {};
@@ -5288,6 +5400,7 @@ function writeJsonSuccess(command, data) {
5288
5400
  var init_json = __esm({
5289
5401
  "packages/infrastructure/cli/src/utils/json.ts"() {
5290
5402
  "use strict";
5403
+ init_cjs_shims();
5291
5404
  }
5292
5405
  });
5293
5406
 
@@ -5430,6 +5543,7 @@ var import_prompts, import_picocolors;
5430
5543
  var init_output = __esm({
5431
5544
  "packages/infrastructure/cli/src/utils/output.ts"() {
5432
5545
  "use strict";
5546
+ init_cjs_shims();
5433
5547
  import_prompts = require("@clack/prompts");
5434
5548
  import_picocolors = __toESM(require_picocolors(), 1);
5435
5549
  init_errors();
@@ -5479,13 +5593,14 @@ var import_node_util3;
5479
5593
  var init_args = __esm({
5480
5594
  "packages/infrastructure/cli/src/utils/args.ts"() {
5481
5595
  "use strict";
5596
+ init_cjs_shims();
5482
5597
  import_node_util3 = require("util");
5483
5598
  }
5484
5599
  });
5485
5600
 
5486
5601
  // packages/infrastructure/cli/src/utils/paths.ts
5487
- function runtimeDirFromImportMeta(importMetaUrl) {
5488
- const filename = (0, import_node_url6.fileURLToPath)(importMetaUrl);
5602
+ function runtimeDirFromImportMeta(importMetaUrl2) {
5603
+ const filename = (0, import_node_url6.fileURLToPath)(importMetaUrl2);
5489
5604
  return import_node_path17.default.dirname(filename);
5490
5605
  }
5491
5606
  async function resolveMonorepoPath(runtimeDir, relativeToRepoRoot) {
@@ -5503,6 +5618,7 @@ var import_node_path17, import_node_url6;
5503
5618
  var init_paths = __esm({
5504
5619
  "packages/infrastructure/cli/src/utils/paths.ts"() {
5505
5620
  "use strict";
5621
+ init_cjs_shims();
5506
5622
  import_node_path17 = __toESM(require("path"), 1);
5507
5623
  import_node_url6 = require("url");
5508
5624
  init_errors();
@@ -5590,6 +5706,7 @@ var isCommanderLikeError, isHelpExit, isVersionExit, normalizeCliError, findComm
5590
5706
  var init_runtime = __esm({
5591
5707
  "packages/infrastructure/cli/src/utils/runtime.ts"() {
5592
5708
  "use strict";
5709
+ init_cjs_shims();
5593
5710
  init_args();
5594
5711
  init_errors();
5595
5712
  init_output();
@@ -6048,21 +6165,23 @@ function buildCreateProgram(context) {
6048
6165
  async function main(rawArgs = process.argv.slice(2)) {
6049
6166
  await runCliMain({
6050
6167
  argv: [process.execPath, "create-tailwind-styled", ...rawArgs],
6051
- importMetaUrl: false ? __importMetaUrl : `file://${process.argv[1] ?? "unknown"}`,
6168
+ importMetaUrl: typeof import_meta4 !== "undefined" && importMetaUrl ? importMetaUrl : `file://${process.argv[1] ?? "unknown"}`,
6052
6169
  commandHint: "create",
6053
6170
  buildProgram: buildCreateProgram
6054
6171
  });
6055
6172
  }
6056
- var import_node_path19, import_prompts4, TEMPLATE_NAMES, TEMPLATES;
6173
+ var import_node_path19, import_prompts4, import_meta4, TEMPLATE_NAMES, TEMPLATES;
6057
6174
  var init_createApp = __esm({
6058
6175
  "packages/infrastructure/cli/src/createApp.ts"() {
6059
6176
  "use strict";
6177
+ init_cjs_shims();
6060
6178
  import_node_path19 = __toESM(require("path"), 1);
6061
6179
  import_prompts4 = require("@clack/prompts");
6062
6180
  init_esm();
6063
6181
  init_errors();
6064
6182
  init_fs();
6065
6183
  init_runtime();
6184
+ import_meta4 = {};
6066
6185
  TEMPLATE_NAMES = ["next-app", "vite-react", "vite-vue", "vite-svelte", "simple"];
6067
6186
  TEMPLATES = {
6068
6187
  "next-app": createNextApp,
@@ -6079,6 +6198,7 @@ var _loadNative, log3, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttem
6079
6198
  var init_nativeBridge = __esm({
6080
6199
  "packages/domain/compiler/src/nativeBridge.ts"() {
6081
6200
  "use strict";
6201
+ init_cjs_shims();
6082
6202
  init_src();
6083
6203
  _loadNative = (path30) => require(path30);
6084
6204
  log3 = (...args) => {
@@ -6106,7 +6226,7 @@ var init_nativeBridge = __esm({
6106
6226
  }
6107
6227
  bridgeLoadAttempted = true;
6108
6228
  try {
6109
- const runtimeDir = resolveRuntimeDir(void 0, __importMetaUrl);
6229
+ const runtimeDir = resolveRuntimeDir(void 0, importMetaUrl);
6110
6230
  const result = resolveNativeBinary(runtimeDir);
6111
6231
  if (result.path && result.path.endsWith(".node")) {
6112
6232
  try {
@@ -6178,6 +6298,7 @@ Tried paths: ${result.tried.join("\n")}`);
6178
6298
  var init_compiler = __esm({
6179
6299
  "packages/domain/compiler/src/compiler/index.ts"() {
6180
6300
  "use strict";
6301
+ init_cjs_shims();
6181
6302
  }
6182
6303
  });
6183
6304
 
@@ -6185,6 +6306,7 @@ var init_compiler = __esm({
6185
6306
  var init_parser = __esm({
6186
6307
  "packages/domain/compiler/src/parser/index.ts"() {
6187
6308
  "use strict";
6309
+ init_cjs_shims();
6188
6310
  }
6189
6311
  });
6190
6312
 
@@ -6192,6 +6314,7 @@ var init_parser = __esm({
6192
6314
  var init_analyzer = __esm({
6193
6315
  "packages/domain/compiler/src/analyzer/index.ts"() {
6194
6316
  "use strict";
6317
+ init_cjs_shims();
6195
6318
  }
6196
6319
  });
6197
6320
 
@@ -6199,6 +6322,7 @@ var init_analyzer = __esm({
6199
6322
  var init_cache = __esm({
6200
6323
  "packages/domain/compiler/src/cache/index.ts"() {
6201
6324
  "use strict";
6325
+ init_cjs_shims();
6202
6326
  }
6203
6327
  });
6204
6328
 
@@ -6206,6 +6330,7 @@ var init_cache = __esm({
6206
6330
  var init_redis = __esm({
6207
6331
  "packages/domain/compiler/src/redis/index.ts"() {
6208
6332
  "use strict";
6333
+ init_cjs_shims();
6209
6334
  }
6210
6335
  });
6211
6336
 
@@ -6213,6 +6338,7 @@ var init_redis = __esm({
6213
6338
  var init_watch = __esm({
6214
6339
  "packages/domain/compiler/src/watch/index.ts"() {
6215
6340
  "use strict";
6341
+ init_cjs_shims();
6216
6342
  }
6217
6343
  });
6218
6344
 
@@ -6221,6 +6347,7 @@ var import_node_fs9, import_node_path24, import_node_module4, _require3, compile
6221
6347
  var init_src4 = __esm({
6222
6348
  "packages/domain/compiler/src/index.ts"() {
6223
6349
  "use strict";
6350
+ init_cjs_shims();
6224
6351
  import_node_fs9 = __toESM(require("fs"), 1);
6225
6352
  import_node_path24 = __toESM(require("path"), 1);
6226
6353
  import_node_module4 = require("module");
@@ -6232,7 +6359,7 @@ var init_src4 = __esm({
6232
6359
  init_redis();
6233
6360
  init_watch();
6234
6361
  _require3 = (0, import_node_module4.createRequire)(
6235
- typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
6362
+ typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : importMetaUrl
6236
6363
  );
6237
6364
  compileCssFromClasses = (classes, prefix) => {
6238
6365
  const native = getNativeBridge();
@@ -6252,6 +6379,7 @@ var init_src4 = __esm({
6252
6379
  var init_internal = __esm({
6253
6380
  "packages/domain/compiler/src/internal.ts"() {
6254
6381
  "use strict";
6382
+ init_cjs_shims();
6255
6383
  init_src4();
6256
6384
  init_compiler();
6257
6385
  init_parser();
@@ -6262,17 +6390,24 @@ var init_internal = __esm({
6262
6390
  }
6263
6391
  });
6264
6392
 
6393
+ // src/umbrella/tw.ts
6394
+ init_cjs_shims();
6395
+
6265
6396
  // packages/infrastructure/cli/src/index.ts
6397
+ init_cjs_shims();
6266
6398
  var import_node_url8 = require("url");
6267
6399
 
6268
6400
  // packages/infrastructure/cli/src/commands/program.ts
6401
+ init_cjs_shims();
6269
6402
  init_esm();
6270
6403
 
6271
6404
  // packages/infrastructure/cli/src/analyze.ts
6405
+ init_cjs_shims();
6272
6406
  var import_node_path9 = __toESM(require("path"), 1);
6273
6407
  var import_node_util = require("util");
6274
6408
 
6275
6409
  // packages/infrastructure/cli/src/utils/analyzer.ts
6410
+ init_cjs_shims();
6276
6411
  init_errors();
6277
6412
  async function loadAnalyzerModule() {
6278
6413
  try {
@@ -6362,6 +6497,7 @@ async function runAnalyzeCli(args) {
6362
6497
  }
6363
6498
 
6364
6499
  // packages/infrastructure/cli/src/extract.ts
6500
+ init_cjs_shims();
6365
6501
  var import_node_path10 = __toESM(require("path"), 1);
6366
6502
  var import_node_util2 = require("util");
6367
6503
  init_errors();
@@ -6458,6 +6594,7 @@ async function runExtractCli(args) {
6458
6594
  }
6459
6595
 
6460
6596
  // packages/infrastructure/cli/src/init.ts
6597
+ init_cjs_shims();
6461
6598
  var import_node_path11 = __toESM(require("path"), 1);
6462
6599
  init_fs();
6463
6600
  init_output();
@@ -6516,10 +6653,12 @@ async function runInitCli(rawArgs) {
6516
6653
  }
6517
6654
 
6518
6655
  // packages/infrastructure/cli/src/migrate.ts
6656
+ init_cjs_shims();
6519
6657
  var import_promises2 = __toESM(require("fs/promises"), 1);
6520
6658
  var import_node_path12 = __toESM(require("path"), 1);
6521
6659
 
6522
6660
  // packages/infrastructure/cli/src/migrateWizard.ts
6661
+ init_cjs_shims();
6523
6662
  var import_prompts2 = require("@clack/prompts");
6524
6663
  init_errors();
6525
6664
  async function runMigrationWizard() {
@@ -6667,6 +6806,7 @@ async function runMigrateCli(rawArgs) {
6667
6806
  }
6668
6807
 
6669
6808
  // packages/infrastructure/cli/src/scan.ts
6809
+ init_cjs_shims();
6670
6810
  var import_node_fs6 = __toESM(require("fs"), 1);
6671
6811
  var import_node_path13 = __toESM(require("path"), 1);
6672
6812
  init_src2();
@@ -6778,10 +6918,12 @@ Scan root : ${result.root}`);
6778
6918
  }
6779
6919
 
6780
6920
  // packages/infrastructure/cli/src/setup.ts
6921
+ init_cjs_shims();
6781
6922
  var import_node_path15 = __toESM(require("path"), 1);
6782
6923
  var import_picocolors3 = __toESM(require_picocolors(), 1);
6783
6924
 
6784
6925
  // packages/infrastructure/cli/src/commands/setup/patchers.ts
6926
+ init_cjs_shims();
6785
6927
  function patchNextConfigImpl(src) {
6786
6928
  if (src.includes("withTailwindStyled")) return null;
6787
6929
  const hasExport = src.includes("export default");
@@ -6974,6 +7116,7 @@ function patchTsConfigImpl(src) {
6974
7116
  }
6975
7117
 
6976
7118
  // packages/infrastructure/cli/src/commands/setup/prompt.ts
7119
+ init_cjs_shims();
6977
7120
  var import_prompts3 = require("@clack/prompts");
6978
7121
  init_errors();
6979
7122
  async function pickProjectTypeInteractive(detected, flags, projectOptions, options = {}) {
@@ -7025,10 +7168,12 @@ async function pickProjectTypeInteractive(detected, flags, projectOptions, optio
7025
7168
  }
7026
7169
 
7027
7170
  // packages/infrastructure/cli/src/commands/setup/workspace.ts
7171
+ init_cjs_shims();
7028
7172
  var import_node_path14 = __toESM(require("path"), 1);
7029
7173
  init_fs();
7030
7174
 
7031
7175
  // packages/infrastructure/cli/src/utils/process.ts
7176
+ init_cjs_shims();
7032
7177
  var import_node_child_process = require("child_process");
7033
7178
  init_errors();
7034
7179
  init_json();
@@ -7277,6 +7422,7 @@ async function installPackages(cwd2, pm, pkgs, dev, flags, logger) {
7277
7422
  }
7278
7423
 
7279
7424
  // packages/infrastructure/cli/src/utils/logger.ts
7425
+ init_cjs_shims();
7280
7426
  var import_picocolors2 = __toESM(require_picocolors(), 1);
7281
7427
  function createCliLogger(options = {}) {
7282
7428
  function emit(level, icon, colorize, message) {
@@ -7485,6 +7631,7 @@ var runSetupCli = async (rawArgs) => {
7485
7631
  };
7486
7632
 
7487
7633
  // packages/infrastructure/cli/src/stats.ts
7634
+ init_cjs_shims();
7488
7635
  var import_node_path16 = __toESM(require("path"), 1);
7489
7636
  var import_node_util4 = require("util");
7490
7637
  init_errors();
@@ -7577,6 +7724,7 @@ async function runStatsCli(args) {
7577
7724
  init_runtime();
7578
7725
 
7579
7726
  // packages/infrastructure/cli/src/commands/boundary.ts
7727
+ init_cjs_shims();
7580
7728
  var import_node_fs7 = require("fs");
7581
7729
  var import_node_path18 = require("path");
7582
7730
  var import_node_util5 = require("util");
@@ -7702,6 +7850,7 @@ var boundaryCommand = {
7702
7850
  };
7703
7851
 
7704
7852
  // packages/infrastructure/cli/src/commands/create.ts
7853
+ init_cjs_shims();
7705
7854
  init_args();
7706
7855
  var createCommand2 = {
7707
7856
  name: "create",
@@ -7713,11 +7862,13 @@ var createCommand2 = {
7713
7862
  };
7714
7863
 
7715
7864
  // packages/infrastructure/cli/src/commands/dashboard.ts
7865
+ init_cjs_shims();
7716
7866
  var import_node_util6 = require("util");
7717
7867
  init_errors();
7718
7868
  init_fs();
7719
7869
 
7720
7870
  // packages/infrastructure/cli/src/commands/helpers.ts
7871
+ init_cjs_shims();
7721
7872
  var import_promises3 = __toESM(require("fs/promises"), 1);
7722
7873
  var import_node_path20 = __toESM(require("path"), 1);
7723
7874
  init_errors();
@@ -7807,6 +7958,7 @@ var dashboardCommand = {
7807
7958
  };
7808
7959
 
7809
7960
  // packages/infrastructure/cli/src/commands/deploy.ts
7961
+ init_cjs_shims();
7810
7962
  var import_promises4 = __toESM(require("fs/promises"), 1);
7811
7963
  var import_node_path21 = __toESM(require("path"), 1);
7812
7964
  var import_node_util7 = require("util");
@@ -7966,10 +8118,12 @@ var deployCommand = {
7966
8118
  };
7967
8119
 
7968
8120
  // packages/infrastructure/cli/src/commands/doctor.ts
8121
+ init_cjs_shims();
7969
8122
  var import_node_util8 = require("util");
7970
8123
  var import_picocolors4 = __toESM(require_picocolors(), 1);
7971
8124
 
7972
8125
  // packages/infrastructure/cli/src/utils/doctorService.ts
8126
+ init_cjs_shims();
7973
8127
  var import_node_fs8 = __toESM(require("fs"), 1);
7974
8128
  var import_node_path22 = __toESM(require("path"), 1);
7975
8129
  init_src3();
@@ -8511,6 +8665,7 @@ function printDoctorOutput(result, output) {
8511
8665
  }
8512
8666
 
8513
8667
  // packages/infrastructure/cli/src/commands/misc.ts
8668
+ init_cjs_shims();
8514
8669
  var import_node_path23 = __toESM(require("path"), 1);
8515
8670
  var import_node_util9 = require("util");
8516
8671
  init_errors();
@@ -8788,6 +8943,7 @@ var miscCommands = [
8788
8943
  ];
8789
8944
 
8790
8945
  // packages/infrastructure/cli/src/commands/plugin.ts
8946
+ init_cjs_shims();
8791
8947
  init_errors();
8792
8948
  init_json();
8793
8949
  var pluginCommand = {
@@ -8874,7 +9030,11 @@ var pluginCommand = {
8874
9030
  }
8875
9031
  };
8876
9032
 
9033
+ // packages/infrastructure/cli/src/commands/preflight.ts
9034
+ init_cjs_shims();
9035
+
8877
9036
  // packages/infrastructure/cli/src/preflight.ts
9037
+ init_cjs_shims();
8878
9038
  var import_node_path25 = __toESM(require("path"), 1);
8879
9039
  var import_node_url7 = require("url");
8880
9040
  init_args();
@@ -8882,6 +9042,7 @@ init_errors();
8882
9042
  init_fs();
8883
9043
  init_json();
8884
9044
  init_src4();
9045
+ var import_meta5 = {};
8885
9046
  var DEFAULT_TAILWIND_CSS2 = '@import "tailwindcss";\n';
8886
9047
  var DEFAULT_TW_CONFIG = `${JSON.stringify(
8887
9048
  {
@@ -9192,7 +9353,7 @@ async function runPreflightCli(rawArgs) {
9192
9353
  function isDirectExecution() {
9193
9354
  const scriptPath = process.argv[1];
9194
9355
  if (!scriptPath) return false;
9195
- const currentUrl = false ? __importMetaUrl : `file://${scriptPath}`;
9356
+ const currentUrl = typeof import_meta5 !== "undefined" && importMetaUrl ? importMetaUrl : `file://${scriptPath}`;
9196
9357
  return currentUrl === (0, import_node_url7.pathToFileURL)(scriptPath).href;
9197
9358
  }
9198
9359
  if (isDirectExecution()) {
@@ -9224,6 +9385,7 @@ var preflightCommand = {
9224
9385
  };
9225
9386
 
9226
9387
  // packages/infrastructure/cli/src/commands/registry.ts
9388
+ init_cjs_shims();
9227
9389
  init_errors();
9228
9390
  var registryCommand = {
9229
9391
  name: "registry",
@@ -9261,6 +9423,7 @@ var installRegistryCommand = {
9261
9423
  };
9262
9424
 
9263
9425
  // packages/infrastructure/cli/src/commands/scriptCommands.ts
9426
+ init_cjs_shims();
9264
9427
  var import_node_util10 = require("util");
9265
9428
  init_errors();
9266
9429
  async function runScriptCommand(commandName, context, relativeScriptPath, args, options = {}) {
@@ -9472,6 +9635,7 @@ var scriptCommands = [
9472
9635
  ];
9473
9636
 
9474
9637
  // packages/infrastructure/cli/src/commands/storybook.ts
9638
+ init_cjs_shims();
9475
9639
  var import_node_path26 = __toESM(require("path"), 1);
9476
9640
  var import_node_util11 = require("util");
9477
9641
  init_errors();
@@ -9531,6 +9695,7 @@ var storybookCommand = {
9531
9695
  };
9532
9696
 
9533
9697
  // packages/infrastructure/cli/src/commands/studio.ts
9698
+ init_cjs_shims();
9534
9699
  var import_node_util12 = require("util");
9535
9700
  init_errors();
9536
9701
  var studioCommand = {
@@ -9564,6 +9729,7 @@ var studioCommand = {
9564
9729
  };
9565
9730
 
9566
9731
  // packages/infrastructure/cli/src/commands/sync.ts
9732
+ init_cjs_shims();
9567
9733
  init_errors();
9568
9734
  var syncCommand = {
9569
9735
  name: "sync",
@@ -9605,20 +9771,30 @@ var syncCommand = {
9605
9771
  };
9606
9772
 
9607
9773
  // packages/infrastructure/cli/src/commands/trace.ts
9774
+ init_cjs_shims();
9608
9775
  var import_node_util13 = require("util");
9609
9776
  var import_picocolors5 = __toESM(require_picocolors(), 1);
9610
9777
  init_errors();
9611
9778
 
9612
9779
  // packages/infrastructure/cli/src/utils/traceService.ts
9780
+ init_cjs_shims();
9613
9781
  init_internal();
9614
9782
 
9783
+ // packages/domain/engine/src/internal.ts
9784
+ init_cjs_shims();
9785
+
9786
+ // packages/domain/engine/src/bundleAnalyzer.ts
9787
+ init_cjs_shims();
9788
+
9615
9789
  // packages/domain/engine/src/native-bridge.ts
9790
+ init_cjs_shims();
9616
9791
  init_src();
9792
+ var import_meta6 = {};
9617
9793
  var log4 = createDebugLogger("engine:native");
9618
- function getDirname2() {
9794
+ function getDirname3() {
9619
9795
  if (typeof __dirname !== "undefined") return __dirname;
9620
- if (false) {
9621
- return getEsmDirname(__importMetaUrl);
9796
+ if (typeof import_meta6 !== "undefined" && importMetaUrl) {
9797
+ return getDirname(importMetaUrl);
9622
9798
  }
9623
9799
  return process.cwd();
9624
9800
  }
@@ -9662,7 +9838,7 @@ var createEngineBindingLoader = () => {
9662
9838
  }
9663
9839
  return cached;
9664
9840
  }
9665
- const runtimeDir = getDirname2();
9841
+ const runtimeDir = getDirname3();
9666
9842
  const candidates = resolveNativeBindingCandidates({
9667
9843
  runtimeDir,
9668
9844
  includeDefaultCandidates: true
@@ -9793,6 +9969,7 @@ var BundleAnalyzer = class {
9793
9969
  };
9794
9970
 
9795
9971
  // packages/domain/engine/src/impactTracker.ts
9972
+ init_cjs_shims();
9796
9973
  var ImpactTracker = class {
9797
9974
  bundleAnalyzer;
9798
9975
  constructor() {
@@ -9977,6 +10154,7 @@ var ImpactTracker = class {
9977
10154
  };
9978
10155
 
9979
10156
  // packages/domain/engine/src/ir.ts
10157
+ init_cjs_shims();
9980
10158
  var RuleId = class {
9981
10159
  constructor(value) {
9982
10160
  this.value = value;
@@ -10106,6 +10284,7 @@ function createFingerprint(parts) {
10106
10284
  }
10107
10285
 
10108
10286
  // packages/domain/engine/src/reverseLookup.ts
10287
+ init_cjs_shims();
10109
10288
  function getNative() {
10110
10289
  const native = getNativeEngineBinding();
10111
10290
  if (!native?.reverseLookupFromCss || !native?.reverseLookupByProperty || !native?.reverseLookupFindDependents) {
@@ -10180,6 +10359,7 @@ var ReverseLookup = class {
10180
10359
  };
10181
10360
 
10182
10361
  // packages/domain/engine/src/resolver.ts
10362
+ init_cjs_shims();
10183
10363
  function toNativeInput(rule) {
10184
10364
  return {
10185
10365
  id: rule.id.value,
@@ -10297,6 +10477,7 @@ var CascadeResolver = class {
10297
10477
  };
10298
10478
 
10299
10479
  // packages/domain/engine/src/cssToIr.ts
10480
+ init_cjs_shims();
10300
10481
  function createIdGenerator() {
10301
10482
  const state = {
10302
10483
  ruleIdCounter: 0,
@@ -10469,6 +10650,7 @@ function _parseCssToIrFallback(css, prefix, native) {
10469
10650
  }
10470
10651
 
10471
10652
  // packages/domain/engine/src/trace.ts
10653
+ init_cjs_shims();
10472
10654
  function buildProvenanceChain(className) {
10473
10655
  return {
10474
10656
  className,
@@ -10681,6 +10863,7 @@ async function traceClass(className, options) {
10681
10863
  }
10682
10864
 
10683
10865
  // packages/infrastructure/cli/src/utils/traceTargetService.ts
10866
+ init_cjs_shims();
10684
10867
  var import_node_fs10 = __toESM(require("fs"), 1);
10685
10868
  var import_node_path27 = __toESM(require("path"), 1);
10686
10869
  init_internal();
@@ -10984,6 +11167,7 @@ function printClassTraceOutput(result, output) {
10984
11167
  }
10985
11168
 
10986
11169
  // packages/infrastructure/cli/src/generateTypes.ts
11170
+ init_cjs_shims();
10987
11171
  var import_node_fs11 = __toESM(require("fs"), 1);
10988
11172
  var import_node_path28 = __toESM(require("path"), 1);
10989
11173
  var import_picocolors6 = __toESM(require_picocolors(), 1);
@@ -11060,10 +11244,12 @@ async function loadNativeBinding2(cwd2) {
11060
11244
  }
11061
11245
 
11062
11246
  // packages/infrastructure/cli/src/commands/why.ts
11247
+ init_cjs_shims();
11063
11248
  var import_node_util14 = require("util");
11064
11249
  init_errors();
11065
11250
 
11066
11251
  // packages/infrastructure/cli/src/utils/whyService.ts
11252
+ init_cjs_shims();
11067
11253
  var import_node_fs12 = __toESM(require("fs"), 1);
11068
11254
  var import_node_path29 = __toESM(require("path"), 1);
11069
11255
  init_internal();
@@ -11588,11 +11774,11 @@ init_args();
11588
11774
  init_output();
11589
11775
  async function main2() {
11590
11776
  await runCliMain({
11591
- importMetaUrl: __importMetaUrl,
11777
+ importMetaUrl,
11592
11778
  buildProgram: buildMainProgram
11593
11779
  });
11594
11780
  }
11595
- var __currentFile = (0, import_node_url8.fileURLToPath)(__importMetaUrl);
11781
+ var __currentFile = (0, import_node_url8.fileURLToPath)(importMetaUrl);
11596
11782
  if (process.argv[1] === __currentFile) {
11597
11783
  main2();
11598
11784
  }