accessibility-plugin-react 2.4.0 → 2.5.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
@@ -38,10 +38,13 @@ __export(index_exports, {
38
38
  HideImagesController: () => HideImagesController,
39
39
  HideVideosController: () => HideVideosController,
40
40
  InvertColorsController: () => InvertColorsController,
41
+ LINE_HEIGHT_RATIOS: () => LINE_HEIGHT_RATIOS,
42
+ LINE_HEIGHT_STEPS: () => LINE_HEIGHT_STEPS,
41
43
  LetterSpacingController: () => LetterSpacingController,
42
44
  LineHeightController: () => LineHeightController,
43
45
  LinkHighlightController: () => LinkHighlightController,
44
46
  PROFILE_DEFINITIONS: () => PROFILE_DEFINITIONS,
47
+ ParagraphSpacingController: () => ParagraphSpacingController,
45
48
  ProfilePreviewCard: () => ProfilePreviewCard,
46
49
  ReadingGuideController: () => ReadingGuideController,
47
50
  ReadingMaskController: () => ReadingMaskController,
@@ -51,12 +54,16 @@ __export(index_exports, {
51
54
  StepperControl: () => StepperControl,
52
55
  TEXT_SCALE_PROTECTED_SELECTOR: () => TEXT_SCALE_PROTECTED_SELECTOR,
53
56
  TEXT_SCALE_STEPS: () => TEXT_SCALE_STEPS,
57
+ TEXT_SPACING_EXCLUDED_SELECTOR: () => TEXT_SPACING_EXCLUDED_SELECTOR,
54
58
  TextAlignController: () => TextAlignController,
55
59
  TextScaleController: () => TextScaleController,
56
60
  ToggleControl: () => ToggleControl,
61
+ WordSpacingController: () => WordSpacingController,
57
62
  createInitialPreferencesState: () => createInitialPreferencesState,
58
63
  enLocale: () => enLocale,
64
+ getScriptSpacingConstraints: () => getScriptSpacingConstraints,
59
65
  isProtectedFromTextScale: () => isProtectedFromTextScale,
66
+ isProtectedFromTextSpacing: () => isProtectedFromTextSpacing,
60
67
  isRtlLocale: () => isRtlLocale,
61
68
  normalizePreferenceValue: () => normalizePreferenceValue,
62
69
  normalizePreferences: () => normalizePreferences,
@@ -91,7 +98,7 @@ function styleInject(css, { insertAt } = {}) {
91
98
  }
92
99
 
93
100
  // src/styles/tailwind.css
94
- 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-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');
101
+ 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');
95
102
 
96
103
  // src/core/AccessibilityPlugin.tsx
97
104
  var import_react4 = require("react");
@@ -301,12 +308,31 @@ function createPreferenceStore(key, persist, storageMode) {
301
308
  var numberIn = (min, max) => (v) => typeof v === "number" && Number.isFinite(v) && v >= min && v <= max;
302
309
  var oneOf = (...values) => (v) => values.includes(v);
303
310
  var TEXT_SCALE_STEPS = [1, 1.125, 1.25, 1.5, 2];
311
+ var LINE_HEIGHT_STEPS = [100, 150, 175, 200];
312
+ var LINE_HEIGHT_RATIOS = [1, 1.5, 1.75, 2];
304
313
  var builtins = Object.assign(/* @__PURE__ */ Object.create(null), {
305
314
  fontSize: { defaultValue: 100, validate: numberIn(50, 200) },
306
315
  fontScale: { defaultValue: 1, validate: numberIn(0.5, 2) },
307
316
  textScale: { defaultValue: 1, validate: numberIn(0.5, 2) },
308
- lineHeight: { defaultValue: 100, validate: numberIn(50, 200) },
309
- letterSpacing: { defaultValue: 0, validate: numberIn(0, 10) },
317
+ lineHeight: {
318
+ defaultValue: 100,
319
+ validate: (v) => typeof v === "number" && Number.isFinite(v) && (v >= 0.5 && v <= 2.5 || v >= 50 && v <= 200)
320
+ },
321
+ letterSpacing: { defaultValue: 0, validate: numberIn(0, 20) },
322
+ wordSpacing: { defaultValue: 0, validate: numberIn(0, 20) },
323
+ paragraphSpacing: { defaultValue: 0, validate: numberIn(0, 64) },
324
+ letterSpacingEm: {
325
+ defaultValue: null,
326
+ validate: (v) => v === null || numberIn(0, 1)(v)
327
+ },
328
+ wordSpacingEm: {
329
+ defaultValue: null,
330
+ validate: (v) => v === null || numberIn(0, 1)(v)
331
+ },
332
+ paragraphSpacingEm: {
333
+ defaultValue: null,
334
+ validate: (v) => v === null || numberIn(0, 2)(v)
335
+ },
310
336
  contrast: {
311
337
  defaultValue: 0,
312
338
  validate: oneOf(
@@ -437,6 +463,143 @@ function isProtectedFromTextScale(element) {
437
463
  }
438
464
  return false;
439
465
  }
466
+ var TEXT_SPACING_EXCLUDED_SELECTOR = [
467
+ "input",
468
+ "textarea",
469
+ "select",
470
+ "select *",
471
+ "option",
472
+ "optgroup",
473
+ "button",
474
+ "button *",
475
+ "datalist",
476
+ "output",
477
+ "progress",
478
+ "meter",
479
+ "label",
480
+ "label *",
481
+ "legend",
482
+ "legend *",
483
+ '[role="button"]',
484
+ '[role="button"] *',
485
+ '[role="checkbox"]',
486
+ '[role="combobox"]',
487
+ '[role="menuitem"]',
488
+ '[role="tab"]',
489
+ "pre",
490
+ "pre *",
491
+ "code",
492
+ "kbd",
493
+ "samp",
494
+ "var",
495
+ "table",
496
+ "table *",
497
+ "thead",
498
+ "thead *",
499
+ "tbody",
500
+ "tbody *",
501
+ "tfoot",
502
+ "tfoot *",
503
+ "tr",
504
+ "tr *",
505
+ "th",
506
+ "th *",
507
+ "td",
508
+ "td *",
509
+ "caption",
510
+ "colgroup",
511
+ "col",
512
+ '[role="table"]',
513
+ '[role="table"] *',
514
+ '[role="grid"]',
515
+ '[role="grid"] *',
516
+ '[role="row"]',
517
+ '[role="row"] *',
518
+ '[role="cell"]',
519
+ '[role="cell"] *',
520
+ '[role="columnheader"]',
521
+ '[role="columnheader"] *',
522
+ '[role="rowheader"]',
523
+ '[role="rowheader"] *',
524
+ "svg",
525
+ "svg *",
526
+ "[data-icon]",
527
+ "[data-icon] *",
528
+ 'i[class*="icon"]',
529
+ 'span[class*="icon"]',
530
+ 'i[class*="fa-"]',
531
+ 'span[class*="fa-"]',
532
+ 'i[class*="material-symbols"]',
533
+ 'span[class*="material-symbols"]',
534
+ 'i[class*="lucide"]',
535
+ 'span[class*="lucide"]',
536
+ "[data-arap-ignore]",
537
+ "[data-arap-ignore] *",
538
+ "[data-arap-exempt]",
539
+ "[data-arap-exempt] *",
540
+ "[data-arap-ui]",
541
+ "[data-arap-ui] *",
542
+ ".arap-root",
543
+ ".arap-root *"
544
+ ].join(", ");
545
+ function isProtectedFromTextSpacing(element) {
546
+ try {
547
+ if (element.matches(EXCLUDED)) return true;
548
+ if (element.matches(TEXT_SPACING_EXCLUDED_SELECTOR)) return true;
549
+ if (element.closest(
550
+ "pre, button, label, legend, select, textarea, [role='button'], table, [role='table'], [role='grid'], [data-arap-ignore], [data-arap-exempt], [data-arap-ui], .arap-root"
551
+ )) {
552
+ return true;
553
+ }
554
+ } catch {
555
+ return false;
556
+ }
557
+ return false;
558
+ }
559
+ var ARABIC_SCRIPT_REGEX = /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/;
560
+ var INDIC_SCRIPT_REGEX = /[\u0900-\u0DFF]/;
561
+ var CURSIVE_LANG_REGEX = /^(ar|fa|ur|ug|dv|ps|ku)($|-)/i;
562
+ var INDIC_LANG_REGEX = /^(si|ta|hi|bn|te|kn|ml|gu|pa|mr|ne|sa)($|-)/i;
563
+ function getScriptSpacingConstraints(element) {
564
+ const lang = element.closest("[lang]")?.getAttribute("lang") || document.documentElement.lang || "";
565
+ const dir = element.closest("[dir]")?.getAttribute("dir") || document.documentElement.dir || "";
566
+ if (CURSIVE_LANG_REGEX.test(lang) || dir.toLowerCase() === "rtl") {
567
+ return {
568
+ allowLetterSpacing: false,
569
+ maxLetterSpacingPx: 0,
570
+ script: "cursive"
571
+ };
572
+ }
573
+ if (INDIC_LANG_REGEX.test(lang)) {
574
+ return {
575
+ allowLetterSpacing: true,
576
+ maxLetterSpacingPx: 1,
577
+ script: "indic"
578
+ };
579
+ }
580
+ const text = element.textContent || "";
581
+ if (text.length > 0) {
582
+ if (ARABIC_SCRIPT_REGEX.test(text)) {
583
+ return {
584
+ allowLetterSpacing: false,
585
+ maxLetterSpacingPx: 0,
586
+ script: "cursive"
587
+ };
588
+ }
589
+ if (INDIC_SCRIPT_REGEX.test(text)) {
590
+ return {
591
+ allowLetterSpacing: true,
592
+ maxLetterSpacingPx: 1,
593
+ script: "indic"
594
+ };
595
+ }
596
+ }
597
+ return {
598
+ allowLetterSpacing: true,
599
+ maxLetterSpacingPx: Infinity,
600
+ script: "standard"
601
+ };
602
+ }
440
603
  function applyPage(values) {
441
604
  const undo = [];
442
605
  function set(element, property, value) {
@@ -458,19 +621,46 @@ function applyPage(values) {
458
621
  const fontScaleValue = typeof values.fontScale === "number" && values.fontScale !== 1 ? values.fontScale : typeof values.textScale === "number" && values.textScale !== 1 ? values.textScale : void 0;
459
622
  const fontSizeScale = typeof values.fontSize === "number" && values.fontSize !== 100 ? values.fontSize / 100 : void 0;
460
623
  const font = fontScaleValue ?? fontSizeScale ?? 1;
461
- const line = Number(values.lineHeight ?? 100) / 100;
462
- const measurements = font !== 1 || line !== 1 ? elements.filter((el) => !isProtectedFromTextScale(el)).map((el) => {
463
- const computed = getComputedStyle(el);
464
- return {
465
- el,
466
- font: parseFloat(computed.fontSize) || 16,
467
- line: parseFloat(computed.lineHeight) || (parseFloat(computed.fontSize) || 16) * 1.2
468
- };
469
- }) : [];
470
- for (const measured of measurements) {
471
- if (font !== 1) set(measured.el, "font-size", `${measured.font * font}px`);
472
- if (line !== 1 || font !== 1)
473
- set(measured.el, "line-height", `${measured.line * line * font}px`);
624
+ const rawLineHeight = typeof values.lineHeight === "number" ? values.lineHeight : 100;
625
+ const lineRatio = rawLineHeight <= 2.5 ? rawLineHeight : rawLineHeight / 100;
626
+ const fontActive = font !== 1;
627
+ const lineActive = lineRatio !== 1;
628
+ if (fontActive || lineActive) {
629
+ const measurements = elements.filter(
630
+ (el) => !isProtectedFromTextScale(el) || !isProtectedFromTextSpacing(el)
631
+ ).map((el) => {
632
+ const computed = getComputedStyle(el);
633
+ return {
634
+ el,
635
+ protectScale: isProtectedFromTextScale(el),
636
+ protectSpacing: isProtectedFromTextSpacing(el),
637
+ font: parseFloat(computed.fontSize) || 16,
638
+ line: parseFloat(computed.lineHeight) || (parseFloat(computed.fontSize) || 16) * 1.2
639
+ };
640
+ });
641
+ for (const measured of measurements) {
642
+ if (fontActive && !measured.protectScale) {
643
+ set(measured.el, "font-size", `${measured.font * font}px`);
644
+ }
645
+ if (measured.protectSpacing) {
646
+ if (fontActive && !measured.protectScale) {
647
+ set(measured.el, "line-height", `${measured.line * font}px`);
648
+ } else if (lineActive) {
649
+ const prev = measured.el.style.getPropertyValue("line-height");
650
+ if (!prev) {
651
+ set(measured.el, "line-height", `${measured.line}px`);
652
+ }
653
+ }
654
+ } else {
655
+ if (lineActive || fontActive) {
656
+ set(
657
+ measured.el,
658
+ "line-height",
659
+ `${measured.line * lineRatio * font}px`
660
+ );
661
+ }
662
+ }
663
+ }
474
664
  }
475
665
  const filter = composeFilter(values);
476
666
  for (const el of Array.from(document.body.children)) {
@@ -488,9 +678,76 @@ function applyPage(values) {
488
678
  const base = computed.filter;
489
679
  set(el, "filter", `${base && base !== "none" ? base + " " : ""}${filter}`);
490
680
  }
681
+ const letterSpacingVal = typeof values.letterSpacing === "number" && values.letterSpacing > 0 ? values.letterSpacing : 0;
682
+ const letterSpacingEmVal = typeof values.letterSpacingEm === "number" && values.letterSpacingEm > 0 ? values.letterSpacingEm : null;
683
+ if (letterSpacingVal > 0 || letterSpacingEmVal !== null) {
684
+ for (const el of elements) {
685
+ if (isProtectedFromTextSpacing(el)) {
686
+ if (el.matches(
687
+ "table, [role='table'], td, th, pre, code, kbd, samp, var, button, input, select, textarea, [data-arap-ui]"
688
+ )) {
689
+ const previous = el.style.getPropertyValue("letter-spacing");
690
+ if (!previous) {
691
+ set(el, "letter-spacing", "normal");
692
+ }
693
+ }
694
+ continue;
695
+ }
696
+ const scriptLimits = getScriptSpacingConstraints(el);
697
+ if (!scriptLimits.allowLetterSpacing) {
698
+ const previous = el.style.getPropertyValue("letter-spacing");
699
+ if (!previous) {
700
+ set(el, "letter-spacing", "normal");
701
+ }
702
+ continue;
703
+ }
704
+ let targetSpacing;
705
+ if (letterSpacingEmVal !== null) {
706
+ const clampedEm = scriptLimits.maxLetterSpacingPx === 1 ? Math.min(letterSpacingEmVal, 0.05) : letterSpacingEmVal;
707
+ targetSpacing = `${clampedEm}em`;
708
+ } else {
709
+ const clampedPx = Math.min(
710
+ letterSpacingVal,
711
+ scriptLimits.maxLetterSpacingPx
712
+ );
713
+ targetSpacing = `${clampedPx}px`;
714
+ }
715
+ set(el, "letter-spacing", targetSpacing);
716
+ }
717
+ }
718
+ const wordSpacingVal = typeof values.wordSpacing === "number" && values.wordSpacing > 0 ? values.wordSpacing : 0;
719
+ const wordSpacingEmVal = typeof values.wordSpacingEm === "number" && values.wordSpacingEm > 0 ? values.wordSpacingEm : null;
720
+ if (wordSpacingVal > 0 || wordSpacingEmVal !== null) {
721
+ for (const el of elements) {
722
+ if (isProtectedFromTextSpacing(el)) {
723
+ if (el.matches(
724
+ "table, [role='table'], td, th, pre, code, kbd, samp, var, button, input, select, textarea, [data-arap-ui]"
725
+ )) {
726
+ const previous = el.style.getPropertyValue("word-spacing");
727
+ if (!previous) {
728
+ set(el, "word-spacing", "normal");
729
+ }
730
+ }
731
+ continue;
732
+ }
733
+ const targetSpacing = wordSpacingEmVal !== null ? `${wordSpacingEmVal}em` : `${wordSpacingVal}px`;
734
+ set(el, "word-spacing", targetSpacing);
735
+ }
736
+ }
737
+ const paragraphSpacingVal = typeof values.paragraphSpacing === "number" && values.paragraphSpacing > 0 ? values.paragraphSpacing : 0;
738
+ const paragraphSpacingEmVal = typeof values.paragraphSpacingEm === "number" && values.paragraphSpacingEm > 0 ? values.paragraphSpacingEm : null;
739
+ if (paragraphSpacingVal > 0 || paragraphSpacingEmVal !== null) {
740
+ for (const el of elements) {
741
+ if (isProtectedFromTextSpacing(el)) continue;
742
+ if (el.matches("p, [role='paragraph']")) {
743
+ const computed = getComputedStyle(el);
744
+ const baseMargin = parseFloat(computed.marginBottom) || 0;
745
+ const targetMargin = paragraphSpacingEmVal !== null ? `${paragraphSpacingEmVal}em` : `${baseMargin + paragraphSpacingVal}px`;
746
+ set(el, "margin-bottom", targetMargin);
747
+ }
748
+ }
749
+ }
491
750
  for (const el of elements) {
492
- if (Number(values.letterSpacing) > 0)
493
- set(el, "letter-spacing", `${values.letterSpacing}px`);
494
751
  if (values.textAlign && values.textAlign !== "default")
495
752
  set(el, "text-align", String(values.textAlign));
496
753
  if (values.bigCursor) set(el, "cursor", cursor);
@@ -811,6 +1068,9 @@ var enLocale = Object.freeze({
811
1068
  resetAll: "Reset All",
812
1069
  statementLink: "Accessibility Statement",
813
1070
  openInNewTab: "opens in a new tab",
1071
+ creditsPrefix: "Designed and developed by",
1072
+ creditsName: "Praboth",
1073
+ documentationLink: "Official documentation",
814
1074
  buttonTitle: "Accessibility",
815
1075
  dragHelp: "Drag to move, or use Alt and arrow keys. The Move button menu offers click and keyboard controls.",
816
1076
  positionLabel: "Button position",
@@ -1284,7 +1544,45 @@ function Panel({
1284
1544
  ] })
1285
1545
  ]
1286
1546
  }
1287
- ) })
1547
+ ) }),
1548
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "arap-credits", children: [
1549
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { children: [
1550
+ strings.creditsPrefix ?? "Designed and developed by",
1551
+ " ",
1552
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1553
+ "a",
1554
+ {
1555
+ href: "https://www.praboth.com",
1556
+ target: "_blank",
1557
+ rel: "noopener noreferrer",
1558
+ children: [
1559
+ strings.creditsName ?? "Praboth",
1560
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "arap-sr-only", children: [
1561
+ " (",
1562
+ strings.openInNewTab,
1563
+ ")"
1564
+ ] })
1565
+ ]
1566
+ }
1567
+ )
1568
+ ] }),
1569
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1570
+ "a",
1571
+ {
1572
+ href: "https://www.praboth.com/accessibility-plugin-react",
1573
+ target: "_blank",
1574
+ rel: "noopener noreferrer",
1575
+ children: [
1576
+ strings.documentationLink ?? "Official documentation",
1577
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "arap-sr-only", children: [
1578
+ " (",
1579
+ strings.openInNewTab,
1580
+ ")"
1581
+ ] })
1582
+ ]
1583
+ }
1584
+ )
1585
+ ] })
1288
1586
  ]
1289
1587
  }
1290
1588
  );
@@ -1640,6 +1938,8 @@ var drawings = {
1640
1938
  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" }) }),
1641
1939
  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" }) }),
1642
1940
  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" }) }),
1941
+ 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" }) }),
1942
+ 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" }) }),
1643
1943
  contrast: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1644
1944
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
1645
1945
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3a9 9 0 0 1 0 18Z", fill: "currentColor", stroke: "none" })
@@ -1870,11 +2170,44 @@ var DEFAULT_VALUE3 = 100;
1870
2170
  var MIN2 = 50;
1871
2171
  var MAX2 = 200;
1872
2172
  var STEP2 = 10;
1873
- function LineHeightController() {
2173
+ function LineHeightController({
2174
+ steps: customSteps,
2175
+ stepPresets
2176
+ } = {}) {
1874
2177
  const { value, setValue } = useAccessibility(
1875
2178
  FEATURE_KEY3,
1876
2179
  DEFAULT_VALUE3
1877
2180
  );
2181
+ const normalizedValue = typeof value === "number" && value <= 2.5 ? Math.round(value * 100) : value ?? DEFAULT_VALUE3;
2182
+ const steps = customSteps ? customSteps.map((s) => s <= 2.5 ? Math.round(s * 100) : s) : stepPresets ? LINE_HEIGHT_STEPS : null;
2183
+ const handleDecrease = () => {
2184
+ if (steps && steps.length > 0) {
2185
+ const idx = steps.findIndex((s) => Math.abs(s - normalizedValue) < 0.1);
2186
+ if (idx > 0) {
2187
+ setValue(steps[idx - 1]);
2188
+ } else if (idx === -1) {
2189
+ const lower = [...steps].reverse().find((s) => s < normalizedValue);
2190
+ setValue(lower ?? steps[0]);
2191
+ }
2192
+ } else {
2193
+ setValue(Math.max(MIN2, normalizedValue - STEP2));
2194
+ }
2195
+ };
2196
+ const handleIncrease = () => {
2197
+ if (steps && steps.length > 0) {
2198
+ const idx = steps.findIndex((s) => Math.abs(s - normalizedValue) < 0.1);
2199
+ if (idx !== -1 && idx < steps.length - 1) {
2200
+ setValue(steps[idx + 1]);
2201
+ } else if (idx === -1) {
2202
+ const higher = steps.find((s) => s > normalizedValue);
2203
+ setValue(higher ?? steps[steps.length - 1]);
2204
+ }
2205
+ } else {
2206
+ setValue(Math.min(MAX2, normalizedValue + STEP2));
2207
+ }
2208
+ };
2209
+ const isMin = steps && steps.length > 0 ? normalizedValue <= steps[0] : normalizedValue <= MIN2;
2210
+ const isMax = steps && steps.length > 0 ? normalizedValue >= steps[steps.length - 1] : normalizedValue >= MAX2;
1878
2211
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1879
2212
  "div",
1880
2213
  {
@@ -1891,23 +2224,23 @@ function LineHeightController() {
1891
2224
  "button",
1892
2225
  {
1893
2226
  className: "arap-btn-sm",
1894
- onClick: () => setValue(Math.max(MIN2, value - STEP2)),
1895
- disabled: value <= MIN2,
2227
+ onClick: handleDecrease,
2228
+ disabled: isMin,
1896
2229
  "aria-label": "Decrease line height",
1897
2230
  type: "button",
1898
2231
  children: "\u2212"
1899
2232
  }
1900
2233
  ),
1901
2234
  /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("output", { className: "arap-value", "aria-live": "polite", children: [
1902
- value,
2235
+ Math.round(normalizedValue),
1903
2236
  "%"
1904
2237
  ] }),
1905
2238
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1906
2239
  "button",
1907
2240
  {
1908
2241
  className: "arap-btn-sm",
1909
- onClick: () => setValue(Math.min(MAX2, value + STEP2)),
1910
- disabled: value >= MAX2,
2242
+ onClick: handleIncrease,
2243
+ disabled: isMax,
1911
2244
  "aria-label": "Increase line height",
1912
2245
  type: "button",
1913
2246
  children: "+"
@@ -1926,11 +2259,44 @@ var DEFAULT_VALUE4 = 0;
1926
2259
  var MIN3 = 0;
1927
2260
  var MAX3 = 10;
1928
2261
  var STEP3 = 1;
1929
- function LetterSpacingController() {
2262
+ function LetterSpacingController({
2263
+ min = MIN3,
2264
+ max = MAX3,
2265
+ step = STEP3,
2266
+ steps
2267
+ } = {}) {
1930
2268
  const { value, setValue } = useAccessibility(
1931
2269
  FEATURE_KEY4,
1932
2270
  DEFAULT_VALUE4
1933
2271
  );
2272
+ const handleDecrease = () => {
2273
+ if (steps && steps.length > 0) {
2274
+ const idx = steps.findIndex((s) => Math.abs(s - value) < 0.1);
2275
+ if (idx > 0) {
2276
+ setValue(steps[idx - 1]);
2277
+ } else if (idx === -1) {
2278
+ const lower = [...steps].reverse().find((s) => s < value);
2279
+ setValue(lower ?? steps[0]);
2280
+ }
2281
+ } else {
2282
+ setValue(Math.max(min, value - step));
2283
+ }
2284
+ };
2285
+ const handleIncrease = () => {
2286
+ if (steps && steps.length > 0) {
2287
+ const idx = steps.findIndex((s) => Math.abs(s - value) < 0.1);
2288
+ if (idx !== -1 && idx < steps.length - 1) {
2289
+ setValue(steps[idx + 1]);
2290
+ } else if (idx === -1) {
2291
+ const higher = steps.find((s) => s > value);
2292
+ setValue(higher ?? steps[steps.length - 1]);
2293
+ }
2294
+ } else {
2295
+ setValue(Math.min(max, value + step));
2296
+ }
2297
+ };
2298
+ const isMin = steps && steps.length > 0 ? value <= steps[0] : value <= min;
2299
+ const isMax = steps && steps.length > 0 ? value >= steps[steps.length - 1] : value >= max;
1934
2300
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1935
2301
  "div",
1936
2302
  {
@@ -1947,8 +2313,8 @@ function LetterSpacingController() {
1947
2313
  "button",
1948
2314
  {
1949
2315
  className: "arap-btn-sm",
1950
- onClick: () => setValue(Math.max(MIN3, value - STEP3)),
1951
- disabled: value <= MIN3,
2316
+ onClick: handleDecrease,
2317
+ disabled: isMin,
1952
2318
  "aria-label": "Decrease letter spacing",
1953
2319
  type: "button",
1954
2320
  children: "\u2212"
@@ -1962,8 +2328,8 @@ function LetterSpacingController() {
1962
2328
  "button",
1963
2329
  {
1964
2330
  className: "arap-btn-sm",
1965
- onClick: () => setValue(Math.min(MAX3, value + STEP3)),
1966
- disabled: value >= MAX3,
2331
+ onClick: handleIncrease,
2332
+ disabled: isMax,
1967
2333
  "aria-label": "Increase letter spacing",
1968
2334
  type: "button",
1969
2335
  children: "+"
@@ -1975,10 +2341,188 @@ function LetterSpacingController() {
1975
2341
  );
1976
2342
  }
1977
2343
 
1978
- // src/features/ContrastController.tsx
2344
+ // src/features/WordSpacingController.tsx
1979
2345
  var import_jsx_runtime11 = require("react/jsx-runtime");
1980
- var FEATURE_KEY5 = "contrast";
2346
+ var FEATURE_KEY5 = "wordSpacing";
1981
2347
  var DEFAULT_VALUE5 = 0;
2348
+ var MIN4 = 0;
2349
+ var MAX4 = 10;
2350
+ var STEP4 = 1;
2351
+ function WordSpacingController({
2352
+ min = MIN4,
2353
+ max = MAX4,
2354
+ step = STEP4,
2355
+ steps
2356
+ } = {}) {
2357
+ const { value, setValue } = useAccessibility(
2358
+ FEATURE_KEY5,
2359
+ DEFAULT_VALUE5
2360
+ );
2361
+ const handleDecrease = () => {
2362
+ if (steps && steps.length > 0) {
2363
+ const idx = steps.findIndex((s) => Math.abs(s - value) < 0.1);
2364
+ if (idx > 0) {
2365
+ setValue(steps[idx - 1]);
2366
+ } else if (idx === -1) {
2367
+ const lower = [...steps].reverse().find((s) => s < value);
2368
+ setValue(lower ?? steps[0]);
2369
+ }
2370
+ } else {
2371
+ setValue(Math.max(min, value - step));
2372
+ }
2373
+ };
2374
+ const handleIncrease = () => {
2375
+ if (steps && steps.length > 0) {
2376
+ const idx = steps.findIndex((s) => Math.abs(s - value) < 0.1);
2377
+ if (idx !== -1 && idx < steps.length - 1) {
2378
+ setValue(steps[idx + 1]);
2379
+ } else if (idx === -1) {
2380
+ const higher = steps.find((s) => s > value);
2381
+ setValue(higher ?? steps[steps.length - 1]);
2382
+ }
2383
+ } else {
2384
+ setValue(Math.min(max, value + step));
2385
+ }
2386
+ };
2387
+ const isMin = steps && steps.length > 0 ? value <= steps[0] : value <= min;
2388
+ const isMax = steps && steps.length > 0 ? value >= steps[steps.length - 1] : value >= max;
2389
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2390
+ "div",
2391
+ {
2392
+ className: "arap-feature arap-feature-stepper",
2393
+ role: "group",
2394
+ "aria-label": "Word Spacing",
2395
+ children: [
2396
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "arap-label", children: [
2397
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(FeatureIcon, { name: FEATURE_KEY5 }),
2398
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: "Word Spacing" })
2399
+ ] }),
2400
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "arap-controls", children: [
2401
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2402
+ "button",
2403
+ {
2404
+ className: "arap-btn-sm",
2405
+ onClick: handleDecrease,
2406
+ disabled: isMin,
2407
+ "aria-label": "Decrease word spacing",
2408
+ type: "button",
2409
+ children: "\u2212"
2410
+ }
2411
+ ),
2412
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("output", { className: "arap-value", "aria-live": "polite", children: [
2413
+ value,
2414
+ "px"
2415
+ ] }),
2416
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2417
+ "button",
2418
+ {
2419
+ className: "arap-btn-sm",
2420
+ onClick: handleIncrease,
2421
+ disabled: isMax,
2422
+ "aria-label": "Increase word spacing",
2423
+ type: "button",
2424
+ children: "+"
2425
+ }
2426
+ )
2427
+ ] })
2428
+ ]
2429
+ }
2430
+ );
2431
+ }
2432
+
2433
+ // src/features/ParagraphSpacingController.tsx
2434
+ var import_jsx_runtime12 = require("react/jsx-runtime");
2435
+ var FEATURE_KEY6 = "paragraphSpacing";
2436
+ var DEFAULT_VALUE6 = 0;
2437
+ var MIN5 = 0;
2438
+ var MAX5 = 32;
2439
+ var STEP5 = 4;
2440
+ function ParagraphSpacingController({
2441
+ min = MIN5,
2442
+ max = MAX5,
2443
+ step = STEP5,
2444
+ steps
2445
+ } = {}) {
2446
+ const { value, setValue } = useAccessibility(
2447
+ FEATURE_KEY6,
2448
+ DEFAULT_VALUE6
2449
+ );
2450
+ const handleDecrease = () => {
2451
+ if (steps && steps.length > 0) {
2452
+ const idx = steps.findIndex((s) => Math.abs(s - value) < 0.1);
2453
+ if (idx > 0) {
2454
+ setValue(steps[idx - 1]);
2455
+ } else if (idx === -1) {
2456
+ const lower = [...steps].reverse().find((s) => s < value);
2457
+ setValue(lower ?? steps[0]);
2458
+ }
2459
+ } else {
2460
+ setValue(Math.max(min, value - step));
2461
+ }
2462
+ };
2463
+ const handleIncrease = () => {
2464
+ if (steps && steps.length > 0) {
2465
+ const idx = steps.findIndex((s) => Math.abs(s - value) < 0.1);
2466
+ if (idx !== -1 && idx < steps.length - 1) {
2467
+ setValue(steps[idx + 1]);
2468
+ } else if (idx === -1) {
2469
+ const higher = steps.find((s) => s > value);
2470
+ setValue(higher ?? steps[steps.length - 1]);
2471
+ }
2472
+ } else {
2473
+ setValue(Math.min(max, value + step));
2474
+ }
2475
+ };
2476
+ const isMin = steps && steps.length > 0 ? value <= steps[0] : value <= min;
2477
+ const isMax = steps && steps.length > 0 ? value >= steps[steps.length - 1] : value >= max;
2478
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2479
+ "div",
2480
+ {
2481
+ className: "arap-feature arap-feature-stepper",
2482
+ role: "group",
2483
+ "aria-label": "Paragraph Spacing",
2484
+ children: [
2485
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "arap-label", children: [
2486
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FeatureIcon, { name: FEATURE_KEY6 }),
2487
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { children: "Paragraph Spacing" })
2488
+ ] }),
2489
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "arap-controls", children: [
2490
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2491
+ "button",
2492
+ {
2493
+ className: "arap-btn-sm",
2494
+ onClick: handleDecrease,
2495
+ disabled: isMin,
2496
+ "aria-label": "Decrease paragraph spacing",
2497
+ type: "button",
2498
+ children: "\u2212"
2499
+ }
2500
+ ),
2501
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("output", { className: "arap-value", "aria-live": "polite", children: [
2502
+ value,
2503
+ "px"
2504
+ ] }),
2505
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2506
+ "button",
2507
+ {
2508
+ className: "arap-btn-sm",
2509
+ onClick: handleIncrease,
2510
+ disabled: isMax,
2511
+ "aria-label": "Increase paragraph spacing",
2512
+ type: "button",
2513
+ children: "+"
2514
+ }
2515
+ )
2516
+ ] })
2517
+ ]
2518
+ }
2519
+ );
2520
+ }
2521
+
2522
+ // src/features/ContrastController.tsx
2523
+ var import_jsx_runtime13 = require("react/jsx-runtime");
2524
+ var FEATURE_KEY7 = "contrast";
2525
+ var DEFAULT_VALUE7 = 0;
1982
2526
  var LEVELS = [
1983
2527
  { label: "Off", value: 0 },
1984
2528
  { label: "Reduced", value: "reduced" },
@@ -1991,15 +2535,15 @@ var LEVELS = [
1991
2535
  ];
1992
2536
  function ContrastController() {
1993
2537
  const { value, setValue } = useAccessibility(
1994
- FEATURE_KEY5,
1995
- DEFAULT_VALUE5
2538
+ FEATURE_KEY7,
2539
+ DEFAULT_VALUE7
1996
2540
  );
1997
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Contrast", children: [
1998
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "arap-label", children: [
1999
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(FeatureIcon, { name: FEATURE_KEY5 }),
2000
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: "Contrast" })
2541
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Contrast", children: [
2542
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "arap-label", children: [
2543
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(FeatureIcon, { name: FEATURE_KEY7 }),
2544
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: "Contrast" })
2001
2545
  ] }),
2002
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "arap-segmented", children: LEVELS.map((level) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2546
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "arap-segmented", children: LEVELS.map((level) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
2003
2547
  "button",
2004
2548
  {
2005
2549
  className: `arap-segment ${value === level.value ? "arap-segment-active" : ""}`,
@@ -2007,7 +2551,7 @@ function ContrastController() {
2007
2551
  "aria-pressed": value === level.value,
2008
2552
  type: "button",
2009
2553
  children: [
2010
- value === level.value && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2554
+ value === level.value && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2011
2555
  level.label
2012
2556
  ]
2013
2557
  },
@@ -2017,9 +2561,9 @@ function ContrastController() {
2017
2561
  }
2018
2562
 
2019
2563
  // src/features/SaturationController.tsx
2020
- var import_jsx_runtime12 = require("react/jsx-runtime");
2021
- var FEATURE_KEY6 = "saturation";
2022
- var DEFAULT_VALUE6 = 0;
2564
+ var import_jsx_runtime14 = require("react/jsx-runtime");
2565
+ var FEATURE_KEY8 = "saturation";
2566
+ var DEFAULT_VALUE8 = 0;
2023
2567
  var LEVELS2 = [
2024
2568
  { label: "Off", value: 0 },
2025
2569
  { label: "Low", value: 1 },
@@ -2027,15 +2571,15 @@ var LEVELS2 = [
2027
2571
  ];
2028
2572
  function SaturationController() {
2029
2573
  const { value, setValue } = useAccessibility(
2030
- FEATURE_KEY6,
2031
- DEFAULT_VALUE6
2574
+ FEATURE_KEY8,
2575
+ DEFAULT_VALUE8
2032
2576
  );
2033
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Saturation", children: [
2034
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "arap-label", children: [
2035
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FeatureIcon, { name: FEATURE_KEY6 }),
2036
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { children: "Saturation" })
2577
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Saturation", children: [
2578
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("span", { className: "arap-label", children: [
2579
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FeatureIcon, { name: FEATURE_KEY8 }),
2580
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: "Saturation" })
2037
2581
  ] }),
2038
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "arap-segmented", children: LEVELS2.map((level) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2582
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "arap-segmented", children: LEVELS2.map((level) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
2039
2583
  "button",
2040
2584
  {
2041
2585
  className: `arap-segment ${value === level.value ? "arap-segment-active" : ""}`,
@@ -2043,7 +2587,7 @@ function SaturationController() {
2043
2587
  "aria-pressed": value === level.value,
2044
2588
  type: "button",
2045
2589
  children: [
2046
- value === level.value && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2590
+ value === level.value && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2047
2591
  level.label
2048
2592
  ]
2049
2593
  },
@@ -2053,20 +2597,20 @@ function SaturationController() {
2053
2597
  }
2054
2598
 
2055
2599
  // src/features/InvertColorsController.tsx
2056
- var import_jsx_runtime13 = require("react/jsx-runtime");
2057
- var FEATURE_KEY7 = "invertColors";
2058
- var DEFAULT_VALUE7 = false;
2600
+ var import_jsx_runtime15 = require("react/jsx-runtime");
2601
+ var FEATURE_KEY9 = "invertColors";
2602
+ var DEFAULT_VALUE9 = false;
2059
2603
  function InvertColorsController() {
2060
2604
  const { value, setValue } = useAccessibility(
2061
- FEATURE_KEY7,
2062
- DEFAULT_VALUE7
2605
+ FEATURE_KEY9,
2606
+ DEFAULT_VALUE9
2063
2607
  );
2064
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Invert Colors", children: [
2065
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "arap-label", children: [
2066
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(FeatureIcon, { name: FEATURE_KEY7 }),
2067
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: "Invert Colors" })
2608
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Invert Colors", children: [
2609
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { className: "arap-label", children: [
2610
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FeatureIcon, { name: FEATURE_KEY9 }),
2611
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children: "Invert Colors" })
2068
2612
  ] }),
2069
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2613
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2070
2614
  "button",
2071
2615
  {
2072
2616
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2074,27 +2618,27 @@ function InvertColorsController() {
2074
2618
  "aria-label": "Invert Colors",
2075
2619
  "aria-pressed": value,
2076
2620
  type: "button",
2077
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2621
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2078
2622
  }
2079
2623
  )
2080
2624
  ] });
2081
2625
  }
2082
2626
 
2083
2627
  // src/features/GrayscaleController.tsx
2084
- var import_jsx_runtime14 = require("react/jsx-runtime");
2085
- var FEATURE_KEY8 = "grayscale";
2086
- var DEFAULT_VALUE8 = false;
2628
+ var import_jsx_runtime16 = require("react/jsx-runtime");
2629
+ var FEATURE_KEY10 = "grayscale";
2630
+ var DEFAULT_VALUE10 = false;
2087
2631
  function GrayscaleController() {
2088
2632
  const { value, setValue } = useAccessibility(
2089
- FEATURE_KEY8,
2090
- DEFAULT_VALUE8
2633
+ FEATURE_KEY10,
2634
+ DEFAULT_VALUE10
2091
2635
  );
2092
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Grayscale", children: [
2093
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("span", { className: "arap-label", children: [
2094
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(FeatureIcon, { name: FEATURE_KEY8 }),
2095
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: "Grayscale" })
2636
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Grayscale", children: [
2637
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { className: "arap-label", children: [
2638
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(FeatureIcon, { name: FEATURE_KEY10 }),
2639
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: "Grayscale" })
2096
2640
  ] }),
2097
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2641
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2098
2642
  "button",
2099
2643
  {
2100
2644
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2102,27 +2646,27 @@ function GrayscaleController() {
2102
2646
  "aria-label": "Grayscale",
2103
2647
  "aria-pressed": value,
2104
2648
  type: "button",
2105
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2649
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2106
2650
  }
2107
2651
  )
2108
2652
  ] });
2109
2653
  }
2110
2654
 
2111
2655
  // src/features/LinkHighlightController.tsx
2112
- var import_jsx_runtime15 = require("react/jsx-runtime");
2113
- var FEATURE_KEY9 = "linkHighlight";
2114
- var DEFAULT_VALUE9 = false;
2656
+ var import_jsx_runtime17 = require("react/jsx-runtime");
2657
+ var FEATURE_KEY11 = "linkHighlight";
2658
+ var DEFAULT_VALUE11 = false;
2115
2659
  function LinkHighlightController() {
2116
2660
  const { value, setValue } = useAccessibility(
2117
- FEATURE_KEY9,
2118
- DEFAULT_VALUE9
2661
+ FEATURE_KEY11,
2662
+ DEFAULT_VALUE11
2119
2663
  );
2120
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Link Highlight", children: [
2121
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { className: "arap-label", children: [
2122
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FeatureIcon, { name: FEATURE_KEY9 }),
2123
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children: "Link Highlight" })
2664
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Link Highlight", children: [
2665
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { className: "arap-label", children: [
2666
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(FeatureIcon, { name: FEATURE_KEY11 }),
2667
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: "Link Highlight" })
2124
2668
  ] }),
2125
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2669
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2126
2670
  "button",
2127
2671
  {
2128
2672
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2130,10 +2674,10 @@ function LinkHighlightController() {
2130
2674
  "aria-label": "Link Highlight",
2131
2675
  "aria-pressed": !!value,
2132
2676
  type: "button",
2133
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2677
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2134
2678
  }
2135
2679
  ),
2136
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "arap-segmented", children: ["yellow-on-black", "blue-on-yellow", "black-on-white"].map((mode) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
2680
+ /* @__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)(
2137
2681
  "button",
2138
2682
  {
2139
2683
  type: "button",
@@ -2141,7 +2685,7 @@ function LinkHighlightController() {
2141
2685
  "aria-pressed": value === mode,
2142
2686
  onClick: () => setValue(mode),
2143
2687
  children: [
2144
- value === mode && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2688
+ value === mode && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2145
2689
  mode.split("-").join(" ")
2146
2690
  ]
2147
2691
  },
@@ -2151,21 +2695,21 @@ function LinkHighlightController() {
2151
2695
  }
2152
2696
 
2153
2697
  // src/features/TextAlignController.tsx
2154
- var import_jsx_runtime16 = require("react/jsx-runtime");
2155
- var FEATURE_KEY10 = "textAlign";
2156
- var DEFAULT_VALUE10 = "default";
2698
+ var import_jsx_runtime18 = require("react/jsx-runtime");
2699
+ var FEATURE_KEY12 = "textAlign";
2700
+ var DEFAULT_VALUE12 = "default";
2157
2701
  var OPTIONS = ["default", "left", "center", "right", "justify"];
2158
2702
  function TextAlignController() {
2159
2703
  const { value, setValue } = useAccessibility(
2160
- FEATURE_KEY10,
2161
- DEFAULT_VALUE10
2704
+ FEATURE_KEY12,
2705
+ DEFAULT_VALUE12
2162
2706
  );
2163
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Text Alignment", children: [
2164
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { className: "arap-label", children: [
2165
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(FeatureIcon, { name: FEATURE_KEY10 }),
2166
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: "Text Alignment" })
2707
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Text Alignment", children: [
2708
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "arap-label", children: [
2709
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(FeatureIcon, { name: FEATURE_KEY12 }),
2710
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: "Text Alignment" })
2167
2711
  ] }),
2168
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "arap-segmented", children: OPTIONS.map((option) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
2712
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "arap-segmented", children: OPTIONS.map((option) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
2169
2713
  "button",
2170
2714
  {
2171
2715
  className: `arap-segment ${value === option ? "arap-segment-active" : ""}`,
@@ -2174,7 +2718,7 @@ function TextAlignController() {
2174
2718
  type: "button",
2175
2719
  style: { textTransform: "capitalize" },
2176
2720
  children: [
2177
- value === option && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2721
+ value === option && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2178
2722
  option
2179
2723
  ]
2180
2724
  },
@@ -2184,20 +2728,20 @@ function TextAlignController() {
2184
2728
  }
2185
2729
 
2186
2730
  // src/features/HideImagesController.tsx
2187
- var import_jsx_runtime17 = require("react/jsx-runtime");
2188
- var FEATURE_KEY11 = "hideImages";
2189
- var DEFAULT_VALUE11 = false;
2731
+ var import_jsx_runtime19 = require("react/jsx-runtime");
2732
+ var FEATURE_KEY13 = "hideImages";
2733
+ var DEFAULT_VALUE13 = false;
2190
2734
  function HideImagesController() {
2191
2735
  const { value, setValue } = useAccessibility(
2192
- FEATURE_KEY11,
2193
- DEFAULT_VALUE11
2736
+ FEATURE_KEY13,
2737
+ DEFAULT_VALUE13
2194
2738
  );
2195
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Hide Images", children: [
2196
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { className: "arap-label", children: [
2197
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(FeatureIcon, { name: FEATURE_KEY11 }),
2198
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: "Hide Images" })
2739
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Hide Images", children: [
2740
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: "arap-label", children: [
2741
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FeatureIcon, { name: FEATURE_KEY13 }),
2742
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: "Hide Images" })
2199
2743
  ] }),
2200
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2744
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2201
2745
  "button",
2202
2746
  {
2203
2747
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2205,27 +2749,27 @@ function HideImagesController() {
2205
2749
  "aria-label": "Hide Images",
2206
2750
  "aria-pressed": value,
2207
2751
  type: "button",
2208
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2752
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2209
2753
  }
2210
2754
  )
2211
2755
  ] });
2212
2756
  }
2213
2757
 
2214
2758
  // src/features/HideVideosController.tsx
2215
- var import_jsx_runtime18 = require("react/jsx-runtime");
2216
- var FEATURE_KEY12 = "hideVideos";
2217
- var DEFAULT_VALUE12 = false;
2759
+ var import_jsx_runtime20 = require("react/jsx-runtime");
2760
+ var FEATURE_KEY14 = "hideVideos";
2761
+ var DEFAULT_VALUE14 = false;
2218
2762
  function HideVideosController() {
2219
2763
  const { value, setValue } = useAccessibility(
2220
- FEATURE_KEY12,
2221
- DEFAULT_VALUE12
2764
+ FEATURE_KEY14,
2765
+ DEFAULT_VALUE14
2222
2766
  );
2223
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Hide Videos", children: [
2224
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "arap-label", children: [
2225
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(FeatureIcon, { name: FEATURE_KEY12 }),
2226
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: "Hide Videos" })
2767
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Hide Videos", children: [
2768
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: "arap-label", children: [
2769
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FeatureIcon, { name: FEATURE_KEY14 }),
2770
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: "Hide Videos" })
2227
2771
  ] }),
2228
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2772
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2229
2773
  "button",
2230
2774
  {
2231
2775
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2233,27 +2777,27 @@ function HideVideosController() {
2233
2777
  "aria-label": "Hide Videos",
2234
2778
  "aria-pressed": value,
2235
2779
  type: "button",
2236
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2780
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2237
2781
  }
2238
2782
  )
2239
2783
  ] });
2240
2784
  }
2241
2785
 
2242
2786
  // src/features/BigCursorController.tsx
2243
- var import_jsx_runtime19 = require("react/jsx-runtime");
2244
- var FEATURE_KEY13 = "bigCursor";
2245
- var DEFAULT_VALUE13 = false;
2787
+ var import_jsx_runtime21 = require("react/jsx-runtime");
2788
+ var FEATURE_KEY15 = "bigCursor";
2789
+ var DEFAULT_VALUE15 = false;
2246
2790
  function BigCursorController() {
2247
2791
  const { value, setValue } = useAccessibility(
2248
- FEATURE_KEY13,
2249
- DEFAULT_VALUE13
2792
+ FEATURE_KEY15,
2793
+ DEFAULT_VALUE15
2250
2794
  );
2251
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Big Cursor", children: [
2252
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: "arap-label", children: [
2253
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FeatureIcon, { name: FEATURE_KEY13 }),
2254
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: "Big Cursor" })
2795
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Big Cursor", children: [
2796
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: "arap-label", children: [
2797
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FeatureIcon, { name: FEATURE_KEY15 }),
2798
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Big Cursor" })
2255
2799
  ] }),
2256
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2800
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2257
2801
  "button",
2258
2802
  {
2259
2803
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2261,27 +2805,27 @@ function BigCursorController() {
2261
2805
  "aria-label": "Big Cursor",
2262
2806
  "aria-pressed": value,
2263
2807
  type: "button",
2264
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2808
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2265
2809
  }
2266
2810
  )
2267
2811
  ] });
2268
2812
  }
2269
2813
 
2270
2814
  // src/features/ReadingMaskController.tsx
2271
- var import_jsx_runtime20 = require("react/jsx-runtime");
2272
- var FEATURE_KEY14 = "readingMask";
2273
- var DEFAULT_VALUE14 = false;
2815
+ var import_jsx_runtime22 = require("react/jsx-runtime");
2816
+ var FEATURE_KEY16 = "readingMask";
2817
+ var DEFAULT_VALUE16 = false;
2274
2818
  function ReadingMaskController() {
2275
2819
  const { value, setValue } = useAccessibility(
2276
- FEATURE_KEY14,
2277
- DEFAULT_VALUE14
2820
+ FEATURE_KEY16,
2821
+ DEFAULT_VALUE16
2278
2822
  );
2279
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Reading Mask", children: [
2280
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: "arap-label", children: [
2281
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FeatureIcon, { name: FEATURE_KEY14 }),
2282
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: "Reading Mask" })
2823
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Reading Mask", children: [
2824
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "arap-label", children: [
2825
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FeatureIcon, { name: FEATURE_KEY16 }),
2826
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: "Reading Mask" })
2283
2827
  ] }),
2284
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2828
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2285
2829
  "button",
2286
2830
  {
2287
2831
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2289,27 +2833,27 @@ function ReadingMaskController() {
2289
2833
  "aria-label": "Reading Mask",
2290
2834
  "aria-pressed": value,
2291
2835
  type: "button",
2292
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2836
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2293
2837
  }
2294
2838
  )
2295
2839
  ] });
2296
2840
  }
2297
2841
 
2298
2842
  // src/features/ReadingGuideController.tsx
2299
- var import_jsx_runtime21 = require("react/jsx-runtime");
2300
- var FEATURE_KEY15 = "readingGuide";
2301
- var DEFAULT_VALUE15 = false;
2843
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2844
+ var FEATURE_KEY17 = "readingGuide";
2845
+ var DEFAULT_VALUE17 = false;
2302
2846
  function ReadingGuideController() {
2303
2847
  const { value, setValue } = useAccessibility(
2304
- FEATURE_KEY15,
2305
- DEFAULT_VALUE15
2848
+ FEATURE_KEY17,
2849
+ DEFAULT_VALUE17
2306
2850
  );
2307
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Reading Guide", children: [
2308
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: "arap-label", children: [
2309
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FeatureIcon, { name: FEATURE_KEY15 }),
2310
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Reading Guide" })
2851
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "arap-feature", role: "group", "aria-label": "Reading Guide", children: [
2852
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { className: "arap-label", children: [
2853
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(FeatureIcon, { name: FEATURE_KEY17 }),
2854
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children: "Reading Guide" })
2311
2855
  ] }),
2312
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2856
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2313
2857
  "button",
2314
2858
  {
2315
2859
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2317,7 +2861,7 @@ function ReadingGuideController() {
2317
2861
  "aria-label": "Reading Guide",
2318
2862
  "aria-pressed": value,
2319
2863
  type: "button",
2320
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2864
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2321
2865
  }
2322
2866
  )
2323
2867
  ] });
@@ -2326,7 +2870,7 @@ function ReadingGuideController() {
2326
2870
  // src/features/ResetController.tsx
2327
2871
  var import_react_dom2 = require("react-dom");
2328
2872
  var import_react11 = require("react");
2329
- var import_jsx_runtime22 = require("react/jsx-runtime");
2873
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2330
2874
  function ResetController() {
2331
2875
  const ctx = (0, import_react11.useContext)(AccessibilityContext);
2332
2876
  if (!ctx) {
@@ -2337,15 +2881,15 @@ function ResetController() {
2337
2881
  const actionHost = (0, import_react11.useContext)(PanelActionsContext);
2338
2882
  const { resetAll } = ctx;
2339
2883
  const strings = resolveLocaleStrings(ctx.locale);
2340
- const button = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "arap-feature arap-feature-reset", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("button", { className: "arap-reset-btn", onClick: resetAll, type: "button", children: [
2341
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FeatureIcon, { name: "reset" }),
2884
+ const button = /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "arap-feature arap-feature-reset", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("button", { className: "arap-reset-btn", onClick: resetAll, type: "button", children: [
2885
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(FeatureIcon, { name: "reset" }),
2342
2886
  strings.resetAll
2343
2887
  ] }) });
2344
2888
  return actionHost ? (0, import_react_dom2.createPortal)(button, actionHost) : button;
2345
2889
  }
2346
2890
 
2347
2891
  // src/core/controls/ToggleControl.tsx
2348
- var import_jsx_runtime23 = require("react/jsx-runtime");
2892
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2349
2893
  function ToggleControl({
2350
2894
  id,
2351
2895
  label,
@@ -2367,12 +2911,12 @@ function ToggleControl({
2367
2911
  onChange(!checked);
2368
2912
  }
2369
2913
  };
2370
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2914
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2371
2915
  "div",
2372
2916
  {
2373
2917
  className: `arap-toggle-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
2374
2918
  style,
2375
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2919
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2376
2920
  "button",
2377
2921
  {
2378
2922
  id,
@@ -2386,7 +2930,7 @@ function ToggleControl({
2386
2930
  disabled: !isInteractive,
2387
2931
  onClick: handleClick,
2388
2932
  title: unavailableReason || description || toggleLabel,
2389
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2933
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2390
2934
  "span",
2391
2935
  {
2392
2936
  className: "arap-toggle-knob",
@@ -2403,7 +2947,7 @@ function ToggleControl({
2403
2947
 
2404
2948
  // src/core/controls/ChoiceControl.tsx
2405
2949
  var import_react12 = require("react");
2406
- var import_jsx_runtime24 = require("react/jsx-runtime");
2950
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2407
2951
  function ChoiceControl({
2408
2952
  id,
2409
2953
  label,
@@ -2459,7 +3003,7 @@ function ChoiceControl({
2459
3003
  const renderOptionButton = (opt) => {
2460
3004
  const isSelected = value === opt.value;
2461
3005
  const isOptionDisabled = disabled || Boolean(opt.disabled);
2462
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
3006
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2463
3007
  "button",
2464
3008
  {
2465
3009
  type: "button",
@@ -2473,15 +3017,15 @@ function ChoiceControl({
2473
3017
  onClick: () => !isOptionDisabled && onChange(opt.value),
2474
3018
  title: opt.description,
2475
3019
  children: [
2476
- isSelected && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2477
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children: opt.label }),
2478
- opt.badge && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "arap-choice-badge", "aria-hidden": "true", children: opt.badge })
3020
+ isSelected && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3021
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: opt.label }),
3022
+ opt.badge && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "arap-choice-badge", "aria-hidden": "true", children: opt.badge })
2479
3023
  ]
2480
3024
  },
2481
3025
  String(opt.value)
2482
3026
  );
2483
3027
  };
2484
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3028
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2485
3029
  "div",
2486
3030
  {
2487
3031
  ref: containerRef,
@@ -2492,15 +3036,15 @@ function ChoiceControl({
2492
3036
  className: `arap-choice-control arap-segmented ${largeControls ? "arap-large-controls" : ""} ${className}`,
2493
3037
  style,
2494
3038
  onKeyDown: handleKeyDown,
2495
- children: groups ? groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
3039
+ children: groups ? groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2496
3040
  "div",
2497
3041
  {
2498
3042
  className: "arap-choice-group",
2499
3043
  role: "group",
2500
3044
  "aria-label": group.label,
2501
3045
  children: [
2502
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "arap-choice-group-title", children: group.label }),
2503
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "arap-segmented", children: group.options.map(renderOptionButton) })
3046
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "arap-choice-group-title", children: group.label }),
3047
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "arap-segmented", children: group.options.map(renderOptionButton) })
2504
3048
  ]
2505
3049
  },
2506
3050
  group.label
@@ -2510,7 +3054,7 @@ function ChoiceControl({
2510
3054
  }
2511
3055
 
2512
3056
  // src/core/controls/StepperControl.tsx
2513
- var import_jsx_runtime25 = require("react/jsx-runtime");
3057
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2514
3058
  function StepperControl({
2515
3059
  id,
2516
3060
  label,
@@ -2540,15 +3084,15 @@ function StepperControl({
2540
3084
  onChange(Math.min(max, Number((value + step).toFixed(2))));
2541
3085
  }
2542
3086
  };
2543
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
3087
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
2544
3088
  "div",
2545
3089
  {
2546
3090
  id,
2547
3091
  className: `arap-stepper-control-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
2548
3092
  style,
2549
3093
  children: [
2550
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "arap-controls", children: [
2551
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3094
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "arap-controls", children: [
3095
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2552
3096
  "button",
2553
3097
  {
2554
3098
  type: "button",
@@ -2559,8 +3103,8 @@ function StepperControl({
2559
3103
  children: "\u2212"
2560
3104
  }
2561
3105
  ),
2562
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("output", { className: "arap-value", "aria-live": "polite", children: displayValue }),
2563
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3106
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("output", { className: "arap-value", "aria-live": "polite", children: displayValue }),
3107
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2564
3108
  "button",
2565
3109
  {
2566
3110
  type: "button",
@@ -2572,7 +3116,7 @@ function StepperControl({
2572
3116
  }
2573
3117
  )
2574
3118
  ] }),
2575
- showSlider && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "arap-slider-container", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3119
+ showSlider && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "arap-slider-container", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2576
3120
  "input",
2577
3121
  {
2578
3122
  type: "range",
@@ -2596,7 +3140,7 @@ function StepperControl({
2596
3140
  }
2597
3141
 
2598
3142
  // src/core/controls/FeatureCard.tsx
2599
- var import_jsx_runtime26 = require("react/jsx-runtime");
3143
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2600
3144
  function FeatureCard({
2601
3145
  id,
2602
3146
  featureKey,
@@ -2615,7 +3159,7 @@ function FeatureCard({
2615
3159
  largeControls = false
2616
3160
  }) {
2617
3161
  const cardTitle = typeof title === "string" ? title : void 0;
2618
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
3162
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
2619
3163
  "div",
2620
3164
  {
2621
3165
  id,
@@ -2624,27 +3168,27 @@ function FeatureCard({
2624
3168
  className: `arap-feature arap-feature-card ${status !== "idle" ? `arap-feature-${status}` : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
2625
3169
  style,
2626
3170
  children: [
2627
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "arap-card-header", children: [
2628
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "arap-label", children: [
2629
- icon ?? (featureKey ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(FeatureIcon, { name: featureKey }) : null),
2630
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "arap-card-title", children: title })
3171
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "arap-card-header", children: [
3172
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { className: "arap-label", children: [
3173
+ icon ?? (featureKey ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(FeatureIcon, { name: featureKey }) : null),
3174
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "arap-card-title", children: title })
2631
3175
  ] }),
2632
- statusBadge && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "arap-status-badge", "aria-hidden": "true", children: statusBadge })
3176
+ statusBadge && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "arap-status-badge", "aria-hidden": "true", children: statusBadge })
2633
3177
  ] }),
2634
- description && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "arap-card-desc", children: description }),
2635
- status === "error" && errorMessage && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "arap-card-alert arap-card-error", role: "alert", children: [
2636
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
2637
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: errorMessage })
3178
+ description && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "arap-card-desc", children: description }),
3179
+ status === "error" && errorMessage && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "arap-card-alert arap-card-error", role: "alert", children: [
3180
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3181
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children: errorMessage })
2638
3182
  ] }),
2639
- status === "unavailable" && unavailableMessage && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "arap-card-alert arap-card-unavailable", role: "status", children: [
2640
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u2139\uFE0F" }),
2641
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: unavailableMessage })
3183
+ status === "unavailable" && unavailableMessage && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "arap-card-alert arap-card-unavailable", role: "status", children: [
3184
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u2139\uFE0F" }),
3185
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children: unavailableMessage })
2642
3186
  ] }),
2643
- status === "permission-required" && permissionMessage && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "arap-card-alert arap-card-permission", role: "status", children: [
2644
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u{1F512}" }),
2645
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "arap-permission-content", children: [
2646
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: permissionMessage }),
2647
- onRequestPermission && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3187
+ status === "permission-required" && permissionMessage && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "arap-card-alert arap-card-permission", role: "status", children: [
3188
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u{1F512}" }),
3189
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "arap-permission-content", children: [
3190
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children: permissionMessage }),
3191
+ onRequestPermission && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2648
3192
  "button",
2649
3193
  {
2650
3194
  type: "button",
@@ -2655,14 +3199,14 @@ function FeatureCard({
2655
3199
  )
2656
3200
  ] })
2657
3201
  ] }),
2658
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "arap-card-content", children })
3202
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "arap-card-content", children })
2659
3203
  ]
2660
3204
  }
2661
3205
  );
2662
3206
  }
2663
3207
 
2664
3208
  // src/core/controls/FeatureStatusState.tsx
2665
- var import_jsx_runtime27 = require("react/jsx-runtime");
3209
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2666
3210
  function SearchCount({
2667
3211
  totalCount,
2668
3212
  matchedCount,
@@ -2671,7 +3215,7 @@ function SearchCount({
2671
3215
  style
2672
3216
  }) {
2673
3217
  const text = query ? `Showing ${matchedCount} of ${totalCount} tools matching "${query}"` : `Showing all ${totalCount} tools`;
2674
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3218
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2675
3219
  "div",
2676
3220
  {
2677
3221
  role: "status",
@@ -2691,17 +3235,17 @@ function EmptyState({
2691
3235
  className = "",
2692
3236
  style
2693
3237
  }) {
2694
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3238
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
2695
3239
  "div",
2696
3240
  {
2697
3241
  role: "status",
2698
3242
  className: `arap-empty-state ${className}`,
2699
3243
  style,
2700
3244
  children: [
2701
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "arap-empty-icon", "aria-hidden": "true", children: icon ?? "\u{1F50D}" }),
2702
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("h3", { className: "arap-empty-title", children: title }),
2703
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "arap-empty-desc", children: description }),
2704
- onAction && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("button", { type: "button", className: "arap-empty-btn", onClick: onAction, children: actionLabel })
3245
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "arap-empty-icon", "aria-hidden": "true", children: icon ?? "\u{1F50D}" }),
3246
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("h3", { className: "arap-empty-title", children: title }),
3247
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "arap-empty-desc", children: description }),
3248
+ onAction && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("button", { type: "button", className: "arap-empty-btn", onClick: onAction, children: actionLabel })
2705
3249
  ]
2706
3250
  }
2707
3251
  );
@@ -2714,18 +3258,18 @@ function ErrorState({
2714
3258
  className = "",
2715
3259
  style
2716
3260
  }) {
2717
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3261
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
2718
3262
  "div",
2719
3263
  {
2720
3264
  role: "alert",
2721
3265
  className: `arap-error-state arap-card-alert arap-card-error ${className}`,
2722
3266
  style,
2723
3267
  children: [
2724
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
2725
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "arap-error-content", children: [
2726
- title && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("h4", { className: "arap-error-title", children: title }),
2727
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "arap-error-message", children: message }),
2728
- onRetry && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("button", { type: "button", className: "arap-retry-btn", onClick: onRetry, children: retryLabel })
3268
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3269
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "arap-error-content", children: [
3270
+ title && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("h4", { className: "arap-error-title", children: title }),
3271
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "arap-error-message", children: message }),
3272
+ onRetry && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("button", { type: "button", className: "arap-retry-btn", onClick: onRetry, children: retryLabel })
2729
3273
  ] })
2730
3274
  ]
2731
3275
  }
@@ -2733,7 +3277,7 @@ function ErrorState({
2733
3277
  }
2734
3278
 
2735
3279
  // src/core/controls/ProfilePreviewCard.tsx
2736
- var import_jsx_runtime28 = require("react/jsx-runtime");
3280
+ var import_jsx_runtime30 = require("react/jsx-runtime");
2737
3281
  function ProfilePreviewCard({
2738
3282
  profile,
2739
3283
  isActive,
@@ -2783,7 +3327,7 @@ function ProfilePreviewCard({
2783
3327
  if (val === null || val === void 0) return "Original";
2784
3328
  return String(val);
2785
3329
  };
2786
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
3330
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
2787
3331
  "div",
2788
3332
  {
2789
3333
  role: "group",
@@ -2791,10 +3335,10 @@ function ProfilePreviewCard({
2791
3335
  className: `arap-profile-card ${isActive ? "arap-profile-card-active" : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
2792
3336
  style,
2793
3337
  children: [
2794
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "arap-profile-header", children: [
2795
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "arap-profile-title-row", children: [
2796
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("h4", { className: "arap-profile-title", children: profile.label }),
2797
- isActive && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3338
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "arap-profile-header", children: [
3339
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "arap-profile-title-row", children: [
3340
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h4", { className: "arap-profile-title", children: profile.label }),
3341
+ isActive && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2798
3342
  "span",
2799
3343
  {
2800
3344
  className: "arap-profile-active-badge",
@@ -2803,14 +3347,14 @@ function ProfilePreviewCard({
2803
3347
  }
2804
3348
  )
2805
3349
  ] }),
2806
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "arap-profile-desc", children: profile.description })
3350
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "arap-profile-desc", children: profile.description })
2807
3351
  ] }),
2808
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "arap-profile-affected", children: [
2809
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "arap-profile-affected-label", children: "Affected settings:" }),
2810
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "arap-profile-chips", children: affectedKeys.map((key) => {
3352
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "arap-profile-affected", children: [
3353
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "arap-profile-affected-label", children: "Affected settings:" }),
3354
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "arap-profile-chips", children: affectedKeys.map((key) => {
2811
3355
  const val = profile.settings[key];
2812
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { className: "arap-profile-chip", children: [
2813
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("strong", { children: [
3356
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "arap-profile-chip", children: [
3357
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("strong", { children: [
2814
3358
  formatKeyName(key),
2815
3359
  ":"
2816
3360
  ] }),
@@ -2819,7 +3363,7 @@ function ProfilePreviewCard({
2819
3363
  ] }, key);
2820
3364
  }) })
2821
3365
  ] }),
2822
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "arap-profile-actions", children: isActive ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3366
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "arap-profile-actions", children: isActive ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2823
3367
  "button",
2824
3368
  {
2825
3369
  type: "button",
@@ -2828,7 +3372,7 @@ function ProfilePreviewCard({
2828
3372
  "aria-label": `Revert ${profile.label} profile`,
2829
3373
  children: "Revert to custom settings"
2830
3374
  }
2831
- ) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3375
+ ) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2832
3376
  "button",
2833
3377
  {
2834
3378
  type: "button",
@@ -2860,10 +3404,13 @@ function ProfilePreviewCard({
2860
3404
  HideImagesController,
2861
3405
  HideVideosController,
2862
3406
  InvertColorsController,
3407
+ LINE_HEIGHT_RATIOS,
3408
+ LINE_HEIGHT_STEPS,
2863
3409
  LetterSpacingController,
2864
3410
  LineHeightController,
2865
3411
  LinkHighlightController,
2866
3412
  PROFILE_DEFINITIONS,
3413
+ ParagraphSpacingController,
2867
3414
  ProfilePreviewCard,
2868
3415
  ReadingGuideController,
2869
3416
  ReadingMaskController,
@@ -2873,12 +3420,16 @@ function ProfilePreviewCard({
2873
3420
  StepperControl,
2874
3421
  TEXT_SCALE_PROTECTED_SELECTOR,
2875
3422
  TEXT_SCALE_STEPS,
3423
+ TEXT_SPACING_EXCLUDED_SELECTOR,
2876
3424
  TextAlignController,
2877
3425
  TextScaleController,
2878
3426
  ToggleControl,
3427
+ WordSpacingController,
2879
3428
  createInitialPreferencesState,
2880
3429
  enLocale,
3430
+ getScriptSpacingConstraints,
2881
3431
  isProtectedFromTextScale,
3432
+ isProtectedFromTextSpacing,
2882
3433
  isRtlLocale,
2883
3434
  normalizePreferenceValue,
2884
3435
  normalizePreferences,