@mhmo91/schmancy 0.5.42 → 0.5.44
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/ai/theme.md +33 -13
- package/dist/ai/theme.md +33 -13
- package/dist/{animated-text-Csa12CPb.js → animated-text-CPA937x-.js} +3 -3
- package/dist/{animated-text-Csa12CPb.js.map → animated-text-CPA937x-.js.map} +1 -1
- package/dist/{animated-text-DXIDBlvH.cjs → animated-text-Dr32Ckh7.cjs} +2 -2
- package/dist/{animated-text-DXIDBlvH.cjs.map → animated-text-Dr32Ckh7.cjs.map} +1 -1
- package/dist/animated-text.cjs +1 -1
- package/dist/animated-text.js +1 -1
- package/dist/area.cjs +1 -1
- package/dist/{area.component-CuaH39_t.cjs → area.component-C3uCk-c1.cjs} +2 -2
- package/dist/{area.component-CuaH39_t.cjs.map → area.component-C3uCk-c1.cjs.map} +1 -1
- package/dist/{area.component-CLVv59z9.js → area.component-CgAISzZ3.js} +3 -3
- package/dist/{area.component-CLVv59z9.js.map → area.component-CgAISzZ3.js.map} +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-DwXFcjbJ.js → autocomplete--0ZoSIp0.js} +4 -4
- package/dist/{autocomplete-DwXFcjbJ.js.map → autocomplete--0ZoSIp0.js.map} +1 -1
- package/dist/{autocomplete-bixBLHrn.cjs → autocomplete-CpCXamUl.cjs} +2 -2
- package/dist/{autocomplete-bixBLHrn.cjs.map → autocomplete-CpCXamUl.cjs.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/{avatar-DyRhI1cs.cjs → avatar-5cjrkZS5.cjs} +2 -2
- package/dist/{avatar-DyRhI1cs.cjs.map → avatar-5cjrkZS5.cjs.map} +1 -1
- package/dist/{avatar-B1-VVeUn.js → avatar-BixWcgH7.js} +50 -50
- package/dist/{avatar-B1-VVeUn.js.map → avatar-BixWcgH7.js.map} +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{boat-BOeCFmGT.js → boat-Bou0hRnM.js} +3 -3
- package/dist/{boat-BOeCFmGT.js.map → boat-Bou0hRnM.js.map} +1 -1
- package/dist/{boat-DsaSCYS-.cjs → boat-CkkEmZcE.cjs} +2 -2
- package/dist/{boat-DsaSCYS-.cjs.map → boat-CkkEmZcE.cjs.map} +1 -1
- package/dist/boat.cjs +1 -1
- package/dist/boat.js +1 -1
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-bS6snk-D.js → checkbox-D8ZJSnVa.js} +2 -2
- package/dist/{checkbox-bS6snk-D.js.map → checkbox-D8ZJSnVa.js.map} +1 -1
- package/dist/{checkbox-i2C0wggY.cjs → checkbox-DODyS0zq.cjs} +2 -2
- package/dist/{checkbox-i2C0wggY.cjs.map → checkbox-DODyS0zq.cjs.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +2 -2
- package/dist/code-highlight.cjs +1 -1
- package/dist/code-highlight.js +1 -1
- package/dist/{code-preview-BwGY-eTR.cjs → code-preview-BZmBRwu-.cjs} +2 -2
- package/dist/{code-preview-BwGY-eTR.cjs.map → code-preview-BZmBRwu-.cjs.map} +1 -1
- package/dist/{code-preview-Ce2yFUqq.js → code-preview-CTnFGeWr.js} +2 -2
- package/dist/{code-preview-Ce2yFUqq.js.map → code-preview-CTnFGeWr.js.map} +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{date-range-Cyj_v670.js → date-range-ClsaySUj.js} +3 -3
- package/dist/{date-range-Cyj_v670.js.map → date-range-ClsaySUj.js.map} +1 -1
- package/dist/{date-range-CafP0b3r.cjs → date-range-CoETNfZb.cjs} +2 -2
- package/dist/{date-range-CafP0b3r.cjs.map → date-range-CoETNfZb.cjs.map} +1 -1
- package/dist/{date-range-inline-Ckp4BGWf.cjs → date-range-inline-DANhDNYe.cjs} +2 -2
- package/dist/{date-range-inline-Ckp4BGWf.cjs.map → date-range-inline-DANhDNYe.cjs.map} +1 -1
- package/dist/{date-range-inline-liOecqXM.js → date-range-inline-DGlKBtNK.js} +3 -3
- package/dist/{date-range-inline-liOecqXM.js.map → date-range-inline-DGlKBtNK.js.map} +1 -1
- package/dist/date-range-inline.cjs +1 -1
- package/dist/date-range-inline.js +1 -1
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{delay-mGXngiWQ.js → delay-BYgsZZlo.js} +2 -2
- package/dist/{delay-mGXngiWQ.js.map → delay-BYgsZZlo.js.map} +1 -1
- package/dist/{delay-D-0KDfbr.cjs → delay-C_eK0GWj.cjs} +2 -2
- package/dist/{delay-D-0KDfbr.cjs.map → delay-C_eK0GWj.cjs.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{details-BMxdZzyB.cjs → details-CRLG7_Rx.cjs} +2 -2
- package/dist/{details-BMxdZzyB.cjs.map → details-CRLG7_Rx.cjs.map} +1 -1
- package/dist/{details-Bs41KV4O.js → details-YOyqdGM4.js} +2 -2
- package/dist/{details-Bs41KV4O.js.map → details-YOyqdGM4.js.map} +1 -1
- package/dist/details.cjs +1 -1
- package/dist/details.js +1 -1
- package/dist/{dialog-content-CeCvuhEq.cjs → dialog-content-Bm8humI-.cjs} +2 -2
- package/dist/{dialog-content-CeCvuhEq.cjs.map → dialog-content-Bm8humI-.cjs.map} +1 -1
- package/dist/{dialog-content-CXkxu3sg.js → dialog-content-CXshnL4t.js} +3 -3
- package/dist/{dialog-content-CXkxu3sg.js.map → dialog-content-CXshnL4t.js.map} +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{divider-9lMuhEF7.js → divider-BD7cCM-N.js} +3 -3
- package/dist/{divider-9lMuhEF7.js.map → divider-BD7cCM-N.js.map} +1 -1
- package/dist/{divider-PC1JIGto.cjs → divider-W9uJ8C3q.cjs} +2 -2
- package/dist/{divider-PC1JIGto.cjs.map → divider-W9uJ8C3q.cjs.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-C6bzUdre.js → dropdown-content-C7b_9CMw.js} +3 -3
- package/dist/{dropdown-content-C6bzUdre.js.map → dropdown-content-C7b_9CMw.js.map} +1 -1
- package/dist/{dropdown-content-YtQD_Ck-.cjs → dropdown-content-DnWgB8CR.cjs} +2 -2
- package/dist/{dropdown-content-YtQD_Ck-.cjs.map → dropdown-content-DnWgB8CR.cjs.map} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{email-recipients-BdQzItf2.js → email-recipients-CyIXLoSh.js} +5 -5
- package/dist/{email-recipients-BdQzItf2.js.map → email-recipients-CyIXLoSh.js.map} +1 -1
- package/dist/{email-recipients-DcAklWpr.cjs → email-recipients-whsZqIpA.cjs} +2 -2
- package/dist/{email-recipients-DcAklWpr.cjs.map → email-recipients-whsZqIpA.cjs.map} +1 -1
- package/dist/extra.cjs +1 -1
- package/dist/extra.js +1 -1
- package/dist/{flex-CymZJKG2.cjs → flex-C0O9O1yV.cjs} +2 -2
- package/dist/{flex-CymZJKG2.cjs.map → flex-C0O9O1yV.cjs.map} +1 -1
- package/dist/{flex-Bxl3NsXD.js → flex-DvZKaAtN.js} +2 -2
- package/dist/{flex-Bxl3NsXD.js.map → flex-DvZKaAtN.js.map} +1 -1
- package/dist/{form-Ce5p9bdj.js → form-BsI5Sk-R.js} +2 -2
- package/dist/{form-Ce5p9bdj.js.map → form-BsI5Sk-R.js.map} +1 -1
- package/dist/{form-ziHjSN7z.cjs → form-D4AZek8y.cjs} +2 -2
- package/dist/{form-ziHjSN7z.cjs.map → form-D4AZek8y.cjs.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{formField.mixin-BJVauln0.js → formField.mixin-C_a5Hccx.js} +2 -2
- package/dist/{formField.mixin-BJVauln0.js.map → formField.mixin-C_a5Hccx.js.map} +1 -1
- package/dist/{formField.mixin-CIA3kxcC.cjs → formField.mixin-DfxR1FzZ.cjs} +2 -2
- package/dist/{formField.mixin-CIA3kxcC.cjs.map → formField.mixin-DfxR1FzZ.cjs.map} +1 -1
- package/dist/{icon-DepgqyRD.js → icon-5LbOG-V0.js} +2 -2
- package/dist/{icon-DepgqyRD.js.map → icon-5LbOG-V0.js.map} +1 -1
- package/dist/{icon-xz9CZ_mu.cjs → icon-J11blFZq.cjs} +2 -2
- package/dist/{icon-xz9CZ_mu.cjs.map → icon-J11blFZq.cjs.map} +1 -1
- package/dist/{icon-button-JyplFXpv.js → icon-button-Cwm3vcDO.js} +3 -3
- package/dist/{icon-button-JyplFXpv.js.map → icon-button-Cwm3vcDO.js.map} +1 -1
- package/dist/{icon-button-BcPw-g5w.cjs → icon-button-DjfEYUdj.cjs} +2 -2
- package/dist/{icon-button-BcPw-g5w.cjs.map → icon-button-DjfEYUdj.cjs.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +81 -80
- package/dist/{input-2zKUZ1FS.js → input-DO5pS6fE.js} +3 -3
- package/dist/{input-2zKUZ1FS.js.map → input-DO5pS6fE.js.map} +1 -1
- package/dist/{input-BmfUDPMe.cjs → input-DbzpwrUh.cjs} +2 -2
- package/dist/{input-BmfUDPMe.cjs.map → input-DbzpwrUh.cjs.map} +1 -1
- package/dist/{input-chip-DCFE2das.cjs → input-chip-CBJxQ2MI.cjs} +2 -2
- package/dist/{input-chip-DCFE2das.cjs.map → input-chip-CBJxQ2MI.cjs.map} +1 -1
- package/dist/{input-chip-B5iaq1Pp.js → input-chip-CXZTmfwT.js} +2 -2
- package/dist/{input-chip-B5iaq1Pp.js.map → input-chip-CXZTmfwT.js.map} +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +1 -1
- package/dist/{list-DjsP1jdt.cjs → list-C7wTsdkZ.cjs} +2 -2
- package/dist/{list-DjsP1jdt.cjs.map → list-C7wTsdkZ.cjs.map} +1 -1
- package/dist/{list-Xn46Y9a6.js → list-Cbrv1Y7B.js} +2 -2
- package/dist/{list-Xn46Y9a6.js.map → list-Cbrv1Y7B.js.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-2hXm33ge.cjs → litElement.mixin-Dlq4PNEh.cjs} +2 -2
- package/dist/{litElement.mixin-2hXm33ge.cjs.map → litElement.mixin-Dlq4PNEh.cjs.map} +1 -1
- package/dist/{litElement.mixin-CG9mrwt1.js → litElement.mixin-DwXXrxwO.js} +2 -2
- package/dist/{litElement.mixin-CG9mrwt1.js.map → litElement.mixin-DwXXrxwO.js.map} +1 -1
- package/dist/mailbox.cjs +1 -1
- package/dist/mailbox.js +1 -1
- package/dist/{map-DNcXVi-U.js → map-6p1rwGq_.js} +2 -2
- package/dist/{map-DNcXVi-U.js.map → map-6p1rwGq_.js.map} +1 -1
- package/dist/{map-CeF1uvkL.cjs → map-B3Ond3EJ.cjs} +2 -2
- package/dist/{map-CeF1uvkL.cjs.map → map-B3Ond3EJ.cjs.map} +1 -1
- package/dist/map.cjs +1 -1
- package/dist/map.js +1 -1
- package/dist/{media-BjeuyEOk.js → media-8qL5J_9U.js} +2 -2
- package/dist/{media-BjeuyEOk.js.map → media-8qL5J_9U.js.map} +1 -1
- package/dist/{media-CvDQHokK.cjs → media-urvTQuhG.cjs} +2 -2
- package/dist/{media-CvDQHokK.cjs.map → media-urvTQuhG.cjs.map} +1 -1
- package/dist/{menu-w7kvbTtD.cjs → menu-CAqcdA-t.cjs} +2 -2
- package/dist/{menu-w7kvbTtD.cjs.map → menu-CAqcdA-t.cjs.map} +1 -1
- package/dist/{menu-KGnj0Kh6.js → menu-DqPjhh0F.js} +3 -3
- package/dist/{menu-KGnj0Kh6.js.map → menu-DqPjhh0F.js.map} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/navigation-bar.cjs +1 -1
- package/dist/navigation-bar.js +1 -1
- package/dist/{navigation-rail-BMDyS7wp.js → navigation-rail-B1JZU-E_.js} +3 -3
- package/dist/{navigation-rail-BMDyS7wp.js.map → navigation-rail-B1JZU-E_.js.map} +1 -1
- package/dist/{navigation-rail-B9TwnugR.cjs → navigation-rail-G9DFyu8b.cjs} +2 -2
- package/dist/{navigation-rail-B9TwnugR.cjs.map → navigation-rail-G9DFyu8b.cjs.map} +1 -1
- package/dist/navigation-rail.cjs +1 -1
- package/dist/navigation-rail.js +1 -1
- package/dist/{notification-service-DqHFQxSc.js → notification-service-C2FCNL6K.js} +4 -4
- package/dist/{notification-service-DqHFQxSc.js.map → notification-service-C2FCNL6K.js.map} +1 -1
- package/dist/{notification-service-D82nyl-G.cjs → notification-service-D2iAqL5y.cjs} +2 -2
- package/dist/{notification-service-D82nyl-G.cjs.map → notification-service-D2iAqL5y.cjs.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +2 -2
- package/dist/{notify-Dye22W7R.cjs → notify-CGUpuJK_.cjs} +2 -2
- package/dist/{notify-Dye22W7R.cjs.map → notify-CGUpuJK_.cjs.map} +1 -1
- package/dist/{notify-DxrhioDZ.js → notify-CXgvep0J.js} +2 -2
- package/dist/{notify-DxrhioDZ.js.map → notify-CXgvep0J.js.map} +1 -1
- package/dist/{option-DGmRpFZ7.js → option-CWqav-ae.js} +2 -2
- package/dist/{option-DGmRpFZ7.js.map → option-CWqav-ae.js.map} +1 -1
- package/dist/{option-CxCwCg-Q.cjs → option-D8qnpwBr.cjs} +2 -2
- package/dist/{option-CxCwCg-Q.cjs.map → option-D8qnpwBr.cjs.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-DC6KZQqx.js → payment-card-form-09YuBc3U.js} +3 -3
- package/dist/{payment-card-form-DC6KZQqx.js.map → payment-card-form-09YuBc3U.js.map} +1 -1
- package/dist/{payment-card-form-EiPNKSMh.cjs → payment-card-form-pQBAeXvc.cjs} +2 -2
- package/dist/{payment-card-form-EiPNKSMh.cjs.map → payment-card-form-pQBAeXvc.cjs.map} +1 -1
- package/dist/{progress-D-O06EpC.js → progress-BLRwJ_un.js} +2 -2
- package/dist/{progress-D-O06EpC.js.map → progress-BLRwJ_un.js.map} +1 -1
- package/dist/{progress-B0RlHca-.cjs → progress-nWFc1Ixd.cjs} +2 -2
- package/dist/{progress-B0RlHca-.cjs.map → progress-nWFc1Ixd.cjs.map} +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radio-button-BXt83EFW.js → radio-button-BC0Of2-G.js} +3 -3
- package/dist/{radio-button-BXt83EFW.js.map → radio-button-BC0Of2-G.js.map} +1 -1
- package/dist/{radio-button-Ca8dstJu.cjs → radio-button-DIjkirPr.cjs} +2 -2
- package/dist/{radio-button-Ca8dstJu.cjs.map → radio-button-DIjkirPr.cjs.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{schmancy-steps-container-D-FJPDYf.cjs → schmancy-steps-container-B8B2ZnTB.cjs} +2 -2
- package/dist/{schmancy-steps-container-D-FJPDYf.cjs.map → schmancy-steps-container-B8B2ZnTB.cjs.map} +1 -1
- package/dist/{schmancy-steps-container-CbKdQNpF.js → schmancy-steps-container-Sf8RjF0N.js} +2 -2
- package/dist/{schmancy-steps-container-CbKdQNpF.js.map → schmancy-steps-container-Sf8RjF0N.js.map} +1 -1
- package/dist/{select-Cxp_CwfI.js → select-C6QlML9m.js} +3 -3
- package/dist/{select-Cxp_CwfI.js.map → select-C6QlML9m.js.map} +1 -1
- package/dist/{select-HU7uyxZf.cjs → select-CqlN3vWr.cjs} +2 -2
- package/dist/{select-HU7uyxZf.cjs.map → select-CqlN3vWr.cjs.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-Dl9rh6eh.cjs → sheet-D6yxukD7.cjs} +2 -2
- package/dist/{sheet-Dl9rh6eh.cjs.map → sheet-D6yxukD7.cjs.map} +1 -1
- package/dist/{sheet-CI2M5fbX.js → sheet-Dxx7iH9V.js} +3 -3
- package/dist/{sheet-CI2M5fbX.js.map → sheet-Dxx7iH9V.js.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-DJYIoiKc.cjs → slider-BGgXG44k.cjs} +2 -2
- package/dist/{slider-DJYIoiKc.cjs.map → slider-BGgXG44k.cjs.map} +1 -1
- package/dist/{slider-CGr2q_2b.js → slider-BIjiRBMB.js} +3 -3
- package/dist/{slider-CGr2q_2b.js.map → slider-BIjiRBMB.js.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-CcH_nIFs.cjs → spinner-CFx3p13n.cjs} +2 -2
- package/dist/{spinner-CcH_nIFs.cjs.map → spinner-CFx3p13n.cjs.map} +1 -1
- package/dist/{spinner-Cz4_OpDu.js → spinner-D8IKqMrW.js} +2 -2
- package/dist/{spinner-Cz4_OpDu.js.map → spinner-D8IKqMrW.js.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{suggestion-chip-Cyjqp-lh.js → suggestion-chip-DHpWcimf.js} +3 -3
- package/dist/{suggestion-chip-Cyjqp-lh.js.map → suggestion-chip-DHpWcimf.js.map} +1 -1
- package/dist/{suggestion-chip-HKN89tGp.cjs → suggestion-chip-KkPIwkYP.cjs} +2 -2
- package/dist/{suggestion-chip-HKN89tGp.cjs.map → suggestion-chip-KkPIwkYP.cjs.map} +1 -1
- package/dist/{surface-DNDo9GvN.js → surface-CkSAxbh2.js} +2 -2
- package/dist/{surface-DNDo9GvN.js.map → surface-CkSAxbh2.js.map} +1 -1
- package/dist/{surface-bwIB0iXd.cjs → surface-pMQpuZWM.cjs} +2 -2
- package/dist/{surface-bwIB0iXd.cjs.map → surface-pMQpuZWM.cjs.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-9rRK6gzm.js → table-BgQCOk5g.js} +2 -2
- package/dist/{table-9rRK6gzm.js.map → table-BgQCOk5g.js.map} +1 -1
- package/dist/{table-TN1ejwp9.cjs → table-CVHtS_w_.cjs} +2 -2
- package/dist/{table-TN1ejwp9.cjs.map → table-CVHtS_w_.cjs.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-compatibility-D7gReL6x.js → tabs-compatibility-BCtEpyN5.js} +2 -2
- package/dist/{tabs-compatibility-D7gReL6x.js.map → tabs-compatibility-BCtEpyN5.js.map} +1 -1
- package/dist/{tabs-compatibility-8J1-XOVC.cjs → tabs-compatibility-w2lmMs2h.cjs} +2 -2
- package/dist/{tabs-compatibility-8J1-XOVC.cjs.map → tabs-compatibility-w2lmMs2h.cjs.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-Be9DoonS.js +64 -0
- package/dist/{tailwind.mixin-Di9OJku4.js.map → tailwind.mixin-Be9DoonS.js.map} +1 -1
- package/dist/tailwind.mixin-Bz_Bv8SX.cjs +2 -0
- package/dist/{tailwind.mixin-DLCFOKfg.cjs.map → tailwind.mixin-Bz_Bv8SX.cjs.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-C7UG4uqi.cjs → textarea-BRI0tufi.cjs} +2 -2
- package/dist/{textarea-C7UG4uqi.cjs.map → textarea-BRI0tufi.cjs.map} +1 -1
- package/dist/{textarea-POrLBTqt.js → textarea-DBc8Uh7D.js} +2 -2
- package/dist/{textarea-POrLBTqt.js.map → textarea-DBc8Uh7D.js.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-D52HSty3.js → theme-button-DCYQYmF-.js} +2 -2
- package/dist/{theme-button-D52HSty3.js.map → theme-button-DCYQYmF-.js.map} +1 -1
- package/dist/{theme-button-D2mrc8sK.cjs → theme-button-DXCpzc5c.cjs} +2 -2
- package/dist/{theme-button-D2mrc8sK.cjs.map → theme-button-DXCpzc5c.cjs.map} +1 -1
- package/dist/theme-button.cjs +1 -1
- package/dist/theme-button.js +1 -1
- package/dist/{theme.controls-AhYhEp6P.js → theme-controller-boat-C_6tVWSS.js} +249 -229
- package/dist/theme-controller-boat-C_6tVWSS.js.map +1 -0
- package/dist/theme-controller-boat-HDnVrCW1.cjs +64 -0
- package/dist/theme-controller-boat-HDnVrCW1.cjs.map +1 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.js +12 -11
- package/dist/{timezone-CC6AlVL7.js → timezone-Atm5Dy-B.js} +3 -3
- package/dist/{timezone-CC6AlVL7.js.map → timezone-Atm5Dy-B.js.map} +1 -1
- package/dist/{timezone-DqF1M2SX.cjs → timezone-BQaIFLiV.cjs} +2 -2
- package/dist/{timezone-DqF1M2SX.cjs.map → timezone-BQaIFLiV.cjs.map} +1 -1
- package/dist/{tooltip-BGPFn2fD.js → tooltip-C-PhMMvT.js} +2 -2
- package/dist/{tooltip-BGPFn2fD.js.map → tooltip-C-PhMMvT.js.map} +1 -1
- package/dist/{tooltip-CBSejhMv.cjs → tooltip-SBsMu8ZQ.cjs} +2 -2
- package/dist/{tooltip-CBSejhMv.cjs.map → tooltip-SBsMu8ZQ.cjs.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-Deu4d4cq.js → tree-BagJ6dD2.js} +2 -2
- package/dist/{tree-Deu4d4cq.js.map → tree-BagJ6dD2.js.map} +1 -1
- package/dist/{tree-D-qdyKrr.cjs → tree-j0lH3CZh.cjs} +2 -2
- package/dist/{tree-D-qdyKrr.cjs.map → tree-j0lH3CZh.cjs.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-eHMm0feA.cjs → typewriter-BawsYtHa.cjs} +2 -2
- package/dist/{typewriter-eHMm0feA.cjs.map → typewriter-BawsYtHa.cjs.map} +1 -1
- package/dist/{typewriter-Bs3Z9Zt3.js → typewriter-BjiolWBJ.js} +4 -4
- package/dist/{typewriter-Bs3Z9Zt3.js.map → typewriter-BjiolWBJ.js.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-C-BgyYZO.cjs → typography-Bk9jOEtx.cjs} +2 -2
- package/dist/{typography-C-BgyYZO.cjs.map → typography-Bk9jOEtx.cjs.map} +1 -1
- package/dist/{typography-Dl9Avhco.js → typography-CyDDUJ9J.js} +2 -2
- package/dist/{typography-Dl9Avhco.js.map → typography-CyDDUJ9J.js.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +1 -1
- package/types/src/theme/index.d.ts +2 -1
- package/types/src/theme/theme-controller-boat.d.ts +29 -0
- package/types/src/theme/theme-controller.d.ts +49 -0
- package/types/src/theme/theme.component.d.ts +11 -0
- package/dist/tailwind.mixin-DLCFOKfg.cjs +0 -2
- package/dist/tailwind.mixin-Di9OJku4.js +0 -64
- package/dist/theme.controls-AhYhEp6P.js.map +0 -1
- package/dist/theme.controls-g1RRbUfh.cjs +0 -67
- package/dist/theme.controls-g1RRbUfh.cjs.map +0 -1
- package/types/src/theme/theme.controls.d.ts +0 -27
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { T as rr } from "./tailwind.mixin-Di9OJku4.js";
|
|
3
|
-
import { unsafeCSS as tr, html as Pe } from "lit";
|
|
4
|
-
import { property as de, customElement as ze, state as ve } from "lit/decorators.js";
|
|
5
|
-
import { BehaviorSubject as we, map as te, distinctUntilChanged as Q, shareReplay as oe, switchMap as Me, Observable as Ne, of as _e, fromEvent as Ce, takeUntil as W, timer as Ee, defaultIfEmpty as $e, tap as ee, combineLatest as or, debounceTime as je, Subject as nr } from "rxjs";
|
|
1
|
+
import { BehaviorSubject as Me, map as re, distinctUntilChanged as Z, shareReplay as te, switchMap as xe, Observable as je, of as be, fromEvent as ve, takeUntil as le, timer as $e, defaultIfEmpty as Re, tap as ue, Subject as He, debounceTime as Ge } from "rxjs";
|
|
6
2
|
import { a as De, T as Ue } from "./theme.events-CPSLaOlR.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { c as er } from "./context-create-DCiujzV2.js";
|
|
4
|
+
import { property as ce, customElement as Le, state as Ce } from "lit/decorators.js";
|
|
9
5
|
import "rxjs/operators";
|
|
10
|
-
|
|
6
|
+
import { n as rr, e as tr } from "./provide-tcktw8xB.js";
|
|
7
|
+
import { T as or } from "./tailwind.mixin-Be9DoonS.js";
|
|
8
|
+
import { unsafeCSS as nr, html as we } from "lit";
|
|
9
|
+
import { $ as ar } from "./litElement.mixin-DwXXrxwO.js";
|
|
10
|
+
function H(r) {
|
|
11
11
|
return r < 0 ? -1 : r === 0 ? 0 : 1;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function de(r, e, t) {
|
|
14
14
|
return (1 - t) * r + t * e;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Pe(r, e, t) {
|
|
17
17
|
return t < r ? r : t > e ? e : t;
|
|
18
18
|
}
|
|
19
19
|
function Se(r) {
|
|
@@ -22,66 +22,66 @@ function Se(r) {
|
|
|
22
22
|
function Fe(r, e) {
|
|
23
23
|
return [r[0] * e[0][0] + r[1] * e[0][1] + r[2] * e[0][2], r[0] * e[1][0] + r[1] * e[1][1] + r[2] * e[1][2], r[0] * e[2][0] + r[1] * e[2][1] + r[2] * e[2][2]];
|
|
24
24
|
}
|
|
25
|
-
const
|
|
26
|
-
function
|
|
25
|
+
const cr = [[0.41233895, 0.35762064, 0.18051042], [0.2126, 0.7152, 0.0722], [0.01932141, 0.11916382, 0.95034478]], sr = [[3.2413774792388685, -1.5376652402851851, -0.49885366846268053], [-0.9691452513005321, 1.8758853451067872, 0.04156585616912061], [0.05562093689691305, -0.20395524564742123, 1.0571799111220335]], ir = [95.047, 100, 108.883];
|
|
26
|
+
function Be(r, e, t) {
|
|
27
27
|
return (255 << 24 | (255 & r) << 16 | (255 & e) << 8 | 255 & t) >>> 0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
return
|
|
29
|
+
function ze(r) {
|
|
30
|
+
return Be(ee(r[0]), ee(r[1]), ee(r[2]));
|
|
31
31
|
}
|
|
32
32
|
function qe(r) {
|
|
33
33
|
return r >> 16 & 255;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Je(r) {
|
|
36
36
|
return r >> 8 & 255;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Ye(r) {
|
|
39
39
|
return 255 & r;
|
|
40
40
|
}
|
|
41
41
|
function Te(r) {
|
|
42
42
|
const e = function(t) {
|
|
43
|
-
return Fe([ie(qe(t)), ie(
|
|
43
|
+
return Fe([ie(qe(t)), ie(Je(t)), ie(Ye(t))], cr);
|
|
44
44
|
}(r)[1];
|
|
45
|
-
return 116 *
|
|
45
|
+
return 116 * We(e / 100) - 16;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function K(r) {
|
|
48
48
|
return 100 * function(e) {
|
|
49
49
|
const t = 0.008856451679035631, o = 24389 / 27, n = e * e * e;
|
|
50
50
|
return n > t ? n : (116 * e - 16) / o;
|
|
51
51
|
}((r + 16) / 116);
|
|
52
52
|
}
|
|
53
53
|
function Ie(r) {
|
|
54
|
-
return 116 *
|
|
54
|
+
return 116 * We(r / 100) - 16;
|
|
55
55
|
}
|
|
56
56
|
function ie(r) {
|
|
57
57
|
const e = r / 255;
|
|
58
58
|
return e <= 0.040449936 ? e / 12.92 * 100 : 100 * Math.pow((e + 0.055) / 1.055, 2.4);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function ee(r) {
|
|
61
61
|
const e = r / 100;
|
|
62
62
|
let t = 0;
|
|
63
63
|
return t = e <= 31308e-7 ? 12.92 * e : 1.055 * Math.pow(e, 1 / 2.4) - 0.055, o = 0, n = 255, (a = Math.round(255 * t)) < o ? o : a > n ? n : a;
|
|
64
64
|
var o, n, a;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function We(r) {
|
|
67
67
|
return r > 216 / 24389 ? Math.pow(r, 1 / 3) : (903.2962962962963 * r + 16) / 116;
|
|
68
68
|
}
|
|
69
|
-
class
|
|
69
|
+
class U {
|
|
70
70
|
static make(e = /* @__PURE__ */ function() {
|
|
71
|
-
return
|
|
72
|
-
}(), t = 200 / Math.PI *
|
|
73
|
-
const s = e, i = 0.401288 * s[0] + 0.650173 * s[1] + -0.051461 * s[2], m = -0.250268 * s[0] + 1.204414 * s[1] + 0.045854 * s[2], h = -2079e-6 * s[0] + 0.048952 * s[1] + 0.953127 * s[2], u = 0.8 + n / 10, k = u >= 0.9 ?
|
|
74
|
-
let
|
|
75
|
-
|
|
76
|
-
const l = u, g = [
|
|
77
|
-
return new
|
|
71
|
+
return ir;
|
|
72
|
+
}(), t = 200 / Math.PI * K(50) / 100, o = 50, n = 2, a = !1) {
|
|
73
|
+
const s = e, i = 0.401288 * s[0] + 0.650173 * s[1] + -0.051461 * s[2], m = -0.250268 * s[0] + 1.204414 * s[1] + 0.045854 * s[2], h = -2079e-6 * s[0] + 0.048952 * s[1] + 0.953127 * s[2], u = 0.8 + n / 10, k = u >= 0.9 ? de(0.59, 0.69, 10 * (u - 0.9)) : de(0.525, 0.59, 10 * (u - 0.8));
|
|
74
|
+
let C = a ? 1 : u * (1 - 1 / 3.6 * Math.exp((-t - 42) / 92));
|
|
75
|
+
C = C > 1 ? 1 : C < 0 ? 0 : C;
|
|
76
|
+
const l = u, g = [C * (100 / i) + 1 - C, C * (100 / m) + 1 - C, C * (100 / h) + 1 - C], w = 1 / (5 * t + 1), P = w * w * w * w, F = 1 - P, x = P * t + 0.1 * F * F * Math.cbrt(5 * t), A = K(o) / e[1], b = 1.48 + Math.sqrt(A), v = 0.725 / Math.pow(A, 0.2), B = v, D = [Math.pow(x * g[0] * i / 100, 0.42), Math.pow(x * g[1] * m / 100, 0.42), Math.pow(x * g[2] * h / 100, 0.42)], I = [400 * D[0] / (D[0] + 27.13), 400 * D[1] / (D[1] + 27.13), 400 * D[2] / (D[2] + 27.13)];
|
|
77
|
+
return new U(A, (2 * I[0] + I[1] + 0.05 * I[2]) * v, v, B, k, l, g, x, Math.pow(x, 0.25), b);
|
|
78
78
|
}
|
|
79
79
|
constructor(e, t, o, n, a, s, i, m, h, u) {
|
|
80
80
|
this.n = e, this.aw = t, this.nbb = o, this.ncb = n, this.c = a, this.nc = s, this.rgbD = i, this.fl = m, this.fLRoot = h, this.z = u;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
|
|
84
|
-
class
|
|
83
|
+
U.DEFAULT = U.make();
|
|
84
|
+
class V {
|
|
85
85
|
constructor(e, t, o, n, a, s, i, m, h) {
|
|
86
86
|
this.hue = e, this.chroma = t, this.j = o, this.q = n, this.m = a, this.s = s, this.jstar = i, this.astar = m, this.bstar = h;
|
|
87
87
|
}
|
|
@@ -90,45 +90,45 @@ class O {
|
|
|
90
90
|
return 1.41 * Math.pow(a, 0.63);
|
|
91
91
|
}
|
|
92
92
|
static fromInt(e) {
|
|
93
|
-
return
|
|
93
|
+
return V.fromIntInViewingConditions(e, U.DEFAULT);
|
|
94
94
|
}
|
|
95
95
|
static fromIntInViewingConditions(e, t) {
|
|
96
|
-
const o = (65280 & e) >> 8, n = 255 & e, a = ie((16711680 & e) >> 16), s = ie(o), i = ie(n), m = 0.41233895 * a + 0.35762064 * s + 0.18051042 * i, h = 0.2126 * a + 0.7152 * s + 0.0722 * i, u = 0.01932141 * a + 0.11916382 * s + 0.95034478 * i, k = 0.401288 * m + 0.650173 * h - 0.051461 * u,
|
|
97
|
-
return new
|
|
96
|
+
const o = (65280 & e) >> 8, n = 255 & e, a = ie((16711680 & e) >> 16), s = ie(o), i = ie(n), m = 0.41233895 * a + 0.35762064 * s + 0.18051042 * i, h = 0.2126 * a + 0.7152 * s + 0.0722 * i, u = 0.01932141 * a + 0.11916382 * s + 0.95034478 * i, k = 0.401288 * m + 0.650173 * h - 0.051461 * u, C = -0.250268 * m + 1.204414 * h + 0.045854 * u, l = -2079e-6 * m + 0.048952 * h + 0.953127 * u, g = t.rgbD[0] * k, w = t.rgbD[1] * C, P = t.rgbD[2] * l, F = Math.pow(t.fl * Math.abs(g) / 100, 0.42), x = Math.pow(t.fl * Math.abs(w) / 100, 0.42), A = Math.pow(t.fl * Math.abs(P) / 100, 0.42), b = 400 * H(g) * F / (F + 27.13), v = 400 * H(w) * x / (x + 27.13), B = 400 * H(P) * A / (A + 27.13), D = (11 * b + -12 * v + B) / 11, I = (b + v - 2 * B) / 9, T = (20 * b + 20 * v + 21 * B) / 20, pe = (40 * b + 20 * v + B) / 20, z = 180 * Math.atan2(I, D) / Math.PI, N = z < 0 ? z + 360 : z >= 360 ? z - 360 : z, q = N * Math.PI / 180, $ = pe * t.nbb, _ = 100 * Math.pow($ / t.aw, t.c * t.z), he = 4 / t.c * Math.sqrt(_ / 100) * (t.aw + 4) * t.fLRoot, me = N < 20.14 ? N + 360 : N, fe = 5e4 / 13 * (0.25 * (Math.cos(me * Math.PI / 180 + 2) + 3.8)) * t.nc * t.ncb * Math.sqrt(D * D + I * I) / (T + 0.305), ge = Math.pow(fe, 0.9) * Math.pow(1.64 - Math.pow(0.29, t.n), 0.73), ke = ge * Math.sqrt(_ / 100), Ae = ke * t.fLRoot, Xe = 50 * Math.sqrt(ge * t.c / (t.aw + 4)), Ke = (1 + 100 * 7e-3) * _ / (1 + 7e-3 * _), Ee = 1 / 0.0228 * Math.log(1 + 0.0228 * Ae), Ze = Ee * Math.cos(q), Qe = Ee * Math.sin(q);
|
|
97
|
+
return new V(N, ke, _, he, Ae, Xe, Ke, Ze, Qe);
|
|
98
98
|
}
|
|
99
99
|
static fromJch(e, t, o) {
|
|
100
|
-
return
|
|
100
|
+
return V.fromJchInViewingConditions(e, t, o, U.DEFAULT);
|
|
101
101
|
}
|
|
102
102
|
static fromJchInViewingConditions(e, t, o, n) {
|
|
103
|
-
const a = 4 / n.c * Math.sqrt(e / 100) * (n.aw + 4) * n.fLRoot, s = t * n.fLRoot, i = t / Math.sqrt(e / 100), m = 50 * Math.sqrt(i * n.c / (n.aw + 4)), h = o * Math.PI / 180, u = (1 + 100 * 7e-3) * e / (1 + 7e-3 * e), k = 1 / 0.0228 * Math.log(1 + 0.0228 * s),
|
|
104
|
-
return new
|
|
103
|
+
const a = 4 / n.c * Math.sqrt(e / 100) * (n.aw + 4) * n.fLRoot, s = t * n.fLRoot, i = t / Math.sqrt(e / 100), m = 50 * Math.sqrt(i * n.c / (n.aw + 4)), h = o * Math.PI / 180, u = (1 + 100 * 7e-3) * e / (1 + 7e-3 * e), k = 1 / 0.0228 * Math.log(1 + 0.0228 * s), C = k * Math.cos(h), l = k * Math.sin(h);
|
|
104
|
+
return new V(o, t, e, a, s, m, u, C, l);
|
|
105
105
|
}
|
|
106
106
|
static fromUcs(e, t, o) {
|
|
107
|
-
return
|
|
107
|
+
return V.fromUcsInViewingConditions(e, t, o, U.DEFAULT);
|
|
108
108
|
}
|
|
109
109
|
static fromUcsInViewingConditions(e, t, o, n) {
|
|
110
110
|
const a = t, s = o, i = Math.sqrt(a * a + s * s), m = (Math.exp(0.0228 * i) - 1) / 0.0228 / n.fLRoot;
|
|
111
111
|
let h = Math.atan2(s, a) * (180 / Math.PI);
|
|
112
112
|
h < 0 && (h += 360);
|
|
113
113
|
const u = e / (1 - 7e-3 * (e - 100));
|
|
114
|
-
return
|
|
114
|
+
return V.fromJchInViewingConditions(u, m, h, n);
|
|
115
115
|
}
|
|
116
116
|
toInt() {
|
|
117
|
-
return this.viewed(
|
|
117
|
+
return this.viewed(U.DEFAULT);
|
|
118
118
|
}
|
|
119
119
|
viewed(e) {
|
|
120
|
-
const t = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100), o = Math.pow(t / Math.pow(1.64 - Math.pow(0.29, e.n), 0.73), 1 / 0.9), n = this.hue * Math.PI / 180, a = 0.25 * (Math.cos(n + 2) + 3.8), s = e.aw * Math.pow(this.j / 100, 1 / e.c / e.z), i = a * (5e4 / 13) * e.nc * e.ncb, m = s / e.nbb, h = Math.sin(n), u = Math.cos(n), k = 23 * (m + 0.305) * o / (23 * i + 11 * o * u + 108 * o * h),
|
|
121
|
-
return function(
|
|
122
|
-
const
|
|
123
|
-
return
|
|
120
|
+
const t = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100), o = Math.pow(t / Math.pow(1.64 - Math.pow(0.29, e.n), 0.73), 1 / 0.9), n = this.hue * Math.PI / 180, a = 0.25 * (Math.cos(n + 2) + 3.8), s = e.aw * Math.pow(this.j / 100, 1 / e.c / e.z), i = a * (5e4 / 13) * e.nc * e.ncb, m = s / e.nbb, h = Math.sin(n), u = Math.cos(n), k = 23 * (m + 0.305) * o / (23 * i + 11 * o * u + 108 * o * h), C = k * u, l = k * h, g = (460 * m + 451 * C + 288 * l) / 1403, w = (460 * m - 891 * C - 261 * l) / 1403, P = (460 * m - 220 * C - 6300 * l) / 1403, F = Math.max(0, 27.13 * Math.abs(g) / (400 - Math.abs(g))), x = H(g) * (100 / e.fl) * Math.pow(F, 1 / 0.42), A = Math.max(0, 27.13 * Math.abs(w) / (400 - Math.abs(w))), b = H(w) * (100 / e.fl) * Math.pow(A, 1 / 0.42), v = Math.max(0, 27.13 * Math.abs(P) / (400 - Math.abs(P))), B = H(P) * (100 / e.fl) * Math.pow(v, 1 / 0.42), D = x / e.rgbD[0], I = b / e.rgbD[1], T = B / e.rgbD[2];
|
|
121
|
+
return function(z, N, q) {
|
|
122
|
+
const $ = sr, _ = $[0][0] * z + $[0][1] * N + $[0][2] * q, he = $[1][0] * z + $[1][1] * N + $[1][2] * q, me = $[2][0] * z + $[2][1] * N + $[2][2] * q;
|
|
123
|
+
return Be(ee(_), ee(he), ee(me));
|
|
124
124
|
}(1.86206786 * D - 1.01125463 * I + 0.14918677 * T, 0.38752654 * D + 0.62144744 * I - 897398e-8 * T, -0.0158415 * D - 0.03412294 * I + 1.04996444 * T);
|
|
125
125
|
}
|
|
126
126
|
static fromXyzInViewingConditions(e, t, o, n) {
|
|
127
|
-
const a = 0.401288 * e + 0.650173 * t - 0.051461 * o, s = -0.250268 * e + 1.204414 * t + 0.045854 * o, i = -2079e-6 * e + 0.048952 * t + 0.953127 * o, m = n.rgbD[0] * a, h = n.rgbD[1] * s, u = n.rgbD[2] * i, k = Math.pow(n.fl * Math.abs(m) / 100, 0.42),
|
|
128
|
-
return new
|
|
127
|
+
const a = 0.401288 * e + 0.650173 * t - 0.051461 * o, s = -0.250268 * e + 1.204414 * t + 0.045854 * o, i = -2079e-6 * e + 0.048952 * t + 0.953127 * o, m = n.rgbD[0] * a, h = n.rgbD[1] * s, u = n.rgbD[2] * i, k = Math.pow(n.fl * Math.abs(m) / 100, 0.42), C = Math.pow(n.fl * Math.abs(h) / 100, 0.42), l = Math.pow(n.fl * Math.abs(u) / 100, 0.42), g = 400 * H(m) * k / (k + 27.13), w = 400 * H(h) * C / (C + 27.13), P = 400 * H(u) * l / (l + 27.13), F = (11 * g + -12 * w + P) / 11, x = (g + w - 2 * P) / 9, A = (20 * g + 20 * w + 21 * P) / 20, b = (40 * g + 20 * w + P) / 20, v = 180 * Math.atan2(x, F) / Math.PI, B = v < 0 ? v + 360 : v >= 360 ? v - 360 : v, D = B * Math.PI / 180, I = b * n.nbb, T = 100 * Math.pow(I / n.aw, n.c * n.z), pe = 4 / n.c * Math.sqrt(T / 100) * (n.aw + 4) * n.fLRoot, z = B < 20.14 ? B + 360 : B, N = 5e4 / 13 * (1 / 4 * (Math.cos(z * Math.PI / 180 + 2) + 3.8)) * n.nc * n.ncb * Math.sqrt(F * F + x * x) / (A + 0.305), q = Math.pow(N, 0.9) * Math.pow(1.64 - Math.pow(0.29, n.n), 0.73), $ = q * Math.sqrt(T / 100), _ = $ * n.fLRoot, he = 50 * Math.sqrt(q * n.c / (n.aw + 4)), me = (1 + 100 * 7e-3) * T / (1 + 7e-3 * T), fe = Math.log(1 + 0.0228 * _) / 0.0228, ge = fe * Math.cos(D), ke = fe * Math.sin(D);
|
|
128
|
+
return new V(B, $, T, pe, _, he, me, ge, ke);
|
|
129
129
|
}
|
|
130
130
|
xyzInViewingConditions(e) {
|
|
131
|
-
const t = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100), o = Math.pow(t / Math.pow(1.64 - Math.pow(0.29, e.n), 0.73), 1 / 0.9), n = this.hue * Math.PI / 180, a = 0.25 * (Math.cos(n + 2) + 3.8), s = e.aw * Math.pow(this.j / 100, 1 / e.c / e.z), i = a * (5e4 / 13) * e.nc * e.ncb, m = s / e.nbb, h = Math.sin(n), u = Math.cos(n), k = 23 * (m + 0.305) * o / (23 * i + 11 * o * u + 108 * o * h),
|
|
131
|
+
const t = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100), o = Math.pow(t / Math.pow(1.64 - Math.pow(0.29, e.n), 0.73), 1 / 0.9), n = this.hue * Math.PI / 180, a = 0.25 * (Math.cos(n + 2) + 3.8), s = e.aw * Math.pow(this.j / 100, 1 / e.c / e.z), i = a * (5e4 / 13) * e.nc * e.ncb, m = s / e.nbb, h = Math.sin(n), u = Math.cos(n), k = 23 * (m + 0.305) * o / (23 * i + 11 * o * u + 108 * o * h), C = k * u, l = k * h, g = (460 * m + 451 * C + 288 * l) / 1403, w = (460 * m - 891 * C - 261 * l) / 1403, P = (460 * m - 220 * C - 6300 * l) / 1403, F = Math.max(0, 27.13 * Math.abs(g) / (400 - Math.abs(g))), x = H(g) * (100 / e.fl) * Math.pow(F, 1 / 0.42), A = Math.max(0, 27.13 * Math.abs(w) / (400 - Math.abs(w))), b = H(w) * (100 / e.fl) * Math.pow(A, 1 / 0.42), v = Math.max(0, 27.13 * Math.abs(P) / (400 - Math.abs(P))), B = H(P) * (100 / e.fl) * Math.pow(v, 1 / 0.42), D = x / e.rgbD[0], I = b / e.rgbD[1], T = B / e.rgbD[2];
|
|
132
132
|
return [1.86206786 * D - 1.01125463 * I + 0.14918677 * T, 0.38752654 * D + 0.62144744 * I - 897398e-8 * T, -0.0158415 * D - 0.03412294 * I + 1.04996444 * T];
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -143,7 +143,7 @@ class p {
|
|
|
143
143
|
}
|
|
144
144
|
static chromaticAdaptation(e) {
|
|
145
145
|
const t = Math.pow(Math.abs(e), 0.42);
|
|
146
|
-
return 400 *
|
|
146
|
+
return 400 * H(e) * t / (t + 27.13);
|
|
147
147
|
}
|
|
148
148
|
static hueOf(e) {
|
|
149
149
|
const t = Fe(e, p.SCALED_DISCOUNT_FROM_LINRGB), o = p.chromaticAdaptation(t[0]), n = p.chromaticAdaptation(t[1]), a = p.chromaticAdaptation(t[2]), s = (11 * o + -12 * n + a) / 11, i = (o + n - 2 * a) / 9;
|
|
@@ -206,7 +206,7 @@ class p {
|
|
|
206
206
|
let m = -1, h = 255;
|
|
207
207
|
n[i] < s[i] ? (m = p.criticalPlaneBelow(p.trueDelinearized(n[i])), h = p.criticalPlaneAbove(p.trueDelinearized(s[i]))) : (m = p.criticalPlaneAbove(p.trueDelinearized(n[i])), h = p.criticalPlaneBelow(p.trueDelinearized(s[i])));
|
|
208
208
|
for (let u = 0; u < 8 && !(Math.abs(h - m) <= 1); u++) {
|
|
209
|
-
const k = Math.floor((m + h) / 2),
|
|
209
|
+
const k = Math.floor((m + h) / 2), C = p.CRITICAL_PLANES[k], l = p.setCoordinate(n, C, s, i), g = p.hueOf(l);
|
|
210
210
|
p.areInCyclicOrder(a, t, g) ? (s = l, h = k) : (n = l, a = g, m = k);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
@@ -214,31 +214,31 @@ class p {
|
|
|
214
214
|
}
|
|
215
215
|
static inverseChromaticAdaptation(e) {
|
|
216
216
|
const t = Math.abs(e), o = Math.max(0, 27.13 * t / (400 - t));
|
|
217
|
-
return
|
|
217
|
+
return H(e) * Math.pow(o, 1 / 0.42);
|
|
218
218
|
}
|
|
219
219
|
static findResultByJ(e, t, o) {
|
|
220
220
|
let n = 11 * Math.sqrt(o);
|
|
221
|
-
const a =
|
|
221
|
+
const a = U.DEFAULT, s = 1 / Math.pow(1.64 - Math.pow(0.29, a.n), 0.73), i = 0.25 * (Math.cos(e + 2) + 3.8) * (5e4 / 13) * a.nc * a.ncb, m = Math.sin(e), h = Math.cos(e);
|
|
222
222
|
for (let u = 0; u < 5; u++) {
|
|
223
|
-
const k = n / 100,
|
|
223
|
+
const k = n / 100, C = t === 0 || n === 0 ? 0 : t / Math.sqrt(k), l = Math.pow(C * s, 1 / 0.9), g = a.aw * Math.pow(k, 1 / a.c / a.z) / a.nbb, w = 23 * (g + 0.305) * l / (23 * i + 11 * l * h + 108 * l * m), P = w * h, F = w * m, x = (460 * g + 451 * P + 288 * F) / 1403, A = (460 * g - 891 * P - 261 * F) / 1403, b = (460 * g - 220 * P - 6300 * F) / 1403, v = Fe([p.inverseChromaticAdaptation(x), p.inverseChromaticAdaptation(A), p.inverseChromaticAdaptation(b)], p.LINRGB_FROM_SCALED_DISCOUNT);
|
|
224
224
|
if (v[0] < 0 || v[1] < 0 || v[2] < 0) return 0;
|
|
225
225
|
const B = p.Y_FROM_LINRGB[0], D = p.Y_FROM_LINRGB[1], I = p.Y_FROM_LINRGB[2], T = B * v[0] + D * v[1] + I * v[2];
|
|
226
226
|
if (T <= 0) return 0;
|
|
227
|
-
if (u === 4 || Math.abs(T - o) < 2e-3) return v[0] > 100.01 || v[1] > 100.01 || v[2] > 100.01 ? 0 :
|
|
227
|
+
if (u === 4 || Math.abs(T - o) < 2e-3) return v[0] > 100.01 || v[1] > 100.01 || v[2] > 100.01 ? 0 : ze(v);
|
|
228
228
|
n -= (T - o) * n / (2 * T);
|
|
229
229
|
}
|
|
230
230
|
return 0;
|
|
231
231
|
}
|
|
232
232
|
static solveToInt(e, t, o) {
|
|
233
233
|
if (t < 1e-4 || o < 1e-4 || o > 99.9999) return function(i) {
|
|
234
|
-
const m =
|
|
235
|
-
return
|
|
234
|
+
const m = ee(K(i));
|
|
235
|
+
return Be(m, m, m);
|
|
236
236
|
}(o);
|
|
237
|
-
const n = (e = Se(e)) / 180 * Math.PI, a =
|
|
238
|
-
return s !== 0 ? s :
|
|
237
|
+
const n = (e = Se(e)) / 180 * Math.PI, a = K(o), s = p.findResultByJ(n, t, a);
|
|
238
|
+
return s !== 0 ? s : ze(p.bisectToLimit(a, n));
|
|
239
239
|
}
|
|
240
240
|
static solveToCam(e, t, o) {
|
|
241
|
-
return
|
|
241
|
+
return V.fromInt(p.solveToInt(e, t, o));
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
p.SCALED_DISCOUNT_FROM_LINRGB = [[0.001200833568784504, 0.002389694492170889, 2795742885861124e-19], [5891086651375999e-19, 0.0029785502573438758, 3270666104008398e-19], [10146692491640572e-20, 5364214359186694e-19, 0.0032979401770712076]], p.LINRGB_FROM_SCALED_DISCOUNT = [[1373.2198709594231, -1100.4251190754821, -7.278681089101213], [-271.815969077903, 559.6580465940733, -32.46047482791194], [1.9622899599665666, -57.173814538844006, 308.7233197812385]], p.Y_FROM_LINRGB = [0.2126, 0.7152, 0.0722], p.CRITICAL_PLANES = [0.015176349177441876, 0.045529047532325624, 0.07588174588720938, 0.10623444424209313, 0.13658714259697685, 0.16693984095186062, 0.19729253930674434, 0.2276452376616281, 0.2579979360165119, 0.28835063437139563, 0.3188300904430532, 0.350925934958123, 0.3848314933096426, 0.42057480301049466, 0.458183274052838, 0.4976837250274023, 0.5391024159806381, 0.5824650784040898, 0.6277969426914107, 0.6751227633498623, 0.7244668422128921, 0.775853049866786, 0.829304845476233, 0.8848452951698498, 0.942497089126609, 1.0022825574869039, 1.0642236851973577, 1.1283421258858297, 1.1946592148522128, 1.2631959812511864, 1.3339731595349034, 1.407011200216447, 1.4823302800086415, 1.5599503113873272, 1.6398909516233677, 1.7221716113234105, 1.8068114625156377, 1.8938294463134073, 1.9832442801866852, 2.075074464868551, 2.1693382909216234, 2.2660538449872063, 2.36523901573795, 2.4669114995532007, 2.5710888059345764, 2.6777882626779785, 2.7870270208169257, 2.898822059350997, 3.0131901897720907, 3.1301480604002863, 3.2497121605402226, 3.3718988244681087, 3.4967242352587946, 3.624204428461639, 3.754355295633311, 3.887192587735158, 4.022731918402185, 4.160988767090289, 4.301978482107941, 4.445716283538092, 4.592217266055746, 4.741496401646282, 4.893568542229298, 5.048448422192488, 5.20615066083972, 5.3666897647573375, 5.5300801301023865, 5.696336044816294, 5.865471690767354, 6.037501145825082, 6.212438385869475, 6.390297286737924, 6.571091626112461, 6.7548350853498045, 6.941541251256611, 7.131223617812143, 7.323895587840543, 7.5195704746346665, 7.7182615035334345, 7.919981813454504, 8.124744458384042, 8.332562408825165, 8.543448553206703, 8.757415699253682, 8.974476575321063, 9.194643831691977, 9.417930041841839, 9.644347703669503, 9.873909240696694, 10.106627003236781, 10.342513269534024, 10.58158024687427, 10.8238400726681, 11.069304815507364, 11.317986476196008, 11.569896988756009, 11.825048221409341, 12.083451977536606, 12.345119996613247, 12.610063955123938, 12.878295467455942, 13.149826086772048, 13.42466730586372, 13.702830557985108, 13.984327217668513, 14.269168601521828, 14.55736596900856, 14.848930523210871, 15.143873411576273, 15.44220572664832, 15.743938506781891, 16.04908273684337, 16.35764934889634, 16.66964922287304, 16.985093187232053, 17.30399201960269, 17.62635644741625, 17.95219714852476, 18.281524751807332, 18.614349837764564, 18.95068293910138, 19.290534541298456, 19.633915083172692, 19.98083495742689, 20.331304511189067, 20.685334046541502, 21.042933821039977, 21.404114048223256, 21.76888489811322, 22.137256497705877, 22.50923893145328, 22.884842241736916, 23.264076429332462, 23.6469514538663, 24.033477234264016, 24.42366364919083, 24.817520537484558, 25.21505769858089, 25.61628489293138, 26.021211842414342, 26.429848230738664, 26.842203703840827, 27.258287870275353, 27.678110301598522, 28.10168053274597, 28.529008062403893, 28.96010235337422, 29.39497283293396, 29.83362889318845, 30.276079891419332, 30.722335150426627, 31.172403958865512, 31.62629557157785, 32.08401920991837, 32.54558406207592, 33.010999283389665, 33.4802739966603, 33.953417292456834, 34.430438229418264, 34.911345834551085, 35.39614910352207, 35.88485700094671, 36.37747846067349, 36.87402238606382, 37.37449765026789, 37.87891309649659, 38.38727753828926, 38.89959975977785, 39.41588851594697, 39.93615253289054, 40.460400508064545, 40.98864111053629, 41.520882981230194, 42.05713473317016, 42.597404951718396, 43.141702194811224, 43.6900349931913, 44.24241185063697, 44.798841244188324, 45.35933162437017, 45.92389141541209, 46.49252901546552, 47.065252796817916, 47.64207110610409, 48.22299226451468, 48.808024568002054, 49.3971762874833, 49.9904556690408, 50.587870934119984, 51.189430279724725, 51.79514187861014, 52.40501387947288, 53.0190544071392, 53.637271562750364, 54.259673423945976, 54.88626804504493, 55.517063457223934, 56.15206766869424, 56.79128866487574, 57.43473440856916, 58.08241284012621, 58.734331877617365, 59.39049941699807, 60.05092333227251, 60.715611475655585, 61.38457167773311, 62.057811747619894, 62.7353394731159, 63.417162620860914, 64.10328893648692, 64.79372614476921, 65.48848194977529, 66.18756403501224, 66.89098006357258, 67.59873767827808, 68.31084450182222, 69.02730813691093, 69.74813616640164, 70.47333615344107, 71.20291564160104, 71.93688215501312, 72.67524319850172, 73.41800625771542, 74.16517879925733, 74.9167682708136, 75.67278210128072, 76.43322770089146, 77.1981124613393, 77.96744375590167, 78.74122893956174, 79.51947534912904, 80.30219030335869, 81.08938110306934, 81.88105503125999, 82.67721935322541, 83.4778813166706, 84.28304815182372, 85.09272707154808, 85.90692527145302, 86.72564993000343, 87.54890820862819, 88.3767072518277, 89.2090541872801, 90.04595612594655, 90.88742016217518, 91.73345337380438, 92.58406282226491, 93.43925555268066, 94.29903859396902, 95.16341895893969, 96.03240364439274, 96.9059996312159, 97.78421388448044, 98.6670533535366, 99.55452497210776];
|
|
@@ -272,19 +272,19 @@ class L {
|
|
|
272
272
|
}
|
|
273
273
|
constructor(e) {
|
|
274
274
|
this.argb = e;
|
|
275
|
-
const t =
|
|
275
|
+
const t = V.fromInt(e);
|
|
276
276
|
this.internalHue = t.hue, this.internalChroma = t.chroma, this.internalTone = Te(e), this.argb = e;
|
|
277
277
|
}
|
|
278
278
|
setInternalState(e) {
|
|
279
|
-
const t =
|
|
279
|
+
const t = V.fromInt(e);
|
|
280
280
|
this.internalHue = t.hue, this.internalChroma = t.chroma, this.internalTone = Te(e), this.argb = e;
|
|
281
281
|
}
|
|
282
282
|
inViewingConditions(e) {
|
|
283
|
-
const t =
|
|
283
|
+
const t = V.fromInt(this.toInt()).xyzInViewingConditions(e), o = V.fromXyzInViewingConditions(t[0], t[1], t[2], U.make());
|
|
284
284
|
return L.from(o.hue, o.chroma, Ie(t[1]));
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
class
|
|
287
|
+
class Oe {
|
|
288
288
|
static harmonize(e, t) {
|
|
289
289
|
const o = L.fromInt(e), n = L.fromInt(t), a = (s = o.hue, i = n.hue, 180 - Math.abs(Math.abs(s - i) - 180));
|
|
290
290
|
var s, i;
|
|
@@ -293,17 +293,17 @@ class Be {
|
|
|
293
293
|
return L.from(h, o.chroma, o.tone).toInt();
|
|
294
294
|
}
|
|
295
295
|
static hctHue(e, t, o) {
|
|
296
|
-
const n =
|
|
296
|
+
const n = Oe.cam16Ucs(e, t, o), a = V.fromInt(n), s = V.fromInt(e);
|
|
297
297
|
return L.from(a.hue, s.chroma, Te(e)).toInt();
|
|
298
298
|
}
|
|
299
299
|
static cam16Ucs(e, t, o) {
|
|
300
|
-
const n =
|
|
301
|
-
return
|
|
300
|
+
const n = V.fromInt(e), a = V.fromInt(t), s = n.jstar, i = n.astar, m = n.bstar, h = s + (a.jstar - s) * o, u = i + (a.astar - i) * o, k = m + (a.bstar - m) * o;
|
|
301
|
+
return V.fromUcs(h, u, k).toInt();
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
class
|
|
304
|
+
class O {
|
|
305
305
|
static ratioOfTones(e, t) {
|
|
306
|
-
return e =
|
|
306
|
+
return e = Pe(0, 100, e), t = Pe(0, 100, t), O.ratioOfYs(K(e), K(t));
|
|
307
307
|
}
|
|
308
308
|
static ratioOfYs(e, t) {
|
|
309
309
|
const o = e > t ? e : t;
|
|
@@ -311,24 +311,24 @@ class V {
|
|
|
311
311
|
}
|
|
312
312
|
static lighter(e, t) {
|
|
313
313
|
if (e < 0 || e > 100) return -1;
|
|
314
|
-
const o =
|
|
314
|
+
const o = K(e), n = t * (o + 5) - 5, a = O.ratioOfYs(n, o), s = Math.abs(a - t);
|
|
315
315
|
if (a < t && s > 0.04) return -1;
|
|
316
316
|
const i = Ie(n) + 0.4;
|
|
317
317
|
return i < 0 || i > 100 ? -1 : i;
|
|
318
318
|
}
|
|
319
319
|
static darker(e, t) {
|
|
320
320
|
if (e < 0 || e > 100) return -1;
|
|
321
|
-
const o =
|
|
321
|
+
const o = K(e), n = (o + 5) / t - 5, a = O.ratioOfYs(o, n), s = Math.abs(a - t);
|
|
322
322
|
if (a < t && s > 0.04) return -1;
|
|
323
323
|
const i = Ie(n) - 0.4;
|
|
324
324
|
return i < 0 || i > 100 ? -1 : i;
|
|
325
325
|
}
|
|
326
326
|
static lighterUnsafe(e, t) {
|
|
327
|
-
const o =
|
|
327
|
+
const o = O.lighter(e, t);
|
|
328
328
|
return o < 0 ? 100 : o;
|
|
329
329
|
}
|
|
330
330
|
static darkerUnsafe(e, t) {
|
|
331
|
-
const o =
|
|
331
|
+
const o = O.darker(e, t);
|
|
332
332
|
return o < 0 ? 0 : o;
|
|
333
333
|
}
|
|
334
334
|
}
|
|
@@ -362,27 +362,27 @@ class d {
|
|
|
362
362
|
getTone(e) {
|
|
363
363
|
const t = e.contrastLevel < 0;
|
|
364
364
|
if (this.toneDeltaPair) {
|
|
365
|
-
const o = this.toneDeltaPair(e), n = o.roleA, a = o.roleB, s = o.delta, i = o.polarity, m = o.stayTogether, h = this.background(e).getTone(e), u = i === "nearer" || i === "lighter" && !e.isDark || i === "darker" && e.isDark, k = u ? n : a,
|
|
366
|
-
let
|
|
367
|
-
const A =
|
|
368
|
-
let b =
|
|
369
|
-
return t && (
|
|
365
|
+
const o = this.toneDeltaPair(e), n = o.roleA, a = o.roleB, s = o.delta, i = o.polarity, m = o.stayTogether, h = this.background(e).getTone(e), u = i === "nearer" || i === "lighter" && !e.isDark || i === "darker" && e.isDark, k = u ? n : a, C = u ? a : n, l = this.name === k.name, g = e.isDark ? 1 : -1, w = k.contrastCurve.get(e.contrastLevel), P = C.contrastCurve.get(e.contrastLevel), F = k.tone(e);
|
|
366
|
+
let x = O.ratioOfTones(h, F) >= w ? F : d.foregroundTone(h, w);
|
|
367
|
+
const A = C.tone(e);
|
|
368
|
+
let b = O.ratioOfTones(h, A) >= P ? A : d.foregroundTone(h, P);
|
|
369
|
+
return t && (x = d.foregroundTone(h, w), b = d.foregroundTone(h, P)), (b - x) * g >= s || (b = Pe(0, 100, x + s * g), (b - x) * g >= s || (x = Pe(0, 100, b - s * g))), 50 <= x && x < 60 ? g > 0 ? (x = 60, b = Math.max(b, x + s * g)) : (x = 49, b = Math.min(b, x + s * g)) : 50 <= b && b < 60 && (m ? g > 0 ? (x = 60, b = Math.max(b, x + s * g)) : (x = 49, b = Math.min(b, x + s * g)) : b = g > 0 ? 60 : 49), l ? x : b;
|
|
370
370
|
}
|
|
371
371
|
{
|
|
372
372
|
let o = this.tone(e);
|
|
373
373
|
if (this.background == null) return o;
|
|
374
374
|
const n = this.background(e).getTone(e), a = this.contrastCurve.get(e.contrastLevel);
|
|
375
|
-
if (
|
|
375
|
+
if (O.ratioOfTones(n, o) >= a || (o = d.foregroundTone(n, a)), t && (o = d.foregroundTone(n, a)), this.isBackground && 50 <= o && o < 60 && (o = O.ratioOfTones(49, n) >= a ? 49 : 60), this.secondBackground) {
|
|
376
376
|
const [s, i] = [this.background, this.secondBackground], [m, h] = [s(e).getTone(e), i(e).getTone(e)], [u, k] = [Math.max(m, h), Math.min(m, h)];
|
|
377
|
-
if (
|
|
378
|
-
const
|
|
379
|
-
return
|
|
377
|
+
if (O.ratioOfTones(u, o) >= a && O.ratioOfTones(k, o) >= a) return o;
|
|
378
|
+
const C = O.lighter(u, a), l = O.darker(k, a), g = [];
|
|
379
|
+
return C !== -1 && g.push(C), l !== -1 && g.push(l), d.tonePrefersLightForeground(m) || d.tonePrefersLightForeground(h) ? C < 0 ? 100 : C : g.length === 1 ? g[0] : l < 0 ? 0 : l;
|
|
380
380
|
}
|
|
381
381
|
return o;
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
static foregroundTone(e, t) {
|
|
385
|
-
const o =
|
|
385
|
+
const o = O.lighterUnsafe(e, t), n = O.darkerUnsafe(e, t), a = O.ratioOfTones(o, e), s = O.ratioOfTones(n, e);
|
|
386
386
|
if (d.tonePrefersLightForeground(e)) {
|
|
387
387
|
const i = Math.abs(a - s) < 0.1 && a < t && s < t;
|
|
388
388
|
return a >= t || a >= s || i ? o : n;
|
|
@@ -408,7 +408,7 @@ class M {
|
|
|
408
408
|
return new M(e.hue, e.chroma, e);
|
|
409
409
|
}
|
|
410
410
|
static fromHueAndChroma(e, t) {
|
|
411
|
-
const o = new
|
|
411
|
+
const o = new lr(e, t).create();
|
|
412
412
|
return new M(e, t, o);
|
|
413
413
|
}
|
|
414
414
|
constructor(e, t, o) {
|
|
@@ -422,7 +422,7 @@ class M {
|
|
|
422
422
|
return L.fromInt(this.tone(e));
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
class
|
|
425
|
+
class lr {
|
|
426
426
|
constructor(e, t) {
|
|
427
427
|
this.hue = e, this.requestedChroma = t, this.chromaCache = /* @__PURE__ */ new Map(), this.maxChromaValue = 200;
|
|
428
428
|
}
|
|
@@ -450,32 +450,32 @@ class f {
|
|
|
450
450
|
this.low = e, this.normal = t, this.medium = o, this.high = n;
|
|
451
451
|
}
|
|
452
452
|
get(e) {
|
|
453
|
-
return e <= -1 ? this.low : e < 0 ?
|
|
453
|
+
return e <= -1 ? this.low : e < 0 ? de(this.low, this.normal, (e - -1) / 1) : e < 0.5 ? de(this.normal, this.medium, (e - 0) / 0.5) : e < 1 ? de(this.medium, this.high, (e - 0.5) / 0.5) : this.high;
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
class
|
|
456
|
+
class R {
|
|
457
457
|
constructor(e, t, o, n, a) {
|
|
458
458
|
this.roleA = e, this.roleB = t, this.delta = o, this.polarity = n, this.stayTogether = a;
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var
|
|
462
|
-
function
|
|
463
|
-
return r.variant ===
|
|
461
|
+
var ye;
|
|
462
|
+
function oe(r) {
|
|
463
|
+
return r.variant === ye.FIDELITY || r.variant === ye.CONTENT;
|
|
464
464
|
}
|
|
465
465
|
function S(r) {
|
|
466
|
-
return r.variant ===
|
|
466
|
+
return r.variant === ye.MONOCHROME;
|
|
467
467
|
}
|
|
468
468
|
(function(r) {
|
|
469
469
|
r[r.MONOCHROME = 0] = "MONOCHROME", r[r.NEUTRAL = 1] = "NEUTRAL", r[r.TONAL_SPOT = 2] = "TONAL_SPOT", r[r.VIBRANT = 3] = "VIBRANT", r[r.EXPRESSIVE = 4] = "EXPRESSIVE", r[r.FIDELITY = 5] = "FIDELITY", r[r.CONTENT = 6] = "CONTENT", r[r.RAINBOW = 7] = "RAINBOW", r[r.FRUIT_SALAD = 8] = "FRUIT_SALAD";
|
|
470
|
-
})(
|
|
470
|
+
})(ye || (ye = {}));
|
|
471
471
|
class c {
|
|
472
472
|
static highestSurface(e) {
|
|
473
473
|
return e.isDark ? c.surfaceBright : c.surfaceDim;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
c.contentAccentToneDelta = 15, c.primaryPaletteKeyColor = d.fromPalette({ name: "primary_palette_key_color", palette: (r) => r.primaryPalette, tone: (r) => r.primaryPalette.keyColor.tone }), c.secondaryPaletteKeyColor = d.fromPalette({ name: "secondary_palette_key_color", palette: (r) => r.secondaryPalette, tone: (r) => r.secondaryPalette.keyColor.tone }), c.tertiaryPaletteKeyColor = d.fromPalette({ name: "tertiary_palette_key_color", palette: (r) => r.tertiaryPalette, tone: (r) => r.tertiaryPalette.keyColor.tone }), c.neutralPaletteKeyColor = d.fromPalette({ name: "neutral_palette_key_color", palette: (r) => r.neutralPalette, tone: (r) => r.neutralPalette.keyColor.tone }), c.neutralVariantPaletteKeyColor = d.fromPalette({ name: "neutral_variant_palette_key_color", palette: (r) => r.neutralVariantPalette, tone: (r) => r.neutralVariantPalette.keyColor.tone }), c.background = d.fromPalette({ name: "background", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? 6 : 98, isBackground: !0 }), c.onBackground = d.fromPalette({ name: "on_background", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? 90 : 10, background: (r) => c.background, contrastCurve: new f(3, 3, 4.5, 7) }), c.surface = d.fromPalette({ name: "surface", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? 6 : 98, isBackground: !0 }), c.surfaceDim = d.fromPalette({ name: "surface_dim", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? 6 : new f(87, 87, 80, 75).get(r.contrastLevel), isBackground: !0 }), c.surfaceBright = d.fromPalette({ name: "surface_bright", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? new f(24, 24, 29, 34).get(r.contrastLevel) : 98, isBackground: !0 }), c.surfaceContainerLowest = d.fromPalette({ name: "surface_container_lowest", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? new f(4, 4, 2, 0).get(r.contrastLevel) : 100, isBackground: !0 }), c.surfaceContainerLow = d.fromPalette({ name: "surface_container_low", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? new f(10, 10, 11, 12).get(r.contrastLevel) : new f(96, 96, 96, 95).get(r.contrastLevel), isBackground: !0 }), c.surfaceContainer = d.fromPalette({ name: "surface_container", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? new f(12, 12, 16, 20).get(r.contrastLevel) : new f(94, 94, 92, 90).get(r.contrastLevel), isBackground: !0 }), c.surfaceContainerHigh = d.fromPalette({ name: "surface_container_high", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? new f(17, 17, 21, 25).get(r.contrastLevel) : new f(92, 92, 88, 85).get(r.contrastLevel), isBackground: !0 }), c.surfaceContainerHighest = d.fromPalette({ name: "surface_container_highest", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? new f(22, 22, 26, 30).get(r.contrastLevel) : new f(90, 90, 84, 80).get(r.contrastLevel), isBackground: !0 }), c.onSurface = d.fromPalette({ name: "on_surface", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? 90 : 10, background: (r) => c.highestSurface(r), contrastCurve: new f(4.5, 7, 11, 21) }), c.surfaceVariant = d.fromPalette({ name: "surface_variant", palette: (r) => r.neutralVariantPalette, tone: (r) => r.isDark ? 30 : 90, isBackground: !0 }), c.onSurfaceVariant = d.fromPalette({ name: "on_surface_variant", palette: (r) => r.neutralVariantPalette, tone: (r) => r.isDark ? 80 : 30, background: (r) => c.highestSurface(r), contrastCurve: new f(3, 4.5, 7, 11) }), c.inverseSurface = d.fromPalette({ name: "inverse_surface", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? 90 : 20 }), c.inverseOnSurface = d.fromPalette({ name: "inverse_on_surface", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? 20 : 95, background: (r) => c.inverseSurface, contrastCurve: new f(4.5, 7, 11, 21) }), c.outline = d.fromPalette({ name: "outline", palette: (r) => r.neutralVariantPalette, tone: (r) => r.isDark ? 60 : 50, background: (r) => c.highestSurface(r), contrastCurve: new f(1.5, 3, 4.5, 7) }), c.outlineVariant = d.fromPalette({ name: "outline_variant", palette: (r) => r.neutralVariantPalette, tone: (r) => r.isDark ? 30 : 80, background: (r) => c.highestSurface(r), contrastCurve: new f(1, 1, 3, 4.5) }), c.shadow = d.fromPalette({ name: "shadow", palette: (r) => r.neutralPalette, tone: (r) => 0 }), c.scrim = d.fromPalette({ name: "scrim", palette: (r) => r.neutralPalette, tone: (r) => 0 }), c.surfaceTint = d.fromPalette({ name: "surface_tint", palette: (r) => r.primaryPalette, tone: (r) => r.isDark ? 80 : 40, isBackground: !0 }), c.primary = d.fromPalette({ name: "primary", palette: (r) => r.primaryPalette, tone: (r) => S(r) ? r.isDark ? 100 : 0 : r.isDark ? 80 : 40, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(3, 4.5, 7, 7), toneDeltaPair: (r) => new
|
|
476
|
+
c.contentAccentToneDelta = 15, c.primaryPaletteKeyColor = d.fromPalette({ name: "primary_palette_key_color", palette: (r) => r.primaryPalette, tone: (r) => r.primaryPalette.keyColor.tone }), c.secondaryPaletteKeyColor = d.fromPalette({ name: "secondary_palette_key_color", palette: (r) => r.secondaryPalette, tone: (r) => r.secondaryPalette.keyColor.tone }), c.tertiaryPaletteKeyColor = d.fromPalette({ name: "tertiary_palette_key_color", palette: (r) => r.tertiaryPalette, tone: (r) => r.tertiaryPalette.keyColor.tone }), c.neutralPaletteKeyColor = d.fromPalette({ name: "neutral_palette_key_color", palette: (r) => r.neutralPalette, tone: (r) => r.neutralPalette.keyColor.tone }), c.neutralVariantPaletteKeyColor = d.fromPalette({ name: "neutral_variant_palette_key_color", palette: (r) => r.neutralVariantPalette, tone: (r) => r.neutralVariantPalette.keyColor.tone }), c.background = d.fromPalette({ name: "background", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? 6 : 98, isBackground: !0 }), c.onBackground = d.fromPalette({ name: "on_background", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? 90 : 10, background: (r) => c.background, contrastCurve: new f(3, 3, 4.5, 7) }), c.surface = d.fromPalette({ name: "surface", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? 6 : 98, isBackground: !0 }), c.surfaceDim = d.fromPalette({ name: "surface_dim", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? 6 : new f(87, 87, 80, 75).get(r.contrastLevel), isBackground: !0 }), c.surfaceBright = d.fromPalette({ name: "surface_bright", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? new f(24, 24, 29, 34).get(r.contrastLevel) : 98, isBackground: !0 }), c.surfaceContainerLowest = d.fromPalette({ name: "surface_container_lowest", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? new f(4, 4, 2, 0).get(r.contrastLevel) : 100, isBackground: !0 }), c.surfaceContainerLow = d.fromPalette({ name: "surface_container_low", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? new f(10, 10, 11, 12).get(r.contrastLevel) : new f(96, 96, 96, 95).get(r.contrastLevel), isBackground: !0 }), c.surfaceContainer = d.fromPalette({ name: "surface_container", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? new f(12, 12, 16, 20).get(r.contrastLevel) : new f(94, 94, 92, 90).get(r.contrastLevel), isBackground: !0 }), c.surfaceContainerHigh = d.fromPalette({ name: "surface_container_high", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? new f(17, 17, 21, 25).get(r.contrastLevel) : new f(92, 92, 88, 85).get(r.contrastLevel), isBackground: !0 }), c.surfaceContainerHighest = d.fromPalette({ name: "surface_container_highest", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? new f(22, 22, 26, 30).get(r.contrastLevel) : new f(90, 90, 84, 80).get(r.contrastLevel), isBackground: !0 }), c.onSurface = d.fromPalette({ name: "on_surface", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? 90 : 10, background: (r) => c.highestSurface(r), contrastCurve: new f(4.5, 7, 11, 21) }), c.surfaceVariant = d.fromPalette({ name: "surface_variant", palette: (r) => r.neutralVariantPalette, tone: (r) => r.isDark ? 30 : 90, isBackground: !0 }), c.onSurfaceVariant = d.fromPalette({ name: "on_surface_variant", palette: (r) => r.neutralVariantPalette, tone: (r) => r.isDark ? 80 : 30, background: (r) => c.highestSurface(r), contrastCurve: new f(3, 4.5, 7, 11) }), c.inverseSurface = d.fromPalette({ name: "inverse_surface", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? 90 : 20 }), c.inverseOnSurface = d.fromPalette({ name: "inverse_on_surface", palette: (r) => r.neutralPalette, tone: (r) => r.isDark ? 20 : 95, background: (r) => c.inverseSurface, contrastCurve: new f(4.5, 7, 11, 21) }), c.outline = d.fromPalette({ name: "outline", palette: (r) => r.neutralVariantPalette, tone: (r) => r.isDark ? 60 : 50, background: (r) => c.highestSurface(r), contrastCurve: new f(1.5, 3, 4.5, 7) }), c.outlineVariant = d.fromPalette({ name: "outline_variant", palette: (r) => r.neutralVariantPalette, tone: (r) => r.isDark ? 30 : 80, background: (r) => c.highestSurface(r), contrastCurve: new f(1, 1, 3, 4.5) }), c.shadow = d.fromPalette({ name: "shadow", palette: (r) => r.neutralPalette, tone: (r) => 0 }), c.scrim = d.fromPalette({ name: "scrim", palette: (r) => r.neutralPalette, tone: (r) => 0 }), c.surfaceTint = d.fromPalette({ name: "surface_tint", palette: (r) => r.primaryPalette, tone: (r) => r.isDark ? 80 : 40, isBackground: !0 }), c.primary = d.fromPalette({ name: "primary", palette: (r) => r.primaryPalette, tone: (r) => S(r) ? r.isDark ? 100 : 0 : r.isDark ? 80 : 40, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(3, 4.5, 7, 7), toneDeltaPair: (r) => new R(c.primaryContainer, c.primary, 10, "nearer", !1) }), c.onPrimary = d.fromPalette({ name: "on_primary", palette: (r) => r.primaryPalette, tone: (r) => S(r) ? r.isDark ? 10 : 90 : r.isDark ? 20 : 100, background: (r) => c.primary, contrastCurve: new f(4.5, 7, 11, 21) }), c.primaryContainer = d.fromPalette({ name: "primary_container", palette: (r) => r.primaryPalette, tone: (r) => oe(r) ? r.sourceColorHct.tone : S(r) ? r.isDark ? 85 : 25 : r.isDark ? 30 : 90, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(1, 1, 3, 4.5), toneDeltaPair: (r) => new R(c.primaryContainer, c.primary, 10, "nearer", !1) }), c.onPrimaryContainer = d.fromPalette({ name: "on_primary_container", palette: (r) => r.primaryPalette, tone: (r) => oe(r) ? d.foregroundTone(c.primaryContainer.tone(r), 4.5) : S(r) ? r.isDark ? 0 : 100 : r.isDark ? 90 : 30, background: (r) => c.primaryContainer, contrastCurve: new f(3, 4.5, 7, 11) }), c.inversePrimary = d.fromPalette({ name: "inverse_primary", palette: (r) => r.primaryPalette, tone: (r) => r.isDark ? 40 : 80, background: (r) => c.inverseSurface, contrastCurve: new f(3, 4.5, 7, 7) }), c.secondary = d.fromPalette({ name: "secondary", palette: (r) => r.secondaryPalette, tone: (r) => r.isDark ? 80 : 40, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(3, 4.5, 7, 7), toneDeltaPair: (r) => new R(c.secondaryContainer, c.secondary, 10, "nearer", !1) }), c.onSecondary = d.fromPalette({ name: "on_secondary", palette: (r) => r.secondaryPalette, tone: (r) => S(r) ? r.isDark ? 10 : 100 : r.isDark ? 20 : 100, background: (r) => c.secondary, contrastCurve: new f(4.5, 7, 11, 21) }), c.secondaryContainer = d.fromPalette({ name: "secondary_container", palette: (r) => r.secondaryPalette, tone: (r) => {
|
|
477
477
|
const e = r.isDark ? 30 : 90;
|
|
478
|
-
return S(r) ? r.isDark ? 30 : 85 :
|
|
478
|
+
return S(r) ? r.isDark ? 30 : 85 : oe(r) ? function(t, o, n, a) {
|
|
479
479
|
let s = n, i = L.from(t, o, n);
|
|
480
480
|
if (i.chroma < o) {
|
|
481
481
|
let m = i.chroma;
|
|
@@ -488,12 +488,12 @@ c.contentAccentToneDelta = 15, c.primaryPaletteKeyColor = d.fromPalette({ name:
|
|
|
488
488
|
}
|
|
489
489
|
return s;
|
|
490
490
|
}(r.secondaryPalette.hue, r.secondaryPalette.chroma, e, !r.isDark) : e;
|
|
491
|
-
}, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(1, 1, 3, 4.5), toneDeltaPair: (r) => new
|
|
491
|
+
}, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(1, 1, 3, 4.5), toneDeltaPair: (r) => new R(c.secondaryContainer, c.secondary, 10, "nearer", !1) }), c.onSecondaryContainer = d.fromPalette({ name: "on_secondary_container", palette: (r) => r.secondaryPalette, tone: (r) => S(r) ? r.isDark ? 90 : 10 : oe(r) ? d.foregroundTone(c.secondaryContainer.tone(r), 4.5) : r.isDark ? 90 : 30, background: (r) => c.secondaryContainer, contrastCurve: new f(3, 4.5, 7, 11) }), c.tertiary = d.fromPalette({ name: "tertiary", palette: (r) => r.tertiaryPalette, tone: (r) => S(r) ? r.isDark ? 90 : 25 : r.isDark ? 80 : 40, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(3, 4.5, 7, 7), toneDeltaPair: (r) => new R(c.tertiaryContainer, c.tertiary, 10, "nearer", !1) }), c.onTertiary = d.fromPalette({ name: "on_tertiary", palette: (r) => r.tertiaryPalette, tone: (r) => S(r) ? r.isDark ? 10 : 90 : r.isDark ? 20 : 100, background: (r) => c.tertiary, contrastCurve: new f(4.5, 7, 11, 21) }), c.tertiaryContainer = d.fromPalette({ name: "tertiary_container", palette: (r) => r.tertiaryPalette, tone: (r) => {
|
|
492
492
|
if (S(r)) return r.isDark ? 60 : 49;
|
|
493
|
-
if (!
|
|
493
|
+
if (!oe(r)) return r.isDark ? 30 : 90;
|
|
494
494
|
const e = r.tertiaryPalette.getHct(r.sourceColorHct.tone);
|
|
495
495
|
return Ve.fixIfDisliked(e).tone;
|
|
496
|
-
}, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(1, 1, 3, 4.5), toneDeltaPair: (r) => new
|
|
496
|
+
}, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(1, 1, 3, 4.5), toneDeltaPair: (r) => new R(c.tertiaryContainer, c.tertiary, 10, "nearer", !1) }), c.onTertiaryContainer = d.fromPalette({ name: "on_tertiary_container", palette: (r) => r.tertiaryPalette, tone: (r) => S(r) ? r.isDark ? 0 : 100 : oe(r) ? d.foregroundTone(c.tertiaryContainer.tone(r), 4.5) : r.isDark ? 90 : 30, background: (r) => c.tertiaryContainer, contrastCurve: new f(3, 4.5, 7, 11) }), c.error = d.fromPalette({ name: "error", palette: (r) => r.errorPalette, tone: (r) => r.isDark ? 80 : 40, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(3, 4.5, 7, 7), toneDeltaPair: (r) => new R(c.errorContainer, c.error, 10, "nearer", !1) }), c.onError = d.fromPalette({ name: "on_error", palette: (r) => r.errorPalette, tone: (r) => r.isDark ? 20 : 100, background: (r) => c.error, contrastCurve: new f(4.5, 7, 11, 21) }), c.errorContainer = d.fromPalette({ name: "error_container", palette: (r) => r.errorPalette, tone: (r) => r.isDark ? 30 : 90, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(1, 1, 3, 4.5), toneDeltaPair: (r) => new R(c.errorContainer, c.error, 10, "nearer", !1) }), c.onErrorContainer = d.fromPalette({ name: "on_error_container", palette: (r) => r.errorPalette, tone: (r) => S(r) ? r.isDark ? 90 : 10 : r.isDark ? 90 : 30, background: (r) => c.errorContainer, contrastCurve: new f(3, 4.5, 7, 11) }), c.primaryFixed = d.fromPalette({ name: "primary_fixed", palette: (r) => r.primaryPalette, tone: (r) => S(r) ? 40 : 90, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(1, 1, 3, 4.5), toneDeltaPair: (r) => new R(c.primaryFixed, c.primaryFixedDim, 10, "lighter", !0) }), c.primaryFixedDim = d.fromPalette({ name: "primary_fixed_dim", palette: (r) => r.primaryPalette, tone: (r) => S(r) ? 30 : 80, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(1, 1, 3, 4.5), toneDeltaPair: (r) => new R(c.primaryFixed, c.primaryFixedDim, 10, "lighter", !0) }), c.onPrimaryFixed = d.fromPalette({ name: "on_primary_fixed", palette: (r) => r.primaryPalette, tone: (r) => S(r) ? 100 : 10, background: (r) => c.primaryFixedDim, secondBackground: (r) => c.primaryFixed, contrastCurve: new f(4.5, 7, 11, 21) }), c.onPrimaryFixedVariant = d.fromPalette({ name: "on_primary_fixed_variant", palette: (r) => r.primaryPalette, tone: (r) => S(r) ? 90 : 30, background: (r) => c.primaryFixedDim, secondBackground: (r) => c.primaryFixed, contrastCurve: new f(3, 4.5, 7, 11) }), c.secondaryFixed = d.fromPalette({ name: "secondary_fixed", palette: (r) => r.secondaryPalette, tone: (r) => S(r) ? 80 : 90, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(1, 1, 3, 4.5), toneDeltaPair: (r) => new R(c.secondaryFixed, c.secondaryFixedDim, 10, "lighter", !0) }), c.secondaryFixedDim = d.fromPalette({ name: "secondary_fixed_dim", palette: (r) => r.secondaryPalette, tone: (r) => S(r) ? 70 : 80, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(1, 1, 3, 4.5), toneDeltaPair: (r) => new R(c.secondaryFixed, c.secondaryFixedDim, 10, "lighter", !0) }), c.onSecondaryFixed = d.fromPalette({ name: "on_secondary_fixed", palette: (r) => r.secondaryPalette, tone: (r) => 10, background: (r) => c.secondaryFixedDim, secondBackground: (r) => c.secondaryFixed, contrastCurve: new f(4.5, 7, 11, 21) }), c.onSecondaryFixedVariant = d.fromPalette({ name: "on_secondary_fixed_variant", palette: (r) => r.secondaryPalette, tone: (r) => S(r) ? 25 : 30, background: (r) => c.secondaryFixedDim, secondBackground: (r) => c.secondaryFixed, contrastCurve: new f(3, 4.5, 7, 11) }), c.tertiaryFixed = d.fromPalette({ name: "tertiary_fixed", palette: (r) => r.tertiaryPalette, tone: (r) => S(r) ? 40 : 90, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(1, 1, 3, 4.5), toneDeltaPair: (r) => new R(c.tertiaryFixed, c.tertiaryFixedDim, 10, "lighter", !0) }), c.tertiaryFixedDim = d.fromPalette({ name: "tertiary_fixed_dim", palette: (r) => r.tertiaryPalette, tone: (r) => S(r) ? 30 : 80, isBackground: !0, background: (r) => c.highestSurface(r), contrastCurve: new f(1, 1, 3, 4.5), toneDeltaPair: (r) => new R(c.tertiaryFixed, c.tertiaryFixedDim, 10, "lighter", !0) }), c.onTertiaryFixed = d.fromPalette({ name: "on_tertiary_fixed", palette: (r) => r.tertiaryPalette, tone: (r) => S(r) ? 100 : 10, background: (r) => c.tertiaryFixedDim, secondBackground: (r) => c.tertiaryFixed, contrastCurve: new f(4.5, 7, 11, 21) }), c.onTertiaryFixedVariant = d.fromPalette({ name: "on_tertiary_fixed_variant", palette: (r) => r.tertiaryPalette, tone: (r) => S(r) ? 90 : 30, background: (r) => c.tertiaryFixedDim, secondBackground: (r) => c.tertiaryFixed, contrastCurve: new f(3, 4.5, 7, 11) });
|
|
497
497
|
class E {
|
|
498
498
|
static of(e) {
|
|
499
499
|
return new E(e, !1);
|
|
@@ -536,7 +536,7 @@ class E {
|
|
|
536
536
|
t ? (this.a1 = M.fromHueAndChroma(n, a), this.a2 = M.fromHueAndChroma(n, a / 3), this.a3 = M.fromHueAndChroma(n + 60, a / 2), this.n1 = M.fromHueAndChroma(n, Math.min(a / 12, 4)), this.n2 = M.fromHueAndChroma(n, Math.min(a / 6, 8))) : (this.a1 = M.fromHueAndChroma(n, Math.max(48, a)), this.a2 = M.fromHueAndChroma(n, 16), this.a3 = M.fromHueAndChroma(n + 60, 24), this.n1 = M.fromHueAndChroma(n, 4), this.n2 = M.fromHueAndChroma(n, 8)), this.error = M.fromHueAndChroma(25, 84);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
class
|
|
539
|
+
class W {
|
|
540
540
|
get primary() {
|
|
541
541
|
return this.props.primary;
|
|
542
542
|
}
|
|
@@ -625,22 +625,22 @@ class K {
|
|
|
625
625
|
return this.props.inversePrimary;
|
|
626
626
|
}
|
|
627
627
|
static light(e) {
|
|
628
|
-
return
|
|
628
|
+
return W.lightFromCorePalette(E.of(e));
|
|
629
629
|
}
|
|
630
630
|
static dark(e) {
|
|
631
|
-
return
|
|
631
|
+
return W.darkFromCorePalette(E.of(e));
|
|
632
632
|
}
|
|
633
633
|
static lightContent(e) {
|
|
634
|
-
return
|
|
634
|
+
return W.lightFromCorePalette(E.contentOf(e));
|
|
635
635
|
}
|
|
636
636
|
static darkContent(e) {
|
|
637
|
-
return
|
|
637
|
+
return W.darkFromCorePalette(E.contentOf(e));
|
|
638
638
|
}
|
|
639
639
|
static lightFromCorePalette(e) {
|
|
640
|
-
return new
|
|
640
|
+
return new W({ primary: e.a1.tone(40), onPrimary: e.a1.tone(100), primaryContainer: e.a1.tone(90), onPrimaryContainer: e.a1.tone(10), secondary: e.a2.tone(40), onSecondary: e.a2.tone(100), secondaryContainer: e.a2.tone(90), onSecondaryContainer: e.a2.tone(10), tertiary: e.a3.tone(40), onTertiary: e.a3.tone(100), tertiaryContainer: e.a3.tone(90), onTertiaryContainer: e.a3.tone(10), error: e.error.tone(40), onError: e.error.tone(100), errorContainer: e.error.tone(90), onErrorContainer: e.error.tone(10), background: e.n1.tone(99), onBackground: e.n1.tone(10), surface: e.n1.tone(99), onSurface: e.n1.tone(10), surfaceVariant: e.n2.tone(90), onSurfaceVariant: e.n2.tone(30), outline: e.n2.tone(50), outlineVariant: e.n2.tone(80), shadow: e.n1.tone(0), scrim: e.n1.tone(0), inverseSurface: e.n1.tone(20), inverseOnSurface: e.n1.tone(95), inversePrimary: e.a1.tone(80) });
|
|
641
641
|
}
|
|
642
642
|
static darkFromCorePalette(e) {
|
|
643
|
-
return new
|
|
643
|
+
return new W({ primary: e.a1.tone(80), onPrimary: e.a1.tone(20), primaryContainer: e.a1.tone(30), onPrimaryContainer: e.a1.tone(90), secondary: e.a2.tone(80), onSecondary: e.a2.tone(20), secondaryContainer: e.a2.tone(30), onSecondaryContainer: e.a2.tone(90), tertiary: e.a3.tone(80), onTertiary: e.a3.tone(20), tertiaryContainer: e.a3.tone(30), onTertiaryContainer: e.a3.tone(90), error: e.error.tone(80), onError: e.error.tone(20), errorContainer: e.error.tone(30), onErrorContainer: e.error.tone(80), background: e.n1.tone(10), onBackground: e.n1.tone(90), surface: e.n1.tone(10), onSurface: e.n1.tone(90), surfaceVariant: e.n2.tone(30), onSurfaceVariant: e.n2.tone(80), outline: e.n2.tone(60), outlineVariant: e.n2.tone(30), shadow: e.n1.tone(0), scrim: e.n1.tone(0), inverseSurface: e.n1.tone(90), inverseOnSurface: e.n1.tone(20), inversePrimary: e.a1.tone(40) });
|
|
644
644
|
}
|
|
645
645
|
constructor(e) {
|
|
646
646
|
this.props = e;
|
|
@@ -649,7 +649,7 @@ class K {
|
|
|
649
649
|
return { ...this.props };
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function G(r) {
|
|
653
653
|
const e = (r = r.replace("#", "")).length === 3, t = r.length === 6, o = r.length === 8;
|
|
654
654
|
if (!e && !t && !o) throw new Error("unexpected hex " + r);
|
|
655
655
|
let n = 0, a = 0, s = 0;
|
|
@@ -658,60 +658,60 @@ function X(r) {
|
|
|
658
658
|
function J(r) {
|
|
659
659
|
return parseInt(r, 16);
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function hr(r, e = []) {
|
|
662
662
|
const t = E.of(r);
|
|
663
|
-
return { source: r, schemes: { light:
|
|
663
|
+
return { source: r, schemes: { light: W.light(r), dark: W.dark(r) }, palettes: { primary: t.a1, secondary: t.a2, tertiary: t.a3, neutral: t.n1, neutralVariant: t.n2, error: t.error }, customColors: e.map((o) => function(n, a) {
|
|
664
664
|
let s = a.value;
|
|
665
665
|
const i = s, m = n;
|
|
666
|
-
a.blend && (s =
|
|
666
|
+
a.blend && (s = Oe.harmonize(i, m));
|
|
667
667
|
const h = E.of(s), u = h.a1;
|
|
668
668
|
return { color: a, value: s, light: { color: u.tone(40), onColor: u.tone(100), colorContainer: u.tone(90), onColorContainer: u.tone(10) }, dark: { color: u.tone(80), onColor: u.tone(20), colorContainer: u.tone(30), onColorContainer: u.tone(90) } };
|
|
669
669
|
}(r, o)) };
|
|
670
670
|
}
|
|
671
671
|
function y(r) {
|
|
672
672
|
return function(e) {
|
|
673
|
-
const t = qe(e), o =
|
|
673
|
+
const t = qe(e), o = Je(e), n = Ye(e), a = [t.toString(16), o.toString(16), n.toString(16)];
|
|
674
674
|
for (const [s, i] of a.entries()) i.length === 1 && (a[s] = "0" + i);
|
|
675
675
|
return "#" + a.join("");
|
|
676
676
|
}(r);
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function Y(r) {
|
|
679
679
|
const e = L.fromInt(r), t = M.fromHueAndChroma(e.hue, e.chroma);
|
|
680
680
|
return { 0: y(t.tone(0)), 10: y(t.tone(10)), 20: y(t.tone(20)), 30: y(t.tone(30)), 40: y(t.tone(40)), 50: y(t.tone(50)), 60: y(t.tone(60)), 70: y(t.tone(70)), 80: y(t.tone(80)), 90: y(t.tone(90)), 95: y(t.tone(95)), 99: y(t.tone(99)), 100: y(t.tone(100)) };
|
|
681
681
|
}
|
|
682
|
-
function
|
|
683
|
-
const o = e ? r.schemes.dark : r.schemes.light, n = M.fromHueAndChroma(r.palettes.primary.hue, r.palettes.primary.chroma), a = M.fromHueAndChroma(r.palettes.secondary.hue, r.palettes.secondary.chroma), s = M.fromHueAndChroma(r.palettes.tertiary.hue, r.palettes.tertiary.chroma), i = M.fromHueAndChroma(r.palettes.neutral.hue, r.palettes.neutral.chroma), m = M.fromHueAndChroma(r.palettes.neutralVariant.hue, r.palettes.neutralVariant.chroma), h = M.fromHueAndChroma(r.palettes.error.hue, r.palettes.error.chroma), u =
|
|
684
|
-
return { sys: { color: { scrim: y(o.scrim), outline: y(m.tone(l.outline)), outlineVariant: y(m.tone(l.outlineVariant)), shadow: y(i.tone(l.shadow)), surface: { default: y(i.tone(l.surface)), dim: y(i.tone(l.surfaceDim)), bright: y(i.tone(l.surfaceBright)), container: y(i.tone(l.surfaceContainer)), containerLow: y(i.tone(l.surfaceContainerLow)), containerLowest: y(i.tone(l.surfaceContainerLowest)), containerHigh: y(i.tone(l.surfaceContainerHigh)), containerHighest: y(i.tone(l.surfaceContainerHighest)), on: y(i.tone(l.onSurface)), onVariant: y(m.tone(l.onSurfaceVariant)), tint: y(n.tone(l.surfaceTint)), inverse: y(i.tone(l.inverseSurface)), inverseOn: y(i.tone(l.inverseOnSurface)), low: y(i.tone(l.surfaceContainerLow)), high: y(i.tone(l.surfaceContainerHigh)), highest: y(i.tone(l.surfaceContainerHighest)), lowest: y(i.tone(l.surfaceContainerLowest)) }, primary: { default: y(n.tone(l.primary)), on: y(n.tone(l.onPrimary)), container: y(n.tone(l.primaryContainer)), onContainer: y(n.tone(l.onPrimaryContainer)), fixed: y(n.tone(l.primaryFixed)), fixedDim: y(n.tone(l.primaryFixedDim)), onFixed: y(n.tone(l.onPrimaryFixed)), onFixedVariant: y(n.tone(l.onPrimaryFixedVariant)), inverse: y(n.tone(l.inversePrimary)) }, secondary: { default: y(a.tone(l.secondary)), on: y(a.tone(l.onSecondary)), container: y(a.tone(l.secondaryContainer)), onContainer: y(a.tone(l.onSecondaryContainer)), fixed: y(a.tone(l.secondaryFixed)), fixedDim: y(a.tone(l.secondaryFixedDim)), onFixed: y(a.tone(l.onSecondaryFixed)), onFixedVariant: y(a.tone(l.onSecondaryFixedVariant)) }, tertiary: { default: y(s.tone(l.tertiary)), on: y(s.tone(l.onTertiary)), container: y(s.tone(l.tertiaryContainer)), onContainer: y(s.tone(l.onTertiaryContainer)), fixed: y(s.tone(l.tertiaryFixed)), fixedDim: y(s.tone(l.tertiaryFixedDim)), onFixed: y(s.tone(l.onTertiaryFixed)), onFixedVariant: y(s.tone(l.onTertiaryFixedVariant)) }, error: { default: y(h.tone(l.error)), on: y(h.tone(l.onError)), container: y(h.tone(l.errorContainer)), onContainer: y(h.tone(l.onErrorContainer)) }, success: { default: u[e ? "80" : "40"], on: u[e ? "20" : "100"], container: u[e ? "30" : "90"], onContainer: u[e ? "90" : "10"] }, warning: { default: k[e ? "80" : "40"], on: k[e ? "20" : "100"], container: k[e ? "30" : "90"], onContainer: k[e ? "90" : "10"] }, info: { default:
|
|
682
|
+
function mr(r, e = !1, t) {
|
|
683
|
+
const o = e ? r.schemes.dark : r.schemes.light, n = M.fromHueAndChroma(r.palettes.primary.hue, r.palettes.primary.chroma), a = M.fromHueAndChroma(r.palettes.secondary.hue, r.palettes.secondary.chroma), s = M.fromHueAndChroma(r.palettes.tertiary.hue, r.palettes.tertiary.chroma), i = M.fromHueAndChroma(r.palettes.neutral.hue, r.palettes.neutral.chroma), m = M.fromHueAndChroma(r.palettes.neutralVariant.hue, r.palettes.neutralVariant.chroma), h = M.fromHueAndChroma(r.palettes.error.hue, r.palettes.error.chroma), u = Y(t?.success ? t.success : G("#00C853")), k = Y(t?.warning ? t.warning : G("#FFD600")), C = Y(t?.info ? t.info : G("#2979FF")), l = { primary: e ? 80 : 40, onPrimary: e ? 20 : 100, primaryContainer: e ? 30 : 90, onPrimaryContainer: e ? 90 : 10, primaryFixed: 90, primaryFixedDim: 80, onPrimaryFixed: 10, onPrimaryFixedVariant: 30, inversePrimary: e ? 40 : 80, secondary: e ? 80 : 40, onSecondary: e ? 20 : 100, secondaryContainer: e ? 30 : 90, onSecondaryContainer: e ? 90 : 10, secondaryFixed: 90, secondaryFixedDim: 80, onSecondaryFixed: 10, onSecondaryFixedVariant: 30, tertiary: e ? 80 : 40, onTertiary: e ? 20 : 100, tertiaryContainer: e ? 30 : 90, onTertiaryContainer: e ? 90 : 10, tertiaryFixed: 90, tertiaryFixedDim: 80, onTertiaryFixed: 10, onTertiaryFixedVariant: 30, error: e ? 80 : 40, onError: e ? 20 : 100, errorContainer: e ? 30 : 90, onErrorContainer: e ? 90 : 10, surface: e ? 6 : 98, surfaceDim: e ? 6 : 87, surfaceBright: e ? 24 : 98, surfaceContainerLowest: e ? 4 : 100, surfaceContainerLow: e ? 10 : 96, surfaceContainer: e ? 12 : 94, surfaceContainerHigh: e ? 17 : 92, surfaceContainerHighest: e ? 22 : 90, onSurface: e ? 90 : 10, onSurfaceVariant: e ? 80 : 30, surfaceTint: e ? 80 : 40, inverseSurface: e ? 90 : 20, inverseOnSurface: e ? 20 : 95, outline: e ? 60 : 50, outlineVariant: e ? 30 : 80, shadow: 0 };
|
|
684
|
+
return { sys: { color: { scrim: y(o.scrim), outline: y(m.tone(l.outline)), outlineVariant: y(m.tone(l.outlineVariant)), shadow: y(i.tone(l.shadow)), surface: { default: y(i.tone(l.surface)), dim: y(i.tone(l.surfaceDim)), bright: y(i.tone(l.surfaceBright)), container: y(i.tone(l.surfaceContainer)), containerLow: y(i.tone(l.surfaceContainerLow)), containerLowest: y(i.tone(l.surfaceContainerLowest)), containerHigh: y(i.tone(l.surfaceContainerHigh)), containerHighest: y(i.tone(l.surfaceContainerHighest)), on: y(i.tone(l.onSurface)), onVariant: y(m.tone(l.onSurfaceVariant)), tint: y(n.tone(l.surfaceTint)), inverse: y(i.tone(l.inverseSurface)), inverseOn: y(i.tone(l.inverseOnSurface)), low: y(i.tone(l.surfaceContainerLow)), high: y(i.tone(l.surfaceContainerHigh)), highest: y(i.tone(l.surfaceContainerHighest)), lowest: y(i.tone(l.surfaceContainerLowest)) }, primary: { default: y(n.tone(l.primary)), on: y(n.tone(l.onPrimary)), container: y(n.tone(l.primaryContainer)), onContainer: y(n.tone(l.onPrimaryContainer)), fixed: y(n.tone(l.primaryFixed)), fixedDim: y(n.tone(l.primaryFixedDim)), onFixed: y(n.tone(l.onPrimaryFixed)), onFixedVariant: y(n.tone(l.onPrimaryFixedVariant)), inverse: y(n.tone(l.inversePrimary)) }, secondary: { default: y(a.tone(l.secondary)), on: y(a.tone(l.onSecondary)), container: y(a.tone(l.secondaryContainer)), onContainer: y(a.tone(l.onSecondaryContainer)), fixed: y(a.tone(l.secondaryFixed)), fixedDim: y(a.tone(l.secondaryFixedDim)), onFixed: y(a.tone(l.onSecondaryFixed)), onFixedVariant: y(a.tone(l.onSecondaryFixedVariant)) }, tertiary: { default: y(s.tone(l.tertiary)), on: y(s.tone(l.onTertiary)), container: y(s.tone(l.tertiaryContainer)), onContainer: y(s.tone(l.onTertiaryContainer)), fixed: y(s.tone(l.tertiaryFixed)), fixedDim: y(s.tone(l.tertiaryFixedDim)), onFixed: y(s.tone(l.onTertiaryFixed)), onFixedVariant: y(s.tone(l.onTertiaryFixedVariant)) }, error: { default: y(h.tone(l.error)), on: y(h.tone(l.onError)), container: y(h.tone(l.errorContainer)), onContainer: y(h.tone(l.onErrorContainer)) }, success: { default: u[e ? "80" : "40"], on: u[e ? "20" : "100"], container: u[e ? "30" : "90"], onContainer: u[e ? "90" : "10"] }, warning: { default: k[e ? "80" : "40"], on: k[e ? "20" : "100"], container: k[e ? "30" : "90"], onContainer: k[e ? "90" : "10"] }, info: { default: C[e ? "80" : "40"], on: C[e ? "20" : "100"], container: C[e ? "30" : "90"], onContainer: C[e ? "90" : "10"] } }, typography: { display: { large: "display-large", medium: "display-medium", small: "display-small" }, headline: { large: "headline-large", medium: "headline-medium", small: "headline-small" }, title: { large: "title-large", medium: "title-medium", small: "title-small" }, body: { large: "body-large", medium: "body-medium", small: "body-small" }, label: { large: "label-large", medium: "label-medium", small: "label-small" } }, shape: { corner: { none: "0", extraSmall: "4px", small: "8px", medium: "12px", large: "16px", extraLarge: "28px", full: "9999px" } }, elevation: { 0: "0 0 0 0 rgba(0, 0, 0, 0)", 1: `0px 1px 2px rgba(0, 0, 0, ${e ? "0.3" : "0.15"}), 0px 1px 3px 1px rgba(0, 0, 0, ${e ? "0.15" : "0.1"})`, 2: `0px 1px 2px rgba(0, 0, 0, ${e ? "0.3" : "0.15"}), 0px 2px 6px 2px rgba(0, 0, 0, ${e ? "0.15" : "0.1"})`, 3: `0px 1px 3px rgba(0, 0, 0, ${e ? "0.3" : "0.15"}), 0px 4px 8px 3px rgba(0, 0, 0, ${e ? "0.15" : "0.1"})`, 4: `0px 2px 3px rgba(0, 0, 0, ${e ? "0.3" : "0.15"}), 0px 6px 10px 4px rgba(0, 0, 0, ${e ? "0.15" : "0.1"})`, 5: `0px 4px 4px rgba(0, 0, 0, ${e ? "0.3" : "0.15"}), 0px 8px 12px 6px rgba(0, 0, 0, ${e ? "0.15" : "0.1"})` }, motion: { easing: { emphasized: "cubic-bezier(0.2, 0.0, 0, 1.0)", emphasizedDecelerate: "cubic-bezier(0.05, 0.7, 0.1, 1.0)", emphasizedAccelerate: "cubic-bezier(0.3, 0.0, 0.8, 0.15)", standard: "cubic-bezier(0.2, 0.0, 0, 1.0)", standardDecelerate: "cubic-bezier(0, 0, 0, 1)", standardAccelerate: "cubic-bezier(0.3, 0, 1, 1)", legacy: "cubic-bezier(0.4, 0, 0.2, 1)", linear: "linear" }, duration: { short1: "50ms", short2: "100ms", short3: "150ms", short4: "200ms", medium1: "250ms", medium2: "300ms", medium3: "350ms", medium4: "400ms", long1: "450ms", long2: "500ms", long3: "550ms", long4: "600ms", extraLong1: "700ms", extraLong2: "800ms", extraLong3: "900ms", extraLong4: "1000ms" } }, state: { opacity: { hover: "0.08", focus: "0.12", pressed: "0.12", dragged: "0.16", disabled: "0.38", disabledContainer: "0.12" } }, spacing: { 0: "0", 1: "4px", 2: "8px", 3: "12px", 4: "16px", 5: "20px", 6: "24px", 7: "28px", 8: "32px", 9: "36px", 10: "40px", 11: "44px", 12: "48px" }, outline: { 1: "1px" } }, ref: { palette: { primary: Y(n.tone(40)), secondary: Y(a.tone(40)), tertiary: Y(s.tone(40)), neutral: Y(i.tone(40)), neutralVariant: Y(m.tone(40)), error: Y(h.tone(40)) } } };
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function Ir(r, e) {
|
|
687
687
|
const t = M.fromHueAndChroma(r, e);
|
|
688
688
|
return { cLowest: t.tone(100), cLow: t.tone(96), c: t.tone(94), cHigh: t.tone(92), cHighest: t.tone(90), sDim: t.tone(87), s: t.tone(98), sBright: t.tone(100) };
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function Lr(r, e) {
|
|
691
691
|
const t = M.fromHueAndChroma(r, e);
|
|
692
692
|
return { cLowest: t.tone(4), cLow: t.tone(10), c: t.tone(12), cHigh: t.tone(17), cHighest: t.tone(22), sDim: t.tone(6), s: t.tone(6), sBright: t.tone(24) };
|
|
693
693
|
}
|
|
694
|
-
const
|
|
694
|
+
const j = er({ scheme: "auto", color: "#6200ee" }, "local", "schmancy-theme-settings");
|
|
695
695
|
class se {
|
|
696
696
|
constructor() {
|
|
697
|
-
this._theme$ = new
|
|
697
|
+
this._theme$ = new Me({}), this._themeComponent$ = new Me(null), this._fullscreen$ = new Me(!1), this.scheme$ = j.$.pipe(re((e) => e.scheme), Z(), te(1)), this.color$ = j.$.pipe(re((e) => e.color), Z(), te(1)), this.theme$ = this._theme$.asObservable().pipe(Z((e, t) => JSON.stringify(e) === JSON.stringify(t)), te(1)), this.themeComponent$ = this._themeComponent$.asObservable().pipe(Z(), te(1)), this.fullscreen$ = this._fullscreen$.asObservable().pipe(Z(), te(1)), this.resolvedScheme$ = this.scheme$.pipe(xe((e) => {
|
|
698
698
|
if (e === "auto") {
|
|
699
699
|
const t = window.matchMedia("(prefers-color-scheme: dark)");
|
|
700
|
-
return new
|
|
700
|
+
return new je((o) => {
|
|
701
701
|
const n = (a) => {
|
|
702
702
|
o.next(a.matches ? "dark" : "light");
|
|
703
703
|
};
|
|
704
704
|
return t.addEventListener("change", n), o.next(t.matches ? "dark" : "light"), () => t.removeEventListener("change", n);
|
|
705
705
|
});
|
|
706
706
|
}
|
|
707
|
-
return
|
|
708
|
-
}),
|
|
707
|
+
return be(e);
|
|
708
|
+
}), Z(), te(1)), this.discoverTheme();
|
|
709
709
|
}
|
|
710
710
|
get scheme() {
|
|
711
|
-
return
|
|
711
|
+
return j.value.scheme;
|
|
712
712
|
}
|
|
713
713
|
get color() {
|
|
714
|
-
return
|
|
714
|
+
return j.value.color;
|
|
715
715
|
}
|
|
716
716
|
get theme() {
|
|
717
717
|
return this._theme$.getValue();
|
|
@@ -723,31 +723,31 @@ class se {
|
|
|
723
723
|
return this._fullscreen$.getValue();
|
|
724
724
|
}
|
|
725
725
|
discoverTheme() {
|
|
726
|
-
return
|
|
726
|
+
return ve(window, De).pipe(le($e(100)), re((e) => e.detail.theme), Re(null), ue((e) => {
|
|
727
727
|
e && this.registerThemeComponent(e);
|
|
728
|
-
})).pipe(
|
|
728
|
+
})).pipe(ue(() => {
|
|
729
729
|
window.dispatchEvent(new CustomEvent(Ue, { bubbles: !0, composed: !0 }));
|
|
730
|
-
}),
|
|
730
|
+
}), xe(() => ve(window, De).pipe(le($e(100)), re((e) => e.detail.theme), Re(null), ue((e) => {
|
|
731
731
|
e && this.registerThemeComponent(e);
|
|
732
732
|
}))));
|
|
733
733
|
}
|
|
734
734
|
registerThemeComponent(e) {
|
|
735
|
-
this._themeComponent$.next(e),
|
|
735
|
+
this._themeComponent$.next(e), j.set({ scheme: e.scheme, color: e.color }), this._theme$.next(e.theme);
|
|
736
736
|
}
|
|
737
737
|
updateTheme(e) {
|
|
738
738
|
const t = {};
|
|
739
|
-
e.scheme !== void 0 && (t.scheme = e.scheme), e.color !== void 0 && (t.color = e.color), Object.keys(t).length > 0 &&
|
|
739
|
+
e.scheme !== void 0 && (t.scheme = e.scheme), e.color !== void 0 && (t.color = e.color), Object.keys(t).length > 0 && j.set(t), e.theme !== void 0 && this._theme$.next(e.theme);
|
|
740
740
|
}
|
|
741
741
|
setScheme(e) {
|
|
742
742
|
const t = this.themeComponent;
|
|
743
|
-
t ? (t.scheme = e,
|
|
743
|
+
t ? (t.scheme = e, j.set({ scheme: e })) : j.set({ scheme: e });
|
|
744
744
|
}
|
|
745
745
|
setColor(e) {
|
|
746
746
|
const t = this.themeComponent;
|
|
747
|
-
t ? (t.color = e,
|
|
747
|
+
t ? (t.color = e, j.set({ color: e })) : j.set({ color: e });
|
|
748
748
|
}
|
|
749
749
|
isDarkMode() {
|
|
750
|
-
return this.resolvedScheme$.pipe(
|
|
750
|
+
return this.resolvedScheme$.pipe(re((e) => e === "dark"));
|
|
751
751
|
}
|
|
752
752
|
toggleScheme() {
|
|
753
753
|
const e = this.scheme, t = e === "dark" ? "light" : e === "light" ? "dark" : "light";
|
|
@@ -762,7 +762,7 @@ class se {
|
|
|
762
762
|
return "";
|
|
763
763
|
}
|
|
764
764
|
watchCSSVariable(e) {
|
|
765
|
-
return this.theme$.pipe(
|
|
765
|
+
return this.theme$.pipe(re(() => this.getCSSVariable(e)), Z());
|
|
766
766
|
}
|
|
767
767
|
setFullscreen(e) {
|
|
768
768
|
this._fullscreen$.next(e), window.dispatchEvent(new CustomEvent("fullscreen", { detail: e, bubbles: !0, composed: !0 }));
|
|
@@ -777,44 +777,40 @@ class se {
|
|
|
777
777
|
return se.instance || (se.instance = new se()), se.instance;
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
|
-
const
|
|
781
|
-
var yr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor,
|
|
780
|
+
const ur = se.getInstance(), Br = ur, dr = rr("theme-context");
|
|
781
|
+
var yr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, ne = (r, e, t, o) => {
|
|
782
782
|
for (var n, a = o > 1 ? void 0 : o ? pr(e, t) : e, s = r.length - 1; s >= 0; s--) (n = r[s]) && (a = (o ? n(e, t, a) : n(a)) || a);
|
|
783
783
|
return o && a && yr(e, t, a), a;
|
|
784
784
|
};
|
|
785
|
-
const fr = tr(':host,:root{--md-ref-typeface-brand: "Josefin Sans", sans-serif;--md-ref-typeface-plain: "Josefin Sans", sans-serif;--md-sys-color-primary: var(--schmancy-sys-color-primary-default);--md-sys-color-secondary: var(--schmancy-sys-color-secondary-default);--default-font-family: var(--schmancy-font-family);--border-style: solid;--spacing: 4px;--color-scrim: var(--schmancy-sys-color-scrim);--color-outline: var(--schmancy-sys-color-outline);--color-outlineVariant: var(--schmancy-sys-color-outlineVariant);--color-surface-default: var(--schmancy-sys-color-surface-default);--color-surface-dim: var(--schmancy-sys-color-surface-dim);--color-surface-bright: var(--schmancy-sys-color-surface-bright);--color-surface-container: var(--schmancy-sys-color-surface-container);--color-surface-low: var(--schmancy-sys-color-surface-low);--color-surface-high: var(--schmancy-sys-color-surface-high);--color-surface-highest: var(--schmancy-sys-color-surface-highest);--color-surface-lowest: var(--schmancy-sys-color-surface-lowest);--color-surface-on: var(--schmancy-sys-color-surface-on);--color-surface-onVariant: var(--schmancy-sys-color-surface-onVariant);--color-primary-default: var(--schmancy-sys-color-primary-default);--color-primary-on: var(--schmancy-sys-color-primary-on);--color-primary-container: var(--schmancy-sys-color-primary-container);--color-primary-onContainer: var(--schmancy-sys-color-primary-onContainer);--color-secondary-default: var(--schmancy-sys-color-secondary-default);--color-secondary-on: var(--schmancy-sys-color-secondary-on);--color-secondary-container: var(--schmancy-sys-color-secondary-container);--color-secondary-onContainer: var(--schmancy-sys-color-secondary-onContainer);--color-tertiary-default: var(--schmancy-sys-color-tertiary-default);--color-tertiary-on: var(--schmancy-sys-color-tertiary-on);--color-tertiary-container: var(--schmancy-sys-color-tertiary-container);--color-tertiary-onContainer: var(--schmancy-sys-color-tertiary-onContainer);--color-error-default: var(--schmancy-sys-color-error-default);--color-error-on: var(--schmancy-sys-color-error-on);--color-error-container: var(--schmancy-sys-color-error-container);--color-error-onContainer: var(--schmancy-sys-color-error-onContainer);--color-success-default: var(--schmancy-sys-color-success-default);--color-success-on: var(--schmancy-sys-color-success-on);--color-success-container: var(--schmancy-sys-color-success-container);--color-success-onContainer: var(--schmancy-sys-color-success-onContainer);--shadow-xs: var(--schmancy-sys-elevation-0);--shadow-sm: var(--schmancy-sys-elevation-1);--shadow-md: var(--schmancy-sys-elevation-2);--shadow-lg: var(--schmancy-sys-elevation-3);--shadow-xl: var(--schmancy-sys-elevation-4);--shadow-2xl: var(--schmancy-sys-elevation-5);--outline-1: var(--schmancy-sys-outline-1);--font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50: oklch(.971 .013 17.38);--color-red-100: oklch(.936 .032 17.717);--color-red-200: oklch(.885 .062 18.334);--color-red-300: oklch(.808 .114 19.571);--color-red-400: oklch(.704 .191 22.216);--color-red-500: oklch(.637 .237 25.331);--color-red-600: oklch(.577 .245 27.325);--color-red-700: oklch(.505 .213 27.518);--color-red-800: oklch(.444 .177 26.899);--color-red-900: oklch(.396 .141 25.723);--color-red-950: oklch(.258 .092 26.042);--color-orange-50: oklch(.98 .016 73.684);--color-orange-100: oklch(.954 .038 75.164);--color-orange-200: oklch(.901 .076 70.697);--color-orange-300: oklch(.837 .128 66.29);--color-orange-400: oklch(.75 .183 55.934);--color-orange-500: oklch(.705 .213 47.604);--color-orange-600: oklch(.646 .222 41.116);--color-orange-700: oklch(.553 .195 38.402);--color-orange-800: oklch(.47 .157 37.304);--color-orange-900: oklch(.408 .123 38.172);--color-orange-950: oklch(.266 .079 36.259);--color-amber-50: oklch(.987 .022 95.277);--color-amber-100: oklch(.962 .059 95.617);--color-amber-200: oklch(.924 .12 95.746);--color-amber-300: oklch(.879 .169 91.605);--color-amber-400: oklch(.828 .189 84.429);--color-amber-500: oklch(.769 .188 70.08);--color-amber-600: oklch(.666 .179 58.318);--color-amber-700: oklch(.555 .163 48.998);--color-amber-800: oklch(.473 .137 46.201);--color-amber-900: oklch(.414 .112 45.904);--color-amber-950: oklch(.279 .077 45.635);--color-yellow-50: oklch(.987 .026 102.212);--color-yellow-100: oklch(.973 .071 103.193);--color-yellow-200: oklch(.945 .129 101.54);--color-yellow-300: oklch(.905 .182 98.111);--color-yellow-400: oklch(.852 .199 91.936);--color-yellow-500: oklch(.795 .184 86.047);--color-yellow-600: oklch(.681 .162 75.834);--color-yellow-700: oklch(.554 .135 66.442);--color-yellow-800: oklch(.476 .114 61.907);--color-yellow-900: oklch(.421 .095 57.708);--color-yellow-950: oklch(.286 .066 53.813);--color-lime-50: oklch(.986 .031 120.757);--color-lime-100: oklch(.967 .067 122.328);--color-lime-200: oklch(.938 .127 124.321);--color-lime-300: oklch(.897 .196 126.665);--color-lime-400: oklch(.841 .238 128.85);--color-lime-500: oklch(.768 .233 130.85);--color-lime-600: oklch(.648 .2 131.684);--color-lime-700: oklch(.532 .157 131.589);--color-lime-800: oklch(.453 .124 130.933);--color-lime-900: oklch(.405 .101 131.063);--color-lime-950: oklch(.274 .072 132.109);--color-green-50: oklch(.982 .018 155.826);--color-green-100: oklch(.962 .044 156.743);--color-green-200: oklch(.925 .084 155.995);--color-green-300: oklch(.871 .15 154.449);--color-green-400: oklch(.792 .209 151.711);--color-green-500: oklch(.723 .219 149.579);--color-green-600: oklch(.627 .194 149.214);--color-green-700: oklch(.527 .154 150.069);--color-green-800: oklch(.448 .119 151.328);--color-green-900: oklch(.393 .095 152.535);--color-green-950: oklch(.266 .065 152.934);--color-emerald-50: oklch(.979 .021 166.113);--color-emerald-100: oklch(.95 .052 163.051);--color-emerald-200: oklch(.905 .093 164.15);--color-emerald-300: oklch(.845 .143 164.978);--color-emerald-400: oklch(.765 .177 163.223);--color-emerald-500: oklch(.696 .17 162.48);--color-emerald-600: oklch(.596 .145 163.225);--color-emerald-700: oklch(.508 .118 165.612);--color-emerald-800: oklch(.432 .095 166.913);--color-emerald-900: oklch(.378 .077 168.94);--color-emerald-950: oklch(.262 .051 172.552);--color-teal-50: oklch(.984 .014 180.72);--color-teal-100: oklch(.953 .051 180.801);--color-teal-200: oklch(.91 .096 180.426);--color-teal-300: oklch(.855 .138 181.071);--color-teal-400: oklch(.777 .152 181.912);--color-teal-500: oklch(.704 .14 182.503);--color-teal-600: oklch(.6 .118 184.704);--color-teal-700: oklch(.511 .096 186.391);--color-teal-800: oklch(.437 .078 188.216);--color-teal-900: oklch(.386 .063 188.416);--color-teal-950: oklch(.277 .046 192.524);--color-cyan-50: oklch(.984 .019 200.873);--color-cyan-100: oklch(.956 .045 203.388);--color-cyan-200: oklch(.917 .08 205.041);--color-cyan-300: oklch(.865 .127 207.078);--color-cyan-400: oklch(.789 .154 211.53);--color-cyan-500: oklch(.715 .143 215.221);--color-cyan-600: oklch(.609 .126 221.723);--color-cyan-700: oklch(.52 .105 223.128);--color-cyan-800: oklch(.45 .085 224.283);--color-cyan-900: oklch(.398 .07 227.392);--color-cyan-950: oklch(.302 .056 229.695);--color-sky-50: oklch(.977 .013 236.62);--color-sky-100: oklch(.951 .026 236.824);--color-sky-200: oklch(.901 .058 230.902);--color-sky-300: oklch(.828 .111 230.318);--color-sky-400: oklch(.746 .16 232.661);--color-sky-500: oklch(.685 .169 237.323);--color-sky-600: oklch(.588 .158 241.966);--color-sky-700: oklch(.5 .134 242.749);--color-sky-800: oklch(.443 .11 240.79);--color-sky-900: oklch(.391 .09 240.876);--color-sky-950: oklch(.293 .066 243.157);--color-blue-50: oklch(.97 .014 254.604);--color-blue-100: oklch(.932 .032 255.585);--color-blue-200: oklch(.882 .059 254.128);--color-blue-300: oklch(.809 .105 251.813);--color-blue-400: oklch(.707 .165 254.624);--color-blue-500: oklch(.623 .214 259.815);--color-blue-600: oklch(.546 .245 262.881);--color-blue-700: oklch(.488 .243 264.376);--color-blue-800: oklch(.424 .199 265.638);--color-blue-900: oklch(.379 .146 265.522);--color-blue-950: oklch(.282 .091 267.935);--color-indigo-50: oklch(.962 .018 272.314);--color-indigo-100: oklch(.93 .034 272.788);--color-indigo-200: oklch(.87 .065 274.039);--color-indigo-300: oklch(.785 .115 274.713);--color-indigo-400: oklch(.673 .182 276.935);--color-indigo-500: oklch(.585 .233 277.117);--color-indigo-600: oklch(.511 .262 276.966);--color-indigo-700: oklch(.457 .24 277.023);--color-indigo-800: oklch(.398 .195 277.366);--color-indigo-900: oklch(.359 .144 278.697);--color-indigo-950: oklch(.257 .09 281.288);--color-violet-50: oklch(.969 .016 293.756);--color-violet-100: oklch(.943 .029 294.588);--color-violet-200: oklch(.894 .057 293.283);--color-violet-300: oklch(.811 .111 293.571);--color-violet-400: oklch(.702 .183 293.541);--color-violet-500: oklch(.606 .25 292.717);--color-violet-600: oklch(.541 .281 293.009);--color-violet-700: oklch(.491 .27 292.581);--color-violet-800: oklch(.432 .232 292.759);--color-violet-900: oklch(.38 .189 293.745);--color-violet-950: oklch(.283 .141 291.089);--color-purple-50: oklch(.977 .014 308.299);--color-purple-100: oklch(.946 .033 307.174);--color-purple-200: oklch(.902 .063 306.703);--color-purple-300: oklch(.827 .119 306.383);--color-purple-400: oklch(.714 .203 305.504);--color-purple-500: oklch(.627 .265 303.9);--color-purple-600: oklch(.558 .288 302.321);--color-purple-700: oklch(.496 .265 301.924);--color-purple-800: oklch(.438 .218 303.724);--color-purple-900: oklch(.381 .176 304.987);--color-purple-950: oklch(.291 .149 302.717);--color-fuchsia-50: oklch(.977 .017 320.058);--color-fuchsia-100: oklch(.952 .037 318.852);--color-fuchsia-200: oklch(.903 .076 319.62);--color-fuchsia-300: oklch(.833 .145 321.434);--color-fuchsia-400: oklch(.74 .238 322.16);--color-fuchsia-500: oklch(.667 .295 322.15);--color-fuchsia-600: oklch(.591 .293 322.896);--color-fuchsia-700: oklch(.518 .253 323.949);--color-fuchsia-800: oklch(.452 .211 324.591);--color-fuchsia-900: oklch(.401 .17 325.612);--color-fuchsia-950: oklch(.293 .136 325.661);--color-pink-50: oklch(.971 .014 343.198);--color-pink-100: oklch(.948 .028 342.258);--color-pink-200: oklch(.899 .061 343.231);--color-pink-300: oklch(.823 .12 346.018);--color-pink-400: oklch(.718 .202 349.761);--color-pink-500: oklch(.656 .241 354.308);--color-pink-600: oklch(.592 .249 .584);--color-pink-700: oklch(.525 .223 3.958);--color-pink-800: oklch(.459 .187 3.815);--color-pink-900: oklch(.408 .153 2.432);--color-pink-950: oklch(.284 .109 3.907);--color-rose-50: oklch(.969 .015 12.422);--color-rose-100: oklch(.941 .03 12.58);--color-rose-200: oklch(.892 .058 10.001);--color-rose-300: oklch(.81 .117 11.638);--color-rose-400: oklch(.712 .194 13.428);--color-rose-500: oklch(.645 .246 16.439);--color-rose-600: oklch(.586 .253 17.585);--color-rose-700: oklch(.514 .222 16.935);--color-rose-800: oklch(.455 .188 13.697);--color-rose-900: oklch(.41 .159 10.272);--color-rose-950: oklch(.271 .105 12.094);--color-slate-50: oklch(.984 .003 247.858);--color-slate-100: oklch(.968 .007 247.896);--color-slate-200: oklch(.929 .013 255.508);--color-slate-300: oklch(.869 .022 252.894);--color-slate-400: oklch(.704 .04 256.788);--color-slate-500: oklch(.554 .046 257.417);--color-slate-600: oklch(.446 .043 257.281);--color-slate-700: oklch(.372 .044 257.287);--color-slate-800: oklch(.279 .041 260.031);--color-slate-900: oklch(.208 .042 265.755);--color-slate-950: oklch(.129 .042 264.695);--color-gray-50: oklch(.985 .002 247.839);--color-gray-100: oklch(.967 .003 264.542);--color-gray-200: oklch(.928 .006 264.531);--color-gray-300: oklch(.872 .01 258.338);--color-gray-400: oklch(.707 .022 261.325);--color-gray-500: oklch(.551 .027 264.364);--color-gray-600: oklch(.446 .03 256.802);--color-gray-700: oklch(.373 .034 259.733);--color-gray-800: oklch(.278 .033 256.848);--color-gray-900: oklch(.21 .034 264.665);--color-gray-950: oklch(.13 .028 261.692);--color-zinc-50: oklch(.985 0 0);--color-zinc-100: oklch(.967 .001 286.375);--color-zinc-200: oklch(.92 .004 286.32);--color-zinc-300: oklch(.871 .006 286.286);--color-zinc-400: oklch(.705 .015 286.067);--color-zinc-500: oklch(.552 .016 285.938);--color-zinc-600: oklch(.442 .017 285.786);--color-zinc-700: oklch(.37 .013 285.805);--color-zinc-800: oklch(.274 .006 286.033);--color-zinc-900: oklch(.21 .006 285.885);--color-zinc-950: oklch(.141 .005 285.823);--color-neutral-50: oklch(.985 0 0);--color-neutral-100: oklch(.97 0 0);--color-neutral-200: oklch(.922 0 0);--color-neutral-300: oklch(.87 0 0);--color-neutral-400: oklch(.708 0 0);--color-neutral-500: oklch(.556 0 0);--color-neutral-600: oklch(.439 0 0);--color-neutral-700: oklch(.371 0 0);--color-neutral-800: oklch(.269 0 0);--color-neutral-900: oklch(.205 0 0);--color-neutral-950: oklch(.145 0 0);--color-stone-50: oklch(.985 .001 106.423);--color-stone-100: oklch(.97 .001 106.424);--color-stone-200: oklch(.923 .003 48.717);--color-stone-300: oklch(.869 .005 56.366);--color-stone-400: oklch(.709 .01 56.259);--color-stone-500: oklch(.553 .013 58.071);--color-stone-600: oklch(.444 .011 73.639);--color-stone-700: oklch(.374 .01 67.558);--color-stone-800: oklch(.268 .007 34.298);--color-stone-900: oklch(.216 .006 56.043);--color-stone-950: oklch(.147 .004 49.25);--color-black: #000;--color-white: #fff;--spacing: .25rem;--breakpoint-sm: 40rem;--breakpoint-md: 48rem;--breakpoint-lg: 64rem;--breakpoint-xl: 80rem;--breakpoint-2xl: 96rem;--container-3xs: 16rem;--container-2xs: 18rem;--container-xs: 20rem;--container-sm: 24rem;--container-md: 28rem;--container-lg: 32rem;--container-xl: 36rem;--container-2xl: 42rem;--container-3xl: 48rem;--container-4xl: 56rem;--container-5xl: 64rem;--container-6xl: 72rem;--container-7xl: 80rem;--text-xs: .75rem;--text-xs--line-height: calc(1 / .75);--text-sm: .875rem;--text-sm--line-height: calc(1.25 / .875);--text-base: 1rem;--text-base--line-height: 1.5 ;--text-lg: 1.125rem;--text-lg--line-height: calc(1.75 / 1.125);--text-xl: 1.25rem;--text-xl--line-height: calc(1.75 / 1.25);--text-2xl: 1.5rem;--text-2xl--line-height: calc(2 / 1.5);--text-3xl: 1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl: 2.25rem;--text-4xl--line-height: calc(2.5 / 2.25);--text-5xl: 3rem;--text-5xl--line-height: 1;--text-6xl: 3.75rem;--text-6xl--line-height: 1;--text-7xl: 4.5rem;--text-7xl--line-height: 1;--text-8xl: 6rem;--text-8xl--line-height: 1;--text-9xl: 8rem;--text-9xl--line-height: 1;--font-weight-thin: 100;--font-weight-extralight: 200;--font-weight-light: 300;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--font-weight-extrabold: 800;--font-weight-black: 900;--tracking-tighter: -.05em;--tracking-tight: -.025em;--tracking-normal: 0em;--tracking-wide: .025em;--tracking-wider: .05em;--tracking-widest: .1em;--leading-tight: 1.25;--leading-snug: 1.375;--leading-normal: 1.5;--leading-relaxed: 1.625;--leading-loose: 2;--radius-xs: .125rem;--radius-sm: .25rem;--radius-md: .375rem;--radius-lg: .5rem;--radius-xl: .75rem;--radius-2xl: 1rem;--radius-3xl: 1.5rem;--radius-4xl: 2rem;--shadow-smxs: 0 1px rgb(0 0 0 / .05);--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / .05);--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--shadow-smxl: 0 25px 50px -12px rgb(0 0 0 / .25);--inset-shadow-smxs: inset 0 1px rgb(0 0 0 / .05);--inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / .05);--inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / .05);--drop-shadow-xs: 0 1px 1px rgb(0 0 0 / .05);--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / .15);--drop-shadow-md: 0 3px 3px rgb(0 0 0 / .12);--drop-shadow-lg: 0 4px 4px rgb(0 0 0 / .15);--drop-shadow-xl: 0 9px 7px rgb(0 0 0 / .1);--drop-shadow-smxl: 0 25px 25px rgb(0 0 0 / .15);--blur-xs: 4px;--blur-sm: 8px;--blur-md: 12px;--blur-lg: 16px;--blur-xl: 24px;--blur-2xl: 40px;--blur-3xl: 64px;--perspective-dramatic: 100px;--perspective-near: 300px;--perspective-normal: 500px;--perspective-midrange: 800px;--perspective-distant: 1200px;--aspect-video: 16 / 9;--ease-in: cubic-bezier(.4, 0, 1, 1);--ease-out: cubic-bezier(0, 0, .2, 1);--ease-in-out: cubic-bezier(.4, 0, .2, 1);--animate-spin: spin 1s linear infinite;--animate-ping: ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--animate-bounce: bounce 1s infinite;@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}--md-sys-color-scrim: var(--schmancy-sys-color-scrim);--md-sys-color-outline: var(--schmancy-sys-color-outline);--md-sys-color-outlineVariant: var(--schmancy-sys-color-outlineVariant);--md-sys-color-surface-default: var(--schmancy-sys-color-surface-default);--md-sys-color-surface-dim: var(--schmancy-sys-color-surface-dim);--md-sys-color-surface-bright: var(--schmancy-sys-color-surface-bright);--md-sys-color-surface-container: var(--schmancy-sys-color-surface-container);--md-sys-color-surface-low: var(--schmancy-sys-color-surface-low);--md-sys-color-surface-high: var(--schmancy-sys-color-surface-high);--md-sys-color-surface-highest: var(--schmancy-sys-color-surface-highest);--md-sys-color-surface-lowest: var(--schmancy-sys-color-surface-lowest);--md-sys-color-surface-on: var(--schmancy-sys-color-surface-on);--md-sys-color-on-surface-variant: var(--schmancy-sys-color-surface-onVariant);--md-sys-color-on-secondary-container: var(--schmancy-sys-color-secondary-onContainer);--md-sys-color-primary-default: var(--schmancy-sys-color-primary-default);--md-sys-color-primary-on: var(--schmancy-sys-color-primary-on);--md-sys-color-primary-container: var(--schmancy-sys-color-primary-container);--md-sys-color-primary-onContainer: var(--schmancy-sys-color-primary-onContainer);--md-sys-color-secondary-default: var(--schmancy-sys-color-secondary-default);--md-sys-color-secondary-on: var(--schmancy-sys-color-secondary-on);--md-sys-color-secondary-container: var(--schmancy-sys-color-secondary-container);--md-sys-color-secondary-onContainer: var(--schmancy-sys-color-secondary-onContainer);--md-sys-color-tertiary-default: var(--schmancy-sys-color-tertiary-default);--md-sys-color-tertiary-on: var(--schmancy-sys-color-tertiary-on);--md-sys-color-tertiary-container: var(--schmancy-sys-color-tertiary-container);--md-sys-color-tertiary-onContainer: var(--schmancy-sys-color-tertiary-onContainer);--md-sys-color-error-default: var(--schmancy-sys-color-error-default);--md-sys-color-error-on: var(--schmancy-sys-color-error-on);--md-sys-color-error-container: var(--schmancy-sys-color-error-container);--md-sys-color-error-onContainer: var(--schmancy-sys-color-error-onContainer);--md-sys-color-success-default: var(--schmancy-sys-color-success-default);--md-sys-color-success-on: var(--schmancy-sys-color-success-on);--md-sys-color-success-container: var(--schmancy-sys-color-success-container);--md-sys-color-success-onContainer: var(--schmancy-sys-color-success-onContainer);--md-sys-elevation-0: var(--schmancy-sys-elevation-0);--md-sys-elevation-1: var(--schmancy-sys-elevation-1);--md-sys-elevation-2: var(--schmancy-sys-elevation-2);--md-sys-elevation-3: var(--schmancy-sys-elevation-3);--md-sys-elevation-4: var(--schmancy-sys-elevation-4);--md-sys-elevation-5: var(--schmancy-sys-elevation-5);--md-sys-outline-1: var(--schmancy-sys-outline-1);--md-filter-chip-label-text-color: var(--schmancy-sys-color-surface-on);--md-checkbox-focus-outline-color: var(--schmancy-sys-color-surface-on);--md-checkbox-focus-outline-width: 2px;--md-checkbox-hover-outline-color: var(--schmancy-sys-color-surface-on);--md-checkbox-hover-outline-width: 2px;--md-checkbox-pressed-outline-color: var(--schmancy-sys-color-surface-on);--md-checkbox-pressed-outline-width: 2px;--md-checkbox-disabled-outline-color: var(--schmancy-sys-color-surface-on);--md-checkbox-disabled-outline-width: 2px}'), He = window.matchMedia("(prefers-color-scheme: dark)"), gr = new Ne((r) => {
|
|
786
|
-
const e =
|
|
785
|
+
const fr = nr(':host,:root{--md-ref-typeface-brand: "Josefin Sans", sans-serif;--md-ref-typeface-plain: "Josefin Sans", sans-serif;--md-sys-color-primary: var(--schmancy-sys-color-primary-default);--md-sys-color-secondary: var(--schmancy-sys-color-secondary-default);--default-font-family: var(--schmancy-font-family);--border-style: solid;--spacing: 4px;--color-scrim: var(--schmancy-sys-color-scrim);--color-outline: var(--schmancy-sys-color-outline);--color-outlineVariant: var(--schmancy-sys-color-outlineVariant);--color-surface-default: var(--schmancy-sys-color-surface-default);--color-surface-dim: var(--schmancy-sys-color-surface-dim);--color-surface-bright: var(--schmancy-sys-color-surface-bright);--color-surface-container: var(--schmancy-sys-color-surface-container);--color-surface-low: var(--schmancy-sys-color-surface-low);--color-surface-high: var(--schmancy-sys-color-surface-high);--color-surface-highest: var(--schmancy-sys-color-surface-highest);--color-surface-lowest: var(--schmancy-sys-color-surface-lowest);--color-surface-on: var(--schmancy-sys-color-surface-on);--color-surface-onVariant: var(--schmancy-sys-color-surface-onVariant);--color-primary-default: var(--schmancy-sys-color-primary-default);--color-primary-on: var(--schmancy-sys-color-primary-on);--color-primary-container: var(--schmancy-sys-color-primary-container);--color-primary-onContainer: var(--schmancy-sys-color-primary-onContainer);--color-secondary-default: var(--schmancy-sys-color-secondary-default);--color-secondary-on: var(--schmancy-sys-color-secondary-on);--color-secondary-container: var(--schmancy-sys-color-secondary-container);--color-secondary-onContainer: var(--schmancy-sys-color-secondary-onContainer);--color-tertiary-default: var(--schmancy-sys-color-tertiary-default);--color-tertiary-on: var(--schmancy-sys-color-tertiary-on);--color-tertiary-container: var(--schmancy-sys-color-tertiary-container);--color-tertiary-onContainer: var(--schmancy-sys-color-tertiary-onContainer);--color-error-default: var(--schmancy-sys-color-error-default);--color-error-on: var(--schmancy-sys-color-error-on);--color-error-container: var(--schmancy-sys-color-error-container);--color-error-onContainer: var(--schmancy-sys-color-error-onContainer);--color-success-default: var(--schmancy-sys-color-success-default);--color-success-on: var(--schmancy-sys-color-success-on);--color-success-container: var(--schmancy-sys-color-success-container);--color-success-onContainer: var(--schmancy-sys-color-success-onContainer);--shadow-xs: var(--schmancy-sys-elevation-0);--shadow-sm: var(--schmancy-sys-elevation-1);--shadow-md: var(--schmancy-sys-elevation-2);--shadow-lg: var(--schmancy-sys-elevation-3);--shadow-xl: var(--schmancy-sys-elevation-4);--shadow-2xl: var(--schmancy-sys-elevation-5);--outline-1: var(--schmancy-sys-outline-1);--font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50: oklch(.971 .013 17.38);--color-red-100: oklch(.936 .032 17.717);--color-red-200: oklch(.885 .062 18.334);--color-red-300: oklch(.808 .114 19.571);--color-red-400: oklch(.704 .191 22.216);--color-red-500: oklch(.637 .237 25.331);--color-red-600: oklch(.577 .245 27.325);--color-red-700: oklch(.505 .213 27.518);--color-red-800: oklch(.444 .177 26.899);--color-red-900: oklch(.396 .141 25.723);--color-red-950: oklch(.258 .092 26.042);--color-orange-50: oklch(.98 .016 73.684);--color-orange-100: oklch(.954 .038 75.164);--color-orange-200: oklch(.901 .076 70.697);--color-orange-300: oklch(.837 .128 66.29);--color-orange-400: oklch(.75 .183 55.934);--color-orange-500: oklch(.705 .213 47.604);--color-orange-600: oklch(.646 .222 41.116);--color-orange-700: oklch(.553 .195 38.402);--color-orange-800: oklch(.47 .157 37.304);--color-orange-900: oklch(.408 .123 38.172);--color-orange-950: oklch(.266 .079 36.259);--color-amber-50: oklch(.987 .022 95.277);--color-amber-100: oklch(.962 .059 95.617);--color-amber-200: oklch(.924 .12 95.746);--color-amber-300: oklch(.879 .169 91.605);--color-amber-400: oklch(.828 .189 84.429);--color-amber-500: oklch(.769 .188 70.08);--color-amber-600: oklch(.666 .179 58.318);--color-amber-700: oklch(.555 .163 48.998);--color-amber-800: oklch(.473 .137 46.201);--color-amber-900: oklch(.414 .112 45.904);--color-amber-950: oklch(.279 .077 45.635);--color-yellow-50: oklch(.987 .026 102.212);--color-yellow-100: oklch(.973 .071 103.193);--color-yellow-200: oklch(.945 .129 101.54);--color-yellow-300: oklch(.905 .182 98.111);--color-yellow-400: oklch(.852 .199 91.936);--color-yellow-500: oklch(.795 .184 86.047);--color-yellow-600: oklch(.681 .162 75.834);--color-yellow-700: oklch(.554 .135 66.442);--color-yellow-800: oklch(.476 .114 61.907);--color-yellow-900: oklch(.421 .095 57.708);--color-yellow-950: oklch(.286 .066 53.813);--color-lime-50: oklch(.986 .031 120.757);--color-lime-100: oklch(.967 .067 122.328);--color-lime-200: oklch(.938 .127 124.321);--color-lime-300: oklch(.897 .196 126.665);--color-lime-400: oklch(.841 .238 128.85);--color-lime-500: oklch(.768 .233 130.85);--color-lime-600: oklch(.648 .2 131.684);--color-lime-700: oklch(.532 .157 131.589);--color-lime-800: oklch(.453 .124 130.933);--color-lime-900: oklch(.405 .101 131.063);--color-lime-950: oklch(.274 .072 132.109);--color-green-50: oklch(.982 .018 155.826);--color-green-100: oklch(.962 .044 156.743);--color-green-200: oklch(.925 .084 155.995);--color-green-300: oklch(.871 .15 154.449);--color-green-400: oklch(.792 .209 151.711);--color-green-500: oklch(.723 .219 149.579);--color-green-600: oklch(.627 .194 149.214);--color-green-700: oklch(.527 .154 150.069);--color-green-800: oklch(.448 .119 151.328);--color-green-900: oklch(.393 .095 152.535);--color-green-950: oklch(.266 .065 152.934);--color-emerald-50: oklch(.979 .021 166.113);--color-emerald-100: oklch(.95 .052 163.051);--color-emerald-200: oklch(.905 .093 164.15);--color-emerald-300: oklch(.845 .143 164.978);--color-emerald-400: oklch(.765 .177 163.223);--color-emerald-500: oklch(.696 .17 162.48);--color-emerald-600: oklch(.596 .145 163.225);--color-emerald-700: oklch(.508 .118 165.612);--color-emerald-800: oklch(.432 .095 166.913);--color-emerald-900: oklch(.378 .077 168.94);--color-emerald-950: oklch(.262 .051 172.552);--color-teal-50: oklch(.984 .014 180.72);--color-teal-100: oklch(.953 .051 180.801);--color-teal-200: oklch(.91 .096 180.426);--color-teal-300: oklch(.855 .138 181.071);--color-teal-400: oklch(.777 .152 181.912);--color-teal-500: oklch(.704 .14 182.503);--color-teal-600: oklch(.6 .118 184.704);--color-teal-700: oklch(.511 .096 186.391);--color-teal-800: oklch(.437 .078 188.216);--color-teal-900: oklch(.386 .063 188.416);--color-teal-950: oklch(.277 .046 192.524);--color-cyan-50: oklch(.984 .019 200.873);--color-cyan-100: oklch(.956 .045 203.388);--color-cyan-200: oklch(.917 .08 205.041);--color-cyan-300: oklch(.865 .127 207.078);--color-cyan-400: oklch(.789 .154 211.53);--color-cyan-500: oklch(.715 .143 215.221);--color-cyan-600: oklch(.609 .126 221.723);--color-cyan-700: oklch(.52 .105 223.128);--color-cyan-800: oklch(.45 .085 224.283);--color-cyan-900: oklch(.398 .07 227.392);--color-cyan-950: oklch(.302 .056 229.695);--color-sky-50: oklch(.977 .013 236.62);--color-sky-100: oklch(.951 .026 236.824);--color-sky-200: oklch(.901 .058 230.902);--color-sky-300: oklch(.828 .111 230.318);--color-sky-400: oklch(.746 .16 232.661);--color-sky-500: oklch(.685 .169 237.323);--color-sky-600: oklch(.588 .158 241.966);--color-sky-700: oklch(.5 .134 242.749);--color-sky-800: oklch(.443 .11 240.79);--color-sky-900: oklch(.391 .09 240.876);--color-sky-950: oklch(.293 .066 243.157);--color-blue-50: oklch(.97 .014 254.604);--color-blue-100: oklch(.932 .032 255.585);--color-blue-200: oklch(.882 .059 254.128);--color-blue-300: oklch(.809 .105 251.813);--color-blue-400: oklch(.707 .165 254.624);--color-blue-500: oklch(.623 .214 259.815);--color-blue-600: oklch(.546 .245 262.881);--color-blue-700: oklch(.488 .243 264.376);--color-blue-800: oklch(.424 .199 265.638);--color-blue-900: oklch(.379 .146 265.522);--color-blue-950: oklch(.282 .091 267.935);--color-indigo-50: oklch(.962 .018 272.314);--color-indigo-100: oklch(.93 .034 272.788);--color-indigo-200: oklch(.87 .065 274.039);--color-indigo-300: oklch(.785 .115 274.713);--color-indigo-400: oklch(.673 .182 276.935);--color-indigo-500: oklch(.585 .233 277.117);--color-indigo-600: oklch(.511 .262 276.966);--color-indigo-700: oklch(.457 .24 277.023);--color-indigo-800: oklch(.398 .195 277.366);--color-indigo-900: oklch(.359 .144 278.697);--color-indigo-950: oklch(.257 .09 281.288);--color-violet-50: oklch(.969 .016 293.756);--color-violet-100: oklch(.943 .029 294.588);--color-violet-200: oklch(.894 .057 293.283);--color-violet-300: oklch(.811 .111 293.571);--color-violet-400: oklch(.702 .183 293.541);--color-violet-500: oklch(.606 .25 292.717);--color-violet-600: oklch(.541 .281 293.009);--color-violet-700: oklch(.491 .27 292.581);--color-violet-800: oklch(.432 .232 292.759);--color-violet-900: oklch(.38 .189 293.745);--color-violet-950: oklch(.283 .141 291.089);--color-purple-50: oklch(.977 .014 308.299);--color-purple-100: oklch(.946 .033 307.174);--color-purple-200: oklch(.902 .063 306.703);--color-purple-300: oklch(.827 .119 306.383);--color-purple-400: oklch(.714 .203 305.504);--color-purple-500: oklch(.627 .265 303.9);--color-purple-600: oklch(.558 .288 302.321);--color-purple-700: oklch(.496 .265 301.924);--color-purple-800: oklch(.438 .218 303.724);--color-purple-900: oklch(.381 .176 304.987);--color-purple-950: oklch(.291 .149 302.717);--color-fuchsia-50: oklch(.977 .017 320.058);--color-fuchsia-100: oklch(.952 .037 318.852);--color-fuchsia-200: oklch(.903 .076 319.62);--color-fuchsia-300: oklch(.833 .145 321.434);--color-fuchsia-400: oklch(.74 .238 322.16);--color-fuchsia-500: oklch(.667 .295 322.15);--color-fuchsia-600: oklch(.591 .293 322.896);--color-fuchsia-700: oklch(.518 .253 323.949);--color-fuchsia-800: oklch(.452 .211 324.591);--color-fuchsia-900: oklch(.401 .17 325.612);--color-fuchsia-950: oklch(.293 .136 325.661);--color-pink-50: oklch(.971 .014 343.198);--color-pink-100: oklch(.948 .028 342.258);--color-pink-200: oklch(.899 .061 343.231);--color-pink-300: oklch(.823 .12 346.018);--color-pink-400: oklch(.718 .202 349.761);--color-pink-500: oklch(.656 .241 354.308);--color-pink-600: oklch(.592 .249 .584);--color-pink-700: oklch(.525 .223 3.958);--color-pink-800: oklch(.459 .187 3.815);--color-pink-900: oklch(.408 .153 2.432);--color-pink-950: oklch(.284 .109 3.907);--color-rose-50: oklch(.969 .015 12.422);--color-rose-100: oklch(.941 .03 12.58);--color-rose-200: oklch(.892 .058 10.001);--color-rose-300: oklch(.81 .117 11.638);--color-rose-400: oklch(.712 .194 13.428);--color-rose-500: oklch(.645 .246 16.439);--color-rose-600: oklch(.586 .253 17.585);--color-rose-700: oklch(.514 .222 16.935);--color-rose-800: oklch(.455 .188 13.697);--color-rose-900: oklch(.41 .159 10.272);--color-rose-950: oklch(.271 .105 12.094);--color-slate-50: oklch(.984 .003 247.858);--color-slate-100: oklch(.968 .007 247.896);--color-slate-200: oklch(.929 .013 255.508);--color-slate-300: oklch(.869 .022 252.894);--color-slate-400: oklch(.704 .04 256.788);--color-slate-500: oklch(.554 .046 257.417);--color-slate-600: oklch(.446 .043 257.281);--color-slate-700: oklch(.372 .044 257.287);--color-slate-800: oklch(.279 .041 260.031);--color-slate-900: oklch(.208 .042 265.755);--color-slate-950: oklch(.129 .042 264.695);--color-gray-50: oklch(.985 .002 247.839);--color-gray-100: oklch(.967 .003 264.542);--color-gray-200: oklch(.928 .006 264.531);--color-gray-300: oklch(.872 .01 258.338);--color-gray-400: oklch(.707 .022 261.325);--color-gray-500: oklch(.551 .027 264.364);--color-gray-600: oklch(.446 .03 256.802);--color-gray-700: oklch(.373 .034 259.733);--color-gray-800: oklch(.278 .033 256.848);--color-gray-900: oklch(.21 .034 264.665);--color-gray-950: oklch(.13 .028 261.692);--color-zinc-50: oklch(.985 0 0);--color-zinc-100: oklch(.967 .001 286.375);--color-zinc-200: oklch(.92 .004 286.32);--color-zinc-300: oklch(.871 .006 286.286);--color-zinc-400: oklch(.705 .015 286.067);--color-zinc-500: oklch(.552 .016 285.938);--color-zinc-600: oklch(.442 .017 285.786);--color-zinc-700: oklch(.37 .013 285.805);--color-zinc-800: oklch(.274 .006 286.033);--color-zinc-900: oklch(.21 .006 285.885);--color-zinc-950: oklch(.141 .005 285.823);--color-neutral-50: oklch(.985 0 0);--color-neutral-100: oklch(.97 0 0);--color-neutral-200: oklch(.922 0 0);--color-neutral-300: oklch(.87 0 0);--color-neutral-400: oklch(.708 0 0);--color-neutral-500: oklch(.556 0 0);--color-neutral-600: oklch(.439 0 0);--color-neutral-700: oklch(.371 0 0);--color-neutral-800: oklch(.269 0 0);--color-neutral-900: oklch(.205 0 0);--color-neutral-950: oklch(.145 0 0);--color-stone-50: oklch(.985 .001 106.423);--color-stone-100: oklch(.97 .001 106.424);--color-stone-200: oklch(.923 .003 48.717);--color-stone-300: oklch(.869 .005 56.366);--color-stone-400: oklch(.709 .01 56.259);--color-stone-500: oklch(.553 .013 58.071);--color-stone-600: oklch(.444 .011 73.639);--color-stone-700: oklch(.374 .01 67.558);--color-stone-800: oklch(.268 .007 34.298);--color-stone-900: oklch(.216 .006 56.043);--color-stone-950: oklch(.147 .004 49.25);--color-black: #000;--color-white: #fff;--spacing: .25rem;--breakpoint-sm: 40rem;--breakpoint-md: 48rem;--breakpoint-lg: 64rem;--breakpoint-xl: 80rem;--breakpoint-2xl: 96rem;--container-3xs: 16rem;--container-2xs: 18rem;--container-xs: 20rem;--container-sm: 24rem;--container-md: 28rem;--container-lg: 32rem;--container-xl: 36rem;--container-2xl: 42rem;--container-3xl: 48rem;--container-4xl: 56rem;--container-5xl: 64rem;--container-6xl: 72rem;--container-7xl: 80rem;--text-xs: .75rem;--text-xs--line-height: calc(1 / .75);--text-sm: .875rem;--text-sm--line-height: calc(1.25 / .875);--text-base: 1rem;--text-base--line-height: 1.5 ;--text-lg: 1.125rem;--text-lg--line-height: calc(1.75 / 1.125);--text-xl: 1.25rem;--text-xl--line-height: calc(1.75 / 1.25);--text-2xl: 1.5rem;--text-2xl--line-height: calc(2 / 1.5);--text-3xl: 1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl: 2.25rem;--text-4xl--line-height: calc(2.5 / 2.25);--text-5xl: 3rem;--text-5xl--line-height: 1;--text-6xl: 3.75rem;--text-6xl--line-height: 1;--text-7xl: 4.5rem;--text-7xl--line-height: 1;--text-8xl: 6rem;--text-8xl--line-height: 1;--text-9xl: 8rem;--text-9xl--line-height: 1;--font-weight-thin: 100;--font-weight-extralight: 200;--font-weight-light: 300;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--font-weight-extrabold: 800;--font-weight-black: 900;--tracking-tighter: -.05em;--tracking-tight: -.025em;--tracking-normal: 0em;--tracking-wide: .025em;--tracking-wider: .05em;--tracking-widest: .1em;--leading-tight: 1.25;--leading-snug: 1.375;--leading-normal: 1.5;--leading-relaxed: 1.625;--leading-loose: 2;--radius-xs: .125rem;--radius-sm: .25rem;--radius-md: .375rem;--radius-lg: .5rem;--radius-xl: .75rem;--radius-2xl: 1rem;--radius-3xl: 1.5rem;--radius-4xl: 2rem;--shadow-smxs: 0 1px rgb(0 0 0 / .05);--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / .05);--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--shadow-smxl: 0 25px 50px -12px rgb(0 0 0 / .25);--inset-shadow-smxs: inset 0 1px rgb(0 0 0 / .05);--inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / .05);--inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / .05);--drop-shadow-xs: 0 1px 1px rgb(0 0 0 / .05);--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / .15);--drop-shadow-md: 0 3px 3px rgb(0 0 0 / .12);--drop-shadow-lg: 0 4px 4px rgb(0 0 0 / .15);--drop-shadow-xl: 0 9px 7px rgb(0 0 0 / .1);--drop-shadow-smxl: 0 25px 25px rgb(0 0 0 / .15);--blur-xs: 4px;--blur-sm: 8px;--blur-md: 12px;--blur-lg: 16px;--blur-xl: 24px;--blur-2xl: 40px;--blur-3xl: 64px;--perspective-dramatic: 100px;--perspective-near: 300px;--perspective-normal: 500px;--perspective-midrange: 800px;--perspective-distant: 1200px;--aspect-video: 16 / 9;--ease-in: cubic-bezier(.4, 0, 1, 1);--ease-out: cubic-bezier(0, 0, .2, 1);--ease-in-out: cubic-bezier(.4, 0, .2, 1);--animate-spin: spin 1s linear infinite;--animate-ping: ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--animate-bounce: bounce 1s infinite;@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}--md-sys-color-scrim: var(--schmancy-sys-color-scrim);--md-sys-color-outline: var(--schmancy-sys-color-outline);--md-sys-color-outlineVariant: var(--schmancy-sys-color-outlineVariant);--md-sys-color-surface-default: var(--schmancy-sys-color-surface-default);--md-sys-color-surface-dim: var(--schmancy-sys-color-surface-dim);--md-sys-color-surface-bright: var(--schmancy-sys-color-surface-bright);--md-sys-color-surface-container: var(--schmancy-sys-color-surface-container);--md-sys-color-surface-low: var(--schmancy-sys-color-surface-low);--md-sys-color-surface-high: var(--schmancy-sys-color-surface-high);--md-sys-color-surface-highest: var(--schmancy-sys-color-surface-highest);--md-sys-color-surface-lowest: var(--schmancy-sys-color-surface-lowest);--md-sys-color-surface-on: var(--schmancy-sys-color-surface-on);--md-sys-color-on-surface-variant: var(--schmancy-sys-color-surface-onVariant);--md-sys-color-on-secondary-container: var(--schmancy-sys-color-secondary-onContainer);--md-sys-color-primary-default: var(--schmancy-sys-color-primary-default);--md-sys-color-primary-on: var(--schmancy-sys-color-primary-on);--md-sys-color-primary-container: var(--schmancy-sys-color-primary-container);--md-sys-color-primary-onContainer: var(--schmancy-sys-color-primary-onContainer);--md-sys-color-secondary-default: var(--schmancy-sys-color-secondary-default);--md-sys-color-secondary-on: var(--schmancy-sys-color-secondary-on);--md-sys-color-secondary-container: var(--schmancy-sys-color-secondary-container);--md-sys-color-secondary-onContainer: var(--schmancy-sys-color-secondary-onContainer);--md-sys-color-tertiary-default: var(--schmancy-sys-color-tertiary-default);--md-sys-color-tertiary-on: var(--schmancy-sys-color-tertiary-on);--md-sys-color-tertiary-container: var(--schmancy-sys-color-tertiary-container);--md-sys-color-tertiary-onContainer: var(--schmancy-sys-color-tertiary-onContainer);--md-sys-color-error-default: var(--schmancy-sys-color-error-default);--md-sys-color-error-on: var(--schmancy-sys-color-error-on);--md-sys-color-error-container: var(--schmancy-sys-color-error-container);--md-sys-color-error-onContainer: var(--schmancy-sys-color-error-onContainer);--md-sys-color-success-default: var(--schmancy-sys-color-success-default);--md-sys-color-success-on: var(--schmancy-sys-color-success-on);--md-sys-color-success-container: var(--schmancy-sys-color-success-container);--md-sys-color-success-onContainer: var(--schmancy-sys-color-success-onContainer);--md-sys-elevation-0: var(--schmancy-sys-elevation-0);--md-sys-elevation-1: var(--schmancy-sys-elevation-1);--md-sys-elevation-2: var(--schmancy-sys-elevation-2);--md-sys-elevation-3: var(--schmancy-sys-elevation-3);--md-sys-elevation-4: var(--schmancy-sys-elevation-4);--md-sys-elevation-5: var(--schmancy-sys-elevation-5);--md-sys-outline-1: var(--schmancy-sys-outline-1);--md-filter-chip-label-text-color: var(--schmancy-sys-color-surface-on);--md-checkbox-focus-outline-color: var(--schmancy-sys-color-surface-on);--md-checkbox-focus-outline-width: 2px;--md-checkbox-hover-outline-color: var(--schmancy-sys-color-surface-on);--md-checkbox-hover-outline-width: 2px;--md-checkbox-pressed-outline-color: var(--schmancy-sys-color-surface-on);--md-checkbox-pressed-outline-width: 2px;--md-checkbox-disabled-outline-color: var(--schmancy-sys-color-surface-on);--md-checkbox-disabled-outline-width: 2px}'), Ne = window.matchMedia("(prefers-color-scheme: dark)"), gr = new je((r) => {
|
|
786
|
+
const e = Ne.matches ? "dark" : "light";
|
|
787
787
|
r.next(e);
|
|
788
|
-
const t =
|
|
788
|
+
const t = ve(Ne, "change").subscribe((o) => {
|
|
789
789
|
const n = o.matches ? "dark" : "light";
|
|
790
790
|
r.next(n);
|
|
791
791
|
});
|
|
792
792
|
return () => t.unsubscribe();
|
|
793
793
|
});
|
|
794
|
-
let
|
|
794
|
+
let Q = class extends or(fr) {
|
|
795
795
|
constructor() {
|
|
796
796
|
super(...arguments), this.scheme = "auto", this.root = !1, this.theme = {};
|
|
797
797
|
}
|
|
798
798
|
connectedCallback() {
|
|
799
799
|
super.connectedCallback();
|
|
800
|
-
const r = this.
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
e || (this.scheme = $.scheme), $.registerThemeComponent(this), or([$.scheme$.pipe(Me((t) => t === "auto" ? gr : _e(t))), $.color$]).pipe(Q((t, o) => t[0] === o[0] && t[1] === o[1]), je(10), ee(([t, o]) => {
|
|
806
|
-
this.scheme = t, this.color = o;
|
|
807
|
-
}), W(this.disconnecting)).subscribe(() => {
|
|
808
|
-
this.registerTheme();
|
|
809
|
-
}), Ce(this, Ue).pipe(W(this.disconnecting)).subscribe((t) => {
|
|
810
|
-
t.stopPropagation(), t.preventDefault(), window.dispatchEvent(new CustomEvent(De, { detail: { theme: this }, bubbles: !0, composed: !0 }));
|
|
800
|
+
const r = this.generateThemeName(), e = sessionStorage.getItem(`schmancy-theme-${r}-color`), t = sessionStorage.getItem(`schmancy-theme-${r}-scheme`);
|
|
801
|
+
this.color || (this.color = e || this.generateRandomColor(), sessionStorage.setItem(`schmancy-theme-${r}-color`, this.color)), !this.hasAttribute("scheme") && t && (this.scheme = t), be(this.scheme).pipe(xe((o) => o === "auto" ? gr : be(o)), le(this.disconnecting)).subscribe((o) => {
|
|
802
|
+
this.scheme = o, this.registerTheme(), sessionStorage.setItem(`schmancy-theme-${r}-scheme`, this.scheme);
|
|
803
|
+
}), ve(this, Ue).pipe(le(this.disconnecting)).subscribe((o) => {
|
|
804
|
+
o.stopPropagation(), o.preventDefault(), window.dispatchEvent(new CustomEvent(De, { detail: { theme: this }, bubbles: !0, composed: !0 }));
|
|
811
805
|
});
|
|
812
806
|
}
|
|
813
807
|
updated(r) {
|
|
814
|
-
super.updated(r)
|
|
808
|
+
super.updated(r);
|
|
809
|
+
const e = this.generateThemeName();
|
|
810
|
+
r.has("color") && (sessionStorage.setItem(`schmancy-theme-${e}-color`, this.color), this.registerTheme()), r.has("scheme") && (sessionStorage.setItem(`schmancy-theme-${e}-scheme`, this.scheme), this.registerTheme()), r.has("theme") && this.registerTheme();
|
|
815
811
|
}
|
|
816
812
|
registerTheme() {
|
|
817
|
-
let r =
|
|
813
|
+
let r = mr(hr(G(typeof this.color == "string" ? this.color : "#6200ee")), this.scheme === "dark", { success: G("#34B334"), warning: G("#FFA726"), info: G("#29B6F6") });
|
|
818
814
|
r = { ...r, ...this.theme }, this.registerThemeValues("schmancy", "", r);
|
|
819
815
|
const e = this.root ? document.body : this.shadowRoot.host, t = (o) => e.style.getPropertyValue(o);
|
|
820
816
|
e.style.setProperty("--schmancy-sys-color-surface-low", t("--schmancy-sys-color-surface-containerLow")), e.style.setProperty("--schmancy-sys-color-surface-high", t("--schmancy-sys-color-surface-containerHigh")), e.style.setProperty("--schmancy-sys-color-surface-highest", t("--schmancy-sys-color-surface-containerHighest")), e.style.setProperty("--schmancy-sys-color-surface-lowest", t("--schmancy-sys-color-surface-containerLowest")), e.style.colorScheme = this.scheme === "dark" ? "dark" : "light";
|
|
@@ -826,32 +822,48 @@ let ae = class extends rr(fr) {
|
|
|
826
822
|
generateRandomColor() {
|
|
827
823
|
return "#" + Math.floor(16777215 * Math.random()).toString(16).padStart(6, "0");
|
|
828
824
|
}
|
|
825
|
+
generateThemeName() {
|
|
826
|
+
if (this.name) return this.name;
|
|
827
|
+
const r = [];
|
|
828
|
+
let e = this;
|
|
829
|
+
for (; e && e !== document.body; ) {
|
|
830
|
+
const t = e.parentElement;
|
|
831
|
+
if (t) {
|
|
832
|
+
const o = Array.from(t.children).indexOf(e), n = e.tagName.toLowerCase();
|
|
833
|
+
r.unshift(`${n}[${o}]`);
|
|
834
|
+
}
|
|
835
|
+
e = t;
|
|
836
|
+
}
|
|
837
|
+
return r.join(">");
|
|
838
|
+
}
|
|
829
839
|
render() {
|
|
830
|
-
return
|
|
840
|
+
return we`<slot></slot>`;
|
|
831
841
|
}
|
|
832
842
|
};
|
|
833
|
-
|
|
834
|
-
var kr = Object.defineProperty,
|
|
835
|
-
for (var n, a = o > 1 ? void 0 : o ?
|
|
843
|
+
ne([ce({ type: String, reflect: !0 })], Q.prototype, "color", 2), ne([ce({ type: String })], Q.prototype, "scheme", 2), ne([ce({ type: Boolean })], Q.prototype, "root", 2), ne([ce({ type: String })], Q.prototype, "name", 2), ne([tr({ context: dr }), ce({ type: Object })], Q.prototype, "theme", 2), Q = ne([Le("schmancy-theme")], Q);
|
|
844
|
+
var kr = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, ae = (r, e, t, o) => {
|
|
845
|
+
for (var n, a = o > 1 ? void 0 : o ? Cr(e, t) : e, s = r.length - 1; s >= 0; s--) (n = r[s]) && (a = (o ? n(e, t, a) : n(a)) || a);
|
|
836
846
|
return o && a && kr(e, t, a), a;
|
|
837
847
|
};
|
|
838
|
-
let
|
|
848
|
+
let X = class extends ar() {
|
|
839
849
|
constructor() {
|
|
840
|
-
super(...arguments), this.currentScheme = "auto", this.currentColor = "#6200ee", this.resolvedScheme = "light", this.colorInput$ = new
|
|
850
|
+
super(...arguments), this.currentScheme = "auto", this.currentColor = "#6200ee", this.resolvedScheme = "light", this.themeComponent = null, this.colorInput$ = new He();
|
|
841
851
|
}
|
|
842
852
|
get presetColors() {
|
|
843
853
|
return this.customColors ? this.customColors : [{ name: "Lavender", value: "#9D8FE8", category: "primary" }, { name: "Rose", value: "#F48B9D", category: "accent" }, { name: "Mint", value: "#7ED997", category: "accent" }, { name: "Amber", value: "#FFC875", category: "accent" }, { name: "Sky", value: "#6DD5FA", category: "primary" }, { name: "Coral", value: "#FF9E7C", category: "secondary" }, { name: "Indigo", value: "#7380E8", category: "primary" }, { name: "Blush", value: "#FF79A8", category: "secondary" }, { name: "Aqua", value: "#64E0F0", category: "accent" }, { name: "Gold", value: "#FFE066", category: "accent" }, { name: "Slate", value: "#6B7E91", category: "primary" }, { name: "Onyx", value: "#3D4451", category: "primary" }, { name: "Plum", value: "#8E6BA8", category: "secondary" }, { name: "Forest", value: "#5A7A5F", category: "accent" }, { name: "Navy", value: "#3D5A80", category: "primary" }, { name: "Burgundy", value: "#994F5E", category: "accent" }];
|
|
844
854
|
}
|
|
845
855
|
connectedCallback() {
|
|
846
|
-
super.connectedCallback()
|
|
847
|
-
|
|
848
|
-
|
|
856
|
+
super.connectedCallback(), this.discover("schmancy-theme").pipe(xe((r) => r ? (this.themeComponent = r, this.currentScheme = r.scheme, this.currentColor = r.color, new He().pipe(ue(() => {
|
|
857
|
+
this.themeComponent && (this.currentScheme = this.themeComponent.scheme, this.currentColor = this.themeComponent.color);
|
|
858
|
+
}))) : be(null)), le(this.disconnecting)).subscribe(), this.colorInput$.pipe(Ge(150), ue((r) => {
|
|
859
|
+
this.themeComponent && (this.themeComponent.color = r);
|
|
860
|
+
}), le(this.disconnecting)).subscribe();
|
|
849
861
|
}
|
|
850
862
|
setScheme(r) {
|
|
851
|
-
|
|
863
|
+
this.themeComponent && (this.themeComponent.scheme = r, this.currentScheme = r);
|
|
852
864
|
}
|
|
853
865
|
setColor(r) {
|
|
854
|
-
|
|
866
|
+
this.themeComponent && (this.themeComponent.color = r, this.currentColor = r);
|
|
855
867
|
}
|
|
856
868
|
handleColorInput(r) {
|
|
857
869
|
const e = r.target;
|
|
@@ -859,89 +871,97 @@ let ce = class extends ar() {
|
|
|
859
871
|
}
|
|
860
872
|
randomColor() {
|
|
861
873
|
const r = this.presetColors[Math.floor(Math.random() * this.presetColors.length)];
|
|
862
|
-
|
|
874
|
+
this.setColor(r.value);
|
|
863
875
|
}
|
|
864
876
|
triggerColorPicker() {
|
|
865
877
|
this.renderRoot.querySelector('input[type="color"]')?.click();
|
|
866
878
|
}
|
|
867
879
|
render() {
|
|
868
|
-
return
|
|
869
|
-
<
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
${this.
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
</schmancy-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
</schmancy-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
<schmancy-icon>contrast</schmancy-icon>
|
|
903
|
-
</schmancy-button>
|
|
904
|
-
<schmancy-button variant="text" @click="${this.randomColor}">
|
|
905
|
-
<schmancy-icon>shuffle</schmancy-icon>
|
|
906
|
-
</schmancy-button>
|
|
907
|
-
</div>
|
|
880
|
+
return we`
|
|
881
|
+
<div class="space-y-4">
|
|
882
|
+
<!-- Color Display -->
|
|
883
|
+
<div class="flex items-center gap-3">
|
|
884
|
+
<div
|
|
885
|
+
class="w-16 h-16 rounded-xl border-2 border-outline cursor-pointer transition-transform hover:scale-105 active:scale-95"
|
|
886
|
+
style="background: ${this.currentColor}"
|
|
887
|
+
@click="${this.triggerColorPicker}"
|
|
888
|
+
title="Click to change color"
|
|
889
|
+
></div>
|
|
890
|
+
<div class="flex-1 min-w-0">
|
|
891
|
+
<schmancy-typography type="body" class="font-mono opacity-60"> ${this.currentColor} </schmancy-typography>
|
|
892
|
+
<div class="flex gap-1 mt-2">
|
|
893
|
+
<schmancy-button
|
|
894
|
+
variant="${this.currentScheme === "light" ? "tonal" : "text"}"
|
|
895
|
+
@click="${() => this.setScheme("light")}"
|
|
896
|
+
>
|
|
897
|
+
<schmancy-icon>light_mode</schmancy-icon>
|
|
898
|
+
</schmancy-button>
|
|
899
|
+
<schmancy-button
|
|
900
|
+
variant="${this.currentScheme === "dark" ? "tonal" : "text"}"
|
|
901
|
+
@click="${() => this.setScheme("dark")}"
|
|
902
|
+
>
|
|
903
|
+
<schmancy-icon>dark_mode</schmancy-icon>
|
|
904
|
+
</schmancy-button>
|
|
905
|
+
<schmancy-button
|
|
906
|
+
variant="${this.currentScheme === "auto" ? "tonal" : "text"}"
|
|
907
|
+
@click="${() => this.setScheme("auto")}"
|
|
908
|
+
>
|
|
909
|
+
<schmancy-icon>contrast</schmancy-icon>
|
|
910
|
+
</schmancy-button>
|
|
911
|
+
<schmancy-button variant="text" @click="${this.randomColor}">
|
|
912
|
+
<schmancy-icon>shuffle</schmancy-icon>
|
|
913
|
+
</schmancy-button>
|
|
908
914
|
</div>
|
|
909
915
|
</div>
|
|
916
|
+
</div>
|
|
910
917
|
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
918
|
+
<!-- Palette -->
|
|
919
|
+
<div class="flex flex-wrap gap-1.5">
|
|
920
|
+
${this.presetColors.map((r) => we`
|
|
921
|
+
<button
|
|
922
|
+
class="w-7 h-7 rounded-full transition-all hover:scale-110 active:scale-95 ${this.currentColor === r.value ? "ring-2 ring-primary ring-offset-1" : ""}"
|
|
923
|
+
style="background: ${r.value}"
|
|
924
|
+
@click="${() => this.setColor(r.value)}"
|
|
925
|
+
title="${r.name}"
|
|
926
|
+
></button>
|
|
927
|
+
`)}
|
|
928
|
+
</div>
|
|
929
|
+
|
|
930
|
+
<!-- Hidden Color Input -->
|
|
931
|
+
<input type="color" .value="${this.currentColor}" @input="${this.handleColorInput}" class="hidden" />
|
|
932
|
+
</div>
|
|
933
|
+
`;
|
|
934
|
+
}
|
|
935
|
+
};
|
|
936
|
+
ae([Ce()], X.prototype, "currentScheme", 2), ae([Ce()], X.prototype, "currentColor", 2), ae([Ce()], X.prototype, "resolvedScheme", 2), ae([Ce()], X.prototype, "themeComponent", 2), ae([ce({ type: Array })], X.prototype, "customColors", 2), X = ae([Le("schmancy-theme-controller")], X);
|
|
937
|
+
var xr = Object.getOwnPropertyDescriptor;
|
|
938
|
+
let _e = class extends X {
|
|
939
|
+
render() {
|
|
940
|
+
return we`
|
|
941
|
+
<schmancy-boat id="schmancy-theme-component">
|
|
942
|
+
<schmancy-icon slot="header">palette</schmancy-icon>
|
|
922
943
|
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
type="color"
|
|
926
|
-
.value="${this.currentColor}"
|
|
927
|
-
@input="${this.handleColorInput}"
|
|
928
|
-
class="hidden"
|
|
929
|
-
/>
|
|
944
|
+
<div class="p-4">
|
|
945
|
+
${super.render()}
|
|
930
946
|
</div>
|
|
931
947
|
</schmancy-boat>
|
|
932
948
|
`;
|
|
933
949
|
}
|
|
934
950
|
};
|
|
935
|
-
|
|
951
|
+
_e = ((r, e, t, o) => {
|
|
952
|
+
for (var n, a = o > 1 ? void 0 : o ? xr(e, t) : e, s = r.length - 1; s >= 0; s--) (n = r[s]) && (a = n(a) || a);
|
|
953
|
+
return a;
|
|
954
|
+
})([Le("schmancy-theme-controller-boat")], _e);
|
|
936
955
|
export {
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
Ir as a,
|
|
956
|
+
Q as S,
|
|
957
|
+
Lr as a,
|
|
940
958
|
fr as b,
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
959
|
+
Ir as c,
|
|
960
|
+
X as d,
|
|
961
|
+
_e as e,
|
|
962
|
+
mr as f,
|
|
963
|
+
dr as g,
|
|
964
|
+
Br as s,
|
|
965
|
+
ur as t
|
|
946
966
|
};
|
|
947
|
-
//# sourceMappingURL=theme
|
|
967
|
+
//# sourceMappingURL=theme-controller-boat-C_6tVWSS.js.map
|