@vinena/knobs 0.5.1 → 0.5.3

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 (65) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +7 -0
  3. package/dist/early.global.js +6 -6
  4. package/dist/{elementsview-tf4qzmtw.js → elementsview-1wsxcdtj.js} +4 -4
  5. package/dist/{elementsview-jnkbhzkj.js → elementsview-3kv34jfx.js} +4 -4
  6. package/dist/engine/browserdraw.d.ts +29 -2
  7. package/dist/engine/browserkit.d.ts +20 -1
  8. package/dist/engine/browserui.d.ts +162 -22
  9. package/dist/engine/devices.d.ts +3 -2
  10. package/dist/engine/devicon.d.ts +59 -0
  11. package/dist/engine/fit.d.ts +4 -3
  12. package/dist/engine/foldflip.d.ts +40 -0
  13. package/dist/engine/frames.d.ts +1 -0
  14. package/dist/engine/identity.d.ts +12 -5
  15. package/dist/engine/index.d.ts +2 -0
  16. package/dist/engine/mock.d.ts +14 -0
  17. package/dist/engine/mockdata.d.ts +5 -1
  18. package/dist/engine/morphrun.d.ts +4 -0
  19. package/dist/engine/native.d.ts +31 -3
  20. package/dist/engine/notice.d.ts +1 -2
  21. package/dist/engine/pageshot.d.ts +5 -2
  22. package/dist/engine/safaridraw.d.ts +162 -10
  23. package/dist/engine/screen.d.ts +24 -0
  24. package/dist/engine/store.d.ts +2 -1
  25. package/dist/engine/tabicon.d.ts +43 -0
  26. package/dist/engine/toplayer.d.ts +62 -0
  27. package/dist/engine/touchpointer.d.ts +0 -21
  28. package/dist/engine/underbar.d.ts +61 -0
  29. package/dist/engine/width.d.ts +3 -0
  30. package/dist/{framekit-3n7p79ht.js → framekit-cjz0e4y8.js} +2492 -1587
  31. package/dist/{framekit-g96t6nmq.js → framekit-yk1jxjv7.js} +2492 -1587
  32. package/dist/host.d.ts +51 -0
  33. package/dist/{index-33x9hxe3.js → index-6wbgqkdz.js} +626 -189
  34. package/dist/{index-2d6wvs8h.js → index-9jhatmky.js} +4 -4
  35. package/dist/{index-zvze25nf.js → index-begsqdm0.js} +1 -1
  36. package/dist/{index-peh33xjv.js → index-j1h13ahg.js} +1 -1
  37. package/dist/{index-5baxvd3v.js → index-p57fdttx.js} +307 -129
  38. package/dist/{index-dvr4x91q.js → index-prjpx67p.js} +20 -8
  39. package/dist/{index-d0cjxjsm.js → index-q73py563.js} +1 -1
  40. package/dist/{index-ke6v7919.js → index-sn2y6j09.js} +20 -8
  41. package/dist/{index-0casarhy.js → index-vgfn2n1h.js} +1 -1
  42. package/dist/{index-k015tb6c.js → index-zt3rheck.js} +4 -4
  43. package/dist/index.d.ts +26 -1
  44. package/dist/index.global.js +299 -176
  45. package/dist/index.js +424 -124
  46. package/dist/instance.d.ts +23 -4
  47. package/dist/{react-qv0nykcv.js → react-3rhdj2k1.js} +623 -186
  48. package/dist/{react-carf84xv.js → react-6tss0r9f.js} +307 -129
  49. package/dist/{react-eygws6cx.js → react-7vjfsh40.js} +4 -4
  50. package/dist/{react-71a9ypex.js → react-806qmkyz.js} +4 -4
  51. package/dist/{react-65tgdbs8.js → react-gefkdkdz.js} +1 -1
  52. package/dist/{react-sq9pkw4k.js → react-mmq2zya3.js} +1 -1
  53. package/dist/{react-xxfpfddf.js → react-qfpg79hs.js} +1 -1
  54. package/dist/{react-pdvseef0.js → react-qgz9afa2.js} +1 -1
  55. package/dist/react.js +420 -123
  56. package/dist/{storageview-sb23henh.js → storageview-7cv0vpdm.js} +4 -4
  57. package/dist/{storageview-vf8v8q8j.js → storageview-dyhpgt8f.js} +4 -4
  58. package/dist/types.d.ts +14 -0
  59. package/dist/ui/footer.d.ts +9 -2
  60. package/dist/ui/panel.d.ts +16 -2
  61. package/dist/ui/settings.d.ts +25 -1
  62. package/dist/version.d.ts +2 -0
  63. package/package.json +3 -2
  64. package/skills/devknobs/SKILL.md +1 -1
  65. package/dist/engine/endroom.d.ts +0 -21
@@ -57,7 +57,7 @@ var DEVICES = [
57
57
  touch: true,
58
58
  kind: "phone",
59
59
  postures: {
60
- closed: { id: "iphone-duo-closed", label: "iPhone Duo (closed)" },
60
+ closed: { id: "iphone-duo-closed", label: "iPhone Duo (closed)", clockwise: true },
61
61
  open: {
62
62
  id: "iphone-duo-open",
63
63
  label: "iPhone Duo (open)",
@@ -377,7 +377,7 @@ function hold(state, patch) {
377
377
  }
378
378
  return next;
379
379
  }
380
- function settle(state) {
380
+ function settle(state, dropUa = true) {
381
381
  const { width, height } = state;
382
382
  const sized = typeof width === "number" && typeof height === "number";
383
383
  const orientation = sized && width > height ? "landscape" : "portrait";
@@ -388,7 +388,9 @@ function settle(state) {
388
388
  const same = orientation === state.orientation && posture === state.posture;
389
389
  if (same && id === state.device)
390
390
  return state;
391
- return { ...state, orientation, posture, device: id };
391
+ const dropped = dropUa && id !== state.device && device !== undefined && state.ua.preset === device.ua;
392
+ const ua = dropped ? { ...state.ua, preset: "system" } : state.ua;
393
+ return { ...state, orientation, posture, device: id, ua };
392
394
  }
393
395
 
394
396
  // src/engine/stored.ts
@@ -1209,6 +1211,8 @@ var DEFAULT_STATE = {
1209
1211
  tab: "top",
1210
1212
  docked: false,
1211
1213
  handle: true,
1214
+ devIcon: "auto",
1215
+ realPhone: false,
1212
1216
  pinned: [...DEFAULT_PINNED]
1213
1217
  }
1214
1218
  };
@@ -1227,6 +1231,7 @@ var BROWSERS = ["auto", "compact", "bottom", "top", "off"];
1227
1231
  var ORIENTATIONS = ["portrait", "landscape"];
1228
1232
  var EDGES = ["top", "bottom", "none"];
1229
1233
  var SIDES2 = ["left", "right"];
1234
+ var DEV_ICONS = ["auto", "on", "off"];
1230
1235
  var VISIONS = [
1231
1236
  "none",
1232
1237
  "protanopia",
@@ -1379,6 +1384,8 @@ function parse(json, place) {
1379
1384
  open: bool(panel.open, DEFAULT_STATE.panel.open),
1380
1385
  ...placeOf(panel, home),
1381
1386
  handle: bool(panel.handle, DEFAULT_STATE.panel.handle),
1387
+ devIcon: oneOf(panel.devIcon, DEV_ICONS, DEFAULT_STATE.panel.devIcon),
1388
+ realPhone: bool(panel.realPhone, DEFAULT_STATE.panel.realPhone),
1382
1389
  pinned: state.panel === undefined ? [...DEFAULT_PINNED] : rowIds(panel.pinned)
1383
1390
  }
1384
1391
  };
@@ -1397,7 +1404,7 @@ function merge(state, patch) {
1397
1404
  network: { ...state.network, ...held.network },
1398
1405
  ua: { ...state.ua, ...held.ua },
1399
1406
  panel: { ...state.panel, ...held.panel }
1400
- });
1407
+ }, patch.ua === undefined);
1401
1408
  }
1402
1409
  function item(kind, key) {
1403
1410
  try {
@@ -1407,11 +1414,13 @@ function item(kind, key) {
1407
1414
  }
1408
1415
  }
1409
1416
  function load() {
1410
- return parse(item("session", STORAGE_KEY), item("local", PLACE_KEY));
1417
+ const state = parse(item("session", STORAGE_KEY), item("local", PLACE_KEY));
1418
+ return { ...state, panel: { ...state.panel, realPhone: DEFAULT_STATE.panel.realPhone } };
1411
1419
  }
1412
1420
  function save(state) {
1413
1421
  try {
1414
- webStorage("session")?.setItem(STORAGE_KEY, JSON.stringify(stamped(state, STATE_VERSION)));
1422
+ const { realPhone: _, ...panel } = state.panel;
1423
+ webStorage("session")?.setItem(STORAGE_KEY, JSON.stringify(stamped({ ...state, panel }, STATE_VERSION)));
1415
1424
  } catch {}
1416
1425
  }
1417
1426
  function keepPlace(state) {
@@ -1962,7 +1971,7 @@ function iphoneRight(control) {
1962
1971
  }
1963
1972
  var BODIES = {
1964
1973
  "iphone-18-pro": {
1965
- bezel: sides2(15.7, 16, 15.7, 15.7),
1974
+ bezel: sides2(15.7, 15.7, 15.7, 15.7),
1966
1975
  screenRadius: 62,
1967
1976
  bodyRadius: 77.7,
1968
1977
  out: 3,
@@ -1970,7 +1979,7 @@ var BODIES = {
1970
1979
  buttons: [left(186, 41.7), left(258.3, 67.7), left(344, 68), right(281.7, 107, 2.7)]
1971
1980
  },
1972
1981
  "iphone-18-pro-max": {
1973
- bezel: sides2(15.3, 15.3, 15, 15.3),
1982
+ bezel: sides2(15.3, 15.3, 15.3, 15.3),
1974
1983
  screenRadius: 62,
1975
1984
  bodyRadius: 77.3,
1976
1985
  out: 2.7,
@@ -1998,36 +2007,36 @@ var BODIES = {
1998
2007
  screenRadius: 62,
1999
2008
  bodyRadius: 77.3,
2000
2009
  out: 2.7,
2001
- front: [pill("sensor", 147.8, 20.4, 124.6, 36)],
2010
+ front: [pill("sensor", 147.33, 20, 125.33, 36.67)],
2002
2011
  buttons: [left(185, 41.7), left(257.3, 67.7), left(343, 67.7), right(280.7, 106.7, 3)]
2003
2012
  },
2004
2013
  "iphone-17": {
2005
- bezel: sides2(14.3, 14.7, 14.3, 14.7),
2014
+ bezel: sides2(14.7, 14.7, 14.7, 14.7),
2006
2015
  screenRadius: 62,
2007
2016
  bodyRadius: 76.7,
2008
2017
  out: 3,
2009
- front: [pill("sensor", 138.8, 14.3, 124.5, 35.9)],
2018
+ front: [pill("sensor", 138.33, 14, 125.33, 36.67)],
2010
2019
  buttons: [left(185, 41.7), left(257.3, 67.7), left(342.7, 68), right(280.3, 107, 2.7)]
2011
2020
  },
2012
2021
  "iphone-17-pro": {
2013
- bezel: sides2(15.7, 16, 15.7, 15.7),
2022
+ bezel: sides2(15.7, 15.7, 15.7, 15.7),
2014
2023
  screenRadius: 62,
2015
2024
  bodyRadius: 77.7,
2016
2025
  out: 3,
2017
- front: [pill("sensor", 138.8, 14.4, 124.4, 35.8)],
2026
+ front: [pill("sensor", 138.33, 14, 125.33, 36.67)],
2018
2027
  buttons: [left(186, 41.7), left(258.3, 67.7), left(344, 67.7), right(281.7, 107, 2.7)]
2019
2028
  },
2020
2029
  "iphone-17-pro-max": {
2021
- bezel: sides2(15.3, 15.3, 15, 15.3),
2030
+ bezel: sides2(15.3, 15.3, 15.3, 15.3),
2022
2031
  screenRadius: 62,
2023
2032
  bodyRadius: 77.3,
2024
2033
  out: 2.7,
2025
- front: [pill("sensor", 157.8, 14.5, 124.4, 35.8)],
2034
+ front: [pill("sensor", 157.33, 14, 125.33, 36.67)],
2026
2035
  buttons: [left(186.3, 41.7), left(258.7, 67.7), left(344.3, 67.7), right(282, 106.7)]
2027
2036
  },
2028
2037
  "iphone-16": {
2029
- bezel: sides2(19.7, 19.7, 19.8, 19.7),
2030
- screenRadius: 55,
2038
+ bezel: sides2(19.7, 19.7, 19.7, 19.7),
2039
+ screenRadius: 55.8,
2031
2040
  bodyRadius: 75.5,
2032
2041
  out: 2.7,
2033
2042
  front: [pill("sensor", 134, 11.3, 124.9, 36.7)],
@@ -2035,23 +2044,23 @@ var BODIES = {
2035
2044
  },
2036
2045
  "iphone-16-plus": {
2037
2046
  bezel: sides2(19.7, 19.7, 19.7, 19.7),
2038
- screenRadius: 55,
2047
+ screenRadius: 55.8,
2039
2048
  bodyRadius: 75.5,
2040
2049
  out: 2.7,
2041
2050
  front: [pill("sensor", 152.3, 11.3, 125.4, 36.7)],
2042
2051
  buttons: [...IPHONE_LEFT, ...iphoneRight(608.5)]
2043
2052
  },
2044
2053
  "iphone-16-pro": {
2045
- bezel: sides2(14.7, 14.7, 14.4, 14.7),
2046
- screenRadius: 62,
2054
+ bezel: sides2(14.7, 14.7, 14.7, 14.7),
2055
+ screenRadius: 63.2,
2047
2056
  bodyRadius: 77.9,
2048
2057
  out: 2.7,
2049
- front: [pill("sensor", 138.4, 13.5, 125.2, 36.7)],
2058
+ front: [pill("sensor", 138.33, 14, 125.33, 36.67)],
2050
2059
  buttons: [...IPHONE_LEFT, ...iphoneRight(541.3)]
2051
2060
  },
2052
2061
  "iphone-16-pro-max": {
2053
2062
  bezel: sides2(14.3, 14.3, 14.3, 14.3),
2054
- screenRadius: 62,
2063
+ screenRadius: 63.6,
2055
2064
  bodyRadius: 77.9,
2056
2065
  out: 2.7,
2057
2066
  front: [pill("sensor", 157.3, 14, 125.4, 36.7)],
@@ -2156,19 +2165,57 @@ var LAYOUTS = {
2156
2165
  safari: ["compact", "bottom", "top", "off"],
2157
2166
  chrome: ["top", "bottom", "off"]
2158
2167
  };
2168
+ var DUO_COVER = {
2169
+ column: 84,
2170
+ bottom: 98,
2171
+ minimized: 60,
2172
+ axis: 48,
2173
+ time: { y: 91.5, size: 15.75 },
2174
+ ring: { y: 129.9, radius: 18.9, stroke: 3.5 },
2175
+ buttons: [174.2, 234.2],
2176
+ capsule: 102,
2177
+ gap: 34,
2178
+ inset: 24,
2179
+ across: {
2180
+ top: 80,
2181
+ minimized: 26,
2182
+ side: 7.33,
2183
+ address: { x: 209, width: 260 },
2184
+ end: 149.33
2185
+ }
2186
+ };
2187
+ var DUO_INNER = {
2188
+ top: 80,
2189
+ minimized: 51,
2190
+ axis: 47.67,
2191
+ time: { x: 99.83, y: 47.4, size: 15.75 },
2192
+ ring: { y: 47.9, radius: 18.9, stroke: 3.5 },
2193
+ side: 6,
2194
+ address: { landscape: { x: 295, width: 361 }, portrait: { x: 184, width: 241.5 } },
2195
+ end: 232,
2196
+ pill: 23.5
2197
+ };
2198
+ var DUO_ROW = 26;
2199
+ var DUO_PILL = { height: 20, size: 12, pad: 15 };
2200
+ function runsUnderBars(id) {
2201
+ return !SAFARI[id]?.duo;
2202
+ }
2203
+ var DUO_LAYOUTS = ["compact", "off"];
2204
+ var STATUS_PRO = { time: 73.83, right: 369.67 };
2205
+ var STATUS_MAX = { time: 83.17, right: 401.67 };
2159
2206
  var SAFARI = {
2160
2207
  "iphone-18-pro": { top: 62, side: 62, faceId: true },
2161
2208
  "iphone-18-pro-max": { top: 62, side: 62, faceId: true },
2162
- "iphone-duo-closed": { top: 82, side: 82, faceId: true },
2163
- "iphone-duo-open": { top: 40, side: 24, faceId: true },
2164
- "iphone-air": { top: 68, side: 68, faceId: true },
2165
- "iphone-17": { top: 62, side: 62, faceId: true },
2166
- "iphone-17-pro": { top: 62, side: 62, faceId: true },
2167
- "iphone-17-pro-max": { top: 62, side: 62, faceId: true },
2209
+ "iphone-duo-closed": { top: 0, side: 0, faceId: true, duo: "cover" },
2210
+ "iphone-duo-open": { top: DUO_INNER.top, side: 0, faceId: true, duo: "inner" },
2211
+ "iphone-air": { top: 68, side: 68, faceId: true, status: { time: 77.17, right: 387.67 } },
2212
+ "iphone-17": { top: 62, side: 62, faceId: true, status: STATUS_PRO },
2213
+ "iphone-17-pro": { top: 62, side: 62, faceId: true, status: STATUS_PRO },
2214
+ "iphone-17-pro-max": { top: 62, side: 62, faceId: true, status: STATUS_MAX },
2168
2215
  "iphone-16": { top: 59, side: 59, faceId: true },
2169
2216
  "iphone-16-plus": { top: 59, side: 59, faceId: true },
2170
- "iphone-16-pro": { top: 62, side: 62, faceId: true },
2171
- "iphone-16-pro-max": { top: 62, side: 62, faceId: true },
2217
+ "iphone-16-pro": { top: 62, side: 62, faceId: true, status: STATUS_PRO },
2218
+ "iphone-16-pro-max": { top: 62, side: 62, faceId: true, status: STATUS_MAX },
2172
2219
  "iphone-se": { top: 20, side: 0, faceId: false }
2173
2220
  };
2174
2221
  var CHROME = {
@@ -2199,6 +2246,8 @@ function platformOf(id) {
2199
2246
  return null;
2200
2247
  }
2201
2248
  function layoutOptions(id) {
2249
+ if (SAFARI[id]?.duo)
2250
+ return DUO_LAYOUTS;
2202
2251
  const platform = platformOf(id);
2203
2252
  return platform ? LAYOUTS[platform] : [];
2204
2253
  }
@@ -2218,10 +2267,22 @@ function viewportOf(device, orientation, layout, minimized, edge = false) {
2218
2267
  if (!layout || layout === "off")
2219
2268
  return whole;
2220
2269
  const safari = SAFARI[device.id];
2270
+ if (safari?.duo === "cover" && orientation === "landscape") {
2271
+ const { across } = DUO_COVER;
2272
+ const top2 = minimized ? across.minimized : across.top;
2273
+ return rect(0, top2, W, H - top2);
2274
+ }
2275
+ if (safari?.duo === "cover") {
2276
+ const bottom = minimized ? DUO_COVER.minimized : DUO_COVER.bottom;
2277
+ return rect(0, 0, W - DUO_COVER.column, H - bottom);
2278
+ }
2279
+ if (safari?.duo === "inner") {
2280
+ const top2 = minimized ? DUO_INNER.minimized : DUO_INNER.top;
2281
+ return rect(0, top2, W, H - top2);
2282
+ }
2221
2283
  if (safari) {
2222
- if (edge) {
2223
- return orientation === "landscape" ? rect(safari.side, 0, W - 2 * safari.side, H) : rect(0, safari.top, W, H - safari.top);
2224
- }
2284
+ if (edge && orientation === "landscape")
2285
+ return rect(safari.side, 0, W - 2 * safari.side, H);
2225
2286
  if (orientation === "landscape") {
2226
2287
  const top2 = minimized ? 0 : SAFARI_BARS.landscape;
2227
2288
  return rect(safari.side, top2, W - 2 * safari.side, H - top2);
@@ -2249,58 +2310,34 @@ function viewportOf(device, orientation, layout, minimized, edge = false) {
2249
2310
  const height = tall - chrome.top - toolbar - chin;
2250
2311
  return rect(0, chrome.top + (layout === "top" ? toolbar : 0), W, height);
2251
2312
  }
2252
- function endRoom(device, orientation, layout, minimized, edge) {
2253
- if (!edge)
2254
- return 0;
2255
- const drawn = viewportOf(device, orientation, layout, minimized, true);
2256
- const real = viewportOf(device, orientation, layout, minimized);
2257
- return drawn.y + drawn.height - (real.y + real.height);
2258
- }
2259
2313
  function capsule(kind, box, marks = []) {
2260
2314
  return { kind, ...box, radius: Math.min(box.width, box.height) / 2, marks };
2261
2315
  }
2262
2316
  function mark(glyph, x, y) {
2263
2317
  return { glyph, x, y };
2264
2318
  }
2265
- var FADE = [
2266
- [-64, 0],
2267
- [-52, 0.05],
2268
- [-40, 0.12],
2269
- [-28, 0.24],
2270
- [-18, 0.4],
2271
- [-9, 0.6],
2272
- [0, 0.85]
2319
+ var SCRIM = [
2320
+ [0, 0.81],
2321
+ [20, 0.67],
2322
+ [40, 0.41],
2323
+ [60, 0.16],
2324
+ [80, 0.03],
2325
+ [100, 0]
2273
2326
  ];
2274
- var FADE_EDGE = 0.92;
2275
- function edgeFade(bars, H) {
2276
- const low = bars.shapes.filter((shape) => shape.kind !== "pill" && shape.y > H / 2);
2277
- if (bars.minimized || low.length === 0) {
2278
- const stops = [
2279
- { at: 0, alpha: 0 },
2280
- { at: 12, alpha: 0.12 },
2281
- { at: 24, alpha: 0.35 }
2282
- ];
2283
- return { y: H - 24, height: 24, stops };
2327
+ function alphaAt(fade, y) {
2328
+ const at = y - fade.y;
2329
+ const { stops } = fade;
2330
+ const first = stops[0];
2331
+ if (!first || at <= first.at)
2332
+ return first?.alpha ?? 0;
2333
+ for (let i = 1;i < stops.length; i++) {
2334
+ const from = stops[i - 1];
2335
+ const to = stops[i];
2336
+ if (!from || !to || at > to.at)
2337
+ continue;
2338
+ return from.alpha + (to.alpha - from.alpha) * (at - from.at) / (to.at - from.at || 1);
2284
2339
  }
2285
- const y = Math.min(...low.map((shape) => shape.y)) - 40;
2286
- const height = H - y;
2287
- const eased = [
2288
- [0, 0],
2289
- [0.33, 0.06],
2290
- [0.6, 0.18],
2291
- [0.8, 0.33],
2292
- [1, 0.55]
2293
- ];
2294
- return { y, height, stops: eased.map(([at, alpha]) => ({ at: Math.round(at * height), alpha })) };
2295
- }
2296
- function fadeFrom(end, H) {
2297
- if (end >= H)
2298
- return null;
2299
- const y = end + (FADE[0]?.[0] ?? 0);
2300
- const stops = FADE.filter(([at]) => end + at < H).map(([at, alpha]) => {
2301
- return { at: end + at - y, alpha };
2302
- });
2303
- return { y, height: H - y, stops: [...stops, { at: H - y, alpha: FADE_EDGE }] };
2340
+ return stops.at(-1)?.alpha ?? 0;
2304
2341
  }
2305
2342
  function sensorMiddle(id) {
2306
2343
  const sensor = BODIES[id]?.front.find((front) => front.kind === "sensor");
@@ -2309,19 +2346,21 @@ function sensorMiddle(id) {
2309
2346
  return { x: sensor.x + sensor.width / 2, y: sensor.y + sensor.height / 2, width: sensor.width };
2310
2347
  }
2311
2348
  var SAFARI_TEXT = { field: 17, pill: 13 };
2349
+ var SAFARI_PILL = { height: 32, size: SAFARI_TEXT.pill, pad: 33 };
2312
2350
  var BOTTOM_ROW = [0.1032, 0.3056, 0.4965, 0.6925, 0.8872];
2313
2351
  var TOP_ROW = [0.0884, 0.2986, 0.4962, 0.6994, 0.9012];
2314
2352
  var ROW = ["back", "forward", "share", "bookmarks", "tabs"];
2315
- function domainPill(W, top2) {
2353
+ function domainPill(x, top2, look = SAFARI_PILL) {
2354
+ const { height, size, pad } = look;
2316
2355
  return {
2317
2356
  kind: "pill",
2318
- x: W / 2,
2357
+ x,
2319
2358
  y: top2,
2320
2359
  width: 0,
2321
- height: 32,
2322
- radius: 16,
2360
+ height,
2361
+ radius: height / 2,
2323
2362
  marks: [],
2324
- text: { x: W / 2, y: top2 + 16, size: SAFARI_TEXT.pill }
2363
+ text: { x, y: top2 + height / 2, size, pad }
2325
2364
  };
2326
2365
  }
2327
2366
  function address(kind, box, page, reload) {
@@ -2334,6 +2373,74 @@ function address(kind, box, page, reload) {
2334
2373
  text: { x: box.x + box.width / 2, y, size: SAFARI_TEXT.field }
2335
2374
  };
2336
2375
  }
2376
+ function acrossRow(left2, right2, y) {
2377
+ const s = left2;
2378
+ const row = (x2, width2) => rect(x2, y, width2, 44);
2379
+ const end = row(right2 - 10 - 132, 132);
2380
+ const middle = y + 22;
2381
+ const [from, to] = [s + 66 + 44 + 8, end.x - 8];
2382
+ const width = Math.min(318, to - from);
2383
+ const x = Math.min(Math.max((left2 + right2) / 2 - width / 2, from), to - width);
2384
+ return [
2385
+ capsule("glass", row(s + 10, 44), [mark("back", s + 32, middle)]),
2386
+ capsule("glass", row(s + 66, 44), [mark("bookmarks", s + 88, middle)]),
2387
+ address("glass", row(x, width), 24, 22),
2388
+ capsule("glass", end, [
2389
+ mark("share", end.x + 22, middle),
2390
+ mark("plus", end.x + 66, middle),
2391
+ mark("tabs", end.x + 110, middle)
2392
+ ])
2393
+ ];
2394
+ }
2395
+ function duoRow(side, field, endX, end) {
2396
+ const y = DUO_ROW;
2397
+ const middle = y + 22;
2398
+ const row = (x, width) => rect(x, y, width, 44);
2399
+ return [
2400
+ capsule("glass", row(side + 10, 44), [mark("back", side + 32, middle)]),
2401
+ capsule("glass", row(side + 66, 44), [mark("bookmarks", side + 88, middle)]),
2402
+ address("glass", row(field.x, field.width), 22, 24.5),
2403
+ capsule("glass", row(endX, 44 * end.length), end.map((glyph, at) => mark(glyph, endX + 22 + 44 * at, middle)))
2404
+ ];
2405
+ }
2406
+ function duoCover(bars, W, H, orientation, minimized) {
2407
+ const c = DUO_COVER;
2408
+ if (orientation === "landscape") {
2409
+ const { across } = c;
2410
+ if (minimized)
2411
+ bars.shapes = [domainPill(W / 2, (across.minimized - DUO_PILL.height) / 2, DUO_PILL)];
2412
+ else
2413
+ bars.shapes = duoRow(across.side, across.address, W - across.end, ["share", "plus", "tabs"]);
2414
+ return bars;
2415
+ }
2416
+ const page = W - c.column;
2417
+ const x = W - c.axis;
2418
+ bars.column = { x, strip: false, time: { x, ...c.time }, ring: { ...c.ring } };
2419
+ if (minimized) {
2420
+ bars.shapes = [domainPill(page / 2, H - 46)];
2421
+ return bars;
2422
+ }
2423
+ const button = (y, glyph) => capsule("glass", rect(x - 24, y, 48, 48), [mark(glyph, x, y + 24)]);
2424
+ const [back = 0, reader = 0] = c.buttons;
2425
+ const low = H - c.gap - c.capsule;
2426
+ bars.shapes = [
2427
+ address("glass", rect(c.inset, H - c.gap - 48, page - 2 * c.inset, 48), 24, 24),
2428
+ button(back, "back"),
2429
+ button(reader, "bookmarks"),
2430
+ capsule("glass", rect(x - 24, low, 48, c.capsule), [mark("plus", x, low + 24), mark("tabs", x, H - c.gap - 24)])
2431
+ ];
2432
+ return bars;
2433
+ }
2434
+ function duoInner(bars, W, orientation, minimized) {
2435
+ const d = DUO_INNER;
2436
+ if (minimized) {
2437
+ bars.shapes = [domainPill(W / 2, d.pill, DUO_PILL)];
2438
+ return bars;
2439
+ }
2440
+ bars.column = { x: W - d.axis, strip: true, time: { ...d.time, x: W - d.time.x }, ring: { ...d.ring } };
2441
+ bars.shapes = duoRow(d.side, d.address[orientation], W - d.end, ["plus", "tabs"]);
2442
+ return bars;
2443
+ }
2337
2444
  function safariBars(device, spec, orientation, layout, minimized) {
2338
2445
  const { width: W, height: H } = turn(device, orientation);
2339
2446
  const bars = {
@@ -2343,38 +2450,29 @@ function safariBars(device, spec, orientation, layout, minimized) {
2343
2450
  orientation,
2344
2451
  minimized,
2345
2452
  status: null,
2453
+ column: null,
2346
2454
  shapes: [],
2347
2455
  chin: null,
2348
2456
  hairline: null,
2349
- fade: null,
2457
+ scrim: null,
2350
2458
  edge: false
2351
2459
  };
2460
+ if (spec.duo === "cover")
2461
+ return duoCover(bars, W, H, orientation, minimized);
2462
+ if (spec.duo === "inner")
2463
+ return duoInner(bars, W, orientation, minimized);
2352
2464
  if (orientation === "landscape") {
2353
- if (minimized)
2354
- return bars;
2355
- const s = spec.side;
2356
- const y = 10;
2357
- const row2 = (x, width) => rect(x, y, width, 44);
2358
- const right2 = row2(W - s - 10 - 132, 132);
2359
- const middle = y + 22;
2360
- bars.shapes = [
2361
- capsule("glass", row2(s + 10, 44), [mark("back", s + 32, middle)]),
2362
- capsule("glass", row2(s + 66, 44), [mark("bookmarks", s + 88, middle)]),
2363
- address("glass", row2((W - 318) / 2, 318), 24, 22),
2364
- capsule("glass", right2, [
2365
- mark("share", right2.x + 22, middle),
2366
- mark("plus", right2.x + 66, middle),
2367
- mark("tabs", right2.x + 110, middle)
2368
- ])
2369
- ];
2465
+ if (!minimized)
2466
+ bars.shapes = acrossRow(spec.side, W - spec.side, 10);
2370
2467
  return bars;
2371
2468
  }
2372
2469
  bars.status = safariStatus(device.id, spec, W);
2373
2470
  const page = viewportOf(device, orientation, layout, minimized);
2374
- bars.fade = fadeFrom(page.y + page.height, H);
2375
2471
  const T = spec.top;
2376
2472
  if (minimized) {
2377
- bars.shapes = [layout === "top" ? domainPill(W, T) : domainPill(W, H - 46)];
2473
+ bars.shapes = [domainPill(W / 2, layout === "top" ? T : H - 46)];
2474
+ const stops = SCRIM.map(([at, alpha]) => ({ at, alpha }));
2475
+ bars.scrim = { y: 0, height: 100, stops, at: { x: W / 2, y: page.y + 1 } };
2378
2476
  return bars;
2379
2477
  }
2380
2478
  if (layout === "compact") {
@@ -2383,7 +2481,7 @@ function safariBars(device, spec, orientation, layout, minimized) {
2383
2481
  bars.shapes = [
2384
2482
  capsule("glass", rect(34, y, 48, 48), [mark("back", 58, middle)]),
2385
2483
  address("glass", rect(90, y, W - 180, 48), 24, 22),
2386
- capsule("glass", rect(W - 82, y, 48, 48), [mark("more", W - 58, middle)])
2484
+ capsule("glass", rect(W - 82, y, 48, 48), [mark("tabs", W - 58, middle)])
2387
2485
  ];
2388
2486
  return bars;
2389
2487
  }
@@ -2421,29 +2519,35 @@ function safariStatus(id, spec, W) {
2421
2519
  height: spec.top,
2422
2520
  time: { x: W / 2, y: 10, size: 15 },
2423
2521
  icons: { x: 6, y: 10, align: "start" },
2424
- battery: { x: W - 7, y: 10 }
2522
+ battery: { x: W - 7, y: 10 },
2523
+ large: false
2425
2524
  };
2426
2525
  }
2526
+ const large = W >= 420;
2527
+ const size = large ? 19 : 18;
2427
2528
  if (!island) {
2428
2529
  const y = spec.top / 2 + 2;
2429
2530
  return {
2430
2531
  height: spec.top,
2431
- time: { x: 58, y, size: 17 },
2432
- icons: { x: W - 36, y, align: "end" }
2532
+ time: { x: 58, y, size },
2533
+ icons: { x: W - 36, y, align: "end" },
2534
+ large
2433
2535
  };
2434
2536
  }
2435
2537
  const left2 = island.x - island.width / 2;
2436
2538
  if (left2 > W / 2) {
2437
2539
  return {
2438
2540
  height: spec.top,
2439
- time: { x: 52, y: island.y, size: 17 },
2440
- icons: { x: left2 - 12, y: island.y, align: "end" }
2541
+ time: { x: 52, y: island.y, size },
2542
+ icons: { x: left2 - 12, y: island.y, align: "end" },
2543
+ large
2441
2544
  };
2442
2545
  }
2443
2546
  return {
2444
2547
  height: spec.top,
2445
- time: { x: left2 * 0.535, y: island.y, size: 17 },
2446
- icons: { x: W - 35.4, y: island.y, align: "end" }
2548
+ time: { x: spec.status?.time ?? left2 * 0.535, y: island.y, size },
2549
+ icons: { x: spec.status?.right ?? W - (large ? 38.33 : 32.33), y: island.y, align: "end" },
2550
+ large
2447
2551
  };
2448
2552
  }
2449
2553
  function chromeStatus(id, height, W, orientation) {
@@ -2453,7 +2557,8 @@ function chromeStatus(id, height, W, orientation) {
2453
2557
  return {
2454
2558
  height,
2455
2559
  time: { x: side, y, size: 14 },
2456
- icons: { x: W - side, y, align: "end" }
2560
+ icons: { x: W - side, y, align: "end" },
2561
+ large: false
2457
2562
  };
2458
2563
  }
2459
2564
  function chromeBars(device, spec, orientation, layout, minimized) {
@@ -2468,10 +2573,11 @@ function chromeBars(device, spec, orientation, layout, minimized) {
2468
2573
  orientation,
2469
2574
  minimized,
2470
2575
  status: chromeStatus(device.id, statusHeight, W, orientation),
2576
+ column: null,
2471
2577
  shapes: [],
2472
2578
  chin: null,
2473
2579
  hairline: null,
2474
- fade: null,
2580
+ scrim: null,
2475
2581
  edge: false
2476
2582
  };
2477
2583
  if (minimized)
@@ -2515,10 +2621,8 @@ function barsOf(device, orientation, layout, minimized, edge = false) {
2515
2621
  const safari = SAFARI[device.id];
2516
2622
  if (safari) {
2517
2623
  const bars = safariBars(device, safari, orientation, layout, minimized);
2518
- if (!edge)
2519
- return bars;
2520
- const { height: H } = turn(device, orientation);
2521
- return { ...bars, edge, fade: orientation === "portrait" ? edgeFade(bars, H) : null };
2624
+ const upright = orientation === "portrait" || safari.duo !== undefined;
2625
+ return { ...bars, edge: edge || upright };
2522
2626
  }
2523
2627
  const chrome = CHROME[device.id];
2524
2628
  if (chrome)
@@ -2538,6 +2642,10 @@ function barsStep(state, event) {
2538
2642
  if (event.type === "resize")
2539
2643
  return { ...state, lockUntil: event.time + BARS_LOCK };
2540
2644
  const { y, time } = event;
2645
+ const room = event.room ?? 0;
2646
+ const near = state.minimized && room > 0 && y - room <= BARS_TOP;
2647
+ if (near)
2648
+ return { ...state, minimized: false, y, anchor: y };
2541
2649
  if (time < state.lockUntil)
2542
2650
  return { ...state, y, anchor: y };
2543
2651
  if (y <= BARS_TOP)
@@ -2549,7 +2657,9 @@ function barsStep(state, event) {
2549
2657
  return { ...state, y, anchor: anchor2 };
2550
2658
  }
2551
2659
  const anchor = Math.min(state.anchor, y);
2552
- if (y - anchor >= BARS_DOWN)
2660
+ const left2 = room > 0 ? Math.min(y, event.rest ?? Infinity) : y;
2661
+ const clear = left2 - 2 * room >= BARS_DOWN;
2662
+ if (y - anchor >= BARS_DOWN && clear)
2553
2663
  return { ...state, minimized: true, y, anchor: y };
2554
2664
  return { ...state, y, anchor };
2555
2665
  }
@@ -2830,6 +2940,10 @@ function reset2(scope = globalThis) {
2830
2940
  }
2831
2941
 
2832
2942
  // src/engine/mock.ts
2943
+ function islandOf(id) {
2944
+ const sensor = BODIES[id]?.front.find((front) => front.kind === "sensor");
2945
+ return sensor && sensor.width > sensor.height ? sensor : null;
2946
+ }
2833
2947
  function round(kind, rect2) {
2834
2948
  return { kind, ...rect2, radius: Math.min(rect2.width, rect2.height) / 2 };
2835
2949
  }
@@ -3024,11 +3138,18 @@ function drive(driver, state) {
3024
3138
  hand(driver, "media", { scheme, motion, contrast: contrast2, transparency });
3025
3139
  if (driver.viewport)
3026
3140
  hand(driver, "viewport", nativeViewport(state));
3027
- driveUa(driver, state);
3141
+ driveUa(driver, state, driver.viewport !== undefined && nativeViewport(state) !== null);
3142
+ }
3143
+ function hostUa(state, sized) {
3144
+ const brought = [deviceOf(state.device)?.ua, formOf(state.device, state.posture)?.ua];
3145
+ if (sized || !brought.includes(state.ua.preset))
3146
+ return nativeUa(state.ua);
3147
+ const ua = state.panel.realPhone ? nativeUa(state.ua) : null;
3148
+ return ua && { ...ua, frame: true };
3028
3149
  }
3029
- function driveUa(driver, state) {
3150
+ function driveUa(driver, state, sized = false) {
3030
3151
  if (driver.ua)
3031
- hand(driver, "ua", nativeUa(state.ua));
3152
+ hand(driver, "ua", hostUa(state, sized));
3032
3153
  }
3033
3154
  function release(driver, ua = true) {
3034
3155
  if (sent.size === 0)
@@ -3284,6 +3405,7 @@ function snapshotKey(knobs, view) {
3284
3405
  view.devicePixelRatio
3285
3406
  ]);
3286
3407
  }
3408
+ var RGB = /^rgb\(\d{1,3}, \d{1,3}, \d{1,3}\)$/;
3287
3409
  function lookOf(value) {
3288
3410
  if (typeof value !== "object" || value === null)
3289
3411
  return null;
@@ -3292,7 +3414,7 @@ function lookOf(value) {
3292
3414
  const scheme = read2("scheme");
3293
3415
  const host = read2("host");
3294
3416
  const flags = [read2("dark"), read2("canBack"), read2("canForward")];
3295
- if (typeof background !== "string" || !/^rgb\(\d{1,3}, \d{1,3}, \d{1,3}\)$/.test(background)) {
3417
+ if (typeof background !== "string" || !RGB.test(background)) {
3296
3418
  return null;
3297
3419
  }
3298
3420
  if (scheme !== "light" && scheme !== "dark" || typeof host !== "string")
@@ -3302,7 +3424,16 @@ function lookOf(value) {
3302
3424
  return null;
3303
3425
  if (typeof canForward !== "boolean")
3304
3426
  return null;
3305
- return { background, dark, scheme, host, canBack, canForward };
3427
+ const color = (key) => {
3428
+ const value2 = read2(key);
3429
+ return typeof value2 === "string" && RGB.test(value2) ? value2 : background;
3430
+ };
3431
+ const top2 = color("top");
3432
+ const bottom = color("bottom");
3433
+ const header = read2("header");
3434
+ if (typeof header !== "boolean")
3435
+ return null;
3436
+ return { background, top: top2, bottom, header, footer: read2("footer") === true, under: [], dark, scheme, host, canBack, canForward };
3306
3437
  }
3307
3438
  function readSnapshot(knobs, view) {
3308
3439
  try {
@@ -4260,13 +4391,60 @@ function destroy() {
4260
4391
  Reflect.deleteProperty(window, EARLY3);
4261
4392
  }
4262
4393
 
4394
+ // src/engine/screen.ts
4395
+ var KEYS2 = ["width", "height", "availWidth", "availHeight"];
4396
+ function screenSizeOf(state) {
4397
+ const device = formOf(state.device, state.posture);
4398
+ if (!device || device.kind !== "phone" && device.kind !== "tablet")
4399
+ return null;
4400
+ if (device.ua !== "iphone-safari")
4401
+ return turn(device, state.orientation);
4402
+ const { width, height } = turn(deviceOf(state.device) ?? device, "portrait");
4403
+ const across = device.postures !== undefined && state.posture !== "open" && state.orientation === "landscape";
4404
+ return across ? { width, height, availHeight: width } : { width, height };
4405
+ }
4406
+ var ORIGINALS = Symbol.for("devknobs.screen");
4407
+ function originalsOf(own) {
4408
+ const held = Reflect.get(own, ORIGINALS);
4409
+ return held instanceof Map ? held : undefined;
4410
+ }
4411
+ function apply5(size2, scope = globalThis) {
4412
+ const own = Reflect.get(scope, "screen");
4413
+ if (typeof own !== "object" || own === null)
4414
+ return;
4415
+ const originals2 = originalsOf(own);
4416
+ if (!size2) {
4417
+ if (!originals2)
4418
+ return;
4419
+ for (const [key, descriptor] of originals2) {
4420
+ if (descriptor)
4421
+ Object.defineProperty(own, key, descriptor);
4422
+ else
4423
+ Reflect.deleteProperty(own, key);
4424
+ }
4425
+ Reflect.deleteProperty(own, ORIGINALS);
4426
+ return;
4427
+ }
4428
+ if (!originals2) {
4429
+ const kept = new Map(KEYS2.map((key) => [key, Object.getOwnPropertyDescriptor(own, key)]));
4430
+ Object.defineProperty(own, ORIGINALS, { configurable: true, value: kept });
4431
+ }
4432
+ for (const key of KEYS2) {
4433
+ const value = key === "width" || key === "availWidth" ? size2.width : key === "availHeight" ? size2.availHeight ?? size2.height : size2.height;
4434
+ Object.defineProperty(own, key, { configurable: true, enumerable: true, get: () => value });
4435
+ }
4436
+ }
4437
+ function reset5() {
4438
+ apply5(null);
4439
+ }
4440
+
4263
4441
  // src/engine/scrollbars.ts
4264
4442
  var NAME2 = "scrollbars";
4265
4443
  var COMMIT_WAIT = 1000;
4266
4444
  var CSS2 = "*{scrollbar-width:none!important}::-webkit-scrollbar{display:none!important}";
4267
- function apply5(value) {
4445
+ function apply6(value) {
4268
4446
  if (!value) {
4269
- reset5();
4447
+ reset6();
4270
4448
  return;
4271
4449
  }
4272
4450
  ensureStyle(NAME2).textContent = CSS2;
@@ -4309,7 +4487,7 @@ function equip(view) {
4309
4487
  };
4310
4488
  channel.port2.postMessage(null);
4311
4489
  }
4312
- function reset5() {
4490
+ function reset6() {
4313
4491
  removeStyle(NAME2);
4314
4492
  }
4315
4493
 
@@ -4317,7 +4495,7 @@ function reset5() {
4317
4495
  var TOUCH_POINTS = 5;
4318
4496
  var handler = false;
4319
4497
  var points = false;
4320
- function apply6(value) {
4498
+ function apply7(value) {
4321
4499
  if (value.on && !handler && !("ontouchstart" in window)) {
4322
4500
  Object.defineProperty(window, "ontouchstart", {
4323
4501
  configurable: true,
@@ -4360,8 +4538,8 @@ function equip2(view, points2) {
4360
4538
  get: () => TOUCH_POINTS
4361
4539
  });
4362
4540
  }
4363
- function reset6() {
4364
- apply6({ on: false, points: false });
4541
+ function reset7() {
4542
+ apply7({ on: false, points: false });
4365
4543
  }
4366
4544
 
4367
4545
  // src/engine/touchmark.ts
@@ -4417,4 +4595,4 @@ function readMark(detail) {
4417
4595
  return finite(x) && finite(y) ? { at: { x, y }, pressed, held } : null;
4418
4596
  }
4419
4597
 
4420
- export { __export, __require, CLOCK_SPEED_MIN, CLOCK_SPEED_MAX, CLOCK_PRESETS, NativeDate, realNow, setClock, clockOn, now, wrapDate, NOW_READERS, temporalNow, readNow, takeOver, RINGS, SIDES, pxOf, boxModel, contentSize, hasBox, ringQuads, oneQuad, isPlain, alignQuads, ringPaths, luminance, parseColor, isCustomColor, toHex, readColor, POSTURES, openOf, DEVICES, deviceOf, formOf, formId, screenOf, hasTouch, turn, newer, stamped, FRESH_ATTRIBUTE, fresh, webStorage, loads, carried, ownReload, GEO_PRESETS, resolveGeo, apply, reset, ZOOM_PRESETS, ZOOM_MIN, ZOOM_MAX, percent, stepZoom, wheelZoom, anchorScroll, DEFAULT_PINNED, DEFAULT_STATE, SCHEMES, MOTIONS, CONTRASTS, TRANSPARENCIES, DIRS, GEO_ERRORS, CLOCK_MODES, ONLINES, CONNECTIONS, SAVE_DATAS, BARS, BROWSERS, ORIENTATIONS, EDGES, SIDES2 as SIDES1, VISIONS, GRAB_COLORS, resetState, merge, load, save, keepPlace, FRAME_ATTRIBUTE, FRAME_NAME, SIZE_MIN, SIZE_MAX, DPR_MIN, DPR_MAX, isDevknobsFrame, nativeScheme, handsSchemeDown, UNFRAMED, EXITED, knobFrame, needsFrame, plainFrame, frameForced, framed, readMessage, leaveFor, post, SHARED_VERSION, QUIET, shared2 as shared, share, evict, follow, keep, keepOwn, resume, systemMedia, watchSystemMedia, baseMatchMedia, still, ownInline, TEXT_MIN, TEXT_MAX, apply3 as apply1, reset3 as reset1, rewriteMediaText, authoredQuery, coarse, apply4 as apply2, destroy, platformOf, layoutOptions, layoutOf, viewportOf, endRoom, SAFARI_TEXT, barsOf, BARS_START, barsStep, turnSides, turnRadius, placeIn2 as placeIn, mockOf, UA_PRESETS, uaPreset, userAgentOf, apply2 as apply3, isMac, reset2, nativeViewport, inPage, framing, nativeEnabled, enableNative, handing, settles, drive, driveUa, release, styleNode, isOwnSheet, addStyle, findStyle, ensureStyle, removeStyle, apply5 as apply4, equip, reset5 as reset3, apply6 as apply5, equip2 as equip1, reset6 as reset4, DOT_LOOK, MARK_EVENT, readMark, MAT_COLORS2 as MAT_COLORS, MAT_COLOR_NAMES, matGradient, isMatName, putMat, Z_INDEX, snapshotKey, readSnapshot, keepDrawing, clearSnapshot, dropEarly, adoptEarly, stopAdopting };
4598
+ export { __export, __require, CLOCK_SPEED_MIN, CLOCK_SPEED_MAX, CLOCK_PRESETS, NativeDate, realNow, setClock, clockOn, now, wrapDate, NOW_READERS, temporalNow, readNow, takeOver, RINGS, SIDES, pxOf, boxModel, contentSize, hasBox, ringQuads, oneQuad, isPlain, alignQuads, ringPaths, luminance, parseColor, isCustomColor, toHex, parseHex, readColor, POSTURES, openOf, DEVICES, deviceOf, formOf, formId, screenOf, hasTouch, turn, newer, stamped, FRESH_ATTRIBUTE, fresh, webStorage, loads, carried, ownReload, GEO_PRESETS, resolveGeo, apply, reset, ZOOM_PRESETS, ZOOM_MIN, ZOOM_MAX, percent, stepZoom, wheelZoom, anchorScroll, DEFAULT_PINNED, DEFAULT_STATE, SCHEMES, MOTIONS, CONTRASTS, TRANSPARENCIES, DIRS, GEO_ERRORS, CLOCK_MODES, ONLINES, CONNECTIONS, SAVE_DATAS, BARS, BROWSERS, ORIENTATIONS, EDGES, SIDES2 as SIDES1, DEV_ICONS, VISIONS, GRAB_COLORS, resetState, merge, load, save, keepPlace, FRAME_ATTRIBUTE, FRAME_NAME, SIZE_MIN, SIZE_MAX, DPR_MIN, DPR_MAX, isDevknobsFrame, nativeScheme, handsSchemeDown, UNFRAMED, EXITED, knobFrame, needsFrame, plainFrame, frameForced, framed, readMessage, leaveFor, post, SHARED_VERSION, QUIET, shared2 as shared, share, evict, follow, keep, keepOwn, resume, systemMedia, watchSystemMedia, baseMatchMedia, still, ownInline, TEXT_MIN, TEXT_MAX, apply3 as apply1, reset3 as reset1, rewriteMediaText, authoredQuery, coarse, apply4 as apply2, destroy, runsUnderBars, platformOf, layoutOptions, layoutOf, viewportOf, alphaAt, SAFARI_TEXT, barsOf, BARS_START, barsStep, islandOf, round, turnRect, turnSides, turnRadius, placeIn2 as placeIn, mockOf, UA_PRESETS, uaPreset, userAgentOf, apply2 as apply3, isMac, reset2, nativeViewport, inPage, framing, nativeEnabled, enableNative, handing, settles, drive, driveUa, release, styleNode, isOwnSheet, addStyle, ensureStyle, removeStyle, screenSizeOf, apply5 as apply4, reset5 as reset3, apply6 as apply5, equip, reset6 as reset4, apply7 as apply6, equip2 as equip1, reset7 as reset5, DOT_LOOK, MARK_EVENT, readMark, MAT_COLORS2 as MAT_COLORS, MAT_COLOR_NAMES, matGradient, isMatName, putMat, Z_INDEX, snapshotKey, readSnapshot, keepDrawing, clearSnapshot, dropEarly, adoptEarly, stopAdopting };