accessibility-plugin-react 2.16.0 → 2.18.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/README.md +2 -0
- package/dist/index.d.mts +116 -7
- package/dist/index.d.ts +116 -7
- package/dist/index.js +987 -126
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +944 -83
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +368 -1
- package/docs/API.md +4 -4
- package/docs/BUILD_AND_RELEASE_PLAN.md +2 -2
- package/docs/FEATURES.md +2 -0
- package/docs/LOCALES.md +149 -0
- package/docs/READING_MODE.md +128 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ function styleInject(css, { insertAt } = {}) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// src/styles/tailwind.css
|
|
27
|
-
styleInject('.arap-root {\n --arap-surface: #fff;\n --arap-text: #111827;\n --arap-muted: #475569;\n --arap-border: #cbd5e1;\n --arap-divider: #e2e8f0;\n --arap-accent: #1d4ed8;\n --arap-accent-hover: #1e40af;\n --arap-selected: #eff6ff;\n --arap-control: #f8fafc;\n color-scheme: light;\n font: 15px/1.5 system-ui, sans-serif;\n color: var(--arap-text);\n text-align: left;\n letter-spacing: normal;\n}\n.arap-root *,\n.arap-root *::before,\n.arap-root *::after {\n box-sizing: border-box;\n}\n.arap-root button {\n font: inherit;\n cursor: pointer;\n color: inherit;\n text-transform: none;\n letter-spacing: normal;\n transition: background-color 0.15s, border-color 0.15s;\n}\n.arap-root button:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n.arap-root button:focus-visible,\n.arap-panel:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 3px;\n}\n.arap-root .arap-btn {\n position: fixed;\n z-index: 2147483001;\n bottom: max(16px, env(safe-area-inset-bottom));\n right: max(16px, env(safe-area-inset-right));\n width: 56px;\n height: 56px;\n padding: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px solid var(--arap-surface);\n border-radius: 50%;\n background: var(--arap-accent);\n color: #fff;\n box-shadow: 0 4px 12px #0f172a26, 0 10px 24px #0f172a14;\n}\n.arap-root .arap-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-root .arap-btn[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-position=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-panel {\n position: fixed;\n z-index: 2147483000;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n right: max(16px, env(safe-area-inset-right));\n width: min(400px, calc(100vw - 32px));\n max-height: calc(100vh - 120px);\n max-height: calc(100dvh - 120px - env(safe-area-inset-bottom));\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 20px;\n border: 1px solid var(--arap-divider);\n border-radius: 16px;\n background: var(--arap-surface);\n box-shadow: 0 8px 16px #0f172a0d, 0 20px 48px #0f172a1a;\n}\n.arap-root .arap-panel[hidden] {\n display: none !important;\n}\n.arap-root .arap-panel[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-panel[data-position=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-heading {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: 8px;\n padding-bottom: 18px;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-heading-copy {\n min-width: 0;\n}\n.arap-heading h2 {\n margin: 0;\n font: 700 22px/1.3 system-ui, sans-serif;\n letter-spacing: -0.025em;\n color: var(--arap-text);\n overflow-wrap: anywhere;\n}\n.arap-description {\n margin: 6px 0 0;\n color: var(--arap-muted);\n font: 14px/1.5 system-ui, sans-serif;\n overflow-wrap: anywhere;\n}\n.arap-heading button {\n flex: none;\n width: 44px;\n height: 44px;\n margin-top: -6px;\n border: 1px solid transparent;\n border-radius: 8px;\n background: transparent;\n color: var(--arap-muted);\n font-size: 28px;\n line-height: 1;\n}\n.arap-heading button:hover {\n background: var(--arap-control);\n border-color: var(--arap-border);\n}\n.arap-feature {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n gap: 10px 12px;\n padding: 18px 0;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-feature:last-child {\n border: 0;\n padding-bottom: 0;\n}\n.arap-label {\n display: flex;\n align-items: center;\n gap: 10px;\n font-weight: 500;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n.arap-icon {\n flex: none;\n width: 22px;\n height: 22px;\n display: inline-block;\n vertical-align: middle;\n}\n.arap-controls {\n display: flex;\n align-items: stretch;\n border: 1px solid var(--arap-border);\n border-radius: 9px;\n overflow: hidden;\n background: var(--arap-control);\n}\n.arap-root .arap-btn-sm {\n flex: none;\n width: 44px;\n height: 44px;\n border: 0;\n border-radius: 0;\n background: transparent;\n font-size: 22px;\n}\n.arap-root .arap-btn-sm:hover:not(:disabled) {\n background: var(--arap-selected);\n color: var(--arap-accent);\n}\n.arap-root .arap-controls button:focus-visible {\n outline-offset: -4px;\n}\n.arap-value {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 56px;\n padding: 0 6px;\n text-align: center;\n font-weight: 600;\n border-inline: 1px solid var(--arap-divider);\n background: var(--arap-surface);\n}\n.arap-segmented {\n grid-column: 1 / -1;\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n}\n.arap-root .arap-segment {\n flex: 1 1 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-muted);\n overflow-wrap: anywhere;\n}\n.arap-root .arap-segment:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-root .arap-segment-active {\n background: var(--arap-accent);\n color: #fff;\n border-color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-segment-active:hover {\n background: var(--arap-accent-hover);\n color: #fff;\n}\n.arap-check {\n flex: none;\n font-size: 15px;\n line-height: 1;\n}\n.arap-root .arap-toggle {\n position: relative;\n width: 56px;\n height: 44px;\n padding: 0;\n border: 0;\n border-radius: 10px;\n background: transparent;\n}\n.arap-toggle::before {\n content: "";\n position: absolute;\n inset: 6px 0;\n border: 2px solid #64748b;\n border-radius: 20px;\n background: #e2e8f0;\n}\n.arap-toggle-knob {\n position: absolute;\n top: 10px;\n left: 4px;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n background: #475569;\n pointer-events: none;\n transition: transform 0.15s;\n}\n.arap-toggle-active::before {\n background: var(--arap-accent);\n border-color: var(--arap-accent);\n}\n.arap-toggle-active .arap-toggle-knob {\n transform: translateX(24px);\n background: #fff;\n}\n.arap-toggle-active .arap-toggle-knob::after {\n content: "\\2713";\n display: block;\n color: var(--arap-accent);\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: center;\n}\n.arap-root .arap-toggle:hover::before {\n border-color: var(--arap-accent);\n}\n.arap-feature-reset {\n display: block;\n}\n.arap-root .arap-reset-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n width: 100%;\n min-height: 48px;\n padding: 10px;\n border: 1px solid var(--arap-border);\n border-radius: 10px;\n background: var(--arap-control);\n color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-reset-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n@media (max-width: 380px) {\n .arap-root .arap-panel {\n padding: 16px;\n }\n .arap-heading h2 {\n font-size: 20px;\n }\n .arap-feature-stepper {\n grid-template-columns: minmax(0, 1fr);\n }\n .arap-controls {\n width: 100%;\n }\n .arap-value {\n flex: 1;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .arap-root *,\n .arap-root *::before,\n .arap-root *::after {\n transition: none !important;\n animation: none !important;\n }\n}\n@media (forced-colors: active) {\n .arap-root {\n --arap-surface: Canvas;\n --arap-text: CanvasText;\n --arap-muted: CanvasText;\n --arap-border: ButtonText;\n --arap-divider: ButtonText;\n --arap-accent: Highlight;\n --arap-control: Canvas;\n --arap-selected: Canvas;\n }\n .arap-root button[aria-pressed=true] {\n outline: 2px solid Highlight;\n outline-offset: -4px;\n }\n .arap-root .arap-segment-active {\n color: HighlightText;\n background: Highlight;\n }\n .arap-toggle::before {\n border-color: ButtonText;\n background: Canvas;\n }\n .arap-toggle-knob {\n background: ButtonText;\n }\n .arap-toggle-active .arap-toggle-knob {\n background: Highlight;\n }\n .arap-toggle-active .arap-toggle-knob::after {\n color: HighlightText;\n }\n}\n.arap-root .arap-panel {\n display: flex;\n flex-direction: column;\n overflow: visible;\n}\n.arap-heading {\n flex: none;\n}\n.arap-tools {\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 0 3px;\n margin: 0 -3px;\n}\n.arap-tools:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: -3px;\n}\n.arap-quick-actions {\n position: relative;\n flex: none;\n display: flex;\n align-items: center;\n gap: 8px;\n padding-top: 14px;\n margin-top: 8px;\n border-top: 1px solid var(--arap-divider);\n}\n.arap-actions {\n flex: 1;\n min-width: 0;\n}\n.arap-actions:empty {\n display: none;\n}\n.arap-actions .arap-feature-reset {\n padding: 0;\n margin: 0;\n border: 0;\n}\n.arap-root .arap-position-button,\n.arap-root .arap-position-default,\n.arap-root .arap-position-arrows button {\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-accent);\n}\n.arap-root .arap-position-button:hover,\n.arap-root .arap-position-default:hover,\n.arap-root .arap-position-arrows button:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-position-popover {\n position: absolute;\n z-index: 1;\n bottom: calc(100% + 8px);\n left: 0;\n width: 100%;\n max-height: calc(100dvh - 160px);\n overflow: auto;\n padding: 14px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n box-shadow: 0 8px 24px #0f172a26;\n}\n.arap-position-popover[hidden] {\n display: none !important;\n}\n.arap-position-label {\n display: block;\n margin-bottom: 6px;\n font-weight: 600;\n}\n.arap-position-popover select {\n width: 100%;\n min-height: 44px;\n padding: 8px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n font: inherit;\n color: var(--arap-text);\n background: var(--arap-surface);\n}\n.arap-position-popover select:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-position-arrows {\n display: flex;\n justify-content: space-between;\n gap: 6px;\n margin-top: 10px;\n}\n.arap-position-default {\n width: 100%;\n margin-top: 8px;\n}\n.arap-root .arap-btn[data-draggable=true] {\n touch-action: none;\n user-select: none;\n cursor: grab;\n}\n.arap-root .arap-btn[data-dragging=true] {\n cursor: grabbing;\n}\n.arap-root .arap-btn[data-corner$=left],\n.arap-root .arap-panel[data-corner$=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-corner$=right],\n.arap-root .arap-panel[data-corner$=right] {\n left: auto;\n right: max(16px, env(safe-area-inset-right));\n}\n.arap-root .arap-btn[data-corner^=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-btn[data-corner^=bottom] {\n top: auto;\n bottom: max(16px, env(safe-area-inset-bottom));\n}\n.arap-root .arap-panel[data-corner^=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-root .arap-panel[data-corner^=bottom] {\n top: auto;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n}\n.arap-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n.arap-root .arap-skip-actions {\n position: absolute;\n top: 12px;\n left: 20px;\n width: 44px;\n height: 44px;\n clip-path: inset(50%);\n overflow: hidden;\n pointer-events: none;\n}\n.arap-root .arap-skip-actions:focus-visible {\n right: 20px;\n width: auto;\n height: auto;\n min-height: 44px;\n clip-path: none;\n pointer-events: auto;\n z-index: 2;\n padding: 8px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-accent);\n}\n.arap-skip-to-main {\n position: fixed;\n top: 12px;\n left: 16px;\n z-index: 2147483647;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n pointer-events: none;\n font-family: inherit;\n font-size: 0.9375rem;\n font-weight: 600;\n text-decoration: none;\n color: var(--arap-accent, #008060);\n background: var(--arap-surface, #ffffff);\n border-radius: 8px;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);\n}\n.arap-skip-to-main:focus,\n.arap-skip-to-main:focus-visible {\n width: auto;\n height: auto;\n min-height: 44px;\n margin: 0;\n padding: 10px 18px;\n clip-path: none;\n overflow: visible;\n white-space: normal;\n pointer-events: auto;\n border: 2px solid var(--arap-accent, #008060);\n outline: 3px solid var(--arap-accent, #008060);\n outline-offset: 3px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n@media (forced-colors: active) {\n .arap-skip-to-main {\n background: Canvas;\n color: CanvasText;\n border-color: Highlight;\n }\n .arap-skip-to-main:focus,\n .arap-skip-to-main:focus-visible {\n outline: 3px solid Highlight;\n }\n}\n@media (max-height: 480px) {\n .arap-root .arap-panel {\n top: max(16px, env(safe-area-inset-top)) !important;\n bottom: max(16px, env(safe-area-inset-bottom)) !important;\n max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;\n padding: 8px;\n }\n .arap-heading {\n padding-bottom: 8px;\n }\n .arap-heading h2 {\n font-size: 18px;\n }\n .arap-heading button {\n margin-top: 0;\n }\n .arap-description {\n display: none;\n }\n .arap-quick-actions {\n padding-top: 8px;\n margin-top: 0;\n }\n .arap-root .arap-reset-btn {\n min-height: 44px;\n }\n .arap-root .arap-btn[data-open=true] {\n visibility: hidden;\n }\n .arap-position-popover {\n max-height: calc(100dvh - 96px);\n }\n}\n.arap-statement {\n flex: none;\n padding-top: 10px;\n text-align: center;\n}\n.arap-statement-link {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 44px;\n padding: 6px 12px;\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 4px;\n font-size: 14px;\n font-weight: 500;\n border-radius: 8px;\n}\n.arap-statement-link:hover {\n color: var(--arap-accent-hover);\n background: var(--arap-selected);\n}\n.arap-statement-link:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-credits {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 2px;\n padding-top: 8px;\n color: var(--arap-muted);\n text-align: center;\n font-size: 11px;\n line-height: 1.4;\n}\n.arap-credits a {\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 2px;\n}\n.arap-credits a:hover {\n color: var(--arap-accent-hover);\n}\n.arap-credits a:focus-visible {\n outline: 2px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-root .arap-btn[data-large-controls=true] {\n width: 64px;\n height: 64px;\n min-width: 48px;\n min-height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] {\n width: min(440px, calc(100vw - 32px));\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-heading button {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 32px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-btn-sm {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 24px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-value {\n min-width: 64px;\n font-size: 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-segment {\n min-width: 48px;\n min-height: 48px;\n padding: 10px 14px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle {\n width: 64px;\n height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle::before {\n inset: 8px 0;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-knob {\n top: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-active .arap-toggle-knob {\n transform: translateX(28px);\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-reset-btn {\n min-height: 52px;\n font-size: 16px;\n padding: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-button,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-default,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-arrows button {\n min-width: 48px;\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-popover select {\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-statement-link {\n min-height: 48px;\n font-size: 15px;\n padding: 10px 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-skip-actions {\n min-width: 48px;\n min-height: 48px;\n}\n.arap-feature-card {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n}\n.arap-card-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-card-title {\n font-weight: 600;\n font-size: 15px;\n color: var(--arap-text);\n}\n.arap-card-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-status-badge {\n display: inline-flex;\n align-items: center;\n padding: 2px 8px;\n border-radius: 9999px;\n font-size: 11px;\n font-weight: 600;\n background: var(--arap-control);\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-card-alert {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n padding: 10px 12px;\n border-radius: 8px;\n font-size: 13px;\n line-height: 1.4;\n}\n.arap-alert-icon {\n flex: none;\n font-size: 16px;\n line-height: 1;\n}\n.arap-card-error {\n background: #fef2f2;\n border: 1px solid #fecaca;\n color: #991b1b;\n}\n.arap-card-unavailable {\n background: #f8fafc;\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n}\n.arap-card-permission {\n background: #fffbeb;\n border: 1px solid #fde68a;\n color: #92400e;\n}\n.arap-permission-content {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-permission-btn {\n align-self: flex-start;\n padding: 4px 10px;\n border: 1px solid #d97706;\n border-radius: 6px;\n background: #f59e0b;\n color: #fff;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n}\n.arap-permission-btn:hover {\n background: #d97706;\n}\n.arap-card-content {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.arap-choice-group {\n display: flex;\n flex-direction: column;\n gap: 6px;\n width: 100%;\n}\n.arap-choice-group-title {\n font-size: 12px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-choice-badge {\n font-size: 11px;\n padding: 1px 5px;\n border-radius: 4px;\n background: var(--arap-divider);\n color: var(--arap-muted);\n}\n.arap-segment-active .arap-choice-badge {\n background: rgba(255, 255, 255, 0.25);\n color: #fff;\n}\n.arap-stepper-control-wrapper {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n}\n.arap-slider-container {\n display: flex;\n align-items: center;\n padding: 4px 0;\n}\n.arap-slider {\n width: 100%;\n accent-color: var(--arap-accent);\n cursor: pointer;\n}\n.arap-search-count {\n padding: 6px 0;\n font-size: 12px;\n font-weight: 500;\n color: var(--arap-muted);\n}\n.arap-empty-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: 24px 16px;\n gap: 8px;\n}\n.arap-empty-icon {\n font-size: 32px;\n}\n.arap-empty-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-empty-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n}\n.arap-empty-btn,\n.arap-retry-btn {\n margin-top: 6px;\n padding: 8px 16px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n font-weight: 500;\n font-size: 13px;\n color: var(--arap-text);\n cursor: pointer;\n}\n.arap-empty-btn:hover,\n.arap-retry-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n color: var(--arap-accent);\n}\n.arap-profile-card {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n transition: border-color 0.15s, box-shadow 0.15s;\n}\n.arap-profile-card-active {\n border-color: var(--arap-accent);\n background: var(--arap-selected);\n box-shadow: 0 0 0 1px var(--arap-accent);\n}\n.arap-profile-header {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n.arap-profile-title-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-profile-title {\n margin: 0;\n font-size: 15px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-profile-active-badge {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-accent);\n background: #dbeafe;\n padding: 2px 8px;\n border-radius: 9999px;\n}\n.arap-profile-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-profile-affected {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-profile-affected-label {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-profile-chips {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n.arap-profile-chip {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 3px 8px;\n border-radius: 6px;\n background: var(--arap-control);\n border: 1px solid var(--arap-divider);\n font-size: 12px;\n color: var(--arap-text);\n}\n.arap-profile-actions {\n display: flex;\n gap: 8px;\n margin-top: 4px;\n}\n.arap-profile-apply-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-accent);\n color: #fff;\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-apply-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-profile-revert-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-muted);\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-revert-btn:hover {\n background: var(--arap-control);\n color: var(--arap-text);\n border-color: var(--arap-text);\n}\n.arap-notice {\n grid-column: 1 / -1;\n margin-top: 6px;\n padding: 8px 12px;\n border-radius: 8px;\n font-size: 12px;\n line-height: 1.45;\n background: #fefce8;\n border: 1px solid #fef08a;\n color: #854d0e;\n}\n.arap-notice-warning {\n background: #fffbeb;\n border-color: #fde68a;\n color: #92400e;\n}\n.arap-reading-mask {\n position: fixed !important;\n left: 0 !important;\n right: 0 !important;\n pointer-events: none !important;\n user-select: none !important;\n -webkit-user-select: none !important;\n touch-action: none !important;\n z-index: 2147482999 !important;\n}\n.arap-reading-guide {\n position: fixed !important;\n left: 0 !important;\n right: 0 !important;\n pointer-events: none !important;\n user-select: none !important;\n -webkit-user-select: none !important;\n touch-action: none !important;\n z-index: 2147482999 !important;\n}\n.arap-feature-expandable {\n flex-direction: column !important;\n align-items: stretch !important;\n}\n.arap-accessible-tooltip {\n position: fixed !important;\n z-index: 2147483646 !important;\n max-width: 320px !important;\n min-width: 48px !important;\n box-sizing: border-box !important;\n padding: 6px 12px !important;\n background: #0f172a !important;\n color: #ffffff !important;\n font-family:\n -apple-system,\n BlinkMacSystemFont,\n "Segoe UI",\n Roboto,\n "Helvetica Neue",\n Arial,\n sans-serif !important;\n font-size: 13px !important;\n line-height: 1.4 !important;\n font-weight: 500 !important;\n border-radius: 6px !important;\n box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;\n pointer-events: auto !important;\n word-break: break-word !important;\n white-space: normal !important;\n opacity: 0 !important;\n visibility: hidden !important;\n transition: opacity 120ms ease, transform 120ms ease !important;\n transform: translateY(2px) !important;\n}\n.arap-accessible-tooltip[data-visible=true] {\n opacity: 1 !important;\n visibility: visible !important;\n transform: translateY(0) !important;\n}\n.arap-accessible-tooltip[data-placement=top] {\n transform: translateY(-2px) !important;\n}\n.arap-accessible-tooltip[data-placement=top][data-visible=true] {\n transform: translateY(0) !important;\n}\n@media (forced-colors: active) {\n .arap-accessible-tooltip {\n background: Canvas !important;\n color: CanvasText !important;\n border: 2px solid Highlight !important;\n box-shadow: none !important;\n }\n}\n.arap-navigator-dialog {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n margin-top: 10px;\n padding: 10px;\n background: var(--arap-control, #f1f5f9);\n border: 1px solid var(--arap-border, #e2e8f0);\n border-radius: 8px;\n box-sizing: border-box;\n}\n.arap-navigator-tabs {\n display: flex;\n gap: 4px;\n border-bottom: 1px solid var(--arap-border, #cbd5e1);\n padding-bottom: 6px;\n}\n.arap-navigator-tab {\n flex: 1;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n padding: 6px 10px;\n font-size: 12px;\n font-weight: 600;\n color: var(--arap-muted, #64748b);\n background: transparent;\n border: none;\n border-radius: 6px;\n cursor: pointer;\n transition: all 120ms ease;\n}\n.arap-navigator-tab:hover {\n color: var(--arap-text, #0f172a);\n background: rgba(0, 0, 0, 0.04);\n}\n.arap-navigator-tab-active {\n color: var(--arap-accent, #008060) !important;\n background: var(--arap-selected, #f0fdf4) !important;\n}\n.arap-navigator-search-box {\n width: 100%;\n}\n.arap-navigator-search {\n width: 100%;\n box-sizing: border-box;\n padding: 6px 10px;\n font-size: 12px;\n border: 1px solid var(--arap-border, #cbd5e1);\n border-radius: 6px;\n background: var(--arap-surface, #ffffff);\n color: var(--arap-text, #0f172a);\n}\n.arap-navigator-search:focus {\n outline: 2px solid var(--arap-accent, #008060);\n outline-offset: 1px;\n}\n.arap-navigator-content {\n max-height: 240px;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.arap-navigator-list {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n.arap-navigator-item {\n margin: 0;\n padding: 0;\n}\n.arap-navigator-jump-btn {\n width: 100%;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 6px 8px;\n font-size: 12px;\n font-weight: 500;\n text-align: left;\n background: var(--arap-surface, #ffffff);\n border: 1px solid var(--arap-border, #e2e8f0);\n border-radius: 6px;\n color: var(--arap-text, #0f172a);\n cursor: pointer;\n transition: background 100ms ease, border-color 100ms ease;\n}\n.arap-navigator-jump-btn:hover,\n.arap-navigator-jump-btn:focus-visible {\n background: var(--arap-selected, #f0fdf4);\n border-color: var(--arap-accent, #008060);\n outline: 2px solid var(--arap-accent, #008060);\n outline-offset: -1px;\n}\n.arap-navigator-badge {\n display: inline-block;\n padding: 2px 6px;\n font-size: 10px;\n font-weight: 700;\n border-radius: 4px;\n flex-shrink: 0;\n}\n.arap-navigator-badge-h {\n background: #e0f2fe;\n color: #0369a1;\n}\n.arap-navigator-badge-l {\n background: #fef3c7;\n color: #b45309;\n}\n.arap-navigator-item-text {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.arap-navigator-empty {\n padding: 16px;\n font-size: 12px;\n text-align: center;\n color: var(--arap-muted, #64748b);\n font-style: italic;\n}\n.arap-profile-card {\n padding: 12px;\n border: 1px solid var(--arap-border, #e2e8f0);\n border-radius: 8px;\n background: var(--arap-card-bg, #ffffff);\n transition: border-color 0.15s ease, box-shadow 0.15s ease;\n}\n.arap-profile-card:hover {\n border-color: var(--arap-primary, #2563eb);\n}\n.arap-profile-card-active {\n border-color: var(--arap-primary, #2563eb);\n background: rgba(37, 99, 235, 0.03);\n box-shadow: 0 0 0 1px var(--arap-primary, #2563eb);\n}\n.arap-profile-header {\n margin-bottom: 8px;\n}\n.arap-profile-title-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 4px;\n}\n.arap-profile-title {\n margin: 0;\n font-size: 13px;\n font-weight: 600;\n color: var(--arap-text, #1e293b);\n}\n.arap-profile-active-badge {\n display: inline-block;\n padding: 2px 8px;\n font-size: 11px;\n font-weight: 600;\n border-radius: 9999px;\n background: #dbeafe;\n color: #1d4ed8;\n}\n.arap-profile-desc {\n margin: 0;\n font-size: 11px;\n color: var(--arap-muted, #64748b);\n line-height: 1.4;\n}\n.arap-profile-affected {\n margin-top: 8px;\n margin-bottom: 10px;\n}\n.arap-profile-affected-label {\n display: block;\n font-size: 10px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: var(--arap-muted, #94a3b8);\n margin-bottom: 4px;\n}\n.arap-profile-chips {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n}\n.arap-profile-chip {\n display: inline-block;\n padding: 2px 6px;\n font-size: 10px;\n background: var(--arap-chip-bg, #f1f5f9);\n color: var(--arap-text, #334155);\n border-radius: 4px;\n border: 1px solid var(--arap-chip-border, #e2e8f0);\n}\n.arap-profile-actions {\n display: flex;\n justify-content: flex-end;\n margin-top: 8px;\n}\n.arap-profile-apply-btn,\n.arap-profile-revert-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 36px;\n padding: 6px 14px;\n font-size: 12px;\n font-weight: 600;\n border-radius: 6px;\n cursor: pointer;\n transition: background 0.15s ease, border-color 0.15s ease;\n}\n.arap-profile-apply-btn {\n background: var(--arap-primary, #2563eb);\n color: #ffffff;\n border: 1px solid var(--arap-primary, #2563eb);\n}\n.arap-profile-apply-btn:hover {\n background: #1d4ed8;\n}\n.arap-profile-revert-btn {\n background: #ffffff;\n color: #dc2626;\n border: 1px solid #fca5a5;\n}\n.arap-profile-revert-btn:hover {\n background: #fef2f2;\n border-color: #f87171;\n}\n.arap-large-controls .arap-profile-apply-btn,\n.arap-large-controls .arap-profile-revert-btn {\n min-height: 48px;\n padding: 10px 18px;\n font-size: 14px;\n}\n@media (prefers-reduced-motion: reduce) {\n .arap-profile-card,\n .arap-profile-apply-btn,\n .arap-profile-revert-btn,\n .arap-preset-card {\n transition: none !important;\n }\n}\n.arap-preset-card {\n transition: border-color 0.15s ease, box-shadow 0.15s ease;\n}\n.arap-preset-card:hover {\n border-color: var(--arap-border-hover, #cbd5e1);\n}\n.arap-large-controls .arap-preset-card button {\n min-height: 48px;\n padding: 10px 16px;\n font-size: 14px;\n}\n');
|
|
27
|
+
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:\n 15px/1.5 system-ui,\n -apple-system,\n BlinkMacSystemFont,\n "Segoe UI",\n Roboto,\n "Noto Sans Sinhala",\n "Iskoola Pota",\n "Noto Sans Tamil",\n "Latha",\n "Nirmala UI",\n sans-serif;\n color: var(--arap-text);\n text-align: start;\n letter-spacing: normal;\n}\n.arap-root *,\n.arap-root *::before,\n.arap-root *::after {\n box-sizing: border-box;\n}\n.arap-root button {\n font: inherit;\n cursor: pointer;\n color: inherit;\n text-transform: none;\n letter-spacing: normal;\n transition: background-color 0.15s, border-color 0.15s;\n}\n.arap-root button:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n.arap-root button:focus-visible,\n.arap-panel:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 3px;\n}\n.arap-root .arap-btn {\n position: fixed;\n z-index: 2147483001;\n bottom: max(16px, env(safe-area-inset-bottom));\n right: max(16px, env(safe-area-inset-right));\n width: 56px;\n height: 56px;\n padding: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px solid var(--arap-surface);\n border-radius: 50%;\n background: var(--arap-accent);\n color: #fff;\n box-shadow: 0 4px 12px #0f172a26, 0 10px 24px #0f172a14;\n}\n.arap-root .arap-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-root .arap-btn[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-position=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-panel {\n position: fixed;\n z-index: 2147483000;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n right: max(16px, env(safe-area-inset-right));\n width: min(400px, calc(100vw - 32px));\n max-height: calc(100vh - 120px);\n max-height: calc(100dvh - 120px - env(safe-area-inset-bottom));\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 20px;\n border: 1px solid var(--arap-divider);\n border-radius: 16px;\n background: var(--arap-surface);\n box-shadow: 0 8px 16px #0f172a0d, 0 20px 48px #0f172a1a;\n}\n.arap-root .arap-panel[hidden] {\n display: none !important;\n}\n.arap-root .arap-panel[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-panel[data-position=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-heading {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: 8px;\n padding-bottom: 18px;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-heading-copy {\n min-width: 0;\n}\n.arap-heading h2 {\n margin: 0;\n font: 700 22px/1.3 system-ui, sans-serif;\n letter-spacing: -0.025em;\n color: var(--arap-text);\n overflow-wrap: anywhere;\n}\n.arap-description {\n margin: 6px 0 0;\n color: var(--arap-muted);\n font: 14px/1.5 system-ui, sans-serif;\n overflow-wrap: anywhere;\n}\n.arap-heading button {\n flex: none;\n width: 44px;\n height: 44px;\n margin-top: -6px;\n border: 1px solid transparent;\n border-radius: 8px;\n background: transparent;\n color: var(--arap-muted);\n font-size: 28px;\n line-height: 1;\n}\n.arap-heading button:hover {\n background: var(--arap-control);\n border-color: var(--arap-border);\n}\n.arap-feature {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n gap: 10px 12px;\n padding: 18px 0;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-feature:last-child {\n border: 0;\n padding-bottom: 0;\n}\n.arap-label {\n display: flex;\n align-items: center;\n gap: 10px;\n font-weight: 500;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n.arap-icon {\n flex: none;\n width: 22px;\n height: 22px;\n display: inline-block;\n vertical-align: middle;\n}\n.arap-controls {\n display: flex;\n align-items: stretch;\n border: 1px solid var(--arap-border);\n border-radius: 9px;\n overflow: hidden;\n background: var(--arap-control);\n}\n.arap-root .arap-btn-sm {\n flex: none;\n width: 44px;\n height: 44px;\n border: 0;\n border-radius: 0;\n background: transparent;\n font-size: 22px;\n}\n.arap-root .arap-btn-sm:hover:not(:disabled) {\n background: var(--arap-selected);\n color: var(--arap-accent);\n}\n.arap-root .arap-controls button:focus-visible {\n outline-offset: -4px;\n}\n.arap-value {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 56px;\n padding: 0 6px;\n text-align: center;\n font-weight: 600;\n border-inline: 1px solid var(--arap-divider);\n background: var(--arap-surface);\n}\n.arap-segmented {\n grid-column: 1 / -1;\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n}\n.arap-root .arap-segment {\n flex: 1 1 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-muted);\n overflow-wrap: anywhere;\n}\n.arap-root .arap-segment:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-root .arap-segment-active {\n background: var(--arap-accent);\n color: #fff;\n border-color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-segment-active:hover {\n background: var(--arap-accent-hover);\n color: #fff;\n}\n.arap-check {\n flex: none;\n font-size: 15px;\n line-height: 1;\n}\n.arap-root .arap-toggle {\n position: relative;\n width: 56px;\n height: 44px;\n padding: 0;\n border: 0;\n border-radius: 10px;\n background: transparent;\n}\n.arap-toggle::before {\n content: "";\n position: absolute;\n inset: 6px 0;\n border: 2px solid #64748b;\n border-radius: 20px;\n background: #e2e8f0;\n}\n.arap-toggle-knob {\n position: absolute;\n top: 10px;\n left: 4px;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n background: #475569;\n pointer-events: none;\n transition: transform 0.15s;\n}\n.arap-toggle-active::before {\n background: var(--arap-accent);\n border-color: var(--arap-accent);\n}\n.arap-toggle-active .arap-toggle-knob {\n transform: translateX(24px);\n background: #fff;\n}\n.arap-toggle-active .arap-toggle-knob::after {\n content: "\\2713";\n display: block;\n color: var(--arap-accent);\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: center;\n}\n.arap-root .arap-toggle:hover::before {\n border-color: var(--arap-accent);\n}\n.arap-feature-reset {\n display: block;\n}\n.arap-root .arap-reset-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n width: 100%;\n min-height: 48px;\n padding: 10px;\n border: 1px solid var(--arap-border);\n border-radius: 10px;\n background: var(--arap-control);\n color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-reset-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n@media (max-width: 380px) {\n .arap-root .arap-panel {\n padding: 16px;\n }\n .arap-heading h2 {\n font-size: 20px;\n }\n .arap-feature-stepper {\n grid-template-columns: minmax(0, 1fr);\n }\n .arap-controls {\n width: 100%;\n }\n .arap-value {\n flex: 1;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .arap-root *,\n .arap-root *::before,\n .arap-root *::after {\n transition: none !important;\n animation: none !important;\n }\n}\n@media (forced-colors: active) {\n .arap-root {\n --arap-surface: Canvas;\n --arap-text: CanvasText;\n --arap-muted: CanvasText;\n --arap-border: ButtonText;\n --arap-divider: ButtonText;\n --arap-accent: Highlight;\n --arap-control: Canvas;\n --arap-selected: Canvas;\n }\n .arap-root button[aria-pressed=true] {\n outline: 2px solid Highlight;\n outline-offset: -4px;\n }\n .arap-root .arap-segment-active {\n color: HighlightText;\n background: Highlight;\n }\n .arap-toggle::before {\n border-color: ButtonText;\n background: Canvas;\n }\n .arap-toggle-knob {\n background: ButtonText;\n }\n .arap-toggle-active .arap-toggle-knob {\n background: Highlight;\n }\n .arap-toggle-active .arap-toggle-knob::after {\n color: HighlightText;\n }\n}\n.arap-root .arap-panel {\n display: flex;\n flex-direction: column;\n overflow: visible;\n}\n.arap-heading {\n flex: none;\n}\n.arap-tools {\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 0 3px;\n margin: 0 -3px;\n}\n.arap-tools:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: -3px;\n}\n.arap-quick-actions {\n position: relative;\n flex: none;\n display: flex;\n align-items: center;\n gap: 8px;\n padding-top: 14px;\n margin-top: 8px;\n border-top: 1px solid var(--arap-divider);\n}\n.arap-actions {\n flex: 1;\n min-width: 0;\n}\n.arap-actions:empty {\n display: none;\n}\n.arap-actions .arap-feature-reset {\n padding: 0;\n margin: 0;\n border: 0;\n}\n.arap-root .arap-position-button,\n.arap-root .arap-position-default,\n.arap-root .arap-position-arrows button {\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-accent);\n}\n.arap-root .arap-position-button:hover,\n.arap-root .arap-position-default:hover,\n.arap-root .arap-position-arrows button:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-position-popover {\n position: absolute;\n z-index: 1;\n bottom: calc(100% + 8px);\n left: 0;\n width: 100%;\n max-height: calc(100dvh - 160px);\n overflow: auto;\n padding: 14px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n box-shadow: 0 8px 24px #0f172a26;\n}\n.arap-position-popover[hidden] {\n display: none !important;\n}\n.arap-position-label {\n display: block;\n margin-bottom: 6px;\n font-weight: 600;\n}\n.arap-position-popover select {\n width: 100%;\n min-height: 44px;\n padding: 8px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n font: inherit;\n color: var(--arap-text);\n background: var(--arap-surface);\n}\n.arap-position-popover select:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-position-arrows {\n display: flex;\n justify-content: space-between;\n gap: 6px;\n margin-top: 10px;\n}\n.arap-position-default {\n width: 100%;\n margin-top: 8px;\n}\n.arap-root .arap-btn[data-draggable=true] {\n touch-action: none;\n user-select: none;\n cursor: grab;\n}\n.arap-root .arap-btn[data-dragging=true] {\n cursor: grabbing;\n}\n.arap-root .arap-btn[data-corner$=left],\n.arap-root .arap-panel[data-corner$=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-corner$=right],\n.arap-root .arap-panel[data-corner$=right] {\n left: auto;\n right: max(16px, env(safe-area-inset-right));\n}\n.arap-root .arap-btn[data-corner^=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-btn[data-corner^=bottom] {\n top: auto;\n bottom: max(16px, env(safe-area-inset-bottom));\n}\n.arap-root .arap-panel[data-corner^=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-root .arap-panel[data-corner^=bottom] {\n top: auto;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n}\n.arap-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n.arap-root .arap-skip-actions {\n position: absolute;\n top: 12px;\n left: 20px;\n width: 44px;\n height: 44px;\n clip-path: inset(50%);\n overflow: hidden;\n pointer-events: none;\n}\n.arap-root .arap-skip-actions:focus-visible {\n right: 20px;\n width: auto;\n height: auto;\n min-height: 44px;\n clip-path: none;\n pointer-events: auto;\n z-index: 2;\n padding: 8px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-accent);\n}\n.arap-skip-to-main {\n position: fixed;\n top: 12px;\n left: 16px;\n z-index: 2147483647;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n pointer-events: none;\n font-family: inherit;\n font-size: 0.9375rem;\n font-weight: 600;\n text-decoration: none;\n color: var(--arap-accent, #008060);\n background: var(--arap-surface, #ffffff);\n border-radius: 8px;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);\n}\n.arap-skip-to-main:focus,\n.arap-skip-to-main:focus-visible {\n width: auto;\n height: auto;\n min-height: 44px;\n margin: 0;\n padding: 10px 18px;\n clip-path: none;\n overflow: visible;\n white-space: normal;\n pointer-events: auto;\n border: 2px solid var(--arap-accent, #008060);\n outline: 3px solid var(--arap-accent, #008060);\n outline-offset: 3px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n@media (forced-colors: active) {\n .arap-skip-to-main {\n background: Canvas;\n color: CanvasText;\n border-color: Highlight;\n }\n .arap-skip-to-main:focus,\n .arap-skip-to-main:focus-visible {\n outline: 3px solid Highlight;\n }\n}\n@media (max-height: 480px) {\n .arap-root .arap-panel {\n top: max(16px, env(safe-area-inset-top)) !important;\n bottom: max(16px, env(safe-area-inset-bottom)) !important;\n max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;\n padding: 8px;\n }\n .arap-heading {\n padding-bottom: 8px;\n }\n .arap-heading h2 {\n font-size: 18px;\n }\n .arap-heading button {\n margin-top: 0;\n }\n .arap-description {\n display: none;\n }\n .arap-quick-actions {\n padding-top: 8px;\n margin-top: 0;\n }\n .arap-root .arap-reset-btn {\n min-height: 44px;\n }\n .arap-root .arap-btn[data-open=true] {\n visibility: hidden;\n }\n .arap-position-popover {\n max-height: calc(100dvh - 96px);\n }\n}\n.arap-statement {\n flex: none;\n padding-top: 10px;\n text-align: center;\n}\n.arap-statement-link {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 44px;\n padding: 6px 12px;\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 4px;\n font-size: 14px;\n font-weight: 500;\n border-radius: 8px;\n}\n.arap-statement-link:hover {\n color: var(--arap-accent-hover);\n background: var(--arap-selected);\n}\n.arap-statement-link:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-credits {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 2px;\n padding-top: 8px;\n color: var(--arap-muted);\n text-align: center;\n font-size: 11px;\n line-height: 1.4;\n}\n.arap-credits a {\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 2px;\n}\n.arap-credits a:hover {\n color: var(--arap-accent-hover);\n}\n.arap-credits a:focus-visible {\n outline: 2px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-root .arap-btn[data-large-controls=true] {\n width: 64px;\n height: 64px;\n min-width: 48px;\n min-height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] {\n width: min(440px, calc(100vw - 32px));\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-heading button {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 32px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-btn-sm {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 24px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-value {\n min-width: 64px;\n font-size: 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-segment {\n min-width: 48px;\n min-height: 48px;\n padding: 10px 14px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle {\n width: 64px;\n height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle::before {\n inset: 8px 0;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-knob {\n top: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-active .arap-toggle-knob {\n transform: translateX(28px);\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-reset-btn {\n min-height: 52px;\n font-size: 16px;\n padding: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-button,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-default,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-arrows button {\n min-width: 48px;\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-popover select {\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-statement-link {\n min-height: 48px;\n font-size: 15px;\n padding: 10px 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-skip-actions {\n min-width: 48px;\n min-height: 48px;\n}\n.arap-feature-card {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n}\n.arap-card-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-card-title {\n font-weight: 600;\n font-size: 15px;\n color: var(--arap-text);\n}\n.arap-card-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-status-badge {\n display: inline-flex;\n align-items: center;\n padding: 2px 8px;\n border-radius: 9999px;\n font-size: 11px;\n font-weight: 600;\n background: var(--arap-control);\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-card-alert {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n padding: 10px 12px;\n border-radius: 8px;\n font-size: 13px;\n line-height: 1.4;\n}\n.arap-alert-icon {\n flex: none;\n font-size: 16px;\n line-height: 1;\n}\n.arap-card-error {\n background: #fef2f2;\n border: 1px solid #fecaca;\n color: #991b1b;\n}\n.arap-card-unavailable {\n background: #f8fafc;\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n}\n.arap-card-permission {\n background: #fffbeb;\n border: 1px solid #fde68a;\n color: #92400e;\n}\n.arap-permission-content {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-permission-btn {\n align-self: flex-start;\n padding: 4px 10px;\n border: 1px solid #d97706;\n border-radius: 6px;\n background: #f59e0b;\n color: #fff;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n}\n.arap-permission-btn:hover {\n background: #d97706;\n}\n.arap-card-content {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.arap-choice-group {\n display: flex;\n flex-direction: column;\n gap: 6px;\n width: 100%;\n}\n.arap-choice-group-title {\n font-size: 12px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-choice-badge {\n font-size: 11px;\n padding: 1px 5px;\n border-radius: 4px;\n background: var(--arap-divider);\n color: var(--arap-muted);\n}\n.arap-segment-active .arap-choice-badge {\n background: rgba(255, 255, 255, 0.25);\n color: #fff;\n}\n.arap-stepper-control-wrapper {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n}\n.arap-slider-container {\n display: flex;\n align-items: center;\n padding: 4px 0;\n}\n.arap-slider {\n width: 100%;\n accent-color: var(--arap-accent);\n cursor: pointer;\n}\n.arap-search-count {\n padding: 6px 0;\n font-size: 12px;\n font-weight: 500;\n color: var(--arap-muted);\n}\n.arap-empty-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: 24px 16px;\n gap: 8px;\n}\n.arap-empty-icon {\n font-size: 32px;\n}\n.arap-empty-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-empty-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n}\n.arap-empty-btn,\n.arap-retry-btn {\n margin-top: 6px;\n padding: 8px 16px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n font-weight: 500;\n font-size: 13px;\n color: var(--arap-text);\n cursor: pointer;\n}\n.arap-empty-btn:hover,\n.arap-retry-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n color: var(--arap-accent);\n}\n.arap-profile-card {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n transition: border-color 0.15s, box-shadow 0.15s;\n}\n.arap-profile-card-active {\n border-color: var(--arap-accent);\n background: var(--arap-selected);\n box-shadow: 0 0 0 1px var(--arap-accent);\n}\n.arap-profile-header {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n.arap-profile-title-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-profile-title {\n margin: 0;\n font-size: 15px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-profile-active-badge {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-accent);\n background: #dbeafe;\n padding: 2px 8px;\n border-radius: 9999px;\n}\n.arap-profile-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-profile-affected {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-profile-affected-label {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-profile-chips {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n.arap-profile-chip {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 3px 8px;\n border-radius: 6px;\n background: var(--arap-control);\n border: 1px solid var(--arap-divider);\n font-size: 12px;\n color: var(--arap-text);\n}\n.arap-profile-actions {\n display: flex;\n gap: 8px;\n margin-top: 4px;\n}\n.arap-profile-apply-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-accent);\n color: #fff;\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-apply-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-profile-revert-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-muted);\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-revert-btn:hover {\n background: var(--arap-control);\n color: var(--arap-text);\n border-color: var(--arap-text);\n}\n.arap-notice {\n grid-column: 1 / -1;\n margin-top: 6px;\n padding: 8px 12px;\n border-radius: 8px;\n font-size: 12px;\n line-height: 1.45;\n background: #fefce8;\n border: 1px solid #fef08a;\n color: #854d0e;\n}\n.arap-notice-warning {\n background: #fffbeb;\n border-color: #fde68a;\n color: #92400e;\n}\n.arap-reading-mask {\n position: fixed !important;\n left: 0 !important;\n right: 0 !important;\n pointer-events: none !important;\n user-select: none !important;\n -webkit-user-select: none !important;\n touch-action: none !important;\n z-index: 2147482999 !important;\n}\n.arap-reading-guide {\n position: fixed !important;\n left: 0 !important;\n right: 0 !important;\n pointer-events: none !important;\n user-select: none !important;\n -webkit-user-select: none !important;\n touch-action: none !important;\n z-index: 2147482999 !important;\n}\n.arap-feature-expandable {\n flex-direction: column !important;\n align-items: stretch !important;\n}\n.arap-accessible-tooltip {\n position: fixed !important;\n z-index: 2147483646 !important;\n max-width: 320px !important;\n min-width: 48px !important;\n box-sizing: border-box !important;\n padding: 6px 12px !important;\n background: #0f172a !important;\n color: #ffffff !important;\n font-family:\n -apple-system,\n BlinkMacSystemFont,\n "Segoe UI",\n Roboto,\n "Helvetica Neue",\n Arial,\n sans-serif !important;\n font-size: 13px !important;\n line-height: 1.4 !important;\n font-weight: 500 !important;\n border-radius: 6px !important;\n box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;\n pointer-events: auto !important;\n word-break: break-word !important;\n white-space: normal !important;\n opacity: 0 !important;\n visibility: hidden !important;\n transition: opacity 120ms ease, transform 120ms ease !important;\n transform: translateY(2px) !important;\n}\n.arap-accessible-tooltip[data-visible=true] {\n opacity: 1 !important;\n visibility: visible !important;\n transform: translateY(0) !important;\n}\n.arap-accessible-tooltip[data-placement=top] {\n transform: translateY(-2px) !important;\n}\n.arap-accessible-tooltip[data-placement=top][data-visible=true] {\n transform: translateY(0) !important;\n}\n@media (forced-colors: active) {\n .arap-accessible-tooltip {\n background: Canvas !important;\n color: CanvasText !important;\n border: 2px solid Highlight !important;\n box-shadow: none !important;\n }\n}\n.arap-navigator-dialog {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n margin-top: 10px;\n padding: 10px;\n background: var(--arap-control, #f1f5f9);\n border: 1px solid var(--arap-border, #e2e8f0);\n border-radius: 8px;\n box-sizing: border-box;\n}\n.arap-navigator-tabs {\n display: flex;\n gap: 4px;\n border-bottom: 1px solid var(--arap-border, #cbd5e1);\n padding-bottom: 6px;\n}\n.arap-navigator-tab {\n flex: 1;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n padding: 6px 10px;\n font-size: 12px;\n font-weight: 600;\n color: var(--arap-muted, #64748b);\n background: transparent;\n border: none;\n border-radius: 6px;\n cursor: pointer;\n transition: all 120ms ease;\n}\n.arap-navigator-tab:hover {\n color: var(--arap-text, #0f172a);\n background: rgba(0, 0, 0, 0.04);\n}\n.arap-navigator-tab-active {\n color: var(--arap-accent, #008060) !important;\n background: var(--arap-selected, #f0fdf4) !important;\n}\n.arap-navigator-search-box {\n width: 100%;\n}\n.arap-navigator-search {\n width: 100%;\n box-sizing: border-box;\n padding: 6px 10px;\n font-size: 12px;\n border: 1px solid var(--arap-border, #cbd5e1);\n border-radius: 6px;\n background: var(--arap-surface, #ffffff);\n color: var(--arap-text, #0f172a);\n}\n.arap-navigator-search:focus {\n outline: 2px solid var(--arap-accent, #008060);\n outline-offset: 1px;\n}\n.arap-navigator-content {\n max-height: 240px;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.arap-navigator-list {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n.arap-navigator-item {\n margin: 0;\n padding: 0;\n}\n.arap-navigator-jump-btn {\n width: 100%;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 6px 8px;\n font-size: 12px;\n font-weight: 500;\n text-align: left;\n background: var(--arap-surface, #ffffff);\n border: 1px solid var(--arap-border, #e2e8f0);\n border-radius: 6px;\n color: var(--arap-text, #0f172a);\n cursor: pointer;\n transition: background 100ms ease, border-color 100ms ease;\n}\n.arap-navigator-jump-btn:hover,\n.arap-navigator-jump-btn:focus-visible {\n background: var(--arap-selected, #f0fdf4);\n border-color: var(--arap-accent, #008060);\n outline: 2px solid var(--arap-accent, #008060);\n outline-offset: -1px;\n}\n.arap-navigator-badge {\n display: inline-block;\n padding: 2px 6px;\n font-size: 10px;\n font-weight: 700;\n border-radius: 4px;\n flex-shrink: 0;\n}\n.arap-navigator-badge-h {\n background: #e0f2fe;\n color: #0369a1;\n}\n.arap-navigator-badge-l {\n background: #fef3c7;\n color: #b45309;\n}\n.arap-navigator-item-text {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.arap-navigator-empty {\n padding: 16px;\n font-size: 12px;\n text-align: center;\n color: var(--arap-muted, #64748b);\n font-style: italic;\n}\n.arap-profile-card {\n padding: 12px;\n border: 1px solid var(--arap-border, #e2e8f0);\n border-radius: 8px;\n background: var(--arap-card-bg, #ffffff);\n transition: border-color 0.15s ease, box-shadow 0.15s ease;\n}\n.arap-profile-card:hover {\n border-color: var(--arap-primary, #2563eb);\n}\n.arap-profile-card-active {\n border-color: var(--arap-primary, #2563eb);\n background: rgba(37, 99, 235, 0.03);\n box-shadow: 0 0 0 1px var(--arap-primary, #2563eb);\n}\n.arap-profile-header {\n margin-bottom: 8px;\n}\n.arap-profile-title-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 4px;\n}\n.arap-profile-title {\n margin: 0;\n font-size: 13px;\n font-weight: 600;\n color: var(--arap-text, #1e293b);\n}\n.arap-profile-active-badge {\n display: inline-block;\n padding: 2px 8px;\n font-size: 11px;\n font-weight: 600;\n border-radius: 9999px;\n background: #dbeafe;\n color: #1d4ed8;\n}\n.arap-profile-desc {\n margin: 0;\n font-size: 11px;\n color: var(--arap-muted, #64748b);\n line-height: 1.4;\n}\n.arap-profile-affected {\n margin-top: 8px;\n margin-bottom: 10px;\n}\n.arap-profile-affected-label {\n display: block;\n font-size: 10px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: var(--arap-muted, #94a3b8);\n margin-bottom: 4px;\n}\n.arap-profile-chips {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n}\n.arap-profile-chip {\n display: inline-block;\n padding: 2px 6px;\n font-size: 10px;\n background: var(--arap-chip-bg, #f1f5f9);\n color: var(--arap-text, #334155);\n border-radius: 4px;\n border: 1px solid var(--arap-chip-border, #e2e8f0);\n}\n.arap-profile-actions {\n display: flex;\n justify-content: flex-end;\n margin-top: 8px;\n}\n.arap-profile-apply-btn,\n.arap-profile-revert-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 36px;\n padding: 6px 14px;\n font-size: 12px;\n font-weight: 600;\n border-radius: 6px;\n cursor: pointer;\n transition: background 0.15s ease, border-color 0.15s ease;\n}\n.arap-profile-apply-btn {\n background: var(--arap-primary, #2563eb);\n color: #ffffff;\n border: 1px solid var(--arap-primary, #2563eb);\n}\n.arap-profile-apply-btn:hover {\n background: #1d4ed8;\n}\n.arap-profile-revert-btn {\n background: #ffffff;\n color: #dc2626;\n border: 1px solid #fca5a5;\n}\n.arap-profile-revert-btn:hover {\n background: #fef2f2;\n border-color: #f87171;\n}\n.arap-large-controls .arap-profile-apply-btn,\n.arap-large-controls .arap-profile-revert-btn {\n min-height: 48px;\n padding: 10px 18px;\n font-size: 14px;\n}\n@media (prefers-reduced-motion: reduce) {\n .arap-profile-card,\n .arap-profile-apply-btn,\n .arap-profile-revert-btn,\n .arap-preset-card {\n transition: none !important;\n }\n}\n.arap-preset-card {\n transition: border-color 0.15s ease, box-shadow 0.15s ease;\n}\n.arap-preset-card:hover {\n border-color: var(--arap-border-hover, #cbd5e1);\n}\n.arap-large-controls .arap-preset-card button {\n min-height: 48px;\n padding: 10px 16px;\n font-size: 14px;\n}\n.arap-root[dir=rtl],\n.arap-panel[dir=rtl] {\n direction: rtl;\n text-align: right;\n}\n.arap-panel[dir=rtl] .arap-heading {\n flex-direction: row-reverse;\n}\n.arap-panel[dir=rtl] .arap-position-arrows {\n direction: ltr;\n}\n.arap-search-input {\n width: 100%;\n box-sizing: border-box;\n padding: 6px 28px 6px 10px;\n font-size: 12px;\n border: 1px solid var(--arap-border, #cbd5e1);\n border-radius: 6px;\n background: var(--arap-surface, #ffffff);\n color: var(--arap-text, #0f172a);\n}\n.arap-panel[dir=rtl] .arap-search-input {\n padding: 6px 10px 6px 28px;\n}\n.arap-search-clear {\n position: absolute;\n inset-inline-end: 8px;\n top: 50%;\n transform: translateY(-50%);\n border: none;\n background: transparent;\n cursor: pointer;\n padding: 2px 6px;\n font-size: 14px;\n color: var(--arap-muted, #64748b);\n border-radius: 4px;\n}\n.arap-search-clear:hover {\n background: var(--arap-selected, #eff6ff);\n color: var(--arap-text, #0f172a);\n}\n.arap-reading-mode-backdrop {\n position: fixed;\n inset: 0;\n z-index: 2147483646;\n overflow-y: auto;\n display: flex;\n justify-content: center;\n align-items: flex-start;\n padding: 24px 16px;\n background: rgba(15, 23, 42, 0.45);\n backdrop-filter: blur(4px);\n -webkit-backdrop-filter: blur(4px);\n box-sizing: border-box;\n}\n.arap-reading-mode-backdrop[data-theme=sepia] {\n background: rgba(68, 51, 34, 0.45);\n}\n.arap-reading-mode-backdrop[data-theme=dark] {\n background: rgba(0, 0, 0, 0.75);\n}\n.arap-reading-mode-dialog {\n position: relative;\n width: 100%;\n max-width: 760px;\n min-height: 50vh;\n margin: 16px auto;\n border-radius: 12px;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.05);\n display: flex;\n flex-direction: column;\n outline: none;\n box-sizing: border-box;\n font-family:\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n "Segoe UI",\n Roboto,\n "Noto Sans Sinhala",\n "Noto Sans Tamil",\n sans-serif;\n transition: background-color 0.2s ease, color 0.2s ease;\n}\n.arap-reading-mode-backdrop[data-theme=light] .arap-reading-mode-dialog {\n background: #ffffff;\n color: #1e293b;\n border: 1px solid #e2e8f0;\n}\n.arap-reading-mode-backdrop[data-theme=sepia] .arap-reading-mode-dialog {\n background: #fbf0d9;\n color: #5f4b32;\n border: 1px solid #ebd5b3;\n}\n.arap-reading-mode-backdrop[data-theme=dark] .arap-reading-mode-dialog {\n background: #18181b;\n color: #f4f4f5;\n border: 1px solid #27272a;\n}\n.arap-reading-mode-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-wrap: wrap;\n gap: 12px;\n padding: 16px 24px;\n border-bottom: 1px solid rgba(148, 163, 184, 0.2);\n}\n.arap-reading-mode-meta {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 0.875rem;\n opacity: 0.85;\n}\n.arap-reading-mode-badge {\n font-weight: 600;\n text-transform: uppercase;\n font-size: 0.75rem;\n letter-spacing: 0.05em;\n padding: 2px 8px;\n border-radius: 4px;\n background: rgba(148, 163, 184, 0.15);\n}\n.arap-reading-mode-toolbar {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n.arap-reading-mode-theme-group,\n.arap-reading-mode-zoom-group {\n display: inline-flex;\n border-radius: 6px;\n border: 1px solid rgba(148, 163, 184, 0.25);\n overflow: hidden;\n}\n.arap-reader-theme-btn,\n.arap-reader-zoom-btn {\n min-height: 36px;\n min-width: 44px;\n padding: 4px 10px;\n border: none;\n background: transparent;\n color: inherit;\n font-size: 0.8125rem;\n font-weight: 500;\n cursor: pointer;\n transition: background-color 0.15s ease;\n}\n.arap-reader-theme-btn:not(:last-child),\n.arap-reader-zoom-btn:not(:last-child) {\n border-right: 1px solid rgba(148, 163, 184, 0.25);\n}\n.arap-reader-theme-btn.arap-active {\n background: rgba(148, 163, 184, 0.25);\n font-weight: 600;\n}\n.arap-reader-zoom-btn:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n.arap-reading-mode-close {\n min-width: 44px;\n min-height: 44px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n background: transparent;\n border: none;\n font-size: 1.5rem;\n line-height: 1;\n color: inherit;\n cursor: pointer;\n border-radius: 6px;\n}\n.arap-reading-mode-close:hover,\n.arap-reader-theme-btn:hover:not(:disabled),\n.arap-reader-zoom-btn:hover:not(:disabled) {\n background: rgba(148, 163, 184, 0.15);\n}\n.arap-reading-mode-content {\n padding: 32px 36px;\n flex: 1 1 auto;\n}\n.arap-reading-mode-title {\n margin: 0 0 12px 0;\n font-size: 2.125rem;\n line-height: 1.25;\n font-weight: 700;\n}\n.arap-reading-mode-byline {\n margin: 0 0 24px 0;\n font-size: 0.9375rem;\n opacity: 0.75;\n font-style: italic;\n}\n.arap-reading-mode-body {\n line-height: 1.8;\n font-size: 1.0625rem;\n}\n.arap-reading-mode-body p {\n margin: 0 0 1.5em 0;\n}\n.arap-reading-mode-body h2 {\n font-size: 1.5rem;\n margin: 1.75em 0 0.75em 0;\n font-weight: 600;\n}\n.arap-reading-mode-body h3 {\n font-size: 1.25rem;\n margin: 1.5em 0 0.5em 0;\n font-weight: 600;\n}\n.arap-reading-mode-body ul,\n.arap-reading-mode-body ol {\n margin: 0 0 1.5em 0;\n padding-left: 1.75em;\n}\n.arap-reading-mode-body li {\n margin-bottom: 0.5em;\n}\n.arap-reading-mode-body a {\n color: #0284c7;\n text-decoration: underline;\n text-underline-offset: 3px;\n}\n.arap-reading-mode-backdrop[data-theme=dark] .arap-reading-mode-body a {\n color: #38bdf8;\n}\n.arap-reading-mode-backdrop[data-theme=sepia] .arap-reading-mode-body a {\n color: #8c5b00;\n}\n.arap-reading-mode-body img {\n max-width: 100%;\n height: auto;\n border-radius: 8px;\n margin: 1.5em 0;\n display: block;\n}\n.arap-reading-mode-body figure {\n margin: 1.5em 0;\n}\n.arap-reading-mode-body figcaption {\n font-size: 0.875rem;\n opacity: 0.75;\n text-align: center;\n margin-top: 6px;\n}\n.arap-reading-mode-body blockquote {\n margin: 1.5em 0;\n padding: 12px 20px;\n border-left: 4px solid currentColor;\n opacity: 0.9;\n font-style: italic;\n}\n.arap-reading-mode-body pre {\n margin: 1.5em 0;\n padding: 16px;\n border-radius: 8px;\n background: rgba(148, 163, 184, 0.15);\n overflow-x: auto;\n font-size: 0.9rem;\n}\n.arap-reading-mode-body code {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n monospace;\n}\n.arap-reading-mode-footer {\n padding: 16px 24px;\n border-top: 1px solid rgba(148, 163, 184, 0.2);\n display: flex;\n justify-content: center;\n}\n.arap-reading-mode-exit-btn {\n min-height: 44px;\n padding: 8px 24px;\n border-radius: 6px;\n border: 1px solid rgba(148, 163, 184, 0.35);\n background: transparent;\n color: inherit;\n font-size: 0.9375rem;\n font-weight: 500;\n cursor: pointer;\n transition: background-color 0.15s ease;\n}\n.arap-reading-mode-exit-btn:hover {\n background: rgba(148, 163, 184, 0.15);\n}\n@media (max-width: 640px) {\n .arap-reading-mode-backdrop {\n padding: 0;\n }\n .arap-reading-mode-dialog {\n margin: 0;\n min-height: 100vh;\n border-radius: 0;\n border: none;\n }\n .arap-reading-mode-content {\n padding: 20px 16px;\n }\n .arap-reading-mode-title {\n font-size: 1.75rem;\n }\n}\n');
|
|
28
28
|
|
|
29
29
|
// src/core/AccessibilityPlugin.tsx
|
|
30
30
|
import {
|
|
@@ -342,7 +342,8 @@ for (const key of [
|
|
|
342
342
|
"focusHighlight",
|
|
343
343
|
"reduceMotion",
|
|
344
344
|
"tooltips",
|
|
345
|
-
"accessibleTooltips"
|
|
345
|
+
"accessibleTooltips",
|
|
346
|
+
"readingMode"
|
|
346
347
|
]) {
|
|
347
348
|
builtins[key] = {
|
|
348
349
|
defaultValue: false,
|
|
@@ -1940,6 +1941,7 @@ function AccessibilityPlugin({
|
|
|
1940
1941
|
document.addEventListener("arap:disable-feature", handler);
|
|
1941
1942
|
return () => document.removeEventListener("arap:disable-feature", handler);
|
|
1942
1943
|
}, [handleDisable]);
|
|
1944
|
+
const effectiveLocale = locale || (typeof document !== "undefined" ? document.documentElement.lang : void 0) || void 0;
|
|
1943
1945
|
useBuiltinEffects(active, handleDisable);
|
|
1944
1946
|
const value = useMemo(
|
|
1945
1947
|
() => ({
|
|
@@ -1957,7 +1959,7 @@ function AccessibilityPlugin({
|
|
|
1957
1959
|
resetAll,
|
|
1958
1960
|
registerReset,
|
|
1959
1961
|
unregisterReset,
|
|
1960
|
-
locale,
|
|
1962
|
+
locale: effectiveLocale,
|
|
1961
1963
|
statementUrl,
|
|
1962
1964
|
largeControls
|
|
1963
1965
|
}),
|
|
@@ -1976,7 +1978,7 @@ function AccessibilityPlugin({
|
|
|
1976
1978
|
resetAll,
|
|
1977
1979
|
registerReset,
|
|
1978
1980
|
unregisterReset,
|
|
1979
|
-
|
|
1981
|
+
effectiveLocale,
|
|
1980
1982
|
statementUrl,
|
|
1981
1983
|
largeControls
|
|
1982
1984
|
]
|
|
@@ -2021,6 +2023,12 @@ function WidgetPortal({ children }) {
|
|
|
2021
2023
|
import { useContext, useSyncExternalStore as useSyncExternalStore4 } from "react";
|
|
2022
2024
|
|
|
2023
2025
|
// src/core/i18n/en.ts
|
|
2026
|
+
var enCornerNames = {
|
|
2027
|
+
"bottom-right": "bottom right",
|
|
2028
|
+
"bottom-left": "bottom left",
|
|
2029
|
+
"top-right": "top right",
|
|
2030
|
+
"top-left": "top left"
|
|
2031
|
+
};
|
|
2024
2032
|
var enLocale = Object.freeze({
|
|
2025
2033
|
title: "Accessibility settings",
|
|
2026
2034
|
description: "Adjust your reading experience",
|
|
@@ -2050,13 +2058,217 @@ var enLocale = Object.freeze({
|
|
|
2050
2058
|
moveDown: "Move accessibility button down",
|
|
2051
2059
|
moveRight: "Move accessibility button right",
|
|
2052
2060
|
largeControlsLabel: "Oversized widget controls",
|
|
2061
|
+
cornerNames: enCornerNames,
|
|
2053
2062
|
formatPointPosition: (x, y) => `Button position: ${Math.round(x * 100)}% horizontally, ${Math.round(y * 100)}% vertically.`,
|
|
2054
|
-
formatCornerPosition: (corner) => `Button position: ${corner.split("-").join(" ")}
|
|
2063
|
+
formatCornerPosition: (corner) => `Button position: ${corner.split("-").join(" ")}.`,
|
|
2064
|
+
searchPlaceholder: "Search tools or profiles...",
|
|
2065
|
+
searchClearLabel: "Clear search query",
|
|
2066
|
+
formatSearchCount: (matched, total, query) => query ? `Showing ${matched} of ${total} tools matching "${query}"` : `Showing all ${total} tools`,
|
|
2067
|
+
emptySearchTitle: "No matching tools found",
|
|
2068
|
+
emptySearchDescription: "Try adjusting your search query or reset filters.",
|
|
2069
|
+
clearSearchLabel: "Clear search",
|
|
2070
|
+
formatProfileApplied: (profileName) => `\u2713 Profile "${profileName}" applied.`,
|
|
2071
|
+
formatProfileReverted: () => "Reverted to custom settings.",
|
|
2072
|
+
formatPresetSaved: (presetName) => `Preset "${presetName}" saved successfully.`,
|
|
2073
|
+
formatPresetApplied: (presetName) => `Preset "${presetName}" applied.`,
|
|
2074
|
+
formatPresetDeleted: (presetName) => `Preset "${presetName}" deleted.`,
|
|
2075
|
+
decreaseTextSize: "Decrease text size",
|
|
2076
|
+
increaseTextSize: "Increase text size",
|
|
2077
|
+
readingModeDescription: "Distraction-free article view",
|
|
2078
|
+
readingModeOpen: "Open Reading Mode",
|
|
2079
|
+
readingModeClose: "Close Reading Mode",
|
|
2080
|
+
readingModeFailed: "No readable article content found on this page.",
|
|
2081
|
+
formatReadingWords: (words) => `${words} words`,
|
|
2082
|
+
formatReadingTime: (minutes) => `${minutes} min read`,
|
|
2083
|
+
features: {
|
|
2084
|
+
textScale: "Bigger Text",
|
|
2085
|
+
lineHeight: "Line Height",
|
|
2086
|
+
letterSpacing: "Letter Spacing",
|
|
2087
|
+
wordSpacing: "Word Spacing",
|
|
2088
|
+
paragraphSpacing: "Paragraph Spacing",
|
|
2089
|
+
textAlign: "Text Align",
|
|
2090
|
+
fontFamily: "Readable Font",
|
|
2091
|
+
contrast: "Contrast",
|
|
2092
|
+
highlightLinks: "Highlight Links",
|
|
2093
|
+
focusOutline: "Focus Outline",
|
|
2094
|
+
reduceMotion: "Reduce Motion",
|
|
2095
|
+
cursorGuide: "Reading Guide",
|
|
2096
|
+
headingsNavigator: "Page Navigator",
|
|
2097
|
+
profiles: "Accessibility Profiles",
|
|
2098
|
+
presets: "Saved Presets",
|
|
2099
|
+
readingMode: "Reading Mode"
|
|
2100
|
+
}
|
|
2101
|
+
});
|
|
2102
|
+
|
|
2103
|
+
// src/core/i18n/si.ts
|
|
2104
|
+
var siCornerNames = {
|
|
2105
|
+
"bottom-right": "\u0DB4\u0DC4\u0DC5 \u0DAF\u0D9A\u0DD4\u0DAB",
|
|
2106
|
+
"bottom-left": "\u0DB4\u0DC4\u0DC5 \u0DC0\u0DB8",
|
|
2107
|
+
"top-right": "\u0D89\u0DC4\u0DC5 \u0DAF\u0D9A\u0DD4\u0DAB",
|
|
2108
|
+
"top-left": "\u0D89\u0DC4\u0DC5 \u0DC0\u0DB8"
|
|
2109
|
+
};
|
|
2110
|
+
var siLocale = Object.freeze({
|
|
2111
|
+
title: "\u0DB4\u0DCA\u200D\u0DBB\u0DC0\u0DDA\u0DC1\u0DCA\u200D\u0DBA\u0DAD\u0DCF \u0DC3\u0DD0\u0D9A\u0DC3\u0DD4\u0DB8\u0DCA",
|
|
2112
|
+
description: "\u0D94\u0DB6\u0DDA \u0D9A\u0DD2\u0DBA\u0DC0\u0DD3\u0DB8\u0DDA \u0D85\u0DAD\u0DCA\u0DAF\u0DD0\u0D9A\u0DD3\u0DB8 \u0DC3\u0D9A\u0DC3\u0DCF \u0D9C\u0DB1\u0DCA\u0DB1",
|
|
2113
|
+
closeLabel: "\u0DB4\u0DCA\u200D\u0DBB\u0DC0\u0DDA\u0DC1\u0DCA\u200D\u0DBA\u0DAD\u0DCF \u0DC3\u0DD0\u0D9A\u0DC3\u0DD4\u0DB8\u0DCA \u0DC0\u0DC3\u0DB1\u0DCA\u0DB1",
|
|
2114
|
+
skipToActions: "\u0D9A\u0DCA\u0DC2\u0DAB\u0DD2\u0D9A \u0D9A\u0DCA\u200D\u0DBB\u0DD2\u0DBA\u0DCF \u0DC0\u0DD9\u0DAD \u0DB8\u0D9F \u0DC4\u0DBB\u0DD2\u0DB1\u0DCA\u0DB1",
|
|
2115
|
+
skipToMain: "\u0DB4\u0DCA\u200D\u0DBB\u0DB0\u0DCF\u0DB1 \u0D85\u0DB1\u0DCA\u0DAD\u0DBB\u0DCA\u0D9C\u0DAD\u0DBA \u0DC0\u0DD9\u0DAD \u0DB8\u0D9F \u0DC4\u0DBB\u0DD2\u0DB1\u0DCA\u0DB1",
|
|
2116
|
+
toolsLabel: "\u0DB4\u0DCA\u200D\u0DBB\u0DC0\u0DDA\u0DC1\u0DCA\u200D\u0DBA\u0DAD\u0DCF \u0DB8\u0DD9\u0DC0\u0DBD\u0DB8\u0DCA",
|
|
2117
|
+
quickActionsLabel: "\u0D9A\u0DCA\u0DC2\u0DAB\u0DD2\u0D9A \u0D9A\u0DCA\u200D\u0DBB\u0DD2\u0DBA\u0DCF",
|
|
2118
|
+
resetLabel: "\u0DC3\u0DD2\u0DBA\u0DBD\u0DD4 \u0DB4\u0DCA\u200D\u0DBB\u0DC0\u0DDA\u0DC1\u0DCA\u200D\u0DBA\u0DAD\u0DCF \u0DC3\u0DD0\u0D9A\u0DC3\u0DD4\u0DB8\u0DCA \u0DBA\u0DC5\u0DD2 \u0DC3\u0D9A\u0DC3\u0DB1\u0DCA\u0DB1",
|
|
2119
|
+
resetAll: "\u0DC3\u0DD2\u0DBA\u0DBD\u0DCA\u0DBD \u0DBA\u0DC5\u0DD2 \u0DC3\u0D9A\u0DC3\u0DB1\u0DCA\u0DB1",
|
|
2120
|
+
statementLink: "\u0DB4\u0DCA\u200D\u0DBB\u0DC0\u0DDA\u0DC1\u0DCA\u200D\u0DBA\u0DAD\u0DCF \u0DB4\u0DCA\u200D\u0DBB\u0D9A\u0DCF\u0DC1\u0DBA",
|
|
2121
|
+
openInNewTab: "\u0DB1\u0DC0 \u0DA7\u0DD0\u0DB6\u0DBA\u0D9A \u0DC0\u0DD2\u0DC0\u0DD8\u0DAD \u0DC0\u0DDA",
|
|
2122
|
+
creditsPrefix: "\u0DC3\u0DD0\u0DBD\u0DC3\u0DD4\u0DB8\u0DCA \u0D9A\u0DBB \u0DB1\u0DD2\u0DBB\u0DCA\u0DB8\u0DCF\u0DAB\u0DBA \u0D9A\u0DC5\u0DDA",
|
|
2123
|
+
creditsName: "\u0DB4\u0DCA\u200D\u0DBB\u0DB6\u0DDD\u0DAF\u0DCA",
|
|
2124
|
+
documentationLink: "\u0DB1\u0DD2\u0DBD \u0DBD\u0DDA\u0D9B\u0DB1\u0D9C\u0DAD \u0D9A\u0DD2\u0DBB\u0DD3\u0DB8",
|
|
2125
|
+
buttonTitle: "\u0DB4\u0DCA\u200D\u0DBB\u0DC0\u0DDA\u0DC1\u0DCA\u200D\u0DBA\u0DAD\u0DCF\u0DC0",
|
|
2126
|
+
dragHelp: "\u0DC3\u0DCA\u0DAE\u0DCF\u0DB1\u0DBA \u0DB8\u0DCF\u0DBB\u0DD4 \u0D9A\u0DD2\u0DBB\u0DD3\u0DB8\u0DA7 \u0D85\u0DAF\u0DD2\u0DB1\u0DCA\u0DB1, \u0DB1\u0DD0\u0DAD\u0DC4\u0DDC\u0DAD\u0DCA Alt \u0DC3\u0DB8\u0D9F \u0D8A\u0DAD\u0DBD \u0DBA\u0DAD\u0DD4\u0DBB\u0DD4 \u0DB7\u0DCF\u0DC0\u0DD2\u0DAD\u0DCF \u0D9A\u0DBB\u0DB1\u0DCA\u0DB1. \u0DA0\u0DBD\u0DB1 \u0DB8\u0DD9\u0DB1\u0DD4\u0DC0 \u0D9A\u0DCA\u0DBD\u0DD2\u0D9A\u0DCA \u0DC3\u0DC4 \u0DBA\u0DAD\u0DD4\u0DBB\u0DD4\u0DB4\u0DD4\u0DC0\u0DBB\u0DD4 \u0DB4\u0DCF\u0DBD\u0DB1 \u0DC3\u0DB4\u0DBA\u0DBA\u0DD2.",
|
|
2127
|
+
positionLabel: "\u0DB6\u0DDC\u0DAD\u0DCA\u0DAD\u0DB8\u0DDA \u0DB4\u0DD2\u0DC4\u0DD2\u0DA7\u0DD3\u0DB8",
|
|
2128
|
+
moveButton: "\u0DB6\u0DDC\u0DAD\u0DCA\u0DAD\u0DB8 \u0D9C\u0DD9\u0DB1\u0DBA\u0DB1\u0DCA\u0DB1",
|
|
2129
|
+
moveButtonLabel: "\u0DB4\u0DCA\u200D\u0DBB\u0DC0\u0DDA\u0DC1\u0DCA\u200D\u0DBA\u0DAD\u0DCF \u0DB6\u0DDC\u0DAD\u0DCA\u0DAD\u0DB8 \u0D9C\u0DD9\u0DB1\u0DBA\u0DB1\u0DCA\u0DB1",
|
|
2130
|
+
buttonPositionSelectLabel: "\u0DB4\u0DCA\u200D\u0DBB\u0DC0\u0DDA\u0DC1\u0DCA\u200D\u0DBA\u0DAD\u0DCF \u0DB6\u0DDC\u0DAD\u0DCA\u0DAD\u0DB8\u0DDA \u0DB4\u0DD2\u0DC4\u0DD2\u0DA7\u0DD3\u0DB8",
|
|
2131
|
+
customPosition: "\u0D85\u0DB7\u0DD2\u0DBB\u0DD4\u0DA0\u0DD2 \u0DB4\u0DD2\u0DC4\u0DD2\u0DA7\u0DD3\u0DB8",
|
|
2132
|
+
resetPosition: "\u0DB6\u0DDC\u0DAD\u0DCA\u0DAD\u0DB8\u0DDA \u0DB4\u0DD2\u0DC4\u0DD2\u0DA7\u0DD3\u0DB8 \u0DBA\u0DC5\u0DD2 \u0DC3\u0D9A\u0DC3\u0DB1\u0DCA\u0DB1",
|
|
2133
|
+
doneMoving: "\u0DA0\u0DBD\u0DB1\u0DBA \u0D85\u0DC0\u0DC3\u0DB1\u0DCA",
|
|
2134
|
+
moveLeft: "\u0DB4\u0DCA\u200D\u0DBB\u0DC0\u0DDA\u0DC1\u0DCA\u200D\u0DBA\u0DAD\u0DCF \u0DB6\u0DDC\u0DAD\u0DCA\u0DAD\u0DB8 \u0DC0\u0DB8\u0DA7 \u0D9C\u0DD9\u0DB1\u0DBA\u0DB1\u0DCA\u0DB1",
|
|
2135
|
+
moveUp: "\u0DB4\u0DCA\u200D\u0DBB\u0DC0\u0DDA\u0DC1\u0DCA\u200D\u0DBA\u0DAD\u0DCF \u0DB6\u0DDC\u0DAD\u0DCA\u0DAD\u0DB8 \u0D89\u0DC4\u0DC5\u0DA7 \u0D9C\u0DD9\u0DB1\u0DBA\u0DB1\u0DCA\u0DB1",
|
|
2136
|
+
moveDown: "\u0DB4\u0DCA\u200D\u0DBB\u0DC0\u0DDA\u0DC1\u0DCA\u200D\u0DBA\u0DAD\u0DCF \u0DB6\u0DDC\u0DAD\u0DCA\u0DAD\u0DB8 \u0DB4\u0DC4\u0DC5\u0DA7 \u0D9C\u0DD9\u0DB1\u0DBA\u0DB1\u0DCA\u0DB1",
|
|
2137
|
+
moveRight: "\u0DB4\u0DCA\u200D\u0DBB\u0DC0\u0DDA\u0DC1\u0DCA\u200D\u0DBA\u0DAD\u0DCF \u0DB6\u0DDC\u0DAD\u0DCA\u0DAD\u0DB8 \u0DAF\u0D9A\u0DD4\u0DAB\u0DA7 \u0D9C\u0DD9\u0DB1\u0DBA\u0DB1\u0DCA\u0DB1",
|
|
2138
|
+
largeControlsLabel: "\u0DC0\u0DD2\u0DC1\u0DCF\u0DBD \u0DB4\u0DCA\u200D\u0DBB\u0DB8\u0DCF\u0DAB\u0DBA\u0DDA \u0DB4\u0DCF\u0DBD\u0DB1",
|
|
2139
|
+
cornerNames: siCornerNames,
|
|
2140
|
+
formatPointPosition: (x, y) => `\u0DB6\u0DDC\u0DAD\u0DCA\u0DAD\u0DB8\u0DDA \u0DB4\u0DD2\u0DC4\u0DD2\u0DA7\u0DD3\u0DB8: \u0DAD\u0DD2\u0DBB\u0DC3\u0DCA \u0D85\u0DAD\u0DA7 ${Math.round(x * 100)}%, \u0DC3\u0DD2\u0DBB\u0DC3\u0DCA \u0D85\u0DAD\u0DA7 ${Math.round(y * 100)}%.`,
|
|
2141
|
+
formatCornerPosition: (corner) => {
|
|
2142
|
+
const translated = siCornerNames[corner] ?? corner.split("-").join(" ");
|
|
2143
|
+
return `\u0DB6\u0DDC\u0DAD\u0DCA\u0DAD\u0DB8\u0DDA \u0DB4\u0DD2\u0DC4\u0DD2\u0DA7\u0DD3\u0DB8: ${translated}.`;
|
|
2144
|
+
},
|
|
2145
|
+
searchPlaceholder: "\u0DB8\u0DD9\u0DC0\u0DBD\u0DB8\u0DCA \u0DC4\u0DDD \u0DB4\u0DD0\u0DAD\u0DD2\u0D9A\u0DA9 \u0DC3\u0DDC\u0DBA\u0DB1\u0DCA\u0DB1...",
|
|
2146
|
+
searchClearLabel: "\u0DC3\u0DD9\u0DC0\u0DD4\u0DB8 \u0DC4\u0DD2\u0DC3\u0DCA \u0D9A\u0DBB\u0DB1\u0DCA\u0DB1",
|
|
2147
|
+
formatSearchCount: (matched, total, query) => query ? `\u0DB8\u0DD9\u0DC0\u0DBD\u0DB8\u0DCA ${total} \u0DB1\u0DCA "${query}" \u0DA7 \u0D9C\u0DD0\u0DBD\u0DB4\u0DD9\u0DB1 ${matched} \u0D9A\u0DCA \u0DB4\u0DD9\u0DB1\u0DCA\u0DC0\u0DBA\u0DD2` : `\u0DC3\u0DD2\u0DBA\u0DBD\u0DD4 \u0DB8\u0DD9\u0DC0\u0DBD\u0DB8\u0DCA ${total} \u0DB8 \u0DB4\u0DD9\u0DB1\u0DCA\u0DC0\u0DBA\u0DD2`,
|
|
2148
|
+
emptySearchTitle: "\u0D9C\u0DD0\u0DBD\u0DB4\u0DD9\u0DB1 \u0DB8\u0DD9\u0DC0\u0DBD\u0DB8\u0DCA \u0DC4\u0DB8\u0DD4 \u0DB1\u0DDC\u0DC0\u0DD3\u0DBA",
|
|
2149
|
+
emptySearchDescription: "\u0DC0\u0DD9\u0DB1\u0DAD\u0DCA \u0DC3\u0DD9\u0DC0\u0DD4\u0DB8\u0DCA \u0DB4\u0DAF\u0DBA\u0D9A\u0DCA \u0DB7\u0DCF\u0DC0\u0DD2\u0DAD\u0DCF \u0D9A\u0DBB \u0DB6\u0DBD\u0DB1\u0DCA\u0DB1 \u0DC4\u0DDD \u0DB4\u0DD9\u0DBB\u0DC4\u0DB1\u0DCA \u0DBA\u0DC5\u0DD2 \u0DC3\u0D9A\u0DC3\u0DB1\u0DCA\u0DB1.",
|
|
2150
|
+
clearSearchLabel: "\u0DC3\u0DD9\u0DC0\u0DD4\u0DB8 \u0DC4\u0DD2\u0DC3\u0DCA \u0D9A\u0DBB\u0DB1\u0DCA\u0DB1",
|
|
2151
|
+
formatProfileApplied: (profileName) => `\u2713 "${profileName}" \u0DB4\u0DD0\u0DAD\u0DD2\u0D9A\u0DA9 \u0DC3\u0D9A\u0DCA\u200D\u0DBB\u0DD2\u0DBA \u0D9A\u0DBB\u0DB1 \u0DBD\u0DAF\u0DD3.`,
|
|
2152
|
+
formatProfileReverted: () => "\u0DB4\u0DD0\u0DAD\u0DD2\u0D9A\u0DA9 \u0D89\u0DC0\u0DAD\u0DCA \u0D9A\u0DBB \u0D85\u0DB7\u0DD2\u0DBB\u0DD4\u0DA0\u0DD2 \u0DC3\u0DD0\u0D9A\u0DC3\u0DD4\u0DB8\u0DCA \u0DC0\u0DD9\u0DAD \u0DB8\u0DCF\u0DBB\u0DD4 \u0DC0\u0DD2\u0DBA.",
|
|
2153
|
+
formatPresetSaved: (presetName) => `"${presetName}" \u0DB4\u0DD9\u0DBB\u0DC3\u0DD0\u0D9A\u0DC3\u0DD4\u0DB8 \u0DC3\u0DCF\u0DBB\u0DCA\u0DAE\u0D9A\u0DC0 \u0DC3\u0DD4\u0DBB\u0D9A\u0DD2\u0DB1 \u0DBD\u0DAF\u0DD3.`,
|
|
2154
|
+
formatPresetApplied: (presetName) => `"${presetName}" \u0DB4\u0DD9\u0DBB\u0DC3\u0DD0\u0D9A\u0DC3\u0DD4\u0DB8 \u0D9A\u0DCA\u200D\u0DBB\u0DD2\u0DBA\u0DCF\u0DAD\u0DCA\u0DB8\u0D9A \u0D9A\u0DBB\u0DB1 \u0DBD\u0DAF\u0DD3.`,
|
|
2155
|
+
formatPresetDeleted: (presetName) => `"${presetName}" \u0DB4\u0DD9\u0DBB\u0DC3\u0DD0\u0D9A\u0DC3\u0DD4\u0DB8 \u0D89\u0DC0\u0DAD\u0DCA \u0D9A\u0DBB\u0DB1 \u0DBD\u0DAF\u0DD3.`,
|
|
2156
|
+
decreaseTextSize: "\u0D85\u0D9A\u0DD4\u0DBB\u0DD4 \u0DB4\u0DCA\u200D\u0DBB\u0DB8\u0DCF\u0DAB\u0DBA \u0D85\u0DA9\u0DD4 \u0D9A\u0DBB\u0DB1\u0DCA\u0DB1",
|
|
2157
|
+
increaseTextSize: "\u0D85\u0D9A\u0DD4\u0DBB\u0DD4 \u0DB4\u0DCA\u200D\u0DBB\u0DB8\u0DCF\u0DAB\u0DBA \u0DC0\u0DD0\u0DA9\u0DD2 \u0D9A\u0DBB\u0DB1\u0DCA\u0DB1",
|
|
2158
|
+
readingModeDescription: "\u0DB6\u0DCF\u0DB0\u0DCF\u0DC0\u0D9A\u0DD2\u0DB1\u0DCA \u0DAD\u0DDC\u0DBB \u0DBD\u0DD2\u0DB4\u0DD2 \u0D9A\u0DD2\u0DBA\u0DC0\u0DD3\u0DB8",
|
|
2159
|
+
readingModeOpen: "\u0D9A\u0DD2\u0DBA\u0DC0\u0DD3\u0DB8\u0DDA \u0DB4\u0DCA\u200D\u0DBB\u0D9A\u0DCF\u0DBB\u0DBA \u0D85\u0DBB\u0DB9\u0DB1\u0DCA\u0DB1",
|
|
2160
|
+
readingModeClose: "\u0D9A\u0DD2\u0DBA\u0DC0\u0DD3\u0DB8\u0DDA \u0DB4\u0DCA\u200D\u0DBB\u0D9A\u0DCF\u0DBB\u0DBA \u0DC0\u0DC3\u0DB1\u0DCA\u0DB1",
|
|
2161
|
+
readingModeFailed: "\u0DB8\u0DD9\u0DB8 \u0DB4\u0DD2\u0DA7\u0DD4\u0DC0\u0DD9\u0DC4\u0DD2 \u0D9A\u0DD2\u0DBA\u0DC0\u0DD2\u0DBA \u0DC4\u0DD0\u0D9A\u0DD2 \u0DBD\u0DD2\u0DB4\u0DD2 \u0D85\u0DB1\u0DCA\u0DAD\u0DBB\u0DCA\u0D9C\u0DAD\u0DBA\u0D9A\u0DCA \u0DC4\u0DB8\u0DD4 \u0DB1\u0DDC\u0DC0\u0DD3\u0DBA.",
|
|
2162
|
+
formatReadingWords: (words) => `\u0DC0\u0DA0\u0DB1 ${words}\u0D9A\u0DCA`,
|
|
2163
|
+
formatReadingTime: (minutes) => `\u0DB8\u0DD2\u0DB1\u0DD2\u0DAD\u0DCA\u0DAD\u0DD4 ${minutes}\u0D9A \u0D9A\u0DD2\u0DBA\u0DC0\u0DD3\u0DB8\u0D9A\u0DCA`,
|
|
2164
|
+
features: {
|
|
2165
|
+
textScale: "\u0DC0\u0DD2\u0DC1\u0DCF\u0DBD \u0D85\u0D9A\u0DD4\u0DBB\u0DD4",
|
|
2166
|
+
lineHeight: "\u0DB4\u0DDA\u0DC5\u0DD2 \u0DB4\u0DBB\u0DAD\u0DBB\u0DBA",
|
|
2167
|
+
letterSpacing: "\u0D85\u0D9A\u0DD4\u0DBB\u0DD4 \u0DB4\u0DBB\u0DAD\u0DBB\u0DBA",
|
|
2168
|
+
wordSpacing: "\u0DC0\u0DA0\u0DB1 \u0DB4\u0DBB\u0DAD\u0DBB\u0DBA",
|
|
2169
|
+
paragraphSpacing: "\u0DA1\u0DDA\u0DAF \u0DB4\u0DBB\u0DAD\u0DBB\u0DBA",
|
|
2170
|
+
textAlign: "\u0DB4\u0DD9\u0DC5 \u0DB4\u0DD9\u0DC5\u0D9C\u0DD0\u0DC3\u0DCA\u0DB8",
|
|
2171
|
+
fontFamily: "\u0DB4\u0DD0\u0DC4\u0DD0\u0DAF\u0DD2\u0DBD\u0DD2 \u0D85\u0D9A\u0DD4\u0DBB\u0DD4",
|
|
2172
|
+
contrast: "\u0DC0\u0DBB\u0DCA\u0DAB \u0DC0\u0DD9\u0DB1\u0DC3",
|
|
2173
|
+
highlightLinks: "\u0DC3\u0DB6\u0DD0\u0DB3\u0DD2 \u0D89\u0DC3\u0DCA\u0DB8\u0DAD\u0DD4 \u0D9A\u0DD2\u0DBB\u0DD3\u0DB8",
|
|
2174
|
+
focusOutline: "\u0DB1\u0DCF\u0DB7\u0DD2\u0D9C\u0DAD \u0DB8\u0DCF\u0DBA\u0DD2\u0DB8",
|
|
2175
|
+
reduceMotion: "\u0DA0\u0DBD\u0DB1\u0DBA \u0D85\u0DC0\u0DB8 \u0D9A\u0DD2\u0DBB\u0DD3\u0DB8",
|
|
2176
|
+
cursorGuide: "\u0D9A\u0DD2\u0DBA\u0DC0\u0DD3\u0DB8\u0DDA \u0DB8\u0D9F\u0DB4\u0DD9\u0DB1\u0DCA\u0DC0\u0DD4\u0DB8",
|
|
2177
|
+
headingsNavigator: "\u0DB4\u0DD2\u0DA7\u0DD4 \u0D9C\u0DC0\u0DDA\u0DC1\u0D9A\u0DBA",
|
|
2178
|
+
profiles: "\u0DB4\u0DCA\u200D\u0DBB\u0DC0\u0DDA\u0DC1\u0DCA\u200D\u0DBA\u0DAD\u0DCF \u0DB4\u0DD0\u0DAD\u0DD2\u0D9A\u0DA9",
|
|
2179
|
+
presets: "\u0DC3\u0DD4\u0DBB\u0D9A\u0DD2\u0DB1 \u0DBD\u0DAF \u0DB4\u0DD9\u0DBB\u0DC3\u0DD0\u0D9A\u0DC3\u0DD4\u0DB8\u0DCA",
|
|
2180
|
+
readingMode: "\u0D9A\u0DD2\u0DBA\u0DC0\u0DD3\u0DB8\u0DDA \u0DB8\u0DCF\u0DAF\u0DD2\u0DBD\u0DD2\u0DBA"
|
|
2181
|
+
}
|
|
2182
|
+
});
|
|
2183
|
+
|
|
2184
|
+
// src/core/i18n/ta.ts
|
|
2185
|
+
var taCornerNames = {
|
|
2186
|
+
"bottom-right": "\u0B95\u0BC0\u0BB4\u0BCD \u0BB5\u0BB2\u0BA4\u0BC1",
|
|
2187
|
+
"bottom-left": "\u0B95\u0BC0\u0BB4\u0BCD \u0B87\u0B9F\u0BA4\u0BC1",
|
|
2188
|
+
"top-right": "\u0BAE\u0BC7\u0BB2\u0BCD \u0BB5\u0BB2\u0BA4\u0BC1",
|
|
2189
|
+
"top-left": "\u0BAE\u0BC7\u0BB2\u0BCD \u0B87\u0B9F\u0BA4\u0BC1"
|
|
2190
|
+
};
|
|
2191
|
+
var taLocale = Object.freeze({
|
|
2192
|
+
title: "\u0B85\u0BA3\u0BC1\u0B95\u0BB2\u0BCD\u0BA4\u0BA9\u0BCD\u0BAE\u0BC8 \u0B85\u0BAE\u0BC8\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",
|
|
2193
|
+
description: "\u0B89\u0B99\u0BCD\u0B95\u0BB3\u0BCD \u0BB5\u0BBE\u0B9A\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1 \u0B85\u0BA9\u0BC1\u0BAA\u0BB5\u0BA4\u0BCD\u0BA4\u0BC8 \u0BAE\u0BBE\u0BB1\u0BCD\u0BB1\u0BBF\u0BAF\u0BAE\u0BC8\u0B95\u0BCD\u0B95\u0BB5\u0BC1\u0BAE\u0BCD",
|
|
2194
|
+
closeLabel: "\u0B85\u0BA3\u0BC1\u0B95\u0BB2\u0BCD\u0BA4\u0BA9\u0BCD\u0BAE\u0BC8 \u0B85\u0BAE\u0BC8\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BC8 \u0BAE\u0BC2\u0B9F\u0BC1\u0B95",
|
|
2195
|
+
skipToActions: "\u0BB5\u0BBF\u0BB0\u0BC8\u0BB5\u0BC1\u0B9A\u0BCD \u0B9A\u0BC6\u0BAF\u0BB2\u0BCD\u0B95\u0BB3\u0BC1\u0B95\u0BCD\u0B95\u0BC1\u0B9A\u0BCD \u0B9A\u0BC6\u0BB2\u0BCD\u0B95",
|
|
2196
|
+
skipToMain: "\u0BAE\u0BC1\u0B95\u0BCD\u0B95\u0BBF\u0BAF \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95\u0BA4\u0BCD\u0BA4\u0BBF\u0BB1\u0BCD\u0B95\u0BC1\u0B9A\u0BCD \u0B9A\u0BC6\u0BB2\u0BCD\u0B95",
|
|
2197
|
+
toolsLabel: "\u0B85\u0BA3\u0BC1\u0B95\u0BB2\u0BCD\u0BA4\u0BA9\u0BCD\u0BAE\u0BC8 \u0B95\u0BB0\u0BC1\u0BB5\u0BBF\u0B95\u0BB3\u0BCD",
|
|
2198
|
+
quickActionsLabel: "\u0BB5\u0BBF\u0BB0\u0BC8\u0BB5\u0BC1\u0B9A\u0BCD \u0B9A\u0BC6\u0BAF\u0BB2\u0BCD\u0B95\u0BB3\u0BCD",
|
|
2199
|
+
resetLabel: "\u0B85\u0BA9\u0BC8\u0BA4\u0BCD\u0BA4\u0BC1 \u0B85\u0BA3\u0BC1\u0B95\u0BB2\u0BCD\u0BA4\u0BA9\u0BCD\u0BAE\u0BC8 \u0B85\u0BAE\u0BC8\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BC8\u0BAF\u0BC1\u0BAE\u0BCD \u0BAE\u0BC0\u0B9F\u0BCD\u0B9F\u0BAE\u0BC8",
|
|
2200
|
+
resetAll: "\u0B85\u0BA9\u0BC8\u0BA4\u0BCD\u0BA4\u0BC8\u0BAF\u0BC1\u0BAE\u0BCD \u0BAE\u0BC0\u0B9F\u0BCD\u0B9F\u0BAE\u0BC8",
|
|
2201
|
+
statementLink: "\u0B85\u0BA3\u0BC1\u0B95\u0BB2\u0BCD\u0BA4\u0BA9\u0BCD\u0BAE\u0BC8 \u0B85\u0BB1\u0BBF\u0B95\u0BCD\u0B95\u0BC8",
|
|
2202
|
+
openInNewTab: "\u0BAA\u0BC1\u0BA4\u0BBF\u0BAF \u0BA4\u0BBE\u0BB5\u0BB2\u0BBF\u0BB2\u0BCD \u0BA4\u0BBF\u0BB1\u0B95\u0BCD\u0B95\u0BC1\u0BAE\u0BCD",
|
|
2203
|
+
creditsPrefix: "\u0BB5\u0B9F\u0BBF\u0BB5\u0BAE\u0BC8\u0BA4\u0BCD\u0BA4\u0BC1 \u0B89\u0BB0\u0BC1\u0BB5\u0BBE\u0B95\u0BCD\u0B95\u0BBF\u0BAF\u0BB5\u0BB0\u0BCD",
|
|
2204
|
+
creditsName: "\u0BAA\u0BBF\u0BB0\u0BAA\u0BCB\u0BA4\u0BCD",
|
|
2205
|
+
documentationLink: "\u0B85\u0BA4\u0BBF\u0B95\u0BBE\u0BB0\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD\u0BB5 \u0B86\u0BB5\u0BA3\u0B99\u0BCD\u0B95\u0BB3\u0BCD",
|
|
2206
|
+
buttonTitle: "\u0B85\u0BA3\u0BC1\u0B95\u0BB2\u0BCD\u0BA4\u0BA9\u0BCD\u0BAE\u0BC8",
|
|
2207
|
+
dragHelp: "\u0BA8\u0B95\u0BB0\u0BCD\u0BA4\u0BCD\u0BA4 \u0B87\u0BB4\u0BC1\u0B95\u0BCD\u0B95\u0BB5\u0BC1\u0BAE\u0BCD, \u0B85\u0BB2\u0BCD\u0BB2\u0BA4\u0BC1 Alt \u0BAE\u0BB1\u0BCD\u0BB1\u0BC1\u0BAE\u0BCD \u0B85\u0BAE\u0BCD\u0BAA\u0BC1\u0B95\u0BCD\u0B95\u0BC1\u0BB1\u0BBF\u0B95\u0BB3\u0BC8\u0BAA\u0BCD \u0BAA\u0BAF\u0BA9\u0BCD\u0BAA\u0B9F\u0BC1\u0BA4\u0BCD\u0BA4\u0BB5\u0BC1\u0BAE\u0BCD. \u0BA8\u0B95\u0BB0\u0BCD\u0BA4\u0BCD\u0BA4\u0BC1 \u0BAA\u0BCA\u0BA4\u0BCD\u0BA4\u0BBE\u0BA9\u0BCD \u0BAE\u0BC6\u0BA9\u0BC1 \u0B95\u0BBF\u0BB3\u0BBF\u0B95\u0BCD \u0BAE\u0BB1\u0BCD\u0BB1\u0BC1\u0BAE\u0BCD \u0BB5\u0BBF\u0B9A\u0BC8\u0BAA\u0BCD\u0BAA\u0BB2\u0B95\u0BC8 \u0B95\u0B9F\u0BCD\u0B9F\u0BC1\u0BAA\u0BCD\u0BAA\u0BBE\u0B9F\u0BC1\u0B95\u0BB3\u0BC8 \u0BB5\u0BB4\u0B99\u0BCD\u0B95\u0BC1\u0B95\u0BBF\u0BB1\u0BA4\u0BC1.",
|
|
2208
|
+
positionLabel: "\u0BAA\u0BCA\u0BA4\u0BCD\u0BA4\u0BBE\u0BA9\u0BCD \u0B85\u0BAE\u0BC8\u0BB5\u0BBF\u0B9F\u0BAE\u0BCD",
|
|
2209
|
+
moveButton: "\u0BAA\u0BCA\u0BA4\u0BCD\u0BA4\u0BBE\u0BA9\u0BC8 \u0BA8\u0B95\u0BB0\u0BCD\u0BA4\u0BCD\u0BA4\u0BC1",
|
|
2210
|
+
moveButtonLabel: "\u0B85\u0BA3\u0BC1\u0B95\u0BB2\u0BCD\u0BA4\u0BA9\u0BCD\u0BAE\u0BC8 \u0BAA\u0BCA\u0BA4\u0BCD\u0BA4\u0BBE\u0BA9\u0BC8 \u0BA8\u0B95\u0BB0\u0BCD\u0BA4\u0BCD\u0BA4\u0BC1",
|
|
2211
|
+
buttonPositionSelectLabel: "\u0B85\u0BA3\u0BC1\u0B95\u0BB2\u0BCD\u0BA4\u0BA9\u0BCD\u0BAE\u0BC8 \u0BAA\u0BCA\u0BA4\u0BCD\u0BA4\u0BBE\u0BA9\u0BCD \u0B85\u0BAE\u0BC8\u0BB5\u0BBF\u0B9F\u0BAE\u0BCD",
|
|
2212
|
+
customPosition: "\u0BA4\u0BA9\u0BBF\u0BAA\u0BCD\u0BAA\u0BAF\u0BA9\u0BCD \u0B85\u0BAE\u0BC8\u0BB5\u0BBF\u0B9F\u0BAE\u0BCD",
|
|
2213
|
+
resetPosition: "\u0BAA\u0BCA\u0BA4\u0BCD\u0BA4\u0BBE\u0BA9\u0BCD \u0B85\u0BAE\u0BC8\u0BB5\u0BBF\u0B9F\u0BA4\u0BCD\u0BA4\u0BC8 \u0BAE\u0BC0\u0B9F\u0BCD\u0B9F\u0BAE\u0BC8",
|
|
2214
|
+
doneMoving: "\u0BA8\u0B95\u0BB0\u0BCD\u0BA4\u0BCD\u0BA4\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BA8\u0BCD\u0BA4\u0BA4\u0BC1",
|
|
2215
|
+
moveLeft: "\u0B85\u0BA3\u0BC1\u0B95\u0BB2\u0BCD\u0BA4\u0BA9\u0BCD\u0BAE\u0BC8 \u0BAA\u0BCA\u0BA4\u0BCD\u0BA4\u0BBE\u0BA9\u0BC8 \u0B87\u0B9F\u0BA4\u0BC1\u0BAA\u0BC1\u0BB1\u0BAE\u0BCD \u0BA8\u0B95\u0BB0\u0BCD\u0BA4\u0BCD\u0BA4\u0BC1",
|
|
2216
|
+
moveUp: "\u0B85\u0BA3\u0BC1\u0B95\u0BB2\u0BCD\u0BA4\u0BA9\u0BCD\u0BAE\u0BC8 \u0BAA\u0BCA\u0BA4\u0BCD\u0BA4\u0BBE\u0BA9\u0BC8 \u0BAE\u0BC7\u0BB2\u0BC7 \u0BA8\u0B95\u0BB0\u0BCD\u0BA4\u0BCD\u0BA4\u0BC1",
|
|
2217
|
+
moveDown: "\u0B85\u0BA3\u0BC1\u0B95\u0BB2\u0BCD\u0BA4\u0BA9\u0BCD\u0BAE\u0BC8 \u0BAA\u0BCA\u0BA4\u0BCD\u0BA4\u0BBE\u0BA9\u0BC8 \u0B95\u0BC0\u0BB4\u0BC7 \u0BA8\u0B95\u0BB0\u0BCD\u0BA4\u0BCD\u0BA4\u0BC1",
|
|
2218
|
+
moveRight: "\u0B85\u0BA3\u0BC1\u0B95\u0BB2\u0BCD\u0BA4\u0BA9\u0BCD\u0BAE\u0BC8 \u0BAA\u0BCA\u0BA4\u0BCD\u0BA4\u0BBE\u0BA9\u0BC8 \u0BB5\u0BB2\u0BA4\u0BC1\u0BAA\u0BC1\u0BB1\u0BAE\u0BCD \u0BA8\u0B95\u0BB0\u0BCD\u0BA4\u0BCD\u0BA4\u0BC1",
|
|
2219
|
+
largeControlsLabel: "\u0BAA\u0BC6\u0BB0\u0BBF\u0BAF \u0BB5\u0BBF\u0B9F\u0BCD\u0B9C\u0BC6\u0B9F\u0BCD \u0B95\u0B9F\u0BCD\u0B9F\u0BC1\u0BAA\u0BCD\u0BAA\u0BBE\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",
|
|
2220
|
+
cornerNames: taCornerNames,
|
|
2221
|
+
formatPointPosition: (x, y) => `\u0BAA\u0BCA\u0BA4\u0BCD\u0BA4\u0BBE\u0BA9\u0BCD \u0B85\u0BAE\u0BC8\u0BB5\u0BBF\u0B9F\u0BAE\u0BCD: \u0B95\u0BBF\u0B9F\u0BC8\u0BAE\u0B9F\u0BCD\u0B9F\u0BAE\u0BBE\u0B95 ${Math.round(x * 100)}%, \u0B9A\u0BC6\u0B99\u0BCD\u0B95\u0BC1\u0BA4\u0BCD\u0BA4\u0BBE\u0B95 ${Math.round(y * 100)}%.`,
|
|
2222
|
+
formatCornerPosition: (corner) => {
|
|
2223
|
+
const translated = taCornerNames[corner] ?? corner.split("-").join(" ");
|
|
2224
|
+
return `\u0BAA\u0BCA\u0BA4\u0BCD\u0BA4\u0BBE\u0BA9\u0BCD \u0B85\u0BAE\u0BC8\u0BB5\u0BBF\u0B9F\u0BAE\u0BCD: ${translated}.`;
|
|
2225
|
+
},
|
|
2226
|
+
searchPlaceholder: "\u0B95\u0BB0\u0BC1\u0BB5\u0BBF\u0B95\u0BB3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BA4\u0BC1 \u0B9A\u0BC1\u0BAF\u0BB5\u0BBF\u0BB5\u0BB0\u0B99\u0BCD\u0B95\u0BB3\u0BC8\u0BA4\u0BCD \u0BA4\u0BC7\u0B9F\u0BC1\u0B95...",
|
|
2227
|
+
searchClearLabel: "\u0BA4\u0BC7\u0B9F\u0BB2\u0BC8 \u0B85\u0BB4\u0BBF",
|
|
2228
|
+
formatSearchCount: (matched, total, query) => query ? `\u0BAE\u0BCA\u0BA4\u0BCD\u0BA4\u0BAE\u0BC1\u0BB3\u0BCD\u0BB3 ${total} \u0B95\u0BB0\u0BC1\u0BB5\u0BBF\u0B95\u0BB3\u0BBF\u0BB2\u0BCD "${query}" \u0B89\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4\u0BC1\u0BAE\u0BCD ${matched} \u0B95\u0BBE\u0B9F\u0BCD\u0B9F\u0BAA\u0BCD\u0BAA\u0B9F\u0BC1\u0B95\u0BBF\u0BA9\u0BCD\u0BB1\u0BA9` : `\u0B85\u0BA9\u0BC8\u0BA4\u0BCD\u0BA4\u0BC1 ${total} \u0B95\u0BB0\u0BC1\u0BB5\u0BBF\u0B95\u0BB3\u0BC1\u0BAE\u0BCD \u0B95\u0BBE\u0B9F\u0BCD\u0B9F\u0BAA\u0BCD\u0BAA\u0B9F\u0BC1\u0B95\u0BBF\u0BA9\u0BCD\u0BB1\u0BA9`,
|
|
2229
|
+
emptySearchTitle: "\u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4\u0BC1\u0BAE\u0BCD \u0B95\u0BB0\u0BC1\u0BB5\u0BBF\u0B95\u0BB3\u0BCD \u0B8E\u0BA4\u0BC1\u0BB5\u0BC1\u0BAE\u0BCD \u0B95\u0BBF\u0B9F\u0BC8\u0B95\u0BCD\u0B95\u0BB5\u0BBF\u0BB2\u0BCD\u0BB2\u0BC8",
|
|
2230
|
+
emptySearchDescription: "\u0BB5\u0BC7\u0BB1\u0BC1 \u0BA4\u0BC7\u0B9F\u0BB2\u0BCD \u0BB5\u0BBE\u0BB0\u0BCD\u0BA4\u0BCD\u0BA4\u0BC8\u0BAF\u0BC8 \u0BAE\u0BC1\u0BAF\u0BB1\u0BCD\u0B9A\u0BBF\u0B95\u0BCD\u0B95\u0BB5\u0BC1\u0BAE\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BA4\u0BC1 \u0BB5\u0B9F\u0BBF\u0BAA\u0BCD\u0BAA\u0BBE\u0BA9\u0BCD\u0B95\u0BB3\u0BC8 \u0BAE\u0BC0\u0B9F\u0BCD\u0B9F\u0BAE\u0BC8\u0B95\u0BCD\u0B95\u0BB5\u0BC1\u0BAE\u0BCD.",
|
|
2231
|
+
clearSearchLabel: "\u0BA4\u0BC7\u0B9F\u0BB2\u0BC8 \u0B85\u0BB4\u0BBF",
|
|
2232
|
+
formatProfileApplied: (profileName) => `\u2713 "${profileName}" \u0B9A\u0BC1\u0BAF\u0BB5\u0BBF\u0BB5\u0BB0\u0BAE\u0BCD \u0B9A\u0BC6\u0BAF\u0BB2\u0BCD\u0BAA\u0B9F\u0BC1\u0BA4\u0BCD\u0BA4\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1.`,
|
|
2233
|
+
formatProfileReverted: () => "\u0B9A\u0BC1\u0BAF\u0BB5\u0BBF\u0BB5\u0BB0\u0BAE\u0BCD \u0B85\u0B95\u0BB1\u0BCD\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BC1 \u0BA4\u0BA9\u0BBF\u0BAA\u0BCD\u0BAA\u0BAF\u0BA9\u0BCD \u0B85\u0BAE\u0BC8\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BC1\u0B95\u0BCD\u0B95\u0BC1 \u0BAE\u0BBE\u0BB1\u0BCD\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1.",
|
|
2234
|
+
formatPresetSaved: (presetName) => `"${presetName}" \u0BAE\u0BC1\u0BA9\u0BCD\u0BA9\u0BAE\u0BC8\u0BB5\u0BC1 \u0BB5\u0BC6\u0BB1\u0BCD\u0BB1\u0BBF\u0B95\u0BB0\u0BAE\u0BBE\u0B95\u0B9A\u0BCD \u0B9A\u0BC7\u0BAE\u0BBF\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1.`,
|
|
2235
|
+
formatPresetApplied: (presetName) => `"${presetName}" \u0BAE\u0BC1\u0BA9\u0BCD\u0BA9\u0BAE\u0BC8\u0BB5\u0BC1 \u0B9A\u0BC6\u0BAF\u0BB2\u0BCD\u0BAA\u0B9F\u0BC1\u0BA4\u0BCD\u0BA4\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1.`,
|
|
2236
|
+
formatPresetDeleted: (presetName) => `"${presetName}" \u0BAE\u0BC1\u0BA9\u0BCD\u0BA9\u0BAE\u0BC8\u0BB5\u0BC1 \u0BA8\u0BC0\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1.`,
|
|
2237
|
+
decreaseTextSize: "\u0B89\u0BB0\u0BC8 \u0B85\u0BB3\u0BB5\u0BC8\u0B95\u0BCD \u0B95\u0BC1\u0BB1\u0BC8\u0B95\u0BCD\u0B95\u0BB5\u0BC1\u0BAE\u0BCD",
|
|
2238
|
+
increaseTextSize: "\u0B89\u0BB0\u0BC8 \u0B85\u0BB3\u0BB5\u0BC8 \u0B85\u0BA4\u0BBF\u0B95\u0BB0\u0BBF\u0B95\u0BCD\u0B95\u0BB5\u0BC1\u0BAE\u0BCD",
|
|
2239
|
+
readingModeDescription: "\u0B95\u0BB5\u0BA9\u0B9A\u0BCD\u0B9A\u0BBF\u0BA4\u0BB1\u0BB2\u0BB1\u0BCD\u0BB1 \u0B95\u0B9F\u0BCD\u0B9F\u0BC1\u0BB0\u0BC8 \u0BB5\u0BBE\u0B9A\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1",
|
|
2240
|
+
readingModeOpen: "\u0BB5\u0BBE\u0B9A\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1 \u0BAA\u0BAF\u0BA9\u0BCD\u0BAE\u0BC1\u0BB1\u0BC8\u0BAF\u0BC8\u0BA4\u0BCD \u0BA4\u0BBF\u0BB1",
|
|
2241
|
+
readingModeClose: "\u0BB5\u0BBE\u0B9A\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1 \u0BAA\u0BAF\u0BA9\u0BCD\u0BAE\u0BC1\u0BB1\u0BC8\u0BAF\u0BC8 \u0BAE\u0BC2\u0B9F\u0BC1",
|
|
2242
|
+
readingModeFailed: "\u0B87\u0BAA\u0BCD\u0BAA\u0B95\u0BCD\u0B95\u0BA4\u0BCD\u0BA4\u0BBF\u0BB2\u0BCD \u0BAA\u0B9F\u0BBF\u0B95\u0BCD\u0B95\u0B95\u0BCD\u0B95\u0BC2\u0B9F\u0BBF\u0BAF \u0B95\u0B9F\u0BCD\u0B9F\u0BC1\u0BB0\u0BC8 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95\u0BAE\u0BCD \u0B8E\u0BA4\u0BC1\u0BB5\u0BC1\u0BAE\u0BCD \u0B87\u0BB2\u0BCD\u0BB2\u0BC8.",
|
|
2243
|
+
formatReadingWords: (words) => `${words} \u0BB5\u0BBE\u0BB0\u0BCD\u0BA4\u0BCD\u0BA4\u0BC8\u0B95\u0BB3\u0BCD`,
|
|
2244
|
+
formatReadingTime: (minutes) => `${minutes} \u0BA8\u0BBF\u0BAE\u0BBF\u0B9F \u0BB5\u0BBE\u0B9A\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`,
|
|
2245
|
+
features: {
|
|
2246
|
+
textScale: "\u0BAA\u0BC6\u0BB0\u0BBF\u0BAF \u0B89\u0BB0\u0BC8",
|
|
2247
|
+
lineHeight: "\u0BB5\u0BB0\u0BBF \u0B87\u0B9F\u0BC8\u0BB5\u0BC6\u0BB3\u0BBF",
|
|
2248
|
+
letterSpacing: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1 \u0B87\u0B9F\u0BC8\u0BB5\u0BC6\u0BB3\u0BBF",
|
|
2249
|
+
wordSpacing: "\u0B9A\u0BCA\u0BB2\u0BCD \u0B87\u0B9F\u0BC8\u0BB5\u0BC6\u0BB3\u0BBF",
|
|
2250
|
+
paragraphSpacing: "\u0BAA\u0BA4\u0BCD\u0BA4\u0BBF \u0B87\u0B9F\u0BC8\u0BB5\u0BC6\u0BB3\u0BBF",
|
|
2251
|
+
textAlign: "\u0B89\u0BB0\u0BC8 \u0B9A\u0BC0\u0BB0\u0BAE\u0BC8\u0BAA\u0BCD\u0BAA\u0BC1",
|
|
2252
|
+
fontFamily: "\u0BA4\u0BC6\u0BB3\u0BBF\u0BB5\u0BBE\u0BA9 \u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0BB0\u0BC1",
|
|
2253
|
+
contrast: "\u0BAE\u0BBE\u0BB1\u0BC1\u0BAA\u0B9F\u0BCD\u0B9F \u0BB5\u0BA3\u0BCD\u0BA3\u0BAE\u0BCD",
|
|
2254
|
+
highlightLinks: "\u0B87\u0BA3\u0BC8\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BC8 \u0BAE\u0BC1\u0BA9\u0BCD\u0BA9\u0BBF\u0BB2\u0BC8\u0BAA\u0BCD\u0BAA\u0B9F\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1",
|
|
2255
|
+
focusOutline: "\u0B95\u0BB5\u0BA9 \u0B8E\u0BB2\u0BCD\u0BB2\u0BC8\u0B95\u0BCD\u0B95\u0BCB\u0B9F\u0BCD\u0B9F\u0BC1",
|
|
2256
|
+
reduceMotion: "\u0B87\u0BAF\u0B95\u0BCD\u0B95\u0BA4\u0BCD\u0BA4\u0BC8\u0B95\u0BCD \u0B95\u0BC1\u0BB1\u0BC8\u0BA4\u0BCD\u0BA4\u0BB2\u0BCD",
|
|
2257
|
+
cursorGuide: "\u0BB5\u0BBE\u0B9A\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1 \u0BB5\u0BB4\u0BBF\u0B95\u0BBE\u0B9F\u0BCD\u0B9F\u0BBF",
|
|
2258
|
+
headingsNavigator: "\u0BAA\u0B95\u0BCD\u0B95 \u0BB5\u0BB4\u0BBF\u0B95\u0BBE\u0B9F\u0BCD\u0B9F\u0BBF",
|
|
2259
|
+
profiles: "\u0B85\u0BA3\u0BC1\u0B95\u0BB2\u0BCD\u0BA4\u0BA9\u0BCD\u0BAE\u0BC8 \u0B9A\u0BC1\u0BAF\u0BB5\u0BBF\u0BB5\u0BB0\u0B99\u0BCD\u0B95\u0BB3\u0BCD",
|
|
2260
|
+
presets: "\u0B9A\u0BC7\u0BAE\u0BBF\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F \u0BAE\u0BC1\u0BA9\u0BCD\u0BA9\u0BAE\u0BC8\u0BB5\u0BC1\u0B95\u0BB3\u0BCD",
|
|
2261
|
+
readingMode: "\u0BB5\u0BBE\u0B9A\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1 \u0BAE\u0BC1\u0BB1\u0BC8"
|
|
2262
|
+
}
|
|
2055
2263
|
});
|
|
2056
2264
|
|
|
2057
2265
|
// src/core/i18n/index.ts
|
|
2058
2266
|
var dictionaries = {
|
|
2059
|
-
en: enLocale
|
|
2267
|
+
en: enLocale,
|
|
2268
|
+
si: siLocale,
|
|
2269
|
+
"si-lk": siLocale,
|
|
2270
|
+
ta: taLocale,
|
|
2271
|
+
"ta-lk": taLocale
|
|
2060
2272
|
};
|
|
2061
2273
|
var RTL_LOCALES = /* @__PURE__ */ new Set([
|
|
2062
2274
|
"ar",
|
|
@@ -2391,7 +2603,7 @@ function PositionControls() {
|
|
|
2391
2603
|
}),
|
|
2392
2604
|
children: [
|
|
2393
2605
|
/* @__PURE__ */ jsx5("option", { value: "custom", disabled: true, children: strings.customPosition }),
|
|
2394
|
-
corners.map((corner) => /* @__PURE__ */ jsx5("option", { value: corner, children: corner.split("-").join(" ") }, corner))
|
|
2606
|
+
corners.map((corner) => /* @__PURE__ */ jsx5("option", { value: corner, children: strings.cornerNames?.[corner] ?? corner.split("-").join(" ") }, corner))
|
|
2395
2607
|
]
|
|
2396
2608
|
}
|
|
2397
2609
|
),
|
|
@@ -2447,7 +2659,7 @@ function Panel({
|
|
|
2447
2659
|
locale
|
|
2448
2660
|
}) {
|
|
2449
2661
|
const ctx = useContext4(AccessibilityContext);
|
|
2450
|
-
const effectiveLocale = locale
|
|
2662
|
+
const effectiveLocale = locale || ctx.locale || (typeof document !== "undefined" ? document.documentElement.lang : void 0) || "en";
|
|
2451
2663
|
const strings = resolveLocaleStrings(effectiveLocale);
|
|
2452
2664
|
const panelTitle = title ?? strings.title;
|
|
2453
2665
|
const panelDescription = description === void 0 ? strings.description : description;
|
|
@@ -3297,6 +3509,10 @@ var drawings = {
|
|
|
3297
3509
|
/* @__PURE__ */ jsx7("path", { d: "M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75" })
|
|
3298
3510
|
] }),
|
|
3299
3511
|
presets: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z" }) }),
|
|
3512
|
+
readingMode: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
3513
|
+
/* @__PURE__ */ jsx7("path", { d: "M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z" }),
|
|
3514
|
+
/* @__PURE__ */ jsx7("path", { d: "M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z" })
|
|
3515
|
+
] }),
|
|
3300
3516
|
reset: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M3 10a9 9 0 1 1 1 7M3 4v6h6" }) })
|
|
3301
3517
|
};
|
|
3302
3518
|
function FeatureIcon({ name }) {
|
|
@@ -3407,13 +3623,17 @@ function FontSizeController({
|
|
|
3407
3623
|
}
|
|
3408
3624
|
|
|
3409
3625
|
// src/features/TextScaleController.tsx
|
|
3626
|
+
import { useContext as useContext7 } from "react";
|
|
3410
3627
|
import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
3411
3628
|
var FEATURE_KEY2 = "fontScale";
|
|
3412
3629
|
var DEFAULT_VALUE2 = 1;
|
|
3413
3630
|
function TextScaleController({
|
|
3414
3631
|
steps = TEXT_SCALE_STEPS,
|
|
3415
|
-
label
|
|
3632
|
+
label
|
|
3416
3633
|
} = {}) {
|
|
3634
|
+
const ctx = useContext7(AccessibilityContext);
|
|
3635
|
+
const strings = resolveLocaleStrings(ctx?.locale);
|
|
3636
|
+
const effectiveLabel = label ?? strings.features?.textScale ?? "Bigger Text";
|
|
3417
3637
|
const { value, setValue } = useAccessibility(
|
|
3418
3638
|
FEATURE_KEY2,
|
|
3419
3639
|
DEFAULT_VALUE2
|
|
@@ -3443,11 +3663,11 @@ function TextScaleController({
|
|
|
3443
3663
|
{
|
|
3444
3664
|
className: "arap-feature arap-feature-stepper",
|
|
3445
3665
|
role: "group",
|
|
3446
|
-
"aria-label":
|
|
3666
|
+
"aria-label": effectiveLabel,
|
|
3447
3667
|
children: [
|
|
3448
3668
|
/* @__PURE__ */ jsxs7("span", { className: "arap-label", children: [
|
|
3449
3669
|
/* @__PURE__ */ jsx9(FeatureIcon, { name: "fontSize" }),
|
|
3450
|
-
/* @__PURE__ */ jsx9("span", { children:
|
|
3670
|
+
/* @__PURE__ */ jsx9("span", { children: effectiveLabel })
|
|
3451
3671
|
] }),
|
|
3452
3672
|
/* @__PURE__ */ jsxs7("div", { className: "arap-controls", children: [
|
|
3453
3673
|
/* @__PURE__ */ jsx9(
|
|
@@ -3456,7 +3676,7 @@ function TextScaleController({
|
|
|
3456
3676
|
className: "arap-btn-sm",
|
|
3457
3677
|
onClick: handleDecrease,
|
|
3458
3678
|
disabled: isMin,
|
|
3459
|
-
"aria-label": "Decrease text size",
|
|
3679
|
+
"aria-label": strings.decreaseTextSize ?? "Decrease text size",
|
|
3460
3680
|
type: "button",
|
|
3461
3681
|
children: "\u2212"
|
|
3462
3682
|
}
|
|
@@ -3471,7 +3691,7 @@ function TextScaleController({
|
|
|
3471
3691
|
className: "arap-btn-sm",
|
|
3472
3692
|
onClick: handleIncrease,
|
|
3473
3693
|
disabled: isMax,
|
|
3474
|
-
"aria-label": "Increase text size",
|
|
3694
|
+
"aria-label": strings.increaseTextSize ?? "Increase text size",
|
|
3475
3695
|
type: "button",
|
|
3476
3696
|
children: "+"
|
|
3477
3697
|
}
|
|
@@ -5146,7 +5366,7 @@ var HeadingsNavigatorController = PageNavigatorController;
|
|
|
5146
5366
|
var PageStructureController = PageNavigatorController;
|
|
5147
5367
|
|
|
5148
5368
|
// src/features/ProfilesController.tsx
|
|
5149
|
-
import { useId as useId2, useMemo as useMemo2, useRef as useRef6, useState as useState8 } from "react";
|
|
5369
|
+
import { useContext as useContext9, useId as useId2, useMemo as useMemo2, useRef as useRef6, useState as useState8 } from "react";
|
|
5150
5370
|
|
|
5151
5371
|
// src/core/controls/ProfilePreviewCard.tsx
|
|
5152
5372
|
import { jsx as jsx31, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
@@ -5260,15 +5480,19 @@ function ProfilePreviewCard({
|
|
|
5260
5480
|
}
|
|
5261
5481
|
|
|
5262
5482
|
// src/core/controls/FeatureStatusState.tsx
|
|
5483
|
+
import { useContext as useContext8 } from "react";
|
|
5263
5484
|
import { jsx as jsx32, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
5264
5485
|
function SearchCount({
|
|
5265
5486
|
totalCount,
|
|
5266
5487
|
matchedCount,
|
|
5267
5488
|
query,
|
|
5268
5489
|
className = "",
|
|
5269
|
-
style
|
|
5490
|
+
style,
|
|
5491
|
+
locale
|
|
5270
5492
|
}) {
|
|
5271
|
-
const
|
|
5493
|
+
const ctx = useContext8(AccessibilityContext);
|
|
5494
|
+
const strings = resolveLocaleStrings(locale ?? ctx?.locale);
|
|
5495
|
+
const text = strings.formatSearchCount ? strings.formatSearchCount(matchedCount, totalCount, query) : query ? `Showing ${matchedCount} of ${totalCount} tools matching "${query}"` : `Showing all ${totalCount} tools`;
|
|
5272
5496
|
return /* @__PURE__ */ jsx32(
|
|
5273
5497
|
"div",
|
|
5274
5498
|
{
|
|
@@ -5281,14 +5505,20 @@ function SearchCount({
|
|
|
5281
5505
|
);
|
|
5282
5506
|
}
|
|
5283
5507
|
function EmptyState({
|
|
5284
|
-
title
|
|
5285
|
-
description
|
|
5286
|
-
actionLabel
|
|
5508
|
+
title,
|
|
5509
|
+
description,
|
|
5510
|
+
actionLabel,
|
|
5287
5511
|
onAction,
|
|
5288
5512
|
icon,
|
|
5289
5513
|
className = "",
|
|
5290
|
-
style
|
|
5514
|
+
style,
|
|
5515
|
+
locale
|
|
5291
5516
|
}) {
|
|
5517
|
+
const ctx = useContext8(AccessibilityContext);
|
|
5518
|
+
const strings = resolveLocaleStrings(locale ?? ctx?.locale);
|
|
5519
|
+
const resolvedTitle = title ?? strings.emptySearchTitle ?? "No matching tools found";
|
|
5520
|
+
const resolvedDescription = description ?? strings.emptySearchDescription ?? "Try adjusting your search query or reset filters.";
|
|
5521
|
+
const resolvedActionLabel = actionLabel ?? strings.clearSearchLabel ?? "Clear search";
|
|
5292
5522
|
return /* @__PURE__ */ jsxs30(
|
|
5293
5523
|
"div",
|
|
5294
5524
|
{
|
|
@@ -5297,9 +5527,9 @@ function EmptyState({
|
|
|
5297
5527
|
style,
|
|
5298
5528
|
children: [
|
|
5299
5529
|
/* @__PURE__ */ jsx32("div", { className: "arap-empty-icon", "aria-hidden": "true", children: icon ?? "\u{1F50D}" }),
|
|
5300
|
-
/* @__PURE__ */ jsx32("h3", { className: "arap-empty-title", children:
|
|
5301
|
-
/* @__PURE__ */ jsx32("p", { className: "arap-empty-desc", children:
|
|
5302
|
-
onAction && /* @__PURE__ */ jsx32("button", { type: "button", className: "arap-empty-btn", onClick: onAction, children:
|
|
5530
|
+
/* @__PURE__ */ jsx32("h3", { className: "arap-empty-title", children: resolvedTitle }),
|
|
5531
|
+
/* @__PURE__ */ jsx32("p", { className: "arap-empty-desc", children: resolvedDescription }),
|
|
5532
|
+
onAction && /* @__PURE__ */ jsx32("button", { type: "button", className: "arap-empty-btn", onClick: onAction, children: resolvedActionLabel })
|
|
5303
5533
|
]
|
|
5304
5534
|
}
|
|
5305
5535
|
);
|
|
@@ -5334,11 +5564,14 @@ function ErrorState({
|
|
|
5334
5564
|
import { jsx as jsx33, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
5335
5565
|
function ProfilesController({
|
|
5336
5566
|
className = "",
|
|
5337
|
-
label
|
|
5567
|
+
label,
|
|
5338
5568
|
description = "Explore suggested preference combinations",
|
|
5339
5569
|
largeControls = false,
|
|
5340
5570
|
onProfileChange
|
|
5341
5571
|
}) {
|
|
5572
|
+
const ctx = useContext9(AccessibilityContext);
|
|
5573
|
+
const strings = resolveLocaleStrings(ctx?.locale);
|
|
5574
|
+
const effectiveLabel = label ?? strings.features?.profiles ?? "Accessibility Profiles";
|
|
5342
5575
|
const [isOpen, setIsOpen] = useState8(false);
|
|
5343
5576
|
const [search, setSearch] = useState8("");
|
|
5344
5577
|
const dialogId = "arap-profiles-dialog";
|
|
@@ -5378,7 +5611,7 @@ function ProfilesController({
|
|
|
5378
5611
|
{
|
|
5379
5612
|
className: `arap-feature arap-feature-expandable ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
5380
5613
|
role: "group",
|
|
5381
|
-
"aria-label":
|
|
5614
|
+
"aria-label": effectiveLabel,
|
|
5382
5615
|
children: [
|
|
5383
5616
|
/* @__PURE__ */ jsxs31(
|
|
5384
5617
|
"div",
|
|
@@ -5393,7 +5626,7 @@ function ProfilesController({
|
|
|
5393
5626
|
/* @__PURE__ */ jsxs31("span", { className: "arap-label", children: [
|
|
5394
5627
|
/* @__PURE__ */ jsx33(FeatureIcon, { name: "profiles" }),
|
|
5395
5628
|
/* @__PURE__ */ jsxs31("span", { children: [
|
|
5396
|
-
/* @__PURE__ */ jsx33("span", { style: { display: "block" }, children:
|
|
5629
|
+
/* @__PURE__ */ jsx33("span", { style: { display: "block" }, children: effectiveLabel }),
|
|
5397
5630
|
description && /* @__PURE__ */ jsx33(
|
|
5398
5631
|
"span",
|
|
5399
5632
|
{
|
|
@@ -5532,7 +5765,7 @@ function ProfilesController({
|
|
|
5532
5765
|
className: "arap-search-input",
|
|
5533
5766
|
value: search,
|
|
5534
5767
|
onChange: (e) => setSearch(e.target.value),
|
|
5535
|
-
placeholder: "Search 8 accessibility profiles...",
|
|
5768
|
+
placeholder: strings.searchPlaceholder ?? "Search 8 accessibility profiles...",
|
|
5536
5769
|
"aria-label": "Filter profiles"
|
|
5537
5770
|
}
|
|
5538
5771
|
),
|
|
@@ -5542,7 +5775,7 @@ function ProfilesController({
|
|
|
5542
5775
|
type: "button",
|
|
5543
5776
|
className: "arap-search-clear",
|
|
5544
5777
|
onClick: () => setSearch(""),
|
|
5545
|
-
"aria-label": "Clear profile filter",
|
|
5778
|
+
"aria-label": strings.searchClearLabel ?? "Clear profile filter",
|
|
5546
5779
|
children: "\xD7"
|
|
5547
5780
|
}
|
|
5548
5781
|
)
|
|
@@ -5600,16 +5833,16 @@ var AccessibilityProfilesController = ProfilesController;
|
|
|
5600
5833
|
|
|
5601
5834
|
// src/features/ResetController.tsx
|
|
5602
5835
|
import { createPortal as createPortal2 } from "react-dom";
|
|
5603
|
-
import { useContext as
|
|
5836
|
+
import { useContext as useContext10 } from "react";
|
|
5604
5837
|
import { jsx as jsx34, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
5605
5838
|
function ResetController() {
|
|
5606
|
-
const ctx =
|
|
5839
|
+
const ctx = useContext10(AccessibilityContext);
|
|
5607
5840
|
if (!ctx) {
|
|
5608
5841
|
throw new Error(
|
|
5609
5842
|
"ResetController must be used within an <AccessibilityPlugin> provider."
|
|
5610
5843
|
);
|
|
5611
5844
|
}
|
|
5612
|
-
const actionHost =
|
|
5845
|
+
const actionHost = useContext10(PanelActionsContext);
|
|
5613
5846
|
const { resetAll } = ctx;
|
|
5614
5847
|
const strings = resolveLocaleStrings(ctx.locale);
|
|
5615
5848
|
const button = /* @__PURE__ */ jsx34("div", { className: "arap-feature arap-feature-reset", children: /* @__PURE__ */ jsxs32("button", { className: "arap-reset-btn", onClick: resetAll, type: "button", children: [
|
|
@@ -5620,10 +5853,10 @@ function ResetController() {
|
|
|
5620
5853
|
}
|
|
5621
5854
|
|
|
5622
5855
|
// src/features/PresetsController.tsx
|
|
5623
|
-
import { useId as useId3, useRef as useRef7, useState as useState9 } from "react";
|
|
5856
|
+
import { useContext as useContext12, useId as useId3, useRef as useRef7, useState as useState9 } from "react";
|
|
5624
5857
|
|
|
5625
5858
|
// src/core/usePresets.ts
|
|
5626
|
-
import { useCallback as useCallback6, useContext as
|
|
5859
|
+
import { useCallback as useCallback6, useContext as useContext11, useMemo as useMemo3 } from "react";
|
|
5627
5860
|
|
|
5628
5861
|
// src/core/presets.ts
|
|
5629
5862
|
var ALLOWED_PREFERENCE_KEYS = Object.freeze([
|
|
@@ -5860,7 +6093,7 @@ function applyCustomPresetToStore(preset, setFeatureState) {
|
|
|
5860
6093
|
|
|
5861
6094
|
// src/core/usePresets.ts
|
|
5862
6095
|
function usePresets() {
|
|
5863
|
-
const ctx =
|
|
6096
|
+
const ctx = useContext11(AccessibilityContext);
|
|
5864
6097
|
if (!ctx) {
|
|
5865
6098
|
throw new Error(
|
|
5866
6099
|
"usePresets must be used within an <AccessibilityPlugin> provider."
|
|
@@ -5972,10 +6205,13 @@ function usePresets() {
|
|
|
5972
6205
|
import { jsx as jsx35, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
5973
6206
|
function PresetsController({
|
|
5974
6207
|
className = "",
|
|
5975
|
-
label
|
|
6208
|
+
label,
|
|
5976
6209
|
description = "Save, restore, and transfer your settings",
|
|
5977
6210
|
largeControls = false
|
|
5978
|
-
}) {
|
|
6211
|
+
} = {}) {
|
|
6212
|
+
const ctx = useContext12(AccessibilityContext);
|
|
6213
|
+
const strings = resolveLocaleStrings(ctx?.locale);
|
|
6214
|
+
const effectiveLabel = label ?? strings.features?.presets ?? "Custom Presets";
|
|
5979
6215
|
const [isOpen, setIsOpen] = useState9(false);
|
|
5980
6216
|
const [presetName, setPresetName] = useState9("");
|
|
5981
6217
|
const [statusMessage, setStatusMessage] = useState9("");
|
|
@@ -6002,20 +6238,26 @@ function PresetsController({
|
|
|
6002
6238
|
const created = saveCurrentAsPreset(trimmed);
|
|
6003
6239
|
setPresetName("");
|
|
6004
6240
|
setErrorMessage("");
|
|
6005
|
-
setStatusMessage(
|
|
6241
|
+
setStatusMessage(
|
|
6242
|
+
strings.formatPresetSaved ? strings.formatPresetSaved(created.name) : `Preset "${created.name}" saved successfully.`
|
|
6243
|
+
);
|
|
6006
6244
|
};
|
|
6007
6245
|
const handleApply = (preset) => {
|
|
6008
6246
|
const success = applyPreset(preset.id);
|
|
6009
6247
|
if (success) {
|
|
6010
6248
|
setErrorMessage("");
|
|
6011
|
-
setStatusMessage(
|
|
6249
|
+
setStatusMessage(
|
|
6250
|
+
strings.formatPresetApplied ? strings.formatPresetApplied(preset.name) : `Preset "${preset.name}" applied.`
|
|
6251
|
+
);
|
|
6012
6252
|
}
|
|
6013
6253
|
};
|
|
6014
6254
|
const handleDelete = (preset) => {
|
|
6015
6255
|
const success = deletePreset(preset.id);
|
|
6016
6256
|
if (success) {
|
|
6017
6257
|
setErrorMessage("");
|
|
6018
|
-
setStatusMessage(
|
|
6258
|
+
setStatusMessage(
|
|
6259
|
+
strings.formatPresetDeleted ? strings.formatPresetDeleted(preset.name) : `Preset "${preset.name}" deleted.`
|
|
6260
|
+
);
|
|
6019
6261
|
}
|
|
6020
6262
|
};
|
|
6021
6263
|
const handleExport = () => {
|
|
@@ -6080,7 +6322,7 @@ function PresetsController({
|
|
|
6080
6322
|
{
|
|
6081
6323
|
className: `arap-feature arap-feature-expandable ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
6082
6324
|
role: "group",
|
|
6083
|
-
"aria-label":
|
|
6325
|
+
"aria-label": effectiveLabel,
|
|
6084
6326
|
children: [
|
|
6085
6327
|
/* @__PURE__ */ jsxs33(
|
|
6086
6328
|
"div",
|
|
@@ -6095,7 +6337,7 @@ function PresetsController({
|
|
|
6095
6337
|
/* @__PURE__ */ jsxs33("span", { className: "arap-label", children: [
|
|
6096
6338
|
/* @__PURE__ */ jsx35(FeatureIcon, { name: "presets" }),
|
|
6097
6339
|
/* @__PURE__ */ jsxs33("span", { children: [
|
|
6098
|
-
/* @__PURE__ */ jsx35("span", { style: { display: "block" }, children:
|
|
6340
|
+
/* @__PURE__ */ jsx35("span", { style: { display: "block" }, children: effectiveLabel }),
|
|
6099
6341
|
description && /* @__PURE__ */ jsx35(
|
|
6100
6342
|
"span",
|
|
6101
6343
|
{
|
|
@@ -6461,8 +6703,620 @@ var CustomPresetsController = PresetsController;
|
|
|
6461
6703
|
var SettingsImportExportController = PresetsController;
|
|
6462
6704
|
var PresetsBackupController = PresetsController;
|
|
6463
6705
|
|
|
6706
|
+
// src/features/ReadingModeController.tsx
|
|
6707
|
+
import {
|
|
6708
|
+
useState as useState10,
|
|
6709
|
+
useEffect as useEffect8,
|
|
6710
|
+
useRef as useRef8,
|
|
6711
|
+
useId as useId4,
|
|
6712
|
+
useContext as useContext13,
|
|
6713
|
+
useSyncExternalStore as useSyncExternalStore8
|
|
6714
|
+
} from "react";
|
|
6715
|
+
import { createPortal as createPortal3 } from "react-dom";
|
|
6716
|
+
|
|
6717
|
+
// src/core/readingMode.ts
|
|
6718
|
+
var EXCLUDED_SELECTORS = [
|
|
6719
|
+
"[data-arap-ui]",
|
|
6720
|
+
"script",
|
|
6721
|
+
"style",
|
|
6722
|
+
"noscript",
|
|
6723
|
+
"template",
|
|
6724
|
+
"iframe",
|
|
6725
|
+
"object",
|
|
6726
|
+
"embed",
|
|
6727
|
+
"canvas",
|
|
6728
|
+
"audio",
|
|
6729
|
+
"video",
|
|
6730
|
+
"form",
|
|
6731
|
+
"input",
|
|
6732
|
+
"select",
|
|
6733
|
+
"textarea",
|
|
6734
|
+
"button",
|
|
6735
|
+
"nav",
|
|
6736
|
+
'[role="navigation"]',
|
|
6737
|
+
"header",
|
|
6738
|
+
'[role="banner"]',
|
|
6739
|
+
"footer",
|
|
6740
|
+
'[role="contentinfo"]',
|
|
6741
|
+
"aside",
|
|
6742
|
+
'[role="complementary"]',
|
|
6743
|
+
'[role="dialog"]',
|
|
6744
|
+
'[role="alertdialog"]',
|
|
6745
|
+
"[aria-modal='true']",
|
|
6746
|
+
"[hidden]",
|
|
6747
|
+
'[aria-hidden="true"]',
|
|
6748
|
+
".ad",
|
|
6749
|
+
".ads",
|
|
6750
|
+
".advertisement",
|
|
6751
|
+
".cookie-banner",
|
|
6752
|
+
".cookie-consent",
|
|
6753
|
+
".social-share",
|
|
6754
|
+
".comments",
|
|
6755
|
+
".sidebar"
|
|
6756
|
+
];
|
|
6757
|
+
var SENSITIVE_SELECTORS = [
|
|
6758
|
+
'input[type="password"]',
|
|
6759
|
+
'input[type="hidden"]',
|
|
6760
|
+
"[data-sensitive]",
|
|
6761
|
+
'[autocomplete*="password"]',
|
|
6762
|
+
'[autocomplete*="cc-"]',
|
|
6763
|
+
'[autocomplete*="credit-card"]'
|
|
6764
|
+
];
|
|
6765
|
+
var ALLOWED_TAGS = /* @__PURE__ */ new Set([
|
|
6766
|
+
"h1",
|
|
6767
|
+
"h2",
|
|
6768
|
+
"h3",
|
|
6769
|
+
"h4",
|
|
6770
|
+
"h5",
|
|
6771
|
+
"h6",
|
|
6772
|
+
"p",
|
|
6773
|
+
"ul",
|
|
6774
|
+
"ol",
|
|
6775
|
+
"li",
|
|
6776
|
+
"blockquote",
|
|
6777
|
+
"pre",
|
|
6778
|
+
"code",
|
|
6779
|
+
"a",
|
|
6780
|
+
"img",
|
|
6781
|
+
"figure",
|
|
6782
|
+
"figcaption",
|
|
6783
|
+
"strong",
|
|
6784
|
+
"em",
|
|
6785
|
+
"b",
|
|
6786
|
+
"i",
|
|
6787
|
+
"mark",
|
|
6788
|
+
"time",
|
|
6789
|
+
"hr",
|
|
6790
|
+
"table",
|
|
6791
|
+
"thead",
|
|
6792
|
+
"tbody",
|
|
6793
|
+
"tr",
|
|
6794
|
+
"th",
|
|
6795
|
+
"td",
|
|
6796
|
+
"div",
|
|
6797
|
+
"section",
|
|
6798
|
+
"article",
|
|
6799
|
+
"span",
|
|
6800
|
+
"br"
|
|
6801
|
+
]);
|
|
6802
|
+
function isSafeUrl(url) {
|
|
6803
|
+
if (!url) return false;
|
|
6804
|
+
const trimmed = url.trim().toLowerCase();
|
|
6805
|
+
if (trimmed.startsWith("javascript:") || trimmed.startsWith("vbscript:")) {
|
|
6806
|
+
return false;
|
|
6807
|
+
}
|
|
6808
|
+
return trimmed.startsWith("http://") || trimmed.startsWith("https://") || trimmed.startsWith("/") || trimmed.startsWith("#") || trimmed.startsWith("./") || trimmed.startsWith("../") || trimmed.startsWith("data:image/");
|
|
6809
|
+
}
|
|
6810
|
+
function countWords(text) {
|
|
6811
|
+
const matches = text.trim().match(/\S+/g);
|
|
6812
|
+
return matches ? matches.length : 0;
|
|
6813
|
+
}
|
|
6814
|
+
function estimateReadingTime(words) {
|
|
6815
|
+
return Math.max(1, Math.ceil(words / 200));
|
|
6816
|
+
}
|
|
6817
|
+
function scoreElement(el) {
|
|
6818
|
+
let score = 0;
|
|
6819
|
+
const tagName = el.tagName.toLowerCase();
|
|
6820
|
+
if (tagName === "article" || el.getAttribute("role") === "article")
|
|
6821
|
+
score += 50;
|
|
6822
|
+
if (tagName === "main" || el.getAttribute("role") === "main") score += 30;
|
|
6823
|
+
if (el.getAttribute("itemprop") === "articleBody") score += 60;
|
|
6824
|
+
if (el.id === "content" || el.id === "article" || el.id === "main-content")
|
|
6825
|
+
score += 20;
|
|
6826
|
+
const paragraphs = el.querySelectorAll("p");
|
|
6827
|
+
score += paragraphs.length * 5;
|
|
6828
|
+
const text = el.textContent || "";
|
|
6829
|
+
const words = countWords(text);
|
|
6830
|
+
score += Math.min(words / 10, 50);
|
|
6831
|
+
const links = el.querySelectorAll("a");
|
|
6832
|
+
let linkTextLength = 0;
|
|
6833
|
+
links.forEach((a) => {
|
|
6834
|
+
linkTextLength += (a.textContent || "").length;
|
|
6835
|
+
});
|
|
6836
|
+
const totalTextLength = text.length;
|
|
6837
|
+
if (totalTextLength > 0) {
|
|
6838
|
+
const linkDensity = linkTextLength / totalTextLength;
|
|
6839
|
+
if (linkDensity > 0.5) {
|
|
6840
|
+
score -= 50;
|
|
6841
|
+
}
|
|
6842
|
+
}
|
|
6843
|
+
return score;
|
|
6844
|
+
}
|
|
6845
|
+
function findArticleCandidate(root) {
|
|
6846
|
+
const articles = Array.from(
|
|
6847
|
+
root.querySelectorAll("article, [role='article']")
|
|
6848
|
+
);
|
|
6849
|
+
const substantiveArticles = articles.filter(
|
|
6850
|
+
(a) => !a.closest("[data-arap-ui]") && (a.textContent?.trim().length ?? 0) >= 60
|
|
6851
|
+
);
|
|
6852
|
+
if (substantiveArticles.length === 1) {
|
|
6853
|
+
return substantiveArticles[0];
|
|
6854
|
+
}
|
|
6855
|
+
const main = root.querySelector("main, [role='main']");
|
|
6856
|
+
if (main && !main.closest("[data-arap-ui]") && (main.textContent?.trim().length ?? 0) >= 60) {
|
|
6857
|
+
const innerArticle = main.querySelector("article");
|
|
6858
|
+
if (innerArticle && (innerArticle.textContent?.trim().length ?? 0) >= 60) {
|
|
6859
|
+
return innerArticle;
|
|
6860
|
+
}
|
|
6861
|
+
return main;
|
|
6862
|
+
}
|
|
6863
|
+
const candidates = Array.from(
|
|
6864
|
+
root.querySelectorAll(
|
|
6865
|
+
"article, section, div.content, div.post, div.entry, #content, #article, div"
|
|
6866
|
+
)
|
|
6867
|
+
).filter((el) => {
|
|
6868
|
+
if (el.closest("[data-arap-ui]")) return false;
|
|
6869
|
+
const text = el.textContent?.trim() || "";
|
|
6870
|
+
return text.length >= 60 && el.querySelectorAll("p").length >= 1;
|
|
6871
|
+
});
|
|
6872
|
+
if (candidates.length === 0) return null;
|
|
6873
|
+
let bestCandidate = null;
|
|
6874
|
+
let highestScore = -1;
|
|
6875
|
+
for (const candidate of candidates) {
|
|
6876
|
+
const score = scoreElement(candidate);
|
|
6877
|
+
if (score > highestScore) {
|
|
6878
|
+
highestScore = score;
|
|
6879
|
+
bestCandidate = candidate;
|
|
6880
|
+
}
|
|
6881
|
+
}
|
|
6882
|
+
return highestScore > 0 ? bestCandidate : null;
|
|
6883
|
+
}
|
|
6884
|
+
function sanitizeClone(node) {
|
|
6885
|
+
for (const selector of SENSITIVE_SELECTORS) {
|
|
6886
|
+
node.querySelectorAll(selector).forEach((el) => el.remove());
|
|
6887
|
+
}
|
|
6888
|
+
for (const selector of EXCLUDED_SELECTORS) {
|
|
6889
|
+
node.querySelectorAll(selector).forEach((el) => el.remove());
|
|
6890
|
+
}
|
|
6891
|
+
const allElements = Array.from(node.querySelectorAll("*"));
|
|
6892
|
+
for (const el of allElements) {
|
|
6893
|
+
const tagName = el.tagName.toLowerCase();
|
|
6894
|
+
if (!ALLOWED_TAGS.has(tagName)) {
|
|
6895
|
+
el.remove();
|
|
6896
|
+
continue;
|
|
6897
|
+
}
|
|
6898
|
+
const attributeNames = Array.from(el.attributes).map((attr) => attr.name);
|
|
6899
|
+
for (const attr of attributeNames) {
|
|
6900
|
+
const lower = attr.toLowerCase();
|
|
6901
|
+
if (lower.startsWith("on") || lower === "style") {
|
|
6902
|
+
el.removeAttribute(attr);
|
|
6903
|
+
} else if (tagName === "a") {
|
|
6904
|
+
if (lower === "href") {
|
|
6905
|
+
const href = el.getAttribute("href") || "";
|
|
6906
|
+
if (!isSafeUrl(href)) {
|
|
6907
|
+
el.removeAttribute("href");
|
|
6908
|
+
} else {
|
|
6909
|
+
el.setAttribute("target", "_blank");
|
|
6910
|
+
el.setAttribute("rel", "noopener noreferrer");
|
|
6911
|
+
}
|
|
6912
|
+
} else if (lower !== "title" && lower !== "id") {
|
|
6913
|
+
el.removeAttribute(attr);
|
|
6914
|
+
}
|
|
6915
|
+
} else if (tagName === "img") {
|
|
6916
|
+
if (lower === "src") {
|
|
6917
|
+
const src = el.getAttribute("src") || "";
|
|
6918
|
+
if (!isSafeUrl(src)) {
|
|
6919
|
+
el.removeAttribute("src");
|
|
6920
|
+
}
|
|
6921
|
+
} else if (lower !== "alt" && lower !== "title" && lower !== "width" && lower !== "height") {
|
|
6922
|
+
el.removeAttribute(attr);
|
|
6923
|
+
}
|
|
6924
|
+
} else if (lower !== "id" && lower !== "lang" && lower !== "dir" && lower !== "class") {
|
|
6925
|
+
el.removeAttribute(attr);
|
|
6926
|
+
}
|
|
6927
|
+
}
|
|
6928
|
+
if (tagName === "img" && !el.hasAttribute("alt")) {
|
|
6929
|
+
el.setAttribute("alt", "");
|
|
6930
|
+
}
|
|
6931
|
+
}
|
|
6932
|
+
}
|
|
6933
|
+
function extractTitle(candidate, doc) {
|
|
6934
|
+
const firstHeading = candidate.querySelector("h1, h2");
|
|
6935
|
+
if (firstHeading && firstHeading.textContent?.trim()) {
|
|
6936
|
+
return firstHeading.textContent.trim();
|
|
6937
|
+
}
|
|
6938
|
+
const docH1 = doc.querySelector("h1");
|
|
6939
|
+
if (docH1 && docH1.textContent?.trim()) {
|
|
6940
|
+
return docH1.textContent.trim();
|
|
6941
|
+
}
|
|
6942
|
+
return doc.title?.trim() || "Article";
|
|
6943
|
+
}
|
|
6944
|
+
function extractByline(candidate) {
|
|
6945
|
+
const bylineEl = candidate.querySelector(
|
|
6946
|
+
"[rel='author'], .byline, .author, time, [itemprop='author'], [itemprop='datePublished']"
|
|
6947
|
+
);
|
|
6948
|
+
if (bylineEl && bylineEl.textContent?.trim()) {
|
|
6949
|
+
return bylineEl.textContent.trim();
|
|
6950
|
+
}
|
|
6951
|
+
return void 0;
|
|
6952
|
+
}
|
|
6953
|
+
function extractArticleContent(root) {
|
|
6954
|
+
if (typeof document === "undefined") return null;
|
|
6955
|
+
const doc = root instanceof Document ? root : root?.ownerDocument || document;
|
|
6956
|
+
const targetRoot = root || doc.body;
|
|
6957
|
+
const candidate = findArticleCandidate(targetRoot);
|
|
6958
|
+
if (!candidate) return null;
|
|
6959
|
+
const clone = candidate.cloneNode(true);
|
|
6960
|
+
sanitizeClone(clone);
|
|
6961
|
+
const text = (clone.textContent || "").trim();
|
|
6962
|
+
const wordCount = countWords(text);
|
|
6963
|
+
if (wordCount < 20 && text.length < 60) {
|
|
6964
|
+
return null;
|
|
6965
|
+
}
|
|
6966
|
+
const title = extractTitle(candidate, doc);
|
|
6967
|
+
const byline = extractByline(candidate);
|
|
6968
|
+
const readingTimeMinutes = estimateReadingTime(wordCount);
|
|
6969
|
+
const topHeading = clone.querySelector("h1, h2");
|
|
6970
|
+
if (topHeading && topHeading.textContent?.trim().toLowerCase() === title.trim().toLowerCase()) {
|
|
6971
|
+
topHeading.remove();
|
|
6972
|
+
}
|
|
6973
|
+
return {
|
|
6974
|
+
title,
|
|
6975
|
+
byline,
|
|
6976
|
+
wordCount,
|
|
6977
|
+
readingTimeMinutes,
|
|
6978
|
+
html: clone.innerHTML.trim(),
|
|
6979
|
+
text
|
|
6980
|
+
};
|
|
6981
|
+
}
|
|
6982
|
+
|
|
6983
|
+
// src/features/ReadingModeController.tsx
|
|
6984
|
+
import { Fragment as Fragment2, jsx as jsx36, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6985
|
+
var FEATURE_KEY23 = "readingMode";
|
|
6986
|
+
var DEFAULT_VALUE23 = false;
|
|
6987
|
+
var emptySubscribe = () => () => {
|
|
6988
|
+
};
|
|
6989
|
+
function useMounted() {
|
|
6990
|
+
return useSyncExternalStore8(
|
|
6991
|
+
emptySubscribe,
|
|
6992
|
+
() => true,
|
|
6993
|
+
() => false
|
|
6994
|
+
);
|
|
6995
|
+
}
|
|
6996
|
+
function ReadingModeController({
|
|
6997
|
+
className = "",
|
|
6998
|
+
label,
|
|
6999
|
+
description,
|
|
7000
|
+
onActivate,
|
|
7001
|
+
onDeactivate,
|
|
7002
|
+
onError
|
|
7003
|
+
} = {}) {
|
|
7004
|
+
const { value, setValue } = useAccessibility(
|
|
7005
|
+
FEATURE_KEY23,
|
|
7006
|
+
DEFAULT_VALUE23
|
|
7007
|
+
);
|
|
7008
|
+
const context = useContext13(AccessibilityContext);
|
|
7009
|
+
const strings = resolveLocaleStrings(context?.locale);
|
|
7010
|
+
const [article, setArticle] = useState10(null);
|
|
7011
|
+
const [statusMessage, setStatusMessage] = useState10(null);
|
|
7012
|
+
const [readerTheme, setReaderTheme] = useState10(
|
|
7013
|
+
"light"
|
|
7014
|
+
);
|
|
7015
|
+
const [readerScale, setReaderScale] = useState10(100);
|
|
7016
|
+
const mounted = useMounted();
|
|
7017
|
+
const triggerRef = useRef8(null);
|
|
7018
|
+
const dialogRef = useRef8(null);
|
|
7019
|
+
const previousActiveElement = useRef8(null);
|
|
7020
|
+
const titleId = useId4();
|
|
7021
|
+
const featureLabel = label ?? strings.features?.readingMode ?? "Reading Mode";
|
|
7022
|
+
const featureDescription = description ?? strings.readingModeDescription ?? "Distraction-free article view";
|
|
7023
|
+
const closeLabel = strings.readingModeClose ?? "Close Reading Mode";
|
|
7024
|
+
const openLabel = strings.readingModeOpen ?? "Open Reading Mode";
|
|
7025
|
+
const failedMessage = strings.readingModeFailed ?? "No readable article content found on this page.";
|
|
7026
|
+
const activeArticle = value ? article : null;
|
|
7027
|
+
const handleClose = () => {
|
|
7028
|
+
setValue(false);
|
|
7029
|
+
setArticle(null);
|
|
7030
|
+
onDeactivate?.();
|
|
7031
|
+
if (previousActiveElement.current) {
|
|
7032
|
+
previousActiveElement.current.focus();
|
|
7033
|
+
} else {
|
|
7034
|
+
triggerRef.current?.focus();
|
|
7035
|
+
}
|
|
7036
|
+
};
|
|
7037
|
+
const handleToggle = () => {
|
|
7038
|
+
if (value) {
|
|
7039
|
+
handleClose();
|
|
7040
|
+
} else {
|
|
7041
|
+
if (typeof document !== "undefined") {
|
|
7042
|
+
previousActiveElement.current = document.activeElement;
|
|
7043
|
+
const extracted = extractArticleContent(document.body);
|
|
7044
|
+
if (extracted) {
|
|
7045
|
+
setArticle(extracted);
|
|
7046
|
+
setStatusMessage(null);
|
|
7047
|
+
setValue(true);
|
|
7048
|
+
onActivate?.(extracted);
|
|
7049
|
+
} else {
|
|
7050
|
+
setValue(false);
|
|
7051
|
+
setArticle(null);
|
|
7052
|
+
setStatusMessage(failedMessage);
|
|
7053
|
+
onError?.(new Error(failedMessage));
|
|
7054
|
+
if (previousActiveElement.current) {
|
|
7055
|
+
previousActiveElement.current.focus();
|
|
7056
|
+
} else {
|
|
7057
|
+
triggerRef.current?.focus();
|
|
7058
|
+
}
|
|
7059
|
+
}
|
|
7060
|
+
}
|
|
7061
|
+
}
|
|
7062
|
+
};
|
|
7063
|
+
const handleCloseRef = useRef8(handleClose);
|
|
7064
|
+
useEffect8(() => {
|
|
7065
|
+
handleCloseRef.current = handleClose;
|
|
7066
|
+
});
|
|
7067
|
+
useEffect8(() => {
|
|
7068
|
+
if (!activeArticle || !dialogRef.current) return;
|
|
7069
|
+
dialogRef.current.focus();
|
|
7070
|
+
const handleKeyDown = (event) => {
|
|
7071
|
+
if (event.key === "Escape") {
|
|
7072
|
+
event.preventDefault();
|
|
7073
|
+
event.stopPropagation();
|
|
7074
|
+
handleCloseRef.current();
|
|
7075
|
+
return;
|
|
7076
|
+
}
|
|
7077
|
+
if (event.key === "Tab") {
|
|
7078
|
+
const dialog = dialogRef.current;
|
|
7079
|
+
if (!dialog) return;
|
|
7080
|
+
const focusable = dialog.querySelectorAll(
|
|
7081
|
+
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
7082
|
+
);
|
|
7083
|
+
if (focusable.length === 0) return;
|
|
7084
|
+
const first = focusable[0];
|
|
7085
|
+
const last = focusable[focusable.length - 1];
|
|
7086
|
+
if (event.shiftKey && document.activeElement === first) {
|
|
7087
|
+
event.preventDefault();
|
|
7088
|
+
last.focus();
|
|
7089
|
+
} else if (!event.shiftKey && document.activeElement === last) {
|
|
7090
|
+
event.preventDefault();
|
|
7091
|
+
first.focus();
|
|
7092
|
+
}
|
|
7093
|
+
}
|
|
7094
|
+
};
|
|
7095
|
+
document.addEventListener("keydown", handleKeyDown, { capture: true });
|
|
7096
|
+
return () => {
|
|
7097
|
+
document.removeEventListener("keydown", handleKeyDown, { capture: true });
|
|
7098
|
+
};
|
|
7099
|
+
}, [activeArticle]);
|
|
7100
|
+
const handleZoomOut = () => {
|
|
7101
|
+
setReaderScale((prev) => Math.max(90, prev - 15));
|
|
7102
|
+
};
|
|
7103
|
+
const handleZoomIn = () => {
|
|
7104
|
+
setReaderScale((prev) => Math.min(160, prev + 15));
|
|
7105
|
+
};
|
|
7106
|
+
const wordCountDisplay = activeArticle ? strings.formatReadingWords ? strings.formatReadingWords(activeArticle.wordCount) : `${activeArticle.wordCount} words` : "";
|
|
7107
|
+
const readingTimeDisplay = activeArticle ? strings.formatReadingTime ? strings.formatReadingTime(activeArticle.readingTimeMinutes) : `${activeArticle.readingTimeMinutes} min read` : "";
|
|
7108
|
+
const readerDialog = mounted && activeArticle && typeof document !== "undefined" ? createPortal3(
|
|
7109
|
+
/* @__PURE__ */ jsx36(
|
|
7110
|
+
"div",
|
|
7111
|
+
{
|
|
7112
|
+
className: "arap-reading-mode-backdrop",
|
|
7113
|
+
"data-arap-ui": "",
|
|
7114
|
+
"data-theme": readerTheme,
|
|
7115
|
+
onClick: (e) => {
|
|
7116
|
+
if (e.target === e.currentTarget) {
|
|
7117
|
+
handleClose();
|
|
7118
|
+
}
|
|
7119
|
+
},
|
|
7120
|
+
children: /* @__PURE__ */ jsxs34(
|
|
7121
|
+
"div",
|
|
7122
|
+
{
|
|
7123
|
+
ref: dialogRef,
|
|
7124
|
+
className: "arap-reading-mode-dialog",
|
|
7125
|
+
role: "dialog",
|
|
7126
|
+
"aria-modal": "true",
|
|
7127
|
+
"aria-labelledby": titleId,
|
|
7128
|
+
tabIndex: -1,
|
|
7129
|
+
style: { fontSize: `${readerScale}%` },
|
|
7130
|
+
onKeyDown: (e) => {
|
|
7131
|
+
if (e.key === "Escape") {
|
|
7132
|
+
e.stopPropagation();
|
|
7133
|
+
handleClose();
|
|
7134
|
+
}
|
|
7135
|
+
},
|
|
7136
|
+
children: [
|
|
7137
|
+
/* @__PURE__ */ jsxs34("div", { className: "arap-reading-mode-header", children: [
|
|
7138
|
+
/* @__PURE__ */ jsxs34("div", { className: "arap-reading-mode-meta", children: [
|
|
7139
|
+
/* @__PURE__ */ jsx36("span", { className: "arap-reading-mode-badge", "aria-hidden": "true", children: featureLabel }),
|
|
7140
|
+
/* @__PURE__ */ jsx36("span", { className: "arap-reading-mode-stat", children: wordCountDisplay }),
|
|
7141
|
+
/* @__PURE__ */ jsx36(
|
|
7142
|
+
"span",
|
|
7143
|
+
{
|
|
7144
|
+
className: "arap-reading-mode-divider",
|
|
7145
|
+
"aria-hidden": "true",
|
|
7146
|
+
children: "\u2022"
|
|
7147
|
+
}
|
|
7148
|
+
),
|
|
7149
|
+
/* @__PURE__ */ jsx36("span", { className: "arap-reading-mode-stat", children: readingTimeDisplay })
|
|
7150
|
+
] }),
|
|
7151
|
+
/* @__PURE__ */ jsxs34(
|
|
7152
|
+
"div",
|
|
7153
|
+
{
|
|
7154
|
+
className: "arap-reading-mode-toolbar",
|
|
7155
|
+
role: "toolbar",
|
|
7156
|
+
"aria-label": "Reader tools",
|
|
7157
|
+
children: [
|
|
7158
|
+
/* @__PURE__ */ jsxs34(
|
|
7159
|
+
"div",
|
|
7160
|
+
{
|
|
7161
|
+
className: "arap-reading-mode-theme-group",
|
|
7162
|
+
role: "group",
|
|
7163
|
+
"aria-label": "Reader theme",
|
|
7164
|
+
children: [
|
|
7165
|
+
/* @__PURE__ */ jsx36(
|
|
7166
|
+
"button",
|
|
7167
|
+
{
|
|
7168
|
+
type: "button",
|
|
7169
|
+
className: `arap-reader-theme-btn ${readerTheme === "light" ? "arap-active" : ""}`,
|
|
7170
|
+
onClick: () => setReaderTheme("light"),
|
|
7171
|
+
"aria-pressed": readerTheme === "light",
|
|
7172
|
+
"aria-label": "Light theme",
|
|
7173
|
+
children: "Light"
|
|
7174
|
+
}
|
|
7175
|
+
),
|
|
7176
|
+
/* @__PURE__ */ jsx36(
|
|
7177
|
+
"button",
|
|
7178
|
+
{
|
|
7179
|
+
type: "button",
|
|
7180
|
+
className: `arap-reader-theme-btn ${readerTheme === "sepia" ? "arap-active" : ""}`,
|
|
7181
|
+
onClick: () => setReaderTheme("sepia"),
|
|
7182
|
+
"aria-pressed": readerTheme === "sepia",
|
|
7183
|
+
"aria-label": "Sepia theme",
|
|
7184
|
+
children: "Sepia"
|
|
7185
|
+
}
|
|
7186
|
+
),
|
|
7187
|
+
/* @__PURE__ */ jsx36(
|
|
7188
|
+
"button",
|
|
7189
|
+
{
|
|
7190
|
+
type: "button",
|
|
7191
|
+
className: `arap-reader-theme-btn ${readerTheme === "dark" ? "arap-active" : ""}`,
|
|
7192
|
+
onClick: () => setReaderTheme("dark"),
|
|
7193
|
+
"aria-pressed": readerTheme === "dark",
|
|
7194
|
+
"aria-label": "Dark theme",
|
|
7195
|
+
children: "Dark"
|
|
7196
|
+
}
|
|
7197
|
+
)
|
|
7198
|
+
]
|
|
7199
|
+
}
|
|
7200
|
+
),
|
|
7201
|
+
/* @__PURE__ */ jsxs34(
|
|
7202
|
+
"div",
|
|
7203
|
+
{
|
|
7204
|
+
className: "arap-reading-mode-zoom-group",
|
|
7205
|
+
role: "group",
|
|
7206
|
+
"aria-label": "Text zoom",
|
|
7207
|
+
children: [
|
|
7208
|
+
/* @__PURE__ */ jsx36(
|
|
7209
|
+
"button",
|
|
7210
|
+
{
|
|
7211
|
+
type: "button",
|
|
7212
|
+
className: "arap-reader-zoom-btn",
|
|
7213
|
+
onClick: handleZoomOut,
|
|
7214
|
+
"aria-label": "Decrease reader text size",
|
|
7215
|
+
disabled: readerScale <= 90,
|
|
7216
|
+
children: "A-"
|
|
7217
|
+
}
|
|
7218
|
+
),
|
|
7219
|
+
/* @__PURE__ */ jsx36(
|
|
7220
|
+
"button",
|
|
7221
|
+
{
|
|
7222
|
+
type: "button",
|
|
7223
|
+
className: "arap-reader-zoom-btn",
|
|
7224
|
+
onClick: handleZoomIn,
|
|
7225
|
+
"aria-label": "Increase reader text size",
|
|
7226
|
+
disabled: readerScale >= 160,
|
|
7227
|
+
children: "A+"
|
|
7228
|
+
}
|
|
7229
|
+
)
|
|
7230
|
+
]
|
|
7231
|
+
}
|
|
7232
|
+
),
|
|
7233
|
+
/* @__PURE__ */ jsx36(
|
|
7234
|
+
"button",
|
|
7235
|
+
{
|
|
7236
|
+
type: "button",
|
|
7237
|
+
className: "arap-reading-mode-close",
|
|
7238
|
+
onClick: handleClose,
|
|
7239
|
+
"aria-label": closeLabel,
|
|
7240
|
+
title: closeLabel,
|
|
7241
|
+
children: "\xD7"
|
|
7242
|
+
}
|
|
7243
|
+
)
|
|
7244
|
+
]
|
|
7245
|
+
}
|
|
7246
|
+
)
|
|
7247
|
+
] }),
|
|
7248
|
+
/* @__PURE__ */ jsxs34("main", { className: "arap-reading-mode-content", children: [
|
|
7249
|
+
/* @__PURE__ */ jsx36("h1", { id: titleId, className: "arap-reading-mode-title", children: activeArticle.title }),
|
|
7250
|
+
activeArticle.byline && /* @__PURE__ */ jsx36("p", { className: "arap-reading-mode-byline", children: activeArticle.byline }),
|
|
7251
|
+
/* @__PURE__ */ jsx36(
|
|
7252
|
+
"div",
|
|
7253
|
+
{
|
|
7254
|
+
className: "arap-reading-mode-body",
|
|
7255
|
+
dangerouslySetInnerHTML: { __html: activeArticle.html }
|
|
7256
|
+
}
|
|
7257
|
+
)
|
|
7258
|
+
] }),
|
|
7259
|
+
/* @__PURE__ */ jsx36("footer", { className: "arap-reading-mode-footer", children: /* @__PURE__ */ jsx36(
|
|
7260
|
+
"button",
|
|
7261
|
+
{
|
|
7262
|
+
type: "button",
|
|
7263
|
+
className: "arap-reading-mode-exit-btn",
|
|
7264
|
+
onClick: handleClose,
|
|
7265
|
+
children: closeLabel
|
|
7266
|
+
}
|
|
7267
|
+
) })
|
|
7268
|
+
]
|
|
7269
|
+
}
|
|
7270
|
+
)
|
|
7271
|
+
}
|
|
7272
|
+
),
|
|
7273
|
+
document.body
|
|
7274
|
+
) : null;
|
|
7275
|
+
return /* @__PURE__ */ jsxs34(Fragment2, { children: [
|
|
7276
|
+
/* @__PURE__ */ jsxs34(
|
|
7277
|
+
"div",
|
|
7278
|
+
{
|
|
7279
|
+
className: `arap-feature ${className}`,
|
|
7280
|
+
role: "group",
|
|
7281
|
+
"aria-label": featureLabel,
|
|
7282
|
+
children: [
|
|
7283
|
+
/* @__PURE__ */ jsxs34("span", { className: "arap-label", children: [
|
|
7284
|
+
/* @__PURE__ */ jsx36(FeatureIcon, { name: FEATURE_KEY23 }),
|
|
7285
|
+
/* @__PURE__ */ jsx36("span", { children: featureLabel }),
|
|
7286
|
+
/* @__PURE__ */ jsx36("span", { className: "arap-sr-only", children: featureDescription })
|
|
7287
|
+
] }),
|
|
7288
|
+
/* @__PURE__ */ jsx36(
|
|
7289
|
+
"button",
|
|
7290
|
+
{
|
|
7291
|
+
ref: triggerRef,
|
|
7292
|
+
type: "button",
|
|
7293
|
+
className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
|
|
7294
|
+
onClick: handleToggle,
|
|
7295
|
+
"aria-label": value ? closeLabel : openLabel,
|
|
7296
|
+
"aria-pressed": value,
|
|
7297
|
+
title: value ? closeLabel : openLabel,
|
|
7298
|
+
children: /* @__PURE__ */ jsx36("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
|
|
7299
|
+
}
|
|
7300
|
+
)
|
|
7301
|
+
]
|
|
7302
|
+
}
|
|
7303
|
+
),
|
|
7304
|
+
statusMessage && /* @__PURE__ */ jsx36(
|
|
7305
|
+
"div",
|
|
7306
|
+
{
|
|
7307
|
+
className: "arap-feature-status",
|
|
7308
|
+
role: "status",
|
|
7309
|
+
"aria-live": "polite",
|
|
7310
|
+
style: { fontSize: "0.85rem", color: "#dc2626", marginTop: "4px" },
|
|
7311
|
+
children: statusMessage
|
|
7312
|
+
}
|
|
7313
|
+
),
|
|
7314
|
+
readerDialog
|
|
7315
|
+
] });
|
|
7316
|
+
}
|
|
7317
|
+
|
|
6464
7318
|
// src/core/controls/ToggleControl.tsx
|
|
6465
|
-
import { jsx as
|
|
7319
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
6466
7320
|
function ToggleControl({
|
|
6467
7321
|
id,
|
|
6468
7322
|
label,
|
|
@@ -6484,12 +7338,12 @@ function ToggleControl({
|
|
|
6484
7338
|
onChange(!checked);
|
|
6485
7339
|
}
|
|
6486
7340
|
};
|
|
6487
|
-
return /* @__PURE__ */
|
|
7341
|
+
return /* @__PURE__ */ jsx37(
|
|
6488
7342
|
"div",
|
|
6489
7343
|
{
|
|
6490
7344
|
className: `arap-toggle-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
6491
7345
|
style,
|
|
6492
|
-
children: /* @__PURE__ */
|
|
7346
|
+
children: /* @__PURE__ */ jsx37(
|
|
6493
7347
|
"button",
|
|
6494
7348
|
{
|
|
6495
7349
|
id,
|
|
@@ -6503,7 +7357,7 @@ function ToggleControl({
|
|
|
6503
7357
|
disabled: !isInteractive,
|
|
6504
7358
|
onClick: handleClick,
|
|
6505
7359
|
title: unavailableReason || description || toggleLabel,
|
|
6506
|
-
children: /* @__PURE__ */
|
|
7360
|
+
children: /* @__PURE__ */ jsx37(
|
|
6507
7361
|
"span",
|
|
6508
7362
|
{
|
|
6509
7363
|
className: "arap-toggle-knob",
|
|
@@ -6519,8 +7373,8 @@ function ToggleControl({
|
|
|
6519
7373
|
}
|
|
6520
7374
|
|
|
6521
7375
|
// src/core/controls/ChoiceControl.tsx
|
|
6522
|
-
import { useCallback as useCallback7, useMemo as useMemo4, useRef as
|
|
6523
|
-
import { jsx as
|
|
7376
|
+
import { useCallback as useCallback7, useMemo as useMemo4, useRef as useRef9 } from "react";
|
|
7377
|
+
import { jsx as jsx38, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6524
7378
|
function ChoiceControl({
|
|
6525
7379
|
id,
|
|
6526
7380
|
label,
|
|
@@ -6534,7 +7388,7 @@ function ChoiceControl({
|
|
|
6534
7388
|
style,
|
|
6535
7389
|
orientation = "horizontal"
|
|
6536
7390
|
}) {
|
|
6537
|
-
const containerRef =
|
|
7391
|
+
const containerRef = useRef9(null);
|
|
6538
7392
|
const allOptions = useMemo4(
|
|
6539
7393
|
() => groups ? groups.flatMap((g) => g.options) : options || [],
|
|
6540
7394
|
[groups, options]
|
|
@@ -6576,7 +7430,7 @@ function ChoiceControl({
|
|
|
6576
7430
|
const renderOptionButton = (opt) => {
|
|
6577
7431
|
const isSelected = value === opt.value;
|
|
6578
7432
|
const isOptionDisabled = disabled || Boolean(opt.disabled);
|
|
6579
|
-
return /* @__PURE__ */
|
|
7433
|
+
return /* @__PURE__ */ jsxs35(
|
|
6580
7434
|
"button",
|
|
6581
7435
|
{
|
|
6582
7436
|
type: "button",
|
|
@@ -6590,15 +7444,15 @@ function ChoiceControl({
|
|
|
6590
7444
|
onClick: () => !isOptionDisabled && onChange(opt.value),
|
|
6591
7445
|
title: opt.description,
|
|
6592
7446
|
children: [
|
|
6593
|
-
isSelected && /* @__PURE__ */
|
|
6594
|
-
/* @__PURE__ */
|
|
6595
|
-
opt.badge && /* @__PURE__ */
|
|
7447
|
+
isSelected && /* @__PURE__ */ jsx38("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
|
|
7448
|
+
/* @__PURE__ */ jsx38("span", { children: opt.label }),
|
|
7449
|
+
opt.badge && /* @__PURE__ */ jsx38("span", { className: "arap-choice-badge", "aria-hidden": "true", children: opt.badge })
|
|
6596
7450
|
]
|
|
6597
7451
|
},
|
|
6598
7452
|
String(opt.value)
|
|
6599
7453
|
);
|
|
6600
7454
|
};
|
|
6601
|
-
return /* @__PURE__ */
|
|
7455
|
+
return /* @__PURE__ */ jsx38(
|
|
6602
7456
|
"div",
|
|
6603
7457
|
{
|
|
6604
7458
|
ref: containerRef,
|
|
@@ -6609,15 +7463,15 @@ function ChoiceControl({
|
|
|
6609
7463
|
className: `arap-choice-control arap-segmented ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
6610
7464
|
style,
|
|
6611
7465
|
onKeyDown: handleKeyDown,
|
|
6612
|
-
children: groups ? groups.map((group) => /* @__PURE__ */
|
|
7466
|
+
children: groups ? groups.map((group) => /* @__PURE__ */ jsxs35(
|
|
6613
7467
|
"div",
|
|
6614
7468
|
{
|
|
6615
7469
|
className: "arap-choice-group",
|
|
6616
7470
|
role: "group",
|
|
6617
7471
|
"aria-label": group.label,
|
|
6618
7472
|
children: [
|
|
6619
|
-
/* @__PURE__ */
|
|
6620
|
-
/* @__PURE__ */
|
|
7473
|
+
/* @__PURE__ */ jsx38("span", { className: "arap-choice-group-title", children: group.label }),
|
|
7474
|
+
/* @__PURE__ */ jsx38("div", { className: "arap-segmented", children: group.options.map(renderOptionButton) })
|
|
6621
7475
|
]
|
|
6622
7476
|
},
|
|
6623
7477
|
group.label
|
|
@@ -6627,7 +7481,7 @@ function ChoiceControl({
|
|
|
6627
7481
|
}
|
|
6628
7482
|
|
|
6629
7483
|
// src/core/controls/StepperControl.tsx
|
|
6630
|
-
import { jsx as
|
|
7484
|
+
import { jsx as jsx39, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6631
7485
|
function StepperControl({
|
|
6632
7486
|
id,
|
|
6633
7487
|
label,
|
|
@@ -6657,15 +7511,15 @@ function StepperControl({
|
|
|
6657
7511
|
onChange(Math.min(max, Number((value + step).toFixed(2))));
|
|
6658
7512
|
}
|
|
6659
7513
|
};
|
|
6660
|
-
return /* @__PURE__ */
|
|
7514
|
+
return /* @__PURE__ */ jsxs36(
|
|
6661
7515
|
"div",
|
|
6662
7516
|
{
|
|
6663
7517
|
id,
|
|
6664
7518
|
className: `arap-stepper-control-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
6665
7519
|
style,
|
|
6666
7520
|
children: [
|
|
6667
|
-
/* @__PURE__ */
|
|
6668
|
-
/* @__PURE__ */
|
|
7521
|
+
/* @__PURE__ */ jsxs36("div", { className: "arap-controls", children: [
|
|
7522
|
+
/* @__PURE__ */ jsx39(
|
|
6669
7523
|
"button",
|
|
6670
7524
|
{
|
|
6671
7525
|
type: "button",
|
|
@@ -6676,8 +7530,8 @@ function StepperControl({
|
|
|
6676
7530
|
children: "\u2212"
|
|
6677
7531
|
}
|
|
6678
7532
|
),
|
|
6679
|
-
/* @__PURE__ */
|
|
6680
|
-
/* @__PURE__ */
|
|
7533
|
+
/* @__PURE__ */ jsx39("output", { className: "arap-value", "aria-live": "polite", children: displayValue }),
|
|
7534
|
+
/* @__PURE__ */ jsx39(
|
|
6681
7535
|
"button",
|
|
6682
7536
|
{
|
|
6683
7537
|
type: "button",
|
|
@@ -6689,7 +7543,7 @@ function StepperControl({
|
|
|
6689
7543
|
}
|
|
6690
7544
|
)
|
|
6691
7545
|
] }),
|
|
6692
|
-
showSlider && /* @__PURE__ */
|
|
7546
|
+
showSlider && /* @__PURE__ */ jsx39("div", { className: "arap-slider-container", children: /* @__PURE__ */ jsx39(
|
|
6693
7547
|
"input",
|
|
6694
7548
|
{
|
|
6695
7549
|
type: "range",
|
|
@@ -6713,7 +7567,7 @@ function StepperControl({
|
|
|
6713
7567
|
}
|
|
6714
7568
|
|
|
6715
7569
|
// src/core/controls/FeatureCard.tsx
|
|
6716
|
-
import { jsx as
|
|
7570
|
+
import { jsx as jsx40, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6717
7571
|
function FeatureCard({
|
|
6718
7572
|
id,
|
|
6719
7573
|
featureKey,
|
|
@@ -6732,7 +7586,7 @@ function FeatureCard({
|
|
|
6732
7586
|
largeControls = false
|
|
6733
7587
|
}) {
|
|
6734
7588
|
const cardTitle = typeof title === "string" ? title : void 0;
|
|
6735
|
-
return /* @__PURE__ */
|
|
7589
|
+
return /* @__PURE__ */ jsxs37(
|
|
6736
7590
|
"div",
|
|
6737
7591
|
{
|
|
6738
7592
|
id,
|
|
@@ -6741,27 +7595,27 @@ function FeatureCard({
|
|
|
6741
7595
|
className: `arap-feature arap-feature-card ${status !== "idle" ? `arap-feature-${status}` : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
|
|
6742
7596
|
style,
|
|
6743
7597
|
children: [
|
|
6744
|
-
/* @__PURE__ */
|
|
6745
|
-
/* @__PURE__ */
|
|
6746
|
-
icon ?? (featureKey ? /* @__PURE__ */
|
|
6747
|
-
/* @__PURE__ */
|
|
7598
|
+
/* @__PURE__ */ jsxs37("div", { className: "arap-card-header", children: [
|
|
7599
|
+
/* @__PURE__ */ jsxs37("span", { className: "arap-label", children: [
|
|
7600
|
+
icon ?? (featureKey ? /* @__PURE__ */ jsx40(FeatureIcon, { name: featureKey }) : null),
|
|
7601
|
+
/* @__PURE__ */ jsx40("span", { className: "arap-card-title", children: title })
|
|
6748
7602
|
] }),
|
|
6749
|
-
statusBadge && /* @__PURE__ */
|
|
7603
|
+
statusBadge && /* @__PURE__ */ jsx40("span", { className: "arap-status-badge", "aria-hidden": "true", children: statusBadge })
|
|
6750
7604
|
] }),
|
|
6751
|
-
description && /* @__PURE__ */
|
|
6752
|
-
status === "error" && errorMessage && /* @__PURE__ */
|
|
6753
|
-
/* @__PURE__ */
|
|
6754
|
-
/* @__PURE__ */
|
|
7605
|
+
description && /* @__PURE__ */ jsx40("p", { className: "arap-card-desc", children: description }),
|
|
7606
|
+
status === "error" && errorMessage && /* @__PURE__ */ jsxs37("div", { className: "arap-card-alert arap-card-error", role: "alert", children: [
|
|
7607
|
+
/* @__PURE__ */ jsx40("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
|
|
7608
|
+
/* @__PURE__ */ jsx40("span", { children: errorMessage })
|
|
6755
7609
|
] }),
|
|
6756
|
-
status === "unavailable" && unavailableMessage && /* @__PURE__ */
|
|
6757
|
-
/* @__PURE__ */
|
|
6758
|
-
/* @__PURE__ */
|
|
7610
|
+
status === "unavailable" && unavailableMessage && /* @__PURE__ */ jsxs37("div", { className: "arap-card-alert arap-card-unavailable", role: "status", children: [
|
|
7611
|
+
/* @__PURE__ */ jsx40("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u2139\uFE0F" }),
|
|
7612
|
+
/* @__PURE__ */ jsx40("span", { children: unavailableMessage })
|
|
6759
7613
|
] }),
|
|
6760
|
-
status === "permission-required" && permissionMessage && /* @__PURE__ */
|
|
6761
|
-
/* @__PURE__ */
|
|
6762
|
-
/* @__PURE__ */
|
|
6763
|
-
/* @__PURE__ */
|
|
6764
|
-
onRequestPermission && /* @__PURE__ */
|
|
7614
|
+
status === "permission-required" && permissionMessage && /* @__PURE__ */ jsxs37("div", { className: "arap-card-alert arap-card-permission", role: "status", children: [
|
|
7615
|
+
/* @__PURE__ */ jsx40("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u{1F512}" }),
|
|
7616
|
+
/* @__PURE__ */ jsxs37("div", { className: "arap-permission-content", children: [
|
|
7617
|
+
/* @__PURE__ */ jsx40("span", { children: permissionMessage }),
|
|
7618
|
+
onRequestPermission && /* @__PURE__ */ jsx40(
|
|
6765
7619
|
"button",
|
|
6766
7620
|
{
|
|
6767
7621
|
type: "button",
|
|
@@ -6772,7 +7626,7 @@ function FeatureCard({
|
|
|
6772
7626
|
)
|
|
6773
7627
|
] })
|
|
6774
7628
|
] }),
|
|
6775
|
-
/* @__PURE__ */
|
|
7629
|
+
/* @__PURE__ */ jsx40("div", { className: "arap-card-content", children })
|
|
6776
7630
|
]
|
|
6777
7631
|
}
|
|
6778
7632
|
);
|
|
@@ -6832,6 +7686,7 @@ export {
|
|
|
6832
7686
|
READING_MASK_HEIGHT_PRESETS,
|
|
6833
7687
|
ReadingGuideController,
|
|
6834
7688
|
ReadingMaskController,
|
|
7689
|
+
ReadingModeController,
|
|
6835
7690
|
ReduceMotionController,
|
|
6836
7691
|
ResetController,
|
|
6837
7692
|
SaturationController,
|
|
@@ -6850,12 +7705,16 @@ export {
|
|
|
6850
7705
|
WordSpacingController,
|
|
6851
7706
|
applyCustomPresetToStore,
|
|
6852
7707
|
applyProfileToStore,
|
|
7708
|
+
countWords,
|
|
6853
7709
|
createCustomPreset,
|
|
6854
7710
|
createInitialPreferencesState,
|
|
6855
7711
|
downloadJsonFile,
|
|
6856
7712
|
enLocale,
|
|
6857
7713
|
enableAccessibleTooltips,
|
|
7714
|
+
estimateReadingTime,
|
|
6858
7715
|
exportPresetsToJson,
|
|
7716
|
+
extractArticleContent,
|
|
7717
|
+
findArticleCandidate,
|
|
6859
7718
|
findMainLandmark,
|
|
6860
7719
|
getAuthoredDescription,
|
|
6861
7720
|
getProfileDefinition,
|
|
@@ -6888,10 +7747,12 @@ export {
|
|
|
6888
7747
|
sanitizePreferences,
|
|
6889
7748
|
scanHeadings,
|
|
6890
7749
|
scanLandmarks,
|
|
7750
|
+
siLocale,
|
|
6891
7751
|
subscribeFinePointer,
|
|
6892
7752
|
subscribeForcedColors,
|
|
6893
7753
|
subscribePageStructure,
|
|
6894
7754
|
subscribeReducedMotion,
|
|
7755
|
+
taLocale,
|
|
6895
7756
|
useAccessibility,
|
|
6896
7757
|
usePresets,
|
|
6897
7758
|
useProfiles,
|