@wix/himalaya-cli 0.1872.0 → 0.1874.0

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/cli.mjs CHANGED
@@ -21680,6 +21680,249 @@ var init_a11y_contract = __esm({
21680
21680
  }
21681
21681
  });
21682
21682
 
21683
+ // ../../core/ts/src/brand-color-math.ts
21684
+ function channel(hex2, offset) {
21685
+ return Number.parseInt(hex2.slice(offset, offset + 2), 16);
21686
+ }
21687
+ function toHex(r3, g2, b3) {
21688
+ return `#${[r3, g2, b3].map((value2) => Math.round(value2).toString(16).padStart(2, "0")).join("")}`.toUpperCase();
21689
+ }
21690
+ function mix(color, background, colorWeight) {
21691
+ const values = [1, 3, 5].map((offset) => channel(color, offset) * colorWeight + channel(background, offset) * (1 - colorWeight));
21692
+ return toHex(values[0], values[1], values[2]);
21693
+ }
21694
+ function relativeLuminance(color) {
21695
+ const linear = [1, 3, 5].map((offset) => {
21696
+ const value2 = channel(color, offset) / 255;
21697
+ return value2 <= 0.03928 ? value2 / 12.92 : ((value2 + 0.055) / 1.055) ** 2.4;
21698
+ });
21699
+ return 0.2126 * linear[0] + 0.7152 * linear[1] + 0.0722 * linear[2];
21700
+ }
21701
+ function contrastRatio(a3, b3) {
21702
+ const la2 = relativeLuminance(a3);
21703
+ const lb = relativeLuminance(b3);
21704
+ return (Math.max(la2, lb) + 0.05) / (Math.min(la2, lb) + 0.05);
21705
+ }
21706
+ function lstar(color) {
21707
+ const y2 = relativeLuminance(color);
21708
+ return y2 <= 8856e-6 ? y2 * 903.3 : 116 * Math.cbrt(y2) - 16;
21709
+ }
21710
+ function deriveAccentSurface(accent, surface, weight2) {
21711
+ const tint = mix(accent, surface, weight2);
21712
+ if (contrastRatio(tint, surface) >= ACCENT_SURFACE_MIN_DELTA) return tint;
21713
+ const away = relativeLuminance(surface) < 0.5 ? "#FFFFFF" : "#000000";
21714
+ for (let w2 = 0.02; w2 <= 0.5; w2 += 0.02) {
21715
+ const candidate = mix(away, surface, w2);
21716
+ if (contrastRatio(candidate, surface) >= ACCENT_SURFACE_MIN_DELTA) return candidate;
21717
+ }
21718
+ return tint;
21719
+ }
21720
+ function deriveSecondaryAccent(primary) {
21721
+ const shade2 = mix(primary, "#000000", SECONDARY_SHADE_WEIGHT);
21722
+ if (lstar(shade2) >= SECONDARY_MIN_LSTAR) return shade2;
21723
+ return mix(primary, "#FFFFFF", SECONDARY_SHADE_WEIGHT);
21724
+ }
21725
+ function textOn(color) {
21726
+ const luminance2 = relativeLuminance(color);
21727
+ const whiteContrast = 1.05 / (luminance2 + 0.05);
21728
+ const blackContrast = (luminance2 + 0.05) / 0.05;
21729
+ return whiteContrast >= blackContrast ? "#FFFFFF" : "#000000";
21730
+ }
21731
+ function tuneDarkAccent(brand, darkSurface2, lightSurface) {
21732
+ const kitInherentlyDark = lstar(lightSurface) < 50;
21733
+ if (kitInherentlyDark && contrastRatio(brand, darkSurface2) >= DARK_ARM_TARGET_CONTRAST && lstar(brand) <= DARK_ARM_LSTAR_CAP) {
21734
+ return brand;
21735
+ }
21736
+ let lift = DARK_ARM_MIN_LIFT;
21737
+ let candidate = mix(brand, "#FFFFFF", 1 - lift);
21738
+ while (contrastRatio(candidate, darkSurface2) < DARK_ARM_TARGET_CONTRAST && lift < 0.6) {
21739
+ lift += 0.04;
21740
+ candidate = mix(brand, "#FFFFFF", 1 - lift);
21741
+ }
21742
+ while (lstar(candidate) > DARK_ARM_LSTAR_CAP) {
21743
+ const darker = mix(candidate, "#000000", 0.94);
21744
+ if (contrastRatio(darker, darkSurface2) < DARK_ARM_FLOOR_CONTRAST) break;
21745
+ candidate = darker;
21746
+ }
21747
+ return candidate;
21748
+ }
21749
+ function textOnArm(accent) {
21750
+ return contrastRatio("#FFFFFF", accent) >= 4.5 ? "#FFFFFF" : textOn(accent);
21751
+ }
21752
+ function tuneHighContrastAccent(brand, surface) {
21753
+ const towards = relativeLuminance(surface) < 0.5 ? "#FFFFFF" : "#000000";
21754
+ let candidate = brand;
21755
+ for (let lift = 0; lift <= 0.9 && contrastRatio(candidate, surface) < HIGH_CONTRAST_TARGET; lift += 0.04) {
21756
+ candidate = mix(brand, towards, 1 - lift);
21757
+ }
21758
+ return candidate;
21759
+ }
21760
+ function deriveAccentText(accent, surfaces) {
21761
+ const all = (typeof surfaces === "string" ? [surfaces] : [...surfaces]).map((s5) => s5.slice(0, 7));
21762
+ const page = all[0];
21763
+ const worst2 = (color) => Math.min(...all.map((s5) => contrastRatio(color, s5)));
21764
+ const opaque2 = accent.length === 9 ? mix(accent.slice(0, 7), page, channel(accent, 7) / 255) : accent;
21765
+ if (worst2(opaque2) >= ACCENT_TEXT_MIN_CONTRAST) return opaque2;
21766
+ const pole = worst2("#FFFFFF") >= worst2("#000000") ? "#FFFFFF" : "#000000";
21767
+ for (let step = 1; step <= 100; step++) {
21768
+ const candidate = mix(pole, opaque2, step / 100);
21769
+ if (worst2(candidate) >= ACCENT_TEXT_MIN_CONTRAST) return candidate;
21770
+ }
21771
+ if (all.length > 1) {
21772
+ const side2 = (hex2) => relativeLuminance(hex2) > MID_GREY_LUMINANCE;
21773
+ const sameSide = all.filter((s5) => side2(s5) === side2(page));
21774
+ return deriveAccentText(accent, sameSide.length < all.length ? sameSide : [page]);
21775
+ }
21776
+ return pole;
21777
+ }
21778
+ function textSurfacesOf(colors) {
21779
+ const out2 = { light: [], dark: [], highContrast: [] };
21780
+ for (const name of TEXT_BACKDROP_TOKENS) {
21781
+ const value2 = colors[name];
21782
+ for (const arm of ["light", "dark", "highContrast"]) {
21783
+ const hex2 = typeof value2 === "string" ? value2 : value2 && typeof value2 === "object" && !Array.isArray(value2) ? value2[arm] ?? value2.light : void 0;
21784
+ if (typeof hex2 === "string" && hex2.startsWith("#") && hex2.length >= 7) out2[arm].push(hex2);
21785
+ }
21786
+ }
21787
+ return out2;
21788
+ }
21789
+ function stripBrandFromIdiom(tokens2) {
21790
+ const idiom = tokens2.idiom;
21791
+ if (!idiom || typeof idiom !== "object" || Array.isArray(idiom)) return;
21792
+ for (const overlay of Object.values(idiom)) {
21793
+ if (!overlay || typeof overlay !== "object" || Array.isArray(overlay)) continue;
21794
+ const o2 = overlay;
21795
+ const colors = o2.colors;
21796
+ if (colors && typeof colors === "object" && !Array.isArray(colors)) {
21797
+ for (const key4 of BRAND_COLOR_TOKENS) delete colors[key4];
21798
+ if (Object.keys(colors).length === 0) delete o2.colors;
21799
+ }
21800
+ const shadows2 = o2.shadows;
21801
+ const glow = shadows2 && typeof shadows2 === "object" && !Array.isArray(shadows2) ? shadows2[BRAND_GLOW_SHADOW] : void 0;
21802
+ if (glow && typeof glow === "object" && !Array.isArray(glow) && "color" in glow) {
21803
+ delete glow.color;
21804
+ if (Object.keys(glow).length === 0) delete shadows2[BRAND_GLOW_SHADOW];
21805
+ if (Object.keys(shadows2).length === 0) delete o2.shadows;
21806
+ }
21807
+ }
21808
+ }
21809
+ function deriveAccentFamily(primary, secondary, surfaces, textSurfaces = {}) {
21810
+ const primaryDark = tuneDarkAccent(primary, surfaces.dark, surfaces.light);
21811
+ const secondaryDark = tuneDarkAccent(secondary, surfaces.dark, surfaces.light);
21812
+ const primaryHigh = tuneHighContrastAccent(primary, surfaces.highContrast);
21813
+ const secondaryHigh = tuneHighContrastAccent(secondary, surfaces.highContrast);
21814
+ return {
21815
+ accentPrimary: { light: primary, dark: primaryDark, highContrast: primaryHigh },
21816
+ accentSecondary: { light: secondary, dark: secondaryDark, highContrast: secondaryHigh },
21817
+ accentSurface: {
21818
+ light: deriveAccentSurface(primary, surfaces.light, ACCENT_SURFACE_LIGHT_WEIGHT),
21819
+ dark: deriveAccentSurface(primaryDark, surfaces.dark, 0.24),
21820
+ highContrast: deriveAccentSurface(primaryHigh, surfaces.highContrast, 0.24)
21821
+ },
21822
+ textOnAccent: {
21823
+ light: textOnArm(primary),
21824
+ dark: textOnArm(primaryDark),
21825
+ highContrast: textOn(primaryHigh)
21826
+ },
21827
+ accentText: {
21828
+ light: deriveAccentText(primary, [surfaces.light, ...textSurfaces.light ?? []]),
21829
+ dark: deriveAccentText(primaryDark, [surfaces.dark, ...textSurfaces.dark ?? []]),
21830
+ highContrast: deriveAccentText(primaryHigh, [surfaces.highContrast, ...textSurfaces.highContrast ?? []])
21831
+ }
21832
+ };
21833
+ }
21834
+ var ACCENT_SURFACE_MIN_DELTA, ACCENT_SURFACE_LIGHT_WEIGHT, SECONDARY_SHADE_WEIGHT, SECONDARY_MIN_LSTAR, DARK_ARM_MIN_LIFT, DARK_ARM_TARGET_CONTRAST, DARK_ARM_FLOOR_CONTRAST, DARK_ARM_LSTAR_CAP, HIGH_CONTRAST_TARGET, ACCENT_TEXT_MIN_CONTRAST, MID_GREY_LUMINANCE, TEXT_BACKDROP_TOKENS, BRAND_COLOR_TOKENS, BRAND_GLOW_SHADOW;
21835
+ var init_brand_color_math = __esm({
21836
+ "../../core/ts/src/brand-color-math.ts"() {
21837
+ init_define_HHP_CATALOG();
21838
+ ACCENT_SURFACE_MIN_DELTA = 1.08;
21839
+ ACCENT_SURFACE_LIGHT_WEIGHT = 0.12;
21840
+ SECONDARY_SHADE_WEIGHT = 0.72;
21841
+ SECONDARY_MIN_LSTAR = 22;
21842
+ DARK_ARM_MIN_LIFT = 0.08;
21843
+ DARK_ARM_TARGET_CONTRAST = 3.4;
21844
+ DARK_ARM_FLOOR_CONTRAST = 3;
21845
+ DARK_ARM_LSTAR_CAP = 80;
21846
+ HIGH_CONTRAST_TARGET = 8.5;
21847
+ ACCENT_TEXT_MIN_CONTRAST = 4.5;
21848
+ MID_GREY_LUMINANCE = 0.179;
21849
+ TEXT_BACKDROP_TOKENS = ["surfaceSecondary", "surfaceElevated", "surfaceSubtle", "surfaceTertiary"];
21850
+ BRAND_COLOR_TOKENS = ["accentPrimary", "accentSecondary", "accentSurface", "textOnAccent", "accentText"];
21851
+ BRAND_GLOW_SHADOW = "glow";
21852
+ }
21853
+ });
21854
+
21855
+ // ../../core/ts/src/top-bar-fill.ts
21856
+ function topBarFill(color) {
21857
+ const fill2 = color.slice(0, 7).toUpperCase();
21858
+ const light = contrastRatio(fill2, TOP_BAR_LIGHT_FOREGROUND);
21859
+ const dark = contrastRatio(fill2, TOP_BAR_DARK_FOREGROUND);
21860
+ const foreground = light >= dark ? TOP_BAR_LIGHT_FOREGROUND : TOP_BAR_DARK_FOREGROUND;
21861
+ const drawn = deriveAccentText(fill2, foreground);
21862
+ return {
21863
+ fill: fill2,
21864
+ foreground,
21865
+ ratio: round2(Math.max(light, dark)),
21866
+ drawn,
21867
+ drawnRatio: round2(contrastRatio(drawn, foreground)),
21868
+ nudged: drawn !== fill2
21869
+ };
21870
+ }
21871
+ var TOP_BAR_DARK_FOREGROUND, TOP_BAR_LIGHT_FOREGROUND, round2;
21872
+ var init_top_bar_fill = __esm({
21873
+ "../../core/ts/src/top-bar-fill.ts"() {
21874
+ init_define_HHP_CATALOG();
21875
+ init_brand_color_math();
21876
+ TOP_BAR_DARK_FOREGROUND = "#1A1B20";
21877
+ TOP_BAR_LIGHT_FOREGROUND = "#FFFFFF";
21878
+ round2 = (n2) => Math.round(n2 * 100) / 100;
21879
+ }
21880
+ });
21881
+
21882
+ // ../../core/ts/src/scroll-past.ts
21883
+ function isScrollExpr(raw) {
21884
+ return typeof raw === "string" && raw.startsWith(SCROLL_SENTINEL);
21885
+ }
21886
+ function parseScrollExpr(raw) {
21887
+ if (!isScrollExpr(raw)) return null;
21888
+ let rest = raw.slice(SCROLL_SENTINEL.length);
21889
+ let op;
21890
+ let operand;
21891
+ for (const o2 of ["==", "!="]) {
21892
+ const i2 = rest.indexOf(o2);
21893
+ if (i2 >= 0) {
21894
+ op = o2;
21895
+ operand = rest.slice(i2 + o2.length).trim();
21896
+ rest = rest.slice(0, i2);
21897
+ break;
21898
+ }
21899
+ }
21900
+ rest = rest.trim();
21901
+ const dot = rest.lastIndexOf(".");
21902
+ if (dot <= 0) return null;
21903
+ const nodeId = rest.slice(0, dot);
21904
+ const key4 = rest.slice(dot + 1);
21905
+ if (key4 !== SCROLL_PAST_KEY) return null;
21906
+ return op ? { nodeId, key: key4, op, operand } : { nodeId, key: key4 };
21907
+ }
21908
+ function evalScrollExpr(raw, past) {
21909
+ const parsed = parseScrollExpr(raw);
21910
+ if (!parsed) return void 0;
21911
+ const value2 = past(parsed.nodeId) ? "true" : "false";
21912
+ if (!parsed.op) return value2;
21913
+ const equal = value2 === (parsed.operand ?? "").toLowerCase();
21914
+ return (parsed.op === "==" ? equal : !equal) ? "true" : "false";
21915
+ }
21916
+ var SCROLL_SENTINEL, SCROLL_PAST_KEY;
21917
+ var init_scroll_past = __esm({
21918
+ "../../core/ts/src/scroll-past.ts"() {
21919
+ init_define_HHP_CATALOG();
21920
+ init_top_bar_fill();
21921
+ SCROLL_SENTINEL = "$scroll:";
21922
+ SCROLL_PAST_KEY = "past";
21923
+ }
21924
+ });
21925
+
21683
21926
  // ../../core/ts/src/shell-nav.ts
21684
21927
  function applySurfaceDestinations(items, surfaceNav) {
21685
21928
  const wanted = surfaceNav.destinations;
@@ -22523,6 +22766,7 @@ __export(validate_descriptor_core_exports, {
22523
22766
  resolveBootEvaluator: () => resolveBootEvaluator,
22524
22767
  resolveEvaluator: () => resolveEvaluator,
22525
22768
  screenDepthFindings: () => screenDepthFindings,
22769
+ scrollBindingFindings: () => scrollBindingFindings,
22526
22770
  serviceOnlyBindingValues: () => serviceOnlyBindingValues,
22527
22771
  setActionEvaluator: () => setActionEvaluator,
22528
22772
  setBootEvaluator: () => setBootEvaluator,
@@ -24563,6 +24807,36 @@ function topBarFindings(descriptor) {
24563
24807
  out2.push({ path: `${at2}.onLoadingTimeout`, ruleCode: "top_bar_loading_timeout_no_loading_path", message: "`onLoadingTimeout` is set on an item with no `loadingPath`. The 30-second timer runs only while `loadingPath` is truthy, so it never fires. Bind `loadingPath` to the busy flag of this item's own action (the save, the delete)" });
24564
24808
  }
24565
24809
  }
24810
+ if (sel) {
24811
+ const bulk = (Array.isArray(sel.items) ? sel.items : []).map((raw, idx) => raw && typeof raw === "object" ? [`topBar.selection.items[${idx}]`, raw] : null).filter((e2) => e2 !== null);
24812
+ const all = block(sel.selectAll);
24813
+ if (bulk.length > TOP_BAR_TRAILING_LIMIT) {
24814
+ out2.push({ path: "topBar.selection.items", ruleCode: "top_bar_selection_items_over_slots", message: `The selection mode declares ${bulk.length} bulk items. Android shows the first two as icons and moves the other ${bulk.length - TOP_BAR_TRAILING_LIMIT} into More Actions in authored order (RFC 0066 amendment R2, M-SELECT); iOS draws all of them in the bottom toolbar. Put the two most used actions first` });
24815
+ }
24816
+ const inMenu = [
24817
+ ...bulk.slice(TOP_BAR_TRAILING_LIMIT).map(([at2, i2]) => [at2, i2, "moved there on Android because the selection has more than two bulk items (R2)"]),
24818
+ ...all ? [["topBar.selection.selectAll", all, "Android always draws Select all there"]] : []
24819
+ ];
24820
+ const menuOwned = new Set(inMenu.map(([, i2]) => i2));
24821
+ for (const [at2, i2] of [...bulk, ...all ? [["topBar.selection.selectAll", all]] : []]) {
24822
+ if (i2.onLongPress == null) continue;
24823
+ if (menuOwned.has(i2)) {
24824
+ const why = inMenu.find(([, m2]) => m2 === i2)?.[2] ?? "";
24825
+ out2.push({ path: `${at2}.onLongPress`, ruleCode: "top_bar_long_press_in_menu", message: `An item in More Actions (${why}) has no long press: the menu row only taps, so \`onLongPress\` never fires there. Move the action to its own item, or keep the item among the first two` });
24826
+ } else if (Array.isArray(i2.menu) && i2.menu.length > 0) {
24827
+ out2.push({ path: `${at2}.onLongPress`, ruleCode: "top_bar_long_press_with_menu", message: "An item with a `menu` ignores `onLongPress`: the menu owns the press. Add the action to the menu, or remove the menu" });
24828
+ }
24829
+ }
24830
+ for (const [at2, i2, why] of inMenu) {
24831
+ if (i2.badge != null) {
24832
+ out2.push({ path: `${at2}.badge`, ruleCode: "top_bar_badge_on_overflow", message: `An item in More Actions (${why}) has a \`badge\`, and the menu row draws none. Move the item among the first two, or put the count in its \`label\`` });
24833
+ }
24834
+ }
24835
+ const avatars = [...bulk, ...all ? [["topBar.selection.selectAll", all]] : []].filter(([, i2]) => i2.avatar != null);
24836
+ if (avatars.length > 1) {
24837
+ out2.push({ path: `${avatars[1][0]}.avatar`, ruleCode: "top_bar_two_avatars", message: `The selection mode declares ${avatars.length} avatar items. The guideline shows one avatar in a bar, and the shell draws all of them. Keep one and make the others plain icon items` });
24838
+ }
24839
+ }
24566
24840
  const notHttps = (v2) => {
24567
24841
  if (typeof v2 !== "string" || v2 === "") return false;
24568
24842
  if (!/^https:\/\/[^/?#\s]/i.test(v2)) return true;
@@ -24618,13 +24892,6 @@ function topBarFindings(descriptor) {
24618
24892
  if (!hasTopBarSearchGate(stickyHeader) && !(stickyHeader == null && hasGatedContentSearchField(payload))) {
24619
24893
  out2.push({ path: "topBar.searchable", ruleCode: "top_bar_search_no_fallback", message: `No usable fallback search field is gated on \`hiddenPath: "${TOP_BAR_SEARCH_GATE}"\`. Gate the root of \`stickyHeader\` so the whole band hides, or (with no sticky header) gate an in-content SearchField or TextField as the embed host does` });
24620
24894
  }
24621
- const suggestionKeys = ["suggestions", "suggestionsPath", "onSuggestionTap"].filter((k3) => {
24622
- const v2 = s5[k3];
24623
- return Array.isArray(v2) ? v2.length > 0 : v2 !== void 0 && v2 !== null && v2 !== "";
24624
- });
24625
- if (suggestionKeys.length > 0) {
24626
- out2.push({ path: `topBar.searchable.${suggestionKeys[0]}`, ruleCode: "top_bar_search_suggestions_not_drawn", message: `\`${suggestionKeys.join("`, `")}\` ${suggestionKeys.length > 1 ? "are" : "is"} on the wire for a later release: no shell draws search suggestions yet (RFC 0010, decision 11). Draw recent searches and suggestions as the screen's own content` });
24627
- }
24628
24895
  const scopeKeys = ["scopes", "scopePath", "onScopeChange"].filter((k3) => {
24629
24896
  const v2 = s5[k3];
24630
24897
  return Array.isArray(v2) ? v2.length > 0 : v2 !== void 0 && v2 !== null && v2 !== "";
@@ -24651,6 +24918,31 @@ function topBarFindings(descriptor) {
24651
24918
  }
24652
24919
  return out2;
24653
24920
  }
24921
+ function scrollBindingFindings(descriptor) {
24922
+ const out2 = [];
24923
+ let ids2 = null;
24924
+ const walk5 = (v2, at2) => {
24925
+ if (typeof v2 === "string") {
24926
+ if (!isScrollExpr(v2)) return;
24927
+ const parsed = parseScrollExpr(v2);
24928
+ if (!parsed) {
24929
+ out2.push({ path: at2, ruleCode: "scroll_binding_malformed", message: `${JSON.stringify(v2)} is not a \`$scroll:\` expression, so every shell resolves it to nothing. Write \`$scroll:<nodeId>.past\`, optionally with \`==true\` / \`==false\`` });
24930
+ return;
24931
+ }
24932
+ if (parsed.nodeId.includes("$")) return;
24933
+ ids2 ??= new Set(componentNodes(descriptor).map((n2) => n2.node.id).filter((id) => typeof id === "string"));
24934
+ if (!ids2.has(parsed.nodeId)) {
24935
+ out2.push({ path: at2, ruleCode: "scroll_binding_unknown_node", message: `\`$scroll:${parsed.nodeId}.past\` names no component on this screen, so it is never past and the screen keeps its resting state. Give the node it should follow (the hero, the header) this \`id\`` });
24936
+ }
24937
+ } else if (Array.isArray(v2)) {
24938
+ v2.forEach((x2, i2) => walk5(x2, `${at2}[${i2}]`));
24939
+ } else if (v2 && typeof v2 === "object") {
24940
+ for (const [k3, x2] of Object.entries(v2)) walk5(x2, at2 ? `${at2}.${k3}` : k3);
24941
+ }
24942
+ };
24943
+ walk5(descriptor, "");
24944
+ return out2;
24945
+ }
24654
24946
  function deadTopBarFindings(descriptor) {
24655
24947
  const out2 = [];
24656
24948
  const bar = descriptor?.topBar;
@@ -25208,6 +25500,9 @@ function validateScreenDescriptor(screenId, served, opts = {}) {
25208
25500
  for (const finding2 of topBarFindings(descriptor)) {
25209
25501
  issues.push({ severity: "warning", pass: "top-bar", path: finding2.path, message: finding2.message, ...finding2.ruleCode ? { ruleCode: finding2.ruleCode } : {} });
25210
25502
  }
25503
+ for (const finding2 of scrollBindingFindings(descriptor)) {
25504
+ issues.push({ severity: "warning", pass: "scroll-binding", path: finding2.path, message: finding2.message, ruleCode: finding2.ruleCode });
25505
+ }
25211
25506
  for (const finding2 of deadTopBarFindings(descriptor)) {
25212
25507
  issues.push({ severity: "error", pass: "dead-control", path: finding2.path, message: finding2.message, ruleCode: finding2.ruleCode });
25213
25508
  }
@@ -25899,6 +26194,7 @@ var init_validate_descriptor_core = __esm({
25899
26194
  init_l10n_strings();
25900
26195
  init_a11y_contract();
25901
26196
  init_bindings();
26197
+ init_scroll_past();
25902
26198
  init_app_services_gate();
25903
26199
  init_app_services_lint();
25904
26200
  init_app_services_lint();
@@ -29612,7 +29908,7 @@ function luminance([r3, g2, b3]) {
29612
29908
  });
29613
29909
  return 0.2126 * lin[0] + 0.7152 * lin[1] + 0.0722 * lin[2];
29614
29910
  }
29615
- function contrastRatio(a3, b3) {
29911
+ function contrastRatio2(a3, b3) {
29616
29912
  const [hi2, lo2] = [luminance(a3), luminance(b3)].sort((x2, y2) => y2 - x2);
29617
29913
  return (hi2 + 0.05) / (lo2 + 0.05);
29618
29914
  }
@@ -29621,11 +29917,11 @@ async function contrastingBackdrop(mark, requested) {
29621
29917
  const { dominant } = await sharp(mark, { limitInputPixels: ICON_INPUT_PIXEL_LIMIT }).stats();
29622
29918
  const ink = [dominant.r, dominant.g, dominant.b];
29623
29919
  const want = hexToRgb(requested);
29624
- if (!want || contrastRatio(ink, want) >= MIN_BACKDROP_CONTRAST) return requested;
29920
+ if (!want || contrastRatio2(ink, want) >= MIN_BACKDROP_CONTRAST) return requested;
29625
29921
  const towardsWhite = luminance(ink) < 0.5;
29626
29922
  for (const amount of [0.35, 0.55, 0.75, 0.9]) {
29627
- const candidate = mix(want, towardsWhite ? [255, 255, 255] : [0, 0, 0], amount);
29628
- if (contrastRatio(ink, candidate) >= MIN_BACKDROP_CONTRAST) return rgbToHex(candidate);
29923
+ const candidate = mix2(want, towardsWhite ? [255, 255, 255] : [0, 0, 0], amount);
29924
+ if (contrastRatio2(ink, candidate) >= MIN_BACKDROP_CONTRAST) return rgbToHex(candidate);
29629
29925
  }
29630
29926
  return towardsWhite ? "#FFFFFF" : "#000000";
29631
29927
  }
@@ -29635,7 +29931,7 @@ function hexToRgb(hex2) {
29635
29931
  const n2 = parseInt(m2[1], 16);
29636
29932
  return [n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255];
29637
29933
  }
29638
- function mix(a3, b3, t2) {
29934
+ function mix2(a3, b3, t2) {
29639
29935
  return [0, 1, 2].map((i2) => Math.round(a3[i2] + (b3[i2] - a3[i2]) * t2));
29640
29936
  }
29641
29937
  function rgbToHex([r3, g2, b3]) {
@@ -30469,6 +30765,7 @@ __export(validate_descriptor_exports, {
30469
30765
  resolveBootEvaluator: () => resolveBootEvaluator,
30470
30766
  resolveEvaluator: () => resolveEvaluator,
30471
30767
  screenDepthFindings: () => screenDepthFindings,
30768
+ scrollBindingFindings: () => scrollBindingFindings,
30472
30769
  serviceOnlyBindingValues: () => serviceOnlyBindingValues,
30473
30770
  setActionEvaluator: () => setActionEvaluator,
30474
30771
  setBootEvaluator: () => setBootEvaluator,
@@ -41398,7 +41695,6 @@ function resolveIdiom(tokens2, ctx = {}) {
41398
41695
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
41399
41696
  var init_idiom = __esm({
41400
41697
  "../../core/ts/src/idiom.ts"() {
41401
- "use strict";
41402
41698
  init_define_HHP_CATALOG();
41403
41699
  IDIOM_CONTEXTS = {
41404
41700
  ios: { native: ["ios"] },
@@ -50153,6 +50449,27 @@ var init_form_bag = __esm({
50153
50449
  }
50154
50450
  });
50155
50451
 
50452
+ // ../../core/web-renderer/src/scrollPast.ts
50453
+ import { useCallback, useSyncExternalStore as useSyncExternalStore2 } from "react";
50454
+ function useScrollPast(source2, raw) {
50455
+ const parsed = raw !== "" && isScrollExpr(raw) ? parseScrollExpr(raw) : null;
50456
+ const nodeId = parsed?.nodeId ?? "";
50457
+ const subscribe = useCallback((cb) => source2 && nodeId ? source2.subscribe(nodeId, cb) : NEVER(), [source2, nodeId]);
50458
+ const past = useSyncExternalStore2(subscribe, () => source2 && nodeId ? source2.past(nodeId) : false, () => false);
50459
+ if (!parsed) return void 0;
50460
+ return evalScrollExpr(raw, () => past);
50461
+ }
50462
+ var NEVER;
50463
+ var init_scrollPast = __esm({
50464
+ "../../core/web-renderer/src/scrollPast.ts"() {
50465
+ init_define_HHP_CATALOG();
50466
+ init_scroll_past();
50467
+ init_scroll_past();
50468
+ NEVER = () => () => {
50469
+ };
50470
+ }
50471
+ });
50472
+
50156
50473
  // ../../core/ts/src/ambient-motion.ts
50157
50474
  function ambientKind(m2) {
50158
50475
  const k3 = m2?.kind;
@@ -56799,7 +57116,7 @@ function HSLToRGB(hsl, output) {
56799
57116
  function computeLuminance(x2) {
56800
57117
  return x2 <= 0.03928 ? x2 / 12.92 : ((x2 + 0.055) / 1.055) ** 2.4;
56801
57118
  }
56802
- function contrastRatio2(hsl1, hsl2, output) {
57119
+ function contrastRatio3(hsl1, hsl2, output) {
56803
57120
  HSLToRGB(hsl1, output);
56804
57121
  output.map(computeLuminance);
56805
57122
  const lum1 = 0.2126 * output[0] + 0.7152 * output[1] + 0.0722 * output[2];
@@ -56823,7 +57140,7 @@ function findContrastColor(baseColor, fixedColor) {
56823
57140
  const isFixedColorDark = fixedHSL[2] < 0.5;
56824
57141
  const minContrast = isFixedColorDark ? 12 : 4.5;
56825
57142
  baseHSL[2] = isFixedColorDark ? Math.sqrt(baseHSL[2]) : 1 - Math.sqrt(1 - baseHSL[2]);
56826
- if (contrastRatio2(baseHSL, fixedHSL, output) < minContrast) {
57143
+ if (contrastRatio3(baseHSL, fixedHSL, output) < minContrast) {
56827
57144
  let start2, end2;
56828
57145
  if (isFixedColorDark) {
56829
57146
  start2 = baseHSL[2];
@@ -56835,7 +57152,7 @@ function findContrastColor(baseColor, fixedColor) {
56835
57152
  const PRECISION = 5e-3;
56836
57153
  while (end2 - start2 > PRECISION) {
56837
57154
  const mid = baseHSL[2] = (start2 + end2) / 2;
56838
- if (isFixedColorDark === contrastRatio2(baseHSL, fixedHSL, output) < minContrast) {
57155
+ if (isFixedColorDark === contrastRatio3(baseHSL, fixedHSL, output) < minContrast) {
56839
57156
  start2 = mid;
56840
57157
  } else {
56841
57158
  end2 = mid;
@@ -136957,6 +137274,7 @@ function makeCtx(tokens2, scheme = "light", opts = {}) {
136957
137274
  isRTL: opts.isRTL,
136958
137275
  keyboardVisible: opts.keyboardVisible,
136959
137276
  topBarSearch: opts.topBarSearch,
137277
+ scrollPast: opts.scrollPast,
136960
137278
  liveAudioLevel: opts.liveAudioLevel,
136961
137279
  containerWidth: opts.containerWidth,
136962
137280
  modStyle: makeModStyle(tk, () => ambientIsRTL(opts.isRTL), isIOSGlassPreview(opts.idiomContext), scheme),
@@ -137855,6 +138173,7 @@ function visibilityDelegates(node4, ctx) {
137855
138173
  const lit = typeof hp === "string" ? hp.trim().toLowerCase() : void 0;
137856
138174
  const litPath = lit === "true" || lit === "1" || lit === "false" || lit === "0";
137857
138175
  if ((typeof mods?.hidden === "boolean" || litPath) && exitSpecFor(mods, ctx)) return true;
138176
+ if (typeof hp === "string" && isScrollExpr(hp) && parseScrollExpr(hp)) return true;
137858
138177
  return typeof hp === "string" && isEnvExpr(hp) && !!exitSpecFor(mods, ctx);
137859
138178
  }
137860
138179
  function useBoundTransformMotion(node4, ctx) {
@@ -139413,7 +139732,12 @@ function renderNodeInner(node4, ctx, boundMotion) {
139413
139732
  if (typeof hp === "string" && hp) {
139414
139733
  const low = hp.trim().toLowerCase();
139415
139734
  if (low === "true" || low === "1") return null;
139416
- if (isEnvExpr(hp)) {
139735
+ if (isScrollExpr(hp)) {
139736
+ if (parseScrollExpr(hp)) {
139737
+ const bare = { ...node4, modifiers: { ...node4.modifiers, hiddenPath: void 0, hidden_path: void 0 } };
139738
+ return /* @__PURE__ */ jsx15(ScrollPastGate, { ctx, expr: hp, exit: exitSpecFor(node4.modifiers, ctx), children: renderNode(bare, ctx) });
139739
+ }
139740
+ } else if (isEnvExpr(hp)) {
139417
139741
  const envHide = envHidden(hp, ctxEnv(ctx)) === true;
139418
139742
  const exit = exitSpecFor(node4.modifiers, ctx);
139419
139743
  if (exit) {
@@ -140678,7 +141002,7 @@ function listSeparatorStyle(separator, horizontal) {
140678
141002
  const insetLeading = Math.max(0, Number(s5.insetLeading ?? s5.inset_leading ?? 0) || 0);
140679
141003
  return { token, thickness, insetLeading };
140680
141004
  }
140681
- var MOTION_WRAPPER_ATTRS, AppearanceActionContext, rowValue, loadPdfFetch, WebViewBridgeHost2, useIsomorphicLayoutEffect3, GridColumnsContext, GridBoundList, GRID_SPAN_ALL, ResponsiveGrid, MasonryCells, SPLIT_EXPANDED_MIN_WIDTH, SPLIT_COLUMN_GAP, ResponsiveSplitView, appearKeyframesInjected, valueSwapKeyframesInjected, NUMERIC_TEXT, shimmerKeyframesInjected, APPEAR_KEYFRAMES, linkedEntranceKeyframesInjected, pressStylesInjected, REVEAL_ON_FOCUS_ATTR, FOCUS_RING_CSS, focusStylesInjected, HLIST_CHILD_CSS, hListStylesInjected, listAnimateRuntimeInstalled, transitionKeyframesInjected, ENTER_KEYFRAMES, ENTRANCE_KEYFRAMES_CSS, countUpRuntimeInjected, MEASURE_PREFIX, measureRuntimeInjected, revealRuntimeInjected, AMBIENT_HOST_STYLE, AmbientMotionBox, vectorAnimStylesInjected, scrollProgressRuntimeInjected, scrollLinkedRuntime, confettiRuntimeInjected, lottieRuntimeInjected, lottieAssetHeaders, LOTTIE_RUNTIME_ATTRIBUTES, lottieAnims, riveRuntimeInjected, gradientKeyframesInjected, parallaxRuntimeInjected, spinKeyframesInjected, marqueeKeyframesInjected, alignItems, zJustifyItems, fillsZLayer, presentsFromOwnSurface, zLayerIndex, ZFILL_CSS, zFillStylesInjected, hAlignItems, bodyFont, kids2, columnKids, PLACED_TYPES, unplaced, columnPlaceStyle, rowKidCtx, rowKids, staggeredKids, asTextL10n, asFinalTextL10n, asBoundText, useBoundString, asBoundCopy, useBoundCopy, InterpolatedTextView, txt, oneLineDir, txtRaw, selectFragmentCase, fragmentValueHash, fragmentSlotContent, FragmentSlotNode, RichContentEditorNode, MediaFieldNode, WorkerSubtreeNode, RichContentNode, substituteItemDeep, resolveItemDeep2, resolveRowAction2, resolveSwipeActions, resolveModBindings, resolvedComponentId, directServiceBindings, withRootStyle, InScreenMorphHost, ReactiveDirectScalars, resolveNodeBoundTransforms, HiddenGate, ExitPresence, StatefulSectionNode, KEYBOARD_INPUT_MODES, AUTOCAPITALIZE_VALUES, ENTER_KEY_HINTS, AUTOCOMPLETE_TOKENS, AUTOGROW_CEILING, EditableField, MENU_ANCHOR_CONTROL, MenuNode, MENU_LONG_PRESS_MS, menuOpensOnLongPress, LoadMoreSentinel, FieldErrorNode, FormView, MediaSlotProvider, MEDIA_ITEM_BINDABLE, MediaPlayerView, VideoNode, PdfDocumentCanvas, PdfViewNode, WebViewNode, InteractivePicker, InteractiveDatePicker, InteractiveSearchField, InteractiveStepper, NODE_EXTRAS_TARGET, SYNTHETIC_TAP_ROLE, SYNTHETIC_TABINDEX, INFERRED_DECORATIVE, SELF_RENDERED_LEAF, ROLE_WHEN_NAMED, AUTHORED_ROLE, PENDING_RANGE, RANGE_ROLES, NODE_A11Y_ATTRS, INTERACTIVE_ROLES, ALWAYS_INTERACTIVE_COMPONENT_TYPES, TAP_ACTIVATOR_ATTR, TAP_GROUP_ATTR, NESTED_CONTROL_SELECTOR, VISUALLY_HIDDEN, NAME_SKIP_SELECTOR, activatorNameObservers, ACTIVATOR_STATE_ATTRS, controlNode, ToggleNode, SliderNode, SelectionControlNode, TabsNode, SegmentedControlNode, DisclosureGroupNode, GridNode, SplitViewNode, REVEAL_RELEASE_MS, REVEAL_FADE_MS, REVEAL_BUFFER, revealProgress, countWords, RevealText, TextNode, ImageNode, ANIMATION_LEAF, LottieNode, RiveNode, AvatarNode, IconNode, EMPTY_STATE_SPACING, EmptyStateNode, ERROR_STATE_VARIANTS, ERROR_STATE_SPACING, ErrorStateNode, ButtonNode, OtpInputNode, ProgressBarNode, SnackbarNode, ACTIVITY_DEFAULT_NAME, ACTIVITY_RING_ARC, ActivityIndicatorNode, NATIVELY_TABBABLE, BottomSheetNode, BOTTOM_DRAWER_HOST_STACK_EVENT, ModalBottomSheetNode, BottomDrawerNode, PRESENTED_OVERLAY_ATTR, TooltipNode, PopoverNode, ChipsInputNode, ChipNode, TableNode, GaugeRing, GaugeNode, RATING_METRICS, ratingMetrics, RatingNode, AVATAR_RING_INSET, AVATAR_BORDER_INSET, AvatarStripNode, CHART_STROKE_CYCLE, chartStrokeAt, chartBarCenter, ChartNode, donutSliceOpacity, DonutChartNode, QrCodeNode, ShapeNode, LegendMarker, LegendNode, cellAlign, dataTableProbe, DataTableNode, voiceNoteState, voiceNoteDelivery, VOICE_NOTE_DEFAULT_BARS, clampBarCount, VoiceNoteNode, LiveWaveformNode, PageControlNode, TimelineNode, ECHO_WINDOW_MS, heldPageIndex, LiveWindowMeasured, LiveWindowPage, PagingNode, WheelPickerNode, ColorPickerNode, FilterChipsNode, TILE_PX, MAX_MERCATOR_LAT, DEFAULT_TILE_MAX_ZOOM, CIRCLE_SEGMENTS, METRES_PER_DEG_LAT, MARKER_HIT_RADIUS, SHAPE_HIT_RADIUS, MapNode, CAROUSEL_SETTLE_MS, railScrollLeft, carouselScrollLeft, scrollCarouselTo, carouselDotsDrawn, CarouselNode, BannerNode, CollapsingHeaderNode, UnsupportedOnSurface, ptrCopy, CALENDAR_DATE_ONLY_RE, CAL_DEFAULT_MAX_DOTS, CAL_AGENDA_INITIAL_DAYS, CAL_AGENDA_PAGE_DAYS, CAL_DEFAULT_SNAP_MINUTES, CAL_UNASSIGNED_LANE_ID, MonthCalendarNode, TimeGridNode, AgendaNode, ARIA_ROLE, initialFocusScheduled, PRESENTED_SCOPE, focusRoots, A11yHintDescription, rowRenderers, railRowFrame, renderRailRow, RowAnchors, reportedUnknownComponents, UnknownComponentNode, WebRenderer, ScrollIntoViewNode;
141005
+ var MOTION_WRAPPER_ATTRS, AppearanceActionContext, rowValue, loadPdfFetch, WebViewBridgeHost2, useIsomorphicLayoutEffect3, GridColumnsContext, GridBoundList, GRID_SPAN_ALL, ResponsiveGrid, MasonryCells, SPLIT_EXPANDED_MIN_WIDTH, SPLIT_COLUMN_GAP, ResponsiveSplitView, appearKeyframesInjected, valueSwapKeyframesInjected, NUMERIC_TEXT, shimmerKeyframesInjected, APPEAR_KEYFRAMES, linkedEntranceKeyframesInjected, pressStylesInjected, REVEAL_ON_FOCUS_ATTR, FOCUS_RING_CSS, focusStylesInjected, HLIST_CHILD_CSS, hListStylesInjected, listAnimateRuntimeInstalled, transitionKeyframesInjected, ENTER_KEYFRAMES, ENTRANCE_KEYFRAMES_CSS, countUpRuntimeInjected, MEASURE_PREFIX, measureRuntimeInjected, revealRuntimeInjected, AMBIENT_HOST_STYLE, AmbientMotionBox, vectorAnimStylesInjected, scrollProgressRuntimeInjected, scrollLinkedRuntime, confettiRuntimeInjected, lottieRuntimeInjected, lottieAssetHeaders, LOTTIE_RUNTIME_ATTRIBUTES, lottieAnims, riveRuntimeInjected, gradientKeyframesInjected, parallaxRuntimeInjected, spinKeyframesInjected, marqueeKeyframesInjected, alignItems, zJustifyItems, fillsZLayer, presentsFromOwnSurface, zLayerIndex, ZFILL_CSS, zFillStylesInjected, hAlignItems, bodyFont, kids2, columnKids, PLACED_TYPES, unplaced, columnPlaceStyle, rowKidCtx, rowKids, staggeredKids, asTextL10n, asFinalTextL10n, asBoundText, useBoundString, asBoundCopy, useBoundCopy, InterpolatedTextView, txt, oneLineDir, txtRaw, selectFragmentCase, fragmentValueHash, fragmentSlotContent, FragmentSlotNode, RichContentEditorNode, MediaFieldNode, WorkerSubtreeNode, RichContentNode, substituteItemDeep, resolveItemDeep2, resolveRowAction2, resolveSwipeActions, resolveModBindings, resolvedComponentId, directServiceBindings, withRootStyle, InScreenMorphHost, ReactiveDirectScalars, resolveNodeBoundTransforms, HiddenGate, ScrollPastGate, ExitPresence, StatefulSectionNode, KEYBOARD_INPUT_MODES, AUTOCAPITALIZE_VALUES, ENTER_KEY_HINTS, AUTOCOMPLETE_TOKENS, AUTOGROW_CEILING, EditableField, MENU_ANCHOR_CONTROL, MenuNode, MENU_LONG_PRESS_MS, menuOpensOnLongPress, LoadMoreSentinel, FieldErrorNode, FormView, MediaSlotProvider, MEDIA_ITEM_BINDABLE, MediaPlayerView, VideoNode, PdfDocumentCanvas, PdfViewNode, WebViewNode, InteractivePicker, InteractiveDatePicker, InteractiveSearchField, InteractiveStepper, NODE_EXTRAS_TARGET, SYNTHETIC_TAP_ROLE, SYNTHETIC_TABINDEX, INFERRED_DECORATIVE, SELF_RENDERED_LEAF, ROLE_WHEN_NAMED, AUTHORED_ROLE, PENDING_RANGE, RANGE_ROLES, NODE_A11Y_ATTRS, INTERACTIVE_ROLES, ALWAYS_INTERACTIVE_COMPONENT_TYPES, TAP_ACTIVATOR_ATTR, TAP_GROUP_ATTR, NESTED_CONTROL_SELECTOR, VISUALLY_HIDDEN, NAME_SKIP_SELECTOR, activatorNameObservers, ACTIVATOR_STATE_ATTRS, controlNode, ToggleNode, SliderNode, SelectionControlNode, TabsNode, SegmentedControlNode, DisclosureGroupNode, GridNode, SplitViewNode, REVEAL_RELEASE_MS, REVEAL_FADE_MS, REVEAL_BUFFER, revealProgress, countWords, RevealText, TextNode, ImageNode, ANIMATION_LEAF, LottieNode, RiveNode, AvatarNode, IconNode, EMPTY_STATE_SPACING, EmptyStateNode, ERROR_STATE_VARIANTS, ERROR_STATE_SPACING, ErrorStateNode, ButtonNode, OtpInputNode, ProgressBarNode, SnackbarNode, ACTIVITY_DEFAULT_NAME, ACTIVITY_RING_ARC, ActivityIndicatorNode, NATIVELY_TABBABLE, BottomSheetNode, BOTTOM_DRAWER_HOST_STACK_EVENT, ModalBottomSheetNode, BottomDrawerNode, PRESENTED_OVERLAY_ATTR, TooltipNode, PopoverNode, ChipsInputNode, ChipNode, TableNode, GaugeRing, GaugeNode, RATING_METRICS, ratingMetrics, RatingNode, AVATAR_RING_INSET, AVATAR_BORDER_INSET, AvatarStripNode, CHART_STROKE_CYCLE, chartStrokeAt, chartBarCenter, ChartNode, donutSliceOpacity, DonutChartNode, QrCodeNode, ShapeNode, LegendMarker, LegendNode, cellAlign, dataTableProbe, DataTableNode, voiceNoteState, voiceNoteDelivery, VOICE_NOTE_DEFAULT_BARS, clampBarCount, VoiceNoteNode, LiveWaveformNode, PageControlNode, TimelineNode, ECHO_WINDOW_MS, heldPageIndex, LiveWindowMeasured, LiveWindowPage, PagingNode, WheelPickerNode, ColorPickerNode, FilterChipsNode, TILE_PX, MAX_MERCATOR_LAT, DEFAULT_TILE_MAX_ZOOM, CIRCLE_SEGMENTS, METRES_PER_DEG_LAT, MARKER_HIT_RADIUS, SHAPE_HIT_RADIUS, MapNode, CAROUSEL_SETTLE_MS, railScrollLeft, carouselScrollLeft, scrollCarouselTo, carouselDotsDrawn, CarouselNode, BannerNode, CollapsingHeaderNode, UnsupportedOnSurface, ptrCopy, CALENDAR_DATE_ONLY_RE, CAL_DEFAULT_MAX_DOTS, CAL_AGENDA_INITIAL_DAYS, CAL_AGENDA_PAGE_DAYS, CAL_DEFAULT_SNAP_MINUTES, CAL_UNASSIGNED_LANE_ID, MonthCalendarNode, TimeGridNode, AgendaNode, ARIA_ROLE, initialFocusScheduled, PRESENTED_SCOPE, focusRoots, A11yHintDescription, rowRenderers, railRowFrame, renderRailRow, RowAnchors, reportedUnknownComponents, UnknownComponentNode, WebRenderer, ScrollIntoViewNode;
140682
141006
  var init_renderNode = __esm({
140683
141007
  "../../core/web-renderer/src/renderNode.tsx"() {
140684
141008
  "use strict";
@@ -140716,6 +141040,7 @@ var init_renderNode = __esm({
140716
141040
  init_formBag();
140717
141041
  init_form_bag();
140718
141042
  init_env();
141043
+ init_scrollPast();
140719
141044
  init_ambient_motion();
140720
141045
  init_actionParams();
140721
141046
  init_workerTapBusy();
@@ -141143,7 +141468,9 @@ var init_renderNode = __esm({
141143
141468
  const casePath = props2.casePath ?? props2.case_path;
141144
141469
  const isService = typeof casePath === "string" && isStateBinding(casePath);
141145
141470
  const bound2 = useBoundValue(ctx, isService ? casePath : "");
141146
- const discriminator = isService ? bound2 : isEnvExpr(casePath) ? evalEnvExpr(casePath, ctxEnv(ctx)) : resolveScalarStatic(casePath, ctx);
141471
+ const isScroll = typeof casePath === "string" && isScrollExpr(casePath);
141472
+ const scrolled = useScrollPast(ctx.scrollPast, isScroll ? casePath : "");
141473
+ const discriminator = isService ? bound2 : isScroll ? scrolled : isEnvExpr(casePath) ? evalEnvExpr(casePath, ctxEnv(ctx)) : resolveScalarStatic(casePath, ctx);
141147
141474
  return fragmentSlotContent({ props: props2, ctx, discriminator, slotId: nodeId, extra: wrap });
141148
141475
  });
141149
141476
  RichContentEditorNode = withExtras("RichContentEditorNode", ({ props: props2, ctx, wrap, nodeId }) => /* @__PURE__ */ jsx15(RichContentEditorView, { props: props2, ctx, wrap, nodeId, renderChild: (n2) => renderNode(n2, ctx) }));
@@ -141456,6 +141783,10 @@ var init_renderNode = __esm({
141456
141783
  const v2 = useBoundValue(ctx, binding2);
141457
141784
  return /* @__PURE__ */ jsx15(ExitPresence, { hidden: gateHidden(v2, unresolvedHidden), exit: exit ?? null, children: children2 });
141458
141785
  };
141786
+ ScrollPastGate = ({ ctx, expr, exit, children: children2 }) => {
141787
+ const v2 = useScrollPast(ctx.scrollPast, expr);
141788
+ return /* @__PURE__ */ jsx15(ExitPresence, { hidden: v2 === "true", exit: exit ?? null, children: children2 });
141789
+ };
141459
141790
  ExitPresence = ({ hidden, exit, children: children2 }) => {
141460
141791
  const [prevHidden, setPrevHidden] = React22.useState(hidden);
141461
141792
  const [exiting, setExiting] = React22.useState(false);
@@ -178517,7 +178848,7 @@ var init_velo = __esm({
178517
178848
  function isCanonicalHex(value2) {
178518
178849
  return CANONICAL_HEX.test(value2.trim());
178519
178850
  }
178520
- function channel(raw) {
178851
+ function channel2(raw) {
178521
178852
  if (!/^\d{1,3}$/.test(raw)) return void 0;
178522
178853
  const n2 = Number(raw);
178523
178854
  return n2 <= 255 ? n2 : void 0;
@@ -178537,7 +178868,7 @@ function canonicalHex(value2) {
178537
178868
  const wantsAlpha = fn2[1].toLowerCase() === "rgba";
178538
178869
  const parts = fn2[2].split(",").map((p2) => p2.trim());
178539
178870
  if (parts.length !== (wantsAlpha ? 4 : 3)) return void 0;
178540
- const [r3, g2, b3] = [channel(parts[0]), channel(parts[1]), channel(parts[2])];
178871
+ const [r3, g2, b3] = [channel2(parts[0]), channel2(parts[1]), channel2(parts[2])];
178541
178872
  if (r3 === void 0 || g2 === void 0 || b3 === void 0) return void 0;
178542
178873
  if (!wantsAlpha) return `#${byte(r3)}${byte(g2)}${byte(b3)}`;
178543
178874
  const a3 = alpha(parts[3]);
@@ -178559,13 +178890,13 @@ function tokenColorProblems(colors) {
178559
178890
  }
178560
178891
  return problems;
178561
178892
  }
178562
- function relativeLuminance(hex2) {
178893
+ function relativeLuminance2(hex2) {
178563
178894
  const lin = [1, 3, 5].map((i2) => parseInt(hex2.slice(i2, i2 + 2), 16) / 255).map((v2) => v2 <= 0.03928 ? v2 / 12.92 : ((v2 + 0.055) / 1.055) ** 2.4);
178564
178895
  return 0.2126 * lin[0] + 0.7152 * lin[1] + 0.0722 * lin[2];
178565
178896
  }
178566
- function contrastRatio3(a3, b3) {
178567
- const la2 = relativeLuminance(a3);
178568
- const lb = relativeLuminance(b3);
178897
+ function contrastRatio4(a3, b3) {
178898
+ const la2 = relativeLuminance2(a3);
178899
+ const lb = relativeLuminance2(b3);
178569
178900
  return (Math.max(la2, lb) + 0.05) / (Math.min(la2, lb) + 0.05);
178570
178901
  }
178571
178902
  var CANONICAL_HEX, byte;
@@ -178651,9 +178982,9 @@ function tokensFromWst(wst) {
178651
178982
  if (surface2) colors.surfaceSecondary = { light: surface2 };
178652
178983
  const opaque2 = (c2) => c2 && c2.length === 7 ? c2 : void 0;
178653
178984
  const surface = opaque2(usableCssColor(wst["--wst-color-fill-base-1"]));
178654
- const ramp = !surface ? [] : ["--wst-color-fill-base-shade-1", "--wst-color-fill-base-shade-2", "--wst-color-fill-base-shade-3"].map((v2) => opaque2(usableCssColor(wst[v2]))).filter((c2) => !!c2).map((c2) => ({ c: c2, ratio: contrastRatio3(c2, surface) }));
178985
+ const ramp = !surface ? [] : ["--wst-color-fill-base-shade-1", "--wst-color-fill-base-shade-2", "--wst-color-fill-base-shade-3"].map((v2) => opaque2(usableCssColor(wst[v2]))).filter((c2) => !!c2).map((c2) => ({ c: c2, ratio: contrastRatio4(c2, surface) }));
178655
178986
  const primary = surface ? opaque2(usableCssColor(wst["--wst-color-text-primary"])) : void 0;
178656
- const primaryRatio = primary && surface ? contrastRatio3(primary, surface) : void 0;
178987
+ const primaryRatio = primary && surface ? contrastRatio4(primary, surface) : void 0;
178657
178988
  const tertiary = primaryRatio === void 0 ? void 0 : ramp.filter((x2) => x2.ratio >= 4.5 && x2.ratio < primaryRatio).sort((a3, b3) => a3.ratio - b3.ratio)[0];
178658
178989
  if (tertiary) colors.textTertiary = { light: tertiary.c };
178659
178990
  const border = ramp.filter((x2) => x2.ratio >= 1.3 && x2.ratio <= 3).sort((a3, b3) => a3.ratio - b3.ratio)[0];
@@ -180400,178 +180731,6 @@ var init_notify_setup = __esm({
180400
180731
  }
180401
180732
  });
180402
180733
 
180403
- // ../../core/ts/src/brand-color-math.ts
180404
- function channel2(hex2, offset) {
180405
- return Number.parseInt(hex2.slice(offset, offset + 2), 16);
180406
- }
180407
- function toHex(r3, g2, b3) {
180408
- return `#${[r3, g2, b3].map((value2) => Math.round(value2).toString(16).padStart(2, "0")).join("")}`.toUpperCase();
180409
- }
180410
- function mix2(color, background, colorWeight) {
180411
- const values = [1, 3, 5].map((offset) => channel2(color, offset) * colorWeight + channel2(background, offset) * (1 - colorWeight));
180412
- return toHex(values[0], values[1], values[2]);
180413
- }
180414
- function relativeLuminance2(color) {
180415
- const linear = [1, 3, 5].map((offset) => {
180416
- const value2 = channel2(color, offset) / 255;
180417
- return value2 <= 0.03928 ? value2 / 12.92 : ((value2 + 0.055) / 1.055) ** 2.4;
180418
- });
180419
- return 0.2126 * linear[0] + 0.7152 * linear[1] + 0.0722 * linear[2];
180420
- }
180421
- function contrastRatio4(a3, b3) {
180422
- const la2 = relativeLuminance2(a3);
180423
- const lb = relativeLuminance2(b3);
180424
- return (Math.max(la2, lb) + 0.05) / (Math.min(la2, lb) + 0.05);
180425
- }
180426
- function lstar(color) {
180427
- const y2 = relativeLuminance2(color);
180428
- return y2 <= 8856e-6 ? y2 * 903.3 : 116 * Math.cbrt(y2) - 16;
180429
- }
180430
- function deriveAccentSurface(accent, surface, weight2) {
180431
- const tint = mix2(accent, surface, weight2);
180432
- if (contrastRatio4(tint, surface) >= ACCENT_SURFACE_MIN_DELTA) return tint;
180433
- const away = relativeLuminance2(surface) < 0.5 ? "#FFFFFF" : "#000000";
180434
- for (let w2 = 0.02; w2 <= 0.5; w2 += 0.02) {
180435
- const candidate = mix2(away, surface, w2);
180436
- if (contrastRatio4(candidate, surface) >= ACCENT_SURFACE_MIN_DELTA) return candidate;
180437
- }
180438
- return tint;
180439
- }
180440
- function deriveSecondaryAccent(primary) {
180441
- const shade2 = mix2(primary, "#000000", SECONDARY_SHADE_WEIGHT);
180442
- if (lstar(shade2) >= SECONDARY_MIN_LSTAR) return shade2;
180443
- return mix2(primary, "#FFFFFF", SECONDARY_SHADE_WEIGHT);
180444
- }
180445
- function textOn(color) {
180446
- const luminance2 = relativeLuminance2(color);
180447
- const whiteContrast = 1.05 / (luminance2 + 0.05);
180448
- const blackContrast = (luminance2 + 0.05) / 0.05;
180449
- return whiteContrast >= blackContrast ? "#FFFFFF" : "#000000";
180450
- }
180451
- function tuneDarkAccent(brand, darkSurface2, lightSurface) {
180452
- const kitInherentlyDark = lstar(lightSurface) < 50;
180453
- if (kitInherentlyDark && contrastRatio4(brand, darkSurface2) >= DARK_ARM_TARGET_CONTRAST && lstar(brand) <= DARK_ARM_LSTAR_CAP) {
180454
- return brand;
180455
- }
180456
- let lift = DARK_ARM_MIN_LIFT;
180457
- let candidate = mix2(brand, "#FFFFFF", 1 - lift);
180458
- while (contrastRatio4(candidate, darkSurface2) < DARK_ARM_TARGET_CONTRAST && lift < 0.6) {
180459
- lift += 0.04;
180460
- candidate = mix2(brand, "#FFFFFF", 1 - lift);
180461
- }
180462
- while (lstar(candidate) > DARK_ARM_LSTAR_CAP) {
180463
- const darker = mix2(candidate, "#000000", 0.94);
180464
- if (contrastRatio4(darker, darkSurface2) < DARK_ARM_FLOOR_CONTRAST) break;
180465
- candidate = darker;
180466
- }
180467
- return candidate;
180468
- }
180469
- function textOnArm(accent) {
180470
- return contrastRatio4("#FFFFFF", accent) >= 4.5 ? "#FFFFFF" : textOn(accent);
180471
- }
180472
- function tuneHighContrastAccent(brand, surface) {
180473
- const towards = relativeLuminance2(surface) < 0.5 ? "#FFFFFF" : "#000000";
180474
- let candidate = brand;
180475
- for (let lift = 0; lift <= 0.9 && contrastRatio4(candidate, surface) < HIGH_CONTRAST_TARGET; lift += 0.04) {
180476
- candidate = mix2(brand, towards, 1 - lift);
180477
- }
180478
- return candidate;
180479
- }
180480
- function deriveAccentText(accent, surfaces) {
180481
- const all = (typeof surfaces === "string" ? [surfaces] : [...surfaces]).map((s5) => s5.slice(0, 7));
180482
- const page = all[0];
180483
- const worst2 = (color) => Math.min(...all.map((s5) => contrastRatio4(color, s5)));
180484
- const opaque2 = accent.length === 9 ? mix2(accent.slice(0, 7), page, channel2(accent, 7) / 255) : accent;
180485
- if (worst2(opaque2) >= ACCENT_TEXT_MIN_CONTRAST) return opaque2;
180486
- const pole = worst2("#FFFFFF") >= worst2("#000000") ? "#FFFFFF" : "#000000";
180487
- for (let step = 1; step <= 100; step++) {
180488
- const candidate = mix2(pole, opaque2, step / 100);
180489
- if (worst2(candidate) >= ACCENT_TEXT_MIN_CONTRAST) return candidate;
180490
- }
180491
- if (all.length > 1) {
180492
- const side2 = (hex2) => relativeLuminance2(hex2) > MID_GREY_LUMINANCE;
180493
- const sameSide = all.filter((s5) => side2(s5) === side2(page));
180494
- return deriveAccentText(accent, sameSide.length < all.length ? sameSide : [page]);
180495
- }
180496
- return pole;
180497
- }
180498
- function textSurfacesOf(colors) {
180499
- const out2 = { light: [], dark: [], highContrast: [] };
180500
- for (const name of TEXT_BACKDROP_TOKENS) {
180501
- const value2 = colors[name];
180502
- for (const arm of ["light", "dark", "highContrast"]) {
180503
- const hex2 = typeof value2 === "string" ? value2 : value2 && typeof value2 === "object" && !Array.isArray(value2) ? value2[arm] ?? value2.light : void 0;
180504
- if (typeof hex2 === "string" && hex2.startsWith("#") && hex2.length >= 7) out2[arm].push(hex2);
180505
- }
180506
- }
180507
- return out2;
180508
- }
180509
- function stripBrandFromIdiom(tokens2) {
180510
- const idiom = tokens2.idiom;
180511
- if (!idiom || typeof idiom !== "object" || Array.isArray(idiom)) return;
180512
- for (const overlay of Object.values(idiom)) {
180513
- if (!overlay || typeof overlay !== "object" || Array.isArray(overlay)) continue;
180514
- const o2 = overlay;
180515
- const colors = o2.colors;
180516
- if (colors && typeof colors === "object" && !Array.isArray(colors)) {
180517
- for (const key4 of BRAND_COLOR_TOKENS) delete colors[key4];
180518
- if (Object.keys(colors).length === 0) delete o2.colors;
180519
- }
180520
- const shadows2 = o2.shadows;
180521
- const glow = shadows2 && typeof shadows2 === "object" && !Array.isArray(shadows2) ? shadows2[BRAND_GLOW_SHADOW] : void 0;
180522
- if (glow && typeof glow === "object" && !Array.isArray(glow) && "color" in glow) {
180523
- delete glow.color;
180524
- if (Object.keys(glow).length === 0) delete shadows2[BRAND_GLOW_SHADOW];
180525
- if (Object.keys(shadows2).length === 0) delete o2.shadows;
180526
- }
180527
- }
180528
- }
180529
- function deriveAccentFamily(primary, secondary, surfaces, textSurfaces = {}) {
180530
- const primaryDark = tuneDarkAccent(primary, surfaces.dark, surfaces.light);
180531
- const secondaryDark = tuneDarkAccent(secondary, surfaces.dark, surfaces.light);
180532
- const primaryHigh = tuneHighContrastAccent(primary, surfaces.highContrast);
180533
- const secondaryHigh = tuneHighContrastAccent(secondary, surfaces.highContrast);
180534
- return {
180535
- accentPrimary: { light: primary, dark: primaryDark, highContrast: primaryHigh },
180536
- accentSecondary: { light: secondary, dark: secondaryDark, highContrast: secondaryHigh },
180537
- accentSurface: {
180538
- light: deriveAccentSurface(primary, surfaces.light, ACCENT_SURFACE_LIGHT_WEIGHT),
180539
- dark: deriveAccentSurface(primaryDark, surfaces.dark, 0.24),
180540
- highContrast: deriveAccentSurface(primaryHigh, surfaces.highContrast, 0.24)
180541
- },
180542
- textOnAccent: {
180543
- light: textOnArm(primary),
180544
- dark: textOnArm(primaryDark),
180545
- highContrast: textOn(primaryHigh)
180546
- },
180547
- accentText: {
180548
- light: deriveAccentText(primary, [surfaces.light, ...textSurfaces.light ?? []]),
180549
- dark: deriveAccentText(primaryDark, [surfaces.dark, ...textSurfaces.dark ?? []]),
180550
- highContrast: deriveAccentText(primaryHigh, [surfaces.highContrast, ...textSurfaces.highContrast ?? []])
180551
- }
180552
- };
180553
- }
180554
- var ACCENT_SURFACE_MIN_DELTA, ACCENT_SURFACE_LIGHT_WEIGHT, SECONDARY_SHADE_WEIGHT, SECONDARY_MIN_LSTAR, DARK_ARM_MIN_LIFT, DARK_ARM_TARGET_CONTRAST, DARK_ARM_FLOOR_CONTRAST, DARK_ARM_LSTAR_CAP, HIGH_CONTRAST_TARGET, ACCENT_TEXT_MIN_CONTRAST, MID_GREY_LUMINANCE, TEXT_BACKDROP_TOKENS, BRAND_COLOR_TOKENS, BRAND_GLOW_SHADOW;
180555
- var init_brand_color_math = __esm({
180556
- "../../core/ts/src/brand-color-math.ts"() {
180557
- init_define_HHP_CATALOG();
180558
- ACCENT_SURFACE_MIN_DELTA = 1.08;
180559
- ACCENT_SURFACE_LIGHT_WEIGHT = 0.12;
180560
- SECONDARY_SHADE_WEIGHT = 0.72;
180561
- SECONDARY_MIN_LSTAR = 22;
180562
- DARK_ARM_MIN_LIFT = 0.08;
180563
- DARK_ARM_TARGET_CONTRAST = 3.4;
180564
- DARK_ARM_FLOOR_CONTRAST = 3;
180565
- DARK_ARM_LSTAR_CAP = 80;
180566
- HIGH_CONTRAST_TARGET = 8.5;
180567
- ACCENT_TEXT_MIN_CONTRAST = 4.5;
180568
- MID_GREY_LUMINANCE = 0.179;
180569
- TEXT_BACKDROP_TOKENS = ["surfaceSecondary", "surfaceElevated", "surfaceSubtle", "surfaceTertiary"];
180570
- BRAND_COLOR_TOKENS = ["accentPrimary", "accentSecondary", "accentSurface", "textOnAccent", "accentText"];
180571
- BRAND_GLOW_SHADOW = "glow";
180572
- }
180573
- });
180574
-
180575
180734
  // src/site-analyze/branding-derive.ts
180576
180735
  function secondBrandColour(wst) {
180577
180736
  for (const name of ["--wst-color-fill-accent-2", "--wst-color-fill-accent-3"]) {
@@ -183627,33 +183786,6 @@ var init_surface_lint = __esm({
183627
183786
  }
183628
183787
  });
183629
183788
 
183630
- // ../../core/ts/src/top-bar-fill.ts
183631
- function topBarFill(color) {
183632
- const fill2 = color.slice(0, 7).toUpperCase();
183633
- const light = contrastRatio4(fill2, TOP_BAR_LIGHT_FOREGROUND);
183634
- const dark = contrastRatio4(fill2, TOP_BAR_DARK_FOREGROUND);
183635
- const foreground = light >= dark ? TOP_BAR_LIGHT_FOREGROUND : TOP_BAR_DARK_FOREGROUND;
183636
- const drawn = deriveAccentText(fill2, foreground);
183637
- return {
183638
- fill: fill2,
183639
- foreground,
183640
- ratio: round2(Math.max(light, dark)),
183641
- drawn,
183642
- drawnRatio: round2(contrastRatio4(drawn, foreground)),
183643
- nudged: drawn !== fill2
183644
- };
183645
- }
183646
- var TOP_BAR_DARK_FOREGROUND, TOP_BAR_LIGHT_FOREGROUND, round2;
183647
- var init_top_bar_fill = __esm({
183648
- "../../core/ts/src/top-bar-fill.ts"() {
183649
- init_define_HHP_CATALOG();
183650
- init_brand_color_math();
183651
- TOP_BAR_DARK_FOREGROUND = "#1A1B20";
183652
- TOP_BAR_LIGHT_FOREGROUND = "#FFFFFF";
183653
- round2 = (n2) => Math.round(n2 * 100) / 100;
183654
- }
183655
- });
183656
-
183657
183789
  // src/token-lint.ts
183658
183790
  import { existsSync as existsSync68, readFileSync as readFileSync74 } from "node:fs";
183659
183791
  import { join as join64 } from "node:path";
@@ -183949,10 +184081,10 @@ function paintedOver(fg, bg) {
183949
184081
  function sameHueForContrast(fg, bg, target = AA_TEXT) {
183950
184082
  const base2 = fg.slice(0, 7);
183951
184083
  const opaqueBg = bg.slice(0, 7);
183952
- const pole = contrastRatio3("#000000", opaqueBg) >= contrastRatio3("#FFFFFF", opaqueBg) ? "#000000" : "#FFFFFF";
184084
+ const pole = contrastRatio4("#000000", opaqueBg) >= contrastRatio4("#FFFFFF", opaqueBg) ? "#000000" : "#FFFFFF";
183953
184085
  for (let step = 0; step <= 100; step++) {
183954
184086
  const candidate = mixHex(base2, pole, 1 - step / 100);
183955
- if (contrastRatio3(candidate, opaqueBg) >= target) return candidate;
184087
+ if (contrastRatio4(candidate, opaqueBg) >= target) return candidate;
183956
184088
  }
183957
184089
  return void 0;
183958
184090
  }
@@ -183974,7 +184106,7 @@ function contrastFindings(colors) {
183974
184106
  const painted2 = paintedOver(fg, bg);
183975
184107
  if (!painted2) continue;
183976
184108
  const opaqueBg = bg.slice(0, 7);
183977
- const ratio = contrastRatio3(painted2, opaqueBg);
184109
+ const ratio = contrastRatio4(painted2, opaqueBg);
183978
184110
  if (ratio >= AA_TEXT) continue;
183979
184111
  const key4 = `${fgName}|${pair.bg}|${fg}|${bg}`;
183980
184112
  const same6 = findings.get(key4);
@@ -183982,10 +184114,10 @@ function contrastFindings(colors) {
183982
184114
  same6.schemes.push(scheme);
183983
184115
  continue;
183984
184116
  }
183985
- const darker = contrastRatio3("#000000", opaqueBg) >= contrastRatio3("#FFFFFF", opaqueBg);
184117
+ const darker = contrastRatio4("#000000", opaqueBg) >= contrastRatio4("#FFFFFF", opaqueBg);
183986
184118
  const ink = darker ? "#000000" : "#FFFFFF";
183987
- const suggestion = pair.suggest === "same-hue" ? sameHueForContrast(painted2, opaqueBg) : pair.suggest === "ink" && contrastRatio3(ink, opaqueBg) >= AA_TEXT ? ink : void 0;
183988
- const fix = !suggestion ? ` Pick a ${fgName} that clears ${AA_TEXT}:1 against ${pair.bg}.` : pair.suggest === "same-hue" ? ` A ${darker ? "darker" : "lighter"} ${fgName} of the same hue that clears it is ${suggestion} (${contrastRatio3(suggestion, opaqueBg).toFixed(2)}:1).` : ` ${suggestion} clears it (${contrastRatio3(suggestion, opaqueBg).toFixed(2)}:1).`;
184119
+ const suggestion = pair.suggest === "same-hue" ? sameHueForContrast(painted2, opaqueBg) : pair.suggest === "ink" && contrastRatio4(ink, opaqueBg) >= AA_TEXT ? ink : void 0;
184120
+ const fix = !suggestion ? ` Pick a ${fgName} that clears ${AA_TEXT}:1 against ${pair.bg}.` : pair.suggest === "same-hue" ? ` A ${darker ? "darker" : "lighter"} ${fgName} of the same hue that clears it is ${suggestion} (${contrastRatio4(suggestion, opaqueBg).toFixed(2)}:1).` : ` ${suggestion} clears it (${contrastRatio4(suggestion, opaqueBg).toFixed(2)}:1).`;
183989
184121
  findings.set(key4, {
183990
184122
  key: key4,
183991
184123
  schemes: [scheme],
@@ -184006,7 +184138,7 @@ function sameHueClearingAll(fg, bgs, target = AA_TEXT) {
184006
184138
  for (let step = 0; step <= 100; step++) {
184007
184139
  for (const pole of poles) {
184008
184140
  const candidate = mixHex(base2, pole, 1 - step / 100);
184009
- if (bgs.every((bg) => contrastRatio3(candidate, bg) >= target)) return candidate;
184141
+ if (bgs.every((bg) => contrastRatio4(candidate, bg) >= target)) return candidate;
184010
184142
  }
184011
184143
  }
184012
184144
  return void 0;
@@ -184027,10 +184159,10 @@ function textOnSurfaces(colors, declared, findings) {
184027
184159
  const page = pageRaw && paintedOver(fg, pageRaw) ? pageRaw.slice(0, 7) : void 0;
184028
184160
  const opaqueBg = bg.slice(0, 7);
184029
184161
  if (page === opaqueBg) continue;
184030
- const ratio = contrastRatio3(painted2, opaqueBg);
184162
+ const ratio = contrastRatio4(painted2, opaqueBg);
184031
184163
  if (ratio >= AA_TEXT) continue;
184032
184164
  const invisible = ratio < INVISIBLE_TEXT;
184033
- if (!invisible && page && contrastRatio3(paintedOver(fg, pageRaw), page) < AA_TEXT) continue;
184165
+ if (!invisible && page && contrastRatio4(paintedOver(fg, pageRaw), page) < AA_TEXT) continue;
184034
184166
  const key4 = `${fgName}|${surface}|${fg}|${bg}|${page ?? ""}`;
184035
184167
  const same6 = findings.get(key4);
184036
184168
  if (same6) {
@@ -184038,10 +184170,10 @@ function textOnSurfaces(colors, declared, findings) {
184038
184170
  continue;
184039
184171
  }
184040
184172
  const opposite = page !== void 0 && onLightSide(page) !== onLightSide(opaqueBg);
184041
- const noSingle = page !== void 0 && opposite && contrastRatio3(page, opaqueBg) < AA_TEXT * AA_TEXT;
184173
+ const noSingle = page !== void 0 && opposite && contrastRatio4(page, opaqueBg) < AA_TEXT * AA_TEXT;
184042
184174
  const suggestion = noSingle ? void 0 : sameHueClearingAll(painted2, page ? [page, opaqueBg] : [opaqueBg]);
184043
184175
  const restructure = ` Move ${surface} to the page's side of mid-grey (a ${page && onLightSide(page) ? "light" : "dark"} ${surface} on this page), or scope that section's text colour with \`modifiers.theme\` (e.g. { "colors": { "${fgName}": "#RRGGBB" } } on the card).`;
184044
- const fix = noSingle ? ` surfacePrimary (${page}) and ${surface} (${opaqueBg}) sit on opposite sides of mid-grey, so no single ${fgName} can clear ${AA_TEXT}:1 on both.${restructure}` : suggestion ? ` A ${fgName} that clears it${page ? " and the page" : ""} is ${suggestion} (${contrastRatio3(suggestion, opaqueBg).toFixed(2)}:1 on ${surface}).` + (opposite ? restructure : "") : ` No ${fgName} of this hue clears ${AA_TEXT}:1 on ${surface}${page ? " and the page" : ""}.` + (opposite ? restructure : "");
184176
+ const fix = noSingle ? ` surfacePrimary (${page}) and ${surface} (${opaqueBg}) sit on opposite sides of mid-grey, so no single ${fgName} can clear ${AA_TEXT}:1 on both.${restructure}` : suggestion ? ` A ${fgName} that clears it${page ? " and the page" : ""} is ${suggestion} (${contrastRatio4(suggestion, opaqueBg).toFixed(2)}:1 on ${surface}).` + (opposite ? restructure : "") : ` No ${fgName} of this hue clears ${AA_TEXT}:1 on ${surface}${page ? " and the page" : ""}.` + (opposite ? restructure : "");
184045
184177
  findings.set(key4, {
184046
184178
  key: key4,
184047
184179
  schemes: [scheme],
@@ -184074,8 +184206,8 @@ function accentOnSurfacesFor(fgName, role, colors, declared, findings) {
184074
184206
  const page = pageRaw && paintedOver(fg, pageRaw) ? pageRaw.slice(0, 7) : void 0;
184075
184207
  const opaqueBg = bg.slice(0, 7);
184076
184208
  if (page === opaqueBg) continue;
184077
- if (page && contrastRatio3(paintedOver(fg, pageRaw), page) < AA_TEXT) continue;
184078
- const ratio = contrastRatio3(painted2, opaqueBg);
184209
+ if (page && contrastRatio4(paintedOver(fg, pageRaw), page) < AA_TEXT) continue;
184210
+ const ratio = contrastRatio4(painted2, opaqueBg);
184079
184211
  if (ratio >= AA_TEXT) continue;
184080
184212
  const key4 = `${fgName}|${surface}|${fg}|${bg}|${page ?? ""}`;
184081
184213
  const same6 = findings.get(key4);
@@ -184084,9 +184216,9 @@ function accentOnSurfacesFor(fgName, role, colors, declared, findings) {
184084
184216
  continue;
184085
184217
  }
184086
184218
  const opposite = page !== void 0 && onLightSide(page) !== onLightSide(opaqueBg);
184087
- const noSingle = page !== void 0 && opposite && contrastRatio3(page, opaqueBg) < AA_TEXT * AA_TEXT;
184219
+ const noSingle = page !== void 0 && opposite && contrastRatio4(page, opaqueBg) < AA_TEXT * AA_TEXT;
184088
184220
  const suggestion = noSingle ? void 0 : sameHueClearingAll(painted2, page ? [page, opaqueBg] : [opaqueBg]);
184089
- const measured = (c2) => page ? `${contrastRatio3(c2, opaqueBg).toFixed(2)}:1 on ${surface}, ${contrastRatio3(c2, page).toFixed(2)}:1 on surfacePrimary` : `${contrastRatio3(c2, opaqueBg).toFixed(2)}:1`;
184221
+ const measured = (c2) => page ? `${contrastRatio4(c2, opaqueBg).toFixed(2)}:1 on ${surface}, ${contrastRatio4(c2, page).toFixed(2)}:1 on surfacePrimary` : `${contrastRatio4(c2, opaqueBg).toFixed(2)}:1`;
184090
184222
  const restructure = ` Move ${surface} to the page's side of mid-grey (a ${page && onLightSide(page) ? "light" : "dark"} ${surface} on this page), or scope an explicit accent for that section with \`modifiers.theme\` (e.g. { "colors": { "accentText": "#RRGGBB" } } on the card).`;
184091
184223
  const fix = noSingle ? ` surfacePrimary (${page}) and ${surface} (${opaqueBg}) sit on opposite sides of mid-grey, so no single accent text colour can clear ${AA_TEXT}:1 on both.${restructure}` : suggestion ? ` A same-hue ${fgName} that clears it${page ? " and the page" : ""} is ${suggestion} (${measured(suggestion)}).` + (opposite ? ` The page and ${surface} sit on opposite sides of mid-grey, so only a narrow mid-tone clears both.${restructure}` : "") : ` No ${fgName} of this hue clears ${AA_TEXT}:1 on ${surface}${page ? " and the page" : ""}.` + (opposite ? restructure : "");
184092
184224
  findings.set(key4, {
@@ -184134,7 +184266,7 @@ var init_token_lint = __esm({
184134
184266
  const [ca2, cb] = [channels3(a3), channels3(b3)];
184135
184267
  return toHex2(ca2.map((c2, i2) => c2 * w2 + cb[i2] * (1 - w2)));
184136
184268
  };
184137
- onLightSide = (hex2) => contrastRatio3("#000000", hex2) >= contrastRatio3("#FFFFFF", hex2);
184269
+ onLightSide = (hex2) => contrastRatio4("#000000", hex2) >= contrastRatio4("#FFFFFF", hex2);
184138
184270
  SURFACE_TEXT_USE = {
184139
184271
  surfaceSecondary: "cards, sheets and list rows paint their titles and labels on surfaceSecondary",
184140
184272
  surfaceElevated: "cards, sheets and list rows paint their titles and labels on surfaceElevated",
@@ -257569,9 +257701,9 @@ function contrastRow(field, tokens2, base2) {
257569
257701
  const neutral = isFill ? [] : (textSurfacesOf(obj19(tokens2.colors) ?? {}).light ?? []).map((value2) => opaque(value2));
257570
257702
  if (neutral.some((value2) => !value2)) return { ...base2, status: "unresolved", note: "Accent text contrast requires opaque neutral surface tokens." };
257571
257703
  const surfaces = [background, ...neutral];
257572
- const desired = isFill ? contrastRatio3("#FFFFFF", accent) >= 4.5 ? "#FFFFFF" : "#000000" : deriveAccentText(accent, surfaces);
257573
- const ratio = target ? Math.min(...surfaces.map((surface) => contrastRatio3(target, surface))) : 0;
257574
- if (ratio < 4.5 && surfaces.some((surface) => contrastRatio3(desired, surface) < 4.5)) {
257704
+ const desired = isFill ? contrastRatio4("#FFFFFF", accent) >= 4.5 ? "#FFFFFF" : "#000000" : deriveAccentText(accent, surfaces);
257705
+ const ratio = target ? Math.min(...surfaces.map((surface) => contrastRatio4(target, surface))) : 0;
257706
+ if (ratio < 4.5 && surfaces.some((surface) => contrastRatio4(desired, surface) < 4.5)) {
257575
257707
  return { ...base2, status: "unresolved", note: "No single derived accent text shade reaches 4.5:1 on every neutral surface; author separate local text roles for the conflicting backdrops." };
257576
257708
  }
257577
257709
  return {
@@ -261906,53 +262038,53 @@ var init_preview_assets_generated = __esm({
261906
262038
  init_define_HHP_CATALOG();
261907
262039
  init_preview_assets_format();
261908
262040
  PREVIEW_ASSET_MANIFEST = [
261909
- { key: "assets/DashboardHost-C4vAs1nO.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "c7b1ba7bfdd0085595e4a1e9a36118b54887ba3df962ca4f57b40ff4056d6845" },
261910
- { key: "assets/DevDrawer-n_G2Mh-z.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "132922f84e0d730599912918b739b566bcb573593ac4a5d655bc953ce8dc662c" },
261911
- { key: "assets/IdiomCompare-CIj-7eVc.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "33234fda77a8c20c9df562d158cfe388b5c81fdb882e3e60e67aeded70f30cbe" },
261912
- { key: "assets/LightboxViewer-3z0h2M7k.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15926, sha256: "a122699f50c4173bbe53ff71bc8db44e4fe4811e93ebe7d6bb3673009ebf1afb" },
261913
- { key: "assets/OfflineReadingBar-BjAxp8Ua.js", contentType: "application/javascript; charset=utf-8", offset: 37628, length: 1695, sha256: "cac99daf1a3c91636869ccabc0cf55aff9443898d7783525a9a9dd59939f781c" },
261914
- { key: "assets/PhonePreviewControl-C8KMYzC_.js", contentType: "application/javascript; charset=utf-8", offset: 39323, length: 37851, sha256: "31bc14a9894a9fd9a505b57c1b917222586c8f5a8fc37705af06a9b316421c7f" },
261915
- { key: "assets/SchemeCompare-eYqNkS-4.js", contentType: "application/javascript; charset=utf-8", offset: 77174, length: 1858, sha256: "291902f0971cde565b20c19e2ad6a87d93ebb90b3f07e756f811f3f10ebd130d" },
261916
- { key: "assets/TopBarSearchStates-C8C5ICiB.js", contentType: "application/javascript; charset=utf-8", offset: 79032, length: 4068, sha256: "31cac0f604b7f8adca1c72c769499ee573bf467ebe036b3bd512e9da531f824d" },
261917
- { key: "assets/WixFrogTelemetrySink-swd9s0Oa.js", contentType: "application/javascript; charset=utf-8", offset: 83100, length: 3515, sha256: "34bf6f1379633daf14e775cfc5c5e4e3e33fe1e5e914a60399c2acd8ae2599ec" },
262041
+ { key: "assets/DashboardHost-DoJvJM-C.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "7c3647ff8e19d1faddafbab87e85061f7cb9370e3c82148e65931f89b5c179da" },
262042
+ { key: "assets/DevDrawer-BVvpoj9u.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "b0833c5c06faa63bbd532bab056331a4dc9f4ee3abb7b132d0a419dd60a49138" },
262043
+ { key: "assets/IdiomCompare-BjQoqP_C.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "41a0e36e72c13d26ec98cb06d736e8af74ff5d2884f0c37980640a2255a215d4" },
262044
+ { key: "assets/LightboxViewer-B-NeE_qy.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15926, sha256: "bfce710f95d4454146b3b45e66775fb997c7f1e2d801848128fc1035e75dd596" },
262045
+ { key: "assets/OfflineReadingBar-nmpWW8Ol.js", contentType: "application/javascript; charset=utf-8", offset: 37628, length: 1695, sha256: "5187305f5780b195121348fcd66bdad5cd4709996f43d82d78acaae2f75a39ea" },
262046
+ { key: "assets/PhonePreviewControl-ByuX-nr2.js", contentType: "application/javascript; charset=utf-8", offset: 39323, length: 37851, sha256: "65007a11088df844695444543aabb77cc97164f4b9b293cdf80b05f191d42573" },
262047
+ { key: "assets/SchemeCompare-CYKqupgl.js", contentType: "application/javascript; charset=utf-8", offset: 77174, length: 1858, sha256: "d134e5a7f83f897d30a71618b32f6db00b5f36425f1304a0b466bdf3aeacedd5" },
262048
+ { key: "assets/TopBarSearchStates-D7vIoyIy.js", contentType: "application/javascript; charset=utf-8", offset: 79032, length: 4068, sha256: "e640a811598bf21aba3fd95ab939ea4d70996e49efa8950de9ba4ffe06c4da4b" },
262049
+ { key: "assets/WixFrogTelemetrySink-CoYJiZn2.js", contentType: "application/javascript; charset=utf-8", offset: 83100, length: 3515, sha256: "64bd30bf98ebfc77e2d6a235f236f905a53d85dd17fcf978be13f3b590974446" },
261918
262050
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 86615, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
261919
262051
  { key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 88807, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
261920
- { key: "assets/catalogFontFaces-CB0zkM4F.js", contentType: "application/javascript; charset=utf-8", offset: 124433, length: 1111, sha256: "fd903d90b4a843d8040d604d26eca072d44f8df8610706396b4da6b166e9f4b5" },
262052
+ { key: "assets/catalogFontFaces-CfSr-I1_.js", contentType: "application/javascript; charset=utf-8", offset: 124433, length: 1111, sha256: "9aad102d743cb05401022a9f2bc8cccfaf3d5166c8461109976b438f72eb94e9" },
261921
262053
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 125544, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
261922
- { key: "assets/files-transfer-e0f5jZmX.js", contentType: "application/javascript; charset=utf-8", offset: 128111, length: 6446, sha256: "28690474fb1e7cf4538c6b225929d3898858acce0c4f6950d93dcf0646a84c9d" },
262054
+ { key: "assets/files-transfer-DizXdDt0.js", contentType: "application/javascript; charset=utf-8", offset: 128111, length: 6446, sha256: "1e17baf468f4068ec48d16ee248992b29a791ff13f9e68e4120ea8cb9b236f56" },
261923
262055
  { key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 134557, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
261924
- { key: "assets/frogApiRules--sWf1hJe.js", contentType: "application/javascript; charset=utf-8", offset: 135729, length: 2207, sha256: "d7d65ff6b1dfa607f254f46741f0cb1102ec262ffeb7f9d30a9952502e24c2a3" },
262056
+ { key: "assets/frogApiRules-DUXSvGIr.js", contentType: "application/javascript; charset=utf-8", offset: 135729, length: 2207, sha256: "f0a3970e49350c5007a279ed6f8f5f355569ce4fbc90ef6403ebc5d269f7564d" },
261925
262057
  { key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 137936, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
261926
262058
  { key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 139003, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
261927
262059
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 145581, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
261928
- { key: "assets/index-C5_BUGLr.js", contentType: "application/javascript; charset=utf-8", offset: 148285, length: 1693858, sha256: "610a1be03061a30e0b8d3d2f9f778db825fe2b42b68932e9f8eaf33473ae4c92" },
261929
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1842143, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
261930
- { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1849894, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
261931
- { key: "assets/pdf-D32ogDIk.js", contentType: "application/javascript; charset=utf-8", offset: 1860425, length: 488215, sha256: "ab91dfb9c348c8c78f942a5b88ba90df456c5b436e135d97791d5dd95d6a40dc" },
261932
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2348640, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
261933
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2348730, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
261934
- { key: "assets/pdfDocument-CnxCXgpr.js", contentType: "application/javascript; charset=utf-8", offset: 3665764, length: 3836, sha256: "5024445d957c33df0ded9daef902eaf83dbbd278eff806a92ce9115ff6494e77" },
261935
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3669600, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
261936
- { key: "assets/scrollLinkedRuntime-C1HfWW3o.js", contentType: "application/javascript; charset=utf-8", offset: 3671866, length: 2278, sha256: "7229c80b4896b4c1b40cad372f415e4d73436121f6f186c67503318851fd0ede" },
261937
- { key: "assets/webviewBridgeHost-CABVFzEB.js", contentType: "application/javascript; charset=utf-8", offset: 3674144, length: 9889, sha256: "d51daad9caa02a6fe6a5eaec3711baab63e9ca6a97dc51073b8a3740b96ca1e3" },
261938
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3684033, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
261939
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3688643, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
261940
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4177227, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
261941
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4268151, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
261942
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4359135, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
261943
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4450115, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
261944
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4540987, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
261945
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4631967, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
261946
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4740603, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
261947
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4849687, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
261948
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4958735, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
261949
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5066435, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
261950
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5154543, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
261951
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5161361, length: 4924, sha256: "6e354a30167b7c4e111c6f901d78d9b4a21849bc2e9685a268299553458ae883" },
261952
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5166285, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
261953
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5177742, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
261954
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5178913, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
261955
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5203216, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
262060
+ { key: "assets/index-DzXt10xz.js", contentType: "application/javascript; charset=utf-8", offset: 148285, length: 1702443, sha256: "011cb6f794a2cb7cf44fcf12fbc1f38c43e565765b74ad1bb67a64385161e09a" },
262061
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1850728, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
262062
+ { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1858479, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
262063
+ { key: "assets/pdf-Cdovlocs.js", contentType: "application/javascript; charset=utf-8", offset: 1869010, length: 488215, sha256: "ce7be7eb1a1d80dc001a7518ada4fe7d09593a8b8e34eef44f8d7b135800a497" },
262064
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2357225, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
262065
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2357315, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
262066
+ { key: "assets/pdfDocument-BSbb1GfD.js", contentType: "application/javascript; charset=utf-8", offset: 3674349, length: 3836, sha256: "168f7006603da269e8f779b955ec1f4b71c377e1c65b95790268afa2d18aac4d" },
262067
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3678185, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
262068
+ { key: "assets/scrollLinkedRuntime-qhnsONOv.js", contentType: "application/javascript; charset=utf-8", offset: 3680451, length: 2278, sha256: "2de8dc55572c6fba4b9cb6794c57922511017dd44cb62a7dea18400c93077350" },
262069
+ { key: "assets/webviewBridgeHost-Drgc8YHF.js", contentType: "application/javascript; charset=utf-8", offset: 3682729, length: 9889, sha256: "153087dcae646c843398b7b4927de7f75459687a436bf6923608897979a1a8aa" },
262070
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3692618, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
262071
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3697228, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
262072
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4185812, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
262073
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4276736, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
262074
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4367720, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
262075
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4458700, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
262076
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4549572, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
262077
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4640552, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
262078
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4749188, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
262079
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4858272, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
262080
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4967320, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
262081
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5075020, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
262082
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5163128, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
262083
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5169946, length: 4924, sha256: "03c035783ee038ad3a28ce1e7e5c4b8a348b60421725ccc33625a5b6633edbe0" },
262084
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5174870, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
262085
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5186327, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
262086
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5187498, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
262087
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5211801, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
261956
262088
  ];
261957
262089
  }
261958
262090
  });