peachsim 0.1.2579 → 0.1.2581

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 (130) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +2 -2
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +5 -5
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +3 -3
  13. package/dist-lib/bundle-channel.cjs +1661 -1630
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +3 -3
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +3 -3
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +2 -2
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +7 -7
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +5 -5
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-IKJKHVLK.mjs → acorn-SG4OD4ZK.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-P3ZZWFLF.mjs → chunk-4H3WQGK3.mjs} +1 -1
  28. package/dist-lib/esm-chunks/{chunk-REM5GI43.mjs → chunk-4Y26TOIM.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-ICKP5P4J.mjs → chunk-5E7LW5DM.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-AV5SQ6CK.mjs → chunk-B2NQEF26.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-7LW3BSGV.mjs → chunk-ES5DH526.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-WYQMA52N.mjs → chunk-FQI3KNQ3.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-XDHJB5OS.mjs → chunk-G2GTJHOG.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-UTD5UF3X.mjs → chunk-GOLLVPJ3.mjs} +5 -5
  35. package/dist-lib/esm-chunks/{chunk-RXTYF4KO.mjs → chunk-HKG2JMTZ.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-A3ADP4VS.mjs → chunk-HKGLKRWM.mjs} +2 -2
  37. package/dist-lib/esm-chunks/{chunk-7IAY6LKE.mjs → chunk-KMLN4VHG.mjs} +3 -3
  38. package/dist-lib/esm-chunks/{chunk-SSRCRL6R.mjs → chunk-LDHIV6BP.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-GO7ALE4G.mjs → chunk-M4DHQU3U.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-AGWYPESS.mjs → chunk-NQGWHVJQ.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-MHZIPOLJ.mjs → chunk-OWDYTVSX.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-CNEVB7JH.mjs → chunk-R3ENWNEA.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-IC7FZ6WC.mjs → chunk-SIZ2373G.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-EQGKOUJP.mjs → chunk-UHF6ZURM.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-U3W4BENO.mjs → chunk-UI2N67FB.mjs} +12 -12
  46. package/dist-lib/esm-chunks/{chunk-QAC6JE56.mjs → chunk-V3VGLM3J.mjs} +5 -5
  47. package/dist-lib/esm-chunks/{chunk-OL3SMHFS.mjs → chunk-V63FNQN6.mjs} +4 -4
  48. package/dist-lib/esm-chunks/{chunk-SVXXRXIW.mjs → chunk-VACEYNII.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{metro-layout-parser-OGC3BHUK.mjs → metro-layout-parser-M43XUQKZ.mjs} +3 -3
  50. package/dist-lib/esm-chunks/{swift-package-prebuilt-YQLDNZYX.mjs → swift-package-prebuilt-TMHJYJPP.mjs} +10 -10
  51. package/dist-lib/esm-chunks/{swift-sdk-app-module-FS5WN3V4.mjs → swift-sdk-app-module-Z4C22PRJ.mjs} +14 -14
  52. package/dist-lib/esm-chunks/{swift-sdk-image-NZX5TYWF.mjs → swift-sdk-image-5NQZ2LDM.mjs} +14 -14
  53. package/dist-lib/esm-chunks/{swift-sdk-image-producer-PEJLGVP2.mjs → swift-sdk-image-producer-GL7ORWD5.mjs} +4 -4
  54. package/dist-lib/expo-swift-bundle.cjs +1311 -1280
  55. package/dist-lib/expo-swift-metadata.cjs +1 -1
  56. package/dist-lib/expo-swift-metadata.mjs +7 -7
  57. package/dist-lib/home-paths.cjs +1 -1
  58. package/dist-lib/host/bridge-host.cjs +1876 -1845
  59. package/dist-lib/host/fetch-proxy-handler.cjs +257 -221
  60. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  61. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  62. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  63. package/dist-lib/host/websocket-proxy.cjs +1 -1
  64. package/dist-lib/index.cjs +1 -1
  65. package/dist-lib/kotlin-host.cjs +1 -1
  66. package/dist-lib/menu.cjs +1 -1
  67. package/dist-lib/menu.mjs +3 -3
  68. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  69. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  70. package/dist-lib/metro-production-bundle.cjs +1 -1
  71. package/dist-lib/metro-production-bundle.mjs +4 -4
  72. package/dist-lib/native-app-identity-project.cjs +1 -1
  73. package/dist-lib/native-app-identity-project.mjs +16 -16
  74. package/dist-lib/native-app-identity.cjs +1 -1
  75. package/dist-lib/native-app-identity.mjs +6 -6
  76. package/dist-lib/native-firebase-metadata.cjs +1 -1
  77. package/dist-lib/native-firebase-metadata.mjs +3 -3
  78. package/dist-lib/pdfium-raster.cjs +1 -1
  79. package/dist-lib/pdfium-raster.mjs +2 -2
  80. package/dist-lib/plist.cjs +1 -1
  81. package/dist-lib/plist.mjs +3 -3
  82. package/dist-lib/profiles.cjs +1 -1
  83. package/dist-lib/public-brand.cjs +1 -1
  84. package/dist-lib/public-origins-lib-esm.json +81 -81
  85. package/dist-lib/public-origins-lib.json +74 -69
  86. package/dist-lib/react-native-host-modules.cjs +1 -1
  87. package/dist-lib/react-native-host-modules.mjs +2 -2
  88. package/dist-lib/reap-browser.cjs +1 -1
  89. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  90. package/dist-lib/sdk.cjs +1 -1
  91. package/dist-lib/sdk.mjs +8 -8
  92. package/dist-lib/skills.cjs +2247 -2216
  93. package/dist-lib/swift-compile.cjs +1 -1
  94. package/dist-lib/swift-compile.mjs +10 -10
  95. package/dist-lib/swift-package.cjs +1 -1
  96. package/dist-lib/swift-package.mjs +3 -3
  97. package/dist-lib/swift-submit.cjs +1 -1
  98. package/dist-lib/swift-submit.mjs +6 -6
  99. package/dist-lib/swift-svg-raster.cjs +1 -1
  100. package/dist-lib/swift-svg-raster.mjs +2 -2
  101. package/dist-lib/swift-toolchain.cjs +1 -1
  102. package/dist-lib/swift.cjs +1 -1
  103. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  104. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  105. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  106. package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
  107. package/dist-lib/vendor/acorn.cjs +1 -1
  108. package/dist-lib/vendor/bplist-parser.cjs +1 -1
  109. package/dist-lib/vendor/ignore.cjs +1 -1
  110. package/dist-lib/vendor/magic-string.cjs +1 -1
  111. package/dist-lib/vendor/plist.cjs +1 -1
  112. package/dist-lib/vendor/smol-toml.cjs +1 -1
  113. package/dist-lib/vendor/stream-json.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  116. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  117. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  118. package/dist-lib/vendor/sucrase.cjs +1 -1
  119. package/dist-lib/vendor/terser.cjs +1 -1
  120. package/dist-lib/vendor/valibot.cjs +1 -1
  121. package/dist-lib/vendor/ws.cjs +1 -1
  122. package/dist-lib/vendor/zod.cjs +1 -1
  123. package/dist-lib/worklet-executable.cjs +1 -1
  124. package/dist-lib/worklet-executable.mjs +3 -3
  125. package/kotlin/sdk.tar.gz +0 -0
  126. package/package.json +1 -1
  127. package/src/genrule-archives.ts +5 -2
  128. package/src/genrule-library-builds.ts +10 -1
  129. package/src/swift-objc-compile.ts +8 -52
  130. package/src/swift-wasm64-source-header.ts +57 -0
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2579 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2581 | (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;
@@ -989,13 +989,13 @@ var init_swift_standin_digest = __esm({
989
989
  import_node_crypto5 = require("node:crypto");
990
990
  import_node_fs11 = require("node:fs");
991
991
  import_node_path12 = __toESM(require("node:path"), 1);
992
- STANDIN_SOURCE_DIGEST = true ? "6ff6dca360fa5c041f6ef1bc94f7de7829a941ad7b9135c42b82aaeff93af14b" : standinSourceDigest();
992
+ STANDIN_SOURCE_DIGEST = true ? "6de7b88c45f4be35be501dc82f56c6818c20ba7f43f981d61da14afdf6f95a24" : standinSourceDigest();
993
993
  }
994
994
  });
995
995
 
996
996
  // src/expo-native-compiler-digest.ts
997
997
  function expoNativeCompilerDigestValue() {
998
- return true ? "9a2515ad5857cc796f5ea4390a1d16bdde8593217367ab985be5975981fb6721" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
998
+ return true ? "5574418ffac4ea51a532ce3d292b12098fedec3726034e5eef8ff3b4c34714bd" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
999
999
  }
1000
1000
  var import_node_crypto6;
1001
1001
  var init_expo_native_compiler_digest = __esm({
@@ -4159,17 +4159,17 @@ function visit(node, visitor) {
4159
4159
  } else
4160
4160
  visit_(null, node, visitor_, Object.freeze([]));
4161
4161
  }
4162
- function visit_(key, node, visitor, path112) {
4163
- const ctrl = callVisitor(key, node, visitor, path112);
4162
+ function visit_(key, node, visitor, path113) {
4163
+ const ctrl = callVisitor(key, node, visitor, path113);
4164
4164
  if (isNode(ctrl) || isPair(ctrl)) {
4165
- replaceNode(key, path112, ctrl);
4166
- return visit_(key, ctrl, visitor, path112);
4165
+ replaceNode(key, path113, ctrl);
4166
+ return visit_(key, ctrl, visitor, path113);
4167
4167
  }
4168
4168
  if (typeof ctrl !== "symbol") {
4169
4169
  if (isCollection(node)) {
4170
- path112 = Object.freeze(path112.concat(node));
4170
+ path113 = Object.freeze(path113.concat(node));
4171
4171
  for (let i = 0; i < node.items.length; ++i) {
4172
- const ci = visit_(i, node.items[i], visitor, path112);
4172
+ const ci = visit_(i, node.items[i], visitor, path113);
4173
4173
  if (typeof ci === "number")
4174
4174
  i = ci - 1;
4175
4175
  else if (ci === BREAK)
@@ -4180,13 +4180,13 @@ function visit_(key, node, visitor, path112) {
4180
4180
  }
4181
4181
  }
4182
4182
  } else if (isPair(node)) {
4183
- path112 = Object.freeze(path112.concat(node));
4184
- const ck = visit_("key", node.key, visitor, path112);
4183
+ path113 = Object.freeze(path113.concat(node));
4184
+ const ck = visit_("key", node.key, visitor, path113);
4185
4185
  if (ck === BREAK)
4186
4186
  return BREAK;
4187
4187
  else if (ck === REMOVE)
4188
4188
  node.key = null;
4189
- const cv = visit_("value", node.value, visitor, path112);
4189
+ const cv = visit_("value", node.value, visitor, path113);
4190
4190
  if (cv === BREAK)
4191
4191
  return BREAK;
4192
4192
  else if (cv === REMOVE)
@@ -4204,17 +4204,17 @@ async function visitAsync(node, visitor) {
4204
4204
  } else
4205
4205
  await visitAsync_(null, node, visitor_, Object.freeze([]));
4206
4206
  }
4207
- async function visitAsync_(key, node, visitor, path112) {
4208
- const ctrl = await callVisitor(key, node, visitor, path112);
4207
+ async function visitAsync_(key, node, visitor, path113) {
4208
+ const ctrl = await callVisitor(key, node, visitor, path113);
4209
4209
  if (isNode(ctrl) || isPair(ctrl)) {
4210
- replaceNode(key, path112, ctrl);
4211
- return visitAsync_(key, ctrl, visitor, path112);
4210
+ replaceNode(key, path113, ctrl);
4211
+ return visitAsync_(key, ctrl, visitor, path113);
4212
4212
  }
4213
4213
  if (typeof ctrl !== "symbol") {
4214
4214
  if (isCollection(node)) {
4215
- path112 = Object.freeze(path112.concat(node));
4215
+ path113 = Object.freeze(path113.concat(node));
4216
4216
  for (let i = 0; i < node.items.length; ++i) {
4217
- const ci = await visitAsync_(i, node.items[i], visitor, path112);
4217
+ const ci = await visitAsync_(i, node.items[i], visitor, path113);
4218
4218
  if (typeof ci === "number")
4219
4219
  i = ci - 1;
4220
4220
  else if (ci === BREAK)
@@ -4225,13 +4225,13 @@ async function visitAsync_(key, node, visitor, path112) {
4225
4225
  }
4226
4226
  }
4227
4227
  } else if (isPair(node)) {
4228
- path112 = Object.freeze(path112.concat(node));
4229
- const ck = await visitAsync_("key", node.key, visitor, path112);
4228
+ path113 = Object.freeze(path113.concat(node));
4229
+ const ck = await visitAsync_("key", node.key, visitor, path113);
4230
4230
  if (ck === BREAK)
4231
4231
  return BREAK;
4232
4232
  else if (ck === REMOVE)
4233
4233
  node.key = null;
4234
- const cv = await visitAsync_("value", node.value, visitor, path112);
4234
+ const cv = await visitAsync_("value", node.value, visitor, path113);
4235
4235
  if (cv === BREAK)
4236
4236
  return BREAK;
4237
4237
  else if (cv === REMOVE)
@@ -4258,23 +4258,23 @@ function initVisitor(visitor) {
4258
4258
  }
4259
4259
  return visitor;
4260
4260
  }
4261
- function callVisitor(key, node, visitor, path112) {
4261
+ function callVisitor(key, node, visitor, path113) {
4262
4262
  if (typeof visitor === "function")
4263
- return visitor(key, node, path112);
4263
+ return visitor(key, node, path113);
4264
4264
  if (isMap(node))
4265
- return visitor.Map?.(key, node, path112);
4265
+ return visitor.Map?.(key, node, path113);
4266
4266
  if (isSeq(node))
4267
- return visitor.Seq?.(key, node, path112);
4267
+ return visitor.Seq?.(key, node, path113);
4268
4268
  if (isPair(node))
4269
- return visitor.Pair?.(key, node, path112);
4269
+ return visitor.Pair?.(key, node, path113);
4270
4270
  if (isScalar(node))
4271
- return visitor.Scalar?.(key, node, path112);
4271
+ return visitor.Scalar?.(key, node, path113);
4272
4272
  if (isAlias(node))
4273
- return visitor.Alias?.(key, node, path112);
4273
+ return visitor.Alias?.(key, node, path113);
4274
4274
  return void 0;
4275
4275
  }
4276
- function replaceNode(key, path112, node) {
4277
- const parent = path112[path112.length - 1];
4276
+ function replaceNode(key, path113, node) {
4277
+ const parent = path113[path113.length - 1];
4278
4278
  if (isCollection(parent)) {
4279
4279
  parent.items[key] = node;
4280
4280
  } else if (isPair(parent)) {
@@ -4825,10 +4825,10 @@ var init_createNode = __esm({
4825
4825
  });
4826
4826
 
4827
4827
  // ../../node_modules/yaml/browser/dist/nodes/Collection.js
4828
- function collectionFromPath(schema4, path112, value) {
4828
+ function collectionFromPath(schema4, path113, value) {
4829
4829
  let v10 = value;
4830
- for (let i = path112.length - 1; i >= 0; --i) {
4831
- const k = path112[i];
4830
+ for (let i = path113.length - 1; i >= 0; --i) {
4831
+ const k = path113[i];
4832
4832
  if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
4833
4833
  const a = [];
4834
4834
  a[k] = v10;
@@ -4853,7 +4853,7 @@ var init_Collection = __esm({
4853
4853
  init_createNode();
4854
4854
  init_identity();
4855
4855
  init_Node();
4856
- isEmptyPath = (path112) => path112 == null || typeof path112 === "object" && !!path112[Symbol.iterator]().next().done;
4856
+ isEmptyPath = (path113) => path113 == null || typeof path113 === "object" && !!path113[Symbol.iterator]().next().done;
4857
4857
  Collection = class extends NodeBase {
4858
4858
  constructor(type, schema4) {
4859
4859
  super(type);
@@ -4883,11 +4883,11 @@ var init_Collection = __esm({
4883
4883
  * be a Pair instance or a `{ key, value }` object, which may not have a key
4884
4884
  * that already exists in the map.
4885
4885
  */
4886
- addIn(path112, value) {
4887
- if (isEmptyPath(path112))
4886
+ addIn(path113, value) {
4887
+ if (isEmptyPath(path113))
4888
4888
  this.add(value);
4889
4889
  else {
4890
- const [key, ...rest] = path112;
4890
+ const [key, ...rest] = path113;
4891
4891
  const node = this.get(key, true);
4892
4892
  if (isCollection(node))
4893
4893
  node.addIn(rest, value);
@@ -4901,8 +4901,8 @@ var init_Collection = __esm({
4901
4901
  * Removes a value from the collection.
4902
4902
  * @returns `true` if the item was found and removed.
4903
4903
  */
4904
- deleteIn(path112) {
4905
- const [key, ...rest] = path112;
4904
+ deleteIn(path113) {
4905
+ const [key, ...rest] = path113;
4906
4906
  if (rest.length === 0)
4907
4907
  return this.delete(key);
4908
4908
  const node = this.get(key, true);
@@ -4916,8 +4916,8 @@ var init_Collection = __esm({
4916
4916
  * scalar values from their surrounding node; to disable set `keepScalar` to
4917
4917
  * `true` (collections are always returned intact).
4918
4918
  */
4919
- getIn(path112, keepScalar) {
4920
- const [key, ...rest] = path112;
4919
+ getIn(path113, keepScalar) {
4920
+ const [key, ...rest] = path113;
4921
4921
  const node = this.get(key, true);
4922
4922
  if (rest.length === 0)
4923
4923
  return !keepScalar && isScalar(node) ? node.value : node;
@@ -4935,8 +4935,8 @@ var init_Collection = __esm({
4935
4935
  /**
4936
4936
  * Checks if the collection includes a value with the key `key`.
4937
4937
  */
4938
- hasIn(path112) {
4939
- const [key, ...rest] = path112;
4938
+ hasIn(path113) {
4939
+ const [key, ...rest] = path113;
4940
4940
  if (rest.length === 0)
4941
4941
  return this.has(key);
4942
4942
  const node = this.get(key, true);
@@ -4946,8 +4946,8 @@ var init_Collection = __esm({
4946
4946
  * Sets a value in this collection. For `!!set`, `value` needs to be a
4947
4947
  * boolean to add/remove the item from the set.
4948
4948
  */
4949
- setIn(path112, value) {
4950
- const [key, ...rest] = path112;
4949
+ setIn(path113, value) {
4950
+ const [key, ...rest] = path113;
4951
4951
  if (rest.length === 0) {
4952
4952
  this.set(key, value);
4953
4953
  } else {
@@ -6866,15 +6866,15 @@ function visit2(cst, visitor) {
6866
6866
  cst = { start: cst.start, value: cst.value };
6867
6867
  _visit(Object.freeze([]), cst, visitor);
6868
6868
  }
6869
- function _visit(path112, item, visitor) {
6870
- let ctrl = visitor(item, path112);
6869
+ function _visit(path113, item, visitor) {
6870
+ let ctrl = visitor(item, path113);
6871
6871
  if (typeof ctrl === "symbol")
6872
6872
  return ctrl;
6873
6873
  for (const field of ["key", "value"]) {
6874
6874
  const token = item[field];
6875
6875
  if (token && "items" in token) {
6876
6876
  for (let i = 0; i < token.items.length; ++i) {
6877
- const ci = _visit(Object.freeze(path112.concat([[field, i]])), token.items[i], visitor);
6877
+ const ci = _visit(Object.freeze(path113.concat([[field, i]])), token.items[i], visitor);
6878
6878
  if (typeof ci === "number")
6879
6879
  i = ci - 1;
6880
6880
  else if (ci === BREAK2)
@@ -6885,10 +6885,10 @@ function _visit(path112, item, visitor) {
6885
6885
  }
6886
6886
  }
6887
6887
  if (typeof ctrl === "function" && field === "key")
6888
- ctrl = ctrl(item, path112);
6888
+ ctrl = ctrl(item, path113);
6889
6889
  }
6890
6890
  }
6891
- return typeof ctrl === "function" ? ctrl(item, path112) : ctrl;
6891
+ return typeof ctrl === "function" ? ctrl(item, path113) : ctrl;
6892
6892
  }
6893
6893
  var BREAK2, SKIP2, REMOVE2;
6894
6894
  var init_cst_visit = __esm({
@@ -6899,9 +6899,9 @@ var init_cst_visit = __esm({
6899
6899
  visit2.BREAK = BREAK2;
6900
6900
  visit2.SKIP = SKIP2;
6901
6901
  visit2.REMOVE = REMOVE2;
6902
- visit2.itemAtPath = (cst, path112) => {
6902
+ visit2.itemAtPath = (cst, path113) => {
6903
6903
  let item = cst;
6904
- for (const [field, index] of path112) {
6904
+ for (const [field, index] of path113) {
6905
6905
  const tok = item?.[field];
6906
6906
  if (tok && "items" in tok) {
6907
6907
  item = tok.items[index];
@@ -6910,9 +6910,9 @@ var init_cst_visit = __esm({
6910
6910
  }
6911
6911
  return item;
6912
6912
  };
6913
- visit2.parentCollection = (cst, path112) => {
6914
- const parent = visit2.itemAtPath(cst, path112.slice(0, -1));
6915
- const field = path112[path112.length - 1][0];
6913
+ visit2.parentCollection = (cst, path113) => {
6914
+ const parent = visit2.itemAtPath(cst, path113.slice(0, -1));
6915
+ const field = path113[path113.length - 1][0];
6916
6916
  const coll = parent?.[field];
6917
6917
  if (coll && "items" in coll)
6918
6918
  return coll;
@@ -14846,9 +14846,9 @@ function hashPackageTree(root, options) {
14846
14846
  (a, b) => options.compareNames(a.name, b.name)
14847
14847
  )) {
14848
14848
  if (entry.name === "node_modules") continue;
14849
- const path112 = `${relative3}${entry.name}`;
14850
- if (entry.isDirectory()) walk2((0, import_node_path91.join)(directory, entry.name), `${path112}/`);
14851
- else if (entry.isFile() && !options.skipFile?.(entry.name)) files.push(path112);
14849
+ const path113 = `${relative3}${entry.name}`;
14850
+ if (entry.isDirectory()) walk2((0, import_node_path91.join)(directory, entry.name), `${path113}/`);
14851
+ else if (entry.isFile() && !options.skipFile?.(entry.name)) files.push(path113);
14852
14852
  }
14853
14853
  };
14854
14854
  walk2(root, "");
@@ -15649,13 +15649,71 @@ var init_ffmpeg_source_build = __esm({
15649
15649
  }
15650
15650
  });
15651
15651
 
15652
+ // src/swift-wasm64-source-header.ts
15653
+ function deriveWasm64Header(file, bytes) {
15654
+ const backport = derivations.get(import_node_path100.default.basename(file));
15655
+ if (!backport || (0, import_node_crypto59.createHash)("sha256").update(bytes).digest("hex") !== backport.originalSha256)
15656
+ return null;
15657
+ const derived = Buffer.from(
15658
+ bytes.toString("utf8").replace(backport.before, backport.after)
15659
+ );
15660
+ if ((0, import_node_crypto59.createHash)("sha256").update(derived).digest("hex") !== backport.derivedSha256)
15661
+ throw new Error(`Native header derivation differs: ${file}`);
15662
+ return {
15663
+ bytes: derived,
15664
+ upstreamCommit: backport.upstreamCommit,
15665
+ originalSha256: backport.originalSha256
15666
+ };
15667
+ }
15668
+ var import_node_crypto59, import_node_path100, webrtcUnknownArchitecture, boringsslWordSize2, derivations;
15669
+ var init_swift_wasm64_source_header = __esm({
15670
+ "src/swift-wasm64-source-header.ts"() {
15671
+ "use strict";
15672
+ import_node_crypto59 = require("node:crypto");
15673
+ import_node_path100 = __toESM(require("node:path"), 1);
15674
+ init_nitro_dependencies();
15675
+ init_swiftWasm64ConfigContract();
15676
+ webrtcUnknownArchitecture = "#else\n#error Please add support for your architecture in rtc_base/system/arch.h";
15677
+ boringsslWordSize2 = swiftWasm64PlatformGates["swift-nio-ssl/wasm64-word-size"];
15678
+ derivations = /* @__PURE__ */ new Map([
15679
+ ["utils.h", DOUBLE_CONVERSION_WASM64_BACKPORT],
15680
+ [
15681
+ "target.h",
15682
+ {
15683
+ upstreamCommit: "fb0e62ba8a147f0821da6aa63c09da7d79a10111",
15684
+ originalSha256: "388a719e8869b22b52826b269c5719df91c57db3eb3957136c1f75426176571d",
15685
+ derivedSha256: "93f9c71b533bf1168dc35552607f044a6616d2dc7bd3fa40d59978f27bcf0b0f",
15686
+ before: boringsslWordSize2.before,
15687
+ after: boringsslWordSize2.after
15688
+ }
15689
+ ],
15690
+ [
15691
+ "arch.h",
15692
+ {
15693
+ // same wasm64 target gate as sdk-patches/webrtc/0001-src-wasm64-arch.patch.
15694
+ upstreamCommit: "6513c71d6c80311d69a0a6b9c09fcf32cfbeb247",
15695
+ originalSha256: "f2d0b0dc7b01b6b91b8159495850d84afbcfb3134859dbcac60cd96823699cf0",
15696
+ derivedSha256: "4d412be1f1c8861e81d2d5638eed8685adc581c5289123a8de63d01cb21aabf9",
15697
+ before: webrtcUnknownArchitecture,
15698
+ after: [
15699
+ "#elif defined(__wasm64__)",
15700
+ "#define WEBRTC_ARCH_64_BITS",
15701
+ "#define WEBRTC_ARCH_LITTLE_ENDIAN",
15702
+ webrtcUnknownArchitecture
15703
+ ].join("\n")
15704
+ }
15705
+ ]
15706
+ ]);
15707
+ }
15708
+ });
15709
+
15652
15710
  // src/genrule-library-builds.ts
15653
15711
  function sourceNamed(declaration, pattern) {
15654
15712
  return declaration.sources.find((source) => pattern.test(source.file))?.file;
15655
15713
  }
15656
15714
  function sourceTree(declaration, marker) {
15657
15715
  const file = declaration.sources.find(
15658
- (source) => source.file.endsWith(`${import_node_path100.default.sep}${marker}`)
15716
+ (source) => source.file.endsWith(`${import_node_path101.default.sep}${marker}`)
15659
15717
  )?.file;
15660
15718
  if (!file) throw new Error(`${declaration.label} names no ${marker}`);
15661
15719
  return file.slice(0, -marker.length - 1);
@@ -15671,18 +15729,18 @@ function run4(command, args, cwd, env) {
15671
15729
  function walk(dir) {
15672
15730
  if (!import_node_fs97.default.existsSync(dir)) return [];
15673
15731
  return import_node_fs97.default.readdirSync(dir, { withFileTypes: true }).flatMap((entry) => {
15674
- const full = import_node_path100.default.join(dir, entry.name);
15732
+ const full = import_node_path101.default.join(dir, entry.name);
15675
15733
  return entry.isDirectory() ? walk(full) : [full];
15676
15734
  });
15677
15735
  }
15678
15736
  function placeOutputs(declaration, roots, outDir) {
15679
15737
  const built = roots.flatMap(walk);
15680
15738
  for (const output of declaration.outputs) {
15681
- const parts = output.path.split(import_node_path100.default.sep);
15739
+ const parts = output.path.split(import_node_path101.default.sep);
15682
15740
  const name2 = parts.at(-1).toLowerCase();
15683
- const candidates = built.filter((file) => import_node_path100.default.basename(file).toLowerCase() === name2);
15741
+ const candidates = built.filter((file) => import_node_path101.default.basename(file).toLowerCase() === name2);
15684
15742
  const score = (file) => {
15685
- const theirs = file.split(import_node_path100.default.sep);
15743
+ const theirs = file.split(import_node_path101.default.sep);
15686
15744
  let shared = 1;
15687
15745
  while (shared < parts.length && theirs.at(-1 - shared) === parts.at(-1 - shared))
15688
15746
  shared++;
@@ -15690,8 +15748,8 @@ function placeOutputs(declaration, roots, outDir) {
15690
15748
  };
15691
15749
  const best = candidates.sort((a, b) => score(b) - score(a))[0];
15692
15750
  if (!best) continue;
15693
- const target = import_node_path100.default.join(outDir, output.path);
15694
- import_node_fs97.default.mkdirSync(import_node_path100.default.dirname(target), { recursive: true });
15751
+ const target = import_node_path101.default.join(outDir, output.path);
15752
+ import_node_fs97.default.mkdirSync(import_node_path101.default.dirname(target), { recursive: true });
15695
15753
  import_node_fs97.default.copyFileSync(best, target);
15696
15754
  }
15697
15755
  }
@@ -15699,7 +15757,7 @@ function copyTree(source, target) {
15699
15757
  import_node_fs97.default.cpSync(source, target, {
15700
15758
  recursive: true,
15701
15759
  dereference: true,
15702
- filter: (file) => import_node_path100.default.basename(file) !== ".git"
15760
+ filter: (file) => import_node_path101.default.basename(file) !== ".git"
15703
15761
  });
15704
15762
  }
15705
15763
  function toolEnv(toolchain, extra = []) {
@@ -15715,8 +15773,8 @@ function toolEnv(toolchain, extra = []) {
15715
15773
  CXX: toolchain.cxx,
15716
15774
  AR: toolchain.ar,
15717
15775
  RANLIB: toolchain.ranlib,
15718
- NM: import_node_path100.default.join(toolchain.toolchainBin, "llvm-nm"),
15719
- STRIP: import_node_path100.default.join(toolchain.toolchainBin, "llvm-strip"),
15776
+ NM: import_node_path101.default.join(toolchain.toolchainBin, "llvm-nm"),
15777
+ STRIP: import_node_path101.default.join(toolchain.toolchainBin, "llvm-strip"),
15720
15778
  CFLAGS: flags.join(" "),
15721
15779
  CXXFLAGS: flags.join(" "),
15722
15780
  CPPFLAGS: "",
@@ -15732,7 +15790,7 @@ function toolEnv(toolchain, extra = []) {
15732
15790
  };
15733
15791
  }
15734
15792
  function cmakeToolchainFile(toolchain, dir) {
15735
- const file = import_node_path100.default.join(dir, "wasm64.cmake");
15793
+ const file = import_node_path101.default.join(dir, "wasm64.cmake");
15736
15794
  import_node_fs97.default.writeFileSync(
15737
15795
  file,
15738
15796
  [
@@ -15757,7 +15815,7 @@ function cmakeToolchainFile(toolchain, dir) {
15757
15815
  return file;
15758
15816
  }
15759
15817
  function cmakeBuild(toolchain, source, work, options, targets = []) {
15760
- const build = import_node_path100.default.join(work, "build");
15818
+ const build = import_node_path101.default.join(work, "build");
15761
15819
  import_node_fs97.default.mkdirSync(build, { recursive: true });
15762
15820
  const env = toolEnv(toolchain);
15763
15821
  run4(
@@ -15789,24 +15847,25 @@ function cmakeBuild(toolchain, source, work, options, targets = []) {
15789
15847
  );
15790
15848
  return build;
15791
15849
  }
15792
- var import_node_child_process47, import_node_fs97, import_node_path100, opusBuilder, libvpxBuilder, libwebpBuilder, mozjpegBuilder, dav1dBuilder, tdBuilder, GENRULE_LIBRARY_BUILDERS;
15850
+ var import_node_child_process47, import_node_fs97, import_node_path101, opusBuilder, libvpxBuilder, libwebpBuilder, mozjpegBuilder, dav1dBuilder, tdBuilder, GENRULE_LIBRARY_BUILDERS;
15793
15851
  var init_genrule_library_builds = __esm({
15794
15852
  "src/genrule-library-builds.ts"() {
15795
15853
  "use strict";
15796
15854
  import_node_child_process47 = require("node:child_process");
15797
15855
  import_node_fs97 = __toESM(require("node:fs"), 1);
15798
- import_node_path100 = __toESM(require("node:path"), 1);
15856
+ import_node_path101 = __toESM(require("node:path"), 1);
15857
+ init_swift_wasm64_source_header();
15799
15858
  init_swiftTargetContract();
15800
15859
  opusBuilder = {
15801
15860
  name: "opus",
15802
15861
  recognizes: (declaration) => !!sourceNamed(declaration, /\/opus-[\d.]+\.tar\.gz$/),
15803
15862
  build(declaration, toolchain, _dependencies, outDir) {
15804
15863
  const tarball = sourceNamed(declaration, /\/opus-[\d.]+\.tar\.gz$/);
15805
- const work = import_node_path100.default.join(outDir, ".work");
15864
+ const work = import_node_path101.default.join(outDir, ".work");
15806
15865
  import_node_fs97.default.mkdirSync(work, { recursive: true });
15807
15866
  run4("tar", ["-xzf", tarball, "--no-same-owner", "-C", work], work, {});
15808
- const source = import_node_path100.default.join(work, import_node_path100.default.basename(tarball, ".tar.gz"));
15809
- const prefix = import_node_path100.default.join(work, "install");
15867
+ const source = import_node_path101.default.join(work, import_node_path101.default.basename(tarball, ".tar.gz"));
15868
+ const prefix = import_node_path101.default.join(work, "install");
15810
15869
  run4(
15811
15870
  "./configure",
15812
15871
  [
@@ -15830,14 +15889,14 @@ var init_genrule_library_builds = __esm({
15830
15889
  libvpxBuilder = {
15831
15890
  name: "libvpx",
15832
15891
  recognizes: (declaration) => declaration.sources.some(
15833
- (source) => source.file.endsWith(`${import_node_path100.default.sep}vpx${import_node_path100.default.sep}vpx_codec.h`)
15834
- ) && declaration.sources.some((source) => source.file.endsWith(`${import_node_path100.default.sep}vpxenc.c`)),
15892
+ (source) => source.file.endsWith(`${import_node_path101.default.sep}vpx${import_node_path101.default.sep}vpx_codec.h`)
15893
+ ) && declaration.sources.some((source) => source.file.endsWith(`${import_node_path101.default.sep}vpxenc.c`)),
15835
15894
  build(declaration, toolchain, _dependencies, outDir) {
15836
15895
  const original = sourceTree(declaration, "vpxenc.c");
15837
- const work = import_node_path100.default.join(outDir, ".work");
15838
- const source = import_node_path100.default.join(work, "source");
15896
+ const work = import_node_path101.default.join(outDir, ".work");
15897
+ const source = import_node_path101.default.join(work, "source");
15839
15898
  copyTree(original, source);
15840
- const build = import_node_path100.default.join(work, "build");
15899
+ const build = import_node_path101.default.join(work, "build");
15841
15900
  import_node_fs97.default.mkdirSync(build, { recursive: true });
15842
15901
  const env = toolEnv(toolchain);
15843
15902
  const configure = [
@@ -15857,12 +15916,12 @@ var init_genrule_library_builds = __esm({
15857
15916
  "--size-limit=8192x8192"
15858
15917
  ];
15859
15918
  run4(
15860
- import_node_path100.default.join(source, "configure"),
15919
+ import_node_path101.default.join(source, "configure"),
15861
15920
  [...configure, `--extra-cflags=${env.CFLAGS}`, `--extra-cxxflags=${env.CXXFLAGS}`],
15862
15921
  build,
15863
15922
  { ...env, CROSS: "", LD: env.CC, AS: "" }
15864
15923
  );
15865
- const config = import_node_path100.default.join(build, "vpx_config.c");
15924
+ const config = import_node_path101.default.join(build, "vpx_config.c");
15866
15925
  import_node_fs97.default.writeFileSync(
15867
15926
  config,
15868
15927
  import_node_fs97.default.readFileSync(config, "utf8").replace(
@@ -15873,17 +15932,17 @@ var init_genrule_library_builds = __esm({
15873
15932
  run4("make", [`-j${toolchain.jobs}`, "dist", "DIST_DIR=dist"], build, {
15874
15933
  CROSS: ""
15875
15934
  });
15876
- placeOutputs(declaration, [import_node_path100.default.join(build, "dist"), build], outDir);
15935
+ placeOutputs(declaration, [import_node_path101.default.join(build, "dist"), build], outDir);
15877
15936
  }
15878
15937
  };
15879
15938
  libwebpBuilder = {
15880
15939
  name: "libwebp",
15881
15940
  recognizes: (declaration) => declaration.sources.some(
15882
- (source) => source.file.endsWith(`${import_node_path100.default.sep}src${import_node_path100.default.sep}webp${import_node_path100.default.sep}decode.h`)
15941
+ (source) => source.file.endsWith(`${import_node_path101.default.sep}src${import_node_path101.default.sep}webp${import_node_path101.default.sep}decode.h`)
15883
15942
  ),
15884
15943
  build(declaration, toolchain, _dependencies, outDir) {
15885
- const source = sourceTree(declaration, import_node_path100.default.join("src", "webp", "decode.h"));
15886
- const work = import_node_path100.default.join(outDir, ".work");
15944
+ const source = sourceTree(declaration, import_node_path101.default.join("src", "webp", "decode.h"));
15945
+ const work = import_node_path101.default.join(outDir, ".work");
15887
15946
  const build = cmakeBuild(toolchain, source, work, [
15888
15947
  "-DWEBP_LINK_STATIC=1",
15889
15948
  "-DWEBP_BUILD_CWEBP=0",
@@ -15899,15 +15958,15 @@ var init_genrule_library_builds = __esm({
15899
15958
  "-DWEBP_ENABLE_SIMD=0",
15900
15959
  "-DWEBP_USE_THREAD=0"
15901
15960
  ]);
15902
- placeOutputs(declaration, [build, import_node_path100.default.join(source, "src")], outDir);
15961
+ placeOutputs(declaration, [build, import_node_path101.default.join(source, "src")], outDir);
15903
15962
  }
15904
15963
  };
15905
15964
  mozjpegBuilder = {
15906
15965
  name: "mozjpeg",
15907
- recognizes: (declaration) => declaration.sources.some((source) => source.file.endsWith(`${import_node_path100.default.sep}jcmaster.c`)) && declaration.sources.some((source) => source.file.endsWith(`${import_node_path100.default.sep}turbojpeg.c`)),
15966
+ recognizes: (declaration) => declaration.sources.some((source) => source.file.endsWith(`${import_node_path101.default.sep}jcmaster.c`)) && declaration.sources.some((source) => source.file.endsWith(`${import_node_path101.default.sep}turbojpeg.c`)),
15908
15967
  build(declaration, toolchain, _dependencies, outDir) {
15909
15968
  const source = sourceTree(declaration, "turbojpeg.c");
15910
- const work = import_node_path100.default.join(outDir, ".work");
15969
+ const work = import_node_path101.default.join(outDir, ".work");
15911
15970
  const build = cmakeBuild(
15912
15971
  toolchain,
15913
15972
  source,
@@ -15929,22 +15988,22 @@ var init_genrule_library_builds = __esm({
15929
15988
  dav1dBuilder = {
15930
15989
  name: "dav1d",
15931
15990
  recognizes: (declaration) => declaration.sources.some(
15932
- (source) => source.file.endsWith(`${import_node_path100.default.sep}include${import_node_path100.default.sep}dav1d${import_node_path100.default.sep}dav1d.h`)
15991
+ (source) => source.file.endsWith(`${import_node_path101.default.sep}include${import_node_path101.default.sep}dav1d${import_node_path101.default.sep}dav1d.h`)
15933
15992
  ),
15934
15993
  build(declaration, toolchain, _dependencies, outDir) {
15935
- const source = sourceTree(declaration, import_node_path100.default.join("include", "dav1d", "dav1d.h"));
15936
- const work = import_node_path100.default.join(outDir, ".work");
15994
+ const source = sourceTree(declaration, import_node_path101.default.join("include", "dav1d", "dav1d.h"));
15995
+ const work = import_node_path101.default.join(outDir, ".work");
15937
15996
  import_node_fs97.default.mkdirSync(work, { recursive: true });
15938
15997
  const quote = (item) => `'${item.replaceAll("\\", "\\\\").replaceAll("'", "\\'")}'`;
15939
15998
  const list2 = (items) => `[${items.map(quote).join(", ")}]`;
15940
- const cross = import_node_path100.default.join(work, "wasm64.meson");
15999
+ const cross = import_node_path101.default.join(work, "wasm64.meson");
15941
16000
  import_node_fs97.default.writeFileSync(
15942
16001
  cross,
15943
16002
  [
15944
16003
  "[binaries]",
15945
16004
  `c = ${list2([toolchain.cc, ...toolchain.cFlags])}`,
15946
16005
  `ar = ${quote(toolchain.ar)}`,
15947
- `strip = ${quote(import_node_path100.default.join(toolchain.toolchainBin, "llvm-strip"))}`,
16006
+ `strip = ${quote(import_node_path101.default.join(toolchain.toolchainBin, "llvm-strip"))}`,
15948
16007
  "[built-in options]",
15949
16008
  `c_link_args = ${list2(toolEnv(toolchain).LDFLAGS.split(" "))}`,
15950
16009
  "[properties]",
@@ -15961,7 +16020,7 @@ var init_genrule_library_builds = __esm({
15961
16020
  ""
15962
16021
  ].join("\n")
15963
16022
  );
15964
- const build = import_node_path100.default.join(work, "build");
16023
+ const build = import_node_path101.default.join(work, "build");
15965
16024
  run4(
15966
16025
  "meson",
15967
16026
  [
@@ -15979,21 +16038,29 @@ var init_genrule_library_builds = __esm({
15979
16038
  {}
15980
16039
  );
15981
16040
  run4("ninja", ["-C", build, `-j${toolchain.jobs}`], work, {});
15982
- placeOutputs(declaration, [build, import_node_path100.default.join(source, "include")], outDir);
16041
+ placeOutputs(declaration, [build, import_node_path101.default.join(source, "include")], outDir);
15983
16042
  }
15984
16043
  };
15985
16044
  tdBuilder = {
15986
16045
  name: "td",
15987
16046
  recognizes: (declaration) => declaration.sources.some(
15988
- (source) => source.file.endsWith(`${import_node_path100.default.sep}tde2e${import_node_path100.default.sep}CMakeLists.txt`)
16047
+ (source) => source.file.endsWith(`${import_node_path101.default.sep}tde2e${import_node_path101.default.sep}CMakeLists.txt`)
15989
16048
  ),
15990
16049
  build(declaration, toolchain, _dependencies, outDir) {
15991
- const original = sourceTree(declaration, import_node_path100.default.join("tde2e", "CMakeLists.txt"));
15992
- const openssl = sourceTree(declaration, import_node_path100.default.join("openssl", "crypto.h"));
15993
- const work = import_node_path100.default.join(outDir, ".work");
15994
- const source = import_node_path100.default.join(work, "source");
16050
+ const original = sourceTree(declaration, import_node_path101.default.join("tde2e", "CMakeLists.txt"));
16051
+ const openssl = sourceTree(declaration, import_node_path101.default.join("openssl", "crypto.h"));
16052
+ const work = import_node_path101.default.join(outDir, ".work");
16053
+ const source = import_node_path101.default.join(work, "source");
15995
16054
  copyTree(original, source);
15996
- const native = import_node_path100.default.join(work, "native");
16055
+ const include = import_node_path101.default.join(work, "include");
16056
+ copyTree(openssl, include);
16057
+ const target = import_node_path101.default.join(openssl, "openssl", "target.h");
16058
+ if (declaration.sources.some(({ file }) => file === target)) {
16059
+ const header = deriveWasm64Header(target, import_node_fs97.default.readFileSync(target));
16060
+ if (header)
16061
+ import_node_fs97.default.writeFileSync(import_node_path101.default.join(include, "openssl", "target.h"), header.bytes);
16062
+ }
16063
+ const native = import_node_path101.default.join(work, "native");
15997
16064
  import_node_fs97.default.mkdirSync(native, { recursive: true });
15998
16065
  run4(
15999
16066
  "cmake",
@@ -16009,7 +16076,7 @@ var init_genrule_library_builds = __esm({
16009
16076
  [
16010
16077
  "-DOPENSSL_FOUND=1",
16011
16078
  "-DOPENSSL_CRYPTO_LIBRARY=crypto",
16012
- `-DOPENSSL_INCLUDE_DIR=${openssl}`
16079
+ `-DOPENSSL_INCLUDE_DIR=${include}`
16013
16080
  ],
16014
16081
  ["tde2e", "tdutils"]
16015
16082
  );
@@ -16028,13 +16095,13 @@ var init_genrule_library_builds = __esm({
16028
16095
  });
16029
16096
 
16030
16097
  // src/native-framework-compiler.ts
16031
- var import_node_crypto59, import_node_fs98, import_node_path101, v7;
16098
+ var import_node_crypto60, import_node_fs98, import_node_path102, v7;
16032
16099
  var init_native_framework_compiler = __esm({
16033
16100
  "src/native-framework-compiler.ts"() {
16034
16101
  "use strict";
16035
- import_node_crypto59 = require("node:crypto");
16102
+ import_node_crypto60 = require("node:crypto");
16036
16103
  import_node_fs98 = __toESM(require("node:fs"), 1);
16037
- import_node_path101 = __toESM(require("node:path"), 1);
16104
+ import_node_path102 = __toESM(require("node:path"), 1);
16038
16105
  v7 = __toESM(require("peachsim/vendor/valibot"), 1);
16039
16106
  init_swift_compile();
16040
16107
  init_swiftRuntimeProductContract();
@@ -16043,15 +16110,15 @@ var init_native_framework_compiler = __esm({
16043
16110
  });
16044
16111
 
16045
16112
  // src/genrule-archives.ts
16046
- var import_node_child_process48, import_node_crypto60, import_node_fs99, import_node_os21, import_node_path102, v8, BUILDERS, cacheDir4;
16113
+ var import_node_child_process48, import_node_crypto61, import_node_fs99, import_node_os21, import_node_path103, v8, BUILDERS, cacheDir4;
16047
16114
  var init_genrule_archives = __esm({
16048
16115
  "src/genrule-archives.ts"() {
16049
16116
  "use strict";
16050
16117
  import_node_child_process48 = require("node:child_process");
16051
- import_node_crypto60 = require("node:crypto");
16118
+ import_node_crypto61 = require("node:crypto");
16052
16119
  import_node_fs99 = __toESM(require("node:fs"), 1);
16053
16120
  import_node_os21 = __toESM(require("node:os"), 1);
16054
- import_node_path102 = __toESM(require("node:path"), 1);
16121
+ import_node_path103 = __toESM(require("node:path"), 1);
16055
16122
  v8 = __toESM(require("peachsim/vendor/valibot"), 1);
16056
16123
  init_ffmpeg_source_build();
16057
16124
  init_genrule_library_builds();
@@ -16063,10 +16130,11 @@ var init_genrule_archives = __esm({
16063
16130
  init_swift_compile();
16064
16131
  init_swift_distribution();
16065
16132
  init_swift_toolchain();
16133
+ init_swift_wasm64_source_header();
16066
16134
  init_swiftRuntimeProductContract();
16067
16135
  init_swiftTargetContract();
16068
16136
  BUILDERS = [ffmpegBuilder, ...GENRULE_LIBRARY_BUILDERS];
16069
- cacheDir4 = import_node_path102.default.join(cacheDir(), "genrule-archives");
16137
+ cacheDir4 = import_node_path103.default.join(cacheDir(), "genrule-archives");
16070
16138
  }
16071
16139
  });
16072
16140
 
@@ -16079,15 +16147,15 @@ var init_native_slices = __esm({
16079
16147
  });
16080
16148
 
16081
16149
  // src/native-swift-slices.ts
16082
- var import_node_child_process49, import_node_crypto61, import_node_fs100, import_node_os22, import_node_path103;
16150
+ var import_node_child_process49, import_node_crypto62, import_node_fs100, import_node_os22, import_node_path104;
16083
16151
  var init_native_swift_slices = __esm({
16084
16152
  "src/native-swift-slices.ts"() {
16085
16153
  "use strict";
16086
16154
  import_node_child_process49 = require("node:child_process");
16087
- import_node_crypto61 = require("node:crypto");
16155
+ import_node_crypto62 = require("node:crypto");
16088
16156
  import_node_fs100 = __toESM(require("node:fs"), 1);
16089
16157
  import_node_os22 = __toESM(require("node:os"), 1);
16090
- import_node_path103 = __toESM(require("node:path"), 1);
16158
+ import_node_path104 = __toESM(require("node:path"), 1);
16091
16159
  init_native_prebuilt();
16092
16160
  init_swift_compile();
16093
16161
  init_swift_toolchain();
@@ -16105,12 +16173,12 @@ var init_output_lock_stdio = __esm({
16105
16173
  });
16106
16174
 
16107
16175
  // src/swift-cxx-declarations.ts
16108
- var import_node_fs102, import_node_path104, import_promises12, import_stream_json;
16176
+ var import_node_fs102, import_node_path105, import_promises12, import_stream_json;
16109
16177
  var init_swift_cxx_declarations = __esm({
16110
16178
  "src/swift-cxx-declarations.ts"() {
16111
16179
  "use strict";
16112
16180
  import_node_fs102 = __toESM(require("node:fs"), 1);
16113
- import_node_path104 = __toESM(require("node:path"), 1);
16181
+ import_node_path105 = __toESM(require("node:path"), 1);
16114
16182
  import_promises12 = require("node:stream/promises");
16115
16183
  import_stream_json = __toESM(require("peachsim/vendor/stream-json"), 1);
16116
16184
  }
@@ -16124,13 +16192,13 @@ var init_swift_cxx_deps = __esm({
16124
16192
  });
16125
16193
 
16126
16194
  // src/swift-cxx-standin.ts
16127
- var import_node_child_process50, import_node_fs103, import_node_path105;
16195
+ var import_node_child_process50, import_node_fs103, import_node_path106;
16128
16196
  var init_swift_cxx_standin = __esm({
16129
16197
  "src/swift-cxx-standin.ts"() {
16130
16198
  "use strict";
16131
16199
  import_node_child_process50 = require("node:child_process");
16132
16200
  import_node_fs103 = __toESM(require("node:fs"), 1);
16133
- import_node_path105 = __toESM(require("node:path"), 1);
16201
+ import_node_path106 = __toESM(require("node:path"), 1);
16134
16202
  init_swift_cxx_declarations();
16135
16203
  init_swift_cxx_deps();
16136
16204
  init_swift_objc_standin();
@@ -16148,14 +16216,14 @@ var init_swift_standin_builtin_behavior = __esm({
16148
16216
  });
16149
16217
 
16150
16218
  // src/swift-standins.ts
16151
- var import_node_child_process51, import_node_crypto62, import_node_fs104, import_node_path106, cacheDir5;
16219
+ var import_node_child_process51, import_node_crypto63, import_node_fs104, import_node_path107, cacheDir5;
16152
16220
  var init_swift_standins = __esm({
16153
16221
  "src/swift-standins.ts"() {
16154
16222
  "use strict";
16155
16223
  import_node_child_process51 = require("node:child_process");
16156
- import_node_crypto62 = require("node:crypto");
16224
+ import_node_crypto63 = require("node:crypto");
16157
16225
  import_node_fs104 = __toESM(require("node:fs"), 1);
16158
- import_node_path106 = __toESM(require("node:path"), 1);
16226
+ import_node_path107 = __toESM(require("node:path"), 1);
16159
16227
  init_forked_script_contract();
16160
16228
  init_genrule_archives();
16161
16229
  init_home_paths();
@@ -16183,23 +16251,22 @@ var init_swift_standins = __esm({
16183
16251
  init_swift_xcframework();
16184
16252
  init_swiftContract();
16185
16253
  init_swiftTargetContract();
16186
- cacheDir5 = import_node_path106.default.join(cacheDir(), "swift-standins");
16254
+ cacheDir5 = import_node_path107.default.join(cacheDir(), "swift-standins");
16187
16255
  }
16188
16256
  });
16189
16257
 
16190
16258
  // src/swift-objc-compile.ts
16191
- var import_node_child_process52, import_node_crypto63, import_node_fs105, import_node_path107, webrtcUnknownArchitecture, boringsslWordSize2, wasm64HeaderDerivations;
16259
+ var import_node_child_process52, import_node_crypto64, import_node_fs105, import_node_path108;
16192
16260
  var init_swift_objc_compile = __esm({
16193
16261
  "src/swift-objc-compile.ts"() {
16194
16262
  "use strict";
16195
16263
  import_node_child_process52 = require("node:child_process");
16196
- import_node_crypto63 = require("node:crypto");
16264
+ import_node_crypto64 = require("node:crypto");
16197
16265
  import_node_fs105 = __toESM(require("node:fs"), 1);
16198
- import_node_path107 = __toESM(require("node:path"), 1);
16266
+ import_node_path108 = __toESM(require("node:path"), 1);
16199
16267
  init_mapLimit();
16200
16268
  init_home_paths();
16201
16269
  init_is_record();
16202
- init_nitro_dependencies();
16203
16270
  init_swift_compile();
16204
16271
  init_swift_distribution();
16205
16272
  init_swift_objc_import();
@@ -16212,51 +16279,20 @@ var init_swift_objc_compile = __esm({
16212
16279
  init_swift_standin_digest();
16213
16280
  init_swift_standins();
16214
16281
  init_swift_toolchain();
16282
+ init_swift_wasm64_source_header();
16215
16283
  init_swiftTargetContract();
16216
- init_swiftWasm64ConfigContract();
16217
16284
  init_xcode_header_search();
16218
- webrtcUnknownArchitecture = "#else\n#error Please add support for your architecture in rtc_base/system/arch.h";
16219
- boringsslWordSize2 = swiftWasm64PlatformGates["swift-nio-ssl/wasm64-word-size"];
16220
- wasm64HeaderDerivations = /* @__PURE__ */ new Map([
16221
- ["utils.h", DOUBLE_CONVERSION_WASM64_BACKPORT],
16222
- [
16223
- "target.h",
16224
- {
16225
- upstreamCommit: "fb0e62ba8a147f0821da6aa63c09da7d79a10111",
16226
- originalSha256: "388a719e8869b22b52826b269c5719df91c57db3eb3957136c1f75426176571d",
16227
- derivedSha256: "93f9c71b533bf1168dc35552607f044a6616d2dc7bd3fa40d59978f27bcf0b0f",
16228
- before: boringsslWordSize2.before,
16229
- after: boringsslWordSize2.after
16230
- }
16231
- ],
16232
- [
16233
- "arch.h",
16234
- {
16235
- // same wasm64 target gate as sdk-patches/webrtc/0001-src-wasm64-arch.patch.
16236
- upstreamCommit: "6513c71d6c80311d69a0a6b9c09fcf32cfbeb247",
16237
- originalSha256: "f2d0b0dc7b01b6b91b8159495850d84afbcfb3134859dbcac60cd96823699cf0",
16238
- derivedSha256: "4d412be1f1c8861e81d2d5638eed8685adc581c5289123a8de63d01cb21aabf9",
16239
- before: webrtcUnknownArchitecture,
16240
- after: [
16241
- "#elif defined(__wasm64__)",
16242
- "#define WEBRTC_ARCH_64_BITS",
16243
- "#define WEBRTC_ARCH_LITTLE_ENDIAN",
16244
- webrtcUnknownArchitecture
16245
- ].join("\n")
16246
- }
16247
- ]
16248
- ]);
16249
16285
  }
16250
16286
  });
16251
16287
 
16252
16288
  // src/react-native-bridge-modules.ts
16253
- var import_node_fs106, import_node_module13, import_node_path108;
16289
+ var import_node_fs106, import_node_module13, import_node_path109;
16254
16290
  var init_react_native_bridge_modules = __esm({
16255
16291
  "src/react-native-bridge-modules.ts"() {
16256
16292
  "use strict";
16257
16293
  import_node_fs106 = __toESM(require("node:fs"), 1);
16258
16294
  import_node_module13 = require("node:module");
16259
- import_node_path108 = __toESM(require("node:path"), 1);
16295
+ import_node_path109 = __toESM(require("node:path"), 1);
16260
16296
  init_answeredNativePackages();
16261
16297
  init_swift_compile();
16262
16298
  init_swift_objc_compile();
@@ -16266,14 +16302,14 @@ var init_react_native_bridge_modules = __esm({
16266
16302
  });
16267
16303
 
16268
16304
  // src/react-native-core.ts
16269
- var import_node_crypto64, import_node_fs107, import_node_module14, import_node_path109, import_node_util11, recipe;
16305
+ var import_node_crypto65, import_node_fs107, import_node_module14, import_node_path110, import_node_util11, recipe;
16270
16306
  var init_react_native_core = __esm({
16271
16307
  "src/react-native-core.ts"() {
16272
16308
  "use strict";
16273
- import_node_crypto64 = require("node:crypto");
16309
+ import_node_crypto65 = require("node:crypto");
16274
16310
  import_node_fs107 = __toESM(require("node:fs"), 1);
16275
16311
  import_node_module14 = require("node:module");
16276
- import_node_path109 = __toESM(require("node:path"), 1);
16312
+ import_node_path110 = __toESM(require("node:path"), 1);
16277
16313
  import_node_util11 = require("node:util");
16278
16314
  init_home_paths();
16279
16315
  init_is_record();
@@ -16289,14 +16325,14 @@ var init_react_native_core = __esm({
16289
16325
  });
16290
16326
 
16291
16327
  // src/swift-clang-type-ownership.ts
16292
- var import_node_child_process53, import_node_crypto65, import_node_fs108, import_node_path110;
16328
+ var import_node_child_process53, import_node_crypto66, import_node_fs108, import_node_path111;
16293
16329
  var init_swift_clang_type_ownership = __esm({
16294
16330
  "src/swift-clang-type-ownership.ts"() {
16295
16331
  "use strict";
16296
16332
  import_node_child_process53 = require("node:child_process");
16297
- import_node_crypto65 = require("node:crypto");
16333
+ import_node_crypto66 = require("node:crypto");
16298
16334
  import_node_fs108 = __toESM(require("node:fs"), 1);
16299
- import_node_path110 = __toESM(require("node:path"), 1);
16335
+ import_node_path111 = __toESM(require("node:path"), 1);
16300
16336
  init_is_record();
16301
16337
  init_swift_compile();
16302
16338
  init_swift_distribution();
@@ -16376,10 +16412,10 @@ var require_path_parse = __commonJS({
16376
16412
  code === 45 || /* - */
16377
16413
  code === 46;
16378
16414
  }
16379
- function State(path112) {
16415
+ function State(path113) {
16380
16416
  this.index = 0;
16381
- this.path = path112;
16382
- this.max = path112.length;
16417
+ this.path = path113;
16418
+ this.max = path113.length;
16383
16419
  this.result = [];
16384
16420
  this.param = 0;
16385
16421
  this.err = "";
@@ -16899,11 +16935,11 @@ var require_svgpath = __commonJS({
16899
16935
  var matrix = require_matrix();
16900
16936
  var a2c = require_a2c();
16901
16937
  var ellipse = require_ellipse();
16902
- function SvgPath(path112) {
16938
+ function SvgPath(path113) {
16903
16939
  if (!(this instanceof SvgPath)) {
16904
- return new SvgPath(path112);
16940
+ return new SvgPath(path113);
16905
16941
  }
16906
- var pstate = pathParse(path112);
16942
+ var pstate = pathParse(path113);
16907
16943
  this.segments = pstate.segments;
16908
16944
  this.err = pstate.err;
16909
16945
  this.__stack = [];
@@ -17359,24 +17395,24 @@ var init_stringCatalog = __esm({
17359
17395
  });
17360
17396
 
17361
17397
  // src/core-data-entity-classes.ts
17362
- var import_node_fs109, import_node_path111;
17398
+ var import_node_fs109, import_node_path112;
17363
17399
  var init_core_data_entity_classes = __esm({
17364
17400
  "src/core-data-entity-classes.ts"() {
17365
17401
  "use strict";
17366
17402
  import_node_fs109 = require("node:fs");
17367
- import_node_path111 = __toESM(require("node:path"), 1);
17403
+ import_node_path112 = __toESM(require("node:path"), 1);
17368
17404
  init_plist();
17369
17405
  }
17370
17406
  });
17371
17407
 
17372
17408
  // src/core-data-model.ts
17373
- var import_node_crypto66, import_node_fs110, import_node_path112, uid, NULL;
17409
+ var import_node_crypto67, import_node_fs110, import_node_path113, uid, NULL;
17374
17410
  var init_core_data_model = __esm({
17375
17411
  "src/core-data-model.ts"() {
17376
17412
  "use strict";
17377
- import_node_crypto66 = require("node:crypto");
17413
+ import_node_crypto67 = require("node:crypto");
17378
17414
  import_node_fs110 = require("node:fs");
17379
- import_node_path112 = __toESM(require("node:path"), 1);
17415
+ import_node_path113 = __toESM(require("node:path"), 1);
17380
17416
  init_core_data_entity_classes();
17381
17417
  init_plist_bytes();
17382
17418
  uid = (index) => ({ CF$UID: index });
@@ -19484,14 +19520,14 @@ var init_swift_catalog_png = __esm({
19484
19520
  });
19485
19521
 
19486
19522
  // src/swift-cxx-reachable.ts
19487
- var import_node_child_process54, import_node_crypto67, import_node_fs111, import_node_path113;
19523
+ var import_node_child_process54, import_node_crypto68, import_node_fs111, import_node_path114;
19488
19524
  var init_swift_cxx_reachable = __esm({
19489
19525
  "src/swift-cxx-reachable.ts"() {
19490
19526
  "use strict";
19491
19527
  import_node_child_process54 = require("node:child_process");
19492
- import_node_crypto67 = require("node:crypto");
19528
+ import_node_crypto68 = require("node:crypto");
19493
19529
  import_node_fs111 = __toESM(require("node:fs"), 1);
19494
- import_node_path113 = __toESM(require("node:path"), 1);
19530
+ import_node_path114 = __toESM(require("node:path"), 1);
19495
19531
  init_is_record();
19496
19532
  init_swift_cxx_deps();
19497
19533
  init_swift_objc_compile();
@@ -19504,14 +19540,14 @@ var init_swift_cxx_reachable = __esm({
19504
19540
  });
19505
19541
 
19506
19542
  // src/swift-pdf-raster.ts
19507
- var import_node_child_process55, import_node_fs112, import_node_os23, import_node_path114;
19543
+ var import_node_child_process55, import_node_fs112, import_node_os23, import_node_path115;
19508
19544
  var init_swift_pdf_raster = __esm({
19509
19545
  "src/swift-pdf-raster.ts"() {
19510
19546
  "use strict";
19511
19547
  import_node_child_process55 = require("node:child_process");
19512
19548
  import_node_fs112 = __toESM(require("node:fs"), 1);
19513
19549
  import_node_os23 = __toESM(require("node:os"), 1);
19514
- import_node_path114 = __toESM(require("node:path"), 1);
19550
+ import_node_path115 = __toESM(require("node:path"), 1);
19515
19551
  init_internal_child_contract();
19516
19552
  init_self_invocation();
19517
19553
  init_home_paths();
@@ -19530,16 +19566,16 @@ var init_swift_standin_config = __esm({
19530
19566
  });
19531
19567
 
19532
19568
  // src/swift-host.ts
19533
- var import_node_async_hooks2, import_node_child_process56, import_node_crypto68, import_node_fs113, import_node_os24, import_node_path115, projectScope, layoutScope, IOS_SDK_FRAMEWORKS;
19569
+ var import_node_async_hooks2, import_node_child_process56, import_node_crypto69, import_node_fs113, import_node_os24, import_node_path116, projectScope, layoutScope, IOS_SDK_FRAMEWORKS;
19534
19570
  var init_swift_host = __esm({
19535
19571
  "src/swift-host.ts"() {
19536
19572
  "use strict";
19537
19573
  import_node_async_hooks2 = require("node:async_hooks");
19538
19574
  import_node_child_process56 = require("node:child_process");
19539
- import_node_crypto68 = require("node:crypto");
19575
+ import_node_crypto69 = require("node:crypto");
19540
19576
  import_node_fs113 = __toESM(require("node:fs"), 1);
19541
19577
  import_node_os24 = __toESM(require("node:os"), 1);
19542
- import_node_path115 = __toESM(require("node:path"), 1);
19578
+ import_node_path116 = __toESM(require("node:path"), 1);
19543
19579
  init_pngHeader();
19544
19580
  init_nativeSdkBindingContract();
19545
19581
  init_nativeWasmContract();
@@ -19587,13 +19623,13 @@ var init_swift_host = __esm({
19587
19623
  });
19588
19624
 
19589
19625
  // src/installed-native-libraries.ts
19590
- var import_node_fs114, import_node_module15, import_node_path116;
19626
+ var import_node_fs114, import_node_module15, import_node_path117;
19591
19627
  var init_installed_native_libraries = __esm({
19592
19628
  "src/installed-native-libraries.ts"() {
19593
19629
  "use strict";
19594
19630
  import_node_fs114 = __toESM(require("node:fs"), 1);
19595
19631
  import_node_module15 = require("node:module");
19596
- import_node_path116 = __toESM(require("node:path"), 1);
19632
+ import_node_path117 = __toESM(require("node:path"), 1);
19597
19633
  init_is_record();
19598
19634
  init_native_static_libraries();
19599
19635
  init_swift_source_file();
@@ -19603,15 +19639,15 @@ var init_installed_native_libraries = __esm({
19603
19639
  });
19604
19640
 
19605
19641
  // src/turbo-codegen-intake.ts
19606
- var import_node_child_process57, import_node_crypto69, import_node_fs115, import_node_module16, import_node_path117, import_node_util12, run5;
19642
+ var import_node_child_process57, import_node_crypto70, import_node_fs115, import_node_module16, import_node_path118, import_node_util12, run5;
19607
19643
  var init_turbo_codegen_intake = __esm({
19608
19644
  "src/turbo-codegen-intake.ts"() {
19609
19645
  "use strict";
19610
19646
  import_node_child_process57 = require("node:child_process");
19611
- import_node_crypto69 = require("node:crypto");
19647
+ import_node_crypto70 = require("node:crypto");
19612
19648
  import_node_fs115 = __toESM(require("node:fs"), 1);
19613
19649
  import_node_module16 = require("node:module");
19614
- import_node_path117 = __toESM(require("node:path"), 1);
19650
+ import_node_path118 = __toESM(require("node:path"), 1);
19615
19651
  import_node_util12 = require("node:util");
19616
19652
  init_forked_script_contract();
19617
19653
  init_is_record();
@@ -19622,13 +19658,13 @@ var init_turbo_codegen_intake = __esm({
19622
19658
  });
19623
19659
 
19624
19660
  // src/turbo-source.ts
19625
- var import_node_crypto70, import_node_fs116, import_node_path118;
19661
+ var import_node_crypto71, import_node_fs116, import_node_path119;
19626
19662
  var init_turbo_source = __esm({
19627
19663
  "src/turbo-source.ts"() {
19628
19664
  "use strict";
19629
- import_node_crypto70 = require("node:crypto");
19665
+ import_node_crypto71 = require("node:crypto");
19630
19666
  import_node_fs116 = __toESM(require("node:fs"), 1);
19631
- import_node_path118 = __toESM(require("node:path"), 1);
19667
+ import_node_path119 = __toESM(require("node:path"), 1);
19632
19668
  init_cocoapods_trunk();
19633
19669
  init_installed_native_libraries();
19634
19670
  init_pod_sources();
@@ -19646,17 +19682,17 @@ var init_turbo_source = __esm({
19646
19682
  });
19647
19683
 
19648
19684
  // src/expo-swift-host.ts
19649
- var import_node_async_hooks3, import_node_child_process58, import_node_crypto71, import_node_fs117, import_node_module17, import_node_os25, import_node_path119, import_node_url5, import_node_util13, run6, scriptEnv, traceStore, openPreparations;
19685
+ var import_node_async_hooks3, import_node_child_process58, import_node_crypto72, import_node_fs117, import_node_module17, import_node_os25, import_node_path120, import_node_url5, import_node_util13, run6, scriptEnv, traceStore, openPreparations;
19650
19686
  var init_expo_swift_host = __esm({
19651
19687
  "src/expo-swift-host.ts"() {
19652
19688
  "use strict";
19653
19689
  import_node_async_hooks3 = require("node:async_hooks");
19654
19690
  import_node_child_process58 = require("node:child_process");
19655
- import_node_crypto71 = require("node:crypto");
19691
+ import_node_crypto72 = require("node:crypto");
19656
19692
  import_node_fs117 = __toESM(require("node:fs"), 1);
19657
19693
  import_node_module17 = require("node:module");
19658
19694
  import_node_os25 = __toESM(require("node:os"), 1);
19659
- import_node_path119 = __toESM(require("node:path"), 1);
19695
+ import_node_path120 = __toESM(require("node:path"), 1);
19660
19696
  import_node_url5 = require("node:url");
19661
19697
  import_node_util13 = require("node:util");
19662
19698
  init_expo_eager_seam_contract();
@@ -19720,14 +19756,14 @@ function expoPodsBundleInputs(podKeys, oneSDK = false) {
19720
19756
  )
19721
19757
  };
19722
19758
  }
19723
- var import_node_child_process59, import_node_fs118, import_node_os26, import_node_path120, v9, sliceTargetSchema, resourceBundleSchema, sliceManifestSchema, expoAppBundleEntryUrl;
19759
+ var import_node_child_process59, import_node_fs118, import_node_os26, import_node_path121, v9, sliceTargetSchema, resourceBundleSchema, sliceManifestSchema, expoAppBundleEntryUrl;
19724
19760
  var init_native_package_slice = __esm({
19725
19761
  "src/native-package-slice.ts"() {
19726
19762
  "use strict";
19727
19763
  import_node_child_process59 = require("node:child_process");
19728
19764
  import_node_fs118 = __toESM(require("node:fs"), 1);
19729
19765
  import_node_os26 = __toESM(require("node:os"), 1);
19730
- import_node_path120 = __toESM(require("node:path"), 1);
19766
+ import_node_path121 = __toESM(require("node:path"), 1);
19731
19767
  v9 = __toESM(require("peachsim/vendor/valibot"), 1);
19732
19768
  init_expo_swift_host();
19733
19769
  init_expoSwiftContract();
@@ -19804,10 +19840,10 @@ async function expoPodPackages(appRoot) {
19804
19840
  const answered = peachAnsweredNativePackages();
19805
19841
  return (await expoAutolinkedPackages(appRoot)).flatMap((pod) => {
19806
19842
  const [swiftModule] = pod.swiftModuleNames;
19807
- if (swiftModule === void 0 || pod.swiftModuleNames.length !== 1 || !pod.hasRegistrations || answered.has(pod.name) || !pod.root.split(import_node_path121.default.sep).includes("node_modules"))
19843
+ if (swiftModule === void 0 || pod.swiftModuleNames.length !== 1 || !pod.hasRegistrations || answered.has(pod.name) || !pod.root.split(import_node_path122.default.sep).includes("node_modules"))
19808
19844
  return [];
19809
19845
  const manifest = JSON.parse(
19810
- import_node_fs119.default.readFileSync(import_node_path121.default.join(pod.root, "package.json"), "utf8")
19846
+ import_node_fs119.default.readFileSync(import_node_path122.default.join(pod.root, "package.json"), "utf8")
19811
19847
  );
19812
19848
  const version = isRecord(manifest) ? manifest.version : null;
19813
19849
  if (typeof version !== "string")
@@ -19914,12 +19950,12 @@ async function prebuiltExpoPods(appRoot) {
19914
19950
  failures: []
19915
19951
  };
19916
19952
  }
19917
- var import_node_fs119, import_node_path121, expoPodEntryName, expoPodEntryUrl, published;
19953
+ var import_node_fs119, import_node_path122, expoPodEntryName, expoPodEntryUrl, published;
19918
19954
  var init_expo_pod_prebuilt = __esm({
19919
19955
  "src/expo-pod-prebuilt.ts"() {
19920
19956
  "use strict";
19921
19957
  import_node_fs119 = __toESM(require("node:fs"), 1);
19922
- import_node_path121 = __toESM(require("node:path"), 1);
19958
+ import_node_path122 = __toESM(require("node:path"), 1);
19923
19959
  init_answeredNativePackages();
19924
19960
  init_expo_autolinking();
19925
19961
  init_expo_native_compiler_digest();
@@ -22554,7 +22590,7 @@ function* rubyFiles(directory, seen, iosRoot = false) {
22554
22590
  const files = [];
22555
22591
  for (const entry of entries.sort((a, b) => a.name.localeCompare(b.name))) {
22556
22592
  if (iosRoot && (entry.name === "Pods" || entry.name === "build")) continue;
22557
- const target = import_node_path122.default.join(directory, entry.name);
22593
+ const target = import_node_path123.default.join(directory, entry.name);
22558
22594
  let isDirectory = entry.directory;
22559
22595
  if (entry.symbolicLink)
22560
22596
  isDirectory = (yield { type: "isDirectory", path: target }) === true;
@@ -22567,7 +22603,7 @@ function* nativeBuildOptionsWalk(projectRoot, versions, environment) {
22567
22603
  let sensorOptions = {};
22568
22604
  const sensors = versions["expo-sensors"];
22569
22605
  if (sensors && resolveCompatVersionRange([">=58.0.4 <59.0.0"], sensors).status === "matched") {
22570
- const file = import_node_path122.default.join(projectRoot, "ios", "Podfile.properties.json");
22606
+ const file = import_node_path123.default.join(projectRoot, "ios", "Podfile.properties.json");
22571
22607
  const source = yield { type: "read", path: file };
22572
22608
  if (source !== null && typeof source !== "string")
22573
22609
  throw new Error(`cannot inspect ${file}`);
@@ -22583,8 +22619,8 @@ function* nativeBuildOptionsWalk(projectRoot, versions, environment) {
22583
22619
  if (!needsRiveOptions(versions)) return sensorOptions;
22584
22620
  if (environment.USE_RIVE_LEGACY === "1" || environment.USE_RIVE_LEGACY === "true")
22585
22621
  return { ...sensorOptions, [RIVE_PACKAGE]: { USE_RIVE_LEGACY: true } };
22586
- const ios = import_node_path122.default.join(projectRoot, "ios");
22587
- const podfile = import_node_path122.default.join(ios, "Podfile");
22622
+ const ios = import_node_path123.default.join(projectRoot, "ios");
22623
+ const podfile = import_node_path123.default.join(ios, "Podfile");
22588
22624
  const files = [podfile, ...yield* rubyFiles(ios, /* @__PURE__ */ new Set(), true)];
22589
22625
  let value = false;
22590
22626
  let assigned = false;
@@ -22612,12 +22648,12 @@ async function readInstalledNativeBuildOptionsAsync(projectRoot, versions, envir
22612
22648
  step = walk2.next(await answerAsync(step.value));
22613
22649
  }
22614
22650
  }
22615
- var import_node_fs120, import_node_path122, RIVE_PACKAGE, RIVE_05;
22651
+ var import_node_fs120, import_node_path123, RIVE_PACKAGE, RIVE_05;
22616
22652
  var init_installed_native_build_options = __esm({
22617
22653
  "src/installed-native-build-options.ts"() {
22618
22654
  "use strict";
22619
22655
  import_node_fs120 = __toESM(require("node:fs"), 1);
22620
- import_node_path122 = __toESM(require("node:path"), 1);
22656
+ import_node_path123 = __toESM(require("node:path"), 1);
22621
22657
  init_version_range();
22622
22658
  RIVE_PACKAGE = "@rive-app/react-native";
22623
22659
  RIVE_05 = [">=0.5.0 <0.6.0"];
@@ -23083,24 +23119,24 @@ var init_dev_bundle_resolution = __esm({
23083
23119
  });
23084
23120
 
23085
23121
  // src/settings-bundle.ts
23086
- var import_promises13, import_node_path123;
23122
+ var import_promises13, import_node_path124;
23087
23123
  var init_settings_bundle = __esm({
23088
23124
  "src/settings-bundle.ts"() {
23089
23125
  "use strict";
23090
23126
  import_promises13 = require("node:fs/promises");
23091
- import_node_path123 = require("node:path");
23127
+ import_node_path124 = require("node:path");
23092
23128
  init_is_record();
23093
23129
  init_plist();
23094
23130
  }
23095
23131
  });
23096
23132
 
23097
23133
  // scripts/optional-demo-registry.ts
23098
- var import_node_fs121, import_node_path124, import_node_url6;
23134
+ var import_node_fs121, import_node_path125, import_node_url6;
23099
23135
  var init_optional_demo_registry = __esm({
23100
23136
  "scripts/optional-demo-registry.ts"() {
23101
23137
  "use strict";
23102
23138
  import_node_fs121 = require("node:fs");
23103
- import_node_path124 = require("node:path");
23139
+ import_node_path125 = require("node:path");
23104
23140
  import_node_url6 = require("node:url");
23105
23141
  }
23106
23142
  });
@@ -23522,7 +23558,7 @@ function resolveProcessCwd(pid) {
23522
23558
  kickCwdFlush();
23523
23559
  });
23524
23560
  }
23525
- var import_child_process, import_promises14, import_http, import_net, import_node_fs122, import_node_os27, import_node_path125, LISTENER_LOCK_PATH, LISTENER_RESULT_PATH, LISTENER_LOCK_STALE_MS, LISTENER_LOCK_WAIT_MS, FALLBACK_PORTS, LISTING_TIMEOUT_MS, LISTENER_CACHE_MS, listenerCache, inflightListing, listenerHolds, cwdByPid, cwdQueue, cwdFlushing;
23561
+ var import_child_process, import_promises14, import_http, import_net, import_node_fs122, import_node_os27, import_node_path126, LISTENER_LOCK_PATH, LISTENER_RESULT_PATH, LISTENER_LOCK_STALE_MS, LISTENER_LOCK_WAIT_MS, FALLBACK_PORTS, LISTING_TIMEOUT_MS, LISTENER_CACHE_MS, listenerCache, inflightListing, listenerHolds, cwdByPid, cwdQueue, cwdFlushing;
23526
23562
  var init_dev_server_scanner = __esm({
23527
23563
  "scripts/dev-server-scanner.ts"() {
23528
23564
  "use strict";
@@ -23532,7 +23568,7 @@ var init_dev_server_scanner = __esm({
23532
23568
  import_net = __toESM(require("net"), 1);
23533
23569
  import_node_fs122 = require("node:fs");
23534
23570
  import_node_os27 = require("node:os");
23535
- import_node_path125 = require("node:path");
23571
+ import_node_path126 = require("node:path");
23536
23572
  init_kotlinDiscoveryContract();
23537
23573
  init_swiftDiscoveryContract();
23538
23574
  init_backend_origin();
@@ -23542,8 +23578,8 @@ var init_dev_server_scanner = __esm({
23542
23578
  init_native_dev_bundle_url();
23543
23579
  init_settings_bundle();
23544
23580
  init_optional_demo_registry();
23545
- LISTENER_LOCK_PATH = (0, import_node_path125.join)((0, import_node_os27.tmpdir)(), "peach-listener-scan.lock");
23546
- LISTENER_RESULT_PATH = (0, import_node_path125.join)((0, import_node_os27.tmpdir)(), "peach-listener-scan.result");
23581
+ LISTENER_LOCK_PATH = (0, import_node_path126.join)((0, import_node_os27.tmpdir)(), "peach-listener-scan.lock");
23582
+ LISTENER_RESULT_PATH = (0, import_node_path126.join)((0, import_node_os27.tmpdir)(), "peach-listener-scan.result");
23547
23583
  LISTENER_LOCK_STALE_MS = 25e3;
23548
23584
  LISTENER_LOCK_WAIT_MS = 8e3;
23549
23585
  FALLBACK_PORTS = [
@@ -23672,7 +23708,7 @@ function cliCompanionPath() {
23672
23708
  return `node/cli-${runtime_companion_default.sha256}.cjs`;
23673
23709
  }
23674
23710
  function verifyCliCompanion(root) {
23675
- verifyCompanionFile((0, import_node_path126.join)(root, cliCompanionPath()));
23711
+ verifyCompanionFile((0, import_node_path127.join)(root, cliCompanionPath()));
23676
23712
  }
23677
23713
  function verifyCompanionFile(file) {
23678
23714
  let bytes;
@@ -23685,7 +23721,7 @@ function verifyCompanionFile(file) {
23685
23721
  }
23686
23722
  throw error;
23687
23723
  }
23688
- const hash = (0, import_node_crypto72.createHash)("sha256").update(bytes).digest("hex");
23724
+ const hash = (0, import_node_crypto73.createHash)("sha256").update(bytes).digest("hex");
23689
23725
  if (hash !== runtime_companion_default.sha256) {
23690
23726
  throw new Error(
23691
23727
  "Peach runtime companion does not match this CLI; run `peach runtime install`"
@@ -23697,7 +23733,7 @@ function getCliRuntime() {
23697
23733
  const root = peachRuntimeRoot();
23698
23734
  verifyCliCompanion(root);
23699
23735
  const require2 = (0, import_node_module18.createRequire)(__sootsim_import_meta_url);
23700
- const runtime = require2((0, import_node_path126.join)(root, cliCompanionPath()));
23736
+ const runtime = require2((0, import_node_path127.join)(root, cliCompanionPath()));
23701
23737
  if (runtime.cliCompanionAbi !== CLI_COMPANION_ABI) {
23702
23738
  throw new Error(
23703
23739
  "Incompatible Peach runtime companion ABI; run `peach runtime install`"
@@ -23707,14 +23743,14 @@ function getCliRuntime() {
23707
23743
  loaded = { root, runtime };
23708
23744
  return runtime;
23709
23745
  }
23710
- var import_node_crypto72, import_node_fs123, import_node_module18, import_node_path126, CLI_COMPANION_ABI, loaded;
23746
+ var import_node_crypto73, import_node_fs123, import_node_module18, import_node_path127, CLI_COMPANION_ABI, loaded;
23711
23747
  var init_cli_runtime = __esm({
23712
23748
  "src/cli-runtime.ts"() {
23713
23749
  "use strict";
23714
- import_node_crypto72 = require("node:crypto");
23750
+ import_node_crypto73 = require("node:crypto");
23715
23751
  import_node_fs123 = require("node:fs");
23716
23752
  import_node_module18 = require("node:module");
23717
- import_node_path126 = require("node:path");
23753
+ import_node_path127 = require("node:path");
23718
23754
  init_src();
23719
23755
  init_runtime_companion();
23720
23756
  init_answeredNativePackages();