peachsim 0.1.1667 → 0.1.1673

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 (178) hide show
  1. package/README.md +1 -1
  2. package/cli/bridge-flow-runner.ts +4 -1
  3. package/cli/commands/coverage-swift.ts +291 -0
  4. package/cli/commands/coverage.ts +168 -24
  5. package/cli/commands/diagnose.ts +1 -19
  6. package/cli/commands/react.ts +3 -18
  7. package/cli/commands/screenshot.ts +1 -1
  8. package/cli/commands/screenshots-capture.ts +1 -1
  9. package/cli/drivers/playwright-provisioning.ts +1 -4
  10. package/cli/drivers/playwright.ts +15 -1
  11. package/cli/scene-video.ts +1 -1
  12. package/cli/ui.ts +20 -0
  13. package/cli/ws-bridge.ts +7 -36
  14. package/detox/frame-identity.cjs +21 -0
  15. package/detox/frame-identity.d.cts +6 -0
  16. package/detox/index.ts +39 -33
  17. package/detox/jest-environment.cjs +4 -1
  18. package/detox/jest-setup-after-env.cjs +0 -4
  19. package/detox/navigation-lifecycle.ts +2 -2
  20. package/detox/proof-observer.ts +126 -0
  21. package/dist-lib/agent-daemon-client.cjs +29 -1
  22. package/dist-lib/agent-events.cjs +1 -1
  23. package/dist-lib/attached-projects.cjs +10 -1
  24. package/dist-lib/auth/shared-session.cjs +1 -1
  25. package/dist-lib/backend-origin.cjs +1 -1
  26. package/dist-lib/beta.cjs +1 -1
  27. package/dist-lib/beta.mjs +1 -1
  28. package/dist-lib/bridge-constants.cjs +1 -1
  29. package/dist-lib/bridge-contract-input.cjs +1 -1
  30. package/dist-lib/bridge-contract-input.mjs +1 -1
  31. package/dist-lib/bridge-contract.cjs +1 -1
  32. package/dist-lib/bridge-contract.mjs +1 -1
  33. package/dist-lib/bundle-channel.cjs +530 -154
  34. package/dist-lib/capture-contract.cjs +1 -1
  35. package/dist-lib/capture-contract.mjs +1 -1
  36. package/dist-lib/cloud-contract.cjs +1 -1
  37. package/dist-lib/cloud-contract.mjs +1 -1
  38. package/dist-lib/cloud-test-args.cjs +1 -1
  39. package/dist-lib/cloud-test-args.mjs +1 -1
  40. package/dist-lib/cloud.cjs +1 -1
  41. package/dist-lib/cloud.mjs +1 -1
  42. package/dist-lib/config.cjs +1 -1
  43. package/dist-lib/config.mjs +1 -1
  44. package/dist-lib/detox/index.cjs +5074 -7353
  45. package/dist-lib/detox/jest-environment.cjs +4 -1
  46. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  47. package/dist-lib/expo-swift-bundle.cjs +578 -151
  48. package/dist-lib/expo-swift-metadata.cjs +1 -1
  49. package/dist-lib/expo-swift-metadata.mjs +1 -1
  50. package/dist-lib/home-paths.cjs +1 -1
  51. package/dist-lib/host/bridge-host.cjs +660 -192
  52. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  53. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  54. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  55. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  56. package/dist-lib/host/websocket-proxy.cjs +1 -1
  57. package/dist-lib/index.cjs +206 -6
  58. package/dist-lib/jump-to-source-babel.cjs +1 -1
  59. package/dist-lib/jump-to-source-native.cjs +1 -1
  60. package/dist-lib/kotlin-host.cjs +1 -1
  61. package/dist-lib/menu.cjs +1 -1
  62. package/dist-lib/menu.mjs +1 -1
  63. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  64. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  65. package/dist-lib/metro-production-bundle.cjs +10 -1
  66. package/dist-lib/metro-production-bundle.mjs +12 -1
  67. package/dist-lib/metro.cjs +155 -5
  68. package/dist-lib/native-app-identity-project.cjs +43 -5
  69. package/dist-lib/native-app-identity-project.mjs +43 -5
  70. package/dist-lib/native-app-identity.cjs +1 -1
  71. package/dist-lib/native-app-identity.mjs +1 -1
  72. package/dist-lib/native-firebase-metadata.cjs +1 -1
  73. package/dist-lib/native-firebase-metadata.mjs +1 -1
  74. package/dist-lib/plist.cjs +1 -1
  75. package/dist-lib/plist.mjs +1 -1
  76. package/dist-lib/profiles.cjs +21 -1
  77. package/dist-lib/public-brand.cjs +1 -1
  78. package/dist-lib/public-origins-lib-esm.json +73 -27
  79. package/dist-lib/public-origins-lib-static.json +1 -1
  80. package/dist-lib/public-origins-lib.json +563 -183
  81. package/dist-lib/react-native-host-modules.cjs +1 -1
  82. package/dist-lib/react-native-host-modules.mjs +1 -1
  83. package/dist-lib/reap-browser.cjs +964 -0
  84. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  85. package/dist-lib/sdk.cjs +1 -1
  86. package/dist-lib/sdk.mjs +1 -1
  87. package/dist-lib/skills.cjs +963 -521
  88. package/dist-lib/swift-compile.cjs +276 -86
  89. package/dist-lib/swift-compile.mjs +276 -86
  90. package/dist-lib/swift-package.cjs +34 -4
  91. package/dist-lib/swift-package.mjs +33 -4
  92. package/dist-lib/swift-submit.cjs +2 -2
  93. package/dist-lib/swift-submit.mjs +2 -2
  94. package/dist-lib/swift-toolchain.cjs +25 -44
  95. package/dist-lib/swift.cjs +1 -1
  96. package/dist-lib/vite-swift.cjs +579 -113
  97. package/dist-lib/vite.cjs +61 -2
  98. package/dist-lib/worklet-executable.cjs +1 -1
  99. package/dist-lib/worklet-executable.mjs +1 -1
  100. package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +7 -0
  101. package/dist-types/packages/peach-engine/src/engine/glass-material.d.ts +1 -1
  102. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
  103. package/dist-types/packages/peach-engine/src/engine/inspect-outline.d.ts +2 -1
  104. package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
  105. package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +3 -1
  106. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +7 -0
  107. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime-kind.d.ts +24 -0
  108. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +4 -2
  109. package/dist-types/packages/peach-engine/src/settings/devices.d.ts +1 -0
  110. package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +18 -0
  111. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  112. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
  113. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  114. package/package.json +1 -1
  115. package/runtime-companion.json +1 -1
  116. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +2 -0
  117. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +36 -0
  118. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStore.h +439 -0
  119. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreCopySpecific.h +216 -0
  120. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreKey.h +267 -0
  121. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetwork.h +204 -0
  122. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConfiguration.h +1393 -0
  123. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConnection.h +568 -0
  124. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkReachability.h +369 -0
  125. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferences.h +473 -0
  126. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesPath.h +179 -0
  127. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesSetSpecific.h +95 -0
  128. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h +2395 -0
  129. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h +184 -0
  130. package/sdk/ios/usr/include/libkern/OSByteOrder.h +315 -0
  131. package/sdk/ios/usr/include/libkern/machine/OSByteOrder.h +147 -0
  132. package/src/bridge-contract.ts +42 -0
  133. package/src/chromium-admission.ts +196 -0
  134. package/src/host/bridge-host.ts +6 -43
  135. package/src/launch-deadline.ts +74 -0
  136. package/src/nitro-adapter.lock.json +3 -3
  137. package/src/profiles.ts +21 -0
  138. package/src/react-native-coverage/capability-reference-resolution.ts +402 -0
  139. package/src/react-native-coverage/capability-source-references.ts +1296 -0
  140. package/src/react-native-coverage/native-typescript-parser.ts +74 -0
  141. package/src/react-native-coverage/project-aliases.ts +207 -0
  142. package/src/react-native-coverage/verified-reach.ts +47 -0
  143. package/src/reap-browser.ts +1019 -0
  144. package/src/skills/builtin/a11y-review.ts +1 -1
  145. package/src/skills/builtin/perf-profile.ts +1 -1
  146. package/src/skills/builtin/screenshot-all.ts +1 -1
  147. package/src/skills/builtin/visual-diff.ts +1 -1
  148. package/src/swift-compile.ts +107 -56
  149. package/src/swift-coverage/indexdump.ts +80 -0
  150. package/src/swift-coverage/indexing.ts +147 -0
  151. package/src/swift-coverage/package.ts +230 -0
  152. package/src/swift-coverage/provenance.ts +47 -0
  153. package/src/swift-coverage/reader.ts +81 -0
  154. package/src/swift-coverage/source.ts +252 -0
  155. package/src/swift-coverage/types.ts +58 -0
  156. package/src/swift-coverage/xcode-assets.ts +175 -0
  157. package/src/swift-coverage/xcode-bridging.ts +160 -0
  158. package/src/swift-coverage/xcode-packages.ts +251 -0
  159. package/src/swift-coverage/xcode-strings.ts +78 -0
  160. package/src/swift-coverage/xcode.ts +656 -0
  161. package/src/swift-distribution.lock.json +8 -8
  162. package/src/swift-host.ts +21 -1
  163. package/src/swift-objc-import.ts +191 -27
  164. package/src/swift-objc-standin.ts +4 -2
  165. package/src/swift-package-manifest.ts +134 -13
  166. package/src/swift-package.ts +46 -4
  167. package/src/swift-submit.ts +2 -1
  168. package/src/swift-toolchain.ts +36 -61
  169. package/src/worker-system-chunks.ts +3 -10
  170. package/src/xcode-project.ts +5 -5
  171. package/detox/attempt-events.cjs +0 -914
  172. package/detox/attempt-events.d.cts +0 -113
  173. package/detox/motion-change.cjs +0 -524
  174. package/detox/motion-change.d.cts +0 -140
  175. package/detox/motion-leg-starts.cjs +0 -20
  176. package/detox/motion-leg-starts.d.cts +0 -8
  177. package/detox/proof-frame.cjs +0 -190
  178. package/detox/record-block-execution.cjs +0 -78
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1667 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1673 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -35,6 +35,217 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
35
35
  ));
36
36
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37
37
 
38
+ // <define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>
39
+ var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
40
+ "<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
41
+ }
42
+ });
43
+
44
+ // src/chromium-admission.ts
45
+ function readChromiumQueue(deps, verified2, own) {
46
+ const { fs: fs54, os: os14, path: path62, childProcess: childProcess3 } = deps;
47
+ const dir = path62.join(
48
+ process.platform === "win32" ? os14.tmpdir() : "/tmp",
49
+ "chromium-admission"
50
+ );
51
+ fs54.mkdirSync(dir, { recursive: true });
52
+ const limit = Math.max(2, Math.floor(os14.cpus().length / 3));
53
+ const live = (entry) => {
54
+ const match = /^(\d+)-(\d+)-/.exec(entry);
55
+ if (!match) return false;
56
+ const pid = Number(match[1]);
57
+ try {
58
+ process.kill(pid, 0);
59
+ } catch (err) {
60
+ if (!(err instanceof Error && "code" in err && err.code === "EPERM")) return false;
61
+ }
62
+ const known = verified2.get(entry);
63
+ if (known !== void 0) return known;
64
+ let same = pid === process.pid;
65
+ if (!same) {
66
+ let started = "";
67
+ try {
68
+ started = childProcess3.execFileSync("ps", ["-p", String(pid), "-o", "lstart="], { encoding: "utf8" }).trim();
69
+ } catch (err) {
70
+ const gone = err instanceof Error && "status" in err && err.status === 1;
71
+ if (!gone) return true;
72
+ }
73
+ const startedAt = Date.parse(started);
74
+ if (started && Number.isNaN(startedAt)) return true;
75
+ same = Math.abs(startedAt / 1e3 - Number(match[2])) <= 2;
76
+ }
77
+ verified2.set(entry, same);
78
+ return same;
79
+ };
80
+ const tickets = [];
81
+ for (const entry of fs54.readdirSync(dir)) {
82
+ if (entry !== own && !live(entry)) {
83
+ try {
84
+ fs54.unlinkSync(path62.join(dir, entry));
85
+ } catch {
86
+ }
87
+ continue;
88
+ }
89
+ try {
90
+ tickets.push({
91
+ entry,
92
+ created: fs54.statSync(path62.join(dir, entry), { bigint: true }).ctimeNs
93
+ });
94
+ } catch {
95
+ }
96
+ }
97
+ tickets.sort(
98
+ (a, b) => a.created === b.created ? a.entry < b.entry ? -1 : 1 : a.created < b.created ? -1 : 1
99
+ );
100
+ return { dir, limit, tickets: tickets.map((t) => t.entry) };
101
+ }
102
+ async function acquireChromiumAdmission(deps) {
103
+ const { fs: fs54, path: path62, label, readQueue, signal } = deps;
104
+ signal?.throwIfAborted();
105
+ const queuedAt = Date.now();
106
+ const verified2 = /* @__PURE__ */ new Map();
107
+ const startedAt = Math.round(Date.now() / 1e3 - process.uptime());
108
+ const name3 = `${process.pid}-${startedAt}-${Math.random().toString(36).slice(2, 10)}`;
109
+ const ticket = path62.join(readQueue(deps, verified2, name3).dir, name3);
110
+ fs54.closeSync(fs54.openSync(ticket, "wx"));
111
+ let released = false;
112
+ const release = () => {
113
+ if (released) return;
114
+ released = true;
115
+ process.removeListener("exit", release);
116
+ try {
117
+ fs54.unlinkSync(ticket);
118
+ } catch {
119
+ }
120
+ process.stderr.write(`[chromium-admission] ${label}: released ${name3}
121
+ `);
122
+ };
123
+ process.on("exit", release);
124
+ signal?.addEventListener("abort", release, { once: true });
125
+ let waited = false;
126
+ try {
127
+ while (true) {
128
+ signal?.throwIfAborted();
129
+ const { limit, tickets } = readQueue(deps, verified2, name3);
130
+ const rank = tickets.indexOf(name3);
131
+ if (rank < 0) {
132
+ throw new Error(`[chromium-admission] ${label}: reservation disappeared`);
133
+ }
134
+ if (rank < limit) {
135
+ process.stderr.write(
136
+ `[chromium-admission] ${label}: admitted ${name3} after ${Date.now() - queuedAt}ms
137
+ `
138
+ );
139
+ return release;
140
+ }
141
+ if (!waited) {
142
+ const holders = tickets.slice(0, limit).map((t) => t.split("-")[0]);
143
+ process.stderr.write(
144
+ `[chromium-admission] ${label}: ${limit} chromium launches already run on this machine (pids ${holders.join(" ")}), queued ${rank - limit + 1}
145
+ `
146
+ );
147
+ waited = true;
148
+ }
149
+ await new Promise((resolve12, reject) => {
150
+ const abort = () => {
151
+ clearTimeout(timer);
152
+ signal?.removeEventListener("abort", abort);
153
+ reject(
154
+ new Error(`[chromium-admission] ${label}: cancelled`, {
155
+ cause: signal?.reason
156
+ })
157
+ );
158
+ };
159
+ const timer = setTimeout(() => {
160
+ signal?.removeEventListener("abort", abort);
161
+ resolve12();
162
+ }, 500);
163
+ signal?.addEventListener("abort", abort, { once: true });
164
+ if (signal?.aborted) abort();
165
+ });
166
+ }
167
+ } catch (error) {
168
+ release();
169
+ throw error;
170
+ } finally {
171
+ signal?.removeEventListener("abort", release);
172
+ }
173
+ }
174
+ var init_chromium_admission = __esm({
175
+ "src/chromium-admission.ts"() {
176
+ "use strict";
177
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
178
+ }
179
+ });
180
+
181
+ // src/launch-deadline.ts
182
+ function heldPids() {
183
+ try {
184
+ const ledger = JSON.parse(
185
+ (0, import_node_fs.readFileSync)(LEDGER_PATH, "utf8")
186
+ );
187
+ return Object.values(ledger).flatMap((procs) => procs.map((proc) => proc.pid));
188
+ } catch {
189
+ return [];
190
+ }
191
+ }
192
+ function holdsThisProcessTree(held) {
193
+ const parents = /* @__PURE__ */ new Map();
194
+ for (const line of (0, import_node_child_process.execFileSync)("ps", ["-A", "-o", "pid=,ppid="], {
195
+ encoding: "utf8"
196
+ }).split("\n")) {
197
+ const [pid, ppid] = line.trim().split(/\s+/).map(Number);
198
+ if (pid && ppid !== void 0) parents.set(pid, ppid);
199
+ }
200
+ const ancestors = /* @__PURE__ */ new Set();
201
+ for (let pid = process.pid, hops = 0; pid && hops < 64; hops++) {
202
+ ancestors.add(pid);
203
+ pid = parents.get(pid);
204
+ }
205
+ return held.some((start) => {
206
+ if (ancestors.has(start)) return true;
207
+ for (let pid = parents.get(start), hops = 0; pid && hops < 64; hops++) {
208
+ if (pid === process.pid) return true;
209
+ pid = parents.get(pid);
210
+ }
211
+ return false;
212
+ });
213
+ }
214
+ function startLaunchDeadline(budgetMs, onExpire) {
215
+ let remaining = budgetMs;
216
+ let last = Date.now();
217
+ const poll2 = setInterval(() => {
218
+ const now = Date.now();
219
+ const elapsed = Math.min(now - last, MAX_COUNTED_GAP_MS);
220
+ last = now;
221
+ const held = heldPids();
222
+ if (held.length > 0 && holdsThisProcessTree(held)) return;
223
+ remaining -= elapsed;
224
+ if (remaining <= 0) {
225
+ clearInterval(poll2);
226
+ onExpire();
227
+ }
228
+ }, TICK_MS);
229
+ return () => clearInterval(poll2);
230
+ }
231
+ var import_node_child_process, import_node_fs, os, path, LEDGER_PATH, TICK_MS, MAX_COUNTED_GAP_MS;
232
+ var init_launch_deadline = __esm({
233
+ "src/launch-deadline.ts"() {
234
+ "use strict";
235
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
236
+ import_node_child_process = require("node:child_process");
237
+ import_node_fs = require("node:fs");
238
+ os = __toESM(require("node:os"), 1);
239
+ path = __toESM(require("node:path"), 1);
240
+ LEDGER_PATH = path.join(
241
+ process.env.TM_HOME || path.join(os.homedir(), ".team-machine"),
242
+ "governor-pauses.json"
243
+ );
244
+ TICK_MS = 500;
245
+ MAX_COUNTED_GAP_MS = TICK_MS * 3;
246
+ }
247
+ });
248
+
38
249
  // src/process-group.ts
39
250
  function listProcessChildren(parents, timeoutMs = 3e3) {
40
251
  if (parents.some((pid) => !Number.isInteger(pid) || pid <= 1))
@@ -47,11 +258,11 @@ function listProcessChildren(parents, timeoutMs = 3e3) {
47
258
  for (const parent of parents) {
48
259
  try {
49
260
  const tasks = `/proc/${parent}/task`;
50
- for (const thread of (0, import_node_fs.readdirSync)(tasks)) {
261
+ for (const thread of (0, import_node_fs2.readdirSync)(tasks)) {
51
262
  if (Date.now() >= deadline)
52
263
  throw new Error("process descendant inspection exceeded its deadline");
53
264
  try {
54
- lists.push((0, import_node_fs.readFileSync)(`${tasks}/${thread}/children`, "utf8"));
265
+ lists.push((0, import_node_fs2.readFileSync)(`${tasks}/${thread}/children`, "utf8"));
55
266
  } catch (error) {
56
267
  if (!(error instanceof Error && "code" in error && error.code === "ENOENT"))
57
268
  throw error;
@@ -64,7 +275,7 @@ function listProcessChildren(parents, timeoutMs = 3e3) {
64
275
  }
65
276
  children = lists.join(" ");
66
277
  } else {
67
- const result = (0, import_node_child_process.spawnSync)("pgrep", ["-P", parents.join(",")], {
278
+ const result = (0, import_node_child_process2.spawnSync)("pgrep", ["-P", parents.join(",")], {
68
279
  encoding: "utf8",
69
280
  stdio: ["ignore", "pipe", "pipe"],
70
281
  timeout: Math.max(1, timeoutMs),
@@ -93,12 +304,12 @@ function signalProcessGroup(child, signal) {
93
304
  }
94
305
  }
95
306
  async function protectProcessFreeze(rootPid) {
96
- const directory = (0, import_node_fs.mkdtempSync)((0, import_node_path.join)((0, import_node_os.tmpdir)(), "peach-process-freeze-"));
307
+ const directory = (0, import_node_fs2.mkdtempSync)((0, import_node_path.join)((0, import_node_os.tmpdir)(), "peach-process-freeze-"));
97
308
  const journal = (0, import_node_path.join)(directory, "targets");
98
- (0, import_node_fs.writeFileSync)(journal, `group ${rootPid}
309
+ (0, import_node_fs2.writeFileSync)(journal, `group ${rootPid}
99
310
  pid ${rootPid}
100
311
  `, { mode: 384 });
101
- const guard = (0, import_node_child_process.spawn)(
312
+ const guard = (0, import_node_child_process2.spawn)(
102
313
  "/bin/sh",
103
314
  [
104
315
  "-c",
@@ -146,7 +357,7 @@ pid ${rootPid}
146
357
  if (!(control instanceof import_node_stream.Duplex) || !output) {
147
358
  guard.kill();
148
359
  await closed;
149
- (0, import_node_fs.rmSync)(directory, { recursive: true, force: true });
360
+ (0, import_node_fs2.rmSync)(directory, { recursive: true, force: true });
150
361
  throw new Error("process freeze guard control pipe is unavailable");
151
362
  }
152
363
  control.on("error", () => {
@@ -179,20 +390,20 @@ pid ${rootPid}
179
390
  } catch (error) {
180
391
  control.destroy();
181
392
  await closed;
182
- (0, import_node_fs.rmSync)(directory, { recursive: true, force: true });
393
+ (0, import_node_fs2.rmSync)(directory, { recursive: true, force: true });
183
394
  throw error;
184
395
  }
185
396
  return {
186
397
  record(pid) {
187
398
  if (guardClosed || control.destroyed)
188
399
  throw new Error("process freeze guard exited during capture");
189
- (0, import_node_fs.appendFileSync)(journal, `pid ${pid}
400
+ (0, import_node_fs2.appendFileSync)(journal, `pid ${pid}
190
401
  `);
191
402
  },
192
403
  async release(disarm) {
193
404
  control.end(disarm ? "disarm\n" : void 0);
194
405
  await closed;
195
- (0, import_node_fs.rmSync)(directory, { recursive: true, force: true });
406
+ (0, import_node_fs2.rmSync)(directory, { recursive: true, force: true });
196
407
  }
197
408
  };
198
409
  }
@@ -206,7 +417,7 @@ function processesHaveExited(pids, pgid) {
206
417
  }
207
418
  });
208
419
  if (!mayExist) return true;
209
- const result = (0, import_node_child_process.spawnSync)("ps", ["-A", "-o", "pid=,pgid=,stat="], {
420
+ const result = (0, import_node_child_process2.spawnSync)("ps", ["-A", "-o", "pid=,pgid=,stat="], {
210
421
  encoding: "utf8",
211
422
  stdio: ["ignore", "pipe", "pipe"],
212
423
  timeout: FORCED_EXIT_TIMEOUT_MS,
@@ -346,12 +557,13 @@ async function terminateProcessGroup(child, signal = "SIGTERM", gracefulTimeoutM
346
557
  }
347
558
  if (inspectionError) throw inspectionError;
348
559
  }
349
- var import_node_child_process, import_node_fs, import_node_os, import_node_path, import_node_stream, import_promises, GRACEFUL_TIMEOUT_MS, FORCED_EXIT_TIMEOUT_MS, FREEZE_GUARD_NAME;
560
+ var import_node_child_process2, import_node_fs2, import_node_os, import_node_path, import_node_stream, import_promises, GRACEFUL_TIMEOUT_MS, FORCED_EXIT_TIMEOUT_MS, FREEZE_GUARD_NAME;
350
561
  var init_process_group = __esm({
351
562
  "src/process-group.ts"() {
352
563
  "use strict";
353
- import_node_child_process = require("node:child_process");
354
- import_node_fs = require("node:fs");
564
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
565
+ import_node_child_process2 = require("node:child_process");
566
+ import_node_fs2 = require("node:fs");
355
567
  import_node_os = require("node:os");
356
568
  import_node_path = require("node:path");
357
569
  import_node_stream = require("node:stream");
@@ -362,210 +574,7 @@ var init_process_group = __esm({
362
574
  }
363
575
  });
364
576
 
365
- // ../../scripts/lib/chromium-admission.ts
366
- function readChromiumQueue(deps, verified2, own) {
367
- const { fs: fs54, os: os14, path: path62, childProcess: childProcess3 } = deps;
368
- const dir = path62.join(
369
- process.platform === "win32" ? os14.tmpdir() : "/tmp",
370
- "chromium-admission"
371
- );
372
- fs54.mkdirSync(dir, { recursive: true });
373
- const limit = Math.max(2, Math.floor(os14.cpus().length / 3));
374
- const live = (entry) => {
375
- const match = /^(\d+)-(\d+)-/.exec(entry);
376
- if (!match) return false;
377
- const pid = Number(match[1]);
378
- try {
379
- process.kill(pid, 0);
380
- } catch (err) {
381
- if (!(err instanceof Error && "code" in err && err.code === "EPERM")) return false;
382
- }
383
- const known = verified2.get(entry);
384
- if (known !== void 0) return known;
385
- let same = pid === process.pid;
386
- if (!same) {
387
- let started = "";
388
- try {
389
- started = childProcess3.execFileSync("ps", ["-p", String(pid), "-o", "lstart="], { encoding: "utf8" }).trim();
390
- } catch (err) {
391
- const gone = err instanceof Error && "status" in err && err.status === 1;
392
- if (!gone) return true;
393
- }
394
- const startedAt = Date.parse(started);
395
- if (started && Number.isNaN(startedAt)) return true;
396
- same = Math.abs(startedAt / 1e3 - Number(match[2])) <= 2;
397
- }
398
- verified2.set(entry, same);
399
- return same;
400
- };
401
- const tickets = [];
402
- for (const entry of fs54.readdirSync(dir)) {
403
- if (entry !== own && !live(entry)) {
404
- try {
405
- fs54.unlinkSync(path62.join(dir, entry));
406
- } catch {
407
- }
408
- continue;
409
- }
410
- try {
411
- tickets.push({
412
- entry,
413
- created: fs54.statSync(path62.join(dir, entry), { bigint: true }).ctimeNs
414
- });
415
- } catch {
416
- }
417
- }
418
- tickets.sort(
419
- (a, b) => a.created === b.created ? a.entry < b.entry ? -1 : 1 : a.created < b.created ? -1 : 1
420
- );
421
- return { dir, limit, tickets: tickets.map((t) => t.entry) };
422
- }
423
- async function acquireChromiumAdmission(deps) {
424
- const { fs: fs54, path: path62, label, readQueue, signal } = deps;
425
- signal?.throwIfAborted();
426
- const queuedAt = Date.now();
427
- const verified2 = /* @__PURE__ */ new Map();
428
- const startedAt = Math.round(Date.now() / 1e3 - process.uptime());
429
- const name3 = `${process.pid}-${startedAt}-${Math.random().toString(36).slice(2, 10)}`;
430
- const ticket = path62.join(readQueue(deps, verified2, name3).dir, name3);
431
- fs54.closeSync(fs54.openSync(ticket, "wx"));
432
- let released = false;
433
- const release = () => {
434
- if (released) return;
435
- released = true;
436
- process.removeListener("exit", release);
437
- try {
438
- fs54.unlinkSync(ticket);
439
- } catch {
440
- }
441
- process.stderr.write(`[chromium-admission] ${label}: released ${name3}
442
- `);
443
- };
444
- process.on("exit", release);
445
- signal?.addEventListener("abort", release, { once: true });
446
- let waited = false;
447
- try {
448
- while (true) {
449
- signal?.throwIfAborted();
450
- const { limit, tickets } = readQueue(deps, verified2, name3);
451
- const rank = tickets.indexOf(name3);
452
- if (rank < 0) {
453
- throw new Error(`[chromium-admission] ${label}: reservation disappeared`);
454
- }
455
- if (rank < limit) {
456
- process.stderr.write(
457
- `[chromium-admission] ${label}: admitted ${name3} after ${Date.now() - queuedAt}ms
458
- `
459
- );
460
- return release;
461
- }
462
- if (!waited) {
463
- const holders = tickets.slice(0, limit).map((t) => t.split("-")[0]);
464
- process.stderr.write(
465
- `[chromium-admission] ${label}: ${limit} chromium launches already run on this machine (pids ${holders.join(" ")}), queued ${rank - limit + 1}
466
- `
467
- );
468
- waited = true;
469
- }
470
- await new Promise((resolve12, reject) => {
471
- const abort = () => {
472
- clearTimeout(timer);
473
- signal?.removeEventListener("abort", abort);
474
- reject(
475
- new Error(`[chromium-admission] ${label}: cancelled`, {
476
- cause: signal?.reason
477
- })
478
- );
479
- };
480
- const timer = setTimeout(() => {
481
- signal?.removeEventListener("abort", abort);
482
- resolve12();
483
- }, 500);
484
- signal?.addEventListener("abort", abort, { once: true });
485
- if (signal?.aborted) abort();
486
- });
487
- }
488
- } catch (error) {
489
- release();
490
- throw error;
491
- } finally {
492
- signal?.removeEventListener("abort", release);
493
- }
494
- }
495
- var init_chromium_admission = __esm({
496
- "../../scripts/lib/chromium-admission.ts"() {
497
- "use strict";
498
- }
499
- });
500
-
501
- // ../../scripts/lib/launch-deadline.ts
502
- function heldPids() {
503
- try {
504
- const ledger = JSON.parse(
505
- (0, import_node_fs2.readFileSync)(LEDGER_PATH, "utf8")
506
- );
507
- return Object.values(ledger).flatMap((procs) => procs.map((proc) => proc.pid));
508
- } catch {
509
- return [];
510
- }
511
- }
512
- function holdsThisProcessTree(held) {
513
- const parents = /* @__PURE__ */ new Map();
514
- for (const line of (0, import_node_child_process2.execFileSync)("ps", ["-A", "-o", "pid=,ppid="], {
515
- encoding: "utf8"
516
- }).split("\n")) {
517
- const [pid, ppid] = line.trim().split(/\s+/).map(Number);
518
- if (pid && ppid !== void 0) parents.set(pid, ppid);
519
- }
520
- const ancestors = /* @__PURE__ */ new Set();
521
- for (let pid = process.pid, hops = 0; pid && hops < 64; hops++) {
522
- ancestors.add(pid);
523
- pid = parents.get(pid);
524
- }
525
- return held.some((start) => {
526
- if (ancestors.has(start)) return true;
527
- for (let pid = parents.get(start), hops = 0; pid && hops < 64; hops++) {
528
- if (pid === process.pid) return true;
529
- pid = parents.get(pid);
530
- }
531
- return false;
532
- });
533
- }
534
- function startLaunchDeadline(budgetMs, onExpire) {
535
- let remaining = budgetMs;
536
- let last = Date.now();
537
- const poll2 = setInterval(() => {
538
- const now = Date.now();
539
- const elapsed = Math.min(now - last, MAX_COUNTED_GAP_MS);
540
- last = now;
541
- const held = heldPids();
542
- if (held.length > 0 && holdsThisProcessTree(held)) return;
543
- remaining -= elapsed;
544
- if (remaining <= 0) {
545
- clearInterval(poll2);
546
- onExpire();
547
- }
548
- }, TICK_MS);
549
- return () => clearInterval(poll2);
550
- }
551
- var import_node_child_process2, import_node_fs2, os, path, LEDGER_PATH, TICK_MS, MAX_COUNTED_GAP_MS;
552
- var init_launch_deadline = __esm({
553
- "../../scripts/lib/launch-deadline.ts"() {
554
- "use strict";
555
- import_node_child_process2 = require("node:child_process");
556
- import_node_fs2 = require("node:fs");
557
- os = __toESM(require("node:os"), 1);
558
- path = __toESM(require("node:path"), 1);
559
- LEDGER_PATH = path.join(
560
- process.env.TM_HOME || path.join(os.homedir(), ".team-machine"),
561
- "governor-pauses.json"
562
- );
563
- TICK_MS = 500;
564
- MAX_COUNTED_GAP_MS = TICK_MS * 3;
565
- }
566
- });
567
-
568
- // ../../scripts/lib/reap-browser.ts
577
+ // src/reap-browser.ts
569
578
  function reserveChromiumAdmission(signal) {
570
579
  return acquireChromiumAdmission({
571
580
  fs,
@@ -637,7 +646,7 @@ function assertGpuBrowserCommand(command, runtime = currentRuntime()) {
637
646
  const dropped = lists.slice(0, -1).flat().filter((feature) => !kept.has(feature));
638
647
  if (dropped.length > 0) {
639
648
  throw new Error(
640
- `[reap-browser] Chrome keeps only its last ${name3.slice(0, -1)} switch, which dropped ${dropped.join(",")}; add them to the merged list in scripts/lib/reap-browser.ts`
649
+ `[reap-browser] Chrome keeps only its last ${name3.slice(0, -1)} switch, which dropped ${dropped.join(",")}; add them to the merged list in packages/peachsim/src/reap-browser.ts`
641
650
  );
642
651
  }
643
652
  }
@@ -1160,17 +1169,18 @@ async function launchReapedChrome(launch2, opts = {}, rendererTarget, policy = {
1160
1169
  }
1161
1170
  var childProcess, import_node_child_process3, import_node_crypto, fs, os2, path2, LINUX_CHROME_SCOPE_ENV, discoveredChromePids, discoveredChromeProcesses, reapPids, installed, signalShutdownClaimed, PLAYWRIGHT_DISABLED_FEATURES, PLAYWRIGHT_ENABLED_FEATURES, DISABLED_FEATURES, DEFAULT_LAUNCH_TIMEOUT_MS;
1162
1171
  var init_reap_browser = __esm({
1163
- "../../scripts/lib/reap-browser.ts"() {
1172
+ "src/reap-browser.ts"() {
1164
1173
  "use strict";
1174
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1165
1175
  childProcess = __toESM(require("node:child_process"), 1);
1166
1176
  import_node_child_process3 = require("node:child_process");
1167
1177
  import_node_crypto = require("node:crypto");
1168
1178
  fs = __toESM(require("node:fs"), 1);
1169
1179
  os2 = __toESM(require("node:os"), 1);
1170
1180
  path2 = __toESM(require("node:path"), 1);
1171
- init_process_group();
1172
1181
  init_chromium_admission();
1173
1182
  init_launch_deadline();
1183
+ init_process_group();
1174
1184
  LINUX_CHROME_SCOPE_ENV = {
1175
1185
  DBUS_SESSION_BUS_ADDRESS: "unix:path=/nonexistent/chrome-session-bus"
1176
1186
  };
@@ -1303,6 +1313,7 @@ function calculateFeatureCompatibility(features) {
1303
1313
  var init_capability_outcomes = __esm({
1304
1314
  "../peach-compat/src/capability-outcomes.ts"() {
1305
1315
  "use strict";
1316
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1306
1317
  }
1307
1318
  });
1308
1319
 
@@ -1311,6 +1322,7 @@ var LIGHT_NATIVE_PACKAGE_NAMES;
1311
1322
  var init_light_native_package_names = __esm({
1312
1323
  "../peach-compat/src/generated/light-native-package-names.ts"() {
1313
1324
  "use strict";
1325
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1314
1326
  LIGHT_NATIVE_PACKAGE_NAMES = [
1315
1327
  "@100mslive/react-native-hms",
1316
1328
  "@account-kit/react-native-signer",
@@ -2098,6 +2110,7 @@ var LIGHT, LIGHT_NATIVE_PACKAGE_NOTE;
2098
2110
  var init_light_native = __esm({
2099
2111
  "../peach-compat/src/light-native.ts"() {
2100
2112
  "use strict";
2113
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2101
2114
  init_light_native_package_names();
2102
2115
  LIGHT = new Set(LIGHT_NATIVE_PACKAGE_NAMES);
2103
2116
  LIGHT_NATIVE_PACKAGE_NOTE = "loads, native side inert, not validated against the real native build";
@@ -2109,6 +2122,7 @@ var UNKNOWN_RNX_SUPPORT;
2109
2122
  var init_native_evidence = __esm({
2110
2123
  "../peach-compat/src/native-evidence.ts"() {
2111
2124
  "use strict";
2125
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2112
2126
  init_capability_outcomes();
2113
2127
  UNKNOWN_RNX_SUPPORT = {
2114
2128
  level: "unknown",
@@ -2125,6 +2139,7 @@ var CAPABILITY_INVENTORY_PACKAGE_COVERAGE;
2125
2139
  var init_capability_inventory_coverage = __esm({
2126
2140
  "../peach-compat/src/generated/capability-inventory-coverage.ts"() {
2127
2141
  "use strict";
2142
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2128
2143
  CAPABILITY_INVENTORY_PACKAGE_COVERAGE = {
2129
2144
  "@react-native-async-storage/async-storage": {
2130
2145
  combined: {
@@ -3875,6 +3890,7 @@ var CAPABILITY_PACKAGE_OUTCOMES;
3875
3890
  var init_capability_outcomes2 = __esm({
3876
3891
  "../peach-compat/src/generated/capability-outcomes.ts"() {
3877
3892
  "use strict";
3893
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3878
3894
  CAPABILITY_PACKAGE_OUTCOMES = {
3879
3895
  "@react-native-async-storage/async-storage": {
3880
3896
  exactTestedVersion: "2.2.0",
@@ -4504,13 +4520,13 @@ var init_capability_outcomes2 = __esm({
4504
4520
  assessed: 0
4505
4521
  },
4506
4522
  ios: {
4507
- passedWeight: 3624,
4523
+ passedWeight: 3392,
4508
4524
  failedWeight: 0,
4509
- unassessedWeight: 1286,
4525
+ unassessedWeight: 1518,
4510
4526
  totalWeight: 4910,
4511
- assessedWeight: 3624,
4527
+ assessedWeight: 3392,
4512
4528
  compatibility: 1,
4513
- assessed: 0.7380855397148676
4529
+ assessed: 0.6908350305498981
4514
4530
  }
4515
4531
  },
4516
4532
  byWeighting: {
@@ -4525,13 +4541,13 @@ var init_capability_outcomes2 = __esm({
4525
4541
  assessed: 0
4526
4542
  },
4527
4543
  ios: {
4528
- passedWeight: 35,
4544
+ passedWeight: 34,
4529
4545
  failedWeight: 0,
4530
- unassessedWeight: 161,
4546
+ unassessedWeight: 162,
4531
4547
  totalWeight: 196,
4532
- assessedWeight: 35,
4548
+ assessedWeight: 34,
4533
4549
  compatibility: 1,
4534
- assessed: 0.17857142857142858
4550
+ assessed: 0.17346938775510204
4535
4551
  }
4536
4552
  },
4537
4553
  usage: {
@@ -4545,13 +4561,13 @@ var init_capability_outcomes2 = __esm({
4545
4561
  assessed: 0
4546
4562
  },
4547
4563
  ios: {
4548
- passedWeight: 3624,
4564
+ passedWeight: 3392,
4549
4565
  failedWeight: 0,
4550
- unassessedWeight: 1286,
4566
+ unassessedWeight: 1518,
4551
4567
  totalWeight: 4910,
4552
- assessedWeight: 3624,
4568
+ assessedWeight: 3392,
4553
4569
  compatibility: 1,
4554
- assessed: 0.7380855397148676
4570
+ assessed: 0.6908350305498981
4555
4571
  }
4556
4572
  }
4557
4573
  }
@@ -4905,6 +4921,7 @@ var REACT_NATIVE_ROOT_EXPORT_STRICT_COVERAGE;
4905
4921
  var init_react_native_root_export_coverage = __esm({
4906
4922
  "../peach-compat/src/generated/react-native-root-export-coverage.ts"() {
4907
4923
  "use strict";
4924
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
4908
4925
  REACT_NATIVE_ROOT_EXPORT_STRICT_COVERAGE = 0.769;
4909
4926
  }
4910
4927
  });
@@ -4914,6 +4931,7 @@ var REACT_NATIVE_WEBVIEW_STRICT_COVERAGE;
4914
4931
  var init_react_native_webview_coverage = __esm({
4915
4932
  "../peach-compat/src/generated/react-native-webview-coverage.ts"() {
4916
4933
  "use strict";
4934
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
4917
4935
  REACT_NATIVE_WEBVIEW_STRICT_COVERAGE = 0.223;
4918
4936
  }
4919
4937
  });
@@ -4923,6 +4941,7 @@ var SUPPORTED_NATIVE_PACKAGE_NAMES;
4923
4941
  var init_supported_native_packages = __esm({
4924
4942
  "../peach-compat/src/generated/supported-native-packages.ts"() {
4925
4943
  "use strict";
4944
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
4926
4945
  SUPPORTED_NATIVE_PACKAGE_NAMES = [
4927
4946
  "@adobe/react-native-aepcore",
4928
4947
  // coverage
@@ -6006,6 +6025,7 @@ var init_supported_native_packages = __esm({
6006
6025
  var init_slug = __esm({
6007
6026
  "../peach-compat/src/slug.ts"() {
6008
6027
  "use strict";
6028
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6009
6029
  }
6010
6030
  });
6011
6031
 
@@ -6019,6 +6039,7 @@ var UNSUPPORTED_NATIVE_PACKAGE_NOTE, UNSUPPORTED_NATIVE_PACKAGES, UNSUPPORTABLE,
6019
6039
  var init_unsupported_packages = __esm({
6020
6040
  "../peach-compat/src/unsupported-packages.ts"() {
6021
6041
  "use strict";
6042
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6022
6043
  init_supported_native_packages();
6023
6044
  init_slug();
6024
6045
  UNSUPPORTED_NATIVE_PACKAGE_NOTE = "requires native SDK";
@@ -6059,6 +6080,7 @@ var COMPAT_CATEGORIES, POLYFILL_REGISTRY_INPUT, POLYFILL_REGISTRY;
6059
6080
  var init_registry = __esm({
6060
6081
  "../peach-compat/src/registry.ts"() {
6061
6082
  "use strict";
6083
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6062
6084
  init_capability_outcomes();
6063
6085
  init_capability_inventory_coverage();
6064
6086
  init_capability_outcomes2();
@@ -19687,6 +19709,7 @@ var ANY_BOUNDS, COMPARATOR;
19687
19709
  var init_version_range = __esm({
19688
19710
  "../peach-compat/src/version-range.ts"() {
19689
19711
  "use strict";
19712
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
19690
19713
  ANY_BOUNDS = {
19691
19714
  lower: null,
19692
19715
  lowerInclusive: false,
@@ -19862,6 +19885,7 @@ var NON_RN_PACKAGES;
19862
19885
  var init_scan = __esm({
19863
19886
  "../peach-compat/src/scan.ts"() {
19864
19887
  "use strict";
19888
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
19865
19889
  init_capability_outcomes();
19866
19890
  init_light_native();
19867
19891
  init_native_evidence();
@@ -20014,6 +20038,7 @@ var COMPAT_RESULT_CAVEAT;
20014
20038
  var init_scan_summary = __esm({
20015
20039
  "../peach-compat/src/scan-summary.ts"() {
20016
20040
  "use strict";
20041
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20017
20042
  init_capability_outcomes();
20018
20043
  COMPAT_RESULT_CAVEAT = "Measured iOS results cover assessed API scenarios. Legacy contributions are estimates; unassessed usage remains unknown. App paths may exercise additional behavior.";
20019
20044
  }
@@ -20037,6 +20062,7 @@ __export(web_exports, {
20037
20062
  var init_web = __esm({
20038
20063
  "../peach-compat/src/web.ts"() {
20039
20064
  "use strict";
20065
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20040
20066
  init_scan();
20041
20067
  init_scan_summary();
20042
20068
  init_registry();
@@ -20050,6 +20076,7 @@ function sleep2(ms) {
20050
20076
  var init_sleep = __esm({
20051
20077
  "src/sleep.ts"() {
20052
20078
  "use strict";
20079
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20053
20080
  }
20054
20081
  });
20055
20082
 
@@ -20077,6 +20104,7 @@ function isNode(node) {
20077
20104
  var ALIAS, DOC, MAP, PAIR, SCALAR, SEQ, NODE_TYPE, isAlias, isDocument, isMap, isPair, isScalar, isSeq, hasAnchor;
20078
20105
  var init_identity = __esm({
20079
20106
  "../../node_modules/yaml/browser/dist/nodes/identity.js"() {
20107
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20080
20108
  ALIAS = Symbol.for("yaml.alias");
20081
20109
  DOC = Symbol.for("yaml.document");
20082
20110
  MAP = Symbol.for("yaml.map");
@@ -20237,6 +20265,7 @@ function replaceNode(key2, path62, node) {
20237
20265
  var BREAK, SKIP, REMOVE;
20238
20266
  var init_visit = __esm({
20239
20267
  "../../node_modules/yaml/browser/dist/visit.js"() {
20268
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20240
20269
  init_identity();
20241
20270
  BREAK = Symbol("break visit");
20242
20271
  SKIP = Symbol("skip children");
@@ -20254,6 +20283,7 @@ var init_visit = __esm({
20254
20283
  var escapeChars, escapeTagName, Directives;
20255
20284
  var init_directives = __esm({
20256
20285
  "../../node_modules/yaml/browser/dist/doc/directives.js"() {
20286
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20257
20287
  init_identity();
20258
20288
  init_visit();
20259
20289
  escapeChars = {
@@ -20480,6 +20510,7 @@ function createNodeAnchors(doc, prefix) {
20480
20510
  }
20481
20511
  var init_anchors = __esm({
20482
20512
  "../../node_modules/yaml/browser/dist/doc/anchors.js"() {
20513
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20483
20514
  init_identity();
20484
20515
  init_visit();
20485
20516
  }
@@ -20530,6 +20561,7 @@ function applyReviver(reviver, obj, key2, val) {
20530
20561
  }
20531
20562
  var init_applyReviver = __esm({
20532
20563
  "../../node_modules/yaml/browser/dist/doc/applyReviver.js"() {
20564
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20533
20565
  }
20534
20566
  });
20535
20567
 
@@ -20557,6 +20589,7 @@ function toJS(value, arg, ctx) {
20557
20589
  }
20558
20590
  var init_toJS = __esm({
20559
20591
  "../../node_modules/yaml/browser/dist/nodes/toJS.js"() {
20592
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20560
20593
  init_identity();
20561
20594
  }
20562
20595
  });
@@ -20565,6 +20598,7 @@ var init_toJS = __esm({
20565
20598
  var NodeBase;
20566
20599
  var init_Node = __esm({
20567
20600
  "../../node_modules/yaml/browser/dist/nodes/Node.js"() {
20601
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20568
20602
  init_applyReviver();
20569
20603
  init_identity();
20570
20604
  init_toJS();
@@ -20625,6 +20659,7 @@ function getAliasCount(doc, node, anchors) {
20625
20659
  var Alias;
20626
20660
  var init_Alias = __esm({
20627
20661
  "../../node_modules/yaml/browser/dist/nodes/Alias.js"() {
20662
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20628
20663
  init_anchors();
20629
20664
  init_visit();
20630
20665
  init_identity();
@@ -20720,6 +20755,7 @@ var init_Alias = __esm({
20720
20755
  var isScalarValue, Scalar;
20721
20756
  var init_Scalar = __esm({
20722
20757
  "../../node_modules/yaml/browser/dist/nodes/Scalar.js"() {
20758
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20723
20759
  init_identity();
20724
20760
  init_Node();
20725
20761
  init_toJS();
@@ -20811,6 +20847,7 @@ function createNode(value, tagName, ctx) {
20811
20847
  var defaultTagPrefix;
20812
20848
  var init_createNode = __esm({
20813
20849
  "../../node_modules/yaml/browser/dist/doc/createNode.js"() {
20850
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20814
20851
  init_Alias();
20815
20852
  init_identity();
20816
20853
  init_Scalar();
@@ -20844,6 +20881,7 @@ function collectionFromPath(schema4, path62, value) {
20844
20881
  var isEmptyPath, Collection;
20845
20882
  var init_Collection = __esm({
20846
20883
  "../../node_modules/yaml/browser/dist/nodes/Collection.js"() {
20884
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20847
20885
  init_createNode();
20848
20886
  init_identity();
20849
20887
  init_Node();
@@ -20967,6 +21005,7 @@ function indentComment(comment, indent) {
20967
21005
  var stringifyComment, lineComment;
20968
21006
  var init_stringifyComment = __esm({
20969
21007
  "../../node_modules/yaml/browser/dist/stringify/stringifyComment.js"() {
21008
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20970
21009
  stringifyComment = (str2) => str2.replace(/^(?!$)(?: $)?/gm, "#");
20971
21010
  lineComment = (str2, indent, comment) => str2.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str2.endsWith(" ") ? "" : " ") + comment;
20972
21011
  }
@@ -21098,6 +21137,7 @@ function consumeMoreIndentedLines(text5, i, indent) {
21098
21137
  var FOLD_FLOW, FOLD_BLOCK, FOLD_QUOTED;
21099
21138
  var init_foldFlowLines = __esm({
21100
21139
  "../../node_modules/yaml/browser/dist/stringify/foldFlowLines.js"() {
21140
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
21101
21141
  FOLD_FLOW = "flow";
21102
21142
  FOLD_BLOCK = "block";
21103
21143
  FOLD_QUOTED = "quoted";
@@ -21369,6 +21409,7 @@ function stringifyString(item, ctx, onComment, onChompKeep) {
21369
21409
  var getFoldOptions, containsDocumentMarker, blockEndNewlines;
21370
21410
  var init_stringifyString = __esm({
21371
21411
  "../../node_modules/yaml/browser/dist/stringify/stringifyString.js"() {
21412
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
21372
21413
  init_Scalar();
21373
21414
  init_foldFlowLines();
21374
21415
  getFoldOptions = (ctx, isBlock2) => ({
@@ -21499,6 +21540,7 @@ ${ctx.indent}${str2}`;
21499
21540
  }
21500
21541
  var init_stringify = __esm({
21501
21542
  "../../node_modules/yaml/browser/dist/stringify/stringify.js"() {
21543
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
21502
21544
  init_anchors();
21503
21545
  init_identity();
21504
21546
  init_stringifyComment();
@@ -21630,6 +21672,7 @@ ${ctx.indent}`;
21630
21672
  }
21631
21673
  var init_stringifyPair = __esm({
21632
21674
  "../../node_modules/yaml/browser/dist/stringify/stringifyPair.js"() {
21675
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
21633
21676
  init_identity();
21634
21677
  init_Scalar();
21635
21678
  init_stringify();
@@ -21645,6 +21688,7 @@ function warn(logLevel, warning) {
21645
21688
  }
21646
21689
  var init_log = __esm({
21647
21690
  "../../node_modules/yaml/browser/dist/log.js"() {
21691
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
21648
21692
  }
21649
21693
  });
21650
21694
 
@@ -21688,6 +21732,7 @@ function resolveAliasValue(ctx, value) {
21688
21732
  var MERGE_KEY, merge, isMergeKey;
21689
21733
  var init_merge = __esm({
21690
21734
  "../../node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js"() {
21735
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
21691
21736
  init_identity();
21692
21737
  init_Scalar();
21693
21738
  MERGE_KEY = "<<";
@@ -21759,6 +21804,7 @@ function stringifyKey(key2, jsKey, ctx) {
21759
21804
  }
21760
21805
  var init_addPairToJSMap = __esm({
21761
21806
  "../../node_modules/yaml/browser/dist/nodes/addPairToJSMap.js"() {
21807
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
21762
21808
  init_log();
21763
21809
  init_merge();
21764
21810
  init_stringify();
@@ -21776,6 +21822,7 @@ function createPair(key2, value, ctx) {
21776
21822
  var Pair;
21777
21823
  var init_Pair = __esm({
21778
21824
  "../../node_modules/yaml/browser/dist/nodes/Pair.js"() {
21825
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
21779
21826
  init_createNode();
21780
21827
  init_stringifyPair();
21781
21828
  init_addPairToJSMap();
@@ -21948,6 +21995,7 @@ function addCommentBefore({ indent, options: { commentString } }, lines, comment
21948
21995
  }
21949
21996
  var init_stringifyCollection = __esm({
21950
21997
  "../../node_modules/yaml/browser/dist/stringify/stringifyCollection.js"() {
21998
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
21951
21999
  init_identity();
21952
22000
  init_stringify();
21953
22001
  init_stringifyComment();
@@ -21970,6 +22018,7 @@ function findPair(items2, key2) {
21970
22018
  var YAMLMap;
21971
22019
  var init_YAMLMap = __esm({
21972
22020
  "../../node_modules/yaml/browser/dist/nodes/YAMLMap.js"() {
22021
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
21973
22022
  init_stringifyCollection();
21974
22023
  init_addPairToJSMap();
21975
22024
  init_Collection();
@@ -22100,6 +22149,7 @@ var init_YAMLMap = __esm({
22100
22149
  var map;
22101
22150
  var init_map = __esm({
22102
22151
  "../../node_modules/yaml/browser/dist/schema/common/map.js"() {
22152
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22103
22153
  init_identity();
22104
22154
  init_YAMLMap();
22105
22155
  map = {
@@ -22127,6 +22177,7 @@ function asItemIndex(key2) {
22127
22177
  var YAMLSeq;
22128
22178
  var init_YAMLSeq = __esm({
22129
22179
  "../../node_modules/yaml/browser/dist/nodes/YAMLSeq.js"() {
22180
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22130
22181
  init_createNode();
22131
22182
  init_stringifyCollection();
22132
22183
  init_Collection();
@@ -22236,6 +22287,7 @@ var init_YAMLSeq = __esm({
22236
22287
  var seq;
22237
22288
  var init_seq = __esm({
22238
22289
  "../../node_modules/yaml/browser/dist/schema/common/seq.js"() {
22290
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22239
22291
  init_identity();
22240
22292
  init_YAMLSeq();
22241
22293
  seq = {
@@ -22257,6 +22309,7 @@ var init_seq = __esm({
22257
22309
  var string;
22258
22310
  var init_string = __esm({
22259
22311
  "../../node_modules/yaml/browser/dist/schema/common/string.js"() {
22312
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22260
22313
  init_stringifyString();
22261
22314
  string = {
22262
22315
  identify: (value) => typeof value === "string",
@@ -22275,6 +22328,7 @@ var init_string = __esm({
22275
22328
  var nullTag;
22276
22329
  var init_null = __esm({
22277
22330
  "../../node_modules/yaml/browser/dist/schema/common/null.js"() {
22331
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22278
22332
  init_Scalar();
22279
22333
  nullTag = {
22280
22334
  identify: (value) => value == null,
@@ -22292,6 +22346,7 @@ var init_null = __esm({
22292
22346
  var boolTag;
22293
22347
  var init_bool = __esm({
22294
22348
  "../../node_modules/yaml/browser/dist/schema/core/bool.js"() {
22349
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22295
22350
  init_Scalar();
22296
22351
  boolTag = {
22297
22352
  identify: (value) => typeof value === "boolean",
@@ -22333,6 +22388,7 @@ function stringifyNumber({ format, minFractionDigits, tag, value }) {
22333
22388
  }
22334
22389
  var init_stringifyNumber = __esm({
22335
22390
  "../../node_modules/yaml/browser/dist/stringify/stringifyNumber.js"() {
22391
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22336
22392
  }
22337
22393
  });
22338
22394
 
@@ -22340,6 +22396,7 @@ var init_stringifyNumber = __esm({
22340
22396
  var floatNaN, floatExp, float;
22341
22397
  var init_float = __esm({
22342
22398
  "../../node_modules/yaml/browser/dist/schema/core/float.js"() {
22399
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22343
22400
  init_Scalar();
22344
22401
  init_stringifyNumber();
22345
22402
  floatNaN = {
@@ -22389,6 +22446,7 @@ function intStringify(node, radix, prefix) {
22389
22446
  var intIdentify, intResolve, intOct, int, intHex;
22390
22447
  var init_int = __esm({
22391
22448
  "../../node_modules/yaml/browser/dist/schema/core/int.js"() {
22449
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22392
22450
  init_stringifyNumber();
22393
22451
  intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
22394
22452
  intResolve = (str2, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str2) : parseInt(str2.substring(offset), radix);
@@ -22425,6 +22483,7 @@ var init_int = __esm({
22425
22483
  var schema;
22426
22484
  var init_schema = __esm({
22427
22485
  "../../node_modules/yaml/browser/dist/schema/core/schema.js"() {
22486
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22428
22487
  init_map();
22429
22488
  init_null();
22430
22489
  init_seq();
@@ -22455,6 +22514,7 @@ function intIdentify2(value) {
22455
22514
  var stringifyJSON, jsonScalars, jsonError, schema2;
22456
22515
  var init_schema2 = __esm({
22457
22516
  "../../node_modules/yaml/browser/dist/schema/json/schema.js"() {
22517
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22458
22518
  init_Scalar();
22459
22519
  init_map();
22460
22520
  init_seq();
@@ -22518,6 +22578,7 @@ var init_schema2 = __esm({
22518
22578
  var binary;
22519
22579
  var init_binary = __esm({
22520
22580
  "../../node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js"() {
22581
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22521
22582
  init_Scalar();
22522
22583
  init_stringifyString();
22523
22584
  binary = {
@@ -22635,6 +22696,7 @@ function createPairs(schema4, iterable, ctx) {
22635
22696
  var pairs;
22636
22697
  var init_pairs = __esm({
22637
22698
  "../../node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js"() {
22699
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22638
22700
  init_identity();
22639
22701
  init_Pair();
22640
22702
  init_Scalar();
@@ -22653,6 +22715,7 @@ var init_pairs = __esm({
22653
22715
  var YAMLOMap, omap;
22654
22716
  var init_omap = __esm({
22655
22717
  "../../node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js"() {
22718
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22656
22719
  init_identity();
22657
22720
  init_toJS();
22658
22721
  init_YAMLMap();
@@ -22735,6 +22798,7 @@ function boolStringify({ value, source }, ctx) {
22735
22798
  var trueTag, falseTag;
22736
22799
  var init_bool2 = __esm({
22737
22800
  "../../node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js"() {
22801
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22738
22802
  init_Scalar();
22739
22803
  trueTag = {
22740
22804
  identify: (value) => value === true,
@@ -22759,6 +22823,7 @@ var init_bool2 = __esm({
22759
22823
  var floatNaN2, floatExp2, float2;
22760
22824
  var init_float2 = __esm({
22761
22825
  "../../node_modules/yaml/browser/dist/schema/yaml-1.1/float.js"() {
22826
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22762
22827
  init_Scalar();
22763
22828
  init_stringifyNumber();
22764
22829
  floatNaN2 = {
@@ -22836,6 +22901,7 @@ function intStringify2(node, radix, prefix) {
22836
22901
  var intIdentify3, intBin, intOct2, int2, intHex2;
22837
22902
  var init_int2 = __esm({
22838
22903
  "../../node_modules/yaml/browser/dist/schema/yaml-1.1/int.js"() {
22904
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22839
22905
  init_stringifyNumber();
22840
22906
  intIdentify3 = (value) => typeof value === "bigint" || Number.isInteger(value);
22841
22907
  intBin = {
@@ -22880,6 +22946,7 @@ var init_int2 = __esm({
22880
22946
  var YAMLSet, set;
22881
22947
  var init_set = __esm({
22882
22948
  "../../node_modules/yaml/browser/dist/schema/yaml-1.1/set.js"() {
22949
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
22883
22950
  init_identity();
22884
22951
  init_Pair();
22885
22952
  init_YAMLMap();
@@ -23000,6 +23067,7 @@ function stringifySexagesimal(node) {
23000
23067
  var intTime, floatTime, timestamp;
23001
23068
  var init_timestamp = __esm({
23002
23069
  "../../node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js"() {
23070
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
23003
23071
  init_stringifyNumber();
23004
23072
  intTime = {
23005
23073
  identify: (value) => typeof value === "bigint" || Number.isInteger(value),
@@ -23052,6 +23120,7 @@ var init_timestamp = __esm({
23052
23120
  var schema3;
23053
23121
  var init_schema3 = __esm({
23054
23122
  "../../node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js"() {
23123
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
23055
23124
  init_map();
23056
23125
  init_null();
23057
23126
  init_seq();
@@ -23129,6 +23198,7 @@ function getTags(customTags, schemaName, addMergeTag) {
23129
23198
  var schemas, tagsByName, coreKnownTags;
23130
23199
  var init_tags = __esm({
23131
23200
  "../../node_modules/yaml/browser/dist/schema/tags.js"() {
23201
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
23132
23202
  init_map();
23133
23203
  init_null();
23134
23204
  init_seq();
@@ -23187,6 +23257,7 @@ var init_tags = __esm({
23187
23257
  var sortMapEntriesByKey, Schema;
23188
23258
  var init_Schema = __esm({
23189
23259
  "../../node_modules/yaml/browser/dist/schema/Schema.js"() {
23260
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
23190
23261
  init_identity();
23191
23262
  init_map();
23192
23263
  init_seq();
@@ -23286,6 +23357,7 @@ function stringifyDocument(doc, options) {
23286
23357
  }
23287
23358
  var init_stringifyDocument = __esm({
23288
23359
  "../../node_modules/yaml/browser/dist/stringify/stringifyDocument.js"() {
23360
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
23289
23361
  init_identity();
23290
23362
  init_stringify();
23291
23363
  init_stringifyComment();
@@ -23301,6 +23373,7 @@ function assertCollection(contents) {
23301
23373
  var Document;
23302
23374
  var init_Document = __esm({
23303
23375
  "../../node_modules/yaml/browser/dist/doc/Document.js"() {
23376
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
23304
23377
  init_Alias();
23305
23378
  init_Collection();
23306
23379
  init_identity();
@@ -23604,6 +23677,7 @@ var init_Document = __esm({
23604
23677
  var YAMLError, YAMLParseError, YAMLWarning, prettifyError;
23605
23678
  var init_errors = __esm({
23606
23679
  "../../node_modules/yaml/browser/dist/errors.js"() {
23680
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
23607
23681
  YAMLError = class extends Error {
23608
23682
  constructor(name3, pos, code, message) {
23609
23683
  super();
@@ -23790,6 +23864,7 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIn
23790
23864
  }
23791
23865
  var init_resolve_props = __esm({
23792
23866
  "../../node_modules/yaml/browser/dist/compose/resolve-props.js"() {
23867
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
23793
23868
  }
23794
23869
  });
23795
23870
 
@@ -23830,6 +23905,7 @@ function containsNewline(key2) {
23830
23905
  }
23831
23906
  var init_util_contains_newline = __esm({
23832
23907
  "../../node_modules/yaml/browser/dist/compose/util-contains-newline.js"() {
23908
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
23833
23909
  }
23834
23910
  });
23835
23911
 
@@ -23845,6 +23921,7 @@ function flowIndentCheck(indent, fc, onError) {
23845
23921
  }
23846
23922
  var init_util_flow_indent_check = __esm({
23847
23923
  "../../node_modules/yaml/browser/dist/compose/util-flow-indent-check.js"() {
23924
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
23848
23925
  init_util_contains_newline();
23849
23926
  }
23850
23927
  });
@@ -23859,6 +23936,7 @@ function mapIncludes(ctx, items2, search) {
23859
23936
  }
23860
23937
  var init_util_map_includes = __esm({
23861
23938
  "../../node_modules/yaml/browser/dist/compose/util-map-includes.js"() {
23939
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
23862
23940
  init_identity();
23863
23941
  }
23864
23942
  });
@@ -23960,6 +24038,7 @@ function resolveBlockMap({ composeNode: composeNode2, composeEmptyNode: composeE
23960
24038
  var startColMsg;
23961
24039
  var init_resolve_block_map = __esm({
23962
24040
  "../../node_modules/yaml/browser/dist/compose/resolve-block-map.js"() {
24041
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
23963
24042
  init_Pair();
23964
24043
  init_YAMLMap();
23965
24044
  init_resolve_props();
@@ -24013,6 +24092,7 @@ function resolveBlockSeq({ composeNode: composeNode2, composeEmptyNode: composeE
24013
24092
  }
24014
24093
  var init_resolve_block_seq = __esm({
24015
24094
  "../../node_modules/yaml/browser/dist/compose/resolve-block-seq.js"() {
24095
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
24016
24096
  init_YAMLSeq();
24017
24097
  init_resolve_props();
24018
24098
  init_util_flow_indent_check();
@@ -24057,6 +24137,7 @@ function resolveEnd(end, offset, reqSpace, onError) {
24057
24137
  }
24058
24138
  var init_resolve_end = __esm({
24059
24139
  "../../node_modules/yaml/browser/dist/compose/resolve-end.js"() {
24140
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
24060
24141
  }
24061
24142
  });
24062
24143
 
@@ -24240,6 +24321,7 @@ function resolveFlowCollection({ composeNode: composeNode2, composeEmptyNode: co
24240
24321
  var blockMsg, isBlock;
24241
24322
  var init_resolve_flow_collection = __esm({
24242
24323
  "../../node_modules/yaml/browser/dist/compose/resolve-flow-collection.js"() {
24324
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
24243
24325
  init_identity();
24244
24326
  init_Pair();
24245
24327
  init_YAMLMap();
@@ -24306,6 +24388,7 @@ function composeCollection(CN2, ctx, token, props, onError) {
24306
24388
  }
24307
24389
  var init_compose_collection = __esm({
24308
24390
  "../../node_modules/yaml/browser/dist/compose/compose-collection.js"() {
24391
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
24309
24392
  init_identity();
24310
24393
  init_Scalar();
24311
24394
  init_YAMLMap();
@@ -24493,6 +24576,7 @@ function splitLines(source) {
24493
24576
  }
24494
24577
  var init_resolve_block_scalar = __esm({
24495
24578
  "../../node_modules/yaml/browser/dist/compose/resolve-block-scalar.js"() {
24579
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
24496
24580
  init_Scalar();
24497
24581
  }
24498
24582
  });
@@ -24678,6 +24762,7 @@ function parseCharCode(source, offset, length, onError) {
24678
24762
  var escapeCodes;
24679
24763
  var init_resolve_flow_scalar = __esm({
24680
24764
  "../../node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js"() {
24765
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
24681
24766
  init_Scalar();
24682
24767
  init_resolve_end();
24683
24768
  escapeCodes = {
@@ -24788,6 +24873,7 @@ function findScalarTagByTest({ atKey, directives, schema: schema4 }, value, toke
24788
24873
  }
24789
24874
  var init_compose_scalar = __esm({
24790
24875
  "../../node_modules/yaml/browser/dist/compose/compose-scalar.js"() {
24876
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
24791
24877
  init_identity();
24792
24878
  init_Scalar();
24793
24879
  init_resolve_block_scalar();
@@ -24820,6 +24906,7 @@ function emptyScalarPosition(offset, before, pos) {
24820
24906
  }
24821
24907
  var init_util_empty_scalar_position = __esm({
24822
24908
  "../../node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js"() {
24909
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
24823
24910
  }
24824
24911
  });
24825
24912
 
@@ -24917,6 +25004,7 @@ function composeAlias({ options }, { offset, source, end }, onError) {
24917
25004
  var CN;
24918
25005
  var init_compose_node = __esm({
24919
25006
  "../../node_modules/yaml/browser/dist/compose/compose-node.js"() {
25007
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
24920
25008
  init_Alias();
24921
25009
  init_identity();
24922
25010
  init_compose_collection();
@@ -24961,6 +25049,7 @@ function composeDoc(options, directives, { offset, start, value, end }, onError)
24961
25049
  }
24962
25050
  var init_compose_doc = __esm({
24963
25051
  "../../node_modules/yaml/browser/dist/compose/compose-doc.js"() {
25052
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
24964
25053
  init_Document();
24965
25054
  init_compose_node();
24966
25055
  init_resolve_end();
@@ -25005,6 +25094,7 @@ function parsePrelude(prelude) {
25005
25094
  var Composer;
25006
25095
  var init_composer = __esm({
25007
25096
  "../../node_modules/yaml/browser/dist/compose/composer.js"() {
25097
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
25008
25098
  init_directives();
25009
25099
  init_Document();
25010
25100
  init_errors();
@@ -25346,6 +25436,7 @@ function setFlowScalarValue(token, source, type) {
25346
25436
  }
25347
25437
  var init_cst_scalar = __esm({
25348
25438
  "../../node_modules/yaml/browser/dist/parse/cst-scalar.js"() {
25439
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
25349
25440
  init_resolve_block_scalar();
25350
25441
  init_resolve_flow_scalar();
25351
25442
  init_errors();
@@ -25409,6 +25500,7 @@ function stringifyItem({ start, key: key2, sep: sep3, value }) {
25409
25500
  var stringify2;
25410
25501
  var init_cst_stringify = __esm({
25411
25502
  "../../node_modules/yaml/browser/dist/parse/cst-stringify.js"() {
25503
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
25412
25504
  stringify2 = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
25413
25505
  }
25414
25506
  });
@@ -25446,6 +25538,7 @@ function _visit(path62, item, visitor) {
25446
25538
  var BREAK2, SKIP2, REMOVE2;
25447
25539
  var init_cst_visit = __esm({
25448
25540
  "../../node_modules/yaml/browser/dist/parse/cst-visit.js"() {
25541
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
25449
25542
  BREAK2 = Symbol("break visit");
25450
25543
  SKIP2 = Symbol("skip children");
25451
25544
  REMOVE2 = Symbol("remove item");
@@ -25567,6 +25660,7 @@ function tokenType(source) {
25567
25660
  var BOM, DOCUMENT, FLOW_END, SCALAR2, isCollection2, isScalar2;
25568
25661
  var init_cst = __esm({
25569
25662
  "../../node_modules/yaml/browser/dist/parse/cst.js"() {
25663
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
25570
25664
  init_cst_scalar();
25571
25665
  init_cst_stringify();
25572
25666
  init_cst_visit();
@@ -25595,6 +25689,7 @@ function isEmpty(ch) {
25595
25689
  var hexDigits, tagChars, flowIndicatorChars, invalidAnchorChars, isNotAnchorChar, Lexer;
25596
25690
  var init_lexer = __esm({
25597
25691
  "../../node_modules/yaml/browser/dist/parse/lexer.js"() {
25692
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
25598
25693
  init_cst();
25599
25694
  hexDigits = new Set("0123456789ABCDEFabcdef");
25600
25695
  tagChars = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
@@ -26171,6 +26266,7 @@ var init_lexer = __esm({
26171
26266
  var LineCounter;
26172
26267
  var init_line_counter = __esm({
26173
26268
  "../../node_modules/yaml/browser/dist/parse/line-counter.js"() {
26269
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
26174
26270
  LineCounter = class {
26175
26271
  constructor() {
26176
26272
  this.lineStarts = [];
@@ -26291,6 +26387,7 @@ function fixFlowSeqItems(fc) {
26291
26387
  var Parser;
26292
26388
  var init_parser = __esm({
26293
26389
  "../../node_modules/yaml/browser/dist/parse/parser.js"() {
26390
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
26294
26391
  init_cst();
26295
26392
  init_lexer();
26296
26393
  Parser = class {
@@ -27149,6 +27246,7 @@ function stringify3(value, replacer, options) {
27149
27246
  }
27150
27247
  var init_public_api = __esm({
27151
27248
  "../../node_modules/yaml/browser/dist/public-api.js"() {
27249
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
27152
27250
  init_composer();
27153
27251
  init_Document();
27154
27252
  init_errors();
@@ -27194,6 +27292,7 @@ __export(dist_exports, {
27194
27292
  });
27195
27293
  var init_dist = __esm({
27196
27294
  "../../node_modules/yaml/browser/dist/index.js"() {
27295
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
27197
27296
  init_composer();
27198
27297
  init_Document();
27199
27298
  init_Schema();
@@ -27217,6 +27316,7 @@ var init_dist = __esm({
27217
27316
  var browser_default;
27218
27317
  var init_browser = __esm({
27219
27318
  "../../node_modules/yaml/browser/index.js"() {
27319
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
27220
27320
  init_dist();
27221
27321
  init_dist();
27222
27322
  browser_default = dist_exports;
@@ -27313,6 +27413,7 @@ var fs2, MAESTRO_YAML_OPTIONS, INTERACTION_KEYS;
27313
27413
  var init_flow_file = __esm({
27314
27414
  "cli/flow-file.ts"() {
27315
27415
  "use strict";
27416
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
27316
27417
  fs2 = __toESM(require("fs"), 1);
27317
27418
  init_browser();
27318
27419
  MAESTRO_YAML_OPTIONS = { schema: "yaml-1.1" };
@@ -27340,6 +27441,7 @@ var PEACH_SIMULATOR_PATH, PEACH_SIMULATOR_SHELL_FILE, SIMULATOR_DOCUMENT_PATH;
27340
27441
  var init_simulator_route = __esm({
27341
27442
  "src/simulator-route.ts"() {
27342
27443
  "use strict";
27444
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
27343
27445
  PEACH_SIMULATOR_PATH = "/simulator";
27344
27446
  PEACH_SIMULATOR_SHELL_FILE = "/sootsim/index.html";
27345
27447
  SIMULATOR_DOCUMENT_PATH = new RegExp(
@@ -27479,6 +27581,7 @@ var DEFAULT_SOOTSIM_BRIDGE_PORT, DEFAULT_SOOTSIM_BRIDGE_URL, HOSTED_SHELL_PATH,
27479
27581
  var init_bridge_constants = __esm({
27480
27582
  "src/bridge-constants.ts"() {
27481
27583
  "use strict";
27584
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
27482
27585
  init_simulator_route();
27483
27586
  DEFAULT_SOOTSIM_BRIDGE_PORT = 7668;
27484
27587
  DEFAULT_SOOTSIM_BRIDGE_URL = `http://localhost:${DEFAULT_SOOTSIM_BRIDGE_PORT}/`;
@@ -28082,6 +28185,7 @@ var import_node_crypto2, import_node_fs3, import_node_os2, import_node_path2, PE
28082
28185
  var init_home_paths = __esm({
28083
28186
  "src/home-paths.ts"() {
28084
28187
  "use strict";
28188
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28085
28189
  import_node_crypto2 = require("node:crypto");
28086
28190
  import_node_fs3 = __toESM(require("node:fs"), 1);
28087
28191
  import_node_os2 = require("node:os");
@@ -28109,6 +28213,7 @@ var import_node_fs4, import_node_path3;
28109
28213
  var init_automatic_update_policy = __esm({
28110
28214
  "src/automatic-update-policy.ts"() {
28111
28215
  "use strict";
28216
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28112
28217
  import_node_fs4 = require("node:fs");
28113
28218
  import_node_path3 = require("node:path");
28114
28219
  init_home_paths();
@@ -28138,6 +28243,7 @@ var SEMANTIC_READY_CONTENT_NODE_FLOOR, HEADLESS_TENANT_FETCH_HUNG_MARKER, WRITE_
28138
28243
  var init_bridge_contract = __esm({
28139
28244
  "src/bridge-contract.ts"() {
28140
28245
  "use strict";
28246
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28141
28247
  SEMANTIC_READY_CONTENT_NODE_FLOOR = 100;
28142
28248
  HEADLESS_TENANT_FETCH_HUNG_MARKER = "headless tenant fetch hung";
28143
28249
  WRITE_COMMAND_TYPES = /* @__PURE__ */ new Set([
@@ -28156,6 +28262,7 @@ var name, peachPublicBrand, rnxPublicBrand;
28156
28262
  var init_public_brand = __esm({
28157
28263
  "src/public-brand.ts"() {
28158
28264
  "use strict";
28265
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28159
28266
  name = "Peach";
28160
28267
  peachPublicBrand = Object.freeze({
28161
28268
  name,
@@ -28197,6 +28304,7 @@ var import_node_fs5, import_node_url, import_meta, cached;
28197
28304
  var init_cli_version = __esm({
28198
28305
  "src/cli-version.ts"() {
28199
28306
  "use strict";
28307
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28200
28308
  import_node_fs5 = require("node:fs");
28201
28309
  import_node_url = require("node:url");
28202
28310
  init_public_brand();
@@ -28212,6 +28320,7 @@ function isValidRuntimeVersion(value) {
28212
28320
  var init_version = __esm({
28213
28321
  "../contrast-runtime-delivery/src/version.ts"() {
28214
28322
  "use strict";
28323
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28215
28324
  }
28216
28325
  });
28217
28326
 
@@ -28251,6 +28360,7 @@ var import_node_fs6, import_node_path4;
28251
28360
  var init_product = __esm({
28252
28361
  "../contrast-runtime-delivery/src/product.ts"() {
28253
28362
  "use strict";
28363
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28254
28364
  import_node_fs6 = __toESM(require("node:fs"), 1);
28255
28365
  import_node_path4 = __toESM(require("node:path"), 1);
28256
28366
  init_version();
@@ -28697,6 +28807,7 @@ var import_node_child_process4, import_node_crypto3, import_node_fs7, import_nod
28697
28807
  var init_src = __esm({
28698
28808
  "../contrast-runtime-delivery/src/index.ts"() {
28699
28809
  "use strict";
28810
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28700
28811
  import_node_child_process4 = require("node:child_process");
28701
28812
  import_node_crypto3 = __toESM(require("node:crypto"), 1);
28702
28813
  import_node_fs7 = __toESM(require("node:fs"), 1);
@@ -28917,6 +29028,7 @@ var import_node_child_process5, import_node_crypto4, import_node_fs8, import_nod
28917
29028
  var init_desktop_host_delivery = __esm({
28918
29029
  "src/desktop-host-delivery.ts"() {
28919
29030
  "use strict";
29031
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28920
29032
  import_node_child_process5 = require("node:child_process");
28921
29033
  import_node_crypto4 = require("node:crypto");
28922
29034
  import_node_fs8 = __toESM(require("node:fs"), 1);
@@ -28938,6 +29050,7 @@ var RNX_INTERNAL_COMMAND, RNX_FORKED_SCRIPT_ENV, RNX_INTERNAL_CHILDREN;
28938
29050
  var init_internal_child = __esm({
28939
29051
  "cli/internal-child.ts"() {
28940
29052
  "use strict";
29053
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28941
29054
  RNX_INTERNAL_COMMAND = "__internal";
28942
29055
  RNX_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
28943
29056
  RNX_INTERNAL_CHILDREN = {
@@ -29004,6 +29117,7 @@ var DEFAULT_CONTRAST_BACKEND_ORIGIN, LOOPBACK_PROBE_HOSTNAMES, PEACHSIM_NATIVE_H
29004
29117
  var init_backend_origin = __esm({
29005
29118
  "src/backend-origin.ts"() {
29006
29119
  "use strict";
29120
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
29007
29121
  DEFAULT_CONTRAST_BACKEND_ORIGIN = "https://peachsim.com";
29008
29122
  LOOPBACK_PROBE_HOSTNAMES = ["127.0.0.1", "::1"];
29009
29123
  PEACHSIM_NATIVE_HOST = "native.peachsim.com";
@@ -29038,6 +29152,7 @@ var import_node_child_process6;
29038
29152
  var init_admitted_mac_build = __esm({
29039
29153
  "src/admitted-mac-build.ts"() {
29040
29154
  "use strict";
29155
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
29041
29156
  import_node_child_process6 = require("node:child_process");
29042
29157
  }
29043
29158
  });
@@ -29049,6 +29164,7 @@ function isRecord(value) {
29049
29164
  var init_is_record = __esm({
29050
29165
  "src/is-record.ts"() {
29051
29166
  "use strict";
29167
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
29052
29168
  }
29053
29169
  });
29054
29170
 
@@ -29066,6 +29182,7 @@ var import_node_fs9, import_node_path7;
29066
29182
  var init_swift_objc_sdk_tree = __esm({
29067
29183
  "src/swift-objc-sdk-tree.ts"() {
29068
29184
  "use strict";
29185
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
29069
29186
  import_node_fs9 = require("node:fs");
29070
29187
  import_node_path7 = __toESM(require("node:path"), 1);
29071
29188
  }
@@ -29075,6 +29192,7 @@ var init_swift_objc_sdk_tree = __esm({
29075
29192
  var init_swift_compiler_digest = __esm({
29076
29193
  "src/swift-compiler-digest.ts"() {
29077
29194
  "use strict";
29195
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
29078
29196
  init_swift_objc_sdk_tree();
29079
29197
  }
29080
29198
  });
@@ -29482,6 +29600,7 @@ var IDENT, ESCAPES, OPENERS, CALLS, HEADER, EXCERPT, MARKER;
29482
29600
  var init_swift_design_time = __esm({
29483
29601
  "src/swift-design-time.ts"() {
29484
29602
  "use strict";
29603
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
29485
29604
  IDENT = /[A-Za-z_À-￿$0-9]/;
29486
29605
  ESCAPES = {
29487
29606
  "0": "\0",
@@ -29573,6 +29692,7 @@ var SWIFT_DISTRIBUTION_MANIFEST, SWIFT_DISTRIBUTION_HOSTS, isStrings;
29573
29692
  var init_swift_distribution_contract = __esm({
29574
29693
  "src/swift-distribution-contract.ts"() {
29575
29694
  "use strict";
29695
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
29576
29696
  init_is_record();
29577
29697
  SWIFT_DISTRIBUTION_MANIFEST = "distribution.json";
29578
29698
  SWIFT_DISTRIBUTION_HOSTS = [
@@ -29596,7 +29716,17 @@ function sourceSwiftCheckout() {
29596
29716
  }
29597
29717
  function swiftSdkOptions() {
29598
29718
  const directory = process.env.PEACH_SWIFT_SDKS_PATH;
29599
- return directory ? ["--swift-sdks-path", import_node_path8.default.resolve(directory)] : [];
29719
+ if (directory) return ["--swift-sdks-path", import_node_path8.default.resolve(directory)];
29720
+ if (scratch && process.platform === "linux") {
29721
+ const config = process.env.XDG_CONFIG_HOME;
29722
+ if (config !== void 0 && !import_node_path8.default.isAbsolute(config))
29723
+ throw new Error("XDG_CONFIG_HOME must be an absolute path");
29724
+ return [
29725
+ "--swift-sdks-path",
29726
+ config === void 0 ? import_node_path8.default.join(import_node_os5.default.userInfo().homedir, ".swiftpm", "swift-sdks") : import_node_path8.default.join(config, "swiftpm", "swift-sdks")
29727
+ ];
29728
+ }
29729
+ return [];
29600
29730
  }
29601
29731
  function swiftHostCompilerArchive(release, host2 = `${process.platform}-${process.arch}`) {
29602
29732
  if (release !== SWIFT_HOST_COMPILER_RELEASE)
@@ -29648,47 +29778,13 @@ function confineSwiftScratch(root) {
29648
29778
  }
29649
29779
  const dir = import_node_path8.default.join(root, String(process.pid));
29650
29780
  import_node_fs10.default.mkdirSync(dir, { recursive: true });
29651
- scratch = dir;
29652
- if (process.platform === "linux") {
29653
- swiftHome = import_node_path8.default.join(root, "home");
29654
- import_node_fs10.default.mkdirSync(swiftHome, { recursive: true });
29655
- }
29656
- const seeded = import_node_path8.default.join(import_node_os5.default.homedir(), ".swiftpm");
29657
- const dirAbsentBefore = lstatIfKnown(seeded) === null;
29658
- const absentBefore = swiftpmSeeds.filter(
29659
- (name3) => lstatIfKnown(import_node_path8.default.join(seeded, name3)) === null
29660
- );
29781
+ const home = import_node_path8.default.join(root, "home");
29782
+ import_node_fs10.default.mkdirSync(home, { recursive: true });
29783
+ scratch = { directory: dir, home };
29661
29784
  process.once("exit", () => {
29662
29785
  import_node_fs10.default.rmSync(dir, { recursive: true, force: true });
29663
- for (const name3 of absentBefore) removeSwiftpmSeed(import_node_path8.default.join(seeded, name3), name3);
29664
- if (dirAbsentBefore && lstatIfKnown(seeded)?.isDirectory())
29665
- try {
29666
- import_node_fs10.default.rmdirSync(seeded);
29667
- } catch {
29668
- }
29669
29786
  });
29670
29787
  }
29671
- function lstatIfKnown(entry) {
29672
- try {
29673
- return import_node_fs10.default.lstatSync(entry);
29674
- } catch (error) {
29675
- if (error instanceof Error && "code" in error && error.code === "ENOENT") return null;
29676
- return void 0;
29677
- }
29678
- }
29679
- function removeSwiftpmSeed(entry, name3) {
29680
- const stat2 = lstatIfKnown(entry);
29681
- if (!stat2) return;
29682
- try {
29683
- if (name3 === "cache") {
29684
- if (stat2.isSymbolicLink() && import_node_fs10.default.readlinkSync(entry).endsWith("/.cache/org.swift.swiftpm"))
29685
- import_node_fs10.default.unlinkSync(entry);
29686
- } else if (stat2.isDirectory()) {
29687
- import_node_fs10.default.rmdirSync(entry);
29688
- }
29689
- } catch {
29690
- }
29691
- }
29692
29788
  function processRuns(pid) {
29693
29789
  try {
29694
29790
  process.kill(pid, 0);
@@ -29699,7 +29795,14 @@ function processRuns(pid) {
29699
29795
  }
29700
29796
  function swiftEnvironment(base = process.env) {
29701
29797
  if (!scratch) return base;
29702
- return swiftHome ? { ...base, TMPDIR: scratch, HOME: swiftHome } : { ...base, TMPDIR: scratch };
29798
+ return {
29799
+ ...base,
29800
+ TMPDIR: scratch.directory,
29801
+ XDG_CONFIG_HOME: import_node_path8.default.join(scratch.home, ".config"),
29802
+ XDG_CACHE_HOME: import_node_path8.default.join(scratch.home, ".cache"),
29803
+ XDG_DATA_HOME: import_node_path8.default.join(scratch.home, ".local", "share"),
29804
+ ...process.platform === "linux" ? { HOME: scratch.home } : {}
29805
+ };
29703
29806
  }
29704
29807
  function swiftSourceSdk(root) {
29705
29808
  const pin = JSON.parse(
@@ -29819,7 +29922,7 @@ function verifySwiftSdk(swift, sdk) {
29819
29922
  function installSwiftSdkArchive(swift, sdk, archive) {
29820
29923
  validateSwiftSdkIdentity(sdk);
29821
29924
  const staging = import_node_fs10.default.realpathSync(
29822
- import_node_fs10.default.mkdtempSync(import_node_path8.default.join(scratch ?? import_node_os5.default.tmpdir(), "peach-sdk-verification-"))
29925
+ import_node_fs10.default.mkdtempSync(import_node_path8.default.join(scratch?.directory ?? import_node_os5.default.tmpdir(), "peach-sdk-verification-"))
29823
29926
  );
29824
29927
  try {
29825
29928
  if (swiftFileChecksum(archive) !== sdk.wasmSdkChecksum)
@@ -29895,7 +29998,7 @@ function installSwiftWasmSdk(release, sdk) {
29895
29998
  } catch {
29896
29999
  }
29897
30000
  const swift = import_node_path8.default.join(swiftCompiler(release), "swift");
29898
- const staging = import_node_fs10.default.mkdtempSync(import_node_path8.default.join(scratch ?? import_node_os5.default.tmpdir(), "builder-swift-sdk-"));
30001
+ const staging = import_node_fs10.default.mkdtempSync(import_node_path8.default.join(scratch?.directory ?? import_node_os5.default.tmpdir(), "builder-swift-sdk-"));
29899
30002
  const archive = import_node_path8.default.join(staging, "sdk.artifactbundle.tar.gz");
29900
30003
  try {
29901
30004
  if (sdk.wasmSdkUrl.startsWith("file:"))
@@ -30016,10 +30119,11 @@ function swiftCompilerInstall(release) {
30016
30119
  ]
30017
30120
  };
30018
30121
  }
30019
- var import_node_child_process7, import_node_crypto5, import_node_fs10, import_node_os5, import_node_path8, import_node_url2, SWIFT_HOST_COMPILER_RELEASE, SWIFT_HOST_COMPILER_ID, compilerArchives, scratch, swiftHome, swiftpmSeeds, sdkFileHashes, verifiedCompilers;
30122
+ var import_node_child_process7, import_node_crypto5, import_node_fs10, import_node_os5, import_node_path8, import_node_url2, SWIFT_HOST_COMPILER_RELEASE, SWIFT_HOST_COMPILER_ID, compilerArchives, scratch, sdkFileHashes, verifiedCompilers;
30020
30123
  var init_swift_toolchain = __esm({
30021
30124
  "src/swift-toolchain.ts"() {
30022
30125
  "use strict";
30126
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
30023
30127
  import_node_child_process7 = require("node:child_process");
30024
30128
  import_node_crypto5 = require("node:crypto");
30025
30129
  import_node_fs10 = __toESM(require("node:fs"), 1);
@@ -30042,7 +30146,6 @@ var init_swift_toolchain = __esm({
30042
30146
  manifest: "fe07a29d4f4374cad47b29de70e90aa2e3b7664e08c8b53d304585e65637da24"
30043
30147
  }
30044
30148
  };
30045
- swiftpmSeeds = ["cache", "configuration", "security"];
30046
30149
  sdkFileHashes = /* @__PURE__ */ new Map();
30047
30150
  verifiedCompilers = /* @__PURE__ */ new Map();
30048
30151
  }
@@ -30157,6 +30260,7 @@ var import_node_child_process8, import_node_crypto6, import_node_fs11, import_no
30157
30260
  var init_swift_icu = __esm({
30158
30261
  "src/swift-icu.ts"() {
30159
30262
  "use strict";
30263
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
30160
30264
  import_node_child_process8 = require("node:child_process");
30161
30265
  import_node_crypto6 = require("node:crypto");
30162
30266
  import_node_fs11 = require("node:fs");
@@ -30615,6 +30719,7 @@ var import_node_crypto7;
30615
30719
  var init_swift_objc_export = __esm({
30616
30720
  "src/swift-objc-export.ts"() {
30617
30721
  "use strict";
30722
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
30618
30723
  import_node_crypto7 = require("node:crypto");
30619
30724
  }
30620
30725
  });
@@ -30735,6 +30840,7 @@ function swiftObjCImports(graphs, options) {
30735
30840
  const categories = /* @__PURE__ */ new Map();
30736
30841
  const functions = /* @__PURE__ */ new Map();
30737
30842
  const typedefs = /* @__PURE__ */ new Map();
30843
+ const wrappedTypedefs = /* @__PURE__ */ new Map();
30738
30844
  const visit3 = (node) => {
30739
30845
  if (!record(node)) return;
30740
30846
  if (node.kind === "ObjCInterfaceDecl" && typeof node.name === "string" && selected.has(node.name)) {
@@ -30756,6 +30862,9 @@ function swiftObjCImports(graphs, options) {
30756
30862
  if (node.kind === "TypedefDecl" && typeof node.name === "string" && record(node.type)) {
30757
30863
  const canonical2 = node.type.desugaredQualType ?? node.type.qualType;
30758
30864
  if (typeof canonical2 === "string") typedefs.set(node.name, canonical2);
30865
+ if (nodes(node.inner).some((attribute) => attribute.kind === "SwiftNewTypeAttr")) {
30866
+ wrappedTypedefs.set(node.name, [...wrappedTypedefs.get(node.name) ?? [], node]);
30867
+ }
30759
30868
  }
30760
30869
  for (const child of nodes(node.inner)) visit3(child);
30761
30870
  };
@@ -30763,14 +30872,29 @@ function swiftObjCImports(graphs, options) {
30763
30872
  fail("declarations", "expected a complete Clang translation unit AST");
30764
30873
  visit3(options.clangAST);
30765
30874
  const symbols = /* @__PURE__ */ new Map();
30875
+ const seenSymbols = /* @__PURE__ */ new Set();
30766
30876
  for (const graph of graphs) {
30767
30877
  if (graph.module.name !== options.module)
30768
30878
  fail("declarations", `symbol graph belongs to ${graph.module.name}`);
30769
30879
  for (const symbol of graph.symbols) {
30770
- const previous = symbols.get(symbol.identifier.precise);
30771
- if (previous && JSON.stringify(previous) !== JSON.stringify(symbol))
30772
- fail(symbol.identifier.precise, "ambiguous imported declaration");
30773
- symbols.set(symbol.identifier.precise, symbol);
30880
+ if (symbol.availability?.some(
30881
+ (entry) => entry.isUnconditionallyUnavailable && (!entry.domain || entry.domain === "Swift" || entry.domain === "iOS")
30882
+ ))
30883
+ continue;
30884
+ const key2 = JSON.stringify([
30885
+ symbol.identifier.precise,
30886
+ symbol.kind.identifier,
30887
+ symbol.pathComponents,
30888
+ symbol.declarationFragments,
30889
+ symbol.functionSignature,
30890
+ symbol.accessLevel,
30891
+ symbol.availability
30892
+ ]);
30893
+ if (seenSymbols.has(key2)) continue;
30894
+ seenSymbols.add(key2);
30895
+ const overloads = symbols.get(symbol.identifier.precise) ?? [];
30896
+ overloads.push(symbol);
30897
+ symbols.set(symbol.identifier.precise, overloads);
30774
30898
  }
30775
30899
  }
30776
30900
  const classes = [];
@@ -30785,7 +30909,10 @@ function swiftObjCImports(graphs, options) {
30785
30909
  types.set(name3, nativeName);
30786
30910
  }
30787
30911
  for (const nativeName of [...selected].sort()) {
30788
- const symbol = symbols.get(`c:objc(cs)${nativeName}`);
30912
+ const candidates = symbols.get(`c:objc(cs)${nativeName}`);
30913
+ if (candidates && candidates.length !== 1)
30914
+ fail(nativeName, "ambiguous imported class declaration");
30915
+ const symbol = candidates?.[0];
30789
30916
  const name3 = symbol?.pathComponents[0];
30790
30917
  if (!symbol || symbol.kind.identifier !== "swift.class" || !name3 || !identifier(name3))
30791
30918
  fail(nativeName, "missing Swift-imported class declaration");
@@ -30800,6 +30927,70 @@ function swiftObjCImports(graphs, options) {
30800
30927
  types.set(name3, nativeName);
30801
30928
  classes.push({ name: name3, nativeName });
30802
30929
  }
30930
+ const wrapperMembers = /* @__PURE__ */ new Map();
30931
+ const wrapperConformances = /* @__PURE__ */ new Map();
30932
+ for (const graph of graphs)
30933
+ for (const edge of graph.relationships)
30934
+ if (edge.kind === "conformsTo" && edge.source.includes("@T@")) {
30935
+ const protocols = wrapperConformances.get(edge.source) ?? /* @__PURE__ */ new Set();
30936
+ protocols.add(edge.target);
30937
+ wrapperConformances.set(edge.source, protocols);
30938
+ }
30939
+ for (const candidates of symbols.values())
30940
+ for (const member of candidates)
30941
+ if (member.pathComponents.length === 2 && ["init(rawValue:)", "init(_:)"].includes(member.pathComponents[1])) {
30942
+ const owner = member.pathComponents[0];
30943
+ wrapperMembers.set(owner, [...wrapperMembers.get(owner) ?? [], member]);
30944
+ }
30945
+ const stringWrappers = /* @__PURE__ */ new Map();
30946
+ const wrapperSymbols = [...symbols].filter(
30947
+ ([usr, candidates]) => usr.includes("@T@") && candidates[0]?.kind.identifier === "swift.struct"
30948
+ ).sort(([left], [right]) => left.localeCompare(right));
30949
+ for (const [usr, candidates] of wrapperSymbols) {
30950
+ const nativeName = /^c:.*@T@([A-Za-z_]\w*)$/.exec(usr)?.[1];
30951
+ if (!nativeName) continue;
30952
+ const originals = wrappedTypedefs.get(nativeName);
30953
+ const declaration = originals?.[0];
30954
+ if (!declaration || !record(declaration.type)) continue;
30955
+ const original = declaration.type.desugaredQualType ?? declaration.type.qualType;
30956
+ if (typeof original !== "string" || original.replace(/\s/g, "") !== "NSString*")
30957
+ continue;
30958
+ const symbol = candidates[0];
30959
+ const name3 = symbol.pathComponents[0];
30960
+ if (candidates.length !== 1 || originals?.length !== 1 || symbol.pathComponents.length !== 1 || !name3 || !identifier(name3) || types.has(name3) || stringWrappers.has(name3) || symbol.accessLevel !== "public" || text2(symbol.declarationFragments ?? []).trim() !== `struct ${name3}` || symbol.availability?.length)
30961
+ fail(usr, "typed string wrapper identity is unqualified");
30962
+ if (!["s:SY", "s:SH", "s:SQ", "s:s8SendableP"].every(
30963
+ (protocol) => wrapperConformances.get(usr)?.has(protocol)
30964
+ ))
30965
+ fail(usr, "typed string wrapper conformances are unqualified");
30966
+ const members = wrapperMembers.get(name3) ?? [];
30967
+ const initializers = members.filter(
30968
+ (member) => member.pathComponents[1] === "init(rawValue:)"
30969
+ );
30970
+ if (initializers.length !== 1 || initializers[0].kind.identifier !== "swift.init" || initializers[0].accessLevel !== "public" || text2(initializers[0].declarationFragments ?? []).trim() !== "init(rawValue: String)" || !initializers[0].declarationFragments?.some(
30971
+ (part) => part.kind === "typeIdentifier" && part.preciseIdentifier === "s:SS"
30972
+ ))
30973
+ fail(usr, "typed string wrapper raw initializer is unqualified");
30974
+ const unlabelled = members.filter((member) => member.pathComponents[1] === "init(_:)");
30975
+ if (unlabelled.length > 1 || unlabelled.length === 1 && (unlabelled[0].kind.identifier !== "swift.init" || unlabelled[0].accessLevel !== "public" || text2(unlabelled[0].declarationFragments ?? []).trim() !== "init(_ rawValue: String)" || !unlabelled[0].declarationFragments?.some(
30976
+ (part) => part.kind === "typeIdentifier" && part.preciseIdentifier === "s:SS"
30977
+ )))
30978
+ fail(usr, "typed string wrapper unlabeled initializer is unqualified");
30979
+ stringWrappers.set(
30980
+ name3,
30981
+ [
30982
+ `public struct ${swiftName(name3)}: Swift.RawRepresentable, Swift.Hashable, Swift.Equatable, Swift._SwiftNewtypeWrapper, Swift._ObjectiveCBridgeable, Swift.Sendable {`,
30983
+ " public typealias RawValue = Swift.String",
30984
+ " public typealias _ObjectiveCType = Foundation.NSString",
30985
+ " private let _rawValue: Swift.String",
30986
+ " public var rawValue: Swift.String { _rawValue }",
30987
+ " public init(rawValue: Swift.String) { _rawValue = rawValue }",
30988
+ ...unlabelled.length ? [" public init(_ rawValue: Swift.String) { _rawValue = rawValue }"] : [],
30989
+ "}",
30990
+ ""
30991
+ ].join("\n")
30992
+ );
30993
+ }
30803
30994
  const type = (parts, where) => {
30804
30995
  const written = text2(parts).trim();
30805
30996
  const optional = /[?!]$/.test(written);
@@ -30822,7 +31013,7 @@ function swiftObjCImports(graphs, options) {
30822
31013
  Double: "double"
30823
31014
  };
30824
31015
  if (!optional && primitive[written] && !parts.some(
30825
- (part) => part.preciseIdentifier?.startsWith("c:") || part.preciseIdentifier && symbols.get(part.preciseIdentifier)?.kind.identifier === "swift.class"
31016
+ (part) => part.preciseIdentifier?.startsWith("c:") || part.preciseIdentifier && symbols.get(part.preciseIdentifier)?.[0]?.kind.identifier === "swift.class"
30826
31017
  ))
30827
31018
  return {
30828
31019
  swift: `Swift.${written === "()" ? "Void" : written}`,
@@ -30834,7 +31025,7 @@ function swiftObjCImports(graphs, options) {
30834
31025
  const identifiers = parts.filter((part) => part.kind === "typeIdentifier");
30835
31026
  const id = identifiers.length === 1 ? identifiers[0]?.preciseIdentifier : void 0;
30836
31027
  const native = id && nativeClass(id);
30837
- const swiftClass = id ? symbols.get(id) : void 0;
31028
+ const swiftClass = id ? symbols.get(id)?.[0] : void 0;
30838
31029
  const resolved = native ? names.get(native) : swiftClass?.kind.identifier === "swift.class" && swiftClass.pathComponents.length === 1 && swiftClass.pathComponents[0] === spelling && types.has(spelling) ? spelling : void 0;
30839
31030
  if (!resolved || identifiers[0]?.spelling !== spelling || spelling !== resolved && spelling !== native)
30840
31031
  return fail(
@@ -30895,7 +31086,8 @@ function swiftObjCImports(graphs, options) {
30895
31086
  );
30896
31087
  };
30897
31088
  const membersByClass = /* @__PURE__ */ new Map();
30898
- for (const symbol of symbols.values()) {
31089
+ const importedSymbols = [...symbols.values()].flat();
31090
+ for (const symbol of importedSymbols) {
30899
31091
  const owner = /^c:objc\(cs\)([A-Za-z_]\w*)\(/.exec(symbol.identifier.precise)?.[1];
30900
31092
  if (owner && selected.has(owner)) {
30901
31093
  const members = membersByClass.get(owner);
@@ -31022,27 +31214,40 @@ function swiftObjCImports(graphs, options) {
31022
31214
  (n) => nodes(n.inner)
31023
31215
  );
31024
31216
  for (const member of members) {
31025
- if (member.kind === "ObjCMethodDecl" && typeof member.name === "string" && (/^init(?:$|[^a-z])/.test(member.name.replace(/^_+/, "")) || nodes(member.inner).some(
31217
+ if (member.kind === "ObjCMethodDecl" && typeof member.name === "string" && member.name !== "init" && (/^init(?:$|[^a-z])/.test(member.name.replace(/^_+/, "")) || nodes(member.inner).some(
31026
31218
  (attribute) => attribute.kind === "NSConsumesSelfAttr" || attribute.kind === "ObjCDesignatedInitializerAttr"
31027
- )))
31219
+ )) && !nodes(member.inner).some((attribute) => attribute.kind === "UnavailableAttr"))
31028
31220
  fail(
31029
31221
  `${nativeName}.${member.name}`,
31030
31222
  "explicit or designated initialization is unqualified"
31031
31223
  );
31032
- if (member.variadic === true)
31033
- fail(`${nativeName}.${member.name}`, "variadic methods are unqualified");
31034
- }
31035
- const constructor = thunk(
31036
- `${nativeName}:new`,
31037
- raw2,
31038
- [],
31039
- null,
31040
- `[[${nativeName} alloc] init]`
31041
- );
31224
+ }
31042
31225
  const body = [
31043
- `public required init(_objcRetained: Swift.UnsafeMutableRawPointer) { precondition(Self.self == ${swiftName(name3)}.self, "Swift subclass construction is unqualified"); super.init(_objcRetained: _objcRetained) }`,
31044
- `public init() { precondition(Self.self == ${swiftName(name3)}.self, "Swift subclass construction is unqualified"); super.init(_objcRetained: ${constructor}()!) }`
31226
+ `public required init(_objcRetained: Swift.UnsafeMutableRawPointer) { precondition(Self.self == ${swiftName(name3)}.self, "Swift subclass construction is unqualified"); super.init(_objcRetained: _objcRetained) }`
31045
31227
  ];
31228
+ const defaultInitializer = members.find(
31229
+ (member) => member.kind === "ObjCMethodDecl" && member.instance === true && member.name === "init"
31230
+ );
31231
+ const importedInitializer = symbols.get(`c:objc(cs)${nativeName}(im)init`);
31232
+ const initializerSpelling = importedInitializer?.[0] ? text2(importedInitializer[0].declarationFragments ?? []).trim() : "init()";
31233
+ if (!/^init[?!]?\(\)$/.test(initializerSpelling))
31234
+ fail(`${nativeName}.init`, "default initializer signature is unqualified");
31235
+ if (!defaultInitializer || !nodes(defaultInitializer.inner).some(
31236
+ (attribute) => attribute.kind === "UnavailableAttr"
31237
+ )) {
31238
+ if (defaultInitializer && (importedInitializer?.length !== 1 || importedInitializer[0]?.kind.identifier !== "swift.init"))
31239
+ fail(`${nativeName}.init`, "missing Swift-imported default initializer");
31240
+ const constructor = thunk(
31241
+ `${nativeName}:new`,
31242
+ raw2,
31243
+ [],
31244
+ null,
31245
+ `[[${nativeName} alloc] init]`
31246
+ );
31247
+ body.push(
31248
+ `public ${initializerSpelling} { precondition(Self.self == ${swiftName(name3)}.self, "Swift subclass construction is unqualified"); ${/^init[?!]/.test(initializerSpelling) ? `guard let _peer = ${constructor}() else { return nil }; super.init(_objcRetained: _peer)` : `super.init(_objcRetained: ${constructor}()!)`} }`
31249
+ );
31250
+ }
31046
31251
  bodies.set(name3, body);
31047
31252
  const prefix = `c:objc(cs)${nativeName}`;
31048
31253
  for (const symbol of membersByClass.get(nativeName) ?? []) {
@@ -31060,16 +31265,19 @@ function swiftObjCImports(graphs, options) {
31060
31265
  (m) => m.kind === (property ? "ObjCPropertyDecl" : "ObjCMethodDecl") && m.name === selector && (property ? m.class !== true === instance : m.instance === instance)
31061
31266
  );
31062
31267
  if (!decl) fail(usr, "member absent from original Clang interface");
31268
+ if (decl.variadic === true)
31269
+ fail(`${nativeName}.${selector}`, "variadic methods are unqualified");
31063
31270
  const parts = symbol.declarationFragments ?? [];
31064
31271
  const written = text2(parts);
31065
31272
  if (symbol.availability?.length || /@|\b(?:optional|nonisolated|isolated|async|throws|rethrows)\b/.test(written))
31066
31273
  fail(usr, "availability and asynchronous or throwing imports are unqualified");
31067
31274
  if (nodes(decl.inner).some(
31068
- (a) => /^(?:Unavailable|SwiftPrivate|SwiftAsync|SwiftError|ObjCRequiresSuper|NSConsumesSelf)Attr$/.test(
31275
+ (a) => /^(?:Unavailable|SwiftPrivate|SwiftAsync|SwiftError|ObjCRequiresSuper)Attr$/.test(
31069
31276
  String(a.kind)
31070
- )
31277
+ ) || a.kind === "NSConsumesSelfAttr" && selector !== "init"
31071
31278
  ))
31072
31279
  fail(usr, "member attributes require a qualified importer path");
31280
+ if (selector === "init" && symbol.kind.identifier === "swift.init") continue;
31073
31281
  const receiver = instance ? "_object" : nativeName;
31074
31282
  const access = symbol.accessLevel === "open" ? "open" : "public";
31075
31283
  const memberName = parts.find((part) => part.kind === "identifier")?.spelling;
@@ -31148,7 +31356,7 @@ function swiftObjCImports(graphs, options) {
31148
31356
  }
31149
31357
  }
31150
31358
  const importedFunctions = [];
31151
- for (const symbol of symbols.values()) {
31359
+ for (const symbol of importedSymbols) {
31152
31360
  if (symbol.kind.identifier !== "swift.func") continue;
31153
31361
  const usr = symbol.identifier.precise;
31154
31362
  const native = /^c:@F@([A-Za-z_]\w*)$/.exec(usr)?.[1];
@@ -31189,7 +31397,7 @@ function swiftObjCImports(graphs, options) {
31189
31397
  `public func ${swiftName(name3)}(${argumentsSwift}) -> ${result.swift} { ${result.c === "void" ? "" : "return "}${local}(${parameters.map((p) => swiftName(p.name)).join(", ")}) }`
31190
31398
  );
31191
31399
  }
31192
- if (!classes.length && !importedFunctions.length)
31400
+ if (!classes.length && !importedFunctions.length && !stringWrappers.size)
31193
31401
  fail("declarations", "no represented original Objective-C classes or C functions");
31194
31402
  const registerFunction = `_peachRegisterObjCImports_${hash(options.module)}`;
31195
31403
  const registration = [
@@ -31202,12 +31410,14 @@ function swiftObjCImports(graphs, options) {
31202
31410
  ""
31203
31411
  ].join("\n");
31204
31412
  const swift = [
31205
- ...classes.length ? ["import Foundation", "import PeachObjC"] : [],
31413
+ ...classes.length || stringWrappers.size ? ["import Foundation"] : [],
31414
+ ...classes.length ? ["import PeachObjC"] : [],
31206
31415
  "",
31207
31416
  ...external,
31208
31417
  "",
31209
31418
  ...importedFunctions,
31210
31419
  "",
31420
+ ...stringWrappers.values(),
31211
31421
  ...classes.flatMap((c) => [
31212
31422
  `open class ${swiftName(c.name)}: PeachObjC._ObjCForeignObject {`,
31213
31423
  ...bodies.get(c.name).map((line) => ` ${line}`),
@@ -31228,6 +31438,7 @@ var import_node_crypto8, SwiftObjCImportError, record, nodes, fragments, text2,
31228
31438
  var init_swift_objc_import = __esm({
31229
31439
  "src/swift-objc-import.ts"() {
31230
31440
  "use strict";
31441
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
31231
31442
  import_node_crypto8 = require("node:crypto");
31232
31443
  SwiftObjCImportError = class extends Error {
31233
31444
  };
@@ -31257,6 +31468,7 @@ var import_node_path10, IOS_SDK_TARGET, OVERLAY_PATH, tree, IOS_SDK_HEADERS, IOS
31257
31468
  var init_swift_objc_sdk = __esm({
31258
31469
  "src/swift-objc-sdk.ts"() {
31259
31470
  "use strict";
31471
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
31260
31472
  import_node_path10 = __toESM(require("node:path"), 1);
31261
31473
  init_swift_objc_sdk_tree();
31262
31474
  init_swift_toolchain();
@@ -31548,7 +31760,9 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original) {
31548
31760
  "-module-cache-path",
31549
31761
  import_node_path11.default.join(cacheDir5, "ios-module-cache"),
31550
31762
  "-minimum-access-level",
31551
- "public",
31763
+ // symbol graphs hide public underscored names at the public threshold.
31764
+ // original clang headers remain the declaration boundary.
31765
+ original ? "internal" : "public",
31552
31766
  "-skip-synthesized-members",
31553
31767
  "-omit-extension-block-symbols",
31554
31768
  "-output-dir",
@@ -31820,13 +32034,14 @@ var import_node_child_process9, import_node_crypto9, import_node_fs12, import_no
31820
32034
  var init_swift_objc_standin = __esm({
31821
32035
  "src/swift-objc-standin.ts"() {
31822
32036
  "use strict";
32037
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
31823
32038
  import_node_child_process9 = require("node:child_process");
31824
32039
  import_node_crypto9 = require("node:crypto");
31825
32040
  import_node_fs12 = __toESM(require("node:fs"), 1);
31826
32041
  import_node_path11 = __toESM(require("node:path"), 1);
31827
32042
  init_swift_objc_sdk();
31828
32043
  init_swift_toolchain();
31829
- OBJC_IMPORT_VERSION = "3";
32044
+ OBJC_IMPORT_VERSION = "4";
31830
32045
  NATIVE_GRAPH_SDK_VERSION = "27.1";
31831
32046
  NATIVE_GRAPH_INPUTS = {
31832
32047
  sdk: NATIVE_GRAPH_SDK_VERSION,
@@ -31964,6 +32179,7 @@ function validateObjcPeerStartupLibraries(libraries) {
31964
32179
  var init_swift_objc_metadata = __esm({
31965
32180
  "src/swift-objc-metadata.ts"() {
31966
32181
  "use strict";
32182
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
31967
32183
  init_swift_objc_sdk();
31968
32184
  init_swift_objc_sdk();
31969
32185
  init_swift_objc_standin();
@@ -32060,6 +32276,32 @@ function swiftTargetModuleName(name3) {
32060
32276
  function swiftPackageIdentity(url) {
32061
32277
  return (url.split("/").pop() ?? url).replace(/\.git$/, "").toLowerCase();
32062
32278
  }
32279
+ function clangMacroSetting(macro) {
32280
+ const [name3, ...value] = macro.split("=");
32281
+ return value.length === 0 ? `.define(${JSON.stringify(name3)})` : `.define(${JSON.stringify(name3)}, to: ${JSON.stringify(value.join("="))})`;
32282
+ }
32283
+ function settingDefines(call, tool) {
32284
+ const defines = [];
32285
+ for (const open of call.matchAll(new RegExp(`\\b${tool}Settings\\s*:\\s*\\[`, "g"))) {
32286
+ let depth = 1;
32287
+ let index = open.index + open[0].length;
32288
+ const start = index;
32289
+ for (; index < call.length && depth > 0; index++) {
32290
+ const char = call[index];
32291
+ if (char === '"') {
32292
+ for (index++; index < call.length && call[index] !== '"'; index++)
32293
+ if (call[index] === "\\") index++;
32294
+ } else if (char === "[") depth++;
32295
+ else if (char === "]") depth--;
32296
+ }
32297
+ const body = call.slice(start, index - 1);
32298
+ for (const match of body.matchAll(
32299
+ /\.define\(\s*"([A-Za-z_][A-Za-z0-9_]*)"\s*(?:,\s*to:\s*"([^"]*)"\s*)?\)/g
32300
+ ))
32301
+ defines.push(match[2] === void 0 ? match[1] : `${match[1]}=${match[2]}`);
32302
+ }
32303
+ return defines;
32304
+ }
32063
32305
  function swiftManifestTargets(manifest, resourcePaths = []) {
32064
32306
  const implicitResources = swiftImplicitResourcePaths(resourcePaths);
32065
32307
  const targets = [];
@@ -32087,9 +32329,9 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
32087
32329
  const cxxInterop = /\.interoperabilityMode\(\s*\.Cxx\s*\)/.test(
32088
32330
  call.replace(/"(?:\\.|[^"\\])*"/g, "")
32089
32331
  );
32090
- const defines = [
32091
- ...call.matchAll(/\.define\(\s*"([A-Za-z_][A-Za-z0-9_]*)"\s*\)/g)
32092
- ].map((match) => match[1]);
32332
+ const defines = settingDefines(call, "swift").map((define) => define.split("=")[0]);
32333
+ const cDefines = settingDefines(call, "c");
32334
+ const cxxDefines = settingDefines(call, "cxx");
32093
32335
  const linkedLibraries = [...call.matchAll(/\.linkedLibrary\(\s*"([^"]+)"\s*\)/g)].map(
32094
32336
  (match) => match[1]
32095
32337
  );
@@ -32132,6 +32374,8 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
32132
32374
  mainActorIsolation,
32133
32375
  ...cxxInterop ? { cxxInterop: true } : {},
32134
32376
  ...defines.length === 0 ? {} : { defines },
32377
+ ...cDefines.length === 0 ? {} : { cDefines },
32378
+ ...cxxDefines.length === 0 ? {} : { cxxDefines },
32135
32379
  ...linkedLibraries.length === 0 ? {} : { linkedLibraries },
32136
32380
  resources,
32137
32381
  ...dependencies.length === 0 ? {} : { dependencies },
@@ -32269,6 +32513,7 @@ var MANIFEST_DECLARATIONS, SWIFT_NATIVE_SOURCE_EXTENSIONS, OBJC_RESOURCE_ACCESSO
32269
32513
  var init_swift_package = __esm({
32270
32514
  "src/swift-package.ts"() {
32271
32515
  "use strict";
32516
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32272
32517
  MANIFEST_DECLARATIONS = [
32273
32518
  "executableTarget",
32274
32519
  "testTarget",
@@ -32489,6 +32734,7 @@ var import_node_child_process10, import_node_crypto10, import_node_fs13, import_
32489
32734
  var init_swift_root_lock = __esm({
32490
32735
  "src/swift-root-lock.ts"() {
32491
32736
  "use strict";
32737
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32492
32738
  import_node_child_process10 = require("node:child_process");
32493
32739
  import_node_crypto10 = require("node:crypto");
32494
32740
  import_node_fs13 = require("node:fs");
@@ -32510,6 +32756,7 @@ function isSwiftImageVariants(value) {
32510
32756
  var init_assetCatalogContract = __esm({
32511
32757
  "src/assetCatalogContract.ts"() {
32512
32758
  "use strict";
32759
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32513
32760
  }
32514
32761
  });
32515
32762
 
@@ -32574,6 +32821,7 @@ var SWIFT_NATIVE_INPUT_ROOT, SWIFT_NATIVE_SDK_INCLUDE;
32574
32821
  var init_swiftContract = __esm({
32575
32822
  "src/swiftContract.ts"() {
32576
32823
  "use strict";
32824
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32577
32825
  init_assetCatalogContract();
32578
32826
  SWIFT_NATIVE_INPUT_ROOT = "$(PEACH_INPUT_ROOT)";
32579
32827
  SWIFT_NATIVE_SDK_INCLUDE = "$(PEACH_SDK_INCLUDE)";
@@ -32670,6 +32918,7 @@ var import_node_fs14, import_node_path13;
32670
32918
  var init_xcode_header_search = __esm({
32671
32919
  "src/xcode-header-search.ts"() {
32672
32920
  "use strict";
32921
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32673
32922
  import_node_fs14 = __toESM(require("node:fs"), 1);
32674
32923
  import_node_path13 = __toESM(require("node:path"), 1);
32675
32924
  }
@@ -33192,6 +33441,7 @@ function emitSwiftPackageManifest(args) {
33192
33441
  const linkedNativeModules = [...args.native?.entries() ?? []].flatMap(
33193
33442
  ([name3, value]) => value.clang ? [name3] : []
33194
33443
  );
33444
+ const macroSettings = (values) => (values ?? []).map((value) => ` ${clangMacroSetting(value)},`).join("");
33195
33445
  const stanza = (target) => {
33196
33446
  if (target.systemLibrary)
33197
33447
  return ` .systemLibrary(name: ${JSON.stringify(target.name)}, path: ${JSON.stringify(target.path)}),`;
@@ -33268,10 +33518,15 @@ function emitSwiftPackageManifest(args) {
33268
33518
  .unsafeFlags(["-Xlinker", "--strip-all"], .when(configuration: .release)),
33269
33519
  ]` : librarySettings.length > 0 ? `,
33270
33520
  linkerSettings: [${librarySettings.join(", ")}]` : "";
33521
+ const cDefines = macroSettings(target.cDefines);
33522
+ const cxxDefines = macroSettings(target.cxxDefines);
33271
33523
  const nativeSettings = native?.clang ? [
33272
- `cSettings: [.unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native.clang.flags])})]`,
33273
- `cxxSettings: [${defines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native.clang.cxxFlags])})]`
33274
- ].join(", ") : `${args.objcExports ? `cSettings: [.unsafeFlags(${JSON.stringify(args.objcExports.flags)})], ` : ""}cxxSettings: [${defines} .unsafeFlags(["-fno-cxx-modules"])]`;
33524
+ `cSettings: [${cDefines} .unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native.clang.flags])})]`,
33525
+ `cxxSettings: [${cxxDefines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native.clang.cxxFlags])})]`
33526
+ ].join(", ") : [
33527
+ `cSettings: [${cDefines} .unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native?.flags ?? []])})]`,
33528
+ `cxxSettings: [${cxxDefines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native?.cxxFlags ?? []])})]`
33529
+ ].join(", ");
33275
33530
  return [
33276
33531
  ` ${kind}(`,
33277
33532
  ` name: "${target.name}",`,
@@ -33281,7 +33536,7 @@ function emitSwiftPackageManifest(args) {
33281
33536
  ...native?.clang ? [
33282
33537
  ` sources: ${JSON.stringify(native.clang.sources.map((source) => import_node_path14.default.posix.join(native.path, source)))},`,
33283
33538
  ` publicHeadersPath: ${JSON.stringify(import_node_path14.default.posix.dirname(native.clang.modulemap))},`
33284
- ] : [],
33539
+ ] : native?.flags ? [` sources: ${JSON.stringify(native.sources)},`] : [],
33285
33540
  // the native backend supplies dependency module maps without their
33286
33541
  // compiled modules. textual c++ includes keep those dependencies usable.
33287
33542
  ` ${clang ? nativeSettings : swiftSettings}${link}`,
@@ -33307,24 +33562,26 @@ function emitSwiftPackageManifest(args) {
33307
33562
  ' publicHeadersPath: "include",',
33308
33563
  ` cSettings: [.unsafeFlags(${JSON.stringify([...args.objcExports.flags.filter((flag) => flag !== "-fobjc-arc"), "-fno-objc-arc", "-Xclang", "-disable-objc-default-synthesize-properties"])})]),`
33309
33564
  ] : [],
33310
- ...[...args.native?.entries() ?? []].flatMap(
33311
- ([name3, native]) => native.late ? (native.groups ?? [
33565
+ ...[...args.native?.entries() ?? []].flatMap(([name3, native]) => {
33566
+ const late = native.late;
33567
+ const owner = targets.find((target) => target.name === name3);
33568
+ return late ? (native.groups ?? [
33312
33569
  {
33313
- name: native.late.name,
33570
+ name: late.name,
33314
33571
  sources: native.lateSources,
33315
33572
  flags: [],
33316
33573
  cxxFlags: []
33317
33574
  }
33318
33575
  ]).flatMap((group) => [
33319
33576
  ` .target(name: ${JSON.stringify(group.name)},`,
33320
- ` dependencies: ${JSON.stringify(args.native?.get(name3)?.mixed ? [] : [name3])},`,
33577
+ ` dependencies: ${JSON.stringify(native.mixed ? [] : [name3, ...late.producers])},`,
33321
33578
  ` path: ${JSON.stringify(native.clang ? "." : native.path)},`,
33322
33579
  ` sources: ${JSON.stringify(native.clang ? group.sources.map((source) => import_node_path14.default.posix.join(native.path, source)) : group.sources)},`,
33323
33580
  ` publicHeadersPath: ${JSON.stringify(native.clang ? import_node_path14.default.posix.dirname(native.clang.modulemap) : "include")},`,
33324
- ` cSettings: [.unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...group.flags])})],`,
33325
- ` cxxSettings: [.unsafeFlags(${JSON.stringify(["-fno-cxx-modules", "-I", native.includeDirectory, "-I", args.headerDirectory, ...group.cxxFlags])})]),`
33326
- ]) : []
33327
- ),
33581
+ ` cSettings: [${macroSettings(owner?.cDefines)} .unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...group.flags])})],`,
33582
+ ` cxxSettings: [${macroSettings(owner?.cxxDefines)} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.objcExports?.flags ?? args.nativeFlags ?? [], "-I", native.includeDirectory, "-I", args.headerDirectory, ...group.cxxFlags])})]),`
33583
+ ]) : [];
33584
+ }),
33328
33585
  args.cxxLanguageStandard ? ` ],
33329
33586
  cxxLanguageStandard: .${args.cxxLanguageStandard}` : " ]",
33330
33587
  ")",
@@ -35129,7 +35386,7 @@ function writeSwiftProject(layout, input, moduleRoot) {
35129
35386
  else files2.set(file, prior);
35130
35387
  }
35131
35388
  targetStagedFiles.delete(target.name);
35132
- if (entries.some(([file]) => /\.(?:c|cc|cpp|cxx|m|mm)$/.test(file)) && (swift || input.nativeTargets?.some((value) => value.name === target.name) && entries.some(([file]) => /\.mm?$/.test(file)))) {
35389
+ if (entries.some(([file]) => /\.(?:c|cc|cpp|cxx|m|mm)$/.test(file)) && (swift || input.nativeTargets?.some((value) => value.name === target.name))) {
35133
35390
  if (!swift) {
35134
35391
  const unprepared = import_node_path14.default.join(
35135
35392
  layout.root,
@@ -35202,8 +35459,42 @@ function writeSwiftProject(layout, input, moduleRoot) {
35202
35459
  const entries = targetEntries(target);
35203
35460
  const units = entries.filter(([file]) => /\.(?:c|cc|cpp|cxx|m|mm)$/.test(file));
35204
35461
  if (units.length === 0) continue;
35462
+ const includes = `${prefix}include/`;
35463
+ const consumers = /* @__PURE__ */ new Map();
35464
+ const reverse = /* @__PURE__ */ new Map();
35465
+ for (const [file, contents] of entries) {
35466
+ const producers2 = /* @__PURE__ */ new Set();
35467
+ const source = contents.replace(/\/\*[\s\S]*?\*\//g, "");
35468
+ for (const match of source.matchAll(
35469
+ /^\s*#\s*(?:include|import)\s*[<"]([^>"]+)[>"]/gm
35470
+ )) {
35471
+ const include2 = match[1];
35472
+ const producer = /(?:^|\/)([^/]+)-Swift\.h$/.exec(include2)?.[1];
35473
+ if (producer && targets.some((value) => value.name === producer))
35474
+ producers2.add(producer);
35475
+ const local = [
35476
+ import_node_path14.default.posix.join(import_node_path14.default.posix.dirname(file), include2),
35477
+ `${includes}${include2}`
35478
+ ].find((candidate) => input.files[candidate] !== void 0);
35479
+ if (local) {
35480
+ reverse.set(local, [...reverse.get(local) ?? [], file]);
35481
+ }
35482
+ }
35483
+ consumers.set(file, producers2);
35484
+ }
35485
+ const queue2 = [...consumers.keys()].filter((file) => consumers.get(file).size > 0);
35486
+ for (let index = 0; index < queue2.length; index++) {
35487
+ const file = queue2[index];
35488
+ for (const parent of reverse.get(file) ?? []) {
35489
+ const inherited = consumers.get(parent);
35490
+ const before = inherited.size;
35491
+ for (const producer of consumers.get(file)) inherited.add(producer);
35492
+ if (before !== inherited.size) queue2.push(parent);
35493
+ }
35494
+ }
35495
+ const late = units.filter(([file]) => consumers.get(file).size > 0);
35205
35496
  const settings = input.nativeTargets?.find((value) => value.name === target.name);
35206
- if (entries.some(([file]) => file.endsWith(".swift")) || settings && units.some(([file]) => /\.mm?$/.test(file))) {
35497
+ if (settings || entries.some(([file]) => file.endsWith(".swift"))) {
35207
35498
  try {
35208
35499
  if (!settings)
35209
35500
  throw new Error(
@@ -35271,7 +35562,7 @@ function writeSwiftProject(layout, input, moduleRoot) {
35271
35562
  return relative4.split("/").some((part) => part.startsWith(".")) ? import_node_path14.default.posix.join(HIDDEN_UNITS, relative4.replaceAll(/(^|\/)\./g, "$1%2E")) : relative4;
35272
35563
  };
35273
35564
  const accessorFlags = accessor ? ["-include", accessorHeader] : [];
35274
- let nativeC = false;
35565
+ let nativeC = !roots2.length && !entries.some(([file]) => file.endsWith(".swift")) && !units.some(([file]) => /\.mm?$/.test(file));
35275
35566
  if (roots2.length) {
35276
35567
  const sourceHeaders = import_node_path14.default.join(
35277
35568
  layout.root,
@@ -35370,7 +35661,13 @@ export *
35370
35661
  )
35371
35662
  ];
35372
35663
  const cxx = /\.(?:cc|cpp|cxx|mm)$/.test(file);
35373
- const identity = (0, import_node_crypto11.createHash)("sha256").update(JSON.stringify([cxx, perFile])).digest("hex").slice(0, 12);
35664
+ const identity = (0, import_node_crypto11.createHash)("sha256").update(
35665
+ JSON.stringify([
35666
+ cxx,
35667
+ perFile,
35668
+ ...nativeC && !roots2.length ? [(consumers.get(file)?.size ?? 0) > 0] : []
35669
+ ])
35670
+ ).digest("hex").slice(0, 12);
35374
35671
  const group = groups.get(identity) ?? {
35375
35672
  name: `${target.name}${nativeC ? "Native" : "Swift"}Implementation_${identity}`,
35376
35673
  sources: [],
@@ -35405,6 +35702,31 @@ export *
35405
35702
  accessor.body
35406
35703
  );
35407
35704
  }
35705
+ if (nativeC && !roots2.length) {
35706
+ const lateSources = new Set(late.map(([file]) => unitSource(file)));
35707
+ const owner = [...groups.values()].find(
35708
+ (group) => group.sources.every((source) => !lateSources.has(source))
35709
+ );
35710
+ const implementations = [...groups.values()].filter((group) => group !== owner);
35711
+ native.set(target.name, {
35712
+ path: target.path,
35713
+ includeDirectory: include2,
35714
+ sources: owner?.sources ?? [],
35715
+ lateSources: implementations.flatMap((group) => group.sources),
35716
+ flags: owner?.flags ?? flags,
35717
+ cxxFlags: owner?.cxxFlags ?? flags,
35718
+ ...implementations.length ? {
35719
+ groups: implementations,
35720
+ late: {
35721
+ name: `${target.name}NativeImplementation`,
35722
+ producers: [
35723
+ ...new Set(late.flatMap(([file]) => [...consumers.get(file)]))
35724
+ ].sort()
35725
+ }
35726
+ } : {}
35727
+ });
35728
+ continue;
35729
+ }
35408
35730
  if (nativeC) {
35409
35731
  const modulemaps = Object.entries(settings.productHeaders).filter(
35410
35732
  ([product2]) => product2.endsWith("/Modules/module.modulemap")
@@ -35475,40 +35797,6 @@ export *
35475
35797
  }
35476
35798
  continue;
35477
35799
  }
35478
- const includes = `${prefix}include/`;
35479
- const consumers = /* @__PURE__ */ new Map();
35480
- const reverse = /* @__PURE__ */ new Map();
35481
- for (const [file, contents] of entries) {
35482
- const producers2 = /* @__PURE__ */ new Set();
35483
- const source = contents.replace(/\/\*[\s\S]*?\*\//g, "");
35484
- for (const match of source.matchAll(
35485
- /^\s*#\s*(?:include|import)\s*[<"]([^>"]+)[>"]/gm
35486
- )) {
35487
- const include2 = match[1];
35488
- const producer = /(?:^|\/)([^/]+)-Swift\.h$/.exec(include2)?.[1];
35489
- if (producer && targets.some((value) => value.name === producer))
35490
- producers2.add(producer);
35491
- const local = [
35492
- import_node_path14.default.posix.join(import_node_path14.default.posix.dirname(file), include2),
35493
- `${includes}${include2}`
35494
- ].find((candidate) => input.files[candidate] !== void 0);
35495
- if (local) {
35496
- reverse.set(local, [...reverse.get(local) ?? [], file]);
35497
- }
35498
- }
35499
- consumers.set(file, producers2);
35500
- }
35501
- const queue2 = [...consumers.keys()].filter((file) => consumers.get(file).size > 0);
35502
- for (let index = 0; index < queue2.length; index++) {
35503
- const file = queue2[index];
35504
- for (const parent of reverse.get(file) ?? []) {
35505
- const inherited = consumers.get(parent);
35506
- const before = inherited.size;
35507
- for (const producer of consumers.get(file)) inherited.add(producer);
35508
- if (before !== inherited.size) queue2.push(parent);
35509
- }
35510
- }
35511
- const late = units.filter(([file]) => consumers.get(file).size > 0);
35512
35800
  native.set(target.name, {
35513
35801
  path: target.path,
35514
35802
  includeDirectory: import_node_path14.default.join(layout.root, includes),
@@ -36419,6 +36707,7 @@ var import_node_child_process11, import_node_crypto11, import_node_fs15, import_
36419
36707
  var init_swift_compile = __esm({
36420
36708
  "src/swift-compile.ts"() {
36421
36709
  "use strict";
36710
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
36422
36711
  import_node_child_process11 = require("node:child_process");
36423
36712
  import_node_crypto11 = require("node:crypto");
36424
36713
  import_node_fs15 = require("node:fs");
@@ -36527,7 +36816,7 @@ var init_swift_compile = __esm({
36527
36816
  `;
36528
36817
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
36529
36818
  MULTI_MANIFEST_VERSION = 40;
36530
- compilerSourceDigest = true ? "baf55512a114f4eec85d80685c9e0f04d08ac1ad34d8c18745c233b3d7827025" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
36819
+ compilerSourceDigest = true ? "6ea8d8a06ae707693b5fbb43a21e9d705ee8a19779051d47b05c4bbaeb39fb6c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
36531
36820
  DIRECTIVE = /^[ \t]*#(?:if|elseif)\b/;
36532
36821
  OS_IOS = /\b(?:os\(\s*iOS\s*\)|targetEnvironment\(\s*simulator\s*\))/g;
36533
36822
  OBJC_ATTRIBUTE = /^@(?:objcMembers\b|objc\b(?:(\s*)\(([^()]*)\))?|IBAction\b)/;
@@ -38758,6 +39047,7 @@ var init_swift_compile = __esm({
38758
39047
  // ../../node_modules/json5/lib/unicode.js
38759
39048
  var require_unicode = __commonJS({
38760
39049
  "../../node_modules/json5/lib/unicode.js"(exports2, module2) {
39050
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
38761
39051
  module2.exports.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
38762
39052
  module2.exports.ID_Start = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;
38763
39053
  module2.exports.ID_Continue = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;
@@ -38767,6 +39057,7 @@ var require_unicode = __commonJS({
38767
39057
  // ../../node_modules/json5/lib/util.js
38768
39058
  var require_util = __commonJS({
38769
39059
  "../../node_modules/json5/lib/util.js"(exports2, module2) {
39060
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
38770
39061
  var unicode = require_unicode();
38771
39062
  module2.exports = {
38772
39063
  isSpaceSeparator(c) {
@@ -38791,6 +39082,7 @@ var require_util = __commonJS({
38791
39082
  // ../../node_modules/json5/lib/parse.js
38792
39083
  var require_parse = __commonJS({
38793
39084
  "../../node_modules/json5/lib/parse.js"(exports2, module2) {
39085
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
38794
39086
  var util = require_util();
38795
39087
  var source;
38796
39088
  var parseState;
@@ -39638,6 +39930,7 @@ var require_parse = __commonJS({
39638
39930
  // ../../node_modules/json5/lib/stringify.js
39639
39931
  var require_stringify = __commonJS({
39640
39932
  "../../node_modules/json5/lib/stringify.js"(exports2, module2) {
39933
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
39641
39934
  var util = require_util();
39642
39935
  module2.exports = function stringify4(value, replacer, space) {
39643
39936
  const stack = [];
@@ -39857,6 +40150,7 @@ var require_stringify = __commonJS({
39857
40150
  // ../../node_modules/json5/lib/index.js
39858
40151
  var require_lib = __commonJS({
39859
40152
  "../../node_modules/json5/lib/index.js"(exports2, module2) {
40153
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
39860
40154
  var parse5 = require_parse();
39861
40155
  var stringify4 = require_stringify();
39862
40156
  var JSON53 = {
@@ -40190,6 +40484,7 @@ var import_node_path15, import_json5, isObject, text3, items, PHASE_ISA;
40190
40484
  var init_xcode_json_project = __esm({
40191
40485
  "src/xcode-json-project.ts"() {
40192
40486
  "use strict";
40487
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
40193
40488
  import_node_path15 = __toESM(require("node:path"), 1);
40194
40489
  import_json5 = __toESM(require_lib(), 1);
40195
40490
  isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
@@ -40301,6 +40596,7 @@ var isDict, str, list;
40301
40596
  var init_openstep_plist = __esm({
40302
40597
  "src/openstep-plist.ts"() {
40303
40598
  "use strict";
40599
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
40304
40600
  isDict = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
40305
40601
  str = (value) => typeof value === "string" ? value : void 0;
40306
40602
  list = (value) => Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
@@ -40399,6 +40695,7 @@ var NEVER_MEMBER, BUNDLE_DIR;
40399
40695
  var init_xcode_target_members = __esm({
40400
40696
  "src/xcode-target-members.ts"() {
40401
40697
  "use strict";
40698
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
40402
40699
  init_openstep_plist();
40403
40700
  NEVER_MEMBER = /(?:^|\/)(?:Info\.plist|[^/]+\.entitlements|[^/]+\.xcconfig|\.DS_Store)$/;
40404
40701
  BUNDLE_DIR = /\.(xcassets|bundle|lproj|xcdatamodeld|scnassets|spriteatlas|rcproject|storyboardc|icon)$/;
@@ -40549,10 +40846,10 @@ function loadProject(xcodeproj) {
40549
40846
  const projectFile = xcodeProjectFile(xcodeproj);
40550
40847
  if (!projectFile)
40551
40848
  throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
40552
- const mtimeMs = import_node_fs16.default.statSync(projectFile).mtimeMs;
40553
- const cached4 = loaded.get(projectFile);
40554
- if (cached4?.mtimeMs === mtimeMs) return cached4.project;
40555
40849
  const source = import_node_fs16.default.readFileSync(projectFile, "utf8");
40850
+ const digest = (0, import_node_crypto12.createHash)("sha256").update(source).digest("hex");
40851
+ const cached4 = loaded.get(projectFile);
40852
+ if (cached4?.digest === digest) return cached4.project;
40556
40853
  const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
40557
40854
  if (!isDict(root) || !isDict(root.objects)) {
40558
40855
  throw new Error(`${projectFile} has no objects table`);
@@ -40579,7 +40876,7 @@ function loadProject(xcodeproj) {
40579
40876
  object: object3,
40580
40877
  resolvePath
40581
40878
  };
40582
- loaded.set(projectFile, { mtimeMs, project: result });
40879
+ loaded.set(projectFile, { digest, project: result });
40583
40880
  return result;
40584
40881
  }
40585
40882
  function defaultConfiguration(project) {
@@ -41529,6 +41826,7 @@ var import_node_child_process12, import_node_crypto12, import_node_fs16, import_
41529
41826
  var init_xcode_project = __esm({
41530
41827
  "src/xcode-project.ts"() {
41531
41828
  "use strict";
41829
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
41532
41830
  import_node_child_process12 = require("node:child_process");
41533
41831
  import_node_crypto12 = require("node:crypto");
41534
41832
  import_node_fs16 = __toESM(require("node:fs"), 1);
@@ -41907,6 +42205,7 @@ var import_node_fs17, import_node_path17, DIRECTIVE2, swiftString, BRIDGE_MODULE
41907
42205
  var init_react_native_bridge_modules = __esm({
41908
42206
  "src/react-native-bridge-modules.ts"() {
41909
42207
  "use strict";
42208
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
41910
42209
  import_node_fs17 = __toESM(require("node:fs"), 1);
41911
42210
  import_node_path17 = __toESM(require("node:path"), 1);
41912
42211
  init_swift_compile();
@@ -41997,6 +42296,7 @@ var import_node_crypto13, import_node_fs18, import_node_path18, cacheDir2;
41997
42296
  var init_swift_binary_modules = __esm({
41998
42297
  "src/swift-binary-modules.ts"() {
41999
42298
  "use strict";
42299
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
42000
42300
  import_node_crypto13 = require("node:crypto");
42001
42301
  import_node_fs18 = __toESM(require("node:fs"), 1);
42002
42302
  import_node_path18 = __toESM(require("node:path"), 1);
@@ -42010,12 +42310,12 @@ var swift_distribution_lock_default;
42010
42310
  var init_swift_distribution_lock = __esm({
42011
42311
  "src/swift-distribution.lock.json"() {
42012
42312
  swift_distribution_lock_default = {
42013
- id: "ca4dfda0ca14bc49",
42313
+ id: "433f607a19978269",
42014
42314
  release: "swift-6.4.0-RELEASE-custom-0d775d32d7c74eae",
42015
42315
  wasmSdkId: "swift-6.4.0-RELEASE_wasm-peach-f02bd198",
42016
42316
  wasmSdkUrl: "https://r2.sootsim.com/swift-wasm-sdk/swift-6.4.0-RELEASE_wasm-peach-f02bd198.artifactbundle.tar.gz",
42017
42317
  wasmSdkChecksum: "1e19ea768fd4e821aae34b8966c4ddcee45615c4b3cf018979b061aee2fb5504",
42018
- source: "33e8641403dd73a7ce0ca902007e3a36407e1f0b",
42318
+ source: "f52d21b43f5cba9bd52f1665697284e46d16c0d9",
42019
42319
  targets: [
42020
42320
  "ImagePlayground",
42021
42321
  "QuickLookThumbnailing",
@@ -42204,16 +42504,16 @@ var init_swift_distribution_lock = __esm({
42204
42504
  },
42205
42505
  hosts: {
42206
42506
  "darwin-arm64": {
42207
- sha256: "8679052c4c2b21ad748a8db40cdbc0c91ab14a29fc06bbed777efb57030c01fa",
42208
- size: 70963039
42507
+ sha256: "0b814aa2ced56e4452c82227c4251036346015ba6445e742070ee221c53fc575",
42508
+ size: 71080069
42209
42509
  },
42210
42510
  "linux-x64": {
42211
- sha256: "a1719d844e2f45e8c9a2ccb9dbe7857978918639a3933c225a328d84cae235cf",
42212
- size: 70968746
42511
+ sha256: "62e67740951c7972fde15bc074fe8838f308432a8521e93691035e7fc105b716",
42512
+ size: 71085950
42213
42513
  },
42214
42514
  "linux-arm64": {
42215
- sha256: "3da8f2c920e65c633b5310c778b4a5c54b0f5f8278d58fd109f3db4310794c04",
42216
- size: 70967077
42515
+ sha256: "f900ab5b6a4823966cebe291c91710e6323185df971c667c25ddcc1427935b52",
42516
+ size: 71084016
42217
42517
  }
42218
42518
  }
42219
42519
  };
@@ -42395,6 +42695,7 @@ var import_node_fs19, import_node_os7, import_node_path19, SWIFT_ENDPOINT_ENV, i
42395
42695
  var init_swift_distribution = __esm({
42396
42696
  "src/swift-distribution.ts"() {
42397
42697
  "use strict";
42698
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
42398
42699
  import_node_fs19 = __toESM(require("node:fs"), 1);
42399
42700
  import_node_os7 = __toESM(require("node:os"), 1);
42400
42701
  import_node_path19 = __toESM(require("node:path"), 1);
@@ -42700,6 +43001,7 @@ var import_svgpath, RASTER_EXTENSIONS, SYMBOL_CAP_HEIGHT_EM, COMPILED_EXTENSIONS
42700
43001
  var init_bundleAssets = __esm({
42701
43002
  "../sootsim-swift/src/bundleAssets.ts"() {
42702
43003
  "use strict";
43004
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
42703
43005
  import_svgpath = __toESM(require("svgpath"), 1);
42704
43006
  init_assetCatalogContract();
42705
43007
  init_swiftContract();
@@ -42892,6 +43194,7 @@ function compileStringCatalog(source, name3) {
42892
43194
  var init_stringCatalog = __esm({
42893
43195
  "../sootsim-swift/src/stringCatalog.ts"() {
42894
43196
  "use strict";
43197
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
42895
43198
  init_swiftContract();
42896
43199
  }
42897
43200
  });
@@ -42981,6 +43284,7 @@ var import_node_fs20, import_node_path20, SESSION_VERSION, SESSION_FILE_ENV, DEF
42981
43284
  var init_shared_session = __esm({
42982
43285
  "src/auth/shared-session.ts"() {
42983
43286
  "use strict";
43287
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
42984
43288
  import_node_fs20 = require("node:fs");
42985
43289
  import_node_path20 = require("node:path");
42986
43290
  init_home_paths();
@@ -43002,6 +43306,7 @@ var import_node_async_hooks, PeachExit, sinks, rnxExit;
43002
43306
  var init_run_rnx = __esm({
43003
43307
  "cli/run-rnx.ts"() {
43004
43308
  "use strict";
43309
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
43005
43310
  import_node_async_hooks = require("node:async_hooks");
43006
43311
  PeachExit = class extends Error {
43007
43312
  code;
@@ -43126,6 +43431,7 @@ var GITHUB_TOKEN_PREFIXES, CHOOSE_ACCOUNT_HINT;
43126
43431
  var init_auth = __esm({
43127
43432
  "cli/auth.ts"() {
43128
43433
  "use strict";
43434
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
43129
43435
  init_shared_session();
43130
43436
  init_run_rnx();
43131
43437
  GITHUB_TOKEN_PREFIXES = ["ghs_", "ghp_", "gho_", "ghu_", "github_pat_"];
@@ -43464,6 +43770,7 @@ function compileAndroidStringValue(text5, where) {
43464
43770
  var init_android_string_value = __esm({
43465
43771
  "src/android-string-value.ts"() {
43466
43772
  "use strict";
43773
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
43467
43774
  }
43468
43775
  });
43469
43776
 
@@ -43518,6 +43825,7 @@ var ENTITIES, TAG, ATTRIBUTE;
43518
43825
  var init_android_xml = __esm({
43519
43826
  "src/android-xml.ts"() {
43520
43827
  "use strict";
43828
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
43521
43829
  ENTITIES = {
43522
43830
  quot: '"',
43523
43831
  apos: "'",
@@ -43624,6 +43932,7 @@ function androidMergedResourceValuesDirectory(manifestFile) {
43624
43932
  var init_android_app_identity = __esm({
43625
43933
  "src/android-app-identity.ts"() {
43626
43934
  "use strict";
43935
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
43627
43936
  init_android_string_value();
43628
43937
  init_android_xml();
43629
43938
  }
@@ -43687,6 +43996,7 @@ ${prefix}${json}${suffix}`;
43687
43996
  var init_bundleGlobalFooter = __esm({
43688
43997
  "src/bundleGlobalFooter.ts"() {
43689
43998
  "use strict";
43999
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
43690
44000
  }
43691
44001
  });
43692
44002
 
@@ -43781,6 +44091,7 @@ function resolveNativeAppIconArtwork(resources, readText2, resourceUri, icons, p
43781
44091
  var init_nativeAppIconContract = __esm({
43782
44092
  "src/nativeAppIconContract.ts"() {
43783
44093
  "use strict";
44094
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
43784
44095
  init_assetCatalogContract();
43785
44096
  init_is_record();
43786
44097
  }
@@ -44399,6 +44710,7 @@ var APP_DELEGATE_PATH_RE, ROOT_MODULE_NAME_RE;
44399
44710
  var init_native_app_identity = __esm({
44400
44711
  "src/native-app-identity.ts"() {
44401
44712
  "use strict";
44713
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
44402
44714
  init_android_app_identity();
44403
44715
  init_bundleGlobalFooter();
44404
44716
  init_is_record();
@@ -44418,6 +44730,7 @@ var import_plist2;
44418
44730
  var init_plist = __esm({
44419
44731
  "src/plist.ts"() {
44420
44732
  "use strict";
44733
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
44421
44734
  import_plist2 = __toESM(require("plist"), 1);
44422
44735
  }
44423
44736
  });
@@ -44692,6 +45005,7 @@ var import_node_fs21, import_node_module, import_node_path21, NativeAppTargetSel
44692
45005
  var init_native_app_identity_project = __esm({
44693
45006
  "src/native-app-identity-project.ts"() {
44694
45007
  "use strict";
45008
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
44695
45009
  import_node_fs21 = __toESM(require("node:fs"), 1);
44696
45010
  import_node_module = require("node:module");
44697
45011
  import_node_path21 = __toESM(require("node:path"), 1);
@@ -44708,23 +45022,35 @@ var init_native_app_identity_project = __esm({
44708
45022
 
44709
45023
  // src/swift-package-manifest.ts
44710
45024
  function swiftCommand() {
44711
- return process.platform === "darwin" ? { file: "xcrun", args: ["swift"] } : { file: import_node_path22.default.join(swiftToolchainBin(swift_distribution_lock_default.release), "swift"), args: [] };
45025
+ return process.platform === "darwin" ? (
45026
+ // runner-toolchain-platform: darwin
45027
+ (0, import_node_child_process13.execFileSync)("xcrun", ["--find", "swift"], { encoding: "utf8" }).trim()
45028
+ ) : import_node_path22.default.join(swiftToolchainBin(swift_distribution_lock_default.release), "swift");
44712
45029
  }
44713
45030
  function dump(dir) {
44714
45031
  const manifests = import_node_fs22.default.readdirSync(dir).filter((name3) => /^Package(@swift-[\d.]+)?\.swift$/.test(name3)).sort();
44715
45032
  const command = swiftCommand();
44716
- const key2 = (0, import_node_crypto14.createHash)("sha256").update(JSON.stringify([command, import_node_path22.default.resolve(dir)])).update(
45033
+ const toolchain = {
45034
+ path: command,
45035
+ realpath: import_node_fs22.default.realpathSync(command),
45036
+ sha256: (0, import_node_crypto14.createHash)("sha256").update(import_node_fs22.default.readFileSync(command)).digest("hex"),
45037
+ version: (0, import_node_child_process13.execFileSync)(command, ["--version"], {
45038
+ encoding: "utf8",
45039
+ env: swiftEnvironment(),
45040
+ stdio: ["ignore", "pipe", "pipe"]
45041
+ }).trim()
45042
+ };
45043
+ const key2 = (0, import_node_crypto14.createHash)("sha256").update(JSON.stringify([toolchain, import_node_path22.default.resolve(dir)])).update(
44717
45044
  manifests.map((name3) => `${name3}\0${import_node_fs22.default.readFileSync(import_node_path22.default.join(dir, name3), "utf8")}`).join("\0")
44718
45045
  ).digest("hex").slice(0, 32);
44719
45046
  const cached4 = import_node_path22.default.join(cacheDir3, `${key2}.json`);
44720
45047
  if (import_node_fs22.default.existsSync(cached4))
44721
- return { key: key2, raw: record2(JSON.parse(import_node_fs22.default.readFileSync(cached4, "utf8"))) };
45048
+ return { key: key2, toolchain, raw: record2(JSON.parse(import_node_fs22.default.readFileSync(cached4, "utf8"))) };
44722
45049
  let output;
44723
45050
  try {
44724
45051
  output = (0, import_node_child_process13.execFileSync)(
44725
- command.file,
45052
+ command,
44726
45053
  [
44727
- ...command.args,
44728
45054
  "package",
44729
45055
  ...swiftPackageCacheOptions(),
44730
45056
  "--package-path",
@@ -44749,7 +45075,7 @@ function dump(dir) {
44749
45075
  }
44750
45076
  import_node_fs22.default.mkdirSync(cacheDir3, { recursive: true });
44751
45077
  import_node_fs22.default.writeFileSync(cached4, output);
44752
- return { key: key2, raw: record2(JSON.parse(output)) };
45078
+ return { key: key2, toolchain, raw: record2(JSON.parse(output)) };
44753
45079
  }
44754
45080
  function defaultTraits(manifest) {
44755
45081
  const traits = new Map(
@@ -44777,15 +45103,18 @@ function linksOnIOS(condition, traits) {
44777
45103
  }
44778
45104
  function swiftPackageManifest(dir) {
44779
45105
  dir = import_node_fs22.default.realpathSync(dir);
44780
- const { key: key2, raw: raw2 } = dump(dir);
45106
+ const { key: key2, raw: raw2, toolchain } = dump(dir);
44781
45107
  const known = evaluated.get(key2);
44782
45108
  if (known) return known;
44783
45109
  const traits = defaultTraits(raw2);
44784
45110
  const tools = Number(
44785
45111
  /^(\d+)/.exec(string2(record2(raw2.toolsVersion)._version) ?? "5")?.[1] ?? 5
44786
45112
  );
44787
- const declaredModes = array(raw2.swiftLanguageVersions).flatMap((mode) => {
44788
- const major = Number(/^(\d+)/.exec(string2(mode) ?? "")?.[1]);
45113
+ const declaredModeValues = array(raw2.swiftLanguageVersions).flatMap(
45114
+ (mode) => string2(mode) ?? []
45115
+ );
45116
+ const declaredModes = declaredModeValues.flatMap((mode) => {
45117
+ const major = Number(/^(\d+)/.exec(mode)?.[1]);
44789
45118
  return Number.isFinite(major) ? [major] : [];
44790
45119
  });
44791
45120
  const packageMode = Math.max(
@@ -44848,10 +45177,14 @@ function swiftPackageManifest(dir) {
44848
45177
  });
44849
45178
  }
44850
45179
  let languageMode = packageMode;
45180
+ let sourceLanguageMode = declaredModeValues.length ? declaredModeValues.reduce(
45181
+ (highest, mode) => Number(mode) > Number(highest) ? mode : highest
45182
+ ) : tools >= 6 ? "6" : tools >= 5 ? "5" : string2(record2(raw2.toolsVersion)._version) ?? "unknown";
44851
45183
  let mainActorIsolation = false;
44852
45184
  const defines = [];
44853
45185
  const libraries = [];
44854
45186
  const nativeSettings = [];
45187
+ const unsupportedSwiftSettings = [];
44855
45188
  for (const [tool, standard] of [
44856
45189
  ["c", string2(raw2.cLanguageStandard)],
44857
45190
  ["cxx", string2(raw2.cxxLanguageStandard)]
@@ -44862,6 +45195,16 @@ function swiftPackageManifest(dir) {
44862
45195
  for (const setting of array(target.settings)) {
44863
45196
  const { kind: rawKind, tool, condition } = record2(setting);
44864
45197
  const settingKind = record2(rawKind);
45198
+ if (tool === "swift") {
45199
+ const kinds = Object.keys(settingKind);
45200
+ const supported = kinds.length === 1 && (kinds[0] === "define" && /^[A-Za-z_][A-Za-z0-9_]*$/.test(
45201
+ string2(record2(settingKind.define)._0) ?? ""
45202
+ ) || kinds[0] === "swiftLanguageMode" && Object.keys(record2(condition)).length === 0 || kinds[0] === "defaultIsolation" && Object.keys(record2(condition)).length === 0 && ["MainActor", "nonisolated"].includes(
45203
+ string2(record2(settingKind.defaultIsolation)._0) ?? ""
45204
+ ));
45205
+ if (!supported)
45206
+ unsupportedSwiftSettings.push(JSON.stringify({ kind: rawKind, condition }));
45207
+ }
44865
45208
  if ((tool === "c" || tool === "cxx") && linksOnIOS(condition, traits)) {
44866
45209
  const config = string2(record2(condition).config);
44867
45210
  const header = string2(record2(settingKind.headerSearchPath)._0);
@@ -44881,6 +45224,7 @@ function swiftPackageManifest(dir) {
44881
45224
  });
44882
45225
  }
44883
45226
  const mode = string2(record2(settingKind.swiftLanguageMode)._0);
45227
+ if (tool === "swift" && mode) sourceLanguageMode = mode;
44884
45228
  if (mode)
44885
45229
  languageMode = Math.max(5, Number(/^(\d+)/.exec(mode)?.[1] ?? languageMode));
44886
45230
  if (string2(record2(settingKind.defaultIsolation)._0) === "MainActor")
@@ -44902,6 +45246,10 @@ function swiftPackageManifest(dir) {
44902
45246
  });
44903
45247
  }
44904
45248
  }
45249
+ if (!["5", "6"].includes(sourceLanguageMode))
45250
+ unsupportedSwiftSettings.push(
45251
+ `unsupported Swift language mode: ${sourceLanguageMode}`
45252
+ );
44905
45253
  targets.set(name4, {
44906
45254
  name: name4,
44907
45255
  type: kind,
@@ -44915,6 +45263,8 @@ function swiftPackageManifest(dir) {
44915
45263
  libraries,
44916
45264
  nativeSettings,
44917
45265
  declaresResources: array(target.resources).length > 0,
45266
+ hasPluginUsages: array(target.pluginUsages).length > 0,
45267
+ unsupportedSwiftSettings,
44918
45268
  publicHeadersPath: string2(target.publicHeadersPath) ?? "include",
44919
45269
  url: string2(target.url) ?? null,
44920
45270
  checksum: string2(target.checksum) ?? null
@@ -44922,7 +45272,7 @@ function swiftPackageManifest(dir) {
44922
45272
  }
44923
45273
  const name3 = string2(raw2.name);
44924
45274
  if (!name3) throw new Error(`swiftpm returned no package name for ${dir}`);
44925
- const manifest = { name: name3, dir, products, targets, packages };
45275
+ const manifest = { name: name3, dir, products, targets, packages, toolchain };
44926
45276
  evaluated.set(key2, manifest);
44927
45277
  return manifest;
44928
45278
  }
@@ -44952,6 +45302,7 @@ var import_node_child_process13, import_node_crypto14, import_node_fs22, import_
44952
45302
  var init_swift_package_manifest = __esm({
44953
45303
  "src/swift-package-manifest.ts"() {
44954
45304
  "use strict";
45305
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
44955
45306
  import_node_child_process13 = require("node:child_process");
44956
45307
  import_node_crypto14 = require("node:crypto");
44957
45308
  import_node_fs22 = __toESM(require("node:fs"), 1);
@@ -45253,6 +45604,7 @@ var import_node_child_process14, import_node_crypto15, import_node_fs23, import_
45253
45604
  var init_swift_packages = __esm({
45254
45605
  "src/swift-packages.ts"() {
45255
45606
  "use strict";
45607
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
45256
45608
  import_node_child_process14 = require("node:child_process");
45257
45609
  import_node_crypto15 = require("node:crypto");
45258
45610
  import_node_fs23 = __toESM(require("node:fs"), 1);
@@ -45313,6 +45665,7 @@ var import_node_fs24, import_node_path24;
45313
45665
  var init_swift_source_file = __esm({
45314
45666
  "src/swift-source-file.ts"() {
45315
45667
  "use strict";
45668
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
45316
45669
  import_node_fs24 = __toESM(require("node:fs"), 1);
45317
45670
  import_node_path24 = __toESM(require("node:path"), 1);
45318
45671
  }
@@ -45477,6 +45830,7 @@ var import_node_fs25, import_node_path25, isDirectory2, isSdkInclude;
45477
45830
  var init_swift_objc_compile = __esm({
45478
45831
  "src/swift-objc-compile.ts"() {
45479
45832
  "use strict";
45833
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
45480
45834
  import_node_fs25 = __toESM(require("node:fs"), 1);
45481
45835
  import_node_path25 = __toESM(require("node:path"), 1);
45482
45836
  init_home_paths();
@@ -45501,6 +45855,7 @@ var import_acorn, import_sucrase;
45501
45855
  var init_swift_standin_config = __esm({
45502
45856
  "src/swift-standin-config.ts"() {
45503
45857
  "use strict";
45858
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
45504
45859
  import_acorn = require("acorn");
45505
45860
  import_sucrase = require("sucrase");
45506
45861
  init_is_record();
@@ -45535,6 +45890,7 @@ var import_node_fs26;
45535
45890
  var init_output_lock_stdio = __esm({
45536
45891
  "src/output-lock-stdio.ts"() {
45537
45892
  "use strict";
45893
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
45538
45894
  import_node_fs26 = require("node:fs");
45539
45895
  }
45540
45896
  });
@@ -46216,6 +46572,7 @@ var STANDIN_EMIT_VERSION, STANDIN_IMPORTS, TYPE_KINDS, MEMBER_KINDS, ACCESSOR_WO
46216
46572
  var init_swift_standin_emit = __esm({
46217
46573
  "src/swift-standin-emit.ts"() {
46218
46574
  "use strict";
46575
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
46219
46576
  STANDIN_EMIT_VERSION = "12";
46220
46577
  STANDIN_IMPORTS = ["Foundation", "UIKit"];
46221
46578
  TYPE_KINDS = /* @__PURE__ */ new Set([
@@ -47543,6 +47900,7 @@ var import_node_child_process15, import_node_crypto16, import_node_fs27, import_
47543
47900
  var init_swift_standins = __esm({
47544
47901
  "src/swift-standins.ts"() {
47545
47902
  "use strict";
47903
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
47546
47904
  import_node_child_process15 = require("node:child_process");
47547
47905
  import_node_crypto16 = require("node:crypto");
47548
47906
  import_node_fs27 = __toESM(require("node:fs"), 1);
@@ -47711,6 +48069,7 @@ var SWIFT_COMPILE_PATH, MAX_SWIFT_COMPILE_FILES, DEFAULT_SWIFT_COMPILE_BUILD_MS,
47711
48069
  var init_swift_submit = __esm({
47712
48070
  "src/swift-submit.ts"() {
47713
48071
  "use strict";
48072
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
47714
48073
  init_is_record();
47715
48074
  init_swiftContract();
47716
48075
  SWIFT_COMPILE_PATH = "/api/swift-compile";
@@ -47727,7 +48086,7 @@ var init_swift_submit = __esm({
47727
48086
  MAX_SWIFT_COMPILE_IMAGES = 128;
47728
48087
  MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
47729
48088
  MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
47730
- SWIFT_HOST_ABI = 47;
48089
+ SWIFT_HOST_ABI = 48;
47731
48090
  POLL_INTERVAL_MS = 1500;
47732
48091
  }
47733
48092
  });
@@ -47937,8 +48296,14 @@ function xcodeLayout(root) {
47937
48296
  if (relative5 === ".." || relative5.startsWith(`..${import_node_path27.default.sep}`) || import_node_path27.default.isAbsolute(relative5))
47938
48297
  throw new Error(`swift input escapes the selected package: ${target.dir}`);
47939
48298
  const posix2 = relative5.split(import_node_path27.default.sep).join(import_node_path27.default.posix.sep);
48299
+ const packageMacros = [
48300
+ "SWIFT_PACKAGE=1",
48301
+ ...packageConfiguration === "debug" ? ["DEBUG=1"] : []
48302
+ ];
47940
48303
  targets.push({
47941
48304
  ...target,
48305
+ cDefines: packageMacros,
48306
+ cxxDefines: packageMacros,
47942
48307
  path: target.remote ? import_node_path27.default.posix.join(XCODE_PACKAGES_DIR, posix2) : posix2,
47943
48308
  exclude: [],
47944
48309
  defines: [
@@ -48095,6 +48460,12 @@ function xcodeManifest(layout) {
48095
48460
  ...target.mainActorIsolation ? [".defaultIsolation(MainActor.self)"] : [],
48096
48461
  ...(target.defines ?? []).map((name3) => `.define(${JSON.stringify(name3)})`)
48097
48462
  ].join(", ")}]`;
48463
+ const clangSettings = (target) => [
48464
+ ["cSettings", target.cDefines],
48465
+ ["cxxSettings", target.cxxDefines]
48466
+ ].map(
48467
+ ([label, macros]) => macros?.length ? `${label}: [${macros.map(clangMacroSetting).join(", ")}], ` : ""
48468
+ ).join("");
48098
48469
  const libraries = (target) => target.linkedLibraries?.length ? `, linkerSettings: [${target.linkedLibraries.map((name3) => `.linkedLibrary(${JSON.stringify(name3)})`).join(", ")}]` : "";
48099
48470
  return [
48100
48471
  "// swift-tools-version: 6.2",
@@ -48102,7 +48473,7 @@ function xcodeManifest(layout) {
48102
48473
  'let package = Package(name: "app", targets: [',
48103
48474
  ` .executableTarget(name: "${layout.app.moduleName}", path: "${XCODE_APP_DIR}", ${settings(layout.app)}),`,
48104
48475
  ...layout.targets.map(
48105
- (target) => target.systemLibrary ? ` .systemLibrary(name: "${target.name}", path: "${target.path}"),` : ` .target(name: "${target.name}", dependencies: ${JSON.stringify((target.dependencies ?? []).map((dependency) => dependency.name))}, path: "${target.path}", ${target.exclude.length > 0 ? `exclude: ${JSON.stringify(target.exclude)}, ` : ""}${target.resources ? "resources: [], " : ""}${settings(target)}${libraries(target)}),`
48476
+ (target) => target.systemLibrary ? ` .systemLibrary(name: "${target.name}", path: "${target.path}"),` : ` .target(name: "${target.name}", dependencies: ${JSON.stringify((target.dependencies ?? []).map((dependency) => dependency.name))}, path: "${target.path}", ${target.exclude.length > 0 ? `exclude: ${JSON.stringify(target.exclude)}, ` : ""}${target.resources ? "resources: [], " : ""}${clangSettings(target)}${settings(target)}${libraries(target)}),`
48106
48477
  ),
48107
48478
  "])",
48108
48479
  ""
@@ -48884,6 +49255,7 @@ var import_node_crypto17, import_node_fs28, import_node_path27, ARTIFACT_PATH, R
48884
49255
  var init_swift_host = __esm({
48885
49256
  "src/swift-host.ts"() {
48886
49257
  "use strict";
49258
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
48887
49259
  import_node_crypto17 = require("node:crypto");
48888
49260
  import_node_fs28 = __toESM(require("node:fs"), 1);
48889
49261
  import_node_path27 = __toESM(require("node:path"), 1);
@@ -49708,6 +50080,7 @@ var import_node_child_process16, import_node_crypto18, import_node_fs29, import_
49708
50080
  var init_expo_swift_host = __esm({
49709
50081
  "src/expo-swift-host.ts"() {
49710
50082
  "use strict";
50083
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
49711
50084
  import_node_child_process16 = require("node:child_process");
49712
50085
  import_node_crypto18 = require("node:crypto");
49713
50086
  import_node_fs29 = __toESM(require("node:fs"), 1);
@@ -49759,6 +50132,7 @@ var import_node_fs30;
49759
50132
  var init_process_liveness = __esm({
49760
50133
  "src/process-liveness.ts"() {
49761
50134
  "use strict";
50135
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
49762
50136
  import_node_fs30 = require("node:fs");
49763
50137
  }
49764
50138
  });
@@ -49877,6 +50251,7 @@ var import_fs, import_path, import_url, _monorepoRootCache, RUNTIME_VERSION_HOST
49877
50251
  var init_runtime_assets = __esm({
49878
50252
  "src/runtime-assets.ts"() {
49879
50253
  "use strict";
50254
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
49880
50255
  import_fs = __toESM(require("fs"), 1);
49881
50256
  import_path = __toESM(require("path"), 1);
49882
50257
  import_url = require("url");
@@ -49890,7 +50265,7 @@ var init_runtime_assets = __esm({
49890
50265
  var runtime_companion_default;
49891
50266
  var init_runtime_companion = __esm({
49892
50267
  "runtime-companion.json"() {
49893
- runtime_companion_default = { abi: 1, sha256: "f8112e72d9130f18700ad5452a0c7c15668e92fea21944e00893a85694924cb5", file: "node/cli-f8112e72d9130f18700ad5452a0c7c15668e92fea21944e00893a85694924cb5.cjs" };
50268
+ runtime_companion_default = { abi: 1, sha256: "64b30b73101e38ea8d4aaa3e07f22bdedd2736a7d1f0f21f9229f2f4daf45756", file: "node/cli-64b30b73101e38ea8d4aaa3e07f22bdedd2736a7d1f0f21f9229f2f4daf45756.cjs" };
49894
50269
  }
49895
50270
  });
49896
50271
 
@@ -49935,6 +50310,7 @@ var import_node_crypto19, import_node_fs31, import_node_module3, import_node_pat
49935
50310
  var init_cli_runtime = __esm({
49936
50311
  "src/cli-runtime.ts"() {
49937
50312
  "use strict";
50313
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
49938
50314
  import_node_crypto19 = require("node:crypto");
49939
50315
  import_node_fs31 = require("node:fs");
49940
50316
  import_node_module3 = require("node:module");
@@ -49950,6 +50326,7 @@ var DEFAULT_RUNTIME_CDN_ORIGIN, RNX_CHANGELOG_URL, RNX_CHANGELOG_API_URL, RNX_RU
49950
50326
  var init_runtime_delivery = __esm({
49951
50327
  "src/runtime-delivery.ts"() {
49952
50328
  "use strict";
50329
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
49953
50330
  init_src();
49954
50331
  init_cli_runtime();
49955
50332
  init_home_paths();
@@ -50004,6 +50381,7 @@ function isNativeViewSource(value) {
50004
50381
  var init_nativeViewSourceContract = __esm({
50005
50382
  "src/nativeViewSourceContract.ts"() {
50006
50383
  "use strict";
50384
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
50007
50385
  init_is_record();
50008
50386
  }
50009
50387
  });
@@ -50192,6 +50570,7 @@ var PEACH_CONFIG_QUERY_PARAM, BUNDLE_CONFIG_PREFIX, PEACH_CONFIGURED_FILES_HOOK;
50192
50570
  var init_config = __esm({
50193
50571
  "src/config.ts"() {
50194
50572
  "use strict";
50573
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
50195
50574
  init_version();
50196
50575
  init_bundleGlobalFooter();
50197
50576
  init_is_record();
@@ -50216,6 +50595,7 @@ function parseExpoManifestBody(body) {
50216
50595
  var init_expo_manifest_body = __esm({
50217
50596
  "src/expo-manifest-body.ts"() {
50218
50597
  "use strict";
50598
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
50219
50599
  }
50220
50600
  });
50221
50601
 
@@ -50278,6 +50658,7 @@ var METRO_BUNDLE_PATH;
50278
50658
  var init_native_dev_bundle_url = __esm({
50279
50659
  "src/native-dev-bundle-url.ts"() {
50280
50660
  "use strict";
50661
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
50281
50662
  init_backend_origin();
50282
50663
  METRO_BUNDLE_PATH = "/index.bundle?platform=ios&dev=true&hot=true&minify=false";
50283
50664
  }
@@ -50515,6 +50896,7 @@ var MANIFEST_PROBE_TIMEOUT_MS, manifestRequests;
50515
50896
  var init_dev_bundle_resolution = __esm({
50516
50897
  "src/dev-bundle-resolution.ts"() {
50517
50898
  "use strict";
50899
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
50518
50900
  init_backend_origin();
50519
50901
  init_expo_manifest_body();
50520
50902
  init_native_dev_bundle_url();
@@ -50538,6 +50920,7 @@ var KOTLIN_DISCOVERY_PATH, KOTLIN_GUEST_PATH;
50538
50920
  var init_kotlinDiscoveryContract = __esm({
50539
50921
  "src/kotlinDiscoveryContract.ts"() {
50540
50922
  "use strict";
50923
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
50541
50924
  KOTLIN_DISCOVERY_PATH = "/__peach/kotlin-host";
50542
50925
  KOTLIN_GUEST_PATH = "/__peach/kotlin-guest.js";
50543
50926
  }
@@ -50623,6 +51006,7 @@ var HOME_WIDGET_FAMILIES;
50623
51006
  var init_oneWidgetContract = __esm({
50624
51007
  "src/oneWidgetContract.ts"() {
50625
51008
  "use strict";
51009
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
50626
51010
  init_native_dev_bundle_url();
50627
51011
  HOME_WIDGET_FAMILIES = [
50628
51012
  "systemSmall",
@@ -50945,6 +51329,7 @@ var import_promises3, import_node_path30, MAX_PLIST_BYTES, MAX_CHILD_DEPTH, MAX_
50945
51329
  var init_settings_bundle = __esm({
50946
51330
  "src/settings-bundle.ts"() {
50947
51331
  "use strict";
51332
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
50948
51333
  import_promises3 = require("node:fs/promises");
50949
51334
  import_node_path30 = require("node:path");
50950
51335
  init_is_record();
@@ -50973,6 +51358,7 @@ var SWIFT_DISCOVERY_PATH, SWIFT_GUEST_PATH, SWIFT_ICON_PATH;
50973
51358
  var init_swiftDiscoveryContract = __esm({
50974
51359
  "src/swiftDiscoveryContract.ts"() {
50975
51360
  "use strict";
51361
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
50976
51362
  SWIFT_DISCOVERY_PATH = "/__peach/swift-host";
50977
51363
  SWIFT_GUEST_PATH = "/__peach/swift-guest.js";
50978
51364
  SWIFT_ICON_PATH = "/__peach/swift-icon";
@@ -51023,6 +51409,7 @@ var import_node_fs32, import_node_path31, import_node_url3, REGISTRY_REPO_PATH,
51023
51409
  var init_optional_demo_registry = __esm({
51024
51410
  "scripts/optional-demo-registry.ts"() {
51025
51411
  "use strict";
51412
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
51026
51413
  import_node_fs32 = require("node:fs");
51027
51414
  import_node_path31 = require("node:path");
51028
51415
  import_node_url3 = require("node:url");
@@ -52104,6 +52491,7 @@ var import_child_process, import_promises4, import_http, import_net, import_node
52104
52491
  var init_dev_server_scanner = __esm({
52105
52492
  "scripts/dev-server-scanner.ts"() {
52106
52493
  "use strict";
52494
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
52107
52495
  import_child_process = require("child_process");
52108
52496
  import_promises4 = require("fs/promises");
52109
52497
  import_http = __toESM(require("http"), 1);
@@ -52177,6 +52565,7 @@ var IS_STANDALONE;
52177
52565
  var init_standalone = __esm({
52178
52566
  "cli/standalone.ts"() {
52179
52567
  "use strict";
52568
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
52180
52569
  IS_STANDALONE = typeof __SOOTSIM_STANDALONE__ !== "undefined" && __SOOTSIM_STANDALONE__;
52181
52570
  }
52182
52571
  });
@@ -52213,6 +52602,7 @@ var import_node_fs34, import_node_path33, import_node_url4;
52213
52602
  var init_self_invocation = __esm({
52214
52603
  "cli/self-invocation.ts"() {
52215
52604
  "use strict";
52605
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
52216
52606
  import_node_fs34 = require("node:fs");
52217
52607
  import_node_path33 = require("node:path");
52218
52608
  import_node_url4 = require("node:url");
@@ -52240,6 +52630,7 @@ function parseAgentEventLine(line) {
52240
52630
  var init_agent_events = __esm({
52241
52631
  "src/agent-events.ts"() {
52242
52632
  "use strict";
52633
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
52243
52634
  }
52244
52635
  });
52245
52636
 
@@ -52267,6 +52658,7 @@ var ENVELOPE_MARKER;
52267
52658
  var init_agent_prompt = __esm({
52268
52659
  "src/agent-prompt.ts"() {
52269
52660
  "use strict";
52661
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
52270
52662
  ENVELOPE_MARKER = "sootsim-agent-prompt-v1";
52271
52663
  }
52272
52664
  });
@@ -52545,6 +52937,7 @@ var import_node_crypto20, import_node_fs35, import_node_path34, overrideDir, COS
52545
52937
  var init_attached_projects = __esm({
52546
52938
  "src/attached-projects.ts"() {
52547
52939
  "use strict";
52940
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
52548
52941
  import_node_crypto20 = require("node:crypto");
52549
52942
  import_node_fs35 = __toESM(require("node:fs"), 1);
52550
52943
  import_node_path34 = __toESM(require("node:path"), 1);
@@ -52971,6 +53364,7 @@ var import_node_child_process17, import_node_crypto21, import_node_fs36, import_
52971
53364
  var init_agent_sessions = __esm({
52972
53365
  "src/agent-sessions.ts"() {
52973
53366
  "use strict";
53367
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
52974
53368
  import_node_child_process17 = require("node:child_process");
52975
53369
  import_node_crypto21 = require("node:crypto");
52976
53370
  import_node_fs36 = __toESM(require("node:fs"), 1);
@@ -53009,6 +53403,7 @@ var import_node_crypto22, import_node_fs37, import_node_path36, WS_OPEN, SESSION
53009
53403
  var init_agent_host = __esm({
53010
53404
  "src/host/agent-host.ts"() {
53011
53405
  "use strict";
53406
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
53012
53407
  import_node_crypto22 = require("node:crypto");
53013
53408
  import_node_fs37 = __toESM(require("node:fs"), 1);
53014
53409
  import_node_path36 = __toESM(require("node:path"), 1);
@@ -53600,6 +53995,7 @@ var PACKAGE_VERSIONS_HEADER, FOOTER;
53600
53995
  var init_packageVersionsContract = __esm({
53601
53996
  "src/packageVersionsContract.ts"() {
53602
53997
  "use strict";
53998
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
53603
53999
  init_bundleGlobalFooter();
53604
54000
  PACKAGE_VERSIONS_HEADER = "X-Peach-Package-Versions";
53605
54001
  FOOTER = "__peachPackageVersions";
@@ -53611,6 +54007,7 @@ var LAZY_STUB_PATTERNS;
53611
54007
  var init_lazy_stub_patterns = __esm({
53612
54008
  "../peach-compat/src/lazy-stub-patterns.ts"() {
53613
54009
  "use strict";
54010
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
53614
54011
  LAZY_STUB_PATTERNS = [
53615
54012
  "@10play/tentap-editor",
53616
54013
  "@adobe/react-native-aepcore",
@@ -53821,6 +54218,7 @@ var NATIVE_STUB_PACKAGE_NAMES, NATIVE_RUNTIME_PACKAGE_NAMES;
53821
54218
  var init_native_package_names = __esm({
53822
54219
  "../peach-compat/src/generated/native-package-names.ts"() {
53823
54220
  "use strict";
54221
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
53824
54222
  init_light_native_package_names();
53825
54223
  NATIVE_STUB_PACKAGE_NAMES = [
53826
54224
  "@10play/tentap-editor",
@@ -54830,6 +55228,7 @@ var SOOTSIM_COMPAT_WRAPPER_REAL_PACKAGES, PEACH_REACT_NATIVE_UPSTREAM_MODULES, P
54830
55228
  var init_wrapper_real_packages = __esm({
54831
55229
  "../peach-compat/src/wrapper-real-packages.ts"() {
54832
55230
  "use strict";
55231
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
54833
55232
  SOOTSIM_COMPAT_WRAPPER_REAL_PACKAGES = {
54834
55233
  expoUiConfirmationDialog: {
54835
55234
  specifier: "@peach-internal/expo-ui-confirmation-dialog",
@@ -55300,6 +55699,7 @@ var COMPAT_STUBS;
55300
55699
  var init_stub_manifest = __esm({
55301
55700
  "../peach-compat/src/stub-manifest.ts"() {
55302
55701
  "use strict";
55702
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
55303
55703
  init_wrapper_real_packages();
55304
55704
  COMPAT_STUBS = {
55305
55705
  reactNativeScreens: {
@@ -55720,6 +56120,7 @@ function packageNameAt(modulePath, start) {
55720
56120
  var init_stub_pattern_matcher = __esm({
55721
56121
  "src/stub-pattern-matcher.ts"() {
55722
56122
  "use strict";
56123
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
55723
56124
  }
55724
56125
  });
55725
56126
 
@@ -55900,6 +56301,7 @@ var import_fs2, import_path2, INSTALL_RECORD_FILES, scans;
55900
56301
  var init_installed_package_versions = __esm({
55901
56302
  "src/installed-package-versions.ts"() {
55902
56303
  "use strict";
56304
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
55903
56305
  import_fs2 = __toESM(require("fs"), 1);
55904
56306
  import_path2 = __toESM(require("path"), 1);
55905
56307
  init_lazy_stub_patterns();
@@ -55965,6 +56367,7 @@ async function resolveMetroProjectRoot(bundleUrl) {
55965
56367
  var init_metro_project_root = __esm({
55966
56368
  "src/metro-project-root.ts"() {
55967
56369
  "use strict";
56370
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
55968
56371
  init_dev_server_scanner();
55969
56372
  init_backend_origin();
55970
56373
  init_dev_bundle_resolution();
@@ -55988,6 +56391,7 @@ var import_fs3, import_path3;
55988
56391
  var init_dev_server_package_versions = __esm({
55989
56392
  "src/host/dev-server-package-versions.ts"() {
55990
56393
  "use strict";
56394
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
55991
56395
  import_fs3 = __toESM(require("fs"), 1);
55992
56396
  import_path3 = __toESM(require("path"), 1);
55993
56397
  init_installed_package_versions();
@@ -56061,6 +56465,7 @@ var FETCH_PROXY_NATIVE_USER_AGENT_HEADER, FETCH_PROXY_FAILURE_PARAM, FETCH_PROXY
56061
56465
  var init_fetch_proxy_overrides = __esm({
56062
56466
  "src/host/fetch-proxy-overrides.ts"() {
56063
56467
  "use strict";
56468
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
56064
56469
  FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
56065
56470
  FETCH_PROXY_FAILURE_PARAM = "peachFailure";
56066
56471
  FETCH_PROXY_FAILURE_HEADER = "x-peach-upstream-failure";
@@ -56138,6 +56543,7 @@ var LOOPBACK_PORTS;
56138
56543
  var init_loopback_ports = __esm({
56139
56544
  "src/host/loopback-ports.ts"() {
56140
56545
  "use strict";
56546
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
56141
56547
  init_backend_origin();
56142
56548
  LOOPBACK_PORTS = /* @__PURE__ */ new Map();
56143
56549
  for (const pair of process.env.PEACH_LOOPBACK_PORTS?.split(",").filter(Boolean) ?? []) {
@@ -56201,6 +56607,7 @@ var import_stream, import_promises5, ROLLDOWN_INVENTORY_HEADER;
56201
56607
  var init_rolldown_bundle_forward = __esm({
56202
56608
  "src/host/rolldown-bundle-forward.ts"() {
56203
56609
  "use strict";
56610
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
56204
56611
  import_stream = require("stream");
56205
56612
  import_promises5 = require("stream/promises");
56206
56613
  init_cli_runtime();
@@ -56540,6 +56947,7 @@ var import_http2, import_https, import_node_http2, import_promises6, fetchProxyH
56540
56947
  var init_fetch_proxy_handler = __esm({
56541
56948
  "src/host/fetch-proxy-handler.ts"() {
56542
56949
  "use strict";
56950
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
56543
56951
  import_http2 = __toESM(require("http"), 1);
56544
56952
  import_https = __toESM(require("https"), 1);
56545
56953
  import_node_http2 = require("node:http2");
@@ -56687,6 +57095,7 @@ var import_node_crypto23, import_node_fs38, import_node_http22, import_node_path
56687
57095
  var init_fetch_proxy_transport = __esm({
56688
57096
  "src/host/fetch-proxy-transport.ts"() {
56689
57097
  "use strict";
57098
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
56690
57099
  import_node_crypto23 = require("node:crypto");
56691
57100
  import_node_fs38 = require("node:fs");
56692
57101
  import_node_http22 = require("node:http2");
@@ -56725,6 +57134,7 @@ function isProcessAlive2(pid) {
56725
57134
  var init_lease_owner = __esm({
56726
57135
  "src/host/lease-owner.ts"() {
56727
57136
  "use strict";
57137
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
56728
57138
  }
56729
57139
  });
56730
57140
 
@@ -56804,6 +57214,7 @@ var import_child_process2;
56804
57214
  var init_open_url = __esm({
56805
57215
  "src/host/open-url.ts"() {
56806
57216
  "use strict";
57217
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
56807
57218
  import_child_process2 = require("child_process");
56808
57219
  }
56809
57220
  });
@@ -56885,6 +57296,7 @@ var PLANE_FLAG_READ_ONLY, PLANE_FLAG_BINARY;
56885
57296
  var init_planeProtocol = __esm({
56886
57297
  "../peach-box/src/planeProtocol.ts"() {
56887
57298
  "use strict";
57299
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
56888
57300
  PLANE_FLAG_READ_ONLY = 1;
56889
57301
  PLANE_FLAG_BINARY = 2;
56890
57302
  }
@@ -56894,6 +57306,7 @@ var init_planeProtocol = __esm({
56894
57306
  var init_projectFileCache = __esm({
56895
57307
  "../peach-box/src/projectFileCache.ts"() {
56896
57308
  "use strict";
57309
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
56897
57310
  }
56898
57311
  });
56899
57312
 
@@ -56901,6 +57314,7 @@ var init_projectFileCache = __esm({
56901
57314
  var init_planeClient = __esm({
56902
57315
  "../peach-box/src/planeClient.ts"() {
56903
57316
  "use strict";
57317
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
56904
57318
  init_planeProtocol();
56905
57319
  init_projectFileCache();
56906
57320
  }
@@ -56910,6 +57324,7 @@ var init_planeClient = __esm({
56910
57324
  var init_projectFilePlaneRpc = __esm({
56911
57325
  "../peach-box/src/projectFilePlaneRpc.ts"() {
56912
57326
  "use strict";
57327
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
56913
57328
  init_planeProtocol();
56914
57329
  }
56915
57330
  });
@@ -56918,6 +57333,7 @@ var init_projectFilePlaneRpc = __esm({
56918
57333
  var init_planeTransport_browser = __esm({
56919
57334
  "../peach-box/src/planeTransport.browser.ts"() {
56920
57335
  "use strict";
57336
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
56921
57337
  }
56922
57338
  });
56923
57339
 
@@ -56925,6 +57341,7 @@ var init_planeTransport_browser = __esm({
56925
57341
  var init_plane = __esm({
56926
57342
  "../peach-box/src/plane.ts"() {
56927
57343
  "use strict";
57344
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
56928
57345
  init_planeProtocol();
56929
57346
  init_planeClient();
56930
57347
  init_projectFilePlaneRpc();
@@ -56952,6 +57369,7 @@ var import_node_child_process18, import_node_fs39, import_node_path38, CheckoutR
56952
57369
  var init_checkout_plane = __esm({
56953
57370
  "cli/commands/box/checkout-plane.ts"() {
56954
57371
  "use strict";
57372
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
56955
57373
  import_node_child_process18 = require("node:child_process");
56956
57374
  import_node_fs39 = __toESM(require("node:fs"), 1);
56957
57375
  import_node_path38 = __toESM(require("node:path"), 1);
@@ -57089,6 +57507,7 @@ var import_node_fs40, import_node_path39, WS_OPEN2, PlaneNotRegisteredError, Pla
57089
57507
  var init_plane_host = __esm({
57090
57508
  "src/host/plane-host.ts"() {
57091
57509
  "use strict";
57510
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
57092
57511
  import_node_fs40 = __toESM(require("node:fs"), 1);
57093
57512
  import_node_path39 = __toESM(require("node:path"), 1);
57094
57513
  init_plane();
@@ -57327,6 +57746,7 @@ var sep, delimiter, posix, posixPath_default;
57327
57746
  var init_posixPath = __esm({
57328
57747
  "../contrast-bundler/src/posixPath.ts"() {
57329
57748
  "use strict";
57749
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
57330
57750
  sep = "/";
57331
57751
  delimiter = ":";
57332
57752
  posix = {
@@ -57542,6 +57962,7 @@ var import_dist, import_parser3, import_types, REPLACEMENT_MODULE_EXTENSIONS, IM
57542
57962
  var init_replacementModule = __esm({
57543
57963
  "../contrast-bundler/src/replacementModule.ts"() {
57544
57964
  "use strict";
57965
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
57545
57966
  import_dist = require("sucrase/dist/index.js");
57546
57967
  import_parser3 = require("sucrase/dist/parser/index.js");
57547
57968
  import_types = require("sucrase/dist/parser/tokenizer/types.js");
@@ -57714,6 +58135,7 @@ var import_node_fs41, import_promises7, import_node_path40, REPLACEMENT_MODULE_R
57714
58135
  var init_replacement_module_handler = __esm({
57715
58136
  "src/host/replacement-module-handler.ts"() {
57716
58137
  "use strict";
58138
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
57717
58139
  import_node_fs41 = require("node:fs");
57718
58140
  import_promises7 = __toESM(require("node:fs/promises"), 1);
57719
58141
  import_node_path40 = __toESM(require("node:path"), 1);
@@ -57788,6 +58210,7 @@ var SCAN_FRESH_MS;
57788
58210
  var init_server_scan_handler = __esm({
57789
58211
  "src/host/server-scan-handler.ts"() {
57790
58212
  "use strict";
58213
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
57791
58214
  init_dev_server_scanner();
57792
58215
  init_backend_origin();
57793
58216
  SCAN_FRESH_MS = 2e3;
@@ -57799,6 +58222,7 @@ var LAUNCH_METADATA_QUERY_PARAM, LAUNCH_METADATA_KEYS;
57799
58222
  var init_launchMetadataContract = __esm({
57800
58223
  "src/launchMetadataContract.ts"() {
57801
58224
  "use strict";
58225
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
57802
58226
  LAUNCH_METADATA_QUERY_PARAM = "launchMetadata";
57803
58227
  LAUNCH_METADATA_KEYS = [
57804
58228
  "appFonts",
@@ -57926,6 +58350,7 @@ var import_node_crypto24, import_node_fs42, import_node_path41, STAGED_PREFIX, S
57926
58350
  var init_staged_host_files = __esm({
57927
58351
  "src/host/staged-host-files.ts"() {
57928
58352
  "use strict";
58353
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
57929
58354
  import_node_crypto24 = require("node:crypto");
57930
58355
  import_node_fs42 = __toESM(require("node:fs"), 1);
57931
58356
  import_node_path41 = __toESM(require("node:path"), 1);
@@ -58385,6 +58810,7 @@ var import_crypto, import_http3, import_https2, import_net2, import_tls, import_
58385
58810
  var init_websocket_proxy = __esm({
58386
58811
  "src/host/websocket-proxy.ts"() {
58387
58812
  "use strict";
58813
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
58388
58814
  import_crypto = require("crypto");
58389
58815
  import_http3 = require("http");
58390
58816
  import_https2 = require("https");
@@ -58435,6 +58861,7 @@ var FOOTER2;
58435
58861
  var init_androidAutolinkingContract = __esm({
58436
58862
  "src/androidAutolinkingContract.ts"() {
58437
58863
  "use strict";
58864
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
58438
58865
  init_bundleGlobalFooter();
58439
58866
  FOOTER2 = "__peachAndroidAutolinkedPackages";
58440
58867
  }
@@ -58491,6 +58918,7 @@ var import_node_child_process19, import_node_fs43, import_node_module4, import_n
58491
58918
  var init_android_autolinking = __esm({
58492
58919
  "src/android-autolinking.ts"() {
58493
58920
  "use strict";
58921
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
58494
58922
  import_node_child_process19 = require("node:child_process");
58495
58923
  import_node_fs43 = __toESM(require("node:fs"), 1);
58496
58924
  import_node_module4 = require("node:module");
@@ -58543,6 +58971,7 @@ var import_node_crypto25, import_node_fs44, import_node_path43, import_node_url5
58543
58971
  var init_kotlin_module = __esm({
58544
58972
  "src/kotlin-module.ts"() {
58545
58973
  "use strict";
58974
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
58546
58975
  import_node_crypto25 = require("node:crypto");
58547
58976
  import_node_fs44 = __toESM(require("node:fs"), 1);
58548
58977
  import_node_path43 = __toESM(require("node:path"), 1);
@@ -58660,6 +59089,7 @@ var import_node_child_process20, import_node_crypto26, import_node_fs45, import_
58660
59089
  var init_kotlin_toolchain = __esm({
58661
59090
  "src/kotlin-toolchain.ts"() {
58662
59091
  "use strict";
59092
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
58663
59093
  import_node_child_process20 = require("node:child_process");
58664
59094
  import_node_crypto26 = require("node:crypto");
58665
59095
  import_node_fs45 = __toESM(require("node:fs"), 1);
@@ -58696,6 +59126,7 @@ var platform, KOTLIN_SDK_PROFILES, KOTLIN_SDK_FILES;
58696
59126
  var init_kotlinSdkContract = __esm({
58697
59127
  "src/kotlinSdkContract.ts"() {
58698
59128
  "use strict";
59129
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
58699
59130
  init_is_record();
58700
59131
  platform = ["Sources", "JniPlatformSources", "JniSources"];
58701
59132
  KOTLIN_SDK_PROFILES = {
@@ -58796,6 +59227,7 @@ var import_node_child_process21, import_node_crypto27, import_node_fs46, import_
58796
59227
  var init_kotlin_sdk = __esm({
58797
59228
  "src/kotlin-sdk.ts"() {
58798
59229
  "use strict";
59230
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
58799
59231
  import_node_child_process21 = require("node:child_process");
58800
59232
  import_node_crypto27 = require("node:crypto");
58801
59233
  import_node_fs46 = __toESM(require("node:fs"), 1);
@@ -58881,6 +59313,7 @@ var VIEW_MODEL, ANDROID_VIEW_MODEL, APPLICATION2, HANDLE;
58881
59313
  var init_kotlin_view_models = __esm({
58882
59314
  "src/kotlin-view-models.ts"() {
58883
59315
  "use strict";
59316
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
58884
59317
  init_is_record();
58885
59318
  VIEW_MODEL = "androidx.lifecycle.ViewModel";
58886
59319
  ANDROID_VIEW_MODEL = "androidx.lifecycle.AndroidViewModel";
@@ -59897,6 +60330,7 @@ var import_node_child_process22, import_node_crypto28, import_node_fs47, import_
59897
60330
  var init_kotlin_host = __esm({
59898
60331
  "src/kotlin-host.ts"() {
59899
60332
  "use strict";
60333
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
59900
60334
  import_node_child_process22 = require("node:child_process");
59901
60335
  import_node_crypto28 = require("node:crypto");
59902
60336
  import_node_fs47 = __toESM(require("node:fs"), 1);
@@ -60080,6 +60514,7 @@ var import_node_fs48, import_node_path47, EXPO_KOTLIN_ROUTE, compiling2;
60080
60514
  var init_expo_kotlin_host = __esm({
60081
60515
  "src/expo-kotlin-host.ts"() {
60082
60516
  "use strict";
60517
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
60083
60518
  import_node_fs48 = __toESM(require("node:fs"), 1);
60084
60519
  import_node_path47 = __toESM(require("node:path"), 1);
60085
60520
  init_android_autolinking();
@@ -60199,6 +60634,7 @@ var LEGACY_HARDWARE_BUTTONS, PIXEL_HARDWARE_BUTTONS, GALAXY_HARDWARE_BUTTONS, AN
60199
60634
  var init_device_catalog = __esm({
60200
60635
  "src/device-catalog.ts"() {
60201
60636
  "use strict";
60637
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
60202
60638
  LEGACY_HARDWARE_BUTTONS = {
60203
60639
  width: 2.5,
60204
60640
  lock: { side: "right", top: 188.7, height: 68.1 },
@@ -60953,6 +61389,7 @@ var whitespace, literal2, lineBreak, metroLayoutParser;
60953
61389
  var init_metro_layout_parser = __esm({
60954
61390
  "src/metro-layout-parser.ts"() {
60955
61391
  "use strict";
61392
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
60956
61393
  whitespace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/y;
60957
61394
  literal2 = /(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/y;
60958
61395
  lineBreak = /[\r\n\u2028\u2029]/;
@@ -61063,6 +61500,7 @@ var RNX_METRO_MODULE_IDENTITY_VERSION;
61063
61500
  var init_metro_production_bundle = __esm({
61064
61501
  "src/metro-production-bundle.ts"() {
61065
61502
  "use strict";
61503
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
61066
61504
  init_bundleGlobalFooter();
61067
61505
  RNX_METRO_MODULE_IDENTITY_VERSION = 2;
61068
61506
  }
@@ -61131,6 +61569,7 @@ var SECURE_STORE_PLAINTEXT_PREFIX;
61131
61569
  var init_storageSnapshotContract = __esm({
61132
61570
  "src/storageSnapshotContract.ts"() {
61133
61571
  "use strict";
61572
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
61134
61573
  SECURE_STORE_PLAINTEXT_PREFIX = "__sootsim_secure_store_plaintext:";
61135
61574
  }
61136
61575
  });
@@ -61140,6 +61579,7 @@ var PEACH_BUNDLE_ASSET_PREFIX;
61140
61579
  var init_bundle_asset_resource = __esm({
61141
61580
  "src/bundle-asset-resource.ts"() {
61142
61581
  "use strict";
61582
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
61143
61583
  PEACH_BUNDLE_ASSET_PREFIX = "peach-asset://";
61144
61584
  }
61145
61585
  });
@@ -61946,6 +62386,7 @@ var EXPRESSION_KEYWORDS, PLACEHOLDER_JPEG, METRO_ASSET_PLACEHOLDERS;
61946
62386
  var init_metroAssetArtifact = __esm({
61947
62387
  "../contrast-bundler/src/metroAssetArtifact.ts"() {
61948
62388
  "use strict";
62389
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
61949
62390
  init_bundle_asset_resource();
61950
62391
  EXPRESSION_KEYWORDS = /* @__PURE__ */ new Set([
61951
62392
  "await",
@@ -62007,6 +62448,7 @@ var FOOTER3;
62007
62448
  var init_hostVersionEvidence = __esm({
62008
62449
  "../contrast-bundler/src/hostVersionEvidence.ts"() {
62009
62450
  "use strict";
62451
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
62010
62452
  init_bundleGlobalFooter();
62011
62453
  FOOTER3 = "hostVersionEvidence";
62012
62454
  }
@@ -62078,6 +62520,7 @@ var import_gen_mapping, import_trace_mapping;
62078
62520
  var init_metroDebugSourceMap = __esm({
62079
62521
  "../contrast-bundler/src/metroDebugSourceMap.ts"() {
62080
62522
  "use strict";
62523
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
62081
62524
  import_gen_mapping = require("@jridgewell/gen-mapping");
62082
62525
  import_trace_mapping = require("@jridgewell/trace-mapping");
62083
62526
  }
@@ -62282,6 +62725,7 @@ var import_magic_string, import_config2, import_metro_production_bundle, import_
62282
62725
  var init_metroCloudArtifact = __esm({
62283
62726
  "../contrast-bundler/src/metroCloudArtifact.ts"() {
62284
62727
  "use strict";
62728
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
62285
62729
  import_magic_string = __toESM(require("magic-string"), 1);
62286
62730
  import_config2 = require("peachsim/config");
62287
62731
  import_metro_production_bundle = require("peachsim/metro-production-bundle");
@@ -62325,6 +62769,7 @@ var RNX_CLOUD_MAX_ARTIFACT_BYTES, RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES, RNX_CLOUD_
62325
62769
  var init_cloud_contract = __esm({
62326
62770
  "src/cloud-contract.ts"() {
62327
62771
  "use strict";
62772
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
62328
62773
  RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
62329
62774
  RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES = 1024 * 1024;
62330
62775
  RNX_CLOUD_COMMAND_SCOPES = {
@@ -62506,6 +62951,7 @@ var CLOUD_SESSION_VERSION, MAX_ENCODED_SESSION_BYTES, PEACH_CLOUD_SESSION_ENV, R
62506
62951
  var init_cloud_session = __esm({
62507
62952
  "cli/cloud-session.ts"() {
62508
62953
  "use strict";
62954
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
62509
62955
  init_backend_origin();
62510
62956
  init_is_record();
62511
62957
  CLOUD_SESSION_VERSION = 3;
@@ -62522,6 +62968,7 @@ var import_node_fs49, nodeRepoFileReader;
62522
62968
  var init_nodeRepoFileReader = __esm({
62523
62969
  "cli/commands/nodeRepoFileReader.ts"() {
62524
62970
  "use strict";
62971
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
62525
62972
  import_node_fs49 = require("node:fs");
62526
62973
  nodeRepoFileReader = {
62527
62974
  exists: import_node_fs49.existsSync,
@@ -62744,6 +63191,7 @@ var import_node_fs50, import_node_path48, import_json52, CONFIG_EXTENSIONS, REPO
62744
63191
  var init_detect = __esm({
62745
63192
  "cli/commands/detect.ts"() {
62746
63193
  "use strict";
63194
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
62747
63195
  import_node_fs50 = require("node:fs");
62748
63196
  import_node_path48 = require("node:path");
62749
63197
  import_json52 = __toESM(require_lib(), 1);
@@ -63372,6 +63820,7 @@ var import_node_crypto29, import_node_fs51, import_node_path49, import_node_vm,
63372
63820
  var init_cloud_client = __esm({
63373
63821
  "cli/cloud-client.ts"() {
63374
63822
  "use strict";
63823
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
63375
63824
  import_node_crypto29 = require("node:crypto");
63376
63825
  import_node_fs51 = require("node:fs");
63377
63826
  import_node_path49 = require("node:path");
@@ -63608,6 +64057,7 @@ async function sendToBox(options) {
63608
64057
  var init_send_to_box = __esm({
63609
64058
  "cli/send-to-box.ts"() {
63610
64059
  "use strict";
64060
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
63611
64061
  init_cli_runtime();
63612
64062
  init_device_catalog();
63613
64063
  init_is_record();
@@ -63661,6 +64111,7 @@ var import_child_process3, import_crypto2, import_fs4, import_http4, import_os,
63661
64111
  var init_bridge_host = __esm({
63662
64112
  "src/host/bridge-host.ts"() {
63663
64113
  "use strict";
64114
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
63664
64115
  import_child_process3 = __toESM(require("child_process"), 1);
63665
64116
  import_crypto2 = require("crypto");
63666
64117
  import_fs4 = __toESM(require("fs"), 1);
@@ -63668,10 +64119,10 @@ var init_bridge_host = __esm({
63668
64119
  import_os = __toESM(require("os"), 1);
63669
64120
  import_path4 = __toESM(require("path"), 1);
63670
64121
  import_ws2 = require("ws");
63671
- init_chromium_admission();
63672
64122
  init_automatic_update_policy();
63673
64123
  init_bridge_constants();
63674
64124
  init_bridge_contract();
64125
+ init_chromium_admission();
63675
64126
  init_cli_version();
63676
64127
  init_desktop_host_delivery();
63677
64128
  init_expo_swift_host();
@@ -65725,6 +66176,7 @@ var DEFAULT_SOOTSIM_SHELL_URL;
65725
66176
  var init_cli_constants = __esm({
65726
66177
  "src/cli-constants.ts"() {
65727
66178
  "use strict";
66179
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
65728
66180
  DEFAULT_SOOTSIM_SHELL_URL = "http://localhost:5173/";
65729
66181
  }
65730
66182
  });
@@ -65927,6 +66379,7 @@ var import_child_process4, import_fs5, import_module, cached3, cachedComm, cache
65927
66379
  var init_parent_pid = __esm({
65928
66380
  "cli/parent-pid.ts"() {
65929
66381
  "use strict";
66382
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
65930
66383
  import_child_process4 = require("child_process");
65931
66384
  import_fs5 = require("fs");
65932
66385
  import_module = require("module");
@@ -65968,6 +66421,7 @@ var import_node_crypto30, import_node_fs52, import_node_path50;
65968
66421
  var init_secure_file = __esm({
65969
66422
  "cli/secure-file.ts"() {
65970
66423
  "use strict";
66424
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
65971
66425
  import_node_crypto30 = require("node:crypto");
65972
66426
  import_node_fs52 = require("node:fs");
65973
66427
  import_node_path50 = require("node:path");
@@ -66116,6 +66570,7 @@ var import_fs6, import_os2, import_path5, CURRENT_SIM_VERSION, CURRENT_SIM_PATH_
66116
66570
  var init_current_sim = __esm({
66117
66571
  "cli/current-sim.ts"() {
66118
66572
  "use strict";
66573
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
66119
66574
  import_fs6 = require("fs");
66120
66575
  import_os2 = require("os");
66121
66576
  import_path5 = require("path");
@@ -66239,6 +66694,7 @@ var import_node_child_process23, import_node_fs53, import_node_os10, import_node
66239
66694
  var init_pause_aware_timeout = __esm({
66240
66695
  "cli/pause-aware-timeout.ts"() {
66241
66696
  "use strict";
66697
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
66242
66698
  import_node_child_process23 = require("node:child_process");
66243
66699
  import_node_fs53 = require("node:fs");
66244
66700
  import_node_os10 = __toESM(require("node:os"), 1);
@@ -66982,6 +67438,7 @@ var import_node_fs54, import_node_path52, import_ws3, PEACH_PLACEMENT_ENV, resol
66982
67438
  var init_ws_bridge = __esm({
66983
67439
  "cli/ws-bridge.ts"() {
66984
67440
  "use strict";
67441
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
66985
67442
  import_node_fs54 = __toESM(require("node:fs"), 1);
66986
67443
  import_node_path52 = __toESM(require("node:path"), 1);
66987
67444
  import_ws3 = require("ws");
@@ -67061,6 +67518,7 @@ function formatLockOwner(owner) {
67061
67518
  var init_agent_identity = __esm({
67062
67519
  "src/agent-identity.ts"() {
67063
67520
  "use strict";
67521
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
67064
67522
  }
67065
67523
  });
67066
67524
 
@@ -67098,6 +67556,7 @@ var APP_URL_SCHEME_RE;
67098
67556
  var init_app_url = __esm({
67099
67557
  "src/app-url.ts"() {
67100
67558
  "use strict";
67559
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
67101
67560
  APP_URL_SCHEME_RE = /^[A-Za-z][A-Za-z0-9+.-]*:/;
67102
67561
  }
67103
67562
  });
@@ -67211,6 +67670,7 @@ var import_node_fs55, import_node_path53, DEFAULT_ENV_FILE, DOTENV_PATTERN, BUIL
67211
67670
  var init_dot_env = __esm({
67212
67671
  "src/dot-env.ts"() {
67213
67672
  "use strict";
67673
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
67214
67674
  import_node_fs55 = __toESM(require("node:fs"), 1);
67215
67675
  import_node_path53 = __toESM(require("node:path"), 1);
67216
67676
  DEFAULT_ENV_FILE = ".env";
@@ -67273,6 +67733,7 @@ var EXPO_SWIFT_READY_TIMEOUT_MS, EXPO_SWIFT_READY_PROGRESS_MS;
67273
67733
  var init_expo_swift_ready = __esm({
67274
67734
  "src/expo-swift-ready.ts"() {
67275
67735
  "use strict";
67736
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
67276
67737
  EXPO_SWIFT_READY_TIMEOUT_MS = 30 * 6e4;
67277
67738
  EXPO_SWIFT_READY_PROGRESS_MS = 3e4;
67278
67739
  }
@@ -67286,6 +67747,7 @@ var FLOW_TIMEOUT_SCALE_ENV;
67286
67747
  var init_flow_timeout_scale = __esm({
67287
67748
  "src/flow-timeout-scale.ts"() {
67288
67749
  "use strict";
67750
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
67289
67751
  FLOW_TIMEOUT_SCALE_ENV = "SOOTSIM_FLOW_TIMEOUT_SCALE";
67290
67752
  }
67291
67753
  });
@@ -67663,6 +68125,7 @@ var import_node_child_process24, import_node_fs56, import_node_os11, import_node
67663
68125
  var init_native_firebase_config = __esm({
67664
68126
  "src/native-firebase-config.ts"() {
67665
68127
  "use strict";
68128
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
67666
68129
  import_node_child_process24 = require("node:child_process");
67667
68130
  import_node_fs56 = __toESM(require("node:fs"), 1);
67668
68131
  import_node_os11 = __toESM(require("node:os"), 1);
@@ -67700,6 +68163,24 @@ function profileIndexPath() {
67700
68163
  function playwrightProfileUserDataDir(profileId) {
67701
68164
  return import_path6.default.join(profilesDir(), "playwright", normalizeProfileId(profileId));
67702
68165
  }
68166
+ function liveBrowserPidForPlaywrightProfile(profileId) {
68167
+ let target;
68168
+ try {
68169
+ target = import_fs7.default.readlinkSync(
68170
+ import_path6.default.join(playwrightProfileUserDataDir(profileId), "SingletonLock")
68171
+ );
68172
+ } catch {
68173
+ return null;
68174
+ }
68175
+ const pid = Number(target.slice(target.lastIndexOf("-") + 1));
68176
+ if (!Number.isInteger(pid) || pid < 1) return null;
68177
+ try {
68178
+ process.kill(pid, 0);
68179
+ return pid;
68180
+ } catch (error) {
68181
+ return error instanceof Error && Reflect.get(error, "code") === "EPERM" ? pid : null;
68182
+ }
68183
+ }
67703
68184
  function readIndexRaw() {
67704
68185
  try {
67705
68186
  const parsed = JSON.parse(
@@ -67777,6 +68258,7 @@ var import_fs7, import_path6, DEFAULT_PROFILE_ID, PROFILE_INDEX_FILE, PROFILE_IN
67777
68258
  var init_profiles = __esm({
67778
68259
  "src/profiles.ts"() {
67779
68260
  "use strict";
68261
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
67780
68262
  import_fs7 = __toESM(require("fs"), 1);
67781
68263
  import_path6 = __toESM(require("path"), 1);
67782
68264
  init_home_paths();
@@ -67800,6 +68282,7 @@ var MIME_BY_EXTENSION, EXTENSION_BY_MIME;
67800
68282
  var init_uttype_mime = __esm({
67801
68283
  "../peach-compat/src/stubs/uttype-mime.ts"() {
67802
68284
  "use strict";
68285
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
67803
68286
  MIME_BY_EXTENSION = {
67804
68287
  aac: "audio/aac",
67805
68288
  bmp: "image/bmp",
@@ -67870,6 +68353,7 @@ function isAppBundleResourcePath(path62) {
67870
68353
  var init_appBundleResourcesContract = __esm({
67871
68354
  "src/appBundleResourcesContract.ts"() {
67872
68355
  "use strict";
68356
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
67873
68357
  }
67874
68358
  });
67875
68359
 
@@ -67914,6 +68398,7 @@ var import_node_crypto31, import_node_fs57, import_node_path55;
67914
68398
  var init_app_bundle_resources = __esm({
67915
68399
  "cli/app-bundle-resources.ts"() {
67916
68400
  "use strict";
68401
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
67917
68402
  import_node_crypto31 = require("node:crypto");
67918
68403
  import_node_fs57 = __toESM(require("node:fs"), 1);
67919
68404
  import_node_path55 = __toESM(require("node:path"), 1);
@@ -67986,6 +68471,7 @@ var import_node_fs58, import_node_path56, ACCENT_BUILD_SETTING, PLIST_ACCENT;
67986
68471
  var init_app_catalog = __esm({
67987
68472
  "cli/app-catalog.ts"() {
67988
68473
  "use strict";
68474
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
67989
68475
  import_node_fs58 = __toESM(require("node:fs"), 1);
67990
68476
  import_node_path56 = __toESM(require("node:path"), 1);
67991
68477
  init_bundleAssets();
@@ -68028,6 +68514,7 @@ var import_node_fs59, import_node_path57, EXPO_APP_CONFIG_NAMES, PEACH_APP_CONFI
68028
68514
  var init_app_project = __esm({
68029
68515
  "cli/app-project.ts"() {
68030
68516
  "use strict";
68517
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
68031
68518
  import_node_fs59 = __toESM(require("node:fs"), 1);
68032
68519
  import_node_path57 = __toESM(require("node:path"), 1);
68033
68520
  EXPO_APP_CONFIG_NAMES = [
@@ -68133,6 +68620,7 @@ var import_node_fs60, import_node_path58;
68133
68620
  var init_nitro_source = __esm({
68134
68621
  "src/nitro-source.ts"() {
68135
68622
  "use strict";
68623
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
68136
68624
  import_node_fs60 = __toESM(require("node:fs"), 1);
68137
68625
  import_node_path58 = __toESM(require("node:path"), 1);
68138
68626
  init_swift_source_file();
@@ -68162,6 +68650,7 @@ var import_oxc_parser;
68162
68650
  var init_visit_parsed_program = __esm({
68163
68651
  "src/visit-parsed-program.ts"() {
68164
68652
  "use strict";
68653
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
68165
68654
  import_oxc_parser = require("oxc-parser");
68166
68655
  init_is_record();
68167
68656
  }
@@ -68703,6 +69192,7 @@ var import_node_fs61, import_node_path59, import_version_range2, import_oxc_pars
68703
69192
  var init_app_stubs = __esm({
68704
69193
  "cli/app-stubs.ts"() {
68705
69194
  "use strict";
69195
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
68706
69196
  import_node_fs61 = require("node:fs");
68707
69197
  import_node_path59 = require("node:path");
68708
69198
  import_version_range2 = require("@peach/compat/version-range");
@@ -68814,6 +69304,7 @@ var import_node_fs62, import_node_path60, import_jiti, WIRE_SLOTS;
68814
69304
  var init_app_config = __esm({
68815
69305
  "cli/app-config.ts"() {
68816
69306
  "use strict";
69307
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
68817
69308
  import_node_fs62 = require("node:fs");
68818
69309
  import_node_path60 = __toESM(require("node:path"), 1);
68819
69310
  import_jiti = require("jiti");
@@ -68912,6 +69403,7 @@ Available fills: ${fills.join(", ")}.`
68912
69403
  var init_material_symbol_fonts = __esm({
68913
69404
  "src/material-symbol-fonts.ts"() {
68914
69405
  "use strict";
69406
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
68915
69407
  }
68916
69408
  });
68917
69409
 
@@ -68967,6 +69459,7 @@ var import_node_crypto32, import_node_fs63, import_node_module6, import_node_pat
68967
69459
  var init_material_symbol_fonts2 = __esm({
68968
69460
  "cli/material-symbol-fonts.ts"() {
68969
69461
  "use strict";
69462
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
68970
69463
  import_node_crypto32 = require("node:crypto");
68971
69464
  import_node_fs63 = __toESM(require("node:fs"), 1);
68972
69465
  import_node_module6 = require("node:module");
@@ -69202,6 +69695,7 @@ var import_node_fs64, import_node_module7, import_node_path62, require2;
69202
69695
  var init_app_fonts = __esm({
69203
69696
  "cli/app-fonts.ts"() {
69204
69697
  "use strict";
69698
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
69205
69699
  import_node_fs64 = __toESM(require("node:fs"), 1);
69206
69700
  import_node_module7 = require("node:module");
69207
69701
  import_node_path62 = __toESM(require("node:path"), 1);
@@ -69292,6 +69786,7 @@ var import_node_module8, require3;
69292
69786
  var init_app_splash = __esm({
69293
69787
  "cli/app-splash.ts"() {
69294
69788
  "use strict";
69789
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
69295
69790
  import_node_module8 = require("node:module");
69296
69791
  init_backend_origin();
69297
69792
  init_cli_runtime();
@@ -69305,6 +69800,7 @@ var SEMANTIC_WAIT_MAX_TIMEOUT_MS;
69305
69800
  var init_bridge_contract_input = __esm({
69306
69801
  "src/bridge-contract-input.ts"() {
69307
69802
  "use strict";
69803
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
69308
69804
  init_bridge_contract();
69309
69805
  init_is_record();
69310
69806
  SEMANTIC_WAIT_MAX_TIMEOUT_MS = 3e4;
@@ -69951,6 +70447,7 @@ var DESCRIBE_TREE_DEPTH, LAYOUT_GET_NATIVE_EVAL, READY_SNAPSHOT_SEND_TIMEOUT_MS,
69951
70447
  var init_core = __esm({
69952
70448
  "cli/commands/inspect/core.ts"() {
69953
70449
  "use strict";
70450
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
69954
70451
  init_bridge_contract();
69955
70452
  init_bridge_contract_input();
69956
70453
  init_bridge_contract();
@@ -70112,6 +70609,7 @@ var import_node_crypto33, SECRET_NAME, JWT, GOOGLE_API_KEY, BEARER, EMAIL, OPAQU
70112
70609
  var init_output_redaction = __esm({
70113
70610
  "cli/output-redaction.ts"() {
70114
70611
  "use strict";
70612
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
70115
70613
  import_node_crypto33 = require("node:crypto");
70116
70614
  init_config();
70117
70615
  SECRET_NAME = /^(?:[\w-]*(?:api[-_]?key|token|secret|password|passwd|authorization|cookie|signature|credential)s?|auth|sig|email|uid|[\w-]*(?:user|account|local|device|installation|client|app|project|sender|measurement|tenant)[-_]?id)$/i;
@@ -70227,6 +70725,7 @@ async function waitForSimReady(wsPort, commandTimeoutMs, simId, opts = {}) {
70227
70725
  var init_shared = __esm({
70228
70726
  "cli/commands/inspect/shared.ts"() {
70229
70727
  "use strict";
70728
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
70230
70729
  init_sleep();
70231
70730
  init_output_redaction();
70232
70731
  init_ws_bridge();
@@ -70393,6 +70892,7 @@ async function printBridgeFailureDiagnostics(bridge, opts = {}) {
70393
70892
  var init_bridge_diagnostics = __esm({
70394
70893
  "cli/bridge-diagnostics.ts"() {
70395
70894
  "use strict";
70895
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
70396
70896
  init_core();
70397
70897
  init_shared();
70398
70898
  init_output_redaction();
@@ -70716,6 +71216,7 @@ var import_child_process5, import_fs8, import_node_crypto34, import_os3, import_
70716
71216
  var init_desktop_companion = __esm({
70717
71217
  "cli/desktop-companion.ts"() {
70718
71218
  "use strict";
71219
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
70719
71220
  import_child_process5 = require("child_process");
70720
71221
  import_fs8 = require("fs");
70721
71222
  import_node_crypto34 = require("node:crypto");
@@ -70738,6 +71239,7 @@ function validateDeviceOption(device) {
70738
71239
  var init_device_option = __esm({
70739
71240
  "cli/device-option.ts"() {
70740
71241
  "use strict";
71242
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
70741
71243
  init_device_catalog();
70742
71244
  }
70743
71245
  });
@@ -70808,6 +71310,7 @@ var desktopDriver;
70808
71310
  var init_desktop = __esm({
70809
71311
  "cli/drivers/desktop.ts"() {
70810
71312
  "use strict";
71313
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
70811
71314
  init_desktop_host_delivery();
70812
71315
  init_desktop_companion();
70813
71316
  desktopDriver = createDesktopDriver("desktop");
@@ -70819,6 +71322,7 @@ var electronDriver;
70819
71322
  var init_electron = __esm({
70820
71323
  "cli/drivers/electron.ts"() {
70821
71324
  "use strict";
71325
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
70822
71326
  init_desktop();
70823
71327
  electronDriver = createDesktopDriver("electron");
70824
71328
  }
@@ -70832,6 +71336,7 @@ var PLAYWRIGHT_HOST_LOG_PREFIX;
70832
71336
  var init_playwright_host_log = __esm({
70833
71337
  "src/playwright-host-log.ts"() {
70834
71338
  "use strict";
71339
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
70835
71340
  PLAYWRIGHT_HOST_LOG_PREFIX = "peach-playwright-host-";
70836
71341
  }
70837
71342
  });
@@ -70841,6 +71346,7 @@ var PINNED_PLAYWRIGHT_CORE;
70841
71346
  var init_playwright_core_pin = __esm({
70842
71347
  "cli/drivers/playwright-core-pin.ts"() {
70843
71348
  "use strict";
71349
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
70844
71350
  PINNED_PLAYWRIGHT_CORE = {
70845
71351
  version: "1.61.0",
70846
71352
  integrity: "sha512-caX7TrY3Ml6egyDX0WUcTHDxodl/b51y5wJOdCEA36QviK/s2g081hvmGs8eaE3DWb6NYZQ6BjO/QkNRPenoPA=="
@@ -70852,6 +71358,7 @@ var init_playwright_core_pin = __esm({
70852
71358
  var init_env = __esm({
70853
71359
  "cli/commands/inspect/env.ts"() {
70854
71360
  "use strict";
71361
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
70855
71362
  }
70856
71363
  });
70857
71364
 
@@ -70860,6 +71367,7 @@ var DEFAULT_CLI_RELEASE_ORIGIN, CLI_UPDATE_CHECK_INTERVAL_MS, CLI_UPDATE_NOTIFIC
70860
71367
  var init_cli_update = __esm({
70861
71368
  "cli/cli-update.ts"() {
70862
71369
  "use strict";
71370
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
70863
71371
  init_src();
70864
71372
  init_automatic_update_policy();
70865
71373
  init_cli_version();
@@ -72051,6 +72559,7 @@ var import_node_child_process25, import_node_fs65, import_node_path63, LINUX_BRO
72051
72559
  var init_linux_browser_libs = __esm({
72052
72560
  "cli/drivers/linux-browser-libs.ts"() {
72053
72561
  "use strict";
72562
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
72054
72563
  import_node_child_process25 = require("node:child_process");
72055
72564
  import_node_fs65 = require("node:fs");
72056
72565
  import_node_path63 = require("node:path");
@@ -72243,14 +72752,15 @@ var import_node_child_process26, import_node_fs66, import_node_module9, import_n
72243
72752
  var init_playwright_provisioning = __esm({
72244
72753
  "cli/drivers/playwright-provisioning.ts"() {
72245
72754
  "use strict";
72755
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
72246
72756
  import_node_child_process26 = require("node:child_process");
72247
72757
  import_node_fs66 = require("node:fs");
72248
72758
  import_node_module9 = require("node:module");
72249
72759
  import_node_path64 = require("node:path");
72250
72760
  init_src();
72251
- init_reap_browser();
72252
72761
  init_home_paths();
72253
72762
  init_is_record();
72763
+ init_reap_browser();
72254
72764
  init_internal_child();
72255
72765
  init_self_invocation();
72256
72766
  init_linux_browser_libs();
@@ -72318,6 +72828,15 @@ async function launch(opts) {
72318
72828
  message: "playwright driver requires a valid owning session process"
72319
72829
  };
72320
72830
  }
72831
+ if (opts.profileId) {
72832
+ const livePid = liveBrowserPidForPlaywrightProfile(opts.profileId);
72833
+ if (livePid !== null) {
72834
+ return {
72835
+ launched: false,
72836
+ message: `profile "${opts.profileId}" is already open in browser pid ${livePid}; a profile holds one browser. drive that sim (\`peach use <id>\`, \`--sim <id>\`) or \`peach close\` it first`
72837
+ };
72838
+ }
72839
+ }
72321
72840
  let resolved;
72322
72841
  try {
72323
72842
  resolved = await provisionPlaywright();
@@ -72458,6 +72977,7 @@ var import_child_process6, import_fs9, import_net3, import_os4, import_path8, pl
72458
72977
  var init_playwright = __esm({
72459
72978
  "cli/drivers/playwright.ts"() {
72460
72979
  "use strict";
72980
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
72461
72981
  import_child_process6 = require("child_process");
72462
72982
  import_fs9 = require("fs");
72463
72983
  import_net3 = require("net");
@@ -72492,6 +73012,7 @@ var ALL_DRIVERS;
72492
73012
  var init_registry2 = __esm({
72493
73013
  "cli/drivers/registry.ts"() {
72494
73014
  "use strict";
73015
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
72495
73016
  init_desktop();
72496
73017
  init_electron();
72497
73018
  init_playwright();
@@ -72507,6 +73028,7 @@ var init_registry2 = __esm({
72507
73028
  var init_open_url2 = __esm({
72508
73029
  "cli/open-url.ts"() {
72509
73030
  "use strict";
73031
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
72510
73032
  init_open_url();
72511
73033
  }
72512
73034
  });
@@ -72516,6 +73038,7 @@ var NODE_COMMAND_NAMES, BROWSER_FAMILIES, registrations2, RNX_COMMAND_NAMES, RNX
72516
73038
  var init_command_registry = __esm({
72517
73039
  "cli/command-registry.ts"() {
72518
73040
  "use strict";
73041
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
72519
73042
  NODE_COMMAND_NAMES = [
72520
73043
  "test",
72521
73044
  "detox",
@@ -72619,6 +73142,7 @@ var GLOBAL_FLAGS, GLOBAL_FLAG_TAKES_VALUE, COMMANDS;
72619
73142
  var init_parse_args = __esm({
72620
73143
  "cli/parse-args.ts"() {
72621
73144
  "use strict";
73145
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
72622
73146
  init_command_registry();
72623
73147
  GLOBAL_FLAGS = {
72624
73148
  "--help": { type: "boolean", short: "-h" },
@@ -72664,6 +73188,7 @@ var PRIVACY_CONTENTS, PRIVACY_NOTICE;
72664
73188
  var init_privacy = __esm({
72665
73189
  "cli/privacy.ts"() {
72666
73190
  "use strict";
73191
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
72667
73192
  init_home_paths();
72668
73193
  init_env();
72669
73194
  PRIVACY_CONTENTS = [
@@ -72687,6 +73212,7 @@ function eventUuid(timestamp2 = Date.now()) {
72687
73212
  var init_event_identity = __esm({
72688
73213
  "../peach-globals/src/event-identity.ts"() {
72689
73214
  "use strict";
73215
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
72690
73216
  }
72691
73217
  });
72692
73218
 
@@ -72694,6 +73220,7 @@ var init_event_identity = __esm({
72694
73220
  var init_crash_fingerprint = __esm({
72695
73221
  "src/crash-fingerprint.ts"() {
72696
73222
  "use strict";
73223
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
72697
73224
  }
72698
73225
  });
72699
73226
 
@@ -72736,6 +73263,7 @@ var import_node_os12, observedRuntimeVersion, queue, CRASH_REPORT_EVERY_MS;
72736
73263
  var init_telemetry = __esm({
72737
73264
  "cli/telemetry.ts"() {
72738
73265
  "use strict";
73266
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
72739
73267
  import_node_os12 = require("node:os");
72740
73268
  init_event_identity();
72741
73269
  init_cli_version();
@@ -72795,6 +73323,7 @@ async function collectRuntimeDiagnostics(bridge) {
72795
73323
  var init_runtime_diagnostics = __esm({
72796
73324
  "cli/runtime-diagnostics.ts"() {
72797
73325
  "use strict";
73326
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
72798
73327
  init_core();
72799
73328
  init_privacy();
72800
73329
  init_telemetry();
@@ -72850,6 +73379,7 @@ var RESET, BOLD, DIM, BRAND_BLUE, GREEN, RED;
72850
73379
  var init_ui = __esm({
72851
73380
  "cli/ui.ts"() {
72852
73381
  "use strict";
73382
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
72853
73383
  RESET = "\x1B[0m";
72854
73384
  BOLD = "\x1B[1m";
72855
73385
  DIM = "\x1B[2m";
@@ -72887,6 +73417,7 @@ var import_readline, rl;
72887
73417
  var init_prompt = __esm({
72888
73418
  "cli/prompt.ts"() {
72889
73419
  "use strict";
73420
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
72890
73421
  import_readline = require("readline");
72891
73422
  init_ui();
72892
73423
  rl = () => (0, import_readline.createInterface)({
@@ -73162,6 +73693,7 @@ var import_child_process7, import_fs10, import_os5, import_path9, DOWNLOAD_BASE;
73162
73693
  var init_install_desktop = __esm({
73163
73694
  "cli/commands/install-desktop.ts"() {
73164
73695
  "use strict";
73696
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
73165
73697
  import_child_process7 = require("child_process");
73166
73698
  import_fs10 = require("fs");
73167
73699
  import_os5 = require("os");
@@ -73365,6 +73897,7 @@ var import_child_process8, fs49, os12, path58, import_url3, import_meta3, skills
73365
73897
  var init_skills = __esm({
73366
73898
  "cli/commands/skills.ts"() {
73367
73899
  "use strict";
73900
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
73368
73901
  import_child_process8 = require("child_process");
73369
73902
  fs49 = __toESM(require("fs"), 1);
73370
73903
  os12 = __toESM(require("os"), 1);
@@ -73427,6 +73960,7 @@ function formatRuntimeReleaseNotes(version, entry) {
73427
73960
  var init_runtime_notes = __esm({
73428
73961
  "cli/runtime-notes.ts"() {
73429
73962
  "use strict";
73963
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
73430
73964
  init_runtime_delivery();
73431
73965
  }
73432
73966
  });
@@ -73700,6 +74234,7 @@ var import_fs11, import_ws4;
73700
74234
  var init_runtime = __esm({
73701
74235
  "cli/commands/runtime.ts"() {
73702
74236
  "use strict";
74237
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
73703
74238
  import_fs11 = __toESM(require("fs"), 1);
73704
74239
  init_src();
73705
74240
  import_ws4 = require("ws");
@@ -75877,6 +76412,7 @@ var import_node_child_process27, import_node_fs67, import_node_http, import_node
75877
76412
  var init_control = __esm({
75878
76413
  "cli/commands/control.ts"() {
75879
76414
  "use strict";
76415
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
75880
76416
  import_node_child_process27 = require("node:child_process");
75881
76417
  import_node_fs67 = __toESM(require("node:fs"), 1);
75882
76418
  import_node_http = __toESM(require("node:http"), 1);
@@ -75969,6 +76505,7 @@ var init_control = __esm({
75969
76505
  var init_recordingBridgeContract = __esm({
75970
76506
  "../peach-globals/src/recordingBridgeContract.ts"() {
75971
76507
  "use strict";
76508
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
75972
76509
  }
75973
76510
  });
75974
76511
 
@@ -75976,6 +76513,7 @@ var init_recordingBridgeContract = __esm({
75976
76513
  var init_replayBridgeContract = __esm({
75977
76514
  "../peach-globals/src/replayBridgeContract.ts"() {
75978
76515
  "use strict";
76516
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
75979
76517
  }
75980
76518
  });
75981
76519
 
@@ -75984,6 +76522,7 @@ var LEGACY_ALIAS_MARKER;
75984
76522
  var init_globalsContract = __esm({
75985
76523
  "../peach-globals/src/globalsContract.ts"() {
75986
76524
  "use strict";
76525
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
75987
76526
  init_replayBridgeContract();
75988
76527
  LEGACY_ALIAS_MARKER = Symbol.for("sootsim.legacy-aliases-installed");
75989
76528
  }
@@ -75994,6 +76533,7 @@ var SOOTSIM_NATIVE_PUBLIC_INSTANCE;
75994
76533
  var init_nativeViewContract = __esm({
75995
76534
  "../peach-globals/src/nativeViewContract.ts"() {
75996
76535
  "use strict";
76536
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
75997
76537
  SOOTSIM_NATIVE_PUBLIC_INSTANCE = Symbol.for("sootsim.nativePublicInstance");
75998
76538
  }
75999
76539
  });
@@ -76002,6 +76542,7 @@ var init_nativeViewContract = __esm({
76002
76542
  var init_eventBridgeContract = __esm({
76003
76543
  "../peach-globals/src/eventBridgeContract.ts"() {
76004
76544
  "use strict";
76545
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
76005
76546
  }
76006
76547
  });
76007
76548
 
@@ -76018,6 +76559,7 @@ function isTextInputEditCommand(value) {
76018
76559
  var init_keyboardBridgeContract = __esm({
76019
76560
  "../peach-globals/src/keyboardBridgeContract.ts"() {
76020
76561
  "use strict";
76562
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
76021
76563
  }
76022
76564
  });
76023
76565
 
@@ -76025,6 +76567,7 @@ var init_keyboardBridgeContract = __esm({
76025
76567
  var init_webViewBridgeContract = __esm({
76026
76568
  "../peach-globals/src/webViewBridgeContract.ts"() {
76027
76569
  "use strict";
76570
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
76028
76571
  }
76029
76572
  });
76030
76573
 
@@ -76032,6 +76575,7 @@ var init_webViewBridgeContract = __esm({
76032
76575
  var init_shellBridgeContract = __esm({
76033
76576
  "../peach-globals/src/shellBridgeContract.ts"() {
76034
76577
  "use strict";
76578
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
76035
76579
  }
76036
76580
  });
76037
76581
 
@@ -76039,6 +76583,7 @@ var init_shellBridgeContract = __esm({
76039
76583
  var init_captureBridgeContract = __esm({
76040
76584
  "../peach-globals/src/captureBridgeContract.ts"() {
76041
76585
  "use strict";
76586
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
76042
76587
  }
76043
76588
  });
76044
76589
 
@@ -76046,6 +76591,7 @@ var init_captureBridgeContract = __esm({
76046
76591
  var init_timelineBridgeContract = __esm({
76047
76592
  "../peach-globals/src/timelineBridgeContract.ts"() {
76048
76593
  "use strict";
76594
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
76049
76595
  }
76050
76596
  });
76051
76597
 
@@ -76053,6 +76599,7 @@ var init_timelineBridgeContract = __esm({
76053
76599
  var init_src2 = __esm({
76054
76600
  "../peach-globals/src/index.ts"() {
76055
76601
  "use strict";
76602
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
76056
76603
  init_recordingBridgeContract();
76057
76604
  init_globalsContract();
76058
76605
  init_nativeViewContract();
@@ -76066,145 +76613,21 @@ var init_src2 = __esm({
76066
76613
  }
76067
76614
  });
76068
76615
 
76069
- // detox/proof-frame.cjs
76070
- var require_proof_frame = __commonJS({
76071
- "detox/proof-frame.cjs"(exports2, module2) {
76616
+ // detox/frame-identity.cjs
76617
+ var require_frame_identity = __commonJS({
76618
+ "detox/frame-identity.cjs"(exports2, module2) {
76072
76619
  "use strict";
76073
- var { abs, max } = Math;
76074
- var PROOF_CONTENT_DEFINITION = Object.freeze({
76075
- channelThreshold: 24,
76076
- contentBandInsetFraction: 0.08,
76077
- minimumContentPercent: 5e-3
76078
- });
76620
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
76079
76621
  var REQUIRED_IDENTICAL_PROOF_FRAMES = 3;
76080
76622
  var REQUIRED_IDENTICAL_FLOW_FRAMES2 = 1;
76081
76623
  function framesIdentical2(a, b) {
76082
76624
  if (!a || !b || a.length !== b.length) return false;
76083
76625
  return a.equals(b);
76084
76626
  }
76085
- function frameBounds(image, frame, rootFrame, padding = 0) {
76086
- const scale = rootFrame?.width > 0 ? image.width / rootFrame.width : 1;
76087
- return {
76088
- bottom: frame ? Math.min(image.height, Math.ceil((frame.y + frame.height + padding) * scale)) : image.height,
76089
- left: frame ? Math.max(0, Math.floor((frame.x - padding) * scale)) : 0,
76090
- right: frame ? Math.min(image.width, Math.ceil((frame.x + frame.width + padding) * scale)) : image.width,
76091
- scale,
76092
- top: frame ? Math.max(0, Math.floor((frame.y - padding) * scale)) : 0
76093
- };
76094
- }
76095
- function proofContentRegion(image, metadata) {
76096
- if (metadata?.contentRegion === void 0) return null;
76097
- const frame = metadata.contentRegion;
76098
- const root = metadata.elementRegionRoot;
76099
- for (const [name3, rect] of [
76100
- ["contentRegion", frame],
76101
- ["elementRegionRoot", root]
76102
- ]) {
76103
- if (!rect || !["x", "y", "width", "height"].every((key2) => Number.isFinite(rect[key2])) || rect.width <= 0 || rect.height <= 0)
76104
- throw new Error(`proof ${name3} needs a positive finite rectangle`);
76105
- }
76106
- const scale = image.width / root.width;
76107
- const bounds = {
76108
- left: Math.max(0, Math.ceil(frame.x * scale)),
76109
- top: Math.max(0, Math.ceil(frame.y * scale)),
76110
- right: Math.min(image.width, Math.floor((frame.x + frame.width) * scale)),
76111
- bottom: Math.min(image.height, Math.floor((frame.y + frame.height) * scale))
76112
- };
76113
- if (bounds.right <= bounds.left || bounds.bottom <= bounds.top) {
76114
- throw new Error("proof contentRegion lies outside the capture");
76115
- }
76116
- return {
76117
- x: bounds.left,
76118
- y: bounds.top,
76119
- width: bounds.right - bounds.left,
76120
- height: bounds.bottom - bounds.top
76121
- };
76122
- }
76123
- function measureProofFrameContent(input) {
76124
- if (!input || typeof input !== "object" || Array.isArray(input)) {
76125
- throw new Error("proof content measurement requires an input object");
76126
- }
76127
- const { data, width, height } = input;
76128
- if (!data || typeof data.length !== "number" || !Number.isInteger(width) || !Number.isInteger(height) || width <= 0 || height <= 0 || data.length !== width * height * 4) {
76129
- throw new Error("proof content measurement needs RGBA pixels and dimensions");
76130
- }
76131
- const bandStart = Math.floor(height * PROOF_CONTENT_DEFINITION.contentBandInsetFraction);
76132
- const bandEnd = Math.ceil(
76133
- height * (1 - PROOF_CONTENT_DEFINITION.contentBandInsetFraction)
76134
- );
76135
- const region = input.contentRegion ?? {
76136
- x: 0,
76137
- y: bandStart,
76138
- width,
76139
- height: bandEnd - bandStart
76140
- };
76141
- if (!["x", "y", "width", "height"].every((key2) => Number.isInteger(region[key2])) || region.width <= 0 || region.height <= 0 || region.x < 0 || region.y < 0 || region.x + region.width > width || region.y + region.height > height)
76142
- throw new Error("proof contentRegion needs integer bounds inside the capture");
76143
- const yStart = region.y;
76144
- const yEnd = region.y + region.height;
76145
- const xStart = region.x;
76146
- const xEnd = region.x + region.width;
76147
- const bucketCounts = new Uint32Array(32 * 32 * 32);
76148
- const totalPixels = width * (bandEnd - bandStart);
76149
- for (let y = yStart; y < yEnd; y++) {
76150
- for (let x = xStart; x < xEnd; x++) {
76151
- const offset = (y * width + x) * 4;
76152
- const bucket = data[offset] >> 3 << 10 | data[offset + 1] >> 3 << 5 | data[offset + 2] >> 3;
76153
- bucketCounts[bucket]++;
76154
- }
76155
- }
76156
- let dominantBucket = 0;
76157
- for (let index = 1; index < bucketCounts.length; index++) {
76158
- if (bucketCounts[index] > bucketCounts[dominantBucket]) dominantBucket = index;
76159
- }
76160
- const dominant = {
76161
- red: ((dominantBucket >> 10 & 31) << 3) + 4,
76162
- green: ((dominantBucket >> 5 & 31) << 3) + 4,
76163
- blue: ((dominantBucket & 31) << 3) + 4
76164
- };
76165
- let contentPixels = 0;
76166
- for (let y = yStart; y < yEnd; y++) {
76167
- for (let x = xStart; x < xEnd; x++) {
76168
- const offset = (y * width + x) * 4;
76169
- if (max(
76170
- abs(data[offset] - dominant.red),
76171
- abs(data[offset + 1] - dominant.green),
76172
- abs(data[offset + 2] - dominant.blue)
76173
- ) >= PROOF_CONTENT_DEFINITION.channelThreshold) {
76174
- contentPixels++;
76175
- }
76176
- }
76177
- }
76178
- const contentPercent = contentPixels / totalPixels * 100;
76179
- return {
76180
- contentRegion: input.contentRegion ?? null,
76181
- contentPercent,
76182
- contentPixels,
76183
- dominant,
76184
- passedMinimum: contentPercent >= PROOF_CONTENT_DEFINITION.minimumContentPercent,
76185
- totalPixels
76186
- };
76187
- }
76188
- function settleDecision(previousPixels, currentFrame) {
76189
- if (!currentFrame) return { decision: "continue", content: null };
76190
- const content = measureProofFrameContent(currentFrame);
76191
- if (!content.passedMinimum) {
76192
- return { decision: "insufficient-content", content };
76193
- }
76194
- if (previousPixels && framesIdentical2(previousPixels, currentFrame.data)) {
76195
- return { decision: "identical", content };
76196
- }
76197
- return { decision: "changed", content };
76198
- }
76199
76627
  module2.exports = {
76200
- PROOF_CONTENT_DEFINITION,
76201
76628
  REQUIRED_IDENTICAL_PROOF_FRAMES,
76202
76629
  REQUIRED_IDENTICAL_FLOW_FRAMES: REQUIRED_IDENTICAL_FLOW_FRAMES2,
76203
- framesIdentical: framesIdentical2,
76204
- frameBounds,
76205
- proofContentRegion,
76206
- measureProofFrameContent,
76207
- settleDecision
76630
+ framesIdentical: framesIdentical2
76208
76631
  };
76209
76632
  }
76210
76633
  });
@@ -76547,6 +76970,7 @@ var METALLIC_RING_SHADOW, FRAME_OUTLINE_BLEED;
76547
76970
  var init_frame_compose = __esm({
76548
76971
  "src/screenshots/frame-compose.ts"() {
76549
76972
  "use strict";
76973
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
76550
76974
  init_playwright_provisioning();
76551
76975
  init_cli_runtime();
76552
76976
  init_device_catalog();
@@ -76579,6 +77003,7 @@ function sameNativeAccessibilityShape(a, b, bounds) {
76579
77003
  var init_maestro_accessibility = __esm({
76580
77004
  "cli/maestro-accessibility.ts"() {
76581
77005
  "use strict";
77006
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
76582
77007
  }
76583
77008
  });
76584
77009
 
@@ -77199,6 +77624,7 @@ var RuntimeReadinessUnsupportedError, IdleObservationError;
77199
77624
  var init_settling = __esm({
77200
77625
  "cli/commands/inspect/settling.ts"() {
77201
77626
  "use strict";
77627
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
77202
77628
  init_maestro_accessibility();
77203
77629
  init_core();
77204
77630
  RuntimeReadinessUnsupportedError = class extends Error {
@@ -77232,6 +77658,7 @@ var PERMISSION_KINDS;
77232
77658
  var init_permissions = __esm({
77233
77659
  "cli/commands/permissions.ts"() {
77234
77660
  "use strict";
77661
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
77235
77662
  init_ws_bridge();
77236
77663
  PERMISSION_KINDS = [
77237
77664
  "app-tracking-transparency",
@@ -77328,6 +77755,7 @@ var import_child_process9, vm, HTTP_TIMEOUT_MS, TEMPLATE_RE, ESCAPED_TEMPLATE_RE
77328
77755
  var init_maestro_js = __esm({
77329
77756
  "cli/maestro-js.ts"() {
77330
77757
  "use strict";
77758
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
77331
77759
  import_child_process9 = require("child_process");
77332
77760
  vm = __toESM(require("vm"), 1);
77333
77761
  init_loopback_ports();
@@ -77498,6 +77926,7 @@ var PROFILER_WINDOW_MS;
77498
77926
  var init_profilerContract = __esm({
77499
77927
  "../peach-globals/src/profilerContract.ts"() {
77500
77928
  "use strict";
77929
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
77501
77930
  PROFILER_WINDOW_MS = 5 * 6e4;
77502
77931
  }
77503
77932
  });
@@ -77506,6 +77935,7 @@ var init_profilerContract = __esm({
77506
77935
  var init_profileTrace = __esm({
77507
77936
  "../peach-globals/src/profileTrace.ts"() {
77508
77937
  "use strict";
77938
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
77509
77939
  init_src2();
77510
77940
  init_profilerContract();
77511
77941
  }
@@ -77515,6 +77945,7 @@ var init_profileTrace = __esm({
77515
77945
  var init_preview_capture = __esm({
77516
77946
  "cli/preview-capture.ts"() {
77517
77947
  "use strict";
77948
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
77518
77949
  init_src2();
77519
77950
  init_env();
77520
77951
  init_privacy();
@@ -77525,6 +77956,7 @@ var init_preview_capture = __esm({
77525
77956
  var init_run_registry = __esm({
77526
77957
  "cli/run-registry.ts"() {
77527
77958
  "use strict";
77959
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
77528
77960
  init_auth();
77529
77961
  }
77530
77962
  });
@@ -77539,6 +77971,7 @@ var REMOTE_DEFAULT_ORIGIN, REMOTE_DEFAULT_PUBLIC_PREVIEW_ORIGIN;
77539
77971
  var init_upload = __esm({
77540
77972
  "cli/commands/upload.ts"() {
77541
77973
  "use strict";
77974
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
77542
77975
  init_profileTrace();
77543
77976
  init_profilerContract();
77544
77977
  init_backend_origin();
@@ -77641,6 +78074,7 @@ async function ensureCliRecordingEntitlement(commandLabel, opts = {}) {
77641
78074
  var init_recording_access = __esm({
77642
78075
  "cli/recording-access.ts"() {
77643
78076
  "use strict";
78077
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
77644
78078
  init_shared_session();
77645
78079
  init_auth();
77646
78080
  init_upload();
@@ -78003,14 +78437,15 @@ function normalizeBareStringStep(verb) {
78003
78437
  function parseFlowSteps(content) {
78004
78438
  return parseFlowFile(content).steps;
78005
78439
  }
78006
- var fs52, path60, import_proof_frame, DEFAULT_TIMEOUT, ASSERTION_LOOKUP_MS, NON_MUTATING_STEPS, FLOW_TIMEOUT_SCALE, scaledTimeout, MAESTRO_SELECTOR_KEYS, UNSUPPORTED_SELECTOR_KEYS, ACCESSIBILITY_SELECTOR_KEYS, ACCESSIBILITY_TRAIT_FILTERS, MAESTRO_PERMISSION_KINDS, MAESTRO_PERMISSION_STATUS, MAESTRO_LOCATION_STATUS, CaptureSetupError, SootSimBridgeFlowRunner;
78440
+ var fs52, path60, import_frame_identity, DEFAULT_TIMEOUT, ASSERTION_LOOKUP_MS, NON_MUTATING_STEPS, FLOW_TIMEOUT_SCALE, scaledTimeout, MAESTRO_SELECTOR_KEYS, UNSUPPORTED_SELECTOR_KEYS, ACCESSIBILITY_SELECTOR_KEYS, ACCESSIBILITY_TRAIT_FILTERS, MAESTRO_PERMISSION_KINDS, MAESTRO_PERMISSION_STATUS, MAESTRO_LOCATION_STATUS, CaptureSetupError, SootSimBridgeFlowRunner;
78007
78441
  var init_bridge_flow_runner = __esm({
78008
78442
  "cli/bridge-flow-runner.ts"() {
78009
78443
  "use strict";
78444
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
78010
78445
  fs52 = __toESM(require("fs"), 1);
78011
78446
  path60 = __toESM(require("path"), 1);
78012
78447
  init_src2();
78013
- import_proof_frame = __toESM(require_proof_frame(), 1);
78448
+ import_frame_identity = __toESM(require_frame_identity(), 1);
78014
78449
  init_device_catalog();
78015
78450
  init_flow_timeout_scale();
78016
78451
  init_frame_compose();
@@ -79135,16 +79570,16 @@ var init_bridge_flow_runner = __esm({
79135
79570
  dataUrl.replace(/^data:image\/png;base64,/, ""),
79136
79571
  "base64"
79137
79572
  );
79138
- identicalFrames = (0, import_proof_frame.framesIdentical)(previousBuffer, current) ? identicalFrames + 1 : 1;
79573
+ identicalFrames = (0, import_frame_identity.framesIdentical)(previousBuffer, current) ? identicalFrames + 1 : 1;
79139
79574
  previousBuffer = current;
79140
- if (identicalFrames >= import_proof_frame.REQUIRED_IDENTICAL_FLOW_FRAMES) {
79575
+ if (identicalFrames >= import_frame_identity.REQUIRED_IDENTICAL_FLOW_FRAMES) {
79141
79576
  rawBuffer = current;
79142
79577
  break;
79143
79578
  }
79144
79579
  }
79145
79580
  if (!rawBuffer) {
79146
79581
  throw new Error(
79147
- `screenshot did not reach ${import_proof_frame.REQUIRED_IDENTICAL_FLOW_FRAMES} identical idle frames`
79582
+ `screenshot did not reach ${import_frame_identity.REQUIRED_IDENTICAL_FLOW_FRAMES} identical idle frames`
79148
79583
  );
79149
79584
  }
79150
79585
  if (spec.withFrame) {
@@ -80412,10 +80847,12 @@ __export(registry_exports, {
80412
80847
  skillRegistry: () => skillRegistry
80413
80848
  });
80414
80849
  module.exports = __toCommonJS(registry_exports);
80850
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
80415
80851
  var fs53 = __toESM(require("fs"), 1);
80416
80852
  var path61 = __toESM(require("path"), 1);
80417
80853
 
80418
80854
  // src/skills/builtin/a11y-review.ts
80855
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
80419
80856
  init_reap_browser();
80420
80857
  var skill = {
80421
80858
  name: "a11y-review",
@@ -80508,6 +80945,7 @@ var skill = {
80508
80945
  };
80509
80946
 
80510
80947
  // src/skills/builtin/compat-check.ts
80948
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
80511
80949
  var skill2 = {
80512
80950
  name: "compat-check",
80513
80951
  description: "Check package compatibility with Peach",
@@ -80568,6 +81006,7 @@ function readDependencies(value) {
80568
81006
  }
80569
81007
 
80570
81008
  // src/skills/builtin/maestro-test.ts
81009
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
80571
81010
  init_sleep();
80572
81011
  var skill3 = {
80573
81012
  name: "maestro-test",
@@ -80670,6 +81109,7 @@ var skill3 = {
80670
81109
  };
80671
81110
 
80672
81111
  // src/skills/builtin/perf-profile.ts
81112
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
80673
81113
  init_reap_browser();
80674
81114
  var skill4 = {
80675
81115
  name: "perf-profile",
@@ -80740,6 +81180,7 @@ var skill4 = {
80740
81180
  };
80741
81181
 
80742
81182
  // src/skills/builtin/screenshot-all.ts
81183
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
80743
81184
  init_reap_browser();
80744
81185
  var skill5 = {
80745
81186
  name: "screenshot-all",
@@ -80783,6 +81224,7 @@ var skill5 = {
80783
81224
  };
80784
81225
 
80785
81226
  // src/skills/builtin/visual-diff.ts
81227
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
80786
81228
  init_reap_browser();
80787
81229
  var skill6 = {
80788
81230
  name: "visual-diff",