Name:"switch",template:(e,t)=>p.d`
    <template
        role="switch"
        aria-checked="${e=>e.checked}"
        aria-disabled="${e=>e.disabled}"
        aria-readonly="${e=>e.readOnly}"
        tabindex="${e=>e.disabled?null:0}"
        @keypress="${(e,t)=>e.keypressHandler(t.event)}"
        @click="${(e,t)=>e.clickHandler(t.event)}"
        class="${e=>e.checked?"checked":""}"
    >
        <label
            part="label"
            class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
        >
            <slot ${(0,h.Q)("defaultSlottedNodes")}></slot>
        </label>
        <div part="switch" class="switch">
            <slot name="switch">${t.switch||""}</slot>
        </div>
        <span class="status-message" part="status-message">
            <span class="checked-message" part="checked-message">
                <slot name="checked-message"></slot>
            </span>
            <span class="unchecked-message" part="unchecked-message">
                <slot name="unchecked-message"></slot>
            </span>
        </span>
    </template>
`,styles:(e,t)=>m.i`
        :host([hidden]) {
            display: none;
        }

        ${(0,g.j)("inline-flex")} :host {
            align-items: center;
            outline: none;
            font-family: ${k.SVJ};
            margin: calc(${k._5n} * 1px) 0;
            ${""} user-select: none;
        }

        :host(.disabled) {
            opacity: ${k.VFZ};
        }

        :host(.disabled) .label,
        :host(.readonly) .label,
        :host(.readonly) .switch,
        :host(.disabled) .switch {
            cursor: ${f.H};
        }

        .switch {
            position: relative;
            outline: none;
            box-sizing: border-box;
            width: calc(((${b.i} / 2) + ${k._5n}) * 2px);
            height: calc(((${b.i} / 2) + ${k._5n}) * 1px);
            background: ${k._Bj};
            border-radius: calc(${b.i} * 1px);
            border: calc(${k.Han} * 1px) solid ${k.rU8};
        }

        :host(:enabled) .switch:hover {
            background: ${k.Tm7};
            border-color: ${k.gKw};
            cursor: pointer;
        }

        :host(:enabled) .switch:active {
            background: ${k.Ium};
            border-color: ${k.ekh};
        }

        :host(:${v.b}) .switch {
            box-shadow: 0 0 0 2px ${k.IfY}, 0 0 0 4px ${k.yGg};
            border-color: ${k.yGg};
        }

        .checked-indicator {
            position: absolute;
            height: calc((${b.i} - (${k._5n} * 5.5)) * 1px);
            width: calc((${b.i} - (${k._5n} * 5.5)) * 1px);
            top: calc(${k._5n} * 1px);
            background: ${k.CHi};
            border-radius: 50%;
            transition: all 0.2s ease-in-out;
        }

        .status-message {
            color: ${k.CHi};
            cursor: pointer;
            font-size: ${k.cSu};
            line-height: ${k.RUt};
        }

        .label__hidden {
            display: none;
            visibility: hidden;
        }

        .label {
            color: ${k.CHi};
            font-size: ${k.cSu};
            line-height: ${k.RUt};
            margin-inline-end: calc(${k._5n} * 2px + 2px);
            cursor: pointer;
        }

        ::slotted(*) {
            ${""} margin-inline-start: calc(${k._5n} * 2px + 2px);
        }

        :host([aria-checked="true"]) .checked-indicator {
            background: ${k.w41};
        }

        :host([aria-checked="true"]) .switch {
            background: ${k.Avx};
        }

        :host([aria-checked="true"]:enabled) .switch:hover {
            background: ${k.OCG};
        }

        :host([aria-checked="true"]:enabled) .switch:hover .checked-indicator {
            background: ${k.lJV};
        }

        :host([aria-checked="true"]:enabled) .switch:active {
            background: ${k.UEO};
        }

        :host([aria-checked="true"]:enabled) .switch:active .checked-indicator {
            background: ${k.PpH};
        }

        :host([aria-checked="true"]:${v.b}:enabled) .switch {
            box-shadow: 0 0 0 2px ${k.IfY}, 0 0 0 4px ${k.yGg};
            border-color: transparent;
        }

        .unchecked-message {
            display: block;
        }

        .checked-message {
            display: none;
        }

        :host([aria-checked="true"]) .unchecked-message {
            display: none;
        }

        :host([aria-checked="true"]) .checked-message {
            display: block;
        }
    `.withBehaviors(new S.O(m.i`
                .checked-indicator {
                    left: calc(${k._5n} * 1px);
                }

                :host([aria-checked="true"]) .checked-indicator {
                    left: calc(
                        (((${b.i} / 2) + ${k._5n}) + ${k._5n}) * 1px
                    );
                }
            `,m.i`
                .checked-indicator {
                    right: calc(${k._5n} * 1px);
                }

                :host([aria-checked="true"]) .checked-indicator {
                    right: calc(
                        (((${b.i} / 2) + ${k._5n}) + ${k._5n}) * 1px
                    );
                }
            `),(0,y.vF)(m.i`
                .checked-indicator,
                :host(:enabled) .switch:active .checked-indicator {
                    forced-color-adjust: none;
                    background: ${w.H.FieldText};
                }
                .switch {
                    forced-color-adjust: none;
                    background: ${w.H.Field};
                    border-color: ${w.H.FieldText};
                }
                :host(:enabled) .switch:hover {
                    background: ${w.H.HighlightText};
                    border-color: ${w.H.Highlight};
                }
                :host(.checked) .switch {
                    background: ${w.H.Highlight};
                    border-color: ${w.H.Highlight};
                }
                :host(.checked:enabled) .switch:hover,
                :host(:enabled) .switch:active {
                    background: ${w.H.HighlightText};
                    border-color: ${w.H.Highlight};
                }
                :host(.checked) .checked-indicator {
                    background: ${w.H.HighlightText};
                }
                :host(.checked:enabled) .switch:hover .checked-indicator {
                    background: ${w.H.Highlight};
                }
                :host(:${v.b}) .switch {
                    border-color: ${w.H.Highlight};
                    box-shadow: 0 0 0 2px ${w.H.Field},
                        0 0 0 4px ${w.H.FieldText};
                }
                :host(.checked:${v.b}:enabled) .switch {
                    box-shadow: 0 0 0 2px ${w.H.Field},
                        0 0 0 4px ${w.H.FieldText};
                }
                :host(.disabled) {
                    opacity: 1;
                }
                :host(.disabled) .checked-indicator {
                    background: ${w.H.GrayText};
                }
                :host(.disabled) .switch {
                    background: ${w.H.Field};
                    border-color: ${w.H.GrayText};
                }
                .status-message,
                .label {
                    color: ${w.H.FieldText};
                }
            `)),switch:'\n    <span class="checked-indicator" part="checked-indicator"></span>\n  '})}}]);A
Eo