peachsim 0.1.2624 → 0.1.2626

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/cli/commands/diagnose-native.ts +717 -0
  2. package/cli/commands/perf-native.ts +120 -51
  3. package/dist-lib/agent-daemon-client.cjs +1 -1
  4. package/dist-lib/agent-events.cjs +1 -1
  5. package/dist-lib/attached-projects.cjs +1 -1
  6. package/dist-lib/auth/shared-session.cjs +1 -1
  7. package/dist-lib/backend-origin.cjs +1 -1
  8. package/dist-lib/beta.cjs +1 -1
  9. package/dist-lib/beta.mjs +2 -2
  10. package/dist-lib/bridge-constants.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.mjs +5 -5
  13. package/dist-lib/bridge-contract.cjs +1 -1
  14. package/dist-lib/bridge-contract.mjs +3 -3
  15. package/dist-lib/bundle-channel.cjs +424 -339
  16. package/dist-lib/capture-contract.cjs +1 -1
  17. package/dist-lib/capture-contract.mjs +3 -3
  18. package/dist-lib/cloud-contract.cjs +1 -1
  19. package/dist-lib/cloud-contract.mjs +3 -3
  20. package/dist-lib/cloud-test-args.cjs +1 -1
  21. package/dist-lib/cloud-test-args.mjs +2 -2
  22. package/dist-lib/cloud.cjs +1 -1
  23. package/dist-lib/cloud.mjs +7 -7
  24. package/dist-lib/config.cjs +1 -1
  25. package/dist-lib/config.mjs +5 -5
  26. package/dist-lib/detox/index.cjs +1 -1
  27. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  28. package/dist-lib/esm-chunks/{acorn-DH6VFUJ3.mjs → acorn-JXJYSAIN.mjs} +3 -3
  29. package/dist-lib/esm-chunks/{chunk-YOD53JTM.mjs → chunk-26TN2VTX.mjs} +2 -2
  30. package/dist-lib/esm-chunks/{chunk-T7C6Z5UH.mjs → chunk-2NVWTTQ4.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-LT533AHJ.mjs → chunk-2R77YMAI.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-XONCLAVA.mjs → chunk-4KZSU4Q6.mjs} +21 -13
  33. package/dist-lib/esm-chunks/{chunk-IMI2NE4A.mjs → chunk-5STOTQGG.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-HKPKCJI5.mjs → chunk-5TQNPFPN.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-OLAYY7SG.mjs → chunk-5UEXET5Y.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-LMWSFXYN.mjs → chunk-62JXISPM.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-A2WMBGJO.mjs → chunk-7ASIV44B.mjs} +3 -3
  38. package/dist-lib/esm-chunks/{chunk-JHMD4G4V.mjs → chunk-AETFJFSQ.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-UJORQHAE.mjs → chunk-AVFNDICR.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-AV7G5PTE.mjs → chunk-BFQUJ4RC.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-265THLTP.mjs → chunk-BSNIUHSI.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-CM2NU5MS.mjs → chunk-F6KLM535.mjs} +5 -5
  43. package/dist-lib/esm-chunks/{chunk-LOQBWIPM.mjs → chunk-HESCA2JF.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-N4ZJZUCO.mjs → chunk-IYJG62ST.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-QNXV766K.mjs → chunk-LBDHHUER.mjs} +81 -15
  46. package/dist-lib/esm-chunks/{chunk-EFQFJ7M6.mjs → chunk-LWOZ3LUO.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-3XA5HYI5.mjs → chunk-T4ZKKV6P.mjs} +9 -8
  48. package/dist-lib/esm-chunks/{chunk-2YHIYKY2.mjs → chunk-UD7ON4ZV.mjs} +4 -4
  49. package/dist-lib/esm-chunks/{chunk-LCO2EXKF.mjs → chunk-V4CRDOYA.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-LD7Z3NDO.mjs → chunk-WC43FELF.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{chunk-QZ5HTMWV.mjs → chunk-XCUDQYYK.mjs} +1 -1
  52. package/dist-lib/esm-chunks/{chunk-VH4BJS5V.mjs → chunk-YPBNNV6N.mjs} +1 -1
  53. package/dist-lib/esm-chunks/{metro-layout-parser-MDVTDJ65.mjs → metro-layout-parser-E34XATI4.mjs} +3 -3
  54. package/dist-lib/esm-chunks/{swift-package-prebuilt-ZN7I4FYC.mjs → swift-package-prebuilt-73BSTPFQ.mjs} +12 -12
  55. package/dist-lib/esm-chunks/{swift-sdk-app-module-DUVE2OXH.mjs → swift-sdk-app-module-L7AT6SCB.mjs} +16 -16
  56. package/dist-lib/esm-chunks/{swift-sdk-image-YSWQBCYV.mjs → swift-sdk-image-5NH574IM.mjs} +16 -18
  57. package/dist-lib/esm-chunks/{swift-sdk-image-producer-MZ235WSK.mjs → swift-sdk-image-producer-YVZHH2LX.mjs} +5 -5
  58. package/dist-lib/expo-swift-bundle.cjs +325 -240
  59. package/dist-lib/expo-swift-metadata.cjs +1 -1
  60. package/dist-lib/expo-swift-metadata.mjs +7 -7
  61. package/dist-lib/home-paths.cjs +1 -1
  62. package/dist-lib/host/bridge-host.cjs +428 -343
  63. package/dist-lib/host/fetch-proxy-handler.cjs +76 -8
  64. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  65. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  66. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  67. package/dist-lib/host/websocket-proxy.cjs +1 -1
  68. package/dist-lib/index.cjs +1 -1
  69. package/dist-lib/kotlin-host.cjs +1 -1
  70. package/dist-lib/menu.cjs +1 -1
  71. package/dist-lib/menu.mjs +3 -3
  72. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  73. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  74. package/dist-lib/metro-production-bundle.cjs +1 -1
  75. package/dist-lib/metro-production-bundle.mjs +4 -4
  76. package/dist-lib/native-app-identity-project.cjs +4 -3
  77. package/dist-lib/native-app-identity-project.mjs +15 -15
  78. package/dist-lib/native-app-identity.cjs +1 -1
  79. package/dist-lib/native-app-identity.mjs +6 -6
  80. package/dist-lib/native-firebase-metadata.cjs +1 -1
  81. package/dist-lib/native-firebase-metadata.mjs +3 -3
  82. package/dist-lib/pdfium-raster.cjs +1 -1
  83. package/dist-lib/pdfium-raster.mjs +2 -2
  84. package/dist-lib/plist.cjs +1 -1
  85. package/dist-lib/plist.mjs +3 -3
  86. package/dist-lib/profiles.cjs +1 -1
  87. package/dist-lib/public-brand.cjs +1 -1
  88. package/dist-lib/public-origins-lib-esm.json +87 -86
  89. package/dist-lib/public-origins-lib.json +69 -64
  90. package/dist-lib/react-native-host-modules.cjs +1 -1
  91. package/dist-lib/react-native-host-modules.mjs +2 -2
  92. package/dist-lib/reap-browser.cjs +1 -1
  93. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  94. package/dist-lib/sdk.cjs +1 -1
  95. package/dist-lib/sdk.mjs +8 -8
  96. package/dist-lib/skills.cjs +465 -380
  97. package/dist-lib/swift-compile.cjs +142 -62
  98. package/dist-lib/swift-compile.mjs +12 -12
  99. package/dist-lib/swift-package.cjs +1 -1
  100. package/dist-lib/swift-package.mjs +3 -3
  101. package/dist-lib/swift-submit.cjs +1 -1
  102. package/dist-lib/swift-submit.mjs +6 -6
  103. package/dist-lib/swift-svg-raster.cjs +1 -1
  104. package/dist-lib/swift-svg-raster.mjs +2 -2
  105. package/dist-lib/swift-toolchain.cjs +1 -1
  106. package/dist-lib/swift.cjs +1 -1
  107. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  108. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  109. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  110. package/dist-lib/vendor/acorn.cjs +1 -1
  111. package/dist-lib/vendor/magic-string.cjs +1 -1
  112. package/dist-lib/vendor/stream-json.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  116. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  117. package/dist-lib/vendor/sucrase.cjs +1 -1
  118. package/dist-lib/vendor/terser.cjs +1 -1
  119. package/dist-lib/vendor/valibot.cjs +1 -1
  120. package/dist-lib/vendor/ws.cjs +1 -1
  121. package/dist-lib/vendor/zod.cjs +1 -1
  122. package/dist-lib/worklet-executable.cjs +1 -1
  123. package/dist-lib/worklet-executable.mjs +3 -3
  124. package/kotlin/sdk.tar.gz +0 -0
  125. package/package.json +1 -1
  126. package/src/react-native-core-build.ts +12 -12
  127. package/src/react-native-core.ts +3 -7
  128. package/src/swift-compiler-digest.ts +37 -10
  129. package/src/swift-distribution-contract.ts +6 -1
  130. package/src/swift-distribution.lock.json +4 -2
  131. package/src/swift-sdk-image-recipe.ts +20 -0
  132. package/src/swift-sdk-image.ts +2 -4
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2624 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2626 | (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;
@@ -5923,7 +5923,10 @@ var init_swift_objc_sdk_tree = __esm({
5923
5923
  });
5924
5924
 
5925
5925
  // src/swift-compiler-digest.ts
5926
- var import_node_crypto9, import_node_fs23, import_node_path23;
5926
+ function swiftArchiveCompilerDigestValue() {
5927
+ return true ? "53326609252f356d24373d653503ae1ad7e08db0a4b20c5236e7e7d1c769ee7f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
5928
+ }
5929
+ var import_node_crypto9, import_node_fs23, import_node_path23, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
5927
5930
  var init_swift_compiler_digest = __esm({
5928
5931
  "src/swift-compiler-digest.ts"() {
5929
5932
  "use strict";
@@ -5931,6 +5934,72 @@ var init_swift_compiler_digest = __esm({
5931
5934
  import_node_fs23 = require("node:fs");
5932
5935
  import_node_path23 = __toESM(require("node:path"), 1);
5933
5936
  init_swift_objc_sdk_tree();
5937
+ SWIFT_DIGEST_SOURCES = [
5938
+ "swift-compile.ts",
5939
+ "swift-sdk-surface.ts",
5940
+ "swift-wasm-archive.ts",
5941
+ "swift-lexical.ts",
5942
+ "swift-header-compiler.ts",
5943
+ "swift-header-dependencies.ts",
5944
+ "swift-reproducible.ts",
5945
+ "write-build-file.ts",
5946
+ "xcode-header-search.ts",
5947
+ "case-insensitive-header-overlay.ts",
5948
+ "swift-package.ts",
5949
+ "swift-package-prebuilt.ts",
5950
+ "swift-package-prebuilt-targets.ts",
5951
+ "swift-objc-prebuilt.ts",
5952
+ "swift-objc-prebuilt-catalog.ts",
5953
+ "swift-toolchain.ts",
5954
+ "swift-shared-sdk.ts",
5955
+ "swift-distribution-mirror.ts",
5956
+ "swift-design-time.ts",
5957
+ "binaryen.lock.json",
5958
+ "swift-root-lock.ts",
5959
+ "process-table.ts",
5960
+ "swift-link-roots.ts",
5961
+ "swift-wasm-prune.ts",
5962
+ "wasm-optimize.ts",
5963
+ "wasm-features.ts",
5964
+ "wasm-narrow-boundary.ts",
5965
+ "../../peach-kit/src/nativeWasmContract.ts",
5966
+ "swift-guest-image-ledger.ts",
5967
+ "swift-guest-archive.ts",
5968
+ "swift-guest-link-plan.ts",
5969
+ "swift-guest-link.ts",
5970
+ "swift-guest-compile.ts",
5971
+ "swift-guest-dyld-functions.ts",
5972
+ "swift-guest-linked-spans.ts",
5973
+ "swift-guest-source-plan.ts",
5974
+ "swift-guest-runtime-plan.ts",
5975
+ "swift-guest-source-inputs.ts",
5976
+ "swift-guest-manifest.ts",
5977
+ "swift-guest-projection.ts",
5978
+ "swift-guest-projection-storage.ts",
5979
+ "swiftGuestImageContract.ts",
5980
+ "swift-runtime-products.ts",
5981
+ "swift-sdk-app-module.ts",
5982
+ "swift-sdk-image-map.ts",
5983
+ "swift-sdk-image-wasm.ts",
5984
+ "swift-sdk-image.ts",
5985
+ "../../peach-kit/src/nativeSdkBindingContract.ts",
5986
+ "swiftRuntimeProductContract.ts",
5987
+ "swiftTargetContract.ts",
5988
+ "swift-objc-import.ts",
5989
+ "swiftContract.ts",
5990
+ "swift-objc-platform.ts",
5991
+ "swift-objc-standin.ts",
5992
+ "swift-objc-sdk.ts"
5993
+ ];
5994
+ LINKED_IMAGE_SOURCES = /* @__PURE__ */ new Set([
5995
+ "binaryen.lock.json",
5996
+ "swift-sdk-app-module.ts",
5997
+ "swift-sdk-image.ts",
5998
+ "wasm-optimize.ts"
5999
+ ]);
6000
+ SWIFT_ARCHIVE_DIGEST_SOURCES = SWIFT_DIGEST_SOURCES.filter(
6001
+ (file) => !LINKED_IMAGE_SOURCES.has(file)
6002
+ );
5934
6003
  }
5935
6004
  });
5936
6005
 
@@ -6000,13 +6069,13 @@ var init_swift_standin_digest = __esm({
6000
6069
  ];
6001
6070
  RUNTIME_IMPORT = /(?:^|[;\n])[ \t]*(?:import|export)\s+(?!type(?:\s|\{))([\s\S]*?)\s+from\s*['"]([^'"]+)['"]|(?:^|[;\n])[ \t]*import\s+['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
6002
6071
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES);
6003
- STANDIN_SOURCE_DIGEST = true ? "7f9a1a548c5ea58c56b73bfc2a755a05031acbd1b10c1c79dc32b1d6c9bea9e4" : standinSourceDigest();
6072
+ STANDIN_SOURCE_DIGEST = true ? "c87e0b7f1ae69b2a4e76611266612d6218f81a3244e592800c02f78c4f8e48f6" : standinSourceDigest();
6004
6073
  }
6005
6074
  });
6006
6075
 
6007
6076
  // src/expo-native-compiler-digest.ts
6008
6077
  function expoNativeCompilerDigestValue() {
6009
- return true ? "ee97927d0c41fd6dd7d1290da2bbe36d7c9ec0fe81e3d5a7aa101cd4d446e5ab" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
6078
+ return true ? "e9c127a6fe6b767d364983920ce71499b88057f966ac63fcb102ddd3ae4209fd" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
6010
6079
  }
6011
6080
  var import_node_crypto11;
6012
6081
  var init_expo_native_compiler_digest = __esm({
@@ -27673,12 +27742,13 @@ function parseSwiftDistributionLock(value) {
27673
27742
  if (runtime === void 0) return void 0;
27674
27743
  if (!isRecord(runtime) || typeof runtime.source !== "string" || !/^[a-f0-9]{64}$/.test(runtime.source) || typeof runtime.url !== "string" || !/^https:\/\/[a-z0-9.-]+(?::\d+)?\/compile\/asset\/[a-f0-9]{64}$/.test(
27675
27744
  runtime.url
27676
- ) || runtime.dataPlan !== void 0 && (typeof runtime.dataPlan !== "string" || !/^[a-f0-9]{64}$/.test(runtime.dataPlan)))
27745
+ ) || runtime.dataPlan !== void 0 && (typeof runtime.dataPlan !== "string" || !/^[a-f0-9]{64}$/.test(runtime.dataPlan)) || runtime.recipe !== void 0 && (typeof runtime.recipe !== "string" || !/^[a-f0-9]{16}$/.test(runtime.recipe)))
27677
27746
  throw new Error("invalid shared SDK runtime publication in Swift distribution lock");
27678
27747
  return {
27679
27748
  source: runtime.source,
27680
27749
  url: runtime.url,
27681
- ...runtime.dataPlan && { dataPlan: runtime.dataPlan }
27750
+ ...runtime.dataPlan && { dataPlan: runtime.dataPlan },
27751
+ ...runtime.recipe && { recipe: runtime.recipe }
27682
27752
  };
27683
27753
  };
27684
27754
  const sdkRuntime = publication(value.sdkRuntime);
@@ -43918,6 +43988,21 @@ var init_swift_root_lock = __esm({
43918
43988
  }
43919
43989
  });
43920
43990
 
43991
+ // src/swift-sdk-image-recipe.ts
43992
+ var import_node_crypto42, SWIFT_SDK_IMAGE_VERSION, swiftSdkImageScope, SWIFT_SDK_IMAGE_RECIPE;
43993
+ var init_swift_sdk_image_recipe = __esm({
43994
+ "src/swift-sdk-image-recipe.ts"() {
43995
+ "use strict";
43996
+ import_node_crypto42 = require("node:crypto");
43997
+ init_wasm_optimize();
43998
+ SWIFT_SDK_IMAGE_VERSION = 13;
43999
+ swiftSdkImageScope = (scopedLookups) => scopedLookups ? "guest image scopes 9\n" : "unscoped constructor order 1\n";
44000
+ SWIFT_SDK_IMAGE_RECIPE = (0, import_node_crypto42.createHash)("sha256").update(`swift-sdk-image
44001
+ ${SWIFT_SDK_IMAGE_VERSION}
44002
+ `).update(WASM_LOWER_IDENTITY).update(swiftSdkImageScope(false)).update(swiftSdkImageScope(true)).digest("hex").slice(0, 16);
44003
+ }
44004
+ });
44005
+
43921
44006
  // src/swift-sdk-image-producer.ts
43922
44007
  var swift_sdk_image_producer_exports = {};
43923
44008
  __export(swift_sdk_image_producer_exports, {
@@ -43958,7 +44043,7 @@ function applySwiftSdkProducerEnvironment(environment) {
43958
44043
  }
43959
44044
  }
43960
44045
  function writeSwiftSdkProducerResult(file, launchId, error) {
43961
- const temporary = `${file}.${(0, import_node_crypto42.randomUUID)()}`;
44046
+ const temporary = `${file}.${(0, import_node_crypto43.randomUUID)()}`;
43962
44047
  (0, import_node_fs71.writeFileSync)(temporary, JSON.stringify({ launchId, error: error ?? null }));
43963
44048
  (0, import_node_fs71.renameSync)(temporary, file);
43964
44049
  }
@@ -44070,7 +44155,7 @@ async function produceSwiftSdkImage(input) {
44070
44155
  }
44071
44156
  }
44072
44157
  const repo = import_node_path71.default.resolve(input.moduleRoot, "../..");
44073
- const launchId = (0, import_node_crypto42.randomUUID)();
44158
+ const launchId = (0, import_node_crypto43.randomUUID)();
44074
44159
  const directory3 = import_node_path71.default.join(root, launchId);
44075
44160
  const requestFile = import_node_path71.default.join(directory3, "request.json");
44076
44161
  const sessionFile2 = import_node_path71.default.join(directory3, "session");
@@ -44168,12 +44253,12 @@ async function produceSwiftSdkImage(input) {
44168
44253
  await (0, import_promises10.setTimeout)(2e3, void 0, { signal: input.signal });
44169
44254
  }
44170
44255
  }
44171
- var import_node_child_process36, import_node_crypto42, import_node_fs71, import_node_path71, import_promises10, import_node_util9, run3, environmentNames, launcher;
44256
+ var import_node_child_process36, import_node_crypto43, import_node_fs71, import_node_path71, import_promises10, import_node_util9, run3, environmentNames, launcher;
44172
44257
  var init_swift_sdk_image_producer = __esm({
44173
44258
  "src/swift-sdk-image-producer.ts"() {
44174
44259
  "use strict";
44175
44260
  import_node_child_process36 = require("node:child_process");
44176
- import_node_crypto42 = require("node:crypto");
44261
+ import_node_crypto43 = require("node:crypto");
44177
44262
  import_node_fs71 = require("node:fs");
44178
44263
  import_node_path71 = __toESM(require("node:path"), 1);
44179
44264
  import_promises10 = require("node:timers/promises");
@@ -44213,7 +44298,6 @@ __export(swift_sdk_image_exports, {
44213
44298
  SWIFT_SDK_APP_TABLE_BASE: () => SWIFT_SDK_APP_TABLE_BASE,
44214
44299
  SWIFT_SDK_IMAGE_BUNDLE: () => SWIFT_SDK_IMAGE_BUNDLE,
44215
44300
  SWIFT_SDK_IMAGE_FILES: () => SWIFT_SDK_IMAGE_FILES,
44216
- SWIFT_SDK_IMAGE_VERSION: () => SWIFT_SDK_IMAGE_VERSION,
44217
44301
  SWIFT_SDK_MEMORY_BASE: () => SWIFT_SDK_MEMORY_BASE,
44218
44302
  SWIFT_SDK_PIECE_FIELDS: () => SWIFT_SDK_PIECE_FIELDS,
44219
44303
  buildSwiftSdkImage: () => buildSwiftSdkImage,
@@ -44248,9 +44332,9 @@ function swiftSdkImageProducts(moduleRoot, frameworkImports2) {
44248
44332
  function swiftSdkImageKey(moduleRoot, scopedLookups = false, products = []) {
44249
44333
  const distribution = swiftDistributionAt(moduleRoot);
44250
44334
  const inputs2 = distribution ? swiftSdkDistributionInputs(distribution) : swiftModuleDigest(moduleRoot);
44251
- return (0, import_node_crypto43.createHash)("sha256").update(`swift-sdk-image
44335
+ return (0, import_node_crypto44.createHash)("sha256").update(`swift-sdk-image
44252
44336
  ${SWIFT_SDK_IMAGE_VERSION}
44253
- `).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(scopedLookups ? "guest image scopes 9\n" : "unscoped constructor order 1\n").update(inputs2).update(products.length === 0 ? "" : `
44337
+ `).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(swiftSdkImageScope(scopedLookups)).update(inputs2).update(products.length === 0 ? "" : `
44254
44338
  products ${products.join(" ")}`).digest("hex").slice(0, 32);
44255
44339
  }
44256
44340
  function swiftSdkImageEntry(key2, scopedLookups) {
@@ -44339,7 +44423,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
44339
44423
  stage
44340
44424
  ]);
44341
44425
  const image = cached3(stage, key2);
44342
- if (!image || (0, import_node_crypto43.createHash)("sha256").update((0, import_node_fs72.readFileSync)(image.image)).digest("hex") !== image.sha256)
44426
+ if (!image || (0, import_node_crypto44.createHash)("sha256").update((0, import_node_fs72.readFileSync)(image.image)).digest("hex") !== image.sha256)
44343
44427
  throw new Error(`invalid published Swift SDK image ${key2}`);
44344
44428
  (0, import_node_fs72.rmSync)(directory2, { recursive: true, force: true });
44345
44429
  (0, import_node_fs72.renameSync)(stage, directory2);
@@ -44609,7 +44693,7 @@ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLooku
44609
44693
  (0, import_node_fs72.writeFileSync)(import_node_path72.default.join(work, INTERFACE_FILE), JSON.stringify(sdkInterface));
44610
44694
  (0, import_node_fs72.writeFileSync)(
44611
44695
  import_node_path72.default.join(work, IMAGE_DIGEST),
44612
- typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(image).digest("hex") : (0, import_node_crypto43.createHash)("sha256").update(image).digest("hex")
44696
+ typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(image).digest("hex") : (0, import_node_crypto44.createHash)("sha256").update(image).digest("hex")
44613
44697
  );
44614
44698
  if (swiftSdkImageKey(
44615
44699
  moduleRoot,
@@ -44878,12 +44962,12 @@ function readSwiftSdkManifest(image) {
44878
44962
  }));
44879
44963
  return setBoundedCache(cachedSdkManifests, cacheKey, { manifest, block: block2, segments });
44880
44964
  }
44881
- var import_node_child_process37, import_node_crypto43, import_node_fs72, import_node_path72, import_node_util10, run4, SWIFT_SDK_IMAGE_VERSION, SWIFT_SDK_APP_MEMORY_BASE, SWIFT_SDK_MEMORY_BASE, SWIFT_SDK_APP_TABLE_BASE, EMPTY_APP, IMAGE_TABLES, IMAGE_ENTRY, imageApp, IMAGE_FILE, IMAGE_DIGEST, swiftSdkImageFile, INTERFACE_FILE, MANIFEST_FILE, MANIFEST_DATA_FILE, SWIFT_SDK_IMAGE_FILES, SWIFT_SDK_IMAGE_BUNDLE, MAX_CACHED_SDK_IMAGES, cachedSdkInterfaces, cachedSdkManifestIndices, cachedSdkManifests, SWIFT_SDK_PIECE_FIELDS, MANIFEST_BLOCKS, isManifestBlock;
44965
+ var import_node_child_process37, import_node_crypto44, import_node_fs72, import_node_path72, import_node_util10, run4, SWIFT_SDK_APP_MEMORY_BASE, SWIFT_SDK_MEMORY_BASE, SWIFT_SDK_APP_TABLE_BASE, EMPTY_APP, IMAGE_TABLES, IMAGE_ENTRY, imageApp, IMAGE_FILE, IMAGE_DIGEST, swiftSdkImageFile, INTERFACE_FILE, MANIFEST_FILE, MANIFEST_DATA_FILE, SWIFT_SDK_IMAGE_FILES, SWIFT_SDK_IMAGE_BUNDLE, MAX_CACHED_SDK_IMAGES, cachedSdkInterfaces, cachedSdkManifestIndices, cachedSdkManifests, SWIFT_SDK_PIECE_FIELDS, MANIFEST_BLOCKS, isManifestBlock;
44882
44966
  var init_swift_sdk_image = __esm({
44883
44967
  "src/swift-sdk-image.ts"() {
44884
44968
  "use strict";
44885
44969
  import_node_child_process37 = require("node:child_process");
44886
- import_node_crypto43 = require("node:crypto");
44970
+ import_node_crypto44 = require("node:crypto");
44887
44971
  import_node_fs72 = require("node:fs");
44888
44972
  import_node_path72 = __toESM(require("node:path"), 1);
44889
44973
  import_node_util10 = require("node:util");
@@ -44895,13 +44979,13 @@ var init_swift_sdk_image = __esm({
44895
44979
  init_swift_root_lock();
44896
44980
  init_swift_sdk_guest_lookups();
44897
44981
  init_swift_sdk_image_map();
44982
+ init_swift_sdk_image_recipe();
44898
44983
  init_swift_sdk_image_wasm();
44899
44984
  init_swift_toolchain();
44900
44985
  init_swift_wasm_prune();
44901
44986
  init_swiftTargetContract();
44902
44987
  init_wasm_optimize();
44903
44988
  run4 = (0, import_node_util10.promisify)(import_node_child_process37.execFile);
44904
- SWIFT_SDK_IMAGE_VERSION = 13;
44905
44989
  SWIFT_SDK_APP_MEMORY_BASE = 8372224;
44906
44990
  SWIFT_SDK_MEMORY_BASE = 128 * 1024 * 1024;
44907
44991
  SWIFT_SDK_APP_TABLE_BASE = 524288;
@@ -45545,7 +45629,7 @@ async function linkSwiftAppModule(options2) {
45545
45629
  lazy,
45546
45630
  KEEP_WASM_NAMES
45547
45631
  ])
45548
- ).update(bytes).digest("hex") : (0, import_node_crypto44.createHash)("sha256").update(
45632
+ ).update(bytes).digest("hex") : (0, import_node_crypto45.createHash)("sha256").update(
45549
45633
  JSON.stringify([
45550
45634
  loweringCache.compilerDigest,
45551
45635
  optimize,
@@ -46164,7 +46248,7 @@ function createSwiftSdkBinding(linkage, sdk2, usage, projection) {
46164
46248
  bindSwiftAppModule(linkage, sdk2),
46165
46249
  selectSwiftSdkData(sdk2, usage, linkage, projection)
46166
46250
  ]);
46167
- const sha2565 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0, import_node_crypto44.createHash)("sha256").update(bytes).digest("hex");
46251
+ const sha2565 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0, import_node_crypto45.createHash)("sha256").update(bytes).digest("hex");
46168
46252
  return { bytes, sha256: sha2565 };
46169
46253
  }
46170
46254
  function readSwiftSdkUsage(mapFile, linkedFile, sdkObjects) {
@@ -46711,12 +46795,12 @@ function partitionParent(section2) {
46711
46795
  "__objc_class_refs"
46712
46796
  ].find((name3) => section2 === name3 || section2.startsWith(`${name3}.`));
46713
46797
  }
46714
- var import_node_child_process38, import_node_crypto44, import_node_fs73, import_node_path73, import_node_util11, import_node_zlib5, run5, RELOCATION_WIDTHS, GLOBAL_INDEX, TLS_SLEB64, SDK_TLS_HELPER, SDK_TLS_DELTA, OBJC_SECTION_BOUNDARY, uleb4, sleb2, encodedName2, SCANNED, RUN_GAP;
46798
+ var import_node_child_process38, import_node_crypto45, import_node_fs73, import_node_path73, import_node_util11, import_node_zlib5, run5, RELOCATION_WIDTHS, GLOBAL_INDEX, TLS_SLEB64, SDK_TLS_HELPER, SDK_TLS_DELTA, OBJC_SECTION_BOUNDARY, uleb4, sleb2, encodedName2, SCANNED, RUN_GAP;
46715
46799
  var init_swift_sdk_app_module = __esm({
46716
46800
  "src/swift-sdk-app-module.ts"() {
46717
46801
  "use strict";
46718
46802
  import_node_child_process38 = require("node:child_process");
46719
- import_node_crypto44 = require("node:crypto");
46803
+ import_node_crypto45 = require("node:crypto");
46720
46804
  import_node_fs73 = require("node:fs");
46721
46805
  import_node_path73 = __toESM(require("node:path"), 1);
46722
46806
  import_node_util11 = require("node:util");
@@ -47422,7 +47506,7 @@ function compilerCheckpoint(root, recipe2, args, header) {
47422
47506
  }
47423
47507
  if (!objects.length) return;
47424
47508
  const outputs = [module2, header, map2[""].dependencies, ...objects];
47425
- const digest3 = (0, import_node_crypto45.createHash)("sha256").update(recipe2).update(JSON.stringify(args)).update(mapText);
47509
+ const digest3 = (0, import_node_crypto46.createHash)("sha256").update(recipe2).update(JSON.stringify(args)).update(mapText);
47426
47510
  for (const flag of args) {
47427
47511
  if (!flag.startsWith("@")) continue;
47428
47512
  const response = flag.slice(1);
@@ -47516,11 +47600,11 @@ async function withSwiftHeaderCompiler(root, toolchainBin, recipe2, producers, b
47516
47600
  (0, import_node_fs75.rmSync)(directory2, { recursive: true, force: true });
47517
47601
  }
47518
47602
  }
47519
- var import_node_crypto45, import_node_fs75, import_node_http2, import_node_path75, SWIFT_HEADER_COMPILER_WRAPPER, argument, client;
47603
+ var import_node_crypto46, import_node_fs75, import_node_http2, import_node_path75, SWIFT_HEADER_COMPILER_WRAPPER, argument, client;
47520
47604
  var init_swift_header_compiler = __esm({
47521
47605
  "src/swift-header-compiler.ts"() {
47522
47606
  "use strict";
47523
- import_node_crypto45 = require("node:crypto");
47607
+ import_node_crypto46 = require("node:crypto");
47524
47608
  import_node_fs75 = require("node:fs");
47525
47609
  import_node_http2 = require("node:http");
47526
47610
  import_node_path75 = __toESM(require("node:path"), 1);
@@ -47784,7 +47868,7 @@ var init_icuData = __esm({
47784
47868
 
47785
47869
  // src/swift-icu.ts
47786
47870
  async function cachedBrotli(bytes, quality, cacheKey) {
47787
- const key2 = cacheKey && /^[a-f0-9]{64}$/.test(cacheKey) ? cacheKey : (0, import_node_crypto46.createHash)("sha256").update(bytes).digest("hex");
47871
+ const key2 = cacheKey && /^[a-f0-9]{64}$/.test(cacheKey) ? cacheKey : (0, import_node_crypto47.createHash)("sha256").update(bytes).digest("hex");
47788
47872
  const cacheId = `${quality}:${key2}`;
47789
47873
  const cached4 = brotliMemoryCache.get(cacheId);
47790
47874
  if (cached4) return cached4;
@@ -47802,7 +47886,7 @@ async function cachedBrotli(bytes, quality, cacheKey) {
47802
47886
  });
47803
47887
  try {
47804
47888
  await (0, import_promises11.mkdir)(dir, { recursive: true });
47805
- const tmp = `${file}.${(0, import_node_crypto46.randomUUID)()}.tmp`;
47889
+ const tmp = `${file}.${(0, import_node_crypto47.randomUUID)()}.tmp`;
47806
47890
  await (0, import_promises11.writeFile)(tmp, compressed);
47807
47891
  await (0, import_promises11.rename)(tmp, file);
47808
47892
  } catch {
@@ -47840,7 +47924,7 @@ function swiftIcuAsset(toolchainBin, sdk2) {
47840
47924
  JSON.stringify([toolchainBin, sdk2, swiftSdkOptions()]),
47841
47925
  async () => {
47842
47926
  const zipped = await deflate(await swiftIcuData(toolchainBin, sdk2));
47843
- return { sha256: (0, import_node_crypto46.createHash)("sha256").update(zipped).digest("hex"), gzip: zipped };
47927
+ return { sha256: (0, import_node_crypto47.createHash)("sha256").update(zipped).digest("hex"), gzip: zipped };
47844
47928
  }
47845
47929
  );
47846
47930
  }
@@ -47942,7 +48026,7 @@ function swiftIcuPacked(icu) {
47942
48026
  )
47943
48027
  );
47944
48028
  await (0, import_promises11.mkdir)(import_node_path77.default.dirname(file), { recursive: true });
47945
- const tmp = `${file}.${(0, import_node_crypto46.randomUUID)()}.tmp`;
48029
+ const tmp = `${file}.${(0, import_node_crypto47.randomUUID)()}.tmp`;
47946
48030
  await (0, import_promises11.writeFile)(tmp, packed);
47947
48031
  await (0, import_promises11.rename)(tmp, file);
47948
48032
  return packed;
@@ -47955,12 +48039,12 @@ async function swiftIcuBundleAsset(icu) {
47955
48039
  contentType: "application/octet-stream"
47956
48040
  };
47957
48041
  }
47958
- var import_node_child_process40, import_node_crypto46, import_node_fs76, import_promises11, import_node_os16, import_node_path77, import_node_util12, import_node_zlib6, run6, deflate, compressBrotli, inflateGzip, ARCHIVE, MEMBER, raw, assets, brotliMemoryCache, packedFiles;
48042
+ var import_node_child_process40, import_node_crypto47, import_node_fs76, import_promises11, import_node_os16, import_node_path77, import_node_util12, import_node_zlib6, run6, deflate, compressBrotli, inflateGzip, ARCHIVE, MEMBER, raw, assets, brotliMemoryCache, packedFiles;
47959
48043
  var init_swift_icu = __esm({
47960
48044
  "src/swift-icu.ts"() {
47961
48045
  "use strict";
47962
48046
  import_node_child_process40 = require("node:child_process");
47963
- import_node_crypto46 = require("node:crypto");
48047
+ import_node_crypto47 = require("node:crypto");
47964
48048
  import_node_fs76 = require("node:fs");
47965
48049
  import_promises11 = require("node:fs/promises");
47966
48050
  import_node_os16 = __toESM(require("node:os"), 1);
@@ -48163,7 +48247,7 @@ function swiftObjCPrebuiltCompiler(clang, root, sysroot, distribution, targets,
48163
48247
  );
48164
48248
  if (!modules.length) return [];
48165
48249
  const { executable, prefixArgs } = rnxSelfInvocation();
48166
- const compiler = (0, import_node_crypto47.createHash)("sha256").update(import_node_fs77.default.readFileSync(clang)).digest("hex");
48250
+ const compiler = (0, import_node_crypto48.createHash)("sha256").update(import_node_fs77.default.readFileSync(clang)).digest("hex");
48167
48251
  return [
48168
48252
  'case "$module" in',
48169
48253
  ` ${modules.join("|")}) exec ${[
@@ -48181,12 +48265,12 @@ function swiftObjCPrebuiltCompiler(clang, root, sysroot, distribution, targets,
48181
48265
  "esac"
48182
48266
  ];
48183
48267
  }
48184
- var import_node_child_process41, import_node_crypto47, import_node_fs77, import_node_path78, quote2;
48268
+ var import_node_child_process41, import_node_crypto48, import_node_fs77, import_node_path78, quote2;
48185
48269
  var init_swift_objc_prebuilt = __esm({
48186
48270
  "src/swift-objc-prebuilt.ts"() {
48187
48271
  "use strict";
48188
48272
  import_node_child_process41 = require("node:child_process");
48189
- import_node_crypto47 = require("node:crypto");
48273
+ import_node_crypto48 = require("node:crypto");
48190
48274
  import_node_fs77 = __toESM(require("node:fs"), 1);
48191
48275
  import_node_path78 = __toESM(require("node:path"), 1);
48192
48276
  init_internal_child_contract();
@@ -48539,7 +48623,7 @@ function swiftPackagePrebuiltEntries(input, moduleRoot, toolchainBin) {
48539
48623
  ([file, source]) => !/\.(?:swift|c|h|inc|modulemap)$/.test(file) || file.endsWith(".swift") && swiftImportNames(source, available2).some((name4) => !available2.has(name4))
48540
48624
  ))
48541
48625
  return [];
48542
- const hash = (0, import_node_crypto48.createHash)("sha256");
48626
+ const hash = (0, import_node_crypto49.createHash)("sha256");
48543
48627
  for (const entry of files2.sort(
48544
48628
  ([left], [right]) => left < right ? -1 : left > right ? 1 : 0
48545
48629
  ))
@@ -48606,11 +48690,11 @@ function useSwiftPackagePrebuilts(input, moduleRoot, toolchainBin) {
48606
48690
  }
48607
48691
  return resolved;
48608
48692
  }
48609
- var import_node_crypto48, import_node_fs80, import_node_path82, PACKAGE_RECIPE;
48693
+ var import_node_crypto49, import_node_fs80, import_node_path82, PACKAGE_RECIPE;
48610
48694
  var init_swift_package_prebuilt = __esm({
48611
48695
  "src/swift-package-prebuilt.ts"() {
48612
48696
  "use strict";
48613
- import_node_crypto48 = require("node:crypto");
48697
+ import_node_crypto49 = require("node:crypto");
48614
48698
  import_node_fs80 = __toESM(require("node:fs"), 1);
48615
48699
  import_node_path82 = __toESM(require("node:path"), 1);
48616
48700
  init_native_prebuilt();
@@ -48770,7 +48854,7 @@ function swiftObjCSelectorOptions(moduleRoot) {
48770
48854
  `;
48771
48855
  if (!(0, import_node_fs81.existsSync)(map2) || (0, import_node_fs81.readFileSync)(map2, "utf8") !== content) {
48772
48856
  (0, import_node_fs81.mkdirSync)(import_node_path83.default.dirname(map2), { recursive: true });
48773
- const partial = `${map2}.${(0, import_node_crypto49.randomUUID)()}`;
48857
+ const partial = `${map2}.${(0, import_node_crypto50.randomUUID)()}`;
48774
48858
  (0, import_node_fs81.writeFileSync)(partial, content);
48775
48859
  (0, import_node_fs81.renameSync)(partial, map2);
48776
48860
  }
@@ -48798,7 +48882,7 @@ async function ensureMacroPlugins(moduleRoot, toolchainBin, release, signal, lea
48798
48882
  return { libraries, executables };
48799
48883
  }
48800
48884
  function swiftProjectBuildKey(moduleRoot, release) {
48801
- return (0, import_node_crypto49.createHash)("sha256").update(`swift-framework/v2\0${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`).update(swiftModuleDigest(moduleRoot)).digest("hex").slice(0, 32);
48885
+ return (0, import_node_crypto50.createHash)("sha256").update(`swift-framework/v2\0${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`).update(swiftModuleDigest(moduleRoot)).digest("hex").slice(0, 32);
48802
48886
  }
48803
48887
  function sameStringList(left, right) {
48804
48888
  if (left === right) return true;
@@ -49046,7 +49130,7 @@ function distributionClangModuleOptions(root, modules) {
49046
49130
  function providedModulesPath(root, modules, excluded) {
49047
49131
  if (!excluded || excluded.size === 0) return modules;
49048
49132
  const entries2 = (0, import_node_fs81.readdirSync)(modules).filter((entry) => !excluded.has(entry.replace(/\..*$/, ""))).sort();
49049
- const key2 = (0, import_node_crypto49.createHash)("sha256").update(JSON.stringify([modules, entries2])).update([...excluded].sort().join("\0")).digest("hex").slice(0, 16);
49133
+ const key2 = (0, import_node_crypto50.createHash)("sha256").update(JSON.stringify([modules, entries2])).update([...excluded].sort().join("\0")).digest("hex").slice(0, 16);
49050
49134
  const directory2 = import_node_path83.default.join(root, `.peach-modules-${key2}`);
49051
49135
  const complete = import_node_path83.default.join(directory2, ".complete");
49052
49136
  if (!(0, import_node_fs81.existsSync)(complete)) {
@@ -49128,10 +49212,10 @@ function swiftTargetDependencies(files2, targets, frameworks = OPTIONAL_FRAMEWOR
49128
49212
  function sha256Digest(value) {
49129
49213
  if (typeof Bun !== "undefined")
49130
49214
  return new Bun.CryptoHasher("sha256").update(value).digest();
49131
- return (0, import_node_crypto49.createHash)("sha256").update(value).digest();
49215
+ return (0, import_node_crypto50.createHash)("sha256").update(value).digest();
49132
49216
  }
49133
49217
  function swiftCompileInputHash(input, release) {
49134
- const hash = (0, import_node_crypto49.createHash)("sha256");
49218
+ const hash = (0, import_node_crypto50.createHash)("sha256");
49135
49219
  hash.update(`swift-compile
49136
49220
  ${release}
49137
49221
  `);
@@ -49338,7 +49422,7 @@ function emitSwiftPackageManifest(args) {
49338
49422
  ].join("\n") + "\n";
49339
49423
  distributionLinkPath = distributionLink.path.replace(
49340
49424
  /\.rsp$/,
49341
- `-${(0, import_node_crypto49.createHash)("sha256").update(list2).digest("hex").slice(0, 12)}.rsp`
49425
+ `-${(0, import_node_crypto50.createHash)("sha256").update(list2).digest("hex").slice(0, 12)}.rsp`
49342
49426
  );
49343
49427
  distributionLink.files.set(distributionLinkPath, list2);
49344
49428
  }
@@ -49359,7 +49443,7 @@ function emitSwiftPackageManifest(args) {
49359
49443
  const endRun = () => {
49360
49444
  if (run17.length >= MODULE_MAP_RESPONSE_FILE_RUN) {
49361
49445
  const lines = run17.map((flag) => JSON.stringify(flag)).join("\n") + "\n";
49362
- const digest4 = (0, import_node_crypto49.createHash)("sha256").update(lines).digest("hex");
49446
+ const digest4 = (0, import_node_crypto50.createHash)("sha256").update(lines).digest("hex");
49363
49447
  const file2 = import_node_path83.default.join(args.root, ".peach-clang-arguments", `${digest4}.rsp`);
49364
49448
  args.files.set(file2, lines);
49365
49449
  flags.push(`@${file2}`);
@@ -49383,7 +49467,7 @@ function emitSwiftPackageManifest(args) {
49383
49467
  }
49384
49468
  endRun();
49385
49469
  const content = JSON.stringify(flags);
49386
- const digest3 = (0, import_node_crypto49.createHash)("sha256").update(content).digest("hex");
49470
+ const digest3 = (0, import_node_crypto50.createHash)("sha256").update(content).digest("hex");
49387
49471
  const file = import_node_path83.default.join(args.root, ".peach-manifest-arguments", `${digest3}.json`);
49388
49472
  args.files.set(file, content);
49389
49473
  return `peachCompilerArguments(${JSON.stringify(file)})`;
@@ -49395,7 +49479,7 @@ function emitSwiftPackageManifest(args) {
49395
49479
  const macros = compactSwiftClangDefines(swiftClangSearchArguments(flags));
49396
49480
  const compact = args.coalescibleOverlays ? compactSwiftClangOverlays(macros, args.coalescibleOverlays) : macros;
49397
49481
  const content = compact.map((flag) => JSON.stringify(flag)).join("\n") + "\n";
49398
- const digest3 = (0, import_node_crypto49.createHash)("sha256").update(content).digest("hex");
49482
+ const digest3 = (0, import_node_crypto50.createHash)("sha256").update(content).digest("hex");
49399
49483
  const file = import_node_path83.default.join(args.root, ".peach-swift-arguments", `${digest3}.rsp`);
49400
49484
  args.files.set(file, content);
49401
49485
  return JSON.stringify([`@${file}`]);
@@ -50984,7 +51068,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
50984
51068
  )
50985
51069
  ];
50986
51070
  const moduleFlag = perFile.some((flag) => flag.startsWith("-fmodule-name=")) ? [] : [`-fmodule-name=${swiftTargetModuleName(target.name)}`];
50987
- const identity2 = (0, import_node_crypto49.createHash)("sha256").update(
51071
+ const identity2 = (0, import_node_crypto50.createHash)("sha256").update(
50988
51072
  JSON.stringify([
50989
51073
  cxx,
50990
51074
  quoteDirs,
@@ -51347,7 +51431,7 @@ module ${moduleName2}.Swift {
51347
51431
  ])
51348
51432
  (0, import_node_fs81.rmSync)(cache, { recursive: true, force: true });
51349
51433
  files2.set(frameworkSearchRecord, frameworkSearch);
51350
- const modulePlan = (0, import_node_crypto49.createHash)("sha256").update(
51434
+ const modulePlan = (0, import_node_crypto50.createHash)("sha256").update(
51351
51435
  swiftModuleInputFiles(moduleRoot).join("\n")
51352
51436
  );
51353
51437
  if (!distribution) {
@@ -51356,7 +51440,7 @@ module ${moduleName2}.Swift {
51356
51440
  modulePlan.update(
51357
51441
  Object.keys(input.files).filter((file) => file.endsWith(".swift")).sort().join("\n")
51358
51442
  );
51359
- const resourcePlan = (0, import_node_crypto49.createHash)("sha256").update(
51443
+ const resourcePlan = (0, import_node_crypto50.createHash)("sha256").update(
51360
51444
  JSON.stringify(
51361
51445
  resourceTargets.filter((target) => target.resources).map((target) => [
51362
51446
  target.name,
@@ -51664,7 +51748,7 @@ ${entry}`);
51664
51748
  );
51665
51749
  for (const [target, data] of Object.entries(input.libraries ?? {})) {
51666
51750
  const bytes = Buffer.from(data, "base64");
51667
- const digest3 = (0, import_node_crypto49.createHash)("sha256").update(bytes).digest("hex");
51751
+ const digest3 = (0, import_node_crypto50.createHash)("sha256").update(bytes).digest("hex");
51668
51752
  if (input.binaryModules?.[target] && packageTargets.has(target)) {
51669
51753
  const objects = import_node_path83.default.join(
51670
51754
  layout2.root,
@@ -52316,7 +52400,7 @@ function readCompiledArtifact(directory2, hash) {
52316
52400
  return null;
52317
52401
  const bytes = (0, import_node_fs81.readFileSync)(import_node_path83.default.join(directory2, "app.wasm"));
52318
52402
  const gzip2 = (0, import_node_fs81.readFileSync)(import_node_path83.default.join(directory2, "icu.gz"));
52319
- if ((0, import_node_crypto49.createHash)("sha256").update(bytes).digest("hex") !== receipt.wasm || (0, import_node_crypto49.createHash)("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length <= 8 || bytes.readUInt32LE(0) !== 1836278016 || bytes.readUInt32LE(4) !== 1)
52403
+ if ((0, import_node_crypto50.createHash)("sha256").update(bytes).digest("hex") !== receipt.wasm || (0, import_node_crypto50.createHash)("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length <= 8 || bytes.readUInt32LE(0) !== 1836278016 || bytes.readUInt32LE(4) !== 1)
52320
52404
  return null;
52321
52405
  let sdk2;
52322
52406
  if ("sdk" in receipt) {
@@ -52324,7 +52408,7 @@ function readCompiledArtifact(directory2, hash) {
52324
52408
  if (!isRecord(image) || typeof image.key !== "string" || typeof image.sha256 !== "string" || typeof image.binding !== "string")
52325
52409
  return null;
52326
52410
  const binding = (0, import_node_fs81.readFileSync)(import_node_path83.default.join(directory2, "sdk-binding.bin"));
52327
- if ((0, import_node_crypto49.createHash)("sha256").update(binding).digest("hex") !== image.binding)
52411
+ if ((0, import_node_crypto50.createHash)("sha256").update(binding).digest("hex") !== image.binding)
52328
52412
  return null;
52329
52413
  sdk2 = {
52330
52414
  key: image.key,
@@ -52352,7 +52436,7 @@ function saveCompiledArtifact(root, artifact) {
52352
52436
  import_node_path83.default.join(pending2, "artifact.json"),
52353
52437
  JSON.stringify({
52354
52438
  hash: artifact.hash,
52355
- wasm: (0, import_node_crypto49.createHash)("sha256").update(artifact.bytes).digest("hex"),
52439
+ wasm: (0, import_node_crypto50.createHash)("sha256").update(artifact.bytes).digest("hex"),
52356
52440
  icu: artifact.icu.sha256,
52357
52441
  sdk: artifact.sdk && {
52358
52442
  key: artifact.sdk.key,
@@ -52701,7 +52785,7 @@ async function buildFrameworkProducts(scratch2, args) {
52701
52785
  const unoptimized = args.input.unoptimized === true;
52702
52786
  const sdkOptions = swiftCompileSdkOptions(args.moduleRoot, args.toolchainBin);
52703
52787
  const selectorOptions = swiftObjCSelectorOptions(args.moduleRoot);
52704
- const receiptKey = (0, import_node_crypto49.createHash)("sha256").update(
52788
+ const receiptKey = (0, import_node_crypto50.createHash)("sha256").update(
52705
52789
  JSON.stringify([
52706
52790
  "framework-products/v2",
52707
52791
  args.frameworkKey,
@@ -52868,7 +52952,7 @@ async function buildFrameworkProducts(scratch2, args) {
52868
52952
  const archiveBase = import_node_path83.default.join(scratch2, "products-lib");
52869
52953
  (0, import_node_fs81.mkdirSync)(archiveBase, { recursive: true });
52870
52954
  const archiveRoot = import_node_path83.default.join(archiveBase, receiptKey);
52871
- const stagedArchiveRoot = `${archiveRoot}.tmp-${process.pid}-${(0, import_node_crypto49.randomUUID)()}`;
52955
+ const stagedArchiveRoot = `${archiveRoot}.tmp-${process.pid}-${(0, import_node_crypto50.randomUUID)()}`;
52872
52956
  const stagedArchive = import_node_path83.default.join(stagedArchiveRoot, "lib");
52873
52957
  (0, import_node_fs81.mkdirSync)(stagedArchive, { recursive: true });
52874
52958
  const archived = /* @__PURE__ */ new Map();
@@ -52911,7 +52995,7 @@ ${args.frameworkKey}`,
52911
52995
  const receiptsDir = import_node_path83.default.join(scratch2, "products-ready");
52912
52996
  (0, import_node_fs81.mkdirSync)(receiptsDir, { recursive: true });
52913
52997
  const receiptFile2 = import_node_path83.default.join(receiptsDir, `${receiptKey}.json`);
52914
- const partialReceipt = `${receiptFile2}.${process.pid}.${(0, import_node_crypto49.randomUUID)()}`;
52998
+ const partialReceipt = `${receiptFile2}.${process.pid}.${(0, import_node_crypto50.randomUUID)()}`;
52915
52999
  (0, import_node_fs81.writeFileSync)(
52916
53000
  partialReceipt,
52917
53001
  JSON.stringify({
@@ -53083,7 +53167,7 @@ function mirrorTree2(source, target, skip) {
53083
53167
  if (existing?.isFile() && existing.size === stat2.size && (existing.mtimeMs === stat2.mtimeMs || (0, import_node_fs81.readFileSync)(from).equals((0, import_node_fs81.readFileSync)(to))))
53084
53168
  continue;
53085
53169
  if (existing) (0, import_node_fs81.rmSync)(to, { recursive: true, force: true });
53086
- const partial = `${to}.${(0, import_node_crypto49.randomUUID)()}`;
53170
+ const partial = `${to}.${(0, import_node_crypto50.randomUUID)()}`;
53087
53171
  (0, import_node_fs81.copyFileSync)(from, partial);
53088
53172
  if (stat2.mtimeMs > Date.now()) (0, import_node_fs81.utimesSync)(partial, stat2.atime, stat2.mtime);
53089
53173
  (0, import_node_fs81.renameSync)(partial, to);
@@ -53143,7 +53227,7 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
53143
53227
  return stagedModule;
53144
53228
  }
53145
53229
  function swiftLinkStamp(args) {
53146
- const hash = (0, import_node_crypto49.createHash)("sha256");
53230
+ const hash = (0, import_node_crypto50.createHash)("sha256");
53147
53231
  hash.update(`swift-link/v1
53148
53232
  ${args.frameworkKey}
53149
53233
  `);
@@ -53271,7 +53355,7 @@ async function compileSwiftProjectOnce(sources, options2) {
53271
53355
  const inputHash = swiftCompileInputHash(input, options2.release);
53272
53356
  const moduleDigest = swiftModuleDigest(moduleRoot);
53273
53357
  const sourceHash = inputHash.copy().update(moduleDigest).digest("hex");
53274
- const hash = sdkImage ? (0, import_node_crypto49.createHash)("sha256").update(`${sourceHash}
53358
+ const hash = sdkImage ? (0, import_node_crypto50.createHash)("sha256").update(`${sourceHash}
53275
53359
  sdk module ${sdkImage.key}`).digest("hex") : sourceHash;
53276
53360
  const frameworkKey = swiftProjectBuildKey(moduleRoot, options2.release);
53277
53361
  const sharedRoot = import_node_path83.default.join(swiftCacheDir(), "swift-projects", hash);
@@ -53368,7 +53452,7 @@ ${cap}` : "";
53368
53452
  }
53369
53453
  const baseRoot = root;
53370
53454
  const canPoolBuildRoot = !options2.intermediates && !options2.project && !options2.linkOnly && import_node_path83.default.basename(import_node_path83.default.dirname(baseRoot)) === "swift-builds";
53371
- const buildShape = canPoolBuildRoot ? (0, import_node_crypto49.createHash)("sha256").update(
53455
+ const buildShape = canPoolBuildRoot ? (0, import_node_crypto50.createHash)("sha256").update(
53372
53456
  JSON.stringify([
53373
53457
  frameworkKey,
53374
53458
  Boolean(sdkImage),
@@ -53857,17 +53941,17 @@ ${cap}` : "";
53857
53941
  }
53858
53942
  const receipt = import_node_path83.default.join(
53859
53943
  checkpoints,
53860
- (0, import_node_crypto49.createHash)("sha256").update(target).digest("hex")
53944
+ (0, import_node_crypto50.createHash)("sha256").update(target).digest("hex")
53861
53945
  );
53862
53946
  const headers = producers.map(headerPaths);
53863
53947
  for (const header of headers)
53864
53948
  if ((0, import_node_fs81.existsSync)(header.original)) publishHeader(header);
53865
53949
  const fingerprint = () => {
53866
- const digest3 = (0, import_node_crypto49.createHash)("sha256").update(recipe2);
53950
+ const digest3 = (0, import_node_crypto50.createHash)("sha256").update(recipe2);
53867
53951
  for (const { original, emitted } of headers) {
53868
53952
  if (!(0, import_node_fs81.existsSync)(original) || !(0, import_node_fs81.existsSync)(emitted)) return;
53869
53953
  digest3.update(
53870
- (0, import_node_crypto49.createHash)("sha256").update((0, import_node_fs81.readFileSync)(emitted)).digest()
53954
+ (0, import_node_crypto50.createHash)("sha256").update((0, import_node_fs81.readFileSync)(emitted)).digest()
53871
53955
  );
53872
53956
  }
53873
53957
  return digest3.digest("hex");
@@ -54080,12 +54164,12 @@ ${cap}` : "";
54080
54164
  options2.signal
54081
54165
  );
54082
54166
  }
54083
- var import_node_child_process43, import_node_crypto49, import_node_fs81, import_node_os18, import_node_path83, v6, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_COMPILER_ENV_KEYS, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, lastPartition, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, CLANG_DISTRIBUTION_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, MODULE_MAP_RESPONSE_FILE_RUN, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, OS_IOS, ARCH_ARM64, NOT_ON_IOS, DELEGATE_CLASS, ARM64_MACRO, WASM_MACRO, ARCH_WASM32, C_WORDS, archEnvironments, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, cPredefineTable, cPredefineCache, HIDDEN_UNITS, FIRST_WINS_PAIRS, LAST_WINS_PAIRS, VALUE_FLAGS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, frameworkProductsReceiptSchema, SWIFT_LINK_STAMP, SWIFT_HOST_COMPILER_WRAPPER, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_UNOPTIMIZED_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN, SWIFT_FRAMEWORK_SLOT_RELEASE, SWIFT_BUILD_ROOT_SLOTS, SWIFT_BUILD_ROOT_SHAPE;
54167
+ var import_node_child_process43, import_node_crypto50, import_node_fs81, import_node_os18, import_node_path83, v6, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_COMPILER_ENV_KEYS, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, lastPartition, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, CLANG_DISTRIBUTION_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, MODULE_MAP_RESPONSE_FILE_RUN, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, OS_IOS, ARCH_ARM64, NOT_ON_IOS, DELEGATE_CLASS, ARM64_MACRO, WASM_MACRO, ARCH_WASM32, C_WORDS, archEnvironments, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, cPredefineTable, cPredefineCache, HIDDEN_UNITS, FIRST_WINS_PAIRS, LAST_WINS_PAIRS, VALUE_FLAGS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, frameworkProductsReceiptSchema, SWIFT_LINK_STAMP, SWIFT_HOST_COMPILER_WRAPPER, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_UNOPTIMIZED_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN, SWIFT_FRAMEWORK_SLOT_RELEASE, SWIFT_BUILD_ROOT_SLOTS, SWIFT_BUILD_ROOT_SHAPE;
54084
54168
  var init_swift_compile = __esm({
54085
54169
  "src/swift-compile.ts"() {
54086
54170
  "use strict";
54087
54171
  import_node_child_process43 = require("node:child_process");
54088
- import_node_crypto49 = require("node:crypto");
54172
+ import_node_crypto50 = require("node:crypto");
54089
54173
  import_node_fs81 = require("node:fs");
54090
54174
  import_node_os18 = __toESM(require("node:os"), 1);
54091
54175
  import_node_path83 = __toESM(require("node:path"), 1);
@@ -54313,7 +54397,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
54313
54397
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
54314
54398
  MULTI_MANIFEST_VERSION = 76;
54315
54399
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
54316
- compilerSourceDigest = true ? "ab7e385f5b9ca10737de11d59802a2b57ee084a172b96aa971acb4c26a58a573" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
54400
+ compilerSourceDigest = true ? "169122685e250113f128b79efc78f9868f581da36ab083c174056ab99b87b629" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
54317
54401
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
54318
54402
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
54319
54403
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -54429,7 +54513,7 @@ async function podPrepareEnvironment(base2) {
54429
54513
  if (process.platform !== "linux") return base2;
54430
54514
  const { root, toolchainBin } = await resolveSwiftModule();
54431
54515
  const { sysroot, resources } = swiftSdkPaths(root, toolchainBin);
54432
- const key2 = (0, import_node_crypto50.createHash)("sha256").update(XCRUN).update(CLANG).digest("hex").slice(0, 16);
54516
+ const key2 = (0, import_node_crypto51.createHash)("sha256").update(XCRUN).update(CLANG).digest("hex").slice(0, 16);
54433
54517
  const directory2 = import_node_path84.default.join(cacheDir(), "pod-tools", key2);
54434
54518
  if (!import_node_fs82.default.existsSync(directory2)) {
54435
54519
  import_node_fs82.default.mkdirSync(import_node_path84.default.dirname(directory2), { recursive: true });
@@ -54470,11 +54554,11 @@ async function podPrepareEnvironment(base2) {
54470
54554
  PEACH_POD_RESOURCES: resources
54471
54555
  };
54472
54556
  }
54473
- var import_node_crypto50, import_node_fs82, import_node_path84, XCRUN, CLANG;
54557
+ var import_node_crypto51, import_node_fs82, import_node_path84, XCRUN, CLANG;
54474
54558
  var init_pod_prepare_toolchain = __esm({
54475
54559
  "src/pod-prepare-toolchain.ts"() {
54476
54560
  "use strict";
54477
- import_node_crypto50 = require("node:crypto");
54561
+ import_node_crypto51 = require("node:crypto");
54478
54562
  import_node_fs82 = __toESM(require("node:fs"), 1);
54479
54563
  import_node_path84 = __toESM(require("node:path"), 1);
54480
54564
  init_home_paths();
@@ -54560,10 +54644,10 @@ async function podSourceRoot(spec, prepareEnv) {
54560
54644
  `${name3}: unrecognized ${strategy} source options ${unrecognized.join(", ")}`
54561
54645
  );
54562
54646
  const base2 = import_node_path85.default.join(rnxHomeDir(), "pod-sources");
54563
- const digest3 = (0, import_node_crypto51.createHash)("sha256").update(canonicalJson(source)).digest("hex").slice(0, 16);
54647
+ const digest3 = (0, import_node_crypto52.createHash)("sha256").update(canonicalJson(source)).digest("hex").slice(0, 16);
54564
54648
  const root = import_node_path85.default.join(base2, name3, `${String(spec.version)}-${digest3}`);
54565
54649
  if (import_node_fs83.default.existsSync(root)) return root;
54566
- const stage = import_node_path85.default.join(base2, ".staging", (0, import_node_crypto51.randomUUID)());
54650
+ const stage = import_node_path85.default.join(base2, ".staging", (0, import_node_crypto52.randomUUID)());
54567
54651
  import_node_fs83.default.mkdirSync(stage, { recursive: true });
54568
54652
  try {
54569
54653
  if (strategy === "git") await downloadGit(name3, url, options2, stage);
@@ -54738,7 +54822,7 @@ async function downloadFile(pod, url, headers, file, algorithm) {
54738
54822
  }
54739
54823
  if (!response?.ok || !response.body)
54740
54824
  throw new Error(`${pod}: GET ${url} failed with HTTP ${response?.status ?? "error"}`);
54741
- const hash = algorithm ? (0, import_node_crypto51.createHash)(algorithm) : null;
54825
+ const hash = algorithm ? (0, import_node_crypto52.createHash)(algorithm) : null;
54742
54826
  const handle = await import_node_fs83.default.promises.open(file, "w");
54743
54827
  try {
54744
54828
  const reader = response.body.getReader();
@@ -54995,12 +55079,12 @@ function cleanInstalledPod(spec, root, used) {
54995
55079
  (node) => used.filter((entry) => entry.specs.includes(node.name)).map((entry) => entry.platform)
54996
55080
  );
54997
55081
  }
54998
- var import_node_child_process44, import_node_crypto51, import_node_fs83, import_node_os19, import_node_path85, COCOAPODS_VERSION, USER_AGENT, PLATFORMS, HEADER_EXTENSIONS, SOURCE_EXTENSIONS2, SOURCE_FILES_PATTERN, STRATEGIES, OPTIONS, ARCHIVE_TYPES, object5, RETRY_STATUSES, chomp, stringList, bracketEnd, escapeRegex;
55082
+ var import_node_child_process44, import_node_crypto52, import_node_fs83, import_node_os19, import_node_path85, COCOAPODS_VERSION, USER_AGENT, PLATFORMS, HEADER_EXTENSIONS, SOURCE_EXTENSIONS2, SOURCE_FILES_PATTERN, STRATEGIES, OPTIONS, ARCHIVE_TYPES, object5, RETRY_STATUSES, chomp, stringList, bracketEnd, escapeRegex;
54999
55083
  var init_pod_sources = __esm({
55000
55084
  "src/pod-sources.ts"() {
55001
55085
  "use strict";
55002
55086
  import_node_child_process44 = require("node:child_process");
55003
- import_node_crypto51 = require("node:crypto");
55087
+ import_node_crypto52 = require("node:crypto");
55004
55088
  import_node_fs83 = __toESM(require("node:fs"), 1);
55005
55089
  import_node_os19 = __toESM(require("node:os"), 1);
55006
55090
  import_node_path85 = __toESM(require("node:path"), 1);
@@ -62254,7 +62338,7 @@ function specRepo(url, refresh) {
62254
62338
  const dir = import_node_path86.default.join(
62255
62339
  cacheDir(),
62256
62340
  "cocoapods-repos",
62257
- (0, import_node_crypto52.createHash)("sha256").update(url).digest("hex").slice(0, 16)
62341
+ (0, import_node_crypto53.createHash)("sha256").update(url).digest("hex").slice(0, 16)
62258
62342
  );
62259
62343
  if (!import_node_fs84.default.existsSync(import_node_path86.default.join(dir, ".git"))) {
62260
62344
  const staged = `${dir}.${process.pid}`;
@@ -62284,7 +62368,7 @@ function podDir(repo, name3) {
62284
62368
  const specs = import_node_fs84.default.existsSync(import_node_path86.default.join(repo, "Specs")) ? import_node_path86.default.join(repo, "Specs") : repo;
62285
62369
  const metadata = import_node_path86.default.join(repo, "CocoaPods-version.yml");
62286
62370
  const lengths = import_node_fs84.default.existsSync(metadata) ? browser_default.parse(import_node_fs84.default.readFileSync(metadata, "utf8"))?.prefix_lengths : void 0;
62287
- const hash = (0, import_node_crypto52.createHash)("md5").update(name3).digest("hex");
62371
+ const hash = (0, import_node_crypto53.createHash)("md5").update(name3).digest("hex");
62288
62372
  let at = 0;
62289
62373
  const shards2 = (Array.isArray(lengths) ? lengths : []).map((length) => {
62290
62374
  if (typeof length !== "number")
@@ -62317,17 +62401,17 @@ async function sourceSpecificationFile(source, name3, version2) {
62317
62401
  if (!file) throw new Error(`${source} lists ${name3} ${version2} without a podspec`);
62318
62402
  return file;
62319
62403
  }
62320
- var import_node_child_process45, import_node_crypto52, import_node_fs84, import_node_path86, shard, shards, TRUNK_SOURCES, refreshed, specRepoKey;
62404
+ var import_node_child_process45, import_node_crypto53, import_node_fs84, import_node_path86, shard, shards, TRUNK_SOURCES, refreshed, specRepoKey;
62321
62405
  var init_cocoapods_trunk = __esm({
62322
62406
  "src/cocoapods-trunk.ts"() {
62323
62407
  "use strict";
62324
62408
  import_node_child_process45 = require("node:child_process");
62325
- import_node_crypto52 = require("node:crypto");
62409
+ import_node_crypto53 = require("node:crypto");
62326
62410
  import_node_fs84 = __toESM(require("node:fs"), 1);
62327
62411
  import_node_path86 = __toESM(require("node:path"), 1);
62328
62412
  init_browser();
62329
62413
  init_home_paths();
62330
- shard = (name3) => (0, import_node_crypto52.createHash)("md5").update(name3).digest("hex").slice(0, 3).split("");
62414
+ shard = (name3) => (0, import_node_crypto53.createHash)("md5").update(name3).digest("hex").slice(0, 3).split("");
62331
62415
  shards = /* @__PURE__ */ new Map();
62332
62416
  TRUNK_SOURCES = /* @__PURE__ */ new Set([
62333
62417
  "trunk",
@@ -71996,7 +72080,7 @@ end
71996
72080
  function sha256Hex5(bytes) {
71997
72081
  if (typeof Bun !== "undefined")
71998
72082
  return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
71999
- return (0, import_node_crypto53.createHash)("sha256").update(bytes).digest("hex");
72083
+ return (0, import_node_crypto54.createHash)("sha256").update(bytes).digest("hex");
72000
72084
  }
72001
72085
  function isBazelPackage(input) {
72002
72086
  return /^BUILD(?:\.bazel)?$/.test(import_node_path96.default.basename(input)) && import_node_fs93.default.statSync(input).isFile();
@@ -72027,7 +72111,7 @@ function bazelBinary(root) {
72027
72111
  const expected = (0, import_node_child_process46.execFileSync)("curl", ["-fsSL", `${url}.sha256`], {
72028
72112
  encoding: "utf8"
72029
72113
  }).split(/\s/)[0];
72030
- const actual = (0, import_node_crypto53.createHash)("sha256").update(import_node_fs93.default.readFileSync(partial)).digest("hex");
72114
+ const actual = (0, import_node_crypto54.createHash)("sha256").update(import_node_fs93.default.readFileSync(partial)).digest("hex");
72031
72115
  if (actual !== expected) {
72032
72116
  import_node_fs93.default.rmSync(partial, { force: true });
72033
72117
  throw new Error(`${url} digest ${actual} differs from its release ${expected}`);
@@ -72057,7 +72141,7 @@ function parseRule(raw2) {
72057
72141
  };
72058
72142
  }
72059
72143
  function graphInputsDigest(root) {
72060
- const hash = (0, import_node_crypto53.createHash)("sha256");
72144
+ const hash = (0, import_node_crypto54.createHash)("sha256");
72061
72145
  const visit3 = (dir) => {
72062
72146
  for (const entry of import_node_fs93.default.readdirSync(dir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
72063
72147
  if (entry.name.startsWith(".") || entry.name.startsWith("bazel-")) continue;
@@ -72090,7 +72174,7 @@ function bazelGraph(root, label, configuration2) {
72090
72174
  const cached4 = graphs.get(key2);
72091
72175
  if (cached4) return cached4;
72092
72176
  const flags = configurationFlags(configuration2);
72093
- const digest3 = (0, import_node_crypto53.createHash)("sha256").update(JSON.stringify([GRAPH_FORMAT, label, flags, QUERIED_RULES])).update(graphInputsDigest(root)).digest("hex").slice(0, 24);
72177
+ const digest3 = (0, import_node_crypto54.createHash)("sha256").update(JSON.stringify([GRAPH_FORMAT, label, flags, QUERIED_RULES])).update(graphInputsDigest(root)).digest("hex").slice(0, 24);
72094
72178
  const file = import_node_path96.default.join(root, ".build", "peach-bazel", `graph-${digest3}.json`);
72095
72179
  const bazel = bazelBinary(root);
72096
72180
  const run17 = (args) => (0, import_node_child_process46.execFileSync)(bazel, args, {
@@ -72914,12 +72998,12 @@ function shellTokens(options2) {
72914
72998
  return words2;
72915
72999
  });
72916
73000
  }
72917
- var import_node_child_process46, import_node_crypto53, import_node_fs93, import_node_os20, import_node_path96, LIBRARY_RULES, QUERIED_RULES, NATIVE_SOURCE, HEADER4, PRODUCTS, graphs, CLANG_CONFIGURATION_FLAGS, GRAPH_FORMAT, BazelFiles, CXX_STANDARD;
73001
+ var import_node_child_process46, import_node_crypto54, import_node_fs93, import_node_os20, import_node_path96, LIBRARY_RULES, QUERIED_RULES, NATIVE_SOURCE, HEADER4, PRODUCTS, graphs, CLANG_CONFIGURATION_FLAGS, GRAPH_FORMAT, BazelFiles, CXX_STANDARD;
72918
73002
  var init_bazel_project = __esm({
72919
73003
  "src/bazel-project.ts"() {
72920
73004
  "use strict";
72921
73005
  import_node_child_process46 = require("node:child_process");
72922
- import_node_crypto53 = require("node:crypto");
73006
+ import_node_crypto54 = require("node:crypto");
72923
73007
  import_node_fs93 = __toESM(require("node:fs"), 1);
72924
73008
  import_node_os20 = __toESM(require("node:os"), 1);
72925
73009
  import_node_path96 = __toESM(require("node:path"), 1);
@@ -73897,7 +73981,7 @@ async function swiftBinaryModules(binary2) {
73897
73981
  if (!binary2.url) return localSwiftBinaryModules(binary2.dir);
73898
73982
  const cached4 = import_node_path97.default.join(
73899
73983
  cacheDir3,
73900
- `${(0, import_node_crypto54.createHash)("sha256").update(`${binary2.url}\0${binary2.checksum ?? ""}`).digest("hex").slice(0, 32)}.json`
73984
+ `${(0, import_node_crypto55.createHash)("sha256").update(`${binary2.url}\0${binary2.checksum ?? ""}`).digest("hex").slice(0, 32)}.json`
73901
73985
  );
73902
73986
  if (import_node_fs94.default.existsSync(cached4)) {
73903
73987
  const value = JSON.parse(import_node_fs94.default.readFileSync(cached4, "utf8"));
@@ -73909,11 +73993,11 @@ async function swiftBinaryModules(binary2) {
73909
73993
  import_node_fs94.default.writeFileSync(cached4, JSON.stringify(modules));
73910
73994
  return modules;
73911
73995
  }
73912
- var import_node_crypto54, import_node_fs94, import_node_path97, cacheDir3;
73996
+ var import_node_crypto55, import_node_fs94, import_node_path97, cacheDir3;
73913
73997
  var init_swift_binary_modules = __esm({
73914
73998
  "src/swift-binary-modules.ts"() {
73915
73999
  "use strict";
73916
- import_node_crypto54 = require("node:crypto");
74000
+ import_node_crypto55 = require("node:crypto");
73917
74001
  import_node_fs94 = __toESM(require("node:fs"), 1);
73918
74002
  import_node_path97 = __toESM(require("node:path"), 1);
73919
74003
  init_home_paths();
@@ -73923,11 +74007,11 @@ var init_swift_binary_modules = __esm({
73923
74007
  });
73924
74008
 
73925
74009
  // src/swift-coverage/provenance.ts
73926
- var import_node_crypto55, import_node_fs95, import_node_path98, swiftCoverageProvenance;
74010
+ var import_node_crypto56, import_node_fs95, import_node_path98, swiftCoverageProvenance;
73927
74011
  var init_provenance = __esm({
73928
74012
  "src/swift-coverage/provenance.ts"() {
73929
74013
  "use strict";
73930
- import_node_crypto55 = require("node:crypto");
74014
+ import_node_crypto56 = require("node:crypto");
73931
74015
  import_node_fs95 = require("node:fs");
73932
74016
  import_node_path98 = require("node:path");
73933
74017
  swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"d6a3228567a46c6d5280895383093889d9b868958a117881061bdd74729a225f","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"facdbeb9de6bb12da4ab4954553edfaadd0e486f1181443138be70c3d8396236","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"523fdfffc0cff95c8df7beeca437622a07d4fd666f0bb22b0ff67d14c42a7b10","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"32bf10d6f3396dd1a20ff6d415499a5990ec2550c63306fd9ef071bdf4a58f1e","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"e30510099ee19d34de62d8ae859df53f77594a4ab105fdb5bcd7e005ec9689ca","xcode-target-members.ts":"96f6a9f5567a4fbd9806252229b35b9a451a112b20f70f8c20189ffd428815fd","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path98.join)(__sootsim_import_meta_dirname, ".."));
@@ -75024,16 +75108,16 @@ function assetSymbolText(plan, root) {
75024
75108
  if (source.status === "unknown") throw new Error(source.reason);
75025
75109
  return source.text;
75026
75110
  }
75027
- var import_node_crypto56, import_node_fs97, import_node_path100, sha2562, unprovenAssetSettings, assetSymbolSettingKeys, provenOtherAssetFlags, symbolTexts;
75111
+ var import_node_crypto57, import_node_fs97, import_node_path100, sha2562, unprovenAssetSettings, assetSymbolSettingKeys, provenOtherAssetFlags, symbolTexts;
75028
75112
  var init_xcode_assets = __esm({
75029
75113
  "src/swift-coverage/xcode-assets.ts"() {
75030
75114
  "use strict";
75031
- import_node_crypto56 = require("node:crypto");
75115
+ import_node_crypto57 = require("node:crypto");
75032
75116
  import_node_fs97 = require("node:fs");
75033
75117
  import_node_path100 = require("node:path");
75034
75118
  init_provenance();
75035
75119
  init_xcode_asset_symbols();
75036
- sha2562 = (bytes) => (0, import_node_crypto56.createHash)("sha256").update(bytes).digest("hex");
75120
+ sha2562 = (bytes) => (0, import_node_crypto57.createHash)("sha256").update(bytes).digest("hex");
75037
75121
  unprovenAssetSettings = [
75038
75122
  "ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_FRAMEWORKS",
75039
75123
  "ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_WARNINGS",
@@ -75629,7 +75713,7 @@ function normalizedEnums(input) {
75629
75713
  }
75630
75714
  function localizationIdentifier(field, key2) {
75631
75715
  const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
75632
- const digest3 = (0, import_node_crypto57.createHash)("sha256").update(JSON.stringify([...field, key2])).digest();
75716
+ const digest3 = (0, import_node_crypto58.createHash)("sha256").update(JSON.stringify([...field, key2])).digest();
75633
75717
  return Array.from(
75634
75718
  digest3.subarray(0, 6),
75635
75719
  (byte) => alphabet[byte % alphabet.length]
@@ -75954,12 +76038,12 @@ function writeIntentDefinition(input, prefix) {
75954
76038
  lines.push("</plist>", "");
75955
76039
  return lines.join("\n");
75956
76040
  }
75957
- var import_strict4, import_node_crypto57, typeMetadata, initializeMetadata, widgetArraySizes, defaultReasonMessages;
76041
+ var import_strict4, import_node_crypto58, typeMetadata, initializeMetadata, widgetArraySizes, defaultReasonMessages;
75958
76042
  var init_metadata = __esm({
75959
76043
  "src/intent-definition/metadata.ts"() {
75960
76044
  "use strict";
75961
76045
  import_strict4 = __toESM(require("node:assert/strict"), 1);
75962
- import_node_crypto57 = require("node:crypto");
76046
+ import_node_crypto58 = require("node:crypto");
75963
76047
  init_fields();
75964
76048
  init_hash_input();
75965
76049
  init_siphash();
@@ -76668,7 +76752,7 @@ function preparePortableIntent(definition2, derivedDirectory, prefix, language,
76668
76752
  if (prefix) identifier(prefix);
76669
76753
  if (module2) identifier(module2);
76670
76754
  const source = import_node_fs98.default.readFileSync(definition2);
76671
- const key2 = (0, import_node_crypto58.createHash)("sha256").update(
76755
+ const key2 = (0, import_node_crypto59.createHash)("sha256").update(
76672
76756
  JSON.stringify([intentCompilerRevision, definition2, prefix, language, module2])
76673
76757
  ).update("\0").update(source).digest("hex");
76674
76758
  const cache = import_node_path101.default.join(derivedDirectory, "IntentDefinitions");
@@ -76708,11 +76792,11 @@ function preparePortableIntent(definition2, derivedDirectory, prefix, language,
76708
76792
  import_node_fs98.default.rmSync(stage, { recursive: true, force: true });
76709
76793
  }
76710
76794
  }
76711
- var import_node_crypto58, import_node_fs98, import_node_path101, intentCompilerRevision;
76795
+ var import_node_crypto59, import_node_fs98, import_node_path101, intentCompilerRevision;
76712
76796
  var init_xcode_intents = __esm({
76713
76797
  "src/xcode-intents.ts"() {
76714
76798
  "use strict";
76715
- import_node_crypto58 = require("node:crypto");
76799
+ import_node_crypto59 = require("node:crypto");
76716
76800
  import_node_fs98 = __toESM(require("node:fs"), 1);
76717
76801
  import_node_path101 = __toESM(require("node:path"), 1);
76718
76802
  init_fields();
@@ -77414,7 +77498,7 @@ function loadProject(xcodeproj) {
77414
77498
  if (!projectFile)
77415
77499
  throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
77416
77500
  const source = import_node_fs99.default.readFileSync(projectFile, "utf8");
77417
- const digest3 = (0, import_node_crypto59.createHash)("sha256").update(source).digest("hex");
77501
+ const digest3 = (0, import_node_crypto60.createHash)("sha256").update(source).digest("hex");
77418
77502
  const cached4 = loaded3.get(projectFile);
77419
77503
  if (cached4?.digest === digest3) return cached4.project;
77420
77504
  const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
@@ -77466,7 +77550,7 @@ function xcodeInstallationIdentity() {
77466
77550
  if (!selected) return null;
77467
77551
  const directory2 = import_node_path103.default.extname(selected) === ".app" ? import_node_path103.default.join(selected, "Contents", "Developer") : selected;
77468
77552
  const versionFile = `${directory2}/../version.plist`;
77469
- const version2 = import_node_fs99.default.existsSync(versionFile) ? (0, import_node_crypto59.createHash)("sha256").update(import_node_fs99.default.readFileSync(versionFile)).digest("hex") : null;
77553
+ const version2 = import_node_fs99.default.existsSync(versionFile) ? (0, import_node_crypto60.createHash)("sha256").update(import_node_fs99.default.readFileSync(versionFile)).digest("hex") : null;
77470
77554
  return { directory: directory2, version: version2 };
77471
77555
  }
77472
77556
  function defaultConfiguration(project2) {
@@ -77934,7 +78018,7 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
77934
78018
  );
77935
78019
  });
77936
78020
  }
77937
- const signature2 = (0, import_node_crypto59.createHash)("sha256").update(
78021
+ const signature2 = (0, import_node_crypto60.createHash)("sha256").update(
77938
78022
  JSON.stringify([phase, [...settingKeys].map((key3) => [key3, settings(key3)])])
77939
78023
  );
77940
78024
  for (const file of inputFiles) {
@@ -78089,7 +78173,7 @@ ${output}`
78089
78173
  const inputs2 = JSON.stringify([
78090
78174
  1,
78091
78175
  args,
78092
- (0, import_node_crypto59.createHash)("sha256").update(import_node_fs99.default.readFileSync(file)).digest("hex")
78176
+ (0, import_node_crypto60.createHash)("sha256").update(import_node_fs99.default.readFileSync(file)).digest("hex")
78093
78177
  ]);
78094
78178
  const developer = settings("DEVELOPER_DIR");
78095
78179
  const cached4 = import_node_fs99.default.existsSync(output) && import_node_fs99.default.existsSync(stamp) ? import_node_fs99.default.readFileSync(stamp, "utf8").split("\n") : [];
@@ -79592,12 +79676,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
79592
79676
  cocoapods
79593
79677
  };
79594
79678
  }
79595
- var import_node_child_process47, import_node_crypto59, import_node_fs99, import_node_module9, import_node_path103, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory3, loaded3, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
79679
+ var import_node_child_process47, import_node_crypto60, import_node_fs99, import_node_module9, import_node_path103, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory3, loaded3, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
79596
79680
  var init_xcode_project = __esm({
79597
79681
  "src/xcode-project.ts"() {
79598
79682
  "use strict";
79599
79683
  import_node_child_process47 = require("node:child_process");
79600
- import_node_crypto59 = require("node:crypto");
79684
+ import_node_crypto60 = require("node:crypto");
79601
79685
  import_node_fs99 = __toESM(require("node:fs"), 1);
79602
79686
  import_node_module9 = require("node:module");
79603
79687
  import_node_path103 = __toESM(require("node:path"), 1);
@@ -79789,8 +79873,8 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
79789
79873
  );
79790
79874
  const appRelative = import_node_path104.default.relative(root, app);
79791
79875
  const manifest = JSON.parse(import_node_fs100.default.readFileSync(import_node_path104.default.join(root, "package.json"), "utf8"));
79792
- const hash = (0, import_node_crypto60.createHash)("sha256");
79793
- const native = (0, import_node_crypto60.createHash)("sha256");
79876
+ const hash = (0, import_node_crypto61.createHash)("sha256");
79877
+ const native = (0, import_node_crypto61.createHash)("sha256");
79794
79878
  const nativeDirectories = localPackageDirectories(root, app);
79795
79879
  const versionFree = new Set(
79796
79880
  nativeDirectories.filter((directory2) => directory2 !== appRelative && directory2 !== "").filter(
@@ -79874,7 +79958,7 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
79874
79958
  unread.slice(start, start + 32).map(async ({ file, content }) => {
79875
79959
  const bytes = await import_node_fs100.default.promises.readFile(file);
79876
79960
  content.size = bytes.length;
79877
- content.digest = (0, import_node_crypto60.createHash)("sha256").update(bytes).digest("hex");
79961
+ content.digest = (0, import_node_crypto61.createHash)("sha256").update(bytes).digest("hex");
79878
79962
  fileDigests.set(file, content);
79879
79963
  })
79880
79964
  );
@@ -80424,7 +80508,7 @@ function stageCachedQuickCryptoOpenSsl(app) {
80424
80508
  const sha2565 = /openssl_sha256\s*=\s*"([0-9a-f]{64})"/.exec(podspec)?.[1];
80425
80509
  if (!sha2565) return;
80426
80510
  const archive = import_node_path104.default.join(cacheDir(), "pod-archives", `${sha2565}.zip`);
80427
- if (!import_node_fs100.default.existsSync(archive) || (0, import_node_crypto60.createHash)("sha256").update(import_node_fs100.default.readFileSync(archive)).digest("hex") !== sha2565)
80511
+ if (!import_node_fs100.default.existsSync(archive) || (0, import_node_crypto61.createHash)("sha256").update(import_node_fs100.default.readFileSync(archive)).digest("hex") !== sha2565)
80428
80512
  return;
80429
80513
  import_node_fs100.default.rmSync(opensslDir, { recursive: true, force: true });
80430
80514
  import_node_fs100.default.mkdirSync(opensslDir, { recursive: true });
@@ -80462,12 +80546,12 @@ ${failedOutputLine(command, cwd, bytes)}`
80462
80546
  });
80463
80547
  });
80464
80548
  }
80465
- var import_node_child_process48, import_node_crypto60, import_node_fs100, import_node_module10, import_node_os21, import_node_path104, import_node_util13, isolatedGitEnv, NATIVE_CONFIG_FILE, NATIVE_SOURCE_FILE2, fileDigests, NATIVE_PACKAGE_ENTRY, hashing, KEPT_WORKSPACES, WORKSPACE_GRACE_MS, ABANDONED_WORKSPACE_MS, RETIRED_PREFIX2, preparing, watches, current, CLONE_ENTRIES;
80549
+ var import_node_child_process48, import_node_crypto61, import_node_fs100, import_node_module10, import_node_os21, import_node_path104, import_node_util13, isolatedGitEnv, NATIVE_CONFIG_FILE, NATIVE_SOURCE_FILE2, fileDigests, NATIVE_PACKAGE_ENTRY, hashing, KEPT_WORKSPACES, WORKSPACE_GRACE_MS, ABANDONED_WORKSPACE_MS, RETIRED_PREFIX2, preparing, watches, current, CLONE_ENTRIES;
80466
80550
  var init_expo_native_workspace = __esm({
80467
80551
  "src/expo-native-workspace.ts"() {
80468
80552
  "use strict";
80469
80553
  import_node_child_process48 = require("node:child_process");
80470
- import_node_crypto60 = require("node:crypto");
80554
+ import_node_crypto61 = require("node:crypto");
80471
80555
  import_node_fs100 = __toESM(require("node:fs"), 1);
80472
80556
  import_node_module10 = require("node:module");
80473
80557
  import_node_os21 = __toESM(require("node:os"), 1);
@@ -80540,7 +80624,7 @@ function run() {
80540
80624
 
80541
80625
  // src/expo-discovery-cache.ts
80542
80626
  function peachPin() {
80543
- return (0, import_node_crypto61.createHash)("sha256").update(
80627
+ return (0, import_node_crypto62.createHash)("sha256").update(
80544
80628
  `${FORMAT}\0${expoNativeCompilerDigestValue()}\0${swiftNativePin().distribution.id}\0`
80545
80629
  ).update(JSON.stringify([...EXPO_EAGER_NATIVE_VIEWS])).update(JSON.stringify([...peachAnsweredNativePackages()].sort())).digest("hex");
80546
80630
  }
@@ -80554,7 +80638,7 @@ function stable(value) {
80554
80638
  }
80555
80639
  async function expoDiscoveryKey(options2) {
80556
80640
  const { root, hash } = await hashExpoWorkspace(options2.appRoot, options2.signal);
80557
- const key2 = (0, import_node_crypto61.createHash)("sha256").update(`${peachPin()}\0${hash}\0`).update(`${stable(JSON.parse(options2.searchText))}\0`).update(`${stable(options2.configuration)}\0`).update(stable(JSON.parse(options2.resolveText))).digest("hex");
80641
+ const key2 = (0, import_node_crypto62.createHash)("sha256").update(`${peachPin()}\0${hash}\0`).update(`${stable(JSON.parse(options2.searchText))}\0`).update(`${stable(options2.configuration)}\0`).update(stable(JSON.parse(options2.resolveText))).digest("hex");
80558
80642
  return { key: key2, root };
80559
80643
  }
80560
80644
  function expoDiscoveryCacheDir() {
@@ -80625,7 +80709,7 @@ function readExpoDiscovery(key2) {
80625
80709
  if (typeof parsed2.archive !== "string" || !isDigest(parsed2.archive)) return void 0;
80626
80710
  const archive = import_node_path105.default.join(expoDiscoveryCacheDir(), "blobs", `${parsed2.archive}.zst`);
80627
80711
  const bytes = import_node_fs101.default.readFileSync(archive);
80628
- if ((0, import_node_crypto61.createHash)("sha256").update(bytes).digest("hex") !== parsed2.archive)
80712
+ if ((0, import_node_crypto62.createHash)("sha256").update(bytes).digest("hex") !== parsed2.archive)
80629
80713
  return void 0;
80630
80714
  const bodies = (0, import_node_zlib7.zstdDecompressSync)(bytes);
80631
80715
  const decoded = /* @__PURE__ */ new Map();
@@ -80699,7 +80783,7 @@ function stampedFileHash(file) {
80699
80783
  const stamp = [stat2.dev, stat2.ino, stat2.size, stat2.mtimeNs, stat2.ctimeNs].join(":");
80700
80784
  const cached4 = fileHashes.get(file);
80701
80785
  if (cached4?.stamp === stamp) return cached4.checksum;
80702
- const checksum = (0, import_node_crypto61.createHash)("sha256").update(import_node_fs101.default.readFileSync(file)).digest("hex");
80786
+ const checksum = (0, import_node_crypto62.createHash)("sha256").update(import_node_fs101.default.readFileSync(file)).digest("hex");
80703
80787
  fileHashes.set(file, { stamp, checksum });
80704
80788
  fileHashesChanged = true;
80705
80789
  return checksum;
@@ -80708,7 +80792,7 @@ function saveFileHashes() {
80708
80792
  if (!fileHashesChanged) return;
80709
80793
  fileHashesChanged = false;
80710
80794
  const target = fileHashesPath();
80711
- const temporary = `${target}.${process.pid}.${(0, import_node_crypto61.randomUUID)()}.tmp`;
80795
+ const temporary = `${target}.${process.pid}.${(0, import_node_crypto62.randomUUID)()}.tmp`;
80712
80796
  try {
80713
80797
  import_node_fs101.default.mkdirSync(import_node_path105.default.dirname(target), { recursive: true });
80714
80798
  import_node_fs101.default.writeFileSync(
@@ -80763,7 +80847,7 @@ function frameworkDigest(directory2, signal) {
80763
80847
  if (target !== root && !target.startsWith(`${root}${import_node_path105.default.sep}`))
80764
80848
  throw new Error(`framework link escapes its tree: ${relative6}`);
80765
80849
  }
80766
- return (0, import_node_crypto61.createHash)("sha256").update(JSON.stringify([...entries2])).digest("hex");
80850
+ return (0, import_node_crypto62.createHash)("sha256").update(JSON.stringify([...entries2])).digest("hex");
80767
80851
  }
80768
80852
  function rewritePreparedPaths(options2) {
80769
80853
  const { units, sourceRoot, preparedRoot, signal } = options2;
@@ -80784,7 +80868,7 @@ function rewritePreparedPaths(options2) {
80784
80868
  return null;
80785
80869
  }
80786
80870
  if (!preparedBytes.equals(sourceBytes)) return null;
80787
- dependencies[sourceFile] = (0, import_node_crypto61.createHash)("sha256").update(sourceBytes).digest("hex");
80871
+ dependencies[sourceFile] = (0, import_node_crypto62.createHash)("sha256").update(sourceBytes).digest("hex");
80788
80872
  verifiedFiles.set(preparedFile, sourceFile);
80789
80873
  return sourceFile;
80790
80874
  };
@@ -80861,7 +80945,7 @@ function rewritePreparedPaths(options2) {
80861
80945
  portableDir = import_node_path105.default.join(parent, import_node_path105.default.basename(dir));
80862
80946
  if (!import_node_fs101.default.existsSync(portableDir)) {
80863
80947
  import_node_fs101.default.mkdirSync(parent, { recursive: true });
80864
- const tmp = import_node_path105.default.join(parent, `.${process.pid}.${(0, import_node_crypto61.randomUUID)()}.tmp`);
80948
+ const tmp = import_node_path105.default.join(parent, `.${process.pid}.${(0, import_node_crypto62.randomUUID)()}.tmp`);
80865
80949
  try {
80866
80950
  import_node_fs101.default.cpSync(dir, tmp, { recursive: true, verbatimSymlinks: true });
80867
80951
  if (frameworkDigest(tmp, signal) !== preparedDigest)
@@ -80890,7 +80974,7 @@ function writeExpoDiscovery(options2) {
80890
80974
  try {
80891
80975
  const dir = expoDiscoveryCacheDir();
80892
80976
  import_node_fs101.default.mkdirSync(dir, { recursive: true });
80893
- const tmp = import_node_path105.default.join(dir, `.${options2.key}.${process.pid}.${(0, import_node_crypto61.randomUUID)()}.tmp`);
80977
+ const tmp = import_node_path105.default.join(dir, `.${options2.key}.${process.pid}.${(0, import_node_crypto62.randomUUID)()}.tmp`);
80894
80978
  if (options2.units === null) {
80895
80979
  import_node_fs101.default.writeFileSync(
80896
80980
  tmp,
@@ -80953,8 +81037,8 @@ function writeExpoDiscovery(options2) {
80953
81037
  }
80954
81038
  );
80955
81039
  const contents2 = (0, import_node_zlib7.zstdCompressSync)(Buffer.concat(chunks, size2));
80956
- const archive = (0, import_node_crypto61.createHash)("sha256").update(contents2).digest("hex");
80957
- const temporary = import_node_path105.default.join(blobDir, "." + (0, import_node_crypto61.randomUUID)() + ".tmp");
81040
+ const archive = (0, import_node_crypto62.createHash)("sha256").update(contents2).digest("hex");
81041
+ const temporary = import_node_path105.default.join(blobDir, "." + (0, import_node_crypto62.randomUUID)() + ".tmp");
80958
81042
  try {
80959
81043
  import_node_fs101.default.writeFileSync(temporary, contents2);
80960
81044
  import_node_fs101.default.renameSync(temporary, import_node_path105.default.join(blobDir, `${archive}.zst`));
@@ -80981,11 +81065,11 @@ function writeExpoDiscovery(options2) {
80981
81065
  return error instanceof Error ? error.message : String(error);
80982
81066
  }
80983
81067
  }
80984
- var import_node_crypto61, import_node_fs101, import_node_path105, import_node_zlib7, FORMAT, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings2, stringRecord, isDigest, digestRecord, isBodyOffset, isBodyOffsets, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
81068
+ var import_node_crypto62, import_node_fs101, import_node_path105, import_node_zlib7, FORMAT, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings2, stringRecord, isDigest, digestRecord, isBodyOffset, isBodyOffsets, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
80985
81069
  var init_expo_discovery_cache = __esm({
80986
81070
  "src/expo-discovery-cache.ts"() {
80987
81071
  "use strict";
80988
- import_node_crypto61 = require("node:crypto");
81072
+ import_node_crypto62 = require("node:crypto");
80989
81073
  import_node_fs101 = __toESM(require("node:fs"), 1);
80990
81074
  import_node_path105 = __toESM(require("node:path"), 1);
80991
81075
  import_node_zlib7 = require("node:zlib");
@@ -81433,7 +81517,7 @@ function hashPackageTree(root, options2) {
81433
81517
  }
81434
81518
  };
81435
81519
  walk4(root, "");
81436
- const hash = (0, import_node_crypto62.createHash)("sha256");
81520
+ const hash = (0, import_node_crypto63.createHash)("sha256");
81437
81521
  return (async () => {
81438
81522
  for (let start = 0; start < files2.length; start += READ_AHEAD) {
81439
81523
  const batch = files2.slice(start, start + READ_AHEAD);
@@ -81454,11 +81538,11 @@ function nativePackageTreeDigest(root) {
81454
81538
  skipFile: (name3) => name3.endsWith(".d.ts") || name3.endsWith(".d.ts.map") || name3.endsWith(".js.map")
81455
81539
  });
81456
81540
  }
81457
- var import_node_crypto62, import_node_fs104, import_promises12, import_node_path108, READ_AHEAD;
81541
+ var import_node_crypto63, import_node_fs104, import_promises12, import_node_path108, READ_AHEAD;
81458
81542
  var init_package_tree_digest = __esm({
81459
81543
  "src/package-tree-digest.ts"() {
81460
81544
  "use strict";
81461
- import_node_crypto62 = require("node:crypto");
81545
+ import_node_crypto63 = require("node:crypto");
81462
81546
  import_node_fs104 = require("node:fs");
81463
81547
  import_promises12 = require("node:fs/promises");
81464
81548
  import_node_path108 = require("node:path");
@@ -81538,7 +81622,7 @@ async function expoNativeInputs(appRoot) {
81538
81622
  "swift-pin": JSON.stringify(swiftNativePin()),
81539
81623
  answered: JSON.stringify([...peachAnsweredNativePackages()].sort()),
81540
81624
  "pods-environment": JSON.stringify(reactNativePodsEnvironment()),
81541
- fingerprint: (0, import_node_crypto63.createHash)("sha256").update(lines.sort().join("\n")).digest("hex")
81625
+ fingerprint: (0, import_node_crypto64.createHash)("sha256").update(lines.sort().join("\n")).digest("hex")
81542
81626
  },
81543
81627
  packages
81544
81628
  };
@@ -81656,7 +81740,7 @@ async function managedExpoNativeAppIdentity(appRoot, iosTarget) {
81656
81740
  }
81657
81741
  function servedExpoSwift(appRoot, entry, app) {
81658
81742
  if (!entry.expoSwift) return null;
81659
- const rootId = `${(0, import_node_crypto63.createHash)("sha256").update(import_node_fs105.default.realpathSync(appRoot)).digest("hex")}/Expo`;
81743
+ const rootId = `${(0, import_node_crypto64.createHash)("sha256").update(import_node_fs105.default.realpathSync(appRoot)).digest("hex")}/Expo`;
81660
81744
  if (app.infoPlist === null) throw new Error("the prebuilt app target has no Info.plist");
81661
81745
  const installed2 = installedInfoPlist(app.infoPlist, entry.infoPlist);
81662
81746
  const infoPlist2 = Buffer.from(installed2).toString("base64");
@@ -81684,11 +81768,11 @@ async function prebuiltExpoSwiftResult(appRoot, entry, signal) {
81684
81768
  await prebuiltAppTarget(appRoot, signal, "installed")
81685
81769
  );
81686
81770
  }
81687
- var import_node_crypto63, import_node_fs105, import_node_module13, import_node_path109, import_node_util14, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published, lookups, answers;
81771
+ var import_node_crypto64, import_node_fs105, import_node_module13, import_node_path109, import_node_util14, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published, lookups, answers;
81688
81772
  var init_expo_native_prebuilt = __esm({
81689
81773
  "src/expo-native-prebuilt.ts"() {
81690
81774
  "use strict";
81691
- import_node_crypto63 = require("node:crypto");
81775
+ import_node_crypto64 = require("node:crypto");
81692
81776
  import_node_fs105 = __toESM(require("node:fs"), 1);
81693
81777
  import_node_module13 = require("node:module");
81694
81778
  import_node_path109 = __toESM(require("node:path"), 1);
@@ -81740,7 +81824,7 @@ function watchNativeInputs(root) {
81740
81824
  (0, import_node_timers2.clearTimeout)(expiry);
81741
81825
  for (const watcher of watchers) watcher.close();
81742
81826
  }
81743
- const inputs2 = { expiry, revision: (0, import_node_crypto64.randomUUID)() };
81827
+ const inputs2 = { expiry, revision: (0, import_node_crypto65.randomUUID)() };
81744
81828
  const watch3 = (directory2, recursive, name3) => {
81745
81829
  const watcher = import_node_fs106.default.watch(
81746
81830
  directory2,
@@ -81785,11 +81869,11 @@ function nativeInputRevision(root) {
81785
81869
  const inputs2 = watchNativeInputs(root);
81786
81870
  if (inputs2) return JSON.stringify([inputs2.revision, resolveActiveRuntimeRoot()]);
81787
81871
  }
81788
- var import_node_crypto64, import_node_fs106, import_node_path110, import_node_timers2, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
81872
+ var import_node_crypto65, import_node_fs106, import_node_path110, import_node_timers2, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
81789
81873
  var init_native_preparation = __esm({
81790
81874
  "src/native-preparation.ts"() {
81791
81875
  "use strict";
81792
- import_node_crypto64 = require("node:crypto");
81876
+ import_node_crypto65 = require("node:crypto");
81793
81877
  import_node_fs106 = __toESM(require("node:fs"), 1);
81794
81878
  import_node_path110 = __toESM(require("node:path"), 1);
81795
81879
  import_node_timers2 = require("node:timers");
@@ -81969,7 +82053,7 @@ function nativeStaticLibraryEntry(recipe2, compiler, sdk2, distribution) {
81969
82053
  return { name: recipe2.name, inputs: inputs2, key: nativeEntryKey(inputs2) };
81970
82054
  }
81971
82055
  function nativeStaticLibraryRecipe(bytes) {
81972
- const digest3 = (0, import_node_crypto65.createHash)("sha256").update(bytes).digest("hex");
82056
+ const digest3 = (0, import_node_crypto66.createHash)("sha256").update(bytes).digest("hex");
81973
82057
  return NATIVE_STATIC_LIBRARY_RECIPES.find((item) => item.nativeSha256 === digest3);
81974
82058
  }
81975
82059
  function nativeStaticLibrary(file, recipe2, moduleRoot) {
@@ -82012,7 +82096,7 @@ function isRustSymbol(name3, demangled) {
82012
82096
  function rustStaticLibrary(file, moduleRoot) {
82013
82097
  const toolchain = swiftModuleToolchain(moduleRoot);
82014
82098
  const bytes = import_node_fs108.default.readFileSync(file);
82015
- const key2 = (0, import_node_crypto65.createHash)("sha256").update("rust-c-abi-v4\0").update(toolchain.release).update("\0").update(bytes).digest("hex");
82099
+ const key2 = (0, import_node_crypto66.createHash)("sha256").update("rust-c-abi-v4\0").update(toolchain.release).update("\0").update(bytes).digest("hex");
82016
82100
  const directory2 = import_node_path112.default.join(cacheDir(), "native-archives", key2);
82017
82101
  const archive = import_node_path112.default.join(directory2, "library.a");
82018
82102
  if (import_node_fs108.default.existsSync(archive)) return archive;
@@ -82041,7 +82125,7 @@ function rustStaticLibrary(file, moduleRoot) {
82041
82125
  const members2 = readArMembers(bytes, true);
82042
82126
  const seen = /* @__PURE__ */ new Set();
82043
82127
  const unique2 = members2.filter(({ name: name3, bytes: bytes2 }) => {
82044
- const identity2 = name3 + "\0" + (0, import_node_crypto65.createHash)("sha256").update(bytes2).digest("hex");
82128
+ const identity2 = name3 + "\0" + (0, import_node_crypto66.createHash)("sha256").update(bytes2).digest("hex");
82045
82129
  if (seen.has(identity2)) return false;
82046
82130
  seen.add(identity2);
82047
82131
  return true;
@@ -82088,14 +82172,14 @@ function rustStaticLibrary(file, moduleRoot) {
82088
82172
  function combineNativeStaticLibraries(files2, moduleRoot) {
82089
82173
  if (files2.length === 1) return files2[0];
82090
82174
  const toolchain = swiftModuleToolchain(moduleRoot);
82091
- const hash = (0, import_node_crypto65.createHash)("sha256").update(toolchain.release);
82175
+ const hash = (0, import_node_crypto66.createHash)("sha256").update(toolchain.release);
82092
82176
  for (const file of files2)
82093
82177
  hash.update("\0").update(import_node_path112.default.basename(file)).update("\0").update(import_node_fs108.default.readFileSync(file));
82094
82178
  const directory2 = import_node_path112.default.join(cacheDir(), "native-archives", hash.digest("hex"));
82095
82179
  const archive = import_node_path112.default.join(directory2, "combined.a");
82096
82180
  if (import_node_fs108.default.existsSync(archive)) return archive;
82097
82181
  import_node_fs108.default.mkdirSync(directory2, { recursive: true });
82098
- const temporary = import_node_path112.default.join(directory2, `combined-${(0, import_node_crypto65.randomUUID)()}.a`);
82182
+ const temporary = import_node_path112.default.join(directory2, `combined-${(0, import_node_crypto66.randomUUID)()}.a`);
82099
82183
  try {
82100
82184
  (0, import_node_child_process50.execFileSync)(import_node_path112.default.join(toolchain.toolchainBin, "llvm-ar"), [
82101
82185
  "qcsDL",
@@ -82108,12 +82192,12 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
82108
82192
  }
82109
82193
  return archive;
82110
82194
  }
82111
- var import_node_child_process50, import_node_crypto65, import_node_fs108, import_node_path112, WEBRTC_NATIVE_FRAMEWORK, SIGNAL_WEBRTC_NATIVE_FRAMEWORK, WEBRTC_NATIVE_FRAMEWORK_RECIPES, NATIVE_STATIC_LIBRARY_RECIPES;
82195
+ var import_node_child_process50, import_node_crypto66, import_node_fs108, import_node_path112, WEBRTC_NATIVE_FRAMEWORK, SIGNAL_WEBRTC_NATIVE_FRAMEWORK, WEBRTC_NATIVE_FRAMEWORK_RECIPES, NATIVE_STATIC_LIBRARY_RECIPES;
82112
82196
  var init_native_static_libraries = __esm({
82113
82197
  "src/native-static-libraries.ts"() {
82114
82198
  "use strict";
82115
82199
  import_node_child_process50 = require("node:child_process");
82116
- import_node_crypto65 = require("node:crypto");
82200
+ import_node_crypto66 = require("node:crypto");
82117
82201
  import_node_fs108 = __toESM(require("node:fs"), 1);
82118
82202
  import_node_path112 = __toESM(require("node:path"), 1);
82119
82203
  init_home_paths();
@@ -82718,13 +82802,13 @@ var init_swift_wasm64_wamr = __esm({
82718
82802
 
82719
82803
  // src/swift-wasm64-native-source.ts
82720
82804
  function deriveSource(file, bytes, backport) {
82721
- if (!backport || (0, import_node_crypto66.createHash)("sha256").update(bytes).digest("hex") !== backport.originalSha256)
82805
+ if (!backport || (0, import_node_crypto67.createHash)("sha256").update(bytes).digest("hex") !== backport.originalSha256)
82722
82806
  return null;
82723
82807
  const source = bytes.toString("utf8");
82724
82808
  const derived = Buffer.from(
82725
82809
  "rewrite" in backport ? backport.rewrite(source) : source.replace(backport.before, backport.after)
82726
82810
  );
82727
- if ((0, import_node_crypto66.createHash)("sha256").update(derived).digest("hex") !== backport.derivedSha256)
82811
+ if ((0, import_node_crypto67.createHash)("sha256").update(derived).digest("hex") !== backport.derivedSha256)
82728
82812
  throw new Error(`Native source derivation differs: ${file}`);
82729
82813
  return {
82730
82814
  bytes: derived,
@@ -82743,11 +82827,11 @@ function deriveWasm64NativeSource(file, bytes) {
82743
82827
  sourceDerivations.get(name3) ?? headerDerivations.get(name3)
82744
82828
  );
82745
82829
  }
82746
- var import_node_crypto66, import_node_path114, webrtcUnknownArchitecture, boringsslWordSize2, wamrCommit, headerDerivations, sourceDerivations;
82830
+ var import_node_crypto67, import_node_path114, webrtcUnknownArchitecture, boringsslWordSize2, wamrCommit, headerDerivations, sourceDerivations;
82747
82831
  var init_swift_wasm64_native_source = __esm({
82748
82832
  "src/swift-wasm64-native-source.ts"() {
82749
82833
  "use strict";
82750
- import_node_crypto66 = require("node:crypto");
82834
+ import_node_crypto67 = require("node:crypto");
82751
82835
  import_node_path114 = __toESM(require("node:path"), 1);
82752
82836
  init_swift_wasm64_wamr();
82753
82837
  init_swiftWasm64ConfigContract();
@@ -83207,7 +83291,7 @@ var init_genrule_library_builds = __esm({
83207
83291
  function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
83208
83292
  const distribution = swiftDistributionAt(moduleRoot);
83209
83293
  const sdk2 = swiftSdkPaths(moduleRoot, toolchainBin);
83210
- const identity2 = (0, import_node_crypto67.createHash)("sha256").update(
83294
+ const identity2 = (0, import_node_crypto68.createHash)("sha256").update(
83211
83295
  JSON.stringify([
83212
83296
  distribution?.id,
83213
83297
  distribution?.link,
@@ -83233,7 +83317,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
83233
83317
  for (const alias of product.frameworkAliases) {
83234
83318
  if (alias.wasmSdkId !== distribution.wasmSdkId || alias.wasmSdkChecksum !== distribution.wasmSdkChecksum)
83235
83319
  throw new Error(`framework SDK identity differs for ${alias.name}`);
83236
- if ((0, import_node_crypto67.createHash)("sha256").update(import_node_fs111.default.readFileSync(import_node_path116.default.join(moduleRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
83320
+ if ((0, import_node_crypto68.createHash)("sha256").update(import_node_fs111.default.readFileSync(import_node_path116.default.join(moduleRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
83237
83321
  throw new Error(`framework module map changed ${alias.moduleMap}`);
83238
83322
  const selected = /* @__PURE__ */ new Set();
83239
83323
  const reach = (name3) => {
@@ -83274,7 +83358,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
83274
83358
  for (const alias of owner.frameworkAliases) {
83275
83359
  if (frameworkResponses[alias.name])
83276
83360
  throw new Error(`ambiguous declared framework ${alias.name}`);
83277
- if ((0, import_node_crypto67.createHash)("sha256").update(import_node_fs111.default.readFileSync(import_node_path116.default.join(sdkRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
83361
+ if ((0, import_node_crypto68.createHash)("sha256").update(import_node_fs111.default.readFileSync(import_node_path116.default.join(sdkRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
83278
83362
  throw new Error(`framework module map changed ${alias.moduleMap}`);
83279
83363
  const file = import_node_path116.default.join(root, `${alias.name}.rsp`);
83280
83364
  import_node_fs111.default.writeFileSync(file, aliasArtifacts.map(quote3).join("\n") + "\n");
@@ -83368,11 +83452,11 @@ exec ${shellQuote(configuration2.compiler)} "$@"
83368
83452
  };
83369
83453
  return { cc: compiler("clang"), cxx: compiler("clang++"), identity: identity2 };
83370
83454
  }
83371
- var import_node_crypto67, import_node_fs111, import_node_path116, v7;
83455
+ var import_node_crypto68, import_node_fs111, import_node_path116, v7;
83372
83456
  var init_native_framework_compiler = __esm({
83373
83457
  "src/native-framework-compiler.ts"() {
83374
83458
  "use strict";
83375
- import_node_crypto67 = require("node:crypto");
83459
+ import_node_crypto68 = require("node:crypto");
83376
83460
  import_node_fs111 = __toESM(require("node:fs"), 1);
83377
83461
  import_node_path116 = __toESM(require("node:path"), 1);
83378
83462
  v7 = __toESM(require("peachsim/vendor/valibot"), 1);
@@ -83393,7 +83477,7 @@ function processAlive(pid) {
83393
83477
  }
83394
83478
  function tryAcquireNumberedLock(directory2, detail = "") {
83395
83479
  (0, import_node_fs112.mkdirSync)(directory2, { recursive: true });
83396
- const claim = (0, import_node_path117.join)(directory2, `claim-${process.pid}-${(0, import_node_crypto68.randomUUID)()}`);
83480
+ const claim = (0, import_node_path117.join)(directory2, `claim-${process.pid}-${(0, import_node_crypto69.randomUUID)()}`);
83397
83481
  for (; ; ) {
83398
83482
  const numbers = (0, import_node_fs112.readdirSync)(directory2).filter((name3) => /^\d+$/.test(name3)).map(Number);
83399
83483
  const top = Math.max(-1, ...numbers);
@@ -83432,11 +83516,11 @@ ${detail}` : ""}`);
83432
83516
  };
83433
83517
  }
83434
83518
  }
83435
- var import_node_crypto68, import_node_fs112, import_node_path117, errorCode2;
83519
+ var import_node_crypto69, import_node_fs112, import_node_path117, errorCode2;
83436
83520
  var init_numbered_lock = __esm({
83437
83521
  "src/numbered-lock.ts"() {
83438
83522
  "use strict";
83439
- import_node_crypto68 = require("node:crypto");
83523
+ import_node_crypto69 = require("node:crypto");
83440
83524
  import_node_fs112 = require("node:fs");
83441
83525
  import_node_path117 = require("node:path");
83442
83526
  errorCode2 = (error) => error instanceof Error && "code" in error ? error.code : void 0;
@@ -83463,7 +83547,7 @@ function llvmIdentity(toolchainBin, release) {
83463
83547
  ] : ["clang", "wasm-ld", "llvm-ar", "llvm-nm", "llvm-strip"].map(
83464
83548
  (name3) => swiftFileChecksum(import_node_path118.default.join(toolchainBin, name3))
83465
83549
  );
83466
- const identity2 = (0, import_node_crypto69.createHash)("sha256").update(JSON.stringify(components)).digest("hex");
83550
+ const identity2 = (0, import_node_crypto70.createHash)("sha256").update(JSON.stringify(components)).digest("hex");
83467
83551
  toolIdentities.set(toolchainBin, identity2);
83468
83552
  return identity2;
83469
83553
  }
@@ -83471,7 +83555,7 @@ function cSdkIdentity(sysroot, resourceDir, frameworks) {
83471
83555
  const key2 = JSON.stringify([sysroot, resourceDir, frameworks]);
83472
83556
  const cached4 = sysrootIdentities.get(key2);
83473
83557
  if (cached4) return cached4;
83474
- const hash = (0, import_node_crypto69.createHash)("sha256");
83558
+ const hash = (0, import_node_crypto70.createHash)("sha256");
83475
83559
  const add = (root, relative6) => {
83476
83560
  const file = import_node_path118.default.join(root, relative6);
83477
83561
  const stat2 = import_node_fs113.default.statSync(file, { throwIfNoEntry: false });
@@ -83506,7 +83590,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
83506
83590
  import_node_fs113.default.readFileSync(import_node_path118.default.join(moduleRoot, SWIFT_FRAMEWORK_PRODUCT_FILE), "utf8")
83507
83591
  )
83508
83592
  );
83509
- const hash = (0, import_node_crypto69.createHash)("sha256").update(
83593
+ const hash = (0, import_node_crypto70.createHash)("sha256").update(
83510
83594
  JSON.stringify([
83511
83595
  headers,
83512
83596
  distribution.link,
@@ -83516,7 +83600,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
83516
83600
  ])
83517
83601
  );
83518
83602
  const objects = distribution.objects.map((file) => [file, distribution.files[file]]);
83519
- const objectKey = (0, import_node_crypto69.createHash)("sha256").update(JSON.stringify(objects)).digest("hex");
83603
+ const objectKey = (0, import_node_crypto70.createHash)("sha256").update(JSON.stringify(objects)).digest("hex");
83520
83604
  const cache = import_node_path118.default.join(cacheDir4, "framework-symbols-by-object", objectKey);
83521
83605
  if (!import_node_fs113.default.existsSync(cache)) {
83522
83606
  import_node_fs113.default.mkdirSync(import_node_path118.default.dirname(cache), { recursive: true });
@@ -83551,7 +83635,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
83551
83635
  const digest3 = import_node_path118.default.join(temporary, "digest");
83552
83636
  import_node_fs113.default.writeFileSync(
83553
83637
  digest3,
83554
- (0, import_node_crypto69.createHash)("sha256").update(symbols.sort().join("\n")).digest("hex")
83638
+ (0, import_node_crypto70.createHash)("sha256").update(symbols.sort().join("\n")).digest("hex")
83555
83639
  );
83556
83640
  import_node_fs113.default.renameSync(digest3, cache);
83557
83641
  } finally {
@@ -83606,7 +83690,7 @@ function buildable(declaration) {
83606
83690
  return builderOf(declaration) !== null && declaration.dependencies.every(buildable);
83607
83691
  }
83608
83692
  function declarationInputs(declaration, builder, toolchain, dependencyKeys) {
83609
- const hash = (0, import_node_crypto69.createHash)("sha256");
83693
+ const hash = (0, import_node_crypto70.createHash)("sha256");
83610
83694
  const files2 = declaration.sources.filter(
83611
83695
  (source) => !source.generator && !source.file.split(import_node_path118.default.sep).includes(".git")
83612
83696
  ).map((source) => import_node_path118.default.relative(declaration.packageDir, source.file));
@@ -83740,12 +83824,12 @@ function genruleArchive(declaration, library, moduleRoot) {
83740
83824
  }
83741
83825
  return combined;
83742
83826
  }
83743
- var import_node_child_process53, import_node_crypto69, import_node_fs113, import_node_os23, import_node_path118, v8, BUILDERS, cacheDir4, toolIdentities, sysrootIdentities, GENRULE_RECIPE, GENRULE_BUNDLE;
83827
+ var import_node_child_process53, import_node_crypto70, import_node_fs113, import_node_os23, import_node_path118, v8, BUILDERS, cacheDir4, toolIdentities, sysrootIdentities, GENRULE_RECIPE, GENRULE_BUNDLE;
83744
83828
  var init_genrule_archives = __esm({
83745
83829
  "src/genrule-archives.ts"() {
83746
83830
  "use strict";
83747
83831
  import_node_child_process53 = require("node:child_process");
83748
- import_node_crypto69 = require("node:crypto");
83832
+ import_node_crypto70 = require("node:crypto");
83749
83833
  import_node_fs113 = __toESM(require("node:fs"), 1);
83750
83834
  import_node_os23 = __toESM(require("node:os"), 1);
83751
83835
  import_node_path118 = __toESM(require("node:path"), 1);
@@ -83853,7 +83937,7 @@ function privateSentrySlice(entry, moduleRoot) {
83853
83937
  function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact) {
83854
83938
  if (standin.module !== SENTRY_SWIFT_SLICE.name) return standin;
83855
83939
  const native = simulatorNativeLibrary(artifact());
83856
- if (!native || (0, import_node_crypto70.createHash)("sha256").update(import_node_fs114.default.readFileSync(native.file)).digest("hex") !== SENTRY_SWIFT_SLICE.nativeSha256)
83940
+ if (!native || (0, import_node_crypto71.createHash)("sha256").update(import_node_fs114.default.readFileSync(native.file)).digest("hex") !== SENTRY_SWIFT_SLICE.nativeSha256)
83857
83941
  return standin;
83858
83942
  if (configured)
83859
83943
  throw new Error(
@@ -83911,12 +83995,12 @@ function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact)
83911
83995
  }
83912
83996
  };
83913
83997
  }
83914
- var import_node_child_process54, import_node_crypto70, import_node_fs114, import_node_os24, import_node_path119, SENTRY_SWIFT_SLICE;
83998
+ var import_node_child_process54, import_node_crypto71, import_node_fs114, import_node_os24, import_node_path119, SENTRY_SWIFT_SLICE;
83915
83999
  var init_native_swift_slices = __esm({
83916
84000
  "src/native-swift-slices.ts"() {
83917
84001
  "use strict";
83918
84002
  import_node_child_process54 = require("node:child_process");
83919
- import_node_crypto70 = require("node:crypto");
84003
+ import_node_crypto71 = require("node:crypto");
83920
84004
  import_node_fs114 = __toESM(require("node:fs"), 1);
83921
84005
  import_node_os24 = __toESM(require("node:os"), 1);
83922
84006
  import_node_path119 = __toESM(require("node:path"), 1);
@@ -84724,7 +84808,7 @@ function treeDigest2(root) {
84724
84808
  }).join("\n");
84725
84809
  const memo2 = digests.get(`tree\0${root}`);
84726
84810
  if (memo2?.stamp === stamp) return memo2.digest;
84727
- const hash = (0, import_node_crypto71.createHash)("sha256");
84811
+ const hash = (0, import_node_crypto72.createHash)("sha256");
84728
84812
  for (const name3 of names) {
84729
84813
  hash.update(`${name3}\0`);
84730
84814
  hash.update(import_node_fs118.default.readFileSync(import_node_path122.default.join(root, name3)));
@@ -84771,7 +84855,7 @@ function swiftBinaryFramework(binary2) {
84771
84855
  const found4 = locateXcframework(import_node_path122.default.join(dir, "tree"));
84772
84856
  if (found4) return { dir: found4, digest: stored.sha };
84773
84857
  }
84774
- const sha2 = (0, import_node_crypto71.createHash)("sha256").update(import_node_fs118.default.readFileSync(binary2.dir)).digest("hex");
84858
+ const sha2 = (0, import_node_crypto72.createHash)("sha256").update(import_node_fs118.default.readFileSync(binary2.dir)).digest("hex");
84775
84859
  if (sha2 !== stored?.sha || !locateXcframework(import_node_path122.default.join(dir, "tree"))) {
84776
84860
  import_node_fs118.default.rmSync(dir, { recursive: true, force: true });
84777
84861
  import_node_fs118.default.mkdirSync(import_node_path122.default.join(dir, "tree"), { recursive: true });
@@ -84783,7 +84867,7 @@ function swiftBinaryFramework(binary2) {
84783
84867
  return { dir: found3, digest: sha2 };
84784
84868
  }
84785
84869
  if (stored && import_node_fs118.default.existsSync(archive)) {
84786
- const sha2 = (0, import_node_crypto71.createHash)("sha256").update(import_node_fs118.default.readFileSync(archive)).digest("hex");
84870
+ const sha2 = (0, import_node_crypto72.createHash)("sha256").update(import_node_fs118.default.readFileSync(archive)).digest("hex");
84787
84871
  if (sha2 !== expected)
84788
84872
  throw new Error(`archive checksum ${sha2} is not the declared checksum ${expected}`);
84789
84873
  const found3 = locateXcframework(import_node_path122.default.join(dir, "tree"));
@@ -84792,7 +84876,7 @@ function swiftBinaryFramework(binary2) {
84792
84876
  import_node_fs118.default.rmSync(dir, { recursive: true, force: true });
84793
84877
  import_node_fs118.default.mkdirSync(import_node_path122.default.join(dir, "tree"), { recursive: true });
84794
84878
  exec("curl", ["-fsSL", "--retry", "2", "-o", archive, binary2.url]);
84795
- const sha = (0, import_node_crypto71.createHash)("sha256").update(import_node_fs118.default.readFileSync(archive)).digest("hex");
84879
+ const sha = (0, import_node_crypto72.createHash)("sha256").update(import_node_fs118.default.readFileSync(archive)).digest("hex");
84796
84880
  if (sha !== expected) {
84797
84881
  import_node_fs118.default.rmSync(dir, { recursive: true, force: true });
84798
84882
  throw new Error(`archive checksum ${sha} is not the declared checksum ${expected}`);
@@ -84917,7 +85001,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
84917
85001
  });
84918
85002
  }
84919
85003
  }
84920
- const declaredDigest = (0, import_node_crypto71.createHash)("sha256");
85004
+ const declaredDigest = (0, import_node_crypto72.createHash)("sha256");
84921
85005
  for (const framework of providedFrameworks)
84922
85006
  declaredDigest.update(`provided/${import_node_path122.default.relative(artifact.dir, framework)}\0`);
84923
85007
  for (const [framework, { declared: names, imports: imports2, sdkHeader }] of declared)
@@ -84987,7 +85071,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
84987
85071
  import_node_fs118.default.copyFileSync(surface.modulemap, modulemap);
84988
85072
  }
84989
85073
  }
84990
- const contents2 = (0, import_node_crypto71.createHash)("sha256");
85074
+ const contents2 = (0, import_node_crypto72.createHash)("sha256");
84991
85075
  for (const framework of providedFrameworks.filter((item) => !declared.has(item))) {
84992
85076
  const modulemap = import_node_path122.default.join(
84993
85077
  pending2,
@@ -86402,7 +86486,7 @@ function crateSourceRoots(manifest, searchRoot) {
86402
86486
  return roots;
86403
86487
  }
86404
86488
  function crateSourceDigest(manifest, searchRoot) {
86405
- const hash = (0, import_node_crypto71.createHash)("sha256");
86489
+ const hash = (0, import_node_crypto72.createHash)("sha256");
86406
86490
  const walk4 = (dir, root) => {
86407
86491
  for (const entry of import_node_fs118.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name < right.name ? -1 : 1)) {
86408
86492
  const full = import_node_path122.default.join(dir, entry.name);
@@ -86849,7 +86933,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
86849
86933
  ...swiftSources.flags,
86850
86934
  ...swiftSources.sources.flatMap((source) => [
86851
86935
  source,
86852
- (0, import_node_crypto71.createHash)("sha256").update(import_node_fs118.default.readFileSync(import_node_path122.default.join(binary2.dir, source))).digest("hex")
86936
+ (0, import_node_crypto72.createHash)("sha256").update(import_node_fs118.default.readFileSync(import_node_path122.default.join(binary2.dir, source))).digest("hex")
86853
86937
  ])
86854
86938
  );
86855
86939
  continue;
@@ -86885,7 +86969,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
86885
86969
  );
86886
86970
  }
86887
86971
  }
86888
- return (0, import_node_crypto71.createHash)("sha256").update(parts2.join("\0")).digest("hex");
86972
+ return (0, import_node_crypto72.createHash)("sha256").update(parts2.join("\0")).digest("hex");
86889
86973
  }
86890
86974
  function missingArtifactGap(binary2) {
86891
86975
  if (swiftBinaryOnDisk(binary2)) return null;
@@ -86967,7 +87051,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
86967
87051
  return NO_IMPORTABLE_SURFACE;
86968
87052
  }
86969
87053
  const configured = new Map(Object.entries(behavior));
86970
- const hash = (0, import_node_crypto71.createHash)("sha256").update(
87054
+ const hash = (0, import_node_crypto72.createHash)("sha256").update(
86971
87055
  standinGenerationInputs([binary2], toolchain, behavior)
86972
87056
  );
86973
87057
  hash.update(digest3);
@@ -87207,7 +87291,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
87207
87291
  );
87208
87292
  if (binary2.moduleSources !== void 0)
87209
87293
  frameworkInputs.push(
87210
- `${binary2.target}\0${(0, import_node_crypto71.createHash)("sha256").update(
87294
+ `${binary2.target}\0${(0, import_node_crypto72.createHash)("sha256").update(
87211
87295
  [iosSdkId(), ...swiftSources.flags, ...swiftSources.sources, ...texts].join(
87212
87296
  "\0"
87213
87297
  )
@@ -87248,7 +87332,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
87248
87332
  import_node_fs118.default.mkdirSync(sourceFrameworks);
87249
87333
  const frameworks = {
87250
87334
  dirs: [...frameworkDirs, sourceFrameworks].sort(),
87251
- digest: (0, import_node_crypto71.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
87335
+ digest: (0, import_node_crypto72.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
87252
87336
  surfaces: frameworkSurfaces
87253
87337
  };
87254
87338
  const siblings = new Map(
@@ -87367,12 +87451,12 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
87367
87451
  import_node_fs118.default.rmSync(modules, { recursive: true, force: true });
87368
87452
  }
87369
87453
  }
87370
- var import_node_child_process56, import_node_crypto71, import_node_fs118, import_node_path122, TRIPLE, cacheDir5, key, digests, isBinaryLibraryFile, OBJC_IMPORT, files, OBJC, NO_IMPORTABLE_SURFACE, OBJC_ATTRIBUTE, TYPE_DECLARATION, OPTIONAL_REQUIREMENT, WASM_EH_FLAGS, OBJC_UNREPRESENTABLE, INERT_VALUE, identChar, RUST_TARGET, UNSEARCHED, RUST_TOOLCHAIN, built;
87454
+ var import_node_child_process56, import_node_crypto72, import_node_fs118, import_node_path122, TRIPLE, cacheDir5, key, digests, isBinaryLibraryFile, OBJC_IMPORT, files, OBJC, NO_IMPORTABLE_SURFACE, OBJC_ATTRIBUTE, TYPE_DECLARATION, OPTIONAL_REQUIREMENT, WASM_EH_FLAGS, OBJC_UNREPRESENTABLE, INERT_VALUE, identChar, RUST_TARGET, UNSEARCHED, RUST_TOOLCHAIN, built;
87371
87455
  var init_swift_standins = __esm({
87372
87456
  "src/swift-standins.ts"() {
87373
87457
  "use strict";
87374
87458
  import_node_child_process56 = require("node:child_process");
87375
- import_node_crypto71 = require("node:crypto");
87459
+ import_node_crypto72 = require("node:crypto");
87376
87460
  import_node_fs118 = __toESM(require("node:fs"), 1);
87377
87461
  import_node_path122 = __toESM(require("node:path"), 1);
87378
87462
  init_forked_script_contract();
@@ -87402,7 +87486,7 @@ var init_swift_standins = __esm({
87402
87486
  init_swiftTargetContract();
87403
87487
  TRIPLE = SWIFT_WASM_TRIPLE;
87404
87488
  cacheDir5 = import_node_path122.default.join(cacheDir(), "swift-standins");
87405
- key = (...parts2) => (0, import_node_crypto71.createHash)("sha256").update(parts2.join("\0")).digest("hex").slice(0, 32);
87489
+ key = (...parts2) => (0, import_node_crypto72.createHash)("sha256").update(parts2.join("\0")).digest("hex").slice(0, 32);
87406
87490
  digests = /* @__PURE__ */ new Map();
87407
87491
  isBinaryLibraryFile = (file) => /\.(?:a|dylib|o|tbd)$/i.test(file);
87408
87492
  OBJC_IMPORT = /#\s*(?:import|include)\s*[<"](?:[\w+-]+\/)?([\w+.-]+\.h)[>"]/g;
@@ -87565,7 +87649,7 @@ function compiledFrameworkImports(app, products) {
87565
87649
  function sha256Hex6(bytes) {
87566
87650
  if (typeof Bun !== "undefined")
87567
87651
  return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
87568
- return (0, import_node_crypto72.createHash)("sha256").update(bytes).digest("hex");
87652
+ return (0, import_node_crypto73.createHash)("sha256").update(bytes).digest("hex");
87569
87653
  }
87570
87654
  function regularFileStamp(file) {
87571
87655
  const stat2 = import_node_fs119.default.lstatSync(file, { bigint: true, throwIfNoEntry: false });
@@ -87608,7 +87692,7 @@ function cachedBinaryFileDigest(file) {
87608
87692
  const digest3 = sha256Hex6(import_node_fs119.default.readFileSync(real));
87609
87693
  binaryFileDigests.set(real, { stamp, digest: digest3 });
87610
87694
  import_node_fs119.default.mkdirSync(dir, { recursive: true });
87611
- const partial = `${record6}.${process.pid}.${(0, import_node_crypto72.randomUUID)()}`;
87695
+ const partial = `${record6}.${process.pid}.${(0, import_node_crypto73.randomUUID)()}`;
87612
87696
  import_node_fs119.default.writeFileSync(partial, JSON.stringify({ stamp, digest: digest3 }));
87613
87697
  import_node_fs119.default.renameSync(partial, record6);
87614
87698
  return digest3;
@@ -88878,12 +88962,12 @@ ${reported.trimEnd() || `Clang exited with status ${result.status}`}`;
88878
88962
  import_node_fs119.default.closeSync(descriptor);
88879
88963
  }
88880
88964
  }
88881
- var import_node_child_process57, import_node_crypto72, import_node_fs119, import_node_path123, SwiftObjCCompilationError, isDirectory4, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT, binaryFileDigests, objcInputSnapshots;
88965
+ var import_node_child_process57, import_node_crypto73, import_node_fs119, import_node_path123, SwiftObjCCompilationError, isDirectory4, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT, binaryFileDigests, objcInputSnapshots;
88882
88966
  var init_swift_objc_compile = __esm({
88883
88967
  "src/swift-objc-compile.ts"() {
88884
88968
  "use strict";
88885
88969
  import_node_child_process57 = require("node:child_process");
88886
- import_node_crypto72 = require("node:crypto");
88970
+ import_node_crypto73 = require("node:crypto");
88887
88971
  import_node_fs119 = __toESM(require("node:fs"), 1);
88888
88972
  import_node_path123 = __toESM(require("node:path"), 1);
88889
88973
  init_mapLimit();
@@ -93048,11 +93132,11 @@ function coreDataModelDirectories(files2) {
93048
93132
  }
93049
93133
  return [...models].sort();
93050
93134
  }
93051
- var import_node_crypto73, import_node_fs123, import_node_path127, attributeTypes, deleteRules, EXTERNAL_BINARY, PRESERVE_AFTER_DELETION, yes, common, uid, NULL, classChains, KeyedArchive, sha2563;
93135
+ var import_node_crypto74, import_node_fs123, import_node_path127, attributeTypes, deleteRules, EXTERNAL_BINARY, PRESERVE_AFTER_DELETION, yes, common, uid, NULL, classChains, KeyedArchive, sha2563;
93052
93136
  var init_core_data_model = __esm({
93053
93137
  "src/core-data-model.ts"() {
93054
93138
  "use strict";
93055
- import_node_crypto73 = require("node:crypto");
93139
+ import_node_crypto74 = require("node:crypto");
93056
93140
  import_node_fs123 = require("node:fs");
93057
93141
  import_node_path127 = __toESM(require("node:path"), 1);
93058
93142
  init_core_data_entity_classes();
@@ -93171,7 +93255,7 @@ var init_core_data_model = __esm({
93171
93255
  });
93172
93256
  }
93173
93257
  };
93174
- sha2563 = (...parts2) => (0, import_node_crypto73.createHash)("sha256").update(
93258
+ sha2563 = (...parts2) => (0, import_node_crypto74.createHash)("sha256").update(
93175
93259
  Buffer.concat(
93176
93260
  parts2.map(
93177
93261
  (part) => Array.isArray(part) ? Buffer.from(part) : Buffer.from(part)
@@ -95363,7 +95447,7 @@ async function buildRiveRuntimeDependencies(checkout, moduleRoot) {
95363
95447
  ];
95364
95448
  const objc = [...swiftObjCRuntimeFlags, "-fobjc-exceptions"];
95365
95449
  const xcode = (0, import_node_child_process59.execFileSync)("xcodebuild", ["-version"], { encoding: "utf8" });
95366
- const key2 = (0, import_node_crypto74.createHash)("sha256").update(
95450
+ const key2 = (0, import_node_crypto75.createHash)("sha256").update(
95367
95451
  JSON.stringify([
95368
95452
  RECIPE,
95369
95453
  (0, import_node_child_process59.execFileSync)("git", ["-C", runtime, "rev-parse", "HEAD"], {
@@ -95574,12 +95658,12 @@ exec ${quote3(import_node_path128.default.join(toolchainBin, "llvm-ar"))} rcs "$
95574
95658
  );
95575
95659
  return directory2;
95576
95660
  }
95577
- var import_node_child_process59, import_node_crypto74, import_node_fs124, import_node_os25, import_node_path128, import_promises14, RECIPE, CONFIG, RUNTIME_LIBRARIES;
95661
+ var import_node_child_process59, import_node_crypto75, import_node_fs124, import_node_os25, import_node_path128, import_promises14, RECIPE, CONFIG, RUNTIME_LIBRARIES;
95578
95662
  var init_rive_runtime_dependencies = __esm({
95579
95663
  "src/rive-runtime-dependencies.ts"() {
95580
95664
  "use strict";
95581
95665
  import_node_child_process59 = require("node:child_process");
95582
- import_node_crypto74 = require("node:crypto");
95666
+ import_node_crypto75 = require("node:crypto");
95583
95667
  import_node_fs124 = __toESM(require("node:fs"), 1);
95584
95668
  import_node_os25 = __toESM(require("node:os"), 1);
95585
95669
  import_node_path128 = __toESM(require("node:path"), 1);
@@ -96436,7 +96520,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
96436
96520
  (binary2) => binary2.publicHeaders === void 0 && binary2.placeholder === void 0 && swiftBinaryOnDisk(binary2) && binaryHeaderSearchPaths(binary2, staged, app.rootDir).headers.length === 1
96437
96521
  ))
96438
96522
  return [...binaries];
96439
- const hash = (0, import_node_crypto75.createHash)("sha256");
96523
+ const hash = (0, import_node_crypto76.createHash)("sha256");
96440
96524
  hash.update(
96441
96525
  JSON.stringify([
96442
96526
  inputs2.targets,
@@ -96645,12 +96729,12 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
96645
96729
  );
96646
96730
  return result;
96647
96731
  }
96648
- var import_node_child_process61, import_node_crypto75, import_node_fs126, import_node_path130, cachedInputs;
96732
+ var import_node_child_process61, import_node_crypto76, import_node_fs126, import_node_path130, cachedInputs;
96649
96733
  var init_swift_cxx_reachable = __esm({
96650
96734
  "src/swift-cxx-reachable.ts"() {
96651
96735
  "use strict";
96652
96736
  import_node_child_process61 = require("node:child_process");
96653
- import_node_crypto75 = require("node:crypto");
96737
+ import_node_crypto76 = require("node:crypto");
96654
96738
  import_node_fs126 = __toESM(require("node:fs"), 1);
96655
96739
  import_node_path130 = __toESM(require("node:path"), 1);
96656
96740
  init_is_record();
@@ -97141,7 +97225,7 @@ function fetchSwiftSdkDataPlan({ url, dataPlan }) {
97141
97225
  if (!response.ok)
97142
97226
  throw new Error(`Swift SDK data plan ${address} answered ${response.status}`);
97143
97227
  const bytes = Buffer.from(await response.arrayBuffer());
97144
- if ((0, import_node_crypto76.createHash)("sha256").update(bytes).digest("hex") !== dataPlan)
97228
+ if ((0, import_node_crypto77.createHash)("sha256").update(bytes).digest("hex") !== dataPlan)
97145
97229
  throw new Error(`Swift SDK data plan ${address} failed its digest check`);
97146
97230
  return bytes;
97147
97231
  });
@@ -97246,7 +97330,7 @@ function splitSwiftSdkLaterData(directory2, binding, plan) {
97246
97330
  encode2(now),
97247
97331
  encodeNativeSdkLater({
97248
97332
  files: later.map((bytes) => ({
97249
- sha256: (0, import_node_crypto76.createHash)("sha256").update(bytes).digest("hex"),
97333
+ sha256: (0, import_node_crypto77.createHash)("sha256").update(bytes).digest("hex"),
97250
97334
  byteLength: bytes.length
97251
97335
  })),
97252
97336
  ...needs && {
@@ -97262,11 +97346,11 @@ function splitSwiftSdkLaterData(directory2, binding, plan) {
97262
97346
  later
97263
97347
  };
97264
97348
  }
97265
- var import_node_crypto76, ADDRESS_REACH, sdkPieces, firstAtOrAfter, pieceAt, LATER_GROUP_BYTES, MAX_LATER_GROUPS, publishedPlans;
97349
+ var import_node_crypto77, ADDRESS_REACH, sdkPieces, firstAtOrAfter, pieceAt, LATER_GROUP_BYTES, MAX_LATER_GROUPS, publishedPlans;
97266
97350
  var init_swift_sdk_later_data = __esm({
97267
97351
  "src/swift-sdk-later-data.ts"() {
97268
97352
  "use strict";
97269
- import_node_crypto76 = require("node:crypto");
97353
+ import_node_crypto77 = require("node:crypto");
97270
97354
  init_nativeSdkBindingContract();
97271
97355
  init_nativeWasmContract();
97272
97356
  init_swift_sdk_image();
@@ -97864,7 +97948,7 @@ function gpuChromeLaunchOptions(opts = {}, runtime = currentRuntime()) {
97864
97948
  async function launchWithPauseAwareDeadline(launch, opts) {
97865
97949
  const budget = typeof opts.timeout === "number" ? opts.timeout : DEFAULT_LAUNCH_TIMEOUT_MS;
97866
97950
  if (budget === 0) return launch(opts);
97867
- const marker = `--peach-launch-id=${(0, import_node_crypto77.randomUUID)()}`;
97951
+ const marker = `--peach-launch-id=${(0, import_node_crypto78.randomUUID)()}`;
97868
97952
  let expired = false;
97869
97953
  const cleanupAttempted = [];
97870
97954
  const lookupFailed = [];
@@ -98021,13 +98105,13 @@ async function launchReapedChrome(launch, opts = {}, rendererTarget, policy = {}
98021
98105
  policy.admission
98022
98106
  );
98023
98107
  }
98024
- var childProcess, import_node_child_process64, import_node_crypto77, fs79, os22, path115, LINUX_CHROME_SCOPE_ENV, discoveredChromePids, discoveredChromeProcesses, reapPids, installed, signalShutdownClaimed, PLAYWRIGHT_DISABLED_FEATURES, PLAYWRIGHT_ENABLED_FEATURES, DISABLED_FEATURES, DEFAULT_LAUNCH_TIMEOUT_MS;
98108
+ var childProcess, import_node_child_process64, import_node_crypto78, fs79, os22, path115, LINUX_CHROME_SCOPE_ENV, discoveredChromePids, discoveredChromeProcesses, reapPids, installed, signalShutdownClaimed, PLAYWRIGHT_DISABLED_FEATURES, PLAYWRIGHT_ENABLED_FEATURES, DISABLED_FEATURES, DEFAULT_LAUNCH_TIMEOUT_MS;
98025
98109
  var init_reap_browser = __esm({
98026
98110
  "src/reap-browser.ts"() {
98027
98111
  "use strict";
98028
98112
  childProcess = __toESM(require("node:child_process"), 1);
98029
98113
  import_node_child_process64 = require("node:child_process");
98030
- import_node_crypto77 = require("node:crypto");
98114
+ import_node_crypto78 = require("node:crypto");
98031
98115
  fs79 = __toESM(require("node:fs"), 1);
98032
98116
  os22 = __toESM(require("node:os"), 1);
98033
98117
  path115 = __toESM(require("node:path"), 1);
@@ -99535,7 +99619,7 @@ async function splitNativeWasm(input, directory2, profile, binaryen, shared, kee
99535
99619
  const part = await guard((0, import_node_path133.join)(directory2, `side-${id}.wasm`), lazy, env);
99536
99620
  const bytes = (0, import_node_fs131.readFileSync)(part.file);
99537
99621
  assertWasmCodeOnly(bytes);
99538
- return { ...part, slots: slots2, sha256: (0, import_node_crypto78.createHash)("sha256").update(bytes).digest("hex") };
99622
+ return { ...part, slots: slots2, sha256: (0, import_node_crypto79.createHash)("sha256").update(bytes).digest("hex") };
99539
99623
  }
99540
99624
  );
99541
99625
  const dyldGroups = parts2.flatMap(
@@ -99603,12 +99687,12 @@ function describePart(file) {
99603
99687
  );
99604
99688
  return { file, functions, byteLength: bytes.byteLength };
99605
99689
  }
99606
- var import_node_child_process66, import_node_crypto78, import_node_fs131, import_node_os27, import_node_path133, import_node_util16, run10, MAX_MODULE_FUNCTIONS, MAX_START_FUNCTIONS, SIDE_FUNCTIONS, SIDE_CODE_BYTES, FEATURES2, featuresOf;
99690
+ var import_node_child_process66, import_node_crypto79, import_node_fs131, import_node_os27, import_node_path133, import_node_util16, run10, MAX_MODULE_FUNCTIONS, MAX_START_FUNCTIONS, SIDE_FUNCTIONS, SIDE_CODE_BYTES, FEATURES2, featuresOf;
99607
99691
  var init_wasm_lazy_split = __esm({
99608
99692
  "src/wasm-lazy-split.ts"() {
99609
99693
  "use strict";
99610
99694
  import_node_child_process66 = require("node:child_process");
99611
- import_node_crypto78 = require("node:crypto");
99695
+ import_node_crypto79 = require("node:crypto");
99612
99696
  import_node_fs131 = require("node:fs");
99613
99697
  import_node_os27 = require("node:os");
99614
99698
  import_node_path133 = require("node:path");
@@ -100045,11 +100129,11 @@ async function bootSwiftPreview(launch, profile) {
100045
100129
  server.close();
100046
100130
  }
100047
100131
  }
100048
- var import_node_crypto79, import_node_fs132, import_node_http3, import_node_https2, import_node_os28, import_node_path134, packageName, guestPath, appPath, profileWindowMs, profileQuietMs, digest2, partDigest, platform;
100132
+ var import_node_crypto80, import_node_fs132, import_node_http3, import_node_https2, import_node_os28, import_node_path134, packageName, guestPath, appPath, profileWindowMs, profileQuietMs, digest2, partDigest, platform;
100049
100133
  var init_swift_startup_split = __esm({
100050
100134
  "src/swift-startup-split.ts"() {
100051
100135
  "use strict";
100052
- import_node_crypto79 = require("node:crypto");
100136
+ import_node_crypto80 = require("node:crypto");
100053
100137
  import_node_fs132 = require("node:fs");
100054
100138
  import_node_http3 = require("node:http");
100055
100139
  import_node_https2 = require("node:https");
@@ -100074,7 +100158,7 @@ var init_swift_startup_split = __esm({
100074
100158
  appPath = "/__peach/swift/startup.wasm";
100075
100159
  profileWindowMs = 3e4;
100076
100160
  profileQuietMs = 2e3;
100077
- digest2 = (bytes) => (0, import_node_crypto79.createHash)("sha256").update(bytes).digest("hex");
100161
+ digest2 = (bytes) => (0, import_node_crypto80.createHash)("sha256").update(bytes).digest("hex");
100078
100162
  partDigest = /^[a-f0-9]{64}$/;
100079
100163
  platform = `${process.platform}-${process.arch}`;
100080
100164
  }
@@ -100118,7 +100202,7 @@ function* filesUnder(absolute) {
100118
100202
  }
100119
100203
  function hashFile(absolutePath) {
100120
100204
  try {
100121
- return (0, import_node_crypto80.createHash)("sha1").update((0, import_node_fs133.readFileSync)(absolutePath)).digest("hex");
100205
+ return (0, import_node_crypto81.createHash)("sha1").update((0, import_node_fs133.readFileSync)(absolutePath)).digest("hex");
100122
100206
  } catch {
100123
100207
  return null;
100124
100208
  }
@@ -100252,11 +100336,11 @@ function findStaleRoutes(monorepoRoot, routes2) {
100252
100336
  }
100253
100337
  return stale;
100254
100338
  }
100255
- var import_node_crypto80, import_node_fs133, import_node_path135, DEV_BUILD_REBUILD_COMMAND, RECORD_DIR, PEACHSIM_ENGINE_INPUTS, ENGINE_SOURCES, ROUTES, STANDALONE_ENGINE_ROUTES, EXCLUDED_DIR_NAMES;
100339
+ var import_node_crypto81, import_node_fs133, import_node_path135, DEV_BUILD_REBUILD_COMMAND, RECORD_DIR, PEACHSIM_ENGINE_INPUTS, ENGINE_SOURCES, ROUTES, STANDALONE_ENGINE_ROUTES, EXCLUDED_DIR_NAMES;
100256
100340
  var init_dev_build_freshness = __esm({
100257
100341
  "cli/dev-build-freshness.ts"() {
100258
100342
  "use strict";
100259
- import_node_crypto80 = require("node:crypto");
100343
+ import_node_crypto81 = require("node:crypto");
100260
100344
  import_node_fs133 = require("node:fs");
100261
100345
  import_node_path135 = require("node:path");
100262
100346
  DEV_BUILD_REBUILD_COMMAND = "bun run build:peach";
@@ -100383,7 +100467,7 @@ function nativeSourceFiles(packagePath) {
100383
100467
  function swiftArtifactContentDigest(bytes) {
100384
100468
  let digest3 = swiftArtifactDigests.get(bytes);
100385
100469
  if (!digest3) {
100386
- digest3 = (0, import_node_crypto81.createHash)("sha256").update(bytes).digest("hex");
100470
+ digest3 = (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex");
100387
100471
  swiftArtifactDigests.set(bytes, digest3);
100388
100472
  }
100389
100473
  return digest3;
@@ -100511,7 +100595,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
100511
100595
  const clang = import_node_path136.default.join(toolchainBin, "clang");
100512
100596
  const empty = (binary2, file) => {
100513
100597
  const source = import_node_path136.default.join(binary2.dir, file);
100514
- const key2 = (0, import_node_crypto81.createHash)("sha256").update(
100598
+ const key2 = (0, import_node_crypto82.createHash)("sha256").update(
100515
100599
  JSON.stringify([
100516
100600
  clang,
100517
100601
  sdk2.sysroot,
@@ -100556,7 +100640,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
100556
100640
  return new Set(portable.flat());
100557
100641
  }
100558
100642
  async function swiftPackages(entry, app) {
100559
- const stamp = (file) => import_node_fs134.default.existsSync(file) ? (0, import_node_crypto81.createHash)("sha256").update(import_node_fs134.default.readFileSync(file)).digest("hex") : null;
100643
+ const stamp = (file) => import_node_fs134.default.existsSync(file) ? (0, import_node_crypto82.createHash)("sha256").update(import_node_fs134.default.readFileSync(file)).digest("hex") : null;
100560
100644
  const owners = [...app.frameworks, app].map((target) => ({
100561
100645
  module: target.moduleName,
100562
100646
  products: target.packageProducts ?? []
@@ -101720,7 +101804,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
101720
101804
  const source = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(
101721
101805
  bytes
101722
101806
  );
101723
- const sha2565 = (0, import_node_crypto81.createHash)("sha256").update(bytes).digest("hex");
101807
+ const sha2565 = (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex");
101724
101808
  const bundle = swiftResourceBundleForFile(bundles, key2);
101725
101809
  if (!bundle && inputs2["Package.swift"])
101726
101810
  throw new Error(`metal source ${key2} has no resource target bundle`);
@@ -101743,7 +101827,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
101743
101827
  const bytes = readPackageFile2(project2.packagePath, disk, limits.imageBytes);
101744
101828
  pdfs.set(file, {
101745
101829
  file: disk,
101746
- sha256: (0, import_node_crypto81.createHash)("sha256").update(bytes).digest("hex")
101830
+ sha256: (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex")
101747
101831
  });
101748
101832
  }
101749
101833
  const pdfRasters = rasterizePdfFiles([...pdfs.values()], limits);
@@ -101789,7 +101873,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
101789
101873
  throw new Error("swift image pack exceeds the compile service caps");
101790
101874
  }
101791
101875
  imageBytes += bytes.length;
101792
- const hash = (0, import_node_crypto81.createHash)("sha256").update(bytes).digest("hex").slice(0, 16);
101876
+ const hash = (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex").slice(0, 16);
101793
101877
  const bundle = table[bundlePath] ?? /* @__PURE__ */ Object.create(null);
101794
101878
  const pixelSize = ext === ".png" ? readPngDimensions(bytes) : null;
101795
101879
  const variant2 = {
@@ -102099,7 +102183,7 @@ function updateSwiftConfigStamp(hash, packagePath) {
102099
102183
  hash.update(JSON.stringify(gates.map((name3) => swiftWasm64PlatformGates[name3])));
102100
102184
  }
102101
102185
  function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
102102
- const hash = (0, import_node_crypto81.createHash)("sha256");
102186
+ const hash = (0, import_node_crypto82.createHash)("sha256");
102103
102187
  hash.update(packagePath);
102104
102188
  updateSwiftConfigStamp(hash, packagePath);
102105
102189
  const libraries = projects().get(packagePath)?.libraries;
@@ -102128,7 +102212,7 @@ function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
102128
102212
  return hash.digest("hex").slice(0, 16);
102129
102213
  }
102130
102214
  function sourceContentStamp(packagePath, moduleRootOverride) {
102131
- const hash = (0, import_node_crypto81.createHash)("sha256");
102215
+ const hash = (0, import_node_crypto82.createHash)("sha256");
102132
102216
  hash.update(compilerSourceDigest);
102133
102217
  updateSwiftConfigStamp(hash, packagePath);
102134
102218
  const libraries = projects().get(packagePath)?.libraries;
@@ -102160,7 +102244,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
102160
102244
  (root) => import_node_fs134.default.existsSync(import_node_path136.default.join(root, "toolchain.json"))
102161
102245
  );
102162
102246
  if (!moduleRoot) return "";
102163
- const hash = (0, import_node_crypto81.createHash)("sha256");
102247
+ const hash = (0, import_node_crypto82.createHash)("sha256");
102164
102248
  hash.update(moduleRoot);
102165
102249
  for (const relative6 of swiftModuleInputFiles(moduleRoot)) {
102166
102250
  hash.update(relative6);
@@ -102170,7 +102254,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
102170
102254
  }
102171
102255
  function otherInputs(input, standalone) {
102172
102256
  const { files: _files, ...rest } = input;
102173
- return (0, import_node_crypto81.createHash)("sha256").update(JSON.stringify({ ...rest, standalone })).digest("hex");
102257
+ return (0, import_node_crypto82.createHash)("sha256").update(JSON.stringify({ ...rest, standalone })).digest("hex");
102174
102258
  }
102175
102259
  function icuUrl(origin, artifact) {
102176
102260
  return "url" in artifact.icu ? artifact.icu.url : `${origin}${ICU_PATH}${swiftIcuAddress(artifact.icu)}`;
@@ -102185,7 +102269,7 @@ function standinLibraries(binaries, standins, rootDir, toolchain, rustWasm64) {
102185
102269
  for (const standin of standins) {
102186
102270
  if (!standin.prebuilt) continue;
102187
102271
  const bytes = Buffer.from(standin.prebuilt.library, "base64");
102188
- const digest3 = (0, import_node_crypto81.createHash)("sha256").update(bytes).digest("hex");
102272
+ const digest3 = (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex");
102189
102273
  const dir = import_node_path136.default.join(swiftCacheDir(), "native-archives", digest3);
102190
102274
  import_node_fs134.default.mkdirSync(dir, { recursive: true });
102191
102275
  const library = import_node_path136.default.join(dir, `lib${standin.module}.a`);
@@ -102534,7 +102618,7 @@ function swiftBuildRoot(packagePath, moduleRoot) {
102534
102618
  return import_node_path136.default.join(
102535
102619
  swiftCacheDir(),
102536
102620
  "swift-builds",
102537
- (0, import_node_crypto81.createHash)("sha256").update(`${compilerKey}\0${buildKeyPath}`).digest("hex").slice(0, 16)
102621
+ (0, import_node_crypto82.createHash)("sha256").update(`${compilerKey}\0${buildKeyPath}`).digest("hex").slice(0, 16)
102538
102622
  );
102539
102623
  }
102540
102624
  function installedWorkspaceInput(packagePath, entry, moduleRoot) {
@@ -102835,7 +102919,7 @@ async function fetchSwiftDyldTable(moduleUrl, module2, signal) {
102835
102919
  const response = await fetch(url, { signal });
102836
102920
  if (!response.ok) throw new Error(`swift compile: ${url} answered ${response.status}`);
102837
102921
  const bytes = Buffer.from(await response.arrayBuffer());
102838
- if (bytes.length !== byteLength || (0, import_node_crypto81.createHash)("sha256").update(bytes).digest("hex") !== sha2565)
102922
+ if (bytes.length !== byteLength || (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex") !== sha2565)
102839
102923
  throw new Error(`swift compile: ${url} does not match its module's index`);
102840
102924
  return { dyldTable: { sha256: sha2565, bytes } };
102841
102925
  }
@@ -103098,10 +103182,10 @@ async function splitSdkBinding(sdk2, splitKey, plan) {
103098
103182
  sdk2.binding.bytes,
103099
103183
  plan
103100
103184
  );
103101
- const digest3 = (0, import_node_crypto81.createHash)("sha256").update(split.binding).digest("hex");
103185
+ const digest3 = (0, import_node_crypto82.createHash)("sha256").update(split.binding).digest("hex");
103102
103186
  sdkBindingFiles.set(digest3, split.binding);
103103
103187
  for (const later of split.later)
103104
- sdkBindingFiles.set((0, import_node_crypto81.createHash)("sha256").update(later).digest("hex"), later);
103188
+ sdkBindingFiles.set((0, import_node_crypto82.createHash)("sha256").update(later).digest("hex"), later);
103105
103189
  sdkSplitBindings.set(key2, digest3);
103106
103190
  }
103107
103191
  function swiftCodePartAssets(origin, appParts, sdkDigest) {
@@ -103168,7 +103252,7 @@ function swiftSdkEntryAssets(origin, image, sdkDigest = image.sdk?.sha256) {
103168
103252
  function swiftSdkStartup(sdk2, packagePath, artifactHash, metadata, launch, runtimeRootOverride) {
103169
103253
  const { key: key2 } = sdk2;
103170
103254
  const normalizedPackage = normalizedSwiftPackagePath(packagePath);
103171
- const app = (0, import_node_crypto81.createHash)("sha256").update(
103255
+ const app = (0, import_node_crypto82.createHash)("sha256").update(
103172
103256
  JSON.stringify([
103173
103257
  normalizedPackage,
103174
103258
  launch.environment,
@@ -103200,7 +103284,7 @@ function swiftSdkStartup(sdk2, packagePath, artifactHash, metadata, launch, runt
103200
103284
  },
103201
103285
  app
103202
103286
  );
103203
- const name3 = (0, import_node_crypto81.createHash)("sha256").update(split.primary).digest("hex");
103287
+ const name3 = (0, import_node_crypto82.createHash)("sha256").update(split.primary).digest("hex");
103204
103288
  sdkPieces2.set(name3, split.primary);
103205
103289
  for (const [digest3, bytes] of split.parts) sdkPieces2.set(digest3, bytes);
103206
103290
  sdkStartupParts.set(name3, split.parts);
@@ -103374,13 +103458,13 @@ async function serveSwiftPackageAsset(pathname, res) {
103374
103458
  res.end("swift artifact is stale");
103375
103459
  return true;
103376
103460
  }
103377
- var import_node_async_hooks2, import_node_child_process67, import_node_crypto81, import_node_fs134, import_node_os29, import_node_path136, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SDK_PATH, SDK_BINDING_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, startupImages, swiftArtifactDigests, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, emptyWasmAssembly, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS, sdkStartups, sdkStartupParts, sdkStartupPlans, sdkPieces2, sdkSplitBindings, sdkBindingFiles, servedSdkBinding;
103461
+ var import_node_async_hooks2, import_node_child_process67, import_node_crypto82, import_node_fs134, import_node_os29, import_node_path136, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SDK_PATH, SDK_BINDING_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, startupImages, swiftArtifactDigests, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, emptyWasmAssembly, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS, sdkStartups, sdkStartupParts, sdkStartupPlans, sdkPieces2, sdkSplitBindings, sdkBindingFiles, servedSdkBinding;
103378
103462
  var init_swift_host = __esm({
103379
103463
  "src/swift-host.ts"() {
103380
103464
  "use strict";
103381
103465
  import_node_async_hooks2 = require("node:async_hooks");
103382
103466
  import_node_child_process67 = require("node:child_process");
103383
- import_node_crypto81 = require("node:crypto");
103467
+ import_node_crypto82 = require("node:crypto");
103384
103468
  import_node_fs134 = __toESM(require("node:fs"), 1);
103385
103469
  import_node_os29 = __toESM(require("node:os"), 1);
103386
103470
  import_node_path136 = __toESM(require("node:path"), 1);
@@ -104139,7 +104223,7 @@ function hashTree(root) {
104139
104223
  for (const entry of import_node_fs137.default.readdirSync(root, { recursive: true, withFileTypes: true })) {
104140
104224
  if (!entry.isFile()) continue;
104141
104225
  const file = import_node_path139.default.join(entry.parentPath, entry.name);
104142
- hashes[import_node_path139.default.relative(root, file).split(import_node_path139.default.sep).join("/")] = (0, import_node_crypto82.createHash)("sha256").update(import_node_fs137.default.readFileSync(file)).digest("hex");
104226
+ hashes[import_node_path139.default.relative(root, file).split(import_node_path139.default.sep).join("/")] = (0, import_node_crypto83.createHash)("sha256").update(import_node_fs137.default.readFileSync(file)).digest("hex");
104143
104227
  }
104144
104228
  return Object.fromEntries(Object.entries(hashes).sort(([a], [b]) => a < b ? -1 : 1));
104145
104229
  }
@@ -104189,12 +104273,12 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
104189
104273
  files: hashTree(generatedRoot)
104190
104274
  };
104191
104275
  }
104192
- var import_node_child_process68, import_node_crypto82, import_node_fs137, import_node_module17, import_node_path139, import_node_util17, run11, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
104276
+ var import_node_child_process68, import_node_crypto83, import_node_fs137, import_node_module17, import_node_path139, import_node_util17, run11, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
104193
104277
  var init_turbo_codegen_intake = __esm({
104194
104278
  "src/turbo-codegen-intake.ts"() {
104195
104279
  "use strict";
104196
104280
  import_node_child_process68 = require("node:child_process");
104197
- import_node_crypto82 = require("node:crypto");
104281
+ import_node_crypto83 = require("node:crypto");
104198
104282
  import_node_fs137 = __toESM(require("node:fs"), 1);
104199
104283
  import_node_module17 = require("node:module");
104200
104284
  import_node_path139 = __toESM(require("node:path"), 1);
@@ -108145,11 +108229,11 @@ extern "C" __attribute__((export_name("peach_fabric_component_names"))) const ch
108145
108229
  }
108146
108230
  `;
108147
108231
  }
108148
- var import_node_crypto83, import_node_fs138, import_node_path140, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER5, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, DECLARED_MODULE_NAME, EXPORTED_MODULE, sha2564, podspecList, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_HOST_INCLUDES, FABRIC_HOST_PAPER_INCLUDES, PAPER_UIKIT_BRIDGE_SWIFT;
108232
+ var import_node_crypto84, import_node_fs138, import_node_path140, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER5, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, DECLARED_MODULE_NAME, EXPORTED_MODULE, sha2564, podspecList, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_HOST_INCLUDES, FABRIC_HOST_PAPER_INCLUDES, PAPER_UIKIT_BRIDGE_SWIFT;
108149
108233
  var init_turbo_source = __esm({
108150
108234
  "src/turbo-source.ts"() {
108151
108235
  "use strict";
108152
- import_node_crypto83 = require("node:crypto");
108236
+ import_node_crypto84 = require("node:crypto");
108153
108237
  import_node_fs138 = __toESM(require("node:fs"), 1);
108154
108238
  import_node_path140 = __toESM(require("node:path"), 1);
108155
108239
  init_cocoapods_trunk();
@@ -108277,7 +108361,7 @@ var init_turbo_source = __esm({
108277
108361
  ];
108278
108362
  DECLARED_MODULE_NAME = /\bName\(\s*"(\w+)"\s*\)/g;
108279
108363
  EXPORTED_MODULE = /\bRCT_(?:EXPORT_MODULE(?:_NO_LOAD)?|EXTERN_MODULE)\s*\(\s*(\w*)/g;
108280
- sha2564 = (data) => (0, import_node_crypto83.createHash)("sha256").update(data).digest("hex");
108364
+ sha2564 = (data) => (0, import_node_crypto84.createHash)("sha256").update(data).digest("hex");
108281
108365
  podspecList = podspecAttribute;
108282
108366
  versionParts = (version2) => version2.split(/[.-]/).map((p) => Number(p) || 0);
108283
108367
  iosOf = (member) => object7(member.ios) ? member.ios : null;
@@ -109077,7 +109161,7 @@ function retainInstalledReactNativeDeclarations(snapshot, options2, skipped) {
109077
109161
  }
109078
109162
  async function prepareTurboCompileInput(options2) {
109079
109163
  await prepareTurboSourceDependencies(options2.reactNativeRoot);
109080
- const key2 = (0, import_node_crypto84.createHash)("sha256").update(options2.providers.map(({ root }) => import_node_fs139.default.realpathSync(root)).join("\0")).update("\0").update(import_node_fs139.default.realpathSync(options2.moduleRoot)).digest("hex");
109164
+ const key2 = (0, import_node_crypto85.createHash)("sha256").update(options2.providers.map(({ root }) => import_node_fs139.default.realpathSync(root)).join("\0")).update("\0").update(import_node_fs139.default.realpathSync(options2.moduleRoot)).digest("hex");
109081
109165
  const scratch2 = import_node_path141.default.join(import_node_os30.default.tmpdir(), "peach-turbo-swift", key2);
109082
109166
  import_node_fs139.default.mkdirSync(scratch2, { recursive: true });
109083
109167
  const codegenDir = import_node_fs139.default.mkdtempSync(import_node_path141.default.join(scratch2, "codegen-"));
@@ -109278,11 +109362,11 @@ async function compileTurboModule(options2) {
109278
109362
  collection
109279
109363
  };
109280
109364
  }
109281
- var import_node_crypto84, import_node_fs139, import_node_module18, import_node_os30, import_node_path141;
109365
+ var import_node_crypto85, import_node_fs139, import_node_module18, import_node_os30, import_node_path141;
109282
109366
  var init_turbo_compile = __esm({
109283
109367
  "src/turbo-compile.ts"() {
109284
109368
  "use strict";
109285
- import_node_crypto84 = require("node:crypto");
109369
+ import_node_crypto85 = require("node:crypto");
109286
109370
  import_node_fs139 = __toESM(require("node:fs"), 1);
109287
109371
  import_node_module18 = require("node:module");
109288
109372
  import_node_os30 = __toESM(require("node:os"), 1);
@@ -109310,7 +109394,18 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
109310
109394
  const entry = reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode);
109311
109395
  const directory2 = nativeEntryCache("react-native", entry.name, entry.key);
109312
109396
  const work = import_node_path142.default.join(cacheDir(), "react-native-core-build", entry.key);
109313
- return withSwiftRootLock(work, async () => {
109397
+ const {
109398
+ compiler: _compiler,
109399
+ distribution: _distribution,
109400
+ recipe: _recipe,
109401
+ ...nativeInputs
109402
+ } = entry.inputs;
109403
+ const buildRoot = import_node_path142.default.join(
109404
+ cacheDir(),
109405
+ "react-native-core-products",
109406
+ nativeEntryKey(nativeInputs)
109407
+ );
109408
+ return withSwiftRootLock(`${buildRoot}.core-lock`, async () => {
109314
109409
  if (import_node_fs140.default.existsSync(import_node_path142.default.join(directory2, "descriptor.json"))) return directory2;
109315
109410
  const module2 = { root: moduleRoot, ...swiftModuleToolchain(moduleRoot) };
109316
109411
  const floor = reactNativeCoreFloor(reactNativeRoot);
@@ -109347,17 +109442,6 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
109347
109442
  }
109348
109443
  const input = collectTurboCompileInput(producer, null, floor);
109349
109444
  input.files[input.entry] = input.entry.endsWith(".swift") ? "@main struct PeachCoreProducer { static func main() {} }\n" : "int main() { return 0; }\n";
109350
- const {
109351
- compiler: _compiler,
109352
- distribution: _distribution,
109353
- recipe: _recipe,
109354
- ...nativeInputs
109355
- } = entry.inputs;
109356
- const buildRoot = import_node_path142.default.join(
109357
- cacheDir(),
109358
- "react-native-core-products",
109359
- nativeEntryKey(nativeInputs)
109360
- );
109361
109445
  await compileSwiftProjectUnit(input, {
109362
109446
  ...module2,
109363
109447
  moduleRoot: module2.root,
@@ -109499,8 +109583,8 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
109499
109583
  );
109500
109584
  if (!isRecord(manifest) || typeof manifest.version !== "string")
109501
109585
  throw new Error(`${reactNativeRoot}: react-native has no version`);
109502
- const headers = (0, import_node_crypto85.createHash)("sha256");
109503
- const sources = (0, import_node_crypto85.createHash)("sha256");
109586
+ const headers = (0, import_node_crypto86.createHash)("sha256");
109587
+ const sources = (0, import_node_crypto86.createHash)("sha256");
109504
109588
  const walk4 = (relative6) => {
109505
109589
  for (const file of import_node_fs141.default.readdirSync(import_node_path143.default.join(reactNativeRoot, relative6), { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
109506
109590
  if (file.name === "node_modules" || file.name.startsWith(".")) continue;
@@ -109528,7 +109612,7 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
109528
109612
  "react-native": manifest.version,
109529
109613
  headers: headers.digest("hex"),
109530
109614
  sources: sources.digest("hex"),
109531
- compiler: compilerSourceDigest,
109615
+ compiler: swiftArchiveCompilerDigestValue(),
109532
109616
  recipe,
109533
109617
  mode,
109534
109618
  "ios-deployment-target": reactNativeCoreFloor(reactNativeRoot),
@@ -109607,7 +109691,7 @@ function linkReactNativeCore(collection, core, moduleRoot) {
109607
109691
  const file = import_node_path143.default.join(
109608
109692
  cacheDir(),
109609
109693
  "native-archives",
109610
- `${(0, import_node_crypto85.createHash)("sha256").update(data).digest("hex")}.a`
109694
+ `${(0, import_node_crypto86.createHash)("sha256").update(data).digest("hex")}.a`
109611
109695
  );
109612
109696
  import_node_fs141.default.mkdirSync(import_node_path143.default.dirname(file), { recursive: true });
109613
109697
  if (!import_node_fs141.default.existsSync(file)) import_node_fs141.default.writeFileSync(file, Buffer.from(data, "base64"));
@@ -109617,11 +109701,11 @@ function linkReactNativeCore(collection, core, moduleRoot) {
109617
109701
  }
109618
109702
  }
109619
109703
  }
109620
- var import_node_crypto85, import_node_fs141, import_node_module19, import_node_path143, import_node_util18, recipe, strings4, building;
109704
+ var import_node_crypto86, import_node_fs141, import_node_module19, import_node_path143, import_node_util18, recipe, strings4, building;
109621
109705
  var init_react_native_core = __esm({
109622
109706
  "src/react-native-core.ts"() {
109623
109707
  "use strict";
109624
- import_node_crypto85 = require("node:crypto");
109708
+ import_node_crypto86 = require("node:crypto");
109625
109709
  import_node_fs141 = __toESM(require("node:fs"), 1);
109626
109710
  import_node_module19 = require("node:module");
109627
109711
  import_node_path143 = __toESM(require("node:path"), 1);
@@ -109632,10 +109716,11 @@ var init_react_native_core = __esm({
109632
109716
  init_native_static_libraries();
109633
109717
  init_react_native_core_digest();
109634
109718
  init_swift_compile();
109719
+ init_swift_compiler_digest();
109635
109720
  init_swift_distribution();
109636
109721
  init_swift_package();
109637
109722
  init_swiftContract();
109638
- recipe = true ? "2aeec225b2e550246cadee239c032b7a9c5d2c76cede0e14057cc26a48f9acff" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
109723
+ recipe = true ? "737e4942681b979bd94d697440cd3fc71975f9bb732444bd4e08d57dd493e833" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
109639
109724
  strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
109640
109725
  building = /* @__PURE__ */ new Map();
109641
109726
  }
@@ -109646,7 +109731,7 @@ function exportedNames(moduleRoot, name3) {
109646
109731
  const modules = import_node_path144.default.join(moduleRoot, "modules");
109647
109732
  const module2 = import_node_path144.default.join(modules, `${name3}.swiftmodule`);
109648
109733
  if (!import_node_fs142.default.existsSync(module2)) return /* @__PURE__ */ new Set();
109649
- const key2 = (0, import_node_crypto86.createHash)("sha256").update(import_node_fs142.default.readFileSync(module2)).digest("hex");
109734
+ const key2 = (0, import_node_crypto87.createHash)("sha256").update(import_node_fs142.default.readFileSync(module2)).digest("hex");
109650
109735
  const directory2 = import_node_path144.default.join(swiftCacheDir(), "swift-public-names");
109651
109736
  const receipt = import_node_path144.default.join(directory2, `${key2}.json`);
109652
109737
  if (import_node_fs142.default.existsSync(receipt)) {
@@ -109729,12 +109814,12 @@ function clangTypeOwnership(moduleRoot, module2) {
109729
109814
  }
109730
109815
  );
109731
109816
  }
109732
- var import_node_child_process70, import_node_crypto86, import_node_fs142, import_node_path144, blockTypedef, enumTypedef, enumConstant, swiftPrivate;
109817
+ var import_node_child_process70, import_node_crypto87, import_node_fs142, import_node_path144, blockTypedef, enumTypedef, enumConstant, swiftPrivate;
109733
109818
  var init_swift_clang_type_ownership = __esm({
109734
109819
  "src/swift-clang-type-ownership.ts"() {
109735
109820
  "use strict";
109736
109821
  import_node_child_process70 = require("node:child_process");
109737
- import_node_crypto86 = require("node:crypto");
109822
+ import_node_crypto87 = require("node:crypto");
109738
109823
  import_node_fs142 = __toESM(require("node:fs"), 1);
109739
109824
  import_node_path144 = __toESM(require("node:path"), 1);
109740
109825
  init_is_record();
@@ -111389,7 +111474,7 @@ function targetSettings2(units) {
111389
111474
  }
111390
111475
  function oneSDKStamp(oneSDK) {
111391
111476
  if (!oneSDK) return "";
111392
- const hash = (0, import_node_crypto87.createHash)("sha256");
111477
+ const hash = (0, import_node_crypto88.createHash)("sha256");
111393
111478
  for (const files2 of [oneSDK.targets, oneSDK.entry])
111394
111479
  for (const [name3, source] of [...files2].sort(([a], [b]) => a.localeCompare(b)))
111395
111480
  hash.update(`${name3}\0${source}\0`);
@@ -111440,7 +111525,7 @@ ${bridgeModules.length ? "import React\n" : ""}${oneSDK ? "import One\nimport On
111440
111525
  `;
111441
111526
  }
111442
111527
  function expoSwiftPreparedKey(base2, units, reactProviderStamp) {
111443
- const hash = (0, import_node_crypto87.createHash)("sha256");
111528
+ const hash = (0, import_node_crypto88.createHash)("sha256");
111444
111529
  hash.update(base2);
111445
111530
  hash.update(reactProviderStamp);
111446
111531
  for (const unit2 of units) {
@@ -111814,8 +111899,8 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
111814
111899
  }
111815
111900
  return provider;
111816
111901
  })() : void 0;
111817
- const reactProviderStamp = reactProvider ? (0, import_node_crypto87.createHash)("sha256").update(JSON.stringify(reactProvider)).digest("hex") : "";
111818
- const key2 = (0, import_node_crypto87.createHash)("sha256").update(import_node_fs143.default.realpathSync(root)).digest("hex");
111902
+ const reactProviderStamp = reactProvider ? (0, import_node_crypto88.createHash)("sha256").update(JSON.stringify(reactProvider)).digest("hex") : "";
111903
+ const key2 = (0, import_node_crypto88.createHash)("sha256").update(import_node_fs143.default.realpathSync(root)).digest("hex");
111819
111904
  const unitContentStamp = (unit2) => sourceContentStamp(expoSwiftPackage(key2, unit2.moduleId), module2.root) + (unit2.reactNativeProvider ? `:${reactProviderStamp}` : "");
111820
111905
  const failures = /* @__PURE__ */ new Map();
111821
111906
  const failureRecords = /* @__PURE__ */ new Map();
@@ -112257,13 +112342,13 @@ ${diagnostics}`}`
112257
112342
  }
112258
112343
  return true;
112259
112344
  }
112260
- var import_node_async_hooks3, import_node_child_process71, import_node_crypto87, import_node_fs143, import_node_module20, import_node_os31, import_node_path145, import_node_url7, import_node_util19, run12, scriptEnv, EXPO_SWIFT_ROUTE, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, EXPO_MODULE_SCAN_TIMEOUT_MS, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
112345
+ var import_node_async_hooks3, import_node_child_process71, import_node_crypto88, import_node_fs143, import_node_module20, import_node_os31, import_node_path145, import_node_url7, import_node_util19, run12, scriptEnv, EXPO_SWIFT_ROUTE, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, EXPO_MODULE_SCAN_TIMEOUT_MS, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
112261
112346
  var init_expo_swift_host = __esm({
112262
112347
  "src/expo-swift-host.ts"() {
112263
112348
  "use strict";
112264
112349
  import_node_async_hooks3 = require("node:async_hooks");
112265
112350
  import_node_child_process71 = require("node:child_process");
112266
- import_node_crypto87 = require("node:crypto");
112351
+ import_node_crypto88 = require("node:crypto");
112267
112352
  import_node_fs143 = __toESM(require("node:fs"), 1);
112268
112353
  import_node_module20 = require("node:module");
112269
112354
  import_node_os31 = __toESM(require("node:os"), 1);
@@ -116188,10 +116273,10 @@ function stageHostBytes(bytes, origin, extension = "") {
116188
116273
  }
116189
116274
  async function stageHostDerivedBytes(input, producer, origin, extension, derive) {
116190
116275
  const directory2 = prepareStagedDirectory();
116191
- const inputDigest = (0, import_node_crypto89.createHash)("sha256").update(input).digest("hex");
116276
+ const inputDigest = (0, import_node_crypto90.createHash)("sha256").update(input).digest("hex");
116192
116277
  const index = import_node_path153.default.join(
116193
116278
  directory2,
116194
- `derived-${(0, import_node_crypto89.createHash)("sha256").update(`${producer}\0${inputDigest}`).digest("hex")}`
116279
+ `derived-${(0, import_node_crypto90.createHash)("sha256").update(`${producer}\0${inputDigest}`).digest("hex")}`
116195
116280
  );
116196
116281
  const recorded = import_node_fs151.default.existsSync(index) ? import_node_fs151.default.readFileSync(index, "utf8") : "";
116197
116282
  if (STAGED_NAME.test(recorded) && import_node_fs151.default.existsSync(import_node_path153.default.join(directory2, recorded))) {
@@ -116202,7 +116287,7 @@ async function stageHostDerivedBytes(input, producer, origin, extension, derive)
116202
116287
  return new URL(STAGED_PREFIX + recorded, origin).toString();
116203
116288
  }
116204
116289
  const staged = writeStagedBytes(await derive(), origin, extension, directory2);
116205
- const temporary = import_node_path153.default.join(directory2, (0, import_node_crypto89.randomUUID)());
116290
+ const temporary = import_node_path153.default.join(directory2, (0, import_node_crypto90.randomUUID)());
116206
116291
  try {
116207
116292
  import_node_fs151.default.writeFileSync(temporary, new URL(staged).pathname.slice(STAGED_PREFIX.length), {
116208
116293
  flag: "wx"
@@ -116221,7 +116306,7 @@ function metroIndexName(url) {
116221
116306
  url.searchParams.get("unstable_path"),
116222
116307
  hashes[0]
116223
116308
  ]);
116224
- return `metro-${(0, import_node_crypto89.createHash)("sha256").update(key2).digest("hex")}`;
116309
+ return `metro-${(0, import_node_crypto90.createHash)("sha256").update(key2).digest("hex")}`;
116225
116310
  }
116226
116311
  function metroRequestIndex(rawUrl) {
116227
116312
  if (!rawUrl?.startsWith("/") || rawUrl.startsWith("//")) return null;
@@ -116249,7 +116334,7 @@ function prepareStagedDirectory() {
116249
116334
  return directory2;
116250
116335
  }
116251
116336
  function writeStagedBytes(bytes, origin, extension, directory2) {
116252
- const digest3 = (0, import_node_crypto89.createHash)("sha256").update(bytes).digest("hex");
116337
+ const digest3 = (0, import_node_crypto90.createHash)("sha256").update(bytes).digest("hex");
116253
116338
  extension = extension.toLowerCase();
116254
116339
  const name3 = STAGED_NAME.test(digest3 + extension) ? digest3 + extension : digest3;
116255
116340
  stagedCapture.getStore()?.add(name3);
@@ -116258,7 +116343,7 @@ function writeStagedBytes(bytes, origin, extension, directory2) {
116258
116343
  if (import_node_fs151.default.existsSync(destination)) {
116259
116344
  import_node_fs151.default.utimesSync(destination, new Date(now), new Date(now));
116260
116345
  } else {
116261
- const temporary = import_node_path153.default.join(directory2, (0, import_node_crypto89.randomUUID)());
116346
+ const temporary = import_node_path153.default.join(directory2, (0, import_node_crypto90.randomUUID)());
116262
116347
  try {
116263
116348
  import_node_fs151.default.writeFileSync(temporary, bytes, { flag: "wx" });
116264
116349
  import_node_fs151.default.renameSync(temporary, destination);
@@ -116330,12 +116415,12 @@ async function handleStagedHostFileRequest(req, res) {
116330
116415
  throw error;
116331
116416
  }
116332
116417
  }
116333
- var import_node_async_hooks4, import_node_crypto89, import_node_fs151, import_node_path153, stagedCapture, STAGED_PREFIX, STAGED_NAME, METRO_INDEX_NAME, STAGED_RETENTION_MS;
116418
+ var import_node_async_hooks4, import_node_crypto90, import_node_fs151, import_node_path153, stagedCapture, STAGED_PREFIX, STAGED_NAME, METRO_INDEX_NAME, STAGED_RETENTION_MS;
116334
116419
  var init_staged_host_files = __esm({
116335
116420
  "src/host/staged-host-files.ts"() {
116336
116421
  "use strict";
116337
116422
  import_node_async_hooks4 = require("node:async_hooks");
116338
- import_node_crypto89 = require("node:crypto");
116423
+ import_node_crypto90 = require("node:crypto");
116339
116424
  import_node_fs151 = __toESM(require("node:fs"), 1);
116340
116425
  import_node_path153 = __toESM(require("node:path"), 1);
116341
116426
  init_uttype_mime();
@@ -117224,7 +117309,7 @@ async function oneNativeControlsPackage(appRoot, linkedGroups, sdk2) {
117224
117309
  ""
117225
117310
  ].join("\n");
117226
117311
  }
117227
- const digest3 = (0, import_node_crypto90.createHash)("sha256").update(manifest);
117312
+ const digest3 = (0, import_node_crypto91.createHash)("sha256").update(manifest);
117228
117313
  for (const [name3, source] of files2)
117229
117314
  digest3.update(name3).update("\0").update(source).update("\0");
117230
117315
  const key2 = digest3.digest("hex").slice(0, 16);
@@ -117246,11 +117331,11 @@ async function oneNativeControlsPackage(appRoot, linkedGroups, sdk2) {
117246
117331
  oneSDKModules: bindings && [...bindings.modules]
117247
117332
  };
117248
117333
  }
117249
- var import_node_crypto90, import_node_fs153, import_node_module21, import_node_path155, import_node_url8, ONE_SDK_DEFINES, BRIDGE_SWIFT, ONE_SDK_RUNTIME_SOURCES;
117334
+ var import_node_crypto91, import_node_fs153, import_node_module21, import_node_path155, import_node_url8, ONE_SDK_DEFINES, BRIDGE_SWIFT, ONE_SDK_RUNTIME_SOURCES;
117250
117335
  var init_one_native_controls_package = __esm({
117251
117336
  "src/one-native-controls-package.ts"() {
117252
117337
  "use strict";
117253
- import_node_crypto90 = require("node:crypto");
117338
+ import_node_crypto91 = require("node:crypto");
117254
117339
  import_node_fs153 = __toESM(require("node:fs"), 1);
117255
117340
  import_node_module21 = require("node:module");
117256
117341
  import_node_path155 = __toESM(require("node:path"), 1);
@@ -118488,7 +118573,7 @@ async function readOneWidgetSources(appRoot) {
118488
118573
  if (!Buffer.from(text7).equals(bytes))
118489
118574
  throw new Error(`One widget prebuild source is not UTF-8: ${file}`);
118490
118575
  files2.set(name3, text7);
118491
- sources[import_node_path157.default.relative(root, file).split(import_node_path157.default.sep).join("/")] = (0, import_node_crypto91.createHash)("sha256").update(bytes).digest("hex");
118576
+ sources[import_node_path157.default.relative(root, file).split(import_node_path157.default.sep).join("/")] = (0, import_node_crypto92.createHash)("sha256").update(bytes).digest("hex");
118492
118577
  }
118493
118578
  const contract = files2.get("OneWidgetContract.swift") ?? "";
118494
118579
  const source = files2.get("OneWidget.swift") ?? "";
@@ -118512,17 +118597,17 @@ async function configuredOneWidget(appRoot, bundleUrl, packageUrl) {
118512
118597
  return {
118513
118598
  metadata: source.widget,
118514
118599
  projectRoot: source.root,
118515
- appIdentity: (0, import_node_crypto91.createHash)("sha256").update(JSON.stringify([source.root, source.widget.bundleId])).digest("hex"),
118600
+ appIdentity: (0, import_node_crypto92.createHash)("sha256").update(JSON.stringify([source.root, source.widget.bundleId])).digest("hex"),
118516
118601
  bundleUrl,
118517
118602
  packageUrl,
118518
118603
  urlSchemes: source.urlSchemes
118519
118604
  };
118520
118605
  }
118521
- var import_node_crypto91, import_node_fs155, import_node_path157, ONE_WIDGET_PACKAGE, nonEmpty;
118606
+ var import_node_crypto92, import_node_fs155, import_node_path157, ONE_WIDGET_PACKAGE, nonEmpty;
118522
118607
  var init_one_widget_metadata = __esm({
118523
118608
  "src/one-widget-metadata.ts"() {
118524
118609
  "use strict";
118525
- import_node_crypto91 = require("node:crypto");
118610
+ import_node_crypto92 = require("node:crypto");
118526
118611
  import_node_fs155 = __toESM(require("node:fs"), 1);
118527
118612
  import_node_path157 = __toESM(require("node:path"), 1);
118528
118613
  init_is_record();
@@ -118556,7 +118641,7 @@ async function oneWidgetPackage(appRoot) {
118556
118641
  const packagePath = import_node_path158.default.join(
118557
118642
  import_node_os33.default.tmpdir(),
118558
118643
  "peach-one-widgets",
118559
- (0, import_node_crypto92.createHash)("sha256").update(root).digest("hex"),
118644
+ (0, import_node_crypto93.createHash)("sha256").update(root).digest("hex"),
118560
118645
  ONE_WIDGET_PACKAGE
118561
118646
  );
118562
118647
  import_node_fs156.default.mkdirSync(packagePath, { recursive: true });
@@ -118570,11 +118655,11 @@ async function oneWidgetPackage(appRoot) {
118570
118655
  widget
118571
118656
  };
118572
118657
  }
118573
- var import_node_crypto92, import_node_fs156, import_node_os33, import_node_path158;
118658
+ var import_node_crypto93, import_node_fs156, import_node_os33, import_node_path158;
118574
118659
  var init_one_widget_package = __esm({
118575
118660
  "src/one-widget-package.ts"() {
118576
118661
  "use strict";
118577
- import_node_crypto92 = require("node:crypto");
118662
+ import_node_crypto93 = require("node:crypto");
118578
118663
  import_node_fs156 = __toESM(require("node:fs"), 1);
118579
118664
  import_node_os33 = __toESM(require("node:os"), 1);
118580
118665
  import_node_path158 = __toESM(require("node:path"), 1);
@@ -118790,7 +118875,7 @@ var init_android_view_classes = __esm({
118790
118875
 
118791
118876
  // src/java-module-abi.ts
118792
118877
  async function readJavaModuleSpecs(files2, sdkRoot, toolchain) {
118793
- const digest3 = (0, import_node_crypto93.createHash)("sha256");
118878
+ const digest3 = (0, import_node_crypto94.createHash)("sha256");
118794
118879
  const parent = import_node_path160.default.join(kotlinHome(), "java-specs");
118795
118880
  import_node_fs158.default.mkdirSync(parent, { recursive: true });
118796
118881
  const work = import_node_fs158.default.mkdtempSync(import_node_path160.default.join(parent, ".read-"));
@@ -118887,12 +118972,12 @@ async function compileJavaModuleAbi(input) {
118887
118972
  );
118888
118973
  return library;
118889
118974
  }
118890
- var import_node_child_process74, import_node_crypto93, import_node_fs158, import_node_path160, import_node_util20, run13, JAVA_BINDINGS_INITIALIZER;
118975
+ var import_node_child_process74, import_node_crypto94, import_node_fs158, import_node_path160, import_node_util20, run13, JAVA_BINDINGS_INITIALIZER;
118891
118976
  var init_java_module_abi = __esm({
118892
118977
  "src/java-module-abi.ts"() {
118893
118978
  "use strict";
118894
118979
  import_node_child_process74 = require("node:child_process");
118895
- import_node_crypto93 = require("node:crypto");
118980
+ import_node_crypto94 = require("node:crypto");
118896
118981
  import_node_fs158 = __toESM(require("node:fs"), 1);
118897
118982
  import_node_path160 = __toESM(require("node:path"), 1);
118898
118983
  import_node_util20 = require("node:util");
@@ -119220,7 +119305,7 @@ function zipSources(bytes, where) {
119220
119305
  return entries2;
119221
119306
  }
119222
119307
  function extract(bytes, where) {
119223
- const key2 = (0, import_node_crypto94.createHash)("sha256").update(bytes).digest("hex");
119308
+ const key2 = (0, import_node_crypto95.createHash)("sha256").update(bytes).digest("hex");
119224
119309
  const cached4 = pending.get(key2);
119225
119310
  if (cached4) return cached4;
119226
119311
  const request = (async () => {
@@ -119269,11 +119354,11 @@ function readSourcesJar(archive, where) {
119269
119354
  function readMavenSourcesArchive(archive) {
119270
119355
  return extract(readSourcesJar(archive, archive), archive);
119271
119356
  }
119272
- var import_node_crypto94, import_node_fs160, import_node_os34, import_node_path162, import_node_zlib9, pending, MAX_SOURCES_JAR_BYTES, MAX_SOURCE_ENTRY_BYTES, MAX_TOTAL_EXTRACTED_BYTES;
119357
+ var import_node_crypto95, import_node_fs160, import_node_os34, import_node_path162, import_node_zlib9, pending, MAX_SOURCES_JAR_BYTES, MAX_SOURCE_ENTRY_BYTES, MAX_TOTAL_EXTRACTED_BYTES;
119273
119358
  var init_kotlin_maven_sources = __esm({
119274
119359
  "src/kotlin-maven-sources.ts"() {
119275
119360
  "use strict";
119276
- import_node_crypto94 = require("node:crypto");
119361
+ import_node_crypto95 = require("node:crypto");
119277
119362
  import_node_fs160 = __toESM(require("node:fs"), 1);
119278
119363
  import_node_os34 = __toESM(require("node:os"), 1);
119279
119364
  import_node_path162 = __toESM(require("node:path"), 1);
@@ -119314,7 +119399,7 @@ async function compileKotlinGradleLibraries(input) {
119314
119399
  ])
119315
119400
  ];
119316
119401
  const name3 = library.coordinate.replace(/[^a-zA-Z0-9._-]/g, "-");
119317
- const suffix = (0, import_node_crypto95.createHash)("sha256").update(library.coordinate).digest("hex").slice(0, 12);
119402
+ const suffix = (0, import_node_crypto96.createHash)("sha256").update(library.coordinate).digest("hex").slice(0, 12);
119318
119403
  const klib = import_node_path163.default.join(input.output, `${name3}-${suffix}.klib`);
119319
119404
  const kotlinJvmAbi = java.length && kotlin.length && library.jars.length === 1 ? library.jars[0] : void 0;
119320
119405
  const abiPairs = java.length ? dependencies.flatMap(
@@ -119356,11 +119441,11 @@ async function compileKotlinGradleLibraries(input) {
119356
119441
  }
119357
119442
  return [...compiled.values()].map(({ klib }) => klib);
119358
119443
  }
119359
- var import_node_crypto95, import_node_fs161, import_node_path163;
119444
+ var import_node_crypto96, import_node_fs161, import_node_path163;
119360
119445
  var init_kotlin_gradle_library_plan = __esm({
119361
119446
  "src/kotlin-gradle-library-plan.ts"() {
119362
119447
  "use strict";
119363
- import_node_crypto95 = require("node:crypto");
119448
+ import_node_crypto96 = require("node:crypto");
119364
119449
  import_node_fs161 = __toESM(require("node:fs"), 1);
119365
119450
  import_node_path163 = __toESM(require("node:path"), 1);
119366
119451
  init_kotlin_library_sources();
@@ -119596,13 +119681,13 @@ function verifyKotlinSdkDirectory(root, compiler) {
119596
119681
  if (!stat2.isFile() || stat2.nlink !== 1)
119597
119682
  throw new Error(`Kotlin SDK binary is not a regular file: ${name3}`);
119598
119683
  const bytes = import_node_fs162.default.readFileSync(target);
119599
- if (bytes.length !== expected.bytes || (0, import_node_crypto96.createHash)("sha256").update(bytes).digest("hex") !== expected.sha256)
119684
+ if (bytes.length !== expected.bytes || (0, import_node_crypto97.createHash)("sha256").update(bytes).digest("hex") !== expected.sha256)
119600
119685
  throw new Error(`Kotlin SDK binary differs from its manifest: ${name3}`);
119601
119686
  }
119602
119687
  return manifest;
119603
119688
  }
119604
119689
  async function installKotlinSdkArchive(archive, compiler) {
119605
- const sha2565 = (0, import_node_crypto96.createHash)("sha256").update(archive).digest("hex");
119690
+ const sha2565 = (0, import_node_crypto97.createHash)("sha256").update(archive).digest("hex");
119606
119691
  const parent = import_node_path164.default.join(kotlinHome(), "sdk");
119607
119692
  const root = import_node_path164.default.join(parent, sha2565);
119608
119693
  if (import_node_fs162.default.existsSync(root))
@@ -119631,12 +119716,12 @@ async function installKotlinSdkArchive(archive, compiler) {
119631
119716
  import_node_fs162.default.rmSync(work, { recursive: true, force: true });
119632
119717
  }
119633
119718
  }
119634
- var import_node_child_process76, import_node_crypto96, import_node_fs162, import_node_path164, import_node_util21, run14;
119719
+ var import_node_child_process76, import_node_crypto97, import_node_fs162, import_node_path164, import_node_util21, run14;
119635
119720
  var init_kotlin_sdk = __esm({
119636
119721
  "src/kotlin-sdk.ts"() {
119637
119722
  "use strict";
119638
119723
  import_node_child_process76 = require("node:child_process");
119639
- import_node_crypto96 = require("node:crypto");
119724
+ import_node_crypto97 = require("node:crypto");
119640
119725
  import_node_fs162 = __toESM(require("node:fs"), 1);
119641
119726
  import_node_path164 = __toESM(require("node:path"), 1);
119642
119727
  import_node_util21 = require("node:util");
@@ -119772,7 +119857,7 @@ function peachKotlinModuleRoot() {
119772
119857
  if (!IS_STANDALONE) return import_node_path165.default.join(peachsimPackageRoot(), "kotlin");
119773
119858
  if (installedRoot) return installedRoot;
119774
119859
  const files2 = JSON.parse(__PEACH_BUNDLED_KOTLIN__);
119775
- const digest3 = (0, import_node_crypto97.createHash)("sha256").update(__PEACH_BUNDLED_KOTLIN__).digest("hex");
119860
+ const digest3 = (0, import_node_crypto98.createHash)("sha256").update(__PEACH_BUNDLED_KOTLIN__).digest("hex");
119776
119861
  const parent = import_node_path165.default.join(rnxHomeDir(), "kotlin", "modules");
119777
119862
  const root = import_node_path165.default.join(parent, digest3);
119778
119863
  import_node_fs163.default.mkdirSync(parent, { recursive: true });
@@ -119801,11 +119886,11 @@ function peachKotlinModuleRoot() {
119801
119886
  installedRoot = root;
119802
119887
  return root;
119803
119888
  }
119804
- var import_node_crypto97, import_node_fs163, import_node_path165, installedRoot;
119889
+ var import_node_crypto98, import_node_fs163, import_node_path165, installedRoot;
119805
119890
  var init_kotlin_module = __esm({
119806
119891
  "src/kotlin-module.ts"() {
119807
119892
  "use strict";
119808
- import_node_crypto97 = require("node:crypto");
119893
+ import_node_crypto98 = require("node:crypto");
119809
119894
  import_node_fs163 = __toESM(require("node:fs"), 1);
119810
119895
  import_node_path165 = __toESM(require("node:path"), 1);
119811
119896
  init_standalone();
@@ -119839,7 +119924,7 @@ async function resolveAndroidGradleSources(request) {
119839
119924
  const parent = import_node_path166.default.join(kotlinHome(), "gradle-sources");
119840
119925
  import_node_fs164.default.mkdirSync(parent, { recursive: true });
119841
119926
  const work = import_node_fs164.default.mkdtempSync(import_node_path166.default.join(parent, ".query-"));
119842
- const task = `peachAndroidSources${(0, import_node_crypto98.randomBytes)(8).toString("hex")}`;
119927
+ const task = `peachAndroidSources${(0, import_node_crypto99.randomBytes)(8).toString("hex")}`;
119843
119928
  const script = import_node_path166.default.join(work, "sources.gradle");
119844
119929
  const encoded = Buffer.from(
119845
119930
  JSON.stringify({
@@ -119991,12 +120076,12 @@ function readDependencySources(value) {
119991
120076
  };
119992
120077
  });
119993
120078
  }
119994
- var import_node_child_process77, import_node_crypto98, import_node_fs164, import_node_path166, import_node_util22, run15, modelQuery;
120079
+ var import_node_child_process77, import_node_crypto99, import_node_fs164, import_node_path166, import_node_util22, run15, modelQuery;
119995
120080
  var init_android_gradle_sources = __esm({
119996
120081
  "src/android-gradle-sources.ts"() {
119997
120082
  "use strict";
119998
120083
  import_node_child_process77 = require("node:child_process");
119999
- import_node_crypto98 = require("node:crypto");
120084
+ import_node_crypto99 = require("node:crypto");
120000
120085
  import_node_fs164 = __toESM(require("node:fs"), 1);
120001
120086
  import_node_path166 = __toESM(require("node:path"), 1);
120002
120087
  import_node_util22 = require("node:util");
@@ -120411,7 +120496,7 @@ function readExpoTypes(output) {
120411
120496
  });
120412
120497
  }
120413
120498
  async function scanSources(tool, parse17, toolchain, moduleRoot, files2) {
120414
- const digest3 = (0, import_node_crypto99.createHash)("sha256").update(JSON.stringify(toolchain.compiler));
120499
+ const digest3 = (0, import_node_crypto100.createHash)("sha256").update(JSON.stringify(toolchain.compiler));
120415
120500
  const sdk2 = await loadKotlinSdk(moduleRoot, toolchain);
120416
120501
  digest3.update(import_node_fs165.default.readFileSync(import_node_path167.default.join(moduleRoot, "sdk.tar.gz")));
120417
120502
  digest3.update(tool);
@@ -121073,7 +121158,7 @@ async function compileKotlin(input, origin) {
121073
121158
  bytes: import_node_fs165.default.readFileSync(file)
121074
121159
  }));
121075
121160
  const { composeArchive, ...compilerInputs } = toolchain;
121076
- const digest3 = (0, import_node_crypto99.createHash)("sha256");
121161
+ const digest3 = (0, import_node_crypto100.createHash)("sha256");
121077
121162
  digest3.update(
121078
121163
  JSON.stringify({
121079
121164
  format: BUILD_FORMAT,
@@ -121095,7 +121180,7 @@ async function compileKotlin(input, origin) {
121095
121180
  ...gradleLibraries.libraries.flatMap(({ archive, jars }) => [archive, ...jars])
121096
121181
  ]);
121097
121182
  for (const file of files2) {
121098
- digest3.update((0, import_node_crypto99.createHash)("sha256").update(import_node_fs165.default.readFileSync(file)).digest());
121183
+ digest3.update((0, import_node_crypto100.createHash)("sha256").update(import_node_fs165.default.readFileSync(file)).digest());
121099
121184
  }
121100
121185
  }
121101
121186
  if (viewModels) digest3.update(viewModels.toolClass);
@@ -121387,12 +121472,12 @@ async function serveKotlinRequest(pathname, res, app) {
121387
121472
  }
121388
121473
  return true;
121389
121474
  }
121390
- var import_node_child_process78, import_node_crypto99, import_node_fs165, import_node_module22, import_node_path167, import_node_util23, run16, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, configureDeviceSource, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal3, CONTENT_TYPES;
121475
+ var import_node_child_process78, import_node_crypto100, import_node_fs165, import_node_module22, import_node_path167, import_node_util23, run16, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, configureDeviceSource, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal3, CONTENT_TYPES;
121391
121476
  var init_kotlin_host = __esm({
121392
121477
  "src/kotlin-host.ts"() {
121393
121478
  "use strict";
121394
121479
  import_node_child_process78 = require("node:child_process");
121395
- import_node_crypto99 = require("node:crypto");
121480
+ import_node_crypto100 = require("node:crypto");
121396
121481
  import_node_fs165 = __toESM(require("node:fs"), 1);
121397
121482
  import_node_module22 = require("node:module");
121398
121483
  import_node_path167 = __toESM(require("node:path"), 1);
@@ -121748,7 +121833,7 @@ async function readManagedExpoIdentity(root, platform3, iosTarget, bridgeOrigin)
121748
121833
  url.searchParams.set("root", root);
121749
121834
  const response = await nodeHttpFetch(url.href);
121750
121835
  if (response.ok && response.headers.get("content-type") === revisionType) {
121751
- const environment = (0, import_node_crypto100.createHash)("sha256").update(JSON.stringify(Object.entries(process.env).sort())).digest("hex");
121836
+ const environment = (0, import_node_crypto101.createHash)("sha256").update(JSON.stringify(Object.entries(process.env).sort())).digest("hex");
121752
121837
  const inputs2 = Buffer.from(
121753
121838
  JSON.stringify([
121754
121839
  await response.text(),
@@ -121804,11 +121889,11 @@ function handleManagedExpoInputs(req, res, url) {
121804
121889
  res.writeHead(200, { "Content-Type": revisionType });
121805
121890
  res.end(revision);
121806
121891
  }
121807
- var import_node_crypto100, import_node_fs167, import_node_path169, revisionType;
121892
+ var import_node_crypto101, import_node_fs167, import_node_path169, revisionType;
121808
121893
  var init_managed_expo_identity = __esm({
121809
121894
  "src/managed-expo-identity.ts"() {
121810
121895
  "use strict";
121811
- import_node_crypto100 = require("node:crypto");
121896
+ import_node_crypto101 = require("node:crypto");
121812
121897
  import_node_fs167 = __toESM(require("node:fs"), 1);
121813
121898
  import_node_path169 = __toESM(require("node:path"), 1);
121814
121899
  init_backend_origin();
@@ -121923,7 +122008,7 @@ async function stagePreparedExpoWidgetAssets(preparedApp, origin) {
121923
122008
  const ext = import_node_path172.default.extname(file);
121924
122009
  if (ext.toLowerCase() === ".svg") return stageCatalogSvg(file, scale, origin, bytes);
121925
122010
  if (ext.toLowerCase() === ".pdf") {
121926
- const sha2565 = (0, import_node_crypto101.createHash)("sha256").update(bytes).digest("hex");
122011
+ const sha2565 = (0, import_node_crypto102.createHash)("sha256").update(bytes).digest("hex");
121927
122012
  const png = rasterizePdfFiles([{ file: members2.get(file), sha256: sha2565 }]).get(sha2565);
121928
122013
  return stageHostBytes(png, origin, ".png");
121929
122014
  }
@@ -121936,11 +122021,11 @@ async function stageExpoWidgetAssets(appRoot, origin) {
121936
122021
  const prepared = await prepareExpoNativeProject(appRoot);
121937
122022
  return stagePreparedExpoWidgetAssets(prepared.app, origin);
121938
122023
  }
121939
- var import_node_crypto101, import_node_fs169, import_node_path172;
122024
+ var import_node_crypto102, import_node_fs169, import_node_path172;
121940
122025
  var init_expo_widget_assets = __esm({
121941
122026
  "src/expo-widget-assets.ts"() {
121942
122027
  "use strict";
121943
- import_node_crypto101 = require("node:crypto");
122028
+ import_node_crypto102 = require("node:crypto");
121944
122029
  import_node_fs169 = __toESM(require("node:fs"), 1);
121945
122030
  import_node_path172 = __toESM(require("node:path"), 1);
121946
122031
  init_app_catalog();
@@ -121995,11 +122080,11 @@ async function trunkSpecification(lockFile, root, version2, checksum) {
121995
122080
  "specifications",
121996
122081
  `${checksum}.json`
121997
122082
  );
121998
- const sha1 = (value) => (0, import_node_crypto102.createHash)("sha1").update(value).digest("hex");
122083
+ const sha1 = (value) => (0, import_node_crypto103.createHash)("sha1").update(value).digest("hex");
121999
122084
  let text7;
122000
122085
  if (import_node_fs170.default.existsSync(file)) text7 = import_node_fs170.default.readFileSync(file, "utf8");
122001
122086
  else {
122002
- const shard2 = (0, import_node_crypto102.createHash)("md5").update(root).digest("hex").slice(0, 3).split("").join("/");
122087
+ const shard2 = (0, import_node_crypto103.createHash)("md5").update(root).digest("hex").slice(0, 3).split("").join("/");
122003
122088
  const specPath = `Specs/${shard2}/${root}/${version2}/${root}.podspec.json`;
122004
122089
  const response = await fetch(`https://cdn.cocoapods.org/${specPath}`);
122005
122090
  if (!response.ok)
@@ -122128,7 +122213,7 @@ async function collectSwiftSourcePods(lockFile, modules, moduleRoot, headerModul
122128
122213
  "end",
122129
122214
  ""
122130
122215
  ].join("\n");
122131
- const key2 = (0, import_node_crypto102.createHash)("sha256").update(project).update(podfile).update(JSON.stringify([...selected].sort(([a], [b]) => a.localeCompare(b)))).update(
122216
+ const key2 = (0, import_node_crypto103.createHash)("sha256").update(project).update(podfile).update(JSON.stringify([...selected].sort(([a], [b]) => a.localeCompare(b)))).update(
122132
122217
  JSON.stringify(
122133
122218
  Object.entries(specificationChecksums).sort(([a], [b]) => a.localeCompare(b))
122134
122219
  )
@@ -122197,11 +122282,11 @@ async function collectSwiftSourcePods(lockFile, modules, moduleRoot, headerModul
122197
122282
  );
122198
122283
  });
122199
122284
  }
122200
- var import_node_crypto102, import_node_fs170, import_node_path173, APP, record5, project, podModuleName;
122285
+ var import_node_crypto103, import_node_fs170, import_node_path173, APP, record5, project, podModuleName;
122201
122286
  var init_swift_source_pods = __esm({
122202
122287
  "src/swift-source-pods.ts"() {
122203
122288
  "use strict";
122204
- import_node_crypto102 = require("node:crypto");
122289
+ import_node_crypto103 = require("node:crypto");
122205
122290
  import_node_fs170 = __toESM(require("node:fs"), 1);
122206
122291
  import_node_path173 = __toESM(require("node:path"), 1);
122207
122292
  init_browser();
@@ -122878,7 +122963,7 @@ async function prepareNitroCompileInput(options2) {
122878
122963
  input.libraries ??= {};
122879
122964
  input.libraries[nitroProviderTarget({ name: name3 })] = library;
122880
122965
  }
122881
- const key2 = (0, import_node_crypto103.createHash)("sha256").update(
122966
+ const key2 = (0, import_node_crypto104.createHash)("sha256").update(
122882
122967
  collection.providers.map(({ root, hybridObjects }) => `${root}\0${hybridObjects.join(",")}`).join("\0")
122883
122968
  ).update("\0").update(import_node_fs171.default.realpathSync(options2.moduleRoot)).update("\0").update(options2.configuration).digest("hex");
122884
122969
  const packagePath = import_node_path174.default.join(import_node_os35.default.tmpdir(), "peach-nitro-swift", key2, `p${process.pid}`);
@@ -122935,11 +123020,11 @@ function nitrogenGeneratedSources(podDirectory) {
122935
123020
  ...sources(import_node_path174.default.join(generated, "ios"), /\.(h|hpp|c|cpp|mm|swift)$/)
122936
123021
  ];
122937
123022
  }
122938
- var import_node_crypto103, import_node_fs171, import_node_os35, import_node_path174, BUNDLED_CXX_NAMESPACES, REACT_INCLUDE_PATTERN, REACT_LINKING_PATTERN, REACT_VERSION_PATTERN, RN_HEADER_DIR_MAP, RN_COMMON_ROOTS;
123023
+ var import_node_crypto104, import_node_fs171, import_node_os35, import_node_path174, BUNDLED_CXX_NAMESPACES, REACT_INCLUDE_PATTERN, REACT_LINKING_PATTERN, REACT_VERSION_PATTERN, RN_HEADER_DIR_MAP, RN_COMMON_ROOTS;
122939
123024
  var init_nitro_compile = __esm({
122940
123025
  "src/nitro-compile.ts"() {
122941
123026
  "use strict";
122942
- import_node_crypto103 = require("node:crypto");
123027
+ import_node_crypto104 = require("node:crypto");
122943
123028
  import_node_fs171 = __toESM(require("node:fs"), 1);
122944
123029
  import_node_os35 = __toESM(require("node:os"), 1);
122945
123030
  import_node_path174 = __toESM(require("node:path"), 1);
@@ -123016,11 +123101,11 @@ var init_nitro_compile = __esm({
123016
123101
  });
123017
123102
 
123018
123103
  // src/nitro-compiler-digest.ts
123019
- var import_node_crypto104, import_node_fs172, import_node_path175;
123104
+ var import_node_crypto105, import_node_fs172, import_node_path175;
123020
123105
  var init_nitro_compiler_digest = __esm({
123021
123106
  "src/nitro-compiler-digest.ts"() {
123022
123107
  "use strict";
123023
- import_node_crypto104 = require("node:crypto");
123108
+ import_node_crypto105 = require("node:crypto");
123024
123109
  import_node_fs172 = require("node:fs");
123025
123110
  import_node_path175 = __toESM(require("node:path"), 1);
123026
123111
  init_swift_compiler_digest();
@@ -123158,7 +123243,7 @@ var init_nitro_superset = __esm({
123158
123243
  init_nitroContract();
123159
123244
  init_swift_standin_digest();
123160
123245
  NITRO_SUPERSET_ENTRY_NAME = "superset";
123161
- NITRO_COMPILER_DIGEST = true ? "2b748ed5d0850b2ccb4eb8842bbcfdec5254b56ef63760418c6e2795f3b68e10" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
123246
+ NITRO_COMPILER_DIGEST = true ? "bdc0f5dd61f31a5b6f5bba3db67fc29584077dfb64bd237228a11b91b9ab2730" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
123162
123247
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
123163
123248
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
123164
123249
  published3 = /* @__PURE__ */ new Map();
@@ -123687,7 +123772,7 @@ async function compilePreparedOneSDKApp(appRoot, preparedRoot, origin, moduleRoo
123687
123772
  const packagePath = import_node_path179.default.join(
123688
123773
  swiftCacheDir(),
123689
123774
  "peach-one-sdk-swift",
123690
- (0, import_node_crypto105.createHash)("sha256").update(import_node_fs175.default.realpathSync(appRoot)).digest("hex").slice(0, 16),
123775
+ (0, import_node_crypto106.createHash)("sha256").update(import_node_fs175.default.realpathSync(appRoot)).digest("hex").slice(0, 16),
123691
123776
  "sdk"
123692
123777
  );
123693
123778
  const bindingFlags = optimize ? '["-suppress-warnings"]' : '["-suppress-warnings", "-Onone", "-no-whole-module-optimization"]';
@@ -123734,11 +123819,11 @@ async function buildOneSDKBundle(appRoot) {
123734
123819
  assets: await compiledModuleAssets(compiled.artifact)
123735
123820
  };
123736
123821
  }
123737
- var import_node_crypto105, import_node_fs175, import_node_path179, ONE_SDK_ROUTE, ONE_SDK_BINDING_SHARDS, ONE_SDK_BINDING_SHARD_MIN_BYTES, handleOneSDKRequest;
123822
+ var import_node_crypto106, import_node_fs175, import_node_path179, ONE_SDK_ROUTE, ONE_SDK_BINDING_SHARDS, ONE_SDK_BINDING_SHARD_MIN_BYTES, handleOneSDKRequest;
123738
123823
  var init_one_sdk_bundle = __esm({
123739
123824
  "src/one-sdk-bundle.ts"() {
123740
123825
  "use strict";
123741
- import_node_crypto105 = require("node:crypto");
123826
+ import_node_crypto106 = require("node:crypto");
123742
123827
  import_node_fs175 = __toESM(require("node:fs"), 1);
123743
123828
  import_node_path179 = __toESM(require("node:path"), 1);
123744
123829
  init_expo_native_workspace();
@@ -124401,11 +124486,11 @@ function readSharedDesktopAuthSession() {
124401
124486
  return null;
124402
124487
  }
124403
124488
  }
124404
- var import_node_crypto106, import_node_fs179, import_node_path184, SESSION_VERSION, SESSION_FILE_ENV, DEFAULT_ORIGIN;
124489
+ var import_node_crypto107, import_node_fs179, import_node_path184, SESSION_VERSION, SESSION_FILE_ENV, DEFAULT_ORIGIN;
124405
124490
  var init_shared_session = __esm({
124406
124491
  "src/auth/shared-session.ts"() {
124407
124492
  "use strict";
124408
- import_node_crypto106 = require("node:crypto");
124493
+ import_node_crypto107 = require("node:crypto");
124409
124494
  import_node_fs179 = require("node:fs");
124410
124495
  import_node_path184 = require("node:path");
124411
124496
  init_home_paths();
@@ -124443,7 +124528,7 @@ var init_run_rnx = __esm({
124443
124528
  // cli/secure-file.ts
124444
124529
  function writeSecureJsonAtomic(filepath, value, { durable = true } = {}) {
124445
124530
  (0, import_node_fs180.mkdirSync)((0, import_node_path185.dirname)(filepath), { recursive: true });
124446
- const temporary = `${filepath}.tmp-${process.pid}-${(0, import_node_crypto107.randomUUID)()}`;
124531
+ const temporary = `${filepath}.tmp-${process.pid}-${(0, import_node_crypto108.randomUUID)()}`;
124447
124532
  let descriptor = null;
124448
124533
  try {
124449
124534
  descriptor = (0, import_node_fs180.openSync)(temporary, "wx", 384);
@@ -124460,11 +124545,11 @@ function writeSecureJsonAtomic(filepath, value, { durable = true } = {}) {
124460
124545
  throw error;
124461
124546
  }
124462
124547
  }
124463
- var import_node_crypto107, import_node_fs180, import_node_path185;
124548
+ var import_node_crypto108, import_node_fs180, import_node_path185;
124464
124549
  var init_secure_file = __esm({
124465
124550
  "cli/secure-file.ts"() {
124466
124551
  "use strict";
124467
- import_node_crypto107 = require("node:crypto");
124552
+ import_node_crypto108 = require("node:crypto");
124468
124553
  import_node_fs180 = require("node:fs");
124469
124554
  import_node_path185 = require("node:path");
124470
124555
  }
@@ -126826,11 +126911,11 @@ function createCloudSession(input) {
126826
126911
  }
126827
126912
  return session;
126828
126913
  }
126829
- var import_node_crypto108, import_node_fs182, import_node_path187, CLOUD_SESSION_VERSION, MAX_ENCODED_SESSION_BYTES, RNX_SHELL_UPDATE_PREFIX, RNX_SHELL_UPDATE_SET_PREFIX, RNX_SHELL_UPDATE_UNSET;
126914
+ var import_node_crypto109, import_node_fs182, import_node_path187, CLOUD_SESSION_VERSION, MAX_ENCODED_SESSION_BYTES, RNX_SHELL_UPDATE_PREFIX, RNX_SHELL_UPDATE_SET_PREFIX, RNX_SHELL_UPDATE_UNSET;
126830
126915
  var init_cloud_session = __esm({
126831
126916
  "cli/cloud-session.ts"() {
126832
126917
  "use strict";
126833
- import_node_crypto108 = require("node:crypto");
126918
+ import_node_crypto109 = require("node:crypto");
126834
126919
  import_node_fs182 = require("node:fs");
126835
126920
  import_node_path187 = require("node:path");
126836
126921
  init_backend_origin();
@@ -127092,7 +127177,7 @@ function listMetroAssetDest(assetsPath) {
127092
127177
  return { directory: directory2, files: files2, truncated };
127093
127178
  }
127094
127179
  function metroDescriptorHash(scaleBytes) {
127095
- const hasher = (0, import_node_crypto109.createHash)("md5");
127180
+ const hasher = (0, import_node_crypto110.createHash)("md5");
127096
127181
  for (const bytes of scaleBytes) hasher.update(bytes);
127097
127182
  return hasher.digest("hex");
127098
127183
  }
@@ -127121,7 +127206,7 @@ function distinctByContent(directory2, options2) {
127121
127206
  } catch {
127122
127207
  continue;
127123
127208
  }
127124
- const digest3 = (0, import_node_crypto109.createHash)("md5").update(bytes).digest("hex");
127209
+ const digest3 = (0, import_node_crypto110.createHash)("md5").update(bytes).digest("hex");
127125
127210
  if (!byContent.has(digest3)) byContent.set(digest3, relative6);
127126
127211
  }
127127
127212
  return [...byContent.values()];
@@ -127169,7 +127254,7 @@ function placeMetroDescriptor(listing, descriptor) {
127169
127254
  continue;
127170
127255
  }
127171
127256
  const identical = fileHashes2 ? bytes.every((file, index) => {
127172
- const digest3 = (0, import_node_crypto109.createHash)("md5").update(file).digest("hex");
127257
+ const digest3 = (0, import_node_crypto110.createHash)("md5").update(file).digest("hex");
127173
127258
  return descriptor.scales.some(
127174
127259
  (scale, declared) => scale === scales[index] && fileHashes2[declared] === digest3
127175
127260
  );
@@ -127194,7 +127279,7 @@ function unverifiedContentKey(dest, fileDigests2) {
127194
127279
  const file = (0, import_node_path189.join)(dest.directory, relative6);
127195
127280
  let digest3 = fileDigests2.get(file);
127196
127281
  if (digest3 === void 0) {
127197
- digest3 = (0, import_node_crypto109.createHash)("sha256").update((0, import_node_fs184.readFileSync)(file)).digest("hex");
127282
+ digest3 = (0, import_node_crypto110.createHash)("sha256").update((0, import_node_fs184.readFileSync)(file)).digest("hex");
127198
127283
  fileDigests2.set(file, digest3);
127199
127284
  }
127200
127285
  return [scale, digest3];
@@ -127483,7 +127568,7 @@ async function produceArtifact(prepared, maxBytes, command) {
127483
127568
  }
127484
127569
  return {
127485
127570
  bytes,
127486
- sha256: (0, import_node_crypto109.createHash)("sha256").update(bytes).digest("hex"),
127571
+ sha256: (0, import_node_crypto110.createHash)("sha256").update(bytes).digest("hex"),
127487
127572
  receipt: artifact.receipt,
127488
127573
  assetsDirectory: prepared.dest?.directory ?? null,
127489
127574
  warnings
@@ -127588,11 +127673,11 @@ async function createCloudBox(options2) {
127588
127673
  warnings: artifact.warnings
127589
127674
  };
127590
127675
  }
127591
- var import_node_crypto109, import_node_fs184, import_node_path189, import_node_vm, DEFAULT_RNX_CLOUD_ORIGIN, MAX_RNX_CLOUD_BUNDLE_BYTES, REMOTE_COMMAND, PREVIEW_COMMAND, NanoDevelopmentOnlyError, MAX_ASSET_DEST_FILES, ACCOUNT_CHOICE_REFUSALS, PROJECT_ONLY_DIRECTORIES, MAX_PLACEMENT_COMBINATIONS;
127676
+ var import_node_crypto110, import_node_fs184, import_node_path189, import_node_vm, DEFAULT_RNX_CLOUD_ORIGIN, MAX_RNX_CLOUD_BUNDLE_BYTES, REMOTE_COMMAND, PREVIEW_COMMAND, NanoDevelopmentOnlyError, MAX_ASSET_DEST_FILES, ACCOUNT_CHOICE_REFUSALS, PROJECT_ONLY_DIRECTORIES, MAX_PLACEMENT_COMBINATIONS;
127592
127677
  var init_cloud_client = __esm({
127593
127678
  "cli/cloud-client.ts"() {
127594
127679
  "use strict";
127595
- import_node_crypto109 = require("node:crypto");
127680
+ import_node_crypto110 = require("node:crypto");
127596
127681
  import_node_fs184 = require("node:fs");
127597
127682
  import_node_path189 = require("node:path");
127598
127683
  import_node_vm = require("node:vm");
@@ -129359,7 +129444,7 @@ function serveAppPackageResource(req, res) {
129359
129444
  init_fetch_proxy_handler();
129360
129445
 
129361
129446
  // src/host/fetch-proxy-transport.ts
129362
- var import_node_crypto88 = require("node:crypto");
129447
+ var import_node_crypto89 = require("node:crypto");
129363
129448
  var import_node_fs147 = require("node:fs");
129364
129449
  var import_node_http23 = require("node:http2");
129365
129450
  var import_node_path149 = __toESM(require("node:path"), 1);
@@ -129392,7 +129477,7 @@ async function createIdentity() {
129392
129477
  const keys = await crypto.subtle.generateKey(algorithm, true, ["sign", "verify"]);
129393
129478
  const certificate = await import_x5092.X509CertificateGenerator.createSelfSigned(
129394
129479
  {
129395
- serialNumber: (0, import_node_crypto88.randomBytes)(16).toString("hex"),
129480
+ serialNumber: (0, import_node_crypto89.randomBytes)(16).toString("hex"),
129396
129481
  name: "CN=localhost",
129397
129482
  notBefore: new Date(Date.now() - 6e4),
129398
129483
  notAfter: new Date(Date.now() + 365 * 24 * 60 * 6e4),
@@ -129411,7 +129496,7 @@ async function createIdentity() {
129411
129496
  ${privateKey.toString("base64").match(/.{1,64}/g)?.join("\n")}
129412
129497
  -----END PRIVATE KEY-----
129413
129498
  `,
129414
- spki: (0, import_node_crypto88.createHash)("sha256").update(Buffer.from(await crypto.subtle.exportKey("spki", keys.publicKey))).digest("base64")
129499
+ spki: (0, import_node_crypto89.createHash)("sha256").update(Buffer.from(await crypto.subtle.exportKey("spki", keys.publicKey))).digest("base64")
129415
129500
  };
129416
129501
  }
129417
129502
  async function startFetchProxyTransport(identityPath, hasLiveSims = () => false) {