peachsim 0.1.2604 → 0.1.2606

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 (136) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +2 -2
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +5 -5
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +3 -3
  13. package/dist-lib/bundle-channel.cjs +711 -264
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +3 -3
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +3 -3
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +2 -2
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +7 -7
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +5 -5
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-LROHNOTI.mjs → acorn-UL7Z3WUQ.mjs} +3 -3
  27. package/dist-lib/esm-chunks/chunk-25LYRBSX.mjs +326 -0
  28. package/dist-lib/esm-chunks/{chunk-5PAS3JPN.mjs → chunk-34CIYRB7.mjs} +4 -4
  29. package/dist-lib/esm-chunks/{chunk-SHI5JBYR.mjs → chunk-5ANQR24T.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-XQ6L5NAP.mjs → chunk-5JMW5G3U.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-PGX6LQGN.mjs → chunk-66ESCMV3.mjs} +14 -16
  32. package/dist-lib/esm-chunks/{chunk-QLHCTSTS.mjs → chunk-B7AXR7WA.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-I4CSXNE2.mjs → chunk-CPMK3DA6.mjs} +3 -3
  34. package/dist-lib/esm-chunks/{chunk-TTFK5OB5.mjs → chunk-E2TASYAA.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-D6ZKT76D.mjs → chunk-EXB4QSQI.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-MDQD2EWS.mjs → chunk-KWLQDES2.mjs} +1 -1
  37. package/dist-lib/esm-chunks/chunk-L7FPUZZO.mjs +32 -0
  38. package/dist-lib/esm-chunks/{chunk-VLXWMELI.mjs → chunk-MBCSJQRY.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-XAUCUNHQ.mjs → chunk-O6NRI4T2.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-QLDDWJZM.mjs → chunk-O6ZNRBLB.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-KDVUOR2X.mjs → chunk-OB5XSLW6.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-66DBBYBQ.mjs → chunk-PLOV7VQQ.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-V67IQJYQ.mjs → chunk-QFASF6EH.mjs} +5 -5
  44. package/dist-lib/esm-chunks/{chunk-H24XE4CC.mjs → chunk-RTPUFY2K.mjs} +5 -5
  45. package/dist-lib/esm-chunks/{chunk-B4XB65QA.mjs → chunk-TVICD24H.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-EBAPBDAA.mjs → chunk-VTZJPPTE.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-MVDOSU4A.mjs → chunk-WJKACRMG.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-PHZNITBS.mjs → chunk-XUWYWP35.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{metro-layout-parser-B5QD4ZPV.mjs → metro-layout-parser-OMUFYOJI.mjs} +3 -3
  50. package/dist-lib/esm-chunks/{swift-package-prebuilt-WSRQK3A3.mjs → swift-package-prebuilt-X7EZCX34.mjs} +10 -10
  51. package/dist-lib/esm-chunks/{swift-sdk-app-module-QGPZGT6Y.mjs → swift-sdk-app-module-E3IF2XPD.mjs} +14 -14
  52. package/dist-lib/esm-chunks/{swift-sdk-image-UCZJTQYU.mjs → swift-sdk-image-57YYLNU6.mjs} +14 -14
  53. package/dist-lib/esm-chunks/{swift-sdk-image-producer-UKOKB5NS.mjs → swift-sdk-image-producer-DZOZTTDZ.mjs} +4 -4
  54. package/dist-lib/expo-swift-bundle.cjs +710 -263
  55. package/dist-lib/expo-swift-metadata.cjs +1 -1
  56. package/dist-lib/expo-swift-metadata.mjs +7 -7
  57. package/dist-lib/home-paths.cjs +1 -1
  58. package/dist-lib/host/bridge-host.cjs +727 -279
  59. package/dist-lib/host/fetch-proxy-handler.cjs +43 -37
  60. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  61. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  62. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  63. package/dist-lib/host/websocket-proxy.cjs +1 -1
  64. package/dist-lib/index.cjs +1 -1
  65. package/dist-lib/kotlin-host.cjs +1 -1
  66. package/dist-lib/menu.cjs +1 -1
  67. package/dist-lib/menu.mjs +3 -3
  68. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  69. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  70. package/dist-lib/metro-production-bundle.cjs +1 -1
  71. package/dist-lib/metro-production-bundle.mjs +4 -4
  72. package/dist-lib/native-app-identity-project.cjs +537 -246
  73. package/dist-lib/native-app-identity-project.mjs +218 -1828
  74. package/dist-lib/native-app-identity.cjs +1 -1
  75. package/dist-lib/native-app-identity.mjs +6 -6
  76. package/dist-lib/native-firebase-metadata.cjs +1 -1
  77. package/dist-lib/native-firebase-metadata.mjs +3 -3
  78. package/dist-lib/pdfium-raster.cjs +1 -1
  79. package/dist-lib/pdfium-raster.mjs +2 -2
  80. package/dist-lib/plist.cjs +327 -15
  81. package/dist-lib/plist.mjs +13 -5
  82. package/dist-lib/profiles.cjs +1 -1
  83. package/dist-lib/public-brand.cjs +1 -1
  84. package/dist-lib/public-origins-lib-esm.json +82 -129
  85. package/dist-lib/public-origins-lib.json +69 -140
  86. package/dist-lib/react-native-host-modules.cjs +1 -1
  87. package/dist-lib/react-native-host-modules.mjs +2 -2
  88. package/dist-lib/reap-browser.cjs +1 -1
  89. package/dist-lib/scripts/dev-server-scanner.cjs +211 -3
  90. package/dist-lib/sdk.cjs +1 -1
  91. package/dist-lib/sdk.mjs +8 -8
  92. package/dist-lib/skills.cjs +743 -295
  93. package/dist-lib/swift-compile.cjs +3 -5
  94. package/dist-lib/swift-compile.mjs +10 -10
  95. package/dist-lib/swift-package.cjs +1 -1
  96. package/dist-lib/swift-package.mjs +3 -3
  97. package/dist-lib/swift-submit.cjs +1 -1
  98. package/dist-lib/swift-submit.mjs +6 -6
  99. package/dist-lib/swift-svg-raster.cjs +1 -1
  100. package/dist-lib/swift-svg-raster.mjs +2 -2
  101. package/dist-lib/swift-toolchain.cjs +1 -1
  102. package/dist-lib/swift.cjs +1 -1
  103. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  104. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  105. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  106. package/dist-lib/vendor/acorn.cjs +1 -1
  107. package/dist-lib/vendor/magic-string.cjs +1 -1
  108. package/dist-lib/vendor/stream-json.cjs +1 -1
  109. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  110. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase.cjs +1 -1
  114. package/dist-lib/vendor/terser.cjs +1 -1
  115. package/dist-lib/vendor/valibot.cjs +1 -1
  116. package/dist-lib/vendor/ws.cjs +1 -1
  117. package/dist-lib/vendor/zod.cjs +1 -1
  118. package/dist-lib/worklet-executable.cjs +1 -1
  119. package/dist-lib/worklet-executable.mjs +3 -3
  120. package/package.json +1 -6
  121. package/src/bazel-project.ts +1 -1
  122. package/src/expo-native-prebuilt.ts +1 -1
  123. package/src/expo-workspace-exclusion.ts +1 -1
  124. package/src/gitignore.ts +175 -0
  125. package/src/intent-definition/plist-reader.ts +22 -168
  126. package/src/one-native-controls-package.ts +1 -1
  127. package/src/plist-bytes.ts +144 -2
  128. package/src/plist.ts +359 -2
  129. package/src/swift-compile.ts +4 -6
  130. package/src/xcode-project.ts +1 -1
  131. package/dist-lib/esm-chunks/chunk-ISOWI4MR.mjs +0 -65
  132. package/dist-lib/esm-chunks/chunk-XEM2LPMG.mjs +0 -10993
  133. package/dist-lib/vendor/@xmldom/xmldom.cjs +0 -6481
  134. package/dist-lib/vendor/bplist-parser.cjs +0 -1589
  135. package/dist-lib/vendor/ignore.cjs +0 -455
  136. package/dist-lib/vendor/plist.cjs +0 -10978
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2604 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2606 | (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;
@@ -5284,23 +5284,23 @@ function isNativeAppIdentity(value) {
5284
5284
  if (platform2 === "android" && !/^[1-9][0-9]*$/.test(buildVersion)) return false;
5285
5285
  return true;
5286
5286
  }
5287
- function readGoogleSignInConfiguration(plist6, resources) {
5287
+ function readGoogleSignInConfiguration(plist2, resources) {
5288
5288
  const clientIds = {};
5289
5289
  for (const [file, value] of Object.entries(resources)) {
5290
5290
  if (isRecord(value) && typeof value.CLIENT_ID === "string")
5291
5291
  clientIds[file.split("/").pop()?.replace(/\.plist$/, "") ?? file] = value.CLIENT_ID;
5292
5292
  }
5293
5293
  const urlSchemes = [];
5294
- for (const entry of Array.isArray(plist6.CFBundleURLTypes) ? plist6.CFBundleURLTypes : []) {
5294
+ for (const entry of Array.isArray(plist2.CFBundleURLTypes) ? plist2.CFBundleURLTypes : []) {
5295
5295
  if (!isRecord(entry) || !Array.isArray(entry.CFBundleURLSchemes)) continue;
5296
5296
  for (const scheme of entry.CFBundleURLSchemes)
5297
5297
  if (typeof scheme === "string") urlSchemes.push(scheme);
5298
5298
  }
5299
5299
  return {
5300
- clientId: plist6.GIDClientID,
5301
- serverClientId: plist6.GIDServerClientID,
5302
- hostedDomain: plist6.GIDHostedDomain,
5303
- openIDRealm: plist6.GIDOpenIDRealm,
5300
+ clientId: plist2.GIDClientID,
5301
+ serverClientId: plist2.GIDServerClientID,
5302
+ hostedDomain: plist2.GIDHostedDomain,
5303
+ openIDRealm: plist2.GIDOpenIDRealm,
5304
5304
  urlSchemes,
5305
5305
  clientIds
5306
5306
  };
@@ -5935,6 +5935,160 @@ var init_admitted_mac_build = __esm({
5935
5935
  }
5936
5936
  });
5937
5937
 
5938
+ // src/gitignore.ts
5939
+ function stripTrailingSpaces(line) {
5940
+ let end = line.length;
5941
+ while (end > 0 && line[end - 1] === " ") {
5942
+ let slashes = 0;
5943
+ for (let i = end - 2; i >= 0 && line[i] === "\\"; i--) slashes++;
5944
+ if (slashes % 2 === 1) break;
5945
+ end--;
5946
+ }
5947
+ return line.slice(0, end);
5948
+ }
5949
+ function globToRegexSource(pattern) {
5950
+ let out = "";
5951
+ let i = 0;
5952
+ while (i < pattern.length) {
5953
+ const ch = pattern[i];
5954
+ if (ch === "\\" && i + 1 < pattern.length) {
5955
+ out += pattern[i + 1].replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
5956
+ i += 2;
5957
+ continue;
5958
+ }
5959
+ if (ch === "*") {
5960
+ if (pattern[i + 1] === "*") {
5961
+ const prevIsSlashOrStart = i === 0 || pattern[i - 1] === "/";
5962
+ const nextIsSlash = pattern[i + 2] === "/";
5963
+ const nextIsEnd = i + 2 === pattern.length;
5964
+ if (prevIsSlashOrStart && nextIsSlash) {
5965
+ out += "(?:.+/)?";
5966
+ i += 3;
5967
+ continue;
5968
+ }
5969
+ if (prevIsSlashOrStart && nextIsEnd) {
5970
+ out += ".*";
5971
+ i += 2;
5972
+ continue;
5973
+ }
5974
+ out += ".*";
5975
+ i += 2;
5976
+ continue;
5977
+ }
5978
+ out += "[^/]*";
5979
+ i++;
5980
+ continue;
5981
+ }
5982
+ if (ch === "?") {
5983
+ out += "[^/]";
5984
+ i++;
5985
+ continue;
5986
+ }
5987
+ if (ch === "[") {
5988
+ let j = i + 1;
5989
+ if (j < pattern.length && (pattern[j] === "!" || pattern[j] === "^")) j++;
5990
+ if (j < pattern.length && pattern[j] === "]") j++;
5991
+ while (j < pattern.length && pattern[j] !== "]") {
5992
+ if (pattern[j] === "\\" && j + 1 < pattern.length) j += 2;
5993
+ else j++;
5994
+ }
5995
+ if (j < pattern.length) {
5996
+ let body = pattern.slice(i + 1, j);
5997
+ if (body.startsWith("!")) body = `^${body.slice(1)}`;
5998
+ out += `[${body}]`;
5999
+ i = j + 1;
6000
+ continue;
6001
+ }
6002
+ }
6003
+ out += ch.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
6004
+ i++;
6005
+ }
6006
+ return out;
6007
+ }
6008
+ function compileRule(rawLine) {
6009
+ const withoutCr = rawLine.endsWith("\r") ? rawLine.slice(0, -1) : rawLine;
6010
+ const trimmed = stripTrailingSpaces(withoutCr);
6011
+ if (!trimmed || trimmed.startsWith("#")) return null;
6012
+ let negative = false;
6013
+ let pattern = trimmed;
6014
+ if (pattern.startsWith("!")) {
6015
+ negative = true;
6016
+ pattern = pattern.slice(1);
6017
+ }
6018
+ if (!pattern) return null;
6019
+ const directoryOnly = pattern.endsWith("/");
6020
+ if (directoryOnly) {
6021
+ pattern = pattern.slice(0, -1);
6022
+ if (!pattern) return null;
6023
+ }
6024
+ const anchored = pattern.includes("/");
6025
+ if (pattern.startsWith("/")) {
6026
+ pattern = pattern.slice(1);
6027
+ }
6028
+ const body = globToRegexSource(pattern);
6029
+ const prefix = anchored ? "^" : "(?:^|/)";
6030
+ const regex2 = new RegExp(`${prefix}${body}$`, "i");
6031
+ return { negative, directoryOnly, regex: regex2 };
6032
+ }
6033
+ function normalizePath(input) {
6034
+ const isDirectory5 = input.endsWith("/");
6035
+ let normalized = isDirectory5 ? input.slice(0, -1) : input;
6036
+ if (normalized.startsWith("./")) normalized = normalized.slice(2);
6037
+ return { path: normalized, isDirectory: isDirectory5 };
6038
+ }
6039
+ function createGitignoreMatcher() {
6040
+ const rules2 = [];
6041
+ const matchSingle = (candidate, isDirectory5) => {
6042
+ let ignored = false;
6043
+ let unignored = false;
6044
+ for (const rule of rules2) {
6045
+ if (rule.directoryOnly && !isDirectory5) continue;
6046
+ if (!rule.regex.test(candidate)) continue;
6047
+ if (rule.negative) {
6048
+ ignored = false;
6049
+ unignored = true;
6050
+ } else {
6051
+ ignored = true;
6052
+ unignored = false;
6053
+ }
6054
+ }
6055
+ return { ignored, unignored };
6056
+ };
6057
+ const matcher = {
6058
+ add(patterns) {
6059
+ const list2 = typeof patterns === "string" ? patterns.split("\n") : patterns;
6060
+ for (const entry of list2) {
6061
+ for (const line of entry.split("\n")) {
6062
+ const compiled = compileRule(line);
6063
+ if (compiled) rules2.push(compiled);
6064
+ }
6065
+ }
6066
+ return matcher;
6067
+ },
6068
+ test(relativePath2) {
6069
+ const { path: path139, isDirectory: isDirectory5 } = normalizePath(relativePath2);
6070
+ if (!path139) return { ignored: false, unignored: false };
6071
+ const parts = path139.split("/");
6072
+ let prefix = "";
6073
+ for (let i = 0; i < parts.length - 1; i++) {
6074
+ prefix = prefix ? `${prefix}/${parts[i]}` : parts[i];
6075
+ const parent = matchSingle(prefix, true);
6076
+ if (parent.ignored) return { ignored: true, unignored: false };
6077
+ }
6078
+ return matchSingle(path139, isDirectory5);
6079
+ },
6080
+ ignores(relativePath2) {
6081
+ return matcher.test(relativePath2).ignored;
6082
+ }
6083
+ };
6084
+ return matcher;
6085
+ }
6086
+ var init_gitignore = __esm({
6087
+ "src/gitignore.ts"() {
6088
+ "use strict";
6089
+ }
6090
+ });
6091
+
5938
6092
  // src/expo-workspace-exclusion.ts
5939
6093
  async function workspaceExclusion(root, portable = false, linkedPackages = []) {
5940
6094
  const listed = await (0, import_node_util.promisify)(import_node_child_process6.execFile)(
@@ -6004,7 +6158,7 @@ function gitignoreRules(root) {
6004
6158
  let rules2 = ignoreFiles.get(directory2);
6005
6159
  if (rules2 === void 0) {
6006
6160
  const file = import_node_path9.default.join(root, directory2, ".gitignore");
6007
- rules2 = import_node_fs11.default.existsSync(file) ? (0, import_ignore.default)().add(import_node_fs11.default.readFileSync(file, "utf8")) : null;
6161
+ rules2 = import_node_fs11.default.existsSync(file) ? createGitignoreMatcher().add(import_node_fs11.default.readFileSync(file, "utf8")) : null;
6008
6162
  ignoreFiles.set(directory2, rules2);
6009
6163
  }
6010
6164
  if (!rules2) continue;
@@ -6016,7 +6170,7 @@ function gitignoreRules(root) {
6016
6170
  return excluded;
6017
6171
  };
6018
6172
  }
6019
- var import_node_child_process6, import_node_fs11, import_node_path9, import_node_util, import_ignore, gitEnvironment;
6173
+ var import_node_child_process6, import_node_fs11, import_node_path9, import_node_util, gitEnvironment;
6020
6174
  var init_expo_workspace_exclusion = __esm({
6021
6175
  "src/expo-workspace-exclusion.ts"() {
6022
6176
  "use strict";
@@ -6024,7 +6178,7 @@ var init_expo_workspace_exclusion = __esm({
6024
6178
  import_node_fs11 = __toESM(require("node:fs"), 1);
6025
6179
  import_node_path9 = __toESM(require("node:path"), 1);
6026
6180
  import_node_util = require("node:util");
6027
- import_ignore = __toESM(require("peachsim/vendor/ignore"), 1);
6181
+ init_gitignore();
6028
6182
  gitEnvironment = () => ({
6029
6183
  ...process.env,
6030
6184
  GIT_CONFIG_GLOBAL: "/dev/null",
@@ -35464,7 +35618,6 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
35464
35618
  (left, right) => right.path.length - left.path.length
35465
35619
  );
35466
35620
  const targetsByDir = indexTargetsByDirectory(bySourcePath);
35467
- const targetByName = new Map(targets.map((target) => [target.name, target]));
35468
35621
  const nativeTargets2 = input.nativeTargets ?? [];
35469
35622
  const nativeTargetByName = new Map(nativeTargets2.map((target) => [target.name, target]));
35470
35623
  const nativeTargetIndex = new Map(
@@ -35540,7 +35693,6 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
35540
35693
  checkedToolchain = swiftToolchain(pin2.release, swiftModuleSdk(moduleRoot));
35541
35694
  return checkedToolchain;
35542
35695
  };
35543
- const deploymentTarget = (name3) => nativeTargetByName.get(name3)?.deploymentTarget ?? targetByName.get(name3)?.iosDeploymentTarget ?? null;
35544
35696
  const targetStagedFiles = /* @__PURE__ */ new Map();
35545
35697
  const stageTargetFile = (target, file, contents2, options2) => {
35546
35698
  const relative4 = import_node_path53.default.relative(layout2.root, file).split(import_node_path53.default.sep).join(import_node_path53.default.posix.sep);
@@ -36615,7 +36767,7 @@ ${entry}`);
36615
36767
  };
36616
36768
  for (const target of targets) {
36617
36769
  if (!target.executable && !reachesNative(target.name)) continue;
36618
- const version2 = deploymentTarget(target.name);
36770
+ const version2 = nativeTargetByName.get(target.name)?.deploymentTarget ?? target.iosDeploymentTarget ?? null;
36619
36771
  const minimum = iosDeploymentMinimum(version2);
36620
36772
  if (minimum === void 0)
36621
36773
  throw new Error(
@@ -39281,7 +39433,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
39281
39433
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
39282
39434
  MULTI_MANIFEST_VERSION = 76;
39283
39435
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
39284
- compilerSourceDigest = true ? "6fbcbab3535da2f464a19f4d3c1db8a7e4b393927e5158477332f4cc978cc22f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
39436
+ compilerSourceDigest = true ? "37c95b1d4be497f3f882c4c51f2be7e5bb09b4bcc4976a51d553b0a993c9c7ca" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
39285
39437
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
39286
39438
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
39287
39439
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -57110,21 +57262,457 @@ end
57110
57262
  });
57111
57263
 
57112
57264
  // src/plist.ts
57265
+ function decodeXmlEntities(text7) {
57266
+ if (!text7.includes("&")) return text7;
57267
+ return text7.replace(/&(#x[0-9a-fA-F]+|#[0-9]+|[a-zA-Z]+);/g, (full, entity2) => {
57268
+ if (entity2.startsWith("#x") || entity2.startsWith("#X")) {
57269
+ const code = Number.parseInt(entity2.slice(2), 16);
57270
+ return Number.isFinite(code) ? String.fromCodePoint(code) : full;
57271
+ }
57272
+ if (entity2.startsWith("#")) {
57273
+ const code = Number.parseInt(entity2.slice(1), 10);
57274
+ return Number.isFinite(code) ? String.fromCodePoint(code) : full;
57275
+ }
57276
+ return NAMED_ENTITIES[entity2] ?? full;
57277
+ });
57278
+ }
57279
+ function escapeXmlText(text7) {
57280
+ return text7.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
57281
+ }
57282
+ function parseXmlDocument(input) {
57283
+ const source = input.startsWith("\uFEFF") ? input.slice(1) : input;
57284
+ const len = source.length;
57285
+ let pos = 0;
57286
+ const skipIgnorable = () => {
57287
+ while (pos < len) {
57288
+ while (pos < len && /\s/.test(source[pos])) pos++;
57289
+ if (source.startsWith("<!--", pos)) {
57290
+ const end = source.indexOf("-->", pos + 4);
57291
+ if (end === -1) throw new Error("unterminated XML comment");
57292
+ pos = end + 3;
57293
+ continue;
57294
+ }
57295
+ if (source.startsWith("<?", pos)) {
57296
+ const end = source.indexOf("?>", pos + 2);
57297
+ if (end === -1) throw new Error("unterminated XML processing instruction");
57298
+ pos = end + 2;
57299
+ continue;
57300
+ }
57301
+ if (source.startsWith("<!DOCTYPE", pos)) {
57302
+ pos += 9;
57303
+ let depth = 0;
57304
+ let quote3 = "";
57305
+ while (pos < len) {
57306
+ const ch = source[pos];
57307
+ pos++;
57308
+ if (quote3) {
57309
+ if (ch === quote3) quote3 = "";
57310
+ } else if (ch === '"' || ch === "'") {
57311
+ quote3 = ch;
57312
+ } else if (ch === "[") {
57313
+ depth++;
57314
+ } else if (ch === "]") {
57315
+ depth = Math.max(0, depth - 1);
57316
+ } else if (ch === ">" && depth === 0) {
57317
+ break;
57318
+ }
57319
+ }
57320
+ continue;
57321
+ }
57322
+ break;
57323
+ }
57324
+ };
57325
+ const readElement = () => {
57326
+ if (source[pos] !== "<") {
57327
+ throw new Error(`expected XML tag at offset ${pos}`);
57328
+ }
57329
+ pos++;
57330
+ const nameStart = pos;
57331
+ while (pos < len && /[^\s/>]/.test(source[pos])) pos++;
57332
+ const tag = source.slice(nameStart, pos);
57333
+ if (!tag) throw new Error(`empty XML tag name at offset ${nameStart}`);
57334
+ let quote3 = "";
57335
+ let selfClosing = false;
57336
+ while (pos < len) {
57337
+ const ch = source[pos];
57338
+ if (quote3) {
57339
+ pos++;
57340
+ if (ch === quote3) quote3 = "";
57341
+ continue;
57342
+ }
57343
+ if (ch === '"' || ch === "'") {
57344
+ quote3 = ch;
57345
+ pos++;
57346
+ continue;
57347
+ }
57348
+ if (ch === "/" && source[pos + 1] === ">") {
57349
+ selfClosing = true;
57350
+ pos += 2;
57351
+ break;
57352
+ }
57353
+ if (ch === ">") {
57354
+ pos++;
57355
+ break;
57356
+ }
57357
+ pos++;
57358
+ }
57359
+ if (selfClosing) {
57360
+ return { tag, children: [], text: "" };
57361
+ }
57362
+ const children = [];
57363
+ let text7 = "";
57364
+ while (pos < len) {
57365
+ if (source.startsWith("<!--", pos)) {
57366
+ const end2 = source.indexOf("-->", pos + 4);
57367
+ if (end2 === -1) throw new Error("unterminated XML comment");
57368
+ pos = end2 + 3;
57369
+ continue;
57370
+ }
57371
+ if (source.startsWith("<![CDATA[", pos)) {
57372
+ const end2 = source.indexOf("]]>", pos + 9);
57373
+ if (end2 === -1) throw new Error("unterminated CDATA section");
57374
+ text7 += source.slice(pos + 9, end2);
57375
+ pos = end2 + 3;
57376
+ continue;
57377
+ }
57378
+ if (source.startsWith("</", pos)) {
57379
+ pos += 2;
57380
+ const closeStart = pos;
57381
+ while (pos < len && /[^\s>]/.test(source[pos])) pos++;
57382
+ const closeTag = source.slice(closeStart, pos);
57383
+ while (pos < len && /\s/.test(source[pos])) pos++;
57384
+ if (source[pos] !== ">") throw new Error(`malformed closing tag </${closeTag}>`);
57385
+ pos++;
57386
+ if (closeTag !== tag) {
57387
+ throw new Error(`mismatched XML closing tag </${closeTag}> for <${tag}>`);
57388
+ }
57389
+ return { tag, children, text: text7 };
57390
+ }
57391
+ if (source[pos] === "<") {
57392
+ children.push(readElement());
57393
+ continue;
57394
+ }
57395
+ const nextTag = source.indexOf("<", pos);
57396
+ const end = nextTag === -1 ? len : nextTag;
57397
+ text7 += decodeXmlEntities(source.slice(pos, end));
57398
+ pos = end;
57399
+ }
57400
+ throw new Error(`unclosed XML tag <${tag}>`);
57401
+ };
57402
+ skipIgnorable();
57403
+ if (pos >= len) throw new Error("empty XML plist document");
57404
+ return readElement();
57405
+ }
57406
+ function parseXmlPlist(source, options2 = {}) {
57407
+ const root = parseXmlDocument(source);
57408
+ if (root.tag !== "plist") {
57409
+ throw new Error(`expected <plist> root element, got <${root.tag}>`);
57410
+ }
57411
+ if (root.children.length === 0) {
57412
+ if (options2.strict) throw new Error("<plist> element has no root value");
57413
+ return void 0;
57414
+ }
57415
+ if (options2.strict && root.children.length !== 1) {
57416
+ throw new Error("<plist> element must contain exactly one root value");
57417
+ }
57418
+ const leafText = (node) => {
57419
+ if (options2.strict && node.children.length > 0) {
57420
+ throw new Error(`<${node.tag}> must not contain child elements`);
57421
+ }
57422
+ return node.text;
57423
+ };
57424
+ const visit3 = (node) => {
57425
+ switch (node.tag) {
57426
+ case "dict": {
57427
+ const result = {};
57428
+ if (options2.strict && node.children.length % 2 !== 0) {
57429
+ throw new Error("<dict> must contain key/value pairs");
57430
+ }
57431
+ for (let i = 0; i + 1 < node.children.length; i += 2) {
57432
+ const keyNode = node.children[i];
57433
+ if (keyNode.tag !== "key") {
57434
+ throw new Error(`expected <key> in <dict>, got <${keyNode.tag}>`);
57435
+ }
57436
+ result[leafText(keyNode)] = visit3(node.children[i + 1]);
57437
+ }
57438
+ return result;
57439
+ }
57440
+ case "array":
57441
+ return node.children.map(visit3);
57442
+ case "string":
57443
+ return leafText(node);
57444
+ case "integer": {
57445
+ const raw2 = leafText(node).trim();
57446
+ if (options2.onInteger) return options2.onInteger(raw2);
57447
+ if (!raw2) throw new Error("empty <integer> element");
57448
+ return Number.parseInt(raw2, 10);
57449
+ }
57450
+ case "real": {
57451
+ const raw2 = leafText(node).trim();
57452
+ if (options2.onReal) return options2.onReal(raw2);
57453
+ if (!raw2) throw new Error("empty <real> element");
57454
+ return Number.parseFloat(raw2);
57455
+ }
57456
+ case "true":
57457
+ return true;
57458
+ case "false":
57459
+ return false;
57460
+ case "data":
57461
+ return Buffer.from(leafText(node).replace(/\s+/g, ""), "base64");
57462
+ case "date":
57463
+ return new Date(leafText(node).trim());
57464
+ default:
57465
+ throw new Error(`unsupported plist element ${node.tag}`);
57466
+ }
57467
+ };
57468
+ return visit3(root.children[0]);
57469
+ }
57470
+ function parsePlist(source) {
57471
+ const root = parseXmlDocument(source);
57472
+ if (root.tag !== "plist") {
57473
+ throw new Error(`expected <plist> root element, got <${root.tag}>`);
57474
+ }
57475
+ if (root.children.length === 0) return {};
57476
+ const visit3 = (node) => {
57477
+ switch (node.tag) {
57478
+ case "dict": {
57479
+ const result = {};
57480
+ for (let i = 0; i + 1 < node.children.length; i += 2) {
57481
+ const keyNode = node.children[i];
57482
+ if (keyNode.tag !== "key") {
57483
+ throw new Error(`expected <key> in <dict>, got <${keyNode.tag}>`);
57484
+ }
57485
+ result[keyNode.text] = visit3(node.children[i + 1]);
57486
+ }
57487
+ return result;
57488
+ }
57489
+ case "array":
57490
+ return node.children.map(visit3);
57491
+ case "string":
57492
+ return node.text;
57493
+ case "integer": {
57494
+ const raw2 = node.text.trim();
57495
+ if (!raw2) throw new Error("empty <integer> element");
57496
+ return Number.parseInt(raw2, 10);
57497
+ }
57498
+ case "real": {
57499
+ const raw2 = node.text.trim();
57500
+ if (!raw2) throw new Error("empty <real> element");
57501
+ return Number.parseFloat(raw2);
57502
+ }
57503
+ case "true":
57504
+ return true;
57505
+ case "false":
57506
+ return false;
57507
+ case "data":
57508
+ return Buffer.from(node.text.replace(/\s+/g, ""), "base64");
57509
+ case "date":
57510
+ return new Date(node.text.trim());
57511
+ default:
57512
+ throw new Error(`unsupported plist element ${node.tag}`);
57513
+ }
57514
+ };
57515
+ return visit3(root.children[0]);
57516
+ }
57113
57517
  function parsePlistSource(source) {
57114
- return import_plist.default.parse(source);
57518
+ return parseXmlPlist(source);
57519
+ }
57520
+ function renderValue(value, indent2) {
57521
+ if (value === void 0 || value === null) return null;
57522
+ if (typeof value === "string") {
57523
+ return `${indent2}<string>${escapeXmlText(value)}</string>`;
57524
+ }
57525
+ if (typeof value === "boolean") {
57526
+ return `${indent2}${value ? "<true/>" : "<false/>"}`;
57527
+ }
57528
+ if (typeof value === "number") {
57529
+ if (Number.isInteger(value) && !Object.is(value, -0)) {
57530
+ return `${indent2}<integer>${value}</integer>`;
57531
+ }
57532
+ return `${indent2}<real>${value}</real>`;
57533
+ }
57534
+ if (value instanceof Date) {
57535
+ return `${indent2}<date>${value.toISOString().replace(/\.\d{3}Z$/, "Z")}</date>`;
57536
+ }
57537
+ if (Buffer.isBuffer(value) || value instanceof Uint8Array) {
57538
+ const encoded = Buffer.from(value).toString("base64");
57539
+ return encoded ? `${indent2}<data>${encoded}</data>` : `${indent2}<data/>`;
57540
+ }
57541
+ if (Array.isArray(value)) {
57542
+ const items2 = value.map((entry) => renderValue(entry, `${indent2} `)).filter((entry) => entry !== null);
57543
+ if (items2.length === 0) return `${indent2}<array/>`;
57544
+ return `${indent2}<array>
57545
+ ${items2.join("\n")}
57546
+ ${indent2}</array>`;
57547
+ }
57548
+ if (typeof value === "object") {
57549
+ const lines = [];
57550
+ for (const [key2, entry] of Object.entries(value)) {
57551
+ const rendered = renderValue(entry, `${indent2} `);
57552
+ if (rendered === null) continue;
57553
+ lines.push(`${indent2} <key>${escapeXmlText(key2)}</key>`);
57554
+ lines.push(rendered);
57555
+ }
57556
+ if (lines.length === 0) return `${indent2}<dict/>`;
57557
+ return `${indent2}<dict>
57558
+ ${lines.join("\n")}
57559
+ ${indent2}</dict>`;
57560
+ }
57561
+ throw new Error(`unsupported plist value type: ${typeof value}`);
57562
+ }
57563
+ function buildPlist(value) {
57564
+ const body = renderValue(value, " ");
57565
+ return [
57566
+ '<?xml version="1.0" encoding="UTF-8"?>',
57567
+ '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">',
57568
+ '<plist version="1.0">',
57569
+ ...body ? [body] : [],
57570
+ "</plist>",
57571
+ ""
57572
+ ].join("\n");
57115
57573
  }
57116
- var import_plist;
57574
+ var NAMED_ENTITIES;
57117
57575
  var init_plist = __esm({
57118
57576
  "src/plist.ts"() {
57119
57577
  "use strict";
57120
- import_plist = __toESM(require("peachsim/vendor/plist"), 1);
57578
+ NAMED_ENTITIES = {
57579
+ amp: "&",
57580
+ lt: "<",
57581
+ gt: ">",
57582
+ quot: '"',
57583
+ apos: "'"
57584
+ };
57121
57585
  }
57122
57586
  });
57123
57587
 
57124
57588
  // src/plist-bytes.ts
57589
+ function defaultInteger(value) {
57590
+ return value >= BigInt(Number.MIN_SAFE_INTEGER) && value <= BigInt(Number.MAX_SAFE_INTEGER) ? Number(value) : value;
57591
+ }
57592
+ function parseBinaryPlist(source, options2 = {}) {
57593
+ const bytes = Buffer.isBuffer(source) ? source : Buffer.from(source);
57594
+ (0, import_strict.default)(bytes.length >= 40, "binary plist is too short");
57595
+ (0, import_strict.default)(bytes.toString("ascii", 0, 8) === "bplist00", "invalid binary plist header");
57596
+ const trailer = bytes.length - 32;
57597
+ const offsetWidth = bytes[trailer + 6];
57598
+ const refWidth = bytes[trailer + 7];
57599
+ (0, import_strict.default)(offsetWidth > 0 && offsetWidth <= 8 && refWidth > 0 && refWidth <= 8);
57600
+ const count = Number(bytes.readBigUInt64BE(trailer + 8));
57601
+ const root = Number(bytes.readBigUInt64BE(trailer + 16));
57602
+ const table = Number(bytes.readBigUInt64BE(trailer + 24));
57603
+ (0, import_strict.default)(
57604
+ table >= 8 && table < trailer && count > 0 && count <= (trailer - table) / offsetWidth
57605
+ );
57606
+ const unsigned = (at, width) => {
57607
+ (0, import_strict.default)(at >= 8 && at + width <= trailer);
57608
+ let result = 0n;
57609
+ for (let i = at; i < at + width; i++) result = result * 256n + BigInt(bytes[i]);
57610
+ return result;
57611
+ };
57612
+ const cache = /* @__PURE__ */ new Map();
57613
+ const visiting = /* @__PURE__ */ new Set();
57614
+ const visit3 = (ref) => {
57615
+ (0, import_strict.default)(ref >= 0 && ref < count && !visiting.has(ref));
57616
+ if (cache.has(ref)) return cache.get(ref);
57617
+ visiting.add(ref);
57618
+ const at = Number(unsigned(table + ref * offsetWidth, offsetWidth));
57619
+ (0, import_strict.default)(at >= 8 && at < table);
57620
+ const marker = bytes[at];
57621
+ const type = marker >> 4;
57622
+ let length = marker & 15;
57623
+ let data = at + 1;
57624
+ if (length === 15 && [4, 5, 6, 7, 10, 12, 13].includes(type)) {
57625
+ (0, import_strict.default)(data < table && bytes[data] >> 4 === 1);
57626
+ const width = 2 ** (bytes[data] & 15);
57627
+ (0, import_strict.default)(width <= 8 && data + 1 + width <= table);
57628
+ length = Number(unsigned(data + 1, width));
57629
+ data += 1 + width;
57630
+ }
57631
+ const end = (size2) => {
57632
+ (0, import_strict.default)(Number.isSafeInteger(size2) && data + size2 <= table);
57633
+ return data + size2;
57634
+ };
57635
+ const references = (total) => {
57636
+ end(total * refWidth);
57637
+ return Array.from(
57638
+ { length: total },
57639
+ (_, i) => visit3(Number(unsigned(data + i * refWidth, refWidth)))
57640
+ );
57641
+ };
57642
+ let value;
57643
+ switch (type) {
57644
+ case 0:
57645
+ if (!options2.strict && marker === 0) {
57646
+ value = null;
57647
+ break;
57648
+ }
57649
+ (0, import_strict.default)(marker === 8 || marker === 9);
57650
+ value = marker === 9;
57651
+ break;
57652
+ case 1: {
57653
+ const size2 = 2 ** length;
57654
+ (0, import_strict.default)(size2 <= 16);
57655
+ end(size2);
57656
+ const raw2 = unsigned(data, size2);
57657
+ const signed = size2 >= 8 ? BigInt.asIntN(size2 * 8, raw2) : raw2;
57658
+ value = options2.onInteger ? options2.onInteger(signed) : defaultInteger(signed);
57659
+ break;
57660
+ }
57661
+ case 2: {
57662
+ (0, import_strict.default)(length === 2 || length === 3);
57663
+ end(2 ** length);
57664
+ const real = length === 2 ? bytes.readFloatBE(data) : bytes.readDoubleBE(data);
57665
+ value = options2.onReal ? options2.onReal(real) : real;
57666
+ break;
57667
+ }
57668
+ case 3:
57669
+ (0, import_strict.default)(length === 3);
57670
+ end(8);
57671
+ value = new Date(Date.UTC(2001, 0, 1) + bytes.readDoubleBE(data) * 1e3);
57672
+ break;
57673
+ case 4:
57674
+ value = bytes.subarray(data, end(length));
57675
+ break;
57676
+ case 5:
57677
+ value = bytes.toString("ascii", data, end(length));
57678
+ break;
57679
+ case 6:
57680
+ value = Buffer.from(bytes.subarray(data, end(length * 2))).swap16().toString("utf16le");
57681
+ break;
57682
+ case 7:
57683
+ value = bytes.toString("utf8", data, end(length));
57684
+ break;
57685
+ case 8: {
57686
+ if (options2.strict) throw new Error(`unsupported binary plist type ${type}`);
57687
+ const size2 = length + 1;
57688
+ (0, import_strict.default)(size2 >= 1 && size2 <= 8);
57689
+ end(size2);
57690
+ value = { UID: Number(unsigned(data, size2)) };
57691
+ break;
57692
+ }
57693
+ case 10:
57694
+ case 12:
57695
+ value = references(length);
57696
+ break;
57697
+ case 13: {
57698
+ const elements = references(length * 2);
57699
+ const keys = elements.slice(0, length);
57700
+ (0, import_strict.default)(keys.every((key2) => typeof key2 === "string"));
57701
+ value = Object.fromEntries(keys.map((key2, i) => [key2, elements[length + i]]));
57702
+ break;
57703
+ }
57704
+ default:
57705
+ throw new Error(`unsupported binary plist type ${type}`);
57706
+ }
57707
+ visiting.delete(ref);
57708
+ cache.set(ref, value);
57709
+ return value;
57710
+ };
57711
+ return visit3(root);
57712
+ }
57125
57713
  function parsePlistBytes(source, parseXml2 = parsePlistSource) {
57126
57714
  const bytes = Buffer.from(source);
57127
- return bytes.subarray(0, 8).toString("ascii") === "bplist00" ? import_bplist_parser.default.parseBuffer(bytes)[0] : parseXml2(bytes.toString("utf8"));
57715
+ return bytes.subarray(0, 8).toString("ascii") === "bplist00" ? parseBinaryPlist(bytes) : parseXml2(bytes.toString("utf8"));
57128
57716
  }
57129
57717
  function buildBinaryPlist(top) {
57130
57718
  const nodes = [];
@@ -57210,11 +57798,11 @@ function buildBinaryPlist(top) {
57210
57798
  trailer
57211
57799
  ]);
57212
57800
  }
57213
- var import_bplist_parser, isList, isUid;
57801
+ var import_strict, isList, isUid;
57214
57802
  var init_plist_bytes = __esm({
57215
57803
  "src/plist-bytes.ts"() {
57216
57804
  "use strict";
57217
- import_bplist_parser = __toESM(require("peachsim/vendor/bplist-parser"), 1);
57805
+ import_strict = __toESM(require("node:assert/strict"), 1);
57218
57806
  init_plist();
57219
57807
  isList = (value) => Array.isArray(value);
57220
57808
  isUid = (value) => typeof value === "object" && !isList(value) && !Buffer.isBuffer(value) && Object.keys(value).length === 1 && typeof value["CF$UID"] === "number";
@@ -57409,10 +57997,10 @@ var init_pods_files = __esm({
57409
57997
  constructor(targetName, path139) {
57410
57998
  this.targetName = targetName;
57411
57999
  this.path = path139;
57412
- const plist6 = parsePlistBytes(import_node_fs63.default.readFileSync(`${path139}/Info.plist`));
57413
- if (!isRecord(plist6) || !Array.isArray(plist6.AvailableLibraries))
58000
+ const plist2 = parsePlistBytes(import_node_fs63.default.readFileSync(`${path139}/Info.plist`));
58001
+ if (!isRecord(plist2) || !Array.isArray(plist2.AvailableLibraries))
57414
58002
  throw new Error(`${path139}/Info.plist declares no AvailableLibraries`);
57415
- this.slices = plist6.AvailableLibraries.map((library) => {
58003
+ this.slices = plist2.AvailableLibraries.map((library) => {
57416
58004
  if (!isRecord(library) || typeof library.LibraryIdentifier !== "string" || typeof library.LibraryPath !== "string" || typeof library.SupportedPlatform !== "string")
57417
58005
  throw new Error(`${path139}/Info.plist has an invalid library entry`);
57418
58006
  const root = `${path139}/${library.LibraryIdentifier}`;
@@ -65570,7 +66158,7 @@ ${published3.map(
65570
66158
  const contents2 = new Map([
65571
66159
  [
65572
66160
  "Info.plist",
65573
- import_plist3.default.build({
66161
+ buildPlist({
65574
66162
  AvailableLibraries: [
65575
66163
  {
65576
66164
  LibraryIdentifier: "ios-arm64-simulator",
@@ -65655,7 +66243,7 @@ ${published3.map(
65655
66243
  const infoPlistReady = infoPlistFiles.every((file) => import_node_fs71.default.existsSync(file));
65656
66244
  const info = {};
65657
66245
  for (const file of infoPlistReady ? infoPlistFiles : []) {
65658
- const fragment = import_plist3.default.parse(import_node_fs71.default.readFileSync(file, "utf8"));
66246
+ const fragment = parsePlist(import_node_fs71.default.readFileSync(file, "utf8"));
65659
66247
  if (!fragment || typeof fragment !== "object" || Array.isArray(fragment) || fragment instanceof Date || Buffer.isBuffer(fragment))
65660
66248
  throw new Error(`${file} is not a plist dictionary`);
65661
66249
  for (const [key2, value] of Object.entries(fragment)) {
@@ -65724,7 +66312,7 @@ ${published3.map(
65724
66312
  rootDir: root,
65725
66313
  projectFiles: buildFiles.sort(),
65726
66314
  projectDirs: [root],
65727
- infoPlist: infoPlistReady ? import_plist3.default.build(info) : null,
66315
+ infoPlist: infoPlistReady ? buildPlist(info) : null,
65728
66316
  infoPlistFile: null,
65729
66317
  postBundleScripts: [],
65730
66318
  appIconName: "",
@@ -65776,7 +66364,7 @@ function shellTokens(options2) {
65776
66364
  return words2;
65777
66365
  });
65778
66366
  }
65779
- var import_node_child_process38, import_node_crypto40, import_node_fs71, import_node_os16, import_node_path71, import_plist3, LIBRARY_RULES, QUERIED_RULES, NATIVE_SOURCE, HEADER3, PRODUCTS, graphs, CLANG_CONFIGURATION_FLAGS, GRAPH_FORMAT, BazelFiles, CXX_STANDARD;
66367
+ var import_node_child_process38, import_node_crypto40, import_node_fs71, import_node_os16, import_node_path71, LIBRARY_RULES, QUERIED_RULES, NATIVE_SOURCE, HEADER3, PRODUCTS, graphs, CLANG_CONFIGURATION_FLAGS, GRAPH_FORMAT, BazelFiles, CXX_STANDARD;
65780
66368
  var init_bazel_project = __esm({
65781
66369
  "src/bazel-project.ts"() {
65782
66370
  "use strict";
@@ -65785,8 +66373,8 @@ var init_bazel_project = __esm({
65785
66373
  import_node_fs71 = __toESM(require("node:fs"), 1);
65786
66374
  import_node_os16 = __toESM(require("node:os"), 1);
65787
66375
  import_node_path71 = __toESM(require("node:path"), 1);
65788
- import_plist3 = __toESM(require("peachsim/vendor/plist"), 1);
65789
66376
  init_is_record();
66377
+ init_plist();
65790
66378
  LIBRARY_RULES = /* @__PURE__ */ new Set(["swift_library", "objc_library", "cc_library"]);
65791
66379
  QUERIED_RULES = [
65792
66380
  "swift_library",
@@ -66275,7 +66863,7 @@ var init_provenance = __esm({
66275
66863
  import_node_crypto42 = require("node:crypto");
66276
66864
  import_node_fs73 = require("node:fs");
66277
66865
  import_node_path73 = require("node:path");
66278
- swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"d6a3228567a46c6d5280895383093889d9b868958a117881061bdd74729a225f","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"facdbeb9de6bb12da4ab4954553edfaadd0e486f1181443138be70c3d8396236","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"c64b677c93e48d61c71b371d887e9db8506c32ef968ed50d9468de1f67fe5d8d","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"4f54e110f6f2f72da6d20ca6fc1a10c7dbd0cd462b7dd3959351e107c4aa7548","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"81f36daeda9ac5c81a5631fdcab42fb12d09a74705915b8861f404d0db2e01c5","xcode-target-members.ts":"96f6a9f5567a4fbd9806252229b35b9a451a112b20f70f8c20189ffd428815fd","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path73.join)(__sootsim_import_meta_dirname, ".."));
66866
+ swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"d6a3228567a46c6d5280895383093889d9b868958a117881061bdd74729a225f","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"facdbeb9de6bb12da4ab4954553edfaadd0e486f1181443138be70c3d8396236","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"c64b677c93e48d61c71b371d887e9db8506c32ef968ed50d9468de1f67fe5d8d","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"4f54e110f6f2f72da6d20ca6fc1a10c7dbd0cd462b7dd3959351e107c4aa7548","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"fe50b74f53082e75bb32393ada42bbbcb0ff982024a026b4b673f2004dd404d8","xcode-target-members.ts":"96f6a9f5567a4fbd9806252229b35b9a451a112b20f70f8c20189ffd428815fd","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path73.join)(__sootsim_import_meta_dirname, ".."));
66279
66867
  }
66280
66868
  });
66281
66869
 
@@ -68228,13 +68816,13 @@ function intentModelVersion(value) {
68228
68816
  return value === "1.0" || value === "1.1" ? value : "1.2";
68229
68817
  }
68230
68818
  function modelList(value, key2) {
68231
- (0, import_strict.default)(value && typeof value === "object");
68819
+ (0, import_strict2.default)(value && typeof value === "object");
68232
68820
  const entries2 = Reflect.get(value, key2) ?? [];
68233
- (0, import_strict.default)(Array.isArray(entries2));
68821
+ (0, import_strict2.default)(Array.isArray(entries2));
68234
68822
  return entries2;
68235
68823
  }
68236
68824
  function identifier(value) {
68237
- (0, import_strict.default)(
68825
+ (0, import_strict2.default)(
68238
68826
  typeof value === "string" && /^[_\p{ID_Start}][_\p{ID_Continue}]*$/u.test(value),
68239
68827
  `invalid intent identifier ${String(value)}`
68240
68828
  );
@@ -68242,18 +68830,18 @@ function identifier(value) {
68242
68830
  }
68243
68831
  function intentClassIdentifier(value) {
68244
68832
  const name3 = identifier(value);
68245
- (0, import_strict.default)(/^[A-Za-z_0-9]+$/.test(name3), `invalid intent class name ${name3}`);
68833
+ (0, import_strict2.default)(/^[A-Za-z_0-9]+$/.test(name3), `invalid intent class name ${name3}`);
68246
68834
  return name3;
68247
68835
  }
68248
68836
  function readSwiftField(value, key2, customTypes) {
68249
- (0, import_strict.default)(value && typeof value === "object");
68837
+ (0, import_strict2.default)(value && typeof value === "object");
68250
68838
  const get = (property) => Reflect.get(value, key2 + property);
68251
68839
  const name3 = identifier(get("Name"));
68252
68840
  let kind = intentParameterKind(get("Type"));
68253
68841
  let enumeration = get("EnumType");
68254
68842
  let object8 = get("ObjectType");
68255
- (0, import_strict.default)(enumeration === void 0 || kind === "Integer");
68256
- (0, import_strict.default)(object8 === void 0 || kind === "Object");
68843
+ (0, import_strict2.default)(enumeration === void 0 || kind === "Integer");
68844
+ (0, import_strict2.default)(object8 === void 0 || kind === "Object");
68257
68845
  const custom = enumeration ?? object8;
68258
68846
  let customName;
68259
68847
  if (custom !== void 0) {
@@ -68268,7 +68856,7 @@ function readSwiftField(value, key2, customTypes) {
68268
68856
  }
68269
68857
  } else {
68270
68858
  customName = customTypes.get(name4);
68271
- (0, import_strict.default)(customName, "unknown intent parameter type: " + name4);
68859
+ (0, import_strict2.default)(customName, "unknown intent parameter type: " + name4);
68272
68860
  }
68273
68861
  }
68274
68862
  const type = types.get(kind);
@@ -68278,7 +68866,7 @@ function readSwiftField(value, key2, customTypes) {
68278
68866
  const valueType = multiple ? `[${array8}]` : base2;
68279
68867
  const resolves = get("SupportsResolution") === true;
68280
68868
  const explicitReasons = modelList(value, key2 + "UnsupportedReasons").map((entry) => {
68281
- (0, import_strict.default)(entry && typeof entry === "object");
68869
+ (0, import_strict2.default)(entry && typeof entry === "object");
68282
68870
  return identifier(Reflect.get(entry, key2 + "UnsupportedReasonCode"));
68283
68871
  });
68284
68872
  const defaults = resolves && !customName ? defaultUnsupportedReasons(kind) : [];
@@ -68369,18 +68957,18 @@ fatalError()
68369
68957
  }
68370
68958
  function customObjectFields(definition2, customTypes) {
68371
68959
  return modelList(definition2, "INTypeProperties").filter((entry) => {
68372
- (0, import_strict.default)(entry && typeof entry === "object");
68960
+ (0, import_strict2.default)(entry && typeof entry === "object");
68373
68961
  return Reflect.get(entry, "INTypePropertyDefault") !== true;
68374
68962
  }).map((entry) => {
68375
68963
  const field = readSwiftField(entry, "INTypeProperty", customTypes);
68376
68964
  return { ...field, availability: field.availability ?? swiftResolutionAvailable };
68377
68965
  });
68378
68966
  }
68379
- var import_strict, swiftAvailable, swiftResolutionAvailable, swiftOptionsAvailable, upper, iOS13, numericReasons, builtin2, types;
68967
+ var import_strict2, swiftAvailable, swiftResolutionAvailable, swiftOptionsAvailable, upper, iOS13, numericReasons, builtin2, types;
68380
68968
  var init_fields = __esm({
68381
68969
  "src/intent-definition/fields.ts"() {
68382
68970
  "use strict";
68383
- import_strict = __toESM(require("node:assert/strict"), 1);
68971
+ import_strict2 = __toESM(require("node:assert/strict"), 1);
68384
68972
  init_system_types();
68385
68973
  swiftAvailable = "@available(iOS 12.0, macOS 11.0, watchOS 5.0, *) @available(tvOS, unavailable)";
68386
68974
  swiftResolutionAvailable = "@available(iOS 13.0, macOS 11.0, watchOS 6.0, *)";
@@ -68555,7 +69143,7 @@ function intentHashInput(root, propertyTypes = []) {
68555
69143
  integer2(18, BigInt(value.length));
68556
69144
  for (const item of value) append(item);
68557
69145
  } else {
68558
- (0, import_strict2.default)(
69146
+ (0, import_strict3.default)(
68559
69147
  value && typeof value === "object" && Object.getPrototypeOf(value) === Object.prototype
68560
69148
  );
68561
69149
  const keys = Object.keys(value).sort();
@@ -68570,11 +69158,11 @@ function intentHashInput(root, propertyTypes = []) {
68570
69158
  for (const propertyType of propertyTypes) append(propertyType);
68571
69159
  return Buffer.concat(chunks);
68572
69160
  }
68573
- var import_strict2, IntentReal;
69161
+ var import_strict3, IntentReal;
68574
69162
  var init_hash_input = __esm({
68575
69163
  "src/intent-definition/hash-input.ts"() {
68576
69164
  "use strict";
68577
- import_strict2 = __toESM(require("node:assert/strict"), 1);
69165
+ import_strict3 = __toESM(require("node:assert/strict"), 1);
68578
69166
  IntentReal = class {
68579
69167
  constructor(value) {
68580
69168
  this.value = value;
@@ -68634,7 +69222,7 @@ function dictionary(value) {
68634
69222
  }
68635
69223
  function normalizedEnums(input) {
68636
69224
  return modelList(input, "INEnums").map((value) => {
68637
- (0, import_strict3.default)(dictionary(value));
69225
+ (0, import_strict4.default)(dictionary(value));
68638
69226
  return {
68639
69227
  ...value,
68640
69228
  INEnumName: intentClassIdentifier(value.INEnumName),
@@ -68652,7 +69240,7 @@ function localizationIdentifier(field, key2) {
68652
69240
  }
68653
69241
  function normalizedMetadata(type, source, field) {
68654
69242
  const defaults = typeMetadata.get(type) ?? {};
68655
- (0, import_strict3.default)(source === void 0 || dictionary(source));
69243
+ (0, import_strict4.default)(source === void 0 || dictionary(source));
68656
69244
  const metadata = source ? { ...source } : Object.fromEntries(
68657
69245
  Object.entries(defaults).map(([key2, value]) => {
68658
69246
  const qualified3 = `INIntentParameterMetadata${key2}`;
@@ -68676,7 +69264,7 @@ function normalizedMetadata(type, source, field) {
68676
69264
  function normalizedReasons(parameter, kind, field) {
68677
69265
  const reasons = /* @__PURE__ */ new Map();
68678
69266
  for (const reason of modelList(parameter, "INIntentParameterUnsupportedReasons")) {
68679
- (0, import_strict3.default)(dictionary(reason));
69267
+ (0, import_strict4.default)(dictionary(reason));
68680
69268
  const code = identifier(reason.INIntentParameterUnsupportedReasonCode);
68681
69269
  const text7 = reason.INIntentParameterUnsupportedReasonFormatString;
68682
69270
  reasons.set(
@@ -68713,17 +69301,17 @@ function compileIntentMetadata(input, enums, prefix) {
68713
69301
  }
68714
69302
  const objectHashes = /* @__PURE__ */ new Map();
68715
69303
  for (const declaration of modelList(input, "INTypes")) {
68716
- (0, import_strict3.default)(dictionary(declaration) && typeof declaration.INTypeName === "string");
69304
+ (0, import_strict4.default)(dictionary(declaration) && typeof declaration.INTypeName === "string");
68717
69305
  objectHashes.set(declaration.INTypeName, intentSipHash(intentHashInput(declaration)));
68718
69306
  }
68719
69307
  const intents = modelList(input, "INIntents").map((value) => {
68720
- (0, import_strict3.default)(dictionary(value));
69308
+ (0, import_strict4.default)(dictionary(value));
68721
69309
  const name3 = intentClassIdentifier(value.INIntentName);
68722
69310
  const system = value.INIntentType === "System";
68723
69311
  const propertyTypes = [];
68724
69312
  const parameters = modelList(value, "INIntentParameters").map(
68725
69313
  (parameter, position) => {
68726
- (0, import_strict3.default)(dictionary(parameter));
69314
+ (0, import_strict4.default)(dictionary(parameter));
68727
69315
  const enumName = parameter.INIntentParameterEnumType;
68728
69316
  const objectName = parameter.INIntentParameterObjectType;
68729
69317
  const reference = enumName ?? objectName;
@@ -68750,7 +69338,7 @@ function compileIntentMetadata(input, enums, prefix) {
68750
69338
  }
68751
69339
  } else {
68752
69340
  const localHash = hashes.get(typeName);
68753
- (0, import_strict3.default)(localHash !== void 0, `unknown intent parameter type: ${typeName}`);
69341
+ (0, import_strict4.default)(localHash !== void 0, `unknown intent parameter type: ${typeName}`);
68754
69342
  hash2 = localHash;
68755
69343
  }
68756
69344
  }
@@ -68776,7 +69364,7 @@ function compileIntentMetadata(input, enums, prefix) {
68776
69364
  if (parameter.INIntentParameterSupportsMultipleValues && parameter.INIntentParameterFixedSizeArray) {
68777
69365
  const sizes = /* @__PURE__ */ new Map();
68778
69366
  for (const size2 of modelList(parameter, "INIntentParameterArraySizes")) {
68779
- (0, import_strict3.default)(
69367
+ (0, import_strict4.default)(
68780
69368
  dictionary(size2) && typeof size2.INIntentParameterArraySizeSizeClass === "string"
68781
69369
  );
68782
69370
  sizes.set(size2.INIntentParameterArraySizeSizeClass, size2);
@@ -68900,7 +69488,7 @@ function formatPlistReal(value) {
68900
69488
  return `${sign}${digits.slice(0, point)}.${digits.slice(point)}`;
68901
69489
  }
68902
69490
  function writeIntentDefinition(input, prefix) {
68903
- (0, import_strict3.default)(dictionary(input));
69491
+ (0, import_strict4.default)(dictionary(input));
68904
69492
  const escape2 = (text7) => text7.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
68905
69493
  const lines = [
68906
69494
  '<?xml version="1.0" encoding="UTF-8"?>',
@@ -68937,7 +69525,7 @@ function writeIntentDefinition(input, prefix) {
68937
69525
  lines.push(`${indent2}</array>`);
68938
69526
  }
68939
69527
  } else {
68940
- (0, import_strict3.default)(dictionary(value));
69528
+ (0, import_strict4.default)(dictionary(value));
68941
69529
  const keys = Object.keys(value).sort();
68942
69530
  if (keys.length === 0) lines.push(`${indent2}<dict/>`);
68943
69531
  else {
@@ -68969,11 +69557,11 @@ function writeIntentDefinition(input, prefix) {
68969
69557
  lines.push("</plist>", "");
68970
69558
  return lines.join("\n");
68971
69559
  }
68972
- var import_strict3, import_node_crypto45, typeMetadata, initializeMetadata, widgetArraySizes, defaultReasonMessages;
69560
+ var import_strict4, import_node_crypto45, typeMetadata, initializeMetadata, widgetArraySizes, defaultReasonMessages;
68973
69561
  var init_metadata = __esm({
68974
69562
  "src/intent-definition/metadata.ts"() {
68975
69563
  "use strict";
68976
- import_strict3 = __toESM(require("node:assert/strict"), 1);
69564
+ import_strict4 = __toESM(require("node:assert/strict"), 1);
68977
69565
  import_node_crypto45 = require("node:crypto");
68978
69566
  init_fields();
68979
69567
  init_hash_input();
@@ -69044,175 +69632,34 @@ function safeNumber(value) {
69044
69632
  function xmlPlist2(bytes) {
69045
69633
  const encoding = bytes[0] === 255 && bytes[1] === 254 ? "utf-16le" : bytes[0] === 254 && bytes[1] === 255 ? "utf-16be" : "utf-8";
69046
69634
  const text7 = new TextDecoder(encoding, { fatal: true }).decode(bytes);
69047
- const document = new import_xmldom.DOMParser({
69048
- onError(_level, message) {
69049
- throw new Error(message);
69050
- }
69051
- }).parseFromString(text7, "application/xml");
69052
- const children = (element) => Array.from(element.children);
69053
- const contents2 = (element) => {
69054
- (0, import_strict4.default)(element.children.length === 0);
69055
- return element.textContent ?? "";
69056
- };
69057
- const visit3 = (element) => {
69058
- switch (element.tagName) {
69059
- case "dict": {
69060
- const entries2 = children(element);
69061
- (0, import_strict4.default)(entries2.length % 2 === 0);
69062
- const pairs2 = [];
69063
- for (let i = 0; i < entries2.length; i += 2) {
69064
- const key2 = entries2[i];
69065
- (0, import_strict4.default)(key2.tagName === "key");
69066
- pairs2.push([contents2(key2), visit3(entries2[i + 1])]);
69067
- }
69068
- return Object.fromEntries(pairs2);
69069
- }
69070
- case "array":
69071
- return children(element).map(visit3);
69072
- case "string":
69073
- return contents2(element);
69074
- case "integer": {
69075
- const value = contents2(element).trim();
69076
- (0, import_strict4.default)(value.length > 0);
69077
- return safeNumber(BigInt(value));
69078
- }
69079
- case "real": {
69080
- const value = contents2(element).trim();
69081
- (0, import_strict4.default)(value.length > 0);
69082
- return new IntentReal(
69083
- /^[+-]?inf(?:inity)?$/i.test(value) ? value.startsWith("-") ? -Infinity : Infinity : Number(value)
69084
- );
69085
- }
69086
- case "true":
69087
- return true;
69088
- case "false":
69089
- return false;
69090
- case "data":
69091
- return Buffer.from(contents2(element), "base64");
69092
- case "date":
69093
- return new Date(contents2(element));
69094
- default:
69095
- throw new Error(`unsupported plist element ${element.tagName}`);
69096
- }
69097
- };
69098
- const plist6 = document.documentElement;
69099
- (0, import_strict4.default)(plist6?.tagName === "plist" && plist6.children.length === 1);
69100
- return visit3(plist6.children[0]);
69101
- }
69102
- function binaryPlist2(bytes) {
69103
- (0, import_strict4.default)(bytes.length >= 40);
69104
- const trailer = bytes.length - 32;
69105
- const offsetWidth = bytes[trailer + 6];
69106
- const refWidth = bytes[trailer + 7];
69107
- (0, import_strict4.default)(offsetWidth > 0 && offsetWidth <= 8 && refWidth > 0 && refWidth <= 8);
69108
- const count = Number(bytes.readBigUInt64BE(trailer + 8));
69109
- const root = Number(bytes.readBigUInt64BE(trailer + 16));
69110
- const table = Number(bytes.readBigUInt64BE(trailer + 24));
69111
- (0, import_strict4.default)(
69112
- table >= 8 && table < trailer && count > 0 && count <= (trailer - table) / offsetWidth
69113
- );
69114
- const unsigned = (at, width) => {
69115
- (0, import_strict4.default)(at >= 8 && at + width <= trailer);
69116
- let result = 0n;
69117
- for (let i = at; i < at + width; i++) result = result * 256n + BigInt(bytes[i]);
69118
- return result;
69119
- };
69120
- const cache = /* @__PURE__ */ new Map();
69121
- const visiting = /* @__PURE__ */ new Set();
69122
- const visit3 = (ref) => {
69123
- (0, import_strict4.default)(ref >= 0 && ref < count && !visiting.has(ref));
69124
- if (cache.has(ref)) return cache.get(ref);
69125
- visiting.add(ref);
69126
- const at = Number(unsigned(table + ref * offsetWidth, offsetWidth));
69127
- (0, import_strict4.default)(at >= 8 && at < table);
69128
- const marker = bytes[at];
69129
- const type = marker >> 4;
69130
- let length = marker & 15;
69131
- let data = at + 1;
69132
- if (length === 15 && [4, 5, 6, 7, 10, 13].includes(type)) {
69133
- (0, import_strict4.default)(data < table && bytes[data] >> 4 === 1);
69134
- const width = 2 ** (bytes[data] & 15);
69135
- (0, import_strict4.default)(width <= 8 && data + 1 + width <= table);
69136
- length = Number(unsigned(data + 1, width));
69137
- data += 1 + width;
69138
- }
69139
- const end = (size2) => {
69140
- (0, import_strict4.default)(Number.isSafeInteger(size2) && data + size2 <= table);
69141
- return data + size2;
69142
- };
69143
- const references = (total) => {
69144
- end(total * refWidth);
69145
- return Array.from(
69146
- { length: total },
69147
- (_, i) => visit3(Number(unsigned(data + i * refWidth, refWidth)))
69635
+ return parseXmlPlist(text7, {
69636
+ strict: true,
69637
+ onInteger(raw2) {
69638
+ (0, import_strict5.default)(raw2.length > 0);
69639
+ return safeNumber(BigInt(raw2));
69640
+ },
69641
+ onReal(raw2) {
69642
+ (0, import_strict5.default)(raw2.length > 0);
69643
+ return new IntentReal(
69644
+ /^[+-]?inf(?:inity)?$/i.test(raw2) ? raw2.startsWith("-") ? -Infinity : Infinity : Number(raw2)
69148
69645
  );
69149
- };
69150
- let value;
69151
- switch (type) {
69152
- case 0:
69153
- (0, import_strict4.default)(marker === 8 || marker === 9);
69154
- value = marker === 9;
69155
- break;
69156
- case 1: {
69157
- const size2 = 2 ** length;
69158
- (0, import_strict4.default)(size2 <= 16);
69159
- end(size2);
69160
- const integer2 = unsigned(data, size2);
69161
- value = safeNumber(size2 >= 8 ? BigInt.asIntN(size2 * 8, integer2) : integer2);
69162
- break;
69163
- }
69164
- case 2:
69165
- (0, import_strict4.default)(length === 2 || length === 3);
69166
- end(2 ** length);
69167
- value = new IntentReal(
69168
- length === 2 ? bytes.readFloatBE(data) : bytes.readDoubleBE(data)
69169
- );
69170
- break;
69171
- case 3:
69172
- (0, import_strict4.default)(length === 3);
69173
- end(8);
69174
- value = new Date(Date.UTC(2001, 0, 1) + bytes.readDoubleBE(data) * 1e3);
69175
- break;
69176
- case 4:
69177
- value = bytes.subarray(data, end(length));
69178
- break;
69179
- case 5:
69180
- value = bytes.toString("ascii", data, end(length));
69181
- break;
69182
- case 6:
69183
- value = Buffer.from(bytes.subarray(data, end(length * 2))).swap16().toString("utf16le");
69184
- break;
69185
- case 7:
69186
- value = bytes.toString("utf8", data, end(length));
69187
- break;
69188
- case 10:
69189
- value = references(length);
69190
- break;
69191
- case 13: {
69192
- const elements = references(length * 2);
69193
- const keys = elements.slice(0, length);
69194
- (0, import_strict4.default)(keys.every((key2) => typeof key2 === "string"));
69195
- value = Object.fromEntries(keys.map((key2, i) => [key2, elements[length + i]]));
69196
- break;
69197
- }
69198
- default:
69199
- throw new Error(`unsupported binary plist type ${type}`);
69200
69646
  }
69201
- visiting.delete(ref);
69202
- cache.set(ref, value);
69203
- return value;
69204
- };
69205
- return visit3(root);
69647
+ });
69206
69648
  }
69207
69649
  function parseIntentPlist(bytes) {
69208
- return bytes.toString("ascii", 0, 8) === "bplist00" ? binaryPlist2(bytes) : xmlPlist2(bytes);
69650
+ return bytes.toString("ascii", 0, 8) === "bplist00" ? parseBinaryPlist(bytes, {
69651
+ strict: true,
69652
+ onInteger: safeNumber,
69653
+ onReal: (value) => new IntentReal(value)
69654
+ }) : xmlPlist2(bytes);
69209
69655
  }
69210
- var import_strict4, import_xmldom;
69656
+ var import_strict5;
69211
69657
  var init_plist_reader = __esm({
69212
69658
  "src/intent-definition/plist-reader.ts"() {
69213
69659
  "use strict";
69214
- import_strict4 = __toESM(require("node:assert/strict"), 1);
69215
- import_xmldom = require("peachsim/vendor/@xmldom/xmldom");
69660
+ import_strict5 = __toESM(require("node:assert/strict"), 1);
69661
+ init_plist();
69662
+ init_plist_bytes();
69216
69663
  init_hash_input();
69217
69664
  }
69218
69665
  });
@@ -69224,10 +69671,10 @@ function readIntentResponse(definition2, customTypes) {
69224
69671
  );
69225
69672
  const definitions = new Map(
69226
69673
  modelList(definition2, "INIntentResponseCodes").map((entry) => {
69227
- (0, import_strict5.default)(entry && typeof entry === "object");
69674
+ (0, import_strict6.default)(entry && typeof entry === "object");
69228
69675
  const name3 = identifier(Reflect.get(entry, "INIntentResponseCodeName"));
69229
69676
  const message = Reflect.get(entry, "INIntentResponseCodeFormatString");
69230
- (0, import_strict5.default)(message === void 0 || typeof message === "string");
69677
+ (0, import_strict6.default)(message === void 0 || typeof message === "string");
69231
69678
  const referenced = new Set(
69232
69679
  [
69233
69680
  ...String(message ?? "").matchAll(
@@ -69238,7 +69685,7 @@ function readIntentResponse(definition2, customTypes) {
69238
69685
  const names = [...referenced].sort();
69239
69686
  const parameters = names.map((name4) => {
69240
69687
  const field = fields.find((field2) => field2.name === name4);
69241
- (0, import_strict5.default)(field, "unknown intent response field " + name4);
69688
+ (0, import_strict6.default)(field, "unknown intent response field " + name4);
69242
69689
  return field;
69243
69690
  });
69244
69691
  return [
@@ -69290,11 +69737,11 @@ ${access} static func ${code}(${parameters.map((field) => `${field.name}: ${fiel
69290
69737
  }).join("\n")}
69291
69738
  }`;
69292
69739
  }
69293
- var import_strict5, responseCodes;
69740
+ var import_strict6, responseCodes;
69294
69741
  var init_response = __esm({
69295
69742
  "src/intent-definition/response.ts"() {
69296
69743
  "use strict";
69297
- import_strict5 = __toESM(require("node:assert/strict"), 1);
69744
+ import_strict6 = __toESM(require("node:assert/strict"), 1);
69298
69745
  init_fields();
69299
69746
  responseCodes = [
69300
69747
  "unspecified",
@@ -69312,7 +69759,7 @@ var init_response = __esm({
69312
69759
  function objcAvailability(swift) {
69313
69760
  if (!swift) return "";
69314
69761
  const version2 = /^@available\(iOS ([\d.]+), macOS ([\d.]+), watchOS ([\d.]+), \*\)$/.exec(swift);
69315
- (0, import_strict6.default)(version2);
69762
+ (0, import_strict7.default)(version2);
69316
69763
  return ` API_AVAILABLE(ios(${version2[1]}), macos(${version2[2]}), watchos(${version2[3]}))`;
69317
69764
  }
69318
69765
  function objcElement(field) {
@@ -69341,7 +69788,7 @@ function headerImports(fields, visibility, module2) {
69341
69788
  return [...imports2].join("\n");
69342
69789
  }
69343
69790
  function objcIntentSource(name3, prefix, definition2, customTypes, version2, visibility, module2) {
69344
- (0, import_strict6.default)(definition2 && typeof definition2 === "object");
69791
+ (0, import_strict7.default)(definition2 && typeof definition2 === "object");
69345
69792
  const klass = prefix + name3 + "Intent";
69346
69793
  const response = klass + "Response";
69347
69794
  const attr = hidden(visibility);
@@ -69380,7 +69827,7 @@ function objcIntentSource(name3, prefix, definition2, customTypes, version2, vis
69380
69827
  };
69381
69828
  const constructors = [...definitions].filter(([, definition3]) => definition3.parameters.length > 0).map(([code, { parameters: parameters2, availability }]) => {
69382
69829
  const [first, ...rest] = parameters2;
69383
- (0, import_strict6.default)(first);
69830
+ (0, import_strict7.default)(first);
69384
69831
  const selector = `${code}IntentResponseWith${upper(first.name)}:(${objcType(first)})${first.name}` + rest.map((field) => ` ${field.name}:(${objcType(field)})${field.name}`).join("");
69385
69832
  return {
69386
69833
  code,
@@ -69478,15 +69925,15 @@ ${reasons.map(
69478
69925
  return { header, implementation };
69479
69926
  }
69480
69927
  function objcEnumSource(definition2, label, prefix, visibility) {
69481
- (0, import_strict6.default)(definition2 && typeof definition2 === "object");
69928
+ (0, import_strict7.default)(definition2 && typeof definition2 === "object");
69482
69929
  const name3 = prefix + label;
69483
69930
  const attr = hidden(visibility);
69484
69931
  const bases = [attr, available].filter(Boolean).join(" ");
69485
69932
  const cases = modelList(definition2, "INEnumValues").map((entry) => {
69486
- (0, import_strict6.default)(entry && typeof entry === "object");
69933
+ (0, import_strict7.default)(entry && typeof entry === "object");
69487
69934
  const value = identifier(Reflect.get(entry, "INEnumValueName"));
69488
69935
  const index = Reflect.get(entry, "INEnumValueIndex") ?? 0;
69489
- (0, import_strict6.default)(typeof index === "number" && Number.isSafeInteger(index));
69936
+ (0, import_strict7.default)(typeof index === "number" && Number.isSafeInteger(index));
69490
69937
  return ` ${name3}${upper(value)} = ${index}`;
69491
69938
  });
69492
69939
  const success = `+ (instancetype)successWithResolved${label}:(${name3})resolvedValue`;
@@ -69570,11 +70017,11 @@ ${confirm} {
69570
70017
  `
69571
70018
  };
69572
70019
  }
69573
- var import_strict6, available, resolution, options, hiddenAttribute, hidden, headerStart, headerEnd, pointer, array6;
70020
+ var import_strict7, available, resolution, options, hiddenAttribute, hidden, headerStart, headerEnd, pointer, array6;
69574
70021
  var init_objective_c = __esm({
69575
70022
  "src/intent-definition/objective-c.ts"() {
69576
70023
  "use strict";
69577
- import_strict6 = __toESM(require("node:assert/strict"), 1);
70024
+ import_strict7 = __toESM(require("node:assert/strict"), 1);
69578
70025
  init_fields();
69579
70026
  init_response();
69580
70027
  available = "API_AVAILABLE(ios(12.0), macos(11.0), watchos(5.0)) API_UNAVAILABLE(tvos)";
@@ -69591,7 +70038,7 @@ var init_objective_c = __esm({
69591
70038
 
69592
70039
  // src/intent-definition/swift.ts
69593
70040
  function swiftIntentSource(name3, prefix, definition2, customTypes, version2, access) {
69594
- (0, import_strict7.default)(definition2 && typeof definition2 === "object");
70041
+ (0, import_strict8.default)(definition2 && typeof definition2 === "object");
69595
70042
  const klass = `${prefix}${name3}Intent`;
69596
70043
  const response = `${klass}Response`;
69597
70044
  const parameters = modelList(definition2, "INIntentParameters").map(
@@ -69692,11 +70139,11 @@ ${access} class func unsupported(forReason reason: ${base2}UnsupportedReason) ->
69692
70139
  #endif
69693
70140
  `;
69694
70141
  }
69695
- var import_strict7;
70142
+ var import_strict8;
69696
70143
  var init_swift = __esm({
69697
70144
  "src/intent-definition/swift.ts"() {
69698
70145
  "use strict";
69699
- import_strict7 = __toESM(require("node:assert/strict"), 1);
70146
+ import_strict8 = __toESM(require("node:assert/strict"), 1);
69700
70147
  init_fields();
69701
70148
  init_response();
69702
70149
  }
@@ -69704,17 +70151,17 @@ var init_swift = __esm({
69704
70151
 
69705
70152
  // src/intent-definition/source.ts
69706
70153
  function swiftEnumSource(definition2, visibility, prefix = "") {
69707
- (0, import_strict8.default)(definition2 && typeof definition2 === "object");
70154
+ (0, import_strict9.default)(definition2 && typeof definition2 === "object");
69708
70155
  const unprefixed = identifier(Reflect.get(definition2, "INEnumName"));
69709
70156
  const name3 = prefix + unprefixed;
69710
70157
  const values = Reflect.get(definition2, "INEnumValues");
69711
- (0, import_strict8.default)(Array.isArray(values));
70158
+ (0, import_strict9.default)(Array.isArray(values));
69712
70159
  const access = visibility === "project" ? "internal" : "public";
69713
70160
  const cases = values.map((entry) => {
69714
- (0, import_strict8.default)(entry && typeof entry === "object");
70161
+ (0, import_strict9.default)(entry && typeof entry === "object");
69715
70162
  const name4 = identifier(Reflect.get(entry, "INEnumValueName"));
69716
70163
  const index = Reflect.get(entry, "INEnumValueIndex") ?? 0;
69717
- (0, import_strict8.default)(typeof index === "number" && Number.isSafeInteger(index));
70164
+ (0, import_strict9.default)(typeof index === "number" && Number.isSafeInteger(index));
69718
70165
  return ` case \`${name4}\` = ${index}`;
69719
70166
  });
69720
70167
  return `#if canImport(Intents)
@@ -69739,7 +70186,7 @@ ${access} class ${name3}ResolutionResult: INEnumResolutionResult {
69739
70186
  `;
69740
70187
  }
69741
70188
  function emitIntentSource(definition2, prefix, visibility, language, module2) {
69742
- (0, import_strict8.default)(definition2 && typeof definition2 === "object");
70189
+ (0, import_strict9.default)(definition2 && typeof definition2 === "object");
69743
70190
  const intents = modelList(definition2, "INIntents");
69744
70191
  const types2 = modelList(definition2, "INTypes");
69745
70192
  const enums = modelList(definition2, "INEnums");
@@ -69749,7 +70196,7 @@ function emitIntentSource(definition2, prefix, visibility, language, module2) {
69749
70196
  intentModelVersion(Reflect.get(definition2, "INIntentDefinitionModelVersion"))
69750
70197
  );
69751
70198
  const nameOf = (entry, key2) => {
69752
- (0, import_strict8.default)(entry && typeof entry === "object");
70199
+ (0, import_strict9.default)(entry && typeof entry === "object");
69753
70200
  return identifier(Reflect.get(entry, key2));
69754
70201
  };
69755
70202
  const typeNames = types2.map((type) => nameOf(type, "INTypeName"));
@@ -69789,7 +70236,7 @@ function emitIntentSource(definition2, prefix, visibility, language, module2) {
69789
70236
  });
69790
70237
  }
69791
70238
  for (const intent of intents) {
69792
- (0, import_strict8.default)(intent && typeof intent === "object");
70239
+ (0, import_strict9.default)(intent && typeof intent === "object");
69793
70240
  if (Reflect.get(intent, "INIntentType") === "System") continue;
69794
70241
  const name3 = identifier(Reflect.get(intent, "INIntentName"));
69795
70242
  const filename = `${prefix}${name3}Intent`;
@@ -69806,11 +70253,11 @@ function emitIntentSource(definition2, prefix, visibility, language, module2) {
69806
70253
  }
69807
70254
  return output;
69808
70255
  }
69809
- var import_strict8;
70256
+ var import_strict9;
69810
70257
  var init_source = __esm({
69811
70258
  "src/intent-definition/source.ts"() {
69812
70259
  "use strict";
69813
- import_strict8 = __toESM(require("node:assert/strict"), 1);
70260
+ import_strict9 = __toESM(require("node:assert/strict"), 1);
69814
70261
  init_fields();
69815
70262
  init_objective_c();
69816
70263
  init_swift();
@@ -70642,7 +71089,7 @@ function expandValue(value, settings) {
70642
71089
  return value;
70643
71090
  }
70644
71091
  function processedInfoPlist(name3, file, settings, settingKeys) {
70645
- const source = file ? import_plist4.default.parse(import_node_fs78.default.readFileSync(file, "utf8")) : {};
71092
+ const source = file ? parsePlist(import_node_fs78.default.readFileSync(file, "utf8")) : {};
70646
71093
  if (!source || typeof source !== "object" || Array.isArray(source) || source instanceof Date || Buffer.isBuffer(source))
70647
71094
  throw new Error(`${name3} Info.plist must contain a dictionary`);
70648
71095
  const info = {};
@@ -71216,7 +71663,7 @@ ${output}`
71216
71663
  );
71217
71664
  let launchName = settings("INFOPLIST_KEY_UILaunchStoryboardName");
71218
71665
  if (process.platform !== "darwin" && !launchName && infoPlistOutput && import_node_fs78.default.existsSync(infoPlistOutput)) {
71219
- const info = import_plist4.default.parse(import_node_fs78.default.readFileSync(infoPlistOutput, "utf8"));
71666
+ const info = parsePlist(import_node_fs78.default.readFileSync(infoPlistOutput, "utf8"));
71220
71667
  const declared = isRecord(info) ? info.UILaunchStoryboardName : void 0;
71221
71668
  if (typeof declared === "string") launchName = expand(declared, settings);
71222
71669
  }
@@ -72248,7 +72695,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
72248
72695
  }
72249
72696
  return {
72250
72697
  ref,
72251
- framework: Object.assign(module3, { frameworkInfoPlist: import_plist4.default.build(info2) })
72698
+ framework: Object.assign(module3, { frameworkInfoPlist: buildPlist(info2) })
72252
72699
  };
72253
72700
  });
72254
72701
  const frameworks = frameworkTargets.map(({ framework }) => framework);
@@ -72315,9 +72762,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
72315
72762
  path: bundlePath,
72316
72763
  ...product ? {
72317
72764
  resources: product.module.resources,
72318
- infoPlist: import_plist4.default.build(
72765
+ infoPlist: buildPlist(
72319
72766
  expandValue(
72320
- import_plist4.default.parse(import_node_fs78.default.readFileSync(infoFile, "utf8")),
72767
+ parsePlist(import_node_fs78.default.readFileSync(infoFile, "utf8")),
72321
72768
  product.productSettings
72322
72769
  )
72323
72770
  )
@@ -72339,7 +72786,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
72339
72786
  settingKeys
72340
72787
  );
72341
72788
  const bundleIdentifier = productSettings("PRODUCT_BUNDLE_IDENTIFIER") || (typeof info.CFBundleIdentifier === "string" ? info.CFBundleIdentifier : "");
72342
- const entitlements = entitlementsFile ? import_plist4.default.parse(import_node_fs78.default.readFileSync(entitlementsFile, "utf8")) : void 0;
72789
+ const entitlements = entitlementsFile ? parsePlist(import_node_fs78.default.readFileSync(entitlementsFile, "utf8")) : void 0;
72343
72790
  const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
72344
72791
  entitlements,
72345
72792
  (value) => expand(value, (key2) => {
@@ -72685,7 +73132,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
72685
73132
  ].sort(),
72686
73133
  projectDirs: [...new Set(used.map((project2) => project2.projectDir))].sort(),
72687
73134
  appIconName: settings("ASSETCATALOG_COMPILER_APPICON_NAME"),
72688
- infoPlist: infoPlistPending ? null : import_plist4.default.build(info),
73135
+ infoPlist: infoPlistPending ? null : buildPlist(info),
72689
73136
  infoPlistFile,
72690
73137
  ...keychainAccessGroups === void 0 ? {} : { keychainAccessGroups },
72691
73138
  siriEntitled: readSiriEntitlement(entitlements),
@@ -72708,7 +73155,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
72708
73155
  cocoapods
72709
73156
  };
72710
73157
  }
72711
- var import_node_child_process40, import_node_crypto47, import_node_fs78, import_node_module5, import_node_path79, import_plist4, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory3, loaded3, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
73158
+ var import_node_child_process40, import_node_crypto47, import_node_fs78, import_node_module5, import_node_path79, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory3, loaded3, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
72712
73159
  var init_xcode_project = __esm({
72713
73160
  "src/xcode-project.ts"() {
72714
73161
  "use strict";
@@ -72717,11 +73164,11 @@ var init_xcode_project = __esm({
72717
73164
  import_node_fs78 = __toESM(require("node:fs"), 1);
72718
73165
  import_node_module5 = require("node:module");
72719
73166
  import_node_path79 = __toESM(require("node:path"), 1);
72720
- import_plist4 = __toESM(require("peachsim/vendor/plist"), 1);
72721
73167
  init_bazel_project();
72722
73168
  init_ios_sdk_frameworks();
72723
73169
  init_is_record();
72724
73170
  init_native_app_identity();
73171
+ init_plist();
72725
73172
  init_pod_graph_specifications();
72726
73173
  init_swift_binary_modules();
72727
73174
  init_xcode_assets();
@@ -82059,7 +82506,7 @@ function compileCatalogTables(source, name3) {
82059
82506
  }
82060
82507
  return output;
82061
82508
  }
82062
- function plist4(value, depth) {
82509
+ function plist(value, depth) {
82063
82510
  const indent2 = " ".repeat(depth);
82064
82511
  const escaped = (text7) => text7.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
82065
82512
  if (typeof value === "string") return `${indent2}<string>${escaped(value)}</string>
@@ -82070,7 +82517,7 @@ function plist4(value, depth) {
82070
82517
  return `${indent2}<dict>
82071
82518
  ` + keys.map(
82072
82519
  (key2) => `${indent2} <key>${escaped(key2)}</key>
82073
- ` + plist4(value[key2] ?? "", depth + 1)
82520
+ ` + plist(value[key2] ?? "", depth + 1)
82074
82521
  ).join("") + `${indent2}</dict>
82075
82522
  `;
82076
82523
  }
@@ -82078,7 +82525,7 @@ function compileStringCatalog(source, name3) {
82078
82525
  return Object.fromEntries(
82079
82526
  Object.entries(compileCatalogTables(source, name3)).map(([path139, table]) => [
82080
82527
  path139,
82081
- '<?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' + plist4(table, 0) + "</plist>\n"
82528
+ '<?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"
82082
82529
  ])
82083
82530
  );
82084
82531
  }
@@ -85007,7 +85454,7 @@ var require_packer_async = __commonJS({
85007
85454
  var require_sync_inflate = __commonJS({
85008
85455
  "../../node_modules/pngjs/lib/sync-inflate.js"(exports2, module2) {
85009
85456
  "use strict";
85010
- var assert9 = require("assert").ok;
85457
+ var assert10 = require("assert").ok;
85011
85458
  var zlib4 = require("zlib");
85012
85459
  var util = require("util");
85013
85460
  var kMaxLength = require("buffer").kMaxLength;
@@ -85058,7 +85505,7 @@ var require_sync_inflate = __commonJS({
85058
85505
  return;
85059
85506
  }
85060
85507
  let have = availOutBefore - availOutAfter;
85061
- assert9(have >= 0, "have should not go down");
85508
+ assert10(have >= 0, "have should not go down");
85062
85509
  if (have > 0) {
85063
85510
  let out = self._buffer.slice(self._offset, self._offset + have);
85064
85511
  self._offset += have;
@@ -85084,7 +85531,7 @@ var require_sync_inflate = __commonJS({
85084
85531
  }
85085
85532
  return false;
85086
85533
  }
85087
- assert9(this._handle, "zlib binding closed");
85534
+ assert10(this._handle, "zlib binding closed");
85088
85535
  let res;
85089
85536
  do {
85090
85537
  res = this._handle.writeSync(
@@ -86879,7 +87326,7 @@ var init_swift_standin_digest = __esm({
86879
87326
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
86880
87327
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
86881
87328
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
86882
- STANDIN_SOURCE_DIGEST = true ? "cb9d3dbcce3fdc3dbbec1990247cf5b2a1f9fd7cd32791740e313792bd8bcfcc" : standinSourceDigest();
87329
+ STANDIN_SOURCE_DIGEST = true ? "0fa01889b40249e7aa8b8e48fee286aef4d4994798bf35e354ae224d421cdd03" : standinSourceDigest();
86883
87330
  }
86884
87331
  });
86885
87332
 
@@ -103341,7 +103788,7 @@ var init_nitro_superset = __esm({
103341
103788
  init_nitroContract();
103342
103789
  init_swift_standin_digest();
103343
103790
  NITRO_SUPERSET_ENTRY_NAME = "superset";
103344
- NITRO_COMPILER_DIGEST = true ? "228003f16f1b081fea0ab10bb0ba40a8192beee02eb15e1a3363090ee53f71ef" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
103791
+ NITRO_COMPILER_DIGEST = true ? "6dd1320b8d444e55b9223745c327afa3e7fe0f51fbab1f79548b3eff6612ee4c" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
103345
103792
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
103346
103793
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
103347
103794
  published = /* @__PURE__ */ new Map();
@@ -104209,7 +104656,7 @@ var init_expo_eager_seam_contract = __esm({
104209
104656
 
104210
104657
  // src/expo-native-compiler-digest.ts
104211
104658
  function expoNativeCompilerDigestValue() {
104212
- return true ? "6aedf26bc25b6a36f195ca561d0ac7cf616934f0decbe54a770edcae5bda1407" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
104659
+ return true ? "f6f1fdf256bd2bea43a47405f3cf628eb70398ab6fe8a8b27eee2dd2c6354b11" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
104213
104660
  }
104214
104661
  var import_node_crypto78;
104215
104662
  var init_expo_native_compiler_digest = __esm({
@@ -104892,14 +105339,14 @@ function isPlistValue(value) {
104892
105339
  return isRecord(value) && Object.values(value).every(isPlistValue);
104893
105340
  }
104894
105341
  function parsePlistDictionary(source) {
104895
- const parsed2 = import_plist9.default.parse(source);
105342
+ const parsed2 = parsePlist(source);
104896
105343
  if (typeof parsed2 !== "object" || isPlistArray(parsed2) || parsed2 instanceof Date || Buffer.isBuffer(parsed2))
104897
105344
  throw new Error("Info.plist is not a dictionary");
104898
105345
  return parsed2;
104899
105346
  }
104900
105347
  function installedInfoPlist(prebuilt, additions) {
104901
105348
  const merged = { ...parsePlistDictionary(prebuilt), ...additions };
104902
- return import_plist9.default.build(
105349
+ return buildPlist(
104903
105350
  Object.fromEntries(
104904
105351
  Object.keys(merged).sort().map((key2) => [key2, merged[key2]])
104905
105352
  )
@@ -105007,7 +105454,7 @@ async function prebuiltExpoSwiftResult(appRoot, entry, signal) {
105007
105454
  await prebuiltAppTarget(appRoot, signal, "installed")
105008
105455
  );
105009
105456
  }
105010
- var import_node_crypto80, import_node_fs130, import_node_module18, import_node_path132, import_node_util16, import_plist9, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published2, lookups, answers;
105457
+ var import_node_crypto80, import_node_fs130, import_node_module18, import_node_path132, import_node_util16, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published2, lookups, answers;
105011
105458
  var init_expo_native_prebuilt = __esm({
105012
105459
  "src/expo-native-prebuilt.ts"() {
105013
105460
  "use strict";
@@ -105016,7 +105463,6 @@ var init_expo_native_prebuilt = __esm({
105016
105463
  import_node_module18 = require("node:module");
105017
105464
  import_node_path132 = __toESM(require("node:path"), 1);
105018
105465
  import_node_util16 = require("node:util");
105019
- import_plist9 = __toESM(require("peachsim/vendor/plist"), 1);
105020
105466
  init_answeredNativePackages();
105021
105467
  init_expo_native_compiler_digest();
105022
105468
  init_expo_native_workspace();
@@ -105027,6 +105473,7 @@ var init_expo_native_prebuilt = __esm({
105027
105473
  init_native_prebuilt();
105028
105474
  init_nitroContract();
105029
105475
  init_package_tree_digest();
105476
+ init_plist();
105030
105477
  init_swift_native_pin();
105031
105478
  init_xcode_project();
105032
105479
  EXPO_NATIVE_ENTRY_NAME = "ios";