peachsim 0.1.2629 → 0.1.2631

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/cli/account-gate.ts +1 -1
  2. package/cli/catalog/content.ts +2 -2
  3. package/cli/commands/auth.ts +1 -1
  4. package/cli/packaged-app-launcher.ts +4 -8
  5. package/dist-lib/agent-daemon-client.cjs +1 -1
  6. package/dist-lib/agent-events.cjs +1 -1
  7. package/dist-lib/attached-projects.cjs +1 -1
  8. package/dist-lib/auth/shared-session.cjs +1 -1
  9. package/dist-lib/backend-origin.cjs +1 -1
  10. package/dist-lib/beta.cjs +1 -1
  11. package/dist-lib/beta.mjs +2 -2
  12. package/dist-lib/bridge-constants.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.mjs +5 -5
  15. package/dist-lib/bridge-contract.cjs +1 -1
  16. package/dist-lib/bridge-contract.mjs +3 -3
  17. package/dist-lib/bundle-channel.cjs +416 -379
  18. package/dist-lib/capture-contract.cjs +1 -1
  19. package/dist-lib/capture-contract.mjs +3 -3
  20. package/dist-lib/cloud-contract.cjs +1 -1
  21. package/dist-lib/cloud-contract.mjs +3 -3
  22. package/dist-lib/cloud-test-args.cjs +1 -1
  23. package/dist-lib/cloud-test-args.mjs +2 -2
  24. package/dist-lib/cloud.cjs +1 -1
  25. package/dist-lib/cloud.mjs +7 -7
  26. package/dist-lib/config.cjs +1 -1
  27. package/dist-lib/config.mjs +5 -5
  28. package/dist-lib/detox/index.cjs +2 -2
  29. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  30. package/dist-lib/esm-chunks/{acorn-E5JAGRDW.mjs → acorn-7DLOSSGJ.mjs} +3 -3
  31. package/dist-lib/esm-chunks/{chunk-YKIVCIOD.mjs → chunk-2MIY5LWZ.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-IVSHW2EC.mjs → chunk-35WTOLPU.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-SPU4VQ6D.mjs → chunk-4NOCPEZV.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-7DRVIEKW.mjs → chunk-52LQU6KM.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-6U767UHV.mjs → chunk-65PXITDP.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-KDXWCZBA.mjs → chunk-7GVWD2ZZ.mjs} +4 -4
  37. package/dist-lib/esm-chunks/{chunk-H25GQX6F.mjs → chunk-7XXWHD4Z.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-OCLUXNZU.mjs → chunk-ADCZCGOK.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-LQHNDX4Q.mjs → chunk-AUA4IU5L.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-TYVPRRAR.mjs → chunk-C7T3IOKJ.mjs} +6 -6
  41. package/dist-lib/esm-chunks/{chunk-P63F7LKY.mjs → chunk-EPL5T5KJ.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-6QMYLKZP.mjs → chunk-G2DPWI2E.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-VDF4YUN7.mjs → chunk-G3YXVX64.mjs} +2 -2
  44. package/dist-lib/esm-chunks/{chunk-5SMYASDG.mjs → chunk-K4OI3TT4.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-EOTAFN2Q.mjs → chunk-KJR65YDV.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-GHLYKQNM.mjs → chunk-LYCGP7O6.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-VLKLYKLA.mjs → chunk-N5J2AFAF.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-FLE6NMNZ.mjs → chunk-OONGCBG4.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-DXLALQTA.mjs → chunk-OXPXOJU5.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-SCXEJLC3.mjs → chunk-R7PURFHU.mjs} +5 -5
  51. package/dist-lib/esm-chunks/{chunk-W75PSO7E.mjs → chunk-RBFK7FKY.mjs} +14 -14
  52. package/dist-lib/esm-chunks/{chunk-W57OZLB2.mjs → chunk-VKLDBSRY.mjs} +3 -3
  53. package/dist-lib/esm-chunks/{chunk-HLZCUNGE.mjs → chunk-VLB4FGOY.mjs} +1 -1
  54. package/dist-lib/esm-chunks/{chunk-TLKSW7PF.mjs → chunk-WVAQGZOD.mjs} +6 -6
  55. package/dist-lib/esm-chunks/{metro-layout-parser-T2QYPSP2.mjs → metro-layout-parser-6L4CV45O.mjs} +3 -3
  56. package/dist-lib/esm-chunks/{swift-package-prebuilt-BLEHWD5X.mjs → swift-package-prebuilt-YQDUJ675.mjs} +12 -12
  57. package/dist-lib/esm-chunks/{swift-sdk-app-module-G4XL3NCF.mjs → swift-sdk-app-module-COPWXYFO.mjs} +16 -16
  58. package/dist-lib/esm-chunks/{swift-sdk-image-GAR2XSCC.mjs → swift-sdk-image-5EDOCTIV.mjs} +16 -16
  59. package/dist-lib/esm-chunks/{swift-sdk-image-producer-ZUFWIPMI.mjs → swift-sdk-image-producer-ZNM5PNG5.mjs} +5 -5
  60. package/dist-lib/expo-swift-bundle.cjs +1 -1
  61. package/dist-lib/expo-swift-metadata.cjs +1 -1
  62. package/dist-lib/expo-swift-metadata.mjs +7 -7
  63. package/dist-lib/home-paths.cjs +1 -1
  64. package/dist-lib/host/bridge-host.cjs +87 -63
  65. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  66. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  67. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  68. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  69. package/dist-lib/host/websocket-proxy.cjs +1 -1
  70. package/dist-lib/index.cjs +1 -1
  71. package/dist-lib/kotlin-host.cjs +1 -1
  72. package/dist-lib/menu.cjs +1 -1
  73. package/dist-lib/menu.mjs +3 -3
  74. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  75. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  76. package/dist-lib/metro-production-bundle.cjs +1 -1
  77. package/dist-lib/metro-production-bundle.mjs +4 -4
  78. package/dist-lib/native-app-identity-project.cjs +1 -1
  79. package/dist-lib/native-app-identity-project.mjs +15 -15
  80. package/dist-lib/native-app-identity.cjs +1 -1
  81. package/dist-lib/native-app-identity.mjs +6 -6
  82. package/dist-lib/native-firebase-metadata.cjs +1 -1
  83. package/dist-lib/native-firebase-metadata.mjs +3 -3
  84. package/dist-lib/pdfium-raster.cjs +1 -1
  85. package/dist-lib/pdfium-raster.mjs +2 -2
  86. package/dist-lib/plist.cjs +1 -1
  87. package/dist-lib/plist.mjs +3 -3
  88. package/dist-lib/profiles.cjs +1 -1
  89. package/dist-lib/public-brand.cjs +1 -1
  90. package/dist-lib/public-origins-lib-esm.json +85 -85
  91. package/dist-lib/public-origins-lib.json +66 -65
  92. package/dist-lib/react-native-host-modules.cjs +1 -1
  93. package/dist-lib/react-native-host-modules.mjs +2 -2
  94. package/dist-lib/reap-browser.cjs +1 -1
  95. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  96. package/dist-lib/sdk.cjs +1 -1
  97. package/dist-lib/sdk.mjs +8 -8
  98. package/dist-lib/skills.cjs +32 -15
  99. package/dist-lib/swift-compile.cjs +1 -1
  100. package/dist-lib/swift-compile.mjs +12 -12
  101. package/dist-lib/swift-package.cjs +1 -1
  102. package/dist-lib/swift-package.mjs +3 -3
  103. package/dist-lib/swift-submit.cjs +1 -1
  104. package/dist-lib/swift-submit.mjs +6 -6
  105. package/dist-lib/swift-svg-raster.cjs +1 -1
  106. package/dist-lib/swift-svg-raster.mjs +2 -2
  107. package/dist-lib/swift-toolchain.cjs +1 -1
  108. package/dist-lib/swift.cjs +1 -1
  109. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  110. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  111. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  112. package/dist-lib/vendor/acorn.cjs +1 -1
  113. package/dist-lib/vendor/magic-string.cjs +1 -1
  114. package/dist-lib/vendor/stream-json.cjs +1 -1
  115. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  116. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  117. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  118. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  119. package/dist-lib/vendor/sucrase.cjs +1 -1
  120. package/dist-lib/vendor/terser.cjs +1 -1
  121. package/dist-lib/vendor/valibot.cjs +1 -1
  122. package/dist-lib/vendor/ws.cjs +1 -1
  123. package/dist-lib/vendor/zod.cjs +1 -1
  124. package/dist-lib/worklet-executable.cjs +1 -1
  125. package/dist-lib/worklet-executable.mjs +3 -3
  126. package/package.json +1 -1
  127. package/runtime-companion.json +1 -1
  128. package/skills/peach-test/SKILL.md +1 -1
  129. package/src/host/app-package-handler.ts +26 -5
  130. package/src/host/staged-host-files.ts +5 -4
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2629 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2631 | (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;
@@ -273,8 +273,8 @@ function getDefaultPortForProtocol(protocol) {
273
273
  return protocol === "https:" ? 443 : 80;
274
274
  }
275
275
  function isBaseServerUrl(url) {
276
- const path143 = url.pathname || "/";
277
- return (path143 === "/" || path143 === "") && !url.search && !url.hash;
276
+ const path144 = url.pathname || "/";
277
+ return (path144 === "/" || path144 === "") && !url.search && !url.hash;
278
278
  }
279
279
  async function resolvePortViaServerScan(port) {
280
280
  try {
@@ -1297,7 +1297,7 @@ var init_src = __esm({
1297
1297
  var runtime_companion_default;
1298
1298
  var init_runtime_companion = __esm({
1299
1299
  "runtime-companion.json"() {
1300
- runtime_companion_default = { abi: 1, sha256: "2b37b71915c104077197a17ad718a9a30289d140ac9b6693e255c3bbbba81af6", file: "node/cli-2b37b71915c104077197a17ad718a9a30289d140ac9b6693e255c3bbbba81af6.cjs" };
1300
+ runtime_companion_default = { abi: 1, sha256: "2ba4bb05155d2c11e83e7c474cf736d0986b21d49a3e498d86e72ed4f70283f2", file: "node/cli-2ba4bb05155d2c11e83e7c474cf736d0986b21d49a3e498d86e72ed4f70283f2.cjs" };
1301
1301
  }
1302
1302
  });
1303
1303
 
@@ -5813,8 +5813,8 @@ function metadataValue(value, key2) {
5813
5813
  if (!value || typeof value !== "object") return void 0;
5814
5814
  return Object.getOwnPropertyDescriptor(value, key2)?.value;
5815
5815
  }
5816
- function readProjectJson(path143, files2 = nodeRepoFileReader) {
5817
- const text7 = readProjectMetadata(path143, files2);
5816
+ function readProjectJson(path144, files2 = nodeRepoFileReader) {
5817
+ const text7 = readProjectMetadata(path144, files2);
5818
5818
  if (text7 === null) return null;
5819
5819
  try {
5820
5820
  const value = JSON.parse(text7);
@@ -6071,16 +6071,16 @@ function createGitignoreMatcher() {
6071
6071
  return matcher;
6072
6072
  },
6073
6073
  test(relativePath2) {
6074
- const { path: path143, isDirectory: isDirectory5 } = normalizePath(relativePath2);
6075
- if (!path143) return { ignored: false, unignored: false };
6076
- const parts = path143.split("/");
6074
+ const { path: path144, isDirectory: isDirectory5 } = normalizePath(relativePath2);
6075
+ if (!path144) return { ignored: false, unignored: false };
6076
+ const parts = path144.split("/");
6077
6077
  let prefix = "";
6078
6078
  for (let i = 0; i < parts.length - 1; i++) {
6079
6079
  prefix = prefix ? `${prefix}/${parts[i]}` : parts[i];
6080
6080
  const parent = matchSingle(prefix, true);
6081
6081
  if (parent.ignored) return { ignored: true, unignored: false };
6082
6082
  }
6083
- return matchSingle(path143, isDirectory5);
6083
+ return matchSingle(path144, isDirectory5);
6084
6084
  },
6085
6085
  ignores(relativePath2) {
6086
6086
  return matcher.test(relativePath2).ignored;
@@ -10689,8 +10689,8 @@ export *
10689
10689
  }`;
10690
10690
  }
10691
10691
  function swiftPackageIdentity(url) {
10692
- const path143 = url.endsWith("/") ? url.slice(0, -1) : url;
10693
- return (path143.split("/").pop() ?? path143).replace(/\.git$/, "").toLowerCase();
10692
+ const path144 = url.endsWith("/") ? url.slice(0, -1) : url;
10693
+ return (path144.split("/").pop() ?? path144).replace(/\.git$/, "").toLowerCase();
10694
10694
  }
10695
10695
  function clangSettingEntries(settings, tool) {
10696
10696
  return (settings ?? []).flatMap(
@@ -11336,10 +11336,10 @@ function synthesizedInterfaceEnums(interfaceText, module2, graphs2) {
11336
11336
  const enclosing = scopes.length > 0 ? scopes[scopes.length - 1].prefix : [];
11337
11337
  if (scope2?.[3] === "enum" && opens > 0 && /(^|\s)(public|open)\s/.test(scope2[2] ?? "") && !/\bwhere\b/.test(first.masked) && first.masked[scope2.index + scope2[0].length] !== "<") {
11338
11338
  const name3 = scope2[4];
11339
- const path143 = scopeOf(name3, enclosing, false);
11340
- if (!byPath.has(path143.join(".")) && (path143.length === 1 || byPath.has(path143.slice(0, -1).join(".")))) {
11339
+ const path144 = scopeOf(name3, enclosing, false);
11340
+ if (!byPath.has(path144.join(".")) && (path144.length === 1 || byPath.has(path144.slice(0, -1).join(".")))) {
11341
11341
  const keptAttrs = [...(scope2[1] ?? "").matchAll(/@\w+(?:\([^)]*\))?/g)].map((attr) => attr[0]).filter((attr) => !attr.startsWith("@objc"));
11342
- const id = `s:peach-synthesized-${module2}-${path143.join(".")}`;
11342
+ const id = `s:peach-synthesized-${module2}-${path144.join(".")}`;
11343
11343
  const body = [];
11344
11344
  let inner = 1;
11345
11345
  let closed = false;
@@ -11394,15 +11394,15 @@ function synthesizedInterfaceEnums(interfaceText, module2, graphs2) {
11394
11394
  symbols.push({
11395
11395
  kind: { identifier: "swift.enum" },
11396
11396
  identifier: { precise: id },
11397
- pathComponents: path143,
11397
+ pathComponents: path144,
11398
11398
  declarationFragments: fragments,
11399
11399
  accessLevel: "public"
11400
11400
  });
11401
- if (path143.length > 1)
11401
+ if (path144.length > 1)
11402
11402
  relationships.push({
11403
11403
  kind: "memberOf",
11404
11404
  source: id,
11405
- target: byPath.get(path143.slice(0, -1).join("."))
11405
+ target: byPath.get(path144.slice(0, -1).join("."))
11406
11406
  });
11407
11407
  for (const kase of cases) {
11408
11408
  const memberId = `${id}-${kase.leaf}`;
@@ -11411,7 +11411,7 @@ function synthesizedInterfaceEnums(interfaceText, module2, graphs2) {
11411
11411
  symbols.push({
11412
11412
  kind: { identifier: "swift.enum.case" },
11413
11413
  identifier: { precise: memberId },
11414
- pathComponents: [...path143, kase.leaf],
11414
+ pathComponents: [...path144, kase.leaf],
11415
11415
  declarationFragments: [
11416
11416
  { kind: "keyword", spelling: "case" },
11417
11417
  { kind: "text", spelling: " " },
@@ -11427,7 +11427,7 @@ function synthesizedInterfaceEnums(interfaceText, module2, graphs2) {
11427
11427
  symbols.push({
11428
11428
  kind: { identifier: "swift.init" },
11429
11429
  identifier: { precise: initId },
11430
- pathComponents: [...path143, "init(rawValue:)"],
11430
+ pathComponents: [...path144, "init(rawValue:)"],
11431
11431
  declarationFragments: [
11432
11432
  { kind: "keyword", spelling: "init" },
11433
11433
  { kind: "text", spelling: "?(" },
@@ -11506,7 +11506,7 @@ function emitSwiftStandin(sourceGraphs, options2) {
11506
11506
  })
11507
11507
  )
11508
11508
  );
11509
- const trap = (path143) => `fatalError("${path143} is ${options2.placeholder === void 0 ? "a binary framework" : "a placeholder"} peach cannot run")`;
11509
+ const trap = (path144) => `fatalError("${path144} is ${options2.placeholder === void 0 ? "a binary framework" : "a placeholder"} peach cannot run")`;
11510
11510
  const skipped = [];
11511
11511
  const behavior = options2.behavior ?? /* @__PURE__ */ new Map();
11512
11512
  const used = /* @__PURE__ */ new Set();
@@ -11857,34 +11857,34 @@ function emitSwiftStandin(sourceGraphs, options2) {
11857
11857
  lines.push(...physical);
11858
11858
  owners.push(...physical.map(() => current2));
11859
11859
  };
11860
- const emitAt = (path143, line) => {
11861
- if (omit.has(path143)) return;
11860
+ const emitAt = (path144, line) => {
11861
+ if (omit.has(path144)) return;
11862
11862
  const previous = current2;
11863
- current2 = path143;
11863
+ current2 = path144;
11864
11864
  emit(line);
11865
11865
  current2 = previous;
11866
11866
  };
11867
11867
  const emitInertState = (id, indent2, build2) => {
11868
- const path143 = pathOf(byId.get(id));
11868
+ const path144 = pathOf(byId.get(id));
11869
11869
  emitAt(hiddenInit(id), `${indent2}init(_peachInert: Void) { ${build2} }`);
11870
11870
  const list2 = conforms.get(id) ?? [];
11871
11871
  const has = (name3) => (children.get(id) ?? []).some((member) => leaf(member) === name3);
11872
11872
  if (list2.includes("Encodable") && !has("encode(to:)"))
11873
11873
  emitAt(
11874
- `${path143}.encode(to:)`,
11874
+ `${path144}.encode(to:)`,
11875
11875
  `${indent2}public func encode(to encoder: Encoder) throws {}`
11876
11876
  );
11877
11877
  if (list2.includes("Decodable") && !has("init(from:)"))
11878
11878
  emitAt(
11879
- `${path143}.init(from:)`,
11879
+ `${path144}.init(from:)`,
11880
11880
  `${indent2}public init(from decoder: Decoder) throws { self.init(_peachInert: ()) }`
11881
11881
  );
11882
11882
  };
11883
11883
  const scoped = (body) => (symbol2, ...rest) => {
11884
- const path143 = pathOf(symbol2);
11885
- if (omit.has(path143)) return void skipped.push({ path: path143, reason: omit.get(path143) });
11884
+ const path144 = pathOf(symbol2);
11885
+ if (omit.has(path144)) return void skipped.push({ path: path144, reason: omit.get(path144) });
11886
11886
  const previous = current2;
11887
- current2 = path143;
11887
+ current2 = path144;
11888
11888
  try {
11889
11889
  body(symbol2, ...rest);
11890
11890
  } finally {
@@ -11916,7 +11916,7 @@ function emitSwiftStandin(sourceGraphs, options2) {
11916
11916
  };
11917
11917
  const emitMember = scoped(
11918
11918
  (member, indent2, context) => {
11919
- const path143 = pathOf(member);
11919
+ const path144 = pathOf(member);
11920
11920
  if (TYPE_KINDS.has(member.kind.identifier)) {
11921
11921
  const origin = origins.get(member.identifier.precise)?.split(".")[0];
11922
11922
  const parent = owner.get(member.identifier.precise);
@@ -11933,7 +11933,7 @@ function emitSwiftStandin(sourceGraphs, options2) {
11933
11933
  ))
11934
11934
  return;
11935
11935
  if (!MEMBER_KINDS.has(member.kind.identifier)) {
11936
- skipped.push({ path: path143, reason: `unhandled ${member.kind.identifier}` });
11936
+ skipped.push({ path: path144, reason: `unhandled ${member.kind.identifier}` });
11937
11937
  return;
11938
11938
  }
11939
11939
  const { 1: spelledAttrs, 2: rest } = LEADING_ATTRS.exec(text(member));
@@ -11944,15 +11944,15 @@ function emitSwiftStandin(sourceGraphs, options2) {
11944
11944
  const selector = context.inClass && !options2.inert && member.kind.identifier === "swift.type.method" && !/\basync\b/.test(rest) ? /^c:objc\(cs\)\w+\(cm\)([A-Za-z_][A-Za-z_0-9:]*)$/.exec(
11945
11945
  member.identifier.precise
11946
11946
  )?.[1] : void 0;
11947
- const attrs = options2.unobjc?.has(path143) ? wrapped.replace(/@objc(?:\([^)]*\))?\s*/g, "") : `${wrapped}${selector ? `@objc(${selector}) ` : ""}`;
11947
+ const attrs = options2.unobjc?.has(path144) ? wrapped.replace(/@objc(?:\([^)]*\))?\s*/g, "") : `${wrapped}${selector ? `@objc(${selector}) ` : ""}`;
11948
11948
  const modifiers = /^((?:(?:required|final|override|convenience|unowned(?:\(\w+\))?|weak|lazy|nonisolated|mutating|nonmutating) )*)(.*)$/s.exec(
11949
11949
  rest
11950
11950
  );
11951
11951
  const flags = new Set(
11952
11952
  modifiers[1].trim().split(/\s+/).filter(Boolean).map((flag) => flag.replace(/\(.*/, ""))
11953
11953
  );
11954
- const requiredInit = context.inClass && !!options2.requiredInits?.has(path143);
11955
- const restatesRequired = context.inClass && path143.endsWith(".init()") && [...superChain(owner.get(member.identifier.precise) ?? "")].some(
11954
+ const requiredInit = context.inClass && !!options2.requiredInits?.has(path144);
11955
+ const restatesRequired = context.inClass && path144.endsWith(".init()") && [...superChain(owner.get(member.identifier.precise) ?? "")].some(
11956
11956
  (at) => options2.requiredInits?.has(`${pathOf(byId.get(at))}.init()`)
11957
11957
  );
11958
11958
  const protocolInit = member.kind.identifier === "swift.init" && /^c:objc\(pl\)\w+\(im\).*::SYNTHESIZED::c:objc\(cs\)/.test(
@@ -11962,7 +11962,7 @@ function emitSwiftStandin(sourceGraphs, options2) {
11962
11962
  const final = context.inClass && flags.has("final") ? "final " : "";
11963
11963
  const mutating = flags.has("mutating") ? "mutating " : flags.has("nonmutating") ? "nonmutating " : "";
11964
11964
  let core = `${flags.has("convenience") ? "convenience " : ""}${modifiers[2]}`;
11965
- for (const type of options2.unwrappedParameters?.get(path143) ?? [])
11965
+ for (const type of options2.unwrappedParameters?.get(path144) ?? [])
11966
11966
  core = core.replace(
11967
11967
  new RegExp(
11968
11968
  `(:\\s*(?:\\w+\\.)*${type.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})(?=\\s*[,)])`,
@@ -11970,12 +11970,12 @@ function emitSwiftStandin(sourceGraphs, options2) {
11970
11970
  ),
11971
11971
  "$1!"
11972
11972
  );
11973
- const override = context.inClass && !options2.plain?.has(path143) && !restatesRequired && (flags.has("override") || overrides.has(member.identifier.precise) || options2.forcedOverride?.has(path143) || isObjC(member) && path143.endsWith(".init()")) ? "override " : "";
11973
+ const override = context.inClass && !options2.plain?.has(path144) && !restatesRequired && (flags.has("override") || overrides.has(member.identifier.precise) || options2.forcedOverride?.has(path144) || isObjC(member) && path144.endsWith(".init()")) ? "override " : "";
11974
11974
  const head = `${indent2}${attrs}${access(member, context.openOwner)} ${required ? "required " : ""}${final}${override}${mutating}`;
11975
- const measured = behavior.get(path143);
11976
- if (measured) used.add(path143);
11975
+ const measured = behavior.get(path144);
11976
+ if (measured) used.add(path144);
11977
11977
  const overloadBody = /\basync\b/.test(core) ? measured?.asyncBody : /\bResult</.test(core) ? measured?.resultBody : void 0;
11978
- const body = overloadBody ?? measured?.body ?? (options2.inert ? inertBody(member) : trap(path143));
11978
+ const body = overloadBody ?? measured?.body ?? (options2.inert ? inertBody(member) : trap(path144));
11979
11979
  switch (member.kind.identifier) {
11980
11980
  case "swift.property":
11981
11981
  case "swift.type.property":
@@ -11988,13 +11988,13 @@ function emitSwiftStandin(sourceGraphs, options2) {
11988
11988
  const parameter = !measured && !options2.inert && !settable && /:\s*some\s/.test(decl) ? opaqueParameter(member) : void 0;
11989
11989
  const getter = parameter ? `return ({ () -> ${parameter} in ${body} })()` : body;
11990
11990
  const computed = decl.replace(/^((?:static |class )*)let /, "$1var ");
11991
- const wrapper = options2.projections?.get(path143);
11991
+ const wrapper = options2.projections?.get(path144);
11992
11992
  if (wrapper) {
11993
11993
  const type = /^var\s+`?\w+`?\s*:\s*(.+)$/s.exec(computed)?.[1];
11994
- const initial = type && inertValue(type, /* @__PURE__ */ new Set(), [path143]);
11994
+ const initial = type && inertValue(type, /* @__PURE__ */ new Set(), [path144]);
11995
11995
  if (!initial)
11996
11996
  return void skipped.push({
11997
- path: path143,
11997
+ path: path144,
11998
11998
  reason: `wrapped by ${wrapper} with no inert initial value`
11999
11999
  });
12000
12000
  const own2 = new RegExp(
@@ -12015,7 +12015,7 @@ function emitSwiftStandin(sourceGraphs, options2) {
12015
12015
  return;
12016
12016
  }
12017
12017
  emit(
12018
- `${head.replace(/@NSCopying\b\s*/g, "")}${computed} { get${effects} { ${getter} }${settable && !effects ? ` ${parsed2.nonmutating ? "nonmutating " : ""}set { ${measured?.set ?? (options2.inert ? "" : trap(path143))} }` : ""} }`
12018
+ `${head.replace(/@NSCopying\b\s*/g, "")}${computed} { get${effects} { ${getter} }${settable && !effects ? ` ${parsed2.nonmutating ? "nonmutating " : ""}set { ${measured?.set ?? (options2.inert ? "" : trap(path144))} }` : ""} }`
12019
12019
  );
12020
12020
  return;
12021
12021
  }
@@ -12074,7 +12074,7 @@ function emitSwiftStandin(sourceGraphs, options2) {
12074
12074
  };
12075
12075
  const emitType = scoped(
12076
12076
  (symbol2, indent2) => {
12077
- const path143 = pathOf(symbol2);
12077
+ const path144 = pathOf(symbol2);
12078
12078
  const id = symbol2.identifier.precise;
12079
12079
  const inner = `${indent2} `;
12080
12080
  switch (symbol2.kind.identifier) {
@@ -12091,10 +12091,10 @@ function emitSwiftStandin(sourceGraphs, options2) {
12091
12091
  case "swift.class": {
12092
12092
  const shape = header(symbol2, "class", indent2);
12093
12093
  if (!shape)
12094
- return void skipped.push({ path: path143, reason: `unparsed class ${text(symbol2)}` });
12095
- const parent = options2.superclasses?.get(path143) ?? superclass.get(id);
12094
+ return void skipped.push({ path: path144, reason: `unparsed class ${text(symbol2)}` });
12095
+ const parent = options2.superclasses?.get(path144) ?? superclass.get(id);
12096
12096
  const blocked = classBlocked(id);
12097
- if (blocked) return void skipped.push({ path: path143, reason: blocked });
12097
+ if (blocked) return void skipped.push({ path: path144, reason: blocked });
12098
12098
  const ancestors = /* @__PURE__ */ new Set();
12099
12099
  const inherited = /* @__PURE__ */ new Set();
12100
12100
  for (let at = superId.get(id); at; at = superId.get(at)) {
@@ -12110,7 +12110,7 @@ function emitSwiftStandin(sourceGraphs, options2) {
12110
12110
  "Equatable",
12111
12111
  "CustomStringConvertible",
12112
12112
  "CustomDebugStringConvertible"
12113
- ].includes(name3)) && !(name3 === nsObjectProtocol && externalRoot(id) === nsObject) && !options2.unconformed?.get(path143)?.has(name3.split(/::|\./).pop()) && !options2.unconformed?.get(path143)?.has(name3)
12113
+ ].includes(name3)) && !(name3 === nsObjectProtocol && externalRoot(id) === nsObject) && !options2.unconformed?.get(path144)?.has(name3.split(/::|\./).pop()) && !options2.unconformed?.get(path144)?.has(name3)
12114
12114
  )
12115
12115
  ].filter((name3, at, all2) => all2.indexOf(name3) === at);
12116
12116
  const parentSymbol = superId.has(id) ? byId.get(superId.get(id)) : void 0;
@@ -12122,9 +12122,9 @@ function emitSwiftStandin(sourceGraphs, options2) {
12122
12122
  `${indent2}${shape.attrs}${objcName ? `@objc(${objcName}) ` : ""}${shape.final}${open ? "open" : "public"} class ${shape.name}${shape.generics}${list2.length ? `: ${list2.join(", ")}` : ""}${selfConforming(shape.where)} {`
12123
12123
  );
12124
12124
  const members2 = membersOf(id);
12125
- const extra = options2.behavior?.get(path143)?.members;
12125
+ const extra = options2.behavior?.get(path144)?.members;
12126
12126
  if (extra) {
12127
- used.add(path143);
12127
+ used.add(path144);
12128
12128
  emit(`${inner}${extra}`);
12129
12129
  }
12130
12130
  for (const member of members2)
@@ -12180,11 +12180,11 @@ function emitSwiftStandin(sourceGraphs, options2) {
12180
12180
  if (protocol && member.kind.identifier === "swift.method" && leaf(member).endsWith("()") && have.has(`instance|leaf|${leaf(member).slice(0, -2)}`))
12181
12181
  propertyWitnesses.push({
12182
12182
  owner: current2,
12183
- head: `extension ${pathOf(protocol)} where Self: ${path143} {`,
12183
+ head: `extension ${pathOf(protocol)} where Self: ${path144} {`,
12184
12184
  member,
12185
- path: path143
12185
+ path: path144
12186
12186
  });
12187
- else emitWitness(member, inner, path143, open && isObjC(member));
12187
+ else emitWitness(member, inner, path144, open && isObjC(member));
12188
12188
  }
12189
12189
  }
12190
12190
  if (options2.inert && designated2 && classBuild(id) === "hidden")
@@ -12192,13 +12192,13 @@ function emitSwiftStandin(sourceGraphs, options2) {
12192
12192
  const coder = members2.some((member) => leaf(member) === "init(coder:)");
12193
12193
  if (designated2 && !coder && externalRoot(id) !== "NSObject" && externalRoot(id) !== null)
12194
12194
  emit(
12195
- `${inner}public required init${options2.coderNonfailable?.has(path143) ? "" : "?"}(coder: NSCoder) { ${options2.inert && !options2.coderNonfailable?.has(path143) ? "return nil" : trap(`${path143}.init(coder:)`)} }`
12195
+ `${inner}public required init${options2.coderNonfailable?.has(path144) ? "" : "?"}(coder: NSCoder) { ${options2.inert && !options2.coderNonfailable?.has(path144) ? "return nil" : trap(`${path144}.init(coder:)`)} }`
12196
12196
  );
12197
12197
  if (designated2 && !members2.some((member) => leaf(member) === "init()") && [...superChain(id)].some(
12198
12198
  (at) => options2.requiredInits?.has(`${pathOf(byId.get(at))}.init()`)
12199
12199
  ))
12200
12200
  emit(
12201
- `${inner}public required init() { ${options2.inert ? superInit(id) : trap(`${path143}.init()`)} }`
12201
+ `${inner}public required init() { ${options2.inert ? superInit(id) : trap(`${path144}.init()`)} }`
12202
12202
  );
12203
12203
  emit(`${indent2}}`);
12204
12204
  return;
@@ -12206,7 +12206,7 @@ function emitSwiftStandin(sourceGraphs, options2) {
12206
12206
  case "swift.struct": {
12207
12207
  const shape = header(symbol2, "struct", indent2);
12208
12208
  if (!shape)
12209
- return void skipped.push({ path: path143, reason: `unparsed struct ${text(symbol2)}` });
12209
+ return void skipped.push({ path: path144, reason: `unparsed struct ${text(symbol2)}` });
12210
12210
  const members2 = membersOf(id);
12211
12211
  const raw2 = rawType(members2);
12212
12212
  const list2 = inheritance(id);
@@ -12246,7 +12246,7 @@ function emitSwiftStandin(sourceGraphs, options2) {
12246
12246
  emitInertState(
12247
12247
  id,
12248
12248
  inner,
12249
- raw2 ? `self.rawValue = ${inertValue(raw2, /* @__PURE__ */ new Set(), [path143]) ?? "0"}` : ""
12249
+ raw2 ? `self.rawValue = ${inertValue(raw2, /* @__PURE__ */ new Set(), [path144]) ?? "0"}` : ""
12250
12250
  );
12251
12251
  emit(`${indent2}}`);
12252
12252
  return;
@@ -12254,7 +12254,7 @@ function emitSwiftStandin(sourceGraphs, options2) {
12254
12254
  case "swift.enum": {
12255
12255
  const shape = header(symbol2, "enum", indent2);
12256
12256
  if (!shape)
12257
- return void skipped.push({ path: path143, reason: `unparsed enum ${text(symbol2)}` });
12257
+ return void skipped.push({ path: path144, reason: `unparsed enum ${text(symbol2)}` });
12258
12258
  const members2 = membersOf(id);
12259
12259
  const cases = members2.filter(
12260
12260
  (member) => member.kind.identifier === "swift.enum.case"
@@ -12264,7 +12264,7 @@ function emitSwiftStandin(sourceGraphs, options2) {
12264
12264
  const missing2 = raw2 ? cases.filter((member) => !values.has(member.identifier.precise)) : [];
12265
12265
  if (raw2 && (isObjC(symbol2) || /^c:@C?M@[^@]+@E@/.test(id)) && missing2.length > 0)
12266
12266
  return void skipped.push({
12267
- path: path143,
12267
+ path: path144,
12268
12268
  reason: `no header value for ${missing2.map(leaf).join(", ")}`
12269
12269
  });
12270
12270
  const list2 = inheritance(id, raw2 ?? void 0).filter(
@@ -12303,8 +12303,8 @@ function emitSwiftStandin(sourceGraphs, options2) {
12303
12303
  });
12304
12304
  }
12305
12305
  if (options2.inert) {
12306
- const value = options2.trapped?.has(hiddenInit(id)) ? null : inertValue(path143, /* @__PURE__ */ new Set(), []);
12307
- emitInertState(id, inner, value === null ? trap(path143) : `self = ${value}`);
12306
+ const value = options2.trapped?.has(hiddenInit(id)) ? null : inertValue(path144, /* @__PURE__ */ new Set(), []);
12307
+ emitInertState(id, inner, value === null ? trap(path144) : `self = ${value}`);
12308
12308
  }
12309
12309
  emit(`${indent2}}`);
12310
12310
  return;
@@ -12313,14 +12313,14 @@ function emitSwiftStandin(sourceGraphs, options2) {
12313
12313
  const shape = header(symbol2, "protocol", indent2);
12314
12314
  if (!shape)
12315
12315
  return void skipped.push({
12316
- path: path143,
12316
+ path: path144,
12317
12317
  reason: `unparsed protocol ${text(symbol2)}`
12318
12318
  });
12319
12319
  const native = nativeObjcProtocols.has(id);
12320
12320
  const objcName = native ? /^c:objc\(pl\)(\w+)$/.exec(id)?.[1] : void 0;
12321
12321
  if (native && !objcName)
12322
12322
  return void skipped.push({
12323
- path: path143,
12323
+ path: path144,
12324
12324
  reason: `unknown Objective-C protocol identity ${id}`
12325
12325
  });
12326
12326
  const list2 = [
@@ -12348,7 +12348,7 @@ function emitSwiftStandin(sourceGraphs, options2) {
12348
12348
  }
12349
12349
  emit(`${indent2}}`);
12350
12350
  if (defaults.length > 0) {
12351
- emit(`${indent2}extension ${path143} {`);
12351
+ emit(`${indent2}extension ${path144} {`);
12352
12352
  for (const member of defaults) {
12353
12353
  const decl = text(member);
12354
12354
  if (optional3.has(member.identifier.precise) && member.kind.identifier === "swift.method" && !decl.replace(/\([^)]*\)/g, "").includes("->") && !/ async\b/.test(decl))
@@ -12442,7 +12442,7 @@ function emitSwiftStandin(sourceGraphs, options2) {
12442
12442
  return null;
12443
12443
  };
12444
12444
  const emitGlobal = scoped((symbol2) => {
12445
- const path143 = pathOf(symbol2);
12445
+ const path144 = pathOf(symbol2);
12446
12446
  const kind = symbol2.kind.identifier;
12447
12447
  if (kind === "swift.func" || kind === "swift.func.op" || kind === "swift.method" || kind === "swift.type.method") {
12448
12448
  const { 1: attrs, 2: rest } = LEADING_ATTRS.exec(text(symbol2));
@@ -12451,20 +12451,20 @@ function emitSwiftStandin(sourceGraphs, options2) {
12451
12451
  if (leaf(symbol2).endsWith("(_:)") && !/^(?:prefix|infix|postfix)\b/.test(spelled2))
12452
12452
  spelled2 = `prefix ${spelled2}`;
12453
12453
  }
12454
- const measured = behavior.get(path143);
12455
- if (measured) used.add(path143);
12454
+ const measured = behavior.get(path144);
12455
+ if (measured) used.add(path144);
12456
12456
  const overloadBody = /\basync\b/.test(spelled2) ? measured?.asyncBody : /\bResult</.test(spelled2) ? measured?.resultBody : void 0;
12457
12457
  emit(
12458
- `${attrs}public ${spelled2} { ${overloadBody ?? measured?.body ?? (options2.inert ? inertBody(symbol2) : trap(path143))} }`
12458
+ `${attrs}public ${spelled2} { ${overloadBody ?? measured?.body ?? (options2.inert ? inertBody(symbol2) : trap(path144))} }`
12459
12459
  );
12460
12460
  } else if (kind === "swift.var") {
12461
12461
  const parsed2 = splitAccessors(text(symbol2).replace(/^let /, "var "));
12462
- const measured = behavior.get(path143);
12463
- if (measured) used.add(path143);
12462
+ const measured = behavior.get(path144);
12463
+ if (measured) used.add(path144);
12464
12464
  emit(
12465
- `public ${parsed2.decl} { ${measured?.body ?? (options2.inert ? inertBody(symbol2) : trap(path143))} }`
12465
+ `public ${parsed2.decl} { ${measured?.body ?? (options2.inert ? inertBody(symbol2) : trap(path144))} }`
12466
12466
  );
12467
- } else skipped.push({ path: path143, reason: `unhandled top-level ${kind}` });
12467
+ } else skipped.push({ path: path144, reason: `unhandled top-level ${kind}` });
12468
12468
  });
12469
12469
  const cExports = new Set(
12470
12470
  [...byId.values()].flatMap((symbol2) => {
@@ -12481,7 +12481,7 @@ function emitSwiftStandin(sourceGraphs, options2) {
12481
12481
  return !name3 || !cExports.has(`${name3}|${text(symbol2)}`);
12482
12482
  }).sort((a, b) => pathOf(a).localeCompare(pathOf(b)));
12483
12483
  for (const symbol2 of roots) {
12484
- const path143 = pathOf(symbol2);
12484
+ const path144 = pathOf(symbol2);
12485
12485
  if (TYPE_KINDS.has(symbol2.kind.identifier)) emitType(symbol2, "");
12486
12486
  else emitGlobal(symbol2);
12487
12487
  }
@@ -12561,9 +12561,9 @@ function emitSwiftStandin(sourceGraphs, options2) {
12561
12561
  "#endif",
12562
12562
  ""
12563
12563
  ];
12564
- for (const path143 of behavior.keys())
12565
- if (!used.has(path143))
12566
- skipped.push({ path: path143, reason: "behavior names no emitted declaration" });
12564
+ for (const path144 of behavior.keys())
12565
+ if (!used.has(path144))
12566
+ skipped.push({ path: path144, reason: "behavior names no emitted declaration" });
12567
12567
  return {
12568
12568
  source: `${[...banner, ...lines].join("\n")}
12569
12569
  `,
@@ -14854,9 +14854,9 @@ function originalColumn(line, column) {
14854
14854
  }
14855
14855
  function designTimeDiagnostic(output, files2) {
14856
14856
  const rewritten = /* @__PURE__ */ new Map();
14857
- const linesOf = (path143) => {
14857
+ const linesOf = (path144) => {
14858
14858
  const file = Object.keys(files2).find(
14859
- (name3) => name3.endsWith(".swift") && (path143 === name3 || path143.endsWith(`/${name3}`))
14859
+ (name3) => name3.endsWith(".swift") && (path144 === name3 || path144.endsWith(`/${name3}`))
14860
14860
  );
14861
14861
  if (file === void 0) return null;
14862
14862
  let lines = rewritten.get(file);
@@ -26242,13 +26242,13 @@ function swiftSdkGuestLookups(moduleRoot, sdkRoot, objects) {
26242
26242
  const shared = /* @__PURE__ */ new Set();
26243
26243
  const sdkWeakReferences = /* @__PURE__ */ new Map();
26244
26244
  for (const objects2 of groups.values())
26245
- for (const { path: path143, bytes } of objects2) {
26245
+ for (const { path: path144, bytes } of objects2) {
26246
26246
  const defined = guestWasmSymbols(bytes);
26247
26247
  for (const name3 of defined.defined) symbols.add(name3);
26248
26248
  for (const name3 of defined.tags) shared.add(name3);
26249
26249
  for (const name3 of defined.globals) shared.add(name3);
26250
26250
  if (defined.weakUndefined.length)
26251
- sdkWeakReferences.set(path143, new Set(defined.weakUndefined));
26251
+ sdkWeakReferences.set(path144, new Set(defined.weakUndefined));
26252
26252
  }
26253
26253
  return createGuestImageLedger({
26254
26254
  images,
@@ -33754,7 +33754,7 @@ async function compileGuestLink(options2) {
33754
33754
  let lazyFunctions = [];
33755
33755
  let dyldSymbols = [];
33756
33756
  const bundlePaths = new Map(
33757
- options2.resourceBundles.map(({ target, path: path143 }) => [target, path143])
33757
+ options2.resourceBundles.map(({ target, path: path144 }) => [target, path144])
33758
33758
  );
33759
33759
  const imageMetadata = (products) => {
33760
33760
  const source = sourceImages.map((image) => {
@@ -35027,8 +35027,8 @@ function sourceEntryPath() {
35027
35027
  return null;
35028
35028
  }
35029
35029
  }
35030
- function isCliEntry(path143) {
35031
- const name3 = (0, import_node_path49.basename)(path143);
35030
+ function isCliEntry(path144) {
35031
+ const name3 = (0, import_node_path49.basename)(path144);
35032
35032
  return name3 === "bin.ts" || name3 === "bin.js";
35033
35033
  }
35034
35034
  function rnxSelfInvocation() {
@@ -35986,7 +35986,7 @@ function swiftTargetDependencies(files2, targets, frameworks = OPTIONAL_FRAMEWOR
35986
35986
  );
35987
35987
  const names = /* @__PURE__ */ new Set([...frameworks, ...targets.map((target) => target.name)]);
35988
35988
  const entriesByPrefix = new Map(
35989
- targets.map(({ path: path143 }) => [path143 === "." ? "" : `${path143}/`, []])
35989
+ targets.map(({ path: path144 }) => [path144 === "." ? "" : `${path144}/`, []])
35990
35990
  );
35991
35991
  const targetByPrefix = /* @__PURE__ */ new Map();
35992
35992
  for (const target of targets) {
@@ -42020,17 +42020,17 @@ function visit(node, visitor) {
42020
42020
  } else
42021
42021
  visit_(null, node, visitor_, Object.freeze([]));
42022
42022
  }
42023
- function visit_(key2, node, visitor, path143) {
42024
- const ctrl = callVisitor(key2, node, visitor, path143);
42023
+ function visit_(key2, node, visitor, path144) {
42024
+ const ctrl = callVisitor(key2, node, visitor, path144);
42025
42025
  if (isNode(ctrl) || isPair(ctrl)) {
42026
- replaceNode(key2, path143, ctrl);
42027
- return visit_(key2, ctrl, visitor, path143);
42026
+ replaceNode(key2, path144, ctrl);
42027
+ return visit_(key2, ctrl, visitor, path144);
42028
42028
  }
42029
42029
  if (typeof ctrl !== "symbol") {
42030
42030
  if (isCollection(node)) {
42031
- path143 = Object.freeze(path143.concat(node));
42031
+ path144 = Object.freeze(path144.concat(node));
42032
42032
  for (let i = 0; i < node.items.length; ++i) {
42033
- const ci = visit_(i, node.items[i], visitor, path143);
42033
+ const ci = visit_(i, node.items[i], visitor, path144);
42034
42034
  if (typeof ci === "number")
42035
42035
  i = ci - 1;
42036
42036
  else if (ci === BREAK)
@@ -42041,13 +42041,13 @@ function visit_(key2, node, visitor, path143) {
42041
42041
  }
42042
42042
  }
42043
42043
  } else if (isPair(node)) {
42044
- path143 = Object.freeze(path143.concat(node));
42045
- const ck = visit_("key", node.key, visitor, path143);
42044
+ path144 = Object.freeze(path144.concat(node));
42045
+ const ck = visit_("key", node.key, visitor, path144);
42046
42046
  if (ck === BREAK)
42047
42047
  return BREAK;
42048
42048
  else if (ck === REMOVE)
42049
42049
  node.key = null;
42050
- const cv = visit_("value", node.value, visitor, path143);
42050
+ const cv = visit_("value", node.value, visitor, path144);
42051
42051
  if (cv === BREAK)
42052
42052
  return BREAK;
42053
42053
  else if (cv === REMOVE)
@@ -42065,17 +42065,17 @@ async function visitAsync(node, visitor) {
42065
42065
  } else
42066
42066
  await visitAsync_(null, node, visitor_, Object.freeze([]));
42067
42067
  }
42068
- async function visitAsync_(key2, node, visitor, path143) {
42069
- const ctrl = await callVisitor(key2, node, visitor, path143);
42068
+ async function visitAsync_(key2, node, visitor, path144) {
42069
+ const ctrl = await callVisitor(key2, node, visitor, path144);
42070
42070
  if (isNode(ctrl) || isPair(ctrl)) {
42071
- replaceNode(key2, path143, ctrl);
42072
- return visitAsync_(key2, ctrl, visitor, path143);
42071
+ replaceNode(key2, path144, ctrl);
42072
+ return visitAsync_(key2, ctrl, visitor, path144);
42073
42073
  }
42074
42074
  if (typeof ctrl !== "symbol") {
42075
42075
  if (isCollection(node)) {
42076
- path143 = Object.freeze(path143.concat(node));
42076
+ path144 = Object.freeze(path144.concat(node));
42077
42077
  for (let i = 0; i < node.items.length; ++i) {
42078
- const ci = await visitAsync_(i, node.items[i], visitor, path143);
42078
+ const ci = await visitAsync_(i, node.items[i], visitor, path144);
42079
42079
  if (typeof ci === "number")
42080
42080
  i = ci - 1;
42081
42081
  else if (ci === BREAK)
@@ -42086,13 +42086,13 @@ async function visitAsync_(key2, node, visitor, path143) {
42086
42086
  }
42087
42087
  }
42088
42088
  } else if (isPair(node)) {
42089
- path143 = Object.freeze(path143.concat(node));
42090
- const ck = await visitAsync_("key", node.key, visitor, path143);
42089
+ path144 = Object.freeze(path144.concat(node));
42090
+ const ck = await visitAsync_("key", node.key, visitor, path144);
42091
42091
  if (ck === BREAK)
42092
42092
  return BREAK;
42093
42093
  else if (ck === REMOVE)
42094
42094
  node.key = null;
42095
- const cv = await visitAsync_("value", node.value, visitor, path143);
42095
+ const cv = await visitAsync_("value", node.value, visitor, path144);
42096
42096
  if (cv === BREAK)
42097
42097
  return BREAK;
42098
42098
  else if (cv === REMOVE)
@@ -42119,23 +42119,23 @@ function initVisitor(visitor) {
42119
42119
  }
42120
42120
  return visitor;
42121
42121
  }
42122
- function callVisitor(key2, node, visitor, path143) {
42122
+ function callVisitor(key2, node, visitor, path144) {
42123
42123
  if (typeof visitor === "function")
42124
- return visitor(key2, node, path143);
42124
+ return visitor(key2, node, path144);
42125
42125
  if (isMap(node))
42126
- return visitor.Map?.(key2, node, path143);
42126
+ return visitor.Map?.(key2, node, path144);
42127
42127
  if (isSeq(node))
42128
- return visitor.Seq?.(key2, node, path143);
42128
+ return visitor.Seq?.(key2, node, path144);
42129
42129
  if (isPair(node))
42130
- return visitor.Pair?.(key2, node, path143);
42130
+ return visitor.Pair?.(key2, node, path144);
42131
42131
  if (isScalar(node))
42132
- return visitor.Scalar?.(key2, node, path143);
42132
+ return visitor.Scalar?.(key2, node, path144);
42133
42133
  if (isAlias(node))
42134
- return visitor.Alias?.(key2, node, path143);
42134
+ return visitor.Alias?.(key2, node, path144);
42135
42135
  return void 0;
42136
42136
  }
42137
- function replaceNode(key2, path143, node) {
42138
- const parent = path143[path143.length - 1];
42137
+ function replaceNode(key2, path144, node) {
42138
+ const parent = path144[path144.length - 1];
42139
42139
  if (isCollection(parent)) {
42140
42140
  parent.items[key2] = node;
42141
42141
  } else if (isPair(parent)) {
@@ -42735,10 +42735,10 @@ var init_createNode = __esm({
42735
42735
  });
42736
42736
 
42737
42737
  // ../../node_modules/yaml/browser/dist/nodes/Collection.js
42738
- function collectionFromPath(schema4, path143, value) {
42738
+ function collectionFromPath(schema4, path144, value) {
42739
42739
  let v9 = value;
42740
- for (let i = path143.length - 1; i >= 0; --i) {
42741
- const k = path143[i];
42740
+ for (let i = path144.length - 1; i >= 0; --i) {
42741
+ const k = path144[i];
42742
42742
  if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
42743
42743
  const a = [];
42744
42744
  a[k] = v9;
@@ -42763,7 +42763,7 @@ var init_Collection = __esm({
42763
42763
  init_createNode();
42764
42764
  init_identity();
42765
42765
  init_Node();
42766
- isEmptyPath = (path143) => path143 == null || typeof path143 === "object" && !!path143[Symbol.iterator]().next().done;
42766
+ isEmptyPath = (path144) => path144 == null || typeof path144 === "object" && !!path144[Symbol.iterator]().next().done;
42767
42767
  Collection = class extends NodeBase {
42768
42768
  constructor(type, schema4) {
42769
42769
  super(type);
@@ -42793,11 +42793,11 @@ var init_Collection = __esm({
42793
42793
  * be a Pair instance or a `{ key, value }` object, which may not have a key
42794
42794
  * that already exists in the map.
42795
42795
  */
42796
- addIn(path143, value) {
42797
- if (isEmptyPath(path143))
42796
+ addIn(path144, value) {
42797
+ if (isEmptyPath(path144))
42798
42798
  this.add(value);
42799
42799
  else {
42800
- const [key2, ...rest] = path143;
42800
+ const [key2, ...rest] = path144;
42801
42801
  const node = this.get(key2, true);
42802
42802
  if (isCollection(node))
42803
42803
  node.addIn(rest, value);
@@ -42811,8 +42811,8 @@ var init_Collection = __esm({
42811
42811
  * Removes a value from the collection.
42812
42812
  * @returns `true` if the item was found and removed.
42813
42813
  */
42814
- deleteIn(path143) {
42815
- const [key2, ...rest] = path143;
42814
+ deleteIn(path144) {
42815
+ const [key2, ...rest] = path144;
42816
42816
  if (rest.length === 0)
42817
42817
  return this.delete(key2);
42818
42818
  const node = this.get(key2, true);
@@ -42826,8 +42826,8 @@ var init_Collection = __esm({
42826
42826
  * scalar values from their surrounding node; to disable set `keepScalar` to
42827
42827
  * `true` (collections are always returned intact).
42828
42828
  */
42829
- getIn(path143, keepScalar) {
42830
- const [key2, ...rest] = path143;
42829
+ getIn(path144, keepScalar) {
42830
+ const [key2, ...rest] = path144;
42831
42831
  const node = this.get(key2, true);
42832
42832
  if (rest.length === 0)
42833
42833
  return !keepScalar && isScalar(node) ? node.value : node;
@@ -42845,8 +42845,8 @@ var init_Collection = __esm({
42845
42845
  /**
42846
42846
  * Checks if the collection includes a value with the key `key`.
42847
42847
  */
42848
- hasIn(path143) {
42849
- const [key2, ...rest] = path143;
42848
+ hasIn(path144) {
42849
+ const [key2, ...rest] = path144;
42850
42850
  if (rest.length === 0)
42851
42851
  return this.has(key2);
42852
42852
  const node = this.get(key2, true);
@@ -42856,8 +42856,8 @@ var init_Collection = __esm({
42856
42856
  * Sets a value in this collection. For `!!set`, `value` needs to be a
42857
42857
  * boolean to add/remove the item from the set.
42858
42858
  */
42859
- setIn(path143, value) {
42860
- const [key2, ...rest] = path143;
42859
+ setIn(path144, value) {
42860
+ const [key2, ...rest] = path144;
42861
42861
  if (rest.length === 0) {
42862
42862
  this.set(key2, value);
42863
42863
  } else {
@@ -45291,9 +45291,9 @@ var init_Document = __esm({
45291
45291
  this.contents.add(value);
45292
45292
  }
45293
45293
  /** Adds a value to the document. */
45294
- addIn(path143, value) {
45294
+ addIn(path144, value) {
45295
45295
  if (assertCollection(this.contents))
45296
- this.contents.addIn(path143, value);
45296
+ this.contents.addIn(path144, value);
45297
45297
  }
45298
45298
  /**
45299
45299
  * Create a new `Alias` node, ensuring that the target `node` has the required anchor.
@@ -45368,14 +45368,14 @@ var init_Document = __esm({
45368
45368
  * Removes a value from the document.
45369
45369
  * @returns `true` if the item was found and removed.
45370
45370
  */
45371
- deleteIn(path143) {
45372
- if (isEmptyPath(path143)) {
45371
+ deleteIn(path144) {
45372
+ if (isEmptyPath(path144)) {
45373
45373
  if (this.contents == null)
45374
45374
  return false;
45375
45375
  this.contents = null;
45376
45376
  return true;
45377
45377
  }
45378
- return assertCollection(this.contents) ? this.contents.deleteIn(path143) : false;
45378
+ return assertCollection(this.contents) ? this.contents.deleteIn(path144) : false;
45379
45379
  }
45380
45380
  /**
45381
45381
  * Returns item at `key`, or `undefined` if not found. By default unwraps
@@ -45390,10 +45390,10 @@ var init_Document = __esm({
45390
45390
  * scalar values from their surrounding node; to disable set `keepScalar` to
45391
45391
  * `true` (collections are always returned intact).
45392
45392
  */
45393
- getIn(path143, keepScalar) {
45394
- if (isEmptyPath(path143))
45393
+ getIn(path144, keepScalar) {
45394
+ if (isEmptyPath(path144))
45395
45395
  return !keepScalar && isScalar(this.contents) ? this.contents.value : this.contents;
45396
- return isCollection(this.contents) ? this.contents.getIn(path143, keepScalar) : void 0;
45396
+ return isCollection(this.contents) ? this.contents.getIn(path144, keepScalar) : void 0;
45397
45397
  }
45398
45398
  /**
45399
45399
  * Checks if the document includes a value with the key `key`.
@@ -45404,10 +45404,10 @@ var init_Document = __esm({
45404
45404
  /**
45405
45405
  * Checks if the document includes a value at `path`.
45406
45406
  */
45407
- hasIn(path143) {
45408
- if (isEmptyPath(path143))
45407
+ hasIn(path144) {
45408
+ if (isEmptyPath(path144))
45409
45409
  return this.contents !== void 0;
45410
- return isCollection(this.contents) ? this.contents.hasIn(path143) : false;
45410
+ return isCollection(this.contents) ? this.contents.hasIn(path144) : false;
45411
45411
  }
45412
45412
  /**
45413
45413
  * Sets a value in this document. For `!!set`, `value` needs to be a
@@ -45424,13 +45424,13 @@ var init_Document = __esm({
45424
45424
  * Sets a value in this document. For `!!set`, `value` needs to be a
45425
45425
  * boolean to add/remove the item from the set.
45426
45426
  */
45427
- setIn(path143, value) {
45428
- if (isEmptyPath(path143)) {
45427
+ setIn(path144, value) {
45428
+ if (isEmptyPath(path144)) {
45429
45429
  this.contents = value;
45430
45430
  } else if (this.contents == null) {
45431
- this.contents = collectionFromPath(this.schema, Array.from(path143), value);
45431
+ this.contents = collectionFromPath(this.schema, Array.from(path144), value);
45432
45432
  } else if (assertCollection(this.contents)) {
45433
- this.contents.setIn(path143, value);
45433
+ this.contents.setIn(path144, value);
45434
45434
  }
45435
45435
  }
45436
45436
  /**
@@ -47335,15 +47335,15 @@ function visit2(cst, visitor) {
47335
47335
  cst = { start: cst.start, value: cst.value };
47336
47336
  _visit(Object.freeze([]), cst, visitor);
47337
47337
  }
47338
- function _visit(path143, item, visitor) {
47339
- let ctrl = visitor(item, path143);
47338
+ function _visit(path144, item, visitor) {
47339
+ let ctrl = visitor(item, path144);
47340
47340
  if (typeof ctrl === "symbol")
47341
47341
  return ctrl;
47342
47342
  for (const field of ["key", "value"]) {
47343
47343
  const token = item[field];
47344
47344
  if (token && "items" in token) {
47345
47345
  for (let i = 0; i < token.items.length; ++i) {
47346
- const ci = _visit(Object.freeze(path143.concat([[field, i]])), token.items[i], visitor);
47346
+ const ci = _visit(Object.freeze(path144.concat([[field, i]])), token.items[i], visitor);
47347
47347
  if (typeof ci === "number")
47348
47348
  i = ci - 1;
47349
47349
  else if (ci === BREAK2)
@@ -47354,10 +47354,10 @@ function _visit(path143, item, visitor) {
47354
47354
  }
47355
47355
  }
47356
47356
  if (typeof ctrl === "function" && field === "key")
47357
- ctrl = ctrl(item, path143);
47357
+ ctrl = ctrl(item, path144);
47358
47358
  }
47359
47359
  }
47360
- return typeof ctrl === "function" ? ctrl(item, path143) : ctrl;
47360
+ return typeof ctrl === "function" ? ctrl(item, path144) : ctrl;
47361
47361
  }
47362
47362
  var BREAK2, SKIP2, REMOVE2;
47363
47363
  var init_cst_visit = __esm({
@@ -47368,9 +47368,9 @@ var init_cst_visit = __esm({
47368
47368
  visit2.BREAK = BREAK2;
47369
47369
  visit2.SKIP = SKIP2;
47370
47370
  visit2.REMOVE = REMOVE2;
47371
- visit2.itemAtPath = (cst, path143) => {
47371
+ visit2.itemAtPath = (cst, path144) => {
47372
47372
  let item = cst;
47373
- for (const [field, index] of path143) {
47373
+ for (const [field, index] of path144) {
47374
47374
  const tok = item?.[field];
47375
47375
  if (tok && "items" in tok) {
47376
47376
  item = tok.items[index];
@@ -47379,9 +47379,9 @@ var init_cst_visit = __esm({
47379
47379
  }
47380
47380
  return item;
47381
47381
  };
47382
- visit2.parentCollection = (cst, path143) => {
47383
- const parent = visit2.itemAtPath(cst, path143.slice(0, -1));
47384
- const field = path143[path143.length - 1][0];
47382
+ visit2.parentCollection = (cst, path144) => {
47383
+ const parent = visit2.itemAtPath(cst, path144.slice(0, -1));
47384
+ const field = path144[path144.length - 1][0];
47385
47385
  const coll = parent?.[field];
47386
47386
  if (coll && "items" in coll)
47387
47387
  return coll;
@@ -48684,14 +48684,14 @@ var init_parser = __esm({
48684
48684
  case "scalar":
48685
48685
  case "single-quoted-scalar":
48686
48686
  case "double-quoted-scalar": {
48687
- const fs106 = this.flowScalar(this.type);
48687
+ const fs107 = this.flowScalar(this.type);
48688
48688
  if (atNextItem || it.value) {
48689
- map2.items.push({ start, key: fs106, sep: [] });
48689
+ map2.items.push({ start, key: fs107, sep: [] });
48690
48690
  this.onKeyLine = true;
48691
48691
  } else if (it.sep) {
48692
- this.stack.push(fs106);
48692
+ this.stack.push(fs107);
48693
48693
  } else {
48694
- Object.assign(it, { key: fs106, sep: [] });
48694
+ Object.assign(it, { key: fs107, sep: [] });
48695
48695
  this.onKeyLine = true;
48696
48696
  }
48697
48697
  return;
@@ -48819,13 +48819,13 @@ var init_parser = __esm({
48819
48819
  case "scalar":
48820
48820
  case "single-quoted-scalar":
48821
48821
  case "double-quoted-scalar": {
48822
- const fs106 = this.flowScalar(this.type);
48822
+ const fs107 = this.flowScalar(this.type);
48823
48823
  if (!it || it.value)
48824
- fc.items.push({ start: [], key: fs106, sep: [] });
48824
+ fc.items.push({ start: [], key: fs107, sep: [] });
48825
48825
  else if (it.sep)
48826
- this.stack.push(fs106);
48826
+ this.stack.push(fs107);
48827
48827
  else
48828
- Object.assign(it, { key: fs106, sep: [] });
48828
+ Object.assign(it, { key: fs107, sep: [] });
48829
48829
  return;
48830
48830
  }
48831
48831
  case "flow-map-end":
@@ -52639,9 +52639,9 @@ var init_podspec_ruby = __esm({
52639
52639
  }
52640
52640
  // ---- errors
52641
52641
  exceptionClass(name3) {
52642
- const path143 = name3.split("::");
52642
+ const path144 = name3.split("::");
52643
52643
  let module2 = this.object;
52644
- for (const part of path143) {
52644
+ for (const part of path144) {
52645
52645
  const next = module2.consts.get(part);
52646
52646
  if (!(next instanceof RModule))
52647
52647
  throw new UnsupportedRuby(`no exception class ${name3}`);
@@ -59422,16 +59422,16 @@ var init_pods_files = __esm({
59422
59422
  };
59423
59423
  unique = (values) => [...new Set(values)];
59424
59424
  XCFramework = class {
59425
- constructor(targetName, path143) {
59425
+ constructor(targetName, path144) {
59426
59426
  this.targetName = targetName;
59427
- this.path = path143;
59428
- const plist2 = parsePlistBytes(import_node_fs65.default.readFileSync(`${path143}/Info.plist`));
59427
+ this.path = path144;
59428
+ const plist2 = parsePlistBytes(import_node_fs65.default.readFileSync(`${path144}/Info.plist`));
59429
59429
  if (!isRecord(plist2) || !Array.isArray(plist2.AvailableLibraries))
59430
- throw new Error(`${path143}/Info.plist declares no AvailableLibraries`);
59430
+ throw new Error(`${path144}/Info.plist declares no AvailableLibraries`);
59431
59431
  this.slices = plist2.AvailableLibraries.map((library) => {
59432
59432
  if (!isRecord(library) || typeof library.LibraryIdentifier !== "string" || typeof library.LibraryPath !== "string" || typeof library.SupportedPlatform !== "string")
59433
- throw new Error(`${path143}/Info.plist has an invalid library entry`);
59434
- const root = `${path143}/${library.LibraryIdentifier}`;
59433
+ throw new Error(`${path144}/Info.plist has an invalid library entry`);
59434
+ const root = `${path144}/${library.LibraryIdentifier}`;
59435
59435
  const slicePath = `${root}/${library.LibraryPath}`;
59436
59436
  const extension = slicePath.slice(slicePath.lastIndexOf("."));
59437
59437
  const packaging = extension === ".framework" ? "framework" : extension === ".a" || extension === ".dylib" ? "library" : null;
@@ -59453,7 +59453,7 @@ var init_pods_files = __esm({
59453
59453
  }).sort((a, b) => byBytes2(a.identifier, b.identifier));
59454
59454
  if (this.slices.length === 0)
59455
59455
  throw new Error(
59456
- `XCFramework at ${path143} does not contain any frameworks or libraries.`
59456
+ `XCFramework at ${path144} does not contain any frameworks or libraries.`
59457
59457
  );
59458
59458
  }
59459
59459
  slices;
@@ -61307,9 +61307,9 @@ echo "SUCCESS" > "\${SCRIPT_OUTPUT_FILE_0}"
61307
61307
  DEFAULT_SHELL_SCRIPT = "# Type a script or drag a script file from your workspace to insert its path.\n";
61308
61308
  stringList2 = (value) => Array.isArray(value) && value.every((item) => typeof item === "string") ? value : null;
61309
61309
  UserProject = class {
61310
- constructor(table, path143, objectVersion) {
61310
+ constructor(table, path144, objectVersion) {
61311
61311
  this.table = table;
61312
- this.path = path143;
61312
+ this.path = path144;
61313
61313
  this.objectVersion = objectVersion;
61314
61314
  }
61315
61315
  get projectDir() {
@@ -68415,14 +68415,14 @@ function addAsset(into, asset) {
68415
68415
  function checkStack(dir, type, devices2) {
68416
68416
  const sets = (parent, allowed) => (0, import_node_fs76.readdirSync)(parent, { withFileTypes: true }).flatMap((entry) => {
68417
68417
  if (entry.name.startsWith(".") || entry.isFile()) return [];
68418
- const path143 = (0, import_node_path76.join)(parent, entry.name);
68418
+ const path144 = (0, import_node_path76.join)(parent, entry.name);
68419
68419
  const extension = (0, import_node_path76.extname)(entry.name);
68420
68420
  if (!entry.isDirectory() || !allowed.includes(extension))
68421
68421
  return refuse(
68422
- path143,
68422
+ path144,
68423
68423
  `image stack content other than ${allowed.join(", ")} is unproven`
68424
68424
  );
68425
- return [{ path: path143, extension }];
68425
+ return [{ path: path144, extension }];
68426
68426
  });
68427
68427
  for (const layer of sets(dir, [`.${type}layer`, ".imageset", ".colorset"])) {
68428
68428
  if (layer.extension !== `.${type}layer`) continue;
@@ -68434,37 +68434,37 @@ function checkStack(dir, type, devices2) {
68434
68434
  function walk2(dir, into, devices2, extensions) {
68435
68435
  for (const entry of (0, import_node_fs76.readdirSync)(dir, { withFileTypes: true })) {
68436
68436
  if (entry.name.startsWith(".") || entry.isFile()) continue;
68437
- const path143 = (0, import_node_path76.join)(dir, entry.name);
68438
- if (!entry.isDirectory()) return refuse(path143, "it is neither a file nor a directory");
68437
+ const path144 = (0, import_node_path76.join)(dir, entry.name);
68438
+ if (!entry.isDirectory()) return refuse(path144, "it is neither a file nor a directory");
68439
68439
  const extension = (0, import_node_path76.extname)(entry.name).slice(1);
68440
68440
  const type = extension.toLowerCase();
68441
68441
  const base2 = entry.name.slice(0, entry.name.length - extension.length - 1);
68442
68442
  if (type !== extension && knownTypes.has(type))
68443
- return refuse(path143, "its type extension is not lowercase");
68443
+ return refuse(path144, "its type extension is not lowercase");
68444
68444
  if (type === "colorset" || type === "imageset" || type === "symbolset") {
68445
68445
  addAsset(into, {
68446
68446
  kind: type === "colorset" ? "color" : "image",
68447
68447
  name: base2,
68448
- ...assetState(path143, type, devices2),
68448
+ ...assetState(path144, type, devices2),
68449
68449
  extensions,
68450
- source: path143
68450
+ source: path144
68451
68451
  });
68452
68452
  continue;
68453
68453
  }
68454
68454
  if (silentTypes.has(type)) continue;
68455
68455
  if (stackTypes.has(type)) {
68456
- checkStack(path143, type, devices2);
68456
+ checkStack(path144, type, devices2);
68457
68457
  continue;
68458
68458
  }
68459
- if (unprovenTypes.has(type)) return refuse(path143, `${type} assets are unproven`);
68459
+ if (unprovenTypes.has(type)) return refuse(path144, `${type} assets are unproven`);
68460
68460
  const name3 = type === "spriteatlas" ? base2 : entry.name;
68461
- if (!folderProperties((0, import_node_path76.join)(path143, "Contents.json")).namespace) {
68462
- walk2(path143, into, devices2, extensions);
68461
+ if (!folderProperties((0, import_node_path76.join)(path144, "Contents.json")).namespace) {
68462
+ walk2(path144, into, devices2, extensions);
68463
68463
  continue;
68464
68464
  }
68465
- const child = into.namespaces.get(name3) ?? scope(path143);
68465
+ const child = into.namespaces.get(name3) ?? scope(path144);
68466
68466
  into.namespaces.set(name3, child);
68467
- walk2(path143, child, devices2, extensions);
68467
+ walk2(path144, child, devices2, extensions);
68468
68468
  }
68469
68469
  }
68470
68470
  function words(name3) {
@@ -68511,11 +68511,11 @@ function members(into, kind, prefix, extensions) {
68511
68511
  const assets2 = /* @__PURE__ */ new Set();
68512
68512
  const out = [];
68513
68513
  for (const entry of entries2) {
68514
- const path143 = `${prefix}${entry.name}`;
68514
+ const path144 = `${prefix}${entry.name}`;
68515
68515
  const source = entry.child ? entry.child.source : entry.asset.source;
68516
68516
  if (Array.from(entry.name).some((char) => char.charCodeAt(0) > 127))
68517
68517
  refuse(source, "its name is not ASCII");
68518
- const named = (text8) => `The \\"${escape(path143)}\\" ${text8}`;
68518
+ const named = (text8) => `The \\"${escape(path144)}\\" ${text8}`;
68519
68519
  if (entry.child) {
68520
68520
  const text8 = symbol(entry.name, true);
68521
68521
  if (!text8)
@@ -68538,9 +68538,9 @@ function members(into, kind, prefix, extensions) {
68538
68538
  namespaces.add(text8);
68539
68539
  out.push({
68540
68540
  type: "namespace",
68541
- path: path143,
68541
+ path: path144,
68542
68542
  symbol: spelled(text8),
68543
- members: members(entry.child, kind, `${path143}/`, extensions)
68543
+ members: members(entry.child, kind, `${path144}/`, extensions)
68544
68544
  });
68545
68545
  }
68546
68546
  continue;
@@ -68567,7 +68567,7 @@ function members(into, kind, prefix, extensions) {
68567
68567
  else if (!omitted)
68568
68568
  out.push({
68569
68569
  type: "asset",
68570
- path: path143,
68570
+ path: path144,
68571
68571
  name: entry.name,
68572
68572
  symbol: spelled(text7),
68573
68573
  thinnable: asset.thinnable,
@@ -68848,8 +68848,8 @@ var init_xcode_asset_symbols = __esm({
68848
68848
  import_node_path76 = require("node:path");
68849
68849
  Refusal = class extends Error {
68850
68850
  };
68851
- refuse = (path143, reason) => {
68852
- throw new Refusal(`Generated asset symbols are unproven for ${path143}: ${reason}`);
68851
+ refuse = (path144, reason) => {
68852
+ throw new Refusal(`Generated asset symbols are unproven for ${path144}: ${reason}`);
68853
68853
  };
68854
68854
  isRecord5 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
68855
68855
  scope = (source) => ({
@@ -69295,11 +69295,11 @@ function catalogDigest(directory2) {
69295
69295
  for (const entry of (0, import_node_fs77.readdirSync)(dir, { withFileTypes: true }).sort(
69296
69296
  (a, b) => a.name.localeCompare(b.name)
69297
69297
  )) {
69298
- const path143 = (0, import_node_path77.join)(dir, entry.name);
69299
- if (entry.isDirectory()) walk4(path143);
69300
- else if (entry.isFile() && (0, import_node_fs77.statSync)(path143).size <= 64 * 1024 * 1024)
69301
- hashes.push([(0, import_node_path77.relative)(directory2, path143), sha2562((0, import_node_fs77.readFileSync)(path143))]);
69302
- else throw new Error(`Unsupported asset catalog entry: ${path143}`);
69298
+ const path144 = (0, import_node_path77.join)(dir, entry.name);
69299
+ if (entry.isDirectory()) walk4(path144);
69300
+ else if (entry.isFile() && (0, import_node_fs77.statSync)(path144).size <= 64 * 1024 * 1024)
69301
+ hashes.push([(0, import_node_path77.relative)(directory2, path144), sha2562((0, import_node_fs77.readFileSync)(path144))]);
69302
+ else throw new Error(`Unsupported asset catalog entry: ${path144}`);
69303
69303
  }
69304
69304
  };
69305
69305
  walk4(directory2);
@@ -69310,7 +69310,7 @@ function symbolSource(plan, root) {
69310
69310
  const known = symbolTexts.get(key2);
69311
69311
  if (known !== void 0) return { status: "source", text: known };
69312
69312
  const source = assetSymbolSource(
69313
- plan.catalogs.map(({ path: path143 }) => (0, import_node_path77.join)(root, path143)),
69313
+ plan.catalogs.map(({ path: path144 }) => (0, import_node_path77.join)(root, path144)),
69314
69314
  plan.settings
69315
69315
  );
69316
69316
  if (source.status === "source") symbolTexts.set(key2, source.text);
@@ -69369,9 +69369,9 @@ function planAssetSymbols(resources, root, settings) {
69369
69369
  `Generated asset symbols are proven only for TARGETED_DEVICE_FAMILY 1, 2, 1,2, 1,7, 1,3,7, 1,2,6 or 1,2,7; this target resolves to "${families}".`
69370
69370
  );
69371
69371
  const plan = {
69372
- catalogs: catalogs.map((path143) => ({
69373
- path: path143,
69374
- sha256: catalogDigest((0, import_node_path77.join)(root, path143))
69372
+ catalogs: catalogs.map((path144) => ({
69373
+ path: path144,
69374
+ sha256: catalogDigest((0, import_node_path77.join)(root, path144))
69375
69375
  })),
69376
69376
  settings: { deployment: target, devices: devices2, extensions: extensions === "YES" }
69377
69377
  };
@@ -77936,7 +77936,7 @@ function scanLocalNative(appDir, pkg, answered, platform2, knownPackages = /* @_
77936
77936
  expoModule: moduleDir ? (0, import_node_path88.relative)(appDir, moduleDir) || "." : null,
77937
77937
  optional: optional3,
77938
77938
  swift: moduleDir ? (nativeFilesByModule.get(moduleDir) ?? []).some(
77939
- (path143) => path143.endsWith(".swift") && [...(readSmallFile(path143) ?? "").matchAll(/\bName\(\s*"(\w+)"\s*\)/g)].some(
77939
+ (path144) => path144.endsWith(".swift") && [...(readSmallFile(path144) ?? "").matchAll(/\bName\(\s*"(\w+)"\s*\)/g)].some(
77940
77940
  (match) => match[1] === name3
77941
77941
  )
77942
77942
  ) : false,
@@ -81181,10 +81181,10 @@ var require_path_parse = __commonJS({
81181
81181
  code === 45 || /* - */
81182
81182
  code === 46;
81183
81183
  }
81184
- function State(path143) {
81184
+ function State(path144) {
81185
81185
  this.index = 0;
81186
- this.path = path143;
81187
- this.max = path143.length;
81186
+ this.path = path144;
81187
+ this.max = path144.length;
81188
81188
  this.result = [];
81189
81189
  this.param = 0;
81190
81190
  this.err = "";
@@ -81558,7 +81558,7 @@ var require_a2c = __commonJS({
81558
81558
  }
81559
81559
  return sign * Math.acos(dot);
81560
81560
  }
81561
- function get_arc_center(x1, y1, x2, y2, fa, fs106, rx, ry, sin_phi, cos_phi) {
81561
+ function get_arc_center(x1, y1, x2, y2, fa, fs107, rx, ry, sin_phi, cos_phi) {
81562
81562
  var x1p = cos_phi * (x1 - x2) / 2 + sin_phi * (y1 - y2) / 2;
81563
81563
  var y1p = -sin_phi * (x1 - x2) / 2 + cos_phi * (y1 - y2) / 2;
81564
81564
  var rx_sq = rx * rx;
@@ -81570,7 +81570,7 @@ var require_a2c = __commonJS({
81570
81570
  radicant = 0;
81571
81571
  }
81572
81572
  radicant /= rx_sq * y1p_sq + ry_sq * x1p_sq;
81573
- radicant = Math.sqrt(radicant) * (fa === fs106 ? -1 : 1);
81573
+ radicant = Math.sqrt(radicant) * (fa === fs107 ? -1 : 1);
81574
81574
  var cxp = radicant * rx / ry * y1p;
81575
81575
  var cyp = radicant * -ry / rx * x1p;
81576
81576
  var cx = cos_phi * cxp - sin_phi * cyp + (x1 + x2) / 2;
@@ -81581,10 +81581,10 @@ var require_a2c = __commonJS({
81581
81581
  var v2y = (-y1p - cyp) / ry;
81582
81582
  var theta1 = unit_vector_angle(1, 0, v1x, v1y);
81583
81583
  var delta_theta = unit_vector_angle(v1x, v1y, v2x, v2y);
81584
- if (fs106 === 0 && delta_theta > 0) {
81584
+ if (fs107 === 0 && delta_theta > 0) {
81585
81585
  delta_theta -= TAU;
81586
81586
  }
81587
- if (fs106 === 1 && delta_theta < 0) {
81587
+ if (fs107 === 1 && delta_theta < 0) {
81588
81588
  delta_theta += TAU;
81589
81589
  }
81590
81590
  return [cx, cy, theta1, delta_theta];
@@ -81597,7 +81597,7 @@ var require_a2c = __commonJS({
81597
81597
  var y2 = Math.sin(theta1 + delta_theta);
81598
81598
  return [x1, y1, x1 - y1 * alpha, y1 + x1 * alpha, x2 + y2 * alpha, y2 - x2 * alpha, x2, y2];
81599
81599
  }
81600
- module2.exports = function a2c(x1, y1, x2, y2, fa, fs106, rx, ry, phi) {
81600
+ module2.exports = function a2c(x1, y1, x2, y2, fa, fs107, rx, ry, phi) {
81601
81601
  var sin_phi = Math.sin(phi * TAU / 360);
81602
81602
  var cos_phi = Math.cos(phi * TAU / 360);
81603
81603
  var x1p = cos_phi * (x1 - x2) / 2 + sin_phi * (y1 - y2) / 2;
@@ -81615,7 +81615,7 @@ var require_a2c = __commonJS({
81615
81615
  rx *= Math.sqrt(lambda);
81616
81616
  ry *= Math.sqrt(lambda);
81617
81617
  }
81618
- var cc = get_arc_center(x1, y1, x2, y2, fa, fs106, rx, ry, sin_phi, cos_phi);
81618
+ var cc = get_arc_center(x1, y1, x2, y2, fa, fs107, rx, ry, sin_phi, cos_phi);
81619
81619
  var result = [];
81620
81620
  var theta1 = cc[2];
81621
81621
  var delta_theta = cc[3];
@@ -81704,11 +81704,11 @@ var require_svgpath = __commonJS({
81704
81704
  var matrix = require_matrix();
81705
81705
  var a2c = require_a2c();
81706
81706
  var ellipse = require_ellipse();
81707
- function SvgPath(path143) {
81707
+ function SvgPath(path144) {
81708
81708
  if (!(this instanceof SvgPath)) {
81709
- return new SvgPath(path143);
81709
+ return new SvgPath(path144);
81710
81710
  }
81711
- var pstate = pathParse(path143);
81711
+ var pstate = pathParse(path144);
81712
81712
  this.segments = pstate.segments;
81713
81713
  this.err = pstate.err;
81714
81714
  this.__stack = [];
@@ -82191,8 +82191,8 @@ function imagesetFiles(images) {
82191
82191
  function bundleImageRenditionKey(file, scale) {
82192
82192
  return extOf(file) === ".svg" ? `${file}/${scale}x.png` : file;
82193
82193
  }
82194
- function flatScale(path143) {
82195
- const match = /@([23])x\.[^./]+$/.exec(path143);
82194
+ function flatScale(path144) {
82195
+ const match = /@([23])x\.[^./]+$/.exec(path144);
82196
82196
  return match ? Number(match[1]) : 1;
82197
82197
  }
82198
82198
  function providesNamespace(text7) {
@@ -82219,8 +82219,8 @@ function catalogEntryName(contentsPath, kind, readText2) {
82219
82219
  }
82220
82220
  return segments.join("/");
82221
82221
  }
82222
- function isFlatResourceImage(path143) {
82223
- return path143.split("/").includes("Resources") && RASTER_EXTENSIONS.has(extOf(path143));
82222
+ function isFlatResourceImage(path144) {
82223
+ return path144.split("/").includes("Resources") && RASTER_EXTENSIONS.has(extOf(path144));
82224
82224
  }
82225
82225
  function enumerateBundleImages(paths, readText2, bundleForFile = () => ".") {
82226
82226
  const table = [];
@@ -82233,7 +82233,7 @@ function enumerateBundleImages(paths, readText2, bundleForFile = () => ".") {
82233
82233
  seen.set(bundlePath, names);
82234
82234
  return { bundlePath, names };
82235
82235
  };
82236
- const catalogs = paths.filter((path143) => baseOf(path143) === "Contents.json");
82236
+ const catalogs = paths.filter((path144) => baseOf(path144) === "Contents.json");
82237
82237
  for (const contentsPath of catalogs) {
82238
82238
  const name3 = catalogEntryName(contentsPath, ".imageset", readText2);
82239
82239
  if (name3 === null) continue;
@@ -82266,16 +82266,16 @@ function enumerateBundleImages(paths, readText2, bundleForFile = () => ".") {
82266
82266
  ...intent === "template" || intent === "original" ? { renderingMode: intent } : {}
82267
82267
  });
82268
82268
  }
82269
- for (const path143 of paths) {
82270
- if (!isFlatResourceImage(path143)) continue;
82271
- const filename = baseOf(path143);
82269
+ for (const path144 of paths) {
82270
+ if (!isFlatResourceImage(path144)) continue;
82271
+ const filename = baseOf(path144);
82272
82272
  const name3 = filename.slice(0, -extOf(filename).length);
82273
- const { bundlePath, names } = namesFor(path143);
82273
+ const { bundlePath, names } = namesFor(path144);
82274
82274
  if (name3 === "" || names.has(name3)) continue;
82275
82275
  names.add(name3);
82276
82276
  const scaledFilename = filename.replace(/@[23]x(?=\.[^./]+$)/, "");
82277
82277
  const fileNames = (scaledFilename === filename ? [filename] : [filename, scaledFilename]).filter((lookup2) => !names.has(lookup2));
82278
- table.push({ name: name3, file: path143, scale: flatScale(path143), bundlePath, fileNames });
82278
+ table.push({ name: name3, file: path144, scale: flatScale(path144), bundlePath, fileNames });
82279
82279
  }
82280
82280
  return table;
82281
82281
  }
@@ -82310,7 +82310,7 @@ function colorsetValue(color) {
82310
82310
  }
82311
82311
  function enumerateBundleColors(paths, readText2) {
82312
82312
  const table = {};
82313
- for (const contentsPath of paths.filter((path143) => baseOf(path143) === "Contents.json")) {
82313
+ for (const contentsPath of paths.filter((path144) => baseOf(path144) === "Contents.json")) {
82314
82314
  const name3 = catalogEntryName(contentsPath, ".colorset", readText2);
82315
82315
  if (name3 === null || name3 in table) continue;
82316
82316
  let colors;
@@ -82374,8 +82374,8 @@ function axisExtremes(points) {
82374
82374
  function pathBounds(d) {
82375
82375
  const xs = [];
82376
82376
  const ys = [];
82377
- for (const path143 of d)
82378
- (0, import_svgpath.default)(path143).abs().unshort().unarc().iterate((segment3, _index, x, y) => {
82377
+ for (const path144 of d)
82378
+ (0, import_svgpath.default)(path144).abs().unshort().unarc().iterate((segment3, _index, x, y) => {
82379
82379
  const [command, ...args] = segment3;
82380
82380
  if (command === "M" || command === "L") {
82381
82381
  xs.push(Number(args[0]));
@@ -82441,7 +82441,7 @@ function guide(elements, id, axis) {
82441
82441
  }
82442
82442
  function enumerateBundleSymbols(paths, readText2, bundleForFile) {
82443
82443
  const table = {};
82444
- for (const contentsPath of paths.filter((path143) => baseOf(path143) === "Contents.json")) {
82444
+ for (const contentsPath of paths.filter((path144) => baseOf(path144) === "Contents.json")) {
82445
82445
  const name3 = catalogEntryName(contentsPath, ".symbolset", readText2);
82446
82446
  if (name3 === null) continue;
82447
82447
  const bundle = bundleForFile(contentsPath);
@@ -82507,8 +82507,8 @@ function enumerateBundleSymbols(paths, readText2, bundleForFile) {
82507
82507
  advance,
82508
82508
  box: [12 - wide2 / 2, 12 - tall / 2, wide2, tall],
82509
82509
  ...bearings ? { customLayout: { bearings, verticalOutset, descent } } : {},
82510
- layers: d.map((path143) => ({
82511
- d: (0, import_svgpath.default)(path143).abs().scale(em).translate(translateX, translateY).round(3).toString()
82510
+ layers: d.map((path144) => ({
82511
+ d: (0, import_svgpath.default)(path144).abs().scale(em).translate(translateX, translateY).round(3).toString()
82512
82512
  }))
82513
82513
  };
82514
82514
  table[vectorKey] = vector;
@@ -82519,13 +82519,13 @@ function enumerateBundleSymbols(paths, readText2, bundleForFile) {
82519
82519
  }
82520
82520
  return table;
82521
82521
  }
82522
- function isCopiedResource(path143, copiedBundle, copyLooseRasters) {
82523
- const segments = path143.split("/");
82522
+ function isCopiedResource(path144, copiedBundle, copyLooseRasters) {
82523
+ const segments = path144.split("/");
82524
82524
  if (segments.some((segment3) => /\.(atlasc|bundle|storyboardc|nib|momd)$/.test(segment3)))
82525
82525
  return true;
82526
82526
  if (segments.some((segment3) => /\.xcdatamodeld?$/.test(segment3))) return false;
82527
82527
  if (copiedBundle) return true;
82528
- const ext = extOf(path143);
82528
+ const ext = extOf(path144);
82529
82529
  if (ext === ".json" || ext === ".xcstrings") return true;
82530
82530
  return !COMPILED_EXTENSIONS.has(ext) && (copyLooseRasters || !RASTER_EXTENSIONS.has(ext)) && !segments.some((segment3) => segment3.endsWith(".xcassets"));
82531
82531
  }
@@ -82533,7 +82533,7 @@ function enumerateBundleResources(paths, { copiedBundle = false, copyLooseRaster
82533
82533
  const found = [];
82534
82534
  const seen = /* @__PURE__ */ new Set();
82535
82535
  const ordered = [...paths].filter(
82536
- (path143) => path143.split("/").includes("Resources") && path143.split("/").every((segment3) => segment3 !== "" && segment3 !== "..") && isCopiedResource(path143, copiedBundle, copyLooseRasters)
82536
+ (path144) => path144.split("/").includes("Resources") && path144.split("/").every((segment3) => segment3 !== "" && segment3 !== "..") && isCopiedResource(path144, copiedBundle, copyLooseRasters)
82537
82537
  ).sort((a, b) => {
82538
82538
  const aDepth = a.split("/").length;
82539
82539
  const bDepth = b.split("/").length;
@@ -82681,31 +82681,31 @@ function tokens(text7) {
82681
82681
  }
82682
82682
  return result;
82683
82683
  }
82684
- function qualified(language, key2, path143) {
82685
- return `(${language}: ${key2}${path143 === "" ? "" : "|==|" + path143})`;
82684
+ function qualified(language, key2, path144) {
82685
+ return `(${language}: ${key2}${path144 === "" ? "" : "|==|" + path144})`;
82686
82686
  }
82687
- function requiresNumber(language, key2, path143) {
82687
+ function requiresNumber(language, key2, path144) {
82688
82688
  return Error(
82689
- "Plural variation requires referencing the number in the string. To maintain grammatical correctness for strings that do not reference the number of items, use separate top-level strings for one and greater than one. " + qualified(language, key2, path143)
82689
+ "Plural variation requires referencing the number in the string. To maintain grammatical correctness for strings that do not reference the number of items, use separate top-level strings for one and greater than one. " + qualified(language, key2, path144)
82690
82690
  );
82691
82691
  }
82692
- function moreThanOne(language, key2, path143) {
82692
+ function moreThanOne(language, key2, path144) {
82693
82693
  return Error(
82694
- "Cannot infer format specifier for string group because more than one numerical specifier was found " + qualified(language, key2, path143)
82694
+ "Cannot infer format specifier for string group because more than one numerical specifier was found " + qualified(language, key2, path144)
82695
82695
  );
82696
82696
  }
82697
82697
  function schemaPath(segments) {
82698
82698
  return segments.map((segment3) => `'${segment3}'`).join(" -> ");
82699
82699
  }
82700
- function checkUnitShape(node, path143) {
82700
+ function checkUnitShape(node, path144) {
82701
82701
  const raw2 = node.stringUnit;
82702
82702
  if (raw2 === void 0)
82703
- throw Error(`Missing required key 'stringUnit' inside ${schemaPath(path143)}`);
82703
+ throw Error(`Missing required key 'stringUnit' inside ${schemaPath(path144)}`);
82704
82704
  if (raw2 === null)
82705
- throw Error(`Missing required value for key 'stringUnit' inside ${schemaPath(path143)}`);
82705
+ throw Error(`Missing required value for key 'stringUnit' inside ${schemaPath(path144)}`);
82706
82706
  if (!isRecord6(raw2))
82707
- throw Error(`Expected dictionary for key 'stringUnit' inside ${schemaPath(path143)}`);
82708
- const unitPath = [...path143, "stringUnit"];
82707
+ throw Error(`Expected dictionary for key 'stringUnit' inside ${schemaPath(path144)}`);
82708
+ const unitPath = [...path144, "stringUnit"];
82709
82709
  if (!Object.hasOwn(raw2, "state"))
82710
82710
  throw Error(`Missing required key 'state' inside ${schemaPath(unitPath)}`);
82711
82711
  const state = raw2.state;
@@ -82722,38 +82722,38 @@ function checkUnitShape(node, path143) {
82722
82722
  throw Error(`Expected string for key 'value' inside ${schemaPath(unitPath)}`);
82723
82723
  return value;
82724
82724
  }
82725
- function checkPluralShape(node, path143) {
82725
+ function checkPluralShape(node, path144) {
82726
82726
  for (const [category, raw2] of Object.entries(node)) {
82727
- const categoryPath = [...path143, category];
82727
+ const categoryPath = [...path144, category];
82728
82728
  if (raw2 === null)
82729
82729
  throw Error(
82730
- `Missing required value for key '${category}' inside ${schemaPath(path143)}`
82730
+ `Missing required value for key '${category}' inside ${schemaPath(path144)}`
82731
82731
  );
82732
82732
  if (!isRecord6(raw2))
82733
- throw Error(`Expected dictionary for key '${category}' inside ${schemaPath(path143)}`);
82733
+ throw Error(`Expected dictionary for key '${category}' inside ${schemaPath(path144)}`);
82734
82734
  checkUnitShape(raw2, categoryPath);
82735
82735
  }
82736
82736
  }
82737
- function checkLocalizationShape(node, path143, deviceValue = false) {
82737
+ function checkLocalizationShape(node, path144, deviceValue = false) {
82738
82738
  if (node === null)
82739
82739
  throw Error(
82740
- `Missing required value for key '${path143[path143.length - 1]}' inside ${schemaPath(path143.slice(0, -1))}`
82740
+ `Missing required value for key '${path144[path144.length - 1]}' inside ${schemaPath(path144.slice(0, -1))}`
82741
82741
  );
82742
82742
  if (!isRecord6(node))
82743
82743
  throw Error(
82744
- `Expected dictionary for key '${path143[path143.length - 1]}' inside ${schemaPath(path143.slice(0, -1))}`
82744
+ `Expected dictionary for key '${path144[path144.length - 1]}' inside ${schemaPath(path144.slice(0, -1))}`
82745
82745
  );
82746
- if (Object.hasOwn(node, "variations")) checkVariationsShape(node.variations, path143);
82746
+ if (Object.hasOwn(node, "variations")) checkVariationsShape(node.variations, path144);
82747
82747
  if (!deviceValue && Object.hasOwn(node, "substitutions"))
82748
- checkSubstitutionsShape(node.substitutions, path143);
82749
- if (!Object.hasOwn(node, "variations")) checkUnitShape(node, path143);
82748
+ checkSubstitutionsShape(node.substitutions, path144);
82749
+ if (!Object.hasOwn(node, "variations")) checkUnitShape(node, path144);
82750
82750
  }
82751
- function checkVariationsShape(variations, path143) {
82751
+ function checkVariationsShape(variations, path144) {
82752
82752
  if (variations === null)
82753
- throw Error(`Missing required value for key 'variations' inside ${schemaPath(path143)}`);
82753
+ throw Error(`Missing required value for key 'variations' inside ${schemaPath(path144)}`);
82754
82754
  if (!isRecord6(variations))
82755
- throw Error(`Expected dictionary for key 'variations' inside ${schemaPath(path143)}`);
82756
- const variationsPath = [...path143, "variations"];
82755
+ throw Error(`Expected dictionary for key 'variations' inside ${schemaPath(path144)}`);
82756
+ const variationsPath = [...path144, "variations"];
82757
82757
  for (const [type, raw2] of Object.entries(variations)) {
82758
82758
  if (raw2 === null)
82759
82759
  throw Error(
@@ -82779,11 +82779,11 @@ function checkVariationsShape(variations, path143) {
82779
82779
  }
82780
82780
  }
82781
82781
  }
82782
- function checkSubstitutionsShape(substitutions, path143) {
82782
+ function checkSubstitutionsShape(substitutions, path144) {
82783
82783
  if (substitutions === null) return;
82784
82784
  if (!isRecord6(substitutions))
82785
- throw Error(`Expected dictionary for key 'substitutions' inside ${schemaPath(path143)}`);
82786
- const substitutionsPath = [...path143, "substitutions"];
82785
+ throw Error(`Expected dictionary for key 'substitutions' inside ${schemaPath(path144)}`);
82786
+ const substitutionsPath = [...path144, "substitutions"];
82787
82787
  for (const [name3, raw2] of Object.entries(substitutions)) {
82788
82788
  const subPath = [...substitutionsPath, name3];
82789
82789
  if (raw2 === null)
@@ -82825,10 +82825,10 @@ function scanSpecs(forms) {
82825
82825
  }
82826
82826
  return specs;
82827
82827
  }
82828
- function inferPlural(forms, language, key2, path143) {
82828
+ function inferPlural(forms, language, key2, path144) {
82829
82829
  const specs = scanSpecs(forms);
82830
- if (specs.size === 0) throw requiresNumber(language, key2, path143);
82831
- if (specs.size > 1) throw moreThanOne(language, key2, path143);
82830
+ if (specs.size === 0) throw requiresNumber(language, key2, path144);
82831
+ if (specs.size > 1) throw moreThanOne(language, key2, path144);
82832
82832
  return [...specs.values()][0] ?? { specifier: "", argument: 0 };
82833
82833
  }
82834
82834
  function unit(value) {
@@ -83297,8 +83297,8 @@ function plist(value, depth) {
83297
83297
  }
83298
83298
  function compileStringCatalog(source, name3) {
83299
83299
  return Object.fromEntries(
83300
- Object.entries(compileCatalogTables(source, name3)).map(([path143, table]) => [
83301
- path143,
83300
+ Object.entries(compileCatalogTables(source, name3)).map(([path144, table]) => [
83301
+ path144,
83302
83302
  '<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n' + plist(table, 0) + "</plist>\n"
83303
83303
  ])
83304
83304
  );
@@ -88864,8 +88864,8 @@ function withBuiltinStandinBehavior(behavior) {
88864
88864
  for (const [module2, members2] of Object.entries(BUILTIN_STANDIN_BEHAVIOR))
88865
88865
  merged[module2] = {
88866
88866
  ...Object.fromEntries(
88867
- Object.entries(members2).map(([path143, entry]) => [
88868
- path143,
88867
+ Object.entries(members2).map(([path144, entry]) => [
88868
+ path144,
88869
88869
  { ...entry, builtin: true }
88870
88870
  ])
88871
88871
  ),
@@ -94223,7 +94223,7 @@ function resolveSwiftPackages(options2) {
94223
94223
  headers.set(name3, import_node_path113.default.relative(binary2.dir, dir));
94224
94224
  };
94225
94225
  visit3(pkg, binary2.target);
94226
- binary2.headerDependencies = [...headers].map(([module2, path143]) => ({ module: module2, path: path143 }));
94226
+ binary2.headerDependencies = [...headers].map(([module2, path144]) => ({ module: module2, path: path144 }));
94227
94227
  }
94228
94228
  for (const owner of options2.owners ?? []) {
94229
94229
  const found = productClosure(owner.products);
@@ -95254,7 +95254,7 @@ async function buildXcodeLayout(root) {
95254
95254
  });
95255
95255
  if (framework.moduleName !== module2 || framework.allSources.length === 0)
95256
95256
  throw new Error(`${project2}: ${target} did not produce source module ${module2}`);
95257
- if (framework.linkedProducts.length > 0 || framework.binaryFrameworks.some(({ path: path143 }) => path143))
95257
+ if (framework.linkedProducts.length > 0 || framework.binaryFrameworks.some(({ path: path144 }) => path144))
95258
95258
  throw new Error(
95259
95259
  `${project2}: ${target} has external dependencies outside the source framework build`
95260
95260
  );
@@ -98261,11 +98261,11 @@ function stringList3(value) {
98261
98261
  function externalSpecMembers(root, requested) {
98262
98262
  const children = (spec) => Array.isArray(spec.subspecs) ? spec.subspecs.filter(object7) : [];
98263
98263
  const chains = /* @__PURE__ */ new Map();
98264
- const select = (path143) => {
98265
- const key2 = path143.join("/");
98264
+ const select = (path144) => {
98265
+ const key2 = path144.join("/");
98266
98266
  if (chains.has(key2)) return;
98267
98267
  const chain = [root];
98268
- for (const part of path143) {
98268
+ for (const part of path144) {
98269
98269
  const child = children(chain.at(-1)).find((sub) => sub.name === part);
98270
98270
  if (!child) throw new Error(`${String(root.name)} has no subspec ${key2}`);
98271
98271
  chain.push(child);
@@ -98274,7 +98274,7 @@ function externalSpecMembers(root, requested) {
98274
98274
  const spec = chain.at(-1);
98275
98275
  const defaults = stringList3(spec.default_subspecs ?? spec.default_subspec);
98276
98276
  const activated = defaults[0] === "none" ? [] : defaults.length > 0 ? defaults : children(spec).map((sub) => String(sub.name));
98277
- for (const name3 of activated) select([...path143, ...name3.split("/")]);
98277
+ for (const name3 of activated) select([...path144, ...name3.split("/")]);
98278
98278
  for (const member of chain)
98279
98279
  for (const dependencies of [member.dependencies, iosOf(member)?.dependencies])
98280
98280
  for (const dependency of object7(dependencies) ? Object.keys(dependencies) : []) {
@@ -104512,9 +104512,9 @@ function hashPackageTree(root, options2) {
104512
104512
  (a, b) => options2.compareNames(a.name, b.name)
104513
104513
  )) {
104514
104514
  if (entry.name === "node_modules") continue;
104515
- const path143 = `${relative4}${entry.name}`;
104516
- if (entry.isDirectory()) walk4((0, import_node_path127.join)(directory2, entry.name), `${path143}/`);
104517
- else if (entry.isFile() && !options2.skipFile?.(entry.name)) files2.push(path143);
104515
+ const path144 = `${relative4}${entry.name}`;
104516
+ if (entry.isDirectory()) walk4((0, import_node_path127.join)(directory2, entry.name), `${path144}/`);
104517
+ else if (entry.isFile() && !options2.skipFile?.(entry.name)) files2.push(path144);
104518
104518
  }
104519
104519
  };
104520
104520
  walk4(root, "");
@@ -113358,16 +113358,16 @@ var init_replacementModule = __esm({
113358
113358
 
113359
113359
  // src/host/replacement-module-handler.ts
113360
113360
  function resolveReplacementModuleFile(fromFile, specifier) {
113361
- const base2 = import_node_path154.default.resolve(import_node_path154.default.dirname(fromFile), specifier);
113361
+ const base2 = import_node_path155.default.resolve(import_node_path155.default.dirname(fromFile), specifier);
113362
113362
  const candidates = [
113363
113363
  ...REPLACEMENT_MODULE_EXTENSIONS.some(
113364
- (ext) => ext === import_node_path154.default.extname(base2).toLowerCase()
113364
+ (ext) => ext === import_node_path155.default.extname(base2).toLowerCase()
113365
113365
  ) ? [base2] : [],
113366
113366
  ...REPLACEMENT_MODULE_EXTENSIONS.map((ext) => base2 + ext),
113367
- ...REPLACEMENT_MODULE_EXTENSIONS.map((ext) => import_node_path154.default.join(base2, `index${ext}`))
113367
+ ...REPLACEMENT_MODULE_EXTENSIONS.map((ext) => import_node_path155.default.join(base2, `index${ext}`))
113368
113368
  ];
113369
113369
  const found = candidates.find(
113370
- (candidate) => (0, import_node_fs150.statSync)(candidate, { throwIfNoEntry: false })?.isFile()
113370
+ (candidate) => (0, import_node_fs151.statSync)(candidate, { throwIfNoEntry: false })?.isFile()
113371
113371
  );
113372
113372
  if (!found) {
113373
113373
  throw new Error(
@@ -113376,13 +113376,13 @@ function resolveReplacementModuleFile(fromFile, specifier) {
113376
113376
  }
113377
113377
  return found;
113378
113378
  }
113379
- var import_node_fs150, import_promises12, import_node_path154;
113379
+ var import_node_fs151, import_promises12, import_node_path155;
113380
113380
  var init_replacement_module_handler = __esm({
113381
113381
  "src/host/replacement-module-handler.ts"() {
113382
113382
  "use strict";
113383
- import_node_fs150 = require("node:fs");
113383
+ import_node_fs151 = require("node:fs");
113384
113384
  import_promises12 = __toESM(require("node:fs/promises"), 1);
113385
- import_node_path154 = __toESM(require("node:path"), 1);
113385
+ import_node_path155 = __toESM(require("node:path"), 1);
113386
113386
  init_replacementModule();
113387
113387
  init_backend_origin();
113388
113388
  }
@@ -113412,14 +113412,14 @@ async function produceConfiguredBundle(source, config, runtimePackages) {
113412
113412
  const neededPackages = /* @__PURE__ */ new Set();
113413
113413
  const factories = [];
113414
113414
  const visit3 = (filePath) => {
113415
- const real = import_node_fs151.default.realpathSync(filePath);
113415
+ const real = import_node_fs152.default.realpathSync(filePath);
113416
113416
  const previous = files2.get(real);
113417
113417
  if (previous !== void 0) return previous;
113418
113418
  const id = "peach-config-file:" + files2.size;
113419
113419
  files2.set(real, id);
113420
113420
  const compiled = compileReplacementModule({
113421
113421
  filePath: real,
113422
- source: import_node_fs151.default.readFileSync(real, "utf8"),
113422
+ source: import_node_fs152.default.readFileSync(real, "utf8"),
113423
113423
  runtimePackages,
113424
113424
  localModuleUrl: (specifier) => visit3(resolveReplacementModuleFile(real, specifier))
113425
113425
  });
@@ -113443,7 +113443,7 @@ async function produceConfiguredBundle(source, config, runtimePackages) {
113443
113443
  if (!entries2 || typeof entries2 !== "object") continue;
113444
113444
  for (const resolution2 of Object.values(entries2)) {
113445
113445
  if (resolution2 && typeof resolution2 === "object" && "file" in resolution2 && typeof resolution2.file === "string") {
113446
- resolution2.file = visit3(import_node_path155.default.resolve(resolution2.file));
113446
+ resolution2.file = visit3(import_node_path156.default.resolve(resolution2.file));
113447
113447
  }
113448
113448
  }
113449
113449
  }
@@ -113467,12 +113467,12 @@ async function produceConfiguredBundle(source, config, runtimePackages) {
113467
113467
  const identityStart = findBundleFooter(source, "globalThis.__sootsimModulePaths=");
113468
113468
  return prefix + (identityStart < 0 ? source + footer : source.slice(0, identityStart) + footer + source.slice(identityStart));
113469
113469
  }
113470
- var import_node_fs151, import_node_path155, import_sucrase5, import_terser, PREFIX_START, PREFIX_END;
113470
+ var import_node_fs152, import_node_path156, import_sucrase5, import_terser, PREFIX_START, PREFIX_END;
113471
113471
  var init_configured_bundle_producer = __esm({
113472
113472
  "src/configured-bundle-producer.ts"() {
113473
113473
  "use strict";
113474
- import_node_fs151 = __toESM(require("node:fs"), 1);
113475
- import_node_path155 = __toESM(require("node:path"), 1);
113474
+ import_node_fs152 = __toESM(require("node:fs"), 1);
113475
+ import_node_path156 = __toESM(require("node:path"), 1);
113476
113476
  init_bundle_global_footer();
113477
113477
  import_sucrase5 = require("peachsim/vendor/sucrase");
113478
113478
  import_terser = require("peachsim/vendor/terser");
@@ -113496,8 +113496,8 @@ __export(bundle_channel_exports, {
113496
113496
  });
113497
113497
  module.exports = __toCommonJS(bundle_channel_exports);
113498
113498
  var import_node_crypto92 = require("node:crypto");
113499
- var import_node_fs152 = require("node:fs");
113500
- var import_node_path156 = require("node:path");
113499
+ var import_node_fs153 = require("node:fs");
113500
+ var import_node_path157 = require("node:path");
113501
113501
  var import_node_vm = require("node:vm");
113502
113502
  var import_node_zlib11 = require("node:zlib");
113503
113503
  init_backend_origin();
@@ -113664,16 +113664,16 @@ init_package_versions();
113664
113664
  init_process_group();
113665
113665
 
113666
113666
  // cli/app-catalog.ts
113667
- var import_node_fs149 = __toESM(require("node:fs"), 1);
113668
- var import_node_path153 = __toESM(require("node:path"), 1);
113667
+ var import_node_fs150 = __toESM(require("node:fs"), 1);
113668
+ var import_node_path154 = __toESM(require("node:path"), 1);
113669
113669
  init_bundleAssets();
113670
113670
  init_expo_native_workspace();
113671
113671
 
113672
113672
  // src/host/staged-host-files.ts
113673
113673
  var import_node_async_hooks4 = require("node:async_hooks");
113674
113674
  var import_node_crypto91 = require("node:crypto");
113675
- var import_node_fs147 = __toESM(require("node:fs"), 1);
113676
- var import_node_path150 = __toESM(require("node:path"), 1);
113675
+ var import_node_fs148 = __toESM(require("node:fs"), 1);
113676
+ var import_node_path151 = __toESM(require("node:path"), 1);
113677
113677
 
113678
113678
  // ../peach-kit/src/uttype-mime.ts
113679
113679
  var MIME_BY_EXTENSION = {
@@ -113742,23 +113742,60 @@ init_answeredNativePackages();
113742
113742
  init_home_paths();
113743
113743
  init_launchMetadataContract();
113744
113744
  init_runtime_assets();
113745
+
113746
+ // src/host/app-package-handler.ts
113747
+ var import_node_fs147 = __toESM(require("node:fs"), 1);
113748
+ var import_node_path150 = __toESM(require("node:path"), 1);
113749
+ init_home_paths();
113750
+ init_is_record();
113751
+ init_runtime_assets();
113752
+ function readPackageManifest() {
113753
+ const file = process.env.PEACH_APP_MANIFEST;
113754
+ const routes2 = /* @__PURE__ */ new Map();
113755
+ const bundledFiles2 = /* @__PURE__ */ new Map();
113756
+ if (!file) return { routes: routes2, bundledFiles: bundledFiles2 };
113757
+ const manifest = JSON.parse(import_node_fs147.default.readFileSync(file, "utf8"));
113758
+ if (!isRecord(manifest) || manifest.schemaVersion !== 1 || !isRecord(manifest.routes))
113759
+ throw new Error("invalid packaged app manifest");
113760
+ const relocatable = /* @__PURE__ */ new Set();
113761
+ if (Array.isArray(manifest.relocatableFiles)) {
113762
+ for (const name3 of manifest.relocatableFiles) {
113763
+ if (typeof name3 === "string") relocatable.add(name3);
113764
+ }
113765
+ }
113766
+ for (const [route, resource] of Object.entries(manifest.routes)) {
113767
+ if (!route.startsWith("/") || !isRecord(resource) || typeof resource.file !== "string" || !resource.file || import_node_path150.default.basename(resource.file) !== resource.file || [".", ".."].includes(resource.file) || typeof resource.contentType !== "string" || /[\r\n]/.test(resource.contentType))
113768
+ throw new Error(`invalid packaged app resource: ${route}`);
113769
+ routes2.set(route, { file: resource.file, contentType: resource.contentType });
113770
+ }
113771
+ const payload = import_node_path150.default.join(import_node_path150.default.dirname(file), "payload");
113772
+ if (import_node_fs147.default.statSync(payload, { throwIfNoEntry: false })) {
113773
+ for (const name3 of import_node_fs147.default.readdirSync(payload)) {
113774
+ if (!relocatable.has(name3)) bundledFiles2.set(name3, import_node_path150.default.join(payload, name3));
113775
+ }
113776
+ }
113777
+ return { routes: routes2, bundledFiles: bundledFiles2 };
113778
+ }
113779
+ var { routes, bundledFiles } = readPackageManifest();
113780
+
113781
+ // src/host/staged-host-files.ts
113745
113782
  var stagedCapture = new import_node_async_hooks4.AsyncLocalStorage();
113746
113783
  async function captureStagedHostFiles(prepare3) {
113747
113784
  const names = /* @__PURE__ */ new Set();
113748
113785
  const value = await stagedCapture.run(names, prepare3);
113749
113786
  return {
113750
113787
  value,
113751
- files: new Map([...names].map((name3) => [name3, import_node_path150.default.join(stagedDir(), name3)]))
113788
+ files: new Map([...names].map((name3) => [name3, import_node_path151.default.join(stagedDir(), name3)]))
113752
113789
  };
113753
113790
  }
113754
113791
  var STAGED_PREFIX = "/__peach/staged/";
113755
113792
  var STAGED_NAME = /^([a-f0-9]{64})(\.[a-z0-9]{1,10})?$/;
113756
113793
  var STAGED_RETENTION_MS = 30 * 24 * 60 * 60 * 1e3;
113757
113794
  function stagedDir() {
113758
- return import_node_path150.default.join(cacheDir(), "staged");
113795
+ return import_node_path151.default.join(cacheDir(), "staged");
113759
113796
  }
113760
113797
  function stageHostFile(filePath, origin) {
113761
- return stageHostBytes(import_node_fs147.default.readFileSync(filePath), origin, import_node_path150.default.extname(filePath));
113798
+ return stageHostBytes(import_node_fs148.default.readFileSync(filePath), origin, import_node_path151.default.extname(filePath));
113762
113799
  }
113763
113800
  function stageHostBytes(bytes, origin, extension = "") {
113764
113801
  const directory2 = prepareStagedDirectory();
@@ -113767,40 +113804,40 @@ function stageHostBytes(bytes, origin, extension = "") {
113767
113804
  async function stageHostDerivedBytes(input, producer, origin, extension, derive) {
113768
113805
  const directory2 = prepareStagedDirectory();
113769
113806
  const inputDigest = (0, import_node_crypto91.createHash)("sha256").update(input).digest("hex");
113770
- const index = import_node_path150.default.join(
113807
+ const index = import_node_path151.default.join(
113771
113808
  directory2,
113772
113809
  `derived-${(0, import_node_crypto91.createHash)("sha256").update(`${producer}\0${inputDigest}`).digest("hex")}`
113773
113810
  );
113774
- const recorded = import_node_fs147.default.existsSync(index) ? import_node_fs147.default.readFileSync(index, "utf8") : "";
113775
- if (STAGED_NAME.test(recorded) && import_node_fs147.default.existsSync(import_node_path150.default.join(directory2, recorded))) {
113811
+ const recorded = import_node_fs148.default.existsSync(index) ? import_node_fs148.default.readFileSync(index, "utf8") : "";
113812
+ if (STAGED_NAME.test(recorded) && import_node_fs148.default.existsSync(import_node_path151.default.join(directory2, recorded))) {
113776
113813
  const now = /* @__PURE__ */ new Date();
113777
- import_node_fs147.default.utimesSync(index, now, now);
113778
- import_node_fs147.default.utimesSync(import_node_path150.default.join(directory2, recorded), now, now);
113814
+ import_node_fs148.default.utimesSync(index, now, now);
113815
+ import_node_fs148.default.utimesSync(import_node_path151.default.join(directory2, recorded), now, now);
113779
113816
  stagedCapture.getStore()?.add(recorded);
113780
113817
  return new URL(STAGED_PREFIX + recorded, origin).toString();
113781
113818
  }
113782
113819
  const staged = writeStagedBytes(await derive(), origin, extension, directory2);
113783
- const temporary = import_node_path150.default.join(directory2, (0, import_node_crypto91.randomUUID)());
113820
+ const temporary = import_node_path151.default.join(directory2, (0, import_node_crypto91.randomUUID)());
113784
113821
  try {
113785
- import_node_fs147.default.writeFileSync(temporary, new URL(staged).pathname.slice(STAGED_PREFIX.length), {
113822
+ import_node_fs148.default.writeFileSync(temporary, new URL(staged).pathname.slice(STAGED_PREFIX.length), {
113786
113823
  flag: "wx"
113787
113824
  });
113788
- import_node_fs147.default.renameSync(temporary, index);
113825
+ import_node_fs148.default.renameSync(temporary, index);
113789
113826
  } finally {
113790
- import_node_fs147.default.rmSync(temporary, { force: true });
113827
+ import_node_fs148.default.rmSync(temporary, { force: true });
113791
113828
  }
113792
113829
  return staged;
113793
113830
  }
113794
113831
  function prepareStagedDirectory() {
113795
113832
  const directory2 = stagedDir();
113796
- import_node_fs147.default.mkdirSync(directory2, { recursive: true });
113833
+ import_node_fs148.default.mkdirSync(directory2, { recursive: true });
113797
113834
  const now = Date.now();
113798
- for (const entry of import_node_fs147.default.readdirSync(directory2, { withFileTypes: true })) {
113835
+ for (const entry of import_node_fs148.default.readdirSync(directory2, { withFileTypes: true })) {
113799
113836
  if (!entry.isFile()) continue;
113800
- const stale = import_node_path150.default.join(directory2, entry.name);
113801
- const stat = import_node_fs147.default.statSync(stale, { throwIfNoEntry: false });
113837
+ const stale = import_node_path151.default.join(directory2, entry.name);
113838
+ const stat = import_node_fs148.default.statSync(stale, { throwIfNoEntry: false });
113802
113839
  if (stat && now - stat.mtimeMs > STAGED_RETENTION_MS)
113803
- import_node_fs147.default.rmSync(stale, { force: true });
113840
+ import_node_fs148.default.rmSync(stale, { force: true });
113804
113841
  }
113805
113842
  return directory2;
113806
113843
  }
@@ -113809,29 +113846,29 @@ function writeStagedBytes(bytes, origin, extension, directory2) {
113809
113846
  extension = extension.toLowerCase();
113810
113847
  const name3 = STAGED_NAME.test(digest3 + extension) ? digest3 + extension : digest3;
113811
113848
  stagedCapture.getStore()?.add(name3);
113812
- const destination = import_node_path150.default.join(directory2, name3);
113849
+ const destination = import_node_path151.default.join(directory2, name3);
113813
113850
  const now = Date.now();
113814
- if (import_node_fs147.default.existsSync(destination)) {
113815
- import_node_fs147.default.utimesSync(destination, new Date(now), new Date(now));
113851
+ if (import_node_fs148.default.existsSync(destination)) {
113852
+ import_node_fs148.default.utimesSync(destination, new Date(now), new Date(now));
113816
113853
  } else {
113817
- const temporary = import_node_path150.default.join(directory2, (0, import_node_crypto91.randomUUID)());
113854
+ const temporary = import_node_path151.default.join(directory2, (0, import_node_crypto91.randomUUID)());
113818
113855
  try {
113819
- import_node_fs147.default.writeFileSync(temporary, bytes, { flag: "wx" });
113820
- import_node_fs147.default.renameSync(temporary, destination);
113856
+ import_node_fs148.default.writeFileSync(temporary, bytes, { flag: "wx" });
113857
+ import_node_fs148.default.renameSync(temporary, destination);
113821
113858
  } finally {
113822
- import_node_fs147.default.rmSync(temporary, { force: true });
113859
+ import_node_fs148.default.rmSync(temporary, { force: true });
113823
113860
  }
113824
113861
  }
113825
113862
  return new URL(STAGED_PREFIX + name3, origin).toString();
113826
113863
  }
113827
113864
 
113828
113865
  // src/one-native-app-catalog.ts
113829
- var import_node_path152 = __toESM(require("node:path"), 1);
113866
+ var import_node_path153 = __toESM(require("node:path"), 1);
113830
113867
  init_is_record();
113831
113868
 
113832
113869
  // src/one-native-app-config.ts
113833
- var import_node_fs148 = __toESM(require("node:fs"), 1);
113834
- var import_node_path151 = __toESM(require("node:path"), 1);
113870
+ var import_node_fs149 = __toESM(require("node:fs"), 1);
113871
+ var import_node_path152 = __toESM(require("node:path"), 1);
113835
113872
  var import_acorn5 = require("peachsim/vendor/acorn");
113836
113873
  var import_sucrase4 = require("peachsim/vendor/sucrase");
113837
113874
  init_estree_walk();
@@ -113854,13 +113891,13 @@ var MODULE_EXTENSIONS = [
113854
113891
  ];
113855
113892
  function oneConfigPath(root) {
113856
113893
  for (const name3 of CONFIG_FILES) {
113857
- const file = import_node_path151.default.join(root, name3);
113858
- if (import_node_fs148.default.existsSync(file)) return file;
113894
+ const file = import_node_path152.default.join(root, name3);
113895
+ if (import_node_fs149.default.existsSync(file)) return file;
113859
113896
  }
113860
113897
  return null;
113861
113898
  }
113862
113899
  function readModule2(file) {
113863
- const { code } = (0, import_sucrase4.transform)(import_node_fs148.default.readFileSync(file, "utf8"), {
113900
+ const { code } = (0, import_sucrase4.transform)(import_node_fs149.default.readFileSync(file, "utf8"), {
113864
113901
  transforms: /\.[cm]?tsx?$/.test(file) ? ["typescript"] : [],
113865
113902
  disableESTransforms: true
113866
113903
  });
@@ -113884,9 +113921,9 @@ function resolveName(module2, name3, seen) {
113884
113921
  if (!source.startsWith(".")) continue;
113885
113922
  for (const specifier of statement.specifiers) {
113886
113923
  if (specifier.type !== "ImportSpecifier" || specifier.local.name !== name3) continue;
113887
- const base2 = import_node_path151.default.resolve(import_node_path151.default.dirname(module2.file), source);
113924
+ const base2 = import_node_path152.default.resolve(import_node_path152.default.dirname(module2.file), source);
113888
113925
  const target = MODULE_EXTENSIONS.map((ext) => base2 + ext).find(
113889
- (file) => import_node_fs148.default.existsSync(file) && import_node_fs148.default.statSync(file).isFile()
113926
+ (file) => import_node_fs149.default.existsSync(file) && import_node_fs149.default.statSync(file).isFile()
113890
113927
  );
113891
113928
  if (!target) return NOT_STATIC;
113892
113929
  const imported = specifier.imported.type === "Identifier" ? specifier.imported.name : String(specifier.imported.value);
@@ -113970,7 +114007,7 @@ function readOneNativeAppCatalog(root) {
113970
114007
  const ios = readOneNativeApp(root)?.ios;
113971
114008
  if (!isRecord(ios)) return null;
113972
114009
  const accentColor = parseAccent(ios.accentColor);
113973
- const assetCatalog = typeof ios.assetCatalog === "string" ? import_node_path152.default.resolve(root, ios.assetCatalog) : null;
114010
+ const assetCatalog = typeof ios.assetCatalog === "string" ? import_node_path153.default.resolve(root, ios.assetCatalog) : null;
113974
114011
  return accentColor || assetCatalog ? { accentColor, assetCatalog } : null;
113975
114012
  }
113976
114013
 
@@ -113980,21 +114017,21 @@ var ACCENT_BUILD_SETTING = /ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = "?(
113980
114017
  var PLIST_ACCENT = /<key>NSAccentColorName<\/key>\s*<string>([^<]+)<\/string>/;
113981
114018
  function listDir2(dir) {
113982
114019
  try {
113983
- return import_node_fs149.default.readdirSync(dir, { withFileTypes: true });
114020
+ return import_node_fs150.default.readdirSync(dir, { withFileTypes: true });
113984
114021
  } catch {
113985
114022
  return [];
113986
114023
  }
113987
114024
  }
113988
114025
  function readText(file) {
113989
114026
  try {
113990
- return import_node_fs149.default.readFileSync(file, "utf8");
114027
+ return import_node_fs150.default.readFileSync(file, "utf8");
113991
114028
  } catch {
113992
114029
  return null;
113993
114030
  }
113994
114031
  }
113995
114032
  function catalogFiles(dir, found) {
113996
114033
  for (const entry of listDir2(dir)) {
113997
- const full = import_node_path153.default.join(dir, entry.name);
114034
+ const full = import_node_path154.default.join(dir, entry.name);
113998
114035
  if (entry.isDirectory()) catalogFiles(full, found);
113999
114036
  else if (entry.name === "Contents.json") found.push(full);
114000
114037
  }
@@ -114042,38 +114079,38 @@ async function stageCatalogSvg(file, scale, origin, bytes) {
114042
114079
  );
114043
114080
  }
114044
114081
  function stageCatalogImage(file, scale, origin) {
114045
- if (import_node_path153.default.extname(file).toLowerCase() === ".svg")
114046
- return stageCatalogSvg(file, scale, origin, import_node_fs149.default.readFileSync(file));
114082
+ if (import_node_path154.default.extname(file).toLowerCase() === ".svg")
114083
+ return stageCatalogSvg(file, scale, origin, import_node_fs150.default.readFileSync(file));
114047
114084
  return stageHostFile(file, origin);
114048
114085
  }
114049
114086
  async function discoverAppCatalog(appDir, assetOrigin) {
114050
- if (!import_node_fs149.default.existsSync(import_node_path153.default.join(appDir, "ios")) && findExpoAppConfig(appDir)) {
114051
- const packageJson = readText(import_node_path153.default.join(appDir, "package.json"));
114087
+ if (!import_node_fs150.default.existsSync(import_node_path154.default.join(appDir, "ios")) && findExpoAppConfig(appDir)) {
114088
+ const packageJson = readText(import_node_path154.default.join(appDir, "package.json"));
114052
114089
  if (packageJson) {
114053
114090
  const manifest = JSON.parse(packageJson);
114054
114091
  if (declaresNativeDependency(manifest, "expo") || declaresNativeDependency(manifest, "one"))
114055
114092
  appDir = (await prepareExpoNativeProject(appDir)).app;
114056
114093
  }
114057
114094
  }
114058
- const iosDir = import_node_path153.default.join(appDir, "ios");
114095
+ const iosDir = import_node_path154.default.join(appDir, "ios");
114059
114096
  const target = listDir2(iosDir).find(
114060
- (entry) => entry.isDirectory() && entry.name !== "Pods" && listDir2(import_node_path153.default.join(iosDir, entry.name)).some(
114097
+ (entry) => entry.isDirectory() && entry.name !== "Pods" && listDir2(import_node_path154.default.join(iosDir, entry.name)).some(
114061
114098
  (file) => /^AppDelegate\.(swift|mm|m)$/.test(file.name)
114062
114099
  )
114063
114100
  );
114064
114101
  if (!target) return null;
114065
- const targetDir = import_node_path153.default.join(iosDir, target.name);
114102
+ const targetDir = import_node_path154.default.join(iosDir, target.name);
114066
114103
  const files2 = [];
114067
114104
  for (const entry of listDir2(targetDir)) {
114068
114105
  if (entry.isDirectory() && entry.name.endsWith(".xcassets"))
114069
- catalogFiles(import_node_path153.default.join(targetDir, entry.name), files2);
114106
+ catalogFiles(import_node_path154.default.join(targetDir, entry.name), files2);
114070
114107
  }
114071
114108
  const relative4 = files2.map(
114072
- (file) => import_node_path153.default.relative(targetDir, file).split(import_node_path153.default.sep).join(import_node_path153.default.posix.sep)
114109
+ (file) => import_node_path154.default.relative(targetDir, file).split(import_node_path154.default.sep).join(import_node_path154.default.posix.sep)
114073
114110
  );
114074
- const readContents2 = (candidate) => readText(import_node_path153.default.join(targetDir, candidate));
114111
+ const readContents2 = (candidate) => readText(import_node_path154.default.join(targetDir, candidate));
114075
114112
  const pbxproj = listDir2(iosDir).find((entry) => entry.name.endsWith(".xcodeproj"));
114076
- const accentName = readText(import_node_path153.default.join(targetDir, "Info.plist"))?.match(PLIST_ACCENT)?.[1] ?? (pbxproj ? readText(import_node_path153.default.join(iosDir, pbxproj.name, "project.pbxproj"))?.match(
114113
+ const accentName = readText(import_node_path154.default.join(targetDir, "Info.plist"))?.match(PLIST_ACCENT)?.[1] ?? (pbxproj ? readText(import_node_path154.default.join(iosDir, pbxproj.name, "project.pbxproj"))?.match(
114077
114114
  ACCENT_BUILD_SETTING
114078
114115
  )?.[1] : void 0) ?? null;
114079
114116
  return readAssetCatalog(
@@ -114086,7 +114123,7 @@ async function discoverAppCatalog(appDir, assetOrigin) {
114086
114123
  );
114087
114124
  return null;
114088
114125
  }
114089
- return stageCatalogImage(import_node_path153.default.join(targetDir, file), scale, assetOrigin);
114126
+ return stageCatalogImage(import_node_path154.default.join(targetDir, file), scale, assetOrigin);
114090
114127
  },
114091
114128
  accentName
114092
114129
  );
@@ -114218,10 +114255,10 @@ async function prepareChannel({
114218
114255
  }
114219
114256
  }
114220
114257
  const identity2 = (0, import_node_crypto92.createHash)("sha256").update(bundle).update(icon);
114221
- for (const [path143, bytes] of [...files2].sort(
114258
+ for (const [path144, bytes] of [...files2].sort(
114222
114259
  ([a], [b]) => a < b ? -1 : a > b ? 1 : 0
114223
114260
  )) {
114224
- identity2.update(JSON.stringify([path143, digest2(bytes)]));
114261
+ identity2.update(JSON.stringify([path144, digest2(bytes)]));
114225
114262
  }
114226
114263
  if (native) identity2.update(JSON.stringify(native.metadata));
114227
114264
  if (oneSDK) identity2.update(JSON.stringify(oneSDK.metadata));
@@ -114231,7 +114268,7 @@ async function prepareChannel({
114231
114268
  const releaseKey = `${prefix}/peach/releases/${identity2.digest("hex")}`;
114232
114269
  const assetBaseUrl = `${origin.origin}/${releaseKey}/`;
114233
114270
  const directories = new Set(
114234
- [...files2.keys()].map((path143) => path143.slice(0, path143.lastIndexOf("/")))
114271
+ [...files2.keys()].map((path144) => path144.slice(0, path144.lastIndexOf("/")))
114235
114272
  );
114236
114273
  let locations = 0;
114237
114274
  const { stripRolldownBundleInventoryFooter, attachRolldownBundleInventory } = (await loadCliRuntime()).rolldown_bundle_inventory;
@@ -114245,12 +114282,12 @@ async function prepareChannel({
114245
114282
  /("?httpServerLocation"?\s*:\s*)(?:"((?:[^"\\]|\\.)*)"|`([^`\\$]*)`)/g,
114246
114283
  (match, property, quoted2, template) => {
114247
114284
  const location = quoted2 === void 0 ? template : JSON.parse(`"${quoted2}"`);
114248
- const path143 = packagedAssetDirectory(location);
114249
- if (!directories.has(path143)) {
114285
+ const path144 = packagedAssetDirectory(location);
114286
+ if (!directories.has(path144)) {
114250
114287
  throw new Error(`bundle asset location has no packaged files: ${location}`);
114251
114288
  }
114252
114289
  locations++;
114253
- return `${property}${JSON.stringify(new URL(path143, assetBaseUrl).href)}`;
114290
+ return `${property}${JSON.stringify(new URL(path144, assetBaseUrl).href)}`;
114254
114291
  }
114255
114292
  );
114256
114293
  if (assets2.some((asset) => !asset.path.startsWith("assets/native-catalog/")) && !locations)
@@ -114258,7 +114295,7 @@ async function prepareChannel({
114258
114295
  const attached = insertNativeBundleFooters(
114259
114296
  source,
114260
114297
  { oneSDK, expoSwift, expoKotlin, nitro, turbo },
114261
- (path143) => new URL(path143, assetBaseUrl).href
114298
+ (path144) => new URL(path144, assetBaseUrl).href
114262
114299
  );
114263
114300
  source = attached.source;
114264
114301
  if (appCatalog) {
@@ -114296,10 +114333,10 @@ async function prepareChannel({
114296
114333
  contentType: "application/javascript"
114297
114334
  },
114298
114335
  { key: `${releaseKey}/icon.png`, bytes: icon, contentType: "image/png" },
114299
- ...[...files2].map(([path143, bytes]) => ({
114300
- key: `${releaseKey}/${path143}`,
114336
+ ...[...files2].map(([path144, bytes]) => ({
114337
+ key: `${releaseKey}/${path144}`,
114301
114338
  bytes,
114302
- contentType: nativeAssets.get(path143)?.contentType ?? {
114339
+ contentType: nativeAssets.get(path144)?.contentType ?? {
114303
114340
  png: "image/png",
114304
114341
  jpg: "image/jpeg",
114305
114342
  jpeg: "image/jpeg",
@@ -114308,23 +114345,23 @@ async function prepareChannel({
114308
114345
  ttf: "font/ttf",
114309
114346
  otf: "font/otf",
114310
114347
  wav: "audio/wav"
114311
- }[path143.split(".").pop()] ?? "application/octet-stream"
114348
+ }[path144.split(".").pop()] ?? "application/octet-stream"
114312
114349
  }))
114313
114350
  ];
114314
114351
  return { platform: platform2, key: `${prefix}/${channelKey(platform2)}`, metadata, objects };
114315
114352
  }
114316
114353
  function brotliCompressCached(bytes) {
114317
- const file = (0, import_node_path156.join)(cacheDir(), "bundle-channel-brotli", `${digest2(bytes)}-q11-w24.br`);
114318
- if ((0, import_node_fs152.existsSync)(file)) return (0, import_node_fs152.readFileSync)(file);
114354
+ const file = (0, import_node_path157.join)(cacheDir(), "bundle-channel-brotli", `${digest2(bytes)}-q11-w24.br`);
114355
+ if ((0, import_node_fs153.existsSync)(file)) return (0, import_node_fs153.readFileSync)(file);
114319
114356
  const compressed = (0, import_node_zlib11.brotliCompressSync)(bytes, {
114320
114357
  params: {
114321
114358
  [import_node_zlib11.constants.BROTLI_PARAM_QUALITY]: 11,
114322
114359
  [import_node_zlib11.constants.BROTLI_PARAM_LGWIN]: 24
114323
114360
  }
114324
114361
  });
114325
- (0, import_node_fs152.mkdirSync)((0, import_node_path156.dirname)(file), { recursive: true });
114326
- (0, import_node_fs152.writeFileSync)(`${file}.${process.pid}`, compressed);
114327
- (0, import_node_fs152.renameSync)(`${file}.${process.pid}`, file);
114362
+ (0, import_node_fs153.mkdirSync)((0, import_node_path157.dirname)(file), { recursive: true });
114363
+ (0, import_node_fs153.writeFileSync)(`${file}.${process.pid}`, compressed);
114364
+ (0, import_node_fs153.renameSync)(`${file}.${process.pid}`, file);
114328
114365
  return compressed;
114329
114366
  }
114330
114367
  async function publishBundleChannel(release, { put, fetchObject = fetch }) {
@@ -114375,15 +114412,15 @@ async function packagePlatformBundle(projectRoot, platform2, bundle, { config, v
114375
114412
  const directory2 = packagedAssetDirectory(asset.httpServerLocation);
114376
114413
  if (asset.files) {
114377
114414
  for (const file of asset.files) {
114378
- const path143 = `${directory2}/${(0, import_node_path156.basename)(file)}`;
114379
- if (!assets2.has(path143)) assets2.set(path143, (0, import_node_fs152.readFileSync)(file));
114415
+ const path144 = `${directory2}/${(0, import_node_path157.basename)(file)}`;
114416
+ if (!assets2.has(path144)) assets2.set(path144, (0, import_node_fs153.readFileSync)(file));
114380
114417
  }
114381
114418
  continue;
114382
114419
  }
114383
114420
  for (const scale of asset.scales) {
114384
114421
  const file = `${asset.name}${scale === 1 ? "" : `@${scale}x`}.${asset.type}`;
114385
- const path143 = `${directory2}/${file}`;
114386
- if (!assets2.has(path143)) assets2.set(path143, await readAssetFile(asset, file));
114422
+ const path144 = `${directory2}/${file}`;
114423
+ if (!assets2.has(path144)) assets2.set(path144, await readAssetFile(asset, file));
114387
114424
  }
114388
114425
  }
114389
114426
  let appCatalog = null;
@@ -114397,11 +114434,11 @@ async function packagePlatformBundle(projectRoot, platform2, bundle, { config, v
114397
114434
  images: Object.fromEntries(Object.entries(captured.value.images).map(([name3, variants]) => [
114398
114435
  name3,
114399
114436
  variants.map((image) => {
114400
- const file = (0, import_node_path156.basename)(new URL(image.uri).pathname);
114437
+ const file = (0, import_node_path157.basename)(new URL(image.uri).pathname);
114401
114438
  const staged = captured.files.get(file);
114402
114439
  if (!staged) throw new Error("app catalog image was not staged");
114403
114440
  const resource = `assets/native-catalog/${file}`;
114404
- assets2.set(resource, (0, import_node_fs152.readFileSync)(staged));
114441
+ assets2.set(resource, (0, import_node_fs153.readFileSync)(staged));
114405
114442
  return { ...image, uri: resource };
114406
114443
  })
114407
114444
  ]))
@@ -114422,7 +114459,7 @@ async function packagePlatformBundle(projectRoot, platform2, bundle, { config, v
114422
114459
  versions
114423
114460
  )
114424
114461
  ),
114425
- assets: [...assets2].map(([path143, bytes]) => ({ path: path143, bytes })),
114462
+ assets: [...assets2].map(([path144, bytes]) => ({ path: path144, bytes })),
114426
114463
  ...await buildNativeBundles(projectRoot, platform2, configuration)
114427
114464
  };
114428
114465
  }
@@ -114502,12 +114539,12 @@ async function snapshotOneProductionBundle(projectRoot, entryFile, env = {}, { r
114502
114539
  const inputs2 = await readPackagingInputs(projectRoot);
114503
114540
  const snapshots = [];
114504
114541
  for (const platform2 of platforms2) {
114505
- const out = await mkdtemp((0, import_node_path156.join)(tmpdir3(), "peach-production-bundle-"));
114542
+ const out = await mkdtemp((0, import_node_path157.join)(tmpdir3(), "peach-production-bundle-"));
114506
114543
  try {
114507
114544
  await promisify21(execFile22)(
114508
114545
  runtimeExecutable,
114509
114546
  [
114510
- (0, import_node_path156.join)(projectRoot, "node_modules/.bin/react-native"),
114547
+ (0, import_node_path157.join)(projectRoot, "node_modules/.bin/react-native"),
114511
114548
  "bundle",
114512
114549
  "--platform",
114513
114550
  platform2,
@@ -114518,19 +114555,19 @@ async function snapshotOneProductionBundle(projectRoot, entryFile, env = {}, { r
114518
114555
  "--entry-file",
114519
114556
  entryFile,
114520
114557
  "--bundle-output",
114521
- (0, import_node_path156.join)(out, "bundle.js"),
114558
+ (0, import_node_path157.join)(out, "bundle.js"),
114522
114559
  "--assets-dest",
114523
- (0, import_node_path156.join)(out, "assets"),
114560
+ (0, import_node_path157.join)(out, "assets"),
114524
114561
  "--sourcemap-output",
114525
- (0, import_node_path156.join)(out, "bundle.js.map")
114562
+ (0, import_node_path157.join)(out, "bundle.js.map")
114526
114563
  ],
114527
114564
  { cwd: projectRoot, env: { ...process.env, ...env, NODE_ENV: "production" } }
114528
114565
  );
114529
114566
  snapshots.push(
114530
- await packagePlatformBundle(projectRoot, platform2, await readFile4((0, import_node_path156.join)(out, "bundle.js")), {
114567
+ await packagePlatformBundle(projectRoot, platform2, await readFile4((0, import_node_path157.join)(out, "bundle.js")), {
114531
114568
  ...inputs2,
114532
114569
  configuration: "Release",
114533
- readAssetFile: (asset, file) => readFile4((0, import_node_path156.join)(out, asset.httpServerLocation, file))
114570
+ readAssetFile: (asset, file) => readFile4((0, import_node_path157.join)(out, asset.httpServerLocation, file))
114534
114571
  })
114535
114572
  );
114536
114573
  } finally {
@@ -114543,12 +114580,12 @@ async function snapshotOneDevBundle(projectRoot, env = {}, { runtimeExecutable =
114543
114580
  const { spawn: spawn15 } = await import("node:child_process");
114544
114581
  const { createServer: createServer2 } = await import("node:net");
114545
114582
  const { createRequire: createRequire24 } = await import("node:module");
114546
- const onePackage = createRequire24((0, import_node_path156.join)(projectRoot, "package.json")).resolve(
114583
+ const onePackage = createRequire24((0, import_node_path157.join)(projectRoot, "package.json")).resolve(
114547
114584
  "one/package.json"
114548
114585
  );
114549
- const oneBin = (0, import_node_path156.join)(
114550
- (0, import_node_path156.dirname)(onePackage),
114551
- JSON.parse((0, import_node_fs152.readFileSync)(onePackage, "utf8")).bin.one
114586
+ const oneBin = (0, import_node_path157.join)(
114587
+ (0, import_node_path157.dirname)(onePackage),
114588
+ JSON.parse((0, import_node_fs153.readFileSync)(onePackage, "utf8")).bin.one
114552
114589
  );
114553
114590
  const port = await new Promise((resolve4, reject) => {
114554
114591
  const server = createServer2().listen(0, "127.0.0.1", () => {