peachsim 0.1.2247 → 0.1.2249
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.
- package/cli/bin.ts +5 -0
- package/cli/bridge-flow-runner.ts +28 -2
- package/cli/cloud-dispatch.ts +2 -0
- package/cli/commands/control.ts +2 -2
- package/cli/commands/coverage-swift.ts +3 -3
- package/cli/commands/inspect/settling.ts +35 -4
- package/cli/commands/shell-url.ts +6 -0
- package/cli/commands/skills.ts +6 -3
- package/cli/drivers/playwright.ts +2 -0
- package/dist-lib/agent-daemon-client.cjs +1 -29
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -10
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +4300 -4531
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +32 -315
- package/dist-lib/dev-bundle-resolution.cjs +1 -12
- package/dist-lib/expo-swift-bundle.cjs +3579 -3864
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +4376 -4682
- package/dist-lib/host/fetch-proxy-handler.cjs +97 -713
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +669 -1116
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +3 -24
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -10
- package/dist-lib/metro-production-bundle.mjs +1 -12
- package/dist-lib/metro.cjs +546 -975
- package/dist-lib/native-app-identity-project.cjs +299 -592
- package/dist-lib/native-app-identity-project.mjs +11 -232
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +28 -96
- package/dist-lib/public-origins-lib.json +172 -1058
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -34
- package/dist-lib/sdk.cjs +31 -7
- package/dist-lib/sdk.mjs +31 -7
- package/dist-lib/skills.cjs +4960 -5345
- package/dist-lib/swift-compile.cjs +1185 -1107
- package/dist-lib/swift-compile.mjs +137 -54
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1568 -1672
- package/dist-lib/vite.cjs +173 -763
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/render-worker/webview-capture-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +10 -2
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +5 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/wasm/include/math.h +1 -1
- package/sdk/ios/wasm/include/pthread.h +1 -1
- package/src/assetCatalogContract.ts +6 -0
- package/src/kotlin-module.ts +3 -3
- package/src/sfSymbolMetricsContract.ts +73 -37
- package/src/swift-compile.ts +99 -7
- package/src/swift-coverage/provenance.ts +4 -4
- package/src/swift-guest-image-ledger.ts +10 -5
- package/src/swift-guest-link.ts +20 -14
- package/src/swift-objc-sdk.ts +34 -21
- package/src/swift-objc-standin.ts +7 -7
- package/src/swift-standins.ts +11 -8
- package/src/swift-wasm-prune.ts +30 -0
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2249 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -35,14 +35,6 @@ 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 define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
|
-
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
|
-
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b", "swift-package.ts": "338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "8deef5a824ed49209458a4b398cd8e88df260a0c8f1894d568279f6211866547", "home-paths.ts": "d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "774c42f06f8d5c1f3f3a09f94379db2046af0016f1fcd6cbe595a9c2da5dcf95", "xcode-target-members.ts": "d49af77a690cff481b38333b5f63f6600123b1bb57f410b0adb298b010d2047b", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
|
|
46
38
|
// src/process-table.ts
|
|
47
39
|
function linuxClockTicks() {
|
|
48
40
|
const auxv = (0, import_node_fs.readFileSync)("/proc/self/auxv");
|
|
@@ -130,7 +122,6 @@ var import_node_child_process, import_node_fs, import_node_os, clockTicks;
|
|
|
130
122
|
var init_process_table = __esm({
|
|
131
123
|
"src/process-table.ts"() {
|
|
132
124
|
"use strict";
|
|
133
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
134
125
|
import_node_child_process = require("node:child_process");
|
|
135
126
|
import_node_fs = require("node:fs");
|
|
136
127
|
import_node_os = require("node:os");
|
|
@@ -448,7 +439,6 @@ var import_node_child_process2, import_node_fs2, import_node_os2, import_node_pa
|
|
|
448
439
|
var init_process_group = __esm({
|
|
449
440
|
"src/process-group.ts"() {
|
|
450
441
|
"use strict";
|
|
451
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
452
442
|
import_node_child_process2 = require("node:child_process");
|
|
453
443
|
import_node_fs2 = require("node:fs");
|
|
454
444
|
import_node_os2 = require("node:os");
|
|
@@ -469,7 +459,6 @@ function isValidRuntimeVersion(value) {
|
|
|
469
459
|
var init_version = __esm({
|
|
470
460
|
"../contrast-runtime-delivery/src/version.ts"() {
|
|
471
461
|
"use strict";
|
|
472
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
473
462
|
}
|
|
474
463
|
});
|
|
475
464
|
|
|
@@ -509,7 +498,6 @@ var import_node_fs3, import_node_path2;
|
|
|
509
498
|
var init_product = __esm({
|
|
510
499
|
"../contrast-runtime-delivery/src/product.ts"() {
|
|
511
500
|
"use strict";
|
|
512
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
513
501
|
import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
514
502
|
import_node_path2 = __toESM(require("node:path"), 1);
|
|
515
503
|
init_version();
|
|
@@ -521,7 +509,6 @@ var RUNTIME_PACKS_FILE, RUNTIME_PACK_MARKER, RUNTIME_PACK_PREFIXES, RUNTIME_MERG
|
|
|
521
509
|
var init_packs = __esm({
|
|
522
510
|
"../contrast-runtime-delivery/src/packs.ts"() {
|
|
523
511
|
"use strict";
|
|
524
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
525
512
|
RUNTIME_PACKS_FILE = "packs.json";
|
|
526
513
|
RUNTIME_PACK_MARKER = ".pack";
|
|
527
514
|
RUNTIME_PACK_PREFIXES = [
|
|
@@ -1051,7 +1038,6 @@ var import_node_child_process3, import_node_crypto, import_node_fs4, import_node
|
|
|
1051
1038
|
var init_src = __esm({
|
|
1052
1039
|
"../contrast-runtime-delivery/src/index.ts"() {
|
|
1053
1040
|
"use strict";
|
|
1054
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1055
1041
|
import_node_child_process3 = require("node:child_process");
|
|
1056
1042
|
import_node_crypto = __toESM(require("node:crypto"), 1);
|
|
1057
1043
|
import_node_fs4 = __toESM(require("node:fs"), 1);
|
|
@@ -1072,7 +1058,7 @@ var init_src = __esm({
|
|
|
1072
1058
|
var runtime_companion_default;
|
|
1073
1059
|
var init_runtime_companion = __esm({
|
|
1074
1060
|
"runtime-companion.json"() {
|
|
1075
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
1061
|
+
runtime_companion_default = { abi: 1, sha256: "0576baa8f64749f044d1fee413b30d3459d6a2a5caf1435ecc04500a7031bf93", file: "node/cli-0576baa8f64749f044d1fee413b30d3459d6a2a5caf1435ecc04500a7031bf93.cjs" };
|
|
1076
1062
|
}
|
|
1077
1063
|
});
|
|
1078
1064
|
|
|
@@ -1161,7 +1147,6 @@ var import_node_fs5, import_node_os4, import_node_path4, PEACH_HOME_ENV, ACTIVE_
|
|
|
1161
1147
|
var init_home_paths = __esm({
|
|
1162
1148
|
"src/home-paths.ts"() {
|
|
1163
1149
|
"use strict";
|
|
1164
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1165
1150
|
import_node_fs5 = __toESM(require("node:fs"), 1);
|
|
1166
1151
|
import_node_os4 = require("node:os");
|
|
1167
1152
|
import_node_path4 = __toESM(require("node:path"), 1);
|
|
@@ -1337,7 +1322,6 @@ var import_fs, import_path, import_url, SOOTSIM_RUNTIME_MISSING_MESSAGE, _monore
|
|
|
1337
1322
|
var init_runtime_assets = __esm({
|
|
1338
1323
|
"src/runtime-assets.ts"() {
|
|
1339
1324
|
"use strict";
|
|
1340
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1341
1325
|
import_fs = __toESM(require("fs"), 1);
|
|
1342
1326
|
import_path = __toESM(require("path"), 1);
|
|
1343
1327
|
import_url = require("url");
|
|
@@ -1398,7 +1382,6 @@ function peachRuntimeRoot() {
|
|
|
1398
1382
|
var init_answeredNativePackages = __esm({
|
|
1399
1383
|
"src/answeredNativePackages.ts"() {
|
|
1400
1384
|
"use strict";
|
|
1401
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1402
1385
|
init_runtime_assets();
|
|
1403
1386
|
}
|
|
1404
1387
|
});
|
|
@@ -1468,7 +1451,6 @@ var import_node_crypto2, import_node_fs6, import_node_module, import_node_path5,
|
|
|
1468
1451
|
var init_cli_runtime = __esm({
|
|
1469
1452
|
"src/cli-runtime.ts"() {
|
|
1470
1453
|
"use strict";
|
|
1471
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1472
1454
|
import_node_crypto2 = require("node:crypto");
|
|
1473
1455
|
import_node_fs6 = require("node:fs");
|
|
1474
1456
|
import_node_module = require("node:module");
|
|
@@ -1483,7 +1465,6 @@ var init_cli_runtime = __esm({
|
|
|
1483
1465
|
// ../../node_modules/json5/lib/unicode.js
|
|
1484
1466
|
var require_unicode = __commonJS({
|
|
1485
1467
|
"../../node_modules/json5/lib/unicode.js"(exports2, module2) {
|
|
1486
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1487
1468
|
module2.exports.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
1488
1469
|
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]/;
|
|
1489
1470
|
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]/;
|
|
@@ -1493,7 +1474,6 @@ var require_unicode = __commonJS({
|
|
|
1493
1474
|
// ../../node_modules/json5/lib/util.js
|
|
1494
1475
|
var require_util = __commonJS({
|
|
1495
1476
|
"../../node_modules/json5/lib/util.js"(exports2, module2) {
|
|
1496
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1497
1477
|
var unicode = require_unicode();
|
|
1498
1478
|
module2.exports = {
|
|
1499
1479
|
isSpaceSeparator(c) {
|
|
@@ -1518,7 +1498,6 @@ var require_util = __commonJS({
|
|
|
1518
1498
|
// ../../node_modules/json5/lib/parse.js
|
|
1519
1499
|
var require_parse = __commonJS({
|
|
1520
1500
|
"../../node_modules/json5/lib/parse.js"(exports2, module2) {
|
|
1521
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1522
1501
|
var util = require_util();
|
|
1523
1502
|
var source;
|
|
1524
1503
|
var parseState;
|
|
@@ -2366,7 +2345,6 @@ var require_parse = __commonJS({
|
|
|
2366
2345
|
// ../../node_modules/json5/lib/stringify.js
|
|
2367
2346
|
var require_stringify = __commonJS({
|
|
2368
2347
|
"../../node_modules/json5/lib/stringify.js"(exports2, module2) {
|
|
2369
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2370
2348
|
var util = require_util();
|
|
2371
2349
|
module2.exports = function stringify4(value, replacer, space) {
|
|
2372
2350
|
const stack = [];
|
|
@@ -2586,7 +2564,6 @@ var require_stringify = __commonJS({
|
|
|
2586
2564
|
// ../../node_modules/json5/lib/index.js
|
|
2587
2565
|
var require_lib = __commonJS({
|
|
2588
2566
|
"../../node_modules/json5/lib/index.js"(exports2, module2) {
|
|
2589
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2590
2567
|
var parse7 = require_parse();
|
|
2591
2568
|
var stringify4 = require_stringify();
|
|
2592
2569
|
var JSON53 = {
|
|
@@ -2691,7 +2668,6 @@ var import_node_http, import_node_https, import_node_stream3, import_node_zlib3,
|
|
|
2691
2668
|
var init_node_http_fetch = __esm({
|
|
2692
2669
|
"src/node-http-fetch.ts"() {
|
|
2693
2670
|
"use strict";
|
|
2694
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2695
2671
|
import_node_http = __toESM(require("node:http"), 1);
|
|
2696
2672
|
import_node_https = __toESM(require("node:https"), 1);
|
|
2697
2673
|
import_node_stream3 = require("node:stream");
|
|
@@ -2708,7 +2684,6 @@ var name, peachPublicBrand;
|
|
|
2708
2684
|
var init_public_brand = __esm({
|
|
2709
2685
|
"src/public-brand.ts"() {
|
|
2710
2686
|
"use strict";
|
|
2711
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2712
2687
|
name = "Peach";
|
|
2713
2688
|
peachPublicBrand = Object.freeze({
|
|
2714
2689
|
name,
|
|
@@ -2726,7 +2701,6 @@ var DEFAULT_RUNTIME_CDN_ORIGIN, RNX_CHANGELOG_URL, RNX_CHANGELOG_API_URL, RNX_RU
|
|
|
2726
2701
|
var init_runtime_delivery = __esm({
|
|
2727
2702
|
"src/runtime-delivery.ts"() {
|
|
2728
2703
|
"use strict";
|
|
2729
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2730
2704
|
init_src();
|
|
2731
2705
|
init_cli_runtime();
|
|
2732
2706
|
init_home_paths();
|
|
@@ -2778,7 +2752,7 @@ function listedFiles(runtimeRoot) {
|
|
|
2778
2752
|
listed = /* @__PURE__ */ new Map();
|
|
2779
2753
|
for (const [pack, entry] of Object.entries(readPacks(runtimeRoot) ?? {}))
|
|
2780
2754
|
for (const file of entry.files ?? []) {
|
|
2781
|
-
const name2 =
|
|
2755
|
+
const name2 = import_node_path17.default.posix.basename(file);
|
|
2782
2756
|
listed.set(name2, [...listed.get(name2) ?? [], { file, pack }]);
|
|
2783
2757
|
}
|
|
2784
2758
|
listedByRoot.set(runtimeRoot, listed);
|
|
@@ -2787,12 +2761,12 @@ function listedFiles(runtimeRoot) {
|
|
|
2787
2761
|
function readPacks(runtimeRoot) {
|
|
2788
2762
|
const cached = packsByRoot.get(runtimeRoot);
|
|
2789
2763
|
if (cached !== void 0) return cached;
|
|
2790
|
-
const file =
|
|
2791
|
-
if (!
|
|
2764
|
+
const file = import_node_path17.default.join(runtimeRoot, RUNTIME_PACKS_FILE);
|
|
2765
|
+
if (!import_node_fs13.default.existsSync(file)) {
|
|
2792
2766
|
packsByRoot.set(runtimeRoot, null);
|
|
2793
2767
|
return null;
|
|
2794
2768
|
}
|
|
2795
|
-
const parsed = JSON.parse(
|
|
2769
|
+
const parsed = JSON.parse(import_node_fs13.default.readFileSync(file, "utf8"));
|
|
2796
2770
|
const packs = {};
|
|
2797
2771
|
if (typeof parsed !== "object" || parsed === null)
|
|
2798
2772
|
throw new Error(`${file} is not an object`);
|
|
@@ -2820,26 +2794,26 @@ async function ensureRuntimePackFor(runtimeRoot, pathname) {
|
|
|
2820
2794
|
await installNamedPack(runtimeRoot, prefix);
|
|
2821
2795
|
return;
|
|
2822
2796
|
}
|
|
2823
|
-
const listed = listedFiles(runtimeRoot).get(
|
|
2797
|
+
const listed = listedFiles(runtimeRoot).get(import_node_path17.default.posix.basename(pathname))?.find(({ file }) => pathname.endsWith(`/${file}`));
|
|
2824
2798
|
if (listed) {
|
|
2825
|
-
if (!
|
|
2799
|
+
if (!import_node_fs13.default.existsSync(import_node_path17.default.join(runtimeRoot, listed.file)))
|
|
2826
2800
|
await installNamedPack(runtimeRoot, listed.pack);
|
|
2827
2801
|
return;
|
|
2828
2802
|
}
|
|
2829
2803
|
const at = pathname.indexOf(`/${RUNTIME_MERGE_PACK_DIR}`);
|
|
2830
2804
|
if (at === -1) return;
|
|
2831
|
-
const tenantDir =
|
|
2805
|
+
const tenantDir = import_node_path17.default.join(runtimeRoot, RUNTIME_MERGE_PACK_DIR);
|
|
2832
2806
|
const rel = pathname.slice(at + RUNTIME_MERGE_PACK_DIR.length + 1);
|
|
2833
|
-
if (!/\.m?js$/.test(rel) ||
|
|
2807
|
+
if (!/\.m?js$/.test(rel) || import_node_fs13.default.existsSync(import_node_path17.default.join(tenantDir, rel))) return;
|
|
2834
2808
|
await installNamedPack(runtimeRoot, RUNTIME_MERGE_PACK_DIR);
|
|
2835
2809
|
}
|
|
2836
2810
|
function installNamedPack(runtimeRoot, name2) {
|
|
2837
2811
|
if (name2 === RUNTIME_MERGE_PACK_DIR) {
|
|
2838
|
-
const tenantDir =
|
|
2812
|
+
const tenantDir = import_node_path17.default.join(runtimeRoot, RUNTIME_MERGE_PACK_DIR);
|
|
2839
2813
|
return mergePack(
|
|
2840
2814
|
runtimeRoot,
|
|
2841
2815
|
name2,
|
|
2842
|
-
|
|
2816
|
+
import_node_path17.default.join(tenantDir, RUNTIME_MERGE_PACK_INSTALL),
|
|
2843
2817
|
tenantDir
|
|
2844
2818
|
);
|
|
2845
2819
|
}
|
|
@@ -2847,10 +2821,10 @@ function installNamedPack(runtimeRoot, name2) {
|
|
|
2847
2821
|
return mergePack(
|
|
2848
2822
|
runtimeRoot,
|
|
2849
2823
|
name2,
|
|
2850
|
-
|
|
2824
|
+
import_node_path17.default.join(runtimeRoot, `.pack-${name2}`),
|
|
2851
2825
|
runtimeRoot
|
|
2852
2826
|
);
|
|
2853
|
-
return installPack(runtimeRoot, name2,
|
|
2827
|
+
return installPack(runtimeRoot, name2, import_node_path17.default.join(runtimeRoot, name2.slice(0, -1)));
|
|
2854
2828
|
}
|
|
2855
2829
|
function warmRuntimePacks(runtimeRoot) {
|
|
2856
2830
|
if (warming.has(runtimeRoot)) return;
|
|
@@ -2863,19 +2837,19 @@ function warmRuntimePacks(runtimeRoot) {
|
|
|
2863
2837
|
schedule(() => void warm(), WARM_DELAY_MS).unref();
|
|
2864
2838
|
}
|
|
2865
2839
|
async function mergePack(runtimeRoot, name2, installDir, targetDir) {
|
|
2866
|
-
if (
|
|
2840
|
+
if (import_node_fs13.default.existsSync(import_node_path17.default.join(installDir, RUNTIME_MERGE_PACK_MERGED))) return true;
|
|
2867
2841
|
if (!await installPack(runtimeRoot, name2, installDir)) return false;
|
|
2868
2842
|
const link = (sub) => {
|
|
2869
|
-
for (const entry of
|
|
2843
|
+
for (const entry of import_node_fs13.default.readdirSync(import_node_path17.default.join(installDir, sub), {
|
|
2870
2844
|
withFileTypes: true
|
|
2871
2845
|
})) {
|
|
2872
|
-
const child =
|
|
2846
|
+
const child = import_node_path17.default.join(sub, entry.name);
|
|
2873
2847
|
if (entry.isDirectory()) {
|
|
2874
|
-
|
|
2848
|
+
import_node_fs13.default.mkdirSync(import_node_path17.default.join(targetDir, child), { recursive: true });
|
|
2875
2849
|
link(child);
|
|
2876
2850
|
} else if (entry.name !== RUNTIME_PACK_MARKER) {
|
|
2877
2851
|
try {
|
|
2878
|
-
|
|
2852
|
+
import_node_fs13.default.linkSync(import_node_path17.default.join(installDir, child), import_node_path17.default.join(targetDir, child));
|
|
2879
2853
|
} catch (error) {
|
|
2880
2854
|
if (!(error instanceof Error && "code" in error && error.code === "EEXIST"))
|
|
2881
2855
|
throw error;
|
|
@@ -2885,7 +2859,7 @@ async function mergePack(runtimeRoot, name2, installDir, targetDir) {
|
|
|
2885
2859
|
};
|
|
2886
2860
|
try {
|
|
2887
2861
|
link("");
|
|
2888
|
-
|
|
2862
|
+
import_node_fs13.default.writeFileSync(import_node_path17.default.join(installDir, RUNTIME_MERGE_PACK_MERGED), "");
|
|
2889
2863
|
return true;
|
|
2890
2864
|
} catch (error) {
|
|
2891
2865
|
console.error(
|
|
@@ -2895,13 +2869,13 @@ async function mergePack(runtimeRoot, name2, installDir, targetDir) {
|
|
|
2895
2869
|
}
|
|
2896
2870
|
}
|
|
2897
2871
|
async function installPack(runtimeRoot, prefix, destDir) {
|
|
2898
|
-
const marker =
|
|
2899
|
-
if (
|
|
2872
|
+
const marker = import_node_path17.default.join(destDir, RUNTIME_PACK_MARKER);
|
|
2873
|
+
if (import_node_fs13.default.existsSync(marker)) return true;
|
|
2900
2874
|
const pack = readPacks(runtimeRoot)?.[prefix];
|
|
2901
2875
|
if (!pack) return true;
|
|
2902
2876
|
let install = inflight.get(destDir);
|
|
2903
2877
|
if (!install) {
|
|
2904
|
-
const version =
|
|
2878
|
+
const version = import_node_path17.default.basename(runtimeRoot);
|
|
2905
2879
|
const url = new URL(pack.file, rnxRuntime.tarballUrl(version));
|
|
2906
2880
|
url.searchParams.set("sha256", pack.sha256);
|
|
2907
2881
|
install = installVerifiedTarball({
|
|
@@ -2918,15 +2892,14 @@ async function installPack(runtimeRoot, prefix, destDir) {
|
|
|
2918
2892
|
inflight.set(destDir, install);
|
|
2919
2893
|
}
|
|
2920
2894
|
await install;
|
|
2921
|
-
return
|
|
2895
|
+
return import_node_fs13.default.existsSync(marker);
|
|
2922
2896
|
}
|
|
2923
|
-
var
|
|
2897
|
+
var import_node_fs13, import_node_path17, import_node_timers, inflight, packsByRoot, listedByRoot, WARM_DELAY_MS, warming;
|
|
2924
2898
|
var init_runtime_packs = __esm({
|
|
2925
2899
|
"src/runtime-packs.ts"() {
|
|
2926
2900
|
"use strict";
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
import_node_path20 = __toESM(require("node:path"), 1);
|
|
2901
|
+
import_node_fs13 = __toESM(require("node:fs"), 1);
|
|
2902
|
+
import_node_path17 = __toESM(require("node:path"), 1);
|
|
2930
2903
|
import_node_timers = require("node:timers");
|
|
2931
2904
|
init_src();
|
|
2932
2905
|
init_runtime_delivery();
|
|
@@ -2945,20 +2918,15 @@ __export(vite_plugin_one_exports, {
|
|
|
2945
2918
|
peachPlugin: () => peachPlugin
|
|
2946
2919
|
});
|
|
2947
2920
|
module.exports = __toCommonJS(vite_plugin_one_exports);
|
|
2948
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2949
2921
|
var import_fs4 = __toESM(require("fs"), 1);
|
|
2950
|
-
var
|
|
2922
|
+
var import_node_crypto6 = require("node:crypto");
|
|
2951
2923
|
var import_node_http3 = __toESM(require("node:http"), 1);
|
|
2952
2924
|
var import_node_https2 = __toESM(require("node:https"), 1);
|
|
2953
2925
|
var import_node_url2 = require("node:url");
|
|
2954
2926
|
var import_path4 = __toESM(require("path"), 1);
|
|
2955
2927
|
var import_promises8 = require("stream/promises");
|
|
2956
2928
|
|
|
2957
|
-
// ../peach-globals/src/package-versions.ts
|
|
2958
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2959
|
-
|
|
2960
2929
|
// ../peach-globals/src/bundle-global-footer.ts
|
|
2961
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2962
2930
|
function findBundleFooter(source, prefix) {
|
|
2963
2931
|
let end = source.length;
|
|
2964
2932
|
while (end > 0) {
|
|
@@ -3046,11 +3014,7 @@ function resolveWorkletsStaticFlags(defaults, appManifest) {
|
|
|
3046
3014
|
// src/vite-plugin-one.ts
|
|
3047
3015
|
var import_ws = require("ws");
|
|
3048
3016
|
|
|
3049
|
-
// src/bridge-constants.ts
|
|
3050
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3051
|
-
|
|
3052
3017
|
// src/simulator-route.ts
|
|
3053
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3054
3018
|
var PEACH_SIMULATOR_PATH = "/simulator";
|
|
3055
3019
|
var SIMULATOR_DOCUMENT_PATH = new RegExp(
|
|
3056
3020
|
`^${PEACH_SIMULATOR_PATH}(?:/(?:rn(?:/[^/]+)?|app/[^/]+|dock/[^/]+))?/?$`
|
|
@@ -3066,7 +3030,6 @@ var AUTOMATION_SIM_IDLE_REAP_TTL_MS = 5 * 6e4;
|
|
|
3066
3030
|
init_cli_runtime();
|
|
3067
3031
|
|
|
3068
3032
|
// src/dev-server-open.ts
|
|
3069
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3070
3033
|
var import_node_child_process4 = require("node:child_process");
|
|
3071
3034
|
var import_node_crypto3 = require("node:crypto");
|
|
3072
3035
|
var import_node_fs7 = __toESM(require("node:fs"), 1);
|
|
@@ -3140,14 +3103,12 @@ function launchRnxDesktop(bundleUrl, appName) {
|
|
|
3140
3103
|
init_home_paths();
|
|
3141
3104
|
|
|
3142
3105
|
// src/host/fetch-proxy-handler.ts
|
|
3143
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3144
3106
|
var import_http = __toESM(require("http"), 1);
|
|
3145
3107
|
var import_https = __toESM(require("https"), 1);
|
|
3146
3108
|
var import_node_http2 = require("node:http2");
|
|
3147
3109
|
var import_promises6 = require("stream/promises");
|
|
3148
3110
|
|
|
3149
3111
|
// src/backend-origin.ts
|
|
3150
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3151
3112
|
var NativeURL = globalThis.URL;
|
|
3152
3113
|
function normalizeHostname(hostname) {
|
|
3153
3114
|
return hostname.replace(/^\[|\]$/g, "").toLowerCase();
|
|
@@ -3178,79 +3139,33 @@ function loopbackOriginOf(value) {
|
|
|
3178
3139
|
}
|
|
3179
3140
|
|
|
3180
3141
|
// src/host/dev-server-package-versions.ts
|
|
3181
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3182
3142
|
var import_fs3 = __toESM(require("fs"), 1);
|
|
3183
3143
|
var import_path3 = __toESM(require("path"), 1);
|
|
3184
3144
|
|
|
3185
3145
|
// src/expo-pod-prebuilt.ts
|
|
3186
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3187
3146
|
init_answeredNativePackages();
|
|
3188
3147
|
|
|
3189
3148
|
// src/expo-autolinking.ts
|
|
3190
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3191
3149
|
var import_node_child_process5 = require("node:child_process");
|
|
3192
3150
|
var import_node_util = require("node:util");
|
|
3193
3151
|
|
|
3194
3152
|
// src/forked-script-contract.ts
|
|
3195
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3196
3153
|
var PEACH_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
3197
3154
|
|
|
3198
3155
|
// src/expo-autolinking.ts
|
|
3199
3156
|
var run = (0, import_node_util.promisify)(import_node_child_process5.execFile);
|
|
3200
3157
|
|
|
3201
3158
|
// src/expo-native-prebuilt.ts
|
|
3202
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3203
3159
|
var import_plist5 = __toESM(require("plist"), 1);
|
|
3204
3160
|
init_answeredNativePackages();
|
|
3205
3161
|
|
|
3206
|
-
// src/expo-native-compiler-digest.ts
|
|
3207
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3208
|
-
|
|
3209
|
-
// src/react-native-core-digest.ts
|
|
3210
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3211
|
-
|
|
3212
|
-
// src/swift-compiler-digest.ts
|
|
3213
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3214
|
-
|
|
3215
|
-
// src/swift-objc-sdk-tree.ts
|
|
3216
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3217
|
-
var import_node_fs8 = require("node:fs");
|
|
3218
|
-
var import_node_path7 = __toESM(require("node:path"), 1);
|
|
3219
|
-
function readIosSdkTree(root) {
|
|
3220
|
-
return (0, import_node_fs8.readdirSync)(root, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => {
|
|
3221
|
-
const file = import_node_path7.default.join(entry.parentPath, entry.name);
|
|
3222
|
-
return [
|
|
3223
|
-
import_node_path7.default.relative(root, file).split(import_node_path7.default.sep).join("/"),
|
|
3224
|
-
(0, import_node_fs8.readFileSync)(file, "utf8")
|
|
3225
|
-
];
|
|
3226
|
-
}).sort(([a], [b]) => a < b ? -1 : 1);
|
|
3227
|
-
}
|
|
3228
|
-
|
|
3229
3162
|
// src/swift-standin-digest.ts
|
|
3230
|
-
|
|
3231
|
-
var STANDIN_SOURCE_DIGEST = true ? "5060fb77e22fd3d9fa69d6e25dbc7bca5b3605d41a6bc164f40ccaee2a131504" : standinSourceDigest();
|
|
3232
|
-
|
|
3233
|
-
// src/expo-native-workspace.ts
|
|
3234
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3163
|
+
var STANDIN_SOURCE_DIGEST = true ? "089050e56f3e4935fed286174446973ff56c0fb4ee8c326f19a71b9fecbe9d05" : standinSourceDigest();
|
|
3235
3164
|
|
|
3236
3165
|
// cli/commands/detect.ts
|
|
3237
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3238
3166
|
var import_json5 = __toESM(require_lib(), 1);
|
|
3239
3167
|
|
|
3240
|
-
// ../../node_modules/yaml/browser/index.js
|
|
3241
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3242
|
-
|
|
3243
|
-
// ../../node_modules/yaml/browser/dist/index.js
|
|
3244
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3245
|
-
|
|
3246
|
-
// ../../node_modules/yaml/browser/dist/compose/composer.js
|
|
3247
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3248
|
-
|
|
3249
|
-
// ../../node_modules/yaml/browser/dist/doc/directives.js
|
|
3250
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3251
|
-
|
|
3252
3168
|
// ../../node_modules/yaml/browser/dist/nodes/identity.js
|
|
3253
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3254
3169
|
var ALIAS = Symbol.for("yaml.alias");
|
|
3255
3170
|
var DOC = Symbol.for("yaml.document");
|
|
3256
3171
|
var MAP = Symbol.for("yaml.map");
|
|
@@ -3287,7 +3202,6 @@ function isNode(node) {
|
|
|
3287
3202
|
var hasAnchor = (node) => (isScalar(node) || isCollection(node)) && !!node.anchor;
|
|
3288
3203
|
|
|
3289
3204
|
// ../../node_modules/yaml/browser/dist/visit.js
|
|
3290
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3291
3205
|
var BREAK = Symbol("break visit");
|
|
3292
3206
|
var SKIP = Symbol("skip children");
|
|
3293
3207
|
var REMOVE = Symbol("remove node");
|
|
@@ -3303,17 +3217,17 @@ function visit(node, visitor) {
|
|
|
3303
3217
|
visit.BREAK = BREAK;
|
|
3304
3218
|
visit.SKIP = SKIP;
|
|
3305
3219
|
visit.REMOVE = REMOVE;
|
|
3306
|
-
function visit_(key, node, visitor,
|
|
3307
|
-
const ctrl = callVisitor(key, node, visitor,
|
|
3220
|
+
function visit_(key, node, visitor, path18) {
|
|
3221
|
+
const ctrl = callVisitor(key, node, visitor, path18);
|
|
3308
3222
|
if (isNode(ctrl) || isPair(ctrl)) {
|
|
3309
|
-
replaceNode(key,
|
|
3310
|
-
return visit_(key, ctrl, visitor,
|
|
3223
|
+
replaceNode(key, path18, ctrl);
|
|
3224
|
+
return visit_(key, ctrl, visitor, path18);
|
|
3311
3225
|
}
|
|
3312
3226
|
if (typeof ctrl !== "symbol") {
|
|
3313
3227
|
if (isCollection(node)) {
|
|
3314
|
-
|
|
3228
|
+
path18 = Object.freeze(path18.concat(node));
|
|
3315
3229
|
for (let i = 0; i < node.items.length; ++i) {
|
|
3316
|
-
const ci = visit_(i, node.items[i], visitor,
|
|
3230
|
+
const ci = visit_(i, node.items[i], visitor, path18);
|
|
3317
3231
|
if (typeof ci === "number")
|
|
3318
3232
|
i = ci - 1;
|
|
3319
3233
|
else if (ci === BREAK)
|
|
@@ -3324,13 +3238,13 @@ function visit_(key, node, visitor, path20) {
|
|
|
3324
3238
|
}
|
|
3325
3239
|
}
|
|
3326
3240
|
} else if (isPair(node)) {
|
|
3327
|
-
|
|
3328
|
-
const ck = visit_("key", node.key, visitor,
|
|
3241
|
+
path18 = Object.freeze(path18.concat(node));
|
|
3242
|
+
const ck = visit_("key", node.key, visitor, path18);
|
|
3329
3243
|
if (ck === BREAK)
|
|
3330
3244
|
return BREAK;
|
|
3331
3245
|
else if (ck === REMOVE)
|
|
3332
3246
|
node.key = null;
|
|
3333
|
-
const cv = visit_("value", node.value, visitor,
|
|
3247
|
+
const cv = visit_("value", node.value, visitor, path18);
|
|
3334
3248
|
if (cv === BREAK)
|
|
3335
3249
|
return BREAK;
|
|
3336
3250
|
else if (cv === REMOVE)
|
|
@@ -3351,17 +3265,17 @@ async function visitAsync(node, visitor) {
|
|
|
3351
3265
|
visitAsync.BREAK = BREAK;
|
|
3352
3266
|
visitAsync.SKIP = SKIP;
|
|
3353
3267
|
visitAsync.REMOVE = REMOVE;
|
|
3354
|
-
async function visitAsync_(key, node, visitor,
|
|
3355
|
-
const ctrl = await callVisitor(key, node, visitor,
|
|
3268
|
+
async function visitAsync_(key, node, visitor, path18) {
|
|
3269
|
+
const ctrl = await callVisitor(key, node, visitor, path18);
|
|
3356
3270
|
if (isNode(ctrl) || isPair(ctrl)) {
|
|
3357
|
-
replaceNode(key,
|
|
3358
|
-
return visitAsync_(key, ctrl, visitor,
|
|
3271
|
+
replaceNode(key, path18, ctrl);
|
|
3272
|
+
return visitAsync_(key, ctrl, visitor, path18);
|
|
3359
3273
|
}
|
|
3360
3274
|
if (typeof ctrl !== "symbol") {
|
|
3361
3275
|
if (isCollection(node)) {
|
|
3362
|
-
|
|
3276
|
+
path18 = Object.freeze(path18.concat(node));
|
|
3363
3277
|
for (let i = 0; i < node.items.length; ++i) {
|
|
3364
|
-
const ci = await visitAsync_(i, node.items[i], visitor,
|
|
3278
|
+
const ci = await visitAsync_(i, node.items[i], visitor, path18);
|
|
3365
3279
|
if (typeof ci === "number")
|
|
3366
3280
|
i = ci - 1;
|
|
3367
3281
|
else if (ci === BREAK)
|
|
@@ -3372,13 +3286,13 @@ async function visitAsync_(key, node, visitor, path20) {
|
|
|
3372
3286
|
}
|
|
3373
3287
|
}
|
|
3374
3288
|
} else if (isPair(node)) {
|
|
3375
|
-
|
|
3376
|
-
const ck = await visitAsync_("key", node.key, visitor,
|
|
3289
|
+
path18 = Object.freeze(path18.concat(node));
|
|
3290
|
+
const ck = await visitAsync_("key", node.key, visitor, path18);
|
|
3377
3291
|
if (ck === BREAK)
|
|
3378
3292
|
return BREAK;
|
|
3379
3293
|
else if (ck === REMOVE)
|
|
3380
3294
|
node.key = null;
|
|
3381
|
-
const cv = await visitAsync_("value", node.value, visitor,
|
|
3295
|
+
const cv = await visitAsync_("value", node.value, visitor, path18);
|
|
3382
3296
|
if (cv === BREAK)
|
|
3383
3297
|
return BREAK;
|
|
3384
3298
|
else if (cv === REMOVE)
|
|
@@ -3405,23 +3319,23 @@ function initVisitor(visitor) {
|
|
|
3405
3319
|
}
|
|
3406
3320
|
return visitor;
|
|
3407
3321
|
}
|
|
3408
|
-
function callVisitor(key, node, visitor,
|
|
3322
|
+
function callVisitor(key, node, visitor, path18) {
|
|
3409
3323
|
if (typeof visitor === "function")
|
|
3410
|
-
return visitor(key, node,
|
|
3324
|
+
return visitor(key, node, path18);
|
|
3411
3325
|
if (isMap(node))
|
|
3412
|
-
return visitor.Map?.(key, node,
|
|
3326
|
+
return visitor.Map?.(key, node, path18);
|
|
3413
3327
|
if (isSeq(node))
|
|
3414
|
-
return visitor.Seq?.(key, node,
|
|
3328
|
+
return visitor.Seq?.(key, node, path18);
|
|
3415
3329
|
if (isPair(node))
|
|
3416
|
-
return visitor.Pair?.(key, node,
|
|
3330
|
+
return visitor.Pair?.(key, node, path18);
|
|
3417
3331
|
if (isScalar(node))
|
|
3418
|
-
return visitor.Scalar?.(key, node,
|
|
3332
|
+
return visitor.Scalar?.(key, node, path18);
|
|
3419
3333
|
if (isAlias(node))
|
|
3420
|
-
return visitor.Alias?.(key, node,
|
|
3334
|
+
return visitor.Alias?.(key, node, path18);
|
|
3421
3335
|
return void 0;
|
|
3422
3336
|
}
|
|
3423
|
-
function replaceNode(key,
|
|
3424
|
-
const parent =
|
|
3337
|
+
function replaceNode(key, path18, node) {
|
|
3338
|
+
const parent = path18[path18.length - 1];
|
|
3425
3339
|
if (isCollection(parent)) {
|
|
3426
3340
|
parent.items[key] = node;
|
|
3427
3341
|
} else if (isPair(parent)) {
|
|
@@ -3600,14 +3514,7 @@ var Directives = class _Directives {
|
|
|
3600
3514
|
Directives.defaultYaml = { explicit: false, version: "1.2" };
|
|
3601
3515
|
Directives.defaultTags = { "!!": "tag:yaml.org,2002:" };
|
|
3602
3516
|
|
|
3603
|
-
// ../../node_modules/yaml/browser/dist/doc/Document.js
|
|
3604
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3605
|
-
|
|
3606
|
-
// ../../node_modules/yaml/browser/dist/nodes/Alias.js
|
|
3607
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3608
|
-
|
|
3609
3517
|
// ../../node_modules/yaml/browser/dist/doc/anchors.js
|
|
3610
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3611
3518
|
function anchorIsValid(anchor) {
|
|
3612
3519
|
if (/[\x00-\x19\s,[\]{}]/.test(anchor)) {
|
|
3613
3520
|
const sa = JSON.stringify(anchor);
|
|
@@ -3617,11 +3524,7 @@ function anchorIsValid(anchor) {
|
|
|
3617
3524
|
return true;
|
|
3618
3525
|
}
|
|
3619
3526
|
|
|
3620
|
-
// ../../node_modules/yaml/browser/dist/nodes/Node.js
|
|
3621
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3622
|
-
|
|
3623
3527
|
// ../../node_modules/yaml/browser/dist/doc/applyReviver.js
|
|
3624
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3625
3528
|
function applyReviver(reviver, obj, key, val) {
|
|
3626
3529
|
if (val && typeof val === "object") {
|
|
3627
3530
|
if (Array.isArray(val)) {
|
|
@@ -3666,7 +3569,6 @@ function applyReviver(reviver, obj, key, val) {
|
|
|
3666
3569
|
}
|
|
3667
3570
|
|
|
3668
3571
|
// ../../node_modules/yaml/browser/dist/nodes/toJS.js
|
|
3669
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3670
3572
|
function toJS(value, arg, ctx) {
|
|
3671
3573
|
if (Array.isArray(value))
|
|
3672
3574
|
return value.map((v6, i) => toJS(v6, String(i), ctx));
|
|
@@ -3826,14 +3728,7 @@ function getAliasCount(doc, node, anchors) {
|
|
|
3826
3728
|
return 1;
|
|
3827
3729
|
}
|
|
3828
3730
|
|
|
3829
|
-
// ../../node_modules/yaml/browser/dist/nodes/Collection.js
|
|
3830
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3831
|
-
|
|
3832
|
-
// ../../node_modules/yaml/browser/dist/doc/createNode.js
|
|
3833
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3834
|
-
|
|
3835
3731
|
// ../../node_modules/yaml/browser/dist/nodes/Scalar.js
|
|
3836
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3837
3732
|
var isScalarValue = (value) => !value || typeof value !== "function" && typeof value !== "object";
|
|
3838
3733
|
var Scalar = class extends NodeBase {
|
|
3839
3734
|
constructor(value) {
|
|
@@ -3920,10 +3815,10 @@ function createNode(value, tagName, ctx) {
|
|
|
3920
3815
|
}
|
|
3921
3816
|
|
|
3922
3817
|
// ../../node_modules/yaml/browser/dist/nodes/Collection.js
|
|
3923
|
-
function collectionFromPath(schema4,
|
|
3818
|
+
function collectionFromPath(schema4, path18, value) {
|
|
3924
3819
|
let v6 = value;
|
|
3925
|
-
for (let i =
|
|
3926
|
-
const k =
|
|
3820
|
+
for (let i = path18.length - 1; i >= 0; --i) {
|
|
3821
|
+
const k = path18[i];
|
|
3927
3822
|
if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
|
|
3928
3823
|
const a = [];
|
|
3929
3824
|
a[k] = v6;
|
|
@@ -3942,7 +3837,7 @@ function collectionFromPath(schema4, path20, value) {
|
|
|
3942
3837
|
sourceObjects: /* @__PURE__ */ new Map()
|
|
3943
3838
|
});
|
|
3944
3839
|
}
|
|
3945
|
-
var isEmptyPath = (
|
|
3840
|
+
var isEmptyPath = (path18) => path18 == null || typeof path18 === "object" && !!path18[Symbol.iterator]().next().done;
|
|
3946
3841
|
var Collection = class extends NodeBase {
|
|
3947
3842
|
constructor(type, schema4) {
|
|
3948
3843
|
super(type);
|
|
@@ -3972,11 +3867,11 @@ var Collection = class extends NodeBase {
|
|
|
3972
3867
|
* be a Pair instance or a `{ key, value }` object, which may not have a key
|
|
3973
3868
|
* that already exists in the map.
|
|
3974
3869
|
*/
|
|
3975
|
-
addIn(
|
|
3976
|
-
if (isEmptyPath(
|
|
3870
|
+
addIn(path18, value) {
|
|
3871
|
+
if (isEmptyPath(path18))
|
|
3977
3872
|
this.add(value);
|
|
3978
3873
|
else {
|
|
3979
|
-
const [key, ...rest] =
|
|
3874
|
+
const [key, ...rest] = path18;
|
|
3980
3875
|
const node = this.get(key, true);
|
|
3981
3876
|
if (isCollection(node))
|
|
3982
3877
|
node.addIn(rest, value);
|
|
@@ -3990,8 +3885,8 @@ var Collection = class extends NodeBase {
|
|
|
3990
3885
|
* Removes a value from the collection.
|
|
3991
3886
|
* @returns `true` if the item was found and removed.
|
|
3992
3887
|
*/
|
|
3993
|
-
deleteIn(
|
|
3994
|
-
const [key, ...rest] =
|
|
3888
|
+
deleteIn(path18) {
|
|
3889
|
+
const [key, ...rest] = path18;
|
|
3995
3890
|
if (rest.length === 0)
|
|
3996
3891
|
return this.delete(key);
|
|
3997
3892
|
const node = this.get(key, true);
|
|
@@ -4005,8 +3900,8 @@ var Collection = class extends NodeBase {
|
|
|
4005
3900
|
* scalar values from their surrounding node; to disable set `keepScalar` to
|
|
4006
3901
|
* `true` (collections are always returned intact).
|
|
4007
3902
|
*/
|
|
4008
|
-
getIn(
|
|
4009
|
-
const [key, ...rest] =
|
|
3903
|
+
getIn(path18, keepScalar) {
|
|
3904
|
+
const [key, ...rest] = path18;
|
|
4010
3905
|
const node = this.get(key, true);
|
|
4011
3906
|
if (rest.length === 0)
|
|
4012
3907
|
return !keepScalar && isScalar(node) ? node.value : node;
|
|
@@ -4024,8 +3919,8 @@ var Collection = class extends NodeBase {
|
|
|
4024
3919
|
/**
|
|
4025
3920
|
* Checks if the collection includes a value with the key `key`.
|
|
4026
3921
|
*/
|
|
4027
|
-
hasIn(
|
|
4028
|
-
const [key, ...rest] =
|
|
3922
|
+
hasIn(path18) {
|
|
3923
|
+
const [key, ...rest] = path18;
|
|
4029
3924
|
if (rest.length === 0)
|
|
4030
3925
|
return this.has(key);
|
|
4031
3926
|
const node = this.get(key, true);
|
|
@@ -4035,8 +3930,8 @@ var Collection = class extends NodeBase {
|
|
|
4035
3930
|
* Sets a value in this collection. For `!!set`, `value` needs to be a
|
|
4036
3931
|
* boolean to add/remove the item from the set.
|
|
4037
3932
|
*/
|
|
4038
|
-
setIn(
|
|
4039
|
-
const [key, ...rest] =
|
|
3933
|
+
setIn(path18, value) {
|
|
3934
|
+
const [key, ...rest] = path18;
|
|
4040
3935
|
if (rest.length === 0) {
|
|
4041
3936
|
this.set(key, value);
|
|
4042
3937
|
} else {
|
|
@@ -4051,17 +3946,7 @@ var Collection = class extends NodeBase {
|
|
|
4051
3946
|
}
|
|
4052
3947
|
};
|
|
4053
3948
|
|
|
4054
|
-
// ../../node_modules/yaml/browser/dist/nodes/Pair.js
|
|
4055
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4056
|
-
|
|
4057
|
-
// ../../node_modules/yaml/browser/dist/stringify/stringifyPair.js
|
|
4058
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4059
|
-
|
|
4060
|
-
// ../../node_modules/yaml/browser/dist/stringify/stringify.js
|
|
4061
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4062
|
-
|
|
4063
3949
|
// ../../node_modules/yaml/browser/dist/stringify/stringifyComment.js
|
|
4064
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4065
3950
|
var stringifyComment = (str2) => str2.replace(/^(?!$)(?: $)?/gm, "#");
|
|
4066
3951
|
function indentComment(comment, indent) {
|
|
4067
3952
|
if (/^\n+$/.test(comment))
|
|
@@ -4070,11 +3955,7 @@ function indentComment(comment, indent) {
|
|
|
4070
3955
|
}
|
|
4071
3956
|
var lineComment = (str2, indent, comment) => str2.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str2.endsWith(" ") ? "" : " ") + comment;
|
|
4072
3957
|
|
|
4073
|
-
// ../../node_modules/yaml/browser/dist/stringify/stringifyString.js
|
|
4074
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4075
|
-
|
|
4076
3958
|
// ../../node_modules/yaml/browser/dist/stringify/foldFlowLines.js
|
|
4077
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4078
3959
|
var FOLD_FLOW = "flow";
|
|
4079
3960
|
var FOLD_BLOCK = "block";
|
|
4080
3961
|
var FOLD_QUOTED = "quoted";
|
|
@@ -4712,11 +4593,7 @@ ${ctx.indent}`;
|
|
|
4712
4593
|
return str2;
|
|
4713
4594
|
}
|
|
4714
4595
|
|
|
4715
|
-
// ../../node_modules/yaml/browser/dist/nodes/addPairToJSMap.js
|
|
4716
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4717
|
-
|
|
4718
4596
|
// ../../node_modules/yaml/browser/dist/log.js
|
|
4719
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4720
4597
|
function warn(logLevel, warning) {
|
|
4721
4598
|
if (logLevel === "debug" || logLevel === "warn") {
|
|
4722
4599
|
console.warn(warning);
|
|
@@ -4724,7 +4601,6 @@ function warn(logLevel, warning) {
|
|
|
4724
4601
|
}
|
|
4725
4602
|
|
|
4726
4603
|
// ../../node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js
|
|
4727
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4728
4604
|
var MERGE_KEY = "<<";
|
|
4729
4605
|
var merge = {
|
|
4730
4606
|
identify: (value) => value === MERGE_KEY || typeof value === "symbol" && value.description === MERGE_KEY,
|
|
@@ -4856,17 +4732,7 @@ var Pair = class _Pair {
|
|
|
4856
4732
|
}
|
|
4857
4733
|
};
|
|
4858
4734
|
|
|
4859
|
-
// ../../node_modules/yaml/browser/dist/schema/Schema.js
|
|
4860
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4861
|
-
|
|
4862
|
-
// ../../node_modules/yaml/browser/dist/schema/common/map.js
|
|
4863
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4864
|
-
|
|
4865
|
-
// ../../node_modules/yaml/browser/dist/nodes/YAMLMap.js
|
|
4866
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4867
|
-
|
|
4868
4735
|
// ../../node_modules/yaml/browser/dist/stringify/stringifyCollection.js
|
|
4869
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4870
4736
|
function stringifyCollection(collection, ctx, options) {
|
|
4871
4737
|
const flow = ctx.inFlow ?? collection.flow;
|
|
4872
4738
|
const stringify4 = flow ? stringifyFlowCollection : stringifyBlockCollection;
|
|
@@ -5153,11 +5019,7 @@ var map = {
|
|
|
5153
5019
|
createNode: (schema4, obj, ctx) => YAMLMap.from(schema4, obj, ctx)
|
|
5154
5020
|
};
|
|
5155
5021
|
|
|
5156
|
-
// ../../node_modules/yaml/browser/dist/schema/common/seq.js
|
|
5157
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5158
|
-
|
|
5159
5022
|
// ../../node_modules/yaml/browser/dist/nodes/YAMLSeq.js
|
|
5160
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5161
5023
|
var YAMLSeq = class extends Collection {
|
|
5162
5024
|
static get tagName() {
|
|
5163
5025
|
return "tag:yaml.org,2002:seq";
|
|
@@ -5275,32 +5137,7 @@ var seq = {
|
|
|
5275
5137
|
createNode: (schema4, obj, ctx) => YAMLSeq.from(schema4, obj, ctx)
|
|
5276
5138
|
};
|
|
5277
5139
|
|
|
5278
|
-
// ../../node_modules/yaml/browser/dist/schema/common/string.js
|
|
5279
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5280
|
-
|
|
5281
|
-
// ../../node_modules/yaml/browser/dist/schema/tags.js
|
|
5282
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5283
|
-
|
|
5284
|
-
// ../../node_modules/yaml/browser/dist/schema/common/null.js
|
|
5285
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5286
|
-
|
|
5287
|
-
// ../../node_modules/yaml/browser/dist/schema/core/bool.js
|
|
5288
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5289
|
-
|
|
5290
|
-
// ../../node_modules/yaml/browser/dist/schema/core/float.js
|
|
5291
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5292
|
-
|
|
5293
|
-
// ../../node_modules/yaml/browser/dist/stringify/stringifyNumber.js
|
|
5294
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5295
|
-
|
|
5296
|
-
// ../../node_modules/yaml/browser/dist/schema/core/int.js
|
|
5297
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5298
|
-
|
|
5299
|
-
// ../../node_modules/yaml/browser/dist/schema/core/schema.js
|
|
5300
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5301
|
-
|
|
5302
5140
|
// ../../node_modules/yaml/browser/dist/schema/json/schema.js
|
|
5303
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5304
5141
|
function intIdentify(value) {
|
|
5305
5142
|
return typeof value === "bigint" || Number.isInteger(value);
|
|
5306
5143
|
}
|
|
@@ -5358,14 +5195,7 @@ var jsonError = {
|
|
|
5358
5195
|
};
|
|
5359
5196
|
var schema = [map, seq].concat(jsonScalars, jsonError);
|
|
5360
5197
|
|
|
5361
|
-
// ../../node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js
|
|
5362
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5363
|
-
|
|
5364
|
-
// ../../node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js
|
|
5365
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5366
|
-
|
|
5367
5198
|
// ../../node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js
|
|
5368
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5369
5199
|
function createPairs(schema4, iterable, ctx) {
|
|
5370
5200
|
const { replacer } = ctx;
|
|
5371
5201
|
const pairs2 = new YAMLSeq(schema4);
|
|
@@ -5442,20 +5272,7 @@ var YAMLOMap = class _YAMLOMap extends YAMLSeq {
|
|
|
5442
5272
|
};
|
|
5443
5273
|
YAMLOMap.tag = "tag:yaml.org,2002:omap";
|
|
5444
5274
|
|
|
5445
|
-
// ../../node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js
|
|
5446
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5447
|
-
|
|
5448
|
-
// ../../node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js
|
|
5449
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5450
|
-
|
|
5451
|
-
// ../../node_modules/yaml/browser/dist/schema/yaml-1.1/float.js
|
|
5452
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5453
|
-
|
|
5454
|
-
// ../../node_modules/yaml/browser/dist/schema/yaml-1.1/int.js
|
|
5455
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5456
|
-
|
|
5457
5275
|
// ../../node_modules/yaml/browser/dist/schema/yaml-1.1/set.js
|
|
5458
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5459
5276
|
var YAMLSet = class _YAMLSet extends YAMLMap {
|
|
5460
5277
|
constructor(schema4) {
|
|
5461
5278
|
super(schema4);
|
|
@@ -5517,7 +5334,6 @@ var YAMLSet = class _YAMLSet extends YAMLMap {
|
|
|
5517
5334
|
YAMLSet.tag = "tag:yaml.org,2002:set";
|
|
5518
5335
|
|
|
5519
5336
|
// ../../node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js
|
|
5520
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5521
5337
|
function parseSexagesimal(str2, asBigInt) {
|
|
5522
5338
|
const sign = str2[0];
|
|
5523
5339
|
const parts = sign === "-" || sign === "+" ? str2.substring(1) : str2;
|
|
@@ -5552,68 +5368,7 @@ var timestamp = {
|
|
|
5552
5368
|
stringify: ({ value }) => value?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
|
|
5553
5369
|
};
|
|
5554
5370
|
|
|
5555
|
-
// ../../node_modules/yaml/browser/dist/stringify/stringifyDocument.js
|
|
5556
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5557
|
-
|
|
5558
|
-
// ../../node_modules/yaml/browser/dist/errors.js
|
|
5559
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5560
|
-
|
|
5561
|
-
// ../../node_modules/yaml/browser/dist/compose/compose-doc.js
|
|
5562
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5563
|
-
|
|
5564
|
-
// ../../node_modules/yaml/browser/dist/compose/compose-node.js
|
|
5565
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5566
|
-
|
|
5567
|
-
// ../../node_modules/yaml/browser/dist/compose/compose-collection.js
|
|
5568
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5569
|
-
|
|
5570
|
-
// ../../node_modules/yaml/browser/dist/compose/resolve-block-map.js
|
|
5571
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5572
|
-
|
|
5573
|
-
// ../../node_modules/yaml/browser/dist/compose/resolve-props.js
|
|
5574
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5575
|
-
|
|
5576
|
-
// ../../node_modules/yaml/browser/dist/compose/util-contains-newline.js
|
|
5577
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5578
|
-
|
|
5579
|
-
// ../../node_modules/yaml/browser/dist/compose/util-flow-indent-check.js
|
|
5580
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5581
|
-
|
|
5582
|
-
// ../../node_modules/yaml/browser/dist/compose/util-map-includes.js
|
|
5583
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5584
|
-
|
|
5585
|
-
// ../../node_modules/yaml/browser/dist/compose/resolve-block-seq.js
|
|
5586
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5587
|
-
|
|
5588
|
-
// ../../node_modules/yaml/browser/dist/compose/resolve-flow-collection.js
|
|
5589
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5590
|
-
|
|
5591
|
-
// ../../node_modules/yaml/browser/dist/compose/resolve-end.js
|
|
5592
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5593
|
-
|
|
5594
|
-
// ../../node_modules/yaml/browser/dist/compose/compose-scalar.js
|
|
5595
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5596
|
-
|
|
5597
|
-
// ../../node_modules/yaml/browser/dist/compose/resolve-block-scalar.js
|
|
5598
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5599
|
-
|
|
5600
|
-
// ../../node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js
|
|
5601
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5602
|
-
|
|
5603
|
-
// ../../node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js
|
|
5604
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5605
|
-
|
|
5606
|
-
// ../../node_modules/yaml/browser/dist/parse/cst.js
|
|
5607
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5608
|
-
|
|
5609
|
-
// ../../node_modules/yaml/browser/dist/parse/cst-scalar.js
|
|
5610
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5611
|
-
|
|
5612
|
-
// ../../node_modules/yaml/browser/dist/parse/cst-stringify.js
|
|
5613
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5614
|
-
|
|
5615
5371
|
// ../../node_modules/yaml/browser/dist/parse/cst-visit.js
|
|
5616
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5617
5372
|
var BREAK2 = Symbol("break visit");
|
|
5618
5373
|
var SKIP2 = Symbol("skip children");
|
|
5619
5374
|
var REMOVE2 = Symbol("remove item");
|
|
@@ -5625,9 +5380,9 @@ function visit2(cst, visitor) {
|
|
|
5625
5380
|
visit2.BREAK = BREAK2;
|
|
5626
5381
|
visit2.SKIP = SKIP2;
|
|
5627
5382
|
visit2.REMOVE = REMOVE2;
|
|
5628
|
-
visit2.itemAtPath = (cst,
|
|
5383
|
+
visit2.itemAtPath = (cst, path18) => {
|
|
5629
5384
|
let item = cst;
|
|
5630
|
-
for (const [field, index] of
|
|
5385
|
+
for (const [field, index] of path18) {
|
|
5631
5386
|
const tok = item?.[field];
|
|
5632
5387
|
if (tok && "items" in tok) {
|
|
5633
5388
|
item = tok.items[index];
|
|
@@ -5636,23 +5391,23 @@ visit2.itemAtPath = (cst, path20) => {
|
|
|
5636
5391
|
}
|
|
5637
5392
|
return item;
|
|
5638
5393
|
};
|
|
5639
|
-
visit2.parentCollection = (cst,
|
|
5640
|
-
const parent = visit2.itemAtPath(cst,
|
|
5641
|
-
const field =
|
|
5394
|
+
visit2.parentCollection = (cst, path18) => {
|
|
5395
|
+
const parent = visit2.itemAtPath(cst, path18.slice(0, -1));
|
|
5396
|
+
const field = path18[path18.length - 1][0];
|
|
5642
5397
|
const coll = parent?.[field];
|
|
5643
5398
|
if (coll && "items" in coll)
|
|
5644
5399
|
return coll;
|
|
5645
5400
|
throw new Error("Parent collection not found");
|
|
5646
5401
|
};
|
|
5647
|
-
function _visit(
|
|
5648
|
-
let ctrl = visitor(item,
|
|
5402
|
+
function _visit(path18, item, visitor) {
|
|
5403
|
+
let ctrl = visitor(item, path18);
|
|
5649
5404
|
if (typeof ctrl === "symbol")
|
|
5650
5405
|
return ctrl;
|
|
5651
5406
|
for (const field of ["key", "value"]) {
|
|
5652
5407
|
const token = item[field];
|
|
5653
5408
|
if (token && "items" in token) {
|
|
5654
5409
|
for (let i = 0; i < token.items.length; ++i) {
|
|
5655
|
-
const ci = _visit(Object.freeze(
|
|
5410
|
+
const ci = _visit(Object.freeze(path18.concat([[field, i]])), token.items[i], visitor);
|
|
5656
5411
|
if (typeof ci === "number")
|
|
5657
5412
|
i = ci - 1;
|
|
5658
5413
|
else if (ci === BREAK2)
|
|
@@ -5663,31 +5418,18 @@ function _visit(path20, item, visitor) {
|
|
|
5663
5418
|
}
|
|
5664
5419
|
}
|
|
5665
5420
|
if (typeof ctrl === "function" && field === "key")
|
|
5666
|
-
ctrl = ctrl(item,
|
|
5421
|
+
ctrl = ctrl(item, path18);
|
|
5667
5422
|
}
|
|
5668
5423
|
}
|
|
5669
|
-
return typeof ctrl === "function" ? ctrl(item,
|
|
5424
|
+
return typeof ctrl === "function" ? ctrl(item, path18) : ctrl;
|
|
5670
5425
|
}
|
|
5671
5426
|
|
|
5672
5427
|
// ../../node_modules/yaml/browser/dist/parse/lexer.js
|
|
5673
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5674
5428
|
var hexDigits = new Set("0123456789ABCDEFabcdef");
|
|
5675
5429
|
var tagChars = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
|
|
5676
5430
|
var flowIndicatorChars = new Set(",[]{}");
|
|
5677
5431
|
var invalidAnchorChars = new Set(" ,[]{}\n\r ");
|
|
5678
5432
|
|
|
5679
|
-
// ../../node_modules/yaml/browser/dist/parse/line-counter.js
|
|
5680
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5681
|
-
|
|
5682
|
-
// ../../node_modules/yaml/browser/dist/parse/parser.js
|
|
5683
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5684
|
-
|
|
5685
|
-
// ../../node_modules/yaml/browser/dist/public-api.js
|
|
5686
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5687
|
-
|
|
5688
|
-
// cli/commands/nodeRepoFileReader.ts
|
|
5689
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5690
|
-
|
|
5691
5433
|
// cli/commands/detect.ts
|
|
5692
5434
|
var PODFILE_NEW_ARCH_MARK = "PEACH_RCT_NEW_ARCH ";
|
|
5693
5435
|
var PODFILE_NEW_ARCH_RUBY = `
|
|
@@ -5713,91 +5455,35 @@ Array(payload['statements']).each do |statement|
|
|
|
5713
5455
|
end
|
|
5714
5456
|
`;
|
|
5715
5457
|
|
|
5716
|
-
// src/admitted-mac-build.ts
|
|
5717
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5718
|
-
|
|
5719
5458
|
// src/expo-workspace-exclusion.ts
|
|
5720
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5721
5459
|
var import_ignore = __toESM(require("ignore"), 1);
|
|
5722
5460
|
|
|
5723
5461
|
// src/expo-native-workspace.ts
|
|
5724
5462
|
init_home_paths();
|
|
5725
5463
|
|
|
5726
5464
|
// src/native-failure-output.ts
|
|
5727
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5728
5465
|
init_home_paths();
|
|
5729
5466
|
var FAILED_OUTPUT_KEPT_MS = 7 * 24 * 36e5;
|
|
5730
5467
|
|
|
5731
|
-
// src/native-git.ts
|
|
5732
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5733
|
-
|
|
5734
|
-
// src/one-sdk-preparation.ts
|
|
5735
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5736
|
-
|
|
5737
5468
|
// src/native-prebuilt.ts
|
|
5738
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5739
5469
|
init_home_paths();
|
|
5740
5470
|
|
|
5741
5471
|
// src/is-record.ts
|
|
5742
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5743
5472
|
function isRecord(value) {
|
|
5744
5473
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5745
5474
|
}
|
|
5746
5475
|
|
|
5747
|
-
// src/oneSdkContract.ts
|
|
5748
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5749
|
-
|
|
5750
|
-
// src/swiftContract.ts
|
|
5751
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5752
|
-
|
|
5753
|
-
// src/assetCatalogContract.ts
|
|
5754
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5755
|
-
|
|
5756
|
-
// src/portable-expo-workspace.ts
|
|
5757
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5758
|
-
|
|
5759
|
-
// src/native-firebase-config.ts
|
|
5760
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5761
|
-
|
|
5762
5476
|
// src/plist.ts
|
|
5763
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5764
5477
|
var import_plist = __toESM(require("plist"), 1);
|
|
5765
5478
|
|
|
5766
5479
|
// src/xcode-project.ts
|
|
5767
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5768
5480
|
var import_plist2 = __toESM(require("plist"), 1);
|
|
5769
5481
|
|
|
5770
|
-
// src/native-app-identity.ts
|
|
5771
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5772
|
-
|
|
5773
|
-
// src/android-app-identity.ts
|
|
5774
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5775
|
-
|
|
5776
|
-
// src/android-string-value.ts
|
|
5777
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5778
|
-
|
|
5779
|
-
// src/android-xml.ts
|
|
5780
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5781
|
-
|
|
5782
|
-
// src/nativeAppIconContract.ts
|
|
5783
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5784
|
-
|
|
5785
|
-
// src/openstep-plist.ts
|
|
5786
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5787
|
-
|
|
5788
|
-
// src/xcode-target-members.ts
|
|
5789
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5790
|
-
|
|
5791
|
-
// src/prepared-xcode-phases.ts
|
|
5792
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5793
|
-
|
|
5794
5482
|
// src/swift-binary-modules.ts
|
|
5795
|
-
|
|
5796
|
-
var import_node_path8 = __toESM(require("node:path"), 1);
|
|
5483
|
+
var import_node_path7 = __toESM(require("node:path"), 1);
|
|
5797
5484
|
init_home_paths();
|
|
5798
5485
|
|
|
5799
5486
|
// src/swift-package.ts
|
|
5800
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5801
5487
|
var SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS = [
|
|
5802
5488
|
".c",
|
|
5803
5489
|
".cc",
|
|
@@ -5823,53 +5509,12 @@ var SWIFT_NATIVE_SOURCE_EXTENSIONS = [
|
|
|
5823
5509
|
];
|
|
5824
5510
|
|
|
5825
5511
|
// src/swift-binary-modules.ts
|
|
5826
|
-
var cacheDir2 =
|
|
5827
|
-
|
|
5828
|
-
// src/swift-coverage/xcode-assets.ts
|
|
5829
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5512
|
+
var cacheDir2 = import_node_path7.default.join(cacheDir(), "swift-binary-modules");
|
|
5830
5513
|
|
|
5831
5514
|
// src/swift-coverage/provenance.ts
|
|
5832
|
-
|
|
5833
|
-
var import_node_crypto4 = require("node:crypto");
|
|
5834
|
-
var import_node_fs9 = require("node:fs");
|
|
5835
|
-
var import_node_path9 = require("node:path");
|
|
5836
|
-
var SWIFT_COVERAGE_DIGEST_SOURCES = [
|
|
5837
|
-
"swift-coverage/indexdump.ts",
|
|
5838
|
-
"swift-coverage/indexing.ts",
|
|
5839
|
-
"swift-coverage/types.ts",
|
|
5840
|
-
"swift-coverage/source.ts",
|
|
5841
|
-
"swift-coverage/package.ts",
|
|
5842
|
-
"swift-coverage/xcode.ts",
|
|
5843
|
-
"swift-coverage/xcode-assets.ts",
|
|
5844
|
-
"swift-coverage/xcode-asset-symbols.ts",
|
|
5845
|
-
"swift-coverage/xcode-bridging.ts",
|
|
5846
|
-
"swift-coverage/xcode-packages.ts",
|
|
5847
|
-
"swift-coverage/xcode-strings.ts",
|
|
5848
|
-
"swift-coverage/reader.ts",
|
|
5849
|
-
"swift-coverage/provenance.ts",
|
|
5850
|
-
"swift-package-manifest.ts",
|
|
5851
|
-
"swift-package.ts",
|
|
5852
|
-
"swift-source-file.ts",
|
|
5853
|
-
"swift-toolchain.ts",
|
|
5854
|
-
"home-paths.ts",
|
|
5855
|
-
"xcode-header-search.ts",
|
|
5856
|
-
"xcode-project.ts",
|
|
5857
|
-
"xcode-target-members.ts",
|
|
5858
|
-
"xcode-json-project.ts",
|
|
5859
|
-
"openstep-plist.ts"
|
|
5860
|
-
];
|
|
5861
|
-
function swiftCoverageSourceDigests(srcDir) {
|
|
5862
|
-
return Object.fromEntries(
|
|
5863
|
-
SWIFT_COVERAGE_DIGEST_SOURCES.map((file) => [
|
|
5864
|
-
file,
|
|
5865
|
-
(0, import_node_crypto4.createHash)("sha256").update((0, import_node_fs9.readFileSync)((0, import_node_path9.join)(srcDir, file))).digest("hex")
|
|
5866
|
-
])
|
|
5867
|
-
);
|
|
5868
|
-
}
|
|
5869
|
-
var swiftCoverageProvenance = typeof define_SWIFT_COVERAGE_SOURCE_DIGESTS_default === "object" ? define_SWIFT_COVERAGE_SOURCE_DIGESTS_default : swiftCoverageSourceDigests((0, import_node_path9.join)(__sootsim_import_meta_dirname, ".."));
|
|
5515
|
+
var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"8deef5a824ed49209458a4b398cd8e88df260a0c8f1894d568279f6211866547","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"774c42f06f8d5c1f3f3a09f94379db2046af0016f1fcd6cbe595a9c2da5dcf95","xcode-target-members.ts":"d49af77a690cff481b38333b5f63f6600123b1bb57f410b0adb298b010d2047b","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
5870
5516
|
|
|
5871
5517
|
// src/swift-coverage/xcode-asset-symbols.ts
|
|
5872
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5873
5518
|
var silentTypes = /* @__PURE__ */ new Set([
|
|
5874
5519
|
"appiconset",
|
|
5875
5520
|
"brandassets",
|
|
@@ -6051,54 +5696,27 @@ var assetSymbolSettingKeys = [
|
|
|
6051
5696
|
];
|
|
6052
5697
|
|
|
6053
5698
|
// src/swift-package-manifest.ts
|
|
6054
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6055
5699
|
var import_node_child_process7 = require("node:child_process");
|
|
6056
|
-
var
|
|
5700
|
+
var import_node_path9 = __toESM(require("node:path"), 1);
|
|
6057
5701
|
var import_node_util3 = require("node:util");
|
|
6058
5702
|
init_home_paths();
|
|
6059
5703
|
|
|
6060
5704
|
// src/swift-distribution.ts
|
|
6061
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6062
5705
|
init_src();
|
|
6063
5706
|
|
|
6064
5707
|
// cli/drivers/linux-browser-libs.ts
|
|
6065
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6066
5708
|
init_src();
|
|
6067
5709
|
init_home_paths();
|
|
6068
5710
|
|
|
6069
|
-
// cli/cli-release-origin.ts
|
|
6070
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6071
|
-
|
|
6072
5711
|
// src/swift-distribution.ts
|
|
6073
5712
|
init_home_paths();
|
|
6074
5713
|
|
|
6075
5714
|
// src/swift-compile.ts
|
|
6076
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6077
5715
|
var v5 = __toESM(require("valibot"), 1);
|
|
6078
5716
|
init_process_group();
|
|
6079
5717
|
|
|
6080
|
-
// src/retired-cache-directory.ts
|
|
6081
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6082
|
-
|
|
6083
|
-
// src/process-liveness.ts
|
|
6084
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6085
|
-
|
|
6086
|
-
// src/swift-darwin-records.ts
|
|
6087
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6088
|
-
|
|
6089
|
-
// src/swift-objc-platform.ts
|
|
6090
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6091
|
-
|
|
6092
5718
|
// src/swift-toolchain.ts
|
|
6093
|
-
|
|
6094
|
-
var import_node_fs10 = __toESM(require("node:fs"), 1);
|
|
6095
|
-
var import_node_path10 = __toESM(require("node:path"), 1);
|
|
6096
|
-
function peachsimPackageRoot() {
|
|
6097
|
-
let dir = __sootsim_import_meta_dirname;
|
|
6098
|
-
while (!import_node_fs10.default.existsSync(import_node_path10.default.join(dir, "package.json")) && dir !== import_node_path10.default.dirname(dir))
|
|
6099
|
-
dir = import_node_path10.default.dirname(dir);
|
|
6100
|
-
return dir;
|
|
6101
|
-
}
|
|
5719
|
+
var import_node_path8 = __toESM(require("node:path"), 1);
|
|
6102
5720
|
var SWIFT_HOST_COMPILER_RELEASE = "swift-6.4.0-RELEASE-custom-81b2c791c27276bf";
|
|
6103
5721
|
var SWIFT_HOST_COMPILER_ID = "81b2c791c27276bf";
|
|
6104
5722
|
var compilerArchives = {
|
|
@@ -6358,43 +5976,14 @@ var compilerArchives = {
|
|
|
6358
5976
|
var SWIFT_PRIVATE_DISTRIBUTION_ENV = "PEACH_SWIFT_PRIVATE_DISTRIBUTION";
|
|
6359
5977
|
function privateSwiftDistributionRoot() {
|
|
6360
5978
|
const root = process.env[SWIFT_PRIVATE_DISTRIBUTION_ENV]?.trim();
|
|
6361
|
-
return root ?
|
|
5979
|
+
return root ? import_node_path8.default.resolve(root) : null;
|
|
6362
5980
|
}
|
|
6363
5981
|
|
|
6364
|
-
// src/swift-objc-runtime.ts
|
|
6365
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6366
|
-
|
|
6367
5982
|
// src/swift-objc-standin.ts
|
|
6368
|
-
|
|
6369
|
-
var import_node_crypto5 = require("node:crypto");
|
|
6370
|
-
|
|
6371
|
-
// src/swift-interface-bodies.ts
|
|
6372
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5983
|
+
var import_node_crypto4 = require("node:crypto");
|
|
6373
5984
|
|
|
6374
5985
|
// src/swift-objc-sdk.ts
|
|
6375
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6376
|
-
var import_node_path11 = __toESM(require("node:path"), 1);
|
|
6377
5986
|
var IOS_SDK_TARGET = "arm64-apple-ios16.0-simulator";
|
|
6378
|
-
var OVERLAY_PATH = /^usr\/lib\/swift\/([^/]+)\.swiftmodule\/arm64-apple-ios-simulator\.swiftinterface$/;
|
|
6379
|
-
var tree = typeof __PEACH_BUNDLED_IOS_SDK__ === "undefined" ? readIosSdkTree(import_node_path11.default.join(peachsimPackageRoot(), "sdk", "ios")) : Object.entries(__PEACH_BUNDLED_IOS_SDK__).sort(([a], [b]) => a < b ? -1 : 1);
|
|
6380
|
-
var IOS_SDK_HEADERS = {};
|
|
6381
|
-
var IOS_SDK_OVERLAYS = {};
|
|
6382
|
-
for (const [file, text] of tree) {
|
|
6383
|
-
const module2 = OVERLAY_PATH.exec(file)?.[1];
|
|
6384
|
-
if (module2 === void 0) {
|
|
6385
|
-
IOS_SDK_HEADERS[file] = text;
|
|
6386
|
-
continue;
|
|
6387
|
-
}
|
|
6388
|
-
const header = `// swift-interface-format-version: 1.0
|
|
6389
|
-
// swift-module-flags: -target ${IOS_SDK_TARGET} -enable-objc-interop -enable-library-evolution -module-name ${module2}
|
|
6390
|
-
`;
|
|
6391
|
-
if (!text.startsWith(header))
|
|
6392
|
-
throw new Error(`sdk overlay ${file} has the wrong interface header`);
|
|
6393
|
-
IOS_SDK_OVERLAYS[module2] = text.slice(header.length);
|
|
6394
|
-
}
|
|
6395
|
-
|
|
6396
|
-
// src/swift-standin-emit.ts
|
|
6397
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6398
5987
|
|
|
6399
5988
|
// src/swift-objc-standin.ts
|
|
6400
5989
|
var NATIVE_GRAPH_SDK_VERSION = "27.1";
|
|
@@ -6411,32 +6000,12 @@ var NATIVE_GRAPH_INPUTS = {
|
|
|
6411
6000
|
compiler: "Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)",
|
|
6412
6001
|
target: IOS_SDK_TARGET
|
|
6413
6002
|
};
|
|
6414
|
-
var NATIVE_GRAPH_ID = (0,
|
|
6415
|
-
|
|
6416
|
-
// src/swift-shared-sdk.ts
|
|
6417
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6418
|
-
|
|
6419
|
-
// src/swift-design-time.ts
|
|
6420
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6421
|
-
|
|
6422
|
-
// src/swift-distribution-contract.ts
|
|
6423
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6424
|
-
|
|
6425
|
-
// src/swift-foundation.ts
|
|
6426
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6427
|
-
|
|
6428
|
-
// src/swift-guest-compile.ts
|
|
6429
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6430
|
-
|
|
6431
|
-
// src/swift-guest-archive.ts
|
|
6432
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6003
|
+
var NATIVE_GRAPH_ID = (0, import_node_crypto4.createHash)("sha256").update(JSON.stringify(NATIVE_GRAPH_INPUTS)).digest("hex");
|
|
6433
6004
|
|
|
6434
6005
|
// src/swift-wasm-prune.ts
|
|
6435
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6436
6006
|
var v2 = __toESM(require("valibot"), 1);
|
|
6437
6007
|
|
|
6438
6008
|
// src/swiftRuntimeProductContract.ts
|
|
6439
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6440
6009
|
var v = __toESM(require("valibot"), 1);
|
|
6441
6010
|
var swiftFrameworkProductSchema = v.object({
|
|
6442
6011
|
version: v.literal(1),
|
|
@@ -6580,42 +6149,13 @@ var SWIFTUI_WRAPPER_HOST_PROTOCOLS = new Set(
|
|
|
6580
6149
|
].map((name2) => `$s7SwiftUI${name2.length}${name2}Mp`)
|
|
6581
6150
|
);
|
|
6582
6151
|
|
|
6583
|
-
// src/swift-guest-link.ts
|
|
6584
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6585
|
-
|
|
6586
|
-
// src/swift-guest-image-ledger.ts
|
|
6587
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6588
|
-
|
|
6589
|
-
// src/swift-guest-link-plan.ts
|
|
6590
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6591
|
-
|
|
6592
|
-
// src/swift-guest-manifest.ts
|
|
6593
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6594
|
-
|
|
6595
|
-
// src/swift-guest-projection-storage.ts
|
|
6596
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6597
|
-
|
|
6598
|
-
// src/swift-guest-linked-spans.ts
|
|
6599
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6600
|
-
|
|
6601
|
-
// src/swift-guest-projection.ts
|
|
6602
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6603
|
-
|
|
6604
|
-
// src/swiftGuestImageContract.ts
|
|
6605
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6606
|
-
|
|
6607
6152
|
// src/swift-guest-projection-storage.ts
|
|
6608
6153
|
var maxProjectionRegions = 1 << 20;
|
|
6609
6154
|
|
|
6610
6155
|
// src/swift-guest-runtime-plan.ts
|
|
6611
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6612
6156
|
var v4 = __toESM(require("valibot"), 1);
|
|
6613
6157
|
|
|
6614
|
-
// src/swift-guest-source-plan.ts
|
|
6615
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6616
|
-
|
|
6617
6158
|
// src/swift-runtime-products.ts
|
|
6618
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6619
6159
|
var v3 = __toESM(require("valibot"), 1);
|
|
6620
6160
|
var packageSchema = v3.object({
|
|
6621
6161
|
name: v3.string(),
|
|
@@ -6636,19 +6176,10 @@ var packageSchema = v3.object({
|
|
|
6636
6176
|
)
|
|
6637
6177
|
});
|
|
6638
6178
|
|
|
6639
|
-
// src/swift-guest-source-inputs.ts
|
|
6640
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6641
|
-
|
|
6642
6179
|
// src/wasm-optimize.ts
|
|
6643
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6644
6180
|
init_src();
|
|
6645
6181
|
var import_wasm_opt = require("wasm-opt");
|
|
6646
6182
|
init_home_paths();
|
|
6647
|
-
|
|
6648
|
-
// src/wasm-narrow-boundary.ts
|
|
6649
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6650
|
-
|
|
6651
|
-
// src/wasm-optimize.ts
|
|
6652
6183
|
var FEATURES = [
|
|
6653
6184
|
"memory64",
|
|
6654
6185
|
"threads",
|
|
@@ -6667,17 +6198,10 @@ var LOWERING = ["--memory64-lowering", "--table64-lowering"];
|
|
|
6667
6198
|
var WASM_LOWER_IDENTITY = `binaryen ${import_wasm_opt.BINARYEN_VERSION} narrow ${LOWERING.join(" ")} ${FEATURES.join(",")} unoptimized-names`;
|
|
6668
6199
|
|
|
6669
6200
|
// src/swift-icu.ts
|
|
6670
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6671
6201
|
var import_node_child_process6 = require("node:child_process");
|
|
6672
6202
|
var import_node_util2 = require("node:util");
|
|
6673
6203
|
var import_node_zlib2 = require("node:zlib");
|
|
6674
6204
|
|
|
6675
|
-
// ../sootsim-swift/src/icuData.ts
|
|
6676
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6677
|
-
|
|
6678
|
-
// ../peach-kit/src/wasm-memory.ts
|
|
6679
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6680
|
-
|
|
6681
6205
|
// ../sootsim-swift/src/icuData.ts
|
|
6682
6206
|
var PACK_BYTES = 64 * 1024;
|
|
6683
6207
|
var VERSION = 1;
|
|
@@ -6689,32 +6213,10 @@ var deflate = (0, import_node_util2.promisify)(import_node_zlib2.gzip);
|
|
|
6689
6213
|
var compressBrotli = (0, import_node_util2.promisify)(import_node_zlib2.brotliCompress);
|
|
6690
6214
|
var inflateGzip = (0, import_node_util2.promisify)(import_node_zlib2.gunzip);
|
|
6691
6215
|
|
|
6692
|
-
// src/swift-link-roots.ts
|
|
6693
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6694
|
-
|
|
6695
|
-
// src/swift-objc-import.ts
|
|
6696
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6697
|
-
|
|
6698
|
-
// src/swift-project-user.ts
|
|
6699
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6700
|
-
|
|
6701
|
-
// src/swift-reproducible.ts
|
|
6702
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6703
|
-
|
|
6704
6216
|
// src/swift-root-lock.ts
|
|
6705
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6706
6217
|
init_process_group();
|
|
6707
6218
|
init_process_table();
|
|
6708
6219
|
|
|
6709
|
-
// src/swift-uniform-type-constants.ts
|
|
6710
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6711
|
-
|
|
6712
|
-
// src/write-build-file.ts
|
|
6713
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6714
|
-
|
|
6715
|
-
// src/xcode-header-search.ts
|
|
6716
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6717
|
-
|
|
6718
6220
|
// src/swift-compile.ts
|
|
6719
6221
|
var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
6720
6222
|
PDFKit: [],
|
|
@@ -6790,7 +6292,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
6790
6292
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
6791
6293
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
6792
6294
|
).join("");
|
|
6793
|
-
var compilerSourceDigest = true ? "
|
|
6295
|
+
var compilerSourceDigest = true ? "660487c29d9a45fcb5a83e23f25f239be6cc1cc7338a3a2c2f756a4c985ae043" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
6794
6296
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
6795
6297
|
"CFAllocator",
|
|
6796
6298
|
"CFArray",
|
|
@@ -6829,69 +6331,49 @@ var rootLocks = host[ROOT_LOCKS] ??= /* @__PURE__ */ new Map();
|
|
|
6829
6331
|
var SHARED_ARTIFACT_BUDGET_BYTES = 4 * 1024 ** 3;
|
|
6830
6332
|
|
|
6831
6333
|
// src/swift-native-pin.ts
|
|
6832
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6833
6334
|
init_answeredNativePackages();
|
|
6834
6335
|
|
|
6835
|
-
// src/nitroAdapterContract.ts
|
|
6836
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6837
|
-
|
|
6838
|
-
// src/swiftNativePinContract.ts
|
|
6839
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6840
|
-
|
|
6841
6336
|
// src/swift-package-manifest.ts
|
|
6842
|
-
var cacheDir3 =
|
|
6337
|
+
var cacheDir3 = import_node_path9.default.join(cacheDir(), "swift-manifests");
|
|
6843
6338
|
var execFileAsync = (0, import_node_util3.promisify)(import_node_child_process7.execFile);
|
|
6844
6339
|
|
|
6845
6340
|
// src/xcode-json-project.ts
|
|
6846
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6847
6341
|
var import_json52 = __toESM(require_lib(), 1);
|
|
6848
6342
|
|
|
6849
6343
|
// src/xcode-project.ts
|
|
6850
6344
|
var runScriptTimeoutMs = 10 * 60 * 1e3;
|
|
6851
6345
|
|
|
6852
|
-
// src/portable-expo-contract.ts
|
|
6853
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6854
|
-
|
|
6855
|
-
// src/prepared-native-inventory.ts
|
|
6856
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6857
|
-
|
|
6858
|
-
// src/nitro-source.ts
|
|
6859
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6860
|
-
|
|
6861
6346
|
// src/nitro-dependencies.ts
|
|
6862
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6863
6347
|
var import_node_child_process9 = require("node:child_process");
|
|
6864
6348
|
var import_node_util5 = require("node:util");
|
|
6865
6349
|
init_home_paths();
|
|
6866
6350
|
|
|
6867
6351
|
// src/kotlin-toolchain.ts
|
|
6868
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6869
6352
|
var import_node_child_process8 = require("node:child_process");
|
|
6870
6353
|
var import_node_util4 = require("node:util");
|
|
6871
6354
|
init_home_paths();
|
|
6872
6355
|
var run3 = (0, import_node_util4.promisify)(import_node_child_process8.execFile);
|
|
6873
6356
|
|
|
6874
6357
|
// src/swift-source-file.ts
|
|
6875
|
-
|
|
6876
|
-
var
|
|
6877
|
-
var import_node_path13 = __toESM(require("node:path"), 1);
|
|
6358
|
+
var import_node_fs8 = __toESM(require("node:fs"), 1);
|
|
6359
|
+
var import_node_path10 = __toESM(require("node:path"), 1);
|
|
6878
6360
|
function relativeInside(root, file) {
|
|
6879
|
-
const relative2 =
|
|
6880
|
-
return relative2 === ".." || relative2.startsWith(`..${
|
|
6361
|
+
const relative2 = import_node_path10.default.relative(root, file);
|
|
6362
|
+
return relative2 === ".." || relative2.startsWith(`..${import_node_path10.default.sep}`) || import_node_path10.default.isAbsolute(relative2) ? null : relative2;
|
|
6881
6363
|
}
|
|
6882
6364
|
function packageInputPath(canonicalRoot, file) {
|
|
6883
|
-
const canonicalFile =
|
|
6365
|
+
const canonicalFile = import_node_fs8.default.realpathSync(file);
|
|
6884
6366
|
if (relativeInside(canonicalRoot, canonicalFile) === null) {
|
|
6885
6367
|
throw new Error(`swift input escapes the selected package: ${file}`);
|
|
6886
6368
|
}
|
|
6887
6369
|
return canonicalFile;
|
|
6888
6370
|
}
|
|
6889
6371
|
function readPackageFile(root, file, maxBytes) {
|
|
6890
|
-
const canonicalFile = packageInputPath(
|
|
6891
|
-
const expected =
|
|
6892
|
-
const fd =
|
|
6372
|
+
const canonicalFile = packageInputPath(import_node_fs8.default.realpathSync(root), file);
|
|
6373
|
+
const expected = import_node_fs8.default.statSync(canonicalFile);
|
|
6374
|
+
const fd = import_node_fs8.default.openSync(canonicalFile, import_node_fs8.default.constants.O_RDONLY | import_node_fs8.default.constants.O_NOFOLLOW);
|
|
6893
6375
|
try {
|
|
6894
|
-
const stat =
|
|
6376
|
+
const stat = import_node_fs8.default.fstatSync(fd);
|
|
6895
6377
|
if (stat.dev !== expected.dev || stat.ino !== expected.ino) {
|
|
6896
6378
|
throw new Error(`swift input changed while opening: ${file}`);
|
|
6897
6379
|
}
|
|
@@ -6901,21 +6383,20 @@ function readPackageFile(root, file, maxBytes) {
|
|
|
6901
6383
|
const bytes = Buffer.alloc(stat.size + 1);
|
|
6902
6384
|
let offset = 0;
|
|
6903
6385
|
while (offset < bytes.length) {
|
|
6904
|
-
const count =
|
|
6386
|
+
const count = import_node_fs8.default.readSync(fd, bytes, offset, bytes.length - offset, null);
|
|
6905
6387
|
if (count === 0) break;
|
|
6906
6388
|
offset += count;
|
|
6907
6389
|
}
|
|
6908
|
-
if (offset !== stat.size ||
|
|
6390
|
+
if (offset !== stat.size || import_node_fs8.default.fstatSync(fd).size !== stat.size) {
|
|
6909
6391
|
throw new Error(`swift input changed while reading: ${file}`);
|
|
6910
6392
|
}
|
|
6911
6393
|
return bytes.subarray(0, offset);
|
|
6912
6394
|
} finally {
|
|
6913
|
-
|
|
6395
|
+
import_node_fs8.default.closeSync(fd);
|
|
6914
6396
|
}
|
|
6915
6397
|
}
|
|
6916
6398
|
|
|
6917
6399
|
// src/swift-submit.ts
|
|
6918
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6919
6400
|
var SWIFT_PACKAGE_PATH = "/__peach/swift-package/";
|
|
6920
6401
|
var SWIFT_HMR_PATH = "/__peach/swift-hmr";
|
|
6921
6402
|
var DEFAULT_SWIFT_COMPILE_BUILD_MS = 10 * 6e4;
|
|
@@ -7006,43 +6487,22 @@ var RN_FMT_12_DEPENDENCIES = [
|
|
|
7006
6487
|
];
|
|
7007
6488
|
|
|
7008
6489
|
// src/react-native-autolinking.ts
|
|
7009
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
7010
6490
|
var import_node_child_process10 = require("node:child_process");
|
|
7011
6491
|
var import_node_util6 = require("node:util");
|
|
7012
6492
|
var run5 = (0, import_node_util6.promisify)(import_node_child_process10.execFile);
|
|
7013
6493
|
|
|
7014
|
-
// src/workspace-root.ts
|
|
7015
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
7016
|
-
|
|
7017
6494
|
// src/expo-native-workspace.ts
|
|
7018
6495
|
var utf8Env = { ...process.env, LANG: "en_US.UTF-8", LC_ALL: "en_US.UTF-8" };
|
|
7019
6496
|
var ABANDONED_WORKSPACE_MS = 24 * 36e5;
|
|
7020
6497
|
|
|
7021
|
-
// src/expoSwiftContract.ts
|
|
7022
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
7023
|
-
|
|
7024
|
-
// src/native-app-identity-project.ts
|
|
7025
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
7026
|
-
|
|
7027
|
-
// src/nitroContract.ts
|
|
7028
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
7029
|
-
|
|
7030
|
-
// src/package-tree-digest.ts
|
|
7031
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
7032
|
-
|
|
7033
6498
|
// src/expo-native-prebuilt.ts
|
|
7034
6499
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
7035
6500
|
|
|
7036
6501
|
// src/installed-package-versions.ts
|
|
7037
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
7038
6502
|
var import_fs2 = __toESM(require("fs"), 1);
|
|
7039
6503
|
var import_path2 = __toESM(require("path"), 1);
|
|
7040
6504
|
|
|
7041
|
-
// ../peach-compat/src/generated/native-package-names.ts
|
|
7042
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
7043
|
-
|
|
7044
6505
|
// ../peach-compat/src/generated/light-native-package-names.ts
|
|
7045
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
7046
6506
|
var LIGHT_NATIVE_PACKAGE_NAMES = [
|
|
7047
6507
|
"@100mslive/react-native-hms",
|
|
7048
6508
|
"@account-kit/react-native-signer",
|
|
@@ -8828,11 +8288,7 @@ var NATIVE_RUNTIME_PACKAGE_NAMES = [
|
|
|
8828
8288
|
"react-native-sectioned-slider"
|
|
8829
8289
|
];
|
|
8830
8290
|
|
|
8831
|
-
// ../peach-globals/src/guest-modules/lazy-stub-patterns.ts
|
|
8832
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
8833
|
-
|
|
8834
8291
|
// ../peach-globals/src/guest-modules/version-range.ts
|
|
8835
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
8836
8292
|
var ANY_BOUNDS = {
|
|
8837
8293
|
lower: null,
|
|
8838
8294
|
lowerInclusive: false,
|
|
@@ -9215,11 +8671,7 @@ var LAZY_STUB_PATTERNS = [
|
|
|
9215
8671
|
"voltra"
|
|
9216
8672
|
];
|
|
9217
8673
|
|
|
9218
|
-
// ../peach-globals/src/guest-modules/stub-manifest.ts
|
|
9219
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
9220
|
-
|
|
9221
8674
|
// ../peach-globals/src/guest-modules/wrapper-real-packages.ts
|
|
9222
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
9223
8675
|
var SOOTSIM_COMPAT_WRAPPER_REAL_PACKAGES = {
|
|
9224
8676
|
expoUiConfirmationDialog: {
|
|
9225
8677
|
specifier: "@peach-internal/expo-ui-confirmation-dialog",
|
|
@@ -10075,9 +9527,8 @@ var COMPAT_STUBS = {
|
|
|
10075
9527
|
};
|
|
10076
9528
|
|
|
10077
9529
|
// src/installed-native-build-options.ts
|
|
10078
|
-
|
|
10079
|
-
var
|
|
10080
|
-
var import_node_path14 = __toESM(require("node:path"), 1);
|
|
9530
|
+
var import_node_fs9 = __toESM(require("node:fs"), 1);
|
|
9531
|
+
var import_node_path11 = __toESM(require("node:path"), 1);
|
|
10081
9532
|
var RIVE_PACKAGE = "@rive-app/react-native";
|
|
10082
9533
|
var RIVE_05 = [">=0.5.0 <0.6.0"];
|
|
10083
9534
|
function missing(error) {
|
|
@@ -10085,10 +9536,10 @@ function missing(error) {
|
|
|
10085
9536
|
}
|
|
10086
9537
|
function answerSync(step) {
|
|
10087
9538
|
try {
|
|
10088
|
-
if (step.type === "realpath") return
|
|
10089
|
-
if (step.type === "read") return
|
|
10090
|
-
if (step.type === "isDirectory") return
|
|
10091
|
-
return
|
|
9539
|
+
if (step.type === "realpath") return import_node_fs9.default.realpathSync(step.path);
|
|
9540
|
+
if (step.type === "read") return import_node_fs9.default.readFileSync(step.path, "utf8");
|
|
9541
|
+
if (step.type === "isDirectory") return import_node_fs9.default.statSync(step.path).isDirectory();
|
|
9542
|
+
return import_node_fs9.default.readdirSync(step.path, { withFileTypes: true }).map((entry) => ({
|
|
10092
9543
|
name: entry.name,
|
|
10093
9544
|
directory: entry.isDirectory(),
|
|
10094
9545
|
symbolicLink: entry.isSymbolicLink()
|
|
@@ -10100,11 +9551,11 @@ function answerSync(step) {
|
|
|
10100
9551
|
}
|
|
10101
9552
|
async function answerAsync(step) {
|
|
10102
9553
|
try {
|
|
10103
|
-
if (step.type === "realpath") return await
|
|
10104
|
-
if (step.type === "read") return await
|
|
9554
|
+
if (step.type === "realpath") return await import_node_fs9.default.promises.realpath(step.path);
|
|
9555
|
+
if (step.type === "read") return await import_node_fs9.default.promises.readFile(step.path, "utf8");
|
|
10105
9556
|
if (step.type === "isDirectory")
|
|
10106
|
-
return (await
|
|
10107
|
-
return (await
|
|
9557
|
+
return (await import_node_fs9.default.promises.stat(step.path)).isDirectory();
|
|
9558
|
+
return (await import_node_fs9.default.promises.readdir(step.path, { withFileTypes: true })).map(
|
|
10108
9559
|
(entry) => ({
|
|
10109
9560
|
name: entry.name,
|
|
10110
9561
|
directory: entry.isDirectory(),
|
|
@@ -10137,7 +9588,7 @@ function* rubyFiles(directory, seen, iosRoot = false) {
|
|
|
10137
9588
|
const files = [];
|
|
10138
9589
|
for (const entry of entries.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
10139
9590
|
if (iosRoot && (entry.name === "Pods" || entry.name === "build")) continue;
|
|
10140
|
-
const target =
|
|
9591
|
+
const target = import_node_path11.default.join(directory, entry.name);
|
|
10141
9592
|
let isDirectory = entry.directory;
|
|
10142
9593
|
if (entry.symbolicLink)
|
|
10143
9594
|
isDirectory = (yield { type: "isDirectory", path: target }) === true;
|
|
@@ -10150,7 +9601,7 @@ function* nativeBuildOptionsWalk(projectRoot, versions, environment) {
|
|
|
10150
9601
|
let sensorOptions = {};
|
|
10151
9602
|
const sensors = versions["expo-sensors"];
|
|
10152
9603
|
if (sensors && resolveCompatVersionRange([">=58.0.4 <59.0.0"], sensors).status === "matched") {
|
|
10153
|
-
const file =
|
|
9604
|
+
const file = import_node_path11.default.join(projectRoot, "ios", "Podfile.properties.json");
|
|
10154
9605
|
const source = yield { type: "read", path: file };
|
|
10155
9606
|
if (source !== null && typeof source !== "string")
|
|
10156
9607
|
throw new Error(`cannot inspect ${file}`);
|
|
@@ -10166,8 +9617,8 @@ function* nativeBuildOptionsWalk(projectRoot, versions, environment) {
|
|
|
10166
9617
|
if (!needsRiveOptions(versions)) return sensorOptions;
|
|
10167
9618
|
if (environment.USE_RIVE_LEGACY === "1" || environment.USE_RIVE_LEGACY === "true")
|
|
10168
9619
|
return { ...sensorOptions, [RIVE_PACKAGE]: { USE_RIVE_LEGACY: true } };
|
|
10169
|
-
const ios =
|
|
10170
|
-
const podfile =
|
|
9620
|
+
const ios = import_node_path11.default.join(projectRoot, "ios");
|
|
9621
|
+
const podfile = import_node_path11.default.join(ios, "Podfile");
|
|
10171
9622
|
const files = [podfile, ...yield* rubyFiles(ios, /* @__PURE__ */ new Set(), true)];
|
|
10172
9623
|
let value = false;
|
|
10173
9624
|
let assigned = false;
|
|
@@ -10204,7 +9655,6 @@ async function readInstalledNativeBuildOptionsAsync(projectRoot, versions, envir
|
|
|
10204
9655
|
}
|
|
10205
9656
|
|
|
10206
9657
|
// src/stub-pattern-matcher.ts
|
|
10207
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10208
9658
|
function extractPackageFromPath(modulePath) {
|
|
10209
9659
|
let nodeModulesIndex = modulePath.lastIndexOf("/node_modules/");
|
|
10210
9660
|
let prefixLength = "/node_modules/".length;
|
|
@@ -10421,29 +9871,17 @@ async function readInstalledNativePackageVersionsAsync(projectRoot) {
|
|
|
10421
9871
|
return versions;
|
|
10422
9872
|
}
|
|
10423
9873
|
|
|
10424
|
-
// src/metro-project-root.ts
|
|
10425
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10426
|
-
|
|
10427
9874
|
// scripts/dev-server-scanner.ts
|
|
10428
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10429
9875
|
var import_child_process = require("child_process");
|
|
10430
9876
|
var import_promises3 = require("fs/promises");
|
|
10431
|
-
var
|
|
9877
|
+
var import_node_fs10 = require("node:fs");
|
|
10432
9878
|
var import_node_os5 = require("node:os");
|
|
10433
|
-
var
|
|
9879
|
+
var import_node_path12 = require("node:path");
|
|
10434
9880
|
|
|
10435
9881
|
// src/config.ts
|
|
10436
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10437
9882
|
init_version();
|
|
10438
9883
|
|
|
10439
|
-
// src/nativeViewSourceContract.ts
|
|
10440
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10441
|
-
|
|
10442
|
-
// src/dev-bundle-resolution.ts
|
|
10443
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10444
|
-
|
|
10445
9884
|
// src/expo-manifest-body.ts
|
|
10446
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10447
9885
|
function parseExpoManifestBody(body) {
|
|
10448
9886
|
const opening = /^(--[^\r\n]+)\r?\n/.exec(body);
|
|
10449
9887
|
if (!opening) return JSON.parse(body);
|
|
@@ -10455,9 +9893,6 @@ function parseExpoManifestBody(body) {
|
|
|
10455
9893
|
throw new Error("Expo manifest response has no manifest part");
|
|
10456
9894
|
}
|
|
10457
9895
|
|
|
10458
|
-
// src/native-dev-bundle-url.ts
|
|
10459
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10460
|
-
|
|
10461
9896
|
// src/dev-bundle-resolution.ts
|
|
10462
9897
|
function shouldProxyLoopbackProbe(targetUrl, pageOrigin) {
|
|
10463
9898
|
try {
|
|
@@ -10556,11 +9991,7 @@ async function metroRequestFailure(request, url, response) {
|
|
|
10556
9991
|
);
|
|
10557
9992
|
}
|
|
10558
9993
|
|
|
10559
|
-
// src/kotlinDiscoveryContract.ts
|
|
10560
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10561
|
-
|
|
10562
9994
|
// src/oneWidgetContract.ts
|
|
10563
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10564
9995
|
var HOME_WIDGET_FAMILIES = [
|
|
10565
9996
|
"systemSmall",
|
|
10566
9997
|
"systemMedium",
|
|
@@ -10571,18 +10002,9 @@ function isHomeWidgetFamily(value) {
|
|
|
10571
10002
|
return HOME_WIDGET_FAMILIES.some((family) => family === value);
|
|
10572
10003
|
}
|
|
10573
10004
|
|
|
10574
|
-
// src/settings-bundle.ts
|
|
10575
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10576
|
-
|
|
10577
|
-
// src/swiftDiscoveryContract.ts
|
|
10578
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10579
|
-
|
|
10580
|
-
// scripts/optional-demo-registry.ts
|
|
10581
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10582
|
-
|
|
10583
10005
|
// scripts/dev-server-scanner.ts
|
|
10584
|
-
var LISTENER_LOCK_PATH = (0,
|
|
10585
|
-
var LISTENER_RESULT_PATH = (0,
|
|
10006
|
+
var LISTENER_LOCK_PATH = (0, import_node_path12.join)((0, import_node_os5.tmpdir)(), "peach-listener-scan.lock");
|
|
10007
|
+
var LISTENER_RESULT_PATH = (0, import_node_path12.join)((0, import_node_os5.tmpdir)(), "peach-listener-scan.result");
|
|
10586
10008
|
var LISTENER_LOCK_STALE_MS = 25e3;
|
|
10587
10009
|
var LISTENER_LOCK_WAIT_MS = 8e3;
|
|
10588
10010
|
function sleep2(ms) {
|
|
@@ -10600,8 +10022,8 @@ function pidIsAlive(pid) {
|
|
|
10600
10022
|
}
|
|
10601
10023
|
function readLockOwner() {
|
|
10602
10024
|
try {
|
|
10603
|
-
const raw = (0,
|
|
10604
|
-
const mtimeMs = (0,
|
|
10025
|
+
const raw = (0, import_node_fs10.readFileSync)(LISTENER_LOCK_PATH, "utf8");
|
|
10026
|
+
const mtimeMs = (0, import_node_fs10.statSync)(LISTENER_LOCK_PATH).mtimeMs;
|
|
10605
10027
|
const pid = Number(raw.split("-")[0]);
|
|
10606
10028
|
return { raw, pid: Number.isInteger(pid) ? pid : -1, mtimeMs };
|
|
10607
10029
|
} catch {
|
|
@@ -10614,15 +10036,15 @@ function lockIsAbandoned(owner) {
|
|
|
10614
10036
|
}
|
|
10615
10037
|
function clearLock(raw) {
|
|
10616
10038
|
try {
|
|
10617
|
-
if ((0,
|
|
10618
|
-
(0,
|
|
10039
|
+
if ((0, import_node_fs10.readFileSync)(LISTENER_LOCK_PATH, "utf8") !== raw) return;
|
|
10040
|
+
(0, import_node_fs10.unlinkSync)(LISTENER_LOCK_PATH);
|
|
10619
10041
|
} catch {
|
|
10620
10042
|
}
|
|
10621
10043
|
}
|
|
10622
10044
|
function readResult() {
|
|
10623
10045
|
try {
|
|
10624
10046
|
const parsed = JSON.parse(
|
|
10625
|
-
(0,
|
|
10047
|
+
(0, import_node_fs10.readFileSync)(LISTENER_RESULT_PATH, "utf8")
|
|
10626
10048
|
);
|
|
10627
10049
|
if (!parsed || typeof parsed.token !== "string" || typeof parsed.key !== "string")
|
|
10628
10050
|
return null;
|
|
@@ -10633,8 +10055,8 @@ function readResult() {
|
|
|
10633
10055
|
}
|
|
10634
10056
|
function publishResult(payload) {
|
|
10635
10057
|
const tmp = `${LISTENER_RESULT_PATH}.${process.pid}.tmp`;
|
|
10636
|
-
(0,
|
|
10637
|
-
(0,
|
|
10058
|
+
(0, import_node_fs10.writeFileSync)(tmp, JSON.stringify(payload));
|
|
10059
|
+
(0, import_node_fs10.renameSync)(tmp, LISTENER_RESULT_PATH);
|
|
10638
10060
|
}
|
|
10639
10061
|
function throwPublished(payload) {
|
|
10640
10062
|
throw Object.assign(new Error(payload.message || "listener scan failed"), {
|
|
@@ -10677,7 +10099,7 @@ async function withListenerLock(key, body) {
|
|
|
10677
10099
|
for (; ; ) {
|
|
10678
10100
|
let fd = null;
|
|
10679
10101
|
try {
|
|
10680
|
-
fd = (0,
|
|
10102
|
+
fd = (0, import_node_fs10.openSync)(LISTENER_LOCK_PATH, "wx");
|
|
10681
10103
|
} catch (error) {
|
|
10682
10104
|
const code = error instanceof Error && "code" in error ? error.code : "";
|
|
10683
10105
|
if (code !== "EEXIST") throw error;
|
|
@@ -10686,7 +10108,7 @@ async function withListenerLock(key, body) {
|
|
|
10686
10108
|
if (owner) clearLock(owner.raw);
|
|
10687
10109
|
else {
|
|
10688
10110
|
try {
|
|
10689
|
-
(0,
|
|
10111
|
+
(0, import_node_fs10.unlinkSync)(LISTENER_LOCK_PATH);
|
|
10690
10112
|
} catch {
|
|
10691
10113
|
}
|
|
10692
10114
|
}
|
|
@@ -10702,7 +10124,7 @@ async function withListenerLock(key, body) {
|
|
|
10702
10124
|
}
|
|
10703
10125
|
if (fd === null) continue;
|
|
10704
10126
|
try {
|
|
10705
|
-
(0,
|
|
10127
|
+
(0, import_node_fs10.writeSync)(fd, token);
|
|
10706
10128
|
try {
|
|
10707
10129
|
const value = await body();
|
|
10708
10130
|
publishResult({ token, key, ok: true, value });
|
|
@@ -10719,7 +10141,7 @@ async function withListenerLock(key, body) {
|
|
|
10719
10141
|
}
|
|
10720
10142
|
} finally {
|
|
10721
10143
|
try {
|
|
10722
|
-
(0,
|
|
10144
|
+
(0, import_node_fs10.closeSync)(fd);
|
|
10723
10145
|
} catch {
|
|
10724
10146
|
}
|
|
10725
10147
|
clearLock(token);
|
|
@@ -11079,7 +10501,6 @@ async function readDevServerPackageVersions(bundleUrl) {
|
|
|
11079
10501
|
}
|
|
11080
10502
|
|
|
11081
10503
|
// src/host/fetch-proxy-overrides.ts
|
|
11082
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
11083
10504
|
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
11084
10505
|
var FETCH_PROXY_FAILURE_PARAM = "peachFailure";
|
|
11085
10506
|
var FETCH_PROXY_FAILURE_HEADER = "x-peach-upstream-failure";
|
|
@@ -11202,11 +10623,9 @@ function nodeRequestHeaderEntries(headers) {
|
|
|
11202
10623
|
}
|
|
11203
10624
|
|
|
11204
10625
|
// src/host/hostname-resolver.ts
|
|
11205
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
11206
10626
|
var import_promises4 = require("node:dns/promises");
|
|
11207
10627
|
|
|
11208
10628
|
// src/dns-over-https.ts
|
|
11209
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
11210
10629
|
function parseIpLiteral(text) {
|
|
11211
10630
|
if (text.includes(":")) return parseIpv6(text);
|
|
11212
10631
|
const parts = text.split(".");
|
|
@@ -11244,8 +10663,7 @@ function parseIpv6(text) {
|
|
|
11244
10663
|
}
|
|
11245
10664
|
|
|
11246
10665
|
// src/host/network-policy.ts
|
|
11247
|
-
|
|
11248
|
-
var import_node_path16 = require("node:path");
|
|
10666
|
+
var import_node_path13 = require("node:path");
|
|
11249
10667
|
var import_node_url = require("node:url");
|
|
11250
10668
|
var NETWORK_POLICY_TIMEOUT_MS = 1e4;
|
|
11251
10669
|
var NetworkPolicyDeniedError = class extends Error {
|
|
@@ -11298,7 +10716,7 @@ function createNetworkAuthorizer(policy) {
|
|
|
11298
10716
|
};
|
|
11299
10717
|
}
|
|
11300
10718
|
async function loadNetworkPolicy(file) {
|
|
11301
|
-
if (!(0,
|
|
10719
|
+
if (!(0, import_node_path13.isAbsolute)(file)) {
|
|
11302
10720
|
throw new Error(`PEACH_NETWORK_POLICY must be an absolute path: ${file}`);
|
|
11303
10721
|
}
|
|
11304
10722
|
const loaded2 = await import(
|
|
@@ -11357,7 +10775,6 @@ async function handleHostnameResolutionRequest(req, res) {
|
|
|
11357
10775
|
}
|
|
11358
10776
|
|
|
11359
10777
|
// src/host/loopback-ports.ts
|
|
11360
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
11361
10778
|
var LOOPBACK_PORTS = /* @__PURE__ */ new Map();
|
|
11362
10779
|
for (const pair of process.env.PEACH_LOOPBACK_PORTS?.split(",").filter(Boolean) ?? []) {
|
|
11363
10780
|
const match = /^\s*([1-9][0-9]{0,4}):([1-9][0-9]{0,4})\s*$/.exec(pair);
|
|
@@ -11384,7 +10801,6 @@ function projectLoopbackUrl(value) {
|
|
|
11384
10801
|
}
|
|
11385
10802
|
|
|
11386
10803
|
// src/host/rolldown-bundle-forward.ts
|
|
11387
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
11388
10804
|
var import_stream = require("stream");
|
|
11389
10805
|
var import_promises5 = require("stream/promises");
|
|
11390
10806
|
init_cli_runtime();
|
|
@@ -11850,19 +11266,16 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
11850
11266
|
}
|
|
11851
11267
|
|
|
11852
11268
|
// src/host/replacement-module-handler.ts
|
|
11853
|
-
|
|
11854
|
-
var import_node_fs14 = require("node:fs");
|
|
11269
|
+
var import_node_fs11 = require("node:fs");
|
|
11855
11270
|
var import_promises7 = __toESM(require("node:fs/promises"), 1);
|
|
11856
|
-
var
|
|
11271
|
+
var import_node_path14 = __toESM(require("node:path"), 1);
|
|
11857
11272
|
|
|
11858
11273
|
// ../contrast-bundler/src/replacementModule.ts
|
|
11859
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
11860
11274
|
var import_dist = require("sucrase/dist/index.js");
|
|
11861
11275
|
var import_parser3 = require("sucrase/dist/parser/index.js");
|
|
11862
11276
|
var import_types = require("sucrase/dist/parser/tokenizer/types.js");
|
|
11863
11277
|
|
|
11864
11278
|
// ../contrast-bundler/src/posixPath.ts
|
|
11865
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
11866
11279
|
var sep = "/";
|
|
11867
11280
|
var delimiter = ":";
|
|
11868
11281
|
function isAbsolute2(p) {
|
|
@@ -11894,7 +11307,7 @@ function normalize(p) {
|
|
|
11894
11307
|
if (trailingSlash) joined += "/";
|
|
11895
11308
|
return absolute ? "/" + joined : joined;
|
|
11896
11309
|
}
|
|
11897
|
-
function
|
|
11310
|
+
function join4(...parts) {
|
|
11898
11311
|
const present = parts.filter((part) => part.length > 0);
|
|
11899
11312
|
if (present.length === 0) return ".";
|
|
11900
11313
|
return normalize(present.join("/"));
|
|
@@ -11951,7 +11364,7 @@ var posix = {
|
|
|
11951
11364
|
delimiter,
|
|
11952
11365
|
isAbsolute: isAbsolute2,
|
|
11953
11366
|
normalize,
|
|
11954
|
-
join:
|
|
11367
|
+
join: join4,
|
|
11955
11368
|
resolve: resolve2,
|
|
11956
11369
|
dirname,
|
|
11957
11370
|
basename,
|
|
@@ -12182,16 +11595,16 @@ function sendJavaScript(req, res, source) {
|
|
|
12182
11595
|
res.end(req.method === "HEAD" ? void 0 : source);
|
|
12183
11596
|
}
|
|
12184
11597
|
function resolveReplacementModuleFile(fromFile, specifier) {
|
|
12185
|
-
const base =
|
|
11598
|
+
const base = import_node_path14.default.resolve(import_node_path14.default.dirname(fromFile), specifier);
|
|
12186
11599
|
const candidates = [
|
|
12187
11600
|
...REPLACEMENT_MODULE_EXTENSIONS.some(
|
|
12188
|
-
(ext) => ext ===
|
|
11601
|
+
(ext) => ext === import_node_path14.default.extname(base).toLowerCase()
|
|
12189
11602
|
) ? [base] : [],
|
|
12190
11603
|
...REPLACEMENT_MODULE_EXTENSIONS.map((ext) => base + ext),
|
|
12191
|
-
...REPLACEMENT_MODULE_EXTENSIONS.map((ext) =>
|
|
11604
|
+
...REPLACEMENT_MODULE_EXTENSIONS.map((ext) => import_node_path14.default.join(base, `index${ext}`))
|
|
12192
11605
|
];
|
|
12193
11606
|
const found = candidates.find(
|
|
12194
|
-
(candidate) => (0,
|
|
11607
|
+
(candidate) => (0, import_node_fs11.statSync)(candidate, { throwIfNoEntry: false })?.isFile()
|
|
12195
11608
|
);
|
|
12196
11609
|
if (!found) {
|
|
12197
11610
|
throw new Error(
|
|
@@ -12202,8 +11615,8 @@ function resolveReplacementModuleFile(fromFile, specifier) {
|
|
|
12202
11615
|
}
|
|
12203
11616
|
function isInsideAny(roots, file) {
|
|
12204
11617
|
return roots.some((root) => {
|
|
12205
|
-
const relative2 =
|
|
12206
|
-
return !relative2.startsWith("..") && !
|
|
11618
|
+
const relative2 = import_node_path14.default.relative(root, file);
|
|
11619
|
+
return !relative2.startsWith("..") && !import_node_path14.default.isAbsolute(relative2);
|
|
12207
11620
|
});
|
|
12208
11621
|
}
|
|
12209
11622
|
async function handleReplacementModuleRequest(req, res, options = {}) {
|
|
@@ -12243,19 +11656,19 @@ async function handleReplacementModuleRequest(req, res, options = {}) {
|
|
|
12243
11656
|
res.end("missing path param");
|
|
12244
11657
|
return true;
|
|
12245
11658
|
}
|
|
12246
|
-
const extension =
|
|
11659
|
+
const extension = import_node_path14.default.extname(targetPath).toLowerCase();
|
|
12247
11660
|
if (!REPLACEMENT_MODULE_EXTENSIONS.some((allowed) => allowed === extension)) {
|
|
12248
11661
|
res.writeHead(400, { "Content-Type": "text/plain; charset=utf-8" });
|
|
12249
11662
|
res.end(`replacement files must be ${REPLACEMENT_MODULE_EXTENSIONS.join(", ")}`);
|
|
12250
11663
|
return true;
|
|
12251
11664
|
}
|
|
12252
|
-
if (!
|
|
11665
|
+
if (!import_node_path14.default.isAbsolute(targetPath)) {
|
|
12253
11666
|
res.writeHead(400, { "Content-Type": "text/plain; charset=utf-8" });
|
|
12254
11667
|
res.end("replacement file path must be absolute");
|
|
12255
11668
|
return true;
|
|
12256
11669
|
}
|
|
12257
11670
|
const runtimePackages = new Set(url.searchParams.getAll("runtimePackage"));
|
|
12258
|
-
const servedRoots = options.servedRoots?.map((root) =>
|
|
11671
|
+
const servedRoots = options.servedRoots?.map((root) => import_node_path14.default.resolve(root));
|
|
12259
11672
|
if (servedRoots && !isInsideAny(servedRoots, targetPath)) {
|
|
12260
11673
|
res.writeHead(403, { "Content-Type": "text/plain; charset=utf-8" });
|
|
12261
11674
|
res.end("replacement file must be inside a folder the bundler serves");
|
|
@@ -12309,8 +11722,7 @@ async function handleReplacementModuleRequest(req, res, options = {}) {
|
|
|
12309
11722
|
}
|
|
12310
11723
|
|
|
12311
11724
|
// src/one-native-app-catalog.ts
|
|
12312
|
-
|
|
12313
|
-
var import_node_path18 = __toESM(require("node:path"), 1);
|
|
11725
|
+
var import_node_path15 = __toESM(require("node:path"), 1);
|
|
12314
11726
|
var ONE_NATIVE_APP_CATALOG_ROUTE = "/__peach/native-app-catalog";
|
|
12315
11727
|
var HEX_COLOR = /^#[\da-f]{6}$/i;
|
|
12316
11728
|
function parseAccent(value) {
|
|
@@ -12322,7 +11734,7 @@ function parseAccent(value) {
|
|
|
12322
11734
|
function parseOneNativeAppCatalog(value) {
|
|
12323
11735
|
if (!isRecord(value)) return null;
|
|
12324
11736
|
const accentColor = parseAccent(value.accentColor);
|
|
12325
|
-
const assetCatalog = typeof value.assetCatalog === "string" &&
|
|
11737
|
+
const assetCatalog = typeof value.assetCatalog === "string" && import_node_path15.default.isAbsolute(value.assetCatalog) ? value.assetCatalog : null;
|
|
12326
11738
|
return accentColor || assetCatalog ? { accentColor, assetCatalog } : null;
|
|
12327
11739
|
}
|
|
12328
11740
|
function readOneNativeAppCatalog(entryConfig, root) {
|
|
@@ -12331,17 +11743,16 @@ function readOneNativeAppCatalog(entryConfig, root) {
|
|
|
12331
11743
|
if (!isRecord(ios)) return null;
|
|
12332
11744
|
return parseOneNativeAppCatalog({
|
|
12333
11745
|
accentColor: ios.accentColor,
|
|
12334
|
-
assetCatalog: typeof ios.assetCatalog === "string" ?
|
|
11746
|
+
assetCatalog: typeof ios.assetCatalog === "string" ? import_node_path15.default.resolve(root, ios.assetCatalog) : null
|
|
12335
11747
|
});
|
|
12336
11748
|
}
|
|
12337
11749
|
|
|
12338
11750
|
// src/one-widget-metadata.ts
|
|
12339
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
12340
11751
|
var import_node_child_process11 = require("node:child_process");
|
|
12341
|
-
var
|
|
12342
|
-
var
|
|
11752
|
+
var import_node_crypto5 = require("node:crypto");
|
|
11753
|
+
var import_node_fs12 = __toESM(require("node:fs"), 1);
|
|
12343
11754
|
var import_node_module2 = require("node:module");
|
|
12344
|
-
var
|
|
11755
|
+
var import_node_path16 = __toESM(require("node:path"), 1);
|
|
12345
11756
|
var import_node_util7 = require("node:util");
|
|
12346
11757
|
var run6 = (0, import_node_util7.promisify)(import_node_child_process11.execFile);
|
|
12347
11758
|
var configs = /* @__PURE__ */ new Map();
|
|
@@ -12363,8 +11774,8 @@ fs.writeFileSync(process.argv[2], JSON.stringify({
|
|
|
12363
11774
|
function configStamp(files) {
|
|
12364
11775
|
return JSON.stringify(
|
|
12365
11776
|
files.map((file) => {
|
|
12366
|
-
if (!
|
|
12367
|
-
const stat =
|
|
11777
|
+
if (!import_node_fs12.default.existsSync(file)) return [file, null];
|
|
11778
|
+
const stat = import_node_fs12.default.statSync(file);
|
|
12368
11779
|
return [file, stat.mtimeMs, stat.ctimeMs, stat.size];
|
|
12369
11780
|
})
|
|
12370
11781
|
);
|
|
@@ -12375,13 +11786,13 @@ async function readConfig(root) {
|
|
|
12375
11786
|
const reading = reads.get(root);
|
|
12376
11787
|
if (reading) return reading;
|
|
12377
11788
|
const promise = (async () => {
|
|
12378
|
-
(0, import_node_module2.createRequire)(
|
|
12379
|
-
const cache =
|
|
12380
|
-
|
|
12381
|
-
const directory =
|
|
12382
|
-
const script =
|
|
12383
|
-
const result =
|
|
12384
|
-
|
|
11789
|
+
(0, import_node_module2.createRequire)(import_node_path16.default.join(root, "package.json")).resolve("one/vite");
|
|
11790
|
+
const cache = import_node_path16.default.join(root, "node_modules/.cache/peach-widget-config");
|
|
11791
|
+
import_node_fs12.default.mkdirSync(cache, { recursive: true });
|
|
11792
|
+
const directory = import_node_fs12.default.mkdtempSync(import_node_path16.default.join(cache, "read-"));
|
|
11793
|
+
const script = import_node_path16.default.join(directory, "read.mjs");
|
|
11794
|
+
const result = import_node_path16.default.join(directory, "result.json");
|
|
11795
|
+
import_node_fs12.default.writeFileSync(script, CONFIG_CHILD);
|
|
12385
11796
|
try {
|
|
12386
11797
|
await run6(process.execPath, [script, result], {
|
|
12387
11798
|
cwd: root,
|
|
@@ -12389,7 +11800,7 @@ async function readConfig(root) {
|
|
|
12389
11800
|
timeout: 3e4,
|
|
12390
11801
|
maxBuffer: 1024 * 1024
|
|
12391
11802
|
});
|
|
12392
|
-
const value = JSON.parse(
|
|
11803
|
+
const value = JSON.parse(import_node_fs12.default.readFileSync(result, "utf8"));
|
|
12393
11804
|
if (!isRecord(value) || !Array.isArray(value.watched) || !value.watched.every((file) => typeof file === "string"))
|
|
12394
11805
|
throw new Error("One config loader returned invalid dependencies");
|
|
12395
11806
|
if (!Array.isArray(value.urlSchemes) || !value.urlSchemes.every(
|
|
@@ -12412,8 +11823,8 @@ async function readConfig(root) {
|
|
|
12412
11823
|
}
|
|
12413
11824
|
const watched = [
|
|
12414
11825
|
.../* @__PURE__ */ new Set([
|
|
12415
|
-
|
|
12416
|
-
...value.watched.map((file) =>
|
|
11826
|
+
import_node_path16.default.join(root, "package.json"),
|
|
11827
|
+
...value.watched.map((file) => import_node_path16.default.resolve(root, file))
|
|
12417
11828
|
])
|
|
12418
11829
|
];
|
|
12419
11830
|
const loaded2 = {
|
|
@@ -12425,7 +11836,7 @@ async function readConfig(root) {
|
|
|
12425
11836
|
configs.set(root, loaded2);
|
|
12426
11837
|
return loaded2;
|
|
12427
11838
|
} finally {
|
|
12428
|
-
|
|
11839
|
+
import_node_fs12.default.rmSync(directory, { recursive: true, force: true });
|
|
12429
11840
|
}
|
|
12430
11841
|
})();
|
|
12431
11842
|
reads.set(root, promise);
|
|
@@ -12446,13 +11857,13 @@ function declaredFamilies(source) {
|
|
|
12446
11857
|
return home;
|
|
12447
11858
|
}
|
|
12448
11859
|
async function readOneWidgetSources(appRoot) {
|
|
12449
|
-
const root =
|
|
11860
|
+
const root = import_node_fs12.default.realpathSync(appRoot);
|
|
12450
11861
|
const config = await readConfig(root);
|
|
12451
11862
|
if (!config.widget) return null;
|
|
12452
11863
|
const widget = config.widget;
|
|
12453
11864
|
const sourceFiles = {
|
|
12454
|
-
"OneWidget.swift":
|
|
12455
|
-
"OneWidgetContract.swift":
|
|
11865
|
+
"OneWidget.swift": import_node_path16.default.join(root, "ios/OneWidgets/OneWidget.swift"),
|
|
11866
|
+
"OneWidgetContract.swift": import_node_path16.default.join(
|
|
12456
11867
|
root,
|
|
12457
11868
|
"ios",
|
|
12458
11869
|
widget.appName,
|
|
@@ -12462,14 +11873,14 @@ async function readOneWidgetSources(appRoot) {
|
|
|
12462
11873
|
const files = /* @__PURE__ */ new Map();
|
|
12463
11874
|
const sources = {};
|
|
12464
11875
|
for (const [name2, file] of Object.entries(sourceFiles)) {
|
|
12465
|
-
if (!
|
|
11876
|
+
if (!import_node_fs12.default.existsSync(file))
|
|
12466
11877
|
throw new Error(`missing One widget prebuild source ${file}; run one prebuild`);
|
|
12467
11878
|
const bytes = readPackageFile(root, file, MAX_SWIFT_COMPILE_SOURCE_BYTES);
|
|
12468
11879
|
const text = bytes.toString("utf8");
|
|
12469
11880
|
if (!Buffer.from(text).equals(bytes))
|
|
12470
11881
|
throw new Error(`One widget prebuild source is not UTF-8: ${file}`);
|
|
12471
11882
|
files.set(name2, text);
|
|
12472
|
-
sources[
|
|
11883
|
+
sources[import_node_path16.default.relative(root, file).split(import_node_path16.default.sep).join("/")] = (0, import_node_crypto5.createHash)("sha256").update(bytes).digest("hex");
|
|
12473
11884
|
}
|
|
12474
11885
|
const contract = files.get("OneWidgetContract.swift") ?? "";
|
|
12475
11886
|
const source = files.get("OneWidget.swift") ?? "";
|
|
@@ -12493,7 +11904,7 @@ async function configuredOneWidget(appRoot, bundleUrl) {
|
|
|
12493
11904
|
return {
|
|
12494
11905
|
metadata: source.widget,
|
|
12495
11906
|
projectRoot: source.root,
|
|
12496
|
-
appIdentity: (0,
|
|
11907
|
+
appIdentity: (0, import_node_crypto5.createHash)("sha256").update(JSON.stringify([source.root, source.widget.bundleId])).digest("hex"),
|
|
12497
11908
|
bundleUrl,
|
|
12498
11909
|
packageUrl: new URL(`${SWIFT_PACKAGE_PATH}OneWidgets`, bundleUrl).href,
|
|
12499
11910
|
urlSchemes: source.urlSchemes
|
|
@@ -12505,7 +11916,6 @@ init_runtime_assets();
|
|
|
12505
11916
|
init_runtime_packs();
|
|
12506
11917
|
|
|
12507
11918
|
// src/swift-vite-lifetime.ts
|
|
12508
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
12509
11919
|
var LIFETIME = Symbol.for("peach.swift-vite-lifetime");
|
|
12510
11920
|
function swiftViteLifetime(server) {
|
|
12511
11921
|
const existing = server[LIFETIME];
|
|
@@ -12868,7 +12278,7 @@ function peachPlugin(options = {}) {
|
|
|
12868
12278
|
});
|
|
12869
12279
|
const bundleUrl = options.bundleUrl || "/node_modules/one/metro-entry.bundle?platform=ios&dev=true&minify=false";
|
|
12870
12280
|
const appName = resolveRnxDesktopAppName(options.open, server.config.root);
|
|
12871
|
-
const replacementToken = (0,
|
|
12281
|
+
const replacementToken = (0, import_node_crypto6.randomUUID)();
|
|
12872
12282
|
const bundleForOrigin = (origin) => {
|
|
12873
12283
|
const fullBundleUrl = new URL(bundleUrl, `${origin}/`).toString();
|
|
12874
12284
|
return tagRnxBundleForPlugin(
|