peachsim 0.1.2768 → 0.1.2769

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 (132) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +2 -2
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +5 -5
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +3 -3
  13. package/dist-lib/bundle-channel.cjs +351 -77
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +3 -3
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +3 -3
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +2 -2
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +7 -7
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +5 -5
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-4DR5UGFN.mjs → acorn-GNB3RJH7.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-NNHQMYXA.mjs → chunk-3WG4L5YK.mjs} +372 -106
  28. package/dist-lib/esm-chunks/{chunk-PYVRYHRN.mjs → chunk-3ZKE33FC.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-FSZC4K7L.mjs → chunk-4GHACZYW.mjs} +5 -5
  30. package/dist-lib/esm-chunks/{chunk-LW6EFCKB.mjs → chunk-4IJOKKT2.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-MC3T7WXI.mjs → chunk-53WFZATQ.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-LDBKSWMK.mjs → chunk-57JPQBQL.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-FM4IQKZR.mjs → chunk-ALLMPTWQ.mjs} +2 -2
  34. package/dist-lib/esm-chunks/{chunk-EP3OX3CJ.mjs → chunk-BFLH7V77.mjs} +6 -6
  35. package/dist-lib/esm-chunks/{chunk-TNCPRFBQ.mjs → chunk-BP7TLKZD.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-UP76RU63.mjs → chunk-ETXC2XBY.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-P4QFEMNW.mjs → chunk-GHJPVQ3A.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-K6H2SOFN.mjs → chunk-L2U2IEHU.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-OASENKSR.mjs → chunk-MBLYJ74N.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-FY6GYFKM.mjs → chunk-MGIODRG3.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-CWLOVTXX.mjs → chunk-OG5C2CN2.mjs} +3 -3
  42. package/dist-lib/esm-chunks/{chunk-IXCYOMAY.mjs → chunk-OPIPPBGX.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-SZC5VUTW.mjs → chunk-TI42U3CD.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-NRFW2S2E.mjs → chunk-TJNFADI5.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-76RJVPS6.mjs → chunk-TTVQWJGW.mjs} +4 -4
  46. package/dist-lib/esm-chunks/{chunk-QS3CSXQR.mjs → chunk-VF3CWZTM.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-LMELFNFT.mjs → chunk-WWANYYJG.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-SBIBHVCU.mjs → chunk-XX7VUACB.mjs} +26 -13
  49. package/dist-lib/esm-chunks/{chunk-6FVNWSDJ.mjs → chunk-ZGNNVEWM.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-IA466TSB.mjs → chunk-ZLYAJ4CU.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{metro-layout-parser-4TX56S4G.mjs → metro-layout-parser-LT2DPN6F.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-7PIYWUST.mjs → swift-package-prebuilt-ZFFWBI33.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-7NOBYKIE.mjs → swift-sdk-app-module-UZ6BZSES.mjs} +22 -17
  54. package/dist-lib/esm-chunks/{swift-sdk-image-FTSV6Y6Y.mjs → swift-sdk-image-J2DE3SBW.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-TDBFULDN.mjs → swift-sdk-image-producer-C4U4EQRW.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +351 -77
  57. package/dist-lib/expo-swift-metadata.cjs +1 -1
  58. package/dist-lib/expo-swift-metadata.mjs +7 -7
  59. package/dist-lib/home-paths.cjs +1 -1
  60. package/dist-lib/host/bridge-host.cjs +351 -77
  61. package/dist-lib/host/fetch-proxy-handler.cjs +24 -20
  62. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  63. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  64. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  65. package/dist-lib/host/websocket-proxy.cjs +1 -1
  66. package/dist-lib/index.cjs +1 -1
  67. package/dist-lib/kotlin-host.cjs +1 -1
  68. package/dist-lib/menu.cjs +1 -1
  69. package/dist-lib/menu.mjs +3 -3
  70. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  71. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  72. package/dist-lib/metro-production-bundle.cjs +1 -1
  73. package/dist-lib/metro-production-bundle.mjs +4 -4
  74. package/dist-lib/native-app-identity-project.cjs +1 -1
  75. package/dist-lib/native-app-identity-project.mjs +15 -15
  76. package/dist-lib/native-app-identity.cjs +1 -1
  77. package/dist-lib/native-app-identity.mjs +6 -6
  78. package/dist-lib/native-firebase-metadata.cjs +1 -1
  79. package/dist-lib/native-firebase-metadata.mjs +3 -3
  80. package/dist-lib/pdfium-raster.cjs +1 -1
  81. package/dist-lib/pdfium-raster.mjs +2 -2
  82. package/dist-lib/plist.cjs +1 -1
  83. package/dist-lib/plist.mjs +3 -3
  84. package/dist-lib/profiles.cjs +1 -1
  85. package/dist-lib/public-brand.cjs +1 -1
  86. package/dist-lib/public-origins-lib-esm.json +85 -85
  87. package/dist-lib/public-origins-lib.json +64 -64
  88. package/dist-lib/react-native-host-modules.cjs +1 -1
  89. package/dist-lib/react-native-host-modules.mjs +2 -2
  90. package/dist-lib/reap-browser.cjs +1 -1
  91. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  92. package/dist-lib/sdk.cjs +1 -1
  93. package/dist-lib/sdk.mjs +8 -8
  94. package/dist-lib/skills.cjs +351 -77
  95. package/dist-lib/swift-compile.cjs +331 -57
  96. package/dist-lib/swift-compile.mjs +12 -12
  97. package/dist-lib/swift-package.cjs +1 -1
  98. package/dist-lib/swift-package.mjs +3 -3
  99. package/dist-lib/swift-submit.cjs +1 -1
  100. package/dist-lib/swift-submit.mjs +6 -6
  101. package/dist-lib/swift-svg-raster.cjs +1 -1
  102. package/dist-lib/swift-svg-raster.mjs +2 -2
  103. package/dist-lib/swift-toolchain.cjs +1 -1
  104. package/dist-lib/swift.cjs +1 -1
  105. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  106. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  107. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  108. package/dist-lib/vendor/acorn.cjs +1 -1
  109. package/dist-lib/vendor/magic-string.cjs +1 -1
  110. package/dist-lib/vendor/stream-json.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase.cjs +1 -1
  116. package/dist-lib/vendor/terser.cjs +1 -1
  117. package/dist-lib/vendor/valibot.cjs +1 -1
  118. package/dist-lib/vendor/ws.cjs +1 -1
  119. package/dist-lib/vendor/zod.cjs +1 -1
  120. package/dist-lib/worklet-executable.cjs +1 -1
  121. package/dist-lib/worklet-executable.mjs +3 -3
  122. package/dist-types/packages/peach-engine/src/render-worker/aux-pointer-native.d.ts +4 -0
  123. package/dist-types/packages/peach-engine/src/render-worker/auxPointerContract.d.ts +4 -0
  124. package/package.json +1 -1
  125. package/src/case-insensitive-header-overlay.ts +9 -1
  126. package/src/native-static-libraries.ts +16 -16
  127. package/src/swift-compile.ts +158 -42
  128. package/src/swift-distribution-mirror.ts +273 -10
  129. package/src/swift-objc-prebuilt.ts +10 -1
  130. package/src/swift-objc-standin.ts +6 -1
  131. package/src/swift-sdk-app-module.ts +10 -3
  132. package/src/swift-sdk-surface.ts +5 -1
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2768 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2769 | (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;
@@ -36021,7 +36021,7 @@ var init_swift_objc_sdk_tree = __esm({
36021
36021
 
36022
36022
  // src/swift-compiler-digest.ts
36023
36023
  function swiftArchiveCompilerDigestValue() {
36024
- return true ? "7033c5c50ea9c70f62e6bfc9f9dd743e535c08d86f7136060a0e872f238d0d33" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
36024
+ return true ? "8b191a8fe01f7c85c340f8260c13e9935003dc8380f94603ae47599ba67822f9" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
36025
36025
  }
36026
36026
  var import_node_crypto11, import_node_fs27, import_node_path25, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
36027
36027
  var init_swift_compiler_digest = __esm({
@@ -36167,13 +36167,13 @@ var init_swift_standin_digest = __esm({
36167
36167
  ];
36168
36168
  RUNTIME_IMPORT = /(?:^|[;\n])[ \t]*(?:import|export)\s+(?!type(?:\s|\{))([\s\S]*?)\s+from\s*['"]([^'"]+)['"]|(?:^|[;\n])[ \t]*import\s+['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
36169
36169
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES);
36170
- STANDIN_SOURCE_DIGEST = true ? "a17a387bf80ef3648c26193901ee6a7cb9abc691b99809c6a8bf9ad4617836af" : standinSourceDigest();
36170
+ STANDIN_SOURCE_DIGEST = true ? "46bd6373b813f44d3e812af83162f521ce032cba6bade9039bbb107120481dc5" : standinSourceDigest();
36171
36171
  }
36172
36172
  });
36173
36173
 
36174
36174
  // src/expo-native-compiler-digest.ts
36175
36175
  function expoNativeCompilerDigestValue() {
36176
- return true ? "867bb716444e6da99acd8ca9dd4860c523197b0261ea2c03eb0d3bf8c5f9d793" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
36176
+ return true ? "3e260e6c7ef7597f483e25b974f3331143db4576ba153a8f6a7fa5912b7f12b4" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
36177
36177
  }
36178
36178
  var import_node_crypto13;
36179
36179
  var init_expo_native_compiler_digest = __esm({
@@ -46362,7 +46362,12 @@ function contents(node) {
46362
46362
  }))
46363
46363
  ];
46364
46364
  }
46365
- function caseInsensitiveHeaderOverlay(directory2, roots, listed) {
46365
+ function clearCaseInsensitiveHeaderOverlayCache(rootPrefix) {
46366
+ const prefix = `${rootPrefix}${import_node_path37.default.sep}`;
46367
+ for (const key2 of scans.keys())
46368
+ if (key2 === rootPrefix || key2.startsWith(prefix)) scans.delete(key2);
46369
+ }
46370
+ function caseInsensitiveHeaderOverlay(directory2, roots, listed, fixedName) {
46366
46371
  let known = scans;
46367
46372
  if (listed) {
46368
46373
  known = listedScans.get(listed) ?? /* @__PURE__ */ new Map();
@@ -46383,7 +46388,7 @@ function caseInsensitiveHeaderOverlay(directory2, roots, listed) {
46383
46388
  const text7 = JSON.stringify({ "case-sensitive": "false", roots: roots_, version: 0 });
46384
46389
  const file = import_node_path37.default.join(
46385
46390
  directory2,
46386
- `case-insensitive-${(0, import_node_crypto22.createHash)("sha256").update(text7).digest("hex").slice(0, 16)}.yaml`
46391
+ fixedName ?? `case-insensitive-${(0, import_node_crypto22.createHash)("sha256").update(text7).digest("hex").slice(0, 16)}.yaml`
46387
46392
  );
46388
46393
  writeBuildFile(file, text7);
46389
46394
  return file;
@@ -48969,15 +48974,17 @@ function materializeObjcSdk(cacheDir6) {
48969
48974
  }
48970
48975
  return sdk2;
48971
48976
  }
48972
- function objcSdkIntakeFlags(headers, toolchainBin, minimum) {
48977
+ function objcSdkIntakeFlags(headers, toolchainBin, minimum, overlayDirectory) {
48973
48978
  const caseOverlay = caseInsensitiveHeaderOverlay(
48974
- import_node_path40.default.join(swiftCacheDir(), "swift-header-case"),
48979
+ overlayDirectory ?? import_node_path40.default.join(swiftCacheDir(), "swift-header-case"),
48975
48980
  [
48976
48981
  import_node_path40.default.join(headers, "System/Library/Frameworks"),
48977
48982
  import_node_path40.default.join(headers, "wasm/include"),
48978
48983
  import_node_path40.default.join(headers, "wasm/intrinsics"),
48979
48984
  import_node_path40.default.join(headers, "usr/include")
48980
- ]
48985
+ ],
48986
+ void 0,
48987
+ overlayDirectory ? SWIFT_SDK_HEADER_CASE_OVERLAY : void 0
48981
48988
  );
48982
48989
  return [
48983
48990
  ...swiftObjCPlatformFlags(toolchainBin, minimum),
@@ -50054,7 +50061,7 @@ function constantValue(node) {
50054
50061
  }
50055
50062
  return null;
50056
50063
  }
50057
- var import_node_child_process17, import_node_crypto23, import_node_fs41, import_node_path40, REFINED_CONSTANT_TYPES, NATIVE_GRAPH_SDK_VERSION, WASI_EMULATION, WASI_EMULATION_FLAGS, NATIVE_GRAPH_INPUTS, NATIVE_GRAPH_ID, resolvedPinnedSdk, ROUNDS, sdkId, headerFiles2, MISSING_IMPORT, FRAMEWORK_HEADER, FRAMEWORK_MODULEMAP, sdkDeclarations;
50064
+ var import_node_child_process17, import_node_crypto23, import_node_fs41, import_node_path40, REFINED_CONSTANT_TYPES, NATIVE_GRAPH_SDK_VERSION, WASI_EMULATION, WASI_EMULATION_FLAGS, NATIVE_GRAPH_INPUTS, NATIVE_GRAPH_ID, resolvedPinnedSdk, ROUNDS, sdkId, SWIFT_SDK_HEADER_CASE_OVERLAY, headerFiles2, MISSING_IMPORT, FRAMEWORK_HEADER, FRAMEWORK_MODULEMAP, sdkDeclarations;
50058
50065
  var init_swift_objc_standin = __esm({
50059
50066
  "src/swift-objc-standin.ts"() {
50060
50067
  "use strict";
@@ -50095,6 +50102,7 @@ var init_swift_objc_standin = __esm({
50095
50102
  };
50096
50103
  NATIVE_GRAPH_ID = (0, import_node_crypto23.createHash)("sha256").update(JSON.stringify(NATIVE_GRAPH_INPUTS)).digest("hex");
50097
50104
  ROUNDS = 12;
50105
+ SWIFT_SDK_HEADER_CASE_OVERLAY = "sdk-header-case.yaml";
50098
50106
  headerFiles2 = (dir) => import_node_fs41.default.readdirSync(dir, { recursive: true, encoding: "utf8" }).filter((file) => file.endsWith(".h") || file.endsWith(".hh")).sort();
50099
50107
  MISSING_IMPORT = "#import <PeachMissing/PeachMissing.h>\n";
50100
50108
  FRAMEWORK_HEADER = /^System\/Library\/Frameworks\/([^/]+)\.framework\/Headers\/(.+)$/;
@@ -58175,9 +58183,175 @@ function syncSwiftDistributionMirror(root, source, manifest) {
58175
58183
  const partial = `${record6}.${(0, import_node_crypto30.randomUUID)()}`;
58176
58184
  (0, import_node_fs57.writeFileSync)(partial, JSON.stringify(manifest.files));
58177
58185
  (0, import_node_fs57.renameSync)(partial, record6);
58186
+ if ([...changed2, ...removed].some(
58187
+ (file) => !file.startsWith("lib/") && !file.startsWith("modules/")
58188
+ )) {
58189
+ clearCaseInsensitiveHeaderOverlayCache(mirror);
58190
+ clearCaseInsensitiveHeaderOverlayCache(import_node_path55.default.join(root, SWIFT_SDK_MIRROR));
58191
+ }
58178
58192
  }
58179
58193
  return mirror;
58180
58194
  }
58195
+ function syncSwiftSdkMirror(root, frameworkRoot, toolchainBin, sourceSdkId) {
58196
+ const viewOptions = swiftSharedSdkViewOptions(
58197
+ frameworkRoot,
58198
+ true,
58199
+ toolchainBin,
58200
+ sourceSdkId
58201
+ );
58202
+ const sourceView = viewOptions[1];
58203
+ return syncSwiftSdkMirrorFromView(root, frameworkRoot, sourceView, sourceSdkId);
58204
+ }
58205
+ function syncSwiftSdkMirrorFromView(root, frameworkRoot, sourceView, sourceSdkId) {
58206
+ const mirror = import_node_path55.default.join(root, SWIFT_SDK_MIRROR);
58207
+ const bundle = import_node_path55.default.join(mirror, SWIFT_SDK_MIRROR_BUNDLE);
58208
+ const destTriple = import_node_path55.default.join(bundle, "sdk", SWIFT_WASM_TRIPLE);
58209
+ const bundleInfo = import_node_path55.default.join(bundle, "info.json");
58210
+ const recordFile = import_node_path55.default.join(mirror, SWIFT_SDK_MIRROR_RECORD);
58211
+ const options2 = ["--swift-sdks-path", mirror];
58212
+ const previous = readSdkRecord(recordFile);
58213
+ if (previous && previous.sourceView === sourceView && previous.sourceSdkId === sourceSdkId && (0, import_node_fs57.existsSync)(bundleInfo) && (0, import_node_fs57.existsSync)(import_node_path55.default.join(destTriple, "swift-sdk.json"))) {
58214
+ return { id: SWIFT_SDK_MIRROR_ID, options: options2, toolsetChanged: false };
58215
+ }
58216
+ const sourceTriple = resolveSdkViewTripleDir(sourceView, sourceSdkId);
58217
+ if (!previous) {
58218
+ (0, import_node_fs57.rmSync)(mirror, { recursive: true, force: true });
58219
+ (0, import_node_fs57.rmSync)(import_node_path55.default.join(root, ".build"), { recursive: true, force: true });
58220
+ }
58221
+ const changed2 = [];
58222
+ const removed = [];
58223
+ const distributionPrefix = `${frameworkRoot}${import_node_path55.default.sep}`;
58224
+ syncSdkTree(sourceTriple, destTriple, "", distributionPrefix, changed2, removed);
58225
+ const infoText = JSON.stringify(
58226
+ {
58227
+ artifacts: {
58228
+ [SWIFT_SDK_MIRROR_ID]: {
58229
+ type: "swiftSDK",
58230
+ variants: [{ path: `sdk/${SWIFT_WASM_TRIPLE}/swift-sdk.json` }],
58231
+ version: "0.0.1"
58232
+ }
58233
+ },
58234
+ schemaVersion: "1.0"
58235
+ },
58236
+ null,
58237
+ 2
58238
+ ) + "\n";
58239
+ if (!(0, import_node_fs57.existsSync)(bundleInfo) || (0, import_node_fs57.readFileSync)(bundleInfo, "utf8") !== infoText) {
58240
+ (0, import_node_fs57.mkdirSync)(bundle, { recursive: true });
58241
+ const partial = `${bundleInfo}.${(0, import_node_crypto30.randomUUID)()}`;
58242
+ (0, import_node_fs57.writeFileSync)(partial, infoText);
58243
+ (0, import_node_fs57.renameSync)(partial, bundleInfo);
58244
+ }
58245
+ const touched = [...changed2, ...removed];
58246
+ const toolsetChanged = !previous || touched.some(
58247
+ (file) => file === "toolset.json" || file === "swift-sdk.json" || file.startsWith("swift.xctoolchain/usr/bin/")
58248
+ );
58249
+ if (previous) {
58250
+ if (toolsetChanged) {
58251
+ (0, import_node_fs57.rmSync)(import_node_path55.default.join(root, ".build"), { recursive: true, force: true });
58252
+ } else {
58253
+ const compileTouched = touched.filter(
58254
+ (file) => !file.endsWith(".a") && !file.endsWith(".o") && !file.startsWith("rust/") && file !== "runtime-products.json"
58255
+ );
58256
+ const headersChanged = compileTouched.some(
58257
+ (file) => !file.endsWith(".swiftmodule") && !file.endsWith(".swiftdoc") && !file.endsWith(".swiftsourceinfo") && !file.endsWith(".abi.json")
58258
+ );
58259
+ if (compileTouched.length > 0) {
58260
+ invalidateBuildDependents(
58261
+ root,
58262
+ [[Buffer.from(`${escapeDepPath(destTriple)}/`), ""]],
58263
+ new Set(compileTouched),
58264
+ headersChanged
58265
+ );
58266
+ }
58267
+ if (headersChanged) clearCaseInsensitiveHeaderOverlayCache(mirror);
58268
+ }
58269
+ } else {
58270
+ clearCaseInsensitiveHeaderOverlayCache(mirror);
58271
+ }
58272
+ (0, import_node_fs57.mkdirSync)(mirror, { recursive: true });
58273
+ const partialRecord = `${recordFile}.${(0, import_node_crypto30.randomUUID)()}`;
58274
+ (0, import_node_fs57.writeFileSync)(partialRecord, JSON.stringify({ version: 1, sourceView, sourceSdkId }));
58275
+ (0, import_node_fs57.renameSync)(partialRecord, recordFile);
58276
+ return { id: SWIFT_SDK_MIRROR_ID, options: options2, toolsetChanged };
58277
+ }
58278
+ function readSdkRecord(file) {
58279
+ if (!(0, import_node_fs57.existsSync)(file)) return null;
58280
+ const value = JSON.parse((0, import_node_fs57.readFileSync)(file, "utf8"));
58281
+ if (!isRecord(value) || value.version !== 1 || typeof value.sourceView !== "string" || typeof value.sourceSdkId !== "string")
58282
+ return null;
58283
+ return {
58284
+ version: value.version,
58285
+ sourceView: value.sourceView,
58286
+ sourceSdkId: value.sourceSdkId
58287
+ };
58288
+ }
58289
+ function resolveSdkViewTripleDir(sourceView, sourceSdkId) {
58290
+ for (const entry of (0, import_node_fs57.readdirSync)(sourceView, { withFileTypes: true })) {
58291
+ if (!entry.name.endsWith(".artifactbundle")) continue;
58292
+ const bundleDir = import_node_path55.default.join(sourceView, entry.name);
58293
+ const infoPath = import_node_path55.default.join(bundleDir, "info.json");
58294
+ if (!(0, import_node_fs57.existsSync)(infoPath)) continue;
58295
+ const info = JSON.parse((0, import_node_fs57.readFileSync)(infoPath, "utf8"));
58296
+ if (!isRecord(info) || !isRecord(info.artifacts)) continue;
58297
+ const artifact = info.artifacts[sourceSdkId];
58298
+ if (!isRecord(artifact) || !Array.isArray(artifact.variants)) continue;
58299
+ const first = artifact.variants[0];
58300
+ if (!isRecord(first) || typeof first.path !== "string") continue;
58301
+ return import_node_path55.default.dirname(import_node_path55.default.join(bundleDir, first.path));
58302
+ }
58303
+ throw new Error(`Swift SDK ${sourceSdkId} not found in view ${sourceView}`);
58304
+ }
58305
+ function collectRemovedFiles(dir, prefix, out) {
58306
+ for (const entry of (0, import_node_fs57.readdirSync)(dir, { withFileTypes: true })) {
58307
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
58308
+ const full = import_node_path55.default.join(dir, entry.name);
58309
+ if (entry.isDirectory()) collectRemovedFiles(full, rel, out);
58310
+ else out.push(rel);
58311
+ }
58312
+ }
58313
+ function syncSdkTree(sourceDir, destDir, prefix, distributionPrefix, changed2, removed) {
58314
+ (0, import_node_fs57.mkdirSync)(destDir, { recursive: true });
58315
+ const wanted = /* @__PURE__ */ new Set();
58316
+ for (const entry of (0, import_node_fs57.readdirSync)(sourceDir, { withFileTypes: true })) {
58317
+ wanted.add(entry.name);
58318
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
58319
+ const src = import_node_path55.default.join(sourceDir, entry.name);
58320
+ const dest = import_node_path55.default.join(destDir, entry.name);
58321
+ const destLstat = (0, import_node_fs57.lstatSync)(dest, { throwIfNoEntry: false });
58322
+ if (entry.isSymbolicLink()) {
58323
+ const target = (0, import_node_fs57.readlinkSync)(src);
58324
+ if (target.startsWith(distributionPrefix)) {
58325
+ if (destLstat?.isSymbolicLink() && (0, import_node_fs57.readlinkSync)(dest) === target) continue;
58326
+ if (destLstat) (0, import_node_fs57.rmSync)(dest, { recursive: true, force: true });
58327
+ (0, import_node_fs57.symlinkSync)(target, dest);
58328
+ changed2.push(rel);
58329
+ continue;
58330
+ }
58331
+ }
58332
+ const srcStat = (0, import_node_fs57.statSync)(src, { throwIfNoEntry: false });
58333
+ if (!srcStat) continue;
58334
+ if (srcStat.isDirectory()) {
58335
+ if (destLstat && (!destLstat.isDirectory() || destLstat.isSymbolicLink()))
58336
+ (0, import_node_fs57.rmSync)(dest, { recursive: true, force: true });
58337
+ syncSdkTree(src, dest, rel, distributionPrefix, changed2, removed);
58338
+ continue;
58339
+ }
58340
+ if (destLstat?.isFile() && !destLstat.isSymbolicLink() && destLstat.size === srcStat.size && (0, import_node_fs57.readFileSync)(src).equals((0, import_node_fs57.readFileSync)(dest)))
58341
+ continue;
58342
+ if (destLstat?.isDirectory()) (0, import_node_fs57.rmSync)(dest, { recursive: true, force: true });
58343
+ place(src, dest, (srcStat.mode & 73) !== 0 ? srcStat.mode & 511 : void 0);
58344
+ changed2.push(rel);
58345
+ }
58346
+ for (const entry of (0, import_node_fs57.readdirSync)(destDir, { withFileTypes: true })) {
58347
+ if (wanted.has(entry.name)) continue;
58348
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
58349
+ const dest = import_node_path55.default.join(destDir, entry.name);
58350
+ if (entry.isDirectory()) collectRemovedFiles(dest, rel, removed);
58351
+ else removed.push(rel);
58352
+ (0, import_node_fs57.rmSync)(dest, { recursive: true, force: true });
58353
+ }
58354
+ }
58181
58355
  function readRecord(file) {
58182
58356
  if (!(0, import_node_fs57.existsSync)(file)) return null;
58183
58357
  const value = JSON.parse((0, import_node_fs57.readFileSync)(file, "utf8"));
@@ -58189,24 +58363,33 @@ function readRecord(file) {
58189
58363
  }
58190
58364
  return files2;
58191
58365
  }
58192
- function place(from, to) {
58366
+ function place(from, to, mode) {
58193
58367
  (0, import_node_fs57.mkdirSync)(import_node_path55.default.dirname(to), { recursive: true });
58194
58368
  const partial = `${to}.${(0, import_node_crypto30.randomUUID)()}`;
58195
58369
  (0, import_node_fs57.copyFileSync)(from, partial, import_node_fs57.constants.COPYFILE_FICLONE);
58370
+ if (mode !== void 0) (0, import_node_fs57.chmodSync)(partial, mode);
58196
58371
  (0, import_node_fs57.renameSync)(partial, to);
58197
58372
  }
58198
- function invalidateDependents(root, mirror, files2) {
58199
- const read2 = new Set(files2.filter((file) => !file.startsWith("lib/")));
58200
- if (read2.size === 0) return;
58201
- const escapedMirror = mirror.replace(
58373
+ function escapeDepPath(directory2) {
58374
+ return directory2.replace(
58202
58375
  /[\\ #$]/g,
58203
58376
  (character) => character === "$" ? "$$" : `\\${character}`
58204
58377
  );
58378
+ }
58379
+ function invalidateDependents(root, mirror, files2) {
58380
+ const read2 = new Set(files2.filter((file) => !file.startsWith("lib/")));
58381
+ if (read2.size === 0) return;
58205
58382
  const spellings = [
58206
- [Buffer.from(`${escapedMirror}/`), ""]
58383
+ [Buffer.from(`${escapeDepPath(mirror)}/`), ""]
58207
58384
  ];
58208
58385
  if (files2.some((file) => file.startsWith("sdk/ios/")))
58209
58386
  spellings.push([Buffer.from("/darwin/"), "sdk/ios/"]);
58387
+ const headersChanged = files2.some(
58388
+ (file) => !file.startsWith("lib/") && !file.startsWith("modules/")
58389
+ );
58390
+ invalidateBuildDependents(root, spellings, read2, headersChanged);
58391
+ }
58392
+ function invalidateBuildDependents(root, spellings, read2, headersChanged) {
58210
58393
  const names = (text7) => spellings.some(([prefix, base2]) => {
58211
58394
  let end = 0;
58212
58395
  for (let at = text7.indexOf(prefix); at !== -1; at = text7.indexOf(prefix, end)) {
@@ -58221,9 +58404,6 @@ function invalidateDependents(root, mirror, files2) {
58221
58404
  });
58222
58405
  const scratch2 = import_node_path55.default.join(root, ".build");
58223
58406
  if (!(0, import_node_fs57.existsSync)(scratch2)) return;
58224
- const headersChanged = files2.some(
58225
- (file) => !file.startsWith("lib/") && !file.startsWith("modules/")
58226
- );
58227
58407
  for (const triple of (0, import_node_fs57.readdirSync)(scratch2, { withFileTypes: true })) {
58228
58408
  const products = import_node_path55.default.join(scratch2, triple.name, "release");
58229
58409
  if (!triple.isDirectory() || !(0, import_node_fs57.existsSync)(products)) continue;
@@ -58263,18 +58443,24 @@ function invalidateDependents(root, mirror, files2) {
58263
58443
  if (headersChanged)
58264
58444
  (0, import_node_fs57.rmSync)(import_node_path55.default.join(scratch2, "ModuleCache"), { recursive: true, force: true });
58265
58445
  }
58266
- var import_node_crypto30, import_node_fs57, import_node_path55, SWIFT_DISTRIBUTION_MIRROR;
58446
+ var import_node_crypto30, import_node_fs57, import_node_path55, SWIFT_DISTRIBUTION_MIRROR, SWIFT_SDK_MIRROR, SWIFT_SDK_MIRROR_ID, SWIFT_SDK_MIRROR_RECORD, SWIFT_SDK_MIRROR_BUNDLE;
58267
58447
  var init_swift_distribution_mirror = __esm({
58268
58448
  "src/swift-distribution-mirror.ts"() {
58269
58449
  "use strict";
58270
58450
  import_node_crypto30 = require("node:crypto");
58271
58451
  import_node_fs57 = require("node:fs");
58272
58452
  import_node_path55 = __toESM(require("node:path"), 1);
58453
+ init_case_insensitive_header_overlay();
58273
58454
  init_is_record();
58274
58455
  init_swift_distribution_contract();
58275
58456
  init_swift_shared_sdk();
58276
58457
  init_swiftContract();
58458
+ init_swiftTargetContract();
58277
58459
  SWIFT_DISTRIBUTION_MIRROR = ".peach-distribution";
58460
+ SWIFT_SDK_MIRROR = ".peach-sdk";
58461
+ SWIFT_SDK_MIRROR_ID = "peach-wasm-sdk";
58462
+ SWIFT_SDK_MIRROR_RECORD = ".peach-sdk-mirror.json";
58463
+ SWIFT_SDK_MIRROR_BUNDLE = "peach-wasm.artifactbundle";
58278
58464
  }
58279
58465
  });
58280
58466
 
@@ -72185,8 +72371,10 @@ function swiftPeachModules(moduleRoot) {
72185
72371
  (0, import_node_fs70.readFileSync)(import_node_path68.default.join(moduleRoot, "Package.swift"), "utf8")
72186
72372
  ).filter((target) => !target.executable && !target.path.startsWith("fixtures/")).map((target) => target.name);
72187
72373
  }
72188
- function swiftSdkPaths(moduleRoot, toolchainBin, options2 = swiftCompileSdkOptions(moduleRoot, toolchainBin)) {
72189
- const sdk2 = swiftModuleSdk(moduleRoot).wasmSdkId;
72374
+ function clearSwiftSdkPathsCache(sdkDir) {
72375
+ for (const key2 of sdkPaths.keys()) if (key2.includes(sdkDir)) sdkPaths.delete(key2);
72376
+ }
72377
+ function swiftSdkPaths(moduleRoot, toolchainBin, options2 = swiftCompileSdkOptions(moduleRoot, toolchainBin), sdk2 = swiftModuleSdk(moduleRoot).wasmSdkId) {
72190
72378
  const key2 = JSON.stringify([toolchainBin, sdk2, options2]);
72191
72379
  const cached5 = sdkPaths.get(key2);
72192
72380
  if (cached5) return cached5;
@@ -75591,7 +75779,10 @@ function finishSwiftAppModuleFile(file) {
75591
75779
  (0, import_node_fs76.appendFileSync)(file, Buffer.concat([header, nameBytes, thunks]));
75592
75780
  }
75593
75781
  function swiftAppModuleInputs(tokens3, buildRoot, sdkLibraries) {
75594
- const owned = (token) => import_node_path74.default.resolve(token).startsWith(`${buildRoot}/`) && (!token.includes("/.peach-pruned-objs/") || token.endsWith("/swiftrt-patched.o"));
75782
+ const owned = (token) => {
75783
+ const resolved = import_node_path74.default.resolve(token);
75784
+ return resolved.startsWith(`${buildRoot}/`) && !resolved.startsWith(`${buildRoot}/${SWIFT_DISTRIBUTION_MIRROR}/`) && !resolved.startsWith(`${buildRoot}/${SWIFT_SDK_MIRROR}/`) && (!token.includes("/.peach-pruned-objs/") || token.endsWith("/swiftrt-patched.o"));
75785
+ };
75595
75786
  const inputs2 = [];
75596
75787
  for (const [index, token] of tokens3.entries()) {
75597
75788
  if (token === "--start-lib") inputs2.push(token);
@@ -77046,6 +77237,7 @@ var init_swift_sdk_app_module = __esm({
77046
77237
  import_node_zlib5 = require("node:zlib");
77047
77238
  init_nativeSdkBindingContract();
77048
77239
  init_nativeWasmContract();
77240
+ init_swift_distribution_mirror();
77049
77241
  init_swift_guest_dyld_functions();
77050
77242
  init_swift_guest_linked_spans();
77051
77243
  init_swift_project_user();
@@ -78509,7 +78701,9 @@ var init_swift_objc_prebuilt = __esm({
78509
78701
  init_internal_child_contract();
78510
78702
  init_self_invocation();
78511
78703
  init_native_prebuilt();
78704
+ init_swift_distribution_mirror();
78512
78705
  init_swift_objc_prebuilt_catalog();
78706
+ init_swift_objc_standin();
78513
78707
  init_swift_toolchain();
78514
78708
  quote2 = (value) => "'" + value.replaceAll("'", "'\\''") + "'";
78515
78709
  }
@@ -80090,7 +80284,7 @@ function syncSwiftTree(base2, files2, alreadySynced) {
80090
80284
  const full = import_node_path84.default.join(dir, entry.name);
80091
80285
  if (dir === base2 && (entry.name === ".build" || entry.name === SWIFT_CACHE_HOLD_MARKER || entry.name.startsWith(".peach-modules-") || // distribution clang maps are written beside the project, so a sync
80092
80286
  // must not remove them.
80093
- entry.name === CLANG_DISTRIBUTION_MODULES || entry.name === SWIFT_DISTRIBUTION_MIRROR || entry.name === SWIFT_LINK_STAMP || entry.name === SWIFT_BUILD_ROOT_SHAPE))
80287
+ entry.name === CLANG_DISTRIBUTION_MODULES || entry.name === SWIFT_DISTRIBUTION_MIRROR || entry.name === SWIFT_SDK_MIRROR || entry.name === SWIFT_LINK_STAMP || entry.name === SWIFT_BUILD_ROOT_SHAPE))
80094
80288
  continue;
80095
80289
  if (entry.isDirectory()) walk4(full);
80096
80290
  else if (!files2.has(full) && (!kept || !kept.has((0, import_node_fs84.lstatSync)(full).ino)))
@@ -80724,7 +80918,7 @@ function needsNativeToolset(input, prebuilt) {
80724
80918
  input.packageFiles || prebuilt || Object.keys(input.files).some(isSwiftNativeTranslationUnit)
80725
80919
  );
80726
80920
  }
80727
- function writeSwiftProject(layout2, input, moduleRoot, prebuilt, allowHeaderCompiler = false, objcPrebuiltStage) {
80921
+ function writeSwiftProject(layout2, input, moduleRoot, prebuilt, allowHeaderCompiler = false, objcPrebuiltStage, compileSdk) {
80728
80922
  const nativeToolset = needsNativeToolset(input, prebuilt);
80729
80923
  if (input.headerAliases !== void 0 && !isSwiftHeaderAliases(input.headerAliases))
80730
80924
  throw new Error("swift compile input has invalid original header aliases");
@@ -80853,6 +81047,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
80853
81047
  checkedToolchain = swiftToolchain(pin2.release, swiftModuleSdk(moduleRoot));
80854
81048
  return checkedToolchain;
80855
81049
  };
81050
+ const resolvedSdkPaths = (toolchainBin) => swiftSdkPaths(moduleRoot, toolchainBin, compileSdk?.options, compileSdk?.id);
80856
81051
  const targetStagedFiles = /* @__PURE__ */ new Map();
80857
81052
  const stageTargetFile = (target, file, contents2, options2) => {
80858
81053
  const relative8 = import_node_path84.default.relative(layout2.root, file).split(import_node_path84.default.sep).join(import_node_path84.default.posix.sep);
@@ -80979,9 +81174,25 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
80979
81174
  files2.set(destination, contents2);
80980
81175
  }
80981
81176
  }
81177
+ const binaryTreePrefix = `${SWIFT_BINARY_TREES_DIR}/`;
81178
+ const binaryTreeSegment = `/${SWIFT_BINARY_TREES_DIR}/`;
81179
+ const isBinaryTreeFile = (file) => file.startsWith(binaryTreePrefix) || file.includes(binaryTreeSegment);
81180
+ const stageBinaryTreeFile = (file, contents2) => {
81181
+ const destination = import_node_path84.default.join(layout2.root, file);
81182
+ if (files2.has(destination)) return;
81183
+ writeBuildFile(destination, contents2);
81184
+ alreadySynced.set(destination, contents2);
81185
+ files2.set(destination, contents2);
81186
+ };
81187
+ for (const [file, contents2] of Object.entries(input.files))
81188
+ if (isBinaryTreeFile(file)) stageBinaryTreeFile(file, contents2);
81189
+ for (const [file, bytes] of Object.entries(input.packageFiles ?? {}))
81190
+ if (isBinaryTreeFile(file) && !file.endsWith(".swift"))
81191
+ stageBinaryTreeFile(file, Buffer.from(bytes, "base64"));
81192
+ for (const [file, bytes] of Object.entries(input.projectFiles ?? {}))
81193
+ if (isBinaryTreeFile(file)) stageBinaryTreeFile(file, Buffer.from(bytes, "base64"));
80982
81194
  const fromInputRoot = (file) => file.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) ? import_node_path84.default.join(layout2.root, file.slice(SWIFT_NATIVE_INPUT_ROOT.length + 1)) : file;
80983
81195
  const inRoot = `${layout2.root}${import_node_path84.default.sep}`;
80984
- const binaryTree = `${import_node_path84.default.sep}${SWIFT_BINARY_TREES_DIR}${import_node_path84.default.sep}`;
80985
81196
  const headerSearch = writeXcodeHeaderSearch(
80986
81197
  import_node_path84.default.join(layout2.root, ".build", "peach-xcode-headers"),
80987
81198
  nativeTargets2.map((settings) => {
@@ -81033,7 +81244,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
81033
81244
  import_node_path84.default.join(layout2.root, file)
81034
81245
  ])
81035
81246
  ),
81036
- (file) => !file.startsWith(inRoot) || files2.has(file) || file.includes(binaryTree)
81247
+ (file) => !file.startsWith(inRoot) || files2.has(file)
81037
81248
  );
81038
81249
  const importModuleMaps = /* @__PURE__ */ new Map();
81039
81250
  const sourceModuleMaps = /* @__PURE__ */ new Map();
@@ -81176,7 +81387,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
81176
81387
  ];
81177
81388
  })();
81178
81389
  const sdkInclude = import_node_path84.default.join(
81179
- swiftSdkPaths(moduleRoot, toolchainBin).sysroot,
81390
+ resolvedSdkPaths(toolchainBin).sysroot,
81180
81391
  "darwin/usr/include"
81181
81392
  );
81182
81393
  const dependencyModuleMaps = clangImportModuleMapFlags(
@@ -81923,7 +82134,8 @@ ${entry}`);
81923
82134
  );
81924
82135
  if (nativeFlags) {
81925
82136
  const toolchainBin = nativeToolchain();
81926
- const headers = import_node_path84.default.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "darwin");
82137
+ const headers = import_node_path84.default.join(resolvedSdkPaths(toolchainBin).sysroot, "darwin");
82138
+ const sdkOverlayDirectory = compileSdk?.id === SWIFT_SDK_MIRROR_ID ? import_node_path84.default.join(layout2.root, SWIFT_SDK_MIRROR) : void 0;
81927
82139
  const dependencies2 = swiftTargetDependencies(input.files, targets);
81928
82140
  const reachesNative = (name3, seen = /* @__PURE__ */ new Set()) => {
81929
82141
  if (native.has(name3)) return true;
@@ -81941,7 +82153,12 @@ ${entry}`);
81941
82153
  throw new Error(
81942
82154
  target.name + ": missing or unsupported declared iOS deployment target " + JSON.stringify(version2)
81943
82155
  );
81944
- const sdkIntake = objcSdkIntakeFlags(headers, toolchainBin, minimum);
82156
+ const sdkIntake = objcSdkIntakeFlags(
82157
+ headers,
82158
+ toolchainBin,
82159
+ minimum,
82160
+ sdkOverlayDirectory
82161
+ );
81945
82162
  const sdkOverlay = sdkIntake.indexOf("-ivfsoverlay");
81946
82163
  if (sdkOverlay >= 0) generatedOverlays.add(sdkIntake[sdkOverlay + 1]);
81947
82164
  const intake = [
@@ -82163,7 +82380,7 @@ ${entry}`);
82163
82380
  distribution: distribution ?? void 0,
82164
82381
  moduleExcludes,
82165
82382
  deferDarwinOverlay: native.size > 0 && toolsetOrdersLibcxxBeforeDarwinOverlay(
82166
- swiftSdkPaths(moduleRoot, nativeToolchain()).cFlags
82383
+ resolvedSdkPaths(nativeToolchain()).cFlags
82167
82384
  ),
82168
82385
  ...reachesFrameworks ? {
82169
82386
  distributionLink: {
@@ -82206,7 +82423,7 @@ ${entry}`);
82206
82423
  ...headerAliasFlags,
82207
82424
  ...native.size > 0 ? [
82208
82425
  "-fmodule-map-file=" + import_node_path84.default.join(
82209
- swiftSdkPaths(moduleRoot, nativeToolchain()).sysroot,
82426
+ resolvedSdkPaths(nativeToolchain()).sysroot,
82210
82427
  "darwin/wasm/include/module.modulemap"
82211
82428
  )
82212
82429
  ] : []
@@ -82216,7 +82433,7 @@ ${entry}`);
82216
82433
  const prebuiltCompiler = distribution && objcPrebuiltStage !== false ? swiftObjCPrebuiltCompiler(
82217
82434
  clang,
82218
82435
  layout2.root,
82219
- swiftSdkPaths(moduleRoot, nativeToolchain()).sysroot,
82436
+ resolvedSdkPaths(nativeToolchain()).sysroot,
82220
82437
  distribution.id,
82221
82438
  [...native.keys()],
82222
82439
  objcPrebuiltStage
@@ -82474,12 +82691,55 @@ package.targets += [.target(name: ${JSON.stringify(name3)}, dependencies: ${JSON
82474
82691
  `;
82475
82692
  return name3;
82476
82693
  };
82477
- const headerBuilds = headerCompiler ? [
82478
- {
82479
- target: buildProduct(SWIFT_HEADER_PRODUCTS_TARGET, orderedProducers),
82480
- producers: orderedProducers
82694
+ const producerUnitCount = /* @__PURE__ */ new Map();
82695
+ for (const target of targets) {
82696
+ if (!producerSet.has(target.name)) continue;
82697
+ producerUnitCount.set(
82698
+ target.name,
82699
+ Math.max(
82700
+ 1,
82701
+ targetEntries(target).filter(([file]) => file.endsWith(".swift")).length
82702
+ )
82703
+ );
82704
+ }
82705
+ const MAX_HEADER_STAGE_TARGETS = 100;
82706
+ const MAX_HEADER_STAGE_UNITS = 400;
82707
+ const chunkHeaderProducers = (producers2) => {
82708
+ const levelOrdered = [...producers2].sort(
82709
+ (left, right) => depths.get(left) - depths.get(right)
82710
+ );
82711
+ const totalUnits = levelOrdered.reduce(
82712
+ (sum, name3) => sum + (producerUnitCount.get(name3) ?? 1),
82713
+ 0
82714
+ );
82715
+ if (levelOrdered.length <= 1 || levelOrdered.length <= MAX_HEADER_STAGE_TARGETS && totalUnits <= MAX_HEADER_STAGE_UNITS) {
82716
+ return [
82717
+ {
82718
+ target: buildProduct(SWIFT_HEADER_PRODUCTS_TARGET, levelOrdered),
82719
+ producers: levelOrdered
82720
+ }
82721
+ ];
82722
+ }
82723
+ const chunks = [];
82724
+ let current2 = [];
82725
+ let units = 0;
82726
+ for (const name3 of levelOrdered) {
82727
+ const size2 = producerUnitCount.get(name3) ?? 1;
82728
+ if (current2.length > 0 && (current2.length >= MAX_HEADER_STAGE_TARGETS || units + size2 > MAX_HEADER_STAGE_UNITS)) {
82729
+ chunks.push(current2);
82730
+ current2 = [];
82731
+ units = 0;
82732
+ }
82733
+ current2.push(name3);
82734
+ units += size2;
82481
82735
  }
82482
- ] : [...stages].sort(([left], [right]) => left - right).map(([level, producers2]) => ({
82736
+ if (current2.length > 0) chunks.push(current2);
82737
+ return chunks.map((members2, index) => ({
82738
+ target: buildProduct(`${SWIFT_HEADER_PRODUCTS_TARGET}${index + 1}`, members2),
82739
+ producers: members2
82740
+ }));
82741
+ };
82742
+ const headerBuilds = headerCompiler ? chunkHeaderProducers(orderedProducers) : [...stages].sort(([left], [right]) => left - right).map(([level, producers2]) => ({
82483
82743
  target: buildProduct(`${SWIFT_HEADER_PRODUCTS_TARGET}${level}`, producers2),
82484
82744
  producers: producers2
82485
82745
  }));
@@ -84006,8 +84266,15 @@ ${compatShape}` : "";
84006
84266
  frameworkLease
84007
84267
  );
84008
84268
  const compileFrameworkRoot2 = distribution ? swiftDistributionCompileView(frameworkRoot2, distribution) : frameworkRoot2;
84009
- const sdk3 = swiftModuleSdk(frameworkRoot2).wasmSdkId;
84010
- const icu2 = options2.linkOnly ? null : swiftIcuAsset(options2.toolchainBin, sdk3);
84269
+ const sdk2 = swiftModuleSdk(frameworkRoot2).wasmSdkId;
84270
+ const compileSdk2 = mirrorDistribution ? syncSwiftSdkMirror(root2, frameworkRoot2, options2.toolchainBin, sdk2) : {
84271
+ id: sdk2,
84272
+ options: swiftCompileSdkOptions(frameworkRoot2, options2.toolchainBin),
84273
+ toolsetChanged: false
84274
+ };
84275
+ if (mirrorDistribution && compileSdk2.toolsetChanged)
84276
+ clearSwiftSdkPathsCache(import_node_path84.default.join(root2, SWIFT_SDK_MIRROR));
84277
+ const icu2 = options2.linkOnly ? null : swiftIcuAsset(options2.toolchainBin, sdk2);
84011
84278
  let prebuilt2;
84012
84279
  if (!distribution) {
84013
84280
  if (allowWrite) stage("compiling framework products");
@@ -84018,7 +84285,7 @@ ${compatShape}` : "";
84018
84285
  frameworkKey,
84019
84286
  input,
84020
84287
  swift,
84021
- sdk: sdk3,
84288
+ sdk: sdk2,
84022
84289
  toolchainBin: options2.toolchainBin,
84023
84290
  plugins: macroPlugins2,
84024
84291
  buildOptions: {
@@ -84043,7 +84310,8 @@ ${compatShape}` : "";
84043
84310
  frameworkRoot: frameworkRoot2,
84044
84311
  compileFrameworkRoot: compileFrameworkRoot2,
84045
84312
  macroPlugins: macroPlugins2,
84046
- sdk: sdk3,
84313
+ sdk: sdk2,
84314
+ compileSdk: compileSdk2,
84047
84315
  icu: icu2,
84048
84316
  prebuilt: prebuilt2,
84049
84317
  readHold: readHold2
@@ -84064,7 +84332,7 @@ ${compatShape}` : "";
84064
84332
  frameworkRoot,
84065
84333
  compileFrameworkRoot,
84066
84334
  macroPlugins,
84067
- sdk: sdk2,
84335
+ compileSdk,
84068
84336
  icu,
84069
84337
  prebuilt
84070
84338
  } = frameworks;
@@ -84082,13 +84350,13 @@ ${compatShape}` : "";
84082
84350
  if (retireStaleSwiftLink(
84083
84351
  root2,
84084
84352
  swiftLinkStamp({
84085
- frameworkKey: `${options2.release}\0${Boolean(distribution)}\0${swiftModuleSdk(frameworkRoot).wasmSdkId}`,
84353
+ frameworkKey: mirrorDistribution ? `${options2.release}\0mirror` : `${options2.release}\0${Boolean(distribution)}\0${swiftModuleSdk(frameworkRoot).wasmSdkId}`,
84086
84354
  packageHostMacros
84087
84355
  }),
84088
84356
  swiftLinkStamp({
84089
- // a distribution's objects reach only the deferred link, and
84090
- // the root's mirror keeps its compile inputs at fixed paths
84091
- frameworkKey: distribution ? `${options2.release}\0${distribution.wasmSdkChecksum}` : frameworkKey,
84357
+ // mirrored distributions and their WASI SDK mirror invalidate
84358
+ // dependents per changed file instead of wiping every Clang object.
84359
+ frameworkKey: mirrorDistribution ? `${options2.release}\0mirror` : distribution ? `${options2.release}\0${distribution.wasmSdkChecksum}` : frameworkKey,
84092
84360
  prebuilt,
84093
84361
  packageHostMacros
84094
84362
  }),
@@ -84102,7 +84370,8 @@ ${compatShape}` : "";
84102
84370
  frameworkRoot,
84103
84371
  prebuilt,
84104
84372
  !options2.project,
84105
- options2.project ? false : options2.objcPrebuiltStage ?? (options2.intermediates ? false : void 0)
84373
+ options2.project ? false : options2.objcPrebuiltStage ?? (options2.intermediates ? false : void 0),
84374
+ compileSdk
84106
84375
  );
84107
84376
  const productFile = import_node_path84.default.join(frameworkRoot, SWIFT_FRAMEWORK_PRODUCT_FILE);
84108
84377
  writeSwiftAutolinkLinker(
@@ -84178,6 +84447,7 @@ ${compatShape}` : "";
84178
84447
  const jobs = swiftCompilerJobs();
84179
84448
  const incrementalPreview = sdkImage !== void 0 && !guestGraph && !options2.project && !input.optimize && !input.unoptimized;
84180
84449
  const perFile = input.unoptimized || incrementalPreview;
84450
+ const reproducibleFrameworkRoot = mirrorDistribution ? frameworkRoot : compileFrameworkRoot;
84181
84451
  const buildArgs = [
84182
84452
  "build",
84183
84453
  ...projectProcess?.cacheOptions ?? swiftPackageCacheOptions(),
@@ -84187,10 +84457,10 @@ ${compatShape}` : "";
84187
84457
  String(jobs),
84188
84458
  "--package-path",
84189
84459
  root2,
84190
- ...swiftCompileSdkOptions(frameworkRoot, options2.toolchainBin),
84460
+ ...compileSdk.options,
84191
84461
  ...swiftObjCSelectorOptions(frameworkRoot),
84192
84462
  "--swift-sdk",
84193
- sdk2,
84463
+ compileSdk.id,
84194
84464
  ...preparation.targetToolset ? ["--toolset", import_node_path84.default.join(root2, ".peach-target-toolset.json")] : [],
84195
84465
  "-c",
84196
84466
  "release",
@@ -84225,7 +84495,7 @@ ${compatShape}` : "";
84225
84495
  ],
84226
84496
  ...swiftReproducibleBuildFlags([
84227
84497
  [import_node_path84.default.dirname(options2.toolchainBin), "toolchain"],
84228
- [compileFrameworkRoot, "framework"],
84498
+ [reproducibleFrameworkRoot, "framework"],
84229
84499
  [root2, "build"],
84230
84500
  ...forwarders
84231
84501
  ]).flatMap((flag, index, flags) => {
@@ -84235,8 +84505,8 @@ ${compatShape}` : "";
84235
84505
  let mapped = flag;
84236
84506
  for (const [dir, target] of [
84237
84507
  [root2, "/peach/build"],
84238
- [compileFrameworkRoot, "/peach/framework"],
84239
- [(0, import_node_fs84.realpathSync)(compileFrameworkRoot), "/peach/framework"],
84508
+ [reproducibleFrameworkRoot, "/peach/framework"],
84509
+ [(0, import_node_fs84.realpathSync)(reproducibleFrameworkRoot), "/peach/framework"],
84240
84510
  [toolchainDir, "/peach/toolchain"],
84241
84511
  [(0, import_node_fs84.realpathSync)(toolchainDir), "/peach/toolchain"]
84242
84512
  ]) {
@@ -84265,8 +84535,14 @@ ${compatShape}` : "";
84265
84535
  (0, import_node_fs84.rmSync)(linked, { force: true });
84266
84536
  stage("compiling and linking Swift modules");
84267
84537
  const frameworkInterfaces = /* @__PURE__ */ new Map();
84538
+ const compileSdkPaths = swiftSdkPaths(
84539
+ frameworkRoot,
84540
+ options2.toolchainBin,
84541
+ compileSdk.options,
84542
+ compileSdk.id
84543
+ );
84268
84544
  const sdkFrameworks = import_node_path84.default.join(
84269
- swiftSdkPaths(frameworkRoot, options2.toolchainBin).darwin,
84545
+ compileSdkPaths.darwin,
84270
84546
  "System/Library/Frameworks"
84271
84547
  );
84272
84548
  const generatedInterface = (source) => withoutImportedSdkEnumForwards(
@@ -84470,7 +84746,7 @@ ${compatShape}` : "";
84470
84746
  options2.toolchainBin,
84471
84747
  recipe2,
84472
84748
  new Map(
84473
- preparation.headerBuilds[0].producers.map((producer) => {
84749
+ preparation.headerBuilds.flatMap((stage2) => stage2.producers).map((producer) => {
84474
84750
  const paths = headerPaths(producer);
84475
84751
  return [
84476
84752
  swiftTargetModuleName(producer),
@@ -84564,7 +84840,7 @@ ${compatShape}` : "";
84564
84840
  moduleRoot: frameworkRoot,
84565
84841
  toolchainBin: options2.toolchainBin,
84566
84842
  swiftCompiler: preparation.headerCompiler ? import_node_path84.default.join(root2, SWIFT_HEADER_COMPILER_WRAPPER) : compiler.SWIFT_EXEC ?? import_node_path84.default.join(options2.toolchainBin, "swiftc"),
84567
- sysroot: swiftSdkPaths(frameworkRoot, options2.toolchainBin).sysroot,
84843
+ sysroot: compileSdkPaths.sysroot,
84568
84844
  sdk: swiftModuleSdk(frameworkRoot),
84569
84845
  sdkImage,
84570
84846
  compilerDigest: compilerSourceDigest,
@@ -84594,9 +84870,7 @@ ${compatShape}` : "";
84594
84870
  project: options2.project && {
84595
84871
  ...options2.project,
84596
84872
  env: { ...options2.project.env, ...projectProcess?.env },
84597
- sdkRoot: import_node_path84.default.dirname(
84598
- swiftSdkPaths(frameworkRoot, options2.toolchainBin).sysroot
84599
- ),
84873
+ sdkRoot: import_node_path84.default.dirname(compileSdkPaths.sysroot),
84600
84874
  linked: output
84601
84875
  }
84602
84876
  });
@@ -84857,7 +85131,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
84857
85131
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
84858
85132
  MULTI_MANIFEST_VERSION = 76;
84859
85133
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
84860
- compilerSourceDigest = true ? "e28f3765de44ea471f6097cb0ae6ead762595ae2bb24b4e38d4210f32b9434c1" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
85134
+ compilerSourceDigest = true ? "404914a824c2f550a36612007732c8afa8459125cb02e28f12c34e2e6d8878d3" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
84861
85135
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
84862
85136
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
84863
85137
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -107373,112 +107647,112 @@ var init_native_static_libraries = __esm({
107373
107647
  name: "skia",
107374
107648
  nativeSha256: "5312f2b194b1f6b6721388028bf919e56400278245b039f47136aa98f0582333",
107375
107649
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107376
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107650
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107377
107651
  archive: "libskia.a"
107378
107652
  },
107379
107653
  {
107380
107654
  name: "skia_svg",
107381
107655
  nativeSha256: "77adc498cff85db7850fb713c306681c6337f9b4ec42991b3764c8f3eff9d8d0",
107382
107656
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107383
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107657
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107384
107658
  archive: "libsvg.a"
107385
107659
  },
107386
107660
  {
107387
107661
  name: "skia_skshaper",
107388
107662
  nativeSha256: "830bcf260bd24fd79ee5d323e26ec667638795e3a0e555f1093371b8342c345c",
107389
107663
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107390
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107664
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107391
107665
  archive: "libskshaper.a"
107392
107666
  },
107393
107667
  {
107394
107668
  name: "skia_skparagraph",
107395
107669
  nativeSha256: "26afd4e5b11d46b0820a2cd7fd9918eb5a041946e1a1c0d4b91a5d54877e9dda",
107396
107670
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107397
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107671
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107398
107672
  archive: "libskparagraph.a"
107399
107673
  },
107400
107674
  {
107401
107675
  name: "skia_skunicode_core",
107402
107676
  nativeSha256: "629f58c4e81157d42e353b2b255bebb2fd94d1f31d8f8157e982fa4367710526",
107403
107677
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107404
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107678
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107405
107679
  archive: "libskunicode_core.a"
107406
107680
  },
107407
107681
  {
107408
107682
  name: "skia_skunicode_libgrapheme",
107409
107683
  nativeSha256: "047bd82306ba688453a3ff9dc02e203cdf16f2084551cca54f5d2b099baf1895",
107410
107684
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107411
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107685
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107412
107686
  archive: "libskunicode_libgrapheme.a"
107413
107687
  },
107414
107688
  {
107415
107689
  name: "skia_skottie",
107416
107690
  nativeSha256: "75c0dfd82a256e761cddc45475b8109ed8c9a442767cf3a8bf8720eef0dd4af7",
107417
107691
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107418
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107692
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107419
107693
  archive: "libskottie.a"
107420
107694
  },
107421
107695
  {
107422
107696
  name: "skia_sksg",
107423
107697
  nativeSha256: "df9652a46505d3c5c74d55b52295ef39218d2b5856e074117461fa2348312c8d",
107424
107698
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107425
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107699
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107426
107700
  archive: "libsksg.a"
107427
107701
  },
107428
107702
  {
107429
107703
  name: "skia",
107430
107704
  nativeSha256: "c9b007c4da16f66d84b2f108af719b424ef91ee0759e58df0b76930bc6f82e31",
107431
107705
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107432
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107706
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107433
107707
  archive: "libskia.a"
107434
107708
  },
107435
107709
  {
107436
107710
  name: "skia_svg",
107437
107711
  nativeSha256: "159705737769610b60216b114a28ba833840aa1df7833424df99edec4405b86f",
107438
107712
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107439
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107713
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107440
107714
  archive: "libsvg.a"
107441
107715
  },
107442
107716
  {
107443
107717
  name: "skia_skshaper",
107444
107718
  nativeSha256: "934f3dbf3f38bca87b463b664a17c1588840f86ec89cf6961fb2a89b6336b35b",
107445
107719
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107446
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107720
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107447
107721
  archive: "libskshaper.a"
107448
107722
  },
107449
107723
  {
107450
107724
  name: "skia_skparagraph",
107451
107725
  nativeSha256: "29a48349fc9b75c252b22fc6ca5ade90636900f82beec58780f03fd66ab345b3",
107452
107726
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107453
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107727
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107454
107728
  archive: "libskparagraph.a"
107455
107729
  },
107456
107730
  {
107457
107731
  name: "skia_skunicode_core",
107458
107732
  nativeSha256: "096e5139c4de528dbba5a9605895f4c725853e48225503bdfa9c1d70241e5f58",
107459
107733
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107460
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107734
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107461
107735
  archive: "libskunicode_core.a"
107462
107736
  },
107463
107737
  {
107464
107738
  name: "skia_skunicode_libgrapheme",
107465
107739
  nativeSha256: "d1ec3c2d5ad6889eb4fbf4a6bab74f39946739501d40de903f7d8cb2181ac37d",
107466
107740
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107467
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107741
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107468
107742
  archive: "libskunicode_libgrapheme.a"
107469
107743
  },
107470
107744
  {
107471
107745
  name: "skia_skottie",
107472
107746
  nativeSha256: "52ea2e046f45f51df6027d783e923864e8c4ef94a1fe4fc5971e436574d8ae57",
107473
107747
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107474
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107748
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107475
107749
  archive: "libskottie.a"
107476
107750
  },
107477
107751
  {
107478
107752
  name: "skia_sksg",
107479
107753
  nativeSha256: "541a74d8f83dc411efe8eeac377486a5054fab4c7710afe406a20a27efe8f627",
107480
107754
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107481
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107755
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107482
107756
  archive: "libsksg.a"
107483
107757
  },
107484
107758
  {
@@ -154815,7 +155089,7 @@ var init_nitro_superset = __esm({
154815
155089
  init_nitroContract();
154816
155090
  init_swift_standin_digest();
154817
155091
  NITRO_SUPERSET_ENTRY_NAME = "superset";
154818
- NITRO_COMPILER_DIGEST = true ? "aca2d73a3cdd76c01dbd1472a1e4d5627ce318c93718f056b05fd770039280cf" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
155092
+ NITRO_COMPILER_DIGEST = true ? "61b3b5dc20fe5b64808415a8f9ef336a84a5a1c498d9b6f9362e41c0b5a37f73" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
154819
155093
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
154820
155094
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
154821
155095
  published3 = /* @__PURE__ */ new Map();