accessibility-plugin-react 2.6.0 → 2.8.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/index.js CHANGED
@@ -27,8 +27,12 @@ __export(index_exports, {
27
27
  AccessibilityList: () => AccessibilityList,
28
28
  AccessibilityPlugin: () => AccessibilityPlugin,
29
29
  BigCursorController: () => BigCursorController,
30
+ CONTRAST_MODES: () => CONTRAST_MODES,
31
+ CONTRAST_PALETTES: () => CONTRAST_PALETTES,
32
+ CONTRAST_PROTECTED_SELECTOR: () => CONTRAST_PROTECTED_SELECTOR,
30
33
  ChoiceControl: () => ChoiceControl,
31
34
  ContrastController: () => ContrastController,
35
+ ContrastModeController: () => ContrastModeController,
32
36
  DEFAULT_PREFERENCES: () => DEFAULT_PREFERENCES,
33
37
  DYSLEXIA_FONT_STACK: () => DYSLEXIA_FONT_STACK,
34
38
  EmptyState: () => EmptyState,
@@ -36,11 +40,13 @@ __export(index_exports, {
36
40
  FONT_FAMILY_PRESETS: () => FONT_FAMILY_PRESETS,
37
41
  FONT_FAMILY_PROTECTED_SELECTOR: () => FONT_FAMILY_PROTECTED_SELECTOR,
38
42
  FeatureCard: () => FeatureCard,
43
+ FocusHighlightController: () => FocusHighlightController,
39
44
  FontFamilyController: () => FontFamilyController,
40
45
  FontSizeController: () => FontSizeController,
41
46
  GrayscaleController: () => GrayscaleController,
42
47
  HideImagesController: () => HideImagesController,
43
48
  HideVideosController: () => HideVideosController,
49
+ HighlightFocusController: () => HighlightFocusController,
44
50
  InvertColorsController: () => InvertColorsController,
45
51
  LEGIBLE_FONT_STACK: () => LEGIBLE_FONT_STACK,
46
52
  LINE_HEIGHT_RATIOS: () => LINE_HEIGHT_RATIOS,
@@ -56,6 +62,7 @@ __export(index_exports, {
56
62
  ResetController: () => ResetController,
57
63
  SaturationController: () => SaturationController,
58
64
  SearchCount: () => SearchCount,
65
+ SkipToMainLink: () => SkipToMainLink,
59
66
  StepperControl: () => StepperControl,
60
67
  TEXT_ALIGN_BLOCK_SELECTOR: () => TEXT_ALIGN_BLOCK_SELECTOR,
61
68
  TEXT_SCALE_PROTECTED_SELECTOR: () => TEXT_SCALE_PROTECTED_SELECTOR,
@@ -67,7 +74,10 @@ __export(index_exports, {
67
74
  WordSpacingController: () => WordSpacingController,
68
75
  createInitialPreferencesState: () => createInitialPreferencesState,
69
76
  enLocale: () => enLocale,
77
+ findMainLandmark: () => findMainLandmark,
70
78
  getScriptSpacingConstraints: () => getScriptSpacingConstraints,
79
+ isForcedColorsActive: () => isForcedColorsActive,
80
+ isProtectedFromContrast: () => isProtectedFromContrast,
71
81
  isProtectedFromFontFamily: () => isProtectedFromFontFamily,
72
82
  isProtectedFromTextAlign: () => isProtectedFromTextAlign,
73
83
  isProtectedFromTextScale: () => isProtectedFromTextScale,
@@ -106,7 +116,7 @@ function styleInject(css, { insertAt } = {}) {
106
116
  }
107
117
 
108
118
  // src/styles/tailwind.css
109
- styleInject('.arap-root {\n --arap-surface: #fff;\n --arap-text: #111827;\n --arap-muted: #475569;\n --arap-border: #cbd5e1;\n --arap-divider: #e2e8f0;\n --arap-accent: #1d4ed8;\n --arap-accent-hover: #1e40af;\n --arap-selected: #eff6ff;\n --arap-control: #f8fafc;\n color-scheme: light;\n font: 15px/1.5 system-ui, sans-serif;\n color: var(--arap-text);\n text-align: left;\n letter-spacing: normal;\n}\n.arap-root *,\n.arap-root *::before,\n.arap-root *::after {\n box-sizing: border-box;\n}\n.arap-root button {\n font: inherit;\n cursor: pointer;\n color: inherit;\n text-transform: none;\n letter-spacing: normal;\n transition: background-color 0.15s, border-color 0.15s;\n}\n.arap-root button:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n.arap-root button:focus-visible,\n.arap-panel:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 3px;\n}\n.arap-root .arap-btn {\n position: fixed;\n z-index: 2147483001;\n bottom: max(16px, env(safe-area-inset-bottom));\n right: max(16px, env(safe-area-inset-right));\n width: 56px;\n height: 56px;\n padding: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px solid var(--arap-surface);\n border-radius: 50%;\n background: var(--arap-accent);\n color: #fff;\n box-shadow: 0 4px 12px #0f172a26, 0 10px 24px #0f172a14;\n}\n.arap-root .arap-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-root .arap-btn[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-position=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-panel {\n position: fixed;\n z-index: 2147483000;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n right: max(16px, env(safe-area-inset-right));\n width: min(400px, calc(100vw - 32px));\n max-height: calc(100vh - 120px);\n max-height: calc(100dvh - 120px - env(safe-area-inset-bottom));\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 20px;\n border: 1px solid var(--arap-divider);\n border-radius: 16px;\n background: var(--arap-surface);\n box-shadow: 0 8px 16px #0f172a0d, 0 20px 48px #0f172a1a;\n}\n.arap-root .arap-panel[hidden] {\n display: none !important;\n}\n.arap-root .arap-panel[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-panel[data-position=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-heading {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: 8px;\n padding-bottom: 18px;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-heading-copy {\n min-width: 0;\n}\n.arap-heading h2 {\n margin: 0;\n font: 700 22px/1.3 system-ui, sans-serif;\n letter-spacing: -0.025em;\n color: var(--arap-text);\n overflow-wrap: anywhere;\n}\n.arap-description {\n margin: 6px 0 0;\n color: var(--arap-muted);\n font: 14px/1.5 system-ui, sans-serif;\n overflow-wrap: anywhere;\n}\n.arap-heading button {\n flex: none;\n width: 44px;\n height: 44px;\n margin-top: -6px;\n border: 1px solid transparent;\n border-radius: 8px;\n background: transparent;\n color: var(--arap-muted);\n font-size: 28px;\n line-height: 1;\n}\n.arap-heading button:hover {\n background: var(--arap-control);\n border-color: var(--arap-border);\n}\n.arap-feature {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n gap: 10px 12px;\n padding: 18px 0;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-feature:last-child {\n border: 0;\n padding-bottom: 0;\n}\n.arap-label {\n display: flex;\n align-items: center;\n gap: 10px;\n font-weight: 500;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n.arap-icon {\n flex: none;\n width: 22px;\n height: 22px;\n display: inline-block;\n vertical-align: middle;\n}\n.arap-controls {\n display: flex;\n align-items: stretch;\n border: 1px solid var(--arap-border);\n border-radius: 9px;\n overflow: hidden;\n background: var(--arap-control);\n}\n.arap-root .arap-btn-sm {\n flex: none;\n width: 44px;\n height: 44px;\n border: 0;\n border-radius: 0;\n background: transparent;\n font-size: 22px;\n}\n.arap-root .arap-btn-sm:hover:not(:disabled) {\n background: var(--arap-selected);\n color: var(--arap-accent);\n}\n.arap-root .arap-controls button:focus-visible {\n outline-offset: -4px;\n}\n.arap-value {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 56px;\n padding: 0 6px;\n text-align: center;\n font-weight: 600;\n border-inline: 1px solid var(--arap-divider);\n background: var(--arap-surface);\n}\n.arap-segmented {\n grid-column: 1 / -1;\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n}\n.arap-root .arap-segment {\n flex: 1 1 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-muted);\n overflow-wrap: anywhere;\n}\n.arap-root .arap-segment:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-root .arap-segment-active {\n background: var(--arap-accent);\n color: #fff;\n border-color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-segment-active:hover {\n background: var(--arap-accent-hover);\n color: #fff;\n}\n.arap-check {\n flex: none;\n font-size: 15px;\n line-height: 1;\n}\n.arap-root .arap-toggle {\n position: relative;\n width: 56px;\n height: 44px;\n padding: 0;\n border: 0;\n border-radius: 10px;\n background: transparent;\n}\n.arap-toggle::before {\n content: "";\n position: absolute;\n inset: 6px 0;\n border: 2px solid #64748b;\n border-radius: 20px;\n background: #e2e8f0;\n}\n.arap-toggle-knob {\n position: absolute;\n top: 10px;\n left: 4px;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n background: #475569;\n pointer-events: none;\n transition: transform 0.15s;\n}\n.arap-toggle-active::before {\n background: var(--arap-accent);\n border-color: var(--arap-accent);\n}\n.arap-toggle-active .arap-toggle-knob {\n transform: translateX(24px);\n background: #fff;\n}\n.arap-toggle-active .arap-toggle-knob::after {\n content: "\\2713";\n display: block;\n color: var(--arap-accent);\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: center;\n}\n.arap-root .arap-toggle:hover::before {\n border-color: var(--arap-accent);\n}\n.arap-feature-reset {\n display: block;\n}\n.arap-root .arap-reset-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n width: 100%;\n min-height: 48px;\n padding: 10px;\n border: 1px solid var(--arap-border);\n border-radius: 10px;\n background: var(--arap-control);\n color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-reset-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n@media (max-width: 380px) {\n .arap-root .arap-panel {\n padding: 16px;\n }\n .arap-heading h2 {\n font-size: 20px;\n }\n .arap-feature-stepper {\n grid-template-columns: minmax(0, 1fr);\n }\n .arap-controls {\n width: 100%;\n }\n .arap-value {\n flex: 1;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .arap-root *,\n .arap-root *::before,\n .arap-root *::after {\n transition: none !important;\n animation: none !important;\n }\n}\n@media (forced-colors: active) {\n .arap-root {\n --arap-surface: Canvas;\n --arap-text: CanvasText;\n --arap-muted: CanvasText;\n --arap-border: ButtonText;\n --arap-divider: ButtonText;\n --arap-accent: Highlight;\n --arap-control: Canvas;\n --arap-selected: Canvas;\n }\n .arap-root button[aria-pressed=true] {\n outline: 2px solid Highlight;\n outline-offset: -4px;\n }\n .arap-root .arap-segment-active {\n color: HighlightText;\n background: Highlight;\n }\n .arap-toggle::before {\n border-color: ButtonText;\n background: Canvas;\n }\n .arap-toggle-knob {\n background: ButtonText;\n }\n .arap-toggle-active .arap-toggle-knob {\n background: Highlight;\n }\n .arap-toggle-active .arap-toggle-knob::after {\n color: HighlightText;\n }\n}\n.arap-root .arap-panel {\n display: flex;\n flex-direction: column;\n overflow: visible;\n}\n.arap-heading {\n flex: none;\n}\n.arap-tools {\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 0 3px;\n margin: 0 -3px;\n}\n.arap-tools:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: -3px;\n}\n.arap-quick-actions {\n position: relative;\n flex: none;\n display: flex;\n align-items: center;\n gap: 8px;\n padding-top: 14px;\n margin-top: 8px;\n border-top: 1px solid var(--arap-divider);\n}\n.arap-actions {\n flex: 1;\n min-width: 0;\n}\n.arap-actions:empty {\n display: none;\n}\n.arap-actions .arap-feature-reset {\n padding: 0;\n margin: 0;\n border: 0;\n}\n.arap-root .arap-position-button,\n.arap-root .arap-position-default,\n.arap-root .arap-position-arrows button {\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-accent);\n}\n.arap-root .arap-position-button:hover,\n.arap-root .arap-position-default:hover,\n.arap-root .arap-position-arrows button:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-position-popover {\n position: absolute;\n z-index: 1;\n bottom: calc(100% + 8px);\n left: 0;\n width: 100%;\n max-height: calc(100dvh - 160px);\n overflow: auto;\n padding: 14px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n box-shadow: 0 8px 24px #0f172a26;\n}\n.arap-position-popover[hidden] {\n display: none !important;\n}\n.arap-position-label {\n display: block;\n margin-bottom: 6px;\n font-weight: 600;\n}\n.arap-position-popover select {\n width: 100%;\n min-height: 44px;\n padding: 8px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n font: inherit;\n color: var(--arap-text);\n background: var(--arap-surface);\n}\n.arap-position-popover select:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-position-arrows {\n display: flex;\n justify-content: space-between;\n gap: 6px;\n margin-top: 10px;\n}\n.arap-position-default {\n width: 100%;\n margin-top: 8px;\n}\n.arap-root .arap-btn[data-draggable=true] {\n touch-action: none;\n user-select: none;\n cursor: grab;\n}\n.arap-root .arap-btn[data-dragging=true] {\n cursor: grabbing;\n}\n.arap-root .arap-btn[data-corner$=left],\n.arap-root .arap-panel[data-corner$=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-corner$=right],\n.arap-root .arap-panel[data-corner$=right] {\n left: auto;\n right: max(16px, env(safe-area-inset-right));\n}\n.arap-root .arap-btn[data-corner^=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-btn[data-corner^=bottom] {\n top: auto;\n bottom: max(16px, env(safe-area-inset-bottom));\n}\n.arap-root .arap-panel[data-corner^=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-root .arap-panel[data-corner^=bottom] {\n top: auto;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n}\n.arap-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n.arap-root .arap-skip-actions {\n position: absolute;\n top: 12px;\n left: 20px;\n width: 44px;\n height: 44px;\n clip-path: inset(50%);\n overflow: hidden;\n pointer-events: none;\n}\n.arap-root .arap-skip-actions:focus-visible {\n right: 20px;\n width: auto;\n height: auto;\n min-height: 44px;\n clip-path: none;\n pointer-events: auto;\n z-index: 2;\n padding: 8px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-accent);\n}\n@media (max-height: 480px) {\n .arap-root .arap-panel {\n top: max(16px, env(safe-area-inset-top)) !important;\n bottom: max(16px, env(safe-area-inset-bottom)) !important;\n max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;\n padding: 8px;\n }\n .arap-heading {\n padding-bottom: 8px;\n }\n .arap-heading h2 {\n font-size: 18px;\n }\n .arap-heading button {\n margin-top: 0;\n }\n .arap-description {\n display: none;\n }\n .arap-quick-actions {\n padding-top: 8px;\n margin-top: 0;\n }\n .arap-root .arap-reset-btn {\n min-height: 44px;\n }\n .arap-root .arap-btn[data-open=true] {\n visibility: hidden;\n }\n .arap-position-popover {\n max-height: calc(100dvh - 96px);\n }\n}\n.arap-statement {\n flex: none;\n padding-top: 10px;\n text-align: center;\n}\n.arap-statement-link {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 44px;\n padding: 6px 12px;\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 4px;\n font-size: 14px;\n font-weight: 500;\n border-radius: 8px;\n}\n.arap-statement-link:hover {\n color: var(--arap-accent-hover);\n background: var(--arap-selected);\n}\n.arap-statement-link:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-credits {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 2px;\n padding-top: 8px;\n color: var(--arap-muted);\n text-align: center;\n font-size: 11px;\n line-height: 1.4;\n}\n.arap-credits a {\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 2px;\n}\n.arap-credits a:hover {\n color: var(--arap-accent-hover);\n}\n.arap-credits a:focus-visible {\n outline: 2px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-root .arap-btn[data-large-controls=true] {\n width: 64px;\n height: 64px;\n min-width: 48px;\n min-height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] {\n width: min(440px, calc(100vw - 32px));\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-heading button {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 32px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-btn-sm {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 24px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-value {\n min-width: 64px;\n font-size: 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-segment {\n min-width: 48px;\n min-height: 48px;\n padding: 10px 14px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle {\n width: 64px;\n height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle::before {\n inset: 8px 0;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-knob {\n top: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-active .arap-toggle-knob {\n transform: translateX(28px);\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-reset-btn {\n min-height: 52px;\n font-size: 16px;\n padding: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-button,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-default,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-arrows button {\n min-width: 48px;\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-popover select {\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-statement-link {\n min-height: 48px;\n font-size: 15px;\n padding: 10px 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-skip-actions {\n min-width: 48px;\n min-height: 48px;\n}\n.arap-feature-card {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n}\n.arap-card-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-card-title {\n font-weight: 600;\n font-size: 15px;\n color: var(--arap-text);\n}\n.arap-card-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-status-badge {\n display: inline-flex;\n align-items: center;\n padding: 2px 8px;\n border-radius: 9999px;\n font-size: 11px;\n font-weight: 600;\n background: var(--arap-control);\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-card-alert {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n padding: 10px 12px;\n border-radius: 8px;\n font-size: 13px;\n line-height: 1.4;\n}\n.arap-alert-icon {\n flex: none;\n font-size: 16px;\n line-height: 1;\n}\n.arap-card-error {\n background: #fef2f2;\n border: 1px solid #fecaca;\n color: #991b1b;\n}\n.arap-card-unavailable {\n background: #f8fafc;\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n}\n.arap-card-permission {\n background: #fffbeb;\n border: 1px solid #fde68a;\n color: #92400e;\n}\n.arap-permission-content {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-permission-btn {\n align-self: flex-start;\n padding: 4px 10px;\n border: 1px solid #d97706;\n border-radius: 6px;\n background: #f59e0b;\n color: #fff;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n}\n.arap-permission-btn:hover {\n background: #d97706;\n}\n.arap-card-content {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.arap-choice-group {\n display: flex;\n flex-direction: column;\n gap: 6px;\n width: 100%;\n}\n.arap-choice-group-title {\n font-size: 12px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-choice-badge {\n font-size: 11px;\n padding: 1px 5px;\n border-radius: 4px;\n background: var(--arap-divider);\n color: var(--arap-muted);\n}\n.arap-segment-active .arap-choice-badge {\n background: rgba(255, 255, 255, 0.25);\n color: #fff;\n}\n.arap-stepper-control-wrapper {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n}\n.arap-slider-container {\n display: flex;\n align-items: center;\n padding: 4px 0;\n}\n.arap-slider {\n width: 100%;\n accent-color: var(--arap-accent);\n cursor: pointer;\n}\n.arap-search-count {\n padding: 6px 0;\n font-size: 12px;\n font-weight: 500;\n color: var(--arap-muted);\n}\n.arap-empty-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: 24px 16px;\n gap: 8px;\n}\n.arap-empty-icon {\n font-size: 32px;\n}\n.arap-empty-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-empty-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n}\n.arap-empty-btn,\n.arap-retry-btn {\n margin-top: 6px;\n padding: 8px 16px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n font-weight: 500;\n font-size: 13px;\n color: var(--arap-text);\n cursor: pointer;\n}\n.arap-empty-btn:hover,\n.arap-retry-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n color: var(--arap-accent);\n}\n.arap-profile-card {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n transition: border-color 0.15s, box-shadow 0.15s;\n}\n.arap-profile-card-active {\n border-color: var(--arap-accent);\n background: var(--arap-selected);\n box-shadow: 0 0 0 1px var(--arap-accent);\n}\n.arap-profile-header {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n.arap-profile-title-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-profile-title {\n margin: 0;\n font-size: 15px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-profile-active-badge {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-accent);\n background: #dbeafe;\n padding: 2px 8px;\n border-radius: 9999px;\n}\n.arap-profile-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-profile-affected {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-profile-affected-label {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-profile-chips {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n.arap-profile-chip {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 3px 8px;\n border-radius: 6px;\n background: var(--arap-control);\n border: 1px solid var(--arap-divider);\n font-size: 12px;\n color: var(--arap-text);\n}\n.arap-profile-actions {\n display: flex;\n gap: 8px;\n margin-top: 4px;\n}\n.arap-profile-apply-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-accent);\n color: #fff;\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-apply-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-profile-revert-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-muted);\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-revert-btn:hover {\n background: var(--arap-control);\n color: var(--arap-text);\n border-color: var(--arap-text);\n}\n.arap-notice {\n grid-column: 1 / -1;\n margin-top: 6px;\n padding: 8px 12px;\n border-radius: 8px;\n font-size: 12px;\n line-height: 1.45;\n background: #fefce8;\n border: 1px solid #fef08a;\n color: #854d0e;\n}\n.arap-notice-warning {\n background: #fffbeb;\n border-color: #fde68a;\n color: #92400e;\n}\n');
119
+ styleInject('.arap-root {\n --arap-surface: #fff;\n --arap-text: #111827;\n --arap-muted: #475569;\n --arap-border: #cbd5e1;\n --arap-divider: #e2e8f0;\n --arap-accent: #1d4ed8;\n --arap-accent-hover: #1e40af;\n --arap-selected: #eff6ff;\n --arap-control: #f8fafc;\n color-scheme: light;\n font: 15px/1.5 system-ui, sans-serif;\n color: var(--arap-text);\n text-align: left;\n letter-spacing: normal;\n}\n.arap-root *,\n.arap-root *::before,\n.arap-root *::after {\n box-sizing: border-box;\n}\n.arap-root button {\n font: inherit;\n cursor: pointer;\n color: inherit;\n text-transform: none;\n letter-spacing: normal;\n transition: background-color 0.15s, border-color 0.15s;\n}\n.arap-root button:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n.arap-root button:focus-visible,\n.arap-panel:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 3px;\n}\n.arap-root .arap-btn {\n position: fixed;\n z-index: 2147483001;\n bottom: max(16px, env(safe-area-inset-bottom));\n right: max(16px, env(safe-area-inset-right));\n width: 56px;\n height: 56px;\n padding: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px solid var(--arap-surface);\n border-radius: 50%;\n background: var(--arap-accent);\n color: #fff;\n box-shadow: 0 4px 12px #0f172a26, 0 10px 24px #0f172a14;\n}\n.arap-root .arap-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-root .arap-btn[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-position=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-panel {\n position: fixed;\n z-index: 2147483000;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n right: max(16px, env(safe-area-inset-right));\n width: min(400px, calc(100vw - 32px));\n max-height: calc(100vh - 120px);\n max-height: calc(100dvh - 120px - env(safe-area-inset-bottom));\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 20px;\n border: 1px solid var(--arap-divider);\n border-radius: 16px;\n background: var(--arap-surface);\n box-shadow: 0 8px 16px #0f172a0d, 0 20px 48px #0f172a1a;\n}\n.arap-root .arap-panel[hidden] {\n display: none !important;\n}\n.arap-root .arap-panel[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-panel[data-position=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-heading {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: 8px;\n padding-bottom: 18px;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-heading-copy {\n min-width: 0;\n}\n.arap-heading h2 {\n margin: 0;\n font: 700 22px/1.3 system-ui, sans-serif;\n letter-spacing: -0.025em;\n color: var(--arap-text);\n overflow-wrap: anywhere;\n}\n.arap-description {\n margin: 6px 0 0;\n color: var(--arap-muted);\n font: 14px/1.5 system-ui, sans-serif;\n overflow-wrap: anywhere;\n}\n.arap-heading button {\n flex: none;\n width: 44px;\n height: 44px;\n margin-top: -6px;\n border: 1px solid transparent;\n border-radius: 8px;\n background: transparent;\n color: var(--arap-muted);\n font-size: 28px;\n line-height: 1;\n}\n.arap-heading button:hover {\n background: var(--arap-control);\n border-color: var(--arap-border);\n}\n.arap-feature {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n gap: 10px 12px;\n padding: 18px 0;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-feature:last-child {\n border: 0;\n padding-bottom: 0;\n}\n.arap-label {\n display: flex;\n align-items: center;\n gap: 10px;\n font-weight: 500;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n.arap-icon {\n flex: none;\n width: 22px;\n height: 22px;\n display: inline-block;\n vertical-align: middle;\n}\n.arap-controls {\n display: flex;\n align-items: stretch;\n border: 1px solid var(--arap-border);\n border-radius: 9px;\n overflow: hidden;\n background: var(--arap-control);\n}\n.arap-root .arap-btn-sm {\n flex: none;\n width: 44px;\n height: 44px;\n border: 0;\n border-radius: 0;\n background: transparent;\n font-size: 22px;\n}\n.arap-root .arap-btn-sm:hover:not(:disabled) {\n background: var(--arap-selected);\n color: var(--arap-accent);\n}\n.arap-root .arap-controls button:focus-visible {\n outline-offset: -4px;\n}\n.arap-value {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 56px;\n padding: 0 6px;\n text-align: center;\n font-weight: 600;\n border-inline: 1px solid var(--arap-divider);\n background: var(--arap-surface);\n}\n.arap-segmented {\n grid-column: 1 / -1;\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n}\n.arap-root .arap-segment {\n flex: 1 1 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-muted);\n overflow-wrap: anywhere;\n}\n.arap-root .arap-segment:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-root .arap-segment-active {\n background: var(--arap-accent);\n color: #fff;\n border-color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-segment-active:hover {\n background: var(--arap-accent-hover);\n color: #fff;\n}\n.arap-check {\n flex: none;\n font-size: 15px;\n line-height: 1;\n}\n.arap-root .arap-toggle {\n position: relative;\n width: 56px;\n height: 44px;\n padding: 0;\n border: 0;\n border-radius: 10px;\n background: transparent;\n}\n.arap-toggle::before {\n content: "";\n position: absolute;\n inset: 6px 0;\n border: 2px solid #64748b;\n border-radius: 20px;\n background: #e2e8f0;\n}\n.arap-toggle-knob {\n position: absolute;\n top: 10px;\n left: 4px;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n background: #475569;\n pointer-events: none;\n transition: transform 0.15s;\n}\n.arap-toggle-active::before {\n background: var(--arap-accent);\n border-color: var(--arap-accent);\n}\n.arap-toggle-active .arap-toggle-knob {\n transform: translateX(24px);\n background: #fff;\n}\n.arap-toggle-active .arap-toggle-knob::after {\n content: "\\2713";\n display: block;\n color: var(--arap-accent);\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: center;\n}\n.arap-root .arap-toggle:hover::before {\n border-color: var(--arap-accent);\n}\n.arap-feature-reset {\n display: block;\n}\n.arap-root .arap-reset-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n width: 100%;\n min-height: 48px;\n padding: 10px;\n border: 1px solid var(--arap-border);\n border-radius: 10px;\n background: var(--arap-control);\n color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-reset-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n@media (max-width: 380px) {\n .arap-root .arap-panel {\n padding: 16px;\n }\n .arap-heading h2 {\n font-size: 20px;\n }\n .arap-feature-stepper {\n grid-template-columns: minmax(0, 1fr);\n }\n .arap-controls {\n width: 100%;\n }\n .arap-value {\n flex: 1;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .arap-root *,\n .arap-root *::before,\n .arap-root *::after {\n transition: none !important;\n animation: none !important;\n }\n}\n@media (forced-colors: active) {\n .arap-root {\n --arap-surface: Canvas;\n --arap-text: CanvasText;\n --arap-muted: CanvasText;\n --arap-border: ButtonText;\n --arap-divider: ButtonText;\n --arap-accent: Highlight;\n --arap-control: Canvas;\n --arap-selected: Canvas;\n }\n .arap-root button[aria-pressed=true] {\n outline: 2px solid Highlight;\n outline-offset: -4px;\n }\n .arap-root .arap-segment-active {\n color: HighlightText;\n background: Highlight;\n }\n .arap-toggle::before {\n border-color: ButtonText;\n background: Canvas;\n }\n .arap-toggle-knob {\n background: ButtonText;\n }\n .arap-toggle-active .arap-toggle-knob {\n background: Highlight;\n }\n .arap-toggle-active .arap-toggle-knob::after {\n color: HighlightText;\n }\n}\n.arap-root .arap-panel {\n display: flex;\n flex-direction: column;\n overflow: visible;\n}\n.arap-heading {\n flex: none;\n}\n.arap-tools {\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 0 3px;\n margin: 0 -3px;\n}\n.arap-tools:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: -3px;\n}\n.arap-quick-actions {\n position: relative;\n flex: none;\n display: flex;\n align-items: center;\n gap: 8px;\n padding-top: 14px;\n margin-top: 8px;\n border-top: 1px solid var(--arap-divider);\n}\n.arap-actions {\n flex: 1;\n min-width: 0;\n}\n.arap-actions:empty {\n display: none;\n}\n.arap-actions .arap-feature-reset {\n padding: 0;\n margin: 0;\n border: 0;\n}\n.arap-root .arap-position-button,\n.arap-root .arap-position-default,\n.arap-root .arap-position-arrows button {\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-accent);\n}\n.arap-root .arap-position-button:hover,\n.arap-root .arap-position-default:hover,\n.arap-root .arap-position-arrows button:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-position-popover {\n position: absolute;\n z-index: 1;\n bottom: calc(100% + 8px);\n left: 0;\n width: 100%;\n max-height: calc(100dvh - 160px);\n overflow: auto;\n padding: 14px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n box-shadow: 0 8px 24px #0f172a26;\n}\n.arap-position-popover[hidden] {\n display: none !important;\n}\n.arap-position-label {\n display: block;\n margin-bottom: 6px;\n font-weight: 600;\n}\n.arap-position-popover select {\n width: 100%;\n min-height: 44px;\n padding: 8px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n font: inherit;\n color: var(--arap-text);\n background: var(--arap-surface);\n}\n.arap-position-popover select:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-position-arrows {\n display: flex;\n justify-content: space-between;\n gap: 6px;\n margin-top: 10px;\n}\n.arap-position-default {\n width: 100%;\n margin-top: 8px;\n}\n.arap-root .arap-btn[data-draggable=true] {\n touch-action: none;\n user-select: none;\n cursor: grab;\n}\n.arap-root .arap-btn[data-dragging=true] {\n cursor: grabbing;\n}\n.arap-root .arap-btn[data-corner$=left],\n.arap-root .arap-panel[data-corner$=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-corner$=right],\n.arap-root .arap-panel[data-corner$=right] {\n left: auto;\n right: max(16px, env(safe-area-inset-right));\n}\n.arap-root .arap-btn[data-corner^=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-btn[data-corner^=bottom] {\n top: auto;\n bottom: max(16px, env(safe-area-inset-bottom));\n}\n.arap-root .arap-panel[data-corner^=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-root .arap-panel[data-corner^=bottom] {\n top: auto;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n}\n.arap-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n.arap-root .arap-skip-actions {\n position: absolute;\n top: 12px;\n left: 20px;\n width: 44px;\n height: 44px;\n clip-path: inset(50%);\n overflow: hidden;\n pointer-events: none;\n}\n.arap-root .arap-skip-actions:focus-visible {\n right: 20px;\n width: auto;\n height: auto;\n min-height: 44px;\n clip-path: none;\n pointer-events: auto;\n z-index: 2;\n padding: 8px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-accent);\n}\n.arap-skip-to-main {\n position: fixed;\n top: 12px;\n left: 16px;\n z-index: 2147483647;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n pointer-events: none;\n font-family: inherit;\n font-size: 0.9375rem;\n font-weight: 600;\n text-decoration: none;\n color: var(--arap-accent, #008060);\n background: var(--arap-surface, #ffffff);\n border-radius: 8px;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);\n}\n.arap-skip-to-main:focus,\n.arap-skip-to-main:focus-visible {\n width: auto;\n height: auto;\n min-height: 44px;\n margin: 0;\n padding: 10px 18px;\n clip-path: none;\n overflow: visible;\n white-space: normal;\n pointer-events: auto;\n border: 2px solid var(--arap-accent, #008060);\n outline: 3px solid var(--arap-accent, #008060);\n outline-offset: 3px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n@media (forced-colors: active) {\n .arap-skip-to-main {\n background: Canvas;\n color: CanvasText;\n border-color: Highlight;\n }\n .arap-skip-to-main:focus,\n .arap-skip-to-main:focus-visible {\n outline: 3px solid Highlight;\n }\n}\n@media (max-height: 480px) {\n .arap-root .arap-panel {\n top: max(16px, env(safe-area-inset-top)) !important;\n bottom: max(16px, env(safe-area-inset-bottom)) !important;\n max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;\n padding: 8px;\n }\n .arap-heading {\n padding-bottom: 8px;\n }\n .arap-heading h2 {\n font-size: 18px;\n }\n .arap-heading button {\n margin-top: 0;\n }\n .arap-description {\n display: none;\n }\n .arap-quick-actions {\n padding-top: 8px;\n margin-top: 0;\n }\n .arap-root .arap-reset-btn {\n min-height: 44px;\n }\n .arap-root .arap-btn[data-open=true] {\n visibility: hidden;\n }\n .arap-position-popover {\n max-height: calc(100dvh - 96px);\n }\n}\n.arap-statement {\n flex: none;\n padding-top: 10px;\n text-align: center;\n}\n.arap-statement-link {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 44px;\n padding: 6px 12px;\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 4px;\n font-size: 14px;\n font-weight: 500;\n border-radius: 8px;\n}\n.arap-statement-link:hover {\n color: var(--arap-accent-hover);\n background: var(--arap-selected);\n}\n.arap-statement-link:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-credits {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 2px;\n padding-top: 8px;\n color: var(--arap-muted);\n text-align: center;\n font-size: 11px;\n line-height: 1.4;\n}\n.arap-credits a {\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 2px;\n}\n.arap-credits a:hover {\n color: var(--arap-accent-hover);\n}\n.arap-credits a:focus-visible {\n outline: 2px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-root .arap-btn[data-large-controls=true] {\n width: 64px;\n height: 64px;\n min-width: 48px;\n min-height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] {\n width: min(440px, calc(100vw - 32px));\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-heading button {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 32px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-btn-sm {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 24px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-value {\n min-width: 64px;\n font-size: 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-segment {\n min-width: 48px;\n min-height: 48px;\n padding: 10px 14px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle {\n width: 64px;\n height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle::before {\n inset: 8px 0;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-knob {\n top: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-active .arap-toggle-knob {\n transform: translateX(28px);\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-reset-btn {\n min-height: 52px;\n font-size: 16px;\n padding: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-button,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-default,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-arrows button {\n min-width: 48px;\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-popover select {\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-statement-link {\n min-height: 48px;\n font-size: 15px;\n padding: 10px 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-skip-actions {\n min-width: 48px;\n min-height: 48px;\n}\n.arap-feature-card {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n}\n.arap-card-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-card-title {\n font-weight: 600;\n font-size: 15px;\n color: var(--arap-text);\n}\n.arap-card-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-status-badge {\n display: inline-flex;\n align-items: center;\n padding: 2px 8px;\n border-radius: 9999px;\n font-size: 11px;\n font-weight: 600;\n background: var(--arap-control);\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-card-alert {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n padding: 10px 12px;\n border-radius: 8px;\n font-size: 13px;\n line-height: 1.4;\n}\n.arap-alert-icon {\n flex: none;\n font-size: 16px;\n line-height: 1;\n}\n.arap-card-error {\n background: #fef2f2;\n border: 1px solid #fecaca;\n color: #991b1b;\n}\n.arap-card-unavailable {\n background: #f8fafc;\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n}\n.arap-card-permission {\n background: #fffbeb;\n border: 1px solid #fde68a;\n color: #92400e;\n}\n.arap-permission-content {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-permission-btn {\n align-self: flex-start;\n padding: 4px 10px;\n border: 1px solid #d97706;\n border-radius: 6px;\n background: #f59e0b;\n color: #fff;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n}\n.arap-permission-btn:hover {\n background: #d97706;\n}\n.arap-card-content {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.arap-choice-group {\n display: flex;\n flex-direction: column;\n gap: 6px;\n width: 100%;\n}\n.arap-choice-group-title {\n font-size: 12px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-choice-badge {\n font-size: 11px;\n padding: 1px 5px;\n border-radius: 4px;\n background: var(--arap-divider);\n color: var(--arap-muted);\n}\n.arap-segment-active .arap-choice-badge {\n background: rgba(255, 255, 255, 0.25);\n color: #fff;\n}\n.arap-stepper-control-wrapper {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n}\n.arap-slider-container {\n display: flex;\n align-items: center;\n padding: 4px 0;\n}\n.arap-slider {\n width: 100%;\n accent-color: var(--arap-accent);\n cursor: pointer;\n}\n.arap-search-count {\n padding: 6px 0;\n font-size: 12px;\n font-weight: 500;\n color: var(--arap-muted);\n}\n.arap-empty-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: 24px 16px;\n gap: 8px;\n}\n.arap-empty-icon {\n font-size: 32px;\n}\n.arap-empty-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-empty-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n}\n.arap-empty-btn,\n.arap-retry-btn {\n margin-top: 6px;\n padding: 8px 16px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n font-weight: 500;\n font-size: 13px;\n color: var(--arap-text);\n cursor: pointer;\n}\n.arap-empty-btn:hover,\n.arap-retry-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n color: var(--arap-accent);\n}\n.arap-profile-card {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n transition: border-color 0.15s, box-shadow 0.15s;\n}\n.arap-profile-card-active {\n border-color: var(--arap-accent);\n background: var(--arap-selected);\n box-shadow: 0 0 0 1px var(--arap-accent);\n}\n.arap-profile-header {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n.arap-profile-title-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-profile-title {\n margin: 0;\n font-size: 15px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-profile-active-badge {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-accent);\n background: #dbeafe;\n padding: 2px 8px;\n border-radius: 9999px;\n}\n.arap-profile-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-profile-affected {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-profile-affected-label {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-profile-chips {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n.arap-profile-chip {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 3px 8px;\n border-radius: 6px;\n background: var(--arap-control);\n border: 1px solid var(--arap-divider);\n font-size: 12px;\n color: var(--arap-text);\n}\n.arap-profile-actions {\n display: flex;\n gap: 8px;\n margin-top: 4px;\n}\n.arap-profile-apply-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-accent);\n color: #fff;\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-apply-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-profile-revert-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-muted);\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-revert-btn:hover {\n background: var(--arap-control);\n color: var(--arap-text);\n border-color: var(--arap-text);\n}\n.arap-notice {\n grid-column: 1 / -1;\n margin-top: 6px;\n padding: 8px 12px;\n border-radius: 8px;\n font-size: 12px;\n line-height: 1.45;\n background: #fefce8;\n border: 1px solid #fef08a;\n color: #854d0e;\n}\n.arap-notice-warning {\n background: #fffbeb;\n border-color: #fde68a;\n color: #92400e;\n}\n');
110
120
 
111
121
  // src/core/AccessibilityPlugin.tsx
112
122
  var import_react4 = require("react");
@@ -323,6 +333,14 @@ var FONT_FAMILY_PRESETS = [
323
333
  "legible",
324
334
  "dyslexia-option"
325
335
  ];
336
+ var CONTRAST_MODES = [
337
+ "off",
338
+ "original",
339
+ "light",
340
+ "dark",
341
+ "high",
342
+ "invert"
343
+ ];
326
344
  var builtins = Object.assign(/* @__PURE__ */ Object.create(null), {
327
345
  fontSize: { defaultValue: 100, validate: numberIn(50, 200) },
328
346
  fontScale: { defaultValue: 1, validate: numberIn(0.5, 2) },
@@ -353,12 +371,23 @@ var builtins = Object.assign(/* @__PURE__ */ Object.create(null), {
353
371
  1,
354
372
  2,
355
373
  3,
374
+ "off",
375
+ "original",
376
+ "light",
377
+ "dark",
378
+ "high",
379
+ "invert",
356
380
  "reduced",
357
381
  "yellow-on-black",
358
382
  "white-on-black",
359
- "blue-on-yellow"
383
+ "blue-on-yellow",
384
+ "black-on-white"
360
385
  )
361
386
  },
387
+ contrastMode: {
388
+ defaultValue: "off",
389
+ validate: oneOf("off", "original", "light", "dark", "high", "invert")
390
+ },
362
391
  saturation: { defaultValue: 0, validate: oneOf(0, 1, 2) },
363
392
  textAlign: {
364
393
  defaultValue: "default",
@@ -379,6 +408,7 @@ var builtins = Object.assign(/* @__PURE__ */ Object.create(null), {
379
408
  validate: oneOf(
380
409
  false,
381
410
  true,
411
+ "underline",
382
412
  "yellow-on-black",
383
413
  "blue-on-yellow",
384
414
  "black-on-white"
@@ -392,7 +422,9 @@ for (const key of [
392
422
  "hideVideos",
393
423
  "bigCursor",
394
424
  "readingMask",
395
- "readingGuide"
425
+ "readingGuide",
426
+ "highlightFocus",
427
+ "focusHighlight"
396
428
  ]) {
397
429
  builtins[key] = {
398
430
  defaultValue: false,
@@ -416,22 +448,146 @@ var import_react3 = require("react");
416
448
  var EXCLUDED = "[data-arap-ui], [data-arap-ui] *, script, style, link, meta, noscript, template";
417
449
  var MAX_HOST_ELEMENTS = 4e3;
418
450
  var cursor = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M4 2v32l9-9 7 13 6-3-7-12h14z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 4 2, auto`;
451
+ function isForcedColorsActive() {
452
+ if (typeof window === "undefined" || !window.matchMedia) return false;
453
+ try {
454
+ return window.matchMedia("(forced-colors: active)").matches;
455
+ } catch {
456
+ return false;
457
+ }
458
+ }
459
+ function subscribeForcedColors(callback) {
460
+ if (typeof window === "undefined" || !window.matchMedia) return () => {
461
+ };
462
+ try {
463
+ const mql = window.matchMedia("(forced-colors: active)");
464
+ mql.addEventListener("change", callback);
465
+ return () => mql.removeEventListener("change", callback);
466
+ } catch {
467
+ return () => {
468
+ };
469
+ }
470
+ }
471
+ var CONTRAST_PALETTES = {
472
+ light: {
473
+ text: "#0f172a",
474
+ background: "#ffffff",
475
+ border: "#94a3b8",
476
+ link: "#0284c7"
477
+ },
478
+ dark: {
479
+ text: "#f8fafc",
480
+ background: "#0f172a",
481
+ border: "#475569",
482
+ link: "#38bdf8"
483
+ },
484
+ high: {
485
+ text: "#ffffff",
486
+ background: "#000000",
487
+ border: "#ffffff",
488
+ link: "#93c5fd"
489
+ },
490
+ "yellow-on-black": {
491
+ text: "#ffff00",
492
+ background: "#000000",
493
+ border: "#ffff00",
494
+ link: "#00ffff"
495
+ },
496
+ "white-on-black": {
497
+ text: "#ffffff",
498
+ background: "#000000",
499
+ border: "#ffffff",
500
+ link: "#ffff00"
501
+ },
502
+ "blue-on-yellow": {
503
+ text: "#005a9c",
504
+ background: "#ffd740",
505
+ border: "#005a9c",
506
+ link: "#002b49"
507
+ },
508
+ "black-on-white": {
509
+ text: "#000000",
510
+ background: "#ffffff",
511
+ border: "#000000",
512
+ link: "#0000ee"
513
+ }
514
+ };
419
515
  var palette = {
420
516
  "yellow-on-black": ["#ffff00", "#000000"],
421
517
  "white-on-black": ["#ffffff", "#000000"],
422
518
  "blue-on-yellow": ["#005a9c", "#ffd740"],
423
- "black-on-white": ["#000000", "#ffffff"]
519
+ "black-on-white": ["#000000", "#ffffff"],
520
+ light: ["#0f172a", "#ffffff"],
521
+ dark: ["#f8fafc", "#0f172a"],
522
+ high: ["#ffffff", "#000000"]
424
523
  };
425
524
  function composeFilter(values) {
525
+ if (isForcedColorsActive()) return "";
426
526
  const contrast = values.contrast === "reduced" ? 0.5 : [1, 1.25, 1.5, 2][Number(values.contrast)] ?? 1;
527
+ const isInvert = Boolean(values.invertColors) || values.contrast === "invert" || values.contrastMode === "invert";
427
528
  return [
428
529
  contrast !== 1 && `contrast(${contrast})`,
429
530
  values.saturation === 1 && "saturate(0.2)",
430
531
  values.saturation === 2 && "saturate(2)",
431
- values.invertColors && "invert(1)",
532
+ isInvert && "invert(1)",
432
533
  values.grayscale && "grayscale(1)"
433
534
  ].filter(Boolean).join(" ");
434
535
  }
536
+ var CONTRAST_PROTECTED_SELECTOR = [
537
+ "img",
538
+ "picture",
539
+ "picture *",
540
+ "video",
541
+ "canvas",
542
+ "svg",
543
+ "svg *",
544
+ "[role='img']",
545
+ "[role='img'] *",
546
+ "[role='graphics-document']",
547
+ "[role='graphics-document'] *",
548
+ "[role='graphics-symbol']",
549
+ "[role='graphics-symbol'] *",
550
+ "[data-icon]",
551
+ "[data-icon] *",
552
+ 'i[class*="icon"]',
553
+ 'span[class*="icon"]',
554
+ 'i[class*="fa-"]',
555
+ 'span[class*="fa-"]',
556
+ 'i[class*="material-symbols"]',
557
+ 'span[class*="material-symbols"]',
558
+ 'i[class*="lucide"]',
559
+ 'span[class*="lucide"]',
560
+ '[aria-invalid="true"]',
561
+ '[aria-invalid="true"] *',
562
+ ":invalid",
563
+ ".is-invalid",
564
+ ".invalid-feedback",
565
+ ":disabled",
566
+ "[aria-disabled='true']",
567
+ "[disabled]",
568
+ "[data-arap-ignore]",
569
+ "[data-arap-ignore] *",
570
+ "[data-arap-exempt]",
571
+ "[data-arap-exempt] *",
572
+ "[data-arap-ui]",
573
+ "[data-arap-ui] *",
574
+ ".arap-root",
575
+ ".arap-root *"
576
+ ].join(", ");
577
+ function isProtectedFromContrast(element) {
578
+ try {
579
+ if (element.matches(EXCLUDED)) return true;
580
+ if (element.matches(CONTRAST_PROTECTED_SELECTOR)) return true;
581
+ if (element.closest(
582
+ "svg, [role='img'], [data-icon], [aria-invalid='true'], :disabled, [aria-disabled='true'], [data-arap-ignore], [data-arap-exempt], [data-arap-ui], .arap-root"
583
+ )) {
584
+ return true;
585
+ }
586
+ } catch {
587
+ return false;
588
+ }
589
+ return false;
590
+ }
435
591
  var TEXT_SCALE_PROTECTED_SELECTOR = [
436
592
  "input",
437
593
  "textarea",
@@ -901,6 +1057,72 @@ function applyPage(values) {
901
1057
  set(el, "font-family", targetStack);
902
1058
  }
903
1059
  }
1060
+ const isInvert = Boolean(values.invertColors) || values.contrast === "invert" || values.contrastMode === "invert";
1061
+ if (isInvert && !isForcedColorsActive()) {
1062
+ const mediaElements = Array.from(
1063
+ document.body.querySelectorAll(
1064
+ "img, video, canvas, picture, [role='img']"
1065
+ )
1066
+ ).filter((el) => !el.closest("[data-arap-ui]"));
1067
+ for (const mediaEl of mediaElements) {
1068
+ set(mediaEl, "filter", "invert(1)");
1069
+ }
1070
+ }
1071
+ const activeContrastKey = values.contrastMode && values.contrastMode !== "off" && values.contrastMode !== "original" ? String(values.contrastMode) : values.contrast !== void 0 && values.contrast !== 0 && values.contrast !== "0" && values.contrast !== "off" && values.contrast !== "original" ? String(values.contrast) : null;
1072
+ const activePalette = activeContrastKey && !isForcedColorsActive() ? CONTRAST_PALETTES[activeContrastKey] : null;
1073
+ if (activePalette) {
1074
+ for (const el of elements) {
1075
+ if (isProtectedFromContrast(el)) continue;
1076
+ set(el, "color", activePalette.text);
1077
+ if (el.matches("a[href]") && activePalette.link) {
1078
+ set(el, "color", activePalette.link);
1079
+ }
1080
+ if (el.matches(
1081
+ "main, section, article, div, p, h1, h2, h3, h4, h5, h6, ul, ol, li, table, thead, tbody, tr, th, td, button, input, select, textarea, form, blockquote, header, footer, aside, nav"
1082
+ )) {
1083
+ set(el, "background-color", activePalette.background);
1084
+ }
1085
+ if (activePalette.border && el.matches(
1086
+ "button, input, select, textarea, [role='button'], fieldset, hr, table, th, td"
1087
+ )) {
1088
+ set(el, "border-color", activePalette.border);
1089
+ }
1090
+ }
1091
+ }
1092
+ if (values.highlightFocus || values.focusHighlight) {
1093
+ const FOCUS_STYLE_ID = "arap-focus-highlight-style";
1094
+ let styleEl = document.getElementById(
1095
+ FOCUS_STYLE_ID
1096
+ );
1097
+ if (!styleEl) {
1098
+ styleEl = document.createElement("style");
1099
+ styleEl.id = FOCUS_STYLE_ID;
1100
+ styleEl.dataset.arapUi = "";
1101
+ styleEl.textContent = `
1102
+ *:not([data-arap-ui]):not([data-arap-ui] *):focus-visible {
1103
+ outline: 3px solid #2563eb !important;
1104
+ outline-offset: 3px !important;
1105
+ box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9) !important;
1106
+ }
1107
+ @media (forced-colors: active) {
1108
+ *:not([data-arap-ui]):not([data-arap-ui] *):focus-visible {
1109
+ outline: 3px solid Highlight !important;
1110
+ outline-offset: 3px !important;
1111
+ box-shadow: none !important;
1112
+ }
1113
+ }
1114
+ *:disabled:focus-visible,
1115
+ *[aria-disabled="true"]:focus-visible {
1116
+ outline: none !important;
1117
+ box-shadow: none !important;
1118
+ }
1119
+ `;
1120
+ document.head.appendChild(styleEl);
1121
+ undo.push(() => {
1122
+ styleEl?.remove();
1123
+ });
1124
+ }
1125
+ }
904
1126
  for (const el of elements) {
905
1127
  if (values.bigCursor) set(el, "cursor", cursor);
906
1128
  if (values.hideImages) {
@@ -912,18 +1134,30 @@ function applyPage(values) {
912
1134
  ))
913
1135
  set(el, "visibility", "hidden");
914
1136
  const colors = palette[String(values.contrast)];
915
- if (colors) {
1137
+ if (colors && !activePalette && !isForcedColorsActive()) {
916
1138
  set(el, "color", colors[0]);
917
1139
  set(el, "background-color", colors[1]);
918
1140
  }
919
- if (values.linkHighlight && el.matches("a[href]")) {
920
- const colors2 = palette[String(values.linkHighlight)] ?? [
921
- "#111827",
922
- "#fef08a"
923
- ];
924
- set(el, "color", colors2[0]);
925
- set(el, "background-color", colors2[1]);
926
- set(el, "text-decoration", "underline");
1141
+ if (values.linkHighlight && el.matches("a[href]") && !el.closest("[data-arap-ui]")) {
1142
+ const isDisabled = el.getAttribute("aria-disabled") === "true" || el.hasAttribute("disabled") || el.classList.contains("disabled");
1143
+ if (!isDisabled) {
1144
+ if (isForcedColorsActive()) {
1145
+ set(el, "color", "LinkText");
1146
+ set(el, "text-decoration", "underline");
1147
+ set(el, "text-decoration-thickness", "2px");
1148
+ set(el, "text-underline-offset", "3px");
1149
+ } else {
1150
+ const colors2 = palette[String(values.linkHighlight)] ?? [
1151
+ "#111827",
1152
+ "#fef08a"
1153
+ ];
1154
+ set(el, "color", colors2[0]);
1155
+ set(el, "background-color", colors2[1]);
1156
+ set(el, "text-decoration", "underline");
1157
+ set(el, "text-decoration-thickness", "2px");
1158
+ set(el, "text-underline-offset", "3px");
1159
+ }
1160
+ }
927
1161
  }
928
1162
  }
929
1163
  return () => {
@@ -1186,7 +1420,7 @@ function AccessibilityPlugin({
1186
1420
  }
1187
1421
 
1188
1422
  // src/core/AccessibilityButton.tsx
1189
- var import_react6 = require("react");
1423
+ var import_react7 = require("react");
1190
1424
 
1191
1425
  // src/core/WidgetPortal.tsx
1192
1426
  var import_react5 = require("react");
@@ -1208,12 +1442,16 @@ function WidgetPortal({ children }) {
1208
1442
  ) : null;
1209
1443
  }
1210
1444
 
1445
+ // src/core/SkipToMainLink.tsx
1446
+ var import_react6 = require("react");
1447
+
1211
1448
  // src/core/i18n/en.ts
1212
1449
  var enLocale = Object.freeze({
1213
1450
  title: "Accessibility settings",
1214
1451
  description: "Adjust your reading experience",
1215
1452
  closeLabel: "Close accessibility settings",
1216
1453
  skipToActions: "Jump to quick actions",
1454
+ skipToMain: "Skip to main content",
1217
1455
  toolsLabel: "Accessibility tools",
1218
1456
  quickActionsLabel: "Quick actions",
1219
1457
  resetLabel: "Reset all accessibility settings",
@@ -1279,8 +1517,69 @@ function resolveLocaleStrings(localeProp) {
1279
1517
  return enLocale;
1280
1518
  }
1281
1519
 
1282
- // src/core/AccessibilityButton.tsx
1520
+ // src/core/SkipToMainLink.tsx
1283
1521
  var import_jsx_runtime3 = require("react/jsx-runtime");
1522
+ function findMainLandmark() {
1523
+ if (typeof document === "undefined") return null;
1524
+ const main = document.querySelector("main, [role='main']");
1525
+ return main instanceof HTMLElement ? main : null;
1526
+ }
1527
+ function subscribeLandmark(callback) {
1528
+ if (typeof MutationObserver === "undefined" || typeof document === "undefined" || !document.body) {
1529
+ return () => {
1530
+ };
1531
+ }
1532
+ const observer = new MutationObserver(callback);
1533
+ observer.observe(document.body, { childList: true, subtree: true });
1534
+ return () => observer.disconnect();
1535
+ }
1536
+ function getMainTargetId() {
1537
+ if (typeof document === "undefined") return null;
1538
+ const main = findMainLandmark();
1539
+ if (main) {
1540
+ if (!main.id) {
1541
+ main.id = "arap-main-content";
1542
+ }
1543
+ if (!main.hasAttribute("tabindex")) {
1544
+ main.setAttribute("tabindex", "-1");
1545
+ }
1546
+ return main.id;
1547
+ }
1548
+ return null;
1549
+ }
1550
+ function SkipToMainLink({ className = "", label }) {
1551
+ const ctx = (0, import_react6.useContext)(AccessibilityContext);
1552
+ const strings = resolveLocaleStrings(ctx?.locale);
1553
+ const text = label ?? strings.skipToMain ?? "Skip to main content";
1554
+ const targetId = (0, import_react6.useSyncExternalStore)(
1555
+ subscribeLandmark,
1556
+ getMainTargetId,
1557
+ () => null
1558
+ );
1559
+ if (!targetId) return null;
1560
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1561
+ "a",
1562
+ {
1563
+ href: `#${targetId}`,
1564
+ className: `arap-skip-to-main ${className}`,
1565
+ onClick: (e) => {
1566
+ const main = document.getElementById(targetId);
1567
+ if (main) {
1568
+ e.preventDefault();
1569
+ if (!main.hasAttribute("tabindex")) {
1570
+ main.setAttribute("tabindex", "-1");
1571
+ }
1572
+ main.focus();
1573
+ main.scrollIntoView({ behavior: "smooth", block: "start" });
1574
+ }
1575
+ },
1576
+ children: text
1577
+ }
1578
+ );
1579
+ }
1580
+
1581
+ // src/core/AccessibilityButton.tsx
1582
+ var import_jsx_runtime4 = require("react/jsx-runtime");
1284
1583
  function AccessibilityButton({
1285
1584
  icon,
1286
1585
  draggable = true,
@@ -1290,7 +1589,7 @@ function AccessibilityButton({
1290
1589
  style,
1291
1590
  largeControls
1292
1591
  }) {
1293
- const ctx = (0, import_react6.useContext)(AccessibilityContext);
1592
+ const ctx = (0, import_react7.useContext)(AccessibilityContext);
1294
1593
  if (!ctx)
1295
1594
  throw new Error(
1296
1595
  "AccessibilityButton must be used within an <AccessibilityPlugin> provider."
@@ -1300,13 +1599,14 @@ function AccessibilityButton({
1300
1599
  const isLarge = largeControls ?? ctx.largeControls ?? false;
1301
1600
  const viewport = useViewport();
1302
1601
  const triggerSize = useTriggerSize(`${ctx.panelId}-trigger`);
1303
- const [preview, setPreview] = (0, import_react6.useState)(null);
1304
- const drag = (0, import_react6.useRef)(null);
1305
- const suppressClick = (0, import_react6.useRef)(false);
1602
+ const [preview, setPreview] = (0, import_react7.useState)(null);
1603
+ const drag = (0, import_react7.useRef)(null);
1604
+ const suppressClick = (0, import_react7.useRef)(false);
1306
1605
  const placement = preview ?? ctx.widgetPlacement;
1307
1606
  const corner = placement?.kind === "corner" ? placement.corner : defaultCorner(ctx.position);
1308
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(WidgetPortal, { children: [
1309
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
1607
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(WidgetPortal, { children: [
1608
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SkipToMainLink, {}),
1609
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1310
1610
  "button",
1311
1611
  {
1312
1612
  type: "button",
@@ -1404,7 +1704,7 @@ function AccessibilityButton({
1404
1704
  "aria-expanded": ctx.isOpen,
1405
1705
  "aria-controls": ctx.panelId,
1406
1706
  children: [
1407
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { "aria-hidden": "true", children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
1707
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { "aria-hidden": "true", children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1408
1708
  "svg",
1409
1709
  {
1410
1710
  width: "28",
@@ -1414,19 +1714,19 @@ function AccessibilityButton({
1414
1714
  stroke: "currentColor",
1415
1715
  strokeWidth: "2",
1416
1716
  children: [
1417
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "12", cy: "4", r: "2" }),
1418
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M4 9l8 2 8-2M12 11v5m0 0-5 6m5-6 5 6" })
1717
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "4", r: "2" }),
1718
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 9l8 2 8-2M12 11v5m0 0-5 6m5-6 5 6" })
1419
1719
  ]
1420
1720
  }
1421
1721
  ) }),
1422
- (description || draggable) && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { id: `${ctx.panelId}-trigger-description`, hidden: true, children: [
1722
+ (description || draggable) && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { id: `${ctx.panelId}-trigger-description`, hidden: true, children: [
1423
1723
  description ? `${description} ` : "",
1424
1724
  draggable && strings.dragHelp
1425
1725
  ] })
1426
1726
  ]
1427
1727
  }
1428
1728
  ),
1429
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "arap-sr-only", role: "status", children: ctx.widgetPlacement?.kind === "point" ? strings.formatPointPosition ? strings.formatPointPosition(
1729
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "arap-sr-only", role: "status", children: ctx.widgetPlacement?.kind === "point" ? strings.formatPointPosition ? strings.formatPointPosition(
1430
1730
  ctx.widgetPlacement.x,
1431
1731
  ctx.widgetPlacement.y
1432
1732
  ) : `Button position: ${Math.round(ctx.widgetPlacement.x * 100)}% horizontally, ${Math.round(ctx.widgetPlacement.y * 100)}% vertically.` : strings.formatCornerPosition ? strings.formatCornerPosition(corner) : `Button position: ${corner.split("-").join(" ")}.` })
@@ -1434,22 +1734,22 @@ function AccessibilityButton({
1434
1734
  }
1435
1735
 
1436
1736
  // src/core/AccessibilityList.tsx
1437
- var import_react9 = require("react");
1737
+ var import_react10 = require("react");
1438
1738
 
1439
1739
  // src/core/PanelActionsContext.ts
1440
- var import_react7 = require("react");
1441
- var PanelActionsContext = (0, import_react7.createContext)(null);
1740
+ var import_react8 = require("react");
1741
+ var PanelActionsContext = (0, import_react8.createContext)(null);
1442
1742
 
1443
1743
  // src/core/PositionControls.tsx
1444
- var import_react8 = require("react");
1445
- var import_jsx_runtime4 = require("react/jsx-runtime");
1744
+ var import_react9 = require("react");
1745
+ var import_jsx_runtime5 = require("react/jsx-runtime");
1446
1746
  function PositionControls() {
1447
- const ctx = (0, import_react8.useContext)(AccessibilityContext);
1747
+ const ctx = (0, import_react9.useContext)(AccessibilityContext);
1448
1748
  const strings = resolveLocaleStrings(ctx.locale);
1449
- const [open, setOpen] = (0, import_react8.useState)(false);
1450
- const select = (0, import_react8.useRef)(null);
1451
- const opener = (0, import_react8.useRef)(null);
1452
- (0, import_react8.useEffect)(() => {
1749
+ const [open, setOpen] = (0, import_react9.useState)(false);
1750
+ const select = (0, import_react9.useRef)(null);
1751
+ const opener = (0, import_react9.useRef)(null);
1752
+ (0, import_react9.useEffect)(() => {
1453
1753
  if (open) select.current?.focus();
1454
1754
  }, [open]);
1455
1755
  const close = () => {
@@ -1464,8 +1764,8 @@ function PositionControls() {
1464
1764
  pointFromPixels(rect.left + dx, rect.top + dy, rect.width, rect.height)
1465
1765
  );
1466
1766
  };
1467
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "arap-position-tools", children: [
1468
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1767
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "arap-position-tools", children: [
1768
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1469
1769
  "button",
1470
1770
  {
1471
1771
  ref: opener,
@@ -1480,7 +1780,7 @@ function PositionControls() {
1480
1780
  children: strings.moveButton
1481
1781
  }
1482
1782
  ),
1483
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1783
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1484
1784
  "div",
1485
1785
  {
1486
1786
  id: `${ctx.panelId}-position`,
@@ -1495,7 +1795,7 @@ function PositionControls() {
1495
1795
  }
1496
1796
  },
1497
1797
  children: [
1498
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1798
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1499
1799
  "label",
1500
1800
  {
1501
1801
  className: "arap-position-label",
@@ -1503,7 +1803,7 @@ function PositionControls() {
1503
1803
  children: strings.positionLabel
1504
1804
  }
1505
1805
  ),
1506
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1806
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1507
1807
  "select",
1508
1808
  {
1509
1809
  ref: select,
@@ -1515,17 +1815,17 @@ function PositionControls() {
1515
1815
  corner: event.target.value
1516
1816
  }),
1517
1817
  children: [
1518
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("option", { value: "custom", disabled: true, children: strings.customPosition }),
1519
- corners.map((corner) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("option", { value: corner, children: corner.split("-").join(" ") }, corner))
1818
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: "custom", disabled: true, children: strings.customPosition }),
1819
+ corners.map((corner) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: corner, children: corner.split("-").join(" ") }, corner))
1520
1820
  ]
1521
1821
  }
1522
1822
  ),
1523
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "arap-position-arrows", children: [
1823
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "arap-position-arrows", children: [
1524
1824
  ["left", -20, 0, "\u2190", strings.moveLeft],
1525
1825
  ["up", 0, -20, "\u2191", strings.moveUp],
1526
1826
  ["down", 0, 20, "\u2193", strings.moveDown],
1527
1827
  ["right", 20, 0, "\u2192", strings.moveRight]
1528
- ].map(([direction, dx, dy, arrowChar, label]) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1828
+ ].map(([direction, dx, dy, arrowChar, label]) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1529
1829
  "button",
1530
1830
  {
1531
1831
  type: "button",
@@ -1538,7 +1838,7 @@ function PositionControls() {
1538
1838
  },
1539
1839
  direction
1540
1840
  )) }),
1541
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1841
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1542
1842
  "button",
1543
1843
  {
1544
1844
  className: "arap-position-default",
@@ -1550,7 +1850,7 @@ function PositionControls() {
1550
1850
  children: strings.resetPosition
1551
1851
  }
1552
1852
  ),
1553
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { className: "arap-position-default", type: "button", onClick: close, children: strings.doneMoving })
1853
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { className: "arap-position-default", type: "button", onClick: close, children: strings.doneMoving })
1554
1854
  ]
1555
1855
  }
1556
1856
  )
@@ -1558,7 +1858,7 @@ function PositionControls() {
1558
1858
  }
1559
1859
 
1560
1860
  // src/core/AccessibilityList.tsx
1561
- var import_jsx_runtime5 = require("react/jsx-runtime");
1861
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1562
1862
  function Panel({
1563
1863
  children,
1564
1864
  footer,
@@ -1571,7 +1871,7 @@ function Panel({
1571
1871
  largeControls,
1572
1872
  locale
1573
1873
  }) {
1574
- const ctx = (0, import_react9.useContext)(AccessibilityContext);
1874
+ const ctx = (0, import_react10.useContext)(AccessibilityContext);
1575
1875
  const effectiveLocale = locale ?? ctx.locale;
1576
1876
  const strings = resolveLocaleStrings(effectiveLocale);
1577
1877
  const panelTitle = title ?? strings.title;
@@ -1580,13 +1880,13 @@ function Panel({
1580
1880
  const effectiveStatementUrl = statementUrl ?? ctx.statementUrl;
1581
1881
  const isLarge = largeControls ?? ctx.largeControls ?? false;
1582
1882
  const isRtl = isRtlLocale(effectiveLocale);
1583
- const panel = (0, import_react9.useRef)(null);
1584
- const [actions, setActions] = (0, import_react9.useState)(null);
1883
+ const panel = (0, import_react10.useRef)(null);
1884
+ const [actions, setActions] = (0, import_react10.useState)(null);
1585
1885
  const viewport = useViewport();
1586
1886
  const triggerSize = useTriggerSize(`${ctx.panelId}-trigger`);
1587
1887
  const corner = ctx.widgetPlacement?.kind === "corner" ? ctx.widgetPlacement.corner : defaultCorner(ctx.position);
1588
- const previous = (0, import_react9.useRef)(null);
1589
- (0, import_react9.useEffect)(() => {
1888
+ const previous = (0, import_react10.useRef)(null);
1889
+ (0, import_react10.useEffect)(() => {
1590
1890
  if (ctx.isOpen) {
1591
1891
  previous.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
1592
1892
  panel.current?.focus();
@@ -1595,13 +1895,13 @@ function Panel({
1595
1895
  previous.current = null;
1596
1896
  }
1597
1897
  }, [ctx.isOpen]);
1598
- (0, import_react9.useEffect)(
1898
+ (0, import_react10.useEffect)(
1599
1899
  () => () => {
1600
1900
  if (previous.current?.isConnected) previous.current.focus();
1601
1901
  },
1602
1902
  []
1603
1903
  );
1604
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1904
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1605
1905
  "div",
1606
1906
  {
1607
1907
  ref: panel,
@@ -1629,12 +1929,12 @@ function Panel({
1629
1929
  }
1630
1930
  },
1631
1931
  children: [
1632
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "arap-heading", children: [
1633
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "arap-heading-copy", children: [
1634
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("h2", { children: panelTitle }),
1635
- panelDescription && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { id: `${ctx.panelId}-description`, className: "arap-description", children: panelDescription })
1932
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "arap-heading", children: [
1933
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "arap-heading-copy", children: [
1934
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h2", { children: panelTitle }),
1935
+ panelDescription && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { id: `${ctx.panelId}-description`, className: "arap-description", children: panelDescription })
1636
1936
  ] }),
1637
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1937
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1638
1938
  "button",
1639
1939
  {
1640
1940
  type: "button",
@@ -1644,7 +1944,7 @@ function Panel({
1644
1944
  }
1645
1945
  )
1646
1946
  ] }),
1647
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1947
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1648
1948
  "button",
1649
1949
  {
1650
1950
  type: "button",
@@ -1658,7 +1958,7 @@ function Panel({
1658
1958
  children: strings.skipToActions
1659
1959
  }
1660
1960
  ),
1661
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PanelActionsContext.Provider, { value: actions, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1961
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PanelActionsContext.Provider, { value: actions, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1662
1962
  "div",
1663
1963
  {
1664
1964
  className: "arap-tools",
@@ -1668,19 +1968,19 @@ function Panel({
1668
1968
  children
1669
1969
  }
1670
1970
  ) }),
1671
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1971
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1672
1972
  "div",
1673
1973
  {
1674
1974
  className: "arap-quick-actions",
1675
1975
  role: "group",
1676
1976
  "aria-label": strings.quickActionsLabel,
1677
1977
  children: [
1678
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PositionControls, {}, ctx.isOpen ? "open" : "closed"),
1679
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "arap-actions", ref: setActions, children: footer })
1978
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PositionControls, {}, ctx.isOpen ? "open" : "closed"),
1979
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "arap-actions", ref: setActions, children: footer })
1680
1980
  ]
1681
1981
  }
1682
1982
  ),
1683
- effectiveStatementUrl && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "arap-statement", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1983
+ effectiveStatementUrl && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "arap-statement", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1684
1984
  "a",
1685
1985
  {
1686
1986
  href: effectiveStatementUrl,
@@ -1689,7 +1989,7 @@ function Panel({
1689
1989
  rel: "noopener noreferrer",
1690
1990
  children: [
1691
1991
  strings.statementLink,
1692
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "arap-sr-only", children: [
1992
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "arap-sr-only", children: [
1693
1993
  " (",
1694
1994
  strings.openInNewTab,
1695
1995
  ")"
@@ -1697,11 +1997,11 @@ function Panel({
1697
1997
  ]
1698
1998
  }
1699
1999
  ) }),
1700
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "arap-credits", children: [
1701
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { children: [
2000
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "arap-credits", children: [
2001
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { children: [
1702
2002
  strings.creditsPrefix ?? "Designed and developed by",
1703
2003
  " ",
1704
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
2004
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1705
2005
  "a",
1706
2006
  {
1707
2007
  href: "https://www.praboth.com",
@@ -1709,7 +2009,7 @@ function Panel({
1709
2009
  rel: "noopener noreferrer",
1710
2010
  children: [
1711
2011
  strings.creditsName ?? "Praboth",
1712
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "arap-sr-only", children: [
2012
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "arap-sr-only", children: [
1713
2013
  " (",
1714
2014
  strings.openInNewTab,
1715
2015
  ")"
@@ -1718,7 +2018,7 @@ function Panel({
1718
2018
  }
1719
2019
  )
1720
2020
  ] }),
1721
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
2021
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1722
2022
  "a",
1723
2023
  {
1724
2024
  href: "https://www.praboth.com/accessibility-plugin-react",
@@ -1726,7 +2026,7 @@ function Panel({
1726
2026
  rel: "noopener noreferrer",
1727
2027
  children: [
1728
2028
  strings.documentationLink ?? "Official documentation",
1729
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "arap-sr-only", children: [
2029
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "arap-sr-only", children: [
1730
2030
  " (",
1731
2031
  strings.openInNewTab,
1732
2032
  ")"
@@ -1740,18 +2040,18 @@ function Panel({
1740
2040
  );
1741
2041
  }
1742
2042
  function AccessibilityList(props) {
1743
- const ctx = (0, import_react9.useContext)(AccessibilityContext);
2043
+ const ctx = (0, import_react10.useContext)(AccessibilityContext);
1744
2044
  if (!ctx)
1745
2045
  throw new Error(
1746
2046
  "AccessibilityList must be used within an <AccessibilityPlugin> provider."
1747
2047
  );
1748
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(WidgetPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Panel, { ...props }) });
2048
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(WidgetPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Panel, { ...props }) });
1749
2049
  }
1750
2050
 
1751
2051
  // src/core/useAccessibility.ts
1752
- var import_react10 = require("react");
2052
+ var import_react11 = require("react");
1753
2053
  function useAccessibility(featureKey, defaultValue, options) {
1754
- const ctx = (0, import_react10.useContext)(AccessibilityContext);
2054
+ const ctx = (0, import_react11.useContext)(AccessibilityContext);
1755
2055
  if (!ctx)
1756
2056
  throw new Error(
1757
2057
  "useAccessibility must be used within an <AccessibilityPlugin> provider."
@@ -1760,16 +2060,16 @@ function useAccessibility(featureKey, defaultValue, options) {
1760
2060
  throw new Error(
1761
2061
  "Feature keys must be nonempty and cannot be prototype keys."
1762
2062
  );
1763
- const [definition] = (0, import_react10.useState)({ defaultValue, ...options });
2063
+ const [definition] = (0, import_react11.useState)({ defaultValue, ...options });
1764
2064
  const { registerFeature, setFeatureState } = ctx;
1765
- (0, import_react10.useEffect)(() => {
2065
+ (0, import_react11.useEffect)(() => {
1766
2066
  registerFeature(featureKey, definition);
1767
2067
  }, [featureKey, registerFeature, definition]);
1768
- const setValue = (0, import_react10.useCallback)(
2068
+ const setValue = (0, import_react11.useCallback)(
1769
2069
  (next) => setFeatureState(featureKey, next),
1770
2070
  [featureKey, setFeatureState]
1771
2071
  );
1772
- const reset = (0, import_react10.useCallback)(
2072
+ const reset = (0, import_react11.useCallback)(
1773
2073
  () => setFeatureState(featureKey, definition.defaultValue),
1774
2074
  [featureKey, setFeatureState, definition]
1775
2075
  );
@@ -2085,56 +2385,68 @@ function preferencesReducer(state, action) {
2085
2385
  }
2086
2386
 
2087
2387
  // src/core/FeatureIcon.tsx
2088
- var import_jsx_runtime6 = require("react/jsx-runtime");
2388
+ var import_jsx_runtime7 = require("react/jsx-runtime");
2089
2389
  var drawings = {
2090
- fontSize: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 18 8 5l5 13M5 13h6M15 18l3-8 3 8M16 15h4" }) }),
2091
- lineHeight: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M9 6h12M9 12h9M9 18h12M4 4v16m-2-2 2 2 2-2M2 6l2-2 2 2" }) }),
2092
- letterSpacing: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 13 7 3l4 10M4.5 9h5M14 13l4-10 4 10m-6.5-4h5M3 19h18m-3-2 3 2-3 2M6 17l-3 2 3 2" }) }),
2093
- wordSpacing: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 6v12M20 6v12M9 12h6m-2-3 3 3-3 3m-4-3-3-3 3 3" }) }),
2094
- paragraphSpacing: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 5h16M4 9h12M4 19h16M4 15h12M18 10v4m-2-2 2-2 2 2m-4 2 2 2 2-2" }) }),
2095
- contrast: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
2096
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
2097
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3a9 9 0 0 1 0 18Z", fill: "currentColor", stroke: "none" })
2390
+ fontSize: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M3 18 8 5l5 13M5 13h6M15 18l3-8 3 8M16 15h4" }) }),
2391
+ lineHeight: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M9 6h12M9 12h9M9 18h12M4 4v16m-2-2 2 2 2-2M2 6l2-2 2 2" }) }),
2392
+ letterSpacing: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M3 13 7 3l4 10M4.5 9h5M14 13l4-10 4 10m-6.5-4h5M3 19h18m-3-2 3 2-3 2M6 17l-3 2 3 2" }) }),
2393
+ wordSpacing: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M4 6v12M20 6v12M9 12h6m-2-3 3 3-3 3m-4-3-3-3 3 3" }) }),
2394
+ paragraphSpacing: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M4 5h16M4 9h12M4 19h16M4 15h12M18 10v4m-2-2 2-2 2 2m-4 2 2 2 2-2" }) }),
2395
+ contrast: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2396
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
2397
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M12 3a9 9 0 0 1 0 18Z", fill: "currentColor", stroke: "none" })
2098
2398
  ] }),
2099
- saturation: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
2100
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3c-2 4-7 8-7 12a7 7 0 0 0 14 0c0-4-5-8-7-12Z" }),
2101
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8 15a4 4 0 0 0 4 4" })
2399
+ contrastMode: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2400
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
2401
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M12 3a9 9 0 0 1 0 18Z", fill: "currentColor", stroke: "none" })
2102
2402
  ] }),
2103
- invertColors: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
2104
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3c-2 4-7 8-7 12a7 7 0 0 0 14 0c0-4-5-8-7-12Z" }),
2105
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3v19" })
2403
+ saturation: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2404
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M12 3c-2 4-7 8-7 12a7 7 0 0 0 14 0c0-4-5-8-7-12Z" }),
2405
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M8 15a4 4 0 0 0 4 4" })
2106
2406
  ] }),
2107
- grayscale: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
2108
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "8", cy: "12", r: "5" }),
2109
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "16", cy: "12", r: "5" }),
2110
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8 7v10M16 7v10" })
2407
+ invertColors: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2408
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M12 3c-2 4-7 8-7 12a7 7 0 0 0 14 0c0-4-5-8-7-12Z" }),
2409
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M12 3v19" })
2111
2410
  ] }),
2112
- linkHighlight: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m10 14 4-4M8 16l-1 1a4 4 0 0 1-6-6l4-4a4 4 0 0 1 6 0M16 8l1-1a4 4 0 0 1 6 6l-4 4a4 4 0 0 1-6 0" }) }),
2113
- textAlign: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 5h18M3 10h12M3 15h18M3 20h12" }) }),
2114
- fontFamily: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 7V4h16v3M9 20h6M12 4v16" }) }),
2115
- hideImages: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
2116
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
2117
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "8", cy: "9", r: "1" }),
2118
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m3 17 5-5 4 4 3-3 6 5M2 2l20 20" })
2411
+ grayscale: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2412
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("circle", { cx: "8", cy: "12", r: "5" }),
2413
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("circle", { cx: "16", cy: "12", r: "5" }),
2414
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M8 7v10M16 7v10" })
2119
2415
  ] }),
2120
- hideVideos: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
2121
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "3", y: "5", width: "13", height: "14", rx: "2" }),
2122
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m16 10 5-3v10l-5-3M2 2l20 20" })
2416
+ linkHighlight: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "m10 14 4-4M8 16l-1 1a4 4 0 0 1-6-6l4-4a4 4 0 0 1 6 0M16 8l1-1a4 4 0 0 1 6 6l-4 4a4 4 0 0 1-6 0" }) }),
2417
+ highlightFocus: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2418
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M4 8V4h4M20 8V4h-4M4 16v4h4M20 16v4h-4" }),
2419
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("circle", { cx: "12", cy: "12", r: "3" })
2123
2420
  ] }),
2124
- bigCursor: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m5 3 14 11-7 1-3 6Z" }),
2125
- readingMask: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
2126
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
2127
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 9h18M3 15h18" }),
2128
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M6 12h12" })
2421
+ focusHighlight: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2422
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M4 8V4h4M20 8V4h-4M4 16v4h4M20 16v4h-4" }),
2423
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("circle", { cx: "12", cy: "12", r: "3" })
2129
2424
  ] }),
2130
- readingGuide: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
2131
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 5h18M3 10h12M3 19h18" }),
2132
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M2 15h20", strokeWidth: "3" })
2425
+ textAlign: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M3 5h18M3 10h12M3 15h18M3 20h12" }) }),
2426
+ fontFamily: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M4 7V4h16v3M9 20h6M12 4v16" }) }),
2427
+ hideImages: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2428
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
2429
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("circle", { cx: "8", cy: "9", r: "1" }),
2430
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "m3 17 5-5 4 4 3-3 6 5M2 2l20 20" })
2133
2431
  ] }),
2134
- reset: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 10a9 9 0 1 1 1 7M3 4v6h6" }) })
2432
+ hideVideos: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2433
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("rect", { x: "3", y: "5", width: "13", height: "14", rx: "2" }),
2434
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "m16 10 5-3v10l-5-3M2 2l20 20" })
2435
+ ] }),
2436
+ bigCursor: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "m5 3 14 11-7 1-3 6Z" }),
2437
+ readingMask: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2438
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
2439
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M3 9h18M3 15h18" }),
2440
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M6 12h12" })
2441
+ ] }),
2442
+ readingGuide: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2443
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M3 5h18M3 10h12M3 19h18" }),
2444
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M2 15h20", strokeWidth: "3" })
2445
+ ] }),
2446
+ reset: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M3 10a9 9 0 1 1 1 7M3 4v6h6" }) })
2135
2447
  };
2136
2448
  function FeatureIcon({ name }) {
2137
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2449
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2138
2450
  "svg",
2139
2451
  {
2140
2452
  className: "arap-icon",
@@ -2152,7 +2464,7 @@ function FeatureIcon({ name }) {
2152
2464
  }
2153
2465
 
2154
2466
  // src/features/FontSizeController.tsx
2155
- var import_jsx_runtime7 = require("react/jsx-runtime");
2467
+ var import_jsx_runtime8 = require("react/jsx-runtime");
2156
2468
  var FEATURE_KEY = "fontSize";
2157
2469
  var DEFAULT_VALUE = 100;
2158
2470
  var MIN = 50;
@@ -2196,19 +2508,19 @@ function FontSizeController({
2196
2508
  };
2197
2509
  const isMin = steps && steps.length > 0 ? value <= steps[0] : value <= MIN;
2198
2510
  const isMax = steps && steps.length > 0 ? value >= steps[steps.length - 1] : value >= MAX;
2199
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2511
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2200
2512
  "div",
2201
2513
  {
2202
2514
  className: "arap-feature arap-feature-stepper",
2203
2515
  role: "group",
2204
2516
  "aria-label": "Font Size",
2205
2517
  children: [
2206
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "arap-label", children: [
2207
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(FeatureIcon, { name: FEATURE_KEY }),
2208
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: "Font Size" })
2518
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "arap-label", children: [
2519
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FeatureIcon, { name: FEATURE_KEY }),
2520
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "Font Size" })
2209
2521
  ] }),
2210
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "arap-controls", children: [
2211
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2522
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "arap-controls", children: [
2523
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2212
2524
  "button",
2213
2525
  {
2214
2526
  className: "arap-btn-sm",
@@ -2219,11 +2531,11 @@ function FontSizeController({
2219
2531
  children: "\u2212"
2220
2532
  }
2221
2533
  ),
2222
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("output", { className: "arap-value", "aria-live": "polite", children: [
2534
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("output", { className: "arap-value", "aria-live": "polite", children: [
2223
2535
  Math.round(value),
2224
2536
  "%"
2225
2537
  ] }),
2226
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2538
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2227
2539
  "button",
2228
2540
  {
2229
2541
  className: "arap-btn-sm",
@@ -2241,7 +2553,7 @@ function FontSizeController({
2241
2553
  }
2242
2554
 
2243
2555
  // src/features/TextScaleController.tsx
2244
- var import_jsx_runtime8 = require("react/jsx-runtime");
2556
+ var import_jsx_runtime9 = require("react/jsx-runtime");
2245
2557
  var FEATURE_KEY2 = "fontScale";
2246
2558
  var DEFAULT_VALUE2 = 1;
2247
2559
  function TextScaleController({
@@ -2272,19 +2584,19 @@ function TextScaleController({
2272
2584
  }
2273
2585
  };
2274
2586
  const percentage = Math.round(value * 100);
2275
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2587
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2276
2588
  "div",
2277
2589
  {
2278
2590
  className: "arap-feature arap-feature-stepper",
2279
2591
  role: "group",
2280
2592
  "aria-label": label,
2281
2593
  children: [
2282
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "arap-label", children: [
2283
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FeatureIcon, { name: "fontSize" }),
2284
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: label })
2594
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "arap-label", children: [
2595
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(FeatureIcon, { name: "fontSize" }),
2596
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: label })
2285
2597
  ] }),
2286
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "arap-controls", children: [
2287
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2598
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "arap-controls", children: [
2599
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2288
2600
  "button",
2289
2601
  {
2290
2602
  className: "arap-btn-sm",
@@ -2295,11 +2607,11 @@ function TextScaleController({
2295
2607
  children: "\u2212"
2296
2608
  }
2297
2609
  ),
2298
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("output", { className: "arap-value", "aria-live": "polite", children: [
2610
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("output", { className: "arap-value", "aria-live": "polite", children: [
2299
2611
  percentage,
2300
2612
  "%"
2301
2613
  ] }),
2302
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2614
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2303
2615
  "button",
2304
2616
  {
2305
2617
  className: "arap-btn-sm",
@@ -2317,7 +2629,7 @@ function TextScaleController({
2317
2629
  }
2318
2630
 
2319
2631
  // src/features/LineHeightController.tsx
2320
- var import_jsx_runtime9 = require("react/jsx-runtime");
2632
+ var import_jsx_runtime10 = require("react/jsx-runtime");
2321
2633
  var FEATURE_KEY3 = "lineHeight";
2322
2634
  var DEFAULT_VALUE3 = 100;
2323
2635
  var MIN2 = 50;
@@ -2361,19 +2673,19 @@ function LineHeightController({
2361
2673
  };
2362
2674
  const isMin = steps && steps.length > 0 ? normalizedValue <= steps[0] : normalizedValue <= MIN2;
2363
2675
  const isMax = steps && steps.length > 0 ? normalizedValue >= steps[steps.length - 1] : normalizedValue >= MAX2;
2364
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2676
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
2365
2677
  "div",
2366
2678
  {
2367
2679
  className: "arap-feature arap-feature-stepper",
2368
2680
  role: "group",
2369
2681
  "aria-label": "Line Height",
2370
2682
  children: [
2371
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "arap-label", children: [
2372
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(FeatureIcon, { name: FEATURE_KEY3 }),
2373
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: "Line Height" })
2683
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "arap-label", children: [
2684
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(FeatureIcon, { name: FEATURE_KEY3 }),
2685
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: "Line Height" })
2374
2686
  ] }),
2375
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "arap-controls", children: [
2376
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2687
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "arap-controls", children: [
2688
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2377
2689
  "button",
2378
2690
  {
2379
2691
  className: "arap-btn-sm",
@@ -2384,11 +2696,11 @@ function LineHeightController({
2384
2696
  children: "\u2212"
2385
2697
  }
2386
2698
  ),
2387
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("output", { className: "arap-value", "aria-live": "polite", children: [
2699
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("output", { className: "arap-value", "aria-live": "polite", children: [
2388
2700
  Math.round(normalizedValue),
2389
2701
  "%"
2390
2702
  ] }),
2391
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2703
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2392
2704
  "button",
2393
2705
  {
2394
2706
  className: "arap-btn-sm",
@@ -2406,7 +2718,7 @@ function LineHeightController({
2406
2718
  }
2407
2719
 
2408
2720
  // src/features/LetterSpacingController.tsx
2409
- var import_jsx_runtime10 = require("react/jsx-runtime");
2721
+ var import_jsx_runtime11 = require("react/jsx-runtime");
2410
2722
  var FEATURE_KEY4 = "letterSpacing";
2411
2723
  var DEFAULT_VALUE4 = 0;
2412
2724
  var MIN3 = 0;
@@ -2450,19 +2762,19 @@ function LetterSpacingController({
2450
2762
  };
2451
2763
  const isMin = steps && steps.length > 0 ? value <= steps[0] : value <= min;
2452
2764
  const isMax = steps && steps.length > 0 ? value >= steps[steps.length - 1] : value >= max;
2453
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
2765
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2454
2766
  "div",
2455
2767
  {
2456
2768
  className: "arap-feature arap-feature-stepper",
2457
2769
  role: "group",
2458
2770
  "aria-label": "Letter Spacing",
2459
2771
  children: [
2460
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "arap-label", children: [
2461
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(FeatureIcon, { name: FEATURE_KEY4 }),
2462
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: "Letter Spacing" })
2772
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "arap-label", children: [
2773
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(FeatureIcon, { name: FEATURE_KEY4 }),
2774
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: "Letter Spacing" })
2463
2775
  ] }),
2464
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "arap-controls", children: [
2465
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2776
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "arap-controls", children: [
2777
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2466
2778
  "button",
2467
2779
  {
2468
2780
  className: "arap-btn-sm",
@@ -2473,11 +2785,11 @@ function LetterSpacingController({
2473
2785
  children: "\u2212"
2474
2786
  }
2475
2787
  ),
2476
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("output", { className: "arap-value", "aria-live": "polite", children: [
2788
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("output", { className: "arap-value", "aria-live": "polite", children: [
2477
2789
  value,
2478
2790
  "px"
2479
2791
  ] }),
2480
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2792
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2481
2793
  "button",
2482
2794
  {
2483
2795
  className: "arap-btn-sm",
@@ -2495,7 +2807,7 @@ function LetterSpacingController({
2495
2807
  }
2496
2808
 
2497
2809
  // src/features/WordSpacingController.tsx
2498
- var import_jsx_runtime11 = require("react/jsx-runtime");
2810
+ var import_jsx_runtime12 = require("react/jsx-runtime");
2499
2811
  var FEATURE_KEY5 = "wordSpacing";
2500
2812
  var DEFAULT_VALUE5 = 0;
2501
2813
  var MIN4 = 0;
@@ -2539,19 +2851,19 @@ function WordSpacingController({
2539
2851
  };
2540
2852
  const isMin = steps && steps.length > 0 ? value <= steps[0] : value <= min;
2541
2853
  const isMax = steps && steps.length > 0 ? value >= steps[steps.length - 1] : value >= max;
2542
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2854
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2543
2855
  "div",
2544
2856
  {
2545
2857
  className: "arap-feature arap-feature-stepper",
2546
2858
  role: "group",
2547
2859
  "aria-label": "Word Spacing",
2548
2860
  children: [
2549
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "arap-label", children: [
2550
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(FeatureIcon, { name: FEATURE_KEY5 }),
2551
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: "Word Spacing" })
2861
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "arap-label", children: [
2862
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FeatureIcon, { name: FEATURE_KEY5 }),
2863
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { children: "Word Spacing" })
2552
2864
  ] }),
2553
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "arap-controls", children: [
2554
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2865
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "arap-controls", children: [
2866
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2555
2867
  "button",
2556
2868
  {
2557
2869
  className: "arap-btn-sm",
@@ -2562,11 +2874,11 @@ function WordSpacingController({
2562
2874
  children: "\u2212"
2563
2875
  }
2564
2876
  ),
2565
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("output", { className: "arap-value", "aria-live": "polite", children: [
2877
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("output", { className: "arap-value", "aria-live": "polite", children: [
2566
2878
  value,
2567
2879
  "px"
2568
2880
  ] }),
2569
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2881
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2570
2882
  "button",
2571
2883
  {
2572
2884
  className: "arap-btn-sm",
@@ -2584,7 +2896,7 @@ function WordSpacingController({
2584
2896
  }
2585
2897
 
2586
2898
  // src/features/ParagraphSpacingController.tsx
2587
- var import_jsx_runtime12 = require("react/jsx-runtime");
2899
+ var import_jsx_runtime13 = require("react/jsx-runtime");
2588
2900
  var FEATURE_KEY6 = "paragraphSpacing";
2589
2901
  var DEFAULT_VALUE6 = 0;
2590
2902
  var MIN5 = 0;
@@ -2628,19 +2940,19 @@ function ParagraphSpacingController({
2628
2940
  };
2629
2941
  const isMin = steps && steps.length > 0 ? value <= steps[0] : value <= min;
2630
2942
  const isMax = steps && steps.length > 0 ? value >= steps[steps.length - 1] : value >= max;
2631
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2943
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
2632
2944
  "div",
2633
2945
  {
2634
2946
  className: "arap-feature arap-feature-stepper",
2635
2947
  role: "group",
2636
2948
  "aria-label": "Paragraph Spacing",
2637
2949
  children: [
2638
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "arap-label", children: [
2639
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FeatureIcon, { name: FEATURE_KEY6 }),
2640
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { children: "Paragraph Spacing" })
2950
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "arap-label", children: [
2951
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(FeatureIcon, { name: FEATURE_KEY6 }),
2952
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: "Paragraph Spacing" })
2641
2953
  ] }),
2642
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "arap-controls", children: [
2643
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2954
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "arap-controls", children: [
2955
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2644
2956
  "button",
2645
2957
  {
2646
2958
  className: "arap-btn-sm",
@@ -2651,11 +2963,11 @@ function ParagraphSpacingController({
2651
2963
  children: "\u2212"
2652
2964
  }
2653
2965
  ),
2654
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("output", { className: "arap-value", "aria-live": "polite", children: [
2966
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("output", { className: "arap-value", "aria-live": "polite", children: [
2655
2967
  value,
2656
2968
  "px"
2657
2969
  ] }),
2658
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2970
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2659
2971
  "button",
2660
2972
  {
2661
2973
  className: "arap-btn-sm",
@@ -2673,11 +2985,16 @@ function ParagraphSpacingController({
2673
2985
  }
2674
2986
 
2675
2987
  // src/features/ContrastController.tsx
2676
- var import_jsx_runtime13 = require("react/jsx-runtime");
2988
+ var import_react12 = require("react");
2989
+ var import_jsx_runtime14 = require("react/jsx-runtime");
2677
2990
  var FEATURE_KEY7 = "contrast";
2678
2991
  var DEFAULT_VALUE7 = 0;
2679
2992
  var LEVELS = [
2680
2993
  { label: "Off", value: 0 },
2994
+ { label: "Light", value: "light" },
2995
+ { label: "Dark", value: "dark" },
2996
+ { label: "High Contrast", value: "high" },
2997
+ { label: "Invert", value: "invert" },
2681
2998
  { label: "Reduced", value: "reduced" },
2682
2999
  { label: "Low", value: 1 },
2683
3000
  { label: "High", value: 2 },
@@ -2691,32 +3008,89 @@ function ContrastController() {
2691
3008
  FEATURE_KEY7,
2692
3009
  DEFAULT_VALUE7
2693
3010
  );
2694
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Contrast", children: [
2695
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "arap-label", children: [
2696
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(FeatureIcon, { name: FEATURE_KEY7 }),
2697
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: "Contrast" })
3011
+ const forcedColors = (0, import_react12.useSyncExternalStore)(
3012
+ subscribeForcedColors,
3013
+ isForcedColorsActive,
3014
+ () => false
3015
+ );
3016
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Contrast", children: [
3017
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("span", { className: "arap-label", children: [
3018
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FeatureIcon, { name: FEATURE_KEY7 }),
3019
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: "Contrast" })
2698
3020
  ] }),
2699
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "arap-segmented", children: LEVELS.map((level) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
2700
- "button",
2701
- {
2702
- className: `arap-segment ${value === level.value ? "arap-segment-active" : ""}`,
2703
- onClick: () => setValue(level.value),
2704
- "aria-pressed": value === level.value,
2705
- type: "button",
2706
- children: [
2707
- value === level.value && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2708
- level.label
2709
- ]
2710
- },
2711
- level.value
2712
- )) })
3021
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "arap-segmented", children: LEVELS.map((level) => {
3022
+ const isActive = value === level.value || level.value === 0 && (value === "off" || value === "original");
3023
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
3024
+ "button",
3025
+ {
3026
+ className: `arap-segment ${isActive ? "arap-segment-active" : ""}`,
3027
+ onClick: () => setValue(level.value),
3028
+ "aria-pressed": isActive,
3029
+ type: "button",
3030
+ children: [
3031
+ isActive && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3032
+ level.label
3033
+ ]
3034
+ },
3035
+ String(level.value)
3036
+ );
3037
+ }) }),
3038
+ forcedColors && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "arap-notice", role: "status", "aria-live": "polite", children: "Operating system high contrast (forced colors) is active." })
3039
+ ] });
3040
+ }
3041
+
3042
+ // src/features/ContrastModeController.tsx
3043
+ var import_react13 = require("react");
3044
+ var import_jsx_runtime15 = require("react/jsx-runtime");
3045
+ var FEATURE_KEY8 = "contrastMode";
3046
+ var DEFAULT_VALUE8 = "off";
3047
+ var OPTIONS = [
3048
+ { label: "Original", value: "off" },
3049
+ { label: "Light", value: "light" },
3050
+ { label: "Dark", value: "dark" },
3051
+ { label: "High", value: "high" },
3052
+ { label: "Invert", value: "invert" }
3053
+ ];
3054
+ function ContrastModeController() {
3055
+ const { value, setValue } = useAccessibility(
3056
+ FEATURE_KEY8,
3057
+ DEFAULT_VALUE8
3058
+ );
3059
+ const forcedColors = (0, import_react13.useSyncExternalStore)(
3060
+ subscribeForcedColors,
3061
+ isForcedColorsActive,
3062
+ () => false
3063
+ );
3064
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Contrast Mode", children: [
3065
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { className: "arap-label", children: [
3066
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FeatureIcon, { name: FEATURE_KEY8 }),
3067
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children: "Contrast Mode" })
3068
+ ] }),
3069
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "arap-segmented", children: OPTIONS.map((option) => {
3070
+ const isActive = value === option.value || option.value === "off" && (value === "original" || !value);
3071
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3072
+ "button",
3073
+ {
3074
+ className: `arap-segment ${isActive ? "arap-segment-active" : ""}`,
3075
+ onClick: () => setValue(option.value),
3076
+ "aria-pressed": isActive,
3077
+ type: "button",
3078
+ children: [
3079
+ isActive && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3080
+ option.label
3081
+ ]
3082
+ },
3083
+ option.value
3084
+ );
3085
+ }) }),
3086
+ forcedColors && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "arap-notice", role: "status", "aria-live": "polite", children: "Operating system high contrast (forced colors) is active." })
2713
3087
  ] });
2714
3088
  }
2715
3089
 
2716
3090
  // src/features/SaturationController.tsx
2717
- var import_jsx_runtime14 = require("react/jsx-runtime");
2718
- var FEATURE_KEY8 = "saturation";
2719
- var DEFAULT_VALUE8 = 0;
3091
+ var import_jsx_runtime16 = require("react/jsx-runtime");
3092
+ var FEATURE_KEY9 = "saturation";
3093
+ var DEFAULT_VALUE9 = 0;
2720
3094
  var LEVELS2 = [
2721
3095
  { label: "Off", value: 0 },
2722
3096
  { label: "Low", value: 1 },
@@ -2724,15 +3098,15 @@ var LEVELS2 = [
2724
3098
  ];
2725
3099
  function SaturationController() {
2726
3100
  const { value, setValue } = useAccessibility(
2727
- FEATURE_KEY8,
2728
- DEFAULT_VALUE8
3101
+ FEATURE_KEY9,
3102
+ DEFAULT_VALUE9
2729
3103
  );
2730
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Saturation", children: [
2731
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("span", { className: "arap-label", children: [
2732
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FeatureIcon, { name: FEATURE_KEY8 }),
2733
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: "Saturation" })
3104
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Saturation", children: [
3105
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { className: "arap-label", children: [
3106
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(FeatureIcon, { name: FEATURE_KEY9 }),
3107
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: "Saturation" })
2734
3108
  ] }),
2735
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "arap-segmented", children: LEVELS2.map((level) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
3109
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "arap-segmented", children: LEVELS2.map((level) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
2736
3110
  "button",
2737
3111
  {
2738
3112
  className: `arap-segment ${value === level.value ? "arap-segment-active" : ""}`,
@@ -2740,7 +3114,7 @@ function SaturationController() {
2740
3114
  "aria-pressed": value === level.value,
2741
3115
  type: "button",
2742
3116
  children: [
2743
- value === level.value && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3117
+ value === level.value && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2744
3118
  level.label
2745
3119
  ]
2746
3120
  },
@@ -2750,20 +3124,20 @@ function SaturationController() {
2750
3124
  }
2751
3125
 
2752
3126
  // src/features/InvertColorsController.tsx
2753
- var import_jsx_runtime15 = require("react/jsx-runtime");
2754
- var FEATURE_KEY9 = "invertColors";
2755
- var DEFAULT_VALUE9 = false;
3127
+ var import_jsx_runtime17 = require("react/jsx-runtime");
3128
+ var FEATURE_KEY10 = "invertColors";
3129
+ var DEFAULT_VALUE10 = false;
2756
3130
  function InvertColorsController() {
2757
3131
  const { value, setValue } = useAccessibility(
2758
- FEATURE_KEY9,
2759
- DEFAULT_VALUE9
3132
+ FEATURE_KEY10,
3133
+ DEFAULT_VALUE10
2760
3134
  );
2761
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Invert Colors", children: [
2762
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { className: "arap-label", children: [
2763
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FeatureIcon, { name: FEATURE_KEY9 }),
2764
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children: "Invert Colors" })
3135
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Invert Colors", children: [
3136
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { className: "arap-label", children: [
3137
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(FeatureIcon, { name: FEATURE_KEY10 }),
3138
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: "Invert Colors" })
2765
3139
  ] }),
2766
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3140
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2767
3141
  "button",
2768
3142
  {
2769
3143
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2771,27 +3145,27 @@ function InvertColorsController() {
2771
3145
  "aria-label": "Invert Colors",
2772
3146
  "aria-pressed": value,
2773
3147
  type: "button",
2774
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3148
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2775
3149
  }
2776
3150
  )
2777
3151
  ] });
2778
3152
  }
2779
3153
 
2780
3154
  // src/features/GrayscaleController.tsx
2781
- var import_jsx_runtime16 = require("react/jsx-runtime");
2782
- var FEATURE_KEY10 = "grayscale";
2783
- var DEFAULT_VALUE10 = false;
3155
+ var import_jsx_runtime18 = require("react/jsx-runtime");
3156
+ var FEATURE_KEY11 = "grayscale";
3157
+ var DEFAULT_VALUE11 = false;
2784
3158
  function GrayscaleController() {
2785
3159
  const { value, setValue } = useAccessibility(
2786
- FEATURE_KEY10,
2787
- DEFAULT_VALUE10
3160
+ FEATURE_KEY11,
3161
+ DEFAULT_VALUE11
2788
3162
  );
2789
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Grayscale", children: [
2790
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { className: "arap-label", children: [
2791
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(FeatureIcon, { name: FEATURE_KEY10 }),
2792
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: "Grayscale" })
3163
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Grayscale", children: [
3164
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "arap-label", children: [
3165
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(FeatureIcon, { name: FEATURE_KEY11 }),
3166
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: "Grayscale" })
2793
3167
  ] }),
2794
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3168
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2795
3169
  "button",
2796
3170
  {
2797
3171
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2799,27 +3173,27 @@ function GrayscaleController() {
2799
3173
  "aria-label": "Grayscale",
2800
3174
  "aria-pressed": value,
2801
3175
  type: "button",
2802
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3176
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2803
3177
  }
2804
3178
  )
2805
3179
  ] });
2806
3180
  }
2807
3181
 
2808
3182
  // src/features/LinkHighlightController.tsx
2809
- var import_jsx_runtime17 = require("react/jsx-runtime");
2810
- var FEATURE_KEY11 = "linkHighlight";
2811
- var DEFAULT_VALUE11 = false;
3183
+ var import_jsx_runtime19 = require("react/jsx-runtime");
3184
+ var FEATURE_KEY12 = "linkHighlight";
3185
+ var DEFAULT_VALUE12 = false;
2812
3186
  function LinkHighlightController() {
2813
3187
  const { value, setValue } = useAccessibility(
2814
- FEATURE_KEY11,
2815
- DEFAULT_VALUE11
3188
+ FEATURE_KEY12,
3189
+ DEFAULT_VALUE12
2816
3190
  );
2817
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Link Highlight", children: [
2818
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { className: "arap-label", children: [
2819
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(FeatureIcon, { name: FEATURE_KEY11 }),
2820
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: "Link Highlight" })
3191
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Link Highlight", children: [
3192
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: "arap-label", children: [
3193
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FeatureIcon, { name: FEATURE_KEY12 }),
3194
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: "Link Highlight" })
2821
3195
  ] }),
2822
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3196
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2823
3197
  "button",
2824
3198
  {
2825
3199
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2827,10 +3201,10 @@ function LinkHighlightController() {
2827
3201
  "aria-label": "Link Highlight",
2828
3202
  "aria-pressed": !!value,
2829
3203
  type: "button",
2830
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3204
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2831
3205
  }
2832
3206
  ),
2833
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "arap-segmented", children: ["yellow-on-black", "blue-on-yellow", "black-on-white"].map((mode) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3207
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "arap-segmented", children: ["yellow-on-black", "blue-on-yellow", "black-on-white"].map((mode) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2834
3208
  "button",
2835
3209
  {
2836
3210
  type: "button",
@@ -2838,7 +3212,7 @@ function LinkHighlightController() {
2838
3212
  "aria-pressed": value === mode,
2839
3213
  onClick: () => setValue(mode),
2840
3214
  children: [
2841
- value === mode && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3215
+ value === mode && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2842
3216
  mode.split("-").join(" ")
2843
3217
  ]
2844
3218
  },
@@ -2848,21 +3222,21 @@ function LinkHighlightController() {
2848
3222
  }
2849
3223
 
2850
3224
  // src/features/TextAlignController.tsx
2851
- var import_jsx_runtime18 = require("react/jsx-runtime");
2852
- var FEATURE_KEY12 = "textAlign";
2853
- var DEFAULT_VALUE12 = "default";
2854
- var OPTIONS = ["default", "left", "center", "right", "justify"];
3225
+ var import_jsx_runtime20 = require("react/jsx-runtime");
3226
+ var FEATURE_KEY13 = "textAlign";
3227
+ var DEFAULT_VALUE13 = "default";
3228
+ var OPTIONS2 = ["default", "left", "center", "right", "justify"];
2855
3229
  function TextAlignController() {
2856
3230
  const { value, setValue } = useAccessibility(
2857
- FEATURE_KEY12,
2858
- DEFAULT_VALUE12
3231
+ FEATURE_KEY13,
3232
+ DEFAULT_VALUE13
2859
3233
  );
2860
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Text Alignment", children: [
2861
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "arap-label", children: [
2862
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(FeatureIcon, { name: FEATURE_KEY12 }),
2863
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: "Text Alignment" })
3234
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Text Alignment", children: [
3235
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: "arap-label", children: [
3236
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FeatureIcon, { name: FEATURE_KEY13 }),
3237
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: "Text Alignment" })
2864
3238
  ] }),
2865
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "arap-segmented", children: OPTIONS.map((option) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
3239
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "arap-segmented", children: OPTIONS2.map((option) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2866
3240
  "button",
2867
3241
  {
2868
3242
  className: `arap-segment ${value === option ? "arap-segment-active" : ""}`,
@@ -2871,13 +3245,13 @@ function TextAlignController() {
2871
3245
  type: "button",
2872
3246
  style: { textTransform: "capitalize" },
2873
3247
  children: [
2874
- value === option && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3248
+ value === option && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2875
3249
  option
2876
3250
  ]
2877
3251
  },
2878
3252
  option
2879
3253
  )) }),
2880
- value === "justify" && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
3254
+ value === "justify" && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2881
3255
  "div",
2882
3256
  {
2883
3257
  className: "arap-notice arap-notice-warning",
@@ -2890,27 +3264,27 @@ function TextAlignController() {
2890
3264
  }
2891
3265
 
2892
3266
  // src/features/FontFamilyController.tsx
2893
- var import_jsx_runtime19 = require("react/jsx-runtime");
2894
- var FEATURE_KEY13 = "fontFamily";
2895
- var DEFAULT_VALUE13 = "default";
2896
- var OPTIONS2 = [
3267
+ var import_jsx_runtime21 = require("react/jsx-runtime");
3268
+ var FEATURE_KEY14 = "fontFamily";
3269
+ var DEFAULT_VALUE14 = "default";
3270
+ var OPTIONS3 = [
2897
3271
  { label: "Default", value: "default" },
2898
3272
  { label: "Legible", value: "legible" },
2899
3273
  { label: "Dyslexia", value: "dyslexia-option" }
2900
3274
  ];
2901
3275
  function FontFamilyController() {
2902
3276
  const { value, setValue } = useAccessibility(
2903
- FEATURE_KEY13,
2904
- DEFAULT_VALUE13
3277
+ FEATURE_KEY14,
3278
+ DEFAULT_VALUE14
2905
3279
  );
2906
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Font Family", children: [
2907
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: "arap-label", children: [
2908
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FeatureIcon, { name: FEATURE_KEY13 }),
2909
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: "Font Family" })
3280
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Font Family", children: [
3281
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: "arap-label", children: [
3282
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FeatureIcon, { name: FEATURE_KEY14 }),
3283
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Font Family" })
2910
3284
  ] }),
2911
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "arap-segmented", children: OPTIONS2.map((option) => {
3285
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "arap-segmented", children: OPTIONS3.map((option) => {
2912
3286
  const isActive = value === option.value || option.value === "default" && (value === "original" || !value || value === "default");
2913
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
3287
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2914
3288
  "button",
2915
3289
  {
2916
3290
  className: `arap-segment ${isActive ? "arap-segment-active" : ""}`,
@@ -2918,7 +3292,7 @@ function FontFamilyController() {
2918
3292
  "aria-pressed": isActive,
2919
3293
  type: "button",
2920
3294
  children: [
2921
- isActive && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3295
+ isActive && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2922
3296
  option.label
2923
3297
  ]
2924
3298
  },
@@ -2929,20 +3303,20 @@ function FontFamilyController() {
2929
3303
  }
2930
3304
 
2931
3305
  // src/features/HideImagesController.tsx
2932
- var import_jsx_runtime20 = require("react/jsx-runtime");
2933
- var FEATURE_KEY14 = "hideImages";
2934
- var DEFAULT_VALUE14 = false;
3306
+ var import_jsx_runtime22 = require("react/jsx-runtime");
3307
+ var FEATURE_KEY15 = "hideImages";
3308
+ var DEFAULT_VALUE15 = false;
2935
3309
  function HideImagesController() {
2936
3310
  const { value, setValue } = useAccessibility(
2937
- FEATURE_KEY14,
2938
- DEFAULT_VALUE14
3311
+ FEATURE_KEY15,
3312
+ DEFAULT_VALUE15
2939
3313
  );
2940
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Hide Images", children: [
2941
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: "arap-label", children: [
2942
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FeatureIcon, { name: FEATURE_KEY14 }),
2943
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: "Hide Images" })
3314
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Hide Images", children: [
3315
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "arap-label", children: [
3316
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FeatureIcon, { name: FEATURE_KEY15 }),
3317
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: "Hide Images" })
2944
3318
  ] }),
2945
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3319
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2946
3320
  "button",
2947
3321
  {
2948
3322
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2950,27 +3324,27 @@ function HideImagesController() {
2950
3324
  "aria-label": "Hide Images",
2951
3325
  "aria-pressed": value,
2952
3326
  type: "button",
2953
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3327
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2954
3328
  }
2955
3329
  )
2956
3330
  ] });
2957
3331
  }
2958
3332
 
2959
3333
  // src/features/HideVideosController.tsx
2960
- var import_jsx_runtime21 = require("react/jsx-runtime");
2961
- var FEATURE_KEY15 = "hideVideos";
2962
- var DEFAULT_VALUE15 = false;
3334
+ var import_jsx_runtime23 = require("react/jsx-runtime");
3335
+ var FEATURE_KEY16 = "hideVideos";
3336
+ var DEFAULT_VALUE16 = false;
2963
3337
  function HideVideosController() {
2964
3338
  const { value, setValue } = useAccessibility(
2965
- FEATURE_KEY15,
2966
- DEFAULT_VALUE15
3339
+ FEATURE_KEY16,
3340
+ DEFAULT_VALUE16
2967
3341
  );
2968
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Hide Videos", children: [
2969
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: "arap-label", children: [
2970
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FeatureIcon, { name: FEATURE_KEY15 }),
2971
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Hide Videos" })
3342
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Hide Videos", children: [
3343
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { className: "arap-label", children: [
3344
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(FeatureIcon, { name: FEATURE_KEY16 }),
3345
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children: "Hide Videos" })
2972
3346
  ] }),
2973
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3347
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2974
3348
  "button",
2975
3349
  {
2976
3350
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2978,27 +3352,27 @@ function HideVideosController() {
2978
3352
  "aria-label": "Hide Videos",
2979
3353
  "aria-pressed": value,
2980
3354
  type: "button",
2981
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3355
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2982
3356
  }
2983
3357
  )
2984
3358
  ] });
2985
3359
  }
2986
3360
 
2987
3361
  // src/features/BigCursorController.tsx
2988
- var import_jsx_runtime22 = require("react/jsx-runtime");
2989
- var FEATURE_KEY16 = "bigCursor";
2990
- var DEFAULT_VALUE16 = false;
3362
+ var import_jsx_runtime24 = require("react/jsx-runtime");
3363
+ var FEATURE_KEY17 = "bigCursor";
3364
+ var DEFAULT_VALUE17 = false;
2991
3365
  function BigCursorController() {
2992
3366
  const { value, setValue } = useAccessibility(
2993
- FEATURE_KEY16,
2994
- DEFAULT_VALUE16
3367
+ FEATURE_KEY17,
3368
+ DEFAULT_VALUE17
2995
3369
  );
2996
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Big Cursor", children: [
2997
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "arap-label", children: [
2998
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FeatureIcon, { name: FEATURE_KEY16 }),
2999
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: "Big Cursor" })
3370
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Big Cursor", children: [
3371
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { className: "arap-label", children: [
3372
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(FeatureIcon, { name: FEATURE_KEY17 }),
3373
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children: "Big Cursor" })
3000
3374
  ] }),
3001
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3375
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3002
3376
  "button",
3003
3377
  {
3004
3378
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -3006,27 +3380,27 @@ function BigCursorController() {
3006
3380
  "aria-label": "Big Cursor",
3007
3381
  "aria-pressed": value,
3008
3382
  type: "button",
3009
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3383
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3010
3384
  }
3011
3385
  )
3012
3386
  ] });
3013
3387
  }
3014
3388
 
3015
3389
  // src/features/ReadingMaskController.tsx
3016
- var import_jsx_runtime23 = require("react/jsx-runtime");
3017
- var FEATURE_KEY17 = "readingMask";
3018
- var DEFAULT_VALUE17 = false;
3390
+ var import_jsx_runtime25 = require("react/jsx-runtime");
3391
+ var FEATURE_KEY18 = "readingMask";
3392
+ var DEFAULT_VALUE18 = false;
3019
3393
  function ReadingMaskController() {
3020
3394
  const { value, setValue } = useAccessibility(
3021
- FEATURE_KEY17,
3022
- DEFAULT_VALUE17
3395
+ FEATURE_KEY18,
3396
+ DEFAULT_VALUE18
3023
3397
  );
3024
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Reading Mask", children: [
3025
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { className: "arap-label", children: [
3026
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(FeatureIcon, { name: FEATURE_KEY17 }),
3027
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children: "Reading Mask" })
3398
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Reading Mask", children: [
3399
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { className: "arap-label", children: [
3400
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FeatureIcon, { name: FEATURE_KEY18 }),
3401
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: "Reading Mask" })
3028
3402
  ] }),
3029
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3403
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3030
3404
  "button",
3031
3405
  {
3032
3406
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -3034,27 +3408,27 @@ function ReadingMaskController() {
3034
3408
  "aria-label": "Reading Mask",
3035
3409
  "aria-pressed": value,
3036
3410
  type: "button",
3037
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3411
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3038
3412
  }
3039
3413
  )
3040
3414
  ] });
3041
3415
  }
3042
3416
 
3043
3417
  // src/features/ReadingGuideController.tsx
3044
- var import_jsx_runtime24 = require("react/jsx-runtime");
3045
- var FEATURE_KEY18 = "readingGuide";
3046
- var DEFAULT_VALUE18 = false;
3418
+ var import_jsx_runtime26 = require("react/jsx-runtime");
3419
+ var FEATURE_KEY19 = "readingGuide";
3420
+ var DEFAULT_VALUE19 = false;
3047
3421
  function ReadingGuideController() {
3048
3422
  const { value, setValue } = useAccessibility(
3049
- FEATURE_KEY18,
3050
- DEFAULT_VALUE18
3423
+ FEATURE_KEY19,
3424
+ DEFAULT_VALUE19
3051
3425
  );
3052
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Reading Guide", children: [
3053
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { className: "arap-label", children: [
3054
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(FeatureIcon, { name: FEATURE_KEY18 }),
3055
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children: "Reading Guide" })
3426
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Reading Guide", children: [
3427
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "arap-label", children: [
3428
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(FeatureIcon, { name: FEATURE_KEY19 }),
3429
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: "Reading Guide" })
3056
3430
  ] }),
3057
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3431
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3058
3432
  "button",
3059
3433
  {
3060
3434
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -3062,35 +3436,64 @@ function ReadingGuideController() {
3062
3436
  "aria-label": "Reading Guide",
3063
3437
  "aria-pressed": value,
3064
3438
  type: "button",
3065
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3439
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3066
3440
  }
3067
3441
  )
3068
3442
  ] });
3069
3443
  }
3070
3444
 
3445
+ // src/features/HighlightFocusController.tsx
3446
+ var import_jsx_runtime27 = require("react/jsx-runtime");
3447
+ var FEATURE_KEY20 = "highlightFocus";
3448
+ var DEFAULT_VALUE20 = false;
3449
+ function HighlightFocusController() {
3450
+ const { value, setValue } = useAccessibility(
3451
+ FEATURE_KEY20,
3452
+ DEFAULT_VALUE20
3453
+ );
3454
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Highlight Focus", children: [
3455
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { className: "arap-label", children: [
3456
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(FeatureIcon, { name: FEATURE_KEY20 }),
3457
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children: "Highlight Focus" })
3458
+ ] }),
3459
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3460
+ "button",
3461
+ {
3462
+ className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
3463
+ onClick: () => setValue(!value),
3464
+ "aria-label": "Highlight Focus",
3465
+ "aria-pressed": Boolean(value),
3466
+ type: "button",
3467
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3468
+ }
3469
+ )
3470
+ ] });
3471
+ }
3472
+ var FocusHighlightController = HighlightFocusController;
3473
+
3071
3474
  // src/features/ResetController.tsx
3072
3475
  var import_react_dom2 = require("react-dom");
3073
- var import_react11 = require("react");
3074
- var import_jsx_runtime25 = require("react/jsx-runtime");
3476
+ var import_react14 = require("react");
3477
+ var import_jsx_runtime28 = require("react/jsx-runtime");
3075
3478
  function ResetController() {
3076
- const ctx = (0, import_react11.useContext)(AccessibilityContext);
3479
+ const ctx = (0, import_react14.useContext)(AccessibilityContext);
3077
3480
  if (!ctx) {
3078
3481
  throw new Error(
3079
3482
  "ResetController must be used within an <AccessibilityPlugin> provider."
3080
3483
  );
3081
3484
  }
3082
- const actionHost = (0, import_react11.useContext)(PanelActionsContext);
3485
+ const actionHost = (0, import_react14.useContext)(PanelActionsContext);
3083
3486
  const { resetAll } = ctx;
3084
3487
  const strings = resolveLocaleStrings(ctx.locale);
3085
- const button = /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "arap-feature arap-feature-reset", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("button", { className: "arap-reset-btn", onClick: resetAll, type: "button", children: [
3086
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FeatureIcon, { name: "reset" }),
3488
+ const button = /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "arap-feature arap-feature-reset", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("button", { className: "arap-reset-btn", onClick: resetAll, type: "button", children: [
3489
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(FeatureIcon, { name: "reset" }),
3087
3490
  strings.resetAll
3088
3491
  ] }) });
3089
3492
  return actionHost ? (0, import_react_dom2.createPortal)(button, actionHost) : button;
3090
3493
  }
3091
3494
 
3092
3495
  // src/core/controls/ToggleControl.tsx
3093
- var import_jsx_runtime26 = require("react/jsx-runtime");
3496
+ var import_jsx_runtime29 = require("react/jsx-runtime");
3094
3497
  function ToggleControl({
3095
3498
  id,
3096
3499
  label,
@@ -3112,12 +3515,12 @@ function ToggleControl({
3112
3515
  onChange(!checked);
3113
3516
  }
3114
3517
  };
3115
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3518
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3116
3519
  "div",
3117
3520
  {
3118
3521
  className: `arap-toggle-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
3119
3522
  style,
3120
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3523
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3121
3524
  "button",
3122
3525
  {
3123
3526
  id,
@@ -3131,7 +3534,7 @@ function ToggleControl({
3131
3534
  disabled: !isInteractive,
3132
3535
  onClick: handleClick,
3133
3536
  title: unavailableReason || description || toggleLabel,
3134
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3537
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3135
3538
  "span",
3136
3539
  {
3137
3540
  className: "arap-toggle-knob",
@@ -3147,8 +3550,8 @@ function ToggleControl({
3147
3550
  }
3148
3551
 
3149
3552
  // src/core/controls/ChoiceControl.tsx
3150
- var import_react12 = require("react");
3151
- var import_jsx_runtime27 = require("react/jsx-runtime");
3553
+ var import_react15 = require("react");
3554
+ var import_jsx_runtime30 = require("react/jsx-runtime");
3152
3555
  function ChoiceControl({
3153
3556
  id,
3154
3557
  label,
@@ -3162,12 +3565,12 @@ function ChoiceControl({
3162
3565
  style,
3163
3566
  orientation = "horizontal"
3164
3567
  }) {
3165
- const containerRef = (0, import_react12.useRef)(null);
3166
- const allOptions = (0, import_react12.useMemo)(
3568
+ const containerRef = (0, import_react15.useRef)(null);
3569
+ const allOptions = (0, import_react15.useMemo)(
3167
3570
  () => groups ? groups.flatMap((g) => g.options) : options || [],
3168
3571
  [groups, options]
3169
3572
  );
3170
- const handleKeyDown = (0, import_react12.useCallback)(
3573
+ const handleKeyDown = (0, import_react15.useCallback)(
3171
3574
  (e) => {
3172
3575
  if (disabled || allOptions.length === 0) return;
3173
3576
  const enabledOptions = allOptions.filter((opt) => !opt.disabled);
@@ -3204,7 +3607,7 @@ function ChoiceControl({
3204
3607
  const renderOptionButton = (opt) => {
3205
3608
  const isSelected = value === opt.value;
3206
3609
  const isOptionDisabled = disabled || Boolean(opt.disabled);
3207
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3610
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3208
3611
  "button",
3209
3612
  {
3210
3613
  type: "button",
@@ -3218,15 +3621,15 @@ function ChoiceControl({
3218
3621
  onClick: () => !isOptionDisabled && onChange(opt.value),
3219
3622
  title: opt.description,
3220
3623
  children: [
3221
- isSelected && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3222
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children: opt.label }),
3223
- opt.badge && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "arap-choice-badge", "aria-hidden": "true", children: opt.badge })
3624
+ isSelected && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3625
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: opt.label }),
3626
+ opt.badge && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "arap-choice-badge", "aria-hidden": "true", children: opt.badge })
3224
3627
  ]
3225
3628
  },
3226
3629
  String(opt.value)
3227
3630
  );
3228
3631
  };
3229
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3632
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3230
3633
  "div",
3231
3634
  {
3232
3635
  ref: containerRef,
@@ -3237,15 +3640,15 @@ function ChoiceControl({
3237
3640
  className: `arap-choice-control arap-segmented ${largeControls ? "arap-large-controls" : ""} ${className}`,
3238
3641
  style,
3239
3642
  onKeyDown: handleKeyDown,
3240
- children: groups ? groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3643
+ children: groups ? groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3241
3644
  "div",
3242
3645
  {
3243
3646
  className: "arap-choice-group",
3244
3647
  role: "group",
3245
3648
  "aria-label": group.label,
3246
3649
  children: [
3247
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "arap-choice-group-title", children: group.label }),
3248
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "arap-segmented", children: group.options.map(renderOptionButton) })
3650
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "arap-choice-group-title", children: group.label }),
3651
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "arap-segmented", children: group.options.map(renderOptionButton) })
3249
3652
  ]
3250
3653
  },
3251
3654
  group.label
@@ -3255,7 +3658,7 @@ function ChoiceControl({
3255
3658
  }
3256
3659
 
3257
3660
  // src/core/controls/StepperControl.tsx
3258
- var import_jsx_runtime28 = require("react/jsx-runtime");
3661
+ var import_jsx_runtime31 = require("react/jsx-runtime");
3259
3662
  function StepperControl({
3260
3663
  id,
3261
3664
  label,
@@ -3285,15 +3688,15 @@ function StepperControl({
3285
3688
  onChange(Math.min(max, Number((value + step).toFixed(2))));
3286
3689
  }
3287
3690
  };
3288
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
3691
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3289
3692
  "div",
3290
3693
  {
3291
3694
  id,
3292
3695
  className: `arap-stepper-control-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
3293
3696
  style,
3294
3697
  children: [
3295
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "arap-controls", children: [
3296
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3698
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "arap-controls", children: [
3699
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3297
3700
  "button",
3298
3701
  {
3299
3702
  type: "button",
@@ -3304,8 +3707,8 @@ function StepperControl({
3304
3707
  children: "\u2212"
3305
3708
  }
3306
3709
  ),
3307
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("output", { className: "arap-value", "aria-live": "polite", children: displayValue }),
3308
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3710
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("output", { className: "arap-value", "aria-live": "polite", children: displayValue }),
3711
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3309
3712
  "button",
3310
3713
  {
3311
3714
  type: "button",
@@ -3317,7 +3720,7 @@ function StepperControl({
3317
3720
  }
3318
3721
  )
3319
3722
  ] }),
3320
- showSlider && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "arap-slider-container", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3723
+ showSlider && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "arap-slider-container", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3321
3724
  "input",
3322
3725
  {
3323
3726
  type: "range",
@@ -3341,7 +3744,7 @@ function StepperControl({
3341
3744
  }
3342
3745
 
3343
3746
  // src/core/controls/FeatureCard.tsx
3344
- var import_jsx_runtime29 = require("react/jsx-runtime");
3747
+ var import_jsx_runtime32 = require("react/jsx-runtime");
3345
3748
  function FeatureCard({
3346
3749
  id,
3347
3750
  featureKey,
@@ -3360,7 +3763,7 @@ function FeatureCard({
3360
3763
  largeControls = false
3361
3764
  }) {
3362
3765
  const cardTitle = typeof title === "string" ? title : void 0;
3363
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
3766
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
3364
3767
  "div",
3365
3768
  {
3366
3769
  id,
@@ -3369,27 +3772,27 @@ function FeatureCard({
3369
3772
  className: `arap-feature arap-feature-card ${status !== "idle" ? `arap-feature-${status}` : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
3370
3773
  style,
3371
3774
  children: [
3372
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "arap-card-header", children: [
3373
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("span", { className: "arap-label", children: [
3374
- icon ?? (featureKey ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(FeatureIcon, { name: featureKey }) : null),
3375
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "arap-card-title", children: title })
3775
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "arap-card-header", children: [
3776
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "arap-label", children: [
3777
+ icon ?? (featureKey ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(FeatureIcon, { name: featureKey }) : null),
3778
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "arap-card-title", children: title })
3376
3779
  ] }),
3377
- statusBadge && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "arap-status-badge", "aria-hidden": "true", children: statusBadge })
3780
+ statusBadge && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "arap-status-badge", "aria-hidden": "true", children: statusBadge })
3378
3781
  ] }),
3379
- description && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "arap-card-desc", children: description }),
3380
- status === "error" && errorMessage && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "arap-card-alert arap-card-error", role: "alert", children: [
3381
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3382
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { children: errorMessage })
3782
+ description && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "arap-card-desc", children: description }),
3783
+ status === "error" && errorMessage && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "arap-card-alert arap-card-error", role: "alert", children: [
3784
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3785
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: errorMessage })
3383
3786
  ] }),
3384
- status === "unavailable" && unavailableMessage && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "arap-card-alert arap-card-unavailable", role: "status", children: [
3385
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u2139\uFE0F" }),
3386
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { children: unavailableMessage })
3787
+ status === "unavailable" && unavailableMessage && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "arap-card-alert arap-card-unavailable", role: "status", children: [
3788
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u2139\uFE0F" }),
3789
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: unavailableMessage })
3387
3790
  ] }),
3388
- status === "permission-required" && permissionMessage && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "arap-card-alert arap-card-permission", role: "status", children: [
3389
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u{1F512}" }),
3390
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "arap-permission-content", children: [
3391
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { children: permissionMessage }),
3392
- onRequestPermission && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3791
+ status === "permission-required" && permissionMessage && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "arap-card-alert arap-card-permission", role: "status", children: [
3792
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u{1F512}" }),
3793
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "arap-permission-content", children: [
3794
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: permissionMessage }),
3795
+ onRequestPermission && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3393
3796
  "button",
3394
3797
  {
3395
3798
  type: "button",
@@ -3400,14 +3803,14 @@ function FeatureCard({
3400
3803
  )
3401
3804
  ] })
3402
3805
  ] }),
3403
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "arap-card-content", children })
3806
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "arap-card-content", children })
3404
3807
  ]
3405
3808
  }
3406
3809
  );
3407
3810
  }
3408
3811
 
3409
3812
  // src/core/controls/FeatureStatusState.tsx
3410
- var import_jsx_runtime30 = require("react/jsx-runtime");
3813
+ var import_jsx_runtime33 = require("react/jsx-runtime");
3411
3814
  function SearchCount({
3412
3815
  totalCount,
3413
3816
  matchedCount,
@@ -3416,7 +3819,7 @@ function SearchCount({
3416
3819
  style
3417
3820
  }) {
3418
3821
  const text = query ? `Showing ${matchedCount} of ${totalCount} tools matching "${query}"` : `Showing all ${totalCount} tools`;
3419
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3822
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3420
3823
  "div",
3421
3824
  {
3422
3825
  role: "status",
@@ -3436,17 +3839,17 @@ function EmptyState({
3436
3839
  className = "",
3437
3840
  style
3438
3841
  }) {
3439
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3842
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
3440
3843
  "div",
3441
3844
  {
3442
3845
  role: "status",
3443
3846
  className: `arap-empty-state ${className}`,
3444
3847
  style,
3445
3848
  children: [
3446
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "arap-empty-icon", "aria-hidden": "true", children: icon ?? "\u{1F50D}" }),
3447
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h3", { className: "arap-empty-title", children: title }),
3448
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "arap-empty-desc", children: description }),
3449
- onAction && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { type: "button", className: "arap-empty-btn", onClick: onAction, children: actionLabel })
3849
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "arap-empty-icon", "aria-hidden": "true", children: icon ?? "\u{1F50D}" }),
3850
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("h3", { className: "arap-empty-title", children: title }),
3851
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "arap-empty-desc", children: description }),
3852
+ onAction && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("button", { type: "button", className: "arap-empty-btn", onClick: onAction, children: actionLabel })
3450
3853
  ]
3451
3854
  }
3452
3855
  );
@@ -3459,18 +3862,18 @@ function ErrorState({
3459
3862
  className = "",
3460
3863
  style
3461
3864
  }) {
3462
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3865
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
3463
3866
  "div",
3464
3867
  {
3465
3868
  role: "alert",
3466
3869
  className: `arap-error-state arap-card-alert arap-card-error ${className}`,
3467
3870
  style,
3468
3871
  children: [
3469
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3470
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "arap-error-content", children: [
3471
- title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h4", { className: "arap-error-title", children: title }),
3472
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "arap-error-message", children: message }),
3473
- onRetry && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { type: "button", className: "arap-retry-btn", onClick: onRetry, children: retryLabel })
3872
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3873
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "arap-error-content", children: [
3874
+ title && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("h4", { className: "arap-error-title", children: title }),
3875
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "arap-error-message", children: message }),
3876
+ onRetry && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("button", { type: "button", className: "arap-retry-btn", onClick: onRetry, children: retryLabel })
3474
3877
  ] })
3475
3878
  ]
3476
3879
  }
@@ -3478,7 +3881,7 @@ function ErrorState({
3478
3881
  }
3479
3882
 
3480
3883
  // src/core/controls/ProfilePreviewCard.tsx
3481
- var import_jsx_runtime31 = require("react/jsx-runtime");
3884
+ var import_jsx_runtime34 = require("react/jsx-runtime");
3482
3885
  function ProfilePreviewCard({
3483
3886
  profile,
3484
3887
  isActive,
@@ -3528,7 +3931,7 @@ function ProfilePreviewCard({
3528
3931
  if (val === null || val === void 0) return "Original";
3529
3932
  return String(val);
3530
3933
  };
3531
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3934
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
3532
3935
  "div",
3533
3936
  {
3534
3937
  role: "group",
@@ -3536,10 +3939,10 @@ function ProfilePreviewCard({
3536
3939
  className: `arap-profile-card ${isActive ? "arap-profile-card-active" : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
3537
3940
  style,
3538
3941
  children: [
3539
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "arap-profile-header", children: [
3540
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "arap-profile-title-row", children: [
3541
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("h4", { className: "arap-profile-title", children: profile.label }),
3542
- isActive && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3942
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "arap-profile-header", children: [
3943
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "arap-profile-title-row", children: [
3944
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h4", { className: "arap-profile-title", children: profile.label }),
3945
+ isActive && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3543
3946
  "span",
3544
3947
  {
3545
3948
  className: "arap-profile-active-badge",
@@ -3548,14 +3951,14 @@ function ProfilePreviewCard({
3548
3951
  }
3549
3952
  )
3550
3953
  ] }),
3551
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "arap-profile-desc", children: profile.description })
3954
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "arap-profile-desc", children: profile.description })
3552
3955
  ] }),
3553
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "arap-profile-affected", children: [
3554
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "arap-profile-affected-label", children: "Affected settings:" }),
3555
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "arap-profile-chips", children: affectedKeys.map((key) => {
3956
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "arap-profile-affected", children: [
3957
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "arap-profile-affected-label", children: "Affected settings:" }),
3958
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "arap-profile-chips", children: affectedKeys.map((key) => {
3556
3959
  const val = profile.settings[key];
3557
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "arap-profile-chip", children: [
3558
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("strong", { children: [
3960
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "arap-profile-chip", children: [
3961
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("strong", { children: [
3559
3962
  formatKeyName(key),
3560
3963
  ":"
3561
3964
  ] }),
@@ -3564,7 +3967,7 @@ function ProfilePreviewCard({
3564
3967
  ] }, key);
3565
3968
  }) })
3566
3969
  ] }),
3567
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "arap-profile-actions", children: isActive ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3970
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "arap-profile-actions", children: isActive ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3568
3971
  "button",
3569
3972
  {
3570
3973
  type: "button",
@@ -3573,7 +3976,7 @@ function ProfilePreviewCard({
3573
3976
  "aria-label": `Revert ${profile.label} profile`,
3574
3977
  children: "Revert to custom settings"
3575
3978
  }
3576
- ) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3979
+ ) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3577
3980
  "button",
3578
3981
  {
3579
3982
  type: "button",
@@ -3594,8 +3997,12 @@ function ProfilePreviewCard({
3594
3997
  AccessibilityList,
3595
3998
  AccessibilityPlugin,
3596
3999
  BigCursorController,
4000
+ CONTRAST_MODES,
4001
+ CONTRAST_PALETTES,
4002
+ CONTRAST_PROTECTED_SELECTOR,
3597
4003
  ChoiceControl,
3598
4004
  ContrastController,
4005
+ ContrastModeController,
3599
4006
  DEFAULT_PREFERENCES,
3600
4007
  DYSLEXIA_FONT_STACK,
3601
4008
  EmptyState,
@@ -3603,11 +4010,13 @@ function ProfilePreviewCard({
3603
4010
  FONT_FAMILY_PRESETS,
3604
4011
  FONT_FAMILY_PROTECTED_SELECTOR,
3605
4012
  FeatureCard,
4013
+ FocusHighlightController,
3606
4014
  FontFamilyController,
3607
4015
  FontSizeController,
3608
4016
  GrayscaleController,
3609
4017
  HideImagesController,
3610
4018
  HideVideosController,
4019
+ HighlightFocusController,
3611
4020
  InvertColorsController,
3612
4021
  LEGIBLE_FONT_STACK,
3613
4022
  LINE_HEIGHT_RATIOS,
@@ -3623,6 +4032,7 @@ function ProfilePreviewCard({
3623
4032
  ResetController,
3624
4033
  SaturationController,
3625
4034
  SearchCount,
4035
+ SkipToMainLink,
3626
4036
  StepperControl,
3627
4037
  TEXT_ALIGN_BLOCK_SELECTOR,
3628
4038
  TEXT_SCALE_PROTECTED_SELECTOR,
@@ -3634,7 +4044,10 @@ function ProfilePreviewCard({
3634
4044
  WordSpacingController,
3635
4045
  createInitialPreferencesState,
3636
4046
  enLocale,
4047
+ findMainLandmark,
3637
4048
  getScriptSpacingConstraints,
4049
+ isForcedColorsActive,
4050
+ isProtectedFromContrast,
3638
4051
  isProtectedFromFontFamily,
3639
4052
  isProtectedFromTextAlign,
3640
4053
  isProtectedFromTextScale,