peachsim 0.1.1874 → 0.1.1876

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 (96) hide show
  1. package/README.md +1 -0
  2. package/cli/commands/do-chain.ts +1 -1
  3. package/cli/commands/inspect/settling.ts +132 -92
  4. package/cli/outbound-endpoints.ts +4 -0
  5. package/dist-lib/agent-daemon-client.cjs +1 -1
  6. package/dist-lib/agent-events.cjs +1 -1
  7. package/dist-lib/attached-projects.cjs +1 -1
  8. package/dist-lib/auth/shared-session.cjs +1 -1
  9. package/dist-lib/backend-origin.cjs +1 -1
  10. package/dist-lib/beta.cjs +1 -1
  11. package/dist-lib/beta.mjs +1 -1
  12. package/dist-lib/bridge-constants.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.mjs +1 -1
  15. package/dist-lib/bridge-contract.cjs +1 -1
  16. package/dist-lib/bridge-contract.mjs +1 -1
  17. package/dist-lib/bundle-channel.cjs +174 -127
  18. package/dist-lib/capture-contract.cjs +1 -1
  19. package/dist-lib/capture-contract.mjs +1 -1
  20. package/dist-lib/cloud-contract.cjs +1 -1
  21. package/dist-lib/cloud-contract.mjs +1 -1
  22. package/dist-lib/cloud-test-args.cjs +1 -1
  23. package/dist-lib/cloud-test-args.mjs +1 -1
  24. package/dist-lib/cloud.cjs +1 -1
  25. package/dist-lib/cloud.mjs +1 -1
  26. package/dist-lib/config.cjs +1 -1
  27. package/dist-lib/config.mjs +1 -1
  28. package/dist-lib/detox/index.cjs +141 -102
  29. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  30. package/dist-lib/expo-swift-bundle.cjs +55 -32
  31. package/dist-lib/expo-swift-metadata.cjs +1 -1
  32. package/dist-lib/expo-swift-metadata.mjs +1 -1
  33. package/dist-lib/home-paths.cjs +1 -1
  34. package/dist-lib/host/bridge-host.cjs +72 -38
  35. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  36. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  37. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  38. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  39. package/dist-lib/host/websocket-proxy.cjs +1 -1
  40. package/dist-lib/index.cjs +124 -96
  41. package/dist-lib/jump-to-source-babel.cjs +1 -1
  42. package/dist-lib/jump-to-source-native.cjs +1 -1
  43. package/dist-lib/kotlin-host.cjs +1 -1
  44. package/dist-lib/menu.cjs +1 -1
  45. package/dist-lib/menu.mjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  48. package/dist-lib/metro-production-bundle.cjs +1 -1
  49. package/dist-lib/metro-production-bundle.mjs +1 -1
  50. package/dist-lib/metro.cjs +6 -4
  51. package/dist-lib/native-app-identity-project.cjs +5 -3
  52. package/dist-lib/native-app-identity-project.mjs +5 -3
  53. package/dist-lib/native-app-identity.cjs +1 -1
  54. package/dist-lib/native-app-identity.mjs +1 -1
  55. package/dist-lib/native-firebase-metadata.cjs +1 -1
  56. package/dist-lib/native-firebase-metadata.mjs +1 -1
  57. package/dist-lib/pdfium-raster.cjs +1 -1
  58. package/dist-lib/pdfium-raster.mjs +1 -1
  59. package/dist-lib/plist.cjs +1 -1
  60. package/dist-lib/plist.mjs +1 -1
  61. package/dist-lib/profiles.cjs +1 -1
  62. package/dist-lib/public-brand.cjs +1 -1
  63. package/dist-lib/public-origins-lib-esm.json +24 -24
  64. package/dist-lib/public-origins-lib.json +54 -54
  65. package/dist-lib/react-native-host-modules.cjs +1 -1
  66. package/dist-lib/react-native-host-modules.mjs +1 -1
  67. package/dist-lib/reap-browser.cjs +1 -1
  68. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  69. package/dist-lib/sdk.cjs +119 -93
  70. package/dist-lib/sdk.mjs +119 -93
  71. package/dist-lib/skills.cjs +186 -128
  72. package/dist-lib/swift-compile.cjs +20 -16
  73. package/dist-lib/swift-compile.mjs +20 -16
  74. package/dist-lib/swift-package.cjs +1 -1
  75. package/dist-lib/swift-package.mjs +1 -1
  76. package/dist-lib/swift-submit.cjs +1 -1
  77. package/dist-lib/swift-submit.mjs +1 -1
  78. package/dist-lib/swift-toolchain.cjs +1 -1
  79. package/dist-lib/swift.cjs +1 -1
  80. package/dist-lib/vite-swift.cjs +21 -17
  81. package/dist-lib/vite.cjs +2 -2
  82. package/dist-lib/worklet-executable.cjs +1 -1
  83. package/dist-lib/worklet-executable.mjs +1 -1
  84. package/package.json +1 -1
  85. package/runtime-companion.json +1 -1
  86. package/skills/contrast/SKILL.md +3 -2
  87. package/src/bundle-channel.mjs +21 -11
  88. package/src/expo-native-prebuilt.ts +4 -2
  89. package/src/native-app-identity-project.ts +3 -1
  90. package/src/native-bundles.ts +5 -1
  91. package/src/nitroContract.ts +43 -12
  92. package/src/sim-client.ts +4 -2
  93. package/src/swift-compile.ts +22 -14
  94. package/src/swift-host.ts +5 -1
  95. package/src/turbo-bundle.ts +14 -1
  96. package/src/turbo-source.ts +4 -3
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -172,6 +172,49 @@ var init_node_http_fetch = __esm({
172
172
  }
173
173
  });
174
174
 
175
+ // src/home-paths.ts
176
+ function ambientHomeDir() {
177
+ return import_node_path.default.join((0, import_node_os.homedir)(), ".peach");
178
+ }
179
+ function rnxHomeDir() {
180
+ const override = process.env[PEACH_HOME_ENV];
181
+ if (override && override.length > 0) return import_node_path.default.resolve(override);
182
+ return ambientHomeDir();
183
+ }
184
+ function runtimesDir() {
185
+ return import_node_path.default.join(rnxHomeDir(), "runtimes");
186
+ }
187
+ function runtimeDir(version) {
188
+ return import_node_path.default.join(runtimesDir(), version);
189
+ }
190
+ function activeRuntimeFile() {
191
+ return import_node_path.default.join(runtimesDir(), ACTIVE_RUNTIME_FILE);
192
+ }
193
+ function cacheDir() {
194
+ return import_node_path.default.join(rnxHomeDir(), "cache");
195
+ }
196
+ function readActiveRuntime() {
197
+ try {
198
+ const value = import_node_fs.default.readFileSync(activeRuntimeFile(), "utf8").trim();
199
+ return value.length > 0 ? value : null;
200
+ } catch {
201
+ return null;
202
+ }
203
+ }
204
+ var import_node_fs, import_node_os, import_node_path, PEACH_HOME_ENV, ACTIVE_RUNTIME_FILE, DAEMON_LOCKFILE_MAX_BYTES;
205
+ var init_home_paths = __esm({
206
+ "src/home-paths.ts"() {
207
+ "use strict";
208
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
209
+ import_node_fs = __toESM(require("node:fs"), 1);
210
+ import_node_os = require("node:os");
211
+ import_node_path = __toESM(require("node:path"), 1);
212
+ PEACH_HOME_ENV = "PEACH_HOME";
213
+ ACTIVE_RUNTIME_FILE = "active";
214
+ DAEMON_LOCKFILE_MAX_BYTES = 16 * 1024;
215
+ }
216
+ });
217
+
175
218
  // ../peach-compat/src/version-range.ts
176
219
  function compareVersions(left, right) {
177
220
  if (left.major !== right.major) return left.major < right.major ? -1 : 1;
@@ -687,7 +730,7 @@ var init_openstep_plist = __esm({
687
730
  });
688
731
 
689
732
  // src/xcode-target-members.ts
690
- function xcodePathResolver(objects, projectDir, join14) {
733
+ function xcodePathResolver(objects, projectDir, join15) {
691
734
  const parents = /* @__PURE__ */ new Map();
692
735
  for (const [id, entry] of Object.entries(objects)) {
693
736
  if (!isDict(entry)) continue;
@@ -705,11 +748,11 @@ function xcodePathResolver(objects, projectDir, join14) {
705
748
  const own = str(entry.path) ?? "";
706
749
  const tree3 = str(entry.sourceTree) ?? "<group>";
707
750
  if (tree3 === "<absolute>") result = own;
708
- else if (tree3 === "SOURCE_ROOT") result = join14(projectDir, own);
751
+ else if (tree3 === "SOURCE_ROOT") result = join15(projectDir, own);
709
752
  else if (tree3 === "<group>") {
710
753
  const parent = parents.get(id);
711
754
  const base = parent ? resolve4(parent) : projectDir;
712
- if (base !== null) result = join14(base, own);
755
+ if (base !== null) result = join15(base, own);
713
756
  }
714
757
  }
715
758
  paths.set(id, result);
@@ -731,7 +774,7 @@ function xcodeTargetMemberVisitor(objects) {
731
774
  if (isDict(group) && group.isa === "PBXFileSystemSynchronizedRootGroup")
732
775
  synchronizedGroups.push({ id, group });
733
776
  }
734
- return (targetId, resolvePath, filesUnder, join14, visit3) => {
777
+ return (targetId, resolvePath, filesUnder, join15, visit3) => {
735
778
  const target = objects[targetId];
736
779
  if (!isDict(target)) return;
737
780
  for (const phaseId of list(target.buildPhases)) {
@@ -766,7 +809,7 @@ function xcodeTargetMemberVisitor(objects) {
766
809
  for (const relative4 of list(exception.membershipExceptions))
767
810
  exceptions.add(relative4);
768
811
  }
769
- const members2 = owned.has(groupId) ? filesUnder(folder) : [...exceptions].flatMap((relative4) => filesUnder(join14(folder, relative4)));
812
+ const members2 = owned.has(groupId) ? filesUnder(folder) : [...exceptions].flatMap((relative4) => filesUnder(join15(folder, relative4)));
770
813
  for (const file of members2) {
771
814
  const relative4 = file.slice(prefix.length);
772
815
  const excepted = [...exceptions].some(
@@ -1173,22 +1216,37 @@ function readCompiledMetadata(label, value, readPackage, names) {
1173
1216
  return { platform: "ios", packages, url, hash, icuUrl: icuUrl2, bundleFiles };
1174
1217
  }
1175
1218
  function readTurboMetadata(value) {
1219
+ if (value === null || value === void 0) return null;
1220
+ if (typeof value !== "object" || Array.isArray(value) || Reflect.get(value, "platform") !== NITRO_GUEST_PLATFORM)
1221
+ throw new Error("invalid TurboModule compilation metadata");
1222
+ const listed = Reflect.get(value, "unavailable");
1223
+ if (listed !== void 0 && !Array.isArray(listed))
1224
+ throw new Error("invalid TurboModule compilation metadata");
1225
+ const unavailable2 = listed?.map((entry) => {
1226
+ if (!isRecord(entry) || typeof entry.name !== "string" || !entry.name || typeof entry.diagnostic !== "string" || !entry.diagnostic)
1227
+ throw new Error("invalid TurboModule compilation metadata");
1228
+ return { name: entry.name, diagnostic: entry.diagnostic };
1229
+ });
1230
+ const packages = Reflect.get(value, "packages");
1231
+ const packed = Reflect.get(value, "bundleFiles");
1232
+ if (Array.isArray(packages) && packages.length === 0 && unavailable2 && unavailable2.length > 0 && Reflect.get(value, "url") === "" && Reflect.get(value, "hash") === "" && Reflect.get(value, "icuUrl") === "" && isRecord(packed) && Object.keys(packed).length === 0) {
1233
+ return {
1234
+ platform: "ios",
1235
+ packages: [],
1236
+ url: "",
1237
+ hash: "",
1238
+ icuUrl: "",
1239
+ bundleFiles: {},
1240
+ unavailable: unavailable2
1241
+ };
1242
+ }
1176
1243
  const metadata = readCompiledMetadata(
1177
1244
  "TurboModule",
1178
1245
  value,
1179
1246
  readCompiledPackage,
1180
1247
  () => []
1181
1248
  );
1182
- if (!metadata) return null;
1183
- const listed = Reflect.get(Object(value), "unavailable");
1184
- if (listed === void 0) return metadata;
1185
- if (!Array.isArray(listed)) throw new Error("invalid TurboModule compilation metadata");
1186
- const unavailable2 = listed.map((entry) => {
1187
- if (!isRecord(entry) || typeof entry.name !== "string" || typeof entry.diagnostic !== "string")
1188
- throw new Error("invalid TurboModule compilation metadata");
1189
- return { name: entry.name, diagnostic: entry.diagnostic };
1190
- });
1191
- return { ...metadata, unavailable: unavailable2 };
1249
+ return metadata && (unavailable2 ? { ...metadata, unavailable: unavailable2 } : metadata);
1192
1250
  }
1193
1251
  function insertNitroFooter(source, metadata) {
1194
1252
  readNitroMetadata(metadata);
@@ -1485,9 +1543,9 @@ var init_public_brand = __esm({
1485
1543
  // cli/app-project.ts
1486
1544
  function firstNamedFile(dir, names) {
1487
1545
  for (const name3 of names) {
1488
- const candidate = import_node_path2.default.join(dir, name3);
1546
+ const candidate = import_node_path3.default.join(dir, name3);
1489
1547
  try {
1490
- if (import_node_fs2.default.statSync(candidate).isFile()) return candidate;
1548
+ if (import_node_fs3.default.statSync(candidate).isFile()) return candidate;
1491
1549
  } catch {
1492
1550
  }
1493
1551
  }
@@ -1500,25 +1558,25 @@ function findRNXAppConfig(dir) {
1500
1558
  return firstNamedFile(dir, PEACH_APP_CONFIG_NAMES);
1501
1559
  }
1502
1560
  function resolveAppProject(projectRoot) {
1503
- const appDir = import_node_path2.default.resolve(projectRoot);
1561
+ const appDir = import_node_path3.default.resolve(projectRoot);
1504
1562
  try {
1505
- if (!import_node_fs2.default.statSync(appDir).isDirectory()) return null;
1563
+ if (!import_node_fs3.default.statSync(appDir).isDirectory()) return null;
1506
1564
  } catch {
1507
1565
  return null;
1508
1566
  }
1509
1567
  const configPath = findRNXAppConfig(appDir);
1510
- if (!configPath && !findExpoAppConfig(appDir) && !import_node_fs2.default.existsSync(import_node_path2.default.join(appDir, "package.json"))) {
1568
+ if (!configPath && !findExpoAppConfig(appDir) && !import_node_fs3.default.existsSync(import_node_path3.default.join(appDir, "package.json"))) {
1511
1569
  return null;
1512
1570
  }
1513
1571
  return { appDir, configPath };
1514
1572
  }
1515
- var import_node_fs2, import_node_path2, EXPO_APP_CONFIG_NAMES, PEACH_APP_CONFIG_NAMES;
1573
+ var import_node_fs3, import_node_path3, EXPO_APP_CONFIG_NAMES, PEACH_APP_CONFIG_NAMES;
1516
1574
  var init_app_project = __esm({
1517
1575
  "cli/app-project.ts"() {
1518
1576
  "use strict";
1519
1577
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1520
- import_node_fs2 = __toESM(require("node:fs"), 1);
1521
- import_node_path2 = __toESM(require("node:path"), 1);
1578
+ import_node_fs3 = __toESM(require("node:fs"), 1);
1579
+ import_node_path3 = __toESM(require("node:path"), 1);
1522
1580
  EXPO_APP_CONFIG_NAMES = [
1523
1581
  "app.config.js",
1524
1582
  "app.config.ts",
@@ -1545,49 +1603,6 @@ var init_forked_script_contract = __esm({
1545
1603
  }
1546
1604
  });
1547
1605
 
1548
- // src/home-paths.ts
1549
- function ambientHomeDir() {
1550
- return import_node_path3.default.join((0, import_node_os.homedir)(), ".peach");
1551
- }
1552
- function rnxHomeDir() {
1553
- const override = process.env[PEACH_HOME_ENV];
1554
- if (override && override.length > 0) return import_node_path3.default.resolve(override);
1555
- return ambientHomeDir();
1556
- }
1557
- function runtimesDir() {
1558
- return import_node_path3.default.join(rnxHomeDir(), "runtimes");
1559
- }
1560
- function runtimeDir(version) {
1561
- return import_node_path3.default.join(runtimesDir(), version);
1562
- }
1563
- function activeRuntimeFile() {
1564
- return import_node_path3.default.join(runtimesDir(), ACTIVE_RUNTIME_FILE);
1565
- }
1566
- function cacheDir() {
1567
- return import_node_path3.default.join(rnxHomeDir(), "cache");
1568
- }
1569
- function readActiveRuntime() {
1570
- try {
1571
- const value = import_node_fs3.default.readFileSync(activeRuntimeFile(), "utf8").trim();
1572
- return value.length > 0 ? value : null;
1573
- } catch {
1574
- return null;
1575
- }
1576
- }
1577
- var import_node_fs3, import_node_os, import_node_path3, PEACH_HOME_ENV, ACTIVE_RUNTIME_FILE, DAEMON_LOCKFILE_MAX_BYTES;
1578
- var init_home_paths = __esm({
1579
- "src/home-paths.ts"() {
1580
- "use strict";
1581
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1582
- import_node_fs3 = __toESM(require("node:fs"), 1);
1583
- import_node_os = require("node:os");
1584
- import_node_path3 = __toESM(require("node:path"), 1);
1585
- PEACH_HOME_ENV = "PEACH_HOME";
1586
- ACTIVE_RUNTIME_FILE = "active";
1587
- DAEMON_LOCKFILE_MAX_BYTES = 16 * 1024;
1588
- }
1589
- });
1590
-
1591
1606
  // src/kotlin-toolchain.ts
1592
1607
  function readToolchain(moduleRoot) {
1593
1608
  const parsed = JSON.parse(
@@ -24538,9 +24553,9 @@ function emitSwiftPackageManifest(args) {
24538
24553
  foundationCategoryObjects.map((name3) => `lib/Foundation-${name3}.o`)
24539
24554
  );
24540
24555
  const roots = swiftObjcRootObjects(distribution.id, moduleRoot, distribution.objects);
24541
- const eager = new Set(
24556
+ const eager = args.lazyDistribution ? new Set(
24542
24557
  objects.filter((object4) => roots.has(object4) || categoryObjects.has(object4))
24543
- );
24558
+ ) : new Set(objects);
24544
24559
  const list2 = [
24545
24560
  ...[...eager].map(quoted),
24546
24561
  "-Wl,--start-lib",
@@ -26742,7 +26757,8 @@ module ${moduleName2}.Swift {
26742
26757
  distributionLink: {
26743
26758
  path: import_node_path38.default.join(layout.root, ".peach-distribution-objects.rsp"),
26744
26759
  files: files2
26745
- }
26760
+ },
26761
+ lazyDistribution: input.optimize
26746
26762
  } : {},
26747
26763
  ...prebuilt && frameworkLink ? {
26748
26764
  prebuilt: {
@@ -27559,7 +27575,7 @@ function compileSwiftProjectOnce(input, options) {
27559
27575
  process.env.LD_LIBRARY_PATH
27560
27576
  ].filter(Boolean).join(":")
27561
27577
  } : {},
27562
- PEACH_DEFER_WASM_LINK: "1"
27578
+ ...input.optimize ? { PEACH_DEFER_WASM_LINK: "1" } : {}
27563
27579
  },
27564
27580
  maxBuffer: 64 * 1024 * 1024,
27565
27581
  timeout: options.timeoutMs,
@@ -27659,9 +27675,11 @@ function compileSwiftProjectOnce(input, options) {
27659
27675
  ])
27660
27676
  ];
27661
27677
  const linked = builtArtifact(layout);
27662
- (0, import_node_fs40.rmSync)(import_node_path38.default.join(root, ".peach-link.rsp"), { force: true });
27663
- if ((0, import_node_fs40.existsSync)(linked) && (0, import_node_fs40.statSync)(linked).size <= 8)
27664
- (0, import_node_fs40.rmSync)(linked, { force: true });
27678
+ if (input.optimize) {
27679
+ (0, import_node_fs40.rmSync)(import_node_path38.default.join(root, ".peach-link.rsp"), { force: true });
27680
+ if ((0, import_node_fs40.existsSync)(linked) && (0, import_node_fs40.statSync)(linked).size <= 8)
27681
+ (0, import_node_fs40.rmSync)(linked, { force: true });
27682
+ }
27665
27683
  report("compiling and linking Swift modules");
27666
27684
  try {
27667
27685
  const headerBuilds = preparation.headerProductTarget ? [
@@ -27775,13 +27793,14 @@ function compileSwiftProjectOnce(input, options) {
27775
27793
  );
27776
27794
  }
27777
27795
  if (options.project) removeProjectLinks(root);
27778
- pruneSwiftWasmLink(
27779
- root,
27780
- options.toolchainBin,
27781
- frameworkRoot,
27782
- input.staticClangTargets,
27783
- options.project
27784
- );
27796
+ if (input.optimize)
27797
+ pruneSwiftWasmLink(
27798
+ root,
27799
+ options.toolchainBin,
27800
+ frameworkRoot,
27801
+ input.staticClangTargets,
27802
+ options.project
27803
+ );
27785
27804
  const output2 = options.project ? projectOutputFile(root, linked, options.project) : linked;
27786
27805
  const optimized = `${output2}.optimized`;
27787
27806
  if (input.optimize) await optimizeWasm(output2, optimized);
@@ -27967,7 +27986,7 @@ var init_swift_compile = __esm({
27967
27986
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
27968
27987
  MULTI_MANIFEST_VERSION = 65;
27969
27988
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
27970
- compilerSourceDigest = true ? "16355cfe66c10b553640a95acf7ed3b7f810db06602eb8edab8620da0ec7b94a" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
27989
+ compilerSourceDigest = true ? "bbb12360ef251bb3cd28572f60d5685f72ddb59c847cbbbf6d154c0bea302b2e" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
27971
27990
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
27972
27991
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
27973
27992
  cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
@@ -33591,7 +33610,7 @@ var init_swift_standin_digest = __esm({
33591
33610
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
33592
33611
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
33593
33612
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
33594
- STANDIN_SOURCE_DIGEST = true ? "bd8e32c07fde4e95b32471690e07a890275838ac56295defcbb56b4b59a7f066" : standinSourceDigest();
33613
+ STANDIN_SOURCE_DIGEST = true ? "3aae44df21589ccc4ee37b75dadeaabf7588816d438527b310b508e1e1c4833c" : standinSourceDigest();
33595
33614
  }
33596
33615
  });
33597
33616
 
@@ -33633,7 +33652,9 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
33633
33652
  const appVersion = nonEmptyString2(dictionary2.CFBundleShortVersionString) ?? nonEmptyString2(settings?.("MARKETING_VERSION"));
33634
33653
  const buildVersion = nonEmptyString2(dictionary2.CFBundleVersion) ?? nonEmptyString2(settings?.("CURRENT_PROJECT_VERSION"));
33635
33654
  if (!appVersion || !buildVersion) {
33636
- throw new Error("native app has no version or build version");
33655
+ throw new Error(
33656
+ "native app has no version or build version; values its Xcode scheme derives in a build phase can be exported as process environment variables when opening"
33657
+ );
33637
33658
  }
33638
33659
  const bundleName = nonEmptyString2(dictionary2.CFBundleName) ?? nonEmptyString2(settings?.("PRODUCT_NAME")) ?? app.name;
33639
33660
  const applicationDisplayName = nonEmptyString2(dictionary2.CFBundleDisplayName);
@@ -33893,8 +33914,9 @@ function readSources(value) {
33893
33914
  function packageRootOf(appRoot, file) {
33894
33915
  const parts = file.split("/");
33895
33916
  if (parts[0] !== "node_modules") return null;
33896
- const depth = parts[1]?.startsWith("@") ? 3 : 2;
33897
- return parts.length > depth ? import_node_path55.default.join(appRoot, ...parts.slice(0, depth)) : null;
33917
+ const at = parts.lastIndexOf("node_modules") + 1;
33918
+ const end = at + (parts[at]?.startsWith("@") ? 2 : 1);
33919
+ return parts.length > end ? import_node_path55.default.join(appRoot, ...parts.slice(0, end)) : null;
33898
33920
  }
33899
33921
  async function expoNativeInputs(appRoot) {
33900
33922
  appRoot = import_node_fs56.default.realpathSync(appRoot);
@@ -34077,7 +34099,7 @@ var init_expo_native_prebuilt = __esm({
34077
34099
  init_swift_native_pin();
34078
34100
  init_xcode_project();
34079
34101
  EXPO_NATIVE_ENTRY_NAME = "ios";
34080
- EXPO_NATIVE_COMPILER_DIGEST = true ? "56768b586c8abed368bc0b809466dd18e971de9e5684301bed01591bcbb3a12c" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
34102
+ EXPO_NATIVE_COMPILER_DIGEST = true ? "1651e5d5a4c1c41d29a8dfc1164aaf460a20a7ae8a359e302bcde615f26387b2" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
34081
34103
  IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
34082
34104
  expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
34083
34105
  isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
@@ -43020,8 +43042,9 @@ function sourceContentStamp(packagePath, moduleRootOverride) {
43020
43042
  hash.update(JSON.stringify(projects().get(packagePath)?.nativeFiles ?? {}));
43021
43043
  hash.update(JSON.stringify(projects().get(packagePath)?.resourceBundles ?? []));
43022
43044
  hash.update(JSON.stringify(projects().get(packagePath)?.bundleFiles ?? null));
43045
+ const root = import_node_fs70.default.realpathSync(packagePath);
43023
43046
  for (const file of [...new Set(packageFiles(packagePath))].sort()) {
43024
- hash.update(import_node_path68.default.relative(packagePath, file));
43047
+ hash.update(import_node_path68.default.relative(root, file));
43025
43048
  hash.update(import_node_fs70.default.readFileSync(file));
43026
43049
  }
43027
43050
  hash.update(moduleStamp(packagePath, moduleRootOverride, false));
@@ -45762,9 +45785,9 @@ function registersReactModule(source) {
45762
45785
  return OBJC_BRIDGE.test(stripped2) && !/-Swift\.h\b/.test(stripped2);
45763
45786
  }
45764
45787
  function fabricComponents(root) {
45765
- const manifest = JSON.parse(
45766
- import_node_fs74.default.readFileSync(import_node_path72.default.join(root, "package.json"), "utf8")
45767
- );
45788
+ const manifestPath = import_node_path72.default.join(root, "package.json");
45789
+ if (!import_node_fs74.default.existsSync(manifestPath)) return false;
45790
+ const manifest = JSON.parse(import_node_fs74.default.readFileSync(manifestPath, "utf8"));
45768
45791
  if (!object3(manifest) || !object3(manifest.codegenConfig)) return false;
45769
45792
  return manifest.codegenConfig.type !== "modules";
45770
45793
  }
@@ -50979,7 +51002,7 @@ var init_nitro_superset = __esm({
50979
51002
  init_swift_standin_digest();
50980
51003
  NITRO_SUPERSET_ENTRY_NAME = "superset";
50981
51004
  packageVersion = (root) => JSON.parse((0, import_node_fs80.readFileSync)((0, import_node_path78.join)(root, "package.json"), "utf8")).version;
50982
- NITRO_COMPILER_DIGEST = true ? "5a02e7fa03e20f7cc2acbe461109d7f5fbb6d88c7377335749c98c5d31329376" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
51005
+ NITRO_COMPILER_DIGEST = true ? "db7c5efbd6c73a155ea9f813c5f790bea9300cdae787dbbe13a796793329ff23" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
50983
51006
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
50984
51007
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
50985
51008
  published2 = /* @__PURE__ */ new Map();
@@ -51571,7 +51594,18 @@ async function compileTurboApp(appRoot, origin, moduleRoot, iosTarget) {
51571
51594
  const compiled = providers.filter(({ name: name3 }) => !installed?.unavailable.has(name3));
51572
51595
  if (compiled.length === 0) {
51573
51596
  for (const { diagnostic } of unavailable2) console.warn(`[peach] ${diagnostic}`);
51574
- return null;
51597
+ return unavailable2.length > 0 ? {
51598
+ artifact: null,
51599
+ metadata: {
51600
+ platform: "ios",
51601
+ packages: [],
51602
+ url: "",
51603
+ hash: "",
51604
+ icuUrl: "",
51605
+ bundleFiles: {},
51606
+ unavailable: unavailable2
51607
+ }
51608
+ } : null;
51575
51609
  }
51576
51610
  const { artifact, collection } = await compileTurboModule({
51577
51611
  appRoot,
@@ -54165,6 +54199,8 @@ __export(bundle_channel_exports, {
54165
54199
  module.exports = __toCommonJS(bundle_channel_exports);
54166
54200
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
54167
54201
  var import_node_crypto46 = require("node:crypto");
54202
+ var import_node_fs91 = require("node:fs");
54203
+ var import_node_path90 = require("node:path");
54168
54204
  var import_node_vm = require("node:vm");
54169
54205
  var import_node_zlib4 = require("node:zlib");
54170
54206
  init_backend_origin();
@@ -54502,6 +54538,9 @@ async function resolveConnectionInput(input, pageOrigin, options = {}) {
54502
54538
  return { bundleUrl: parsed.toString(), port, framework: "unknown" };
54503
54539
  }
54504
54540
 
54541
+ // src/bundle-channel.mjs
54542
+ init_home_paths();
54543
+
54505
54544
  // src/installed-package-versions.ts
54506
54545
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
54507
54546
  var import_fs = __toESM(require("fs"), 1);
@@ -57340,8 +57379,8 @@ var COMPAT_STUBS = {
57340
57379
 
57341
57380
  // src/installed-native-build-options.ts
57342
57381
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
57343
- var import_node_fs = __toESM(require("node:fs"), 1);
57344
- var import_node_path = __toESM(require("node:path"), 1);
57382
+ var import_node_fs2 = __toESM(require("node:fs"), 1);
57383
+ var import_node_path2 = __toESM(require("node:path"), 1);
57345
57384
  init_version_range();
57346
57385
  var RIVE_PACKAGE = "@rive-app/react-native";
57347
57386
  var RIVE_05 = [">=0.5.0 <0.6.0"];
@@ -57350,11 +57389,11 @@ function missing(error) {
57350
57389
  }
57351
57390
  async function answerAsync(step) {
57352
57391
  try {
57353
- if (step.type === "realpath") return await import_node_fs.default.promises.realpath(step.path);
57354
- if (step.type === "read") return await import_node_fs.default.promises.readFile(step.path, "utf8");
57392
+ if (step.type === "realpath") return await import_node_fs2.default.promises.realpath(step.path);
57393
+ if (step.type === "read") return await import_node_fs2.default.promises.readFile(step.path, "utf8");
57355
57394
  if (step.type === "isDirectory")
57356
- return (await import_node_fs.default.promises.stat(step.path)).isDirectory();
57357
- return (await import_node_fs.default.promises.readdir(step.path, { withFileTypes: true })).map(
57395
+ return (await import_node_fs2.default.promises.stat(step.path)).isDirectory();
57396
+ return (await import_node_fs2.default.promises.readdir(step.path, { withFileTypes: true })).map(
57358
57397
  (entry) => ({
57359
57398
  name: entry.name,
57360
57399
  directory: entry.isDirectory(),
@@ -57387,7 +57426,7 @@ function* rubyFiles(directory2, seen, iosRoot = false) {
57387
57426
  const files2 = [];
57388
57427
  for (const entry of entries.sort((a, b) => a.name.localeCompare(b.name))) {
57389
57428
  if (iosRoot && (entry.name === "Pods" || entry.name === "build")) continue;
57390
- const target = import_node_path.default.join(directory2, entry.name);
57429
+ const target = import_node_path2.default.join(directory2, entry.name);
57391
57430
  let isDirectory3 = entry.directory;
57392
57431
  if (entry.symbolicLink)
57393
57432
  isDirectory3 = (yield { type: "isDirectory", path: target }) === true;
@@ -57400,8 +57439,8 @@ function* nativeBuildOptionsWalk(projectRoot, versions, environment) {
57400
57439
  if (!needsRiveOptions(versions)) return {};
57401
57440
  if (environment.USE_RIVE_LEGACY === "1" || environment.USE_RIVE_LEGACY === "true")
57402
57441
  return { [RIVE_PACKAGE]: { USE_RIVE_LEGACY: true } };
57403
- const ios = import_node_path.default.join(projectRoot, "ios");
57404
- const podfile = import_node_path.default.join(ios, "Podfile");
57442
+ const ios = import_node_path2.default.join(projectRoot, "ios");
57443
+ const podfile = import_node_path2.default.join(ios, "Podfile");
57405
57444
  const files2 = [podfile, ...yield* rubyFiles(ios, /* @__PURE__ */ new Set(), true)];
57406
57445
  let value = false;
57407
57446
  let assigned = false;
@@ -57783,7 +57822,11 @@ function insertNativeBundleFooters(source, natives, locate) {
57783
57822
  }
57784
57823
  if (natives.turbo) {
57785
57824
  const turbo = natives.turbo.metadata;
57786
- metadata.turbo = { ...turbo, url: served(turbo.url), icuUrl: served(turbo.icuUrl) };
57825
+ metadata.turbo = {
57826
+ ...turbo,
57827
+ url: turbo.url && served(turbo.url),
57828
+ icuUrl: turbo.icuUrl && served(turbo.icuUrl)
57829
+ };
57787
57830
  source = insertTurboFooter(source, metadata.turbo);
57788
57831
  }
57789
57832
  return { source, metadata: Object.keys(metadata).length ? metadata : null };
@@ -57970,6 +58013,20 @@ function prepareChannel({
57970
58013
  ];
57971
58014
  return { platform: platform2, key: `${prefix}/${channelKey(platform2)}`, metadata, objects };
57972
58015
  }
58016
+ function brotliCompressCached(bytes) {
58017
+ const file = (0, import_node_path90.join)(cacheDir(), "bundle-channel-brotli", `${digest3(bytes)}-q11-w24.br`);
58018
+ if ((0, import_node_fs91.existsSync)(file)) return (0, import_node_fs91.readFileSync)(file);
58019
+ const compressed = (0, import_node_zlib4.brotliCompressSync)(bytes, {
58020
+ params: {
58021
+ [import_node_zlib4.constants.BROTLI_PARAM_QUALITY]: 11,
58022
+ [import_node_zlib4.constants.BROTLI_PARAM_LGWIN]: 24
58023
+ }
58024
+ });
58025
+ (0, import_node_fs91.mkdirSync)((0, import_node_path90.dirname)(file), { recursive: true });
58026
+ (0, import_node_fs91.writeFileSync)(`${file}.${process.pid}`, compressed);
58027
+ (0, import_node_fs91.renameSync)(`${file}.${process.pid}`, file);
58028
+ return compressed;
58029
+ }
57973
58030
  async function publishBundleChannel(release, { put, fetchObject = fetch }) {
57974
58031
  const precompressBrotli = !isLoopbackHost(new URL(release.origin).hostname);
57975
58032
  async function uploadVerified(object4, cacheControl) {
@@ -57979,12 +58036,7 @@ async function publishBundleChannel(release, { put, fetchObject = fetch }) {
57979
58036
  let expectedDecoded = object4.bytes;
57980
58037
  if (precompressBrotli && (object4.contentType === "application/wasm" || object4.contentType === "application/gzip" && object4.bytes[0] === 31 && object4.bytes[1] === 139)) {
57981
58038
  expectedDecoded = object4.contentType === "application/gzip" ? (0, import_node_zlib4.gunzipSync)(object4.bytes) : object4.bytes;
57982
- wireBytes = (0, import_node_zlib4.brotliCompressSync)(expectedDecoded, {
57983
- params: {
57984
- [import_node_zlib4.constants.BROTLI_PARAM_QUALITY]: 11,
57985
- [import_node_zlib4.constants.BROTLI_PARAM_LGWIN]: 24
57986
- }
57987
- });
58039
+ wireBytes = brotliCompressCached(expectedDecoded);
57988
58040
  if (object4.contentType === "application/gzip")
57989
58041
  contentType = "application/octet-stream";
57990
58042
  contentEncoding = "br";
@@ -58021,8 +58073,6 @@ async function publishBundleChannel(release, { put, fetchObject = fetch }) {
58021
58073
  }
58022
58074
  }
58023
58075
  async function packagePlatformBundle(projectRoot, platform2, bundle, { config, versions, readAssetFile, configuration }) {
58024
- const { readFileSync: readFileSync24 } = await import("node:fs");
58025
- const { basename: basename4 } = await import("node:path");
58026
58076
  const { produceConfiguredBundle: produceConfiguredBundle2 } = await Promise.resolve().then(() => (init_configured_bundle_producer(), configured_bundle_producer_exports));
58027
58077
  const assets2 = /* @__PURE__ */ new Map();
58028
58078
  for (const [registration] of bundle.toString("utf8").matchAll(/(?<=registerAsset\()\{[^{}]*"__packager_asset": true[^{}]*\}/g)) {
@@ -58030,8 +58080,8 @@ async function packagePlatformBundle(projectRoot, platform2, bundle, { config, v
58030
58080
  const directory2 = packagedAssetDirectory(asset.httpServerLocation);
58031
58081
  if (asset.files) {
58032
58082
  for (const file of asset.files) {
58033
- const path80 = `${directory2}/${basename4(file)}`;
58034
- if (!assets2.has(path80)) assets2.set(path80, readFileSync24(file));
58083
+ const path80 = `${directory2}/${(0, import_node_path90.basename)(file)}`;
58084
+ if (!assets2.has(path80)) assets2.set(path80, (0, import_node_fs91.readFileSync)(file));
58035
58085
  }
58036
58086
  continue;
58037
58087
  }
@@ -58130,17 +58180,16 @@ async function snapshotOneProductionBundle(projectRoot, entryFile, env = {}, { r
58130
58180
  const { execFile: execFile18 } = await import("node:child_process");
58131
58181
  const { mkdtemp, readFile: readFile2, rm: rm2 } = await import("node:fs/promises");
58132
58182
  const { tmpdir: tmpdir3 } = await import("node:os");
58133
- const { join: join14 } = await import("node:path");
58134
58183
  const { promisify: promisify18 } = await import("node:util");
58135
58184
  const inputs = await readPackagingInputs(projectRoot);
58136
58185
  const snapshots = [];
58137
58186
  for (const platform2 of platforms2) {
58138
- const out = await mkdtemp(join14(tmpdir3(), "peach-production-bundle-"));
58187
+ const out = await mkdtemp((0, import_node_path90.join)(tmpdir3(), "peach-production-bundle-"));
58139
58188
  try {
58140
58189
  await promisify18(execFile18)(
58141
58190
  runtimeExecutable,
58142
58191
  [
58143
- join14(projectRoot, "node_modules/.bin/react-native"),
58192
+ (0, import_node_path90.join)(projectRoot, "node_modules/.bin/react-native"),
58144
58193
  "bundle",
58145
58194
  "--platform",
58146
58195
  platform2,
@@ -58151,19 +58200,19 @@ async function snapshotOneProductionBundle(projectRoot, entryFile, env = {}, { r
58151
58200
  "--entry-file",
58152
58201
  entryFile,
58153
58202
  "--bundle-output",
58154
- join14(out, "bundle.js"),
58203
+ (0, import_node_path90.join)(out, "bundle.js"),
58155
58204
  "--assets-dest",
58156
- join14(out, "assets"),
58205
+ (0, import_node_path90.join)(out, "assets"),
58157
58206
  "--sourcemap-output",
58158
- join14(out, "bundle.js.map")
58207
+ (0, import_node_path90.join)(out, "bundle.js.map")
58159
58208
  ],
58160
58209
  { cwd: projectRoot, env: { ...process.env, ...env, NODE_ENV: "production" } }
58161
58210
  );
58162
58211
  snapshots.push(
58163
- await packagePlatformBundle(projectRoot, platform2, await readFile2(join14(out, "bundle.js")), {
58212
+ await packagePlatformBundle(projectRoot, platform2, await readFile2((0, import_node_path90.join)(out, "bundle.js")), {
58164
58213
  ...inputs,
58165
58214
  configuration: "Release",
58166
- readAssetFile: (asset, file) => readFile2(join14(out, asset.httpServerLocation, file))
58215
+ readAssetFile: (asset, file) => readFile2((0, import_node_path90.join)(out, asset.httpServerLocation, file))
58167
58216
  })
58168
58217
  );
58169
58218
  } finally {
@@ -58174,16 +58223,14 @@ async function snapshotOneProductionBundle(projectRoot, entryFile, env = {}, { r
58174
58223
  }
58175
58224
  async function snapshotOneDevBundle(projectRoot, env = {}, { runtimeExecutable = process.execPath, platforms: platforms2 = ["ios", "android"] } = {}) {
58176
58225
  const { spawn: spawn9 } = await import("node:child_process");
58177
- const { readFileSync: readFileSync24 } = await import("node:fs");
58178
58226
  const { createServer } = await import("node:net");
58179
- const { dirname: dirname6, join: join14 } = await import("node:path");
58180
58227
  const { createRequire: createRequire15 } = await import("node:module");
58181
- const onePackage = createRequire15(join14(projectRoot, "package.json")).resolve(
58228
+ const onePackage = createRequire15((0, import_node_path90.join)(projectRoot, "package.json")).resolve(
58182
58229
  "one/package.json"
58183
58230
  );
58184
- const oneBin = join14(
58185
- dirname6(onePackage),
58186
- JSON.parse(readFileSync24(onePackage, "utf8")).bin.one
58231
+ const oneBin = (0, import_node_path90.join)(
58232
+ (0, import_node_path90.dirname)(onePackage),
58233
+ JSON.parse((0, import_node_fs91.readFileSync)(onePackage, "utf8")).bin.one
58187
58234
  );
58188
58235
  const port = await new Promise((resolve4, reject) => {
58189
58236
  const server = createServer().listen(0, "127.0.0.1", () => {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/capture-contract.ts
4
4
  var RNX_SCREEN_CAPTURE_VERSION = 1;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
4
  var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-test-args.ts
4
4
  var CLOUD_TEST_ARGS_MAX_COUNT = 32;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;