peachsim 0.1.800 → 0.1.809

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/cli/drivers/playwright-sim-host.ts +2 -0
  2. package/cli/outbound-endpoints.ts +0 -4
  3. package/dist-lib/agent-daemon-client.cjs +1 -1
  4. package/dist-lib/agent-events.cjs +1 -1
  5. package/dist-lib/agent-identity.cjs +1 -1
  6. package/dist-lib/agent-sessions.cjs +1 -1
  7. package/dist-lib/attached-projects.cjs +1 -1
  8. package/dist-lib/auth/shared-session.cjs +1 -1
  9. package/dist-lib/backend-origin.cjs +1 -1
  10. package/dist-lib/beta.cjs +1 -1
  11. package/dist-lib/beta.mjs +1 -1
  12. package/dist-lib/bridge-constants.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.mjs +1 -1
  15. package/dist-lib/bridge-contract.cjs +1 -1
  16. package/dist-lib/bridge-contract.mjs +1 -1
  17. package/dist-lib/bundle-channel.cjs +132 -10
  18. package/dist-lib/capture-contract.cjs +1 -1
  19. package/dist-lib/capture-contract.mjs +1 -1
  20. package/dist-lib/cli-constants.cjs +1 -1
  21. package/dist-lib/cloud-contract.cjs +1 -1
  22. package/dist-lib/cloud-contract.mjs +1 -1
  23. package/dist-lib/cloud-test-args.cjs +1 -1
  24. package/dist-lib/cloud-test-args.mjs +1 -1
  25. package/dist-lib/cloud.cjs +1 -1
  26. package/dist-lib/cloud.mjs +1 -1
  27. package/dist-lib/config.cjs +1 -1
  28. package/dist-lib/detox/index.cjs +46 -7
  29. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  30. package/dist-lib/expo-swift-bundle.cjs +132 -10
  31. package/dist-lib/expo-swift-metadata.cjs +1 -1
  32. package/dist-lib/expo-swift-metadata.mjs +1 -1
  33. package/dist-lib/home-paths.cjs +1 -1
  34. package/dist-lib/host/bridge-host.cjs +252 -108
  35. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  36. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  37. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  38. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  39. package/dist-lib/host/websocket-proxy.cjs +1 -1
  40. package/dist-lib/index.cjs +1 -1
  41. package/dist-lib/jump-to-source-babel.cjs +1 -1
  42. package/dist-lib/jump-to-source-native.cjs +1 -1
  43. package/dist-lib/kotlin-host.cjs +1 -1
  44. package/dist-lib/menu.cjs +1 -1
  45. package/dist-lib/menu.mjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  48. package/dist-lib/metro-production-bundle.cjs +1 -1
  49. package/dist-lib/metro-production-bundle.mjs +1 -1
  50. package/dist-lib/metro.cjs +1 -1
  51. package/dist-lib/native-app-identity.cjs +1 -1
  52. package/dist-lib/native-app-identity.mjs +1 -1
  53. package/dist-lib/native-firebase-metadata.cjs +1 -1
  54. package/dist-lib/native-firebase-metadata.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/react-native-host-modules.cjs +1 -1
  60. package/dist-lib/react-native-host-modules.mjs +1 -1
  61. package/dist-lib/render-mode.cjs +1 -1
  62. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  63. package/dist-lib/sdk.cjs +1 -1
  64. package/dist-lib/sdk.mjs +1 -1
  65. package/dist-lib/skills.cjs +252 -108
  66. package/dist-lib/swift-compile.cjs +141 -11
  67. package/dist-lib/swift-compile.mjs +140 -11
  68. package/dist-lib/swift-package.cjs +1 -1
  69. package/dist-lib/swift-package.mjs +1 -1
  70. package/dist-lib/swift-submit.cjs +1 -1
  71. package/dist-lib/swift-submit.mjs +1 -1
  72. package/dist-lib/swift-toolchain.cjs +1 -1
  73. package/dist-lib/swift.cjs +1 -1
  74. package/dist-lib/vite-swift.cjs +132 -10
  75. package/dist-lib/vite.cjs +1 -1
  76. package/dist-lib/worklet-executable.cjs +119 -0
  77. package/dist-lib/worklet-executable.mjs +93 -0
  78. package/package.json +9 -1
  79. package/src/swift-compile.ts +160 -11
  80. package/src/vite-plugin.ts +5 -2
  81. package/src/worklet-executable.ts +125 -0
  82. package/src/worklets-babel.ts +47 -6
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.800 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.809 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -29437,7 +29437,7 @@ function swiftTargetDependencies(files2, targets) {
29437
29437
  }
29438
29438
  function swiftArtifactHash(input, release, moduleRoot) {
29439
29439
  const hash = (0, import_node_crypto3.createHash)("sha256");
29440
- hash.update(`swift-compile/v18
29440
+ hash.update(`swift-compile/v20
29441
29441
  ${release}
29442
29442
  `);
29443
29443
  if (input.oneModule) hash.update("one-module\n");
@@ -30015,6 +30015,125 @@ function lowerNotificationDelegate(source) {
30015
30015
  result = result.slice(0, at) + text3 + result.slice(at + count);
30016
30016
  return result;
30017
30017
  }
30018
+ function tableProtocolConformances(sources) {
30019
+ const parents = /* @__PURE__ */ new Map();
30020
+ for (const source of sources) {
30021
+ const code = swiftCodeMask(source);
30022
+ for (const owner of code.matchAll(
30023
+ /\b(?:class|extension)\s+([A-Za-z_]\w*)\s*:\s*([^{}]+)\{/g
30024
+ )) {
30025
+ const inherited = parents.get(owner[1]) ?? /* @__PURE__ */ new Set();
30026
+ for (const type of owner[2].matchAll(/\b[A-Za-z_]\w*\b/g)) inherited.add(type[0]);
30027
+ parents.set(owner[1], inherited);
30028
+ }
30029
+ }
30030
+ const result = /* @__PURE__ */ new Map();
30031
+ const protocols = ["UITableViewDataSource", "UITableViewDelegate"];
30032
+ for (const type of parents.keys()) {
30033
+ const pending = [type];
30034
+ const seen = /* @__PURE__ */ new Set();
30035
+ const conformances = /* @__PURE__ */ new Set();
30036
+ while (pending.length) {
30037
+ const next = pending.pop();
30038
+ if (seen.has(next)) continue;
30039
+ seen.add(next);
30040
+ if (protocols.includes(next)) conformances.add(next);
30041
+ for (const parent of parents.get(next) ?? []) pending.push(parent);
30042
+ }
30043
+ if (conformances.size) result.set(type, conformances);
30044
+ }
30045
+ return result;
30046
+ }
30047
+ function lowerTableProtocolMethods(source, conformances) {
30048
+ const code = swiftCodeMask(source);
30049
+ const dataSource = {
30050
+ numberOfRowsInSection: "tableView:numberOfRowsInSection:",
30051
+ cellForRowAt: "tableView:cellForRowAtIndexPath:",
30052
+ titleForHeaderInSection: "tableView:titleForHeaderInSection:",
30053
+ titleForFooterInSection: "tableView:titleForFooterInSection:",
30054
+ canEditRowAt: "tableView:canEditRowAtIndexPath:",
30055
+ commit: "tableView:commitEditingStyle:forRowAtIndexPath:"
30056
+ };
30057
+ const delegate = {
30058
+ willDisplay: "tableView:willDisplayCell:forRowAtIndexPath:",
30059
+ didEndDisplaying: "tableView:didEndDisplayingCell:forRowAtIndexPath:",
30060
+ heightForRowAt: "tableView:heightForRowAtIndexPath:",
30061
+ estimatedHeightForRowAt: "tableView:estimatedHeightForRowAtIndexPath:",
30062
+ heightForHeaderInSection: "tableView:heightForHeaderInSection:",
30063
+ heightForFooterInSection: "tableView:heightForFooterInSection:",
30064
+ estimatedHeightForHeaderInSection: "tableView:estimatedHeightForHeaderInSection:",
30065
+ estimatedHeightForFooterInSection: "tableView:estimatedHeightForFooterInSection:",
30066
+ viewForHeaderInSection: "tableView:viewForHeaderInSection:",
30067
+ viewForFooterInSection: "tableView:viewForFooterInSection:",
30068
+ willDisplayHeaderView: "tableView:willDisplayHeaderView:forSection:",
30069
+ willDisplayFooterView: "tableView:willDisplayFooterView:forSection:",
30070
+ didEndDisplayingHeaderView: "tableView:didEndDisplayingHeaderView:forSection:",
30071
+ didEndDisplayingFooterView: "tableView:didEndDisplayingFooterView:forSection:",
30072
+ shouldHighlightRowAt: "tableView:shouldHighlightRowAtIndexPath:",
30073
+ didHighlightRowAt: "tableView:didHighlightRowAtIndexPath:",
30074
+ didUnhighlightRowAt: "tableView:didUnhighlightRowAtIndexPath:",
30075
+ willSelectRowAt: "tableView:willSelectRowAtIndexPath:",
30076
+ willDeselectRowAt: "tableView:willDeselectRowAtIndexPath:",
30077
+ didSelectRowAt: "tableView:didSelectRowAtIndexPath:",
30078
+ didDeselectRowAt: "tableView:didDeselectRowAtIndexPath:",
30079
+ accessoryButtonTappedForRowWith: "tableView:accessoryButtonTappedForRowWithIndexPath:",
30080
+ editingStyleForRowAt: "tableView:editingStyleForRowAtIndexPath:",
30081
+ leadingSwipeActionsConfigurationForRowAt: "tableView:leadingSwipeActionsConfigurationForRowAtIndexPath:",
30082
+ trailingSwipeActionsConfigurationForRowAt: "tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:",
30083
+ willBeginEditingRowAt: "tableView:willBeginEditingRowAtIndexPath:",
30084
+ didEndEditingRowAt: "tableView:didEndEditingRowAtIndexPath:"
30085
+ };
30086
+ const braces = [...code.matchAll(/[{}]/g)].map((match) => match.index);
30087
+ const edits = [];
30088
+ for (const owner of code.matchAll(/\b(?:class|extension)\s+([A-Za-z_]\w*)[^{}]*\{/g)) {
30089
+ const conforms = conformances.get(owner[1]);
30090
+ if (!conforms) continue;
30091
+ const selectors = {
30092
+ ...conforms.has("UITableViewDataSource") ? dataSource : {},
30093
+ ...conforms.has("UITableViewDelegate") ? delegate : {}
30094
+ };
30095
+ const open = owner.index + owner[0].length - 1;
30096
+ const close = closingBrace(code, braces, open);
30097
+ let depth = 1;
30098
+ let previous = open + 1;
30099
+ for (const token of swiftCodeScan(code.slice(open + 1, close - 1)).tokens) {
30100
+ const at = open + 1 + token;
30101
+ if (code[at] === "{") depth++;
30102
+ else if (code[at] === "}") {
30103
+ depth--;
30104
+ if (depth === 1) previous = at + 1;
30105
+ } else if (depth === 1 && /^func\b/.test(code.slice(at))) {
30106
+ const signature2 = code.slice(at, code.indexOf("{", at));
30107
+ const prefix = code.slice(previous, at);
30108
+ const attributes = /(?:@\w+(?:\([^{}]*\))?\s*|(?:public|open|private|fileprivate|internal|final|override|static|class|nonisolated|dynamic)\s+)*$/.exec(
30109
+ prefix
30110
+ )?.[0] ?? "";
30111
+ if (/\b(?:override|static|class)\b|@(?:objc|ObjC|IBAction)\b/.test(attributes))
30112
+ continue;
30113
+ let selector;
30114
+ if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
30115
+ signature2
30116
+ ))
30117
+ selector = "numberOfSectionsInTableView:";
30118
+ else {
30119
+ const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
30120
+ signature2
30121
+ );
30122
+ if (match) selector = selectors[match[1]];
30123
+ }
30124
+ if (selector)
30125
+ edits.push([
30126
+ at,
30127
+ `${/\bnonisolated\b/.test(attributes) ? "" : "@MainActor "}@ObjC(${JSON.stringify(selector)}) `
30128
+ ]);
30129
+ }
30130
+ }
30131
+ }
30132
+ let result = source;
30133
+ for (const [at, text3] of edits.sort((a, b) => b[0] - a[0]))
30134
+ result = result.slice(0, at) + text3 + result.slice(at);
30135
+ return result;
30136
+ }
30018
30137
  function swiftCodeMask(source) {
30019
30138
  const chars = source.split("");
30020
30139
  const blank = (from, to) => {
@@ -30118,9 +30237,9 @@ function swiftCodeMask(source) {
30118
30237
  scanCode(0, false);
30119
30238
  return chars.join("");
30120
30239
  }
30121
- function swiftSourceAsIOS(original, extraObjCExtensions) {
30240
+ function swiftSourceAsIOS(original, extraObjCExtensions, tableConformances = tableProtocolConformances([original])) {
30122
30241
  const source = liftExtensionOverrides(
30123
- lowerNotificationDelegate(original),
30242
+ lowerTableProtocolMethods(lowerNotificationDelegate(original), tableConformances),
30124
30243
  extraObjCExtensions
30125
30244
  );
30126
30245
  const { lineStarts, tokens } = swiftCodeScan(source);
@@ -30394,15 +30513,15 @@ function writeSwiftProject(layout, input, moduleRoot) {
30394
30513
  // sootsim-swift files ${modulePlan.digest("hex").slice(0, 16)}
30395
30514
  // resource accessors ${resourcePlan}
30396
30515
  `;
30397
- const objcExtensions = objcExtensionMemberIndex(
30398
- Object.entries(input.files).filter(([file]) => file.endsWith(".swift")).map(([, contents]) => contents)
30399
- );
30516
+ const swiftSources = Object.entries(input.files).filter(([file]) => file.endsWith(".swift")).map(([, contents]) => contents);
30517
+ const objcExtensions = objcExtensionMemberIndex(swiftSources);
30518
+ const tableConformances = tableProtocolConformances(swiftSources);
30400
30519
  if (targets.length === 0) {
30401
30520
  for (const [file, contents] of Object.entries(input.files)) {
30402
30521
  if (file === "Package.swift") continue;
30403
30522
  files2.set(
30404
30523
  import_node_path7.default.join(layout.sources, file),
30405
- compiledSource(file, contents, objcExtensions)
30524
+ compiledSource(file, contents, objcExtensions, tableConformances)
30406
30525
  );
30407
30526
  }
30408
30527
  let manifest = (0, import_node_fs7.readFileSync)(
@@ -30449,7 +30568,10 @@ function writeSwiftProject(layout, input, moduleRoot) {
30449
30568
  const base = layout.multi ? layout.root : layout.sources;
30450
30569
  for (const [file, contents] of Object.entries(input.files)) {
30451
30570
  if (file === "Package.swift") continue;
30452
- files2.set(import_node_path7.default.join(base, file), compiledSource(file, contents, objcExtensions));
30571
+ files2.set(
30572
+ import_node_path7.default.join(base, file),
30573
+ compiledSource(file, contents, objcExtensions, tableConformances)
30574
+ );
30453
30575
  }
30454
30576
  files2.set(
30455
30577
  import_node_path7.default.join(layout.root, "Package.swift"),
@@ -30749,7 +30871,7 @@ var init_swift_compile = __esm({
30749
30871
  MODIFIERS = /(?:^|\s)(public|open|internal|fileprivate|private|final|nonisolated|@MainActor)(?=\s)/g;
30750
30872
  OVERRIDE_FUNC = /^override((?:\s+(?:public|open|internal|fileprivate|private|final|nonisolated|dynamic|@\w+))*)\s+func\s+([A-Za-z_]\w*)\s*(<[^>{}]*>)?\s*\(/;
30751
30873
  OVERRIDE_VAR = /^override((?:\s+(?:public|open|internal|fileprivate|private|final|nonisolated|dynamic|@\w+))*)\s+var\s+([A-Za-z_]\w*)\s*:\s*([^{=]+?)\s*\{/;
30752
- compiledSource = (file, contents, extraObjCExtensions) => file.endsWith(".swift") ? swiftSourceAsIOS(contents, extraObjCExtensions) : contents;
30874
+ compiledSource = (file, contents, extraObjCExtensions, tableConformances) => file.endsWith(".swift") ? swiftSourceAsIOS(contents, extraObjCExtensions, tableConformances) : contents;
30753
30875
  ROOT_LOCKS = Symbol.for("peachsim.swiftCompile.rootLocks");
30754
30876
  host = globalThis;
30755
30877
  rootLocks = host[ROOT_LOCKS] ??= /* @__PURE__ */ new Map();
@@ -41352,7 +41474,7 @@ var init_devices = __esm({
41352
41474
  PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT = Math.round(28 * 2.625) / 2.625;
41353
41475
  DUO_DIVISION_REGION_WIDTH = 40;
41354
41476
  devices = {
41355
- "canvas-workspace": iosDevice({
41477
+ "canvas-workspace": /* @__PURE__ */ iosDevice({
41356
41478
  model: "canvas-workspace",
41357
41479
  name: "Canvas Workspace",
41358
41480
  width: 1440,
@@ -41361,9 +41483,9 @@ var init_devices = __esm({
41361
41483
  statusBarHeight: 0,
41362
41484
  landscapeStatusBarHeight: 0,
41363
41485
  homeIndicatorHeight: 0,
41364
- cornerRadius: cornerRadii(0),
41365
- continuousCornerRadius: cornerRadii(0),
41366
- frameInsets: uniformFrameInsets(16),
41486
+ cornerRadius: /* @__PURE__ */ cornerRadii(0),
41487
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(0),
41488
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(16),
41367
41489
  dynamicIsland: null,
41368
41490
  safeAreaInsets: { top: 0, bottom: 0, left: 0, right: 0 },
41369
41491
  iosVersion: "27.0",
@@ -41371,7 +41493,7 @@ var init_devices = __esm({
41371
41493
  // height so the experimental profile still shows a keyboard.
41372
41494
  keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
41373
41495
  physicalPPI: 110,
41374
- hardwareButtons: modernButtons(
41496
+ hardwareButtons: /* @__PURE__ */ modernButtons(
41375
41497
  [185.8, 41.7],
41376
41498
  [258.2, 67.6],
41377
41499
  [344, 67.6],
@@ -41379,7 +41501,7 @@ var init_devices = __esm({
41379
41501
  ),
41380
41502
  experimental: true
41381
41503
  }),
41382
- "iphone-se": iosDevice({
41504
+ "iphone-se": /* @__PURE__ */ iosDevice({
41383
41505
  model: "iphone-se",
41384
41506
  name: "iPhone SE",
41385
41507
  width: 375,
@@ -41388,12 +41510,12 @@ var init_devices = __esm({
41388
41510
  statusBarHeight: 20,
41389
41511
  landscapeStatusBarHeight: 0,
41390
41512
  homeIndicatorHeight: 0,
41391
- cornerRadius: cornerRadii(0),
41392
- continuousCornerRadius: cornerRadii(0),
41513
+ cornerRadius: /* @__PURE__ */ cornerRadii(0),
41514
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(0),
41393
41515
  // legacy home-button frame uses asymmetric LEGACY_*_BEZEL constants in the
41394
41516
  // shell (111pt forehead/chin, 29pt sides); uniform frameInsets are a sane
41395
41517
  // modern-path value and mirror the SE's ~28.7pt side bezel.
41396
- frameInsets: uniformFrameInsets(28.7),
41518
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(28.7),
41397
41519
  dynamicIsland: null,
41398
41520
  safeAreaInsets: { top: 20, bottom: 0, left: 0, right: 0 },
41399
41521
  iosVersion: "27.0",
@@ -41401,7 +41523,7 @@ var init_devices = __esm({
41401
41523
  physicalPPI: 326,
41402
41524
  hardwareButtons: LEGACY_HARDWARE_BUTTONS
41403
41525
  }),
41404
- "iphone-14": iosDevice({
41526
+ "iphone-14": /* @__PURE__ */ iosDevice({
41405
41527
  model: "iphone-14",
41406
41528
  name: "iPhone 14",
41407
41529
  width: 390,
@@ -41410,22 +41532,22 @@ var init_devices = __esm({
41410
41532
  statusBarHeight: 47,
41411
41533
  landscapeStatusBarHeight: 0,
41412
41534
  homeIndicatorHeight: 34,
41413
- cornerRadius: cornerRadii(46.2),
41414
- continuousCornerRadius: cornerRadii(67.462),
41415
- frameInsets: uniformFrameInsets(19.5),
41535
+ cornerRadius: /* @__PURE__ */ cornerRadii(46.2),
41536
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(67.462),
41537
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(19.5),
41416
41538
  dynamicIsland: null,
41417
41539
  safeAreaInsets: { top: 47, bottom: 34, left: 0, right: 0 },
41418
41540
  iosVersion: "27.0",
41419
41541
  keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
41420
41542
  physicalPPI: 460,
41421
- hardwareButtons: modernButtons(
41543
+ hardwareButtons: /* @__PURE__ */ modernButtons(
41422
41544
  [141.7, 29.7],
41423
41545
  [205.9, 69.6],
41424
41546
  [289.5, 69.6],
41425
41547
  [228.9, 114.5]
41426
41548
  )
41427
41549
  }),
41428
- "iphone-15": iosDevice({
41550
+ "iphone-15": /* @__PURE__ */ iosDevice({
41429
41551
  model: "iphone-15",
41430
41552
  name: "iPhone 15",
41431
41553
  width: 393,
@@ -41434,23 +41556,23 @@ var init_devices = __esm({
41434
41556
  statusBarHeight: 59,
41435
41557
  landscapeStatusBarHeight: 0,
41436
41558
  homeIndicatorHeight: 34,
41437
- cornerRadius: cornerRadii(53.9),
41438
- continuousCornerRadius: cornerRadii(73.402),
41439
- frameInsets: uniformFrameInsets(18.2),
41559
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
41560
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
41561
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(18.2),
41440
41562
  dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
41441
41563
  statusRowCenter: 32.75,
41442
41564
  safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
41443
41565
  iosVersion: "27.0",
41444
41566
  keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
41445
41567
  physicalPPI: 460,
41446
- hardwareButtons: modernButtons(
41568
+ hardwareButtons: /* @__PURE__ */ modernButtons(
41447
41569
  [171.7, 32],
41448
41570
  [235.8, 65.3],
41449
41571
  [320.5, 65.3],
41450
41572
  [280.6, 105.2]
41451
41573
  )
41452
41574
  }),
41453
- "iphone-15-plus": iosDevice({
41575
+ "iphone-15-plus": /* @__PURE__ */ iosDevice({
41454
41576
  model: "iphone-15-plus",
41455
41577
  name: "iPhone 15 Plus",
41456
41578
  width: 430,
@@ -41459,23 +41581,23 @@ var init_devices = __esm({
41459
41581
  statusBarHeight: 59,
41460
41582
  landscapeStatusBarHeight: 0,
41461
41583
  homeIndicatorHeight: 34,
41462
- cornerRadius: cornerRadii(53.9),
41463
- continuousCornerRadius: cornerRadii(74.654),
41464
- frameInsets: uniformFrameInsets(17.3),
41584
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
41585
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
41586
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(17.3),
41465
41587
  dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
41466
41588
  statusRowCenter: 30.05,
41467
41589
  safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
41468
41590
  iosVersion: "27.0",
41469
41591
  keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
41470
41592
  physicalPPI: 460,
41471
- hardwareButtons: modernButtons(
41593
+ hardwareButtons: /* @__PURE__ */ modernButtons(
41472
41594
  [172.1, 33],
41473
41595
  [236.1, 66.6],
41474
41596
  [321.2, 66.6],
41475
41597
  [281, 106.8]
41476
41598
  )
41477
41599
  }),
41478
- "iphone-15-pro": iosDevice({
41600
+ "iphone-15-pro": /* @__PURE__ */ iosDevice({
41479
41601
  model: "iphone-15-pro",
41480
41602
  name: "iPhone 15 Pro",
41481
41603
  width: 393,
@@ -41484,23 +41606,23 @@ var init_devices = __esm({
41484
41606
  statusBarHeight: 59,
41485
41607
  landscapeStatusBarHeight: 0,
41486
41608
  homeIndicatorHeight: 34,
41487
- cornerRadius: cornerRadii(53.9),
41488
- continuousCornerRadius: cornerRadii(73.402),
41489
- frameInsets: uniformFrameInsets(15.3),
41609
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
41610
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
41611
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
41490
41612
  dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
41491
41613
  statusRowCenter: 32.4,
41492
41614
  safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
41493
41615
  iosVersion: "27.0",
41494
41616
  keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
41495
41617
  physicalPPI: 460,
41496
- hardwareButtons: modernButtons(
41618
+ hardwareButtons: /* @__PURE__ */ modernButtons(
41497
41619
  [159.1, 31.5],
41498
41620
  [220.1, 61.9],
41499
41621
  [299, 61.9],
41500
41622
  [260.8, 98.9]
41501
41623
  )
41502
41624
  }),
41503
- "iphone-15-pro-max": iosDevice({
41625
+ "iphone-15-pro-max": /* @__PURE__ */ iosDevice({
41504
41626
  model: "iphone-15-pro-max",
41505
41627
  name: "iPhone 15 Pro Max",
41506
41628
  width: 430,
@@ -41509,23 +41631,23 @@ var init_devices = __esm({
41509
41631
  statusBarHeight: 59,
41510
41632
  landscapeStatusBarHeight: 0,
41511
41633
  homeIndicatorHeight: 34,
41512
- cornerRadius: cornerRadii(53.9),
41513
- continuousCornerRadius: cornerRadii(74.654),
41514
- frameInsets: uniformFrameInsets(15.3),
41634
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
41635
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
41636
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
41515
41637
  dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
41516
41638
  statusRowCenter: 32.3,
41517
41639
  safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
41518
41640
  iosVersion: "27.0",
41519
41641
  keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
41520
41642
  physicalPPI: 460,
41521
- hardwareButtons: modernButtons(
41643
+ hardwareButtons: /* @__PURE__ */ modernButtons(
41522
41644
  [173.3, 32.2],
41523
41645
  [253.4, 61.7],
41524
41646
  [343.3, 61.7],
41525
41647
  [268.5, 98.5]
41526
41648
  )
41527
41649
  }),
41528
- "iphone-16": iosDevice({
41650
+ "iphone-16": /* @__PURE__ */ iosDevice({
41529
41651
  model: "iphone-16",
41530
41652
  name: "iPhone 16",
41531
41653
  width: 393,
@@ -41538,23 +41660,23 @@ var init_devices = __esm({
41538
41660
  // mask (extracted from the simdevicetype bundle PDF; see
41539
41661
  // packages/peach-engine/assets/device-frame-geometry). radius is a paint clip only — the
41540
41662
  // calibrated conformance-oracle layout fields below are unchanged.
41541
- cornerRadius: cornerRadii(53.9),
41542
- continuousCornerRadius: cornerRadii(73.402),
41543
- frameInsets: uniformFrameInsets(15.3),
41663
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
41664
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
41665
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
41544
41666
  dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
41545
41667
  statusRowCenter: 29.65,
41546
41668
  safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
41547
41669
  iosVersion: "27.0",
41548
41670
  keyboardPanelHeights: { qwerty: 301, pad: 302, emoji: 395 },
41549
41671
  physicalPPI: 460,
41550
- hardwareButtons: modernButtons(
41672
+ hardwareButtons: /* @__PURE__ */ modernButtons(
41551
41673
  [159.1, 31.5],
41552
41674
  [220.1, 61.9],
41553
41675
  [299, 61.9],
41554
41676
  [260.8, 98.9]
41555
41677
  )
41556
41678
  }),
41557
- "iphone-16-plus": iosDevice({
41679
+ "iphone-16-plus": /* @__PURE__ */ iosDevice({
41558
41680
  model: "iphone-16-plus",
41559
41681
  name: "iPhone 16 Plus",
41560
41682
  width: 430,
@@ -41563,23 +41685,23 @@ var init_devices = __esm({
41563
41685
  statusBarHeight: 59,
41564
41686
  landscapeStatusBarHeight: 0,
41565
41687
  homeIndicatorHeight: 34,
41566
- cornerRadius: cornerRadii(53.9),
41567
- continuousCornerRadius: cornerRadii(74.654),
41568
- frameInsets: uniformFrameInsets(15.3),
41688
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
41689
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
41690
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
41569
41691
  dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
41570
41692
  statusRowCenter: 30.05,
41571
41693
  safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
41572
41694
  iosVersion: "27.0",
41573
41695
  keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
41574
41696
  physicalPPI: 460,
41575
- hardwareButtons: modernButtons(
41697
+ hardwareButtons: /* @__PURE__ */ modernButtons(
41576
41698
  [173.3, 32.2],
41577
41699
  [253.4, 61.7],
41578
41700
  [343.3, 61.7],
41579
41701
  [268.5, 98.5]
41580
41702
  )
41581
41703
  }),
41582
- "iphone-16-pro": iosDevice({
41704
+ "iphone-16-pro": /* @__PURE__ */ iosDevice({
41583
41705
  model: "iphone-16-pro",
41584
41706
  name: "iPhone 16 Pro",
41585
41707
  width: 402,
@@ -41590,23 +41712,23 @@ var init_devices = __esm({
41590
41712
  statusBarHeight: 62,
41591
41713
  landscapeStatusBarHeight: 0,
41592
41714
  homeIndicatorHeight: 34,
41593
- cornerRadius: cornerRadii(61),
41594
- continuousCornerRadius: cornerRadii(84.661),
41595
- frameInsets: uniformFrameInsets(15.3),
41715
+ cornerRadius: /* @__PURE__ */ cornerRadii(61),
41716
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
41717
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
41596
41718
  dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
41597
41719
  statusRowCenter: 32.5,
41598
41720
  safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
41599
41721
  iosVersion: "27.0",
41600
41722
  keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
41601
41723
  physicalPPI: 460,
41602
- hardwareButtons: modernButtons(
41724
+ hardwareButtons: /* @__PURE__ */ modernButtons(
41603
41725
  [159.1, 31.5],
41604
41726
  [220.1, 61.9],
41605
41727
  [299, 61.9],
41606
41728
  [260.8, 98.9]
41607
41729
  )
41608
41730
  }),
41609
- "iphone-16-pro-max": iosDevice({
41731
+ "iphone-16-pro-max": /* @__PURE__ */ iosDevice({
41610
41732
  model: "iphone-16-pro-max",
41611
41733
  name: "iPhone 16 Pro Max",
41612
41734
  width: 440,
@@ -41618,23 +41740,23 @@ var init_devices = __esm({
41618
41740
  statusBarHeight: 62,
41619
41741
  landscapeStatusBarHeight: 0,
41620
41742
  homeIndicatorHeight: 34,
41621
- cornerRadius: cornerRadii(61.3),
41622
- continuousCornerRadius: cornerRadii(85.163),
41623
- frameInsets: uniformFrameInsets(15.4),
41743
+ cornerRadius: /* @__PURE__ */ cornerRadii(61.3),
41744
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(85.163),
41745
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.4),
41624
41746
  dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 14 },
41625
41747
  statusRowCenter: 33,
41626
41748
  safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
41627
41749
  iosVersion: "27.0",
41628
41750
  keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
41629
41751
  physicalPPI: 460,
41630
- hardwareButtons: modernButtons(
41752
+ hardwareButtons: /* @__PURE__ */ modernButtons(
41631
41753
  [178.8, 32.2],
41632
41754
  [266.8, 61.8],
41633
41755
  [352.7, 61.8],
41634
41756
  [292.2, 98.3]
41635
41757
  )
41636
41758
  }),
41637
- "iphone-17": iosDevice({
41759
+ "iphone-17": /* @__PURE__ */ iosDevice({
41638
41760
  model: "iphone-17",
41639
41761
  name: "iPhone 17",
41640
41762
  width: 402,
@@ -41644,24 +41766,24 @@ var init_devices = __esm({
41644
41766
  statusBarHeight: 62,
41645
41767
  landscapeStatusBarHeight: 0,
41646
41768
  homeIndicatorHeight: 34,
41647
- cornerRadius: cornerRadii(61),
41648
- continuousCornerRadius: cornerRadii(84.661),
41769
+ cornerRadius: /* @__PURE__ */ cornerRadii(61),
41770
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
41649
41771
  // display border 1.44mm plus the visible flat housing rail.
41650
- frameInsets: uniformFrameInsets(15.3),
41772
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
41651
41773
  dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
41652
41774
  statusRowCenter: 32.65,
41653
41775
  safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
41654
41776
  iosVersion: "27.0",
41655
41777
  keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
41656
41778
  physicalPPI: 460,
41657
- hardwareButtons: modernButtons(
41779
+ hardwareButtons: /* @__PURE__ */ modernButtons(
41658
41780
  [159.1, 31.5],
41659
41781
  [220.1, 61.9],
41660
41782
  [299, 61.9],
41661
41783
  [260.8, 98.9]
41662
41784
  )
41663
41785
  }),
41664
- "iphone-17-air": iosDevice({
41786
+ "iphone-17-air": /* @__PURE__ */ iosDevice({
41665
41787
  model: "iphone-17-air",
41666
41788
  // apple markets this as "iphone air" (not "iphone 17 air"). the real air
41667
41789
  // is 420x912 with thin bezels and a lower-sitting island. it is not the
@@ -41676,8 +41798,8 @@ var init_devices = __esm({
41676
41798
  statusBarHeight: 68,
41677
41799
  landscapeStatusBarHeight: 0,
41678
41800
  homeIndicatorHeight: 34,
41679
- cornerRadius: cornerRadii(64.6),
41680
- continuousCornerRadius: cornerRadii(88.313),
41801
+ cornerRadius: /* @__PURE__ */ cornerRadii(64.6),
41802
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(88.313),
41681
41803
  // WHICH QUANTITY THIS IS, because it has been flipped twice and each pass
41682
41804
  // read the other one as a bug: frameInsets is the VISIBLE FACE-ON frame —
41683
41805
  // the black display border plus however much housing rail you actually see
@@ -41693,21 +41815,21 @@ var init_devices = __esm({
41693
41815
  // So: 1.435mm display border = 8.69pt, plus ~2pt of rail that is actually
41694
41816
  // face-on. The 17 Pro's flat rail contributes ~6.6pt on the same basis,
41695
41817
  // which is why it sits at 15.3 and the Air should not.
41696
- frameInsets: uniformFrameInsets(10.7),
41818
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(10.7),
41697
41819
  dynamicIsland: { width: 125, height: 110 / 3, top: 20 },
41698
41820
  statusRowCenter: 39,
41699
41821
  safeAreaInsets: { top: 68, bottom: 34, left: 0, right: 0 },
41700
41822
  iosVersion: "27.0",
41701
41823
  keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
41702
41824
  physicalPPI: 460,
41703
- hardwareButtons: modernButtons(
41825
+ hardwareButtons: /* @__PURE__ */ modernButtons(
41704
41826
  [178.8, 32.2],
41705
41827
  [266.8, 61.8],
41706
41828
  [352.7, 61.8],
41707
41829
  [292.2, 98.3]
41708
41830
  )
41709
41831
  }),
41710
- "iphone-17-pro": iosDevice({
41832
+ "iphone-17-pro": /* @__PURE__ */ iosDevice({
41711
41833
  model: "iphone-17-pro",
41712
41834
  name: "iPhone 17 Pro",
41713
41835
  width: 402,
@@ -41720,27 +41842,27 @@ var init_devices = __esm({
41720
41842
  statusBarHeight: 62,
41721
41843
  landscapeStatusBarHeight: 0,
41722
41844
  homeIndicatorHeight: 34,
41723
- cornerRadius: cornerRadii(61),
41724
- continuousCornerRadius: cornerRadii(84.661),
41845
+ cornerRadius: /* @__PURE__ */ cornerRadii(61),
41846
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
41725
41847
  // the ios 27 simulator's ContainerRelativeShape at the root draws 62
41726
41848
  // less its smallest inset from the display (54 at 8pt, 32 at 30pt).
41727
- systemCornerRadius: cornerRadii(62),
41849
+ systemCornerRadius: /* @__PURE__ */ cornerRadii(62),
41728
41850
  // display border 1.44mm plus the visible flat housing rail.
41729
- frameInsets: uniformFrameInsets(15.3),
41851
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
41730
41852
  dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
41731
41853
  statusRowCenter: 33,
41732
41854
  safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
41733
41855
  iosVersion: "27.0",
41734
41856
  keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
41735
41857
  physicalPPI: 460,
41736
- hardwareButtons: modernButtons(
41858
+ hardwareButtons: /* @__PURE__ */ modernButtons(
41737
41859
  [159.1, 31.5],
41738
41860
  [220.1, 61.9],
41739
41861
  [299, 61.9],
41740
41862
  [260.8, 98.9]
41741
41863
  )
41742
41864
  }),
41743
- "iphone-17-pro-max": iosDevice({
41865
+ "iphone-17-pro-max": /* @__PURE__ */ iosDevice({
41744
41866
  model: "iphone-17-pro-max",
41745
41867
  name: "iPhone 17 Pro Max",
41746
41868
  width: 440,
@@ -41751,17 +41873,17 @@ var init_devices = __esm({
41751
41873
  statusBarHeight: 62,
41752
41874
  landscapeStatusBarHeight: 0,
41753
41875
  homeIndicatorHeight: 34,
41754
- cornerRadius: cornerRadii(61.3),
41755
- continuousCornerRadius: cornerRadii(85.163),
41876
+ cornerRadius: /* @__PURE__ */ cornerRadii(61.3),
41877
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(85.163),
41756
41878
  // display border 1.36mm plus the visible flat housing rail.
41757
- frameInsets: uniformFrameInsets(15.4),
41879
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.4),
41758
41880
  dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 14 },
41759
41881
  statusRowCenter: 33,
41760
41882
  safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
41761
41883
  iosVersion: "27.0",
41762
41884
  keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
41763
41885
  physicalPPI: 460,
41764
- hardwareButtons: modernButtons(
41886
+ hardwareButtons: /* @__PURE__ */ modernButtons(
41765
41887
  [178.8, 32.2],
41766
41888
  [266.8, 61.8],
41767
41889
  [352.7, 61.8],
@@ -41772,7 +41894,7 @@ var init_devices = __esm({
41772
41894
  // offered on contributor surfaces only while the 27 home and the hinge
41773
41895
  // measurements are still settling (nate, 2026-09-15).
41774
41896
  developmentOnly: true,
41775
- ...iosDevice({
41897
+ .../* @__PURE__ */ iosDevice({
41776
41898
  model: "iphone-duo",
41777
41899
  name: "iPhone Duo",
41778
41900
  width: 466,
@@ -41822,7 +41944,7 @@ var init_devices = __esm({
41822
41944
  keyboardPanelHeights: { qwerty: 252, pad: 256, emoji: 338 },
41823
41945
  physicalPPI: 460,
41824
41946
  // official model extraction for button positions is outside this slice.
41825
- hardwareButtons: modernButtons([0, 0], [0, 0], [0, 0], [0, 0]),
41947
+ hardwareButtons: /* @__PURE__ */ modernButtons([0, 0], [0, 0], [0, 0], [0, 0]),
41826
41948
  posture: "closed",
41827
41949
  supportedPostures: ["closed", "open"]
41828
41950
  }),
@@ -41838,9 +41960,21 @@ var init_devices = __esm({
41838
41960
  // frame and hardware buttons are not sourced yet, so this stays off the
41839
41961
  // shipping picker the same way the duo does.
41840
41962
  developmentOnly: true,
41841
- ...ipadProDevice("ipad-pro-11", "iPad Pro 11-inch (M5)", 834, 1210, 11)
41963
+ .../* @__PURE__ */ ipadProDevice(
41964
+ "ipad-pro-11",
41965
+ "iPad Pro 11-inch (M5)",
41966
+ 834,
41967
+ 1210,
41968
+ 11
41969
+ )
41842
41970
  },
41843
- "ipad-pro-13": ipadProDevice("ipad-pro-13", "iPad Pro 13-inch (M5)", 1032, 1376, 13),
41971
+ "ipad-pro-13": /* @__PURE__ */ ipadProDevice(
41972
+ "ipad-pro-13",
41973
+ "iPad Pro 13-inch (M5)",
41974
+ 1032,
41975
+ 1376,
41976
+ 13
41977
+ ),
41844
41978
  "pixel-8": {
41845
41979
  model: "pixel-8",
41846
41980
  platform: "android",
@@ -41862,8 +41996,8 @@ var init_devices = __esm({
41862
41996
  left: 0,
41863
41997
  right: 0
41864
41998
  },
41865
- cornerRadius: cornerRadii(39),
41866
- continuousCornerRadius: cornerRadii(39),
41999
+ cornerRadius: /* @__PURE__ */ cornerRadii(39),
42000
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(39),
41867
42001
  // android studio's pixel 8 device art places the 1080x2400 display at
41868
42002
  // (49,55) in a 1187x2513 body. the right side button occupies the final
41869
42003
  // 8 physical pixels, so the body insets are 49/50/58/55 at 2.625x.
@@ -41912,8 +42046,8 @@ var init_devices = __esm({
41912
42046
  left: 0,
41913
42047
  right: 0
41914
42048
  },
41915
- cornerRadius: cornerRadii(39),
41916
- continuousCornerRadius: cornerRadii(39),
42049
+ cornerRadius: /* @__PURE__ */ cornerRadii(39),
42050
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(39),
41917
42051
  frameInsets: {
41918
42052
  top: 55 / 2.625,
41919
42053
  right: 50 / 2.625,
@@ -41954,10 +42088,10 @@ var init_devices = __esm({
41954
42088
  keyboardPanelHeights: { qwerty: 308, pad: 308, emoji: 395 },
41955
42089
  navigationBarMode: "gesture",
41956
42090
  displayCutout: { top: 40, bottom: 0, left: 0, right: 0 },
41957
- cornerRadius: cornerRadii(41),
41958
- continuousCornerRadius: cornerRadii(41),
42091
+ cornerRadius: /* @__PURE__ */ cornerRadii(41),
42092
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(41),
41959
42093
  // Pixel 9 Pro XL body 162.8×76.6mm over a 70.2mm panel → ~1.8mm ≈ 12pt.
41960
- frameInsets: uniformFrameInsets(12),
42094
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(12),
41961
42095
  dynamicIsland: null,
41962
42096
  cameraCutout: { diameter: 24 },
41963
42097
  safeAreaInsets: {
@@ -41992,11 +42126,11 @@ var init_devices = __esm({
41992
42126
  keyboardPanelHeights: { qwerty: 308, pad: 308, emoji: 395 },
41993
42127
  navigationBarMode: "gesture",
41994
42128
  displayCutout: { top: 40, bottom: 0, left: 0, right: 0 },
41995
- cornerRadius: cornerRadii(40),
41996
- continuousCornerRadius: cornerRadii(40),
42129
+ cornerRadius: /* @__PURE__ */ cornerRadii(40),
42130
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(40),
41997
42131
  // the 72mm body surrounds a roughly 65.1mm-wide 6.3-inch panel, which
41998
42132
  // resolves to about 18 logical points of frame around the 1080px display.
41999
- frameInsets: uniformFrameInsets(18),
42133
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(18),
42000
42134
  dynamicIsland: null,
42001
42135
  cameraCutout: { diameter: 26 },
42002
42136
  safeAreaInsets: {
@@ -42031,11 +42165,11 @@ var init_devices = __esm({
42031
42165
  keyboardPanelHeights: { qwerty: 308, pad: 308, emoji: 395 },
42032
42166
  navigationBarMode: "gesture",
42033
42167
  displayCutout: { top: 36, bottom: 0, left: 0, right: 0 },
42034
- cornerRadius: cornerRadii(36),
42035
- continuousCornerRadius: cornerRadii(36),
42168
+ cornerRadius: /* @__PURE__ */ cornerRadii(36),
42169
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(36),
42036
42170
  // Galaxy S24 body 147.0×70.6mm over a 65.9mm panel → ~1.2mm ≈ 8pt (Samsung
42037
42171
  // flat-display bezels are noticeably thinner than Pixel's).
42038
- frameInsets: uniformFrameInsets(8),
42172
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(8),
42039
42173
  dynamicIsland: null,
42040
42174
  cameraCutout: { diameter: 18 },
42041
42175
  safeAreaInsets: {
@@ -42071,10 +42205,10 @@ var init_devices = __esm({
42071
42205
  keyboardPanelHeights: { qwerty: 308, pad: 308, emoji: 395 },
42072
42206
  navigationBarMode: "gesture",
42073
42207
  displayCutout: { top: 36, bottom: 0, left: 0, right: 0 },
42074
- cornerRadius: cornerRadii(24),
42075
- continuousCornerRadius: cornerRadii(24),
42208
+ cornerRadius: /* @__PURE__ */ cornerRadii(24),
42209
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(24),
42076
42210
  // Galaxy S24 Ultra body 162.3×79.0mm over a 72.4mm panel → ~1.5mm ≈ 9pt.
42077
- frameInsets: uniformFrameInsets(9),
42211
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(9),
42078
42212
  dynamicIsland: null,
42079
42213
  cameraCutout: { diameter: 18 },
42080
42214
  safeAreaInsets: {
@@ -42933,9 +43067,17 @@ var init_metroDebugSourceMap = __esm({
42933
43067
 
42934
43068
  // ../contrast-bundler/src/metroCloudArtifact.ts
42935
43069
  async function minify(code, sourceLine, options, withMap) {
42936
- const result = await (0, import_terser.minify)(code, {
43070
+ const mapped = new import_magic_string.default(code);
43071
+ const compiled = (0, import_worklet_executable.compileWorkletExecutables)(code, (offset, text3) => {
43072
+ mapped.appendLeft(offset, text3);
43073
+ });
43074
+ const result = await (0, import_terser.minify)(compiled, {
42937
43075
  ...options,
42938
- ...withMap ? { sourceMap: true } : {}
43076
+ ...withMap ? {
43077
+ sourceMap: {
43078
+ content: mapped.generateMap({ hires: true, source: "0" }).toString()
43079
+ }
43080
+ } : {}
42939
43081
  });
42940
43082
  if (typeof result.code !== "string") {
42941
43083
  throw new Error(`peach Cloud could not re-print the statement at line ${sourceLine}`);
@@ -43101,14 +43243,16 @@ async function buildRnxCloudArtifact(bundle, options = {}) {
43101
43243
  }
43102
43244
  };
43103
43245
  }
43104
- var import_config2, import_metro_production_bundle, import_native_app_identity, import_native_firebase_metadata, import_terser, MODULE_PATHS_REQUIRED, SOURCE_MAP_REQUIRED, MINIFY_OPTIONS;
43246
+ var import_magic_string, import_config2, import_metro_production_bundle, import_native_app_identity, import_native_firebase_metadata, import_worklet_executable, import_terser, MODULE_PATHS_REQUIRED, SOURCE_MAP_REQUIRED, MINIFY_OPTIONS;
43105
43247
  var init_metroCloudArtifact = __esm({
43106
43248
  "../contrast-bundler/src/metroCloudArtifact.ts"() {
43107
43249
  "use strict";
43250
+ import_magic_string = __toESM(require("magic-string"), 1);
43108
43251
  import_config2 = require("peachsim/config");
43109
43252
  import_metro_production_bundle = require("peachsim/metro-production-bundle");
43110
43253
  import_native_app_identity = require("peachsim/native-app-identity");
43111
43254
  import_native_firebase_metadata = require("peachsim/native-firebase-metadata");
43255
+ import_worklet_executable = require("peachsim/worklet-executable");
43112
43256
  import_terser = require("terser");
43113
43257
  init_metroAssetArtifact();
43114
43258
  init_metroDebugSourceMap();