@ada-cx/lovelace 1.19.0 → 1.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AgentMessage/AgentMessage.js.map +1 -1
- package/dist/components/AttachmentChip/AttachmentChip.css.js +1 -1
- package/dist/components/AttachmentChip/AttachmentChip.js.map +1 -1
- package/dist/components/Avatar/Avatar.css.js +1 -1
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/AvatarPlaceholder.js.map +1 -1
- package/dist/components/Banner/Banner.css.js +1 -1
- package/dist/components/Banner/Banner.js.map +1 -1
- package/dist/components/Banner/BannerContainer.js.map +1 -1
- package/dist/components/Banner/BannerContainerSlide.js.map +1 -1
- package/dist/components/BubbleOverlay/BubbleOverlay.js.map +1 -1
- package/dist/components/Button/Button.css.js +1 -1
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Card/CardActions.js.map +1 -1
- package/dist/components/Card/CardBody.js.map +1 -1
- package/dist/components/Card/CardDescription.js.map +1 -1
- package/dist/components/Card/CardMedia.js.map +1 -1
- package/dist/components/Card/CardRoot.js.map +1 -1
- package/dist/components/Card/CardTitle.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +60 -60
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselItem.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.css.js +1 -1
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checkbox/CheckboxGroup.js.map +1 -1
- package/dist/components/Checkbox/CheckboxIndicator.js.map +1 -1
- package/dist/components/Chip/Chip.css.js +1 -1
- package/dist/components/Chip/Chip.js.map +1 -1
- package/dist/components/Dialog/Dialog.css.js +1 -1
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dialog/DialogActions.js.map +1 -1
- package/dist/components/Dialog/DialogBody.js.map +1 -1
- package/dist/components/Dialog/DialogContent.js.map +1 -1
- package/dist/components/Dialog/DialogIcon.js.map +1 -1
- package/dist/components/Dialog/DialogRoot.js.map +1 -1
- package/dist/components/Dialog/DialogTitle.js.map +1 -1
- package/dist/components/DialogOverlay/DialogOverlay.js.map +1 -1
- package/dist/components/Divider/Divider.css.js +1 -1
- package/dist/components/Divider/Divider.js.map +1 -1
- package/dist/components/DropZone/DropZone.js.map +1 -1
- package/dist/components/FullscreenOverlay/FullscreenOverlay.js.map +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderRoot.js.map +1 -1
- package/dist/components/Header/HeaderTitle.js.map +1 -1
- package/dist/components/Icon/Icon.js.map +1 -1
- package/dist/components/Icon/icons/AdaLogo.js.map +1 -1
- package/dist/components/Icon/icons/ArrowDown.js.map +1 -1
- package/dist/components/Icon/icons/ArrowLeft.js.map +1 -1
- package/dist/components/Icon/icons/ArrowNortheast.js.map +1 -1
- package/dist/components/Icon/icons/ArrowNorthwest.js.map +1 -1
- package/dist/components/Icon/icons/ArrowRight.js.map +1 -1
- package/dist/components/Icon/icons/ArrowUp.js.map +1 -1
- package/dist/components/Icon/icons/Bell.js.map +1 -1
- package/dist/components/Icon/icons/BellSlash.js.map +1 -1
- package/dist/components/Icon/icons/Checkmark.js.map +1 -1
- package/dist/components/Icon/icons/CheckmarkCircle.js.map +1 -1
- package/dist/components/Icon/icons/ChevronLeft.js.map +1 -1
- package/dist/components/Icon/icons/ChevronRight.js.map +1 -1
- package/dist/components/Icon/icons/CloudUpload.js.map +1 -1
- package/dist/components/Icon/icons/Document.js.map +1 -1
- package/dist/components/Icon/icons/Download.js.map +1 -1
- package/dist/components/Icon/icons/Ellipses.js.map +1 -1
- package/dist/components/Icon/icons/Email.js.map +1 -1
- package/dist/components/Icon/icons/ExclamationSync.js.map +1 -1
- package/dist/components/Icon/icons/ExclamationTriangle.js.map +1 -1
- package/dist/components/Icon/icons/Eye.js.map +1 -1
- package/dist/components/Icon/icons/EyeSlash.js.map +1 -1
- package/dist/components/Icon/icons/Glyph.js.map +1 -1
- package/dist/components/Icon/icons/Language.js.map +1 -1
- package/dist/components/Icon/icons/MediaSlash.js.map +1 -1
- package/dist/components/Icon/icons/MessagingFill.js.map +1 -1
- package/dist/components/Icon/icons/Minimize.js.map +1 -1
- package/dist/components/Icon/icons/Mute.js.map +1 -1
- package/dist/components/Icon/icons/Paperclip.js.map +1 -1
- package/dist/components/Icon/icons/PersonFill.js.map +1 -1
- package/dist/components/Icon/icons/PlayFill.js.map +1 -1
- package/dist/components/Icon/icons/Send.js.map +1 -1
- package/dist/components/Icon/icons/StarBadgeFill.js.map +1 -1
- package/dist/components/Icon/icons/ThumbsDown.js.map +1 -1
- package/dist/components/Icon/icons/ThumbsUp.js.map +1 -1
- package/dist/components/Icon/icons/Volume.js.map +1 -1
- package/dist/components/Icon/icons/Xmark.js.map +1 -1
- package/dist/components/Icon/icons/XmarkCircle.js.map +1 -1
- package/dist/components/IconButton/IconButton.css.js +1 -1
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/Image/Image.js.map +1 -1
- package/dist/components/Input/Input.context.js.map +1 -1
- package/dist/components/Input/Input.css.js +1 -1
- package/dist/components/Input/Input.js.map +1 -1
- package/dist/components/Input/InputAttachments.js.map +1 -1
- package/dist/components/Input/InputButton.js.map +1 -1
- package/dist/components/Input/InputControl.js.map +1 -1
- package/dist/components/Input/InputField.js.map +1 -1
- package/dist/components/Input/InputHelperText.js.map +1 -1
- package/dist/components/Input/InputLabel.js.map +1 -1
- package/dist/components/Input/InputRoot.js.map +1 -1
- package/dist/components/Input/InputTextArea.js.map +1 -1
- package/dist/components/Link/Link.css.js +1 -1
- package/dist/components/Link/Link.js.map +1 -1
- package/dist/components/MenuItem/Menu.js.map +1 -1
- package/dist/components/MenuItem/MenuItem.js.map +1 -1
- package/dist/components/MenuItem/MenuItemCheckbox.js.map +1 -1
- package/dist/components/MenuItem/MenuItemLabel.js.map +1 -1
- package/dist/components/MenuItem/MenuItemRadio.js.map +1 -1
- package/dist/components/MenuItem/MenuItemRoot.js.map +1 -1
- package/dist/components/MenuItem/MenuItemToggle.js.map +1 -1
- package/dist/components/MessageError/MessageError.js.map +1 -1
- package/dist/components/MessageProse/MessageProse.js.map +1 -1
- package/dist/components/MessageRow/MessageRow.context.js.map +1 -1
- package/dist/components/MessageRow/MessageRow.css.js +1 -1
- package/dist/components/MessageRow/MessageRow.js.map +1 -1
- package/dist/components/MessageRow/MessageRowContent.js.map +1 -1
- package/dist/components/MessageRow/MessageRowRoot.js.map +1 -1
- package/dist/components/PictureMessage/PictureMessage.css.js +1 -1
- package/dist/components/PictureMessage/PictureMessage.js.map +1 -1
- package/dist/components/PillButton/PillButton.css.js +1 -1
- package/dist/components/PillButton/PillButton.js.map +1 -1
- package/dist/components/ProactiveMessage/ProactiveMessage.js.map +1 -1
- package/dist/components/Radio/Radio.css.js +1 -1
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/Radio/RadioGroup.js.map +1 -1
- package/dist/components/Radio/RadioIndicator.js.map +1 -1
- package/dist/components/ScrollMarker/ScrollMarker.css.js +1 -1
- package/dist/components/ScrollMarker/ScrollMarker.js.map +1 -1
- package/dist/components/Sheet/Sheet.js.map +1 -1
- package/dist/components/Sheet/SheetActions.js.map +1 -1
- package/dist/components/Sheet/SheetBackButton.js.map +1 -1
- package/dist/components/Sheet/SheetBody.js.map +1 -1
- package/dist/components/Sheet/SheetCloseButton.js.map +1 -1
- package/dist/components/Sheet/SheetHeader.js.map +1 -1
- package/dist/components/Sheet/SheetRoot.js.map +1 -1
- package/dist/components/Sheet/SheetTitle.js.map +1 -1
- package/dist/components/SheetOverlay/SheetOverlay.js.map +1 -1
- package/dist/components/Spinner/Spinner.css.js +1 -1
- package/dist/components/Spinner/Spinner.js.map +1 -1
- package/dist/components/SurveyRating/SurveyRating.js.map +1 -1
- package/dist/components/SurveySelect/SurveySelect.js.map +1 -1
- package/dist/components/Text/Text.css.js +1 -1
- package/dist/components/Text/Text.js.map +1 -1
- package/dist/components/ThinkingShimmer/ThinkingShimmer.js.map +1 -1
- package/dist/components/Toast/Toast.css.js +1 -1
- package/dist/components/Toast/Toast.js.map +1 -1
- package/dist/components/Toast/ToastContainer.js.map +1 -1
- package/dist/components/Toast/index.js +4 -4
- package/dist/components/Toggle/Toggle.js.map +1 -1
- package/dist/components/Toggle/ToggleIndicator.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/TypingIndicator/TypingIndicator.js.map +1 -1
- package/dist/components/UserMessage/UserMessage.js.map +1 -1
- package/dist/components/VideoMessage/VideoMessage.css.js +1 -1
- package/dist/components/VideoMessage/VideoMessage.js.map +1 -1
- package/dist/hooks/overlayRegistry.js.map +1 -1
- package/dist/hooks/usePrefersReducedMotion.js.map +1 -1
- package/dist/hooks/useSubmitOnEnter.js.map +1 -1
- package/dist/runtime/LovelaceProvider.js +6 -6
- package/dist/runtime/LovelaceProvider.js.map +1 -1
- package/dist/runtime/branding.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tokens/tokens.js.map +1 -1
- package/dist/utils/animation.js.map +1 -1
- package/dist/utils/cx.js.map +1 -1
- package/dist/vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js +1 -1
- package/dist/vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.js","names":[],"sources":["../../../src/components/Toggle/Toggle.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport type { SwitchProps as AriaSwitchProps } from \"react-aria-components\";\nimport { Switch as AriaSwitch } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { toggleRoot } from \"./Toggle.css.js\";\nimport { ToggleIndicator } from \"./ToggleIndicator.js\";\n\nexport interface ToggleProps\n\textends Omit<AriaSwitchProps, \"children\" | \"className\" | \"style\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLLabelElement>;\n}\n\n/**\n * A binary on/off switch that applies instantly (RAC `Switch`, `role=\"switch\"`).\n * On renders the success-green track with the thumb at the trailing edge; off\n * renders the neutral track with the thumb leading. Track-only — give it an\n * accessible name with `aria-label` / `aria-labelledby`.\n *\n * Value is `isSelected` / `defaultSelected` / `onChange`; disabled is `isDisabled`.\n * Interaction states (hover/focus/pressed) and RTL mirroring come from RAC `data-*`\n * and the ambient `dir` — not props.\n */\nexport function Toggle({ className, ...rest }: ToggleProps) {\n\treturn (\n\t\t<AriaSwitch {...rest} className={cx(toggleRoot, className)}>\n\t\t\t<ToggleIndicator />\n\t\t</AriaSwitch>\n\t);\n}\n"],"mappings":";;;;;;AAwBA,SAAgB,EAAO,EAAE,cAAW,GAAG,KAAqB;
|
|
1
|
+
{"version":3,"file":"Toggle.js","names":[],"sources":["../../../src/components/Toggle/Toggle.tsx"],"sourcesContent":["import type { CSSProperties, Ref } from \"react\";\nimport type { SwitchProps as AriaSwitchProps } from \"react-aria-components\";\nimport { Switch as AriaSwitch } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { toggleRoot } from \"./Toggle.css.js\";\nimport { ToggleIndicator } from \"./ToggleIndicator.js\";\n\nexport interface ToggleProps\n\textends Omit<AriaSwitchProps, \"children\" | \"className\" | \"style\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLLabelElement>;\n}\n\n/**\n * A binary on/off switch that applies instantly (RAC `Switch`, `role=\"switch\"`).\n * On renders the success-green track with the thumb at the trailing edge; off\n * renders the neutral track with the thumb leading. Track-only — give it an\n * accessible name with `aria-label` / `aria-labelledby`.\n *\n * Value is `isSelected` / `defaultSelected` / `onChange`; disabled is `isDisabled`.\n * Interaction states (hover/focus/pressed) and RTL mirroring come from RAC `data-*`\n * and the ambient `dir` — not props.\n */\nexport function Toggle({ className, ...rest }: ToggleProps) {\n\treturn (\n\t\t<AriaSwitch {...rest} className={cx(toggleRoot, className)}>\n\t\t\t<ToggleIndicator />\n\t\t</AriaSwitch>\n\t);\n}\n"],"mappings":";;;;;;AAwBA,SAAgB,EAAO,EAAE,cAAW,GAAG,KAAqB;CAC3D,OACC,kBAAC,GAAD;EAAY,GAAI;EAAM,WAAW,EAAG,GAAY,CAAS;YACxD,kBAAC,GAAD,CAAkB,CAAA;CACP,CAAA;AAEd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleIndicator.js","names":[],"sources":["../../../src/components/Toggle/ToggleIndicator.tsx"],"sourcesContent":["import type { Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { toggleThumb, toggleTrack } from \"./Toggle.css.js\";\n\nexport interface ToggleIndicatorProps {\n\t/**\n\t * Draw the track's own focus ring and state-layer veil. True for a standalone\n\t * `Toggle`, where the pill is the only affordance; false inside a row, which\n\t * draws those on the row itself — leaving it true there would paint both.\n\t */\n\thasStateLayer?: boolean;\n\tclassName?: string;\n\tref?: Ref<HTMLSpanElement>;\n}\n\n/**\n * The pill track and its thumb, with no control of its own.\n *\n * On/off and disabled state are read from whichever ancestor element carries React\n * Aria's `data-selected` / `data-disabled` — the RAC `Switch` label, or a\n * `MenuItem` row — so the same markup and the same styles serve both hosts and\n * cannot drift apart. It must stay a **direct** child of that element; the state\n * rules use a child selector so an unrelated selected ancestor can't reach in.\n */\nexport function ToggleIndicator({\n\thasStateLayer = true,\n\tclassName,\n\tref,\n}: ToggleIndicatorProps) {\n\treturn (\n\t\t<span\n\t\t\tref={ref}\n\t\t\tdata-slot=\"indicator\"\n\t\t\tdata-state-layer={hasStateLayer || undefined}\n\t\t\tclassName={cx(toggleTrack, className)}\n\t\t\taria-hidden=\"true\"\n\t\t>\n\t\t\t<span className={toggleThumb} />\n\t\t</span>\n\t);\n}\n"],"mappings":";;;;AAwBA,SAAgB,EAAgB,EAC/B,mBAAgB,IAChB,cACA,UACwB;
|
|
1
|
+
{"version":3,"file":"ToggleIndicator.js","names":[],"sources":["../../../src/components/Toggle/ToggleIndicator.tsx"],"sourcesContent":["import type { Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { toggleThumb, toggleTrack } from \"./Toggle.css.js\";\n\nexport interface ToggleIndicatorProps {\n\t/**\n\t * Draw the track's own focus ring and state-layer veil. True for a standalone\n\t * `Toggle`, where the pill is the only affordance; false inside a row, which\n\t * draws those on the row itself — leaving it true there would paint both.\n\t */\n\thasStateLayer?: boolean;\n\tclassName?: string;\n\tref?: Ref<HTMLSpanElement>;\n}\n\n/**\n * The pill track and its thumb, with no control of its own.\n *\n * On/off and disabled state are read from whichever ancestor element carries React\n * Aria's `data-selected` / `data-disabled` — the RAC `Switch` label, or a\n * `MenuItem` row — so the same markup and the same styles serve both hosts and\n * cannot drift apart. It must stay a **direct** child of that element; the state\n * rules use a child selector so an unrelated selected ancestor can't reach in.\n */\nexport function ToggleIndicator({\n\thasStateLayer = true,\n\tclassName,\n\tref,\n}: ToggleIndicatorProps) {\n\treturn (\n\t\t<span\n\t\t\tref={ref}\n\t\t\tdata-slot=\"indicator\"\n\t\t\tdata-state-layer={hasStateLayer || undefined}\n\t\t\tclassName={cx(toggleTrack, className)}\n\t\t\taria-hidden=\"true\"\n\t\t>\n\t\t\t<span className={toggleThumb} />\n\t\t</span>\n\t);\n}\n"],"mappings":";;;;AAwBA,SAAgB,EAAgB,EAC/B,mBAAgB,IAChB,cACA,UACwB;CACxB,OACC,kBAAC,QAAD;EACM;EACL,aAAU;EACV,oBAAkB,KAAiB,KAAA;EACnC,WAAW,EAAG,GAAa,CAAS;EACpC,eAAY;YAEZ,kBAAC,QAAD,EAAM,WAAW,EAAc,CAAA;CAC1B,CAAA;AAER"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","names":[],"sources":["../../../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode } from \"react\";\nimport { useLocale } from \"react-aria\";\nimport type { TooltipProps as AriaTooltipProps } from \"react-aria-components\";\nimport {\n\tTooltip as AriaTooltip,\n\tOverlayArrow,\n\tTooltipTrigger,\n} from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { arrow, arrowSvg, tooltip } from \"./Tooltip.css.js\";\n\nexport type TooltipPlacement = \"top\" | \"bottom\" | \"left\" | \"right\";\n\nexport interface TooltipProps\n\textends Omit<\n\t\tAriaTooltipProps,\n\t\t\"children\" | \"className\" | \"style\" | \"placement\"\n\t> {\n\t/** Which side of the trigger the tooltip sits on. The arrow points back at the trigger. */\n\tplacement?: TooltipPlacement;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\t/** Tooltip text. */\n\tchildren: ReactNode;\n}\n\n/**\n * Inverse-surface tooltip with a directional arrow, revealed on hover/focus of\n * its trigger. Render inside `TooltipTrigger` next to the focusable trigger:\n * `<TooltipTrigger><Button>…</Button><Tooltip>Help</Tooltip></TooltipTrigger>`.\n */\nexport function Tooltip({\n\tplacement = \"top\",\n\toffset = 6,\n\tclassName,\n\tstyle,\n\tchildren,\n\t...rest\n}: TooltipProps) {\n\t// Stated, not inherited: this renders through a portal, so its direction must\n\t// not depend on where the portal lands. See the portalled-surface scenario\n\t// under the RTL requirement in openspec/specs/accessibility/spec.md.\n\tconst { direction } = useLocale();\n\n\treturn (\n\t\t<AriaTooltip\n\t\t\t{...rest}\n\t\t\tplacement={placement}\n\t\t\toffset={offset}\n\t\t\tclassName={cx(tooltip, className)}\n\t\t\tstyle={style}\n\t\t\tdir={direction}\n\t\t>\n\t\t\t<OverlayArrow className={arrow}>\n\t\t\t\t{/* Square box so RAC's arrow centering keeps the same footprint under\n\t\t\t\t the ±90° left/right rotations; the triangle sits in the top half. */}\n\t\t\t\t<svg\n\t\t\t\t\tclassName={arrowSvg}\n\t\t\t\t\twidth={12}\n\t\t\t\t\theight={12}\n\t\t\t\t\tviewBox=\"0 0 12 12\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t>\n\t\t\t\t\t<path d=\"M0 0 L6 6 L12 0 Z\" />\n\t\t\t\t</svg>\n\t\t\t</OverlayArrow>\n\t\t\t{children}\n\t\t</AriaTooltip>\n\t);\n}\n\nexport { TooltipTrigger };\n"],"mappings":";;;;;;AA+BA,SAAgB,EAAQ,EACvB,eAAY,OACZ,YAAS,GACT,cACA,UACA,aACA,GAAG,KACa;CAIhB,IAAM,EAAE,iBAAc,
|
|
1
|
+
{"version":3,"file":"Tooltip.js","names":[],"sources":["../../../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode } from \"react\";\nimport { useLocale } from \"react-aria\";\nimport type { TooltipProps as AriaTooltipProps } from \"react-aria-components\";\nimport {\n\tTooltip as AriaTooltip,\n\tOverlayArrow,\n\tTooltipTrigger,\n} from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { arrow, arrowSvg, tooltip } from \"./Tooltip.css.js\";\n\nexport type TooltipPlacement = \"top\" | \"bottom\" | \"left\" | \"right\";\n\nexport interface TooltipProps\n\textends Omit<\n\t\tAriaTooltipProps,\n\t\t\"children\" | \"className\" | \"style\" | \"placement\"\n\t> {\n\t/** Which side of the trigger the tooltip sits on. The arrow points back at the trigger. */\n\tplacement?: TooltipPlacement;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\t/** Tooltip text. */\n\tchildren: ReactNode;\n}\n\n/**\n * Inverse-surface tooltip with a directional arrow, revealed on hover/focus of\n * its trigger. Render inside `TooltipTrigger` next to the focusable trigger:\n * `<TooltipTrigger><Button>…</Button><Tooltip>Help</Tooltip></TooltipTrigger>`.\n */\nexport function Tooltip({\n\tplacement = \"top\",\n\toffset = 6,\n\tclassName,\n\tstyle,\n\tchildren,\n\t...rest\n}: TooltipProps) {\n\t// Stated, not inherited: this renders through a portal, so its direction must\n\t// not depend on where the portal lands. See the portalled-surface scenario\n\t// under the RTL requirement in openspec/specs/accessibility/spec.md.\n\tconst { direction } = useLocale();\n\n\treturn (\n\t\t<AriaTooltip\n\t\t\t{...rest}\n\t\t\tplacement={placement}\n\t\t\toffset={offset}\n\t\t\tclassName={cx(tooltip, className)}\n\t\t\tstyle={style}\n\t\t\tdir={direction}\n\t\t>\n\t\t\t<OverlayArrow className={arrow}>\n\t\t\t\t{/* Square box so RAC's arrow centering keeps the same footprint under\n\t\t\t\t the ±90° left/right rotations; the triangle sits in the top half. */}\n\t\t\t\t<svg\n\t\t\t\t\tclassName={arrowSvg}\n\t\t\t\t\twidth={12}\n\t\t\t\t\theight={12}\n\t\t\t\t\tviewBox=\"0 0 12 12\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t>\n\t\t\t\t\t<path d=\"M0 0 L6 6 L12 0 Z\" />\n\t\t\t\t</svg>\n\t\t\t</OverlayArrow>\n\t\t\t{children}\n\t\t</AriaTooltip>\n\t);\n}\n\nexport { TooltipTrigger };\n"],"mappings":";;;;;;AA+BA,SAAgB,EAAQ,EACvB,eAAY,OACZ,YAAS,GACT,cACA,UACA,aACA,GAAG,KACa;CAIhB,IAAM,EAAE,iBAAc,EAAU;CAEhC,OACC,kBAAC,GAAD;EACC,GAAI;EACO;EACH;EACR,WAAW,EAAG,GAAS,CAAS;EACzB;EACP,KAAK;YANN,CAQC,kBAAC,GAAD;GAAc,WAAW;aAGxB,kBAAC,OAAD;IACC,WAAW;IACX,OAAO;IACP,QAAQ;IACR,SAAQ;IACR,eAAY;cAEZ,kBAAC,QAAD,EAAM,GAAE,oBAAqB,CAAA;GACzB,CAAA;EACQ,CAAA,GACb,CACW;;AAEf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypingIndicator.js","names":[],"sources":["../../../src/components/TypingIndicator/TypingIndicator.tsx"],"sourcesContent":["import type { CSSProperties, HTMLAttributes, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { bubble, dot, visuallyHidden } from \"./TypingIndicator.css.js\";\n\nexport interface TypingIndicatorProps\n\textends Omit<HTMLAttributes<HTMLDivElement>, \"children\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\n/**\n * Human-agent typing indicator — an animated three-dot bubble shown while a live\n * agent is composing a reply. Render it as a transient status in the message list\n * driven by the agent's live typing/presence signal, and remove it when the\n * message arrives or typing stops.\n *\n * Use only for a human agent typing — not for AI generation (use the\n * `ThinkingShimmer` for that).\n *\n * Exposed as a polite live region. The dots are hidden from assistive tech and\n * the announced string is carried as visually-hidden text (live regions announce\n * rendered text, not `aria-label`); pass `aria-label` to override it. Reliable\n * on-appearance announcement additionally depends on the consuming surface\n * keeping a persistent live region present before this mounts; validate with a\n * real screen reader when a surface adopts this component.\n *\n * A surface that already wraps this in its own live region should pass\n * `aria-live=\"off\"`: two nested regions announce the same text twice, in an order\n * neither controls.\n */\nexport function TypingIndicator({\n\tclassName,\n\t\"aria-label\": ariaLabel = \"Agent is typing\",\n\t\"aria-live\": ariaLive = \"polite\",\n\t...rest\n}: TypingIndicatorProps) {\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\trole=\"status\"\n\t\t\taria-live={ariaLive}\n\t\t\tclassName={cx(bubble, className)}\n\t\t>\n\t\t\t<span className={dot} aria-hidden=\"true\" />\n\t\t\t<span className={dot} aria-hidden=\"true\" />\n\t\t\t<span className={dot} aria-hidden=\"true\" />\n\t\t\t<span className={visuallyHidden}>{ariaLabel}</span>\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;AA+BA,SAAgB,EAAgB,EAC/B,cACA,cAAc,IAAY,mBAC1B,aAAa,IAAW,UACxB,GAAG,KACqB;
|
|
1
|
+
{"version":3,"file":"TypingIndicator.js","names":[],"sources":["../../../src/components/TypingIndicator/TypingIndicator.tsx"],"sourcesContent":["import type { CSSProperties, HTMLAttributes, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { bubble, dot, visuallyHidden } from \"./TypingIndicator.css.js\";\n\nexport interface TypingIndicatorProps\n\textends Omit<HTMLAttributes<HTMLDivElement>, \"children\"> {\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\n/**\n * Human-agent typing indicator — an animated three-dot bubble shown while a live\n * agent is composing a reply. Render it as a transient status in the message list\n * driven by the agent's live typing/presence signal, and remove it when the\n * message arrives or typing stops.\n *\n * Use only for a human agent typing — not for AI generation (use the\n * `ThinkingShimmer` for that).\n *\n * Exposed as a polite live region. The dots are hidden from assistive tech and\n * the announced string is carried as visually-hidden text (live regions announce\n * rendered text, not `aria-label`); pass `aria-label` to override it. Reliable\n * on-appearance announcement additionally depends on the consuming surface\n * keeping a persistent live region present before this mounts; validate with a\n * real screen reader when a surface adopts this component.\n *\n * A surface that already wraps this in its own live region should pass\n * `aria-live=\"off\"`: two nested regions announce the same text twice, in an order\n * neither controls.\n */\nexport function TypingIndicator({\n\tclassName,\n\t\"aria-label\": ariaLabel = \"Agent is typing\",\n\t\"aria-live\": ariaLive = \"polite\",\n\t...rest\n}: TypingIndicatorProps) {\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\trole=\"status\"\n\t\t\taria-live={ariaLive}\n\t\t\tclassName={cx(bubble, className)}\n\t\t>\n\t\t\t<span className={dot} aria-hidden=\"true\" />\n\t\t\t<span className={dot} aria-hidden=\"true\" />\n\t\t\t<span className={dot} aria-hidden=\"true\" />\n\t\t\t<span className={visuallyHidden}>{ariaLabel}</span>\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;AA+BA,SAAgB,EAAgB,EAC/B,cACA,cAAc,IAAY,mBAC1B,aAAa,IAAW,UACxB,GAAG,KACqB;CACxB,OACC,kBAAC,OAAD;EACC,GAAI;EACJ,MAAK;EACL,aAAW;EACX,WAAW,EAAG,GAAQ,CAAS;YAJhC;GAMC,kBAAC,QAAD;IAAM,WAAW;IAAK,eAAY;GAAQ,CAAA;GAC1C,kBAAC,QAAD;IAAM,WAAW;IAAK,eAAY;GAAQ,CAAA;GAC1C,kBAAC,QAAD;IAAM,WAAW;IAAK,eAAY;GAAQ,CAAA;GAC1C,kBAAC,QAAD;IAAM,WAAW;cAAiB;GAAgB,CAAA;EAC9C;;AAEP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserMessage.js","names":[],"sources":["../../../src/components/UserMessage/UserMessage.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { MessageProse } from \"../MessageProse/index.js\";\nimport { userMessageBubble, userMessageText } from \"./UserMessage.css.js\";\n\nexport interface UserMessageProps {\n\t/**\n\t * The message the chatter sent. One message per bubble; block content\n\t * (lists, tables) is allowed.\n\t */\n\tchildren: ReactNode;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\n/**\n * The chatter's outbound chat message bubble — accent background, shrink-wrapped\n * to its content. Mirrors automatically under `dir=\"rtl\"` via logical properties.\n *\n * Where the bubble sits in the row is the transcript's decision, not this\n * component's, and so is anything beside it: pair it with `MessageError` as a\n * sibling when a send fails. `AgentMessage` draws the same boundary.\n */\nexport function UserMessage({\n\tchildren,\n\tclassName,\n\t...rest\n}: UserMessageProps) {\n\treturn (\n\t\t<div {...rest} className={cx(userMessageBubble, className)}>\n\t\t\t<MessageProse className={userMessageText}>{children}</MessageProse>\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;AAwBA,SAAgB,EAAY,EAC3B,aACA,cACA,GAAG,KACiB;
|
|
1
|
+
{"version":3,"file":"UserMessage.js","names":[],"sources":["../../../src/components/UserMessage/UserMessage.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { cx } from \"../../utils/cx.js\";\nimport { MessageProse } from \"../MessageProse/index.js\";\nimport { userMessageBubble, userMessageText } from \"./UserMessage.css.js\";\n\nexport interface UserMessageProps {\n\t/**\n\t * The message the chatter sent. One message per bubble; block content\n\t * (lists, tables) is allowed.\n\t */\n\tchildren: ReactNode;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\n/**\n * The chatter's outbound chat message bubble — accent background, shrink-wrapped\n * to its content. Mirrors automatically under `dir=\"rtl\"` via logical properties.\n *\n * Where the bubble sits in the row is the transcript's decision, not this\n * component's, and so is anything beside it: pair it with `MessageError` as a\n * sibling when a send fails. `AgentMessage` draws the same boundary.\n */\nexport function UserMessage({\n\tchildren,\n\tclassName,\n\t...rest\n}: UserMessageProps) {\n\treturn (\n\t\t<div {...rest} className={cx(userMessageBubble, className)}>\n\t\t\t<MessageProse className={userMessageText}>{children}</MessageProse>\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;AAwBA,SAAgB,EAAY,EAC3B,aACA,cACA,GAAG,KACiB;CACpB,OACC,kBAAC,OAAD;EAAK,GAAI;EAAM,WAAW,EAAG,GAAmB,CAAS;YACxD,kBAAC,GAAD;GAAc,WAAW;GAAkB;EAAuB,CAAA;CAC9D,CAAA;AAEP"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e } from "../../vendor/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
//#region src/components/VideoMessage/VideoMessage.css.ts
|
|
4
4
|
var t = e({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoMessage.js","names":[],"sources":["../../../src/components/VideoMessage/VideoMessage.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { Children } from \"react\";\nimport { Group } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { MediaSlash } from \"../Icon/icons/MediaSlash.js\";\nimport {\n\tvideoPlaceholderIcon,\n\tvideoRoot,\n\tvideoSlot,\n} from \"./VideoMessage.css.js\";\n\nexport type VideoAspectRatio = \"16:9\" | \"4:3\" | \"1:1\" | \"3:4\" | \"9:16\";\n\nexport interface VideoMessageProps {\n\t/**\n\t * The player rendered inside the frame. The shell carries no playback logic\n\t * of its own — the supplied player owns its controls, load state and error\n\t * handling; drive the placeholder through `unavailable`. When absent, the\n\t * frame shows the unavailable placeholder.\n\t */\n\tchildren?: ReactNode;\n\t/** Accessible name for the video — describe what it shows. */\n\talt: string;\n\t/**\n\t * Frame proportions — bind to the source video's proportions so it isn't\n\t * cropped. Defaults to `\"16:9\"`. The frame is context-sized (fills its\n\t * container's width); the consumer constrains it to the message column.\n\t */\n\taspectRatio?: VideoAspectRatio;\n\t/** Force the \"video unavailable\" placeholder (media-slash on a muted box). */\n\tunavailable?: boolean;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\nconst UNAVAILABLE_LABEL = \"Video unavailable\";\nconst GROUP_LABEL = \"Video\";\nconst DEFAULT_ASPECT_RATIO: VideoAspectRatio = \"16:9\";\n\n/**\n * The presentational frame for a video attachment rendered inside a chat\n * message: rounded clipping to the media-preview corner radius, a fixed aspect\n * ratio, and an accessible grouping label. The consumer supplies the player as\n * `children`; when the video is unavailable — or no player is supplied — the\n * frame shows a muted media-slash placeholder instead.\n */\nexport function VideoMessage({\n\tchildren,\n\talt,\n\taspectRatio = DEFAULT_ASPECT_RATIO,\n\tunavailable = false,\n\tclassName,\n\t...rest\n}: VideoMessageProps) {\n\t// Normalized emptiness, not a `!== false` check: a consumer gating its player\n\t// with `{ready && <Player />}` — alone or alongside siblings, where children\n\t// arrives as an array — renders nothing, and treating that as a supplied\n\t// player would leave the frame permanently empty. `Children.toArray` strips\n\t// null/undefined/booleans at any depth.\n\tconst supplied = Children.toArray(children).length > 0;\n\tconst showPlaceholder = unavailable || !supplied;\n\n\t// Lovelace can be consumed from older/untyped JavaScript even though the TS\n\t// contract requires a string, so the failure path must remain total.\n\tconst description = typeof alt === \"string\" ? alt.trim() : \"\";\n\tconst unavailableLabel = description\n\t\t? `${UNAVAILABLE_LABEL}: ${description}`\n\t\t: UNAVAILABLE_LABEL;\n\n\treturn (\n\t\t// RAC `Group` (role=\"group\"), not a bare div: `aria-label` on a generic\n\t\t// element is prohibited and assistive tech drops it (axe\n\t\t// `aria-prohibited-attr`), so a supplied player — which carries no label of\n\t\t// its own — would reach nobody.\n\t\t<Group\n\t\t\t{...rest}\n\t\t\taria-label={description || GROUP_LABEL}\n\t\t\tdata-aspect-ratio={aspectRatio}\n\t\t\tdata-unavailable={showPlaceholder || undefined}\n\t\t\tclassName={cx(\n\t\t\t\tvideoRoot({ aspectRatio, unavailable: showPlaceholder }),\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t{showPlaceholder ? (\n\t\t\t\t<MediaSlash className={videoPlaceholderIcon} label={unavailableLabel} />\n\t\t\t) : (\n\t\t\t\t<div className={videoSlot}>{children}</div>\n\t\t\t)}\n\t\t</Group>\n\t);\n}\n"],"mappings":";;;;;;;AAoCA,IAAM,IAAoB,qBACpB,IAAc,SACd,IAAyC;AAS/C,SAAgB,EAAa,EAC5B,aACA,QACA,iBAAc,GACd,iBAAc,IACd,cACA,GAAG,KACkB;CAMrB,IAAM,IAAW,EAAS,QAAQ,
|
|
1
|
+
{"version":3,"file":"VideoMessage.js","names":[],"sources":["../../../src/components/VideoMessage/VideoMessage.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { Children } from \"react\";\nimport { Group } from \"react-aria-components\";\nimport { cx } from \"../../utils/cx.js\";\nimport { MediaSlash } from \"../Icon/icons/MediaSlash.js\";\nimport {\n\tvideoPlaceholderIcon,\n\tvideoRoot,\n\tvideoSlot,\n} from \"./VideoMessage.css.js\";\n\nexport type VideoAspectRatio = \"16:9\" | \"4:3\" | \"1:1\" | \"3:4\" | \"9:16\";\n\nexport interface VideoMessageProps {\n\t/**\n\t * The player rendered inside the frame. The shell carries no playback logic\n\t * of its own — the supplied player owns its controls, load state and error\n\t * handling; drive the placeholder through `unavailable`. When absent, the\n\t * frame shows the unavailable placeholder.\n\t */\n\tchildren?: ReactNode;\n\t/** Accessible name for the video — describe what it shows. */\n\talt: string;\n\t/**\n\t * Frame proportions — bind to the source video's proportions so it isn't\n\t * cropped. Defaults to `\"16:9\"`. The frame is context-sized (fills its\n\t * container's width); the consumer constrains it to the message column.\n\t */\n\taspectRatio?: VideoAspectRatio;\n\t/** Force the \"video unavailable\" placeholder (media-slash on a muted box). */\n\tunavailable?: boolean;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n\tref?: Ref<HTMLDivElement>;\n}\n\nconst UNAVAILABLE_LABEL = \"Video unavailable\";\nconst GROUP_LABEL = \"Video\";\nconst DEFAULT_ASPECT_RATIO: VideoAspectRatio = \"16:9\";\n\n/**\n * The presentational frame for a video attachment rendered inside a chat\n * message: rounded clipping to the media-preview corner radius, a fixed aspect\n * ratio, and an accessible grouping label. The consumer supplies the player as\n * `children`; when the video is unavailable — or no player is supplied — the\n * frame shows a muted media-slash placeholder instead.\n */\nexport function VideoMessage({\n\tchildren,\n\talt,\n\taspectRatio = DEFAULT_ASPECT_RATIO,\n\tunavailable = false,\n\tclassName,\n\t...rest\n}: VideoMessageProps) {\n\t// Normalized emptiness, not a `!== false` check: a consumer gating its player\n\t// with `{ready && <Player />}` — alone or alongside siblings, where children\n\t// arrives as an array — renders nothing, and treating that as a supplied\n\t// player would leave the frame permanently empty. `Children.toArray` strips\n\t// null/undefined/booleans at any depth.\n\tconst supplied = Children.toArray(children).length > 0;\n\tconst showPlaceholder = unavailable || !supplied;\n\n\t// Lovelace can be consumed from older/untyped JavaScript even though the TS\n\t// contract requires a string, so the failure path must remain total.\n\tconst description = typeof alt === \"string\" ? alt.trim() : \"\";\n\tconst unavailableLabel = description\n\t\t? `${UNAVAILABLE_LABEL}: ${description}`\n\t\t: UNAVAILABLE_LABEL;\n\n\treturn (\n\t\t// RAC `Group` (role=\"group\"), not a bare div: `aria-label` on a generic\n\t\t// element is prohibited and assistive tech drops it (axe\n\t\t// `aria-prohibited-attr`), so a supplied player — which carries no label of\n\t\t// its own — would reach nobody.\n\t\t<Group\n\t\t\t{...rest}\n\t\t\taria-label={description || GROUP_LABEL}\n\t\t\tdata-aspect-ratio={aspectRatio}\n\t\t\tdata-unavailable={showPlaceholder || undefined}\n\t\t\tclassName={cx(\n\t\t\t\tvideoRoot({ aspectRatio, unavailable: showPlaceholder }),\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t{showPlaceholder ? (\n\t\t\t\t<MediaSlash className={videoPlaceholderIcon} label={unavailableLabel} />\n\t\t\t) : (\n\t\t\t\t<div className={videoSlot}>{children}</div>\n\t\t\t)}\n\t\t</Group>\n\t);\n}\n"],"mappings":";;;;;;;AAoCA,IAAM,IAAoB,qBACpB,IAAc,SACd,IAAyC;AAS/C,SAAgB,EAAa,EAC5B,aACA,QACA,iBAAc,GACd,iBAAc,IACd,cACA,GAAG,KACkB;CAMrB,IAAM,IAAW,EAAS,QAAQ,CAAQ,CAAC,CAAC,SAAS,GAC/C,IAAkB,KAAe,CAAC,GAIlC,IAAc,OAAO,KAAQ,WAAW,EAAI,KAAK,IAAI,IACrD,IAAmB,IACtB,GAAG,EAAkB,IAAI,MACzB;CAEH,OAKC,kBAAC,GAAD;EACC,GAAI;EACJ,cAAY,KAAe;EAC3B,qBAAmB;EACnB,oBAAkB,KAAmB,KAAA;EACrC,WAAW,EACV,EAAU;GAAE;GAAa,aAAa;EAAgB,CAAC,GACvD,CACD;YAEC,IACA,kBAAC,GAAD;GAAY,WAAW;GAAsB,OAAO;EAAmB,CAAA,IAEvE,kBAAC,OAAD;GAAK,WAAW;GAAY;EAAc,CAAA;CAErC,CAAA;AAET"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlayRegistry.js","names":[],"sources":["../../src/hooks/overlayRegistry.tsx"],"sourcesContent":["import { useLayoutEffect, useSyncExternalStore } from \"react\";\n\n/**\n * How many modal overlays are mounted right now.\n *\n * Module-level because the reader is not an ancestor of the overlays: the toast\n * region sits in the consumer's chrome while every overlay renders through a\n * portal, so there is no shared provider to hang this on that a consumer could\n * not forget to mount.\n */\nlet openOverlays = 0;\nconst subscribers = new Set<() => void>();\n\nfunction subscribe(onStoreChange: () => void): () => void {\n\tsubscribers.add(onStoreChange);\n\treturn () => {\n\t\tsubscribers.delete(onStoreChange);\n\t};\n}\n\nfunction getSnapshot(): boolean {\n\treturn openOverlays > 0;\n}\n\nfunction getServerSnapshot(): boolean {\n\treturn false;\n}\n\nfunction publish(): void {\n\tfor (const onStoreChange of subscribers) {\n\t\tonStoreChange();\n\t}\n}\n\n/**\n * Counts one modal overlay as open for as long as the calling component is\n * mounted, so a surface underneath can stand down while it is.\n *\n * Call it from a component rendered **inside** the overlay, not from the one that\n * renders the overlay. RAC mounts an overlay's children for exactly the window the\n * scrim is on screen, which includes its exit transition — keying off an `isOpen`\n * prop instead releases the count while the scrim is still painted and still\n * blocking the pointer. `OverlayRegistration` is that component; render one inside\n * any `ModalOverlay` this package does not already wrap.\n */\nexport function useRegisterOverlay(): void {\n\t// Layout, not passive: a passive effect runs after the commit is painted, so\n\t// the frame that puts the scrim up would also show whatever was standing down\n\t// underneath it, and a toast mounted for that frame announces itself.\n\tuseLayoutEffect(() => {\n\t\topenOverlays += 1;\n\t\tpublish();\n\t\treturn () => {\n\t\t\topenOverlays -= 1;\n\t\t\tpublish();\n\t\t};\n\t}, []);\n}\n\n/** Registers its overlay for as long as it is rendered. Renders nothing. */\nexport function OverlayRegistration(): null {\n\tuseRegisterOverlay();\n\treturn null;\n}\n\n/**\n * Whether any modal overlay is open.\n *\n * For a surface that has to stand down while one is: an overlay traps focus and\n * paints over everything below it, so anything left underneath is unreachable by\n * pointer while still being announced and focusable.\n */\nexport function useHasOpenOverlay(): boolean {\n\treturn useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n}\n"],"mappings":";;AAUA,IAAI,IAAe,GACb,oBAAc,IAAI,
|
|
1
|
+
{"version":3,"file":"overlayRegistry.js","names":[],"sources":["../../src/hooks/overlayRegistry.tsx"],"sourcesContent":["import { useLayoutEffect, useSyncExternalStore } from \"react\";\n\n/**\n * How many modal overlays are mounted right now.\n *\n * Module-level because the reader is not an ancestor of the overlays: the toast\n * region sits in the consumer's chrome while every overlay renders through a\n * portal, so there is no shared provider to hang this on that a consumer could\n * not forget to mount.\n */\nlet openOverlays = 0;\nconst subscribers = new Set<() => void>();\n\nfunction subscribe(onStoreChange: () => void): () => void {\n\tsubscribers.add(onStoreChange);\n\treturn () => {\n\t\tsubscribers.delete(onStoreChange);\n\t};\n}\n\nfunction getSnapshot(): boolean {\n\treturn openOverlays > 0;\n}\n\nfunction getServerSnapshot(): boolean {\n\treturn false;\n}\n\nfunction publish(): void {\n\tfor (const onStoreChange of subscribers) {\n\t\tonStoreChange();\n\t}\n}\n\n/**\n * Counts one modal overlay as open for as long as the calling component is\n * mounted, so a surface underneath can stand down while it is.\n *\n * Call it from a component rendered **inside** the overlay, not from the one that\n * renders the overlay. RAC mounts an overlay's children for exactly the window the\n * scrim is on screen, which includes its exit transition — keying off an `isOpen`\n * prop instead releases the count while the scrim is still painted and still\n * blocking the pointer. `OverlayRegistration` is that component; render one inside\n * any `ModalOverlay` this package does not already wrap.\n */\nexport function useRegisterOverlay(): void {\n\t// Layout, not passive: a passive effect runs after the commit is painted, so\n\t// the frame that puts the scrim up would also show whatever was standing down\n\t// underneath it, and a toast mounted for that frame announces itself.\n\tuseLayoutEffect(() => {\n\t\topenOverlays += 1;\n\t\tpublish();\n\t\treturn () => {\n\t\t\topenOverlays -= 1;\n\t\t\tpublish();\n\t\t};\n\t}, []);\n}\n\n/** Registers its overlay for as long as it is rendered. Renders nothing. */\nexport function OverlayRegistration(): null {\n\tuseRegisterOverlay();\n\treturn null;\n}\n\n/**\n * Whether any modal overlay is open.\n *\n * For a surface that has to stand down while one is: an overlay traps focus and\n * paints over everything below it, so anything left underneath is unreachable by\n * pointer while still being announced and focusable.\n */\nexport function useHasOpenOverlay(): boolean {\n\treturn useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n}\n"],"mappings":";;AAUA,IAAI,IAAe,GACb,oBAAc,IAAI,IAAgB;AAExC,SAAS,EAAU,GAAuC;CAEzD,OADA,EAAY,IAAI,CAAa,SAChB;EACZ,EAAY,OAAO,CAAa;CACjC;AACD;AAEA,SAAS,IAAuB;CAC/B,OAAO,IAAe;AACvB;AAEA,SAAS,IAA6B;CACrC,OAAO;AACR;AAEA,SAAS,IAAgB;CACxB,KAAK,IAAM,KAAiB,GAC3B,EAAc;AAEhB;AAaA,SAAgB,IAA2B;CAI1C,SACC,KAAgB,GAChB,EAAQ,SACK;EAEZ,AADA,KACA,EAAQ;CACT,IACE,CAAC,CAAC;AACN;AAGA,SAAgB,IAA4B;CAE3C,OADA,EAAmB,GACZ;AACR;AASA,SAAgB,IAA6B;CAC5C,OAAO,EAAqB,GAAW,GAAa,CAAiB;AACtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePrefersReducedMotion.js","names":[],"sources":["../../src/hooks/usePrefersReducedMotion.ts"],"sourcesContent":["import { useEffect, useState } from \"react\";\n\nconst REDUCED_MOTION_QUERY = \"(prefers-reduced-motion: reduce)\";\n\nexport function readPrefersReducedMotion(): boolean {\n\tif (\n\t\ttypeof window === \"undefined\" ||\n\t\ttypeof window.matchMedia !== \"function\"\n\t) {\n\t\treturn false;\n\t}\n\treturn window.matchMedia(REDUCED_MOTION_QUERY).matches;\n}\n\n/** Tracks the user's `prefers-reduced-motion` setting, updating on change. */\nexport function usePrefersReducedMotion(): boolean {\n\tconst [reduced, setReduced] = useState(readPrefersReducedMotion);\n\n\tuseEffect(() => {\n\t\tif (\n\t\t\ttypeof window === \"undefined\" ||\n\t\t\ttypeof window.matchMedia !== \"function\"\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tconst mql = window.matchMedia(REDUCED_MOTION_QUERY);\n\t\tsetReduced(mql.matches);\n\t\tconst listener = (e: MediaQueryListEvent) => setReduced(e.matches);\n\t\tmql.addEventListener(\"change\", listener);\n\t\treturn () => mql.removeEventListener(\"change\", listener);\n\t}, []);\n\n\treturn reduced;\n}\n"],"mappings":";;AAEA,IAAM,IAAuB;AAE7B,SAAgB,IAAoC;
|
|
1
|
+
{"version":3,"file":"usePrefersReducedMotion.js","names":[],"sources":["../../src/hooks/usePrefersReducedMotion.ts"],"sourcesContent":["import { useEffect, useState } from \"react\";\n\nconst REDUCED_MOTION_QUERY = \"(prefers-reduced-motion: reduce)\";\n\nexport function readPrefersReducedMotion(): boolean {\n\tif (\n\t\ttypeof window === \"undefined\" ||\n\t\ttypeof window.matchMedia !== \"function\"\n\t) {\n\t\treturn false;\n\t}\n\treturn window.matchMedia(REDUCED_MOTION_QUERY).matches;\n}\n\n/** Tracks the user's `prefers-reduced-motion` setting, updating on change. */\nexport function usePrefersReducedMotion(): boolean {\n\tconst [reduced, setReduced] = useState(readPrefersReducedMotion);\n\n\tuseEffect(() => {\n\t\tif (\n\t\t\ttypeof window === \"undefined\" ||\n\t\t\ttypeof window.matchMedia !== \"function\"\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tconst mql = window.matchMedia(REDUCED_MOTION_QUERY);\n\t\tsetReduced(mql.matches);\n\t\tconst listener = (e: MediaQueryListEvent) => setReduced(e.matches);\n\t\tmql.addEventListener(\"change\", listener);\n\t\treturn () => mql.removeEventListener(\"change\", listener);\n\t}, []);\n\n\treturn reduced;\n}\n"],"mappings":";;AAEA,IAAM,IAAuB;AAE7B,SAAgB,IAAoC;CAOnD,OALC,OAAO,SAAW,OAClB,OAAO,OAAO,cAAe,aAEtB,KAED,OAAO,WAAW,CAAoB,CAAC,CAAC;AAChD;AAGA,SAAgB,IAAmC;CAClD,IAAM,CAAC,GAAS,KAAc,EAAS,CAAwB;CAgB/D,OAdA,QAAgB;EACf,IACC,OAAO,SAAW,OAClB,OAAO,OAAO,cAAe,YAE7B;EAED,IAAM,IAAM,OAAO,WAAW,CAAoB;EAClD,EAAW,EAAI,OAAO;EACtB,IAAM,KAAY,MAA2B,EAAW,EAAE,OAAO;EAEjE,OADA,EAAI,iBAAiB,UAAU,CAAQ,SAC1B,EAAI,oBAAoB,UAAU,CAAQ;CACxD,GAAG,CAAC,CAAC,GAEE;AACR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSubmitOnEnter.js","names":[],"sources":["../../src/hooks/useSubmitOnEnter.ts"],"sourcesContent":["import type { KeyboardEvent } from \"react\";\nimport { useCallback } from \"react\";\n\n/** Returns an `onKeyDown` handler that calls `onSubmit` when Enter is pressed\n * without Shift — the standard chat-composer key handling. Shift+Enter falls\n * through so the field inserts a newline. Guards against IME composition:\n * pressing Enter to confirm a candidate (e.g. Japanese/Chinese input) must not\n * submit, so composition keystrokes are ignored. */\nexport function useSubmitOnEnter<T extends HTMLElement = HTMLTextAreaElement>(\n\tonSubmit: () => void,\n) {\n\treturn useCallback(\n\t\t(event: KeyboardEvent<T>) => {\n\t\t\tif (event.key !== \"Enter\" || event.shiftKey) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Enter confirms an IME candidate rather than sending — never submit mid-composition.\n\t\t\tif (event.nativeEvent.isComposing) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tevent.preventDefault();\n\t\t\tonSubmit();\n\t\t},\n\t\t[onSubmit],\n\t);\n}\n"],"mappings":";;AAQA,SAAgB,EACf,GACC;
|
|
1
|
+
{"version":3,"file":"useSubmitOnEnter.js","names":[],"sources":["../../src/hooks/useSubmitOnEnter.ts"],"sourcesContent":["import type { KeyboardEvent } from \"react\";\nimport { useCallback } from \"react\";\n\n/** Returns an `onKeyDown` handler that calls `onSubmit` when Enter is pressed\n * without Shift — the standard chat-composer key handling. Shift+Enter falls\n * through so the field inserts a newline. Guards against IME composition:\n * pressing Enter to confirm a candidate (e.g. Japanese/Chinese input) must not\n * submit, so composition keystrokes are ignored. */\nexport function useSubmitOnEnter<T extends HTMLElement = HTMLTextAreaElement>(\n\tonSubmit: () => void,\n) {\n\treturn useCallback(\n\t\t(event: KeyboardEvent<T>) => {\n\t\t\tif (event.key !== \"Enter\" || event.shiftKey) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Enter confirms an IME candidate rather than sending — never submit mid-composition.\n\t\t\tif (event.nativeEvent.isComposing) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tevent.preventDefault();\n\t\t\tonSubmit();\n\t\t},\n\t\t[onSubmit],\n\t);\n}\n"],"mappings":";;AAQA,SAAgB,EACf,GACC;CACD,OAAO,GACL,MAA4B;EACxB,EAAM,QAAQ,WAAW,EAAM,YAI/B,EAAM,YAAY,gBAGtB,EAAM,eAAe,GACrB,EAAS;CACV,GACA,CAAC,CAAQ,CACV;AACD"}
|
|
@@ -24,15 +24,15 @@ function c(e) {
|
|
|
24
24
|
}, [e]), t;
|
|
25
25
|
}
|
|
26
26
|
function l({ theme: n = "auto", override: o, children: s }) {
|
|
27
|
-
let l = c(n), [u, d] = i(null)
|
|
28
|
-
let t = { display: "contents" };
|
|
29
|
-
for (let [n, r] of Object.entries(o ?? {})) r != null && (t[e(n)] = r);
|
|
30
|
-
return t;
|
|
31
|
-
}, [o]);
|
|
27
|
+
let l = c(n), [u, d] = i(null);
|
|
32
28
|
return /* @__PURE__ */ t("div", {
|
|
33
29
|
ref: d,
|
|
34
30
|
"data-theme": l,
|
|
35
|
-
style:
|
|
31
|
+
style: r(() => {
|
|
32
|
+
let t = { display: "contents" };
|
|
33
|
+
for (let [n, r] of Object.entries(o ?? {})) r != null && (t[e(n)] = r);
|
|
34
|
+
return t;
|
|
35
|
+
}, [o]),
|
|
36
36
|
children: u != null && /* @__PURE__ */ t(a, {
|
|
37
37
|
getContainer: () => u,
|
|
38
38
|
children: s
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LovelaceProvider.js","names":[],"sources":["../../src/runtime/LovelaceProvider.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode } from \"react\";\nimport { useEffect, useMemo, useState } from \"react\";\nimport { UNSAFE_PortalProvider } from \"react-aria\";\nimport type { LovelaceOverridableToken } from \"../tokens/tokens.js\";\nimport { tokenName } from \"../tokens/tokens.js\";\n\nexport type LovelaceTheme = \"light\" | \"dark\" | \"auto\";\n\nexport interface LovelaceProviderProps {\n\t/** Color scheme. `auto` resolves via `prefers-color-scheme`. Defaults to `auto`. */\n\ttheme?: LovelaceTheme;\n\t/**\n\t * Type-safe token overrides applied to the provider root and cascaded to every\n\t * Lovelace component inside. Keys are overridable (semantic / component) tokens;\n\t * values are CSS values — typically a primitive reference via `t()` (e.g.\n\t * `{ \"font-size-body\": t(\"font-size-14\") }`) or a raw color.\n\t */\n\toverride?: Partial<Record<LovelaceOverridableToken, string>>;\n\tchildren?: ReactNode;\n}\n\nconst DARK_QUERY = \"(prefers-color-scheme: dark)\";\n\nfunction readPrefersDark(): boolean {\n\tif (\n\t\ttypeof window === \"undefined\" ||\n\t\ttypeof window.matchMedia !== \"function\"\n\t) {\n\t\treturn false;\n\t}\n\treturn window.matchMedia(DARK_QUERY).matches;\n}\n\n/**\n * Resolves `auto` against `prefers-color-scheme`, updating live. Exported so a\n * consumer deciding something per-surface (e.g. a contrast guard on a token\n * override) resolves the scheme through the same code path that stamps\n * `data-theme` — two independent media queries would disagree wherever\n * `matchMedia` is unavailable, since each falls back to light on its own.\n */\nexport function useResolvedTheme(theme: LovelaceTheme): \"light\" | \"dark\" {\n\tconst [resolved, setResolved] = useState<\"light\" | \"dark\">(() => {\n\t\tif (theme !== \"auto\") {\n\t\t\treturn theme;\n\t\t}\n\t\treturn readPrefersDark() ? \"dark\" : \"light\";\n\t});\n\n\tuseEffect(() => {\n\t\tif (theme !== \"auto\") {\n\t\t\tsetResolved(theme);\n\t\t\treturn;\n\t\t}\n\t\tif (\n\t\t\ttypeof window === \"undefined\" ||\n\t\t\ttypeof window.matchMedia !== \"function\"\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tconst mql = window.matchMedia(DARK_QUERY);\n\t\tconst update = (matches: boolean) => {\n\t\t\tsetResolved(matches ? \"dark\" : \"light\");\n\t\t};\n\t\tupdate(mql.matches);\n\t\tconst listener = (e: MediaQueryListEvent) => update(e.matches);\n\t\tmql.addEventListener(\"change\", listener);\n\t\treturn () => mql.removeEventListener(\"change\", listener);\n\t}, [theme]);\n\n\treturn resolved;\n}\n\nexport function LovelaceProvider({\n\ttheme = \"auto\",\n\toverride,\n\tchildren,\n}: LovelaceProviderProps) {\n\tconst resolvedTheme = useResolvedTheme(theme);\n\t// Callback-ref into state (not useRef): attaching the element triggers a\n\t// re-render. Children are gated on it (below) so an overlay never mounts before\n\t// the themed portal container exists — a plain ref wouldn't re-render, and\n\t// deferring the portal to a second render would move an already-open overlay,\n\t// cancelling its entrance transition and stranding it at the `data-entering`\n\t// start state (opacity 0).\n\tconst [themeEl, setThemeEl] = useState<HTMLDivElement | null>(null);\n\n\tconst overrides = useMemo<CSSProperties>(() => {\n\t\t// `display: contents` removes this wrapper from layout so it doesn't\n\t\t// interfere with the parent's sizing — children render as if the wrapper\n\t\t// isn't there. Custom properties and data-attributes still cascade.\n\t\tconst vars: Record<string, string> = { display: \"contents\" };\n\t\tfor (const [name, value] of Object.entries(override ?? {})) {\n\t\t\tif (value != null) {\n\t\t\t\tvars[tokenName(name as LovelaceOverridableToken)] = value;\n\t\t\t}\n\t\t}\n\t\treturn vars as CSSProperties;\n\t}, [override]);\n\n\t// Component tokens are declared on `[data-theme]` (this wrapper) so their var()\n\t// chain re-evaluates in the active theme. React Aria overlays (Dialog/Sheet/\n\t// Tooltip) portal to `document.body` by default — outside this element — where\n\t// they'd lose those aliases. Default the portal container to the themed wrapper\n\t// so overlays stay inside the theme boundary; a consumer can still nest its own\n\t// `UNSAFE_PortalProvider` deeper to override (as the app scopes to the chat window).\n\t//\n\t// Children render only once `themeEl` is attached so any overlay open on first\n\t// mount portals straight into the themed container — never to `document.body`\n\t// and then moved (which would cancel its entrance transition). The callback ref's\n\t// setState runs in the commit phase (before paint), so the extra commit causes no\n\t// visible flash. It does mean an SSR render would emit an empty themed div until\n\t// hydration — fine today since every lovelace tree is client-mounted.\n\treturn (\n\t\t<div ref={setThemeEl} data-theme={resolvedTheme} style={overrides}>\n\t\t\t{themeEl != null && (\n\t\t\t\t<UNSAFE_PortalProvider getContainer={() => themeEl}>\n\t\t\t\t\t{children}\n\t\t\t\t</UNSAFE_PortalProvider>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;AAqBA,IAAM,IAAa;AAEnB,SAAS,IAA2B;
|
|
1
|
+
{"version":3,"file":"LovelaceProvider.js","names":[],"sources":["../../src/runtime/LovelaceProvider.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode } from \"react\";\nimport { useEffect, useMemo, useState } from \"react\";\nimport { UNSAFE_PortalProvider } from \"react-aria\";\nimport type { LovelaceOverridableToken } from \"../tokens/tokens.js\";\nimport { tokenName } from \"../tokens/tokens.js\";\n\nexport type LovelaceTheme = \"light\" | \"dark\" | \"auto\";\n\nexport interface LovelaceProviderProps {\n\t/** Color scheme. `auto` resolves via `prefers-color-scheme`. Defaults to `auto`. */\n\ttheme?: LovelaceTheme;\n\t/**\n\t * Type-safe token overrides applied to the provider root and cascaded to every\n\t * Lovelace component inside. Keys are overridable (semantic / component) tokens;\n\t * values are CSS values — typically a primitive reference via `t()` (e.g.\n\t * `{ \"font-size-body\": t(\"font-size-14\") }`) or a raw color.\n\t */\n\toverride?: Partial<Record<LovelaceOverridableToken, string>>;\n\tchildren?: ReactNode;\n}\n\nconst DARK_QUERY = \"(prefers-color-scheme: dark)\";\n\nfunction readPrefersDark(): boolean {\n\tif (\n\t\ttypeof window === \"undefined\" ||\n\t\ttypeof window.matchMedia !== \"function\"\n\t) {\n\t\treturn false;\n\t}\n\treturn window.matchMedia(DARK_QUERY).matches;\n}\n\n/**\n * Resolves `auto` against `prefers-color-scheme`, updating live. Exported so a\n * consumer deciding something per-surface (e.g. a contrast guard on a token\n * override) resolves the scheme through the same code path that stamps\n * `data-theme` — two independent media queries would disagree wherever\n * `matchMedia` is unavailable, since each falls back to light on its own.\n */\nexport function useResolvedTheme(theme: LovelaceTheme): \"light\" | \"dark\" {\n\tconst [resolved, setResolved] = useState<\"light\" | \"dark\">(() => {\n\t\tif (theme !== \"auto\") {\n\t\t\treturn theme;\n\t\t}\n\t\treturn readPrefersDark() ? \"dark\" : \"light\";\n\t});\n\n\tuseEffect(() => {\n\t\tif (theme !== \"auto\") {\n\t\t\tsetResolved(theme);\n\t\t\treturn;\n\t\t}\n\t\tif (\n\t\t\ttypeof window === \"undefined\" ||\n\t\t\ttypeof window.matchMedia !== \"function\"\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tconst mql = window.matchMedia(DARK_QUERY);\n\t\tconst update = (matches: boolean) => {\n\t\t\tsetResolved(matches ? \"dark\" : \"light\");\n\t\t};\n\t\tupdate(mql.matches);\n\t\tconst listener = (e: MediaQueryListEvent) => update(e.matches);\n\t\tmql.addEventListener(\"change\", listener);\n\t\treturn () => mql.removeEventListener(\"change\", listener);\n\t}, [theme]);\n\n\treturn resolved;\n}\n\nexport function LovelaceProvider({\n\ttheme = \"auto\",\n\toverride,\n\tchildren,\n}: LovelaceProviderProps) {\n\tconst resolvedTheme = useResolvedTheme(theme);\n\t// Callback-ref into state (not useRef): attaching the element triggers a\n\t// re-render. Children are gated on it (below) so an overlay never mounts before\n\t// the themed portal container exists — a plain ref wouldn't re-render, and\n\t// deferring the portal to a second render would move an already-open overlay,\n\t// cancelling its entrance transition and stranding it at the `data-entering`\n\t// start state (opacity 0).\n\tconst [themeEl, setThemeEl] = useState<HTMLDivElement | null>(null);\n\n\tconst overrides = useMemo<CSSProperties>(() => {\n\t\t// `display: contents` removes this wrapper from layout so it doesn't\n\t\t// interfere with the parent's sizing — children render as if the wrapper\n\t\t// isn't there. Custom properties and data-attributes still cascade.\n\t\tconst vars: Record<string, string> = { display: \"contents\" };\n\t\tfor (const [name, value] of Object.entries(override ?? {})) {\n\t\t\tif (value != null) {\n\t\t\t\tvars[tokenName(name as LovelaceOverridableToken)] = value;\n\t\t\t}\n\t\t}\n\t\treturn vars as CSSProperties;\n\t}, [override]);\n\n\t// Component tokens are declared on `[data-theme]` (this wrapper) so their var()\n\t// chain re-evaluates in the active theme. React Aria overlays (Dialog/Sheet/\n\t// Tooltip) portal to `document.body` by default — outside this element — where\n\t// they'd lose those aliases. Default the portal container to the themed wrapper\n\t// so overlays stay inside the theme boundary; a consumer can still nest its own\n\t// `UNSAFE_PortalProvider` deeper to override (as the app scopes to the chat window).\n\t//\n\t// Children render only once `themeEl` is attached so any overlay open on first\n\t// mount portals straight into the themed container — never to `document.body`\n\t// and then moved (which would cancel its entrance transition). The callback ref's\n\t// setState runs in the commit phase (before paint), so the extra commit causes no\n\t// visible flash. It does mean an SSR render would emit an empty themed div until\n\t// hydration — fine today since every lovelace tree is client-mounted.\n\treturn (\n\t\t<div ref={setThemeEl} data-theme={resolvedTheme} style={overrides}>\n\t\t\t{themeEl != null && (\n\t\t\t\t<UNSAFE_PortalProvider getContainer={() => themeEl}>\n\t\t\t\t\t{children}\n\t\t\t\t</UNSAFE_PortalProvider>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;AAqBA,IAAM,IAAa;AAEnB,SAAS,IAA2B;CAOnC,OALC,OAAO,SAAW,OAClB,OAAO,OAAO,cAAe,aAEtB,KAED,OAAO,WAAW,CAAU,CAAC,CAAC;AACtC;AASA,SAAgB,EAAiB,GAAwC;CACxE,IAAM,CAAC,GAAU,KAAe,QAC3B,MAAU,SAGP,EAAgB,IAAI,SAAS,UAF5B,CAGR;CAuBD,OArBA,QAAgB;EACf,IAAI,MAAU,QAAQ;GACrB,EAAY,CAAK;GACjB;EACD;EACA,IACC,OAAO,SAAW,OAClB,OAAO,OAAO,cAAe,YAE7B;EAED,IAAM,IAAM,OAAO,WAAW,CAAU,GAClC,KAAU,MAAqB;GACpC,EAAY,IAAU,SAAS,OAAO;EACvC;EACA,EAAO,EAAI,OAAO;EAClB,IAAM,KAAY,MAA2B,EAAO,EAAE,OAAO;EAE7D,OADA,EAAI,iBAAiB,UAAU,CAAQ,SAC1B,EAAI,oBAAoB,UAAU,CAAQ;CACxD,GAAG,CAAC,CAAK,CAAC,GAEH;AACR;AAEA,SAAgB,EAAiB,EAChC,WAAQ,QACR,aACA,eACyB;CACzB,IAAM,IAAgB,EAAiB,CAAK,GAOtC,CAAC,GAAS,KAAc,EAAgC,IAAI;CA4BlE,OACC,kBAAC,OAAD;EAAK,KAAK;EAAY,cAAY;EAAe,OA3BhC,QAA6B;GAI9C,IAAM,IAA+B,EAAE,SAAS,WAAW;GAC3D,KAAK,IAAM,CAAC,GAAM,MAAU,OAAO,QAAQ,KAAY,CAAC,CAAC,GACxD,AAAI,KAAS,SACZ,EAAK,EAAU,CAAgC,KAAK;GAGtD,OAAO;EACR,GAAG,CAAC,CAAQ,CAgB6C;YACtD,KAAW,QACX,kBAAC,GAAD;GAAuB,oBAAoB;GACzC;EACqB,CAAA;CAEpB,CAAA;AAEP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branding.js","names":[],"sources":["../../src/runtime/branding.ts"],"sourcesContent":["/**\n * How Ada applies a customer's brand colors — the canonical mapping from\n * dashboard brand settings to Lovelace token overrides, plus the WCAG\n * colorimetry that keeps the result legible.\n *\n * `createBrandOverrides` is the single source of truth: the embedded widget,\n * the docs theme playground, and the theming documentation all describe the\n * same function. The output is a plain token→value map intended for\n * `<LovelaceProvider override={...}>`.\n */\n\nimport type { LovelaceOverridableToken } from \"../tokens/tokens.js\";\nimport { t } from \"../tokens/tokens.js\";\n\n/** Token overrides consumable by `LovelaceProvider`'s `override` prop. */\nexport type BrandOverrides = Partial<Record<LovelaceOverridableToken, string>>;\n\n/** Text-size preset. `default` keeps Lovelace's own type scale. */\nexport type BrandTextSize = \"default\" | \"small\" | \"large\";\n\n/** Corner-style preset. `round` keeps Lovelace's own radii. */\nexport type BrandCornerStyle = \"round\" | \"rectangular\";\n\n/**\n * Customer brand settings, as configured in the Ada dashboard.\n *\n * Every field is optional: an absent (or `null`) value means \"not configured\"\n * and contributes no overrides, so `createBrandOverrides({}, scheme)` is `{}`.\n */\nexport interface BrandSettings {\n\t/**\n\t * The brand accent color. Painted unconditionally as the accent fill\n\t * (`color-background-accent`); used as accent *text* (`color-content-accent`)\n\t * only when it reads against the rendered surface.\n\t */\n\ttintColor?: string | null;\n\t/**\n\t * Advanced-colors override for text painted on the accent fill\n\t * (`color-content-on-accent`). Ignored unless `advancedColorsEnabled`.\n\t */\n\ttextOverAccentColor?: string | null;\n\t/** Gate for `textOverAccentColor` and `headerTextColor`. */\n\tadvancedColorsEnabled?: boolean;\n\t/** Gate for `headerColor`/`headerTextColor`. */\n\theaderColorEnabled?: boolean;\n\t/** Header background (`header-background`). */\n\theaderColor?: string | null;\n\t/**\n\t * Header foreground (`header-content`). Ignored unless\n\t * `advancedColorsEnabled`; repaired to black or white when it provably\n\t * falls below the WCAG AA 4.5:1 floor against `headerColor`.\n\t */\n\theaderTextColor?: string | null;\n\t/** Type-scale preset. Defaults to `default`. */\n\ttextSize?: BrandTextSize;\n\t/** Corner-radius preset. Defaults to `round`. */\n\tcornerStyle?: BrandCornerStyle;\n}\n\ntype Rgb = readonly [number, number, number];\n\n/**\n * Lovelace's `color-background-default` per scheme (`tokens.css`). The surface\n * every accent-as-text legibility judgement is made against.\n */\nexport const LOVELACE_SURFACES = {\n\tlight: \"#ffffff\",\n\tdark: \"#181a1e\",\n} as const satisfies Record<\"light\" | \"dark\", string>;\n\n/**\n * An anti-invisibility floor, not an AA claim: the tinted labels this guards render at\n * 13–16px, which WCAG 1.4.3 would hold to 4.5:1. Neither design system's own withheld\n * fallback clears 4.5 on both surfaces, and 4.5 would strip the brand color from most\n * mid-tone tints, so this catches only the vanishing case.\n */\nconst MIN_CONTRAST_RATIO = 3;\n\n/** WCAG AA floor for the normal-size title and controls painted in the header. */\nconst MIN_HEADER_CONTENT_CONTRAST = 4.5;\n\n/**\n * What `color-content-accent` resolves to when the override is withheld —\n * `color-accent-500` (tokens.css). A scheme-independent primitive, so it is only\n * 2.9:1 on the dark surface: withholding is not itself a legibility guarantee.\n */\nconst FALLBACK_ACCENT = \"#4e53d1\";\n\n/**\n * Hex only, deliberately: enumerating what we can measure keeps the guards\n * honest. CSS may understand values this parser does not; those pass through\n * the mapping byte-for-byte rather than being judged blind.\n */\nfunction parseHexColor(color: string): Rgb | null {\n\tconst match = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(color.trim());\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst hex = match[1];\n\tconst full =\n\t\thex.length === 3\n\t\t\t? hex\n\t\t\t\t\t.split(\"\")\n\t\t\t\t\t.map((c) => c + c)\n\t\t\t\t\t.join(\"\")\n\t\t\t: hex;\n\n\treturn [\n\t\tNumber.parseInt(full.slice(0, 2), 16),\n\t\tNumber.parseInt(full.slice(2, 4), 16),\n\t\tNumber.parseInt(full.slice(4, 6), 16),\n\t] as const;\n}\n\nfunction channelLuminance(channel: number): number {\n\tconst srgb = channel / 255;\n\n\treturn srgb <= 0.03928 ? srgb / 12.92 : ((srgb + 0.055) / 1.055) ** 2.4;\n}\n\nfunction relativeLuminance([r, g, b]: Rgb): number {\n\treturn (\n\t\t0.2126 * channelLuminance(r) +\n\t\t0.7152 * channelLuminance(g) +\n\t\t0.0722 * channelLuminance(b)\n\t);\n}\n\nfunction contrastRatio(a: Rgb, b: Rgb): number {\n\tconst la = relativeLuminance(a);\n\tconst lb = relativeLuminance(b);\n\n\treturn (Math.max(la, lb) + 0.05) / (Math.min(la, lb) + 0.05);\n}\n\n/**\n * WCAG contrast ratio between two hex colors, or `null` when either cannot be parsed.\n *\n * Exported so a caller that needs a different floor than this module's 3:1 — an AA\n * 4.5:1 check on the default palette, say — reuses this colorimetry instead of writing\n * a second copy. Judging *which* colors to compare is still the caller's job.\n */\nexport function contrastRatioBetween(a: string, b: string): number | null {\n\tconst rgbA = parseHexColor(a);\n\tconst rgbB = parseHexColor(b);\n\n\treturn rgbA && rgbB ? contrastRatio(rgbA, rgbB) : null;\n}\n\n/**\n * Pick black or white for ordinary text painted on a customer-provided accent fill.\n *\n * One of the two always clears WCAG AA against a valid opaque hex color (their\n * luminances sit at opposite ends of the scale). An unparseable color keeps the\n * caller's existing fallback: CSS may understand a value this deliberately-small\n * parser does not, and silently changing its text color without measuring it would\n * only trade one unknown rendering for another.\n */\nexport function readableTextOnAccent(accent: string, fallback: string): string {\n\tconst whiteRatio = contrastRatioBetween(\"#ffffff\", accent);\n\tconst blackRatio = contrastRatioBetween(\"#000000\", accent);\n\tif (whiteRatio === null || blackRatio === null) {\n\t\treturn fallback;\n\t}\n\treturn whiteRatio >= blackRatio ? \"#ffffff\" : \"#000000\";\n}\n\n/**\n * Whether `color` is safe to use as accent foreground on `surface`.\n *\n * Kept when it clears the floor, and also kept when it is merely below the floor but\n * still no worse than `fallback` — the color withholding would leave in place — so the\n * guard can never trade a tint for a *less* legible replacement. A value it cannot\n * parse fails closed: an unreadable `surface` means the judgement cannot be made, and\n * an unparseable `fallback` only forfeits that second chance.\n *\n * Both clauses are evaluated against `surface` and nothing else, so a caller that\n * paints the tint over a *composite* of itself and the surface gets a verdict that\n * overstates the real contrast — and can therefore keep a tint that is genuinely worse\n * than the fallback it declined. `FileDropZone`'s 15% accent wash is the one such\n * caller today; see the theming spec's auto-contrast row for the measured shortfall.\n */\nexport function isLegibleAgainst(\n\tcolor: string,\n\tsurface: string,\n\tfallback: string,\n): boolean {\n\tconst rgb = parseHexColor(color);\n\tconst surfaceRgb = parseHexColor(surface);\n\tif (!rgb || !surfaceRgb) {\n\t\treturn false;\n\t}\n\n\tconst tintRatio = contrastRatio(rgb, surfaceRgb);\n\tif (tintRatio >= MIN_CONTRAST_RATIO) {\n\t\treturn true;\n\t}\n\n\tconst fallbackRgb = parseHexColor(fallback);\n\n\treturn (\n\t\tfallbackRgb !== null && tintRatio >= contrastRatio(fallbackRgb, surfaceRgb)\n\t);\n}\n\n/**\n * Whether `color` is safe to use as accent text on `scheme`'s default Lovelace\n * surface. The comparison fallback is `color-accent-500`, the value the token\n * resolves to when the override is withheld.\n */\nexport function isLegibleOnSurface(\n\tcolor: string,\n\tscheme: \"light\" | \"dark\",\n): boolean {\n\treturn isLegibleAgainst(color, LOVELACE_SURFACES[scheme], FALLBACK_ACCENT);\n}\n\n/**\n * Keep a customer's configured pair when it is readable, and repair only a\n * valid pair that we can prove falls below AA. Named colors, alpha colors and\n * other values outside the shared hex parser stay byte-for-byte unchanged: CSS\n * may understand them, but choosing a replacement without measuring them would\n * exchange one unknown rendering for another.\n */\nfunction resolveHeaderContentColor(\n\tbackground: string,\n\tcontent: string,\n): string {\n\tconst ratio = contrastRatioBetween(background, content);\n\tif (ratio === null || ratio >= MIN_HEADER_CONTENT_CONTRAST) {\n\t\treturn content;\n\t}\n\treturn readableTextOnAccent(background, content);\n}\n\n/**\n * Text-size and corner style are consumer concerns: Lovelace ships only its\n * default scale, so the mapping re-points the semantic/component tokens at the\n * right Lovelace *primitives* per preset (values stay owned by the token sheet;\n * only the mapping lives here). Only tokens that differ from the default are listed.\n */\nconst TEXT_SIZE_TOKEN_OVERRIDES = {\n\tdefault: {},\n\tsmall: {\n\t\t\"font-size-caption\": t(\"font-size-12\"),\n\t\t\"line-height-caption\": t(\"font-line-height-16\"),\n\t\t\"font-size-body\": t(\"font-size-14\"),\n\t\t\"line-height-body\": t(\"font-line-height-18\"),\n\t\t\"font-size-title-small\": t(\"font-size-16\"),\n\t\t\"line-height-title-small\": t(\"font-line-height-22\"),\n\t\t\"font-size-title-large\": t(\"font-size-18\"),\n\t\t\"line-height-title-large\": t(\"font-line-height-24\"),\n\t},\n\tlarge: {\n\t\t\"font-size-caption\": t(\"font-size-16\"),\n\t\t\"line-height-caption\": t(\"font-line-height-22\"),\n\t\t\"font-size-body\": t(\"font-size-18\"),\n\t\t\"line-height-body\": t(\"font-line-height-24\"),\n\t\t\"font-size-title-small\": t(\"font-size-20\"),\n\t\t\"line-height-title-small\": t(\"font-line-height-26\"),\n\t\t\"font-size-title-large\": t(\"font-size-22\"),\n\t\t\"line-height-title-large\": t(\"font-line-height-28\"),\n\t},\n} satisfies Record<BrandTextSize, BrandOverrides>;\n\nconst CORNER_STYLE_TOKEN_OVERRIDES = {\n\tround: {},\n\trectangular: {\n\t\t\"border-radius-message\": t(\"border-radius-10\"),\n\t\t\"border-radius-composer\": t(\"border-radius-10\"),\n\t\t\"border-radius-media-preview\": t(\"border-radius-10\"),\n\t\t\"border-radius-container\": t(\"border-radius-10\"),\n\t},\n} satisfies Record<BrandCornerStyle, BrandOverrides>;\n\n/**\n * Map customer brand settings to Lovelace token overrides — exactly how the Ada\n * widget applies your brand colors. Feed the result to\n * `<LovelaceProvider override={...}>`.\n *\n * `scheme` is the *resolved* light/dark surface being painted (resolve `auto`\n * via `useResolvedTheme`), not the configured theme — the accent-text contrast\n * decision has to be made against the surface the label actually lands on.\n *\n * The mapping, in order:\n *\n * 1. `cornerStyle` / `textSize` re-point radius and typography tokens at\n * Lovelace primitives (`rectangular` flattens radii to 10px; `small`/`large`\n * shift the four-step type scale down/up one step).\n * 2. `tintColor` paints `color-background-accent` unconditionally, and\n * `color-content-on-accent` becomes whichever of black or white contrasts\n * more with the tint. The tint is also used as standalone accent *text*\n * (`color-content-accent`) only when it reads on the rendered surface —\n * a tint near that background would render the label invisible.\n * 3. With `advancedColorsEnabled`, `textOverAccentColor` replaces the derived\n * on-accent text color verbatim.\n * 4. With `headerColorEnabled`, `headerColor` paints `header-background`.\n * The header foreground is `headerTextColor` (advanced colors only),\n * repaired to black or white when it measurably falls below the WCAG AA\n * 4.5:1 floor against `headerColor`; without a configured foreground the\n * maximum-contrast black or white is derived from the background.\n *\n * Legibility guards measure hex colors only. Values the hex parser cannot read\n * (named colors, `rgba()`, `var()`, …) pass through unrepaired where they are\n * kept at all: repairing what cannot be measured would trade one unknown\n * rendering for another.\n */\nexport function createBrandOverrides(\n\tsettings: BrandSettings,\n\tscheme: \"light\" | \"dark\",\n): BrandOverrides {\n\tconst overrides: BrandOverrides = {\n\t\t...CORNER_STYLE_TOKEN_OVERRIDES[settings.cornerStyle ?? \"round\"],\n\t\t...TEXT_SIZE_TOKEN_OVERRIDES[settings.textSize ?? \"default\"],\n\t};\n\tif (settings.tintColor) {\n\t\toverrides[\"color-background-accent\"] = settings.tintColor;\n\t\toverrides[\"color-content-on-accent\"] = readableTextOnAccent(\n\t\t\tsettings.tintColor,\n\t\t\t\"#ffffff\",\n\t\t);\n\t\t// Only as text when it reads on the surface being painted — a tint near that\n\t\t// background renders the label invisible, and nothing downstream can recover\n\t\t// it (`textOverAccentColor` only covers text *on* the accent fill).\n\t\tif (isLegibleOnSurface(settings.tintColor, scheme)) {\n\t\t\toverrides[\"color-content-accent\"] = settings.tintColor;\n\t\t}\n\t}\n\tif (settings.advancedColorsEnabled && settings.textOverAccentColor) {\n\t\toverrides[\"color-content-on-accent\"] = settings.textOverAccentColor;\n\t}\n\tif (settings.headerColorEnabled && settings.headerColor) {\n\t\toverrides[\"header-background\"] = settings.headerColor;\n\t\tif (settings.advancedColorsEnabled && settings.headerTextColor) {\n\t\t\toverrides[\"header-content\"] = resolveHeaderContentColor(\n\t\t\t\tsettings.headerColor,\n\t\t\t\tsettings.headerTextColor,\n\t\t\t);\n\t\t} else if (contrastRatioBetween(settings.headerColor, \"#000000\") !== null) {\n\t\t\t// The dashboard derives the header foreground from a configured background\n\t\t\t// unless advanced colours explicitly supply one. The parse guard above\n\t\t\t// makes this fallback unreachable, so select the maximum-contrast black\n\t\t\t// or white foreground without implying a color-scheme preference.\n\t\t\toverrides[\"header-content\"] = readableTextOnAccent(\n\t\t\t\tsettings.headerColor,\n\t\t\t\t\"#000000\",\n\t\t\t);\n\t\t}\n\t}\n\treturn overrides;\n}\n"],"mappings":";;AAiEA,IAAa,IAAoB;CAChC,OAAO;CACP,MAAM;CACN,EAQK,IAAqB,GAGrB,IAA8B,KAO9B,IAAkB;AAOxB,SAAS,EAAc,GAA2B;CACjD,IAAM,IAAQ,gCAAgC,KAAK,EAAM,MAAM,CAAC;AAChE,KAAI,CAAC,EACJ,QAAO;CAGR,IAAM,IAAM,EAAM,IACZ,IACL,EAAI,WAAW,IACZ,EACC,MAAM,GAAG,CACT,KAAK,MAAM,IAAI,EAAE,CACjB,KAAK,GAAG,GACT;AAEJ,QAAO;EACN,OAAO,SAAS,EAAK,MAAM,GAAG,EAAE,EAAE,GAAG;EACrC,OAAO,SAAS,EAAK,MAAM,GAAG,EAAE,EAAE,GAAG;EACrC,OAAO,SAAS,EAAK,MAAM,GAAG,EAAE,EAAE,GAAG;EACrC;;AAGF,SAAS,EAAiB,GAAyB;CAClD,IAAM,IAAO,IAAU;AAEvB,QAAO,KAAQ,SAAU,IAAO,UAAU,IAAO,QAAS,UAAU;;AAGrE,SAAS,EAAkB,CAAC,GAAG,GAAG,IAAiB;AAClD,QACC,QAAS,EAAiB,EAAE,GAC5B,QAAS,EAAiB,EAAE,GAC5B,QAAS,EAAiB,EAAE;;AAI9B,SAAS,EAAc,GAAQ,GAAgB;CAC9C,IAAM,IAAK,EAAkB,EAAE,EACzB,IAAK,EAAkB,EAAE;AAE/B,SAAQ,KAAK,IAAI,GAAI,EAAG,GAAG,QAAS,KAAK,IAAI,GAAI,EAAG,GAAG;;AAUxD,SAAgB,EAAqB,GAAW,GAA0B;CACzE,IAAM,IAAO,EAAc,EAAE,EACvB,IAAO,EAAc,EAAE;AAE7B,QAAO,KAAQ,IAAO,EAAc,GAAM,EAAK,GAAG;;AAYnD,SAAgB,EAAqB,GAAgB,GAA0B;CAC9E,IAAM,IAAa,EAAqB,WAAW,EAAO,EACpD,IAAa,EAAqB,WAAW,EAAO;AAI1D,QAHI,MAAe,QAAQ,MAAe,OAClC,IAED,KAAc,IAAa,YAAY;;AAkB/C,SAAgB,EACf,GACA,GACA,GACU;CACV,IAAM,IAAM,EAAc,EAAM,EAC1B,IAAa,EAAc,EAAQ;AACzC,KAAI,CAAC,KAAO,CAAC,EACZ,QAAO;CAGR,IAAM,IAAY,EAAc,GAAK,EAAW;AAChD,KAAI,KAAa,EAChB,QAAO;CAGR,IAAM,IAAc,EAAc,EAAS;AAE3C,QACC,MAAgB,QAAQ,KAAa,EAAc,GAAa,EAAW;;AAS7E,SAAgB,EACf,GACA,GACU;AACV,QAAO,EAAiB,GAAO,EAAkB,IAAS,EAAgB;;AAU3E,SAAS,EACR,GACA,GACS;CACT,IAAM,IAAQ,EAAqB,GAAY,EAAQ;AAIvD,QAHI,MAAU,QAAQ,KAAS,IACvB,IAED,EAAqB,GAAY,EAAQ;;AASjD,IAAM,IAA4B;CACjC,SAAS,EAAE;CACX,OAAO;EACN,qBAAqB,EAAE,eAAe;EACtC,uBAAuB,EAAE,sBAAsB;EAC/C,kBAAkB,EAAE,eAAe;EACnC,oBAAoB,EAAE,sBAAsB;EAC5C,yBAAyB,EAAE,eAAe;EAC1C,2BAA2B,EAAE,sBAAsB;EACnD,yBAAyB,EAAE,eAAe;EAC1C,2BAA2B,EAAE,sBAAsB;EACnD;CACD,OAAO;EACN,qBAAqB,EAAE,eAAe;EACtC,uBAAuB,EAAE,sBAAsB;EAC/C,kBAAkB,EAAE,eAAe;EACnC,oBAAoB,EAAE,sBAAsB;EAC5C,yBAAyB,EAAE,eAAe;EAC1C,2BAA2B,EAAE,sBAAsB;EACnD,yBAAyB,EAAE,eAAe;EAC1C,2BAA2B,EAAE,sBAAsB;EACnD;CACD,EAEK,IAA+B;CACpC,OAAO,EAAE;CACT,aAAa;EACZ,yBAAyB,EAAE,mBAAmB;EAC9C,0BAA0B,EAAE,mBAAmB;EAC/C,+BAA+B,EAAE,mBAAmB;EACpD,2BAA2B,EAAE,mBAAmB;EAChD;CACD;AAkCD,SAAgB,EACf,GACA,GACiB;CACjB,IAAM,IAA4B;EACjC,GAAG,EAA6B,EAAS,eAAe;EACxD,GAAG,EAA0B,EAAS,YAAY;EAClD;AAmCD,QAlCI,EAAS,cACZ,EAAU,6BAA6B,EAAS,WAChD,EAAU,6BAA6B,EACtC,EAAS,WACT,UACA,EAIG,EAAmB,EAAS,WAAW,EAAO,KACjD,EAAU,0BAA0B,EAAS,aAG3C,EAAS,yBAAyB,EAAS,wBAC9C,EAAU,6BAA6B,EAAS,sBAE7C,EAAS,sBAAsB,EAAS,gBAC3C,EAAU,uBAAuB,EAAS,aACtC,EAAS,yBAAyB,EAAS,kBAC9C,EAAU,oBAAoB,EAC7B,EAAS,aACT,EAAS,gBACT,GACS,EAAqB,EAAS,aAAa,UAAU,KAAK,SAKpE,EAAU,oBAAoB,EAC7B,EAAS,aACT,UACA,IAGI"}
|
|
1
|
+
{"version":3,"file":"branding.js","names":[],"sources":["../../src/runtime/branding.ts"],"sourcesContent":["/**\n * How Ada applies a customer's brand colors — the canonical mapping from\n * dashboard brand settings to Lovelace token overrides, plus the WCAG\n * colorimetry that keeps the result legible.\n *\n * `createBrandOverrides` is the single source of truth: the embedded widget,\n * the docs theme playground, and the theming documentation all describe the\n * same function. The output is a plain token→value map intended for\n * `<LovelaceProvider override={...}>`.\n */\n\nimport type { LovelaceOverridableToken } from \"../tokens/tokens.js\";\nimport { t } from \"../tokens/tokens.js\";\n\n/** Token overrides consumable by `LovelaceProvider`'s `override` prop. */\nexport type BrandOverrides = Partial<Record<LovelaceOverridableToken, string>>;\n\n/** Text-size preset. `default` keeps Lovelace's own type scale. */\nexport type BrandTextSize = \"default\" | \"small\" | \"large\";\n\n/** Corner-style preset. `round` keeps Lovelace's own radii. */\nexport type BrandCornerStyle = \"round\" | \"rectangular\";\n\n/**\n * Customer brand settings, as configured in the Ada dashboard.\n *\n * Every field is optional: an absent (or `null`) value means \"not configured\"\n * and contributes no overrides, so `createBrandOverrides({}, scheme)` is `{}`.\n */\nexport interface BrandSettings {\n\t/**\n\t * The brand accent color. Painted unconditionally as the accent fill\n\t * (`color-background-accent`); used as accent *text* (`color-content-accent`)\n\t * only when it reads against the rendered surface.\n\t */\n\ttintColor?: string | null;\n\t/**\n\t * Advanced-colors override for text painted on the accent fill\n\t * (`color-content-on-accent`). Ignored unless `advancedColorsEnabled`.\n\t */\n\ttextOverAccentColor?: string | null;\n\t/** Gate for `textOverAccentColor` and `headerTextColor`. */\n\tadvancedColorsEnabled?: boolean;\n\t/** Gate for `headerColor`/`headerTextColor`. */\n\theaderColorEnabled?: boolean;\n\t/** Header background (`header-background`). */\n\theaderColor?: string | null;\n\t/**\n\t * Header foreground (`header-content`). Ignored unless\n\t * `advancedColorsEnabled`; repaired to black or white when it provably\n\t * falls below the WCAG AA 4.5:1 floor against `headerColor`.\n\t */\n\theaderTextColor?: string | null;\n\t/** Type-scale preset. Defaults to `default`. */\n\ttextSize?: BrandTextSize;\n\t/** Corner-radius preset. Defaults to `round`. */\n\tcornerStyle?: BrandCornerStyle;\n}\n\ntype Rgb = readonly [number, number, number];\n\n/**\n * Lovelace's `color-background-default` per scheme (`tokens.css`). The surface\n * every accent-as-text legibility judgement is made against.\n */\nexport const LOVELACE_SURFACES = {\n\tlight: \"#ffffff\",\n\tdark: \"#181a1e\",\n} as const satisfies Record<\"light\" | \"dark\", string>;\n\n/**\n * An anti-invisibility floor, not an AA claim: the tinted labels this guards render at\n * 13–16px, which WCAG 1.4.3 would hold to 4.5:1. Neither design system's own withheld\n * fallback clears 4.5 on both surfaces, and 4.5 would strip the brand color from most\n * mid-tone tints, so this catches only the vanishing case.\n */\nconst MIN_CONTRAST_RATIO = 3;\n\n/** WCAG AA floor for the normal-size title and controls painted in the header. */\nconst MIN_HEADER_CONTENT_CONTRAST = 4.5;\n\n/**\n * What `color-content-accent` resolves to when the override is withheld —\n * `color-accent-500` (tokens.css). A scheme-independent primitive, so it is only\n * 2.9:1 on the dark surface: withholding is not itself a legibility guarantee.\n */\nconst FALLBACK_ACCENT = \"#4e53d1\";\n\n/**\n * Hex only, deliberately: enumerating what we can measure keeps the guards\n * honest. CSS may understand values this parser does not; those pass through\n * the mapping byte-for-byte rather than being judged blind.\n */\nfunction parseHexColor(color: string): Rgb | null {\n\tconst match = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(color.trim());\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst hex = match[1];\n\tconst full =\n\t\thex.length === 3\n\t\t\t? hex\n\t\t\t\t\t.split(\"\")\n\t\t\t\t\t.map((c) => c + c)\n\t\t\t\t\t.join(\"\")\n\t\t\t: hex;\n\n\treturn [\n\t\tNumber.parseInt(full.slice(0, 2), 16),\n\t\tNumber.parseInt(full.slice(2, 4), 16),\n\t\tNumber.parseInt(full.slice(4, 6), 16),\n\t] as const;\n}\n\nfunction channelLuminance(channel: number): number {\n\tconst srgb = channel / 255;\n\n\treturn srgb <= 0.03928 ? srgb / 12.92 : ((srgb + 0.055) / 1.055) ** 2.4;\n}\n\nfunction relativeLuminance([r, g, b]: Rgb): number {\n\treturn (\n\t\t0.2126 * channelLuminance(r) +\n\t\t0.7152 * channelLuminance(g) +\n\t\t0.0722 * channelLuminance(b)\n\t);\n}\n\nfunction contrastRatio(a: Rgb, b: Rgb): number {\n\tconst la = relativeLuminance(a);\n\tconst lb = relativeLuminance(b);\n\n\treturn (Math.max(la, lb) + 0.05) / (Math.min(la, lb) + 0.05);\n}\n\n/**\n * WCAG contrast ratio between two hex colors, or `null` when either cannot be parsed.\n *\n * Exported so a caller that needs a different floor than this module's 3:1 — an AA\n * 4.5:1 check on the default palette, say — reuses this colorimetry instead of writing\n * a second copy. Judging *which* colors to compare is still the caller's job.\n */\nexport function contrastRatioBetween(a: string, b: string): number | null {\n\tconst rgbA = parseHexColor(a);\n\tconst rgbB = parseHexColor(b);\n\n\treturn rgbA && rgbB ? contrastRatio(rgbA, rgbB) : null;\n}\n\n/**\n * Pick black or white for ordinary text painted on a customer-provided accent fill.\n *\n * One of the two always clears WCAG AA against a valid opaque hex color (their\n * luminances sit at opposite ends of the scale). An unparseable color keeps the\n * caller's existing fallback: CSS may understand a value this deliberately-small\n * parser does not, and silently changing its text color without measuring it would\n * only trade one unknown rendering for another.\n */\nexport function readableTextOnAccent(accent: string, fallback: string): string {\n\tconst whiteRatio = contrastRatioBetween(\"#ffffff\", accent);\n\tconst blackRatio = contrastRatioBetween(\"#000000\", accent);\n\tif (whiteRatio === null || blackRatio === null) {\n\t\treturn fallback;\n\t}\n\treturn whiteRatio >= blackRatio ? \"#ffffff\" : \"#000000\";\n}\n\n/**\n * Whether `color` is safe to use as accent foreground on `surface`.\n *\n * Kept when it clears the floor, and also kept when it is merely below the floor but\n * still no worse than `fallback` — the color withholding would leave in place — so the\n * guard can never trade a tint for a *less* legible replacement. A value it cannot\n * parse fails closed: an unreadable `surface` means the judgement cannot be made, and\n * an unparseable `fallback` only forfeits that second chance.\n *\n * Both clauses are evaluated against `surface` and nothing else, so a caller that\n * paints the tint over a *composite* of itself and the surface gets a verdict that\n * overstates the real contrast — and can therefore keep a tint that is genuinely worse\n * than the fallback it declined. `FileDropZone`'s 15% accent wash is the one such\n * caller today; see the theming spec's auto-contrast row for the measured shortfall.\n */\nexport function isLegibleAgainst(\n\tcolor: string,\n\tsurface: string,\n\tfallback: string,\n): boolean {\n\tconst rgb = parseHexColor(color);\n\tconst surfaceRgb = parseHexColor(surface);\n\tif (!rgb || !surfaceRgb) {\n\t\treturn false;\n\t}\n\n\tconst tintRatio = contrastRatio(rgb, surfaceRgb);\n\tif (tintRatio >= MIN_CONTRAST_RATIO) {\n\t\treturn true;\n\t}\n\n\tconst fallbackRgb = parseHexColor(fallback);\n\n\treturn (\n\t\tfallbackRgb !== null && tintRatio >= contrastRatio(fallbackRgb, surfaceRgb)\n\t);\n}\n\n/**\n * Whether `color` is safe to use as accent text on `scheme`'s default Lovelace\n * surface. The comparison fallback is `color-accent-500`, the value the token\n * resolves to when the override is withheld.\n */\nexport function isLegibleOnSurface(\n\tcolor: string,\n\tscheme: \"light\" | \"dark\",\n): boolean {\n\treturn isLegibleAgainst(color, LOVELACE_SURFACES[scheme], FALLBACK_ACCENT);\n}\n\n/**\n * Keep a customer's configured pair when it is readable, and repair only a\n * valid pair that we can prove falls below AA. Named colors, alpha colors and\n * other values outside the shared hex parser stay byte-for-byte unchanged: CSS\n * may understand them, but choosing a replacement without measuring them would\n * exchange one unknown rendering for another.\n */\nfunction resolveHeaderContentColor(\n\tbackground: string,\n\tcontent: string,\n): string {\n\tconst ratio = contrastRatioBetween(background, content);\n\tif (ratio === null || ratio >= MIN_HEADER_CONTENT_CONTRAST) {\n\t\treturn content;\n\t}\n\treturn readableTextOnAccent(background, content);\n}\n\n/**\n * Text-size and corner style are consumer concerns: Lovelace ships only its\n * default scale, so the mapping re-points the semantic/component tokens at the\n * right Lovelace *primitives* per preset (values stay owned by the token sheet;\n * only the mapping lives here). Only tokens that differ from the default are listed.\n */\nconst TEXT_SIZE_TOKEN_OVERRIDES = {\n\tdefault: {},\n\tsmall: {\n\t\t\"font-size-caption\": t(\"font-size-12\"),\n\t\t\"line-height-caption\": t(\"font-line-height-16\"),\n\t\t\"font-size-body\": t(\"font-size-14\"),\n\t\t\"line-height-body\": t(\"font-line-height-18\"),\n\t\t\"font-size-title-small\": t(\"font-size-16\"),\n\t\t\"line-height-title-small\": t(\"font-line-height-22\"),\n\t\t\"font-size-title-large\": t(\"font-size-18\"),\n\t\t\"line-height-title-large\": t(\"font-line-height-24\"),\n\t},\n\tlarge: {\n\t\t\"font-size-caption\": t(\"font-size-16\"),\n\t\t\"line-height-caption\": t(\"font-line-height-22\"),\n\t\t\"font-size-body\": t(\"font-size-18\"),\n\t\t\"line-height-body\": t(\"font-line-height-24\"),\n\t\t\"font-size-title-small\": t(\"font-size-20\"),\n\t\t\"line-height-title-small\": t(\"font-line-height-26\"),\n\t\t\"font-size-title-large\": t(\"font-size-22\"),\n\t\t\"line-height-title-large\": t(\"font-line-height-28\"),\n\t},\n} satisfies Record<BrandTextSize, BrandOverrides>;\n\nconst CORNER_STYLE_TOKEN_OVERRIDES = {\n\tround: {},\n\trectangular: {\n\t\t\"border-radius-message\": t(\"border-radius-10\"),\n\t\t\"border-radius-composer\": t(\"border-radius-10\"),\n\t\t\"border-radius-media-preview\": t(\"border-radius-10\"),\n\t\t\"border-radius-container\": t(\"border-radius-10\"),\n\t},\n} satisfies Record<BrandCornerStyle, BrandOverrides>;\n\n/**\n * Map customer brand settings to Lovelace token overrides — exactly how the Ada\n * widget applies your brand colors. Feed the result to\n * `<LovelaceProvider override={...}>`.\n *\n * `scheme` is the *resolved* light/dark surface being painted (resolve `auto`\n * via `useResolvedTheme`), not the configured theme — the accent-text contrast\n * decision has to be made against the surface the label actually lands on.\n *\n * The mapping, in order:\n *\n * 1. `cornerStyle` / `textSize` re-point radius and typography tokens at\n * Lovelace primitives (`rectangular` flattens radii to 10px; `small`/`large`\n * shift the four-step type scale down/up one step).\n * 2. `tintColor` paints `color-background-accent` unconditionally, and\n * `color-content-on-accent` becomes whichever of black or white contrasts\n * more with the tint. The tint is also used as standalone accent *text*\n * (`color-content-accent`) only when it reads on the rendered surface —\n * a tint near that background would render the label invisible.\n * 3. With `advancedColorsEnabled`, `textOverAccentColor` replaces the derived\n * on-accent text color verbatim.\n * 4. With `headerColorEnabled`, `headerColor` paints `header-background`.\n * The header foreground is `headerTextColor` (advanced colors only),\n * repaired to black or white when it measurably falls below the WCAG AA\n * 4.5:1 floor against `headerColor`; without a configured foreground the\n * maximum-contrast black or white is derived from the background.\n *\n * Legibility guards measure hex colors only. Values the hex parser cannot read\n * (named colors, `rgba()`, `var()`, …) pass through unrepaired where they are\n * kept at all: repairing what cannot be measured would trade one unknown\n * rendering for another.\n */\nexport function createBrandOverrides(\n\tsettings: BrandSettings,\n\tscheme: \"light\" | \"dark\",\n): BrandOverrides {\n\tconst overrides: BrandOverrides = {\n\t\t...CORNER_STYLE_TOKEN_OVERRIDES[settings.cornerStyle ?? \"round\"],\n\t\t...TEXT_SIZE_TOKEN_OVERRIDES[settings.textSize ?? \"default\"],\n\t};\n\tif (settings.tintColor) {\n\t\toverrides[\"color-background-accent\"] = settings.tintColor;\n\t\toverrides[\"color-content-on-accent\"] = readableTextOnAccent(\n\t\t\tsettings.tintColor,\n\t\t\t\"#ffffff\",\n\t\t);\n\t\t// Only as text when it reads on the surface being painted — a tint near that\n\t\t// background renders the label invisible, and nothing downstream can recover\n\t\t// it (`textOverAccentColor` only covers text *on* the accent fill).\n\t\tif (isLegibleOnSurface(settings.tintColor, scheme)) {\n\t\t\toverrides[\"color-content-accent\"] = settings.tintColor;\n\t\t}\n\t}\n\tif (settings.advancedColorsEnabled && settings.textOverAccentColor) {\n\t\toverrides[\"color-content-on-accent\"] = settings.textOverAccentColor;\n\t}\n\tif (settings.headerColorEnabled && settings.headerColor) {\n\t\toverrides[\"header-background\"] = settings.headerColor;\n\t\tif (settings.advancedColorsEnabled && settings.headerTextColor) {\n\t\t\toverrides[\"header-content\"] = resolveHeaderContentColor(\n\t\t\t\tsettings.headerColor,\n\t\t\t\tsettings.headerTextColor,\n\t\t\t);\n\t\t} else if (contrastRatioBetween(settings.headerColor, \"#000000\") !== null) {\n\t\t\t// The dashboard derives the header foreground from a configured background\n\t\t\t// unless advanced colours explicitly supply one. The parse guard above\n\t\t\t// makes this fallback unreachable, so select the maximum-contrast black\n\t\t\t// or white foreground without implying a color-scheme preference.\n\t\t\toverrides[\"header-content\"] = readableTextOnAccent(\n\t\t\t\tsettings.headerColor,\n\t\t\t\t\"#000000\",\n\t\t\t);\n\t\t}\n\t}\n\treturn overrides;\n}\n"],"mappings":";;AAiEA,IAAa,IAAoB;CAChC,OAAO;CACP,MAAM;AACP,GAQM,IAAqB,GAGrB,IAA8B,KAO9B,IAAkB;AAOxB,SAAS,EAAc,GAA2B;CACjD,IAAM,IAAQ,gCAAgC,KAAK,EAAM,KAAK,CAAC;CAC/D,IAAI,CAAC,GACJ,OAAO;CAGR,IAAM,IAAM,EAAM,IACZ,IACL,EAAI,WAAW,IACZ,EACC,MAAM,EAAE,CAAC,CACT,KAAK,MAAM,IAAI,CAAC,CAAC,CACjB,KAAK,EAAE,IACR;CAEJ,OAAO;EACN,OAAO,SAAS,EAAK,MAAM,GAAG,CAAC,GAAG,EAAE;EACpC,OAAO,SAAS,EAAK,MAAM,GAAG,CAAC,GAAG,EAAE;EACpC,OAAO,SAAS,EAAK,MAAM,GAAG,CAAC,GAAG,EAAE;CACrC;AACD;AAEA,SAAS,EAAiB,GAAyB;CAClD,IAAM,IAAO,IAAU;CAEvB,OAAO,KAAQ,SAAU,IAAO,UAAU,IAAO,QAAS,UAAU;AACrE;AAEA,SAAS,EAAkB,CAAC,GAAG,GAAG,IAAiB;CAClD,OACC,QAAS,EAAiB,CAAC,IAC3B,QAAS,EAAiB,CAAC,IAC3B,QAAS,EAAiB,CAAC;AAE7B;AAEA,SAAS,EAAc,GAAQ,GAAgB;CAC9C,IAAM,IAAK,EAAkB,CAAC,GACxB,IAAK,EAAkB,CAAC;CAE9B,QAAQ,KAAK,IAAI,GAAI,CAAE,IAAI,QAAS,KAAK,IAAI,GAAI,CAAE,IAAI;AACxD;AASA,SAAgB,EAAqB,GAAW,GAA0B;CACzE,IAAM,IAAO,EAAc,CAAC,GACtB,IAAO,EAAc,CAAC;CAE5B,OAAO,KAAQ,IAAO,EAAc,GAAM,CAAI,IAAI;AACnD;AAWA,SAAgB,EAAqB,GAAgB,GAA0B;CAC9E,IAAM,IAAa,EAAqB,WAAW,CAAM,GACnD,IAAa,EAAqB,WAAW,CAAM;CAIzD,OAHI,MAAe,QAAQ,MAAe,OAClC,IAED,KAAc,IAAa,YAAY;AAC/C;AAiBA,SAAgB,EACf,GACA,GACA,GACU;CACV,IAAM,IAAM,EAAc,CAAK,GACzB,IAAa,EAAc,CAAO;CACxC,IAAI,CAAC,KAAO,CAAC,GACZ,OAAO;CAGR,IAAM,IAAY,EAAc,GAAK,CAAU;CAC/C,IAAI,KAAa,GAChB,OAAO;CAGR,IAAM,IAAc,EAAc,CAAQ;CAE1C,OACC,MAAgB,QAAQ,KAAa,EAAc,GAAa,CAAU;AAE5E;AAOA,SAAgB,EACf,GACA,GACU;CACV,OAAO,EAAiB,GAAO,EAAkB,IAAS,CAAe;AAC1E;AASA,SAAS,EACR,GACA,GACS;CACT,IAAM,IAAQ,EAAqB,GAAY,CAAO;CAItD,OAHI,MAAU,QAAQ,KAAS,IACvB,IAED,EAAqB,GAAY,CAAO;AAChD;AAQA,IAAM,IAA4B;CACjC,SAAS,CAAC;CACV,OAAO;EACN,qBAAqB,EAAE,cAAc;EACrC,uBAAuB,EAAE,qBAAqB;EAC9C,kBAAkB,EAAE,cAAc;EAClC,oBAAoB,EAAE,qBAAqB;EAC3C,yBAAyB,EAAE,cAAc;EACzC,2BAA2B,EAAE,qBAAqB;EAClD,yBAAyB,EAAE,cAAc;EACzC,2BAA2B,EAAE,qBAAqB;CACnD;CACA,OAAO;EACN,qBAAqB,EAAE,cAAc;EACrC,uBAAuB,EAAE,qBAAqB;EAC9C,kBAAkB,EAAE,cAAc;EAClC,oBAAoB,EAAE,qBAAqB;EAC3C,yBAAyB,EAAE,cAAc;EACzC,2BAA2B,EAAE,qBAAqB;EAClD,yBAAyB,EAAE,cAAc;EACzC,2BAA2B,EAAE,qBAAqB;CACnD;AACD,GAEM,IAA+B;CACpC,OAAO,CAAC;CACR,aAAa;EACZ,yBAAyB,EAAE,kBAAkB;EAC7C,0BAA0B,EAAE,kBAAkB;EAC9C,+BAA+B,EAAE,kBAAkB;EACnD,2BAA2B,EAAE,kBAAkB;CAChD;AACD;AAkCA,SAAgB,EACf,GACA,GACiB;CACjB,IAAM,IAA4B;EACjC,GAAG,EAA6B,EAAS,eAAe;EACxD,GAAG,EAA0B,EAAS,YAAY;CACnD;CAmCA,OAlCI,EAAS,cACZ,EAAU,6BAA6B,EAAS,WAChD,EAAU,6BAA6B,EACtC,EAAS,WACT,SACD,GAII,EAAmB,EAAS,WAAW,CAAM,MAChD,EAAU,0BAA0B,EAAS,aAG3C,EAAS,yBAAyB,EAAS,wBAC9C,EAAU,6BAA6B,EAAS,sBAE7C,EAAS,sBAAsB,EAAS,gBAC3C,EAAU,uBAAuB,EAAS,aACtC,EAAS,yBAAyB,EAAS,kBAC9C,EAAU,oBAAoB,EAC7B,EAAS,aACT,EAAS,eACV,IACU,EAAqB,EAAS,aAAa,SAAS,MAAM,SAKpE,EAAU,oBAAoB,EAC7B,EAAS,aACT,SACD,KAGK;AACR"}
|
package/dist/style.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
._1xn6t060{text-align:start;flex-direction:column;justify-content:center;min-width:0;min-height:24px;display:flex}.slrdvx0{color:var(--lovelace-message-content-default);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-regular);font-size:var(--lovelace-message-content-font-size-body);line-height:var(--lovelace-message-content-line-height-body);overflow-wrap:anywhere;word-break:break-word}.slrdvx0 :is(p,ul,ol,h1,h2,h3,h4,h5,h6,pre,blockquote,table,hr){margin:0}.slrdvx0 :is(ul,ol){margin:var(--lovelace-gap-4) 0;padding-inline-start:var(--lovelace-padding-16)}.slrdvx0 p+p{margin-top:var(--lovelace-gap-16)}:where(.slrdvx0) a{color:var(--lovelace-message-content-link);text-decoration:underline}:where(.slrdvx0) strong{font-weight:var(--lovelace-font-weight-semi-bold)}._1chqu661{box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-8);min-width:0;padding:var(--lovelace-padding-8);border-radius:var(--lovelace-border-radius-6);background-color:var(--lovelace-color-background-quaternary);color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);text-align:start;appearance:none;box-shadow:0 var(--lovelace-elevation-2-offset-y) var(--lovelace-elevation-2-blur) var(--lovelace-elevation-2-spread) var(--lovelace-elevation-2-color);border:0;display:flex;overflow:hidden}._1chqu662{isolation:isolate;cursor:pointer;outline:none;height:36px;position:relative}._1chqu662:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._1chqu662[data-hovered]:after{opacity:var(--lovelace-opacity-state-hover)}._1chqu662[data-focus-visible]:after{opacity:var(--lovelace-opacity-state-focus)}._1chqu662[data-pressed]:after{opacity:var(--lovelace-opacity-state-pressed)}._1chqu662[data-focus-visible]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._1chqu663{max-width:148px;height:40px}._1chqu664{border-radius:var(--lovelace-border-radius-6);flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;display:inline-flex;overflow:hidden}._1chqu664 [data-slot=icon]{font-size:var(--lovelace-icon-size-control)}._1chqu665{object-fit:cover;width:100%;height:100%}._1chqu666{text-overflow:ellipsis;white-space:nowrap;word-break:break-word;min-width:0;overflow:hidden}@media (forced-colors:active){._1chqu662[data-focus-visible]{outline-offset:2px;outline:2px solid highlight}}.kmbju21{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-avatar);background-color:var(--lovelace-avatar-background);color:var(--lovelace-avatar-content);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-semi-bold);text-align:center;-webkit-user-select:none;user-select:none;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative;overflow:hidden}.kmbju22{width:24px;height:24px;font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}.kmbju23{width:36px;height:36px;font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}.kmbju24{width:48px;height:48px;font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}.kmbju25{width:72px;height:72px;font-size:var(--lovelace-font-size-title-large);line-height:var(--lovelace-line-height-title-large)}.kmbju26{flex-shrink:0}.kmbju27{width:24px;height:24px}.kmbju28{width:36px;height:36px}.kmbju29{width:48px;height:48px}.kmbju2a{width:72px;height:72px}.kmbju20 [data-slot=image]{width:100%;max-width:none;height:auto;max-height:none;margin:auto;position:absolute;inset:0}.kmbju20 [data-slot=icon]{flex-shrink:0}.kmbju20[data-size=sm] [data-slot=icon]{font-size:var(--lovelace-icon-size-sm)}.kmbju20[data-size=md] [data-slot=icon]{font-size:var(--lovelace-icon-size-md)}.kmbju20[data-size=lg] [data-slot=icon]{font-size:32px}.kmbju20[data-size=xl] [data-slot=icon]{font-size:36px}.fpbgjm0{gap:var(--lovelace-gap-8);box-sizing:border-box;width:100%;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-medium);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);overflow-wrap:break-word;justify-content:center;align-items:center;display:flex}.fpbgjm2{background-color:var(--lovelace-color-background-success-light);color:var(--lovelace-color-content-success)}.fpbgjm3{background-color:var(--lovelace-color-background-warning-light);color:var(--lovelace-color-content-warning)}.fpbgjm4{background-color:var(--lovelace-color-background-destructive-light);color:var(--lovelace-color-content-destructive)}.fpbgjm5{min-width:0}.fpbgjm0>[data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}.fpbgjm6{overflow:hidden}.fpbgjm7[data-entering],.fpbgjm7[data-exiting]{transform:translateY(-100%)}.fpbgjm7[data-swapping]{opacity:0}@media (prefers-reduced-motion:no-preference){.fpbgjm7{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard), opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}._1lzdalt0{aspect-ratio:1;color:currentColor;flex-shrink:0;justify-content:center;align-items:center;width:auto;height:1em;line-height:0;display:inline-flex}.xywi8y0{padding:var(--lovelace-padding-16);justify-content:flex-end;align-items:center}.xywi8y1{background-color:var(--lovelace-elevation-2-background);border-radius:var(--lovelace-border-radius-container);width:fit-content;max-width:min(320px,100%);min-height:0;max-height:100%;box-shadow:var(--lovelace-elevation-4);flex-direction:column;display:flex;position:relative;overflow:hidden}.xywi8y1[data-entering],.xywi8y1[data-exiting]{transform:translateY(8px)}.xywi8y2{outline:none;flex-direction:column;flex:auto;min-height:0;max-height:100%;display:flex}@media (prefers-reduced-motion:no-preference){.xywi8y1{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}._1kxa7cu0{z-index:200;flex-direction:column;display:flex;position:fixed;inset:0}._1kxa7cu0[data-entering],._1kxa7cu0[data-exiting]{opacity:0}@media (prefers-reduced-motion:no-preference){._1kxa7cu0{transition:opacity var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}.ateptb1{isolation:isolate;justify-content:center;align-items:center;gap:var(--lovelace-gap-8);padding-inline:var(--lovelace-padding-12);box-sizing:border-box;border:var(--lovelace-border-width-default) solid transparent;border-radius:var(--lovelace-border-radius-button);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;text-decoration:none;display:inline-flex;position:relative}.ateptb1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.ateptb1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.ateptb1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.ateptb1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.ateptb1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ateptb1[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.ateptb2{background-color:var(--lovelace-button-primary-background);color:var(--lovelace-button-primary-content)}.ateptb2[data-disabled]{background-color:var(--lovelace-color-background-disabled)}.ateptb3{background-color:var(--lovelace-color-background-destructive);color:var(--lovelace-color-content-on-destructive)}.ateptb3[data-disabled]{background-color:var(--lovelace-color-background-disabled)}.ateptb4{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-default);border-color:var(--lovelace-color-border-default)}.ateptb5{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-destructive);border-color:var(--lovelace-color-border-destructive)}.ateptb6{color:var(--lovelace-color-content-default);background-color:#0000}.ateptb7{color:var(--lovelace-color-content-destructive);background-color:#0000}.ateptb8{height:40px}.ateptb9{height:32px}.ateptb0 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){.ateptb1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}._10mu92g0{isolation:isolate;box-sizing:border-box;border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);border-radius:var(--lovelace-border-radius-message);background-color:var(--lovelace-color-background-default);width:100%;color:var(--lovelace-color-content-default);text-align:start;flex-direction:column;margin:0;padding:0;display:flex;position:relative;overflow:hidden}._10mu92g1{appearance:none;font:inherit;cursor:pointer;outline:none}._10mu92g1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._10mu92g1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._10mu92g1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._10mu92g1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._10mu92g1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._10mu92g1[data-disabled]{cursor:default}._10mu92g2{aspect-ratio:16/9;background-color:var(--lovelace-color-background-tertiary);width:100%;color:var(--lovelace-color-content-disabled);flex-shrink:0;justify-content:center;align-items:center;display:flex;overflow:hidden}._10mu92g3{object-fit:cover;width:100%;height:100%;display:block}._10mu92g2 [data-slot=icon]{font-size:var(--lovelace-icon-size-lg)}._10mu92g4{gap:var(--lovelace-gap-4);min-width:0;padding:var(--lovelace-padding-12);flex-direction:column;display:flex}._10mu92g5{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-semi-bold);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._10mu92g6{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);overflow-wrap:anywhere;-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}._10mu92g7{gap:var(--lovelace-gap-8);padding:var(--lovelace-padding-8) var(--lovelace-padding-12) var(--lovelace-padding-12);flex-direction:column;margin-top:auto;display:flex}._10mu92g7>[data-slot=button]{width:100%}@media (forced-colors:active){._10mu92g1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.ptvtw60{max-width:100%;display:block}._1vler2p0{align-items:stretch;gap:var(--lovelace-gap-20);flex-direction:column;min-width:0;display:flex}._1vler2p1{gap:var(--lovelace-gap-12);padding-block:var(--lovelace-padding-4);padding-inline:var(--lovelace-padding-12);scroll-padding-inline:var(--lovelace-padding-12);scroll-snap-type:x mandatory;scrollbar-width:none;display:flex;overflow:auto hidden}._1vler2p1::-webkit-scrollbar{display:none}._1vler2p2{scroll-snap-align:center;flex:0 0 min(280px,80%);min-width:0;display:flex}._1vler2p2:first-child{scroll-snap-align:start}._1vler2p2:last-child{scroll-snap-align:end}._1vler2p3{justify-content:center;align-items:center;display:flex}._1vler2p4{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);align-items:center;gap:var(--lovelace-gap-4);padding-inline:var(--lovelace-padding-16);color:var(--lovelace-color-content-default);font-variant-numeric:tabular-nums;display:flex}._1vler2p5{text-align:center;min-width:24px}._1nvcxt20{isolation:isolate;box-sizing:border-box;border:var(--lovelace-border-width-default) solid transparent;border-radius:var(--lovelace-border-radius-button);font-size:var(--lovelace-icon-size-control);cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}._1nvcxt20:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._1nvcxt20[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._1nvcxt20[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._1nvcxt20[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._1nvcxt20[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._1nvcxt20[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}._1nvcxt21{background-color:var(--lovelace-button-primary-background);color:var(--lovelace-button-primary-content)}._1nvcxt21[data-disabled]{background-color:var(--lovelace-color-background-disabled)}._1nvcxt22{background-color:var(--lovelace-color-background-destructive);color:var(--lovelace-color-content-on-destructive)}._1nvcxt22[data-disabled]{background-color:var(--lovelace-color-background-disabled)}._1nvcxt23{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-default);border-color:var(--lovelace-color-border-default)}._1nvcxt24{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-destructive);border-color:var(--lovelace-color-border-destructive)}._1nvcxt25{color:var(--lovelace-color-content-default);background-color:#0000}._1nvcxt26{color:var(--lovelace-color-content-destructive);background-color:#0000}._1nvcxt27{width:40px;height:40px}._1nvcxt28{width:32px;height:32px}._1nvcxt29{width:24px;height:24px}@media (forced-colors:active){._1nvcxt20[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.s7h2sn0{gap:var(--lovelace-gap-20);flex-direction:column;display:flex}.s7h2sn2{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-default);cursor:pointer;-webkit-user-select:none;user-select:none;outline:none}.s7h2sn2[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.s7h2sn3{align-items:center;gap:var(--lovelace-gap-12);display:inline-flex}.s7h2sn4{isolation:isolate;box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-12);min-height:40px;padding-inline:var(--lovelace-padding-8);padding-block:var(--lovelace-padding-4);border-radius:var(--lovelace-border-radius-button);border:var(--lovelace-border-width-default) solid transparent;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);font-weight:var(--lovelace-font-weight-regular);line-height:var(--lovelace-line-height-body);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;display:flex;position:relative}.s7h2sn4:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.s7h2sn4[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.s7h2sn4[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.s7h2sn4[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.s7h2sn4[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.s7h2sn4[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.s7h2sn1>[data-slot=icon]{font-size:var(--lovelace-icon-size-lg);flex-shrink:0}.s7h2sn1>[data-slot=label]{text-align:start;overflow-wrap:anywhere;flex:1;min-width:0}.s7h2sn5{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-6);border-style:solid;border-width:var(--lovelace-border-width-default);border-color:var(--lovelace-color-border-default);background-color:var(--lovelace-color-background-default);width:24px;height:24px;color:var(--lovelace-color-content-inverse);transition-property:border-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);flex-shrink:0;position:relative}.s7h2sn5:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.s7h2sn6{color:currentColor;opacity:0;pointer-events:none;width:16px;height:16px;margin:auto;position:absolute;inset:0}[data-selected]>.s7h2sn5,[data-indeterminate]>.s7h2sn5{background-color:var(--lovelace-color-background-inverse);border-color:#0000}[data-hovered]:not([data-disabled]):not([data-selected]):not([data-indeterminate])>.s7h2sn5[data-state-layer]{border-color:var(--lovelace-color-border-medium)}[data-hovered]:not([data-disabled])>.s7h2sn5[data-state-layer]:after{opacity:var(--lovelace-opacity-state-hover)}[data-focus-visible]:not([data-disabled])>.s7h2sn5[data-state-layer]:after{opacity:var(--lovelace-opacity-state-focus)}[data-pressed]:not([data-disabled])>.s7h2sn5[data-state-layer]:after{opacity:var(--lovelace-opacity-state-pressed)}[data-focus-visible]:not([data-disabled])>.s7h2sn5[data-state-layer]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}[data-disabled]>.s7h2sn5{background-color:var(--lovelace-color-background-disabled);border-color:var(--lovelace-color-border-default);color:var(--lovelace-color-content-disabled)}[data-selected]:not([data-indeterminate])>.s7h2sn5>.s7h2sn6[data-glyph=check],[data-indeterminate]>.s7h2sn5>.s7h2sn6[data-glyph=dash]{opacity:1}@media (forced-colors:active){.s7h2sn4[data-focus-visible]:not([data-disabled]),[data-focus-visible]:not([data-disabled])>.s7h2sn5[data-state-layer]{outline-offset:2px;outline:2px solid highlight}}._18cnc771{isolation:isolate;box-sizing:border-box;border:var(--lovelace-border-width-default) solid transparent;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;justify-content:center;align-items:center;display:inline-flex;position:relative}._18cnc771:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._18cnc771:not([data-selected]){background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-default);border-color:var(--lovelace-color-border-default)}._18cnc771[data-selected]{background-color:var(--lovelace-chip-background-selected);color:var(--lovelace-color-content-on-accent);border-color:#0000}._18cnc771[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._18cnc771[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._18cnc771[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._18cnc771[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._18cnc771[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}._18cnc772{min-width:80px;padding-inline:var(--lovelace-padding-12);border-radius:var(--lovelace-border-radius-pill)}._18cnc773,._18cnc774{border-radius:var(--lovelace-border-radius-button)}._18cnc777{height:40px}._18cnc778{height:48px}._18cnc779{width:40px;height:40px}._18cnc77a{width:48px;height:48px}._18cnc77b{width:40px;height:40px}._18cnc77c{width:48px;height:48px;font-size:var(--lovelace-font-size-title-large)}._18cnc770 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){._18cnc771[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.onnuc90{text-align:center;align-items:center;gap:var(--lovelace-gap-16);padding:var(--lovelace-padding-16);background-color:var(--lovelace-elevation-2-background);flex-direction:column;display:flex}.onnuc91{flex-shrink:0;font-size:32px;line-height:0;display:flex}.onnuc92{color:var(--lovelace-color-content-warning)}.onnuc93{color:var(--lovelace-color-content-success)}.onnuc94{align-items:center;gap:var(--lovelace-gap-8);flex-direction:column;width:100%;display:flex}.onnuc95{text-align:center;width:100%;font-family:var(--lovelace-font-family-heading);font-size:var(--lovelace-font-size-title-large);line-height:var(--lovelace-line-height-title-large);font-weight:var(--lovelace-font-weight-medium);color:var(--lovelace-color-content-default);margin:0}.onnuc96{text-align:center;width:100%;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-secondary);margin:0}.onnuc97{align-items:stretch;gap:var(--lovelace-gap-8);flex-direction:column;width:100%;display:flex}._9zd2r40{padding:var(--lovelace-padding-16);background-color:var(--lovelace-color-scrim-subtle);justify-content:center;align-items:center}._9zd2r41{background-color:var(--lovelace-elevation-2-background);border-radius:var(--lovelace-border-radius-container);width:366px;max-width:100%;max-height:90%;box-shadow:var(--lovelace-elevation-2);flex-direction:column;display:flex;overflow:hidden}._9zd2r41[data-entering],._9zd2r41[data-exiting]{opacity:0;transform:scale(.95)}._9zd2r42{box-sizing:border-box;outline:none;flex-direction:column;flex:auto;width:100%;min-height:0;display:flex;overflow-y:auto}@media (prefers-reduced-motion:no-preference){._9zd2r41{transition-property:opacity,transform;transition-duration:var(--lovelace-duration-medium);transition-timing-function:var(--lovelace-easing-standard)}}.a07ce60{box-sizing:border-box}.a07ce61{width:100%;display:block}.a07ce62{justify-content:center;align-items:center;gap:var(--lovelace-gap-8);width:100%;display:flex}.a07ce63{justify-content:center;align-items:center;gap:var(--lovelace-gap-4);text-align:center;flex-direction:column;display:flex}.a07ce64{border:none;border-top:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);flex:1 1 0;width:100%;min-width:1px;height:0;margin:0}.a07ce65{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);color:var(--lovelace-color-content-secondary);font-weight:var(--lovelace-font-weight-regular);white-space:nowrap;flex-shrink:0;margin:0}.a07ce66{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);color:var(--lovelace-color-content-secondary);font-weight:var(--lovelace-font-weight-medium);margin:0}.a07ce67{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);color:var(--lovelace-color-content-secondary);font-weight:var(--lovelace-font-weight-regular);margin:0}._1vy5zjp0{flex-direction:column;flex:auto;min-height:0;display:flex;position:relative}._1vy5zjp1{justify-content:center;align-items:center;gap:var(--lovelace-gap-12);padding:var(--lovelace-padding-16);border-radius:var(--lovelace-border-radius-20);background-color:var(--lovelace-color-background-default);pointer-events:none;flex-direction:column;display:flex;position:absolute;inset:0}._1vy5zjp1 [data-slot=icon]{color:var(--lovelace-color-content-secondary);font-size:32px}._1vy5zjp0[data-drop-target] ._1vy5zjp1 [data-slot=icon]{color:var(--lovelace-color-content-highlight)}._1vy5zjp2{gap:var(--lovelace-gap-8);text-align:center;width:100%;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);word-break:break-word;flex-direction:column;display:flex}._1vy5zjp3{color:var(--lovelace-color-content-default);margin:0}._1vy5zjp4{color:var(--lovelace-color-content-secondary);margin:0}._6ivfy30{background-color:var(--lovelace-color-scrim-subtle)}._6ivfy31{background-color:var(--lovelace-elevation-2-background);flex-direction:column;width:100%;height:100%;min-height:0;max-height:100%;display:flex;position:relative;overflow:hidden}._6ivfy31[data-entering],._6ivfy31[data-exiting]{transform:translateY(100%)}._6ivfy32{outline:none;flex-direction:column;flex:auto;min-height:0;max-height:100%;display:flex}@media (prefers-reduced-motion:no-preference){._6ivfy31{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}._1x52ra20{background-color:var(--lovelace-header-background);color:var(--lovelace-header-content);height:56px;padding:0 var(--lovelace-padding-12);align-items:center;gap:var(--lovelace-spacing-8);flex-shrink:0;display:flex;position:relative;overflow:hidden}._1x52ra20 [data-slot=icon]{color:var(--lovelace-header-content)}._1x52ra20 [data-slot=avatar] [data-slot=icon]{color:var(--lovelace-avatar-content)}._1x52ra21{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);flex:1;margin:0;overflow:hidden}._3tx76z0{aspect-ratio:37.5/12}.ynzg8v0{width:100%;font-family:var(--lovelace-font-family-body);flex-direction:column;display:flex}.ynzg8v3{gap:var(--lovelace-gap-8);flex-wrap:wrap;flex:auto;min-width:0;display:flex}.ynzg8v4{align-items:flex-end;gap:var(--lovelace-gap-8);box-sizing:border-box;width:100%;min-height:40px;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);background-color:var(--lovelace-color-background-default);border-radius:var(--lovelace-border-radius-input);cursor:text;flex-wrap:wrap;display:flex}.ynzg8v4[data-focus-within]{border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ynzg8v4[data-invalid]{border-color:var(--lovelace-color-border-destructive)}.ynzg8v4[data-disabled]{background-color:var(--lovelace-color-background-disabled);cursor:not-allowed}.ynzg8v6{border-radius:var(--lovelace-border-radius-composer);border:var(--lovelace-border-width-default) solid var(--lovelace-composer-border-default);background-color:var(--lovelace-composer-background)}.ynzg8v6[data-focus-within]{border-color:var(--lovelace-composer-border-active);outline:var(--lovelace-border-width-focus) solid var(--lovelace-composer-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ynzg8v6[data-invalid]{border-color:var(--lovelace-color-border-destructive)}.ynzg8v7{appearance:none;min-width:0;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-default);background-color:#0000;border:none;outline:none;flex:1;margin:0;padding:0}.ynzg8v7::placeholder{color:var(--lovelace-color-content-secondary);opacity:1}.ynzg8v7[data-disabled]{color:var(--lovelace-color-content-disabled);cursor:not-allowed}.ynzg8v7[data-disabled]::placeholder{color:var(--lovelace-color-content-disabled)}.ynzg8v8{box-sizing:border-box;resize:none;overflow-wrap:anywhere;word-break:break-word;scrollbar-width:thin;scrollbar-color:var(--lovelace-color-border-default) transparent;width:100%;display:block;overflow-y:auto}.ynzg8v9{isolation:isolate;border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-button-primary-background);width:22px;height:22px;color:var(--lovelace-button-primary-content);cursor:pointer;appearance:none;border:none;outline:none;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative;overflow:hidden}.ynzg8v9:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;background-color:currentColor;position:absolute;inset:0}.ynzg8v9[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.ynzg8v9[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.ynzg8v9[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.ynzg8v9[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ynzg8v9[data-disabled]{cursor:not-allowed;background-color:var(--lovelace-color-background-disabled);color:var(--lovelace-color-content-disabled)}.ynzg8va{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);margin-bottom:var(--lovelace-gap-8);color:var(--lovelace-color-content-default)}.ynzg8vb{margin-top:var(--lovelace-gap-4);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-secondary)}.ynzg8vb[data-invalid]{color:var(--lovelace-color-content-destructive)}.ynzg8v1 [data-slot=icon],.ynzg8v9 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}.ynzg8v1>[data-slot=icon]{color:var(--lovelace-color-content-secondary)}.ynzg8v1[data-disabled]>[data-slot=icon]{color:var(--lovelace-color-content-disabled)}.ynzg8v1[data-has-attachments] .ynzg8v7{flex-basis:100%}.ynzg8v1[data-has-attachments]{row-gap:var(--lovelace-gap-20)}.ynzg8v2 .ynzg8v7{color:var(--lovelace-composer-content-default)}.ynzg8v2 .ynzg8v7::placeholder,.ynzg8v2>[data-slot=icon]{color:var(--lovelace-composer-content-secondary)}.ynzg8v2 .ynzg8v7[data-disabled],.ynzg8v2 .ynzg8v7[data-disabled]::placeholder{color:var(--lovelace-color-content-disabled)}@media (prefers-reduced-motion:no-preference){.ynzg8v4{transition-property:border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard)}.ynzg8v9:after{transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}@media (forced-colors:active){.ynzg8v4[data-focus-within],.ynzg8v9[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.k107bi1{isolation:isolate;align-items:center;gap:var(--lovelace-gap-4);color:var(--lovelace-color-content-link);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);word-break:break-word;cursor:pointer;border-radius:var(--lovelace-border-radius-6);outline:none;text-decoration:none;display:inline-flex;position:relative}.k107bi1:after{content:"";inset-block:0;inset-inline:calc(-1 * var(--lovelace-padding-4));border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute}.k107bi1:not([data-icon]){text-decoration:underline}.k107bi1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.k107bi1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.k107bi1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.k107bi1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.k107bi1[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.k107bi2{text-decoration:underline}.k107bi0 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}[dir=rtl] .k107bi0:not([data-download]) [data-slot=icon]{transform:scaleX(-1)}@media (forced-colors:active){.k107bi1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.fa1x5n0{outline:none;flex-direction:column;display:flex}.fa1x5n1{isolation:isolate;box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-12);min-height:40px;padding-inline:var(--lovelace-padding-8);padding-block:var(--lovelace-padding-4);border-radius:var(--lovelace-border-radius-button);border:var(--lovelace-border-width-default) solid transparent;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);font-weight:var(--lovelace-font-weight-regular);line-height:var(--lovelace-line-height-body);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;display:flex;position:relative}.fa1x5n1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.fa1x5n1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.fa1x5n1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.fa1x5n1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.fa1x5n1[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.fa1x5n1[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.fa1x5n1>[data-slot=icon]{font-size:var(--lovelace-icon-size-lg);flex-shrink:0}.fa1x5n1>[data-slot=label]{text-align:start;overflow-wrap:anywhere;flex:1;min-width:0}@media (forced-colors:active){.fa1x5n1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.mufew31{gap:var(--lovelace-gap-20);flex-direction:column;display:flex}.mufew31[data-orientation=horizontal]{flex-direction:row}.mufew32{cursor:pointer;-webkit-user-select:none;user-select:none}.mufew32[data-disabled]{cursor:not-allowed}.mufew33{align-items:center;gap:var(--lovelace-gap-12);display:inline-flex}.mufew34{isolation:isolate;box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-12);min-height:40px;padding-inline:var(--lovelace-padding-8);padding-block:var(--lovelace-padding-4);border-radius:var(--lovelace-border-radius-button);border:var(--lovelace-border-width-default) solid transparent;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);font-weight:var(--lovelace-font-weight-regular);line-height:var(--lovelace-line-height-body);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;display:flex;position:relative}.mufew34:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.mufew34[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.mufew34[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.mufew34[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.mufew34[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.mufew34[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.mufew30>[data-slot=icon]{font-size:var(--lovelace-icon-size-lg);flex-shrink:0}.mufew30>[data-slot=label]{text-align:start;overflow-wrap:anywhere;flex:1;min-width:0}.mufew35{box-sizing:border-box;border-radius:var(--lovelace-border-radius-full);border-style:solid;border-width:var(--lovelace-border-width-default);background-color:var(--lovelace-color-background-default);border-color:var(--lovelace-color-border-default);width:24px;height:24px;transition-property:background-color,border-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);flex-shrink:0;position:relative}[data-hovered]:not([data-selected]):not([data-disabled])>.mufew35[data-state-layer]{border-color:var(--lovelace-color-border-medium)}[data-selected]>.mufew35{background-color:var(--lovelace-color-background-inverse);border-color:var(--lovelace-color-background-inverse)}[data-focus-visible]:not([data-disabled])>.mufew35[data-state-layer]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}[data-focus-visible]:not([data-selected]):not([data-disabled])>.mufew35[data-state-layer]{border-color:var(--lovelace-color-border-accent)}[data-disabled]:not([data-selected])>.mufew35{background-color:var(--lovelace-color-background-tertiary);border-color:var(--lovelace-color-border-default)}[data-disabled][data-selected]>.mufew35{background-color:var(--lovelace-color-background-disabled);border-color:var(--lovelace-color-background-disabled)}.mufew36{border-radius:var(--lovelace-border-radius-full);pointer-events:none;background-color:#0000;position:absolute;inset:5px}[data-selected]>.mufew35>.mufew36{background-color:var(--lovelace-color-background-default)}[data-selected][data-disabled]>.mufew35>.mufew36{background-color:var(--lovelace-color-background-tertiary)}.mufew37{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-default)}[data-disabled]>.mufew37{color:var(--lovelace-color-content-disabled)}@media (forced-colors:active){.mufew34[data-focus-visible]:not([data-disabled]),[data-focus-visible]:not([data-disabled])>.mufew35[data-state-layer]{outline-offset:2px;outline:2px solid highlight}[data-selected]>.mufew35>.mufew36{background-color:canvastext}}._1s0itzy0{cursor:pointer;outline:none;flex-shrink:0;display:inline-flex}._1s0itzy0[data-disabled]{cursor:not-allowed}._1s0itzy1{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-color-background-quaternary);width:44px;height:24px;color:var(--lovelace-color-content-inverse);flex-shrink:0;display:inline-block;position:relative;box-shadow:0 1px 1px #00000014}._1s0itzy1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;background-color:currentColor;position:absolute;inset:0}[data-selected]>._1s0itzy1{background-color:var(--lovelace-color-background-success);box-shadow:none}[data-hovered]:not([data-disabled])>._1s0itzy1[data-state-layer]:after{opacity:var(--lovelace-opacity-state-hover)}[data-focus-visible]:not([data-disabled])>._1s0itzy1[data-state-layer]:after{opacity:var(--lovelace-opacity-state-focus)}[data-pressed]:not([data-disabled])>._1s0itzy1[data-state-layer]:after{opacity:var(--lovelace-opacity-state-pressed)}[data-focus-visible]:not([data-disabled])>._1s0itzy1[data-state-layer]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}[data-disabled]>._1s0itzy1{background-color:var(--lovelace-color-background-disabled);box-shadow:none}[data-disabled][data-selected]>._1s0itzy1{background-color:var(--lovelace-color-background-success)}[data-disabled][data-selected]>._1s0itzy1:after{opacity:.3}._1s0itzy2{border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-color-background-default);pointer-events:none;width:22px;height:22px;position:absolute;inset-block-start:1px;inset-inline-start:1px}[data-selected]>._1s0itzy1>._1s0itzy2{inset-inline-start:calc(100% - 23px)}@media (prefers-reduced-motion:no-preference){._1s0itzy1{transition-property:background-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard)}._1s0itzy1:after{transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}._1s0itzy2{transition:inset-inline-start var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}@media (forced-colors:active){[data-focus-visible]:not([data-disabled])>._1s0itzy1[data-state-layer]{outline-offset:2px;outline:2px solid highlight}}._1pxs3ha0{display:flex}._1pxs3ha1{min-height:var(--lovelace-icon-size-lg);align-items:center;gap:var(--lovelace-gap-4);color:var(--lovelace-color-content-destructive);margin:0;display:inline-flex}._1pxs3ha2{border-radius:var(--lovelace-border-radius-6);cursor:pointer;background:0 0;border:none;outline:none;padding:0}._1pxs3ha2[data-focus-visible]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._1pxs3ha3{clip:rect(0, 0, 0, 0);white-space:nowrap;-webkit-user-select:none;user-select:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}._1pxs3ha4{color:inherit;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);margin:0}._1pxs3ha1 [data-slot=icon]{font-size:var(--lovelace-icon-size-lg)}@media (forced-colors:active){._1pxs3ha2[data-focus-visible]{outline-offset:2px;outline:2px solid highlight}}._16xwgyj0{align-items:flex-start;gap:var(--lovelace-gap-12);display:flex}._16xwgyj1{justify-content:flex-start}._16xwgyj2{justify-content:flex-end}._16xwgyj3{min-width:0;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-message-content-font-size-body);line-height:var(--lovelace-message-content-line-height-body);color:var(--lovelace-message-content-default);overflow-wrap:anywhere;word-break:break-word;flex-direction:column;display:flex}._16xwgyj4{align-items:flex-end}._16xwgyj5{align-items:stretch}._16xwgyj6{flex:1 1 0;max-width:100%}._16xwgyj7{flex:0 auto}._16xwgyj8{max-width:80%}._16xwgyj9{max-width:90%}._14rcj9q1{box-sizing:border-box;border-radius:var(--lovelace-border-radius-media-preview);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}._14rcj9q2{aspect-ratio:16/9}._14rcj9q3{aspect-ratio:4/3}._14rcj9q4{aspect-ratio:1}._14rcj9q5{aspect-ratio:3/4}._14rcj9q6{aspect-ratio:9/16}._14rcj9q7{background-color:var(--lovelace-color-background-disabled);color:var(--lovelace-color-content-disabled)}._14rcj9q9{object-fit:cover;width:100%;height:100%;display:block}._14rcj9q0 [data-slot=icon]{font-size:var(--lovelace-icon-size-lg)}.rygqx10{isolation:isolate;justify-content:center;align-items:center;gap:var(--lovelace-gap-8);padding-inline:var(--lovelace-padding-12);box-sizing:border-box;border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);border-radius:var(--lovelace-border-radius-pill);background-color:var(--lovelace-color-background-default);color:var(--lovelace-pill-content-primary);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;text-decoration:none;display:inline-flex;position:relative}.rygqx10:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.rygqx10[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.rygqx10[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.rygqx10[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.rygqx10[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.rygqx10[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.rygqx11{height:40px}.rygqx12{height:32px}[data-slot=pill-button] [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){.rygqx10[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.y22qey0{box-sizing:border-box;width:fit-content;min-height:48px;padding-block:var(--lovelace-padding-8);padding-inline:var(--lovelace-padding-16);border-radius:var(--lovelace-border-radius-message);background-color:var(--lovelace-elevation-3-background);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);box-shadow:var(--lovelace-elevation-3);color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);text-align:start;overflow-wrap:anywhere;flex-direction:column;justify-content:center;align-items:flex-start;display:flex}._19x8abf1{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-full);box-shadow:var(--lovelace-elevation-2);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);border:none;outline:none;justify-content:center;align-items:center;display:inline-flex;position:relative}._19x8abf1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._19x8abf1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._19x8abf1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._19x8abf1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._19x8abf1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._19x8abf2{background-color:var(--lovelace-scrollmarker-background);color:var(--lovelace-scrollmarker-content)}._19x8abf3{background-color:var(--lovelace-color-background-accent);color:var(--lovelace-color-content-on-accent)}._19x8abf4{width:40px;height:40px;padding:0}._19x8abf5{height:38px;padding-inline:var(--lovelace-padding-12);gap:var(--lovelace-gap-8)}._19x8abf0 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){._19x8abf1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.mf01c90{box-sizing:border-box;background-color:var(--lovelace-elevation-2-background);width:100%;min-height:0;max-height:100%;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);flex-direction:column;flex:0 auto;display:flex;overflow-y:auto}.mf01c91{height:56px;padding-inline:var(--lovelace-padding-12);box-sizing:border-box;flex-shrink:0;justify-content:center;align-items:center;display:flex;position:relative}.mf01c92{color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);text-align:center;margin:0}.mf01c93{inset-inline-start:var(--lovelace-padding-12);align-items:center;display:flex;position:absolute;top:0;bottom:0}.mf01c94{inset-inline-end:var(--lovelace-padding-12);align-items:center;display:flex;position:absolute;top:0;bottom:0}[dir=rtl] .mf01c95{transform:scaleX(-1)}.mf01c96{min-height:var(--lovelace-spacing-48);padding:var(--lovelace-padding-12);box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--lovelace-color-border-default) transparent;flex:0 auto;overflow-y:auto}.mf01c97{align-items:stretch;gap:var(--lovelace-gap-12);padding:var(--lovelace-padding-12);box-sizing:border-box;flex-direction:column;flex-shrink:0;display:flex}._1hi4ecs0{background-color:var(--lovelace-color-scrim-subtle);justify-content:flex-end;align-items:center}._1hi4ecs1{background-color:var(--lovelace-elevation-2-background);width:100%;min-height:0;max-height:80%;box-shadow:var(--lovelace-elevation-2);border-start-start-radius:var(--lovelace-border-radius-container);border-start-end-radius:var(--lovelace-border-radius-container);flex-direction:column;display:flex;position:relative;overflow:hidden}._1hi4ecs1[data-entering],._1hi4ecs1[data-exiting]{transform:translateY(100%)}._1hi4ecs2{outline:none;flex-direction:column;flex:auto;min-height:0;max-height:100%;display:flex}@media (prefers-reduced-motion:no-preference){._1hi4ecs1{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}@keyframes _2rqyvg0{to{transform:rotate(360deg)}}._2rqyvg1{box-sizing:border-box;border-style:solid;border-color:var(--lovelace-color-wash-neutral);border-radius:50%;animation:.8s linear infinite _2rqyvg0;display:inline-block}._2rqyvg1[data-reduced-motion]{animation-duration:2.4s}._2rqyvg2{border-width:2px;width:16px;height:16px}._2rqyvg3{border-width:3px;width:32px;height:32px}._2rqyvg4{border-top-color:var(--lovelace-color-content-default)}._2rqyvg5{border-top-color:var(--lovelace-color-content-on-accent)}@media (prefers-reduced-motion:reduce){._2rqyvg1{animation-duration:2.4s}}.ewm1i80{gap:var(--lovelace-gap-8);flex-direction:column;width:fit-content;display:flex}.ewm1i81{justify-content:center;align-items:center;gap:var(--lovelace-gap-8);flex-wrap:wrap;width:100%;display:flex}.ewm1i82{width:100%;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-secondary);justify-content:space-between;display:flex}.r495e20{justify-content:center;align-items:center;gap:var(--lovelace-gap-8);flex-wrap:wrap;width:100%;display:flex}._17fuu3y0{margin:0}._17fuu3y1{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}._17fuu3y2{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption)}._17fuu3y3{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-title-small);line-height:var(--lovelace-line-height-title-small)}._17fuu3y4{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-title-large);line-height:var(--lovelace-line-height-title-large)}._17fuu3y5{font-weight:var(--lovelace-font-weight-regular)}._17fuu3y6{font-weight:var(--lovelace-font-weight-medium)}._17fuu3y7{font-weight:var(--lovelace-font-weight-semi-bold)}@keyframes _9az62f0{0%{background-position-x:200%}to{background-position-x:0%}}@keyframes _9az62f1{0%,80%,to{vertical-align:0}40%{vertical-align:.3em}}._9az62f2{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;background-image:linear-gradient(90deg, var(--lovelace-color-content-secondary) 0%, var(--lovelace-color-content-secondary) 35%, var(--lovelace-color-content-default) 50%, var(--lovelace-color-content-secondary) 65%, var(--lovelace-color-content-secondary) 100%);color:#0000;-webkit-text-fill-color:transparent;background-repeat:repeat;background-size:200% 100%;-webkit-background-clip:text;background-clip:text;animation:2s linear infinite _9az62f0;display:inline-block}._9az62f3{clip:rect(0, 0, 0, 0);white-space:nowrap;-webkit-user-select:none;user-select:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}._9az62f4{display:inline}._9az62f5{line-height:0;animation:1.4s ease-in-out infinite _9az62f1;display:inline}._9az62f5:nth-child(2){animation-delay:.16s}._9az62f5:nth-child(3){animation-delay:.32s}@media (prefers-reduced-motion:reduce){._9az62f2{color:var(--lovelace-color-content-secondary);-webkit-text-fill-color:var(--lovelace-color-content-secondary);background-image:none;animation:none}._9az62f5{animation:none}}[data-theme=light]{--_16991600:var(--lovelace-color-border-default)}[data-theme=dark]{--_16991600:var(--lovelace-color-border-medium)}._16991601{box-sizing:border-box;justify-content:flex-start;align-items:center;gap:var(--lovelace-gap-8);width:fit-content;max-width:100%;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);border-radius:var(--lovelace-border-radius-10);border-width:var(--lovelace-border-width-default);border-style:solid;border-color:var(--_16991600,var(--lovelace-color-border-default));background-color:var(--lovelace-color-background-tertiary);box-shadow:var(--lovelace-elevation-3);display:flex}._16991602{flex-shrink:0;justify-content:center;align-items:center;line-height:0;display:flex}._16991603{color:var(--lovelace-color-content-success);font-size:var(--lovelace-icon-size-control)}._16991604{color:var(--lovelace-color-content-warning);font-size:var(--lovelace-icon-size-control)}._16991605{color:var(--lovelace-color-content-destructive);font-size:var(--lovelace-icon-size-control)}._16991606{color:var(--lovelace-color-content-secondary);font-size:var(--lovelace-icon-size-lg)}._16991607{width:var(--lovelace-icon-size-lg);height:var(--lovelace-icon-size-lg)}._16991608{min-width:0;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-medium);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);overflow-wrap:break-word;margin-inline-end:auto}._16991609{color:var(--lovelace-color-content-secondary);flex-shrink:0}._16991601>[data-slot=button] [data-slot=icon]{font-size:var(--lovelace-icon-size-sm)}._16991601>[data-slot=button][data-disabled]{color:var(--lovelace-color-content-secondary);cursor:inherit}._1699160a{pointer-events:none}._1699160b{outline:none}._1699160c{align-items:center;gap:var(--lovelace-gap-16);flex-direction:column-reverse;margin:0;padding:0;list-style:none;display:flex}._1699160d{pointer-events:auto;padding-inline:var(--lovelace-padding-16);outline:none}._1699160d[data-entering]{opacity:0;transform:translateY(100%)}._1699160d[data-exiting]{opacity:0;pointer-events:none;transform:translateY(100%)}._1699160d[data-focus-visible] ._16991601{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:calc(-2 * var(--lovelace-border-width-focus))}@media (forced-colors:active){._16991601{border-color:canvastext}._1699160d[data-focus-visible] ._16991601{outline-offset:-2px;outline:2px solid highlight}}@media (prefers-reduced-motion:no-preference){._1699160d{transition:opacity var(--lovelace-duration-medium) var(--lovelace-easing-standard), transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}.s6807p0{box-sizing:border-box;max-width:184px;padding:var(--lovelace-spacing-8);border-radius:var(--lovelace-border-radius-6);background-color:var(--lovelace-color-background-inverse);color:var(--lovelace-color-content-inverse);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);text-align:center;word-break:break-word;filter:var(--lovelace-elevation-2-filter)}.s6807p0[data-entering],.s6807p0[data-exiting]{opacity:0}.s6807p1{display:block}.s6807p2{fill:var(--lovelace-color-background-inverse);display:block}.s6807p0[data-placement^=top] .s6807p2{transform:rotate(0)}.s6807p0[data-placement^=bottom] .s6807p2{transform:rotate(180deg)}.s6807p0[data-placement^=left] .s6807p2{transform:rotate(-90deg)}.s6807p0[data-placement^=right] .s6807p2{transform:rotate(90deg)}@media (prefers-reduced-motion:no-preference){.s6807p0{transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}@keyframes bwq5ac0{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-4px)}}.bwq5ac1{align-items:center;gap:var(--lovelace-gap-4);height:38px;padding-inline:var(--lovelace-padding-20);background-color:var(--lovelace-color-background-quaternary);border-start-start-radius:var(--lovelace-border-radius-20);border-start-end-radius:var(--lovelace-border-radius-20);border-end-end-radius:var(--lovelace-border-radius-20);border-end-start-radius:0;display:inline-flex}.bwq5ac2{clip:rect(0, 0, 0, 0);white-space:nowrap;-webkit-user-select:none;user-select:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.bwq5ac3{width:var(--lovelace-spacing-8);height:var(--lovelace-spacing-8);border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-color-content-default);flex-shrink:0;animation:.9s ease-in-out infinite bwq5ac0}.bwq5ac3:nth-child(2){animation-delay:.15s}.bwq5ac3:nth-child(3){animation-delay:.3s}@media (prefers-reduced-motion:reduce){.bwq5ac3{animation:none}}.jxp4or0{box-sizing:border-box;width:fit-content;max-width:100%;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);border-radius:var(--lovelace-border-radius-message);background-color:var(--lovelace-message-user-background);align-items:center;display:flex}.jxp4or1{--lovelace-message-content-default:var(--lovelace-message-user-content);--lovelace-message-content-link:var(--lovelace-message-user-content)}.v51xfr0{box-sizing:border-box;border-radius:var(--lovelace-border-radius-media-preview);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.v51xfr1{aspect-ratio:16/9}.v51xfr2{aspect-ratio:4/3}.v51xfr3{aspect-ratio:1}.v51xfr4{aspect-ratio:3/4}.v51xfr5{aspect-ratio:9/16}.v51xfr6{background-color:var(--lovelace-color-background-disabled);color:var(--lovelace-color-content-disabled);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default)}.v51xfr8{border-radius:inherit;background-color:var(--lovelace-color-wash-neutral);position:absolute;inset:0;overflow:hidden}.v51xfr9{font-size:var(--lovelace-icon-size-lg)}
|
|
1
|
+
.slrdvx0{color:var(--lovelace-message-content-default);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-regular);font-size:var(--lovelace-message-content-font-size-body);line-height:var(--lovelace-message-content-line-height-body);overflow-wrap:anywhere;word-break:break-word}.slrdvx0 :is(p,ul,ol,h1,h2,h3,h4,h5,h6,pre,blockquote,table,hr){margin:0}.slrdvx0 :is(ul,ol){margin:var(--lovelace-gap-4) 0;padding-inline-start:var(--lovelace-padding-16)}.slrdvx0 p+p{margin-top:var(--lovelace-gap-16)}:where(.slrdvx0) a{color:var(--lovelace-message-content-link);text-decoration:underline}:where(.slrdvx0) strong{font-weight:var(--lovelace-font-weight-semi-bold)}._1xn6t060{text-align:start;flex-direction:column;justify-content:center;min-width:0;min-height:24px;display:flex}._1chqu661{box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-8);min-width:0;padding:var(--lovelace-padding-8);border-radius:var(--lovelace-border-radius-6);background-color:var(--lovelace-color-background-quaternary);color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);text-align:start;appearance:none;box-shadow:0 var(--lovelace-elevation-2-offset-y) var(--lovelace-elevation-2-blur) var(--lovelace-elevation-2-spread) var(--lovelace-elevation-2-color);border:0;display:flex;overflow:hidden}._1chqu662{isolation:isolate;cursor:pointer;outline:none;height:36px;position:relative}._1chqu662:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._1chqu662[data-hovered]:after{opacity:var(--lovelace-opacity-state-hover)}._1chqu662[data-focus-visible]:after{opacity:var(--lovelace-opacity-state-focus)}._1chqu662[data-pressed]:after{opacity:var(--lovelace-opacity-state-pressed)}._1chqu662[data-focus-visible]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._1chqu663{max-width:148px;height:40px}._1chqu664{border-radius:var(--lovelace-border-radius-6);flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;display:inline-flex;overflow:hidden}._1chqu664 [data-slot=icon]{font-size:var(--lovelace-icon-size-control)}._1chqu665{object-fit:cover;width:100%;height:100%}._1chqu666{text-overflow:ellipsis;white-space:nowrap;word-break:break-word;min-width:0;overflow:hidden}@media (forced-colors:active){._1chqu662[data-focus-visible]{outline-offset:2px;outline:2px solid highlight}}.kmbju21{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-avatar);background-color:var(--lovelace-avatar-background);color:var(--lovelace-avatar-content);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-semi-bold);text-align:center;-webkit-user-select:none;user-select:none;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative;overflow:hidden}.kmbju22{width:24px;height:24px;font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}.kmbju23{width:36px;height:36px;font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}.kmbju24{width:48px;height:48px;font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}.kmbju25{width:72px;height:72px;font-size:var(--lovelace-font-size-title-large);line-height:var(--lovelace-line-height-title-large)}.kmbju26{flex-shrink:0}.kmbju27{width:24px;height:24px}.kmbju28{width:36px;height:36px}.kmbju29{width:48px;height:48px}.kmbju2a{width:72px;height:72px}.kmbju20 [data-slot=image]{width:100%;max-width:none;height:auto;max-height:none;margin:auto;position:absolute;inset:0}.kmbju20 [data-slot=icon]{flex-shrink:0}.kmbju20[data-size=sm] [data-slot=icon]{font-size:var(--lovelace-icon-size-sm)}.kmbju20[data-size=md] [data-slot=icon]{font-size:var(--lovelace-icon-size-md)}.kmbju20[data-size=lg] [data-slot=icon]{font-size:32px}.kmbju20[data-size=xl] [data-slot=icon]{font-size:36px}._1lzdalt0{aspect-ratio:1;color:currentColor;flex-shrink:0;justify-content:center;align-items:center;width:auto;height:1em;line-height:0;display:inline-flex}._3tx76z0{aspect-ratio:37.5/12}.fpbgjm0{gap:var(--lovelace-gap-8);box-sizing:border-box;width:100%;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-medium);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);overflow-wrap:break-word;justify-content:center;align-items:center;display:flex}.fpbgjm2{background-color:var(--lovelace-color-background-success-light);color:var(--lovelace-color-content-success)}.fpbgjm3{background-color:var(--lovelace-color-background-warning-light);color:var(--lovelace-color-content-warning)}.fpbgjm4{background-color:var(--lovelace-color-background-destructive-light);color:var(--lovelace-color-content-destructive)}.fpbgjm5{min-width:0}.fpbgjm0>[data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}.fpbgjm6{overflow:hidden}.fpbgjm7[data-entering],.fpbgjm7[data-exiting]{transform:translateY(-100%)}.fpbgjm7[data-swapping]{opacity:0}@media (prefers-reduced-motion:no-preference){.fpbgjm7{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard), opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}._1kxa7cu0{z-index:200;flex-direction:column;display:flex;position:fixed;inset:0}._1kxa7cu0[data-entering],._1kxa7cu0[data-exiting]{opacity:0}@media (prefers-reduced-motion:no-preference){._1kxa7cu0{transition:opacity var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}.xywi8y0{padding:var(--lovelace-padding-16);justify-content:flex-end;align-items:center}.xywi8y1{background-color:var(--lovelace-elevation-2-background);border-radius:var(--lovelace-border-radius-container);width:fit-content;max-width:min(320px,100%);min-height:0;max-height:100%;box-shadow:var(--lovelace-elevation-4);flex-direction:column;display:flex;position:relative;overflow:hidden}.xywi8y1[data-entering],.xywi8y1[data-exiting]{transform:translateY(8px)}.xywi8y2{outline:none;flex-direction:column;flex:auto;min-height:0;max-height:100%;display:flex}@media (prefers-reduced-motion:no-preference){.xywi8y1{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}.ateptb1{isolation:isolate;justify-content:center;align-items:center;gap:var(--lovelace-gap-8);padding-inline:var(--lovelace-padding-12);box-sizing:border-box;border:var(--lovelace-border-width-default) solid transparent;border-radius:var(--lovelace-border-radius-button);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;text-decoration:none;display:inline-flex;position:relative}.ateptb1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.ateptb1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.ateptb1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.ateptb1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.ateptb1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ateptb1[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.ateptb2{background-color:var(--lovelace-button-primary-background);color:var(--lovelace-button-primary-content)}.ateptb2[data-disabled]{background-color:var(--lovelace-color-background-disabled)}.ateptb3{background-color:var(--lovelace-color-background-destructive);color:var(--lovelace-color-content-on-destructive)}.ateptb3[data-disabled]{background-color:var(--lovelace-color-background-disabled)}.ateptb4{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-default);border-color:var(--lovelace-color-border-default)}.ateptb5{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-destructive);border-color:var(--lovelace-color-border-destructive)}.ateptb6{color:var(--lovelace-color-content-default);background-color:#0000}.ateptb7{color:var(--lovelace-color-content-destructive);background-color:#0000}.ateptb8{height:40px}.ateptb9{height:32px}.ateptb0 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){.ateptb1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.ptvtw60{max-width:100%;display:block}._10mu92g0{isolation:isolate;box-sizing:border-box;border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);border-radius:var(--lovelace-border-radius-message);background-color:var(--lovelace-color-background-default);width:100%;color:var(--lovelace-color-content-default);text-align:start;flex-direction:column;margin:0;padding:0;display:flex;position:relative;overflow:hidden}._10mu92g1{appearance:none;font:inherit;cursor:pointer;outline:none}._10mu92g1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._10mu92g1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._10mu92g1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._10mu92g1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._10mu92g1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._10mu92g1[data-disabled]{cursor:default}._10mu92g2{aspect-ratio:16/9;background-color:var(--lovelace-color-background-tertiary);width:100%;color:var(--lovelace-color-content-disabled);flex-shrink:0;justify-content:center;align-items:center;display:flex;overflow:hidden}._10mu92g3{object-fit:cover;width:100%;height:100%;display:block}._10mu92g2 [data-slot=icon]{font-size:var(--lovelace-icon-size-lg)}._10mu92g4{gap:var(--lovelace-gap-4);min-width:0;padding:var(--lovelace-padding-12);flex-direction:column;display:flex}._10mu92g5{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-semi-bold);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._10mu92g6{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);overflow-wrap:anywhere;-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}._10mu92g7{gap:var(--lovelace-gap-8);padding:var(--lovelace-padding-8) var(--lovelace-padding-12) var(--lovelace-padding-12);flex-direction:column;margin-top:auto;display:flex}._10mu92g7>[data-slot=button]{width:100%}@media (forced-colors:active){._10mu92g1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}._1nvcxt20{isolation:isolate;box-sizing:border-box;border:var(--lovelace-border-width-default) solid transparent;border-radius:var(--lovelace-border-radius-button);font-size:var(--lovelace-icon-size-control);cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}._1nvcxt20:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._1nvcxt20[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._1nvcxt20[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._1nvcxt20[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._1nvcxt20[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._1nvcxt20[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}._1nvcxt21{background-color:var(--lovelace-button-primary-background);color:var(--lovelace-button-primary-content)}._1nvcxt21[data-disabled]{background-color:var(--lovelace-color-background-disabled)}._1nvcxt22{background-color:var(--lovelace-color-background-destructive);color:var(--lovelace-color-content-on-destructive)}._1nvcxt22[data-disabled]{background-color:var(--lovelace-color-background-disabled)}._1nvcxt23{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-default);border-color:var(--lovelace-color-border-default)}._1nvcxt24{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-destructive);border-color:var(--lovelace-color-border-destructive)}._1nvcxt25{color:var(--lovelace-color-content-default);background-color:#0000}._1nvcxt26{color:var(--lovelace-color-content-destructive);background-color:#0000}._1nvcxt27{width:40px;height:40px}._1nvcxt28{width:32px;height:32px}._1nvcxt29{width:24px;height:24px}@media (forced-colors:active){._1nvcxt20[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}._1vler2p0{align-items:stretch;gap:var(--lovelace-gap-20);flex-direction:column;min-width:0;display:flex}._1vler2p1{gap:var(--lovelace-gap-12);padding-block:var(--lovelace-padding-4);padding-inline:var(--lovelace-padding-12);scroll-padding-inline:var(--lovelace-padding-12);scroll-snap-type:x mandatory;scrollbar-width:none;display:flex;overflow:auto hidden}._1vler2p1::-webkit-scrollbar{display:none}._1vler2p2{scroll-snap-align:center;flex:0 0 min(280px,80%);min-width:0;display:flex}._1vler2p2:first-child{scroll-snap-align:start}._1vler2p2:last-child{scroll-snap-align:end}._1vler2p3{justify-content:center;align-items:center;display:flex}._1vler2p4{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);align-items:center;gap:var(--lovelace-gap-4);padding-inline:var(--lovelace-padding-16);color:var(--lovelace-color-content-default);font-variant-numeric:tabular-nums;display:flex}._1vler2p5{text-align:center;min-width:24px}.s7h2sn0{gap:var(--lovelace-gap-20);flex-direction:column;display:flex}.s7h2sn2{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-default);cursor:pointer;-webkit-user-select:none;user-select:none;outline:none}.s7h2sn2[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.s7h2sn3{align-items:center;gap:var(--lovelace-gap-12);display:inline-flex}.s7h2sn4{isolation:isolate;box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-12);min-height:40px;padding-inline:var(--lovelace-padding-8);padding-block:var(--lovelace-padding-4);border-radius:var(--lovelace-border-radius-button);border:var(--lovelace-border-width-default) solid transparent;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);font-weight:var(--lovelace-font-weight-regular);line-height:var(--lovelace-line-height-body);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;display:flex;position:relative}.s7h2sn4:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.s7h2sn4[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.s7h2sn4[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.s7h2sn4[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.s7h2sn4[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.s7h2sn4[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.s7h2sn1>[data-slot=icon]{font-size:var(--lovelace-icon-size-lg);flex-shrink:0}.s7h2sn1>[data-slot=label]{text-align:start;overflow-wrap:anywhere;flex:1;min-width:0}.s7h2sn5{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-6);border-style:solid;border-width:var(--lovelace-border-width-default);border-color:var(--lovelace-color-border-default);background-color:var(--lovelace-color-background-default);width:24px;height:24px;color:var(--lovelace-color-content-inverse);transition-property:border-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);flex-shrink:0;position:relative}.s7h2sn5:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.s7h2sn6{color:currentColor;opacity:0;pointer-events:none;width:16px;height:16px;margin:auto;position:absolute;inset:0}[data-selected]>.s7h2sn5,[data-indeterminate]>.s7h2sn5{background-color:var(--lovelace-color-background-inverse);border-color:#0000}[data-hovered]:not([data-disabled]):not([data-selected]):not([data-indeterminate])>.s7h2sn5[data-state-layer]{border-color:var(--lovelace-color-border-medium)}[data-hovered]:not([data-disabled])>.s7h2sn5[data-state-layer]:after{opacity:var(--lovelace-opacity-state-hover)}[data-focus-visible]:not([data-disabled])>.s7h2sn5[data-state-layer]:after{opacity:var(--lovelace-opacity-state-focus)}[data-pressed]:not([data-disabled])>.s7h2sn5[data-state-layer]:after{opacity:var(--lovelace-opacity-state-pressed)}[data-focus-visible]:not([data-disabled])>.s7h2sn5[data-state-layer]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}[data-disabled]>.s7h2sn5{background-color:var(--lovelace-color-background-disabled);border-color:var(--lovelace-color-border-default);color:var(--lovelace-color-content-disabled)}[data-selected]:not([data-indeterminate])>.s7h2sn5>.s7h2sn6[data-glyph=check],[data-indeterminate]>.s7h2sn5>.s7h2sn6[data-glyph=dash]{opacity:1}@media (forced-colors:active){.s7h2sn4[data-focus-visible]:not([data-disabled]),[data-focus-visible]:not([data-disabled])>.s7h2sn5[data-state-layer]{outline-offset:2px;outline:2px solid highlight}}._18cnc771{isolation:isolate;box-sizing:border-box;border:var(--lovelace-border-width-default) solid transparent;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;justify-content:center;align-items:center;display:inline-flex;position:relative}._18cnc771:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._18cnc771:not([data-selected]){background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-default);border-color:var(--lovelace-color-border-default)}._18cnc771[data-selected]{background-color:var(--lovelace-chip-background-selected);color:var(--lovelace-color-content-on-accent);border-color:#0000}._18cnc771[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._18cnc771[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._18cnc771[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._18cnc771[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._18cnc771[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}._18cnc772{min-width:80px;padding-inline:var(--lovelace-padding-12);border-radius:var(--lovelace-border-radius-pill)}._18cnc773,._18cnc774{border-radius:var(--lovelace-border-radius-button)}._18cnc777{height:40px}._18cnc778{height:48px}._18cnc779{width:40px;height:40px}._18cnc77a{width:48px;height:48px}._18cnc77b{width:40px;height:40px}._18cnc77c{width:48px;height:48px;font-size:var(--lovelace-font-size-title-large)}._18cnc770 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){._18cnc771[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.onnuc90{text-align:center;align-items:center;gap:var(--lovelace-gap-16);padding:var(--lovelace-padding-16);background-color:var(--lovelace-elevation-2-background);flex-direction:column;display:flex}.onnuc91{flex-shrink:0;font-size:32px;line-height:0;display:flex}.onnuc92{color:var(--lovelace-color-content-warning)}.onnuc93{color:var(--lovelace-color-content-success)}.onnuc94{align-items:center;gap:var(--lovelace-gap-8);flex-direction:column;width:100%;display:flex}.onnuc95{text-align:center;width:100%;font-family:var(--lovelace-font-family-heading);font-size:var(--lovelace-font-size-title-large);line-height:var(--lovelace-line-height-title-large);font-weight:var(--lovelace-font-weight-medium);color:var(--lovelace-color-content-default);margin:0}.onnuc96{text-align:center;width:100%;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-secondary);margin:0}.onnuc97{align-items:stretch;gap:var(--lovelace-gap-8);flex-direction:column;width:100%;display:flex}._9zd2r40{padding:var(--lovelace-padding-16);background-color:var(--lovelace-color-scrim-subtle);justify-content:center;align-items:center}._9zd2r41{background-color:var(--lovelace-elevation-2-background);border-radius:var(--lovelace-border-radius-container);width:366px;max-width:100%;max-height:90%;box-shadow:var(--lovelace-elevation-2);flex-direction:column;display:flex;overflow:hidden}._9zd2r41[data-entering],._9zd2r41[data-exiting]{opacity:0;transform:scale(.95)}._9zd2r42{box-sizing:border-box;outline:none;flex-direction:column;flex:auto;width:100%;min-height:0;display:flex;overflow-y:auto}@media (prefers-reduced-motion:no-preference){._9zd2r41{transition-property:opacity,transform;transition-duration:var(--lovelace-duration-medium);transition-timing-function:var(--lovelace-easing-standard)}}.a07ce60{box-sizing:border-box}.a07ce61{width:100%;display:block}.a07ce62{justify-content:center;align-items:center;gap:var(--lovelace-gap-8);width:100%;display:flex}.a07ce63{justify-content:center;align-items:center;gap:var(--lovelace-gap-4);text-align:center;flex-direction:column;display:flex}.a07ce64{border:none;border-top:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);flex:1 1 0;width:100%;min-width:1px;height:0;margin:0}.a07ce65{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);color:var(--lovelace-color-content-secondary);font-weight:var(--lovelace-font-weight-regular);white-space:nowrap;flex-shrink:0;margin:0}.a07ce66{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);color:var(--lovelace-color-content-secondary);font-weight:var(--lovelace-font-weight-medium);margin:0}.a07ce67{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);color:var(--lovelace-color-content-secondary);font-weight:var(--lovelace-font-weight-regular);margin:0}._1vy5zjp0{flex-direction:column;flex:auto;min-height:0;display:flex;position:relative}._1vy5zjp1{justify-content:center;align-items:center;gap:var(--lovelace-gap-12);padding:var(--lovelace-padding-16);border-radius:var(--lovelace-border-radius-20);background-color:var(--lovelace-color-background-default);pointer-events:none;flex-direction:column;display:flex;position:absolute;inset:0}._1vy5zjp1 [data-slot=icon]{color:var(--lovelace-color-content-secondary);font-size:32px}._1vy5zjp0[data-drop-target] ._1vy5zjp1 [data-slot=icon]{color:var(--lovelace-color-content-highlight)}._1vy5zjp2{gap:var(--lovelace-gap-8);text-align:center;width:100%;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);word-break:break-word;flex-direction:column;display:flex}._1vy5zjp3{color:var(--lovelace-color-content-default);margin:0}._1vy5zjp4{color:var(--lovelace-color-content-secondary);margin:0}._6ivfy30{background-color:var(--lovelace-color-scrim-subtle)}._6ivfy31{background-color:var(--lovelace-elevation-2-background);flex-direction:column;width:100%;height:100%;min-height:0;max-height:100%;display:flex;position:relative;overflow:hidden}._6ivfy31[data-entering],._6ivfy31[data-exiting]{transform:translateY(100%)}._6ivfy32{outline:none;flex-direction:column;flex:auto;min-height:0;max-height:100%;display:flex}@media (prefers-reduced-motion:no-preference){._6ivfy31{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}._1x52ra20{background-color:var(--lovelace-header-background);color:var(--lovelace-header-content);height:56px;padding:0 var(--lovelace-padding-12);align-items:center;gap:var(--lovelace-spacing-8);flex-shrink:0;display:flex;position:relative;overflow:hidden}._1x52ra20 [data-slot=icon]{color:var(--lovelace-header-content)}._1x52ra20 [data-slot=avatar] [data-slot=icon]{color:var(--lovelace-avatar-content)}._1x52ra21{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);flex:1;margin:0;overflow:hidden}.ynzg8v0{width:100%;font-family:var(--lovelace-font-family-body);flex-direction:column;display:flex}.ynzg8v3{gap:var(--lovelace-gap-8);flex-wrap:wrap;flex:auto;min-width:0;display:flex}.ynzg8v4{align-items:flex-end;gap:var(--lovelace-gap-8);box-sizing:border-box;width:100%;min-height:40px;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);background-color:var(--lovelace-color-background-default);border-radius:var(--lovelace-border-radius-input);cursor:text;flex-wrap:wrap;display:flex}.ynzg8v4[data-focus-within]{border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ynzg8v4[data-invalid]{border-color:var(--lovelace-color-border-destructive)}.ynzg8v4[data-disabled]{background-color:var(--lovelace-color-background-disabled);cursor:not-allowed}.ynzg8v6{border-radius:var(--lovelace-border-radius-composer);border:var(--lovelace-border-width-default) solid var(--lovelace-composer-border-default);background-color:var(--lovelace-composer-background)}.ynzg8v6[data-focus-within]{border-color:var(--lovelace-composer-border-active);outline:var(--lovelace-border-width-focus) solid var(--lovelace-composer-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ynzg8v6[data-invalid]{border-color:var(--lovelace-color-border-destructive)}.ynzg8v7{appearance:none;min-width:0;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-default);background-color:#0000;border:none;outline:none;flex:1;margin:0;padding:0}.ynzg8v7::placeholder{color:var(--lovelace-color-content-secondary);opacity:1}.ynzg8v7[data-disabled]{color:var(--lovelace-color-content-disabled);cursor:not-allowed}.ynzg8v7[data-disabled]::placeholder{color:var(--lovelace-color-content-disabled)}.ynzg8v8{box-sizing:border-box;resize:none;overflow-wrap:anywhere;word-break:break-word;scrollbar-width:thin;scrollbar-color:var(--lovelace-color-border-default) transparent;width:100%;display:block;overflow-y:auto}.ynzg8v9{isolation:isolate;border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-button-primary-background);width:22px;height:22px;color:var(--lovelace-button-primary-content);cursor:pointer;appearance:none;border:none;outline:none;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative;overflow:hidden}.ynzg8v9:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;background-color:currentColor;position:absolute;inset:0}.ynzg8v9[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.ynzg8v9[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.ynzg8v9[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.ynzg8v9[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ynzg8v9[data-disabled]{cursor:not-allowed;background-color:var(--lovelace-color-background-disabled);color:var(--lovelace-color-content-disabled)}.ynzg8va{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);margin-bottom:var(--lovelace-gap-8);color:var(--lovelace-color-content-default)}.ynzg8vb{margin-top:var(--lovelace-gap-4);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-secondary)}.ynzg8vb[data-invalid]{color:var(--lovelace-color-content-destructive)}.ynzg8v1 [data-slot=icon],.ynzg8v9 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}.ynzg8v1>[data-slot=icon]{color:var(--lovelace-color-content-secondary)}.ynzg8v1[data-disabled]>[data-slot=icon]{color:var(--lovelace-color-content-disabled)}.ynzg8v1[data-has-attachments] .ynzg8v7{flex-basis:100%}.ynzg8v1[data-has-attachments]{row-gap:var(--lovelace-gap-20)}.ynzg8v2 .ynzg8v7{color:var(--lovelace-composer-content-default)}.ynzg8v2 .ynzg8v7::placeholder,.ynzg8v2>[data-slot=icon]{color:var(--lovelace-composer-content-secondary)}.ynzg8v2 .ynzg8v7[data-disabled],.ynzg8v2 .ynzg8v7[data-disabled]::placeholder{color:var(--lovelace-color-content-disabled)}@media (prefers-reduced-motion:no-preference){.ynzg8v4{transition-property:border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard)}.ynzg8v9:after{transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}@media (forced-colors:active){.ynzg8v4[data-focus-within],.ynzg8v9[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.k107bi1{isolation:isolate;align-items:center;gap:var(--lovelace-gap-4);color:var(--lovelace-color-content-link);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);word-break:break-word;cursor:pointer;border-radius:var(--lovelace-border-radius-6);outline:none;text-decoration:none;display:inline-flex;position:relative}.k107bi1:after{content:"";inset-block:0;inset-inline:calc(-1 * var(--lovelace-padding-4));border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute}.k107bi1:not([data-icon]){text-decoration:underline}.k107bi1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.k107bi1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.k107bi1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.k107bi1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.k107bi1[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.k107bi2{text-decoration:underline}.k107bi0 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}[dir=rtl] .k107bi0:not([data-download]) [data-slot=icon]{transform:scaleX(-1)}@media (forced-colors:active){.k107bi1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.fa1x5n0{outline:none;flex-direction:column;display:flex}.fa1x5n1{isolation:isolate;box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-12);min-height:40px;padding-inline:var(--lovelace-padding-8);padding-block:var(--lovelace-padding-4);border-radius:var(--lovelace-border-radius-button);border:var(--lovelace-border-width-default) solid transparent;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);font-weight:var(--lovelace-font-weight-regular);line-height:var(--lovelace-line-height-body);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;display:flex;position:relative}.fa1x5n1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.fa1x5n1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.fa1x5n1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.fa1x5n1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.fa1x5n1[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.fa1x5n1[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.fa1x5n1>[data-slot=icon]{font-size:var(--lovelace-icon-size-lg);flex-shrink:0}.fa1x5n1>[data-slot=label]{text-align:start;overflow-wrap:anywhere;flex:1;min-width:0}@media (forced-colors:active){.fa1x5n1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.mufew31{gap:var(--lovelace-gap-20);flex-direction:column;display:flex}.mufew31[data-orientation=horizontal]{flex-direction:row}.mufew32{cursor:pointer;-webkit-user-select:none;user-select:none}.mufew32[data-disabled]{cursor:not-allowed}.mufew33{align-items:center;gap:var(--lovelace-gap-12);display:inline-flex}.mufew34{isolation:isolate;box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-12);min-height:40px;padding-inline:var(--lovelace-padding-8);padding-block:var(--lovelace-padding-4);border-radius:var(--lovelace-border-radius-button);border:var(--lovelace-border-width-default) solid transparent;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);font-weight:var(--lovelace-font-weight-regular);line-height:var(--lovelace-line-height-body);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;display:flex;position:relative}.mufew34:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.mufew34[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.mufew34[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.mufew34[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.mufew34[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.mufew34[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.mufew30>[data-slot=icon]{font-size:var(--lovelace-icon-size-lg);flex-shrink:0}.mufew30>[data-slot=label]{text-align:start;overflow-wrap:anywhere;flex:1;min-width:0}.mufew35{box-sizing:border-box;border-radius:var(--lovelace-border-radius-full);border-style:solid;border-width:var(--lovelace-border-width-default);background-color:var(--lovelace-color-background-default);border-color:var(--lovelace-color-border-default);width:24px;height:24px;transition-property:background-color,border-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);flex-shrink:0;position:relative}[data-hovered]:not([data-selected]):not([data-disabled])>.mufew35[data-state-layer]{border-color:var(--lovelace-color-border-medium)}[data-selected]>.mufew35{background-color:var(--lovelace-color-background-inverse);border-color:var(--lovelace-color-background-inverse)}[data-focus-visible]:not([data-disabled])>.mufew35[data-state-layer]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}[data-focus-visible]:not([data-selected]):not([data-disabled])>.mufew35[data-state-layer]{border-color:var(--lovelace-color-border-accent)}[data-disabled]:not([data-selected])>.mufew35{background-color:var(--lovelace-color-background-tertiary);border-color:var(--lovelace-color-border-default)}[data-disabled][data-selected]>.mufew35{background-color:var(--lovelace-color-background-disabled);border-color:var(--lovelace-color-background-disabled)}.mufew36{border-radius:var(--lovelace-border-radius-full);pointer-events:none;background-color:#0000;position:absolute;inset:5px}[data-selected]>.mufew35>.mufew36{background-color:var(--lovelace-color-background-default)}[data-selected][data-disabled]>.mufew35>.mufew36{background-color:var(--lovelace-color-background-tertiary)}.mufew37{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-default)}[data-disabled]>.mufew37{color:var(--lovelace-color-content-disabled)}@media (forced-colors:active){.mufew34[data-focus-visible]:not([data-disabled]),[data-focus-visible]:not([data-disabled])>.mufew35[data-state-layer]{outline-offset:2px;outline:2px solid highlight}[data-selected]>.mufew35>.mufew36{background-color:canvastext}}._1s0itzy0{cursor:pointer;outline:none;flex-shrink:0;display:inline-flex}._1s0itzy0[data-disabled]{cursor:not-allowed}._1s0itzy1{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-color-background-quaternary);width:44px;height:24px;color:var(--lovelace-color-content-inverse);flex-shrink:0;display:inline-block;position:relative;box-shadow:0 1px 1px #00000014}._1s0itzy1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;background-color:currentColor;position:absolute;inset:0}[data-selected]>._1s0itzy1{background-color:var(--lovelace-color-background-success);box-shadow:none}[data-hovered]:not([data-disabled])>._1s0itzy1[data-state-layer]:after{opacity:var(--lovelace-opacity-state-hover)}[data-focus-visible]:not([data-disabled])>._1s0itzy1[data-state-layer]:after{opacity:var(--lovelace-opacity-state-focus)}[data-pressed]:not([data-disabled])>._1s0itzy1[data-state-layer]:after{opacity:var(--lovelace-opacity-state-pressed)}[data-focus-visible]:not([data-disabled])>._1s0itzy1[data-state-layer]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}[data-disabled]>._1s0itzy1{background-color:var(--lovelace-color-background-disabled);box-shadow:none}[data-disabled][data-selected]>._1s0itzy1{background-color:var(--lovelace-color-background-success)}[data-disabled][data-selected]>._1s0itzy1:after{opacity:.3}._1s0itzy2{border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-color-background-default);pointer-events:none;width:22px;height:22px;position:absolute;inset-block-start:1px;inset-inline-start:1px}[data-selected]>._1s0itzy1>._1s0itzy2{inset-inline-start:calc(100% - 23px)}@media (prefers-reduced-motion:no-preference){._1s0itzy1{transition-property:background-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard)}._1s0itzy1:after{transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}._1s0itzy2{transition:inset-inline-start var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}@media (forced-colors:active){[data-focus-visible]:not([data-disabled])>._1s0itzy1[data-state-layer]{outline-offset:2px;outline:2px solid highlight}}._1pxs3ha0{display:flex}._1pxs3ha1{min-height:var(--lovelace-icon-size-lg);align-items:center;gap:var(--lovelace-gap-4);color:var(--lovelace-color-content-destructive);margin:0;display:inline-flex}._1pxs3ha2{border-radius:var(--lovelace-border-radius-6);cursor:pointer;background:0 0;border:none;outline:none;padding:0}._1pxs3ha2[data-focus-visible]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._1pxs3ha3{clip:rect(0, 0, 0, 0);white-space:nowrap;-webkit-user-select:none;user-select:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}._1pxs3ha4{color:inherit;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);margin:0}._1pxs3ha1 [data-slot=icon]{font-size:var(--lovelace-icon-size-lg)}@media (forced-colors:active){._1pxs3ha2[data-focus-visible]{outline-offset:2px;outline:2px solid highlight}}._16xwgyj0{align-items:flex-start;gap:var(--lovelace-gap-12);display:flex}._16xwgyj1{justify-content:flex-start}._16xwgyj2{justify-content:flex-end}._16xwgyj3{min-width:0;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-message-content-font-size-body);line-height:var(--lovelace-message-content-line-height-body);color:var(--lovelace-message-content-default);overflow-wrap:anywhere;word-break:break-word;flex-direction:column;display:flex}._16xwgyj4{align-items:flex-end}._16xwgyj5{align-items:stretch}._16xwgyj6{flex:1 1 0;max-width:100%}._16xwgyj7{flex:0 auto}._16xwgyj8{max-width:80%}._16xwgyj9{max-width:90%}._14rcj9q1{box-sizing:border-box;border-radius:var(--lovelace-border-radius-media-preview);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}._14rcj9q2{aspect-ratio:16/9}._14rcj9q3{aspect-ratio:4/3}._14rcj9q4{aspect-ratio:1}._14rcj9q5{aspect-ratio:3/4}._14rcj9q6{aspect-ratio:9/16}._14rcj9q7{background-color:var(--lovelace-color-background-disabled);color:var(--lovelace-color-content-disabled)}._14rcj9q9{object-fit:cover;width:100%;height:100%;display:block}._14rcj9q0 [data-slot=icon]{font-size:var(--lovelace-icon-size-lg)}.rygqx10{isolation:isolate;justify-content:center;align-items:center;gap:var(--lovelace-gap-8);padding-inline:var(--lovelace-padding-12);box-sizing:border-box;border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);border-radius:var(--lovelace-border-radius-pill);background-color:var(--lovelace-color-background-default);color:var(--lovelace-pill-content-primary);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;text-decoration:none;display:inline-flex;position:relative}.rygqx10:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.rygqx10[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.rygqx10[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.rygqx10[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.rygqx10[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.rygqx10[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.rygqx11{height:40px}.rygqx12{height:32px}[data-slot=pill-button] [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){.rygqx10[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.y22qey0{box-sizing:border-box;width:fit-content;min-height:48px;padding-block:var(--lovelace-padding-8);padding-inline:var(--lovelace-padding-16);border-radius:var(--lovelace-border-radius-message);background-color:var(--lovelace-elevation-3-background);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);box-shadow:var(--lovelace-elevation-3);color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);text-align:start;overflow-wrap:anywhere;flex-direction:column;justify-content:center;align-items:flex-start;display:flex}._19x8abf1{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-full);box-shadow:var(--lovelace-elevation-2);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);border:none;outline:none;justify-content:center;align-items:center;display:inline-flex;position:relative}._19x8abf1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._19x8abf1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._19x8abf1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._19x8abf1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._19x8abf1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._19x8abf2{background-color:var(--lovelace-scrollmarker-background);color:var(--lovelace-scrollmarker-content)}._19x8abf3{background-color:var(--lovelace-color-background-accent);color:var(--lovelace-color-content-on-accent)}._19x8abf4{width:40px;height:40px;padding:0}._19x8abf5{height:38px;padding-inline:var(--lovelace-padding-12);gap:var(--lovelace-gap-8)}._19x8abf0 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){._19x8abf1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.mf01c90{box-sizing:border-box;background-color:var(--lovelace-elevation-2-background);width:100%;min-height:0;max-height:100%;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);flex-direction:column;flex:0 auto;display:flex;overflow-y:auto}.mf01c91{height:56px;padding-inline:var(--lovelace-padding-12);box-sizing:border-box;flex-shrink:0;justify-content:center;align-items:center;display:flex;position:relative}.mf01c92{color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);text-align:center;margin:0}.mf01c93{inset-inline-start:var(--lovelace-padding-12);align-items:center;display:flex;position:absolute;top:0;bottom:0}.mf01c94{inset-inline-end:var(--lovelace-padding-12);align-items:center;display:flex;position:absolute;top:0;bottom:0}[dir=rtl] .mf01c95{transform:scaleX(-1)}.mf01c96{min-height:var(--lovelace-spacing-48);padding:var(--lovelace-padding-12);box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--lovelace-color-border-default) transparent;flex:0 auto;overflow-y:auto}.mf01c97{align-items:stretch;gap:var(--lovelace-gap-12);padding:var(--lovelace-padding-12);box-sizing:border-box;flex-direction:column;flex-shrink:0;display:flex}._1hi4ecs0{background-color:var(--lovelace-color-scrim-subtle);justify-content:flex-end;align-items:center}._1hi4ecs1{background-color:var(--lovelace-elevation-2-background);width:100%;min-height:0;max-height:80%;box-shadow:var(--lovelace-elevation-2);border-start-start-radius:var(--lovelace-border-radius-container);border-start-end-radius:var(--lovelace-border-radius-container);flex-direction:column;display:flex;position:relative;overflow:hidden}._1hi4ecs1[data-entering],._1hi4ecs1[data-exiting]{transform:translateY(100%)}._1hi4ecs2{outline:none;flex-direction:column;flex:auto;min-height:0;max-height:100%;display:flex}@media (prefers-reduced-motion:no-preference){._1hi4ecs1{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}@keyframes _2rqyvg0{to{transform:rotate(360deg)}}._2rqyvg1{box-sizing:border-box;border-style:solid;border-color:var(--lovelace-color-wash-neutral);border-radius:50%;animation:.8s linear infinite _2rqyvg0;display:inline-block}._2rqyvg1[data-reduced-motion]{animation-duration:2.4s}._2rqyvg2{border-width:2px;width:16px;height:16px}._2rqyvg3{border-width:3px;width:32px;height:32px}._2rqyvg4{border-top-color:var(--lovelace-color-content-default)}._2rqyvg5{border-top-color:var(--lovelace-color-content-on-accent)}@media (prefers-reduced-motion:reduce){._2rqyvg1{animation-duration:2.4s}}.ewm1i80{gap:var(--lovelace-gap-8);flex-direction:column;width:fit-content;display:flex}.ewm1i81{justify-content:center;align-items:center;gap:var(--lovelace-gap-8);flex-wrap:wrap;width:100%;display:flex}.ewm1i82{width:100%;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-secondary);justify-content:space-between;display:flex}.r495e20{justify-content:center;align-items:center;gap:var(--lovelace-gap-8);flex-wrap:wrap;width:100%;display:flex}._17fuu3y0{margin:0}._17fuu3y1{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}._17fuu3y2{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption)}._17fuu3y3{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-title-small);line-height:var(--lovelace-line-height-title-small)}._17fuu3y4{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-title-large);line-height:var(--lovelace-line-height-title-large)}._17fuu3y5{font-weight:var(--lovelace-font-weight-regular)}._17fuu3y6{font-weight:var(--lovelace-font-weight-medium)}._17fuu3y7{font-weight:var(--lovelace-font-weight-semi-bold)}@keyframes _9az62f0{0%{background-position-x:200%}to{background-position-x:0%}}@keyframes _9az62f1{0%,80%,to{vertical-align:0}40%{vertical-align:.3em}}._9az62f2{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;background-image:linear-gradient(90deg, var(--lovelace-color-content-secondary) 0%, var(--lovelace-color-content-secondary) 35%, var(--lovelace-color-content-default) 50%, var(--lovelace-color-content-secondary) 65%, var(--lovelace-color-content-secondary) 100%);color:#0000;-webkit-text-fill-color:transparent;background-repeat:repeat;background-size:200% 100%;-webkit-background-clip:text;background-clip:text;animation:2s linear infinite _9az62f0;display:inline-block}._9az62f3{clip:rect(0, 0, 0, 0);white-space:nowrap;-webkit-user-select:none;user-select:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}._9az62f4{display:inline}._9az62f5{line-height:0;animation:1.4s ease-in-out infinite _9az62f1;display:inline}._9az62f5:nth-child(2){animation-delay:.16s}._9az62f5:nth-child(3){animation-delay:.32s}@media (prefers-reduced-motion:reduce){._9az62f2{color:var(--lovelace-color-content-secondary);-webkit-text-fill-color:var(--lovelace-color-content-secondary);background-image:none;animation:none}._9az62f5{animation:none}}[data-theme=light]{--_16991600:var(--lovelace-color-border-default)}[data-theme=dark]{--_16991600:var(--lovelace-color-border-medium)}._16991601{box-sizing:border-box;justify-content:flex-start;align-items:center;gap:var(--lovelace-gap-8);width:fit-content;max-width:100%;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);border-radius:var(--lovelace-border-radius-10);border-width:var(--lovelace-border-width-default);border-style:solid;border-color:var(--_16991600,var(--lovelace-color-border-default));background-color:var(--lovelace-color-background-tertiary);box-shadow:var(--lovelace-elevation-3);display:flex}._16991602{flex-shrink:0;justify-content:center;align-items:center;line-height:0;display:flex}._16991603{color:var(--lovelace-color-content-success);font-size:var(--lovelace-icon-size-control)}._16991604{color:var(--lovelace-color-content-warning);font-size:var(--lovelace-icon-size-control)}._16991605{color:var(--lovelace-color-content-destructive);font-size:var(--lovelace-icon-size-control)}._16991606{color:var(--lovelace-color-content-secondary);font-size:var(--lovelace-icon-size-lg)}._16991607{width:var(--lovelace-icon-size-lg);height:var(--lovelace-icon-size-lg)}._16991608{min-width:0;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-medium);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);overflow-wrap:break-word;margin-inline-end:auto}._16991609{color:var(--lovelace-color-content-secondary);flex-shrink:0}._16991601>[data-slot=button] [data-slot=icon]{font-size:var(--lovelace-icon-size-sm)}._16991601>[data-slot=button][data-disabled]{color:var(--lovelace-color-content-secondary);cursor:inherit}._1699160a{pointer-events:none}._1699160b{outline:none}._1699160c{align-items:center;gap:var(--lovelace-gap-16);flex-direction:column-reverse;margin:0;padding:0;list-style:none;display:flex}._1699160d{pointer-events:auto;padding-inline:var(--lovelace-padding-16);outline:none}._1699160d[data-entering]{opacity:0;transform:translateY(100%)}._1699160d[data-exiting]{opacity:0;pointer-events:none;transform:translateY(100%)}._1699160d[data-focus-visible] ._16991601{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:calc(-2 * var(--lovelace-border-width-focus))}@media (forced-colors:active){._16991601{border-color:canvastext}._1699160d[data-focus-visible] ._16991601{outline-offset:-2px;outline:2px solid highlight}}@media (prefers-reduced-motion:no-preference){._1699160d{transition:opacity var(--lovelace-duration-medium) var(--lovelace-easing-standard), transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}.s6807p0{box-sizing:border-box;max-width:184px;padding:var(--lovelace-spacing-8);border-radius:var(--lovelace-border-radius-6);background-color:var(--lovelace-color-background-inverse);color:var(--lovelace-color-content-inverse);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);text-align:center;word-break:break-word;filter:var(--lovelace-elevation-2-filter)}.s6807p0[data-entering],.s6807p0[data-exiting]{opacity:0}.s6807p1{display:block}.s6807p2{fill:var(--lovelace-color-background-inverse);display:block}.s6807p0[data-placement^=top] .s6807p2{transform:rotate(0)}.s6807p0[data-placement^=bottom] .s6807p2{transform:rotate(180deg)}.s6807p0[data-placement^=left] .s6807p2{transform:rotate(-90deg)}.s6807p0[data-placement^=right] .s6807p2{transform:rotate(90deg)}@media (prefers-reduced-motion:no-preference){.s6807p0{transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}@keyframes bwq5ac0{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-4px)}}.bwq5ac1{align-items:center;gap:var(--lovelace-gap-4);height:38px;padding-inline:var(--lovelace-padding-20);background-color:var(--lovelace-color-background-quaternary);border-start-start-radius:var(--lovelace-border-radius-20);border-start-end-radius:var(--lovelace-border-radius-20);border-end-end-radius:var(--lovelace-border-radius-20);border-end-start-radius:0;display:inline-flex}.bwq5ac2{clip:rect(0, 0, 0, 0);white-space:nowrap;-webkit-user-select:none;user-select:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.bwq5ac3{width:var(--lovelace-spacing-8);height:var(--lovelace-spacing-8);border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-color-content-default);flex-shrink:0;animation:.9s ease-in-out infinite bwq5ac0}.bwq5ac3:nth-child(2){animation-delay:.15s}.bwq5ac3:nth-child(3){animation-delay:.3s}@media (prefers-reduced-motion:reduce){.bwq5ac3{animation:none}}.jxp4or0{box-sizing:border-box;width:fit-content;max-width:100%;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);border-radius:var(--lovelace-border-radius-message);background-color:var(--lovelace-message-user-background);align-items:center;display:flex}.jxp4or1{--lovelace-message-content-default:var(--lovelace-message-user-content);--lovelace-message-content-link:var(--lovelace-message-user-content)}.v51xfr0{box-sizing:border-box;border-radius:var(--lovelace-border-radius-media-preview);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.v51xfr1{aspect-ratio:16/9}.v51xfr2{aspect-ratio:4/3}.v51xfr3{aspect-ratio:1}.v51xfr4{aspect-ratio:3/4}.v51xfr5{aspect-ratio:9/16}.v51xfr6{background-color:var(--lovelace-color-background-disabled);color:var(--lovelace-color-content-disabled);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default)}.v51xfr8{border-radius:inherit;background-color:var(--lovelace-color-wash-neutral);position:absolute;inset:0;overflow:hidden}.v51xfr9{font-size:var(--lovelace-icon-size-lg)}
|
|
2
2
|
/*$vite$:1*/
|