peachsim 0.1.2436 → 0.1.2438
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/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- 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 +43886 -43752
- 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 +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +22235 -22104
- 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 +23141 -23007
- package/dist-lib/host/fetch-proxy-handler.cjs +2534 -2468
- 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 +3403 -3337
- 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 +1 -1
- 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 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +4405 -4339
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- 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 +24 -24
- package/dist-lib/public-origins-lib.json +271 -263
- 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 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +34229 -34095
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- 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 +1 -1
- package/dist-lib/vite.cjs +1460 -1394
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/expo-native-workspace.ts +22 -10
- package/src/nitro-compile.ts +4 -5
- package/src/pod-prepare-toolchain.ts +112 -0
- package/src/pod-sources.ts +16 -4
- package/src/podfile-cocoapods.ts +3 -2
- package/src/pods-install.ts +2 -1
- package/src/podspec-ruby-stdlib.ts +8 -0
- package/src/swift-installed-targets.ts +3 -1
- package/src/swift-source-pods.ts +5 -5
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2438 | (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;
|
|
@@ -4438,1588 +4438,1654 @@ var init_openstep_plist = __esm({
|
|
|
4438
4438
|
}
|
|
4439
4439
|
});
|
|
4440
4440
|
|
|
4441
|
-
// src/
|
|
4442
|
-
var
|
|
4443
|
-
|
|
4444
|
-
"src/pod-sources.ts"() {
|
|
4441
|
+
// src/process-liveness.ts
|
|
4442
|
+
var init_process_liveness = __esm({
|
|
4443
|
+
"src/process-liveness.ts"() {
|
|
4445
4444
|
"use strict";
|
|
4446
|
-
init_home_paths();
|
|
4447
|
-
COCOAPODS_VERSION = "1.17.0";
|
|
4448
|
-
USER_AGENT = `'CocoaPods/${COCOAPODS_VERSION} cocoapods-downloader/2.1'`;
|
|
4449
|
-
HEADER_EXTENSIONS = [
|
|
4450
|
-
".h",
|
|
4451
|
-
".hh",
|
|
4452
|
-
".hpp",
|
|
4453
|
-
".ipp",
|
|
4454
|
-
".tpp",
|
|
4455
|
-
".hxx",
|
|
4456
|
-
".def",
|
|
4457
|
-
".inl",
|
|
4458
|
-
".inc"
|
|
4459
|
-
];
|
|
4460
|
-
SOURCE_EXTENSIONS = [
|
|
4461
|
-
".m",
|
|
4462
|
-
".mm",
|
|
4463
|
-
".i",
|
|
4464
|
-
".c",
|
|
4465
|
-
".cc",
|
|
4466
|
-
".cxx",
|
|
4467
|
-
".cpp",
|
|
4468
|
-
".c++",
|
|
4469
|
-
".swift",
|
|
4470
|
-
...HEADER_EXTENSIONS
|
|
4471
|
-
];
|
|
4472
|
-
SOURCE_FILES_PATTERN = `*{${SOURCE_EXTENSIONS.join(",")}}`;
|
|
4473
4445
|
}
|
|
4474
4446
|
});
|
|
4475
4447
|
|
|
4476
|
-
// src/
|
|
4477
|
-
var
|
|
4478
|
-
"src/
|
|
4448
|
+
// src/retired-cache-directory.ts
|
|
4449
|
+
var init_retired_cache_directory = __esm({
|
|
4450
|
+
"src/retired-cache-directory.ts"() {
|
|
4479
4451
|
"use strict";
|
|
4480
|
-
|
|
4452
|
+
init_process_liveness();
|
|
4481
4453
|
}
|
|
4482
4454
|
});
|
|
4483
4455
|
|
|
4484
|
-
// src/
|
|
4485
|
-
var
|
|
4486
|
-
|
|
4487
|
-
"src/plist.ts"() {
|
|
4456
|
+
// src/swift-compile-budget.ts
|
|
4457
|
+
var init_swift_compile_budget = __esm({
|
|
4458
|
+
"src/swift-compile-budget.ts"() {
|
|
4488
4459
|
"use strict";
|
|
4489
|
-
import_plist = __toESM(require("plist"), 1);
|
|
4490
4460
|
}
|
|
4491
4461
|
});
|
|
4492
4462
|
|
|
4493
|
-
// src/
|
|
4494
|
-
var
|
|
4495
|
-
|
|
4496
|
-
"src/plist-bytes.ts"() {
|
|
4463
|
+
// src/swift-objc-runtime.ts
|
|
4464
|
+
var init_swift_objc_runtime = __esm({
|
|
4465
|
+
"src/swift-objc-runtime.ts"() {
|
|
4497
4466
|
"use strict";
|
|
4498
|
-
import_bplist_parser = __toESM(require("bplist-parser"), 1);
|
|
4499
|
-
init_plist();
|
|
4500
4467
|
}
|
|
4501
4468
|
});
|
|
4502
4469
|
|
|
4503
|
-
// src/
|
|
4504
|
-
var
|
|
4505
|
-
|
|
4506
|
-
|
|
4470
|
+
// src/swift-shared-sdk.ts
|
|
4471
|
+
var init_swift_shared_sdk = __esm({
|
|
4472
|
+
"src/swift-shared-sdk.ts"() {
|
|
4473
|
+
"use strict";
|
|
4474
|
+
init_swift_toolchain();
|
|
4475
|
+
}
|
|
4476
|
+
});
|
|
4477
|
+
|
|
4478
|
+
// src/swift-darwin-records.ts
|
|
4479
|
+
var init_swift_darwin_records = __esm({
|
|
4480
|
+
"src/swift-darwin-records.ts"() {
|
|
4481
|
+
"use strict";
|
|
4482
|
+
init_swift_objc_platform();
|
|
4483
|
+
init_swift_objc_runtime();
|
|
4484
|
+
init_swift_objc_standin();
|
|
4485
|
+
init_swift_shared_sdk();
|
|
4486
|
+
}
|
|
4487
|
+
});
|
|
4488
|
+
|
|
4489
|
+
// src/swift-design-time.ts
|
|
4490
|
+
var init_swift_design_time = __esm({
|
|
4491
|
+
"src/swift-design-time.ts"() {
|
|
4492
|
+
"use strict";
|
|
4493
|
+
}
|
|
4494
|
+
});
|
|
4495
|
+
|
|
4496
|
+
// src/swift-distribution-contract.ts
|
|
4497
|
+
function parseSwiftDistributionLock(value) {
|
|
4498
|
+
if (!isRecord(value) || typeof value.id !== "string" || !/^[a-f0-9]{16}$/.test(value.id) || typeof value.release !== "string" || typeof value.wasmSdkId !== "string" || typeof value.wasmSdkUrl !== "string" || typeof value.wasmSdkChecksum !== "string" || typeof value.source !== "string" || !isStrings(value.targets) || !isRecord(value.systemEnvironment) || !Object.values(value.systemEnvironment).every(isStrings) || !isRecord(value.hosts)) {
|
|
4499
|
+
throw new Error("invalid Swift distribution lock");
|
|
4500
|
+
}
|
|
4501
|
+
const hosts = value.hosts;
|
|
4502
|
+
const entry = (host2) => {
|
|
4503
|
+
const item = hosts[host2];
|
|
4504
|
+
if (!isRecord(item) || typeof item.sha256 !== "string" || !/^[a-f0-9]{64}$/.test(item.sha256) || typeof item.size !== "number") {
|
|
4505
|
+
throw new Error(`invalid Swift distribution lock entry for ${host2}`);
|
|
4506
|
+
}
|
|
4507
|
+
return { sha256: item.sha256, size: item.size };
|
|
4508
|
+
};
|
|
4509
|
+
return {
|
|
4510
|
+
id: value.id,
|
|
4511
|
+
release: value.release,
|
|
4512
|
+
wasmSdkId: value.wasmSdkId,
|
|
4513
|
+
wasmSdkUrl: value.wasmSdkUrl,
|
|
4514
|
+
wasmSdkChecksum: value.wasmSdkChecksum,
|
|
4515
|
+
source: value.source,
|
|
4516
|
+
targets: value.targets,
|
|
4517
|
+
systemEnvironment: Object.fromEntries(
|
|
4518
|
+
Object.entries(value.systemEnvironment).map(([key, values]) => {
|
|
4519
|
+
if (!isStrings(values))
|
|
4520
|
+
throw new Error(`invalid Swift system environment values for ${key}`);
|
|
4521
|
+
return [key, values];
|
|
4522
|
+
})
|
|
4523
|
+
),
|
|
4524
|
+
hosts: {
|
|
4525
|
+
"darwin-arm64": entry("darwin-arm64"),
|
|
4526
|
+
"linux-x64": entry("linux-x64"),
|
|
4527
|
+
"linux-arm64": entry("linux-arm64")
|
|
4528
|
+
}
|
|
4529
|
+
};
|
|
4530
|
+
}
|
|
4531
|
+
var isStrings;
|
|
4532
|
+
var init_swift_distribution_contract = __esm({
|
|
4533
|
+
"src/swift-distribution-contract.ts"() {
|
|
4507
4534
|
"use strict";
|
|
4508
|
-
import_node_path15 = __toESM(require("node:path"), 1);
|
|
4509
|
-
import_plist3 = __toESM(require("plist"), 1);
|
|
4510
4535
|
init_is_record();
|
|
4511
|
-
|
|
4536
|
+
isStrings = (value) => Array.isArray(value) && value.every((item) => typeof item === "string");
|
|
4512
4537
|
}
|
|
4513
4538
|
});
|
|
4514
4539
|
|
|
4515
|
-
// src/
|
|
4516
|
-
var
|
|
4517
|
-
|
|
4518
|
-
"src/ios-sdk-frameworks.json"() {
|
|
4519
|
-
ios_sdk_frameworks_default = {
|
|
4520
|
-
sdk: "iphonesimulator27.1",
|
|
4521
|
-
frameworks: [
|
|
4522
|
-
"ARKit",
|
|
4523
|
-
"AVFAudio",
|
|
4524
|
-
"AVFoundation",
|
|
4525
|
-
"AVKit",
|
|
4526
|
-
"AVRouting",
|
|
4527
|
-
"Accelerate",
|
|
4528
|
-
"Accessibility",
|
|
4529
|
-
"AccessoryLiveActivities",
|
|
4530
|
-
"AccessoryNotifications",
|
|
4531
|
-
"AccessorySetupKit",
|
|
4532
|
-
"AccessoryTransportExtension",
|
|
4533
|
-
"Accounts",
|
|
4534
|
-
"ActivityKit",
|
|
4535
|
-
"AdAttributionKit",
|
|
4536
|
-
"AdServices",
|
|
4537
|
-
"AdSupport",
|
|
4538
|
-
"AddressBook",
|
|
4539
|
-
"AddressBookUI",
|
|
4540
|
-
"AlarmKit",
|
|
4541
|
-
"AppClip",
|
|
4542
|
-
"AppIntents",
|
|
4543
|
-
"AppIntentsTypeSupport",
|
|
4544
|
-
"AppMigrationKit",
|
|
4545
|
-
"AppTrackingTransparency",
|
|
4546
|
-
"AssetsLibrary",
|
|
4547
|
-
"AudioToolbox",
|
|
4548
|
-
"AudioUnit",
|
|
4549
|
-
"AuthenticationServices",
|
|
4550
|
-
"AutomatedDeviceEnrollment",
|
|
4551
|
-
"AutomaticAssessmentConfiguration",
|
|
4552
|
-
"BackgroundAssets",
|
|
4553
|
-
"BackgroundTasks",
|
|
4554
|
-
"BrowserEngineCore",
|
|
4555
|
-
"BrowserEngineKit",
|
|
4556
|
-
"BrowserKit",
|
|
4557
|
-
"BusinessChat",
|
|
4558
|
-
"CFNetwork",
|
|
4559
|
-
"CallKit",
|
|
4560
|
-
"CarKey",
|
|
4561
|
-
"CarPlay",
|
|
4562
|
-
"Charts",
|
|
4563
|
-
"ClassKit",
|
|
4564
|
-
"ClassKitUI",
|
|
4565
|
-
"ClockKit",
|
|
4566
|
-
"CloudKit",
|
|
4567
|
-
"ColorSync",
|
|
4568
|
-
"Combine",
|
|
4569
|
-
"ComputeGraph",
|
|
4570
|
-
"ContactProvider",
|
|
4571
|
-
"Contacts",
|
|
4572
|
-
"ContactsUI",
|
|
4573
|
-
"CoreAudio",
|
|
4574
|
-
"CoreAudioKit",
|
|
4575
|
-
"CoreAudioTypes",
|
|
4576
|
-
"CoreBluetooth",
|
|
4577
|
-
"CoreData",
|
|
4578
|
-
"CoreFoundation",
|
|
4579
|
-
"CoreGraphics",
|
|
4580
|
-
"CoreHaptics",
|
|
4581
|
-
"CoreImage",
|
|
4582
|
-
"CoreLocation",
|
|
4583
|
-
"CoreLocationUI",
|
|
4584
|
-
"CoreMIDI",
|
|
4585
|
-
"CoreML",
|
|
4586
|
-
"CoreMedia",
|
|
4587
|
-
"CoreMotion",
|
|
4588
|
-
"CoreNFC",
|
|
4589
|
-
"CoreServices",
|
|
4590
|
-
"CoreSpotlight",
|
|
4591
|
-
"CoreTelephony",
|
|
4592
|
-
"CoreText",
|
|
4593
|
-
"CoreTransferable",
|
|
4594
|
-
"CoreVideo",
|
|
4595
|
-
"CreateMLComponents",
|
|
4596
|
-
"CryptoKit",
|
|
4597
|
-
"CryptoTokenKit",
|
|
4598
|
-
"DataDetection",
|
|
4599
|
-
"DeclaredAgeRange",
|
|
4600
|
-
"DeveloperToolsSupport",
|
|
4601
|
-
"DeviceActivity",
|
|
4602
|
-
"DeviceCheck",
|
|
4603
|
-
"DeviceDiscoveryExtension",
|
|
4604
|
-
"DeviceDiscoveryUI",
|
|
4605
|
-
"EnergyKit",
|
|
4606
|
-
"EventKit",
|
|
4607
|
-
"EventKitUI",
|
|
4608
|
-
"ExposureNotification",
|
|
4609
|
-
"ExtensionFoundation",
|
|
4610
|
-
"ExtensionKit",
|
|
4611
|
-
"ExternalAccessory",
|
|
4612
|
-
"FamilyControls",
|
|
4613
|
-
"FileProvider",
|
|
4614
|
-
"FileProviderUI",
|
|
4615
|
-
"FinanceKit",
|
|
4616
|
-
"FinanceKitUI",
|
|
4617
|
-
"Foundation",
|
|
4618
|
-
"FoundationModels",
|
|
4619
|
-
"GLKit",
|
|
4620
|
-
"GSS",
|
|
4621
|
-
"GameController",
|
|
4622
|
-
"GameKit",
|
|
4623
|
-
"GameSave",
|
|
4624
|
-
"GameplayKit",
|
|
4625
|
-
"GeoToolbox",
|
|
4626
|
-
"GroupActivities",
|
|
4627
|
-
"HealthKit",
|
|
4628
|
-
"HealthKitUI",
|
|
4629
|
-
"HomeKit",
|
|
4630
|
-
"IOKit",
|
|
4631
|
-
"IOSurface",
|
|
4632
|
-
"IdentityDocumentServices",
|
|
4633
|
-
"IdentityDocumentServicesUI",
|
|
4634
|
-
"IdentityLookup",
|
|
4635
|
-
"IdentityLookupUI",
|
|
4636
|
-
"ImageCaptureCore",
|
|
4637
|
-
"ImageIO",
|
|
4638
|
-
"ImagePlayground",
|
|
4639
|
-
"ImmersiveMediaSupport",
|
|
4640
|
-
"Intents",
|
|
4641
|
-
"IntentsUI",
|
|
4642
|
-
"JavaScriptCore",
|
|
4643
|
-
"LinkPresentation",
|
|
4644
|
-
"LinkSecurity",
|
|
4645
|
-
"LiveCommunicationKit",
|
|
4646
|
-
"LocalAuthentication",
|
|
4647
|
-
"LocalAuthenticationEmbeddedUI",
|
|
4648
|
-
"LockedCameraCapture",
|
|
4649
|
-
"ManagedApp",
|
|
4650
|
-
"ManagedAppDistribution",
|
|
4651
|
-
"ManagedSettings",
|
|
4652
|
-
"ManagedSettingsUI",
|
|
4653
|
-
"MapKit",
|
|
4654
|
-
"MarketplaceKit",
|
|
4655
|
-
"Matter",
|
|
4656
|
-
"MatterSupport",
|
|
4657
|
-
"MediaAccessibility",
|
|
4658
|
-
"MediaIntelligence",
|
|
4659
|
-
"MediaIntents",
|
|
4660
|
-
"MediaPlayer",
|
|
4661
|
-
"MediaToolbox",
|
|
4662
|
-
"MessageUI",
|
|
4663
|
-
"Messages",
|
|
4664
|
-
"Metal",
|
|
4665
|
-
"MetalKit",
|
|
4666
|
-
"MetalPerformancePrimitives",
|
|
4667
|
-
"MetalPerformanceShaders",
|
|
4668
|
-
"MetalPerformanceShadersGraph",
|
|
4669
|
-
"MetricKit",
|
|
4670
|
-
"MobileCoreServices",
|
|
4671
|
-
"ModelIO",
|
|
4672
|
-
"MultipeerConnectivity",
|
|
4673
|
-
"MusicKit",
|
|
4674
|
-
"MusicUnderstanding",
|
|
4675
|
-
"NaturalLanguage",
|
|
4676
|
-
"NearbyInteraction",
|
|
4677
|
-
"Network",
|
|
4678
|
-
"NetworkExtension",
|
|
4679
|
-
"NotificationCenter",
|
|
4680
|
-
"NowPlaying",
|
|
4681
|
-
"OSLog",
|
|
4682
|
-
"OpenAL",
|
|
4683
|
-
"OpenGLES",
|
|
4684
|
-
"PDFKit",
|
|
4685
|
-
"PHASE",
|
|
4686
|
-
"PaperKit",
|
|
4687
|
-
"PassKit",
|
|
4688
|
-
"PencilKit",
|
|
4689
|
-
"PermissionKit",
|
|
4690
|
-
"Photos",
|
|
4691
|
-
"PhotosUI",
|
|
4692
|
-
"ProximityReader",
|
|
4693
|
-
"PushKit",
|
|
4694
|
-
"PushToTalk",
|
|
4695
|
-
"QuartzCore",
|
|
4696
|
-
"QuickLook",
|
|
4697
|
-
"QuickLookThumbnailing",
|
|
4698
|
-
"RealityFoundation",
|
|
4699
|
-
"RealityKit",
|
|
4700
|
-
"RelevanceKit",
|
|
4701
|
-
"ReplayKit",
|
|
4702
|
-
"RoomPlan",
|
|
4703
|
-
"SafariServices",
|
|
4704
|
-
"SafetyKit",
|
|
4705
|
-
"SceneKit",
|
|
4706
|
-
"ScreenTime",
|
|
4707
|
-
"SecureElementCredential",
|
|
4708
|
-
"Security",
|
|
4709
|
-
"SecurityUI",
|
|
4710
|
-
"SensitiveContentAnalysis",
|
|
4711
|
-
"SensorKit",
|
|
4712
|
-
"ServicesAccountLinking",
|
|
4713
|
-
"SharedWithYou",
|
|
4714
|
-
"SharedWithYouCore",
|
|
4715
|
-
"ShazamKit",
|
|
4716
|
-
"Social",
|
|
4717
|
-
"SoundAnalysis",
|
|
4718
|
-
"Speech",
|
|
4719
|
-
"SpriteKit",
|
|
4720
|
-
"StateReporting",
|
|
4721
|
-
"StoreKit",
|
|
4722
|
-
"SuggestedActions",
|
|
4723
|
-
"SwiftData",
|
|
4724
|
-
"SwiftUI",
|
|
4725
|
-
"SwiftUICore",
|
|
4726
|
-
"Symbols",
|
|
4727
|
-
"SystemConfiguration",
|
|
4728
|
-
"SystemExtensions",
|
|
4729
|
-
"TabularData",
|
|
4730
|
-
"TelephonyMessagingKit",
|
|
4731
|
-
"TipKit",
|
|
4732
|
-
"TouchController",
|
|
4733
|
-
"Translation",
|
|
4734
|
-
"TranslationUIProvider",
|
|
4735
|
-
"TrustInsights",
|
|
4736
|
-
"Twitter",
|
|
4737
|
-
"UIKit",
|
|
4738
|
-
"USDKit",
|
|
4739
|
-
"UniformTypeIdentifiers",
|
|
4740
|
-
"UserNotifications",
|
|
4741
|
-
"UserNotificationsUI",
|
|
4742
|
-
"VideoSubscriberAccount",
|
|
4743
|
-
"VideoToolbox",
|
|
4744
|
-
"Vision",
|
|
4745
|
-
"VisionKit",
|
|
4746
|
-
"WatchConnectivity",
|
|
4747
|
-
"WeatherKit",
|
|
4748
|
-
"WebKit",
|
|
4749
|
-
"WiFiAware",
|
|
4750
|
-
"WidgetKit",
|
|
4751
|
-
"WorkoutKit",
|
|
4752
|
-
"_AVKit_SwiftUI",
|
|
4753
|
-
"_AdAttributionKit_StoreKit",
|
|
4754
|
-
"_AppIntents_HealthKit",
|
|
4755
|
-
"_AppIntents_SwiftUI",
|
|
4756
|
-
"_AppIntents_UIKit",
|
|
4757
|
-
"_AuthenticationServices_SwiftUI",
|
|
4758
|
-
"_Contacts_AppIntents",
|
|
4759
|
-
"_CoreData_CloudKit",
|
|
4760
|
-
"_CoreLocationUI_SwiftUI",
|
|
4761
|
-
"_CoreNFC_UIKit",
|
|
4762
|
-
"_CoreSpotlight_FoundationModels",
|
|
4763
|
-
"_DataDetection_SwiftUI",
|
|
4764
|
-
"_DeviceActivity_SwiftUI",
|
|
4765
|
-
"_DeviceDiscoveryUI_SwiftUI",
|
|
4766
|
-
"_FinanceKit_AppIntents",
|
|
4767
|
-
"_FoundationModels_SwiftUI",
|
|
4768
|
-
"_FoundationModels_UIKit",
|
|
4769
|
-
"_GameController_SwiftUI",
|
|
4770
|
-
"_GeoToolbox_AppIntents",
|
|
4771
|
-
"_GroupActivities_UIKit",
|
|
4772
|
-
"_HomeKit_SwiftUI",
|
|
4773
|
-
"_Intents_TipKit",
|
|
4774
|
-
"_LinkPresentation_AppIntents",
|
|
4775
|
-
"_LocationEssentials",
|
|
4776
|
-
"_MapKit_SwiftUI",
|
|
4777
|
-
"_MarketplaceKit_UIKit",
|
|
4778
|
-
"_MediaIntents_AppIntents",
|
|
4779
|
-
"_MediaPlayer_AppIntents",
|
|
4780
|
-
"_MusicKit_SwiftUI",
|
|
4781
|
-
"_NowPlaying_AppIntents",
|
|
4782
|
-
"_PassKit_SwiftUI",
|
|
4783
|
-
"_PermissionKit_SwiftUI",
|
|
4784
|
-
"_PermissionKit_UIKit",
|
|
4785
|
-
"_PhotosUI_SwiftUI",
|
|
4786
|
-
"_PhotosUI_WidgetKit",
|
|
4787
|
-
"_Photos_AppIntents",
|
|
4788
|
-
"_QuickLook_SwiftUI",
|
|
4789
|
-
"_RealityKit_ComputeGraph",
|
|
4790
|
-
"_RealityKit_SwiftUI",
|
|
4791
|
-
"_RelevanceKit_MapKit",
|
|
4792
|
-
"_SceneKit_SwiftUI",
|
|
4793
|
-
"_SecureElementCredential_SwiftUI",
|
|
4794
|
-
"_SecureElementCredential_UIKit",
|
|
4795
|
-
"_SharedWithYou_AppIntents",
|
|
4796
|
-
"_SpriteKit_SwiftUI",
|
|
4797
|
-
"_StoreKit_SwiftUI",
|
|
4798
|
-
"_SwiftData_CoreData",
|
|
4799
|
-
"_SwiftData_SwiftUI",
|
|
4800
|
-
"_Translation_SwiftUI",
|
|
4801
|
-
"_USDKit_RealityKit",
|
|
4802
|
-
"_UserNotifications_AppIntents",
|
|
4803
|
-
"_WebKit_SwiftUI",
|
|
4804
|
-
"_WorkoutKit_SwiftUI",
|
|
4805
|
-
"iAd"
|
|
4806
|
-
]
|
|
4807
|
-
};
|
|
4808
|
-
}
|
|
4809
|
-
});
|
|
4810
|
-
|
|
4811
|
-
// src/android-string-value.ts
|
|
4812
|
-
var init_android_string_value = __esm({
|
|
4813
|
-
"src/android-string-value.ts"() {
|
|
4814
|
-
"use strict";
|
|
4815
|
-
}
|
|
4816
|
-
});
|
|
4817
|
-
|
|
4818
|
-
// src/android-xml.ts
|
|
4819
|
-
var init_android_xml = __esm({
|
|
4820
|
-
"src/android-xml.ts"() {
|
|
4821
|
-
"use strict";
|
|
4822
|
-
}
|
|
4823
|
-
});
|
|
4824
|
-
|
|
4825
|
-
// src/android-app-identity.ts
|
|
4826
|
-
var init_android_app_identity = __esm({
|
|
4827
|
-
"src/android-app-identity.ts"() {
|
|
4828
|
-
"use strict";
|
|
4829
|
-
init_android_string_value();
|
|
4830
|
-
init_android_xml();
|
|
4831
|
-
}
|
|
4832
|
-
});
|
|
4833
|
-
|
|
4834
|
-
// src/nativeAppIconContract.ts
|
|
4835
|
-
var init_nativeAppIconContract = __esm({
|
|
4836
|
-
"src/nativeAppIconContract.ts"() {
|
|
4837
|
-
"use strict";
|
|
4838
|
-
init_assetCatalogContract();
|
|
4839
|
-
init_is_record();
|
|
4840
|
-
}
|
|
4841
|
-
});
|
|
4842
|
-
|
|
4843
|
-
// src/xcode-target-members.ts
|
|
4844
|
-
var init_xcode_target_members = __esm({
|
|
4845
|
-
"src/xcode-target-members.ts"() {
|
|
4846
|
-
"use strict";
|
|
4847
|
-
init_openstep_plist();
|
|
4848
|
-
}
|
|
4849
|
-
});
|
|
4850
|
-
|
|
4851
|
-
// src/native-app-identity.ts
|
|
4852
|
-
var init_native_app_identity = __esm({
|
|
4853
|
-
"src/native-app-identity.ts"() {
|
|
4854
|
-
"use strict";
|
|
4855
|
-
init_bundle_global_footer();
|
|
4856
|
-
init_android_app_identity();
|
|
4857
|
-
init_is_record();
|
|
4858
|
-
init_nativeAppIconContract();
|
|
4859
|
-
init_openstep_plist();
|
|
4860
|
-
init_xcode_target_members();
|
|
4861
|
-
}
|
|
4862
|
-
});
|
|
4863
|
-
|
|
4864
|
-
// src/prepared-xcode-phases.ts
|
|
4865
|
-
var init_prepared_xcode_phases = __esm({
|
|
4866
|
-
"src/prepared-xcode-phases.ts"() {
|
|
4867
|
-
"use strict";
|
|
4868
|
-
}
|
|
4869
|
-
});
|
|
4870
|
-
|
|
4871
|
-
// src/swift-binary-modules.ts
|
|
4872
|
-
var import_node_path16, cacheDir2;
|
|
4873
|
-
var init_swift_binary_modules = __esm({
|
|
4874
|
-
"src/swift-binary-modules.ts"() {
|
|
4540
|
+
// src/swift-foundation.ts
|
|
4541
|
+
var init_swift_foundation = __esm({
|
|
4542
|
+
"src/swift-foundation.ts"() {
|
|
4875
4543
|
"use strict";
|
|
4876
|
-
import_node_path16 = __toESM(require("node:path"), 1);
|
|
4877
|
-
init_home_paths();
|
|
4878
|
-
init_swift_package();
|
|
4879
|
-
cacheDir2 = import_node_path16.default.join(cacheDir(), "swift-binary-modules");
|
|
4880
4544
|
}
|
|
4881
4545
|
});
|
|
4882
4546
|
|
|
4883
|
-
// src/swift-
|
|
4884
|
-
var
|
|
4885
|
-
|
|
4886
|
-
"src/swift-coverage/provenance.ts"() {
|
|
4547
|
+
// src/swift-resource-class-names.ts
|
|
4548
|
+
var init_swift_resource_class_names = __esm({
|
|
4549
|
+
"src/swift-resource-class-names.ts"() {
|
|
4887
4550
|
"use strict";
|
|
4888
|
-
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":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"a0ef7c20a2bc2b7dbd98b9006a8b000b9b4f9708f1bcf0adad8aaf79ef253022","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"fea47e1e076b2cca23c8ac9037eced1d094e69d206df09c393979a5bd1d07a8a","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
4889
4551
|
}
|
|
4890
4552
|
});
|
|
4891
4553
|
|
|
4892
|
-
// src/
|
|
4893
|
-
var
|
|
4894
|
-
var
|
|
4895
|
-
"src/
|
|
4554
|
+
// src/swiftRuntimeProductContract.ts
|
|
4555
|
+
var v, swiftFrameworkProductSchema, swiftSdkProductSchema, swiftSdkProductsSchema;
|
|
4556
|
+
var init_swiftRuntimeProductContract = __esm({
|
|
4557
|
+
"src/swiftRuntimeProductContract.ts"() {
|
|
4896
4558
|
"use strict";
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
"width-class": ["compact", "regular", "unspecified"],
|
|
5002
|
-
"height-class": ["compact", "regular"],
|
|
5003
|
-
memory: ["1GB", "2GB", "3GB", "4GB", "6GB", "8GB", "12GB", "16GB"],
|
|
5004
|
-
"graphics-feature-set": [
|
|
5005
|
-
...Array.from({ length: 10 }, (_, i) => `apple${i + 1}`),
|
|
5006
|
-
"metal1v2",
|
|
5007
|
-
"metal2v2",
|
|
5008
|
-
"metal3v1",
|
|
5009
|
-
"metal3v2",
|
|
5010
|
-
"metal4v1"
|
|
5011
|
-
],
|
|
5012
|
-
"screen-width": "string"
|
|
5013
|
-
},
|
|
5014
|
-
// an image whose vector flag is not a boolean is dropped
|
|
5015
|
-
set: {
|
|
5016
|
-
...setRules,
|
|
5017
|
-
"preserves-vector-representation": "boolean",
|
|
5018
|
-
"compression-type": compressionTypes
|
|
5019
|
-
}
|
|
5020
|
-
},
|
|
5021
|
-
symbolset: {
|
|
5022
|
-
entry: {
|
|
5023
|
-
idiom: "any",
|
|
5024
|
-
filename: "any",
|
|
5025
|
-
"language-direction": ["left-to-right", "right-to-left"]
|
|
5026
|
-
},
|
|
5027
|
-
set: { "symbol-rendering-intent": "any", localizable: "boolean" }
|
|
5028
|
-
}
|
|
5029
|
-
};
|
|
5030
|
-
swiftKeywords = new Set(
|
|
5031
|
-
"precedencegroup associatedtype fileprivate fallthrough extension typealias subscript continue internal Protocol protocol operator rethrows private default public static switch return throws repeat struct deinit import guard while where false catch break defer super class inout throw func Type case else true Self self enum init nil var for let Any try if in do as is _".split(
|
|
5032
|
-
" "
|
|
5033
|
-
)
|
|
5034
|
-
);
|
|
5035
|
-
nsColorConflicts = new Set(
|
|
5036
|
-
"unemphasizedSelectedContentBackgroundColor unemphasizedSelectedTextBackgroundColor controlAlternatingRowBackgroundColors alternatingContentBackgroundColors systemColorsDidChangeNotification alternateSelectedControlTextColor selectedContentBackgroundColor alternateSelectedControlColor secondarySelectedControlColor unemphasizedSelectedTextColor selectedTextBackgroundColor keyboardFocusIndicatorColor scrubberTexturedBackground controlLightHighlightColor selectedMenuItemTextColor underPageBackgroundColor disabledControlTextColor selectedControlTextColor controlBackgroundColor controlDarkShadowColor windowBackgroundColor selectedMenuItemColor controlHighlightColor quaternaryLabelColor selectedControlColor windowFrameTextColor placeholderTextColor textBackgroundColor secondaryLabelColor tertiaryLabelColor findHighlightColor controlAccentColor controlShadowColor currentControlTint selectedKnobColor selectedTextColor windowFrameColor controlTextColor headerTextColor scrollBarColor separatorColor highlightColor ignoresAlpha systemOrange systemPurple systemIndigo controlColor systemYellow systemGreen systemBrown headerColor shadowColor systemBlue systemPink systemTeal systemCyan labelColor systemMint systemGray systemRed knobColor gridColor linkColor textColor lightGray darkGray magenta orange purple yellow white black green brown clear blue cyan gray red".split(
|
|
5037
|
-
" "
|
|
5038
|
-
)
|
|
5039
|
-
);
|
|
5040
|
-
uiColorConflicts = new Set(
|
|
5041
|
-
"secondarySystemGroupedBackground tertiarySystemGroupedBackground secondarySystemBackground tertiarySystemBackground groupTableViewBackground systemGroupedBackground quaternarySystemFill smallSystemFontSize secondarySystemFill tertiarySystemFill systemBackground quaternaryLabel opaqueSeparator placeholderText systemFontSize buttonFontSize secondaryLabel labelFontSize tertiaryLabel systemOrange systemPurple systemIndigo systemYellow systemGray2 systemGray3 systemGray4 systemGray5 systemGray6 systemGreen systemBrown systemBlue systemPink systemTeal systemFill systemCyan systemMint systemGray systemRed tintColor separator lightText lightGray darkText darkGray magenta orange purple yellow white black label green brown clear blue link cyan gray red".split(
|
|
5042
|
-
" "
|
|
5043
|
-
)
|
|
5044
|
-
);
|
|
5045
|
-
colorConflicts = new Set(
|
|
5046
|
-
"transferRepresentation accentColor secondary primary orange purple indigo yellow white black green brown clear blue pink teal cyan mint gray red".split(
|
|
5047
|
-
" "
|
|
4559
|
+
v = __toESM(require("valibot"), 1);
|
|
4560
|
+
swiftFrameworkProductSchema = v.object({
|
|
4561
|
+
version: v.literal(1),
|
|
4562
|
+
packageName: v.string(),
|
|
4563
|
+
manifestSha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
4564
|
+
product: v.object({
|
|
4565
|
+
name: v.string(),
|
|
4566
|
+
linkage: v.picklist(["static", "dynamic", "automatic"]),
|
|
4567
|
+
targets: v.array(v.string())
|
|
4568
|
+
}),
|
|
4569
|
+
// framework names are distinct from SDK library linkNames. they identify
|
|
4570
|
+
// the packaged owner, not an observed native image dependency.
|
|
4571
|
+
frameworkAliases: v.array(
|
|
4572
|
+
v.object({
|
|
4573
|
+
kind: v.literal("framework"),
|
|
4574
|
+
name: v.string(),
|
|
4575
|
+
targets: v.array(v.string()),
|
|
4576
|
+
moduleMap: v.string(),
|
|
4577
|
+
moduleMapSha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
4578
|
+
wasmSdkId: v.string(),
|
|
4579
|
+
wasmSdkChecksum: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
4580
|
+
})
|
|
4581
|
+
),
|
|
4582
|
+
targets: v.array(
|
|
4583
|
+
v.object({
|
|
4584
|
+
name: v.string(),
|
|
4585
|
+
path: v.string(),
|
|
4586
|
+
kind: v.picklist(["regular", "system"]),
|
|
4587
|
+
dependencies: v.array(v.string())
|
|
4588
|
+
})
|
|
4589
|
+
),
|
|
4590
|
+
objects: v.array(v.object({ path: v.string(), target: v.string() })),
|
|
4591
|
+
autolink: v.array(v.string())
|
|
4592
|
+
});
|
|
4593
|
+
swiftSdkProductSchema = v.pipe(
|
|
4594
|
+
v.object({
|
|
4595
|
+
id: v.string(),
|
|
4596
|
+
installName: v.string(),
|
|
4597
|
+
target: v.literal("wasm64-unknown-wasip1"),
|
|
4598
|
+
linkNames: v.array(v.string()),
|
|
4599
|
+
// absent records declare no framework namespace, even when a library name matches.
|
|
4600
|
+
frameworkAliases: v.optional(
|
|
4601
|
+
v.array(
|
|
4602
|
+
v.object({
|
|
4603
|
+
name: v.string(),
|
|
4604
|
+
moduleMap: v.string(),
|
|
4605
|
+
moduleMapSha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
4606
|
+
})
|
|
4607
|
+
),
|
|
4608
|
+
[]
|
|
4609
|
+
),
|
|
4610
|
+
buildDependencies: v.array(v.string()),
|
|
4611
|
+
linkOwnership: v.picklist(["image", "containing-image"]),
|
|
4612
|
+
linkDependencies: v.nullable(v.array(v.string())),
|
|
4613
|
+
autolink: v.array(v.string()),
|
|
4614
|
+
sources: v.array(
|
|
4615
|
+
v.object({
|
|
4616
|
+
path: v.string(),
|
|
4617
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
4618
|
+
})
|
|
4619
|
+
),
|
|
4620
|
+
artifacts: v.array(
|
|
4621
|
+
v.variant("kind", [
|
|
4622
|
+
v.object({
|
|
4623
|
+
kind: v.literal("archive"),
|
|
4624
|
+
path: v.string(),
|
|
4625
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
4626
|
+
members: v.array(
|
|
4627
|
+
v.object({
|
|
4628
|
+
name: v.string(),
|
|
4629
|
+
ordinal: v.pipe(v.number(), v.integer(), v.minValue(1)),
|
|
4630
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
4631
|
+
sources: v.array(v.string())
|
|
4632
|
+
})
|
|
4633
|
+
)
|
|
4634
|
+
}),
|
|
4635
|
+
v.object({
|
|
4636
|
+
kind: v.literal("object"),
|
|
4637
|
+
path: v.string(),
|
|
4638
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
4639
|
+
sources: v.array(v.string()),
|
|
4640
|
+
input: v.optional(
|
|
4641
|
+
v.object({
|
|
4642
|
+
product: v.string(),
|
|
4643
|
+
artifact: v.object({
|
|
4644
|
+
path: v.string(),
|
|
4645
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
4646
|
+
}),
|
|
4647
|
+
member: v.optional(
|
|
4648
|
+
v.object({
|
|
4649
|
+
name: v.string(),
|
|
4650
|
+
ordinal: v.pipe(v.number(), v.integer(), v.minValue(1)),
|
|
4651
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
4652
|
+
})
|
|
4653
|
+
)
|
|
4654
|
+
})
|
|
4655
|
+
)
|
|
4656
|
+
})
|
|
4657
|
+
])
|
|
4658
|
+
)
|
|
4659
|
+
}),
|
|
4660
|
+
v.check(
|
|
4661
|
+
(product) => product.linkOwnership === "image" || product.linkDependencies === null,
|
|
4662
|
+
"containing-image products cannot declare an image scope"
|
|
5048
4663
|
)
|
|
5049
4664
|
);
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
4665
|
+
swiftSdkProductsSchema = v.object({
|
|
4666
|
+
version: v.literal(1),
|
|
4667
|
+
products: v.array(swiftSdkProductSchema)
|
|
4668
|
+
});
|
|
4669
|
+
}
|
|
4670
|
+
});
|
|
4671
|
+
|
|
4672
|
+
// src/swift-wasm-prune.ts
|
|
4673
|
+
var v2, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, SWIFTUI_WRAPPER_HOST_PROTOCOLS;
|
|
4674
|
+
var init_swift_wasm_prune = __esm({
|
|
4675
|
+
"src/swift-wasm-prune.ts"() {
|
|
4676
|
+
"use strict";
|
|
4677
|
+
v2 = __toESM(require("valibot"), 1);
|
|
4678
|
+
init_swift_resource_class_names();
|
|
4679
|
+
init_swift_toolchain();
|
|
4680
|
+
init_swiftRuntimeProductContract();
|
|
4681
|
+
PRUNED_SDK_ARCHIVES = /* @__PURE__ */ new Set([
|
|
4682
|
+
"libFoundation",
|
|
4683
|
+
"lib_FoundationCollections",
|
|
4684
|
+
"libswift_StringProcessing",
|
|
4685
|
+
"libswift_RegexParser",
|
|
4686
|
+
"libswiftObservation",
|
|
4687
|
+
"libswiftSynchronization",
|
|
4688
|
+
"libswiftCxx",
|
|
4689
|
+
"libswiftCxxStdlib",
|
|
4690
|
+
"libswiftWASILibc",
|
|
4691
|
+
"libswift_Builtin_float",
|
|
4692
|
+
"libObjectiveC"
|
|
4693
|
+
]);
|
|
4694
|
+
OMIT_SDK_LIB_FLAGS = /* @__PURE__ */ new Set([
|
|
4695
|
+
...[...PRUNED_SDK_ARCHIVES].map((a) => `-l${a.slice(3)}`),
|
|
4696
|
+
"-lswiftCore",
|
|
4697
|
+
"-lswift_Concurrency"
|
|
4698
|
+
]);
|
|
4699
|
+
SWIFTUI_WRAPPER_HOST_PROTOCOLS = new Set(
|
|
4700
|
+
[
|
|
4701
|
+
"View",
|
|
4702
|
+
"ViewModifier",
|
|
4703
|
+
"App",
|
|
4704
|
+
"Scene",
|
|
4705
|
+
"Gesture",
|
|
4706
|
+
"ToolbarContent",
|
|
4707
|
+
"Commands",
|
|
4708
|
+
"DynamicProperty"
|
|
4709
|
+
].map((name2) => `$s7SwiftUI${name2.length}${name2}Mp`)
|
|
5054
4710
|
);
|
|
5055
4711
|
}
|
|
5056
4712
|
});
|
|
5057
4713
|
|
|
5058
|
-
// src/swift-
|
|
5059
|
-
var
|
|
5060
|
-
|
|
5061
|
-
"src/swift-coverage/xcode-assets.ts"() {
|
|
4714
|
+
// src/swift-guest-archive.ts
|
|
4715
|
+
var init_swift_guest_archive = __esm({
|
|
4716
|
+
"src/swift-guest-archive.ts"() {
|
|
5062
4717
|
"use strict";
|
|
5063
|
-
|
|
5064
|
-
init_xcode_asset_symbols();
|
|
5065
|
-
unprovenAssetSettings = [
|
|
5066
|
-
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_FRAMEWORKS",
|
|
5067
|
-
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_WARNINGS",
|
|
5068
|
-
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_ERRORS",
|
|
5069
|
-
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_BACKWARDS_DEPLOYMENT_SUPPORT",
|
|
5070
|
-
"ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOLS_PATH",
|
|
5071
|
-
"ASSETCATALOG_COMPILER_GENERATE_OBJC_ASSET_SYMBOLS_PATH",
|
|
5072
|
-
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_INDEX_PATH",
|
|
5073
|
-
"ASSETCATALOG_COMPILER_BUNDLE_IDENTIFIER",
|
|
5074
|
-
"ASSETCATALOG_COMPILER_LIGHTWEIGHT_ASSET_RUNTIME_MODE"
|
|
5075
|
-
];
|
|
5076
|
-
assetSymbolSettingKeys = [
|
|
5077
|
-
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS",
|
|
5078
|
-
"ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS",
|
|
5079
|
-
"PRODUCT_BUNDLE_IDENTIFIER",
|
|
5080
|
-
"TARGETED_DEVICE_FAMILY",
|
|
5081
|
-
...unprovenAssetSettings,
|
|
5082
|
-
"ASSETCATALOG_OTHER_FLAGS"
|
|
5083
|
-
];
|
|
4718
|
+
init_swift_wasm_prune();
|
|
5084
4719
|
}
|
|
5085
4720
|
});
|
|
5086
4721
|
|
|
5087
|
-
//
|
|
5088
|
-
var
|
|
5089
|
-
"
|
|
4722
|
+
// src/swift-guest-image-ledger.ts
|
|
4723
|
+
var init_swift_guest_image_ledger = __esm({
|
|
4724
|
+
"src/swift-guest-image-ledger.ts"() {
|
|
5090
4725
|
"use strict";
|
|
5091
4726
|
}
|
|
5092
4727
|
});
|
|
5093
4728
|
|
|
5094
|
-
//
|
|
5095
|
-
var
|
|
5096
|
-
"
|
|
4729
|
+
// src/swift-guest-link-plan.ts
|
|
4730
|
+
var init_swift_guest_link_plan = __esm({
|
|
4731
|
+
"src/swift-guest-link-plan.ts"() {
|
|
4732
|
+
"use strict";
|
|
4733
|
+
}
|
|
4734
|
+
});
|
|
4735
|
+
|
|
4736
|
+
// src/swift-guest-manifest.ts
|
|
4737
|
+
var init_swift_guest_manifest = __esm({
|
|
4738
|
+
"src/swift-guest-manifest.ts"() {
|
|
4739
|
+
"use strict";
|
|
4740
|
+
init_swift_guest_link_plan();
|
|
4741
|
+
init_swift_wasm_prune();
|
|
4742
|
+
}
|
|
4743
|
+
});
|
|
4744
|
+
|
|
4745
|
+
// src/swift-guest-linked-spans.ts
|
|
4746
|
+
var init_swift_guest_linked_spans = __esm({
|
|
4747
|
+
"src/swift-guest-linked-spans.ts"() {
|
|
4748
|
+
"use strict";
|
|
4749
|
+
}
|
|
4750
|
+
});
|
|
4751
|
+
|
|
4752
|
+
// src/swiftGuestImageContract.ts
|
|
4753
|
+
var init_swiftGuestImageContract = __esm({
|
|
4754
|
+
"src/swiftGuestImageContract.ts"() {
|
|
5097
4755
|
"use strict";
|
|
5098
|
-
init_src();
|
|
5099
|
-
init_home_paths();
|
|
5100
4756
|
init_is_record();
|
|
5101
|
-
init_cli_release_origin();
|
|
5102
4757
|
}
|
|
5103
4758
|
});
|
|
5104
4759
|
|
|
5105
|
-
// src/
|
|
5106
|
-
var
|
|
5107
|
-
"src/
|
|
4760
|
+
// src/swift-guest-projection.ts
|
|
4761
|
+
var init_swift_guest_projection = __esm({
|
|
4762
|
+
"src/swift-guest-projection.ts"() {
|
|
5108
4763
|
"use strict";
|
|
4764
|
+
init_swift_guest_linked_spans();
|
|
4765
|
+
init_swiftGuestImageContract();
|
|
5109
4766
|
}
|
|
5110
4767
|
});
|
|
5111
4768
|
|
|
5112
|
-
// src/
|
|
5113
|
-
var
|
|
5114
|
-
|
|
4769
|
+
// src/swift-guest-projection-storage.ts
|
|
4770
|
+
var maxProjectionRegions;
|
|
4771
|
+
var init_swift_guest_projection_storage = __esm({
|
|
4772
|
+
"src/swift-guest-projection-storage.ts"() {
|
|
5115
4773
|
"use strict";
|
|
5116
|
-
|
|
4774
|
+
init_swift_guest_linked_spans();
|
|
4775
|
+
init_swift_guest_projection();
|
|
4776
|
+
init_swiftGuestImageContract();
|
|
4777
|
+
maxProjectionRegions = 1 << 20;
|
|
5117
4778
|
}
|
|
5118
4779
|
});
|
|
5119
4780
|
|
|
5120
|
-
// src/swift-
|
|
5121
|
-
var
|
|
5122
|
-
"src/swift-
|
|
4781
|
+
// src/swift-guest-source-plan.ts
|
|
4782
|
+
var init_swift_guest_source_plan = __esm({
|
|
4783
|
+
"src/swift-guest-source-plan.ts"() {
|
|
4784
|
+
"use strict";
|
|
4785
|
+
init_swift_package();
|
|
4786
|
+
}
|
|
4787
|
+
});
|
|
4788
|
+
|
|
4789
|
+
// src/swift-runtime-products.ts
|
|
4790
|
+
var v3, packageSchema;
|
|
4791
|
+
var init_swift_runtime_products = __esm({
|
|
4792
|
+
"src/swift-runtime-products.ts"() {
|
|
4793
|
+
"use strict";
|
|
4794
|
+
v3 = __toESM(require("valibot"), 1);
|
|
4795
|
+
init_is_record();
|
|
4796
|
+
packageSchema = v3.object({
|
|
4797
|
+
name: v3.string(),
|
|
4798
|
+
products: v3.array(
|
|
4799
|
+
v3.object({
|
|
4800
|
+
name: v3.string(),
|
|
4801
|
+
targets: v3.array(v3.string()),
|
|
4802
|
+
type: v3.unknown()
|
|
4803
|
+
})
|
|
4804
|
+
),
|
|
4805
|
+
targets: v3.array(
|
|
4806
|
+
v3.object({
|
|
4807
|
+
name: v3.string(),
|
|
4808
|
+
type: v3.string(),
|
|
4809
|
+
path: v3.optional(v3.string()),
|
|
4810
|
+
dependencies: v3.array(v3.unknown())
|
|
4811
|
+
})
|
|
4812
|
+
)
|
|
4813
|
+
});
|
|
4814
|
+
}
|
|
4815
|
+
});
|
|
4816
|
+
|
|
4817
|
+
// src/swift-guest-runtime-plan.ts
|
|
4818
|
+
var v4;
|
|
4819
|
+
var init_swift_guest_runtime_plan = __esm({
|
|
4820
|
+
"src/swift-guest-runtime-plan.ts"() {
|
|
4821
|
+
"use strict";
|
|
4822
|
+
v4 = __toESM(require("valibot"), 1);
|
|
4823
|
+
init_swift_guest_source_plan();
|
|
4824
|
+
init_swift_runtime_products();
|
|
4825
|
+
init_swift_shared_sdk();
|
|
4826
|
+
init_swift_wasm_prune();
|
|
4827
|
+
init_swiftRuntimeProductContract();
|
|
4828
|
+
}
|
|
4829
|
+
});
|
|
4830
|
+
|
|
4831
|
+
// src/swift-guest-link.ts
|
|
4832
|
+
var init_swift_guest_link = __esm({
|
|
4833
|
+
"src/swift-guest-link.ts"() {
|
|
4834
|
+
"use strict";
|
|
4835
|
+
init_swift_guest_archive();
|
|
4836
|
+
init_swift_guest_image_ledger();
|
|
4837
|
+
init_swift_guest_link_plan();
|
|
4838
|
+
init_swift_guest_manifest();
|
|
4839
|
+
init_swift_guest_projection_storage();
|
|
4840
|
+
init_swift_guest_runtime_plan();
|
|
4841
|
+
init_swift_runtime_products();
|
|
4842
|
+
init_swift_wasm_prune();
|
|
4843
|
+
}
|
|
4844
|
+
});
|
|
4845
|
+
|
|
4846
|
+
// src/swift-guest-source-inputs.ts
|
|
4847
|
+
var init_swift_guest_source_inputs = __esm({
|
|
4848
|
+
"src/swift-guest-source-inputs.ts"() {
|
|
5123
4849
|
"use strict";
|
|
4850
|
+
init_forked_script_contract();
|
|
4851
|
+
init_swift_guest_source_plan();
|
|
4852
|
+
init_swift_runtime_products();
|
|
4853
|
+
}
|
|
4854
|
+
});
|
|
4855
|
+
|
|
4856
|
+
// src/binaryen.lock.json
|
|
4857
|
+
var binaryen_lock_default;
|
|
4858
|
+
var init_binaryen_lock = __esm({
|
|
4859
|
+
"src/binaryen.lock.json"() {
|
|
4860
|
+
binaryen_lock_default = {
|
|
4861
|
+
version: "132",
|
|
4862
|
+
licenseSha256: "64c0d02491e16eced74826440ecd2bcf7722d37fa586faf457b2494293afbffe",
|
|
4863
|
+
platforms: {
|
|
4864
|
+
"linux-x64": {
|
|
4865
|
+
asset: "x86_64-linux",
|
|
4866
|
+
upstreamSha256: "195ddc94f9bc89f45abdabb0b9eea86023d727ba90eac8b35b80f2544fc30572",
|
|
4867
|
+
sha256: "0396b1a540e9f97f30eb6a378d829305c218c821a0bd88c74e83d3d6923dad0b"
|
|
4868
|
+
},
|
|
4869
|
+
"linux-arm64": {
|
|
4870
|
+
asset: "aarch64-linux",
|
|
4871
|
+
upstreamSha256: "c58562417836c5d0493d89bdefc434933bdc097db641b483df86bcfa557a107f",
|
|
4872
|
+
sha256: "25e3747f19614b0281a28b9a909ddc602b546ccdfacebc8cae2f7165665328fa"
|
|
4873
|
+
},
|
|
4874
|
+
"darwin-arm64": {
|
|
4875
|
+
asset: "arm64-macos",
|
|
4876
|
+
upstreamSha256: "98aad827847af7ef990ed7098d885725c8e5b5aae75073403635617ae4e259aa",
|
|
4877
|
+
sha256: "34281566fe32df71337aaf0b60aa265dc853587d92bda0b5b1fac8aed8c2f8ab"
|
|
4878
|
+
}
|
|
4879
|
+
}
|
|
4880
|
+
};
|
|
5124
4881
|
}
|
|
5125
4882
|
});
|
|
5126
4883
|
|
|
5127
|
-
// src/
|
|
5128
|
-
var
|
|
5129
|
-
"src/
|
|
4884
|
+
// src/wasm-narrow-boundary.ts
|
|
4885
|
+
var init_wasm_narrow_boundary = __esm({
|
|
4886
|
+
"src/wasm-narrow-boundary.ts"() {
|
|
5130
4887
|
"use strict";
|
|
5131
4888
|
}
|
|
5132
4889
|
});
|
|
5133
4890
|
|
|
5134
|
-
// src/
|
|
5135
|
-
var
|
|
5136
|
-
|
|
4891
|
+
// src/wasm-optimize.ts
|
|
4892
|
+
var import_node_child_process7, import_node_util3, FEATURES, KEEP_WASM_NAMES, LOWERING, BINARYEN_VERSION, runBinaryen, WASM_LOWER_IDENTITY, BINARYEN_RELEASES;
|
|
4893
|
+
var init_wasm_optimize = __esm({
|
|
4894
|
+
"src/wasm-optimize.ts"() {
|
|
5137
4895
|
"use strict";
|
|
5138
|
-
|
|
4896
|
+
import_node_child_process7 = require("node:child_process");
|
|
4897
|
+
import_node_util3 = require("node:util");
|
|
4898
|
+
init_src();
|
|
4899
|
+
init_admitted_mac_build();
|
|
4900
|
+
init_binaryen_lock();
|
|
4901
|
+
init_home_paths();
|
|
4902
|
+
init_wasm_narrow_boundary();
|
|
4903
|
+
FEATURES = [
|
|
4904
|
+
"memory64",
|
|
4905
|
+
"threads",
|
|
4906
|
+
"bulk-memory",
|
|
4907
|
+
"bulk-memory-opt",
|
|
4908
|
+
"call-indirect-overlong",
|
|
4909
|
+
"exception-handling",
|
|
4910
|
+
"multivalue",
|
|
4911
|
+
"mutable-globals",
|
|
4912
|
+
"nontrapping-float-to-int",
|
|
4913
|
+
"reference-types",
|
|
4914
|
+
"sign-ext"
|
|
4915
|
+
];
|
|
4916
|
+
KEEP_WASM_NAMES = process.env.PEACH_SWIFT_NAMES === "1";
|
|
4917
|
+
LOWERING = ["--memory64-lowering", "--table64-lowering"];
|
|
4918
|
+
BINARYEN_VERSION = binaryen_lock_default.version;
|
|
4919
|
+
runBinaryen = (0, import_node_util3.promisify)(import_node_child_process7.execFile);
|
|
4920
|
+
WASM_LOWER_IDENTITY = `binaryen ${BINARYEN_VERSION} narrow ${LOWERING.join(" ")} ${FEATURES.join(",")} unoptimized-names`;
|
|
4921
|
+
BINARYEN_RELEASES = new Map(Object.entries(binaryen_lock_default.platforms));
|
|
5139
4922
|
}
|
|
5140
4923
|
});
|
|
5141
4924
|
|
|
5142
|
-
// src/swift-
|
|
5143
|
-
var
|
|
5144
|
-
"src/swift-
|
|
4925
|
+
// src/swift-guest-compile.ts
|
|
4926
|
+
var init_swift_guest_compile = __esm({
|
|
4927
|
+
"src/swift-guest-compile.ts"() {
|
|
5145
4928
|
"use strict";
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
4929
|
+
init_swift_guest_archive();
|
|
4930
|
+
init_swift_guest_link();
|
|
4931
|
+
init_swift_guest_projection_storage();
|
|
4932
|
+
init_swift_guest_runtime_plan();
|
|
4933
|
+
init_swift_guest_source_inputs();
|
|
4934
|
+
init_swift_guest_source_plan();
|
|
4935
|
+
init_swift_runtime_products();
|
|
4936
|
+
init_wasm_optimize();
|
|
5150
4937
|
}
|
|
5151
4938
|
});
|
|
5152
4939
|
|
|
5153
|
-
// src/swift-
|
|
5154
|
-
var
|
|
5155
|
-
"src/swift-
|
|
4940
|
+
// src/swift-header-compiler.ts
|
|
4941
|
+
var init_swift_header_compiler = __esm({
|
|
4942
|
+
"src/swift-header-compiler.ts"() {
|
|
5156
4943
|
"use strict";
|
|
4944
|
+
init_forked_script_contract();
|
|
4945
|
+
init_is_record();
|
|
4946
|
+
init_write_build_file();
|
|
5157
4947
|
}
|
|
5158
4948
|
});
|
|
5159
4949
|
|
|
5160
|
-
// src/swift-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
throw new Error("invalid Swift distribution lock");
|
|
5164
|
-
}
|
|
5165
|
-
const hosts = value.hosts;
|
|
5166
|
-
const entry = (host2) => {
|
|
5167
|
-
const item = hosts[host2];
|
|
5168
|
-
if (!isRecord(item) || typeof item.sha256 !== "string" || !/^[a-f0-9]{64}$/.test(item.sha256) || typeof item.size !== "number") {
|
|
5169
|
-
throw new Error(`invalid Swift distribution lock entry for ${host2}`);
|
|
5170
|
-
}
|
|
5171
|
-
return { sha256: item.sha256, size: item.size };
|
|
5172
|
-
};
|
|
5173
|
-
return {
|
|
5174
|
-
id: value.id,
|
|
5175
|
-
release: value.release,
|
|
5176
|
-
wasmSdkId: value.wasmSdkId,
|
|
5177
|
-
wasmSdkUrl: value.wasmSdkUrl,
|
|
5178
|
-
wasmSdkChecksum: value.wasmSdkChecksum,
|
|
5179
|
-
source: value.source,
|
|
5180
|
-
targets: value.targets,
|
|
5181
|
-
systemEnvironment: Object.fromEntries(
|
|
5182
|
-
Object.entries(value.systemEnvironment).map(([key, values]) => {
|
|
5183
|
-
if (!isStrings(values))
|
|
5184
|
-
throw new Error(`invalid Swift system environment values for ${key}`);
|
|
5185
|
-
return [key, values];
|
|
5186
|
-
})
|
|
5187
|
-
),
|
|
5188
|
-
hosts: {
|
|
5189
|
-
"darwin-arm64": entry("darwin-arm64"),
|
|
5190
|
-
"linux-x64": entry("linux-x64"),
|
|
5191
|
-
"linux-arm64": entry("linux-arm64")
|
|
5192
|
-
}
|
|
5193
|
-
};
|
|
5194
|
-
}
|
|
5195
|
-
var isStrings;
|
|
5196
|
-
var init_swift_distribution_contract = __esm({
|
|
5197
|
-
"src/swift-distribution-contract.ts"() {
|
|
4950
|
+
// src/swift-header-dependencies.ts
|
|
4951
|
+
var init_swift_header_dependencies = __esm({
|
|
4952
|
+
"src/swift-header-dependencies.ts"() {
|
|
5198
4953
|
"use strict";
|
|
5199
|
-
|
|
5200
|
-
|
|
4954
|
+
init_swift_package();
|
|
4955
|
+
init_swiftContract();
|
|
5201
4956
|
}
|
|
5202
4957
|
});
|
|
5203
4958
|
|
|
5204
|
-
// src/
|
|
5205
|
-
var
|
|
5206
|
-
"src/
|
|
4959
|
+
// ../peach-kit/src/wasm-memory.ts
|
|
4960
|
+
var init_wasm_memory = __esm({
|
|
4961
|
+
"../peach-kit/src/wasm-memory.ts"() {
|
|
5207
4962
|
"use strict";
|
|
5208
4963
|
}
|
|
5209
4964
|
});
|
|
5210
4965
|
|
|
5211
|
-
// src/
|
|
5212
|
-
var
|
|
5213
|
-
|
|
4966
|
+
// ../sootsim-swift/src/icuData.ts
|
|
4967
|
+
var PACK_BYTES, VERSION, SWIFT_ICU_PACKED;
|
|
4968
|
+
var init_icuData = __esm({
|
|
4969
|
+
"../sootsim-swift/src/icuData.ts"() {
|
|
5214
4970
|
"use strict";
|
|
4971
|
+
init_wasm_memory();
|
|
4972
|
+
PACK_BYTES = 64 * 1024;
|
|
4973
|
+
VERSION = 1;
|
|
4974
|
+
SWIFT_ICU_PACKED = `picu${VERSION}`;
|
|
5215
4975
|
}
|
|
5216
4976
|
});
|
|
5217
4977
|
|
|
5218
|
-
// src/
|
|
5219
|
-
var
|
|
5220
|
-
var
|
|
5221
|
-
"src/
|
|
4978
|
+
// src/swift-icu.ts
|
|
4979
|
+
var import_node_child_process8, import_node_util4, import_node_zlib2, run3, deflate, compressBrotli, inflateGzip;
|
|
4980
|
+
var init_swift_icu = __esm({
|
|
4981
|
+
"src/swift-icu.ts"() {
|
|
5222
4982
|
"use strict";
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
}),
|
|
5233
|
-
// framework names are distinct from SDK library linkNames. they identify
|
|
5234
|
-
// the packaged owner, not an observed native image dependency.
|
|
5235
|
-
frameworkAliases: v.array(
|
|
5236
|
-
v.object({
|
|
5237
|
-
kind: v.literal("framework"),
|
|
5238
|
-
name: v.string(),
|
|
5239
|
-
targets: v.array(v.string()),
|
|
5240
|
-
moduleMap: v.string(),
|
|
5241
|
-
moduleMapSha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
5242
|
-
wasmSdkId: v.string(),
|
|
5243
|
-
wasmSdkChecksum: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
5244
|
-
})
|
|
5245
|
-
),
|
|
5246
|
-
targets: v.array(
|
|
5247
|
-
v.object({
|
|
5248
|
-
name: v.string(),
|
|
5249
|
-
path: v.string(),
|
|
5250
|
-
kind: v.picklist(["regular", "system"]),
|
|
5251
|
-
dependencies: v.array(v.string())
|
|
5252
|
-
})
|
|
5253
|
-
),
|
|
5254
|
-
objects: v.array(v.object({ path: v.string(), target: v.string() })),
|
|
5255
|
-
autolink: v.array(v.string())
|
|
5256
|
-
});
|
|
5257
|
-
swiftSdkProductSchema = v.pipe(
|
|
5258
|
-
v.object({
|
|
5259
|
-
id: v.string(),
|
|
5260
|
-
installName: v.string(),
|
|
5261
|
-
target: v.literal("wasm64-unknown-wasip1"),
|
|
5262
|
-
linkNames: v.array(v.string()),
|
|
5263
|
-
// absent records declare no framework namespace, even when a library name matches.
|
|
5264
|
-
frameworkAliases: v.optional(
|
|
5265
|
-
v.array(
|
|
5266
|
-
v.object({
|
|
5267
|
-
name: v.string(),
|
|
5268
|
-
moduleMap: v.string(),
|
|
5269
|
-
moduleMapSha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
5270
|
-
})
|
|
5271
|
-
),
|
|
5272
|
-
[]
|
|
5273
|
-
),
|
|
5274
|
-
buildDependencies: v.array(v.string()),
|
|
5275
|
-
linkOwnership: v.picklist(["image", "containing-image"]),
|
|
5276
|
-
linkDependencies: v.nullable(v.array(v.string())),
|
|
5277
|
-
autolink: v.array(v.string()),
|
|
5278
|
-
sources: v.array(
|
|
5279
|
-
v.object({
|
|
5280
|
-
path: v.string(),
|
|
5281
|
-
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
5282
|
-
})
|
|
5283
|
-
),
|
|
5284
|
-
artifacts: v.array(
|
|
5285
|
-
v.variant("kind", [
|
|
5286
|
-
v.object({
|
|
5287
|
-
kind: v.literal("archive"),
|
|
5288
|
-
path: v.string(),
|
|
5289
|
-
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
5290
|
-
members: v.array(
|
|
5291
|
-
v.object({
|
|
5292
|
-
name: v.string(),
|
|
5293
|
-
ordinal: v.pipe(v.number(), v.integer(), v.minValue(1)),
|
|
5294
|
-
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
5295
|
-
sources: v.array(v.string())
|
|
5296
|
-
})
|
|
5297
|
-
)
|
|
5298
|
-
}),
|
|
5299
|
-
v.object({
|
|
5300
|
-
kind: v.literal("object"),
|
|
5301
|
-
path: v.string(),
|
|
5302
|
-
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
5303
|
-
sources: v.array(v.string()),
|
|
5304
|
-
input: v.optional(
|
|
5305
|
-
v.object({
|
|
5306
|
-
product: v.string(),
|
|
5307
|
-
artifact: v.object({
|
|
5308
|
-
path: v.string(),
|
|
5309
|
-
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
5310
|
-
}),
|
|
5311
|
-
member: v.optional(
|
|
5312
|
-
v.object({
|
|
5313
|
-
name: v.string(),
|
|
5314
|
-
ordinal: v.pipe(v.number(), v.integer(), v.minValue(1)),
|
|
5315
|
-
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
5316
|
-
})
|
|
5317
|
-
)
|
|
5318
|
-
})
|
|
5319
|
-
)
|
|
5320
|
-
})
|
|
5321
|
-
])
|
|
5322
|
-
)
|
|
5323
|
-
}),
|
|
5324
|
-
v.check(
|
|
5325
|
-
(product) => product.linkOwnership === "image" || product.linkDependencies === null,
|
|
5326
|
-
"containing-image products cannot declare an image scope"
|
|
5327
|
-
)
|
|
5328
|
-
);
|
|
5329
|
-
swiftSdkProductsSchema = v.object({
|
|
5330
|
-
version: v.literal(1),
|
|
5331
|
-
products: v.array(swiftSdkProductSchema)
|
|
5332
|
-
});
|
|
4983
|
+
import_node_child_process8 = require("node:child_process");
|
|
4984
|
+
import_node_util4 = require("node:util");
|
|
4985
|
+
import_node_zlib2 = require("node:zlib");
|
|
4986
|
+
init_icuData();
|
|
4987
|
+
init_swift_toolchain();
|
|
4988
|
+
run3 = (0, import_node_util4.promisify)(import_node_child_process8.execFile);
|
|
4989
|
+
deflate = (0, import_node_util4.promisify)(import_node_zlib2.gzip);
|
|
4990
|
+
compressBrotli = (0, import_node_util4.promisify)(import_node_zlib2.brotliCompress);
|
|
4991
|
+
inflateGzip = (0, import_node_util4.promisify)(import_node_zlib2.gunzip);
|
|
5333
4992
|
}
|
|
5334
4993
|
});
|
|
5335
4994
|
|
|
5336
|
-
// src/swift-
|
|
5337
|
-
var
|
|
5338
|
-
|
|
5339
|
-
"src/swift-wasm-prune.ts"() {
|
|
4995
|
+
// src/swift-link-roots.ts
|
|
4996
|
+
var init_swift_link_roots = __esm({
|
|
4997
|
+
"src/swift-link-roots.ts"() {
|
|
5340
4998
|
"use strict";
|
|
5341
|
-
v2 = __toESM(require("valibot"), 1);
|
|
5342
|
-
init_swift_resource_class_names();
|
|
5343
|
-
init_swift_toolchain();
|
|
5344
|
-
init_swiftRuntimeProductContract();
|
|
5345
|
-
PRUNED_SDK_ARCHIVES = /* @__PURE__ */ new Set([
|
|
5346
|
-
"libFoundation",
|
|
5347
|
-
"lib_FoundationCollections",
|
|
5348
|
-
"libswift_StringProcessing",
|
|
5349
|
-
"libswift_RegexParser",
|
|
5350
|
-
"libswiftObservation",
|
|
5351
|
-
"libswiftSynchronization",
|
|
5352
|
-
"libswiftCxx",
|
|
5353
|
-
"libswiftCxxStdlib",
|
|
5354
|
-
"libswiftWASILibc",
|
|
5355
|
-
"libswift_Builtin_float",
|
|
5356
|
-
"libObjectiveC"
|
|
5357
|
-
]);
|
|
5358
|
-
OMIT_SDK_LIB_FLAGS = /* @__PURE__ */ new Set([
|
|
5359
|
-
...[...PRUNED_SDK_ARCHIVES].map((a) => `-l${a.slice(3)}`),
|
|
5360
|
-
"-lswiftCore",
|
|
5361
|
-
"-lswift_Concurrency"
|
|
5362
|
-
]);
|
|
5363
|
-
SWIFTUI_WRAPPER_HOST_PROTOCOLS = new Set(
|
|
5364
|
-
[
|
|
5365
|
-
"View",
|
|
5366
|
-
"ViewModifier",
|
|
5367
|
-
"App",
|
|
5368
|
-
"Scene",
|
|
5369
|
-
"Gesture",
|
|
5370
|
-
"ToolbarContent",
|
|
5371
|
-
"Commands",
|
|
5372
|
-
"DynamicProperty"
|
|
5373
|
-
].map((name2) => `$s7SwiftUI${name2.length}${name2}Mp`)
|
|
5374
|
-
);
|
|
5375
4999
|
}
|
|
5376
5000
|
});
|
|
5377
5001
|
|
|
5378
|
-
// src/swift-
|
|
5379
|
-
var
|
|
5380
|
-
"src/swift-
|
|
5002
|
+
// src/swift-objc-import.ts
|
|
5003
|
+
var init_swift_objc_import = __esm({
|
|
5004
|
+
"src/swift-objc-import.ts"() {
|
|
5381
5005
|
"use strict";
|
|
5382
|
-
init_swift_wasm_prune();
|
|
5383
5006
|
}
|
|
5384
5007
|
});
|
|
5385
5008
|
|
|
5386
|
-
// src/swift-
|
|
5387
|
-
var
|
|
5388
|
-
"src/swift-
|
|
5009
|
+
// src/swift-project-user.ts
|
|
5010
|
+
var init_swift_project_user = __esm({
|
|
5011
|
+
"src/swift-project-user.ts"() {
|
|
5389
5012
|
"use strict";
|
|
5390
5013
|
}
|
|
5391
5014
|
});
|
|
5392
5015
|
|
|
5393
|
-
// src/swift-
|
|
5394
|
-
var
|
|
5395
|
-
"src/swift-
|
|
5016
|
+
// src/swift-reproducible.ts
|
|
5017
|
+
var init_swift_reproducible = __esm({
|
|
5018
|
+
"src/swift-reproducible.ts"() {
|
|
5019
|
+
"use strict";
|
|
5020
|
+
}
|
|
5021
|
+
});
|
|
5022
|
+
|
|
5023
|
+
// src/swift-root-lock.ts
|
|
5024
|
+
var init_swift_root_lock = __esm({
|
|
5025
|
+
"src/swift-root-lock.ts"() {
|
|
5026
|
+
"use strict";
|
|
5027
|
+
init_process_group();
|
|
5028
|
+
init_process_table();
|
|
5029
|
+
}
|
|
5030
|
+
});
|
|
5031
|
+
|
|
5032
|
+
// src/swift-uniform-type-constants.ts
|
|
5033
|
+
var init_swift_uniform_type_constants = __esm({
|
|
5034
|
+
"src/swift-uniform-type-constants.ts"() {
|
|
5035
|
+
"use strict";
|
|
5036
|
+
init_swift_objc_runtime();
|
|
5037
|
+
init_swift_objc_standin();
|
|
5038
|
+
}
|
|
5039
|
+
});
|
|
5040
|
+
|
|
5041
|
+
// src/xcode-header-search.ts
|
|
5042
|
+
var init_xcode_header_search = __esm({
|
|
5043
|
+
"src/xcode-header-search.ts"() {
|
|
5044
|
+
"use strict";
|
|
5045
|
+
init_case_insensitive_header_overlay();
|
|
5046
|
+
init_write_build_file();
|
|
5047
|
+
}
|
|
5048
|
+
});
|
|
5049
|
+
|
|
5050
|
+
// src/swift-compile.ts
|
|
5051
|
+
var v5, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, FOUNDATION_IMPLICIT_MODULES, FOUNDATION_IMPLICIT_FLAGS, compilerSourceDigest, C_WORDS, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, wasmMacroEnvironment, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES;
|
|
5052
|
+
var init_swift_compile = __esm({
|
|
5053
|
+
"src/swift-compile.ts"() {
|
|
5054
|
+
"use strict";
|
|
5055
|
+
v5 = __toESM(require("valibot"), 1);
|
|
5056
|
+
init_admitted_mac_build();
|
|
5057
|
+
init_process_group();
|
|
5058
|
+
init_retired_cache_directory();
|
|
5059
|
+
init_swift_compile_budget();
|
|
5060
|
+
init_swift_compiler_digest();
|
|
5061
|
+
init_swift_darwin_records();
|
|
5062
|
+
init_swift_design_time();
|
|
5063
|
+
init_swift_distribution_contract();
|
|
5064
|
+
init_swift_foundation();
|
|
5065
|
+
init_swift_guest_compile();
|
|
5066
|
+
init_swift_guest_source_inputs();
|
|
5067
|
+
init_swift_header_compiler();
|
|
5068
|
+
init_swift_header_dependencies();
|
|
5069
|
+
init_swift_icu();
|
|
5070
|
+
init_swift_link_roots();
|
|
5071
|
+
init_swift_objc_import();
|
|
5072
|
+
init_swift_objc_runtime();
|
|
5073
|
+
init_swift_objc_standin();
|
|
5074
|
+
init_swift_package();
|
|
5075
|
+
init_swift_project_user();
|
|
5076
|
+
init_swift_reproducible();
|
|
5077
|
+
init_swift_root_lock();
|
|
5078
|
+
init_swift_shared_sdk();
|
|
5079
|
+
init_swift_toolchain();
|
|
5080
|
+
init_swift_uniform_type_constants();
|
|
5081
|
+
init_swift_wasm_prune();
|
|
5082
|
+
init_swiftContract();
|
|
5083
|
+
init_swiftRuntimeProductContract();
|
|
5084
|
+
init_wasm_optimize();
|
|
5085
|
+
init_write_build_file();
|
|
5086
|
+
init_xcode_header_search();
|
|
5087
|
+
OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
5088
|
+
PDFKit: [],
|
|
5089
|
+
CFNetwork: ["PeachCFNetwork"],
|
|
5090
|
+
PeachCFNetwork: [],
|
|
5091
|
+
JavaScriptCore: ["PeachJavaScriptCore"],
|
|
5092
|
+
PeachJavaScriptCore: [],
|
|
5093
|
+
// GameplayKit names SpriteKit and SceneKit nodes, as on iOS
|
|
5094
|
+
GameplayKit: ["SpriteKit", "SceneKit", "PeachBox2D", "simd", "GLKit"],
|
|
5095
|
+
simd: [],
|
|
5096
|
+
ModelIO: ["simd"],
|
|
5097
|
+
GLKit: ["ModelIO"],
|
|
5098
|
+
Accelerate: [],
|
|
5099
|
+
CryptoTokenKit: [],
|
|
5100
|
+
CommonCrypto: [],
|
|
5101
|
+
ImagePlayground: [],
|
|
5102
|
+
QuickLook: ["QuickLookThumbnailing"],
|
|
5103
|
+
QuickLookThumbnailing: [],
|
|
5104
|
+
libxml2: [],
|
|
5105
|
+
Compression: [],
|
|
5106
|
+
zlib: [],
|
|
5107
|
+
TikTokBusinessSDK: [],
|
|
5108
|
+
nSure: [],
|
|
5109
|
+
Statsig: [],
|
|
5110
|
+
TOCropViewController: [],
|
|
5111
|
+
RiveRuntime: ["MetalKit"],
|
|
5112
|
+
MetalKit: ["ModelIO"],
|
|
5113
|
+
DatadogInternal: [],
|
|
5114
|
+
// Kronos resolves hosts with CFHost, which iOS Foundation re-exports without an import
|
|
5115
|
+
DatadogCore: ["DatadogInternal", "CFNetwork"],
|
|
5116
|
+
DatadogLogs: ["DatadogCore"],
|
|
5117
|
+
DatadogRUM: ["DatadogCore"],
|
|
5118
|
+
DatadogTrace: ["DatadogCore"],
|
|
5119
|
+
DatadogCrashReporting: ["DatadogCore"],
|
|
5120
|
+
Amplitude: [],
|
|
5121
|
+
AppLovinSDK: [],
|
|
5122
|
+
AppsFlyerLib: [],
|
|
5123
|
+
FBSDKCoreKit: ["FBAEMKit", "FBSDKCoreKit_Basics"],
|
|
5124
|
+
FBAEMKit: ["FBSDKCoreKit_Basics"],
|
|
5125
|
+
FBSDKCoreKit_Basics: [],
|
|
5126
|
+
Intercom: [],
|
|
5127
|
+
FirebaseCore: [],
|
|
5128
|
+
FirebaseSharedSwift: ["FirebaseCore"],
|
|
5129
|
+
FirebaseRemoteConfig: ["FirebaseCore", "FirebaseSharedSwift"],
|
|
5130
|
+
FirebaseFirestoreInternal: ["FirebaseCore"],
|
|
5131
|
+
FirebaseAnalytics: ["FirebaseCore"],
|
|
5132
|
+
FirebaseAppCheck: ["FirebaseCore"],
|
|
5133
|
+
FirebaseAuth: ["FirebaseCore"],
|
|
5134
|
+
FirebaseCrashlytics: ["FirebaseCore"],
|
|
5135
|
+
FirebaseFirestore: ["FirebaseCore", "FirebaseSharedSwift", "FirebaseFirestoreInternal"],
|
|
5136
|
+
FirebaseStorage: ["FirebaseCore"],
|
|
5137
|
+
Firebase: [
|
|
5138
|
+
"FirebaseCore",
|
|
5139
|
+
"FirebaseAnalytics",
|
|
5140
|
+
"FirebaseAppCheck",
|
|
5141
|
+
"FirebaseAuth",
|
|
5142
|
+
"FirebaseCrashlytics",
|
|
5143
|
+
"FirebaseFirestore",
|
|
5144
|
+
"FirebaseRemoteConfig",
|
|
5145
|
+
"FirebaseStorage"
|
|
5146
|
+
],
|
|
5147
|
+
GoogleMobileAds: [],
|
|
5148
|
+
FBAudienceNetwork: [],
|
|
5149
|
+
ExpoModulesCore: []
|
|
5150
|
+
};
|
|
5151
|
+
OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
|
|
5152
|
+
FOUNDATION_IMPLICIT_MODULES = [
|
|
5153
|
+
"PeachObjC",
|
|
5154
|
+
"Dispatch",
|
|
5155
|
+
"FoundationNetworking",
|
|
5156
|
+
"PeachFoundationCombine",
|
|
5157
|
+
"Darwin"
|
|
5158
|
+
];
|
|
5159
|
+
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
5160
|
+
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
5161
|
+
).join("");
|
|
5162
|
+
compilerSourceDigest = true ? "4a6e02699924195639b15c5cdfd8852b5f17fb2ffacb8f9f964ef3daeee8b9dc" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
5163
|
+
C_WORDS = new Set(
|
|
5164
|
+
"auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
|
|
5165
|
+
" "
|
|
5166
|
+
)
|
|
5167
|
+
);
|
|
5168
|
+
CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
5169
|
+
"CFAllocator",
|
|
5170
|
+
"CFArray",
|
|
5171
|
+
"CFAttributedString",
|
|
5172
|
+
"CFBoolean",
|
|
5173
|
+
"CFData",
|
|
5174
|
+
"CFDate",
|
|
5175
|
+
"CFDictionary",
|
|
5176
|
+
"CFError",
|
|
5177
|
+
"CFMutableData",
|
|
5178
|
+
"CFNumber",
|
|
5179
|
+
"CFSet",
|
|
5180
|
+
"CFString",
|
|
5181
|
+
"CFURL"
|
|
5182
|
+
].map((name2) => `import class CoreFoundation.${name2}`).concat([
|
|
5183
|
+
"import typealias CoreFoundation.CFPropertyList",
|
|
5184
|
+
"import typealias CoreFoundation.CFTypeRef",
|
|
5185
|
+
"import CoreGraphics"
|
|
5186
|
+
]).join("; ");
|
|
5187
|
+
emptyMacroEnvironment = {
|
|
5188
|
+
defines: /* @__PURE__ */ new Map(),
|
|
5189
|
+
predefines: /* @__PURE__ */ new Map(),
|
|
5190
|
+
targetDefined: /* @__PURE__ */ new Set()
|
|
5191
|
+
};
|
|
5192
|
+
wasmMacroEnvironment = {
|
|
5193
|
+
...emptyMacroEnvironment,
|
|
5194
|
+
defines: /* @__PURE__ */ new Map([
|
|
5195
|
+
["__wasm__", "1"],
|
|
5196
|
+
["__wasm64__", "1"],
|
|
5197
|
+
["__wasi__", "1"]
|
|
5198
|
+
])
|
|
5199
|
+
};
|
|
5200
|
+
ROOT_LOCKS = Symbol.for("peachsim.swiftCompile.rootLocks");
|
|
5201
|
+
host = globalThis;
|
|
5202
|
+
rootLocks = host[ROOT_LOCKS] ??= /* @__PURE__ */ new Map();
|
|
5203
|
+
SHARED_ARTIFACT_BUDGET_BYTES = 4 * 1024 ** 3;
|
|
5204
|
+
}
|
|
5205
|
+
});
|
|
5206
|
+
|
|
5207
|
+
// cli/cli-release-origin.ts
|
|
5208
|
+
var init_cli_release_origin = __esm({
|
|
5209
|
+
"cli/cli-release-origin.ts"() {
|
|
5210
|
+
"use strict";
|
|
5211
|
+
}
|
|
5212
|
+
});
|
|
5213
|
+
|
|
5214
|
+
// cli/drivers/linux-browser-libs.ts
|
|
5215
|
+
var init_linux_browser_libs = __esm({
|
|
5216
|
+
"cli/drivers/linux-browser-libs.ts"() {
|
|
5396
5217
|
"use strict";
|
|
5218
|
+
init_src();
|
|
5219
|
+
init_home_paths();
|
|
5220
|
+
init_is_record();
|
|
5221
|
+
init_cli_release_origin();
|
|
5397
5222
|
}
|
|
5398
5223
|
});
|
|
5399
5224
|
|
|
5400
|
-
// src/
|
|
5401
|
-
|
|
5402
|
-
"
|
|
5225
|
+
// src/nitroAdapterContract.ts
|
|
5226
|
+
function text(family, value, what) {
|
|
5227
|
+
if (typeof value !== "string" || !value)
|
|
5228
|
+
throw new Error(`invalid ${ADAPTER_FAMILIES[family].label} ${what}`);
|
|
5229
|
+
return value;
|
|
5230
|
+
}
|
|
5231
|
+
function digestField(family, value, what) {
|
|
5232
|
+
if (!hex64(value)) throw new Error(`invalid ${ADAPTER_FAMILIES[family].label} ${what}`);
|
|
5233
|
+
return value;
|
|
5234
|
+
}
|
|
5235
|
+
function headerSet(family, value) {
|
|
5236
|
+
const keys = ADAPTER_FAMILIES[family].headers;
|
|
5237
|
+
if (!isRecord(value) || Object.keys(value).length !== keys.length)
|
|
5238
|
+
throw new Error(`invalid ${ADAPTER_FAMILIES[family].label} headers`);
|
|
5239
|
+
return Object.fromEntries(
|
|
5240
|
+
keys.map((key) => [key, digestField(family, value[key], `${key} header digest`)])
|
|
5241
|
+
);
|
|
5242
|
+
}
|
|
5243
|
+
function identity(family, value) {
|
|
5244
|
+
const invalid = () => new Error(`invalid ${ADAPTER_FAMILIES[family].label} manifest`);
|
|
5245
|
+
if (!isRecord(value) || value.schema !== 1) throw invalid();
|
|
5246
|
+
const { adapter, sdk, framework } = value;
|
|
5247
|
+
if (!isRecord(adapter) || !isRecord(sdk) || !isRecord(framework)) throw invalid();
|
|
5248
|
+
return {
|
|
5249
|
+
schema: 1,
|
|
5250
|
+
platform: text(family, value.platform, "platform"),
|
|
5251
|
+
target: text(family, value.target, "target"),
|
|
5252
|
+
recipe: digestField(family, value.recipe, "recipe"),
|
|
5253
|
+
adapter: { sha256: digestField(family, adapter.sha256, "adapter digest") },
|
|
5254
|
+
headers: headerSet(family, value.headers),
|
|
5255
|
+
compiler: text(family, value.compiler, "compiler"),
|
|
5256
|
+
sdk: {
|
|
5257
|
+
id: text(family, sdk.id, "sdk id"),
|
|
5258
|
+
checksum: digestField(family, sdk.checksum, "sdk checksum")
|
|
5259
|
+
},
|
|
5260
|
+
framework: {
|
|
5261
|
+
distribution: text(family, framework.distribution, "distribution"),
|
|
5262
|
+
wireAbi: digestField(family, framework.wireAbi, "wire abi")
|
|
5263
|
+
}
|
|
5264
|
+
};
|
|
5265
|
+
}
|
|
5266
|
+
function parseAdapterLock(family, value) {
|
|
5267
|
+
const label = ADAPTER_FAMILIES[family].label;
|
|
5268
|
+
if (!isRecord(value) || value.schema !== 2 || !Array.isArray(value.archives))
|
|
5269
|
+
throw new Error(`invalid ${label} lock`);
|
|
5270
|
+
const { headers: _headers, ...shared } = identity(family, {
|
|
5271
|
+
...value,
|
|
5272
|
+
schema: 1,
|
|
5273
|
+
headers: Object.fromEntries(
|
|
5274
|
+
ADAPTER_FAMILIES[family].headers.map((key) => [key, "0".repeat(64)])
|
|
5275
|
+
)
|
|
5276
|
+
});
|
|
5277
|
+
const archives = value.archives.map((entry) => {
|
|
5278
|
+
if (!isRecord(entry) || typeof entry.size !== "number")
|
|
5279
|
+
throw new Error(`invalid ${label} lock archive`);
|
|
5280
|
+
return {
|
|
5281
|
+
headers: headerSet(family, entry.headers),
|
|
5282
|
+
sha256: digestField(family, entry.sha256, "lock archive digest"),
|
|
5283
|
+
size: entry.size
|
|
5284
|
+
};
|
|
5285
|
+
});
|
|
5286
|
+
archives.forEach((entry, index) => {
|
|
5287
|
+
if (archives.findIndex((other) => sameHeaders(other.headers, entry.headers)) !== index)
|
|
5288
|
+
throw new Error(`${label} lock repeats a header set`);
|
|
5289
|
+
});
|
|
5290
|
+
return { ...shared, schema: 2, archives };
|
|
5291
|
+
}
|
|
5292
|
+
var ADAPTER_FAMILIES, hex64, sameHeaders;
|
|
5293
|
+
var init_nitroAdapterContract = __esm({
|
|
5294
|
+
"src/nitroAdapterContract.ts"() {
|
|
5403
5295
|
"use strict";
|
|
5404
|
-
|
|
5405
|
-
|
|
5296
|
+
init_is_record();
|
|
5297
|
+
ADAPTER_FAMILIES = {
|
|
5298
|
+
nitro: {
|
|
5299
|
+
label: "Nitro adapter",
|
|
5300
|
+
archive: "libPeachNitroAdapter.a",
|
|
5301
|
+
key: "nitro-adapter",
|
|
5302
|
+
headers: ["reactNativeJsi", "nitroModules"]
|
|
5303
|
+
},
|
|
5304
|
+
turbo: {
|
|
5305
|
+
label: "TurboModule runtime",
|
|
5306
|
+
archive: "libPeachTurboRuntime.a",
|
|
5307
|
+
key: "turbo-runtime",
|
|
5308
|
+
headers: ["reactNativeJsi"]
|
|
5309
|
+
}
|
|
5310
|
+
};
|
|
5311
|
+
hex64 = (value) => typeof value === "string" && /^[a-f0-9]{64}$/.test(value);
|
|
5312
|
+
sameHeaders = (a, b) => JSON.stringify(a) === JSON.stringify(b);
|
|
5406
5313
|
}
|
|
5407
5314
|
});
|
|
5408
5315
|
|
|
5409
|
-
// src/
|
|
5410
|
-
|
|
5411
|
-
"
|
|
5316
|
+
// src/swiftNativePinContract.ts
|
|
5317
|
+
function parseSwiftNativePin(value) {
|
|
5318
|
+
if (!isRecord(value)) throw new Error("invalid Swift native pin");
|
|
5319
|
+
if (value.schema !== SWIFT_NATIVE_PIN_SCHEMA)
|
|
5320
|
+
throw new Error(
|
|
5321
|
+
typeof value.schema === "number" && value.schema > SWIFT_NATIVE_PIN_SCHEMA ? "the active Peach runtime pins Swift for a newer peach CLI; update peach" : "the active Peach runtime pins Swift for an older peach CLI; run `peach runtime install`"
|
|
5322
|
+
);
|
|
5323
|
+
const { compiler, adapters } = value;
|
|
5324
|
+
if (!isRecord(compiler) || typeof compiler.identity !== "string" || compiler.archive !== "tar.gz" && compiler.archive !== "tar.zst" || !isRecord(compiler.hosts) || !isRecord(adapters))
|
|
5325
|
+
throw new Error("invalid Swift native pin");
|
|
5326
|
+
const hosts = {};
|
|
5327
|
+
for (const [host2, archive] of Object.entries(compiler.hosts)) {
|
|
5328
|
+
if (!isRecord(archive) || typeof archive.checksum !== "string" || !DIGEST.test(archive.checksum) || typeof archive.manifest !== "string" || !DIGEST.test(archive.manifest))
|
|
5329
|
+
throw new Error(`invalid Swift native pin compiler entry for ${host2}`);
|
|
5330
|
+
hosts[host2] = { checksum: archive.checksum, manifest: archive.manifest };
|
|
5331
|
+
}
|
|
5332
|
+
return {
|
|
5333
|
+
schema: SWIFT_NATIVE_PIN_SCHEMA,
|
|
5334
|
+
distribution: parseSwiftDistributionLock(value.distribution),
|
|
5335
|
+
compiler: { identity: compiler.identity, archive: compiler.archive, hosts },
|
|
5336
|
+
adapters: {
|
|
5337
|
+
nitro: parseAdapterLock("nitro", adapters.nitro),
|
|
5338
|
+
turbo: parseAdapterLock("turbo", adapters.turbo)
|
|
5339
|
+
}
|
|
5340
|
+
};
|
|
5341
|
+
}
|
|
5342
|
+
var SWIFT_NATIVE_PIN_SCHEMA, DIGEST;
|
|
5343
|
+
var init_swiftNativePinContract = __esm({
|
|
5344
|
+
"src/swiftNativePinContract.ts"() {
|
|
5412
5345
|
"use strict";
|
|
5346
|
+
init_is_record();
|
|
5347
|
+
init_nitroAdapterContract();
|
|
5348
|
+
init_swift_distribution_contract();
|
|
5349
|
+
SWIFT_NATIVE_PIN_SCHEMA = 3;
|
|
5350
|
+
DIGEST = /^[a-f0-9]{64}$/;
|
|
5413
5351
|
}
|
|
5414
5352
|
});
|
|
5415
5353
|
|
|
5416
|
-
// src/
|
|
5417
|
-
var
|
|
5418
|
-
"src/
|
|
5354
|
+
// src/swift-native-pin.ts
|
|
5355
|
+
var init_swift_native_pin = __esm({
|
|
5356
|
+
"src/swift-native-pin.ts"() {
|
|
5419
5357
|
"use strict";
|
|
5420
|
-
|
|
5358
|
+
init_answeredNativePackages();
|
|
5359
|
+
init_nitroAdapterContract();
|
|
5360
|
+
init_swift_distribution_contract();
|
|
5361
|
+
init_swift_toolchain();
|
|
5362
|
+
init_swiftNativePinContract();
|
|
5421
5363
|
}
|
|
5422
5364
|
});
|
|
5423
5365
|
|
|
5424
|
-
// src/swift-
|
|
5425
|
-
var
|
|
5426
|
-
"src/swift-
|
|
5366
|
+
// src/swift-distribution.ts
|
|
5367
|
+
var init_swift_distribution = __esm({
|
|
5368
|
+
"src/swift-distribution.ts"() {
|
|
5427
5369
|
"use strict";
|
|
5428
|
-
|
|
5429
|
-
|
|
5370
|
+
init_src();
|
|
5371
|
+
init_linux_browser_libs();
|
|
5372
|
+
init_home_paths();
|
|
5373
|
+
init_swift_compile();
|
|
5374
|
+
init_swift_distribution_contract();
|
|
5375
|
+
init_swift_native_pin();
|
|
5376
|
+
init_swift_toolchain();
|
|
5430
5377
|
}
|
|
5431
5378
|
});
|
|
5432
5379
|
|
|
5433
|
-
// src/
|
|
5434
|
-
var
|
|
5435
|
-
var
|
|
5436
|
-
"src/
|
|
5380
|
+
// src/pod-prepare-toolchain.ts
|
|
5381
|
+
var XCRUN, CLANG;
|
|
5382
|
+
var init_pod_prepare_toolchain = __esm({
|
|
5383
|
+
"src/pod-prepare-toolchain.ts"() {
|
|
5437
5384
|
"use strict";
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5385
|
+
init_home_paths();
|
|
5386
|
+
init_swift_compile();
|
|
5387
|
+
init_swift_distribution();
|
|
5388
|
+
init_swift_objc_standin();
|
|
5389
|
+
init_swift_toolchain();
|
|
5390
|
+
XCRUN = `#!/bin/bash
|
|
5391
|
+
set -eu
|
|
5392
|
+
sdk=macosx
|
|
5393
|
+
find_tool=false
|
|
5394
|
+
while (( $# )); do
|
|
5395
|
+
case "$1" in
|
|
5396
|
+
-sdk|--sdk) sdk="$2"; shift 2 ;;
|
|
5397
|
+
-find|--find|-f) find_tool=true; shift ;;
|
|
5398
|
+
*) break ;;
|
|
5399
|
+
esac
|
|
5400
|
+
done
|
|
5401
|
+
case "$sdk" in
|
|
5402
|
+
iphoneos|iphonesimulator|appletvos|appletvsimulator|macosx) ;;
|
|
5403
|
+
*) echo "xcrun: unsupported SDK $sdk" >&2; exit 1 ;;
|
|
5404
|
+
esac
|
|
5405
|
+
case "$1" in
|
|
5406
|
+
--show-sdk-path) printf '%s\\n' "$PEACH_POD_SYSROOT"; exit ;;
|
|
5407
|
+
--show-sdk-version) printf '%s\\n' '${NATIVE_GRAPH_SDK_VERSION}'; exit ;;
|
|
5408
|
+
cc|clang) tool="\${0%/*}/$sdk/clang" ;;
|
|
5409
|
+
c++|clang++) tool="\${0%/*}/$sdk/clang++" ;;
|
|
5410
|
+
ld) tool="$PEACH_POD_COMPILER/ld64.lld" ;;
|
|
5411
|
+
*) echo "xcrun: unsupported tool $1" >&2; exit 1 ;;
|
|
5412
|
+
esac
|
|
5413
|
+
shift
|
|
5414
|
+
if $find_tool; then printf '%s\\n' "$tool"; else exec "$tool" "$@"; fi
|
|
5415
|
+
`;
|
|
5416
|
+
CLANG = `#!/bin/bash
|
|
5417
|
+
set -eu
|
|
5418
|
+
directory="\${0%/*}"
|
|
5419
|
+
compiler="$PEACH_POD_COMPILER/\${0##*/}"
|
|
5420
|
+
if [[ "$directory" == "$PEACH_POD_TOOLS" ]]; then
|
|
5421
|
+
for argument; do
|
|
5422
|
+
if [[ "$argument" == -dynamiclib ]]; then
|
|
5423
|
+
exec "$directory/macosx/\${0##*/}" "$@"
|
|
5424
|
+
fi
|
|
5425
|
+
done
|
|
5426
|
+
exec "$compiler" "$@"
|
|
5427
|
+
fi
|
|
5428
|
+
if [[ "$directory" == */macosx ]]; then
|
|
5429
|
+
exec "$compiler" --target=arm64-apple-macos11 -fuse-ld=lld -nostdlib \\
|
|
5430
|
+
-Xclang -triple -Xclang arm64-apple-darwin "$@"
|
|
5431
|
+
fi
|
|
5432
|
+
args=()
|
|
5433
|
+
while (( $# )); do
|
|
5434
|
+
case "$1" in
|
|
5435
|
+
-arch|-isysroot) shift 2 ;;
|
|
5436
|
+
*) args+=("$1"); shift ;;
|
|
5437
|
+
esac
|
|
5438
|
+
done
|
|
5439
|
+
exec "$compiler" --target=wasm64-unknown-wasip1 --sysroot="$PEACH_POD_SYSROOT" \\
|
|
5440
|
+
-resource-dir "$PEACH_POD_RESOURCES/clang" ${WASI_EMULATION_FLAGS.join(" ")} "\${args[@]}"
|
|
5441
|
+
`;
|
|
5442
5442
|
}
|
|
5443
5443
|
});
|
|
5444
5444
|
|
|
5445
|
-
// src/
|
|
5446
|
-
var
|
|
5447
|
-
|
|
5445
|
+
// src/pod-sources.ts
|
|
5446
|
+
var COCOAPODS_VERSION, USER_AGENT, HEADER_EXTENSIONS, SOURCE_EXTENSIONS, SOURCE_FILES_PATTERN;
|
|
5447
|
+
var init_pod_sources = __esm({
|
|
5448
|
+
"src/pod-sources.ts"() {
|
|
5448
5449
|
"use strict";
|
|
5449
|
-
|
|
5450
|
+
init_home_paths();
|
|
5451
|
+
init_pod_prepare_toolchain();
|
|
5452
|
+
COCOAPODS_VERSION = "1.17.0";
|
|
5453
|
+
USER_AGENT = `'CocoaPods/${COCOAPODS_VERSION} cocoapods-downloader/2.1'`;
|
|
5454
|
+
HEADER_EXTENSIONS = [
|
|
5455
|
+
".h",
|
|
5456
|
+
".hh",
|
|
5457
|
+
".hpp",
|
|
5458
|
+
".ipp",
|
|
5459
|
+
".tpp",
|
|
5460
|
+
".hxx",
|
|
5461
|
+
".def",
|
|
5462
|
+
".inl",
|
|
5463
|
+
".inc"
|
|
5464
|
+
];
|
|
5465
|
+
SOURCE_EXTENSIONS = [
|
|
5466
|
+
".m",
|
|
5467
|
+
".mm",
|
|
5468
|
+
".i",
|
|
5469
|
+
".c",
|
|
5470
|
+
".cc",
|
|
5471
|
+
".cxx",
|
|
5472
|
+
".cpp",
|
|
5473
|
+
".c++",
|
|
5474
|
+
".swift",
|
|
5475
|
+
...HEADER_EXTENSIONS
|
|
5476
|
+
];
|
|
5477
|
+
SOURCE_FILES_PATTERN = `*{${SOURCE_EXTENSIONS.join(",")}}`;
|
|
5450
5478
|
}
|
|
5451
5479
|
});
|
|
5452
5480
|
|
|
5453
|
-
// src/
|
|
5454
|
-
var
|
|
5455
|
-
|
|
5456
|
-
"src/swift-runtime-products.ts"() {
|
|
5481
|
+
// src/cocoapods-trunk.ts
|
|
5482
|
+
var init_cocoapods_trunk = __esm({
|
|
5483
|
+
"src/cocoapods-trunk.ts"() {
|
|
5457
5484
|
"use strict";
|
|
5458
|
-
|
|
5459
|
-
init_is_record();
|
|
5460
|
-
packageSchema = v3.object({
|
|
5461
|
-
name: v3.string(),
|
|
5462
|
-
products: v3.array(
|
|
5463
|
-
v3.object({
|
|
5464
|
-
name: v3.string(),
|
|
5465
|
-
targets: v3.array(v3.string()),
|
|
5466
|
-
type: v3.unknown()
|
|
5467
|
-
})
|
|
5468
|
-
),
|
|
5469
|
-
targets: v3.array(
|
|
5470
|
-
v3.object({
|
|
5471
|
-
name: v3.string(),
|
|
5472
|
-
type: v3.string(),
|
|
5473
|
-
path: v3.optional(v3.string()),
|
|
5474
|
-
dependencies: v3.array(v3.unknown())
|
|
5475
|
-
})
|
|
5476
|
-
)
|
|
5477
|
-
});
|
|
5485
|
+
init_home_paths();
|
|
5478
5486
|
}
|
|
5479
5487
|
});
|
|
5480
5488
|
|
|
5481
|
-
// src/
|
|
5482
|
-
var
|
|
5483
|
-
var
|
|
5484
|
-
"src/
|
|
5489
|
+
// src/plist.ts
|
|
5490
|
+
var import_plist;
|
|
5491
|
+
var init_plist = __esm({
|
|
5492
|
+
"src/plist.ts"() {
|
|
5485
5493
|
"use strict";
|
|
5486
|
-
|
|
5487
|
-
init_swift_guest_source_plan();
|
|
5488
|
-
init_swift_runtime_products();
|
|
5489
|
-
init_swift_shared_sdk();
|
|
5490
|
-
init_swift_wasm_prune();
|
|
5491
|
-
init_swiftRuntimeProductContract();
|
|
5494
|
+
import_plist = __toESM(require("plist"), 1);
|
|
5492
5495
|
}
|
|
5493
5496
|
});
|
|
5494
5497
|
|
|
5495
|
-
// src/
|
|
5496
|
-
var
|
|
5497
|
-
|
|
5498
|
+
// src/plist-bytes.ts
|
|
5499
|
+
var import_bplist_parser;
|
|
5500
|
+
var init_plist_bytes = __esm({
|
|
5501
|
+
"src/plist-bytes.ts"() {
|
|
5498
5502
|
"use strict";
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
init_swift_guest_link_plan();
|
|
5502
|
-
init_swift_guest_manifest();
|
|
5503
|
-
init_swift_guest_projection_storage();
|
|
5504
|
-
init_swift_guest_runtime_plan();
|
|
5505
|
-
init_swift_runtime_products();
|
|
5506
|
-
init_swift_wasm_prune();
|
|
5503
|
+
import_bplist_parser = __toESM(require("bplist-parser"), 1);
|
|
5504
|
+
init_plist();
|
|
5507
5505
|
}
|
|
5508
5506
|
});
|
|
5509
5507
|
|
|
5510
|
-
// src/
|
|
5511
|
-
var
|
|
5512
|
-
|
|
5508
|
+
// src/bazel-project.ts
|
|
5509
|
+
var import_node_path15, import_plist3, PRODUCTS;
|
|
5510
|
+
var init_bazel_project = __esm({
|
|
5511
|
+
"src/bazel-project.ts"() {
|
|
5513
5512
|
"use strict";
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5513
|
+
import_node_path15 = __toESM(require("node:path"), 1);
|
|
5514
|
+
import_plist3 = __toESM(require("plist"), 1);
|
|
5515
|
+
init_is_record();
|
|
5516
|
+
PRODUCTS = import_node_path15.default.join(".build", "peach-bazel", "Products");
|
|
5517
5517
|
}
|
|
5518
5518
|
});
|
|
5519
5519
|
|
|
5520
|
-
// src/
|
|
5521
|
-
var
|
|
5522
|
-
var
|
|
5523
|
-
"src/
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
"
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
"
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
"
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5520
|
+
// src/ios-sdk-frameworks.json
|
|
5521
|
+
var ios_sdk_frameworks_default;
|
|
5522
|
+
var init_ios_sdk_frameworks = __esm({
|
|
5523
|
+
"src/ios-sdk-frameworks.json"() {
|
|
5524
|
+
ios_sdk_frameworks_default = {
|
|
5525
|
+
sdk: "iphonesimulator27.1",
|
|
5526
|
+
frameworks: [
|
|
5527
|
+
"ARKit",
|
|
5528
|
+
"AVFAudio",
|
|
5529
|
+
"AVFoundation",
|
|
5530
|
+
"AVKit",
|
|
5531
|
+
"AVRouting",
|
|
5532
|
+
"Accelerate",
|
|
5533
|
+
"Accessibility",
|
|
5534
|
+
"AccessoryLiveActivities",
|
|
5535
|
+
"AccessoryNotifications",
|
|
5536
|
+
"AccessorySetupKit",
|
|
5537
|
+
"AccessoryTransportExtension",
|
|
5538
|
+
"Accounts",
|
|
5539
|
+
"ActivityKit",
|
|
5540
|
+
"AdAttributionKit",
|
|
5541
|
+
"AdServices",
|
|
5542
|
+
"AdSupport",
|
|
5543
|
+
"AddressBook",
|
|
5544
|
+
"AddressBookUI",
|
|
5545
|
+
"AlarmKit",
|
|
5546
|
+
"AppClip",
|
|
5547
|
+
"AppIntents",
|
|
5548
|
+
"AppIntentsTypeSupport",
|
|
5549
|
+
"AppMigrationKit",
|
|
5550
|
+
"AppTrackingTransparency",
|
|
5551
|
+
"AssetsLibrary",
|
|
5552
|
+
"AudioToolbox",
|
|
5553
|
+
"AudioUnit",
|
|
5554
|
+
"AuthenticationServices",
|
|
5555
|
+
"AutomatedDeviceEnrollment",
|
|
5556
|
+
"AutomaticAssessmentConfiguration",
|
|
5557
|
+
"BackgroundAssets",
|
|
5558
|
+
"BackgroundTasks",
|
|
5559
|
+
"BrowserEngineCore",
|
|
5560
|
+
"BrowserEngineKit",
|
|
5561
|
+
"BrowserKit",
|
|
5562
|
+
"BusinessChat",
|
|
5563
|
+
"CFNetwork",
|
|
5564
|
+
"CallKit",
|
|
5565
|
+
"CarKey",
|
|
5566
|
+
"CarPlay",
|
|
5567
|
+
"Charts",
|
|
5568
|
+
"ClassKit",
|
|
5569
|
+
"ClassKitUI",
|
|
5570
|
+
"ClockKit",
|
|
5571
|
+
"CloudKit",
|
|
5572
|
+
"ColorSync",
|
|
5573
|
+
"Combine",
|
|
5574
|
+
"ComputeGraph",
|
|
5575
|
+
"ContactProvider",
|
|
5576
|
+
"Contacts",
|
|
5577
|
+
"ContactsUI",
|
|
5578
|
+
"CoreAudio",
|
|
5579
|
+
"CoreAudioKit",
|
|
5580
|
+
"CoreAudioTypes",
|
|
5581
|
+
"CoreBluetooth",
|
|
5582
|
+
"CoreData",
|
|
5583
|
+
"CoreFoundation",
|
|
5584
|
+
"CoreGraphics",
|
|
5585
|
+
"CoreHaptics",
|
|
5586
|
+
"CoreImage",
|
|
5587
|
+
"CoreLocation",
|
|
5588
|
+
"CoreLocationUI",
|
|
5589
|
+
"CoreMIDI",
|
|
5590
|
+
"CoreML",
|
|
5591
|
+
"CoreMedia",
|
|
5592
|
+
"CoreMotion",
|
|
5593
|
+
"CoreNFC",
|
|
5594
|
+
"CoreServices",
|
|
5595
|
+
"CoreSpotlight",
|
|
5596
|
+
"CoreTelephony",
|
|
5597
|
+
"CoreText",
|
|
5598
|
+
"CoreTransferable",
|
|
5599
|
+
"CoreVideo",
|
|
5600
|
+
"CreateMLComponents",
|
|
5601
|
+
"CryptoKit",
|
|
5602
|
+
"CryptoTokenKit",
|
|
5603
|
+
"DataDetection",
|
|
5604
|
+
"DeclaredAgeRange",
|
|
5605
|
+
"DeveloperToolsSupport",
|
|
5606
|
+
"DeviceActivity",
|
|
5607
|
+
"DeviceCheck",
|
|
5608
|
+
"DeviceDiscoveryExtension",
|
|
5609
|
+
"DeviceDiscoveryUI",
|
|
5610
|
+
"EnergyKit",
|
|
5611
|
+
"EventKit",
|
|
5612
|
+
"EventKitUI",
|
|
5613
|
+
"ExposureNotification",
|
|
5614
|
+
"ExtensionFoundation",
|
|
5615
|
+
"ExtensionKit",
|
|
5616
|
+
"ExternalAccessory",
|
|
5617
|
+
"FamilyControls",
|
|
5618
|
+
"FileProvider",
|
|
5619
|
+
"FileProviderUI",
|
|
5620
|
+
"FinanceKit",
|
|
5621
|
+
"FinanceKitUI",
|
|
5622
|
+
"Foundation",
|
|
5623
|
+
"FoundationModels",
|
|
5624
|
+
"GLKit",
|
|
5625
|
+
"GSS",
|
|
5626
|
+
"GameController",
|
|
5627
|
+
"GameKit",
|
|
5628
|
+
"GameSave",
|
|
5629
|
+
"GameplayKit",
|
|
5630
|
+
"GeoToolbox",
|
|
5631
|
+
"GroupActivities",
|
|
5632
|
+
"HealthKit",
|
|
5633
|
+
"HealthKitUI",
|
|
5634
|
+
"HomeKit",
|
|
5635
|
+
"IOKit",
|
|
5636
|
+
"IOSurface",
|
|
5637
|
+
"IdentityDocumentServices",
|
|
5638
|
+
"IdentityDocumentServicesUI",
|
|
5639
|
+
"IdentityLookup",
|
|
5640
|
+
"IdentityLookupUI",
|
|
5641
|
+
"ImageCaptureCore",
|
|
5642
|
+
"ImageIO",
|
|
5643
|
+
"ImagePlayground",
|
|
5644
|
+
"ImmersiveMediaSupport",
|
|
5645
|
+
"Intents",
|
|
5646
|
+
"IntentsUI",
|
|
5647
|
+
"JavaScriptCore",
|
|
5648
|
+
"LinkPresentation",
|
|
5649
|
+
"LinkSecurity",
|
|
5650
|
+
"LiveCommunicationKit",
|
|
5651
|
+
"LocalAuthentication",
|
|
5652
|
+
"LocalAuthenticationEmbeddedUI",
|
|
5653
|
+
"LockedCameraCapture",
|
|
5654
|
+
"ManagedApp",
|
|
5655
|
+
"ManagedAppDistribution",
|
|
5656
|
+
"ManagedSettings",
|
|
5657
|
+
"ManagedSettingsUI",
|
|
5658
|
+
"MapKit",
|
|
5659
|
+
"MarketplaceKit",
|
|
5660
|
+
"Matter",
|
|
5661
|
+
"MatterSupport",
|
|
5662
|
+
"MediaAccessibility",
|
|
5663
|
+
"MediaIntelligence",
|
|
5664
|
+
"MediaIntents",
|
|
5665
|
+
"MediaPlayer",
|
|
5666
|
+
"MediaToolbox",
|
|
5667
|
+
"MessageUI",
|
|
5668
|
+
"Messages",
|
|
5669
|
+
"Metal",
|
|
5670
|
+
"MetalKit",
|
|
5671
|
+
"MetalPerformancePrimitives",
|
|
5672
|
+
"MetalPerformanceShaders",
|
|
5673
|
+
"MetalPerformanceShadersGraph",
|
|
5674
|
+
"MetricKit",
|
|
5675
|
+
"MobileCoreServices",
|
|
5676
|
+
"ModelIO",
|
|
5677
|
+
"MultipeerConnectivity",
|
|
5678
|
+
"MusicKit",
|
|
5679
|
+
"MusicUnderstanding",
|
|
5680
|
+
"NaturalLanguage",
|
|
5681
|
+
"NearbyInteraction",
|
|
5682
|
+
"Network",
|
|
5683
|
+
"NetworkExtension",
|
|
5684
|
+
"NotificationCenter",
|
|
5685
|
+
"NowPlaying",
|
|
5686
|
+
"OSLog",
|
|
5687
|
+
"OpenAL",
|
|
5688
|
+
"OpenGLES",
|
|
5689
|
+
"PDFKit",
|
|
5690
|
+
"PHASE",
|
|
5691
|
+
"PaperKit",
|
|
5692
|
+
"PassKit",
|
|
5693
|
+
"PencilKit",
|
|
5694
|
+
"PermissionKit",
|
|
5695
|
+
"Photos",
|
|
5696
|
+
"PhotosUI",
|
|
5697
|
+
"ProximityReader",
|
|
5698
|
+
"PushKit",
|
|
5699
|
+
"PushToTalk",
|
|
5700
|
+
"QuartzCore",
|
|
5701
|
+
"QuickLook",
|
|
5702
|
+
"QuickLookThumbnailing",
|
|
5703
|
+
"RealityFoundation",
|
|
5704
|
+
"RealityKit",
|
|
5705
|
+
"RelevanceKit",
|
|
5706
|
+
"ReplayKit",
|
|
5707
|
+
"RoomPlan",
|
|
5708
|
+
"SafariServices",
|
|
5709
|
+
"SafetyKit",
|
|
5710
|
+
"SceneKit",
|
|
5711
|
+
"ScreenTime",
|
|
5712
|
+
"SecureElementCredential",
|
|
5713
|
+
"Security",
|
|
5714
|
+
"SecurityUI",
|
|
5715
|
+
"SensitiveContentAnalysis",
|
|
5716
|
+
"SensorKit",
|
|
5717
|
+
"ServicesAccountLinking",
|
|
5718
|
+
"SharedWithYou",
|
|
5719
|
+
"SharedWithYouCore",
|
|
5720
|
+
"ShazamKit",
|
|
5721
|
+
"Social",
|
|
5722
|
+
"SoundAnalysis",
|
|
5723
|
+
"Speech",
|
|
5724
|
+
"SpriteKit",
|
|
5725
|
+
"StateReporting",
|
|
5726
|
+
"StoreKit",
|
|
5727
|
+
"SuggestedActions",
|
|
5728
|
+
"SwiftData",
|
|
5729
|
+
"SwiftUI",
|
|
5730
|
+
"SwiftUICore",
|
|
5731
|
+
"Symbols",
|
|
5732
|
+
"SystemConfiguration",
|
|
5733
|
+
"SystemExtensions",
|
|
5734
|
+
"TabularData",
|
|
5735
|
+
"TelephonyMessagingKit",
|
|
5736
|
+
"TipKit",
|
|
5737
|
+
"TouchController",
|
|
5738
|
+
"Translation",
|
|
5739
|
+
"TranslationUIProvider",
|
|
5740
|
+
"TrustInsights",
|
|
5741
|
+
"Twitter",
|
|
5742
|
+
"UIKit",
|
|
5743
|
+
"USDKit",
|
|
5744
|
+
"UniformTypeIdentifiers",
|
|
5745
|
+
"UserNotifications",
|
|
5746
|
+
"UserNotificationsUI",
|
|
5747
|
+
"VideoSubscriberAccount",
|
|
5748
|
+
"VideoToolbox",
|
|
5749
|
+
"Vision",
|
|
5750
|
+
"VisionKit",
|
|
5751
|
+
"WatchConnectivity",
|
|
5752
|
+
"WeatherKit",
|
|
5753
|
+
"WebKit",
|
|
5754
|
+
"WiFiAware",
|
|
5755
|
+
"WidgetKit",
|
|
5756
|
+
"WorkoutKit",
|
|
5757
|
+
"_AVKit_SwiftUI",
|
|
5758
|
+
"_AdAttributionKit_StoreKit",
|
|
5759
|
+
"_AppIntents_HealthKit",
|
|
5760
|
+
"_AppIntents_SwiftUI",
|
|
5761
|
+
"_AppIntents_UIKit",
|
|
5762
|
+
"_AuthenticationServices_SwiftUI",
|
|
5763
|
+
"_Contacts_AppIntents",
|
|
5764
|
+
"_CoreData_CloudKit",
|
|
5765
|
+
"_CoreLocationUI_SwiftUI",
|
|
5766
|
+
"_CoreNFC_UIKit",
|
|
5767
|
+
"_CoreSpotlight_FoundationModels",
|
|
5768
|
+
"_DataDetection_SwiftUI",
|
|
5769
|
+
"_DeviceActivity_SwiftUI",
|
|
5770
|
+
"_DeviceDiscoveryUI_SwiftUI",
|
|
5771
|
+
"_FinanceKit_AppIntents",
|
|
5772
|
+
"_FoundationModels_SwiftUI",
|
|
5773
|
+
"_FoundationModels_UIKit",
|
|
5774
|
+
"_GameController_SwiftUI",
|
|
5775
|
+
"_GeoToolbox_AppIntents",
|
|
5776
|
+
"_GroupActivities_UIKit",
|
|
5777
|
+
"_HomeKit_SwiftUI",
|
|
5778
|
+
"_Intents_TipKit",
|
|
5779
|
+
"_LinkPresentation_AppIntents",
|
|
5780
|
+
"_LocationEssentials",
|
|
5781
|
+
"_MapKit_SwiftUI",
|
|
5782
|
+
"_MarketplaceKit_UIKit",
|
|
5783
|
+
"_MediaIntents_AppIntents",
|
|
5784
|
+
"_MediaPlayer_AppIntents",
|
|
5785
|
+
"_MusicKit_SwiftUI",
|
|
5786
|
+
"_NowPlaying_AppIntents",
|
|
5787
|
+
"_PassKit_SwiftUI",
|
|
5788
|
+
"_PermissionKit_SwiftUI",
|
|
5789
|
+
"_PermissionKit_UIKit",
|
|
5790
|
+
"_PhotosUI_SwiftUI",
|
|
5791
|
+
"_PhotosUI_WidgetKit",
|
|
5792
|
+
"_Photos_AppIntents",
|
|
5793
|
+
"_QuickLook_SwiftUI",
|
|
5794
|
+
"_RealityKit_ComputeGraph",
|
|
5795
|
+
"_RealityKit_SwiftUI",
|
|
5796
|
+
"_RelevanceKit_MapKit",
|
|
5797
|
+
"_SceneKit_SwiftUI",
|
|
5798
|
+
"_SecureElementCredential_SwiftUI",
|
|
5799
|
+
"_SecureElementCredential_UIKit",
|
|
5800
|
+
"_SharedWithYou_AppIntents",
|
|
5801
|
+
"_SpriteKit_SwiftUI",
|
|
5802
|
+
"_StoreKit_SwiftUI",
|
|
5803
|
+
"_SwiftData_CoreData",
|
|
5804
|
+
"_SwiftData_SwiftUI",
|
|
5805
|
+
"_Translation_SwiftUI",
|
|
5806
|
+
"_USDKit_RealityKit",
|
|
5807
|
+
"_UserNotifications_AppIntents",
|
|
5808
|
+
"_WebKit_SwiftUI",
|
|
5809
|
+
"_WorkoutKit_SwiftUI",
|
|
5810
|
+
"iAd"
|
|
5811
|
+
]
|
|
5544
5812
|
};
|
|
5545
5813
|
}
|
|
5546
5814
|
});
|
|
5547
5815
|
|
|
5548
|
-
// src/
|
|
5549
|
-
var
|
|
5550
|
-
"src/
|
|
5816
|
+
// src/android-string-value.ts
|
|
5817
|
+
var init_android_string_value = __esm({
|
|
5818
|
+
"src/android-string-value.ts"() {
|
|
5551
5819
|
"use strict";
|
|
5552
5820
|
}
|
|
5553
5821
|
});
|
|
5554
5822
|
|
|
5555
|
-
// src/
|
|
5556
|
-
var
|
|
5557
|
-
|
|
5558
|
-
"src/wasm-optimize.ts"() {
|
|
5823
|
+
// src/android-xml.ts
|
|
5824
|
+
var init_android_xml = __esm({
|
|
5825
|
+
"src/android-xml.ts"() {
|
|
5559
5826
|
"use strict";
|
|
5560
|
-
import_node_child_process7 = require("node:child_process");
|
|
5561
|
-
import_node_util3 = require("node:util");
|
|
5562
|
-
init_src();
|
|
5563
|
-
init_admitted_mac_build();
|
|
5564
|
-
init_binaryen_lock();
|
|
5565
|
-
init_home_paths();
|
|
5566
|
-
init_wasm_narrow_boundary();
|
|
5567
|
-
FEATURES = [
|
|
5568
|
-
"memory64",
|
|
5569
|
-
"threads",
|
|
5570
|
-
"bulk-memory",
|
|
5571
|
-
"bulk-memory-opt",
|
|
5572
|
-
"call-indirect-overlong",
|
|
5573
|
-
"exception-handling",
|
|
5574
|
-
"multivalue",
|
|
5575
|
-
"mutable-globals",
|
|
5576
|
-
"nontrapping-float-to-int",
|
|
5577
|
-
"reference-types",
|
|
5578
|
-
"sign-ext"
|
|
5579
|
-
];
|
|
5580
|
-
KEEP_WASM_NAMES = process.env.PEACH_SWIFT_NAMES === "1";
|
|
5581
|
-
LOWERING = ["--memory64-lowering", "--table64-lowering"];
|
|
5582
|
-
BINARYEN_VERSION = binaryen_lock_default.version;
|
|
5583
|
-
runBinaryen = (0, import_node_util3.promisify)(import_node_child_process7.execFile);
|
|
5584
|
-
WASM_LOWER_IDENTITY = `binaryen ${BINARYEN_VERSION} narrow ${LOWERING.join(" ")} ${FEATURES.join(",")} unoptimized-names`;
|
|
5585
|
-
BINARYEN_RELEASES = new Map(Object.entries(binaryen_lock_default.platforms));
|
|
5586
5827
|
}
|
|
5587
5828
|
});
|
|
5588
5829
|
|
|
5589
|
-
// src/
|
|
5590
|
-
var
|
|
5591
|
-
"src/
|
|
5830
|
+
// src/android-app-identity.ts
|
|
5831
|
+
var init_android_app_identity = __esm({
|
|
5832
|
+
"src/android-app-identity.ts"() {
|
|
5592
5833
|
"use strict";
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
init_swift_guest_projection_storage();
|
|
5596
|
-
init_swift_guest_runtime_plan();
|
|
5597
|
-
init_swift_guest_source_inputs();
|
|
5598
|
-
init_swift_guest_source_plan();
|
|
5599
|
-
init_swift_runtime_products();
|
|
5600
|
-
init_wasm_optimize();
|
|
5834
|
+
init_android_string_value();
|
|
5835
|
+
init_android_xml();
|
|
5601
5836
|
}
|
|
5602
5837
|
});
|
|
5603
5838
|
|
|
5604
|
-
// src/
|
|
5605
|
-
var
|
|
5606
|
-
"src/
|
|
5839
|
+
// src/nativeAppIconContract.ts
|
|
5840
|
+
var init_nativeAppIconContract = __esm({
|
|
5841
|
+
"src/nativeAppIconContract.ts"() {
|
|
5607
5842
|
"use strict";
|
|
5608
|
-
|
|
5843
|
+
init_assetCatalogContract();
|
|
5609
5844
|
init_is_record();
|
|
5610
|
-
init_write_build_file();
|
|
5611
|
-
}
|
|
5612
|
-
});
|
|
5613
|
-
|
|
5614
|
-
// src/swift-header-dependencies.ts
|
|
5615
|
-
var init_swift_header_dependencies = __esm({
|
|
5616
|
-
"src/swift-header-dependencies.ts"() {
|
|
5617
|
-
"use strict";
|
|
5618
|
-
init_swift_package();
|
|
5619
|
-
init_swiftContract();
|
|
5620
|
-
}
|
|
5621
|
-
});
|
|
5622
|
-
|
|
5623
|
-
// ../peach-kit/src/wasm-memory.ts
|
|
5624
|
-
var init_wasm_memory = __esm({
|
|
5625
|
-
"../peach-kit/src/wasm-memory.ts"() {
|
|
5626
|
-
"use strict";
|
|
5627
|
-
}
|
|
5628
|
-
});
|
|
5629
|
-
|
|
5630
|
-
// ../sootsim-swift/src/icuData.ts
|
|
5631
|
-
var PACK_BYTES, VERSION, SWIFT_ICU_PACKED;
|
|
5632
|
-
var init_icuData = __esm({
|
|
5633
|
-
"../sootsim-swift/src/icuData.ts"() {
|
|
5634
|
-
"use strict";
|
|
5635
|
-
init_wasm_memory();
|
|
5636
|
-
PACK_BYTES = 64 * 1024;
|
|
5637
|
-
VERSION = 1;
|
|
5638
|
-
SWIFT_ICU_PACKED = `picu${VERSION}`;
|
|
5639
|
-
}
|
|
5640
|
-
});
|
|
5641
|
-
|
|
5642
|
-
// src/swift-icu.ts
|
|
5643
|
-
var import_node_child_process8, import_node_util4, import_node_zlib2, run3, deflate, compressBrotli, inflateGzip;
|
|
5644
|
-
var init_swift_icu = __esm({
|
|
5645
|
-
"src/swift-icu.ts"() {
|
|
5646
|
-
"use strict";
|
|
5647
|
-
import_node_child_process8 = require("node:child_process");
|
|
5648
|
-
import_node_util4 = require("node:util");
|
|
5649
|
-
import_node_zlib2 = require("node:zlib");
|
|
5650
|
-
init_icuData();
|
|
5651
|
-
init_swift_toolchain();
|
|
5652
|
-
run3 = (0, import_node_util4.promisify)(import_node_child_process8.execFile);
|
|
5653
|
-
deflate = (0, import_node_util4.promisify)(import_node_zlib2.gzip);
|
|
5654
|
-
compressBrotli = (0, import_node_util4.promisify)(import_node_zlib2.brotliCompress);
|
|
5655
|
-
inflateGzip = (0, import_node_util4.promisify)(import_node_zlib2.gunzip);
|
|
5656
|
-
}
|
|
5657
|
-
});
|
|
5658
|
-
|
|
5659
|
-
// src/swift-link-roots.ts
|
|
5660
|
-
var init_swift_link_roots = __esm({
|
|
5661
|
-
"src/swift-link-roots.ts"() {
|
|
5662
|
-
"use strict";
|
|
5663
|
-
}
|
|
5664
|
-
});
|
|
5665
|
-
|
|
5666
|
-
// src/swift-objc-import.ts
|
|
5667
|
-
var init_swift_objc_import = __esm({
|
|
5668
|
-
"src/swift-objc-import.ts"() {
|
|
5669
|
-
"use strict";
|
|
5670
|
-
}
|
|
5671
|
-
});
|
|
5672
|
-
|
|
5673
|
-
// src/swift-project-user.ts
|
|
5674
|
-
var init_swift_project_user = __esm({
|
|
5675
|
-
"src/swift-project-user.ts"() {
|
|
5676
|
-
"use strict";
|
|
5677
|
-
}
|
|
5678
|
-
});
|
|
5679
|
-
|
|
5680
|
-
// src/swift-reproducible.ts
|
|
5681
|
-
var init_swift_reproducible = __esm({
|
|
5682
|
-
"src/swift-reproducible.ts"() {
|
|
5683
|
-
"use strict";
|
|
5684
|
-
}
|
|
5685
|
-
});
|
|
5686
|
-
|
|
5687
|
-
// src/swift-root-lock.ts
|
|
5688
|
-
var init_swift_root_lock = __esm({
|
|
5689
|
-
"src/swift-root-lock.ts"() {
|
|
5690
|
-
"use strict";
|
|
5691
|
-
init_process_group();
|
|
5692
|
-
init_process_table();
|
|
5693
|
-
}
|
|
5694
|
-
});
|
|
5695
|
-
|
|
5696
|
-
// src/swift-uniform-type-constants.ts
|
|
5697
|
-
var init_swift_uniform_type_constants = __esm({
|
|
5698
|
-
"src/swift-uniform-type-constants.ts"() {
|
|
5699
|
-
"use strict";
|
|
5700
|
-
init_swift_objc_runtime();
|
|
5701
|
-
init_swift_objc_standin();
|
|
5702
|
-
}
|
|
5703
|
-
});
|
|
5704
|
-
|
|
5705
|
-
// src/xcode-header-search.ts
|
|
5706
|
-
var init_xcode_header_search = __esm({
|
|
5707
|
-
"src/xcode-header-search.ts"() {
|
|
5708
|
-
"use strict";
|
|
5709
|
-
init_case_insensitive_header_overlay();
|
|
5710
|
-
init_write_build_file();
|
|
5711
5845
|
}
|
|
5712
5846
|
});
|
|
5713
5847
|
|
|
5714
|
-
// src/
|
|
5715
|
-
var
|
|
5716
|
-
|
|
5717
|
-
"src/swift-compile.ts"() {
|
|
5848
|
+
// src/xcode-target-members.ts
|
|
5849
|
+
var init_xcode_target_members = __esm({
|
|
5850
|
+
"src/xcode-target-members.ts"() {
|
|
5718
5851
|
"use strict";
|
|
5719
|
-
|
|
5720
|
-
init_admitted_mac_build();
|
|
5721
|
-
init_process_group();
|
|
5722
|
-
init_retired_cache_directory();
|
|
5723
|
-
init_swift_compile_budget();
|
|
5724
|
-
init_swift_compiler_digest();
|
|
5725
|
-
init_swift_darwin_records();
|
|
5726
|
-
init_swift_design_time();
|
|
5727
|
-
init_swift_distribution_contract();
|
|
5728
|
-
init_swift_foundation();
|
|
5729
|
-
init_swift_guest_compile();
|
|
5730
|
-
init_swift_guest_source_inputs();
|
|
5731
|
-
init_swift_header_compiler();
|
|
5732
|
-
init_swift_header_dependencies();
|
|
5733
|
-
init_swift_icu();
|
|
5734
|
-
init_swift_link_roots();
|
|
5735
|
-
init_swift_objc_import();
|
|
5736
|
-
init_swift_objc_runtime();
|
|
5737
|
-
init_swift_objc_standin();
|
|
5738
|
-
init_swift_package();
|
|
5739
|
-
init_swift_project_user();
|
|
5740
|
-
init_swift_reproducible();
|
|
5741
|
-
init_swift_root_lock();
|
|
5742
|
-
init_swift_shared_sdk();
|
|
5743
|
-
init_swift_toolchain();
|
|
5744
|
-
init_swift_uniform_type_constants();
|
|
5745
|
-
init_swift_wasm_prune();
|
|
5746
|
-
init_swiftContract();
|
|
5747
|
-
init_swiftRuntimeProductContract();
|
|
5748
|
-
init_wasm_optimize();
|
|
5749
|
-
init_write_build_file();
|
|
5750
|
-
init_xcode_header_search();
|
|
5751
|
-
OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
5752
|
-
PDFKit: [],
|
|
5753
|
-
CFNetwork: ["PeachCFNetwork"],
|
|
5754
|
-
PeachCFNetwork: [],
|
|
5755
|
-
JavaScriptCore: ["PeachJavaScriptCore"],
|
|
5756
|
-
PeachJavaScriptCore: [],
|
|
5757
|
-
// GameplayKit names SpriteKit and SceneKit nodes, as on iOS
|
|
5758
|
-
GameplayKit: ["SpriteKit", "SceneKit", "PeachBox2D", "simd", "GLKit"],
|
|
5759
|
-
simd: [],
|
|
5760
|
-
ModelIO: ["simd"],
|
|
5761
|
-
GLKit: ["ModelIO"],
|
|
5762
|
-
Accelerate: [],
|
|
5763
|
-
CryptoTokenKit: [],
|
|
5764
|
-
CommonCrypto: [],
|
|
5765
|
-
ImagePlayground: [],
|
|
5766
|
-
QuickLook: ["QuickLookThumbnailing"],
|
|
5767
|
-
QuickLookThumbnailing: [],
|
|
5768
|
-
libxml2: [],
|
|
5769
|
-
Compression: [],
|
|
5770
|
-
zlib: [],
|
|
5771
|
-
TikTokBusinessSDK: [],
|
|
5772
|
-
nSure: [],
|
|
5773
|
-
Statsig: [],
|
|
5774
|
-
TOCropViewController: [],
|
|
5775
|
-
RiveRuntime: ["MetalKit"],
|
|
5776
|
-
MetalKit: ["ModelIO"],
|
|
5777
|
-
DatadogInternal: [],
|
|
5778
|
-
// Kronos resolves hosts with CFHost, which iOS Foundation re-exports without an import
|
|
5779
|
-
DatadogCore: ["DatadogInternal", "CFNetwork"],
|
|
5780
|
-
DatadogLogs: ["DatadogCore"],
|
|
5781
|
-
DatadogRUM: ["DatadogCore"],
|
|
5782
|
-
DatadogTrace: ["DatadogCore"],
|
|
5783
|
-
DatadogCrashReporting: ["DatadogCore"],
|
|
5784
|
-
Amplitude: [],
|
|
5785
|
-
AppLovinSDK: [],
|
|
5786
|
-
AppsFlyerLib: [],
|
|
5787
|
-
FBSDKCoreKit: ["FBAEMKit", "FBSDKCoreKit_Basics"],
|
|
5788
|
-
FBAEMKit: ["FBSDKCoreKit_Basics"],
|
|
5789
|
-
FBSDKCoreKit_Basics: [],
|
|
5790
|
-
Intercom: [],
|
|
5791
|
-
FirebaseCore: [],
|
|
5792
|
-
FirebaseSharedSwift: ["FirebaseCore"],
|
|
5793
|
-
FirebaseRemoteConfig: ["FirebaseCore", "FirebaseSharedSwift"],
|
|
5794
|
-
FirebaseFirestoreInternal: ["FirebaseCore"],
|
|
5795
|
-
FirebaseAnalytics: ["FirebaseCore"],
|
|
5796
|
-
FirebaseAppCheck: ["FirebaseCore"],
|
|
5797
|
-
FirebaseAuth: ["FirebaseCore"],
|
|
5798
|
-
FirebaseCrashlytics: ["FirebaseCore"],
|
|
5799
|
-
FirebaseFirestore: ["FirebaseCore", "FirebaseSharedSwift", "FirebaseFirestoreInternal"],
|
|
5800
|
-
FirebaseStorage: ["FirebaseCore"],
|
|
5801
|
-
Firebase: [
|
|
5802
|
-
"FirebaseCore",
|
|
5803
|
-
"FirebaseAnalytics",
|
|
5804
|
-
"FirebaseAppCheck",
|
|
5805
|
-
"FirebaseAuth",
|
|
5806
|
-
"FirebaseCrashlytics",
|
|
5807
|
-
"FirebaseFirestore",
|
|
5808
|
-
"FirebaseRemoteConfig",
|
|
5809
|
-
"FirebaseStorage"
|
|
5810
|
-
],
|
|
5811
|
-
GoogleMobileAds: [],
|
|
5812
|
-
FBAudienceNetwork: [],
|
|
5813
|
-
ExpoModulesCore: []
|
|
5814
|
-
};
|
|
5815
|
-
OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
|
|
5816
|
-
FOUNDATION_IMPLICIT_MODULES = [
|
|
5817
|
-
"PeachObjC",
|
|
5818
|
-
"Dispatch",
|
|
5819
|
-
"FoundationNetworking",
|
|
5820
|
-
"PeachFoundationCombine",
|
|
5821
|
-
"Darwin"
|
|
5822
|
-
];
|
|
5823
|
-
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
5824
|
-
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
5825
|
-
).join("");
|
|
5826
|
-
compilerSourceDigest = true ? "4a6e02699924195639b15c5cdfd8852b5f17fb2ffacb8f9f964ef3daeee8b9dc" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
5827
|
-
C_WORDS = new Set(
|
|
5828
|
-
"auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
|
|
5829
|
-
" "
|
|
5830
|
-
)
|
|
5831
|
-
);
|
|
5832
|
-
CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
5833
|
-
"CFAllocator",
|
|
5834
|
-
"CFArray",
|
|
5835
|
-
"CFAttributedString",
|
|
5836
|
-
"CFBoolean",
|
|
5837
|
-
"CFData",
|
|
5838
|
-
"CFDate",
|
|
5839
|
-
"CFDictionary",
|
|
5840
|
-
"CFError",
|
|
5841
|
-
"CFMutableData",
|
|
5842
|
-
"CFNumber",
|
|
5843
|
-
"CFSet",
|
|
5844
|
-
"CFString",
|
|
5845
|
-
"CFURL"
|
|
5846
|
-
].map((name2) => `import class CoreFoundation.${name2}`).concat([
|
|
5847
|
-
"import typealias CoreFoundation.CFPropertyList",
|
|
5848
|
-
"import typealias CoreFoundation.CFTypeRef",
|
|
5849
|
-
"import CoreGraphics"
|
|
5850
|
-
]).join("; ");
|
|
5851
|
-
emptyMacroEnvironment = {
|
|
5852
|
-
defines: /* @__PURE__ */ new Map(),
|
|
5853
|
-
predefines: /* @__PURE__ */ new Map(),
|
|
5854
|
-
targetDefined: /* @__PURE__ */ new Set()
|
|
5855
|
-
};
|
|
5856
|
-
wasmMacroEnvironment = {
|
|
5857
|
-
...emptyMacroEnvironment,
|
|
5858
|
-
defines: /* @__PURE__ */ new Map([
|
|
5859
|
-
["__wasm__", "1"],
|
|
5860
|
-
["__wasm64__", "1"],
|
|
5861
|
-
["__wasi__", "1"]
|
|
5862
|
-
])
|
|
5863
|
-
};
|
|
5864
|
-
ROOT_LOCKS = Symbol.for("peachsim.swiftCompile.rootLocks");
|
|
5865
|
-
host = globalThis;
|
|
5866
|
-
rootLocks = host[ROOT_LOCKS] ??= /* @__PURE__ */ new Map();
|
|
5867
|
-
SHARED_ARTIFACT_BUDGET_BYTES = 4 * 1024 ** 3;
|
|
5852
|
+
init_openstep_plist();
|
|
5868
5853
|
}
|
|
5869
5854
|
});
|
|
5870
5855
|
|
|
5871
|
-
// src/
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
throw new Error(`invalid ${ADAPTER_FAMILIES[family].label} ${what}`);
|
|
5875
|
-
return value;
|
|
5876
|
-
}
|
|
5877
|
-
function digestField(family, value, what) {
|
|
5878
|
-
if (!hex64(value)) throw new Error(`invalid ${ADAPTER_FAMILIES[family].label} ${what}`);
|
|
5879
|
-
return value;
|
|
5880
|
-
}
|
|
5881
|
-
function headerSet(family, value) {
|
|
5882
|
-
const keys = ADAPTER_FAMILIES[family].headers;
|
|
5883
|
-
if (!isRecord(value) || Object.keys(value).length !== keys.length)
|
|
5884
|
-
throw new Error(`invalid ${ADAPTER_FAMILIES[family].label} headers`);
|
|
5885
|
-
return Object.fromEntries(
|
|
5886
|
-
keys.map((key) => [key, digestField(family, value[key], `${key} header digest`)])
|
|
5887
|
-
);
|
|
5888
|
-
}
|
|
5889
|
-
function identity(family, value) {
|
|
5890
|
-
const invalid = () => new Error(`invalid ${ADAPTER_FAMILIES[family].label} manifest`);
|
|
5891
|
-
if (!isRecord(value) || value.schema !== 1) throw invalid();
|
|
5892
|
-
const { adapter, sdk, framework } = value;
|
|
5893
|
-
if (!isRecord(adapter) || !isRecord(sdk) || !isRecord(framework)) throw invalid();
|
|
5894
|
-
return {
|
|
5895
|
-
schema: 1,
|
|
5896
|
-
platform: text(family, value.platform, "platform"),
|
|
5897
|
-
target: text(family, value.target, "target"),
|
|
5898
|
-
recipe: digestField(family, value.recipe, "recipe"),
|
|
5899
|
-
adapter: { sha256: digestField(family, adapter.sha256, "adapter digest") },
|
|
5900
|
-
headers: headerSet(family, value.headers),
|
|
5901
|
-
compiler: text(family, value.compiler, "compiler"),
|
|
5902
|
-
sdk: {
|
|
5903
|
-
id: text(family, sdk.id, "sdk id"),
|
|
5904
|
-
checksum: digestField(family, sdk.checksum, "sdk checksum")
|
|
5905
|
-
},
|
|
5906
|
-
framework: {
|
|
5907
|
-
distribution: text(family, framework.distribution, "distribution"),
|
|
5908
|
-
wireAbi: digestField(family, framework.wireAbi, "wire abi")
|
|
5909
|
-
}
|
|
5910
|
-
};
|
|
5911
|
-
}
|
|
5912
|
-
function parseAdapterLock(family, value) {
|
|
5913
|
-
const label = ADAPTER_FAMILIES[family].label;
|
|
5914
|
-
if (!isRecord(value) || value.schema !== 2 || !Array.isArray(value.archives))
|
|
5915
|
-
throw new Error(`invalid ${label} lock`);
|
|
5916
|
-
const { headers: _headers, ...shared } = identity(family, {
|
|
5917
|
-
...value,
|
|
5918
|
-
schema: 1,
|
|
5919
|
-
headers: Object.fromEntries(
|
|
5920
|
-
ADAPTER_FAMILIES[family].headers.map((key) => [key, "0".repeat(64)])
|
|
5921
|
-
)
|
|
5922
|
-
});
|
|
5923
|
-
const archives = value.archives.map((entry) => {
|
|
5924
|
-
if (!isRecord(entry) || typeof entry.size !== "number")
|
|
5925
|
-
throw new Error(`invalid ${label} lock archive`);
|
|
5926
|
-
return {
|
|
5927
|
-
headers: headerSet(family, entry.headers),
|
|
5928
|
-
sha256: digestField(family, entry.sha256, "lock archive digest"),
|
|
5929
|
-
size: entry.size
|
|
5930
|
-
};
|
|
5931
|
-
});
|
|
5932
|
-
archives.forEach((entry, index) => {
|
|
5933
|
-
if (archives.findIndex((other) => sameHeaders(other.headers, entry.headers)) !== index)
|
|
5934
|
-
throw new Error(`${label} lock repeats a header set`);
|
|
5935
|
-
});
|
|
5936
|
-
return { ...shared, schema: 2, archives };
|
|
5937
|
-
}
|
|
5938
|
-
var ADAPTER_FAMILIES, hex64, sameHeaders;
|
|
5939
|
-
var init_nitroAdapterContract = __esm({
|
|
5940
|
-
"src/nitroAdapterContract.ts"() {
|
|
5856
|
+
// src/native-app-identity.ts
|
|
5857
|
+
var init_native_app_identity = __esm({
|
|
5858
|
+
"src/native-app-identity.ts"() {
|
|
5941
5859
|
"use strict";
|
|
5860
|
+
init_bundle_global_footer();
|
|
5861
|
+
init_android_app_identity();
|
|
5942
5862
|
init_is_record();
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
key: "turbo-runtime",
|
|
5954
|
-
headers: ["reactNativeJsi"]
|
|
5955
|
-
}
|
|
5956
|
-
};
|
|
5957
|
-
hex64 = (value) => typeof value === "string" && /^[a-f0-9]{64}$/.test(value);
|
|
5958
|
-
sameHeaders = (a, b) => JSON.stringify(a) === JSON.stringify(b);
|
|
5863
|
+
init_nativeAppIconContract();
|
|
5864
|
+
init_openstep_plist();
|
|
5865
|
+
init_xcode_target_members();
|
|
5866
|
+
}
|
|
5867
|
+
});
|
|
5868
|
+
|
|
5869
|
+
// src/prepared-xcode-phases.ts
|
|
5870
|
+
var init_prepared_xcode_phases = __esm({
|
|
5871
|
+
"src/prepared-xcode-phases.ts"() {
|
|
5872
|
+
"use strict";
|
|
5959
5873
|
}
|
|
5960
5874
|
});
|
|
5961
5875
|
|
|
5962
|
-
// src/
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
);
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
throw new Error("invalid Swift native pin");
|
|
5972
|
-
const hosts = {};
|
|
5973
|
-
for (const [host2, archive] of Object.entries(compiler.hosts)) {
|
|
5974
|
-
if (!isRecord(archive) || typeof archive.checksum !== "string" || !DIGEST.test(archive.checksum) || typeof archive.manifest !== "string" || !DIGEST.test(archive.manifest))
|
|
5975
|
-
throw new Error(`invalid Swift native pin compiler entry for ${host2}`);
|
|
5976
|
-
hosts[host2] = { checksum: archive.checksum, manifest: archive.manifest };
|
|
5876
|
+
// src/swift-binary-modules.ts
|
|
5877
|
+
var import_node_path16, cacheDir2;
|
|
5878
|
+
var init_swift_binary_modules = __esm({
|
|
5879
|
+
"src/swift-binary-modules.ts"() {
|
|
5880
|
+
"use strict";
|
|
5881
|
+
import_node_path16 = __toESM(require("node:path"), 1);
|
|
5882
|
+
init_home_paths();
|
|
5883
|
+
init_swift_package();
|
|
5884
|
+
cacheDir2 = import_node_path16.default.join(cacheDir(), "swift-binary-modules");
|
|
5977
5885
|
}
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
turbo: parseAdapterLock("turbo", adapters.turbo)
|
|
5985
|
-
}
|
|
5986
|
-
};
|
|
5987
|
-
}
|
|
5988
|
-
var SWIFT_NATIVE_PIN_SCHEMA, DIGEST;
|
|
5989
|
-
var init_swiftNativePinContract = __esm({
|
|
5990
|
-
"src/swiftNativePinContract.ts"() {
|
|
5886
|
+
});
|
|
5887
|
+
|
|
5888
|
+
// src/swift-coverage/provenance.ts
|
|
5889
|
+
var swiftCoverageProvenance;
|
|
5890
|
+
var init_provenance = __esm({
|
|
5891
|
+
"src/swift-coverage/provenance.ts"() {
|
|
5991
5892
|
"use strict";
|
|
5992
|
-
|
|
5993
|
-
init_nitroAdapterContract();
|
|
5994
|
-
init_swift_distribution_contract();
|
|
5995
|
-
SWIFT_NATIVE_PIN_SCHEMA = 3;
|
|
5996
|
-
DIGEST = /^[a-f0-9]{64}$/;
|
|
5893
|
+
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":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"a0ef7c20a2bc2b7dbd98b9006a8b000b9b4f9708f1bcf0adad8aaf79ef253022","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"fea47e1e076b2cca23c8ac9037eced1d094e69d206df09c393979a5bd1d07a8a","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
5997
5894
|
}
|
|
5998
5895
|
});
|
|
5999
5896
|
|
|
6000
|
-
// src/swift-
|
|
6001
|
-
var
|
|
6002
|
-
|
|
5897
|
+
// src/swift-coverage/xcode-asset-symbols.ts
|
|
5898
|
+
var silentTypes, stackTypes, unprovenTypes, knownTypes, compressionTypes, renditionRules, setRules, inclusionRules, rules, swiftKeywords, nsColorConflicts, uiColorConflicts, colorConflicts, nsImageConflicts;
|
|
5899
|
+
var init_xcode_asset_symbols = __esm({
|
|
5900
|
+
"src/swift-coverage/xcode-asset-symbols.ts"() {
|
|
6003
5901
|
"use strict";
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
5902
|
+
silentTypes = /* @__PURE__ */ new Set([
|
|
5903
|
+
"appiconset",
|
|
5904
|
+
"brandassets",
|
|
5905
|
+
"dataset",
|
|
5906
|
+
"iconset",
|
|
5907
|
+
"iconstack",
|
|
5908
|
+
"iconstackgroup",
|
|
5909
|
+
"launchimage",
|
|
5910
|
+
"stickerpack",
|
|
5911
|
+
"stickersiconset",
|
|
5912
|
+
"textureset"
|
|
5913
|
+
]);
|
|
5914
|
+
stackTypes = /* @__PURE__ */ new Set(["imagestack", "solidimagestack"]);
|
|
5915
|
+
unprovenTypes = /* @__PURE__ */ new Set([
|
|
5916
|
+
"arobject",
|
|
5917
|
+
"arreferenceimage",
|
|
5918
|
+
"arresourcegroup",
|
|
5919
|
+
"complicationset",
|
|
5920
|
+
"cubetextureset",
|
|
5921
|
+
"gcdashboardimage",
|
|
5922
|
+
"gcleaderboard",
|
|
5923
|
+
"gcleaderboardset",
|
|
5924
|
+
"glyphset",
|
|
5925
|
+
"iconbadgeset",
|
|
5926
|
+
"iconstacklayer",
|
|
5927
|
+
"imagestacklayer",
|
|
5928
|
+
"mipmapset",
|
|
5929
|
+
"modelset",
|
|
5930
|
+
"sidebariconset",
|
|
5931
|
+
"solidimagestacklayer",
|
|
5932
|
+
"sticker",
|
|
5933
|
+
"stickerframeset",
|
|
5934
|
+
"stickersequence"
|
|
5935
|
+
]);
|
|
5936
|
+
knownTypes = /* @__PURE__ */ new Set([
|
|
5937
|
+
"colorset",
|
|
5938
|
+
"imageset",
|
|
5939
|
+
"symbolset",
|
|
5940
|
+
"spriteatlas",
|
|
5941
|
+
...silentTypes,
|
|
5942
|
+
...stackTypes,
|
|
5943
|
+
...unprovenTypes
|
|
5944
|
+
]);
|
|
5945
|
+
compressionTypes = [
|
|
5946
|
+
"automatic",
|
|
5947
|
+
"lossless",
|
|
5948
|
+
"lossy",
|
|
5949
|
+
"gpu-optimized-best",
|
|
5950
|
+
"gpu-optimized-smallest"
|
|
5951
|
+
];
|
|
5952
|
+
renditionRules = {
|
|
5953
|
+
appearances: "objects",
|
|
5954
|
+
locale: "string",
|
|
5955
|
+
platform: "string",
|
|
5956
|
+
resizing: "object",
|
|
5957
|
+
"alignment-insets": "object",
|
|
5958
|
+
"compression-type": compressionTypes,
|
|
5959
|
+
"display-gamut": ["sRGB", "display-P3"],
|
|
5960
|
+
"minimum-system-version": "string",
|
|
5961
|
+
"matching-style": "string",
|
|
5962
|
+
"template-rendering-intent": "string",
|
|
5963
|
+
size: "string",
|
|
5964
|
+
role: "string",
|
|
5965
|
+
orientation: "string",
|
|
5966
|
+
extent: "string"
|
|
5967
|
+
};
|
|
5968
|
+
setRules = {
|
|
5969
|
+
localizable: "any",
|
|
5970
|
+
"auto-scaling": "string",
|
|
5971
|
+
"symbol-rendering-intent": "string",
|
|
5972
|
+
"provides-namespace": "any",
|
|
5973
|
+
"on-demand-resource-tags": "any",
|
|
5974
|
+
"template-rendering-intent": "string",
|
|
5975
|
+
"preserves-vector-representation": "any"
|
|
5976
|
+
};
|
|
5977
|
+
inclusionRules = {
|
|
5978
|
+
idiom: "any",
|
|
5979
|
+
subtype: "any",
|
|
5980
|
+
unassigned: "any"
|
|
5981
|
+
};
|
|
5982
|
+
rules = {
|
|
5983
|
+
// colors check none of the image traits
|
|
5984
|
+
colorset: {
|
|
5985
|
+
entry: {
|
|
5986
|
+
...renditionRules,
|
|
5987
|
+
...inclusionRules,
|
|
5988
|
+
color: "any",
|
|
5989
|
+
scale: "string",
|
|
5990
|
+
"language-direction": "string",
|
|
5991
|
+
"width-class": "string",
|
|
5992
|
+
"height-class": "string",
|
|
5993
|
+
memory: "string",
|
|
5994
|
+
"graphics-feature-set": "string",
|
|
5995
|
+
"screen-width": "string"
|
|
5996
|
+
},
|
|
5997
|
+
set: setRules
|
|
5998
|
+
},
|
|
5999
|
+
imageset: {
|
|
6000
|
+
entry: {
|
|
6001
|
+
...renditionRules,
|
|
6002
|
+
...inclusionRules,
|
|
6003
|
+
filename: "any",
|
|
6004
|
+
scale: ["1x", "2x", "3x"],
|
|
6005
|
+
"language-direction": ["left-to-right", "right-to-left"],
|
|
6006
|
+
"width-class": ["compact", "regular", "unspecified"],
|
|
6007
|
+
"height-class": ["compact", "regular"],
|
|
6008
|
+
memory: ["1GB", "2GB", "3GB", "4GB", "6GB", "8GB", "12GB", "16GB"],
|
|
6009
|
+
"graphics-feature-set": [
|
|
6010
|
+
...Array.from({ length: 10 }, (_, i) => `apple${i + 1}`),
|
|
6011
|
+
"metal1v2",
|
|
6012
|
+
"metal2v2",
|
|
6013
|
+
"metal3v1",
|
|
6014
|
+
"metal3v2",
|
|
6015
|
+
"metal4v1"
|
|
6016
|
+
],
|
|
6017
|
+
"screen-width": "string"
|
|
6018
|
+
},
|
|
6019
|
+
// an image whose vector flag is not a boolean is dropped
|
|
6020
|
+
set: {
|
|
6021
|
+
...setRules,
|
|
6022
|
+
"preserves-vector-representation": "boolean",
|
|
6023
|
+
"compression-type": compressionTypes
|
|
6024
|
+
}
|
|
6025
|
+
},
|
|
6026
|
+
symbolset: {
|
|
6027
|
+
entry: {
|
|
6028
|
+
idiom: "any",
|
|
6029
|
+
filename: "any",
|
|
6030
|
+
"language-direction": ["left-to-right", "right-to-left"]
|
|
6031
|
+
},
|
|
6032
|
+
set: { "symbol-rendering-intent": "any", localizable: "boolean" }
|
|
6033
|
+
}
|
|
6034
|
+
};
|
|
6035
|
+
swiftKeywords = new Set(
|
|
6036
|
+
"precedencegroup associatedtype fileprivate fallthrough extension typealias subscript continue internal Protocol protocol operator rethrows private default public static switch return throws repeat struct deinit import guard while where false catch break defer super class inout throw func Type case else true Self self enum init nil var for let Any try if in do as is _".split(
|
|
6037
|
+
" "
|
|
6038
|
+
)
|
|
6039
|
+
);
|
|
6040
|
+
nsColorConflicts = new Set(
|
|
6041
|
+
"unemphasizedSelectedContentBackgroundColor unemphasizedSelectedTextBackgroundColor controlAlternatingRowBackgroundColors alternatingContentBackgroundColors systemColorsDidChangeNotification alternateSelectedControlTextColor selectedContentBackgroundColor alternateSelectedControlColor secondarySelectedControlColor unemphasizedSelectedTextColor selectedTextBackgroundColor keyboardFocusIndicatorColor scrubberTexturedBackground controlLightHighlightColor selectedMenuItemTextColor underPageBackgroundColor disabledControlTextColor selectedControlTextColor controlBackgroundColor controlDarkShadowColor windowBackgroundColor selectedMenuItemColor controlHighlightColor quaternaryLabelColor selectedControlColor windowFrameTextColor placeholderTextColor textBackgroundColor secondaryLabelColor tertiaryLabelColor findHighlightColor controlAccentColor controlShadowColor currentControlTint selectedKnobColor selectedTextColor windowFrameColor controlTextColor headerTextColor scrollBarColor separatorColor highlightColor ignoresAlpha systemOrange systemPurple systemIndigo controlColor systemYellow systemGreen systemBrown headerColor shadowColor systemBlue systemPink systemTeal systemCyan labelColor systemMint systemGray systemRed knobColor gridColor linkColor textColor lightGray darkGray magenta orange purple yellow white black green brown clear blue cyan gray red".split(
|
|
6042
|
+
" "
|
|
6043
|
+
)
|
|
6044
|
+
);
|
|
6045
|
+
uiColorConflicts = new Set(
|
|
6046
|
+
"secondarySystemGroupedBackground tertiarySystemGroupedBackground secondarySystemBackground tertiarySystemBackground groupTableViewBackground systemGroupedBackground quaternarySystemFill smallSystemFontSize secondarySystemFill tertiarySystemFill systemBackground quaternaryLabel opaqueSeparator placeholderText systemFontSize buttonFontSize secondaryLabel labelFontSize tertiaryLabel systemOrange systemPurple systemIndigo systemYellow systemGray2 systemGray3 systemGray4 systemGray5 systemGray6 systemGreen systemBrown systemBlue systemPink systemTeal systemFill systemCyan systemMint systemGray systemRed tintColor separator lightText lightGray darkText darkGray magenta orange purple yellow white black label green brown clear blue link cyan gray red".split(
|
|
6047
|
+
" "
|
|
6048
|
+
)
|
|
6049
|
+
);
|
|
6050
|
+
colorConflicts = new Set(
|
|
6051
|
+
"transferRepresentation accentColor secondary primary orange purple indigo yellow white black green brown clear blue pink teal cyan mint gray red".split(
|
|
6052
|
+
" "
|
|
6053
|
+
)
|
|
6054
|
+
);
|
|
6055
|
+
nsImageConflicts = new Set(
|
|
6056
|
+
"touchBarAudioOutputVolumeMediumTemplateName touchBarAudioOutputVolumeHighTemplateName touchBarAudioOutputVolumeOffTemplateName touchBarAudioOutputVolumeLowTemplateName touchBarTextJustifiedAlignTemplateName touchBarCommunicationVideoTemplateName touchBarCommunicationAudioTemplateName touchBarSkipAhead30SecondsTemplateName touchBarSkipAhead15SecondsTemplateName touchBarTextStrikethroughTemplateName touchBarSkipBack30SecondsTemplateName touchBarSkipBack15SecondsTemplateName stopProgressFreestandingTemplateName touchBarAudioOutputMuteTemplateName invalidDataFreestandingTemplateName touchBarEnterFullScreenTemplateName touchBarTextCenterAlignTemplateName touchBarAudioInputMuteTemplateName followLinkFreestandingTemplateName touchBarExitFullScreenTemplateName touchBarTextRightAlignTemplateName touchBarTextUnderlineTemplateName touchBarTextLeftAlignTemplateName touchBarOpenInBrowserTemplateName touchBarFolderMoveToTemplateName touchBarFolderCopyToTemplateName touchBarFastForwardTemplateName rightFacingTriangleTemplateName refreshFreestandingTemplateName touchBarRotateRightTemplateName touchBarRecordStartTemplateName touchBarSkipToStartTemplateName touchBarTextItalicTemplateName touchBarNewMessageTemplateName leftFacingTriangleTemplateName revealFreestandingTemplateName touchBarVolumeDownTemplateName touchBarRecordStopTemplateName touchBarRotateLeftTemplateName touchBarAudioInputTemplateName touchBarColorPickerStrokeName touchBarSkipAheadTemplateName touchBarSkipToEndTemplateName touchBarGoForwardTemplateName touchBarPlayPauseTemplateName touchBarQuickLookTemplateName touchBarAddDetailTemplateName touchBarUserGroupTemplateName touchBarNewFolderTemplateName touchBarBookmarksTemplateName touchBarSlideshowTemplateName statusPartiallyAvailableName touchBarPlayheadTemplateName touchBarDownloadTemplateName touchBarTextBoldTemplateName touchBarSkipBackTemplateName touchBarVolumeUpTemplateName touchBarTextListTemplateName touchBarIconViewTemplateName touchBarListViewTemplateName touchBarUserAddTemplateName touchBarComposeTemplateName touchBarRefreshTemplateName enterFullScreenTemplateName touchBarTagIconTemplateName touchBarGetInfoTemplateName touchBarSidebarTemplateName touchBarTextBoxTemplateName touchBarHistoryTemplateName touchBarColorPickerFillName touchBarColorPickerFontName touchBarRewindTemplateName menuMixedStateTemplateName touchBarDeleteTemplateName touchBarRemoveTemplateName touchBarSearchTemplateName touchBarGoBackTemplateName exitFullScreenTemplateName touchBarGoDownTemplateName touchBarFolderTemplateName touchBarShareTemplateName touchBarPauseTemplateName touchBarAlarmTemplateName lockUnlockedTemplateName touchBarMailTemplateName touchBarGoUpTemplateName touchBarUserTemplateName iChatTheaterTemplateName stopProgressTemplateName touchBarPlayTemplateName touchBarAddTemplateName menuOnStateTemplateName lockLockedTemplateName smartBadgeTemplateName columnViewTemplateName preferencesGeneralName statusUnavailableName goForwardTemplateName bluetoothTemplateName quickLookTemplateName bookmarksTemplateName slideshowTemplateName multipleDocumentsName iconViewTemplateName listViewTemplateName flowViewTemplateName imageUnfilteredTypes statusAvailableName refreshTemplateName goRightTemplateName applicationIconName folderBurnableName removeTemplateName goBackTemplateName actionTemplateName goLeftTemplateName shareTemplateName homeTemplateName pathTemplateName userAccountsName addTemplateName folderSmartName statusNoneName colorPanelName trashEmptyName fontPanelName trashFullName userGroupName userGuestName advancedName mobileMeName everyoneName computerName networkName cautionName bonjourName folderName imageTypes infoName userName".split(
|
|
6057
|
+
" "
|
|
6058
|
+
)
|
|
6059
|
+
);
|
|
6009
6060
|
}
|
|
6010
6061
|
});
|
|
6011
6062
|
|
|
6012
|
-
// src/swift-
|
|
6013
|
-
var
|
|
6014
|
-
|
|
6063
|
+
// src/swift-coverage/xcode-assets.ts
|
|
6064
|
+
var unprovenAssetSettings, assetSymbolSettingKeys;
|
|
6065
|
+
var init_xcode_assets = __esm({
|
|
6066
|
+
"src/swift-coverage/xcode-assets.ts"() {
|
|
6015
6067
|
"use strict";
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6068
|
+
init_provenance();
|
|
6069
|
+
init_xcode_asset_symbols();
|
|
6070
|
+
unprovenAssetSettings = [
|
|
6071
|
+
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_FRAMEWORKS",
|
|
6072
|
+
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_WARNINGS",
|
|
6073
|
+
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_ERRORS",
|
|
6074
|
+
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_BACKWARDS_DEPLOYMENT_SUPPORT",
|
|
6075
|
+
"ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOLS_PATH",
|
|
6076
|
+
"ASSETCATALOG_COMPILER_GENERATE_OBJC_ASSET_SYMBOLS_PATH",
|
|
6077
|
+
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_INDEX_PATH",
|
|
6078
|
+
"ASSETCATALOG_COMPILER_BUNDLE_IDENTIFIER",
|
|
6079
|
+
"ASSETCATALOG_COMPILER_LIGHTWEIGHT_ASSET_RUNTIME_MODE"
|
|
6080
|
+
];
|
|
6081
|
+
assetSymbolSettingKeys = [
|
|
6082
|
+
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS",
|
|
6083
|
+
"ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS",
|
|
6084
|
+
"PRODUCT_BUNDLE_IDENTIFIER",
|
|
6085
|
+
"TARGETED_DEVICE_FAMILY",
|
|
6086
|
+
...unprovenAssetSettings,
|
|
6087
|
+
"ASSETCATALOG_OTHER_FLAGS"
|
|
6088
|
+
];
|
|
6023
6089
|
}
|
|
6024
6090
|
});
|
|
6025
6091
|
|