@public-ui/sample-react 3.1.5-rc.1 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{Alert-CIKdjbvE-yK5J40pl.js → Alert-D9ud5e41-Du7KANFA.js} +2 -2
- package/dist/assets/{Alert-CIKdjbvE-yK5J40pl.js.map → Alert-D9ud5e41-Du7KANFA.js.map} +1 -1
- package/dist/assets/{Collapsible-B9F2msg--D3Sf7hI4.js → Collapsible-P3A4TxrI-CnAwRlp0.js} +2 -2
- package/dist/assets/{Collapsible-B9F2msg--D3Sf7hI4.js.map → Collapsible-P3A4TxrI-CnAwRlp0.js.map} +1 -1
- package/dist/assets/{CustomSuggestionsOptionsGroup-kKsfMMk7-CSu9mzVK.js → CustomSuggestionsOptionsGroup-C6v0QcDe-DwCdEn27.js} +2 -2
- package/dist/assets/{CustomSuggestionsOptionsGroup-kKsfMMk7-CSu9mzVK.js.map → CustomSuggestionsOptionsGroup-C6v0QcDe-DwCdEn27.js.map} +1 -1
- package/dist/assets/{FieldControlStateWrapper-CK_S_dhv-BOpB3wb2.js → FieldControlStateWrapper-CbhX9GTT-CIReB8G-.js} +2 -2
- package/dist/assets/{FieldControlStateWrapper-CK_S_dhv-BOpB3wb2.js.map → FieldControlStateWrapper-CbhX9GTT-CIReB8G-.js.map} +1 -1
- package/dist/assets/{FormFieldStateWrapper-BGxg7G55-CWa40WX6.js → FormFieldStateWrapper-Bygx9jNo-C4dzX9ru.js} +2 -2
- package/dist/assets/{FormFieldStateWrapper-BGxg7G55-CWa40WX6.js.map → FormFieldStateWrapper-Bygx9jNo-C4dzX9ru.js.map} +1 -1
- package/dist/assets/{Heading-B7hplu9V-DgTsDOEM.js → Heading-htOdgBmb-BDm3BCT0.js} +2 -2
- package/dist/assets/{Heading-B7hplu9V-DgTsDOEM.js.map → Heading-htOdgBmb-BDm3BCT0.js.map} +1 -1
- package/dist/assets/{Icon-dgbiaGM8-CrjD5q6I.js → Icon-CJlicMRJ-D75Db3zT.js} +2 -2
- package/dist/assets/{Icon-dgbiaGM8-CrjD5q6I.js.map → Icon-CJlicMRJ-D75Db3zT.js.map} +1 -1
- package/dist/assets/{Input-U9lWy-HR-C50Ent61.js → Input-Be9LDid3-3Mpqf3OO.js} +2 -2
- package/dist/assets/{Input-U9lWy-HR-C50Ent61.js.map → Input-Be9LDid3-3Mpqf3OO.js.map} +1 -1
- package/dist/assets/{InputStateWrapper-MKLxXRvw-3OJUwhA7.js → InputStateWrapper-Dun4iiM9-CkVN8ewg.js} +2 -2
- package/dist/assets/{InputStateWrapper-MKLxXRvw-3OJUwhA7.js.map → InputStateWrapper-Dun4iiM9-CkVN8ewg.js.map} +1 -1
- package/dist/assets/{InternalUnderlinedBadgeText-BGE43QHM-DQxtp_EH.js → InternalUnderlinedBadgeText-vl7_Qoxw-CzB8OTMN.js} +2 -2
- package/dist/assets/{InternalUnderlinedBadgeText-BGE43QHM-DQxtp_EH.js.map → InternalUnderlinedBadgeText-vl7_Qoxw-CzB8OTMN.js.map} +1 -1
- package/dist/assets/{Span-jYzGZ5wP-CVs1Fmh-.js → Span-DpYoIlZw-DwzgbCmV.js} +2 -2
- package/dist/assets/{Span-jYzGZ5wP-CVs1Fmh-.js.map → Span-DpYoIlZw-DwzgbCmV.js.map} +1 -1
- package/dist/assets/{access-and-short-key-mAD3xXKp-BHH7LvxK.js → access-and-short-key-mAD3xXKp-DrVYvB1K.js} +2 -2
- package/dist/assets/{access-and-short-key-mAD3xXKp-BHH7LvxK.js.map → access-and-short-key-mAD3xXKp-DrVYvB1K.js.map} +1 -1
- package/dist/assets/{align-floating-elements-6A9FkBi8-CIzWSMDX.js → align-floating-elements-6A9FkBi8-CKN_AIds.js} +2 -2
- package/dist/assets/{align-floating-elements-6A9FkBi8-CIzWSMDX.js.map → align-floating-elements-6A9FkBi8-CKN_AIds.js.map} +1 -1
- package/dist/assets/{align-zs9k2ruM-g14m2TyZ.js → align-zs9k2ruM-Bf3lME-4.js} +2 -2
- package/dist/assets/{align-zs9k2ruM-g14m2TyZ.js.map → align-zs9k2ruM-Bf3lME-4.js.map} +1 -1
- package/dist/assets/{associated.controller-DZY0qF8S-DCuX_lpO.js → associated.controller-DZY0qF8S-DGAmV4up.js} +2 -2
- package/dist/assets/{associated.controller-DZY0qF8S-DCuX_lpO.js.map → associated.controller-DZY0qF8S-DGAmV4up.js.map} +1 -1
- package/dist/assets/{auto-complete-DeJJLXfx-Bas7UCKV.js → auto-complete-DeJJLXfx-CXRvWO-N.js} +2 -2
- package/dist/assets/{auto-complete-DeJJLXfx-Bas7UCKV.js.map → auto-complete-DeJJLXfx-CXRvWO-N.js.map} +1 -1
- package/dist/assets/{button-variant-neDtqOV--pzGQv42o.js → button-variant-neDtqOV--DGa0AcGX.js} +2 -2
- package/dist/assets/{button-variant-neDtqOV--pzGQv42o.js.map → button-variant-neDtqOV--DGa0AcGX.js.map} +1 -1
- package/dist/assets/{color-Rjy4ux-w-BF1S1nnG.js → color-Rjy4ux-w-CSgUSnIe.js} +2 -2
- package/dist/assets/{color-Rjy4ux-w-BF1S1nnG.js.map → color-Rjy4ux-w-CSgUSnIe.js.map} +1 -1
- package/dist/assets/{controller-BsKjyZ3W-EUXbbfmR.js → controller-BsKjyZ3W-BgWn3_N9.js} +2 -2
- package/dist/assets/{controller-BsKjyZ3W-EUXbbfmR.js.map → controller-BsKjyZ3W-BgWn3_N9.js.map} +1 -1
- package/dist/assets/{controller-DCoao4xB-D-ECO3wq.js → controller-Btg9ItnB-B8aGP6Yg.js} +2 -2
- package/dist/assets/{controller-DCoao4xB-D-ECO3wq.js.map → controller-Btg9ItnB-B8aGP6Yg.js.map} +1 -1
- package/dist/assets/{controller-z-kdf8e5-B77c-Fon.js → controller-KFygbHB0-muT7mlU0.js} +2 -2
- package/dist/assets/{controller-z-kdf8e5-B77c-Fon.js.map → controller-KFygbHB0-muT7mlU0.js.map} +1 -1
- package/dist/assets/{controller-BME-y795-BfAGz-XB.js → controller-QlJVQTR7-Lrp9NTGf.js} +2 -2
- package/dist/assets/{controller-BME-y795-BfAGz-XB.js.map → controller-QlJVQTR7-Lrp9NTGf.js.map} +1 -1
- package/dist/assets/{controller-icon-DIGqD96W-Dl76cQBD.js → controller-icon-D4Q7Hm_x-DPIY0TDm.js} +2 -2
- package/dist/assets/{controller-icon-DIGqD96W-Dl76cQBD.js.map → controller-icon-D4Q7Hm_x-DPIY0TDm.js.map} +1 -1
- package/dist/assets/custom-class-dk7tJlhh-KM2CTz3Z.js +2 -0
- package/dist/assets/{custom-class-dk7tJlhh-BlKkKDTq.js.map → custom-class-dk7tJlhh-KM2CTz3Z.js.map} +1 -1
- package/dist/assets/{dev.utils-CLfEphNA-DsK637JH.js → dev.utils-DyWeFmrg-D9tz9G9N.js} +2 -2
- package/dist/assets/{dev.utils-CLfEphNA-DsK637JH.js.map → dev.utils-DyWeFmrg-D9tz9G9N.js.map} +1 -1
- package/dist/assets/{devtools-CLKWKoPc-CJuu85Sw.js → devtools-BkaBSMly-DWgisyPW.js} +2 -2
- package/dist/assets/{devtools-CLKWKoPc-CJuu85Sw.js.map → devtools-BkaBSMly-DWgisyPW.js.map} +1 -1
- package/dist/assets/disabled-BWCjJbVt-C5XFv2va.js +2 -0
- package/dist/assets/{disabled-BWCjJbVt-BLDu8Rii.js.map → disabled-BWCjJbVt-C5XFv2va.js.map} +1 -1
- package/dist/assets/has-closer-CtKB8I6M-DPbi7eiK.js +2 -0
- package/dist/assets/{has-closer-CtKB8I6M-f1JSckgD.js.map → has-closer-CtKB8I6M-DPbi7eiK.js.map} +1 -1
- package/dist/assets/hide-label-B7Pi0cle-DRyDEErn.js +2 -0
- package/dist/assets/{hide-label-B7Pi0cle-BkVs4qSO.js.map → hide-label-B7Pi0cle-DRyDEErn.js.map} +1 -1
- package/dist/assets/href-C62X6aSC-BxAwMvq7.js +2 -0
- package/dist/assets/{href-C62X6aSC-C1pue7Ad.js.map → href-C62X6aSC-BxAwMvq7.js.map} +1 -1
- package/dist/assets/i18n-DaJ9SqJN-BvWqTNxQ.js +2 -0
- package/dist/assets/{i18n-DaJ9SqJN-JMcTf9fD.js.map → i18n-DaJ9SqJN-BvWqTNxQ.js.map} +1 -1
- package/dist/assets/{icons-vgwIIwAr-ChpPAJ5m.js → icons-vgwIIwAr-pgRJoBHQ.js} +2 -2
- package/dist/assets/{icons-vgwIIwAr-ChpPAJ5m.js.map → icons-vgwIIwAr-pgRJoBHQ.js.map} +1 -1
- package/dist/assets/image-source-CvUc2vv--D6k0yxnn.js +2 -0
- package/dist/assets/{image-source-CvUc2vv--DPFm6FLj.js.map → image-source-CvUc2vv--D6k0yxnn.js.map} +1 -1
- package/dist/assets/{index-Cev-1gML.js → index-Bt3sQb7d.js} +19 -19
- package/dist/assets/index-Bt3sQb7d.js.map +1 -0
- package/dist/assets/inline-C2QF3Rdx-HBTGsuzY.js +2 -0
- package/dist/assets/{inline-C2QF3Rdx-B1ShSUIW.js.map → inline-C2QF3Rdx-HBTGsuzY.js.map} +1 -1
- package/dist/assets/{kol-abbr.entry-DptUghxG.js → kol-abbr.entry-CjQNrlKz.js} +2 -2
- package/dist/assets/{kol-abbr.entry-DptUghxG.js.map → kol-abbr.entry-CjQNrlKz.js.map} +1 -1
- package/dist/assets/{kol-accordion.entry-DeC70sJu.js → kol-accordion.entry-WOC2_SVb.js} +2 -2
- package/dist/assets/{kol-accordion.entry-DeC70sJu.js.map → kol-accordion.entry-WOC2_SVb.js.map} +1 -1
- package/dist/assets/{kol-alert-wc.entry-nx5bhB_D.js → kol-alert-wc.entry-BltH-9uh.js} +2 -2
- package/dist/assets/{kol-alert-wc.entry-nx5bhB_D.js.map → kol-alert-wc.entry-BltH-9uh.js.map} +1 -1
- package/dist/assets/{kol-alert.entry-DI_rp705.js → kol-alert.entry-BaeitZG1.js} +2 -2
- package/dist/assets/{kol-alert.entry-DI_rp705.js.map → kol-alert.entry-BaeitZG1.js.map} +1 -1
- package/dist/assets/{kol-avatar-wc.entry-DfsFerC4.js → kol-avatar-wc.entry-DoFvrMOv.js} +2 -2
- package/dist/assets/{kol-avatar-wc.entry-DfsFerC4.js.map → kol-avatar-wc.entry-DoFvrMOv.js.map} +1 -1
- package/dist/assets/{kol-avatar.entry-BZJQ9eGF.js → kol-avatar.entry-D8jCuleN.js} +2 -2
- package/dist/assets/{kol-avatar.entry-BZJQ9eGF.js.map → kol-avatar.entry-D8jCuleN.js.map} +1 -1
- package/dist/assets/{kol-badge.entry-I_WImewk.js → kol-badge.entry-DoaJbUVI.js} +2 -2
- package/dist/assets/{kol-badge.entry-I_WImewk.js.map → kol-badge.entry-DoaJbUVI.js.map} +1 -1
- package/dist/assets/{kol-breadcrumb.entry-Bq91p3X0.js → kol-breadcrumb.entry-DxejoCS8.js} +2 -2
- package/dist/assets/{kol-breadcrumb.entry-Bq91p3X0.js.map → kol-breadcrumb.entry-DxejoCS8.js.map} +1 -1
- package/dist/assets/{kol-button-link.entry-C6cDtgjS.js → kol-button-link.entry-CxmyM0tg.js} +2 -2
- package/dist/assets/{kol-button-link.entry-C6cDtgjS.js.map → kol-button-link.entry-CxmyM0tg.js.map} +1 -1
- package/dist/assets/{kol-button-wc.entry-CZJWh5t2.js → kol-button-wc.entry-SkyKXWCj.js} +2 -2
- package/dist/assets/{kol-button-wc.entry-CZJWh5t2.js.map → kol-button-wc.entry-SkyKXWCj.js.map} +1 -1
- package/dist/assets/{kol-button.entry-BWyLtMZJ.js → kol-button.entry-jtTW9uOt.js} +2 -2
- package/dist/assets/{kol-button.entry-BWyLtMZJ.js.map → kol-button.entry-jtTW9uOt.js.map} +1 -1
- package/dist/assets/{kol-card-wc.entry-CHzTR-jq.js → kol-card-wc.entry-DjXnKoIP.js} +2 -2
- package/dist/assets/{kol-card-wc.entry-CHzTR-jq.js.map → kol-card-wc.entry-DjXnKoIP.js.map} +1 -1
- package/dist/assets/{kol-card.entry-Fkq8hQMZ.js → kol-card.entry-B4VsZkxD.js} +2 -2
- package/dist/assets/{kol-card.entry-Fkq8hQMZ.js.map → kol-card.entry-B4VsZkxD.js.map} +1 -1
- package/dist/assets/{kol-combobox.entry-CPXovvnJ.js → kol-combobox.entry-C1zftER1.js} +2 -2
- package/dist/assets/{kol-combobox.entry-CPXovvnJ.js.map → kol-combobox.entry-C1zftER1.js.map} +1 -1
- package/dist/assets/{kol-details.entry-CIuelV8L.js → kol-details.entry-B3do5TX6.js} +2 -2
- package/dist/assets/{kol-details.entry-CIuelV8L.js.map → kol-details.entry-B3do5TX6.js.map} +1 -1
- package/dist/assets/{kol-drawer.entry-D5oiRVF2.js → kol-drawer.entry-CNGxaXCK.js} +2 -2
- package/dist/assets/{kol-drawer.entry-D5oiRVF2.js.map → kol-drawer.entry-CNGxaXCK.js.map} +1 -1
- package/dist/assets/{kol-form.entry-B1KmaymY.js → kol-form.entry-DfTflWe4.js} +2 -2
- package/dist/assets/{kol-form.entry-B1KmaymY.js.map → kol-form.entry-DfTflWe4.js.map} +1 -1
- package/dist/assets/{kol-heading.entry-ByFGUOzS.js → kol-heading.entry-CsNtUT-w.js} +2 -2
- package/dist/assets/{kol-heading.entry-ByFGUOzS.js.map → kol-heading.entry-CsNtUT-w.js.map} +1 -1
- package/dist/assets/{kol-icon.entry-Bed1bdLS.js → kol-icon.entry-Di2px5QM.js} +2 -2
- package/dist/assets/{kol-icon.entry-Bed1bdLS.js.map → kol-icon.entry-Di2px5QM.js.map} +1 -1
- package/dist/assets/{kol-image.entry-qINp7tRX.js → kol-image.entry-DxyOlIuP.js} +2 -2
- package/dist/assets/{kol-image.entry-qINp7tRX.js.map → kol-image.entry-DxyOlIuP.js.map} +1 -1
- package/dist/assets/{kol-input-checkbox.entry-BWMgf4Zm.js → kol-input-checkbox.entry-DuQWHNJH.js} +2 -2
- package/dist/assets/{kol-input-checkbox.entry-BWMgf4Zm.js.map → kol-input-checkbox.entry-DuQWHNJH.js.map} +1 -1
- package/dist/assets/{kol-input-color.entry-BVvUKfhp.js → kol-input-color.entry-huy-9Nqo.js} +2 -2
- package/dist/assets/{kol-input-color.entry-BVvUKfhp.js.map → kol-input-color.entry-huy-9Nqo.js.map} +1 -1
- package/dist/assets/{kol-input-date.entry-VgploGFF.js → kol-input-date.entry-CwA-jdkD.js} +2 -2
- package/dist/assets/{kol-input-date.entry-VgploGFF.js.map → kol-input-date.entry-CwA-jdkD.js.map} +1 -1
- package/dist/assets/{kol-input-email.entry-50HwsYSd.js → kol-input-email.entry-yCjwDXd8.js} +2 -2
- package/dist/assets/{kol-input-email.entry-50HwsYSd.js.map → kol-input-email.entry-yCjwDXd8.js.map} +1 -1
- package/dist/assets/{kol-input-file.entry-y70lbbcj.js → kol-input-file.entry-Be5RqcNz.js} +2 -2
- package/dist/assets/{kol-input-file.entry-y70lbbcj.js.map → kol-input-file.entry-Be5RqcNz.js.map} +1 -1
- package/dist/assets/{kol-input-number.entry-5_PTvYjD.js → kol-input-number.entry-CTry5MhA.js} +2 -2
- package/dist/assets/{kol-input-number.entry-5_PTvYjD.js.map → kol-input-number.entry-CTry5MhA.js.map} +1 -1
- package/dist/assets/{kol-input-password.entry-BpZW54L-.js → kol-input-password.entry-DStX3Qwf.js} +2 -2
- package/dist/assets/{kol-input-password.entry-BpZW54L-.js.map → kol-input-password.entry-DStX3Qwf.js.map} +1 -1
- package/dist/assets/{kol-input-radio.entry-DgezpQ3r.js → kol-input-radio.entry-CY2liax-.js} +2 -2
- package/dist/assets/{kol-input-radio.entry-DgezpQ3r.js.map → kol-input-radio.entry-CY2liax-.js.map} +1 -1
- package/dist/assets/{kol-input-range.entry-CEpNzgz_.js → kol-input-range.entry-Dsty-gwz.js} +2 -2
- package/dist/assets/{kol-input-range.entry-CEpNzgz_.js.map → kol-input-range.entry-Dsty-gwz.js.map} +1 -1
- package/dist/assets/{kol-input-text.entry-D1n7ESJt.js → kol-input-text.entry-BKvuUwIi.js} +2 -2
- package/dist/assets/{kol-input-text.entry-D1n7ESJt.js.map → kol-input-text.entry-BKvuUwIi.js.map} +1 -1
- package/dist/assets/{kol-kolibri.entry-BW4p7bji.js → kol-kolibri.entry-CEwJjYk0.js} +2 -2
- package/dist/assets/{kol-kolibri.entry-BW4p7bji.js.map → kol-kolibri.entry-CEwJjYk0.js.map} +1 -1
- package/dist/assets/{kol-link-button.entry-BRB2iZV0.js → kol-link-button.entry-DvlwvZMr.js} +2 -2
- package/dist/assets/{kol-link-button.entry-BRB2iZV0.js.map → kol-link-button.entry-DvlwvZMr.js.map} +1 -1
- package/dist/assets/{kol-link-wc.entry-2NECEqch.js → kol-link-wc.entry-D8iBi5Sq.js} +2 -2
- package/dist/assets/{kol-link-wc.entry-2NECEqch.js.map → kol-link-wc.entry-D8iBi5Sq.js.map} +1 -1
- package/dist/assets/{kol-link.entry-5V0gb1-T.js → kol-link.entry-mOwkdzSs.js} +2 -2
- package/dist/assets/{kol-link.entry-5V0gb1-T.js.map → kol-link.entry-mOwkdzSs.js.map} +1 -1
- package/dist/assets/{kol-modal.entry-Demx9m4E.js → kol-modal.entry-CrMRW4yV.js} +2 -2
- package/dist/assets/{kol-modal.entry-Demx9m4E.js.map → kol-modal.entry-CrMRW4yV.js.map} +1 -1
- package/dist/assets/{kol-nav.entry-BWC9kL2H.js → kol-nav.entry-6oFRqe3L.js} +2 -2
- package/dist/assets/{kol-nav.entry-BWC9kL2H.js.map → kol-nav.entry-6oFRqe3L.js.map} +1 -1
- package/dist/assets/{kol-pagination-wc.entry-C8XwggKW.js → kol-pagination-wc.entry-BxNqb134.js} +2 -2
- package/dist/assets/{kol-pagination-wc.entry-C8XwggKW.js.map → kol-pagination-wc.entry-BxNqb134.js.map} +1 -1
- package/dist/assets/{kol-pagination.entry-Q8at4PNg.js → kol-pagination.entry-D1sGmQ-X.js} +2 -2
- package/dist/assets/{kol-pagination.entry-Q8at4PNg.js.map → kol-pagination.entry-D1sGmQ-X.js.map} +1 -1
- package/dist/assets/{kol-popover-button-wc.entry-BMsxFv6W.js → kol-popover-button-wc.entry-BTN5HFQU.js} +2 -2
- package/dist/assets/{kol-popover-button-wc.entry-BMsxFv6W.js.map → kol-popover-button-wc.entry-BTN5HFQU.js.map} +1 -1
- package/dist/assets/{kol-popover-button.entry-BxGmrakV.js → kol-popover-button.entry-D8lEQuk-.js} +2 -2
- package/dist/assets/{kol-popover-button.entry-BxGmrakV.js.map → kol-popover-button.entry-D8lEQuk-.js.map} +1 -1
- package/dist/assets/{kol-popover-wc.entry-CbroajWq.js → kol-popover-wc.entry-1FZpYTMQ.js} +2 -2
- package/dist/assets/{kol-popover-wc.entry-CbroajWq.js.map → kol-popover-wc.entry-1FZpYTMQ.js.map} +1 -1
- package/dist/assets/{kol-progress.entry-BrRC_rCQ.js → kol-progress.entry-37EXIMWi.js} +2 -2
- package/dist/assets/{kol-progress.entry-BrRC_rCQ.js.map → kol-progress.entry-37EXIMWi.js.map} +1 -1
- package/dist/assets/{kol-quote.entry-gsjsHWcY.js → kol-quote.entry-BW1v5Kf-.js} +2 -2
- package/dist/assets/{kol-quote.entry-gsjsHWcY.js.map → kol-quote.entry-BW1v5Kf-.js.map} +1 -1
- package/dist/assets/{kol-select-wc.entry-DYKhE1f7.js → kol-select-wc.entry-DBjXQP73.js} +2 -2
- package/dist/assets/{kol-select-wc.entry-DYKhE1f7.js.map → kol-select-wc.entry-DBjXQP73.js.map} +1 -1
- package/dist/assets/{kol-select.entry-CqN0yQqD.js → kol-select.entry-CsbipoPi.js} +2 -2
- package/dist/assets/{kol-select.entry-CqN0yQqD.js.map → kol-select.entry-CsbipoPi.js.map} +1 -1
- package/dist/assets/{kol-single-select.entry-D7b6Ix7Z.js → kol-single-select.entry-tXCCW7UA.js} +2 -2
- package/dist/assets/{kol-single-select.entry-D7b6Ix7Z.js.map → kol-single-select.entry-tXCCW7UA.js.map} +1 -1
- package/dist/assets/{kol-skip-nav.entry-qox1ShDj.js → kol-skip-nav.entry-Bs3DoomG.js} +2 -2
- package/dist/assets/{kol-skip-nav.entry-qox1ShDj.js.map → kol-skip-nav.entry-Bs3DoomG.js.map} +1 -1
- package/dist/assets/{kol-spin.entry-DmdEg_dk.js → kol-spin.entry-BKH9u6Ox.js} +2 -2
- package/dist/assets/{kol-spin.entry-DmdEg_dk.js.map → kol-spin.entry-BKH9u6Ox.js.map} +1 -1
- package/dist/assets/{kol-split-button.entry-93A1jXin.js → kol-split-button.entry-B6Rsnn4t.js} +2 -2
- package/dist/assets/{kol-split-button.entry-93A1jXin.js.map → kol-split-button.entry-B6Rsnn4t.js.map} +1 -1
- package/dist/assets/{kol-table-settings-wc.entry-DqlGjrtJ.js → kol-table-settings-wc.entry-BSYE7EkV.js} +2 -2
- package/dist/assets/{kol-table-settings-wc.entry-DqlGjrtJ.js.map → kol-table-settings-wc.entry-BSYE7EkV.js.map} +1 -1
- package/dist/assets/{kol-table-stateful.entry-bFo7QGon.js → kol-table-stateful.entry-B41bM7yo.js} +2 -2
- package/dist/assets/{kol-table-stateful.entry-bFo7QGon.js.map → kol-table-stateful.entry-B41bM7yo.js.map} +1 -1
- package/dist/assets/{kol-table-stateless-wc.entry-D5OGQXFm.js → kol-table-stateless-wc.entry-DRaqNrsd.js} +2 -2
- package/dist/assets/{kol-table-stateless-wc.entry-D5OGQXFm.js.map → kol-table-stateless-wc.entry-DRaqNrsd.js.map} +1 -1
- package/dist/assets/{kol-table-stateless.entry-DiEokJE0.js → kol-table-stateless.entry-CulQHwDV.js} +2 -2
- package/dist/assets/{kol-table-stateless.entry-DiEokJE0.js.map → kol-table-stateless.entry-CulQHwDV.js.map} +1 -1
- package/dist/assets/{kol-tabs.entry-Be0eTNI0.js → kol-tabs.entry-DlbcvCOu.js} +2 -2
- package/dist/assets/{kol-tabs.entry-Be0eTNI0.js.map → kol-tabs.entry-DlbcvCOu.js.map} +1 -1
- package/dist/assets/{kol-textarea.entry-BR2Jmcrq.js → kol-textarea.entry-nM90KcSC.js} +2 -2
- package/dist/assets/{kol-textarea.entry-BR2Jmcrq.js.map → kol-textarea.entry-nM90KcSC.js.map} +1 -1
- package/dist/assets/{kol-toast-container.entry-CrCL6ul4.js → kol-toast-container.entry-DvoMv7DM.js} +2 -2
- package/dist/assets/{kol-toast-container.entry-CrCL6ul4.js.map → kol-toast-container.entry-DvoMv7DM.js.map} +1 -1
- package/dist/assets/{kol-toolbar.entry-BuzywX5A.js → kol-toolbar.entry-Ba3Gblsz.js} +2 -2
- package/dist/assets/{kol-toolbar.entry-BuzywX5A.js.map → kol-toolbar.entry-Ba3Gblsz.js.map} +1 -1
- package/dist/assets/{kol-tooltip-wc.entry-Cz81qvaS.js → kol-tooltip-wc.entry-Chhn7QJk.js} +2 -2
- package/dist/assets/{kol-tooltip-wc.entry-Cz81qvaS.js.map → kol-tooltip-wc.entry-Chhn7QJk.js.map} +1 -1
- package/dist/assets/{kol-tree-item-wc.entry-Dj-k2brT.js → kol-tree-item-wc.entry-Cbz5eHnW.js} +2 -2
- package/dist/assets/{kol-tree-item-wc.entry-Dj-k2brT.js.map → kol-tree-item-wc.entry-Cbz5eHnW.js.map} +1 -1
- package/dist/assets/{kol-tree-item.entry-CnPKy8Ne.js → kol-tree-item.entry-gcd8sjOp.js} +2 -2
- package/dist/assets/{kol-tree-item.entry-CnPKy8Ne.js.map → kol-tree-item.entry-gcd8sjOp.js.map} +1 -1
- package/dist/assets/{kol-tree-wc.entry-D7XDWr3i.js → kol-tree-wc.entry-XtCUIpLM.js} +2 -2
- package/dist/assets/{kol-tree-wc.entry-D7XDWr3i.js.map → kol-tree-wc.entry-XtCUIpLM.js.map} +1 -1
- package/dist/assets/{kol-tree.entry-2BMSN4u8.js → kol-tree.entry-CxjrJlJn.js} +2 -2
- package/dist/assets/{kol-tree.entry-2BMSN4u8.js.map → kol-tree.entry-CxjrJlJn.js.map} +1 -1
- package/dist/assets/{kol-version.entry-Br2F9TAS.js → kol-version.entry-nmZlcTN2.js} +2 -2
- package/dist/assets/{kol-version.entry-Br2F9TAS.js.map → kol-version.entry-nmZlcTN2.js.map} +1 -1
- package/dist/assets/{label-pIlPsS_A-DbqbT4i1.js → label-pIlPsS_A-DCbno6oN.js} +2 -2
- package/dist/assets/{label-pIlPsS_A-DbqbT4i1.js.map → label-pIlPsS_A-DCbno6oN.js.map} +1 -1
- package/dist/assets/{markdown-B2L4G_gq-DMY2xhZe.js → markdown-B2L4G_gq-BEQKScSi.js} +2 -2
- package/dist/assets/{markdown-B2L4G_gq-DMY2xhZe.js.map → markdown-B2L4G_gq-BEQKScSi.js.map} +1 -1
- package/dist/assets/{max-length-behavior-Brcdtags-DiEJj-_K.js → max-length-behavior-Brcdtags-fD4D_85m.js} +2 -2
- package/dist/assets/{max-length-behavior-Brcdtags-DiEJj-_K.js.map → max-length-behavior-Brcdtags-fD4D_85m.js.map} +1 -1
- package/dist/assets/multiple-D_Lhd_Ou-jOIFuXEN.js +2 -0
- package/dist/assets/{multiple-D_Lhd_Ou-CSbdhdoT.js.map → multiple-D_Lhd_Ou-jOIFuXEN.js.map} +1 -1
- package/dist/assets/open-BKi_QyJH-CJuZ-0wW.js +2 -0
- package/dist/assets/{open-BKi_QyJH-B49DwFd5.js.map → open-BKi_QyJH-CJuZ-0wW.js.map} +1 -1
- package/dist/assets/{orientation-DgLUKPfF-BBpfKwFU.js → orientation-DgLUKPfF-CgMmx3Wg.js} +2 -2
- package/dist/assets/{orientation-DgLUKPfF-BBpfKwFU.js.map → orientation-DgLUKPfF-CgMmx3Wg.js.map} +1 -1
- package/dist/assets/placeholder-DaUZigJ8-kuKwZwvT.js +2 -0
- package/dist/assets/{placeholder-DaUZigJ8-DpKxYtVi.js.map → placeholder-DaUZigJ8-kuKwZwvT.js.map} +1 -1
- package/dist/assets/read-only-BJgT2VC5-B3h--fhp.js +2 -0
- package/dist/assets/{read-only-BJgT2VC5-B2_8rqV2.js.map → read-only-BJgT2VC5-B3h--fhp.js.map} +1 -1
- package/dist/assets/required-U8Z2uWB--q5Uu8kh-.js +2 -0
- package/dist/assets/{required-U8Z2uWB--BDGh3-1f.js.map → required-U8Z2uWB--q5Uu8kh-.js.map} +1 -1
- package/dist/assets/rows-BxQMw7lW-Raoebl6O.js +2 -0
- package/dist/assets/{rows-BxQMw7lW-C7OZRff4.js.map → rows-BxQMw7lW-Raoebl6O.js.map} +1 -1
- package/dist/assets/show-Bv---Je2-BaRlfZIG.js +2 -0
- package/dist/assets/{show-Bv---Je2-CDlBEpAO.js.map → show-Bv---Je2-BaRlfZIG.js.map} +1 -1
- package/dist/assets/spell-check-CNVzo7wd-CNzWP_KJ.js +2 -0
- package/dist/assets/{spell-check-CNVzo7wd-BhwS1naX.js.map → spell-check-CNVzo7wd-CNzWP_KJ.js.map} +1 -1
- package/dist/assets/{suggestions-iUTn1W4N-DtxeGlTO.js → suggestions-iUTn1W4N-BBgbUC4O.js} +2 -2
- package/dist/assets/{suggestions-iUTn1W4N-DtxeGlTO.js.map → suggestions-iUTn1W4N-BBgbUC4O.js.map} +1 -1
- package/dist/assets/{table-settings-BRjvSgT8-DMLG7Rza.js → table-settings-BRjvSgT8-DvcQpxW1.js} +2 -2
- package/dist/assets/{table-settings-BRjvSgT8-DMLG7Rza.js.map → table-settings-BRjvSgT8-DvcQpxW1.js.map} +1 -1
- package/dist/assets/test-component.entry-BjizQbjG.js +2 -0
- package/dist/assets/{test-component.entry-BViy26XD.js.map → test-component.entry-BjizQbjG.js.map} +1 -1
- package/dist/assets/tooltip-align-CD1KA6X0-z1cJrm67.js +2 -0
- package/dist/assets/{tooltip-align-CD1KA6X0-DhFKtPO8.js.map → tooltip-align-CD1KA6X0-z1cJrm67.js.map} +1 -1
- package/dist/assets/{unique-nav-labels-CZlIBq4i-yd75OA6G.js → unique-nav-labels-CZlIBq4i-DNehkhur.js} +2 -2
- package/dist/assets/{unique-nav-labels-CZlIBq4i-yd75OA6G.js.map → unique-nav-labels-CZlIBq4i-DNehkhur.js.map} +1 -1
- package/dist/assets/{validation-1DoDEg2R-CmDb-r8L.js → validation-1DoDEg2R-B0S5K94j.js} +2 -2
- package/dist/assets/{validation-1DoDEg2R-CmDb-r8L.js.map → validation-1DoDEg2R-B0S5K94j.js.map} +1 -1
- package/dist/assets/validation-DiMQDBJs-DdqpYA8w.js +2 -0
- package/dist/assets/{validation-DiMQDBJs-BlI2HIDj.js.map → validation-DiMQDBJs-DdqpYA8w.js.map} +1 -1
- package/dist/index.html +1 -1
- package/package.json +8 -8
- package/dist/assets/custom-class-dk7tJlhh-BlKkKDTq.js +0 -2
- package/dist/assets/disabled-BWCjJbVt-BLDu8Rii.js +0 -2
- package/dist/assets/has-closer-CtKB8I6M-f1JSckgD.js +0 -2
- package/dist/assets/hide-label-B7Pi0cle-BkVs4qSO.js +0 -2
- package/dist/assets/href-C62X6aSC-C1pue7Ad.js +0 -2
- package/dist/assets/i18n-DaJ9SqJN-JMcTf9fD.js +0 -2
- package/dist/assets/image-source-CvUc2vv--DPFm6FLj.js +0 -2
- package/dist/assets/index-Cev-1gML.js.map +0 -1
- package/dist/assets/inline-C2QF3Rdx-B1ShSUIW.js +0 -2
- package/dist/assets/multiple-D_Lhd_Ou-CSbdhdoT.js +0 -2
- package/dist/assets/open-BKi_QyJH-B49DwFd5.js +0 -2
- package/dist/assets/placeholder-DaUZigJ8-DpKxYtVi.js +0 -2
- package/dist/assets/read-only-BJgT2VC5-B2_8rqV2.js +0 -2
- package/dist/assets/required-U8Z2uWB--BDGh3-1f.js +0 -2
- package/dist/assets/rows-BxQMw7lW-C7OZRff4.js +0 -2
- package/dist/assets/show-Bv---Je2-CDlBEpAO.js +0 -2
- package/dist/assets/spell-check-CNVzo7wd-BhwS1naX.js +0 -2
- package/dist/assets/test-component.entry-BViy26XD.js +0 -2
- package/dist/assets/tooltip-align-CD1KA6X0-DhFKtPO8.js +0 -2
- package/dist/assets/validation-DiMQDBJs-BlI2HIDj.js +0 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/kol-abbr.entry-
|
|
2
|
-
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))i(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const u of d.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(c){if(c.ep)return;c.ep=!0;const d=r(c);fetch(c.href,d)}})();function Hz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ef={exports:{}},Ti={};var Pv;function Vz(){if(Pv)return Ti;Pv=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,c,d){var u=null;if(d!==void 0&&(u=""+d),c.key!==void 0&&(u=""+c.key),"key"in c){d={};for(var m in c)m!=="key"&&(d[m]=c[m])}else d=c;return c=d.ref,{$$typeof:e,type:i,key:u,ref:c!==void 0?c:null,props:d}}return Ti.Fragment=n,Ti.jsx=r,Ti.jsxs=r,Ti}var Gv;function Kz(){return Gv||(Gv=1,Ef.exports=Vz()),Ef.exports}var a=Kz(),Lf={exports:{}},De={};var Yv;function qz(){if(Yv)return De;Yv=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),u=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function z(C){return C===null||typeof C!="object"?null:(C=_&&C[_]||C["@@iterator"],typeof C=="function"?C:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,E={};function L(C,P,ae){this.props=C,this.context=P,this.refs=E,this.updater=ae||$}L.prototype.isReactComponent={},L.prototype.setState=function(C,P){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,P,"setState")},L.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function y(){}y.prototype=L.prototype;function w(C,P,ae){this.props=C,this.context=P,this.refs=E,this.updater=ae||$}var N=w.prototype=new y;N.constructor=w,j(N,L.prototype),N.isPureReactComponent=!0;var D=Array.isArray;function H(){}var q={H:null,A:null,T:null,S:null},oe=Object.prototype.hasOwnProperty;function ce(C,P,ae){var be=ae.ref;return{$$typeof:e,type:C,key:P,ref:be!==void 0?be:null,props:ae}}function Ve(C,P){return ce(C.type,P,C.props)}function ie(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function ee(C){var P={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(ae){return P[ae]})}var _e=/\/+/g;function Te(C,P){return typeof C=="object"&&C!==null&&C.key!=null?ee(""+C.key):P.toString(36)}function $e(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(H,H):(C.status="pending",C.then(function(P){C.status==="pending"&&(C.status="fulfilled",C.value=P)},function(P){C.status==="pending"&&(C.status="rejected",C.reason=P)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function M(C,P,ae,be,Ce){var Ne=typeof C;(Ne==="undefined"||Ne==="boolean")&&(C=null);var Ye=!1;if(C===null)Ye=!0;else switch(Ne){case"bigint":case"string":case"number":Ye=!0;break;case"object":switch(C.$$typeof){case e:case n:Ye=!0;break;case g:return Ye=C._init,M(Ye(C._payload),P,ae,be,Ce)}}if(Ye)return Ce=Ce(C),Ye=be===""?"."+Te(C,0):be,D(Ce)?(ae="",Ye!=null&&(ae=Ye.replace(_e,"$&/")+"/"),M(Ce,P,ae,"",function(xt){return xt})):Ce!=null&&(ie(Ce)&&(Ce=Ve(Ce,ae+(Ce.key==null||C&&C.key===Ce.key?"":(""+Ce.key).replace(_e,"$&/")+"/")+Ye)),P.push(Ce)),1;Ye=0;var Ro=be===""?".":be+":";if(D(C))for(var yo=0;yo<C.length;yo++)be=C[yo],Ne=Ro+Te(be,yo),Ye+=M(be,P,ae,Ne,Ce);else if(yo=z(C),typeof yo=="function")for(C=yo.call(C),yo=0;!(be=C.next()).done;)be=be.value,Ne=Ro+Te(be,yo++),Ye+=M(be,P,ae,Ne,Ce);else if(Ne==="object"){if(typeof C.then=="function")return M($e(C),P,ae,be,Ce);throw P=String(C),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return Ye}function G(C,P,ae){if(C==null)return C;var be=[],Ce=0;return M(C,be,"","",function(Ne){return P.call(ae,Ne,Ce++)}),be}function se(C){if(C._status===-1){var P=C._result;P=P(),P.then(function(ae){(C._status===0||C._status===-1)&&(C._status=1,C._result=ae)},function(ae){(C._status===0||C._status===-1)&&(C._status=2,C._result=ae)}),C._status===-1&&(C._status=0,C._result=P)}if(C._status===1)return C._result.default;throw C._result}var ze=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},Ae={map:G,forEach:function(C,P,ae){G(C,function(){P.apply(this,arguments)},ae)},count:function(C){var P=0;return G(C,function(){P++}),P},toArray:function(C){return G(C,function(P){return P})||[]},only:function(C){if(!ie(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return De.Activity=v,De.Children=Ae,De.Component=L,De.Fragment=r,De.Profiler=c,De.PureComponent=w,De.StrictMode=i,De.Suspense=h,De.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,De.__COMPILER_RUNTIME={__proto__:null,c:function(C){return q.H.useMemoCache(C)}},De.cache=function(C){return function(){return C.apply(null,arguments)}},De.cacheSignal=function(){return null},De.cloneElement=function(C,P,ae){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var be=j({},C.props),Ce=C.key;if(P!=null)for(Ne in P.key!==void 0&&(Ce=""+P.key),P)!oe.call(P,Ne)||Ne==="key"||Ne==="__self"||Ne==="__source"||Ne==="ref"&&P.ref===void 0||(be[Ne]=P[Ne]);var Ne=arguments.length-2;if(Ne===1)be.children=ae;else if(1<Ne){for(var Ye=Array(Ne),Ro=0;Ro<Ne;Ro++)Ye[Ro]=arguments[Ro+2];be.children=Ye}return ce(C.type,Ce,be)},De.createContext=function(C){return C={$$typeof:u,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:d,_context:C},C},De.createElement=function(C,P,ae){var be,Ce={},Ne=null;if(P!=null)for(be in P.key!==void 0&&(Ne=""+P.key),P)oe.call(P,be)&&be!=="key"&&be!=="__self"&&be!=="__source"&&(Ce[be]=P[be]);var Ye=arguments.length-2;if(Ye===1)Ce.children=ae;else if(1<Ye){for(var Ro=Array(Ye),yo=0;yo<Ye;yo++)Ro[yo]=arguments[yo+2];Ce.children=Ro}if(C&&C.defaultProps)for(be in Ye=C.defaultProps,Ye)Ce[be]===void 0&&(Ce[be]=Ye[be]);return ce(C,Ne,Ce)},De.createRef=function(){return{current:null}},De.forwardRef=function(C){return{$$typeof:m,render:C}},De.isValidElement=ie,De.lazy=function(C){return{$$typeof:g,_payload:{_status:-1,_result:C},_init:se}},De.memo=function(C,P){return{$$typeof:p,type:C,compare:P===void 0?null:P}},De.startTransition=function(C){var P=q.T,ae={};q.T=ae;try{var be=C(),Ce=q.S;Ce!==null&&Ce(ae,be),typeof be=="object"&&be!==null&&typeof be.then=="function"&&be.then(H,ze)}catch(Ne){ze(Ne)}finally{P!==null&&ae.types!==null&&(P.types=ae.types),q.T=P}},De.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},De.use=function(C){return q.H.use(C)},De.useActionState=function(C,P,ae){return q.H.useActionState(C,P,ae)},De.useCallback=function(C,P){return q.H.useCallback(C,P)},De.useContext=function(C){return q.H.useContext(C)},De.useDebugValue=function(){},De.useDeferredValue=function(C,P){return q.H.useDeferredValue(C,P)},De.useEffect=function(C,P){return q.H.useEffect(C,P)},De.useEffectEvent=function(C){return q.H.useEffectEvent(C)},De.useId=function(){return q.H.useId()},De.useImperativeHandle=function(C,P,ae){return q.H.useImperativeHandle(C,P,ae)},De.useInsertionEffect=function(C,P){return q.H.useInsertionEffect(C,P)},De.useLayoutEffect=function(C,P){return q.H.useLayoutEffect(C,P)},De.useMemo=function(C,P){return q.H.useMemo(C,P)},De.useOptimistic=function(C,P){return q.H.useOptimistic(C,P)},De.useReducer=function(C,P,ae){return q.H.useReducer(C,P,ae)},De.useRef=function(C){return q.H.useRef(C)},De.useState=function(C){return q.H.useState(C)},De.useSyncExternalStore=function(C,P,ae){return q.H.useSyncExternalStore(C,P,ae)},De.useTransition=function(){return q.H.useTransition()},De.version="19.2.5",De}var Jv;function rm(){return Jv||(Jv=1,Lf.exports=qz()),Lf.exports}var S=rm();const re=Hz(S),Zz=e=>e.toLowerCase().split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(""),Ox=e=>e.replace(/([A-Z])/g,n=>`-${n[0].toLowerCase()}`),Pz=(e,n,r={})=>{if(e instanceof Element){const i=Gz(e.classList,n,r);i!==""&&(e.className=i),Object.keys(n).forEach(c=>{if(!(c==="children"||c==="style"||c==="ref"||c==="class"||c==="className"||c==="forwardedRef"))if(c.indexOf("on")===0&&c[2]===c[2].toUpperCase()){const d=c.substring(2),u=d[0].toLowerCase()+d.substring(1);$x(u)||Jz(e,u,n[c])}else e[c]=n[c],typeof n[c]==="string"&&e.setAttribute(Ox(c),n[c])})}},Gz=(e,n,r)=>{const i=n.className||n.class,c=r.className||r.class,d=Of(e),u=Of(i?i.split(" "):[]),m=Of(c?c.split(" "):[]),h=[];return d.forEach(p=>{u.has(p)?(h.push(p),u.delete(p)):m.has(p)||h.push(p)}),u.forEach(p=>h.push(p)),h.join(" ")},Yz=e=>e==="doubleclick"?"dblclick":e;const $x=e=>{if(typeof document>"u")return!0;{const n="on"+Yz(e);let r=n in document;if(!r){const i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return r}},Jz=(e,n,r)=>{const i=e.__events||(e.__events={}),c=i[n];c&&e.removeEventListener(n,c),e.addEventListener(n,i[n]=function(u){r&&r.call(this,u)})},Of=e=>{const n=new Map;return e.forEach(r=>n.set(r,r)),n};let mb;const Xz=e=>{mb=e},Wz=(e,n)=>{typeof e=="function"?e(n):e!=null&&(e.current=n)},Qz=(...e)=>n=>{e.forEach(r=>{Wz(r,n)})},e4=(e,n)=>{const r=(i,c)=>re.createElement(e,{...i,forwardedRef:c});return r.displayName=n,re.forwardRef(r)},Oe=(e,n,r,i)=>{const c=Zz(e),d=class extends re.Component{componentEl;setComponentElRef=u=>{this.componentEl=u};constructor(u){super(u)}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(u){Pz(this.componentEl,this.props,u)}render(){const{children:u,forwardedRef:m,style:h,className:p,ref:g,...v}=this.props,z={...Object.keys(v).reduce((j,E)=>{const L=v[E];if(E.indexOf("on")===0&&E[2]===E[2].toUpperCase()){const y=E.substring(2).toLowerCase();typeof document<"u"&&$x(y)&&(j[E]=L)}else{const y=typeof L;(y==="string"||y==="boolean"||y==="number")&&(j[Ox(E)]=L)}return j},{}),ref:Qz(m,this.setComponentElRef),style:h},$=typeof mb=="function"?mb(e):e;return S.createElement($,z,u)}static get displayName(){return c}};return e4(d,c)},Vi=Oe("kol-abbr"),ln=Oe("kol-accordion"),Sn=Oe("kol-alert"),gs=Oe("kol-avatar"),So=Oe("kol-badge"),As=Oe("kol-breadcrumb"),X=Oe("kol-button"),Ge=Oe("kol-button-link"),Re=Oe("kol-card"),jn=Oe("kol-combobox"),ir=Oe("kol-details"),am=Oe("kol-drawer"),kn=Oe("kol-form"),ue=Oe("kol-heading"),vt=Oe("kol-icon"),o4=Oe("kol-image"),ao=Oe("kol-input-checkbox"),Xo=Oe("kol-input-color"),He=Oe("kol-input-date"),Wo=Oe("kol-input-email"),Mo=Oe("kol-input-file"),Ao=Oe("kol-input-number"),Lo=Oe("kol-input-password"),Oo=Oe("kol-input-radio"),tn=Oe("kol-input-range"),Le=Oe("kol-input-text"),Cs=Oe("kol-kolibri"),xe=Oe("kol-link"),We=Oe("kol-link-button"),Xv=Oe("kol-modal"),jl=Oe("kol-nav"),Ai=Oe("kol-pagination"),hb=Oe("kol-popover-button"),ar=Oe("kol-progress"),Nx=Oe("kol-quote"),Qo=Oe("kol-select"),pn=Oe("kol-single-select"),n4=Oe("kol-skip-nav"),od=Oe("kol-spin"),wl=Oe("kol-split-button"),ho=Oe("kol-table-stateful"),Al=Oe("kol-table-stateless"),dr=Oe("kol-tabs"),eo=Oe("kol-textarea"),ya=Oe("kol-toolbar"),Rx=Oe("kol-tree"),nn=Oe("kol-tree-item"),nd=Oe("kol-version");function Zr(e){const n=document.createElement("div");return n.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(n),n}var $f={exports:{}},Ci={},Nf={exports:{}},Rf={};var Wv;function t4(){return Wv||(Wv=1,(function(e){function n(M,G){var se=M.length;M.push(G);e:for(;0<se;){var ze=se-1>>>1,Ae=M[ze];if(0<c(Ae,G))M[ze]=G,M[se]=Ae,se=ze;else break e}}function r(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var G=M[0],se=M.pop();if(se!==G){M[0]=se;e:for(var ze=0,Ae=M.length,C=Ae>>>1;ze<C;){var P=2*(ze+1)-1,ae=M[P],be=P+1,Ce=M[be];if(0>c(ae,se))be<Ae&&0>c(Ce,ae)?(M[ze]=Ce,M[be]=se,ze=be):(M[ze]=ae,M[P]=se,ze=P);else if(be<Ae&&0>c(Ce,se))M[ze]=Ce,M[be]=se,ze=be;else break e}}return G}function c(M,G){var se=M.sortIndex-G.sortIndex;return se!==0?se:M.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;e.unstable_now=function(){return d.now()}}else{var u=Date,m=u.now();e.unstable_now=function(){return u.now()-m}}var h=[],p=[],g=1,v=null,_=3,z=!1,$=!1,j=!1,E=!1,L=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function N(M){for(var G=r(p);G!==null;){if(G.callback===null)i(p);else if(G.startTime<=M)i(p),G.sortIndex=G.expirationTime,n(h,G);else break;G=r(p)}}function D(M){if(j=!1,N(M),!$)if(r(h)!==null)$=!0,H||(H=!0,ee());else{var G=r(p);G!==null&&$e(D,G.startTime-M)}}var H=!1,q=-1,oe=5,ce=-1;function Ve(){return E?!0:!(e.unstable_now()-ce<oe)}function ie(){if(E=!1,H){var M=e.unstable_now();ce=M;var G=!0;try{e:{$=!1,j&&(j=!1,y(q),q=-1),z=!0;var se=_;try{o:{for(N(M),v=r(h);v!==null&&!(v.expirationTime>M&&Ve());){var ze=v.callback;if(typeof ze=="function"){v.callback=null,_=v.priorityLevel;var Ae=ze(v.expirationTime<=M);if(M=e.unstable_now(),typeof Ae=="function"){v.callback=Ae,N(M),G=!0;break o}v===r(h)&&i(h),N(M)}else i(h);v=r(h)}if(v!==null)G=!0;else{var C=r(p);C!==null&&$e(D,C.startTime-M),G=!1}}break e}finally{v=null,_=se,z=!1}G=void 0}}finally{G?ee():H=!1}}}var ee;if(typeof w=="function")ee=function(){w(ie)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,Te=_e.port2;_e.port1.onmessage=ie,ee=function(){Te.postMessage(null)}}else ee=function(){L(ie,0)};function $e(M,G){q=L(function(){M(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):oe=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(M){switch(_){case 1:case 2:case 3:var G=3;break;default:G=_}var se=_;_=G;try{return M()}finally{_=se}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(M,G){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var se=_;_=M;try{return G()}finally{_=se}},e.unstable_scheduleCallback=function(M,G,se){var ze=e.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?ze+se:ze):se=ze,M){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=se+Ae,M={id:g++,callback:G,priorityLevel:M,startTime:se,expirationTime:Ae,sortIndex:-1},se>ze?(M.sortIndex=se,n(p,M),r(h)===null&&M===r(p)&&(j?(y(q),q=-1):j=!0,$e(D,se-ze))):(M.sortIndex=Ae,n(h,M),$||z||($=!0,H||(H=!0,ee()))),M},e.unstable_shouldYield=Ve,e.unstable_wrapCallback=function(M){var G=_;return function(){var se=_;_=G;try{return M.apply(this,arguments)}finally{_=se}}}})(Rf)),Rf}var Qv;function r4(){return Qv||(Qv=1,Nf.exports=t4()),Nf.exports}var Bf={exports:{}},yn={};var eg;function a4(){if(eg)return yn;eg=1;var e=rm();function n(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(h,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:h,containerInfo:p,implementation:g}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return yn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,yn.createPortal=function(h,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(n(299));return d(h,p,null,g)},yn.flushSync=function(h){var p=u.T,g=i.p;try{if(u.T=null,i.p=2,h)return h()}finally{u.T=p,i.p=g,i.d.f()}},yn.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(h,p))},yn.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},yn.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin),_=typeof p.integrity=="string"?p.integrity:void 0,z=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?i.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:z}):g==="script"&&i.d.X(h,{crossOrigin:v,integrity:_,fetchPriority:z,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},yn.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=m(p.as,p.crossOrigin);i.d.M(h,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(h)},yn.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin);i.d.L(h,g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},yn.preloadModule=function(h,p){if(typeof h=="string")if(p){var g=m(p.as,p.crossOrigin);i.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(h)},yn.requestFormReset=function(h){i.d.r(h)},yn.unstable_batchedUpdates=function(h,p){return h(p)},yn.useFormState=function(h,p,g){return u.H.useFormState(h,p,g)},yn.useFormStatus=function(){return u.H.useHostTransitionStatus()},yn.version="19.2.5",yn}var og;function l4(){if(og)return Bf.exports;og=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Bf.exports=a4(),Bf.exports}var ng;function i4(){if(ng)return Ci;ng=1;var e=r4(),n=rm(),r=l4();function i(o){var t="https://react.dev/errors/"+o;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+o+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function d(o){var t=o,l=o;if(o.alternate)for(;t.return;)t=t.return;else{o=t;do t=o,(t.flags&4098)!==0&&(l=t.return),o=t.return;while(o)}return t.tag===3?l:null}function u(o){if(o.tag===13){var t=o.memoizedState;if(t===null&&(o=o.alternate,o!==null&&(t=o.memoizedState)),t!==null)return t.dehydrated}return null}function m(o){if(o.tag===31){var t=o.memoizedState;if(t===null&&(o=o.alternate,o!==null&&(t=o.memoizedState)),t!==null)return t.dehydrated}return null}function h(o){if(d(o)!==o)throw Error(i(188))}function p(o){var t=o.alternate;if(!t){if(t=d(o),t===null)throw Error(i(188));return t!==o?null:o}for(var l=o,s=t;;){var f=l.return;if(f===null)break;var b=f.alternate;if(b===null){if(s=f.return,s!==null){l=s;continue}break}if(f.child===b.child){for(b=f.child;b;){if(b===l)return h(f),o;if(b===s)return h(f),t;b=b.sibling}throw Error(i(188))}if(l.return!==s.return)l=f,s=b;else{for(var k=!1,x=f.child;x;){if(x===l){k=!0,l=f,s=b;break}if(x===s){k=!0,s=f,l=b;break}x=x.sibling}if(!k){for(x=b.child;x;){if(x===l){k=!0,l=b,s=f;break}if(x===s){k=!0,s=b,l=f;break}x=x.sibling}if(!k)throw Error(i(189))}}if(l.alternate!==s)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?o:t}function g(o){var t=o.tag;if(t===5||t===26||t===27||t===6)return o;for(o=o.child;o!==null;){if(t=g(o),t!==null)return t;o=o.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),Ve=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function ee(o){return o===null||typeof o!="object"?null:(o=ie&&o[ie]||o["@@iterator"],typeof o=="function"?o:null)}var _e=Symbol.for("react.client.reference");function Te(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===_e?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case j:return"Fragment";case L:return"Profiler";case E:return"StrictMode";case D:return"Suspense";case H:return"SuspenseList";case ce:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case $:return"Portal";case w:return o.displayName||"Context";case y:return(o._context.displayName||"Context")+".Consumer";case N:var t=o.render;return o=o.displayName,o||(o=t.displayName||t.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case q:return t=o.displayName||null,t!==null?t:Te(o.type)||"Memo";case oe:t=o._payload,o=o._init;try{return Te(o(t))}catch{}}return null}var $e=Array.isArray,M=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},ze=[],Ae=-1;function C(o){return{current:o}}function P(o){0>Ae||(o.current=ze[Ae],ze[Ae]=null,Ae--)}function ae(o,t){Ae++,ze[Ae]=o.current,o.current=t}var be=C(null),Ce=C(null),Ne=C(null),Ye=C(null);function Ro(o,t){switch(ae(Ne,t),ae(Ce,o),ae(be,null),t.nodeType){case 9:case 11:o=(o=t.documentElement)&&(o=o.namespaceURI)?pv(o):0;break;default:if(o=t.tagName,t=t.namespaceURI)t=pv(t),o=kv(t,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}P(be),ae(be,o)}function yo(){P(be),P(Ce),P(Ne)}function xt(o){o.memoizedState!==null&&ae(Ye,o);var t=be.current,l=kv(t,o.type);t!==l&&(ae(Ce,o),ae(be,l))}function Dt(o){Ce.current===o&&(P(be),P(Ce)),Ye.current===o&&(P(Ye),wi._currentValue=se)}var Mt,mr;function yt(o){if(Mt===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Mt=t&&t[1]||"",mr=-1<l.stack.indexOf(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/kol-abbr.entry-CjQNrlKz.js","assets/label-pIlPsS_A-DCbno6oN.js","assets/kol-accordion.entry-WOC2_SVb.js","assets/Collapsible-P3A4TxrI-CnAwRlp0.js","assets/tslib.es6-CxX45GIN-BGVaTf34.js","assets/clsx-eK3rPvPS-B-dksMZM.js","assets/Heading-htOdgBmb-BDm3BCT0.js","assets/disabled-BWCjJbVt-C5XFv2va.js","assets/open-BKi_QyJH-CJuZ-0wW.js","assets/dev.utils-DyWeFmrg-D9tz9G9N.js","assets/validation-DiMQDBJs-DdqpYA8w.js","assets/kol-badge.entry-DoaJbUVI.js","assets/Alert-D9ud5e41-Du7KANFA.js","assets/i18n-DaJ9SqJN-BvWqTNxQ.js","assets/color-Rjy4ux-w-CSgUSnIe.js","assets/icons-vgwIIwAr-pgRJoBHQ.js","assets/Span-DpYoIlZw-DwzgbCmV.js","assets/Icon-CJlicMRJ-D75Db3zT.js","assets/reuse-CX4AQDkS-BaVSFETn.js","assets/markdown-B2L4G_gq-BEQKScSi.js","assets/InternalUnderlinedBadgeText-vl7_Qoxw-CzB8OTMN.js","assets/isObject-DvSELytj-CqVuuo6Q.js","assets/kol-breadcrumb.entry-DxejoCS8.js","assets/unique-nav-labels-CZlIBq4i-DNehkhur.js","assets/validation-1DoDEg2R-B0S5K94j.js","assets/kol-details.entry-B3do5TX6.js","assets/kol-drawer.entry-CNGxaXCK.js","assets/align-zs9k2ruM-Bf3lME-4.js","assets/has-closer-CtKB8I6M-DPbi7eiK.js","assets/tooltip-open-tracking-rBbBgPWP-DRkgcff2.js","assets/kol-form.entry-DfTflWe4.js","assets/kol-heading.entry-CsNtUT-w.js","assets/kol-icon.entry-Di2px5QM.js","assets/kol-image.entry-DxyOlIuP.js","assets/image-source-CvUc2vv--D6k0yxnn.js","assets/kol-input-checkbox.entry-DuQWHNJH.js","assets/controller-QlJVQTR7-Lrp9NTGf.js","assets/required-U8Z2uWB--q5Uu8kh-.js","assets/orientation-DgLUKPfF-CgMmx3Wg.js","assets/FormFieldStateWrapper-Bygx9jNo-C4dzX9ru.js","assets/access-and-short-key-mAD3xXKp-DrVYvB1K.js","assets/hide-label-B7Pi0cle-DRyDEErn.js","assets/tooltip-align-CD1KA6X0-z1cJrm67.js","assets/associated.controller-DZY0qF8S-DGAmV4up.js","assets/Input-Be9LDid3-3Mpqf3OO.js","assets/FieldControlStateWrapper-CbhX9GTT-CIReB8G-.js","assets/controller-BsKjyZ3W-BgWn3_N9.js","assets/kol-input-color.entry-huy-9Nqo.js","assets/controller-icon-D4Q7Hm_x-DPIY0TDm.js","assets/InputStateWrapper-Dun4iiM9-CkVN8ewg.js","assets/auto-complete-DeJJLXfx-CXRvWO-N.js","assets/suggestions-iUTn1W4N-BBgbUC4O.js","assets/kol-input-date.entry-CwA-jdkD.js","assets/read-only-BJgT2VC5-B3h--fhp.js","assets/kol-input-email.entry-yCjwDXd8.js","assets/max-length-behavior-Brcdtags-fD4D_85m.js","assets/multiple-D_Lhd_Ou-jOIFuXEN.js","assets/controller-Btg9ItnB-B8aGP6Yg.js","assets/spell-check-CNVzo7wd-CNzWP_KJ.js","assets/controller-KFygbHB0-muT7mlU0.js","assets/placeholder-DaUZigJ8-kuKwZwvT.js","assets/kol-input-file.entry-Be5RqcNz.js","assets/kol-input-number.entry-CTry5MhA.js","assets/kol-input-password.entry-DStX3Qwf.js","assets/kol-input-radio.entry-CY2liax-.js","assets/kol-input-text.entry-BKvuUwIi.js","assets/kol-kolibri.entry-CEwJjYk0.js","assets/kol-modal.entry-CrMRW4yV.js","assets/kol-nav.entry-6oFRqe3L.js","assets/kol-progress.entry-37EXIMWi.js","assets/kol-quote.entry-BW1v5Kf-.js","assets/kol-skip-nav.entry-Bs3DoomG.js","assets/kol-spin.entry-BKH9u6Ox.js","assets/show-Bv---Je2-BaRlfZIG.js","assets/kol-split-button.entry-B6Rsnn4t.js","assets/kol-table-stateful.entry-B41bM7yo.js","assets/table-settings-BRjvSgT8-DvcQpxW1.js","assets/keyboard-D6PoWr38-BGYQJqo4.js","assets/kol-tabs.entry-DlbcvCOu.js","assets/kol-textarea.entry-nM90KcSC.js","assets/rows-BxQMw7lW-Raoebl6O.js","assets/kol-toast-container.entry-DvoMv7DM.js","assets/kol-toolbar.entry-Ba3Gblsz.js","assets/kol-version.entry-nmZlcTN2.js","assets/kol-alert-wc.entry-BltH-9uh.js","assets/kol-avatar-wc.entry-DoFvrMOv.js","assets/kol-button-wc.entry-SkyKXWCj.js","assets/button-variant-neDtqOV--DGa0AcGX.js","assets/custom-class-dk7tJlhh-KM2CTz3Z.js","assets/inline-C2QF3Rdx-HBTGsuzY.js","assets/kol-card-wc.entry-DjXnKoIP.js","assets/kol-combobox.entry-C1zftER1.js","assets/CustomSuggestionsOptionsGroup-C6v0QcDe-DwCdEn27.js","assets/kol-input-range.entry-Dsty-gwz.js","assets/kol-link-wc.entry-D8iBi5Sq.js","assets/href-C62X6aSC-BxAwMvq7.js","assets/kol-pagination-wc.entry-BxNqb134.js","assets/kol-popover-button-wc.entry-BTN5HFQU.js","assets/align-floating-elements-6A9FkBi8-CKN_AIds.js","assets/kol-popover-wc.entry-1FZpYTMQ.js","assets/kol-select-wc.entry-DBjXQP73.js","assets/kol-single-select.entry-tXCCW7UA.js","assets/kol-table-settings-wc.entry-BSYE7EkV.js","assets/kol-table-stateless-wc.entry-DRaqNrsd.js","assets/kol-tooltip-wc.entry-Chhn7QJk.js","assets/kol-tree-item-wc.entry-Cbz5eHnW.js","assets/kol-tree-wc.entry-XtCUIpLM.js","assets/devtools-BkaBSMly-DWgisyPW.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))i(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const u of d.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(c){if(c.ep)return;c.ep=!0;const d=r(c);fetch(c.href,d)}})();function Hz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ef={exports:{}},Ci={};var Pv;function Vz(){if(Pv)return Ci;Pv=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,c,d){var u=null;if(d!==void 0&&(u=""+d),c.key!==void 0&&(u=""+c.key),"key"in c){d={};for(var m in c)m!=="key"&&(d[m]=c[m])}else d=c;return c=d.ref,{$$typeof:e,type:i,key:u,ref:c!==void 0?c:null,props:d}}return Ci.Fragment=n,Ci.jsx=r,Ci.jsxs=r,Ci}var Gv;function Kz(){return Gv||(Gv=1,Ef.exports=Vz()),Ef.exports}var a=Kz(),Lf={exports:{}},De={};var Yv;function qz(){if(Yv)return De;Yv=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),u=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function z(C){return C===null||typeof C!="object"?null:(C=_&&C[_]||C["@@iterator"],typeof C=="function"?C:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,E={};function L(C,P,te){this.props=C,this.context=P,this.refs=E,this.updater=te||$}L.prototype.isReactComponent={},L.prototype.setState=function(C,P){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,P,"setState")},L.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function y(){}y.prototype=L.prototype;function w(C,P,te){this.props=C,this.context=P,this.refs=E,this.updater=te||$}var N=w.prototype=new y;N.constructor=w,j(N,L.prototype),N.isPureReactComponent=!0;var D=Array.isArray;function H(){}var q={H:null,A:null,T:null,S:null},oe=Object.prototype.hasOwnProperty;function de(C,P,te){var be=te.ref;return{$$typeof:e,type:C,key:P,ref:be!==void 0?be:null,props:te}}function Ke(C,P){return de(C.type,P,C.props)}function ae(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function ee(C){var P={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(te){return P[te]})}var _e=/\/+/g;function Te(C,P){return typeof C=="object"&&C!==null&&C.key!=null?ee(""+C.key):P.toString(36)}function $e(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(H,H):(C.status="pending",C.then(function(P){C.status==="pending"&&(C.status="fulfilled",C.value=P)},function(P){C.status==="pending"&&(C.status="rejected",C.reason=P)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function M(C,P,te,be,Ae){var Re=typeof C;(Re==="undefined"||Re==="boolean")&&(C=null);var He=!1;if(C===null)He=!0;else switch(Re){case"bigint":case"string":case"number":He=!0;break;case"object":switch(C.$$typeof){case e:case n:He=!0;break;case g:return He=C._init,M(He(C._payload),P,te,be,Ae)}}if(He)return Ae=Ae(C),He=be===""?"."+Te(C,0):be,D(Ae)?(te="",He!=null&&(te=He.replace(_e,"$&/")+"/"),M(Ae,P,te,"",function(Dt){return Dt})):Ae!=null&&(ae(Ae)&&(Ae=Ke(Ae,te+(Ae.key==null||C&&C.key===Ae.key?"":(""+Ae.key).replace(_e,"$&/")+"/")+He)),P.push(Ae)),1;He=0;var Vo=be===""?".":be+":";if(D(C))for(var yo=0;yo<C.length;yo++)be=C[yo],Re=Vo+Te(be,yo),He+=M(be,P,te,Re,Ae);else if(yo=z(C),typeof yo=="function")for(C=yo.call(C),yo=0;!(be=C.next()).done;)be=be.value,Re=Vo+Te(be,yo++),He+=M(be,P,te,Re,Ae);else if(Re==="object"){if(typeof C.then=="function")return M($e(C),P,te,be,Ae);throw P=String(C),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return He}function G(C,P,te){if(C==null)return C;var be=[],Ae=0;return M(C,be,"","",function(Re){return P.call(te,Re,Ae++)}),be}function ce(C){if(C._status===-1){var P=C._result;P=P(),P.then(function(te){(C._status===0||C._status===-1)&&(C._status=1,C._result=te)},function(te){(C._status===0||C._status===-1)&&(C._status=2,C._result=te)}),C._status===-1&&(C._status=0,C._result=P)}if(C._status===1)return C._result.default;throw C._result}var ze=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},Ee={map:G,forEach:function(C,P,te){G(C,function(){P.apply(this,arguments)},te)},count:function(C){var P=0;return G(C,function(){P++}),P},toArray:function(C){return G(C,function(P){return P})||[]},only:function(C){if(!ae(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return De.Activity=v,De.Children=Ee,De.Component=L,De.Fragment=r,De.Profiler=c,De.PureComponent=w,De.StrictMode=i,De.Suspense=h,De.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,De.__COMPILER_RUNTIME={__proto__:null,c:function(C){return q.H.useMemoCache(C)}},De.cache=function(C){return function(){return C.apply(null,arguments)}},De.cacheSignal=function(){return null},De.cloneElement=function(C,P,te){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var be=j({},C.props),Ae=C.key;if(P!=null)for(Re in P.key!==void 0&&(Ae=""+P.key),P)!oe.call(P,Re)||Re==="key"||Re==="__self"||Re==="__source"||Re==="ref"&&P.ref===void 0||(be[Re]=P[Re]);var Re=arguments.length-2;if(Re===1)be.children=te;else if(1<Re){for(var He=Array(Re),Vo=0;Vo<Re;Vo++)He[Vo]=arguments[Vo+2];be.children=He}return de(C.type,Ae,be)},De.createContext=function(C){return C={$$typeof:u,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:d,_context:C},C},De.createElement=function(C,P,te){var be,Ae={},Re=null;if(P!=null)for(be in P.key!==void 0&&(Re=""+P.key),P)oe.call(P,be)&&be!=="key"&&be!=="__self"&&be!=="__source"&&(Ae[be]=P[be]);var He=arguments.length-2;if(He===1)Ae.children=te;else if(1<He){for(var Vo=Array(He),yo=0;yo<He;yo++)Vo[yo]=arguments[yo+2];Ae.children=Vo}if(C&&C.defaultProps)for(be in He=C.defaultProps,He)Ae[be]===void 0&&(Ae[be]=He[be]);return de(C,Re,Ae)},De.createRef=function(){return{current:null}},De.forwardRef=function(C){return{$$typeof:m,render:C}},De.isValidElement=ae,De.lazy=function(C){return{$$typeof:g,_payload:{_status:-1,_result:C},_init:ce}},De.memo=function(C,P){return{$$typeof:p,type:C,compare:P===void 0?null:P}},De.startTransition=function(C){var P=q.T,te={};q.T=te;try{var be=C(),Ae=q.S;Ae!==null&&Ae(te,be),typeof be=="object"&&be!==null&&typeof be.then=="function"&&be.then(H,ze)}catch(Re){ze(Re)}finally{P!==null&&te.types!==null&&(P.types=te.types),q.T=P}},De.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},De.use=function(C){return q.H.use(C)},De.useActionState=function(C,P,te){return q.H.useActionState(C,P,te)},De.useCallback=function(C,P){return q.H.useCallback(C,P)},De.useContext=function(C){return q.H.useContext(C)},De.useDebugValue=function(){},De.useDeferredValue=function(C,P){return q.H.useDeferredValue(C,P)},De.useEffect=function(C,P){return q.H.useEffect(C,P)},De.useEffectEvent=function(C){return q.H.useEffectEvent(C)},De.useId=function(){return q.H.useId()},De.useImperativeHandle=function(C,P,te){return q.H.useImperativeHandle(C,P,te)},De.useInsertionEffect=function(C,P){return q.H.useInsertionEffect(C,P)},De.useLayoutEffect=function(C,P){return q.H.useLayoutEffect(C,P)},De.useMemo=function(C,P){return q.H.useMemo(C,P)},De.useOptimistic=function(C,P){return q.H.useOptimistic(C,P)},De.useReducer=function(C,P,te){return q.H.useReducer(C,P,te)},De.useRef=function(C){return q.H.useRef(C)},De.useState=function(C){return q.H.useState(C)},De.useSyncExternalStore=function(C,P,te){return q.H.useSyncExternalStore(C,P,te)},De.useTransition=function(){return q.H.useTransition()},De.version="19.2.5",De}var Jv;function rm(){return Jv||(Jv=1,Lf.exports=qz()),Lf.exports}var S=rm();const re=Hz(S),Zz=e=>e.toLowerCase().split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(""),Ox=e=>e.replace(/([A-Z])/g,n=>`-${n[0].toLowerCase()}`),Pz=(e,n,r={})=>{if(e instanceof Element){const i=Gz(e.classList,n,r);i!==""&&(e.className=i),Object.keys(n).forEach(c=>{if(!(c==="children"||c==="style"||c==="ref"||c==="class"||c==="className"||c==="forwardedRef"))if(c.indexOf("on")===0&&c[2]===c[2].toUpperCase()){const d=c.substring(2),u=d[0].toLowerCase()+d.substring(1);$x(u)||Jz(e,u,n[c])}else e[c]=n[c],typeof n[c]==="string"&&e.setAttribute(Ox(c),n[c])})}},Gz=(e,n,r)=>{const i=n.className||n.class,c=r.className||r.class,d=Of(e),u=Of(i?i.split(" "):[]),m=Of(c?c.split(" "):[]),h=[];return d.forEach(p=>{u.has(p)?(h.push(p),u.delete(p)):m.has(p)||h.push(p)}),u.forEach(p=>h.push(p)),h.join(" ")},Yz=e=>e==="doubleclick"?"dblclick":e;const $x=e=>{if(typeof document>"u")return!0;{const n="on"+Yz(e);let r=n in document;if(!r){const i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return r}},Jz=(e,n,r)=>{const i=e.__events||(e.__events={}),c=i[n];c&&e.removeEventListener(n,c),e.addEventListener(n,i[n]=function(u){r&&r.call(this,u)})},Of=e=>{const n=new Map;return e.forEach(r=>n.set(r,r)),n};let mb;const Xz=e=>{mb=e},Wz=(e,n)=>{typeof e=="function"?e(n):e!=null&&(e.current=n)},Qz=(...e)=>n=>{e.forEach(r=>{Wz(r,n)})},e4=(e,n)=>{const r=(i,c)=>re.createElement(e,{...i,forwardedRef:c});return r.displayName=n,re.forwardRef(r)},Oe=(e,n,r,i)=>{const c=Zz(e),d=class extends re.Component{componentEl;setComponentElRef=u=>{this.componentEl=u};constructor(u){super(u)}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(u){Pz(this.componentEl,this.props,u)}render(){const{children:u,forwardedRef:m,style:h,className:p,ref:g,...v}=this.props,z={...Object.keys(v).reduce((j,E)=>{const L=v[E];if(E.indexOf("on")===0&&E[2]===E[2].toUpperCase()){const y=E.substring(2).toLowerCase();typeof document<"u"&&$x(y)&&(j[E]=L)}else{const y=typeof L;(y==="string"||y==="boolean"||y==="number")&&(j[Ox(E)]=L)}return j},{}),ref:Qz(m,this.setComponentElRef),style:h},$=typeof mb=="function"?mb(e):e;return S.createElement($,z,u)}static get displayName(){return c}};return e4(d,c)},qi=Oe("kol-abbr"),dn=Oe("kol-accordion"),jn=Oe("kol-alert"),gs=Oe("kol-avatar"),So=Oe("kol-badge"),As=Oe("kol-breadcrumb"),X=Oe("kol-button"),Ye=Oe("kol-button-link"),Ne=Oe("kol-card"),Tn=Oe("kol-combobox"),ar=Oe("kol-details"),am=Oe("kol-drawer"),vn=Oe("kol-form"),ue=Oe("kol-heading"),xt=Oe("kol-icon"),o4=Oe("kol-image"),lo=Oe("kol-input-checkbox"),on=Oe("kol-input-color"),Ve=Oe("kol-input-date"),nn=Oe("kol-input-email"),Io=Oe("kol-input-file"),Co=Oe("kol-input-number"),$o=Oe("kol-input-password"),No=Oe("kol-input-radio"),ln=Oe("kol-input-range"),Le=Oe("kol-input-text"),Cs=Oe("kol-kolibri"),xe=Oe("kol-link"),We=Oe("kol-link-button"),Xv=Oe("kol-modal"),Tl=Oe("kol-nav"),Ei=Oe("kol-pagination"),hb=Oe("kol-popover-button"),tr=Oe("kol-progress"),Nx=Oe("kol-quote"),tn=Oe("kol-select"),kn=Oe("kol-single-select"),n4=Oe("kol-skip-nav"),od=Oe("kol-spin"),zl=Oe("kol-split-button"),ho=Oe("kol-table-stateful"),Cl=Oe("kol-table-stateless"),cr=Oe("kol-tabs"),eo=Oe("kol-textarea"),wa=Oe("kol-toolbar"),Rx=Oe("kol-tree"),an=Oe("kol-tree-item"),nd=Oe("kol-version");function Pr(e){const n=document.createElement("div");return n.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(n),n}var $f={exports:{}},Li={},Nf={exports:{}},Rf={};var Wv;function t4(){return Wv||(Wv=1,(function(e){function n(M,G){var ce=M.length;M.push(G);e:for(;0<ce;){var ze=ce-1>>>1,Ee=M[ze];if(0<c(Ee,G))M[ze]=G,M[ce]=Ee,ce=ze;else break e}}function r(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var G=M[0],ce=M.pop();if(ce!==G){M[0]=ce;e:for(var ze=0,Ee=M.length,C=Ee>>>1;ze<C;){var P=2*(ze+1)-1,te=M[P],be=P+1,Ae=M[be];if(0>c(te,ce))be<Ee&&0>c(Ae,te)?(M[ze]=Ae,M[be]=ce,ze=be):(M[ze]=te,M[P]=ce,ze=P);else if(be<Ee&&0>c(Ae,ce))M[ze]=Ae,M[be]=ce,ze=be;else break e}}return G}function c(M,G){var ce=M.sortIndex-G.sortIndex;return ce!==0?ce:M.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;e.unstable_now=function(){return d.now()}}else{var u=Date,m=u.now();e.unstable_now=function(){return u.now()-m}}var h=[],p=[],g=1,v=null,_=3,z=!1,$=!1,j=!1,E=!1,L=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function N(M){for(var G=r(p);G!==null;){if(G.callback===null)i(p);else if(G.startTime<=M)i(p),G.sortIndex=G.expirationTime,n(h,G);else break;G=r(p)}}function D(M){if(j=!1,N(M),!$)if(r(h)!==null)$=!0,H||(H=!0,ee());else{var G=r(p);G!==null&&$e(D,G.startTime-M)}}var H=!1,q=-1,oe=5,de=-1;function Ke(){return E?!0:!(e.unstable_now()-de<oe)}function ae(){if(E=!1,H){var M=e.unstable_now();de=M;var G=!0;try{e:{$=!1,j&&(j=!1,y(q),q=-1),z=!0;var ce=_;try{o:{for(N(M),v=r(h);v!==null&&!(v.expirationTime>M&&Ke());){var ze=v.callback;if(typeof ze=="function"){v.callback=null,_=v.priorityLevel;var Ee=ze(v.expirationTime<=M);if(M=e.unstable_now(),typeof Ee=="function"){v.callback=Ee,N(M),G=!0;break o}v===r(h)&&i(h),N(M)}else i(h);v=r(h)}if(v!==null)G=!0;else{var C=r(p);C!==null&&$e(D,C.startTime-M),G=!1}}break e}finally{v=null,_=ce,z=!1}G=void 0}}finally{G?ee():H=!1}}}var ee;if(typeof w=="function")ee=function(){w(ae)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,Te=_e.port2;_e.port1.onmessage=ae,ee=function(){Te.postMessage(null)}}else ee=function(){L(ae,0)};function $e(M,G){q=L(function(){M(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):oe=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(M){switch(_){case 1:case 2:case 3:var G=3;break;default:G=_}var ce=_;_=G;try{return M()}finally{_=ce}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(M,G){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ce=_;_=M;try{return G()}finally{_=ce}},e.unstable_scheduleCallback=function(M,G,ce){var ze=e.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?ze+ce:ze):ce=ze,M){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5e3}return Ee=ce+Ee,M={id:g++,callback:G,priorityLevel:M,startTime:ce,expirationTime:Ee,sortIndex:-1},ce>ze?(M.sortIndex=ce,n(p,M),r(h)===null&&M===r(p)&&(j?(y(q),q=-1):j=!0,$e(D,ce-ze))):(M.sortIndex=Ee,n(h,M),$||z||($=!0,H||(H=!0,ee()))),M},e.unstable_shouldYield=Ke,e.unstable_wrapCallback=function(M){var G=_;return function(){var ce=_;_=G;try{return M.apply(this,arguments)}finally{_=ce}}}})(Rf)),Rf}var Qv;function r4(){return Qv||(Qv=1,Nf.exports=t4()),Nf.exports}var Bf={exports:{}},yn={};var eg;function a4(){if(eg)return yn;eg=1;var e=rm();function n(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(h,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:h,containerInfo:p,implementation:g}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return yn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,yn.createPortal=function(h,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(n(299));return d(h,p,null,g)},yn.flushSync=function(h){var p=u.T,g=i.p;try{if(u.T=null,i.p=2,h)return h()}finally{u.T=p,i.p=g,i.d.f()}},yn.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(h,p))},yn.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},yn.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin),_=typeof p.integrity=="string"?p.integrity:void 0,z=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?i.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:z}):g==="script"&&i.d.X(h,{crossOrigin:v,integrity:_,fetchPriority:z,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},yn.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=m(p.as,p.crossOrigin);i.d.M(h,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(h)},yn.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin);i.d.L(h,g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},yn.preloadModule=function(h,p){if(typeof h=="string")if(p){var g=m(p.as,p.crossOrigin);i.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(h)},yn.requestFormReset=function(h){i.d.r(h)},yn.unstable_batchedUpdates=function(h,p){return h(p)},yn.useFormState=function(h,p,g){return u.H.useFormState(h,p,g)},yn.useFormStatus=function(){return u.H.useHostTransitionStatus()},yn.version="19.2.5",yn}var og;function l4(){if(og)return Bf.exports;og=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Bf.exports=a4(),Bf.exports}var ng;function i4(){if(ng)return Li;ng=1;var e=r4(),n=rm(),r=l4();function i(o){var t="https://react.dev/errors/"+o;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+o+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function d(o){var t=o,l=o;if(o.alternate)for(;t.return;)t=t.return;else{o=t;do t=o,(t.flags&4098)!==0&&(l=t.return),o=t.return;while(o)}return t.tag===3?l:null}function u(o){if(o.tag===13){var t=o.memoizedState;if(t===null&&(o=o.alternate,o!==null&&(t=o.memoizedState)),t!==null)return t.dehydrated}return null}function m(o){if(o.tag===31){var t=o.memoizedState;if(t===null&&(o=o.alternate,o!==null&&(t=o.memoizedState)),t!==null)return t.dehydrated}return null}function h(o){if(d(o)!==o)throw Error(i(188))}function p(o){var t=o.alternate;if(!t){if(t=d(o),t===null)throw Error(i(188));return t!==o?null:o}for(var l=o,s=t;;){var f=l.return;if(f===null)break;var b=f.alternate;if(b===null){if(s=f.return,s!==null){l=s;continue}break}if(f.child===b.child){for(b=f.child;b;){if(b===l)return h(f),o;if(b===s)return h(f),t;b=b.sibling}throw Error(i(188))}if(l.return!==s.return)l=f,s=b;else{for(var k=!1,x=f.child;x;){if(x===l){k=!0,l=f,s=b;break}if(x===s){k=!0,s=f,l=b;break}x=x.sibling}if(!k){for(x=b.child;x;){if(x===l){k=!0,l=b,s=f;break}if(x===s){k=!0,s=b,l=f;break}x=x.sibling}if(!k)throw Error(i(189))}}if(l.alternate!==s)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?o:t}function g(o){var t=o.tag;if(t===5||t===26||t===27||t===6)return o;for(o=o.child;o!==null;){if(t=g(o),t!==null)return t;o=o.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),Ke=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function ee(o){return o===null||typeof o!="object"?null:(o=ae&&o[ae]||o["@@iterator"],typeof o=="function"?o:null)}var _e=Symbol.for("react.client.reference");function Te(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===_e?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case j:return"Fragment";case L:return"Profiler";case E:return"StrictMode";case D:return"Suspense";case H:return"SuspenseList";case de:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case $:return"Portal";case w:return o.displayName||"Context";case y:return(o._context.displayName||"Context")+".Consumer";case N:var t=o.render;return o=o.displayName,o||(o=t.displayName||t.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case q:return t=o.displayName||null,t!==null?t:Te(o.type)||"Memo";case oe:t=o._payload,o=o._init;try{return Te(o(t))}catch{}}return null}var $e=Array.isArray,M=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},ze=[],Ee=-1;function C(o){return{current:o}}function P(o){0>Ee||(o.current=ze[Ee],ze[Ee]=null,Ee--)}function te(o,t){Ee++,ze[Ee]=o.current,o.current=t}var be=C(null),Ae=C(null),Re=C(null),He=C(null);function Vo(o,t){switch(te(Re,t),te(Ae,o),te(be,null),t.nodeType){case 9:case 11:o=(o=t.documentElement)&&(o=o.namespaceURI)?pv(o):0;break;default:if(o=t.tagName,t=t.namespaceURI)t=pv(t),o=kv(t,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}P(be),te(be,o)}function yo(){P(be),P(Ae),P(Re)}function Dt(o){o.memoizedState!==null&&te(He,o);var t=be.current,l=kv(t,o.type);t!==l&&(te(Ae,o),te(be,l))}function Et(o){Ae.current===o&&(P(be),P(Ae)),He.current===o&&(P(He),Si._currentValue=ce)}var fr,br;function Gn(o){if(fr===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);fr=t&&t[1]||"",br=-1<l.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
-
`+
|
|
4
|
+
`+fr+o+br}var mr=!1;function hr(o,t){if(!o||mr)return"";mr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(Z){var V=Z}Reflect.construct(o,[],Q)}else{try{Q.call()}catch(Z){V=Z}o.call(Q.prototype)}}else{try{throw Error()}catch(Z){V=Z}(Q=o())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(Z){if(Z&&V&&typeof Z.stack=="string")return[Z.stack,V.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=s.DetermineComponentFrameRoot(),k=b[0],x=b[1];if(k&&x){var A=k.split(`
|
|
5
5
|
`),F=x.split(`
|
|
6
6
|
`);for(f=s=0;s<A.length&&!A[s].includes("DetermineComponentFrameRoot");)s++;for(;f<F.length&&!F[f].includes("DetermineComponentFrameRoot");)f++;if(s===A.length||f===F.length)for(s=A.length-1,f=F.length-1;1<=s&&0<=f&&A[s]!==F[f];)f--;for(;1<=s&&0<=f;s--,f--)if(A[s]!==F[f]){if(s!==1||f!==1)do if(s--,f--,0>f||A[s]!==F[f]){var Y=`
|
|
7
|
-
`+A[s].replace(" at new "," at ");return o.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",o.displayName)),Y}while(1<=s&&0<=f);break}}}finally{
|
|
7
|
+
`+A[s].replace(" at new "," at ");return o.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",o.displayName)),Y}while(1<=s&&0<=f);break}}}finally{mr=!1,Error.prepareStackTrace=l}return(l=o?o.displayName||o.name:"")?Gn(l):""}function pe(o,t){switch(o.tag){case 26:case 27:case 5:return Gn(o.type);case 16:return Gn("Lazy");case 13:return o.child!==t&&t!==null?Gn("Suspense Fallback"):Gn("Suspense");case 19:return Gn("SuspenseList");case 0:case 15:return hr(o.type,!1);case 11:return hr(o.type.render,!1);case 1:return hr(o.type,!0);case 31:return Gn("Activity");default:return""}}function ve(o){try{var t="",l=null;do t+=pe(o,l),l=o,o=o.return;while(o);return t}catch(s){return`
|
|
8
8
|
Error generating stack: `+s.message+`
|
|
9
|
-
`+s.stack}}var Be=Object.prototype.hasOwnProperty,co=e.unstable_scheduleCallback,en=e.unstable_cancelCallback,uo=e.unstable_shouldYield,T=e.unstable_requestPaint,R=e.unstable_now,I=e.unstable_getCurrentPriorityLevel,te=e.unstable_ImmediatePriority,le=e.unstable_UserBlockingPriority,ne=e.unstable_NormalPriority,he=e.unstable_LowPriority,Me=e.unstable_IdlePriority,oo=e.log,cn=e.unstable_setDisableYieldValue,xn=null,ko=null;function Et(o){if(typeof oo=="function"&&cn(o),ko&&typeof ko.setStrictMode=="function")try{ko.setStrictMode(xn,o)}catch{}}var sn=Math.clz32?Math.clz32:rc,Rl=Math.log,pd=Math.LN2;function rc(o){return o>>>=0,o===0?32:31-(Rl(o)/pd|0)|0}var La=256,Wr=262144,ac=4194304;function Qr(o){var t=o&42;if(t!==0)return t;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function lc(o,t,l){var s=o.pendingLanes;if(s===0)return 0;var f=0,b=o.suspendedLanes,k=o.pingedLanes;o=o.warmLanes;var x=s&134217727;return x!==0?(s=x&~b,s!==0?f=Qr(s):(k&=x,k!==0?f=Qr(k):l||(l=x&~o,l!==0&&(f=Qr(l))))):(x=s&~b,x!==0?f=Qr(x):k!==0?f=Qr(k):l||(l=s&~o,l!==0&&(f=Qr(l)))),f===0?0:t!==0&&t!==f&&(t&b)===0&&(b=f&-f,l=t&-t,b>=l||b===32&&(l&4194048)!==0)?t:f}function Bl(o,t){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&t)===0}function Cw(o,t){switch(o){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xm(){var o=ac;return ac<<=1,(ac&62914560)===0&&(ac=4194304),o}function kd(o){for(var t=[],l=0;31>l;l++)t.push(o);return t}function Dl(o,t){o.pendingLanes|=t,t!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Ew(o,t,l,s,f,b){var k=o.pendingLanes;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=l,o.entangledLanes&=l,o.errorRecoveryDisabledLanes&=l,o.shellSuspendCounter=0;var x=o.entanglements,A=o.expirationTimes,F=o.hiddenUpdates;for(l=k&~l;0<l;){var Y=31-sn(l),Q=1<<Y;x[Y]=0,A[Y]=-1;var V=F[Y];if(V!==null)for(F[Y]=null,Y=0;Y<V.length;Y++){var Z=V[Y];Z!==null&&(Z.lane&=-536870913)}l&=~Q}s!==0&&Wm(o,s,0),b!==0&&f===0&&o.tag!==0&&(o.suspendedLanes|=b&~(k&~t))}function Wm(o,t,l){o.pendingLanes|=t,o.suspendedLanes&=~t;var s=31-sn(t);o.entangledLanes|=t,o.entanglements[s]=o.entanglements[s]|1073741824|l&261930}function Qm(o,t){var l=o.entangledLanes|=t;for(o=o.entanglements;l;){var s=31-sn(l),f=1<<s;f&t|o[s]&t&&(o[s]|=t),l&=~f}}function eh(o,t){var l=t&-t;return l=(l&42)!==0?1:vd(l),(l&(o.suspendedLanes|t))!==0?0:l}function vd(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function gd(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function oh(){var o=G.p;return o!==0?o:(o=window.event,o===void 0?32:Uv(o.type))}function nh(o,t){var l=G.p;try{return G.p=o,t()}finally{G.p=l}}var hr=Math.random().toString(36).slice(2),dn="__reactFiber$"+hr,Rn="__reactProps$"+hr,Oa="__reactContainer$"+hr,_d="__reactEvents$"+hr,Lw="__reactListeners$"+hr,Ow="__reactHandles$"+hr,th="__reactResources$"+hr,Ml="__reactMarker$"+hr;function xd(o){delete o[dn],delete o[Rn],delete o[_d],delete o[Lw],delete o[Ow]}function $a(o){var t=o[dn];if(t)return t;for(var l=o.parentNode;l;){if(t=l[Oa]||l[dn]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(o=zv(o);o!==null;){if(l=o[dn])return l;o=zv(o)}return t}o=l,l=o.parentNode}return null}function Na(o){if(o=o[dn]||o[Oa]){var t=o.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return o}return null}function Il(o){var t=o.tag;if(t===5||t===26||t===27||t===6)return o.stateNode;throw Error(i(33))}function Ra(o){var t=o[th];return t||(t=o[th]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rn(o){o[Ml]=!0}var rh=new Set,ah={};function ea(o,t){Ba(o,t),Ba(o+"Capture",t)}function Ba(o,t){for(ah[o]=t,o=0;o<t.length;o++)rh.add(t[o])}var $w=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),lh={},ih={};function Nw(o){return Be.call(ih,o)?!0:Be.call(lh,o)?!1:$w.test(o)?ih[o]=!0:(lh[o]=!0,!1)}function ic(o,t,l){if(Nw(t))if(l===null)o.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":o.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){o.removeAttribute(t);return}}o.setAttribute(t,""+l)}}function cc(o,t,l){if(l===null)o.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(t);return}o.setAttribute(t,""+l)}}function Ut(o,t,l,s){if(s===null)o.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttributeNS(t,l,""+s)}}function ct(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function ch(o){var t=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rw(o,t,l){var s=Object.getOwnPropertyDescriptor(o.constructor.prototype,t);if(!o.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,b=s.set;return Object.defineProperty(o,t,{configurable:!0,get:function(){return f.call(this)},set:function(k){l=""+k,b.call(this,k)}}),Object.defineProperty(o,t,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(k){l=""+k},stopTracking:function(){o._valueTracker=null,delete o[t]}}}}function yd(o){if(!o._valueTracker){var t=ch(o)?"checked":"value";o._valueTracker=Rw(o,t,""+o[t])}}function sh(o){if(!o)return!1;var t=o._valueTracker;if(!t)return!0;var l=t.getValue(),s="";return o&&(s=ch(o)?o.checked?"true":"false":o.value),o=s,o!==l?(t.setValue(o),!0):!1}function sc(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var Bw=/[\n"\\]/g;function st(o){return o.replace(Bw,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function wd(o,t,l,s,f,b,k,x){o.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?o.type=k:o.removeAttribute("type"),t!=null?k==="number"?(t===0&&o.value===""||o.value!=t)&&(o.value=""+ct(t)):o.value!==""+ct(t)&&(o.value=""+ct(t)):k!=="submit"&&k!=="reset"||o.removeAttribute("value"),t!=null?zd(o,k,ct(t)):l!=null?zd(o,k,ct(l)):s!=null&&o.removeAttribute("value"),f==null&&b!=null&&(o.defaultChecked=!!b),f!=null&&(o.checked=f&&typeof f!="function"&&typeof f!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?o.name=""+ct(x):o.removeAttribute("name")}function dh(o,t,l,s,f,b,k,x){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(o.type=b),t!=null||l!=null){if(!(b!=="submit"&&b!=="reset"||t!=null)){yd(o);return}l=l!=null?""+ct(l):"",t=t!=null?""+ct(t):l,x||t===o.value||(o.value=t),o.defaultValue=t}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,o.checked=x?o.checked:!!s,o.defaultChecked=!!s,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(o.name=k),yd(o)}function zd(o,t,l){t==="number"&&sc(o.ownerDocument)===o||o.defaultValue===""+l||(o.defaultValue=""+l)}function Da(o,t,l,s){if(o=o.options,t){t={};for(var f=0;f<l.length;f++)t["$"+l[f]]=!0;for(l=0;l<o.length;l++)f=t.hasOwnProperty("$"+o[l].value),o[l].selected!==f&&(o[l].selected=f),f&&s&&(o[l].defaultSelected=!0)}else{for(l=""+ct(l),t=null,f=0;f<o.length;f++){if(o[f].value===l){o[f].selected=!0,s&&(o[f].defaultSelected=!0);return}t!==null||o[f].disabled||(t=o[f])}t!==null&&(t.selected=!0)}}function uh(o,t,l){if(t!=null&&(t=""+ct(t),t!==o.value&&(o.value=t),l==null)){o.defaultValue!==t&&(o.defaultValue=t);return}o.defaultValue=l!=null?""+ct(l):""}function fh(o,t,l,s){if(t==null){if(s!=null){if(l!=null)throw Error(i(92));if($e(s)){if(1<s.length)throw Error(i(93));s=s[0]}l=s}l==null&&(l=""),t=l}l=ct(t),o.defaultValue=l,s=o.textContent,s===l&&s!==""&&s!==null&&(o.value=s),yd(o)}function Ma(o,t){if(t){var l=o.firstChild;if(l&&l===o.lastChild&&l.nodeType===3){l.nodeValue=t;return}}o.textContent=t}var Dw=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function bh(o,t,l){var s=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?o.setProperty(t,""):t==="float"?o.cssFloat="":o[t]="":s?o.setProperty(t,l):typeof l!="number"||l===0||Dw.has(t)?t==="float"?o.cssFloat=l:o[t]=(""+l).trim():o[t]=l+"px"}function mh(o,t,l){if(t!=null&&typeof t!="object")throw Error(i(62));if(o=o.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?o.setProperty(s,""):s==="float"?o.cssFloat="":o[s]="");for(var f in t)s=t[f],t.hasOwnProperty(f)&&l[f]!==s&&bh(o,f,s)}else for(var b in t)t.hasOwnProperty(b)&&bh(o,b,t[b])}function Sd(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Mw=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Iw=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function dc(o){return Iw.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Ft(){}var jd=null;function Td(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Ia=null,Ua=null;function hh(o){var t=Na(o);if(t&&(o=t.stateNode)){var l=o[Rn]||null;e:switch(o=t.stateNode,t.type){case"input":if(wd(o,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=o;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+st(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var s=l[t];if(s!==o&&s.form===o.form){var f=s[Rn]||null;if(!f)throw Error(i(90));wd(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(t=0;t<l.length;t++)s=l[t],s.form===o.form&&sh(s)}break e;case"textarea":uh(o,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Da(o,!!l.multiple,t,!1)}}}var Ad=!1;function ph(o,t,l){if(Ad)return o(t,l);Ad=!0;try{var s=o(t);return s}finally{if(Ad=!1,(Ia!==null||Ua!==null)&&(Xc(),Ia&&(t=Ia,o=Ua,Ua=Ia=null,hh(t),o)))for(t=0;t<o.length;t++)hh(o[t])}}function Ul(o,t){var l=o.stateNode;if(l===null)return null;var s=l[Rn]||null;if(s===null)return null;l=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(o=o.type,s=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!s;break e;default:o=!1}if(o)return null;if(l&&typeof l!="function")throw Error(i(231,t,typeof l));return l}var Ht=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cd=!1;if(Ht)try{var Fl={};Object.defineProperty(Fl,"passive",{get:function(){Cd=!0}}),window.addEventListener("test",Fl,Fl),window.removeEventListener("test",Fl,Fl)}catch{Cd=!1}var pr=null,Ed=null,uc=null;function kh(){if(uc)return uc;var o,t=Ed,l=t.length,s,f="value"in pr?pr.value:pr.textContent,b=f.length;for(o=0;o<l&&t[o]===f[o];o++);var k=l-o;for(s=1;s<=k&&t[l-s]===f[b-s];s++);return uc=f.slice(o,1<s?1-s:void 0)}function fc(o){var t=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&t===13&&(o=13)):o=t,o===10&&(o=13),32<=o||o===13?o:0}function bc(){return!0}function vh(){return!1}function Bn(o){function t(l,s,f,b,k){this._reactName=l,this._targetInst=f,this.type=s,this.nativeEvent=b,this.target=k,this.currentTarget=null;for(var x in o)o.hasOwnProperty(x)&&(l=o[x],this[x]=l?l(b):b[x]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?bc:vh,this.isPropagationStopped=vh,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=bc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=bc)},persist:function(){},isPersistent:bc}),t}var oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mc=Bn(oa),Hl=v({},oa,{view:0,detail:0}),Uw=Bn(Hl),Ld,Od,Vl,hc=v({},Hl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nd,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Vl&&(Vl&&o.type==="mousemove"?(Ld=o.screenX-Vl.screenX,Od=o.screenY-Vl.screenY):Od=Ld=0,Vl=o),Ld)},movementY:function(o){return"movementY"in o?o.movementY:Od}}),gh=Bn(hc),Fw=v({},hc,{dataTransfer:0}),Hw=Bn(Fw),Vw=v({},Hl,{relatedTarget:0}),$d=Bn(Vw),Kw=v({},oa,{animationName:0,elapsedTime:0,pseudoElement:0}),qw=Bn(Kw),Zw=v({},oa,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),Pw=Bn(Zw),Gw=v({},oa,{data:0}),_h=Bn(Gw),Yw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Xw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ww(o){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(o):(o=Xw[o])?!!t[o]:!1}function Nd(){return Ww}var Qw=v({},Hl,{key:function(o){if(o.key){var t=Yw[o.key]||o.key;if(t!=="Unidentified")return t}return o.type==="keypress"?(o=fc(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Jw[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nd,charCode:function(o){return o.type==="keypress"?fc(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?fc(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),e2=Bn(Qw),o2=v({},hc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xh=Bn(o2),n2=v({},Hl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nd}),t2=Bn(n2),r2=v({},oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),a2=Bn(r2),l2=v({},hc,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),i2=Bn(l2),c2=v({},oa,{newState:0,oldState:0}),s2=Bn(c2),d2=[9,13,27,32],Rd=Ht&&"CompositionEvent"in window,Kl=null;Ht&&"documentMode"in document&&(Kl=document.documentMode);var u2=Ht&&"TextEvent"in window&&!Kl,yh=Ht&&(!Rd||Kl&&8<Kl&&11>=Kl),wh=" ",zh=!1;function Sh(o,t){switch(o){case"keyup":return d2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jh(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Fa=!1;function f2(o,t){switch(o){case"compositionend":return jh(t);case"keypress":return t.which!==32?null:(zh=!0,wh);case"textInput":return o=t.data,o===wh&&zh?null:o;default:return null}}function b2(o,t){if(Fa)return o==="compositionend"||!Rd&&Sh(o,t)?(o=kh(),uc=Ed=pr=null,Fa=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return yh&&t.locale!=="ko"?null:t.data;default:return null}}var m2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Th(o){var t=o&&o.nodeName&&o.nodeName.toLowerCase();return t==="input"?!!m2[o.type]:t==="textarea"}function Ah(o,t,l,s){Ia?Ua?Ua.push(s):Ua=[s]:Ia=s,t=rs(t,"onChange"),0<t.length&&(l=new mc("onChange","change",null,l,s),o.push({event:l,listeners:t}))}var ql=null,Zl=null;function h2(o){dv(o,0)}function pc(o){var t=Il(o);if(sh(t))return o}function Ch(o,t){if(o==="change")return t}var Eh=!1;if(Ht){var Bd;if(Ht){var Dd="oninput"in document;if(!Dd){var Lh=document.createElement("div");Lh.setAttribute("oninput","return;"),Dd=typeof Lh.oninput=="function"}Bd=Dd}else Bd=!1;Eh=Bd&&(!document.documentMode||9<document.documentMode)}function Oh(){ql&&(ql.detachEvent("onpropertychange",$h),Zl=ql=null)}function $h(o){if(o.propertyName==="value"&&pc(Zl)){var t=[];Ah(t,Zl,o,Td(o)),ph(h2,t)}}function p2(o,t,l){o==="focusin"?(Oh(),ql=t,Zl=l,ql.attachEvent("onpropertychange",$h)):o==="focusout"&&Oh()}function k2(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return pc(Zl)}function v2(o,t){if(o==="click")return pc(t)}function g2(o,t){if(o==="input"||o==="change")return pc(t)}function _2(o,t){return o===t&&(o!==0||1/o===1/t)||o!==o&&t!==t}var Pn=typeof Object.is=="function"?Object.is:_2;function Pl(o,t){if(Pn(o,t))return!0;if(typeof o!="object"||o===null||typeof t!="object"||t===null)return!1;var l=Object.keys(o),s=Object.keys(t);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var f=l[s];if(!Be.call(t,f)||!Pn(o[f],t[f]))return!1}return!0}function Nh(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Rh(o,t){var l=Nh(o);o=0;for(var s;l;){if(l.nodeType===3){if(s=o+l.textContent.length,o<=t&&s>=t)return{node:l,offset:t-o};o=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Nh(l)}}function Bh(o,t){return o&&t?o===t?!0:o&&o.nodeType===3?!1:t&&t.nodeType===3?Bh(o,t.parentNode):"contains"in o?o.contains(t):o.compareDocumentPosition?!!(o.compareDocumentPosition(t)&16):!1:!1}function Dh(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var t=sc(o.document);t instanceof o.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)o=t.contentWindow;else break;t=sc(o.document)}return t}function Md(o){var t=o&&o.nodeName&&o.nodeName.toLowerCase();return t&&(t==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||t==="textarea"||o.contentEditable==="true")}var x2=Ht&&"documentMode"in document&&11>=document.documentMode,Ha=null,Id=null,Gl=null,Ud=!1;function Mh(o,t,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ud||Ha==null||Ha!==sc(s)||(s=Ha,"selectionStart"in s&&Md(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Gl&&Pl(Gl,s)||(Gl=s,s=rs(Id,"onSelect"),0<s.length&&(t=new mc("onSelect","select",null,t,l),o.push({event:t,listeners:s}),t.target=Ha)))}function na(o,t){var l={};return l[o.toLowerCase()]=t.toLowerCase(),l["Webkit"+o]="webkit"+t,l["Moz"+o]="moz"+t,l}var Va={animationend:na("Animation","AnimationEnd"),animationiteration:na("Animation","AnimationIteration"),animationstart:na("Animation","AnimationStart"),transitionrun:na("Transition","TransitionRun"),transitionstart:na("Transition","TransitionStart"),transitioncancel:na("Transition","TransitionCancel"),transitionend:na("Transition","TransitionEnd")},Fd={},Ih={};Ht&&(Ih=document.createElement("div").style,"AnimationEvent"in window||(delete Va.animationend.animation,delete Va.animationiteration.animation,delete Va.animationstart.animation),"TransitionEvent"in window||delete Va.transitionend.transition);function ta(o){if(Fd[o])return Fd[o];if(!Va[o])return o;var t=Va[o],l;for(l in t)if(t.hasOwnProperty(l)&&l in Ih)return Fd[o]=t[l];return o}var Uh=ta("animationend"),Fh=ta("animationiteration"),Hh=ta("animationstart"),y2=ta("transitionrun"),w2=ta("transitionstart"),z2=ta("transitioncancel"),Vh=ta("transitionend"),Kh=new Map,Hd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Hd.push("scrollEnd");function wt(o,t){Kh.set(o,t),ea(t,[o])}var kc=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},dt=[],Ka=0,Vd=0;function vc(){for(var o=Ka,t=Vd=Ka=0;t<o;){var l=dt[t];dt[t++]=null;var s=dt[t];dt[t++]=null;var f=dt[t];dt[t++]=null;var b=dt[t];if(dt[t++]=null,s!==null&&f!==null){var k=s.pending;k===null?f.next=f:(f.next=k.next,k.next=f),s.pending=f}b!==0&&qh(l,f,b)}}function gc(o,t,l,s){dt[Ka++]=o,dt[Ka++]=t,dt[Ka++]=l,dt[Ka++]=s,Vd|=s,o.lanes|=s,o=o.alternate,o!==null&&(o.lanes|=s)}function Kd(o,t,l,s){return gc(o,t,l,s),_c(o)}function ra(o,t){return gc(o,null,null,t),_c(o)}function qh(o,t,l){o.lanes|=l;var s=o.alternate;s!==null&&(s.lanes|=l);for(var f=!1,b=o.return;b!==null;)b.childLanes|=l,s=b.alternate,s!==null&&(s.childLanes|=l),b.tag===22&&(o=b.stateNode,o===null||o._visibility&1||(f=!0)),o=b,b=b.return;return o.tag===3?(b=o.stateNode,f&&t!==null&&(f=31-sn(l),o=b.hiddenUpdates,s=o[f],s===null?o[f]=[t]:s.push(t),t.lane=l|536870912),b):null}function _c(o){if(50<pi)throw pi=0,Qu=null,Error(i(185));for(var t=o.return;t!==null;)o=t,t=o.return;return o.tag===3?o.stateNode:null}var qa={};function S2(o,t,l,s){this.tag=o,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gn(o,t,l,s){return new S2(o,t,l,s)}function qd(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Vt(o,t){var l=o.alternate;return l===null?(l=Gn(o.tag,t,o.key,o.mode),l.elementType=o.elementType,l.type=o.type,l.stateNode=o.stateNode,l.alternate=o,o.alternate=l):(l.pendingProps=t,l.type=o.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=o.flags&65011712,l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,t=o.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=o.sibling,l.index=o.index,l.ref=o.ref,l.refCleanup=o.refCleanup,l}function Zh(o,t){o.flags&=65011714;var l=o.alternate;return l===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,t=l.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),o}function xc(o,t,l,s,f,b){var k=0;if(s=o,typeof o=="function")qd(o)&&(k=1);else if(typeof o=="string")k=Ez(o,l,be.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case ce:return o=Gn(31,l,t,f),o.elementType=ce,o.lanes=b,o;case j:return aa(l.children,f,b,t);case E:k=8,f|=24;break;case L:return o=Gn(12,l,t,f|2),o.elementType=L,o.lanes=b,o;case D:return o=Gn(13,l,t,f),o.elementType=D,o.lanes=b,o;case H:return o=Gn(19,l,t,f),o.elementType=H,o.lanes=b,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case w:k=10;break e;case y:k=9;break e;case N:k=11;break e;case q:k=14;break e;case oe:k=16,s=null;break e}k=29,l=Error(i(130,o===null?"null":typeof o,"")),s=null}return t=Gn(k,l,t,f),t.elementType=o,t.type=s,t.lanes=b,t}function aa(o,t,l,s){return o=Gn(7,o,s,t),o.lanes=l,o}function Zd(o,t,l){return o=Gn(6,o,null,t),o.lanes=l,o}function Ph(o){var t=Gn(18,null,null,0);return t.stateNode=o,t}function Pd(o,t,l){return t=Gn(4,o.children!==null?o.children:[],o.key,t),t.lanes=l,t.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},t}var Gh=new WeakMap;function ut(o,t){if(typeof o=="object"&&o!==null){var l=Gh.get(o);return l!==void 0?l:(t={value:o,source:t,stack:ve(t)},Gh.set(o,t),t)}return{value:o,source:t,stack:ve(t)}}var Za=[],Pa=0,yc=null,Yl=0,ft=[],bt=0,kr=null,Lt=1,Ot="";function Kt(o,t){Za[Pa++]=Yl,Za[Pa++]=yc,yc=o,Yl=t}function Yh(o,t,l){ft[bt++]=Lt,ft[bt++]=Ot,ft[bt++]=kr,kr=o;var s=Lt;o=Ot;var f=32-sn(s)-1;s&=~(1<<f),l+=1;var b=32-sn(t)+f;if(30<b){var k=f-f%5;b=(s&(1<<k)-1).toString(32),s>>=k,f-=k,Lt=1<<32-sn(t)+f|l<<f|s,Ot=b+o}else Lt=1<<b|l<<f|s,Ot=o}function Gd(o){o.return!==null&&(Kt(o,1),Yh(o,1,0))}function Yd(o){for(;o===yc;)yc=Za[--Pa],Za[Pa]=null,Yl=Za[--Pa],Za[Pa]=null;for(;o===kr;)kr=ft[--bt],ft[bt]=null,Ot=ft[--bt],ft[bt]=null,Lt=ft[--bt],ft[bt]=null}function Jh(o,t){ft[bt++]=Lt,ft[bt++]=Ot,ft[bt++]=kr,Lt=t.id,Ot=t.overflow,kr=o}var un=null,wo=null,Qe=!1,vr=null,mt=!1,Jd=Error(i(519));function gr(o){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jl(ut(t,o)),Jd}function Xh(o){var t=o.stateNode,l=o.type,s=o.memoizedProps;switch(t[dn]=o,t[Rn]=s,l){case"dialog":Pe("cancel",t),Pe("close",t);break;case"iframe":case"object":case"embed":Pe("load",t);break;case"video":case"audio":for(l=0;l<vi.length;l++)Pe(vi[l],t);break;case"source":Pe("error",t);break;case"img":case"image":case"link":Pe("error",t),Pe("load",t);break;case"details":Pe("toggle",t);break;case"input":Pe("invalid",t),dh(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Pe("invalid",t);break;case"textarea":Pe("invalid",t),fh(t,s.value,s.defaultValue,s.children)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||s.suppressHydrationWarning===!0||mv(t.textContent,l)?(s.popover!=null&&(Pe("beforetoggle",t),Pe("toggle",t)),s.onScroll!=null&&Pe("scroll",t),s.onScrollEnd!=null&&Pe("scrollend",t),s.onClick!=null&&(t.onclick=Ft),t=!0):t=!1,t||gr(o,!0)}function Wh(o){for(un=o.return;un;)switch(un.tag){case 5:case 31:case 13:mt=!1;return;case 27:case 3:mt=!0;return;default:un=un.return}}function Ga(o){if(o!==un)return!1;if(!Qe)return Wh(o),Qe=!0,!1;var t=o.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=o.type,l=!(l!=="form"&&l!=="button")||hf(o.type,o.memoizedProps)),l=!l),l&&wo&&gr(o),Wh(o),t===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));wo=wv(o)}else if(t===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));wo=wv(o)}else t===27?(t=wo,$r(o.type)?(o=_f,_f=null,wo=o):wo=t):wo=un?pt(o.stateNode.nextSibling):null;return!0}function la(){wo=un=null,Qe=!1}function Xd(){var o=vr;return o!==null&&(Un===null?Un=o:Un.push.apply(Un,o),vr=null),o}function Jl(o){vr===null?vr=[o]:vr.push(o)}var Wd=C(null),ia=null,qt=null;function _r(o,t,l){ae(Wd,t._currentValue),t._currentValue=l}function Zt(o){o._currentValue=Wd.current,P(Wd)}function Qd(o,t,l){for(;o!==null;){var s=o.alternate;if((o.childLanes&t)!==t?(o.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),o===l)break;o=o.return}}function eu(o,t,l,s){var f=o.child;for(f!==null&&(f.return=o);f!==null;){var b=f.dependencies;if(b!==null){var k=f.child;b=b.firstContext;e:for(;b!==null;){var x=b;b=f;for(var A=0;A<t.length;A++)if(x.context===t[A]){b.lanes|=l,x=b.alternate,x!==null&&(x.lanes|=l),Qd(b.return,l,o),s||(k=null);break e}b=x.next}}else if(f.tag===18){if(k=f.return,k===null)throw Error(i(341));k.lanes|=l,b=k.alternate,b!==null&&(b.lanes|=l),Qd(k,l,o),k=null}else k=f.child;if(k!==null)k.return=f;else for(k=f;k!==null;){if(k===o){k=null;break}if(f=k.sibling,f!==null){f.return=k.return,k=f;break}k=k.return}f=k}}function Ya(o,t,l,s){o=null;for(var f=t,b=!1;f!==null;){if(!b){if((f.flags&524288)!==0)b=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var k=f.alternate;if(k===null)throw Error(i(387));if(k=k.memoizedProps,k!==null){var x=f.type;Pn(f.pendingProps.value,k.value)||(o!==null?o.push(x):o=[x])}}else if(f===Ye.current){if(k=f.alternate,k===null)throw Error(i(387));k.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(o!==null?o.push(wi):o=[wi])}f=f.return}o!==null&&eu(t,o,l,s),t.flags|=262144}function wc(o){for(o=o.firstContext;o!==null;){if(!Pn(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function ca(o){ia=o,qt=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function fn(o){return Qh(ia,o)}function zc(o,t){return ia===null&&ca(o),Qh(o,t)}function Qh(o,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},qt===null){if(o===null)throw Error(i(308));qt=t,o.dependencies={lanes:0,firstContext:t},o.flags|=524288}else qt=qt.next=t;return l}var j2=typeof AbortController<"u"?AbortController:function(){var o=[],t=this.signal={aborted:!1,addEventListener:function(l,s){o.push(s)}};this.abort=function(){t.aborted=!0,o.forEach(function(l){return l()})}},T2=e.unstable_scheduleCallback,A2=e.unstable_NormalPriority,qo={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ou(){return{controller:new j2,data:new Map,refCount:0}}function Xl(o){o.refCount--,o.refCount===0&&T2(A2,function(){o.controller.abort()})}var Wl=null,nu=0,Ja=0,Xa=null;function C2(o,t){if(Wl===null){var l=Wl=[];nu=0,Ja=af(),Xa={status:"pending",value:void 0,then:function(s){l.push(s)}}}return nu++,t.then(ep,ep),t}function ep(){if(--nu===0&&Wl!==null){Xa!==null&&(Xa.status="fulfilled");var o=Wl;Wl=null,Ja=0,Xa=null;for(var t=0;t<o.length;t++)(0,o[t])()}}function E2(o,t){var l=[],s={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return o.then(function(){s.status="fulfilled",s.value=t;for(var f=0;f<l.length;f++)(0,l[f])(t)},function(f){for(s.status="rejected",s.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),s}var op=M.S;M.S=function(o,t){Mk=R(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&C2(o,t),op!==null&&op(o,t)};var sa=C(null);function tu(){var o=sa.current;return o!==null?o:xo.pooledCache}function Sc(o,t){t===null?ae(sa,sa.current):ae(sa,t.pool)}function np(){var o=tu();return o===null?null:{parent:qo._currentValue,pool:o}}var Wa=Error(i(460)),ru=Error(i(474)),jc=Error(i(542)),Tc={then:function(){}};function tp(o){return o=o.status,o==="fulfilled"||o==="rejected"}function rp(o,t,l){switch(l=o[l],l===void 0?o.push(t):l!==t&&(t.then(Ft,Ft),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw o=t.reason,lp(o),o;default:if(typeof t.status=="string")t.then(Ft,Ft);else{if(o=xo,o!==null&&100<o.shellSuspendCounter)throw Error(i(482));o=t,o.status="pending",o.then(function(s){if(t.status==="pending"){var f=t;f.status="fulfilled",f.value=s}},function(s){if(t.status==="pending"){var f=t;f.status="rejected",f.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw o=t.reason,lp(o),o}throw ua=t,Wa}}function da(o){try{var t=o._init;return t(o._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ua=l,Wa):l}}var ua=null;function ap(){if(ua===null)throw Error(i(459));var o=ua;return ua=null,o}function lp(o){if(o===Wa||o===jc)throw Error(i(483))}var Qa=null,Ql=0;function Ac(o){var t=Ql;return Ql+=1,Qa===null&&(Qa=[]),rp(Qa,o,t)}function ei(o,t){t=t.props.ref,o.ref=t!==void 0?t:null}function Cc(o,t){throw t.$$typeof===_?Error(i(525)):(o=Object.prototype.toString.call(t),Error(i(31,o==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":o)))}function ip(o){function t(B,O){if(o){var U=B.deletions;U===null?(B.deletions=[O],B.flags|=16):U.push(O)}}function l(B,O){if(!o)return null;for(;O!==null;)t(B,O),O=O.sibling;return null}function s(B){for(var O=new Map;B!==null;)B.key!==null?O.set(B.key,B):O.set(B.index,B),B=B.sibling;return O}function f(B,O){return B=Vt(B,O),B.index=0,B.sibling=null,B}function b(B,O,U){return B.index=U,o?(U=B.alternate,U!==null?(U=U.index,U<O?(B.flags|=67108866,O):U):(B.flags|=67108866,O)):(B.flags|=1048576,O)}function k(B){return o&&B.alternate===null&&(B.flags|=67108866),B}function x(B,O,U,J){return O===null||O.tag!==6?(O=Zd(U,B.mode,J),O.return=B,O):(O=f(O,U),O.return=B,O)}function A(B,O,U,J){var Se=U.type;return Se===j?Y(B,O,U.props.children,J,U.key):O!==null&&(O.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===oe&&da(Se)===O.type)?(O=f(O,U.props),ei(O,U),O.return=B,O):(O=xc(U.type,U.key,U.props,null,B.mode,J),ei(O,U),O.return=B,O)}function F(B,O,U,J){return O===null||O.tag!==4||O.stateNode.containerInfo!==U.containerInfo||O.stateNode.implementation!==U.implementation?(O=Pd(U,B.mode,J),O.return=B,O):(O=f(O,U.children||[]),O.return=B,O)}function Y(B,O,U,J,Se){return O===null||O.tag!==7?(O=aa(U,B.mode,J,Se),O.return=B,O):(O=f(O,U),O.return=B,O)}function Q(B,O,U){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Zd(""+O,B.mode,U),O.return=B,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case z:return U=xc(O.type,O.key,O.props,null,B.mode,U),ei(U,O),U.return=B,U;case $:return O=Pd(O,B.mode,U),O.return=B,O;case oe:return O=da(O),Q(B,O,U)}if($e(O)||ee(O))return O=aa(O,B.mode,U,null),O.return=B,O;if(typeof O.then=="function")return Q(B,Ac(O),U);if(O.$$typeof===w)return Q(B,zc(B,O),U);Cc(B,O)}return null}function V(B,O,U,J){var Se=O!==null?O.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return Se!==null?null:x(B,O,""+U,J);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case z:return U.key===Se?A(B,O,U,J):null;case $:return U.key===Se?F(B,O,U,J):null;case oe:return U=da(U),V(B,O,U,J)}if($e(U)||ee(U))return Se!==null?null:Y(B,O,U,J,null);if(typeof U.then=="function")return V(B,O,Ac(U),J);if(U.$$typeof===w)return V(B,O,zc(B,U),J);Cc(B,U)}return null}function Z(B,O,U,J,Se){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return B=B.get(U)||null,x(O,B,""+J,Se);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case z:return B=B.get(J.key===null?U:J.key)||null,A(O,B,J,Se);case $:return B=B.get(J.key===null?U:J.key)||null,F(O,B,J,Se);case oe:return J=da(J),Z(B,O,U,J,Se)}if($e(J)||ee(J))return B=B.get(U)||null,Y(O,B,J,Se,null);if(typeof J.then=="function")return Z(B,O,U,Ac(J),Se);if(J.$$typeof===w)return Z(B,O,U,zc(O,J),Se);Cc(O,J)}return null}function ke(B,O,U,J){for(var Se=null,to=null,ge=O,Ue=O=0,Xe=null;ge!==null&&Ue<U.length;Ue++){ge.index>Ue?(Xe=ge,ge=null):Xe=ge.sibling;var ro=V(B,ge,U[Ue],J);if(ro===null){ge===null&&(ge=Xe);break}o&&ge&&ro.alternate===null&&t(B,ge),O=b(ro,O,Ue),to===null?Se=ro:to.sibling=ro,to=ro,ge=Xe}if(Ue===U.length)return l(B,ge),Qe&&Kt(B,Ue),Se;if(ge===null){for(;Ue<U.length;Ue++)ge=Q(B,U[Ue],J),ge!==null&&(O=b(ge,O,Ue),to===null?Se=ge:to.sibling=ge,to=ge);return Qe&&Kt(B,Ue),Se}for(ge=s(ge);Ue<U.length;Ue++)Xe=Z(ge,B,Ue,U[Ue],J),Xe!==null&&(o&&Xe.alternate!==null&&ge.delete(Xe.key===null?Ue:Xe.key),O=b(Xe,O,Ue),to===null?Se=Xe:to.sibling=Xe,to=Xe);return o&&ge.forEach(function(Mr){return t(B,Mr)}),Qe&&Kt(B,Ue),Se}function Ee(B,O,U,J){if(U==null)throw Error(i(151));for(var Se=null,to=null,ge=O,Ue=O=0,Xe=null,ro=U.next();ge!==null&&!ro.done;Ue++,ro=U.next()){ge.index>Ue?(Xe=ge,ge=null):Xe=ge.sibling;var Mr=V(B,ge,ro.value,J);if(Mr===null){ge===null&&(ge=Xe);break}o&&ge&&Mr.alternate===null&&t(B,ge),O=b(Mr,O,Ue),to===null?Se=Mr:to.sibling=Mr,to=Mr,ge=Xe}if(ro.done)return l(B,ge),Qe&&Kt(B,Ue),Se;if(ge===null){for(;!ro.done;Ue++,ro=U.next())ro=Q(B,ro.value,J),ro!==null&&(O=b(ro,O,Ue),to===null?Se=ro:to.sibling=ro,to=ro);return Qe&&Kt(B,Ue),Se}for(ge=s(ge);!ro.done;Ue++,ro=U.next())ro=Z(ge,B,Ue,ro.value,J),ro!==null&&(o&&ro.alternate!==null&&ge.delete(ro.key===null?Ue:ro.key),O=b(ro,O,Ue),to===null?Se=ro:to.sibling=ro,to=ro);return o&&ge.forEach(function(Fz){return t(B,Fz)}),Qe&&Kt(B,Ue),Se}function _o(B,O,U,J){if(typeof U=="object"&&U!==null&&U.type===j&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case z:e:{for(var Se=U.key;O!==null;){if(O.key===Se){if(Se=U.type,Se===j){if(O.tag===7){l(B,O.sibling),J=f(O,U.props.children),J.return=B,B=J;break e}}else if(O.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===oe&&da(Se)===O.type){l(B,O.sibling),J=f(O,U.props),ei(J,U),J.return=B,B=J;break e}l(B,O);break}else t(B,O);O=O.sibling}U.type===j?(J=aa(U.props.children,B.mode,J,U.key),J.return=B,B=J):(J=xc(U.type,U.key,U.props,null,B.mode,J),ei(J,U),J.return=B,B=J)}return k(B);case $:e:{for(Se=U.key;O!==null;){if(O.key===Se)if(O.tag===4&&O.stateNode.containerInfo===U.containerInfo&&O.stateNode.implementation===U.implementation){l(B,O.sibling),J=f(O,U.children||[]),J.return=B,B=J;break e}else{l(B,O);break}else t(B,O);O=O.sibling}J=Pd(U,B.mode,J),J.return=B,B=J}return k(B);case oe:return U=da(U),_o(B,O,U,J)}if($e(U))return ke(B,O,U,J);if(ee(U)){if(Se=ee(U),typeof Se!="function")throw Error(i(150));return U=Se.call(U),Ee(B,O,U,J)}if(typeof U.then=="function")return _o(B,O,Ac(U),J);if(U.$$typeof===w)return _o(B,O,zc(B,U),J);Cc(B,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,O!==null&&O.tag===6?(l(B,O.sibling),J=f(O,U),J.return=B,B=J):(l(B,O),J=Zd(U,B.mode,J),J.return=B,B=J),k(B)):l(B,O)}return function(B,O,U,J){try{Ql=0;var Se=_o(B,O,U,J);return Qa=null,Se}catch(ge){if(ge===Wa||ge===jc)throw ge;var to=Gn(29,ge,null,B.mode);return to.lanes=J,to.return=B,to}}}var fa=ip(!0),cp=ip(!1),xr=!1;function au(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lu(o,t){o=o.updateQueue,t.updateQueue===o&&(t.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function yr(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function wr(o,t,l){var s=o.updateQueue;if(s===null)return null;if(s=s.shared,(lo&2)!==0){var f=s.pending;return f===null?t.next=t:(t.next=f.next,f.next=t),s.pending=t,t=_c(o),qh(o,null,l),t}return gc(o,s,t,l),_c(o)}function oi(o,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var s=t.lanes;s&=o.pendingLanes,l|=s,t.lanes=l,Qm(o,l)}}function iu(o,t){var l=o.updateQueue,s=o.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var f=null,b=null;if(l=l.firstBaseUpdate,l!==null){do{var k={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};b===null?f=b=k:b=b.next=k,l=l.next}while(l!==null);b===null?f=b=t:b=b.next=t}else f=b=t;l={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:b,shared:s.shared,callbacks:s.callbacks},o.updateQueue=l;return}o=l.lastBaseUpdate,o===null?l.firstBaseUpdate=t:o.next=t,l.lastBaseUpdate=t}var cu=!1;function ni(){if(cu){var o=Xa;if(o!==null)throw o}}function ti(o,t,l,s){cu=!1;var f=o.updateQueue;xr=!1;var b=f.firstBaseUpdate,k=f.lastBaseUpdate,x=f.shared.pending;if(x!==null){f.shared.pending=null;var A=x,F=A.next;A.next=null,k===null?b=F:k.next=F,k=A;var Y=o.alternate;Y!==null&&(Y=Y.updateQueue,x=Y.lastBaseUpdate,x!==k&&(x===null?Y.firstBaseUpdate=F:x.next=F,Y.lastBaseUpdate=A))}if(b!==null){var Q=f.baseState;k=0,Y=F=A=null,x=b;do{var V=x.lane&-536870913,Z=V!==x.lane;if(Z?(Je&V)===V:(s&V)===V){V!==0&&V===Ja&&(cu=!0),Y!==null&&(Y=Y.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ke=o,Ee=x;V=t;var _o=l;switch(Ee.tag){case 1:if(ke=Ee.payload,typeof ke=="function"){Q=ke.call(_o,Q,V);break e}Q=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=Ee.payload,V=typeof ke=="function"?ke.call(_o,Q,V):ke,V==null)break e;Q=v({},Q,V);break e;case 2:xr=!0}}V=x.callback,V!==null&&(o.flags|=64,Z&&(o.flags|=8192),Z=f.callbacks,Z===null?f.callbacks=[V]:Z.push(V))}else Z={lane:V,tag:x.tag,payload:x.payload,callback:x.callback,next:null},Y===null?(F=Y=Z,A=Q):Y=Y.next=Z,k|=V;if(x=x.next,x===null){if(x=f.shared.pending,x===null)break;Z=x,x=Z.next,Z.next=null,f.lastBaseUpdate=Z,f.shared.pending=null}}while(!0);Y===null&&(A=Q),f.baseState=A,f.firstBaseUpdate=F,f.lastBaseUpdate=Y,b===null&&(f.shared.lanes=0),Ar|=k,o.lanes=k,o.memoizedState=Q}}function sp(o,t){if(typeof o!="function")throw Error(i(191,o));o.call(t)}function dp(o,t){var l=o.callbacks;if(l!==null)for(o.callbacks=null,o=0;o<l.length;o++)sp(l[o],t)}var el=C(null),Ec=C(0);function up(o,t){o=or,ae(Ec,o),ae(el,t),or=o|t.baseLanes}function su(){ae(Ec,or),ae(el,el.current)}function du(){or=Ec.current,P(el),P(Ec)}var Yn=C(null),ht=null;function zr(o){var t=o.alternate;ae(Ho,Ho.current&1),ae(Yn,o),ht===null&&(t===null||el.current!==null||t.memoizedState!==null)&&(ht=o)}function uu(o){ae(Ho,Ho.current),ae(Yn,o),ht===null&&(ht=o)}function fp(o){o.tag===22?(ae(Ho,Ho.current),ae(Yn,o),ht===null&&(ht=o)):Sr()}function Sr(){ae(Ho,Ho.current),ae(Yn,Yn.current)}function Jn(o){P(Yn),ht===o&&(ht=null),P(Ho)}var Ho=C(0);function Lc(o){for(var t=o;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||vf(l)||gf(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===o)break;for(;t.sibling===null;){if(t.return===null||t.return===o)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pt=0,Ie=null,vo=null,Zo=null,Oc=!1,ol=!1,ba=!1,$c=0,ri=0,nl=null,L2=0;function Bo(){throw Error(i(321))}function fu(o,t){if(t===null)return!1;for(var l=0;l<t.length&&l<o.length;l++)if(!Pn(o[l],t[l]))return!1;return!0}function bu(o,t,l,s,f,b){return Pt=b,Ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=o===null||o.memoizedState===null?Yp:Au,ba=!1,b=l(s,f),ba=!1,ol&&(b=mp(t,l,s,f)),bp(o),b}function bp(o){M.H=ii;var t=vo!==null&&vo.next!==null;if(Pt=0,Zo=vo=Ie=null,Oc=!1,ri=0,nl=null,t)throw Error(i(300));o===null||Po||(o=o.dependencies,o!==null&&wc(o)&&(Po=!0))}function mp(o,t,l,s){Ie=o;var f=0;do{if(ol&&(nl=null),ri=0,ol=!1,25<=f)throw Error(i(301));if(f+=1,Zo=vo=null,o.updateQueue!=null){var b=o.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}M.H=Jp,b=t(l,s)}while(ol);return b}function O2(){var o=M.H,t=o.useState()[0];return t=typeof t.then=="function"?ai(t):t,o=o.useState()[0],(vo!==null?vo.memoizedState:null)!==o&&(Ie.flags|=1024),t}function mu(){var o=$c!==0;return $c=0,o}function hu(o,t,l){t.updateQueue=o.updateQueue,t.flags&=-2053,o.lanes&=~l}function pu(o){if(Oc){for(o=o.memoizedState;o!==null;){var t=o.queue;t!==null&&(t.pending=null),o=o.next}Oc=!1}Pt=0,Zo=vo=Ie=null,ol=!1,ri=$c=0,nl=null}function En(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zo===null?Ie.memoizedState=Zo=o:Zo=Zo.next=o,Zo}function Vo(){if(vo===null){var o=Ie.alternate;o=o!==null?o.memoizedState:null}else o=vo.next;var t=Zo===null?Ie.memoizedState:Zo.next;if(t!==null)Zo=t,vo=o;else{if(o===null)throw Ie.alternate===null?Error(i(467)):Error(i(310));vo=o,o={memoizedState:vo.memoizedState,baseState:vo.baseState,baseQueue:vo.baseQueue,queue:vo.queue,next:null},Zo===null?Ie.memoizedState=Zo=o:Zo=Zo.next=o}return Zo}function Nc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ai(o){var t=ri;return ri+=1,nl===null&&(nl=[]),o=rp(nl,o,t),t=Ie,(Zo===null?t.memoizedState:Zo.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Yp:Au),o}function Rc(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return ai(o);if(o.$$typeof===w)return fn(o)}throw Error(i(438,String(o)))}function ku(o){var t=null,l=Ie.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var s=Ie.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(f){return f.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Nc(),Ie.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(o),s=0;s<o;s++)l[s]=Ve;return t.index++,l}function Gt(o,t){return typeof t=="function"?t(o):t}function Bc(o){var t=Vo();return vu(t,vo,o)}function vu(o,t,l){var s=o.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=l;var f=o.baseQueue,b=s.pending;if(b!==null){if(f!==null){var k=f.next;f.next=b.next,b.next=k}t.baseQueue=f=b,s.pending=null}if(b=o.baseState,f===null)o.memoizedState=b;else{t=f.next;var x=k=null,A=null,F=t,Y=!1;do{var Q=F.lane&-536870913;if(Q!==F.lane?(Je&Q)===Q:(Pt&Q)===Q){var V=F.revertLane;if(V===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),Q===Ja&&(Y=!0);else if((Pt&V)===V){F=F.next,V===Ja&&(Y=!0);continue}else Q={lane:0,revertLane:F.revertLane,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},A===null?(x=A=Q,k=b):A=A.next=Q,Ie.lanes|=V,Ar|=V;Q=F.action,ba&&l(b,Q),b=F.hasEagerState?F.eagerState:l(b,Q)}else V={lane:Q,revertLane:F.revertLane,gesture:F.gesture,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},A===null?(x=A=V,k=b):A=A.next=V,Ie.lanes|=Q,Ar|=Q;F=F.next}while(F!==null&&F!==t);if(A===null?k=b:A.next=x,!Pn(b,o.memoizedState)&&(Po=!0,Y&&(l=Xa,l!==null)))throw l;o.memoizedState=b,o.baseState=k,o.baseQueue=A,s.lastRenderedState=b}return f===null&&(s.lanes=0),[o.memoizedState,s.dispatch]}function gu(o){var t=Vo(),l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=o;var s=l.dispatch,f=l.pending,b=t.memoizedState;if(f!==null){l.pending=null;var k=f=f.next;do b=o(b,k.action),k=k.next;while(k!==f);Pn(b,t.memoizedState)||(Po=!0),t.memoizedState=b,t.baseQueue===null&&(t.baseState=b),l.lastRenderedState=b}return[b,s]}function hp(o,t,l){var s=Ie,f=Vo(),b=Qe;if(b){if(l===void 0)throw Error(i(407));l=l()}else l=t();var k=!Pn((vo||f).memoizedState,l);if(k&&(f.memoizedState=l,Po=!0),f=f.queue,yu(vp.bind(null,s,f,o),[o]),f.getSnapshot!==t||k||Zo!==null&&Zo.memoizedState.tag&1){if(s.flags|=2048,tl(9,{destroy:void 0},kp.bind(null,s,f,l,t),null),xo===null)throw Error(i(349));b||(Pt&127)!==0||pp(s,t,l)}return l}function pp(o,t,l){o.flags|=16384,o={getSnapshot:t,value:l},t=Ie.updateQueue,t===null?(t=Nc(),Ie.updateQueue=t,t.stores=[o]):(l=t.stores,l===null?t.stores=[o]:l.push(o))}function kp(o,t,l,s){t.value=l,t.getSnapshot=s,gp(t)&&_p(o)}function vp(o,t,l){return l(function(){gp(t)&&_p(o)})}function gp(o){var t=o.getSnapshot;o=o.value;try{var l=t();return!Pn(o,l)}catch{return!0}}function _p(o){var t=ra(o,2);t!==null&&Fn(t,o,2)}function _u(o){var t=En();if(typeof o=="function"){var l=o;if(o=l(),ba){Et(!0);try{l()}finally{Et(!1)}}}return t.memoizedState=t.baseState=o,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gt,lastRenderedState:o},t}function xp(o,t,l,s){return o.baseState=l,vu(o,vo,typeof s=="function"?s:Gt)}function $2(o,t,l,s,f){if(Ic(o))throw Error(i(485));if(o=t.action,o!==null){var b={payload:f,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){b.listeners.push(k)}};M.T!==null?l(!0):b.isTransition=!1,s(b),l=t.pending,l===null?(b.next=t.pending=b,yp(t,b)):(b.next=l.next,t.pending=l.next=b)}}function yp(o,t){var l=t.action,s=t.payload,f=o.state;if(t.isTransition){var b=M.T,k={};M.T=k;try{var x=l(f,s),A=M.S;A!==null&&A(k,x),wp(o,t,x)}catch(F){xu(o,t,F)}finally{b!==null&&k.types!==null&&(b.types=k.types),M.T=b}}else try{b=l(f,s),wp(o,t,b)}catch(F){xu(o,t,F)}}function wp(o,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){zp(o,t,s)},function(s){return xu(o,t,s)}):zp(o,t,l)}function zp(o,t,l){t.status="fulfilled",t.value=l,Sp(t),o.state=l,t=o.pending,t!==null&&(l=t.next,l===t?o.pending=null:(l=l.next,t.next=l,yp(o,l)))}function xu(o,t,l){var s=o.pending;if(o.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=l,Sp(t),t=t.next;while(t!==s)}o.action=null}function Sp(o){o=o.listeners;for(var t=0;t<o.length;t++)(0,o[t])()}function jp(o,t){return t}function Tp(o,t){if(Qe){var l=xo.formState;if(l!==null){e:{var s=Ie;if(Qe){if(wo){o:{for(var f=wo,b=mt;f.nodeType!==8;){if(!b){f=null;break o}if(f=pt(f.nextSibling),f===null){f=null;break o}}b=f.data,f=b==="F!"||b==="F"?f:null}if(f){wo=pt(f.nextSibling),s=f.data==="F!";break e}}gr(s)}s=!1}s&&(t=l[0])}}return l=En(),l.memoizedState=l.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jp,lastRenderedState:t},l.queue=s,l=Zp.bind(null,Ie,s),s.dispatch=l,s=_u(!1),b=Tu.bind(null,Ie,!1,s.queue),s=En(),f={state:t,dispatch:null,action:o,pending:null},s.queue=f,l=$2.bind(null,Ie,f,b,l),f.dispatch=l,s.memoizedState=o,[t,l,!1]}function Ap(o){var t=Vo();return Cp(t,vo,o)}function Cp(o,t,l){if(t=vu(o,t,jp)[0],o=Bc(Gt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=ai(t)}catch(k){throw k===Wa?jc:k}else s=t;t=Vo();var f=t.queue,b=f.dispatch;return l!==t.memoizedState&&(Ie.flags|=2048,tl(9,{destroy:void 0},N2.bind(null,f,l),null)),[s,b,o]}function N2(o,t){o.action=t}function Ep(o){var t=Vo(),l=vo;if(l!==null)return Cp(t,l,o);Vo(),t=t.memoizedState,l=Vo();var s=l.queue.dispatch;return l.memoizedState=o,[t,s,!1]}function tl(o,t,l,s){return o={tag:o,create:l,deps:s,inst:t,next:null},t=Ie.updateQueue,t===null&&(t=Nc(),Ie.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=o.next=o:(s=l.next,l.next=o,o.next=s,t.lastEffect=o),o}function Lp(){return Vo().memoizedState}function Dc(o,t,l,s){var f=En();Ie.flags|=o,f.memoizedState=tl(1|t,{destroy:void 0},l,s===void 0?null:s)}function Mc(o,t,l,s){var f=Vo();s=s===void 0?null:s;var b=f.memoizedState.inst;vo!==null&&s!==null&&fu(s,vo.memoizedState.deps)?f.memoizedState=tl(t,b,l,s):(Ie.flags|=o,f.memoizedState=tl(1|t,b,l,s))}function Op(o,t){Dc(8390656,8,o,t)}function yu(o,t){Mc(2048,8,o,t)}function R2(o){Ie.flags|=4;var t=Ie.updateQueue;if(t===null)t=Nc(),Ie.updateQueue=t,t.events=[o];else{var l=t.events;l===null?t.events=[o]:l.push(o)}}function $p(o){var t=Vo().memoizedState;return R2({ref:t,nextImpl:o}),function(){if((lo&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Np(o,t){return Mc(4,2,o,t)}function Rp(o,t){return Mc(4,4,o,t)}function Bp(o,t){if(typeof t=="function"){o=o();var l=t(o);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return o=o(),t.current=o,function(){t.current=null}}function Dp(o,t,l){l=l!=null?l.concat([o]):null,Mc(4,4,Bp.bind(null,t,o),l)}function wu(){}function Mp(o,t){var l=Vo();t=t===void 0?null:t;var s=l.memoizedState;return t!==null&&fu(t,s[1])?s[0]:(l.memoizedState=[o,t],o)}function Ip(o,t){var l=Vo();t=t===void 0?null:t;var s=l.memoizedState;if(t!==null&&fu(t,s[1]))return s[0];if(s=o(),ba){Et(!0);try{o()}finally{Et(!1)}}return l.memoizedState=[s,t],s}function zu(o,t,l){return l===void 0||(Pt&1073741824)!==0&&(Je&261930)===0?o.memoizedState=t:(o.memoizedState=l,o=Uk(),Ie.lanes|=o,Ar|=o,l)}function Up(o,t,l,s){return Pn(l,t)?l:el.current!==null?(o=zu(o,l,s),Pn(o,t)||(Po=!0),o):(Pt&42)===0||(Pt&1073741824)!==0&&(Je&261930)===0?(Po=!0,o.memoizedState=l):(o=Uk(),Ie.lanes|=o,Ar|=o,t)}function Fp(o,t,l,s,f){var b=G.p;G.p=b!==0&&8>b?b:8;var k=M.T,x={};M.T=x,Tu(o,!1,t,l);try{var A=f(),F=M.S;if(F!==null&&F(x,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var Y=E2(A,s);li(o,t,Y,Qn(o))}else li(o,t,s,Qn(o))}catch(Q){li(o,t,{then:function(){},status:"rejected",reason:Q},Qn())}finally{G.p=b,k!==null&&x.types!==null&&(k.types=x.types),M.T=k}}function B2(){}function Su(o,t,l,s){if(o.tag!==5)throw Error(i(476));var f=Hp(o).queue;Fp(o,f,t,se,l===null?B2:function(){return Vp(o),l(s)})}function Hp(o){var t=o.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gt,lastRenderedState:se},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gt,lastRenderedState:l},next:null},o.memoizedState=t,o=o.alternate,o!==null&&(o.memoizedState=t),t}function Vp(o){var t=Hp(o);t.next===null&&(t=o.alternate.memoizedState),li(o,t.next.queue,{},Qn())}function ju(){return fn(wi)}function Kp(){return Vo().memoizedState}function qp(){return Vo().memoizedState}function D2(o){for(var t=o.return;t!==null;){switch(t.tag){case 24:case 3:var l=Qn();o=yr(l);var s=wr(t,o,l);s!==null&&(Fn(s,t,l),oi(s,t,l)),t={cache:ou()},o.payload=t;return}t=t.return}}function M2(o,t,l){var s=Qn();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ic(o)?Pp(t,l):(l=Kd(o,t,l,s),l!==null&&(Fn(l,o,s),Gp(l,t,s)))}function Zp(o,t,l){var s=Qn();li(o,t,l,s)}function li(o,t,l,s){var f={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ic(o))Pp(t,f);else{var b=o.alternate;if(o.lanes===0&&(b===null||b.lanes===0)&&(b=t.lastRenderedReducer,b!==null))try{var k=t.lastRenderedState,x=b(k,l);if(f.hasEagerState=!0,f.eagerState=x,Pn(x,k))return gc(o,t,f,0),xo===null&&vc(),!1}catch{}if(l=Kd(o,t,f,s),l!==null)return Fn(l,o,s),Gp(l,t,s),!0}return!1}function Tu(o,t,l,s){if(s={lane:2,revertLane:af(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ic(o)){if(t)throw Error(i(479))}else t=Kd(o,l,s,2),t!==null&&Fn(t,o,2)}function Ic(o){var t=o.alternate;return o===Ie||t!==null&&t===Ie}function Pp(o,t){ol=Oc=!0;var l=o.pending;l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t}function Gp(o,t,l){if((l&4194048)!==0){var s=t.lanes;s&=o.pendingLanes,l|=s,t.lanes=l,Qm(o,l)}}var ii={readContext:fn,use:Rc,useCallback:Bo,useContext:Bo,useEffect:Bo,useImperativeHandle:Bo,useLayoutEffect:Bo,useInsertionEffect:Bo,useMemo:Bo,useReducer:Bo,useRef:Bo,useState:Bo,useDebugValue:Bo,useDeferredValue:Bo,useTransition:Bo,useSyncExternalStore:Bo,useId:Bo,useHostTransitionStatus:Bo,useFormState:Bo,useActionState:Bo,useOptimistic:Bo,useMemoCache:Bo,useCacheRefresh:Bo};ii.useEffectEvent=Bo;var Yp={readContext:fn,use:Rc,useCallback:function(o,t){return En().memoizedState=[o,t===void 0?null:t],o},useContext:fn,useEffect:Op,useImperativeHandle:function(o,t,l){l=l!=null?l.concat([o]):null,Dc(4194308,4,Bp.bind(null,t,o),l)},useLayoutEffect:function(o,t){return Dc(4194308,4,o,t)},useInsertionEffect:function(o,t){Dc(4,2,o,t)},useMemo:function(o,t){var l=En();t=t===void 0?null:t;var s=o();if(ba){Et(!0);try{o()}finally{Et(!1)}}return l.memoizedState=[s,t],s},useReducer:function(o,t,l){var s=En();if(l!==void 0){var f=l(t);if(ba){Et(!0);try{l(t)}finally{Et(!1)}}}else f=t;return s.memoizedState=s.baseState=f,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:f},s.queue=o,o=o.dispatch=M2.bind(null,Ie,o),[s.memoizedState,o]},useRef:function(o){var t=En();return o={current:o},t.memoizedState=o},useState:function(o){o=_u(o);var t=o.queue,l=Zp.bind(null,Ie,t);return t.dispatch=l,[o.memoizedState,l]},useDebugValue:wu,useDeferredValue:function(o,t){var l=En();return zu(l,o,t)},useTransition:function(){var o=_u(!1);return o=Fp.bind(null,Ie,o.queue,!0,!1),En().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,t,l){var s=Ie,f=En();if(Qe){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),xo===null)throw Error(i(349));(Je&127)!==0||pp(s,t,l)}f.memoizedState=l;var b={value:l,getSnapshot:t};return f.queue=b,Op(vp.bind(null,s,b,o),[o]),s.flags|=2048,tl(9,{destroy:void 0},kp.bind(null,s,b,l,t),null),l},useId:function(){var o=En(),t=xo.identifierPrefix;if(Qe){var l=Ot,s=Lt;l=(s&~(1<<32-sn(s)-1)).toString(32)+l,t="_"+t+"R_"+l,l=$c++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=L2++,t="_"+t+"r_"+l.toString(32)+"_";return o.memoizedState=t},useHostTransitionStatus:ju,useFormState:Tp,useActionState:Tp,useOptimistic:function(o){var t=En();t.memoizedState=t.baseState=o;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Tu.bind(null,Ie,!0,l),l.dispatch=t,[o,t]},useMemoCache:ku,useCacheRefresh:function(){return En().memoizedState=D2.bind(null,Ie)},useEffectEvent:function(o){var t=En(),l={impl:o};return t.memoizedState=l,function(){if((lo&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},Au={readContext:fn,use:Rc,useCallback:Mp,useContext:fn,useEffect:yu,useImperativeHandle:Dp,useInsertionEffect:Np,useLayoutEffect:Rp,useMemo:Ip,useReducer:Bc,useRef:Lp,useState:function(){return Bc(Gt)},useDebugValue:wu,useDeferredValue:function(o,t){var l=Vo();return Up(l,vo.memoizedState,o,t)},useTransition:function(){var o=Bc(Gt)[0],t=Vo().memoizedState;return[typeof o=="boolean"?o:ai(o),t]},useSyncExternalStore:hp,useId:Kp,useHostTransitionStatus:ju,useFormState:Ap,useActionState:Ap,useOptimistic:function(o,t){var l=Vo();return xp(l,vo,o,t)},useMemoCache:ku,useCacheRefresh:qp};Au.useEffectEvent=$p;var Jp={readContext:fn,use:Rc,useCallback:Mp,useContext:fn,useEffect:yu,useImperativeHandle:Dp,useInsertionEffect:Np,useLayoutEffect:Rp,useMemo:Ip,useReducer:gu,useRef:Lp,useState:function(){return gu(Gt)},useDebugValue:wu,useDeferredValue:function(o,t){var l=Vo();return vo===null?zu(l,o,t):Up(l,vo.memoizedState,o,t)},useTransition:function(){var o=gu(Gt)[0],t=Vo().memoizedState;return[typeof o=="boolean"?o:ai(o),t]},useSyncExternalStore:hp,useId:Kp,useHostTransitionStatus:ju,useFormState:Ep,useActionState:Ep,useOptimistic:function(o,t){var l=Vo();return vo!==null?xp(l,vo,o,t):(l.baseState=o,[o,l.queue.dispatch])},useMemoCache:ku,useCacheRefresh:qp};Jp.useEffectEvent=$p;function Cu(o,t,l,s){t=o.memoizedState,l=l(s,t),l=l==null?t:v({},t,l),o.memoizedState=l,o.lanes===0&&(o.updateQueue.baseState=l)}var Eu={enqueueSetState:function(o,t,l){o=o._reactInternals;var s=Qn(),f=yr(s);f.payload=t,l!=null&&(f.callback=l),t=wr(o,f,s),t!==null&&(Fn(t,o,s),oi(t,o,s))},enqueueReplaceState:function(o,t,l){o=o._reactInternals;var s=Qn(),f=yr(s);f.tag=1,f.payload=t,l!=null&&(f.callback=l),t=wr(o,f,s),t!==null&&(Fn(t,o,s),oi(t,o,s))},enqueueForceUpdate:function(o,t){o=o._reactInternals;var l=Qn(),s=yr(l);s.tag=2,t!=null&&(s.callback=t),t=wr(o,s,l),t!==null&&(Fn(t,o,l),oi(t,o,l))}};function Xp(o,t,l,s,f,b,k){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(s,b,k):t.prototype&&t.prototype.isPureReactComponent?!Pl(l,s)||!Pl(f,b):!0}function Wp(o,t,l,s){o=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,s),t.state!==o&&Eu.enqueueReplaceState(t,t.state,null)}function ma(o,t){var l=t;if("ref"in t){l={};for(var s in t)s!=="ref"&&(l[s]=t[s])}if(o=o.defaultProps){l===t&&(l=v({},l));for(var f in o)l[f]===void 0&&(l[f]=o[f])}return l}function Qp(o){kc(o)}function ek(o){console.error(o)}function ok(o){kc(o)}function Uc(o,t){try{var l=o.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function nk(o,t,l){try{var s=o.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Lu(o,t,l){return l=yr(l),l.tag=3,l.payload={element:null},l.callback=function(){Uc(o,t)},l}function tk(o){return o=yr(o),o.tag=3,o}function rk(o,t,l,s){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var b=s.value;o.payload=function(){return f(b)},o.callback=function(){nk(t,l,s)}}var k=l.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(o.callback=function(){nk(t,l,s),typeof f!="function"&&(Cr===null?Cr=new Set([this]):Cr.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function I2(o,t,l,s,f){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=l.alternate,t!==null&&Ya(t,l,f,!0),l=Yn.current,l!==null){switch(l.tag){case 31:case 13:return ht===null?Wc():l.alternate===null&&Do===0&&(Do=3),l.flags&=-257,l.flags|=65536,l.lanes=f,s===Tc?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([s]):t.add(s),nf(o,s,f)),!1;case 22:return l.flags|=65536,s===Tc?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([s]):l.add(s)),nf(o,s,f)),!1}throw Error(i(435,l.tag))}return nf(o,s,f),Wc(),!1}if(Qe)return t=Yn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=f,s!==Jd&&(o=Error(i(422),{cause:s}),Jl(ut(o,l)))):(s!==Jd&&(t=Error(i(423),{cause:s}),Jl(ut(t,l))),o=o.current.alternate,o.flags|=65536,f&=-f,o.lanes|=f,s=ut(s,l),f=Lu(o.stateNode,s,f),iu(o,f),Do!==4&&(Do=2)),!1;var b=Error(i(520),{cause:s});if(b=ut(b,l),hi===null?hi=[b]:hi.push(b),Do!==4&&(Do=2),t===null)return!0;s=ut(s,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,o=f&-f,l.lanes|=o,o=Lu(l.stateNode,s,o),iu(l,o),!1;case 1:if(t=l.type,b=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Cr===null||!Cr.has(b))))return l.flags|=65536,f&=-f,l.lanes|=f,f=tk(f),rk(f,o,l,s),iu(l,f),!1}l=l.return}while(l!==null);return!1}var Ou=Error(i(461)),Po=!1;function bn(o,t,l,s){t.child=o===null?cp(t,null,l,s):fa(t,o.child,l,s)}function ak(o,t,l,s,f){l=l.render;var b=t.ref;if("ref"in s){var k={};for(var x in s)x!=="ref"&&(k[x]=s[x])}else k=s;return ca(t),s=bu(o,t,l,k,b,f),x=mu(),o!==null&&!Po?(hu(o,t,f),Yt(o,t,f)):(Qe&&x&&Gd(t),t.flags|=1,bn(o,t,s,f),t.child)}function lk(o,t,l,s,f){if(o===null){var b=l.type;return typeof b=="function"&&!qd(b)&&b.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=b,ik(o,t,b,s,f)):(o=xc(l.type,null,s,t,t.mode,f),o.ref=t.ref,o.return=t,t.child=o)}if(b=o.child,!Uu(o,f)){var k=b.memoizedProps;if(l=l.compare,l=l!==null?l:Pl,l(k,s)&&o.ref===t.ref)return Yt(o,t,f)}return t.flags|=1,o=Vt(b,s),o.ref=t.ref,o.return=t,t.child=o}function ik(o,t,l,s,f){if(o!==null){var b=o.memoizedProps;if(Pl(b,s)&&o.ref===t.ref)if(Po=!1,t.pendingProps=s=b,Uu(o,f))(o.flags&131072)!==0&&(Po=!0);else return t.lanes=o.lanes,Yt(o,t,f)}return $u(o,t,l,s,f)}function ck(o,t,l,s){var f=s.children,b=o!==null?o.memoizedState:null;if(o===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(b=b!==null?b.baseLanes|l:l,o!==null){for(s=t.child=o.child,f=0;s!==null;)f=f|s.lanes|s.childLanes,s=s.sibling;s=f&~b}else s=0,t.child=null;return sk(o,t,b,l,s)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},o!==null&&Sc(t,b!==null?b.cachePool:null),b!==null?up(t,b):su(),fp(t);else return s=t.lanes=536870912,sk(o,t,b!==null?b.baseLanes|l:l,l,s)}else b!==null?(Sc(t,b.cachePool),up(t,b),Sr(),t.memoizedState=null):(o!==null&&Sc(t,null),su(),Sr());return bn(o,t,f,l),t.child}function ci(o,t){return o!==null&&o.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sk(o,t,l,s,f){var b=tu();return b=b===null?null:{parent:qo._currentValue,pool:b},t.memoizedState={baseLanes:l,cachePool:b},o!==null&&Sc(t,null),su(),fp(t),o!==null&&Ya(o,t,s,!0),t.childLanes=f,null}function Fc(o,t){return t=Vc({mode:t.mode,children:t.children},o.mode),t.ref=o.ref,o.child=t,t.return=o,t}function dk(o,t,l){return fa(t,o.child,null,l),o=Fc(t,t.pendingProps),o.flags|=2,Jn(t),t.memoizedState=null,o}function U2(o,t,l){var s=t.pendingProps,f=(t.flags&128)!==0;if(t.flags&=-129,o===null){if(Qe){if(s.mode==="hidden")return o=Fc(t,s),t.lanes=536870912,ci(null,o);if(uu(t),(o=wo)?(o=yv(o,mt),o=o!==null&&o.data==="&"?o:null,o!==null&&(t.memoizedState={dehydrated:o,treeContext:kr!==null?{id:Lt,overflow:Ot}:null,retryLane:536870912,hydrationErrors:null},l=Ph(o),l.return=t,t.child=l,un=t,wo=null)):o=null,o===null)throw gr(t);return t.lanes=536870912,null}return Fc(t,s)}var b=o.memoizedState;if(b!==null){var k=b.dehydrated;if(uu(t),f)if(t.flags&256)t.flags&=-257,t=dk(o,t,l);else if(t.memoizedState!==null)t.child=o.child,t.flags|=128,t=null;else throw Error(i(558));else if(Po||Ya(o,t,l,!1),f=(l&o.childLanes)!==0,Po||f){if(s=xo,s!==null&&(k=eh(s,l),k!==0&&k!==b.retryLane))throw b.retryLane=k,ra(o,k),Fn(s,o,k),Ou;Wc(),t=dk(o,t,l)}else o=b.treeContext,wo=pt(k.nextSibling),un=t,Qe=!0,vr=null,mt=!1,o!==null&&Jh(t,o),t=Fc(t,s),t.flags|=4096;return t}return o=Vt(o.child,{mode:s.mode,children:s.children}),o.ref=t.ref,t.child=o,o.return=t,o}function Hc(o,t){var l=t.ref;if(l===null)o!==null&&o.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(o===null||o.ref!==l)&&(t.flags|=4194816)}}function $u(o,t,l,s,f){return ca(t),l=bu(o,t,l,s,void 0,f),s=mu(),o!==null&&!Po?(hu(o,t,f),Yt(o,t,f)):(Qe&&s&&Gd(t),t.flags|=1,bn(o,t,l,f),t.child)}function uk(o,t,l,s,f,b){return ca(t),t.updateQueue=null,l=mp(t,s,l,f),bp(o),s=mu(),o!==null&&!Po?(hu(o,t,b),Yt(o,t,b)):(Qe&&s&&Gd(t),t.flags|=1,bn(o,t,l,b),t.child)}function fk(o,t,l,s,f){if(ca(t),t.stateNode===null){var b=qa,k=l.contextType;typeof k=="object"&&k!==null&&(b=fn(k)),b=new l(s,b),t.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Eu,t.stateNode=b,b._reactInternals=t,b=t.stateNode,b.props=s,b.state=t.memoizedState,b.refs={},au(t),k=l.contextType,b.context=typeof k=="object"&&k!==null?fn(k):qa,b.state=t.memoizedState,k=l.getDerivedStateFromProps,typeof k=="function"&&(Cu(t,l,k,s),b.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(k=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),k!==b.state&&Eu.enqueueReplaceState(b,b.state,null),ti(t,s,b,f),ni(),b.state=t.memoizedState),typeof b.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(o===null){b=t.stateNode;var x=t.memoizedProps,A=ma(l,x);b.props=A;var F=b.context,Y=l.contextType;k=qa,typeof Y=="object"&&Y!==null&&(k=fn(Y));var Q=l.getDerivedStateFromProps;Y=typeof Q=="function"||typeof b.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,Y||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(x||F!==k)&&Wp(t,b,s,k),xr=!1;var V=t.memoizedState;b.state=V,ti(t,s,b,f),ni(),F=t.memoizedState,x||V!==F||xr?(typeof Q=="function"&&(Cu(t,l,Q,s),F=t.memoizedState),(A=xr||Xp(t,l,A,s,V,F,k))?(Y||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(t.flags|=4194308)):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=F),b.props=s,b.state=F,b.context=k,s=A):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{b=t.stateNode,lu(o,t),k=t.memoizedProps,Y=ma(l,k),b.props=Y,Q=t.pendingProps,V=b.context,F=l.contextType,A=qa,typeof F=="object"&&F!==null&&(A=fn(F)),x=l.getDerivedStateFromProps,(F=typeof x=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(k!==Q||V!==A)&&Wp(t,b,s,A),xr=!1,V=t.memoizedState,b.state=V,ti(t,s,b,f),ni();var Z=t.memoizedState;k!==Q||V!==Z||xr||o!==null&&o.dependencies!==null&&wc(o.dependencies)?(typeof x=="function"&&(Cu(t,l,x,s),Z=t.memoizedState),(Y=xr||Xp(t,l,Y,s,V,Z,A)||o!==null&&o.dependencies!==null&&wc(o.dependencies))?(F||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(s,Z,A),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(s,Z,A)),typeof b.componentDidUpdate=="function"&&(t.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof b.componentDidUpdate!="function"||k===o.memoizedProps&&V===o.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&V===o.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=Z),b.props=s,b.state=Z,b.context=A,s=Y):(typeof b.componentDidUpdate!="function"||k===o.memoizedProps&&V===o.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&V===o.memoizedState||(t.flags|=1024),s=!1)}return b=s,Hc(o,t),s=(t.flags&128)!==0,b||s?(b=t.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:b.render(),t.flags|=1,o!==null&&s?(t.child=fa(t,o.child,null,f),t.child=fa(t,null,l,f)):bn(o,t,l,f),t.memoizedState=b.state,o=t.child):o=Yt(o,t,f),o}function bk(o,t,l,s){return la(),t.flags|=256,bn(o,t,l,s),t.child}var Nu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ru(o){return{baseLanes:o,cachePool:np()}}function Bu(o,t,l){return o=o!==null?o.childLanes&~l:0,t&&(o|=Wn),o}function mk(o,t,l){var s=t.pendingProps,f=!1,b=(t.flags&128)!==0,k;if((k=b)||(k=o!==null&&o.memoizedState===null?!1:(Ho.current&2)!==0),k&&(f=!0,t.flags&=-129),k=(t.flags&32)!==0,t.flags&=-33,o===null){if(Qe){if(f?zr(t):Sr(),(o=wo)?(o=yv(o,mt),o=o!==null&&o.data!=="&"?o:null,o!==null&&(t.memoizedState={dehydrated:o,treeContext:kr!==null?{id:Lt,overflow:Ot}:null,retryLane:536870912,hydrationErrors:null},l=Ph(o),l.return=t,t.child=l,un=t,wo=null)):o=null,o===null)throw gr(t);return gf(o)?t.lanes=32:t.lanes=536870912,null}var x=s.children;return s=s.fallback,f?(Sr(),f=t.mode,x=Vc({mode:"hidden",children:x},f),s=aa(s,f,l,null),x.return=t,s.return=t,x.sibling=s,t.child=x,s=t.child,s.memoizedState=Ru(l),s.childLanes=Bu(o,k,l),t.memoizedState=Nu,ci(null,s)):(zr(t),Du(t,x))}var A=o.memoizedState;if(A!==null&&(x=A.dehydrated,x!==null)){if(b)t.flags&256?(zr(t),t.flags&=-257,t=Mu(o,t,l)):t.memoizedState!==null?(Sr(),t.child=o.child,t.flags|=128,t=null):(Sr(),x=s.fallback,f=t.mode,s=Vc({mode:"visible",children:s.children},f),x=aa(x,f,l,null),x.flags|=2,s.return=t,x.return=t,s.sibling=x,t.child=s,fa(t,o.child,null,l),s=t.child,s.memoizedState=Ru(l),s.childLanes=Bu(o,k,l),t.memoizedState=Nu,t=ci(null,s));else if(zr(t),gf(x)){if(k=x.nextSibling&&x.nextSibling.dataset,k)var F=k.dgst;k=F,s=Error(i(419)),s.stack="",s.digest=k,Jl({value:s,source:null,stack:null}),t=Mu(o,t,l)}else if(Po||Ya(o,t,l,!1),k=(l&o.childLanes)!==0,Po||k){if(k=xo,k!==null&&(s=eh(k,l),s!==0&&s!==A.retryLane))throw A.retryLane=s,ra(o,s),Fn(k,o,s),Ou;vf(x)||Wc(),t=Mu(o,t,l)}else vf(x)?(t.flags|=192,t.child=o.child,t=null):(o=A.treeContext,wo=pt(x.nextSibling),un=t,Qe=!0,vr=null,mt=!1,o!==null&&Jh(t,o),t=Du(t,s.children),t.flags|=4096);return t}return f?(Sr(),x=s.fallback,f=t.mode,A=o.child,F=A.sibling,s=Vt(A,{mode:"hidden",children:s.children}),s.subtreeFlags=A.subtreeFlags&65011712,F!==null?x=Vt(F,x):(x=aa(x,f,l,null),x.flags|=2),x.return=t,s.return=t,s.sibling=x,t.child=s,ci(null,s),s=t.child,x=o.child.memoizedState,x===null?x=Ru(l):(f=x.cachePool,f!==null?(A=qo._currentValue,f=f.parent!==A?{parent:A,pool:A}:f):f=np(),x={baseLanes:x.baseLanes|l,cachePool:f}),s.memoizedState=x,s.childLanes=Bu(o,k,l),t.memoizedState=Nu,ci(o.child,s)):(zr(t),l=o.child,o=l.sibling,l=Vt(l,{mode:"visible",children:s.children}),l.return=t,l.sibling=null,o!==null&&(k=t.deletions,k===null?(t.deletions=[o],t.flags|=16):k.push(o)),t.child=l,t.memoizedState=null,l)}function Du(o,t){return t=Vc({mode:"visible",children:t},o.mode),t.return=o,o.child=t}function Vc(o,t){return o=Gn(22,o,null,t),o.lanes=0,o}function Mu(o,t,l){return fa(t,o.child,null,l),o=Du(t,t.pendingProps.children),o.flags|=2,t.memoizedState=null,o}function hk(o,t,l){o.lanes|=t;var s=o.alternate;s!==null&&(s.lanes|=t),Qd(o.return,t,l)}function Iu(o,t,l,s,f,b){var k=o.memoizedState;k===null?o.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:f,treeForkCount:b}:(k.isBackwards=t,k.rendering=null,k.renderingStartTime=0,k.last=s,k.tail=l,k.tailMode=f,k.treeForkCount=b)}function pk(o,t,l){var s=t.pendingProps,f=s.revealOrder,b=s.tail;s=s.children;var k=Ho.current,x=(k&2)!==0;if(x?(k=k&1|2,t.flags|=128):k&=1,ae(Ho,k),bn(o,t,s,l),s=Qe?Yl:0,!x&&o!==null&&(o.flags&128)!==0)e:for(o=t.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&hk(o,l,t);else if(o.tag===19)hk(o,l,t);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(f){case"forwards":for(l=t.child,f=null;l!==null;)o=l.alternate,o!==null&&Lc(o)===null&&(f=l),l=l.sibling;l=f,l===null?(f=t.child,t.child=null):(f=l.sibling,l.sibling=null),Iu(t,!1,f,l,b,s);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=t.child,t.child=null;f!==null;){if(o=f.alternate,o!==null&&Lc(o)===null){t.child=f;break}o=f.sibling,f.sibling=l,l=f,f=o}Iu(t,!0,l,null,b,s);break;case"together":Iu(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function Yt(o,t,l){if(o!==null&&(t.dependencies=o.dependencies),Ar|=t.lanes,(l&t.childLanes)===0)if(o!==null){if(Ya(o,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(o!==null&&t.child!==o.child)throw Error(i(153));if(t.child!==null){for(o=t.child,l=Vt(o,o.pendingProps),t.child=l,l.return=t;o.sibling!==null;)o=o.sibling,l=l.sibling=Vt(o,o.pendingProps),l.return=t;l.sibling=null}return t.child}function Uu(o,t){return(o.lanes&t)!==0?!0:(o=o.dependencies,!!(o!==null&&wc(o)))}function F2(o,t,l){switch(t.tag){case 3:Ro(t,t.stateNode.containerInfo),_r(t,qo,o.memoizedState.cache),la();break;case 27:case 5:xt(t);break;case 4:Ro(t,t.stateNode.containerInfo);break;case 10:_r(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,uu(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(zr(t),t.flags|=128,null):(l&t.child.childLanes)!==0?mk(o,t,l):(zr(t),o=Yt(o,t,l),o!==null?o.sibling:null);zr(t);break;case 19:var f=(o.flags&128)!==0;if(s=(l&t.childLanes)!==0,s||(Ya(o,t,l,!1),s=(l&t.childLanes)!==0),f){if(s)return pk(o,t,l);t.flags|=128}if(f=t.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ae(Ho,Ho.current),s)break;return null;case 22:return t.lanes=0,ck(o,t,l,t.pendingProps);case 24:_r(t,qo,o.memoizedState.cache)}return Yt(o,t,l)}function kk(o,t,l){if(o!==null)if(o.memoizedProps!==t.pendingProps)Po=!0;else{if(!Uu(o,l)&&(t.flags&128)===0)return Po=!1,F2(o,t,l);Po=(o.flags&131072)!==0}else Po=!1,Qe&&(t.flags&1048576)!==0&&Yh(t,Yl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(o=da(t.elementType),t.type=o,typeof o=="function")qd(o)?(s=ma(o,s),t.tag=1,t=fk(null,t,o,s,l)):(t.tag=0,t=$u(null,t,o,s,l));else{if(o!=null){var f=o.$$typeof;if(f===N){t.tag=11,t=ak(null,t,o,s,l);break e}else if(f===q){t.tag=14,t=lk(null,t,o,s,l);break e}}throw t=Te(o)||o,Error(i(306,t,""))}}return t;case 0:return $u(o,t,t.type,t.pendingProps,l);case 1:return s=t.type,f=ma(s,t.pendingProps),fk(o,t,s,f,l);case 3:e:{if(Ro(t,t.stateNode.containerInfo),o===null)throw Error(i(387));s=t.pendingProps;var b=t.memoizedState;f=b.element,lu(o,t),ti(t,s,null,l);var k=t.memoizedState;if(s=k.cache,_r(t,qo,s),s!==b.cache&&eu(t,[qo],l,!0),ni(),s=k.element,b.isDehydrated)if(b={element:s,isDehydrated:!1,cache:k.cache},t.updateQueue.baseState=b,t.memoizedState=b,t.flags&256){t=bk(o,t,s,l);break e}else if(s!==f){f=ut(Error(i(424)),t),Jl(f),t=bk(o,t,s,l);break e}else for(o=t.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,wo=pt(o.firstChild),un=t,Qe=!0,vr=null,mt=!0,l=cp(t,null,s,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(la(),s===f){t=Yt(o,t,l);break e}bn(o,t,s,l)}t=t.child}return t;case 26:return Hc(o,t),o===null?(l=Av(t.type,null,t.pendingProps,null))?t.memoizedState=l:Qe||(l=t.type,o=t.pendingProps,s=as(Ne.current).createElement(l),s[dn]=t,s[Rn]=o,mn(s,l,o),rn(s),t.stateNode=s):t.memoizedState=Av(t.type,o.memoizedProps,t.pendingProps,o.memoizedState),null;case 27:return xt(t),o===null&&Qe&&(s=t.stateNode=Sv(t.type,t.pendingProps,Ne.current),un=t,mt=!0,f=wo,$r(t.type)?(_f=f,wo=pt(s.firstChild)):wo=f),bn(o,t,t.pendingProps.children,l),Hc(o,t),o===null&&(t.flags|=4194304),t.child;case 5:return o===null&&Qe&&((f=s=wo)&&(s=kz(s,t.type,t.pendingProps,mt),s!==null?(t.stateNode=s,un=t,wo=pt(s.firstChild),mt=!1,f=!0):f=!1),f||gr(t)),xt(t),f=t.type,b=t.pendingProps,k=o!==null?o.memoizedProps:null,s=b.children,hf(f,b)?s=null:k!==null&&hf(f,k)&&(t.flags|=32),t.memoizedState!==null&&(f=bu(o,t,O2,null,null,l),wi._currentValue=f),Hc(o,t),bn(o,t,s,l),t.child;case 6:return o===null&&Qe&&((o=l=wo)&&(l=vz(l,t.pendingProps,mt),l!==null?(t.stateNode=l,un=t,wo=null,o=!0):o=!1),o||gr(t)),null;case 13:return mk(o,t,l);case 4:return Ro(t,t.stateNode.containerInfo),s=t.pendingProps,o===null?t.child=fa(t,null,s,l):bn(o,t,s,l),t.child;case 11:return ak(o,t,t.type,t.pendingProps,l);case 7:return bn(o,t,t.pendingProps,l),t.child;case 8:return bn(o,t,t.pendingProps.children,l),t.child;case 12:return bn(o,t,t.pendingProps.children,l),t.child;case 10:return s=t.pendingProps,_r(t,t.type,s.value),bn(o,t,s.children,l),t.child;case 9:return f=t.type._context,s=t.pendingProps.children,ca(t),f=fn(f),s=s(f),t.flags|=1,bn(o,t,s,l),t.child;case 14:return lk(o,t,t.type,t.pendingProps,l);case 15:return ik(o,t,t.type,t.pendingProps,l);case 19:return pk(o,t,l);case 31:return U2(o,t,l);case 22:return ck(o,t,l,t.pendingProps);case 24:return ca(t),s=fn(qo),o===null?(f=tu(),f===null&&(f=xo,b=ou(),f.pooledCache=b,b.refCount++,b!==null&&(f.pooledCacheLanes|=l),f=b),t.memoizedState={parent:s,cache:f},au(t),_r(t,qo,f)):((o.lanes&l)!==0&&(lu(o,t),ti(t,null,null,l),ni()),f=o.memoizedState,b=t.memoizedState,f.parent!==s?(f={parent:s,cache:s},t.memoizedState=f,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=f),_r(t,qo,s)):(s=b.cache,_r(t,qo,s),s!==f.cache&&eu(t,[qo],l,!0))),bn(o,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Jt(o){o.flags|=4}function Fu(o,t,l,s,f){if((t=(o.mode&32)!==0)&&(t=!1),t){if(o.flags|=16777216,(f&335544128)===f)if(o.stateNode.complete)o.flags|=8192;else if(Kk())o.flags|=8192;else throw ua=Tc,ru}else o.flags&=-16777217}function vk(o,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!$v(t))if(Kk())o.flags|=8192;else throw ua=Tc,ru}function Kc(o,t){t!==null&&(o.flags|=4),o.flags&16384&&(t=o.tag!==22?Xm():536870912,o.lanes|=t,il|=t)}function si(o,t){if(!Qe)switch(o.tailMode){case"hidden":t=o.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?o.tail=null:l.sibling=null;break;case"collapsed":l=o.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?t||o.tail===null?o.tail=null:o.tail.sibling=null:s.sibling=null}}function zo(o){var t=o.alternate!==null&&o.alternate.child===o.child,l=0,s=0;if(t)for(var f=o.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=o,f=f.sibling;else for(f=o.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=o,f=f.sibling;return o.subtreeFlags|=s,o.childLanes=l,t}function H2(o,t,l){var s=t.pendingProps;switch(Yd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zo(t),null;case 1:return zo(t),null;case 3:return l=t.stateNode,s=null,o!==null&&(s=o.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Zt(qo),yo(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(o===null||o.child===null)&&(Ga(t)?Jt(t):o===null||o.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Xd())),zo(t),null;case 26:var f=t.type,b=t.memoizedState;return o===null?(Jt(t),b!==null?(zo(t),vk(t,b)):(zo(t),Fu(t,f,null,s,l))):b?b!==o.memoizedState?(Jt(t),zo(t),vk(t,b)):(zo(t),t.flags&=-16777217):(o=o.memoizedProps,o!==s&&Jt(t),zo(t),Fu(t,f,o,s,l)),null;case 27:if(Dt(t),l=Ne.current,f=t.type,o!==null&&t.stateNode!=null)o.memoizedProps!==s&&Jt(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return zo(t),null}o=be.current,Ga(t)?Xh(t):(o=Sv(f,s,l),t.stateNode=o,Jt(t))}return zo(t),null;case 5:if(Dt(t),f=t.type,o!==null&&t.stateNode!=null)o.memoizedProps!==s&&Jt(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return zo(t),null}if(b=be.current,Ga(t))Xh(t);else{var k=as(Ne.current);switch(b){case 1:b=k.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:b=k.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":b=k.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":b=k.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":b=k.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof s.is=="string"?k.createElement("select",{is:s.is}):k.createElement("select"),s.multiple?b.multiple=!0:s.size&&(b.size=s.size);break;default:b=typeof s.is=="string"?k.createElement(f,{is:s.is}):k.createElement(f)}}b[dn]=t,b[Rn]=s;e:for(k=t.child;k!==null;){if(k.tag===5||k.tag===6)b.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===t)break e;for(;k.sibling===null;){if(k.return===null||k.return===t)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}t.stateNode=b;e:switch(mn(b,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Jt(t)}}return zo(t),Fu(t,t.type,o===null?null:o.memoizedProps,t.pendingProps,l),null;case 6:if(o&&t.stateNode!=null)o.memoizedProps!==s&&Jt(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(o=Ne.current,Ga(t)){if(o=t.stateNode,l=t.memoizedProps,s=null,f=un,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}o[dn]=t,o=!!(o.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||mv(o.nodeValue,l)),o||gr(t,!0)}else o=as(o).createTextNode(s),o[dn]=t,t.stateNode=o}return zo(t),null;case 31:if(l=t.memoizedState,o===null||o.memoizedState!==null){if(s=Ga(t),l!==null){if(o===null){if(!s)throw Error(i(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(557));o[dn]=t}else la(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;zo(t),o=!1}else l=Xd(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=l),o=!0;if(!o)return t.flags&256?(Jn(t),t):(Jn(t),null);if((t.flags&128)!==0)throw Error(i(558))}return zo(t),null;case 13:if(s=t.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(f=Ga(t),s!==null&&s.dehydrated!==null){if(o===null){if(!f)throw Error(i(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[dn]=t}else la(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;zo(t),f=!1}else f=Xd(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=f),f=!0;if(!f)return t.flags&256?(Jn(t),t):(Jn(t),null)}return Jn(t),(t.flags&128)!==0?(t.lanes=l,t):(l=s!==null,o=o!==null&&o.memoizedState!==null,l&&(s=t.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),b=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(b=s.memoizedState.cachePool.pool),b!==f&&(s.flags|=2048)),l!==o&&l&&(t.child.flags|=8192),Kc(t,t.updateQueue),zo(t),null);case 4:return yo(),o===null&&df(t.stateNode.containerInfo),zo(t),null;case 10:return Zt(t.type),zo(t),null;case 19:if(P(Ho),s=t.memoizedState,s===null)return zo(t),null;if(f=(t.flags&128)!==0,b=s.rendering,b===null)if(f)si(s,!1);else{if(Do!==0||o!==null&&(o.flags&128)!==0)for(o=t.child;o!==null;){if(b=Lc(o),b!==null){for(t.flags|=128,si(s,!1),o=b.updateQueue,t.updateQueue=o,Kc(t,o),t.subtreeFlags=0,o=l,l=t.child;l!==null;)Zh(l,o),l=l.sibling;return ae(Ho,Ho.current&1|2),Qe&&Kt(t,s.treeForkCount),t.child}o=o.sibling}s.tail!==null&&R()>Yc&&(t.flags|=128,f=!0,si(s,!1),t.lanes=4194304)}else{if(!f)if(o=Lc(b),o!==null){if(t.flags|=128,f=!0,o=o.updateQueue,t.updateQueue=o,Kc(t,o),si(s,!0),s.tail===null&&s.tailMode==="hidden"&&!b.alternate&&!Qe)return zo(t),null}else 2*R()-s.renderingStartTime>Yc&&l!==536870912&&(t.flags|=128,f=!0,si(s,!1),t.lanes=4194304);s.isBackwards?(b.sibling=t.child,t.child=b):(o=s.last,o!==null?o.sibling=b:t.child=b,s.last=b)}return s.tail!==null?(o=s.tail,s.rendering=o,s.tail=o.sibling,s.renderingStartTime=R(),o.sibling=null,l=Ho.current,ae(Ho,f?l&1|2:l&1),Qe&&Kt(t,s.treeForkCount),o):(zo(t),null);case 22:case 23:return Jn(t),du(),s=t.memoizedState!==null,o!==null?o.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(l&536870912)!==0&&(t.flags&128)===0&&(zo(t),t.subtreeFlags&6&&(t.flags|=8192)):zo(t),l=t.updateQueue,l!==null&&Kc(t,l.retryQueue),l=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==l&&(t.flags|=2048),o!==null&&P(sa),null;case 24:return l=null,o!==null&&(l=o.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Zt(qo),zo(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function V2(o,t){switch(Yd(t),t.tag){case 1:return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 3:return Zt(qo),yo(),o=t.flags,(o&65536)!==0&&(o&128)===0?(t.flags=o&-65537|128,t):null;case 26:case 27:case 5:return Dt(t),null;case 31:if(t.memoizedState!==null){if(Jn(t),t.alternate===null)throw Error(i(340));la()}return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 13:if(Jn(t),o=t.memoizedState,o!==null&&o.dehydrated!==null){if(t.alternate===null)throw Error(i(340));la()}return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 19:return P(Ho),null;case 4:return yo(),null;case 10:return Zt(t.type),null;case 22:case 23:return Jn(t),du(),o!==null&&P(sa),o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 24:return Zt(qo),null;case 25:return null;default:return null}}function gk(o,t){switch(Yd(t),t.tag){case 3:Zt(qo),yo();break;case 26:case 27:case 5:Dt(t);break;case 4:yo();break;case 31:t.memoizedState!==null&&Jn(t);break;case 13:Jn(t);break;case 19:P(Ho);break;case 10:Zt(t.type);break;case 22:case 23:Jn(t),du(),o!==null&&P(sa);break;case 24:Zt(qo)}}function di(o,t){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var f=s.next;l=f;do{if((l.tag&o)===o){s=void 0;var b=l.create,k=l.inst;s=b(),k.destroy=s}l=l.next}while(l!==f)}}catch(x){bo(t,t.return,x)}}function jr(o,t,l){try{var s=t.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var b=f.next;s=b;do{if((s.tag&o)===o){var k=s.inst,x=k.destroy;if(x!==void 0){k.destroy=void 0,f=t;var A=l,F=x;try{F()}catch(Y){bo(f,A,Y)}}}s=s.next}while(s!==b)}}catch(Y){bo(t,t.return,Y)}}function _k(o){var t=o.updateQueue;if(t!==null){var l=o.stateNode;try{dp(t,l)}catch(s){bo(o,o.return,s)}}}function xk(o,t,l){l.props=ma(o.type,o.memoizedProps),l.state=o.memoizedState;try{l.componentWillUnmount()}catch(s){bo(o,t,s)}}function ui(o,t){try{var l=o.ref;if(l!==null){switch(o.tag){case 26:case 27:case 5:var s=o.stateNode;break;case 30:s=o.stateNode;break;default:s=o.stateNode}typeof l=="function"?o.refCleanup=l(s):l.current=s}}catch(f){bo(o,t,f)}}function $t(o,t){var l=o.ref,s=o.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(f){bo(o,t,f)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){bo(o,t,f)}else l.current=null}function yk(o){var t=o.type,l=o.memoizedProps,s=o.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(f){bo(o,o.return,f)}}function Hu(o,t,l){try{var s=o.stateNode;uz(s,o.type,l,t),s[Rn]=t}catch(f){bo(o,o.return,f)}}function wk(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&$r(o.type)||o.tag===4}function Vu(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||wk(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&$r(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Ku(o,t,l){var s=o.tag;if(s===5||s===6)o=o.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(o,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(o),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Ft));else if(s!==4&&(s===27&&$r(o.type)&&(l=o.stateNode,t=null),o=o.child,o!==null))for(Ku(o,t,l),o=o.sibling;o!==null;)Ku(o,t,l),o=o.sibling}function qc(o,t,l){var s=o.tag;if(s===5||s===6)o=o.stateNode,t?l.insertBefore(o,t):l.appendChild(o);else if(s!==4&&(s===27&&$r(o.type)&&(l=o.stateNode),o=o.child,o!==null))for(qc(o,t,l),o=o.sibling;o!==null;)qc(o,t,l),o=o.sibling}function zk(o){var t=o.stateNode,l=o.memoizedProps;try{for(var s=o.type,f=t.attributes;f.length;)t.removeAttributeNode(f[0]);mn(t,s,l),t[dn]=o,t[Rn]=l}catch(b){bo(o,o.return,b)}}var Xt=!1,Go=!1,qu=!1,Sk=typeof WeakSet=="function"?WeakSet:Set,an=null;function K2(o,t){if(o=o.containerInfo,bf=fs,o=Dh(o),Md(o)){if("selectionStart"in o)var l={start:o.selectionStart,end:o.selectionEnd};else e:{l=(l=o.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var f=s.anchorOffset,b=s.focusNode;s=s.focusOffset;try{l.nodeType,b.nodeType}catch{l=null;break e}var k=0,x=-1,A=-1,F=0,Y=0,Q=o,V=null;o:for(;;){for(var Z;Q!==l||f!==0&&Q.nodeType!==3||(x=k+f),Q!==b||s!==0&&Q.nodeType!==3||(A=k+s),Q.nodeType===3&&(k+=Q.nodeValue.length),(Z=Q.firstChild)!==null;)V=Q,Q=Z;for(;;){if(Q===o)break o;if(V===l&&++F===f&&(x=k),V===b&&++Y===s&&(A=k),(Z=Q.nextSibling)!==null)break;Q=V,V=Q.parentNode}Q=Z}l=x===-1||A===-1?null:{start:x,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(mf={focusedElem:o,selectionRange:l},fs=!1,an=t;an!==null;)if(t=an,o=t.child,(t.subtreeFlags&1028)!==0&&o!==null)o.return=t,an=o;else for(;an!==null;){switch(t=an,b=t.alternate,o=t.flags,t.tag){case 0:if((o&4)!==0&&(o=t.updateQueue,o=o!==null?o.events:null,o!==null))for(l=0;l<o.length;l++)f=o[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&b!==null){o=void 0,l=t,f=b.memoizedProps,b=b.memoizedState,s=l.stateNode;try{var ke=ma(l.type,f);o=s.getSnapshotBeforeUpdate(ke,b),s.__reactInternalSnapshotBeforeUpdate=o}catch(Ee){bo(l,l.return,Ee)}}break;case 3:if((o&1024)!==0){if(o=t.stateNode.containerInfo,l=o.nodeType,l===9)kf(o);else if(l===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":kf(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(i(163))}if(o=t.sibling,o!==null){o.return=t.return,an=o;break}an=t.return}}function jk(o,t,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:Qt(o,l),s&4&&di(5,l);break;case 1:if(Qt(o,l),s&4)if(o=l.stateNode,t===null)try{o.componentDidMount()}catch(k){bo(l,l.return,k)}else{var f=ma(l.type,t.memoizedProps);t=t.memoizedState;try{o.componentDidUpdate(f,t,o.__reactInternalSnapshotBeforeUpdate)}catch(k){bo(l,l.return,k)}}s&64&&_k(l),s&512&&ui(l,l.return);break;case 3:if(Qt(o,l),s&64&&(o=l.updateQueue,o!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{dp(o,t)}catch(k){bo(l,l.return,k)}}break;case 27:t===null&&s&4&&zk(l);case 26:case 5:Qt(o,l),t===null&&s&4&&yk(l),s&512&&ui(l,l.return);break;case 12:Qt(o,l);break;case 31:Qt(o,l),s&4&&Ck(o,l);break;case 13:Qt(o,l),s&4&&Ek(o,l),s&64&&(o=l.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(l=Q2.bind(null,l),gz(o,l))));break;case 22:if(s=l.memoizedState!==null||Xt,!s){t=t!==null&&t.memoizedState!==null||Go,f=Xt;var b=Go;Xt=s,(Go=t)&&!b?er(o,l,(l.subtreeFlags&8772)!==0):Qt(o,l),Xt=f,Go=b}break;case 30:break;default:Qt(o,l)}}function Tk(o){var t=o.alternate;t!==null&&(o.alternate=null,Tk(t)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(t=o.stateNode,t!==null&&xd(t)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var To=null,Dn=!1;function Wt(o,t,l){for(l=l.child;l!==null;)Ak(o,t,l),l=l.sibling}function Ak(o,t,l){if(ko&&typeof ko.onCommitFiberUnmount=="function")try{ko.onCommitFiberUnmount(xn,l)}catch{}switch(l.tag){case 26:Go||$t(l,t),Wt(o,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Go||$t(l,t);var s=To,f=Dn;$r(l.type)&&(To=l.stateNode,Dn=!1),Wt(o,t,l),_i(l.stateNode),To=s,Dn=f;break;case 5:Go||$t(l,t);case 6:if(s=To,f=Dn,To=null,Wt(o,t,l),To=s,Dn=f,To!==null)if(Dn)try{(To.nodeType===9?To.body:To.nodeName==="HTML"?To.ownerDocument.body:To).removeChild(l.stateNode)}catch(b){bo(l,t,b)}else try{To.removeChild(l.stateNode)}catch(b){bo(l,t,b)}break;case 18:To!==null&&(Dn?(o=To,_v(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,l.stateNode),hl(o)):_v(To,l.stateNode));break;case 4:s=To,f=Dn,To=l.stateNode.containerInfo,Dn=!0,Wt(o,t,l),To=s,Dn=f;break;case 0:case 11:case 14:case 15:jr(2,l,t),Go||jr(4,l,t),Wt(o,t,l);break;case 1:Go||($t(l,t),s=l.stateNode,typeof s.componentWillUnmount=="function"&&xk(l,t,s)),Wt(o,t,l);break;case 21:Wt(o,t,l);break;case 22:Go=(s=Go)||l.memoizedState!==null,Wt(o,t,l),Go=s;break;default:Wt(o,t,l)}}function Ck(o,t){if(t.memoizedState===null&&(o=t.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{hl(o)}catch(l){bo(t,t.return,l)}}}function Ek(o,t){if(t.memoizedState===null&&(o=t.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{hl(o)}catch(l){bo(t,t.return,l)}}function q2(o){switch(o.tag){case 31:case 13:case 19:var t=o.stateNode;return t===null&&(t=o.stateNode=new Sk),t;case 22:return o=o.stateNode,t=o._retryCache,t===null&&(t=o._retryCache=new Sk),t;default:throw Error(i(435,o.tag))}}function Zc(o,t){var l=q2(o);t.forEach(function(s){if(!l.has(s)){l.add(s);var f=ez.bind(null,o,s);s.then(f,f)}})}function Mn(o,t){var l=t.deletions;if(l!==null)for(var s=0;s<l.length;s++){var f=l[s],b=o,k=t,x=k;e:for(;x!==null;){switch(x.tag){case 27:if($r(x.type)){To=x.stateNode,Dn=!1;break e}break;case 5:To=x.stateNode,Dn=!1;break e;case 3:case 4:To=x.stateNode.containerInfo,Dn=!0;break e}x=x.return}if(To===null)throw Error(i(160));Ak(b,k,f),To=null,Dn=!1,b=f.alternate,b!==null&&(b.return=null),f.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Lk(t,o),t=t.sibling}var zt=null;function Lk(o,t){var l=o.alternate,s=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Mn(t,o),In(o),s&4&&(jr(3,o,o.return),di(3,o),jr(5,o,o.return));break;case 1:Mn(t,o),In(o),s&512&&(Go||l===null||$t(l,l.return)),s&64&&Xt&&(o=o.updateQueue,o!==null&&(s=o.callbacks,s!==null&&(l=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var f=zt;if(Mn(t,o),In(o),s&512&&(Go||l===null||$t(l,l.return)),s&4){var b=l!==null?l.memoizedState:null;if(s=o.memoizedState,l===null)if(s===null)if(o.stateNode===null){e:{s=o.type,l=o.memoizedProps,f=f.ownerDocument||f;o:switch(s){case"title":b=f.getElementsByTagName("title")[0],(!b||b[Ml]||b[dn]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=f.createElement(s),f.head.insertBefore(b,f.querySelector("head > title"))),mn(b,s,l),b[dn]=o,rn(b),s=b;break e;case"link":var k=Lv("link","href",f).get(s+(l.href||""));if(k){for(var x=0;x<k.length;x++)if(b=k[x],b.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&b.getAttribute("rel")===(l.rel==null?null:l.rel)&&b.getAttribute("title")===(l.title==null?null:l.title)&&b.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){k.splice(x,1);break o}}b=f.createElement(s),mn(b,s,l),f.head.appendChild(b);break;case"meta":if(k=Lv("meta","content",f).get(s+(l.content||""))){for(x=0;x<k.length;x++)if(b=k[x],b.getAttribute("content")===(l.content==null?null:""+l.content)&&b.getAttribute("name")===(l.name==null?null:l.name)&&b.getAttribute("property")===(l.property==null?null:l.property)&&b.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&b.getAttribute("charset")===(l.charSet==null?null:l.charSet)){k.splice(x,1);break o}}b=f.createElement(s),mn(b,s,l),f.head.appendChild(b);break;default:throw Error(i(468,s))}b[dn]=o,rn(b),s=b}o.stateNode=s}else Ov(f,o.type,o.stateNode);else o.stateNode=Ev(f,s,o.memoizedProps);else b!==s?(b===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):b.count--,s===null?Ov(f,o.type,o.stateNode):Ev(f,s,o.memoizedProps)):s===null&&o.stateNode!==null&&Hu(o,o.memoizedProps,l.memoizedProps)}break;case 27:Mn(t,o),In(o),s&512&&(Go||l===null||$t(l,l.return)),l!==null&&s&4&&Hu(o,o.memoizedProps,l.memoizedProps);break;case 5:if(Mn(t,o),In(o),s&512&&(Go||l===null||$t(l,l.return)),o.flags&32){f=o.stateNode;try{Ma(f,"")}catch(ke){bo(o,o.return,ke)}}s&4&&o.stateNode!=null&&(f=o.memoizedProps,Hu(o,f,l!==null?l.memoizedProps:f)),s&1024&&(qu=!0);break;case 6:if(Mn(t,o),In(o),s&4){if(o.stateNode===null)throw Error(i(162));s=o.memoizedProps,l=o.stateNode;try{l.nodeValue=s}catch(ke){bo(o,o.return,ke)}}break;case 3:if(cs=null,f=zt,zt=ls(t.containerInfo),Mn(t,o),zt=f,In(o),s&4&&l!==null&&l.memoizedState.isDehydrated)try{hl(t.containerInfo)}catch(ke){bo(o,o.return,ke)}qu&&(qu=!1,Ok(o));break;case 4:s=zt,zt=ls(o.stateNode.containerInfo),Mn(t,o),In(o),zt=s;break;case 12:Mn(t,o),In(o);break;case 31:Mn(t,o),In(o),s&4&&(s=o.updateQueue,s!==null&&(o.updateQueue=null,Zc(o,s)));break;case 13:Mn(t,o),In(o),o.child.flags&8192&&o.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Gc=R()),s&4&&(s=o.updateQueue,s!==null&&(o.updateQueue=null,Zc(o,s)));break;case 22:f=o.memoizedState!==null;var A=l!==null&&l.memoizedState!==null,F=Xt,Y=Go;if(Xt=F||f,Go=Y||A,Mn(t,o),Go=Y,Xt=F,In(o),s&8192)e:for(t=o.stateNode,t._visibility=f?t._visibility&-2:t._visibility|1,f&&(l===null||A||Xt||Go||ha(o)),l=null,t=o;;){if(t.tag===5||t.tag===26){if(l===null){A=l=t;try{if(b=A.stateNode,f)k=b.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{x=A.stateNode;var Q=A.memoizedProps.style,V=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;x.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(ke){bo(A,A.return,ke)}}}else if(t.tag===6){if(l===null){A=t;try{A.stateNode.nodeValue=f?"":A.memoizedProps}catch(ke){bo(A,A.return,ke)}}}else if(t.tag===18){if(l===null){A=t;try{var Z=A.stateNode;f?xv(Z,!0):xv(A.stateNode,!1)}catch(ke){bo(A,A.return,ke)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===o)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===o)break e;for(;t.sibling===null;){if(t.return===null||t.return===o)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=o.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,Zc(o,l))));break;case 19:Mn(t,o),In(o),s&4&&(s=o.updateQueue,s!==null&&(o.updateQueue=null,Zc(o,s)));break;case 30:break;case 21:break;default:Mn(t,o),In(o)}}function In(o){var t=o.flags;if(t&2){try{for(var l,s=o.return;s!==null;){if(wk(s)){l=s;break}s=s.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var f=l.stateNode,b=Vu(o);qc(o,b,f);break;case 5:var k=l.stateNode;l.flags&32&&(Ma(k,""),l.flags&=-33);var x=Vu(o);qc(o,x,k);break;case 3:case 4:var A=l.stateNode.containerInfo,F=Vu(o);Ku(o,F,A);break;default:throw Error(i(161))}}catch(Y){bo(o,o.return,Y)}o.flags&=-3}t&4096&&(o.flags&=-4097)}function Ok(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var t=o;Ok(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),o=o.sibling}}function Qt(o,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)jk(o,t.alternate,t),t=t.sibling}function ha(o){for(o=o.child;o!==null;){var t=o;switch(t.tag){case 0:case 11:case 14:case 15:jr(4,t,t.return),ha(t);break;case 1:$t(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&xk(t,t.return,l),ha(t);break;case 27:_i(t.stateNode);case 26:case 5:$t(t,t.return),ha(t);break;case 22:t.memoizedState===null&&ha(t);break;case 30:ha(t);break;default:ha(t)}o=o.sibling}}function er(o,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,f=o,b=t,k=b.flags;switch(b.tag){case 0:case 11:case 15:er(f,b,l),di(4,b);break;case 1:if(er(f,b,l),s=b,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(F){bo(s,s.return,F)}if(s=b,f=s.updateQueue,f!==null){var x=s.stateNode;try{var A=f.shared.hiddenCallbacks;if(A!==null)for(f.shared.hiddenCallbacks=null,f=0;f<A.length;f++)sp(A[f],x)}catch(F){bo(s,s.return,F)}}l&&k&64&&_k(b),ui(b,b.return);break;case 27:zk(b);case 26:case 5:er(f,b,l),l&&s===null&&k&4&&yk(b),ui(b,b.return);break;case 12:er(f,b,l);break;case 31:er(f,b,l),l&&k&4&&Ck(f,b);break;case 13:er(f,b,l),l&&k&4&&Ek(f,b);break;case 22:b.memoizedState===null&&er(f,b,l),ui(b,b.return);break;case 30:break;default:er(f,b,l)}t=t.sibling}}function Zu(o,t){var l=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==l&&(o!=null&&o.refCount++,l!=null&&Xl(l))}function Pu(o,t){o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Xl(o))}function St(o,t,l,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$k(o,t,l,s),t=t.sibling}function $k(o,t,l,s){var f=t.flags;switch(t.tag){case 0:case 11:case 15:St(o,t,l,s),f&2048&&di(9,t);break;case 1:St(o,t,l,s);break;case 3:St(o,t,l,s),f&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Xl(o)));break;case 12:if(f&2048){St(o,t,l,s),o=t.stateNode;try{var b=t.memoizedProps,k=b.id,x=b.onPostCommit;typeof x=="function"&&x(k,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(A){bo(t,t.return,A)}}else St(o,t,l,s);break;case 31:St(o,t,l,s);break;case 13:St(o,t,l,s);break;case 23:break;case 22:b=t.stateNode,k=t.alternate,t.memoizedState!==null?b._visibility&2?St(o,t,l,s):fi(o,t):b._visibility&2?St(o,t,l,s):(b._visibility|=2,rl(o,t,l,s,(t.subtreeFlags&10256)!==0||!1)),f&2048&&Zu(k,t);break;case 24:St(o,t,l,s),f&2048&&Pu(t.alternate,t);break;default:St(o,t,l,s)}}function rl(o,t,l,s,f){for(f=f&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var b=o,k=t,x=l,A=s,F=k.flags;switch(k.tag){case 0:case 11:case 15:rl(b,k,x,A,f),di(8,k);break;case 23:break;case 22:var Y=k.stateNode;k.memoizedState!==null?Y._visibility&2?rl(b,k,x,A,f):fi(b,k):(Y._visibility|=2,rl(b,k,x,A,f)),f&&F&2048&&Zu(k.alternate,k);break;case 24:rl(b,k,x,A,f),f&&F&2048&&Pu(k.alternate,k);break;default:rl(b,k,x,A,f)}t=t.sibling}}function fi(o,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=o,s=t,f=s.flags;switch(s.tag){case 22:fi(l,s),f&2048&&Zu(s.alternate,s);break;case 24:fi(l,s),f&2048&&Pu(s.alternate,s);break;default:fi(l,s)}t=t.sibling}}var bi=8192;function al(o,t,l){if(o.subtreeFlags&bi)for(o=o.child;o!==null;)Nk(o,t,l),o=o.sibling}function Nk(o,t,l){switch(o.tag){case 26:al(o,t,l),o.flags&bi&&o.memoizedState!==null&&Lz(l,zt,o.memoizedState,o.memoizedProps);break;case 5:al(o,t,l);break;case 3:case 4:var s=zt;zt=ls(o.stateNode.containerInfo),al(o,t,l),zt=s;break;case 22:o.memoizedState===null&&(s=o.alternate,s!==null&&s.memoizedState!==null?(s=bi,bi=16777216,al(o,t,l),bi=s):al(o,t,l));break;default:al(o,t,l)}}function Rk(o){var t=o.alternate;if(t!==null&&(o=t.child,o!==null)){t.child=null;do t=o.sibling,o.sibling=null,o=t;while(o!==null)}}function mi(o){var t=o.deletions;if((o.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];an=s,Dk(s,o)}Rk(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)Bk(o),o=o.sibling}function Bk(o){switch(o.tag){case 0:case 11:case 15:mi(o),o.flags&2048&&jr(9,o,o.return);break;case 3:mi(o);break;case 12:mi(o);break;case 22:var t=o.stateNode;o.memoizedState!==null&&t._visibility&2&&(o.return===null||o.return.tag!==13)?(t._visibility&=-3,Pc(o)):mi(o);break;default:mi(o)}}function Pc(o){var t=o.deletions;if((o.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];an=s,Dk(s,o)}Rk(o)}for(o=o.child;o!==null;){switch(t=o,t.tag){case 0:case 11:case 15:jr(8,t,t.return),Pc(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Pc(t));break;default:Pc(t)}o=o.sibling}}function Dk(o,t){for(;an!==null;){var l=an;switch(l.tag){case 0:case 11:case 15:jr(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Xl(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,an=s;else e:for(l=o;an!==null;){s=an;var f=s.sibling,b=s.return;if(Tk(s),s===l){an=null;break e}if(f!==null){f.return=b,an=f;break e}an=b}}}var Z2={getCacheForType:function(o){var t=fn(qo),l=t.data.get(o);return l===void 0&&(l=o(),t.data.set(o,l)),l},cacheSignal:function(){return fn(qo).controller.signal}},P2=typeof WeakMap=="function"?WeakMap:Map,lo=0,xo=null,Ze=null,Je=0,fo=0,Xn=null,Tr=!1,ll=!1,Gu=!1,or=0,Do=0,Ar=0,pa=0,Yu=0,Wn=0,il=0,hi=null,Un=null,Ju=!1,Gc=0,Mk=0,Yc=1/0,Jc=null,Cr=null,on=0,Er=null,cl=null,nr=0,Xu=0,Wu=null,Ik=null,pi=0,Qu=null;function Qn(){return(lo&2)!==0&&Je!==0?Je&-Je:M.T!==null?af():oh()}function Uk(){if(Wn===0)if((Je&536870912)===0||Qe){var o=Wr;Wr<<=1,(Wr&3932160)===0&&(Wr=262144),Wn=o}else Wn=536870912;return o=Yn.current,o!==null&&(o.flags|=32),Wn}function Fn(o,t,l){(o===xo&&(fo===2||fo===9)||o.cancelPendingCommit!==null)&&(sl(o,0),Lr(o,Je,Wn,!1)),Dl(o,l),((lo&2)===0||o!==xo)&&(o===xo&&((lo&2)===0&&(pa|=l),Do===4&&Lr(o,Je,Wn,!1)),Nt(o))}function Fk(o,t,l){if((lo&6)!==0)throw Error(i(327));var s=!l&&(t&127)===0&&(t&o.expiredLanes)===0||Bl(o,t),f=s?J2(o,t):of(o,t,!0),b=s;do{if(f===0){ll&&!s&&Lr(o,t,0,!1);break}else{if(l=o.current.alternate,b&&!G2(l)){f=of(o,t,!1),b=!1;continue}if(f===2){if(b=t,o.errorRecoveryDisabledLanes&b)var k=0;else k=o.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){t=k;e:{var x=o;f=hi;var A=x.current.memoizedState.isDehydrated;if(A&&(sl(x,k).flags|=256),k=of(x,k,!1),k!==2){if(Gu&&!A){x.errorRecoveryDisabledLanes|=b,pa|=b,f=4;break e}b=Un,Un=f,b!==null&&(Un===null?Un=b:Un.push.apply(Un,b))}f=k}if(b=!1,f!==2)continue}}if(f===1){sl(o,0),Lr(o,t,0,!0);break}e:{switch(s=o,b=f,b){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Lr(s,t,Wn,!Tr);break e;case 2:Un=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(f=Gc+300-R(),10<f)){if(Lr(s,t,Wn,!Tr),lc(s,0,!0)!==0)break e;nr=t,s.timeoutHandle=vv(Hk.bind(null,s,l,Un,Jc,Ju,t,Wn,pa,il,Tr,b,"Throttled",-0,0),f);break e}Hk(s,l,Un,Jc,Ju,t,Wn,pa,il,Tr,b,null,-0,0)}}break}while(!0);Nt(o)}function Hk(o,t,l,s,f,b,k,x,A,F,Y,Q,V,Z){if(o.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ft},Nk(t,b,Q);var ke=(b&62914560)===b?Gc-R():(b&4194048)===b?Mk-R():0;if(ke=Oz(Q,ke),ke!==null){nr=b,o.cancelPendingCommit=ke(Jk.bind(null,o,t,b,l,s,f,k,x,A,Y,Q,null,V,Z)),Lr(o,b,k,!F);return}}Jk(o,t,b,l,s,f,k,x,A)}function G2(o){for(var t=o;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var s=0;s<l.length;s++){var f=l[s],b=f.getSnapshot;f=f.value;try{if(!Pn(b(),f))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===o)break;for(;t.sibling===null;){if(t.return===null||t.return===o)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Lr(o,t,l,s){t&=~Yu,t&=~pa,o.suspendedLanes|=t,o.pingedLanes&=~t,s&&(o.warmLanes|=t),s=o.expirationTimes;for(var f=t;0<f;){var b=31-sn(f),k=1<<b;s[b]=-1,f&=~k}l!==0&&Wm(o,l,t)}function Xc(){return(lo&6)===0?(ki(0),!1):!0}function ef(){if(Ze!==null){if(fo===0)var o=Ze.return;else o=Ze,qt=ia=null,pu(o),Qa=null,Ql=0,o=Ze;for(;o!==null;)gk(o.alternate,o),o=o.return;Ze=null}}function sl(o,t){var l=o.timeoutHandle;l!==-1&&(o.timeoutHandle=-1,mz(l)),l=o.cancelPendingCommit,l!==null&&(o.cancelPendingCommit=null,l()),nr=0,ef(),xo=o,Ze=l=Vt(o.current,null),Je=t,fo=0,Xn=null,Tr=!1,ll=Bl(o,t),Gu=!1,il=Wn=Yu=pa=Ar=Do=0,Un=hi=null,Ju=!1,(t&8)!==0&&(t|=t&32);var s=o.entangledLanes;if(s!==0)for(o=o.entanglements,s&=t;0<s;){var f=31-sn(s),b=1<<f;t|=o[f],s&=~b}return or=t,vc(),l}function Vk(o,t){Ie=null,M.H=ii,t===Wa||t===jc?(t=ap(),fo=3):t===ru?(t=ap(),fo=4):fo=t===Ou?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Xn=t,Ze===null&&(Do=1,Uc(o,ut(t,o.current)))}function Kk(){var o=Yn.current;return o===null?!0:(Je&4194048)===Je?ht===null:(Je&62914560)===Je||(Je&536870912)!==0?o===ht:!1}function qk(){var o=M.H;return M.H=ii,o===null?ii:o}function Zk(){var o=M.A;return M.A=Z2,o}function Wc(){Do=4,Tr||(Je&4194048)!==Je&&Yn.current!==null||(ll=!0),(Ar&134217727)===0&&(pa&134217727)===0||xo===null||Lr(xo,Je,Wn,!1)}function of(o,t,l){var s=lo;lo|=2;var f=qk(),b=Zk();(xo!==o||Je!==t)&&(Jc=null,sl(o,t)),t=!1;var k=Do;e:do try{if(fo!==0&&Ze!==null){var x=Ze,A=Xn;switch(fo){case 8:ef(),k=6;break e;case 3:case 2:case 9:case 6:Yn.current===null&&(t=!0);var F=fo;if(fo=0,Xn=null,dl(o,x,A,F),l&&ll){k=0;break e}break;default:F=fo,fo=0,Xn=null,dl(o,x,A,F)}}Y2(),k=Do;break}catch(Y){Vk(o,Y)}while(!0);return t&&o.shellSuspendCounter++,qt=ia=null,lo=s,M.H=f,M.A=b,Ze===null&&(xo=null,Je=0,vc()),k}function Y2(){for(;Ze!==null;)Pk(Ze)}function J2(o,t){var l=lo;lo|=2;var s=qk(),f=Zk();xo!==o||Je!==t?(Jc=null,Yc=R()+500,sl(o,t)):ll=Bl(o,t);e:do try{if(fo!==0&&Ze!==null){t=Ze;var b=Xn;o:switch(fo){case 1:fo=0,Xn=null,dl(o,t,b,1);break;case 2:case 9:if(tp(b)){fo=0,Xn=null,Gk(t);break}t=function(){fo!==2&&fo!==9||xo!==o||(fo=7),Nt(o)},b.then(t,t);break e;case 3:fo=7;break e;case 4:fo=5;break e;case 7:tp(b)?(fo=0,Xn=null,Gk(t)):(fo=0,Xn=null,dl(o,t,b,7));break;case 5:var k=null;switch(Ze.tag){case 26:k=Ze.memoizedState;case 5:case 27:var x=Ze;if(k?$v(k):x.stateNode.complete){fo=0,Xn=null;var A=x.sibling;if(A!==null)Ze=A;else{var F=x.return;F!==null?(Ze=F,Qc(F)):Ze=null}break o}}fo=0,Xn=null,dl(o,t,b,5);break;case 6:fo=0,Xn=null,dl(o,t,b,6);break;case 8:ef(),Do=6;break e;default:throw Error(i(462))}}X2();break}catch(Y){Vk(o,Y)}while(!0);return qt=ia=null,M.H=s,M.A=f,lo=l,Ze!==null?0:(xo=null,Je=0,vc(),Do)}function X2(){for(;Ze!==null&&!uo();)Pk(Ze)}function Pk(o){var t=kk(o.alternate,o,or);o.memoizedProps=o.pendingProps,t===null?Qc(o):Ze=t}function Gk(o){var t=o,l=t.alternate;switch(t.tag){case 15:case 0:t=uk(l,t,t.pendingProps,t.type,void 0,Je);break;case 11:t=uk(l,t,t.pendingProps,t.type.render,t.ref,Je);break;case 5:pu(t);default:gk(l,t),t=Ze=Zh(t,or),t=kk(l,t,or)}o.memoizedProps=o.pendingProps,t===null?Qc(o):Ze=t}function dl(o,t,l,s){qt=ia=null,pu(t),Qa=null,Ql=0;var f=t.return;try{if(I2(o,f,t,l,Je)){Do=1,Uc(o,ut(l,o.current)),Ze=null;return}}catch(b){if(f!==null)throw Ze=f,b;Do=1,Uc(o,ut(l,o.current)),Ze=null;return}t.flags&32768?(Qe||s===1?o=!0:ll||(Je&536870912)!==0?o=!1:(Tr=o=!0,(s===2||s===9||s===3||s===6)&&(s=Yn.current,s!==null&&s.tag===13&&(s.flags|=16384))),Yk(t,o)):Qc(t)}function Qc(o){var t=o;do{if((t.flags&32768)!==0){Yk(t,Tr);return}o=t.return;var l=H2(t.alternate,t,or);if(l!==null){Ze=l;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=o}while(t!==null);Do===0&&(Do=5)}function Yk(o,t){do{var l=V2(o.alternate,o);if(l!==null){l.flags&=32767,Ze=l;return}if(l=o.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(o=o.sibling,o!==null)){Ze=o;return}Ze=o=l}while(o!==null);Do=6,Ze=null}function Jk(o,t,l,s,f,b,k,x,A){o.cancelPendingCommit=null;do es();while(on!==0);if((lo&6)!==0)throw Error(i(327));if(t!==null){if(t===o.current)throw Error(i(177));if(b=t.lanes|t.childLanes,b|=Vd,Ew(o,l,b,k,x,A),o===xo&&(Ze=xo=null,Je=0),cl=t,Er=o,nr=l,Xu=b,Wu=f,Ik=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,oz(ne,function(){return ov(),null})):(o.callbackNode=null,o.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=M.T,M.T=null,f=G.p,G.p=2,k=lo,lo|=4;try{K2(o,t,l)}finally{lo=k,G.p=f,M.T=s}}on=1,Xk(),Wk(),Qk()}}function Xk(){if(on===1){on=0;var o=Er,t=cl,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var s=G.p;G.p=2;var f=lo;lo|=4;try{Lk(t,o);var b=mf,k=Dh(o.containerInfo),x=b.focusedElem,A=b.selectionRange;if(k!==x&&x&&x.ownerDocument&&Bh(x.ownerDocument.documentElement,x)){if(A!==null&&Md(x)){var F=A.start,Y=A.end;if(Y===void 0&&(Y=F),"selectionStart"in x)x.selectionStart=F,x.selectionEnd=Math.min(Y,x.value.length);else{var Q=x.ownerDocument||document,V=Q&&Q.defaultView||window;if(V.getSelection){var Z=V.getSelection(),ke=x.textContent.length,Ee=Math.min(A.start,ke),_o=A.end===void 0?Ee:Math.min(A.end,ke);!Z.extend&&Ee>_o&&(k=_o,_o=Ee,Ee=k);var B=Rh(x,Ee),O=Rh(x,_o);if(B&&O&&(Z.rangeCount!==1||Z.anchorNode!==B.node||Z.anchorOffset!==B.offset||Z.focusNode!==O.node||Z.focusOffset!==O.offset)){var U=Q.createRange();U.setStart(B.node,B.offset),Z.removeAllRanges(),Ee>_o?(Z.addRange(U),Z.extend(O.node,O.offset)):(U.setEnd(O.node,O.offset),Z.addRange(U))}}}}for(Q=[],Z=x;Z=Z.parentNode;)Z.nodeType===1&&Q.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Q.length;x++){var J=Q[x];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}fs=!!bf,mf=bf=null}finally{lo=f,G.p=s,M.T=l}}o.current=t,on=2}}function Wk(){if(on===2){on=0;var o=Er,t=cl,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var s=G.p;G.p=2;var f=lo;lo|=4;try{jk(o,t.alternate,t)}finally{lo=f,G.p=s,M.T=l}}on=3}}function Qk(){if(on===4||on===3){on=0,T();var o=Er,t=cl,l=nr,s=Ik;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?on=5:(on=0,cl=Er=null,ev(o,o.pendingLanes));var f=o.pendingLanes;if(f===0&&(Cr=null),gd(l),t=t.stateNode,ko&&typeof ko.onCommitFiberRoot=="function")try{ko.onCommitFiberRoot(xn,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=M.T,f=G.p,G.p=2,M.T=null;try{for(var b=o.onRecoverableError,k=0;k<s.length;k++){var x=s[k];b(x.value,{componentStack:x.stack})}}finally{M.T=t,G.p=f}}(nr&3)!==0&&es(),Nt(o),f=o.pendingLanes,(l&261930)!==0&&(f&42)!==0?o===Qu?pi++:(pi=0,Qu=o):pi=0,ki(0)}}function ev(o,t){(o.pooledCacheLanes&=t)===0&&(t=o.pooledCache,t!=null&&(o.pooledCache=null,Xl(t)))}function es(){return Xk(),Wk(),Qk(),ov()}function ov(){if(on!==5)return!1;var o=Er,t=Xu;Xu=0;var l=gd(nr),s=M.T,f=G.p;try{G.p=32>l?32:l,M.T=null,l=Wu,Wu=null;var b=Er,k=nr;if(on=0,cl=Er=null,nr=0,(lo&6)!==0)throw Error(i(331));var x=lo;if(lo|=4,Bk(b.current),$k(b,b.current,k,l),lo=x,ki(0,!1),ko&&typeof ko.onPostCommitFiberRoot=="function")try{ko.onPostCommitFiberRoot(xn,b)}catch{}return!0}finally{G.p=f,M.T=s,ev(o,t)}}function nv(o,t,l){t=ut(l,t),t=Lu(o.stateNode,t,2),o=wr(o,t,2),o!==null&&(Dl(o,2),Nt(o))}function bo(o,t,l){if(o.tag===3)nv(o,o,l);else for(;t!==null;){if(t.tag===3){nv(t,o,l);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Cr===null||!Cr.has(s))){o=ut(l,o),l=tk(2),s=wr(t,l,2),s!==null&&(rk(l,s,t,o),Dl(s,2),Nt(s));break}}t=t.return}}function nf(o,t,l){var s=o.pingCache;if(s===null){s=o.pingCache=new P2;var f=new Set;s.set(t,f)}else f=s.get(t),f===void 0&&(f=new Set,s.set(t,f));f.has(l)||(Gu=!0,f.add(l),o=W2.bind(null,o,t,l),t.then(o,o))}function W2(o,t,l){var s=o.pingCache;s!==null&&s.delete(t),o.pingedLanes|=o.suspendedLanes&l,o.warmLanes&=~l,xo===o&&(Je&l)===l&&(Do===4||Do===3&&(Je&62914560)===Je&&300>R()-Gc?(lo&2)===0&&sl(o,0):Yu|=l,il===Je&&(il=0)),Nt(o)}function tv(o,t){t===0&&(t=Xm()),o=ra(o,t),o!==null&&(Dl(o,t),Nt(o))}function Q2(o){var t=o.memoizedState,l=0;t!==null&&(l=t.retryLane),tv(o,l)}function ez(o,t){var l=0;switch(o.tag){case 31:case 13:var s=o.stateNode,f=o.memoizedState;f!==null&&(l=f.retryLane);break;case 19:s=o.stateNode;break;case 22:s=o.stateNode._retryCache;break;default:throw Error(i(314))}s!==null&&s.delete(t),tv(o,l)}function oz(o,t){return co(o,t)}var os=null,ul=null,tf=!1,ns=!1,rf=!1,Or=0;function Nt(o){o!==ul&&o.next===null&&(ul===null?os=ul=o:ul=ul.next=o),ns=!0,tf||(tf=!0,tz())}function ki(o,t){if(!rf&&ns){rf=!0;do for(var l=!1,s=os;s!==null;){if(o!==0){var f=s.pendingLanes;if(f===0)var b=0;else{var k=s.suspendedLanes,x=s.pingedLanes;b=(1<<31-sn(42|o)+1)-1,b&=f&~(k&~x),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(l=!0,iv(s,b))}else b=Je,b=lc(s,s===xo?b:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(b&3)===0||Bl(s,b)||(l=!0,iv(s,b));s=s.next}while(l);rf=!1}}function nz(){rv()}function rv(){ns=tf=!1;var o=0;Or!==0&&bz()&&(o=Or);for(var t=R(),l=null,s=os;s!==null;){var f=s.next,b=av(s,t);b===0?(s.next=null,l===null?os=f:l.next=f,f===null&&(ul=l)):(l=s,(o!==0||(b&3)!==0)&&(ns=!0)),s=f}on!==0&&on!==5||ki(o),Or!==0&&(Or=0)}function av(o,t){for(var l=o.suspendedLanes,s=o.pingedLanes,f=o.expirationTimes,b=o.pendingLanes&-62914561;0<b;){var k=31-sn(b),x=1<<k,A=f[k];A===-1?((x&l)===0||(x&s)!==0)&&(f[k]=Cw(x,t)):A<=t&&(o.expiredLanes|=x),b&=~x}if(t=xo,l=Je,l=lc(o,o===t?l:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),s=o.callbackNode,l===0||o===t&&(fo===2||fo===9)||o.cancelPendingCommit!==null)return s!==null&&s!==null&&en(s),o.callbackNode=null,o.callbackPriority=0;if((l&3)===0||Bl(o,l)){if(t=l&-l,t===o.callbackPriority)return t;switch(s!==null&&en(s),gd(l)){case 2:case 8:l=le;break;case 32:l=ne;break;case 268435456:l=Me;break;default:l=ne}return s=lv.bind(null,o),l=co(l,s),o.callbackPriority=t,o.callbackNode=l,t}return s!==null&&s!==null&&en(s),o.callbackPriority=2,o.callbackNode=null,2}function lv(o,t){if(on!==0&&on!==5)return o.callbackNode=null,o.callbackPriority=0,null;var l=o.callbackNode;if(es()&&o.callbackNode!==l)return null;var s=Je;return s=lc(o,o===xo?s:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),s===0?null:(Fk(o,s,t),av(o,R()),o.callbackNode!=null&&o.callbackNode===l?lv.bind(null,o):null)}function iv(o,t){if(es())return null;Fk(o,t,!0)}function tz(){hz(function(){(lo&6)!==0?co(te,nz):rv()})}function af(){if(Or===0){var o=Ja;o===0&&(o=La,La<<=1,(La&261888)===0&&(La=256)),Or=o}return Or}function cv(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:dc(""+o)}function sv(o,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,o.id&&l.setAttribute("form",o.id),t.parentNode.insertBefore(l,t),o=new FormData(o),l.parentNode.removeChild(l),o}function rz(o,t,l,s,f){if(t==="submit"&&l&&l.stateNode===f){var b=cv((f[Rn]||null).action),k=s.submitter;k&&(t=(t=k[Rn]||null)?cv(t.formAction):k.getAttribute("formAction"),t!==null&&(b=t,k=null));var x=new mc("action","action",null,s,f);o.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Or!==0){var A=k?sv(f,k):new FormData(f);Su(l,{pending:!0,data:A,method:f.method,action:b},null,A)}}else typeof b=="function"&&(x.preventDefault(),A=k?sv(f,k):new FormData(f),Su(l,{pending:!0,data:A,method:f.method,action:b},b,A))},currentTarget:f}]})}}for(var lf=0;lf<Hd.length;lf++){var cf=Hd[lf],az=cf.toLowerCase(),lz=cf[0].toUpperCase()+cf.slice(1);wt(az,"on"+lz)}wt(Uh,"onAnimationEnd"),wt(Fh,"onAnimationIteration"),wt(Hh,"onAnimationStart"),wt("dblclick","onDoubleClick"),wt("focusin","onFocus"),wt("focusout","onBlur"),wt(y2,"onTransitionRun"),wt(w2,"onTransitionStart"),wt(z2,"onTransitionCancel"),wt(Vh,"onTransitionEnd"),Ba("onMouseEnter",["mouseout","mouseover"]),Ba("onMouseLeave",["mouseout","mouseover"]),Ba("onPointerEnter",["pointerout","pointerover"]),Ba("onPointerLeave",["pointerout","pointerover"]),ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),iz=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vi));function dv(o,t){t=(t&4)!==0;for(var l=0;l<o.length;l++){var s=o[l],f=s.event;s=s.listeners;e:{var b=void 0;if(t)for(var k=s.length-1;0<=k;k--){var x=s[k],A=x.instance,F=x.currentTarget;if(x=x.listener,A!==b&&f.isPropagationStopped())break e;b=x,f.currentTarget=F;try{b(f)}catch(Y){kc(Y)}f.currentTarget=null,b=A}else for(k=0;k<s.length;k++){if(x=s[k],A=x.instance,F=x.currentTarget,x=x.listener,A!==b&&f.isPropagationStopped())break e;b=x,f.currentTarget=F;try{b(f)}catch(Y){kc(Y)}f.currentTarget=null,b=A}}}}function Pe(o,t){var l=t[_d];l===void 0&&(l=t[_d]=new Set);var s=o+"__bubble";l.has(s)||(uv(t,o,2,!1),l.add(s))}function sf(o,t,l){var s=0;t&&(s|=4),uv(l,o,s,t)}var ts="_reactListening"+Math.random().toString(36).slice(2);function df(o){if(!o[ts]){o[ts]=!0,rh.forEach(function(l){l!=="selectionchange"&&(iz.has(l)||sf(l,!1,o),sf(l,!0,o))});var t=o.nodeType===9?o:o.ownerDocument;t===null||t[ts]||(t[ts]=!0,sf("selectionchange",!1,t))}}function uv(o,t,l,s){switch(Uv(t)){case 2:var f=Rz;break;case 8:f=Bz;break;default:f=Sf}l=f.bind(null,t,l,o),f=void 0,!Cd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(f=!0),s?f!==void 0?o.addEventListener(t,l,{capture:!0,passive:f}):o.addEventListener(t,l,!0):f!==void 0?o.addEventListener(t,l,{passive:f}):o.addEventListener(t,l,!1)}function uf(o,t,l,s,f){var b=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var k=s.tag;if(k===3||k===4){var x=s.stateNode.containerInfo;if(x===f)break;if(k===4)for(k=s.return;k!==null;){var A=k.tag;if((A===3||A===4)&&k.stateNode.containerInfo===f)return;k=k.return}for(;x!==null;){if(k=$a(x),k===null)return;if(A=k.tag,A===5||A===6||A===26||A===27){s=b=k;continue e}x=x.parentNode}}s=s.return}ph(function(){var F=b,Y=Td(l),Q=[];e:{var V=Kh.get(o);if(V!==void 0){var Z=mc,ke=o;switch(o){case"keypress":if(fc(l)===0)break e;case"keydown":case"keyup":Z=e2;break;case"focusin":ke="focus",Z=$d;break;case"focusout":ke="blur",Z=$d;break;case"beforeblur":case"afterblur":Z=$d;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=gh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=Hw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=t2;break;case Uh:case Fh:case Hh:Z=qw;break;case Vh:Z=a2;break;case"scroll":case"scrollend":Z=Uw;break;case"wheel":Z=i2;break;case"copy":case"cut":case"paste":Z=Pw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=xh;break;case"toggle":case"beforetoggle":Z=s2}var Ee=(t&4)!==0,_o=!Ee&&(o==="scroll"||o==="scrollend"),B=Ee?V!==null?V+"Capture":null:V;Ee=[];for(var O=F,U;O!==null;){var J=O;if(U=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||U===null||B===null||(J=Ul(O,B),J!=null&&Ee.push(gi(O,J,U))),_o)break;O=O.return}0<Ee.length&&(V=new Z(V,ke,null,l,Y),Q.push({event:V,listeners:Ee}))}}if((t&7)===0){e:{if(V=o==="mouseover"||o==="pointerover",Z=o==="mouseout"||o==="pointerout",V&&l!==jd&&(ke=l.relatedTarget||l.fromElement)&&($a(ke)||ke[Oa]))break e;if((Z||V)&&(V=Y.window===Y?Y:(V=Y.ownerDocument)?V.defaultView||V.parentWindow:window,Z?(ke=l.relatedTarget||l.toElement,Z=F,ke=ke?$a(ke):null,ke!==null&&(_o=d(ke),Ee=ke.tag,ke!==_o||Ee!==5&&Ee!==27&&Ee!==6)&&(ke=null)):(Z=null,ke=F),Z!==ke)){if(Ee=gh,J="onMouseLeave",B="onMouseEnter",O="mouse",(o==="pointerout"||o==="pointerover")&&(Ee=xh,J="onPointerLeave",B="onPointerEnter",O="pointer"),_o=Z==null?V:Il(Z),U=ke==null?V:Il(ke),V=new Ee(J,O+"leave",Z,l,Y),V.target=_o,V.relatedTarget=U,J=null,$a(Y)===F&&(Ee=new Ee(B,O+"enter",ke,l,Y),Ee.target=U,Ee.relatedTarget=_o,J=Ee),_o=J,Z&&ke)o:{for(Ee=cz,B=Z,O=ke,U=0,J=B;J;J=Ee(J))U++;J=0;for(var Se=O;Se;Se=Ee(Se))J++;for(;0<U-J;)B=Ee(B),U--;for(;0<J-U;)O=Ee(O),J--;for(;U--;){if(B===O||O!==null&&B===O.alternate){Ee=B;break o}B=Ee(B),O=Ee(O)}Ee=null}else Ee=null;Z!==null&&fv(Q,V,Z,Ee,!1),ke!==null&&_o!==null&&fv(Q,_o,ke,Ee,!0)}}e:{if(V=F?Il(F):window,Z=V.nodeName&&V.nodeName.toLowerCase(),Z==="select"||Z==="input"&&V.type==="file")var to=Ch;else if(Th(V))if(Eh)to=g2;else{to=k2;var ge=p2}else Z=V.nodeName,!Z||Z.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?F&&Sd(F.elementType)&&(to=Ch):to=v2;if(to&&(to=to(o,F))){Ah(Q,to,l,Y);break e}ge&&ge(o,V,F),o==="focusout"&&F&&V.type==="number"&&F.memoizedProps.value!=null&&zd(V,"number",V.value)}switch(ge=F?Il(F):window,o){case"focusin":(Th(ge)||ge.contentEditable==="true")&&(Ha=ge,Id=F,Gl=null);break;case"focusout":Gl=Id=Ha=null;break;case"mousedown":Ud=!0;break;case"contextmenu":case"mouseup":case"dragend":Ud=!1,Mh(Q,l,Y);break;case"selectionchange":if(x2)break;case"keydown":case"keyup":Mh(Q,l,Y)}var Ue;if(Rd)e:{switch(o){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else Fa?Sh(o,l)&&(Xe="onCompositionEnd"):o==="keydown"&&l.keyCode===229&&(Xe="onCompositionStart");Xe&&(yh&&l.locale!=="ko"&&(Fa||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&Fa&&(Ue=kh()):(pr=Y,Ed="value"in pr?pr.value:pr.textContent,Fa=!0)),ge=rs(F,Xe),0<ge.length&&(Xe=new _h(Xe,o,null,l,Y),Q.push({event:Xe,listeners:ge}),Ue?Xe.data=Ue:(Ue=jh(l),Ue!==null&&(Xe.data=Ue)))),(Ue=u2?f2(o,l):b2(o,l))&&(Xe=rs(F,"onBeforeInput"),0<Xe.length&&(ge=new _h("onBeforeInput","beforeinput",null,l,Y),Q.push({event:ge,listeners:Xe}),ge.data=Ue)),rz(Q,o,F,l,Y)}dv(Q,t)})}function gi(o,t,l){return{instance:o,listener:t,currentTarget:l}}function rs(o,t){for(var l=t+"Capture",s=[];o!==null;){var f=o,b=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||b===null||(f=Ul(o,l),f!=null&&s.unshift(gi(o,f,b)),f=Ul(o,t),f!=null&&s.push(gi(o,f,b))),o.tag===3)return s;o=o.return}return[]}function cz(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function fv(o,t,l,s,f){for(var b=t._reactName,k=[];l!==null&&l!==s;){var x=l,A=x.alternate,F=x.stateNode;if(x=x.tag,A!==null&&A===s)break;x!==5&&x!==26&&x!==27||F===null||(A=F,f?(F=Ul(l,b),F!=null&&k.unshift(gi(l,F,A))):f||(F=Ul(l,b),F!=null&&k.push(gi(l,F,A)))),l=l.return}k.length!==0&&o.push({event:t,listeners:k})}var sz=/\r\n?/g,dz=/\u0000|\uFFFD/g;function bv(o){return(typeof o=="string"?o:""+o).replace(sz,`
|
|
10
|
-
`).replace(dz,"")}function mv(o,t){return t=bv(t),bv(o)===t}function go(o,t,l,s,f,b){switch(l){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Ma(o,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Ma(o,""+s);break;case"className":cc(o,"class",s);break;case"tabIndex":cc(o,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":cc(o,l,s);break;case"style":mh(o,s,b);break;case"data":if(t!=="object"){cc(o,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||l!=="href")){o.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){o.removeAttribute(l);break}s=dc(""+s),o.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="function"){o.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(l==="formAction"?(t!=="input"&&go(o,t,"name",f.name,f,null),go(o,t,"formEncType",f.formEncType,f,null),go(o,t,"formMethod",f.formMethod,f,null),go(o,t,"formTarget",f.formTarget,f,null)):(go(o,t,"encType",f.encType,f,null),go(o,t,"method",f.method,f,null),go(o,t,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){o.removeAttribute(l);break}s=dc(""+s),o.setAttribute(l,s);break;case"onClick":s!=null&&(o.onclick=Ft);break;case"onScroll":s!=null&&Pe("scroll",o);break;case"onScrollEnd":s!=null&&Pe("scrollend",o);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(i(60));o.innerHTML=l}}break;case"multiple":o.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":o.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){o.removeAttribute("xlink:href");break}l=dc(""+s),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?o.setAttribute(l,""+s):o.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?o.setAttribute(l,""):o.removeAttribute(l);break;case"capture":case"download":s===!0?o.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?o.setAttribute(l,s):o.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?o.setAttribute(l,s):o.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?o.removeAttribute(l):o.setAttribute(l,s);break;case"popover":Pe("beforetoggle",o),Pe("toggle",o),ic(o,"popover",s);break;case"xlinkActuate":Ut(o,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Ut(o,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Ut(o,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Ut(o,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Ut(o,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Ut(o,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Ut(o,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Ut(o,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Ut(o,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ic(o,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Mw.get(l)||l,ic(o,l,s))}}function ff(o,t,l,s,f,b){switch(l){case"style":mh(o,s,b);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(i(60));o.innerHTML=l}}break;case"children":typeof s=="string"?Ma(o,s):(typeof s=="number"||typeof s=="bigint")&&Ma(o,""+s);break;case"onScroll":s!=null&&Pe("scroll",o);break;case"onScrollEnd":s!=null&&Pe("scrollend",o);break;case"onClick":s!=null&&(o.onclick=Ft);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ah.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),t=l.slice(2,f?l.length-7:void 0),b=o[Rn]||null,b=b!=null?b[l]:null,typeof b=="function"&&o.removeEventListener(t,b,f),typeof s=="function")){typeof b!="function"&&b!==null&&(l in o?o[l]=null:o.hasAttribute(l)&&o.removeAttribute(l)),o.addEventListener(t,s,f);break e}l in o?o[l]=s:s===!0?o.setAttribute(l,""):ic(o,l,s)}}}function mn(o,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pe("error",o),Pe("load",o);var s=!1,f=!1,b;for(b in l)if(l.hasOwnProperty(b)){var k=l[b];if(k!=null)switch(b){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:go(o,t,b,k,l,null)}}f&&go(o,t,"srcSet",l.srcSet,l,null),s&&go(o,t,"src",l.src,l,null);return;case"input":Pe("invalid",o);var x=b=k=f=null,A=null,F=null;for(s in l)if(l.hasOwnProperty(s)){var Y=l[s];if(Y!=null)switch(s){case"name":f=Y;break;case"type":k=Y;break;case"checked":A=Y;break;case"defaultChecked":F=Y;break;case"value":b=Y;break;case"defaultValue":x=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:go(o,t,s,Y,l,null)}}dh(o,b,x,A,F,k,f,!1);return;case"select":Pe("invalid",o),s=k=b=null;for(f in l)if(l.hasOwnProperty(f)&&(x=l[f],x!=null))switch(f){case"value":b=x;break;case"defaultValue":k=x;break;case"multiple":s=x;default:go(o,t,f,x,l,null)}t=b,l=k,o.multiple=!!s,t!=null?Da(o,!!s,t,!1):l!=null&&Da(o,!!s,l,!0);return;case"textarea":Pe("invalid",o),b=f=s=null;for(k in l)if(l.hasOwnProperty(k)&&(x=l[k],x!=null))switch(k){case"value":s=x;break;case"defaultValue":f=x;break;case"children":b=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(i(91));break;default:go(o,t,k,x,l,null)}fh(o,s,f,b);return;case"option":for(A in l)l.hasOwnProperty(A)&&(s=l[A],s!=null)&&(A==="selected"?o.selected=s&&typeof s!="function"&&typeof s!="symbol":go(o,t,A,s,l,null));return;case"dialog":Pe("beforetoggle",o),Pe("toggle",o),Pe("cancel",o),Pe("close",o);break;case"iframe":case"object":Pe("load",o);break;case"video":case"audio":for(s=0;s<vi.length;s++)Pe(vi[s],o);break;case"image":Pe("error",o),Pe("load",o);break;case"details":Pe("toggle",o);break;case"embed":case"source":case"link":Pe("error",o),Pe("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(F in l)if(l.hasOwnProperty(F)&&(s=l[F],s!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:go(o,t,F,s,l,null)}return;default:if(Sd(t)){for(Y in l)l.hasOwnProperty(Y)&&(s=l[Y],s!==void 0&&ff(o,t,Y,s,l,void 0));return}}for(x in l)l.hasOwnProperty(x)&&(s=l[x],s!=null&&go(o,t,x,s,l,null))}function uz(o,t,l,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,b=null,k=null,x=null,A=null,F=null,Y=null;for(Z in l){var Q=l[Z];if(l.hasOwnProperty(Z)&&Q!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":A=Q;default:s.hasOwnProperty(Z)||go(o,t,Z,null,s,Q)}}for(var V in s){var Z=s[V];if(Q=l[V],s.hasOwnProperty(V)&&(Z!=null||Q!=null))switch(V){case"type":b=Z;break;case"name":f=Z;break;case"checked":F=Z;break;case"defaultChecked":Y=Z;break;case"value":k=Z;break;case"defaultValue":x=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,t));break;default:Z!==Q&&go(o,t,V,Z,s,Q)}}wd(o,k,x,A,F,Y,b,f);return;case"select":Z=k=x=V=null;for(b in l)if(A=l[b],l.hasOwnProperty(b)&&A!=null)switch(b){case"value":break;case"multiple":Z=A;default:s.hasOwnProperty(b)||go(o,t,b,null,s,A)}for(f in s)if(b=s[f],A=l[f],s.hasOwnProperty(f)&&(b!=null||A!=null))switch(f){case"value":V=b;break;case"defaultValue":x=b;break;case"multiple":k=b;default:b!==A&&go(o,t,f,b,s,A)}t=x,l=k,s=Z,V!=null?Da(o,!!l,V,!1):!!s!=!!l&&(t!=null?Da(o,!!l,t,!0):Da(o,!!l,l?[]:"",!1));return;case"textarea":Z=V=null;for(x in l)if(f=l[x],l.hasOwnProperty(x)&&f!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:go(o,t,x,null,s,f)}for(k in s)if(f=s[k],b=l[k],s.hasOwnProperty(k)&&(f!=null||b!=null))switch(k){case"value":V=f;break;case"defaultValue":Z=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==b&&go(o,t,k,f,s,b)}uh(o,V,Z);return;case"option":for(var ke in l)V=l[ke],l.hasOwnProperty(ke)&&V!=null&&!s.hasOwnProperty(ke)&&(ke==="selected"?o.selected=!1:go(o,t,ke,null,s,V));for(A in s)V=s[A],Z=l[A],s.hasOwnProperty(A)&&V!==Z&&(V!=null||Z!=null)&&(A==="selected"?o.selected=V&&typeof V!="function"&&typeof V!="symbol":go(o,t,A,V,s,Z));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in l)V=l[Ee],l.hasOwnProperty(Ee)&&V!=null&&!s.hasOwnProperty(Ee)&&go(o,t,Ee,null,s,V);for(F in s)if(V=s[F],Z=l[F],s.hasOwnProperty(F)&&V!==Z&&(V!=null||Z!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,t));break;default:go(o,t,F,V,s,Z)}return;default:if(Sd(t)){for(var _o in l)V=l[_o],l.hasOwnProperty(_o)&&V!==void 0&&!s.hasOwnProperty(_o)&&ff(o,t,_o,void 0,s,V);for(Y in s)V=s[Y],Z=l[Y],!s.hasOwnProperty(Y)||V===Z||V===void 0&&Z===void 0||ff(o,t,Y,V,s,Z);return}}for(var B in l)V=l[B],l.hasOwnProperty(B)&&V!=null&&!s.hasOwnProperty(B)&&go(o,t,B,null,s,V);for(Q in s)V=s[Q],Z=l[Q],!s.hasOwnProperty(Q)||V===Z||V==null&&Z==null||go(o,t,Q,V,s,Z)}function hv(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fz(){if(typeof performance.getEntriesByType=="function"){for(var o=0,t=0,l=performance.getEntriesByType("resource"),s=0;s<l.length;s++){var f=l[s],b=f.transferSize,k=f.initiatorType,x=f.duration;if(b&&x&&hv(k)){for(k=0,x=f.responseEnd,s+=1;s<l.length;s++){var A=l[s],F=A.startTime;if(F>x)break;var Y=A.transferSize,Q=A.initiatorType;Y&&hv(Q)&&(A=A.responseEnd,k+=Y*(A<x?1:(x-F)/(A-F)))}if(--s,t+=8*(b+k)/(f.duration/1e3),o++,10<o)break}}if(0<o)return t/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var bf=null,mf=null;function as(o){return o.nodeType===9?o:o.ownerDocument}function pv(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kv(o,t){if(o===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&t==="foreignObject"?0:o}function hf(o,t){return o==="textarea"||o==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var pf=null;function bz(){var o=window.event;return o&&o.type==="popstate"?o===pf?!1:(pf=o,!0):(pf=null,!1)}var vv=typeof setTimeout=="function"?setTimeout:void 0,mz=typeof clearTimeout=="function"?clearTimeout:void 0,gv=typeof Promise=="function"?Promise:void 0,hz=typeof queueMicrotask=="function"?queueMicrotask:typeof gv<"u"?function(o){return gv.resolve(null).then(o).catch(pz)}:vv;function pz(o){setTimeout(function(){throw o})}function $r(o){return o==="head"}function _v(o,t){var l=t,s=0;do{var f=l.nextSibling;if(o.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(s===0){o.removeChild(f),hl(t);return}s--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")s++;else if(l==="html")_i(o.ownerDocument.documentElement);else if(l==="head"){l=o.ownerDocument.head,_i(l);for(var b=l.firstChild;b;){var k=b.nextSibling,x=b.nodeName;b[Ml]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&b.rel.toLowerCase()==="stylesheet"||l.removeChild(b),b=k}}else l==="body"&&_i(o.ownerDocument.body);l=f}while(l);hl(t)}function xv(o,t){var l=o;o=0;do{var s=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),s&&s.nodeType===8)if(l=s.data,l==="/$"){if(o===0)break;o--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||o++;l=s}while(l)}function kf(o){var t=o.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":kf(l),xd(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}o.removeChild(l)}}function kz(o,t,l,s){for(;o.nodeType===1;){var f=l;if(o.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(s){if(!o[Ml])switch(t){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(b=o.getAttribute("rel"),b==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(b!==f.rel||o.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||o.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||o.getAttribute("title")!==(f.title==null?null:f.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(b=o.getAttribute("src"),(b!==(f.src==null?null:f.src)||o.getAttribute("type")!==(f.type==null?null:f.type)||o.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&b&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(t==="input"&&o.type==="hidden"){var b=f.name==null?null:""+f.name;if(f.type==="hidden"&&o.getAttribute("name")===b)return o}else return o;if(o=pt(o.nextSibling),o===null)break}return null}function vz(o,t,l){if(t==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=pt(o.nextSibling),o===null))return null;return o}function yv(o,t){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!t||(o=pt(o.nextSibling),o===null))return null;return o}function vf(o){return o.data==="$?"||o.data==="$~"}function gf(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function gz(o,t){var l=o.ownerDocument;if(o.data==="$~")o._reactRetry=t;else if(o.data!=="$?"||l.readyState!=="loading")t();else{var s=function(){t(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),o._reactRetry=s}}function pt(o){for(;o!=null;o=o.nextSibling){var t=o.nodeType;if(t===1||t===3)break;if(t===8){if(t=o.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return o}var _f=null;function wv(o){o=o.nextSibling;for(var t=0;o;){if(o.nodeType===8){var l=o.data;if(l==="/$"||l==="/&"){if(t===0)return pt(o.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}o=o.nextSibling}return null}function zv(o){o=o.previousSibling;for(var t=0;o;){if(o.nodeType===8){var l=o.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return o;t--}else l!=="/$"&&l!=="/&"||t++}o=o.previousSibling}return null}function Sv(o,t,l){switch(t=as(l),o){case"html":if(o=t.documentElement,!o)throw Error(i(452));return o;case"head":if(o=t.head,!o)throw Error(i(453));return o;case"body":if(o=t.body,!o)throw Error(i(454));return o;default:throw Error(i(451))}}function _i(o){for(var t=o.attributes;t.length;)o.removeAttributeNode(t[0]);xd(o)}var kt=new Map,jv=new Set;function ls(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var tr=G.d;G.d={f:_z,r:xz,D:yz,C:wz,L:zz,m:Sz,X:Tz,S:jz,M:Az};function _z(){var o=tr.f(),t=Xc();return o||t}function xz(o){var t=Na(o);t!==null&&t.tag===5&&t.type==="form"?Vp(t):tr.r(o)}var fl=typeof document>"u"?null:document;function Tv(o,t,l){var s=fl;if(s&&typeof t=="string"&&t){var f=st(t);f='link[rel="'+o+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),jv.has(f)||(jv.add(f),o={rel:o,crossOrigin:l,href:t},s.querySelector(f)===null&&(t=s.createElement("link"),mn(t,"link",o),rn(t),s.head.appendChild(t)))}}function yz(o){tr.D(o),Tv("dns-prefetch",o,null)}function wz(o,t){tr.C(o,t),Tv("preconnect",o,t)}function zz(o,t,l){tr.L(o,t,l);var s=fl;if(s&&o&&t){var f='link[rel="preload"][as="'+st(t)+'"]';t==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+st(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+st(l.imageSizes)+'"]')):f+='[href="'+st(o)+'"]';var b=f;switch(t){case"style":b=bl(o);break;case"script":b=ml(o)}kt.has(b)||(o=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:o,as:t},l),kt.set(b,o),s.querySelector(f)!==null||t==="style"&&s.querySelector(xi(b))||t==="script"&&s.querySelector(yi(b))||(t=s.createElement("link"),mn(t,"link",o),rn(t),s.head.appendChild(t)))}}function Sz(o,t){tr.m(o,t);var l=fl;if(l&&o){var s=t&&typeof t.as=="string"?t.as:"script",f='link[rel="modulepreload"][as="'+st(s)+'"][href="'+st(o)+'"]',b=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=ml(o)}if(!kt.has(b)&&(o=v({rel:"modulepreload",href:o},t),kt.set(b,o),l.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(yi(b)))return}s=l.createElement("link"),mn(s,"link",o),rn(s),l.head.appendChild(s)}}}function jz(o,t,l){tr.S(o,t,l);var s=fl;if(s&&o){var f=Ra(s).hoistableStyles,b=bl(o);t=t||"default";var k=f.get(b);if(!k){var x={loading:0,preload:null};if(k=s.querySelector(xi(b)))x.loading=5;else{o=v({rel:"stylesheet",href:o,"data-precedence":t},l),(l=kt.get(b))&&xf(o,l);var A=k=s.createElement("link");rn(A),mn(A,"link",o),A._p=new Promise(function(F,Y){A.onload=F,A.onerror=Y}),A.addEventListener("load",function(){x.loading|=1}),A.addEventListener("error",function(){x.loading|=2}),x.loading|=4,is(k,t,s)}k={type:"stylesheet",instance:k,count:1,state:x},f.set(b,k)}}}function Tz(o,t){tr.X(o,t);var l=fl;if(l&&o){var s=Ra(l).hoistableScripts,f=ml(o),b=s.get(f);b||(b=l.querySelector(yi(f)),b||(o=v({src:o,async:!0},t),(t=kt.get(f))&&yf(o,t),b=l.createElement("script"),rn(b),mn(b,"link",o),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},s.set(f,b))}}function Az(o,t){tr.M(o,t);var l=fl;if(l&&o){var s=Ra(l).hoistableScripts,f=ml(o),b=s.get(f);b||(b=l.querySelector(yi(f)),b||(o=v({src:o,async:!0,type:"module"},t),(t=kt.get(f))&&yf(o,t),b=l.createElement("script"),rn(b),mn(b,"link",o),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},s.set(f,b))}}function Av(o,t,l,s){var f=(f=Ne.current)?ls(f):null;if(!f)throw Error(i(446));switch(o){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=bl(l.href),l=Ra(f).hoistableStyles,s=l.get(t),s||(s={type:"style",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){o=bl(l.href);var b=Ra(f).hoistableStyles,k=b.get(o);if(k||(f=f.ownerDocument||f,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(o,k),(b=f.querySelector(xi(o)))&&!b._p&&(k.instance=b,k.state.loading=5),kt.has(o)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},kt.set(o,l),b||Cz(f,o,l,k.state))),t&&s===null)throw Error(i(528,""));return k}if(t&&s!==null)throw Error(i(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ml(l),l=Ra(f).hoistableScripts,s=l.get(t),s||(s={type:"script",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,o))}}function bl(o){return'href="'+st(o)+'"'}function xi(o){return'link[rel="stylesheet"]['+o+"]"}function Cv(o){return v({},o,{"data-precedence":o.precedence,precedence:null})}function Cz(o,t,l,s){o.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=o.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),mn(t,"link",l),rn(t),o.head.appendChild(t))}function ml(o){return'[src="'+st(o)+'"]'}function yi(o){return"script[async]"+o}function Ev(o,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var s=o.querySelector('style[data-href~="'+st(l.href)+'"]');if(s)return t.instance=s,rn(s),s;var f=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(o.ownerDocument||o).createElement("style"),rn(s),mn(s,"style",f),is(s,l.precedence,o),t.instance=s;case"stylesheet":f=bl(l.href);var b=o.querySelector(xi(f));if(b)return t.state.loading|=4,t.instance=b,rn(b),b;s=Cv(l),(f=kt.get(f))&&xf(s,f),b=(o.ownerDocument||o).createElement("link"),rn(b);var k=b;return k._p=new Promise(function(x,A){k.onload=x,k.onerror=A}),mn(b,"link",s),t.state.loading|=4,is(b,l.precedence,o),t.instance=b;case"script":return b=ml(l.src),(f=o.querySelector(yi(b)))?(t.instance=f,rn(f),f):(s=l,(f=kt.get(b))&&(s=v({},l),yf(s,f)),o=o.ownerDocument||o,f=o.createElement("script"),rn(f),mn(f,"link",s),o.head.appendChild(f),t.instance=f);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,is(s,l.precedence,o));return t.instance}function is(o,t,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,b=f,k=0;k<s.length;k++){var x=s[k];if(x.dataset.precedence===t)b=x;else if(b!==f)break}b?b.parentNode.insertBefore(o,b.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(o,t.firstChild))}function xf(o,t){o.crossOrigin==null&&(o.crossOrigin=t.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=t.referrerPolicy),o.title==null&&(o.title=t.title)}function yf(o,t){o.crossOrigin==null&&(o.crossOrigin=t.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=t.referrerPolicy),o.integrity==null&&(o.integrity=t.integrity)}var cs=null;function Lv(o,t,l){if(cs===null){var s=new Map,f=cs=new Map;f.set(l,s)}else f=cs,s=f.get(l),s||(s=new Map,f.set(l,s));if(s.has(o))return s;for(s.set(o,null),l=l.getElementsByTagName(o),f=0;f<l.length;f++){var b=l[f];if(!(b[Ml]||b[dn]||o==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var k=b.getAttribute(t)||"";k=o+k;var x=s.get(k);x?x.push(b):s.set(k,[b])}}return s}function Ov(o,t,l){o=o.ownerDocument||o,o.head.insertBefore(l,t==="title"?o.querySelector("head > title"):null)}function Ez(o,t,l){if(l===1||t.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(o=t.disabled,typeof t.precedence=="string"&&o==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function $v(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function Lz(o,t,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=bl(s.href),b=t.querySelector(xi(f));if(b){t=b._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(o.count++,o=ss.bind(o),t.then(o,o)),l.state.loading|=4,l.instance=b,rn(b);return}b=t.ownerDocument||t,s=Cv(s),(f=kt.get(f))&&xf(s,f),b=b.createElement("link"),rn(b);var k=b;k._p=new Promise(function(x,A){k.onload=x,k.onerror=A}),mn(b,"link",s),l.instance=b}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(o.count++,l=ss.bind(o),t.addEventListener("load",l),t.addEventListener("error",l))}}var wf=0;function Oz(o,t){return o.stylesheets&&o.count===0&&us(o,o.stylesheets),0<o.count||0<o.imgCount?function(l){var s=setTimeout(function(){if(o.stylesheets&&us(o,o.stylesheets),o.unsuspend){var b=o.unsuspend;o.unsuspend=null,b()}},6e4+t);0<o.imgBytes&&wf===0&&(wf=62500*fz());var f=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&us(o,o.stylesheets),o.unsuspend)){var b=o.unsuspend;o.unsuspend=null,b()}},(o.imgBytes>wf?50:800)+t);return o.unsuspend=l,function(){o.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function ss(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)us(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var ds=null;function us(o,t){o.stylesheets=null,o.unsuspend!==null&&(o.count++,ds=new Map,t.forEach($z,o),ds=null,ss.call(o))}function $z(o,t){if(!(t.state.loading&4)){var l=ds.get(o);if(l)var s=l.get(null);else{l=new Map,ds.set(o,l);for(var f=o.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<f.length;b++){var k=f[b];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(l.set(k.dataset.precedence,k),s=k)}s&&l.set(null,s)}f=t.instance,k=f.getAttribute("data-precedence"),b=l.get(k)||s,b===s&&l.set(null,f),l.set(k,f),this.count++,s=ss.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),b?b.parentNode.insertBefore(f,b.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(f,o.firstChild)),t.state.loading|=4}}var wi={$$typeof:w,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function Nz(o,t,l,s,f,b,k,x,A){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=kd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kd(0),this.hiddenUpdates=kd(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=b,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Nv(o,t,l,s,f,b,k,x,A,F,Y,Q){return o=new Nz(o,t,l,k,A,F,Y,Q,x),t=1,b===!0&&(t|=24),b=Gn(3,null,null,t),o.current=b,b.stateNode=o,t=ou(),t.refCount++,o.pooledCache=t,t.refCount++,b.memoizedState={element:s,isDehydrated:l,cache:t},au(b),o}function Rv(o){return o?(o=qa,o):qa}function Bv(o,t,l,s,f,b){f=Rv(f),s.context===null?s.context=f:s.pendingContext=f,s=yr(t),s.payload={element:l},b=b===void 0?null:b,b!==null&&(s.callback=b),l=wr(o,s,t),l!==null&&(Fn(l,o,t),oi(l,o,t))}function Dv(o,t){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var l=o.retryLane;o.retryLane=l!==0&&l<t?l:t}}function zf(o,t){Dv(o,t),(o=o.alternate)&&Dv(o,t)}function Mv(o){if(o.tag===13||o.tag===31){var t=ra(o,67108864);t!==null&&Fn(t,o,67108864),zf(o,67108864)}}function Iv(o){if(o.tag===13||o.tag===31){var t=Qn();t=vd(t);var l=ra(o,t);l!==null&&Fn(l,o,t),zf(o,t)}}var fs=!0;function Rz(o,t,l,s){var f=M.T;M.T=null;var b=G.p;try{G.p=2,Sf(o,t,l,s)}finally{G.p=b,M.T=f}}function Bz(o,t,l,s){var f=M.T;M.T=null;var b=G.p;try{G.p=8,Sf(o,t,l,s)}finally{G.p=b,M.T=f}}function Sf(o,t,l,s){if(fs){var f=jf(s);if(f===null)uf(o,t,s,bs,l),Fv(o,s);else if(Mz(f,o,t,l,s))s.stopPropagation();else if(Fv(o,s),t&4&&-1<Dz.indexOf(o)){for(;f!==null;){var b=Na(f);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var k=Qr(b.pendingLanes);if(k!==0){var x=b;for(x.pendingLanes|=2,x.entangledLanes|=2;k;){var A=1<<31-sn(k);x.entanglements[1]|=A,k&=~A}Nt(b),(lo&6)===0&&(Yc=R()+500,ki(0))}}break;case 31:case 13:x=ra(b,2),x!==null&&Fn(x,b,2),Xc(),zf(b,2)}if(b=jf(s),b===null&&uf(o,t,s,bs,l),b===f)break;f=b}f!==null&&s.stopPropagation()}else uf(o,t,s,null,l)}}function jf(o){return o=Td(o),Tf(o)}var bs=null;function Tf(o){if(bs=null,o=$a(o),o!==null){var t=d(o);if(t===null)o=null;else{var l=t.tag;if(l===13){if(o=u(t),o!==null)return o;o=null}else if(l===31){if(o=m(t),o!==null)return o;o=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;o=null}else t!==o&&(o=null)}}return bs=o,null}function Uv(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(I()){case te:return 2;case le:return 8;case ne:case he:return 32;case Me:return 268435456;default:return 32}default:return 32}}var Af=!1,Nr=null,Rr=null,Br=null,zi=new Map,Si=new Map,Dr=[],Dz="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Fv(o,t){switch(o){case"focusin":case"focusout":Nr=null;break;case"dragenter":case"dragleave":Rr=null;break;case"mouseover":case"mouseout":Br=null;break;case"pointerover":case"pointerout":zi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Si.delete(t.pointerId)}}function ji(o,t,l,s,f,b){return o===null||o.nativeEvent!==b?(o={blockedOn:t,domEventName:l,eventSystemFlags:s,nativeEvent:b,targetContainers:[f]},t!==null&&(t=Na(t),t!==null&&Mv(t)),o):(o.eventSystemFlags|=s,t=o.targetContainers,f!==null&&t.indexOf(f)===-1&&t.push(f),o)}function Mz(o,t,l,s,f){switch(t){case"focusin":return Nr=ji(Nr,o,t,l,s,f),!0;case"dragenter":return Rr=ji(Rr,o,t,l,s,f),!0;case"mouseover":return Br=ji(Br,o,t,l,s,f),!0;case"pointerover":var b=f.pointerId;return zi.set(b,ji(zi.get(b)||null,o,t,l,s,f)),!0;case"gotpointercapture":return b=f.pointerId,Si.set(b,ji(Si.get(b)||null,o,t,l,s,f)),!0}return!1}function Hv(o){var t=$a(o.target);if(t!==null){var l=d(t);if(l!==null){if(t=l.tag,t===13){if(t=u(l),t!==null){o.blockedOn=t,nh(o.priority,function(){Iv(l)});return}}else if(t===31){if(t=m(l),t!==null){o.blockedOn=t,nh(o.priority,function(){Iv(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){o.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}o.blockedOn=null}function ms(o){if(o.blockedOn!==null)return!1;for(var t=o.targetContainers;0<t.length;){var l=jf(o.nativeEvent);if(l===null){l=o.nativeEvent;var s=new l.constructor(l.type,l);jd=s,l.target.dispatchEvent(s),jd=null}else return t=Na(l),t!==null&&Mv(t),o.blockedOn=l,!1;t.shift()}return!0}function Vv(o,t,l){ms(o)&&l.delete(t)}function Iz(){Af=!1,Nr!==null&&ms(Nr)&&(Nr=null),Rr!==null&&ms(Rr)&&(Rr=null),Br!==null&&ms(Br)&&(Br=null),zi.forEach(Vv),Si.forEach(Vv)}function hs(o,t){o.blockedOn===t&&(o.blockedOn=null,Af||(Af=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Iz)))}var ps=null;function Kv(o){ps!==o&&(ps=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ps===o&&(ps=null);for(var t=0;t<o.length;t+=3){var l=o[t],s=o[t+1],f=o[t+2];if(typeof s!="function"){if(Tf(s||l)===null)continue;break}var b=Na(l);b!==null&&(o.splice(t,3),t-=3,Su(b,{pending:!0,data:f,method:l.method,action:s},s,f))}}))}function hl(o){function t(A){return hs(A,o)}Nr!==null&&hs(Nr,o),Rr!==null&&hs(Rr,o),Br!==null&&hs(Br,o),zi.forEach(t),Si.forEach(t);for(var l=0;l<Dr.length;l++){var s=Dr[l];s.blockedOn===o&&(s.blockedOn=null)}for(;0<Dr.length&&(l=Dr[0],l.blockedOn===null);)Hv(l),l.blockedOn===null&&Dr.shift();if(l=(o.ownerDocument||o).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var f=l[s],b=l[s+1],k=f[Rn]||null;if(typeof b=="function")k||Kv(l);else if(k){var x=null;if(b&&b.hasAttribute("formAction")){if(f=b,k=b[Rn]||null)x=k.formAction;else if(Tf(f)!==null)continue}else x=k.action;typeof x=="function"?l[s+1]=x:(l.splice(s,3),s-=3),Kv(l)}}}function qv(){function o(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(k){return f=k})},focusReset:"manual",scroll:"manual"})}function t(){f!==null&&(f(),f=null),s||setTimeout(l,20)}function l(){if(!s&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,f=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){s=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),f!==null&&(f(),f=null)}}}function Cf(o){this._internalRoot=o}ks.prototype.render=Cf.prototype.render=function(o){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,s=Qn();Bv(l,s,o,t,null,null)},ks.prototype.unmount=Cf.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var t=o.containerInfo;Bv(o.current,2,null,o,null,null),Xc(),t[Oa]=null}};function ks(o){this._internalRoot=o}ks.prototype.unstable_scheduleHydration=function(o){if(o){var t=oh();o={blockedOn:null,target:o,priority:t};for(var l=0;l<Dr.length&&t!==0&&t<Dr[l].priority;l++);Dr.splice(l,0,o),l===0&&Hv(o)}};var Zv=n.version;if(Zv!=="19.2.5")throw Error(i(527,Zv,"19.2.5"));G.findDOMNode=function(o){var t=o._reactInternals;if(t===void 0)throw typeof o.render=="function"?Error(i(188)):(o=Object.keys(o).join(","),Error(i(268,o)));return o=p(t),o=o!==null?g(o):null,o=o===null?null:o.stateNode,o};var Uz={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vs.isDisabled&&vs.supportsFiber)try{xn=vs.inject(Uz),ko=vs}catch{}}return Ci.createRoot=function(o,t){if(!c(o))throw Error(i(299));var l=!1,s="",f=Qp,b=ek,k=ok;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(f=t.onUncaughtError),t.onCaughtError!==void 0&&(b=t.onCaughtError),t.onRecoverableError!==void 0&&(k=t.onRecoverableError)),t=Nv(o,1,!1,null,null,l,s,null,f,b,k,qv),o[Oa]=t.current,df(o),new Cf(t)},Ci.hydrateRoot=function(o,t,l){if(!c(o))throw Error(i(299));var s=!1,f="",b=Qp,k=ek,x=ok,A=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(b=l.onUncaughtError),l.onCaughtError!==void 0&&(k=l.onCaughtError),l.onRecoverableError!==void 0&&(x=l.onRecoverableError),l.formState!==void 0&&(A=l.formState)),t=Nv(o,1,!0,t,l??null,s,f,A,b,k,x,qv),t.context=Rv(null),l=t.current,s=Qn(),s=vd(s),f=yr(s),f.callback=null,wr(l,f,s),l=s,t.current.lanes=l,Dl(t,l),Nt(t),o[Oa]=t.current,df(o),new ks(t)},Ci.version="19.2.5",Ci}var tg;function c4(){if(tg)return $f.exports;tg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),$f.exports=i4(),$f.exports}var Bx=c4();var rg="popstate";function ag(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function s4(e={}){function n(c,d){let{pathname:u="/",search:m="",hash:h=""}=Ta(c.location.hash.substring(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),pb("",{pathname:u,search:m,hash:h},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function r(c,d){let u=c.document.querySelector("base"),m="";if(u&&u.getAttribute("href")){let h=c.location.href,p=h.indexOf("#");m=p===-1?h:h.slice(0,p)}return m+"#"+(typeof d=="string"?d:Zi(d))}function i(c,d){lt(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(d)})`)}return u4(n,r,i,e)}function jo(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function lt(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function d4(){return Math.random().toString(36).substring(2,10)}function lg(e,n){return{usr:e.state,key:e.key,idx:n,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function pb(e,n,r=null,i,c){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Ta(n):n,state:r,key:n&&n.key||i||d4(),unstable_mask:c}}function Zi({pathname:e="/",search:n="",hash:r=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ta(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(n.search=e.substring(i),e=e.substring(0,i)),e&&(n.pathname=e)}return n}function u4(e,n,r,i={}){let{window:c=document.defaultView,v5Compat:d=!1}=i,u=c.history,m="POP",h=null,p=g();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function g(){return(u.state||{idx:null}).idx}function v(){m="POP";let E=g(),L=E==null?null:E-p;p=E,h&&h({action:m,location:j.location,delta:L})}function _(E,L){m="PUSH";let y=ag(E)?E:pb(j.location,E,L);r&&r(y,E),p=g()+1;let w=lg(y,p),N=j.createHref(y.unstable_mask||y);try{u.pushState(w,"",N)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;c.location.assign(N)}d&&h&&h({action:m,location:j.location,delta:1})}function z(E,L){m="REPLACE";let y=ag(E)?E:pb(j.location,E,L);r&&r(y,E),p=g();let w=lg(y,p),N=j.createHref(y.unstable_mask||y);u.replaceState(w,"",N),d&&h&&h({action:m,location:j.location,delta:0})}function $(E){return f4(E)}let j={get action(){return m},get location(){return e(c,u)},listen(E){if(h)throw new Error("A history only accepts one active listener");return c.addEventListener(rg,v),h=E,()=>{c.removeEventListener(rg,v),h=null}},createHref(E){return n(c,E)},createURL:$,encodeLocation(E){let L=$(E);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:_,replace:z,go(E){return u.go(E)}};return j}function f4(e,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),jo(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Zi(e);return i=i.replace(/ $/,"%20"),!n&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function Dx(e,n,r="/"){return b4(e,n,r,!1)}function b4(e,n,r,i){let c=typeof n=="string"?Ta(n):n,d=ur(c.pathname||"/",r);if(d==null)return null;let u=Mx(e);m4(u);let m=null;for(let h=0;m==null&&h<u.length;++h){let p=Ux(d);m=w4(u[h],p,i)}return m}function Mx(e,n=[],r=[],i="",c=!1){let d=(u,m,h=c,p)=>{let g={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:m,route:u};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(i)&&h)return;jo(g.relativePath.startsWith(i),`Absolute route path "${g.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(i.length)}let v=At([i,g.relativePath]),_=r.concat(g);u.children&&u.children.length>0&&(jo(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Mx(u.children,n,_,v,h)),!(u.path==null&&!u.index)&&n.push({path:v,score:x4(v,u.index),routesMeta:_})};return e.forEach((u,m)=>{if(u.path===""||!u.path?.includes("?"))d(u,m);else for(let h of Ix(u.path))d(u,m,!0,h)}),n}function Ix(e){let n=e.split("/");if(n.length===0)return[];let[r,...i]=n,c=r.endsWith("?"),d=r.replace(/\?$/,"");if(i.length===0)return c?[d,""]:[d];let u=Ix(i.join("/")),m=[];return m.push(...u.map(h=>h===""?d:[d,h].join("/"))),c&&m.push(...u),m.map(h=>e.startsWith("/")&&h===""?"/":h)}function m4(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:y4(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var h4=/^:[\w-]+$/,p4=3,k4=2,v4=1,g4=10,_4=-2,ig=e=>e==="*";function x4(e,n){let r=e.split("/"),i=r.length;return r.some(ig)&&(i+=_4),n&&(i+=k4),r.filter(c=>!ig(c)).reduce((c,d)=>c+(h4.test(d)?p4:d===""?v4:g4),i)}function y4(e,n){return e.length===n.length&&e.slice(0,-1).every((i,c)=>i===n[c])?e[e.length-1]-n[n.length-1]:0}function w4(e,n,r=!1){let{routesMeta:i}=e,c={},d="/",u=[];for(let m=0;m<i.length;++m){let h=i[m],p=m===i.length-1,g=d==="/"?n:n.slice(d.length)||"/",v=Pi({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),_=h.route;if(!v&&p&&r&&!i[i.length-1].route.index&&(v=Pi({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!v)return null;Object.assign(c,v.params),u.push({params:c,pathname:At([d,v.pathname]),pathnameBase:A4(At([d,v.pathnameBase])),route:_}),v.pathnameBase!=="/"&&(d=At([d,v.pathnameBase]))}return u}function Pi(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=z4(e.path,e.caseSensitive,e.end),c=n.match(r);if(!c)return null;let d=c[0],u=d.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:i.reduce((p,{paramName:g,isOptional:v},_)=>{if(g==="*"){let $=m[_]||"";u=d.slice(0,d.length-$.length).replace(/(.)\/+$/,"$1")}const z=m[_];return v&&!z?p[g]=void 0:p[g]=(z||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:u,pattern:e}}function z4(e,n=!1,r=!0){lt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],c="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,m,h,p,g)=>{if(i.push({paramName:m,isOptional:h!=null}),h){let v=g.charAt(p+u.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),c+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?c+="\\/*$":e!==""&&e!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,n?void 0:"i"),i]}function Ux(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return lt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function ur(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}var S4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function j4(e,n="/"){let{pathname:r,search:i="",hash:c=""}=typeof e=="string"?Ta(e):e,d;return r?(r=Fx(r),r.startsWith("/")?d=cg(r.substring(1),"/"):d=cg(r,n)):d=n,{pathname:d,search:C4(i),hash:E4(c)}}function cg(e,n){let r=Is(n).split("/");return e.split("/").forEach(c=>{c===".."?r.length>1&&r.pop():c!=="."&&r.push(c)}),r.length>1?r.join("/"):"/"}function Df(e,n,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function T4(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function lm(e){let n=T4(e);return n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase)}function td(e,n,r,i=!1){let c;typeof e=="string"?c=Ta(e):(c={...e},jo(!c.pathname||!c.pathname.includes("?"),Df("?","pathname","search",c)),jo(!c.pathname||!c.pathname.includes("#"),Df("#","pathname","hash",c)),jo(!c.search||!c.search.includes("#"),Df("#","search","hash",c)));let d=e===""||c.pathname==="",u=d?"/":c.pathname,m;if(u==null)m=r;else{let v=n.length-1;if(!i&&u.startsWith("..")){let _=u.split("/");for(;_[0]==="..";)_.shift(),v-=1;c.pathname=_.join("/")}m=v>=0?n[v]:"/"}let h=j4(c,m),p=u&&u!=="/"&&u.endsWith("/"),g=(d||u===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}var Fx=e=>e.replace(/\/\/+/g,"/"),At=e=>Fx(e.join("/")),Is=e=>e.replace(/\/+$/,""),A4=e=>Is(e).replace(/^\/*/,"/"),C4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,E4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,L4=class{constructor(e,n,r,i=!1){this.status=e,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function O4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function $4(e){let n=e.map(r=>r.route.path).filter(Boolean);return At(n)||"/"}var Hx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Vx(e,n){let r=e;if(typeof r!="string"||!S4.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let i=r,c=!1;if(Hx)try{let d=new URL(window.location.href),u=r.startsWith("//")?new URL(d.protocol+r):new URL(r),m=ur(u.pathname,n);u.origin===d.origin&&m!=null?r=m+u.search+u.hash:c=!0}catch{lt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:c,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Kx=["POST","PUT","PATCH","DELETE"];new Set(Kx);var N4=["GET",...Kx];new Set(N4);var Ol=S.createContext(null);Ol.displayName="DataRouter";var rd=S.createContext(null);rd.displayName="DataRouterState";var qx=S.createContext(!1);function R4(){return S.useContext(qx)}var Zx=S.createContext({isTransitioning:!1});Zx.displayName="ViewTransition";var B4=S.createContext(new Map);B4.displayName="Fetchers";var D4=S.createContext(null);D4.displayName="Await";var it=S.createContext(null);it.displayName="Navigation";var nc=S.createContext(null);nc.displayName="Location";var Ct=S.createContext({outlet:null,matches:[],isDataRoute:!1});Ct.displayName="Route";var im=S.createContext(null);im.displayName="RouteError";var Px="REACT_ROUTER_ERROR",M4="REDIRECT",I4="ROUTE_ERROR_RESPONSE";function U4(e){if(e.startsWith(`${Px}:${M4}:{`))try{let n=JSON.parse(e.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function F4(e){if(e.startsWith(`${Px}:${I4}:{`))try{let n=JSON.parse(e.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new L4(n.status,n.statusText,n.data)}catch{}}function Gx(e,{relative:n}={}){jo(Aa(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=S.useContext(it),{hash:c,pathname:d,search:u}=$l(e,{relative:n}),m=d;return r!=="/"&&(m=d==="/"?r:At([r,d])),i.createHref({pathname:m,search:u,hash:c})}function Aa(){return S.useContext(nc)!=null}function Nn(){return jo(Aa(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(nc).location}function H4(e){jo(Aa(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:n}=Nn();return S.useMemo(()=>Pi(e,Ux(n)),[n,e])}var Yx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Jx(e){S.useContext(it).static||S.useLayoutEffect(e)}function ad(){let{isDataRoute:e}=S.useContext(Ct);return e?n6():V4()}function V4(){jo(Aa(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Ol),{basename:n,navigator:r}=S.useContext(it),{matches:i}=S.useContext(Ct),{pathname:c}=Nn(),d=JSON.stringify(lm(i)),u=S.useRef(!1);return Jx(()=>{u.current=!0}),S.useCallback((h,p={})=>{if(lt(u.current,Yx),!u.current)return;if(typeof h=="number"){r.go(h);return}let g=td(h,JSON.parse(d),c,p.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:At([n,g.pathname])),(p.replace?r.replace:r.push)(g,p.state,p)},[n,r,d,c,e])}S.createContext(null);function K4(){let{matches:e}=S.useContext(Ct);return e[e.length-1]?.params??{}}function $l(e,{relative:n}={}){let{matches:r}=S.useContext(Ct),{pathname:i}=Nn(),c=JSON.stringify(lm(r));return S.useMemo(()=>td(e,JSON.parse(c),i,n==="path"),[e,c,i,n])}function q4(e,n){return Xx(e,n)}function Xx(e,n,r){jo(Aa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=S.useContext(it),{matches:c}=S.useContext(Ct),d=c[c.length-1],u=d?d.params:{},m=d?d.pathname:"/",h=d?d.pathnameBase:"/",p=d&&d.route;{let E=p&&p.path||"";Qx(m,!p||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
9
|
+
`+s.stack}}var Be=Object.prototype.hasOwnProperty,so=e.unstable_scheduleCallback,Go=e.unstable_cancelCallback,_o=e.unstable_shouldYield,to=e.unstable_requestPaint,T=e.unstable_now,B=e.unstable_getCurrentPriorityLevel,I=e.unstable_ImmediatePriority,le=e.unstable_UserBlockingPriority,ie=e.unstable_NormalPriority,ne=e.unstable_LowPriority,me=e.unstable_IdlePriority,Me=e.log,oo=e.unstable_setDisableYieldValue,Ko=null,To=null;function Lo(o){if(typeof Me=="function"&&oo(o),To&&typeof To.setStrictMode=="function")try{To.setStrictMode(Ko,o)}catch{}}var Ln=Math.clz32?Math.clz32:pd,Bl=Math.log,Dl=Math.LN2;function pd(o){return o>>>=0,o===0?32:31-(Bl(o)/Dl|0)|0}var Wr=256,Oa=262144,Qr=4194304;function ea(o){var t=o&42;if(t!==0)return t;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function lc(o,t,l){var s=o.pendingLanes;if(s===0)return 0;var f=0,b=o.suspendedLanes,k=o.pingedLanes;o=o.warmLanes;var x=s&134217727;return x!==0?(s=x&~b,s!==0?f=ea(s):(k&=x,k!==0?f=ea(k):l||(l=x&~o,l!==0&&(f=ea(l))))):(x=s&~b,x!==0?f=ea(x):k!==0?f=ea(k):l||(l=s&~o,l!==0&&(f=ea(l)))),f===0?0:t!==0&&t!==f&&(t&b)===0&&(b=f&-f,l=t&-t,b>=l||b===32&&(l&4194048)!==0)?t:f}function Ml(o,t){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&t)===0}function Cw(o,t){switch(o){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xm(){var o=Qr;return Qr<<=1,(Qr&62914560)===0&&(Qr=4194304),o}function kd(o){for(var t=[],l=0;31>l;l++)t.push(o);return t}function Il(o,t){o.pendingLanes|=t,t!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Ew(o,t,l,s,f,b){var k=o.pendingLanes;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=l,o.entangledLanes&=l,o.errorRecoveryDisabledLanes&=l,o.shellSuspendCounter=0;var x=o.entanglements,A=o.expirationTimes,F=o.hiddenUpdates;for(l=k&~l;0<l;){var Y=31-Ln(l),Q=1<<Y;x[Y]=0,A[Y]=-1;var V=F[Y];if(V!==null)for(F[Y]=null,Y=0;Y<V.length;Y++){var Z=V[Y];Z!==null&&(Z.lane&=-536870913)}l&=~Q}s!==0&&Wm(o,s,0),b!==0&&f===0&&o.tag!==0&&(o.suspendedLanes|=b&~(k&~t))}function Wm(o,t,l){o.pendingLanes|=t,o.suspendedLanes&=~t;var s=31-Ln(t);o.entangledLanes|=t,o.entanglements[s]=o.entanglements[s]|1073741824|l&261930}function Qm(o,t){var l=o.entangledLanes|=t;for(o=o.entanglements;l;){var s=31-Ln(l),f=1<<s;f&t|o[s]&t&&(o[s]|=t),l&=~f}}function eh(o,t){var l=t&-t;return l=(l&42)!==0?1:vd(l),(l&(o.suspendedLanes|t))!==0?0:l}function vd(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function gd(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function oh(){var o=G.p;return o!==0?o:(o=window.event,o===void 0?32:Uv(o.type))}function nh(o,t){var l=G.p;try{return G.p=o,t()}finally{G.p=l}}var pr=Math.random().toString(36).slice(2),un="__reactFiber$"+pr,Dn="__reactProps$"+pr,$a="__reactContainer$"+pr,_d="__reactEvents$"+pr,Lw="__reactListeners$"+pr,Ow="__reactHandles$"+pr,th="__reactResources$"+pr,Ul="__reactMarker$"+pr;function xd(o){delete o[un],delete o[Dn],delete o[_d],delete o[Lw],delete o[Ow]}function Na(o){var t=o[un];if(t)return t;for(var l=o.parentNode;l;){if(t=l[$a]||l[un]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(o=zv(o);o!==null;){if(l=o[un])return l;o=zv(o)}return t}o=l,l=o.parentNode}return null}function Ra(o){if(o=o[un]||o[$a]){var t=o.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return o}return null}function Fl(o){var t=o.tag;if(t===5||t===26||t===27||t===6)return o.stateNode;throw Error(i(33))}function Ba(o){var t=o[th];return t||(t=o[th]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function cn(o){o[Ul]=!0}var rh=new Set,ah={};function oa(o,t){Da(o,t),Da(o+"Capture",t)}function Da(o,t){for(ah[o]=t,o=0;o<t.length;o++)rh.add(t[o])}var $w=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),lh={},ih={};function Nw(o){return Be.call(ih,o)?!0:Be.call(lh,o)?!1:$w.test(o)?ih[o]=!0:(lh[o]=!0,!1)}function ic(o,t,l){if(Nw(t))if(l===null)o.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":o.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){o.removeAttribute(t);return}}o.setAttribute(t,""+l)}}function cc(o,t,l){if(l===null)o.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(t);return}o.setAttribute(t,""+l)}}function Mt(o,t,l,s){if(s===null)o.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttributeNS(t,l,""+s)}}function ut(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function ch(o){var t=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rw(o,t,l){var s=Object.getOwnPropertyDescriptor(o.constructor.prototype,t);if(!o.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,b=s.set;return Object.defineProperty(o,t,{configurable:!0,get:function(){return f.call(this)},set:function(k){l=""+k,b.call(this,k)}}),Object.defineProperty(o,t,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(k){l=""+k},stopTracking:function(){o._valueTracker=null,delete o[t]}}}}function yd(o){if(!o._valueTracker){var t=ch(o)?"checked":"value";o._valueTracker=Rw(o,t,""+o[t])}}function sh(o){if(!o)return!1;var t=o._valueTracker;if(!t)return!0;var l=t.getValue(),s="";return o&&(s=ch(o)?o.checked?"true":"false":o.value),o=s,o!==l?(t.setValue(o),!0):!1}function sc(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var Bw=/[\n"\\]/g;function ft(o){return o.replace(Bw,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function wd(o,t,l,s,f,b,k,x){o.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?o.type=k:o.removeAttribute("type"),t!=null?k==="number"?(t===0&&o.value===""||o.value!=t)&&(o.value=""+ut(t)):o.value!==""+ut(t)&&(o.value=""+ut(t)):k!=="submit"&&k!=="reset"||o.removeAttribute("value"),t!=null?zd(o,k,ut(t)):l!=null?zd(o,k,ut(l)):s!=null&&o.removeAttribute("value"),f==null&&b!=null&&(o.defaultChecked=!!b),f!=null&&(o.checked=f&&typeof f!="function"&&typeof f!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?o.name=""+ut(x):o.removeAttribute("name")}function dh(o,t,l,s,f,b,k,x){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(o.type=b),t!=null||l!=null){if(!(b!=="submit"&&b!=="reset"||t!=null)){yd(o);return}l=l!=null?""+ut(l):"",t=t!=null?""+ut(t):l,x||t===o.value||(o.value=t),o.defaultValue=t}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,o.checked=x?o.checked:!!s,o.defaultChecked=!!s,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(o.name=k),yd(o)}function zd(o,t,l){t==="number"&&sc(o.ownerDocument)===o||o.defaultValue===""+l||(o.defaultValue=""+l)}function Ma(o,t,l,s){if(o=o.options,t){t={};for(var f=0;f<l.length;f++)t["$"+l[f]]=!0;for(l=0;l<o.length;l++)f=t.hasOwnProperty("$"+o[l].value),o[l].selected!==f&&(o[l].selected=f),f&&s&&(o[l].defaultSelected=!0)}else{for(l=""+ut(l),t=null,f=0;f<o.length;f++){if(o[f].value===l){o[f].selected=!0,s&&(o[f].defaultSelected=!0);return}t!==null||o[f].disabled||(t=o[f])}t!==null&&(t.selected=!0)}}function uh(o,t,l){if(t!=null&&(t=""+ut(t),t!==o.value&&(o.value=t),l==null)){o.defaultValue!==t&&(o.defaultValue=t);return}o.defaultValue=l!=null?""+ut(l):""}function fh(o,t,l,s){if(t==null){if(s!=null){if(l!=null)throw Error(i(92));if($e(s)){if(1<s.length)throw Error(i(93));s=s[0]}l=s}l==null&&(l=""),t=l}l=ut(t),o.defaultValue=l,s=o.textContent,s===l&&s!==""&&s!==null&&(o.value=s),yd(o)}function Ia(o,t){if(t){var l=o.firstChild;if(l&&l===o.lastChild&&l.nodeType===3){l.nodeValue=t;return}}o.textContent=t}var Dw=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function bh(o,t,l){var s=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?o.setProperty(t,""):t==="float"?o.cssFloat="":o[t]="":s?o.setProperty(t,l):typeof l!="number"||l===0||Dw.has(t)?t==="float"?o.cssFloat=l:o[t]=(""+l).trim():o[t]=l+"px"}function mh(o,t,l){if(t!=null&&typeof t!="object")throw Error(i(62));if(o=o.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?o.setProperty(s,""):s==="float"?o.cssFloat="":o[s]="");for(var f in t)s=t[f],t.hasOwnProperty(f)&&l[f]!==s&&bh(o,f,s)}else for(var b in t)t.hasOwnProperty(b)&&bh(o,b,t[b])}function Sd(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Mw=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Iw=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function dc(o){return Iw.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function It(){}var jd=null;function Td(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Ua=null,Fa=null;function hh(o){var t=Ra(o);if(t&&(o=t.stateNode)){var l=o[Dn]||null;e:switch(o=t.stateNode,t.type){case"input":if(wd(o,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=o;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+ft(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var s=l[t];if(s!==o&&s.form===o.form){var f=s[Dn]||null;if(!f)throw Error(i(90));wd(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(t=0;t<l.length;t++)s=l[t],s.form===o.form&&sh(s)}break e;case"textarea":uh(o,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Ma(o,!!l.multiple,t,!1)}}}var Ad=!1;function ph(o,t,l){if(Ad)return o(t,l);Ad=!0;try{var s=o(t);return s}finally{if(Ad=!1,(Ua!==null||Fa!==null)&&(Xc(),Ua&&(t=Ua,o=Fa,Fa=Ua=null,hh(t),o)))for(t=0;t<o.length;t++)hh(o[t])}}function Hl(o,t){var l=o.stateNode;if(l===null)return null;var s=l[Dn]||null;if(s===null)return null;l=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(o=o.type,s=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!s;break e;default:o=!1}if(o)return null;if(l&&typeof l!="function")throw Error(i(231,t,typeof l));return l}var Ut=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cd=!1;if(Ut)try{var Vl={};Object.defineProperty(Vl,"passive",{get:function(){Cd=!0}}),window.addEventListener("test",Vl,Vl),window.removeEventListener("test",Vl,Vl)}catch{Cd=!1}var kr=null,Ed=null,uc=null;function kh(){if(uc)return uc;var o,t=Ed,l=t.length,s,f="value"in kr?kr.value:kr.textContent,b=f.length;for(o=0;o<l&&t[o]===f[o];o++);var k=l-o;for(s=1;s<=k&&t[l-s]===f[b-s];s++);return uc=f.slice(o,1<s?1-s:void 0)}function fc(o){var t=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&t===13&&(o=13)):o=t,o===10&&(o=13),32<=o||o===13?o:0}function bc(){return!0}function vh(){return!1}function Mn(o){function t(l,s,f,b,k){this._reactName=l,this._targetInst=f,this.type=s,this.nativeEvent=b,this.target=k,this.currentTarget=null;for(var x in o)o.hasOwnProperty(x)&&(l=o[x],this[x]=l?l(b):b[x]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?bc:vh,this.isPropagationStopped=vh,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=bc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=bc)},persist:function(){},isPersistent:bc}),t}var na={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mc=Mn(na),Kl=v({},na,{view:0,detail:0}),Uw=Mn(Kl),Ld,Od,ql,hc=v({},Kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nd,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==ql&&(ql&&o.type==="mousemove"?(Ld=o.screenX-ql.screenX,Od=o.screenY-ql.screenY):Od=Ld=0,ql=o),Ld)},movementY:function(o){return"movementY"in o?o.movementY:Od}}),gh=Mn(hc),Fw=v({},hc,{dataTransfer:0}),Hw=Mn(Fw),Vw=v({},Kl,{relatedTarget:0}),$d=Mn(Vw),Kw=v({},na,{animationName:0,elapsedTime:0,pseudoElement:0}),qw=Mn(Kw),Zw=v({},na,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),Pw=Mn(Zw),Gw=v({},na,{data:0}),_h=Mn(Gw),Yw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Xw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ww(o){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(o):(o=Xw[o])?!!t[o]:!1}function Nd(){return Ww}var Qw=v({},Kl,{key:function(o){if(o.key){var t=Yw[o.key]||o.key;if(t!=="Unidentified")return t}return o.type==="keypress"?(o=fc(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Jw[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nd,charCode:function(o){return o.type==="keypress"?fc(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?fc(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),e2=Mn(Qw),o2=v({},hc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xh=Mn(o2),n2=v({},Kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nd}),t2=Mn(n2),r2=v({},na,{propertyName:0,elapsedTime:0,pseudoElement:0}),a2=Mn(r2),l2=v({},hc,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),i2=Mn(l2),c2=v({},na,{newState:0,oldState:0}),s2=Mn(c2),d2=[9,13,27,32],Rd=Ut&&"CompositionEvent"in window,Zl=null;Ut&&"documentMode"in document&&(Zl=document.documentMode);var u2=Ut&&"TextEvent"in window&&!Zl,yh=Ut&&(!Rd||Zl&&8<Zl&&11>=Zl),wh=" ",zh=!1;function Sh(o,t){switch(o){case"keyup":return d2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jh(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Ha=!1;function f2(o,t){switch(o){case"compositionend":return jh(t);case"keypress":return t.which!==32?null:(zh=!0,wh);case"textInput":return o=t.data,o===wh&&zh?null:o;default:return null}}function b2(o,t){if(Ha)return o==="compositionend"||!Rd&&Sh(o,t)?(o=kh(),uc=Ed=kr=null,Ha=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return yh&&t.locale!=="ko"?null:t.data;default:return null}}var m2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Th(o){var t=o&&o.nodeName&&o.nodeName.toLowerCase();return t==="input"?!!m2[o.type]:t==="textarea"}function Ah(o,t,l,s){Ua?Fa?Fa.push(s):Fa=[s]:Ua=s,t=rs(t,"onChange"),0<t.length&&(l=new mc("onChange","change",null,l,s),o.push({event:l,listeners:t}))}var Pl=null,Gl=null;function h2(o){dv(o,0)}function pc(o){var t=Fl(o);if(sh(t))return o}function Ch(o,t){if(o==="change")return t}var Eh=!1;if(Ut){var Bd;if(Ut){var Dd="oninput"in document;if(!Dd){var Lh=document.createElement("div");Lh.setAttribute("oninput","return;"),Dd=typeof Lh.oninput=="function"}Bd=Dd}else Bd=!1;Eh=Bd&&(!document.documentMode||9<document.documentMode)}function Oh(){Pl&&(Pl.detachEvent("onpropertychange",$h),Gl=Pl=null)}function $h(o){if(o.propertyName==="value"&&pc(Gl)){var t=[];Ah(t,Gl,o,Td(o)),ph(h2,t)}}function p2(o,t,l){o==="focusin"?(Oh(),Pl=t,Gl=l,Pl.attachEvent("onpropertychange",$h)):o==="focusout"&&Oh()}function k2(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return pc(Gl)}function v2(o,t){if(o==="click")return pc(t)}function g2(o,t){if(o==="input"||o==="change")return pc(t)}function _2(o,t){return o===t&&(o!==0||1/o===1/t)||o!==o&&t!==t}var Yn=typeof Object.is=="function"?Object.is:_2;function Yl(o,t){if(Yn(o,t))return!0;if(typeof o!="object"||o===null||typeof t!="object"||t===null)return!1;var l=Object.keys(o),s=Object.keys(t);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var f=l[s];if(!Be.call(t,f)||!Yn(o[f],t[f]))return!1}return!0}function Nh(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Rh(o,t){var l=Nh(o);o=0;for(var s;l;){if(l.nodeType===3){if(s=o+l.textContent.length,o<=t&&s>=t)return{node:l,offset:t-o};o=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Nh(l)}}function Bh(o,t){return o&&t?o===t?!0:o&&o.nodeType===3?!1:t&&t.nodeType===3?Bh(o,t.parentNode):"contains"in o?o.contains(t):o.compareDocumentPosition?!!(o.compareDocumentPosition(t)&16):!1:!1}function Dh(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var t=sc(o.document);t instanceof o.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)o=t.contentWindow;else break;t=sc(o.document)}return t}function Md(o){var t=o&&o.nodeName&&o.nodeName.toLowerCase();return t&&(t==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||t==="textarea"||o.contentEditable==="true")}var x2=Ut&&"documentMode"in document&&11>=document.documentMode,Va=null,Id=null,Jl=null,Ud=!1;function Mh(o,t,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ud||Va==null||Va!==sc(s)||(s=Va,"selectionStart"in s&&Md(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Jl&&Yl(Jl,s)||(Jl=s,s=rs(Id,"onSelect"),0<s.length&&(t=new mc("onSelect","select",null,t,l),o.push({event:t,listeners:s}),t.target=Va)))}function ta(o,t){var l={};return l[o.toLowerCase()]=t.toLowerCase(),l["Webkit"+o]="webkit"+t,l["Moz"+o]="moz"+t,l}var Ka={animationend:ta("Animation","AnimationEnd"),animationiteration:ta("Animation","AnimationIteration"),animationstart:ta("Animation","AnimationStart"),transitionrun:ta("Transition","TransitionRun"),transitionstart:ta("Transition","TransitionStart"),transitioncancel:ta("Transition","TransitionCancel"),transitionend:ta("Transition","TransitionEnd")},Fd={},Ih={};Ut&&(Ih=document.createElement("div").style,"AnimationEvent"in window||(delete Ka.animationend.animation,delete Ka.animationiteration.animation,delete Ka.animationstart.animation),"TransitionEvent"in window||delete Ka.transitionend.transition);function ra(o){if(Fd[o])return Fd[o];if(!Ka[o])return o;var t=Ka[o],l;for(l in t)if(t.hasOwnProperty(l)&&l in Ih)return Fd[o]=t[l];return o}var Uh=ra("animationend"),Fh=ra("animationiteration"),Hh=ra("animationstart"),y2=ra("transitionrun"),w2=ra("transitionstart"),z2=ra("transitioncancel"),Vh=ra("transitionend"),Kh=new Map,Hd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Hd.push("scrollEnd");function wt(o,t){Kh.set(o,t),oa(t,[o])}var kc=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},bt=[],qa=0,Vd=0;function vc(){for(var o=qa,t=Vd=qa=0;t<o;){var l=bt[t];bt[t++]=null;var s=bt[t];bt[t++]=null;var f=bt[t];bt[t++]=null;var b=bt[t];if(bt[t++]=null,s!==null&&f!==null){var k=s.pending;k===null?f.next=f:(f.next=k.next,k.next=f),s.pending=f}b!==0&&qh(l,f,b)}}function gc(o,t,l,s){bt[qa++]=o,bt[qa++]=t,bt[qa++]=l,bt[qa++]=s,Vd|=s,o.lanes|=s,o=o.alternate,o!==null&&(o.lanes|=s)}function Kd(o,t,l,s){return gc(o,t,l,s),_c(o)}function aa(o,t){return gc(o,null,null,t),_c(o)}function qh(o,t,l){o.lanes|=l;var s=o.alternate;s!==null&&(s.lanes|=l);for(var f=!1,b=o.return;b!==null;)b.childLanes|=l,s=b.alternate,s!==null&&(s.childLanes|=l),b.tag===22&&(o=b.stateNode,o===null||o._visibility&1||(f=!0)),o=b,b=b.return;return o.tag===3?(b=o.stateNode,f&&t!==null&&(f=31-Ln(l),o=b.hiddenUpdates,s=o[f],s===null?o[f]=[t]:s.push(t),t.lane=l|536870912),b):null}function _c(o){if(50<vi)throw vi=0,Qu=null,Error(i(185));for(var t=o.return;t!==null;)o=t,t=o.return;return o.tag===3?o.stateNode:null}var Za={};function S2(o,t,l,s){this.tag=o,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jn(o,t,l,s){return new S2(o,t,l,s)}function qd(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Ft(o,t){var l=o.alternate;return l===null?(l=Jn(o.tag,t,o.key,o.mode),l.elementType=o.elementType,l.type=o.type,l.stateNode=o.stateNode,l.alternate=o,o.alternate=l):(l.pendingProps=t,l.type=o.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=o.flags&65011712,l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,t=o.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=o.sibling,l.index=o.index,l.ref=o.ref,l.refCleanup=o.refCleanup,l}function Zh(o,t){o.flags&=65011714;var l=o.alternate;return l===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,t=l.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),o}function xc(o,t,l,s,f,b){var k=0;if(s=o,typeof o=="function")qd(o)&&(k=1);else if(typeof o=="string")k=Ez(o,l,be.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case de:return o=Jn(31,l,t,f),o.elementType=de,o.lanes=b,o;case j:return la(l.children,f,b,t);case E:k=8,f|=24;break;case L:return o=Jn(12,l,t,f|2),o.elementType=L,o.lanes=b,o;case D:return o=Jn(13,l,t,f),o.elementType=D,o.lanes=b,o;case H:return o=Jn(19,l,t,f),o.elementType=H,o.lanes=b,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case w:k=10;break e;case y:k=9;break e;case N:k=11;break e;case q:k=14;break e;case oe:k=16,s=null;break e}k=29,l=Error(i(130,o===null?"null":typeof o,"")),s=null}return t=Jn(k,l,t,f),t.elementType=o,t.type=s,t.lanes=b,t}function la(o,t,l,s){return o=Jn(7,o,s,t),o.lanes=l,o}function Zd(o,t,l){return o=Jn(6,o,null,t),o.lanes=l,o}function Ph(o){var t=Jn(18,null,null,0);return t.stateNode=o,t}function Pd(o,t,l){return t=Jn(4,o.children!==null?o.children:[],o.key,t),t.lanes=l,t.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},t}var Gh=new WeakMap;function mt(o,t){if(typeof o=="object"&&o!==null){var l=Gh.get(o);return l!==void 0?l:(t={value:o,source:t,stack:ve(t)},Gh.set(o,t),t)}return{value:o,source:t,stack:ve(t)}}var Pa=[],Ga=0,yc=null,Xl=0,ht=[],pt=0,vr=null,Lt=1,Ot="";function Ht(o,t){Pa[Ga++]=Xl,Pa[Ga++]=yc,yc=o,Xl=t}function Yh(o,t,l){ht[pt++]=Lt,ht[pt++]=Ot,ht[pt++]=vr,vr=o;var s=Lt;o=Ot;var f=32-Ln(s)-1;s&=~(1<<f),l+=1;var b=32-Ln(t)+f;if(30<b){var k=f-f%5;b=(s&(1<<k)-1).toString(32),s>>=k,f-=k,Lt=1<<32-Ln(t)+f|l<<f|s,Ot=b+o}else Lt=1<<b|l<<f|s,Ot=o}function Gd(o){o.return!==null&&(Ht(o,1),Yh(o,1,0))}function Yd(o){for(;o===yc;)yc=Pa[--Ga],Pa[Ga]=null,Xl=Pa[--Ga],Pa[Ga]=null;for(;o===vr;)vr=ht[--pt],ht[pt]=null,Ot=ht[--pt],ht[pt]=null,Lt=ht[--pt],ht[pt]=null}function Jh(o,t){ht[pt++]=Lt,ht[pt++]=Ot,ht[pt++]=vr,Lt=t.id,Ot=t.overflow,vr=o}var fn=null,wo=null,Qe=!1,gr=null,kt=!1,Jd=Error(i(519));function _r(o){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wl(mt(t,o)),Jd}function Xh(o){var t=o.stateNode,l=o.type,s=o.memoizedProps;switch(t[un]=o,t[Dn]=s,l){case"dialog":Ge("cancel",t),Ge("close",t);break;case"iframe":case"object":case"embed":Ge("load",t);break;case"video":case"audio":for(l=0;l<_i.length;l++)Ge(_i[l],t);break;case"source":Ge("error",t);break;case"img":case"image":case"link":Ge("error",t),Ge("load",t);break;case"details":Ge("toggle",t);break;case"input":Ge("invalid",t),dh(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ge("invalid",t);break;case"textarea":Ge("invalid",t),fh(t,s.value,s.defaultValue,s.children)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||s.suppressHydrationWarning===!0||mv(t.textContent,l)?(s.popover!=null&&(Ge("beforetoggle",t),Ge("toggle",t)),s.onScroll!=null&&Ge("scroll",t),s.onScrollEnd!=null&&Ge("scrollend",t),s.onClick!=null&&(t.onclick=It),t=!0):t=!1,t||_r(o,!0)}function Wh(o){for(fn=o.return;fn;)switch(fn.tag){case 5:case 31:case 13:kt=!1;return;case 27:case 3:kt=!0;return;default:fn=fn.return}}function Ya(o){if(o!==fn)return!1;if(!Qe)return Wh(o),Qe=!0,!1;var t=o.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=o.type,l=!(l!=="form"&&l!=="button")||hf(o.type,o.memoizedProps)),l=!l),l&&wo&&_r(o),Wh(o),t===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));wo=wv(o)}else if(t===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));wo=wv(o)}else t===27?(t=wo,Nr(o.type)?(o=_f,_f=null,wo=o):wo=t):wo=fn?gt(o.stateNode.nextSibling):null;return!0}function ia(){wo=fn=null,Qe=!1}function Xd(){var o=gr;return o!==null&&(Hn===null?Hn=o:Hn.push.apply(Hn,o),gr=null),o}function Wl(o){gr===null?gr=[o]:gr.push(o)}var Wd=C(null),ca=null,Vt=null;function xr(o,t,l){te(Wd,t._currentValue),t._currentValue=l}function Kt(o){o._currentValue=Wd.current,P(Wd)}function Qd(o,t,l){for(;o!==null;){var s=o.alternate;if((o.childLanes&t)!==t?(o.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),o===l)break;o=o.return}}function eu(o,t,l,s){var f=o.child;for(f!==null&&(f.return=o);f!==null;){var b=f.dependencies;if(b!==null){var k=f.child;b=b.firstContext;e:for(;b!==null;){var x=b;b=f;for(var A=0;A<t.length;A++)if(x.context===t[A]){b.lanes|=l,x=b.alternate,x!==null&&(x.lanes|=l),Qd(b.return,l,o),s||(k=null);break e}b=x.next}}else if(f.tag===18){if(k=f.return,k===null)throw Error(i(341));k.lanes|=l,b=k.alternate,b!==null&&(b.lanes|=l),Qd(k,l,o),k=null}else k=f.child;if(k!==null)k.return=f;else for(k=f;k!==null;){if(k===o){k=null;break}if(f=k.sibling,f!==null){f.return=k.return,k=f;break}k=k.return}f=k}}function Ja(o,t,l,s){o=null;for(var f=t,b=!1;f!==null;){if(!b){if((f.flags&524288)!==0)b=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var k=f.alternate;if(k===null)throw Error(i(387));if(k=k.memoizedProps,k!==null){var x=f.type;Yn(f.pendingProps.value,k.value)||(o!==null?o.push(x):o=[x])}}else if(f===He.current){if(k=f.alternate,k===null)throw Error(i(387));k.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(o!==null?o.push(Si):o=[Si])}f=f.return}o!==null&&eu(t,o,l,s),t.flags|=262144}function wc(o){for(o=o.firstContext;o!==null;){if(!Yn(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function sa(o){ca=o,Vt=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function bn(o){return Qh(ca,o)}function zc(o,t){return ca===null&&sa(o),Qh(o,t)}function Qh(o,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Vt===null){if(o===null)throw Error(i(308));Vt=t,o.dependencies={lanes:0,firstContext:t},o.flags|=524288}else Vt=Vt.next=t;return l}var j2=typeof AbortController<"u"?AbortController:function(){var o=[],t=this.signal={aborted:!1,addEventListener:function(l,s){o.push(s)}};this.abort=function(){t.aborted=!0,o.forEach(function(l){return l()})}},T2=e.unstable_scheduleCallback,A2=e.unstable_NormalPriority,Yo={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ou(){return{controller:new j2,data:new Map,refCount:0}}function Ql(o){o.refCount--,o.refCount===0&&T2(A2,function(){o.controller.abort()})}var ei=null,nu=0,Xa=0,Wa=null;function C2(o,t){if(ei===null){var l=ei=[];nu=0,Xa=af(),Wa={status:"pending",value:void 0,then:function(s){l.push(s)}}}return nu++,t.then(ep,ep),t}function ep(){if(--nu===0&&ei!==null){Wa!==null&&(Wa.status="fulfilled");var o=ei;ei=null,Xa=0,Wa=null;for(var t=0;t<o.length;t++)(0,o[t])()}}function E2(o,t){var l=[],s={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return o.then(function(){s.status="fulfilled",s.value=t;for(var f=0;f<l.length;f++)(0,l[f])(t)},function(f){for(s.status="rejected",s.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),s}var op=M.S;M.S=function(o,t){Mk=T(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&C2(o,t),op!==null&&op(o,t)};var da=C(null);function tu(){var o=da.current;return o!==null?o:xo.pooledCache}function Sc(o,t){t===null?te(da,da.current):te(da,t.pool)}function np(){var o=tu();return o===null?null:{parent:Yo._currentValue,pool:o}}var Qa=Error(i(460)),ru=Error(i(474)),jc=Error(i(542)),Tc={then:function(){}};function tp(o){return o=o.status,o==="fulfilled"||o==="rejected"}function rp(o,t,l){switch(l=o[l],l===void 0?o.push(t):l!==t&&(t.then(It,It),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw o=t.reason,lp(o),o;default:if(typeof t.status=="string")t.then(It,It);else{if(o=xo,o!==null&&100<o.shellSuspendCounter)throw Error(i(482));o=t,o.status="pending",o.then(function(s){if(t.status==="pending"){var f=t;f.status="fulfilled",f.value=s}},function(s){if(t.status==="pending"){var f=t;f.status="rejected",f.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw o=t.reason,lp(o),o}throw fa=t,Qa}}function ua(o){try{var t=o._init;return t(o._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(fa=l,Qa):l}}var fa=null;function ap(){if(fa===null)throw Error(i(459));var o=fa;return fa=null,o}function lp(o){if(o===Qa||o===jc)throw Error(i(483))}var el=null,oi=0;function Ac(o){var t=oi;return oi+=1,el===null&&(el=[]),rp(el,o,t)}function ni(o,t){t=t.props.ref,o.ref=t!==void 0?t:null}function Cc(o,t){throw t.$$typeof===_?Error(i(525)):(o=Object.prototype.toString.call(t),Error(i(31,o==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":o)))}function ip(o){function t(R,O){if(o){var U=R.deletions;U===null?(R.deletions=[O],R.flags|=16):U.push(O)}}function l(R,O){if(!o)return null;for(;O!==null;)t(R,O),O=O.sibling;return null}function s(R){for(var O=new Map;R!==null;)R.key!==null?O.set(R.key,R):O.set(R.index,R),R=R.sibling;return O}function f(R,O){return R=Ft(R,O),R.index=0,R.sibling=null,R}function b(R,O,U){return R.index=U,o?(U=R.alternate,U!==null?(U=U.index,U<O?(R.flags|=67108866,O):U):(R.flags|=67108866,O)):(R.flags|=1048576,O)}function k(R){return o&&R.alternate===null&&(R.flags|=67108866),R}function x(R,O,U,J){return O===null||O.tag!==6?(O=Zd(U,R.mode,J),O.return=R,O):(O=f(O,U),O.return=R,O)}function A(R,O,U,J){var Se=U.type;return Se===j?Y(R,O,U.props.children,J,U.key):O!==null&&(O.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===oe&&ua(Se)===O.type)?(O=f(O,U.props),ni(O,U),O.return=R,O):(O=xc(U.type,U.key,U.props,null,R.mode,J),ni(O,U),O.return=R,O)}function F(R,O,U,J){return O===null||O.tag!==4||O.stateNode.containerInfo!==U.containerInfo||O.stateNode.implementation!==U.implementation?(O=Pd(U,R.mode,J),O.return=R,O):(O=f(O,U.children||[]),O.return=R,O)}function Y(R,O,U,J,Se){return O===null||O.tag!==7?(O=la(U,R.mode,J,Se),O.return=R,O):(O=f(O,U),O.return=R,O)}function Q(R,O,U){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Zd(""+O,R.mode,U),O.return=R,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case z:return U=xc(O.type,O.key,O.props,null,R.mode,U),ni(U,O),U.return=R,U;case $:return O=Pd(O,R.mode,U),O.return=R,O;case oe:return O=ua(O),Q(R,O,U)}if($e(O)||ee(O))return O=la(O,R.mode,U,null),O.return=R,O;if(typeof O.then=="function")return Q(R,Ac(O),U);if(O.$$typeof===w)return Q(R,zc(R,O),U);Cc(R,O)}return null}function V(R,O,U,J){var Se=O!==null?O.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return Se!==null?null:x(R,O,""+U,J);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case z:return U.key===Se?A(R,O,U,J):null;case $:return U.key===Se?F(R,O,U,J):null;case oe:return U=ua(U),V(R,O,U,J)}if($e(U)||ee(U))return Se!==null?null:Y(R,O,U,J,null);if(typeof U.then=="function")return V(R,O,Ac(U),J);if(U.$$typeof===w)return V(R,O,zc(R,U),J);Cc(R,U)}return null}function Z(R,O,U,J,Se){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return R=R.get(U)||null,x(O,R,""+J,Se);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case z:return R=R.get(J.key===null?U:J.key)||null,A(O,R,J,Se);case $:return R=R.get(J.key===null?U:J.key)||null,F(O,R,J,Se);case oe:return J=ua(J),Z(R,O,U,J,Se)}if($e(J)||ee(J))return R=R.get(U)||null,Y(O,R,J,Se,null);if(typeof J.then=="function")return Z(R,O,U,Ac(J),Se);if(J.$$typeof===w)return Z(R,O,U,zc(O,J),Se);Cc(O,J)}return null}function ke(R,O,U,J){for(var Se=null,ro=null,ge=O,Ue=O=0,Xe=null;ge!==null&&Ue<U.length;Ue++){ge.index>Ue?(Xe=ge,ge=null):Xe=ge.sibling;var ao=V(R,ge,U[Ue],J);if(ao===null){ge===null&&(ge=Xe);break}o&&ge&&ao.alternate===null&&t(R,ge),O=b(ao,O,Ue),ro===null?Se=ao:ro.sibling=ao,ro=ao,ge=Xe}if(Ue===U.length)return l(R,ge),Qe&&Ht(R,Ue),Se;if(ge===null){for(;Ue<U.length;Ue++)ge=Q(R,U[Ue],J),ge!==null&&(O=b(ge,O,Ue),ro===null?Se=ge:ro.sibling=ge,ro=ge);return Qe&&Ht(R,Ue),Se}for(ge=s(ge);Ue<U.length;Ue++)Xe=Z(ge,R,Ue,U[Ue],J),Xe!==null&&(o&&Xe.alternate!==null&&ge.delete(Xe.key===null?Ue:Xe.key),O=b(Xe,O,Ue),ro===null?Se=Xe:ro.sibling=Xe,ro=Xe);return o&&ge.forEach(function(Ir){return t(R,Ir)}),Qe&&Ht(R,Ue),Se}function Ce(R,O,U,J){if(U==null)throw Error(i(151));for(var Se=null,ro=null,ge=O,Ue=O=0,Xe=null,ao=U.next();ge!==null&&!ao.done;Ue++,ao=U.next()){ge.index>Ue?(Xe=ge,ge=null):Xe=ge.sibling;var Ir=V(R,ge,ao.value,J);if(Ir===null){ge===null&&(ge=Xe);break}o&&ge&&Ir.alternate===null&&t(R,ge),O=b(Ir,O,Ue),ro===null?Se=Ir:ro.sibling=Ir,ro=Ir,ge=Xe}if(ao.done)return l(R,ge),Qe&&Ht(R,Ue),Se;if(ge===null){for(;!ao.done;Ue++,ao=U.next())ao=Q(R,ao.value,J),ao!==null&&(O=b(ao,O,Ue),ro===null?Se=ao:ro.sibling=ao,ro=ao);return Qe&&Ht(R,Ue),Se}for(ge=s(ge);!ao.done;Ue++,ao=U.next())ao=Z(ge,R,Ue,ao.value,J),ao!==null&&(o&&ao.alternate!==null&&ge.delete(ao.key===null?Ue:ao.key),O=b(ao,O,Ue),ro===null?Se=ao:ro.sibling=ao,ro=ao);return o&&ge.forEach(function(Fz){return t(R,Fz)}),Qe&&Ht(R,Ue),Se}function go(R,O,U,J){if(typeof U=="object"&&U!==null&&U.type===j&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case z:e:{for(var Se=U.key;O!==null;){if(O.key===Se){if(Se=U.type,Se===j){if(O.tag===7){l(R,O.sibling),J=f(O,U.props.children),J.return=R,R=J;break e}}else if(O.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===oe&&ua(Se)===O.type){l(R,O.sibling),J=f(O,U.props),ni(J,U),J.return=R,R=J;break e}l(R,O);break}else t(R,O);O=O.sibling}U.type===j?(J=la(U.props.children,R.mode,J,U.key),J.return=R,R=J):(J=xc(U.type,U.key,U.props,null,R.mode,J),ni(J,U),J.return=R,R=J)}return k(R);case $:e:{for(Se=U.key;O!==null;){if(O.key===Se)if(O.tag===4&&O.stateNode.containerInfo===U.containerInfo&&O.stateNode.implementation===U.implementation){l(R,O.sibling),J=f(O,U.children||[]),J.return=R,R=J;break e}else{l(R,O);break}else t(R,O);O=O.sibling}J=Pd(U,R.mode,J),J.return=R,R=J}return k(R);case oe:return U=ua(U),go(R,O,U,J)}if($e(U))return ke(R,O,U,J);if(ee(U)){if(Se=ee(U),typeof Se!="function")throw Error(i(150));return U=Se.call(U),Ce(R,O,U,J)}if(typeof U.then=="function")return go(R,O,Ac(U),J);if(U.$$typeof===w)return go(R,O,zc(R,U),J);Cc(R,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,O!==null&&O.tag===6?(l(R,O.sibling),J=f(O,U),J.return=R,R=J):(l(R,O),J=Zd(U,R.mode,J),J.return=R,R=J),k(R)):l(R,O)}return function(R,O,U,J){try{oi=0;var Se=go(R,O,U,J);return el=null,Se}catch(ge){if(ge===Qa||ge===jc)throw ge;var ro=Jn(29,ge,null,R.mode);return ro.lanes=J,ro.return=R,ro}}}var ba=ip(!0),cp=ip(!1),yr=!1;function au(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lu(o,t){o=o.updateQueue,t.updateQueue===o&&(t.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function wr(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function zr(o,t,l){var s=o.updateQueue;if(s===null)return null;if(s=s.shared,(io&2)!==0){var f=s.pending;return f===null?t.next=t:(t.next=f.next,f.next=t),s.pending=t,t=_c(o),qh(o,null,l),t}return gc(o,s,t,l),_c(o)}function ti(o,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var s=t.lanes;s&=o.pendingLanes,l|=s,t.lanes=l,Qm(o,l)}}function iu(o,t){var l=o.updateQueue,s=o.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var f=null,b=null;if(l=l.firstBaseUpdate,l!==null){do{var k={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};b===null?f=b=k:b=b.next=k,l=l.next}while(l!==null);b===null?f=b=t:b=b.next=t}else f=b=t;l={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:b,shared:s.shared,callbacks:s.callbacks},o.updateQueue=l;return}o=l.lastBaseUpdate,o===null?l.firstBaseUpdate=t:o.next=t,l.lastBaseUpdate=t}var cu=!1;function ri(){if(cu){var o=Wa;if(o!==null)throw o}}function ai(o,t,l,s){cu=!1;var f=o.updateQueue;yr=!1;var b=f.firstBaseUpdate,k=f.lastBaseUpdate,x=f.shared.pending;if(x!==null){f.shared.pending=null;var A=x,F=A.next;A.next=null,k===null?b=F:k.next=F,k=A;var Y=o.alternate;Y!==null&&(Y=Y.updateQueue,x=Y.lastBaseUpdate,x!==k&&(x===null?Y.firstBaseUpdate=F:x.next=F,Y.lastBaseUpdate=A))}if(b!==null){var Q=f.baseState;k=0,Y=F=A=null,x=b;do{var V=x.lane&-536870913,Z=V!==x.lane;if(Z?(Je&V)===V:(s&V)===V){V!==0&&V===Xa&&(cu=!0),Y!==null&&(Y=Y.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ke=o,Ce=x;V=t;var go=l;switch(Ce.tag){case 1:if(ke=Ce.payload,typeof ke=="function"){Q=ke.call(go,Q,V);break e}Q=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=Ce.payload,V=typeof ke=="function"?ke.call(go,Q,V):ke,V==null)break e;Q=v({},Q,V);break e;case 2:yr=!0}}V=x.callback,V!==null&&(o.flags|=64,Z&&(o.flags|=8192),Z=f.callbacks,Z===null?f.callbacks=[V]:Z.push(V))}else Z={lane:V,tag:x.tag,payload:x.payload,callback:x.callback,next:null},Y===null?(F=Y=Z,A=Q):Y=Y.next=Z,k|=V;if(x=x.next,x===null){if(x=f.shared.pending,x===null)break;Z=x,x=Z.next,Z.next=null,f.lastBaseUpdate=Z,f.shared.pending=null}}while(!0);Y===null&&(A=Q),f.baseState=A,f.firstBaseUpdate=F,f.lastBaseUpdate=Y,b===null&&(f.shared.lanes=0),Cr|=k,o.lanes=k,o.memoizedState=Q}}function sp(o,t){if(typeof o!="function")throw Error(i(191,o));o.call(t)}function dp(o,t){var l=o.callbacks;if(l!==null)for(o.callbacks=null,o=0;o<l.length;o++)sp(l[o],t)}var ol=C(null),Ec=C(0);function up(o,t){o=Qt,te(Ec,o),te(ol,t),Qt=o|t.baseLanes}function su(){te(Ec,Qt),te(ol,ol.current)}function du(){Qt=Ec.current,P(ol),P(Ec)}var Xn=C(null),vt=null;function Sr(o){var t=o.alternate;te(qo,qo.current&1),te(Xn,o),vt===null&&(t===null||ol.current!==null||t.memoizedState!==null)&&(vt=o)}function uu(o){te(qo,qo.current),te(Xn,o),vt===null&&(vt=o)}function fp(o){o.tag===22?(te(qo,qo.current),te(Xn,o),vt===null&&(vt=o)):jr()}function jr(){te(qo,qo.current),te(Xn,Xn.current)}function Wn(o){P(Xn),vt===o&&(vt=null),P(qo)}var qo=C(0);function Lc(o){for(var t=o;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||vf(l)||gf(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===o)break;for(;t.sibling===null;){if(t.return===null||t.return===o)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qt=0,Ie=null,ko=null,Jo=null,Oc=!1,nl=!1,ma=!1,$c=0,li=0,tl=null,L2=0;function Do(){throw Error(i(321))}function fu(o,t){if(t===null)return!1;for(var l=0;l<t.length&&l<o.length;l++)if(!Yn(o[l],t[l]))return!1;return!0}function bu(o,t,l,s,f,b){return qt=b,Ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=o===null||o.memoizedState===null?Yp:Au,ma=!1,b=l(s,f),ma=!1,nl&&(b=mp(t,l,s,f)),bp(o),b}function bp(o){M.H=si;var t=ko!==null&&ko.next!==null;if(qt=0,Jo=ko=Ie=null,Oc=!1,li=0,tl=null,t)throw Error(i(300));o===null||Xo||(o=o.dependencies,o!==null&&wc(o)&&(Xo=!0))}function mp(o,t,l,s){Ie=o;var f=0;do{if(nl&&(tl=null),li=0,nl=!1,25<=f)throw Error(i(301));if(f+=1,Jo=ko=null,o.updateQueue!=null){var b=o.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}M.H=Jp,b=t(l,s)}while(nl);return b}function O2(){var o=M.H,t=o.useState()[0];return t=typeof t.then=="function"?ii(t):t,o=o.useState()[0],(ko!==null?ko.memoizedState:null)!==o&&(Ie.flags|=1024),t}function mu(){var o=$c!==0;return $c=0,o}function hu(o,t,l){t.updateQueue=o.updateQueue,t.flags&=-2053,o.lanes&=~l}function pu(o){if(Oc){for(o=o.memoizedState;o!==null;){var t=o.queue;t!==null&&(t.pending=null),o=o.next}Oc=!1}qt=0,Jo=ko=Ie=null,nl=!1,li=$c=0,tl=null}function On(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jo===null?Ie.memoizedState=Jo=o:Jo=Jo.next=o,Jo}function Zo(){if(ko===null){var o=Ie.alternate;o=o!==null?o.memoizedState:null}else o=ko.next;var t=Jo===null?Ie.memoizedState:Jo.next;if(t!==null)Jo=t,ko=o;else{if(o===null)throw Ie.alternate===null?Error(i(467)):Error(i(310));ko=o,o={memoizedState:ko.memoizedState,baseState:ko.baseState,baseQueue:ko.baseQueue,queue:ko.queue,next:null},Jo===null?Ie.memoizedState=Jo=o:Jo=Jo.next=o}return Jo}function Nc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ii(o){var t=li;return li+=1,tl===null&&(tl=[]),o=rp(tl,o,t),t=Ie,(Jo===null?t.memoizedState:Jo.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Yp:Au),o}function Rc(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return ii(o);if(o.$$typeof===w)return bn(o)}throw Error(i(438,String(o)))}function ku(o){var t=null,l=Ie.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var s=Ie.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(f){return f.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Nc(),Ie.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(o),s=0;s<o;s++)l[s]=Ke;return t.index++,l}function Zt(o,t){return typeof t=="function"?t(o):t}function Bc(o){var t=Zo();return vu(t,ko,o)}function vu(o,t,l){var s=o.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=l;var f=o.baseQueue,b=s.pending;if(b!==null){if(f!==null){var k=f.next;f.next=b.next,b.next=k}t.baseQueue=f=b,s.pending=null}if(b=o.baseState,f===null)o.memoizedState=b;else{t=f.next;var x=k=null,A=null,F=t,Y=!1;do{var Q=F.lane&-536870913;if(Q!==F.lane?(Je&Q)===Q:(qt&Q)===Q){var V=F.revertLane;if(V===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),Q===Xa&&(Y=!0);else if((qt&V)===V){F=F.next,V===Xa&&(Y=!0);continue}else Q={lane:0,revertLane:F.revertLane,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},A===null?(x=A=Q,k=b):A=A.next=Q,Ie.lanes|=V,Cr|=V;Q=F.action,ma&&l(b,Q),b=F.hasEagerState?F.eagerState:l(b,Q)}else V={lane:Q,revertLane:F.revertLane,gesture:F.gesture,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},A===null?(x=A=V,k=b):A=A.next=V,Ie.lanes|=Q,Cr|=Q;F=F.next}while(F!==null&&F!==t);if(A===null?k=b:A.next=x,!Yn(b,o.memoizedState)&&(Xo=!0,Y&&(l=Wa,l!==null)))throw l;o.memoizedState=b,o.baseState=k,o.baseQueue=A,s.lastRenderedState=b}return f===null&&(s.lanes=0),[o.memoizedState,s.dispatch]}function gu(o){var t=Zo(),l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=o;var s=l.dispatch,f=l.pending,b=t.memoizedState;if(f!==null){l.pending=null;var k=f=f.next;do b=o(b,k.action),k=k.next;while(k!==f);Yn(b,t.memoizedState)||(Xo=!0),t.memoizedState=b,t.baseQueue===null&&(t.baseState=b),l.lastRenderedState=b}return[b,s]}function hp(o,t,l){var s=Ie,f=Zo(),b=Qe;if(b){if(l===void 0)throw Error(i(407));l=l()}else l=t();var k=!Yn((ko||f).memoizedState,l);if(k&&(f.memoizedState=l,Xo=!0),f=f.queue,yu(vp.bind(null,s,f,o),[o]),f.getSnapshot!==t||k||Jo!==null&&Jo.memoizedState.tag&1){if(s.flags|=2048,rl(9,{destroy:void 0},kp.bind(null,s,f,l,t),null),xo===null)throw Error(i(349));b||(qt&127)!==0||pp(s,t,l)}return l}function pp(o,t,l){o.flags|=16384,o={getSnapshot:t,value:l},t=Ie.updateQueue,t===null?(t=Nc(),Ie.updateQueue=t,t.stores=[o]):(l=t.stores,l===null?t.stores=[o]:l.push(o))}function kp(o,t,l,s){t.value=l,t.getSnapshot=s,gp(t)&&_p(o)}function vp(o,t,l){return l(function(){gp(t)&&_p(o)})}function gp(o){var t=o.getSnapshot;o=o.value;try{var l=t();return!Yn(o,l)}catch{return!0}}function _p(o){var t=aa(o,2);t!==null&&Vn(t,o,2)}function _u(o){var t=On();if(typeof o=="function"){var l=o;if(o=l(),ma){Lo(!0);try{l()}finally{Lo(!1)}}}return t.memoizedState=t.baseState=o,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:o},t}function xp(o,t,l,s){return o.baseState=l,vu(o,ko,typeof s=="function"?s:Zt)}function $2(o,t,l,s,f){if(Ic(o))throw Error(i(485));if(o=t.action,o!==null){var b={payload:f,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){b.listeners.push(k)}};M.T!==null?l(!0):b.isTransition=!1,s(b),l=t.pending,l===null?(b.next=t.pending=b,yp(t,b)):(b.next=l.next,t.pending=l.next=b)}}function yp(o,t){var l=t.action,s=t.payload,f=o.state;if(t.isTransition){var b=M.T,k={};M.T=k;try{var x=l(f,s),A=M.S;A!==null&&A(k,x),wp(o,t,x)}catch(F){xu(o,t,F)}finally{b!==null&&k.types!==null&&(b.types=k.types),M.T=b}}else try{b=l(f,s),wp(o,t,b)}catch(F){xu(o,t,F)}}function wp(o,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){zp(o,t,s)},function(s){return xu(o,t,s)}):zp(o,t,l)}function zp(o,t,l){t.status="fulfilled",t.value=l,Sp(t),o.state=l,t=o.pending,t!==null&&(l=t.next,l===t?o.pending=null:(l=l.next,t.next=l,yp(o,l)))}function xu(o,t,l){var s=o.pending;if(o.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=l,Sp(t),t=t.next;while(t!==s)}o.action=null}function Sp(o){o=o.listeners;for(var t=0;t<o.length;t++)(0,o[t])()}function jp(o,t){return t}function Tp(o,t){if(Qe){var l=xo.formState;if(l!==null){e:{var s=Ie;if(Qe){if(wo){o:{for(var f=wo,b=kt;f.nodeType!==8;){if(!b){f=null;break o}if(f=gt(f.nextSibling),f===null){f=null;break o}}b=f.data,f=b==="F!"||b==="F"?f:null}if(f){wo=gt(f.nextSibling),s=f.data==="F!";break e}}_r(s)}s=!1}s&&(t=l[0])}}return l=On(),l.memoizedState=l.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jp,lastRenderedState:t},l.queue=s,l=Zp.bind(null,Ie,s),s.dispatch=l,s=_u(!1),b=Tu.bind(null,Ie,!1,s.queue),s=On(),f={state:t,dispatch:null,action:o,pending:null},s.queue=f,l=$2.bind(null,Ie,f,b,l),f.dispatch=l,s.memoizedState=o,[t,l,!1]}function Ap(o){var t=Zo();return Cp(t,ko,o)}function Cp(o,t,l){if(t=vu(o,t,jp)[0],o=Bc(Zt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=ii(t)}catch(k){throw k===Qa?jc:k}else s=t;t=Zo();var f=t.queue,b=f.dispatch;return l!==t.memoizedState&&(Ie.flags|=2048,rl(9,{destroy:void 0},N2.bind(null,f,l),null)),[s,b,o]}function N2(o,t){o.action=t}function Ep(o){var t=Zo(),l=ko;if(l!==null)return Cp(t,l,o);Zo(),t=t.memoizedState,l=Zo();var s=l.queue.dispatch;return l.memoizedState=o,[t,s,!1]}function rl(o,t,l,s){return o={tag:o,create:l,deps:s,inst:t,next:null},t=Ie.updateQueue,t===null&&(t=Nc(),Ie.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=o.next=o:(s=l.next,l.next=o,o.next=s,t.lastEffect=o),o}function Lp(){return Zo().memoizedState}function Dc(o,t,l,s){var f=On();Ie.flags|=o,f.memoizedState=rl(1|t,{destroy:void 0},l,s===void 0?null:s)}function Mc(o,t,l,s){var f=Zo();s=s===void 0?null:s;var b=f.memoizedState.inst;ko!==null&&s!==null&&fu(s,ko.memoizedState.deps)?f.memoizedState=rl(t,b,l,s):(Ie.flags|=o,f.memoizedState=rl(1|t,b,l,s))}function Op(o,t){Dc(8390656,8,o,t)}function yu(o,t){Mc(2048,8,o,t)}function R2(o){Ie.flags|=4;var t=Ie.updateQueue;if(t===null)t=Nc(),Ie.updateQueue=t,t.events=[o];else{var l=t.events;l===null?t.events=[o]:l.push(o)}}function $p(o){var t=Zo().memoizedState;return R2({ref:t,nextImpl:o}),function(){if((io&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Np(o,t){return Mc(4,2,o,t)}function Rp(o,t){return Mc(4,4,o,t)}function Bp(o,t){if(typeof t=="function"){o=o();var l=t(o);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return o=o(),t.current=o,function(){t.current=null}}function Dp(o,t,l){l=l!=null?l.concat([o]):null,Mc(4,4,Bp.bind(null,t,o),l)}function wu(){}function Mp(o,t){var l=Zo();t=t===void 0?null:t;var s=l.memoizedState;return t!==null&&fu(t,s[1])?s[0]:(l.memoizedState=[o,t],o)}function Ip(o,t){var l=Zo();t=t===void 0?null:t;var s=l.memoizedState;if(t!==null&&fu(t,s[1]))return s[0];if(s=o(),ma){Lo(!0);try{o()}finally{Lo(!1)}}return l.memoizedState=[s,t],s}function zu(o,t,l){return l===void 0||(qt&1073741824)!==0&&(Je&261930)===0?o.memoizedState=t:(o.memoizedState=l,o=Uk(),Ie.lanes|=o,Cr|=o,l)}function Up(o,t,l,s){return Yn(l,t)?l:ol.current!==null?(o=zu(o,l,s),Yn(o,t)||(Xo=!0),o):(qt&42)===0||(qt&1073741824)!==0&&(Je&261930)===0?(Xo=!0,o.memoizedState=l):(o=Uk(),Ie.lanes|=o,Cr|=o,t)}function Fp(o,t,l,s,f){var b=G.p;G.p=b!==0&&8>b?b:8;var k=M.T,x={};M.T=x,Tu(o,!1,t,l);try{var A=f(),F=M.S;if(F!==null&&F(x,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var Y=E2(A,s);ci(o,t,Y,ot(o))}else ci(o,t,s,ot(o))}catch(Q){ci(o,t,{then:function(){},status:"rejected",reason:Q},ot())}finally{G.p=b,k!==null&&x.types!==null&&(k.types=x.types),M.T=k}}function B2(){}function Su(o,t,l,s){if(o.tag!==5)throw Error(i(476));var f=Hp(o).queue;Fp(o,f,t,ce,l===null?B2:function(){return Vp(o),l(s)})}function Hp(o){var t=o.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:ce},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:l},next:null},o.memoizedState=t,o=o.alternate,o!==null&&(o.memoizedState=t),t}function Vp(o){var t=Hp(o);t.next===null&&(t=o.alternate.memoizedState),ci(o,t.next.queue,{},ot())}function ju(){return bn(Si)}function Kp(){return Zo().memoizedState}function qp(){return Zo().memoizedState}function D2(o){for(var t=o.return;t!==null;){switch(t.tag){case 24:case 3:var l=ot();o=wr(l);var s=zr(t,o,l);s!==null&&(Vn(s,t,l),ti(s,t,l)),t={cache:ou()},o.payload=t;return}t=t.return}}function M2(o,t,l){var s=ot();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ic(o)?Pp(t,l):(l=Kd(o,t,l,s),l!==null&&(Vn(l,o,s),Gp(l,t,s)))}function Zp(o,t,l){var s=ot();ci(o,t,l,s)}function ci(o,t,l,s){var f={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ic(o))Pp(t,f);else{var b=o.alternate;if(o.lanes===0&&(b===null||b.lanes===0)&&(b=t.lastRenderedReducer,b!==null))try{var k=t.lastRenderedState,x=b(k,l);if(f.hasEagerState=!0,f.eagerState=x,Yn(x,k))return gc(o,t,f,0),xo===null&&vc(),!1}catch{}if(l=Kd(o,t,f,s),l!==null)return Vn(l,o,s),Gp(l,t,s),!0}return!1}function Tu(o,t,l,s){if(s={lane:2,revertLane:af(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ic(o)){if(t)throw Error(i(479))}else t=Kd(o,l,s,2),t!==null&&Vn(t,o,2)}function Ic(o){var t=o.alternate;return o===Ie||t!==null&&t===Ie}function Pp(o,t){nl=Oc=!0;var l=o.pending;l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t}function Gp(o,t,l){if((l&4194048)!==0){var s=t.lanes;s&=o.pendingLanes,l|=s,t.lanes=l,Qm(o,l)}}var si={readContext:bn,use:Rc,useCallback:Do,useContext:Do,useEffect:Do,useImperativeHandle:Do,useLayoutEffect:Do,useInsertionEffect:Do,useMemo:Do,useReducer:Do,useRef:Do,useState:Do,useDebugValue:Do,useDeferredValue:Do,useTransition:Do,useSyncExternalStore:Do,useId:Do,useHostTransitionStatus:Do,useFormState:Do,useActionState:Do,useOptimistic:Do,useMemoCache:Do,useCacheRefresh:Do};si.useEffectEvent=Do;var Yp={readContext:bn,use:Rc,useCallback:function(o,t){return On().memoizedState=[o,t===void 0?null:t],o},useContext:bn,useEffect:Op,useImperativeHandle:function(o,t,l){l=l!=null?l.concat([o]):null,Dc(4194308,4,Bp.bind(null,t,o),l)},useLayoutEffect:function(o,t){return Dc(4194308,4,o,t)},useInsertionEffect:function(o,t){Dc(4,2,o,t)},useMemo:function(o,t){var l=On();t=t===void 0?null:t;var s=o();if(ma){Lo(!0);try{o()}finally{Lo(!1)}}return l.memoizedState=[s,t],s},useReducer:function(o,t,l){var s=On();if(l!==void 0){var f=l(t);if(ma){Lo(!0);try{l(t)}finally{Lo(!1)}}}else f=t;return s.memoizedState=s.baseState=f,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:f},s.queue=o,o=o.dispatch=M2.bind(null,Ie,o),[s.memoizedState,o]},useRef:function(o){var t=On();return o={current:o},t.memoizedState=o},useState:function(o){o=_u(o);var t=o.queue,l=Zp.bind(null,Ie,t);return t.dispatch=l,[o.memoizedState,l]},useDebugValue:wu,useDeferredValue:function(o,t){var l=On();return zu(l,o,t)},useTransition:function(){var o=_u(!1);return o=Fp.bind(null,Ie,o.queue,!0,!1),On().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,t,l){var s=Ie,f=On();if(Qe){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),xo===null)throw Error(i(349));(Je&127)!==0||pp(s,t,l)}f.memoizedState=l;var b={value:l,getSnapshot:t};return f.queue=b,Op(vp.bind(null,s,b,o),[o]),s.flags|=2048,rl(9,{destroy:void 0},kp.bind(null,s,b,l,t),null),l},useId:function(){var o=On(),t=xo.identifierPrefix;if(Qe){var l=Ot,s=Lt;l=(s&~(1<<32-Ln(s)-1)).toString(32)+l,t="_"+t+"R_"+l,l=$c++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=L2++,t="_"+t+"r_"+l.toString(32)+"_";return o.memoizedState=t},useHostTransitionStatus:ju,useFormState:Tp,useActionState:Tp,useOptimistic:function(o){var t=On();t.memoizedState=t.baseState=o;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Tu.bind(null,Ie,!0,l),l.dispatch=t,[o,t]},useMemoCache:ku,useCacheRefresh:function(){return On().memoizedState=D2.bind(null,Ie)},useEffectEvent:function(o){var t=On(),l={impl:o};return t.memoizedState=l,function(){if((io&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},Au={readContext:bn,use:Rc,useCallback:Mp,useContext:bn,useEffect:yu,useImperativeHandle:Dp,useInsertionEffect:Np,useLayoutEffect:Rp,useMemo:Ip,useReducer:Bc,useRef:Lp,useState:function(){return Bc(Zt)},useDebugValue:wu,useDeferredValue:function(o,t){var l=Zo();return Up(l,ko.memoizedState,o,t)},useTransition:function(){var o=Bc(Zt)[0],t=Zo().memoizedState;return[typeof o=="boolean"?o:ii(o),t]},useSyncExternalStore:hp,useId:Kp,useHostTransitionStatus:ju,useFormState:Ap,useActionState:Ap,useOptimistic:function(o,t){var l=Zo();return xp(l,ko,o,t)},useMemoCache:ku,useCacheRefresh:qp};Au.useEffectEvent=$p;var Jp={readContext:bn,use:Rc,useCallback:Mp,useContext:bn,useEffect:yu,useImperativeHandle:Dp,useInsertionEffect:Np,useLayoutEffect:Rp,useMemo:Ip,useReducer:gu,useRef:Lp,useState:function(){return gu(Zt)},useDebugValue:wu,useDeferredValue:function(o,t){var l=Zo();return ko===null?zu(l,o,t):Up(l,ko.memoizedState,o,t)},useTransition:function(){var o=gu(Zt)[0],t=Zo().memoizedState;return[typeof o=="boolean"?o:ii(o),t]},useSyncExternalStore:hp,useId:Kp,useHostTransitionStatus:ju,useFormState:Ep,useActionState:Ep,useOptimistic:function(o,t){var l=Zo();return ko!==null?xp(l,ko,o,t):(l.baseState=o,[o,l.queue.dispatch])},useMemoCache:ku,useCacheRefresh:qp};Jp.useEffectEvent=$p;function Cu(o,t,l,s){t=o.memoizedState,l=l(s,t),l=l==null?t:v({},t,l),o.memoizedState=l,o.lanes===0&&(o.updateQueue.baseState=l)}var Eu={enqueueSetState:function(o,t,l){o=o._reactInternals;var s=ot(),f=wr(s);f.payload=t,l!=null&&(f.callback=l),t=zr(o,f,s),t!==null&&(Vn(t,o,s),ti(t,o,s))},enqueueReplaceState:function(o,t,l){o=o._reactInternals;var s=ot(),f=wr(s);f.tag=1,f.payload=t,l!=null&&(f.callback=l),t=zr(o,f,s),t!==null&&(Vn(t,o,s),ti(t,o,s))},enqueueForceUpdate:function(o,t){o=o._reactInternals;var l=ot(),s=wr(l);s.tag=2,t!=null&&(s.callback=t),t=zr(o,s,l),t!==null&&(Vn(t,o,l),ti(t,o,l))}};function Xp(o,t,l,s,f,b,k){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(s,b,k):t.prototype&&t.prototype.isPureReactComponent?!Yl(l,s)||!Yl(f,b):!0}function Wp(o,t,l,s){o=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,s),t.state!==o&&Eu.enqueueReplaceState(t,t.state,null)}function ha(o,t){var l=t;if("ref"in t){l={};for(var s in t)s!=="ref"&&(l[s]=t[s])}if(o=o.defaultProps){l===t&&(l=v({},l));for(var f in o)l[f]===void 0&&(l[f]=o[f])}return l}function Qp(o){kc(o)}function ek(o){console.error(o)}function ok(o){kc(o)}function Uc(o,t){try{var l=o.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function nk(o,t,l){try{var s=o.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Lu(o,t,l){return l=wr(l),l.tag=3,l.payload={element:null},l.callback=function(){Uc(o,t)},l}function tk(o){return o=wr(o),o.tag=3,o}function rk(o,t,l,s){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var b=s.value;o.payload=function(){return f(b)},o.callback=function(){nk(t,l,s)}}var k=l.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(o.callback=function(){nk(t,l,s),typeof f!="function"&&(Er===null?Er=new Set([this]):Er.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function I2(o,t,l,s,f){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=l.alternate,t!==null&&Ja(t,l,f,!0),l=Xn.current,l!==null){switch(l.tag){case 31:case 13:return vt===null?Wc():l.alternate===null&&Mo===0&&(Mo=3),l.flags&=-257,l.flags|=65536,l.lanes=f,s===Tc?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([s]):t.add(s),nf(o,s,f)),!1;case 22:return l.flags|=65536,s===Tc?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([s]):l.add(s)),nf(o,s,f)),!1}throw Error(i(435,l.tag))}return nf(o,s,f),Wc(),!1}if(Qe)return t=Xn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=f,s!==Jd&&(o=Error(i(422),{cause:s}),Wl(mt(o,l)))):(s!==Jd&&(t=Error(i(423),{cause:s}),Wl(mt(t,l))),o=o.current.alternate,o.flags|=65536,f&=-f,o.lanes|=f,s=mt(s,l),f=Lu(o.stateNode,s,f),iu(o,f),Mo!==4&&(Mo=2)),!1;var b=Error(i(520),{cause:s});if(b=mt(b,l),ki===null?ki=[b]:ki.push(b),Mo!==4&&(Mo=2),t===null)return!0;s=mt(s,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,o=f&-f,l.lanes|=o,o=Lu(l.stateNode,s,o),iu(l,o),!1;case 1:if(t=l.type,b=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Er===null||!Er.has(b))))return l.flags|=65536,f&=-f,l.lanes|=f,f=tk(f),rk(f,o,l,s),iu(l,f),!1}l=l.return}while(l!==null);return!1}var Ou=Error(i(461)),Xo=!1;function mn(o,t,l,s){t.child=o===null?cp(t,null,l,s):ba(t,o.child,l,s)}function ak(o,t,l,s,f){l=l.render;var b=t.ref;if("ref"in s){var k={};for(var x in s)x!=="ref"&&(k[x]=s[x])}else k=s;return sa(t),s=bu(o,t,l,k,b,f),x=mu(),o!==null&&!Xo?(hu(o,t,f),Pt(o,t,f)):(Qe&&x&&Gd(t),t.flags|=1,mn(o,t,s,f),t.child)}function lk(o,t,l,s,f){if(o===null){var b=l.type;return typeof b=="function"&&!qd(b)&&b.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=b,ik(o,t,b,s,f)):(o=xc(l.type,null,s,t,t.mode,f),o.ref=t.ref,o.return=t,t.child=o)}if(b=o.child,!Uu(o,f)){var k=b.memoizedProps;if(l=l.compare,l=l!==null?l:Yl,l(k,s)&&o.ref===t.ref)return Pt(o,t,f)}return t.flags|=1,o=Ft(b,s),o.ref=t.ref,o.return=t,t.child=o}function ik(o,t,l,s,f){if(o!==null){var b=o.memoizedProps;if(Yl(b,s)&&o.ref===t.ref)if(Xo=!1,t.pendingProps=s=b,Uu(o,f))(o.flags&131072)!==0&&(Xo=!0);else return t.lanes=o.lanes,Pt(o,t,f)}return $u(o,t,l,s,f)}function ck(o,t,l,s){var f=s.children,b=o!==null?o.memoizedState:null;if(o===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(b=b!==null?b.baseLanes|l:l,o!==null){for(s=t.child=o.child,f=0;s!==null;)f=f|s.lanes|s.childLanes,s=s.sibling;s=f&~b}else s=0,t.child=null;return sk(o,t,b,l,s)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},o!==null&&Sc(t,b!==null?b.cachePool:null),b!==null?up(t,b):su(),fp(t);else return s=t.lanes=536870912,sk(o,t,b!==null?b.baseLanes|l:l,l,s)}else b!==null?(Sc(t,b.cachePool),up(t,b),jr(),t.memoizedState=null):(o!==null&&Sc(t,null),su(),jr());return mn(o,t,f,l),t.child}function di(o,t){return o!==null&&o.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sk(o,t,l,s,f){var b=tu();return b=b===null?null:{parent:Yo._currentValue,pool:b},t.memoizedState={baseLanes:l,cachePool:b},o!==null&&Sc(t,null),su(),fp(t),o!==null&&Ja(o,t,s,!0),t.childLanes=f,null}function Fc(o,t){return t=Vc({mode:t.mode,children:t.children},o.mode),t.ref=o.ref,o.child=t,t.return=o,t}function dk(o,t,l){return ba(t,o.child,null,l),o=Fc(t,t.pendingProps),o.flags|=2,Wn(t),t.memoizedState=null,o}function U2(o,t,l){var s=t.pendingProps,f=(t.flags&128)!==0;if(t.flags&=-129,o===null){if(Qe){if(s.mode==="hidden")return o=Fc(t,s),t.lanes=536870912,di(null,o);if(uu(t),(o=wo)?(o=yv(o,kt),o=o!==null&&o.data==="&"?o:null,o!==null&&(t.memoizedState={dehydrated:o,treeContext:vr!==null?{id:Lt,overflow:Ot}:null,retryLane:536870912,hydrationErrors:null},l=Ph(o),l.return=t,t.child=l,fn=t,wo=null)):o=null,o===null)throw _r(t);return t.lanes=536870912,null}return Fc(t,s)}var b=o.memoizedState;if(b!==null){var k=b.dehydrated;if(uu(t),f)if(t.flags&256)t.flags&=-257,t=dk(o,t,l);else if(t.memoizedState!==null)t.child=o.child,t.flags|=128,t=null;else throw Error(i(558));else if(Xo||Ja(o,t,l,!1),f=(l&o.childLanes)!==0,Xo||f){if(s=xo,s!==null&&(k=eh(s,l),k!==0&&k!==b.retryLane))throw b.retryLane=k,aa(o,k),Vn(s,o,k),Ou;Wc(),t=dk(o,t,l)}else o=b.treeContext,wo=gt(k.nextSibling),fn=t,Qe=!0,gr=null,kt=!1,o!==null&&Jh(t,o),t=Fc(t,s),t.flags|=4096;return t}return o=Ft(o.child,{mode:s.mode,children:s.children}),o.ref=t.ref,t.child=o,o.return=t,o}function Hc(o,t){var l=t.ref;if(l===null)o!==null&&o.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(o===null||o.ref!==l)&&(t.flags|=4194816)}}function $u(o,t,l,s,f){return sa(t),l=bu(o,t,l,s,void 0,f),s=mu(),o!==null&&!Xo?(hu(o,t,f),Pt(o,t,f)):(Qe&&s&&Gd(t),t.flags|=1,mn(o,t,l,f),t.child)}function uk(o,t,l,s,f,b){return sa(t),t.updateQueue=null,l=mp(t,s,l,f),bp(o),s=mu(),o!==null&&!Xo?(hu(o,t,b),Pt(o,t,b)):(Qe&&s&&Gd(t),t.flags|=1,mn(o,t,l,b),t.child)}function fk(o,t,l,s,f){if(sa(t),t.stateNode===null){var b=Za,k=l.contextType;typeof k=="object"&&k!==null&&(b=bn(k)),b=new l(s,b),t.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Eu,t.stateNode=b,b._reactInternals=t,b=t.stateNode,b.props=s,b.state=t.memoizedState,b.refs={},au(t),k=l.contextType,b.context=typeof k=="object"&&k!==null?bn(k):Za,b.state=t.memoizedState,k=l.getDerivedStateFromProps,typeof k=="function"&&(Cu(t,l,k,s),b.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(k=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),k!==b.state&&Eu.enqueueReplaceState(b,b.state,null),ai(t,s,b,f),ri(),b.state=t.memoizedState),typeof b.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(o===null){b=t.stateNode;var x=t.memoizedProps,A=ha(l,x);b.props=A;var F=b.context,Y=l.contextType;k=Za,typeof Y=="object"&&Y!==null&&(k=bn(Y));var Q=l.getDerivedStateFromProps;Y=typeof Q=="function"||typeof b.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,Y||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(x||F!==k)&&Wp(t,b,s,k),yr=!1;var V=t.memoizedState;b.state=V,ai(t,s,b,f),ri(),F=t.memoizedState,x||V!==F||yr?(typeof Q=="function"&&(Cu(t,l,Q,s),F=t.memoizedState),(A=yr||Xp(t,l,A,s,V,F,k))?(Y||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(t.flags|=4194308)):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=F),b.props=s,b.state=F,b.context=k,s=A):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{b=t.stateNode,lu(o,t),k=t.memoizedProps,Y=ha(l,k),b.props=Y,Q=t.pendingProps,V=b.context,F=l.contextType,A=Za,typeof F=="object"&&F!==null&&(A=bn(F)),x=l.getDerivedStateFromProps,(F=typeof x=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(k!==Q||V!==A)&&Wp(t,b,s,A),yr=!1,V=t.memoizedState,b.state=V,ai(t,s,b,f),ri();var Z=t.memoizedState;k!==Q||V!==Z||yr||o!==null&&o.dependencies!==null&&wc(o.dependencies)?(typeof x=="function"&&(Cu(t,l,x,s),Z=t.memoizedState),(Y=yr||Xp(t,l,Y,s,V,Z,A)||o!==null&&o.dependencies!==null&&wc(o.dependencies))?(F||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(s,Z,A),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(s,Z,A)),typeof b.componentDidUpdate=="function"&&(t.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof b.componentDidUpdate!="function"||k===o.memoizedProps&&V===o.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&V===o.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=Z),b.props=s,b.state=Z,b.context=A,s=Y):(typeof b.componentDidUpdate!="function"||k===o.memoizedProps&&V===o.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&V===o.memoizedState||(t.flags|=1024),s=!1)}return b=s,Hc(o,t),s=(t.flags&128)!==0,b||s?(b=t.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:b.render(),t.flags|=1,o!==null&&s?(t.child=ba(t,o.child,null,f),t.child=ba(t,null,l,f)):mn(o,t,l,f),t.memoizedState=b.state,o=t.child):o=Pt(o,t,f),o}function bk(o,t,l,s){return ia(),t.flags|=256,mn(o,t,l,s),t.child}var Nu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ru(o){return{baseLanes:o,cachePool:np()}}function Bu(o,t,l){return o=o!==null?o.childLanes&~l:0,t&&(o|=et),o}function mk(o,t,l){var s=t.pendingProps,f=!1,b=(t.flags&128)!==0,k;if((k=b)||(k=o!==null&&o.memoizedState===null?!1:(qo.current&2)!==0),k&&(f=!0,t.flags&=-129),k=(t.flags&32)!==0,t.flags&=-33,o===null){if(Qe){if(f?Sr(t):jr(),(o=wo)?(o=yv(o,kt),o=o!==null&&o.data!=="&"?o:null,o!==null&&(t.memoizedState={dehydrated:o,treeContext:vr!==null?{id:Lt,overflow:Ot}:null,retryLane:536870912,hydrationErrors:null},l=Ph(o),l.return=t,t.child=l,fn=t,wo=null)):o=null,o===null)throw _r(t);return gf(o)?t.lanes=32:t.lanes=536870912,null}var x=s.children;return s=s.fallback,f?(jr(),f=t.mode,x=Vc({mode:"hidden",children:x},f),s=la(s,f,l,null),x.return=t,s.return=t,x.sibling=s,t.child=x,s=t.child,s.memoizedState=Ru(l),s.childLanes=Bu(o,k,l),t.memoizedState=Nu,di(null,s)):(Sr(t),Du(t,x))}var A=o.memoizedState;if(A!==null&&(x=A.dehydrated,x!==null)){if(b)t.flags&256?(Sr(t),t.flags&=-257,t=Mu(o,t,l)):t.memoizedState!==null?(jr(),t.child=o.child,t.flags|=128,t=null):(jr(),x=s.fallback,f=t.mode,s=Vc({mode:"visible",children:s.children},f),x=la(x,f,l,null),x.flags|=2,s.return=t,x.return=t,s.sibling=x,t.child=s,ba(t,o.child,null,l),s=t.child,s.memoizedState=Ru(l),s.childLanes=Bu(o,k,l),t.memoizedState=Nu,t=di(null,s));else if(Sr(t),gf(x)){if(k=x.nextSibling&&x.nextSibling.dataset,k)var F=k.dgst;k=F,s=Error(i(419)),s.stack="",s.digest=k,Wl({value:s,source:null,stack:null}),t=Mu(o,t,l)}else if(Xo||Ja(o,t,l,!1),k=(l&o.childLanes)!==0,Xo||k){if(k=xo,k!==null&&(s=eh(k,l),s!==0&&s!==A.retryLane))throw A.retryLane=s,aa(o,s),Vn(k,o,s),Ou;vf(x)||Wc(),t=Mu(o,t,l)}else vf(x)?(t.flags|=192,t.child=o.child,t=null):(o=A.treeContext,wo=gt(x.nextSibling),fn=t,Qe=!0,gr=null,kt=!1,o!==null&&Jh(t,o),t=Du(t,s.children),t.flags|=4096);return t}return f?(jr(),x=s.fallback,f=t.mode,A=o.child,F=A.sibling,s=Ft(A,{mode:"hidden",children:s.children}),s.subtreeFlags=A.subtreeFlags&65011712,F!==null?x=Ft(F,x):(x=la(x,f,l,null),x.flags|=2),x.return=t,s.return=t,s.sibling=x,t.child=s,di(null,s),s=t.child,x=o.child.memoizedState,x===null?x=Ru(l):(f=x.cachePool,f!==null?(A=Yo._currentValue,f=f.parent!==A?{parent:A,pool:A}:f):f=np(),x={baseLanes:x.baseLanes|l,cachePool:f}),s.memoizedState=x,s.childLanes=Bu(o,k,l),t.memoizedState=Nu,di(o.child,s)):(Sr(t),l=o.child,o=l.sibling,l=Ft(l,{mode:"visible",children:s.children}),l.return=t,l.sibling=null,o!==null&&(k=t.deletions,k===null?(t.deletions=[o],t.flags|=16):k.push(o)),t.child=l,t.memoizedState=null,l)}function Du(o,t){return t=Vc({mode:"visible",children:t},o.mode),t.return=o,o.child=t}function Vc(o,t){return o=Jn(22,o,null,t),o.lanes=0,o}function Mu(o,t,l){return ba(t,o.child,null,l),o=Du(t,t.pendingProps.children),o.flags|=2,t.memoizedState=null,o}function hk(o,t,l){o.lanes|=t;var s=o.alternate;s!==null&&(s.lanes|=t),Qd(o.return,t,l)}function Iu(o,t,l,s,f,b){var k=o.memoizedState;k===null?o.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:f,treeForkCount:b}:(k.isBackwards=t,k.rendering=null,k.renderingStartTime=0,k.last=s,k.tail=l,k.tailMode=f,k.treeForkCount=b)}function pk(o,t,l){var s=t.pendingProps,f=s.revealOrder,b=s.tail;s=s.children;var k=qo.current,x=(k&2)!==0;if(x?(k=k&1|2,t.flags|=128):k&=1,te(qo,k),mn(o,t,s,l),s=Qe?Xl:0,!x&&o!==null&&(o.flags&128)!==0)e:for(o=t.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&hk(o,l,t);else if(o.tag===19)hk(o,l,t);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(f){case"forwards":for(l=t.child,f=null;l!==null;)o=l.alternate,o!==null&&Lc(o)===null&&(f=l),l=l.sibling;l=f,l===null?(f=t.child,t.child=null):(f=l.sibling,l.sibling=null),Iu(t,!1,f,l,b,s);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=t.child,t.child=null;f!==null;){if(o=f.alternate,o!==null&&Lc(o)===null){t.child=f;break}o=f.sibling,f.sibling=l,l=f,f=o}Iu(t,!0,l,null,b,s);break;case"together":Iu(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function Pt(o,t,l){if(o!==null&&(t.dependencies=o.dependencies),Cr|=t.lanes,(l&t.childLanes)===0)if(o!==null){if(Ja(o,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(o!==null&&t.child!==o.child)throw Error(i(153));if(t.child!==null){for(o=t.child,l=Ft(o,o.pendingProps),t.child=l,l.return=t;o.sibling!==null;)o=o.sibling,l=l.sibling=Ft(o,o.pendingProps),l.return=t;l.sibling=null}return t.child}function Uu(o,t){return(o.lanes&t)!==0?!0:(o=o.dependencies,!!(o!==null&&wc(o)))}function F2(o,t,l){switch(t.tag){case 3:Vo(t,t.stateNode.containerInfo),xr(t,Yo,o.memoizedState.cache),ia();break;case 27:case 5:Dt(t);break;case 4:Vo(t,t.stateNode.containerInfo);break;case 10:xr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,uu(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(Sr(t),t.flags|=128,null):(l&t.child.childLanes)!==0?mk(o,t,l):(Sr(t),o=Pt(o,t,l),o!==null?o.sibling:null);Sr(t);break;case 19:var f=(o.flags&128)!==0;if(s=(l&t.childLanes)!==0,s||(Ja(o,t,l,!1),s=(l&t.childLanes)!==0),f){if(s)return pk(o,t,l);t.flags|=128}if(f=t.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),te(qo,qo.current),s)break;return null;case 22:return t.lanes=0,ck(o,t,l,t.pendingProps);case 24:xr(t,Yo,o.memoizedState.cache)}return Pt(o,t,l)}function kk(o,t,l){if(o!==null)if(o.memoizedProps!==t.pendingProps)Xo=!0;else{if(!Uu(o,l)&&(t.flags&128)===0)return Xo=!1,F2(o,t,l);Xo=(o.flags&131072)!==0}else Xo=!1,Qe&&(t.flags&1048576)!==0&&Yh(t,Xl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(o=ua(t.elementType),t.type=o,typeof o=="function")qd(o)?(s=ha(o,s),t.tag=1,t=fk(null,t,o,s,l)):(t.tag=0,t=$u(null,t,o,s,l));else{if(o!=null){var f=o.$$typeof;if(f===N){t.tag=11,t=ak(null,t,o,s,l);break e}else if(f===q){t.tag=14,t=lk(null,t,o,s,l);break e}}throw t=Te(o)||o,Error(i(306,t,""))}}return t;case 0:return $u(o,t,t.type,t.pendingProps,l);case 1:return s=t.type,f=ha(s,t.pendingProps),fk(o,t,s,f,l);case 3:e:{if(Vo(t,t.stateNode.containerInfo),o===null)throw Error(i(387));s=t.pendingProps;var b=t.memoizedState;f=b.element,lu(o,t),ai(t,s,null,l);var k=t.memoizedState;if(s=k.cache,xr(t,Yo,s),s!==b.cache&&eu(t,[Yo],l,!0),ri(),s=k.element,b.isDehydrated)if(b={element:s,isDehydrated:!1,cache:k.cache},t.updateQueue.baseState=b,t.memoizedState=b,t.flags&256){t=bk(o,t,s,l);break e}else if(s!==f){f=mt(Error(i(424)),t),Wl(f),t=bk(o,t,s,l);break e}else for(o=t.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,wo=gt(o.firstChild),fn=t,Qe=!0,gr=null,kt=!0,l=cp(t,null,s,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(ia(),s===f){t=Pt(o,t,l);break e}mn(o,t,s,l)}t=t.child}return t;case 26:return Hc(o,t),o===null?(l=Av(t.type,null,t.pendingProps,null))?t.memoizedState=l:Qe||(l=t.type,o=t.pendingProps,s=as(Re.current).createElement(l),s[un]=t,s[Dn]=o,hn(s,l,o),cn(s),t.stateNode=s):t.memoizedState=Av(t.type,o.memoizedProps,t.pendingProps,o.memoizedState),null;case 27:return Dt(t),o===null&&Qe&&(s=t.stateNode=Sv(t.type,t.pendingProps,Re.current),fn=t,kt=!0,f=wo,Nr(t.type)?(_f=f,wo=gt(s.firstChild)):wo=f),mn(o,t,t.pendingProps.children,l),Hc(o,t),o===null&&(t.flags|=4194304),t.child;case 5:return o===null&&Qe&&((f=s=wo)&&(s=kz(s,t.type,t.pendingProps,kt),s!==null?(t.stateNode=s,fn=t,wo=gt(s.firstChild),kt=!1,f=!0):f=!1),f||_r(t)),Dt(t),f=t.type,b=t.pendingProps,k=o!==null?o.memoizedProps:null,s=b.children,hf(f,b)?s=null:k!==null&&hf(f,k)&&(t.flags|=32),t.memoizedState!==null&&(f=bu(o,t,O2,null,null,l),Si._currentValue=f),Hc(o,t),mn(o,t,s,l),t.child;case 6:return o===null&&Qe&&((o=l=wo)&&(l=vz(l,t.pendingProps,kt),l!==null?(t.stateNode=l,fn=t,wo=null,o=!0):o=!1),o||_r(t)),null;case 13:return mk(o,t,l);case 4:return Vo(t,t.stateNode.containerInfo),s=t.pendingProps,o===null?t.child=ba(t,null,s,l):mn(o,t,s,l),t.child;case 11:return ak(o,t,t.type,t.pendingProps,l);case 7:return mn(o,t,t.pendingProps,l),t.child;case 8:return mn(o,t,t.pendingProps.children,l),t.child;case 12:return mn(o,t,t.pendingProps.children,l),t.child;case 10:return s=t.pendingProps,xr(t,t.type,s.value),mn(o,t,s.children,l),t.child;case 9:return f=t.type._context,s=t.pendingProps.children,sa(t),f=bn(f),s=s(f),t.flags|=1,mn(o,t,s,l),t.child;case 14:return lk(o,t,t.type,t.pendingProps,l);case 15:return ik(o,t,t.type,t.pendingProps,l);case 19:return pk(o,t,l);case 31:return U2(o,t,l);case 22:return ck(o,t,l,t.pendingProps);case 24:return sa(t),s=bn(Yo),o===null?(f=tu(),f===null&&(f=xo,b=ou(),f.pooledCache=b,b.refCount++,b!==null&&(f.pooledCacheLanes|=l),f=b),t.memoizedState={parent:s,cache:f},au(t),xr(t,Yo,f)):((o.lanes&l)!==0&&(lu(o,t),ai(t,null,null,l),ri()),f=o.memoizedState,b=t.memoizedState,f.parent!==s?(f={parent:s,cache:s},t.memoizedState=f,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=f),xr(t,Yo,s)):(s=b.cache,xr(t,Yo,s),s!==f.cache&&eu(t,[Yo],l,!0))),mn(o,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Gt(o){o.flags|=4}function Fu(o,t,l,s,f){if((t=(o.mode&32)!==0)&&(t=!1),t){if(o.flags|=16777216,(f&335544128)===f)if(o.stateNode.complete)o.flags|=8192;else if(Kk())o.flags|=8192;else throw fa=Tc,ru}else o.flags&=-16777217}function vk(o,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!$v(t))if(Kk())o.flags|=8192;else throw fa=Tc,ru}function Kc(o,t){t!==null&&(o.flags|=4),o.flags&16384&&(t=o.tag!==22?Xm():536870912,o.lanes|=t,cl|=t)}function ui(o,t){if(!Qe)switch(o.tailMode){case"hidden":t=o.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?o.tail=null:l.sibling=null;break;case"collapsed":l=o.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?t||o.tail===null?o.tail=null:o.tail.sibling=null:s.sibling=null}}function zo(o){var t=o.alternate!==null&&o.alternate.child===o.child,l=0,s=0;if(t)for(var f=o.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=o,f=f.sibling;else for(f=o.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=o,f=f.sibling;return o.subtreeFlags|=s,o.childLanes=l,t}function H2(o,t,l){var s=t.pendingProps;switch(Yd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zo(t),null;case 1:return zo(t),null;case 3:return l=t.stateNode,s=null,o!==null&&(s=o.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Kt(Yo),yo(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(o===null||o.child===null)&&(Ya(t)?Gt(t):o===null||o.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Xd())),zo(t),null;case 26:var f=t.type,b=t.memoizedState;return o===null?(Gt(t),b!==null?(zo(t),vk(t,b)):(zo(t),Fu(t,f,null,s,l))):b?b!==o.memoizedState?(Gt(t),zo(t),vk(t,b)):(zo(t),t.flags&=-16777217):(o=o.memoizedProps,o!==s&&Gt(t),zo(t),Fu(t,f,o,s,l)),null;case 27:if(Et(t),l=Re.current,f=t.type,o!==null&&t.stateNode!=null)o.memoizedProps!==s&&Gt(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return zo(t),null}o=be.current,Ya(t)?Xh(t):(o=Sv(f,s,l),t.stateNode=o,Gt(t))}return zo(t),null;case 5:if(Et(t),f=t.type,o!==null&&t.stateNode!=null)o.memoizedProps!==s&&Gt(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return zo(t),null}if(b=be.current,Ya(t))Xh(t);else{var k=as(Re.current);switch(b){case 1:b=k.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:b=k.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":b=k.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":b=k.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":b=k.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof s.is=="string"?k.createElement("select",{is:s.is}):k.createElement("select"),s.multiple?b.multiple=!0:s.size&&(b.size=s.size);break;default:b=typeof s.is=="string"?k.createElement(f,{is:s.is}):k.createElement(f)}}b[un]=t,b[Dn]=s;e:for(k=t.child;k!==null;){if(k.tag===5||k.tag===6)b.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===t)break e;for(;k.sibling===null;){if(k.return===null||k.return===t)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}t.stateNode=b;e:switch(hn(b,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Gt(t)}}return zo(t),Fu(t,t.type,o===null?null:o.memoizedProps,t.pendingProps,l),null;case 6:if(o&&t.stateNode!=null)o.memoizedProps!==s&&Gt(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(o=Re.current,Ya(t)){if(o=t.stateNode,l=t.memoizedProps,s=null,f=fn,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}o[un]=t,o=!!(o.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||mv(o.nodeValue,l)),o||_r(t,!0)}else o=as(o).createTextNode(s),o[un]=t,t.stateNode=o}return zo(t),null;case 31:if(l=t.memoizedState,o===null||o.memoizedState!==null){if(s=Ya(t),l!==null){if(o===null){if(!s)throw Error(i(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(557));o[un]=t}else ia(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;zo(t),o=!1}else l=Xd(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=l),o=!0;if(!o)return t.flags&256?(Wn(t),t):(Wn(t),null);if((t.flags&128)!==0)throw Error(i(558))}return zo(t),null;case 13:if(s=t.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(f=Ya(t),s!==null&&s.dehydrated!==null){if(o===null){if(!f)throw Error(i(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[un]=t}else ia(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;zo(t),f=!1}else f=Xd(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=f),f=!0;if(!f)return t.flags&256?(Wn(t),t):(Wn(t),null)}return Wn(t),(t.flags&128)!==0?(t.lanes=l,t):(l=s!==null,o=o!==null&&o.memoizedState!==null,l&&(s=t.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),b=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(b=s.memoizedState.cachePool.pool),b!==f&&(s.flags|=2048)),l!==o&&l&&(t.child.flags|=8192),Kc(t,t.updateQueue),zo(t),null);case 4:return yo(),o===null&&df(t.stateNode.containerInfo),zo(t),null;case 10:return Kt(t.type),zo(t),null;case 19:if(P(qo),s=t.memoizedState,s===null)return zo(t),null;if(f=(t.flags&128)!==0,b=s.rendering,b===null)if(f)ui(s,!1);else{if(Mo!==0||o!==null&&(o.flags&128)!==0)for(o=t.child;o!==null;){if(b=Lc(o),b!==null){for(t.flags|=128,ui(s,!1),o=b.updateQueue,t.updateQueue=o,Kc(t,o),t.subtreeFlags=0,o=l,l=t.child;l!==null;)Zh(l,o),l=l.sibling;return te(qo,qo.current&1|2),Qe&&Ht(t,s.treeForkCount),t.child}o=o.sibling}s.tail!==null&&T()>Yc&&(t.flags|=128,f=!0,ui(s,!1),t.lanes=4194304)}else{if(!f)if(o=Lc(b),o!==null){if(t.flags|=128,f=!0,o=o.updateQueue,t.updateQueue=o,Kc(t,o),ui(s,!0),s.tail===null&&s.tailMode==="hidden"&&!b.alternate&&!Qe)return zo(t),null}else 2*T()-s.renderingStartTime>Yc&&l!==536870912&&(t.flags|=128,f=!0,ui(s,!1),t.lanes=4194304);s.isBackwards?(b.sibling=t.child,t.child=b):(o=s.last,o!==null?o.sibling=b:t.child=b,s.last=b)}return s.tail!==null?(o=s.tail,s.rendering=o,s.tail=o.sibling,s.renderingStartTime=T(),o.sibling=null,l=qo.current,te(qo,f?l&1|2:l&1),Qe&&Ht(t,s.treeForkCount),o):(zo(t),null);case 22:case 23:return Wn(t),du(),s=t.memoizedState!==null,o!==null?o.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(l&536870912)!==0&&(t.flags&128)===0&&(zo(t),t.subtreeFlags&6&&(t.flags|=8192)):zo(t),l=t.updateQueue,l!==null&&Kc(t,l.retryQueue),l=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==l&&(t.flags|=2048),o!==null&&P(da),null;case 24:return l=null,o!==null&&(l=o.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Kt(Yo),zo(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function V2(o,t){switch(Yd(t),t.tag){case 1:return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 3:return Kt(Yo),yo(),o=t.flags,(o&65536)!==0&&(o&128)===0?(t.flags=o&-65537|128,t):null;case 26:case 27:case 5:return Et(t),null;case 31:if(t.memoizedState!==null){if(Wn(t),t.alternate===null)throw Error(i(340));ia()}return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 13:if(Wn(t),o=t.memoizedState,o!==null&&o.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ia()}return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 19:return P(qo),null;case 4:return yo(),null;case 10:return Kt(t.type),null;case 22:case 23:return Wn(t),du(),o!==null&&P(da),o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 24:return Kt(Yo),null;case 25:return null;default:return null}}function gk(o,t){switch(Yd(t),t.tag){case 3:Kt(Yo),yo();break;case 26:case 27:case 5:Et(t);break;case 4:yo();break;case 31:t.memoizedState!==null&&Wn(t);break;case 13:Wn(t);break;case 19:P(qo);break;case 10:Kt(t.type);break;case 22:case 23:Wn(t),du(),o!==null&&P(da);break;case 24:Kt(Yo)}}function fi(o,t){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var f=s.next;l=f;do{if((l.tag&o)===o){s=void 0;var b=l.create,k=l.inst;s=b(),k.destroy=s}l=l.next}while(l!==f)}}catch(x){bo(t,t.return,x)}}function Tr(o,t,l){try{var s=t.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var b=f.next;s=b;do{if((s.tag&o)===o){var k=s.inst,x=k.destroy;if(x!==void 0){k.destroy=void 0,f=t;var A=l,F=x;try{F()}catch(Y){bo(f,A,Y)}}}s=s.next}while(s!==b)}}catch(Y){bo(t,t.return,Y)}}function _k(o){var t=o.updateQueue;if(t!==null){var l=o.stateNode;try{dp(t,l)}catch(s){bo(o,o.return,s)}}}function xk(o,t,l){l.props=ha(o.type,o.memoizedProps),l.state=o.memoizedState;try{l.componentWillUnmount()}catch(s){bo(o,t,s)}}function bi(o,t){try{var l=o.ref;if(l!==null){switch(o.tag){case 26:case 27:case 5:var s=o.stateNode;break;case 30:s=o.stateNode;break;default:s=o.stateNode}typeof l=="function"?o.refCleanup=l(s):l.current=s}}catch(f){bo(o,t,f)}}function $t(o,t){var l=o.ref,s=o.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(f){bo(o,t,f)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){bo(o,t,f)}else l.current=null}function yk(o){var t=o.type,l=o.memoizedProps,s=o.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(f){bo(o,o.return,f)}}function Hu(o,t,l){try{var s=o.stateNode;uz(s,o.type,l,t),s[Dn]=t}catch(f){bo(o,o.return,f)}}function wk(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Nr(o.type)||o.tag===4}function Vu(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||wk(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Nr(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Ku(o,t,l){var s=o.tag;if(s===5||s===6)o=o.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(o,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(o),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=It));else if(s!==4&&(s===27&&Nr(o.type)&&(l=o.stateNode,t=null),o=o.child,o!==null))for(Ku(o,t,l),o=o.sibling;o!==null;)Ku(o,t,l),o=o.sibling}function qc(o,t,l){var s=o.tag;if(s===5||s===6)o=o.stateNode,t?l.insertBefore(o,t):l.appendChild(o);else if(s!==4&&(s===27&&Nr(o.type)&&(l=o.stateNode),o=o.child,o!==null))for(qc(o,t,l),o=o.sibling;o!==null;)qc(o,t,l),o=o.sibling}function zk(o){var t=o.stateNode,l=o.memoizedProps;try{for(var s=o.type,f=t.attributes;f.length;)t.removeAttributeNode(f[0]);hn(t,s,l),t[un]=o,t[Dn]=l}catch(b){bo(o,o.return,b)}}var Yt=!1,Wo=!1,qu=!1,Sk=typeof WeakSet=="function"?WeakSet:Set,sn=null;function K2(o,t){if(o=o.containerInfo,bf=fs,o=Dh(o),Md(o)){if("selectionStart"in o)var l={start:o.selectionStart,end:o.selectionEnd};else e:{l=(l=o.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var f=s.anchorOffset,b=s.focusNode;s=s.focusOffset;try{l.nodeType,b.nodeType}catch{l=null;break e}var k=0,x=-1,A=-1,F=0,Y=0,Q=o,V=null;o:for(;;){for(var Z;Q!==l||f!==0&&Q.nodeType!==3||(x=k+f),Q!==b||s!==0&&Q.nodeType!==3||(A=k+s),Q.nodeType===3&&(k+=Q.nodeValue.length),(Z=Q.firstChild)!==null;)V=Q,Q=Z;for(;;){if(Q===o)break o;if(V===l&&++F===f&&(x=k),V===b&&++Y===s&&(A=k),(Z=Q.nextSibling)!==null)break;Q=V,V=Q.parentNode}Q=Z}l=x===-1||A===-1?null:{start:x,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(mf={focusedElem:o,selectionRange:l},fs=!1,sn=t;sn!==null;)if(t=sn,o=t.child,(t.subtreeFlags&1028)!==0&&o!==null)o.return=t,sn=o;else for(;sn!==null;){switch(t=sn,b=t.alternate,o=t.flags,t.tag){case 0:if((o&4)!==0&&(o=t.updateQueue,o=o!==null?o.events:null,o!==null))for(l=0;l<o.length;l++)f=o[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&b!==null){o=void 0,l=t,f=b.memoizedProps,b=b.memoizedState,s=l.stateNode;try{var ke=ha(l.type,f);o=s.getSnapshotBeforeUpdate(ke,b),s.__reactInternalSnapshotBeforeUpdate=o}catch(Ce){bo(l,l.return,Ce)}}break;case 3:if((o&1024)!==0){if(o=t.stateNode.containerInfo,l=o.nodeType,l===9)kf(o);else if(l===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":kf(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(i(163))}if(o=t.sibling,o!==null){o.return=t.return,sn=o;break}sn=t.return}}function jk(o,t,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:Xt(o,l),s&4&&fi(5,l);break;case 1:if(Xt(o,l),s&4)if(o=l.stateNode,t===null)try{o.componentDidMount()}catch(k){bo(l,l.return,k)}else{var f=ha(l.type,t.memoizedProps);t=t.memoizedState;try{o.componentDidUpdate(f,t,o.__reactInternalSnapshotBeforeUpdate)}catch(k){bo(l,l.return,k)}}s&64&&_k(l),s&512&&bi(l,l.return);break;case 3:if(Xt(o,l),s&64&&(o=l.updateQueue,o!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{dp(o,t)}catch(k){bo(l,l.return,k)}}break;case 27:t===null&&s&4&&zk(l);case 26:case 5:Xt(o,l),t===null&&s&4&&yk(l),s&512&&bi(l,l.return);break;case 12:Xt(o,l);break;case 31:Xt(o,l),s&4&&Ck(o,l);break;case 13:Xt(o,l),s&4&&Ek(o,l),s&64&&(o=l.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(l=Q2.bind(null,l),gz(o,l))));break;case 22:if(s=l.memoizedState!==null||Yt,!s){t=t!==null&&t.memoizedState!==null||Wo,f=Yt;var b=Wo;Yt=s,(Wo=t)&&!b?Wt(o,l,(l.subtreeFlags&8772)!==0):Xt(o,l),Yt=f,Wo=b}break;case 30:break;default:Xt(o,l)}}function Tk(o){var t=o.alternate;t!==null&&(o.alternate=null,Tk(t)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(t=o.stateNode,t!==null&&xd(t)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Ao=null,In=!1;function Jt(o,t,l){for(l=l.child;l!==null;)Ak(o,t,l),l=l.sibling}function Ak(o,t,l){if(To&&typeof To.onCommitFiberUnmount=="function")try{To.onCommitFiberUnmount(Ko,l)}catch{}switch(l.tag){case 26:Wo||$t(l,t),Jt(o,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Wo||$t(l,t);var s=Ao,f=In;Nr(l.type)&&(Ao=l.stateNode,In=!1),Jt(o,t,l),yi(l.stateNode),Ao=s,In=f;break;case 5:Wo||$t(l,t);case 6:if(s=Ao,f=In,Ao=null,Jt(o,t,l),Ao=s,In=f,Ao!==null)if(In)try{(Ao.nodeType===9?Ao.body:Ao.nodeName==="HTML"?Ao.ownerDocument.body:Ao).removeChild(l.stateNode)}catch(b){bo(l,t,b)}else try{Ao.removeChild(l.stateNode)}catch(b){bo(l,t,b)}break;case 18:Ao!==null&&(In?(o=Ao,_v(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,l.stateNode),pl(o)):_v(Ao,l.stateNode));break;case 4:s=Ao,f=In,Ao=l.stateNode.containerInfo,In=!0,Jt(o,t,l),Ao=s,In=f;break;case 0:case 11:case 14:case 15:Tr(2,l,t),Wo||Tr(4,l,t),Jt(o,t,l);break;case 1:Wo||($t(l,t),s=l.stateNode,typeof s.componentWillUnmount=="function"&&xk(l,t,s)),Jt(o,t,l);break;case 21:Jt(o,t,l);break;case 22:Wo=(s=Wo)||l.memoizedState!==null,Jt(o,t,l),Wo=s;break;default:Jt(o,t,l)}}function Ck(o,t){if(t.memoizedState===null&&(o=t.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{pl(o)}catch(l){bo(t,t.return,l)}}}function Ek(o,t){if(t.memoizedState===null&&(o=t.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{pl(o)}catch(l){bo(t,t.return,l)}}function q2(o){switch(o.tag){case 31:case 13:case 19:var t=o.stateNode;return t===null&&(t=o.stateNode=new Sk),t;case 22:return o=o.stateNode,t=o._retryCache,t===null&&(t=o._retryCache=new Sk),t;default:throw Error(i(435,o.tag))}}function Zc(o,t){var l=q2(o);t.forEach(function(s){if(!l.has(s)){l.add(s);var f=ez.bind(null,o,s);s.then(f,f)}})}function Un(o,t){var l=t.deletions;if(l!==null)for(var s=0;s<l.length;s++){var f=l[s],b=o,k=t,x=k;e:for(;x!==null;){switch(x.tag){case 27:if(Nr(x.type)){Ao=x.stateNode,In=!1;break e}break;case 5:Ao=x.stateNode,In=!1;break e;case 3:case 4:Ao=x.stateNode.containerInfo,In=!0;break e}x=x.return}if(Ao===null)throw Error(i(160));Ak(b,k,f),Ao=null,In=!1,b=f.alternate,b!==null&&(b.return=null),f.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Lk(t,o),t=t.sibling}var zt=null;function Lk(o,t){var l=o.alternate,s=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Un(t,o),Fn(o),s&4&&(Tr(3,o,o.return),fi(3,o),Tr(5,o,o.return));break;case 1:Un(t,o),Fn(o),s&512&&(Wo||l===null||$t(l,l.return)),s&64&&Yt&&(o=o.updateQueue,o!==null&&(s=o.callbacks,s!==null&&(l=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var f=zt;if(Un(t,o),Fn(o),s&512&&(Wo||l===null||$t(l,l.return)),s&4){var b=l!==null?l.memoizedState:null;if(s=o.memoizedState,l===null)if(s===null)if(o.stateNode===null){e:{s=o.type,l=o.memoizedProps,f=f.ownerDocument||f;o:switch(s){case"title":b=f.getElementsByTagName("title")[0],(!b||b[Ul]||b[un]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=f.createElement(s),f.head.insertBefore(b,f.querySelector("head > title"))),hn(b,s,l),b[un]=o,cn(b),s=b;break e;case"link":var k=Lv("link","href",f).get(s+(l.href||""));if(k){for(var x=0;x<k.length;x++)if(b=k[x],b.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&b.getAttribute("rel")===(l.rel==null?null:l.rel)&&b.getAttribute("title")===(l.title==null?null:l.title)&&b.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){k.splice(x,1);break o}}b=f.createElement(s),hn(b,s,l),f.head.appendChild(b);break;case"meta":if(k=Lv("meta","content",f).get(s+(l.content||""))){for(x=0;x<k.length;x++)if(b=k[x],b.getAttribute("content")===(l.content==null?null:""+l.content)&&b.getAttribute("name")===(l.name==null?null:l.name)&&b.getAttribute("property")===(l.property==null?null:l.property)&&b.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&b.getAttribute("charset")===(l.charSet==null?null:l.charSet)){k.splice(x,1);break o}}b=f.createElement(s),hn(b,s,l),f.head.appendChild(b);break;default:throw Error(i(468,s))}b[un]=o,cn(b),s=b}o.stateNode=s}else Ov(f,o.type,o.stateNode);else o.stateNode=Ev(f,s,o.memoizedProps);else b!==s?(b===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):b.count--,s===null?Ov(f,o.type,o.stateNode):Ev(f,s,o.memoizedProps)):s===null&&o.stateNode!==null&&Hu(o,o.memoizedProps,l.memoizedProps)}break;case 27:Un(t,o),Fn(o),s&512&&(Wo||l===null||$t(l,l.return)),l!==null&&s&4&&Hu(o,o.memoizedProps,l.memoizedProps);break;case 5:if(Un(t,o),Fn(o),s&512&&(Wo||l===null||$t(l,l.return)),o.flags&32){f=o.stateNode;try{Ia(f,"")}catch(ke){bo(o,o.return,ke)}}s&4&&o.stateNode!=null&&(f=o.memoizedProps,Hu(o,f,l!==null?l.memoizedProps:f)),s&1024&&(qu=!0);break;case 6:if(Un(t,o),Fn(o),s&4){if(o.stateNode===null)throw Error(i(162));s=o.memoizedProps,l=o.stateNode;try{l.nodeValue=s}catch(ke){bo(o,o.return,ke)}}break;case 3:if(cs=null,f=zt,zt=ls(t.containerInfo),Un(t,o),zt=f,Fn(o),s&4&&l!==null&&l.memoizedState.isDehydrated)try{pl(t.containerInfo)}catch(ke){bo(o,o.return,ke)}qu&&(qu=!1,Ok(o));break;case 4:s=zt,zt=ls(o.stateNode.containerInfo),Un(t,o),Fn(o),zt=s;break;case 12:Un(t,o),Fn(o);break;case 31:Un(t,o),Fn(o),s&4&&(s=o.updateQueue,s!==null&&(o.updateQueue=null,Zc(o,s)));break;case 13:Un(t,o),Fn(o),o.child.flags&8192&&o.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Gc=T()),s&4&&(s=o.updateQueue,s!==null&&(o.updateQueue=null,Zc(o,s)));break;case 22:f=o.memoizedState!==null;var A=l!==null&&l.memoizedState!==null,F=Yt,Y=Wo;if(Yt=F||f,Wo=Y||A,Un(t,o),Wo=Y,Yt=F,Fn(o),s&8192)e:for(t=o.stateNode,t._visibility=f?t._visibility&-2:t._visibility|1,f&&(l===null||A||Yt||Wo||pa(o)),l=null,t=o;;){if(t.tag===5||t.tag===26){if(l===null){A=l=t;try{if(b=A.stateNode,f)k=b.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{x=A.stateNode;var Q=A.memoizedProps.style,V=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;x.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(ke){bo(A,A.return,ke)}}}else if(t.tag===6){if(l===null){A=t;try{A.stateNode.nodeValue=f?"":A.memoizedProps}catch(ke){bo(A,A.return,ke)}}}else if(t.tag===18){if(l===null){A=t;try{var Z=A.stateNode;f?xv(Z,!0):xv(A.stateNode,!1)}catch(ke){bo(A,A.return,ke)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===o)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===o)break e;for(;t.sibling===null;){if(t.return===null||t.return===o)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=o.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,Zc(o,l))));break;case 19:Un(t,o),Fn(o),s&4&&(s=o.updateQueue,s!==null&&(o.updateQueue=null,Zc(o,s)));break;case 30:break;case 21:break;default:Un(t,o),Fn(o)}}function Fn(o){var t=o.flags;if(t&2){try{for(var l,s=o.return;s!==null;){if(wk(s)){l=s;break}s=s.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var f=l.stateNode,b=Vu(o);qc(o,b,f);break;case 5:var k=l.stateNode;l.flags&32&&(Ia(k,""),l.flags&=-33);var x=Vu(o);qc(o,x,k);break;case 3:case 4:var A=l.stateNode.containerInfo,F=Vu(o);Ku(o,F,A);break;default:throw Error(i(161))}}catch(Y){bo(o,o.return,Y)}o.flags&=-3}t&4096&&(o.flags&=-4097)}function Ok(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var t=o;Ok(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),o=o.sibling}}function Xt(o,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)jk(o,t.alternate,t),t=t.sibling}function pa(o){for(o=o.child;o!==null;){var t=o;switch(t.tag){case 0:case 11:case 14:case 15:Tr(4,t,t.return),pa(t);break;case 1:$t(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&xk(t,t.return,l),pa(t);break;case 27:yi(t.stateNode);case 26:case 5:$t(t,t.return),pa(t);break;case 22:t.memoizedState===null&&pa(t);break;case 30:pa(t);break;default:pa(t)}o=o.sibling}}function Wt(o,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,f=o,b=t,k=b.flags;switch(b.tag){case 0:case 11:case 15:Wt(f,b,l),fi(4,b);break;case 1:if(Wt(f,b,l),s=b,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(F){bo(s,s.return,F)}if(s=b,f=s.updateQueue,f!==null){var x=s.stateNode;try{var A=f.shared.hiddenCallbacks;if(A!==null)for(f.shared.hiddenCallbacks=null,f=0;f<A.length;f++)sp(A[f],x)}catch(F){bo(s,s.return,F)}}l&&k&64&&_k(b),bi(b,b.return);break;case 27:zk(b);case 26:case 5:Wt(f,b,l),l&&s===null&&k&4&&yk(b),bi(b,b.return);break;case 12:Wt(f,b,l);break;case 31:Wt(f,b,l),l&&k&4&&Ck(f,b);break;case 13:Wt(f,b,l),l&&k&4&&Ek(f,b);break;case 22:b.memoizedState===null&&Wt(f,b,l),bi(b,b.return);break;case 30:break;default:Wt(f,b,l)}t=t.sibling}}function Zu(o,t){var l=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==l&&(o!=null&&o.refCount++,l!=null&&Ql(l))}function Pu(o,t){o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Ql(o))}function St(o,t,l,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$k(o,t,l,s),t=t.sibling}function $k(o,t,l,s){var f=t.flags;switch(t.tag){case 0:case 11:case 15:St(o,t,l,s),f&2048&&fi(9,t);break;case 1:St(o,t,l,s);break;case 3:St(o,t,l,s),f&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Ql(o)));break;case 12:if(f&2048){St(o,t,l,s),o=t.stateNode;try{var b=t.memoizedProps,k=b.id,x=b.onPostCommit;typeof x=="function"&&x(k,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(A){bo(t,t.return,A)}}else St(o,t,l,s);break;case 31:St(o,t,l,s);break;case 13:St(o,t,l,s);break;case 23:break;case 22:b=t.stateNode,k=t.alternate,t.memoizedState!==null?b._visibility&2?St(o,t,l,s):mi(o,t):b._visibility&2?St(o,t,l,s):(b._visibility|=2,al(o,t,l,s,(t.subtreeFlags&10256)!==0||!1)),f&2048&&Zu(k,t);break;case 24:St(o,t,l,s),f&2048&&Pu(t.alternate,t);break;default:St(o,t,l,s)}}function al(o,t,l,s,f){for(f=f&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var b=o,k=t,x=l,A=s,F=k.flags;switch(k.tag){case 0:case 11:case 15:al(b,k,x,A,f),fi(8,k);break;case 23:break;case 22:var Y=k.stateNode;k.memoizedState!==null?Y._visibility&2?al(b,k,x,A,f):mi(b,k):(Y._visibility|=2,al(b,k,x,A,f)),f&&F&2048&&Zu(k.alternate,k);break;case 24:al(b,k,x,A,f),f&&F&2048&&Pu(k.alternate,k);break;default:al(b,k,x,A,f)}t=t.sibling}}function mi(o,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=o,s=t,f=s.flags;switch(s.tag){case 22:mi(l,s),f&2048&&Zu(s.alternate,s);break;case 24:mi(l,s),f&2048&&Pu(s.alternate,s);break;default:mi(l,s)}t=t.sibling}}var hi=8192;function ll(o,t,l){if(o.subtreeFlags&hi)for(o=o.child;o!==null;)Nk(o,t,l),o=o.sibling}function Nk(o,t,l){switch(o.tag){case 26:ll(o,t,l),o.flags&hi&&o.memoizedState!==null&&Lz(l,zt,o.memoizedState,o.memoizedProps);break;case 5:ll(o,t,l);break;case 3:case 4:var s=zt;zt=ls(o.stateNode.containerInfo),ll(o,t,l),zt=s;break;case 22:o.memoizedState===null&&(s=o.alternate,s!==null&&s.memoizedState!==null?(s=hi,hi=16777216,ll(o,t,l),hi=s):ll(o,t,l));break;default:ll(o,t,l)}}function Rk(o){var t=o.alternate;if(t!==null&&(o=t.child,o!==null)){t.child=null;do t=o.sibling,o.sibling=null,o=t;while(o!==null)}}function pi(o){var t=o.deletions;if((o.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];sn=s,Dk(s,o)}Rk(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)Bk(o),o=o.sibling}function Bk(o){switch(o.tag){case 0:case 11:case 15:pi(o),o.flags&2048&&Tr(9,o,o.return);break;case 3:pi(o);break;case 12:pi(o);break;case 22:var t=o.stateNode;o.memoizedState!==null&&t._visibility&2&&(o.return===null||o.return.tag!==13)?(t._visibility&=-3,Pc(o)):pi(o);break;default:pi(o)}}function Pc(o){var t=o.deletions;if((o.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];sn=s,Dk(s,o)}Rk(o)}for(o=o.child;o!==null;){switch(t=o,t.tag){case 0:case 11:case 15:Tr(8,t,t.return),Pc(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Pc(t));break;default:Pc(t)}o=o.sibling}}function Dk(o,t){for(;sn!==null;){var l=sn;switch(l.tag){case 0:case 11:case 15:Tr(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Ql(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,sn=s;else e:for(l=o;sn!==null;){s=sn;var f=s.sibling,b=s.return;if(Tk(s),s===l){sn=null;break e}if(f!==null){f.return=b,sn=f;break e}sn=b}}}var Z2={getCacheForType:function(o){var t=bn(Yo),l=t.data.get(o);return l===void 0&&(l=o(),t.data.set(o,l)),l},cacheSignal:function(){return bn(Yo).controller.signal}},P2=typeof WeakMap=="function"?WeakMap:Map,io=0,xo=null,Pe=null,Je=0,fo=0,Qn=null,Ar=!1,il=!1,Gu=!1,Qt=0,Mo=0,Cr=0,ka=0,Yu=0,et=0,cl=0,ki=null,Hn=null,Ju=!1,Gc=0,Mk=0,Yc=1/0,Jc=null,Er=null,rn=0,Lr=null,sl=null,er=0,Xu=0,Wu=null,Ik=null,vi=0,Qu=null;function ot(){return(io&2)!==0&&Je!==0?Je&-Je:M.T!==null?af():oh()}function Uk(){if(et===0)if((Je&536870912)===0||Qe){var o=Oa;Oa<<=1,(Oa&3932160)===0&&(Oa=262144),et=o}else et=536870912;return o=Xn.current,o!==null&&(o.flags|=32),et}function Vn(o,t,l){(o===xo&&(fo===2||fo===9)||o.cancelPendingCommit!==null)&&(dl(o,0),Or(o,Je,et,!1)),Il(o,l),((io&2)===0||o!==xo)&&(o===xo&&((io&2)===0&&(ka|=l),Mo===4&&Or(o,Je,et,!1)),Nt(o))}function Fk(o,t,l){if((io&6)!==0)throw Error(i(327));var s=!l&&(t&127)===0&&(t&o.expiredLanes)===0||Ml(o,t),f=s?J2(o,t):of(o,t,!0),b=s;do{if(f===0){il&&!s&&Or(o,t,0,!1);break}else{if(l=o.current.alternate,b&&!G2(l)){f=of(o,t,!1),b=!1;continue}if(f===2){if(b=t,o.errorRecoveryDisabledLanes&b)var k=0;else k=o.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){t=k;e:{var x=o;f=ki;var A=x.current.memoizedState.isDehydrated;if(A&&(dl(x,k).flags|=256),k=of(x,k,!1),k!==2){if(Gu&&!A){x.errorRecoveryDisabledLanes|=b,ka|=b,f=4;break e}b=Hn,Hn=f,b!==null&&(Hn===null?Hn=b:Hn.push.apply(Hn,b))}f=k}if(b=!1,f!==2)continue}}if(f===1){dl(o,0),Or(o,t,0,!0);break}e:{switch(s=o,b=f,b){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Or(s,t,et,!Ar);break e;case 2:Hn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(f=Gc+300-T(),10<f)){if(Or(s,t,et,!Ar),lc(s,0,!0)!==0)break e;er=t,s.timeoutHandle=vv(Hk.bind(null,s,l,Hn,Jc,Ju,t,et,ka,cl,Ar,b,"Throttled",-0,0),f);break e}Hk(s,l,Hn,Jc,Ju,t,et,ka,cl,Ar,b,null,-0,0)}}break}while(!0);Nt(o)}function Hk(o,t,l,s,f,b,k,x,A,F,Y,Q,V,Z){if(o.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:It},Nk(t,b,Q);var ke=(b&62914560)===b?Gc-T():(b&4194048)===b?Mk-T():0;if(ke=Oz(Q,ke),ke!==null){er=b,o.cancelPendingCommit=ke(Jk.bind(null,o,t,b,l,s,f,k,x,A,Y,Q,null,V,Z)),Or(o,b,k,!F);return}}Jk(o,t,b,l,s,f,k,x,A)}function G2(o){for(var t=o;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var s=0;s<l.length;s++){var f=l[s],b=f.getSnapshot;f=f.value;try{if(!Yn(b(),f))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===o)break;for(;t.sibling===null;){if(t.return===null||t.return===o)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Or(o,t,l,s){t&=~Yu,t&=~ka,o.suspendedLanes|=t,o.pingedLanes&=~t,s&&(o.warmLanes|=t),s=o.expirationTimes;for(var f=t;0<f;){var b=31-Ln(f),k=1<<b;s[b]=-1,f&=~k}l!==0&&Wm(o,l,t)}function Xc(){return(io&6)===0?(gi(0),!1):!0}function ef(){if(Pe!==null){if(fo===0)var o=Pe.return;else o=Pe,Vt=ca=null,pu(o),el=null,oi=0,o=Pe;for(;o!==null;)gk(o.alternate,o),o=o.return;Pe=null}}function dl(o,t){var l=o.timeoutHandle;l!==-1&&(o.timeoutHandle=-1,mz(l)),l=o.cancelPendingCommit,l!==null&&(o.cancelPendingCommit=null,l()),er=0,ef(),xo=o,Pe=l=Ft(o.current,null),Je=t,fo=0,Qn=null,Ar=!1,il=Ml(o,t),Gu=!1,cl=et=Yu=ka=Cr=Mo=0,Hn=ki=null,Ju=!1,(t&8)!==0&&(t|=t&32);var s=o.entangledLanes;if(s!==0)for(o=o.entanglements,s&=t;0<s;){var f=31-Ln(s),b=1<<f;t|=o[f],s&=~b}return Qt=t,vc(),l}function Vk(o,t){Ie=null,M.H=si,t===Qa||t===jc?(t=ap(),fo=3):t===ru?(t=ap(),fo=4):fo=t===Ou?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qn=t,Pe===null&&(Mo=1,Uc(o,mt(t,o.current)))}function Kk(){var o=Xn.current;return o===null?!0:(Je&4194048)===Je?vt===null:(Je&62914560)===Je||(Je&536870912)!==0?o===vt:!1}function qk(){var o=M.H;return M.H=si,o===null?si:o}function Zk(){var o=M.A;return M.A=Z2,o}function Wc(){Mo=4,Ar||(Je&4194048)!==Je&&Xn.current!==null||(il=!0),(Cr&134217727)===0&&(ka&134217727)===0||xo===null||Or(xo,Je,et,!1)}function of(o,t,l){var s=io;io|=2;var f=qk(),b=Zk();(xo!==o||Je!==t)&&(Jc=null,dl(o,t)),t=!1;var k=Mo;e:do try{if(fo!==0&&Pe!==null){var x=Pe,A=Qn;switch(fo){case 8:ef(),k=6;break e;case 3:case 2:case 9:case 6:Xn.current===null&&(t=!0);var F=fo;if(fo=0,Qn=null,ul(o,x,A,F),l&&il){k=0;break e}break;default:F=fo,fo=0,Qn=null,ul(o,x,A,F)}}Y2(),k=Mo;break}catch(Y){Vk(o,Y)}while(!0);return t&&o.shellSuspendCounter++,Vt=ca=null,io=s,M.H=f,M.A=b,Pe===null&&(xo=null,Je=0,vc()),k}function Y2(){for(;Pe!==null;)Pk(Pe)}function J2(o,t){var l=io;io|=2;var s=qk(),f=Zk();xo!==o||Je!==t?(Jc=null,Yc=T()+500,dl(o,t)):il=Ml(o,t);e:do try{if(fo!==0&&Pe!==null){t=Pe;var b=Qn;o:switch(fo){case 1:fo=0,Qn=null,ul(o,t,b,1);break;case 2:case 9:if(tp(b)){fo=0,Qn=null,Gk(t);break}t=function(){fo!==2&&fo!==9||xo!==o||(fo=7),Nt(o)},b.then(t,t);break e;case 3:fo=7;break e;case 4:fo=5;break e;case 7:tp(b)?(fo=0,Qn=null,Gk(t)):(fo=0,Qn=null,ul(o,t,b,7));break;case 5:var k=null;switch(Pe.tag){case 26:k=Pe.memoizedState;case 5:case 27:var x=Pe;if(k?$v(k):x.stateNode.complete){fo=0,Qn=null;var A=x.sibling;if(A!==null)Pe=A;else{var F=x.return;F!==null?(Pe=F,Qc(F)):Pe=null}break o}}fo=0,Qn=null,ul(o,t,b,5);break;case 6:fo=0,Qn=null,ul(o,t,b,6);break;case 8:ef(),Mo=6;break e;default:throw Error(i(462))}}X2();break}catch(Y){Vk(o,Y)}while(!0);return Vt=ca=null,M.H=s,M.A=f,io=l,Pe!==null?0:(xo=null,Je=0,vc(),Mo)}function X2(){for(;Pe!==null&&!_o();)Pk(Pe)}function Pk(o){var t=kk(o.alternate,o,Qt);o.memoizedProps=o.pendingProps,t===null?Qc(o):Pe=t}function Gk(o){var t=o,l=t.alternate;switch(t.tag){case 15:case 0:t=uk(l,t,t.pendingProps,t.type,void 0,Je);break;case 11:t=uk(l,t,t.pendingProps,t.type.render,t.ref,Je);break;case 5:pu(t);default:gk(l,t),t=Pe=Zh(t,Qt),t=kk(l,t,Qt)}o.memoizedProps=o.pendingProps,t===null?Qc(o):Pe=t}function ul(o,t,l,s){Vt=ca=null,pu(t),el=null,oi=0;var f=t.return;try{if(I2(o,f,t,l,Je)){Mo=1,Uc(o,mt(l,o.current)),Pe=null;return}}catch(b){if(f!==null)throw Pe=f,b;Mo=1,Uc(o,mt(l,o.current)),Pe=null;return}t.flags&32768?(Qe||s===1?o=!0:il||(Je&536870912)!==0?o=!1:(Ar=o=!0,(s===2||s===9||s===3||s===6)&&(s=Xn.current,s!==null&&s.tag===13&&(s.flags|=16384))),Yk(t,o)):Qc(t)}function Qc(o){var t=o;do{if((t.flags&32768)!==0){Yk(t,Ar);return}o=t.return;var l=H2(t.alternate,t,Qt);if(l!==null){Pe=l;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=o}while(t!==null);Mo===0&&(Mo=5)}function Yk(o,t){do{var l=V2(o.alternate,o);if(l!==null){l.flags&=32767,Pe=l;return}if(l=o.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(o=o.sibling,o!==null)){Pe=o;return}Pe=o=l}while(o!==null);Mo=6,Pe=null}function Jk(o,t,l,s,f,b,k,x,A){o.cancelPendingCommit=null;do es();while(rn!==0);if((io&6)!==0)throw Error(i(327));if(t!==null){if(t===o.current)throw Error(i(177));if(b=t.lanes|t.childLanes,b|=Vd,Ew(o,l,b,k,x,A),o===xo&&(Pe=xo=null,Je=0),sl=t,Lr=o,er=l,Xu=b,Wu=f,Ik=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,oz(ie,function(){return ov(),null})):(o.callbackNode=null,o.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=M.T,M.T=null,f=G.p,G.p=2,k=io,io|=4;try{K2(o,t,l)}finally{io=k,G.p=f,M.T=s}}rn=1,Xk(),Wk(),Qk()}}function Xk(){if(rn===1){rn=0;var o=Lr,t=sl,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var s=G.p;G.p=2;var f=io;io|=4;try{Lk(t,o);var b=mf,k=Dh(o.containerInfo),x=b.focusedElem,A=b.selectionRange;if(k!==x&&x&&x.ownerDocument&&Bh(x.ownerDocument.documentElement,x)){if(A!==null&&Md(x)){var F=A.start,Y=A.end;if(Y===void 0&&(Y=F),"selectionStart"in x)x.selectionStart=F,x.selectionEnd=Math.min(Y,x.value.length);else{var Q=x.ownerDocument||document,V=Q&&Q.defaultView||window;if(V.getSelection){var Z=V.getSelection(),ke=x.textContent.length,Ce=Math.min(A.start,ke),go=A.end===void 0?Ce:Math.min(A.end,ke);!Z.extend&&Ce>go&&(k=go,go=Ce,Ce=k);var R=Rh(x,Ce),O=Rh(x,go);if(R&&O&&(Z.rangeCount!==1||Z.anchorNode!==R.node||Z.anchorOffset!==R.offset||Z.focusNode!==O.node||Z.focusOffset!==O.offset)){var U=Q.createRange();U.setStart(R.node,R.offset),Z.removeAllRanges(),Ce>go?(Z.addRange(U),Z.extend(O.node,O.offset)):(U.setEnd(O.node,O.offset),Z.addRange(U))}}}}for(Q=[],Z=x;Z=Z.parentNode;)Z.nodeType===1&&Q.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Q.length;x++){var J=Q[x];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}fs=!!bf,mf=bf=null}finally{io=f,G.p=s,M.T=l}}o.current=t,rn=2}}function Wk(){if(rn===2){rn=0;var o=Lr,t=sl,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var s=G.p;G.p=2;var f=io;io|=4;try{jk(o,t.alternate,t)}finally{io=f,G.p=s,M.T=l}}rn=3}}function Qk(){if(rn===4||rn===3){rn=0,to();var o=Lr,t=sl,l=er,s=Ik;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rn=5:(rn=0,sl=Lr=null,ev(o,o.pendingLanes));var f=o.pendingLanes;if(f===0&&(Er=null),gd(l),t=t.stateNode,To&&typeof To.onCommitFiberRoot=="function")try{To.onCommitFiberRoot(Ko,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=M.T,f=G.p,G.p=2,M.T=null;try{for(var b=o.onRecoverableError,k=0;k<s.length;k++){var x=s[k];b(x.value,{componentStack:x.stack})}}finally{M.T=t,G.p=f}}(er&3)!==0&&es(),Nt(o),f=o.pendingLanes,(l&261930)!==0&&(f&42)!==0?o===Qu?vi++:(vi=0,Qu=o):vi=0,gi(0)}}function ev(o,t){(o.pooledCacheLanes&=t)===0&&(t=o.pooledCache,t!=null&&(o.pooledCache=null,Ql(t)))}function es(){return Xk(),Wk(),Qk(),ov()}function ov(){if(rn!==5)return!1;var o=Lr,t=Xu;Xu=0;var l=gd(er),s=M.T,f=G.p;try{G.p=32>l?32:l,M.T=null,l=Wu,Wu=null;var b=Lr,k=er;if(rn=0,sl=Lr=null,er=0,(io&6)!==0)throw Error(i(331));var x=io;if(io|=4,Bk(b.current),$k(b,b.current,k,l),io=x,gi(0,!1),To&&typeof To.onPostCommitFiberRoot=="function")try{To.onPostCommitFiberRoot(Ko,b)}catch{}return!0}finally{G.p=f,M.T=s,ev(o,t)}}function nv(o,t,l){t=mt(l,t),t=Lu(o.stateNode,t,2),o=zr(o,t,2),o!==null&&(Il(o,2),Nt(o))}function bo(o,t,l){if(o.tag===3)nv(o,o,l);else for(;t!==null;){if(t.tag===3){nv(t,o,l);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Er===null||!Er.has(s))){o=mt(l,o),l=tk(2),s=zr(t,l,2),s!==null&&(rk(l,s,t,o),Il(s,2),Nt(s));break}}t=t.return}}function nf(o,t,l){var s=o.pingCache;if(s===null){s=o.pingCache=new P2;var f=new Set;s.set(t,f)}else f=s.get(t),f===void 0&&(f=new Set,s.set(t,f));f.has(l)||(Gu=!0,f.add(l),o=W2.bind(null,o,t,l),t.then(o,o))}function W2(o,t,l){var s=o.pingCache;s!==null&&s.delete(t),o.pingedLanes|=o.suspendedLanes&l,o.warmLanes&=~l,xo===o&&(Je&l)===l&&(Mo===4||Mo===3&&(Je&62914560)===Je&&300>T()-Gc?(io&2)===0&&dl(o,0):Yu|=l,cl===Je&&(cl=0)),Nt(o)}function tv(o,t){t===0&&(t=Xm()),o=aa(o,t),o!==null&&(Il(o,t),Nt(o))}function Q2(o){var t=o.memoizedState,l=0;t!==null&&(l=t.retryLane),tv(o,l)}function ez(o,t){var l=0;switch(o.tag){case 31:case 13:var s=o.stateNode,f=o.memoizedState;f!==null&&(l=f.retryLane);break;case 19:s=o.stateNode;break;case 22:s=o.stateNode._retryCache;break;default:throw Error(i(314))}s!==null&&s.delete(t),tv(o,l)}function oz(o,t){return so(o,t)}var os=null,fl=null,tf=!1,ns=!1,rf=!1,$r=0;function Nt(o){o!==fl&&o.next===null&&(fl===null?os=fl=o:fl=fl.next=o),ns=!0,tf||(tf=!0,tz())}function gi(o,t){if(!rf&&ns){rf=!0;do for(var l=!1,s=os;s!==null;){if(o!==0){var f=s.pendingLanes;if(f===0)var b=0;else{var k=s.suspendedLanes,x=s.pingedLanes;b=(1<<31-Ln(42|o)+1)-1,b&=f&~(k&~x),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(l=!0,iv(s,b))}else b=Je,b=lc(s,s===xo?b:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(b&3)===0||Ml(s,b)||(l=!0,iv(s,b));s=s.next}while(l);rf=!1}}function nz(){rv()}function rv(){ns=tf=!1;var o=0;$r!==0&&bz()&&(o=$r);for(var t=T(),l=null,s=os;s!==null;){var f=s.next,b=av(s,t);b===0?(s.next=null,l===null?os=f:l.next=f,f===null&&(fl=l)):(l=s,(o!==0||(b&3)!==0)&&(ns=!0)),s=f}rn!==0&&rn!==5||gi(o),$r!==0&&($r=0)}function av(o,t){for(var l=o.suspendedLanes,s=o.pingedLanes,f=o.expirationTimes,b=o.pendingLanes&-62914561;0<b;){var k=31-Ln(b),x=1<<k,A=f[k];A===-1?((x&l)===0||(x&s)!==0)&&(f[k]=Cw(x,t)):A<=t&&(o.expiredLanes|=x),b&=~x}if(t=xo,l=Je,l=lc(o,o===t?l:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),s=o.callbackNode,l===0||o===t&&(fo===2||fo===9)||o.cancelPendingCommit!==null)return s!==null&&s!==null&&Go(s),o.callbackNode=null,o.callbackPriority=0;if((l&3)===0||Ml(o,l)){if(t=l&-l,t===o.callbackPriority)return t;switch(s!==null&&Go(s),gd(l)){case 2:case 8:l=le;break;case 32:l=ie;break;case 268435456:l=me;break;default:l=ie}return s=lv.bind(null,o),l=so(l,s),o.callbackPriority=t,o.callbackNode=l,t}return s!==null&&s!==null&&Go(s),o.callbackPriority=2,o.callbackNode=null,2}function lv(o,t){if(rn!==0&&rn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var l=o.callbackNode;if(es()&&o.callbackNode!==l)return null;var s=Je;return s=lc(o,o===xo?s:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),s===0?null:(Fk(o,s,t),av(o,T()),o.callbackNode!=null&&o.callbackNode===l?lv.bind(null,o):null)}function iv(o,t){if(es())return null;Fk(o,t,!0)}function tz(){hz(function(){(io&6)!==0?so(I,nz):rv()})}function af(){if($r===0){var o=Xa;o===0&&(o=Wr,Wr<<=1,(Wr&261888)===0&&(Wr=256)),$r=o}return $r}function cv(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:dc(""+o)}function sv(o,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,o.id&&l.setAttribute("form",o.id),t.parentNode.insertBefore(l,t),o=new FormData(o),l.parentNode.removeChild(l),o}function rz(o,t,l,s,f){if(t==="submit"&&l&&l.stateNode===f){var b=cv((f[Dn]||null).action),k=s.submitter;k&&(t=(t=k[Dn]||null)?cv(t.formAction):k.getAttribute("formAction"),t!==null&&(b=t,k=null));var x=new mc("action","action",null,s,f);o.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if($r!==0){var A=k?sv(f,k):new FormData(f);Su(l,{pending:!0,data:A,method:f.method,action:b},null,A)}}else typeof b=="function"&&(x.preventDefault(),A=k?sv(f,k):new FormData(f),Su(l,{pending:!0,data:A,method:f.method,action:b},b,A))},currentTarget:f}]})}}for(var lf=0;lf<Hd.length;lf++){var cf=Hd[lf],az=cf.toLowerCase(),lz=cf[0].toUpperCase()+cf.slice(1);wt(az,"on"+lz)}wt(Uh,"onAnimationEnd"),wt(Fh,"onAnimationIteration"),wt(Hh,"onAnimationStart"),wt("dblclick","onDoubleClick"),wt("focusin","onFocus"),wt("focusout","onBlur"),wt(y2,"onTransitionRun"),wt(w2,"onTransitionStart"),wt(z2,"onTransitionCancel"),wt(Vh,"onTransitionEnd"),Da("onMouseEnter",["mouseout","mouseover"]),Da("onMouseLeave",["mouseout","mouseover"]),Da("onPointerEnter",["pointerout","pointerover"]),Da("onPointerLeave",["pointerout","pointerover"]),oa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),oa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),oa("onBeforeInput",["compositionend","keypress","textInput","paste"]),oa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),oa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),oa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _i="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),iz=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_i));function dv(o,t){t=(t&4)!==0;for(var l=0;l<o.length;l++){var s=o[l],f=s.event;s=s.listeners;e:{var b=void 0;if(t)for(var k=s.length-1;0<=k;k--){var x=s[k],A=x.instance,F=x.currentTarget;if(x=x.listener,A!==b&&f.isPropagationStopped())break e;b=x,f.currentTarget=F;try{b(f)}catch(Y){kc(Y)}f.currentTarget=null,b=A}else for(k=0;k<s.length;k++){if(x=s[k],A=x.instance,F=x.currentTarget,x=x.listener,A!==b&&f.isPropagationStopped())break e;b=x,f.currentTarget=F;try{b(f)}catch(Y){kc(Y)}f.currentTarget=null,b=A}}}}function Ge(o,t){var l=t[_d];l===void 0&&(l=t[_d]=new Set);var s=o+"__bubble";l.has(s)||(uv(t,o,2,!1),l.add(s))}function sf(o,t,l){var s=0;t&&(s|=4),uv(l,o,s,t)}var ts="_reactListening"+Math.random().toString(36).slice(2);function df(o){if(!o[ts]){o[ts]=!0,rh.forEach(function(l){l!=="selectionchange"&&(iz.has(l)||sf(l,!1,o),sf(l,!0,o))});var t=o.nodeType===9?o:o.ownerDocument;t===null||t[ts]||(t[ts]=!0,sf("selectionchange",!1,t))}}function uv(o,t,l,s){switch(Uv(t)){case 2:var f=Rz;break;case 8:f=Bz;break;default:f=Sf}l=f.bind(null,t,l,o),f=void 0,!Cd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(f=!0),s?f!==void 0?o.addEventListener(t,l,{capture:!0,passive:f}):o.addEventListener(t,l,!0):f!==void 0?o.addEventListener(t,l,{passive:f}):o.addEventListener(t,l,!1)}function uf(o,t,l,s,f){var b=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var k=s.tag;if(k===3||k===4){var x=s.stateNode.containerInfo;if(x===f)break;if(k===4)for(k=s.return;k!==null;){var A=k.tag;if((A===3||A===4)&&k.stateNode.containerInfo===f)return;k=k.return}for(;x!==null;){if(k=Na(x),k===null)return;if(A=k.tag,A===5||A===6||A===26||A===27){s=b=k;continue e}x=x.parentNode}}s=s.return}ph(function(){var F=b,Y=Td(l),Q=[];e:{var V=Kh.get(o);if(V!==void 0){var Z=mc,ke=o;switch(o){case"keypress":if(fc(l)===0)break e;case"keydown":case"keyup":Z=e2;break;case"focusin":ke="focus",Z=$d;break;case"focusout":ke="blur",Z=$d;break;case"beforeblur":case"afterblur":Z=$d;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=gh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=Hw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=t2;break;case Uh:case Fh:case Hh:Z=qw;break;case Vh:Z=a2;break;case"scroll":case"scrollend":Z=Uw;break;case"wheel":Z=i2;break;case"copy":case"cut":case"paste":Z=Pw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=xh;break;case"toggle":case"beforetoggle":Z=s2}var Ce=(t&4)!==0,go=!Ce&&(o==="scroll"||o==="scrollend"),R=Ce?V!==null?V+"Capture":null:V;Ce=[];for(var O=F,U;O!==null;){var J=O;if(U=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||U===null||R===null||(J=Hl(O,R),J!=null&&Ce.push(xi(O,J,U))),go)break;O=O.return}0<Ce.length&&(V=new Z(V,ke,null,l,Y),Q.push({event:V,listeners:Ce}))}}if((t&7)===0){e:{if(V=o==="mouseover"||o==="pointerover",Z=o==="mouseout"||o==="pointerout",V&&l!==jd&&(ke=l.relatedTarget||l.fromElement)&&(Na(ke)||ke[$a]))break e;if((Z||V)&&(V=Y.window===Y?Y:(V=Y.ownerDocument)?V.defaultView||V.parentWindow:window,Z?(ke=l.relatedTarget||l.toElement,Z=F,ke=ke?Na(ke):null,ke!==null&&(go=d(ke),Ce=ke.tag,ke!==go||Ce!==5&&Ce!==27&&Ce!==6)&&(ke=null)):(Z=null,ke=F),Z!==ke)){if(Ce=gh,J="onMouseLeave",R="onMouseEnter",O="mouse",(o==="pointerout"||o==="pointerover")&&(Ce=xh,J="onPointerLeave",R="onPointerEnter",O="pointer"),go=Z==null?V:Fl(Z),U=ke==null?V:Fl(ke),V=new Ce(J,O+"leave",Z,l,Y),V.target=go,V.relatedTarget=U,J=null,Na(Y)===F&&(Ce=new Ce(R,O+"enter",ke,l,Y),Ce.target=U,Ce.relatedTarget=go,J=Ce),go=J,Z&&ke)o:{for(Ce=cz,R=Z,O=ke,U=0,J=R;J;J=Ce(J))U++;J=0;for(var Se=O;Se;Se=Ce(Se))J++;for(;0<U-J;)R=Ce(R),U--;for(;0<J-U;)O=Ce(O),J--;for(;U--;){if(R===O||O!==null&&R===O.alternate){Ce=R;break o}R=Ce(R),O=Ce(O)}Ce=null}else Ce=null;Z!==null&&fv(Q,V,Z,Ce,!1),ke!==null&&go!==null&&fv(Q,go,ke,Ce,!0)}}e:{if(V=F?Fl(F):window,Z=V.nodeName&&V.nodeName.toLowerCase(),Z==="select"||Z==="input"&&V.type==="file")var ro=Ch;else if(Th(V))if(Eh)ro=g2;else{ro=k2;var ge=p2}else Z=V.nodeName,!Z||Z.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?F&&Sd(F.elementType)&&(ro=Ch):ro=v2;if(ro&&(ro=ro(o,F))){Ah(Q,ro,l,Y);break e}ge&&ge(o,V,F),o==="focusout"&&F&&V.type==="number"&&F.memoizedProps.value!=null&&zd(V,"number",V.value)}switch(ge=F?Fl(F):window,o){case"focusin":(Th(ge)||ge.contentEditable==="true")&&(Va=ge,Id=F,Jl=null);break;case"focusout":Jl=Id=Va=null;break;case"mousedown":Ud=!0;break;case"contextmenu":case"mouseup":case"dragend":Ud=!1,Mh(Q,l,Y);break;case"selectionchange":if(x2)break;case"keydown":case"keyup":Mh(Q,l,Y)}var Ue;if(Rd)e:{switch(o){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else Ha?Sh(o,l)&&(Xe="onCompositionEnd"):o==="keydown"&&l.keyCode===229&&(Xe="onCompositionStart");Xe&&(yh&&l.locale!=="ko"&&(Ha||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&Ha&&(Ue=kh()):(kr=Y,Ed="value"in kr?kr.value:kr.textContent,Ha=!0)),ge=rs(F,Xe),0<ge.length&&(Xe=new _h(Xe,o,null,l,Y),Q.push({event:Xe,listeners:ge}),Ue?Xe.data=Ue:(Ue=jh(l),Ue!==null&&(Xe.data=Ue)))),(Ue=u2?f2(o,l):b2(o,l))&&(Xe=rs(F,"onBeforeInput"),0<Xe.length&&(ge=new _h("onBeforeInput","beforeinput",null,l,Y),Q.push({event:ge,listeners:Xe}),ge.data=Ue)),rz(Q,o,F,l,Y)}dv(Q,t)})}function xi(o,t,l){return{instance:o,listener:t,currentTarget:l}}function rs(o,t){for(var l=t+"Capture",s=[];o!==null;){var f=o,b=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||b===null||(f=Hl(o,l),f!=null&&s.unshift(xi(o,f,b)),f=Hl(o,t),f!=null&&s.push(xi(o,f,b))),o.tag===3)return s;o=o.return}return[]}function cz(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function fv(o,t,l,s,f){for(var b=t._reactName,k=[];l!==null&&l!==s;){var x=l,A=x.alternate,F=x.stateNode;if(x=x.tag,A!==null&&A===s)break;x!==5&&x!==26&&x!==27||F===null||(A=F,f?(F=Hl(l,b),F!=null&&k.unshift(xi(l,F,A))):f||(F=Hl(l,b),F!=null&&k.push(xi(l,F,A)))),l=l.return}k.length!==0&&o.push({event:t,listeners:k})}var sz=/\r\n?/g,dz=/\u0000|\uFFFD/g;function bv(o){return(typeof o=="string"?o:""+o).replace(sz,`
|
|
10
|
+
`).replace(dz,"")}function mv(o,t){return t=bv(t),bv(o)===t}function vo(o,t,l,s,f,b){switch(l){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Ia(o,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Ia(o,""+s);break;case"className":cc(o,"class",s);break;case"tabIndex":cc(o,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":cc(o,l,s);break;case"style":mh(o,s,b);break;case"data":if(t!=="object"){cc(o,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||l!=="href")){o.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){o.removeAttribute(l);break}s=dc(""+s),o.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="function"){o.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(l==="formAction"?(t!=="input"&&vo(o,t,"name",f.name,f,null),vo(o,t,"formEncType",f.formEncType,f,null),vo(o,t,"formMethod",f.formMethod,f,null),vo(o,t,"formTarget",f.formTarget,f,null)):(vo(o,t,"encType",f.encType,f,null),vo(o,t,"method",f.method,f,null),vo(o,t,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){o.removeAttribute(l);break}s=dc(""+s),o.setAttribute(l,s);break;case"onClick":s!=null&&(o.onclick=It);break;case"onScroll":s!=null&&Ge("scroll",o);break;case"onScrollEnd":s!=null&&Ge("scrollend",o);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(i(60));o.innerHTML=l}}break;case"multiple":o.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":o.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){o.removeAttribute("xlink:href");break}l=dc(""+s),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?o.setAttribute(l,""+s):o.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?o.setAttribute(l,""):o.removeAttribute(l);break;case"capture":case"download":s===!0?o.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?o.setAttribute(l,s):o.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?o.setAttribute(l,s):o.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?o.removeAttribute(l):o.setAttribute(l,s);break;case"popover":Ge("beforetoggle",o),Ge("toggle",o),ic(o,"popover",s);break;case"xlinkActuate":Mt(o,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Mt(o,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Mt(o,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Mt(o,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Mt(o,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Mt(o,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Mt(o,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Mt(o,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Mt(o,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ic(o,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Mw.get(l)||l,ic(o,l,s))}}function ff(o,t,l,s,f,b){switch(l){case"style":mh(o,s,b);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(i(60));o.innerHTML=l}}break;case"children":typeof s=="string"?Ia(o,s):(typeof s=="number"||typeof s=="bigint")&&Ia(o,""+s);break;case"onScroll":s!=null&&Ge("scroll",o);break;case"onScrollEnd":s!=null&&Ge("scrollend",o);break;case"onClick":s!=null&&(o.onclick=It);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ah.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),t=l.slice(2,f?l.length-7:void 0),b=o[Dn]||null,b=b!=null?b[l]:null,typeof b=="function"&&o.removeEventListener(t,b,f),typeof s=="function")){typeof b!="function"&&b!==null&&(l in o?o[l]=null:o.hasAttribute(l)&&o.removeAttribute(l)),o.addEventListener(t,s,f);break e}l in o?o[l]=s:s===!0?o.setAttribute(l,""):ic(o,l,s)}}}function hn(o,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",o),Ge("load",o);var s=!1,f=!1,b;for(b in l)if(l.hasOwnProperty(b)){var k=l[b];if(k!=null)switch(b){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:vo(o,t,b,k,l,null)}}f&&vo(o,t,"srcSet",l.srcSet,l,null),s&&vo(o,t,"src",l.src,l,null);return;case"input":Ge("invalid",o);var x=b=k=f=null,A=null,F=null;for(s in l)if(l.hasOwnProperty(s)){var Y=l[s];if(Y!=null)switch(s){case"name":f=Y;break;case"type":k=Y;break;case"checked":A=Y;break;case"defaultChecked":F=Y;break;case"value":b=Y;break;case"defaultValue":x=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:vo(o,t,s,Y,l,null)}}dh(o,b,x,A,F,k,f,!1);return;case"select":Ge("invalid",o),s=k=b=null;for(f in l)if(l.hasOwnProperty(f)&&(x=l[f],x!=null))switch(f){case"value":b=x;break;case"defaultValue":k=x;break;case"multiple":s=x;default:vo(o,t,f,x,l,null)}t=b,l=k,o.multiple=!!s,t!=null?Ma(o,!!s,t,!1):l!=null&&Ma(o,!!s,l,!0);return;case"textarea":Ge("invalid",o),b=f=s=null;for(k in l)if(l.hasOwnProperty(k)&&(x=l[k],x!=null))switch(k){case"value":s=x;break;case"defaultValue":f=x;break;case"children":b=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(i(91));break;default:vo(o,t,k,x,l,null)}fh(o,s,f,b);return;case"option":for(A in l)l.hasOwnProperty(A)&&(s=l[A],s!=null)&&(A==="selected"?o.selected=s&&typeof s!="function"&&typeof s!="symbol":vo(o,t,A,s,l,null));return;case"dialog":Ge("beforetoggle",o),Ge("toggle",o),Ge("cancel",o),Ge("close",o);break;case"iframe":case"object":Ge("load",o);break;case"video":case"audio":for(s=0;s<_i.length;s++)Ge(_i[s],o);break;case"image":Ge("error",o),Ge("load",o);break;case"details":Ge("toggle",o);break;case"embed":case"source":case"link":Ge("error",o),Ge("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(F in l)if(l.hasOwnProperty(F)&&(s=l[F],s!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:vo(o,t,F,s,l,null)}return;default:if(Sd(t)){for(Y in l)l.hasOwnProperty(Y)&&(s=l[Y],s!==void 0&&ff(o,t,Y,s,l,void 0));return}}for(x in l)l.hasOwnProperty(x)&&(s=l[x],s!=null&&vo(o,t,x,s,l,null))}function uz(o,t,l,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,b=null,k=null,x=null,A=null,F=null,Y=null;for(Z in l){var Q=l[Z];if(l.hasOwnProperty(Z)&&Q!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":A=Q;default:s.hasOwnProperty(Z)||vo(o,t,Z,null,s,Q)}}for(var V in s){var Z=s[V];if(Q=l[V],s.hasOwnProperty(V)&&(Z!=null||Q!=null))switch(V){case"type":b=Z;break;case"name":f=Z;break;case"checked":F=Z;break;case"defaultChecked":Y=Z;break;case"value":k=Z;break;case"defaultValue":x=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,t));break;default:Z!==Q&&vo(o,t,V,Z,s,Q)}}wd(o,k,x,A,F,Y,b,f);return;case"select":Z=k=x=V=null;for(b in l)if(A=l[b],l.hasOwnProperty(b)&&A!=null)switch(b){case"value":break;case"multiple":Z=A;default:s.hasOwnProperty(b)||vo(o,t,b,null,s,A)}for(f in s)if(b=s[f],A=l[f],s.hasOwnProperty(f)&&(b!=null||A!=null))switch(f){case"value":V=b;break;case"defaultValue":x=b;break;case"multiple":k=b;default:b!==A&&vo(o,t,f,b,s,A)}t=x,l=k,s=Z,V!=null?Ma(o,!!l,V,!1):!!s!=!!l&&(t!=null?Ma(o,!!l,t,!0):Ma(o,!!l,l?[]:"",!1));return;case"textarea":Z=V=null;for(x in l)if(f=l[x],l.hasOwnProperty(x)&&f!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:vo(o,t,x,null,s,f)}for(k in s)if(f=s[k],b=l[k],s.hasOwnProperty(k)&&(f!=null||b!=null))switch(k){case"value":V=f;break;case"defaultValue":Z=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==b&&vo(o,t,k,f,s,b)}uh(o,V,Z);return;case"option":for(var ke in l)V=l[ke],l.hasOwnProperty(ke)&&V!=null&&!s.hasOwnProperty(ke)&&(ke==="selected"?o.selected=!1:vo(o,t,ke,null,s,V));for(A in s)V=s[A],Z=l[A],s.hasOwnProperty(A)&&V!==Z&&(V!=null||Z!=null)&&(A==="selected"?o.selected=V&&typeof V!="function"&&typeof V!="symbol":vo(o,t,A,V,s,Z));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ce in l)V=l[Ce],l.hasOwnProperty(Ce)&&V!=null&&!s.hasOwnProperty(Ce)&&vo(o,t,Ce,null,s,V);for(F in s)if(V=s[F],Z=l[F],s.hasOwnProperty(F)&&V!==Z&&(V!=null||Z!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,t));break;default:vo(o,t,F,V,s,Z)}return;default:if(Sd(t)){for(var go in l)V=l[go],l.hasOwnProperty(go)&&V!==void 0&&!s.hasOwnProperty(go)&&ff(o,t,go,void 0,s,V);for(Y in s)V=s[Y],Z=l[Y],!s.hasOwnProperty(Y)||V===Z||V===void 0&&Z===void 0||ff(o,t,Y,V,s,Z);return}}for(var R in l)V=l[R],l.hasOwnProperty(R)&&V!=null&&!s.hasOwnProperty(R)&&vo(o,t,R,null,s,V);for(Q in s)V=s[Q],Z=l[Q],!s.hasOwnProperty(Q)||V===Z||V==null&&Z==null||vo(o,t,Q,V,s,Z)}function hv(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fz(){if(typeof performance.getEntriesByType=="function"){for(var o=0,t=0,l=performance.getEntriesByType("resource"),s=0;s<l.length;s++){var f=l[s],b=f.transferSize,k=f.initiatorType,x=f.duration;if(b&&x&&hv(k)){for(k=0,x=f.responseEnd,s+=1;s<l.length;s++){var A=l[s],F=A.startTime;if(F>x)break;var Y=A.transferSize,Q=A.initiatorType;Y&&hv(Q)&&(A=A.responseEnd,k+=Y*(A<x?1:(x-F)/(A-F)))}if(--s,t+=8*(b+k)/(f.duration/1e3),o++,10<o)break}}if(0<o)return t/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var bf=null,mf=null;function as(o){return o.nodeType===9?o:o.ownerDocument}function pv(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kv(o,t){if(o===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&t==="foreignObject"?0:o}function hf(o,t){return o==="textarea"||o==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var pf=null;function bz(){var o=window.event;return o&&o.type==="popstate"?o===pf?!1:(pf=o,!0):(pf=null,!1)}var vv=typeof setTimeout=="function"?setTimeout:void 0,mz=typeof clearTimeout=="function"?clearTimeout:void 0,gv=typeof Promise=="function"?Promise:void 0,hz=typeof queueMicrotask=="function"?queueMicrotask:typeof gv<"u"?function(o){return gv.resolve(null).then(o).catch(pz)}:vv;function pz(o){setTimeout(function(){throw o})}function Nr(o){return o==="head"}function _v(o,t){var l=t,s=0;do{var f=l.nextSibling;if(o.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(s===0){o.removeChild(f),pl(t);return}s--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")s++;else if(l==="html")yi(o.ownerDocument.documentElement);else if(l==="head"){l=o.ownerDocument.head,yi(l);for(var b=l.firstChild;b;){var k=b.nextSibling,x=b.nodeName;b[Ul]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&b.rel.toLowerCase()==="stylesheet"||l.removeChild(b),b=k}}else l==="body"&&yi(o.ownerDocument.body);l=f}while(l);pl(t)}function xv(o,t){var l=o;o=0;do{var s=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),s&&s.nodeType===8)if(l=s.data,l==="/$"){if(o===0)break;o--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||o++;l=s}while(l)}function kf(o){var t=o.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":kf(l),xd(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}o.removeChild(l)}}function kz(o,t,l,s){for(;o.nodeType===1;){var f=l;if(o.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(s){if(!o[Ul])switch(t){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(b=o.getAttribute("rel"),b==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(b!==f.rel||o.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||o.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||o.getAttribute("title")!==(f.title==null?null:f.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(b=o.getAttribute("src"),(b!==(f.src==null?null:f.src)||o.getAttribute("type")!==(f.type==null?null:f.type)||o.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&b&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(t==="input"&&o.type==="hidden"){var b=f.name==null?null:""+f.name;if(f.type==="hidden"&&o.getAttribute("name")===b)return o}else return o;if(o=gt(o.nextSibling),o===null)break}return null}function vz(o,t,l){if(t==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=gt(o.nextSibling),o===null))return null;return o}function yv(o,t){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!t||(o=gt(o.nextSibling),o===null))return null;return o}function vf(o){return o.data==="$?"||o.data==="$~"}function gf(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function gz(o,t){var l=o.ownerDocument;if(o.data==="$~")o._reactRetry=t;else if(o.data!=="$?"||l.readyState!=="loading")t();else{var s=function(){t(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),o._reactRetry=s}}function gt(o){for(;o!=null;o=o.nextSibling){var t=o.nodeType;if(t===1||t===3)break;if(t===8){if(t=o.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return o}var _f=null;function wv(o){o=o.nextSibling;for(var t=0;o;){if(o.nodeType===8){var l=o.data;if(l==="/$"||l==="/&"){if(t===0)return gt(o.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}o=o.nextSibling}return null}function zv(o){o=o.previousSibling;for(var t=0;o;){if(o.nodeType===8){var l=o.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return o;t--}else l!=="/$"&&l!=="/&"||t++}o=o.previousSibling}return null}function Sv(o,t,l){switch(t=as(l),o){case"html":if(o=t.documentElement,!o)throw Error(i(452));return o;case"head":if(o=t.head,!o)throw Error(i(453));return o;case"body":if(o=t.body,!o)throw Error(i(454));return o;default:throw Error(i(451))}}function yi(o){for(var t=o.attributes;t.length;)o.removeAttributeNode(t[0]);xd(o)}var _t=new Map,jv=new Set;function ls(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var or=G.d;G.d={f:_z,r:xz,D:yz,C:wz,L:zz,m:Sz,X:Tz,S:jz,M:Az};function _z(){var o=or.f(),t=Xc();return o||t}function xz(o){var t=Ra(o);t!==null&&t.tag===5&&t.type==="form"?Vp(t):or.r(o)}var bl=typeof document>"u"?null:document;function Tv(o,t,l){var s=bl;if(s&&typeof t=="string"&&t){var f=ft(t);f='link[rel="'+o+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),jv.has(f)||(jv.add(f),o={rel:o,crossOrigin:l,href:t},s.querySelector(f)===null&&(t=s.createElement("link"),hn(t,"link",o),cn(t),s.head.appendChild(t)))}}function yz(o){or.D(o),Tv("dns-prefetch",o,null)}function wz(o,t){or.C(o,t),Tv("preconnect",o,t)}function zz(o,t,l){or.L(o,t,l);var s=bl;if(s&&o&&t){var f='link[rel="preload"][as="'+ft(t)+'"]';t==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+ft(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+ft(l.imageSizes)+'"]')):f+='[href="'+ft(o)+'"]';var b=f;switch(t){case"style":b=ml(o);break;case"script":b=hl(o)}_t.has(b)||(o=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:o,as:t},l),_t.set(b,o),s.querySelector(f)!==null||t==="style"&&s.querySelector(wi(b))||t==="script"&&s.querySelector(zi(b))||(t=s.createElement("link"),hn(t,"link",o),cn(t),s.head.appendChild(t)))}}function Sz(o,t){or.m(o,t);var l=bl;if(l&&o){var s=t&&typeof t.as=="string"?t.as:"script",f='link[rel="modulepreload"][as="'+ft(s)+'"][href="'+ft(o)+'"]',b=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=hl(o)}if(!_t.has(b)&&(o=v({rel:"modulepreload",href:o},t),_t.set(b,o),l.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(zi(b)))return}s=l.createElement("link"),hn(s,"link",o),cn(s),l.head.appendChild(s)}}}function jz(o,t,l){or.S(o,t,l);var s=bl;if(s&&o){var f=Ba(s).hoistableStyles,b=ml(o);t=t||"default";var k=f.get(b);if(!k){var x={loading:0,preload:null};if(k=s.querySelector(wi(b)))x.loading=5;else{o=v({rel:"stylesheet",href:o,"data-precedence":t},l),(l=_t.get(b))&&xf(o,l);var A=k=s.createElement("link");cn(A),hn(A,"link",o),A._p=new Promise(function(F,Y){A.onload=F,A.onerror=Y}),A.addEventListener("load",function(){x.loading|=1}),A.addEventListener("error",function(){x.loading|=2}),x.loading|=4,is(k,t,s)}k={type:"stylesheet",instance:k,count:1,state:x},f.set(b,k)}}}function Tz(o,t){or.X(o,t);var l=bl;if(l&&o){var s=Ba(l).hoistableScripts,f=hl(o),b=s.get(f);b||(b=l.querySelector(zi(f)),b||(o=v({src:o,async:!0},t),(t=_t.get(f))&&yf(o,t),b=l.createElement("script"),cn(b),hn(b,"link",o),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},s.set(f,b))}}function Az(o,t){or.M(o,t);var l=bl;if(l&&o){var s=Ba(l).hoistableScripts,f=hl(o),b=s.get(f);b||(b=l.querySelector(zi(f)),b||(o=v({src:o,async:!0,type:"module"},t),(t=_t.get(f))&&yf(o,t),b=l.createElement("script"),cn(b),hn(b,"link",o),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},s.set(f,b))}}function Av(o,t,l,s){var f=(f=Re.current)?ls(f):null;if(!f)throw Error(i(446));switch(o){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ml(l.href),l=Ba(f).hoistableStyles,s=l.get(t),s||(s={type:"style",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){o=ml(l.href);var b=Ba(f).hoistableStyles,k=b.get(o);if(k||(f=f.ownerDocument||f,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(o,k),(b=f.querySelector(wi(o)))&&!b._p&&(k.instance=b,k.state.loading=5),_t.has(o)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},_t.set(o,l),b||Cz(f,o,l,k.state))),t&&s===null)throw Error(i(528,""));return k}if(t&&s!==null)throw Error(i(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=hl(l),l=Ba(f).hoistableScripts,s=l.get(t),s||(s={type:"script",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,o))}}function ml(o){return'href="'+ft(o)+'"'}function wi(o){return'link[rel="stylesheet"]['+o+"]"}function Cv(o){return v({},o,{"data-precedence":o.precedence,precedence:null})}function Cz(o,t,l,s){o.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=o.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),hn(t,"link",l),cn(t),o.head.appendChild(t))}function hl(o){return'[src="'+ft(o)+'"]'}function zi(o){return"script[async]"+o}function Ev(o,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var s=o.querySelector('style[data-href~="'+ft(l.href)+'"]');if(s)return t.instance=s,cn(s),s;var f=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(o.ownerDocument||o).createElement("style"),cn(s),hn(s,"style",f),is(s,l.precedence,o),t.instance=s;case"stylesheet":f=ml(l.href);var b=o.querySelector(wi(f));if(b)return t.state.loading|=4,t.instance=b,cn(b),b;s=Cv(l),(f=_t.get(f))&&xf(s,f),b=(o.ownerDocument||o).createElement("link"),cn(b);var k=b;return k._p=new Promise(function(x,A){k.onload=x,k.onerror=A}),hn(b,"link",s),t.state.loading|=4,is(b,l.precedence,o),t.instance=b;case"script":return b=hl(l.src),(f=o.querySelector(zi(b)))?(t.instance=f,cn(f),f):(s=l,(f=_t.get(b))&&(s=v({},l),yf(s,f)),o=o.ownerDocument||o,f=o.createElement("script"),cn(f),hn(f,"link",s),o.head.appendChild(f),t.instance=f);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,is(s,l.precedence,o));return t.instance}function is(o,t,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,b=f,k=0;k<s.length;k++){var x=s[k];if(x.dataset.precedence===t)b=x;else if(b!==f)break}b?b.parentNode.insertBefore(o,b.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(o,t.firstChild))}function xf(o,t){o.crossOrigin==null&&(o.crossOrigin=t.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=t.referrerPolicy),o.title==null&&(o.title=t.title)}function yf(o,t){o.crossOrigin==null&&(o.crossOrigin=t.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=t.referrerPolicy),o.integrity==null&&(o.integrity=t.integrity)}var cs=null;function Lv(o,t,l){if(cs===null){var s=new Map,f=cs=new Map;f.set(l,s)}else f=cs,s=f.get(l),s||(s=new Map,f.set(l,s));if(s.has(o))return s;for(s.set(o,null),l=l.getElementsByTagName(o),f=0;f<l.length;f++){var b=l[f];if(!(b[Ul]||b[un]||o==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var k=b.getAttribute(t)||"";k=o+k;var x=s.get(k);x?x.push(b):s.set(k,[b])}}return s}function Ov(o,t,l){o=o.ownerDocument||o,o.head.insertBefore(l,t==="title"?o.querySelector("head > title"):null)}function Ez(o,t,l){if(l===1||t.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(o=t.disabled,typeof t.precedence=="string"&&o==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function $v(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function Lz(o,t,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=ml(s.href),b=t.querySelector(wi(f));if(b){t=b._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(o.count++,o=ss.bind(o),t.then(o,o)),l.state.loading|=4,l.instance=b,cn(b);return}b=t.ownerDocument||t,s=Cv(s),(f=_t.get(f))&&xf(s,f),b=b.createElement("link"),cn(b);var k=b;k._p=new Promise(function(x,A){k.onload=x,k.onerror=A}),hn(b,"link",s),l.instance=b}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(o.count++,l=ss.bind(o),t.addEventListener("load",l),t.addEventListener("error",l))}}var wf=0;function Oz(o,t){return o.stylesheets&&o.count===0&&us(o,o.stylesheets),0<o.count||0<o.imgCount?function(l){var s=setTimeout(function(){if(o.stylesheets&&us(o,o.stylesheets),o.unsuspend){var b=o.unsuspend;o.unsuspend=null,b()}},6e4+t);0<o.imgBytes&&wf===0&&(wf=62500*fz());var f=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&us(o,o.stylesheets),o.unsuspend)){var b=o.unsuspend;o.unsuspend=null,b()}},(o.imgBytes>wf?50:800)+t);return o.unsuspend=l,function(){o.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function ss(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)us(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var ds=null;function us(o,t){o.stylesheets=null,o.unsuspend!==null&&(o.count++,ds=new Map,t.forEach($z,o),ds=null,ss.call(o))}function $z(o,t){if(!(t.state.loading&4)){var l=ds.get(o);if(l)var s=l.get(null);else{l=new Map,ds.set(o,l);for(var f=o.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<f.length;b++){var k=f[b];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(l.set(k.dataset.precedence,k),s=k)}s&&l.set(null,s)}f=t.instance,k=f.getAttribute("data-precedence"),b=l.get(k)||s,b===s&&l.set(null,f),l.set(k,f),this.count++,s=ss.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),b?b.parentNode.insertBefore(f,b.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(f,o.firstChild)),t.state.loading|=4}}var Si={$$typeof:w,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function Nz(o,t,l,s,f,b,k,x,A){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=kd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kd(0),this.hiddenUpdates=kd(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=b,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Nv(o,t,l,s,f,b,k,x,A,F,Y,Q){return o=new Nz(o,t,l,k,A,F,Y,Q,x),t=1,b===!0&&(t|=24),b=Jn(3,null,null,t),o.current=b,b.stateNode=o,t=ou(),t.refCount++,o.pooledCache=t,t.refCount++,b.memoizedState={element:s,isDehydrated:l,cache:t},au(b),o}function Rv(o){return o?(o=Za,o):Za}function Bv(o,t,l,s,f,b){f=Rv(f),s.context===null?s.context=f:s.pendingContext=f,s=wr(t),s.payload={element:l},b=b===void 0?null:b,b!==null&&(s.callback=b),l=zr(o,s,t),l!==null&&(Vn(l,o,t),ti(l,o,t))}function Dv(o,t){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var l=o.retryLane;o.retryLane=l!==0&&l<t?l:t}}function zf(o,t){Dv(o,t),(o=o.alternate)&&Dv(o,t)}function Mv(o){if(o.tag===13||o.tag===31){var t=aa(o,67108864);t!==null&&Vn(t,o,67108864),zf(o,67108864)}}function Iv(o){if(o.tag===13||o.tag===31){var t=ot();t=vd(t);var l=aa(o,t);l!==null&&Vn(l,o,t),zf(o,t)}}var fs=!0;function Rz(o,t,l,s){var f=M.T;M.T=null;var b=G.p;try{G.p=2,Sf(o,t,l,s)}finally{G.p=b,M.T=f}}function Bz(o,t,l,s){var f=M.T;M.T=null;var b=G.p;try{G.p=8,Sf(o,t,l,s)}finally{G.p=b,M.T=f}}function Sf(o,t,l,s){if(fs){var f=jf(s);if(f===null)uf(o,t,s,bs,l),Fv(o,s);else if(Mz(f,o,t,l,s))s.stopPropagation();else if(Fv(o,s),t&4&&-1<Dz.indexOf(o)){for(;f!==null;){var b=Ra(f);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var k=ea(b.pendingLanes);if(k!==0){var x=b;for(x.pendingLanes|=2,x.entangledLanes|=2;k;){var A=1<<31-Ln(k);x.entanglements[1]|=A,k&=~A}Nt(b),(io&6)===0&&(Yc=T()+500,gi(0))}}break;case 31:case 13:x=aa(b,2),x!==null&&Vn(x,b,2),Xc(),zf(b,2)}if(b=jf(s),b===null&&uf(o,t,s,bs,l),b===f)break;f=b}f!==null&&s.stopPropagation()}else uf(o,t,s,null,l)}}function jf(o){return o=Td(o),Tf(o)}var bs=null;function Tf(o){if(bs=null,o=Na(o),o!==null){var t=d(o);if(t===null)o=null;else{var l=t.tag;if(l===13){if(o=u(t),o!==null)return o;o=null}else if(l===31){if(o=m(t),o!==null)return o;o=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;o=null}else t!==o&&(o=null)}}return bs=o,null}function Uv(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(B()){case I:return 2;case le:return 8;case ie:case ne:return 32;case me:return 268435456;default:return 32}default:return 32}}var Af=!1,Rr=null,Br=null,Dr=null,ji=new Map,Ti=new Map,Mr=[],Dz="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Fv(o,t){switch(o){case"focusin":case"focusout":Rr=null;break;case"dragenter":case"dragleave":Br=null;break;case"mouseover":case"mouseout":Dr=null;break;case"pointerover":case"pointerout":ji.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ti.delete(t.pointerId)}}function Ai(o,t,l,s,f,b){return o===null||o.nativeEvent!==b?(o={blockedOn:t,domEventName:l,eventSystemFlags:s,nativeEvent:b,targetContainers:[f]},t!==null&&(t=Ra(t),t!==null&&Mv(t)),o):(o.eventSystemFlags|=s,t=o.targetContainers,f!==null&&t.indexOf(f)===-1&&t.push(f),o)}function Mz(o,t,l,s,f){switch(t){case"focusin":return Rr=Ai(Rr,o,t,l,s,f),!0;case"dragenter":return Br=Ai(Br,o,t,l,s,f),!0;case"mouseover":return Dr=Ai(Dr,o,t,l,s,f),!0;case"pointerover":var b=f.pointerId;return ji.set(b,Ai(ji.get(b)||null,o,t,l,s,f)),!0;case"gotpointercapture":return b=f.pointerId,Ti.set(b,Ai(Ti.get(b)||null,o,t,l,s,f)),!0}return!1}function Hv(o){var t=Na(o.target);if(t!==null){var l=d(t);if(l!==null){if(t=l.tag,t===13){if(t=u(l),t!==null){o.blockedOn=t,nh(o.priority,function(){Iv(l)});return}}else if(t===31){if(t=m(l),t!==null){o.blockedOn=t,nh(o.priority,function(){Iv(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){o.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}o.blockedOn=null}function ms(o){if(o.blockedOn!==null)return!1;for(var t=o.targetContainers;0<t.length;){var l=jf(o.nativeEvent);if(l===null){l=o.nativeEvent;var s=new l.constructor(l.type,l);jd=s,l.target.dispatchEvent(s),jd=null}else return t=Ra(l),t!==null&&Mv(t),o.blockedOn=l,!1;t.shift()}return!0}function Vv(o,t,l){ms(o)&&l.delete(t)}function Iz(){Af=!1,Rr!==null&&ms(Rr)&&(Rr=null),Br!==null&&ms(Br)&&(Br=null),Dr!==null&&ms(Dr)&&(Dr=null),ji.forEach(Vv),Ti.forEach(Vv)}function hs(o,t){o.blockedOn===t&&(o.blockedOn=null,Af||(Af=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Iz)))}var ps=null;function Kv(o){ps!==o&&(ps=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ps===o&&(ps=null);for(var t=0;t<o.length;t+=3){var l=o[t],s=o[t+1],f=o[t+2];if(typeof s!="function"){if(Tf(s||l)===null)continue;break}var b=Ra(l);b!==null&&(o.splice(t,3),t-=3,Su(b,{pending:!0,data:f,method:l.method,action:s},s,f))}}))}function pl(o){function t(A){return hs(A,o)}Rr!==null&&hs(Rr,o),Br!==null&&hs(Br,o),Dr!==null&&hs(Dr,o),ji.forEach(t),Ti.forEach(t);for(var l=0;l<Mr.length;l++){var s=Mr[l];s.blockedOn===o&&(s.blockedOn=null)}for(;0<Mr.length&&(l=Mr[0],l.blockedOn===null);)Hv(l),l.blockedOn===null&&Mr.shift();if(l=(o.ownerDocument||o).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var f=l[s],b=l[s+1],k=f[Dn]||null;if(typeof b=="function")k||Kv(l);else if(k){var x=null;if(b&&b.hasAttribute("formAction")){if(f=b,k=b[Dn]||null)x=k.formAction;else if(Tf(f)!==null)continue}else x=k.action;typeof x=="function"?l[s+1]=x:(l.splice(s,3),s-=3),Kv(l)}}}function qv(){function o(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(k){return f=k})},focusReset:"manual",scroll:"manual"})}function t(){f!==null&&(f(),f=null),s||setTimeout(l,20)}function l(){if(!s&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,f=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){s=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),f!==null&&(f(),f=null)}}}function Cf(o){this._internalRoot=o}ks.prototype.render=Cf.prototype.render=function(o){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,s=ot();Bv(l,s,o,t,null,null)},ks.prototype.unmount=Cf.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var t=o.containerInfo;Bv(o.current,2,null,o,null,null),Xc(),t[$a]=null}};function ks(o){this._internalRoot=o}ks.prototype.unstable_scheduleHydration=function(o){if(o){var t=oh();o={blockedOn:null,target:o,priority:t};for(var l=0;l<Mr.length&&t!==0&&t<Mr[l].priority;l++);Mr.splice(l,0,o),l===0&&Hv(o)}};var Zv=n.version;if(Zv!=="19.2.5")throw Error(i(527,Zv,"19.2.5"));G.findDOMNode=function(o){var t=o._reactInternals;if(t===void 0)throw typeof o.render=="function"?Error(i(188)):(o=Object.keys(o).join(","),Error(i(268,o)));return o=p(t),o=o!==null?g(o):null,o=o===null?null:o.stateNode,o};var Uz={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vs.isDisabled&&vs.supportsFiber)try{Ko=vs.inject(Uz),To=vs}catch{}}return Li.createRoot=function(o,t){if(!c(o))throw Error(i(299));var l=!1,s="",f=Qp,b=ek,k=ok;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(f=t.onUncaughtError),t.onCaughtError!==void 0&&(b=t.onCaughtError),t.onRecoverableError!==void 0&&(k=t.onRecoverableError)),t=Nv(o,1,!1,null,null,l,s,null,f,b,k,qv),o[$a]=t.current,df(o),new Cf(t)},Li.hydrateRoot=function(o,t,l){if(!c(o))throw Error(i(299));var s=!1,f="",b=Qp,k=ek,x=ok,A=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(b=l.onUncaughtError),l.onCaughtError!==void 0&&(k=l.onCaughtError),l.onRecoverableError!==void 0&&(x=l.onRecoverableError),l.formState!==void 0&&(A=l.formState)),t=Nv(o,1,!0,t,l??null,s,f,A,b,k,x,qv),t.context=Rv(null),l=t.current,s=ot(),s=vd(s),f=wr(s),f.callback=null,zr(l,f,s),l=s,t.current.lanes=l,Il(t,l),Nt(t),o[$a]=t.current,df(o),new ks(t)},Li.version="19.2.5",Li}var tg;function c4(){if(tg)return $f.exports;tg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),$f.exports=i4(),$f.exports}var Bx=c4();var rg="popstate";function ag(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function s4(e={}){function n(c,d){let{pathname:u="/",search:m="",hash:h=""}=Aa(c.location.hash.substring(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),pb("",{pathname:u,search:m,hash:h},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function r(c,d){let u=c.document.querySelector("base"),m="";if(u&&u.getAttribute("href")){let h=c.location.href,p=h.indexOf("#");m=p===-1?h:h.slice(0,p)}return m+"#"+(typeof d=="string"?d:Gi(d))}function i(c,d){st(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(d)})`)}return u4(n,r,i,e)}function jo(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function st(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function d4(){return Math.random().toString(36).substring(2,10)}function lg(e,n){return{usr:e.state,key:e.key,idx:n,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function pb(e,n,r=null,i,c){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Aa(n):n,state:r,key:n&&n.key||i||d4(),unstable_mask:c}}function Gi({pathname:e="/",search:n="",hash:r=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Aa(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(n.search=e.substring(i),e=e.substring(0,i)),e&&(n.pathname=e)}return n}function u4(e,n,r,i={}){let{window:c=document.defaultView,v5Compat:d=!1}=i,u=c.history,m="POP",h=null,p=g();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function g(){return(u.state||{idx:null}).idx}function v(){m="POP";let E=g(),L=E==null?null:E-p;p=E,h&&h({action:m,location:j.location,delta:L})}function _(E,L){m="PUSH";let y=ag(E)?E:pb(j.location,E,L);r&&r(y,E),p=g()+1;let w=lg(y,p),N=j.createHref(y.unstable_mask||y);try{u.pushState(w,"",N)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;c.location.assign(N)}d&&h&&h({action:m,location:j.location,delta:1})}function z(E,L){m="REPLACE";let y=ag(E)?E:pb(j.location,E,L);r&&r(y,E),p=g();let w=lg(y,p),N=j.createHref(y.unstable_mask||y);u.replaceState(w,"",N),d&&h&&h({action:m,location:j.location,delta:0})}function $(E){return f4(E)}let j={get action(){return m},get location(){return e(c,u)},listen(E){if(h)throw new Error("A history only accepts one active listener");return c.addEventListener(rg,v),h=E,()=>{c.removeEventListener(rg,v),h=null}},createHref(E){return n(c,E)},createURL:$,encodeLocation(E){let L=$(E);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:_,replace:z,go(E){return u.go(E)}};return j}function f4(e,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),jo(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Gi(e);return i=i.replace(/ $/,"%20"),!n&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function Dx(e,n,r="/"){return b4(e,n,r,!1)}function b4(e,n,r,i){let c=typeof n=="string"?Aa(n):n,d=sr(c.pathname||"/",r);if(d==null)return null;let u=Mx(e);m4(u);let m=null;for(let h=0;m==null&&h<u.length;++h){let p=Ux(d);m=w4(u[h],p,i)}return m}function Mx(e,n=[],r=[],i="",c=!1){let d=(u,m,h=c,p)=>{let g={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:m,route:u};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(i)&&h)return;jo(g.relativePath.startsWith(i),`Absolute route path "${g.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(i.length)}let v=At([i,g.relativePath]),_=r.concat(g);u.children&&u.children.length>0&&(jo(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Mx(u.children,n,_,v,h)),!(u.path==null&&!u.index)&&n.push({path:v,score:x4(v,u.index),routesMeta:_})};return e.forEach((u,m)=>{if(u.path===""||!u.path?.includes("?"))d(u,m);else for(let h of Ix(u.path))d(u,m,!0,h)}),n}function Ix(e){let n=e.split("/");if(n.length===0)return[];let[r,...i]=n,c=r.endsWith("?"),d=r.replace(/\?$/,"");if(i.length===0)return c?[d,""]:[d];let u=Ix(i.join("/")),m=[];return m.push(...u.map(h=>h===""?d:[d,h].join("/"))),c&&m.push(...u),m.map(h=>e.startsWith("/")&&h===""?"/":h)}function m4(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:y4(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var h4=/^:[\w-]+$/,p4=3,k4=2,v4=1,g4=10,_4=-2,ig=e=>e==="*";function x4(e,n){let r=e.split("/"),i=r.length;return r.some(ig)&&(i+=_4),n&&(i+=k4),r.filter(c=>!ig(c)).reduce((c,d)=>c+(h4.test(d)?p4:d===""?v4:g4),i)}function y4(e,n){return e.length===n.length&&e.slice(0,-1).every((i,c)=>i===n[c])?e[e.length-1]-n[n.length-1]:0}function w4(e,n,r=!1){let{routesMeta:i}=e,c={},d="/",u=[];for(let m=0;m<i.length;++m){let h=i[m],p=m===i.length-1,g=d==="/"?n:n.slice(d.length)||"/",v=Yi({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),_=h.route;if(!v&&p&&r&&!i[i.length-1].route.index&&(v=Yi({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!v)return null;Object.assign(c,v.params),u.push({params:c,pathname:At([d,v.pathname]),pathnameBase:A4(At([d,v.pathnameBase])),route:_}),v.pathnameBase!=="/"&&(d=At([d,v.pathnameBase]))}return u}function Yi(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=z4(e.path,e.caseSensitive,e.end),c=n.match(r);if(!c)return null;let d=c[0],u=d.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:i.reduce((p,{paramName:g,isOptional:v},_)=>{if(g==="*"){let $=m[_]||"";u=d.slice(0,d.length-$.length).replace(/(.)\/+$/,"$1")}const z=m[_];return v&&!z?p[g]=void 0:p[g]=(z||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:u,pattern:e}}function z4(e,n=!1,r=!0){st(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],c="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,m,h,p,g)=>{if(i.push({paramName:m,isOptional:h!=null}),h){let v=g.charAt(p+u.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),c+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?c+="\\/*$":e!==""&&e!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,n?void 0:"i"),i]}function Ux(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return st(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function sr(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}var S4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function j4(e,n="/"){let{pathname:r,search:i="",hash:c=""}=typeof e=="string"?Aa(e):e,d;return r?(r=Fx(r),r.startsWith("/")?d=cg(r.substring(1),"/"):d=cg(r,n)):d=n,{pathname:d,search:C4(i),hash:E4(c)}}function cg(e,n){let r=Is(n).split("/");return e.split("/").forEach(c=>{c===".."?r.length>1&&r.pop():c!=="."&&r.push(c)}),r.length>1?r.join("/"):"/"}function Df(e,n,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function T4(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function lm(e){let n=T4(e);return n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase)}function td(e,n,r,i=!1){let c;typeof e=="string"?c=Aa(e):(c={...e},jo(!c.pathname||!c.pathname.includes("?"),Df("?","pathname","search",c)),jo(!c.pathname||!c.pathname.includes("#"),Df("#","pathname","hash",c)),jo(!c.search||!c.search.includes("#"),Df("#","search","hash",c)));let d=e===""||c.pathname==="",u=d?"/":c.pathname,m;if(u==null)m=r;else{let v=n.length-1;if(!i&&u.startsWith("..")){let _=u.split("/");for(;_[0]==="..";)_.shift(),v-=1;c.pathname=_.join("/")}m=v>=0?n[v]:"/"}let h=j4(c,m),p=u&&u!=="/"&&u.endsWith("/"),g=(d||u===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}var Fx=e=>e.replace(/\/\/+/g,"/"),At=e=>Fx(e.join("/")),Is=e=>e.replace(/\/+$/,""),A4=e=>Is(e).replace(/^\/*/,"/"),C4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,E4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,L4=class{constructor(e,n,r,i=!1){this.status=e,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function O4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function $4(e){let n=e.map(r=>r.route.path).filter(Boolean);return At(n)||"/"}var Hx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Vx(e,n){let r=e;if(typeof r!="string"||!S4.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let i=r,c=!1;if(Hx)try{let d=new URL(window.location.href),u=r.startsWith("//")?new URL(d.protocol+r):new URL(r),m=sr(u.pathname,n);u.origin===d.origin&&m!=null?r=m+u.search+u.hash:c=!0}catch{st(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:c,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Kx=["POST","PUT","PATCH","DELETE"];new Set(Kx);var N4=["GET",...Kx];new Set(N4);var $l=S.createContext(null);$l.displayName="DataRouter";var rd=S.createContext(null);rd.displayName="DataRouterState";var qx=S.createContext(!1);function R4(){return S.useContext(qx)}var Zx=S.createContext({isTransitioning:!1});Zx.displayName="ViewTransition";var B4=S.createContext(new Map);B4.displayName="Fetchers";var D4=S.createContext(null);D4.displayName="Await";var dt=S.createContext(null);dt.displayName="Navigation";var rc=S.createContext(null);rc.displayName="Location";var Ct=S.createContext({outlet:null,matches:[],isDataRoute:!1});Ct.displayName="Route";var im=S.createContext(null);im.displayName="RouteError";var Px="REACT_ROUTER_ERROR",M4="REDIRECT",I4="ROUTE_ERROR_RESPONSE";function U4(e){if(e.startsWith(`${Px}:${M4}:{`))try{let n=JSON.parse(e.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function F4(e){if(e.startsWith(`${Px}:${I4}:{`))try{let n=JSON.parse(e.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new L4(n.status,n.statusText,n.data)}catch{}}function Gx(e,{relative:n}={}){jo(Ca(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=S.useContext(dt),{hash:c,pathname:d,search:u}=Nl(e,{relative:n}),m=d;return r!=="/"&&(m=d==="/"?r:At([r,d])),i.createHref({pathname:m,search:u,hash:c})}function Ca(){return S.useContext(rc)!=null}function Bn(){return jo(Ca(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(rc).location}function H4(e){jo(Ca(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:n}=Bn();return S.useMemo(()=>Yi(e,Ux(n)),[n,e])}var Yx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Jx(e){S.useContext(dt).static||S.useLayoutEffect(e)}function ad(){let{isDataRoute:e}=S.useContext(Ct);return e?n6():V4()}function V4(){jo(Ca(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext($l),{basename:n,navigator:r}=S.useContext(dt),{matches:i}=S.useContext(Ct),{pathname:c}=Bn(),d=JSON.stringify(lm(i)),u=S.useRef(!1);return Jx(()=>{u.current=!0}),S.useCallback((h,p={})=>{if(st(u.current,Yx),!u.current)return;if(typeof h=="number"){r.go(h);return}let g=td(h,JSON.parse(d),c,p.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:At([n,g.pathname])),(p.replace?r.replace:r.push)(g,p.state,p)},[n,r,d,c,e])}S.createContext(null);function K4(){let{matches:e}=S.useContext(Ct);return e[e.length-1]?.params??{}}function Nl(e,{relative:n}={}){let{matches:r}=S.useContext(Ct),{pathname:i}=Bn(),c=JSON.stringify(lm(r));return S.useMemo(()=>td(e,JSON.parse(c),i,n==="path"),[e,c,i,n])}function q4(e,n){return Xx(e,n)}function Xx(e,n,r){jo(Ca(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=S.useContext(dt),{matches:c}=S.useContext(Ct),d=c[c.length-1],u=d?d.params:{},m=d?d.pathname:"/",h=d?d.pathnameBase:"/",p=d&&d.route;{let E=p&&p.path||"";Qx(m,!p||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
11
11
|
|
|
12
|
-
Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let g=Nn(),v;if(n){let E=typeof n=="string"?Ta(n):n;jo(h==="/"||E.pathname?.startsWith(h),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${E.pathname}" was given in the \`location\` prop.`),v=E}else v=g;let _=v.pathname||"/",z=_;if(h!=="/"){let E=h.replace(/^\//,"").split("/");z="/"+_.replace(/^\//,"").split("/").slice(E.length).join("/")}let $=Dx(e,{pathname:z});lt(p||$!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),lt($==null||$[$.length-1].route.element!==void 0||$[$.length-1].route.Component!==void 0||$[$.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let j=J4($&&$.map(E=>Object.assign({},E,{params:Object.assign({},u,E.params),pathname:At([h,i.encodeLocation?i.encodeLocation(E.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?h:At([h,i.encodeLocation?i.encodeLocation(E.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),c,r);return n&&j?S.createElement(nc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},j):j}function Z4(){let e=o6(),n=O4(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:i},d={padding:"2px 4px",backgroundColor:i},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:d},"ErrorBoundary")," or"," ",S.createElement("code",{style:d},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},n),r?S.createElement("pre",{style:c},r):null,u)}var P4=S.createElement(Z4,null),Wx=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.onError?this.props.onError(e,n):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=F4(e.digest);r&&(e=r)}let n=e!==void 0?S.createElement(Ct.Provider,{value:this.props.routeContext},S.createElement(im.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?S.createElement(G4,{error:e},n):n}};Wx.contextType=qx;var Mf=new WeakMap;function G4({children:e,error:n}){let{basename:r}=S.useContext(it);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let i=U4(n.digest);if(i){let c=Mf.get(n);if(c)throw c;let d=Vx(i.location,r);if(Hx&&!Mf.get(n))if(d.isExternal||i.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:i.replace}));throw Mf.set(n,u),u}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return e}function Y4({routeContext:e,match:n,children:r}){let i=S.useContext(Ol);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Ct.Provider,{value:e},r)}function J4(e,n=[],r){let i=r?.state;if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(n.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let c=e,d=i?.errors;if(d!=null){let g=c.findIndex(v=>v.route.id&&d?.[v.route.id]!==void 0);jo(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),c=c.slice(0,Math.min(c.length,g+1))}let u=!1,m=-1;if(r&&i){u=i.renderFallback;for(let g=0;g<c.length;g++){let v=c[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(m=g),v.route.id){let{loaderData:_,errors:z}=i,$=v.route.loader&&!_.hasOwnProperty(v.route.id)&&(!z||z[v.route.id]===void 0);if(v.route.lazy||$){r.isStatic&&(u=!0),m>=0?c=c.slice(0,m+1):c=[c[0]];break}}}}let h=r?.onError,p=i&&h?(g,v)=>{h(g,{location:i.location,params:i.matches?.[0]?.params??{},unstable_pattern:$4(i.matches),errorInfo:v})}:void 0;return c.reduceRight((g,v,_)=>{let z,$=!1,j=null,E=null;i&&(z=d&&v.route.id?d[v.route.id]:void 0,j=v.route.errorElement||P4,u&&(m<0&&_===0?(Qx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),$=!0,E=null):m===_&&($=!0,E=v.route.hydrateFallbackElement||null)));let L=n.concat(c.slice(0,_+1)),y=()=>{let w;return z?w=j:$?w=E:v.route.Component?w=S.createElement(v.route.Component,null):v.route.element?w=v.route.element:w=g,S.createElement(Y4,{match:v,routeContext:{outlet:g,matches:L,isDataRoute:i!=null},children:w})};return i&&(v.route.ErrorBoundary||v.route.errorElement||_===0)?S.createElement(Wx,{location:i.location,revalidation:i.revalidation,component:j,error:z,children:y(),routeContext:{outlet:null,matches:L,isDataRoute:!0},onError:p}):y()},null)}function cm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function X4(e){let n=S.useContext(Ol);return jo(n,cm(e)),n}function W4(e){let n=S.useContext(rd);return jo(n,cm(e)),n}function Q4(e){let n=S.useContext(Ct);return jo(n,cm(e)),n}function sm(e){let n=Q4(e),r=n.matches[n.matches.length-1];return jo(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function e6(){return sm("useRouteId")}function o6(){let e=S.useContext(im),n=W4("useRouteError"),r=sm("useRouteError");return e!==void 0?e:n.errors?.[r]}function n6(){let{router:e}=X4("useNavigate"),n=sm("useNavigate"),r=S.useRef(!1);return Jx(()=>{r.current=!0}),S.useCallback(async(c,d={})=>{lt(r.current,Yx),r.current&&(typeof c=="number"?await e.navigate(c):await e.navigate(c,{fromRouteId:n,...d}))},[e,n])}var sg={};function Qx(e,n,r){!n&&!sg[e]&&(sg[e]=!0,lt(!1,r))}S.memo(t6);function t6({routes:e,future:n,state:r,isStatic:i,onError:c}){return Xx(e,void 0,{state:r,isStatic:i,onError:c})}function ey({to:e,replace:n,state:r,relative:i}){jo(Aa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=S.useContext(it);lt(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=S.useContext(Ct),{pathname:u}=Nn(),m=ad(),h=td(e,lm(d),u,i==="path"),p=JSON.stringify(h);return S.useEffect(()=>{m(JSON.parse(p),{replace:n,state:r,relative:i})},[m,p,i,n,r]),null}function _a(e){jo(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function r6({basename:e="/",children:n=null,location:r,navigationType:i="POP",navigator:c,static:d=!1,unstable_useTransitions:u}){jo(!Aa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=e.replace(/^\/*/,"/"),h=S.useMemo(()=>({basename:m,navigator:c,static:d,unstable_useTransitions:u,future:{}}),[m,c,d,u]);typeof r=="string"&&(r=Ta(r));let{pathname:p="/",search:g="",hash:v="",state:_=null,key:z="default",unstable_mask:$}=r,j=S.useMemo(()=>{let E=ur(p,m);return E==null?null:{location:{pathname:E,search:g,hash:v,state:_,key:z,unstable_mask:$},navigationType:i}},[m,p,g,v,_,z,i,$]);return lt(j!=null,`<Router basename="${m}"> is not able to match the URL "${p}${g}${v}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:S.createElement(it.Provider,{value:h},S.createElement(nc.Provider,{children:n,value:j}))}function oy({children:e,location:n}){return q4(kb(e),n)}function kb(e,n=[]){let r=[];return S.Children.forEach(e,(i,c)=>{if(!S.isValidElement(i))return;let d=[...n,c];if(i.type===S.Fragment){r.push.apply(r,kb(i.props.children,d));return}jo(i.type===_a,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),jo(!i.props.index||!i.props.children,"An index route cannot have child routes.");let u={id:i.props.id||d.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(u.children=kb(i.props.children,d)),r.push(u)}),r}var Es="get",Ls="application/x-www-form-urlencoded";function ld(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function a6(e){return ld(e)&&e.tagName.toLowerCase()==="button"}function l6(e){return ld(e)&&e.tagName.toLowerCase()==="form"}function i6(e){return ld(e)&&e.tagName.toLowerCase()==="input"}function c6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function s6(e,n){return e.button===0&&(!n||n==="_self")&&!c6(e)}function vb(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,r)=>{let i=e[r];return n.concat(Array.isArray(i)?i.map(c=>[r,c]):[[r,i]])},[]))}function d6(e,n){let r=vb(e);return n&&n.forEach((i,c)=>{r.has(c)||n.getAll(c).forEach(d=>{r.append(c,d)})}),r}var _s=null;function u6(){if(_s===null)try{new FormData(document.createElement("form"),0),_s=!1}catch{_s=!0}return _s}var f6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function If(e){return e!=null&&!f6.has(e)?(lt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ls}"`),null):e}function b6(e,n){let r,i,c,d,u;if(l6(e)){let m=e.getAttribute("action");i=m?ur(m,n):null,r=e.getAttribute("method")||Es,c=If(e.getAttribute("enctype"))||Ls,d=new FormData(e)}else if(a6(e)||i6(e)&&(e.type==="submit"||e.type==="image")){let m=e.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||m.getAttribute("action");if(i=h?ur(h,n):null,r=e.getAttribute("formmethod")||m.getAttribute("method")||Es,c=If(e.getAttribute("formenctype"))||If(m.getAttribute("enctype"))||Ls,d=new FormData(m,e),!u6()){let{name:p,type:g,value:v}=e;if(g==="image"){let _=p?`${p}.`:"";d.append(`${_}x`,"0"),d.append(`${_}y`,"0")}else p&&d.append(p,v)}}else{if(ld(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Es,i=null,c=Ls,u=e}return d&&c==="text/plain"&&(u=d,d=void 0),{action:i,method:r.toLowerCase(),encType:c,formData:d,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function dm(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function ny(e,n,r,i){let c=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${i}`:c.pathname=`${c.pathname}.${i}`:c.pathname==="/"?c.pathname=`_root.${i}`:n&&ur(c.pathname,n)==="/"?c.pathname=`${Is(n)}/_root.${i}`:c.pathname=`${Is(c.pathname)}.${i}`,c}async function m6(e,n){if(e.id in n)return n[e.id];try{let r=await import(e.module);return n[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function h6(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function p6(e,n,r){let i=await Promise.all(e.map(async c=>{let d=n.routes[c.route.id];if(d){let u=await m6(d,r);return u.links?u.links():[]}return[]}));return _6(i.flat(1).filter(h6).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function dg(e,n,r,i,c,d){let u=(h,p)=>r[p]?h.route.id!==r[p].route.id:!0,m=(h,p)=>r[p].pathname!==h.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==h.params["*"];return d==="assets"?n.filter((h,p)=>u(h,p)||m(h,p)):d==="data"?n.filter((h,p)=>{let g=i.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(u(h,p)||m(h,p))return!0;if(h.route.shouldRevalidate){let v=h.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function k6(e,n,{includeHydrateFallback:r}={}){return v6(e.map(i=>{let c=n.routes[i.route.id];if(!c)return[];let d=[c.module];return c.clientActionModule&&(d=d.concat(c.clientActionModule)),c.clientLoaderModule&&(d=d.concat(c.clientLoaderModule)),r&&c.hydrateFallbackModule&&(d=d.concat(c.hydrateFallbackModule)),c.imports&&(d=d.concat(c.imports)),d}).flat(1))}function v6(e){return[...new Set(e)]}function g6(e){let n={},r=Object.keys(e).sort();for(let i of r)n[i]=e[i];return n}function _6(e,n){let r=new Set;return new Set(n),e.reduce((i,c)=>{let d=JSON.stringify(g6(c));return r.has(d)||(r.add(d),i.push({key:d,link:c})),i},[])}function um(){let e=S.useContext(Ol);return dm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function x6(){let e=S.useContext(rd);return dm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var fm=S.createContext(void 0);fm.displayName="FrameworkContext";function bm(){let e=S.useContext(fm);return dm(e,"You must render this element inside a <HydratedRouter> element"),e}function y6(e,n){let r=S.useContext(fm),[i,c]=S.useState(!1),[d,u]=S.useState(!1),{onFocus:m,onBlur:h,onMouseEnter:p,onMouseLeave:g,onTouchStart:v}=n,_=S.useRef(null);S.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let j=L=>{L.forEach(y=>{u(y.isIntersecting)})},E=new IntersectionObserver(j,{threshold:.5});return _.current&&E.observe(_.current),()=>{E.disconnect()}}},[e]),S.useEffect(()=>{if(i){let j=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(j)}}},[i]);let z=()=>{c(!0)},$=()=>{c(!1),u(!1)};return r?e!=="intent"?[d,_,{}]:[d,_,{onFocus:Ei(m,z),onBlur:Ei(h,$),onMouseEnter:Ei(p,z),onMouseLeave:Ei(g,$),onTouchStart:Ei(v,z)}]:[!1,_,{}]}function Ei(e,n){return r=>{e&&e(r),r.defaultPrevented||n(r)}}function w6({page:e,...n}){let r=R4(),{router:i}=um(),c=S.useMemo(()=>Dx(i.routes,e,i.basename),[i.routes,e,i.basename]);return c?r?S.createElement(S6,{page:e,matches:c,...n}):S.createElement(j6,{page:e,matches:c,...n}):null}function z6(e){let{manifest:n,routeModules:r}=bm(),[i,c]=S.useState([]);return S.useEffect(()=>{let d=!1;return p6(e,n,r).then(u=>{d||c(u)}),()=>{d=!0}},[e,n,r]),i}function S6({page:e,matches:n,...r}){let i=Nn(),{future:c}=bm(),{basename:d}=um(),u=S.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let m=ny(e,d,c.unstable_trailingSlashAwareDataRequests,"rsc"),h=!1,p=[];for(let g of n)typeof g.route.shouldRevalidate=="function"?h=!0:p.push(g.route.id);return h&&p.length>0&&m.searchParams.set("_routes",p.join(",")),[m.pathname+m.search]},[d,c.unstable_trailingSlashAwareDataRequests,e,i,n]);return S.createElement(S.Fragment,null,u.map(m=>S.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...r})))}function j6({page:e,matches:n,...r}){let i=Nn(),{future:c,manifest:d,routeModules:u}=bm(),{basename:m}=um(),{loaderData:h,matches:p}=x6(),g=S.useMemo(()=>dg(e,n,p,d,i,"data"),[e,n,p,d,i]),v=S.useMemo(()=>dg(e,n,p,d,i,"assets"),[e,n,p,d,i]),_=S.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let j=new Set,E=!1;if(n.forEach(y=>{let w=d.routes[y.route.id];!w||!w.hasLoader||(!g.some(N=>N.route.id===y.route.id)&&y.route.id in h&&u[y.route.id]?.shouldRevalidate||w.hasClientLoader?E=!0:j.add(y.route.id))}),j.size===0)return[];let L=ny(e,m,c.unstable_trailingSlashAwareDataRequests,"data");return E&&j.size>0&&L.searchParams.set("_routes",n.filter(y=>j.has(y.route.id)).map(y=>y.route.id).join(",")),[L.pathname+L.search]},[m,c.unstable_trailingSlashAwareDataRequests,h,i,d,g,n,e,u]),z=S.useMemo(()=>k6(v,d),[v,d]),$=z6(v);return S.createElement(S.Fragment,null,_.map(j=>S.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...r})),z.map(j=>S.createElement("link",{key:j,rel:"modulepreload",href:j,...r})),$.map(({key:j,link:E})=>S.createElement("link",{key:j,nonce:r.nonce,...E,crossOrigin:E.crossOrigin??r.crossOrigin})))}function T6(...e){return n=>{e.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var A6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{A6&&(window.__reactRouterVersion="7.14.2")}catch{}function C6({basename:e,children:n,unstable_useTransitions:r,window:i}){let c=S.useRef();c.current==null&&(c.current=s4({window:i,v5Compat:!0}));let d=c.current,[u,m]=S.useState({action:d.action,location:d.location}),h=S.useCallback(p=>{r===!1?m(p):S.startTransition(()=>m(p))},[r]);return S.useLayoutEffect(()=>d.listen(h),[d,h]),S.createElement(r6,{basename:e,children:n,location:u.location,navigationType:u.action,navigator:d,unstable_useTransitions:r})}var ty=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ry=S.forwardRef(function({onClick:n,discover:r="render",prefetch:i="none",relative:c,reloadDocument:d,replace:u,unstable_mask:m,state:h,target:p,to:g,preventScrollReset:v,viewTransition:_,unstable_defaultShouldRevalidate:z,...$},j){let{basename:E,navigator:L,unstable_useTransitions:y}=S.useContext(it),w=typeof g=="string"&&ty.test(g),N=Vx(g,E);g=N.to;let D=Gx(g,{relative:c}),H=Nn(),q=null;if(m){let $e=td(m,[],H.unstable_mask?H.unstable_mask.pathname:"/",!0);E!=="/"&&($e.pathname=$e.pathname==="/"?E:At([E,$e.pathname])),q=L.createHref($e)}let[oe,ce,Ve]=y6(i,$),ie=$6(g,{replace:u,unstable_mask:m,state:h,target:p,preventScrollReset:v,relative:c,viewTransition:_,unstable_defaultShouldRevalidate:z,unstable_useTransitions:y});function ee($e){n&&n($e),$e.defaultPrevented||ie($e)}let _e=!(N.isExternal||d),Te=S.createElement("a",{...$,...Ve,href:(_e?q:void 0)||N.absoluteURL||D,onClick:_e?ee:n,ref:T6(j,ce),target:p,"data-discover":!w&&r==="render"?"true":void 0});return oe&&!w?S.createElement(S.Fragment,null,Te,S.createElement(w6,{page:D})):Te});ry.displayName="Link";var E6=S.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:i="",end:c=!1,style:d,to:u,viewTransition:m,children:h,...p},g){let v=$l(u,{relative:p.relative}),_=Nn(),z=S.useContext(rd),{navigator:$,basename:j}=S.useContext(it),E=z!=null&&M6(v)&&m===!0,L=$.encodeLocation?$.encodeLocation(v).pathname:v.pathname,y=_.pathname,w=z&&z.navigation&&z.navigation.location?z.navigation.location.pathname:null;r||(y=y.toLowerCase(),w=w?w.toLowerCase():null,L=L.toLowerCase()),w&&j&&(w=ur(w,j)||w);const N=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let D=y===L||!c&&y.startsWith(L)&&y.charAt(N)==="/",H=w!=null&&(w===L||!c&&w.startsWith(L)&&w.charAt(L.length)==="/"),q={isActive:D,isPending:H,isTransitioning:E},oe=D?n:void 0,ce;typeof i=="function"?ce=i(q):ce=[i,D?"active":null,H?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let Ve=typeof d=="function"?d(q):d;return S.createElement(ry,{...p,"aria-current":oe,className:ce,ref:g,style:Ve,to:u,viewTransition:m},typeof h=="function"?h(q):h)});E6.displayName="NavLink";var L6=S.forwardRef(({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:i,replace:c,state:d,method:u=Es,action:m,onSubmit:h,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:_,...z},$)=>{let{unstable_useTransitions:j}=S.useContext(it),E=B6(),L=D6(m,{relative:p}),y=u.toLowerCase()==="get"?"get":"post",w=typeof m=="string"&&ty.test(m),N=D=>{if(h&&h(D),D.defaultPrevented)return;D.preventDefault();let H=D.nativeEvent.submitter,q=H?.getAttribute("formmethod")||u,oe=()=>E(H||D.currentTarget,{fetcherKey:n,method:q,navigate:r,replace:c,state:d,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:_});j&&r!==!1?S.startTransition(()=>oe()):oe()};return S.createElement("form",{ref:$,method:y,action:L,onSubmit:i?h:N,...z,"data-discover":!w&&e==="render"?"true":void 0})});L6.displayName="Form";function O6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ay(e){let n=S.useContext(Ol);return jo(n,O6(e)),n}function $6(e,{target:n,replace:r,unstable_mask:i,state:c,preventScrollReset:d,relative:u,viewTransition:m,unstable_defaultShouldRevalidate:h,unstable_useTransitions:p}={}){let g=ad(),v=Nn(),_=$l(e,{relative:u});return S.useCallback(z=>{if(s6(z,n)){z.preventDefault();let $=r!==void 0?r:Zi(v)===Zi(_),j=()=>g(e,{replace:$,unstable_mask:i,state:c,preventScrollReset:d,relative:u,viewTransition:m,unstable_defaultShouldRevalidate:h});p?S.startTransition(()=>j()):j()}},[v,g,_,r,i,c,n,e,d,u,m,h,p])}function Pr(e){lt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=S.useRef(vb(e)),r=S.useRef(!1),i=Nn(),c=S.useMemo(()=>d6(i.search,r.current?null:n.current),[i.search]),d=ad(),u=S.useCallback((m,h)=>{const p=vb(typeof m=="function"?m(new URLSearchParams(c)):m);r.current=!0,d("?"+p,h)},[d,c]);return[c,u]}var N6=0,R6=()=>`__${String(++N6)}__`;function B6(){let{router:e}=ay("useSubmit"),{basename:n}=S.useContext(it),r=e6(),i=e.fetch,c=e.navigate;return S.useCallback(async(d,u={})=>{let{action:m,method:h,encType:p,formData:g,body:v}=b6(d,n);if(u.navigate===!1){let _=u.fetcherKey||R6();await i(_,r,u.action||m,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:g,body:v,formMethod:u.method||h,formEncType:u.encType||p,flushSync:u.flushSync})}else await c(u.action||m,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:g,body:v,formMethod:u.method||h,formEncType:u.encType||p,replace:u.replace,state:u.state,fromRouteId:r,flushSync:u.flushSync,viewTransition:u.viewTransition})},[i,c,n,r])}function D6(e,{relative:n}={}){let{basename:r}=S.useContext(it),i=S.useContext(Ct);jo(i,"useFormAction must be used inside a RouteContext");let[c]=i.matches.slice(-1),d={...$l(e||".",{relative:n})},u=Nn();if(e==null){d.search=u.search;let m=new URLSearchParams(d.search),h=m.getAll("index");if(h.some(g=>g==="")){m.delete("index"),h.filter(v=>v).forEach(v=>m.append("index",v));let g=m.toString();d.search=g?`?${g}`:""}}return(!e||e===".")&&c.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(d.pathname=d.pathname==="/"?r:At([r,d.pathname])),Zi(d)}function M6(e,{relative:n}={}){let r=S.useContext(Zx);jo(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=ay("useViewTransitionState"),c=$l(e,{relative:n});if(!r.isTransitioning)return!1;let d=ur(r.currentLocation.pathname,i)||r.currentLocation.pathname,u=ur(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Pi(c.pathname,u)!=null||Pi(c.pathname,d)!=null}var gb={};function id(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Os={exports:{}},I6=Os.exports,ug;function U6(){return ug||(ug=1,(function(e){(function(n,r){e.exports?e.exports=r():n.log=r()})(I6,function(){var n=function(){},r="undefined",i=typeof window!==r&&typeof window.navigator!==r&&/Trident\/|MSIE /.test(window.navigator.userAgent),c=["trace","debug","info","warn","error"],d={},u=null;function m(j,E){var L=j[E];if(typeof L.bind=="function")return L.bind(j);try{return Function.prototype.bind.call(L,j)}catch{return function(){return Function.prototype.apply.apply(L,[j,arguments])}}}function h(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function p(j){return j==="debug"&&(j="log"),typeof console===r?!1:j==="trace"&&i?h:console[j]!==void 0?m(console,j):console.log!==void 0?m(console,"log"):n}function g(){for(var j=this.getLevel(),E=0;E<c.length;E++){var L=c[E];this[L]=E<j?n:this.methodFactory(L,j,this.name)}if(this.log=this.debug,typeof console===r&&j<this.levels.SILENT)return"No console available for logging"}function v(j){return function(){typeof console!==r&&(g.call(this),this[j].apply(this,arguments))}}function _(j,E,L){return p(j)||v.apply(this,arguments)}function z(j,E){var L=this,y,w,N,D="loglevel";typeof j=="string"?D+=":"+j:typeof j=="symbol"&&(D=void 0);function H(ie){var ee=(c[ie]||"silent").toUpperCase();if(!(typeof window===r||!D)){try{window.localStorage[D]=ee;return}catch{}try{window.document.cookie=encodeURIComponent(D)+"="+ee+";"}catch{}}}function q(){var ie;if(!(typeof window===r||!D)){try{ie=window.localStorage[D]}catch{}if(typeof ie===r)try{var ee=window.document.cookie,_e=encodeURIComponent(D),Te=ee.indexOf(_e+"=");Te!==-1&&(ie=/^([^;]+)/.exec(ee.slice(Te+_e.length+1))[1])}catch{}return L.levels[ie]===void 0&&(ie=void 0),ie}}function oe(){if(!(typeof window===r||!D)){try{window.localStorage.removeItem(D)}catch{}try{window.document.cookie=encodeURIComponent(D)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function ce(ie){var ee=ie;if(typeof ee=="string"&&L.levels[ee.toUpperCase()]!==void 0&&(ee=L.levels[ee.toUpperCase()]),typeof ee=="number"&&ee>=0&&ee<=L.levels.SILENT)return ee;throw new TypeError("log.setLevel() called with invalid level: "+ie)}L.name=j,L.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},L.methodFactory=E||_,L.getLevel=function(){return N??w??y},L.setLevel=function(ie,ee){return N=ce(ie),ee!==!1&&H(N),g.call(L)},L.setDefaultLevel=function(ie){w=ce(ie),q()||L.setLevel(ie,!1)},L.resetLevel=function(){N=null,oe(),g.call(L)},L.enableAll=function(ie){L.setLevel(L.levels.TRACE,ie)},L.disableAll=function(ie){L.setLevel(L.levels.SILENT,ie)},L.rebuild=function(){if(u!==L&&(y=ce(u.getLevel())),g.call(L),u===L)for(var ie in d)d[ie].rebuild()},y=ce(u?u.getLevel():"WARN");var Ve=q();Ve!=null&&(N=ce(Ve)),g.call(L)}u=new z,u.getLogger=function(E){if(typeof E!="symbol"&&typeof E!="string"||E==="")throw new TypeError("You must supply a name when creating a logger.");var L=d[E];return L||(L=d[E]=new z(E,u.methodFactory)),L};var $=typeof window!==r?window.log:void 0;return u.noConflict=function(){return typeof window!==r&&window.log===u&&(window.log=$),u},u.getLoggers=function(){return d},u.default=u,u})})(Os)),Os.exports}var F6=U6(),Us=id(F6);const H6=()=>{const e=typeof process<"u"&&gb?gb:{},n=e.NODE_ENV==="test",r="VITEST"in e,i="JEST_WORKER_ID"in e,c="PLAYWRIGHT_TEST_BASE_URL"in e,d=e.CI==="true",u=e.TEST==="true"||e.IS_TEST==="true",m=typeof navigator<"u"&&navigator.webdriver===!0,h=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return n||r||i||c||d||u||m||h},io={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:H6(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const e={};for(const[r,i]of io.A11yUi.PERFORMANCE_MEASURES.entries())e[r]=[i.totalTime/i.count,i.count];const n=Object.entries(e).sort((r,i)=>i[1][0]-r[1][0]);return console.table(Object.fromEntries(n.map(([r,[i,c]])=>[r,{"avg (ms)":parseFloat(i.toFixed(2)),count:c}]))),e}}};let _b=!0,Fs=!1;const V6=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,K6=e=>typeof e=="string"&&V6.test(e),ly=e=>{if(!K6(e))throw new Error(`[Theming] The theme identifier "${typeof e=="string"?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},fg=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),q6=(e,n,r,i)=>iy(e,n,r,i),iy=(e,n,r,i)=>{i=i??{},i.append=i.append??!1,ly(e),_b&&!Fs&&(Fs=!0,Us.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.
|
|
12
|
+
Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let g=Bn(),v;if(n){let E=typeof n=="string"?Aa(n):n;jo(h==="/"||E.pathname?.startsWith(h),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${E.pathname}" was given in the \`location\` prop.`),v=E}else v=g;let _=v.pathname||"/",z=_;if(h!=="/"){let E=h.replace(/^\//,"").split("/");z="/"+_.replace(/^\//,"").split("/").slice(E.length).join("/")}let $=Dx(e,{pathname:z});st(p||$!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),st($==null||$[$.length-1].route.element!==void 0||$[$.length-1].route.Component!==void 0||$[$.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let j=J4($&&$.map(E=>Object.assign({},E,{params:Object.assign({},u,E.params),pathname:At([h,i.encodeLocation?i.encodeLocation(E.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?h:At([h,i.encodeLocation?i.encodeLocation(E.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),c,r);return n&&j?S.createElement(rc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},j):j}function Z4(){let e=o6(),n=O4(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:i},d={padding:"2px 4px",backgroundColor:i},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:d},"ErrorBoundary")," or"," ",S.createElement("code",{style:d},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},n),r?S.createElement("pre",{style:c},r):null,u)}var P4=S.createElement(Z4,null),Wx=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.onError?this.props.onError(e,n):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=F4(e.digest);r&&(e=r)}let n=e!==void 0?S.createElement(Ct.Provider,{value:this.props.routeContext},S.createElement(im.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?S.createElement(G4,{error:e},n):n}};Wx.contextType=qx;var Mf=new WeakMap;function G4({children:e,error:n}){let{basename:r}=S.useContext(dt);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let i=U4(n.digest);if(i){let c=Mf.get(n);if(c)throw c;let d=Vx(i.location,r);if(Hx&&!Mf.get(n))if(d.isExternal||i.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:i.replace}));throw Mf.set(n,u),u}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return e}function Y4({routeContext:e,match:n,children:r}){let i=S.useContext($l);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Ct.Provider,{value:e},r)}function J4(e,n=[],r){let i=r?.state;if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(n.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let c=e,d=i?.errors;if(d!=null){let g=c.findIndex(v=>v.route.id&&d?.[v.route.id]!==void 0);jo(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),c=c.slice(0,Math.min(c.length,g+1))}let u=!1,m=-1;if(r&&i){u=i.renderFallback;for(let g=0;g<c.length;g++){let v=c[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(m=g),v.route.id){let{loaderData:_,errors:z}=i,$=v.route.loader&&!_.hasOwnProperty(v.route.id)&&(!z||z[v.route.id]===void 0);if(v.route.lazy||$){r.isStatic&&(u=!0),m>=0?c=c.slice(0,m+1):c=[c[0]];break}}}}let h=r?.onError,p=i&&h?(g,v)=>{h(g,{location:i.location,params:i.matches?.[0]?.params??{},unstable_pattern:$4(i.matches),errorInfo:v})}:void 0;return c.reduceRight((g,v,_)=>{let z,$=!1,j=null,E=null;i&&(z=d&&v.route.id?d[v.route.id]:void 0,j=v.route.errorElement||P4,u&&(m<0&&_===0?(Qx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),$=!0,E=null):m===_&&($=!0,E=v.route.hydrateFallbackElement||null)));let L=n.concat(c.slice(0,_+1)),y=()=>{let w;return z?w=j:$?w=E:v.route.Component?w=S.createElement(v.route.Component,null):v.route.element?w=v.route.element:w=g,S.createElement(Y4,{match:v,routeContext:{outlet:g,matches:L,isDataRoute:i!=null},children:w})};return i&&(v.route.ErrorBoundary||v.route.errorElement||_===0)?S.createElement(Wx,{location:i.location,revalidation:i.revalidation,component:j,error:z,children:y(),routeContext:{outlet:null,matches:L,isDataRoute:!0},onError:p}):y()},null)}function cm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function X4(e){let n=S.useContext($l);return jo(n,cm(e)),n}function W4(e){let n=S.useContext(rd);return jo(n,cm(e)),n}function Q4(e){let n=S.useContext(Ct);return jo(n,cm(e)),n}function sm(e){let n=Q4(e),r=n.matches[n.matches.length-1];return jo(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function e6(){return sm("useRouteId")}function o6(){let e=S.useContext(im),n=W4("useRouteError"),r=sm("useRouteError");return e!==void 0?e:n.errors?.[r]}function n6(){let{router:e}=X4("useNavigate"),n=sm("useNavigate"),r=S.useRef(!1);return Jx(()=>{r.current=!0}),S.useCallback(async(c,d={})=>{st(r.current,Yx),r.current&&(typeof c=="number"?await e.navigate(c):await e.navigate(c,{fromRouteId:n,...d}))},[e,n])}var sg={};function Qx(e,n,r){!n&&!sg[e]&&(sg[e]=!0,st(!1,r))}S.memo(t6);function t6({routes:e,future:n,state:r,isStatic:i,onError:c}){return Xx(e,void 0,{state:r,isStatic:i,onError:c})}function ey({to:e,replace:n,state:r,relative:i}){jo(Ca(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=S.useContext(dt);st(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=S.useContext(Ct),{pathname:u}=Bn(),m=ad(),h=td(e,lm(d),u,i==="path"),p=JSON.stringify(h);return S.useEffect(()=>{m(JSON.parse(p),{replace:n,state:r,relative:i})},[m,p,i,n,r]),null}function xa(e){jo(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function r6({basename:e="/",children:n=null,location:r,navigationType:i="POP",navigator:c,static:d=!1,unstable_useTransitions:u}){jo(!Ca(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=e.replace(/^\/*/,"/"),h=S.useMemo(()=>({basename:m,navigator:c,static:d,unstable_useTransitions:u,future:{}}),[m,c,d,u]);typeof r=="string"&&(r=Aa(r));let{pathname:p="/",search:g="",hash:v="",state:_=null,key:z="default",unstable_mask:$}=r,j=S.useMemo(()=>{let E=sr(p,m);return E==null?null:{location:{pathname:E,search:g,hash:v,state:_,key:z,unstable_mask:$},navigationType:i}},[m,p,g,v,_,z,i,$]);return st(j!=null,`<Router basename="${m}"> is not able to match the URL "${p}${g}${v}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:S.createElement(dt.Provider,{value:h},S.createElement(rc.Provider,{children:n,value:j}))}function oy({children:e,location:n}){return q4(kb(e),n)}function kb(e,n=[]){let r=[];return S.Children.forEach(e,(i,c)=>{if(!S.isValidElement(i))return;let d=[...n,c];if(i.type===S.Fragment){r.push.apply(r,kb(i.props.children,d));return}jo(i.type===xa,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),jo(!i.props.index||!i.props.children,"An index route cannot have child routes.");let u={id:i.props.id||d.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(u.children=kb(i.props.children,d)),r.push(u)}),r}var Es="get",Ls="application/x-www-form-urlencoded";function ld(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function a6(e){return ld(e)&&e.tagName.toLowerCase()==="button"}function l6(e){return ld(e)&&e.tagName.toLowerCase()==="form"}function i6(e){return ld(e)&&e.tagName.toLowerCase()==="input"}function c6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function s6(e,n){return e.button===0&&(!n||n==="_self")&&!c6(e)}function vb(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,r)=>{let i=e[r];return n.concat(Array.isArray(i)?i.map(c=>[r,c]):[[r,i]])},[]))}function d6(e,n){let r=vb(e);return n&&n.forEach((i,c)=>{r.has(c)||n.getAll(c).forEach(d=>{r.append(c,d)})}),r}var _s=null;function u6(){if(_s===null)try{new FormData(document.createElement("form"),0),_s=!1}catch{_s=!0}return _s}var f6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function If(e){return e!=null&&!f6.has(e)?(st(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ls}"`),null):e}function b6(e,n){let r,i,c,d,u;if(l6(e)){let m=e.getAttribute("action");i=m?sr(m,n):null,r=e.getAttribute("method")||Es,c=If(e.getAttribute("enctype"))||Ls,d=new FormData(e)}else if(a6(e)||i6(e)&&(e.type==="submit"||e.type==="image")){let m=e.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||m.getAttribute("action");if(i=h?sr(h,n):null,r=e.getAttribute("formmethod")||m.getAttribute("method")||Es,c=If(e.getAttribute("formenctype"))||If(m.getAttribute("enctype"))||Ls,d=new FormData(m,e),!u6()){let{name:p,type:g,value:v}=e;if(g==="image"){let _=p?`${p}.`:"";d.append(`${_}x`,"0"),d.append(`${_}y`,"0")}else p&&d.append(p,v)}}else{if(ld(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Es,i=null,c=Ls,u=e}return d&&c==="text/plain"&&(u=d,d=void 0),{action:i,method:r.toLowerCase(),encType:c,formData:d,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function dm(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function ny(e,n,r,i){let c=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${i}`:c.pathname=`${c.pathname}.${i}`:c.pathname==="/"?c.pathname=`_root.${i}`:n&&sr(c.pathname,n)==="/"?c.pathname=`${Is(n)}/_root.${i}`:c.pathname=`${Is(c.pathname)}.${i}`,c}async function m6(e,n){if(e.id in n)return n[e.id];try{let r=await import(e.module);return n[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function h6(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function p6(e,n,r){let i=await Promise.all(e.map(async c=>{let d=n.routes[c.route.id];if(d){let u=await m6(d,r);return u.links?u.links():[]}return[]}));return _6(i.flat(1).filter(h6).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function dg(e,n,r,i,c,d){let u=(h,p)=>r[p]?h.route.id!==r[p].route.id:!0,m=(h,p)=>r[p].pathname!==h.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==h.params["*"];return d==="assets"?n.filter((h,p)=>u(h,p)||m(h,p)):d==="data"?n.filter((h,p)=>{let g=i.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(u(h,p)||m(h,p))return!0;if(h.route.shouldRevalidate){let v=h.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function k6(e,n,{includeHydrateFallback:r}={}){return v6(e.map(i=>{let c=n.routes[i.route.id];if(!c)return[];let d=[c.module];return c.clientActionModule&&(d=d.concat(c.clientActionModule)),c.clientLoaderModule&&(d=d.concat(c.clientLoaderModule)),r&&c.hydrateFallbackModule&&(d=d.concat(c.hydrateFallbackModule)),c.imports&&(d=d.concat(c.imports)),d}).flat(1))}function v6(e){return[...new Set(e)]}function g6(e){let n={},r=Object.keys(e).sort();for(let i of r)n[i]=e[i];return n}function _6(e,n){let r=new Set;return new Set(n),e.reduce((i,c)=>{let d=JSON.stringify(g6(c));return r.has(d)||(r.add(d),i.push({key:d,link:c})),i},[])}function um(){let e=S.useContext($l);return dm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function x6(){let e=S.useContext(rd);return dm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var fm=S.createContext(void 0);fm.displayName="FrameworkContext";function bm(){let e=S.useContext(fm);return dm(e,"You must render this element inside a <HydratedRouter> element"),e}function y6(e,n){let r=S.useContext(fm),[i,c]=S.useState(!1),[d,u]=S.useState(!1),{onFocus:m,onBlur:h,onMouseEnter:p,onMouseLeave:g,onTouchStart:v}=n,_=S.useRef(null);S.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let j=L=>{L.forEach(y=>{u(y.isIntersecting)})},E=new IntersectionObserver(j,{threshold:.5});return _.current&&E.observe(_.current),()=>{E.disconnect()}}},[e]),S.useEffect(()=>{if(i){let j=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(j)}}},[i]);let z=()=>{c(!0)},$=()=>{c(!1),u(!1)};return r?e!=="intent"?[d,_,{}]:[d,_,{onFocus:Oi(m,z),onBlur:Oi(h,$),onMouseEnter:Oi(p,z),onMouseLeave:Oi(g,$),onTouchStart:Oi(v,z)}]:[!1,_,{}]}function Oi(e,n){return r=>{e&&e(r),r.defaultPrevented||n(r)}}function w6({page:e,...n}){let r=R4(),{router:i}=um(),c=S.useMemo(()=>Dx(i.routes,e,i.basename),[i.routes,e,i.basename]);return c?r?S.createElement(S6,{page:e,matches:c,...n}):S.createElement(j6,{page:e,matches:c,...n}):null}function z6(e){let{manifest:n,routeModules:r}=bm(),[i,c]=S.useState([]);return S.useEffect(()=>{let d=!1;return p6(e,n,r).then(u=>{d||c(u)}),()=>{d=!0}},[e,n,r]),i}function S6({page:e,matches:n,...r}){let i=Bn(),{future:c}=bm(),{basename:d}=um(),u=S.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let m=ny(e,d,c.unstable_trailingSlashAwareDataRequests,"rsc"),h=!1,p=[];for(let g of n)typeof g.route.shouldRevalidate=="function"?h=!0:p.push(g.route.id);return h&&p.length>0&&m.searchParams.set("_routes",p.join(",")),[m.pathname+m.search]},[d,c.unstable_trailingSlashAwareDataRequests,e,i,n]);return S.createElement(S.Fragment,null,u.map(m=>S.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...r})))}function j6({page:e,matches:n,...r}){let i=Bn(),{future:c,manifest:d,routeModules:u}=bm(),{basename:m}=um(),{loaderData:h,matches:p}=x6(),g=S.useMemo(()=>dg(e,n,p,d,i,"data"),[e,n,p,d,i]),v=S.useMemo(()=>dg(e,n,p,d,i,"assets"),[e,n,p,d,i]),_=S.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let j=new Set,E=!1;if(n.forEach(y=>{let w=d.routes[y.route.id];!w||!w.hasLoader||(!g.some(N=>N.route.id===y.route.id)&&y.route.id in h&&u[y.route.id]?.shouldRevalidate||w.hasClientLoader?E=!0:j.add(y.route.id))}),j.size===0)return[];let L=ny(e,m,c.unstable_trailingSlashAwareDataRequests,"data");return E&&j.size>0&&L.searchParams.set("_routes",n.filter(y=>j.has(y.route.id)).map(y=>y.route.id).join(",")),[L.pathname+L.search]},[m,c.unstable_trailingSlashAwareDataRequests,h,i,d,g,n,e,u]),z=S.useMemo(()=>k6(v,d),[v,d]),$=z6(v);return S.createElement(S.Fragment,null,_.map(j=>S.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...r})),z.map(j=>S.createElement("link",{key:j,rel:"modulepreload",href:j,...r})),$.map(({key:j,link:E})=>S.createElement("link",{key:j,nonce:r.nonce,...E,crossOrigin:E.crossOrigin??r.crossOrigin})))}function T6(...e){return n=>{e.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var A6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{A6&&(window.__reactRouterVersion="7.14.2")}catch{}function C6({basename:e,children:n,unstable_useTransitions:r,window:i}){let c=S.useRef();c.current==null&&(c.current=s4({window:i,v5Compat:!0}));let d=c.current,[u,m]=S.useState({action:d.action,location:d.location}),h=S.useCallback(p=>{r===!1?m(p):S.startTransition(()=>m(p))},[r]);return S.useLayoutEffect(()=>d.listen(h),[d,h]),S.createElement(r6,{basename:e,children:n,location:u.location,navigationType:u.action,navigator:d,unstable_useTransitions:r})}var ty=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ry=S.forwardRef(function({onClick:n,discover:r="render",prefetch:i="none",relative:c,reloadDocument:d,replace:u,unstable_mask:m,state:h,target:p,to:g,preventScrollReset:v,viewTransition:_,unstable_defaultShouldRevalidate:z,...$},j){let{basename:E,navigator:L,unstable_useTransitions:y}=S.useContext(dt),w=typeof g=="string"&&ty.test(g),N=Vx(g,E);g=N.to;let D=Gx(g,{relative:c}),H=Bn(),q=null;if(m){let $e=td(m,[],H.unstable_mask?H.unstable_mask.pathname:"/",!0);E!=="/"&&($e.pathname=$e.pathname==="/"?E:At([E,$e.pathname])),q=L.createHref($e)}let[oe,de,Ke]=y6(i,$),ae=$6(g,{replace:u,unstable_mask:m,state:h,target:p,preventScrollReset:v,relative:c,viewTransition:_,unstable_defaultShouldRevalidate:z,unstable_useTransitions:y});function ee($e){n&&n($e),$e.defaultPrevented||ae($e)}let _e=!(N.isExternal||d),Te=S.createElement("a",{...$,...Ke,href:(_e?q:void 0)||N.absoluteURL||D,onClick:_e?ee:n,ref:T6(j,de),target:p,"data-discover":!w&&r==="render"?"true":void 0});return oe&&!w?S.createElement(S.Fragment,null,Te,S.createElement(w6,{page:D})):Te});ry.displayName="Link";var E6=S.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:i="",end:c=!1,style:d,to:u,viewTransition:m,children:h,...p},g){let v=Nl(u,{relative:p.relative}),_=Bn(),z=S.useContext(rd),{navigator:$,basename:j}=S.useContext(dt),E=z!=null&&M6(v)&&m===!0,L=$.encodeLocation?$.encodeLocation(v).pathname:v.pathname,y=_.pathname,w=z&&z.navigation&&z.navigation.location?z.navigation.location.pathname:null;r||(y=y.toLowerCase(),w=w?w.toLowerCase():null,L=L.toLowerCase()),w&&j&&(w=sr(w,j)||w);const N=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let D=y===L||!c&&y.startsWith(L)&&y.charAt(N)==="/",H=w!=null&&(w===L||!c&&w.startsWith(L)&&w.charAt(L.length)==="/"),q={isActive:D,isPending:H,isTransitioning:E},oe=D?n:void 0,de;typeof i=="function"?de=i(q):de=[i,D?"active":null,H?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let Ke=typeof d=="function"?d(q):d;return S.createElement(ry,{...p,"aria-current":oe,className:de,ref:g,style:Ke,to:u,viewTransition:m},typeof h=="function"?h(q):h)});E6.displayName="NavLink";var L6=S.forwardRef(({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:i,replace:c,state:d,method:u=Es,action:m,onSubmit:h,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:_,...z},$)=>{let{unstable_useTransitions:j}=S.useContext(dt),E=B6(),L=D6(m,{relative:p}),y=u.toLowerCase()==="get"?"get":"post",w=typeof m=="string"&&ty.test(m),N=D=>{if(h&&h(D),D.defaultPrevented)return;D.preventDefault();let H=D.nativeEvent.submitter,q=H?.getAttribute("formmethod")||u,oe=()=>E(H||D.currentTarget,{fetcherKey:n,method:q,navigate:r,replace:c,state:d,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:_});j&&r!==!1?S.startTransition(()=>oe()):oe()};return S.createElement("form",{ref:$,method:y,action:L,onSubmit:i?h:N,...z,"data-discover":!w&&e==="render"?"true":void 0})});L6.displayName="Form";function O6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ay(e){let n=S.useContext($l);return jo(n,O6(e)),n}function $6(e,{target:n,replace:r,unstable_mask:i,state:c,preventScrollReset:d,relative:u,viewTransition:m,unstable_defaultShouldRevalidate:h,unstable_useTransitions:p}={}){let g=ad(),v=Bn(),_=Nl(e,{relative:u});return S.useCallback(z=>{if(s6(z,n)){z.preventDefault();let $=r!==void 0?r:Gi(v)===Gi(_),j=()=>g(e,{replace:$,unstable_mask:i,state:c,preventScrollReset:d,relative:u,viewTransition:m,unstable_defaultShouldRevalidate:h});p?S.startTransition(()=>j()):j()}},[v,g,_,r,i,c,n,e,d,u,m,h,p])}function Gr(e){st(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=S.useRef(vb(e)),r=S.useRef(!1),i=Bn(),c=S.useMemo(()=>d6(i.search,r.current?null:n.current),[i.search]),d=ad(),u=S.useCallback((m,h)=>{const p=vb(typeof m=="function"?m(new URLSearchParams(c)):m);r.current=!0,d("?"+p,h)},[d,c]);return[c,u]}var N6=0,R6=()=>`__${String(++N6)}__`;function B6(){let{router:e}=ay("useSubmit"),{basename:n}=S.useContext(dt),r=e6(),i=e.fetch,c=e.navigate;return S.useCallback(async(d,u={})=>{let{action:m,method:h,encType:p,formData:g,body:v}=b6(d,n);if(u.navigate===!1){let _=u.fetcherKey||R6();await i(_,r,u.action||m,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:g,body:v,formMethod:u.method||h,formEncType:u.encType||p,flushSync:u.flushSync})}else await c(u.action||m,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:g,body:v,formMethod:u.method||h,formEncType:u.encType||p,replace:u.replace,state:u.state,fromRouteId:r,flushSync:u.flushSync,viewTransition:u.viewTransition})},[i,c,n,r])}function D6(e,{relative:n}={}){let{basename:r}=S.useContext(dt),i=S.useContext(Ct);jo(i,"useFormAction must be used inside a RouteContext");let[c]=i.matches.slice(-1),d={...Nl(e||".",{relative:n})},u=Bn();if(e==null){d.search=u.search;let m=new URLSearchParams(d.search),h=m.getAll("index");if(h.some(g=>g==="")){m.delete("index"),h.filter(v=>v).forEach(v=>m.append("index",v));let g=m.toString();d.search=g?`?${g}`:""}}return(!e||e===".")&&c.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(d.pathname=d.pathname==="/"?r:At([r,d.pathname])),Gi(d)}function M6(e,{relative:n}={}){let r=S.useContext(Zx);jo(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=ay("useViewTransitionState"),c=Nl(e,{relative:n});if(!r.isTransitioning)return!1;let d=sr(r.currentLocation.pathname,i)||r.currentLocation.pathname,u=sr(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Yi(c.pathname,u)!=null||Yi(c.pathname,d)!=null}var gb={};function id(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Os={exports:{}},I6=Os.exports,ug;function U6(){return ug||(ug=1,(function(e){(function(n,r){e.exports?e.exports=r():n.log=r()})(I6,function(){var n=function(){},r="undefined",i=typeof window!==r&&typeof window.navigator!==r&&/Trident\/|MSIE /.test(window.navigator.userAgent),c=["trace","debug","info","warn","error"],d={},u=null;function m(j,E){var L=j[E];if(typeof L.bind=="function")return L.bind(j);try{return Function.prototype.bind.call(L,j)}catch{return function(){return Function.prototype.apply.apply(L,[j,arguments])}}}function h(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function p(j){return j==="debug"&&(j="log"),typeof console===r?!1:j==="trace"&&i?h:console[j]!==void 0?m(console,j):console.log!==void 0?m(console,"log"):n}function g(){for(var j=this.getLevel(),E=0;E<c.length;E++){var L=c[E];this[L]=E<j?n:this.methodFactory(L,j,this.name)}if(this.log=this.debug,typeof console===r&&j<this.levels.SILENT)return"No console available for logging"}function v(j){return function(){typeof console!==r&&(g.call(this),this[j].apply(this,arguments))}}function _(j,E,L){return p(j)||v.apply(this,arguments)}function z(j,E){var L=this,y,w,N,D="loglevel";typeof j=="string"?D+=":"+j:typeof j=="symbol"&&(D=void 0);function H(ae){var ee=(c[ae]||"silent").toUpperCase();if(!(typeof window===r||!D)){try{window.localStorage[D]=ee;return}catch{}try{window.document.cookie=encodeURIComponent(D)+"="+ee+";"}catch{}}}function q(){var ae;if(!(typeof window===r||!D)){try{ae=window.localStorage[D]}catch{}if(typeof ae===r)try{var ee=window.document.cookie,_e=encodeURIComponent(D),Te=ee.indexOf(_e+"=");Te!==-1&&(ae=/^([^;]+)/.exec(ee.slice(Te+_e.length+1))[1])}catch{}return L.levels[ae]===void 0&&(ae=void 0),ae}}function oe(){if(!(typeof window===r||!D)){try{window.localStorage.removeItem(D)}catch{}try{window.document.cookie=encodeURIComponent(D)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function de(ae){var ee=ae;if(typeof ee=="string"&&L.levels[ee.toUpperCase()]!==void 0&&(ee=L.levels[ee.toUpperCase()]),typeof ee=="number"&&ee>=0&&ee<=L.levels.SILENT)return ee;throw new TypeError("log.setLevel() called with invalid level: "+ae)}L.name=j,L.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},L.methodFactory=E||_,L.getLevel=function(){return N??w??y},L.setLevel=function(ae,ee){return N=de(ae),ee!==!1&&H(N),g.call(L)},L.setDefaultLevel=function(ae){w=de(ae),q()||L.setLevel(ae,!1)},L.resetLevel=function(){N=null,oe(),g.call(L)},L.enableAll=function(ae){L.setLevel(L.levels.TRACE,ae)},L.disableAll=function(ae){L.setLevel(L.levels.SILENT,ae)},L.rebuild=function(){if(u!==L&&(y=de(u.getLevel())),g.call(L),u===L)for(var ae in d)d[ae].rebuild()},y=de(u?u.getLevel():"WARN");var Ke=q();Ke!=null&&(N=de(Ke)),g.call(L)}u=new z,u.getLogger=function(E){if(typeof E!="symbol"&&typeof E!="string"||E==="")throw new TypeError("You must supply a name when creating a logger.");var L=d[E];return L||(L=d[E]=new z(E,u.methodFactory)),L};var $=typeof window!==r?window.log:void 0;return u.noConflict=function(){return typeof window!==r&&window.log===u&&(window.log=$),u},u.getLoggers=function(){return d},u.default=u,u})})(Os)),Os.exports}var F6=U6(),Us=id(F6);const H6=()=>{const e=typeof process<"u"&&gb?gb:{},n=e.NODE_ENV==="test",r="VITEST"in e,i="JEST_WORKER_ID"in e,c="PLAYWRIGHT_TEST_BASE_URL"in e,d=e.CI==="true",u=e.TEST==="true"||e.IS_TEST==="true",m=typeof navigator<"u"&&navigator.webdriver===!0,h=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return n||r||i||c||d||u||m||h},co={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:H6(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const e={};for(const[r,i]of co.A11yUi.PERFORMANCE_MEASURES.entries())e[r]=[i.totalTime/i.count,i.count];const n=Object.entries(e).sort((r,i)=>i[1][0]-r[1][0]);return console.table(Object.fromEntries(n.map(([r,[i,c]])=>[r,{"avg (ms)":parseFloat(i.toFixed(2)),count:c}]))),e}}};let _b=!0,Fs=!1;const V6=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,K6=e=>typeof e=="string"&&V6.test(e),ly=e=>{if(!K6(e))throw new Error(`[Theming] The theme identifier "${typeof e=="string"?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},fg=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),q6=(e,n,r,i)=>iy(e,n,r,i),iy=(e,n,r,i)=>{i=i??{},i.append=i.append??!1,ly(e),_b&&!Fs&&(Fs=!0,Us.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.
|
|
13
13
|
|
|
14
14
|
import { register } from 'adopted-style-sheets';
|
|
15
15
|
import { defineCustomElements } from '...';
|
|
@@ -19,16 +19,16 @@ Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}
|
|
|
19
19
|
.then(() => {
|
|
20
20
|
// run your app or website
|
|
21
21
|
})
|
|
22
|
-
.catch(console.warn);`));let c=io.A11yUi.THEMES.get(e);if(c||(c=new Map,io.A11yUi.THEMES.set(e,c)),i.append&&c.has(n)){const d=c.get(n);c.set(n,fg(`${d}${r}`))}else c.set(n,fg(r))},Z6=(e,n,r,i)=>cy(e,n,r,i),cy=(e,n,r,i)=>(ly(e),typeof n=="object"&&n!==null&&Object.getOwnPropertyNames(n).forEach(c=>{const d=n[c],u=c.toLowerCase(),m=typeof i?.transformTagName=="function"&&!["GLOBAL","PROPERTIES"].includes(c)?i.transformTagName(u):c;typeof d=="string"&&d.length>0&&iy(e,m.toUpperCase(),d,r)}),e),sy=e=>{if(e instanceof HTMLElement){if(typeof e.dataset.theme=="string")return e;{let n=e.parentNode;for(;n instanceof ShadowRoot;)n=n.host;return sy(n)}}else return null},bg=(e={})=>e.themeEncroachCss==="false"||e.themeReset==="true"?!1:{mode:e.themeEncroachCssMode==="after"||e.themeEncroachCssMode==="before"?e.themeEncroachCssMode:"before"},dy=()=>typeof io.A11yUi.Theme=="object"&&io.A11yUi.Theme!==null&&typeof io.A11yUi.Theme.cache=="boolean"&&typeof io.A11yUi.Theme.encroachCss=="object"&&io.A11yUi.Theme.encroachCss!==null&&typeof io.A11yUi.Theme.encroachCss.mode=="string"&&typeof io.A11yUi.Theme.name=="string",P6=()=>!(typeof io.A11yUi.Theme=="object"&&io.A11yUi.Theme!==null)||io.A11yUi.Theme.name!=="default",G6=e=>{if(dy())return io.A11yUi.Theme;{const n={cache:!0,encroachCss:bg(),loglevel:"silent",mode:"csr",name:null},r=sy(e);return r instanceof HTMLElement&&(n.cache=r.dataset.themeCache!=="false",n.encroachCss=bg(r.dataset),n.loglevel=r.dataset.themeLoglevel==="debug"?r.dataset.themeLoglevel:"silent",n.mode=r.dataset.themeMode==="ssr"?r.dataset.themeMode:"csr",n.name=r.dataset.theme||null),n}},Y6=(e,n)=>({cache:n.cache!==!1,detect:n.detect==="auto"?"auto":"fixed",encroachCss:n.encroachCss===!1?!1:typeof n.encroachCss=="object"&&n.encroachCss!=null&&(n.encroachCss.mode==="after"||n.encroachCss.mode==="before")?n.encroachCss:{mode:"before"},loglevel:n.loglevel==="debug"?n.loglevel:"silent",mode:n.mode==="ssr"?n.mode:"csr",name:typeof n.name=="string"?n.name:e}),J6=(e,n)=>{dy()===!1&&P6()&&typeof n=="object"&&n!==null&&(n=Y6(e,n),n.detect==="fixed"?(n.name===null&&typeof e=="string"&&(n.name=e),e===n.name&&(io.A11yUi.Theme=n,Us.info(`[Theming] Theme "${e}" was set as default theme.`))):Fs||(Fs=!0,Us.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))};let mg=!1;const X6=(e,n,r={})=>{mg||(mg=!0,_b=!1,typeof window<"u"&&(window.A11yUi=io.A11yUi)),typeof e=="function"?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach(c=>{typeof c=="function"&&c.length===1?J6(c((d,u,m)=>cy(d,u,m,r)),{cache:r.theme?.cache,detect:r.theme?.detect,encroachCss:r.theme?.encroachCss,mode:r.theme?.mode,name:r.theme?.name}):Us.error("[Theming] An attempt was made to load an incompatible theme.")}),_b=!0,typeof n=="function"?n=new Set([n]):Array.isArray(n)&&(n=new Set(n));const i=[];return n.forEach(c=>{const d=c();d instanceof Promise&&i.push(d)}),Promise.all(i)},uy=new Set,hg=new Map,W6=/--[^;]+/g,Q6=/:/,e5=typeof MutationObserver<"u";let fy=25,by=()=>{fy=Math.min(25+Math.log2(io.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250)};const o5=(e,n)=>{let r=n.match(W6);if(Array.isArray(r)){r=r.filter(c=>Q6.test(c));const i=document.createElement("style");i.innerHTML=`.${e} {${r.join(";")}}`,document.querySelector("head")?.appendChild(i)}uy.add(e)},$s=(e,n)=>{const r=io.A11yUi.THEMES.get(e);if(r instanceof Map){const i=r.get(n);if(i!==void 0)return i}return""},n5=e=>{const n=e.firstChild;if(!(!(n instanceof HTMLStyleElement)||n.dataset.themingFallback!==void 0))for(const r of Array.from(e.childNodes))if(r instanceof HTMLStyleElement&&r.tagName==="STYLE"&&r.dataset.themingFallback===void 0)e.removeChild(r);else break},t5=(e,n)=>{try{if(io.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const r=n.filter(i=>typeof i=="string"&&i.length>0).map(i=>{let c=hg.get(i);return c||(c=new CSSStyleSheet,c.replaceSync(i),hg.set(i,c)),c});e.adoptedStyleSheets=r}catch{for(let r=n.length-1;r>=0;r--){const i=n[r];if(typeof i!="string"||i.length===0)continue;const c=n.length-1-r,d=document.createElement("style");switch(d.dataset.themingFallback="",c){case 4:d.dataset.themingBaseA11y="";break;case 3:d.dataset.themingBaseGlobal="";break;case 2:d.dataset.themingBaseComponent="";break;case 1:d.dataset.themingCustomGlobal="";break;case 0:d.dataset.themingCustomComponent="";break;default:d.dataset.themingUnknown="";break}d.innerHTML=i,e.insertBefore(d,e.firstChild)}}},r5=(e,n,r)=>{if(r===!1||r?.mode!=="before"&&r?.mode!=="after")return;const i=Array.from(e.childNodes).filter(d=>d instanceof HTMLStyleElement&&d.tagName==="STYLE");let c;try{c=Array.from(e.adoptedStyleSheets)}catch{c=[]}if(!(i.length===0&&c.length===0))if(r.mode==="before"){const d=[...c.map(u=>Array.from(u.cssRules).map(m=>m.cssText).join("")),...i.map(u=>u.innerHTML)];n.unshift(...d)}else i.forEach(d=>n.push(d.innerHTML)),c.forEach(d=>n.push(Array.from(d.cssRules).map(u=>u.cssText).join("")))},a5=(e,n,r)=>{const i=n.name||"default";let c;try{if(e.shadowRoot===null)throw new Error("ShadowRoot is null");c=e.shadowRoot}catch{c=e}const d=io.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName);if(d)pg(e,c,d,r);else{const u=$s(i,"PROPERTIES"),m=$s(i,"GLOBAL"),h=$s(i,e.tagName);uy.has(i)===!1&&o5(i,m);const p=[u,m,h];if(r5(c,p,n.encroachCss),n.cache===!0){let g=io.A11yUi.CSS_STYLE_CACHE.get(i);g||(g=new Map,io.A11yUi.CSS_STYLE_CACHE.set(i,g)),g.set(e.tagName,p)}pg(e,c,p,r)}},pg=(e,n,r,i)=>{const c=io.A11yUi.Theme?.loglevel==="debug",d=c?performance.now():0;if(n5(n),t5(n,r),d5(e),requestAnimationFrame(i),c){const u=performance.now()-d,m=io.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);m?(m.count+=1,m.totalTime+=u):io.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:u})}},my=e=>{const n=io.A11yUi.STYLING_TASK_QUEUE.get(e);if(n){const{resetCss:r,themeDetails:i}=n;a5(e,i,r)}},l5=100;let mm=(e,n=0)=>{if(n>=l5)return;const r=setTimeout(()=>{clearTimeout(r),e.classList.contains("hydrated")?my(e):mm(e,n+1)},fy)};const i5={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1},c5={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},kg=e5?new MutationObserver((e,n)=>{const r=[];for(const i of e){const c=i.target;c.classList.contains("hydrated")&&io.A11yUi.STYLING_TASK_QUEUE.has(c)&&(my(c),r.push(c))}for(const i of r)n.observe(i,c5)}):null;kg&&(mm=e=>kg.observe(e,i5),by=()=>{});const vg=new Map;let hy=(e,n)=>{if(n){const c=vg.get(n);if(c!==void 0)return c}const r=getComputedStyle(e).getPropertyValue("--theme-visibility-delay").trim();let i;if(r.endsWith("ms"))i=parseFloat(r);else if(r.endsWith("s"))i=parseFloat(r)*1e3;else{const c=parseFloat(r);i=isNaN(c)?0:c}return n&&vg.set(n,i),i};io.A11yUi.IS_TEST_ENVIRONMENT&&(hy=()=>0);const gg=(e,n)=>{e.style.setProperty("visibility",n),e.dataset.themed=""},s5=(e,n)=>{const r=e.style.visibility||null,i=n.name||"default";io.A11yUi.STYLING_TASK_QUEUE.set(e,{resetCss:()=>{const c=hy(e,i);c>0?setTimeout(()=>{gg(e,r)},c):gg(e,r)},themeDetails:n}),e.style.setProperty("visibility","hidden","important"),mm(e)},d5=e=>{io.A11yUi.STYLING_TASK_QUEUE.delete(e),by()},u5=(e,n)=>{s5(e,{...io.A11yUi.Theme,...n})};var _g;(function(e){e[e.error=0]="error",e[e.warning=1]="warning",e[e.info=2]="info",e[e.success=3]="success",e[e.message=4]="message",e[e.close=5]="close",e[e["form-description"]=6]="form-description",e[e.of=7]="of",e[e.characters=8]="characters",e[e.new=9]="new",e[e["no-entries"]=10]="no-entries",e[e["change-order"]=11]="change-order",e[e["action-running"]=12]="action-running",e[e["action-done"]=13]="action-done",e[e["page-first"]=14]="page-first",e[e["page-back"]=15]="page-back",e[e["page-next"]=16]="page-next",e[e["page-last"]=17]="page-last",e[e["entries-per-site"]=18]="entries-per-site",e[e["page-current"]=19]="page-current",e[e["page-selected"]=20]="page-selected",e[e["page-per-site"]=21]="page-per-site",e[e["logo-description"]=22]="logo-description",e[e["open-link-in-tab"]=23]="open-link-in-tab",e[e["kolibri-logo"]=24]="kolibri-logo"})(_g||(_g={}));var xg;(function(e){e[e.abbr=0]="abbr",e[e.accordion=1]="accordion",e[e.alert=2]="alert",e[e.avatar=3]="avatar",e[e.badge=4]="badge",e[e.breadcrumb=5]="breadcrumb",e[e.button=6]="button",e[e["button-link"]=7]="button-link",e[e.card=8]="card",e[e.combobox=9]="combobox",e[e.details=10]="details",e[e.drawer=11]="drawer",e[e.form=12]="form",e[e.heading=13]="heading",e[e.icon=14]="icon",e[e.image=15]="image",e[e["input-checkbox"]=16]="input-checkbox",e[e["input-color"]=17]="input-color",e[e["input-date"]=18]="input-date",e[e["input-email"]=19]="input-email",e[e["input-file"]=20]="input-file",e[e["input-number"]=21]="input-number",e[e["input-password"]=22]="input-password",e[e["input-radio"]=23]="input-radio",e[e["input-range"]=24]="input-range",e[e["input-text"]=25]="input-text",e[e.kolibri=26]="kolibri",e[e.link=27]="link",e[e["link-button"]=28]="link-button",e[e.logo=29]="logo",e[e.modal=30]="modal",e[e.nav=31]="nav",e[e.pagination=32]="pagination",e[e["popover-button"]=33]="popover-button",e[e.progress=34]="progress",e[e.quote=35]="quote",e[e.select=36]="select",e[e["single-select"]=37]="single-select",e[e["skip-nav"]=38]="skip-nav",e[e.spin=39]="spin",e[e["split-button"]=40]="split-button",e[e.symbol=41]="symbol",e[e.table=42]="table",e[e["table-stateful"]=43]="table-stateful",e[e["table-stateless"]=44]="table-stateless",e[e.tabs=45]="tabs",e[e.textarea=46]="textarea",e[e["toast-container"]=47]="toast-container",e[e.toolbar=48]="toolbar",e[e.tooltip=49]="tooltip",e[e.tree=50]="tree",e[e["tree-item"]=51]="tree-item"})(xg||(xg={}));const f5=()=>typeof window<"u"?window:{},hm=()=>{const e=f5();return e&&typeof e.document<"u"?e.document:{}},xb=["development","production","test"];let Hs="production";const py=e=>{try{if(xb.includes(e))Hs=e;else throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${xb.join(", ")}.`)}catch{Hs="production"}},b5=()=>{try{const e=typeof process<"u"&&gb?"production":void 0;if(e&&xb.includes(e))return e}catch{}return"production"};py(b5());let ky=!1,vy=!1;const m5=()=>Hs==="development",HB=()=>Hs==="test",h5=()=>ky===!0,VB=e=>{ky=e===!0},KB=()=>vy===!0,qB=e=>{vy=e===!0},p5="color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000",pl=e=>Array.isArray(e)?e:[e],yg=e=>`%c${e}`,k5=(e,n)=>typeof n=="string"&&n.length>0?`${yg(e)} | ${n}`:yg(e),kl=(e,n)=>[k5(e,n?.classifier),`${p5};${n?.overwriteStyle||""}`],Li=e=>m5()||e===!0;let v5=class{constructor(n){this.label=n}debug(n,r){Li(r?.forceLog)&&console.debug(...kl(this.label,r),...pl(n))}info(n,r){Li(r?.forceLog)&&console.info(...kl(this.label,r),...pl(n))}trace(n,r){Li(r?.forceLog)&&console.trace(...kl(this.label,r),...pl(n))}warn(n,r){Li(r?.forceLog)&&console.warn(...kl(this.label,r),...pl(n))}error(n,r){console.error(...kl(this.label,r),...pl(n))}throw(n,r){if(Li(r?.forceLog))throw new Error(...kl(this.label,r),...pl(n))}};const $o=new v5("KoliBri"),wg=new Set,gy=(e,n)=>{wg.has(e)===!1&&(wg.add(e),$o.debug([e].concat([]),{classifier:"✋ a11y",forceLog:!1,overwriteStyle:"; background-color: #09f"}))},zg=new Set,PB=(e,n)=>{zg.has(e)===!1&&(zg.add(e),$o.warn([e].concat([]),{classifier:"🔥 deprecated",forceLog:!1,overwriteStyle:"; background-color: #f00"}))},Vs=new Set,_y=(e,n)=>{(Vs.has(e)===!1||n?.force)&&(Vs.add(e),$o.debug([e].concat(n?.details||[]),{classifier:"💻 dev",forceLog:!!n?.force,overwriteStyle:"; background-color: #f09"}))},GB=(e,n)=>{Vs.has(e)===!1&&(Vs.add(e),$o.warn([e].concat([]),{classifier:"⚠️ dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))},Sg=new Set,YB=(e,n=!1,r)=>{Sg.has(e)===!1&&(Sg.add(e),e+=n===!0?" ✅":"",$o.debug([e].concat([]),{classifier:"🌟 feature",forceLog:!1,overwriteStyle:"; background-color: #309"}))};_y("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");const jg=new Set,g5=(e,n)=>{jg.has(e)===!1&&(jg.add(e),$o.debug([e].concat([]),{classifier:"📑 ui/ux",forceLog:!1,overwriteStyle:"; background-color: #060;"}))},JB=()=>{gy(`"Disabled" limits accessibility and visibility. From an accessibility perspective, we recommend using the readonly attribute instead of disabled.
|
|
22
|
+
.catch(console.warn);`));let c=co.A11yUi.THEMES.get(e);if(c||(c=new Map,co.A11yUi.THEMES.set(e,c)),i.append&&c.has(n)){const d=c.get(n);c.set(n,fg(`${d}${r}`))}else c.set(n,fg(r))},Z6=(e,n,r,i)=>cy(e,n,r,i),cy=(e,n,r,i)=>(ly(e),typeof n=="object"&&n!==null&&Object.getOwnPropertyNames(n).forEach(c=>{const d=n[c],u=c.toLowerCase(),m=typeof i?.transformTagName=="function"&&!["GLOBAL","PROPERTIES"].includes(c)?i.transformTagName(u):c;typeof d=="string"&&d.length>0&&iy(e,m.toUpperCase(),d,r)}),e),sy=e=>{if(e instanceof HTMLElement){if(typeof e.dataset.theme=="string")return e;{let n=e.parentNode;for(;n instanceof ShadowRoot;)n=n.host;return sy(n)}}else return null},bg=(e={})=>e.themeEncroachCss==="false"||e.themeReset==="true"?!1:{mode:e.themeEncroachCssMode==="after"||e.themeEncroachCssMode==="before"?e.themeEncroachCssMode:"before"},dy=()=>typeof co.A11yUi.Theme=="object"&&co.A11yUi.Theme!==null&&typeof co.A11yUi.Theme.cache=="boolean"&&typeof co.A11yUi.Theme.encroachCss=="object"&&co.A11yUi.Theme.encroachCss!==null&&typeof co.A11yUi.Theme.encroachCss.mode=="string"&&typeof co.A11yUi.Theme.name=="string",P6=()=>!(typeof co.A11yUi.Theme=="object"&&co.A11yUi.Theme!==null)||co.A11yUi.Theme.name!=="default",G6=e=>{if(dy())return co.A11yUi.Theme;{const n={cache:!0,encroachCss:bg(),loglevel:"silent",mode:"csr",name:null},r=sy(e);return r instanceof HTMLElement&&(n.cache=r.dataset.themeCache!=="false",n.encroachCss=bg(r.dataset),n.loglevel=r.dataset.themeLoglevel==="debug"?r.dataset.themeLoglevel:"silent",n.mode=r.dataset.themeMode==="ssr"?r.dataset.themeMode:"csr",n.name=r.dataset.theme||null),n}},Y6=(e,n)=>({cache:n.cache!==!1,detect:n.detect==="auto"?"auto":"fixed",encroachCss:n.encroachCss===!1?!1:typeof n.encroachCss=="object"&&n.encroachCss!=null&&(n.encroachCss.mode==="after"||n.encroachCss.mode==="before")?n.encroachCss:{mode:"before"},loglevel:n.loglevel==="debug"?n.loglevel:"silent",mode:n.mode==="ssr"?n.mode:"csr",name:typeof n.name=="string"?n.name:e}),J6=(e,n)=>{dy()===!1&&P6()&&typeof n=="object"&&n!==null&&(n=Y6(e,n),n.detect==="fixed"?(n.name===null&&typeof e=="string"&&(n.name=e),e===n.name&&(co.A11yUi.Theme=n,Us.info(`[Theming] Theme "${e}" was set as default theme.`))):Fs||(Fs=!0,Us.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))};let mg=!1;const X6=(e,n,r={})=>{mg||(mg=!0,_b=!1,typeof window<"u"&&(window.A11yUi=co.A11yUi)),typeof e=="function"?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach(c=>{typeof c=="function"&&c.length===1?J6(c((d,u,m)=>cy(d,u,m,r)),{cache:r.theme?.cache,detect:r.theme?.detect,encroachCss:r.theme?.encroachCss,mode:r.theme?.mode,name:r.theme?.name}):Us.error("[Theming] An attempt was made to load an incompatible theme.")}),_b=!0,typeof n=="function"?n=new Set([n]):Array.isArray(n)&&(n=new Set(n));const i=[];return n.forEach(c=>{const d=c();d instanceof Promise&&i.push(d)}),Promise.all(i)},uy=new Set,hg=new Map,W6=/--[^;]+/g,Q6=/:/,e5=typeof MutationObserver<"u";let fy=25,by=()=>{fy=Math.min(25+Math.log2(co.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250)};const o5=(e,n)=>{let r=n.match(W6);if(Array.isArray(r)){r=r.filter(c=>Q6.test(c));const i=document.createElement("style");i.innerHTML=`.${e} {${r.join(";")}}`,document.querySelector("head")?.appendChild(i)}uy.add(e)},$s=(e,n)=>{const r=co.A11yUi.THEMES.get(e);if(r instanceof Map){const i=r.get(n);if(i!==void 0)return i}return""},n5=e=>{const n=e.firstChild;if(!(!(n instanceof HTMLStyleElement)||n.dataset.themingFallback!==void 0))for(const r of Array.from(e.childNodes))if(r instanceof HTMLStyleElement&&r.tagName==="STYLE"&&r.dataset.themingFallback===void 0)e.removeChild(r);else break},t5=(e,n)=>{try{if(co.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const r=n.filter(i=>typeof i=="string"&&i.length>0).map(i=>{let c=hg.get(i);return c||(c=new CSSStyleSheet,c.replaceSync(i),hg.set(i,c)),c});e.adoptedStyleSheets=r}catch{for(let r=n.length-1;r>=0;r--){const i=n[r];if(typeof i!="string"||i.length===0)continue;const c=n.length-1-r,d=document.createElement("style");switch(d.dataset.themingFallback="",c){case 4:d.dataset.themingBaseA11y="";break;case 3:d.dataset.themingBaseGlobal="";break;case 2:d.dataset.themingBaseComponent="";break;case 1:d.dataset.themingCustomGlobal="";break;case 0:d.dataset.themingCustomComponent="";break;default:d.dataset.themingUnknown="";break}d.innerHTML=i,e.insertBefore(d,e.firstChild)}}},r5=(e,n,r)=>{if(r===!1||r?.mode!=="before"&&r?.mode!=="after")return;const i=Array.from(e.childNodes).filter(d=>d instanceof HTMLStyleElement&&d.tagName==="STYLE");let c;try{c=Array.from(e.adoptedStyleSheets)}catch{c=[]}if(!(i.length===0&&c.length===0))if(r.mode==="before"){const d=[...c.map(u=>Array.from(u.cssRules).map(m=>m.cssText).join("")),...i.map(u=>u.innerHTML)];n.unshift(...d)}else i.forEach(d=>n.push(d.innerHTML)),c.forEach(d=>n.push(Array.from(d.cssRules).map(u=>u.cssText).join("")))},a5=(e,n,r)=>{const i=n.name||"default";let c;try{if(e.shadowRoot===null)throw new Error("ShadowRoot is null");c=e.shadowRoot}catch{c=e}const d=co.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName);if(d)pg(e,c,d,r);else{const u=$s(i,"PROPERTIES"),m=$s(i,"GLOBAL"),h=$s(i,e.tagName);uy.has(i)===!1&&o5(i,m);const p=[u,m,h];if(r5(c,p,n.encroachCss),n.cache===!0){let g=co.A11yUi.CSS_STYLE_CACHE.get(i);g||(g=new Map,co.A11yUi.CSS_STYLE_CACHE.set(i,g)),g.set(e.tagName,p)}pg(e,c,p,r)}},pg=(e,n,r,i)=>{const c=co.A11yUi.Theme?.loglevel==="debug",d=c?performance.now():0;if(n5(n),t5(n,r),d5(e),requestAnimationFrame(i),c){const u=performance.now()-d,m=co.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);m?(m.count+=1,m.totalTime+=u):co.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:u})}},my=e=>{const n=co.A11yUi.STYLING_TASK_QUEUE.get(e);if(n){const{resetCss:r,themeDetails:i}=n;a5(e,i,r)}},l5=100;let mm=(e,n=0)=>{if(n>=l5)return;const r=setTimeout(()=>{clearTimeout(r),e.classList.contains("hydrated")?my(e):mm(e,n+1)},fy)};const i5={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1},c5={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},kg=e5?new MutationObserver((e,n)=>{const r=[];for(const i of e){const c=i.target;c.classList.contains("hydrated")&&co.A11yUi.STYLING_TASK_QUEUE.has(c)&&(my(c),r.push(c))}for(const i of r)n.observe(i,c5)}):null;kg&&(mm=e=>kg.observe(e,i5),by=()=>{});const vg=new Map;let hy=(e,n)=>{if(n){const c=vg.get(n);if(c!==void 0)return c}const r=getComputedStyle(e).getPropertyValue("--theme-visibility-delay").trim();let i;if(r.endsWith("ms"))i=parseFloat(r);else if(r.endsWith("s"))i=parseFloat(r)*1e3;else{const c=parseFloat(r);i=isNaN(c)?0:c}return n&&vg.set(n,i),i};co.A11yUi.IS_TEST_ENVIRONMENT&&(hy=()=>0);const gg=(e,n)=>{e.style.setProperty("visibility",n),e.dataset.themed=""},s5=(e,n)=>{const r=e.style.visibility||null,i=n.name||"default";co.A11yUi.STYLING_TASK_QUEUE.set(e,{resetCss:()=>{const c=hy(e,i);c>0?setTimeout(()=>{gg(e,r)},c):gg(e,r)},themeDetails:n}),e.style.setProperty("visibility","hidden","important"),mm(e)},d5=e=>{co.A11yUi.STYLING_TASK_QUEUE.delete(e),by()},u5=(e,n)=>{s5(e,{...co.A11yUi.Theme,...n})};var _g;(function(e){e[e.error=0]="error",e[e.warning=1]="warning",e[e.info=2]="info",e[e.success=3]="success",e[e.message=4]="message",e[e.close=5]="close",e[e["form-description"]=6]="form-description",e[e.of=7]="of",e[e.characters=8]="characters",e[e.new=9]="new",e[e["no-entries"]=10]="no-entries",e[e["change-order"]=11]="change-order",e[e["action-running"]=12]="action-running",e[e["action-done"]=13]="action-done",e[e["page-first"]=14]="page-first",e[e["page-back"]=15]="page-back",e[e["page-next"]=16]="page-next",e[e["page-last"]=17]="page-last",e[e["entries-per-site"]=18]="entries-per-site",e[e["page-current"]=19]="page-current",e[e["page-selected"]=20]="page-selected",e[e["page-per-site"]=21]="page-per-site",e[e["logo-description"]=22]="logo-description",e[e["open-link-in-tab"]=23]="open-link-in-tab",e[e["kolibri-logo"]=24]="kolibri-logo"})(_g||(_g={}));var xg;(function(e){e[e.abbr=0]="abbr",e[e.accordion=1]="accordion",e[e.alert=2]="alert",e[e.avatar=3]="avatar",e[e.badge=4]="badge",e[e.breadcrumb=5]="breadcrumb",e[e.button=6]="button",e[e["button-link"]=7]="button-link",e[e.card=8]="card",e[e.combobox=9]="combobox",e[e.details=10]="details",e[e.drawer=11]="drawer",e[e.form=12]="form",e[e.heading=13]="heading",e[e.icon=14]="icon",e[e.image=15]="image",e[e["input-checkbox"]=16]="input-checkbox",e[e["input-color"]=17]="input-color",e[e["input-date"]=18]="input-date",e[e["input-email"]=19]="input-email",e[e["input-file"]=20]="input-file",e[e["input-number"]=21]="input-number",e[e["input-password"]=22]="input-password",e[e["input-radio"]=23]="input-radio",e[e["input-range"]=24]="input-range",e[e["input-text"]=25]="input-text",e[e.kolibri=26]="kolibri",e[e.link=27]="link",e[e["link-button"]=28]="link-button",e[e.logo=29]="logo",e[e.modal=30]="modal",e[e.nav=31]="nav",e[e.pagination=32]="pagination",e[e["popover-button"]=33]="popover-button",e[e.progress=34]="progress",e[e.quote=35]="quote",e[e.select=36]="select",e[e["single-select"]=37]="single-select",e[e["skip-nav"]=38]="skip-nav",e[e.spin=39]="spin",e[e["split-button"]=40]="split-button",e[e.symbol=41]="symbol",e[e.table=42]="table",e[e["table-stateful"]=43]="table-stateful",e[e["table-stateless"]=44]="table-stateless",e[e.tabs=45]="tabs",e[e.textarea=46]="textarea",e[e["toast-container"]=47]="toast-container",e[e.toolbar=48]="toolbar",e[e.tooltip=49]="tooltip",e[e.tree=50]="tree",e[e["tree-item"]=51]="tree-item"})(xg||(xg={}));const f5=()=>typeof window<"u"?window:{},hm=()=>{const e=f5();return e&&typeof e.document<"u"?e.document:{}},xb=["development","production","test"];let Hs="production";const py=e=>{try{if(xb.includes(e))Hs=e;else throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${xb.join(", ")}.`)}catch{Hs="production"}},b5=()=>{try{const e=typeof process<"u"&&gb?"production":void 0;if(e&&xb.includes(e))return e}catch{}return"production"};py(b5());let ky=!1,vy=!1;const m5=()=>Hs==="development",HB=()=>Hs==="test",h5=()=>ky===!0,VB=e=>{ky=e===!0},KB=()=>vy===!0,qB=e=>{vy=e===!0},p5="color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000",kl=e=>Array.isArray(e)?e:[e],yg=e=>`%c${e}`,k5=(e,n)=>typeof n=="string"&&n.length>0?`${yg(e)} | ${n}`:yg(e),vl=(e,n)=>[k5(e,n?.classifier),`${p5};${n?.overwriteStyle||""}`],$i=e=>m5()||e===!0;let v5=class{constructor(n){this.label=n}debug(n,r){$i(r?.forceLog)&&console.debug(...vl(this.label,r),...kl(n))}info(n,r){$i(r?.forceLog)&&console.info(...vl(this.label,r),...kl(n))}trace(n,r){$i(r?.forceLog)&&console.trace(...vl(this.label,r),...kl(n))}warn(n,r){$i(r?.forceLog)&&console.warn(...vl(this.label,r),...kl(n))}error(n,r){console.error(...vl(this.label,r),...kl(n))}throw(n,r){if($i(r?.forceLog))throw new Error(...vl(this.label,r),...kl(n))}};const Ro=new v5("KoliBri"),wg=new Set,gy=(e,n)=>{wg.has(e)===!1&&(wg.add(e),Ro.debug([e].concat([]),{classifier:"✋ a11y",forceLog:!1,overwriteStyle:"; background-color: #09f"}))},zg=new Set,PB=(e,n)=>{zg.has(e)===!1&&(zg.add(e),Ro.warn([e].concat([]),{classifier:"🔥 deprecated",forceLog:!1,overwriteStyle:"; background-color: #f00"}))},Vs=new Set,_y=(e,n)=>{(Vs.has(e)===!1||n?.force)&&(Vs.add(e),Ro.debug([e].concat(n?.details||[]),{classifier:"💻 dev",forceLog:!!n?.force,overwriteStyle:"; background-color: #f09"}))},GB=(e,n)=>{Vs.has(e)===!1&&(Vs.add(e),Ro.warn([e].concat([]),{classifier:"⚠️ dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))},Sg=new Set,YB=(e,n=!1,r)=>{Sg.has(e)===!1&&(Sg.add(e),e+=n===!0?" ✅":"",Ro.debug([e].concat([]),{classifier:"🌟 feature",forceLog:!1,overwriteStyle:"; background-color: #309"}))};_y("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");const jg=new Set,g5=(e,n)=>{jg.has(e)===!1&&(jg.add(e),Ro.debug([e].concat([]),{classifier:"📑 ui/ux",forceLog:!1,overwriteStyle:"; background-color: #060;"}))},JB=()=>{gy(`"Disabled" limits accessibility and visibility. From an accessibility perspective, we recommend using the readonly attribute instead of disabled.
|
|
23
23
|
- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae`)},XB=e=>{(typeof e!="string"||e==="")&&gy(`Some structural elements, such as the nav tag, can be used multiple times on a webpage. To distinguish between similarly named structural elements, it is necessary to set an ARIA label.
|
|
24
24
|
- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns`)},WB=(e,n=8)=>{n>7&&g5(`[${e}] Within navigation structures, it is recommended to use no more than 7 menu items.
|
|
25
25
|
|
|
26
26
|
Link:
|
|
27
|
-
- https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus_or_Minus_Two`)};var _5=.2126,x5=.7152,y5=.0722,Uf=1/12.92;function Ff(e){return Math.pow((e+.055)/1.055,2.4)}function Tg(e){var n=e[0]/255,r=e[1]/255,i=e[2]/255,c=n<=.03928?n*Uf:Ff(n),d=r<=.03928?r*Uf:Ff(r),u=i<=.03928?i*Uf:Ff(i);return c*_5+d*x5+u*y5}function Ag(e){var n=255;(e=e.replace(/^#/,"")).length===8&&(n=parseInt(e.slice(6,8),16),e=e.substring(0,6)),e.length===4&&(n=parseInt(e.slice(3,4).repeat(2),16),e=e.substring(0,3)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var r=parseInt(e,16);return[r>>16,r>>8&255,255&r,n]}function w5(e,n){return(Math.max(e,n)+.05)/(Math.min(e,n)+.05)}function z5(e,n){return w5(Tg(e),Tg(n))}function S5(e,n){return z5(Ag(e),Ag(n))}function j5(e){return e>=7?"AAA":e>=4.5?"AA":e>=3?"AA Large":"Fail"}var Hf,Cg;function T5(){return Cg||(Cg=1,Hf={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),Hf}var Vf,Eg;function A5(){if(Eg)return Vf;Eg=1;var e=T5();Vf=r;var n={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function r(i){var c,d=[],u=1,m;if(typeof i=="string")if(i=i.toLowerCase(),e[i])d=e[i].slice(),m="rgb";else if(i==="transparent")u=0,m="rgb",d=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(i)){var h=i.slice(1),p=h.length,g=p<=4;u=1,g?(d=[parseInt(h[0]+h[0],16),parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16)],p===4&&(u=parseInt(h[3]+h[3],16)/255)):(d=[parseInt(h[0]+h[1],16),parseInt(h[2]+h[3],16),parseInt(h[4]+h[5],16)],p===8&&(u=parseInt(h[6]+h[7],16)/255)),d[0]||(d[0]=0),d[1]||(d[1]=0),d[2]||(d[2]=0),m="rgb"}else if(c=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(i)){var v=c[1],_=v==="rgb",h=v.replace(/a$/,"");m=h;var p=h==="cmyk"?4:h==="gray"?1:3;d=c[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(j,E){if(/%$/.test(j))return E===p?parseFloat(j)/100:h==="rgb"?parseFloat(j)*255/100:parseFloat(j);if(h[E]==="h"){if(/deg$/.test(j))return parseFloat(j);if(n[j]!==void 0)return n[j]}return parseFloat(j)}),v===h&&d.push(1),u=_||d[p]===void 0?1:d[p],d=d.slice(0,p)}else i.length>10&&/[0-9](?:\s|\/)/.test(i)&&(d=i.match(/([0-9]+)/g).map(function(z){return parseFloat(z)}),m=i.match(/([a-z])/ig).join("").toLowerCase());else isNaN(i)?Array.isArray(i)||i.length?(d=[i[0],i[1],i[2]],m="rgb",u=i.length===4?i[3]:1):i instanceof Object&&(i.r!=null||i.red!=null||i.R!=null?(m="rgb",d=[i.r||i.red||i.R||0,i.g||i.green||i.G||0,i.b||i.blue||i.B||0]):(m="hsl",d=[i.h||i.hue||i.H||0,i.s||i.saturation||i.S||0,i.l||i.lightness||i.L||i.b||i.brightness]),u=i.a||i.alpha||i.opacity||1,i.opacity!=null&&(u/=100)):(m="rgb",d=[i>>>16,(i&65280)>>>8,i&255]);return{space:m,values:d,alpha:u}}return Vf}var C5=A5(),QB=id(C5);const E5={min:[0,0,0],max:[255,255,255]};var eD={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var n=e[0]/360,r=e[1]/100,i=e[2]/100,c,d,u,m,h,p=0;if(r===0)return h=i*255,[h,h,h];for(d=i<.5?i*(1+r):i+r-i*r,c=2*i-d,m=[0,0,0];p<3;)u=n+1/3*-(p-1),u<0?u++:u>1&&u--,h=6*u<1?c+(d-c)*6*u:2*u<1?d:3*u<2?c+(d-c)*(2/3-u)*6:c,m[p++]=h*255;return m}};E5.hsl=function(e){var n=e[0]/255,r=e[1]/255,i=e[2]/255,c=Math.min(n,r,i),d=Math.max(n,r,i),u=d-c,m,h,p;return d===c?m=0:n===d?m=(r-i)/u:r===d?m=2+(i-n)/u:i===d&&(m=4+(n-r)/u),m=Math.min(m*60,360),m<0&&(m+=360),p=(c+d)/2,d===c?h=0:p<=.5?h=u/(d+c):h=u/(2-d-c),[m,h*100,p*100]};var Ir={exports:{}},Lg;function L5(){if(Lg)return Ir.exports;Lg=1,Ir.exports=e,Ir.exports.arr=e,Ir.exports.obj=n,Ir.exports.css=r,Ir.exports.hex=i,Ir.exports.num=c;function e(y){var w=d(y);return w.length==3?w.concat(255):(w[3]=Math.round(w[3]),w)}function n(y){var w=d(y);return{r:w[0],g:w[1],b:w[2],a:w.length==3?255:Math.round(w[3])}}function r(y){var w=d(y);return w.length==3&&w.push(255),w[3]==255?"rgb("+w[0]+", "+w[1]+", "+w[2]+")":w[3]==0?"rgba("+w[0]+", "+w[1]+", "+w[2]+", 0)":"rgba("+w[0]+", "+w[1]+", "+w[2]+", "+String(w[3]/255).substr(1)+")"}function i(y){var q=d(y);q.length==3&&q.push(255);var w=q[3]==255,N=u(q[0]),D=u(q[1]),H=u(q[2]),q=u(Math.round(q[3])),oe=m(N,D,H,q);return w?oe?"#"+N.charAt(0)+D.charAt(0)+H.charAt(0):"#"+N+D+H:oe?"#"+N.charAt(0)+D.charAt(0)+H.charAt(0)+q.charAt(0):"#"+N+D+H+q}function c(y){var w=d(y);return w.length==3?w.push(255):w[3]=Math.round(w[3]),(w[3]<<24>>>0|w[0]<<16|w[1]<<8|w[2])>>>0}function d(y){return typeof y=="string"?(y=y.toLowerCase(),h(y)||g(y)||v(y)||E(y)||L(y)||[0,0,0,255]):z(y)||$(y)||j(y)||[0,0,0,255]}function u(y){var w=y.toString(16);return w.length==1?"0"+w:w}function m(y,w,N,D){var H=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return H.indexOf(y)!=-1&&H.indexOf(w)!=-1&&H.indexOf(N)!=-1&&H.indexOf(D)!=-1}function h(y){if(y=="red")return[255,0,0];if(y=="green")return[0,255,0];if(y=="blue")return[0,0,255];if(y=="black")return[0,0,0];if(y=="white")return[255,255,255];if(y=="cyan")return[0,255,255];if(y=="gray")return[128,128,128];if(y=="grey")return[128,128,128];if(y=="magenta")return[255,0,255];if(y=="pink")return[255,0,255];if(y=="yellow")return[255,255,0]}function p(y){return y.length==1?parseInt(y+y,16):parseInt(y,16)}function g(y){var w=y.replace(/^#/,""),N=w.length;if(N==3||N==4){var D=p(w[0]),H=p(w[1]),q=p(w[2]),oe=N==3?255:p(w[3]);return isNaN(D)||isNaN(H)||isNaN(q)||isNaN(oe)?void 0:[D,H,q,oe]}}function v(y){var w=y.replace(/^#/,""),N=w.length;if(N==6||N==8){var D=p(w.slice(0,2)),H=p(w.slice(2,4)),q=p(w.slice(4,6)),oe=N==6?255:p(w.slice(6,8));return isNaN(D)||isNaN(H)||isNaN(q)||isNaN(oe)?void 0:[D,H,q,oe]}}function _(y,w){return typeof y!="number"||w===!0&&Math.floor(y)!==y?-1:y>=0&&y<=255?y:-1}function z(y){if(Object.prototype.toString.call(y)==="[object Object]"&&Object.getPrototypeOf(y)===Object.getPrototypeOf({})){var w=_(y.r!=null?y.r:y.red!=null?y.red:0,!0),N=_(y.g!=null?y.g:y.green!=null?y.green:0,!0),D=_(y.b!=null?y.b:y.blue!=null?y.blue:0,!0),H=_(y.a!=null?y.a:y.alpha!=null?y.alpha:255,!0);if(w!=-1&&N!=-1&&D!=-1&&H!=-1)return[w,N,D,H]}}function $(y){if(Array.isArray(y)&&(y.length==3||y.length==4)){var w=_(y[0],!0),N=_(y[1],!0),D=_(y[2],!0),H=_(y[3]!=null?y[3]:255,!0);if(w!=-1&&N!=-1&&D!=-1&&H!=-1)return[w,N,D,H]}}function j(y){if(typeof y=="number"&&Math.floor(y)==y&&y<=4294967295&&y>=0){var w=y>>24&255,N=y>>16&255,D=y>>8&255,H=y&255;return[N,D,H,w]}}function E(y){if(y.substr(0,4)=="rgb("){y=y.match(/^rgb\(([^)]+)\)/)[1];var w=y.split(/ *, */).map(Number),N=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0);if(N!=-1&&D!=-1&&H!=-1)return[N,D,H,255]}}function L(y){if(y.substr(0,5)=="rgba("){y=y.match(/^rgba\(([^)]+)\)/)[1];var w=y.split(/ *, */).map(Number),N=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0),q=_(w[3]*255);if(N!=-1&&D!=-1&&H!=-1&&q!=-1)return[N,D,H,q]}}return Ir.exports}var O5=L5(),Og=id(O5),Kf={},$g;function $5(){return $g||($g=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelectorAll=void 0;const n=(i,c)=>{c.forEach(d=>{i.has(d)===!1&&i.add(d)})},r=(i,c=document)=>{if(c instanceof Document||c instanceof HTMLElement||c instanceof ShadowRoot){const d=new Set;n(d,c.querySelectorAll(i));const u=c.querySelectorAll('[class*="hydrated"]');for(let m=0;m<u.length;m++){const h=u[m].shadowRoot;typeof h=="object"&&h!==null?n(d,(0,e.querySelectorAll)(i,h)):n(d,(0,e.querySelectorAll)(i,u[m]))}return Array.from(d)}else throw new Error("The parameter document for the method querySelectorAll is not type of Document, HTMLElement or ShadowRoot.")};e.querySelectorAll=r})(Kf)),Kf}var N5=$5(),qf={},Ng;function R5(){return Ng||(Ng=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelector=void 0;const n=(r,i=document)=>{if(i instanceof Document||i instanceof HTMLElement||i instanceof ShadowRoot){let c=i.querySelector(r);if(c===null){const d=i.querySelectorAll('[class*="hydrated"]');for(let u=0;u<d.length;u++){const m=d[u].shadowRoot;if(typeof m=="object"&&m!==null?c=(0,e.querySelector)(r,m):c=(0,e.querySelector)(r,d[u]),c!==null)break}}return c}else throw new Error("The parameter document for the method querySelector is not type of Document, HTMLElement or ShadowRoot.")};e.querySelector=n})(qf)),qf}var B5=R5();const D5=/\[object Object\]/,Zf=(e,n)=>{typeof e=="string"&&D5.test(e)||n()},M5=(e,n)=>{typeof e=="string"&&e===""||n()},oD=(e,n)=>{h5()&&($o.debug([e,n]),$o.debug("↑ We propagate the (submit) event to this target.")),Object.defineProperty(e,"target",{value:n,writable:!1})},I5=e=>{var n,r,i;(n=e.nextHooks)===null||n===void 0||n.forEach((c,d)=>{var u;const m=c.get("beforePatch");typeof m=="function"&&m((u=e.nextState)===null||u===void 0?void 0:u.get(d),e.nextState,e,d)}),((r=e.nextState)===null||r===void 0?void 0:r.size)>0&&(e.state=Object.assign(Object.assign({},e.state),Object.fromEntries(e.nextState)),delete e.nextState,(i=e.nextHooks)===null||i===void 0||i.forEach((c,d)=>{const u=c.get("afterPatch");typeof u=="function"&&u(e.state[d],e.state,e,d)})),delete e.nextHooks},yb=(e,n,r,i={})=>{var c,d;e.nextHooks===void 0&&(e.nextHooks=new Map),e.nextState===void 0&&(e.nextState=new Map),e.nextHooks.get(n)instanceof Map||e.nextHooks.set(n,new Map),typeof i.afterPatch=="function"&&((c=e.nextHooks.get(n))===null||c===void 0||c.set("afterPatch",i.afterPatch)),typeof i.beforePatch=="function"&&((d=e.nextHooks.get(n))===null||d===void 0||d.set("beforePatch",i.beforePatch)),e.nextState.set(n,r),I5(e)},U5=(e,n,r,i)=>{_y(`[${e.constructor.name}] The property value: (${r}) for '${n}' is not valid. Allowed values are: ${Array.from(i).join(", ")}`)};function pm(e,n,r,i,c,d={}){r(c)?yb(e,n,c,d.hooks):c===void 0&&d.required!==!0&&r(d.defaultValue)?yb(e,n,d.defaultValue,d.hooks):(d.required||i.add(null),U5(e,n,c,i))}const nD=(e,n,r,i)=>{pm(e,n,c=>typeof c=="boolean",new Set(["Boolean {true, false}"]),r,i)},tD=(e,n,r,i={})=>{const c=typeof i.minLength=="number"?i?.minLength:0;pm(e,n,d=>typeof d=="string"&&d.length>=c&&(typeof i?.maxLength>"u"||d.length<=i.maxLength),new Set(["String"]),r,i)},rD=(e,n,r,i)=>{pm(e,n,c=>typeof c=="number"&&(typeof i?.min>"u"||typeof i?.min=="number"&&c>=i.min)&&(typeof i?.max>"u"||typeof i?.max=="number"&&c<=i.max),new Set(["Number"]),r,i)},aD=(e,n,r,i,c=u=>u===u,d={})=>{M5(i,()=>{Zf(i,()=>{typeof i>"u"&&(i=[]);try{try{i=V5(i)}catch{}if(Array.isArray(i)){const u=i.find(m=>!r(m));u===void 0&&c(i)?yb(e,n,i,d.hooks):Zf(u,()=>{throw $o.debug(u),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}else Zf(i,()=>{throw $o.debug(i),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}catch(u){$o.debug(u)}})})},F5=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch{throw $o.warn(["stringifyJson",e]),$o.error("↑ The JSON could not be converted to a string. A stringifiable JSON is expected."),new Error}},H5=/^[{[]/,V5=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{if(H5.test(e))try{return JSON.parse(e.replace(/'/g,'"'))}catch{$o.warn(["parseJson",e]),$o.error("↑ The JSON string could not be parsed. Make sure that single quotes in the text are escaped (‘).")}}throw new Error},K5=e=>typeof e=="boolean"?e===!0?"true":"false":void 0,lD=e=>typeof e=="string"?e:K5(e),q5=(e,n)=>B5.querySelector(e,n||hm()),Z5=(e,n)=>N5.querySelectorAll(e,n||hm());let Pf=null;const xy=()=>(Pf=Pf||{backgroundColor:"#00000000",color:"#00000000",domNode:hm().body,level:"Fail",score:1},Pf),Rg=/(\d+, ){3}0\)/,wb=(e,n=xy())=>{const r=getComputedStyle(e),i=Rg.test(r.backgroundColor)?n.backgroundColor:Og.hex(r.backgroundColor),c=Rg.test(r.color)?n.color:Og.hex(r.color),d=S5(i,c),u={backgroundColor:i,color:c,domNode:e,level:j5(d),score:d};return d<4.5&&$o.error(["Color-Contrast-Error",{backgroundColor:u.backgroundColor,color:u.color,level:u.level,score:u.score},u.domNode]),u},P5=(e,n=xy())=>{n.domNode instanceof HTMLElement&&(n=wb(n.domNode,n));const r=n.domNode.querySelector(e);if(r===null){const i=n.domNode.querySelectorAll('[class="hydrated"]');for(let c=0;c<i.length&&(n.domNode=i[c],n=P5(e,n),n.domNode===null);c++);return n}else return wb(r,n)};class et{static queryHtmlElementColors(n,r,i=!1,c=!0){let d=null;if(i===!0||et.executionLock===!1)if(i===!1&&(et.cache.clear(),et.cache.set(r.domNode,r),et.executionLock=!0,c===!0&&$o.debug("[KoliBriUtils] Color contrast analysis started...")),n===r.domNode)d=r;else{const u=new Set;if(r.domNode.shadowRoot){const g=r.domNode.shadowRoot.children;for(let v=0;v<g.length;v++)u.add(g[v])}const m=r.domNode;if(typeof m.assignedNodes=="function"){const g=m.assignedNodes();for(let v=0;v<g.length;v++)g[v]instanceof HTMLElement&&u.add(g[v])}const h=r.domNode.children;for(let g=0;g<h.length;g++)u.add(h[g]);const p=Array.from(u);for(let g=0;g<p.length;g++){let v=et.cache.get(p[g]);v===void 0&&(v=wb(p[g],r)),et.cache.set(p[g],v);const _=et.queryHtmlElementColors(n,v,!0,!1);if(_!==null){d=_;break}}}else $o.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return i===!1&&(c===!0&&$o.debug(`[KoliBriUtils] Color contrast analysis finished (${et.cache.size} DOM elements are analysed).`),et.executionLock=!1,et.cache.clear()),d}}et.executionLock=!1;et.cache=new Map;class Ca{}Ca.getCssStyle=$s;Ca.patchTheme=Z6;Ca.patchThemeTag=q6;Ca.querySelector=q5;Ca.querySelectorAll=Z5;Ca.stringifyJson=F5;const iD=e=>typeof e=="object"&&e!==null,Bg=(e,n=0)=>typeof e=="string"&&e.length>=n,cD=e=>{if(typeof e=="object"&&e!==null){for(const n in e)if(Bg(n,1)===!1)return!1}else return Bg(e,1);return!0},sD=new Event("StateChange");var Gf,Dg;function G5(){return Dg||(Dg=1,Gf=function(n){return function(r,i){if(!r)return n;var c;typeof r=="string"?c=r:i=r;var d=n;return c&&(d+="__"+c),d+(i?Object.keys(i).reduce(function(u,m){var h=i[m];return h&&(u+=" "+(typeof h=="boolean"?d+"--"+m:d+"--"+m+"_"+h)),u},""):"")}}),Gf}var Y5=G5(),J5=id(Y5);function yy(){const e=new Map,n=(r,i,c)=>{try{return e.get(r)(i,c)}catch{return e.set(r,J5(r)).get(r)(i,c)}};return n.forBlock=r=>{const i=(c,d)=>n(r,c,d);return i.forElement=c=>d=>n(r,c,d),i},n}const wy=yy(),dD=wy("kol-icon"),uD=wy("kol-icon","icon");let zb;const Ns=[],X5=e=>{zb=e,Ns.forEach(n=>{n(e)})},fD=(e,n=!0)=>(n&&typeof zb=="string"&&e(zb),Ns.push(e),()=>{const r=Ns.indexOf(e);r>=0&&Ns.splice(r,1)});let Mg="kol-abbr",Ig="kol-accordion",Ug="kol-alert",Fg="kol-alert-wc",Hg="kol-avatar",Vg="kol-avatar-wc",Kg="kol-badge",qg="kol-breadcrumb",Zg="kol-button-link",Pg="kol-button",Gg="kol-button-wc",Yg="kol-card",Jg="kol-card-wc",Xg="kol-combobox",Wg="kol-details",Qg="kol-drawer",e_="kol-form",o_="kol-heading",n_="kol-icon",t_="kol-image",r_="kol-input-checkbox",a_="kol-input-color",l_="kol-input-date",i_="kol-input-email",c_="kol-input-file",s_="kol-input-number",d_="kol-input-password",u_="kol-input-radio",f_="kol-input-range",b_="kol-input",m_="kol-input-text",h_="kol-kolibri",p_="kol-link-button",k_="kol-link",v_="kol-link-wc",g_="kol-modal",__="kol-nav",x_="kol-pagination",y_="kol-pagination-wc",w_="kol-popover-wc",z_="kol-popover-button",S_="kol-popover-button-wc",j_="kol-progress",T_="kol-quote",A_="kol-select",C_="kol-select-wc",E_="kol-single-select",L_="kol-skip-nav",O_="kol-spin",$_="kol-split-button",N_="kol-table-settings-wc",R_="kol-table-stateful",B_="kol-table-stateless",D_="kol-table-stateless-wc",M_="kol-tabs",I_="kol-textarea",Sb="kol-toast-container",Yf="kol-tooltip-wc",U_="kol-tree-item",F_="kol-tree-item-wc",H_="kol-tree",V_="kol-tree-wc",K_="kol-version";const W5=e=>{Mg=e(Mg),Ig=e(Ig),Ug=e(Ug),Fg=e(Fg),Hg=e(Hg),Vg=e(Vg),Kg=e(Kg),qg=e(qg),Zg=e(Zg),Pg=e(Pg),Gg=e(Gg),Yg=e(Yg),Jg=e(Jg),Xg=e(Xg),Wg=e(Wg),Qg=e(Qg),e_=e(e_),o_=e(o_),n_=e(n_),t_=e(t_),r_=e(r_),a_=e(a_),l_=e(l_),i_=e(i_),c_=e(c_),s_=e(s_),d_=e(d_),u_=e(u_),f_=e(f_),b_=e(b_),m_=e(m_),h_=e(h_),p_=e(p_),k_=e(k_),v_=e(v_),g_=e(g_),__=e(__),x_=e(x_),y_=e(y_),w_=e(w_),z_=e(z_),S_=e(S_),j_=e(j_),T_=e(T_),A_=e(A_),C_=e(C_),E_=e(E_),L_=e(L_),O_=e(O_),$_=e($_),N_=e(N_),R_=e(R_),B_=e(B_),D_=e(D_),M_=e(M_),I_=e(I_),Sb=e(Sb),e(Yf),Yf=e(Yf),U_=e(U_),F_=e(F_),H_=e(H_),V_=e(V_),K_=e(K_)};var Q5={error:"Fehler",warning:"Warnung",info:"Hinweis",success:"Erfolg",message:"Nachricht",close:"Schließen","form-description":"Formular-Felder, die mit einem Sternchen (*) gekennzeichnet sind, sind Pflichtangaben.",new:"Neu","no-entries":"Es sind keine Einträge vorhanden.","change-order":"Sortierung von {{colLabel}} ändern","action-running":"Aktion wird ausgeführt...","action-done":"Aktion abgeschlossen",pagination:"Paginierung","page-first":"Direkt zur ersten Seite","page-back":"Eine Seite zurück","page-next":"Eine Seite weiter","page-last":"Direkt zur letzten Seite","entries-per-site":"Einträge pro Seite",page:"Seite","page-current":"Seite {{page}}","page-selected":"Seite {{page}} ist ausgewählt","page-per-site":"Einträge pro Seite","nav-maximize":"Navigation maximieren","nav-minimize":"Navigation minimieren","logo-description":"Logo {{orgShort}}. Bundesadler mit Flaggenstab und Schriftzug {{orgLong}}","open-link-in-tab":"Öffnet in neuem Tab.","kolibri-logo":"Logo von KoliBri","table-pagination-label":"Paginierung für die Tabelle {{label}}","avatar-alt":"Avatar von {{name}}","split-button-dropdown-label-open":"Optionen anzeigen","split-button-dropdown-label-close":"Optionen schließen","toast-close-all":"Alle Benachrichtigungen schließen","error-list":"Fehlerliste","error-list-message":"Bitte korrigieren Sie folgende Fehler:",version:"Versionsnummer","table-visible-range":"Einträge {{start}} bis {{end}} von {{total}}","table-selection-all":"Alle auswählen","table-selection-none":"Alle abwählen","table-selection-indeterminate":"Alle auswählen bei teilweiser Auswahl","table-settings":"Tabellenkonfiguration","table-settings-cancel":"Abbrechen","table-settings-apply":"Übernehmen","table-settings-show-column":"Spalte {{column}} anzeigen","table-settings-column-width":"Breite von {{column}}","table-settings-move-up":"Spalte {{column}} nach oben verschieben","table-settings-move-down":"Spalte {{column}} nach unten verschieben","table-settings-error-all-invisible":"Mindestens eine Spalte muss sichtbar sein.","table-settings-column-not-hidable":"nicht ausblendbar",dropdown:"Auswahlliste","nav-label-open":"Untermenü zu {{label}} öffnen","nav-label-close":"Untermenü zu {{label}} schließen","close-alert":"Benachrichtigung schließen","show-password":"einblenden","hide-password":"ausblenden","no-results-message":"Keine Ergebnisse gefunden.","delete-selection":"Auswahl entfernen","filename-text":"Datei auswählen oder hier ablegen...","data-browse-text":"Datei auswählen",sort:"sortieren","pagination-position-top":"oben","pagination-position-bottom":"unten","character-limit-hint":"Es können bis zu {{limit}} Zeichen eingegeben werden.","character-limit-remaining":"Es sind noch {{remaining}} Zeichen verfügbar.","character-limit-exceeded":"Es sind {{over}} Zeichen zu viel.","character-counter-current":"{{current}} Zeichen","character-counter-current-of-max":"{{current}}/{{max}} Zeichen","character-counter-current-of-max-aria":"{{current}} von {{max}} Zeichen",readonly:"schreibgeschützt"},eS={error:"Error",warning:"Warning",info:"Note",success:"Success",message:"Message",close:"Close","form-description":"Form fields marked with an asterisk (*) are mandatory.",new:"New","no-entries":"No entries available.","change-order":"Change order of {{colLabel}}","action-running":"Action is running...","action-done":"Action done",pagination:"Pagination","page-first":"Directly to the first page","page-back":"One page back","page-next":"One page further","page-last":"Directly to the last page","entries-per-site":"Entries per page",page:"Page","page-current":"Page {{page}}","page-selected":"Page {{page}} is selected","page-per-site":"Entries per page","nav-maximize":"Maximize navigation","nav-minimize":"Minimize navigation","logo-description":"Logo {{orgShort}}. Federal eagle with flag staff and lettering {{orgLong}}","open-link-in-tab":"Opens in new tab.","kolibri-logo":"KoliBri logo","table-pagination-label":"Pagination for table {{label}}","avatar-alt":"Avatar of {{name}}","split-button-dropdown-label-open":"Show options","split-button-dropdown-label-close":"Hide options","toast-close-all":"Close all notifications","error-list":"Error list","error-list-message":"Please correct the following errors",version:"Version number","table-visible-range":"Entries {{start}} to {{end}} of {{total}}","table-selection-all":"Select all","table-selection-none":"Deselect all","table-selection-indeterminate":"Select all with partial selection","table-settings":"Table configuration","table-settings-cancel":"Cancel","table-settings-apply":"Apply","table-settings-show-column":"Show column {{column}}","table-settings-column-width":"{{column}} width","table-settings-move-up":"Move {{column}} column up","table-settings-move-down":"Move {{column}} column down","table-settings-error-all-invisible":"At least one column must be visible.","table-settings-column-not-hidable":"cannot be hidden",dropdown:"Dropdown","nav-label-open":"Submenu for {{label}} open","nav-label-close":"Submenu for {{label}} close","close-alert":"Close notification","show-password":"Show","hide-password":"Hide","no-results-message":"No results found.","delete-selection":"Delete selection","filename-text":"Choose a file or drop it here...","data-browse-text":"Browse",sort:"sort","pagination-position-top":"top","pagination-position-bottom":"bottom","character-limit-hint":"You can enter up to {{limit}} characters","character-limit-remaining":"You have {{remaining}} characters remaining.","character-limit-exceeded":"You have {{over}} characters too many.","character-counter-current":"{{current}} characters","character-counter-current-of-max":"{{current}}/{{max}} characters","character-counter-current-of-max-aria":"{{current}} of {{max}} characters",readonly:"read-only"};const q_=e=>Object.keys(e).reduce((n,r)=>(n[`kol-${r}`]=e[r],n),{}),oS=new Set([e=>e("en",q_(eS)),e=>e("de",q_(Q5))]),nS=function(e,n,r){return e.split(n).join(r)};class tS{constructor(n){this.resourceMap=new Map,this.language=n??"de"}addTranslations(n){Array.isArray(n)?n=new Set(n):typeof n=="function"&&(n=new Set([n])),n!==void 0&&n.forEach(r=>r((i,c)=>{let d=this.resourceMap.get(i);return d||(d=new Map,this.resourceMap.set(i,d)),Object.entries(c).forEach(([u,m])=>{m&&d.set(u,m)}),i}))}setLanguage(n){this.language=n}translate(n,r){var i;let c=(i=this.resourceMap.get(this.language))===null||i===void 0?void 0:i.get(n);return c?r?.placeholders&&Object.entries(r.placeholders).forEach(([d,u])=>{c=nS(c,`{{${d}}}`,u)}):c=n,c}}let Rs;const bD=()=>Rs,rS=(e,n=oS)=>(Rs=new tS(e),Rs.addTranslations(n),Rs);var aS={};let zy=!1,Sy;const lS=async(e,n,r)=>{var i,c;const d=typeof process<"u"&&aS?"production":void 0;py(r?.environment||d||"production"),rS((c=(i=r?.translation)===null||i===void 0?void 0:i.name)!==null&&c!==void 0?c:"de",r?.translations),r?.transformTagName&&W5(r?.transformTagName);const u=await X6(e,n,r);return zy=!0,Sy=r,$o.info("Development mode active - Enhanced debugging features available"),u},iS=()=>zy,mD=()=>Sy;const km=yy(),hD=km("kol-alert","closer")+" kol-close-button",pD=km("kol-alert","content"),kD=km("kol-alert","icon");var Rt;(function(e){e.blur="kolBlur",e.change="kolChange",e.changePage="kolChangePage",e.changePageSize="kolChangePageSize",e.click="kolClick",e.close="kolClose",e.create="kolCreate",e.focus="kolFocus",e.input="kolInput",e.keydown="kolKeydown",e.mousedown="kolMousedown",e.reset="kolReset",e.select="kolSelect",e.selectionChange="kolSelectionChange",e.settingsChange="settingsChange",e.sort="kolSort",e.submit="kolSubmit",e.toggle="kolToggle"})(Rt||(Rt={}));function cS(e,n){return new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!0,detail:n})}function vD(e,n,r){e.dispatchEvent(cS(n,r))}class Gr{constructor(n,r){var i;this.document=n,this.options=r,this.toastContainerElement=this.document.createElement(Sb),this.document.body.prepend(this.toastContainerElement),!((i=this.options)===null||i===void 0)&&i.defaultVariant&&$o.info("ToasterService: Default variant is deprecated. Use 'card' variant for all toasts instead.")}static getInstance(n,r){if(!iS())throw new Error("Toaster: Call KoliBri bootstrap/register method first.");let i=this.instances.get(n);return i||(i=new Gr(n,r),this.instances.set(n,i)),i}dispose(){const n=this.toastContainerElement;n?(this.toastContainerElement=void 0,n.remove()):$o.warn("Toaster service is already disposed.")}enqueue(n){if(this.toastContainerElement&&typeof this.toastContainerElement.enqueue=="function")return this.toastContainerElement.enqueue(n)}closeAll(n=!1){this.toastContainerElement&&typeof this.toastContainerElement.closeAll=="function"&&this.toastContainerElement.closeAll(n)}}Gr.instances=new Map;var vn;(function(e){e["Die Bundesregierung"]="BReg",e["Bundesministerium der Finanzen"]="BMF",e["Bundesministerium des Innern, für Bau und Heimat"]="BMI",e["Auswärtiges Amt"]="AA",e["Bundesministerium für Wirtschaft und Energie"]="BMWi",e["Bundesministerium der Justiz und für Verbraucherschutz"]="BMJV",e["Bundesministerium für Arbeit und Soziales"]="BMAS",e["Bundesministerium der Verteidigung"]="BMVg",e["Bundesministerium für Ernährung und Landwirtschaft"]="BMEL",e["Bundesministerium für Familie, Senioren, Frauen und Jugend"]="BMFSFJ",e["Bundesministerium für Gesundheit"]="BMG",e["Bundesministerium für Verkehr und digitale Infrastruktur"]="BMVI",e["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"]="BMU",e["Bundesministerium für Bildung und Forschung"]="BMBF",e["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"]="BMZ"})(vn||(vn={}));var Ke;(function(e){e["Beschaffungsamt des Bundesministeriums des Innern"]="BeschA",e["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"]="BAAINBw",e["Bundesamt für äußere Restitutionen"]="BAR",e["Bundesamt für Bauwesen und Raumordnung"]="BBR",e["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"]="BBK",e["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"]="BAFzA",e["Bundesamt für Güterverkehr"]="BAG",e["Bundesamt für Justiz"]="BfJ",e["Bundesamt für Kartographie und Geodäsie"]="BKG",e["Bundesamt für kerntechnische Entsorgungssicherheit"]="BASE",e["Bundesamt für Migration und Flüchtlinge"]="BAMF",e["Bundesamt für Sicherheit in der Informationstechnik"]="BSI",e["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"]="BVL",e["Bundesamt für Verfassungsschutz"]="BfV",e["Bundesamt für Wirtschaft und Ausfuhrkontrolle"]="BAFA",e["Bundesamt für zentrale Dienste und offene Vermögensfragen"]="BADV",e["Bundesanstalt für Verwaltungsdienstleistungen"]="BAV",e.Bundesarchiv="BArch",e["Bundesaufsichtsamt für Flugsicherung"]="BAF",e.Bundesausgleichsamt="BAA",e.Bundeskartellamt="BKartA",e.Bundeskriminalamt="BKA",e.Bundesnachrichtendienst="BND",e["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"]="BNetzA",e.Bundespolizeipräsidium="BPOLP",e["Bundesprüfstelle für jugendgefährdende Medien"]="BPjM",e.Bundessortenamt="BSA",e.Bundessprachenamt="BSprA",e["Bundesamt für Soziale Sicherung"]="BAS",e.Bundesverwaltungsamt="BVA",e["Bundeszentralamt für Steuern"]="BZSt",e["Deutsches Patent- und Markenamt"]="DPMA",e["Eisenbahn-Bundesamt"]="EBA",e.Generalzolldirektion="GZD",e["Militärischer Abschirmdienst"]="MAD",e["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"]="ZITiS"})(Ke||(Ke={}));var fr;(function(e){e["Informationstechnikzentrum Bund"]="ITZBund",e["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"]="BDBOS",e["Bundesanstalt für Landwirtschaft und Ernährung"]="BLE",e["Bundesanstalt Technisches Hilfswerk"]="THW",e["Bundesinstitut für Arzneimittel und Medizinprodukte"]="BfArM",e["Bundesinstitut für Bevölkerungsforschung"]="BiB",e["Bundesinstitut für Sportwissenschaft"]="BISp"})(fr||(fr={}));const ye=new Map;ye.set(vn["Die Bundesregierung"],["Die","Bundesregierung"]);ye.set(vn["Bundesministerium der Finanzen"],["Bundesministerium","der Finanzen"]);ye.set(vn["Bundesministerium des Innern, für Bau und Heimat"],["Bundesministerium","des Inneren, für Bau","und Heimat"]);ye.set(vn["Auswärtiges Amt"],["Auswärtiges Amt"]);ye.set(vn["Bundesministerium für Wirtschaft und Energie"],["Bundesministerium","für Wirtschaft","und Energie"]);ye.set(vn["Bundesministerium der Justiz und für Verbraucherschutz"],["Bundesministerium","der Justiz und","für Verbraucherschutz"]);ye.set(vn["Bundesministerium für Arbeit und Soziales"],["Bundesministerium","für Arbeit und Soziales"]);ye.set(vn["Bundesministerium der Verteidigung"],["Bundesministerium","der Verteidigung"]);ye.set(vn["Bundesministerium für Bildung und Forschung"],["Bundesministerium","für Bildung","und Forschung"]);ye.set(vn["Bundesministerium für Ernährung und Landwirtschaft"],["Bundesministerium","für Ernährung","und Landwirtschaft"]);ye.set(vn["Bundesministerium für Familie, Senioren, Frauen und Jugend"],["Bundesministerium","für Familie, Senioren, Frauen","und Jugend"]);ye.set(vn["Bundesministerium für Gesundheit"],["Bundesministerium","für Gesundheit"]);ye.set(vn["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"],["Bundesministerium","für Umwelt, Naturschutz","und nukleare Sicherheit"]);ye.set(vn["Bundesministerium für Verkehr und digitale Infrastruktur"],["Bundesministerium","für Verkehr und","digitale Infrastruktur"]);ye.set(vn["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"],["Bundesministerium","für wirtschaftliche Zusammenarbeit","und Entwicklung"]);ye.set(Ke["Beschaffungsamt des Bundesministeriums des Innern"],["Beschaffungsamt","des Bundesministeriums","des Innern"]);ye.set(Ke["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"],[]);ye.set(Ke["Bundesamt für äußere Restitutionen"],[]);ye.set(Ke["Bundesamt für Bauwesen und Raumordnung"],[]);ye.set(Ke["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"],["Bundesamt","für Bevölkerungsschutz","und Katastrophenhilfe"]);ye.set(Ke["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"],["Bundesamt","für Familie und","zivilgesellschaftliche Aufgaben"]);ye.set(Ke["Bundesamt für Güterverkehr"],["Bundesamt","für Güterverkehr"]);ye.set(Ke["Bundesamt für Justiz"],["Bundesamt für","Justiz"]);ye.set(Ke["Bundesamt für Kartographie und Geodäsie"],["Bundesamt für","Kartographie und Geodäsie"]);ye.set(Ke["Bundesamt für kerntechnische Entsorgungssicherheit"],["Bundesamt für","kerntechnische","Entsorgungssicherheit"]);ye.set(Ke["Bundesamt für Migration und Flüchtlinge"],["Bundesamt","für Migration","und Flüchtlinge"]);ye.set(Ke["Bundesamt für Sicherheit in der Informationstechnik"],["Bundesamt","für Sicherheit in der","Informationstechnik"]);ye.set(Ke["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"],["Bundesamt für","Verbraucherschutz und","Lebensmittelsicherheit"]);ye.set(Ke["Bundesamt für Verfassungsschutz"],["Bundesamt für","Verfassungsschutz"]);ye.set(Ke["Bundesamt für Wirtschaft und Ausfuhrkontrolle"],["Bundesamt","für Wirtschaft","Ausfuhrkontrolle"]);ye.set(Ke["Bundesamt für zentrale Dienste und offene Vermögensfragen"],["Bundesamt","für zentrale Dienste und","offene Vermögensfragen"]);ye.set(Ke["Bundesanstalt für Verwaltungsdienstleistungen"],["Bundesanstalt","für Verwaltungsdienstleistungen"]);ye.set(Ke.Bundesarchiv,["Das","Bundesarchiv"]);ye.set(Ke["Bundesaufsichtsamt für Flugsicherung"],["Bundesaufsichtsamt","für Flugsicherung"]);ye.set(Ke.Bundesausgleichsamt,["Bundesausgleichsamt"]);ye.set(Ke.Bundeskartellamt,["Bundeskartellamt"]);ye.set(Ke.Bundeskriminalamt,["Bundeskriminalamt"]);ye.set(Ke.Bundesnachrichtendienst,["Bundesnachrichtendienst"]);ye.set(Ke["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"],["Bundesnetzagentur"]);ye.set(Ke.Bundespolizeipräsidium,["Bundespolizeipräsidium"]);ye.set(Ke["Bundesprüfstelle für jugendgefährdende Medien"],["Bundesprüfstelle","für jugendgefährdende","Medien"]);ye.set(Ke.Bundessortenamt,["Bundessortenamt"]);ye.set(Ke.Bundessprachenamt,["Bundessprachenamt"]);ye.set(Ke["Bundesamt für Soziale Sicherung"],["Bundesamt","für Soziale Sicherung"]);ye.set(Ke.Bundesverwaltungsamt,["Bundesverwaltungsamt"]);ye.set(Ke["Bundeszentralamt für Steuern"],["Bundeszentralamt","für Steuern"]);ye.set(Ke["Deutsches Patent- und Markenamt"],["Deutsches","Patent- und Markenamt"]);ye.set(Ke["Eisenbahn-Bundesamt"],["Eisenbahn-Bundesamt"]);ye.set(Ke.Generalzolldirektion,["Generalzolldirektion"]);ye.set(Ke["Militärischer Abschirmdienst"],["Bundesamt für den","Militärischen Abschirmdienst"]);ye.set(Ke["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"],["Zentrale Stelle","für Informationstechnik","im Sicherheitsbereich"]);ye.set(fr["Informationstechnikzentrum Bund"],["Informations","Technik","Zentrum Bund"]);ye.set(fr["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"],["Bundesanstalt","für den Digitalfunk der Behörden und","Organisationen mit Sicherheitsaufgaben"]);ye.set(fr["Bundesanstalt für Landwirtschaft und Ernährung"],["Bundesanstalt für","Landwirtschaft und Ernährung"]);ye.set(fr["Bundesanstalt Technisches Hilfswerk"],["Bundesanstalt","Technisches Hilfswerk"]);ye.set(fr["Bundesinstitut für Arzneimittel und Medizinprodukte"],["Bundesinstitut","für Arzneimittel","und Medizinprodukte"]);ye.set(fr["Bundesinstitut für Bevölkerungsforschung"],["Bundesinstitut","für Bevölkerungsforschung"]);ye.set(fr["Bundesinstitut für Sportwissenschaft"],["Bundesinstitut","für Sportwissenschaft"]);const sS="modulepreload",dS=function(e){return"/"+e},Z_={},pe=function(n,r,i){let c=Promise.resolve();if(r&&r.length>0){let h=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),m=u?.nonce||u?.getAttribute("nonce");c=h(r.map(p=>{if(p=dS(p),p in Z_)return;Z_[p]=!0;const g=p.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const _=document.createElement("link");if(_.rel=g?"stylesheet":sS,g||(_.as="script"),_.crossOrigin="",_.href=p,m&&_.setAttribute("nonce",m),document.head.appendChild(_),g)return new Promise((z,$)=>{_.addEventListener("load",z),_.addEventListener("error",()=>$(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(u){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=u,window.dispatchEvent(m),!m.defaultPrevented)throw u}return c.then(u=>{for(const m of u||[])m.status==="rejected"&&d(m.reason);return n().catch(d)})},uS="kolibri",wa={hydratedSelectorName:"hydrated",lazyLoad:!0,propChangeCallback:!0,slotRelocation:!0,state:!0,updatable:!0},gD={kolibriVersion:"3.1.5-rc.1"};var fS=Object.defineProperty,bS=(e,n)=>{for(var r in n)fS(e,r,{get:n[r],enumerable:!0})},mS="http://www.w3.org/2000/svg",hS="http://www.w3.org/1999/xhtml",jy=(e=>(e.Undefined="undefined",e.Null="null",e.String="string",e.Number="number",e.SpecialNumber="number",e.Boolean="boolean",e.BigInt="bigint",e))(jy||{}),Ty=(e=>(e.Array="array",e.Date="date",e.Map="map",e.Object="object",e.RegularExpression="regexp",e.Set="set",e.Channel="channel",e.Symbol="symbol",e))(Ty||{}),Jf="type",Xf="value",jb="serialized:",pS=(e,n)=>{var r;const i=n.$cmpMeta$;Object.entries((r=i.$members$)!=null?r:{}).map(([d,[u]])=>{if(u&31||u&32){const m=e[d],h=kS(Object.getPrototypeOf(e),d)||Object.getOwnPropertyDescriptor(e,d);h&&Object.defineProperty(e,d,{get(){return h.get.call(this)},set(p){h.set.call(this,p)},configurable:!0,enumerable:!0}),e[d]=n.$instanceValues$.has(d)?n.$instanceValues$.get(d):m}})};function kS(e,n){for(;e;){const r=Object.getOwnPropertyDescriptor(e,n);if(r?.get)return r;e=Object.getPrototypeOf(e)}}var rt=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},_D=(e,n)=>{n&&(e.__stencil__getHostRef=()=>n,n.$lazyInstance$=e,n.$cmpMeta$.$flags$&512&&wa.state&&pS(e,n))},vS=(e,n)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:n,$instanceValues$:new Map,$serializerValues$:new Map};r.$onInstancePromise$=new Promise(c=>r.$onInstanceResolve$=c),r.$onReadyPromise$=new Promise(c=>r.$onReadyResolve$=c),e["s-p"]=[],e["s-rc"]=[],r.$fetchedCbList$=[];const i=r;return e.__stencil__getHostRef=()=>i,i},P_=(e,n)=>n in e,fe=(e,n)=>(0,console.error)(e,n),Wf=new Map,gS=(e,n,r)=>{const i=e.$tagName$.replace(/-/g,"_"),c=e.$lazyBundleId$;if(!c)return;const d=Wf.get(c);if(d)return d[i];{const u=m=>(Wf.set(c,m),m[i]);switch(c){case"kol-abbr":return pe(()=>import("./kol-abbr.entry-DptUghxG.js"),__vite__mapDeps([0,1])).then(u,fe);case"kol-accordion":return pe(()=>import("./kol-accordion.entry-DeC70sJu.js"),__vite__mapDeps([2,3,4,5,6,7,1,8,9,10])).then(u,fe);case"kol-alert":return pe(()=>import("./kol-alert.entry-DI_rp705.js"),[]).then(u,fe);case"kol-avatar":return pe(()=>import("./kol-avatar.entry-BZJQ9eGF.js"),[]).then(u,fe);case"kol-badge":return pe(()=>import("./kol-badge.entry-I_WImewk.js"),__vite__mapDeps([11,12,4,5,13,6,14,15,16,17,18,19,20,21,9])).then(u,fe);case"kol-breadcrumb":return pe(()=>import("./kol-breadcrumb.entry-Bq91p3X0.js"),__vite__mapDeps([22,1,23,24])).then(u,fe);case"kol-button":return pe(()=>import("./kol-button.entry-BWyLtMZJ.js"),[]).then(u,fe);case"kol-button-link":return pe(()=>import("./kol-button-link.entry-C6cDtgjS.js"),[]).then(u,fe);case"kol-card":return pe(()=>import("./kol-card.entry-Fkq8hQMZ.js"),[]).then(u,fe);case"kol-details":return pe(()=>import("./kol-details.entry-CIuelV8L.js"),__vite__mapDeps([25,3,4,5,6,7,1,8,9,10])).then(u,fe);case"kol-drawer":return pe(()=>import("./kol-drawer.entry-D5oiRVF2.js"),__vite__mapDeps([26,5,27,28,1,8,29])).then(u,fe);case"kol-form":return pe(()=>import("./kol-form.entry-B1KmaymY.js"),__vite__mapDeps([30,13,12,4,5,6])).then(u,fe);case"kol-heading":return pe(()=>import("./kol-heading.entry-ByFGUOzS.js"),__vite__mapDeps([31,12,4,5,13,6,1,19,10])).then(u,fe);case"kol-icon":return pe(()=>import("./kol-icon.entry-Bed1bdLS.js"),__vite__mapDeps([32,1,5])).then(u,fe);case"kol-image":return pe(()=>import("./kol-image.entry-qINp7tRX.js"),__vite__mapDeps([33,34])).then(u,fe);case"kol-input-checkbox":return pe(()=>import("./kol-input-checkbox.entry-BWMgf4Zm.js"),__vite__mapDeps([35,5,9,36,1,37,38,39,40,7,41,42,27,43,21,4,18,13,20,12,6,17,44,45,46])).then(u,fe);case"kol-input-color":return pe(()=>import("./kol-input-color.entry-BVvUKfhp.js"),__vite__mapDeps([47,4,39,40,7,41,1,42,27,43,21,5,18,13,20,12,6,48,17,15,49,44,9,50,51])).then(u,fe);case"kol-input-date":return pe(()=>import("./kol-input-date.entry-VgploGFF.js"),__vite__mapDeps([52,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,50,53,37,51])).then(u,fe);case"kol-input-email":return pe(()=>import("./kol-input-email.entry-50HwsYSd.js"),__vite__mapDeps([54,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,55,56,57,58,51,59,50,60,53,37])).then(u,fe);case"kol-input-file":return pe(()=>import("./kol-input-file.entry-y70lbbcj.js"),__vite__mapDeps([61,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,56,37])).then(u,fe);case"kol-input-number":return pe(()=>import("./kol-input-number.entry-5_PTvYjD.js"),__vite__mapDeps([62,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,50,60,53,37,51])).then(u,fe);case"kol-input-password":return pe(()=>import("./kol-input-password.entry-BpZW54L-.js"),__vite__mapDeps([63,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,59,50,55,60,53,37])).then(u,fe);case"kol-input-radio":return pe(()=>import("./kol-input-radio.entry-DgezpQ3r.js"),__vite__mapDeps([64,5,9,46,36,1,37,38,39,40,7,41,42,27,43,21,4,18,13,20,12,6,45,44])).then(u,fe);case"kol-input-text":return pe(()=>import("./kol-input-text.entry-D1n7ESJt.js"),__vite__mapDeps([65,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,57,58,51,59,50,55,60,53,37])).then(u,fe);case"kol-kolibri":return pe(()=>import("./kol-kolibri.entry-BW4p7bji.js"),__vite__mapDeps([66,14,13])).then(u,fe);case"kol-link":return pe(()=>import("./kol-link.entry-5V0gb1-T.js"),[]).then(u,fe);case"kol-link-button":return pe(()=>import("./kol-link-button.entry-BRB2iZV0.js"),[]).then(u,fe);case"kol-modal":return pe(()=>import("./kol-modal.entry-Demx9m4E.js"),__vite__mapDeps([67,5,1,29])).then(u,fe);case"kol-nav":return pe(()=>import("./kol-nav.entry-BWC9kL2H.js"),__vite__mapDeps([68,41,1,5,13,9,23,24])).then(u,fe);case"kol-pagination":return pe(()=>import("./kol-pagination.entry-Q8at4PNg.js"),[]).then(u,fe);case"kol-popover-button":return pe(()=>import("./kol-popover-button.entry-BxGmrakV.js"),[]).then(u,fe);case"kol-progress":return pe(()=>import("./kol-progress.entry-BrRC_rCQ.js"),__vite__mapDeps([69,1])).then(u,fe);case"kol-quote":return pe(()=>import("./kol-quote.entry-gsjsHWcY.js"),__vite__mapDeps([70,18,1,5])).then(u,fe);case"kol-select":return pe(()=>import("./kol-select.entry-CqN0yQqD.js"),[]).then(u,fe);case"kol-skip-nav":return pe(()=>import("./kol-skip-nav.entry-qox1ShDj.js"),__vite__mapDeps([71,1,23,24])).then(u,fe);case"kol-spin":return pe(()=>import("./kol-spin.entry-DmdEg_dk.js"),__vite__mapDeps([72,1,73,13,5])).then(u,fe);case"kol-split-button":return pe(()=>import("./kol-split-button.entry-93A1jXin.js"),__vite__mapDeps([74,5,13])).then(u,fe);case"kol-table-stateful":return pe(()=>import("./kol-table-stateful.entry-bFo7QGon.js"),__vite__mapDeps([75,13,76,1,77])).then(u,fe);case"kol-table-stateless":return pe(()=>import("./kol-table-stateless.entry-DiEokJE0.js"),[]).then(u,fe);case"kol-tabs":return pe(()=>import("./kol-tabs.entry-Be0eTNI0.js"),__vite__mapDeps([78,27,1,5,13,77])).then(u,fe);case"kol-textarea":return pe(()=>import("./kol-textarea.entry-BR2Jmcrq.js"),__vite__mapDeps([79,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,9,55,60,53,37,80,58])).then(u,fe);case"kol-toast-container":return pe(()=>import("./kol-toast-container.entry-CrCL6ul4.js"),__vite__mapDeps([81,13,9,12,4,5,6,19])).then(u,fe);case"kol-toolbar":return pe(()=>import("./kol-toolbar.entry-BuzywX5A.js"),__vite__mapDeps([82,4,1,77,38])).then(u,fe);case"kol-tree":return pe(()=>import("./kol-tree.entry-2BMSN4u8.js"),[]).then(u,fe);case"kol-tree-item":return pe(()=>import("./kol-tree-item.entry-CnPKy8Ne.js"),[]).then(u,fe);case"kol-version":return pe(()=>import("./kol-version.entry-Br2F9TAS.js"),__vite__mapDeps([83,1,13])).then(u,fe);case"kol-alert-wc":return pe(()=>import("./kol-alert-wc.entry-nx5bhB_D.js"),__vite__mapDeps([84,12,4,5,13,6,28,1,10])).then(u,fe);case"kol-avatar-wc":return pe(()=>import("./kol-avatar-wc.entry-DfsFerC4.js"),__vite__mapDeps([85,14,34,1,13])).then(u,fe);case"kol-button-wc":return pe(()=>import("./kol-button-wc.entry-CZJWh5t2.js"),__vite__mapDeps([86,18,40,87,88,7,41,15,89,1,42,27,5,12,4,13,6,16,17,19,20,21,46,43])).then(u,fe);case"kol-card-wc":return pe(()=>import("./kol-card-wc.entry-CHzTR-jq.js"),__vite__mapDeps([90,28,1,13,10,12,4,5,6,19,9])).then(u,fe);case"kol-combobox":return pe(()=>import("./kol-combobox.entry-CPXovvnJ.js"),__vite__mapDeps([91,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,92,9,60,37,51])).then(u,fe);case"kol-input-range":return pe(()=>import("./kol-input-range.entry-CEpNzgz_.js"),__vite__mapDeps([93,4,5,39,40,7,41,1,42,27,43,21,18,13,20,12,6,48,17,15,49,44,9,46,50,51])).then(u,fe);case"kol-link-wc":return pe(()=>import("./kol-link-wc.entry-2NECEqch.js"),__vite__mapDeps([94,18,40,87,88,7,41,95,15,89,1,42,27,5,12,4,13,6,16,17,19,20,21])).then(u,fe);case"kol-pagination-wc":return pe(()=>import("./kol-pagination-wc.entry-C8XwggKW.js"),__vite__mapDeps([96,88,1,42,27,13,9,23])).then(u,fe);case"kol-popover-button-wc":return pe(()=>import("./kol-popover-button-wc.entry-BMsxFv6W.js"),__vite__mapDeps([97,98,5,89,27])).then(u,fe);case"kol-popover-wc":return pe(()=>import("./kol-popover-wc.entry-CbroajWq.js"),__vite__mapDeps([99,98,27,73,5])).then(u,fe);case"kol-select-wc":return pe(()=>import("./kol-select-wc.entry-DYKhE1f7.js"),__vite__mapDeps([100,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,9,46,56,36,37,38,80])).then(u,fe);case"kol-single-select":return pe(()=>import("./kol-single-select.entry-D7b6Ix7Z.js"),__vite__mapDeps([101,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,92,9,36,37,38,60])).then(u,fe);case"kol-table-settings-wc":return pe(()=>import("./kol-table-settings-wc.entry-DqlGjrtJ.js"),__vite__mapDeps([102,4,13])).then(u,fe);case"kol-table-stateless-wc":return pe(()=>import("./kol-table-stateless-wc.entry-D5OGQXFm.js"),__vite__mapDeps([103,5,13,76,1,77,9,21])).then(u,fe);case"kol-tooltip-wc":return pe(()=>import("./kol-tooltip-wc.entry-Cz81qvaS.js"),__vite__mapDeps([104,98,27,1,12,4,5,13,6,16,17,18,19,20,21,29])).then(u,fe);case"kol-tree-item-wc":return pe(()=>import("./kol-tree-item-wc.entry-Dj-k2brT.js"),__vite__mapDeps([105,5,95,1,8,9])).then(u,fe);case"kol-tree-wc":return pe(()=>import("./kol-tree-wc.entry-D7XDWr3i.js"),__vite__mapDeps([106,1])).then(u,fe);case"test-component":return pe(()=>import("./test-component.entry-BViy26XD.js"),[]).then(u,fe)}}return pe(()=>import(`./${c}.entry.js`),[]).then(u=>(Wf.set(c,u),u[i]),u=>{fe(u,n.$hostElement$)})},Ks=new Map,Ay=[],_S="r",xS="o",Tb="s",yS="t",wS="c",Gi="s-id",Ab="sty-id",G_="c-id",zS="{visibility:hidden}.hydrated{visibility:inherit}",Cy="slot-fb{display:contents}slot-fb[hidden]{display:none}",Y_="http://www.w3.org/1999/xlink",no=typeof window<"u"?window:{},mo={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,r,i)=>e.addEventListener(n,r,i),rel:(e,n,r,i)=>e.removeEventListener(n,r,i),ce:(e,n)=>new CustomEvent(e,n)},SS=(()=>{var e;let n=!1;try{(e=no.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){n=!0}}))}catch{}return n})(),jS=e=>Promise.resolve(e),vm=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),Cb=vm?!!no.document&&Object.getOwnPropertyDescriptor(no.document.adoptedStyleSheets,"length").writable:!1,Ey=e=>jS().then(e),gm=e=>(e=typeof e,e==="object"||e==="function");function Ly(e){var n,r,i;return(i=(r=(n=e.head)==null?void 0:n.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?i:void 0}var TS=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),AS=class va{static fromLocalValue(n){const r=n[Jf],i=Xf in n?n[Xf]:void 0;switch(r){case"string":return i;case"boolean":return i;case"bigint":return BigInt(i);case"undefined":return;case"null":return null;case"number":return i==="NaN"?NaN:i==="-0"?-0:i==="Infinity"?1/0:i==="-Infinity"?-1/0:i;case"array":return i.map(p=>va.fromLocalValue(p));case"date":return new Date(i);case"map":const c=new Map;for(const[p,g]of i){const v=typeof p=="object"&&p!==null?va.fromLocalValue(p):p,_=va.fromLocalValue(g);c.set(v,_)}return c;case"object":const d={};for(const[p,g]of i)d[p]=va.fromLocalValue(g);return d;case"regexp":const{pattern:u,flags:m}=i;return new RegExp(u,m);case"set":const h=new Set;for(const p of i)h.add(va.fromLocalValue(p));return h;case"symbol":return Symbol(i);default:throw new Error(`Unsupported type: ${r}`)}}static fromLocalValueArray(n){return n.map(r=>va.fromLocalValue(r))}static isLocalValueObject(n){if(typeof n!="object"||n===null||!n.hasOwnProperty(Jf))return!1;const r=n[Jf];return Object.values({...jy,...Ty}).includes(r)?r!=="null"&&r!=="undefined"?n.hasOwnProperty(Xf):!0:!1}},CS={};bS(CS,{err:()=>Oy,map:()=>ES,ok:()=>Eb,unwrap:()=>LS,unwrapErr:()=>OS});var Eb=e=>({isOk:!0,isErr:!1,value:e}),Oy=e=>({isOk:!1,isErr:!0,value:e});function ES(e,n){if(e.isOk){const r=n(e.value);return r instanceof Promise?r.then(i=>Eb(i)):Eb(r)}if(e.isErr){const r=e.value;return Oy(r)}throw"should never get here"}var LS=e=>{if(e.isOk)return e.value;throw e.value},OS=e=>{if(e.isErr)return e.value;throw e.value};function $S(e){return typeof e!="string"||!e.startsWith(jb)?e:AS.fromLocalValue(JSON.parse(atob(e.slice(jb.length))))}var Oi;function NS(e){var n;const r=this.attachShadow({mode:"open"});Oi===void 0&&(Oi=(n=void 0)!=null?n:null),Oi&&(Cb?r.adoptedStyleSheets.push(Oi):r.adoptedStyleSheets=[...r.adoptedStyleSheets,Oi])}var $y=e=>{const n=Vr(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&Ny(n,e.tagName).forEach(i=>{i.nodeType===1&&i.tagName==="SLOT-FB"&&(BS(i,_m(i),!1).length?i.hidden=!0:i.hidden=!1)});let r=0;for(r=0;r<n.length;r++){const i=n[r];i.nodeType===1&&Vr(i,"childNodes").length&&$y(i)}},RS=e=>{const n=[];for(let r=0;r<e.length;r++){const i=e[r]["s-nr"]||void 0;i&&i.isConnected&&n.push(i)}return n};function Ny(e,n,r){let i=0,c=[],d;for(;i<e.length;i++)d=e[i],d["s-sr"]&&(!n||d["s-hn"]===n)&&r===void 0&&c.push(d),c=[...c,...Ny(d.childNodes,n,r)];return c}var BS=(e,n,r=!0)=>{const i=[];(r&&e["s-sr"]||!e["s-sr"])&&i.push(e);let c=e;for(;c=c.nextSibling;)_m(c)===n&&(r||!c["s-sr"])&&i.push(c);return i},J_=(e,n)=>e.nodeType===1?e.getAttribute("slot")===null&&n===""||e.getAttribute("slot")===n:e["s-sn"]===n?!0:n==="",DS=(e,n,r,i)=>{if(e["s-ol"]&&e["s-ol"].isConnected)return;const c=document.createTextNode("");if(c["s-nr"]=e,!n["s-cr"]||!n["s-cr"].parentNode)return;const d=n["s-cr"].parentNode,u=Vr(d,"appendChild");if(typeof i<"u"){c["s-oo"]=i;const m=Vr(d,"childNodes"),h=[c];m.forEach(p=>{p["s-nr"]&&h.push(p)}),h.sort((p,g)=>!p["s-oo"]||p["s-oo"]<(g["s-oo"]||0)?-1:!g["s-oo"]||g["s-oo"]<p["s-oo"]?1:0),h.forEach(p=>u.call(d,p))}else u.call(d,c);e["s-ol"]=c,e["s-sh"]=n["s-hn"]},_m=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Ry(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const n=r=>(function(i){const c=[],d=this["s-sn"];i?.flatten&&console.error(`
|
|
27
|
+
- https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus_or_Minus_Two`)};var _5=.2126,x5=.7152,y5=.0722,Uf=1/12.92;function Ff(e){return Math.pow((e+.055)/1.055,2.4)}function Tg(e){var n=e[0]/255,r=e[1]/255,i=e[2]/255,c=n<=.03928?n*Uf:Ff(n),d=r<=.03928?r*Uf:Ff(r),u=i<=.03928?i*Uf:Ff(i);return c*_5+d*x5+u*y5}function Ag(e){var n=255;(e=e.replace(/^#/,"")).length===8&&(n=parseInt(e.slice(6,8),16),e=e.substring(0,6)),e.length===4&&(n=parseInt(e.slice(3,4).repeat(2),16),e=e.substring(0,3)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var r=parseInt(e,16);return[r>>16,r>>8&255,255&r,n]}function w5(e,n){return(Math.max(e,n)+.05)/(Math.min(e,n)+.05)}function z5(e,n){return w5(Tg(e),Tg(n))}function S5(e,n){return z5(Ag(e),Ag(n))}function j5(e){return e>=7?"AAA":e>=4.5?"AA":e>=3?"AA Large":"Fail"}var Hf,Cg;function T5(){return Cg||(Cg=1,Hf={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),Hf}var Vf,Eg;function A5(){if(Eg)return Vf;Eg=1;var e=T5();Vf=r;var n={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function r(i){var c,d=[],u=1,m;if(typeof i=="string")if(i=i.toLowerCase(),e[i])d=e[i].slice(),m="rgb";else if(i==="transparent")u=0,m="rgb",d=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(i)){var h=i.slice(1),p=h.length,g=p<=4;u=1,g?(d=[parseInt(h[0]+h[0],16),parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16)],p===4&&(u=parseInt(h[3]+h[3],16)/255)):(d=[parseInt(h[0]+h[1],16),parseInt(h[2]+h[3],16),parseInt(h[4]+h[5],16)],p===8&&(u=parseInt(h[6]+h[7],16)/255)),d[0]||(d[0]=0),d[1]||(d[1]=0),d[2]||(d[2]=0),m="rgb"}else if(c=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(i)){var v=c[1],_=v==="rgb",h=v.replace(/a$/,"");m=h;var p=h==="cmyk"?4:h==="gray"?1:3;d=c[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(j,E){if(/%$/.test(j))return E===p?parseFloat(j)/100:h==="rgb"?parseFloat(j)*255/100:parseFloat(j);if(h[E]==="h"){if(/deg$/.test(j))return parseFloat(j);if(n[j]!==void 0)return n[j]}return parseFloat(j)}),v===h&&d.push(1),u=_||d[p]===void 0?1:d[p],d=d.slice(0,p)}else i.length>10&&/[0-9](?:\s|\/)/.test(i)&&(d=i.match(/([0-9]+)/g).map(function(z){return parseFloat(z)}),m=i.match(/([a-z])/ig).join("").toLowerCase());else isNaN(i)?Array.isArray(i)||i.length?(d=[i[0],i[1],i[2]],m="rgb",u=i.length===4?i[3]:1):i instanceof Object&&(i.r!=null||i.red!=null||i.R!=null?(m="rgb",d=[i.r||i.red||i.R||0,i.g||i.green||i.G||0,i.b||i.blue||i.B||0]):(m="hsl",d=[i.h||i.hue||i.H||0,i.s||i.saturation||i.S||0,i.l||i.lightness||i.L||i.b||i.brightness]),u=i.a||i.alpha||i.opacity||1,i.opacity!=null&&(u/=100)):(m="rgb",d=[i>>>16,(i&65280)>>>8,i&255]);return{space:m,values:d,alpha:u}}return Vf}var C5=A5(),QB=id(C5);const E5={min:[0,0,0],max:[255,255,255]};var eD={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var n=e[0]/360,r=e[1]/100,i=e[2]/100,c,d,u,m,h,p=0;if(r===0)return h=i*255,[h,h,h];for(d=i<.5?i*(1+r):i+r-i*r,c=2*i-d,m=[0,0,0];p<3;)u=n+1/3*-(p-1),u<0?u++:u>1&&u--,h=6*u<1?c+(d-c)*6*u:2*u<1?d:3*u<2?c+(d-c)*(2/3-u)*6:c,m[p++]=h*255;return m}};E5.hsl=function(e){var n=e[0]/255,r=e[1]/255,i=e[2]/255,c=Math.min(n,r,i),d=Math.max(n,r,i),u=d-c,m,h,p;return d===c?m=0:n===d?m=(r-i)/u:r===d?m=2+(i-n)/u:i===d&&(m=4+(n-r)/u),m=Math.min(m*60,360),m<0&&(m+=360),p=(c+d)/2,d===c?h=0:p<=.5?h=u/(d+c):h=u/(2-d-c),[m,h*100,p*100]};var Ur={exports:{}},Lg;function L5(){if(Lg)return Ur.exports;Lg=1,Ur.exports=e,Ur.exports.arr=e,Ur.exports.obj=n,Ur.exports.css=r,Ur.exports.hex=i,Ur.exports.num=c;function e(y){var w=d(y);return w.length==3?w.concat(255):(w[3]=Math.round(w[3]),w)}function n(y){var w=d(y);return{r:w[0],g:w[1],b:w[2],a:w.length==3?255:Math.round(w[3])}}function r(y){var w=d(y);return w.length==3&&w.push(255),w[3]==255?"rgb("+w[0]+", "+w[1]+", "+w[2]+")":w[3]==0?"rgba("+w[0]+", "+w[1]+", "+w[2]+", 0)":"rgba("+w[0]+", "+w[1]+", "+w[2]+", "+String(w[3]/255).substr(1)+")"}function i(y){var q=d(y);q.length==3&&q.push(255);var w=q[3]==255,N=u(q[0]),D=u(q[1]),H=u(q[2]),q=u(Math.round(q[3])),oe=m(N,D,H,q);return w?oe?"#"+N.charAt(0)+D.charAt(0)+H.charAt(0):"#"+N+D+H:oe?"#"+N.charAt(0)+D.charAt(0)+H.charAt(0)+q.charAt(0):"#"+N+D+H+q}function c(y){var w=d(y);return w.length==3?w.push(255):w[3]=Math.round(w[3]),(w[3]<<24>>>0|w[0]<<16|w[1]<<8|w[2])>>>0}function d(y){return typeof y=="string"?(y=y.toLowerCase(),h(y)||g(y)||v(y)||E(y)||L(y)||[0,0,0,255]):z(y)||$(y)||j(y)||[0,0,0,255]}function u(y){var w=y.toString(16);return w.length==1?"0"+w:w}function m(y,w,N,D){var H=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return H.indexOf(y)!=-1&&H.indexOf(w)!=-1&&H.indexOf(N)!=-1&&H.indexOf(D)!=-1}function h(y){if(y=="red")return[255,0,0];if(y=="green")return[0,255,0];if(y=="blue")return[0,0,255];if(y=="black")return[0,0,0];if(y=="white")return[255,255,255];if(y=="cyan")return[0,255,255];if(y=="gray")return[128,128,128];if(y=="grey")return[128,128,128];if(y=="magenta")return[255,0,255];if(y=="pink")return[255,0,255];if(y=="yellow")return[255,255,0]}function p(y){return y.length==1?parseInt(y+y,16):parseInt(y,16)}function g(y){var w=y.replace(/^#/,""),N=w.length;if(N==3||N==4){var D=p(w[0]),H=p(w[1]),q=p(w[2]),oe=N==3?255:p(w[3]);return isNaN(D)||isNaN(H)||isNaN(q)||isNaN(oe)?void 0:[D,H,q,oe]}}function v(y){var w=y.replace(/^#/,""),N=w.length;if(N==6||N==8){var D=p(w.slice(0,2)),H=p(w.slice(2,4)),q=p(w.slice(4,6)),oe=N==6?255:p(w.slice(6,8));return isNaN(D)||isNaN(H)||isNaN(q)||isNaN(oe)?void 0:[D,H,q,oe]}}function _(y,w){return typeof y!="number"||w===!0&&Math.floor(y)!==y?-1:y>=0&&y<=255?y:-1}function z(y){if(Object.prototype.toString.call(y)==="[object Object]"&&Object.getPrototypeOf(y)===Object.getPrototypeOf({})){var w=_(y.r!=null?y.r:y.red!=null?y.red:0,!0),N=_(y.g!=null?y.g:y.green!=null?y.green:0,!0),D=_(y.b!=null?y.b:y.blue!=null?y.blue:0,!0),H=_(y.a!=null?y.a:y.alpha!=null?y.alpha:255,!0);if(w!=-1&&N!=-1&&D!=-1&&H!=-1)return[w,N,D,H]}}function $(y){if(Array.isArray(y)&&(y.length==3||y.length==4)){var w=_(y[0],!0),N=_(y[1],!0),D=_(y[2],!0),H=_(y[3]!=null?y[3]:255,!0);if(w!=-1&&N!=-1&&D!=-1&&H!=-1)return[w,N,D,H]}}function j(y){if(typeof y=="number"&&Math.floor(y)==y&&y<=4294967295&&y>=0){var w=y>>24&255,N=y>>16&255,D=y>>8&255,H=y&255;return[N,D,H,w]}}function E(y){if(y.substr(0,4)=="rgb("){y=y.match(/^rgb\(([^)]+)\)/)[1];var w=y.split(/ *, */).map(Number),N=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0);if(N!=-1&&D!=-1&&H!=-1)return[N,D,H,255]}}function L(y){if(y.substr(0,5)=="rgba("){y=y.match(/^rgba\(([^)]+)\)/)[1];var w=y.split(/ *, */).map(Number),N=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0),q=_(w[3]*255);if(N!=-1&&D!=-1&&H!=-1&&q!=-1)return[N,D,H,q]}}return Ur.exports}var O5=L5(),Og=id(O5),Kf={},$g;function $5(){return $g||($g=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelectorAll=void 0;const n=(i,c)=>{c.forEach(d=>{i.has(d)===!1&&i.add(d)})},r=(i,c=document)=>{if(c instanceof Document||c instanceof HTMLElement||c instanceof ShadowRoot){const d=new Set;n(d,c.querySelectorAll(i));const u=c.querySelectorAll('[class*="hydrated"]');for(let m=0;m<u.length;m++){const h=u[m].shadowRoot;typeof h=="object"&&h!==null?n(d,(0,e.querySelectorAll)(i,h)):n(d,(0,e.querySelectorAll)(i,u[m]))}return Array.from(d)}else throw new Error("The parameter document for the method querySelectorAll is not type of Document, HTMLElement or ShadowRoot.")};e.querySelectorAll=r})(Kf)),Kf}var N5=$5(),qf={},Ng;function R5(){return Ng||(Ng=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelector=void 0;const n=(r,i=document)=>{if(i instanceof Document||i instanceof HTMLElement||i instanceof ShadowRoot){let c=i.querySelector(r);if(c===null){const d=i.querySelectorAll('[class*="hydrated"]');for(let u=0;u<d.length;u++){const m=d[u].shadowRoot;if(typeof m=="object"&&m!==null?c=(0,e.querySelector)(r,m):c=(0,e.querySelector)(r,d[u]),c!==null)break}}return c}else throw new Error("The parameter document for the method querySelector is not type of Document, HTMLElement or ShadowRoot.")};e.querySelector=n})(qf)),qf}var B5=R5();const D5=/\[object Object\]/,Zf=(e,n)=>{typeof e=="string"&&D5.test(e)||n()},M5=(e,n)=>{typeof e=="string"&&e===""||n()},oD=(e,n)=>{h5()&&(Ro.debug([e,n]),Ro.debug("↑ We propagate the (submit) event to this target.")),Object.defineProperty(e,"target",{value:n,writable:!1})},I5=e=>{var n,r,i;(n=e.nextHooks)===null||n===void 0||n.forEach((c,d)=>{var u;const m=c.get("beforePatch");typeof m=="function"&&m((u=e.nextState)===null||u===void 0?void 0:u.get(d),e.nextState,e,d)}),((r=e.nextState)===null||r===void 0?void 0:r.size)>0&&(e.state=Object.assign(Object.assign({},e.state),Object.fromEntries(e.nextState)),delete e.nextState,(i=e.nextHooks)===null||i===void 0||i.forEach((c,d)=>{const u=c.get("afterPatch");typeof u=="function"&&u(e.state[d],e.state,e,d)})),delete e.nextHooks},yb=(e,n,r,i={})=>{var c,d;e.nextHooks===void 0&&(e.nextHooks=new Map),e.nextState===void 0&&(e.nextState=new Map),e.nextHooks.get(n)instanceof Map||e.nextHooks.set(n,new Map),typeof i.afterPatch=="function"&&((c=e.nextHooks.get(n))===null||c===void 0||c.set("afterPatch",i.afterPatch)),typeof i.beforePatch=="function"&&((d=e.nextHooks.get(n))===null||d===void 0||d.set("beforePatch",i.beforePatch)),e.nextState.set(n,r),I5(e)},U5=(e,n,r,i)=>{_y(`[${e.constructor.name}] The property value: (${r}) for '${n}' is not valid. Allowed values are: ${Array.from(i).join(", ")}`)};function pm(e,n,r,i,c,d={}){r(c)?yb(e,n,c,d.hooks):c===void 0&&d.required!==!0&&r(d.defaultValue)?yb(e,n,d.defaultValue,d.hooks):(d.required||i.add(null),U5(e,n,c,i))}const nD=(e,n,r,i)=>{pm(e,n,c=>typeof c=="boolean",new Set(["Boolean {true, false}"]),r,i)},tD=(e,n,r,i={})=>{const c=typeof i.minLength=="number"?i?.minLength:0;pm(e,n,d=>typeof d=="string"&&d.length>=c&&(typeof i?.maxLength>"u"||d.length<=i.maxLength),new Set(["String"]),r,i)},rD=(e,n,r,i)=>{pm(e,n,c=>typeof c=="number"&&(typeof i?.min>"u"||typeof i?.min=="number"&&c>=i.min)&&(typeof i?.max>"u"||typeof i?.max=="number"&&c<=i.max),new Set(["Number"]),r,i)},aD=(e,n,r,i,c=u=>u===u,d={})=>{M5(i,()=>{Zf(i,()=>{typeof i>"u"&&(i=[]);try{try{i=V5(i)}catch{}if(Array.isArray(i)){const u=i.find(m=>!r(m));u===void 0&&c(i)?yb(e,n,i,d.hooks):Zf(u,()=>{throw Ro.debug(u),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}else Zf(i,()=>{throw Ro.debug(i),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}catch(u){Ro.debug(u)}})})},F5=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch{throw Ro.warn(["stringifyJson",e]),Ro.error("↑ The JSON could not be converted to a string. A stringifiable JSON is expected."),new Error}},H5=/^[{[]/,V5=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{if(H5.test(e))try{return JSON.parse(e.replace(/'/g,'"'))}catch{Ro.warn(["parseJson",e]),Ro.error("↑ The JSON string could not be parsed. Make sure that single quotes in the text are escaped (‘).")}}throw new Error},K5=e=>typeof e=="boolean"?e===!0?"true":"false":void 0,lD=e=>typeof e=="string"?e:K5(e),q5=(e,n)=>B5.querySelector(e,n||hm()),Z5=(e,n)=>N5.querySelectorAll(e,n||hm());let Pf=null;const xy=()=>(Pf=Pf||{backgroundColor:"#00000000",color:"#00000000",domNode:hm().body,level:"Fail",score:1},Pf),Rg=/(\d+, ){3}0\)/,wb=(e,n=xy())=>{const r=getComputedStyle(e),i=Rg.test(r.backgroundColor)?n.backgroundColor:Og.hex(r.backgroundColor),c=Rg.test(r.color)?n.color:Og.hex(r.color),d=S5(i,c),u={backgroundColor:i,color:c,domNode:e,level:j5(d),score:d};return d<4.5&&Ro.error(["Color-Contrast-Error",{backgroundColor:u.backgroundColor,color:u.color,level:u.level,score:u.score},u.domNode]),u},P5=(e,n=xy())=>{n.domNode instanceof HTMLElement&&(n=wb(n.domNode,n));const r=n.domNode.querySelector(e);if(r===null){const i=n.domNode.querySelectorAll('[class="hydrated"]');for(let c=0;c<i.length&&(n.domNode=i[c],n=P5(e,n),n.domNode===null);c++);return n}else return wb(r,n)};class nt{static queryHtmlElementColors(n,r,i=!1,c=!0){let d=null;if(i===!0||nt.executionLock===!1)if(i===!1&&(nt.cache.clear(),nt.cache.set(r.domNode,r),nt.executionLock=!0,c===!0&&Ro.debug("[KoliBriUtils] Color contrast analysis started...")),n===r.domNode)d=r;else{const u=new Set;if(r.domNode.shadowRoot){const g=r.domNode.shadowRoot.children;for(let v=0;v<g.length;v++)u.add(g[v])}const m=r.domNode;if(typeof m.assignedNodes=="function"){const g=m.assignedNodes();for(let v=0;v<g.length;v++)g[v]instanceof HTMLElement&&u.add(g[v])}const h=r.domNode.children;for(let g=0;g<h.length;g++)u.add(h[g]);const p=Array.from(u);for(let g=0;g<p.length;g++){let v=nt.cache.get(p[g]);v===void 0&&(v=wb(p[g],r)),nt.cache.set(p[g],v);const _=nt.queryHtmlElementColors(n,v,!0,!1);if(_!==null){d=_;break}}}else Ro.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return i===!1&&(c===!0&&Ro.debug(`[KoliBriUtils] Color contrast analysis finished (${nt.cache.size} DOM elements are analysed).`),nt.executionLock=!1,nt.cache.clear()),d}}nt.executionLock=!1;nt.cache=new Map;class Ea{}Ea.getCssStyle=$s;Ea.patchTheme=Z6;Ea.patchThemeTag=q6;Ea.querySelector=q5;Ea.querySelectorAll=Z5;Ea.stringifyJson=F5;const iD=e=>typeof e=="object"&&e!==null,Bg=(e,n=0)=>typeof e=="string"&&e.length>=n,cD=e=>{if(typeof e=="object"&&e!==null){for(const n in e)if(Bg(n,1)===!1)return!1}else return Bg(e,1);return!0},sD=new Event("StateChange");var Gf,Dg;function G5(){return Dg||(Dg=1,Gf=function(n){return function(r,i){if(!r)return n;var c;typeof r=="string"?c=r:i=r;var d=n;return c&&(d+="__"+c),d+(i?Object.keys(i).reduce(function(u,m){var h=i[m];return h&&(u+=" "+(typeof h=="boolean"?d+"--"+m:d+"--"+m+"_"+h)),u},""):"")}}),Gf}var Y5=G5(),J5=id(Y5);function yy(){const e=new Map,n=(r,i,c)=>{try{return e.get(r)(i,c)}catch{return e.set(r,J5(r)).get(r)(i,c)}};return n.forBlock=r=>{const i=(c,d)=>n(r,c,d);return i.forElement=c=>d=>n(r,c,d),i},n}const wy=yy(),dD=wy("kol-icon"),uD=wy("kol-icon","icon");let zb;const Ns=[],X5=e=>{zb=e,Ns.forEach(n=>{n(e)})},fD=(e,n=!0)=>(n&&typeof zb=="string"&&e(zb),Ns.push(e),()=>{const r=Ns.indexOf(e);r>=0&&Ns.splice(r,1)});let Mg="kol-abbr",Ig="kol-accordion",Ug="kol-alert",Fg="kol-alert-wc",Hg="kol-avatar",Vg="kol-avatar-wc",Kg="kol-badge",qg="kol-breadcrumb",Zg="kol-button-link",Pg="kol-button",Gg="kol-button-wc",Yg="kol-card",Jg="kol-card-wc",Xg="kol-combobox",Wg="kol-details",Qg="kol-drawer",e_="kol-form",o_="kol-heading",n_="kol-icon",t_="kol-image",r_="kol-input-checkbox",a_="kol-input-color",l_="kol-input-date",i_="kol-input-email",c_="kol-input-file",s_="kol-input-number",d_="kol-input-password",u_="kol-input-radio",f_="kol-input-range",b_="kol-input",m_="kol-input-text",h_="kol-kolibri",p_="kol-link-button",k_="kol-link",v_="kol-link-wc",g_="kol-modal",__="kol-nav",x_="kol-pagination",y_="kol-pagination-wc",w_="kol-popover-wc",z_="kol-popover-button",S_="kol-popover-button-wc",j_="kol-progress",T_="kol-quote",A_="kol-select",C_="kol-select-wc",E_="kol-single-select",L_="kol-skip-nav",O_="kol-spin",$_="kol-split-button",N_="kol-table-settings-wc",R_="kol-table-stateful",B_="kol-table-stateless",D_="kol-table-stateless-wc",M_="kol-tabs",I_="kol-textarea",Sb="kol-toast-container",Yf="kol-tooltip-wc",U_="kol-tree-item",F_="kol-tree-item-wc",H_="kol-tree",V_="kol-tree-wc",K_="kol-version";const W5=e=>{Mg=e(Mg),Ig=e(Ig),Ug=e(Ug),Fg=e(Fg),Hg=e(Hg),Vg=e(Vg),Kg=e(Kg),qg=e(qg),Zg=e(Zg),Pg=e(Pg),Gg=e(Gg),Yg=e(Yg),Jg=e(Jg),Xg=e(Xg),Wg=e(Wg),Qg=e(Qg),e_=e(e_),o_=e(o_),n_=e(n_),t_=e(t_),r_=e(r_),a_=e(a_),l_=e(l_),i_=e(i_),c_=e(c_),s_=e(s_),d_=e(d_),u_=e(u_),f_=e(f_),b_=e(b_),m_=e(m_),h_=e(h_),p_=e(p_),k_=e(k_),v_=e(v_),g_=e(g_),__=e(__),x_=e(x_),y_=e(y_),w_=e(w_),z_=e(z_),S_=e(S_),j_=e(j_),T_=e(T_),A_=e(A_),C_=e(C_),E_=e(E_),L_=e(L_),O_=e(O_),$_=e($_),N_=e(N_),R_=e(R_),B_=e(B_),D_=e(D_),M_=e(M_),I_=e(I_),Sb=e(Sb),e(Yf),Yf=e(Yf),U_=e(U_),F_=e(F_),H_=e(H_),V_=e(V_),K_=e(K_)};var Q5={error:"Fehler",warning:"Warnung",info:"Hinweis",success:"Erfolg",message:"Nachricht",close:"Schließen","form-description":"Formular-Felder, die mit einem Sternchen (*) gekennzeichnet sind, sind Pflichtangaben.",new:"Neu","no-entries":"Es sind keine Einträge vorhanden.","change-order":"Sortierung von {{colLabel}} ändern","action-running":"Aktion wird ausgeführt...","action-done":"Aktion abgeschlossen",pagination:"Paginierung","page-first":"Direkt zur ersten Seite","page-back":"Eine Seite zurück","page-next":"Eine Seite weiter","page-last":"Direkt zur letzten Seite","entries-per-site":"Einträge pro Seite",page:"Seite","page-current":"Seite {{page}}","page-selected":"Seite {{page}} ist ausgewählt","page-per-site":"Einträge pro Seite","nav-maximize":"Navigation maximieren","nav-minimize":"Navigation minimieren","logo-description":"Logo {{orgShort}}. Bundesadler mit Flaggenstab und Schriftzug {{orgLong}}","open-link-in-tab":"Öffnet in neuem Tab.","kolibri-logo":"Logo von KoliBri","table-pagination-label":"Paginierung für die Tabelle {{label}}","avatar-alt":"Avatar von {{name}}","split-button-dropdown-label-open":"Optionen anzeigen","split-button-dropdown-label-close":"Optionen schließen","toast-close-all":"Alle Benachrichtigungen schließen","error-list":"Fehlerliste","error-list-message":"Bitte korrigieren Sie folgende Fehler:",version:"Versionsnummer","table-visible-range":"Einträge {{start}} bis {{end}} von {{total}}","table-selection-all":"Alle auswählen","table-selection-none":"Alle abwählen","table-selection-indeterminate":"Alle auswählen bei teilweiser Auswahl","table-settings":"Tabellenkonfiguration","table-settings-cancel":"Abbrechen","table-settings-apply":"Übernehmen","table-settings-show-column":"Spalte {{column}} anzeigen","table-settings-column-width":"Breite von {{column}}","table-settings-move-up":"Spalte {{column}} nach oben verschieben","table-settings-move-down":"Spalte {{column}} nach unten verschieben","table-settings-error-all-invisible":"Mindestens eine Spalte muss sichtbar sein.","table-settings-column-not-hidable":"nicht ausblendbar",dropdown:"Auswahlliste","nav-label-open":"Untermenü zu {{label}} öffnen","nav-label-close":"Untermenü zu {{label}} schließen","close-alert":"Benachrichtigung schließen","show-password":"einblenden","hide-password":"ausblenden","no-results-message":"Keine Ergebnisse gefunden.","delete-selection":"Auswahl entfernen","filename-text":"Datei auswählen oder hier ablegen...","data-browse-text":"Datei auswählen",sort:"sortieren","pagination-position-top":"oben","pagination-position-bottom":"unten","character-limit-hint":"Es können bis zu {{limit}} Zeichen eingegeben werden.","character-limit-remaining":"Es sind noch {{remaining}} Zeichen verfügbar.","character-limit-exceeded":"Es sind {{over}} Zeichen zu viel.","character-counter-current":"{{current}} Zeichen","character-counter-current-of-max":"{{current}}/{{max}} Zeichen","character-counter-current-of-max-aria":"{{current}} von {{max}} Zeichen",readonly:"schreibgeschützt"},eS={error:"Error",warning:"Warning",info:"Note",success:"Success",message:"Message",close:"Close","form-description":"Form fields marked with an asterisk (*) are mandatory.",new:"New","no-entries":"No entries available.","change-order":"Change order of {{colLabel}}","action-running":"Action is running...","action-done":"Action done",pagination:"Pagination","page-first":"Directly to the first page","page-back":"One page back","page-next":"One page further","page-last":"Directly to the last page","entries-per-site":"Entries per page",page:"Page","page-current":"Page {{page}}","page-selected":"Page {{page}} is selected","page-per-site":"Entries per page","nav-maximize":"Maximize navigation","nav-minimize":"Minimize navigation","logo-description":"Logo {{orgShort}}. Federal eagle with flag staff and lettering {{orgLong}}","open-link-in-tab":"Opens in new tab.","kolibri-logo":"KoliBri logo","table-pagination-label":"Pagination for table {{label}}","avatar-alt":"Avatar of {{name}}","split-button-dropdown-label-open":"Show options","split-button-dropdown-label-close":"Hide options","toast-close-all":"Close all notifications","error-list":"Error list","error-list-message":"Please correct the following errors",version:"Version number","table-visible-range":"Entries {{start}} to {{end}} of {{total}}","table-selection-all":"Select all","table-selection-none":"Deselect all","table-selection-indeterminate":"Select all with partial selection","table-settings":"Table configuration","table-settings-cancel":"Cancel","table-settings-apply":"Apply","table-settings-show-column":"Show column {{column}}","table-settings-column-width":"{{column}} width","table-settings-move-up":"Move {{column}} column up","table-settings-move-down":"Move {{column}} column down","table-settings-error-all-invisible":"At least one column must be visible.","table-settings-column-not-hidable":"cannot be hidden",dropdown:"Dropdown","nav-label-open":"Submenu for {{label}} open","nav-label-close":"Submenu for {{label}} close","close-alert":"Close notification","show-password":"Show","hide-password":"Hide","no-results-message":"No results found.","delete-selection":"Delete selection","filename-text":"Choose a file or drop it here...","data-browse-text":"Browse",sort:"sort","pagination-position-top":"top","pagination-position-bottom":"bottom","character-limit-hint":"You can enter up to {{limit}} characters","character-limit-remaining":"You have {{remaining}} characters remaining.","character-limit-exceeded":"You have {{over}} characters too many.","character-counter-current":"{{current}} characters","character-counter-current-of-max":"{{current}}/{{max}} characters","character-counter-current-of-max-aria":"{{current}} of {{max}} characters",readonly:"read-only"};const q_=e=>Object.keys(e).reduce((n,r)=>(n[`kol-${r}`]=e[r],n),{}),oS=new Set([e=>e("en",q_(eS)),e=>e("de",q_(Q5))]),nS=function(e,n,r){return e.split(n).join(r)};class tS{constructor(n){this.resourceMap=new Map,this.language=n??"de"}addTranslations(n){Array.isArray(n)?n=new Set(n):typeof n=="function"&&(n=new Set([n])),n!==void 0&&n.forEach(r=>r((i,c)=>{let d=this.resourceMap.get(i);return d||(d=new Map,this.resourceMap.set(i,d)),Object.entries(c).forEach(([u,m])=>{m&&d.set(u,m)}),i}))}setLanguage(n){this.language=n}translate(n,r){var i;let c=(i=this.resourceMap.get(this.language))===null||i===void 0?void 0:i.get(n);return c?r?.placeholders&&Object.entries(r.placeholders).forEach(([d,u])=>{c=nS(c,`{{${d}}}`,u)}):c=n,c}}let Rs;const bD=()=>Rs,rS=(e,n=oS)=>(Rs=new tS(e),Rs.addTranslations(n),Rs);var aS={};let zy=!1,Sy;const lS=async(e,n,r)=>{var i,c;const d=typeof process<"u"&&aS?"production":void 0;py(r?.environment||d||"production"),rS((c=(i=r?.translation)===null||i===void 0?void 0:i.name)!==null&&c!==void 0?c:"de",r?.translations),r?.transformTagName&&W5(r?.transformTagName);const u=await X6(e,n,r);return zy=!0,Sy=r,Ro.info("Development mode active - Enhanced debugging features available"),u},iS=()=>zy,mD=()=>Sy;const km=yy(),hD=km("kol-alert","closer")+" kol-close-button",pD=km("kol-alert","content"),kD=km("kol-alert","icon");var Rt;(function(e){e.blur="kolBlur",e.change="kolChange",e.changePage="kolChangePage",e.changePageSize="kolChangePageSize",e.click="kolClick",e.close="kolClose",e.create="kolCreate",e.focus="kolFocus",e.input="kolInput",e.keydown="kolKeydown",e.mousedown="kolMousedown",e.reset="kolReset",e.select="kolSelect",e.selectionChange="kolSelectionChange",e.settingsChange="settingsChange",e.sort="kolSort",e.submit="kolSubmit",e.toggle="kolToggle"})(Rt||(Rt={}));function cS(e,n){return new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!0,detail:n})}function vD(e,n,r){e.dispatchEvent(cS(n,r))}class Yr{constructor(n,r){var i;this.document=n,this.options=r,this.toastContainerElement=this.document.createElement(Sb),this.document.body.prepend(this.toastContainerElement),!((i=this.options)===null||i===void 0)&&i.defaultVariant&&Ro.info("ToasterService: Default variant is deprecated. Use 'card' variant for all toasts instead.")}static getInstance(n,r){if(!iS())throw new Error("Toaster: Call KoliBri bootstrap/register method first.");let i=this.instances.get(n);return i||(i=new Yr(n,r),this.instances.set(n,i)),i}dispose(){const n=this.toastContainerElement;n?(this.toastContainerElement=void 0,n.remove()):Ro.warn("Toaster service is already disposed.")}enqueue(n){if(this.toastContainerElement&&typeof this.toastContainerElement.enqueue=="function")return this.toastContainerElement.enqueue(n)}closeAll(n=!1){this.toastContainerElement&&typeof this.toastContainerElement.closeAll=="function"&&this.toastContainerElement.closeAll(n)}}Yr.instances=new Map;var gn;(function(e){e["Die Bundesregierung"]="BReg",e["Bundesministerium der Finanzen"]="BMF",e["Bundesministerium des Innern, für Bau und Heimat"]="BMI",e["Auswärtiges Amt"]="AA",e["Bundesministerium für Wirtschaft und Energie"]="BMWi",e["Bundesministerium der Justiz und für Verbraucherschutz"]="BMJV",e["Bundesministerium für Arbeit und Soziales"]="BMAS",e["Bundesministerium der Verteidigung"]="BMVg",e["Bundesministerium für Ernährung und Landwirtschaft"]="BMEL",e["Bundesministerium für Familie, Senioren, Frauen und Jugend"]="BMFSFJ",e["Bundesministerium für Gesundheit"]="BMG",e["Bundesministerium für Verkehr und digitale Infrastruktur"]="BMVI",e["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"]="BMU",e["Bundesministerium für Bildung und Forschung"]="BMBF",e["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"]="BMZ"})(gn||(gn={}));var qe;(function(e){e["Beschaffungsamt des Bundesministeriums des Innern"]="BeschA",e["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"]="BAAINBw",e["Bundesamt für äußere Restitutionen"]="BAR",e["Bundesamt für Bauwesen und Raumordnung"]="BBR",e["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"]="BBK",e["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"]="BAFzA",e["Bundesamt für Güterverkehr"]="BAG",e["Bundesamt für Justiz"]="BfJ",e["Bundesamt für Kartographie und Geodäsie"]="BKG",e["Bundesamt für kerntechnische Entsorgungssicherheit"]="BASE",e["Bundesamt für Migration und Flüchtlinge"]="BAMF",e["Bundesamt für Sicherheit in der Informationstechnik"]="BSI",e["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"]="BVL",e["Bundesamt für Verfassungsschutz"]="BfV",e["Bundesamt für Wirtschaft und Ausfuhrkontrolle"]="BAFA",e["Bundesamt für zentrale Dienste und offene Vermögensfragen"]="BADV",e["Bundesanstalt für Verwaltungsdienstleistungen"]="BAV",e.Bundesarchiv="BArch",e["Bundesaufsichtsamt für Flugsicherung"]="BAF",e.Bundesausgleichsamt="BAA",e.Bundeskartellamt="BKartA",e.Bundeskriminalamt="BKA",e.Bundesnachrichtendienst="BND",e["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"]="BNetzA",e.Bundespolizeipräsidium="BPOLP",e["Bundesprüfstelle für jugendgefährdende Medien"]="BPjM",e.Bundessortenamt="BSA",e.Bundessprachenamt="BSprA",e["Bundesamt für Soziale Sicherung"]="BAS",e.Bundesverwaltungsamt="BVA",e["Bundeszentralamt für Steuern"]="BZSt",e["Deutsches Patent- und Markenamt"]="DPMA",e["Eisenbahn-Bundesamt"]="EBA",e.Generalzolldirektion="GZD",e["Militärischer Abschirmdienst"]="MAD",e["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"]="ZITiS"})(qe||(qe={}));var dr;(function(e){e["Informationstechnikzentrum Bund"]="ITZBund",e["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"]="BDBOS",e["Bundesanstalt für Landwirtschaft und Ernährung"]="BLE",e["Bundesanstalt Technisches Hilfswerk"]="THW",e["Bundesinstitut für Arzneimittel und Medizinprodukte"]="BfArM",e["Bundesinstitut für Bevölkerungsforschung"]="BiB",e["Bundesinstitut für Sportwissenschaft"]="BISp"})(dr||(dr={}));const ye=new Map;ye.set(gn["Die Bundesregierung"],["Die","Bundesregierung"]);ye.set(gn["Bundesministerium der Finanzen"],["Bundesministerium","der Finanzen"]);ye.set(gn["Bundesministerium des Innern, für Bau und Heimat"],["Bundesministerium","des Inneren, für Bau","und Heimat"]);ye.set(gn["Auswärtiges Amt"],["Auswärtiges Amt"]);ye.set(gn["Bundesministerium für Wirtschaft und Energie"],["Bundesministerium","für Wirtschaft","und Energie"]);ye.set(gn["Bundesministerium der Justiz und für Verbraucherschutz"],["Bundesministerium","der Justiz und","für Verbraucherschutz"]);ye.set(gn["Bundesministerium für Arbeit und Soziales"],["Bundesministerium","für Arbeit und Soziales"]);ye.set(gn["Bundesministerium der Verteidigung"],["Bundesministerium","der Verteidigung"]);ye.set(gn["Bundesministerium für Bildung und Forschung"],["Bundesministerium","für Bildung","und Forschung"]);ye.set(gn["Bundesministerium für Ernährung und Landwirtschaft"],["Bundesministerium","für Ernährung","und Landwirtschaft"]);ye.set(gn["Bundesministerium für Familie, Senioren, Frauen und Jugend"],["Bundesministerium","für Familie, Senioren, Frauen","und Jugend"]);ye.set(gn["Bundesministerium für Gesundheit"],["Bundesministerium","für Gesundheit"]);ye.set(gn["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"],["Bundesministerium","für Umwelt, Naturschutz","und nukleare Sicherheit"]);ye.set(gn["Bundesministerium für Verkehr und digitale Infrastruktur"],["Bundesministerium","für Verkehr und","digitale Infrastruktur"]);ye.set(gn["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"],["Bundesministerium","für wirtschaftliche Zusammenarbeit","und Entwicklung"]);ye.set(qe["Beschaffungsamt des Bundesministeriums des Innern"],["Beschaffungsamt","des Bundesministeriums","des Innern"]);ye.set(qe["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"],[]);ye.set(qe["Bundesamt für äußere Restitutionen"],[]);ye.set(qe["Bundesamt für Bauwesen und Raumordnung"],[]);ye.set(qe["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"],["Bundesamt","für Bevölkerungsschutz","und Katastrophenhilfe"]);ye.set(qe["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"],["Bundesamt","für Familie und","zivilgesellschaftliche Aufgaben"]);ye.set(qe["Bundesamt für Güterverkehr"],["Bundesamt","für Güterverkehr"]);ye.set(qe["Bundesamt für Justiz"],["Bundesamt für","Justiz"]);ye.set(qe["Bundesamt für Kartographie und Geodäsie"],["Bundesamt für","Kartographie und Geodäsie"]);ye.set(qe["Bundesamt für kerntechnische Entsorgungssicherheit"],["Bundesamt für","kerntechnische","Entsorgungssicherheit"]);ye.set(qe["Bundesamt für Migration und Flüchtlinge"],["Bundesamt","für Migration","und Flüchtlinge"]);ye.set(qe["Bundesamt für Sicherheit in der Informationstechnik"],["Bundesamt","für Sicherheit in der","Informationstechnik"]);ye.set(qe["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"],["Bundesamt für","Verbraucherschutz und","Lebensmittelsicherheit"]);ye.set(qe["Bundesamt für Verfassungsschutz"],["Bundesamt für","Verfassungsschutz"]);ye.set(qe["Bundesamt für Wirtschaft und Ausfuhrkontrolle"],["Bundesamt","für Wirtschaft","Ausfuhrkontrolle"]);ye.set(qe["Bundesamt für zentrale Dienste und offene Vermögensfragen"],["Bundesamt","für zentrale Dienste und","offene Vermögensfragen"]);ye.set(qe["Bundesanstalt für Verwaltungsdienstleistungen"],["Bundesanstalt","für Verwaltungsdienstleistungen"]);ye.set(qe.Bundesarchiv,["Das","Bundesarchiv"]);ye.set(qe["Bundesaufsichtsamt für Flugsicherung"],["Bundesaufsichtsamt","für Flugsicherung"]);ye.set(qe.Bundesausgleichsamt,["Bundesausgleichsamt"]);ye.set(qe.Bundeskartellamt,["Bundeskartellamt"]);ye.set(qe.Bundeskriminalamt,["Bundeskriminalamt"]);ye.set(qe.Bundesnachrichtendienst,["Bundesnachrichtendienst"]);ye.set(qe["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"],["Bundesnetzagentur"]);ye.set(qe.Bundespolizeipräsidium,["Bundespolizeipräsidium"]);ye.set(qe["Bundesprüfstelle für jugendgefährdende Medien"],["Bundesprüfstelle","für jugendgefährdende","Medien"]);ye.set(qe.Bundessortenamt,["Bundessortenamt"]);ye.set(qe.Bundessprachenamt,["Bundessprachenamt"]);ye.set(qe["Bundesamt für Soziale Sicherung"],["Bundesamt","für Soziale Sicherung"]);ye.set(qe.Bundesverwaltungsamt,["Bundesverwaltungsamt"]);ye.set(qe["Bundeszentralamt für Steuern"],["Bundeszentralamt","für Steuern"]);ye.set(qe["Deutsches Patent- und Markenamt"],["Deutsches","Patent- und Markenamt"]);ye.set(qe["Eisenbahn-Bundesamt"],["Eisenbahn-Bundesamt"]);ye.set(qe.Generalzolldirektion,["Generalzolldirektion"]);ye.set(qe["Militärischer Abschirmdienst"],["Bundesamt für den","Militärischen Abschirmdienst"]);ye.set(qe["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"],["Zentrale Stelle","für Informationstechnik","im Sicherheitsbereich"]);ye.set(dr["Informationstechnikzentrum Bund"],["Informations","Technik","Zentrum Bund"]);ye.set(dr["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"],["Bundesanstalt","für den Digitalfunk der Behörden und","Organisationen mit Sicherheitsaufgaben"]);ye.set(dr["Bundesanstalt für Landwirtschaft und Ernährung"],["Bundesanstalt für","Landwirtschaft und Ernährung"]);ye.set(dr["Bundesanstalt Technisches Hilfswerk"],["Bundesanstalt","Technisches Hilfswerk"]);ye.set(dr["Bundesinstitut für Arzneimittel und Medizinprodukte"],["Bundesinstitut","für Arzneimittel","und Medizinprodukte"]);ye.set(dr["Bundesinstitut für Bevölkerungsforschung"],["Bundesinstitut","für Bevölkerungsforschung"]);ye.set(dr["Bundesinstitut für Sportwissenschaft"],["Bundesinstitut","für Sportwissenschaft"]);const sS="modulepreload",dS=function(e){return"/"+e},Z_={},he=function(n,r,i){let c=Promise.resolve();if(r&&r.length>0){let h=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),m=u?.nonce||u?.getAttribute("nonce");c=h(r.map(p=>{if(p=dS(p),p in Z_)return;Z_[p]=!0;const g=p.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const _=document.createElement("link");if(_.rel=g?"stylesheet":sS,g||(_.as="script"),_.crossOrigin="",_.href=p,m&&_.setAttribute("nonce",m),document.head.appendChild(_),g)return new Promise((z,$)=>{_.addEventListener("load",z),_.addEventListener("error",()=>$(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(u){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=u,window.dispatchEvent(m),!m.defaultPrevented)throw u}return c.then(u=>{for(const m of u||[])m.status==="rejected"&&d(m.reason);return n().catch(d)})},uS="kolibri",za={hydratedSelectorName:"hydrated",lazyLoad:!0,propChangeCallback:!0,slotRelocation:!0,state:!0,updatable:!0},gD={kolibriVersion:"3.1.5"};var fS=Object.defineProperty,bS=(e,n)=>{for(var r in n)fS(e,r,{get:n[r],enumerable:!0})},mS="http://www.w3.org/2000/svg",hS="http://www.w3.org/1999/xhtml",jy=(e=>(e.Undefined="undefined",e.Null="null",e.String="string",e.Number="number",e.SpecialNumber="number",e.Boolean="boolean",e.BigInt="bigint",e))(jy||{}),Ty=(e=>(e.Array="array",e.Date="date",e.Map="map",e.Object="object",e.RegularExpression="regexp",e.Set="set",e.Channel="channel",e.Symbol="symbol",e))(Ty||{}),Jf="type",Xf="value",jb="serialized:",pS=(e,n)=>{var r;const i=n.$cmpMeta$;Object.entries((r=i.$members$)!=null?r:{}).map(([d,[u]])=>{if(u&31||u&32){const m=e[d],h=kS(Object.getPrototypeOf(e),d)||Object.getOwnPropertyDescriptor(e,d);h&&Object.defineProperty(e,d,{get(){return h.get.call(this)},set(p){h.set.call(this,p)},configurable:!0,enumerable:!0}),e[d]=n.$instanceValues$.has(d)?n.$instanceValues$.get(d):m}})};function kS(e,n){for(;e;){const r=Object.getOwnPropertyDescriptor(e,n);if(r?.get)return r;e=Object.getPrototypeOf(e)}}var it=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},_D=(e,n)=>{n&&(e.__stencil__getHostRef=()=>n,n.$lazyInstance$=e,n.$cmpMeta$.$flags$&512&&za.state&&pS(e,n))},vS=(e,n)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:n,$instanceValues$:new Map,$serializerValues$:new Map};r.$onInstancePromise$=new Promise(c=>r.$onInstanceResolve$=c),r.$onReadyPromise$=new Promise(c=>r.$onReadyResolve$=c),e["s-p"]=[],e["s-rc"]=[],r.$fetchedCbList$=[];const i=r;return e.__stencil__getHostRef=()=>i,i},P_=(e,n)=>n in e,fe=(e,n)=>(0,console.error)(e,n),Wf=new Map,gS=(e,n,r)=>{const i=e.$tagName$.replace(/-/g,"_"),c=e.$lazyBundleId$;if(!c)return;const d=Wf.get(c);if(d)return d[i];{const u=m=>(Wf.set(c,m),m[i]);switch(c){case"kol-abbr":return he(()=>import("./kol-abbr.entry-CjQNrlKz.js"),__vite__mapDeps([0,1])).then(u,fe);case"kol-accordion":return he(()=>import("./kol-accordion.entry-WOC2_SVb.js"),__vite__mapDeps([2,3,4,5,6,7,1,8,9,10])).then(u,fe);case"kol-alert":return he(()=>import("./kol-alert.entry-BaeitZG1.js"),[]).then(u,fe);case"kol-avatar":return he(()=>import("./kol-avatar.entry-D8jCuleN.js"),[]).then(u,fe);case"kol-badge":return he(()=>import("./kol-badge.entry-DoaJbUVI.js"),__vite__mapDeps([11,12,4,5,13,6,14,15,16,17,18,19,20,21,9])).then(u,fe);case"kol-breadcrumb":return he(()=>import("./kol-breadcrumb.entry-DxejoCS8.js"),__vite__mapDeps([22,1,23,24])).then(u,fe);case"kol-button":return he(()=>import("./kol-button.entry-jtTW9uOt.js"),[]).then(u,fe);case"kol-button-link":return he(()=>import("./kol-button-link.entry-CxmyM0tg.js"),[]).then(u,fe);case"kol-card":return he(()=>import("./kol-card.entry-B4VsZkxD.js"),[]).then(u,fe);case"kol-details":return he(()=>import("./kol-details.entry-B3do5TX6.js"),__vite__mapDeps([25,3,4,5,6,7,1,8,9,10])).then(u,fe);case"kol-drawer":return he(()=>import("./kol-drawer.entry-CNGxaXCK.js"),__vite__mapDeps([26,5,27,28,1,8,29])).then(u,fe);case"kol-form":return he(()=>import("./kol-form.entry-DfTflWe4.js"),__vite__mapDeps([30,13,12,4,5,6])).then(u,fe);case"kol-heading":return he(()=>import("./kol-heading.entry-CsNtUT-w.js"),__vite__mapDeps([31,12,4,5,13,6,1,19,10])).then(u,fe);case"kol-icon":return he(()=>import("./kol-icon.entry-Di2px5QM.js"),__vite__mapDeps([32,1,5])).then(u,fe);case"kol-image":return he(()=>import("./kol-image.entry-DxyOlIuP.js"),__vite__mapDeps([33,34])).then(u,fe);case"kol-input-checkbox":return he(()=>import("./kol-input-checkbox.entry-DuQWHNJH.js"),__vite__mapDeps([35,5,9,36,1,37,38,39,40,7,41,42,27,43,21,4,18,13,20,12,6,17,44,45,46])).then(u,fe);case"kol-input-color":return he(()=>import("./kol-input-color.entry-huy-9Nqo.js"),__vite__mapDeps([47,4,39,40,7,41,1,42,27,43,21,5,18,13,20,12,6,48,17,15,49,44,9,50,51])).then(u,fe);case"kol-input-date":return he(()=>import("./kol-input-date.entry-CwA-jdkD.js"),__vite__mapDeps([52,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,50,53,37,51])).then(u,fe);case"kol-input-email":return he(()=>import("./kol-input-email.entry-yCjwDXd8.js"),__vite__mapDeps([54,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,55,56,57,58,51,59,50,60,53,37])).then(u,fe);case"kol-input-file":return he(()=>import("./kol-input-file.entry-Be5RqcNz.js"),__vite__mapDeps([61,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,56,37])).then(u,fe);case"kol-input-number":return he(()=>import("./kol-input-number.entry-CTry5MhA.js"),__vite__mapDeps([62,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,50,60,53,37,51])).then(u,fe);case"kol-input-password":return he(()=>import("./kol-input-password.entry-DStX3Qwf.js"),__vite__mapDeps([63,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,59,50,55,60,53,37])).then(u,fe);case"kol-input-radio":return he(()=>import("./kol-input-radio.entry-CY2liax-.js"),__vite__mapDeps([64,5,9,46,36,1,37,38,39,40,7,41,42,27,43,21,4,18,13,20,12,6,45,44])).then(u,fe);case"kol-input-text":return he(()=>import("./kol-input-text.entry-BKvuUwIi.js"),__vite__mapDeps([65,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,9,46,57,58,51,59,50,55,60,53,37])).then(u,fe);case"kol-kolibri":return he(()=>import("./kol-kolibri.entry-CEwJjYk0.js"),__vite__mapDeps([66,14,13])).then(u,fe);case"kol-link":return he(()=>import("./kol-link.entry-mOwkdzSs.js"),[]).then(u,fe);case"kol-link-button":return he(()=>import("./kol-link-button.entry-DvlwvZMr.js"),[]).then(u,fe);case"kol-modal":return he(()=>import("./kol-modal.entry-CrMRW4yV.js"),__vite__mapDeps([67,5,1,29])).then(u,fe);case"kol-nav":return he(()=>import("./kol-nav.entry-6oFRqe3L.js"),__vite__mapDeps([68,41,1,5,13,9,23,24])).then(u,fe);case"kol-pagination":return he(()=>import("./kol-pagination.entry-D1sGmQ-X.js"),[]).then(u,fe);case"kol-popover-button":return he(()=>import("./kol-popover-button.entry-D8lEQuk-.js"),[]).then(u,fe);case"kol-progress":return he(()=>import("./kol-progress.entry-37EXIMWi.js"),__vite__mapDeps([69,1])).then(u,fe);case"kol-quote":return he(()=>import("./kol-quote.entry-BW1v5Kf-.js"),__vite__mapDeps([70,18,1,5])).then(u,fe);case"kol-select":return he(()=>import("./kol-select.entry-CsbipoPi.js"),[]).then(u,fe);case"kol-skip-nav":return he(()=>import("./kol-skip-nav.entry-Bs3DoomG.js"),__vite__mapDeps([71,1,23,24])).then(u,fe);case"kol-spin":return he(()=>import("./kol-spin.entry-BKH9u6Ox.js"),__vite__mapDeps([72,1,73,13,5])).then(u,fe);case"kol-split-button":return he(()=>import("./kol-split-button.entry-B6Rsnn4t.js"),__vite__mapDeps([74,5,13])).then(u,fe);case"kol-table-stateful":return he(()=>import("./kol-table-stateful.entry-B41bM7yo.js"),__vite__mapDeps([75,13,76,1,77])).then(u,fe);case"kol-table-stateless":return he(()=>import("./kol-table-stateless.entry-CulQHwDV.js"),[]).then(u,fe);case"kol-tabs":return he(()=>import("./kol-tabs.entry-DlbcvCOu.js"),__vite__mapDeps([78,27,1,5,13,77])).then(u,fe);case"kol-textarea":return he(()=>import("./kol-textarea.entry-nM90KcSC.js"),__vite__mapDeps([79,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,9,55,60,53,37,80,58])).then(u,fe);case"kol-toast-container":return he(()=>import("./kol-toast-container.entry-DvoMv7DM.js"),__vite__mapDeps([81,13,9,12,4,5,6,19])).then(u,fe);case"kol-toolbar":return he(()=>import("./kol-toolbar.entry-Ba3Gblsz.js"),__vite__mapDeps([82,4,1,77,38])).then(u,fe);case"kol-tree":return he(()=>import("./kol-tree.entry-CxjrJlJn.js"),[]).then(u,fe);case"kol-tree-item":return he(()=>import("./kol-tree-item.entry-gcd8sjOp.js"),[]).then(u,fe);case"kol-version":return he(()=>import("./kol-version.entry-nmZlcTN2.js"),__vite__mapDeps([83,1,13])).then(u,fe);case"kol-alert-wc":return he(()=>import("./kol-alert-wc.entry-BltH-9uh.js"),__vite__mapDeps([84,12,4,5,13,6,28,1,10])).then(u,fe);case"kol-avatar-wc":return he(()=>import("./kol-avatar-wc.entry-DoFvrMOv.js"),__vite__mapDeps([85,14,34,1,13])).then(u,fe);case"kol-button-wc":return he(()=>import("./kol-button-wc.entry-SkyKXWCj.js"),__vite__mapDeps([86,18,40,87,88,7,41,15,89,1,42,27,5,12,4,13,6,16,17,19,20,21,46,43])).then(u,fe);case"kol-card-wc":return he(()=>import("./kol-card-wc.entry-DjXnKoIP.js"),__vite__mapDeps([90,28,1,13,10,12,4,5,6,19,9])).then(u,fe);case"kol-combobox":return he(()=>import("./kol-combobox.entry-C1zftER1.js"),__vite__mapDeps([91,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,92,9,60,37,51])).then(u,fe);case"kol-input-range":return he(()=>import("./kol-input-range.entry-Dsty-gwz.js"),__vite__mapDeps([93,4,5,39,40,7,41,1,42,27,43,21,18,13,20,12,6,48,17,15,49,44,9,46,50,51])).then(u,fe);case"kol-link-wc":return he(()=>import("./kol-link-wc.entry-D8iBi5Sq.js"),__vite__mapDeps([94,18,40,87,88,7,41,95,15,89,1,42,27,5,12,4,13,6,16,17,19,20,21])).then(u,fe);case"kol-pagination-wc":return he(()=>import("./kol-pagination-wc.entry-BxNqb134.js"),__vite__mapDeps([96,88,1,42,27,13,9,23])).then(u,fe);case"kol-popover-button-wc":return he(()=>import("./kol-popover-button-wc.entry-BTN5HFQU.js"),__vite__mapDeps([97,98,5,89,27])).then(u,fe);case"kol-popover-wc":return he(()=>import("./kol-popover-wc.entry-1FZpYTMQ.js"),__vite__mapDeps([99,98,27,73,5])).then(u,fe);case"kol-select-wc":return he(()=>import("./kol-select-wc.entry-DBjXQP73.js"),__vite__mapDeps([100,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,9,46,56,36,37,38,80])).then(u,fe);case"kol-single-select":return he(()=>import("./kol-single-select.entry-tXCCW7UA.js"),__vite__mapDeps([101,5,39,40,7,41,1,42,27,43,21,4,18,13,20,12,6,48,17,15,49,44,92,9,36,37,38,60])).then(u,fe);case"kol-table-settings-wc":return he(()=>import("./kol-table-settings-wc.entry-BSYE7EkV.js"),__vite__mapDeps([102,4,13])).then(u,fe);case"kol-table-stateless-wc":return he(()=>import("./kol-table-stateless-wc.entry-DRaqNrsd.js"),__vite__mapDeps([103,5,13,76,1,77,9,21])).then(u,fe);case"kol-tooltip-wc":return he(()=>import("./kol-tooltip-wc.entry-Chhn7QJk.js"),__vite__mapDeps([104,98,27,1,12,4,5,13,6,16,17,18,19,20,21,29])).then(u,fe);case"kol-tree-item-wc":return he(()=>import("./kol-tree-item-wc.entry-Cbz5eHnW.js"),__vite__mapDeps([105,5,95,1,8,9])).then(u,fe);case"kol-tree-wc":return he(()=>import("./kol-tree-wc.entry-XtCUIpLM.js"),__vite__mapDeps([106,1])).then(u,fe);case"test-component":return he(()=>import("./test-component.entry-BjizQbjG.js"),[]).then(u,fe)}}return he(()=>import(`./${c}.entry.js`),[]).then(u=>(Wf.set(c,u),u[i]),u=>{fe(u,n.$hostElement$)})},Ks=new Map,Ay=[],_S="r",xS="o",Tb="s",yS="t",wS="c",Ji="s-id",Ab="sty-id",G_="c-id",zS="{visibility:hidden}.hydrated{visibility:inherit}",Cy="slot-fb{display:contents}slot-fb[hidden]{display:none}",Y_="http://www.w3.org/1999/xlink",no=typeof window<"u"?window:{},mo={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,r,i)=>e.addEventListener(n,r,i),rel:(e,n,r,i)=>e.removeEventListener(n,r,i),ce:(e,n)=>new CustomEvent(e,n)},SS=(()=>{var e;let n=!1;try{(e=no.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){n=!0}}))}catch{}return n})(),jS=e=>Promise.resolve(e),vm=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),Cb=vm?!!no.document&&Object.getOwnPropertyDescriptor(no.document.adoptedStyleSheets,"length").writable:!1,Ey=e=>jS().then(e),gm=e=>(e=typeof e,e==="object"||e==="function");function Ly(e){var n,r,i;return(i=(r=(n=e.head)==null?void 0:n.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?i:void 0}var TS=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),AS=class ga{static fromLocalValue(n){const r=n[Jf],i=Xf in n?n[Xf]:void 0;switch(r){case"string":return i;case"boolean":return i;case"bigint":return BigInt(i);case"undefined":return;case"null":return null;case"number":return i==="NaN"?NaN:i==="-0"?-0:i==="Infinity"?1/0:i==="-Infinity"?-1/0:i;case"array":return i.map(p=>ga.fromLocalValue(p));case"date":return new Date(i);case"map":const c=new Map;for(const[p,g]of i){const v=typeof p=="object"&&p!==null?ga.fromLocalValue(p):p,_=ga.fromLocalValue(g);c.set(v,_)}return c;case"object":const d={};for(const[p,g]of i)d[p]=ga.fromLocalValue(g);return d;case"regexp":const{pattern:u,flags:m}=i;return new RegExp(u,m);case"set":const h=new Set;for(const p of i)h.add(ga.fromLocalValue(p));return h;case"symbol":return Symbol(i);default:throw new Error(`Unsupported type: ${r}`)}}static fromLocalValueArray(n){return n.map(r=>ga.fromLocalValue(r))}static isLocalValueObject(n){if(typeof n!="object"||n===null||!n.hasOwnProperty(Jf))return!1;const r=n[Jf];return Object.values({...jy,...Ty}).includes(r)?r!=="null"&&r!=="undefined"?n.hasOwnProperty(Xf):!0:!1}},CS={};bS(CS,{err:()=>Oy,map:()=>ES,ok:()=>Eb,unwrap:()=>LS,unwrapErr:()=>OS});var Eb=e=>({isOk:!0,isErr:!1,value:e}),Oy=e=>({isOk:!1,isErr:!0,value:e});function ES(e,n){if(e.isOk){const r=n(e.value);return r instanceof Promise?r.then(i=>Eb(i)):Eb(r)}if(e.isErr){const r=e.value;return Oy(r)}throw"should never get here"}var LS=e=>{if(e.isOk)return e.value;throw e.value},OS=e=>{if(e.isErr)return e.value;throw e.value};function $S(e){return typeof e!="string"||!e.startsWith(jb)?e:AS.fromLocalValue(JSON.parse(atob(e.slice(jb.length))))}var Ni;function NS(e){var n;const r=this.attachShadow({mode:"open"});Ni===void 0&&(Ni=(n=void 0)!=null?n:null),Ni&&(Cb?r.adoptedStyleSheets.push(Ni):r.adoptedStyleSheets=[...r.adoptedStyleSheets,Ni])}var $y=e=>{const n=Kr(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&Ny(n,e.tagName).forEach(i=>{i.nodeType===1&&i.tagName==="SLOT-FB"&&(BS(i,_m(i),!1).length?i.hidden=!0:i.hidden=!1)});let r=0;for(r=0;r<n.length;r++){const i=n[r];i.nodeType===1&&Kr(i,"childNodes").length&&$y(i)}},RS=e=>{const n=[];for(let r=0;r<e.length;r++){const i=e[r]["s-nr"]||void 0;i&&i.isConnected&&n.push(i)}return n};function Ny(e,n,r){let i=0,c=[],d;for(;i<e.length;i++)d=e[i],d["s-sr"]&&(!n||d["s-hn"]===n)&&r===void 0&&c.push(d),c=[...c,...Ny(d.childNodes,n,r)];return c}var BS=(e,n,r=!0)=>{const i=[];(r&&e["s-sr"]||!e["s-sr"])&&i.push(e);let c=e;for(;c=c.nextSibling;)_m(c)===n&&(r||!c["s-sr"])&&i.push(c);return i},J_=(e,n)=>e.nodeType===1?e.getAttribute("slot")===null&&n===""||e.getAttribute("slot")===n:e["s-sn"]===n?!0:n==="",DS=(e,n,r,i)=>{if(e["s-ol"]&&e["s-ol"].isConnected)return;const c=document.createTextNode("");if(c["s-nr"]=e,!n["s-cr"]||!n["s-cr"].parentNode)return;const d=n["s-cr"].parentNode,u=Kr(d,"appendChild");if(typeof i<"u"){c["s-oo"]=i;const m=Kr(d,"childNodes"),h=[c];m.forEach(p=>{p["s-nr"]&&h.push(p)}),h.sort((p,g)=>!p["s-oo"]||p["s-oo"]<(g["s-oo"]||0)?-1:!g["s-oo"]||g["s-oo"]<p["s-oo"]?1:0),h.forEach(p=>u.call(d,p))}else u.call(d,c);e["s-ol"]=c,e["s-sh"]=n["s-hn"]},_m=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Ry(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const n=r=>(function(i){const c=[],d=this["s-sn"];i?.flatten&&console.error(`
|
|
28
28
|
Flattening is not supported for Stencil non-shadow slots.
|
|
29
29
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
30
30
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
31
|
-
`);const u=this["s-cr"].parentElement;return(u.__childNodes?u.childNodes:RS(u.childNodes)).forEach(h=>{d===_m(h)&&c.push(h)}),r?c.filter(h=>h.nodeType===1):c}).bind(e);e.assignedElements=n(!0),e.assignedNodes=n(!1)}function Vr(e,n){if("__"+n in e){const r=e["__"+n];return typeof r!="function"?r:r.bind(e)}else return typeof e[n]!="function"?e[n]:e[n].bind(e)}var Bt=(e,n="")=>()=>{},MS=(e,n)=>()=>{},zl=new WeakMap,By=(e,n,r)=>{let i=Ks.get(e);vm&&r?(i=i||new CSSStyleSheet,typeof i=="string"?i=n:i.replaceSync(n)):i=n,Ks.set(e,i)},Dy=(e,n,r)=>{var i;const c=xm(n,r),d=Ks.get(c);if(!no.document)return c;if(e=e.nodeType===11?e:no.document,d)if(typeof d=="string"){e=e.head||e;let u=zl.get(e),m;if(u||zl.set(e,u=new Set),!u.has(c)){if(e.host&&(m=e.querySelector(`[${Ab}="${c}"]`)))m.innerHTML=d;else{m=no.document.createElement("style"),m.innerHTML=d;const h=(i=mo.$nonce$)!=null?i:Ly(no.document);if(h!=null&&m.setAttribute("nonce",h),!(n.$flags$&1))if(e.nodeName==="HEAD"){const p=e.querySelectorAll("link[rel=preconnect]"),g=p.length>0?p[p.length-1].nextSibling:e.querySelector("style");e.insertBefore(m,g?.parentNode===e?g:null)}else if("host"in e)if(vm){const p=new CSSStyleSheet;p.replaceSync(d),Cb?e.adoptedStyleSheets.unshift(p):e.adoptedStyleSheets=[p,...e.adoptedStyleSheets]}else{const p=e.querySelector("style");p?p.innerHTML=d+p.innerHTML:e.prepend(m)}else e.append(m);n.$flags$&1&&e.insertBefore(m,null)}n.$flags$&4&&(m.innerHTML+=Cy),u&&u.add(c)}}else e.adoptedStyleSheets.includes(d)||(Cb?e.adoptedStyleSheets.push(d):e.adoptedStyleSheets=[...e.adoptedStyleSheets,d]);return c},IS=e=>{const n=e.$cmpMeta$,r=e.$hostElement$,i=n.$flags$,c=Bt("attachStyles",n.$tagName$),d=Dy(r.shadowRoot?r.shadowRoot:r.getRootNode(),n,e.$modeName$);i&10&&(r["s-sc"]=d,r.classList.add(d+"-h")),c()},xm=(e,n)=>"sc-"+(n&&e.$flags$&32?e.$tagName$+"-"+n:e.$tagName$),US=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),FS=()=>{if(!no.document)return;const e=no.document.querySelectorAll(`[${Ab}]`);let n=0;for(;n<e.length;n++)By(e[n].getAttribute(Ab),US(e[n].innerHTML),!0)},My=(e,n,...r)=>{let i=null,c=null,d=null,u=!1,m=!1;const h=[],p=v=>{for(let _=0;_<v.length;_++)i=v[_],Array.isArray(i)?p(i):i!=null&&typeof i!="boolean"&&((u=typeof e!="function"&&!gm(i))&&(i=String(i)),u&&m?h[h.length-1].$text$+=i:h.push(u?Cl(null,i):i),m=u)};if(p(r),n){n.key&&(c=n.key),n.name&&(d=n.name);{const v=n.className||n.class;v&&(n.class=typeof v!="object"?v:Object.keys(v).filter(_=>v[_]).join(" "))}}if(typeof e=="function")return e(n===null?{}:n,h,KS);const g=Cl(e,null);return g.$attrs$=n,h.length>0&&(g.$children$=h),g.$key$=c,g.$name$=d,g},Cl=(e,n)=>{const r={$flags$:0,$tag$:e,$text$:n,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r.$name$=null,r},HS={},VS=e=>e&&e.$tag$===HS,KS={forEach:(e,n)=>e.map(X_).forEach(n),map:(e,n)=>e.map(X_).map(n).map(qS)},X_=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),qS=e=>{if(typeof e.vtag=="function"){const r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),My(e.vtag,r,...e.vchildren||[])}const n=Cl(e.vtag,e.vtext);return n.$attrs$=e.vattrs,n.$children$=e.vchildren,n.$key$=e.vkey,n.$name$=e.vname,n},ZS=(e,n,r,i)=>{var c,d;const u=Bt("hydrateClient",n),m=e.shadowRoot,h=[],p=[],g=[],v=m?[]:null,_=Cl(n,null);_.$elm$=e,no.document&&(!mo.$orgLocNodes$||!mo.$orgLocNodes$.size)&&Ob(no.document.body,mo.$orgLocNodes$=new Map),e[Gi]=r,e.removeAttribute(Gi),i.$vnode$=Lb(_,h,p,v,e,e,r,g);let z=0;const $=h.length;let j;for(z;z<$;z++){j=h[z];const q=j.$hostId$+"."+j.$nodeId$,oe=mo.$orgLocNodes$.get(q),ce=j.$elm$;if(!m)ce["s-hn"]=n.toUpperCase(),j.$tag$==="slot"&&(ce["s-cr"]=e["s-cr"]);else if((c=j.$tag$)!=null&&c.toString().includes("-")&&j.$tag$!=="slot-fb"&&!j.$elm$.shadowRoot){const Ve=rt(j.$elm$);if(Ve){const ie=xm(Ve.$cmpMeta$,j.$elm$.getAttribute("s-mode")),ee=no.document.querySelector(`style[sty-id="${ie}"]`);ee&&e.shadowRoot.append(ee.cloneNode(!0))}}j.$tag$==="slot"&&(j.$name$=j.$elm$["s-sn"]||j.$elm$.name||null,j.$children$?(j.$flags$|=2,j.$elm$.childNodes.length||j.$children$.forEach(Ve=>{j.$elm$.appendChild(Ve.$elm$)})):j.$flags$|=1),oe&&oe.isConnected&&(oe.parentElement.shadowRoot&&oe["s-en"]===""&&oe.parentNode.insertBefore(ce,oe.nextSibling),oe.parentNode.removeChild(oe),m||(ce["s-oo"]=parseInt(j.$nodeId$))),oe&&!oe["s-id"]&&mo.$orgLocNodes$.delete(q)}const E=[],L=g.length;let y=0,w,N,D,H;for(y;y<L;y++)if(w=g[y],!(!w||!w.length))for(D=w.length,N=0,N;N<D;N++){if(H=w[N],E[H.hostId]||(E[H.hostId]=mo.$orgLocNodes$.get(H.hostId)),!E[H.hostId])continue;const q=E[H.hostId];q.shadowRoot&&H.node.parentElement!==q&&q.appendChild(H.node),(!q.shadowRoot||!m)&&(H.slot["s-cr"]||(H.slot["s-cr"]=q["s-cr"],!H.slot["s-cr"]&&q.shadowRoot?H.slot["s-cr"]=q:H.slot["s-cr"]=(q.__childNodes||q.childNodes)[0]),DS(H.node,H.slot,!1,H.node["s-oo"]),(d=H.node.parentElement)!=null&&d.shadowRoot&&H.node.getAttribute&&H.node.getAttribute("slot")&&H.node.removeAttribute("slot"))}if(m){let q=0;const oe=v.length;if(oe){for(q;q<oe;q++){const ce=v[q];ce&&m.appendChild(ce)}Array.from(e.childNodes).forEach(ce=>{typeof ce["s-en"]!="string"&&typeof ce["s-sn"]!="string"&&(ce.nodeType===1&&ce.slot&&ce.hidden?ce.removeAttribute("hidden"):(ce.nodeType===8&&!ce.nodeValue||ce.nodeType===3&&!ce.wholeText.trim())&&ce.parentNode.removeChild(ce))})}}i.$hostElement$=e,u()},Lb=(e,n,r,i,c,d,u,m=[])=>{let h,p,g,v;if(d.nodeType===1){if(h=d.getAttribute(G_),h&&(p=h.split("."),p[0]===u||p[0]==="0")){g=W_({$flags$:0,$hostId$:p[0],$nodeId$:p[1],$depth$:p[2],$index$:p[3],$tag$:d.tagName.toLowerCase(),$elm$:d,$attrs$:{class:d.className||""}}),n.push(g),d.removeAttribute(G_),e.$children$||(e.$children$=[]);const z=g.$elm$.getAttribute("s-sn");typeof z=="string"&&(g.$tag$==="slot-fb"&&Q_(z,p[2],g,d,e,n,r,i,m),g.$elm$["s-sn"]=z,g.$elm$.removeAttribute("s-sn")),g.$index$!==void 0&&(e.$children$[g.$index$]=g),e=g,i&&g.$depth$==="0"&&(i[g.$index$]=g.$elm$)}if(d.shadowRoot)for(v=d.shadowRoot.childNodes.length-1;v>=0;v--)Lb(e,n,r,i,c,d.shadowRoot.childNodes[v],u,m);const _=d.__childNodes||d.childNodes;for(v=_.length-1;v>=0;v--)Lb(e,n,r,i,c,_[v],u,m)}else if(d.nodeType===8){if(p=d.nodeValue.split("."),p[1]===u||p[1]==="0"){if(h=p[0],g=W_({$hostId$:p[1],$nodeId$:p[2],$depth$:p[3],$index$:p[4]||"0",$elm$:d,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null}),h===yS)g.$elm$=o1(d,3),g.$elm$&&g.$elm$.nodeType===3&&(g.$text$=g.$elm$.textContent,n.push(g),d.remove(),u===g.$hostId$&&(e.$children$||(e.$children$=[]),e.$children$[g.$index$]=g),i&&g.$depth$==="0"&&(i[g.$index$]=g.$elm$));else if(h===wS)g.$elm$=o1(d,8),g.$elm$&&g.$elm$.nodeType===8&&(n.push(g),d.remove());else if(g.$hostId$===u)if(h===Tb){const _=d["s-sn"]=p[5]||"";Q_(_,p[2],g,d,e,n,r,i,m)}else h===_S&&(i?d.remove():(c["s-cr"]=d,d["s-cn"]=!0))}}else if(e&&e.$tag$==="style"){const _=Cl(null,d.textContent);_.$elm$=d,_.$index$="0",e.$children$=[_]}else d.nodeType===3&&!d.wholeText.trim()&&!d["s-nr"]&&d.remove();return e},Ob=(e,n)=>{if(e.nodeType===1){const r=e[Gi]||e.getAttribute(Gi);r&&n.set(r,e);let i=0;if(e.shadowRoot)for(;i<e.shadowRoot.childNodes.length;i++)Ob(e.shadowRoot.childNodes[i],n);const c=e.__childNodes||e.childNodes;for(i=0;i<c.length;i++)Ob(c[i],n)}else if(e.nodeType===8){const r=e.nodeValue.split(".");r[0]===xS&&(n.set(r[1]+"."+r[2],e),e.nodeValue="",e["s-en"]=r[3])}},W_=e=>({...{$flags$:0,$hostId$:null,$nodeId$:null,$depth$:null,$index$:"0",$elm$:null,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},...e});function Q_(e,n,r,i,c,d,u,m,h){i["s-sr"]=!0,r.$name$=e||null,r.$tag$="slot";const p=c?.$elm$?c.$elm$["s-id"]||c.$elm$.getAttribute("s-id"):"";if(m&&no.document){const g=r.$elm$=no.document.createElement(r.$tag$);r.$name$&&r.$elm$.setAttribute("name",e),c.$elm$.shadowRoot&&p&&p!==r.$hostId$?Vr(c.$elm$,"insertBefore")(g,Vr(c.$elm$,"children")[0]):Vr(Vr(i,"parentNode"),"insertBefore")(g,i),e1(h,n,e,i,r.$hostId$),i.remove(),r.$depth$==="0"&&(m[r.$index$]=r.$elm$)}else{const g=r.$elm$,v=p&&p!==r.$hostId$&&c.$elm$.shadowRoot;e1(h,n,e,i,v?p:r.$hostId$),Ry(i),v&&c.$elm$.insertBefore(g,c.$elm$.children[0])}d.push(r),u.push(r),c.$children$||(c.$children$=[]),c.$children$[r.$index$]=r}var e1=(e,n,r,i,c)=>{var d,u;let m=i.nextSibling;if(e[n]=e[n]||[],!(!m||(d=m.nodeValue)!=null&&d.startsWith(Tb+".")))do m&&((m.getAttribute&&m.getAttribute("slot")||m["s-sn"])===r||r===""&&!m["s-sn"]&&(!m.getAttribute||!m.getAttribute("slot"))&&(m.nodeType===8||m.nodeType===3))&&(m["s-sn"]=r,e[n].push({slot:i,node:m,hostId:c})),m=m?.nextSibling;while(m&&!((u=m.nodeValue)!=null&&u.startsWith(Tb+".")))},o1=(e,n)=>{let r=e;do r=r.nextSibling;while(r&&(r.nodeType!==n||!r.nodeValue));return r},ym=e=>{const n=TS(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${n}))(${n}\\b)`,"g")};ym("::slotted");ym(":host");ym(":host-context");var PS=e=>Ay.map(n=>n(e)).find(n=>!!n),GS=e=>Ay.push(e),$b=(e,n,r)=>typeof e=="string"&&e.startsWith(jb)?(e=$S(e),e):e!=null&&!gm(e)?n&4?e==="false"?!1:e===""||!!e:n&2?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:n&1?String(e):e:e,xD=e=>{var n;return(n=rt(e))==null?void 0:n.$hostElement$},YS=(e,n,r)=>{const i=mo.ce(n,r);return e.dispatchEvent(i),i},n1=(e,n,r,i,c,d,u)=>{if(r===i)return;let m=P_(e,n),h=n.toLowerCase();if(n==="class"){const p=e.classList,g=t1(r);let v=t1(i);if((e["s-si"]||e["s-sc"])&&u){const _=e["s-sc"]||e["s-si"];v.push(_),g.forEach(z=>{z.startsWith(_)&&v.push(z)}),v=[...new Set(v)].filter(z=>z),p.add(...v)}else p.remove(...g.filter(_=>_&&!v.includes(_))),p.add(...v.filter(_=>_&&!g.includes(_)))}else if(n==="style"){for(const p in r)(!i||i[p]==null)&&(p.includes("-")?e.style.removeProperty(p):e.style[p]="");for(const p in i)(!r||i[p]!==r[p])&&(p.includes("-")?e.style.setProperty(p,i[p]):e.style[p]=i[p])}else if(n!=="key")if(n==="ref")i&&i(e);else if(!m&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"?n=n.slice(3):P_(no,h)?n=h.slice(2):n=h[2]+n.slice(3),r||i){const p=n.endsWith(Iy);n=n.replace(XS,""),r&&mo.rel(e,n,r,p),i&&mo.ael(e,n,i,p)}}else{const p=gm(i);if((m||p&&i!==null)&&!c)try{if(e.tagName.includes("-"))e[n]!==i&&(e[n]=i);else{const v=i??"";n==="list"?m=!1:(r==null||e[n]!=v)&&(typeof e.__lookupSetter__(n)=="function"?e[n]=v:e.setAttribute(n,v))}}catch{}let g=!1;h!==(h=h.replace(/^xlink\:?/,""))&&(n=h,g=!0),i==null||i===!1?(i!==!1||e.getAttribute(n)==="")&&(g?e.removeAttributeNS(Y_,n):e.removeAttribute(n)):(!m||d&4||c)&&!p&&e.nodeType===1&&(i=i===!0?"":i,g?e.setAttributeNS(Y_,n,i):e.setAttribute(n,i))}},JS=/\s/,t1=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),!e||typeof e!="string"?[]:e.split(JS)),Iy="Capture",XS=new RegExp(Iy+"$"),Nb=(e,n,r,i)=>{const c=n.$elm$.nodeType===11&&n.$elm$.host?n.$elm$.host:n.$elm$,d=e&&e.$attrs$||{},u=n.$attrs$||{};for(const m of r1(Object.keys(d)))m in u||n1(c,m,d[m],void 0,r,n.$flags$,i);for(const m of r1(Object.keys(u)))n1(c,m,d[m],u[m],r,n.$flags$,i)};function r1(e){return e.includes("ref")?[...e.filter(n=>n!=="ref"),"ref"]:e}var Rb,cd,Bb=!1,qs=!1,wm=!1,Vn=!1,Zs=(e,n,r)=>{var i;const c=n.$children$[r];let d=0,u,m,h;if(Bb||(wm=!0,c.$tag$==="slot"&&(c.$flags$|=c.$children$?2:1)),c.$text$!==null)u=c.$elm$=no.document.createTextNode(c.$text$);else if(c.$flags$&1)u=c.$elm$=no.document.createTextNode(""),Nb(null,c,Vn);else{if(Vn||(Vn=c.$tag$==="svg"),!no.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(u=c.$elm$=no.document.createElementNS(Vn?mS:hS,!Bb&&wa.slotRelocation&&c.$flags$&2?"slot-fb":c.$tag$),Vn&&c.$tag$==="foreignObject"&&(Vn=!1),Nb(null,c,Vn),c.$children$)for(d=0;d<c.$children$.length;++d)m=Zs(e,c,d),m&&u.appendChild(m);c.$tag$==="svg"?Vn=!1:u.tagName==="foreignObject"&&(Vn=!0)}return u["s-hn"]=cd,c.$flags$&3&&(u["s-sr"]=!0,u["s-cr"]=Rb,u["s-sn"]=c.$name$||"",u["s-rf"]=(i=c.$attrs$)==null?void 0:i.ref,Ry(u),h=e&&e.$children$&&e.$children$[r],h&&h.$tag$===c.$tag$&&e.$elm$&&Yi(e.$elm$,!1)),u},Yi=(e,n)=>{mo.$flags$|=1;const r=Array.from(e.__childNodes||e.childNodes);for(let i=r.length-1;i>=0;i--){const c=r[i];c["s-hn"]!==cd&&c["s-ol"]&&(qr(Ji(c).parentNode,c,Ji(c)),c["s-ol"].remove(),c["s-ol"]=void 0,c["s-sh"]=void 0,wm=!0),n&&Yi(c,n)}mo.$flags$&=-2},Uy=(e,n,r,i,c,d)=>{let u=e["s-cr"]&&e["s-cr"].parentNode||e,m;for(u.shadowRoot&&u.tagName===cd&&(u=u.shadowRoot);c<=d;++c)i[c]&&(m=Zs(null,r,c),m&&(i[c].$elm$=m,qr(u,m,Ji(n))))},Fy=(e,n,r)=>{for(let i=n;i<=r;++i){const c=e[i];if(c){const d=c.$elm$;Vy(c),d&&(qs=!0,d["s-ol"]?d["s-ol"].remove():Yi(d,!0),d.remove())}}},WS=(e,n,r,i,c=!1)=>{let d=0,u=0,m=0,h=0,p=n.length-1,g=n[0],v=n[p],_=i.length-1,z=i[0],$=i[_],j,E;for(;d<=p&&u<=_;)if(g==null)g=n[++d];else if(v==null)v=n[--p];else if(z==null)z=i[++u];else if($==null)$=i[--_];else if(xs(g,z,c))yl(g,z,c),g=n[++d],z=i[++u];else if(xs(v,$,c))yl(v,$,c),v=n[--p],$=i[--_];else if(xs(g,$,c))(g.$tag$==="slot"||$.$tag$==="slot")&&Yi(g.$elm$.parentNode,!1),yl(g,$,c),qr(e,g.$elm$,v.$elm$.nextSibling),g=n[++d],$=i[--_];else if(xs(v,z,c))(g.$tag$==="slot"||$.$tag$==="slot")&&Yi(v.$elm$.parentNode,!1),yl(v,z,c),qr(e,v.$elm$,g.$elm$),v=n[--p],z=i[++u];else{for(m=-1,h=d;h<=p;++h)if(n[h]&&n[h].$key$!==null&&n[h].$key$===z.$key$){m=h;break}m>=0?(E=n[m],E.$tag$!==z.$tag$?j=Zs(n&&n[u],r,m):(yl(E,z,c),n[m]=void 0,j=E.$elm$),z=i[++u]):(j=Zs(n&&n[u],r,u),z=i[++u]),j&&qr(Ji(g.$elm$).parentNode,j,Ji(g.$elm$))}d>p?Uy(e,i[_+1]==null?null:i[_+1].$elm$,r,i,u,_):u>_&&Fy(n,d,p)},xs=(e,n,r=!1)=>e.$tag$===n.$tag$?e.$tag$==="slot"?e.$name$===n.$name$:r?(r&&!e.$key$&&n.$key$&&(e.$key$=n.$key$),!0):e.$key$===n.$key$:!1,Ji=e=>e&&e["s-ol"]||e,yl=(e,n,r=!1)=>{const i=n.$elm$=e.$elm$,c=e.$children$,d=n.$children$,u=n.$tag$,m=n.$text$;let h;m===null?(Vn=u==="svg"?!0:u==="foreignObject"?!1:Vn,Nb(e,n,Vn,r),c!==null&&d!==null?WS(i,c,n,d,r):d!==null?(e.$text$!==null&&(i.textContent=""),Uy(i,null,n,d,0,d.length-1)):!r&&wa.updatable&&c!==null?Fy(c,0,c.length-1):r&&wa.updatable&&c!==null&&d===null&&(n.$children$=c),Vn&&u==="svg"&&(Vn=!1)):(h=i["s-cr"])?h.parentNode.textContent=m:e.$text$!==m&&(i.data=m)},lr=[],Hy=e=>{let n,r,i;const c=e.__childNodes||e.childNodes;for(const d of c){if(d["s-sr"]&&(n=d["s-cr"])&&n.parentNode){r=n.parentNode.__childNodes||n.parentNode.childNodes;const u=d["s-sn"];for(i=r.length-1;i>=0;i--)if(n=r[i],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==d["s-hn"])if(J_(n,u)){let m=lr.find(h=>h.$nodeToRelocate$===n);qs=!0,n["s-sn"]=n["s-sn"]||u,m?(m.$nodeToRelocate$["s-sh"]=d["s-hn"],m.$slotRefNode$=d):(n["s-sh"]=d["s-hn"],lr.push({$slotRefNode$:d,$nodeToRelocate$:n})),n["s-sr"]&&lr.map(h=>{J_(h.$nodeToRelocate$,n["s-sn"])&&(m=lr.find(p=>p.$nodeToRelocate$===n),m&&!h.$slotRefNode$&&(h.$slotRefNode$=m.$slotRefNode$))})}else lr.some(m=>m.$nodeToRelocate$===n)||lr.push({$nodeToRelocate$:n})}d.nodeType===1&&Hy(d)}},Vy=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Vy)},qr=(e,n,r)=>e?.insertBefore(n,r),QS=(e,n,r=!1)=>{var i,c,d,u;const m=e.$hostElement$,h=e.$cmpMeta$,p=e.$vnode$||Cl(null,null),v=VS(n)?n:My(null,null,n);if(cd=m.tagName,h.$attrsToReflect$&&(v.$attrs$=v.$attrs$||{},h.$attrsToReflect$.forEach(([_,z])=>{v.$attrs$[z]=m[_]})),r&&v.$attrs$)for(const _ of Object.keys(v.$attrs$))m.hasAttribute(_)&&!["key","ref","style","class"].includes(_)&&(v.$attrs$[_]=m[_]);v.$tag$=null,v.$flags$|=4,e.$vnode$=v,v.$elm$=p.$elm$=m.shadowRoot||m,Bb=!!(h.$flags$&1)&&!(h.$flags$&128),Rb=m["s-cr"],qs=!1,yl(p,v,r);{if(mo.$flags$|=1,wm){Hy(v.$elm$);for(const _ of lr){const z=_.$nodeToRelocate$;if(!z["s-ol"]&&no.document){const $=no.document.createTextNode("");$["s-nr"]=z,qr(z.parentNode,z["s-ol"]=$,z)}}for(const _ of lr){const z=_.$nodeToRelocate$,$=_.$slotRefNode$;if($){const j=$.parentNode;let E=$.nextSibling;{let w=(i=z["s-ol"])==null?void 0:i.previousSibling;for(;w;){let N=(c=w["s-nr"])!=null?c:null;if(N&&N["s-sn"]===z["s-sn"]&&j===(N.__parentNode||N.parentNode)){for(N=N.nextSibling;N===z||N?.["s-sr"];)N=N?.nextSibling;if(!N||!N["s-nr"]){E=N;break}}w=w.previousSibling}}const L=z.__parentNode||z.parentNode,y=z.__nextSibling||z.nextSibling;(!E&&j!==L||y!==E)&&z!==E&&(!z["s-hn"]&&z["s-ol"]&&(z["s-hn"]=z["s-ol"].parentNode.nodeName),qr(j,z,E),z.nodeType===1&&z.tagName!=="SLOT-FB"&&(z.hidden=(d=z["s-ih"])!=null?d:!1)),z&&typeof $["s-rf"]=="function"&&$["s-rf"]($)}else z.nodeType===1&&(r&&(z["s-ih"]=(u=z.hidden)!=null?u:!1),z.hidden=!0)}}qs&&$y(v.$elm$),mo.$flags$&=-2,lr.length=0}Rb=void 0},Ky=(e,n)=>{if(n&&!e.$onRenderResolve$&&n["s-p"]){const r=n["s-p"].push(new Promise(i=>e.$onRenderResolve$=()=>{n["s-p"].splice(r-1,1),i()}))}},zm=(e,n)=>{if(e.$flags$&4){e.$flags$|=512;return}Ky(e,e.$ancestorComponent$);const r=()=>ej(e,n);if(n){queueMicrotask(()=>{r()});return}return r()},ej=(e,n)=>{const r=e.$hostElement$,i=Bt("scheduleUpdate",e.$cmpMeta$.$tagName$),c=e.$lazyInstance$;if(!c)throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let d;return n?(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([u,m])=>cr(c,u,m,r)),e.$queuedListeners$=void 0),e.$fetchedCbList$.length&&e.$fetchedCbList$.forEach(u=>u(r)),d=cr(c,"componentWillLoad",void 0,r)):d=cr(c,"componentWillUpdate",void 0,r),d=a1(d,()=>cr(c,"componentWillRender",void 0,r)),i(),a1(d,()=>nj(e,c,n))},a1=(e,n)=>oj(e)?e.then(n).catch(r=>{console.error(r),n()}):n(),oj=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",nj=async(e,n,r)=>{var i;const c=e.$hostElement$,d=Bt("update",e.$cmpMeta$.$tagName$),u=c["s-rc"];r&&IS(e);const m=Bt("render",e.$cmpMeta$.$tagName$);tj(e,n,c,r),u&&(u.map(h=>h()),c["s-rc"]=void 0),m(),d();{const h=(i=c["s-p"])!=null?i:[],p=()=>rj(e);h.length===0?p():(Promise.all(h).then(p),e.$flags$|=4,h.length=0)}},tj=(e,n,r,i)=>{try{n=n.render&&n.render(),e.$flags$|=2,QS(e,n,i)}catch(c){fe(c,e.$hostElement$)}return null},rj=e=>{const n=e.$cmpMeta$.$tagName$,r=e.$hostElement$,i=Bt("postUpdate",n),c=e.$lazyInstance$,d=e.$ancestorComponent$;cr(c,"componentDidRender",void 0,r),e.$flags$&64?(cr(c,"componentDidUpdate",void 0,r),i()):(e.$flags$|=64,aj(r),cr(c,"componentDidLoad",void 0,r),i(),e.$onReadyResolve$(r),d||qy()),e.$onInstanceResolve$(r),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&Ey(()=>zm(e,!1)),e.$flags$&=-517},qy=e=>{var n;Ey(()=>YS(no,"appload",{detail:{namespace:uS}})),(n=mo.$orgLocNodes$)!=null&&n.size&&mo.$orgLocNodes$.clear()},cr=(e,n,r,i)=>{if(e&&e[n])try{return e[n](r)}catch(c){fe(c,i)}},aj=e=>{var n;return e.classList.add((n=wa.hydratedSelectorName)!=null?n:"hydrated")},lj=(e,n)=>rt(e).$instanceValues$.get(n),Qf=(e,n,r,i)=>{const c=rt(e);if(!c)return;if(!c)throw new Error(`Couldn't find host element for "${i.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const d=c.$hostElement$,u=c.$instanceValues$.get(n),m=c.$flags$,h=c.$lazyInstance$;r=$b(r,i.$members$[n][0]);const p=Number.isNaN(u)&&Number.isNaN(r),g=r!==u&&!p;if((!(m&8)||u===void 0)&&g&&(c.$instanceValues$.set(n,r),h)){if(i.$watchers$&&m&128){const v=i.$watchers$[n];v&&v.map(_=>{try{h[_](r,u,n)}catch(z){fe(z,d)}})}if((m&18)===2){if(h.componentShouldUpdate&&h.componentShouldUpdate(r,u,n)===!1)return;zm(c,!1)}}},Zy=(e,n,r)=>{var i,c;const d=e.prototype;if(n.$members$||wa.propChangeCallback){e.watchers&&!n.$watchers$&&(n.$watchers$=e.watchers),e.deserializers&&!n.$deserializers$&&(n.$deserializers$=e.deserializers),e.serializers&&!n.$serializers$&&(n.$serializers$=e.serializers);const u=Object.entries((i=n.$members$)!=null?i:{});if(u.map(([m,[h]])=>{if(h&31||r&2&&h&32){const{get:p,set:g}=Object.getOwnPropertyDescriptor(d,m)||{};p&&(n.$members$[m][0]|=2048),g&&(n.$members$[m][0]|=4096),(r&1||!p)&&Object.defineProperty(d,m,{get(){{if((n.$members$[m][0]&2048)===0)return lj(this,m);const v=rt(this),_=v?v.$lazyInstance$:d;return _?_[m]:void 0}},configurable:!0,enumerable:!0}),Object.defineProperty(d,m,{set(v){const _=rt(this);if(_){if(g){typeof(h&32?this[m]:_.$hostElement$[m])>"u"&&_.$instanceValues$.get(m)&&(v=_.$instanceValues$.get(m)),g.apply(this,[$b(v,h)]),v=h&32?this[m]:_.$hostElement$[m],Qf(this,m,v,n);return}{if((r&1)===0||(n.$members$[m][0]&4096)===0){Qf(this,m,v,n),r&1&&!_.$lazyInstance$&&_.$fetchedCbList$.push(()=>{n.$members$[m][0]&4096&&_.$lazyInstance$[m]!==_.$instanceValues$.get(m)&&(_.$lazyInstance$[m]=v)});return}const z=()=>{const $=_.$lazyInstance$[m];!_.$instanceValues$.get(m)&&$&&_.$instanceValues$.set(m,$),_.$lazyInstance$[m]=$b(v,h),Qf(this,m,_.$lazyInstance$[m],n)};_.$lazyInstance$?z():_.$fetchedCbList$.push(()=>{z()})}}}})}else r&1&&h&64&&Object.defineProperty(d,m,{value(...p){var g;const v=rt(this);return(g=v?.$onInstancePromise$)==null?void 0:g.then(()=>{var _;return(_=v.$lazyInstance$)==null?void 0:_[m](...p)})}})}),r&1){const m=new Map;d.attributeChangedCallback=function(h,p,g){mo.jmp(()=>{var v;const _=m.get(h),z=rt(this);if(this.hasOwnProperty(_)&&wa.lazyLoad&&(g=this[_],delete this[_]),d.hasOwnProperty(_)&&typeof this[_]=="number"&&this[_]==g)return;if(_==null){const E=z?.$flags$;if(z&&E&&!(E&8)&&E&128&&g!==p){const L=z.$lazyInstance$,y=(v=n.$watchers$)==null?void 0:v[h];y?.forEach(w=>{L[w]!=null&&L[w].call(L,g,p,h)})}return}const $=u.find(([E])=>E===_);$&&$[1][0]&4&&(g=!(g===null||g==="false"));const j=Object.getOwnPropertyDescriptor(d,_);g!=this[_]&&(!j.get||j.set)&&(this[_]=g)})},e.observedAttributes=Array.from(new Set([...Object.keys((c=n.$watchers$)!=null?c:{}),...u.filter(([h,p])=>p[0]&31).map(([h,p])=>{var g;const v=p[1]||h;return m.set(v,h),p[0]&512&&((g=n.$attrsToReflect$)==null||g.push([h,v])),v})]))}}return e},ij=async(e,n,r,i)=>{let c;if((n.$flags$&32)===0){if(n.$flags$|=32,r.$lazyBundleId$){const h=gS(r,n);if(h&&"then"in h){const g=MS();c=await h,g()}else c=h;if(!c)throw new Error(`Constructor for "${r.$tagName$}#${n.$modeName$}" was not found`);c.isProxied||(r.$watchers$=c.watchers,r.$serializers$=c.serializers,r.$deserializers$=c.deserializers,Zy(c,r,2),c.isProxied=!0);const p=Bt("createInstance",r.$tagName$);n.$flags$|=8;try{new c(n)}catch(g){fe(g,e)}n.$flags$&=-9,n.$flags$|=128,p(),Db(n.$lazyInstance$,e)}else{c=e.constructor;const h=e.localName;customElements.whenDefined(h).then(()=>n.$flags$|=128)}if(c&&c.style){let h;typeof c.style=="string"?h=c.style:typeof c.style!="string"&&(n.$modeName$=PS(e),n.$modeName$&&(h=c.style[n.$modeName$]));const p=xm(r,n.$modeName$);if(!Ks.has(p)){const g=Bt("registerStyles",r.$tagName$);By(p,h,!!(r.$flags$&1)),g()}}}const d=n.$ancestorComponent$,u=()=>zm(n,!0);d&&d["s-rc"]?d["s-rc"].push(u):u()},Db=(e,n)=>{cr(e,"connectedCallback",void 0,n)},cj=e=>{if((mo.$flags$&1)===0){const n=rt(e);if(!n)return;const r=n.$cmpMeta$,i=Bt("connectedCallback",r.$tagName$);if(n.$flags$&1)Py(e,n,r.$listeners$),n?.$lazyInstance$?Db(n.$lazyInstance$,e):n?.$onReadyPromise$&&n.$onReadyPromise$.then(()=>Db(n.$lazyInstance$,e));else{n.$flags$|=1;let c;if(c=e.getAttribute(Gi),c){if(r.$flags$&1){const d=Dy(e.shadowRoot,r,e.getAttribute("s-mode"));e.classList.remove(d+"-h",d+"-s")}ZS(e,r.$tagName$,c,n)}c||r.$flags$&12&&sj(e);{let d=e;for(;d=d.parentNode||d.host;)if(d.nodeType===1&&d.hasAttribute("s-id")&&d["s-p"]||d["s-p"]){Ky(n,n.$ancestorComponent$=d);break}}r.$members$&&Object.entries(r.$members$).map(([d,[u]])=>{if(u&31&&d in e&&e[d]!==Object.prototype[d]){const m=e[d];delete e[d],e[d]=m}}),ij(e,n,r)}i()}},sj=e=>{if(!no.document)return;const n=e["s-cr"]=no.document.createComment("");n["s-cn"]=!0,qr(e,n,e.firstChild)},l1=(e,n)=>{cr(e,"disconnectedCallback",void 0,n||e)},dj=async e=>{if((mo.$flags$&1)===0){const n=rt(e);n?.$rmListeners$&&(n.$rmListeners$.map(r=>r()),n.$rmListeners$=void 0),n?.$lazyInstance$?l1(n.$lazyInstance$,e):n?.$onReadyPromise$&&n.$onReadyPromise$.then(()=>l1(n.$lazyInstance$,e))}zl.has(e)&&zl.delete(e),e.shadowRoot&&zl.has(e.shadowRoot)&&zl.delete(e.shadowRoot)},uj=(e,n={})=>{var r;if(!no.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const i=Bt(),c=[],d=n.exclude||[],u=no.customElements,m=no.document.head,h=m.querySelector("meta[charset]"),p=no.document.createElement("style"),g=[];let v,_=!0;Object.assign(mo,n),mo.$resourcesUrl$=new URL(n.resourcesUrl||"./",no.document.baseURI).href,mo.$flags$|=2,FS();let z=!1;if(e.map($=>{$[1].map(j=>{var E,L,y;const w={$flags$:j[0],$tagName$:j[1],$members$:j[2],$listeners$:j[3]};w.$flags$&4&&(z=!0),w.$members$=j[2],w.$listeners$=j[3],w.$attrsToReflect$=[],w.$watchers$=(E=j[4])!=null?E:{},w.$serializers$=(L=j[5])!=null?L:{},w.$deserializers$=(y=j[6])!=null?y:{};const N=n.transformTagName?n.transformTagName(w.$tagName$):w.$tagName$,D=class extends HTMLElement{constructor(H){if(super(H),this.hasRegisteredEventListeners=!1,H=this,vS(H,w),w.$flags$&1){if(!H.shadowRoot)NS.call(H,w);else if(H.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${w.$tagName$}! Mode is set to ${H.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){const H=rt(this);H&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Py(this,H,w.$listeners$)),v&&(clearTimeout(v),v=null),_?g.push(this):mo.jmp(()=>cj(this)))}disconnectedCallback(){mo.jmp(()=>dj(this)),mo.raf(()=>{var H;const q=rt(this);if(!q)return;const oe=g.findIndex(ce=>ce===this);oe>-1&&g.splice(oe,1),((H=q?.$vnode$)==null?void 0:H.$elm$)instanceof Node&&!q.$vnode$.$elm$.isConnected&&delete q.$vnode$.$elm$})}componentOnReady(){var H;return(H=rt(this))==null?void 0:H.$onReadyPromise$}};w.$lazyBundleId$=$[0],!d.includes(N)&&!u.get(N)&&(c.push(N),u.define(N,Zy(D,w,1)))})}),c.length>0&&(z&&(p.textContent+=Cy),p.textContent+=c.sort()+zS,p.innerHTML.length)){p.setAttribute("data-styles","");const $=(r=mo.$nonce$)!=null?r:Ly(no.document);$!=null&&p.setAttribute("nonce",$),m.insertBefore(p,h?h.nextSibling:m.firstChild)}_=!1,g.length?g.map($=>$.connectedCallback()):mo.jmp(()=>v=setTimeout(qy,30)),i()},yD=(e,n)=>n,Py=(e,n,r,i)=>{r&&no.document&&r.map(([c,d,u])=>{const m=bj(no.document,e,c),h=fj(n,u),p=mj(c);mo.ael(m,d,h,p),(n.$rmListeners$=n.$rmListeners$||[]).push(()=>mo.rel(m,d,h,p))})},fj=(e,n)=>r=>{var i;try{e.$flags$&256?(i=e.$lazyInstance$)==null||i[n](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([n,r])}catch(c){fe(c,e.$hostElement$)}},bj=(e,n,r)=>r&8?no:n,mj=e=>SS?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,hj=()=>{GS(e=>{try{e.shadowRoot instanceof ShadowRoot&&u5(e,G6(e))}catch{}return"default"}),pe(()=>import("./devtools-CLKWKoPc-CJuu85Sw.js"),__vite__mapDeps([107,9])).then(e=>{typeof e=="object"&&e!==null&&typeof e.initialize=="function"&&e.initialize()}).catch(e=>{$o.error(e)})};const pj=hj;const kj=async(e,n)=>{if(!(typeof window>"u"))return await pj(),uj(JSON.parse('[["kol-abbr",[[289,"kol-abbr",{"_label":[1],"state":[32]},null,{"_label":["validateLabel"]}]]],["kol-accordion",[[289,"kol-accordion",{"_disabled":[4],"_label":[1],"_level":[2],"_on":[16],"_open":[1540],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_disabled":["validateDisabled"],"_label":["validateLabel"],"_level":["validateLevel"],"_on":["validateOn"],"_open":["validateOpen"]}]]],["kol-alert",[[289,"kol-alert",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"_on":[16],"_type":[1],"_variant":[1],"state":[32]}]]],["kol-alert-wc",[[260,"kol-alert-wc",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"_on":[16],"_type":[1],"_variant":[1],"state":[32]},null,{"_alert":["validateAlert"],"_hasCloser":["validateHasCloser"],"_label":["validateLabel"],"_level":["validateLevel"],"_on":["validateOn"],"_type":["validateType"],"_variant":["validateVariant"]}]]],["kol-avatar",[[289,"kol-avatar",{"_color":[1],"_src":[1],"_label":[1]}]]],["kol-avatar-wc",[[256,"kol-avatar-wc",{"_color":[1],"_src":[1],"_label":[1],"state":[32]},null,{"_color":["validateColor"],"_src":["validateSrc"],"_label":["validateLabel"]}]]],["kol-badge",[[289,"kol-badge",{"_color":[1],"_icons":[1],"_label":[1],"_smartButton":[1,"_smart-button"],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_icons":["validateIcons"],"_color":["validateColor"],"_smartButton":["validateSmartButton"]}]]],["kol-breadcrumb",[[289,"kol-breadcrumb",{"_label":[1],"_links":[1],"state":[32]},null,{"_label":["validateLabel"],"_links":["validateLinks"]}]]],["kol-button",[[289,"kol-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"getValue":[64],"focus":[64],"kolFocus":[64]}]]],["kol-button-link",[[289,"kol-button-link",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaSelected":[4,"_aria-selected"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_variant":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"getValue":[64],"focus":[64],"kolFocus":[64]}]]],["kol-button-wc",[[260,"kol-button-wc",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaHasPopup":[1,"_aria-has-popup"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_buttonVariant":[1,"_button-variant"],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_ariaControls":["validateAriaControls"],"_ariaDescription":["validateAriaDescription"],"_ariaExpanded":["validateAriaExpanded"],"_ariaSelected":["validateAriaSelected"],"_customClass":["validateCustomClass"],"_disabled":["validateDisabled"],"_hideLabel":["validateHideLabel"],"_icons":["validateIcons"],"_id":["validateId"],"_inline":["validateInline"],"_label":["validateLabel"],"_name":["validateName"],"_on":["validateOn"],"_role":["validateRole"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_tabIndex":["validateTabIndex"],"_tooltipAlign":["validateTooltipAlign"],"_type":["validateType"],"_value":["validateValue"],"_buttonVariant":["validateButtonVariant"]}]]],["kol-card",[[289,"kol-card",{"_on":[16],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2]}]]],["kol-card-wc",[[260,"kol-card-wc",{"_on":[16],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"state":[32]},null,{"_on":["validateOn"],"_hasCloser":["validateHasCloser"],"_label":["validateLabel"],"_level":["validateLevel"]}]]],["kol-combobox",[[289,"kol-combobox",{"_accessKey":[1,"_access-key"],"_placeholder":[1],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_hideClearButton":[4,"_hide-clear-button"],"_suggestions":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"blockSuggestionMouseOver":[32],"_isOpen":[32],"_filteredSuggestions":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},[[0,"keydown","handleKeyDown"],[8,"click","handleWindowClick"],[1,"mousemove","handleMouseEvent"],[8,"focusout","handleFocusOut"],[8,"blur","handleWindowBlur"]],{"_placeholder":["validatePlaceholder"],"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_shortKey":["validateShortKey"],"_suggestions":["validateSuggestions"],"_hideClearButton":["validateHideClearButton"],"_required":["validateRequired"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-details",[[289,"kol-details",{"_disabled":[4],"_label":[1],"_level":[2],"_on":[16],"_open":[1540],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_disabled":["validateDisabled"],"_label":["validateLabel"],"_level":["validateLevel"],"_on":["validateOn"],"_open":["validateOpen"]}]]],["kol-drawer",[[289,"kol-drawer",{"_open":[4],"_align":[1],"_hasCloser":[4,"_has-closer"],"_label":[1],"_on":[16],"state":[32],"open":[64],"close":[64]},null,{"_label":["validateLabel"],"_align":["validateAlign"],"_hasCloser":["validateHasCloser"],"_open":["validateOpen"],"_on":["validateOn"]}]]],["kol-form",[[289,"kol-form",{"_on":[16],"_requiredText":[8,"_required-text"],"_errorList":[16],"state":[32],"focusErrorList":[64]},null,{"_on":["validateOn"],"_requiredText":["validateRequiredText"],"_errorList":["validateErrorList"]}]]],["kol-heading",[[289,"kol-heading",{"_label":[1],"_level":[2],"_secondaryHeadline":[1,"_secondary-headline"],"state":[32]},null,{"_label":["validateLabel"],"_level":["validateLevel"],"_secondaryHeadline":["validateSecondaryHeadline"]}]]],["kol-icon",[[289,"kol-icon",{"_icons":[1],"_label":[1],"state":[32]},null,{"_icons":["validateIcons"],"_label":["validateLabel"]}]]],["kol-image",[[289,"kol-image",{"_alt":[1],"_loading":[1],"_sizes":[1],"_src":[1],"_srcset":[1],"state":[32]},null,{"_alt":["validateAlt"],"_loading":["validateLoading"],"_sizes":["validateSizes"],"_src":["validateSrc"],"_srcset":["validateSrcset"]}]]],["kol-input-checkbox",[[289,"kol-input-checkbox",{"_accessKey":[1,"_access-key"],"_checked":[1540],"_hideMsg":[4,"_hide-msg"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_indeterminate":[1540],"_label":[1],"_labelAlign":[1,"_label-align"],"_msg":[1],"_name":[1],"_on":[16],"_required":[4],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[8],"_variant":[1],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_checked":["validateChecked"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_indeterminate":["validateIndeterminate"],"_label":["validateLabel"],"_labelAlign":["validateLabelAlign"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"],"_variant":["validateVariant"]}]]],["kol-input-color",[[289,"kol-input-color",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_suggestions":["validateSuggestions"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-date",[[289,"kol-input-date",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_max":[1],"_min":[1],"_msg":[1],"_name":[1],"_on":[16],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_step":[8],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1537],"_initialValueType":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"reset":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_max":["validateMax"],"_min":["validateMin"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_suggestions":["validateSuggestions"],"_step":["validateStep"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_type":["validateType"],"_value":["validateValue"]}]]],["kol-input-email",[[289,"kol-input-email",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_msg":["validateMsg"],"_multiple":["validateMultiple"],"_name":["validateName"],"_on":["validateOn"],"_pattern":["validatePattern"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_suggestions":["validateSuggestions"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"],"_maxLengthBehavior":["validateMaxLengthBehavior"]}]]],["kol-input-file",[[289,"kol-input-file",{"_accept":[1],"_accessKey":[1,"_access-key"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"filename":[32],"hasFileSelected":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"reset":[64]},null,{"_accept":["validateAccept"],"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_multiple":["validateMultiple"],"_name":["validateName"],"_on":["validateOn"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"]}]]],["kol-input-number",[[289,"kol-input-number",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_max":[8],"_min":[8],"_msg":[1],"_name":[1],"_on":[16],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_step":[8],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"_initialValueType":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_max":["validateMax"],"_min":["validateMin"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_suggestions":["validateSuggestions"],"_step":["validateStep"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-password",[[289,"kol-input-password",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_msg":[1],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"_variant":[1],"state":[32],"_passwordVisible":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_maxLengthBehavior":["validateMaxLengthBehavior"],"_disabled":["validateDisabled"],"_variant":["validateVariant"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_pattern":["validatePattern"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-radio",[[289,"kol-input-radio",{"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_options":[1],"_orientation":[1],"_required":[4],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_tooltipAlign":["validateTooltipAlign"],"_disabled":["validateDisabled"],"_hideLabel":["validateHideLabel"],"_hideMsg":["validateHideMsg"],"_hint":["validateHint"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_options":["validateOptions"],"_orientation":["validateOrientation"],"_required":["validateRequired"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-range",[[289,"kol-input-range",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_max":[8],"_min":[8],"_msg":[1],"_name":[1],"_on":[16],"_shortKey":[1,"_short-key"],"_step":[8],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"_initialValueType":[32],"inputHasFocus":[32],"focus":[64],"kolFocus":[64],"getValue":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_max":["validateMax"],"_min":["validateMin"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_shortKey":["validateShortKey"],"_step":["validateStep"],"_suggestions":["validateSuggestions"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-text",[[289,"kol-input-text",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_msg":[1],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_spellCheck":[4,"_spell-check"],"_suggestions":[1],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1537],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"selectionStart":[64],"selectioconEnd":[64],"setSelectionRange":[64],"setSelectionStart":[64],"setRangeText":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_maxLengthBehavior":["validateMaxLengthBehavior"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_pattern":["validatePattern"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_spellCheck":["validateSpellCheck"],"_suggestions":["validateSuggestions"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_type":["validateType"],"_value":["validateValue"]}]]],["kol-kolibri",[[289,"kol-kolibri",{"_color":[1],"_labeled":[4],"state":[32]},null,{"_color":["validateColor"],"_labeled":["validateLabeled"]}]]],["kol-link",[[289,"kol-link",{"_accessKey":[1,"_access-key"],"_ariaCurrentValue":[1,"_aria-current-value"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_disabled":[4],"_download":[1],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icons":[1],"_inline":[4],"_label":[1],"_variant":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"focus":[64],"kolFocus":[64]}]]],["kol-link-button",[[289,"kol-link-button",{"_accessKey":[1,"_access-key"],"_ariaCurrentValue":[1,"_aria-current-value"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_download":[1],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icons":[1],"_label":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"_variant":[1],"focus":[64],"kolFocus":[64]}]]],["kol-link-wc",[[260,"kol-link-wc",{"_accessKey":[1,"_access-key"],"_ariaCurrentValue":[1,"_aria-current-value"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaOwns":[1,"_aria-owns"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_download":[1],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icons":[1],"_inline":[4],"_label":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_tabIndex":[2,"_tab-index"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"_buttonVariant":[1,"_button-variant"],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_ariaCurrentValue":["validateAriaCurrentValue"],"_ariaControls":["validateAriaControls"],"_ariaDescription":["validateAriaDescription"],"_ariaExpanded":["validateAriaExpanded"],"_ariaOwns":["validateAriaOwns"],"_customClass":["validateCustomClass"],"_disabled":["validateDisabled"],"_download":["validateDownload"],"_hideLabel":["validateHideLabel"],"_href":["validateHref"],"_icons":["validateIcons"],"_inline":["validateInline"],"_label":["validateLabel"],"_on":["validateOn"],"_role":["validateRole"],"_shortKey":["validateShortKey"],"_tabIndex":["validateTabIndex"],"_target":["validateTarget"],"_tooltipAlign":["validateTooltipAlign"],"_buttonVariant":["validateButtonVariant"]}]]],["kol-modal",[[289,"kol-modal",{"_label":[1],"_on":[16],"_width":[1],"_variant":[1],"state":[32],"openModal":[64],"closeModal":[64]},null,{"_label":["validateLabel"],"_on":["validateOn"],"_width":["validateWidth"],"_variant":["validateVariant"]}]]],["kol-nav",[[289,"kol-nav",{"_collapsible":[4],"_hasCompactButton":[4,"_has-compact-button"],"_hasIconsWhenExpanded":[4,"_has-icons-when-expanded"],"_hideLabel":[4,"_hide-label"],"_label":[1],"_links":[1],"_orientation":[1],"state":[32]},null,{"_collapsible":["validateCollapsible"],"_hasCompactButton":["validateHasCompactButton"],"_hasIconsWhenExpanded":["validateHasIconsWhenExpanded"],"_hideLabel":["validateHideLabel"],"_label":["validateLabel"],"_links":["validateLinks"],"_orientation":["validateOrientation"]}]]],["kol-pagination",[[289,"kol-pagination",{"_boundaryCount":[2,"_boundary-count"],"_customClass":[1,"_custom-class"],"_label":[1],"_hasButtons":[8,"_has-buttons"],"_page":[2],"_pageSize":[1026,"_page-size"],"_pageSizeOptions":[1,"_page-size-options"],"_on":[16],"_siblingCount":[2,"_sibling-count"],"_tooltipAlign":[1,"_tooltip-align"],"_max":[2]}]]],["kol-pagination-wc",[[256,"kol-pagination-wc",{"_boundaryCount":[2,"_boundary-count"],"_customClass":[1,"_custom-class"],"_label":[1],"_hasButtons":[8,"_has-buttons"],"_page":[2],"_pageSize":[1026,"_page-size"],"_pageSizeOptions":[1,"_page-size-options"],"_on":[16],"_siblingCount":[2,"_sibling-count"],"_tooltipAlign":[1,"_tooltip-align"],"_max":[2],"state":[32]},null,{"_boundaryCount":["validateBoundaryCount"],"_customClass":["validateCustomClass"],"_label":["validateLabel"],"_hasButtons":["validateHasButtons"],"_on":["validateOn"],"_page":["validatePage"],"_pageSize":["validatePageSize"],"_pageSizeOptions":["validatePageSizeOptions"],"_siblingCount":["validateSiblingCount"],"_max":["validateMax"],"_tooltipAlign":["validateTooltipAlign"]}]]],["kol-popover-button",[[289,"kol-popover-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_inline":[4],"_id":[1],"_label":[1],"_name":[1],"_on":[16],"_popoverAlign":[1,"_popover-align"],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"hidePopover":[64],"showPopover":[64],"focus":[64],"kolFocus":[64]}]]],["kol-popover-button-wc",[[260,"kol-popover-button-wc",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_name":[1],"_on":[16],"_popoverAlign":[1,"_popover-align"],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"state":[32],"justClosed":[32],"popoverOpen":[32],"hidePopover":[64],"showPopover":[64],"focus":[64],"kolFocus":[64]},null,{"_inline":["validateInline"],"_popoverAlign":["validatePopoverAlign"]}]]],["kol-popover-wc",[[260,"kol-popover-wc",{"_align":[1],"_on":[16],"_show":[1540],"state":[32]},null,{"_align":["validateAlign"],"_on":["validateOn"],"_show":["validateShow"]}]]],["kol-progress",[[289,"kol-progress",{"_label":[1],"_max":[2],"_unit":[1],"_value":[2],"_variant":[1],"state":[32]},null,{"_label":["validateLabel"],"_max":["validateMax"],"_unit":["validateUnit"],"_value":["validateValue"],"_variant":["validateVariant"]}]]],["kol-quote",[[289,"kol-quote",{"_label":[1],"_href":[1],"_quote":[1],"_variant":[1],"state":[32]},null,{"_label":["validateLabel"],"_href":["validateHref"],"_quote":["validateQuote"],"_variant":["validateVariant"]}]]],["kol-select",[[289,"kol-select",{"_accessKey":[1,"_access-key"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_rows":[2],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"getValue":[64],"focus":[64],"kolFocus":[64]}]]],["kol-select-wc",[[256,"kol-select-wc",{"_accessKey":[1,"_access-key"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_rows":[2],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_multiple":["validateMultiple"],"_name":["validateName"],"_on":["validateOn"],"_options":["validateOptions"],"_required":["validateRequired"],"_rows":["validateRows"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_tabIndex":["validateTabIndex"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-single-select",[[289,"kol-single-select",{"_accessKey":[1,"_access-key"],"_placeholder":[1],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"_hideClearButton":[4,"_hide-clear-button"],"_rows":[2],"_isOpen":[32],"_filteredOptions":[32],"_inputValue":[32],"blockSuggestionMouseOver":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},[[8,"focusout","handleFocusOut"],[8,"blur","handleWindowBlur"],[0,"keydown","handleKeyDown"],[1,"mousemove","handleMouseEvent"]],{"_placeholder":["validatePlaceholder"],"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_options":["validateOptions"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"],"_hideClearButton":["validateHideClearButton"],"_rows":["validateRows"]}]]],["kol-skip-nav",[[289,"kol-skip-nav",{"_label":[1],"_links":[1],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_label":["validateLabel"],"_links":["validateLinks"]}]]],["kol-spin",[[289,"kol-spin",{"_show":[1540],"_label":[1],"_variant":[1],"state":[32]},null,{"_show":["validateShow"],"_label":["validateLabel"],"_variant":["validateVariant"]}]]],["kol-split-button",[[289,"kol-split-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"state":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"closePopup":[64]}]]],["kol-table-settings-wc",[[256,"kol-table-settings-wc",{"_tableSettings":[16],"tableSettings":[32],"errorMessage":[32]},null,{"_tableSettings":["handleTableSettingsChange"]}]]],["kol-table-stateful",[[289,"kol-table-stateful",{"_allowMultiSort":[4,"_allow-multi-sort"],"_data":[1],"_dataFoot":[1,"_data-foot"],"_headers":[1],"_label":[1],"_minWidth":[1,"_min-width"],"_pagination":[8],"_paginationPosition":[1,"_pagination-position"],"_selection":[1],"_on":[16],"_tableSettings":[16],"_hasSettingsMenu":[4,"_has-settings-menu"],"state":[32],"getSelection":[64]},null,{"_allowMultiSort":["validateAllowMultiSort"],"_data":["validateData"],"_dataFoot":["validateDataFoot"],"_paginationPosition":["validatePaginationPosition"],"_hasSettingsMenu":["validateHasSettingsMenu"],"_headers":["validateHeaders"],"_label":["validateLabel"],"_minWidth":["validateMinWidth"],"_selection":["validateSelection"],"_on":["validateOn"],"_tableSettings":["validateTableSettings"],"_pagination":["validatePagination"]}]]],["kol-table-stateless",[[289,"kol-table-stateless",{"_data":[1],"_dataFoot":[1,"_data-foot"],"_headerCells":[1,"_header-cells"],"_label":[1],"_minWidth":[1,"_min-width"],"_on":[16],"_selection":[1],"_tableSettings":[16],"_hasSettingsMenu":[4,"_has-settings-menu"]}]]],["kol-table-stateless-wc",[[256,"kol-table-stateless-wc",{"_data":[1],"_dataFoot":[1,"_data-foot"],"_headerCells":[1,"_header-cells"],"_label":[1],"_minWidth":[1,"_min-width"],"_on":[16],"_selection":[1],"_tableSettings":[16],"_hasSettingsMenu":[4,"_has-settings-menu"],"state":[32],"tableDivElementHasScrollbar":[32],"previousHeaderCells":[32]},[[0,"keydown","handleKeyDown"],[0,"settingsChange","handleSettingsChange"]],{"_hasSettingsMenu":["validateHasSettingsMenu"],"_data":["validateData"],"_dataFoot":["validateDataFoot"],"_headerCells":["validateHeaderCells"],"_label":["validateLabel"],"_minWidth":["validateMinWidth"],"_on":["validateOn"],"_selection":["validateSelection"],"_tableSettings":["validateTableSettings"]}]]],["kol-tabs",[[289,"kol-tabs",{"_align":[1],"_behavior":[1],"_hasCreateButton":[4,"_has-create-button"],"_label":[1],"_on":[16],"_selected":[1538],"_tabs":[1],"state":[32]},null,{"_align":["validateAlign"],"_behavior":["validateBehavior"],"_hasCreateButton":["validateHasCreateButton"],"_label":["validateLabel"],"_on":["validateOn"],"_selected":["validateSelected"],"_tabs":["validateTabs"]}]]],["kol-textarea",[[289,"kol-textarea",{"_accessKey":[1,"_access-key"],"_adjustHeight":[4,"_adjust-height"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_msg":[1],"_name":[1],"_on":[16],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_resize":[1],"_required":[4],"_rows":[1026],"_shortKey":[1,"_short-key"],"_spellCheck":[4,"_spell-check"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_adjustHeight":["validateAdjustHeight"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_maxLengthBehavior":["validateMaxLengthBehavior"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_resize":["validateResize"],"_required":["validateRequired"],"_rows":["validateRows"],"_shortKey":["validateShortKey"],"_spellCheck":["validateSpellCheck"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-toast-container",[[289,"kol-toast-container",{"state":[32],"enqueue":[64],"closeAll":[64]}]]],["kol-toolbar",[[289,"kol-toolbar",{"_label":[1],"_items":[16],"_orientation":[1],"state":[32],"currentIndex":[32]},[[0,"keydown","handleKeyDown"],[2,"blur","handleBlur"]],{"_label":["validateLabel"],"_items":["validateItems"],"_orientation":["validateOrientation"]}]]],["kol-tooltip-wc",[[256,"kol-tooltip-wc",{"_badgeText":[1,"_badge-text"],"_align":[1],"_id":[1],"_label":[1],"state":[32],"hideTooltip":[64]},null,{"_badgeText":["validateBadgeText"],"_align":["validateAlign"],"_id":["validateId"],"_label":["validateLabel"]}]]],["kol-tree",[[289,"kol-tree",{"_label":[1]}]]],["kol-tree-item",[[289,"kol-tree-item",{"_active":[4],"_label":[1],"_open":[4],"_href":[1],"focus":[64],"focusLink":[64],"expand":[64],"collapse":[64],"isOpen":[64]}]]],["kol-tree-item-wc",[[260,"kol-tree-item-wc",{"_active":[4],"_label":[1],"_open":[4],"_href":[1],"level":[32],"state":[32],"focus":[64],"focusLink":[64],"expand":[64],"collapse":[64],"isOpen":[64]},null,{"_active":["validateActive"],"_label":["validateLabel"],"_open":["validateOpen"],"_href":["validateHref"]}]]],["kol-tree-wc",[[260,"kol-tree-wc",{"_label":[1],"state":[32]},[[0,"keydown","handleKeyDown"],[0,"focusout","handleFocusOut"]],{"_label":["validateLabel"]}]]],["kol-version",[[289,"kol-version",{"_label":[1],"state":[32]},null,{"_label":["validateLabel"]}]]],["test-component",[[0,"test-component"]]]]'),n)};(function(){if(typeof window<"u"&&window.Reflect!==void 0&&window.customElements!==void 0){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}})();var Mb={};function vj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bs={exports:{}},gj=Bs.exports,i1;function _j(){return i1||(i1=1,(function(e){(function(n,r){e.exports?e.exports=r():n.log=r()})(gj,function(){var n=function(){},r="undefined",i=typeof window!==r&&typeof window.navigator!==r&&/Trident\/|MSIE /.test(window.navigator.userAgent),c=["trace","debug","info","warn","error"],d={},u=null;function m(j,E){var L=j[E];if(typeof L.bind=="function")return L.bind(j);try{return Function.prototype.bind.call(L,j)}catch{return function(){return Function.prototype.apply.apply(L,[j,arguments])}}}function h(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function p(j){return j==="debug"&&(j="log"),typeof console===r?!1:j==="trace"&&i?h:console[j]!==void 0?m(console,j):console.log!==void 0?m(console,"log"):n}function g(){for(var j=this.getLevel(),E=0;E<c.length;E++){var L=c[E];this[L]=E<j?n:this.methodFactory(L,j,this.name)}if(this.log=this.debug,typeof console===r&&j<this.levels.SILENT)return"No console available for logging"}function v(j){return function(){typeof console!==r&&(g.call(this),this[j].apply(this,arguments))}}function _(j,E,L){return p(j)||v.apply(this,arguments)}function z(j,E){var L=this,y,w,N,D="loglevel";typeof j=="string"?D+=":"+j:typeof j=="symbol"&&(D=void 0);function H(ie){var ee=(c[ie]||"silent").toUpperCase();if(!(typeof window===r||!D)){try{window.localStorage[D]=ee;return}catch{}try{window.document.cookie=encodeURIComponent(D)+"="+ee+";"}catch{}}}function q(){var ie;if(!(typeof window===r||!D)){try{ie=window.localStorage[D]}catch{}if(typeof ie===r)try{var ee=window.document.cookie,_e=encodeURIComponent(D),Te=ee.indexOf(_e+"=");Te!==-1&&(ie=/^([^;]+)/.exec(ee.slice(Te+_e.length+1))[1])}catch{}return L.levels[ie]===void 0&&(ie=void 0),ie}}function oe(){if(!(typeof window===r||!D)){try{window.localStorage.removeItem(D)}catch{}try{window.document.cookie=encodeURIComponent(D)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function ce(ie){var ee=ie;if(typeof ee=="string"&&L.levels[ee.toUpperCase()]!==void 0&&(ee=L.levels[ee.toUpperCase()]),typeof ee=="number"&&ee>=0&&ee<=L.levels.SILENT)return ee;throw new TypeError("log.setLevel() called with invalid level: "+ie)}L.name=j,L.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},L.methodFactory=E||_,L.getLevel=function(){return N??w??y},L.setLevel=function(ie,ee){return N=ce(ie),ee!==!1&&H(N),g.call(L)},L.setDefaultLevel=function(ie){w=ce(ie),q()||L.setLevel(ie,!1)},L.resetLevel=function(){N=null,oe(),g.call(L)},L.enableAll=function(ie){L.setLevel(L.levels.TRACE,ie)},L.disableAll=function(ie){L.setLevel(L.levels.SILENT,ie)},L.rebuild=function(){if(u!==L&&(y=ce(u.getLevel())),g.call(L),u===L)for(var ie in d)d[ie].rebuild()},y=ce(u?u.getLevel():"WARN");var Ve=q();Ve!=null&&(N=ce(Ve)),g.call(L)}u=new z,u.getLogger=function(E){if(typeof E!="symbol"&&typeof E!="string"||E==="")throw new TypeError("You must supply a name when creating a logger.");var L=d[E];return L||(L=d[E]=new z(E,u.methodFactory)),L};var $=typeof window!==r?window.log:void 0;return u.noConflict=function(){return typeof window!==r&&window.log===u&&(window.log=$),u},u.getLoggers=function(){return d},u.default=u,u})})(Bs)),Bs.exports}_j();const xj=(e,n)=>r=>r(e,n),yj=(e,n)=>r=>r(e,n,{append:!1}),wj=()=>{const e=typeof process<"u"&&Mb?Mb:{},n=e.NODE_ENV==="test",r="VITEST"in e,i="JEST_WORKER_ID"in e,c="PLAYWRIGHT_TEST_BASE_URL"in e,d=e.CI==="true",u=e.TEST==="true"||e.IS_TEST==="true",m=typeof navigator<"u"&&navigator.webdriver===!0,h=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return n||r||i||c||d||u||m||h},at={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:wj(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const e={};for(const[r,i]of at.A11yUi.PERFORMANCE_MEASURES.entries())e[r]=[i.totalTime/i.count,i.count];const n=Object.entries(e).sort((r,i)=>i[1][0]-r[1][0]);return console.table(Object.fromEntries(n.map(([r,[i,c]])=>[r,{"avg (ms)":parseFloat(i.toFixed(2)),count:c}]))),e}}},Gy=new Set,c1=new Map,zj=/--[^;]+/g,Sj=/:/,jj=typeof MutationObserver<"u";let Yy=()=>{Math.min(25+Math.log2(at.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250)};const Tj=(e,n)=>{let r=n.match(zj);if(Array.isArray(r)){r=r.filter(c=>Sj.test(c));const i=document.createElement("style");i.innerHTML=`.${e} {${r.join(";")}}`,document.querySelector("head")?.appendChild(i)}Gy.add(e)},eb=(e,n)=>{const r=at.A11yUi.THEMES.get(e);if(r instanceof Map){const i=r.get(n);if(i!==void 0)return i}return""},Aj=e=>{const n=e.firstChild;if(!(!(n instanceof HTMLStyleElement)||n.dataset.themingFallback!==void 0))for(const r of Array.from(e.childNodes))if(r instanceof HTMLStyleElement&&r.tagName==="STYLE"&&r.dataset.themingFallback===void 0)e.removeChild(r);else break},Cj=(e,n)=>{try{if(at.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const r=n.filter(i=>typeof i=="string"&&i.length>0).map(i=>{let c=c1.get(i);return c||(c=new CSSStyleSheet,c.replaceSync(i),c1.set(i,c)),c});e.adoptedStyleSheets=r}catch{for(let r=n.length-1;r>=0;r--){const i=n[r];if(typeof i!="string"||i.length===0)continue;const c=n.length-1-r,d=document.createElement("style");switch(d.dataset.themingFallback="",c){case 4:d.dataset.themingBaseA11y="";break;case 3:d.dataset.themingBaseGlobal="";break;case 2:d.dataset.themingBaseComponent="";break;case 1:d.dataset.themingCustomGlobal="";break;case 0:d.dataset.themingCustomComponent="";break;default:d.dataset.themingUnknown="";break}d.innerHTML=i,e.insertBefore(d,e.firstChild)}}},Ej=(e,n,r)=>{if(r===!1||r?.mode!=="before"&&r?.mode!=="after")return;const i=Array.from(e.childNodes).filter(d=>d instanceof HTMLStyleElement&&d.tagName==="STYLE");let c;try{c=Array.from(e.adoptedStyleSheets)}catch{c=[]}if(!(i.length===0&&c.length===0))if(r.mode==="before"){const d=[...c.map(u=>Array.from(u.cssRules).map(m=>m.cssText).join("")),...i.map(u=>u.innerHTML)];n.unshift(...d)}else i.forEach(d=>n.push(d.innerHTML)),c.forEach(d=>n.push(Array.from(d.cssRules).map(u=>u.cssText).join("")))},Lj=(e,n,r)=>{const i=n.name||"default";let c;try{if(e.shadowRoot===null)throw new Error("ShadowRoot is null");c=e.shadowRoot}catch{c=e}const d=at.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName);if(d)s1(e,c,d,r);else{const u=eb(i,"PROPERTIES"),m=eb(i,"GLOBAL"),h=eb(i,e.tagName);Gy.has(i)===!1&&Tj(i,m);const p=[u,m,h];if(Ej(c,p,n.encroachCss),n.cache===!0){let g=at.A11yUi.CSS_STYLE_CACHE.get(i);g||(g=new Map,at.A11yUi.CSS_STYLE_CACHE.set(i,g)),g.set(e.tagName,p)}s1(e,c,p,r)}},s1=(e,n,r,i)=>{const c=at.A11yUi.Theme?.loglevel==="debug",d=c?performance.now():0;if(Aj(n),Cj(n,r),Rj(e),requestAnimationFrame(i),c){const u=performance.now()-d,m=at.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);m?(m.count+=1,m.totalTime+=u):at.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:u})}},Oj=e=>{const n=at.A11yUi.STYLING_TASK_QUEUE.get(e);if(n){const{resetCss:r,themeDetails:i}=n;Lj(e,i,r)}},$j={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},Nj=jj?new MutationObserver((e,n)=>{const r=[];for(const i of e){const c=i.target;c.classList.contains("hydrated")&&at.A11yUi.STYLING_TASK_QUEUE.has(c)&&(Oj(c),r.push(c))}for(const i of r)n.observe(i,$j)}):null;Nj&&(Yy=()=>{});const Rj=e=>{at.A11yUi.STYLING_TASK_QUEUE.delete(e),Yy()};class Bj{Prefix;Key;Tag;createTheme=(n,r)=>yj(n,r);createTranslation=(n,r)=>xj(n,r);constructor(n,r,i){this.Prefix=n,this.Key=Object.getOwnPropertyNames(r),this.Tag=Object.getOwnPropertyNames(i)}}var Ib;(function(e){e[e.error=0]="error",e[e.warning=1]="warning",e[e.info=2]="info",e[e.success=3]="success",e[e.message=4]="message",e[e.close=5]="close",e[e["form-description"]=6]="form-description",e[e.of=7]="of",e[e.characters=8]="characters",e[e.new=9]="new",e[e["no-entries"]=10]="no-entries",e[e["change-order"]=11]="change-order",e[e["action-running"]=12]="action-running",e[e["action-done"]=13]="action-done",e[e["page-first"]=14]="page-first",e[e["page-back"]=15]="page-back",e[e["page-next"]=16]="page-next",e[e["page-last"]=17]="page-last",e[e["entries-per-site"]=18]="entries-per-site",e[e["page-current"]=19]="page-current",e[e["page-selected"]=20]="page-selected",e[e["page-per-site"]=21]="page-per-site",e[e["logo-description"]=22]="logo-description",e[e["open-link-in-tab"]=23]="open-link-in-tab",e[e["kolibri-logo"]=24]="kolibri-logo"})(Ib||(Ib={}));var Ub;(function(e){e[e.abbr=0]="abbr",e[e.accordion=1]="accordion",e[e.alert=2]="alert",e[e.avatar=3]="avatar",e[e.badge=4]="badge",e[e.breadcrumb=5]="breadcrumb",e[e.button=6]="button",e[e["button-link"]=7]="button-link",e[e.card=8]="card",e[e.combobox=9]="combobox",e[e.details=10]="details",e[e.drawer=11]="drawer",e[e.form=12]="form",e[e.heading=13]="heading",e[e.icon=14]="icon",e[e.image=15]="image",e[e["input-checkbox"]=16]="input-checkbox",e[e["input-color"]=17]="input-color",e[e["input-date"]=18]="input-date",e[e["input-email"]=19]="input-email",e[e["input-file"]=20]="input-file",e[e["input-number"]=21]="input-number",e[e["input-password"]=22]="input-password",e[e["input-radio"]=23]="input-radio",e[e["input-range"]=24]="input-range",e[e["input-text"]=25]="input-text",e[e.kolibri=26]="kolibri",e[e.link=27]="link",e[e["link-button"]=28]="link-button",e[e.logo=29]="logo",e[e.modal=30]="modal",e[e.nav=31]="nav",e[e.pagination=32]="pagination",e[e["popover-button"]=33]="popover-button",e[e.progress=34]="progress",e[e.quote=35]="quote",e[e.select=36]="select",e[e["single-select"]=37]="single-select",e[e["skip-nav"]=38]="skip-nav",e[e.spin=39]="spin",e[e["split-button"]=40]="split-button",e[e.symbol=41]="symbol",e[e.table=42]="table",e[e["table-stateful"]=43]="table-stateful",e[e["table-stateless"]=44]="table-stateless",e[e.tabs=45]="tabs",e[e.textarea=46]="textarea",e[e["toast-container"]=47]="toast-container",e[e.toolbar=48]="toolbar",e[e.tooltip=49]="tooltip",e[e.tree=50]="tree",e[e["tree-item"]=51]="tree-item"})(Ub||(Ub={}));const Fb=["development","production","test"];let Hb="production";const Dj=e=>{try{if(Fb.includes(e))Hb=e;else throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${Fb.join(", ")}.`)}catch{Hb="production"}},Mj=()=>{try{const e=typeof process<"u"&&Mb?"production":void 0;if(e&&Fb.includes(e))return e}catch{}return"production"};Dj(Mj());const Ij=()=>Hb==="development",Uj="color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000",vl=e=>Array.isArray(e)?e:[e],d1=e=>`%c${e}`,Fj=(e,n)=>typeof n=="string"&&n.length>0?`${d1(e)} | ${n}`:d1(e),gl=(e,n)=>[Fj(e,n?.classifier),`${Uj};${n?.overwriteStyle||""}`],$i=e=>Ij()||e===!0;class Hj{constructor(n){this.label=n}debug(n,r){$i(r?.forceLog)&&console.debug(...gl(this.label,r),...vl(n))}info(n,r){$i(r?.forceLog)&&console.info(...gl(this.label,r),...vl(n))}trace(n,r){$i(r?.forceLog)&&console.trace(...gl(this.label,r),...vl(n))}warn(n,r){$i(r?.forceLog)&&console.warn(...gl(this.label,r),...vl(n))}error(n,r){console.error(...gl(this.label,r),...vl(n))}throw(n,r){if($i(r?.forceLog))throw new Error(...gl(this.label,r),...vl(n))}}const Vj=new Hj("KoliBri"),u1=new Set,Kj=(e,n)=>{u1.has(e)===!1&&(u1.add(e),Vj.debug([e].concat([]),{classifier:"💻 dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))};Kj("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");var Ur={exports:{}},f1;function qj(){if(f1)return Ur.exports;f1=1,Ur.exports=e,Ur.exports.arr=e,Ur.exports.obj=n,Ur.exports.css=r,Ur.exports.hex=i,Ur.exports.num=c;function e(y){var w=d(y);return w.length==3?w.concat(255):(w[3]=Math.round(w[3]),w)}function n(y){var w=d(y);return{r:w[0],g:w[1],b:w[2],a:w.length==3?255:Math.round(w[3])}}function r(y){var w=d(y);return w.length==3&&w.push(255),w[3]==255?"rgb("+w[0]+", "+w[1]+", "+w[2]+")":w[3]==0?"rgba("+w[0]+", "+w[1]+", "+w[2]+", 0)":"rgba("+w[0]+", "+w[1]+", "+w[2]+", "+String(w[3]/255).substr(1)+")"}function i(y){var q=d(y);q.length==3&&q.push(255);var w=q[3]==255,N=u(q[0]),D=u(q[1]),H=u(q[2]),q=u(Math.round(q[3])),oe=m(N,D,H,q);return w?oe?"#"+N.charAt(0)+D.charAt(0)+H.charAt(0):"#"+N+D+H:oe?"#"+N.charAt(0)+D.charAt(0)+H.charAt(0)+q.charAt(0):"#"+N+D+H+q}function c(y){var w=d(y);return w.length==3?w.push(255):w[3]=Math.round(w[3]),(w[3]<<24>>>0|w[0]<<16|w[1]<<8|w[2])>>>0}function d(y){return typeof y=="string"?(y=y.toLowerCase(),h(y)||g(y)||v(y)||E(y)||L(y)||[0,0,0,255]):z(y)||$(y)||j(y)||[0,0,0,255]}function u(y){var w=y.toString(16);return w.length==1?"0"+w:w}function m(y,w,N,D){var H=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return H.indexOf(y)!=-1&&H.indexOf(w)!=-1&&H.indexOf(N)!=-1&&H.indexOf(D)!=-1}function h(y){if(y=="red")return[255,0,0];if(y=="green")return[0,255,0];if(y=="blue")return[0,0,255];if(y=="black")return[0,0,0];if(y=="white")return[255,255,255];if(y=="cyan")return[0,255,255];if(y=="gray")return[128,128,128];if(y=="grey")return[128,128,128];if(y=="magenta")return[255,0,255];if(y=="pink")return[255,0,255];if(y=="yellow")return[255,255,0]}function p(y){return y.length==1?parseInt(y+y,16):parseInt(y,16)}function g(y){var w=y.replace(/^#/,""),N=w.length;if(N==3||N==4){var D=p(w[0]),H=p(w[1]),q=p(w[2]),oe=N==3?255:p(w[3]);return isNaN(D)||isNaN(H)||isNaN(q)||isNaN(oe)?void 0:[D,H,q,oe]}}function v(y){var w=y.replace(/^#/,""),N=w.length;if(N==6||N==8){var D=p(w.slice(0,2)),H=p(w.slice(2,4)),q=p(w.slice(4,6)),oe=N==6?255:p(w.slice(6,8));return isNaN(D)||isNaN(H)||isNaN(q)||isNaN(oe)?void 0:[D,H,q,oe]}}function _(y,w){return typeof y!="number"||w===!0&&Math.floor(y)!==y?-1:y>=0&&y<=255?y:-1}function z(y){if(Object.prototype.toString.call(y)==="[object Object]"&&Object.getPrototypeOf(y)===Object.getPrototypeOf({})){var w=_(y.r!=null?y.r:y.red!=null?y.red:0,!0),N=_(y.g!=null?y.g:y.green!=null?y.green:0,!0),D=_(y.b!=null?y.b:y.blue!=null?y.blue:0,!0),H=_(y.a!=null?y.a:y.alpha!=null?y.alpha:255,!0);if(w!=-1&&N!=-1&&D!=-1&&H!=-1)return[w,N,D,H]}}function $(y){if(Array.isArray(y)&&(y.length==3||y.length==4)){var w=_(y[0],!0),N=_(y[1],!0),D=_(y[2],!0),H=_(y[3]!=null?y[3]:255,!0);if(w!=-1&&N!=-1&&D!=-1&&H!=-1)return[w,N,D,H]}}function j(y){if(typeof y=="number"&&Math.floor(y)==y&&y<=4294967295&&y>=0){var w=y>>24&255,N=y>>16&255,D=y>>8&255,H=y&255;return[N,D,H,w]}}function E(y){if(y.substr(0,4)=="rgb("){y=y.match(/^rgb\(([^)]+)\)/)[1];var w=y.split(/ *, */).map(Number),N=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0);if(N!=-1&&D!=-1&&H!=-1)return[N,D,H,255]}}function L(y){if(y.substr(0,5)=="rgba("){y=y.match(/^rgba\(([^)]+)\)/)[1];var w=y.split(/ *, */).map(Number),N=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0),q=_(w[3]*255);if(N!=-1&&D!=-1&&H!=-1&&q!=-1)return[N,D,H,q]}}return Ur.exports}qj();var ob={},b1;function Zj(){return b1||(b1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelectorAll=void 0;const n=(i,c)=>{c.forEach(d=>{i.has(d)===!1&&i.add(d)})},r=(i,c=document)=>{if(c instanceof Document||c instanceof HTMLElement||c instanceof ShadowRoot){const d=new Set;n(d,c.querySelectorAll(i));const u=c.querySelectorAll('[class*="hydrated"]');for(let m=0;m<u.length;m++){const h=u[m].shadowRoot;typeof h=="object"&&h!==null?n(d,(0,e.querySelectorAll)(i,h)):n(d,(0,e.querySelectorAll)(i,u[m]))}return Array.from(d)}else throw new Error("The parameter document for the method querySelectorAll is not type of Document, HTMLElement or ShadowRoot.")};e.querySelectorAll=r})(ob)),ob}Zj();var nb={},m1;function Pj(){return m1||(m1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelector=void 0;const n=(r,i=document)=>{if(i instanceof Document||i instanceof HTMLElement||i instanceof ShadowRoot){let c=i.querySelector(r);if(c===null){const d=i.querySelectorAll('[class*="hydrated"]');for(let u=0;u<d.length;u++){const m=d[u].shadowRoot;if(typeof m=="object"&&m!==null?c=(0,e.querySelector)(r,m):c=(0,e.querySelector)(r,d[u]),c!==null)break}}return c}else throw new Error("The parameter document for the method querySelector is not type of Document, HTMLElement or ShadowRoot.")};e.querySelector=n})(nb)),nb}Pj();new Event("StateChange");var tb,h1;function Gj(){return h1||(h1=1,tb=function(n){return function(r,i){if(!r)return n;var c;typeof r=="string"?c=r:i=r;var d=n;return c&&(d+="__"+c),d+(i?Object.keys(i).reduce(function(u,m){var h=i[m];return h&&(u+=" "+(typeof h=="boolean"?d+"--"+m:d+"--"+m+"_"+h)),u},""):"")}}),tb}var Yj=Gj(),Jj=vj(Yj);function Jy(){const e=new Map,n=(r,i,c)=>{try{return e.get(r)(i,c)}catch{return e.set(r,Jj(r)).get(r)(i,c)}};return n.forBlock=r=>{const i=(c,d)=>n(r,c,d);return i.forElement=c=>d=>n(r,c,d),i},n}const Xy=Jy();Xy("kol-icon");Xy("kol-icon","icon");const Sm=Jy();Sm("kol-alert","closer")+"";Sm("kol-alert","content");Sm("kol-alert","icon");var p1;(function(e){e.blur="kolBlur",e.change="kolChange",e.changePage="kolChangePage",e.changePageSize="kolChangePageSize",e.click="kolClick",e.close="kolClose",e.create="kolCreate",e.focus="kolFocus",e.input="kolInput",e.keydown="kolKeydown",e.mousedown="kolMousedown",e.reset="kolReset",e.select="kolSelect",e.selectionChange="kolSelectionChange",e.settingsChange="settingsChange",e.sort="kolSort",e.submit="kolSubmit",e.toggle="kolToggle"})(p1||(p1={}));const jm=new Bj("kol",Ib,Ub);var gn;(function(e){e["Die Bundesregierung"]="BReg",e["Bundesministerium der Finanzen"]="BMF",e["Bundesministerium des Innern, für Bau und Heimat"]="BMI",e["Auswärtiges Amt"]="AA",e["Bundesministerium für Wirtschaft und Energie"]="BMWi",e["Bundesministerium der Justiz und für Verbraucherschutz"]="BMJV",e["Bundesministerium für Arbeit und Soziales"]="BMAS",e["Bundesministerium der Verteidigung"]="BMVg",e["Bundesministerium für Ernährung und Landwirtschaft"]="BMEL",e["Bundesministerium für Familie, Senioren, Frauen und Jugend"]="BMFSFJ",e["Bundesministerium für Gesundheit"]="BMG",e["Bundesministerium für Verkehr und digitale Infrastruktur"]="BMVI",e["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"]="BMU",e["Bundesministerium für Bildung und Forschung"]="BMBF",e["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"]="BMZ"})(gn||(gn={}));var qe;(function(e){e["Beschaffungsamt des Bundesministeriums des Innern"]="BeschA",e["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"]="BAAINBw",e["Bundesamt für äußere Restitutionen"]="BAR",e["Bundesamt für Bauwesen und Raumordnung"]="BBR",e["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"]="BBK",e["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"]="BAFzA",e["Bundesamt für Güterverkehr"]="BAG",e["Bundesamt für Justiz"]="BfJ",e["Bundesamt für Kartographie und Geodäsie"]="BKG",e["Bundesamt für kerntechnische Entsorgungssicherheit"]="BASE",e["Bundesamt für Migration und Flüchtlinge"]="BAMF",e["Bundesamt für Sicherheit in der Informationstechnik"]="BSI",e["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"]="BVL",e["Bundesamt für Verfassungsschutz"]="BfV",e["Bundesamt für Wirtschaft und Ausfuhrkontrolle"]="BAFA",e["Bundesamt für zentrale Dienste und offene Vermögensfragen"]="BADV",e["Bundesanstalt für Verwaltungsdienstleistungen"]="BAV",e.Bundesarchiv="BArch",e["Bundesaufsichtsamt für Flugsicherung"]="BAF",e.Bundesausgleichsamt="BAA",e.Bundeskartellamt="BKartA",e.Bundeskriminalamt="BKA",e.Bundesnachrichtendienst="BND",e["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"]="BNetzA",e.Bundespolizeipräsidium="BPOLP",e["Bundesprüfstelle für jugendgefährdende Medien"]="BPjM",e.Bundessortenamt="BSA",e.Bundessprachenamt="BSprA",e["Bundesamt für Soziale Sicherung"]="BAS",e.Bundesverwaltungsamt="BVA",e["Bundeszentralamt für Steuern"]="BZSt",e["Deutsches Patent- und Markenamt"]="DPMA",e["Eisenbahn-Bundesamt"]="EBA",e.Generalzolldirektion="GZD",e["Militärischer Abschirmdienst"]="MAD",e["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"]="ZITiS"})(qe||(qe={}));var br;(function(e){e["Informationstechnikzentrum Bund"]="ITZBund",e["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"]="BDBOS",e["Bundesanstalt für Landwirtschaft und Ernährung"]="BLE",e["Bundesanstalt Technisches Hilfswerk"]="THW",e["Bundesinstitut für Arzneimittel und Medizinprodukte"]="BfArM",e["Bundesinstitut für Bevölkerungsforschung"]="BiB",e["Bundesinstitut für Sportwissenschaft"]="BISp"})(br||(br={}));const we=new Map;we.set(gn["Die Bundesregierung"],["Die","Bundesregierung"]);we.set(gn["Bundesministerium der Finanzen"],["Bundesministerium","der Finanzen"]);we.set(gn["Bundesministerium des Innern, für Bau und Heimat"],["Bundesministerium","des Inneren, für Bau","und Heimat"]);we.set(gn["Auswärtiges Amt"],["Auswärtiges Amt"]);we.set(gn["Bundesministerium für Wirtschaft und Energie"],["Bundesministerium","für Wirtschaft","und Energie"]);we.set(gn["Bundesministerium der Justiz und für Verbraucherschutz"],["Bundesministerium","der Justiz und","für Verbraucherschutz"]);we.set(gn["Bundesministerium für Arbeit und Soziales"],["Bundesministerium","für Arbeit und Soziales"]);we.set(gn["Bundesministerium der Verteidigung"],["Bundesministerium","der Verteidigung"]);we.set(gn["Bundesministerium für Bildung und Forschung"],["Bundesministerium","für Bildung","und Forschung"]);we.set(gn["Bundesministerium für Ernährung und Landwirtschaft"],["Bundesministerium","für Ernährung","und Landwirtschaft"]);we.set(gn["Bundesministerium für Familie, Senioren, Frauen und Jugend"],["Bundesministerium","für Familie, Senioren, Frauen","und Jugend"]);we.set(gn["Bundesministerium für Gesundheit"],["Bundesministerium","für Gesundheit"]);we.set(gn["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"],["Bundesministerium","für Umwelt, Naturschutz","und nukleare Sicherheit"]);we.set(gn["Bundesministerium für Verkehr und digitale Infrastruktur"],["Bundesministerium","für Verkehr und","digitale Infrastruktur"]);we.set(gn["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"],["Bundesministerium","für wirtschaftliche Zusammenarbeit","und Entwicklung"]);we.set(qe["Beschaffungsamt des Bundesministeriums des Innern"],["Beschaffungsamt","des Bundesministeriums","des Innern"]);we.set(qe["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"],[]);we.set(qe["Bundesamt für äußere Restitutionen"],[]);we.set(qe["Bundesamt für Bauwesen und Raumordnung"],[]);we.set(qe["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"],["Bundesamt","für Bevölkerungsschutz","und Katastrophenhilfe"]);we.set(qe["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"],["Bundesamt","für Familie und","zivilgesellschaftliche Aufgaben"]);we.set(qe["Bundesamt für Güterverkehr"],["Bundesamt","für Güterverkehr"]);we.set(qe["Bundesamt für Justiz"],["Bundesamt für","Justiz"]);we.set(qe["Bundesamt für Kartographie und Geodäsie"],["Bundesamt für","Kartographie und Geodäsie"]);we.set(qe["Bundesamt für kerntechnische Entsorgungssicherheit"],["Bundesamt für","kerntechnische","Entsorgungssicherheit"]);we.set(qe["Bundesamt für Migration und Flüchtlinge"],["Bundesamt","für Migration","und Flüchtlinge"]);we.set(qe["Bundesamt für Sicherheit in der Informationstechnik"],["Bundesamt","für Sicherheit in der","Informationstechnik"]);we.set(qe["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"],["Bundesamt für","Verbraucherschutz und","Lebensmittelsicherheit"]);we.set(qe["Bundesamt für Verfassungsschutz"],["Bundesamt für","Verfassungsschutz"]);we.set(qe["Bundesamt für Wirtschaft und Ausfuhrkontrolle"],["Bundesamt","für Wirtschaft","Ausfuhrkontrolle"]);we.set(qe["Bundesamt für zentrale Dienste und offene Vermögensfragen"],["Bundesamt","für zentrale Dienste und","offene Vermögensfragen"]);we.set(qe["Bundesanstalt für Verwaltungsdienstleistungen"],["Bundesanstalt","für Verwaltungsdienstleistungen"]);we.set(qe.Bundesarchiv,["Das","Bundesarchiv"]);we.set(qe["Bundesaufsichtsamt für Flugsicherung"],["Bundesaufsichtsamt","für Flugsicherung"]);we.set(qe.Bundesausgleichsamt,["Bundesausgleichsamt"]);we.set(qe.Bundeskartellamt,["Bundeskartellamt"]);we.set(qe.Bundeskriminalamt,["Bundeskriminalamt"]);we.set(qe.Bundesnachrichtendienst,["Bundesnachrichtendienst"]);we.set(qe["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"],["Bundesnetzagentur"]);we.set(qe.Bundespolizeipräsidium,["Bundespolizeipräsidium"]);we.set(qe["Bundesprüfstelle für jugendgefährdende Medien"],["Bundesprüfstelle","für jugendgefährdende","Medien"]);we.set(qe.Bundessortenamt,["Bundessortenamt"]);we.set(qe.Bundessprachenamt,["Bundessprachenamt"]);we.set(qe["Bundesamt für Soziale Sicherung"],["Bundesamt","für Soziale Sicherung"]);we.set(qe.Bundesverwaltungsamt,["Bundesverwaltungsamt"]);we.set(qe["Bundeszentralamt für Steuern"],["Bundeszentralamt","für Steuern"]);we.set(qe["Deutsches Patent- und Markenamt"],["Deutsches","Patent- und Markenamt"]);we.set(qe["Eisenbahn-Bundesamt"],["Eisenbahn-Bundesamt"]);we.set(qe.Generalzolldirektion,["Generalzolldirektion"]);we.set(qe["Militärischer Abschirmdienst"],["Bundesamt für den","Militärischen Abschirmdienst"]);we.set(qe["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"],["Zentrale Stelle","für Informationstechnik","im Sicherheitsbereich"]);we.set(br["Informationstechnikzentrum Bund"],["Informations","Technik","Zentrum Bund"]);we.set(br["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"],["Bundesanstalt","für den Digitalfunk der Behörden und","Organisationen mit Sicherheitsaufgaben"]);we.set(br["Bundesanstalt für Landwirtschaft und Ernährung"],["Bundesanstalt für","Landwirtschaft und Ernährung"]);we.set(br["Bundesanstalt Technisches Hilfswerk"],["Bundesanstalt","Technisches Hilfswerk"]);we.set(br["Bundesinstitut für Arzneimittel und Medizinprodukte"],["Bundesinstitut","für Arzneimittel","und Medizinprodukte"]);we.set(br["Bundesinstitut für Bevölkerungsforschung"],["Bundesinstitut","für Bevölkerungsforschung"]);we.set(br["Bundesinstitut für Sportwissenschaft"],["Bundesinstitut","für Sportwissenschaft"]);var Xj=`/* forward the rem function */
|
|
31
|
+
`);const u=this["s-cr"].parentElement;return(u.__childNodes?u.childNodes:RS(u.childNodes)).forEach(h=>{d===_m(h)&&c.push(h)}),r?c.filter(h=>h.nodeType===1):c}).bind(e);e.assignedElements=n(!0),e.assignedNodes=n(!1)}function Kr(e,n){if("__"+n in e){const r=e["__"+n];return typeof r!="function"?r:r.bind(e)}else return typeof e[n]!="function"?e[n]:e[n].bind(e)}var Bt=(e,n="")=>()=>{},MS=(e,n)=>()=>{},Sl=new WeakMap,By=(e,n,r)=>{let i=Ks.get(e);vm&&r?(i=i||new CSSStyleSheet,typeof i=="string"?i=n:i.replaceSync(n)):i=n,Ks.set(e,i)},Dy=(e,n,r)=>{var i;const c=xm(n,r),d=Ks.get(c);if(!no.document)return c;if(e=e.nodeType===11?e:no.document,d)if(typeof d=="string"){e=e.head||e;let u=Sl.get(e),m;if(u||Sl.set(e,u=new Set),!u.has(c)){if(e.host&&(m=e.querySelector(`[${Ab}="${c}"]`)))m.innerHTML=d;else{m=no.document.createElement("style"),m.innerHTML=d;const h=(i=mo.$nonce$)!=null?i:Ly(no.document);if(h!=null&&m.setAttribute("nonce",h),!(n.$flags$&1))if(e.nodeName==="HEAD"){const p=e.querySelectorAll("link[rel=preconnect]"),g=p.length>0?p[p.length-1].nextSibling:e.querySelector("style");e.insertBefore(m,g?.parentNode===e?g:null)}else if("host"in e)if(vm){const p=new CSSStyleSheet;p.replaceSync(d),Cb?e.adoptedStyleSheets.unshift(p):e.adoptedStyleSheets=[p,...e.adoptedStyleSheets]}else{const p=e.querySelector("style");p?p.innerHTML=d+p.innerHTML:e.prepend(m)}else e.append(m);n.$flags$&1&&e.insertBefore(m,null)}n.$flags$&4&&(m.innerHTML+=Cy),u&&u.add(c)}}else e.adoptedStyleSheets.includes(d)||(Cb?e.adoptedStyleSheets.push(d):e.adoptedStyleSheets=[...e.adoptedStyleSheets,d]);return c},IS=e=>{const n=e.$cmpMeta$,r=e.$hostElement$,i=n.$flags$,c=Bt("attachStyles",n.$tagName$),d=Dy(r.shadowRoot?r.shadowRoot:r.getRootNode(),n,e.$modeName$);i&10&&(r["s-sc"]=d,r.classList.add(d+"-h")),c()},xm=(e,n)=>"sc-"+(n&&e.$flags$&32?e.$tagName$+"-"+n:e.$tagName$),US=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),FS=()=>{if(!no.document)return;const e=no.document.querySelectorAll(`[${Ab}]`);let n=0;for(;n<e.length;n++)By(e[n].getAttribute(Ab),US(e[n].innerHTML),!0)},My=(e,n,...r)=>{let i=null,c=null,d=null,u=!1,m=!1;const h=[],p=v=>{for(let _=0;_<v.length;_++)i=v[_],Array.isArray(i)?p(i):i!=null&&typeof i!="boolean"&&((u=typeof e!="function"&&!gm(i))&&(i=String(i)),u&&m?h[h.length-1].$text$+=i:h.push(u?El(null,i):i),m=u)};if(p(r),n){n.key&&(c=n.key),n.name&&(d=n.name);{const v=n.className||n.class;v&&(n.class=typeof v!="object"?v:Object.keys(v).filter(_=>v[_]).join(" "))}}if(typeof e=="function")return e(n===null?{}:n,h,KS);const g=El(e,null);return g.$attrs$=n,h.length>0&&(g.$children$=h),g.$key$=c,g.$name$=d,g},El=(e,n)=>{const r={$flags$:0,$tag$:e,$text$:n,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r.$name$=null,r},HS={},VS=e=>e&&e.$tag$===HS,KS={forEach:(e,n)=>e.map(X_).forEach(n),map:(e,n)=>e.map(X_).map(n).map(qS)},X_=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),qS=e=>{if(typeof e.vtag=="function"){const r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),My(e.vtag,r,...e.vchildren||[])}const n=El(e.vtag,e.vtext);return n.$attrs$=e.vattrs,n.$children$=e.vchildren,n.$key$=e.vkey,n.$name$=e.vname,n},ZS=(e,n,r,i)=>{var c,d;const u=Bt("hydrateClient",n),m=e.shadowRoot,h=[],p=[],g=[],v=m?[]:null,_=El(n,null);_.$elm$=e,no.document&&(!mo.$orgLocNodes$||!mo.$orgLocNodes$.size)&&Ob(no.document.body,mo.$orgLocNodes$=new Map),e[Ji]=r,e.removeAttribute(Ji),i.$vnode$=Lb(_,h,p,v,e,e,r,g);let z=0;const $=h.length;let j;for(z;z<$;z++){j=h[z];const q=j.$hostId$+"."+j.$nodeId$,oe=mo.$orgLocNodes$.get(q),de=j.$elm$;if(!m)de["s-hn"]=n.toUpperCase(),j.$tag$==="slot"&&(de["s-cr"]=e["s-cr"]);else if((c=j.$tag$)!=null&&c.toString().includes("-")&&j.$tag$!=="slot-fb"&&!j.$elm$.shadowRoot){const Ke=it(j.$elm$);if(Ke){const ae=xm(Ke.$cmpMeta$,j.$elm$.getAttribute("s-mode")),ee=no.document.querySelector(`style[sty-id="${ae}"]`);ee&&e.shadowRoot.append(ee.cloneNode(!0))}}j.$tag$==="slot"&&(j.$name$=j.$elm$["s-sn"]||j.$elm$.name||null,j.$children$?(j.$flags$|=2,j.$elm$.childNodes.length||j.$children$.forEach(Ke=>{j.$elm$.appendChild(Ke.$elm$)})):j.$flags$|=1),oe&&oe.isConnected&&(oe.parentElement.shadowRoot&&oe["s-en"]===""&&oe.parentNode.insertBefore(de,oe.nextSibling),oe.parentNode.removeChild(oe),m||(de["s-oo"]=parseInt(j.$nodeId$))),oe&&!oe["s-id"]&&mo.$orgLocNodes$.delete(q)}const E=[],L=g.length;let y=0,w,N,D,H;for(y;y<L;y++)if(w=g[y],!(!w||!w.length))for(D=w.length,N=0,N;N<D;N++){if(H=w[N],E[H.hostId]||(E[H.hostId]=mo.$orgLocNodes$.get(H.hostId)),!E[H.hostId])continue;const q=E[H.hostId];q.shadowRoot&&H.node.parentElement!==q&&q.appendChild(H.node),(!q.shadowRoot||!m)&&(H.slot["s-cr"]||(H.slot["s-cr"]=q["s-cr"],!H.slot["s-cr"]&&q.shadowRoot?H.slot["s-cr"]=q:H.slot["s-cr"]=(q.__childNodes||q.childNodes)[0]),DS(H.node,H.slot,!1,H.node["s-oo"]),(d=H.node.parentElement)!=null&&d.shadowRoot&&H.node.getAttribute&&H.node.getAttribute("slot")&&H.node.removeAttribute("slot"))}if(m){let q=0;const oe=v.length;if(oe){for(q;q<oe;q++){const de=v[q];de&&m.appendChild(de)}Array.from(e.childNodes).forEach(de=>{typeof de["s-en"]!="string"&&typeof de["s-sn"]!="string"&&(de.nodeType===1&&de.slot&&de.hidden?de.removeAttribute("hidden"):(de.nodeType===8&&!de.nodeValue||de.nodeType===3&&!de.wholeText.trim())&&de.parentNode.removeChild(de))})}}i.$hostElement$=e,u()},Lb=(e,n,r,i,c,d,u,m=[])=>{let h,p,g,v;if(d.nodeType===1){if(h=d.getAttribute(G_),h&&(p=h.split("."),p[0]===u||p[0]==="0")){g=W_({$flags$:0,$hostId$:p[0],$nodeId$:p[1],$depth$:p[2],$index$:p[3],$tag$:d.tagName.toLowerCase(),$elm$:d,$attrs$:{class:d.className||""}}),n.push(g),d.removeAttribute(G_),e.$children$||(e.$children$=[]);const z=g.$elm$.getAttribute("s-sn");typeof z=="string"&&(g.$tag$==="slot-fb"&&Q_(z,p[2],g,d,e,n,r,i,m),g.$elm$["s-sn"]=z,g.$elm$.removeAttribute("s-sn")),g.$index$!==void 0&&(e.$children$[g.$index$]=g),e=g,i&&g.$depth$==="0"&&(i[g.$index$]=g.$elm$)}if(d.shadowRoot)for(v=d.shadowRoot.childNodes.length-1;v>=0;v--)Lb(e,n,r,i,c,d.shadowRoot.childNodes[v],u,m);const _=d.__childNodes||d.childNodes;for(v=_.length-1;v>=0;v--)Lb(e,n,r,i,c,_[v],u,m)}else if(d.nodeType===8){if(p=d.nodeValue.split("."),p[1]===u||p[1]==="0"){if(h=p[0],g=W_({$hostId$:p[1],$nodeId$:p[2],$depth$:p[3],$index$:p[4]||"0",$elm$:d,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null}),h===yS)g.$elm$=o1(d,3),g.$elm$&&g.$elm$.nodeType===3&&(g.$text$=g.$elm$.textContent,n.push(g),d.remove(),u===g.$hostId$&&(e.$children$||(e.$children$=[]),e.$children$[g.$index$]=g),i&&g.$depth$==="0"&&(i[g.$index$]=g.$elm$));else if(h===wS)g.$elm$=o1(d,8),g.$elm$&&g.$elm$.nodeType===8&&(n.push(g),d.remove());else if(g.$hostId$===u)if(h===Tb){const _=d["s-sn"]=p[5]||"";Q_(_,p[2],g,d,e,n,r,i,m)}else h===_S&&(i?d.remove():(c["s-cr"]=d,d["s-cn"]=!0))}}else if(e&&e.$tag$==="style"){const _=El(null,d.textContent);_.$elm$=d,_.$index$="0",e.$children$=[_]}else d.nodeType===3&&!d.wholeText.trim()&&!d["s-nr"]&&d.remove();return e},Ob=(e,n)=>{if(e.nodeType===1){const r=e[Ji]||e.getAttribute(Ji);r&&n.set(r,e);let i=0;if(e.shadowRoot)for(;i<e.shadowRoot.childNodes.length;i++)Ob(e.shadowRoot.childNodes[i],n);const c=e.__childNodes||e.childNodes;for(i=0;i<c.length;i++)Ob(c[i],n)}else if(e.nodeType===8){const r=e.nodeValue.split(".");r[0]===xS&&(n.set(r[1]+"."+r[2],e),e.nodeValue="",e["s-en"]=r[3])}},W_=e=>({...{$flags$:0,$hostId$:null,$nodeId$:null,$depth$:null,$index$:"0",$elm$:null,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},...e});function Q_(e,n,r,i,c,d,u,m,h){i["s-sr"]=!0,r.$name$=e||null,r.$tag$="slot";const p=c?.$elm$?c.$elm$["s-id"]||c.$elm$.getAttribute("s-id"):"";if(m&&no.document){const g=r.$elm$=no.document.createElement(r.$tag$);r.$name$&&r.$elm$.setAttribute("name",e),c.$elm$.shadowRoot&&p&&p!==r.$hostId$?Kr(c.$elm$,"insertBefore")(g,Kr(c.$elm$,"children")[0]):Kr(Kr(i,"parentNode"),"insertBefore")(g,i),e1(h,n,e,i,r.$hostId$),i.remove(),r.$depth$==="0"&&(m[r.$index$]=r.$elm$)}else{const g=r.$elm$,v=p&&p!==r.$hostId$&&c.$elm$.shadowRoot;e1(h,n,e,i,v?p:r.$hostId$),Ry(i),v&&c.$elm$.insertBefore(g,c.$elm$.children[0])}d.push(r),u.push(r),c.$children$||(c.$children$=[]),c.$children$[r.$index$]=r}var e1=(e,n,r,i,c)=>{var d,u;let m=i.nextSibling;if(e[n]=e[n]||[],!(!m||(d=m.nodeValue)!=null&&d.startsWith(Tb+".")))do m&&((m.getAttribute&&m.getAttribute("slot")||m["s-sn"])===r||r===""&&!m["s-sn"]&&(!m.getAttribute||!m.getAttribute("slot"))&&(m.nodeType===8||m.nodeType===3))&&(m["s-sn"]=r,e[n].push({slot:i,node:m,hostId:c})),m=m?.nextSibling;while(m&&!((u=m.nodeValue)!=null&&u.startsWith(Tb+".")))},o1=(e,n)=>{let r=e;do r=r.nextSibling;while(r&&(r.nodeType!==n||!r.nodeValue));return r},ym=e=>{const n=TS(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${n}))(${n}\\b)`,"g")};ym("::slotted");ym(":host");ym(":host-context");var PS=e=>Ay.map(n=>n(e)).find(n=>!!n),GS=e=>Ay.push(e),$b=(e,n,r)=>typeof e=="string"&&e.startsWith(jb)?(e=$S(e),e):e!=null&&!gm(e)?n&4?e==="false"?!1:e===""||!!e:n&2?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:n&1?String(e):e:e,xD=e=>{var n;return(n=it(e))==null?void 0:n.$hostElement$},YS=(e,n,r)=>{const i=mo.ce(n,r);return e.dispatchEvent(i),i},n1=(e,n,r,i,c,d,u)=>{if(r===i)return;let m=P_(e,n),h=n.toLowerCase();if(n==="class"){const p=e.classList,g=t1(r);let v=t1(i);if((e["s-si"]||e["s-sc"])&&u){const _=e["s-sc"]||e["s-si"];v.push(_),g.forEach(z=>{z.startsWith(_)&&v.push(z)}),v=[...new Set(v)].filter(z=>z),p.add(...v)}else p.remove(...g.filter(_=>_&&!v.includes(_))),p.add(...v.filter(_=>_&&!g.includes(_)))}else if(n==="style"){for(const p in r)(!i||i[p]==null)&&(p.includes("-")?e.style.removeProperty(p):e.style[p]="");for(const p in i)(!r||i[p]!==r[p])&&(p.includes("-")?e.style.setProperty(p,i[p]):e.style[p]=i[p])}else if(n!=="key")if(n==="ref")i&&i(e);else if(!m&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"?n=n.slice(3):P_(no,h)?n=h.slice(2):n=h[2]+n.slice(3),r||i){const p=n.endsWith(Iy);n=n.replace(XS,""),r&&mo.rel(e,n,r,p),i&&mo.ael(e,n,i,p)}}else{const p=gm(i);if((m||p&&i!==null)&&!c)try{if(e.tagName.includes("-"))e[n]!==i&&(e[n]=i);else{const v=i??"";n==="list"?m=!1:(r==null||e[n]!=v)&&(typeof e.__lookupSetter__(n)=="function"?e[n]=v:e.setAttribute(n,v))}}catch{}let g=!1;h!==(h=h.replace(/^xlink\:?/,""))&&(n=h,g=!0),i==null||i===!1?(i!==!1||e.getAttribute(n)==="")&&(g?e.removeAttributeNS(Y_,n):e.removeAttribute(n)):(!m||d&4||c)&&!p&&e.nodeType===1&&(i=i===!0?"":i,g?e.setAttributeNS(Y_,n,i):e.setAttribute(n,i))}},JS=/\s/,t1=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),!e||typeof e!="string"?[]:e.split(JS)),Iy="Capture",XS=new RegExp(Iy+"$"),Nb=(e,n,r,i)=>{const c=n.$elm$.nodeType===11&&n.$elm$.host?n.$elm$.host:n.$elm$,d=e&&e.$attrs$||{},u=n.$attrs$||{};for(const m of r1(Object.keys(d)))m in u||n1(c,m,d[m],void 0,r,n.$flags$,i);for(const m of r1(Object.keys(u)))n1(c,m,d[m],u[m],r,n.$flags$,i)};function r1(e){return e.includes("ref")?[...e.filter(n=>n!=="ref"),"ref"]:e}var Rb,cd,Bb=!1,qs=!1,wm=!1,qn=!1,Zs=(e,n,r)=>{var i;const c=n.$children$[r];let d=0,u,m,h;if(Bb||(wm=!0,c.$tag$==="slot"&&(c.$flags$|=c.$children$?2:1)),c.$text$!==null)u=c.$elm$=no.document.createTextNode(c.$text$);else if(c.$flags$&1)u=c.$elm$=no.document.createTextNode(""),Nb(null,c,qn);else{if(qn||(qn=c.$tag$==="svg"),!no.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(u=c.$elm$=no.document.createElementNS(qn?mS:hS,!Bb&&za.slotRelocation&&c.$flags$&2?"slot-fb":c.$tag$),qn&&c.$tag$==="foreignObject"&&(qn=!1),Nb(null,c,qn),c.$children$)for(d=0;d<c.$children$.length;++d)m=Zs(e,c,d),m&&u.appendChild(m);c.$tag$==="svg"?qn=!1:u.tagName==="foreignObject"&&(qn=!0)}return u["s-hn"]=cd,c.$flags$&3&&(u["s-sr"]=!0,u["s-cr"]=Rb,u["s-sn"]=c.$name$||"",u["s-rf"]=(i=c.$attrs$)==null?void 0:i.ref,Ry(u),h=e&&e.$children$&&e.$children$[r],h&&h.$tag$===c.$tag$&&e.$elm$&&Xi(e.$elm$,!1)),u},Xi=(e,n)=>{mo.$flags$|=1;const r=Array.from(e.__childNodes||e.childNodes);for(let i=r.length-1;i>=0;i--){const c=r[i];c["s-hn"]!==cd&&c["s-ol"]&&(Zr(Wi(c).parentNode,c,Wi(c)),c["s-ol"].remove(),c["s-ol"]=void 0,c["s-sh"]=void 0,wm=!0),n&&Xi(c,n)}mo.$flags$&=-2},Uy=(e,n,r,i,c,d)=>{let u=e["s-cr"]&&e["s-cr"].parentNode||e,m;for(u.shadowRoot&&u.tagName===cd&&(u=u.shadowRoot);c<=d;++c)i[c]&&(m=Zs(null,r,c),m&&(i[c].$elm$=m,Zr(u,m,Wi(n))))},Fy=(e,n,r)=>{for(let i=n;i<=r;++i){const c=e[i];if(c){const d=c.$elm$;Vy(c),d&&(qs=!0,d["s-ol"]?d["s-ol"].remove():Xi(d,!0),d.remove())}}},WS=(e,n,r,i,c=!1)=>{let d=0,u=0,m=0,h=0,p=n.length-1,g=n[0],v=n[p],_=i.length-1,z=i[0],$=i[_],j,E;for(;d<=p&&u<=_;)if(g==null)g=n[++d];else if(v==null)v=n[--p];else if(z==null)z=i[++u];else if($==null)$=i[--_];else if(xs(g,z,c))wl(g,z,c),g=n[++d],z=i[++u];else if(xs(v,$,c))wl(v,$,c),v=n[--p],$=i[--_];else if(xs(g,$,c))(g.$tag$==="slot"||$.$tag$==="slot")&&Xi(g.$elm$.parentNode,!1),wl(g,$,c),Zr(e,g.$elm$,v.$elm$.nextSibling),g=n[++d],$=i[--_];else if(xs(v,z,c))(g.$tag$==="slot"||$.$tag$==="slot")&&Xi(v.$elm$.parentNode,!1),wl(v,z,c),Zr(e,v.$elm$,g.$elm$),v=n[--p],z=i[++u];else{for(m=-1,h=d;h<=p;++h)if(n[h]&&n[h].$key$!==null&&n[h].$key$===z.$key$){m=h;break}m>=0?(E=n[m],E.$tag$!==z.$tag$?j=Zs(n&&n[u],r,m):(wl(E,z,c),n[m]=void 0,j=E.$elm$),z=i[++u]):(j=Zs(n&&n[u],r,u),z=i[++u]),j&&Zr(Wi(g.$elm$).parentNode,j,Wi(g.$elm$))}d>p?Uy(e,i[_+1]==null?null:i[_+1].$elm$,r,i,u,_):u>_&&Fy(n,d,p)},xs=(e,n,r=!1)=>e.$tag$===n.$tag$?e.$tag$==="slot"?e.$name$===n.$name$:r?(r&&!e.$key$&&n.$key$&&(e.$key$=n.$key$),!0):e.$key$===n.$key$:!1,Wi=e=>e&&e["s-ol"]||e,wl=(e,n,r=!1)=>{const i=n.$elm$=e.$elm$,c=e.$children$,d=n.$children$,u=n.$tag$,m=n.$text$;let h;m===null?(qn=u==="svg"?!0:u==="foreignObject"?!1:qn,Nb(e,n,qn,r),c!==null&&d!==null?WS(i,c,n,d,r):d!==null?(e.$text$!==null&&(i.textContent=""),Uy(i,null,n,d,0,d.length-1)):!r&&za.updatable&&c!==null?Fy(c,0,c.length-1):r&&za.updatable&&c!==null&&d===null&&(n.$children$=c),qn&&u==="svg"&&(qn=!1)):(h=i["s-cr"])?h.parentNode.textContent=m:e.$text$!==m&&(i.data=m)},rr=[],Hy=e=>{let n,r,i;const c=e.__childNodes||e.childNodes;for(const d of c){if(d["s-sr"]&&(n=d["s-cr"])&&n.parentNode){r=n.parentNode.__childNodes||n.parentNode.childNodes;const u=d["s-sn"];for(i=r.length-1;i>=0;i--)if(n=r[i],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==d["s-hn"])if(J_(n,u)){let m=rr.find(h=>h.$nodeToRelocate$===n);qs=!0,n["s-sn"]=n["s-sn"]||u,m?(m.$nodeToRelocate$["s-sh"]=d["s-hn"],m.$slotRefNode$=d):(n["s-sh"]=d["s-hn"],rr.push({$slotRefNode$:d,$nodeToRelocate$:n})),n["s-sr"]&&rr.map(h=>{J_(h.$nodeToRelocate$,n["s-sn"])&&(m=rr.find(p=>p.$nodeToRelocate$===n),m&&!h.$slotRefNode$&&(h.$slotRefNode$=m.$slotRefNode$))})}else rr.some(m=>m.$nodeToRelocate$===n)||rr.push({$nodeToRelocate$:n})}d.nodeType===1&&Hy(d)}},Vy=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Vy)},Zr=(e,n,r)=>e?.insertBefore(n,r),QS=(e,n,r=!1)=>{var i,c,d,u;const m=e.$hostElement$,h=e.$cmpMeta$,p=e.$vnode$||El(null,null),v=VS(n)?n:My(null,null,n);if(cd=m.tagName,h.$attrsToReflect$&&(v.$attrs$=v.$attrs$||{},h.$attrsToReflect$.forEach(([_,z])=>{v.$attrs$[z]=m[_]})),r&&v.$attrs$)for(const _ of Object.keys(v.$attrs$))m.hasAttribute(_)&&!["key","ref","style","class"].includes(_)&&(v.$attrs$[_]=m[_]);v.$tag$=null,v.$flags$|=4,e.$vnode$=v,v.$elm$=p.$elm$=m.shadowRoot||m,Bb=!!(h.$flags$&1)&&!(h.$flags$&128),Rb=m["s-cr"],qs=!1,wl(p,v,r);{if(mo.$flags$|=1,wm){Hy(v.$elm$);for(const _ of rr){const z=_.$nodeToRelocate$;if(!z["s-ol"]&&no.document){const $=no.document.createTextNode("");$["s-nr"]=z,Zr(z.parentNode,z["s-ol"]=$,z)}}for(const _ of rr){const z=_.$nodeToRelocate$,$=_.$slotRefNode$;if($){const j=$.parentNode;let E=$.nextSibling;{let w=(i=z["s-ol"])==null?void 0:i.previousSibling;for(;w;){let N=(c=w["s-nr"])!=null?c:null;if(N&&N["s-sn"]===z["s-sn"]&&j===(N.__parentNode||N.parentNode)){for(N=N.nextSibling;N===z||N?.["s-sr"];)N=N?.nextSibling;if(!N||!N["s-nr"]){E=N;break}}w=w.previousSibling}}const L=z.__parentNode||z.parentNode,y=z.__nextSibling||z.nextSibling;(!E&&j!==L||y!==E)&&z!==E&&(!z["s-hn"]&&z["s-ol"]&&(z["s-hn"]=z["s-ol"].parentNode.nodeName),Zr(j,z,E),z.nodeType===1&&z.tagName!=="SLOT-FB"&&(z.hidden=(d=z["s-ih"])!=null?d:!1)),z&&typeof $["s-rf"]=="function"&&$["s-rf"]($)}else z.nodeType===1&&(r&&(z["s-ih"]=(u=z.hidden)!=null?u:!1),z.hidden=!0)}}qs&&$y(v.$elm$),mo.$flags$&=-2,rr.length=0}Rb=void 0},Ky=(e,n)=>{if(n&&!e.$onRenderResolve$&&n["s-p"]){const r=n["s-p"].push(new Promise(i=>e.$onRenderResolve$=()=>{n["s-p"].splice(r-1,1),i()}))}},zm=(e,n)=>{if(e.$flags$&4){e.$flags$|=512;return}Ky(e,e.$ancestorComponent$);const r=()=>ej(e,n);if(n){queueMicrotask(()=>{r()});return}return r()},ej=(e,n)=>{const r=e.$hostElement$,i=Bt("scheduleUpdate",e.$cmpMeta$.$tagName$),c=e.$lazyInstance$;if(!c)throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let d;return n?(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([u,m])=>lr(c,u,m,r)),e.$queuedListeners$=void 0),e.$fetchedCbList$.length&&e.$fetchedCbList$.forEach(u=>u(r)),d=lr(c,"componentWillLoad",void 0,r)):d=lr(c,"componentWillUpdate",void 0,r),d=a1(d,()=>lr(c,"componentWillRender",void 0,r)),i(),a1(d,()=>nj(e,c,n))},a1=(e,n)=>oj(e)?e.then(n).catch(r=>{console.error(r),n()}):n(),oj=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",nj=async(e,n,r)=>{var i;const c=e.$hostElement$,d=Bt("update",e.$cmpMeta$.$tagName$),u=c["s-rc"];r&&IS(e);const m=Bt("render",e.$cmpMeta$.$tagName$);tj(e,n,c,r),u&&(u.map(h=>h()),c["s-rc"]=void 0),m(),d();{const h=(i=c["s-p"])!=null?i:[],p=()=>rj(e);h.length===0?p():(Promise.all(h).then(p),e.$flags$|=4,h.length=0)}},tj=(e,n,r,i)=>{try{n=n.render&&n.render(),e.$flags$|=2,QS(e,n,i)}catch(c){fe(c,e.$hostElement$)}return null},rj=e=>{const n=e.$cmpMeta$.$tagName$,r=e.$hostElement$,i=Bt("postUpdate",n),c=e.$lazyInstance$,d=e.$ancestorComponent$;lr(c,"componentDidRender",void 0,r),e.$flags$&64?(lr(c,"componentDidUpdate",void 0,r),i()):(e.$flags$|=64,aj(r),lr(c,"componentDidLoad",void 0,r),i(),e.$onReadyResolve$(r),d||qy()),e.$onInstanceResolve$(r),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&Ey(()=>zm(e,!1)),e.$flags$&=-517},qy=e=>{var n;Ey(()=>YS(no,"appload",{detail:{namespace:uS}})),(n=mo.$orgLocNodes$)!=null&&n.size&&mo.$orgLocNodes$.clear()},lr=(e,n,r,i)=>{if(e&&e[n])try{return e[n](r)}catch(c){fe(c,i)}},aj=e=>{var n;return e.classList.add((n=za.hydratedSelectorName)!=null?n:"hydrated")},lj=(e,n)=>it(e).$instanceValues$.get(n),Qf=(e,n,r,i)=>{const c=it(e);if(!c)return;if(!c)throw new Error(`Couldn't find host element for "${i.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const d=c.$hostElement$,u=c.$instanceValues$.get(n),m=c.$flags$,h=c.$lazyInstance$;r=$b(r,i.$members$[n][0]);const p=Number.isNaN(u)&&Number.isNaN(r),g=r!==u&&!p;if((!(m&8)||u===void 0)&&g&&(c.$instanceValues$.set(n,r),h)){if(i.$watchers$&&m&128){const v=i.$watchers$[n];v&&v.map(_=>{try{h[_](r,u,n)}catch(z){fe(z,d)}})}if((m&18)===2){if(h.componentShouldUpdate&&h.componentShouldUpdate(r,u,n)===!1)return;zm(c,!1)}}},Zy=(e,n,r)=>{var i,c;const d=e.prototype;if(n.$members$||za.propChangeCallback){e.watchers&&!n.$watchers$&&(n.$watchers$=e.watchers),e.deserializers&&!n.$deserializers$&&(n.$deserializers$=e.deserializers),e.serializers&&!n.$serializers$&&(n.$serializers$=e.serializers);const u=Object.entries((i=n.$members$)!=null?i:{});if(u.map(([m,[h]])=>{if(h&31||r&2&&h&32){const{get:p,set:g}=Object.getOwnPropertyDescriptor(d,m)||{};p&&(n.$members$[m][0]|=2048),g&&(n.$members$[m][0]|=4096),(r&1||!p)&&Object.defineProperty(d,m,{get(){{if((n.$members$[m][0]&2048)===0)return lj(this,m);const v=it(this),_=v?v.$lazyInstance$:d;return _?_[m]:void 0}},configurable:!0,enumerable:!0}),Object.defineProperty(d,m,{set(v){const _=it(this);if(_){if(g){typeof(h&32?this[m]:_.$hostElement$[m])>"u"&&_.$instanceValues$.get(m)&&(v=_.$instanceValues$.get(m)),g.apply(this,[$b(v,h)]),v=h&32?this[m]:_.$hostElement$[m],Qf(this,m,v,n);return}{if((r&1)===0||(n.$members$[m][0]&4096)===0){Qf(this,m,v,n),r&1&&!_.$lazyInstance$&&_.$fetchedCbList$.push(()=>{n.$members$[m][0]&4096&&_.$lazyInstance$[m]!==_.$instanceValues$.get(m)&&(_.$lazyInstance$[m]=v)});return}const z=()=>{const $=_.$lazyInstance$[m];!_.$instanceValues$.get(m)&&$&&_.$instanceValues$.set(m,$),_.$lazyInstance$[m]=$b(v,h),Qf(this,m,_.$lazyInstance$[m],n)};_.$lazyInstance$?z():_.$fetchedCbList$.push(()=>{z()})}}}})}else r&1&&h&64&&Object.defineProperty(d,m,{value(...p){var g;const v=it(this);return(g=v?.$onInstancePromise$)==null?void 0:g.then(()=>{var _;return(_=v.$lazyInstance$)==null?void 0:_[m](...p)})}})}),r&1){const m=new Map;d.attributeChangedCallback=function(h,p,g){mo.jmp(()=>{var v;const _=m.get(h),z=it(this);if(this.hasOwnProperty(_)&&za.lazyLoad&&(g=this[_],delete this[_]),d.hasOwnProperty(_)&&typeof this[_]=="number"&&this[_]==g)return;if(_==null){const E=z?.$flags$;if(z&&E&&!(E&8)&&E&128&&g!==p){const L=z.$lazyInstance$,y=(v=n.$watchers$)==null?void 0:v[h];y?.forEach(w=>{L[w]!=null&&L[w].call(L,g,p,h)})}return}const $=u.find(([E])=>E===_);$&&$[1][0]&4&&(g=!(g===null||g==="false"));const j=Object.getOwnPropertyDescriptor(d,_);g!=this[_]&&(!j.get||j.set)&&(this[_]=g)})},e.observedAttributes=Array.from(new Set([...Object.keys((c=n.$watchers$)!=null?c:{}),...u.filter(([h,p])=>p[0]&31).map(([h,p])=>{var g;const v=p[1]||h;return m.set(v,h),p[0]&512&&((g=n.$attrsToReflect$)==null||g.push([h,v])),v})]))}}return e},ij=async(e,n,r,i)=>{let c;if((n.$flags$&32)===0){if(n.$flags$|=32,r.$lazyBundleId$){const h=gS(r,n);if(h&&"then"in h){const g=MS();c=await h,g()}else c=h;if(!c)throw new Error(`Constructor for "${r.$tagName$}#${n.$modeName$}" was not found`);c.isProxied||(r.$watchers$=c.watchers,r.$serializers$=c.serializers,r.$deserializers$=c.deserializers,Zy(c,r,2),c.isProxied=!0);const p=Bt("createInstance",r.$tagName$);n.$flags$|=8;try{new c(n)}catch(g){fe(g,e)}n.$flags$&=-9,n.$flags$|=128,p(),Db(n.$lazyInstance$,e)}else{c=e.constructor;const h=e.localName;customElements.whenDefined(h).then(()=>n.$flags$|=128)}if(c&&c.style){let h;typeof c.style=="string"?h=c.style:typeof c.style!="string"&&(n.$modeName$=PS(e),n.$modeName$&&(h=c.style[n.$modeName$]));const p=xm(r,n.$modeName$);if(!Ks.has(p)){const g=Bt("registerStyles",r.$tagName$);By(p,h,!!(r.$flags$&1)),g()}}}const d=n.$ancestorComponent$,u=()=>zm(n,!0);d&&d["s-rc"]?d["s-rc"].push(u):u()},Db=(e,n)=>{lr(e,"connectedCallback",void 0,n)},cj=e=>{if((mo.$flags$&1)===0){const n=it(e);if(!n)return;const r=n.$cmpMeta$,i=Bt("connectedCallback",r.$tagName$);if(n.$flags$&1)Py(e,n,r.$listeners$),n?.$lazyInstance$?Db(n.$lazyInstance$,e):n?.$onReadyPromise$&&n.$onReadyPromise$.then(()=>Db(n.$lazyInstance$,e));else{n.$flags$|=1;let c;if(c=e.getAttribute(Ji),c){if(r.$flags$&1){const d=Dy(e.shadowRoot,r,e.getAttribute("s-mode"));e.classList.remove(d+"-h",d+"-s")}ZS(e,r.$tagName$,c,n)}c||r.$flags$&12&&sj(e);{let d=e;for(;d=d.parentNode||d.host;)if(d.nodeType===1&&d.hasAttribute("s-id")&&d["s-p"]||d["s-p"]){Ky(n,n.$ancestorComponent$=d);break}}r.$members$&&Object.entries(r.$members$).map(([d,[u]])=>{if(u&31&&d in e&&e[d]!==Object.prototype[d]){const m=e[d];delete e[d],e[d]=m}}),ij(e,n,r)}i()}},sj=e=>{if(!no.document)return;const n=e["s-cr"]=no.document.createComment("");n["s-cn"]=!0,Zr(e,n,e.firstChild)},l1=(e,n)=>{lr(e,"disconnectedCallback",void 0,n||e)},dj=async e=>{if((mo.$flags$&1)===0){const n=it(e);n?.$rmListeners$&&(n.$rmListeners$.map(r=>r()),n.$rmListeners$=void 0),n?.$lazyInstance$?l1(n.$lazyInstance$,e):n?.$onReadyPromise$&&n.$onReadyPromise$.then(()=>l1(n.$lazyInstance$,e))}Sl.has(e)&&Sl.delete(e),e.shadowRoot&&Sl.has(e.shadowRoot)&&Sl.delete(e.shadowRoot)},uj=(e,n={})=>{var r;if(!no.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const i=Bt(),c=[],d=n.exclude||[],u=no.customElements,m=no.document.head,h=m.querySelector("meta[charset]"),p=no.document.createElement("style"),g=[];let v,_=!0;Object.assign(mo,n),mo.$resourcesUrl$=new URL(n.resourcesUrl||"./",no.document.baseURI).href,mo.$flags$|=2,FS();let z=!1;if(e.map($=>{$[1].map(j=>{var E,L,y;const w={$flags$:j[0],$tagName$:j[1],$members$:j[2],$listeners$:j[3]};w.$flags$&4&&(z=!0),w.$members$=j[2],w.$listeners$=j[3],w.$attrsToReflect$=[],w.$watchers$=(E=j[4])!=null?E:{},w.$serializers$=(L=j[5])!=null?L:{},w.$deserializers$=(y=j[6])!=null?y:{};const N=n.transformTagName?n.transformTagName(w.$tagName$):w.$tagName$,D=class extends HTMLElement{constructor(H){if(super(H),this.hasRegisteredEventListeners=!1,H=this,vS(H,w),w.$flags$&1){if(!H.shadowRoot)NS.call(H,w);else if(H.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${w.$tagName$}! Mode is set to ${H.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){const H=it(this);H&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Py(this,H,w.$listeners$)),v&&(clearTimeout(v),v=null),_?g.push(this):mo.jmp(()=>cj(this)))}disconnectedCallback(){mo.jmp(()=>dj(this)),mo.raf(()=>{var H;const q=it(this);if(!q)return;const oe=g.findIndex(de=>de===this);oe>-1&&g.splice(oe,1),((H=q?.$vnode$)==null?void 0:H.$elm$)instanceof Node&&!q.$vnode$.$elm$.isConnected&&delete q.$vnode$.$elm$})}componentOnReady(){var H;return(H=it(this))==null?void 0:H.$onReadyPromise$}};w.$lazyBundleId$=$[0],!d.includes(N)&&!u.get(N)&&(c.push(N),u.define(N,Zy(D,w,1)))})}),c.length>0&&(z&&(p.textContent+=Cy),p.textContent+=c.sort()+zS,p.innerHTML.length)){p.setAttribute("data-styles","");const $=(r=mo.$nonce$)!=null?r:Ly(no.document);$!=null&&p.setAttribute("nonce",$),m.insertBefore(p,h?h.nextSibling:m.firstChild)}_=!1,g.length?g.map($=>$.connectedCallback()):mo.jmp(()=>v=setTimeout(qy,30)),i()},yD=(e,n)=>n,Py=(e,n,r,i)=>{r&&no.document&&r.map(([c,d,u])=>{const m=bj(no.document,e,c),h=fj(n,u),p=mj(c);mo.ael(m,d,h,p),(n.$rmListeners$=n.$rmListeners$||[]).push(()=>mo.rel(m,d,h,p))})},fj=(e,n)=>r=>{var i;try{e.$flags$&256?(i=e.$lazyInstance$)==null||i[n](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([n,r])}catch(c){fe(c,e.$hostElement$)}},bj=(e,n,r)=>r&8?no:n,mj=e=>SS?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,hj=()=>{GS(e=>{try{e.shadowRoot instanceof ShadowRoot&&u5(e,G6(e))}catch{}return"default"}),he(()=>import("./devtools-BkaBSMly-DWgisyPW.js"),__vite__mapDeps([107,9])).then(e=>{typeof e=="object"&&e!==null&&typeof e.initialize=="function"&&e.initialize()}).catch(e=>{Ro.error(e)})};const pj=hj;const kj=async(e,n)=>{if(!(typeof window>"u"))return await pj(),uj(JSON.parse('[["kol-abbr",[[289,"kol-abbr",{"_label":[1],"state":[32]},null,{"_label":["validateLabel"]}]]],["kol-accordion",[[289,"kol-accordion",{"_disabled":[4],"_label":[1],"_level":[2],"_on":[16],"_open":[1540],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_disabled":["validateDisabled"],"_label":["validateLabel"],"_level":["validateLevel"],"_on":["validateOn"],"_open":["validateOpen"]}]]],["kol-alert",[[289,"kol-alert",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"_on":[16],"_type":[1],"_variant":[1],"state":[32]}]]],["kol-alert-wc",[[260,"kol-alert-wc",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"_on":[16],"_type":[1],"_variant":[1],"state":[32]},null,{"_alert":["validateAlert"],"_hasCloser":["validateHasCloser"],"_label":["validateLabel"],"_level":["validateLevel"],"_on":["validateOn"],"_type":["validateType"],"_variant":["validateVariant"]}]]],["kol-avatar",[[289,"kol-avatar",{"_color":[1],"_src":[1],"_label":[1]}]]],["kol-avatar-wc",[[256,"kol-avatar-wc",{"_color":[1],"_src":[1],"_label":[1],"state":[32]},null,{"_color":["validateColor"],"_src":["validateSrc"],"_label":["validateLabel"]}]]],["kol-badge",[[289,"kol-badge",{"_color":[1],"_icons":[1],"_label":[1],"_smartButton":[1,"_smart-button"],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_icons":["validateIcons"],"_color":["validateColor"],"_smartButton":["validateSmartButton"]}]]],["kol-breadcrumb",[[289,"kol-breadcrumb",{"_label":[1],"_links":[1],"state":[32]},null,{"_label":["validateLabel"],"_links":["validateLinks"]}]]],["kol-button",[[289,"kol-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"getValue":[64],"focus":[64],"kolFocus":[64]}]]],["kol-button-link",[[289,"kol-button-link",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaSelected":[4,"_aria-selected"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_variant":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"getValue":[64],"focus":[64],"kolFocus":[64]}]]],["kol-button-wc",[[260,"kol-button-wc",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaHasPopup":[1,"_aria-has-popup"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_buttonVariant":[1,"_button-variant"],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_ariaControls":["validateAriaControls"],"_ariaDescription":["validateAriaDescription"],"_ariaExpanded":["validateAriaExpanded"],"_ariaSelected":["validateAriaSelected"],"_customClass":["validateCustomClass"],"_disabled":["validateDisabled"],"_hideLabel":["validateHideLabel"],"_icons":["validateIcons"],"_id":["validateId"],"_inline":["validateInline"],"_label":["validateLabel"],"_name":["validateName"],"_on":["validateOn"],"_role":["validateRole"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_tabIndex":["validateTabIndex"],"_tooltipAlign":["validateTooltipAlign"],"_type":["validateType"],"_value":["validateValue"],"_buttonVariant":["validateButtonVariant"]}]]],["kol-card",[[289,"kol-card",{"_on":[16],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2]}]]],["kol-card-wc",[[260,"kol-card-wc",{"_on":[16],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"state":[32]},null,{"_on":["validateOn"],"_hasCloser":["validateHasCloser"],"_label":["validateLabel"],"_level":["validateLevel"]}]]],["kol-combobox",[[289,"kol-combobox",{"_accessKey":[1,"_access-key"],"_placeholder":[1],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_hideClearButton":[4,"_hide-clear-button"],"_suggestions":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"blockSuggestionMouseOver":[32],"_isOpen":[32],"_filteredSuggestions":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},[[0,"keydown","handleKeyDown"],[8,"click","handleWindowClick"],[1,"mousemove","handleMouseEvent"],[8,"focusout","handleFocusOut"],[8,"blur","handleWindowBlur"]],{"_placeholder":["validatePlaceholder"],"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_shortKey":["validateShortKey"],"_suggestions":["validateSuggestions"],"_hideClearButton":["validateHideClearButton"],"_required":["validateRequired"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-details",[[289,"kol-details",{"_disabled":[4],"_label":[1],"_level":[2],"_on":[16],"_open":[1540],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_disabled":["validateDisabled"],"_label":["validateLabel"],"_level":["validateLevel"],"_on":["validateOn"],"_open":["validateOpen"]}]]],["kol-drawer",[[289,"kol-drawer",{"_open":[4],"_align":[1],"_hasCloser":[4,"_has-closer"],"_label":[1],"_on":[16],"state":[32],"open":[64],"close":[64]},null,{"_label":["validateLabel"],"_align":["validateAlign"],"_hasCloser":["validateHasCloser"],"_open":["validateOpen"],"_on":["validateOn"]}]]],["kol-form",[[289,"kol-form",{"_on":[16],"_requiredText":[8,"_required-text"],"_errorList":[16],"state":[32],"focusErrorList":[64]},null,{"_on":["validateOn"],"_requiredText":["validateRequiredText"],"_errorList":["validateErrorList"]}]]],["kol-heading",[[289,"kol-heading",{"_label":[1],"_level":[2],"_secondaryHeadline":[1,"_secondary-headline"],"state":[32]},null,{"_label":["validateLabel"],"_level":["validateLevel"],"_secondaryHeadline":["validateSecondaryHeadline"]}]]],["kol-icon",[[289,"kol-icon",{"_icons":[1],"_label":[1],"state":[32]},null,{"_icons":["validateIcons"],"_label":["validateLabel"]}]]],["kol-image",[[289,"kol-image",{"_alt":[1],"_loading":[1],"_sizes":[1],"_src":[1],"_srcset":[1],"state":[32]},null,{"_alt":["validateAlt"],"_loading":["validateLoading"],"_sizes":["validateSizes"],"_src":["validateSrc"],"_srcset":["validateSrcset"]}]]],["kol-input-checkbox",[[289,"kol-input-checkbox",{"_accessKey":[1,"_access-key"],"_checked":[1540],"_hideMsg":[4,"_hide-msg"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_indeterminate":[1540],"_label":[1],"_labelAlign":[1,"_label-align"],"_msg":[1],"_name":[1],"_on":[16],"_required":[4],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[8],"_variant":[1],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_checked":["validateChecked"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_indeterminate":["validateIndeterminate"],"_label":["validateLabel"],"_labelAlign":["validateLabelAlign"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"],"_variant":["validateVariant"]}]]],["kol-input-color",[[289,"kol-input-color",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_suggestions":["validateSuggestions"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-date",[[289,"kol-input-date",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_max":[1],"_min":[1],"_msg":[1],"_name":[1],"_on":[16],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_step":[8],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1537],"_initialValueType":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"reset":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_max":["validateMax"],"_min":["validateMin"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_suggestions":["validateSuggestions"],"_step":["validateStep"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_type":["validateType"],"_value":["validateValue"]}]]],["kol-input-email",[[289,"kol-input-email",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_msg":["validateMsg"],"_multiple":["validateMultiple"],"_name":["validateName"],"_on":["validateOn"],"_pattern":["validatePattern"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_suggestions":["validateSuggestions"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"],"_maxLengthBehavior":["validateMaxLengthBehavior"]}]]],["kol-input-file",[[289,"kol-input-file",{"_accept":[1],"_accessKey":[1,"_access-key"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"filename":[32],"hasFileSelected":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"reset":[64]},null,{"_accept":["validateAccept"],"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_multiple":["validateMultiple"],"_name":["validateName"],"_on":["validateOn"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"]}]]],["kol-input-number",[[289,"kol-input-number",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_max":[8],"_min":[8],"_msg":[1],"_name":[1],"_on":[16],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_step":[8],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"_initialValueType":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_max":["validateMax"],"_min":["validateMin"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_suggestions":["validateSuggestions"],"_step":["validateStep"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-password",[[289,"kol-input-password",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_msg":[1],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"_variant":[1],"state":[32],"_passwordVisible":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_maxLengthBehavior":["validateMaxLengthBehavior"],"_disabled":["validateDisabled"],"_variant":["validateVariant"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_pattern":["validatePattern"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-radio",[[289,"kol-input-radio",{"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_options":[1],"_orientation":[1],"_required":[4],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_tooltipAlign":["validateTooltipAlign"],"_disabled":["validateDisabled"],"_hideLabel":["validateHideLabel"],"_hideMsg":["validateHideMsg"],"_hint":["validateHint"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_options":["validateOptions"],"_orientation":["validateOrientation"],"_required":["validateRequired"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-range",[[289,"kol-input-range",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_max":[8],"_min":[8],"_msg":[1],"_name":[1],"_on":[16],"_shortKey":[1,"_short-key"],"_step":[8],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"_initialValueType":[32],"inputHasFocus":[32],"focus":[64],"kolFocus":[64],"getValue":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_max":["validateMax"],"_min":["validateMin"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_shortKey":["validateShortKey"],"_step":["validateStep"],"_suggestions":["validateSuggestions"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-input-text",[[289,"kol-input-text",{"_accessKey":[1,"_access-key"],"_autoComplete":[1,"_auto-complete"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_msg":[1],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_shortKey":[1,"_short-key"],"_spellCheck":[4,"_spell-check"],"_suggestions":[1],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1537],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"selectionStart":[64],"selectioconEnd":[64],"setSelectionRange":[64],"setSelectionStart":[64],"setRangeText":[64]},null,{"_accessKey":["validateAccessKey"],"_autoComplete":["validateAutoComplete"],"_maxLengthBehavior":["validateMaxLengthBehavior"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_pattern":["validatePattern"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_spellCheck":["validateSpellCheck"],"_suggestions":["validateSuggestions"],"_smartButton":["validateSmartButton"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_type":["validateType"],"_value":["validateValue"]}]]],["kol-kolibri",[[289,"kol-kolibri",{"_color":[1],"_labeled":[4],"state":[32]},null,{"_color":["validateColor"],"_labeled":["validateLabeled"]}]]],["kol-link",[[289,"kol-link",{"_accessKey":[1,"_access-key"],"_ariaCurrentValue":[1,"_aria-current-value"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_disabled":[4],"_download":[1],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icons":[1],"_inline":[4],"_label":[1],"_variant":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"focus":[64],"kolFocus":[64]}]]],["kol-link-button",[[289,"kol-link-button",{"_accessKey":[1,"_access-key"],"_ariaCurrentValue":[1,"_aria-current-value"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_download":[1],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icons":[1],"_label":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"_variant":[1],"focus":[64],"kolFocus":[64]}]]],["kol-link-wc",[[260,"kol-link-wc",{"_accessKey":[1,"_access-key"],"_ariaCurrentValue":[1,"_aria-current-value"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaOwns":[1,"_aria-owns"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_download":[1],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icons":[1],"_inline":[4],"_label":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_tabIndex":[2,"_tab-index"],"_target":[1],"_tooltipAlign":[1,"_tooltip-align"],"_buttonVariant":[1,"_button-variant"],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_ariaCurrentValue":["validateAriaCurrentValue"],"_ariaControls":["validateAriaControls"],"_ariaDescription":["validateAriaDescription"],"_ariaExpanded":["validateAriaExpanded"],"_ariaOwns":["validateAriaOwns"],"_customClass":["validateCustomClass"],"_disabled":["validateDisabled"],"_download":["validateDownload"],"_hideLabel":["validateHideLabel"],"_href":["validateHref"],"_icons":["validateIcons"],"_inline":["validateInline"],"_label":["validateLabel"],"_on":["validateOn"],"_role":["validateRole"],"_shortKey":["validateShortKey"],"_tabIndex":["validateTabIndex"],"_target":["validateTarget"],"_tooltipAlign":["validateTooltipAlign"],"_buttonVariant":["validateButtonVariant"]}]]],["kol-modal",[[289,"kol-modal",{"_label":[1],"_on":[16],"_width":[1],"_variant":[1],"state":[32],"openModal":[64],"closeModal":[64]},null,{"_label":["validateLabel"],"_on":["validateOn"],"_width":["validateWidth"],"_variant":["validateVariant"]}]]],["kol-nav",[[289,"kol-nav",{"_collapsible":[4],"_hasCompactButton":[4,"_has-compact-button"],"_hasIconsWhenExpanded":[4,"_has-icons-when-expanded"],"_hideLabel":[4,"_hide-label"],"_label":[1],"_links":[1],"_orientation":[1],"state":[32]},null,{"_collapsible":["validateCollapsible"],"_hasCompactButton":["validateHasCompactButton"],"_hasIconsWhenExpanded":["validateHasIconsWhenExpanded"],"_hideLabel":["validateHideLabel"],"_label":["validateLabel"],"_links":["validateLinks"],"_orientation":["validateOrientation"]}]]],["kol-pagination",[[289,"kol-pagination",{"_boundaryCount":[2,"_boundary-count"],"_customClass":[1,"_custom-class"],"_label":[1],"_hasButtons":[8,"_has-buttons"],"_page":[2],"_pageSize":[1026,"_page-size"],"_pageSizeOptions":[1,"_page-size-options"],"_on":[16],"_siblingCount":[2,"_sibling-count"],"_tooltipAlign":[1,"_tooltip-align"],"_max":[2]}]]],["kol-pagination-wc",[[256,"kol-pagination-wc",{"_boundaryCount":[2,"_boundary-count"],"_customClass":[1,"_custom-class"],"_label":[1],"_hasButtons":[8,"_has-buttons"],"_page":[2],"_pageSize":[1026,"_page-size"],"_pageSizeOptions":[1,"_page-size-options"],"_on":[16],"_siblingCount":[2,"_sibling-count"],"_tooltipAlign":[1,"_tooltip-align"],"_max":[2],"state":[32]},null,{"_boundaryCount":["validateBoundaryCount"],"_customClass":["validateCustomClass"],"_label":["validateLabel"],"_hasButtons":["validateHasButtons"],"_on":["validateOn"],"_page":["validatePage"],"_pageSize":["validatePageSize"],"_pageSizeOptions":["validatePageSizeOptions"],"_siblingCount":["validateSiblingCount"],"_max":["validateMax"],"_tooltipAlign":["validateTooltipAlign"]}]]],["kol-popover-button",[[289,"kol-popover-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_inline":[4],"_id":[1],"_label":[1],"_name":[1],"_on":[16],"_popoverAlign":[1,"_popover-align"],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"hidePopover":[64],"showPopover":[64],"focus":[64],"kolFocus":[64]}]]],["kol-popover-button-wc",[[260,"kol-popover-button-wc",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_inline":[4],"_label":[1],"_name":[1],"_on":[16],"_popoverAlign":[1,"_popover-align"],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"state":[32],"justClosed":[32],"popoverOpen":[32],"hidePopover":[64],"showPopover":[64],"focus":[64],"kolFocus":[64]},null,{"_inline":["validateInline"],"_popoverAlign":["validatePopoverAlign"]}]]],["kol-popover-wc",[[260,"kol-popover-wc",{"_align":[1],"_on":[16],"_show":[1540],"state":[32]},null,{"_align":["validateAlign"],"_on":["validateOn"],"_show":["validateShow"]}]]],["kol-progress",[[289,"kol-progress",{"_label":[1],"_max":[2],"_unit":[1],"_value":[2],"_variant":[1],"state":[32]},null,{"_label":["validateLabel"],"_max":["validateMax"],"_unit":["validateUnit"],"_value":["validateValue"],"_variant":["validateVariant"]}]]],["kol-quote",[[289,"kol-quote",{"_label":[1],"_href":[1],"_quote":[1],"_variant":[1],"state":[32]},null,{"_label":["validateLabel"],"_href":["validateHref"],"_quote":["validateQuote"],"_variant":["validateVariant"]}]]],["kol-select",[[289,"kol-select",{"_accessKey":[1,"_access-key"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_rows":[2],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"getValue":[64],"focus":[64],"kolFocus":[64]}]]],["kol-select-wc",[[256,"kol-select-wc",{"_accessKey":[1,"_access-key"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_multiple":[4],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_rows":[2],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_multiple":["validateMultiple"],"_name":["validateName"],"_on":["validateOn"],"_options":["validateOptions"],"_required":["validateRequired"],"_rows":["validateRows"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_tabIndex":["validateTabIndex"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-single-select",[[289,"kol-single-select",{"_accessKey":[1,"_access-key"],"_placeholder":[1],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_msg":[1],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1544],"_hideClearButton":[4,"_hide-clear-button"],"_rows":[2],"_isOpen":[32],"_filteredOptions":[32],"_inputValue":[32],"blockSuggestionMouseOver":[32],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},[[8,"focusout","handleFocusOut"],[8,"blur","handleWindowBlur"],[0,"keydown","handleKeyDown"],[1,"mousemove","handleMouseEvent"]],{"_placeholder":["validatePlaceholder"],"_accessKey":["validateAccessKey"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_options":["validateOptions"],"_required":["validateRequired"],"_shortKey":["validateShortKey"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"],"_hideClearButton":["validateHideClearButton"],"_rows":["validateRows"]}]]],["kol-skip-nav",[[289,"kol-skip-nav",{"_label":[1],"_links":[1],"state":[32],"focus":[64],"kolFocus":[64]},null,{"_label":["validateLabel"],"_links":["validateLinks"]}]]],["kol-spin",[[289,"kol-spin",{"_show":[1540],"_label":[1],"_variant":[1],"state":[32]},null,{"_show":["validateShow"],"_label":["validateLabel"],"_variant":["validateVariant"]}]]],["kol-split-button",[[289,"kol-split-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaDescription":[1,"_aria-description"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icons":[1],"_id":[1],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_shortKey":[1,"_short-key"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"state":[32],"getValue":[64],"focus":[64],"kolFocus":[64],"closePopup":[64]}]]],["kol-table-settings-wc",[[256,"kol-table-settings-wc",{"_tableSettings":[16],"tableSettings":[32],"errorMessage":[32]},null,{"_tableSettings":["handleTableSettingsChange"]}]]],["kol-table-stateful",[[289,"kol-table-stateful",{"_allowMultiSort":[4,"_allow-multi-sort"],"_data":[1],"_dataFoot":[1,"_data-foot"],"_headers":[1],"_label":[1],"_minWidth":[1,"_min-width"],"_pagination":[8],"_paginationPosition":[1,"_pagination-position"],"_selection":[1],"_on":[16],"_tableSettings":[16],"_hasSettingsMenu":[4,"_has-settings-menu"],"state":[32],"getSelection":[64]},null,{"_allowMultiSort":["validateAllowMultiSort"],"_data":["validateData"],"_dataFoot":["validateDataFoot"],"_paginationPosition":["validatePaginationPosition"],"_hasSettingsMenu":["validateHasSettingsMenu"],"_headers":["validateHeaders"],"_label":["validateLabel"],"_minWidth":["validateMinWidth"],"_selection":["validateSelection"],"_on":["validateOn"],"_tableSettings":["validateTableSettings"],"_pagination":["validatePagination"]}]]],["kol-table-stateless",[[289,"kol-table-stateless",{"_data":[1],"_dataFoot":[1,"_data-foot"],"_headerCells":[1,"_header-cells"],"_label":[1],"_minWidth":[1,"_min-width"],"_on":[16],"_selection":[1],"_tableSettings":[16],"_hasSettingsMenu":[4,"_has-settings-menu"]}]]],["kol-table-stateless-wc",[[256,"kol-table-stateless-wc",{"_data":[1],"_dataFoot":[1,"_data-foot"],"_headerCells":[1,"_header-cells"],"_label":[1],"_minWidth":[1,"_min-width"],"_on":[16],"_selection":[1],"_tableSettings":[16],"_hasSettingsMenu":[4,"_has-settings-menu"],"state":[32],"tableDivElementHasScrollbar":[32],"previousHeaderCells":[32]},[[0,"keydown","handleKeyDown"],[0,"settingsChange","handleSettingsChange"]],{"_hasSettingsMenu":["validateHasSettingsMenu"],"_data":["validateData"],"_dataFoot":["validateDataFoot"],"_headerCells":["validateHeaderCells"],"_label":["validateLabel"],"_minWidth":["validateMinWidth"],"_on":["validateOn"],"_selection":["validateSelection"],"_tableSettings":["validateTableSettings"]}]]],["kol-tabs",[[289,"kol-tabs",{"_align":[1],"_behavior":[1],"_hasCreateButton":[4,"_has-create-button"],"_label":[1],"_on":[16],"_selected":[1538],"_tabs":[1],"state":[32]},null,{"_align":["validateAlign"],"_behavior":["validateBehavior"],"_hasCreateButton":["validateHasCreateButton"],"_label":["validateLabel"],"_on":["validateOn"],"_selected":["validateSelected"],"_tabs":["validateTabs"]}]]],["kol-textarea",[[289,"kol-textarea",{"_accessKey":[1,"_access-key"],"_adjustHeight":[4,"_adjust-height"],"_disabled":[4],"_hideMsg":[4,"_hide-msg"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icons":[1],"_id":[1],"_label":[1],"_maxLength":[2,"_max-length"],"_hasCounter":[4,"_has-counter"],"_maxLengthBehavior":[1,"_max-length-behavior"],"_msg":[1],"_name":[1],"_on":[16],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_resize":[1],"_required":[4],"_rows":[1026],"_shortKey":[1,"_short-key"],"_spellCheck":[4,"_spell-check"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1537],"state":[32],"inputHasFocus":[32],"getValue":[64],"focus":[64],"kolFocus":[64]},null,{"_accessKey":["validateAccessKey"],"_adjustHeight":["validateAdjustHeight"],"_disabled":["validateDisabled"],"_hideMsg":["validateHideMsg"],"_hideLabel":["validateHideLabel"],"_hasCounter":["validateHasCounter"],"_hint":["validateHint"],"_icons":["validateIcons"],"_id":["validateId"],"_label":["validateLabel"],"_maxLength":["validateMaxLength"],"_maxLengthBehavior":["validateMaxLengthBehavior"],"_msg":["validateMsg"],"_name":["validateName"],"_on":["validateOn"],"_placeholder":["validatePlaceholder"],"_readOnly":["validateReadOnly"],"_resize":["validateResize"],"_required":["validateRequired"],"_rows":["validateRows"],"_shortKey":["validateShortKey"],"_spellCheck":["validateSpellCheck"],"_syncValueBySelector":["validateSyncValueBySelector"],"_touched":["validateTouched"],"_value":["validateValue"]}]]],["kol-toast-container",[[289,"kol-toast-container",{"state":[32],"enqueue":[64],"closeAll":[64]}]]],["kol-toolbar",[[289,"kol-toolbar",{"_label":[1],"_items":[16],"_orientation":[1],"state":[32],"currentIndex":[32]},[[0,"keydown","handleKeyDown"],[2,"blur","handleBlur"]],{"_label":["validateLabel"],"_items":["validateItems"],"_orientation":["validateOrientation"]}]]],["kol-tooltip-wc",[[256,"kol-tooltip-wc",{"_badgeText":[1,"_badge-text"],"_align":[1],"_id":[1],"_label":[1],"state":[32],"hideTooltip":[64]},null,{"_badgeText":["validateBadgeText"],"_align":["validateAlign"],"_id":["validateId"],"_label":["validateLabel"]}]]],["kol-tree",[[289,"kol-tree",{"_label":[1]}]]],["kol-tree-item",[[289,"kol-tree-item",{"_active":[4],"_label":[1],"_open":[4],"_href":[1],"focus":[64],"focusLink":[64],"expand":[64],"collapse":[64],"isOpen":[64]}]]],["kol-tree-item-wc",[[260,"kol-tree-item-wc",{"_active":[4],"_label":[1],"_open":[4],"_href":[1],"level":[32],"state":[32],"focus":[64],"focusLink":[64],"expand":[64],"collapse":[64],"isOpen":[64]},null,{"_active":["validateActive"],"_label":["validateLabel"],"_open":["validateOpen"],"_href":["validateHref"]}]]],["kol-tree-wc",[[260,"kol-tree-wc",{"_label":[1],"state":[32]},[[0,"keydown","handleKeyDown"],[0,"focusout","handleFocusOut"]],{"_label":["validateLabel"]}]]],["kol-version",[[289,"kol-version",{"_label":[1],"state":[32]},null,{"_label":["validateLabel"]}]]],["test-component",[[0,"test-component"]]]]'),n)};(function(){if(typeof window<"u"&&window.Reflect!==void 0&&window.customElements!==void 0){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}})();var Mb={};function vj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bs={exports:{}},gj=Bs.exports,i1;function _j(){return i1||(i1=1,(function(e){(function(n,r){e.exports?e.exports=r():n.log=r()})(gj,function(){var n=function(){},r="undefined",i=typeof window!==r&&typeof window.navigator!==r&&/Trident\/|MSIE /.test(window.navigator.userAgent),c=["trace","debug","info","warn","error"],d={},u=null;function m(j,E){var L=j[E];if(typeof L.bind=="function")return L.bind(j);try{return Function.prototype.bind.call(L,j)}catch{return function(){return Function.prototype.apply.apply(L,[j,arguments])}}}function h(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function p(j){return j==="debug"&&(j="log"),typeof console===r?!1:j==="trace"&&i?h:console[j]!==void 0?m(console,j):console.log!==void 0?m(console,"log"):n}function g(){for(var j=this.getLevel(),E=0;E<c.length;E++){var L=c[E];this[L]=E<j?n:this.methodFactory(L,j,this.name)}if(this.log=this.debug,typeof console===r&&j<this.levels.SILENT)return"No console available for logging"}function v(j){return function(){typeof console!==r&&(g.call(this),this[j].apply(this,arguments))}}function _(j,E,L){return p(j)||v.apply(this,arguments)}function z(j,E){var L=this,y,w,N,D="loglevel";typeof j=="string"?D+=":"+j:typeof j=="symbol"&&(D=void 0);function H(ae){var ee=(c[ae]||"silent").toUpperCase();if(!(typeof window===r||!D)){try{window.localStorage[D]=ee;return}catch{}try{window.document.cookie=encodeURIComponent(D)+"="+ee+";"}catch{}}}function q(){var ae;if(!(typeof window===r||!D)){try{ae=window.localStorage[D]}catch{}if(typeof ae===r)try{var ee=window.document.cookie,_e=encodeURIComponent(D),Te=ee.indexOf(_e+"=");Te!==-1&&(ae=/^([^;]+)/.exec(ee.slice(Te+_e.length+1))[1])}catch{}return L.levels[ae]===void 0&&(ae=void 0),ae}}function oe(){if(!(typeof window===r||!D)){try{window.localStorage.removeItem(D)}catch{}try{window.document.cookie=encodeURIComponent(D)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function de(ae){var ee=ae;if(typeof ee=="string"&&L.levels[ee.toUpperCase()]!==void 0&&(ee=L.levels[ee.toUpperCase()]),typeof ee=="number"&&ee>=0&&ee<=L.levels.SILENT)return ee;throw new TypeError("log.setLevel() called with invalid level: "+ae)}L.name=j,L.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},L.methodFactory=E||_,L.getLevel=function(){return N??w??y},L.setLevel=function(ae,ee){return N=de(ae),ee!==!1&&H(N),g.call(L)},L.setDefaultLevel=function(ae){w=de(ae),q()||L.setLevel(ae,!1)},L.resetLevel=function(){N=null,oe(),g.call(L)},L.enableAll=function(ae){L.setLevel(L.levels.TRACE,ae)},L.disableAll=function(ae){L.setLevel(L.levels.SILENT,ae)},L.rebuild=function(){if(u!==L&&(y=de(u.getLevel())),g.call(L),u===L)for(var ae in d)d[ae].rebuild()},y=de(u?u.getLevel():"WARN");var Ke=q();Ke!=null&&(N=de(Ke)),g.call(L)}u=new z,u.getLogger=function(E){if(typeof E!="symbol"&&typeof E!="string"||E==="")throw new TypeError("You must supply a name when creating a logger.");var L=d[E];return L||(L=d[E]=new z(E,u.methodFactory)),L};var $=typeof window!==r?window.log:void 0;return u.noConflict=function(){return typeof window!==r&&window.log===u&&(window.log=$),u},u.getLoggers=function(){return d},u.default=u,u})})(Bs)),Bs.exports}_j();const xj=(e,n)=>r=>r(e,n),yj=(e,n)=>r=>r(e,n,{append:!1}),wj=()=>{const e=typeof process<"u"&&Mb?Mb:{},n=e.NODE_ENV==="test",r="VITEST"in e,i="JEST_WORKER_ID"in e,c="PLAYWRIGHT_TEST_BASE_URL"in e,d=e.CI==="true",u=e.TEST==="true"||e.IS_TEST==="true",m=typeof navigator<"u"&&navigator.webdriver===!0,h=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return n||r||i||c||d||u||m||h},ct={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:wj(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const e={};for(const[r,i]of ct.A11yUi.PERFORMANCE_MEASURES.entries())e[r]=[i.totalTime/i.count,i.count];const n=Object.entries(e).sort((r,i)=>i[1][0]-r[1][0]);return console.table(Object.fromEntries(n.map(([r,[i,c]])=>[r,{"avg (ms)":parseFloat(i.toFixed(2)),count:c}]))),e}}},Gy=new Set,c1=new Map,zj=/--[^;]+/g,Sj=/:/,jj=typeof MutationObserver<"u";let Yy=()=>{Math.min(25+Math.log2(ct.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250)};const Tj=(e,n)=>{let r=n.match(zj);if(Array.isArray(r)){r=r.filter(c=>Sj.test(c));const i=document.createElement("style");i.innerHTML=`.${e} {${r.join(";")}}`,document.querySelector("head")?.appendChild(i)}Gy.add(e)},eb=(e,n)=>{const r=ct.A11yUi.THEMES.get(e);if(r instanceof Map){const i=r.get(n);if(i!==void 0)return i}return""},Aj=e=>{const n=e.firstChild;if(!(!(n instanceof HTMLStyleElement)||n.dataset.themingFallback!==void 0))for(const r of Array.from(e.childNodes))if(r instanceof HTMLStyleElement&&r.tagName==="STYLE"&&r.dataset.themingFallback===void 0)e.removeChild(r);else break},Cj=(e,n)=>{try{if(ct.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const r=n.filter(i=>typeof i=="string"&&i.length>0).map(i=>{let c=c1.get(i);return c||(c=new CSSStyleSheet,c.replaceSync(i),c1.set(i,c)),c});e.adoptedStyleSheets=r}catch{for(let r=n.length-1;r>=0;r--){const i=n[r];if(typeof i!="string"||i.length===0)continue;const c=n.length-1-r,d=document.createElement("style");switch(d.dataset.themingFallback="",c){case 4:d.dataset.themingBaseA11y="";break;case 3:d.dataset.themingBaseGlobal="";break;case 2:d.dataset.themingBaseComponent="";break;case 1:d.dataset.themingCustomGlobal="";break;case 0:d.dataset.themingCustomComponent="";break;default:d.dataset.themingUnknown="";break}d.innerHTML=i,e.insertBefore(d,e.firstChild)}}},Ej=(e,n,r)=>{if(r===!1||r?.mode!=="before"&&r?.mode!=="after")return;const i=Array.from(e.childNodes).filter(d=>d instanceof HTMLStyleElement&&d.tagName==="STYLE");let c;try{c=Array.from(e.adoptedStyleSheets)}catch{c=[]}if(!(i.length===0&&c.length===0))if(r.mode==="before"){const d=[...c.map(u=>Array.from(u.cssRules).map(m=>m.cssText).join("")),...i.map(u=>u.innerHTML)];n.unshift(...d)}else i.forEach(d=>n.push(d.innerHTML)),c.forEach(d=>n.push(Array.from(d.cssRules).map(u=>u.cssText).join("")))},Lj=(e,n,r)=>{const i=n.name||"default";let c;try{if(e.shadowRoot===null)throw new Error("ShadowRoot is null");c=e.shadowRoot}catch{c=e}const d=ct.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName);if(d)s1(e,c,d,r);else{const u=eb(i,"PROPERTIES"),m=eb(i,"GLOBAL"),h=eb(i,e.tagName);Gy.has(i)===!1&&Tj(i,m);const p=[u,m,h];if(Ej(c,p,n.encroachCss),n.cache===!0){let g=ct.A11yUi.CSS_STYLE_CACHE.get(i);g||(g=new Map,ct.A11yUi.CSS_STYLE_CACHE.set(i,g)),g.set(e.tagName,p)}s1(e,c,p,r)}},s1=(e,n,r,i)=>{const c=ct.A11yUi.Theme?.loglevel==="debug",d=c?performance.now():0;if(Aj(n),Cj(n,r),Rj(e),requestAnimationFrame(i),c){const u=performance.now()-d,m=ct.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);m?(m.count+=1,m.totalTime+=u):ct.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:u})}},Oj=e=>{const n=ct.A11yUi.STYLING_TASK_QUEUE.get(e);if(n){const{resetCss:r,themeDetails:i}=n;Lj(e,i,r)}},$j={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},Nj=jj?new MutationObserver((e,n)=>{const r=[];for(const i of e){const c=i.target;c.classList.contains("hydrated")&&ct.A11yUi.STYLING_TASK_QUEUE.has(c)&&(Oj(c),r.push(c))}for(const i of r)n.observe(i,$j)}):null;Nj&&(Yy=()=>{});const Rj=e=>{ct.A11yUi.STYLING_TASK_QUEUE.delete(e),Yy()};class Bj{Prefix;Key;Tag;createTheme=(n,r)=>yj(n,r);createTranslation=(n,r)=>xj(n,r);constructor(n,r,i){this.Prefix=n,this.Key=Object.getOwnPropertyNames(r),this.Tag=Object.getOwnPropertyNames(i)}}var Ib;(function(e){e[e.error=0]="error",e[e.warning=1]="warning",e[e.info=2]="info",e[e.success=3]="success",e[e.message=4]="message",e[e.close=5]="close",e[e["form-description"]=6]="form-description",e[e.of=7]="of",e[e.characters=8]="characters",e[e.new=9]="new",e[e["no-entries"]=10]="no-entries",e[e["change-order"]=11]="change-order",e[e["action-running"]=12]="action-running",e[e["action-done"]=13]="action-done",e[e["page-first"]=14]="page-first",e[e["page-back"]=15]="page-back",e[e["page-next"]=16]="page-next",e[e["page-last"]=17]="page-last",e[e["entries-per-site"]=18]="entries-per-site",e[e["page-current"]=19]="page-current",e[e["page-selected"]=20]="page-selected",e[e["page-per-site"]=21]="page-per-site",e[e["logo-description"]=22]="logo-description",e[e["open-link-in-tab"]=23]="open-link-in-tab",e[e["kolibri-logo"]=24]="kolibri-logo"})(Ib||(Ib={}));var Ub;(function(e){e[e.abbr=0]="abbr",e[e.accordion=1]="accordion",e[e.alert=2]="alert",e[e.avatar=3]="avatar",e[e.badge=4]="badge",e[e.breadcrumb=5]="breadcrumb",e[e.button=6]="button",e[e["button-link"]=7]="button-link",e[e.card=8]="card",e[e.combobox=9]="combobox",e[e.details=10]="details",e[e.drawer=11]="drawer",e[e.form=12]="form",e[e.heading=13]="heading",e[e.icon=14]="icon",e[e.image=15]="image",e[e["input-checkbox"]=16]="input-checkbox",e[e["input-color"]=17]="input-color",e[e["input-date"]=18]="input-date",e[e["input-email"]=19]="input-email",e[e["input-file"]=20]="input-file",e[e["input-number"]=21]="input-number",e[e["input-password"]=22]="input-password",e[e["input-radio"]=23]="input-radio",e[e["input-range"]=24]="input-range",e[e["input-text"]=25]="input-text",e[e.kolibri=26]="kolibri",e[e.link=27]="link",e[e["link-button"]=28]="link-button",e[e.logo=29]="logo",e[e.modal=30]="modal",e[e.nav=31]="nav",e[e.pagination=32]="pagination",e[e["popover-button"]=33]="popover-button",e[e.progress=34]="progress",e[e.quote=35]="quote",e[e.select=36]="select",e[e["single-select"]=37]="single-select",e[e["skip-nav"]=38]="skip-nav",e[e.spin=39]="spin",e[e["split-button"]=40]="split-button",e[e.symbol=41]="symbol",e[e.table=42]="table",e[e["table-stateful"]=43]="table-stateful",e[e["table-stateless"]=44]="table-stateless",e[e.tabs=45]="tabs",e[e.textarea=46]="textarea",e[e["toast-container"]=47]="toast-container",e[e.toolbar=48]="toolbar",e[e.tooltip=49]="tooltip",e[e.tree=50]="tree",e[e["tree-item"]=51]="tree-item"})(Ub||(Ub={}));const Fb=["development","production","test"];let Hb="production";const Dj=e=>{try{if(Fb.includes(e))Hb=e;else throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${Fb.join(", ")}.`)}catch{Hb="production"}},Mj=()=>{try{const e=typeof process<"u"&&Mb?"production":void 0;if(e&&Fb.includes(e))return e}catch{}return"production"};Dj(Mj());const Ij=()=>Hb==="development",Uj="color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000",gl=e=>Array.isArray(e)?e:[e],d1=e=>`%c${e}`,Fj=(e,n)=>typeof n=="string"&&n.length>0?`${d1(e)} | ${n}`:d1(e),_l=(e,n)=>[Fj(e,n?.classifier),`${Uj};${n?.overwriteStyle||""}`],Ri=e=>Ij()||e===!0;class Hj{constructor(n){this.label=n}debug(n,r){Ri(r?.forceLog)&&console.debug(..._l(this.label,r),...gl(n))}info(n,r){Ri(r?.forceLog)&&console.info(..._l(this.label,r),...gl(n))}trace(n,r){Ri(r?.forceLog)&&console.trace(..._l(this.label,r),...gl(n))}warn(n,r){Ri(r?.forceLog)&&console.warn(..._l(this.label,r),...gl(n))}error(n,r){console.error(..._l(this.label,r),...gl(n))}throw(n,r){if(Ri(r?.forceLog))throw new Error(..._l(this.label,r),...gl(n))}}const Vj=new Hj("KoliBri"),u1=new Set,Kj=(e,n)=>{u1.has(e)===!1&&(u1.add(e),Vj.debug([e].concat([]),{classifier:"💻 dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))};Kj("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");var Fr={exports:{}},f1;function qj(){if(f1)return Fr.exports;f1=1,Fr.exports=e,Fr.exports.arr=e,Fr.exports.obj=n,Fr.exports.css=r,Fr.exports.hex=i,Fr.exports.num=c;function e(y){var w=d(y);return w.length==3?w.concat(255):(w[3]=Math.round(w[3]),w)}function n(y){var w=d(y);return{r:w[0],g:w[1],b:w[2],a:w.length==3?255:Math.round(w[3])}}function r(y){var w=d(y);return w.length==3&&w.push(255),w[3]==255?"rgb("+w[0]+", "+w[1]+", "+w[2]+")":w[3]==0?"rgba("+w[0]+", "+w[1]+", "+w[2]+", 0)":"rgba("+w[0]+", "+w[1]+", "+w[2]+", "+String(w[3]/255).substr(1)+")"}function i(y){var q=d(y);q.length==3&&q.push(255);var w=q[3]==255,N=u(q[0]),D=u(q[1]),H=u(q[2]),q=u(Math.round(q[3])),oe=m(N,D,H,q);return w?oe?"#"+N.charAt(0)+D.charAt(0)+H.charAt(0):"#"+N+D+H:oe?"#"+N.charAt(0)+D.charAt(0)+H.charAt(0)+q.charAt(0):"#"+N+D+H+q}function c(y){var w=d(y);return w.length==3?w.push(255):w[3]=Math.round(w[3]),(w[3]<<24>>>0|w[0]<<16|w[1]<<8|w[2])>>>0}function d(y){return typeof y=="string"?(y=y.toLowerCase(),h(y)||g(y)||v(y)||E(y)||L(y)||[0,0,0,255]):z(y)||$(y)||j(y)||[0,0,0,255]}function u(y){var w=y.toString(16);return w.length==1?"0"+w:w}function m(y,w,N,D){var H=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return H.indexOf(y)!=-1&&H.indexOf(w)!=-1&&H.indexOf(N)!=-1&&H.indexOf(D)!=-1}function h(y){if(y=="red")return[255,0,0];if(y=="green")return[0,255,0];if(y=="blue")return[0,0,255];if(y=="black")return[0,0,0];if(y=="white")return[255,255,255];if(y=="cyan")return[0,255,255];if(y=="gray")return[128,128,128];if(y=="grey")return[128,128,128];if(y=="magenta")return[255,0,255];if(y=="pink")return[255,0,255];if(y=="yellow")return[255,255,0]}function p(y){return y.length==1?parseInt(y+y,16):parseInt(y,16)}function g(y){var w=y.replace(/^#/,""),N=w.length;if(N==3||N==4){var D=p(w[0]),H=p(w[1]),q=p(w[2]),oe=N==3?255:p(w[3]);return isNaN(D)||isNaN(H)||isNaN(q)||isNaN(oe)?void 0:[D,H,q,oe]}}function v(y){var w=y.replace(/^#/,""),N=w.length;if(N==6||N==8){var D=p(w.slice(0,2)),H=p(w.slice(2,4)),q=p(w.slice(4,6)),oe=N==6?255:p(w.slice(6,8));return isNaN(D)||isNaN(H)||isNaN(q)||isNaN(oe)?void 0:[D,H,q,oe]}}function _(y,w){return typeof y!="number"||w===!0&&Math.floor(y)!==y?-1:y>=0&&y<=255?y:-1}function z(y){if(Object.prototype.toString.call(y)==="[object Object]"&&Object.getPrototypeOf(y)===Object.getPrototypeOf({})){var w=_(y.r!=null?y.r:y.red!=null?y.red:0,!0),N=_(y.g!=null?y.g:y.green!=null?y.green:0,!0),D=_(y.b!=null?y.b:y.blue!=null?y.blue:0,!0),H=_(y.a!=null?y.a:y.alpha!=null?y.alpha:255,!0);if(w!=-1&&N!=-1&&D!=-1&&H!=-1)return[w,N,D,H]}}function $(y){if(Array.isArray(y)&&(y.length==3||y.length==4)){var w=_(y[0],!0),N=_(y[1],!0),D=_(y[2],!0),H=_(y[3]!=null?y[3]:255,!0);if(w!=-1&&N!=-1&&D!=-1&&H!=-1)return[w,N,D,H]}}function j(y){if(typeof y=="number"&&Math.floor(y)==y&&y<=4294967295&&y>=0){var w=y>>24&255,N=y>>16&255,D=y>>8&255,H=y&255;return[N,D,H,w]}}function E(y){if(y.substr(0,4)=="rgb("){y=y.match(/^rgb\(([^)]+)\)/)[1];var w=y.split(/ *, */).map(Number),N=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0);if(N!=-1&&D!=-1&&H!=-1)return[N,D,H,255]}}function L(y){if(y.substr(0,5)=="rgba("){y=y.match(/^rgba\(([^)]+)\)/)[1];var w=y.split(/ *, */).map(Number),N=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0),q=_(w[3]*255);if(N!=-1&&D!=-1&&H!=-1&&q!=-1)return[N,D,H,q]}}return Fr.exports}qj();var ob={},b1;function Zj(){return b1||(b1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelectorAll=void 0;const n=(i,c)=>{c.forEach(d=>{i.has(d)===!1&&i.add(d)})},r=(i,c=document)=>{if(c instanceof Document||c instanceof HTMLElement||c instanceof ShadowRoot){const d=new Set;n(d,c.querySelectorAll(i));const u=c.querySelectorAll('[class*="hydrated"]');for(let m=0;m<u.length;m++){const h=u[m].shadowRoot;typeof h=="object"&&h!==null?n(d,(0,e.querySelectorAll)(i,h)):n(d,(0,e.querySelectorAll)(i,u[m]))}return Array.from(d)}else throw new Error("The parameter document for the method querySelectorAll is not type of Document, HTMLElement or ShadowRoot.")};e.querySelectorAll=r})(ob)),ob}Zj();var nb={},m1;function Pj(){return m1||(m1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelector=void 0;const n=(r,i=document)=>{if(i instanceof Document||i instanceof HTMLElement||i instanceof ShadowRoot){let c=i.querySelector(r);if(c===null){const d=i.querySelectorAll('[class*="hydrated"]');for(let u=0;u<d.length;u++){const m=d[u].shadowRoot;if(typeof m=="object"&&m!==null?c=(0,e.querySelector)(r,m):c=(0,e.querySelector)(r,d[u]),c!==null)break}}return c}else throw new Error("The parameter document for the method querySelector is not type of Document, HTMLElement or ShadowRoot.")};e.querySelector=n})(nb)),nb}Pj();new Event("StateChange");var tb,h1;function Gj(){return h1||(h1=1,tb=function(n){return function(r,i){if(!r)return n;var c;typeof r=="string"?c=r:i=r;var d=n;return c&&(d+="__"+c),d+(i?Object.keys(i).reduce(function(u,m){var h=i[m];return h&&(u+=" "+(typeof h=="boolean"?d+"--"+m:d+"--"+m+"_"+h)),u},""):"")}}),tb}var Yj=Gj(),Jj=vj(Yj);function Jy(){const e=new Map,n=(r,i,c)=>{try{return e.get(r)(i,c)}catch{return e.set(r,Jj(r)).get(r)(i,c)}};return n.forBlock=r=>{const i=(c,d)=>n(r,c,d);return i.forElement=c=>d=>n(r,c,d),i},n}const Xy=Jy();Xy("kol-icon");Xy("kol-icon","icon");const Sm=Jy();Sm("kol-alert","closer")+"";Sm("kol-alert","content");Sm("kol-alert","icon");var p1;(function(e){e.blur="kolBlur",e.change="kolChange",e.changePage="kolChangePage",e.changePageSize="kolChangePageSize",e.click="kolClick",e.close="kolClose",e.create="kolCreate",e.focus="kolFocus",e.input="kolInput",e.keydown="kolKeydown",e.mousedown="kolMousedown",e.reset="kolReset",e.select="kolSelect",e.selectionChange="kolSelectionChange",e.settingsChange="settingsChange",e.sort="kolSort",e.submit="kolSubmit",e.toggle="kolToggle"})(p1||(p1={}));const jm=new Bj("kol",Ib,Ub);var _n;(function(e){e["Die Bundesregierung"]="BReg",e["Bundesministerium der Finanzen"]="BMF",e["Bundesministerium des Innern, für Bau und Heimat"]="BMI",e["Auswärtiges Amt"]="AA",e["Bundesministerium für Wirtschaft und Energie"]="BMWi",e["Bundesministerium der Justiz und für Verbraucherschutz"]="BMJV",e["Bundesministerium für Arbeit und Soziales"]="BMAS",e["Bundesministerium der Verteidigung"]="BMVg",e["Bundesministerium für Ernährung und Landwirtschaft"]="BMEL",e["Bundesministerium für Familie, Senioren, Frauen und Jugend"]="BMFSFJ",e["Bundesministerium für Gesundheit"]="BMG",e["Bundesministerium für Verkehr und digitale Infrastruktur"]="BMVI",e["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"]="BMU",e["Bundesministerium für Bildung und Forschung"]="BMBF",e["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"]="BMZ"})(_n||(_n={}));var Ze;(function(e){e["Beschaffungsamt des Bundesministeriums des Innern"]="BeschA",e["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"]="BAAINBw",e["Bundesamt für äußere Restitutionen"]="BAR",e["Bundesamt für Bauwesen und Raumordnung"]="BBR",e["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"]="BBK",e["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"]="BAFzA",e["Bundesamt für Güterverkehr"]="BAG",e["Bundesamt für Justiz"]="BfJ",e["Bundesamt für Kartographie und Geodäsie"]="BKG",e["Bundesamt für kerntechnische Entsorgungssicherheit"]="BASE",e["Bundesamt für Migration und Flüchtlinge"]="BAMF",e["Bundesamt für Sicherheit in der Informationstechnik"]="BSI",e["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"]="BVL",e["Bundesamt für Verfassungsschutz"]="BfV",e["Bundesamt für Wirtschaft und Ausfuhrkontrolle"]="BAFA",e["Bundesamt für zentrale Dienste und offene Vermögensfragen"]="BADV",e["Bundesanstalt für Verwaltungsdienstleistungen"]="BAV",e.Bundesarchiv="BArch",e["Bundesaufsichtsamt für Flugsicherung"]="BAF",e.Bundesausgleichsamt="BAA",e.Bundeskartellamt="BKartA",e.Bundeskriminalamt="BKA",e.Bundesnachrichtendienst="BND",e["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"]="BNetzA",e.Bundespolizeipräsidium="BPOLP",e["Bundesprüfstelle für jugendgefährdende Medien"]="BPjM",e.Bundessortenamt="BSA",e.Bundessprachenamt="BSprA",e["Bundesamt für Soziale Sicherung"]="BAS",e.Bundesverwaltungsamt="BVA",e["Bundeszentralamt für Steuern"]="BZSt",e["Deutsches Patent- und Markenamt"]="DPMA",e["Eisenbahn-Bundesamt"]="EBA",e.Generalzolldirektion="GZD",e["Militärischer Abschirmdienst"]="MAD",e["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"]="ZITiS"})(Ze||(Ze={}));var ur;(function(e){e["Informationstechnikzentrum Bund"]="ITZBund",e["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"]="BDBOS",e["Bundesanstalt für Landwirtschaft und Ernährung"]="BLE",e["Bundesanstalt Technisches Hilfswerk"]="THW",e["Bundesinstitut für Arzneimittel und Medizinprodukte"]="BfArM",e["Bundesinstitut für Bevölkerungsforschung"]="BiB",e["Bundesinstitut für Sportwissenschaft"]="BISp"})(ur||(ur={}));const we=new Map;we.set(_n["Die Bundesregierung"],["Die","Bundesregierung"]);we.set(_n["Bundesministerium der Finanzen"],["Bundesministerium","der Finanzen"]);we.set(_n["Bundesministerium des Innern, für Bau und Heimat"],["Bundesministerium","des Inneren, für Bau","und Heimat"]);we.set(_n["Auswärtiges Amt"],["Auswärtiges Amt"]);we.set(_n["Bundesministerium für Wirtschaft und Energie"],["Bundesministerium","für Wirtschaft","und Energie"]);we.set(_n["Bundesministerium der Justiz und für Verbraucherschutz"],["Bundesministerium","der Justiz und","für Verbraucherschutz"]);we.set(_n["Bundesministerium für Arbeit und Soziales"],["Bundesministerium","für Arbeit und Soziales"]);we.set(_n["Bundesministerium der Verteidigung"],["Bundesministerium","der Verteidigung"]);we.set(_n["Bundesministerium für Bildung und Forschung"],["Bundesministerium","für Bildung","und Forschung"]);we.set(_n["Bundesministerium für Ernährung und Landwirtschaft"],["Bundesministerium","für Ernährung","und Landwirtschaft"]);we.set(_n["Bundesministerium für Familie, Senioren, Frauen und Jugend"],["Bundesministerium","für Familie, Senioren, Frauen","und Jugend"]);we.set(_n["Bundesministerium für Gesundheit"],["Bundesministerium","für Gesundheit"]);we.set(_n["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"],["Bundesministerium","für Umwelt, Naturschutz","und nukleare Sicherheit"]);we.set(_n["Bundesministerium für Verkehr und digitale Infrastruktur"],["Bundesministerium","für Verkehr und","digitale Infrastruktur"]);we.set(_n["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"],["Bundesministerium","für wirtschaftliche Zusammenarbeit","und Entwicklung"]);we.set(Ze["Beschaffungsamt des Bundesministeriums des Innern"],["Beschaffungsamt","des Bundesministeriums","des Innern"]);we.set(Ze["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"],[]);we.set(Ze["Bundesamt für äußere Restitutionen"],[]);we.set(Ze["Bundesamt für Bauwesen und Raumordnung"],[]);we.set(Ze["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"],["Bundesamt","für Bevölkerungsschutz","und Katastrophenhilfe"]);we.set(Ze["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"],["Bundesamt","für Familie und","zivilgesellschaftliche Aufgaben"]);we.set(Ze["Bundesamt für Güterverkehr"],["Bundesamt","für Güterverkehr"]);we.set(Ze["Bundesamt für Justiz"],["Bundesamt für","Justiz"]);we.set(Ze["Bundesamt für Kartographie und Geodäsie"],["Bundesamt für","Kartographie und Geodäsie"]);we.set(Ze["Bundesamt für kerntechnische Entsorgungssicherheit"],["Bundesamt für","kerntechnische","Entsorgungssicherheit"]);we.set(Ze["Bundesamt für Migration und Flüchtlinge"],["Bundesamt","für Migration","und Flüchtlinge"]);we.set(Ze["Bundesamt für Sicherheit in der Informationstechnik"],["Bundesamt","für Sicherheit in der","Informationstechnik"]);we.set(Ze["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"],["Bundesamt für","Verbraucherschutz und","Lebensmittelsicherheit"]);we.set(Ze["Bundesamt für Verfassungsschutz"],["Bundesamt für","Verfassungsschutz"]);we.set(Ze["Bundesamt für Wirtschaft und Ausfuhrkontrolle"],["Bundesamt","für Wirtschaft","Ausfuhrkontrolle"]);we.set(Ze["Bundesamt für zentrale Dienste und offene Vermögensfragen"],["Bundesamt","für zentrale Dienste und","offene Vermögensfragen"]);we.set(Ze["Bundesanstalt für Verwaltungsdienstleistungen"],["Bundesanstalt","für Verwaltungsdienstleistungen"]);we.set(Ze.Bundesarchiv,["Das","Bundesarchiv"]);we.set(Ze["Bundesaufsichtsamt für Flugsicherung"],["Bundesaufsichtsamt","für Flugsicherung"]);we.set(Ze.Bundesausgleichsamt,["Bundesausgleichsamt"]);we.set(Ze.Bundeskartellamt,["Bundeskartellamt"]);we.set(Ze.Bundeskriminalamt,["Bundeskriminalamt"]);we.set(Ze.Bundesnachrichtendienst,["Bundesnachrichtendienst"]);we.set(Ze["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"],["Bundesnetzagentur"]);we.set(Ze.Bundespolizeipräsidium,["Bundespolizeipräsidium"]);we.set(Ze["Bundesprüfstelle für jugendgefährdende Medien"],["Bundesprüfstelle","für jugendgefährdende","Medien"]);we.set(Ze.Bundessortenamt,["Bundessortenamt"]);we.set(Ze.Bundessprachenamt,["Bundessprachenamt"]);we.set(Ze["Bundesamt für Soziale Sicherung"],["Bundesamt","für Soziale Sicherung"]);we.set(Ze.Bundesverwaltungsamt,["Bundesverwaltungsamt"]);we.set(Ze["Bundeszentralamt für Steuern"],["Bundeszentralamt","für Steuern"]);we.set(Ze["Deutsches Patent- und Markenamt"],["Deutsches","Patent- und Markenamt"]);we.set(Ze["Eisenbahn-Bundesamt"],["Eisenbahn-Bundesamt"]);we.set(Ze.Generalzolldirektion,["Generalzolldirektion"]);we.set(Ze["Militärischer Abschirmdienst"],["Bundesamt für den","Militärischen Abschirmdienst"]);we.set(Ze["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"],["Zentrale Stelle","für Informationstechnik","im Sicherheitsbereich"]);we.set(ur["Informationstechnikzentrum Bund"],["Informations","Technik","Zentrum Bund"]);we.set(ur["Bundesanstalt für den Digitalfunk der Behörden und Organisationen mit Sicherheitsaufgaben"],["Bundesanstalt","für den Digitalfunk der Behörden und","Organisationen mit Sicherheitsaufgaben"]);we.set(ur["Bundesanstalt für Landwirtschaft und Ernährung"],["Bundesanstalt für","Landwirtschaft und Ernährung"]);we.set(ur["Bundesanstalt Technisches Hilfswerk"],["Bundesanstalt","Technisches Hilfswerk"]);we.set(ur["Bundesinstitut für Arzneimittel und Medizinprodukte"],["Bundesinstitut","für Arzneimittel","und Medizinprodukte"]);we.set(ur["Bundesinstitut für Bevölkerungsforschung"],["Bundesinstitut","für Bevölkerungsforschung"]);we.set(ur["Bundesinstitut für Sportwissenschaft"],["Bundesinstitut","für Sportwissenschaft"]);var Xj=`/* forward the rem function */
|
|
32
32
|
@layer kol-theme-component {
|
|
33
33
|
abbr {
|
|
34
34
|
text-decoration: none;
|
|
@@ -25951,7 +25951,7 @@ Link:
|
|
|
25951
25951
|
border-radius: 3px;
|
|
25952
25952
|
padding: 0 0.3em;
|
|
25953
25953
|
}
|
|
25954
|
-
}`;const _8=jm.createTheme("ecl-eu",{GLOBAL:g8,"KOL-ACCORDION":OT,"KOL-ALERT":$T,"KOL-BADGE":NT,"KOL-BREADCRUMB":RT,"KOL-BUTTON":DT,"KOL-BUTTON-LINK":BT,"KOL-CARD":MT,"KOL-COMBOBOX":IT,"KOL-DETAILS":UT,"KOL-DRAWER":FT,"KOL-FORM":HT,"KOL-HEADING":VT,"KOL-INPUT-CHECKBOX":KT,"KOL-INPUT-COLOR":qT,"KOL-INPUT-DATE":ZT,"KOL-INPUT-EMAIL":PT,"KOL-INPUT-FILE":GT,"KOL-INPUT-NUMBER":YT,"KOL-INPUT-PASSWORD":JT,"KOL-INPUT-RADIO":XT,"KOL-INPUT-RANGE":WT,"KOL-INPUT-TEXT":QT,"KOL-LINK":o8,"KOL-LINK-BUTTON":e8,"KOL-MODAL":n8,"KOL-NAV":t8,"KOL-PAGINATION":r8,"KOL-POPOVER-BUTTON":a8,"KOL-SELECT":l8,"KOL-SINGLE-SELECT":i8,"KOL-SKIP-NAV":c8,"KOL-SPIN":s8,"KOL-SPLIT-BUTTON":d8,"KOL-TABLE-STATEFUL":u8,"KOL-TABLE-STATELESS":f8,"KOL-TABS":b8,"KOL-TEXTAREA":m8,"KOL-TOAST-CONTAINER":h8,"KOL-TOOLBAR":p8,"KOL-TREE":v8,"KOL-TREE-ITEM":k8}),x8="3.1.5-rc.1",Vb={version:x8},y8=()=>{const e={onClick:()=>history.back()};return a.jsxs(Sn,{_label:"This is an example page",_level:0,_type:"info",children:[a.jsx("p",{children:"You followed an example link."}),history.length>1&&a.jsx(X,{_label:"Go Back",_on:e})]})},Wy=["default","ecl-ec","ecl-eu","unstyled"],Tm=e=>Wy.find(n=>n===e)!==void 0,Am=[{label:"Unstyled (Uncolored)",value:"unstyled"},{label:"Default (Tested)",value:"default"},{label:"European Commission (in progress)",value:"ecl-ec"},{label:"European Union (in progress)",value:"ecl-eu"}];function w8(){const e=matchMedia("(max-width: 1023px)"),[n,r]=S.useState(e.matches),i=()=>{r(e.matches)};return S.useEffect(()=>(i(),e.addEventListener("change",i),()=>{e.removeEventListener("change",i)}),[e]),n}function z8({children:e}){return w8()?a.jsx(ln,{_label:"All components",class:"mt",children:e}):a.jsx("div",{className:"mt scrollable-container",children:e})}function k1({label:e,to:n,children:r}){const i=Gx(n),c=$l(n),d=H4({path:c.pathname,end:!0});return a.jsx(nn,{_label:e,_href:i,_active:!!d,children:r})}function S8({routes:e}){const n=(i,c)=>Object.keys(c).map(d=>{const u=i==="tree"&&d==="basic/:subPage",m=u?"basic/home":d,h=u?"basic":d;return a.jsx(k1,{label:h,to:[i,m].join("/")},[i,d].join("/"))}),r=Object.entries(e).map(([i,c])=>a.jsx(k1,{label:i,to:i,children:n(i,c)},i));return a.jsx(z8,{children:a.jsx("nav",{children:a.jsx(Rx,{_label:"Navigation",class:"block",children:r})})})}const j8=({buildDate:e,commitHash:n})=>!e&&!n?"":a.jsx("div",{className:"text-sm font-mono color-gray-5 m-t-2",children:e&&n?a.jsxs(a.Fragment,{children:["Build: ",n,a.jsx("br",{}),"at ",e]}):n?`Build: ${n}`:`Build date: ${e}`}),T8=({version:e,theme:n,routes:r,routeList:i,sample:c,buildDate:d,commitHash:u,onThemeChange:m})=>{const h=()=>i.indexOf(c),p=()=>c.replace(/\//g," "),g=(z,$)=>{m($)},v=()=>{const z=h(),$=z<=0?i.length-1:z-1;location.replace(`#${i[$]}`)},_=()=>{const z=h(),$=z===i.length-1?0:z+1;location.replace(`#${i[$]}`)};return a.jsx("aside",{className:"app-sidebar p-4",children:a.jsxs("div",{className:"scrollable-container-wrapper",children:[a.jsxs("div",{className:"flex flex-justify-between flex-items-center",children:[a.jsx(ue,{_label:"KoliBri React"}),a.jsx(nd,{_label:e})]}),a.jsx(j8,{buildDate:d,commitHash:u}),a.jsx(Qo,{_label:"Theme",_options:Am,_on:{onChange:g},_value:n,class:"mt"}),a.jsx(ue,{_label:"Components",_level:2,className:"block mt"}),a.jsxs("div",{className:"flex flex-justify-between flex-items-center mt",children:[a.jsx(X,{_icons:"codicon codicon-arrow-left",_hideLabel:!0,_label:"Previous component",_on:{onClick:v}}),a.jsxs("span",{className:"text-base text-center",children:[p()," (",h()+1,"/",i.length,")"]}),a.jsx(X,{_icons:"codicon codicon-arrow-right",_hideLabel:!0,_label:"Next component",_on:{onClick:_}})]}),a.jsx(S8,{routes:r})]})})},A8=()=>{const e=Nn();X5("#"+e.pathname)},Cm=S.createContext(null),C8="https://public-ui.github.io/docs/components",E8="https://github.com/public-ui/kolibri/blob/develop/packages/samples/react/src/components",Fe="I am an error message!",An="I am a hint.",K=e=>{const n=S.useContext(Cm),r=Nn(),i=r.pathname.split("/").slice(1),c=S.useMemo(()=>i[0]==="scenarios"?null:`${C8}/${i[0]}`,[r.hash]),d=S.useMemo(()=>i[0]==="scenarios"?null:`${E8}/${i[0]}/${i[1]}.tsx`,[r.hash]);return a.jsxs(a.Fragment,{children:[a.jsx("h1",{className:"visually-hidden",children:r.pathname.replace(/\//g," ")}),n?null:a.jsxs("div",{className:"grid sm:flex gap-4 justify-between pb-sm border-b-1 border-b-solid border-gray mb-2",children:[a.jsx("div",{className:"indented-text",children:e.children}),a.jsxs("ul",{className:"flex flex-wrap gap-2 list-none m-0 p-0",children:[d&&a.jsx("li",{children:a.jsx(xe,{_href:d,_label:"Code",_target:"_blank"})}),c&&a.jsx("li",{children:a.jsx(xe,{_href:c,_label:"Documentation",_target:"_blank"})}),a.jsx("li",{children:a.jsx(xe,{_href:`#${r.pathname}?hideMenus`,_label:"Standalone example",_target:"_blank"})})]})]})]})},L8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolAbbr shows an abbreviation and uses kol-tooltip-wc to display the long form, if provided."})}),a.jsxs("p",{children:["I am ",a.jsx(Vi,{_label:"as an example",children:"e.g."})," an abbreviation."]}),a.jsxs("p",{children:["I am ",a.jsx(Vi,{children:"e.g."})," an abbreviation without label."]})]}),O8={abbr:{basic:L8}},$8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["KolAccordion hides its content until opened. The open state can be toggled by clicking the headline or by setting the ",a.jsx("code",{children:"_open"}),"-prop programmatically. Additionally, the sample shows the disabled state for a closed and an open accordion."]})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ln,{_label:"Heading Accordion Tab 1 (open)",_open:!0,children:a.jsx(jn,{_label:"Combobox in Accordion",_suggestions:"['Herr','Frau','Firma']"})}),a.jsx(ln,{_label:"Heading Accordion Tab 2",children:"Contents Accordion Tab 2"}),a.jsx(ln,{_label:"Heading Accordion Tab 3 (deactivated)",_disabled:!0,children:"Contents Accordion Tab 3"}),a.jsx(ln,{_label:"Heading Accordion Tab 4 (disabled and open)",_disabled:!0,_open:!0,children:"Contents Accordion Tab 4"})]})]}),N8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolAccordion with the different heading levels from 1-6."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ln,{_label:"Heading Level 1",_level:1,children:"Contents Accordion Tab 1"}),a.jsx(ln,{_label:"Heading Level 2",_level:2,children:"Contents Accordion Tab 2"}),a.jsx(ln,{_label:"Heading Level 3",_level:3,children:"Contents Accordion Tab 3"}),a.jsx(ln,{_label:"Heading Level 4",_level:4,children:"Contents Accordion Tab 4"}),a.jsx(ln,{_label:"Heading Level 5",_level:5,children:"Contents Accordion Tab 5"}),a.jsx(ln,{_label:"Heading Level 6",_level:6,children:"Contents Accordion Tab 6"})]})]}),R8={accordion:{basic:$8,headlines:N8}},Ni=({level:e,type:n,variant:r})=>a.jsxs(a.Fragment,{children:[a.jsx(Sn,{_label:`This is the headline level ${e} of the alert.`,_level:e,_type:n,_variant:r,children:"This is the text of the alert."}),a.jsx(Sn,{_type:n,_variant:r,children:"In this alert, only the text without the heading is used."}),a.jsx(Sn,{_label:`This is the headline level ${e} of the alert.`,_level:e,_type:n,_variant:r,_hasCloser:!0,children:"This is the text of the alert. With close button."}),a.jsx(Sn,{_type:n,_variant:r,_hasCloser:!0,children:"In this alert, only the text without the heading is used. With close button."})]}),Qy=({variant:e="msg"})=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Ni,{level:1,type:"default",variant:e}),a.jsx(Ni,{level:2,type:"error",variant:e}),a.jsx(Ni,{level:3,type:"info",variant:e}),a.jsx(Ni,{level:4,type:"success",variant:e}),a.jsx(Ni,{level:5,type:"warning",variant:e})]}),B8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["KolAlert shows messages of different types. This sample illustrates the variant ",a.jsx("code",{children:"msg"}),", showing all possible types with and without headlines and close buttons."]})}),a.jsx(Qy,{variant:"msg"})]}),D8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["KolAlert shows messages of different types. This sample illustrates the variant ",a.jsx("code",{children:"card"}),", showing all possible types with and without headlines and close buttons."]})}),a.jsx("section",{className:"w-full",children:a.jsx(Qy,{variant:"card"})})]}),M8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows how KolAlert can be used with arbitrary HTML as slot content."})}),a.jsx("div",{children:a.jsxs(Sn,{_label:"Output of HTML code in the alert",_type:"info",children:[a.jsx("div",{className:"mt-2 mb-3",children:a.jsx(ue,{_level:2,_label:"An H2 heading is output here"})}),a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[a.jsxs("div",{children:[a.jsx("h3",{children:"Text in a left-hand column"}),a.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quidem sed fugiat dolorum ratione et, ullam officia nobis nihil debitis, consectetur dicta accusantium. Vitae debitis, quibusdam vel recusandae deleniti placeat dolorem?"})]}),a.jsxs("div",{children:[a.jsx("h3",{children:"Text in einer rechten Spalte"}),a.jsx("p",{children:"Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quod beatae officiis, velit nam dicta quae repellat perspiciatis explicabo illo. Possimus, molestiae deleniti! Exercitationem blanditiis ducimus similique tempora ratione consequuntur eaque!"})]})]})]})})]}),I8={alert:{basic:B8,"card-msg":D8,html:M8}},U8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolAvatar shows a user's avatar with customizable colors. It can be used with or without an image. If no image is defined, the name's initials are shown instead with a configurable background color."})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(gs,{_src:"https://www.w3schools.com/howto/img_avatar.png",_label:"Elke Mustermann"}),a.jsx(gs,{_label:"Elke Mustermann "}),a.jsx(gs,{_label:"Marianne"}),a.jsx(gs,{_color:"#0000FF",_label:"Christian"})]})]}),F8={avatar:{basic:U8}},H8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolBadge shows badges with a label, background color and optional icon."})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(So,{_label:"black"}),a.jsx(So,{_color:"#86ffc6",_label:"teal"}),a.jsx(So,{_color:"#06539e",_label:"blue"}),a.jsx(So,{_color:"#ae0000",_label:"red with icon",_icons:"codicon codicon-smiley"}),a.jsx(So,{_color:"#8b008b",_label:"purple with icon",_icons:"codicon codicon-squirrel"})]})]}),Ri=e=>({_label:e,_smartButton:{_ariaDescription:e,_icons:"codicon codicon-close",_label:"Remove",_on:{onClick:()=>alert("clicked")}}}),V8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows KolBadge with an optional ",a.jsx("code",{children:"smartButton"}),'. The sample defines a "close" button with X-icon a click event listener.']})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(So,{...Ri("black")}),a.jsx(So,{_color:"#86ffc6",...Ri("teal")}),a.jsx(So,{_color:"#06539e",...Ri("blue")}),a.jsx(So,{_color:"#ae0000",_icons:"codicon codicon-smiley",...Ri("red with icon")}),a.jsx(So,{_color:"#8b008b",_icons:"codicon codicon-squirrel",...Ri("purple with icon")})]})]}),K8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample demonstrates the possibility of formatted text in badges via markdown syntax."})}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(So,{_color:"#7db4ebff",_label:"**Bold** and _italic_ Markdown label"}),a.jsx(So,{_color:"#8feb7dff",_label:"This is ~~strikethrough~~ text"}),a.jsx(So,{_color:"#e6ee8eff",_label:"Source code like `y = mx + n` is possible"})]})]}),q8={badge:{basic:H8,button:V8,"formatted-label":K8}},Z8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolBreadcrumb shows a breadcrumb navigation. The sample illustrates a variation of link, text and icon elements."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(As,{_label:"Breadcrumb aus Text-Links",_links:[{_label:"Homepage",_href:"#/back-page"},{_label:"Bottom of the homepage",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]}),a.jsx(As,{_label:"Breadcrumb from icons or text links",_links:[{_label:"Homepage",_icons:"codicon codicon-home",_hideLabel:!0,_href:"#/back-page"},{_label:"Subpage of the start page with very long link test",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]}),a.jsx(As,{_label:"Breadcrumb from icons and text links",_links:[{_label:"Homepage",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"Subpage of the main page and I_am_a_really_long_compound_word_trying_to_break_the_layout",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]})]})]}),P8={breadcrumb:{basic:Z8}},G8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolButtonLink with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(Ge,{_label:"Button Text without area description"}),a.jsx(Ge,{_label:"Button Text",_ariaDescription:"Button Area Description"})]})]});function Io(){const e=Gr.getInstance(document),n=c=>{e.enqueue({description:c||"Hello",label:"Hello",type:"info"})};return{dummyClickEventHandler:()=>{n()},buttonWithTextClickEventHandler:c=>{const d=c.currentTarget.textContent;n(d)}}}const Y8=()=>{const{dummyClickEventHandler:e}=Io(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["KolButtonLink shows an element, that behaves like a button but looks like a link. The sample illustrates KolButtonLink with different display-properties such as ",a.jsx("code",{children:"block"}),", ",a.jsx("code",{children:"inline-block"})," and ",a.jsx("code",{children:"inline"}),". It also demonstrates the disabled-state."]})}),a.jsxs("section",{className:"text-base",children:[a.jsx(ue,{_level:2,_label:"Button-Link with _inline"}),a.jsxs("p",{children:["In this paragraph, a link is inserted that contains no additional attributes. ",a.jsx(Ge,{_label:"Simple Link"})," It is rendered by default as an"," ",a.jsx("strong",{children:"inline element"}),"."]}),a.jsxs("p",{children:["In this paragraph, a link is inserted that is rendered as an inline-block element.",a.jsx(Ge,{className:"m-4",style:{display:"inline-block",border:"1px dotted"},_label:"Simple Link"}),". This allows you to assign width, height, and other properties to it using CSS styles.",a.jsx("br",{}),a.jsx("br",{}),"After that, there is a link that is rendered as a block element.",a.jsx(Ge,{style:{display:"block"},_label:"Simple Link"}),"Therefore, I go over the entire width of the parent element to create a line break."]}),a.jsx(ue,{_level:2,_label:"Button-Link with _inline={false}"}),a.jsx("p",{children:"Use the boolean _inline property to render the link inline (default) or standalone."}),a.jsx("p",{children:a.jsx(Ge,{_label:"Disabled ButtonLink",_disabled:!0,_inline:!1})}),a.jsx("p",{children:a.jsx(Ge,{_label:"With access key",_accessKey:"c",_inline:!1,_on:n})}),a.jsx("p",{children:a.jsx(Ge,{_label:"Disabled ButtonLink",_inline:!1,_shortKey:"s"})})]})]})},J8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolButtonLink with icons in different locations."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Ge,{_icons:"codicon codicon-home",_label:"I am a link with an icon on the left"}),a.jsx(Ge,{_icons:{right:"codicon codicon-home"},_label:"I am a link with an icon on the right"}),a.jsx(Ge,{_icons:{top:"codicon codicon-home"},_label:"I am a link with an icon at the top"}),a.jsx(Ge,{_icons:{bottom:"codicon codicon-home"},_label:"I am a link with icon below"}),a.jsx(Ge,{_icons:{top:"codicon codicon-home",right:"codicon codicon-home",bottom:"codicon codicon-home",left:"codicon codicon-home"},_label:"I am a link with all icons"}),a.jsx(Ge,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"I am a link with icon only"})]})]}),X8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolButtonLink with slot-content instead of a label. The sample uses an image as content."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Ge,{_label:"I am a link that is rendered as text"}),a.jsx(Ge,{_label:"",children:a.jsx("img",{alt:"Presentation of the KoliBri theming",slot:"expert",src:"abgrenzung.jpg",width:"300"})})]})]}),W8={"button-link":{basic:Y8,icons:J8,image:X8,"aria-description":G8}},Q8=()=>{const{dummyClickEventHandler:e}=Io(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows KolButton with"," ",a.jsx(xe,{_label:"access keys",_href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey",_target:"blank"}),". The access keys can be used to trigger the buttons using the keyboard."]})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_label:"With S access key",_accessKey:"S",_on:n}),a.jsx(X,{_label:"Very small b",_accessKey:"b",_on:n}),a.jsx(X,{_label:"Access key does not appear in label",_accessKey:"x",_on:n}),a.jsx(X,{_label:"access key without label",_hideLabel:!0,_accessKey:"a",_icons:"codicon codicon-dashboard",_on:n}),a.jsx(X,{_label:"with inline icons",_icons:{left:"codicon codicon-dashboard",right:"codicon codicon-dashboard"},_accessKey:"n",_on:n})]})]})},eA=()=>{const{dummyClickEventHandler:e}=Io(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolButton with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_label:"Button Text without area description",_on:n}),a.jsx(X,{_label:"Button Text",_ariaDescription:"Button Area Description",_on:n})]})]})},oA=()=>{const{dummyClickEventHandler:e}=Io(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This KolButton sample is used for internal testing purposes: It features multiple buttons with and without icons which are vertically aligned."})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(X,{_label:"Label-Text",_on:n}),a.jsx(X,{_label:"Label-Text",_on:n}),a.jsx(X,{_label:"Label-Text",_on:n}),a.jsx(X,{_icons:"codicon codicon-reactions",_label:"Label-Text with Icon",_on:n})]})]})},_l="kol-tooltip-wc",nA=e=>{const{children:n,...r}=e,{dummyClickEventHandler:i}=Io(),c={onClick:i};return a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_icons:"codicon codicon-home",_label:"Primary",_variant:"primary",_on:c,...r,children:n}),r._hideLabel&&a.jsx(_l,{_label:"Primary"}),a.jsx(X,{_icons:"codicon codicon-heart",_label:"Secondary",_variant:"secondary",_on:c,...r,children:n}),r._hideLabel&&a.jsx(_l,{_label:"Tertiary"}),a.jsx(X,{_icons:"codicon codicon-hubot",_label:"Tertiary",_variant:"tertiary",_on:c,...r,children:n}),r._hideLabel&&a.jsx(_l,{_label:"Normal"}),a.jsx(X,{_icons:"codicon codicon-hubot",_label:"Normal",_variant:"normal",_on:c,...r,children:n}),r._hideLabel&&a.jsx(_l,{_label:"Danger"}),a.jsx(X,{_icons:"codicon codicon-trash",_label:"Danger",_variant:"danger",_on:c,...r,children:n}),r._hideLabel&&a.jsx(_l,{_label:"Ghost"}),a.jsx(X,{_icons:"codicon codicon-reactions",_label:"Ghost",_variant:"ghost",_on:c,...r,children:n}),r._hideLabel&&a.jsx(_l,{_label:"Link"})]})},e0=(e={})=>{const n=[{label:"Button",buttonProps:e},{label:"Button (disabled)",buttonProps:{...e,_disabled:!0}},{label:"Button (hideLabel)",buttonProps:{...e,_hideLabel:!0}},{label:"Button (disabled, hideLabel)",buttonProps:{...e,_disabled:!0,_hideLabel:!0}}];return a.jsx("div",{className:"grid gap-8",children:n.map(({label:r,buttonProps:i},c)=>a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:r}),a.jsx(nA,{...i})]},c))})},tA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolButton shows a button-element. This sample demonstrates the basic usage with its different styling variants, icons, disabled state and hidden labels."})}),a.jsx(e0,{})]}),rA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolButton show a button-element with expert slot."})}),a.jsx(e0,{_label:"",children:a.jsx("span",{slot:"expert",children:"I am more than just a button"})})]}),aA=()=>{const{dummyClickEventHandler:e}=Io(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolButton with icons in all alignments."})}),a.jsx("div",{children:a.jsx(X,{_icons:{bottom:"codicon codicon-arrow-down",left:{icon:"codicon codicon-arrow-left"},top:{style:{"font-size":"200%",transform:"rotate(45deg)"},icon:"codicon codicon-arrow-up"},right:"codicon codicon-arrow-right"},_label:"Label",_on:n,className:"w-10rem"})})]})},lA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample demonstrates how the tooltip adapts its width when containing long text inside a row-reverse flex container. The effect becomes visible when inspecting the layout with DevTools and reducing the available width (e.g. by narrowing the screen)."})}),a.jsx("div",{className:"flex flex-row-reverse",children:a.jsx(X,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"This is a very, very long tooltip text that exceeds the width.",_variant:"primary"})})]}),rb=new WeakMap,zn=e=>(rb.has(e)===!1&&rb.set(e,Bx.createRoot(e)),rb.get(e)),iA=({label:e})=>{const n=Gr.getInstance(document),r=S.useRef(null),i=S.useRef(null),c=()=>{n.enqueue({label:"Edit clicked",description:`The button "edit" has been clicked for ${e}`,type:"info"})},d=()=>{n.enqueue({label:"Delete clicked",description:`The button "delete" has been clicked for ${e}`,type:"warning"})},u=m=>{switch(m.code){case"KeyE":r.current?.kolFocus(),c();return;case"KeyD":i.current?.kolFocus(),d();return}};return a.jsxs("div",{style:{display:"flex",gap:"calc(10rem / var(--kolibri-root-font-size, 16))"},onKeyUp:u,children:[a.jsx(X,{ref:r,_label:"Edit",_shortKey:"e",_on:{onClick:c}}),a.jsx(X,{ref:i,_label:"Delete",_shortKey:"d",_variant:"danger",_on:{onClick:d}})]})},cA=()=>{const{dummyClickEventHandler:e}=Io(),n={onClick:e},r=[{label:"Row 1"},{label:"Row 2"}],i={horizontal:[[{label:"Label",key:"label",textAlign:"left"},{label:"Actions",key:"actions",textAlign:"left",render:(c,d)=>{zn(Zr(c)).render(a.jsx(iA,{label:d.data.label}))}}]]};return a.jsxs(a.Fragment,{children:[a.jsxs(K,{children:[a.jsx("p",{children:"The first sample shows KolButton with short key without functionality. The short key is purely visual. Its functionality needs to be developed separately."}),a.jsx("p",{children:'The second sample showcases a table where each row contains two KolButtons, each with its own shortcut key. To trigger an action, move the focus to any of the "Actions" cells and press "e" or "d." Doing so will activate the corresponding action and display a Toast notification for demonstration purposes.'})]}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_label:"With S short key",_shortKey:"S",_on:n}),a.jsx(X,{_label:"Very small b",_shortKey:"b",_on:n}),a.jsx(X,{_label:"Short key does not appear in label",_shortKey:"x",_on:n}),a.jsx(X,{_label:"short key without label",_hideLabel:!0,_shortKey:"k",_icons:"codicon codicon-dashboard",_on:n}),a.jsx(X,{_label:"with inline icons",_icons:{left:"codicon codicon-dashboard",right:"codicon codicon-dashboard"},_shortKey:"n",_on:n})]}),a.jsx(ue,{_level:2,_label:"Interactive sample",className:"mt"}),a.jsx(ho,{_label:'Move focus within one of the "Actions" cells and press "e" or "d" to trigger an action.',_data:r,_headers:i,_minWidth:"400px"})]})},sA=()=>{const{dummyClickEventHandler:e}=Io(),n={className:"w-8rem",_on:{onClick:e}};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolButton with adjusted widths."})}),a.jsxs("div",{className:"grid gap-14",children:[a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_label:"Primary",_variant:"primary",...n}),a.jsx(X,{_label:"Secondary",_variant:"secondary",...n}),a.jsx(X,{_label:"Normal",_variant:"normal",...n}),a.jsx(X,{_label:"Danger",_variant:"danger",...n}),a.jsx(X,{_label:"Ghost",_variant:"ghost",...n})]}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_disabled:!0,_label:"Primary",_variant:"primary",...n}),a.jsx(X,{_disabled:!0,_label:"Secondary",_variant:"secondary",...n}),a.jsx(X,{_disabled:!0,_label:"Normal",_variant:"normal",...n}),a.jsx(X,{_disabled:!0,_label:"Danger",_variant:"danger",...n}),a.jsx(X,{_disabled:!0,_label:"Ghost",_variant:"ghost",...n})]})]})]})},dA={button:{basic:tA,icons:aA,width:sA,"access-key":Q8,"aria-description":eA,baselined:oA,"short-key":cA,"expert-slot":rA,"row-reverse-tooltip":lA}},uA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolCard shows a card with title and slot content. The second sample features a close button."})}),a.jsxs("div",{className:"w-full grid grid-cols-2 gap-4",children:[a.jsx(Re,{_label:"Card with title and content",children:a.jsx("div",{children:"Card contents."})}),a.jsx(Re,{_label:"Card with closer",_hasCloser:!0,children:a.jsx("p",{children:"This card has a close button."})})]})]}),fA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows cards with all headline levels as title."})}),a.jsxs("div",{className:"w-full grid grid-cols-2 gap-4",children:[a.jsx(Re,{_label:"Card with headline level 0",_level:0,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Re,{_label:"Card with headline level 1",_level:1,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Re,{_label:"Card with headline level 2",_level:2,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Re,{_label:"Card with headline level 3",_level:3,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Re,{_label:"Card with headline level 4",_level:4,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Re,{_label:"Card with headline level 5",_level:5,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Re,{_label:"Card with headline level 6",_level:6,children:a.jsx("div",{children:"Card contents."})})]})]}),bA={card:{basic:uA,headlines:fA}},Cn=({RefComponent:e,showButtons:n=!0,...r})=>a.jsx(kn,{className:"w-full",children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(e,{...r}),n&&a.jsxs("div",{className:"flex gap-4",children:[a.jsx(X,{_label:"Submit",_icons:"codicon codicon-arrow-right",_type:"submit",_variant:"primary"}),a.jsx(X,{_label:"Bunte Icons",_icons:{left:{icon:"codicon codicon-heart-filled",style:{color:"#cc006e"}},right:{icon:"codicon codicon-squirrel",style:{color:"#b41b1b"}}},_type:"submit",_variant:"secondary"}),a.jsx(X,{_label:"Reset",_type:"reset",_variant:"tertiary"}),a.jsx(X,{_label:"Help",_variant:"ghost"})]})]})});function $n({children:e}){const[n]=Pr(),r=n.has("noColumns");return a.jsx("div",{className:r?"":"grid md:grid-cols-2 gap-4",children:e})}const o0=JSON.parse('[{"id":4,"alpha2":"af","alpha3":"afg","name":"Afghanistan"},{"id":818,"alpha2":"eg","alpha3":"egy","name":"Ägypten"},{"id":8,"alpha2":"al","alpha3":"alb","name":"Albanien"},{"id":12,"alpha2":"dz","alpha3":"dza","name":"Algerien"},{"id":20,"alpha2":"ad","alpha3":"and","name":"Andorra"},{"id":24,"alpha2":"ao","alpha3":"ago","name":"Angola"},{"id":28,"alpha2":"ag","alpha3":"atg","name":"Antigua und Barbuda"},{"id":226,"alpha2":"gq","alpha3":"gnq","name":"Äquatorialguinea"},{"id":32,"alpha2":"ar","alpha3":"arg","name":"Argentinien"},{"id":51,"alpha2":"am","alpha3":"arm","name":"Armenien"},{"id":31,"alpha2":"az","alpha3":"aze","name":"Aserbaidschan"},{"id":231,"alpha2":"et","alpha3":"eth","name":"Äthiopien"},{"id":36,"alpha2":"au","alpha3":"aus","name":"Australien"},{"id":44,"alpha2":"bs","alpha3":"bhs","name":"Bahamas"},{"id":48,"alpha2":"bh","alpha3":"bhr","name":"Bahrain"},{"id":50,"alpha2":"bd","alpha3":"bgd","name":"Bangladesch"},{"id":52,"alpha2":"bb","alpha3":"brb","name":"Barbados"},{"id":112,"alpha2":"by","alpha3":"blr","name":"Belarus"},{"id":56,"alpha2":"be","alpha3":"bel","name":"Belgien"},{"id":84,"alpha2":"bz","alpha3":"blz","name":"Belize"},{"id":204,"alpha2":"bj","alpha3":"ben","name":"Benin"},{"id":64,"alpha2":"bt","alpha3":"btn","name":"Bhutan"},{"id":68,"alpha2":"bo","alpha3":"bol","name":"Bolivien"},{"id":70,"alpha2":"ba","alpha3":"bih","name":"Bosnien und Herzegowina"},{"id":72,"alpha2":"bw","alpha3":"bwa","name":"Botswana"},{"id":76,"alpha2":"br","alpha3":"bra","name":"Brasilien"},{"id":96,"alpha2":"bn","alpha3":"brn","name":"Brunei"},{"id":100,"alpha2":"bg","alpha3":"bgr","name":"Bulgarien"},{"id":854,"alpha2":"bf","alpha3":"bfa","name":"Burkina Faso"},{"id":108,"alpha2":"bi","alpha3":"bdi","name":"Burundi"},{"id":152,"alpha2":"cl","alpha3":"chl","name":"Chile"},{"id":156,"alpha2":"cn","alpha3":"chn","name":"China, Volksrepublik"},{"id":188,"alpha2":"cr","alpha3":"cri","name":"Costa Rica"},{"id":208,"alpha2":"dk","alpha3":"dnk","name":"Dänemark"},{"id":276,"alpha2":"de","alpha3":"deu","name":"Deutschland"},{"id":212,"alpha2":"dm","alpha3":"dma","name":"Dominica"},{"id":214,"alpha2":"do","alpha3":"dom","name":"Dominikanische Republik"},{"id":262,"alpha2":"dj","alpha3":"dji","name":"Dschibuti"},{"id":218,"alpha2":"ec","alpha3":"ecu","name":"Ecuador"},{"id":384,"alpha2":"ci","alpha3":"civ","name":"Elfenbeinküste"},{"id":222,"alpha2":"sv","alpha3":"slv","name":"El Salvador"},{"id":232,"alpha2":"er","alpha3":"eri","name":"Eritrea"},{"id":233,"alpha2":"ee","alpha3":"est","name":"Estland"},{"id":748,"alpha2":"sz","alpha3":"swz","name":"Eswatini"},{"id":242,"alpha2":"fj","alpha3":"fji","name":"Fidschi"},{"id":246,"alpha2":"fi","alpha3":"fin","name":"Finnland"},{"id":250,"alpha2":"fr","alpha3":"fra","name":"Frankreich"},{"id":266,"alpha2":"ga","alpha3":"gab","name":"Gabun"},{"id":270,"alpha2":"gm","alpha3":"gmb","name":"Gambia"},{"id":268,"alpha2":"ge","alpha3":"geo","name":"Georgien"},{"id":288,"alpha2":"gh","alpha3":"gha","name":"Ghana"},{"id":308,"alpha2":"gd","alpha3":"grd","name":"Grenada"},{"id":300,"alpha2":"gr","alpha3":"grc","name":"Griechenland"},{"id":320,"alpha2":"gt","alpha3":"gtm","name":"Guatemala"},{"id":324,"alpha2":"gn","alpha3":"gin","name":"Guinea"},{"id":624,"alpha2":"gw","alpha3":"gnb","name":"Guinea-Bissau"},{"id":328,"alpha2":"gy","alpha3":"guy","name":"Guyana"},{"id":332,"alpha2":"ht","alpha3":"hti","name":"Haiti"},{"id":340,"alpha2":"hn","alpha3":"hnd","name":"Honduras"},{"id":356,"alpha2":"in","alpha3":"ind","name":"Indien"},{"id":360,"alpha2":"id","alpha3":"idn","name":"Indonesien"},{"id":368,"alpha2":"iq","alpha3":"irq","name":"Irak"},{"id":364,"alpha2":"ir","alpha3":"irn","name":"Iran"},{"id":372,"alpha2":"ie","alpha3":"irl","name":"Irland"},{"id":352,"alpha2":"is","alpha3":"isl","name":"Island"},{"id":376,"alpha2":"il","alpha3":"isr","name":"Israel"},{"id":380,"alpha2":"it","alpha3":"ita","name":"Italien"},{"id":388,"alpha2":"jm","alpha3":"jam","name":"Jamaika"},{"id":392,"alpha2":"jp","alpha3":"jpn","name":"Japan"},{"id":887,"alpha2":"ye","alpha3":"yem","name":"Jemen"},{"id":400,"alpha2":"jo","alpha3":"jor","name":"Jordanien"},{"id":116,"alpha2":"kh","alpha3":"khm","name":"Kambodscha"},{"id":120,"alpha2":"cm","alpha3":"cmr","name":"Kamerun"},{"id":124,"alpha2":"ca","alpha3":"can","name":"Kanada"},{"id":132,"alpha2":"cv","alpha3":"cpv","name":"Kap Verde"},{"id":398,"alpha2":"kz","alpha3":"kaz","name":"Kasachstan"},{"id":634,"alpha2":"qa","alpha3":"qat","name":"Katar"},{"id":404,"alpha2":"ke","alpha3":"ken","name":"Kenia"},{"id":417,"alpha2":"kg","alpha3":"kgz","name":"Kirgisistan"},{"id":296,"alpha2":"ki","alpha3":"kir","name":"Kiribati"},{"id":170,"alpha2":"co","alpha3":"col","name":"Kolumbien"},{"id":174,"alpha2":"km","alpha3":"com","name":"Komoren"},{"id":180,"alpha2":"cd","alpha3":"cod","name":"Kongo, Demokratische Republik"},{"id":178,"alpha2":"cg","alpha3":"cog","name":"Kongo, Republik"},{"id":408,"alpha2":"kp","alpha3":"prk","name":"Korea, Nord (Nordkorea)"},{"id":410,"alpha2":"kr","alpha3":"kor","name":"Korea, Süd (Südkorea)"},{"id":191,"alpha2":"hr","alpha3":"hrv","name":"Kroatien"},{"id":192,"alpha2":"cu","alpha3":"cub","name":"Kuba"},{"id":414,"alpha2":"kw","alpha3":"kwt","name":"Kuwait"},{"id":418,"alpha2":"la","alpha3":"lao","name":"Laos"},{"id":426,"alpha2":"ls","alpha3":"lso","name":"Lesotho"},{"id":428,"alpha2":"lv","alpha3":"lva","name":"Lettland"},{"id":422,"alpha2":"lb","alpha3":"lbn","name":"Libanon"},{"id":430,"alpha2":"lr","alpha3":"lbr","name":"Liberia"},{"id":434,"alpha2":"ly","alpha3":"lby","name":"Libyen"},{"id":438,"alpha2":"li","alpha3":"lie","name":"Liechtenstein"},{"id":440,"alpha2":"lt","alpha3":"ltu","name":"Litauen"},{"id":442,"alpha2":"lu","alpha3":"lux","name":"Luxemburg"},{"id":450,"alpha2":"mg","alpha3":"mdg","name":"Madagaskar"},{"id":454,"alpha2":"mw","alpha3":"mwi","name":"Malawi"},{"id":458,"alpha2":"my","alpha3":"mys","name":"Malaysia"},{"id":462,"alpha2":"mv","alpha3":"mdv","name":"Malediven"},{"id":466,"alpha2":"ml","alpha3":"mli","name":"Mali"},{"id":470,"alpha2":"mt","alpha3":"mlt","name":"Malta"},{"id":504,"alpha2":"ma","alpha3":"mar","name":"Marokko"},{"id":584,"alpha2":"mh","alpha3":"mhl","name":"Marshallinseln"},{"id":478,"alpha2":"mr","alpha3":"mrt","name":"Mauretanien"},{"id":480,"alpha2":"mu","alpha3":"mus","name":"Mauritius"},{"id":484,"alpha2":"mx","alpha3":"mex","name":"Mexiko"},{"id":583,"alpha2":"fm","alpha3":"fsm","name":"Mikronesien"},{"id":498,"alpha2":"md","alpha3":"mda","name":"Moldau"},{"id":492,"alpha2":"mc","alpha3":"mco","name":"Monaco"},{"id":496,"alpha2":"mn","alpha3":"mng","name":"Mongolei"},{"id":499,"alpha2":"me","alpha3":"mne","name":"Montenegro"},{"id":508,"alpha2":"mz","alpha3":"moz","name":"Mosambik"},{"id":104,"alpha2":"mm","alpha3":"mmr","name":"Myanmar"},{"id":516,"alpha2":"na","alpha3":"nam","name":"Namibia"},{"id":520,"alpha2":"nr","alpha3":"nru","name":"Nauru"},{"id":524,"alpha2":"np","alpha3":"npl","name":"Nepal"},{"id":554,"alpha2":"nz","alpha3":"nzl","name":"Neuseeland"},{"id":558,"alpha2":"ni","alpha3":"nic","name":"Nicaragua"},{"id":528,"alpha2":"nl","alpha3":"nld","name":"Niederlande"},{"id":562,"alpha2":"ne","alpha3":"ner","name":"Niger"},{"id":566,"alpha2":"ng","alpha3":"nga","name":"Nigeria"},{"id":807,"alpha2":"mk","alpha3":"mkd","name":"Nordmazedonien"},{"id":578,"alpha2":"no","alpha3":"nor","name":"Norwegen"},{"id":512,"alpha2":"om","alpha3":"omn","name":"Oman"},{"id":40,"alpha2":"at","alpha3":"aut","name":"Österreich"},{"id":626,"alpha2":"tl","alpha3":"tls","name":"Osttimor"},{"id":586,"alpha2":"pk","alpha3":"pak","name":"Pakistan"},{"id":585,"alpha2":"pw","alpha3":"plw","name":"Palau"},{"id":591,"alpha2":"pa","alpha3":"pan","name":"Panama"},{"id":598,"alpha2":"pg","alpha3":"png","name":"Papua-Neuguinea"},{"id":600,"alpha2":"py","alpha3":"pry","name":"Paraguay"},{"id":604,"alpha2":"pe","alpha3":"per","name":"Peru"},{"id":608,"alpha2":"ph","alpha3":"phl","name":"Philippinen"},{"id":616,"alpha2":"pl","alpha3":"pol","name":"Polen"},{"id":620,"alpha2":"pt","alpha3":"prt","name":"Portugal"},{"id":646,"alpha2":"rw","alpha3":"rwa","name":"Ruanda"},{"id":642,"alpha2":"ro","alpha3":"rou","name":"Rumänien"},{"id":643,"alpha2":"ru","alpha3":"rus","name":"Russland"},{"id":90,"alpha2":"sb","alpha3":"slb","name":"Salomonen"},{"id":894,"alpha2":"zm","alpha3":"zmb","name":"Sambia"},{"id":882,"alpha2":"ws","alpha3":"wsm","name":"Samoa"},{"id":674,"alpha2":"sm","alpha3":"smr","name":"San Marino"},{"id":678,"alpha2":"st","alpha3":"stp","name":"São Tomé und Príncipe"},{"id":682,"alpha2":"sa","alpha3":"sau","name":"Saudi-Arabien"},{"id":752,"alpha2":"se","alpha3":"swe","name":"Schweden"},{"id":756,"alpha2":"ch","alpha3":"che","name":"Schweiz"},{"id":686,"alpha2":"sn","alpha3":"sen","name":"Senegal"},{"id":688,"alpha2":"rs","alpha3":"srb","name":"Serbien"},{"id":690,"alpha2":"sc","alpha3":"syc","name":"Seychellen"},{"id":694,"alpha2":"sl","alpha3":"sle","name":"Sierra Leone"},{"id":716,"alpha2":"zw","alpha3":"zwe","name":"Simbabwe"},{"id":702,"alpha2":"sg","alpha3":"sgp","name":"Singapur"},{"id":703,"alpha2":"sk","alpha3":"svk","name":"Slowakei"},{"id":705,"alpha2":"si","alpha3":"svn","name":"Slowenien"},{"id":706,"alpha2":"so","alpha3":"som","name":"Somalia"},{"id":724,"alpha2":"es","alpha3":"esp","name":"Spanien"},{"id":144,"alpha2":"lk","alpha3":"lka","name":"Sri Lanka"},{"id":659,"alpha2":"kn","alpha3":"kna","name":"St. Kitts und Nevis"},{"id":662,"alpha2":"lc","alpha3":"lca","name":"St. Lucia"},{"id":670,"alpha2":"vc","alpha3":"vct","name":"St. Vincent und die Grenadinen"},{"id":710,"alpha2":"za","alpha3":"zaf","name":"Südafrika"},{"id":729,"alpha2":"sd","alpha3":"sdn","name":"Sudan"},{"id":728,"alpha2":"ss","alpha3":"ssd","name":"Südsudan"},{"id":740,"alpha2":"sr","alpha3":"sur","name":"Suriname"},{"id":760,"alpha2":"sy","alpha3":"syr","name":"Syrien"},{"id":762,"alpha2":"tj","alpha3":"tjk","name":"Tadschikistan"},{"id":834,"alpha2":"tz","alpha3":"tza","name":"Tansania"},{"id":764,"alpha2":"th","alpha3":"tha","name":"Thailand"},{"id":768,"alpha2":"tg","alpha3":"tgo","name":"Togo"},{"id":776,"alpha2":"to","alpha3":"ton","name":"Tonga"},{"id":780,"alpha2":"tt","alpha3":"tto","name":"Trinidad und Tobago"},{"id":148,"alpha2":"td","alpha3":"tcd","name":"Tschad"},{"id":203,"alpha2":"cz","alpha3":"cze","name":"Tschechien"},{"id":788,"alpha2":"tn","alpha3":"tun","name":"Tunesien"},{"id":792,"alpha2":"tr","alpha3":"tur","name":"Türkei"},{"id":795,"alpha2":"tm","alpha3":"tkm","name":"Turkmenistan"},{"id":798,"alpha2":"tv","alpha3":"tuv","name":"Tuvalu"},{"id":800,"alpha2":"ug","alpha3":"uga","name":"Uganda"},{"id":804,"alpha2":"ua","alpha3":"ukr","name":"Ukraine"},{"id":348,"alpha2":"hu","alpha3":"hun","name":"Ungarn"},{"id":858,"alpha2":"uy","alpha3":"ury","name":"Uruguay"},{"id":860,"alpha2":"uz","alpha3":"uzb","name":"Usbekistan"},{"id":548,"alpha2":"vu","alpha3":"vut","name":"Vanuatu"},{"id":862,"alpha2":"ve","alpha3":"ven","name":"Venezuela"},{"id":784,"alpha2":"ae","alpha3":"are","name":"Vereinigte Arabische Emirate"},{"id":840,"alpha2":"us","alpha3":"usa","name":"Vereinigte Staaten"},{"id":826,"alpha2":"gb","alpha3":"gbr","name":"Vereinigtes Königreich"},{"id":704,"alpha2":"vn","alpha3":"vnm","name":"Vietnam"},{"id":140,"alpha2":"cf","alpha3":"caf","name":"Zentralafrikanische Republik"},{"id":196,"alpha2":"cy","alpha3":"cyp","name":"Zypern"}]'),nt=[...o0.map(e=>({label:e.name,value:e.alpha2}))],tt=[...o0.map(e=>e.name)],v1=e=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(jn,{...e,_hint:An,_label:"Label",_suggestions:tt,_value:"Deutschland"}),a.jsx(jn,{...e,_label:"Disabled",_suggestions:tt,_value:"Deutschland",_disabled:!0}),a.jsx(jn,{...e,_suggestions:tt,_msg:{_type:"error",_description:Fe},_touched:!0,_label:"Label",_placeholder:"Placeholder",_required:!0}),a.jsx(jn,{...e,_label:"With access key",_suggestions:tt,_value:"Deutschland",_accessKey:"c"}),a.jsx(jn,{...e,_label:"With short key",_suggestions:tt,_value:"Deutschland",_shortKey:"s"})]}),mA=e=>a.jsxs($n,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(v1,{...e})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(v1,{...e,_hideLabel:!0})]})]}),hA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolCombobox combines a text input with a suggestion list, enabling users to either type in a value or to select on of the suggestions."})}),a.jsx(Cn,{RefComponent:mA,showButtons:!1})]}),pA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"A HTML only KolCombobox."})}),a.jsx(jn,{_label:"With string array in html",_suggestions:"['Herr','Frau','Firma']",_value:"Herr"})]}),kA={combobox:{basic:hA,html:pA}},vA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["KolDetails hides its content until opened. The open state can be toggled either by clicking the label or by setting the ",a.jsx("code",{children:"_open"}),"-prop programmatically. The sample includes an initially open state and a disabled but open Details component."]})}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ir,{_label:"Closed initially",children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt."}),a.jsx(ir,{_disabled:!0,_label:"Open initially (disabled)",_open:!0,children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt."}),a.jsx(ir,{_label:"Open initially",_open:!0,children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt."})]})]}),gA={details:{basic:vA}},_A=["left","top","right","bottom"].map(e=>({label:e,value:e})),Em=({value:e="left",onChange:n})=>a.jsx("div",{className:"grid gap-4",children:a.jsx("div",{className:"container my-4 d-grid gap-4",children:a.jsx(Oo,{_label:"Drawer alignment",_value:e,_options:_A,_orientation:"horizontal",_on:{onChange:n}})})}),xA=()=>{const[e]=Pr(),n=e.get("align"),r=e.get("closer")==="true",i=S.useRef(null),[c,d]=S.useState(n||"left"),[u,m]=S.useState(r);return S.useEffect(()=>{n&&i.current?.open()},[n]),a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolDrawer shows a dialog attached to one of the sides of the viewport, when opened. This sample illustrates the four alignments."})}),a.jsx(Em,{value:c,onChange:(h,p)=>d(p)}),a.jsx(ao,{_label:"Drawer has closer",className:"mb-4",_checked:u,_on:{onInput:(h,p)=>{m(p===!0)}}}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(am,{ref:i,_label:"I am a drawer",_align:c,_hasCloser:u,_on:{onClose:()=>console.log("Drawer onClose triggered!")},children:a.jsxs("div",{className:c==="left"||c==="right"?"drawer-content-vertical":"",children:[a.jsx("p",{className:"mt-0",children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua."}),a.jsx(X,{_label:"Close drawer",_on:{onClick:()=>i.current?.close()}})]})}),a.jsx(X,{_label:"Open drawer",_on:{onClick:()=>i.current?.open()}})]})]})},yA=()=>{const[e]=Pr(),n=e.get("align"),[r,i]=S.useState(!1),[c,d]=S.useState(n||"left");return a.jsxs("div",{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows the KolDrawer controlled by the property ",a.jsx("code",{children:"_open"})," instead of methods."]})}),a.jsx(Em,{value:c,onChange:(u,m)=>d(m)}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(am,{_open:r,_align:c,_label:"I'm a controlled drawer",_on:{onClose:()=>i(!1)},children:a.jsxs("div",{children:[a.jsx("p",{children:"Lorem ipsum dolor sit amet,"}),a.jsx(X,{_label:"Close drawer",_on:{onClick:()=>i(!1)}})]})}),a.jsx(X,{_label:"Open drawer",_on:{onClick:()=>i(!0)}})]})]})},wA=()=>{const e=S.useRef(null),[n,r]=S.useState("bottom"),[i,c]=S.useState(!0);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample demonstrates how KolDrawer handles content that exceeds the drawer dimensions and shows the correct way to handle overflow. Use the "Enable Overflow Handling" toggle to see the difference between problematic behavior (content exceeding drawer bounds) and the proper solution (overflow handling within the slot content).'})}),a.jsxs("div",{className:"flex flex-col gap-4 mb-4",children:[a.jsx(Em,{value:n,onChange:(d,u)=>r(u)}),a.jsx(ao,{_label:"Enable Overflow Handling (Recommended)",_checked:i,_on:{onChange:(d,u)=>c(!!u)}})]}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(am,{ref:e,_label:"Scrollable Drawer",_align:n,children:i?a.jsx("div",{style:{width:n==="left"||n==="right"?"90vw":void 0,height:n==="top"||n==="bottom"?"90vh":void 0,overflow:"auto",padding:"0",border:"1px solid #999"},children:a.jsxs("div",{style:{width:n==="left"||n==="right"?"150vw":void 0,height:n==="top"||n==="bottom"?"150vh":void 0,background:"linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f0 75%), linear-gradient(-45deg, transparent 75%, #f0f0f0 75%)",backgroundSize:"20px 20px",backgroundPosition:"0 0, 0 10px, 10px -10px, -10px 0px",border:"2px dashed #ccc",padding:"20px",display:"flex",flexDirection:"column",gap:"20px"},children:[a.jsx("p",{children:"✅ Content with proper overflow handling - scrollable within drawer bounds"}),a.jsxs("div",{children:[a.jsx("h3",{children:"Large Content Area (Scrollable)"}),a.jsxs("p",{children:["Container: ",n==="left"||n==="right"?"400px wide":"90vw wide"," ×"," ",n==="top"||n==="bottom"?"90vh high":"400px high"]}),a.jsxs("p",{children:["Content: ",n==="left"||n==="right"?"150vw wide":"400px wide"," ×"," ",n==="top"||n==="bottom"?"150vh high":"400px high"]}),a.jsxs("p",{children:[a.jsx("strong",{children:"Overflow Handling:"})," Enabled - Container has fixed size with overflow: auto"]}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."}),a.jsx("p",{children:"With overflow handling enabled, this content scrolls properly within the drawer container. You can scroll horizontally/vertically to see all content."}),a.jsx("div",{style:{marginTop:"auto",paddingTop:"40px"},children:a.jsx(X,{_label:"Close drawer",_on:{onClick:()=>e.current?.close()}})})]})]})}):a.jsxs("div",{style:{width:n==="left"||n==="right"?"150vw":"400px",height:n==="top"||n==="bottom"?"150vh":"400px",background:"linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f0 75%), linear-gradient(-45deg, transparent 75%, #f0f0f0 75%)",backgroundSize:"20px 20px",backgroundPosition:"0 0, 0 10px, 10px -10px, -10px 0px",border:"2px dashed #ccc",padding:"20px",display:"flex",flexDirection:"column",gap:"20px"},children:[a.jsx("p",{children:"❌ Content exceeding drawer bounds - problematic behavior"}),a.jsxs("div",{children:[a.jsx("h3",{children:"Large Content Area"}),a.jsxs("p",{children:["Width: ",n==="left"||n==="right"?"150vw (exceeds drawer width)":"400px"]}),a.jsxs("p",{children:["Height: ",n==="top"||n==="bottom"?"150vh (exceeds drawer height)":"400px"]}),a.jsxs("p",{children:[a.jsx("strong",{children:"Overflow Handling:"})," Disabled - Content extends beyond drawer boundaries"]}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."}),a.jsx("p",{children:"Without overflow handling, this content may extend beyond the drawer boundaries, causing layout issues."}),a.jsx("div",{style:{marginTop:"auto",paddingTop:"40px"},children:a.jsx(X,{_label:"Close drawer",_on:{onClick:()=>e.current?.close()}})})]})]})}),a.jsx(X,{_label:"Open scrollable drawer",_on:{onClick:()=>e.current?.open()}})]})]})},zA={drawer:{basic:xA,controlled:yA,scrolled:wA}},SA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolForm renders a form around the input components provided in a slot. This sample shows a basic form with three input fields."})}),a.jsx(kn,{className:"w-full",children:a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Le,{id:"input1",_label:"Input 1"}),a.jsx(Le,{id:"input2",_label:"Input 2"}),a.jsx(Le,{id:"input3",_label:"Input 3"})]})})]}),jA=()=>{const e=S.useRef(null),n=()=>{e.current?.focusErrorList()};return S.useEffect(()=>{e.current?.focusErrorList()},[]),a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows a form with error messages."})}),a.jsx(kn,{className:"w-full",ref:e,_on:{onSubmit:n},_errorList:[{message:"Error in Input 2",selector:"#input2"},{message:"Error in Input 3",selector:()=>alert("Error in Input 3")}],children:a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Le,{id:"input1",_label:"Input 1"}),a.jsx(Le,{id:"input2",_label:"Input 2",_touched:!0,_msg:{_description:"Input error",_type:"error"}}),a.jsx(Le,{id:"input3",_label:"Input 3",_touched:!0,_msg:{_description:"Input error",_type:"error"}}),a.jsx("div",{children:a.jsx(X,{_label:"ScrollTo",_type:"submit"})})]})})]})},TA={form:{basic:SA,"error-list":jA}},n0=`public-ui.v${Vb.version}`;class AA{store=new Map;setItem(n,r){this.store.set(n,r)}getItem(n){return this.store.get(n)||null}}const Xi={darkMode:!1,theme:"default"};let Kb;function t0(e){Kb=e;const n=Kb.getItem(n0);try{const r=JSON.parse(n);typeof r=="object"&&r!==null&&(Xi.darkMode=r.darkMode===!0,Tm(r.theme)&&(Xi.theme=r.theme))}catch{}}t0(new AA);const CA=()=>{Kb.setItem(n0,JSON.stringify(Xi))},EA=e=>{if(Tm(e))Xi.theme=e,CA();else throw new Error(`The theme identifier "${e}" is not valid or an available option.`)},Ps=()=>`${Xi.theme}`,qb=e=>{if(Tm(e))return Am.find(n=>n.value===e)?.label;throw new Error(`The theme identifier "${e}" is not valid or an available option.`)},LA=[{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"}];function OA({_on:e,...n}){const{dummyClickEventHandler:r}=Io(),i={onClick:r};return a.jsx(X,{...n,_on:i})}const $A={horizontal:[[{label:"Workdays",colSpan:5},{label:"Weekend",colSpan:2}],[{key:"monday",label:"Monday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),zn(r).render(a.jsx(OA,{_label:n.label,style:{fontSize:"75%"}}))},compareFn:(e,n)=>e.monday<n.monday?-1:e.monday>n.monday?1:0,sortDirection:"ASC",textAlign:"right"},{key:"tuesday",label:"Tuesday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),zn(r).render(a.jsx(So,{_color:"#060",_label:n.label}))},compareFn:(e,n)=>e.tuesday<n.tuesday?-1:e.tuesday>n.tuesday?1:0,sortDirection:"DESC"},{key:"wednesday",label:"Wednesday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),zn(r).render(a.jsx(So,{_color:"#006",_label:n.label}))}},{key:"thursday",label:"Thursday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),zn(r).render(a.jsx(So,{_color:"#600",_label:n.label}))}},{key:"friday",label:"Friday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),zn(r).render(a.jsx(So,{_color:"#303",_label:n.label}))}},{key:"saturday",label:"Saturday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),zn(r).render(a.jsx(So,{_color:"#330",_label:n.label}))}},{key:"sunday",label:"Sunday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),zn(r).render(a.jsx(So,{_color:"#033",_label:n.label}))}}]],vertical:[[{label:"Early"},{label:"Noon"},{label:"Evening"},{label:"Night"}]]},NA=()=>{const{dummyClickEventHandler:e}=Io(),n={onClick:e};return a.jsxs("div",{className:"grid gap-4",children:[a.jsxs("div",{className:"grid gap-4 md:grid-cols-[auto_1fr_1fr] items-center",children:[a.jsx(Cs,{className:"block w-75px",_labeled:!1}),a.jsx(ue,{_label:"",_level:1,children:a.jsxs("span",{slot:"expert",children:["Kolibri-Handout ",a.jsxs("small",{children:["for ",qb(Ps())]})]})}),a.jsxs(ir,{_label:"Abstract",_open:!0,children:["The handout shows a selection of KoliBri components in the style of ",a.jsx("strong",{children:qb(Ps())}),". Since KoliBri offers self-contained, accessible web components that can be customized to your own corporate design using theming, you don't have to develop these components yourself. For more information read our documentation and follow us (",a.jsx(xe,{_label:"https://github.com/public-ui/kolibri",_href:"https://github.com/public-ui/kolibri",_target:"_blank"}),")."]})]}),a.jsxs("div",{className:"grid gap-4 sm:grid-cols-6 md:grid-cols-6 xl:grid-cols-12",children:[a.jsx(Re,{className:"col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2",_label:"Heading",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx(ue,{_label:"Heading Level 1",_level:1}),a.jsx(ue,{_label:"Heading Level 2",_level:2}),a.jsx(ue,{_label:"Heading Level 3",_level:3}),a.jsx(ue,{_label:"Heading Level 4",_level:4}),a.jsx(ue,{_label:"Heading Level 5",_level:5}),a.jsx(ue,{_label:"Heading Level 6",_level:6}),a.jsx(ue,{_label:"Heading Level 6",_secondaryHeadline:"Lessons",_level:6})]})}),a.jsx(Re,{className:"col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2",_label:"Abbreviation and Progress",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsxs("p",{children:["I am ",a.jsx(Vi,{_label:"as an example",children:"e.g."})," an abbreviation."]}),a.jsxs("p",{children:["I am ",a.jsx(Vi,{children:"e.g."})," an abbreviation without label."]}),a.jsx(ar,{_variant:"bar",_max:100,_value:33,_label:"Progress"}),a.jsx(ar,{_variant:"cycle",_max:100,_value:66,_label:"Progress"})]})}),a.jsx(Re,{className:"col-span-6 sm:col-span-6 md:col-span-6 xl:col-span-3",_label:"Button, LinkButton and Tab",_level:2,children:a.jsx("div",{slot:"",className:"grid gap-2 p-2",children:a.jsxs(dr,{_label:"",_selected:0,_tabs:[{_label:"Button"},{_label:"LinkButton"},{_label:"Disabled Tab",_disabled:!0}],children:[a.jsxs("div",{className:"grid gap-2 py-2",children:[a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(X,{_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary",_on:n}),a.jsx(X,{_disabled:!0,_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary",_on:n}),a.jsx(X,{_hideLabel:!0,_icons:"codicon codicon-arrow-left",_label:"primary",_variant:"primary",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(X,{_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary",_on:n}),a.jsx(X,{_disabled:!0,_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary",_on:n}),a.jsx(X,{_hideLabel:!0,_icons:"codicon codicon-arrow-right",_label:"secondary",_variant:"secondary",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(X,{_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger",_on:n}),a.jsx(X,{_disabled:!0,_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger",_on:n}),a.jsx(X,{_hideLabel:!0,_icons:"codicon codicon-arrow-up",_label:"danger",_variant:"danger",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(X,{_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal",_on:n}),a.jsx(X,{_disabled:!0,_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal",_on:n}),a.jsx(X,{_hideLabel:!0,_icons:"codicon codicon-arrow-down",_label:"normal",_variant:"normal",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(X,{_label:"ghost",_variant:"ghost"}),a.jsx(X,{_disabled:!0,_label:"ghost",_variant:"ghost"}),a.jsx(X,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"ghost",_variant:"ghost",_on:n})]})]}),a.jsxs("div",{className:"grid gap-2 py-2",children:[a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(We,{_href:"#/back-page",_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary"}),a.jsx(We,{_href:"#/back-page",_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary"}),a.jsx(We,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-left",_label:"primary",_variant:"primary"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(We,{_href:"#/back-page",_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary"}),a.jsx(We,{_href:"#/back-page",_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary"}),a.jsx(We,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-right",_label:"secondary",_variant:"secondary"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(We,{_href:"#/back-page",_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger"}),a.jsx(We,{_href:"#/back-page",_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger"}),a.jsx(We,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-up",_label:"danger",_variant:"danger"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(We,{_href:"#/back-page",_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal"}),a.jsx(We,{_href:"#/back-page",_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal"}),a.jsx(We,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-down",_label:"normal",_variant:"normal"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(We,{_href:"#/back-page",_label:"ghost",_variant:"ghost"}),a.jsx(We,{_href:"#/back-page",_label:"ghost",_variant:"ghost"}),a.jsx(We,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"ghost",_variant:"ghost"})]})]})]})})}),a.jsx(Re,{className:"col-span-6 sm:col-span-6 md:col-span-2 xl:col-span-2",_label:"Accordion, Link and ButtonLink",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx(ln,{_label:"Links",_level:3,_open:!0,children:a.jsxs("div",{className:"grid gap-2",slot:"",children:[a.jsx(xe,{_href:"#/back-page",_label:"Link text"}),a.jsx(xe,{_href:"#/back-page",_icons:"codicon codicon-home",_label:"Link text with icon"}),a.jsx(xe,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link text with icon only"}),a.jsx(xe,{_href:"/",_label:"Visited link"}),a.jsxs("p",{children:["I am a ",a.jsx(xe,{_href:"#/back-page",_label:"externer Link",_target:"w3c"})," in the running text."]})]})}),a.jsx(ln,{_label:"ButtonLinks",_level:3,children:a.jsxs("div",{className:"grid gap-2",slot:"",children:[a.jsx(Ge,{_label:"Link text"}),a.jsx(Ge,{_icons:"codicon codicon-home",_label:"Link text with icon"}),a.jsx(Ge,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link text with icon only"}),a.jsxs("p",{children:["I am a ",a.jsx(Ge,{_label:"Link"})," in the running text."]}),a.jsx(Ge,{_icons:{left:"codicon codicon-arrow-left",right:"codicon codicon-arrow-right",top:"codicon codicon-arrow-up",bottom:"codicon codicon-arrow-down"},_label:"Icons"})]})})]})}),a.jsx(Re,{className:"col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-3",_label:"Alert",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx(Sn,{_label:"Default message",_type:"default",children:"This is the text of the alert."}),a.jsx(Sn,{_type:"success",children:"Success message text"}),a.jsx(Sn,{_type:"error",_hasCloser:!0,children:"This is a error message text."}),a.jsx(Sn,{_label:"Info card",_type:"info",_variant:"card",children:"This is the text of the alert."}),a.jsx(Sn,{_label:"Warning card",_type:"warning",_hasCloser:!0,_variant:"card",children:"This is the text of the alert."})]})}),a.jsx(Re,{className:"col-span-6 sm:col-span-6 md:col-span-2 xl:col-span-2",_label:"Nav and Breadcrumb",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx("div",{children:a.jsx(jl,{_label:"Main navigation",_links:[{_label:"Homepage",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"2 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_active:!0,_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_label:"3.1 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.2 External navigation point",_icons:"codicon codicon-home",_href:"#/back-page",_target:"_blank"},{_label:"3.3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_active:!0,_label:"3.3.1 Navigation point (active)",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.3.2 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"}]}]},{_label:"3 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"}],_hasCompactButton:!0})}),a.jsx("div",{children:a.jsx(As,{_label:"Breadcrumb aus Text-Links",_links:[{_label:"Homepage",_href:"#/back-page"},{_label:"Bottom of the homepage",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]})})]})}),a.jsx(Re,{className:"col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5",_label:"Input",_level:2,children:a.jsx(kn,{slot:"",children:a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 md:grid-cols-3 p-2",children:[a.jsx(Xo,{_label:"Color"}),a.jsx(Mo,{_label:"Upload file"}),a.jsx(Ao,{_label:"Number input"}),a.jsx(He,{_type:"date",_label:"Date"}),a.jsx(Wo,{_icons:"{'left': 'codicon codicon-home'}",_msg:{_type:"error",_description:"Test of an error message"},_touched:!0,_label:"E-mail address"}),a.jsx(Le,{_hint:"I am a hint.",_label:"First name"}),a.jsx(Lo,{_label:"password"}),a.jsx(Qo,{_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_label:"Stimmung"}),a.jsx(tn,{_min:0,_max:50,_value:25,_label:"Slider"}),a.jsx(Oo,{className:"herr-frau",_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_value:"1",_label:"Salutation"}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Oo,{_orientation:"horizontal",_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_value:"0",_label:"Salutation"}),a.jsx(ao,{_label:"",children:a.jsxs("span",{slot:"expert",children:["I accept the ",a.jsx(Vi,{_label:"General Terms and Conditions",children:"AGB"}),"."]})})]}),a.jsx(eo,{_rows:4,_label:"Textarea"})]})})}),a.jsx(Re,{className:"col-span-6 sm:col-span-6 md:col-span-6 xl:col-span-5",_label:"Table with Pagination",_level:2,children:a.jsx("div",{slot:"",className:"grid gap-2 p-2 handout-table-card-content",children:a.jsx(ho,{_label:"Table",_minWidth:"auto",_headers:$A,_data:LA,_pagination:!0})})})]}),a.jsx(nd,{_label:"5.0.2-test.2"})]})},RA={handout:{basic:NA}},BA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows KolHeading with its different levels and content provided using the export slot instead of the ",a.jsx("code",{children:"_label"}),"-property."]})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ue,{_label:"",_level:1,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(So,{_label:"Label"})]})}),a.jsx(ue,{_label:"",_level:2,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(So,{_color:"#86ffc6",_label:"Label"})]})}),a.jsx(ue,{_label:"",_level:3,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(So,{_color:"#06539e",_label:"Label"})]})}),a.jsx(ue,{_label:"",_level:4,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(So,{_color:"#ae0000",_label:"Label"})]})}),a.jsx(ue,{_label:"",_level:5,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(So,{_color:"#8b008b",_label:"Label"})]})}),a.jsx(ue,{_label:"",_level:6,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(So,{_color:"#ffc0cb",_label:"Label"})]})})]})]}),DA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolHeading renders a heading with the given level."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ue,{_label:"I'm a H1-heading",_level:1}),a.jsx(ue,{_label:"I'm a H2-heading",_level:2}),a.jsx(ue,{_label:"I'm a H3-heading",_level:3}),a.jsx(ue,{_label:"I'm a H4-heading",_level:4}),a.jsx(ue,{_label:"I'm a H5-heading",_level:5}),a.jsx(ue,{_label:"I'm a H6-heading",_level:6})]})]}),MA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolHeading with its different levels combined with some text content each."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ue,{_label:"Ich bin eine H1-Überschrift",_level:1}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(ue,{_label:"Ich bin eine H2-Überschrift",_level:2}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(ue,{_label:"Ich bin eine H3-Überschrift",_level:3}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(ue,{_label:"Ich bin eine H4-Überschrift",_level:4}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(ue,{_label:"Ich bin eine H5-Überschrift",_level:5}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(ue,{_label:"Ich bin eine H6-Überschrift",_level:6}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."})]})]}),IA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows KolHeading with the prop ",a.jsx("code",{children:"_secondaryHeadline"})," in use."]})}),a.jsx("div",{className:"grid gap-4",children:a.jsx(ue,{_label:"This is a H1 headline",_secondaryHeadline:"This is a secondary headline",_level:1})})]}),UA={heading:{basic:DA,badge:BA,paragraph:MA,secondary:IA}},FA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolIcon renders codicon icons. This sample shows regular icons and one with a custom style-property, changing the icon color."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(vt,{className:"block",_label:"",_icons:"codicon codicon-home"}),a.jsx(vt,{className:"block",_label:"",_icons:"codicon codicon-compass-active"}),a.jsx(vt,{className:"block",_label:"",_icons:"codicon codicon-debug"}),a.jsx(vt,{className:"block",_label:"",_icons:"codicon codicon-squirrel"}),a.jsx(vt,{className:"block w-[1em] h-[1em]",style:{color:"red"},_label:"",_icons:"codicon codicon-home"})]})]}),HA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolIcon renders Font Awesome icons, if you have added this font to your theme. We are showing Font Awesome Free 6.1.1."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(vt,{className:"block",_label:"",_icons:"fa-solid fa-house"}),a.jsx(vt,{className:"block",_label:"",_icons:"fa-solid fa-circle-user"}),a.jsx(vt,{className:"block",_label:"",_icons:"fa-solid fa-truck"}),a.jsx(vt,{className:"block",_label:"",_icons:"fa-solid fa-city"}),a.jsx(vt,{className:"block",_label:"",_icons:"fa-regular fa-heart"}),a.jsx(vt,{className:"block",_label:"",_icons:"fa-regular fa-thumbs-up"}),a.jsx(vt,{className:"block",_label:"",_icons:"fa-brands fa-github"}),a.jsx(Le,{_label:"With Font Awesome icons",_icons:{left:{icon:"fa-solid fa-phone"},right:{icon:"fa-solid fa-arrow-right"}}})]})]}),VA={icon:{basic:FA,"font-awesome":HA}},KA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolImage renders an image. The sample shows an image with alternative text."})}),a.jsx(o4,{className:"w-image",_src:"abgrenzung.jpg",_alt:"Darstellung des KoliBri-Theming"})]}),qA={image:{basic:KA}},ys=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ao,{...n,_label:"Not selected",_value:!1,_required:!0}),a.jsx(ao,{...n,_label:"Indeterminate",_value:null,_indeterminate:!0}),a.jsx(ao,{...n,ref:r,_accessKey:"A",_checked:!0,_label:"Selected",_tooltipAlign:"right",_value:!0}),a.jsx(ao,{...n,_checked:!0,_icons:{unchecked:"codicon codicon-close"},_label:"With a very long label and upheavals ".repeat(5),_value:!0}),a.jsx(ao,{...n,_disabled:!0,_label:"Disabled",_value:!0,_hint:"Hint text"}),a.jsx(ao,{...n,_checked:!0,_disabled:!0,_label:"Checked and disabled"}),a.jsx(ao,{...n,_indeterminate:!0,_disabled:!0,_label:"Indeterminate and disabled"}),a.jsx(ao,{...n,_msg:{_type:"error",_description:Fe},_label:"With error",_touched:!0,_value:!0,_hint:"Hint text"}),a.jsx(ao,{...n,_label:"With access key",_accessKey:"c",_value:null}),a.jsx(ao,{...n,_label:"With short key",_shortKey:"s",_value:null})]})}),Lm=S.forwardRef(function(n,r){return a.jsxs(a.Fragment,{children:[a.jsxs($n,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "left" with label'}),a.jsx(ys,{...n,_labelAlign:"left"})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "left" without Label (hideLabel)'}),a.jsx(ys,{ref:r,...n,_hideLabel:!0,_labelAlign:"left"})]})]}),a.jsxs($n,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "right" with label'}),a.jsx(ys,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "right" without Label (hideLabel)'}),a.jsx(ys,{ref:r,...n,_hideLabel:!0})]})]})]})}),ZA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputCheckbox renders a checkbox. The sample shows KolInputCheckbox in a form context with all variations and states."})}),a.jsx(Cn,{RefComponent:Lm,showButtons:!1})]}),PA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows KolInputCheckbox in the variant "button".'})}),a.jsx(Cn,{RefComponent:Lm,_variant:"button",showButtons:!1})]}),GA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows KolInputCheckbox in the variant "switch".'})}),a.jsx(Cn,{RefComponent:Lm,_variant:"switch",showButtons:!1})]}),YA={"input-checkbox":{basic:ZA,switch:GA,button:PA}},g1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Xo,{...n,_msg:{_type:"error",_description:Fe},_icons:{left:"codicon codicon-symbol-color"},_label:"Color (Black background test)",_value:"#f08080"})}),a.jsx(Xo,{...n,_msg:{_type:"error",_description:Fe},_label:"Color with error",_suggestions:"['#000000','#f08080', '#0000ff','#00ff00']",_touched:!0}),a.jsx(Xo,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Color"}),a.jsx(Xo,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Color"}),a.jsx(Xo,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Color"}),a.jsx(Xo,{...n,ref:r,_accessKey:"C",_hint:"Hint text",_label:"Color with hint",_value:"#f08080"}),a.jsx(Xo,{...n,_disabled:!0,_label:"Color (Disabled)",_value:"#f08080"}),a.jsx(Xo,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(Xo,{...n,_label:"With short key",_shortKey:"s"})]})}),JA=S.forwardRef(function(n,r){return a.jsxs($n,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Color"}),a.jsx(g1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Color (hideLabel)"}),a.jsx(g1,{ref:r,...n,_hideLabel:!0})]})]})}),XA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputColor renders a color input. The sample shows KolInputColor in a form context with all variations and states."})}),a.jsx(Cn,{RefComponent:JA,showButtons:!1})]}),WA={"input-color":{basic:XA}},_1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(He,{...n,_type:"date",_label:"Date input (Black background test)",_required:!0})}),a.jsx(He,{...n,_type:"datetime-local",_label:"Local-Datetime (Standard)",_required:!0}),a.jsx(He,{...n,_step:1,_type:"datetime-local",_hint:An,_msg:{_type:"error",_description:Fe},_label:"Local datetime (with seconds)",_required:!0,_touched:!0}),a.jsx(He,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Color"}),a.jsx(He,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Color"}),a.jsx(He,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Color"}),a.jsx(He,{...n,_type:"month",_label:"Month",_required:!0}),a.jsx(He,{...n,ref:r,_accessKey:"W",_type:"week",_label:"Week",_required:!0}),a.jsx(He,{...n,_type:"time",_label:"Time (standard)",_required:!0}),a.jsx(He,{...n,_step:1,_type:"time",_label:"Time (with seconds)",_required:!0}),a.jsx(He,{...n,_readOnly:!0,_label:"Date input (read-only)",_required:!0}),a.jsx(He,{...n,_disabled:!0,_label:"Date input (Disabled)",_required:!0}),a.jsx(He,{...n,_label:"With access key",_accessKey:"s"}),a.jsx(He,{...n,_label:"With short key",_shortKey:"s"})]})}),QA=e=>{const n="2024-09-26",r="2024-09-27",i="12:00",c="15:00",d="2024-09-26T12:00",u="2024-09-27T15:00",m="2024-W10",h="2024-W50",p="2024-02",g="2024-10",v=new Date("January 10, 2024, 12:00"),_=new Date("October 20, 2024, 15:00");return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(He,{...e,_type:"date",_label:"Date with Iso",_min:n,_max:r}),a.jsx(He,{...e,_type:"date",_label:"Date with Date",_min:v,_max:_}),a.jsx(He,{...e,_type:"time",_label:"Time with Iso",_min:i,_max:c}),a.jsx(He,{...e,_type:"time",_label:"Time with Date",_min:v,_max:_}),a.jsx(He,{...e,_type:"datetime-local",_label:"DayTime with Iso",_min:d,_max:u}),a.jsx(He,{...e,_type:"datetime-local",_label:"DayTime with Date",_min:v,_max:_}),a.jsx(He,{...e,_type:"week",_label:"Week with Iso",_min:m,_max:h}),a.jsx(He,{...e,_type:"week",_label:"Week with Date",_min:v,_max:_}),a.jsx(He,{...e,_type:"month",_label:"Month with Iso",_min:p,_max:g}),a.jsx(He,{...e,_type:"month",_label:"Month with Date",_min:v,_max:_})]})},eC=S.forwardRef(function(n,r){return a.jsxs($n,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date"}),a.jsx(_1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date (hideLabel)"}),a.jsx(_1,{ref:r,...n,_hideLabel:!0})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date (with min/max)"}),a.jsx(QA,{...n})]})]})}),oC=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputDate renders all types of fields for date and time input. The sample shows KolInputDate in a form context with all variations and states."})}),a.jsx(Cn,{RefComponent:eC,showButtons:!1})]}),x1=e=>String(e).padStart(2,"0"),nC=(e,n,r)=>{const i=new Date(e,n-1,r);return i.getFullYear()===e&&i.getMonth()===n-1&&i.getDate()===r};function y1(e){const n=/^\s*(\d{1,2})\.(\d{1,2})\.(\d{4})\s*$/.exec(e);if(!n)return null;const r=+n[1],i=+n[2],c=+n[3];return nC(c,i,r)?`${c}-${x1(i)}-${x1(r)}`:null}function tC(e){return e instanceof HTMLElement&&e.tagName==="KOL-INPUT-DATE"}async function rC(e,n){typeof e.setIsoValue=="function"?await e.setIsoValue(n):typeof e.value<"u"?e.value=n:typeof e._value<"u"?e._value=n:e.setAttribute("_value",n),e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),e.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}const aC=()=>{const[e,n]=S.useState("31.12.2025"),[r,i]=S.useState(""),c=S.useRef(null),d=S.useMemo(()=>y1(e),[e]);S.useEffect(()=>{const h=new AbortController,p=g=>{const v=g.composedPath?.()??[];c.current=v.find(tC)??null};return document.addEventListener("focusin",p,{capture:!0,signal:h.signal}),()=>h.abort()},[]),S.useEffect(()=>{const h=new AbortController,p=g=>{const v=c.current;if(!v)return;const _=g.clipboardData?.getData("text")??"",z=y1(_);if(!z){i("Clipboard: unrecognized date. Use DD.MM.YYYY.");return}g.preventDefault(),rC(v,z),i("Pasted.")};return document.addEventListener("paste",p,{capture:!0,signal:h.signal}),()=>h.abort()},[]);const u=S.useCallback(async h=>{i("");try{await navigator.clipboard.writeText(h),i("Copied.")}catch{i("Copy failed. Your browser may block clipboard access.")}},[]),m=S.useCallback((h,p)=>{if(h?.target){const g=typeof p=="string"?p:String(p??"");n(g)}},[]);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["Type a date in German format (",a.jsx("code",{children:"DD.MM.YYYY"}),"), click ",a.jsx("em",{children:"Copy to Clipboard"}),", then paste it into the date field below with ",a.jsx("kbd",{children:"Ctrl"}),"+",a.jsx("kbd",{children:"V"}),". The ISO conversion happens internally."]})}),a.jsxs("div",{className:"grid gap-8",lang:"en",children:[a.jsxs("section",{"aria-labelledby":"de-title",children:[a.jsx("h3",{id:"de-title",className:"text-lg font-semibold mb-2",children:"German date (DD.MM.YYYY)"}),a.jsxs("div",{className:"grid gap-3",children:[a.jsx(Le,{className:"w-full",_label:"German date (DD.MM.YYYY)",_placeholder:"e.g., 31.12.2025",_value:e,_type:"text",_on:{onInput:m,onChange:m}}),a.jsx("small",{className:"opacity-80",children:"Click the button to copy the exact German date, then paste it into the date field below."}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(X,{_label:"Copy to Clipboard",_on:{onClick:()=>u(e)}}),!d&&a.jsx("span",{className:"text-red-600",children:"Invalid date"})]}),a.jsx(He,{_type:"date",_label:"Date (paste here with Ctrl+V)",className:"w-full"})]})]}),a.jsx("p",{"aria-live":"polite",role:"status",className:"mt-2 opacity-80",children:r})]})]})},lC=()=>{const e=S.useRef(null);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample demonstrates the KolInputDate ",a.jsx("code",{children:"reset"}),"-Method, which can be used to clear the field, even when it holds incomplete or invalid values."]})}),a.jsx(He,{className:"w-full",ref:e,_label:"Resettable Input Date",_value:"2024-02-10"}),a.jsx(X,{className:"mt",_label:"Reset",_on:{onClick:()=>e.current?.reset()}})]})},iC=["default","error","info","success","warning"];function ab(e){return{onChange:()=>e(n=>!n)}}const cC=()=>{const[e,n]=S.useState(!0),[r,i]=S.useState(!0),[c,d]=S.useState(!1),u=ab(n),m=ab(i),h=ab(d);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This example shows how messages work in input fields."})}),a.jsxs("div",{className:"flex gap-4 flex-col",children:[a.jsxs("div",{className:"flex gap-4 items-center",children:[a.jsx(ao,{_label:"Toggle Msg",_on:u,_checked:e,_variant:"button"}),a.jsx(ao,{_label:"Toggle Touched",_on:m,_checked:r,_variant:"button"}),a.jsx(ao,{_label:"Toggle Hide Msg",_on:h,_checked:c,_variant:"button"})]}),a.jsxs("pre",{children:["Message exists: ",e?"Yes":"No"," (showMsg: ",e?"Yes":"No",")",a.jsx("br",{}),"Non-Error-Message visible: ",e&&!c?"Yes":"No"," (showMsg: ",e?"Yes":"No",", hideMsg: ",c?"Yes":"No",")",a.jsx("br",{}),"Error-Message visible: ",e&&r&&!c?"Yes":"No"," (showMsg: ",e?"Yes":"No",", isTouched: ",r?"Yes":"No",", hideMsg: ",c?"Yes":"No",")"]}),iC.map(p=>a.jsx(He,{_hideMsg:c,_label:`Date (_msg, ${p})`,_msg:e?{_description:`${p} message`,_type:p}:void 0,_touched:r},p))]})]})},sC={"input-date":{basic:oC,"copy-paste":aC,reset:lC,"show-hide-msg":cC}},w1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Wo,{...n,_required:!0,_value:"test@mail.de",_msg:{_type:"error",_description:Fe},_label:"E-Mail (Black background test)"})}),a.jsx(Wo,{...n,ref:r,_accessKey:"M",_placeholder:"elke@mustermann.de",_suggestions:"['test1@mail.de', 'test2@mail.de', 'test3@mail.de']",_label:"E-Mail (list)",_hint:An,_msg:{_type:"error",_description:Fe},_touched:!0,_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(Wo,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"E-Mail"}),a.jsx(Wo,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"E-Mail"}),a.jsx(Wo,{...n,_msg:{_type:"success",_description:"Success message"},_label:"E-Mail"}),a.jsx(Wo,{...n,_disabled:!0,_value:"test@mail.de",_label:"E-Mail (Disabled)"}),a.jsx(Wo,{...n,_readOnly:!0,_value:"test@mail.de",_label:"E-Mail (Readonly)"}),a.jsx(Wo,{...n,_value:"test@mail.de",_label:"With access key",_accessKey:"c"}),a.jsx(Wo,{...n,_value:"test@mail.de",_label:"With short key",_shortKey:"s"})]})}),dC=S.forwardRef(function(n,r){return a.jsxs($n,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Email"}),a.jsx(w1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Email (hideLabel)"}),a.jsx(w1,{ref:r,...n,_hideLabel:!0})]})]})}),uC=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputEmail renders an email input field. The sample shows KolInputEmail in a form context with all variations and states."})}),a.jsx(Cn,{RefComponent:dC,showButtons:!1})]}),fC={"input-email":{basic:uC}},z1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Mo,{...n,_label:"Upload file (Black background test)",_icons:{left:{icon:"codicon codicon-save"}},_touched:!0})}),a.jsx(Mo,{...n,_required:!0,_hint:An,_msg:{_type:"error",_description:Fe},_label:"Upload file (Black background test)",_icons:{left:{icon:"codicon codicon-save"}},_touched:!0}),a.jsx(Mo,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Upload file"}),a.jsx(Mo,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Upload file"}),a.jsx(Mo,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Upload file"}),a.jsx(Mo,{...n,ref:r,_accessKey:"h",_multiple:!0,_msg:{_type:"error",_description:Fe},_label:"Upload file (Multiple)"}),a.jsx(Mo,{...n,_disabled:!0,_label:"Upload file (Disabled)"}),a.jsx(Mo,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(Mo,{...n,_label:"With short key",_shortKey:"s"})]})}),bC=S.forwardRef(function(n,r){return a.jsxs($n,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"File"}),a.jsx(z1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"File (hideLabel)"}),a.jsx(z1,{ref:r,...n,_hideLabel:!0})]})]})}),mC=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputFile renders a file input field. The sample shows KolInputFile in a form context with all variations and states."})}),a.jsx(Cn,{RefComponent:bC,showButtons:!1})]}),hC={"input-file":{basic:mC}},S1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsxs("div",{className:"black-background",children:[a.jsx(Ao,{...n,_required:!0,_touched:!0,_value:123,_label:"Number input (Black background test)"})," "]}),a.jsx(Ao,{...n,_required:!0,_msg:{_type:"error",_description:Fe},_touched:!0,_placeholder:"Mit Icons",_label:"Number input",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(Ao,{...n,_required:!0,_msg:{_type:"error",_description:Fe},_touched:!0,_value:123,_label:"Number input"}),a.jsx(Ao,{...n,_required:!0,_msg:{_type:"warning",_description:Fe},_touched:!0,_value:123,_label:"Number input"}),a.jsx(Ao,{...n,_required:!0,_msg:{_type:"info",_description:Fe},_touched:!0,_value:123,_label:"Number input"}),a.jsx(Ao,{...n,_required:!0,_msg:{_type:"success",_description:Fe},_touched:!0,_value:123,_label:"Number input"}),a.jsx(Ao,{...n,ref:r,_accessKey:"Z",_max:10,_min:-10,_step:2,_label:"Number input (-10 to 10 in steps of 2)"}),a.jsx(Ao,{...n,_readOnly:!0,_label:"Number input (Readonly)"}),a.jsx(Ao,{...n,_disabled:!0,_label:"Number input (Disabled)"}),a.jsx(Ao,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(Ao,{...n,_label:"With short key",_shortKey:"s"})]})}),pC=S.forwardRef(function(n,r){return a.jsxs($n,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Number"}),a.jsx(S1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Number (hideLabel)"}),a.jsx(S1,{ref:r,...n,_hideLabel:!0})]})]})}),kC=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputNumber encompasses basic functionalities, utilizing the min, max, and step attributes to restrict the range of input values. Despite these constraints, it allows free input that can ignore the defined minimum and maximum values, as well as step sizes. The component intentionally does not emphasize validation rules, supporting examples without form validation, and refrains from additional validation through native HTML element validation."})}),a.jsx(Cn,{RefComponent:pC,showButtons:!1})]});var tc=e=>e.type==="checkbox",xa=e=>e instanceof Date,Kn=e=>e==null;const r0=e=>typeof e=="object";var Ko=e=>!Kn(e)&&!Array.isArray(e)&&r0(e)&&!xa(e),a0=e=>Ko(e)&&e.target?tc(e.target)?e.target.checked:e.target.value:e,l0=(e,n)=>n.split(".").some((r,i,c)=>!isNaN(Number(r))&&e.has(c.slice(0,i).join("."))),vC=e=>{const n=e.constructor&&e.constructor.prototype;return Ko(n)&&n.hasOwnProperty("isPrototypeOf")},Om=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Yo(e){if(e instanceof Date)return new Date(e);const n=typeof FileList<"u"&&e instanceof FileList;if(Om&&(e instanceof Blob||n))return e;const r=Array.isArray(e);if(!r&&!(Ko(e)&&vC(e)))return e;const i=r?[]:Object.create(Object.getPrototypeOf(e));for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&(i[c]=Yo(e[c]));return i}var sd=e=>/^\w*$/.test(e),Co=e=>e===void 0,$m=e=>Array.isArray(e)?e.filter(Boolean):[],Nm=e=>$m(e.replace(/["|']|\]/g,"").split(/\.|\[/)),de=(e,n,r)=>{if(!n||!Ko(e))return r;const c=(sd(n)?[n]:Nm(n)).reduce((d,u)=>Kn(d)?void 0:d[u],e);return Co(c)||c===e?Co(e[n])?r:e[n]:c},ot=e=>typeof e=="boolean",On=e=>typeof e=="function",so=(e,n,r)=>{let i=-1;const c=sd(n)?[n]:Nm(n),d=c.length,u=d-1;for(;++i<d;){const m=c[i];let h=r;if(i!==u){const p=e[m];h=Ko(p)||Array.isArray(p)?p:isNaN(+c[i+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;e[m]=h,e=e[m]}};const Fr={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Tt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},jt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},lb="form",i0="root",c0=re.createContext(null);c0.displayName="HookFormControlContext";const Rm=()=>re.useContext(c0);var s0=(e,n,r,i=!0)=>{const c={defaultValues:n._defaultValues};for(const d in e)Object.defineProperty(c,d,{get:()=>{const u=d;return n._proxyFormState[u]!==Tt.all&&(n._proxyFormState[u]=!i||Tt.all),r&&(r[u]=!0),e[u]}});return c};const Bm=typeof window<"u"?re.useLayoutEffect:re.useEffect;function gC(e){const n=Rm(),{control:r=n,disabled:i,name:c,exact:d}=e||{},[u,m]=re.useState(r._formState),h=re.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Bm(()=>r._subscribe({name:c,formState:h.current,exact:d,callback:p=>{!i&&m({...r._formState,...p})}}),[c,i,d]),re.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),re.useMemo(()=>s0(u,r,h.current,!1),[u,r])}var Tn=e=>typeof e=="string",Zb=(e,n,r,i,c)=>Tn(e)?(i&&n.watch.add(e),de(r,e,c)):Array.isArray(e)?e.map(d=>(i&&n.watch.add(d),de(r,d))):(i&&(n.watchAll=!0),r),Pb=e=>Kn(e)||!r0(e);function gt(e,n,r=new WeakSet){if(e===n)return!0;if(Pb(e)||Pb(n))return Object.is(e,n);if(xa(e)&&xa(n))return Object.is(e.getTime(),n.getTime());const i=Object.keys(e),c=Object.keys(n);if(i.length!==c.length)return!1;if(r.has(e)||r.has(n))return!0;r.add(e),r.add(n);for(const d of i){const u=e[d];if(!(d in n))return!1;if(d!=="ref"){const m=n[d];if(xa(u)&&xa(m)||(Ko(u)||Array.isArray(u))&&(Ko(m)||Array.isArray(m))?!gt(u,m,r):!Object.is(u,m))return!1}}return!0}function _C(e){const n=Rm(),{control:r=n,name:i,defaultValue:c,disabled:d,exact:u,compute:m}=e||{},h=re.useRef(c),p=re.useRef(m),g=re.useRef(void 0),v=re.useRef(r),_=re.useRef(i);p.current=m;const[z,$]=re.useState(()=>{const N=r._getWatch(i,h.current);return p.current?p.current(N):N}),j=re.useCallback(N=>{const D=Zb(i,r._names,N||r._formValues,!1,h.current);return p.current?p.current(D):D},[r._formValues,r._names,i]),E=re.useCallback(N=>{if(!d){const D=Zb(i,r._names,N||r._formValues,!1,h.current);if(p.current){const H=p.current(D);gt(H,g.current)||($(H),g.current=H)}else $(D)}},[r._formValues,r._names,d,i]);Bm(()=>((v.current!==r||!gt(_.current,i))&&(v.current=r,_.current=i,E()),r._subscribe({name:i,formState:{values:!0},exact:u,callback:N=>{E(N.values)}})),[r,u,i,E]),re.useEffect(()=>r._removeUnmounted());const L=v.current!==r,y=_.current,w=re.useMemo(()=>{if(d)return null;const N=!L&&!gt(y,i);return L||N?j():null},[d,L,i,y,j]);return w!==null?w:z}function xC(e){const n=Rm(),{name:r,disabled:i,control:c=n,shouldUnregister:d,defaultValue:u,exact:m=!0}=e,h=l0(c._names.array,r),p=re.useMemo(()=>de(c._formValues,r,de(c._defaultValues,r,u)),[c,r,u]),g=_C({control:c,name:r,defaultValue:p,exact:m}),v=gC({control:c,name:r,exact:m}),_=re.useRef(e),z=re.useRef(void 0),$=re.useRef(c.register(r,{...e.rules,value:g,...ot(e.disabled)?{disabled:e.disabled}:{}}));_.current=e;const j=re.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!de(v.errors,r)},isDirty:{enumerable:!0,get:()=>!!de(v.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!de(v.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!de(v.validatingFields,r)},error:{enumerable:!0,get:()=>de(v.errors,r)}}),[v,r]),E=re.useCallback(N=>$.current.onChange({target:{value:a0(N),name:r},type:Fr.CHANGE}),[r]),L=re.useCallback(()=>$.current.onBlur({target:{value:de(c._formValues,r),name:r},type:Fr.BLUR}),[r,c._formValues]),y=re.useCallback(N=>{const D=de(c._fields,r);D&&D._f&&N&&(D._f.ref={focus:()=>On(N.focus)&&N.focus(),select:()=>On(N.select)&&N.select(),setCustomValidity:H=>On(N.setCustomValidity)&&N.setCustomValidity(H),reportValidity:()=>On(N.reportValidity)&&N.reportValidity()})},[c._fields,r]),w=re.useMemo(()=>({name:r,value:g,...ot(i)||v.disabled?{disabled:v.disabled||i}:{},onChange:E,onBlur:L,ref:y}),[r,i,v.disabled,E,L,y,g]);return re.useEffect(()=>{const N=c._options.shouldUnregister||d,D=z.current;D&&D!==r&&!h&&c.unregister(D),c.register(r,{..._.current.rules,...ot(_.current.disabled)?{disabled:_.current.disabled}:{}});const H=(q,oe)=>{const ce=de(c._fields,q);ce&&ce._f&&(ce._f.mount=oe)};if(H(r,!0),N){const q=Yo(de(c._options.defaultValues,r,_.current.defaultValue));so(c._defaultValues,r,q),Co(de(c._formValues,r))&&so(c._formValues,r,q)}return!h&&c.register(r),z.current=r,()=>{(h?N&&!c._state.action:N)?c.unregister(r):H(r,!1)}},[r,c,h,d]),re.useEffect(()=>{c._setDisabledField({disabled:i,name:r})},[i,r,c]),re.useMemo(()=>({field:w,formState:v,fieldState:j}),[w,v,j])}const Gb=e=>e.render(xC(e)),yC=re.createContext(null);yC.displayName="HookFormContext";var d0=(e,n,r,i,c)=>n?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[i]:c||!0}}:{},Ki=e=>Array.isArray(e)?e:[e],j1=()=>{let e=[];return{get observers(){return e},next:c=>{for(const d of e)d.next&&d.next(c)},subscribe:c=>(e.push(c),{unsubscribe:()=>{e=e.filter(d=>d!==c)}}),unsubscribe:()=>{e=[]}}};function u0(e,n){const r={};for(const i in e)if(e.hasOwnProperty(i)){const c=e[i],d=n[i];if(c&&Ko(c)&&d){const u=u0(c,d);Ko(u)&&(r[i]=u)}else e[i]&&(r[i]=d)}return r}var wn=e=>Ko(e)&&!Object.keys(e).length,Dm=e=>e.type==="file",Gs=e=>{if(!Om)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},f0=e=>e.type==="select-multiple",Mm=e=>e.type==="radio",wC=e=>Mm(e)||tc(e),ib=e=>Gs(e)&&e.isConnected;function zC(e,n){const r=n.slice(0,-1).length;let i=0;for(;i<r;)e=Co(e)?i++:e[n[i++]];return e}function SC(e){for(const n in e)if(e.hasOwnProperty(n)&&!Co(e[n]))return!1;return!0}function Jo(e,n){if(Tn(n)&&Object.prototype.hasOwnProperty.call(e,n))return delete e[n],e;const r=Array.isArray(n)?n:sd(n)?[n]:Nm(n),i=r.length===1?e:zC(e,r),c=r.length-1,d=r[c];return i&&delete i[d],c!==0&&(Ko(i)&&wn(i)||Array.isArray(i)&&SC(i))&&Jo(e,r.slice(0,-1)),e}var jC=e=>{for(const n in e)if(On(e[n]))return!0;return!1};function b0(e){return Array.isArray(e)||Ko(e)&&!jC(e)}function Yb(e,n={}){for(const r in e){const i=e[r];b0(i)?(n[r]=Array.isArray(i)?[]:{},Yb(i,n[r])):Co(i)||(n[r]=!0)}return n}function Ii(e,n,r){r||(r=Yb(n));for(const i in e){const c=e[i];if(b0(c))Co(n)||Pb(r[i])?r[i]=Yb(c,Array.isArray(c)?[]:{}):Ii(c,Kn(n)?{}:n[i],r[i]);else{const d=n[i];r[i]=!gt(c,d)}}return r}const T1={value:!1,isValid:!1},A1={value:!0,isValid:!0};var m0=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Co(e[0].attributes.value)?Co(e[0].value)||e[0].value===""?A1:{value:e[0].value,isValid:!0}:A1:T1}return T1},h0=(e,{valueAsNumber:n,valueAsDate:r,setValueAs:i})=>Co(e)?e:n?e===""?NaN:e&&+e:r&&Tn(e)?new Date(e):i?i(e):e;const C1={isValid:!1,value:null};var p0=e=>Array.isArray(e)?e.reduce((n,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:n,C1):C1;function E1(e){const n=e.ref;return Dm(n)?n.files:Mm(n)?p0(e.refs).value:f0(n)?[...n.selectedOptions].map(({value:r})=>r):tc(n)?m0(e.refs).value:h0(Co(n.value)?e.ref.value:n.value,e)}var TC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,AC=(e,n,r,i)=>{const c={};for(const d of e){const u=de(n,d);u&&so(c,d,u._f)}return{criteriaMode:r,names:[...e],fields:c,shouldUseNativeValidation:i}},Ys=e=>e instanceof RegExp,Bi=e=>Co(e)?e:Ys(e)?e.source:Ko(e)?Ys(e.value)?e.value.source:e.value:e,L1=e=>({isOnSubmit:!e||e===Tt.onSubmit,isOnBlur:e===Tt.onBlur,isOnChange:e===Tt.onChange,isOnAll:e===Tt.all,isOnTouch:e===Tt.onTouched});const O1="AsyncFunction";var CC=e=>!!e&&!!e.validate&&!!(On(e.validate)&&e.validate.constructor.name===O1||Ko(e.validate)&&Object.values(e.validate).find(n=>n.constructor.name===O1)),EC=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),$1=(e,n,r)=>!r&&(n.watchAll||n.watch.has(e)||[...n.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const qi=(e,n,r,i)=>{for(const c of r||Object.keys(e)){const d=de(e,c);if(d){const{_f:u,...m}=d;if(u){if(u.refs&&u.refs[0]&&n(u.refs[0],c)&&!i)return!0;if(u.ref&&n(u.ref,u.name)&&!i)return!0;if(qi(m,n))break}else if(Ko(m)&&qi(m,n))break}}};function N1(e,n,r){const i=de(e,r);if(i||sd(r))return{error:i,name:r};const c=r.split(".");for(;c.length;){const d=c.join("."),u=de(n,d),m=de(e,d);if(u&&!Array.isArray(u)&&r!==d)return{name:r};if(m&&m.type)return{name:d,error:m};if(m&&m.root&&m.root.type)return{name:`${d}.root`,error:m.root};c.pop()}return{name:r}}var LC=(e,n,r,i)=>{r(e);const{name:c,...d}=e;return wn(d)||Object.keys(d).length>=Object.keys(n).length||Object.keys(d).find(u=>n[u]===(!i||Tt.all))},OC=(e,n,r)=>!e||!n||e===n||Ki(e).some(i=>i&&(r?i===n:i.startsWith(n)||n.startsWith(i))),$C=(e,n,r,i,c)=>c.isOnAll?!1:!r&&c.isOnTouch?!(n||e):(r?i.isOnBlur:c.isOnBlur)?!e:(r?i.isOnChange:c.isOnChange)?e:!0,NC=(e,n)=>!$m(de(e,n)).length&&Jo(e,n),RC=(e,n,r)=>{const i=Ki(de(e,r));return so(i,i0,n[r]),so(e,r,i),e};function R1(e,n,r="validate"){if(Tn(e)||Array.isArray(e)&&e.every(Tn)||ot(e)&&!e)return{type:r,message:Tn(e)?e:"",ref:n}}var xl=e=>Ko(e)&&!Ys(e)?e:{value:e,message:""},B1=async(e,n,r,i,c,d)=>{const{ref:u,refs:m,required:h,maxLength:p,minLength:g,min:v,max:_,pattern:z,validate:$,name:j,valueAsNumber:E,mount:L}=e._f,y=de(r,j);if(!L||n.has(j))return{};const w=m?m[0]:u,N=ee=>{c&&w.reportValidity&&(w.setCustomValidity(ot(ee)?"":ee||""),w.reportValidity())},D={},H=Mm(u),q=tc(u),oe=H||q,ce=(E||Dm(u))&&Co(u.value)&&Co(y)||Gs(u)&&u.value===""||y===""||Array.isArray(y)&&!y.length,Ve=d0.bind(null,j,i,D),ie=(ee,_e,Te,$e=jt.maxLength,M=jt.minLength)=>{const G=ee?_e:Te;D[j]={type:ee?$e:M,message:G,ref:u,...Ve(ee?$e:M,G)}};if(d?!Array.isArray(y)||!y.length:h&&(!oe&&(ce||Kn(y))||ot(y)&&!y||q&&!m0(m).isValid||H&&!p0(m).isValid)){const{value:ee,message:_e}=Tn(h)?{value:!!h,message:h}:xl(h);if(ee&&(D[j]={type:jt.required,message:_e,ref:w,...Ve(jt.required,_e)},!i))return N(_e),D}if(!ce&&(!Kn(v)||!Kn(_))){let ee,_e;const Te=xl(_),$e=xl(v);if(!Kn(y)&&!isNaN(y)){const M=u.valueAsNumber||y&&+y;Kn(Te.value)||(ee=M>Te.value),Kn($e.value)||(_e=M<$e.value)}else{const M=u.valueAsDate||new Date(y),G=Ae=>new Date(new Date().toDateString()+" "+Ae),se=u.type=="time",ze=u.type=="week";Tn(Te.value)&&y&&(ee=se?G(y)>G(Te.value):ze?y>Te.value:M>new Date(Te.value)),Tn($e.value)&&y&&(_e=se?G(y)<G($e.value):ze?y<$e.value:M<new Date($e.value))}if((ee||_e)&&(ie(!!ee,Te.message,$e.message,jt.max,jt.min),!i))return N(D[j].message),D}if((p||g)&&!ce&&(Tn(y)||d&&Array.isArray(y))){const ee=xl(p),_e=xl(g),Te=!Kn(ee.value)&&y.length>+ee.value,$e=!Kn(_e.value)&&y.length<+_e.value;if((Te||$e)&&(ie(Te,ee.message,_e.message),!i))return N(D[j].message),D}if(z&&!ce&&Tn(y)){const{value:ee,message:_e}=xl(z);if(Ys(ee)&&!y.match(ee)&&(D[j]={type:jt.pattern,message:_e,ref:u,...Ve(jt.pattern,_e)},!i))return N(_e),D}if($){if(On($)){const ee=await $(y,r),_e=R1(ee,w);if(_e&&(D[j]={..._e,...Ve(jt.validate,_e.message)},!i))return N(_e.message),D}else if(Ko($)){let ee={};for(const _e in $){if(!wn(ee)&&!i)break;const Te=R1(await $[_e](y,r),w,_e);Te&&(ee={...Te,...Ve(_e,Te.message)},N(Te.message),i&&(D[j]=ee))}if(!wn(ee)&&(D[j]={ref:w,...ee},!i))return D}}return N(!0),D};const BC={mode:Tt.onSubmit,reValidateMode:Tt.onChange,shouldFocusError:!0};function DC(e={}){let n={...BC,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:On(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},c=Ko(n.defaultValues)||Ko(n.values)?Yo(n.defaultValues||n.values)||{}:{},d=n.shouldUnregister?{}:Yo(c),u={action:!1,mount:!1,watch:!1,keepIsValid:!1},m={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},h,p=0;const g={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={...g};let _={...v};const z={array:j1(),state:j1()},$=n.criteriaMode===Tt.all,j=T=>R=>{clearTimeout(p),p=setTimeout(T,R)},E=async T=>{if(!u.keepIsValid&&!n.disabled&&(v.isValid||_.isValid||T)){let R;n.resolver?(R=wn((await ce()).errors),L()):R=await ee({fields:i,onlyCheckValid:!0,eventType:Fr.VALID}),R!==r.isValid&&z.state.next({isValid:R})}},L=(T,R)=>{!n.disabled&&(v.isValidating||v.validatingFields||_.isValidating||_.validatingFields)&&((T||Array.from(m.mount)).forEach(I=>{I&&(R?so(r.validatingFields,I,R):Jo(r.validatingFields,I))}),z.state.next({validatingFields:r.validatingFields,isValidating:!wn(r.validatingFields)}))},y=T=>{const R=Ii(c,d),I=TC(T);so(r.dirtyFields,I,de(R,I))},w=(T,R=[],I,te,le=!0,ne=!0)=>{if(te&&I&&!n.disabled){if(u.action=!0,ne&&Array.isArray(de(i,T))){const he=I(de(i,T),te.argA,te.argB);le&&so(i,T,he)}if(ne&&Array.isArray(de(r.errors,T))){const he=I(de(r.errors,T),te.argA,te.argB);le&&so(r.errors,T,he),NC(r.errors,T)}if((v.touchedFields||_.touchedFields)&&ne&&Array.isArray(de(r.touchedFields,T))){const he=I(de(r.touchedFields,T),te.argA,te.argB);le&&so(r.touchedFields,T,he)}(v.dirtyFields||_.dirtyFields)&&y(T),z.state.next({name:T,isDirty:Te(T,R),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else so(d,T,R)},N=(T,R)=>{so(r.errors,T,R),z.state.next({errors:r.errors})},D=T=>{r.errors=T,z.state.next({errors:r.errors,isValid:!1})},H=(T,R,I,te)=>{const le=de(i,T);if(le){const ne=de(d,T,Co(I)?de(c,T):I);Co(ne)||te&&te.defaultChecked||R?so(d,T,R?ne:E1(le._f)):G(T,ne),u.mount&&!u.action&&E()}},q=(T,R,I,te,le)=>{let ne=!1,he=!1;const Me={name:T};if(!n.disabled){if(!I||te){(v.isDirty||_.isDirty)&&(he=r.isDirty,r.isDirty=Me.isDirty=Te(),ne=he!==Me.isDirty);const oo=gt(de(c,T),R);he=!!de(r.dirtyFields,T),oo?Jo(r.dirtyFields,T):so(r.dirtyFields,T,!0),Me.dirtyFields=r.dirtyFields,ne=ne||(v.dirtyFields||_.dirtyFields)&&he!==!oo}if(I){const oo=de(r.touchedFields,T);oo||(so(r.touchedFields,T,I),Me.touchedFields=r.touchedFields,ne=ne||(v.touchedFields||_.touchedFields)&&oo!==I)}ne&&le&&z.state.next(Me)}return ne?Me:{}},oe=(T,R,I,te)=>{const le=de(r.errors,T),ne=(v.isValid||_.isValid)&&ot(R)&&r.isValid!==R;if(n.delayError&&I?(h=j(()=>N(T,I)),h(n.delayError)):(clearTimeout(p),h=null,I?so(r.errors,T,I):Jo(r.errors,T)),(I?!gt(le,I):le)||!wn(te)||ne){const he={...te,...ne&&ot(R)?{isValid:R}:{},errors:r.errors,name:T};r={...r,...he},z.state.next(he)}},ce=async T=>(L(T,!0),await n.resolver(d,n.context,AC(T||m.mount,i,n.criteriaMode,n.shouldUseNativeValidation))),Ve=async T=>{const{errors:R}=await ce(T);if(L(T),T)for(const I of T){const te=de(R,I);te?so(r.errors,I,te):Jo(r.errors,I)}else r.errors=R;return R},ie=async({name:T,eventType:R})=>{if(e.validate){const I=await e.validate({formValues:d,formState:r,name:T,eventType:R});if(Ko(I))for(const te in I)I[te]&&Ne(`${lb}.${te}`,{message:Tn(I.message)?I.message:"",type:jt.validate});else Tn(I)||!I?Ne(lb,{message:I||"",type:jt.validate}):Ce(lb);return I}return!0},ee=async({fields:T,onlyCheckValid:R,name:I,eventType:te,context:le={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(le.runRootValidation=!0,!await ie({name:I,eventType:te})&&(le.valid=!1,R)))return le.valid;for(const ne in T){const he=T[ne];if(he){const{_f:Me,...oo}=he;if(Me){const cn=m.array.has(Me.name),xn=he._f&&CC(he._f);xn&&v.validatingFields&&L([Me.name],!0);const ko=await B1(he,m.disabled,d,$,n.shouldUseNativeValidation&&!R,cn);if(xn&&v.validatingFields&&L([Me.name]),ko[Me.name]&&(le.valid=!1,R)||(!R&&(de(ko,Me.name)?cn?RC(r.errors,ko,Me.name):so(r.errors,Me.name,ko[Me.name]):Jo(r.errors,Me.name)),e.shouldUseNativeValidation&&ko[Me.name]))break}!wn(oo)&&await ee({context:le,onlyCheckValid:R,fields:oo,name:ne,eventType:te})}}return le.valid},_e=()=>{for(const T of m.unMount){const R=de(i,T);R&&(R._f.refs?R._f.refs.every(I=>!ib(I)):!ib(R._f.ref))&&xt(T)}m.unMount=new Set},Te=(T,R)=>!n.disabled&&(T&&R&&so(d,T,R),!gt(ae(),c)),$e=(T,R,I)=>Zb(T,m,{...u.mount?d:Co(R)?c:Tn(T)?{[T]:R}:R},I,R),M=T=>$m(de(u.mount?d:c,T,n.shouldUnregister?de(c,T,[]):[])),G=(T,R,I={})=>{const te=de(i,T);let le=R;if(te){const ne=te._f;ne&&(!ne.disabled&&so(d,T,h0(R,ne)),le=Gs(ne.ref)&&Kn(R)?"":R,f0(ne.ref)?[...ne.ref.options].forEach(he=>he.selected=le.includes(he.value)):ne.refs?tc(ne.ref)?ne.refs.forEach(he=>{(!he.defaultChecked||!he.disabled)&&(Array.isArray(le)?he.checked=!!le.find(Me=>Me===he.value):he.checked=le===he.value||!!le)}):ne.refs.forEach(he=>he.checked=he.value===le):Dm(ne.ref)?ne.ref.value="":(ne.ref.value=le,ne.ref.type||z.state.next({name:T,values:Yo(d)})))}(I.shouldDirty||I.shouldTouch)&&q(T,le,I.shouldTouch,I.shouldDirty,!0),I.shouldValidate&&P(T)},se=(T,R,I)=>{for(const te in R){if(!R.hasOwnProperty(te))return;const le=R[te],ne=T+"."+te,he=de(i,ne);(m.array.has(T)||Ko(le)||he&&!he._f)&&!xa(le)?se(ne,le,I):G(ne,le,I)}},ze=(T,R,I={})=>{const te=de(i,T),le=m.array.has(T),ne=Yo(R),he=de(d,T),Me=gt(he,ne);if(so(d,T,ne),le)z.array.next({name:T,values:Yo(d)}),I.shouldDirty&&(y(T),z.state.next({name:T,dirtyFields:r.dirtyFields,isDirty:Te(T,ne)}));else{const oo=Array.isArray(ne)&&!ne.length||wn(ne);!te||te._f||Kn(ne)||oo?G(T,ne,I):se(T,ne,I)}Me||($1(T,m)?z.state.next({...r,name:T,values:Yo(d)}):z.state.next({name:u.mount?T:void 0,values:Yo(d)}))},Ae=async T=>{u.mount=!0;const R=T.target;let I=R.name,te=!0;const le=de(i,I),ne=oo=>{te=Number.isNaN(oo)||xa(oo)&&isNaN(oo.getTime())||gt(oo,de(d,I,oo))},he=L1(n.mode),Me=L1(n.reValidateMode);if(le){let oo,cn;const xn=R.type?E1(le._f):a0(T),ko=T.type===Fr.BLUR||T.type===Fr.FOCUS_OUT,Et=!EC(le._f)&&!e.validate&&!n.resolver&&!de(r.errors,I)&&!le._f.deps||$C(ko,de(r.touchedFields,I),r.isSubmitted,Me,he),sn=$1(I,m,ko);so(d,I,xn),ko?(!R||!R.readOnly)&&(le._f.onBlur&&le._f.onBlur(T),h&&h(0)):le._f.onChange&&le._f.onChange(T);const Rl=q(I,xn,ko),pd=!wn(Rl)||sn;if(!ko&&z.state.next({name:I,type:T.type,values:Yo(d)}),Et)return(v.isValid||_.isValid)&&(n.mode==="onBlur"?ko&&E():ko||E()),pd&&z.state.next({name:I,...sn?{}:Rl});if(!n.resolver&&e.validate&&await ie({name:I,eventType:T.type}),!ko&&sn&&z.state.next({...r}),n.resolver){const{errors:rc}=await ce([I]);if(L([I]),ne(xn),te){const La=N1(r.errors,i,I),Wr=N1(rc,i,La.name||I);oo=Wr.error,I=Wr.name,cn=wn(rc)}}else L([I],!0),oo=(await B1(le,m.disabled,d,$,n.shouldUseNativeValidation))[I],L([I]),ne(xn),te&&(oo?cn=!1:(v.isValid||_.isValid)&&(cn=await ee({fields:i,onlyCheckValid:!0,name:I,eventType:T.type})));te&&(le._f.deps&&(!Array.isArray(le._f.deps)||le._f.deps.length>0)&&P(le._f.deps),oe(I,cn,oo,Rl))}},C=(T,R)=>{if(de(r.errors,R)&&T.focus)return T.focus(),1},P=async(T,R={})=>{let I,te;const le=Ki(T);if(n.resolver){const ne=await Ve(Co(T)?T:le);I=wn(ne),te=T?!le.some(he=>de(ne,he)):I}else T?(te=(await Promise.all(le.map(async ne=>{const he=de(i,ne);return await ee({fields:he&&he._f?{[ne]:he}:he,eventType:Fr.TRIGGER})}))).every(Boolean),!(!te&&!r.isValid)&&E()):te=I=await ee({fields:i,name:T,eventType:Fr.TRIGGER});return z.state.next({...!Tn(T)||(v.isValid||_.isValid)&&I!==r.isValid?{}:{name:T},...n.resolver||!T?{isValid:I}:{},errors:r.errors}),R.shouldFocus&&!te&&qi(i,C,T?le:m.mount),te},ae=(T,R)=>{let I={...u.mount?d:c};return R&&(I=u0(R.dirtyFields?r.dirtyFields:r.touchedFields,I)),Co(T)?I:Tn(T)?de(I,T):T.map(te=>de(I,te))},be=(T,R)=>({invalid:!!de((R||r).errors,T),isDirty:!!de((R||r).dirtyFields,T),error:de((R||r).errors,T),isValidating:!!de(r.validatingFields,T),isTouched:!!de((R||r).touchedFields,T)}),Ce=T=>{const R=T?Ki(T):void 0;R?.forEach(I=>Jo(r.errors,I)),R?R.forEach(I=>{z.state.next({name:I,errors:r.errors})}):z.state.next({errors:{}})},Ne=(T,R,I)=>{const te=(de(i,T,{_f:{}})._f||{}).ref,le=de(r.errors,T)||{},{ref:ne,message:he,type:Me,...oo}=le;so(r.errors,T,{...oo,...R,ref:te}),z.state.next({name:T,errors:r.errors,isValid:!1}),I&&I.shouldFocus&&te&&te.focus&&te.focus()},Ye=(T,R)=>On(T)?z.state.subscribe({next:I=>"values"in I&&T(I.values||$e(void 0,R),I)}):$e(T,R,!0),Ro=T=>z.state.subscribe({next:R=>{if(OC(T.name,R.name,T.exact)&&LC(R,T.formState||v,co,T.reRenderRoot)){const I={...d};T.callback({values:I,...r,...R,defaultValues:c})}}}).unsubscribe,yo=T=>(u.mount=!0,_={..._,...T.formState},Ro({...T,formState:{...g,...T.formState}})),xt=(T,R={})=>{for(const I of T?Ki(T):m.mount)m.mount.delete(I),m.array.delete(I),R.keepValue||(Jo(i,I),Jo(d,I)),!R.keepError&&Jo(r.errors,I),!R.keepDirty&&Jo(r.dirtyFields,I),!R.keepTouched&&Jo(r.touchedFields,I),!R.keepIsValidating&&Jo(r.validatingFields,I),!n.shouldUnregister&&!R.keepDefaultValue&&Jo(c,I);z.state.next({values:Yo(d)}),z.state.next({...r,...R.keepDirty?{isDirty:Te()}:{}}),!R.keepIsValid&&E()},Dt=({disabled:T,name:R})=>{if(ot(T)&&u.mount||T||m.disabled.has(R)){const le=m.disabled.has(R)!==!!T;T?m.disabled.add(R):m.disabled.delete(R),le&&u.mount&&!u.action&&E()}},Mt=(T,R={})=>{let I=de(i,T);const te=ot(R.disabled)||ot(n.disabled),le=!m.registerName.has(T)&&I&&I._f&&!I._f.mount;return so(i,T,{...I||{},_f:{...I&&I._f?I._f:{ref:{name:T}},name:T,mount:!0,...R}}),m.mount.add(T),I&&!le?Dt({disabled:ot(R.disabled)?R.disabled:n.disabled,name:T}):H(T,!0,R.value),{...te?{disabled:R.disabled||n.disabled}:{},...n.progressive?{required:!!R.required,min:Bi(R.min),max:Bi(R.max),minLength:Bi(R.minLength),maxLength:Bi(R.maxLength),pattern:Bi(R.pattern)}:{},name:T,onChange:Ae,onBlur:Ae,ref:ne=>{if(ne){m.registerName.add(T),Mt(T,R),m.registerName.delete(T),I=de(i,T);const he=Co(ne.value)&&ne.querySelectorAll&&ne.querySelectorAll("input,select,textarea")[0]||ne,Me=wC(he),oo=I._f.refs||[];if(Me?oo.find(cn=>cn===he):he===I._f.ref)return;so(i,T,{_f:{...I._f,...Me?{refs:[...oo.filter(ib),he,...Array.isArray(de(c,T))?[{}]:[]],ref:{type:he.type,name:T}}:{ref:he}}}),H(T,!1,void 0,he)}else I=de(i,T,{}),I._f&&(I._f.mount=!1),(n.shouldUnregister||R.shouldUnregister)&&!(l0(m.array,T)&&u.action)&&m.unMount.add(T)}}},mr=()=>n.shouldFocusError&&qi(i,C,m.mount),yt=T=>{ot(T)&&(z.state.next({disabled:T}),qi(i,(R,I)=>{const te=de(i,I);te&&(R.disabled=te._f.disabled||T,Array.isArray(te._f.refs)&&te._f.refs.forEach(le=>{le.disabled=te._f.disabled||T}))},0,!1))},It=(T,R)=>async I=>{let te;I&&(I.preventDefault&&I.preventDefault(),I.persist&&I.persist());let le=Yo(d);if(z.state.next({isSubmitting:!0}),n.resolver){const{errors:ne,values:he}=await ce();L(),r.errors=ne,le=Yo(he)}else await ee({fields:i,eventType:Fr.SUBMIT});if(m.disabled.size)for(const ne of m.disabled)Jo(le,ne);if(Jo(r.errors,i0),wn(r.errors)){z.state.next({errors:{}});try{await T(le,I)}catch(ne){te=ne}}else R&&await R({...r.errors},I),mr(),setTimeout(mr);if(z.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:wn(r.errors)&&!te,submitCount:r.submitCount+1,errors:r.errors}),te)throw te},Xr=(T,R={})=>{de(i,T)&&(Co(R.defaultValue)?ze(T,Yo(de(c,T))):(ze(T,R.defaultValue),so(c,T,Yo(R.defaultValue))),R.keepTouched||Jo(r.touchedFields,T),R.keepDirty||(Jo(r.dirtyFields,T),r.isDirty=R.defaultValue?Te(T,Yo(de(c,T))):Te()),R.keepError||(Jo(r.errors,T),v.isValid&&E()),z.state.next({...r}))},me=(T,R={})=>{const I=T?Yo(T):c,te=Yo(I),le=wn(T),ne=le?c:te;if(R.keepDefaultValues||(c=I),!R.keepValues){if(R.keepDirtyValues){const he=new Set([...m.mount,...Object.keys(Ii(c,d))]);for(const Me of Array.from(he)){const oo=de(r.dirtyFields,Me),cn=de(d,Me),xn=de(ne,Me);oo&&!Co(cn)?so(ne,Me,cn):!oo&&!Co(xn)&&ze(Me,xn)}}else{if(Om&&Co(T))for(const he of m.mount){const Me=de(i,he);if(Me&&Me._f){const oo=Array.isArray(Me._f.refs)?Me._f.refs[0]:Me._f.ref;if(Gs(oo)){const cn=oo.closest("form");if(cn){cn.reset();break}}}}if(R.keepFieldsRef)for(const he of m.mount)ze(he,de(ne,he));else i={}}d=n.shouldUnregister?R.keepDefaultValues?Yo(c):{}:Yo(ne),z.array.next({values:{...ne}}),z.state.next({values:{...ne}})}m={mount:R.keepDirtyValues?m.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!v.isValid||!!R.keepIsValid||!!R.keepDirtyValues||!n.shouldUnregister&&!wn(ne),u.watch=!!n.shouldUnregister,u.keepIsValid=!!R.keepIsValid,u.action=!1,R.keepErrors||(r.errors={}),z.state.next({submitCount:R.keepSubmitCount?r.submitCount:0,isDirty:le?!1:R.keepDirty?r.isDirty:!!(R.keepDefaultValues&&!gt(T,c)),isSubmitted:R.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:le?{}:R.keepDirtyValues?R.keepDefaultValues&&d?Ii(c,d):r.dirtyFields:R.keepDefaultValues&&T?Ii(c,T):R.keepDirty?r.dirtyFields:{},touchedFields:R.keepTouched?r.touchedFields:{},errors:R.keepErrors?r.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:c})},ve=(T,R)=>me(On(T)?T(d):T,{...n.resetOptions,...R}),Be=(T,R={})=>{const I=de(i,T),te=I&&I._f;if(te){const le=te.refs?te.refs[0]:te.ref;le.focus&&setTimeout(()=>{le.focus(),R.shouldSelect&&On(le.select)&&le.select()})}},co=T=>{r={...r,...T}},uo={control:{register:Mt,unregister:xt,getFieldState:be,handleSubmit:It,setError:Ne,_subscribe:Ro,_runSchema:ce,_updateIsValidating:L,_focusError:mr,_getWatch:$e,_getDirty:Te,_setValid:E,_setFieldArray:w,_setDisabledField:Dt,_setErrors:D,_getFieldArray:M,_reset:me,_resetDefaultValues:()=>On(n.defaultValues)&&n.defaultValues().then(T=>{ve(T,n.resetOptions),z.state.next({isLoading:!1})}),_removeUnmounted:_e,_disableForm:yt,_subjects:z,_proxyFormState:v,get _fields(){return i},get _formValues(){return d},get _state(){return u},set _state(T){u=T},get _defaultValues(){return c},get _names(){return m},set _names(T){m=T},get _formState(){return r},get _options(){return n},set _options(T){n={...n,...T}}},subscribe:yo,trigger:P,register:Mt,handleSubmit:It,watch:Ye,setValue:ze,getValues:ae,reset:ve,resetField:Xr,clearErrors:Ce,unregister:xt,setError:Ne,setFocus:Be,getFieldState:be};return{...uo,formControl:uo}}function El(e={}){const n=re.useRef(void 0),r=re.useRef(void 0),[i,c]=re.useState({isDirty:!1,isValidating:!1,isLoading:On(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:On(e.defaultValues)?void 0:e.defaultValues});if(!n.current)if(e.formControl)n.current={...e.formControl,formState:i},e.defaultValues&&!On(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:u,...m}=DC(e);n.current={...m,formState:i}}const d=n.current.control;return d._options=e,Bm(()=>{const u=d._subscribe({formState:d._proxyFormState,callback:()=>c({...d._formState}),reRenderRoot:!0});return c(m=>({...m,isReady:!0})),d._formState.isReady=!0,u},[d]),re.useEffect(()=>d._disableForm(e.disabled),[d,e.disabled]),re.useEffect(()=>{e.mode&&(d._options.mode=e.mode),e.reValidateMode&&(d._options.reValidateMode=e.reValidateMode)},[d,e.mode,e.reValidateMode]),re.useEffect(()=>{e.errors&&(d._setErrors(e.errors),d._focusError())},[d,e.errors]),re.useEffect(()=>{e.shouldUnregister&&d._subjects.state.next({values:d._getWatch()})},[d,e.shouldUnregister]),re.useEffect(()=>{if(d._proxyFormState.isDirty){const u=d._getDirty();u!==i.isDirty&&d._subjects.state.next({isDirty:u})}},[d,i.isDirty]),re.useEffect(()=>{var u;e.values&&!gt(e.values,r.current)?(d._reset(e.values,{keepFieldsRef:!0,...d._options.resetOptions}),!((u=d._options.resetOptions)===null||u===void 0)&&u.keepIsValid||d._setValid(),r.current=e.values,c(m=>({...m}))):d._resetDefaultValues()},[d,e.values]),re.useEffect(()=>{d._state.mount||(d._setValid(),d._state.mount=!0),d._state.watch&&(d._state.watch=!1,d._subjects.state.next({...d._formState})),d._removeUnmounted()}),n.current.formState=re.useMemo(()=>s0(i,d),[d,i]),n.current}function k0(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,i=Object.getOwnPropertySymbols(e);c<i.length;c++)n.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(e,i[c])&&(r[i[c]]=e[i[c]]);return r}var Ll;(function(e){e.event="event",e.props="prop"})(Ll||(Ll={}));function Hr(){}function MC(e){var n,r=void 0;return function(){for(var i=[],c=arguments.length;c--;)i[c]=arguments[c];return n&&i.length===n.length&&i.every(function(d,u){return d===n[u]})||(n=i,r=e.apply(void 0,i)),r}}function Wi(e){return!!(e||"").match(/\d/)}function Kr(e){return e==null}function IC(e){return typeof e=="number"&&isNaN(e)}function v0(e){return Kr(e)||IC(e)||typeof e=="number"&&!isFinite(e)}function g0(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function UC(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function FC(e,n,r){var i=UC(r),c=e.search(/[1-9]/);return c=c===-1?e.length:c,e.substring(0,c)+e.substring(c,e.length).replace(i,"$1"+n)}function D1(e){var n=S.useRef(e);n.current=e;var r=S.useRef(function(){for(var i=[],c=arguments.length;c--;)i[c]=arguments[c];return n.current.apply(n,i)});return r.current}function Im(e,n){n===void 0&&(n=!0);var r=e[0]==="-",i=r&&n;e=e.replace("-","");var c=e.split("."),d=c[0],u=c[1]||"";return{beforeDecimal:d,afterDecimal:u,hasNegation:r,addNegation:i}}function HC(e){if(!e)return e;var n=e[0]==="-";n&&(e=e.substring(1,e.length));var r=e.split("."),i=r[0].replace(/^0+/,"")||"0",c=r[1]||"";return(n?"-":"")+i+(c?"."+c:"")}function _0(e,n,r){for(var i="",c=r?"0":"",d=0;d<=n-1;d++)i+=e[d]||c;return i}function M1(e,n){return Array(n+1).join(e)}function x0(e){var n=e+"",r=n[0]==="-"?"-":"";r&&(n=n.substring(1));var i=n.split(/[eE]/g),c=i[0],d=i[1];if(d=Number(d),!d)return r+c;c=c.replace(".","");var u=1+d,m=c.length;return u<0?c="0."+M1("0",Math.abs(u))+c:u>=m?c=c+M1("0",u-m):c=(c.substring(0,u)||"0")+"."+c.substring(u),r+c}function I1(e,n,r){if(["","-"].indexOf(e)!==-1)return e;var i=(e.indexOf(".")!==-1||r)&&n,c=Im(e),d=c.beforeDecimal,u=c.afterDecimal,m=c.hasNegation,h=parseFloat("0."+(u||"0")),p=u.length<=n?"0."+u:h.toFixed(n),g=p.split("."),v=d;d&&Number(g[0])&&(v=d.split("").reverse().reduce(function(j,E,L){return j.length>L?(Number(j[0])+Number(E)).toString()+j.substring(1,j.length):E+j},g[0]));var _=_0(g[1]||"",n,r),z=m?"-":"",$=i?".":"";return""+z+v+$+_}function ga(e,n){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",n),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(n,n),!0):(e.focus(),!1)}}var y0=MC(function(e,n){for(var r=0,i=0,c=e.length,d=n.length;e[r]===n[r]&&r<c;)r++;for(;e[c-1-i]===n[d-1-i]&&d-i>r&&c-i>r;)i++;return{from:{start:r,end:c-i},to:{start:r,end:d-i}}}),VC=function(e,n){var r=Math.min(e.selectionStart,n);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:n}}};function KC(e,n,r){return Math.min(Math.max(e,n),r)}function cb(e){return Math.max(e.selectionStart,e.selectionEnd)}function qC(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function ZC(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function PC(e){var n=e.currentValue,r=e.formattedValue,i=e.currentValueIndex,c=e.formattedValueIndex;return n[i]===r[c]}function GC(e,n,r,i,c,d,u){u===void 0&&(u=PC);var m=c.findIndex(function(N){return N}),h=e.slice(0,m);!n&&!r.startsWith(h)&&(n=h,r=h+r,i=i+h.length);for(var p=r.length,g=e.length,v={},_=new Array(p),z=0;z<p;z++){_[z]=-1;for(var $=0,j=g;$<j;$++){var E=u({currentValue:r,lastValue:n,formattedValue:e,currentValueIndex:z,formattedValueIndex:$});if(E&&v[$]!==!0){_[z]=$,v[$]=!0;break}}}for(var L=i;L<p&&(_[L]===-1||!d(r[L]));)L++;var y=L===p||_[L]===-1?g:_[L];for(L=i-1;L>0&&_[L]===-1;)L--;var w=L===-1||_[L]===-1?0:_[L]+1;return w>y?y:i-w<y-i?w:y}function U1(e,n,r,i){var c=e.length;if(n=KC(n,0,c),i==="left"){for(;n>=0&&!r[n];)n--;n===-1&&(n=r.indexOf(!0))}else{for(;n<=c&&!r[n];)n++;n>c&&(n=r.lastIndexOf(!0))}return n===-1&&(n=c),n}function YC(e){for(var n=Array.from({length:e.length+1}).map(function(){return!0}),r=0,i=n.length;r<i;r++)n[r]=!!(Wi(e[r])||Wi(e[r-1]));return n}function w0(e,n,r,i,c,d){d===void 0&&(d=Hr);var u=D1(function($,j){var E,L;return v0($)?(L="",E=""):typeof $=="number"||j?(L=typeof $=="number"?x0($):$,E=i(L)):(L=c($,void 0),E=i(L)),{formattedValue:E,numAsString:L}}),m=S.useState(function(){return u(Kr(e)?n:e,r)}),h=m[0],p=m[1],g=D1(function($,j){$.formattedValue!==h.formattedValue&&p({formattedValue:$.formattedValue,numAsString:$.value}),d($,j)}),v=e,_=r;Kr(e)&&(v=h.numAsString,_=!0);var z=u(v,_);return S.useMemo(function(){p(z)},[z.formattedValue]),S.useEffect(function(){if(!Kr(n)&&Kr(e)&&h.formattedValue!==""){var $=parseFloat(h.numAsString);g({formattedValue:h.formattedValue,value:h.numAsString,floatValue:isNaN($)?void 0:$},{event:void 0,source:Ll.props})}},[]),[h,g]}function JC(e){return e.replace(/[^0-9]/g,"")}function XC(e){return e}function WC(e){var n=e.type;n===void 0&&(n="text");var r=e.displayType;r===void 0&&(r="input");var i=e.customInput,c=e.renderText,d=e.getInputRef,u=e.format;u===void 0&&(u=XC);var m=e.removeFormatting;m===void 0&&(m=JC);var h=e.defaultValue,p=e.valueIsNumericString,g=e.onValueChange,v=e.isAllowed,_=e.onChange;_===void 0&&(_=Hr);var z=e.onKeyDown;z===void 0&&(z=Hr);var $=e.onMouseUp;$===void 0&&($=Hr);var j=e.onFocus;j===void 0&&(j=Hr);var E=e.onBlur;E===void 0&&(E=Hr);var L=e.value,y=e.getCaretBoundary;y===void 0&&(y=YC);var w=e.isValidInputCharacter;w===void 0&&(w=Wi);var N=e.isCharacterSame,D=k0(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),H=w0(L,h,!!p,u,m,g),q=H[0],oe=q.formattedValue,ce=q.numAsString,Ve=H[1],ie=S.useRef(),ee=S.useRef({formattedValue:oe,numAsString:ce}),_e=function(me,ve){ee.current={formattedValue:me.formattedValue,numAsString:me.value},Ve(me,ve)},Te=S.useState(!1),$e=Te[0],M=Te[1],G=S.useRef(null),se=S.useRef({setCaretTimeout:null,focusTimeout:null});S.useEffect(function(){return M(!0),function(){clearTimeout(se.current.setCaretTimeout),clearTimeout(se.current.focusTimeout)}},[]);var ze=u,Ae=function(me,ve){var Be=parseFloat(ve);return{formattedValue:me,value:ve,floatValue:isNaN(Be)?void 0:Be}},C=function(me,ve,Be){me.selectionStart===0&&me.selectionEnd===me.value.length||(ga(me,ve),se.current.setCaretTimeout=setTimeout(function(){me.value===Be&&me.selectionStart!==ve&&ga(me,ve)},0))},P=function(me,ve,Be){return U1(me,ve,y(me),Be)},ae=function(me,ve,Be){var co=y(ve),en=GC(ve,oe,me,Be,co,w,N);return en=U1(ve,en,co),en},be=function(me){var ve=me.formattedValue;ve===void 0&&(ve="");var Be=me.input,co=me.source,en=me.event,uo=me.numAsString,T;if(Be){var R=me.inputValue||Be.value,I=cb(Be);Be.value=ve,T=ae(R,ve,I),T!==void 0&&C(Be,T,ve)}ve!==oe&&_e(Ae(ve,uo),{event:en,source:co})};S.useEffect(function(){var me=ee.current,ve=me.formattedValue,Be=me.numAsString;(oe!==ve||ce!==Be)&&_e(Ae(oe,ce),{event:void 0,source:Ll.props})},[oe,ce]);var Ce=G.current?cb(G.current):void 0,Ne=typeof window<"u"?S.useLayoutEffect:S.useEffect;Ne(function(){var me=G.current;if(oe!==ee.current.formattedValue&&me){var ve=ae(ee.current.formattedValue,oe,Ce);me.value=oe,C(me,ve,oe)}},[oe]);var Ye=function(me,ve,Be){var co=ve.target,en=ie.current?VC(ie.current,co.selectionEnd):y0(oe,me),uo=Object.assign(Object.assign({},en),{lastValue:oe}),T=m(me,uo),R=ze(T);if(T=m(R,void 0),v&&!v(Ae(R,T))){var I=ve.target,te=cb(I),le=ae(me,oe,te);return I.value=oe,C(I,le,oe),!1}return be({formattedValue:R,numAsString:T,inputValue:me,event:ve,source:Be,input:ve.target}),!0},Ro=function(me,ve){ve===void 0&&(ve=0);var Be=me.selectionStart,co=me.selectionEnd;ie.current={selectionStart:Be,selectionEnd:co+ve}},yo=function(me){var ve=me.target,Be=ve.value,co=Ye(Be,me,Ll.event);co&&_(me),ie.current=void 0},xt=function(me){var ve=me.target,Be=me.key,co=ve.selectionStart,en=ve.selectionEnd,uo=ve.value;uo===void 0&&(uo="");var T;Be==="ArrowLeft"||Be==="Backspace"?T=Math.max(co-1,0):Be==="ArrowRight"?T=Math.min(co+1,uo.length):Be==="Delete"&&(T=co);var R=0;Be==="Delete"&&co===en&&(R=1);var I=Be==="ArrowLeft"||Be==="ArrowRight";if(T===void 0||co!==en&&!I){z(me),Ro(ve,R);return}var te=T;if(I){var le=Be==="ArrowLeft"?"left":"right";te=P(uo,T,le),te!==T&&me.preventDefault()}else Be==="Delete"&&!w(uo[T])?te=P(uo,T,"right"):Be==="Backspace"&&!w(uo[T])&&(te=P(uo,T,"left"));te!==T&&C(ve,te,uo),z(me),Ro(ve,R)},Dt=function(me){var ve=me.target,Be=function(){var co=ve.selectionStart,en=ve.selectionEnd,uo=ve.value;if(uo===void 0&&(uo=""),co===en){var T=P(uo,co);T!==co&&C(ve,T,uo)}};Be(),requestAnimationFrame(function(){Be()}),$(me),Ro(ve)},Mt=function(me){me.persist&&me.persist();var ve=me.target,Be=me.currentTarget;G.current=ve,se.current.focusTimeout=setTimeout(function(){var co=ve.selectionStart,en=ve.selectionEnd,uo=ve.value;uo===void 0&&(uo="");var T=P(uo,co);T!==co&&!(co===0&&en===uo.length)&&C(ve,T,uo),j(Object.assign(Object.assign({},me),{currentTarget:Be}))},0)},mr=function(me){G.current=null,clearTimeout(se.current.focusTimeout),clearTimeout(se.current.setCaretTimeout),E(me)},yt=$e&&qC()?"numeric":void 0,It=Object.assign({inputMode:yt},D,{type:n,value:oe,onChange:yo,onKeyDown:xt,onMouseUp:Dt,onFocus:Mt,onBlur:mr});if(r==="text")return c?re.createElement(re.Fragment,null,c(oe,D)||null):re.createElement("span",Object.assign({},D,{ref:d}),oe);if(i){var Xr=i;return re.createElement(Xr,Object.assign({},It,{ref:d}))}return re.createElement("input",Object.assign({},It,{ref:d}))}function F1(e,n){var r=n.decimalScale,i=n.fixedDecimalScale,c=n.prefix;c===void 0&&(c="");var d=n.suffix;d===void 0&&(d="");var u=n.allowNegative,m=n.thousandsGroupStyle;if(m===void 0&&(m="thousand"),e===""||e==="-")return e;var h=dd(n),p=h.thousandSeparator,g=h.decimalSeparator,v=r!==0&&e.indexOf(".")!==-1||r&&i,_=Im(e,u),z=_.beforeDecimal,$=_.afterDecimal,j=_.addNegation;return r!==void 0&&($=_0($,r,!!i)),p&&(z=FC(z,p,m)),c&&(z=c+z),d&&($=$+d),j&&(z="-"+z),e=z+(v&&g||"")+$,e}function dd(e){var n=e.decimalSeparator;n===void 0&&(n=".");var r=e.thousandSeparator,i=e.allowedDecimalSeparators;return r===!0&&(r=","),i||(i=[n,"."]),{decimalSeparator:n,thousandSeparator:r,allowedDecimalSeparators:i}}function QC(e,n){e===void 0&&(e="");var r=new RegExp("(-)"),i=new RegExp("(-)(.)*(-)"),c=r.test(e),d=i.test(e);return e=e.replace(/-/g,""),c&&!d&&n&&(e="-"+e),e}function eE(e,n){return new RegExp("(^-)|[0-9]|"+g0(e),"g")}function oE(e,n,r){return e===""?!0:!n?.match(/\d/)&&!r?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function nE(e,n,r){var i;n===void 0&&(n=ZC(e));var c=r.allowNegative,d=r.prefix;d===void 0&&(d="");var u=r.suffix;u===void 0&&(u="");var m=r.decimalScale,h=n.from,p=n.to,g=p.start,v=p.end,_=dd(r),z=_.allowedDecimalSeparators,$=_.decimalSeparator,j=e[v]===$;if(Wi(e)&&(e===d||e===u)&&n.lastValue==="")return e;if(v-g===1&&z.indexOf(e[g])!==-1){var E=m===0?"":$;e=e.substring(0,g)+E+e.substring(g+1,e.length)}var L=function(G,se,ze){var Ae=!1,C=!1;d.startsWith("-")?Ae=!1:G.startsWith("--")?(Ae=!1,C=!0):u.startsWith("-")&&G.length===u.length?Ae=!1:G[0]==="-"&&(Ae=!0);var P=Ae?1:0;return C&&(P=2),P&&(G=G.substring(P),se-=P,ze-=P),{value:G,start:se,end:ze,hasNegation:Ae}},y=L(e,g,v),w=y.hasNegation;i=y,e=i.value,g=i.start,v=i.end;var N=L(n.lastValue,h.start,h.end),D=N.start,H=N.end,q=N.value,oe=e.substring(g,v);e.length&&q.length&&(D>q.length-u.length||H<d.length)&&!(oe&&u.startsWith(oe))&&(e=q);var ce=0;e.startsWith(d)?ce+=d.length:g<d.length&&(ce=g),e=e.substring(ce),v-=ce;var Ve=e.length,ie=e.length-u.length;e.endsWith(u)?Ve=ie:(v>ie||v>e.length-u.length)&&(Ve=v),e=e.substring(0,Ve),e=QC(w?"-"+e:e,c),e=(e.match(eE($))||[]).join("");var ee=e.indexOf($);e=e.replace(new RegExp(g0($),"g"),function(G,se){return se===ee?".":""});var _e=Im(e,c),Te=_e.beforeDecimal,$e=_e.afterDecimal,M=_e.addNegation;return p.end-p.start<h.end-h.start&&Te===""&&j&&!parseFloat($e)&&(e=M?"-":""),e}function tE(e,n){var r=n.prefix;r===void 0&&(r="");var i=n.suffix;i===void 0&&(i="");var c=Array.from({length:e.length+1}).map(function(){return!0}),d=e[0]==="-";c.fill(!1,0,Math.min(r.length+(d?1:0),e.length));var u=e.length;return c.fill(!1,u-i.length+1,u+1),c}function rE(e){var n=dd(e),r=n.thousandSeparator,i=n.decimalSeparator,c=e.prefix;c===void 0&&(c="");var d=e.allowNegative;if(d===void 0&&(d=!0),r===i)throw new Error(`
|
|
25954
|
+
}`;const _8=jm.createTheme("ecl-eu",{GLOBAL:g8,"KOL-ACCORDION":OT,"KOL-ALERT":$T,"KOL-BADGE":NT,"KOL-BREADCRUMB":RT,"KOL-BUTTON":DT,"KOL-BUTTON-LINK":BT,"KOL-CARD":MT,"KOL-COMBOBOX":IT,"KOL-DETAILS":UT,"KOL-DRAWER":FT,"KOL-FORM":HT,"KOL-HEADING":VT,"KOL-INPUT-CHECKBOX":KT,"KOL-INPUT-COLOR":qT,"KOL-INPUT-DATE":ZT,"KOL-INPUT-EMAIL":PT,"KOL-INPUT-FILE":GT,"KOL-INPUT-NUMBER":YT,"KOL-INPUT-PASSWORD":JT,"KOL-INPUT-RADIO":XT,"KOL-INPUT-RANGE":WT,"KOL-INPUT-TEXT":QT,"KOL-LINK":o8,"KOL-LINK-BUTTON":e8,"KOL-MODAL":n8,"KOL-NAV":t8,"KOL-PAGINATION":r8,"KOL-POPOVER-BUTTON":a8,"KOL-SELECT":l8,"KOL-SINGLE-SELECT":i8,"KOL-SKIP-NAV":c8,"KOL-SPIN":s8,"KOL-SPLIT-BUTTON":d8,"KOL-TABLE-STATEFUL":u8,"KOL-TABLE-STATELESS":f8,"KOL-TABS":b8,"KOL-TEXTAREA":m8,"KOL-TOAST-CONTAINER":h8,"KOL-TOOLBAR":p8,"KOL-TREE":v8,"KOL-TREE-ITEM":k8}),x8="3.1.5",Vb={version:x8},y8=()=>{const e={onClick:()=>history.back()};return a.jsxs(jn,{_label:"This is an example page",_level:0,_type:"info",children:[a.jsx("p",{children:"You followed an example link."}),history.length>1&&a.jsx(X,{_label:"Go Back",_on:e})]})},Wy=["default","ecl-ec","ecl-eu","unstyled"],Tm=e=>Wy.find(n=>n===e)!==void 0,Am=[{label:"Unstyled (Uncolored)",value:"unstyled"},{label:"Default (Tested)",value:"default"},{label:"European Commission (in progress)",value:"ecl-ec"},{label:"European Union (in progress)",value:"ecl-eu"}];function w8(){const e=matchMedia("(max-width: 1023px)"),[n,r]=S.useState(e.matches),i=()=>{r(e.matches)};return S.useEffect(()=>(i(),e.addEventListener("change",i),()=>{e.removeEventListener("change",i)}),[e]),n}function z8({children:e}){return w8()?a.jsx(dn,{_label:"All components",class:"mt",children:e}):a.jsx("div",{className:"mt scrollable-container",children:e})}function k1({label:e,to:n,children:r}){const i=Gx(n),c=Nl(n),d=H4({path:c.pathname,end:!0});return a.jsx(an,{_label:e,_href:i,_active:!!d,children:r})}function S8({routes:e}){const n=(i,c)=>Object.keys(c).map(d=>{const u=i==="tree"&&d==="basic/:subPage",m=u?"basic/home":d,h=u?"basic":d;return a.jsx(k1,{label:h,to:[i,m].join("/")},[i,d].join("/"))}),r=Object.entries(e).map(([i,c])=>a.jsx(k1,{label:i,to:i,children:n(i,c)},i));return a.jsx(z8,{children:a.jsx("nav",{children:a.jsx(Rx,{_label:"Navigation",class:"block",children:r})})})}const j8=({buildDate:e,commitHash:n})=>!e&&!n?"":a.jsx("div",{className:"text-sm font-mono color-gray-5 m-t-2",children:e&&n?a.jsxs(a.Fragment,{children:["Build: ",n,a.jsx("br",{}),"at ",e]}):n?`Build: ${n}`:`Build date: ${e}`}),T8=({version:e,theme:n,routes:r,routeList:i,sample:c,buildDate:d,commitHash:u,onThemeChange:m})=>{const h=()=>i.indexOf(c),p=()=>c.replace(/\//g," "),g=(z,$)=>{m($)},v=()=>{const z=h(),$=z<=0?i.length-1:z-1;location.replace(`#${i[$]}`)},_=()=>{const z=h(),$=z===i.length-1?0:z+1;location.replace(`#${i[$]}`)};return a.jsx("aside",{className:"app-sidebar p-4",children:a.jsxs("div",{className:"scrollable-container-wrapper",children:[a.jsxs("div",{className:"flex flex-justify-between flex-items-center",children:[a.jsx(ue,{_label:"KoliBri React"}),a.jsx(nd,{_label:e})]}),a.jsx(j8,{buildDate:d,commitHash:u}),a.jsx(tn,{_label:"Theme",_options:Am,_on:{onChange:g},_value:n,class:"mt"}),a.jsx(ue,{_label:"Components",_level:2,className:"block mt"}),a.jsxs("div",{className:"flex flex-justify-between flex-items-center mt",children:[a.jsx(X,{_icons:"codicon codicon-arrow-left",_hideLabel:!0,_label:"Previous component",_on:{onClick:v}}),a.jsxs("span",{className:"text-base text-center",children:[p()," (",h()+1,"/",i.length,")"]}),a.jsx(X,{_icons:"codicon codicon-arrow-right",_hideLabel:!0,_label:"Next component",_on:{onClick:_}})]}),a.jsx(S8,{routes:r})]})})},A8=()=>{const e=Bn();X5("#"+e.pathname)},Cm=S.createContext(null),C8="https://public-ui.github.io/docs/components",E8="https://github.com/public-ui/kolibri/blob/develop/packages/samples/react/src/components",Fe="I am an error message!",Cn="I am a hint.",K=e=>{const n=S.useContext(Cm),r=Bn(),i=r.pathname.split("/").slice(1),c=S.useMemo(()=>i[0]==="scenarios"?null:`${C8}/${i[0]}`,[r.hash]),d=S.useMemo(()=>i[0]==="scenarios"?null:`${E8}/${i[0]}/${i[1]}.tsx`,[r.hash]);return a.jsxs(a.Fragment,{children:[a.jsx("h1",{className:"visually-hidden",children:r.pathname.replace(/\//g," ")}),n?null:a.jsxs("div",{className:"grid sm:flex gap-4 justify-between pb-sm border-b-1 border-b-solid border-gray mb-2",children:[a.jsx("div",{className:"indented-text",children:e.children}),a.jsxs("ul",{className:"flex flex-wrap gap-2 list-none m-0 p-0",children:[d&&a.jsx("li",{children:a.jsx(xe,{_href:d,_label:"Code",_target:"_blank"})}),c&&a.jsx("li",{children:a.jsx(xe,{_href:c,_label:"Documentation",_target:"_blank"})}),a.jsx("li",{children:a.jsx(xe,{_href:`#${r.pathname}?hideMenus`,_label:"Standalone example",_target:"_blank"})})]})]})]})},L8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolAbbr shows an abbreviation and uses kol-tooltip-wc to display the long form, if provided."})}),a.jsxs("p",{children:["I am ",a.jsx(qi,{_label:"as an example",children:"e.g."})," an abbreviation."]}),a.jsxs("p",{children:["I am ",a.jsx(qi,{children:"e.g."})," an abbreviation without label."]})]}),O8={abbr:{basic:L8}},$8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["KolAccordion hides its content until opened. The open state can be toggled by clicking the headline or by setting the ",a.jsx("code",{children:"_open"}),"-prop programmatically. Additionally, the sample shows the disabled state for a closed and an open accordion."]})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(dn,{_label:"Heading Accordion Tab 1 (open)",_open:!0,children:a.jsx(Tn,{_label:"Combobox in Accordion",_suggestions:"['Herr','Frau','Firma']"})}),a.jsx(dn,{_label:"Heading Accordion Tab 2",children:"Contents Accordion Tab 2"}),a.jsx(dn,{_label:"Heading Accordion Tab 3 (deactivated)",_disabled:!0,children:"Contents Accordion Tab 3"}),a.jsx(dn,{_label:"Heading Accordion Tab 4 (disabled and open)",_disabled:!0,_open:!0,children:"Contents Accordion Tab 4"})]})]}),N8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolAccordion with the different heading levels from 1-6."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(dn,{_label:"Heading Level 1",_level:1,children:"Contents Accordion Tab 1"}),a.jsx(dn,{_label:"Heading Level 2",_level:2,children:"Contents Accordion Tab 2"}),a.jsx(dn,{_label:"Heading Level 3",_level:3,children:"Contents Accordion Tab 3"}),a.jsx(dn,{_label:"Heading Level 4",_level:4,children:"Contents Accordion Tab 4"}),a.jsx(dn,{_label:"Heading Level 5",_level:5,children:"Contents Accordion Tab 5"}),a.jsx(dn,{_label:"Heading Level 6",_level:6,children:"Contents Accordion Tab 6"})]})]}),R8={accordion:{basic:$8,headlines:N8}},Bi=({level:e,type:n,variant:r})=>a.jsxs(a.Fragment,{children:[a.jsx(jn,{_label:`This is the headline level ${e} of the alert.`,_level:e,_type:n,_variant:r,children:"This is the text of the alert."}),a.jsx(jn,{_type:n,_variant:r,children:"In this alert, only the text without the heading is used."}),a.jsx(jn,{_label:`This is the headline level ${e} of the alert.`,_level:e,_type:n,_variant:r,_hasCloser:!0,children:"This is the text of the alert. With close button."}),a.jsx(jn,{_type:n,_variant:r,_hasCloser:!0,children:"In this alert, only the text without the heading is used. With close button."})]}),Qy=({variant:e="msg"})=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Bi,{level:1,type:"default",variant:e}),a.jsx(Bi,{level:2,type:"error",variant:e}),a.jsx(Bi,{level:3,type:"info",variant:e}),a.jsx(Bi,{level:4,type:"success",variant:e}),a.jsx(Bi,{level:5,type:"warning",variant:e})]}),B8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["KolAlert shows messages of different types. This sample illustrates the variant ",a.jsx("code",{children:"msg"}),", showing all possible types with and without headlines and close buttons."]})}),a.jsx(Qy,{variant:"msg"})]}),D8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["KolAlert shows messages of different types. This sample illustrates the variant ",a.jsx("code",{children:"card"}),", showing all possible types with and without headlines and close buttons."]})}),a.jsx("section",{className:"w-full",children:a.jsx(Qy,{variant:"card"})})]}),M8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows how KolAlert can be used with arbitrary HTML as slot content."})}),a.jsx("div",{children:a.jsxs(jn,{_label:"Output of HTML code in the alert",_type:"info",children:[a.jsx("div",{className:"mt-2 mb-3",children:a.jsx(ue,{_level:2,_label:"An H2 heading is output here"})}),a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[a.jsxs("div",{children:[a.jsx("h3",{children:"Text in a left-hand column"}),a.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quidem sed fugiat dolorum ratione et, ullam officia nobis nihil debitis, consectetur dicta accusantium. Vitae debitis, quibusdam vel recusandae deleniti placeat dolorem?"})]}),a.jsxs("div",{children:[a.jsx("h3",{children:"Text in einer rechten Spalte"}),a.jsx("p",{children:"Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quod beatae officiis, velit nam dicta quae repellat perspiciatis explicabo illo. Possimus, molestiae deleniti! Exercitationem blanditiis ducimus similique tempora ratione consequuntur eaque!"})]})]})]})})]}),I8={alert:{basic:B8,"card-msg":D8,html:M8}},U8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolAvatar shows a user's avatar with customizable colors. It can be used with or without an image. If no image is defined, the name's initials are shown instead with a configurable background color."})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(gs,{_src:"https://www.w3schools.com/howto/img_avatar.png",_label:"Elke Mustermann"}),a.jsx(gs,{_label:"Elke Mustermann "}),a.jsx(gs,{_label:"Marianne"}),a.jsx(gs,{_color:"#0000FF",_label:"Christian"})]})]}),F8={avatar:{basic:U8}},H8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolBadge shows badges with a label, background color and optional icon."})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(So,{_label:"black"}),a.jsx(So,{_color:"#86ffc6",_label:"teal"}),a.jsx(So,{_color:"#06539e",_label:"blue"}),a.jsx(So,{_color:"#ae0000",_label:"red with icon",_icons:"codicon codicon-smiley"}),a.jsx(So,{_color:"#8b008b",_label:"purple with icon",_icons:"codicon codicon-squirrel"})]})]}),Di=e=>({_label:e,_smartButton:{_ariaDescription:e,_icons:"codicon codicon-close",_label:"Remove",_on:{onClick:()=>alert("clicked")}}}),V8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows KolBadge with an optional ",a.jsx("code",{children:"smartButton"}),'. The sample defines a "close" button with X-icon a click event listener.']})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(So,{...Di("black")}),a.jsx(So,{_color:"#86ffc6",...Di("teal")}),a.jsx(So,{_color:"#06539e",...Di("blue")}),a.jsx(So,{_color:"#ae0000",_icons:"codicon codicon-smiley",...Di("red with icon")}),a.jsx(So,{_color:"#8b008b",_icons:"codicon codicon-squirrel",...Di("purple with icon")})]})]}),K8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample demonstrates the possibility of formatted text in badges via markdown syntax."})}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(So,{_color:"#7db4ebff",_label:"**Bold** and _italic_ Markdown label"}),a.jsx(So,{_color:"#8feb7dff",_label:"This is ~~strikethrough~~ text"}),a.jsx(So,{_color:"#e6ee8eff",_label:"Source code like `y = mx + n` is possible"})]})]}),q8={badge:{basic:H8,button:V8,"formatted-label":K8}},Z8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolBreadcrumb shows a breadcrumb navigation. The sample illustrates a variation of link, text and icon elements."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(As,{_label:"Breadcrumb aus Text-Links",_links:[{_label:"Homepage",_href:"#/back-page"},{_label:"Bottom of the homepage",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]}),a.jsx(As,{_label:"Breadcrumb from icons or text links",_links:[{_label:"Homepage",_icons:"codicon codicon-home",_hideLabel:!0,_href:"#/back-page"},{_label:"Subpage of the start page with very long link test",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]}),a.jsx(As,{_label:"Breadcrumb from icons and text links",_links:[{_label:"Homepage",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"Subpage of the main page and I_am_a_really_long_compound_word_trying_to_break_the_layout",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]})]})]}),P8={breadcrumb:{basic:Z8}},G8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolButtonLink with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(Ye,{_label:"Button Text without area description"}),a.jsx(Ye,{_label:"Button Text",_ariaDescription:"Button Area Description"})]})]});function Uo(){const e=Yr.getInstance(document),n=c=>{e.enqueue({description:c||"Hello",label:"Hello",type:"info"})};return{dummyClickEventHandler:()=>{n()},buttonWithTextClickEventHandler:c=>{const d=c.currentTarget.textContent;n(d)}}}const Y8=()=>{const{dummyClickEventHandler:e}=Uo(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["KolButtonLink shows an element, that behaves like a button but looks like a link. The sample illustrates KolButtonLink with different display-properties such as ",a.jsx("code",{children:"block"}),", ",a.jsx("code",{children:"inline-block"})," and ",a.jsx("code",{children:"inline"}),". It also demonstrates the disabled-state."]})}),a.jsxs("section",{className:"text-base",children:[a.jsx(ue,{_level:2,_label:"Button-Link with _inline"}),a.jsxs("p",{children:["In this paragraph, a link is inserted that contains no additional attributes. ",a.jsx(Ye,{_label:"Simple Link"})," It is rendered by default as an"," ",a.jsx("strong",{children:"inline element"}),"."]}),a.jsxs("p",{children:["In this paragraph, a link is inserted that is rendered as an inline-block element.",a.jsx(Ye,{className:"m-4",style:{display:"inline-block",border:"1px dotted"},_label:"Simple Link"}),". This allows you to assign width, height, and other properties to it using CSS styles.",a.jsx("br",{}),a.jsx("br",{}),"After that, there is a link that is rendered as a block element.",a.jsx(Ye,{style:{display:"block"},_label:"Simple Link"}),"Therefore, I go over the entire width of the parent element to create a line break."]}),a.jsx(ue,{_level:2,_label:"Button-Link with _inline={false}"}),a.jsx("p",{children:"Use the boolean _inline property to render the link inline (default) or standalone."}),a.jsx("p",{children:a.jsx(Ye,{_label:"Disabled ButtonLink",_disabled:!0,_inline:!1})}),a.jsx("p",{children:a.jsx(Ye,{_label:"With access key",_accessKey:"c",_inline:!1,_on:n})}),a.jsx("p",{children:a.jsx(Ye,{_label:"Disabled ButtonLink",_inline:!1,_shortKey:"s"})})]})]})},J8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolButtonLink with icons in different locations."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Ye,{_icons:"codicon codicon-home",_label:"I am a link with an icon on the left"}),a.jsx(Ye,{_icons:{right:"codicon codicon-home"},_label:"I am a link with an icon on the right"}),a.jsx(Ye,{_icons:{top:"codicon codicon-home"},_label:"I am a link with an icon at the top"}),a.jsx(Ye,{_icons:{bottom:"codicon codicon-home"},_label:"I am a link with icon below"}),a.jsx(Ye,{_icons:{top:"codicon codicon-home",right:"codicon codicon-home",bottom:"codicon codicon-home",left:"codicon codicon-home"},_label:"I am a link with all icons"}),a.jsx(Ye,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"I am a link with icon only"})]})]}),X8=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolButtonLink with slot-content instead of a label. The sample uses an image as content."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Ye,{_label:"I am a link that is rendered as text"}),a.jsx(Ye,{_label:"",children:a.jsx("img",{alt:"Presentation of the KoliBri theming",slot:"expert",src:"abgrenzung.jpg",width:"300"})})]})]}),W8={"button-link":{basic:Y8,icons:J8,image:X8,"aria-description":G8}},Q8=()=>{const{dummyClickEventHandler:e}=Uo(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows KolButton with"," ",a.jsx(xe,{_label:"access keys",_href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey",_target:"blank"}),". The access keys can be used to trigger the buttons using the keyboard."]})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_label:"With S access key",_accessKey:"S",_on:n}),a.jsx(X,{_label:"Very small b",_accessKey:"b",_on:n}),a.jsx(X,{_label:"Access key does not appear in label",_accessKey:"x",_on:n}),a.jsx(X,{_label:"access key without label",_hideLabel:!0,_accessKey:"a",_icons:"codicon codicon-dashboard",_on:n}),a.jsx(X,{_label:"with inline icons",_icons:{left:"codicon codicon-dashboard",right:"codicon codicon-dashboard"},_accessKey:"n",_on:n})]})]})},eA=()=>{const{dummyClickEventHandler:e}=Uo(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolButton with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_label:"Button Text without area description",_on:n}),a.jsx(X,{_label:"Button Text",_ariaDescription:"Button Area Description",_on:n})]})]})},oA=()=>{const{dummyClickEventHandler:e}=Uo(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This KolButton sample is used for internal testing purposes: It features multiple buttons with and without icons which are vertically aligned."})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(X,{_label:"Label-Text",_on:n}),a.jsx(X,{_label:"Label-Text",_on:n}),a.jsx(X,{_label:"Label-Text",_on:n}),a.jsx(X,{_icons:"codicon codicon-reactions",_label:"Label-Text with Icon",_on:n})]})]})},xl="kol-tooltip-wc",nA=e=>{const{children:n,...r}=e,{dummyClickEventHandler:i}=Uo(),c={onClick:i};return a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_icons:"codicon codicon-home",_label:"Primary",_variant:"primary",_on:c,...r,children:n}),r._hideLabel&&a.jsx(xl,{_label:"Primary"}),a.jsx(X,{_icons:"codicon codicon-heart",_label:"Secondary",_variant:"secondary",_on:c,...r,children:n}),r._hideLabel&&a.jsx(xl,{_label:"Tertiary"}),a.jsx(X,{_icons:"codicon codicon-hubot",_label:"Tertiary",_variant:"tertiary",_on:c,...r,children:n}),r._hideLabel&&a.jsx(xl,{_label:"Normal"}),a.jsx(X,{_icons:"codicon codicon-hubot",_label:"Normal",_variant:"normal",_on:c,...r,children:n}),r._hideLabel&&a.jsx(xl,{_label:"Danger"}),a.jsx(X,{_icons:"codicon codicon-trash",_label:"Danger",_variant:"danger",_on:c,...r,children:n}),r._hideLabel&&a.jsx(xl,{_label:"Ghost"}),a.jsx(X,{_icons:"codicon codicon-reactions",_label:"Ghost",_variant:"ghost",_on:c,...r,children:n}),r._hideLabel&&a.jsx(xl,{_label:"Link"})]})},e0=(e={})=>{const n=[{label:"Button",buttonProps:e},{label:"Button (disabled)",buttonProps:{...e,_disabled:!0}},{label:"Button (hideLabel)",buttonProps:{...e,_hideLabel:!0}},{label:"Button (disabled, hideLabel)",buttonProps:{...e,_disabled:!0,_hideLabel:!0}}];return a.jsx("div",{className:"grid gap-8",children:n.map(({label:r,buttonProps:i},c)=>a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:r}),a.jsx(nA,{...i})]},c))})},tA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolButton shows a button-element. This sample demonstrates the basic usage with its different styling variants, icons, disabled state and hidden labels."})}),a.jsx(e0,{})]}),rA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolButton show a button-element with expert slot."})}),a.jsx(e0,{_label:"",children:a.jsx("span",{slot:"expert",children:"I am more than just a button"})})]}),aA=()=>{const{dummyClickEventHandler:e}=Uo(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolButton with icons in all alignments."})}),a.jsx("div",{children:a.jsx(X,{_icons:{bottom:"codicon codicon-arrow-down",left:{icon:"codicon codicon-arrow-left"},top:{style:{"font-size":"200%",transform:"rotate(45deg)"},icon:"codicon codicon-arrow-up"},right:"codicon codicon-arrow-right"},_label:"Label",_on:n,className:"w-10rem"})})]})},lA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample demonstrates how the tooltip adapts its width when containing long text inside a row-reverse flex container. The effect becomes visible when inspecting the layout with DevTools and reducing the available width (e.g. by narrowing the screen)."})}),a.jsx("div",{className:"flex flex-row-reverse",children:a.jsx(X,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"This is a very, very long tooltip text that exceeds the width.",_variant:"primary"})})]}),rb=new WeakMap,zn=e=>(rb.has(e)===!1&&rb.set(e,Bx.createRoot(e)),rb.get(e)),iA=({label:e})=>{const n=Yr.getInstance(document),r=S.useRef(null),i=S.useRef(null),c=()=>{n.enqueue({label:"Edit clicked",description:`The button "edit" has been clicked for ${e}`,type:"info"})},d=()=>{n.enqueue({label:"Delete clicked",description:`The button "delete" has been clicked for ${e}`,type:"warning"})},u=m=>{switch(m.code){case"KeyE":r.current?.kolFocus(),c();return;case"KeyD":i.current?.kolFocus(),d();return}};return a.jsxs("div",{style:{display:"flex",gap:"calc(10rem / var(--kolibri-root-font-size, 16))"},onKeyUp:u,children:[a.jsx(X,{ref:r,_label:"Edit",_shortKey:"e",_on:{onClick:c}}),a.jsx(X,{ref:i,_label:"Delete",_shortKey:"d",_variant:"danger",_on:{onClick:d}})]})},cA=()=>{const{dummyClickEventHandler:e}=Uo(),n={onClick:e},r=[{label:"Row 1"},{label:"Row 2"}],i={horizontal:[[{label:"Label",key:"label",textAlign:"left"},{label:"Actions",key:"actions",textAlign:"left",render:(c,d)=>{zn(Pr(c)).render(a.jsx(iA,{label:d.data.label}))}}]]};return a.jsxs(a.Fragment,{children:[a.jsxs(K,{children:[a.jsx("p",{children:"The first sample shows KolButton with short key without functionality. The short key is purely visual. Its functionality needs to be developed separately."}),a.jsx("p",{children:'The second sample showcases a table where each row contains two KolButtons, each with its own shortcut key. To trigger an action, move the focus to any of the "Actions" cells and press "e" or "d." Doing so will activate the corresponding action and display a Toast notification for demonstration purposes.'})]}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_label:"With S short key",_shortKey:"S",_on:n}),a.jsx(X,{_label:"Very small b",_shortKey:"b",_on:n}),a.jsx(X,{_label:"Short key does not appear in label",_shortKey:"x",_on:n}),a.jsx(X,{_label:"short key without label",_hideLabel:!0,_shortKey:"k",_icons:"codicon codicon-dashboard",_on:n}),a.jsx(X,{_label:"with inline icons",_icons:{left:"codicon codicon-dashboard",right:"codicon codicon-dashboard"},_shortKey:"n",_on:n})]}),a.jsx(ue,{_level:2,_label:"Interactive sample",className:"mt"}),a.jsx(ho,{_label:'Move focus within one of the "Actions" cells and press "e" or "d" to trigger an action.',_data:r,_headers:i,_minWidth:"400px"})]})},sA=()=>{const{dummyClickEventHandler:e}=Uo(),n={className:"w-8rem",_on:{onClick:e}};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolButton with adjusted widths."})}),a.jsxs("div",{className:"grid gap-14",children:[a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_label:"Primary",_variant:"primary",...n}),a.jsx(X,{_label:"Secondary",_variant:"secondary",...n}),a.jsx(X,{_label:"Normal",_variant:"normal",...n}),a.jsx(X,{_label:"Danger",_variant:"danger",...n}),a.jsx(X,{_label:"Ghost",_variant:"ghost",...n})]}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_disabled:!0,_label:"Primary",_variant:"primary",...n}),a.jsx(X,{_disabled:!0,_label:"Secondary",_variant:"secondary",...n}),a.jsx(X,{_disabled:!0,_label:"Normal",_variant:"normal",...n}),a.jsx(X,{_disabled:!0,_label:"Danger",_variant:"danger",...n}),a.jsx(X,{_disabled:!0,_label:"Ghost",_variant:"ghost",...n})]})]})]})},dA={button:{basic:tA,icons:aA,width:sA,"access-key":Q8,"aria-description":eA,baselined:oA,"short-key":cA,"expert-slot":rA,"row-reverse-tooltip":lA}},uA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolCard shows a card with title and slot content. The second sample features a close button."})}),a.jsxs("div",{className:"w-full grid grid-cols-2 gap-4",children:[a.jsx(Ne,{_label:"Card with title and content",children:a.jsx("div",{children:"Card contents."})}),a.jsx(Ne,{_label:"Card with closer",_hasCloser:!0,children:a.jsx("p",{children:"This card has a close button."})})]})]}),fA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows cards with all headline levels as title."})}),a.jsxs("div",{className:"w-full grid grid-cols-2 gap-4",children:[a.jsx(Ne,{_label:"Card with headline level 0",_level:0,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Ne,{_label:"Card with headline level 1",_level:1,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Ne,{_label:"Card with headline level 2",_level:2,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Ne,{_label:"Card with headline level 3",_level:3,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Ne,{_label:"Card with headline level 4",_level:4,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Ne,{_label:"Card with headline level 5",_level:5,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Ne,{_label:"Card with headline level 6",_level:6,children:a.jsx("div",{children:"Card contents."})})]})]}),bA={card:{basic:uA,headlines:fA}},En=({RefComponent:e,showButtons:n=!0,...r})=>a.jsx(vn,{className:"w-full",children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(e,{...r}),n&&a.jsxs("div",{className:"flex gap-4",children:[a.jsx(X,{_label:"Submit",_icons:"codicon codicon-arrow-right",_type:"submit",_variant:"primary"}),a.jsx(X,{_label:"Bunte Icons",_icons:{left:{icon:"codicon codicon-heart-filled",style:{color:"#cc006e"}},right:{icon:"codicon codicon-squirrel",style:{color:"#b41b1b"}}},_type:"submit",_variant:"secondary"}),a.jsx(X,{_label:"Reset",_type:"reset",_variant:"tertiary"}),a.jsx(X,{_label:"Help",_variant:"ghost"})]})]})});function Rn({children:e}){const[n]=Gr(),r=n.has("noColumns");return a.jsx("div",{className:r?"":"grid md:grid-cols-2 gap-4",children:e})}const o0=JSON.parse('[{"id":4,"alpha2":"af","alpha3":"afg","name":"Afghanistan"},{"id":818,"alpha2":"eg","alpha3":"egy","name":"Ägypten"},{"id":8,"alpha2":"al","alpha3":"alb","name":"Albanien"},{"id":12,"alpha2":"dz","alpha3":"dza","name":"Algerien"},{"id":20,"alpha2":"ad","alpha3":"and","name":"Andorra"},{"id":24,"alpha2":"ao","alpha3":"ago","name":"Angola"},{"id":28,"alpha2":"ag","alpha3":"atg","name":"Antigua und Barbuda"},{"id":226,"alpha2":"gq","alpha3":"gnq","name":"Äquatorialguinea"},{"id":32,"alpha2":"ar","alpha3":"arg","name":"Argentinien"},{"id":51,"alpha2":"am","alpha3":"arm","name":"Armenien"},{"id":31,"alpha2":"az","alpha3":"aze","name":"Aserbaidschan"},{"id":231,"alpha2":"et","alpha3":"eth","name":"Äthiopien"},{"id":36,"alpha2":"au","alpha3":"aus","name":"Australien"},{"id":44,"alpha2":"bs","alpha3":"bhs","name":"Bahamas"},{"id":48,"alpha2":"bh","alpha3":"bhr","name":"Bahrain"},{"id":50,"alpha2":"bd","alpha3":"bgd","name":"Bangladesch"},{"id":52,"alpha2":"bb","alpha3":"brb","name":"Barbados"},{"id":112,"alpha2":"by","alpha3":"blr","name":"Belarus"},{"id":56,"alpha2":"be","alpha3":"bel","name":"Belgien"},{"id":84,"alpha2":"bz","alpha3":"blz","name":"Belize"},{"id":204,"alpha2":"bj","alpha3":"ben","name":"Benin"},{"id":64,"alpha2":"bt","alpha3":"btn","name":"Bhutan"},{"id":68,"alpha2":"bo","alpha3":"bol","name":"Bolivien"},{"id":70,"alpha2":"ba","alpha3":"bih","name":"Bosnien und Herzegowina"},{"id":72,"alpha2":"bw","alpha3":"bwa","name":"Botswana"},{"id":76,"alpha2":"br","alpha3":"bra","name":"Brasilien"},{"id":96,"alpha2":"bn","alpha3":"brn","name":"Brunei"},{"id":100,"alpha2":"bg","alpha3":"bgr","name":"Bulgarien"},{"id":854,"alpha2":"bf","alpha3":"bfa","name":"Burkina Faso"},{"id":108,"alpha2":"bi","alpha3":"bdi","name":"Burundi"},{"id":152,"alpha2":"cl","alpha3":"chl","name":"Chile"},{"id":156,"alpha2":"cn","alpha3":"chn","name":"China, Volksrepublik"},{"id":188,"alpha2":"cr","alpha3":"cri","name":"Costa Rica"},{"id":208,"alpha2":"dk","alpha3":"dnk","name":"Dänemark"},{"id":276,"alpha2":"de","alpha3":"deu","name":"Deutschland"},{"id":212,"alpha2":"dm","alpha3":"dma","name":"Dominica"},{"id":214,"alpha2":"do","alpha3":"dom","name":"Dominikanische Republik"},{"id":262,"alpha2":"dj","alpha3":"dji","name":"Dschibuti"},{"id":218,"alpha2":"ec","alpha3":"ecu","name":"Ecuador"},{"id":384,"alpha2":"ci","alpha3":"civ","name":"Elfenbeinküste"},{"id":222,"alpha2":"sv","alpha3":"slv","name":"El Salvador"},{"id":232,"alpha2":"er","alpha3":"eri","name":"Eritrea"},{"id":233,"alpha2":"ee","alpha3":"est","name":"Estland"},{"id":748,"alpha2":"sz","alpha3":"swz","name":"Eswatini"},{"id":242,"alpha2":"fj","alpha3":"fji","name":"Fidschi"},{"id":246,"alpha2":"fi","alpha3":"fin","name":"Finnland"},{"id":250,"alpha2":"fr","alpha3":"fra","name":"Frankreich"},{"id":266,"alpha2":"ga","alpha3":"gab","name":"Gabun"},{"id":270,"alpha2":"gm","alpha3":"gmb","name":"Gambia"},{"id":268,"alpha2":"ge","alpha3":"geo","name":"Georgien"},{"id":288,"alpha2":"gh","alpha3":"gha","name":"Ghana"},{"id":308,"alpha2":"gd","alpha3":"grd","name":"Grenada"},{"id":300,"alpha2":"gr","alpha3":"grc","name":"Griechenland"},{"id":320,"alpha2":"gt","alpha3":"gtm","name":"Guatemala"},{"id":324,"alpha2":"gn","alpha3":"gin","name":"Guinea"},{"id":624,"alpha2":"gw","alpha3":"gnb","name":"Guinea-Bissau"},{"id":328,"alpha2":"gy","alpha3":"guy","name":"Guyana"},{"id":332,"alpha2":"ht","alpha3":"hti","name":"Haiti"},{"id":340,"alpha2":"hn","alpha3":"hnd","name":"Honduras"},{"id":356,"alpha2":"in","alpha3":"ind","name":"Indien"},{"id":360,"alpha2":"id","alpha3":"idn","name":"Indonesien"},{"id":368,"alpha2":"iq","alpha3":"irq","name":"Irak"},{"id":364,"alpha2":"ir","alpha3":"irn","name":"Iran"},{"id":372,"alpha2":"ie","alpha3":"irl","name":"Irland"},{"id":352,"alpha2":"is","alpha3":"isl","name":"Island"},{"id":376,"alpha2":"il","alpha3":"isr","name":"Israel"},{"id":380,"alpha2":"it","alpha3":"ita","name":"Italien"},{"id":388,"alpha2":"jm","alpha3":"jam","name":"Jamaika"},{"id":392,"alpha2":"jp","alpha3":"jpn","name":"Japan"},{"id":887,"alpha2":"ye","alpha3":"yem","name":"Jemen"},{"id":400,"alpha2":"jo","alpha3":"jor","name":"Jordanien"},{"id":116,"alpha2":"kh","alpha3":"khm","name":"Kambodscha"},{"id":120,"alpha2":"cm","alpha3":"cmr","name":"Kamerun"},{"id":124,"alpha2":"ca","alpha3":"can","name":"Kanada"},{"id":132,"alpha2":"cv","alpha3":"cpv","name":"Kap Verde"},{"id":398,"alpha2":"kz","alpha3":"kaz","name":"Kasachstan"},{"id":634,"alpha2":"qa","alpha3":"qat","name":"Katar"},{"id":404,"alpha2":"ke","alpha3":"ken","name":"Kenia"},{"id":417,"alpha2":"kg","alpha3":"kgz","name":"Kirgisistan"},{"id":296,"alpha2":"ki","alpha3":"kir","name":"Kiribati"},{"id":170,"alpha2":"co","alpha3":"col","name":"Kolumbien"},{"id":174,"alpha2":"km","alpha3":"com","name":"Komoren"},{"id":180,"alpha2":"cd","alpha3":"cod","name":"Kongo, Demokratische Republik"},{"id":178,"alpha2":"cg","alpha3":"cog","name":"Kongo, Republik"},{"id":408,"alpha2":"kp","alpha3":"prk","name":"Korea, Nord (Nordkorea)"},{"id":410,"alpha2":"kr","alpha3":"kor","name":"Korea, Süd (Südkorea)"},{"id":191,"alpha2":"hr","alpha3":"hrv","name":"Kroatien"},{"id":192,"alpha2":"cu","alpha3":"cub","name":"Kuba"},{"id":414,"alpha2":"kw","alpha3":"kwt","name":"Kuwait"},{"id":418,"alpha2":"la","alpha3":"lao","name":"Laos"},{"id":426,"alpha2":"ls","alpha3":"lso","name":"Lesotho"},{"id":428,"alpha2":"lv","alpha3":"lva","name":"Lettland"},{"id":422,"alpha2":"lb","alpha3":"lbn","name":"Libanon"},{"id":430,"alpha2":"lr","alpha3":"lbr","name":"Liberia"},{"id":434,"alpha2":"ly","alpha3":"lby","name":"Libyen"},{"id":438,"alpha2":"li","alpha3":"lie","name":"Liechtenstein"},{"id":440,"alpha2":"lt","alpha3":"ltu","name":"Litauen"},{"id":442,"alpha2":"lu","alpha3":"lux","name":"Luxemburg"},{"id":450,"alpha2":"mg","alpha3":"mdg","name":"Madagaskar"},{"id":454,"alpha2":"mw","alpha3":"mwi","name":"Malawi"},{"id":458,"alpha2":"my","alpha3":"mys","name":"Malaysia"},{"id":462,"alpha2":"mv","alpha3":"mdv","name":"Malediven"},{"id":466,"alpha2":"ml","alpha3":"mli","name":"Mali"},{"id":470,"alpha2":"mt","alpha3":"mlt","name":"Malta"},{"id":504,"alpha2":"ma","alpha3":"mar","name":"Marokko"},{"id":584,"alpha2":"mh","alpha3":"mhl","name":"Marshallinseln"},{"id":478,"alpha2":"mr","alpha3":"mrt","name":"Mauretanien"},{"id":480,"alpha2":"mu","alpha3":"mus","name":"Mauritius"},{"id":484,"alpha2":"mx","alpha3":"mex","name":"Mexiko"},{"id":583,"alpha2":"fm","alpha3":"fsm","name":"Mikronesien"},{"id":498,"alpha2":"md","alpha3":"mda","name":"Moldau"},{"id":492,"alpha2":"mc","alpha3":"mco","name":"Monaco"},{"id":496,"alpha2":"mn","alpha3":"mng","name":"Mongolei"},{"id":499,"alpha2":"me","alpha3":"mne","name":"Montenegro"},{"id":508,"alpha2":"mz","alpha3":"moz","name":"Mosambik"},{"id":104,"alpha2":"mm","alpha3":"mmr","name":"Myanmar"},{"id":516,"alpha2":"na","alpha3":"nam","name":"Namibia"},{"id":520,"alpha2":"nr","alpha3":"nru","name":"Nauru"},{"id":524,"alpha2":"np","alpha3":"npl","name":"Nepal"},{"id":554,"alpha2":"nz","alpha3":"nzl","name":"Neuseeland"},{"id":558,"alpha2":"ni","alpha3":"nic","name":"Nicaragua"},{"id":528,"alpha2":"nl","alpha3":"nld","name":"Niederlande"},{"id":562,"alpha2":"ne","alpha3":"ner","name":"Niger"},{"id":566,"alpha2":"ng","alpha3":"nga","name":"Nigeria"},{"id":807,"alpha2":"mk","alpha3":"mkd","name":"Nordmazedonien"},{"id":578,"alpha2":"no","alpha3":"nor","name":"Norwegen"},{"id":512,"alpha2":"om","alpha3":"omn","name":"Oman"},{"id":40,"alpha2":"at","alpha3":"aut","name":"Österreich"},{"id":626,"alpha2":"tl","alpha3":"tls","name":"Osttimor"},{"id":586,"alpha2":"pk","alpha3":"pak","name":"Pakistan"},{"id":585,"alpha2":"pw","alpha3":"plw","name":"Palau"},{"id":591,"alpha2":"pa","alpha3":"pan","name":"Panama"},{"id":598,"alpha2":"pg","alpha3":"png","name":"Papua-Neuguinea"},{"id":600,"alpha2":"py","alpha3":"pry","name":"Paraguay"},{"id":604,"alpha2":"pe","alpha3":"per","name":"Peru"},{"id":608,"alpha2":"ph","alpha3":"phl","name":"Philippinen"},{"id":616,"alpha2":"pl","alpha3":"pol","name":"Polen"},{"id":620,"alpha2":"pt","alpha3":"prt","name":"Portugal"},{"id":646,"alpha2":"rw","alpha3":"rwa","name":"Ruanda"},{"id":642,"alpha2":"ro","alpha3":"rou","name":"Rumänien"},{"id":643,"alpha2":"ru","alpha3":"rus","name":"Russland"},{"id":90,"alpha2":"sb","alpha3":"slb","name":"Salomonen"},{"id":894,"alpha2":"zm","alpha3":"zmb","name":"Sambia"},{"id":882,"alpha2":"ws","alpha3":"wsm","name":"Samoa"},{"id":674,"alpha2":"sm","alpha3":"smr","name":"San Marino"},{"id":678,"alpha2":"st","alpha3":"stp","name":"São Tomé und Príncipe"},{"id":682,"alpha2":"sa","alpha3":"sau","name":"Saudi-Arabien"},{"id":752,"alpha2":"se","alpha3":"swe","name":"Schweden"},{"id":756,"alpha2":"ch","alpha3":"che","name":"Schweiz"},{"id":686,"alpha2":"sn","alpha3":"sen","name":"Senegal"},{"id":688,"alpha2":"rs","alpha3":"srb","name":"Serbien"},{"id":690,"alpha2":"sc","alpha3":"syc","name":"Seychellen"},{"id":694,"alpha2":"sl","alpha3":"sle","name":"Sierra Leone"},{"id":716,"alpha2":"zw","alpha3":"zwe","name":"Simbabwe"},{"id":702,"alpha2":"sg","alpha3":"sgp","name":"Singapur"},{"id":703,"alpha2":"sk","alpha3":"svk","name":"Slowakei"},{"id":705,"alpha2":"si","alpha3":"svn","name":"Slowenien"},{"id":706,"alpha2":"so","alpha3":"som","name":"Somalia"},{"id":724,"alpha2":"es","alpha3":"esp","name":"Spanien"},{"id":144,"alpha2":"lk","alpha3":"lka","name":"Sri Lanka"},{"id":659,"alpha2":"kn","alpha3":"kna","name":"St. Kitts und Nevis"},{"id":662,"alpha2":"lc","alpha3":"lca","name":"St. Lucia"},{"id":670,"alpha2":"vc","alpha3":"vct","name":"St. Vincent und die Grenadinen"},{"id":710,"alpha2":"za","alpha3":"zaf","name":"Südafrika"},{"id":729,"alpha2":"sd","alpha3":"sdn","name":"Sudan"},{"id":728,"alpha2":"ss","alpha3":"ssd","name":"Südsudan"},{"id":740,"alpha2":"sr","alpha3":"sur","name":"Suriname"},{"id":760,"alpha2":"sy","alpha3":"syr","name":"Syrien"},{"id":762,"alpha2":"tj","alpha3":"tjk","name":"Tadschikistan"},{"id":834,"alpha2":"tz","alpha3":"tza","name":"Tansania"},{"id":764,"alpha2":"th","alpha3":"tha","name":"Thailand"},{"id":768,"alpha2":"tg","alpha3":"tgo","name":"Togo"},{"id":776,"alpha2":"to","alpha3":"ton","name":"Tonga"},{"id":780,"alpha2":"tt","alpha3":"tto","name":"Trinidad und Tobago"},{"id":148,"alpha2":"td","alpha3":"tcd","name":"Tschad"},{"id":203,"alpha2":"cz","alpha3":"cze","name":"Tschechien"},{"id":788,"alpha2":"tn","alpha3":"tun","name":"Tunesien"},{"id":792,"alpha2":"tr","alpha3":"tur","name":"Türkei"},{"id":795,"alpha2":"tm","alpha3":"tkm","name":"Turkmenistan"},{"id":798,"alpha2":"tv","alpha3":"tuv","name":"Tuvalu"},{"id":800,"alpha2":"ug","alpha3":"uga","name":"Uganda"},{"id":804,"alpha2":"ua","alpha3":"ukr","name":"Ukraine"},{"id":348,"alpha2":"hu","alpha3":"hun","name":"Ungarn"},{"id":858,"alpha2":"uy","alpha3":"ury","name":"Uruguay"},{"id":860,"alpha2":"uz","alpha3":"uzb","name":"Usbekistan"},{"id":548,"alpha2":"vu","alpha3":"vut","name":"Vanuatu"},{"id":862,"alpha2":"ve","alpha3":"ven","name":"Venezuela"},{"id":784,"alpha2":"ae","alpha3":"are","name":"Vereinigte Arabische Emirate"},{"id":840,"alpha2":"us","alpha3":"usa","name":"Vereinigte Staaten"},{"id":826,"alpha2":"gb","alpha3":"gbr","name":"Vereinigtes Königreich"},{"id":704,"alpha2":"vn","alpha3":"vnm","name":"Vietnam"},{"id":140,"alpha2":"cf","alpha3":"caf","name":"Zentralafrikanische Republik"},{"id":196,"alpha2":"cy","alpha3":"cyp","name":"Zypern"}]'),at=[...o0.map(e=>({label:e.name,value:e.alpha2}))],lt=[...o0.map(e=>e.name)],v1=e=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Tn,{...e,_hint:Cn,_label:"Label",_suggestions:lt,_value:"Deutschland"}),a.jsx(Tn,{...e,_label:"Disabled",_suggestions:lt,_value:"Deutschland",_disabled:!0}),a.jsx(Tn,{...e,_suggestions:lt,_msg:{_type:"error",_description:Fe},_touched:!0,_label:"Label",_placeholder:"Placeholder",_required:!0}),a.jsx(Tn,{...e,_label:"With access key",_suggestions:lt,_value:"Deutschland",_accessKey:"c"}),a.jsx(Tn,{...e,_label:"With short key",_suggestions:lt,_value:"Deutschland",_shortKey:"s"})]}),mA=e=>a.jsxs(Rn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(v1,{...e})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(v1,{...e,_hideLabel:!0})]})]}),hA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolCombobox combines a text input with a suggestion list, enabling users to either type in a value or to select on of the suggestions."})}),a.jsx(En,{RefComponent:mA,showButtons:!1})]}),pA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"A HTML only KolCombobox."})}),a.jsx(Tn,{_label:"With string array in html",_suggestions:"['Herr','Frau','Firma']",_value:"Herr"})]}),kA={combobox:{basic:hA,html:pA}},vA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["KolDetails hides its content until opened. The open state can be toggled either by clicking the label or by setting the ",a.jsx("code",{children:"_open"}),"-prop programmatically. The sample includes an initially open state and a disabled but open Details component."]})}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ar,{_label:"Closed initially",children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt."}),a.jsx(ar,{_disabled:!0,_label:"Open initially (disabled)",_open:!0,children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt."}),a.jsx(ar,{_label:"Open initially",_open:!0,children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt."})]})]}),gA={details:{basic:vA}},_A=["left","top","right","bottom"].map(e=>({label:e,value:e})),Em=({value:e="left",onChange:n})=>a.jsx("div",{className:"grid gap-4",children:a.jsx("div",{className:"container my-4 d-grid gap-4",children:a.jsx(No,{_label:"Drawer alignment",_value:e,_options:_A,_orientation:"horizontal",_on:{onChange:n}})})}),xA=()=>{const[e]=Gr(),n=e.get("align"),r=e.get("closer")==="true",i=S.useRef(null),[c,d]=S.useState(n||"left"),[u,m]=S.useState(r);return S.useEffect(()=>{n&&i.current?.open()},[n]),a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolDrawer shows a dialog attached to one of the sides of the viewport, when opened. This sample illustrates the four alignments."})}),a.jsx(Em,{value:c,onChange:(h,p)=>d(p)}),a.jsx(lo,{_label:"Drawer has closer",className:"mb-4",_checked:u,_on:{onInput:(h,p)=>{m(p===!0)}}}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(am,{ref:i,_label:"I am a drawer",_align:c,_hasCloser:u,_on:{onClose:()=>console.log("Drawer onClose triggered!")},children:a.jsxs("div",{className:c==="left"||c==="right"?"drawer-content-vertical":"",children:[a.jsx("p",{className:"mt-0",children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua."}),a.jsx(X,{_label:"Close drawer",_on:{onClick:()=>i.current?.close()}})]})}),a.jsx(X,{_label:"Open drawer",_on:{onClick:()=>i.current?.open()}})]})]})},yA=()=>{const[e]=Gr(),n=e.get("align"),[r,i]=S.useState(!1),[c,d]=S.useState(n||"left");return a.jsxs("div",{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows the KolDrawer controlled by the property ",a.jsx("code",{children:"_open"})," instead of methods."]})}),a.jsx(Em,{value:c,onChange:(u,m)=>d(m)}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(am,{_open:r,_align:c,_label:"I'm a controlled drawer",_on:{onClose:()=>i(!1)},children:a.jsxs("div",{children:[a.jsx("p",{children:"Lorem ipsum dolor sit amet,"}),a.jsx(X,{_label:"Close drawer",_on:{onClick:()=>i(!1)}})]})}),a.jsx(X,{_label:"Open drawer",_on:{onClick:()=>i(!0)}})]})]})},wA=()=>{const e=S.useRef(null),[n,r]=S.useState("bottom"),[i,c]=S.useState(!0);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample demonstrates how KolDrawer handles content that exceeds the drawer dimensions and shows the correct way to handle overflow. Use the "Enable Overflow Handling" toggle to see the difference between problematic behavior (content exceeding drawer bounds) and the proper solution (overflow handling within the slot content).'})}),a.jsxs("div",{className:"flex flex-col gap-4 mb-4",children:[a.jsx(Em,{value:n,onChange:(d,u)=>r(u)}),a.jsx(lo,{_label:"Enable Overflow Handling (Recommended)",_checked:i,_on:{onChange:(d,u)=>c(!!u)}})]}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(am,{ref:e,_label:"Scrollable Drawer",_align:n,children:i?a.jsx("div",{style:{width:n==="left"||n==="right"?"90vw":void 0,height:n==="top"||n==="bottom"?"90vh":void 0,overflow:"auto",padding:"0",border:"1px solid #999"},children:a.jsxs("div",{style:{width:n==="left"||n==="right"?"150vw":void 0,height:n==="top"||n==="bottom"?"150vh":void 0,background:"linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f0 75%), linear-gradient(-45deg, transparent 75%, #f0f0f0 75%)",backgroundSize:"20px 20px",backgroundPosition:"0 0, 0 10px, 10px -10px, -10px 0px",border:"2px dashed #ccc",padding:"20px",display:"flex",flexDirection:"column",gap:"20px"},children:[a.jsx("p",{children:"✅ Content with proper overflow handling - scrollable within drawer bounds"}),a.jsxs("div",{children:[a.jsx("h3",{children:"Large Content Area (Scrollable)"}),a.jsxs("p",{children:["Container: ",n==="left"||n==="right"?"400px wide":"90vw wide"," ×"," ",n==="top"||n==="bottom"?"90vh high":"400px high"]}),a.jsxs("p",{children:["Content: ",n==="left"||n==="right"?"150vw wide":"400px wide"," ×"," ",n==="top"||n==="bottom"?"150vh high":"400px high"]}),a.jsxs("p",{children:[a.jsx("strong",{children:"Overflow Handling:"})," Enabled - Container has fixed size with overflow: auto"]}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."}),a.jsx("p",{children:"With overflow handling enabled, this content scrolls properly within the drawer container. You can scroll horizontally/vertically to see all content."}),a.jsx("div",{style:{marginTop:"auto",paddingTop:"40px"},children:a.jsx(X,{_label:"Close drawer",_on:{onClick:()=>e.current?.close()}})})]})]})}):a.jsxs("div",{style:{width:n==="left"||n==="right"?"150vw":"400px",height:n==="top"||n==="bottom"?"150vh":"400px",background:"linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f0 75%), linear-gradient(-45deg, transparent 75%, #f0f0f0 75%)",backgroundSize:"20px 20px",backgroundPosition:"0 0, 0 10px, 10px -10px, -10px 0px",border:"2px dashed #ccc",padding:"20px",display:"flex",flexDirection:"column",gap:"20px"},children:[a.jsx("p",{children:"❌ Content exceeding drawer bounds - problematic behavior"}),a.jsxs("div",{children:[a.jsx("h3",{children:"Large Content Area"}),a.jsxs("p",{children:["Width: ",n==="left"||n==="right"?"150vw (exceeds drawer width)":"400px"]}),a.jsxs("p",{children:["Height: ",n==="top"||n==="bottom"?"150vh (exceeds drawer height)":"400px"]}),a.jsxs("p",{children:[a.jsx("strong",{children:"Overflow Handling:"})," Disabled - Content extends beyond drawer boundaries"]}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."}),a.jsx("p",{children:"Without overflow handling, this content may extend beyond the drawer boundaries, causing layout issues."}),a.jsx("div",{style:{marginTop:"auto",paddingTop:"40px"},children:a.jsx(X,{_label:"Close drawer",_on:{onClick:()=>e.current?.close()}})})]})]})}),a.jsx(X,{_label:"Open scrollable drawer",_on:{onClick:()=>e.current?.open()}})]})]})},zA={drawer:{basic:xA,controlled:yA,scrolled:wA}},SA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolForm renders a form around the input components provided in a slot. This sample shows a basic form with three input fields."})}),a.jsx(vn,{className:"w-full",children:a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Le,{id:"input1",_label:"Input 1"}),a.jsx(Le,{id:"input2",_label:"Input 2"}),a.jsx(Le,{id:"input3",_label:"Input 3"})]})})]}),jA=()=>{const e=S.useRef(null),n=()=>{e.current?.focusErrorList()};return S.useEffect(()=>{e.current?.focusErrorList()},[]),a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows a form with error messages."})}),a.jsx(vn,{className:"w-full",ref:e,_on:{onSubmit:n},_errorList:[{message:"Error in Input 2",selector:"#input2"},{message:"Error in Input 3",selector:()=>alert("Error in Input 3")}],children:a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Le,{id:"input1",_label:"Input 1"}),a.jsx(Le,{id:"input2",_label:"Input 2",_touched:!0,_msg:{_description:"Input error",_type:"error"}}),a.jsx(Le,{id:"input3",_label:"Input 3",_touched:!0,_msg:{_description:"Input error",_type:"error"}}),a.jsx("div",{children:a.jsx(X,{_label:"ScrollTo",_type:"submit"})})]})})]})},TA={form:{basic:SA,"error-list":jA}},n0=`public-ui.v${Vb.version}`;class AA{store=new Map;setItem(n,r){this.store.set(n,r)}getItem(n){return this.store.get(n)||null}}const Qi={darkMode:!1,theme:"default"};let Kb;function t0(e){Kb=e;const n=Kb.getItem(n0);try{const r=JSON.parse(n);typeof r=="object"&&r!==null&&(Qi.darkMode=r.darkMode===!0,Tm(r.theme)&&(Qi.theme=r.theme))}catch{}}t0(new AA);const CA=()=>{Kb.setItem(n0,JSON.stringify(Qi))},EA=e=>{if(Tm(e))Qi.theme=e,CA();else throw new Error(`The theme identifier "${e}" is not valid or an available option.`)},Ps=()=>`${Qi.theme}`,qb=e=>{if(Tm(e))return Am.find(n=>n.value===e)?.label;throw new Error(`The theme identifier "${e}" is not valid or an available option.`)},LA=[{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"},{monday:"Alex",tuesday:"Anna",wednesday:"Amalia",thursday:"Arthur",friday:"Alex",saturday:"Andrea",sunday:"Arnold"},{monday:"Helena",tuesday:"Fabian",wednesday:"Marie",thursday:"Ben",friday:"Marcus",saturday:"Alex",sunday:"Marcus"},{monday:"Fabian",tuesday:"Helena",wednesday:"Fabian",thursday:"Maya",friday:"Ben",saturday:"Alex",sunday:"Helena"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Hong",tuesday:"Alex",wednesday:"Kevin",thursday:"Maya",friday:"Fabian",saturday:"Helena",sunday:"Alex"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Samuel",tuesday:"Selena",wednesday:"Sandra",thursday:"Salim",friday:"Robert",saturday:"Richard",sunday:"Pamela"},{monday:"Finn",tuesday:"Roger",wednesday:"Christian",thursday:"Caspar",friday:"David",saturday:"Bernard",sunday:"Anna"}];function OA({_on:e,...n}){const{dummyClickEventHandler:r}=Uo(),i={onClick:r};return a.jsx(X,{...n,_on:i})}const $A={horizontal:[[{label:"Workdays",colSpan:5},{label:"Weekend",colSpan:2}],[{key:"monday",label:"Monday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),zn(r).render(a.jsx(OA,{_label:n.label,style:{fontSize:"75%"}}))},compareFn:(e,n)=>e.monday<n.monday?-1:e.monday>n.monday?1:0,sortDirection:"ASC",textAlign:"right"},{key:"tuesday",label:"Tuesday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),zn(r).render(a.jsx(So,{_color:"#060",_label:n.label}))},compareFn:(e,n)=>e.tuesday<n.tuesday?-1:e.tuesday>n.tuesday?1:0,sortDirection:"DESC"},{key:"wednesday",label:"Wednesday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),zn(r).render(a.jsx(So,{_color:"#006",_label:n.label}))}},{key:"thursday",label:"Thursday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),zn(r).render(a.jsx(So,{_color:"#600",_label:n.label}))}},{key:"friday",label:"Friday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),zn(r).render(a.jsx(So,{_color:"#303",_label:n.label}))}},{key:"saturday",label:"Saturday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),zn(r).render(a.jsx(So,{_color:"#330",_label:n.label}))}},{key:"sunday",label:"Sunday",render:(e,n)=>{const r=document.createElement("div");r.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(r),zn(r).render(a.jsx(So,{_color:"#033",_label:n.label}))}}]],vertical:[[{label:"Early"},{label:"Noon"},{label:"Evening"},{label:"Night"}]]},NA=()=>{const{dummyClickEventHandler:e}=Uo(),n={onClick:e};return a.jsxs("div",{className:"grid gap-4",children:[a.jsxs("div",{className:"grid gap-4 md:grid-cols-[auto_1fr_1fr] items-center",children:[a.jsx(Cs,{className:"block w-75px",_labeled:!1}),a.jsx(ue,{_label:"",_level:1,children:a.jsxs("span",{slot:"expert",children:["Kolibri-Handout ",a.jsxs("small",{children:["for ",qb(Ps())]})]})}),a.jsxs(ar,{_label:"Abstract",_open:!0,children:["The handout shows a selection of KoliBri components in the style of ",a.jsx("strong",{children:qb(Ps())}),". Since KoliBri offers self-contained, accessible web components that can be customized to your own corporate design using theming, you don't have to develop these components yourself. For more information read our documentation and follow us (",a.jsx(xe,{_label:"https://github.com/public-ui/kolibri",_href:"https://github.com/public-ui/kolibri",_target:"_blank"}),")."]})]}),a.jsxs("div",{className:"grid gap-4 sm:grid-cols-6 md:grid-cols-6 xl:grid-cols-12",children:[a.jsx(Ne,{className:"col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2",_label:"Heading",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx(ue,{_label:"Heading Level 1",_level:1}),a.jsx(ue,{_label:"Heading Level 2",_level:2}),a.jsx(ue,{_label:"Heading Level 3",_level:3}),a.jsx(ue,{_label:"Heading Level 4",_level:4}),a.jsx(ue,{_label:"Heading Level 5",_level:5}),a.jsx(ue,{_label:"Heading Level 6",_level:6}),a.jsx(ue,{_label:"Heading Level 6",_secondaryHeadline:"Lessons",_level:6})]})}),a.jsx(Ne,{className:"col-span-6 sm:col-span-6 md:col-span-3 xl:col-span-2",_label:"Abbreviation and Progress",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsxs("p",{children:["I am ",a.jsx(qi,{_label:"as an example",children:"e.g."})," an abbreviation."]}),a.jsxs("p",{children:["I am ",a.jsx(qi,{children:"e.g."})," an abbreviation without label."]}),a.jsx(tr,{_variant:"bar",_max:100,_value:33,_label:"Progress"}),a.jsx(tr,{_variant:"cycle",_max:100,_value:66,_label:"Progress"})]})}),a.jsx(Ne,{className:"col-span-6 sm:col-span-6 md:col-span-6 xl:col-span-3",_label:"Button, LinkButton and Tab",_level:2,children:a.jsx("div",{slot:"",className:"grid gap-2 p-2",children:a.jsxs(cr,{_label:"",_selected:0,_tabs:[{_label:"Button"},{_label:"LinkButton"},{_label:"Disabled Tab",_disabled:!0}],children:[a.jsxs("div",{className:"grid gap-2 py-2",children:[a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(X,{_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary",_on:n}),a.jsx(X,{_disabled:!0,_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary",_on:n}),a.jsx(X,{_hideLabel:!0,_icons:"codicon codicon-arrow-left",_label:"primary",_variant:"primary",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(X,{_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary",_on:n}),a.jsx(X,{_disabled:!0,_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary",_on:n}),a.jsx(X,{_hideLabel:!0,_icons:"codicon codicon-arrow-right",_label:"secondary",_variant:"secondary",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(X,{_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger",_on:n}),a.jsx(X,{_disabled:!0,_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger",_on:n}),a.jsx(X,{_hideLabel:!0,_icons:"codicon codicon-arrow-up",_label:"danger",_variant:"danger",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(X,{_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal",_on:n}),a.jsx(X,{_disabled:!0,_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal",_on:n}),a.jsx(X,{_hideLabel:!0,_icons:"codicon codicon-arrow-down",_label:"normal",_variant:"normal",_on:n})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(X,{_label:"ghost",_variant:"ghost"}),a.jsx(X,{_disabled:!0,_label:"ghost",_variant:"ghost"}),a.jsx(X,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"ghost",_variant:"ghost",_on:n})]})]}),a.jsxs("div",{className:"grid gap-2 py-2",children:[a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(We,{_href:"#/back-page",_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary"}),a.jsx(We,{_href:"#/back-page",_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary"}),a.jsx(We,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-left",_label:"primary",_variant:"primary"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(We,{_href:"#/back-page",_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary"}),a.jsx(We,{_href:"#/back-page",_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary"}),a.jsx(We,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-right",_label:"secondary",_variant:"secondary"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(We,{_href:"#/back-page",_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger"}),a.jsx(We,{_href:"#/back-page",_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger"}),a.jsx(We,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-up",_label:"danger",_variant:"danger"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(We,{_href:"#/back-page",_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal"}),a.jsx(We,{_href:"#/back-page",_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal"}),a.jsx(We,{_href:"#/back-page",_hideLabel:!0,_icons:"codicon codicon-arrow-down",_label:"normal",_variant:"normal"})]}),a.jsxs("div",{className:"grid gap-2 grid-cols-[4fr_4fr_1fr] justify-items-center",children:[a.jsx(We,{_href:"#/back-page",_label:"ghost",_variant:"ghost"}),a.jsx(We,{_href:"#/back-page",_label:"ghost",_variant:"ghost"}),a.jsx(We,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"ghost",_variant:"ghost"})]})]})]})})}),a.jsx(Ne,{className:"col-span-6 sm:col-span-6 md:col-span-2 xl:col-span-2",_label:"Accordion, Link and ButtonLink",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx(dn,{_label:"Links",_level:3,_open:!0,children:a.jsxs("div",{className:"grid gap-2",slot:"",children:[a.jsx(xe,{_href:"#/back-page",_label:"Link text"}),a.jsx(xe,{_href:"#/back-page",_icons:"codicon codicon-home",_label:"Link text with icon"}),a.jsx(xe,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link text with icon only"}),a.jsx(xe,{_href:"/",_label:"Visited link"}),a.jsxs("p",{children:["I am a ",a.jsx(xe,{_href:"#/back-page",_label:"externer Link",_target:"w3c"})," in the running text."]})]})}),a.jsx(dn,{_label:"ButtonLinks",_level:3,children:a.jsxs("div",{className:"grid gap-2",slot:"",children:[a.jsx(Ye,{_label:"Link text"}),a.jsx(Ye,{_icons:"codicon codicon-home",_label:"Link text with icon"}),a.jsx(Ye,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link text with icon only"}),a.jsxs("p",{children:["I am a ",a.jsx(Ye,{_label:"Link"})," in the running text."]}),a.jsx(Ye,{_icons:{left:"codicon codicon-arrow-left",right:"codicon codicon-arrow-right",top:"codicon codicon-arrow-up",bottom:"codicon codicon-arrow-down"},_label:"Icons"})]})})]})}),a.jsx(Ne,{className:"col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-3",_label:"Alert",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx(jn,{_label:"Default message",_type:"default",children:"This is the text of the alert."}),a.jsx(jn,{_type:"success",children:"Success message text"}),a.jsx(jn,{_type:"error",_hasCloser:!0,children:"This is a error message text."}),a.jsx(jn,{_label:"Info card",_type:"info",_variant:"card",children:"This is the text of the alert."}),a.jsx(jn,{_label:"Warning card",_type:"warning",_hasCloser:!0,_variant:"card",children:"This is the text of the alert."})]})}),a.jsx(Ne,{className:"col-span-6 sm:col-span-6 md:col-span-2 xl:col-span-2",_label:"Nav and Breadcrumb",_level:2,children:a.jsxs("div",{slot:"",className:"grid gap-2 p-2",children:[a.jsx("div",{children:a.jsx(Tl,{_label:"Main navigation",_links:[{_label:"Homepage",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"2 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_active:!0,_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_label:"3.1 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.2 External navigation point",_icons:"codicon codicon-home",_href:"#/back-page",_target:"_blank"},{_label:"3.3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_active:!0,_label:"3.3.1 Navigation point (active)",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.3.2 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"}]}]},{_label:"3 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"}],_hasCompactButton:!0})}),a.jsx("div",{children:a.jsx(As,{_label:"Breadcrumb aus Text-Links",_links:[{_label:"Homepage",_href:"#/back-page"},{_label:"Bottom of the homepage",_href:"#/back-page"},{_label:"Underside of the underside",_href:"#/back-page"}]})})]})}),a.jsx(Ne,{className:"col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5",_label:"Input",_level:2,children:a.jsx(vn,{slot:"",children:a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 md:grid-cols-3 p-2",children:[a.jsx(on,{_label:"Color"}),a.jsx(Io,{_label:"Upload file"}),a.jsx(Co,{_label:"Number input"}),a.jsx(Ve,{_type:"date",_label:"Date"}),a.jsx(nn,{_icons:"{'left': 'codicon codicon-home'}",_msg:{_type:"error",_description:"Test of an error message"},_touched:!0,_label:"E-mail address"}),a.jsx(Le,{_hint:"I am a hint.",_label:"First name"}),a.jsx($o,{_label:"password"}),a.jsx(tn,{_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_label:"Stimmung"}),a.jsx(ln,{_min:0,_max:50,_value:25,_label:"Slider"}),a.jsx(No,{className:"herr-frau",_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_value:"1",_label:"Salutation"}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(No,{_orientation:"horizontal",_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_value:"0",_label:"Salutation"}),a.jsx(lo,{_label:"",children:a.jsxs("span",{slot:"expert",children:["I accept the ",a.jsx(qi,{_label:"General Terms and Conditions",children:"AGB"}),"."]})})]}),a.jsx(eo,{_rows:4,_label:"Textarea"})]})})}),a.jsx(Ne,{className:"col-span-6 sm:col-span-6 md:col-span-6 xl:col-span-5",_label:"Table with Pagination",_level:2,children:a.jsx("div",{slot:"",className:"grid gap-2 p-2 handout-table-card-content",children:a.jsx(ho,{_label:"Table",_minWidth:"auto",_headers:$A,_data:LA,_pagination:!0})})})]}),a.jsx(nd,{_label:"5.0.2-test.2"})]})},RA={handout:{basic:NA}},BA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows KolHeading with its different levels and content provided using the export slot instead of the ",a.jsx("code",{children:"_label"}),"-property."]})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ue,{_label:"",_level:1,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(So,{_label:"Label"})]})}),a.jsx(ue,{_label:"",_level:2,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(So,{_color:"#86ffc6",_label:"Label"})]})}),a.jsx(ue,{_label:"",_level:3,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(So,{_color:"#06539e",_label:"Label"})]})}),a.jsx(ue,{_label:"",_level:4,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(So,{_color:"#ae0000",_label:"Label"})]})}),a.jsx(ue,{_label:"",_level:5,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(So,{_color:"#8b008b",_label:"Label"})]})}),a.jsx(ue,{_label:"",_level:6,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(So,{_color:"#ffc0cb",_label:"Label"})]})})]})]}),DA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolHeading renders a heading with the given level."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ue,{_label:"I'm a H1-heading",_level:1}),a.jsx(ue,{_label:"I'm a H2-heading",_level:2}),a.jsx(ue,{_label:"I'm a H3-heading",_level:3}),a.jsx(ue,{_label:"I'm a H4-heading",_level:4}),a.jsx(ue,{_label:"I'm a H5-heading",_level:5}),a.jsx(ue,{_label:"I'm a H6-heading",_level:6})]})]}),MA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolHeading with its different levels combined with some text content each."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ue,{_label:"Ich bin eine H1-Überschrift",_level:1}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(ue,{_label:"Ich bin eine H2-Überschrift",_level:2}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(ue,{_label:"Ich bin eine H3-Überschrift",_level:3}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(ue,{_label:"Ich bin eine H4-Überschrift",_level:4}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(ue,{_label:"Ich bin eine H5-Überschrift",_level:5}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."}),a.jsx(ue,{_label:"Ich bin eine H6-Überschrift",_level:6}),a.jsx("p",{children:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."})]})]}),IA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows KolHeading with the prop ",a.jsx("code",{children:"_secondaryHeadline"})," in use."]})}),a.jsx("div",{className:"grid gap-4",children:a.jsx(ue,{_label:"This is a H1 headline",_secondaryHeadline:"This is a secondary headline",_level:1})})]}),UA={heading:{basic:DA,badge:BA,paragraph:MA,secondary:IA}},FA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolIcon renders codicon icons. This sample shows regular icons and one with a custom style-property, changing the icon color."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(xt,{className:"block",_label:"",_icons:"codicon codicon-home"}),a.jsx(xt,{className:"block",_label:"",_icons:"codicon codicon-compass-active"}),a.jsx(xt,{className:"block",_label:"",_icons:"codicon codicon-debug"}),a.jsx(xt,{className:"block",_label:"",_icons:"codicon codicon-squirrel"}),a.jsx(xt,{className:"block w-[1em] h-[1em]",style:{color:"red"},_label:"",_icons:"codicon codicon-home"})]})]}),HA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolIcon renders Font Awesome icons, if you have added this font to your theme. We are showing Font Awesome Free 6.1.1."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(xt,{className:"block",_label:"",_icons:"fa-solid fa-house"}),a.jsx(xt,{className:"block",_label:"",_icons:"fa-solid fa-circle-user"}),a.jsx(xt,{className:"block",_label:"",_icons:"fa-solid fa-truck"}),a.jsx(xt,{className:"block",_label:"",_icons:"fa-solid fa-city"}),a.jsx(xt,{className:"block",_label:"",_icons:"fa-regular fa-heart"}),a.jsx(xt,{className:"block",_label:"",_icons:"fa-regular fa-thumbs-up"}),a.jsx(xt,{className:"block",_label:"",_icons:"fa-brands fa-github"}),a.jsx(Le,{_label:"With Font Awesome icons",_icons:{left:{icon:"fa-solid fa-phone"},right:{icon:"fa-solid fa-arrow-right"}}})]})]}),VA={icon:{basic:FA,"font-awesome":HA}},KA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolImage renders an image. The sample shows an image with alternative text."})}),a.jsx(o4,{className:"w-image",_src:"abgrenzung.jpg",_alt:"Darstellung des KoliBri-Theming"})]}),qA={image:{basic:KA}},ys=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(lo,{...n,_label:"Not selected",_value:!1,_required:!0}),a.jsx(lo,{...n,_label:"Indeterminate",_value:null,_indeterminate:!0}),a.jsx(lo,{...n,ref:r,_accessKey:"A",_checked:!0,_label:"Selected",_tooltipAlign:"right",_value:!0}),a.jsx(lo,{...n,_checked:!0,_icons:{unchecked:"codicon codicon-close"},_label:"With a very long label and upheavals ".repeat(5),_value:!0}),a.jsx(lo,{...n,_disabled:!0,_label:"Disabled",_value:!0,_hint:"Hint text"}),a.jsx(lo,{...n,_checked:!0,_disabled:!0,_label:"Checked and disabled"}),a.jsx(lo,{...n,_indeterminate:!0,_disabled:!0,_label:"Indeterminate and disabled"}),a.jsx(lo,{...n,_msg:{_type:"error",_description:Fe},_label:"With error",_touched:!0,_value:!0,_hint:"Hint text"}),a.jsx(lo,{...n,_label:"With access key",_accessKey:"c",_value:null}),a.jsx(lo,{...n,_label:"With short key",_shortKey:"s",_value:null})]})}),Lm=S.forwardRef(function(n,r){return a.jsxs(a.Fragment,{children:[a.jsxs(Rn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "left" with label'}),a.jsx(ys,{...n,_labelAlign:"left"})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "left" without Label (hideLabel)'}),a.jsx(ys,{ref:r,...n,_hideLabel:!0,_labelAlign:"left"})]})]}),a.jsxs(Rn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "right" with label'}),a.jsx(ys,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "right" without Label (hideLabel)'}),a.jsx(ys,{ref:r,...n,_hideLabel:!0})]})]})]})}),ZA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputCheckbox renders a checkbox. The sample shows KolInputCheckbox in a form context with all variations and states."})}),a.jsx(En,{RefComponent:Lm,showButtons:!1})]}),PA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows KolInputCheckbox in the variant "button".'})}),a.jsx(En,{RefComponent:Lm,_variant:"button",showButtons:!1})]}),GA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows KolInputCheckbox in the variant "switch".'})}),a.jsx(En,{RefComponent:Lm,_variant:"switch",showButtons:!1})]}),YA={"input-checkbox":{basic:ZA,switch:GA,button:PA}},g1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(on,{...n,_msg:{_type:"error",_description:Fe},_icons:{left:"codicon codicon-symbol-color"},_label:"Color (Black background test)",_value:"#f08080"})}),a.jsx(on,{...n,_msg:{_type:"error",_description:Fe},_label:"Color with error",_suggestions:"['#000000','#f08080', '#0000ff','#00ff00']",_touched:!0}),a.jsx(on,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Color"}),a.jsx(on,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Color"}),a.jsx(on,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Color"}),a.jsx(on,{...n,ref:r,_accessKey:"C",_hint:"Hint text",_label:"Color with hint",_value:"#f08080"}),a.jsx(on,{...n,_disabled:!0,_label:"Color (Disabled)",_value:"#f08080"}),a.jsx(on,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(on,{...n,_label:"With short key",_shortKey:"s"})]})}),JA=S.forwardRef(function(n,r){return a.jsxs(Rn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Color"}),a.jsx(g1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Color (hideLabel)"}),a.jsx(g1,{ref:r,...n,_hideLabel:!0})]})]})}),XA=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputColor renders a color input. The sample shows KolInputColor in a form context with all variations and states."})}),a.jsx(En,{RefComponent:JA,showButtons:!1})]}),WA={"input-color":{basic:XA}},_1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Ve,{...n,_type:"date",_label:"Date input (Black background test)",_required:!0})}),a.jsx(Ve,{...n,_type:"datetime-local",_label:"Local-Datetime (Standard)",_required:!0}),a.jsx(Ve,{...n,_step:1,_type:"datetime-local",_hint:Cn,_msg:{_type:"error",_description:Fe},_label:"Local datetime (with seconds)",_required:!0,_touched:!0}),a.jsx(Ve,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Color"}),a.jsx(Ve,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Color"}),a.jsx(Ve,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Color"}),a.jsx(Ve,{...n,_type:"month",_label:"Month",_required:!0}),a.jsx(Ve,{...n,ref:r,_accessKey:"W",_type:"week",_label:"Week",_required:!0}),a.jsx(Ve,{...n,_type:"time",_label:"Time (standard)",_required:!0}),a.jsx(Ve,{...n,_step:1,_type:"time",_label:"Time (with seconds)",_required:!0}),a.jsx(Ve,{...n,_readOnly:!0,_label:"Date input (read-only)",_required:!0}),a.jsx(Ve,{...n,_disabled:!0,_label:"Date input (Disabled)",_required:!0}),a.jsx(Ve,{...n,_label:"With access key",_accessKey:"s"}),a.jsx(Ve,{...n,_label:"With short key",_shortKey:"s"})]})}),QA=e=>{const n="2024-09-26",r="2024-09-27",i="12:00",c="15:00",d="2024-09-26T12:00",u="2024-09-27T15:00",m="2024-W10",h="2024-W50",p="2024-02",g="2024-10",v=new Date("January 10, 2024, 12:00"),_=new Date("October 20, 2024, 15:00");return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Ve,{...e,_type:"date",_label:"Date with Iso",_min:n,_max:r}),a.jsx(Ve,{...e,_type:"date",_label:"Date with Date",_min:v,_max:_}),a.jsx(Ve,{...e,_type:"time",_label:"Time with Iso",_min:i,_max:c}),a.jsx(Ve,{...e,_type:"time",_label:"Time with Date",_min:v,_max:_}),a.jsx(Ve,{...e,_type:"datetime-local",_label:"DayTime with Iso",_min:d,_max:u}),a.jsx(Ve,{...e,_type:"datetime-local",_label:"DayTime with Date",_min:v,_max:_}),a.jsx(Ve,{...e,_type:"week",_label:"Week with Iso",_min:m,_max:h}),a.jsx(Ve,{...e,_type:"week",_label:"Week with Date",_min:v,_max:_}),a.jsx(Ve,{...e,_type:"month",_label:"Month with Iso",_min:p,_max:g}),a.jsx(Ve,{...e,_type:"month",_label:"Month with Date",_min:v,_max:_})]})},eC=S.forwardRef(function(n,r){return a.jsxs(Rn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date"}),a.jsx(_1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date (hideLabel)"}),a.jsx(_1,{ref:r,...n,_hideLabel:!0})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date (with min/max)"}),a.jsx(QA,{...n})]})]})}),oC=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputDate renders all types of fields for date and time input. The sample shows KolInputDate in a form context with all variations and states."})}),a.jsx(En,{RefComponent:eC,showButtons:!1})]}),x1=e=>String(e).padStart(2,"0"),nC=(e,n,r)=>{const i=new Date(e,n-1,r);return i.getFullYear()===e&&i.getMonth()===n-1&&i.getDate()===r};function y1(e){const n=/^\s*(\d{1,2})\.(\d{1,2})\.(\d{4})\s*$/.exec(e);if(!n)return null;const r=+n[1],i=+n[2],c=+n[3];return nC(c,i,r)?`${c}-${x1(i)}-${x1(r)}`:null}function tC(e){return e instanceof HTMLElement&&e.tagName==="KOL-INPUT-DATE"}async function rC(e,n){typeof e.setIsoValue=="function"?await e.setIsoValue(n):typeof e.value<"u"?e.value=n:typeof e._value<"u"?e._value=n:e.setAttribute("_value",n),e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),e.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}const aC=()=>{const[e,n]=S.useState("31.12.2025"),[r,i]=S.useState(""),c=S.useRef(null),d=S.useMemo(()=>y1(e),[e]);S.useEffect(()=>{const h=new AbortController,p=g=>{const v=g.composedPath?.()??[];c.current=v.find(tC)??null};return document.addEventListener("focusin",p,{capture:!0,signal:h.signal}),()=>h.abort()},[]),S.useEffect(()=>{const h=new AbortController,p=g=>{const v=c.current;if(!v)return;const _=g.clipboardData?.getData("text")??"",z=y1(_);if(!z){i("Clipboard: unrecognized date. Use DD.MM.YYYY.");return}g.preventDefault(),rC(v,z),i("Pasted.")};return document.addEventListener("paste",p,{capture:!0,signal:h.signal}),()=>h.abort()},[]);const u=S.useCallback(async h=>{i("");try{await navigator.clipboard.writeText(h),i("Copied.")}catch{i("Copy failed. Your browser may block clipboard access.")}},[]),m=S.useCallback((h,p)=>{if(h?.target){const g=typeof p=="string"?p:String(p??"");n(g)}},[]);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["Type a date in German format (",a.jsx("code",{children:"DD.MM.YYYY"}),"), click ",a.jsx("em",{children:"Copy to Clipboard"}),", then paste it into the date field below with ",a.jsx("kbd",{children:"Ctrl"}),"+",a.jsx("kbd",{children:"V"}),". The ISO conversion happens internally."]})}),a.jsxs("div",{className:"grid gap-8",lang:"en",children:[a.jsxs("section",{"aria-labelledby":"de-title",children:[a.jsx("h3",{id:"de-title",className:"text-lg font-semibold mb-2",children:"German date (DD.MM.YYYY)"}),a.jsxs("div",{className:"grid gap-3",children:[a.jsx(Le,{className:"w-full",_label:"German date (DD.MM.YYYY)",_placeholder:"e.g., 31.12.2025",_value:e,_type:"text",_on:{onInput:m,onChange:m}}),a.jsx("small",{className:"opacity-80",children:"Click the button to copy the exact German date, then paste it into the date field below."}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(X,{_label:"Copy to Clipboard",_on:{onClick:()=>u(e)}}),!d&&a.jsx("span",{className:"text-red-600",children:"Invalid date"})]}),a.jsx(Ve,{_type:"date",_label:"Date (paste here with Ctrl+V)",className:"w-full"})]})]}),a.jsx("p",{"aria-live":"polite",role:"status",className:"mt-2 opacity-80",children:r})]})]})},lC=()=>{const e=S.useRef(null);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample demonstrates the KolInputDate ",a.jsx("code",{children:"reset"}),"-Method, which can be used to clear the field, even when it holds incomplete or invalid values."]})}),a.jsx(Ve,{className:"w-full",ref:e,_label:"Resettable Input Date",_value:"2024-02-10"}),a.jsx(X,{className:"mt",_label:"Reset",_on:{onClick:()=>e.current?.reset()}})]})},iC=["default","error","info","success","warning"];function ab(e){return{onChange:()=>e(n=>!n)}}const cC=()=>{const[e,n]=S.useState(!0),[r,i]=S.useState(!0),[c,d]=S.useState(!1),u=ab(n),m=ab(i),h=ab(d);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This example shows how messages work in input fields."})}),a.jsxs("div",{className:"flex gap-4 flex-col",children:[a.jsxs("div",{className:"flex gap-4 items-center",children:[a.jsx(lo,{_label:"Toggle Msg",_on:u,_checked:e,_variant:"button"}),a.jsx(lo,{_label:"Toggle Touched",_on:m,_checked:r,_variant:"button"}),a.jsx(lo,{_label:"Toggle Hide Msg",_on:h,_checked:c,_variant:"button"})]}),a.jsxs("pre",{children:["Message exists: ",e?"Yes":"No"," (showMsg: ",e?"Yes":"No",")",a.jsx("br",{}),"Non-Error-Message visible: ",e&&!c?"Yes":"No"," (showMsg: ",e?"Yes":"No",", hideMsg: ",c?"Yes":"No",")",a.jsx("br",{}),"Error-Message visible: ",e&&r&&!c?"Yes":"No"," (showMsg: ",e?"Yes":"No",", isTouched: ",r?"Yes":"No",", hideMsg: ",c?"Yes":"No",")"]}),iC.map(p=>a.jsx(Ve,{_hideMsg:c,_label:`Date (_msg, ${p})`,_msg:e?{_description:`${p} message`,_type:p}:void 0,_touched:r},p))]})]})},sC={"input-date":{basic:oC,"copy-paste":aC,reset:lC,"show-hide-msg":cC}},w1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(nn,{...n,_required:!0,_value:"test@mail.de",_msg:{_type:"error",_description:Fe},_label:"E-Mail (Black background test)"})}),a.jsx(nn,{...n,ref:r,_accessKey:"M",_placeholder:"elke@mustermann.de",_suggestions:"['test1@mail.de', 'test2@mail.de', 'test3@mail.de']",_label:"E-Mail (list)",_hint:Cn,_msg:{_type:"error",_description:Fe},_touched:!0,_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(nn,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"E-Mail"}),a.jsx(nn,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"E-Mail"}),a.jsx(nn,{...n,_msg:{_type:"success",_description:"Success message"},_label:"E-Mail"}),a.jsx(nn,{...n,_disabled:!0,_value:"test@mail.de",_label:"E-Mail (Disabled)"}),a.jsx(nn,{...n,_readOnly:!0,_value:"test@mail.de",_label:"E-Mail (Readonly)"}),a.jsx(nn,{...n,_value:"test@mail.de",_label:"With access key",_accessKey:"c"}),a.jsx(nn,{...n,_value:"test@mail.de",_label:"With short key",_shortKey:"s"})]})}),dC=S.forwardRef(function(n,r){return a.jsxs(Rn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Email"}),a.jsx(w1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Email (hideLabel)"}),a.jsx(w1,{ref:r,...n,_hideLabel:!0})]})]})}),uC=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputEmail renders an email input field. The sample shows KolInputEmail in a form context with all variations and states."})}),a.jsx(En,{RefComponent:dC,showButtons:!1})]}),fC={"input-email":{basic:uC}},z1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Io,{...n,_label:"Upload file (Black background test)",_icons:{left:{icon:"codicon codicon-save"}},_touched:!0})}),a.jsx(Io,{...n,_required:!0,_hint:Cn,_msg:{_type:"error",_description:Fe},_label:"Upload file (Black background test)",_icons:{left:{icon:"codicon codicon-save"}},_touched:!0}),a.jsx(Io,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Upload file"}),a.jsx(Io,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Upload file"}),a.jsx(Io,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Upload file"}),a.jsx(Io,{...n,ref:r,_accessKey:"h",_multiple:!0,_msg:{_type:"error",_description:Fe},_label:"Upload file (Multiple)"}),a.jsx(Io,{...n,_disabled:!0,_label:"Upload file (Disabled)"}),a.jsx(Io,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(Io,{...n,_label:"With short key",_shortKey:"s"})]})}),bC=S.forwardRef(function(n,r){return a.jsxs(Rn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"File"}),a.jsx(z1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"File (hideLabel)"}),a.jsx(z1,{ref:r,...n,_hideLabel:!0})]})]})}),mC=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputFile renders a file input field. The sample shows KolInputFile in a form context with all variations and states."})}),a.jsx(En,{RefComponent:bC,showButtons:!1})]}),hC={"input-file":{basic:mC}},S1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsxs("div",{className:"black-background",children:[a.jsx(Co,{...n,_required:!0,_touched:!0,_value:123,_label:"Number input (Black background test)"})," "]}),a.jsx(Co,{...n,_required:!0,_msg:{_type:"error",_description:Fe},_touched:!0,_placeholder:"Mit Icons",_label:"Number input",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(Co,{...n,_required:!0,_msg:{_type:"error",_description:Fe},_touched:!0,_value:123,_label:"Number input"}),a.jsx(Co,{...n,_required:!0,_msg:{_type:"warning",_description:Fe},_touched:!0,_value:123,_label:"Number input"}),a.jsx(Co,{...n,_required:!0,_msg:{_type:"info",_description:Fe},_touched:!0,_value:123,_label:"Number input"}),a.jsx(Co,{...n,_required:!0,_msg:{_type:"success",_description:Fe},_touched:!0,_value:123,_label:"Number input"}),a.jsx(Co,{...n,ref:r,_accessKey:"Z",_max:10,_min:-10,_step:2,_label:"Number input (-10 to 10 in steps of 2)"}),a.jsx(Co,{...n,_readOnly:!0,_label:"Number input (Readonly)"}),a.jsx(Co,{...n,_disabled:!0,_label:"Number input (Disabled)"}),a.jsx(Co,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(Co,{...n,_label:"With short key",_shortKey:"s"})]})}),pC=S.forwardRef(function(n,r){return a.jsxs(Rn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Number"}),a.jsx(S1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Number (hideLabel)"}),a.jsx(S1,{ref:r,...n,_hideLabel:!0})]})]})}),kC=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputNumber encompasses basic functionalities, utilizing the min, max, and step attributes to restrict the range of input values. Despite these constraints, it allows free input that can ignore the defined minimum and maximum values, as well as step sizes. The component intentionally does not emphasize validation rules, supporting examples without form validation, and refrains from additional validation through native HTML element validation."})}),a.jsx(En,{RefComponent:pC,showButtons:!1})]});var ac=e=>e.type==="checkbox",ya=e=>e instanceof Date,Nn=e=>e==null;const r0=e=>typeof e=="object";var Po=e=>!Nn(e)&&!Array.isArray(e)&&r0(e)&&!ya(e),a0=e=>Po(e)&&e.target?ac(e.target)?e.target.checked:e.target.value:e,l0=(e,n)=>n.split(".").some((r,i,c)=>!isNaN(Number(r))&&e.has(c.slice(0,i).join("."))),vC=e=>{const n=e.constructor&&e.constructor.prototype;return Po(n)&&n.hasOwnProperty("isPrototypeOf")},Om=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Qo(e){if(e instanceof Date)return new Date(e);const n=typeof FileList<"u"&&e instanceof FileList;if(Om&&(e instanceof Blob||n))return e;const r=Array.isArray(e);if(!r&&!(Po(e)&&vC(e)))return e;const i=r?[]:Object.create(Object.getPrototypeOf(e));for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&(i[c]=Qo(e[c]));return i}var sd=e=>/^\w*$/.test(e),Oo=e=>e===void 0,$m=e=>Array.isArray(e)?e.filter(Boolean):[],Nm=e=>$m(e.replace(/["|']|\]/g,"").split(/\.|\[/)),se=(e,n,r)=>{if(!n||!Po(e))return r;const c=(sd(n)?[n]:Nm(n)).reduce((d,u)=>Nn(d)?void 0:d[u],e);return Oo(c)||c===e?Oo(e[n])?r:e[n]:c},tt=e=>typeof e=="boolean",Sn=e=>typeof e=="function",uo=(e,n,r)=>{let i=-1;const c=sd(n)?[n]:Nm(n),d=c.length,u=d-1;for(;++i<d;){const m=c[i];let h=r;if(i!==u){const p=e[m];h=Po(p)||Array.isArray(p)?p:isNaN(+c[i+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;e[m]=h,e=e[m]}};const Hr={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Tt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},jt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},lb="form",i0="root",c0=re.createContext(null);c0.displayName="HookFormControlContext";const Rm=()=>re.useContext(c0);var s0=(e,n,r,i=!0)=>{const c={defaultValues:n._defaultValues};for(const d in e)Object.defineProperty(c,d,{get:()=>{const u=d;return n._proxyFormState[u]!==Tt.all&&(n._proxyFormState[u]=!i||Tt.all),r&&(r[u]=!0),e[u]}});return c};const Bm=typeof window<"u"?re.useLayoutEffect:re.useEffect;function gC(e){const n=Rm(),{control:r=n,disabled:i,name:c,exact:d}=e||{},[u,m]=re.useState(r._formState),h=re.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Bm(()=>r._subscribe({name:c,formState:h.current,exact:d,callback:p=>{!i&&m({...r._formState,...p})}}),[c,i,d]),re.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),re.useMemo(()=>s0(u,r,h.current,!1),[u,r])}var An=e=>typeof e=="string",Zb=(e,n,r,i,c)=>An(e)?(i&&n.watch.add(e),se(r,e,c)):Array.isArray(e)?e.map(d=>(i&&n.watch.add(d),se(r,d))):(i&&(n.watchAll=!0),r),Pb=e=>Nn(e)||!r0(e);function rt(e,n,r=new WeakSet){if(e===n)return!0;if(Pb(e)||Pb(n))return Object.is(e,n);if(ya(e)&&ya(n))return Object.is(e.getTime(),n.getTime());const i=Object.keys(e),c=Object.keys(n);if(i.length!==c.length)return!1;if(r.has(e)||r.has(n))return!0;r.add(e),r.add(n);for(const d of i){const u=e[d];if(!(d in n))return!1;if(d!=="ref"){const m=n[d];if(ya(u)&&ya(m)||(Po(u)||Array.isArray(u))&&(Po(m)||Array.isArray(m))?!rt(u,m,r):!Object.is(u,m))return!1}}return!0}function _C(e){const n=Rm(),{control:r=n,name:i,defaultValue:c,disabled:d,exact:u,compute:m}=e||{},h=re.useRef(c),p=re.useRef(m),g=re.useRef(void 0),v=re.useRef(r),_=re.useRef(i);p.current=m;const[z,$]=re.useState(()=>{const N=r._getWatch(i,h.current);return p.current?p.current(N):N}),j=re.useCallback(N=>{const D=Zb(i,r._names,N||r._formValues,!1,h.current);return p.current?p.current(D):D},[r._formValues,r._names,i]),E=re.useCallback(N=>{if(!d){const D=Zb(i,r._names,N||r._formValues,!1,h.current);if(p.current){const H=p.current(D);rt(H,g.current)||($(H),g.current=H)}else $(D)}},[r._formValues,r._names,d,i]);Bm(()=>((v.current!==r||!rt(_.current,i))&&(v.current=r,_.current=i,E()),r._subscribe({name:i,formState:{values:!0},exact:u,callback:N=>{E(N.values)}})),[r,u,i,E]),re.useEffect(()=>r._removeUnmounted());const L=v.current!==r,y=_.current,w=re.useMemo(()=>{if(d)return null;const N=!L&&!rt(y,i);return L||N?j():null},[d,L,i,y,j]);return w!==null?w:z}function xC(e){const n=Rm(),{name:r,disabled:i,control:c=n,shouldUnregister:d,defaultValue:u,exact:m=!0}=e,h=l0(c._names.array,r),p=re.useMemo(()=>se(c._formValues,r,se(c._defaultValues,r,u)),[c,r,u]),g=_C({control:c,name:r,defaultValue:p,exact:m}),v=gC({control:c,name:r,exact:m}),_=re.useRef(e),z=re.useRef(c.register(r,{...e.rules,value:g,...tt(e.disabled)?{disabled:e.disabled}:{}}));_.current=e;const $=re.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!se(v.errors,r)},isDirty:{enumerable:!0,get:()=>!!se(v.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!se(v.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!se(v.validatingFields,r)},error:{enumerable:!0,get:()=>se(v.errors,r)}}),[v,r]),j=re.useCallback(w=>z.current.onChange({target:{value:a0(w),name:r},type:Hr.CHANGE}),[r]),E=re.useCallback(()=>z.current.onBlur({target:{value:se(c._formValues,r),name:r},type:Hr.BLUR}),[r,c._formValues]),L=re.useCallback(w=>{const N=se(c._fields,r);N&&N._f&&w&&(N._f.ref={focus:()=>Sn(w.focus)&&w.focus(),select:()=>Sn(w.select)&&w.select(),setCustomValidity:D=>Sn(w.setCustomValidity)&&w.setCustomValidity(D),reportValidity:()=>Sn(w.reportValidity)&&w.reportValidity()})},[c._fields,r]),y=re.useMemo(()=>({name:r,value:g,...tt(i)||v.disabled?{disabled:v.disabled||i}:{},onChange:j,onBlur:E,ref:L}),[r,i,v.disabled,j,E,L,g]);return re.useEffect(()=>{const w=c._options.shouldUnregister||d;c.register(r,{..._.current.rules,...tt(_.current.disabled)?{disabled:_.current.disabled}:{}});const N=(D,H)=>{const q=se(c._fields,D);q&&q._f&&(q._f.mount=H)};if(N(r,!0),w){const D=Qo(se(c._options.defaultValues,r,_.current.defaultValue));uo(c._defaultValues,r,D),Oo(se(c._formValues,r))&&uo(c._formValues,r,D)}return!h&&c.register(r),()=>{(h?w&&!c._state.action:w)?c.unregister(r):N(r,!1)}},[r,c,h,d]),re.useEffect(()=>{c._setDisabledField({disabled:i,name:r})},[i,r,c]),re.useMemo(()=>({field:y,formState:v,fieldState:$}),[y,v,$])}const Gb=e=>e.render(xC(e)),yC=re.createContext(null);yC.displayName="HookFormContext";var d0=(e,n,r,i,c)=>n?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[i]:c||!0}}:{},Zi=e=>Array.isArray(e)?e:[e],j1=()=>{let e=[];return{get observers(){return e},next:c=>{for(const d of e)d.next&&d.next(c)},subscribe:c=>(e.push(c),{unsubscribe:()=>{e=e.filter(d=>d!==c)}}),unsubscribe:()=>{e=[]}}};function u0(e,n){const r={};for(const i in e)if(e.hasOwnProperty(i)){const c=e[i],d=n[i];if(c&&Po(c)&&d){const u=u0(c,d);Po(u)&&(r[i]=u)}else e[i]&&(r[i]=d)}return r}var wn=e=>Po(e)&&!Object.keys(e).length,Dm=e=>e.type==="file",Gs=e=>{if(!Om)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},f0=e=>e.type==="select-multiple",Mm=e=>e.type==="radio",wC=e=>Mm(e)||ac(e),ib=e=>Gs(e)&&e.isConnected;function zC(e,n){const r=n.slice(0,-1).length;let i=0;for(;i<r;){if(Nn(e)){e=void 0;break}e=e[n[i]],i++}return e}function SC(e){for(const n in e)if(e.hasOwnProperty(n)&&!Oo(e[n]))return!1;return!0}function en(e,n){if(An(n)&&Object.prototype.hasOwnProperty.call(e,n))return delete e[n],e;const r=Array.isArray(n)?n:sd(n)?[n]:Nm(n),i=r.length===1?e:zC(e,r),c=r.length-1,d=r[c];return i&&delete i[d],c!==0&&(Po(i)&&wn(i)||Array.isArray(i)&&SC(i))&&en(e,r.slice(0,-1)),e}var jC=e=>{for(const n in e)if(Sn(e[n]))return!0;return!1};function b0(e){return Array.isArray(e)||Po(e)&&!jC(e)}function Yb(e,n={}){for(const r in e){const i=e[r];b0(i)?(n[r]=Array.isArray(i)?[]:{},Yb(i,n[r])):Oo(i)||(n[r]=!0)}return n}function Fi(e,n,r){r||(r=Yb(n));for(const i in e){const c=e[i];if(b0(c))Oo(n)||Pb(r[i])?r[i]=Yb(c,Array.isArray(c)?[]:{}):Fi(c,Nn(n)?{}:n[i],r[i]);else{const d=n[i];r[i]=!rt(c,d)}}return r}const T1={value:!1,isValid:!1},A1={value:!0,isValid:!0};var m0=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Oo(e[0].attributes.value)?Oo(e[0].value)||e[0].value===""?A1:{value:e[0].value,isValid:!0}:A1:T1}return T1},h0=(e,{valueAsNumber:n,valueAsDate:r,setValueAs:i})=>Oo(e)?e:n?e===""?NaN:e&&+e:r&&An(e)?new Date(e):i?i(e):e;const C1={isValid:!1,value:null};var p0=e=>Array.isArray(e)?e.reduce((n,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:n,C1):C1;function E1(e){const n=e.ref;return Dm(n)?n.files:Mm(n)?p0(e.refs).value:f0(n)?[...n.selectedOptions].map(({value:r})=>r):ac(n)?m0(e.refs).value:h0(Oo(n.value)?e.ref.value:n.value,e)}var TC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,AC=(e,n,r,i)=>{const c={};for(const d of e){const u=se(n,d);u&&uo(c,d,u._f)}return{criteriaMode:r,names:[...e],fields:c,shouldUseNativeValidation:i}},Ys=e=>e instanceof RegExp,Mi=e=>Oo(e)?e:Ys(e)?e.source:Po(e)?Ys(e.value)?e.value.source:e.value:e,L1=e=>({isOnSubmit:!e||e===Tt.onSubmit,isOnBlur:e===Tt.onBlur,isOnChange:e===Tt.onChange,isOnAll:e===Tt.all,isOnTouch:e===Tt.onTouched});const O1="AsyncFunction";var CC=e=>!!e&&!!e.validate&&!!(Sn(e.validate)&&e.validate.constructor.name===O1||Po(e.validate)&&Object.values(e.validate).find(n=>n.constructor.name===O1)),EC=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),$1=(e,n,r)=>!r&&(n.watchAll||n.watch.has(e)||[...n.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const Pi=(e,n,r,i)=>{for(const c of r||Object.keys(e)){const d=se(e,c);if(d){const{_f:u,...m}=d;if(u){if(u.refs&&u.refs[0]&&n(u.refs[0],c)&&!i)return!0;if(u.ref&&n(u.ref,u.name)&&!i)return!0;if(Pi(m,n))break}else if(Po(m)&&Pi(m,n))break}}};function N1(e,n,r){const i=se(e,r);if(i||sd(r))return{error:i,name:r};const c=r.split(".");for(;c.length;){const d=c.join("."),u=se(n,d),m=se(e,d);if(u&&!Array.isArray(u)&&r!==d)return{name:r};if(m&&m.type)return{name:d,error:m};if(m&&m.root&&m.root.type)return{name:`${d}.root`,error:m.root};c.pop()}return{name:r}}var LC=(e,n,r,i)=>{r(e);const{name:c,...d}=e;return wn(d)||Object.keys(d).length>=Object.keys(n).length||Object.keys(d).find(u=>n[u]===(!i||Tt.all))},OC=(e,n,r)=>!e||!n||e===n||Zi(e).some(i=>i&&(r?i===n:i.startsWith(n)||n.startsWith(i))),$C=(e,n,r,i,c)=>c.isOnAll?!1:!r&&c.isOnTouch?!(n||e):(r?i.isOnBlur:c.isOnBlur)?!e:(r?i.isOnChange:c.isOnChange)?e:!0,NC=(e,n)=>!$m(se(e,n)).length&&en(e,n),RC=(e,n,r)=>{const i=Zi(se(e,r));return uo(i,i0,n[r]),uo(e,r,i),e};function R1(e,n,r="validate"){if(An(e)||Array.isArray(e)&&e.every(An)||tt(e)&&!e)return{type:r,message:An(e)?e:"",ref:n}}var yl=e=>Po(e)&&!Ys(e)?e:{value:e,message:""},B1=async(e,n,r,i,c,d)=>{const{ref:u,refs:m,required:h,maxLength:p,minLength:g,min:v,max:_,pattern:z,validate:$,name:j,valueAsNumber:E,mount:L}=e._f,y=se(r,j);if(!L||n.has(j))return{};const w=m?m[0]:u,N=ee=>{c&&w.reportValidity&&(w.setCustomValidity(tt(ee)?"":ee||""),w.reportValidity())},D={},H=Mm(u),q=ac(u),oe=H||q,de=(E||Dm(u))&&Oo(u.value)&&Oo(y)||Gs(u)&&u.value===""||y===""||Array.isArray(y)&&!y.length||E&&typeof y=="number"&&isNaN(y),Ke=d0.bind(null,j,i,D),ae=(ee,_e,Te,$e=jt.maxLength,M=jt.minLength)=>{const G=ee?_e:Te;D[j]={type:ee?$e:M,message:G,ref:u,...Ke(ee?$e:M,G)}};if(d?!Array.isArray(y)||!y.length:h&&(!oe&&(de||Nn(y))||tt(y)&&!y||q&&!m0(m).isValid||H&&!p0(m).isValid)){const{value:ee,message:_e}=An(h)?{value:!!h,message:h}:yl(h);if(ee&&(D[j]={type:jt.required,message:_e,ref:w,...Ke(jt.required,_e)},!i))return N(_e),D}if(!de&&(!Nn(v)||!Nn(_))){let ee,_e;const Te=yl(_),$e=yl(v);if(!Nn(y)&&!isNaN(y)){const M=u.valueAsNumber||y&&+y;Nn(Te.value)||(ee=M>Te.value),Nn($e.value)||(_e=M<$e.value)}else{const M=u.valueAsDate||new Date(y),G=Ee=>new Date(new Date().toDateString()+" "+Ee),ce=u.type=="time",ze=u.type=="week";An(Te.value)&&y&&(ee=ce?G(y)>G(Te.value):ze?y>Te.value:M>new Date(Te.value)),An($e.value)&&y&&(_e=ce?G(y)<G($e.value):ze?y<$e.value:M<new Date($e.value))}if((ee||_e)&&(ae(!!ee,Te.message,$e.message,jt.max,jt.min),!i))return N(D[j].message),D}if((p||g)&&!de&&(An(y)||d&&Array.isArray(y))){const ee=yl(p),_e=yl(g),Te=!Nn(ee.value)&&y.length>+ee.value,$e=!Nn(_e.value)&&y.length<+_e.value;if((Te||$e)&&(ae(Te,ee.message,_e.message),!i))return N(D[j].message),D}if(z&&!de&&An(y)){const{value:ee,message:_e}=yl(z);if(Ys(ee)&&!y.match(ee)&&(D[j]={type:jt.pattern,message:_e,ref:u,...Ke(jt.pattern,_e)},!i))return N(_e),D}if($){if(Sn($)){const ee=await $(y,r),_e=R1(ee,w);if(_e&&(D[j]={..._e,...Ke(jt.validate,_e.message)},!i))return N(_e.message),D}else if(Po($)){let ee={};for(const _e in $){if(!wn(ee)&&!i)break;const Te=R1(await $[_e](y,r),w,_e);Te&&(ee={...Te,...Ke(_e,Te.message)},N(Te.message),i&&(D[j]=ee))}if(!wn(ee)&&(D[j]={ref:w,...ee},!i))return D}}return N(!0),D};const BC={mode:Tt.onSubmit,reValidateMode:Tt.onChange,shouldFocusError:!0};function DC(e={}){let n={...BC,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Sn(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},c=Po(n.defaultValues)||Po(n.values)?Qo(n.defaultValues||n.values)||{}:{},d=n.shouldUnregister?{}:Qo(c),u={action:!1,mount:!1,watch:!1,keepIsValid:!1},m={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},h,p=0;const g={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={...g};let _={...v};const z={array:j1(),state:j1()},$=n.criteriaMode===Tt.all,j=T=>B=>{clearTimeout(p),p=setTimeout(T,B)},E=async T=>{if(!u.keepIsValid&&!n.disabled&&(v.isValid||_.isValid||T)){let B;n.resolver?(B=wn((await de()).errors),L()):B=await ee({fields:i,onlyCheckValid:!0,eventType:Hr.VALID}),B!==r.isValid&&z.state.next({isValid:B})}},L=(T,B)=>{!n.disabled&&(v.isValidating||v.validatingFields||_.isValidating||_.validatingFields)&&((T||Array.from(m.mount)).forEach(I=>{I&&(B?uo(r.validatingFields,I,B):en(r.validatingFields,I))}),z.state.next({validatingFields:r.validatingFields,isValidating:!wn(r.validatingFields)}))},y=T=>{const B=Fi(c,d),I=TC(T);uo(r.dirtyFields,I,se(B,I))},w=(T,B=[],I,le,ie=!0,ne=!0)=>{if(le&&I&&!n.disabled){if(u.action=!0,ne&&Array.isArray(se(i,T))){const me=I(se(i,T),le.argA,le.argB);ie&&uo(i,T,me)}if(ne&&Array.isArray(se(r.errors,T))){const me=I(se(r.errors,T),le.argA,le.argB);ie&&uo(r.errors,T,me),NC(r.errors,T)}if((v.touchedFields||_.touchedFields)&&ne&&Array.isArray(se(r.touchedFields,T))){const me=I(se(r.touchedFields,T),le.argA,le.argB);ie&&uo(r.touchedFields,T,me)}(v.dirtyFields||_.dirtyFields)&&y(T),z.state.next({name:T,isDirty:Te(T,B),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else uo(d,T,B)},N=(T,B)=>{uo(r.errors,T,B),z.state.next({errors:r.errors})},D=T=>{r.errors=T,z.state.next({errors:r.errors,isValid:!1})},H=(T,B,I,le)=>{const ie=se(i,T);if(ie){const ne=se(d,T,Oo(I)?se(c,T):I);Oo(ne)||le&&le.defaultChecked||B?uo(d,T,B?ne:E1(ie._f)):G(T,ne),u.mount&&!u.action&&E()}},q=(T,B,I,le,ie)=>{let ne=!1,me=!1;const Me={name:T};if(!n.disabled){if(!I||le){(v.isDirty||_.isDirty)&&(me=r.isDirty,r.isDirty=Me.isDirty=Te(),ne=me!==Me.isDirty);const oo=rt(se(c,T),B);me=!!se(r.dirtyFields,T),oo?en(r.dirtyFields,T):uo(r.dirtyFields,T,!0),Me.dirtyFields=r.dirtyFields,ne=ne||(v.dirtyFields||_.dirtyFields)&&me!==!oo}if(I){const oo=se(r.touchedFields,T);oo||(uo(r.touchedFields,T,I),Me.touchedFields=r.touchedFields,ne=ne||(v.touchedFields||_.touchedFields)&&oo!==I)}ne&&ie&&z.state.next(Me)}return ne?Me:{}},oe=(T,B,I,le)=>{const ie=se(r.errors,T),ne=(v.isValid||_.isValid)&&tt(B)&&r.isValid!==B;if(n.delayError&&I?(h=j(()=>N(T,I)),h(n.delayError)):(clearTimeout(p),h=null,I?uo(r.errors,T,I):en(r.errors,T)),(I?!rt(ie,I):ie)||!wn(le)||ne){const me={...le,...ne&&tt(B)?{isValid:B}:{},errors:r.errors,name:T};r={...r,...me},z.state.next(me)}},de=async T=>(L(T,!0),await n.resolver(d,n.context,AC(T||m.mount,i,n.criteriaMode,n.shouldUseNativeValidation))),Ke=async T=>{const{errors:B}=await de(T);if(L(T),T)for(const I of T){const le=se(B,I);le?uo(r.errors,I,le):en(r.errors,I)}else r.errors=B;return B},ae=async({name:T,eventType:B})=>{if(e.validate){const I=await e.validate({formValues:d,formState:r,name:T,eventType:B});if(Po(I))for(const le in I)I[le]&&He(`${lb}.${le}`,{message:An(I.message)?I.message:"",type:jt.validate});else An(I)||!I?He(lb,{message:I||"",type:jt.validate}):Re(lb);return I}return!0},ee=async({fields:T,onlyCheckValid:B,name:I,eventType:le,context:ie={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(ie.runRootValidation=!0,!await ae({name:I,eventType:le})&&(ie.valid=!1,B)))return ie.valid;for(const ne in T){const me=T[ne];if(me){const{_f:Me,...oo}=me;if(Me){const Ko=m.array.has(Me.name),To=me._f&&CC(me._f);To&&v.validatingFields&&L([Me.name],!0);const Lo=await B1(me,m.disabled,d,$,n.shouldUseNativeValidation&&!B,Ko);if(To&&v.validatingFields&&L([Me.name]),Lo[Me.name]&&(ie.valid=!1,B)||(!B&&(se(Lo,Me.name)?Ko?RC(r.errors,Lo,Me.name):uo(r.errors,Me.name,Lo[Me.name]):en(r.errors,Me.name)),e.shouldUseNativeValidation&&Lo[Me.name]))break}!wn(oo)&&await ee({context:ie,onlyCheckValid:B,fields:oo,name:ne,eventType:le})}}return ie.valid},_e=()=>{for(const T of m.unMount){const B=se(i,T);B&&(B._f.refs?B._f.refs.every(I=>!ib(I)):!ib(B._f.ref))&&Et(T)}m.unMount=new Set},Te=(T,B)=>!n.disabled&&(T&&B&&uo(d,T,B),!rt(be(),c)),$e=(T,B,I)=>Zb(T,m,{...u.mount?d:Oo(B)?c:An(T)?{[T]:B}:B},I,B),M=T=>$m(se(u.mount?d:c,T,n.shouldUnregister?se(c,T,[]):[])),G=(T,B,I={})=>{const le=se(i,T);let ie=B;if(le){const ne=le._f;ne&&(!ne.disabled&&uo(d,T,h0(B,ne)),ie=Gs(ne.ref)&&Nn(B)?"":B,f0(ne.ref)?[...ne.ref.options].forEach(me=>me.selected=ie.includes(me.value)):ne.refs?ac(ne.ref)?ne.refs.forEach(me=>{(!me.defaultChecked||!me.disabled)&&(Array.isArray(ie)?me.checked=!!ie.find(Me=>Me===me.value):me.checked=ie===me.value||!!ie)}):ne.refs.forEach(me=>me.checked=me.value===ie):Dm(ne.ref)?ne.ref.value="":(ne.ref.value=ie,ne.ref.type||z.state.next({name:T,values:Qo(d)})))}(I.shouldDirty||I.shouldTouch)&&q(T,ie,I.shouldTouch,I.shouldDirty,!0),I.shouldValidate&&te(T)},ce=(T,B,I)=>{for(const le in B){if(!B.hasOwnProperty(le))return;const ie=B[le],ne=T+"."+le,me=se(i,ne);(m.array.has(T)||Po(ie)||me&&!me._f)&&!ya(ie)?ce(ne,ie,I):G(ne,ie,I)}},ze=(T,B,I={})=>{const le=se(i,T),ie=m.array.has(T),ne=Qo(B),me=se(d,T),Me=rt(me,ne);if(uo(d,T,ne),ie)z.array.next({name:T,values:Qo(d)}),I.shouldDirty&&(y(T),z.state.next({name:T,dirtyFields:r.dirtyFields,isDirty:Te(T,ne)}));else{const oo=Array.isArray(ne)&&!ne.length||wn(ne);!le||le._f||Nn(ne)||oo?G(T,ne,I):ce(T,ne,I)}Me||($1(T,m)?z.state.next({...r,name:T,values:Qo(d)}):z.state.next({name:u.mount?T:void 0,values:Qo(d)}))},Ee=T=>{const B=Sn(T)?T(d):T;rt(d,B)||(d={...d,...B},z.state.next({...r,values:d}))},C=async T=>{u.mount=!0;const B=T.target;let I=B.name,le=!0;const ie=se(i,I),ne=oo=>{le=Number.isNaN(oo)||ya(oo)&&isNaN(oo.getTime())||rt(oo,se(d,I,oo))},me=L1(n.mode),Me=L1(n.reValidateMode);if(ie){let oo,Ko;const To=B.type?E1(ie._f):a0(T),Lo=T.type===Hr.BLUR||T.type===Hr.FOCUS_OUT,Ln=!EC(ie._f)&&!e.validate&&!n.resolver&&!se(r.errors,I)&&!ie._f.deps||$C(Lo,se(r.touchedFields,I),r.isSubmitted,Me,me),Bl=$1(I,m,Lo);uo(d,I,To),Lo?(!B||!B.readOnly)&&(ie._f.onBlur&&ie._f.onBlur(T),h&&h(0)):ie._f.onChange&&ie._f.onChange(T);const Dl=q(I,To,Lo),pd=!wn(Dl)||Bl;if(!Lo&&z.state.next({name:I,type:T.type,values:Qo(d)}),Ln)return(v.isValid||_.isValid)&&(n.mode==="onBlur"?Lo&&E():Lo||E()),pd&&z.state.next({name:I,...Bl?{}:Dl});if(!n.resolver&&e.validate&&await ae({name:I,eventType:T.type}),!Lo&&Bl&&z.state.next({...r}),n.resolver){const{errors:Wr}=await de([I]);if(L([I]),ne(To),le){const Oa=N1(r.errors,i,I),Qr=N1(Wr,i,Oa.name||I);oo=Qr.error,I=Qr.name,Ko=wn(Wr)}}else L([I],!0),oo=(await B1(ie,m.disabled,d,$,n.shouldUseNativeValidation))[I],L([I]),ne(To),le&&(oo?Ko=!1:(v.isValid||_.isValid)&&(Ko=await ee({fields:i,onlyCheckValid:!0,name:I,eventType:T.type})));le&&(ie._f.deps&&(!Array.isArray(ie._f.deps)||ie._f.deps.length>0)&&te(ie._f.deps),oe(I,Ko,oo,Dl))}},P=(T,B)=>{if(se(r.errors,B)&&T.focus)return T.focus(),1},te=async(T,B={})=>{let I,le;const ie=Zi(T);if(n.resolver){const ne=await Ke(Oo(T)?T:ie);I=wn(ne),le=T?!ie.some(me=>se(ne,me)):I}else T?(le=(await Promise.all(ie.map(async ne=>{const me=se(i,ne);return await ee({fields:me&&me._f?{[ne]:me}:me,eventType:Hr.TRIGGER})}))).every(Boolean),!(!le&&!r.isValid)&&E()):le=I=await ee({fields:i,name:T,eventType:Hr.TRIGGER});return z.state.next({...!An(T)||(v.isValid||_.isValid)&&I!==r.isValid?{}:{name:T},...n.resolver||!T?{isValid:I}:{},errors:r.errors}),B.shouldFocus&&!le&&Pi(i,P,T?ie:m.mount),le},be=(T,B)=>{let I={...u.mount?d:c};return B&&(I=u0(B.dirtyFields?r.dirtyFields:r.touchedFields,I)),Oo(T)?I:An(T)?se(I,T):T.map(le=>se(I,le))},Ae=(T,B)=>({invalid:!!se((B||r).errors,T),isDirty:!!se((B||r).dirtyFields,T),error:se((B||r).errors,T),isValidating:!!se(r.validatingFields,T),isTouched:!!se((B||r).touchedFields,T)}),Re=T=>{const B=T?Zi(T):void 0;B?.forEach(I=>en(r.errors,I)),B?B.forEach(I=>{z.state.next({name:I,errors:r.errors})}):z.state.next({errors:{}})},He=(T,B,I)=>{const le=(se(i,T,{_f:{}})._f||{}).ref,ie=se(r.errors,T)||{},{ref:ne,message:me,type:Me,...oo}=ie;uo(r.errors,T,{...oo,...B,ref:le}),z.state.next({name:T,errors:r.errors,isValid:!1}),I&&I.shouldFocus&&le&&le.focus&&le.focus()},Vo=(T,B)=>Sn(T)?z.state.subscribe({next:I=>"values"in I&&T(I.values||$e(void 0,B),I)}):$e(T,B,!0),yo=T=>z.state.subscribe({next:B=>{if(OC(T.name,B.name,T.exact)&&LC(B,T.formState||v,Go,T.reRenderRoot)){const I={...d};T.callback({values:I,...r,...B,defaultValues:c})}}}).unsubscribe,Dt=T=>(u.mount=!0,_={..._,...T.formState},yo({...T,formState:{...g,...T.formState}})),Et=(T,B={})=>{for(const I of T?Zi(T):m.mount)m.mount.delete(I),m.array.delete(I),B.keepValue||(en(i,I),en(d,I)),!B.keepError&&en(r.errors,I),!B.keepDirty&&en(r.dirtyFields,I),!B.keepTouched&&en(r.touchedFields,I),!B.keepIsValidating&&en(r.validatingFields,I),!n.shouldUnregister&&!B.keepDefaultValue&&en(c,I);z.state.next({values:Qo(d)}),z.state.next({...r,...B.keepDirty?{isDirty:Te()}:{}}),!B.keepIsValid&&E()},fr=({disabled:T,name:B})=>{if(tt(T)&&u.mount||T||m.disabled.has(B)){const ie=m.disabled.has(B)!==!!T;T?m.disabled.add(B):m.disabled.delete(B),ie&&u.mount&&!u.action&&E()}},br=(T,B={})=>{let I=se(i,T);const le=tt(B.disabled)||tt(n.disabled),ie=!m.registerName.has(T)&&I&&I._f&&!I._f.mount;return uo(i,T,{...I||{},_f:{...I&&I._f?I._f:{ref:{name:T}},name:T,mount:!0,...B}}),m.mount.add(T),I&&!ie?fr({disabled:tt(B.disabled)?B.disabled:n.disabled,name:T}):H(T,!0,B.value),{...le?{disabled:B.disabled||n.disabled}:{},...n.progressive?{required:!!B.required,min:Mi(B.min),max:Mi(B.max),minLength:Mi(B.minLength),maxLength:Mi(B.maxLength),pattern:Mi(B.pattern)}:{},name:T,onChange:C,onBlur:C,ref:ne=>{if(ne){m.registerName.add(T),br(T,B),m.registerName.delete(T),I=se(i,T);const me=Oo(ne.value)&&ne.querySelectorAll&&ne.querySelectorAll("input,select,textarea")[0]||ne,Me=wC(me),oo=I._f.refs||[];if(Me?oo.find(Ko=>Ko===me):me===I._f.ref)return;uo(i,T,{_f:{...I._f,...Me?{refs:[...oo.filter(ib),me,...Array.isArray(se(c,T))?[{}]:[]],ref:{type:me.type,name:T}}:{ref:me}}}),H(T,!1,void 0,me)}else I=se(i,T,{}),I._f&&(I._f.mount=!1),(n.shouldUnregister||B.shouldUnregister)&&!(l0(m.array,T)&&u.action)&&m.unMount.add(T)}}},Gn=()=>n.shouldFocusError&&Pi(i,P,m.mount),mr=T=>{tt(T)&&(z.state.next({disabled:T}),Pi(i,(B,I)=>{const le=se(i,I);le&&(B.disabled=le._f.disabled||T,Array.isArray(le._f.refs)&&le._f.refs.forEach(ie=>{ie.disabled=le._f.disabled||T}))},0,!1))},hr=(T,B)=>async I=>{let le;I&&(I.preventDefault&&I.preventDefault(),I.persist&&I.persist());let ie=Qo(d);if(z.state.next({isSubmitting:!0}),n.resolver){const{errors:ne,values:me}=await de();L(),r.errors=ne,ie=Qo(me)}else await ee({fields:i,eventType:Hr.SUBMIT});if(m.disabled.size)for(const ne of m.disabled)en(ie,ne);if(en(r.errors,i0),wn(r.errors)){z.state.next({errors:{}});try{await T(ie,I)}catch(ne){le=ne}}else B&&await B({...r.errors},I),Gn(),setTimeout(Gn);if(z.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:wn(r.errors)&&!le,submitCount:r.submitCount+1,errors:r.errors}),le)throw le},pe=(T,B={})=>{se(i,T)&&(Oo(B.defaultValue)?ze(T,Qo(se(c,T))):(ze(T,B.defaultValue),uo(c,T,Qo(B.defaultValue))),B.keepTouched||en(r.touchedFields,T),B.keepDirty||(en(r.dirtyFields,T),r.isDirty=B.defaultValue?Te(T,Qo(se(c,T))):Te()),B.keepError||(en(r.errors,T),v.isValid&&E()),z.state.next({...r}))},ve=(T,B={})=>{const I=T?Qo(T):c,le=Qo(I),ie=wn(T),ne=ie?c:le;if(B.keepDefaultValues||(c=I),!B.keepValues){if(B.keepDirtyValues){const me=new Set([...m.mount,...Object.keys(Fi(c,d))]);for(const Me of Array.from(me)){const oo=se(r.dirtyFields,Me),Ko=se(d,Me),To=se(ne,Me);oo&&!Oo(Ko)?uo(ne,Me,Ko):!oo&&!Oo(To)&&ze(Me,To)}}else{if(Om&&Oo(T))for(const me of m.mount){const Me=se(i,me);if(Me&&Me._f){const oo=Array.isArray(Me._f.refs)?Me._f.refs[0]:Me._f.ref;if(Gs(oo)){const Ko=oo.closest("form");if(Ko){Ko.reset();break}}}}if(B.keepFieldsRef)for(const me of m.mount)ze(me,se(ne,me));else i={}}d=n.shouldUnregister?B.keepDefaultValues?Qo(c):{}:Qo(ne),z.array.next({values:{...ne}}),z.state.next({values:{...ne}})}m={mount:B.keepDirtyValues?m.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!v.isValid||!!B.keepIsValid||!!B.keepDirtyValues||!n.shouldUnregister&&!wn(ne),u.watch=!!n.shouldUnregister,u.keepIsValid=!!B.keepIsValid,u.action=!1,B.keepErrors||(r.errors={}),z.state.next({submitCount:B.keepSubmitCount?r.submitCount:0,isDirty:ie?!1:B.keepDirty?r.isDirty:!!(B.keepDefaultValues&&!rt(T,c)),isSubmitted:B.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ie?{}:B.keepDirtyValues?B.keepDefaultValues&&d?Fi(c,d):r.dirtyFields:B.keepDefaultValues&&T?Fi(c,T):B.keepDirty?r.dirtyFields:{},touchedFields:B.keepTouched?r.touchedFields:{},errors:B.keepErrors?r.errors:{},isSubmitSuccessful:B.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:c})},Be=(T,B)=>ve(Sn(T)?T(d):T,{...n.resetOptions,...B}),so=(T,B={})=>{const I=se(i,T),le=I&&I._f;if(le){const ie=le.refs?le.refs[0]:le.ref;ie.focus&&setTimeout(()=>{ie.focus(),B.shouldSelect&&Sn(ie.select)&&ie.select()})}},Go=T=>{r={...r,...T}},to={control:{register:br,unregister:Et,getFieldState:Ae,handleSubmit:hr,setError:He,_subscribe:yo,_runSchema:de,_updateIsValidating:L,_focusError:Gn,_getWatch:$e,_getDirty:Te,_setValid:E,_setFieldArray:w,_setDisabledField:fr,_setErrors:D,_getFieldArray:M,_reset:ve,_resetDefaultValues:()=>Sn(n.defaultValues)&&n.defaultValues().then(T=>{Be(T,n.resetOptions),z.state.next({isLoading:!1})}),_removeUnmounted:_e,_disableForm:mr,_subjects:z,_proxyFormState:v,get _fields(){return i},get _formValues(){return d},get _state(){return u},set _state(T){u=T},get _defaultValues(){return c},get _names(){return m},set _names(T){m=T},get _formState(){return r},get _options(){return n},set _options(T){n={...n,...T}}},subscribe:Dt,trigger:te,register:br,handleSubmit:hr,watch:Vo,setValue:ze,setValues:Ee,getValues:be,reset:Be,resetField:pe,clearErrors:Re,unregister:Et,setError:He,setFocus:so,getFieldState:Ae};return{...to,formControl:to}}function Ll(e={}){const n=re.useRef(void 0),r=re.useRef(void 0),[i,c]=re.useState({isDirty:!1,isValidating:!1,isLoading:Sn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Sn(e.defaultValues)?void 0:e.defaultValues});if(!n.current)if(e.formControl)n.current={...e.formControl,formState:i},e.defaultValues&&!Sn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:u,...m}=DC(e);n.current={...m,formState:i}}const d=n.current.control;return d._options=e,Bm(()=>{const u=d._subscribe({formState:d._proxyFormState,callback:()=>c({...d._formState}),reRenderRoot:!0});return c(m=>({...m,isReady:!0})),d._formState.isReady=!0,u},[d]),re.useEffect(()=>d._disableForm(e.disabled),[d,e.disabled]),re.useEffect(()=>{e.mode&&(d._options.mode=e.mode),e.reValidateMode&&(d._options.reValidateMode=e.reValidateMode)},[d,e.mode,e.reValidateMode]),re.useEffect(()=>{e.errors&&(d._setErrors(e.errors),d._focusError())},[d,e.errors]),re.useEffect(()=>{e.shouldUnregister&&d._subjects.state.next({values:d._getWatch()})},[d,e.shouldUnregister]),re.useEffect(()=>{if(d._proxyFormState.isDirty){const u=d._getDirty();u!==i.isDirty&&d._subjects.state.next({isDirty:u})}},[d,i.isDirty]),re.useEffect(()=>{var u;e.values&&!rt(e.values,r.current)?(d._reset(e.values,{keepFieldsRef:!0,...d._options.resetOptions}),!((u=d._options.resetOptions)===null||u===void 0)&&u.keepIsValid||d._setValid(),r.current=e.values,c(m=>({...m}))):d._resetDefaultValues()},[d,e.values]),re.useEffect(()=>{d._state.mount||(d._setValid(),d._state.mount=!0),d._state.watch&&(d._state.watch=!1,d._subjects.state.next({...d._formState})),d._removeUnmounted()}),n.current.formState=re.useMemo(()=>s0(i,d),[d,i]),n.current}function k0(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,i=Object.getOwnPropertySymbols(e);c<i.length;c++)n.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(e,i[c])&&(r[i[c]]=e[i[c]]);return r}var Ol;(function(e){e.event="event",e.props="prop"})(Ol||(Ol={}));function Vr(){}function MC(e){var n,r=void 0;return function(){for(var i=[],c=arguments.length;c--;)i[c]=arguments[c];return n&&i.length===n.length&&i.every(function(d,u){return d===n[u]})||(n=i,r=e.apply(void 0,i)),r}}function ec(e){return!!(e||"").match(/\d/)}function qr(e){return e==null}function IC(e){return typeof e=="number"&&isNaN(e)}function v0(e){return qr(e)||IC(e)||typeof e=="number"&&!isFinite(e)}function g0(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function UC(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function FC(e,n,r){var i=UC(r),c=e.search(/[1-9]/);return c=c===-1?e.length:c,e.substring(0,c)+e.substring(c,e.length).replace(i,"$1"+n)}function D1(e){var n=S.useRef(e);n.current=e;var r=S.useRef(function(){for(var i=[],c=arguments.length;c--;)i[c]=arguments[c];return n.current.apply(n,i)});return r.current}function Im(e,n){n===void 0&&(n=!0);var r=e[0]==="-",i=r&&n;e=e.replace("-","");var c=e.split("."),d=c[0],u=c[1]||"";return{beforeDecimal:d,afterDecimal:u,hasNegation:r,addNegation:i}}function HC(e){if(!e)return e;var n=e[0]==="-";n&&(e=e.substring(1,e.length));var r=e.split("."),i=r[0].replace(/^0+/,"")||"0",c=r[1]||"";return(n?"-":"")+i+(c?"."+c:"")}function _0(e,n,r){for(var i="",c=r?"0":"",d=0;d<=n-1;d++)i+=e[d]||c;return i}function M1(e,n){return Array(n+1).join(e)}function x0(e){var n=e+"",r=n[0]==="-"?"-":"";r&&(n=n.substring(1));var i=n.split(/[eE]/g),c=i[0],d=i[1];if(d=Number(d),!d)return r+c;c=c.replace(".","");var u=1+d,m=c.length;return u<0?c="0."+M1("0",Math.abs(u))+c:u>=m?c=c+M1("0",u-m):c=(c.substring(0,u)||"0")+"."+c.substring(u),r+c}function I1(e,n,r){if(["","-"].indexOf(e)!==-1)return e;var i=(e.indexOf(".")!==-1||r)&&n,c=Im(e),d=c.beforeDecimal,u=c.afterDecimal,m=c.hasNegation,h=parseFloat("0."+(u||"0")),p=u.length<=n?"0."+u:h.toFixed(n),g=p.split("."),v=d;d&&Number(g[0])&&(v=d.split("").reverse().reduce(function(j,E,L){return j.length>L?(Number(j[0])+Number(E)).toString()+j.substring(1,j.length):E+j},g[0]));var _=_0(g[1]||"",n,r),z=m?"-":"",$=i?".":"";return""+z+v+$+_}function _a(e,n){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",n),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(n,n),!0):(e.focus(),!1)}}var y0=MC(function(e,n){for(var r=0,i=0,c=e.length,d=n.length;e[r]===n[r]&&r<c;)r++;for(;e[c-1-i]===n[d-1-i]&&d-i>r&&c-i>r;)i++;return{from:{start:r,end:c-i},to:{start:r,end:d-i}}}),VC=function(e,n){var r=Math.min(e.selectionStart,n);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:n}}};function KC(e,n,r){return Math.min(Math.max(e,n),r)}function cb(e){return Math.max(e.selectionStart,e.selectionEnd)}function qC(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function ZC(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function PC(e){var n=e.currentValue,r=e.formattedValue,i=e.currentValueIndex,c=e.formattedValueIndex;return n[i]===r[c]}function GC(e,n,r,i,c,d,u){u===void 0&&(u=PC);var m=c.findIndex(function(N){return N}),h=e.slice(0,m);!n&&!r.startsWith(h)&&(n=h,r=h+r,i=i+h.length);for(var p=r.length,g=e.length,v={},_=new Array(p),z=0;z<p;z++){_[z]=-1;for(var $=0,j=g;$<j;$++){var E=u({currentValue:r,lastValue:n,formattedValue:e,currentValueIndex:z,formattedValueIndex:$});if(E&&v[$]!==!0){_[z]=$,v[$]=!0;break}}}for(var L=i;L<p&&(_[L]===-1||!d(r[L]));)L++;var y=L===p||_[L]===-1?g:_[L];for(L=i-1;L>0&&_[L]===-1;)L--;var w=L===-1||_[L]===-1?0:_[L]+1;return w>y?y:i-w<y-i?w:y}function U1(e,n,r,i){var c=e.length;if(n=KC(n,0,c),i==="left"){for(;n>=0&&!r[n];)n--;n===-1&&(n=r.indexOf(!0))}else{for(;n<=c&&!r[n];)n++;n>c&&(n=r.lastIndexOf(!0))}return n===-1&&(n=c),n}function YC(e){for(var n=Array.from({length:e.length+1}).map(function(){return!0}),r=0,i=n.length;r<i;r++)n[r]=!!(ec(e[r])||ec(e[r-1]));return n}function w0(e,n,r,i,c,d){d===void 0&&(d=Vr);var u=D1(function($,j){var E,L;return v0($)?(L="",E=""):typeof $=="number"||j?(L=typeof $=="number"?x0($):$,E=i(L)):(L=c($,void 0),E=i(L)),{formattedValue:E,numAsString:L}}),m=S.useState(function(){return u(qr(e)?n:e,r)}),h=m[0],p=m[1],g=D1(function($,j){$.formattedValue!==h.formattedValue&&p({formattedValue:$.formattedValue,numAsString:$.value}),d($,j)}),v=e,_=r;qr(e)&&(v=h.numAsString,_=!0);var z=u(v,_);return S.useMemo(function(){p(z)},[z.formattedValue]),S.useEffect(function(){if(!qr(n)&&qr(e)&&h.formattedValue!==""){var $=parseFloat(h.numAsString);g({formattedValue:h.formattedValue,value:h.numAsString,floatValue:isNaN($)?void 0:$},{event:void 0,source:Ol.props})}},[]),[h,g]}function JC(e){return e.replace(/[^0-9]/g,"")}function XC(e){return e}function WC(e){var n=e.type;n===void 0&&(n="text");var r=e.displayType;r===void 0&&(r="input");var i=e.customInput,c=e.renderText,d=e.getInputRef,u=e.format;u===void 0&&(u=XC);var m=e.removeFormatting;m===void 0&&(m=JC);var h=e.defaultValue,p=e.valueIsNumericString,g=e.onValueChange,v=e.isAllowed,_=e.onChange;_===void 0&&(_=Vr);var z=e.onKeyDown;z===void 0&&(z=Vr);var $=e.onMouseUp;$===void 0&&($=Vr);var j=e.onFocus;j===void 0&&(j=Vr);var E=e.onBlur;E===void 0&&(E=Vr);var L=e.value,y=e.getCaretBoundary;y===void 0&&(y=YC);var w=e.isValidInputCharacter;w===void 0&&(w=ec);var N=e.isCharacterSame,D=k0(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),H=w0(L,h,!!p,u,m,g),q=H[0],oe=q.formattedValue,de=q.numAsString,Ke=H[1],ae=S.useRef(),ee=S.useRef({formattedValue:oe,numAsString:de}),_e=function(pe,ve){ee.current={formattedValue:pe.formattedValue,numAsString:pe.value},Ke(pe,ve)},Te=S.useState(!1),$e=Te[0],M=Te[1],G=S.useRef(null),ce=S.useRef({setCaretTimeout:null,focusTimeout:null});S.useEffect(function(){return M(!0),function(){clearTimeout(ce.current.setCaretTimeout),clearTimeout(ce.current.focusTimeout)}},[]);var ze=u,Ee=function(pe,ve){var Be=parseFloat(ve);return{formattedValue:pe,value:ve,floatValue:isNaN(Be)?void 0:Be}},C=function(pe,ve,Be){pe.selectionStart===0&&pe.selectionEnd===pe.value.length||(_a(pe,ve),ce.current.setCaretTimeout=setTimeout(function(){pe.value===Be&&pe.selectionStart!==ve&&_a(pe,ve)},0))},P=function(pe,ve,Be){return U1(pe,ve,y(pe),Be)},te=function(pe,ve,Be){var so=y(ve),Go=GC(ve,oe,pe,Be,so,w,N);return Go=U1(ve,Go,so),Go},be=function(pe){var ve=pe.formattedValue;ve===void 0&&(ve="");var Be=pe.input,so=pe.source,Go=pe.event,_o=pe.numAsString,to;if(Be){var T=pe.inputValue||Be.value,B=cb(Be);Be.value=ve,to=te(T,ve,B),to!==void 0&&C(Be,to,ve)}ve!==oe&&_e(Ee(ve,_o),{event:Go,source:so})};S.useEffect(function(){var pe=ee.current,ve=pe.formattedValue,Be=pe.numAsString;(oe!==ve||de!==Be)&&_e(Ee(oe,de),{event:void 0,source:Ol.props})},[oe,de]);var Ae=G.current?cb(G.current):void 0,Re=typeof window<"u"?S.useLayoutEffect:S.useEffect;Re(function(){var pe=G.current;if(oe!==ee.current.formattedValue&&pe){var ve=te(ee.current.formattedValue,oe,Ae);pe.value=oe,C(pe,ve,oe)}},[oe]);var He=function(pe,ve,Be){var so=ve.target,Go=ae.current?VC(ae.current,so.selectionEnd):y0(oe,pe),_o=Object.assign(Object.assign({},Go),{lastValue:oe}),to=m(pe,_o),T=ze(to);if(to=m(T,void 0),v&&!v(Ee(T,to))){var B=ve.target,I=cb(B),le=te(pe,oe,I);return B.value=oe,C(B,le,oe),!1}return be({formattedValue:T,numAsString:to,inputValue:pe,event:ve,source:Be,input:ve.target}),!0},Vo=function(pe,ve){ve===void 0&&(ve=0);var Be=pe.selectionStart,so=pe.selectionEnd;ae.current={selectionStart:Be,selectionEnd:so+ve}},yo=function(pe){var ve=pe.target,Be=ve.value,so=He(Be,pe,Ol.event);so&&_(pe),ae.current=void 0},Dt=function(pe){var ve=pe.target,Be=pe.key,so=ve.selectionStart,Go=ve.selectionEnd,_o=ve.value;_o===void 0&&(_o="");var to;Be==="ArrowLeft"||Be==="Backspace"?to=Math.max(so-1,0):Be==="ArrowRight"?to=Math.min(so+1,_o.length):Be==="Delete"&&(to=so);var T=0;Be==="Delete"&&so===Go&&(T=1);var B=Be==="ArrowLeft"||Be==="ArrowRight";if(to===void 0||so!==Go&&!B){z(pe),Vo(ve,T);return}var I=to;if(B){var le=Be==="ArrowLeft"?"left":"right";I=P(_o,to,le),I!==to&&pe.preventDefault()}else Be==="Delete"&&!w(_o[to])?I=P(_o,to,"right"):Be==="Backspace"&&!w(_o[to])&&(I=P(_o,to,"left"));I!==to&&C(ve,I,_o),z(pe),Vo(ve,T)},Et=function(pe){var ve=pe.target,Be=function(){var so=ve.selectionStart,Go=ve.selectionEnd,_o=ve.value;if(_o===void 0&&(_o=""),so===Go){var to=P(_o,so);to!==so&&C(ve,to,_o)}};Be(),requestAnimationFrame(function(){Be()}),$(pe),Vo(ve)},fr=function(pe){pe.persist&&pe.persist();var ve=pe.target,Be=pe.currentTarget;G.current=ve,ce.current.focusTimeout=setTimeout(function(){var so=ve.selectionStart,Go=ve.selectionEnd,_o=ve.value;_o===void 0&&(_o="");var to=P(_o,so);to!==so&&!(so===0&&Go===_o.length)&&C(ve,to,_o),j(Object.assign(Object.assign({},pe),{currentTarget:Be}))},0)},br=function(pe){G.current=null,clearTimeout(ce.current.focusTimeout),clearTimeout(ce.current.setCaretTimeout),E(pe)},Gn=$e&&qC()?"numeric":void 0,mr=Object.assign({inputMode:Gn},D,{type:n,value:oe,onChange:yo,onKeyDown:Dt,onMouseUp:Et,onFocus:fr,onBlur:br});if(r==="text")return c?re.createElement(re.Fragment,null,c(oe,D)||null):re.createElement("span",Object.assign({},D,{ref:d}),oe);if(i){var hr=i;return re.createElement(hr,Object.assign({},mr,{ref:d}))}return re.createElement("input",Object.assign({},mr,{ref:d}))}function F1(e,n){var r=n.decimalScale,i=n.fixedDecimalScale,c=n.prefix;c===void 0&&(c="");var d=n.suffix;d===void 0&&(d="");var u=n.allowNegative,m=n.thousandsGroupStyle;if(m===void 0&&(m="thousand"),e===""||e==="-")return e;var h=dd(n),p=h.thousandSeparator,g=h.decimalSeparator,v=r!==0&&e.indexOf(".")!==-1||r&&i,_=Im(e,u),z=_.beforeDecimal,$=_.afterDecimal,j=_.addNegation;return r!==void 0&&($=_0($,r,!!i)),p&&(z=FC(z,p,m)),c&&(z=c+z),d&&($=$+d),j&&(z="-"+z),e=z+(v&&g||"")+$,e}function dd(e){var n=e.decimalSeparator;n===void 0&&(n=".");var r=e.thousandSeparator,i=e.allowedDecimalSeparators;return r===!0&&(r=","),i||(i=[n,"."]),{decimalSeparator:n,thousandSeparator:r,allowedDecimalSeparators:i}}function QC(e,n){e===void 0&&(e="");var r=new RegExp("(-)"),i=new RegExp("(-)(.)*(-)"),c=r.test(e),d=i.test(e);return e=e.replace(/-/g,""),c&&!d&&n&&(e="-"+e),e}function eE(e,n){return new RegExp("(^-)|[0-9]|"+g0(e),"g")}function oE(e,n,r){return e===""?!0:!n?.match(/\d/)&&!r?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function nE(e,n,r){var i;n===void 0&&(n=ZC(e));var c=r.allowNegative,d=r.prefix;d===void 0&&(d="");var u=r.suffix;u===void 0&&(u="");var m=r.decimalScale,h=n.from,p=n.to,g=p.start,v=p.end,_=dd(r),z=_.allowedDecimalSeparators,$=_.decimalSeparator,j=e[v]===$;if(ec(e)&&(e===d||e===u)&&n.lastValue==="")return e;if(v-g===1&&z.indexOf(e[g])!==-1){var E=m===0?"":$;e=e.substring(0,g)+E+e.substring(g+1,e.length)}var L=function(G,ce,ze){var Ee=!1,C=!1;d.startsWith("-")?Ee=!1:G.startsWith("--")?(Ee=!1,C=!0):u.startsWith("-")&&G.length===u.length?Ee=!1:G[0]==="-"&&(Ee=!0);var P=Ee?1:0;return C&&(P=2),P&&(G=G.substring(P),ce-=P,ze-=P),{value:G,start:ce,end:ze,hasNegation:Ee}},y=L(e,g,v),w=y.hasNegation;i=y,e=i.value,g=i.start,v=i.end;var N=L(n.lastValue,h.start,h.end),D=N.start,H=N.end,q=N.value,oe=e.substring(g,v);e.length&&q.length&&(D>q.length-u.length||H<d.length)&&!(oe&&u.startsWith(oe))&&(e=q);var de=0;e.startsWith(d)?de+=d.length:g<d.length&&(de=g),e=e.substring(de),v-=de;var Ke=e.length,ae=e.length-u.length;e.endsWith(u)?Ke=ae:(v>ae||v>e.length-u.length)&&(Ke=v),e=e.substring(0,Ke),e=QC(w?"-"+e:e,c),e=(e.match(eE($))||[]).join("");var ee=e.indexOf($);e=e.replace(new RegExp(g0($),"g"),function(G,ce){return ce===ee?".":""});var _e=Im(e,c),Te=_e.beforeDecimal,$e=_e.afterDecimal,M=_e.addNegation;return p.end-p.start<h.end-h.start&&Te===""&&j&&!parseFloat($e)&&(e=M?"-":""),e}function tE(e,n){var r=n.prefix;r===void 0&&(r="");var i=n.suffix;i===void 0&&(i="");var c=Array.from({length:e.length+1}).map(function(){return!0}),d=e[0]==="-";c.fill(!1,0,Math.min(r.length+(d?1:0),e.length));var u=e.length;return c.fill(!1,u-i.length+1,u+1),c}function rE(e){var n=dd(e),r=n.thousandSeparator,i=n.decimalSeparator,c=e.prefix;c===void 0&&(c="");var d=e.allowNegative;if(d===void 0&&(d=!0),r===i)throw new Error(`
|
|
25955
25955
|
Decimal separator can't be same as thousand separator.
|
|
25956
25956
|
thousandSeparator: `+r+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
25957
25957
|
decimalSeparator: `+i+` (default value for decimalSeparator is .)
|
|
@@ -25959,20 +25959,20 @@ Link:
|
|
|
25959
25959
|
Prefix can't start with '-' when allowNegative is true.
|
|
25960
25960
|
prefix: `+c+`
|
|
25961
25961
|
allowNegative: `+d+`
|
|
25962
|
-
`),d=!1),Object.assign(Object.assign({},e),{allowNegative:d})}function aE(e){e=rE(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var n=e.suffix,r=e.allowNegative,i=e.allowLeadingZeros,c=e.onKeyDown;c===void 0&&(c=Hr);var d=e.onBlur;d===void 0&&(d=Hr);var u=e.thousandSeparator,m=e.decimalScale,h=e.fixedDecimalScale,p=e.prefix;p===void 0&&(p="");var g=e.defaultValue,v=e.value,_=e.valueIsNumericString,z=e.onValueChange,$=k0(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),j=dd(e),E=j.decimalSeparator,L=j.allowedDecimalSeparators,y=function(M){return F1(M,e)},w=function(M,G){return nE(M,G,e)},N=Kr(v)?g:v,D=_??oE(N,p,n);Kr(v)?Kr(g)||(D=D||typeof g=="number"):D=D||typeof v=="number";var H=function(M){return v0(M)?M:(typeof M=="number"&&(M=x0(M)),D&&typeof m=="number"?I1(M,m,!!h):M)},q=w0(H(v),H(g),!!D,y,w,z),oe=q[0],ce=oe.numAsString,Ve=oe.formattedValue,ie=q[1],ee=function(M){var G=M.target,se=M.key,ze=G.selectionStart,Ae=G.selectionEnd,C=G.value;if(C===void 0&&(C=""),(se==="Backspace"||se==="Delete")&&Ae<p.length&&C!=="-"){M.preventDefault();return}if(ze!==Ae){c(M);return}se==="Backspace"&&C[0]==="-"&&ze===p.length+1&&r&&ga(G,1),m&&h&&(se==="Backspace"&&C[ze-1]===E?(ga(G,ze-1),M.preventDefault()):se==="Delete"&&C[ze]===E&&M.preventDefault()),L?.includes(se)&&C[ze]===E&&ga(G,ze+1);var P=u===!0?",":u;se==="Backspace"&&C[ze-1]===P&&ga(G,ze-1),se==="Delete"&&C[ze]===P&&ga(G,ze+1),c(M)},_e=function(M){var G=ce;if(G.match(/\d/g)||(G=""),i||(G=HC(G)),h&&m&&(G=I1(G,m,h)),G!==ce){var se=F1(G,e);ie({formattedValue:se,value:G,floatValue:parseFloat(G)},{event:M,source:Ll.event})}d(M)},Te=function(M){return M===E?!0:Wi(M)},$e=function(M){var G=M.currentValue,se=M.lastValue,ze=M.formattedValue,Ae=M.currentValueIndex,C=M.formattedValueIndex,P=G[Ae],ae=ze[C],be=y0(se,G),Ce=be.to,Ne=function(Ye){return w(Ye).indexOf(".")+p.length};return v===0&&h&&m&&G[Ce.start]===E&&Ne(G)<Ae&&Ne(ze)>C?!1:Ae>=Ce.start&&Ae<Ce.end&&L&&L.includes(P)&&ae===E?!0:P===ae};return Object.assign(Object.assign({},$),{value:Ve,valueIsNumericString:!1,isValidInputCharacter:Te,isCharacterSame:$e,onValueChange:ie,format:y,removeFormatting:w,getCaretBoundary:function(M){return tE(M,e)},onKeyDown:ee,onBlur:_e})}function lE(e){var n=aE(e);return re.createElement(WC,Object.assign({},n))}class iE{parse(n){return n==null||n===""?"":String(n).replace(/[eE.,]/g,"").replace(/\d[+-]/g,"")}}const cE=/[.,+eE]/,sE=e=>{e.key.length===1&&!e.ctrlKey&&!e.metaKey&&cE.test(e.key)&&e.preventDefault()};function dE({_label:e,_msg:n,_touched:r,_on:i,_required:c,value:d,thousandSeparator:u=!0,suffix:m="€",...h}){const p=i&&typeof i=="object"?i:void 0;return a.jsx(lE,{...h,value:d,suffix:m,thousandSeparator:u,valueIsNumericString:!1,customInput:g=>{const v=g.value;return a.jsx(Le,{...g,_value:v,_label:e,_msg:n,_touched:r,_required:c,_on:{onBlur:g.onBlur,onChange:g.onChange,onFocus:g.onFocus,onInput:g.onInput}})},onValueChange:g=>{const v=new Event("input");p?.onInput?.(v,g.floatValue)},onBlur:g=>{p?.onBlur?.(g.nativeEvent)}})}function uE(e){const{name:n,control:r,rules:i,defaultValue:c,shouldUnregister:d,disabled:u,_label:m,_required:h,...p}=e;return a.jsx(Gb,{name:n,control:r,rules:i,defaultValue:c,shouldUnregister:d,disabled:u,render:({field:g,fieldState:v})=>{const _=p._on;return a.jsx(dE,{...p,_label:m,_required:h,value:g.value,_touched:v.isTouched,_msg:v.error?{_type:"error",_description:v.error.message||String(v.error)}:void 0,_on:{onInput:(z,$)=>{g.onChange($),_?.onInput?.(z,$)},onBlur:()=>g.onBlur()}})}})}function fE(){const e=new iE,[n,r]=re.useState(void 0),[i,c]=re.useState(-128),[d,u]=re.useState(!1),h=El({defaultValues:{currency:1e6},mode:"onTouched"}),p=h.watch(),g=v=>{h.handleSubmit(async()=>{})(v)};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This example demonstrates formatting number input. The first example shows whole number formatting where decimal separators (. and ,) and scientific notation (e) are automatically removed on input. The second example shows currency formatting with react-number-format in a react-hook-form context."})}),a.jsxs("section",{className:"w-full grid gap-4",children:[a.jsxs("div",{children:[a.jsx(kn,{children:a.jsx(Ao,{_label:"Whole number",_step:1,_value:n??i,_on:{onKeyDown:sE,onBlur:()=>{u(!0)},onInput:(v,_)=>{const z=e.parse(_),$=z===""?void 0:Number(z);r($),c($)}}})}),a.jsx("pre",{className:"text-base mt-2",children:JSON.stringify({value:i,touched:d},null,2)})]}),a.jsxs("div",{children:[a.jsx(kn,{_on:{onSubmit:g},children:a.jsx(uE,{control:h.control,name:"currency",decimalScale:2,displayType:"input",rules:{required:"Please enter a currency amount."},_label:"Currency",_required:!0})}),a.jsx("pre",{className:"text-base mt-2",children:JSON.stringify(p,null,2)})]})]})]})}const bE={"input-number":{basic:kC,"number-formatter":fE}},H1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Lo,{...n,_label:"Passwort (Black background test)"})}),a.jsx(Lo,{...n,ref:r,_accessKey:"P",_required:!0,_hint:An,_msg:{_type:"error",_description:Fe},_placeholder:"Mit Icons",_label:"Passwort",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},_touched:!0}),a.jsx(Lo,{...n,_placeholder:"Placeholder",_msg:{_type:"info",_description:"Just a hint"},_label:"Password"}),a.jsx(Lo,{...n,_placeholder:"Placeholder",_msg:{_type:"warning",_description:"Small warning"},_label:"Password"}),a.jsx(Lo,{...n,_placeholder:"Placeholder",_msg:{_type:"success",_description:"Success message"},_label:"Password"}),a.jsx(Lo,{...n,_disabled:!0,_msg:{_type:"error",_description:Fe},_label:"Passwort (Disabled)",_touched:!0}),a.jsx(Lo,{...n,_readOnly:!0,_label:"Passwort (Readonly)"}),a.jsx(Lo,{...n,ref:r,_shortKey:"c",_label:"With access key"}),a.jsx(Lo,{...n,ref:r,_shortKey:"s",_label:"With short key"})]})}),mE=S.forwardRef(function(n,r){return a.jsxs($n,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Password"}),a.jsx(H1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Password (hideLabel)"}),a.jsx(H1,{ref:r,...n,_hideLabel:!0})]})]})}),hE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputPassword renders a password input field. The sample shows KolInputPassword in a form context with all variations and states."})}),a.jsx(Cn,{RefComponent:mE,showButtons:!1})]}),pE=()=>{const e=S.useRef(null);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows KolInputPassword in the variant "visibility-toggle". It features a button to toggle between a visible and hidden password input.'})}),a.jsxs(kn,{className:"w-full",children:[a.jsx(Lo,{_placeholder:"With 'Show password' button",_label:"Password",ref:e,className:"block",_variant:"visibility-toggle"}),a.jsx(Lo,{_placeholder:"With 'Show password' button",_label:"Password",ref:e,className:"block",_variant:"visibility-toggle",_value:"Password"}),a.jsx(Lo,{_placeholder:"With 'Show password' button and disabled",_label:"Password",ref:e,className:"block",_disabled:!0,_variant:"visibility-toggle"})]})]})},kE={"input-password":{basic:hE,"show-password":pE}},V1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Oo,{...n,_options:"[{'disabled':true,'label':'Mrs. (disabled)','value':'Mrs.'},{'label':'Mr.'},{'label':'Company','value':'Company'}]",_label:"Salutation (Black background test)"})}),a.jsx(Oo,{...n,_required:!0,_msg:{_type:"error",_description:Fe},_touched:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"Salutation (with error)"}),a.jsx(Oo,{...n,ref:r,_orientation:"horizontal",_required:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]",_label:"Salutation (horizontal)"}),a.jsx(Oo,{...n,_disabled:!0,_orientation:"horizontal",_required:!0,_msg:{_type:"error",_description:Fe},_touched:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]",_label:"Salutation (horizontal with error)"}),a.jsx(Oo,{...n,_disabled:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]",_label:"Salutation",_touched:!0}),a.jsx(Oo,{...n,_orientation:"horizontal",_required:!0,_msg:{_type:"error",_description:Fe},_touched:!0,_value:"Company",_options:[{label:"Mrs.",value:"Mrs.",hint:'Description for option "Mrs."'},{label:"Mr. (disabled)",value:"Mr.",hint:'Description for option "Mr."',disabled:!0},{label:"Company",value:"Company",hint:'Description for option "Company"'}],_label:"Salutation (horizontal with error hint and description)",_hint:An})]})}),vE=S.forwardRef(function(n,r){return a.jsxs($n,{children:[a.jsxs("div",{className:"border border-solid border-dark-100 p-3",children:[a.jsx(ue,{_level:2,_label:"Radio",className:"block mb-2"}),a.jsx(V1,{...n})]}),a.jsxs("div",{className:"border border-solid border-dark-100 p-3",children:[a.jsx(ue,{_level:2,_label:"Radio (hideLabel)",className:"block mb-2"}),a.jsx(V1,{ref:r,...n,_hideLabel:!0})]})]})}),gE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputRadio renders a set of radio buttons. The sample shows KolInputRadio in a form context with all variations and states."})}),a.jsx(Cn,{RefComponent:vE,showButtons:!1})]}),_E=()=>{const[e,n]=S.useState(!0),[r,i]=S.useState("horizontal"),c=[{label:"Field 1",value:1},{label:"Field 2",value:2}],d=()=>{n(m=>!m)},u=()=>{i(m=>m==="horizontal"?"vertical":"horizontal")};return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows the ",a.jsx("code",{children:"horizontal"})," and ",a.jsx("code",{children:"vertical"})," orientation of KolInoutRadio. It also features a button to test re-rendering."]})}),a.jsxs("div",{className:"flex gap-4",children:[a.jsx(X,{_label:"Click me a few times",_on:{onClick:d}}),a.jsx(ao,{_label:"Switch orientation (horizontal/vertical)",_on:{onChange:u},_variant:"switch"})]}),e&&a.jsx(kn,{children:a.jsxs("div",{className:"container my-4 d-grid gap-4",children:[a.jsx(Oo,{_label:`Test (${r})`,_options:c,_orientation:r,_required:!0}),a.jsx(Oo,{_hideLabel:!0,_label:`Test (${r})`,_options:c,_orientation:r,_required:!0})]})})]})},xE=()=>{const e=[{label:"Field 1",value:{id:1,name:"Option 1"}},{label:"Field 2",value:{id:2,name:"Option 2"}}];return a.jsxs("div",{className:"grid gap-4",children:[a.jsxs(K,{children:["This sample shows KolInputRadio with ",a.jsx("code",{children:"object"})," and ",a.jsx("code",{children:"undefined"})," values."]}),a.jsxs(kn,{children:[a.jsxs("p",{children:["In this example for ",a.jsx("code",{children:"KolInputRadio"}),", the values of the options are defined as objects."]}),a.jsx("div",{className:"container my-4 d-grid gap-4",children:a.jsx(Oo,{_value:e[1].value,_options:e,_label:"Test (with object value)"})}),a.jsxs("p",{children:["In this example for ",a.jsx("code",{children:"KolInputRadio"}),", no value is set."]}),a.jsx("div",{className:"container my-4 d-grid gap-4",children:a.jsx(Oo,{_options:e,_label:"Test (without value)"})})]})]})},yE={"input-radio":{basic:gE,horizontal:_E,object:xE}},K1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(tn,{...n,_min:0,_max:50,_msg:{_type:"error",_description:Fe},_label:"Slider (Black background test)",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},_touched:!0})}),a.jsx(tn,{...n,ref:r,_accessKey:"F",_min:0,_max:50,_step:10,_hint:An,_msg:{_type:"error",_description:Fe},_label:"Slider with error",_touched:!0}),a.jsx(tn,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Slider"}),a.jsx(tn,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Slider"}),a.jsx(tn,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Slider"}),a.jsx(tn,{...n,_disabled:!0,_min:0,_max:50,_label:"Slider (disabled)"}),a.jsx(tn,{...n,_min:0,_max:50,_label:"With access key",_accessKey:"c"}),a.jsx(tn,{...n,_min:0,_max:50,_label:"With short key",_shortKey:"s"})]})}),wE=S.forwardRef(function(n,r){return a.jsxs($n,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Range"}),a.jsx(K1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Range (hideLabel)"}),a.jsx(K1,{ref:r,...n,_hideLabel:!0})]})]})}),zE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputRange renders a pair of range- and number fields wich are synchronized with each other. The sample shows KolInputRange in a form context with all variations and states."})}),a.jsx(Cn,{RefComponent:wE,showButtons:!1})]}),SE={"input-range":{basic:zE}},q1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Le,{...n,_value:"Value",_label:"First name (Black background test)"})}),a.jsx(Le,{...n,_hint:An,_msg:{_type:"error",_description:Fe},_placeholder:"With icons",_icons:{right:{icon:"codicon codicon-arrow-right",style:{"font-size":"200%","margin-right":"calc(-8rem / var(--kolibri-root-font-size, 16))"}}},_on:{onBlur:console.log,onChange:console.log,onClick:console.log,onFocus:console.log},_required:!0,_type:"search",_touched:!0,_label:"First name (text)",_accessKey:"V",ref:r}),a.jsx(Le,{...n,_placeholder:"Placeholder",_msg:{_type:"info",_description:"Just a hint"},_label:"Search",_type:"search"}),a.jsx(Le,{...n,_placeholder:"Placeholder",_msg:{_type:"error",_description:Fe},_touched:!0,_type:"url",_label:"URL (url)"}),a.jsx(Le,{...n,_placeholder:"Placeholder",_type:"tel",_label:"Telephone (tel)",_msg:{_type:"warning",_description:"Small warning"}}),a.jsx(Le,{...n,_placeholder:"Placeholder",_type:"tel",_label:"Telephone (tel)",_msg:{_type:"success",_description:"Success message"}}),a.jsx(Le,{...n,_placeholder:"Placeholder",_label:"With counter",_maxLength:10,_value:"Lorem Ipsum",_hasCounter:!0}),a.jsx(Le,{...n,_placeholder:"Placeholder",_readOnly:!0,_label:"First name (placeholder)"}),a.jsx(Le,{...n,_value:"Value",_readOnly:!0,_label:"First name (text)"}),a.jsx(Le,{...n,_placeholder:"Placeholder",_disabled:!0,_label:"First name (placeholder, disabled)"}),a.jsx(Le,{...n,_value:"Value",_disabled:!0,_label:"First name (text, disabled)"}),a.jsx(Le,{...n,_value:"Value",_label:"With access key",_accessKey:"c"}),a.jsx(Le,{...n,_value:"Value",_label:"With short key",_shortKey:"s"})]})}),jE=S.forwardRef(function(n,r){return a.jsxs($n,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(q1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(q1,{ref:r,...n,_hideLabel:!0})]})]})}),TE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputText renders a text input field. The sample shows KolInputText in a form context with all variations and states."})}),a.jsx(Cn,{RefComponent:jE,showButtons:!1})]}),AE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample show KolInputText with expert slot."})}),a.jsx(Le,{_label:"",_type:"text",children:a.jsx("span",{slot:"expert",children:"I am more than just a input field"})})]}),CE=()=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows the ",a.jsx("code",{children:"_hideMsg"})," feature for KolInputText. It allows to hide the message from an input field and can be used, when the message (e.g. error) is already shown somewhere else, e.g. for a group of inputs."]})}),a.jsx(Re,{_label:"Normal input field with error",_level:0,children:a.jsx(Le,{_msg:{_type:"error",_description:"Error message"},_label:"Input with error",_touched:!0})}),a.jsx(Re,{_label:"Input fields with hidden error",_level:0,children:a.jsxs("fieldset",{className:"grid md:grid-cols-2 gap-4",children:[a.jsx("legend",{children:"Combined input field"}),a.jsx(Sn,{className:"col-span-2",_level:0,_type:"error",children:"This is a combined error message"}),a.jsx(Le,{_msg:{_type:"error",_description:"This is a combined error message"},_hideMsg:!0,_label:"First input",_touched:!0}),a.jsx(Le,{_msg:{_type:"error",_description:"This is a combined error message"},_hideMsg:!0,_label:"Second input with error",_touched:!0})]})})]}),EE=()=>{const e=S.useRef(null);function n(){e.current?.focus(),e.current?.setSelectionStart(8)}function r(){e.current?.focus(),e.current?.setSelectionRange(2,5)}function i(){e.current?.focus(),e.current?.setRangeText("INSERTED",5,9,"select")}return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows how to change the selection in a KolInputText."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Le,{_value:"Very long value",_label:"Text Input Label",ref:e}),a.jsx(Ge,{_label:"Set Start",onClick:n}),a.jsx(Ge,{_label:"Set Range",onClick:r}),a.jsx(Ge,{_label:"Set Range Text",onClick:i})]})]})},Z1={_icons:"codicon codicon-info",_hideLabel:!0},LE={left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},OE=()=>{const e=Gr.getInstance(document),n={onClick:()=>{e.enqueue({description:"Smart-Button clicked",label:"Toaster",type:"default"})}};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows the smart button feature for KolInputText. It allows the usage of a button inside the bnput."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Le,{_label:"Input with button and icons",_type:"text",_smartButton:{...Z1,_label:"Open Toast",_on:n},_icons:LE}),a.jsx(Le,{_label:"Disabled input with button and without icons",_disabled:!0,_type:"text",_smartButton:{...Z1,_label:"Disabled Button"}})]})]})};class $E{SEPARATOR=" ";CHARS_PER_GROUP=4;KEEP_ALPHANUM=/[^a-zA-Z0-9]/g;parse(n){return n.replace(this.KEEP_ALPHANUM,"").toUpperCase()}format(n){const r=this.parse(n),i=new RegExp(`(.{${this.CHARS_PER_GROUP}})(?!$)`,"g");return r.replace(i,`$1${this.SEPARATOR}`)}adjustCursorPosition(n,r,i){const c=this.format(n),d=this.format(r);if(i>=c.length)return d.length;let u=0;for(let h=0;h<i&&h<c.length;h++)c[h]!==this.SEPARATOR&&u++;let m=0;for(let h=0;h<d.length;h++)if(d[h]!==this.SEPARATOR&&m++===u)return h;return d.length}}class NE{LOCALE=navigator.language;CURRENCY_SYMBOL=" €";parse(n){const r=n.replace(/[^\d.,]/g,""),i=r.lastIndexOf(","),c=r.lastIndexOf(".");let d;return i>c?d=r.replace(/\./g,"").replace(",","."):c>i?d=r.replace(/,/g,""):d=r.replace(/[.,]/g,""),parseFloat(d)||0}format(n){const r=typeof n=="string"?this.parse(n):n;return new Intl.NumberFormat(this.LOCALE,{minimumFractionDigits:2,maximumFractionDigits:2}).format(r)+this.CURRENCY_SYMBOL}adjustCursorPosition(n,r,i){const c=this.format(n),d=this.format(r);if(i>=c.length)return d.length;let u=0;for(let h=0;h<i&&h<c.length;h++)/\d/.test(c[h])&&u++;let m=0;for(let h=0;h<d.length;h++)if(/\d/.test(d[h])&&m++===u)return h;return d.length}}function RE(){const e=new $E,n=new NE,r=El({defaultValues:{iban:"DE89370400440532013000"}}),i=El({defaultValues:{currency:1e6}}),c=d=>{const u=d.target,m=e.parse(u.value),h=e.adjustCursorPosition(r.getValues("iban"),m,u.selectionStart||0);r.setValue("iban",m),requestAnimationFrame(()=>{requestAnimationFrame(()=>{u.setSelectionRange(h,h)})})};return a.jsxs(a.Fragment,{children:[a.jsxs(K,{children:[a.jsx("p",{children:"This example demonstrates two different formatting strategies for input fields:"}),a.jsxs("ul",{children:[a.jsxs("li",{children:[a.jsx("strong",{children:"Live Formatting (IBAN):"})," Formatting happens while typing. The value is immediately formatted and displayed with intelligent cursor positioning. Best for fixed-format values where users expect visual feedback during input."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"On-Blur Formatting (Currency):"})," Formatting happens when leaving the field (onBlur event). Allows free typing without interruption. Best for numeric values where users might input in various formats."]})]}),a.jsxs("p",{children:[a.jsx("strong",{children:"Key Concept:"})," The form model always stores the ",a.jsx("em",{children:"unformatted"})," value (raw IBAN string, numeric currency value), while the input field displays the ",a.jsx("em",{children:"formatted"})," value for better readability."]})]}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsxs("div",{className:"p-2",children:[a.jsx(ue,{_label:"Live Formatting - IBAN",_level:2}),a.jsx("p",{className:"text-sm mb-2",children:"Formatting occurs during input with intelligent cursor control"}),a.jsx(kn,{children:a.jsx("form",{onSubmit:r.handleSubmit(async()=>{}),children:a.jsx(Gb,{name:"iban",control:r.control,render:({field:d})=>a.jsx("div",{className:"block mt-2",children:a.jsx(Le,{id:"field-iban",_label:"IBAN",_value:e.format(d.value??""),_required:!0,_on:{onInput:c,onBlur:d.onBlur}})})})})})]}),a.jsxs("div",{className:"p-2",children:[a.jsx(ue,{_label:"Model (Unformatted Value)",_level:2}),a.jsx("pre",{className:"text-base",children:JSON.stringify(r.watch(),null,2)})]})]}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsxs("div",{className:"p-2",children:[a.jsx(ue,{_label:"On-Blur Formatting - Currency",_level:2}),a.jsx("p",{className:"text-sm mb-2",children:"Formatting occurs when leaving the field (onBlur) for uninterrupted input"}),a.jsx(kn,{children:a.jsx("form",{onSubmit:i.handleSubmit(async()=>{}),children:a.jsx(Gb,{name:"currency",control:i.control,render:({field:d})=>a.jsx("div",{className:"block mt-2",children:a.jsx(Le,{id:"field-currency",_label:"Currency",_value:n.format(d.value??0),_on:{onBlur:u=>{const m=u.target,h=n.parse(m.value);d.onChange(h),d.onBlur()}}})})})})})]}),a.jsxs("div",{className:"p-2",children:[a.jsx(ue,{_label:"Model (Numeric Value)",_level:2}),a.jsx("pre",{className:"text-base",children:JSON.stringify(i.watch(),null,2)})]})]})]})}const BE={"input-text":{basic:TE,"hide-msg":CE,"text-formatter":RE,"smart-button":OE,"expert-slot":AE,"select-range":EE}},DE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolKolibri renders the KoliBri logo. The sample show the logo with and without label and with a custom color."})}),a.jsx(ue,{class:"block",_level:3,_label:"Regular"}),a.jsx(Cs,{class:"block",style:{width:300}}),a.jsx(ue,{class:"block",_level:3,_label:"Without Label"}),a.jsx(Cs,{class:"block",style:{width:300},_labeled:!1}),a.jsx(ue,{class:"block",_level:3,_label:"Customized color"}),a.jsx(Cs,{class:"block",style:{width:300},_color:"#cc006e"})]}),ME={kolibri:{basic:DE}},IE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolLinkButton with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(We,{_href:"#/back-page",_label:"Link Button Text without area description"}),a.jsx(We,{_href:"#/back-page",_label:"Link Button Text",_ariaDescription:"Link Button Area Description"})]})]}),ka={_href:"#/back-page"},UE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolLinkButton renders a link that looks like a button. The sample shows the different styling variants."})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(We,{_label:"Primary",_variant:"primary",...ka}),a.jsx(We,{_label:"Secondary",_variant:"secondary",...ka}),a.jsx(We,{_label:"Normal",_variant:"normal",...ka}),a.jsx(We,{_label:"Danger",_variant:"danger",...ka}),a.jsx(We,{_label:"Ghost",_variant:"ghost",...ka}),a.jsx(We,{_label:"Access Key",_variant:"primary",_accessKey:"c",...ka}),a.jsx(We,{_label:"Short Key",_variant:"primary",_shortKey:"s",...ka})]})]}),FE={"link-button":{basic:UE,"aria-description":IE}},HE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolLink with access key. The access keys can be used to trigger the buttons using the keyboard."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(xe,{_href:"#/back-page",_label:"With S access key",_accessKey:"S"}),a.jsx(xe,{_href:"#/back-page",_label:"Very small s",_accessKey:"s"}),a.jsx(xe,{_href:"#/back-page",_label:"Access key does not appear in label",_accessKey:"s"}),a.jsx(xe,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_label:"access key without label",_accessKey:"s"})]})]}),VE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolLink with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(xe,{_href:"#/back-page",_label:"Link Text without aria description"}),a.jsx(xe,{_href:"#/back-page",_label:"Link Text",_ariaDescription:"Link Area Description"})]})]}),KE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["KolLink renders a link. This sample shows disabled links, links with hidden label, the boolean _inline property and links with different CSS"," ",a.jsx("code",{children:"display"}),"-properties."]})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(xe,{_href:"#/back-page",_inline:!1,_label:"Simple Link"}),a.jsx(xe,{_disabled:!0,_href:"#/back-page",_inline:!1,_label:"Simple Link (disabled)"}),a.jsx(xe,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_inline:!1,_label:"Icon Link"}),a.jsx(xe,{_disabled:!0,_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_inline:!1,_label:"Icon Link (disabled)"}),a.jsxs("p",{children:["In this paragraph, a link is inserted that contains no additional attributes. ",a.jsx(xe,{_href:"#/back-page",_label:"Simple Link"})," It is rendered by default as a ",a.jsx("strong",{children:"inline element"}),"."]}),a.jsxs("p",{children:["In this paragraph, a link is inserted that is rendered as an inline-block element."," ",a.jsx(xe,{class:"d-inline-block",_accessKey:"S",_href:"#/back-page",_label:"Simple Link"}),". This allows you to assign width, height, and other properties to it using CSS styles.",a.jsx("br",{}),a.jsx("br",{}),"After that, there is a link that is rendered as a block element. ",a.jsx(xe,{class:"d-block",_href:"#/back-page",_label:"Simple Link"}),", therefore, I span the entire width of the parent element, causing a line break."]})]})]}),qE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolLink with icons in different alignments and combinations."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(xe,{_icons:"codicon codicon-home",_label:"I am a link with an icon on the left",_href:"#/back-page"}),a.jsx(xe,{_icons:{right:"codicon codicon-home"},_label:"I am a link with an icon on the right",_href:"#/back-page"}),a.jsx(xe,{_icons:{top:"codicon codicon-home"},_label:"I am a link with an icon at the top",_href:"#/back-page"}),a.jsx(xe,{_icons:{bottom:"codicon codicon-home"},_label:"I am a link with icon below",_href:"#/back-page"}),a.jsx(xe,{_icons:{top:"codicon codicon-home",right:"codicon codicon-home",bottom:"codicon codicon-home",left:"codicon codicon-home"},_label:"I am a link with all icons",_href:"#/back-page"}),a.jsx(xe,{_icons:"codicon codicon-home",_href:"https://public-ui.github.io/",_label:"I am a external link with an icon on the left",_target:"_blank"}),a.jsx(xe,{_icons:{right:"codicon codicon-home"},_href:"https://public-ui.github.io/",_label:"I am a external linkwith an icon on the right",_target:"_blank"}),a.jsx(xe,{_icons:{top:"codicon codicon-home"},_href:"https://public-ui.github.io/",_label:"I am a external link with an icon at the top",_target:"_blank"}),a.jsx(xe,{_icons:{bottom:"codicon codicon-home"},_href:"https://public-ui.github.io/",_label:"I am a external link with icon below",_target:"_blank"}),a.jsx(xe,{_href:"https://public-ui.github.io/",_label:"I am a external link with all icons",_target:"_blank",_icons:{top:"codicon codicon-home",right:"codicon codicon-home",bottom:"codicon codicon-home",left:"codicon codicon-home"}})]})]}),ZE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolLink can be used with slot-content instead of a label as well. This sample demonstrates the slot content used to display an image."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(xe,{_href:"#/back-page",_label:"I am a link that is rendered as text"}),a.jsx(xe,{_href:"#/back-page",_label:"",children:a.jsx("img",{alt:"Presentation of the KoliBri theming",slot:"expert",src:"abgrenzung.jpg",width:"300"})})]})]}),PE=()=>{const e=ad(),n={onClick:r=>{r.preventDefault(),e("/back-page")}};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows how KolLink works with react-router. Primary click uses preventDefault() and navigate(...), while right click open in new tab still follows _href. Make sure _href and navigate(...) point to the same path."})}),a.jsx("div",{className:"grid gap-4",children:a.jsx(xe,{_href:"/back-page",_inline:!1,_label:"Go to overview",_on:n})})]})},GE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolButton with short key without functionality. The short key is purely visual. Its functionality needs to be developed separately."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(xe,{_href:"#/back-page",_label:"With S short key",_shortKey:"S"}),a.jsx(xe,{_href:"#/back-page",_label:"Very small s",_shortKey:"s"}),a.jsx(xe,{_href:"#/back-page",_label:"Short key does not appear in label",_shortKey:"s"}),a.jsx(xe,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_label:"short key without label",_shortKey:"s"})]})]}),YE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows KolLink with different ",a.jsx("code",{children:"_target"}),"-properties."]})}),a.jsx("div",{className:"text-base d-flex gap-4",children:a.jsxs("ul",{children:[a.jsx("li",{children:a.jsx(xe,{_href:"#/back-page",_label:"Link without target"})}),a.jsx("li",{children:a.jsx(xe,{_href:"#/back-page",_label:"Link with target (_self)",_target:"_self"})}),a.jsx("li",{children:a.jsx(xe,{_href:"#/back-page",_label:"Link with target (_blank)",_target:"_blank"})}),a.jsx("li",{children:a.jsx(xe,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link without target"})}),a.jsx("li",{children:a.jsx(xe,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link with target (_self)",_target:"_self"})}),a.jsx("li",{children:a.jsx(xe,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link with target (_blank)",_target:"_blank"})})]})})]}),JE={link:{basic:KE,icons:qE,image:ZE,target:YE,"aria-description":VE,"access-key":HE,"short-key":GE,"react-router":PE}},XE=()=>{const[e]=Pr(),n=e.get("show-modal"),r=S.useRef(null),i=S.useRef(null),c={onClick:()=>r.current?.openModal()},d={onClick:()=>i.current?.openModal()},u={onClick:()=>r.current?.closeModal()};return S.useEffect(()=>{n==="true"&&(r.current?.openModal(),i.current?.openModal())},[]),a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["KolModal supports the variants ",a.jsx("code",{children:"blank"})," and ",a.jsx("code",{children:"card"}),". The card variant includes a ",a.jsx("code",{children:"KolCard"})," container and a closer button."]})}),a.jsxs("div",{className:"grid gap-8",children:[a.jsxs("div",{children:[a.jsx(X,{_label:"Open blank modal",_on:c}),a.jsx(Xv,{ref:r,_label:"Blank modal",_variant:"blank",_width:"40%",children:a.jsxs("div",{className:"bg-white p-4 rounded shadow",children:[a.jsx("p",{className:"mt-0",children:"You must add styling and a close button yourself."}),a.jsx(X,{_label:"Open card modal",className:"mr",_on:d}),a.jsx(X,{_label:"Close",_on:u})]})})]}),a.jsxs("div",{children:[a.jsx(X,{_label:"Open card modal",_on:d}),a.jsx(Xv,{ref:i,_label:"Card modal",_variant:"card",_width:"30%",children:a.jsx("p",{className:"mt-0",children:"This variant wraps content inside a KolCard."})})]})]})]})},WE={modal:{basic:XE}},QE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows KolNav with a link to the current page. This makes the component automatically assign ",a.jsx("code",{children:'aria-current="page"'}),"to it."]})}),a.jsx(jl,{class:"block w-sm",_label:"Main navigation",_links:[{_label:"Homepage",_href:"#/back-page"},{_label:"Nav - aria-current (Current page)",_href:"#/nav/aria-current",_active:!0}]})]}),z0=[{_label:"Homepage",_icons:"codicon codicon-home",_on:{onClick:()=>console.log("Homepage clicked")}},{_label:"2 Navigation point",_href:"#/back-page",_on:{onClick:()=>console.log("Link clicked")}},{_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_label:"3.1 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.2 Navigation point",_href:"#/back-page",_target:"asdasd"},{_label:"3.3 Navigation point",_href:"#/back-page",_children:[{_label:"3.3.1 Navigation point",_href:"#/back-page"},{_label:"3.3.2 Navigation point",_href:"#/back-page"}]},{_label:"3.4 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1.1 Navigation point",_href:"#/back-page"},{_label:"3.4.1.2 Navigation point (active)",_href:"#/back-page"}]},{_label:"3.4.2 Navigation point",_href:"#/back-page"}]},{_label:"3.5 Navigation point",_href:"#/back-page"}]},{_label:"4 Navigation point with children and onClick",_children:[{_label:"4.1 Nested link",_href:"#/back-page"}],_on:{onClick:()=>console.log("4.1 Nested link clicked")}},{_label:"5 No own page, only category",_active:!0,_children:[{_label:"5.1 Nested link",_href:"#/back-page"}]},{_label:"6 No own page, with icon",_icons:"codicon codicon-squirrel",_children:[{_label:"6.1 Nested link",_href:"#/back-page"}]}],eL=[{_label:"Homepage",_icons:"codicon codicon-home",_on:{onClick:()=>console.log("Homepage clicked")}},{_label:"2 Navigation point",_href:"#/back-page",_on:{onClick:()=>console.log("Link clicked")}},{_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home"},{_label:"4 Navigation point with children and onClick",_on:{onClick:()=>console.log("4.1 Nested link clicked")}},{_label:"5 No own page, only category",_active:!0},{_label:"6 No own page, with icon",_icons:"codicon codicon-squirrel"}],oL=[{_label:"Homepage",_icons:"codicon codicon-home",_on:{onClick:()=>console.log("Homepage clicked")}},{_label:"2 Navigation point",_href:"#/back-page",_on:{onClick:()=>console.log("Link clicked")}},{_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_label:"3.1 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.2 Navigation point",_target:"asdasd"},{_label:"3.3 Navigation point",_href:"#/back-page",_children:[{_label:"3.3.1 Navigation point",_href:"#/back-page",_active:!0},{_label:"3.3.2 Navigation point",_href:"#/back-page"}]},{_label:"3.4 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1.1 Navigation point",_href:"#/back-page"},{_label:"3.4.1.2 Navigation point (active)",_href:"#/back-page"}]},{_label:"3.4.2 Navigation point",_href:"#/back-page"}]},{_label:"3.5 Navigation point",_href:"#/back-page"}]}],nL=()=>{const[e,n]=S.useState(!1);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolNav renders a navigation. In this sample, icons for the navigation elements can be shown or hidden using a checkbox and the navigation can be collapsed, showing only icons and no text labels."})}),a.jsxs("section",{className:"grid gap-8",children:[a.jsx("section",{children:a.jsx(ao,{_label:"Show icons when expanded",_checked:e,_on:{onChange:(r,i)=>{n(i)}}})}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Navigation without submenu"}),a.jsx(jl,{class:"block w-fit",_label:"Navigation without submenu",_links:eL,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Navigation with submenu"}),a.jsx(jl,{class:"block w-fit",_label:"Navigation with submenu",_links:z0,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Navigation with submenu active"}),a.jsx(jl,{class:"block w-fit",_label:"Navigation with submenu active",_links:oL,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]})]})]})},tL={nav:{basic:nL,"aria-current":QE}},rL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolPagination renders a pagination for datasets. The sample shows the different states and variations of a pagination and the option to change the page size."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Ai,{_max:316514,_page:15475,_siblingCount:3,_label:"Test pagination 1",_on:{}}),a.jsx(Ai,{_max:14,_page:14,_siblingCount:1,_boundaryCount:2,_label:"Test pagination 2",_on:{}}),a.jsx(Ai,{_max:4,_page:1,_siblingCount:0,_boundaryCount:2,_label:"Test pagination 3",_on:{}}),a.jsx(Ai,{_max:4,_page:6,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:"Test pagination 4",_on:{}}),a.jsx(Ai,{_max:400,_page:6,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:"Test pagination 5",_on:{},_pageSizeOptions:[10,100]})]})]}),aL={pagination:{basic:rL}},lL=()=>{const{dummyClickEventHandler:e}=Io(),n=re.useRef(null),r={onClick:e},i=[{_label:"Edit",_icons:"codicon codicon-edit",_on:r},{_label:"Delete",_icons:"codicon codicon-trash",_on:r},{_label:"Duplicate",_icons:"codicon codicon-copy",_on:r}];return S.useEffect(()=>{n.current&&(n.current.showPopover(),n.current.focus())},[]),a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["The PopoverButton component combines a button with a popover that appears when clicked. The popover can be positioned in different directions (top, right, bottom, left) using the ",a.jsx("code",{children:"_popoverAlign"})," prop."]})}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(hb,{_label:"Actions",_variant:"primary",_icons:{right:"codicon codicon-chevron-down"},ref:n,children:a.jsx(ya,{_label:"Action toolbar",_items:i,_orientation:"vertical"})}),a.jsx(hb,{_label:"Help",_icons:"codicon codicon-info",_popoverAlign:"right",_tooltipAlign:"bottom",_hideLabel:!0,children:a.jsxs("div",{className:"w-sm p-2 border border-solid border-gray",children:[a.jsx(ue,{_label:"Help Information",_level:0}),a.jsxs("p",{children:[a.jsx("u",{children:"Lorem ipsum dolor sit amet"}),", consectetur adipisicing elit. Aspernatur aut dolore dolores itaque praesentium reprehenderit sed voluptatum! Exercitationem ipsa magni maiores modi, placeat quas quos reprehenderit rerum sit veniam vitae."]})]})})]})]})},iL={"popover-button":{basic:lL}},cL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'KolProgress renders a progress indicator. The sample shows the variants "bar" and "cycle" with and without labels.'})}),a.jsxs("div",{className:"grid gap-4 grid-cols-1 sm:grid-cols-2",children:[a.jsxs("fieldset",{title:"Percentages",className:"flex flex-col gap-4",children:[a.jsx(ar,{_variant:"bar",_max:7,_value:0}),a.jsx(ar,{_variant:"bar",_max:7,_value:2}),a.jsx(ar,{_variant:"bar",_max:7,_value:7}),a.jsx(ar,{_variant:"cycle",_max:7,_value:6})]}),a.jsxs("fieldset",{title:"Custom units",className:"flex flex-col gap-4",children:[a.jsx(ar,{_label:"Distance",_variant:"bar",_max:65434,_value:7236,_unit:"m"}),a.jsx(ar,{_label:"12 Tasks to do",_variant:"bar",_max:12,_value:5,_unit:"tasks completed"}),a.jsx(ar,{_label:"Max 150 kg",_variant:"cycle",_max:150,_value:42,_unit:"kg"})]})]})]}),sL={progress:{basic:cL}},dL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'KolQuote renders a quote with optional citation. This sample shows a quote in the variant "inline" with a link for citation.'})}),a.jsx(Nx,{_href:"https://datatracker.ietf.org/doc/html/rfc1149",_quote:"Avian carriers can provide high delay.",_variant:"inline"})]}),uL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows a quote in the "block" variant.'})}),a.jsx(Nx,{_label:"RFC 1149",_href:"https://datatracker.ietf.org/doc/html/rfc1149",_quote:`Avian carriers can provide high delay, low throughput, and low altitude
|
|
25962
|
+
`),d=!1),Object.assign(Object.assign({},e),{allowNegative:d})}function aE(e){e=rE(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var n=e.suffix,r=e.allowNegative,i=e.allowLeadingZeros,c=e.onKeyDown;c===void 0&&(c=Vr);var d=e.onBlur;d===void 0&&(d=Vr);var u=e.thousandSeparator,m=e.decimalScale,h=e.fixedDecimalScale,p=e.prefix;p===void 0&&(p="");var g=e.defaultValue,v=e.value,_=e.valueIsNumericString,z=e.onValueChange,$=k0(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),j=dd(e),E=j.decimalSeparator,L=j.allowedDecimalSeparators,y=function(M){return F1(M,e)},w=function(M,G){return nE(M,G,e)},N=qr(v)?g:v,D=_??oE(N,p,n);qr(v)?qr(g)||(D=D||typeof g=="number"):D=D||typeof v=="number";var H=function(M){return v0(M)?M:(typeof M=="number"&&(M=x0(M)),D&&typeof m=="number"?I1(M,m,!!h):M)},q=w0(H(v),H(g),!!D,y,w,z),oe=q[0],de=oe.numAsString,Ke=oe.formattedValue,ae=q[1],ee=function(M){var G=M.target,ce=M.key,ze=G.selectionStart,Ee=G.selectionEnd,C=G.value;if(C===void 0&&(C=""),(ce==="Backspace"||ce==="Delete")&&Ee<p.length&&C!=="-"){M.preventDefault();return}if(ze!==Ee){c(M);return}ce==="Backspace"&&C[0]==="-"&&ze===p.length+1&&r&&_a(G,1),m&&h&&(ce==="Backspace"&&C[ze-1]===E?(_a(G,ze-1),M.preventDefault()):ce==="Delete"&&C[ze]===E&&M.preventDefault()),L?.includes(ce)&&C[ze]===E&&_a(G,ze+1);var P=u===!0?",":u;ce==="Backspace"&&C[ze-1]===P&&_a(G,ze-1),ce==="Delete"&&C[ze]===P&&_a(G,ze+1),c(M)},_e=function(M){var G=de;if(G.match(/\d/g)||(G=""),i||(G=HC(G)),h&&m&&(G=I1(G,m,h)),G!==de){var ce=F1(G,e);ae({formattedValue:ce,value:G,floatValue:parseFloat(G)},{event:M,source:Ol.event})}d(M)},Te=function(M){return M===E?!0:ec(M)},$e=function(M){var G=M.currentValue,ce=M.lastValue,ze=M.formattedValue,Ee=M.currentValueIndex,C=M.formattedValueIndex,P=G[Ee],te=ze[C],be=y0(ce,G),Ae=be.to,Re=function(He){return w(He).indexOf(".")+p.length};return v===0&&h&&m&&G[Ae.start]===E&&Re(G)<Ee&&Re(ze)>C?!1:Ee>=Ae.start&&Ee<Ae.end&&L&&L.includes(P)&&te===E?!0:P===te};return Object.assign(Object.assign({},$),{value:Ke,valueIsNumericString:!1,isValidInputCharacter:Te,isCharacterSame:$e,onValueChange:ae,format:y,removeFormatting:w,getCaretBoundary:function(M){return tE(M,e)},onKeyDown:ee,onBlur:_e})}function lE(e){var n=aE(e);return re.createElement(WC,Object.assign({},n))}class iE{parse(n){return n==null||n===""?"":String(n).replace(/[eE.,]/g,"").replace(/\d[+-]/g,"")}}const cE=/[.,+eE]/,sE=e=>{e.key.length===1&&!e.ctrlKey&&!e.metaKey&&cE.test(e.key)&&e.preventDefault()};function dE({_label:e,_msg:n,_touched:r,_on:i,_required:c,value:d,thousandSeparator:u=!0,suffix:m="€",...h}){const p=i&&typeof i=="object"?i:void 0;return a.jsx(lE,{...h,value:d,suffix:m,thousandSeparator:u,valueIsNumericString:!1,customInput:g=>{const v=g.value;return a.jsx(Le,{...g,_value:v,_label:e,_msg:n,_touched:r,_required:c,_on:{onBlur:g.onBlur,onChange:g.onChange,onFocus:g.onFocus,onInput:g.onInput}})},onValueChange:g=>{const v=new Event("input");p?.onInput?.(v,g.floatValue)},onBlur:g=>{p?.onBlur?.(g.nativeEvent)}})}function uE(e){const{name:n,control:r,rules:i,defaultValue:c,shouldUnregister:d,disabled:u,_label:m,_required:h,...p}=e;return a.jsx(Gb,{name:n,control:r,rules:i,defaultValue:c,shouldUnregister:d,disabled:u,render:({field:g,fieldState:v})=>{const _=p._on;return a.jsx(dE,{...p,_label:m,_required:h,value:g.value,_touched:v.isTouched,_msg:v.error?{_type:"error",_description:v.error.message||String(v.error)}:void 0,_on:{onInput:(z,$)=>{g.onChange($),_?.onInput?.(z,$)},onBlur:()=>g.onBlur()}})}})}function fE(){const e=new iE,[n,r]=re.useState(void 0),[i,c]=re.useState(-128),[d,u]=re.useState(!1),h=Ll({defaultValues:{currency:1e6},mode:"onTouched"}),p=h.watch(),g=v=>{h.handleSubmit(async()=>{})(v)};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This example demonstrates formatting number input. The first example shows whole number formatting where decimal separators (. and ,) and scientific notation (e) are automatically removed on input. The second example shows currency formatting with react-number-format in a react-hook-form context."})}),a.jsxs("section",{className:"w-full grid gap-4",children:[a.jsxs("div",{children:[a.jsx(vn,{children:a.jsx(Co,{_label:"Whole number",_step:1,_value:n??i,_on:{onKeyDown:sE,onBlur:()=>{u(!0)},onInput:(v,_)=>{const z=e.parse(_),$=z===""?void 0:Number(z);r($),c($)}}})}),a.jsx("pre",{className:"text-base mt-2",children:JSON.stringify({value:i,touched:d},null,2)})]}),a.jsxs("div",{children:[a.jsx(vn,{_on:{onSubmit:g},children:a.jsx(uE,{control:h.control,name:"currency",decimalScale:2,displayType:"input",rules:{required:"Please enter a currency amount."},_label:"Currency",_required:!0})}),a.jsx("pre",{className:"text-base mt-2",children:JSON.stringify(p,null,2)})]})]})]})}const bE={"input-number":{basic:kC,"number-formatter":fE}},H1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx($o,{...n,_label:"Passwort (Black background test)"})}),a.jsx($o,{...n,ref:r,_accessKey:"P",_required:!0,_hint:Cn,_msg:{_type:"error",_description:Fe},_placeholder:"Mit Icons",_label:"Passwort",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},_touched:!0}),a.jsx($o,{...n,_placeholder:"Placeholder",_msg:{_type:"info",_description:"Just a hint"},_label:"Password"}),a.jsx($o,{...n,_placeholder:"Placeholder",_msg:{_type:"warning",_description:"Small warning"},_label:"Password"}),a.jsx($o,{...n,_placeholder:"Placeholder",_msg:{_type:"success",_description:"Success message"},_label:"Password"}),a.jsx($o,{...n,_disabled:!0,_msg:{_type:"error",_description:Fe},_label:"Passwort (Disabled)",_touched:!0}),a.jsx($o,{...n,_readOnly:!0,_label:"Passwort (Readonly)"}),a.jsx($o,{...n,ref:r,_shortKey:"c",_label:"With access key"}),a.jsx($o,{...n,ref:r,_shortKey:"s",_label:"With short key"})]})}),mE=S.forwardRef(function(n,r){return a.jsxs(Rn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Password"}),a.jsx(H1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Password (hideLabel)"}),a.jsx(H1,{ref:r,...n,_hideLabel:!0})]})]})}),hE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputPassword renders a password input field. The sample shows KolInputPassword in a form context with all variations and states."})}),a.jsx(En,{RefComponent:mE,showButtons:!1})]}),pE=()=>{const e=S.useRef(null);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows KolInputPassword in the variant "visibility-toggle". It features a button to toggle between a visible and hidden password input.'})}),a.jsxs(vn,{className:"w-full",children:[a.jsx($o,{_placeholder:"With 'Show password' button",_label:"Password",ref:e,className:"block",_variant:"visibility-toggle"}),a.jsx($o,{_placeholder:"With 'Show password' button",_label:"Password",ref:e,className:"block",_variant:"visibility-toggle",_value:"Password"}),a.jsx($o,{_placeholder:"With 'Show password' button and disabled",_label:"Password",ref:e,className:"block",_disabled:!0,_variant:"visibility-toggle"})]})]})},kE={"input-password":{basic:hE,"show-password":pE}},V1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(No,{...n,_options:"[{'disabled':true,'label':'Mrs. (disabled)','value':'Mrs.'},{'label':'Mr.'},{'label':'Company','value':'Company'}]",_label:"Salutation (Black background test)"})}),a.jsx(No,{...n,_required:!0,_msg:{_type:"error",_description:Fe},_touched:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"Salutation (with error)"}),a.jsx(No,{...n,ref:r,_orientation:"horizontal",_required:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]",_label:"Salutation (horizontal)"}),a.jsx(No,{...n,_disabled:!0,_orientation:"horizontal",_required:!0,_msg:{_type:"error",_description:Fe},_touched:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]",_label:"Salutation (horizontal with error)"}),a.jsx(No,{...n,_disabled:!0,_value:"Company",_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)'},{'label':'Company','value':'Company'}]",_label:"Salutation",_touched:!0}),a.jsx(No,{...n,_orientation:"horizontal",_required:!0,_msg:{_type:"error",_description:Fe},_touched:!0,_value:"Company",_options:[{label:"Mrs.",value:"Mrs.",hint:'Description for option "Mrs."'},{label:"Mr. (disabled)",value:"Mr.",hint:'Description for option "Mr."',disabled:!0},{label:"Company",value:"Company",hint:'Description for option "Company"'}],_label:"Salutation (horizontal with error hint and description)",_hint:Cn})]})}),vE=S.forwardRef(function(n,r){return a.jsxs(Rn,{children:[a.jsxs("div",{className:"border border-solid border-dark-100 p-3",children:[a.jsx(ue,{_level:2,_label:"Radio",className:"block mb-2"}),a.jsx(V1,{...n})]}),a.jsxs("div",{className:"border border-solid border-dark-100 p-3",children:[a.jsx(ue,{_level:2,_label:"Radio (hideLabel)",className:"block mb-2"}),a.jsx(V1,{ref:r,...n,_hideLabel:!0})]})]})}),gE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputRadio renders a set of radio buttons. The sample shows KolInputRadio in a form context with all variations and states."})}),a.jsx(En,{RefComponent:vE,showButtons:!1})]}),_E=()=>{const[e,n]=S.useState(!0),[r,i]=S.useState("horizontal"),c=[{label:"Field 1",value:1},{label:"Field 2",value:2}],d=()=>{n(m=>!m)},u=()=>{i(m=>m==="horizontal"?"vertical":"horizontal")};return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows the ",a.jsx("code",{children:"horizontal"})," and ",a.jsx("code",{children:"vertical"})," orientation of KolInoutRadio. It also features a button to test re-rendering."]})}),a.jsxs("div",{className:"flex gap-4",children:[a.jsx(X,{_label:"Click me a few times",_on:{onClick:d}}),a.jsx(lo,{_label:"Switch orientation (horizontal/vertical)",_on:{onChange:u},_variant:"switch"})]}),e&&a.jsx(vn,{children:a.jsxs("div",{className:"container my-4 d-grid gap-4",children:[a.jsx(No,{_label:`Test (${r})`,_options:c,_orientation:r,_required:!0}),a.jsx(No,{_hideLabel:!0,_label:`Test (${r})`,_options:c,_orientation:r,_required:!0})]})})]})},xE=()=>{const e=[{label:"Field 1",value:{id:1,name:"Option 1"}},{label:"Field 2",value:{id:2,name:"Option 2"}}];return a.jsxs("div",{className:"grid gap-4",children:[a.jsxs(K,{children:["This sample shows KolInputRadio with ",a.jsx("code",{children:"object"})," and ",a.jsx("code",{children:"undefined"})," values."]}),a.jsxs(vn,{children:[a.jsxs("p",{children:["In this example for ",a.jsx("code",{children:"KolInputRadio"}),", the values of the options are defined as objects."]}),a.jsx("div",{className:"container my-4 d-grid gap-4",children:a.jsx(No,{_value:e[1].value,_options:e,_label:"Test (with object value)"})}),a.jsxs("p",{children:["In this example for ",a.jsx("code",{children:"KolInputRadio"}),", no value is set."]}),a.jsx("div",{className:"container my-4 d-grid gap-4",children:a.jsx(No,{_options:e,_label:"Test (without value)"})})]})]})},yE={"input-radio":{basic:gE,horizontal:_E,object:xE}},K1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(ln,{...n,_min:0,_max:50,_msg:{_type:"error",_description:Fe},_label:"Slider (Black background test)",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},_touched:!0})}),a.jsx(ln,{...n,ref:r,_accessKey:"F",_min:0,_max:50,_step:10,_hint:Cn,_msg:{_type:"error",_description:Fe},_label:"Slider with error",_touched:!0}),a.jsx(ln,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Slider"}),a.jsx(ln,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Slider"}),a.jsx(ln,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Slider"}),a.jsx(ln,{...n,_disabled:!0,_min:0,_max:50,_label:"Slider (disabled)"}),a.jsx(ln,{...n,_min:0,_max:50,_label:"With access key",_accessKey:"c"}),a.jsx(ln,{...n,_min:0,_max:50,_label:"With short key",_shortKey:"s"})]})}),wE=S.forwardRef(function(n,r){return a.jsxs(Rn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Range"}),a.jsx(K1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Range (hideLabel)"}),a.jsx(K1,{ref:r,...n,_hideLabel:!0})]})]})}),zE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputRange renders a pair of range- and number fields wich are synchronized with each other. The sample shows KolInputRange in a form context with all variations and states."})}),a.jsx(En,{RefComponent:wE,showButtons:!1})]}),SE={"input-range":{basic:zE}},q1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Le,{...n,_value:"Value",_label:"First name (Black background test)"})}),a.jsx(Le,{...n,_hint:Cn,_msg:{_type:"error",_description:Fe},_placeholder:"With icons",_icons:{right:{icon:"codicon codicon-arrow-right",style:{"font-size":"200%","margin-right":"calc(-8rem / var(--kolibri-root-font-size, 16))"}}},_on:{onBlur:console.log,onChange:console.log,onClick:console.log,onFocus:console.log},_required:!0,_type:"search",_touched:!0,_label:"First name (text)",_accessKey:"V",ref:r}),a.jsx(Le,{...n,_placeholder:"Placeholder",_msg:{_type:"info",_description:"Just a hint"},_label:"Search",_type:"search"}),a.jsx(Le,{...n,_placeholder:"Placeholder",_msg:{_type:"error",_description:Fe},_touched:!0,_type:"url",_label:"URL (url)"}),a.jsx(Le,{...n,_placeholder:"Placeholder",_type:"tel",_label:"Telephone (tel)",_msg:{_type:"warning",_description:"Small warning"}}),a.jsx(Le,{...n,_placeholder:"Placeholder",_type:"tel",_label:"Telephone (tel)",_msg:{_type:"success",_description:"Success message"}}),a.jsx(Le,{...n,_placeholder:"Placeholder",_label:"With counter",_maxLength:10,_value:"Lorem Ipsum",_hasCounter:!0}),a.jsx(Le,{...n,_placeholder:"Placeholder",_readOnly:!0,_label:"First name (placeholder)"}),a.jsx(Le,{...n,_value:"Value",_readOnly:!0,_label:"First name (text)"}),a.jsx(Le,{...n,_placeholder:"Placeholder",_disabled:!0,_label:"First name (placeholder, disabled)"}),a.jsx(Le,{...n,_value:"Value",_disabled:!0,_label:"First name (text, disabled)"}),a.jsx(Le,{...n,_value:"Value",_label:"With access key",_accessKey:"c"}),a.jsx(Le,{...n,_value:"Value",_label:"With short key",_shortKey:"s"})]})}),jE=S.forwardRef(function(n,r){return a.jsxs(Rn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(q1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(q1,{ref:r,...n,_hideLabel:!0})]})]})}),TE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolInputText renders a text input field. The sample shows KolInputText in a form context with all variations and states."})}),a.jsx(En,{RefComponent:jE,showButtons:!1})]}),AE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample show KolInputText with expert slot."})}),a.jsx(Le,{_label:"",_type:"text",children:a.jsx("span",{slot:"expert",children:"I am more than just a input field"})})]}),CE=()=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows the ",a.jsx("code",{children:"_hideMsg"})," feature for KolInputText. It allows to hide the message from an input field and can be used, when the message (e.g. error) is already shown somewhere else, e.g. for a group of inputs."]})}),a.jsx(Ne,{_label:"Normal input field with error",_level:0,children:a.jsx(Le,{_msg:{_type:"error",_description:"Error message"},_label:"Input with error",_touched:!0})}),a.jsx(Ne,{_label:"Input fields with hidden error",_level:0,children:a.jsxs("fieldset",{className:"grid md:grid-cols-2 gap-4",children:[a.jsx("legend",{children:"Combined input field"}),a.jsx(jn,{className:"col-span-2",_level:0,_type:"error",children:"This is a combined error message"}),a.jsx(Le,{_msg:{_type:"error",_description:"This is a combined error message"},_hideMsg:!0,_label:"First input",_touched:!0}),a.jsx(Le,{_msg:{_type:"error",_description:"This is a combined error message"},_hideMsg:!0,_label:"Second input with error",_touched:!0})]})})]}),EE=()=>{const e=S.useRef(null);function n(){e.current?.focus(),e.current?.setSelectionStart(8)}function r(){e.current?.focus(),e.current?.setSelectionRange(2,5)}function i(){e.current?.focus(),e.current?.setRangeText("INSERTED",5,9,"select")}return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows how to change the selection in a KolInputText."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Le,{_value:"Very long value",_label:"Text Input Label",ref:e}),a.jsx(Ye,{_label:"Set Start",onClick:n}),a.jsx(Ye,{_label:"Set Range",onClick:r}),a.jsx(Ye,{_label:"Set Range Text",onClick:i})]})]})},Z1={_icons:"codicon codicon-info",_hideLabel:!0},LE={left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},OE=()=>{const e=Yr.getInstance(document),n={onClick:()=>{e.enqueue({description:"Smart-Button clicked",label:"Toaster",type:"default"})}};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows the smart button feature for KolInputText. It allows the usage of a button inside the bnput."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Le,{_label:"Input with button and icons",_type:"text",_smartButton:{...Z1,_label:"Open Toast",_on:n},_icons:LE}),a.jsx(Le,{_label:"Disabled input with button and without icons",_disabled:!0,_type:"text",_smartButton:{...Z1,_label:"Disabled Button"}})]})]})};class $E{SEPARATOR=" ";CHARS_PER_GROUP=4;KEEP_ALPHANUM=/[^a-zA-Z0-9]/g;parse(n){return n.replace(this.KEEP_ALPHANUM,"").toUpperCase()}format(n){const r=this.parse(n),i=new RegExp(`(.{${this.CHARS_PER_GROUP}})(?!$)`,"g");return r.replace(i,`$1${this.SEPARATOR}`)}adjustCursorPosition(n,r,i){const c=this.format(n),d=this.format(r);if(i>=c.length)return d.length;let u=0;for(let h=0;h<i&&h<c.length;h++)c[h]!==this.SEPARATOR&&u++;let m=0;for(let h=0;h<d.length;h++)if(d[h]!==this.SEPARATOR&&m++===u)return h;return d.length}}class NE{LOCALE=navigator.language;CURRENCY_SYMBOL=" €";parse(n){const r=n.replace(/[^\d.,]/g,""),i=r.lastIndexOf(","),c=r.lastIndexOf(".");let d;return i>c?d=r.replace(/\./g,"").replace(",","."):c>i?d=r.replace(/,/g,""):d=r.replace(/[.,]/g,""),parseFloat(d)||0}format(n){const r=typeof n=="string"?this.parse(n):n;return new Intl.NumberFormat(this.LOCALE,{minimumFractionDigits:2,maximumFractionDigits:2}).format(r)+this.CURRENCY_SYMBOL}adjustCursorPosition(n,r,i){const c=this.format(n),d=this.format(r);if(i>=c.length)return d.length;let u=0;for(let h=0;h<i&&h<c.length;h++)/\d/.test(c[h])&&u++;let m=0;for(let h=0;h<d.length;h++)if(/\d/.test(d[h])&&m++===u)return h;return d.length}}function RE(){const e=new $E,n=new NE,r=Ll({defaultValues:{iban:"DE89370400440532013000"}}),i=Ll({defaultValues:{currency:1e6}}),c=d=>{const u=d.target,m=e.parse(u.value),h=e.adjustCursorPosition(r.getValues("iban"),m,u.selectionStart||0);r.setValue("iban",m),requestAnimationFrame(()=>{requestAnimationFrame(()=>{u.setSelectionRange(h,h)})})};return a.jsxs(a.Fragment,{children:[a.jsxs(K,{children:[a.jsx("p",{children:"This example demonstrates two different formatting strategies for input fields:"}),a.jsxs("ul",{children:[a.jsxs("li",{children:[a.jsx("strong",{children:"Live Formatting (IBAN):"})," Formatting happens while typing. The value is immediately formatted and displayed with intelligent cursor positioning. Best for fixed-format values where users expect visual feedback during input."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"On-Blur Formatting (Currency):"})," Formatting happens when leaving the field (onBlur event). Allows free typing without interruption. Best for numeric values where users might input in various formats."]})]}),a.jsxs("p",{children:[a.jsx("strong",{children:"Key Concept:"})," The form model always stores the ",a.jsx("em",{children:"unformatted"})," value (raw IBAN string, numeric currency value), while the input field displays the ",a.jsx("em",{children:"formatted"})," value for better readability."]})]}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsxs("div",{className:"p-2",children:[a.jsx(ue,{_label:"Live Formatting - IBAN",_level:2}),a.jsx("p",{className:"text-sm mb-2",children:"Formatting occurs during input with intelligent cursor control"}),a.jsx(vn,{children:a.jsx("form",{onSubmit:r.handleSubmit(async()=>{}),children:a.jsx(Gb,{name:"iban",control:r.control,render:({field:d})=>a.jsx("div",{className:"block mt-2",children:a.jsx(Le,{id:"field-iban",_label:"IBAN",_value:e.format(d.value??""),_required:!0,_on:{onInput:c,onBlur:d.onBlur}})})})})})]}),a.jsxs("div",{className:"p-2",children:[a.jsx(ue,{_label:"Model (Unformatted Value)",_level:2}),a.jsx("pre",{className:"text-base",children:JSON.stringify(r.watch(),null,2)})]})]}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsxs("div",{className:"p-2",children:[a.jsx(ue,{_label:"On-Blur Formatting - Currency",_level:2}),a.jsx("p",{className:"text-sm mb-2",children:"Formatting occurs when leaving the field (onBlur) for uninterrupted input"}),a.jsx(vn,{children:a.jsx("form",{onSubmit:i.handleSubmit(async()=>{}),children:a.jsx(Gb,{name:"currency",control:i.control,render:({field:d})=>a.jsx("div",{className:"block mt-2",children:a.jsx(Le,{id:"field-currency",_label:"Currency",_value:n.format(d.value??0),_on:{onBlur:u=>{const m=u.target,h=n.parse(m.value);d.onChange(h),d.onBlur()}}})})})})})]}),a.jsxs("div",{className:"p-2",children:[a.jsx(ue,{_label:"Model (Numeric Value)",_level:2}),a.jsx("pre",{className:"text-base",children:JSON.stringify(i.watch(),null,2)})]})]})]})}const BE={"input-text":{basic:TE,"hide-msg":CE,"text-formatter":RE,"smart-button":OE,"expert-slot":AE,"select-range":EE}},DE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolKolibri renders the KoliBri logo. The sample show the logo with and without label and with a custom color."})}),a.jsx(ue,{class:"block",_level:3,_label:"Regular"}),a.jsx(Cs,{class:"block",style:{width:300}}),a.jsx(ue,{class:"block",_level:3,_label:"Without Label"}),a.jsx(Cs,{class:"block",style:{width:300},_labeled:!1}),a.jsx(ue,{class:"block",_level:3,_label:"Customized color"}),a.jsx(Cs,{class:"block",style:{width:300},_color:"#cc006e"})]}),ME={kolibri:{basic:DE}},IE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolLinkButton with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(We,{_href:"#/back-page",_label:"Link Button Text without area description"}),a.jsx(We,{_href:"#/back-page",_label:"Link Button Text",_ariaDescription:"Link Button Area Description"})]})]}),va={_href:"#/back-page"},UE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolLinkButton renders a link that looks like a button. The sample shows the different styling variants."})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(We,{_label:"Primary",_variant:"primary",...va}),a.jsx(We,{_label:"Secondary",_variant:"secondary",...va}),a.jsx(We,{_label:"Normal",_variant:"normal",...va}),a.jsx(We,{_label:"Danger",_variant:"danger",...va}),a.jsx(We,{_label:"Ghost",_variant:"ghost",...va}),a.jsx(We,{_label:"Access Key",_variant:"primary",_accessKey:"c",...va}),a.jsx(We,{_label:"Short Key",_variant:"primary",_shortKey:"s",...va})]})]}),FE={"link-button":{basic:UE,"aria-description":IE}},HE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolLink with access key. The access keys can be used to trigger the buttons using the keyboard."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(xe,{_href:"#/back-page",_label:"With S access key",_accessKey:"S"}),a.jsx(xe,{_href:"#/back-page",_label:"Very small s",_accessKey:"s"}),a.jsx(xe,{_href:"#/back-page",_label:"Access key does not appear in label",_accessKey:"s"}),a.jsx(xe,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_label:"access key without label",_accessKey:"s"})]})]}),VE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolLink with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(xe,{_href:"#/back-page",_label:"Link Text without aria description"}),a.jsx(xe,{_href:"#/back-page",_label:"Link Text",_ariaDescription:"Link Area Description"})]})]}),KE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["KolLink renders a link. This sample shows disabled links, links with hidden label, the boolean _inline property and links with different CSS"," ",a.jsx("code",{children:"display"}),"-properties."]})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(xe,{_href:"#/back-page",_inline:!1,_label:"Simple Link"}),a.jsx(xe,{_disabled:!0,_href:"#/back-page",_inline:!1,_label:"Simple Link (disabled)"}),a.jsx(xe,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_inline:!1,_label:"Icon Link"}),a.jsx(xe,{_disabled:!0,_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_inline:!1,_label:"Icon Link (disabled)"}),a.jsxs("p",{children:["In this paragraph, a link is inserted that contains no additional attributes. ",a.jsx(xe,{_href:"#/back-page",_label:"Simple Link"})," It is rendered by default as a ",a.jsx("strong",{children:"inline element"}),"."]}),a.jsxs("p",{children:["In this paragraph, a link is inserted that is rendered as an inline-block element."," ",a.jsx(xe,{class:"d-inline-block",_accessKey:"S",_href:"#/back-page",_label:"Simple Link"}),". This allows you to assign width, height, and other properties to it using CSS styles.",a.jsx("br",{}),a.jsx("br",{}),"After that, there is a link that is rendered as a block element. ",a.jsx(xe,{class:"d-block",_href:"#/back-page",_label:"Simple Link"}),", therefore, I span the entire width of the parent element, causing a line break."]})]})]}),qE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolLink with icons in different alignments and combinations."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(xe,{_icons:"codicon codicon-home",_label:"I am a link with an icon on the left",_href:"#/back-page"}),a.jsx(xe,{_icons:{right:"codicon codicon-home"},_label:"I am a link with an icon on the right",_href:"#/back-page"}),a.jsx(xe,{_icons:{top:"codicon codicon-home"},_label:"I am a link with an icon at the top",_href:"#/back-page"}),a.jsx(xe,{_icons:{bottom:"codicon codicon-home"},_label:"I am a link with icon below",_href:"#/back-page"}),a.jsx(xe,{_icons:{top:"codicon codicon-home",right:"codicon codicon-home",bottom:"codicon codicon-home",left:"codicon codicon-home"},_label:"I am a link with all icons",_href:"#/back-page"}),a.jsx(xe,{_icons:"codicon codicon-home",_href:"https://public-ui.github.io/",_label:"I am a external link with an icon on the left",_target:"_blank"}),a.jsx(xe,{_icons:{right:"codicon codicon-home"},_href:"https://public-ui.github.io/",_label:"I am a external linkwith an icon on the right",_target:"_blank"}),a.jsx(xe,{_icons:{top:"codicon codicon-home"},_href:"https://public-ui.github.io/",_label:"I am a external link with an icon at the top",_target:"_blank"}),a.jsx(xe,{_icons:{bottom:"codicon codicon-home"},_href:"https://public-ui.github.io/",_label:"I am a external link with icon below",_target:"_blank"}),a.jsx(xe,{_href:"https://public-ui.github.io/",_label:"I am a external link with all icons",_target:"_blank",_icons:{top:"codicon codicon-home",right:"codicon codicon-home",bottom:"codicon codicon-home",left:"codicon codicon-home"}})]})]}),ZE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolLink can be used with slot-content instead of a label as well. This sample demonstrates the slot content used to display an image."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(xe,{_href:"#/back-page",_label:"I am a link that is rendered as text"}),a.jsx(xe,{_href:"#/back-page",_label:"",children:a.jsx("img",{alt:"Presentation of the KoliBri theming",slot:"expert",src:"abgrenzung.jpg",width:"300"})})]})]}),PE=()=>{const e=ad(),n={onClick:r=>{r.preventDefault(),e("/back-page")}};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows how KolLink works with react-router. Primary click uses preventDefault() and navigate(...), while right click open in new tab still follows _href. Make sure _href and navigate(...) point to the same path."})}),a.jsx("div",{className:"grid gap-4",children:a.jsx(xe,{_href:"/back-page",_inline:!1,_label:"Go to overview",_on:n})})]})},GE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolButton with short key without functionality. The short key is purely visual. Its functionality needs to be developed separately."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(xe,{_href:"#/back-page",_label:"With S short key",_shortKey:"S"}),a.jsx(xe,{_href:"#/back-page",_label:"Very small s",_shortKey:"s"}),a.jsx(xe,{_href:"#/back-page",_label:"Short key does not appear in label",_shortKey:"s"}),a.jsx(xe,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_label:"short key without label",_shortKey:"s"})]})]}),YE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows KolLink with different ",a.jsx("code",{children:"_target"}),"-properties."]})}),a.jsx("div",{className:"text-base d-flex gap-4",children:a.jsxs("ul",{children:[a.jsx("li",{children:a.jsx(xe,{_href:"#/back-page",_label:"Link without target"})}),a.jsx("li",{children:a.jsx(xe,{_href:"#/back-page",_label:"Link with target (_self)",_target:"_self"})}),a.jsx("li",{children:a.jsx(xe,{_href:"#/back-page",_label:"Link with target (_blank)",_target:"_blank"})}),a.jsx("li",{children:a.jsx(xe,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link without target"})}),a.jsx("li",{children:a.jsx(xe,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link with target (_self)",_target:"_self"})}),a.jsx("li",{children:a.jsx(xe,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link with target (_blank)",_target:"_blank"})})]})})]}),JE={link:{basic:KE,icons:qE,image:ZE,target:YE,"aria-description":VE,"access-key":HE,"short-key":GE,"react-router":PE}},XE=()=>{const[e]=Gr(),n=e.get("show-modal"),r=S.useRef(null),i=S.useRef(null),c={onClick:()=>r.current?.openModal()},d={onClick:()=>i.current?.openModal()},u={onClick:()=>r.current?.closeModal()};return S.useEffect(()=>{n==="true"&&(r.current?.openModal(),i.current?.openModal())},[]),a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["KolModal supports the variants ",a.jsx("code",{children:"blank"})," and ",a.jsx("code",{children:"card"}),". The card variant includes a ",a.jsx("code",{children:"KolCard"})," container and a closer button."]})}),a.jsxs("div",{className:"grid gap-8",children:[a.jsxs("div",{children:[a.jsx(X,{_label:"Open blank modal",_on:c}),a.jsx(Xv,{ref:r,_label:"Blank modal",_variant:"blank",_width:"40%",children:a.jsxs("div",{className:"bg-white p-4 rounded shadow",children:[a.jsx("p",{className:"mt-0",children:"You must add styling and a close button yourself."}),a.jsx(X,{_label:"Open card modal",className:"mr",_on:d}),a.jsx(X,{_label:"Close",_on:u})]})})]}),a.jsxs("div",{children:[a.jsx(X,{_label:"Open card modal",_on:d}),a.jsx(Xv,{ref:i,_label:"Card modal",_variant:"card",_width:"30%",children:a.jsx("p",{className:"mt-0",children:"This variant wraps content inside a KolCard."})})]})]})]})},WE={modal:{basic:XE}},QE=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows KolNav with a link to the current page. This makes the component automatically assign ",a.jsx("code",{children:'aria-current="page"'}),"to it."]})}),a.jsx(Tl,{class:"block w-sm",_label:"Main navigation",_links:[{_label:"Homepage",_href:"#/back-page"},{_label:"Nav - aria-current (Current page)",_href:"#/nav/aria-current",_active:!0}]})]}),z0=[{_label:"Homepage",_icons:"codicon codicon-home",_on:{onClick:()=>console.log("Homepage clicked")}},{_label:"2 Navigation point",_href:"#/back-page",_on:{onClick:()=>console.log("Link clicked")}},{_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_label:"3.1 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.2 Navigation point",_href:"#/back-page",_target:"asdasd"},{_label:"3.3 Navigation point",_href:"#/back-page",_children:[{_label:"3.3.1 Navigation point",_href:"#/back-page"},{_label:"3.3.2 Navigation point",_href:"#/back-page"}]},{_label:"3.4 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1.1 Navigation point",_href:"#/back-page"},{_label:"3.4.1.2 Navigation point (active)",_href:"#/back-page"}]},{_label:"3.4.2 Navigation point",_href:"#/back-page"}]},{_label:"3.5 Navigation point",_href:"#/back-page"}]},{_label:"4 Navigation point with children and onClick",_children:[{_label:"4.1 Nested link",_href:"#/back-page"}],_on:{onClick:()=>console.log("4.1 Nested link clicked")}},{_label:"5 No own page, only category",_active:!0,_children:[{_label:"5.1 Nested link",_href:"#/back-page"}]},{_label:"6 No own page, with icon",_icons:"codicon codicon-squirrel",_children:[{_label:"6.1 Nested link",_href:"#/back-page"}]}],eL=[{_label:"Homepage",_icons:"codicon codicon-home",_on:{onClick:()=>console.log("Homepage clicked")}},{_label:"2 Navigation point",_href:"#/back-page",_on:{onClick:()=>console.log("Link clicked")}},{_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home"},{_label:"4 Navigation point with children and onClick",_on:{onClick:()=>console.log("4.1 Nested link clicked")}},{_label:"5 No own page, only category",_active:!0},{_label:"6 No own page, with icon",_icons:"codicon codicon-squirrel"}],oL=[{_label:"Homepage",_icons:"codicon codicon-home",_on:{onClick:()=>console.log("Homepage clicked")}},{_label:"2 Navigation point",_href:"#/back-page",_on:{onClick:()=>console.log("Link clicked")}},{_label:"3 Navigation point",_href:"#/back-page",_icons:"codicon codicon-home",_children:[{_label:"3.1 Navigation point",_icons:"codicon codicon-home",_href:"#/back-page"},{_label:"3.2 Navigation point",_target:"asdasd"},{_label:"3.3 Navigation point",_href:"#/back-page",_children:[{_label:"3.3.1 Navigation point",_href:"#/back-page",_active:!0},{_label:"3.3.2 Navigation point",_href:"#/back-page"}]},{_label:"3.4 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1 Navigation point",_href:"#/back-page",_children:[{_label:"3.4.1.1 Navigation point",_href:"#/back-page"},{_label:"3.4.1.2 Navigation point (active)",_href:"#/back-page"}]},{_label:"3.4.2 Navigation point",_href:"#/back-page"}]},{_label:"3.5 Navigation point",_href:"#/back-page"}]}],nL=()=>{const[e,n]=S.useState(!1);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolNav renders a navigation. In this sample, icons for the navigation elements can be shown or hidden using a checkbox and the navigation can be collapsed, showing only icons and no text labels."})}),a.jsxs("section",{className:"grid gap-8",children:[a.jsx("section",{children:a.jsx(lo,{_label:"Show icons when expanded",_checked:e,_on:{onChange:(r,i)=>{n(i)}}})}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Navigation without submenu"}),a.jsx(Tl,{class:"block w-fit",_label:"Navigation without submenu",_links:eL,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Navigation with submenu"}),a.jsx(Tl,{class:"block w-fit",_label:"Navigation with submenu",_links:z0,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Navigation with submenu active"}),a.jsx(Tl,{class:"block w-fit",_label:"Navigation with submenu active",_links:oL,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]})]})]})},tL={nav:{basic:nL,"aria-current":QE}},rL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolPagination renders a pagination for datasets. The sample shows the different states and variations of a pagination and the option to change the page size."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Ei,{_max:316514,_page:15475,_siblingCount:3,_label:"Test pagination 1",_on:{}}),a.jsx(Ei,{_max:14,_page:14,_siblingCount:1,_boundaryCount:2,_label:"Test pagination 2",_on:{}}),a.jsx(Ei,{_max:4,_page:1,_siblingCount:0,_boundaryCount:2,_label:"Test pagination 3",_on:{}}),a.jsx(Ei,{_max:4,_page:6,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:"Test pagination 4",_on:{}}),a.jsx(Ei,{_max:400,_page:6,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:"Test pagination 5",_on:{},_pageSizeOptions:[10,100]})]})]}),aL={pagination:{basic:rL}},lL=()=>{const{dummyClickEventHandler:e}=Uo(),n=re.useRef(null),r={onClick:e},i=[{_label:"Edit",_icons:"codicon codicon-edit",_on:r},{_label:"Delete",_icons:"codicon codicon-trash",_on:r},{_label:"Duplicate",_icons:"codicon codicon-copy",_on:r}];return S.useEffect(()=>{n.current&&(n.current.showPopover(),n.current.focus())},[]),a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["The PopoverButton component combines a button with a popover that appears when clicked. The popover can be positioned in different directions (top, right, bottom, left) using the ",a.jsx("code",{children:"_popoverAlign"})," prop."]})}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(hb,{_label:"Actions",_variant:"primary",_icons:{right:"codicon codicon-chevron-down"},ref:n,children:a.jsx(wa,{_label:"Action toolbar",_items:i,_orientation:"vertical"})}),a.jsx(hb,{_label:"Help",_icons:"codicon codicon-info",_popoverAlign:"right",_tooltipAlign:"bottom",_hideLabel:!0,children:a.jsxs("div",{className:"w-sm p-2 border border-solid border-gray",children:[a.jsx(ue,{_label:"Help Information",_level:0}),a.jsxs("p",{children:[a.jsx("u",{children:"Lorem ipsum dolor sit amet"}),", consectetur adipisicing elit. Aspernatur aut dolore dolores itaque praesentium reprehenderit sed voluptatum! Exercitationem ipsa magni maiores modi, placeat quas quos reprehenderit rerum sit veniam vitae."]})]})})]})]})},iL={"popover-button":{basic:lL}},cL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'KolProgress renders a progress indicator. The sample shows the variants "bar" and "cycle" with and without labels.'})}),a.jsxs("div",{className:"grid gap-4 grid-cols-1 sm:grid-cols-2",children:[a.jsxs("fieldset",{title:"Percentages",className:"flex flex-col gap-4",children:[a.jsx(tr,{_variant:"bar",_max:7,_value:0}),a.jsx(tr,{_variant:"bar",_max:7,_value:2}),a.jsx(tr,{_variant:"bar",_max:7,_value:7}),a.jsx(tr,{_variant:"cycle",_max:7,_value:6})]}),a.jsxs("fieldset",{title:"Custom units",className:"flex flex-col gap-4",children:[a.jsx(tr,{_label:"Distance",_variant:"bar",_max:65434,_value:7236,_unit:"m"}),a.jsx(tr,{_label:"12 Tasks to do",_variant:"bar",_max:12,_value:5,_unit:"tasks completed"}),a.jsx(tr,{_label:"Max 150 kg",_variant:"cycle",_max:150,_value:42,_unit:"kg"})]})]})]}),sL={progress:{basic:cL}},dL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'KolQuote renders a quote with optional citation. This sample shows a quote in the variant "inline" with a link for citation.'})}),a.jsx(Nx,{_href:"https://datatracker.ietf.org/doc/html/rfc1149",_quote:"Avian carriers can provide high delay.",_variant:"inline"})]}),uL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows a quote in the "block" variant.'})}),a.jsx(Nx,{_label:"RFC 1149",_href:"https://datatracker.ietf.org/doc/html/rfc1149",_quote:`Avian carriers can provide high delay, low throughput, and low altitude
|
|
25963
25963
|
service. The connection topology is limited to a single point-to-point path
|
|
25964
25964
|
for each carrier, used with standard carriers, but many carriers can be used
|
|
25965
25965
|
without significant interference with each other, outside early spring.
|
|
25966
25966
|
This is because of the 3D ether space available to the carriers, in contrast
|
|
25967
25967
|
to the 1D ether used by IEEE802.3. The carriers have an intrinsic collision
|
|
25968
|
-
avoidance system, which increases availability.`,_variant:"block"})]}),fL={quote:{basic:dL,block:uL}},Ui=[{label:"No salutation",value:""},{label:"Mrs.",value:"Mrs."},{label:"Mr.",value:"Mr."},{label:"Divers",value:"Divers"}],bL=Ui.map((e,n)=>n===0?{label:"Select salutation",value:"",disabled:!0}:e),mL=nt.reduce((e,n)=>{const r=n.label.charAt(0).toUpperCase();return e[r]||(e[r]={label:r,options:[]}),e[r].options.push({label:n.label,value:n.label}),e},{}),P1=Object.values(mL),G1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Qo,{...n,ref:r,_accessKey:"a",_options:Ui,_label:"Salutation",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(Qo,{...n,_options:Ui,_label:"Disabled",_disabled:!0}),a.jsx(Qo,{...n,_options:bL,_label:"Salutation with error",_msg:{_type:"error",_description:Fe},_touched:!0}),a.jsx(Qo,{...n,_options:nt,_label:"Multiple choice",_multiple:!0}),a.jsx(Qo,{...n,_options:nt,_label:"Multiple choice with error",_multiple:!0,_required:!0,_msg:{_type:"error",_description:Fe},_hint:An,_touched:!0}),a.jsx(Qo,{...n,_options:Ui,_label:"With access key",_accessKey:"c"}),a.jsx(Qo,{...n,_options:Ui,_label:"With short key",_shortKey:"s"}),a.jsx(Qo,{...n,_options:P1,_label:"With grouped by first letter",_value:"Albanien"}),a.jsx(Qo,{...n,_options:P1,_label:"With grouped by first letter (multiple)",_multiple:!0,_value:["Albanien"]})]})}),hL=S.forwardRef(function(n,r){return a.jsxs($n,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(G1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(G1,{ref:r,...n,_hideLabel:!0})]})]})}),pL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolSelect renders a select field. The sample shows KolSelect in a form context with all variations and states."})}),a.jsx(Cn,{RefComponent:hL,showButtons:!1})]}),Y1={select:{basic:pL}},kL=[{value:"1",label:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam"},{value:"2",label:"Lorem ipsum dolor"},{value:"3",label:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."},{value:"4",label:"Lorem ipsum dolor"},{value:"5",label:"Lorem ipsum dolor"},{value:"6",label:"Lorem ipsum dolor"},{value:"7",label:"Lorem ipsum dolor"},{value:"8",label:"Lorem ipsum dolor"},{value:"2",label:"Lorem ipsum dolor"}],J1=e=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(pn,{...e,_hint:An,_label:"Label",_options:nt,_value:"de",_on:{onBlur:console.log,onInput:console.log,onChange:console.log,onClick:console.log,onFocus:console.log}}),a.jsx(pn,{...e,_label:"Disabled",_options:nt,_value:"de",_disabled:!0}),a.jsx(pn,{...e,_options:nt,_msg:{_type:"error",_description:Fe},_rows:3,_touched:!0,_label:"Label",_placeholder:"Placeholder",_required:!0}),a.jsx(pn,{...e,_label:"With access key",_options:nt,_value:"de",_accessKey:"c"}),a.jsx(pn,{...e,_label:"With short key",_options:nt,_value:"de",_shortKey:"s"}),a.jsx(pn,{...e,_label:"With long labels",_options:kL,_placeholder:"Placeholder"}),a.jsx(pn,{...e,_label:"With hidden clear button",_options:nt,_value:"de",_hideClearButton:!0}),a.jsx(pn,{...e,_hint:An,_label:"With disabled options",_options:[{value:"bw",label:"Baden-Württemberg"},{value:"by",label:"Bayern",disabled:!0},{value:"be",label:"Berlin"},{value:"bb",label:"Brandenburg"},{value:"hb",label:"Bremen"},{value:"hh",label:"Hamburg"},{value:"he",label:"Hessen"},{value:"mv",label:"Mecklenburg-Vorpommern",disabled:!0},{value:"ni",label:"Niedersachsen",disabled:!0},{value:"nw",label:"Nordrhein-Westfalen"},{value:"rp",label:"Rheinland-Pfalz",disabled:!0},{value:"sl",label:"Saarland"},{value:"sn",label:"Sachsen"},{value:"st",label:"Sachsen-Anhalt",disabled:!0},{value:"sh",label:"Schleswig-Holstein",disabled:!0},{value:"th",label:"Thüringen"}],_value:"be",_on:{onBlur:console.log,onInput:console.log,onChange:console.log,onClick:console.log,onFocus:console.log}})]}),vL=e=>a.jsxs($n,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(J1,{...e})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(J1,{...e,_hideLabel:!0})]})]}),gL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"SingleSelect provides a select field for a single value, supported by a search field."})}),a.jsx(Cn,{RefComponent:vL,showButtons:!1})]}),_L={"single-select":{basic:gL}},xL=()=>{const e=S.useRef(null);return S.useEffect(()=>{e.current?.focus()},[]),a.jsxs("div",{className:"grid gap-4",children:[a.jsxs(K,{children:[a.jsx("p",{children:"KolSkipNav renders a list of navigation links that are visually hidden by default and only visible on focus."}),a.jsx("p",{children:"For testing purposes, click into the example and press the tab-key in order to focus the first link."})]}),a.jsx(n4,{ref:e,_label:"Hidden navigation",_links:[{_label:"To the top",_href:"#/back-page"},{_label:"To the form",_href:"#/back-page"},{_label:"To the end",_href:"#/back-page"}]})]})},yL={"skip-nav":{basic:xL}},wL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'KolSpin renders a loading indicator. This sample shows the default variant "dot".'})}),a.jsx(od,{_show:!0})]}),zL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows a custom loading animation. Using the expert slot, it is possible to insert custom animations. Custom animations are not necessarily barrier-free."})}),a.jsx(od,{_show:!0,_variant:"none",children:a.jsx("span",{slot:"expert",className:"loader"})})]}),SL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows the KolSpin variant "cycle".'})}),a.jsx(od,{_show:!0,_variant:"cycle"})]}),jL=()=>{const[e,n]=S.useState(!0);return S.useEffect(()=>{const r=setInterval(()=>n(i=>!i),3e3);return()=>clearInterval(r)},[]),a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolSpin with a label."})}),a.jsx(od,{_show:e,_label:e?"Loading data...":"Data loaded."})]})},TL={spin:{basic:wL,cycle:SL,custom:zL,label:jL}},AL=()=>{const{buttonWithTextClickEventHandler:e}=Io(),n={onClick:e},r=[{_label:"Save",_icons:"codicon codicon-save",_on:n},{_label:"Move",_icons:"codicon codicon-move",_on:n},{_label:"Delete",_icons:"codicon codicon-trash",_on:n}];return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["The ",a.jsx("code",{children:"SplitButton"})," component combines a primary action button with a context menu. Clicking the main button triggers the",a.jsx("strong",{children:" Edit"})," action. The context menu opens a vertical list of additional actions:",a.jsx("strong",{children:" Save"}),", ",a.jsx("strong",{children:"Move"}),", and ",a.jsx("strong",{children:"Delete"}),"."]})}),a.jsx("div",{className:"flex flex-col gap-4",children:a.jsx(wl,{_label:"Edit",_on:n,children:a.jsx(ya,{_label:"Action toolbar",_items:r,_orientation:"vertical"})})})]})},CL=()=>{const e=S.useRef(null),n=()=>{e.current?.closePopup()};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"SplitButton renders a button with an additional context-menu, that can be opened by clicking the arrow icon."})}),a.jsx("div",{className:"flex gap-4",children:a.jsx(wl,{ref:e,_label:"Only the arrow opens",children:a.jsxs("div",{style:{width:300,padding:16,border:"1px solid #ccc"},onClick:r=>r.stopPropagation(),children:[a.jsx("p",{children:"SplitButton renders a button with an additional context-menu, that can be opened by clicking the arrow icon."}),a.jsxs("div",{style:{gap:16,display:"flex",flexDirection:"column"},children:[a.jsx(Le,{_label:"User"}),a.jsx(Le,{_label:"Role"}),a.jsx(X,{_label:"Close",_on:{onClick:n}})]})]})})})]})},EL={"split-button":{basic:AL,"with-context":CL}},ws=[{left:"Left Example",center:"Center Example",right:"Right Example"}],Di=()=>0,LL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful with columns headers and data in different text alignments."})}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsx(ue,{_label:"Simple table",_level:3}),a.jsx(ho,{_label:"Table for demonstration purposes with different text align properties",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left"},{label:"center",key:"center",textAlign:"center"},{label:"right",key:"right",textAlign:"right"}]]},_data:ws,className:"block",style:{maxWidth:"600px"}}),a.jsx(ue,{_label:"Table with sortable columns",_level:3,className:"block mt-6"}),a.jsx(ho,{_label:"Table for demonstration purposes with sortable columns",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left",compareFn:Di},{label:"center",key:"center",textAlign:"center",compareFn:Di},{label:"right",key:"right",textAlign:"right",compareFn:Di}]]},_data:ws,className:"block",style:{maxWidth:"600px"}}),a.jsx(ue,{_label:"Table some sortable columns",_level:3,className:"block mt-6"}),a.jsx(ho,{_label:"Table for demonstration purposes with some but not all columns sortable",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left",compareFn:Di},{label:"center",key:"center",textAlign:"center",compareFn:Di},{label:"right",key:"right",textAlign:"right"}]]},_data:ws,className:"block",style:{maxWidth:"600px"}}),a.jsx(ue,{_label:"Table with vertical heading",_level:3,className:"block mt-6"}),a.jsx(ho,{_label:"Table for demonstration purposes with vertical heading",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left"},{label:"center",key:"center",textAlign:"center"},{label:"right",key:"right",textAlign:"right"}]],vertical:[[{label:"Vertical"}]]},_data:ws,className:"block",style:{maxWidth:"600px"}})]})]}),OL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful using vertical and horizontal headers, applying colspan and rowspan."})}),a.jsx("section",{className:"w-full flex flex-col",children:a.jsx(ho,{_label:"Business hours",_minWidth:"auto",_data:[{asp:"Center",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Tiergarten",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Maxvorstadt",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"}],_headers:{vertical:[[{label:"Berlin",rowSpan:2},{label:"München"}]],horizontal:[[{label:"District",rowSpan:2,key:"asp"},{label:"Workdays",colSpan:5},{label:"Weekend",colSpan:2}],[{label:"Monday",key:"monday"},{label:"Tuesday",key:"tuesday"},{label:"Wednesday",key:"wednesday"},{label:"Thursday",key:"thursday"},{label:"Friday",key:"friday"},{label:"Saturday",key:"saturday"},{label:"Sunday",key:"sunday"}]]}})})]}),sb=22,$L=[{city:"Reykjavík",temperature:6},{city:"Berlin",temperature:21},{city:"Palma de Mallorca",temperature:29},{city:"Cairo",temperature:35},{city:"Helsinki",temperature:14}],NL={horizontal:[[{label:"City",key:"city"},{label:"Temperature (°C)",key:"temperature",textAlign:"right",compareFn:(e,n,r="ASC")=>{const i=e.temperature,c=n.temperature,d=Math.abs(i-sb),u=Math.abs(c-sb);return d!==u?r==="DESC"?u-d:d-u:r==="DESC"?c-i:i-c},render:(e,n,r)=>{const i=Math.abs(r.temperature-sb);return`${r.temperature} °C (Δ ${i} °C)`}}]]},RL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample demonstrates how ",a.jsx("code",{children:"compareFn"})," receives the current ",a.jsx("code",{children:"sortDirection"}),". Ascending sorts show cities that are closest to 22 °C first, descending sorts highlight the most extreme temperatures."]})}),a.jsx("section",{className:"w-full",children:a.jsx(ho,{_minWidth:"100%",_label:"Direction aware compare function",_data:$L,_headers:NL,className:"block"})})]}),ud=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),sr=[{order:0,date:new Date("1981-05-26T21:33:43.612Z")},{order:1,date:new Date("1971-04-25T19:44:17.014Z")},{order:2,date:new Date("1986-07-10T11:39:29.539Z")},{order:3,date:new Date("1976-02-02T10:00:36.346Z")},{order:4,date:new Date("1998-07-07T12:50:36.016Z")},{order:5,date:new Date("1994-09-05T05:10:44.078Z")},{order:6,date:new Date("1986-05-23T13:05:01.874Z")},{order:7,date:new Date("1975-06-29T21:51:29.359Z")},{order:8,date:new Date("1974-05-15T23:47:02.499Z")},{order:9,date:new Date("1990-05-27T10:13:19.641Z")},{order:10,date:new Date("1993-10-20T03:54:08.739Z")},{order:11,date:new Date("2000-02-25T11:55:43.705Z")},{order:12,date:new Date("1988-08-27T09:59:12.251Z")},{order:13,date:new Date("1980-10-24T10:41:24.897Z")},{order:14,date:new Date("1995-01-25T12:31:27.983Z")},{order:15,date:new Date("1995-04-15T02:00:39.048Z")},{order:16,date:new Date("1994-03-15T19:13:04.564Z")},{order:17,date:new Date("1999-03-02T16:53:04.418Z")},{order:18,date:new Date("1982-08-23T18:37:38.014Z")},{order:19,date:new Date("1995-06-19T12:39:56.321Z")},{order:20,date:new Date("1994-09-23T15:03:35.746Z")},{order:21,date:new Date("1990-04-15T23:38:02.147Z")},{order:22,date:new Date("1983-08-01T10:36:44.006Z")},{order:23,date:new Date("1986-06-28T21:27:04.588Z")},{order:24,date:new Date("1986-08-14T19:34:40.904Z")},{order:25,date:new Date("1998-07-14T15:52:29.010Z")},{order:26,date:new Date("1985-02-15T18:56:32.344Z")},{order:27,date:new Date("1989-09-06T10:49:30.896Z")},{order:28,date:new Date("1994-09-05T14:21:37.211Z")},{order:29,date:new Date("1995-12-15T23:12:14.411Z")},{order:30,date:new Date("1986-08-14T19:34:40.904Z")},{order:31,date:new Date("1985-02-15T18:56:32.344Z")},{order:32,date:new Date("1989-09-06T10:49:30.896Z")},{order:33,date:new Date("1994-09-05T14:21:37.211Z")},{order:34,date:new Date("1995-12-15T23:12:14.411Z")},{order:35,date:new Date("1986-08-14T19:34:40.904Z")},{order:36,date:new Date("1985-02-15T18:56:32.344Z")},{order:37,date:new Date("1989-09-06T10:49:30.896Z")},{order:38,date:new Date("1994-09-05T14:21:37.211Z")},{order:39,date:new Date("1995-12-15T23:12:14.411Z")},{order:40,date:new Date("1986-08-14T19:34:40.904Z")},{order:41,date:new Date("1985-02-15T18:56:32.344Z")},{order:42,date:new Date("1989-09-06T10:49:30.896Z")},{order:43,date:new Date("1994-09-05T14:21:37.211Z")},{order:44,date:new Date("1995-12-15T23:12:14.411Z")},{order:45,date:new Date("1986-08-14T19:34:40.904Z")},{order:46,date:new Date("1985-02-15T18:56:32.344Z")},{order:47,date:new Date("1989-09-06T10:49:30.896Z")},{order:48,date:new Date("1994-09-05T14:21:37.211Z")},{order:49,date:new Date("1995-12-15T23:12:14.411Z")},{order:50,date:new Date("1986-08-14T19:34:40.904Z")},{order:51,date:new Date("1985-02-15T18:56:32.344Z")},{order:52,date:new Date("1989-09-06T10:49:30.896Z")},{order:53,date:new Date("1994-09-05T14:21:37.211Z")},{order:54,date:new Date("1995-12-15T23:12:14.411Z")},{order:55,date:new Date("1986-08-14T19:34:40.904Z")},{order:56,date:new Date("1985-02-15T18:56:32.344Z")},{order:57,date:new Date("1989-09-06T10:49:30.896Z")},{order:58,date:new Date("1994-09-05T14:21:37.211Z")},{order:59,date:new Date("1995-12-15T23:12:14.411Z")},{order:60,date:new Date("1986-08-14T19:34:40.904Z")},{order:61,date:new Date("1985-02-15T18:56:32.344Z")},{order:62,date:new Date("1989-09-06T10:49:30.896Z")},{order:63,date:new Date("1994-09-05T14:21:37.211Z")},{order:64,date:new Date("1995-12-15T23:12:14.411Z")},{order:65,date:new Date("1986-08-14T19:34:40.904Z")},{order:66,date:new Date("1985-02-15T18:56:32.344Z")},{order:67,date:new Date("1989-09-06T10:49:30.896Z")},{order:68,date:new Date("1994-09-05T14:21:37.211Z")},{order:69,date:new Date("1995-12-15T23:12:14.411Z")},{order:70,date:new Date("1986-08-14T19:34:40.904Z")},{order:71,date:new Date("1985-02-15T18:56:32.344Z")},{order:72,date:new Date("1989-09-06T10:49:30.896Z")},{order:73,date:new Date("1994-09-05T14:21:37.211Z")},{order:74,date:new Date("1995-12-15T23:12:14.411Z")},{order:75,date:new Date("1986-08-14T19:34:40.904Z")},{order:76,date:new Date("1985-02-15T18:56:32.344Z")},{order:77,date:new Date("1989-09-06T10:49:30.896Z")},{order:78,date:new Date("1994-09-05T14:21:37.211Z")},{order:79,date:new Date("1995-12-15T23:12:14.411Z")},{order:80,date:new Date("1986-08-14T19:34:40.904Z")},{order:81,date:new Date("1985-02-15T18:56:32.344Z")},{order:82,date:new Date("1989-09-06T10:49:30.896Z")},{order:83,date:new Date("1994-09-05T14:21:37.211Z")},{order:84,date:new Date("1995-12-15T23:12:14.411Z")},{order:85,date:new Date("1986-08-14T19:34:40.904Z")},{order:86,date:new Date("1985-02-15T18:56:32.344Z")},{order:87,date:new Date("1989-09-06T10:49:30.896Z")},{order:88,date:new Date("1994-09-05T14:21:37.211Z")},{order:89,date:new Date("1995-12-15T23:12:14.411Z")},{order:90,date:new Date("1986-08-14T19:34:40.904Z")},{order:91,date:new Date("1985-02-15T18:56:32.344Z")},{order:92,date:new Date("1989-09-06T10:49:30.896Z")},{order:93,date:new Date("1994-09-05T14:21:37.211Z")},{order:94,date:new Date("1995-12-15T23:12:14.411Z")},{order:95,date:new Date("1986-08-14T19:34:40.904Z")},{order:96,date:new Date("1985-02-15T18:56:32.344Z")},{order:97,date:new Date("1989-09-06T10:49:30.896Z")},{order:98,date:new Date("1994-09-05T14:21:37.211Z")},{order:99,date:new Date("1995-12-15T23:12:14.411Z")}],X1=[{small:"Small Example",large:"Larger Example"}],db={horizontal:[[{label:"Large Column",key:"large",textAlign:"left",width:"300px"},{label:"Small Column",key:"small",textAlign:"left",width:"200px"},{label:"Larger Column",key:"large",textAlign:"left",width:"400px"},{label:"Larger Column",key:"large",textAlign:"left",width:"400px"}]]},BL=()=>0,DL=()=>{const[e,n]=S.useState(!0);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful with and without horizontal scrollbars. When a scrollbar is present, it should be possible to focus the table container and to scroll it using arrow keys."})}),a.jsxs("section",{className:"w-full flex flex-col gap-4",children:[a.jsxs("div",{className:"w-[400px] flex flex-col gap-4",children:[a.jsx(ho,{_label:"Table for demonstration purposes with horizontal scrollbar.",_minWidth:e?"600px":"300px",_headers:db,_data:X1,className:"block"}),a.jsx(ho,{_label:"Table for demonstration horizontal scrolling with pagination.",_minWidth:e?"600px":"300px",_headers:{horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",compareFn:BL,render:(r,i,c)=>ud.format(c.date)}]]},_data:sr,_pagination:!0}),a.jsx(ho,{_label:"Table for demonstration purposes with horizontal scrollbar with auto minWidth.",_minWidth:e?"600px":"300px",_headers:db,_data:[],className:"block"})]}),a.jsx(ao,{_checked:e,_label:"Toggle width restriction",_variant:"switch",_on:{onChange:(r,i)=>{n(!!i)}}}),a.jsx(ue,{_label:"Same table without scrollbar",_level:2,className:"block mt-4"}),a.jsx("p",{className:"mt-0",children:a.jsx("i",{children:"Scrollbar appears on very small viewport sizes"})}),a.jsx(ho,{_label:"Table for demonstration purposes without horizontal scrollbar",_minWidth:"600px",_headers:db,_data:X1,className:"block",_pagination:!0})]})]})};function ML({_on:e,...n}){const{dummyClickEventHandler:r}=Io(),i={onClick:r};return a.jsx(X,{...n,_on:i})}const Mi=e=>{const n=e.charAt(0).toUpperCase()+e.slice(1);return{label:n,key:e,textAlign:"left",render:(r,i)=>{const c={_label:n,_variant:e,_icons:{right:"codicon codicon-squirrel"}};zn(Zr(r)).render(i.label==="button"?a.jsx(ML,{...c}):a.jsx(We,{_href:"#/back-page",...c}))}}},IL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows a KolTableStateless with different interactive child elements. It can be used to assure themes show these child elements correctly."})}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsx(Al,{_label:"Button styles",_minWidth:"auto",_headerCells:{horizontal:[[Mi("primary"),Mi("secondary"),Mi("normal"),Mi("danger"),Mi("ghost")]],vertical:[[{label:"Button"},{label:"Link-Button"}]]},_data:[{primary:"button",secondary:"button",normal:"button",danger:"button",ghost:"button"},{primary:"link-button",secondary:"link-button",normal:"link-button",danger:"link-button",ghost:"link-button"}],className:"block"}),a.jsx(Al,{_label:"Link styles",_minWidth:"auto",_headerCells:{horizontal:[[{key:"regular",label:"Regular",textAlign:"left",render:(e,n)=>{const r={_label:n.label,_icons:{right:"codicon codicon-squirrel"}};zn(Zr(e)).render(n.label==="button-link"?a.jsx(Ge,{...r}):a.jsx(xe,{_href:"#/back-page",...r}))}}]],vertical:[[{label:"Link"},{label:"Button-Link"}]]},_data:[{regular:"link"},{regular:"button-link"}],className:"block mt"})]})]}),UL=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),Js=[{label:"order",key:"order",textAlign:"center",compareFn:(e,n)=>e.order<n.order?-1:n.order<e.order?1:0,sortDirection:"ASC"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>UL.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}],FL={horizontal:[Js]},HL={vertical:[Js]},VL=()=>{const[e,n]=S.useState(HL),[r,i]=S.useState(FL);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows KolTableStateful with multi-sort functionality, allowing sorting by both "order" and "date" columns.'})}),a.jsxs("section",{className:"w-full grid gap-4",children:[a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Vertical"}),a.jsx(Ge,{_label:"Reset Table",_on:{onClick:()=>n({vertical:[[...Js]]})}}),a.jsx(ho,{_label:"Sort Table with Order and Date",_minWidth:"auto",_data:sr.slice(0,10),_headers:e,className:"block",_allowMultiSort:!0})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Horizontal"}),a.jsx(Ge,{_label:"Reset Table",_on:{onClick:()=>i({horizontal:[[...Js]]})}}),a.jsx(ho,{_label:"Sort Table with Order and Date",_minWidth:"auto",_data:sr,_headers:r,className:"block",_allowMultiSort:!0})]})]})]})},KL=[{id:"1001",name:"John",age:30},{id:"1002",name:"Jane",age:25}],qL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This example demonstrates a column that cannot be hidden in the settings."})}),a.jsx(ho,{_label:"Table with a non-hidable column",_minWidth:"auto",_hasSettingsMenu:!0,_headers:{horizontal:[[{key:"id",label:"ID",hidable:!1},{key:"name",label:"Name"},{key:"age",label:"Age"}]]},_data:KL,className:"block",style:{maxWidth:"600px"}})]}),ub={horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",render:(e,n,r)=>ud.format(r.date)}]]},fb={_page:2},ZL=()=>a.jsxs("div",{className:"w-full grid gap-14",children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful with different pagination positions."})}),a.jsxs("section",{className:"w-full flex flex-col gap-14",children:[a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Table with pagination at the bottom."}),a.jsx(ho,{_label:"Sample table with pagination at the bottom",_minWidth:"auto",_data:sr,_headers:ub,_pagination:fb,_paginationPosition:"bottom"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Table with pagination at the top."}),a.jsx(ho,{_label:"Sample table with pagination at the top",_minWidth:"auto",_data:sr,_headers:ub,_pagination:fb,_paginationPosition:"top"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Table with pagination at both top and bottom."}),a.jsx(ho,{_label:"Sample table with pagination at both top and bottom",_minWidth:"auto",_data:sr,_headers:ub,_pagination:fb,_paginationPosition:"both"})]})]})]}),PL=[{columnA:"Column A",columnB:"Column B",columnC:"Column C"}],GL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This example shows the table with predefined settings."})}),a.jsx(ho,{_label:"Table for demonstration purposes with predefined settings",_minWidth:"auto",_hasSettingsMenu:!0,_headers:{horizontal:[[{label:"column A",key:"columnA"},{label:"column B",key:"columnB"},{label:"column C",key:"columnC"}]]},_tableSettings:{columns:[{key:"columnC",visible:!0,label:"Column C",width:45},{key:"columnB",visible:!0,label:"Column B",width:20},{key:"columnA",visible:!1,label:"Column A"}]},_data:PL,"_min-width":"500px",className:"block",style:{maxWidth:"600px"}})]}),YL=[{order:0,shipped:!1,date:new Date("1981-05-26T21:33:43.612Z")},{order:1,shipped:!0,date:new Date("1971-04-25T19:44:17.014Z")},{order:2,shipped:!1,date:new Date("1986-07-10T11:39:29.539Z")}];function JL({label:e,icons:n}){const{dummyClickEventHandler:r}=Io(),i={onClick:r};return a.jsx(X,{_label:e,_icons:n,_on:i})}const XL={horizontal:[[{label:"#",key:"order",textAlign:"center",width:"10em",render:(e,n)=>`Index: ${n.label}`},{label:"Status",key:"shipped",textAlign:"center",width:"10em",render:(e,n)=>{n.label?e.textContent="Order has been dispatched 🚚":e.textContent="Order pending 📦"}},{label:"Date (string)",key:"date",width:"20em",textAlign:"center",render:(e,n)=>{e.innerHTML=`<strong>${ud.format(n.label)}</strong>`},compareFn:(e,n)=>e.date.getTime()-n.date.getTime()},{label:"Action (react)",width:"20em",render:e=>{zn(Zr(e)).render(a.jsxs("div",{style:{display:"grid",gridAutoFlow:"column",alignItems:"end",gap:"1rem",maxWidth:"400px"},children:[a.jsx(Le,{_label:"Input"}),a.jsx(JL,{label:"Save",icons:{left:"codicon codicon-save"}})]}))}}]]},WL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful using React render functions for the cell contents."})}),a.jsx(ho,{_label:"Sort by date column",_minWidth:"auto",_data:YL,_headers:XL,className:"w-full"})]}),QL=[{id:"U-001",name:"Andrea Schmidt",team:"Design",email:"andrea@example.org",status:"Active"},{id:"U-002",name:"Boris Klein",team:"Engineering",email:"boris@example.org",status:"Active"},{id:"U-003",name:"Chiara Russo",team:"Support",email:"chiara@example.org",status:"On leave"}],eO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This example demonstrates how the table settings respect column metadata. Some columns can be hidden, reordered, or resized, while others stay locked based on their ",a.jsx("code",{children:"hidable"}),", ",a.jsx("code",{children:"sortable"}),", and ",a.jsx("code",{children:"resizable"})," flags."]})}),a.jsx(ho,{_label:"Table with column option restrictions",_minWidth:"auto",_hasSettingsMenu:!0,_headers:{horizontal:[[{key:"id",label:"ID",hidable:!1,sortable:!1},{key:"name",label:"Name"},{key:"team",label:"Team",sortable:!1},{key:"email",label:"E-Mail",resizable:!1},{key:"status",label:"Status",hidable:!1,resizable:!1}]]},_tableSettings:{columns:[{hidable:!1,key:"id",label:"ID",sortable:!1,visible:!0,width:15},{key:"name",label:"Name",visible:!0,width:30},{key:"team",label:"Team",sortable:!1,visible:!0,width:20},{key:"email",label:"E-Mail",resizable:!1,visible:!0,width:25},{hidable:!1,key:"status",label:"Status",resizable:!1,visible:!0,width:10}]},_data:QL,className:"block",style:{maxWidth:"720px"}})]}),S0=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),oO={horizontal:[[{label:"order",key:"order",textAlign:"center"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>S0.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}]]},nO={vertical:[[{label:"order",key:"order",textAlign:"center"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>S0.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}]]},tO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows KolTableStateful with sortable columns. The sort-order can be changed by clicking the "date" header column.'})}),a.jsxs("section",{className:"w-full grid gap-4",children:[a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Vertical headers"}),a.jsx(ho,{_label:"Sort a date column",_minWidth:"auto",_data:sr.slice(0,10),_headers:nO,className:"block"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Horizontal headers"}),a.jsx(ho,{_label:"Sort a date column",_minWidth:"auto",_data:sr,_headers:oO,className:"block"})]})]})]}),rO=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"},{id:"1003",name:"This row is always unchecked",internalIdentifier:"AAA1003"},{id:"1004",name:"This row is always checked",internalIdentifier:"AAA1004"}];function aO({label:e}){const{dummyClickEventHandler:n}=Io(),r={onClick:n};return a.jsx(X,{_label:e,_on:r})}const lO=()=>{const[e,n]=S.useState(),r={label:h=>`Selection for ${h.name}`,selectedKeys:e?e.map(h=>h.internalIdentifier):["AAA1004"],disabledKeys:["AAA1003","AAA1004"],keyPropertyName:"internalIdentifier"},i=S.useRef(null),c=({detail:h})=>{console.log("Selection change via event",h)},d=(h,p)=>{console.log("Selection change via callback",p)},u=async()=>{const h=await i.current?.getSelection();n(h)};S.useEffect(()=>(i.current?.addEventListener(Rt.selectionChange,c),()=>{i.current?.removeEventListener(Rt.selectionChange,c)}),[i]);const m=(h,p)=>{zn(Zr(h)).render(a.jsx(aO,{label:`Click ${p.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful with checkboxes for selection enabled."})}),a.jsxs("section",{className:"w-full",children:[a.jsx(ho,{_label:"Table with selection checkboxes",_minWidth:"auto",_headers:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:m}]]},_data:rO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i}),a.jsxs("div",{className:"grid grid-cols-3 items-end gap-4 mt-4",children:[a.jsx(X,{_label:"getSelection()",_on:{onClick:()=>{u()}}}),a.jsx("pre",{className:"text-base",children:JSON.stringify(e,null,2)})]})]})]})},iO=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"}];function cO({label:e}){const{dummyClickEventHandler:n}=Io(),r={onClick:n};return a.jsx(X,{_label:e,_on:r})}const sO=()=>{const[e,n]=S.useState(),r={label:h=>`Selection for ${h.name}`,multiple:!1,selectedKeys:e?[e.internalIdentifier]:[],keyPropertyName:"internalIdentifier"},i=S.useRef(null),c=({detail:h})=>{console.log("Selection change via event",h)},d=(h,p)=>{console.log("Selection change via callback",p)},u=async()=>{const h=await i.current?.getSelection();n(h)};S.useEffect(()=>(i.current?.addEventListener(Rt.selectionChange,c),()=>{i.current?.removeEventListener(Rt.selectionChange,c)}),[i]);const m=(h,p)=>{zn(Zr(h)).render(a.jsx(cO,{label:`Click ${p.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful with radio buttons for selection enabled."})}),a.jsxs("section",{className:"w-full",children:[a.jsx(ho,{_label:"Table with selection radio",_minWidth:"auto",_headers:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:m}]]},_data:iO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i}),a.jsxs("div",{className:"grid grid-cols-3 items-end gap-4 mt-4",children:[a.jsx(X,{_label:"getSelection()",_on:{onClick:()=>{u()}}}),a.jsx("pre",{className:"text-base",children:JSON.stringify(e,null,2)})]})]})]})},dO=[{left:"Left Example",center:"Center Example",right:"Right Example"},{},{},{}],uO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows how KolTableStateless can be used directly, with the KolTableStateful wrapper."})}),a.jsx("section",{className:"w-full",children:a.jsx(Al,{_label:"Table for demonstration purposes",_minWidth:"auto",_headerCells:{horizontal:[[{key:"left",label:"left",textAlign:"left",sortDirection:"ASC"},{key:"center",label:"center",textAlign:"center",sortDirection:"DESC"},{key:"right",label:"right",textAlign:"right",sortDirection:"NOS"},{key:"nosort",label:"no sort option"}]],vertical:[[{key:"vertical-left",label:"left",textAlign:"left",sortDirection:"ASC"},{key:"vertical-center",label:"center",textAlign:"center",sortDirection:"DESC"},{key:"vertical-right",label:"right",textAlign:"right",sortDirection:"NOS"},{key:"vertical-nosort",label:"no sort option"}]]},_data:dO,className:"block",style:{maxWidth:"600px"},_on:{onSort:(e,n)=>{console.log(n)}}})})]}),fO=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"},{id:"1003",name:"This row is always unchecked",internalIdentifier:"AAA1003"},{id:"1004",name:"This row is always checked",internalIdentifier:"AAA1004"}];function bO({label:e}){const{dummyClickEventHandler:n}=Io(),r={onClick:n};return a.jsx(X,{_label:e,_on:r})}const mO=()=>{const[e,n]=S.useState(["AAA1002","AAA1004"]),r={label:m=>`Selection for ${m.name}`,selectedKeys:e,keyPropertyName:"internalIdentifier",disabledKeys:["AAA1003","AAA1004"]},i=S.useRef(null),c=({detail:m})=>{console.log("Selection change via event",m)},d=(m,h)=>{console.log("Selection change via callback",h),n(Array.isArray(h)?h:[h])};S.useEffect(()=>(i.current?.addEventListener(Rt.selectionChange,c),()=>{i.current?.removeEventListener(Rt.selectionChange,c)}),[i]);const u=(m,h)=>{zn(Zr(m)).render(a.jsx(bO,{label:`Click ${h.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateless with checkboxes for selection enabled."})}),a.jsx("section",{className:"w-full",children:a.jsx(Al,{_label:"Table with selection checkboxes",_minWidth:"auto",_headerCells:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:u}]]},_data:fO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i})})]})},hO=[{id:"U1001",name:"Alice Johnson",role:"Admin",email:"alice@example.org",active:"Yes"},{id:"U1002",name:"Bob Smith",role:"Editor",email:"bob@example.org",active:"No"},{id:"U1003",name:"Carol Lee",role:"Viewer",email:"carol@example.org",active:"Yes"},{id:"U1004",name:"David Kim",role:"Editor",email:"david@example.org",active:"Yes"}],pO=()=>a.jsxs(a.Fragment,{children:[a.jsxs(K,{children:[a.jsxs("p",{children:["This sample shows ",a.jsx("code",{children:"KolTableStateless"})," with the settings menu enabled via",a.jsx("code",{children:"_hasSettingsMenu"}),". Each column demonstrates a different combination of sorting and resizing options."]}),a.jsxs("ul",{children:[a.jsxs("li",{children:[a.jsx("strong",{children:"ID"})," keeps a fixed width with ",a.jsx("code",{children:"resizable: false"})," while still allowing sorting."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"Name"})," represents the default behavior with both sorting and resizing enabled."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"Role"})," disables sorting but keeps ",a.jsx("code",{children:"resizable: true"})," so users can widen the column if necessary."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"E-Mail"})," allows sorting but locks its width with ",a.jsx("code",{children:"resizable: false"})," to keep the layout stable."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"Active"})," is neither sortable nor resizable to emphasise the status indicator."]})]})]}),a.jsx(Al,{_label:"Users (stateless with settings menu)",_minWidth:"auto",className:"w-full",_hasSettingsMenu:!0,_headerCells:{horizontal:[[{key:"id",label:"ID",textAlign:"center",sortDirection:"NOS",sortable:!0,resizable:!1},{key:"name",label:"Name",textAlign:"center",sortDirection:"NOS",sortable:!0,resizable:!0},{key:"role",label:"Role",textAlign:"center",sortDirection:"NOS",sortable:!1,resizable:!0},{key:"email",label:"E-Mail",textAlign:"center",sortDirection:"NOS",sortable:!0,resizable:!1},{key:"active",label:"Active",textAlign:"center",sortDirection:"NOS",sortable:!1,resizable:!1}]]},_data:hO,_on:{onSort:(e,n)=>console.log("sort",n),onSelectionChange:(e,n)=>console.log("selection",n)}})]}),kO=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"},{id:"1003",name:"Foo Disabled",internalIdentifier:"AAA1003"}];function vO({label:e}){const{dummyClickEventHandler:n}=Io(),r={onClick:n};return a.jsx(X,{_label:e,_on:r})}const gO=()=>{const[e,n]=S.useState(["1002"]),r={label:m=>`Selection for ${m.name}`,multiple:!1,selectedKeys:e,disabledKeys:["AAA1003"],keyPropertyName:"internalIdentifier"},i=S.useRef(null),c=({detail:m})=>{console.log("Selection change via event",m)},d=(m,h)=>{console.log("Selection change via callback",h),n(Array.isArray(h)?h:[h])};S.useEffect(()=>(i.current?.addEventListener(Rt.selectionChange,c),()=>{i.current?.removeEventListener(Rt.selectionChange,c)}),[i]);const u=(m,h)=>{zn(Zr(m)).render(a.jsx(vO,{label:`Click ${h.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateless with checkboxes for selection enabled."})}),a.jsx("section",{className:"w-full",children:a.jsx(Al,{_label:"Table with selection checkboxes",_minWidth:"auto",_headerCells:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:u}]]},_data:kO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i})})]})},W1=[{common_name:"African elephant",scientific_name:"Loxodonta africana",conservation_status:"Vulnerable",habitat:"Savannas and forests",diet:"Herbivore",geographic_range:"Sub-Saharan Africa"},{common_name:"American bison",scientific_name:"Bison bison",conservation_status:"Near Threatened",habitat:"Grasslands and plains",diet:"Herbivore",geographic_range:"North America"},{common_name:"Arctic fox",scientific_name:"Vulpes lagopus",conservation_status:"Least Concern",habitat:"Tundra",diet:"Omnivore",geographic_range:"Arctic Circle"},{common_name:"Atlantic puffin",scientific_name:"Fratercula arctica",conservation_status:"Vulnerable",habitat:"Coastal cliffs and open ocean",diet:"Carnivore",geographic_range:"North Atlantic Ocean"},{common_name:"Bengal tiger",scientific_name:"Panthera tigris tigris",conservation_status:"Endangered",habitat:"Tropical forests and grasslands",diet:"Carnivore",geographic_range:"Indian subcontinent"},{common_name:"Black rhinoceros",scientific_name:"Diceros bicornis",conservation_status:"Critically Endangered",habitat:"Savannas and shrublands",diet:"Herbivore",geographic_range:"Eastern and Southern Africa"},{common_name:"Blue whale",scientific_name:"Balaenoptera musculus",conservation_status:"Endangered",habitat:"Open ocean",diet:"Carnivore",geographic_range:"Global oceans"},{common_name:"California condor",scientific_name:"Gymnogyps californianus",conservation_status:"Critically Endangered",habitat:"Cliffs and scrublands",diet:"Scavenger",geographic_range:"Western United States"},{common_name:"Cheetah",scientific_name:"Acinonyx jubatus",conservation_status:"Vulnerable",habitat:"Grasslands and savannas",diet:"Carnivore",geographic_range:"Africa and Iran"},{common_name:"Emperor penguin",scientific_name:"Aptenodytes forsteri",conservation_status:"Near Threatened",habitat:"Sea ice and open ocean",diet:"Carnivore",geographic_range:"Antarctica"},{common_name:"Galápagos tortoise",scientific_name:"Chelonoidis niger",conservation_status:"Vulnerable",habitat:"Volcanic highlands",diet:"Herbivore",geographic_range:"Galápagos Islands"},{common_name:"Giant anteater",scientific_name:"Myrmecophaga tridactyla",conservation_status:"Vulnerable",habitat:"Grasslands and forests",diet:"Insectivore",geographic_range:"Central and South America"},{common_name:"Giant panda",scientific_name:"Ailuropoda melanoleuca",conservation_status:"Vulnerable",habitat:"Temperate bamboo forests",diet:"Herbivore",geographic_range:"Central China"},{common_name:"Golden eagle",scientific_name:"Aquila chrysaetos",conservation_status:"Least Concern",habitat:"Mountains and open plains",diet:"Carnivore",geographic_range:"Northern Hemisphere"},{common_name:"Gray wolf",scientific_name:"Canis lupus",conservation_status:"Least Concern",habitat:"Forests and tundra",diet:"Carnivore",geographic_range:"Northern Hemisphere"},{common_name:"Great white shark",scientific_name:"Carcharodon carcharias",conservation_status:"Vulnerable",habitat:"Coastal and offshore waters",diet:"Carnivore",geographic_range:"Global temperate seas"},{common_name:"Green sea turtle",scientific_name:"Chelonia mydas",conservation_status:"Endangered",habitat:"Coastal waters and beaches",diet:"Herbivore",geographic_range:"Tropical and subtropical oceans"},{common_name:"Harpy eagle",scientific_name:"Harpia harpyja",conservation_status:"Near Threatened",habitat:"Tropical rainforests",diet:"Carnivore",geographic_range:"Central and South America"},{common_name:"Humpback whale",scientific_name:"Megaptera novaeangliae",conservation_status:"Least Concern",habitat:"Open ocean",diet:"Carnivore",geographic_range:"Global oceans"},{common_name:"Jaguar",scientific_name:"Panthera onca",conservation_status:"Near Threatened",habitat:"Tropical rainforests and wetlands",diet:"Carnivore",geographic_range:"Central and South America"},{common_name:"Koala",scientific_name:"Phascolarctos cinereus",conservation_status:"Vulnerable",habitat:"Eucalyptus woodlands",diet:"Herbivore",geographic_range:"Eastern Australia"},{common_name:"Monarch butterfly",scientific_name:"Danaus plexippus",conservation_status:"Endangered",habitat:"Prairies and meadows",diet:"Herbivore",geographic_range:"North America"},{common_name:"Mountain gorilla",scientific_name:"Gorilla beringei beringei",conservation_status:"Endangered",habitat:"Montane forests",diet:"Herbivore",geographic_range:"Central Africa"},{common_name:"Narwhal",scientific_name:"Monodon monoceros",conservation_status:"Near Threatened",habitat:"Arctic waters",diet:"Carnivore",geographic_range:"Arctic Circle"},{common_name:"Okapi",scientific_name:"Okapia johnstoni",conservation_status:"Endangered",habitat:"Rainforests",diet:"Herbivore",geographic_range:"Democratic Republic of the Congo"},{common_name:"Polar bear",scientific_name:"Ursus maritimus",conservation_status:"Vulnerable",habitat:"Sea ice and tundra",diet:"Carnivore",geographic_range:"Arctic Circle"},{common_name:"Red kangaroo",scientific_name:"Osphranter rufus",conservation_status:"Least Concern",habitat:"Deserts and grasslands",diet:"Herbivore",geographic_range:"Australia"},{common_name:"Red panda",scientific_name:"Ailurus fulgens",conservation_status:"Endangered",habitat:"Temperate forests",diet:"Omnivore",geographic_range:"Eastern Himalayas"},{common_name:"Snow leopard",scientific_name:"Panthera uncia",conservation_status:"Vulnerable",habitat:"Mountain ranges",diet:"Carnivore",geographic_range:"Central and South Asia"},{common_name:"Southern cassowary",scientific_name:"Casuarius casuarius",conservation_status:"Least Concern",habitat:"Tropical rainforests",diet:"Omnivore",geographic_range:"New Guinea and northeastern Australia"},{common_name:"Tasmanian devil",scientific_name:"Sarcophilus harrisii",conservation_status:"Endangered",habitat:"Forests and coastal scrub",diet:"Carnivore",geographic_range:"Tasmania"},{common_name:"Yellow-eyed penguin",scientific_name:"Megadyptes antipodes",conservation_status:"Endangered",habitat:"Coastal forests and beaches",diet:"Carnivore",geographic_range:"New Zealand"}],_O=Array.from({length:200},(e,n)=>{const r=W1[n%W1.length];return{id:n+1,...r}}),xO={horizontal:[[{label:"ID",key:"id",textAlign:"right"},{label:"Common name",key:"common_name",textAlign:"left"},{label:"Scientific name",key:"scientific_name",textAlign:"left"},{label:"Conservation status",key:"conservation_status",textAlign:"left"},{label:"Habitat",key:"habitat",textAlign:"left"},{label:"Diet",key:"diet",textAlign:"left"},{label:"Geographic range",key:"geographic_range",textAlign:"left"}]]},yO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful with horizontal and vertical scrollbars. It should be focusable and scrollable with the keyboard. The table headline should be sticky at the top of the table. The data now lists animal species with conservation-focused details."})}),a.jsx(ue,{_level:2,_label:"Sticky headers"}),a.jsx(ho,{_label:"Animal species overview",_minWidth:"1200px",_data:_O,_headers:xO,className:"block"})]}),wO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful with footer data."})}),a.jsx(ho,{className:"w-full",_label:"Business hours",_minWidth:"auto",_headers:{horizontal:[[{label:"District",key:"asp"},{label:"Monday",key:"monday"},{label:"Tuesday",key:"tuesday"},{label:"Wednesday",key:"wednesday"},{label:"Thursday",key:"thursday"},{label:"Friday",key:"friday"}]]},_data:[{asp:"Center",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Tiergarten",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Maxvorstadt",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"}],_dataFoot:[{tuesday:"Lunch break from 11 to 14 o'clock"}]})]}),zO={horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",render:(e,n,r)=>ud.format(r.date)}]]},SO={_page:2},jO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows how KolTableStateful can be navigated using a pagination."})}),a.jsx("div",{className:"w-full",children:a.jsx(ho,{_label:"Table description",_minWidth:"auto",_data:sr,_headers:zO,_pagination:SO})})]}),TO={table:{"column-alignment":LL,"complex-headers":OL,"horizontal-scrollbar":DL,"interactive-child-elements":IL,"multi-sort":VL,"non-hidable-columns":qL,"pagination-position":ZL,"predefined-settings":GL,"render-cell":WL,"settings-column-options":eO,"sort-data":tO,"direction-aware-sort":RL,"stateful-with-selection":lO,"stateless-with-settings-menu":pO,"stateful-with-single-selection":sO,stateless:uO,"stateless-with-selection":mO,"stateless-with-single-selection":gO,"sticky-header":yO,"with-footer":wO,"with-pagination":jO}},AO=[{_icons:"codicon codicon-pie-chart",_label:"First tab",_on:{onSelect:e=>{console.log("First tab selected",e)}}},{_icons:"codicon codicon-calendar",_label:"Second Tab"},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab"},{_icons:"codicon codicon-telescope",_label:"Last tab"}],CO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows KolTabs with the property ",a.jsx("code",{children:"_align"})," set to ",a.jsx("code",{children:"left"}),", ",a.jsx("code",{children:"right"}),", ",a.jsx("code",{children:"top"})," and ",a.jsx("code",{children:"bottom"}),"."]})}),a.jsx("div",{className:"grid gap-8",children:["left","right","top","bottom"].map(e=>{const n=`Tabs with ${e} align`;return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:n}),a.jsxs(dr,{_tabs:AO,_align:e,_label:n,children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]},e)})})]}),j0=[{_icons:"codicon codicon-pie-chart",_label:"First tab",_on:{onSelect:e=>{console.log("First tab selected",e)}}},{_icons:"codicon codicon-calendar",_label:"Second Tab"},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab"},{_icons:"codicon codicon-telescope",_label:"Last tab"}],EO=j0.map(e=>({...e,_icons:void 0})),LO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolTabs renders tab captions and their associated content. This sample shows tab captions with and without icons and disabled tabs."})}),a.jsxs(dr,{_tabs:EO,_label:"Regular tabs",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]}),a.jsxs(dr,{_tabs:j0,className:"mt-4",_label:"Tabs with icons",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]}),Q1=[{_icons:"codicon codicon-pie-chart",_label:"First tab",_on:{onSelect:e=>{console.log("First tab selected",e)}}},{_icons:"codicon codicon-calendar",_label:"Second Tab"},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab"},{_icons:"codicon codicon-telescope",_label:"Last tab"}],OO=()=>a.jsxs(a.Fragment,{children:[a.jsxs(K,{children:[a.jsxs("p",{children:["This sample shows KolTabs with the property ",a.jsx("code",{children:"_behavior"})," set to ",a.jsx("code",{children:"select-manual"})," and ",a.jsx("code",{children:"select-automatic"}),"."]}),a.jsx("p",{children:"This property allows controlling when an arrow key is pressed whether the tab change takes place right away or only focuses the tab caption."})]}),a.jsxs("div",{className:"grid gap-8",children:[a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:'Tabs with "select manual" behavior'}),a.jsxs(dr,{_tabs:Q1,_behavior:"select-manual",_label:"Tabs with select manual behavior",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:'Tabs with "select automatic" behavior'}),a.jsxs(dr,{_tabs:Q1,className:"mt-4",_behavior:"select-automatic",_label:"Tabs with select automatic behavior",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]})]})]}),$O=()=>{const[e,n]=S.useState([{_label:"First tab"},{_label:"Second Tab"}]),r=()=>{n([...e,{_label:`Tab #${e.length+1}`}])};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows KolTabs with a "create tab" button.'})}),a.jsxs(dr,{_tabs:e,className:"mt-4",_label:"Tabs with create button",_hasCreateButton:!0,_on:{onCreate:r},children:[e.map((i,c)=>a.jsxs("div",{slot:`tab-${c}`,children:["Contents of ",i._label]},`tab-${c}`)),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"})]})]})},NO=[{_icons:"codicon codicon-pie-chart",_label:"First Tab",_hideLabel:!0},{_icons:"codicon codicon-calendar",_label:"Second Tab",_hideLabel:!0},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab",_hideLabel:!0},{_icons:"codicon codicon-telescope",_label:"Last Tab",_hideLabel:!0}],RO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTabs with hidden labels."})}),a.jsxs(dr,{_label:"Tabs with icons",_tabs:NO,children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]}),BO={tabs:{basic:LO,"create-button":$O,"icons-only":RO,behavior:OO,align:CO}},DO=`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
|
|
25968
|
+
avoidance system, which increases availability.`,_variant:"block"})]}),fL={quote:{basic:dL,block:uL}},Hi=[{label:"No salutation",value:""},{label:"Mrs.",value:"Mrs."},{label:"Mr.",value:"Mr."},{label:"Divers",value:"Divers"}],bL=Hi.map((e,n)=>n===0?{label:"Select salutation",value:"",disabled:!0}:e),mL=at.reduce((e,n)=>{const r=n.label.charAt(0).toUpperCase();return e[r]||(e[r]={label:r,options:[]}),e[r].options.push({label:n.label,value:n.label}),e},{}),P1=Object.values(mL),G1=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(tn,{...n,ref:r,_accessKey:"a",_options:Hi,_label:"Salutation",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(tn,{...n,_options:Hi,_label:"Disabled",_disabled:!0}),a.jsx(tn,{...n,_options:bL,_label:"Salutation with error",_msg:{_type:"error",_description:Fe},_touched:!0}),a.jsx(tn,{...n,_options:at,_label:"Multiple choice",_multiple:!0}),a.jsx(tn,{...n,_options:at,_label:"Multiple choice with error",_multiple:!0,_required:!0,_msg:{_type:"error",_description:Fe},_hint:Cn,_touched:!0}),a.jsx(tn,{...n,_options:Hi,_label:"With access key",_accessKey:"c"}),a.jsx(tn,{...n,_options:Hi,_label:"With short key",_shortKey:"s"}),a.jsx(tn,{...n,_options:P1,_label:"With grouped by first letter",_value:"Albanien"}),a.jsx(tn,{...n,_options:P1,_label:"With grouped by first letter (multiple)",_multiple:!0,_value:["Albanien"]})]})}),hL=S.forwardRef(function(n,r){return a.jsxs(Rn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(G1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(G1,{ref:r,...n,_hideLabel:!0})]})]})}),pL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolSelect renders a select field. The sample shows KolSelect in a form context with all variations and states."})}),a.jsx(En,{RefComponent:hL,showButtons:!1})]}),Y1={select:{basic:pL}},kL=[{value:"1",label:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam"},{value:"2",label:"Lorem ipsum dolor"},{value:"3",label:"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."},{value:"4",label:"Lorem ipsum dolor"},{value:"5",label:"Lorem ipsum dolor"},{value:"6",label:"Lorem ipsum dolor"},{value:"7",label:"Lorem ipsum dolor"},{value:"8",label:"Lorem ipsum dolor"},{value:"2",label:"Lorem ipsum dolor"}],J1=e=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(kn,{...e,_hint:Cn,_label:"Label",_options:at,_value:"de",_on:{onBlur:console.log,onInput:console.log,onChange:console.log,onClick:console.log,onFocus:console.log}}),a.jsx(kn,{...e,_label:"Disabled",_options:at,_value:"de",_disabled:!0}),a.jsx(kn,{...e,_options:at,_msg:{_type:"error",_description:Fe},_rows:3,_touched:!0,_label:"Label",_placeholder:"Placeholder",_required:!0}),a.jsx(kn,{...e,_label:"With access key",_options:at,_value:"de",_accessKey:"c"}),a.jsx(kn,{...e,_label:"With short key",_options:at,_value:"de",_shortKey:"s"}),a.jsx(kn,{...e,_label:"With long labels",_options:kL,_placeholder:"Placeholder"}),a.jsx(kn,{...e,_label:"With hidden clear button",_options:at,_value:"de",_hideClearButton:!0}),a.jsx(kn,{...e,_hint:Cn,_label:"With disabled options",_options:[{value:"bw",label:"Baden-Württemberg"},{value:"by",label:"Bayern",disabled:!0},{value:"be",label:"Berlin"},{value:"bb",label:"Brandenburg"},{value:"hb",label:"Bremen"},{value:"hh",label:"Hamburg"},{value:"he",label:"Hessen"},{value:"mv",label:"Mecklenburg-Vorpommern",disabled:!0},{value:"ni",label:"Niedersachsen",disabled:!0},{value:"nw",label:"Nordrhein-Westfalen"},{value:"rp",label:"Rheinland-Pfalz",disabled:!0},{value:"sl",label:"Saarland"},{value:"sn",label:"Sachsen"},{value:"st",label:"Sachsen-Anhalt",disabled:!0},{value:"sh",label:"Schleswig-Holstein",disabled:!0},{value:"th",label:"Thüringen"}],_value:"be",_on:{onBlur:console.log,onInput:console.log,onChange:console.log,onClick:console.log,onFocus:console.log}})]}),vL=e=>a.jsxs(Rn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(J1,{...e})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(J1,{...e,_hideLabel:!0})]})]}),gL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"SingleSelect provides a select field for a single value, supported by a search field."})}),a.jsx(En,{RefComponent:vL,showButtons:!1})]}),_L={"single-select":{basic:gL}},xL=()=>{const e=S.useRef(null);return S.useEffect(()=>{e.current?.focus()},[]),a.jsxs("div",{className:"grid gap-4",children:[a.jsxs(K,{children:[a.jsx("p",{children:"KolSkipNav renders a list of navigation links that are visually hidden by default and only visible on focus."}),a.jsx("p",{children:"For testing purposes, click into the example and press the tab-key in order to focus the first link."})]}),a.jsx(n4,{ref:e,_label:"Hidden navigation",_links:[{_label:"To the top",_href:"#/back-page"},{_label:"To the form",_href:"#/back-page"},{_label:"To the end",_href:"#/back-page"}]})]})},yL={"skip-nav":{basic:xL}},wL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'KolSpin renders a loading indicator. This sample shows the default variant "dot".'})}),a.jsx(od,{_show:!0})]}),zL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows a custom loading animation. Using the expert slot, it is possible to insert custom animations. Custom animations are not necessarily barrier-free."})}),a.jsx(od,{_show:!0,_variant:"none",children:a.jsx("span",{slot:"expert",className:"loader"})})]}),SL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows the KolSpin variant "cycle".'})}),a.jsx(od,{_show:!0,_variant:"cycle"})]}),jL=()=>{const[e,n]=S.useState(!0);return S.useEffect(()=>{const r=setInterval(()=>n(i=>!i),3e3);return()=>clearInterval(r)},[]),a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolSpin with a label."})}),a.jsx(od,{_show:e,_label:e?"Loading data...":"Data loaded."})]})},TL={spin:{basic:wL,cycle:SL,custom:zL,label:jL}},AL=()=>{const{buttonWithTextClickEventHandler:e}=Uo(),n={onClick:e},r=[{_label:"Save",_icons:"codicon codicon-save",_on:n},{_label:"Move",_icons:"codicon codicon-move",_on:n},{_label:"Delete",_icons:"codicon codicon-trash",_on:n}];return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["The ",a.jsx("code",{children:"SplitButton"})," component combines a primary action button with a context menu. Clicking the main button triggers the",a.jsx("strong",{children:" Edit"})," action. The context menu opens a vertical list of additional actions:",a.jsx("strong",{children:" Save"}),", ",a.jsx("strong",{children:"Move"}),", and ",a.jsx("strong",{children:"Delete"}),"."]})}),a.jsx("div",{className:"flex flex-col gap-4",children:a.jsx(zl,{_label:"Edit",_on:n,children:a.jsx(wa,{_label:"Action toolbar",_items:r,_orientation:"vertical"})})})]})},CL=()=>{const e=S.useRef(null),n=()=>{e.current?.closePopup()};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"SplitButton renders a button with an additional context-menu, that can be opened by clicking the arrow icon."})}),a.jsx("div",{className:"flex gap-4",children:a.jsx(zl,{ref:e,_label:"Only the arrow opens",children:a.jsxs("div",{style:{width:300,padding:16,border:"1px solid #ccc"},onClick:r=>r.stopPropagation(),children:[a.jsx("p",{children:"SplitButton renders a button with an additional context-menu, that can be opened by clicking the arrow icon."}),a.jsxs("div",{style:{gap:16,display:"flex",flexDirection:"column"},children:[a.jsx(Le,{_label:"User"}),a.jsx(Le,{_label:"Role"}),a.jsx(X,{_label:"Close",_on:{onClick:n}})]})]})})})]})},EL={"split-button":{basic:AL,"with-context":CL}},ws=[{left:"Left Example",center:"Center Example",right:"Right Example"}],Ii=()=>0,LL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful with columns headers and data in different text alignments."})}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsx(ue,{_label:"Simple table",_level:3}),a.jsx(ho,{_label:"Table for demonstration purposes with different text align properties",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left"},{label:"center",key:"center",textAlign:"center"},{label:"right",key:"right",textAlign:"right"}]]},_data:ws,className:"block",style:{maxWidth:"600px"}}),a.jsx(ue,{_label:"Table with sortable columns",_level:3,className:"block mt-6"}),a.jsx(ho,{_label:"Table for demonstration purposes with sortable columns",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left",compareFn:Ii},{label:"center",key:"center",textAlign:"center",compareFn:Ii},{label:"right",key:"right",textAlign:"right",compareFn:Ii}]]},_data:ws,className:"block",style:{maxWidth:"600px"}}),a.jsx(ue,{_label:"Table some sortable columns",_level:3,className:"block mt-6"}),a.jsx(ho,{_label:"Table for demonstration purposes with some but not all columns sortable",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left",compareFn:Ii},{label:"center",key:"center",textAlign:"center",compareFn:Ii},{label:"right",key:"right",textAlign:"right"}]]},_data:ws,className:"block",style:{maxWidth:"600px"}}),a.jsx(ue,{_label:"Table with vertical heading",_level:3,className:"block mt-6"}),a.jsx(ho,{_label:"Table for demonstration purposes with vertical heading",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left"},{label:"center",key:"center",textAlign:"center"},{label:"right",key:"right",textAlign:"right"}]],vertical:[[{label:"Vertical"}]]},_data:ws,className:"block",style:{maxWidth:"600px"}})]})]}),OL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful using vertical and horizontal headers, applying colspan and rowspan."})}),a.jsx("section",{className:"w-full flex flex-col",children:a.jsx(ho,{_label:"Business hours",_minWidth:"auto",_data:[{asp:"Center",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Tiergarten",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Maxvorstadt",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"}],_headers:{vertical:[[{label:"Berlin",rowSpan:2},{label:"München"}]],horizontal:[[{label:"District",rowSpan:2,key:"asp"},{label:"Workdays",colSpan:5},{label:"Weekend",colSpan:2}],[{label:"Monday",key:"monday"},{label:"Tuesday",key:"tuesday"},{label:"Wednesday",key:"wednesday"},{label:"Thursday",key:"thursday"},{label:"Friday",key:"friday"},{label:"Saturday",key:"saturday"},{label:"Sunday",key:"sunday"}]]}})})]}),sb=22,$L=[{city:"Reykjavík",temperature:6},{city:"Berlin",temperature:21},{city:"Palma de Mallorca",temperature:29},{city:"Cairo",temperature:35},{city:"Helsinki",temperature:14}],NL={horizontal:[[{label:"City",key:"city"},{label:"Temperature (°C)",key:"temperature",textAlign:"right",compareFn:(e,n,r="ASC")=>{const i=e.temperature,c=n.temperature,d=Math.abs(i-sb),u=Math.abs(c-sb);return d!==u?r==="DESC"?u-d:d-u:r==="DESC"?c-i:i-c},render:(e,n,r)=>{const i=Math.abs(r.temperature-sb);return`${r.temperature} °C (Δ ${i} °C)`}}]]},RL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample demonstrates how ",a.jsx("code",{children:"compareFn"})," receives the current ",a.jsx("code",{children:"sortDirection"}),". Ascending sorts show cities that are closest to 22 °C first, descending sorts highlight the most extreme temperatures."]})}),a.jsx("section",{className:"w-full",children:a.jsx(ho,{_minWidth:"100%",_label:"Direction aware compare function",_data:$L,_headers:NL,className:"block"})})]}),ud=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),ir=[{order:0,date:new Date("1981-05-26T21:33:43.612Z")},{order:1,date:new Date("1971-04-25T19:44:17.014Z")},{order:2,date:new Date("1986-07-10T11:39:29.539Z")},{order:3,date:new Date("1976-02-02T10:00:36.346Z")},{order:4,date:new Date("1998-07-07T12:50:36.016Z")},{order:5,date:new Date("1994-09-05T05:10:44.078Z")},{order:6,date:new Date("1986-05-23T13:05:01.874Z")},{order:7,date:new Date("1975-06-29T21:51:29.359Z")},{order:8,date:new Date("1974-05-15T23:47:02.499Z")},{order:9,date:new Date("1990-05-27T10:13:19.641Z")},{order:10,date:new Date("1993-10-20T03:54:08.739Z")},{order:11,date:new Date("2000-02-25T11:55:43.705Z")},{order:12,date:new Date("1988-08-27T09:59:12.251Z")},{order:13,date:new Date("1980-10-24T10:41:24.897Z")},{order:14,date:new Date("1995-01-25T12:31:27.983Z")},{order:15,date:new Date("1995-04-15T02:00:39.048Z")},{order:16,date:new Date("1994-03-15T19:13:04.564Z")},{order:17,date:new Date("1999-03-02T16:53:04.418Z")},{order:18,date:new Date("1982-08-23T18:37:38.014Z")},{order:19,date:new Date("1995-06-19T12:39:56.321Z")},{order:20,date:new Date("1994-09-23T15:03:35.746Z")},{order:21,date:new Date("1990-04-15T23:38:02.147Z")},{order:22,date:new Date("1983-08-01T10:36:44.006Z")},{order:23,date:new Date("1986-06-28T21:27:04.588Z")},{order:24,date:new Date("1986-08-14T19:34:40.904Z")},{order:25,date:new Date("1998-07-14T15:52:29.010Z")},{order:26,date:new Date("1985-02-15T18:56:32.344Z")},{order:27,date:new Date("1989-09-06T10:49:30.896Z")},{order:28,date:new Date("1994-09-05T14:21:37.211Z")},{order:29,date:new Date("1995-12-15T23:12:14.411Z")},{order:30,date:new Date("1986-08-14T19:34:40.904Z")},{order:31,date:new Date("1985-02-15T18:56:32.344Z")},{order:32,date:new Date("1989-09-06T10:49:30.896Z")},{order:33,date:new Date("1994-09-05T14:21:37.211Z")},{order:34,date:new Date("1995-12-15T23:12:14.411Z")},{order:35,date:new Date("1986-08-14T19:34:40.904Z")},{order:36,date:new Date("1985-02-15T18:56:32.344Z")},{order:37,date:new Date("1989-09-06T10:49:30.896Z")},{order:38,date:new Date("1994-09-05T14:21:37.211Z")},{order:39,date:new Date("1995-12-15T23:12:14.411Z")},{order:40,date:new Date("1986-08-14T19:34:40.904Z")},{order:41,date:new Date("1985-02-15T18:56:32.344Z")},{order:42,date:new Date("1989-09-06T10:49:30.896Z")},{order:43,date:new Date("1994-09-05T14:21:37.211Z")},{order:44,date:new Date("1995-12-15T23:12:14.411Z")},{order:45,date:new Date("1986-08-14T19:34:40.904Z")},{order:46,date:new Date("1985-02-15T18:56:32.344Z")},{order:47,date:new Date("1989-09-06T10:49:30.896Z")},{order:48,date:new Date("1994-09-05T14:21:37.211Z")},{order:49,date:new Date("1995-12-15T23:12:14.411Z")},{order:50,date:new Date("1986-08-14T19:34:40.904Z")},{order:51,date:new Date("1985-02-15T18:56:32.344Z")},{order:52,date:new Date("1989-09-06T10:49:30.896Z")},{order:53,date:new Date("1994-09-05T14:21:37.211Z")},{order:54,date:new Date("1995-12-15T23:12:14.411Z")},{order:55,date:new Date("1986-08-14T19:34:40.904Z")},{order:56,date:new Date("1985-02-15T18:56:32.344Z")},{order:57,date:new Date("1989-09-06T10:49:30.896Z")},{order:58,date:new Date("1994-09-05T14:21:37.211Z")},{order:59,date:new Date("1995-12-15T23:12:14.411Z")},{order:60,date:new Date("1986-08-14T19:34:40.904Z")},{order:61,date:new Date("1985-02-15T18:56:32.344Z")},{order:62,date:new Date("1989-09-06T10:49:30.896Z")},{order:63,date:new Date("1994-09-05T14:21:37.211Z")},{order:64,date:new Date("1995-12-15T23:12:14.411Z")},{order:65,date:new Date("1986-08-14T19:34:40.904Z")},{order:66,date:new Date("1985-02-15T18:56:32.344Z")},{order:67,date:new Date("1989-09-06T10:49:30.896Z")},{order:68,date:new Date("1994-09-05T14:21:37.211Z")},{order:69,date:new Date("1995-12-15T23:12:14.411Z")},{order:70,date:new Date("1986-08-14T19:34:40.904Z")},{order:71,date:new Date("1985-02-15T18:56:32.344Z")},{order:72,date:new Date("1989-09-06T10:49:30.896Z")},{order:73,date:new Date("1994-09-05T14:21:37.211Z")},{order:74,date:new Date("1995-12-15T23:12:14.411Z")},{order:75,date:new Date("1986-08-14T19:34:40.904Z")},{order:76,date:new Date("1985-02-15T18:56:32.344Z")},{order:77,date:new Date("1989-09-06T10:49:30.896Z")},{order:78,date:new Date("1994-09-05T14:21:37.211Z")},{order:79,date:new Date("1995-12-15T23:12:14.411Z")},{order:80,date:new Date("1986-08-14T19:34:40.904Z")},{order:81,date:new Date("1985-02-15T18:56:32.344Z")},{order:82,date:new Date("1989-09-06T10:49:30.896Z")},{order:83,date:new Date("1994-09-05T14:21:37.211Z")},{order:84,date:new Date("1995-12-15T23:12:14.411Z")},{order:85,date:new Date("1986-08-14T19:34:40.904Z")},{order:86,date:new Date("1985-02-15T18:56:32.344Z")},{order:87,date:new Date("1989-09-06T10:49:30.896Z")},{order:88,date:new Date("1994-09-05T14:21:37.211Z")},{order:89,date:new Date("1995-12-15T23:12:14.411Z")},{order:90,date:new Date("1986-08-14T19:34:40.904Z")},{order:91,date:new Date("1985-02-15T18:56:32.344Z")},{order:92,date:new Date("1989-09-06T10:49:30.896Z")},{order:93,date:new Date("1994-09-05T14:21:37.211Z")},{order:94,date:new Date("1995-12-15T23:12:14.411Z")},{order:95,date:new Date("1986-08-14T19:34:40.904Z")},{order:96,date:new Date("1985-02-15T18:56:32.344Z")},{order:97,date:new Date("1989-09-06T10:49:30.896Z")},{order:98,date:new Date("1994-09-05T14:21:37.211Z")},{order:99,date:new Date("1995-12-15T23:12:14.411Z")}],X1=[{small:"Small Example",large:"Larger Example"}],db={horizontal:[[{label:"Large Column",key:"large",textAlign:"left",width:"300px"},{label:"Small Column",key:"small",textAlign:"left",width:"200px"},{label:"Larger Column",key:"large",textAlign:"left",width:"400px"},{label:"Larger Column",key:"large",textAlign:"left",width:"400px"}]]},BL=()=>0,DL=()=>{const[e,n]=S.useState(!0);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful with and without horizontal scrollbars. When a scrollbar is present, it should be possible to focus the table container and to scroll it using arrow keys."})}),a.jsxs("section",{className:"w-full flex flex-col gap-4",children:[a.jsxs("div",{className:"w-[400px] flex flex-col gap-4",children:[a.jsx(ho,{_label:"Table for demonstration purposes with horizontal scrollbar.",_minWidth:e?"600px":"300px",_headers:db,_data:X1,className:"block"}),a.jsx(ho,{_label:"Table for demonstration horizontal scrolling with pagination.",_minWidth:e?"600px":"300px",_headers:{horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",compareFn:BL,render:(r,i,c)=>ud.format(c.date)}]]},_data:ir,_pagination:!0}),a.jsx(ho,{_label:"Table for demonstration purposes with horizontal scrollbar with auto minWidth.",_minWidth:e?"600px":"300px",_headers:db,_data:[],className:"block"})]}),a.jsx(lo,{_checked:e,_label:"Toggle width restriction",_variant:"switch",_on:{onChange:(r,i)=>{n(!!i)}}}),a.jsx(ue,{_label:"Same table without scrollbar",_level:2,className:"block mt-4"}),a.jsx("p",{className:"mt-0",children:a.jsx("i",{children:"Scrollbar appears on very small viewport sizes"})}),a.jsx(ho,{_label:"Table for demonstration purposes without horizontal scrollbar",_minWidth:"600px",_headers:db,_data:X1,className:"block",_pagination:!0})]})]})};function ML({_on:e,...n}){const{dummyClickEventHandler:r}=Uo(),i={onClick:r};return a.jsx(X,{...n,_on:i})}const Ui=e=>{const n=e.charAt(0).toUpperCase()+e.slice(1);return{label:n,key:e,textAlign:"left",render:(r,i)=>{const c={_label:n,_variant:e,_icons:{right:"codicon codicon-squirrel"}};zn(Pr(r)).render(i.label==="button"?a.jsx(ML,{...c}):a.jsx(We,{_href:"#/back-page",...c}))}}},IL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows a KolTableStateless with different interactive child elements. It can be used to assure themes show these child elements correctly."})}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsx(Cl,{_label:"Button styles",_minWidth:"auto",_headerCells:{horizontal:[[Ui("primary"),Ui("secondary"),Ui("normal"),Ui("danger"),Ui("ghost")]],vertical:[[{label:"Button"},{label:"Link-Button"}]]},_data:[{primary:"button",secondary:"button",normal:"button",danger:"button",ghost:"button"},{primary:"link-button",secondary:"link-button",normal:"link-button",danger:"link-button",ghost:"link-button"}],className:"block"}),a.jsx(Cl,{_label:"Link styles",_minWidth:"auto",_headerCells:{horizontal:[[{key:"regular",label:"Regular",textAlign:"left",render:(e,n)=>{const r={_label:n.label,_icons:{right:"codicon codicon-squirrel"}};zn(Pr(e)).render(n.label==="button-link"?a.jsx(Ye,{...r}):a.jsx(xe,{_href:"#/back-page",...r}))}}]],vertical:[[{label:"Link"},{label:"Button-Link"}]]},_data:[{regular:"link"},{regular:"button-link"}],className:"block mt"})]})]}),UL=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),Js=[{label:"order",key:"order",textAlign:"center",compareFn:(e,n)=>e.order<n.order?-1:n.order<e.order?1:0,sortDirection:"ASC"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>UL.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}],FL={horizontal:[Js]},HL={vertical:[Js]},VL=()=>{const[e,n]=S.useState(HL),[r,i]=S.useState(FL);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows KolTableStateful with multi-sort functionality, allowing sorting by both "order" and "date" columns.'})}),a.jsxs("section",{className:"w-full grid gap-4",children:[a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Vertical"}),a.jsx(Ye,{_label:"Reset Table",_on:{onClick:()=>n({vertical:[[...Js]]})}}),a.jsx(ho,{_label:"Sort Table with Order and Date",_minWidth:"auto",_data:ir.slice(0,10),_headers:e,className:"block",_allowMultiSort:!0})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Horizontal"}),a.jsx(Ye,{_label:"Reset Table",_on:{onClick:()=>i({horizontal:[[...Js]]})}}),a.jsx(ho,{_label:"Sort Table with Order and Date",_minWidth:"auto",_data:ir,_headers:r,className:"block",_allowMultiSort:!0})]})]})]})},KL=[{id:"1001",name:"John",age:30},{id:"1002",name:"Jane",age:25}],qL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This example demonstrates a column that cannot be hidden in the settings."})}),a.jsx(ho,{_label:"Table with a non-hidable column",_minWidth:"auto",_hasSettingsMenu:!0,_headers:{horizontal:[[{key:"id",label:"ID",hidable:!1},{key:"name",label:"Name"},{key:"age",label:"Age"}]]},_data:KL,className:"block",style:{maxWidth:"600px"}})]}),ub={horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",render:(e,n,r)=>ud.format(r.date)}]]},fb={_page:2},ZL=()=>a.jsxs("div",{className:"w-full grid gap-14",children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful with different pagination positions."})}),a.jsxs("section",{className:"w-full flex flex-col gap-14",children:[a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Table with pagination at the bottom."}),a.jsx(ho,{_label:"Sample table with pagination at the bottom",_minWidth:"auto",_data:ir,_headers:ub,_pagination:fb,_paginationPosition:"bottom"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Table with pagination at the top."}),a.jsx(ho,{_label:"Sample table with pagination at the top",_minWidth:"auto",_data:ir,_headers:ub,_pagination:fb,_paginationPosition:"top"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Table with pagination at both top and bottom."}),a.jsx(ho,{_label:"Sample table with pagination at both top and bottom",_minWidth:"auto",_data:ir,_headers:ub,_pagination:fb,_paginationPosition:"both"})]})]})]}),PL=[{columnA:"Column A",columnB:"Column B",columnC:"Column C"}],GL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This example shows the table with predefined settings."})}),a.jsx(ho,{_label:"Table for demonstration purposes with predefined settings",_minWidth:"auto",_hasSettingsMenu:!0,_headers:{horizontal:[[{label:"column A",key:"columnA"},{label:"column B",key:"columnB"},{label:"column C",key:"columnC"}]]},_tableSettings:{columns:[{key:"columnC",visible:!0,label:"Column C",width:45},{key:"columnB",visible:!0,label:"Column B",width:20},{key:"columnA",visible:!1,label:"Column A"}]},_data:PL,"_min-width":"500px",className:"block",style:{maxWidth:"600px"}})]}),YL=[{order:0,shipped:!1,date:new Date("1981-05-26T21:33:43.612Z")},{order:1,shipped:!0,date:new Date("1971-04-25T19:44:17.014Z")},{order:2,shipped:!1,date:new Date("1986-07-10T11:39:29.539Z")}];function JL({label:e,icons:n}){const{dummyClickEventHandler:r}=Uo(),i={onClick:r};return a.jsx(X,{_label:e,_icons:n,_on:i})}const XL={horizontal:[[{label:"#",key:"order",textAlign:"center",width:"10em",render:(e,n)=>`Index: ${n.label}`},{label:"Status",key:"shipped",textAlign:"center",width:"10em",render:(e,n)=>{n.label?e.textContent="Order has been dispatched 🚚":e.textContent="Order pending 📦"}},{label:"Date (string)",key:"date",width:"20em",textAlign:"center",render:(e,n)=>{e.innerHTML=`<strong>${ud.format(n.label)}</strong>`},compareFn:(e,n)=>e.date.getTime()-n.date.getTime()},{label:"Action (react)",width:"20em",render:e=>{zn(Pr(e)).render(a.jsxs("div",{style:{display:"grid",gridAutoFlow:"column",alignItems:"end",gap:"1rem",maxWidth:"400px"},children:[a.jsx(Le,{_label:"Input"}),a.jsx(JL,{label:"Save",icons:{left:"codicon codicon-save"}})]}))}}]]},WL=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful using React render functions for the cell contents."})}),a.jsx(ho,{_label:"Sort by date column",_minWidth:"auto",_data:YL,_headers:XL,className:"w-full"})]}),QL=[{id:"U-001",name:"Andrea Schmidt",team:"Design",email:"andrea@example.org",status:"Active"},{id:"U-002",name:"Boris Klein",team:"Engineering",email:"boris@example.org",status:"Active"},{id:"U-003",name:"Chiara Russo",team:"Support",email:"chiara@example.org",status:"On leave"}],eO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This example demonstrates how the table settings respect column metadata. Some columns can be hidden, reordered, or resized, while others stay locked based on their ",a.jsx("code",{children:"hidable"}),", ",a.jsx("code",{children:"sortable"}),", and ",a.jsx("code",{children:"resizable"})," flags."]})}),a.jsx(ho,{_label:"Table with column option restrictions",_minWidth:"auto",_hasSettingsMenu:!0,_headers:{horizontal:[[{key:"id",label:"ID",hidable:!1,sortable:!1},{key:"name",label:"Name"},{key:"team",label:"Team",sortable:!1},{key:"email",label:"E-Mail",resizable:!1},{key:"status",label:"Status",hidable:!1,resizable:!1}]]},_tableSettings:{columns:[{hidable:!1,key:"id",label:"ID",sortable:!1,visible:!0,width:15},{key:"name",label:"Name",visible:!0,width:30},{key:"team",label:"Team",sortable:!1,visible:!0,width:20},{key:"email",label:"E-Mail",resizable:!1,visible:!0,width:25},{hidable:!1,key:"status",label:"Status",resizable:!1,visible:!0,width:10}]},_data:QL,className:"block",style:{maxWidth:"720px"}})]}),S0=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),oO={horizontal:[[{label:"order",key:"order",textAlign:"center"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>S0.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}]]},nO={vertical:[[{label:"order",key:"order",textAlign:"center"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>S0.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}]]},tO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows KolTableStateful with sortable columns. The sort-order can be changed by clicking the "date" header column.'})}),a.jsxs("section",{className:"w-full grid gap-4",children:[a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Vertical headers"}),a.jsx(ho,{_label:"Sort a date column",_minWidth:"auto",_data:ir.slice(0,10),_headers:nO,className:"block"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Horizontal headers"}),a.jsx(ho,{_label:"Sort a date column",_minWidth:"auto",_data:ir,_headers:oO,className:"block"})]})]})]}),rO=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"},{id:"1003",name:"This row is always unchecked",internalIdentifier:"AAA1003"},{id:"1004",name:"This row is always checked",internalIdentifier:"AAA1004"}];function aO({label:e}){const{dummyClickEventHandler:n}=Uo(),r={onClick:n};return a.jsx(X,{_label:e,_on:r})}const lO=()=>{const[e,n]=S.useState(),r={label:h=>`Selection for ${h.name}`,selectedKeys:e?e.map(h=>h.internalIdentifier):["AAA1004"],disabledKeys:["AAA1003","AAA1004"],keyPropertyName:"internalIdentifier"},i=S.useRef(null),c=({detail:h})=>{console.log("Selection change via event",h)},d=(h,p)=>{console.log("Selection change via callback",p)},u=async()=>{const h=await i.current?.getSelection();n(h)};S.useEffect(()=>(i.current?.addEventListener(Rt.selectionChange,c),()=>{i.current?.removeEventListener(Rt.selectionChange,c)}),[i]);const m=(h,p)=>{zn(Pr(h)).render(a.jsx(aO,{label:`Click ${p.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful with checkboxes for selection enabled."})}),a.jsxs("section",{className:"w-full",children:[a.jsx(ho,{_label:"Table with selection checkboxes",_minWidth:"auto",_headers:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:m}]]},_data:rO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i}),a.jsxs("div",{className:"grid grid-cols-3 items-end gap-4 mt-4",children:[a.jsx(X,{_label:"getSelection()",_on:{onClick:()=>{u()}}}),a.jsx("pre",{className:"text-base",children:JSON.stringify(e,null,2)})]})]})]})},iO=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"}];function cO({label:e}){const{dummyClickEventHandler:n}=Uo(),r={onClick:n};return a.jsx(X,{_label:e,_on:r})}const sO=()=>{const[e,n]=S.useState(),r={label:h=>`Selection for ${h.name}`,multiple:!1,selectedKeys:e?[e.internalIdentifier]:[],keyPropertyName:"internalIdentifier"},i=S.useRef(null),c=({detail:h})=>{console.log("Selection change via event",h)},d=(h,p)=>{console.log("Selection change via callback",p)},u=async()=>{const h=await i.current?.getSelection();n(h)};S.useEffect(()=>(i.current?.addEventListener(Rt.selectionChange,c),()=>{i.current?.removeEventListener(Rt.selectionChange,c)}),[i]);const m=(h,p)=>{zn(Pr(h)).render(a.jsx(cO,{label:`Click ${p.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful with radio buttons for selection enabled."})}),a.jsxs("section",{className:"w-full",children:[a.jsx(ho,{_label:"Table with selection radio",_minWidth:"auto",_headers:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:m}]]},_data:iO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i}),a.jsxs("div",{className:"grid grid-cols-3 items-end gap-4 mt-4",children:[a.jsx(X,{_label:"getSelection()",_on:{onClick:()=>{u()}}}),a.jsx("pre",{className:"text-base",children:JSON.stringify(e,null,2)})]})]})]})},dO=[{left:"Left Example",center:"Center Example",right:"Right Example"},{},{},{}],uO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows how KolTableStateless can be used directly, with the KolTableStateful wrapper."})}),a.jsx("section",{className:"w-full",children:a.jsx(Cl,{_label:"Table for demonstration purposes",_minWidth:"auto",_headerCells:{horizontal:[[{key:"left",label:"left",textAlign:"left",sortDirection:"ASC"},{key:"center",label:"center",textAlign:"center",sortDirection:"DESC"},{key:"right",label:"right",textAlign:"right",sortDirection:"NOS"},{key:"nosort",label:"no sort option"}]],vertical:[[{key:"vertical-left",label:"left",textAlign:"left",sortDirection:"ASC"},{key:"vertical-center",label:"center",textAlign:"center",sortDirection:"DESC"},{key:"vertical-right",label:"right",textAlign:"right",sortDirection:"NOS"},{key:"vertical-nosort",label:"no sort option"}]]},_data:dO,className:"block",style:{maxWidth:"600px"},_on:{onSort:(e,n)=>{console.log(n)}}})})]}),fO=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"},{id:"1003",name:"This row is always unchecked",internalIdentifier:"AAA1003"},{id:"1004",name:"This row is always checked",internalIdentifier:"AAA1004"}];function bO({label:e}){const{dummyClickEventHandler:n}=Uo(),r={onClick:n};return a.jsx(X,{_label:e,_on:r})}const mO=()=>{const[e,n]=S.useState(["AAA1002","AAA1004"]),r={label:m=>`Selection for ${m.name}`,selectedKeys:e,keyPropertyName:"internalIdentifier",disabledKeys:["AAA1003","AAA1004"]},i=S.useRef(null),c=({detail:m})=>{console.log("Selection change via event",m)},d=(m,h)=>{console.log("Selection change via callback",h),n(Array.isArray(h)?h:[h])};S.useEffect(()=>(i.current?.addEventListener(Rt.selectionChange,c),()=>{i.current?.removeEventListener(Rt.selectionChange,c)}),[i]);const u=(m,h)=>{zn(Pr(m)).render(a.jsx(bO,{label:`Click ${h.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateless with checkboxes for selection enabled."})}),a.jsx("section",{className:"w-full",children:a.jsx(Cl,{_label:"Table with selection checkboxes",_minWidth:"auto",_headerCells:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:u}]]},_data:fO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i})})]})},hO=[{id:"U1001",name:"Alice Johnson",role:"Admin",email:"alice@example.org",active:"Yes"},{id:"U1002",name:"Bob Smith",role:"Editor",email:"bob@example.org",active:"No"},{id:"U1003",name:"Carol Lee",role:"Viewer",email:"carol@example.org",active:"Yes"},{id:"U1004",name:"David Kim",role:"Editor",email:"david@example.org",active:"Yes"}],pO=()=>a.jsxs(a.Fragment,{children:[a.jsxs(K,{children:[a.jsxs("p",{children:["This sample shows ",a.jsx("code",{children:"KolTableStateless"})," with the settings menu enabled via",a.jsx("code",{children:"_hasSettingsMenu"}),". Each column demonstrates a different combination of sorting and resizing options."]}),a.jsxs("ul",{children:[a.jsxs("li",{children:[a.jsx("strong",{children:"ID"})," keeps a fixed width with ",a.jsx("code",{children:"resizable: false"})," while still allowing sorting."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"Name"})," represents the default behavior with both sorting and resizing enabled."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"Role"})," disables sorting but keeps ",a.jsx("code",{children:"resizable: true"})," so users can widen the column if necessary."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"E-Mail"})," allows sorting but locks its width with ",a.jsx("code",{children:"resizable: false"})," to keep the layout stable."]}),a.jsxs("li",{children:[a.jsx("strong",{children:"Active"})," is neither sortable nor resizable to emphasise the status indicator."]})]})]}),a.jsx(Cl,{_label:"Users (stateless with settings menu)",_minWidth:"auto",className:"w-full",_hasSettingsMenu:!0,_headerCells:{horizontal:[[{key:"id",label:"ID",textAlign:"center",sortDirection:"NOS",sortable:!0,resizable:!1},{key:"name",label:"Name",textAlign:"center",sortDirection:"NOS",sortable:!0,resizable:!0},{key:"role",label:"Role",textAlign:"center",sortDirection:"NOS",sortable:!1,resizable:!0},{key:"email",label:"E-Mail",textAlign:"center",sortDirection:"NOS",sortable:!0,resizable:!1},{key:"active",label:"Active",textAlign:"center",sortDirection:"NOS",sortable:!1,resizable:!1}]]},_data:hO,_on:{onSort:(e,n)=>console.log("sort",n),onSelectionChange:(e,n)=>console.log("selection",n)}})]}),kO=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"},{id:"1003",name:"Foo Disabled",internalIdentifier:"AAA1003"}];function vO({label:e}){const{dummyClickEventHandler:n}=Uo(),r={onClick:n};return a.jsx(X,{_label:e,_on:r})}const gO=()=>{const[e,n]=S.useState(["1002"]),r={label:m=>`Selection for ${m.name}`,multiple:!1,selectedKeys:e,disabledKeys:["AAA1003"],keyPropertyName:"internalIdentifier"},i=S.useRef(null),c=({detail:m})=>{console.log("Selection change via event",m)},d=(m,h)=>{console.log("Selection change via callback",h),n(Array.isArray(h)?h:[h])};S.useEffect(()=>(i.current?.addEventListener(Rt.selectionChange,c),()=>{i.current?.removeEventListener(Rt.selectionChange,c)}),[i]);const u=(m,h)=>{zn(Pr(m)).render(a.jsx(vO,{label:`Click ${h.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateless with checkboxes for selection enabled."})}),a.jsx("section",{className:"w-full",children:a.jsx(Cl,{_label:"Table with selection checkboxes",_minWidth:"auto",_headerCells:{horizontal:[[{key:"id",label:"#ID",textAlign:"left"},{key:"name",label:"Name",textAlign:"left"},{key:"action",label:"Action",textAlign:"left",render:u}]]},_data:kO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i})})]})},W1=[{common_name:"African elephant",scientific_name:"Loxodonta africana",conservation_status:"Vulnerable",habitat:"Savannas and forests",diet:"Herbivore",geographic_range:"Sub-Saharan Africa"},{common_name:"American bison",scientific_name:"Bison bison",conservation_status:"Near Threatened",habitat:"Grasslands and plains",diet:"Herbivore",geographic_range:"North America"},{common_name:"Arctic fox",scientific_name:"Vulpes lagopus",conservation_status:"Least Concern",habitat:"Tundra",diet:"Omnivore",geographic_range:"Arctic Circle"},{common_name:"Atlantic puffin",scientific_name:"Fratercula arctica",conservation_status:"Vulnerable",habitat:"Coastal cliffs and open ocean",diet:"Carnivore",geographic_range:"North Atlantic Ocean"},{common_name:"Bengal tiger",scientific_name:"Panthera tigris tigris",conservation_status:"Endangered",habitat:"Tropical forests and grasslands",diet:"Carnivore",geographic_range:"Indian subcontinent"},{common_name:"Black rhinoceros",scientific_name:"Diceros bicornis",conservation_status:"Critically Endangered",habitat:"Savannas and shrublands",diet:"Herbivore",geographic_range:"Eastern and Southern Africa"},{common_name:"Blue whale",scientific_name:"Balaenoptera musculus",conservation_status:"Endangered",habitat:"Open ocean",diet:"Carnivore",geographic_range:"Global oceans"},{common_name:"California condor",scientific_name:"Gymnogyps californianus",conservation_status:"Critically Endangered",habitat:"Cliffs and scrublands",diet:"Scavenger",geographic_range:"Western United States"},{common_name:"Cheetah",scientific_name:"Acinonyx jubatus",conservation_status:"Vulnerable",habitat:"Grasslands and savannas",diet:"Carnivore",geographic_range:"Africa and Iran"},{common_name:"Emperor penguin",scientific_name:"Aptenodytes forsteri",conservation_status:"Near Threatened",habitat:"Sea ice and open ocean",diet:"Carnivore",geographic_range:"Antarctica"},{common_name:"Galápagos tortoise",scientific_name:"Chelonoidis niger",conservation_status:"Vulnerable",habitat:"Volcanic highlands",diet:"Herbivore",geographic_range:"Galápagos Islands"},{common_name:"Giant anteater",scientific_name:"Myrmecophaga tridactyla",conservation_status:"Vulnerable",habitat:"Grasslands and forests",diet:"Insectivore",geographic_range:"Central and South America"},{common_name:"Giant panda",scientific_name:"Ailuropoda melanoleuca",conservation_status:"Vulnerable",habitat:"Temperate bamboo forests",diet:"Herbivore",geographic_range:"Central China"},{common_name:"Golden eagle",scientific_name:"Aquila chrysaetos",conservation_status:"Least Concern",habitat:"Mountains and open plains",diet:"Carnivore",geographic_range:"Northern Hemisphere"},{common_name:"Gray wolf",scientific_name:"Canis lupus",conservation_status:"Least Concern",habitat:"Forests and tundra",diet:"Carnivore",geographic_range:"Northern Hemisphere"},{common_name:"Great white shark",scientific_name:"Carcharodon carcharias",conservation_status:"Vulnerable",habitat:"Coastal and offshore waters",diet:"Carnivore",geographic_range:"Global temperate seas"},{common_name:"Green sea turtle",scientific_name:"Chelonia mydas",conservation_status:"Endangered",habitat:"Coastal waters and beaches",diet:"Herbivore",geographic_range:"Tropical and subtropical oceans"},{common_name:"Harpy eagle",scientific_name:"Harpia harpyja",conservation_status:"Near Threatened",habitat:"Tropical rainforests",diet:"Carnivore",geographic_range:"Central and South America"},{common_name:"Humpback whale",scientific_name:"Megaptera novaeangliae",conservation_status:"Least Concern",habitat:"Open ocean",diet:"Carnivore",geographic_range:"Global oceans"},{common_name:"Jaguar",scientific_name:"Panthera onca",conservation_status:"Near Threatened",habitat:"Tropical rainforests and wetlands",diet:"Carnivore",geographic_range:"Central and South America"},{common_name:"Koala",scientific_name:"Phascolarctos cinereus",conservation_status:"Vulnerable",habitat:"Eucalyptus woodlands",diet:"Herbivore",geographic_range:"Eastern Australia"},{common_name:"Monarch butterfly",scientific_name:"Danaus plexippus",conservation_status:"Endangered",habitat:"Prairies and meadows",diet:"Herbivore",geographic_range:"North America"},{common_name:"Mountain gorilla",scientific_name:"Gorilla beringei beringei",conservation_status:"Endangered",habitat:"Montane forests",diet:"Herbivore",geographic_range:"Central Africa"},{common_name:"Narwhal",scientific_name:"Monodon monoceros",conservation_status:"Near Threatened",habitat:"Arctic waters",diet:"Carnivore",geographic_range:"Arctic Circle"},{common_name:"Okapi",scientific_name:"Okapia johnstoni",conservation_status:"Endangered",habitat:"Rainforests",diet:"Herbivore",geographic_range:"Democratic Republic of the Congo"},{common_name:"Polar bear",scientific_name:"Ursus maritimus",conservation_status:"Vulnerable",habitat:"Sea ice and tundra",diet:"Carnivore",geographic_range:"Arctic Circle"},{common_name:"Red kangaroo",scientific_name:"Osphranter rufus",conservation_status:"Least Concern",habitat:"Deserts and grasslands",diet:"Herbivore",geographic_range:"Australia"},{common_name:"Red panda",scientific_name:"Ailurus fulgens",conservation_status:"Endangered",habitat:"Temperate forests",diet:"Omnivore",geographic_range:"Eastern Himalayas"},{common_name:"Snow leopard",scientific_name:"Panthera uncia",conservation_status:"Vulnerable",habitat:"Mountain ranges",diet:"Carnivore",geographic_range:"Central and South Asia"},{common_name:"Southern cassowary",scientific_name:"Casuarius casuarius",conservation_status:"Least Concern",habitat:"Tropical rainforests",diet:"Omnivore",geographic_range:"New Guinea and northeastern Australia"},{common_name:"Tasmanian devil",scientific_name:"Sarcophilus harrisii",conservation_status:"Endangered",habitat:"Forests and coastal scrub",diet:"Carnivore",geographic_range:"Tasmania"},{common_name:"Yellow-eyed penguin",scientific_name:"Megadyptes antipodes",conservation_status:"Endangered",habitat:"Coastal forests and beaches",diet:"Carnivore",geographic_range:"New Zealand"}],_O=Array.from({length:200},(e,n)=>{const r=W1[n%W1.length];return{id:n+1,...r}}),xO={horizontal:[[{label:"ID",key:"id",textAlign:"right"},{label:"Common name",key:"common_name",textAlign:"left"},{label:"Scientific name",key:"scientific_name",textAlign:"left"},{label:"Conservation status",key:"conservation_status",textAlign:"left"},{label:"Habitat",key:"habitat",textAlign:"left"},{label:"Diet",key:"diet",textAlign:"left"},{label:"Geographic range",key:"geographic_range",textAlign:"left"}]]},yO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful with horizontal and vertical scrollbars. It should be focusable and scrollable with the keyboard. The table headline should be sticky at the top of the table. The data now lists animal species with conservation-focused details."})}),a.jsx(ue,{_level:2,_label:"Sticky headers"}),a.jsx(ho,{_label:"Animal species overview",_minWidth:"1200px",_data:_O,_headers:xO,className:"block"})]}),wO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTableStateful with footer data."})}),a.jsx(ho,{className:"w-full",_label:"Business hours",_minWidth:"auto",_headers:{horizontal:[[{label:"District",key:"asp"},{label:"Monday",key:"monday"},{label:"Tuesday",key:"tuesday"},{label:"Wednesday",key:"wednesday"},{label:"Thursday",key:"thursday"},{label:"Friday",key:"friday"}]]},_data:[{asp:"Center",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Tiergarten",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"},{asp:"Maxvorstadt",monday:"08:00",tuesday:"08:00",wednesday:"10:00",thursday:"11:00",friday:"08:00"}],_dataFoot:[{tuesday:"Lunch break from 11 to 14 o'clock"}]})]}),zO={horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",render:(e,n,r)=>ud.format(r.date)}]]},SO={_page:2},jO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows how KolTableStateful can be navigated using a pagination."})}),a.jsx("div",{className:"w-full",children:a.jsx(ho,{_label:"Table description",_minWidth:"auto",_data:ir,_headers:zO,_pagination:SO})})]}),TO={table:{"column-alignment":LL,"complex-headers":OL,"horizontal-scrollbar":DL,"interactive-child-elements":IL,"multi-sort":VL,"non-hidable-columns":qL,"pagination-position":ZL,"predefined-settings":GL,"render-cell":WL,"settings-column-options":eO,"sort-data":tO,"direction-aware-sort":RL,"stateful-with-selection":lO,"stateless-with-settings-menu":pO,"stateful-with-single-selection":sO,stateless:uO,"stateless-with-selection":mO,"stateless-with-single-selection":gO,"sticky-header":yO,"with-footer":wO,"with-pagination":jO}},AO=[{_icons:"codicon codicon-pie-chart",_label:"First tab",_on:{onSelect:e=>{console.log("First tab selected",e)}}},{_icons:"codicon codicon-calendar",_label:"Second Tab"},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab"},{_icons:"codicon codicon-telescope",_label:"Last tab"}],CO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows KolTabs with the property ",a.jsx("code",{children:"_align"})," set to ",a.jsx("code",{children:"left"}),", ",a.jsx("code",{children:"right"}),", ",a.jsx("code",{children:"top"})," and ",a.jsx("code",{children:"bottom"}),"."]})}),a.jsx("div",{className:"grid gap-8",children:["left","right","top","bottom"].map(e=>{const n=`Tabs with ${e} align`;return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:n}),a.jsxs(cr,{_tabs:AO,_align:e,_label:n,children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]},e)})})]}),j0=[{_icons:"codicon codicon-pie-chart",_label:"First tab",_on:{onSelect:e=>{console.log("First tab selected",e)}}},{_icons:"codicon codicon-calendar",_label:"Second Tab"},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab"},{_icons:"codicon codicon-telescope",_label:"Last tab"}],EO=j0.map(e=>({...e,_icons:void 0})),LO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolTabs renders tab captions and their associated content. This sample shows tab captions with and without icons and disabled tabs."})}),a.jsxs(cr,{_tabs:EO,_label:"Regular tabs",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]}),a.jsxs(cr,{_tabs:j0,className:"mt-4",_label:"Tabs with icons",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]}),Q1=[{_icons:"codicon codicon-pie-chart",_label:"First tab",_on:{onSelect:e=>{console.log("First tab selected",e)}}},{_icons:"codicon codicon-calendar",_label:"Second Tab"},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab"},{_icons:"codicon codicon-telescope",_label:"Last tab"}],OO=()=>a.jsxs(a.Fragment,{children:[a.jsxs(K,{children:[a.jsxs("p",{children:["This sample shows KolTabs with the property ",a.jsx("code",{children:"_behavior"})," set to ",a.jsx("code",{children:"select-manual"})," and ",a.jsx("code",{children:"select-automatic"}),"."]}),a.jsx("p",{children:"This property allows controlling when an arrow key is pressed whether the tab change takes place right away or only focuses the tab caption."})]}),a.jsxs("div",{className:"grid gap-8",children:[a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:'Tabs with "select manual" behavior'}),a.jsxs(cr,{_tabs:Q1,_behavior:"select-manual",_label:"Tabs with select manual behavior",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:'Tabs with "select automatic" behavior'}),a.jsxs(cr,{_tabs:Q1,className:"mt-4",_behavior:"select-automatic",_label:"Tabs with select automatic behavior",children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]})]})]}),$O=()=>{const[e,n]=S.useState([{_label:"First tab"},{_label:"Second Tab"}]),r=()=>{n([...e,{_label:`Tab #${e.length+1}`}])};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:'This sample shows KolTabs with a "create tab" button.'})}),a.jsxs(cr,{_tabs:e,className:"mt-4",_label:"Tabs with create button",_hasCreateButton:!0,_on:{onCreate:r},children:[e.map((i,c)=>a.jsxs("div",{slot:`tab-${c}`,children:["Contents of ",i._label]},`tab-${c}`)),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"})]})]})},NO=[{_icons:"codicon codicon-pie-chart",_label:"First Tab",_hideLabel:!0},{_icons:"codicon codicon-calendar",_label:"Second Tab",_hideLabel:!0},{_disabled:!0,_icons:"codicon codicon-briefcase",_label:"Disabled Tab",_hideLabel:!0},{_icons:"codicon codicon-telescope",_label:"Last Tab",_hideLabel:!0}],RO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolTabs with hidden labels."})}),a.jsxs(cr,{_label:"Tabs with icons",_tabs:NO,children:[a.jsx("div",{slot:"tab-0",children:"Contents of Tab 1"}),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"}),a.jsx("div",{slot:"tab-2",children:"Contents of Tab 3"}),a.jsx("div",{slot:"tab-3",children:"Contents of Tab 4"})]})]}),BO={tabs:{basic:LO,"create-button":$O,"icons-only":RO,behavior:OO,align:CO}},DO=`Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
|
|
25969
25969
|
magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
|
|
25970
25970
|
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing
|
|
25971
25971
|
elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos
|
|
25972
25972
|
et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
|
|
25973
|
-
sit amet.`,MO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample demonstrates the ",a.jsx("code",{children:"_adjustHeight"}),"-property of KolTextarea. The textarea automatically grows with its content."]})}),a.jsx(kn,{className:"w-full",children:a.jsx(eo,{_adjustHeight:!0,_value:DO,_label:"Text input (auto grow)"})})]}),ex=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(eo,{...n,ref:r,_placeholder:"Placeholder",_label:"Text"})}),a.jsx(eo,{...n,_placeholder:"Placeholder",_required:!0,_msg:{_type:"error",_description:Fe},_label:"Text",_touched:!0,_hint:An}),a.jsx(eo,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"info",_description:"Just a hint"}}),a.jsx(eo,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"warning",_description:"Small warning"}}),a.jsx(eo,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"success",_description:"Success message"}}),a.jsx(eo,{...n,ref:r,_accessKey:"T",_label:"Text (3 rows)",_rows:3}),a.jsx(eo,{...n,ref:r,_label:"Text (placeholder)",_rows:3,_placeholder:"Placeholder"}),a.jsx(eo,{...n,ref:r,_label:"Text (disabled & placeholder)",_rows:3,_placeholder:"Placeholder",_disabled:!0}),a.jsx(eo,{...n,ref:r,_label:"Text (readonly)",_rows:3,_placeholder:"Placeholder",_readOnly:!0}),a.jsx(eo,{...n,ref:r,_label:"Text (disabled & value)",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_disabled:!0}),a.jsx(eo,{...n,ref:r,_label:"With access key",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_accessKey:"c"}),a.jsx(eo,{...n,ref:r,_label:"With short key",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_shortKey:"s"})]})}),IO=S.forwardRef(function(n,r){return a.jsxs($n,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(ex,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(ex,{ref:r,...n,_hideLabel:!0})]})]})}),UO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolTextarea renders a text field. The sample shows KolTextarea in a form context with different variations and states."})}),a.jsx(Cn,{RefComponent:IO,showButtons:!1})]}),FO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample demonstrates the ",a.jsx("code",{children:"_resize"}),"-property of KolTextarea. The sample textarea can (only) be resized in the given direction."]})}),a.jsx(kn,{className:"w-full",children:a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(eo,{_label:"Text input (unset)"}),a.jsx(eo,{_resize:"vertical",_label:"Text input (vertical)"}),a.jsx(eo,{_resize:"none",_label:"Text input (none)"})]})})]}),HO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample demonstrates the ",a.jsx("code",{children:"_rows"}),"-property of KolTextarea. The sample textarea has a fixed row number of 10."]})}),a.jsx(kn,{className:"w-full",children:a.jsx(eo,{_rows:10,_label:"Texteingabe"})})]}),VO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["The sample demonstrates various ",a.jsx("code",{children:"KolTextarea"})," configurations — contrasting soft vs. hard ",a.jsx("code",{children:"_maxLength"})," settings and the optional",a.jsx("code",{children:"_hasCounter"})," — including one instance without length limits."]})}),a.jsxs("section",{className:"w-full flex flex-col gap-4",children:[a.jsx(eo,{_label:"Textarea with soft max length",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20,_hasCounter:!0,_maxLengthBehavior:"soft"}),a.jsx(eo,{_label:"Textarea with max length",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20}),a.jsx(eo,{_label:"Textarea with max length and counter",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20,_hasCounter:!0}),a.jsx(eo,{_label:"Textarea with counter",_value:"Lorem Ipsum",className:"mt-2",_hasCounter:!0})]})]}),KO={textarea:{basic:UO,"adjust-height":MO,resize:FO,rows:HO,"with-counter":VO}},qO=()=>{const[e]=Pr(),n=e.get("type"),r=Gr.getInstance(document),i=()=>{r.enqueue({description:"Toasty",label:"Initial Toast",type:"warning",onClose:()=>{console.log("Simple toast has been closed.")}})};S.useEffect(()=>{n&&r.enqueue({description:"Toasty",label:`Toast with type '${n}'`,type:n})},[n,r]);const c=()=>{r.enqueue({render:(m,{close:h})=>{zn(m).render(a.jsx(a.Fragment,{children:a.jsx(X,{_label:"Hello World from Toast!",_on:{onClick:()=>{console.log("Toast Button clicked!"),h()}}})}))},label:"Initial Toast",type:"warning"})},d=async()=>{const m=await r.enqueue({description:"I will disappear in two seconds...",label:"Good Bye",type:"warning"});m&&setTimeout(m,2e3)},u=()=>{r.closeAll()};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample demonstrates the toast service with all its options."})}),a.jsx("section",{className:"grid gap-4",children:a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(X,{_label:"Show simple toast",_on:{onClick:i}}),a.jsx(X,{_label:"Show complex toast",_on:{onClick:c}}),a.jsx(X,{_label:"Show toast and close after 2 seconds",_on:{onClick:()=>{d()}}}),a.jsx(X,{_label:"Close all toasts",_on:{onClick:u}})]})})]})},Um=["default","info","success","warning","error"],ZO=Um.map(e=>({label:e,value:e})),ox=e=>typeof e=="string"&&Um.includes(e),PO=()=>{const[e]=Pr(),n=e.get("type"),r=ox(n)?n:void 0,[i,c]=S.useState(()=>r??"default"),d=S.useMemo(()=>Gr.getInstance(document),[]);S.useEffect(()=>(Um.forEach(p=>{d.enqueue({description:"Toasty",label:`Toast with type '${p}'`,type:p})}),()=>{d.closeAll()}),[d]),S.useEffect(()=>{r&&c(r)},[r]);const u=(p,g)=>{ox(g)&&c(g)},m=()=>{d.enqueue({description:"Toasty",label:`Toast with type '${i}'`,type:i})},h=()=>{d.closeAll()};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample demonstrates the toast service with all its options. Use the configuration below to choose a toast type and open a toast with the card variant."})}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(Oo,{_orientation:"horizontal",_label:"Toast type",_value:i,_options:ZO,_on:{onChange:u}}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(X,{_label:`Open ${i} toast`,_on:{onClick:m}}),a.jsx(X,{_label:"Close all toasts",_on:{onClick:h}})]})]})]})},GO={toast:{basic:qO,configurator:PO}},YO=()=>{const e=[{_label:"Back",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-arrow-left"}}},{_label:"Next",_hideLabel:!0,_icons:{right:{icon:"codicon codicon-arrow-right"}}},{_href:"#/back-page",_label:"Simple Link 1"},{_href:"#/back-page",_label:"Simple Link 3"},{_label:"Bold"}];return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolToolbars renders a set of given control elements grouped into one toolbar where focus can be moved using the keyboard arrow keys. The sample features button and link elements."})}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(ue,{_label:"Orientation horizontal",_level:2}),a.jsx(ya,{class:"block w-fit",_label:"Toolbar",_items:e}),a.jsx(ue,{_label:"Orientation vertical",_level:2}),a.jsx(ya,{class:"block w-fit",_label:"Toolbar",_items:e,_orientation:"vertical"})]})]})},JO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolToolbars with some of the elements disabled."})}),a.jsx(ya,{_label:"Toolbar",class:"block w-fit",_items:[{_label:"Back",_disabled:!0,_hideLabel:!0,_icons:{left:{icon:"codicon codicon-arrow-left"}}},{_label:"Next",_hideLabel:!0,_icons:{right:{icon:"codicon codicon-arrow-right"}}},{_href:"#/back-page",_label:"Simple Link 1"},{_href:"#/back-page",_disabled:!0,_label:"Simple Link 3"},{_label:"Bold"}]})]}),XO={toolbar:{basic:YO,disabled:JO}},WO=()=>{const e=["🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵"];return e[Math.floor(Math.random()*e.length)]},QO=()=>{const e=S.useContext(Cm),{subPage:n}=K4(),[r,i]=S.useState("1 Home"),[c,d]=S.useState(!1),[u,m]=S.useState(!1),[h,p]=S.useState(!0),g=()=>{i(`1 Home ${WO()}`)},v=_=>({_href:`#/tree/basic/${_}${e?"?hideMenus":""}`,_active:_===n});return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolTree renders a keyboard accessible nested navigation. Branches of the tree can be collapsed or expanded."})}),a.jsxs(Rx,{_label:"Sitemap",class:"block w-fit",children:[a.jsx(nn,{_label:r,...v("home")}),a.jsxs(nn,{_label:"2 About (open initially)",...v("about"),_open:!0,children:[a.jsx(nn,{_label:"2.0 Legal",...v("legal")}),a.jsxs(nn,{_label:"2.1 Team",...v("team"),children:[a.jsx(nn,{_label:"2.1.1. Values",...v("values")}),a.jsxs(nn,{_label:"2.1.2. Members",...v("members"),children:[a.jsx(nn,{_label:"2.1.2.1 Humans",...v("humans")}),c&&a.jsx(nn,{_label:"2.1.2.2 Pets",...v("pets")})]}),a.jsx(nn,{_label:"2.1.3 Locations",...v("locations"),children:u&&a.jsxs(nn,{_label:"2.1.3.1 Europe",...v("europe"),children:[a.jsx(nn,{_label:"2.1.3.1.1 Denmark",...v("denmark")}),a.jsx(nn,{_label:"2.1.3.1.2 Netherlands",...v("netherlands")})]})})]})]}),h&&a.jsxs(nn,{_label:"3. Products",...v("products"),children:[a.jsxs(nn,{_label:"3.1 Home",...v("home-products"),children:[a.jsx(nn,{_label:"3.1.1 Refrigerators",...v("fridges")}),a.jsx(nn,{_label:"3.1.2 Coffee makers",...v("coffee-makers")})]}),a.jsx(nn,{_label:"3.1 Office",...v("office-products"),children:a.jsx(nn,{_label:"3.2.1 Printers",...v("printers")})})]})]}),a.jsxs("p",{children:["Current tree item: ",n??"none"]}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(X,{_label:"Change label for '1 Home'",_on:{onClick:g}}),a.jsx(X,{_label:"Toggle '2.1.2.2 Pets'",_on:{onClick:()=>d(!c)}}),a.jsx(X,{_label:"Toggle '2.2.1 Europe' (two levels at once)",_on:{onClick:()=>m(!u)}}),a.jsx(X,{_label:"Toggle '3. Products'",_on:{onClick:()=>p(!h)}})]})]})},e$={tree:{"basic/:subPage":QO}},o$=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolVersion renders a label showing the given version number."})}),a.jsx(nd,{_label:"1.1.1"})]}),n$=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolVersion inline with text paragraph content."})}),a.jsxs("p",{children:[a.jsx(nd,{_label:"1.0.0"})," Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."]})]}),t$={version:{basic:o$,context:n$}},r$=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This example show how different components works with tabIndex."})}),a.jsxs("div",{className:"w-full grid gap-4",children:[a.jsx(Re,{_label:"Button",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(X,{_label:"Button 1, Tabindex 4",_variant:"primary",tabIndex:4}),a.jsx(X,{_disabled:!0,_label:"Button 2, Tabindex 3",_variant:"primary",tabIndex:3}),a.jsx(X,{_label:"Button 3, Tabindex 2",_variant:"primary",tabIndex:2}),a.jsx(X,{_label:"Button 4, Tabindex 1",_variant:"primary",tabIndex:1})]})}),a.jsx(Re,{_label:"ButtonLink",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Ge,{_label:"ButtonLink 1, Tabindex 4",tabIndex:4}),a.jsx(Ge,{_disabled:!0,_label:"ButtonLink 2, Tabindex 3",tabIndex:3}),a.jsx(Ge,{_label:"ButtonLink 3, Tabindex 2",tabIndex:2}),a.jsx(Ge,{_label:"ButtonLink 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Re,{_label:"Combobox",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(jn,{_hint:An,_label:"Combobox 1, Tabindex 4",_suggestions:tt,_value:"Deutschland",tabIndex:4}),a.jsx(jn,{_disabled:!0,_hint:An,_label:"Combobox 2, Tabindex 3",_suggestions:tt,_value:"Deutschland",tabIndex:3}),a.jsx(jn,{_touched:!0,_hint:An,_msg:{_type:"error",_description:Fe},_label:"Combobox 3, Tabindex 2",_suggestions:tt,_value:"Deutschland",tabIndex:2}),a.jsx(jn,{_hint:An,_label:"Combobox 4, Tabindex 1",_suggestions:tt,_value:"Deutschland",tabIndex:1})]})}),a.jsx(Re,{_label:"InputCheckbox",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(ao,{_label:"InputCheckbox 4, Tabindex 1",_value:!1,tabIndex:4}),a.jsx(ao,{_disabled:!0,_label:"InputCheckbox 3, Tabindex 2",_value:!1,tabIndex:3}),a.jsx(ao,{_touched:!0,_label:"InputCheckbox 2, Tabindex 3",_msg:{_type:"error",_description:Fe},_value:!1,tabIndex:2}),a.jsx(ao,{_label:"InputCheckbox 1, Tabindex 4",_value:!1,tabIndex:1})]})}),a.jsx(Re,{_label:"InputColor",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Xo,{_value:"#f08080",_label:"InputCheckbox 1, Tabindex 4",tabIndex:4}),a.jsx(Xo,{_disabled:!0,_value:"#f08080",_label:"InputCheckbox 2, Tabindex 3",tabIndex:3}),a.jsx(Xo,{_touched:!0,_value:"#f08080",_label:"InputCheckbox 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(Xo,{_value:"#f08080",_label:"InputCheckbox 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Re,{_label:"InputDate",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(He,{_type:"datetime-local",_label:"InputCheckbox 1, Tabindex 4",tabIndex:4}),a.jsx(He,{_disabled:!0,_type:"datetime-local",_label:"InputCheckbox 2, Tabindex 3",tabIndex:3}),a.jsx(He,{_touched:!0,_type:"datetime-local",_label:"InputCheckbox 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(He,{_type:"datetime-local",_label:"InputCheckbox 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Re,{_label:"InputEmail",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Wo,{_label:"InputEmail 1, Tabindex 4",tabIndex:4}),a.jsx(Wo,{_disabled:!0,_label:"InputEmail 2, Tabindex 3",tabIndex:3}),a.jsx(Wo,{_touched:!0,_label:"InputEmail 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(Wo,{_label:"InputEmail 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Re,{_label:"InputFile",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Mo,{_label:"InputFile 1, Tabindex 4",tabIndex:4}),a.jsx(Mo,{_disabled:!0,_label:"InputFile 2, Tabindex 3",tabIndex:3}),a.jsx(Mo,{_touched:!0,_label:"InputFile 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(Mo,{_label:"InputFile 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Re,{_label:"InputNumber",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Ao,{_label:"InputNumber 1, Tabindex 4",tabIndex:4}),a.jsx(Ao,{_disabled:!0,_label:"InputNumber 2, Tabindex 3",tabIndex:3}),a.jsx(Ao,{_touched:!0,_label:"InputNumber 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(Ao,{_label:"InputNumber 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Re,{_label:"InputPassword",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Lo,{_label:"InputPassword 1, Tabindex 4",tabIndex:4}),a.jsx(Lo,{_disabled:!0,_label:"InputPassword 2, Tabindex 3",tabIndex:3}),a.jsx(Lo,{_touched:!0,_label:"InputPassword 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(Lo,{_label:"InputPassword 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Re,{_label:"InputRadio",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Oo,{_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 1, Tabindex 4",tabIndex:4}),a.jsx(Oo,{_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 2, Tabindex 3",_disabled:!0,tabIndex:3}),a.jsx(Oo,{_touched:!0,_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2})," ",a.jsx(Oo,{_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Re,{_label:"InputRange",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(tn,{_label:"InputRange 1, Tabindex 4",_min:0,_max:50,tabIndex:4}),a.jsx(tn,{_disabled:!0,_label:"InputRange 2, Tabindex 3",_min:0,_max:50,tabIndex:3}),a.jsx(tn,{_touched:!0,_label:"InputRange 3, Tabindex 2",_min:0,_max:50,_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(tn,{_label:"InputRange 4, Tabindex 1",_min:0,_max:50,tabIndex:1})]})}),a.jsx(Re,{_label:"InputText",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Le,{_label:"InputText 1, Tabindex 4",tabIndex:4}),a.jsx(Le,{_disabled:!0,_label:"InputText 2, Tabindex 3",tabIndex:3}),a.jsx(Le,{_touched:!0,_label:"InputText 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(Le,{_label:"InputText 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Re,{_label:"LinkButton",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(We,{_href:"#/back-page",_label:"InputText 1, Tabindex 4",_variant:"primary",tabIndex:4}),a.jsx(We,{_disabled:!0,_href:"#/back-page",_label:"InputText 2, Tabindex 3",_variant:"primary",tabIndex:3}),a.jsx(We,{_href:"#/back-page",_label:"InputText 3, Tabindex 2",_variant:"primary",tabIndex:2}),a.jsx(We,{_href:"#/back-page",_label:"InputText 4, Tabindex 1",_variant:"primary",tabIndex:1})]})}),a.jsx(Re,{_label:"Link",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(xe,{_href:"#/back-page",_label:"InputText 1, Tabindex 4",tabIndex:4}),a.jsx(xe,{_disabled:!0,_href:"#/back-page",_label:"InputText 2, Tabindex 3",tabIndex:3}),a.jsx(xe,{_href:"#/back-page",_label:"InputText 3, Tabindex 2",tabIndex:2}),a.jsx(xe,{_href:"#/back-page",_label:"InputText 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Re,{_label:"SingleSelect",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(pn,{_label:"InputText 1, Tabindex 4",_options:nt,_value:"de",tabIndex:4}),a.jsx(pn,{_disabled:!0,_label:"InputText 2, Tabindex 3",_options:nt,_value:"de",tabIndex:3}),a.jsx(pn,{_touched:!0,_label:"InputText 3, Tabindex 2",_options:nt,_msg:{_type:"error",_description:Fe},_value:"de",tabIndex:2}),a.jsx(pn,{_label:"InputText 4, Tabindex 1",_options:nt,_value:"de",tabIndex:1})]})}),a.jsx(Re,{_label:"SplitButton",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(wl,{_label:"InputText 1, Tabindex 4",tabIndex:4,children:"Dropdown-Inhalt"}),a.jsx(wl,{_label:"InputText 2, Tabindex 3",tabIndex:3,_disabled:!0,children:"Dropdown-Inhalt"}),a.jsx(wl,{_label:"InputText 3, Tabindex 2",tabIndex:2,children:"Dropdown-Inhalt"}),a.jsx(wl,{_label:"InputText 4, Tabindex 1",tabIndex:1,children:"Dropdown-Inhalt"})]})}),a.jsx(Re,{_label:"Textarea",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(eo,{_label:"Textarea 1, Tabindex 4",_rows:3,_placeholder:"Placeholder",tabIndex:4}),a.jsx(eo,{_disabled:!0,_label:"Textarea 2, Tabindex 3",_rows:3,_placeholder:"Placeholder",tabIndex:3}),a.jsx(eo,{_touched:!0,_label:"Textarea 3, Tabindex 2",_rows:3,_placeholder:"Placeholder",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(eo,{_label:"Textarea 4, Tabindex 1",_rows:3,_placeholder:"Placeholder",tabIndex:1})]})})]})]}),a$=()=>{const{dummyClickEventHandler:e}=Io(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample demonstrates how tooltip animation duration and width can be customized via",a.jsx("code",{children:"--kolibri-tooltip-animation-duration"})," and ",a.jsx("code",{children:"--kol-tooltip-width"}),"."]})}),a.jsxs("div",{className:"flex justify-center items-center gap-4",children:[a.jsx(X,{_label:"Custom duration",_hideLabel:!0,style:{"--kolibri-tooltip-animation-duration":"2500ms"},_icons:"codicon codicon-clock",_on:n}),a.jsx(X,{_label:"Custom width",_hideLabel:!0,style:{"--kol-tooltip-width":"400px"},_icons:"codicon codicon-arrow-both",_on:n})]})]})},l$=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolForm with KolInputDate inside to make sure enter on the date icon does not submit the form."})}),a.jsxs(kn,{_on:{onSubmit:()=>{console.error("submitted"),alert("submitted")}},children:[a.jsx(He,{_label:"date",_name:"datum"}),a.jsx(X,{_label:"Submit",_type:"submit"})]})]}),zs=[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],i$=()=>{const{dummyClickEventHandler:e}=Io(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsxs(K,{children:[a.jsx("p",{children:"This example shows how deactivated interactive elements are displayed."}),a.jsxs("ul",{children:[a.jsx("li",{children:"Deactivated interactive elements pose a particular challenge for accessibility."}),a.jsx("li",{children:"It must not be possible to focus on deactivated interactive elements, otherwise the tab paths will be unnecessarily extended."}),a.jsx("li",{children:"Deactivated interactive elements should be labelled clearly and legibly."}),a.jsx("li",{children:"Deactivated interactive elements have a tooltip for sighted people and aria labelling for the screen readers reading mode if they are represented by an interpretable graphic."})]}),a.jsx("p",{children:"This implementation ensures standardized use for all users."})]}),a.jsxs("div",{className:"w-full grid gap-4",children:[a.jsx(Re,{_label:"Button",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_label:"Label",_on:n}),a.jsx(X,{_disabled:!0,_label:"Label",_on:n}),a.jsx(X,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label",_on:n}),a.jsx(X,{_disabled:!0,_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label",_on:n})]})}),a.jsx(Re,{_label:"ButtonLink",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(Ge,{_label:"Label"}),a.jsx(Ge,{_disabled:!0,_label:"Label"}),a.jsx(Ge,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label"}),a.jsx(Ge,{_hideLabel:!0,_icons:"codicon codicon-home",_disabled:!0,_label:"Label"})]})}),a.jsx(Re,{_label:"Link",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(xe,{_href:"#",_label:"Label"}),a.jsx(xe,{_disabled:!0,_href:"#",_label:"Label"}),a.jsx(xe,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"}),a.jsx(xe,{_disabled:!0,_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"})]})}),a.jsx(Re,{_label:"LinkButton",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(We,{_href:"#",_label:"Label"}),a.jsx(We,{_disabled:!0,_href:"#",_label:"Label"}),a.jsx(We,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"}),a.jsx(We,{_disabled:!0,_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"})]})}),a.jsx(Re,{_label:"Accordion",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ln,{_label:"Label",children:"Content"}),a.jsx(ln,{_disabled:!0,_label:"Label",children:"Content"}),a.jsx(ln,{_label:"Label (open)",_open:!0,children:"Content"}),a.jsx(ln,{_disabled:!0,_label:"Label (open)",_open:!0,children:"Content"})]})}),a.jsx(Re,{_label:"Details",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ir,{_label:"Label",children:"Content"}),a.jsx(ir,{_disabled:!0,_label:"Label",children:"Content"}),a.jsx(ir,{_label:"Label (open)",_open:!0,children:"Content"}),a.jsx(ir,{_disabled:!0,_label:"Label (open)",_open:!0,children:"Content"})]})}),[ao,Xo,He,Wo,Mo,Ao,Lo,tn,Le].map(r=>{const c=r.render.displayName;return a.jsx(Re,{_label:c,_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(r,{_label:"Label"}),a.jsx(r,{_disabled:!0,_label:"Label"}),a.jsx(r,{_hideLabel:!0,_label:"Label"}),a.jsx(r,{_disabled:!0,_hideLabel:!0,_label:"Label"})]})},c)}),[Oo,Qo].map(r=>{const c=r.render.displayName;return a.jsx(Re,{_label:c,_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(r,{_label:"Label",_options:zs}),a.jsx(r,{_disabled:!0,_label:"Label",_options:zs}),a.jsx(r,{_hideLabel:!0,_label:"Label",_options:zs}),a.jsx(r,{_disabled:!0,_hideLabel:!0,_label:"Label",_options:zs})]})},c)}),a.jsx(Re,{_label:"KolTextarea",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(eo,{_label:"Label",_rows:3}),a.jsx(eo,{_disabled:!0,_label:"Label",_rows:3}),a.jsx(eo,{_hideLabel:!0,_label:"Label",_rows:3}),a.jsx(eo,{_disabled:!0,_hideLabel:!0,_label:"Label",_rows:3})]})})]})]})},T0=()=>{const e=new Map;return e.set("inputCheckbox",(n,r)=>a.jsx(ao,{className:"w-full",_name:"checkbox",_label:"Checkbox",ref:r})),e.set("inputColor",(n,r)=>a.jsx(Xo,{className:"w-full",_name:"color",_label:"Color",ref:r})),e.set("inputDate",(n,r)=>a.jsx(He,{className:"w-full",_name:"date",_label:"Date",ref:r})),e.set("inputEmail",(n,r)=>a.jsx(Wo,{className:"w-full",_name:"email",_label:"Email",ref:r})),e.set("inputFile",(n,r)=>a.jsx(Mo,{className:"w-full",_name:"file",_label:"File",ref:r})),e.set("inputFileMultiple",(n,r)=>a.jsx(Mo,{className:"w-full",_name:"file",_label:"Files (multiple)",_multiple:!0,ref:r})),e.set("inputNumber",(n,r)=>a.jsx(Ao,{className:"w-full",_name:"number",_label:"Number",ref:r})),e.set("inputPassword",(n,r)=>a.jsx(Lo,{className:"w-full",_name:"password",_label:"Password",ref:r})),e.set("inputRadio",(n,r)=>a.jsx(Oo,{className:"w-full",_name:"radio",_label:"Radio",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],_value:"A",ref:r})),e.set("inputRange",(n,r)=>a.jsx(tn,{className:"w-full",_name:"range",_label:"Range",ref:r})),e.set("inputText",(n,r)=>a.jsx(Le,{className:"w-full",_name:"text",_label:"Text",ref:r})),e.set("select",(n,r)=>a.jsx(Qo,{className:"w-full",_name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],ref:r})),e.set("selectMultiple",(n,r)=>a.jsx(Qo,{className:"w-full",_name:"select",_label:"Select (multiple)",_multiple:!0,_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],_rows:2,ref:r})),e.set("singleSelect",(n,r)=>a.jsx(pn,{className:"w-full",_name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],ref:r})),e.set("textarea",(n,r)=>a.jsx(eo,{className:"w-full",_name:"textarea",_label:"Textarea",_rows:5,ref:r})),e.set("accordion",(n,r)=>a.jsx(ln,{className:"w-full",_label:"Accordion here",ref:r})),e.set("button",(n,r)=>a.jsx("div",{children:a.jsx(X,{_label:"Button here",ref:r})})),e.set("buttonLink",(n,r)=>a.jsx(Ge,{_label:"ButtonLink here",ref:r})),e.set("combobox",(n,r)=>a.jsx(jn,{className:"w-full",_label:"KolCombobox here",_suggestions:[],ref:r})),e.set("details",(n,r)=>a.jsx(ir,{className:"w-full",_label:"Details here",ref:r,children:"detailed details"})),e.set("link",(n,r)=>a.jsx(xe,{className:"w-full",_label:"Link here",_href:"#",ref:r})),e.set("linkButton",(n,r)=>a.jsx("div",{children:a.jsx(We,{_label:"LinkButton here",_href:"#",ref:r})})),e},nx=e=>{const r=[...S.useMemo(()=>T0(),[]).keys()].map(i=>i);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample serves for automated tests of the focus state for input components. When loading one of the examples linked below, focus will be set on the element initially. When testing manually, you may have to reload the page after opening an example."})}),e.invalidComponent&&a.jsx(Sn,{_type:"error",_variant:"card",children:"Component not found."}),a.jsx(ue,{_level:2,_label:"Focus Test Cases"}),a.jsx("ul",{children:r.map(i=>a.jsx("li",{children:a.jsx(xe,{_label:i,_href:`#/scenarios/focus-elements?component=${i}`})},i))})]})},c$=()=>{const e=S.useRef(null),n=S.useMemo(()=>T0(),[]),[r]=Pr(),i=r.get("component");if(S.useLayoutEffect(()=>{setTimeout(()=>{e.current?.focus()},500)},[e]),i){const c=n.get(i);if(!c)return a.jsx(nx,{invalidComponent:!0});const d=S.forwardRef(c);return a.jsx(d,{ref:e})}else return a.jsx(nx,{})},s$=[{name:"Elephant",species:"Loxodonta",habitat:"Savannah",diet:"Herbivore",lifespan:60},{name:"Tiger",species:"Panthera tigris",habitat:"Forest",diet:"Carnivore",lifespan:20},{name:"Kangaroo",species:"Macropus",habitat:"Grassland",diet:"Herbivore",lifespan:23},{name:"Penguin",species:"Aptenodytes forsteri",habitat:"Antarctica",diet:"Carnivore",lifespan:20},{name:"Giraffe",species:"Giraffa camelopardalis",habitat:"Savannah",diet:"Herbivore",lifespan:25},{name:"Panda",species:"Ailuropoda melanoleuca",habitat:"Forest",diet:"Herbivore",lifespan:20},{name:"Dolphin",species:"Delphinus delphis",habitat:"Ocean",diet:"Carnivore",lifespan:40},{name:"Eagle",species:"Aquila chrysaetos",habitat:"Mountains",diet:"Carnivore",lifespan:30},{name:"Koala",species:"Phascolarctos cinereus",habitat:"Forest",diet:"Herbivore",lifespan:18},{name:"Lion",species:"Panthera leo",habitat:"Savannah",diet:"Carnivore",lifespan:15},{name:"Zebra",species:"Equus quagga",habitat:"Savannah",diet:"Herbivore",lifespan:25},{name:"Wolf",species:"Canis lupus",habitat:"Forest",diet:"Carnivore",lifespan:14},{name:"Cheetah",species:"Acinonyx jubatus",habitat:"Savannah",diet:"Carnivore",lifespan:12},{name:"Polar Bear",species:"Ursus maritimus",habitat:"Arctic",diet:"Carnivore",lifespan:25},{name:"Rhinoceros",species:"Rhinocerotidae",habitat:"Savannah",diet:"Herbivore",lifespan:40},{name:"Hippopotamus",species:"Hippopotamus amphibius",habitat:"Rivers",diet:"Herbivore",lifespan:45},{name:"Chimpanzee",species:"Pan troglodytes",habitat:"Forest",diet:"Omnivore",lifespan:50},{name:"Orangutan",species:"Pongo",habitat:"Forest",diet:"Omnivore",lifespan:45},{name:"Leopard",species:"Panthera pardus",habitat:"Forest",diet:"Carnivore",lifespan:17},{name:"Hyena",species:"Hyaenidae",habitat:"Savannah",diet:"Carnivore",lifespan:25},{name:"Crocodile",species:"Crocodylidae",habitat:"Rivers",diet:"Carnivore",lifespan:70},{name:"Alligator",species:"Alligatoridae",habitat:"Swamps",diet:"Carnivore",lifespan:50},{name:"Ostrich",species:"Struthio camelus",habitat:"Savannah",diet:"Omnivore",lifespan:40},{name:"Flamingo",species:"Phoenicopterus",habitat:"Lakes",diet:"Omnivore",lifespan:30},{name:"Peacock",species:"Pavo cristatus",habitat:"Forest",diet:"Omnivore",lifespan:20},{name:"Parrot",species:"Psittaciformes",habitat:"Forest",diet:"Omnivore",lifespan:50},{name:"Toucan",species:"Ramphastidae",habitat:"Forest",diet:"Omnivore",lifespan:20},{name:"Sloth",species:"Folivora",habitat:"Forest",diet:"Herbivore",lifespan:30},{name:"Armadillo",species:"Dasypodidae",habitat:"Grassland",diet:"Omnivore",lifespan:15},{name:"Anteater",species:"Myrmecophaga tridactyla",habitat:"Forest",diet:"Insectivore",lifespan:14},{name:"Bat",species:"Chiroptera",habitat:"Caves",diet:"Omnivore",lifespan:20},{name:"Otter",species:"Lutrinae",habitat:"Rivers",diet:"Carnivore",lifespan:16},{name:"Beaver",species:"Castor",habitat:"Rivers",diet:"Herbivore",lifespan:24},{name:"Moose",species:"Alces alces",habitat:"Forest",diet:"Herbivore",lifespan:20},{name:"Deer",species:"Cervidae",habitat:"Forest",diet:"Herbivore",lifespan:20},{name:"Bison",species:"Bison bison",habitat:"Grassland",diet:"Herbivore",lifespan:20},{name:"Buffalo",species:"Syncerus caffer",habitat:"Savannah",diet:"Herbivore",lifespan:25},{name:"Camel",species:"Camelus",habitat:"Desert",diet:"Herbivore",lifespan:50},{name:"Llama",species:"Lama glama",habitat:"Mountains",diet:"Herbivore",lifespan:20},{name:"Alpaca",species:"Vicugna pacos",habitat:"Mountains",diet:"Herbivore",lifespan:20},{name:"Goat",species:"Capra aegagrus hircus",habitat:"Mountains",diet:"Herbivore",lifespan:18},{name:"Sheep",species:"Ovis aries",habitat:"Grassland",diet:"Herbivore",lifespan:12},{name:"Cow",species:"Bos taurus",habitat:"Grassland",diet:"Herbivore",lifespan:20},{name:"Pig",species:"Sus scrofa domesticus",habitat:"Farm",diet:"Omnivore",lifespan:15},{name:"Chicken",species:"Gallus gallus domesticus",habitat:"Farm",diet:"Omnivore",lifespan:10}],d$=[{_icons:"codicon codicon-pie-chart",_label:"Erster Tab"},{_icons:"codicon codicon-calendar",_label:"Zweiter Tab",_disabled:!0},{_icons:"codicon codicon-briefcase",_label:"Deaktivierter Tab",_disabled:!0},{_icons:"codicon codicon-telescope",_label:"Letzter Tab",_disabled:!0}],tx={horizontal:[[{key:"name",label:"Name",textAlign:"left",width:"400px"},{key:"species",label:"Species",textAlign:"left",width:"400px"},{key:"habitat",label:"Habitat",textAlign:"left",width:"400px"},{key:"diet",label:"Diet",textAlign:"left",width:"400px"},{key:"lifespan",label:"lifespan",textAlign:"right",width:"400px"}]]};function u$(){const[e]=S.useState(()=>{const n=tx.horizontal[0];let r=0;for(const i of n)r+=parseFloat(i.width?.replace("px","")||"0");return`${r}px`});return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This advanced scenario demonstrates a complex layout with KolTable featuring horizontal scrollbar within a tab-based navigation system. The table automatically calculates its minimum width based on column definitions and provides smooth horizontal scrolling when content exceeds the container width. This example showcases real-world usage in a dashboard-like interface with sidebar navigation and tabbed content areas."})}),a.jsxs("div",{className:"mainlayout",children:[a.jsx("aside",{className:"nav-area",children:a.jsx(jl,{_label:"Main navigation",_links:z0,_hasCompactButton:!0,_hasIconsWhenExpanded:!0})}),a.jsx("div",{className:"content",children:a.jsxs(dr,{_tabs:d$,_align:"top",_label:"Demo Tabs",children:[a.jsx("div",{style:{overflow:"hidden"},children:a.jsx(ho,{_label:"Table for demonstration purposes with horizontal scrollbar",_minWidth:e,_headers:tx,_data:s$,_pagination:{_page:1},className:"block"})}),a.jsx("div",{}),a.jsx("div",{}),a.jsx("div",{})]})})]})]})}const f$=()=>{const e="Unrecognized phone number.",n="Choose at least two and up to five toppings.",r=["Mushrooms","Bell Peppers","Onions","Olives","Spinach","Tomatoes","Artichokes","Zucchini","Jalapeños","Basil"],i=[{label:"United States +1",value:"1"},{label:"Greece +30 ",value:"30"},{label:"Germany +49",value:"49"},{label:"Japan +81",value:"81"}];return a.jsxs(a.Fragment,{children:[a.jsxs(K,{children:[a.jsx("p",{children:"This sample shows how input components can be grouped together with just one error message, without repeating the message for every field."}),a.jsx("p",{children:"The sample only demonstrates how the errors can be displayed, an actual validation logic is not part of the example."})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Phone number"}),a.jsx(Sn,{_alert:!0,_type:"error",_label:e}),a.jsxs("div",{className:"grid grid-cols-3 gap-4 max-w-2xl",children:[a.jsx(Qo,{_options:i,_label:"CountryCode ",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0}),a.jsx(Le,{_label:"Area code",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0}),a.jsx(Le,{_label:"Local number",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0})]})]}),a.jsxs("fieldset",{className:"mt",children:[a.jsx("legend",{children:"Pizza toppings"}),a.jsx(Sn,{_alert:!0,_type:"error",_label:n}),r.map(c=>a.jsx(ao,{_label:c,_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0},c))]})]})},A0=S.createContext(void 0),C0=S.createContext(!1),hn=e=>{const n=S.useRef(null),[r,i]=S.useState(void 0),[c,d]=S.useState(e.inputProps._value),u=e.formatter||JSON.stringify,m=S.useContext(A0),h=S.useContext(C0),p=async()=>{const v=await n.current?.getValue();i(v)};S.useEffect(()=>{const v=()=>{p()};return m?.addEventListener("runAll",v),()=>{m?.removeEventListener("runAll",v)}},[m]);const g=Object.fromEntries(["onInput","onChange","onBlur","onClick","onFocus","onMouseDown"].map(v=>[v,(_,z)=>{h&&console.log(e.inputProps._label,v,z,_),v==="onInput"&&d(z)}]));return a.jsx(a.Fragment,{children:a.jsxs("div",{className:"grid grid-cols-3 items-end gap-4","data-testid":e.testId,children:[a.jsx(e.InputComponent,{ref:n,_on:g,...e.inputProps,_value:c}),a.jsx(X,{_label:"getValue()",_on:{onClick:()=>{p()}}}),a.jsx("pre",{className:"text-base",children:u(r)})]})})},b$=()=>{const e=S.useMemo(()=>new EventTarget,[]),[n,r]=S.useState(!0);return a.jsx(a.Fragment,{children:a.jsx(A0.Provider,{value:e,children:a.jsxs(C0.Provider,{value:n,children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows how the input components ",a.jsx("code",{children:"getValue()"}),` method works. It's called when clicking the "getValue()" button and prints the current value right next to itself.`]})}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsx(Re,{_label:"Sample options",className:"block ha mb-8",children:a.jsx(ao,{_label:"Log events to console",_value:!0,_checked:n,_on:{onChange:(i,c)=>r(c)}})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(hn,{testId:"scenario-inputText",InputComponent:Le,inputProps:{_label:"InputText"}}),a.jsx(hn,{testId:"scenario-inputCheckboxString",InputComponent:ao,inputProps:{_label:"KolInputCheckbox (value)",_value:"Checkbox True Value"}}),a.jsx(hn,{testId:"scenario-inputCheckboxBoolean",InputComponent:ao,inputProps:{_label:"KolInputCheckbox (boolean)"}}),a.jsx(hn,{testId:"scenario-inputColor",InputComponent:Xo,inputProps:{_label:"KolInputColor"}}),a.jsx(hn,{testId:"scenario-inputDate",InputComponent:He,inputProps:{_label:"KolInputDate"}}),a.jsx(hn,{testId:"scenario-inputEmail",InputComponent:Wo,inputProps:{_label:"KolInputEmail"}}),a.jsx(hn,{testId:"scenario-inputFile",InputComponent:Mo,inputProps:{_label:"KolInputFile"},formatter:i=>i instanceof FileList?`FileList{${Array.from(i).map(c=>c.name).join(", ")}}`:JSON.stringify(i)}),a.jsx(hn,{testId:"scenario-inputNumber",InputComponent:Ao,inputProps:{_label:"KolInputNumber"}}),a.jsx(hn,{testId:"scenario-inputPassword",InputComponent:Lo,inputProps:{_label:"KolInputPassword"}}),a.jsx(hn,{testId:"scenario-inputRange",InputComponent:tn,inputProps:{_label:"KolInputRange"}}),a.jsx(hn,{testId:"scenario-inputRadio",InputComponent:Oo,inputProps:{_label:"KolInputRadio",_orientation:"horizontal",_options:[{label:"New York",value:"New York"},{label:"Rio de Janeiro",value:"Rio de Janeiro"},{label:"Rosenheim",value:"Rosenheim"}],_value:"New York"}}),a.jsx(hn,{testId:"scenario-select",InputComponent:Qo,inputProps:{_label:"KolSelect",_options:[{label:"New York",value:"New York"},{label:"Rio de Janeiro",value:"Rio de Janeiro"},{label:"Rosenheim",value:"Rosenheim"}]}}),a.jsx(hn,{testId:"scenario-singleSelect",InputComponent:pn,inputProps:{_label:"KolSingleSelect",_options:[{label:"New York",value:"New York"},{label:"Rio de Janeiro",value:"Rio de Janeiro"},{label:"Rosenheim",value:"Rosenheim"}],_value:"Rosenheim"}}),a.jsx(hn,{testId:"scenario-combobox",InputComponent:jn,inputProps:{_label:"KolCombobox",_suggestions:tt,_value:"Deutschland"}}),a.jsx(hn,{testId:"scenario-textarea",InputComponent:eo,inputProps:{_label:"KolTextarea"}}),a.jsx(hn,{testId:"scenario-button",InputComponent:X,inputProps:{_label:"KolButton",_variant:"ghost",_value:"KolButton value"}}),a.jsx(hn,{testId:"scenario-buttonLink",InputComponent:Ge,inputProps:{_label:"KolButtonLink",_value:"KolButtonLink value"}}),a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsx("div",{}),a.jsx(X,{_label:"Run all",_variant:"primary",_on:{onClick:()=>{e.dispatchEvent(new Event("runAll"))}}})]})]})]})]})})})},m$=333,h$=new Array(m$).fill(0).map((e,n)=>n+1),p$=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This example renders many KoliBri components to show the performance."})}),a.jsx("div",{className:"w-full grid gap-4",children:h$.map(e=>a.jsxs("div",{className:"flex flex-wrap items-end gap-4",children:[a.jsx(Le,{_label:`TextInput #${e}`}),a.jsx(Ao,{_label:`NumberInput #${e}`}),a.jsx(ao,{_label:`Checkbox #${e}`})]},e))})]});var k$=e=>e.type==="checkbox",Fi=e=>e instanceof Date,Fm=e=>e==null;const E0=e=>typeof e=="object";var za=e=>!Fm(e)&&!Array.isArray(e)&&E0(e)&&!Fi(e),v$=e=>za(e)&&e.target?k$(e.target)?e.target.checked:e.target.value:e,g$=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,_$=(e,n)=>e.has(g$(n)),x$=e=>{const n=e.constructor&&e.constructor.prototype;return za(n)&&n.hasOwnProperty("isPrototypeOf")},y$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function L0(e){let n;const r=Array.isArray(e),i=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)n=new Date(e);else if(!(y$&&(e instanceof Blob||i))&&(r||za(e)))if(n=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!x$(e))n=e;else for(const c in e)e.hasOwnProperty(c)&&(n[c]=L0(e[c]));else return e;return n}var O0=e=>/^\w*$/.test(e),Jb=e=>e===void 0,w$=e=>Array.isArray(e)?e.filter(Boolean):[],$0=e=>w$(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Hn=(e,n,r)=>{if(!n||!za(e))return r;const i=(O0(n)?[n]:$0(n)).reduce((c,d)=>Fm(c)?c:c[d],e);return Jb(i)||i===e?Jb(e[n])?r:e[n]:i},bb=e=>typeof e=="boolean",rx=(e,n,r)=>{let i=-1;const c=O0(n)?[n]:$0(n),d=c.length,u=d-1;for(;++i<d;){const m=c[i];let h=r;if(i!==u){const p=e[m];h=za(p)||Array.isArray(p)?p:isNaN(+c[i+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;e[m]=h,e=e[m]}};const ax={BLUR:"blur",CHANGE:"change"},lx={all:"all"},N0=re.createContext(null);N0.displayName="HookFormContext";const Hm=()=>re.useContext(N0);var z$=(e,n,r,i=!0)=>{const c={defaultValues:n._defaultValues};for(const d in e)Object.defineProperty(c,d,{get:()=>{const u=d;return n._proxyFormState[u]!==lx.all&&(n._proxyFormState[u]=!i||lx.all),r&&(r[u]=!0),e[u]}});return c};const R0=typeof window<"u"?re.useLayoutEffect:re.useEffect;function S$(e){const n=Hm(),{control:r=n.control,disabled:i,name:c,exact:d}=e||{},[u,m]=re.useState(r._formState),h=re.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return R0(()=>r._subscribe({name:c,formState:h.current,exact:d,callback:p=>{!i&&m({...r._formState,...p})}}),[c,i,d]),re.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),re.useMemo(()=>z$(u,r,h.current,!1),[u,r])}var j$=e=>typeof e=="string",T$=(e,n,r,i,c)=>j$(e)?Hn(r,e,c):Array.isArray(e)?e.map(d=>Hn(r,d)):r,ix=e=>Fm(e)||!E0(e);function B0(e,n,r=new WeakSet){if(ix(e)||ix(n))return e===n;if(Fi(e)&&Fi(n))return e.getTime()===n.getTime();const i=Object.keys(e),c=Object.keys(n);if(i.length!==c.length)return!1;if(r.has(e)||r.has(n))return!0;r.add(e),r.add(n);for(const d of i){const u=e[d];if(!c.includes(d))return!1;if(d!=="ref"){const m=n[d];if(Fi(u)&&Fi(m)||za(u)&&za(m)||Array.isArray(u)&&Array.isArray(m)?!B0(u,m,r):u!==m)return!1}}return!0}function A$(e){const n=Hm(),{control:r=n.control,name:i,defaultValue:c,disabled:d,exact:u,compute:m}=e||{},h=re.useRef(c),p=re.useRef(m),g=re.useRef(void 0);p.current=m;const v=re.useMemo(()=>r._getWatch(i,h.current),[r,i]),[_,z]=re.useState(p.current?p.current(v):v);return R0(()=>r._subscribe({name:i,formState:{values:!0},exact:u,callback:$=>{if(!d){const j=T$(i,r._names,$.values||r._formValues,!1,h.current);if(p.current){const E=p.current(j);B0(E,g.current)||(z(E),g.current=E)}else z(j)}}}),[r,d,i,u]),re.useEffect(()=>r._removeUnmounted()),_}function C$(e){const n=Hm(),{name:r,disabled:i,control:c=n.control,shouldUnregister:d,defaultValue:u}=e,m=_$(c._names.array,r),h=re.useMemo(()=>Hn(c._formValues,r,Hn(c._defaultValues,r,u)),[c,r,u]),p=A$({control:c,name:r,defaultValue:h,exact:!0}),g=S$({control:c,name:r,exact:!0}),v=re.useRef(e),_=re.useRef(void 0),z=re.useRef(c.register(r,{...e.rules,value:p,...bb(e.disabled)?{disabled:e.disabled}:{}}));v.current=e;const $=re.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Hn(g.errors,r)},isDirty:{enumerable:!0,get:()=>!!Hn(g.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Hn(g.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Hn(g.validatingFields,r)},error:{enumerable:!0,get:()=>Hn(g.errors,r)}}),[g,r]),j=re.useCallback(w=>z.current.onChange({target:{value:v$(w),name:r},type:ax.CHANGE}),[r]),E=re.useCallback(()=>z.current.onBlur({target:{value:Hn(c._formValues,r),name:r},type:ax.BLUR}),[r,c._formValues]),L=re.useCallback(w=>{const N=Hn(c._fields,r);N&&w&&(N._f.ref={focus:()=>w.focus&&w.focus(),select:()=>w.select&&w.select(),setCustomValidity:D=>w.setCustomValidity(D),reportValidity:()=>w.reportValidity()})},[c._fields,r]),y=re.useMemo(()=>({name:r,value:p,...bb(i)||g.disabled?{disabled:g.disabled||i}:{},onChange:j,onBlur:E,ref:L}),[r,i,g.disabled,j,E,L,p]);return re.useEffect(()=>{const w=c._options.shouldUnregister||d,N=_.current;N&&N!==r&&!m&&c.unregister(N),c.register(r,{...v.current.rules,...bb(v.current.disabled)?{disabled:v.current.disabled}:{}});const D=(H,q)=>{const oe=Hn(c._fields,H);oe&&oe._f&&(oe._f.mount=q)};if(D(r,!0),w){const H=L0(Hn(c._options.defaultValues,r));rx(c._defaultValues,r,H),Jb(Hn(c._formValues,r))&&rx(c._formValues,r,H)}return!m&&c.register(r),_.current=r,()=>{(m?w&&!c._state.action:w)?c.unregister(r):D(r,!1)}},[r,c,m,d]),re.useEffect(()=>{c._setDisabledField({disabled:i,name:r})},[i,r,c]),re.useMemo(()=>({field:y,formState:g,fieldState:$}),[y,g,$])}const E$=e=>e.render(C$(e));function qn(e,n){const r=re.forwardRef((i,c)=>{const{name:d,control:u,rules:m,defaultValue:h,shouldUnregister:p,...g}=i;return re.createElement(E$,{name:d,control:u,rules:m,defaultValue:h,shouldUnregister:p,disabled:i._disabled,render:({field:v,fieldState:_})=>{const z=g._on,$={...g,ref:j=>{c&&(typeof c=="function"?c(j):c.current=j),j&&v.ref(j)},_name:d,_touched:_.isTouched,_disabled:v.disabled,_msg:_.error?{_type:"error",_description:_.error.message||String(_.error)}:void 0,_on:{...z||{},onInput:(j,E)=>{v.onChange(E),z?.onInput?.(j,E)},onChange:(j,E)=>{v.onChange(E),z?.onChange?.(j,E)},onBlur:j=>{v.onBlur(),z?.onBlur?.(j)}}};return n&&($[n]=v.value),re.createElement(e,{...$})}})});return r.displayName=`withController(${e.displayName||e.name||"Component"})`,r}const Qi=qn(Le,"_value"),D0=qn(Lo,"_value"),M0=qn(Wo,"_value"),I0=qn(Ao,"_value"),U0=qn(tn,"_value"),F0=qn(He,"_value"),H0=qn(Xo,"_value"),L$=qn(Mo),V0=qn(eo,"_value"),K0=qn(jn,"_value"),q0=qn(Qo,"_value"),Z0=qn(pn,"_value"),P0=qn(Oo,"_value"),G0=qn(ao,"_checked"),O$={firstName:"",lastName:"",email:"",password:"",age:18,volume:50,birthday:"",favoriteColor:"#000000",cv:null,bio:"",country:"",language:"de",framework:"",gender:"",termsAccepted:!1},$$=[{label:"English",value:"en"},{label:"German",value:"de"},{label:"French",value:"fr"}],N$=[{label:"React",value:"react"},{label:"Vue",value:"vue"},{label:"Stencil",value:"stencil"}],R$=[{label:"Male",value:"male"},{label:"Female",value:"female"},{label:"Other",value:"other"}],B$=["firstName","lastName","email","password","age","volume","birthday","favoriteColor","cv","bio","country","language","framework","gender","termsAccepted"],D$=()=>{const{control:e,handleSubmit:n,setValue:r,getValues:i,trigger:c}=El({defaultValues:O$,mode:"onTouched",shouldFocusError:!0}),d=()=>{B$.forEach(h=>{r(h,i(h),{shouldTouch:!0,shouldValidate:!0})})},u=h=>{alert(JSON.stringify(h,null,2))},m=h=>{d(),c(void 0,{shouldFocus:!0}),console.warn("Validation errors:",h)};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample demonstrates a form using React Hook Form with KoliBri adapters wrapped in a KolForm. All inputs are validated, and error messages are shown on submit."})}),a.jsx(kn,{className:"w-full max-w-xl",_on:{onSubmit:h=>{n(u,m)(h)}},children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Qi,{name:"firstName",control:e,_label:"First Name",rules:{required:"First name is required"},_required:!0}),a.jsx(Qi,{name:"lastName",control:e,_label:"Last Name",rules:{required:"Last name is required"},_required:!0}),a.jsx(M0,{name:"email",control:e,_label:"Email",rules:{required:"Email is required"},_required:!0}),a.jsx(D0,{name:"password",control:e,_label:"Password",rules:{required:"Password is required"},_required:!0}),a.jsx(I0,{name:"age",control:e,_label:"Age",rules:{required:"Age is required",min:0},_required:!0}),a.jsx(U0,{name:"volume",control:e,_label:"Volume (0–100)",_min:0,_max:100}),a.jsx(F0,{name:"birthday",control:e,_label:"Birthday",rules:{required:"Birthday is required"}}),a.jsx(H0,{name:"favoriteColor",control:e,_label:"Favorite Color",id:"favoriteColor"}),a.jsx(L$,{name:"cv",control:e,_label:"Upload CV",rules:{required:"Please upload your CV"},_required:!0}),a.jsx(V0,{name:"bio",control:e,_label:"Bio",rules:{required:"Please provide a short bio"},_required:!0}),a.jsx(K0,{control:e,rules:{required:"Please select a country"},name:"country",_label:"Country",_suggestions:tt,_required:!0}),a.jsx(q0,{control:e,rules:{required:"Please select a language"},name:"language",_label:"Preferred Language",_options:$$,_required:!0}),a.jsx(Z0,{rules:{required:"Please select a framework"},control:e,name:"framework",_label:"Favorite Framework",_options:N$,_required:!0}),a.jsx(P0,{control:e,rules:{required:"Please select your gender"},name:"gender",_label:"Gender",_options:R$,_required:!0}),a.jsx(G0,{name:"termsAccepted",control:e,_label:"I accept the terms and conditions",rules:{required:"You must accept the terms"},_required:!0}),a.jsx(X,{_label:"Submit",_type:"submit"})]})})]})},M$={first:"",second:""},I$=()=>{const{control:e,handleSubmit:n,watch:r}=El({defaultValues:M$}),i=c=>{alert(JSON.stringify(c,null,2))};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows two fields of which just one can be filled. The other gets disabled."})}),a.jsx(kn,{className:"w-full max-w-xl",_on:{onSubmit:c=>{n(i)(c)}},children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Qi,{name:"first",control:e,_label:"First",_disabled:!!r("second")}),a.jsx(Qi,{name:"second",control:e,_label:"Second",_disabled:!!r("first")}),a.jsx(X,{_label:"Submit",_type:"submit"})]})})]})},U$=()=>{const{dummyClickEventHandler:e}=Io(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"All interactive elements, such as buttons and input fields, should have the same height to ensure a consistent and visually balanced user interface."})}),a.jsxs("div",{className:"w-full flex flex-wrap gap-4",children:[a.jsx(X,{_icons:"codicon codicon-home",_label:"Button",_on:n}),a.jsx(X,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Button",_on:n}),a.jsx(We,{_href:"#",_icons:"codicon codicon-home",_label:"Link-Button",_on:n}),a.jsx(We,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Link-Button",_on:n}),a.jsx(jn,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_suggestions:[]}),a.jsx(Xo,{_hideLabel:!0,_icons:{left:"codicon codicon-home"},_label:"Input-Color"}),a.jsx(Mo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-File"}),a.jsx(He,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Date"}),a.jsx(Wo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Email"}),a.jsx(Ao,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Number"}),a.jsx(Lo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Password"}),a.jsx(tn,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Range"}),a.jsx(Le,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Text"}),a.jsx(Qo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_options:[]}),a.jsx(pn,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_options:[]}),a.jsx(eo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox"})]})]})},cx=(e,n,r)=>{if(e&&"reportValidity"in e){const i=de(r,n);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},Y0=(e,n)=>{for(const r in n.fields){const i=n.fields[r];i&&i.ref&&"reportValidity"in i.ref?cx(i.ref,r,e):i.refs&&i.refs.forEach(c=>cx(c,r,e))}},F$=(e,n)=>{n.shouldUseNativeValidation&&Y0(e,n);const r={};for(const i in e){const c=de(n.fields,i),d=Object.assign(e[i]||{},{ref:c&&c.ref});if(H$(n.names||Object.keys(e),i)){const u=Object.assign({},de(r,i));so(u,"root",d),so(r,i,u)}else so(r,i,d)}return r},H$=(e,n)=>e.some(r=>r.startsWith(n+"."));var V$=function(e,n){for(var r={};e.length;){var i=e[0],c=i.code,d=i.message,u=i.path.join(".");if(!r[u])if("unionErrors"in i){var m=i.unionErrors[0].errors[0];r[u]={message:m.message,type:m.code}}else r[u]={message:d,type:c};if("unionErrors"in i&&i.unionErrors.forEach(function(g){return g.errors.forEach(function(v){return e.push(v)})}),n){var h=r[u].types,p=h&&h[i.code];r[u]=d0(u,n,r,c,p?[].concat(p,i.message):i.message)}e.shift()}return r},K$=function(e,n,r){return r===void 0&&(r={}),function(i,c,d){try{return Promise.resolve((function(u,m){try{var h=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](i,n)).then(function(p){return d.shouldUseNativeValidation&&Y0({},d),{errors:{},values:r.raw?i:p}})}catch(p){return m(p)}return h&&h.then?h.then(void 0,m):h})(0,function(u){if((function(m){return Array.isArray(m?.errors)})(u))return{values:{},errors:F$(V$(u.errors,!d.shouldUseNativeValidation&&d.criteriaMode==="all"),d)};throw u}))}catch(u){return Promise.reject(u)}}};function W(e,n,r){function i(m,h){if(m._zod||Object.defineProperty(m,"_zod",{value:{def:h,constr:u,traits:new Set},enumerable:!1}),m._zod.traits.has(e))return;m._zod.traits.add(e),n(m,h);const p=u.prototype,g=Object.keys(p);for(let v=0;v<g.length;v++){const _=g[v];_ in m||(m[_]=p[_].bind(m))}}const c=r?.Parent??Object;class d extends c{}Object.defineProperty(d,"name",{value:e});function u(m){var h;const p=r?.Parent?new d:this;i(p,m),(h=p._zod).deferred??(h.deferred=[]);for(const g of p._zod.deferred)g();return p}return Object.defineProperty(u,"init",{value:i}),Object.defineProperty(u,Symbol.hasInstance,{value:m=>r?.Parent&&m instanceof r.Parent?!0:m?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class Tl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class J0 extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}const X0={};function Sa(e){return X0}function W0(e){const n=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,c])=>n.indexOf(+i)===-1).map(([i,c])=>c)}function Xb(e,n){return typeof n=="bigint"?n.toString():n}function Vm(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Km(e){return e==null}function qm(e){const n=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(n,r)}function q$(e,n){const r=(e.toString().split(".")[1]||"").length,i=n.toString();let c=(i.split(".")[1]||"").length;if(c===0&&/\d?e-\d?/.test(i)){const h=i.match(/\d?e-(\d?)/);h?.[1]&&(c=Number.parseInt(h[1]))}const d=r>c?r:c,u=Number.parseInt(e.toFixed(d).replace(".","")),m=Number.parseInt(n.toFixed(d).replace(".",""));return u%m/10**d}const sx=Symbol("evaluating");function po(e,n,r){let i;Object.defineProperty(e,n,{get(){if(i!==sx)return i===void 0&&(i=sx,i=r()),i},set(c){Object.defineProperty(e,n,{value:c})},configurable:!0})}function Ea(e,n,r){Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Yr(...e){const n={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(n,i)}return Object.defineProperties({},n)}function dx(e){return JSON.stringify(e)}function Z$(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Q0="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Xs(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const P$=Vm(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function ec(e){if(Xs(e)===!1)return!1;const n=e.constructor;if(n===void 0||typeof n!="function")return!0;const r=n.prototype;return!(Xs(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ew(e){return ec(e)?{...e}:Array.isArray(e)?[...e]:e}const G$=new Set(["string","number","symbol"]);function fd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Jr(e,n,r){const i=new e._zod.constr(n??e._zod.def);return(!n||r?.parent)&&(i._zod.parent=e),i}function je(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function Y$(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}const J$={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function X$(e,n){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const d=Yr(e._zod.def,{get shape(){const u={};for(const m in n){if(!(m in r.shape))throw new Error(`Unrecognized key: "${m}"`);n[m]&&(u[m]=r.shape[m])}return Ea(this,"shape",u),u},checks:[]});return Jr(e,d)}function W$(e,n){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const d=Yr(e._zod.def,{get shape(){const u={...e._zod.def.shape};for(const m in n){if(!(m in r.shape))throw new Error(`Unrecognized key: "${m}"`);n[m]&&delete u[m]}return Ea(this,"shape",u),u},checks:[]});return Jr(e,d)}function Q$(e,n){if(!ec(n))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const d=e._zod.def.shape;for(const u in n)if(Object.getOwnPropertyDescriptor(d,u)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const c=Yr(e._zod.def,{get shape(){const d={...e._zod.def.shape,...n};return Ea(this,"shape",d),d}});return Jr(e,c)}function eN(e,n){if(!ec(n))throw new Error("Invalid input to safeExtend: expected a plain object");const r=Yr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...n};return Ea(this,"shape",i),i}});return Jr(e,r)}function oN(e,n){const r=Yr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...n._zod.def.shape};return Ea(this,"shape",i),i},get catchall(){return n._zod.def.catchall},checks:[]});return Jr(e,r)}function nN(e,n,r){const c=n._zod.def.checks;if(c&&c.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const u=Yr(n._zod.def,{get shape(){const m=n._zod.def.shape,h={...m};if(r)for(const p in r){if(!(p in m))throw new Error(`Unrecognized key: "${p}"`);r[p]&&(h[p]=e?new e({type:"optional",innerType:m[p]}):m[p])}else for(const p in m)h[p]=e?new e({type:"optional",innerType:m[p]}):m[p];return Ea(this,"shape",h),h},checks:[]});return Jr(n,u)}function tN(e,n,r){const i=Yr(n._zod.def,{get shape(){const c=n._zod.def.shape,d={...c};if(r)for(const u in r){if(!(u in d))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(d[u]=new e({type:"nonoptional",innerType:c[u]}))}else for(const u in c)d[u]=new e({type:"nonoptional",innerType:c[u]});return Ea(this,"shape",d),d}});return Jr(n,i)}function Sl(e,n=0){if(e.aborted===!0)return!0;for(let r=n;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ow(e,n){return n.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function Ss(e){return typeof e=="string"?e:e?.message}function ja(e,n,r){const i={...e,path:e.path??[]};if(!e.message){const c=Ss(e.inst?._zod.def?.error?.(e))??Ss(n?.error?.(e))??Ss(r.customError?.(e))??Ss(r.localeError?.(e))??"Invalid input";i.message=c}return delete i.inst,delete i.continue,n?.reportInput||delete i.input,i}function Zm(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function oc(...e){const[n,r,i]=e;return typeof n=="string"?{message:n,code:"custom",input:r,inst:i}:{...n}}const nw=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,Xb,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tw=W("$ZodError",nw),rw=W("$ZodError",nw,{Parent:Error});function rN(e,n=r=>r.message){const r={},i=[];for(const c of e.issues)c.path.length>0?(r[c.path[0]]=r[c.path[0]]||[],r[c.path[0]].push(n(c))):i.push(n(c));return{formErrors:i,fieldErrors:r}}function aN(e,n=r=>r.message){const r={_errors:[]},i=c=>{for(const d of c.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map(u=>i({issues:u}));else if(d.code==="invalid_key")i({issues:d.issues});else if(d.code==="invalid_element")i({issues:d.issues});else if(d.path.length===0)r._errors.push(n(d));else{let u=r,m=0;for(;m<d.path.length;){const h=d.path[m];m===d.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(n(d))):u[h]=u[h]||{_errors:[]},u=u[h],m++}}};return i(e),r}const Pm=e=>(n,r,i,c)=>{const d=i?Object.assign(i,{async:!1}):{async:!1},u=n._zod.run({value:r,issues:[]},d);if(u instanceof Promise)throw new Tl;if(u.issues.length){const m=new(c?.Err??e)(u.issues.map(h=>ja(h,d,Sa())));throw Q0(m,c?.callee),m}return u.value},Gm=e=>async(n,r,i,c)=>{const d=i?Object.assign(i,{async:!0}):{async:!0};let u=n._zod.run({value:r,issues:[]},d);if(u instanceof Promise&&(u=await u),u.issues.length){const m=new(c?.Err??e)(u.issues.map(h=>ja(h,d,Sa())));throw Q0(m,c?.callee),m}return u.value},bd=e=>(n,r,i)=>{const c=i?{...i,async:!1}:{async:!1},d=n._zod.run({value:r,issues:[]},c);if(d instanceof Promise)throw new Tl;return d.issues.length?{success:!1,error:new(e??tw)(d.issues.map(u=>ja(u,c,Sa())))}:{success:!0,data:d.value}},lN=bd(rw),md=e=>async(n,r,i)=>{const c=i?Object.assign(i,{async:!0}):{async:!0};let d=n._zod.run({value:r,issues:[]},c);return d instanceof Promise&&(d=await d),d.issues.length?{success:!1,error:new e(d.issues.map(u=>ja(u,c,Sa())))}:{success:!0,data:d.value}},iN=md(rw),cN=e=>(n,r,i)=>{const c=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Pm(e)(n,r,c)},sN=e=>(n,r,i)=>Pm(e)(n,r,i),dN=e=>async(n,r,i)=>{const c=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Gm(e)(n,r,c)},uN=e=>async(n,r,i)=>Gm(e)(n,r,i),fN=e=>(n,r,i)=>{const c=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return bd(e)(n,r,c)},bN=e=>(n,r,i)=>bd(e)(n,r,i),mN=e=>async(n,r,i)=>{const c=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return md(e)(n,r,c)},hN=e=>async(n,r,i)=>md(e)(n,r,i),pN=/^[cC][^\s-]{8,}$/,kN=/^[0-9a-z]+$/,vN=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,gN=/^[0-9a-vA-V]{20}$/,_N=/^[A-Za-z0-9]{27}$/,xN=/^[a-zA-Z0-9_-]{21}$/,yN=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,wN=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ux=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,zN=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,SN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function jN(){return new RegExp(SN,"u")}const TN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,AN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,CN=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,EN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,LN=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,aw=/^[A-Za-z0-9_-]*$/,ON=/^\+[1-9]\d{6,14}$/,lw="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",$N=new RegExp(`^${lw}$`);function iw(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function NN(e){return new RegExp(`^${iw(e)}$`)}function RN(e){const n=iw({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${n}(?:${r.join("|")})`;return new RegExp(`^${lw}T(?:${i})$`)}const BN=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},DN=/^-?\d+$/,MN=/^-?\d+(?:\.\d+)?$/,IN=/^(?:true|false)$/i,UN=/^[^A-Z]*$/,FN=/^[^a-z]*$/,Zn=W("$ZodCheck",(e,n)=>{var r;e._zod??(e._zod={}),e._zod.def=n,(r=e._zod).onattach??(r.onattach=[])}),cw={number:"number",bigint:"bigint",object:"date"},sw=W("$ZodCheckLessThan",(e,n)=>{Zn.init(e,n);const r=cw[typeof n.value];e._zod.onattach.push(i=>{const c=i._zod.bag,d=(n.inclusive?c.maximum:c.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<d&&(n.inclusive?c.maximum=n.value:c.exclusiveMaximum=n.value)}),e._zod.check=i=>{(n.inclusive?i.value<=n.value:i.value<n.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof n.value=="object"?n.value.getTime():n.value,input:i.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),dw=W("$ZodCheckGreaterThan",(e,n)=>{Zn.init(e,n);const r=cw[typeof n.value];e._zod.onattach.push(i=>{const c=i._zod.bag,d=(n.inclusive?c.minimum:c.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>d&&(n.inclusive?c.minimum=n.value:c.exclusiveMinimum=n.value)}),e._zod.check=i=>{(n.inclusive?i.value>=n.value:i.value>n.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof n.value=="object"?n.value.getTime():n.value,input:i.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),HN=W("$ZodCheckMultipleOf",(e,n)=>{Zn.init(e,n),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=n.value)}),e._zod.check=r=>{if(typeof r.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%n.value===BigInt(0):q$(r.value,n.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:n.value,input:r.value,inst:e,continue:!n.abort})}}),VN=W("$ZodCheckNumberFormat",(e,n)=>{Zn.init(e,n),n.format=n.format||"float64";const r=n.format?.includes("int"),i=r?"int":"number",[c,d]=J$[n.format];e._zod.onattach.push(u=>{const m=u._zod.bag;m.format=n.format,m.minimum=c,m.maximum=d,r&&(m.pattern=DN)}),e._zod.check=u=>{const m=u.value;if(r){if(!Number.isInteger(m)){u.issues.push({expected:i,format:n.format,code:"invalid_type",continue:!1,input:m,inst:e});return}if(!Number.isSafeInteger(m)){m>0?u.issues.push({input:m,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!n.abort}):u.issues.push({input:m,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!n.abort});return}}m<c&&u.issues.push({origin:"number",input:m,code:"too_small",minimum:c,inclusive:!0,inst:e,continue:!n.abort}),m>d&&u.issues.push({origin:"number",input:m,code:"too_big",maximum:d,inclusive:!0,inst:e,continue:!n.abort})}}),KN=W("$ZodCheckMaxLength",(e,n)=>{var r;Zn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const c=i.value;return!Km(c)&&c.length!==void 0}),e._zod.onattach.push(i=>{const c=i._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<c&&(i._zod.bag.maximum=n.maximum)}),e._zod.check=i=>{const c=i.value;if(c.length<=n.maximum)return;const u=Zm(c);i.issues.push({origin:u,code:"too_big",maximum:n.maximum,inclusive:!0,input:c,inst:e,continue:!n.abort})}}),qN=W("$ZodCheckMinLength",(e,n)=>{var r;Zn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const c=i.value;return!Km(c)&&c.length!==void 0}),e._zod.onattach.push(i=>{const c=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>c&&(i._zod.bag.minimum=n.minimum)}),e._zod.check=i=>{const c=i.value;if(c.length>=n.minimum)return;const u=Zm(c);i.issues.push({origin:u,code:"too_small",minimum:n.minimum,inclusive:!0,input:c,inst:e,continue:!n.abort})}}),ZN=W("$ZodCheckLengthEquals",(e,n)=>{var r;Zn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const c=i.value;return!Km(c)&&c.length!==void 0}),e._zod.onattach.push(i=>{const c=i._zod.bag;c.minimum=n.length,c.maximum=n.length,c.length=n.length}),e._zod.check=i=>{const c=i.value,d=c.length;if(d===n.length)return;const u=Zm(c),m=d>n.length;i.issues.push({origin:u,...m?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!n.abort})}}),hd=W("$ZodCheckStringFormat",(e,n)=>{var r,i;Zn.init(e,n),e._zod.onattach.push(c=>{const d=c._zod.bag;d.format=n.format,n.pattern&&(d.patterns??(d.patterns=new Set),d.patterns.add(n.pattern))}),n.pattern?(r=e._zod).check??(r.check=c=>{n.pattern.lastIndex=0,!n.pattern.test(c.value)&&c.issues.push({origin:"string",code:"invalid_format",format:n.format,input:c.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(i=e._zod).check??(i.check=()=>{})}),PN=W("$ZodCheckRegex",(e,n)=>{hd.init(e,n),e._zod.check=r=>{n.pattern.lastIndex=0,!n.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),GN=W("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=UN),hd.init(e,n)}),YN=W("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=FN),hd.init(e,n)}),JN=W("$ZodCheckIncludes",(e,n)=>{Zn.init(e,n);const r=fd(n.includes),i=new RegExp(typeof n.position=="number"?`^.{${n.position}}${r}`:r);n.pattern=i,e._zod.onattach.push(c=>{const d=c._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(i)}),e._zod.check=c=>{c.value.includes(n.includes,n.position)||c.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:c.value,inst:e,continue:!n.abort})}}),XN=W("$ZodCheckStartsWith",(e,n)=>{Zn.init(e,n);const r=new RegExp(`^${fd(n.prefix)}.*`);n.pattern??(n.pattern=r),e._zod.onattach.push(i=>{const c=i._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(n.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:i.value,inst:e,continue:!n.abort})}}),WN=W("$ZodCheckEndsWith",(e,n)=>{Zn.init(e,n);const r=new RegExp(`.*${fd(n.suffix)}$`);n.pattern??(n.pattern=r),e._zod.onattach.push(i=>{const c=i._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(n.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:i.value,inst:e,continue:!n.abort})}}),QN=W("$ZodCheckOverwrite",(e,n)=>{Zn.init(e,n),e._zod.check=r=>{r.value=n.tx(r.value)}});class e9{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const i=n.split(`
|
|
25973
|
+
sit amet.`,MO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample demonstrates the ",a.jsx("code",{children:"_adjustHeight"}),"-property of KolTextarea. The textarea automatically grows with its content."]})}),a.jsx(vn,{className:"w-full",children:a.jsx(eo,{_adjustHeight:!0,_value:DO,_label:"Text input (auto grow)"})})]}),ex=S.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(eo,{...n,ref:r,_placeholder:"Placeholder",_label:"Text"})}),a.jsx(eo,{...n,_placeholder:"Placeholder",_required:!0,_msg:{_type:"error",_description:Fe},_label:"Text",_touched:!0,_hint:Cn}),a.jsx(eo,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"info",_description:"Just a hint"}}),a.jsx(eo,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"warning",_description:"Small warning"}}),a.jsx(eo,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"success",_description:"Success message"}}),a.jsx(eo,{...n,ref:r,_accessKey:"T",_label:"Text (3 rows)",_rows:3}),a.jsx(eo,{...n,ref:r,_label:"Text (placeholder)",_rows:3,_placeholder:"Placeholder"}),a.jsx(eo,{...n,ref:r,_label:"Text (disabled & placeholder)",_rows:3,_placeholder:"Placeholder",_disabled:!0}),a.jsx(eo,{...n,ref:r,_label:"Text (readonly)",_rows:3,_placeholder:"Placeholder",_readOnly:!0}),a.jsx(eo,{...n,ref:r,_label:"Text (disabled & value)",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_disabled:!0}),a.jsx(eo,{...n,ref:r,_label:"With access key",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_accessKey:"c"}),a.jsx(eo,{...n,ref:r,_label:"With short key",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_shortKey:"s"})]})}),IO=S.forwardRef(function(n,r){return a.jsxs(Rn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(ex,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(ex,{ref:r,...n,_hideLabel:!0})]})]})}),UO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolTextarea renders a text field. The sample shows KolTextarea in a form context with different variations and states."})}),a.jsx(En,{RefComponent:IO,showButtons:!1})]}),FO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample demonstrates the ",a.jsx("code",{children:"_resize"}),"-property of KolTextarea. The sample textarea can (only) be resized in the given direction."]})}),a.jsx(vn,{className:"w-full",children:a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(eo,{_label:"Text input (unset)"}),a.jsx(eo,{_resize:"vertical",_label:"Text input (vertical)"}),a.jsx(eo,{_resize:"none",_label:"Text input (none)"})]})})]}),HO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample demonstrates the ",a.jsx("code",{children:"_rows"}),"-property of KolTextarea. The sample textarea has a fixed row number of 10."]})}),a.jsx(vn,{className:"w-full",children:a.jsx(eo,{_rows:10,_label:"Texteingabe"})})]}),VO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["The sample demonstrates various ",a.jsx("code",{children:"KolTextarea"})," configurations — contrasting soft vs. hard ",a.jsx("code",{children:"_maxLength"})," settings and the optional",a.jsx("code",{children:"_hasCounter"})," — including one instance without length limits."]})}),a.jsxs("section",{className:"w-full flex flex-col gap-4",children:[a.jsx(eo,{_label:"Textarea with soft max length",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20,_hasCounter:!0,_maxLengthBehavior:"soft"}),a.jsx(eo,{_label:"Textarea with max length",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20}),a.jsx(eo,{_label:"Textarea with max length and counter",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20,_hasCounter:!0}),a.jsx(eo,{_label:"Textarea with counter",_value:"Lorem Ipsum",className:"mt-2",_hasCounter:!0})]})]}),KO={textarea:{basic:UO,"adjust-height":MO,resize:FO,rows:HO,"with-counter":VO}},qO=()=>{const[e]=Gr(),n=e.get("type"),r=Yr.getInstance(document),i=()=>{r.enqueue({description:"Toasty",label:"Initial Toast",type:"warning",onClose:()=>{console.log("Simple toast has been closed.")}})};S.useEffect(()=>{n&&r.enqueue({description:"Toasty",label:`Toast with type '${n}'`,type:n})},[n,r]);const c=()=>{r.enqueue({render:(m,{close:h})=>{zn(m).render(a.jsx(a.Fragment,{children:a.jsx(X,{_label:"Hello World from Toast!",_on:{onClick:()=>{console.log("Toast Button clicked!"),h()}}})}))},label:"Initial Toast",type:"warning"})},d=async()=>{const m=await r.enqueue({description:"I will disappear in two seconds...",label:"Good Bye",type:"warning"});m&&setTimeout(m,2e3)},u=()=>{r.closeAll()};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample demonstrates the toast service with all its options."})}),a.jsx("section",{className:"grid gap-4",children:a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(X,{_label:"Show simple toast",_on:{onClick:i}}),a.jsx(X,{_label:"Show complex toast",_on:{onClick:c}}),a.jsx(X,{_label:"Show toast and close after 2 seconds",_on:{onClick:()=>{d()}}}),a.jsx(X,{_label:"Close all toasts",_on:{onClick:u}})]})})]})},Um=["default","info","success","warning","error"],ZO=Um.map(e=>({label:e,value:e})),ox=e=>typeof e=="string"&&Um.includes(e),PO=()=>{const[e]=Gr(),n=e.get("type"),r=ox(n)?n:void 0,[i,c]=S.useState(()=>r??"default"),d=S.useMemo(()=>Yr.getInstance(document),[]);S.useEffect(()=>(Um.forEach(p=>{d.enqueue({description:"Toasty",label:`Toast with type '${p}'`,type:p})}),()=>{d.closeAll()}),[d]),S.useEffect(()=>{r&&c(r)},[r]);const u=(p,g)=>{ox(g)&&c(g)},m=()=>{d.enqueue({description:"Toasty",label:`Toast with type '${i}'`,type:i})},h=()=>{d.closeAll()};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample demonstrates the toast service with all its options. Use the configuration below to choose a toast type and open a toast with the card variant."})}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(No,{_orientation:"horizontal",_label:"Toast type",_value:i,_options:ZO,_on:{onChange:u}}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(X,{_label:`Open ${i} toast`,_on:{onClick:m}}),a.jsx(X,{_label:"Close all toasts",_on:{onClick:h}})]})]})]})},GO={toast:{basic:qO,configurator:PO}},YO=()=>{const e=[{_label:"Back",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-arrow-left"}}},{_label:"Next",_hideLabel:!0,_icons:{right:{icon:"codicon codicon-arrow-right"}}},{_href:"#/back-page",_label:"Simple Link 1"},{_href:"#/back-page",_label:"Simple Link 3"},{_label:"Bold"}];return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolToolbars renders a set of given control elements grouped into one toolbar where focus can be moved using the keyboard arrow keys. The sample features button and link elements."})}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(ue,{_label:"Orientation horizontal",_level:2}),a.jsx(wa,{class:"block w-fit",_label:"Toolbar",_items:e}),a.jsx(ue,{_label:"Orientation vertical",_level:2}),a.jsx(wa,{class:"block w-fit",_label:"Toolbar",_items:e,_orientation:"vertical"})]})]})},JO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolToolbars with some of the elements disabled."})}),a.jsx(wa,{_label:"Toolbar",class:"block w-fit",_items:[{_label:"Back",_disabled:!0,_hideLabel:!0,_icons:{left:{icon:"codicon codicon-arrow-left"}}},{_label:"Next",_hideLabel:!0,_icons:{right:{icon:"codicon codicon-arrow-right"}}},{_href:"#/back-page",_label:"Simple Link 1"},{_href:"#/back-page",_disabled:!0,_label:"Simple Link 3"},{_label:"Bold"}]})]}),XO={toolbar:{basic:YO,disabled:JO}},WO=()=>{const e=["🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵"];return e[Math.floor(Math.random()*e.length)]},QO=()=>{const e=S.useContext(Cm),{subPage:n}=K4(),[r,i]=S.useState("1 Home"),[c,d]=S.useState(!1),[u,m]=S.useState(!1),[h,p]=S.useState(!0),g=()=>{i(`1 Home ${WO()}`)},v=_=>({_href:`#/tree/basic/${_}${e?"?hideMenus":""}`,_active:_===n});return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolTree renders a keyboard accessible nested navigation. Branches of the tree can be collapsed or expanded."})}),a.jsxs(Rx,{_label:"Sitemap",class:"block w-fit",children:[a.jsx(an,{_label:r,...v("home")}),a.jsxs(an,{_label:"2 About (open initially)",...v("about"),_open:!0,children:[a.jsx(an,{_label:"2.0 Legal",...v("legal")}),a.jsxs(an,{_label:"2.1 Team",...v("team"),children:[a.jsx(an,{_label:"2.1.1. Values",...v("values")}),a.jsxs(an,{_label:"2.1.2. Members",...v("members"),children:[a.jsx(an,{_label:"2.1.2.1 Humans",...v("humans")}),c&&a.jsx(an,{_label:"2.1.2.2 Pets",...v("pets")})]}),a.jsx(an,{_label:"2.1.3 Locations",...v("locations"),children:u&&a.jsxs(an,{_label:"2.1.3.1 Europe",...v("europe"),children:[a.jsx(an,{_label:"2.1.3.1.1 Denmark",...v("denmark")}),a.jsx(an,{_label:"2.1.3.1.2 Netherlands",...v("netherlands")})]})})]})]}),h&&a.jsxs(an,{_label:"3. Products",...v("products"),children:[a.jsxs(an,{_label:"3.1 Home",...v("home-products"),children:[a.jsx(an,{_label:"3.1.1 Refrigerators",...v("fridges")}),a.jsx(an,{_label:"3.1.2 Coffee makers",...v("coffee-makers")})]}),a.jsx(an,{_label:"3.1 Office",...v("office-products"),children:a.jsx(an,{_label:"3.2.1 Printers",...v("printers")})})]})]}),a.jsxs("p",{children:["Current tree item: ",n??"none"]}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(X,{_label:"Change label for '1 Home'",_on:{onClick:g}}),a.jsx(X,{_label:"Toggle '2.1.2.2 Pets'",_on:{onClick:()=>d(!c)}}),a.jsx(X,{_label:"Toggle '2.2.1 Europe' (two levels at once)",_on:{onClick:()=>m(!u)}}),a.jsx(X,{_label:"Toggle '3. Products'",_on:{onClick:()=>p(!h)}})]})]})},e$={tree:{"basic/:subPage":QO}},o$=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolVersion renders a label showing the given version number."})}),a.jsx(nd,{_label:"1.1.1"})]}),n$=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows KolVersion inline with text paragraph content."})}),a.jsxs("p",{children:[a.jsx(nd,{_label:"1.0.0"})," Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor."]})]}),t$={version:{basic:o$,context:n$}},r$=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This example show how different components works with tabIndex."})}),a.jsxs("div",{className:"w-full grid gap-4",children:[a.jsx(Ne,{_label:"Button",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(X,{_label:"Button 1, Tabindex 4",_variant:"primary",tabIndex:4}),a.jsx(X,{_disabled:!0,_label:"Button 2, Tabindex 3",_variant:"primary",tabIndex:3}),a.jsx(X,{_label:"Button 3, Tabindex 2",_variant:"primary",tabIndex:2}),a.jsx(X,{_label:"Button 4, Tabindex 1",_variant:"primary",tabIndex:1})]})}),a.jsx(Ne,{_label:"ButtonLink",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Ye,{_label:"ButtonLink 1, Tabindex 4",tabIndex:4}),a.jsx(Ye,{_disabled:!0,_label:"ButtonLink 2, Tabindex 3",tabIndex:3}),a.jsx(Ye,{_label:"ButtonLink 3, Tabindex 2",tabIndex:2}),a.jsx(Ye,{_label:"ButtonLink 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Ne,{_label:"Combobox",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Tn,{_hint:Cn,_label:"Combobox 1, Tabindex 4",_suggestions:lt,_value:"Deutschland",tabIndex:4}),a.jsx(Tn,{_disabled:!0,_hint:Cn,_label:"Combobox 2, Tabindex 3",_suggestions:lt,_value:"Deutschland",tabIndex:3}),a.jsx(Tn,{_touched:!0,_hint:Cn,_msg:{_type:"error",_description:Fe},_label:"Combobox 3, Tabindex 2",_suggestions:lt,_value:"Deutschland",tabIndex:2}),a.jsx(Tn,{_hint:Cn,_label:"Combobox 4, Tabindex 1",_suggestions:lt,_value:"Deutschland",tabIndex:1})]})}),a.jsx(Ne,{_label:"InputCheckbox",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(lo,{_label:"InputCheckbox 4, Tabindex 1",_value:!1,tabIndex:4}),a.jsx(lo,{_disabled:!0,_label:"InputCheckbox 3, Tabindex 2",_value:!1,tabIndex:3}),a.jsx(lo,{_touched:!0,_label:"InputCheckbox 2, Tabindex 3",_msg:{_type:"error",_description:Fe},_value:!1,tabIndex:2}),a.jsx(lo,{_label:"InputCheckbox 1, Tabindex 4",_value:!1,tabIndex:1})]})}),a.jsx(Ne,{_label:"InputColor",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(on,{_value:"#f08080",_label:"InputCheckbox 1, Tabindex 4",tabIndex:4}),a.jsx(on,{_disabled:!0,_value:"#f08080",_label:"InputCheckbox 2, Tabindex 3",tabIndex:3}),a.jsx(on,{_touched:!0,_value:"#f08080",_label:"InputCheckbox 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(on,{_value:"#f08080",_label:"InputCheckbox 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Ne,{_label:"InputDate",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Ve,{_type:"datetime-local",_label:"InputCheckbox 1, Tabindex 4",tabIndex:4}),a.jsx(Ve,{_disabled:!0,_type:"datetime-local",_label:"InputCheckbox 2, Tabindex 3",tabIndex:3}),a.jsx(Ve,{_touched:!0,_type:"datetime-local",_label:"InputCheckbox 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(Ve,{_type:"datetime-local",_label:"InputCheckbox 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Ne,{_label:"InputEmail",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(nn,{_label:"InputEmail 1, Tabindex 4",tabIndex:4}),a.jsx(nn,{_disabled:!0,_label:"InputEmail 2, Tabindex 3",tabIndex:3}),a.jsx(nn,{_touched:!0,_label:"InputEmail 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(nn,{_label:"InputEmail 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Ne,{_label:"InputFile",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Io,{_label:"InputFile 1, Tabindex 4",tabIndex:4}),a.jsx(Io,{_disabled:!0,_label:"InputFile 2, Tabindex 3",tabIndex:3}),a.jsx(Io,{_touched:!0,_label:"InputFile 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(Io,{_label:"InputFile 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Ne,{_label:"InputNumber",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Co,{_label:"InputNumber 1, Tabindex 4",tabIndex:4}),a.jsx(Co,{_disabled:!0,_label:"InputNumber 2, Tabindex 3",tabIndex:3}),a.jsx(Co,{_touched:!0,_label:"InputNumber 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(Co,{_label:"InputNumber 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Ne,{_label:"InputPassword",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx($o,{_label:"InputPassword 1, Tabindex 4",tabIndex:4}),a.jsx($o,{_disabled:!0,_label:"InputPassword 2, Tabindex 3",tabIndex:3}),a.jsx($o,{_touched:!0,_label:"InputPassword 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx($o,{_label:"InputPassword 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Ne,{_label:"InputRadio",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(No,{_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 1, Tabindex 4",tabIndex:4}),a.jsx(No,{_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 2, Tabindex 3",_disabled:!0,tabIndex:3}),a.jsx(No,{_touched:!0,_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2})," ",a.jsx(No,{_options:"[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]",_label:"InputRadio 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Ne,{_label:"InputRange",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(ln,{_label:"InputRange 1, Tabindex 4",_min:0,_max:50,tabIndex:4}),a.jsx(ln,{_disabled:!0,_label:"InputRange 2, Tabindex 3",_min:0,_max:50,tabIndex:3}),a.jsx(ln,{_touched:!0,_label:"InputRange 3, Tabindex 2",_min:0,_max:50,_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(ln,{_label:"InputRange 4, Tabindex 1",_min:0,_max:50,tabIndex:1})]})}),a.jsx(Ne,{_label:"InputText",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Le,{_label:"InputText 1, Tabindex 4",tabIndex:4}),a.jsx(Le,{_disabled:!0,_label:"InputText 2, Tabindex 3",tabIndex:3}),a.jsx(Le,{_touched:!0,_label:"InputText 3, Tabindex 2",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(Le,{_label:"InputText 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Ne,{_label:"LinkButton",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(We,{_href:"#/back-page",_label:"InputText 1, Tabindex 4",_variant:"primary",tabIndex:4}),a.jsx(We,{_disabled:!0,_href:"#/back-page",_label:"InputText 2, Tabindex 3",_variant:"primary",tabIndex:3}),a.jsx(We,{_href:"#/back-page",_label:"InputText 3, Tabindex 2",_variant:"primary",tabIndex:2}),a.jsx(We,{_href:"#/back-page",_label:"InputText 4, Tabindex 1",_variant:"primary",tabIndex:1})]})}),a.jsx(Ne,{_label:"Link",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(xe,{_href:"#/back-page",_label:"InputText 1, Tabindex 4",tabIndex:4}),a.jsx(xe,{_disabled:!0,_href:"#/back-page",_label:"InputText 2, Tabindex 3",tabIndex:3}),a.jsx(xe,{_href:"#/back-page",_label:"InputText 3, Tabindex 2",tabIndex:2}),a.jsx(xe,{_href:"#/back-page",_label:"InputText 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Ne,{_label:"SingleSelect",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(kn,{_label:"InputText 1, Tabindex 4",_options:at,_value:"de",tabIndex:4}),a.jsx(kn,{_disabled:!0,_label:"InputText 2, Tabindex 3",_options:at,_value:"de",tabIndex:3}),a.jsx(kn,{_touched:!0,_label:"InputText 3, Tabindex 2",_options:at,_msg:{_type:"error",_description:Fe},_value:"de",tabIndex:2}),a.jsx(kn,{_label:"InputText 4, Tabindex 1",_options:at,_value:"de",tabIndex:1})]})}),a.jsx(Ne,{_label:"SplitButton",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(zl,{_label:"InputText 1, Tabindex 4",tabIndex:4,children:"Dropdown-Inhalt"}),a.jsx(zl,{_label:"InputText 2, Tabindex 3",tabIndex:3,_disabled:!0,children:"Dropdown-Inhalt"}),a.jsx(zl,{_label:"InputText 3, Tabindex 2",tabIndex:2,children:"Dropdown-Inhalt"}),a.jsx(zl,{_label:"InputText 4, Tabindex 1",tabIndex:1,children:"Dropdown-Inhalt"})]})}),a.jsx(Ne,{_label:"Textarea",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(eo,{_label:"Textarea 1, Tabindex 4",_rows:3,_placeholder:"Placeholder",tabIndex:4}),a.jsx(eo,{_disabled:!0,_label:"Textarea 2, Tabindex 3",_rows:3,_placeholder:"Placeholder",tabIndex:3}),a.jsx(eo,{_touched:!0,_label:"Textarea 3, Tabindex 2",_rows:3,_placeholder:"Placeholder",_msg:{_type:"error",_description:Fe},tabIndex:2}),a.jsx(eo,{_label:"Textarea 4, Tabindex 1",_rows:3,_placeholder:"Placeholder",tabIndex:1})]})})]})]}),a$=()=>{const{dummyClickEventHandler:e}=Uo(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample demonstrates how tooltip animation duration and width can be customized via",a.jsx("code",{children:"--kolibri-tooltip-animation-duration"})," and ",a.jsx("code",{children:"--kol-tooltip-width"}),"."]})}),a.jsxs("div",{className:"flex justify-center items-center gap-4",children:[a.jsx(X,{_label:"Custom duration",_hideLabel:!0,style:{"--kolibri-tooltip-animation-duration":"2500ms"},_icons:"codicon codicon-clock",_on:n}),a.jsx(X,{_label:"Custom width",_hideLabel:!0,style:{"--kol-tooltip-width":"400px"},_icons:"codicon codicon-arrow-both",_on:n})]})]})},l$=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"KolForm with KolInputDate inside to make sure enter on the date icon does not submit the form."})}),a.jsxs(vn,{_on:{onSubmit:()=>{console.error("submitted"),alert("submitted")}},children:[a.jsx(Ve,{_label:"date",_name:"datum"}),a.jsx(X,{_label:"Submit",_type:"submit"})]})]}),zs=[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],i$=()=>{const{dummyClickEventHandler:e}=Uo(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsxs(K,{children:[a.jsx("p",{children:"This example shows how deactivated interactive elements are displayed."}),a.jsxs("ul",{children:[a.jsx("li",{children:"Deactivated interactive elements pose a particular challenge for accessibility."}),a.jsx("li",{children:"It must not be possible to focus on deactivated interactive elements, otherwise the tab paths will be unnecessarily extended."}),a.jsx("li",{children:"Deactivated interactive elements should be labelled clearly and legibly."}),a.jsx("li",{children:"Deactivated interactive elements have a tooltip for sighted people and aria labelling for the screen readers reading mode if they are represented by an interpretable graphic."})]}),a.jsx("p",{children:"This implementation ensures standardized use for all users."})]}),a.jsxs("div",{className:"w-full grid gap-4",children:[a.jsx(Ne,{_label:"Button",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_label:"Label",_on:n}),a.jsx(X,{_disabled:!0,_label:"Label",_on:n}),a.jsx(X,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label",_on:n}),a.jsx(X,{_disabled:!0,_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label",_on:n})]})}),a.jsx(Ne,{_label:"ButtonLink",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(Ye,{_label:"Label"}),a.jsx(Ye,{_disabled:!0,_label:"Label"}),a.jsx(Ye,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label"}),a.jsx(Ye,{_hideLabel:!0,_icons:"codicon codicon-home",_disabled:!0,_label:"Label"})]})}),a.jsx(Ne,{_label:"Link",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(xe,{_href:"#",_label:"Label"}),a.jsx(xe,{_disabled:!0,_href:"#",_label:"Label"}),a.jsx(xe,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"}),a.jsx(xe,{_disabled:!0,_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"})]})}),a.jsx(Ne,{_label:"LinkButton",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(We,{_href:"#",_label:"Label"}),a.jsx(We,{_disabled:!0,_href:"#",_label:"Label"}),a.jsx(We,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"}),a.jsx(We,{_disabled:!0,_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"})]})}),a.jsx(Ne,{_label:"Accordion",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(dn,{_label:"Label",children:"Content"}),a.jsx(dn,{_disabled:!0,_label:"Label",children:"Content"}),a.jsx(dn,{_label:"Label (open)",_open:!0,children:"Content"}),a.jsx(dn,{_disabled:!0,_label:"Label (open)",_open:!0,children:"Content"})]})}),a.jsx(Ne,{_label:"Details",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ar,{_label:"Label",children:"Content"}),a.jsx(ar,{_disabled:!0,_label:"Label",children:"Content"}),a.jsx(ar,{_label:"Label (open)",_open:!0,children:"Content"}),a.jsx(ar,{_disabled:!0,_label:"Label (open)",_open:!0,children:"Content"})]})}),[lo,on,Ve,nn,Io,Co,$o,ln,Le].map(r=>{const c=r.render.displayName;return a.jsx(Ne,{_label:c,_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(r,{_label:"Label"}),a.jsx(r,{_disabled:!0,_label:"Label"}),a.jsx(r,{_hideLabel:!0,_label:"Label"}),a.jsx(r,{_disabled:!0,_hideLabel:!0,_label:"Label"})]})},c)}),[No,tn].map(r=>{const c=r.render.displayName;return a.jsx(Ne,{_label:c,_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(r,{_label:"Label",_options:zs}),a.jsx(r,{_disabled:!0,_label:"Label",_options:zs}),a.jsx(r,{_hideLabel:!0,_label:"Label",_options:zs}),a.jsx(r,{_disabled:!0,_hideLabel:!0,_label:"Label",_options:zs})]})},c)}),a.jsx(Ne,{_label:"KolTextarea",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(eo,{_label:"Label",_rows:3}),a.jsx(eo,{_disabled:!0,_label:"Label",_rows:3}),a.jsx(eo,{_hideLabel:!0,_label:"Label",_rows:3}),a.jsx(eo,{_disabled:!0,_hideLabel:!0,_label:"Label",_rows:3})]})})]})]})},T0=()=>{const e=new Map;return e.set("inputCheckbox",(n,r)=>a.jsx(lo,{className:"w-full",_name:"checkbox",_label:"Checkbox",ref:r})),e.set("inputColor",(n,r)=>a.jsx(on,{className:"w-full",_name:"color",_label:"Color",ref:r})),e.set("inputDate",(n,r)=>a.jsx(Ve,{className:"w-full",_name:"date",_label:"Date",ref:r})),e.set("inputEmail",(n,r)=>a.jsx(nn,{className:"w-full",_name:"email",_label:"Email",ref:r})),e.set("inputFile",(n,r)=>a.jsx(Io,{className:"w-full",_name:"file",_label:"File",ref:r})),e.set("inputFileMultiple",(n,r)=>a.jsx(Io,{className:"w-full",_name:"file",_label:"Files (multiple)",_multiple:!0,ref:r})),e.set("inputNumber",(n,r)=>a.jsx(Co,{className:"w-full",_name:"number",_label:"Number",ref:r})),e.set("inputPassword",(n,r)=>a.jsx($o,{className:"w-full",_name:"password",_label:"Password",ref:r})),e.set("inputRadio",(n,r)=>a.jsx(No,{className:"w-full",_name:"radio",_label:"Radio",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],_value:"A",ref:r})),e.set("inputRange",(n,r)=>a.jsx(ln,{className:"w-full",_name:"range",_label:"Range",ref:r})),e.set("inputText",(n,r)=>a.jsx(Le,{className:"w-full",_name:"text",_label:"Text",ref:r})),e.set("select",(n,r)=>a.jsx(tn,{className:"w-full",_name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],ref:r})),e.set("selectMultiple",(n,r)=>a.jsx(tn,{className:"w-full",_name:"select",_label:"Select (multiple)",_multiple:!0,_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],_rows:2,ref:r})),e.set("singleSelect",(n,r)=>a.jsx(kn,{className:"w-full",_name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],ref:r})),e.set("textarea",(n,r)=>a.jsx(eo,{className:"w-full",_name:"textarea",_label:"Textarea",_rows:5,ref:r})),e.set("accordion",(n,r)=>a.jsx(dn,{className:"w-full",_label:"Accordion here",ref:r})),e.set("button",(n,r)=>a.jsx("div",{children:a.jsx(X,{_label:"Button here",ref:r})})),e.set("buttonLink",(n,r)=>a.jsx(Ye,{_label:"ButtonLink here",ref:r})),e.set("combobox",(n,r)=>a.jsx(Tn,{className:"w-full",_label:"KolCombobox here",_suggestions:[],ref:r})),e.set("details",(n,r)=>a.jsx(ar,{className:"w-full",_label:"Details here",ref:r,children:"detailed details"})),e.set("link",(n,r)=>a.jsx(xe,{className:"w-full",_label:"Link here",_href:"#",ref:r})),e.set("linkButton",(n,r)=>a.jsx("div",{children:a.jsx(We,{_label:"LinkButton here",_href:"#",ref:r})})),e},nx=e=>{const r=[...S.useMemo(()=>T0(),[]).keys()].map(i=>i);return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample serves for automated tests of the focus state for input components. When loading one of the examples linked below, focus will be set on the element initially. When testing manually, you may have to reload the page after opening an example."})}),e.invalidComponent&&a.jsx(jn,{_type:"error",_variant:"card",children:"Component not found."}),a.jsx(ue,{_level:2,_label:"Focus Test Cases"}),a.jsx("ul",{children:r.map(i=>a.jsx("li",{children:a.jsx(xe,{_label:i,_href:`#/scenarios/focus-elements?component=${i}`})},i))})]})},c$=()=>{const e=S.useRef(null),n=S.useMemo(()=>T0(),[]),[r]=Gr(),i=r.get("component");if(S.useLayoutEffect(()=>{setTimeout(()=>{e.current?.focus()},500)},[e]),i){const c=n.get(i);if(!c)return a.jsx(nx,{invalidComponent:!0});const d=S.forwardRef(c);return a.jsx(d,{ref:e})}else return a.jsx(nx,{})},s$=[{name:"Elephant",species:"Loxodonta",habitat:"Savannah",diet:"Herbivore",lifespan:60},{name:"Tiger",species:"Panthera tigris",habitat:"Forest",diet:"Carnivore",lifespan:20},{name:"Kangaroo",species:"Macropus",habitat:"Grassland",diet:"Herbivore",lifespan:23},{name:"Penguin",species:"Aptenodytes forsteri",habitat:"Antarctica",diet:"Carnivore",lifespan:20},{name:"Giraffe",species:"Giraffa camelopardalis",habitat:"Savannah",diet:"Herbivore",lifespan:25},{name:"Panda",species:"Ailuropoda melanoleuca",habitat:"Forest",diet:"Herbivore",lifespan:20},{name:"Dolphin",species:"Delphinus delphis",habitat:"Ocean",diet:"Carnivore",lifespan:40},{name:"Eagle",species:"Aquila chrysaetos",habitat:"Mountains",diet:"Carnivore",lifespan:30},{name:"Koala",species:"Phascolarctos cinereus",habitat:"Forest",diet:"Herbivore",lifespan:18},{name:"Lion",species:"Panthera leo",habitat:"Savannah",diet:"Carnivore",lifespan:15},{name:"Zebra",species:"Equus quagga",habitat:"Savannah",diet:"Herbivore",lifespan:25},{name:"Wolf",species:"Canis lupus",habitat:"Forest",diet:"Carnivore",lifespan:14},{name:"Cheetah",species:"Acinonyx jubatus",habitat:"Savannah",diet:"Carnivore",lifespan:12},{name:"Polar Bear",species:"Ursus maritimus",habitat:"Arctic",diet:"Carnivore",lifespan:25},{name:"Rhinoceros",species:"Rhinocerotidae",habitat:"Savannah",diet:"Herbivore",lifespan:40},{name:"Hippopotamus",species:"Hippopotamus amphibius",habitat:"Rivers",diet:"Herbivore",lifespan:45},{name:"Chimpanzee",species:"Pan troglodytes",habitat:"Forest",diet:"Omnivore",lifespan:50},{name:"Orangutan",species:"Pongo",habitat:"Forest",diet:"Omnivore",lifespan:45},{name:"Leopard",species:"Panthera pardus",habitat:"Forest",diet:"Carnivore",lifespan:17},{name:"Hyena",species:"Hyaenidae",habitat:"Savannah",diet:"Carnivore",lifespan:25},{name:"Crocodile",species:"Crocodylidae",habitat:"Rivers",diet:"Carnivore",lifespan:70},{name:"Alligator",species:"Alligatoridae",habitat:"Swamps",diet:"Carnivore",lifespan:50},{name:"Ostrich",species:"Struthio camelus",habitat:"Savannah",diet:"Omnivore",lifespan:40},{name:"Flamingo",species:"Phoenicopterus",habitat:"Lakes",diet:"Omnivore",lifespan:30},{name:"Peacock",species:"Pavo cristatus",habitat:"Forest",diet:"Omnivore",lifespan:20},{name:"Parrot",species:"Psittaciformes",habitat:"Forest",diet:"Omnivore",lifespan:50},{name:"Toucan",species:"Ramphastidae",habitat:"Forest",diet:"Omnivore",lifespan:20},{name:"Sloth",species:"Folivora",habitat:"Forest",diet:"Herbivore",lifespan:30},{name:"Armadillo",species:"Dasypodidae",habitat:"Grassland",diet:"Omnivore",lifespan:15},{name:"Anteater",species:"Myrmecophaga tridactyla",habitat:"Forest",diet:"Insectivore",lifespan:14},{name:"Bat",species:"Chiroptera",habitat:"Caves",diet:"Omnivore",lifespan:20},{name:"Otter",species:"Lutrinae",habitat:"Rivers",diet:"Carnivore",lifespan:16},{name:"Beaver",species:"Castor",habitat:"Rivers",diet:"Herbivore",lifespan:24},{name:"Moose",species:"Alces alces",habitat:"Forest",diet:"Herbivore",lifespan:20},{name:"Deer",species:"Cervidae",habitat:"Forest",diet:"Herbivore",lifespan:20},{name:"Bison",species:"Bison bison",habitat:"Grassland",diet:"Herbivore",lifespan:20},{name:"Buffalo",species:"Syncerus caffer",habitat:"Savannah",diet:"Herbivore",lifespan:25},{name:"Camel",species:"Camelus",habitat:"Desert",diet:"Herbivore",lifespan:50},{name:"Llama",species:"Lama glama",habitat:"Mountains",diet:"Herbivore",lifespan:20},{name:"Alpaca",species:"Vicugna pacos",habitat:"Mountains",diet:"Herbivore",lifespan:20},{name:"Goat",species:"Capra aegagrus hircus",habitat:"Mountains",diet:"Herbivore",lifespan:18},{name:"Sheep",species:"Ovis aries",habitat:"Grassland",diet:"Herbivore",lifespan:12},{name:"Cow",species:"Bos taurus",habitat:"Grassland",diet:"Herbivore",lifespan:20},{name:"Pig",species:"Sus scrofa domesticus",habitat:"Farm",diet:"Omnivore",lifespan:15},{name:"Chicken",species:"Gallus gallus domesticus",habitat:"Farm",diet:"Omnivore",lifespan:10}],d$=[{_icons:"codicon codicon-pie-chart",_label:"Erster Tab"},{_icons:"codicon codicon-calendar",_label:"Zweiter Tab",_disabled:!0},{_icons:"codicon codicon-briefcase",_label:"Deaktivierter Tab",_disabled:!0},{_icons:"codicon codicon-telescope",_label:"Letzter Tab",_disabled:!0}],tx={horizontal:[[{key:"name",label:"Name",textAlign:"left",width:"400px"},{key:"species",label:"Species",textAlign:"left",width:"400px"},{key:"habitat",label:"Habitat",textAlign:"left",width:"400px"},{key:"diet",label:"Diet",textAlign:"left",width:"400px"},{key:"lifespan",label:"lifespan",textAlign:"right",width:"400px"}]]};function u$(){const[e]=S.useState(()=>{const n=tx.horizontal[0];let r=0;for(const i of n)r+=parseFloat(i.width?.replace("px","")||"0");return`${r}px`});return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This advanced scenario demonstrates a complex layout with KolTable featuring horizontal scrollbar within a tab-based navigation system. The table automatically calculates its minimum width based on column definitions and provides smooth horizontal scrolling when content exceeds the container width. This example showcases real-world usage in a dashboard-like interface with sidebar navigation and tabbed content areas."})}),a.jsxs("div",{className:"mainlayout",children:[a.jsx("aside",{className:"nav-area",children:a.jsx(Tl,{_label:"Main navigation",_links:z0,_hasCompactButton:!0,_hasIconsWhenExpanded:!0})}),a.jsx("div",{className:"content",children:a.jsxs(cr,{_tabs:d$,_align:"top",_label:"Demo Tabs",children:[a.jsx("div",{style:{overflow:"hidden"},children:a.jsx(ho,{_label:"Table for demonstration purposes with horizontal scrollbar",_minWidth:e,_headers:tx,_data:s$,_pagination:{_page:1},className:"block"})}),a.jsx("div",{}),a.jsx("div",{}),a.jsx("div",{})]})})]})]})}const f$=()=>{const e="Unrecognized phone number.",n="Choose at least two and up to five toppings.",r=["Mushrooms","Bell Peppers","Onions","Olives","Spinach","Tomatoes","Artichokes","Zucchini","Jalapeños","Basil"],i=[{label:"United States +1",value:"1"},{label:"Greece +30 ",value:"30"},{label:"Germany +49",value:"49"},{label:"Japan +81",value:"81"}];return a.jsxs(a.Fragment,{children:[a.jsxs(K,{children:[a.jsx("p",{children:"This sample shows how input components can be grouped together with just one error message, without repeating the message for every field."}),a.jsx("p",{children:"The sample only demonstrates how the errors can be displayed, an actual validation logic is not part of the example."})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Phone number"}),a.jsx(jn,{_alert:!0,_type:"error",_label:e}),a.jsxs("div",{className:"grid grid-cols-3 gap-4 max-w-2xl",children:[a.jsx(tn,{_options:i,_label:"CountryCode ",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0}),a.jsx(Le,{_label:"Area code",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0}),a.jsx(Le,{_label:"Local number",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0})]})]}),a.jsxs("fieldset",{className:"mt",children:[a.jsx("legend",{children:"Pizza toppings"}),a.jsx(jn,{_alert:!0,_type:"error",_label:n}),r.map(c=>a.jsx(lo,{_label:c,_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0},c))]})]})},A0=S.createContext(void 0),C0=S.createContext(!1),pn=e=>{const n=S.useRef(null),[r,i]=S.useState(void 0),[c,d]=S.useState(e.inputProps._value),u=e.formatter||JSON.stringify,m=S.useContext(A0),h=S.useContext(C0),p=async()=>{const v=await n.current?.getValue();i(v)};S.useEffect(()=>{const v=()=>{p()};return m?.addEventListener("runAll",v),()=>{m?.removeEventListener("runAll",v)}},[m]);const g=Object.fromEntries(["onInput","onChange","onBlur","onClick","onFocus","onMouseDown"].map(v=>[v,(_,z)=>{h&&console.log(e.inputProps._label,v,z,_),v==="onInput"&&d(z)}]));return a.jsx(a.Fragment,{children:a.jsxs("div",{className:"grid grid-cols-3 items-end gap-4","data-testid":e.testId,children:[a.jsx(e.InputComponent,{ref:n,_on:g,...e.inputProps,_value:c}),a.jsx(X,{_label:"getValue()",_on:{onClick:()=>{p()}}}),a.jsx("pre",{className:"text-base",children:u(r)})]})})},b$=()=>{const e=S.useMemo(()=>new EventTarget,[]),[n,r]=S.useState(!0);return a.jsx(a.Fragment,{children:a.jsx(A0.Provider,{value:e,children:a.jsxs(C0.Provider,{value:n,children:[a.jsx(K,{children:a.jsxs("p",{children:["This sample shows how the input components ",a.jsx("code",{children:"getValue()"}),` method works. It's called when clicking the "getValue()" button and prints the current value right next to itself.`]})}),a.jsxs("section",{className:"w-full flex flex-col",children:[a.jsx(Ne,{_label:"Sample options",className:"block ha mb-8",children:a.jsx(lo,{_label:"Log events to console",_value:!0,_checked:n,_on:{onChange:(i,c)=>r(c)}})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(pn,{testId:"scenario-inputText",InputComponent:Le,inputProps:{_label:"InputText"}}),a.jsx(pn,{testId:"scenario-inputCheckboxString",InputComponent:lo,inputProps:{_label:"KolInputCheckbox (value)",_value:"Checkbox True Value"}}),a.jsx(pn,{testId:"scenario-inputCheckboxBoolean",InputComponent:lo,inputProps:{_label:"KolInputCheckbox (boolean)"}}),a.jsx(pn,{testId:"scenario-inputColor",InputComponent:on,inputProps:{_label:"KolInputColor"}}),a.jsx(pn,{testId:"scenario-inputDate",InputComponent:Ve,inputProps:{_label:"KolInputDate"}}),a.jsx(pn,{testId:"scenario-inputEmail",InputComponent:nn,inputProps:{_label:"KolInputEmail"}}),a.jsx(pn,{testId:"scenario-inputFile",InputComponent:Io,inputProps:{_label:"KolInputFile"},formatter:i=>i instanceof FileList?`FileList{${Array.from(i).map(c=>c.name).join(", ")}}`:JSON.stringify(i)}),a.jsx(pn,{testId:"scenario-inputNumber",InputComponent:Co,inputProps:{_label:"KolInputNumber"}}),a.jsx(pn,{testId:"scenario-inputPassword",InputComponent:$o,inputProps:{_label:"KolInputPassword"}}),a.jsx(pn,{testId:"scenario-inputRange",InputComponent:ln,inputProps:{_label:"KolInputRange"}}),a.jsx(pn,{testId:"scenario-inputRadio",InputComponent:No,inputProps:{_label:"KolInputRadio",_orientation:"horizontal",_options:[{label:"New York",value:"New York"},{label:"Rio de Janeiro",value:"Rio de Janeiro"},{label:"Rosenheim",value:"Rosenheim"}],_value:"New York"}}),a.jsx(pn,{testId:"scenario-select",InputComponent:tn,inputProps:{_label:"KolSelect",_options:[{label:"New York",value:"New York"},{label:"Rio de Janeiro",value:"Rio de Janeiro"},{label:"Rosenheim",value:"Rosenheim"}]}}),a.jsx(pn,{testId:"scenario-singleSelect",InputComponent:kn,inputProps:{_label:"KolSingleSelect",_options:[{label:"New York",value:"New York"},{label:"Rio de Janeiro",value:"Rio de Janeiro"},{label:"Rosenheim",value:"Rosenheim"}],_value:"Rosenheim"}}),a.jsx(pn,{testId:"scenario-combobox",InputComponent:Tn,inputProps:{_label:"KolCombobox",_suggestions:lt,_value:"Deutschland"}}),a.jsx(pn,{testId:"scenario-textarea",InputComponent:eo,inputProps:{_label:"KolTextarea"}}),a.jsx(pn,{testId:"scenario-button",InputComponent:X,inputProps:{_label:"KolButton",_variant:"ghost",_value:"KolButton value"}}),a.jsx(pn,{testId:"scenario-buttonLink",InputComponent:Ye,inputProps:{_label:"KolButtonLink",_value:"KolButtonLink value"}}),a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsx("div",{}),a.jsx(X,{_label:"Run all",_variant:"primary",_on:{onClick:()=>{e.dispatchEvent(new Event("runAll"))}}})]})]})]})]})})})},m$=333,h$=new Array(m$).fill(0).map((e,n)=>n+1),p$=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This example renders many KoliBri components to show the performance."})}),a.jsx("div",{className:"w-full grid gap-4",children:h$.map(e=>a.jsxs("div",{className:"flex flex-wrap items-end gap-4",children:[a.jsx(Le,{_label:`TextInput #${e}`}),a.jsx(Co,{_label:`NumberInput #${e}`}),a.jsx(lo,{_label:`Checkbox #${e}`})]},e))})]});var k$=e=>e.type==="checkbox",Vi=e=>e instanceof Date,Fm=e=>e==null;const E0=e=>typeof e=="object";var Sa=e=>!Fm(e)&&!Array.isArray(e)&&E0(e)&&!Vi(e),v$=e=>Sa(e)&&e.target?k$(e.target)?e.target.checked:e.target.value:e,g$=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,_$=(e,n)=>e.has(g$(n)),x$=e=>{const n=e.constructor&&e.constructor.prototype;return Sa(n)&&n.hasOwnProperty("isPrototypeOf")},y$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function L0(e){let n;const r=Array.isArray(e),i=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)n=new Date(e);else if(!(y$&&(e instanceof Blob||i))&&(r||Sa(e)))if(n=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!x$(e))n=e;else for(const c in e)e.hasOwnProperty(c)&&(n[c]=L0(e[c]));else return e;return n}var O0=e=>/^\w*$/.test(e),Jb=e=>e===void 0,w$=e=>Array.isArray(e)?e.filter(Boolean):[],$0=e=>w$(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Kn=(e,n,r)=>{if(!n||!Sa(e))return r;const i=(O0(n)?[n]:$0(n)).reduce((c,d)=>Fm(c)?c:c[d],e);return Jb(i)||i===e?Jb(e[n])?r:e[n]:i},bb=e=>typeof e=="boolean",rx=(e,n,r)=>{let i=-1;const c=O0(n)?[n]:$0(n),d=c.length,u=d-1;for(;++i<d;){const m=c[i];let h=r;if(i!==u){const p=e[m];h=Sa(p)||Array.isArray(p)?p:isNaN(+c[i+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;e[m]=h,e=e[m]}};const ax={BLUR:"blur",CHANGE:"change"},lx={all:"all"},N0=re.createContext(null);N0.displayName="HookFormContext";const Hm=()=>re.useContext(N0);var z$=(e,n,r,i=!0)=>{const c={defaultValues:n._defaultValues};for(const d in e)Object.defineProperty(c,d,{get:()=>{const u=d;return n._proxyFormState[u]!==lx.all&&(n._proxyFormState[u]=!i||lx.all),r&&(r[u]=!0),e[u]}});return c};const R0=typeof window<"u"?re.useLayoutEffect:re.useEffect;function S$(e){const n=Hm(),{control:r=n.control,disabled:i,name:c,exact:d}=e||{},[u,m]=re.useState(r._formState),h=re.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return R0(()=>r._subscribe({name:c,formState:h.current,exact:d,callback:p=>{!i&&m({...r._formState,...p})}}),[c,i,d]),re.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),re.useMemo(()=>z$(u,r,h.current,!1),[u,r])}var j$=e=>typeof e=="string",T$=(e,n,r,i,c)=>j$(e)?Kn(r,e,c):Array.isArray(e)?e.map(d=>Kn(r,d)):r,ix=e=>Fm(e)||!E0(e);function B0(e,n,r=new WeakSet){if(ix(e)||ix(n))return e===n;if(Vi(e)&&Vi(n))return e.getTime()===n.getTime();const i=Object.keys(e),c=Object.keys(n);if(i.length!==c.length)return!1;if(r.has(e)||r.has(n))return!0;r.add(e),r.add(n);for(const d of i){const u=e[d];if(!c.includes(d))return!1;if(d!=="ref"){const m=n[d];if(Vi(u)&&Vi(m)||Sa(u)&&Sa(m)||Array.isArray(u)&&Array.isArray(m)?!B0(u,m,r):u!==m)return!1}}return!0}function A$(e){const n=Hm(),{control:r=n.control,name:i,defaultValue:c,disabled:d,exact:u,compute:m}=e||{},h=re.useRef(c),p=re.useRef(m),g=re.useRef(void 0);p.current=m;const v=re.useMemo(()=>r._getWatch(i,h.current),[r,i]),[_,z]=re.useState(p.current?p.current(v):v);return R0(()=>r._subscribe({name:i,formState:{values:!0},exact:u,callback:$=>{if(!d){const j=T$(i,r._names,$.values||r._formValues,!1,h.current);if(p.current){const E=p.current(j);B0(E,g.current)||(z(E),g.current=E)}else z(j)}}}),[r,d,i,u]),re.useEffect(()=>r._removeUnmounted()),_}function C$(e){const n=Hm(),{name:r,disabled:i,control:c=n.control,shouldUnregister:d,defaultValue:u}=e,m=_$(c._names.array,r),h=re.useMemo(()=>Kn(c._formValues,r,Kn(c._defaultValues,r,u)),[c,r,u]),p=A$({control:c,name:r,defaultValue:h,exact:!0}),g=S$({control:c,name:r,exact:!0}),v=re.useRef(e),_=re.useRef(void 0),z=re.useRef(c.register(r,{...e.rules,value:p,...bb(e.disabled)?{disabled:e.disabled}:{}}));v.current=e;const $=re.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Kn(g.errors,r)},isDirty:{enumerable:!0,get:()=>!!Kn(g.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Kn(g.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Kn(g.validatingFields,r)},error:{enumerable:!0,get:()=>Kn(g.errors,r)}}),[g,r]),j=re.useCallback(w=>z.current.onChange({target:{value:v$(w),name:r},type:ax.CHANGE}),[r]),E=re.useCallback(()=>z.current.onBlur({target:{value:Kn(c._formValues,r),name:r},type:ax.BLUR}),[r,c._formValues]),L=re.useCallback(w=>{const N=Kn(c._fields,r);N&&w&&(N._f.ref={focus:()=>w.focus&&w.focus(),select:()=>w.select&&w.select(),setCustomValidity:D=>w.setCustomValidity(D),reportValidity:()=>w.reportValidity()})},[c._fields,r]),y=re.useMemo(()=>({name:r,value:p,...bb(i)||g.disabled?{disabled:g.disabled||i}:{},onChange:j,onBlur:E,ref:L}),[r,i,g.disabled,j,E,L,p]);return re.useEffect(()=>{const w=c._options.shouldUnregister||d,N=_.current;N&&N!==r&&!m&&c.unregister(N),c.register(r,{...v.current.rules,...bb(v.current.disabled)?{disabled:v.current.disabled}:{}});const D=(H,q)=>{const oe=Kn(c._fields,H);oe&&oe._f&&(oe._f.mount=q)};if(D(r,!0),w){const H=L0(Kn(c._options.defaultValues,r));rx(c._defaultValues,r,H),Jb(Kn(c._formValues,r))&&rx(c._formValues,r,H)}return!m&&c.register(r),_.current=r,()=>{(m?w&&!c._state.action:w)?c.unregister(r):D(r,!1)}},[r,c,m,d]),re.useEffect(()=>{c._setDisabledField({disabled:i,name:r})},[i,r,c]),re.useMemo(()=>({field:y,formState:g,fieldState:$}),[y,g,$])}const E$=e=>e.render(C$(e));function Zn(e,n){const r=re.forwardRef((i,c)=>{const{name:d,control:u,rules:m,defaultValue:h,shouldUnregister:p,...g}=i;return re.createElement(E$,{name:d,control:u,rules:m,defaultValue:h,shouldUnregister:p,disabled:i._disabled,render:({field:v,fieldState:_})=>{const z=g._on,$={...g,ref:j=>{c&&(typeof c=="function"?c(j):c.current=j),j&&v.ref(j)},_name:d,_touched:_.isTouched,_disabled:v.disabled,_msg:_.error?{_type:"error",_description:_.error.message||String(_.error)}:void 0,_on:{...z||{},onInput:(j,E)=>{v.onChange(E),z?.onInput?.(j,E)},onChange:(j,E)=>{v.onChange(E),z?.onChange?.(j,E)},onBlur:j=>{v.onBlur(),z?.onBlur?.(j)}}};return n&&($[n]=v.value),re.createElement(e,{...$})}})});return r.displayName=`withController(${e.displayName||e.name||"Component"})`,r}const oc=Zn(Le,"_value"),D0=Zn($o,"_value"),M0=Zn(nn,"_value"),I0=Zn(Co,"_value"),U0=Zn(ln,"_value"),F0=Zn(Ve,"_value"),H0=Zn(on,"_value"),L$=Zn(Io),V0=Zn(eo,"_value"),K0=Zn(Tn,"_value"),q0=Zn(tn,"_value"),Z0=Zn(kn,"_value"),P0=Zn(No,"_value"),G0=Zn(lo,"_checked"),O$={firstName:"",lastName:"",email:"",password:"",age:18,volume:50,birthday:"",favoriteColor:"#000000",cv:null,bio:"",country:"",language:"de",framework:"",gender:"",termsAccepted:!1},$$=[{label:"English",value:"en"},{label:"German",value:"de"},{label:"French",value:"fr"}],N$=[{label:"React",value:"react"},{label:"Vue",value:"vue"},{label:"Stencil",value:"stencil"}],R$=[{label:"Male",value:"male"},{label:"Female",value:"female"},{label:"Other",value:"other"}],B$=["firstName","lastName","email","password","age","volume","birthday","favoriteColor","cv","bio","country","language","framework","gender","termsAccepted"],D$=()=>{const{control:e,handleSubmit:n,setValue:r,getValues:i,trigger:c}=Ll({defaultValues:O$,mode:"onTouched",shouldFocusError:!0}),d=()=>{B$.forEach(h=>{r(h,i(h),{shouldTouch:!0,shouldValidate:!0})})},u=h=>{alert(JSON.stringify(h,null,2))},m=h=>{d(),c(void 0,{shouldFocus:!0}),console.warn("Validation errors:",h)};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample demonstrates a form using React Hook Form with KoliBri adapters wrapped in a KolForm. All inputs are validated, and error messages are shown on submit."})}),a.jsx(vn,{className:"w-full max-w-xl",_on:{onSubmit:h=>{n(u,m)(h)}},children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(oc,{name:"firstName",control:e,_label:"First Name",rules:{required:"First name is required"},_required:!0}),a.jsx(oc,{name:"lastName",control:e,_label:"Last Name",rules:{required:"Last name is required"},_required:!0}),a.jsx(M0,{name:"email",control:e,_label:"Email",rules:{required:"Email is required"},_required:!0}),a.jsx(D0,{name:"password",control:e,_label:"Password",rules:{required:"Password is required"},_required:!0}),a.jsx(I0,{name:"age",control:e,_label:"Age",rules:{required:"Age is required",min:0},_required:!0}),a.jsx(U0,{name:"volume",control:e,_label:"Volume (0–100)",_min:0,_max:100}),a.jsx(F0,{name:"birthday",control:e,_label:"Birthday",rules:{required:"Birthday is required"}}),a.jsx(H0,{name:"favoriteColor",control:e,_label:"Favorite Color",id:"favoriteColor"}),a.jsx(L$,{name:"cv",control:e,_label:"Upload CV",rules:{required:"Please upload your CV"},_required:!0}),a.jsx(V0,{name:"bio",control:e,_label:"Bio",rules:{required:"Please provide a short bio"},_required:!0}),a.jsx(K0,{control:e,rules:{required:"Please select a country"},name:"country",_label:"Country",_suggestions:lt,_required:!0}),a.jsx(q0,{control:e,rules:{required:"Please select a language"},name:"language",_label:"Preferred Language",_options:$$,_required:!0}),a.jsx(Z0,{rules:{required:"Please select a framework"},control:e,name:"framework",_label:"Favorite Framework",_options:N$,_required:!0}),a.jsx(P0,{control:e,rules:{required:"Please select your gender"},name:"gender",_label:"Gender",_options:R$,_required:!0}),a.jsx(G0,{name:"termsAccepted",control:e,_label:"I accept the terms and conditions",rules:{required:"You must accept the terms"},_required:!0}),a.jsx(X,{_label:"Submit",_type:"submit"})]})})]})},M$={first:"",second:""},I$=()=>{const{control:e,handleSubmit:n,watch:r}=Ll({defaultValues:M$}),i=c=>{alert(JSON.stringify(c,null,2))};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This sample shows two fields of which just one can be filled. The other gets disabled."})}),a.jsx(vn,{className:"w-full max-w-xl",_on:{onSubmit:c=>{n(i)(c)}},children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(oc,{name:"first",control:e,_label:"First",_disabled:!!r("second")}),a.jsx(oc,{name:"second",control:e,_label:"Second",_disabled:!!r("first")}),a.jsx(X,{_label:"Submit",_type:"submit"})]})})]})},U$=()=>{const{dummyClickEventHandler:e}=Uo(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"All interactive elements, such as buttons and input fields, should have the same height to ensure a consistent and visually balanced user interface."})}),a.jsxs("div",{className:"w-full flex flex-wrap gap-4",children:[a.jsx(X,{_icons:"codicon codicon-home",_label:"Button",_on:n}),a.jsx(X,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Button",_on:n}),a.jsx(We,{_href:"#",_icons:"codicon codicon-home",_label:"Link-Button",_on:n}),a.jsx(We,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Link-Button",_on:n}),a.jsx(Tn,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_suggestions:[]}),a.jsx(on,{_hideLabel:!0,_icons:{left:"codicon codicon-home"},_label:"Input-Color"}),a.jsx(Io,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-File"}),a.jsx(Ve,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Date"}),a.jsx(nn,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Email"}),a.jsx(Co,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Number"}),a.jsx($o,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Password"}),a.jsx(ln,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Range"}),a.jsx(Le,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Text"}),a.jsx(tn,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_options:[]}),a.jsx(kn,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_options:[]}),a.jsx(eo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox"})]})]})},cx=(e,n,r)=>{if(e&&"reportValidity"in e){const i=se(r,n);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},Y0=(e,n)=>{for(const r in n.fields){const i=n.fields[r];i&&i.ref&&"reportValidity"in i.ref?cx(i.ref,r,e):i.refs&&i.refs.forEach(c=>cx(c,r,e))}},F$=(e,n)=>{n.shouldUseNativeValidation&&Y0(e,n);const r={};for(const i in e){const c=se(n.fields,i),d=Object.assign(e[i]||{},{ref:c&&c.ref});if(H$(n.names||Object.keys(e),i)){const u=Object.assign({},se(r,i));uo(u,"root",d),uo(r,i,u)}else uo(r,i,d)}return r},H$=(e,n)=>e.some(r=>r.startsWith(n+"."));var V$=function(e,n){for(var r={};e.length;){var i=e[0],c=i.code,d=i.message,u=i.path.join(".");if(!r[u])if("unionErrors"in i){var m=i.unionErrors[0].errors[0];r[u]={message:m.message,type:m.code}}else r[u]={message:d,type:c};if("unionErrors"in i&&i.unionErrors.forEach(function(g){return g.errors.forEach(function(v){return e.push(v)})}),n){var h=r[u].types,p=h&&h[i.code];r[u]=d0(u,n,r,c,p?[].concat(p,i.message):i.message)}e.shift()}return r},K$=function(e,n,r){return r===void 0&&(r={}),function(i,c,d){try{return Promise.resolve((function(u,m){try{var h=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](i,n)).then(function(p){return d.shouldUseNativeValidation&&Y0({},d),{errors:{},values:r.raw?i:p}})}catch(p){return m(p)}return h&&h.then?h.then(void 0,m):h})(0,function(u){if((function(m){return Array.isArray(m?.errors)})(u))return{values:{},errors:F$(V$(u.errors,!d.shouldUseNativeValidation&&d.criteriaMode==="all"),d)};throw u}))}catch(u){return Promise.reject(u)}}};function W(e,n,r){function i(m,h){if(m._zod||Object.defineProperty(m,"_zod",{value:{def:h,constr:u,traits:new Set},enumerable:!1}),m._zod.traits.has(e))return;m._zod.traits.add(e),n(m,h);const p=u.prototype,g=Object.keys(p);for(let v=0;v<g.length;v++){const _=g[v];_ in m||(m[_]=p[_].bind(m))}}const c=r?.Parent??Object;class d extends c{}Object.defineProperty(d,"name",{value:e});function u(m){var h;const p=r?.Parent?new d:this;i(p,m),(h=p._zod).deferred??(h.deferred=[]);for(const g of p._zod.deferred)g();return p}return Object.defineProperty(u,"init",{value:i}),Object.defineProperty(u,Symbol.hasInstance,{value:m=>r?.Parent&&m instanceof r.Parent?!0:m?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class Al extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class J0 extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}const X0={};function ja(e){return X0}function W0(e){const n=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,c])=>n.indexOf(+i)===-1).map(([i,c])=>c)}function Xb(e,n){return typeof n=="bigint"?n.toString():n}function Vm(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Km(e){return e==null}function qm(e){const n=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(n,r)}function q$(e,n){const r=(e.toString().split(".")[1]||"").length,i=n.toString();let c=(i.split(".")[1]||"").length;if(c===0&&/\d?e-\d?/.test(i)){const h=i.match(/\d?e-(\d?)/);h?.[1]&&(c=Number.parseInt(h[1]))}const d=r>c?r:c,u=Number.parseInt(e.toFixed(d).replace(".","")),m=Number.parseInt(n.toFixed(d).replace(".",""));return u%m/10**d}const sx=Symbol("evaluating");function po(e,n,r){let i;Object.defineProperty(e,n,{get(){if(i!==sx)return i===void 0&&(i=sx,i=r()),i},set(c){Object.defineProperty(e,n,{value:c})},configurable:!0})}function La(e,n,r){Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Jr(...e){const n={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(n,i)}return Object.defineProperties({},n)}function dx(e){return JSON.stringify(e)}function Z$(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Q0="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Xs(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const P$=Vm(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function nc(e){if(Xs(e)===!1)return!1;const n=e.constructor;if(n===void 0||typeof n!="function")return!0;const r=n.prototype;return!(Xs(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ew(e){return nc(e)?{...e}:Array.isArray(e)?[...e]:e}const G$=new Set(["string","number","symbol"]);function fd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Xr(e,n,r){const i=new e._zod.constr(n??e._zod.def);return(!n||r?.parent)&&(i._zod.parent=e),i}function je(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function Y$(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}const J$={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function X$(e,n){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const d=Jr(e._zod.def,{get shape(){const u={};for(const m in n){if(!(m in r.shape))throw new Error(`Unrecognized key: "${m}"`);n[m]&&(u[m]=r.shape[m])}return La(this,"shape",u),u},checks:[]});return Xr(e,d)}function W$(e,n){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const d=Jr(e._zod.def,{get shape(){const u={...e._zod.def.shape};for(const m in n){if(!(m in r.shape))throw new Error(`Unrecognized key: "${m}"`);n[m]&&delete u[m]}return La(this,"shape",u),u},checks:[]});return Xr(e,d)}function Q$(e,n){if(!nc(n))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const d=e._zod.def.shape;for(const u in n)if(Object.getOwnPropertyDescriptor(d,u)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const c=Jr(e._zod.def,{get shape(){const d={...e._zod.def.shape,...n};return La(this,"shape",d),d}});return Xr(e,c)}function eN(e,n){if(!nc(n))throw new Error("Invalid input to safeExtend: expected a plain object");const r=Jr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...n};return La(this,"shape",i),i}});return Xr(e,r)}function oN(e,n){const r=Jr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...n._zod.def.shape};return La(this,"shape",i),i},get catchall(){return n._zod.def.catchall},checks:[]});return Xr(e,r)}function nN(e,n,r){const c=n._zod.def.checks;if(c&&c.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const u=Jr(n._zod.def,{get shape(){const m=n._zod.def.shape,h={...m};if(r)for(const p in r){if(!(p in m))throw new Error(`Unrecognized key: "${p}"`);r[p]&&(h[p]=e?new e({type:"optional",innerType:m[p]}):m[p])}else for(const p in m)h[p]=e?new e({type:"optional",innerType:m[p]}):m[p];return La(this,"shape",h),h},checks:[]});return Xr(n,u)}function tN(e,n,r){const i=Jr(n._zod.def,{get shape(){const c=n._zod.def.shape,d={...c};if(r)for(const u in r){if(!(u in d))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(d[u]=new e({type:"nonoptional",innerType:c[u]}))}else for(const u in c)d[u]=new e({type:"nonoptional",innerType:c[u]});return La(this,"shape",d),d}});return Xr(n,i)}function jl(e,n=0){if(e.aborted===!0)return!0;for(let r=n;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ow(e,n){return n.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function Ss(e){return typeof e=="string"?e:e?.message}function Ta(e,n,r){const i={...e,path:e.path??[]};if(!e.message){const c=Ss(e.inst?._zod.def?.error?.(e))??Ss(n?.error?.(e))??Ss(r.customError?.(e))??Ss(r.localeError?.(e))??"Invalid input";i.message=c}return delete i.inst,delete i.continue,n?.reportInput||delete i.input,i}function Zm(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function tc(...e){const[n,r,i]=e;return typeof n=="string"?{message:n,code:"custom",input:r,inst:i}:{...n}}const nw=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,Xb,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tw=W("$ZodError",nw),rw=W("$ZodError",nw,{Parent:Error});function rN(e,n=r=>r.message){const r={},i=[];for(const c of e.issues)c.path.length>0?(r[c.path[0]]=r[c.path[0]]||[],r[c.path[0]].push(n(c))):i.push(n(c));return{formErrors:i,fieldErrors:r}}function aN(e,n=r=>r.message){const r={_errors:[]},i=c=>{for(const d of c.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map(u=>i({issues:u}));else if(d.code==="invalid_key")i({issues:d.issues});else if(d.code==="invalid_element")i({issues:d.issues});else if(d.path.length===0)r._errors.push(n(d));else{let u=r,m=0;for(;m<d.path.length;){const h=d.path[m];m===d.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(n(d))):u[h]=u[h]||{_errors:[]},u=u[h],m++}}};return i(e),r}const Pm=e=>(n,r,i,c)=>{const d=i?Object.assign(i,{async:!1}):{async:!1},u=n._zod.run({value:r,issues:[]},d);if(u instanceof Promise)throw new Al;if(u.issues.length){const m=new(c?.Err??e)(u.issues.map(h=>Ta(h,d,ja())));throw Q0(m,c?.callee),m}return u.value},Gm=e=>async(n,r,i,c)=>{const d=i?Object.assign(i,{async:!0}):{async:!0};let u=n._zod.run({value:r,issues:[]},d);if(u instanceof Promise&&(u=await u),u.issues.length){const m=new(c?.Err??e)(u.issues.map(h=>Ta(h,d,ja())));throw Q0(m,c?.callee),m}return u.value},bd=e=>(n,r,i)=>{const c=i?{...i,async:!1}:{async:!1},d=n._zod.run({value:r,issues:[]},c);if(d instanceof Promise)throw new Al;return d.issues.length?{success:!1,error:new(e??tw)(d.issues.map(u=>Ta(u,c,ja())))}:{success:!0,data:d.value}},lN=bd(rw),md=e=>async(n,r,i)=>{const c=i?Object.assign(i,{async:!0}):{async:!0};let d=n._zod.run({value:r,issues:[]},c);return d instanceof Promise&&(d=await d),d.issues.length?{success:!1,error:new e(d.issues.map(u=>Ta(u,c,ja())))}:{success:!0,data:d.value}},iN=md(rw),cN=e=>(n,r,i)=>{const c=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Pm(e)(n,r,c)},sN=e=>(n,r,i)=>Pm(e)(n,r,i),dN=e=>async(n,r,i)=>{const c=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Gm(e)(n,r,c)},uN=e=>async(n,r,i)=>Gm(e)(n,r,i),fN=e=>(n,r,i)=>{const c=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return bd(e)(n,r,c)},bN=e=>(n,r,i)=>bd(e)(n,r,i),mN=e=>async(n,r,i)=>{const c=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return md(e)(n,r,c)},hN=e=>async(n,r,i)=>md(e)(n,r,i),pN=/^[cC][^\s-]{8,}$/,kN=/^[0-9a-z]+$/,vN=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,gN=/^[0-9a-vA-V]{20}$/,_N=/^[A-Za-z0-9]{27}$/,xN=/^[a-zA-Z0-9_-]{21}$/,yN=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,wN=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ux=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,zN=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,SN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function jN(){return new RegExp(SN,"u")}const TN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,AN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,CN=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,EN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,LN=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,aw=/^[A-Za-z0-9_-]*$/,ON=/^\+[1-9]\d{6,14}$/,lw="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",$N=new RegExp(`^${lw}$`);function iw(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function NN(e){return new RegExp(`^${iw(e)}$`)}function RN(e){const n=iw({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${n}(?:${r.join("|")})`;return new RegExp(`^${lw}T(?:${i})$`)}const BN=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},DN=/^-?\d+$/,MN=/^-?\d+(?:\.\d+)?$/,IN=/^(?:true|false)$/i,UN=/^[^A-Z]*$/,FN=/^[^a-z]*$/,Pn=W("$ZodCheck",(e,n)=>{var r;e._zod??(e._zod={}),e._zod.def=n,(r=e._zod).onattach??(r.onattach=[])}),cw={number:"number",bigint:"bigint",object:"date"},sw=W("$ZodCheckLessThan",(e,n)=>{Pn.init(e,n);const r=cw[typeof n.value];e._zod.onattach.push(i=>{const c=i._zod.bag,d=(n.inclusive?c.maximum:c.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<d&&(n.inclusive?c.maximum=n.value:c.exclusiveMaximum=n.value)}),e._zod.check=i=>{(n.inclusive?i.value<=n.value:i.value<n.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof n.value=="object"?n.value.getTime():n.value,input:i.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),dw=W("$ZodCheckGreaterThan",(e,n)=>{Pn.init(e,n);const r=cw[typeof n.value];e._zod.onattach.push(i=>{const c=i._zod.bag,d=(n.inclusive?c.minimum:c.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>d&&(n.inclusive?c.minimum=n.value:c.exclusiveMinimum=n.value)}),e._zod.check=i=>{(n.inclusive?i.value>=n.value:i.value>n.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof n.value=="object"?n.value.getTime():n.value,input:i.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),HN=W("$ZodCheckMultipleOf",(e,n)=>{Pn.init(e,n),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=n.value)}),e._zod.check=r=>{if(typeof r.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%n.value===BigInt(0):q$(r.value,n.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:n.value,input:r.value,inst:e,continue:!n.abort})}}),VN=W("$ZodCheckNumberFormat",(e,n)=>{Pn.init(e,n),n.format=n.format||"float64";const r=n.format?.includes("int"),i=r?"int":"number",[c,d]=J$[n.format];e._zod.onattach.push(u=>{const m=u._zod.bag;m.format=n.format,m.minimum=c,m.maximum=d,r&&(m.pattern=DN)}),e._zod.check=u=>{const m=u.value;if(r){if(!Number.isInteger(m)){u.issues.push({expected:i,format:n.format,code:"invalid_type",continue:!1,input:m,inst:e});return}if(!Number.isSafeInteger(m)){m>0?u.issues.push({input:m,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!n.abort}):u.issues.push({input:m,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!n.abort});return}}m<c&&u.issues.push({origin:"number",input:m,code:"too_small",minimum:c,inclusive:!0,inst:e,continue:!n.abort}),m>d&&u.issues.push({origin:"number",input:m,code:"too_big",maximum:d,inclusive:!0,inst:e,continue:!n.abort})}}),KN=W("$ZodCheckMaxLength",(e,n)=>{var r;Pn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const c=i.value;return!Km(c)&&c.length!==void 0}),e._zod.onattach.push(i=>{const c=i._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<c&&(i._zod.bag.maximum=n.maximum)}),e._zod.check=i=>{const c=i.value;if(c.length<=n.maximum)return;const u=Zm(c);i.issues.push({origin:u,code:"too_big",maximum:n.maximum,inclusive:!0,input:c,inst:e,continue:!n.abort})}}),qN=W("$ZodCheckMinLength",(e,n)=>{var r;Pn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const c=i.value;return!Km(c)&&c.length!==void 0}),e._zod.onattach.push(i=>{const c=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>c&&(i._zod.bag.minimum=n.minimum)}),e._zod.check=i=>{const c=i.value;if(c.length>=n.minimum)return;const u=Zm(c);i.issues.push({origin:u,code:"too_small",minimum:n.minimum,inclusive:!0,input:c,inst:e,continue:!n.abort})}}),ZN=W("$ZodCheckLengthEquals",(e,n)=>{var r;Pn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const c=i.value;return!Km(c)&&c.length!==void 0}),e._zod.onattach.push(i=>{const c=i._zod.bag;c.minimum=n.length,c.maximum=n.length,c.length=n.length}),e._zod.check=i=>{const c=i.value,d=c.length;if(d===n.length)return;const u=Zm(c),m=d>n.length;i.issues.push({origin:u,...m?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!n.abort})}}),hd=W("$ZodCheckStringFormat",(e,n)=>{var r,i;Pn.init(e,n),e._zod.onattach.push(c=>{const d=c._zod.bag;d.format=n.format,n.pattern&&(d.patterns??(d.patterns=new Set),d.patterns.add(n.pattern))}),n.pattern?(r=e._zod).check??(r.check=c=>{n.pattern.lastIndex=0,!n.pattern.test(c.value)&&c.issues.push({origin:"string",code:"invalid_format",format:n.format,input:c.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(i=e._zod).check??(i.check=()=>{})}),PN=W("$ZodCheckRegex",(e,n)=>{hd.init(e,n),e._zod.check=r=>{n.pattern.lastIndex=0,!n.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),GN=W("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=UN),hd.init(e,n)}),YN=W("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=FN),hd.init(e,n)}),JN=W("$ZodCheckIncludes",(e,n)=>{Pn.init(e,n);const r=fd(n.includes),i=new RegExp(typeof n.position=="number"?`^.{${n.position}}${r}`:r);n.pattern=i,e._zod.onattach.push(c=>{const d=c._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(i)}),e._zod.check=c=>{c.value.includes(n.includes,n.position)||c.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:c.value,inst:e,continue:!n.abort})}}),XN=W("$ZodCheckStartsWith",(e,n)=>{Pn.init(e,n);const r=new RegExp(`^${fd(n.prefix)}.*`);n.pattern??(n.pattern=r),e._zod.onattach.push(i=>{const c=i._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(n.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:i.value,inst:e,continue:!n.abort})}}),WN=W("$ZodCheckEndsWith",(e,n)=>{Pn.init(e,n);const r=new RegExp(`.*${fd(n.suffix)}$`);n.pattern??(n.pattern=r),e._zod.onattach.push(i=>{const c=i._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(n.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:i.value,inst:e,continue:!n.abort})}}),QN=W("$ZodCheckOverwrite",(e,n)=>{Pn.init(e,n),e._zod.check=r=>{r.value=n.tx(r.value)}});class e9{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const i=n.split(`
|
|
25974
25974
|
`).filter(u=>u),c=Math.min(...i.map(u=>u.length-u.trimStart().length)),d=i.map(u=>u.slice(c)).map(u=>" ".repeat(this.indent*2)+u);for(const u of d)this.content.push(u)}compile(){const n=Function,r=this?.args,c=[...(this?.content??[""]).map(d=>` ${d}`)];return new n(...r,c.join(`
|
|
25975
|
-
`))}}const o9={major:4,minor:3,patch:6},
|
|
25975
|
+
`))}}const o9={major:4,minor:3,patch:6},Fo=W("$ZodType",(e,n)=>{var r;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=o9;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const c of i)for(const d of c._zod.onattach)d(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const c=(u,m,h)=>{let p=jl(u),g;for(const v of m){if(v._zod.def.when){if(!v._zod.def.when(u))continue}else if(p)continue;const _=u.issues.length,z=v._zod.check(u);if(z instanceof Promise&&h?.async===!1)throw new Al;if(g||z instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await z,u.issues.length!==_&&(p||(p=jl(u,_)))});else{if(u.issues.length===_)continue;p||(p=jl(u,_))}}return g?g.then(()=>u):u},d=(u,m,h)=>{if(jl(u))return u.aborted=!0,u;const p=c(m,i,h);if(p instanceof Promise){if(h.async===!1)throw new Al;return p.then(g=>e._zod.parse(g,h))}return e._zod.parse(p,h)};e._zod.run=(u,m)=>{if(m.skipChecks)return e._zod.parse(u,m);if(m.direction==="backward"){const p=e._zod.parse({value:u.value,issues:[]},{...m,skipChecks:!0});return p instanceof Promise?p.then(g=>d(g,u,m)):d(p,u,m)}const h=e._zod.parse(u,m);if(h instanceof Promise){if(m.async===!1)throw new Al;return h.then(p=>c(p,i,m))}return c(h,i,m)}}po(e,"~standard",()=>({validate:c=>{try{const d=lN(e,c);return d.success?{value:d.data}:{issues:d.error?.issues}}catch{return iN(e,c).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}))}),Ym=W("$ZodString",(e,n)=>{Fo.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??BN(e._zod.bag),e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Eo=W("$ZodStringFormat",(e,n)=>{hd.init(e,n),Ym.init(e,n)}),n9=W("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=wN),Eo.init(e,n)}),t9=W("$ZodUUID",(e,n)=>{if(n.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(i===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=ux(i))}else n.pattern??(n.pattern=ux());Eo.init(e,n)}),r9=W("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=zN),Eo.init(e,n)}),a9=W("$ZodURL",(e,n)=>{Eo.init(e,n),e._zod.check=r=>{try{const i=r.value.trim(),c=new URL(i);n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(c.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:n.hostname.source,input:r.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(c.protocol.endsWith(":")?c.protocol.slice(0,-1):c.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:r.value,inst:e,continue:!n.abort})),n.normalize?r.value=c.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!n.abort})}}}),l9=W("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=jN()),Eo.init(e,n)}),i9=W("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=xN),Eo.init(e,n)}),c9=W("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=pN),Eo.init(e,n)}),s9=W("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=kN),Eo.init(e,n)}),d9=W("$ZodULID",(e,n)=>{n.pattern??(n.pattern=vN),Eo.init(e,n)}),u9=W("$ZodXID",(e,n)=>{n.pattern??(n.pattern=gN),Eo.init(e,n)}),f9=W("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=_N),Eo.init(e,n)}),b9=W("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=RN(n)),Eo.init(e,n)}),m9=W("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=$N),Eo.init(e,n)}),h9=W("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=NN(n)),Eo.init(e,n)}),p9=W("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=yN),Eo.init(e,n)}),k9=W("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=TN),Eo.init(e,n),e._zod.bag.format="ipv4"}),v9=W("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=AN),Eo.init(e,n),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!n.abort})}}}),g9=W("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=CN),Eo.init(e,n)}),_9=W("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=EN),Eo.init(e,n),e._zod.check=r=>{const i=r.value.split("/");try{if(i.length!==2)throw new Error;const[c,d]=i;if(!d)throw new Error;const u=Number(d);if(`${u}`!==d)throw new Error;if(u<0||u>128)throw new Error;new URL(`http://[${c}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!n.abort})}}});function uw(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const x9=W("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=LN),Eo.init(e,n),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{uw(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!n.abort})}});function y9(e){if(!aw.test(e))return!1;const n=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=n.padEnd(Math.ceil(n.length/4)*4,"=");return uw(r)}const w9=W("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=aw),Eo.init(e,n),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{y9(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!n.abort})}}),z9=W("$ZodE164",(e,n)=>{n.pattern??(n.pattern=ON),Eo.init(e,n)});function S9(e,n=null){try{const r=e.split(".");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const c=JSON.parse(atob(i));return!("typ"in c&&c?.typ!=="JWT"||!c.alg||n&&(!("alg"in c)||c.alg!==n))}catch{return!1}}const j9=W("$ZodJWT",(e,n)=>{Eo.init(e,n),e._zod.check=r=>{S9(r.value,n.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!n.abort})}}),fw=W("$ZodNumber",(e,n)=>{Fo.init(e,n),e._zod.pattern=e._zod.bag.pattern??MN,e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=Number(r.value)}catch{}const c=r.value;if(typeof c=="number"&&!Number.isNaN(c)&&Number.isFinite(c))return r;const d=typeof c=="number"?Number.isNaN(c)?"NaN":Number.isFinite(c)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:c,inst:e,...d?{received:d}:{}}),r}}),T9=W("$ZodNumberFormat",(e,n)=>{VN.init(e,n),fw.init(e,n)}),A9=W("$ZodBoolean",(e,n)=>{Fo.init(e,n),e._zod.pattern=IN,e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=!!r.value}catch{}const c=r.value;return typeof c=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:c,inst:e}),r}}),C9=W("$ZodUnknown",(e,n)=>{Fo.init(e,n),e._zod.parse=r=>r}),E9=W("$ZodNever",(e,n)=>{Fo.init(e,n),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),L9=W("$ZodDate",(e,n)=>{Fo.init(e,n),e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=new Date(r.value)}catch{}const c=r.value,d=c instanceof Date;return d&&!Number.isNaN(c.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:c,...d?{received:"Invalid Date"}:{},inst:e}),r}});function fx(e,n,r){e.issues.length&&n.issues.push(...ow(r,e.issues)),n.value[r]=e.value}const O9=W("$ZodArray",(e,n)=>{Fo.init(e,n),e._zod.parse=(r,i)=>{const c=r.value;if(!Array.isArray(c))return r.issues.push({expected:"array",code:"invalid_type",input:c,inst:e}),r;r.value=Array(c.length);const d=[];for(let u=0;u<c.length;u++){const m=c[u],h=n.element._zod.run({value:m,issues:[]},i);h instanceof Promise?d.push(h.then(p=>fx(p,r,u))):fx(h,r,u)}return d.length?Promise.all(d).then(()=>r):r}});function Ws(e,n,r,i,c){if(e.issues.length){if(c&&!(r in i))return;n.issues.push(...ow(r,e.issues))}e.value===void 0?r in i&&(n.value[r]=void 0):n.value[r]=e.value}function bw(e){const n=Object.keys(e.shape);for(const i of n)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const r=Y$(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(r)}}function mw(e,n,r,i,c,d){const u=[],m=c.keySet,h=c.catchall._zod,p=h.def.type,g=h.optout==="optional";for(const v in n){if(m.has(v))continue;if(p==="never"){u.push(v);continue}const _=h.run({value:n[v],issues:[]},i);_ instanceof Promise?e.push(_.then(z=>Ws(z,r,v,n,g))):Ws(_,r,v,n,g)}return u.length&&r.issues.push({code:"unrecognized_keys",keys:u,input:n,inst:d}),e.length?Promise.all(e).then(()=>r):r}const $9=W("$ZodObject",(e,n)=>{if(Fo.init(e,n),!Object.getOwnPropertyDescriptor(n,"shape")?.get){const m=n.shape;Object.defineProperty(n,"shape",{get:()=>{const h={...m};return Object.defineProperty(n,"shape",{value:h}),h}})}const i=Vm(()=>bw(n));po(e._zod,"propValues",()=>{const m=n.shape,h={};for(const p in m){const g=m[p]._zod;if(g.values){h[p]??(h[p]=new Set);for(const v of g.values)h[p].add(v)}}return h});const c=Xs,d=n.catchall;let u;e._zod.parse=(m,h)=>{u??(u=i.value);const p=m.value;if(!c(p))return m.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),m;m.value={};const g=[],v=u.shape;for(const _ of u.keys){const z=v[_],$=z._zod.optout==="optional",j=z._zod.run({value:p[_],issues:[]},h);j instanceof Promise?g.push(j.then(E=>Ws(E,m,_,p,$))):Ws(j,m,_,p,$)}return d?mw(g,p,m,h,i.value,e):g.length?Promise.all(g).then(()=>m):m}}),N9=W("$ZodObjectJIT",(e,n)=>{$9.init(e,n);const r=e._zod.parse,i=Vm(()=>bw(n)),c=_=>{const z=new e9(["shape","payload","ctx"]),$=i.value,j=w=>{const N=dx(w);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};z.write("const input = payload.value;");const E=Object.create(null);let L=0;for(const w of $.keys)E[w]=`key_${L++}`;z.write("const newResult = {};");for(const w of $.keys){const N=E[w],D=dx(w),q=_[w]?._zod?.optout==="optional";z.write(`const ${N} = ${j(w)};`),q?z.write(`
|
|
25976
25976
|
if (${N}.issues.length) {
|
|
25977
25977
|
if (${D} in input) {
|
|
25978
25978
|
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
|
|
@@ -26006,9 +26006,9 @@ sit amet.`,MO=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsxs("p",{chi
|
|
|
26006
26006
|
newResult[${D}] = ${N}.value;
|
|
26007
26007
|
}
|
|
26008
26008
|
|
|
26009
|
-
`)}z.write("payload.value = newResult;"),z.write("return payload;");const y=z.compile();return(w,N)=>y(_,w,N)};let d;const u=Xs,m=!X0.jitless,p=m&&P$.value,g=n.catchall;let v;e._zod.parse=(_,z)=>{v??(v=i.value);const $=_.value;return u($)?m&&p&&z?.async===!1&&z.jitless!==!0?(d||(d=c(n.shape)),_=d(_,z),g?mw([],$,_,z,v,e):_):r(_,z):(_.issues.push({expected:"object",code:"invalid_type",input:$,inst:e}),_)}});function bx(e,n,r,i){for(const d of e)if(d.issues.length===0)return n.value=d.value,n;const c=e.filter(d=>!Sl(d));return c.length===1?(n.value=c[0].value,c[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(d=>d.issues.map(u=>ja(u,i,Sa())))}),n)}const R9=W("$ZodUnion",(e,n)=>{Uo.init(e,n),po(e._zod,"optin",()=>n.options.some(c=>c._zod.optin==="optional")?"optional":void 0),po(e._zod,"optout",()=>n.options.some(c=>c._zod.optout==="optional")?"optional":void 0),po(e._zod,"values",()=>{if(n.options.every(c=>c._zod.values))return new Set(n.options.flatMap(c=>Array.from(c._zod.values)))}),po(e._zod,"pattern",()=>{if(n.options.every(c=>c._zod.pattern)){const c=n.options.map(d=>d._zod.pattern);return new RegExp(`^(${c.map(d=>qm(d.source)).join("|")})$`)}});const r=n.options.length===1,i=n.options[0]._zod.run;e._zod.parse=(c,d)=>{if(r)return i(c,d);let u=!1;const m=[];for(const h of n.options){const p=h._zod.run({value:c.value,issues:[]},d);if(p instanceof Promise)m.push(p),u=!0;else{if(p.issues.length===0)return p;m.push(p)}}return u?Promise.all(m).then(h=>bx(h,c,e,d)):bx(m,c,e,d)}}),B9=W("$ZodIntersection",(e,n)=>{Uo.init(e,n),e._zod.parse=(r,i)=>{const c=r.value,d=n.left._zod.run({value:c,issues:[]},i),u=n.right._zod.run({value:c,issues:[]},i);return d instanceof Promise||u instanceof Promise?Promise.all([d,u]).then(([h,p])=>mx(r,h,p)):mx(r,d,u)}});function Wb(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(ec(e)&&ec(n)){const r=Object.keys(n),i=Object.keys(e).filter(d=>r.indexOf(d)!==-1),c={...e,...n};for(const d of i){const u=Wb(e[d],n[d]);if(!u.valid)return{valid:!1,mergeErrorPath:[d,...u.mergeErrorPath]};c[d]=u.data}return{valid:!0,data:c}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const c=e[i],d=n[i],u=Wb(c,d);if(!u.valid)return{valid:!1,mergeErrorPath:[i,...u.mergeErrorPath]};r.push(u.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function mx(e,n,r){const i=new Map;let c;for(const m of n.issues)if(m.code==="unrecognized_keys"){c??(c=m);for(const h of m.keys)i.has(h)||i.set(h,{}),i.get(h).l=!0}else e.issues.push(m);for(const m of r.issues)if(m.code==="unrecognized_keys")for(const h of m.keys)i.has(h)||i.set(h,{}),i.get(h).r=!0;else e.issues.push(m);const d=[...i].filter(([,m])=>m.l&&m.r).map(([m])=>m);if(d.length&&c&&e.issues.push({...c,keys:d}),Sl(e))return e;const u=Wb(n.value,r.value);if(!u.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return e.value=u.data,e}const D9=W("$ZodEnum",(e,n)=>{Uo.init(e,n);const r=W0(n.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(c=>G$.has(typeof c)).map(c=>typeof c=="string"?fd(c):c.toString()).join("|")})$`),e._zod.parse=(c,d)=>{const u=c.value;return i.has(u)||c.issues.push({code:"invalid_value",values:r,input:u,inst:e}),c}}),M9=W("$ZodTransform",(e,n)=>{Uo.init(e,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new J0(e.constructor.name);const c=n.transform(r.value,r);if(i.async)return(c instanceof Promise?c:Promise.resolve(c)).then(u=>(r.value=u,r));if(c instanceof Promise)throw new Tl;return r.value=c,r}});function hx(e,n){return e.issues.length&&n===void 0?{issues:[],value:void 0}:e}const hw=W("$ZodOptional",(e,n)=>{Uo.init(e,n),e._zod.optin="optional",e._zod.optout="optional",po(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),po(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${qm(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(n.innerType._zod.optin==="optional"){const c=n.innerType._zod.run(r,i);return c instanceof Promise?c.then(d=>hx(d,r.value)):hx(c,r.value)}return r.value===void 0?r:n.innerType._zod.run(r,i)}}),I9=W("$ZodExactOptional",(e,n)=>{hw.init(e,n),po(e._zod,"values",()=>n.innerType._zod.values),po(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(r,i)=>n.innerType._zod.run(r,i)}),U9=W("$ZodNullable",(e,n)=>{Uo.init(e,n),po(e._zod,"optin",()=>n.innerType._zod.optin),po(e._zod,"optout",()=>n.innerType._zod.optout),po(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${qm(r.source)}|null)$`):void 0}),po(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:n.innerType._zod.run(r,i)}),F9=W("$ZodDefault",(e,n)=>{Uo.init(e,n),e._zod.optin="optional",po(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);if(r.value===void 0)return r.value=n.defaultValue,r;const c=n.innerType._zod.run(r,i);return c instanceof Promise?c.then(d=>px(d,n)):px(c,n)}});function px(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const H9=W("$ZodPrefault",(e,n)=>{Uo.init(e,n),e._zod.optin="optional",po(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=n.defaultValue),n.innerType._zod.run(r,i))}),V9=W("$ZodNonOptional",(e,n)=>{Uo.init(e,n),po(e._zod,"values",()=>{const r=n.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const c=n.innerType._zod.run(r,i);return c instanceof Promise?c.then(d=>kx(d,e)):kx(c,e)}});function kx(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const K9=W("$ZodCatch",(e,n)=>{Uo.init(e,n),po(e._zod,"optin",()=>n.innerType._zod.optin),po(e._zod,"optout",()=>n.innerType._zod.optout),po(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);const c=n.innerType._zod.run(r,i);return c instanceof Promise?c.then(d=>(r.value=d.value,d.issues.length&&(r.value=n.catchValue({...r,error:{issues:d.issues.map(u=>ja(u,i,Sa()))},input:r.value}),r.issues=[]),r)):(r.value=c.value,c.issues.length&&(r.value=n.catchValue({...r,error:{issues:c.issues.map(d=>ja(d,i,Sa()))},input:r.value}),r.issues=[]),r)}}),q9=W("$ZodPipe",(e,n)=>{Uo.init(e,n),po(e._zod,"values",()=>n.in._zod.values),po(e._zod,"optin",()=>n.in._zod.optin),po(e._zod,"optout",()=>n.out._zod.optout),po(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const d=n.out._zod.run(r,i);return d instanceof Promise?d.then(u=>js(u,n.in,i)):js(d,n.in,i)}const c=n.in._zod.run(r,i);return c instanceof Promise?c.then(d=>js(d,n.out,i)):js(c,n.out,i)}});function js(e,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues},r)}const Z9=W("$ZodReadonly",(e,n)=>{Uo.init(e,n),po(e._zod,"propValues",()=>n.innerType._zod.propValues),po(e._zod,"values",()=>n.innerType._zod.values),po(e._zod,"optin",()=>n.innerType?._zod?.optin),po(e._zod,"optout",()=>n.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);const c=n.innerType._zod.run(r,i);return c instanceof Promise?c.then(vx):vx(c)}});function vx(e){return e.value=Object.freeze(e.value),e}const P9=W("$ZodCustom",(e,n)=>{Zn.init(e,n),Uo.init(e,n),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,c=n.fn(i);if(c instanceof Promise)return c.then(d=>gx(d,r,i,e));gx(c,r,i,e)}});function gx(e,n,r,i){if(!e){const c={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(c.params=i._zod.def.params),n.issues.push(oc(c))}}var _x;class G9{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...r){const i=r[0];return this._map.set(n,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){const r=this._map.get(n);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(n),this}get(n){const r=n._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const c={...i,...this._map.get(n)};return Object.keys(c).length?c:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function Y9(){return new G9}(_x=globalThis).__zod_globalRegistry??(_x.__zod_globalRegistry=Y9());const Hi=globalThis.__zod_globalRegistry;function J9(e,n){return new e({type:"string",...je(n)})}function X9(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...je(n)})}function xx(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...je(n)})}function W9(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...je(n)})}function Q9(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...je(n)})}function eR(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...je(n)})}function oR(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...je(n)})}function nR(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...je(n)})}function tR(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...je(n)})}function rR(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...je(n)})}function aR(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...je(n)})}function lR(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...je(n)})}function iR(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...je(n)})}function cR(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...je(n)})}function sR(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...je(n)})}function dR(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...je(n)})}function uR(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...je(n)})}function fR(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...je(n)})}function bR(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...je(n)})}function mR(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...je(n)})}function hR(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...je(n)})}function pR(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...je(n)})}function kR(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...je(n)})}function vR(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...je(n)})}function gR(e,n){return new e({type:"string",format:"date",check:"string_format",...je(n)})}function _R(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...je(n)})}function xR(e,n){return new e({type:"string",format:"duration",check:"string_format",...je(n)})}function yR(e,n){return new e({type:"number",checks:[],...je(n)})}function wR(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...je(n)})}function zR(e,n){return new e({type:"boolean",...je(n)})}function SR(e){return new e({type:"unknown"})}function jR(e,n){return new e({type:"never",...je(n)})}function TR(e,n){return new e({type:"date",...je(n)})}function yx(e,n){return new sw({check:"less_than",...je(n),value:e,inclusive:!1})}function Ds(e,n){return new sw({check:"less_than",...je(n),value:e,inclusive:!0})}function wx(e,n){return new dw({check:"greater_than",...je(n),value:e,inclusive:!1})}function Ms(e,n){return new dw({check:"greater_than",...je(n),value:e,inclusive:!0})}function zx(e,n){return new HN({check:"multiple_of",...je(n),value:e})}function pw(e,n){return new KN({check:"max_length",...je(n),maximum:e})}function Qs(e,n){return new qN({check:"min_length",...je(n),minimum:e})}function kw(e,n){return new ZN({check:"length_equals",...je(n),length:e})}function AR(e,n){return new PN({check:"string_format",format:"regex",...je(n),pattern:e})}function CR(e){return new GN({check:"string_format",format:"lowercase",...je(e)})}function ER(e){return new YN({check:"string_format",format:"uppercase",...je(e)})}function LR(e,n){return new JN({check:"string_format",format:"includes",...je(n),includes:e})}function OR(e,n){return new XN({check:"string_format",format:"starts_with",...je(n),prefix:e})}function $R(e,n){return new WN({check:"string_format",format:"ends_with",...je(n),suffix:e})}function Nl(e){return new QN({check:"overwrite",tx:e})}function NR(e){return Nl(n=>n.normalize(e))}function RR(){return Nl(e=>e.trim())}function BR(){return Nl(e=>e.toLowerCase())}function DR(){return Nl(e=>e.toUpperCase())}function MR(){return Nl(e=>Z$(e))}function IR(e,n,r){return new e({type:"array",element:n,...je(r)})}function UR(e,n,r){return new e({type:"custom",check:"custom",fn:n,...je(r)})}function FR(e){const n=HR(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(oc(i,r.value,n._zod.def));else{const c=i;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=r.value),c.inst??(c.inst=n),c.continue??(c.continue=!n._zod.def.abort),r.issues.push(oc(c))}},e(r.value,r)));return n}function HR(e,n){const r=new Zn({check:"custom",...je(n)});return r._zod.check=e,r}function vw(e){let n=e?.target??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Hi,target:n,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function _n(e,n,r={path:[],schemaPath:[]}){var i;const c=e._zod.def,d=n.seen.get(e);if(d)return d.count++,r.schemaPath.includes(e)&&(d.cycle=r.path),d.schema;const u={schema:{},count:1,cycle:void 0,path:r.path};n.seen.set(e,u);const m=e._zod.toJSONSchema?.();if(m)u.schema=m;else{const g={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(n,u.schema,g);else{const _=u.schema,z=n.processors[c.type];if(!z)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${c.type}`);z(e,n,_,g)}const v=e._zod.parent;v&&(u.ref||(u.ref=v),_n(v,n,g),n.seen.get(v).isParent=!0)}const h=n.metadataRegistry.get(e);return h&&Object.assign(u.schema,h),n.io==="input"&&Ln(e)&&(delete u.schema.examples,delete u.schema.default),n.io==="input"&&u.schema._prefault&&((i=u.schema).default??(i.default=u.schema._prefault)),delete u.schema._prefault,n.seen.get(e).schema}function gw(e,n){const r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const u of e.seen.entries()){const m=e.metadataRegistry.get(u[0])?.id;if(m){const h=i.get(m);if(h&&h!==u[0])throw new Error(`Duplicate schema id "${m}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(m,u[0])}}const c=u=>{const m=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=e.external.registry.get(u[0])?.id,_=e.external.uri??($=>$);if(v)return{ref:_(v)};const z=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=z,{defId:z,ref:`${_("__shared")}#/${m}/${z}`}}if(u[1]===r)return{ref:"#"};const p=`#/${m}/`,g=u[1].schema.id??`__schema${e.counter++}`;return{defId:g,ref:p+g}},d=u=>{if(u[1].schema.$ref)return;const m=u[1],{ref:h,defId:p}=c(u);m.def={...m.schema},p&&(m.defId=p);const g=m.schema;for(const v in g)delete g[v];g.$ref=h};if(e.cycles==="throw")for(const u of e.seen.entries()){const m=u[1];if(m.cycle)throw new Error(`Cycle detected: #/${m.cycle?.join("/")}/<root>
|
|
26009
|
+
`)}z.write("payload.value = newResult;"),z.write("return payload;");const y=z.compile();return(w,N)=>y(_,w,N)};let d;const u=Xs,m=!X0.jitless,p=m&&P$.value,g=n.catchall;let v;e._zod.parse=(_,z)=>{v??(v=i.value);const $=_.value;return u($)?m&&p&&z?.async===!1&&z.jitless!==!0?(d||(d=c(n.shape)),_=d(_,z),g?mw([],$,_,z,v,e):_):r(_,z):(_.issues.push({expected:"object",code:"invalid_type",input:$,inst:e}),_)}});function bx(e,n,r,i){for(const d of e)if(d.issues.length===0)return n.value=d.value,n;const c=e.filter(d=>!jl(d));return c.length===1?(n.value=c[0].value,c[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(d=>d.issues.map(u=>Ta(u,i,ja())))}),n)}const R9=W("$ZodUnion",(e,n)=>{Fo.init(e,n),po(e._zod,"optin",()=>n.options.some(c=>c._zod.optin==="optional")?"optional":void 0),po(e._zod,"optout",()=>n.options.some(c=>c._zod.optout==="optional")?"optional":void 0),po(e._zod,"values",()=>{if(n.options.every(c=>c._zod.values))return new Set(n.options.flatMap(c=>Array.from(c._zod.values)))}),po(e._zod,"pattern",()=>{if(n.options.every(c=>c._zod.pattern)){const c=n.options.map(d=>d._zod.pattern);return new RegExp(`^(${c.map(d=>qm(d.source)).join("|")})$`)}});const r=n.options.length===1,i=n.options[0]._zod.run;e._zod.parse=(c,d)=>{if(r)return i(c,d);let u=!1;const m=[];for(const h of n.options){const p=h._zod.run({value:c.value,issues:[]},d);if(p instanceof Promise)m.push(p),u=!0;else{if(p.issues.length===0)return p;m.push(p)}}return u?Promise.all(m).then(h=>bx(h,c,e,d)):bx(m,c,e,d)}}),B9=W("$ZodIntersection",(e,n)=>{Fo.init(e,n),e._zod.parse=(r,i)=>{const c=r.value,d=n.left._zod.run({value:c,issues:[]},i),u=n.right._zod.run({value:c,issues:[]},i);return d instanceof Promise||u instanceof Promise?Promise.all([d,u]).then(([h,p])=>mx(r,h,p)):mx(r,d,u)}});function Wb(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(nc(e)&&nc(n)){const r=Object.keys(n),i=Object.keys(e).filter(d=>r.indexOf(d)!==-1),c={...e,...n};for(const d of i){const u=Wb(e[d],n[d]);if(!u.valid)return{valid:!1,mergeErrorPath:[d,...u.mergeErrorPath]};c[d]=u.data}return{valid:!0,data:c}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const c=e[i],d=n[i],u=Wb(c,d);if(!u.valid)return{valid:!1,mergeErrorPath:[i,...u.mergeErrorPath]};r.push(u.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function mx(e,n,r){const i=new Map;let c;for(const m of n.issues)if(m.code==="unrecognized_keys"){c??(c=m);for(const h of m.keys)i.has(h)||i.set(h,{}),i.get(h).l=!0}else e.issues.push(m);for(const m of r.issues)if(m.code==="unrecognized_keys")for(const h of m.keys)i.has(h)||i.set(h,{}),i.get(h).r=!0;else e.issues.push(m);const d=[...i].filter(([,m])=>m.l&&m.r).map(([m])=>m);if(d.length&&c&&e.issues.push({...c,keys:d}),jl(e))return e;const u=Wb(n.value,r.value);if(!u.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return e.value=u.data,e}const D9=W("$ZodEnum",(e,n)=>{Fo.init(e,n);const r=W0(n.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(c=>G$.has(typeof c)).map(c=>typeof c=="string"?fd(c):c.toString()).join("|")})$`),e._zod.parse=(c,d)=>{const u=c.value;return i.has(u)||c.issues.push({code:"invalid_value",values:r,input:u,inst:e}),c}}),M9=W("$ZodTransform",(e,n)=>{Fo.init(e,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new J0(e.constructor.name);const c=n.transform(r.value,r);if(i.async)return(c instanceof Promise?c:Promise.resolve(c)).then(u=>(r.value=u,r));if(c instanceof Promise)throw new Al;return r.value=c,r}});function hx(e,n){return e.issues.length&&n===void 0?{issues:[],value:void 0}:e}const hw=W("$ZodOptional",(e,n)=>{Fo.init(e,n),e._zod.optin="optional",e._zod.optout="optional",po(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),po(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${qm(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(n.innerType._zod.optin==="optional"){const c=n.innerType._zod.run(r,i);return c instanceof Promise?c.then(d=>hx(d,r.value)):hx(c,r.value)}return r.value===void 0?r:n.innerType._zod.run(r,i)}}),I9=W("$ZodExactOptional",(e,n)=>{hw.init(e,n),po(e._zod,"values",()=>n.innerType._zod.values),po(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(r,i)=>n.innerType._zod.run(r,i)}),U9=W("$ZodNullable",(e,n)=>{Fo.init(e,n),po(e._zod,"optin",()=>n.innerType._zod.optin),po(e._zod,"optout",()=>n.innerType._zod.optout),po(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${qm(r.source)}|null)$`):void 0}),po(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:n.innerType._zod.run(r,i)}),F9=W("$ZodDefault",(e,n)=>{Fo.init(e,n),e._zod.optin="optional",po(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);if(r.value===void 0)return r.value=n.defaultValue,r;const c=n.innerType._zod.run(r,i);return c instanceof Promise?c.then(d=>px(d,n)):px(c,n)}});function px(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const H9=W("$ZodPrefault",(e,n)=>{Fo.init(e,n),e._zod.optin="optional",po(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=n.defaultValue),n.innerType._zod.run(r,i))}),V9=W("$ZodNonOptional",(e,n)=>{Fo.init(e,n),po(e._zod,"values",()=>{const r=n.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const c=n.innerType._zod.run(r,i);return c instanceof Promise?c.then(d=>kx(d,e)):kx(c,e)}});function kx(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const K9=W("$ZodCatch",(e,n)=>{Fo.init(e,n),po(e._zod,"optin",()=>n.innerType._zod.optin),po(e._zod,"optout",()=>n.innerType._zod.optout),po(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);const c=n.innerType._zod.run(r,i);return c instanceof Promise?c.then(d=>(r.value=d.value,d.issues.length&&(r.value=n.catchValue({...r,error:{issues:d.issues.map(u=>Ta(u,i,ja()))},input:r.value}),r.issues=[]),r)):(r.value=c.value,c.issues.length&&(r.value=n.catchValue({...r,error:{issues:c.issues.map(d=>Ta(d,i,ja()))},input:r.value}),r.issues=[]),r)}}),q9=W("$ZodPipe",(e,n)=>{Fo.init(e,n),po(e._zod,"values",()=>n.in._zod.values),po(e._zod,"optin",()=>n.in._zod.optin),po(e._zod,"optout",()=>n.out._zod.optout),po(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const d=n.out._zod.run(r,i);return d instanceof Promise?d.then(u=>js(u,n.in,i)):js(d,n.in,i)}const c=n.in._zod.run(r,i);return c instanceof Promise?c.then(d=>js(d,n.out,i)):js(c,n.out,i)}});function js(e,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues},r)}const Z9=W("$ZodReadonly",(e,n)=>{Fo.init(e,n),po(e._zod,"propValues",()=>n.innerType._zod.propValues),po(e._zod,"values",()=>n.innerType._zod.values),po(e._zod,"optin",()=>n.innerType?._zod?.optin),po(e._zod,"optout",()=>n.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);const c=n.innerType._zod.run(r,i);return c instanceof Promise?c.then(vx):vx(c)}});function vx(e){return e.value=Object.freeze(e.value),e}const P9=W("$ZodCustom",(e,n)=>{Pn.init(e,n),Fo.init(e,n),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,c=n.fn(i);if(c instanceof Promise)return c.then(d=>gx(d,r,i,e));gx(c,r,i,e)}});function gx(e,n,r,i){if(!e){const c={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(c.params=i._zod.def.params),n.issues.push(tc(c))}}var _x;class G9{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...r){const i=r[0];return this._map.set(n,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){const r=this._map.get(n);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(n),this}get(n){const r=n._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const c={...i,...this._map.get(n)};return Object.keys(c).length?c:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function Y9(){return new G9}(_x=globalThis).__zod_globalRegistry??(_x.__zod_globalRegistry=Y9());const Ki=globalThis.__zod_globalRegistry;function J9(e,n){return new e({type:"string",...je(n)})}function X9(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...je(n)})}function xx(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...je(n)})}function W9(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...je(n)})}function Q9(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...je(n)})}function eR(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...je(n)})}function oR(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...je(n)})}function nR(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...je(n)})}function tR(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...je(n)})}function rR(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...je(n)})}function aR(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...je(n)})}function lR(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...je(n)})}function iR(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...je(n)})}function cR(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...je(n)})}function sR(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...je(n)})}function dR(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...je(n)})}function uR(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...je(n)})}function fR(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...je(n)})}function bR(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...je(n)})}function mR(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...je(n)})}function hR(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...je(n)})}function pR(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...je(n)})}function kR(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...je(n)})}function vR(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...je(n)})}function gR(e,n){return new e({type:"string",format:"date",check:"string_format",...je(n)})}function _R(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...je(n)})}function xR(e,n){return new e({type:"string",format:"duration",check:"string_format",...je(n)})}function yR(e,n){return new e({type:"number",checks:[],...je(n)})}function wR(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...je(n)})}function zR(e,n){return new e({type:"boolean",...je(n)})}function SR(e){return new e({type:"unknown"})}function jR(e,n){return new e({type:"never",...je(n)})}function TR(e,n){return new e({type:"date",...je(n)})}function yx(e,n){return new sw({check:"less_than",...je(n),value:e,inclusive:!1})}function Ds(e,n){return new sw({check:"less_than",...je(n),value:e,inclusive:!0})}function wx(e,n){return new dw({check:"greater_than",...je(n),value:e,inclusive:!1})}function Ms(e,n){return new dw({check:"greater_than",...je(n),value:e,inclusive:!0})}function zx(e,n){return new HN({check:"multiple_of",...je(n),value:e})}function pw(e,n){return new KN({check:"max_length",...je(n),maximum:e})}function Qs(e,n){return new qN({check:"min_length",...je(n),minimum:e})}function kw(e,n){return new ZN({check:"length_equals",...je(n),length:e})}function AR(e,n){return new PN({check:"string_format",format:"regex",...je(n),pattern:e})}function CR(e){return new GN({check:"string_format",format:"lowercase",...je(e)})}function ER(e){return new YN({check:"string_format",format:"uppercase",...je(e)})}function LR(e,n){return new JN({check:"string_format",format:"includes",...je(n),includes:e})}function OR(e,n){return new XN({check:"string_format",format:"starts_with",...je(n),prefix:e})}function $R(e,n){return new WN({check:"string_format",format:"ends_with",...je(n),suffix:e})}function Rl(e){return new QN({check:"overwrite",tx:e})}function NR(e){return Rl(n=>n.normalize(e))}function RR(){return Rl(e=>e.trim())}function BR(){return Rl(e=>e.toLowerCase())}function DR(){return Rl(e=>e.toUpperCase())}function MR(){return Rl(e=>Z$(e))}function IR(e,n,r){return new e({type:"array",element:n,...je(r)})}function UR(e,n,r){return new e({type:"custom",check:"custom",fn:n,...je(r)})}function FR(e){const n=HR(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(tc(i,r.value,n._zod.def));else{const c=i;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=r.value),c.inst??(c.inst=n),c.continue??(c.continue=!n._zod.def.abort),r.issues.push(tc(c))}},e(r.value,r)));return n}function HR(e,n){const r=new Pn({check:"custom",...je(n)});return r._zod.check=e,r}function vw(e){let n=e?.target??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ki,target:n,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function xn(e,n,r={path:[],schemaPath:[]}){var i;const c=e._zod.def,d=n.seen.get(e);if(d)return d.count++,r.schemaPath.includes(e)&&(d.cycle=r.path),d.schema;const u={schema:{},count:1,cycle:void 0,path:r.path};n.seen.set(e,u);const m=e._zod.toJSONSchema?.();if(m)u.schema=m;else{const g={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(n,u.schema,g);else{const _=u.schema,z=n.processors[c.type];if(!z)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${c.type}`);z(e,n,_,g)}const v=e._zod.parent;v&&(u.ref||(u.ref=v),xn(v,n,g),n.seen.get(v).isParent=!0)}const h=n.metadataRegistry.get(e);return h&&Object.assign(u.schema,h),n.io==="input"&&$n(e)&&(delete u.schema.examples,delete u.schema.default),n.io==="input"&&u.schema._prefault&&((i=u.schema).default??(i.default=u.schema._prefault)),delete u.schema._prefault,n.seen.get(e).schema}function gw(e,n){const r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const u of e.seen.entries()){const m=e.metadataRegistry.get(u[0])?.id;if(m){const h=i.get(m);if(h&&h!==u[0])throw new Error(`Duplicate schema id "${m}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(m,u[0])}}const c=u=>{const m=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=e.external.registry.get(u[0])?.id,_=e.external.uri??($=>$);if(v)return{ref:_(v)};const z=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=z,{defId:z,ref:`${_("__shared")}#/${m}/${z}`}}if(u[1]===r)return{ref:"#"};const p=`#/${m}/`,g=u[1].schema.id??`__schema${e.counter++}`;return{defId:g,ref:p+g}},d=u=>{if(u[1].schema.$ref)return;const m=u[1],{ref:h,defId:p}=c(u);m.def={...m.schema},p&&(m.defId=p);const g=m.schema;for(const v in g)delete g[v];g.$ref=h};if(e.cycles==="throw")for(const u of e.seen.entries()){const m=u[1];if(m.cycle)throw new Error(`Cycle detected: #/${m.cycle?.join("/")}/<root>
|
|
26010
26010
|
|
|
26011
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const m=u[1];if(n===u[0]){d(u);continue}if(e.external){const p=e.external.registry.get(u[0])?.id;if(n!==u[0]&&p){d(u);continue}}if(e.metadataRegistry.get(u[0])?.id){d(u);continue}if(m.cycle){d(u);continue}if(m.count>1&&e.reused==="ref"){d(u);continue}}}function _w(e,n){const r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=u=>{const m=e.seen.get(u);if(m.ref===null)return;const h=m.def??m.schema,p={...h},g=m.ref;if(m.ref=null,g){i(g);const _=e.seen.get(g),z=_.schema;if(z.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(z)):Object.assign(h,z),Object.assign(h,p),u._zod.parent===g)for(const j in h)j==="$ref"||j==="allOf"||j in p||delete h[j];if(z.$ref&&_.def)for(const j in h)j==="$ref"||j==="allOf"||j in _.def&&JSON.stringify(h[j])===JSON.stringify(_.def[j])&&delete h[j]}const v=u._zod.parent;if(v&&v!==g){i(v);const _=e.seen.get(v);if(_?.schema.$ref&&(h.$ref=_.schema.$ref,_.def))for(const z in h)z==="$ref"||z==="allOf"||z in _.def&&JSON.stringify(h[z])===JSON.stringify(_.def[z])&&delete h[z]}e.override({zodSchema:u,jsonSchema:h,path:m.path??[]})};for(const u of[...e.seen.entries()].reverse())i(u[0]);const c={};if(e.target==="draft-2020-12"?c.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?c.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?c.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const u=e.external.registry.get(n)?.id;if(!u)throw new Error("Schema is missing an `id` property");c.$id=e.external.uri(u)}Object.assign(c,r.def??r.schema);const d=e.external?.defs??{};for(const u of e.seen.entries()){const m=u[1];m.def&&m.defId&&(d[m.defId]=m.def)}e.external||Object.keys(d).length>0&&(e.target==="draft-2020-12"?c.$defs=d:c.definitions=d);try{const u=JSON.parse(JSON.stringify(c));return Object.defineProperty(u,"~standard",{value:{...n["~standard"],jsonSchema:{input:ed(n,"input",e.processors),output:ed(n,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function Ln(e,n){const r=n??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return Ln(i.element,r);if(i.type==="set")return Ln(i.valueType,r);if(i.type==="lazy")return Ln(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return Ln(i.innerType,r);if(i.type==="intersection")return Ln(i.left,r)||Ln(i.right,r);if(i.type==="record"||i.type==="map")return Ln(i.keyType,r)||Ln(i.valueType,r);if(i.type==="pipe")return Ln(i.in,r)||Ln(i.out,r);if(i.type==="object"){for(const c in i.shape)if(Ln(i.shape[c],r))return!0;return!1}if(i.type==="union"){for(const c of i.options)if(Ln(c,r))return!0;return!1}if(i.type==="tuple"){for(const c of i.items)if(Ln(c,r))return!0;return!!(i.rest&&Ln(i.rest,r))}return!1}const VR=(e,n={})=>r=>{const i=vw({...r,processors:n});return _n(e,i),gw(i,e),_w(i,e)},ed=(e,n,r={})=>i=>{const{libraryOptions:c,target:d}=i??{},u=vw({...c??{},target:d,io:n,processors:r});return _n(e,u),gw(u,e),_w(u,e)},KR={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},qR=(e,n,r,i)=>{const c=r;c.type="string";const{minimum:d,maximum:u,format:m,patterns:h,contentEncoding:p}=e._zod.bag;if(typeof d=="number"&&(c.minLength=d),typeof u=="number"&&(c.maxLength=u),m&&(c.format=KR[m]??m,c.format===""&&delete c.format,m==="time"&&delete c.format),p&&(c.contentEncoding=p),h&&h.size>0){const g=[...h];g.length===1?c.pattern=g[0].source:g.length>1&&(c.allOf=[...g.map(v=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:v.source}))])}},ZR=(e,n,r,i)=>{const c=r,{minimum:d,maximum:u,format:m,multipleOf:h,exclusiveMaximum:p,exclusiveMinimum:g}=e._zod.bag;typeof m=="string"&&m.includes("int")?c.type="integer":c.type="number",typeof g=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(c.minimum=g,c.exclusiveMinimum=!0):c.exclusiveMinimum=g),typeof d=="number"&&(c.minimum=d,typeof g=="number"&&n.target!=="draft-04"&&(g>=d?delete c.minimum:delete c.exclusiveMinimum)),typeof p=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(c.maximum=p,c.exclusiveMaximum=!0):c.exclusiveMaximum=p),typeof u=="number"&&(c.maximum=u,typeof p=="number"&&n.target!=="draft-04"&&(p<=u?delete c.maximum:delete c.exclusiveMaximum)),typeof h=="number"&&(c.multipleOf=h)},PR=(e,n,r,i)=>{r.type="boolean"},GR=(e,n,r,i)=>{r.not={}},YR=(e,n,r,i)=>{},JR=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},XR=(e,n,r,i)=>{const c=e._zod.def,d=W0(c.entries);d.every(u=>typeof u=="number")&&(r.type="number"),d.every(u=>typeof u=="string")&&(r.type="string"),r.enum=d},WR=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},QR=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},e7=(e,n,r,i)=>{const c=r,d=e._zod.def,{minimum:u,maximum:m}=e._zod.bag;typeof u=="number"&&(c.minItems=u),typeof m=="number"&&(c.maxItems=m),c.type="array",c.items=_n(d.element,n,{...i,path:[...i.path,"items"]})},o7=(e,n,r,i)=>{const c=r,d=e._zod.def;c.type="object",c.properties={};const u=d.shape;for(const p in u)c.properties[p]=_n(u[p],n,{...i,path:[...i.path,"properties",p]});const m=new Set(Object.keys(u)),h=new Set([...m].filter(p=>{const g=d.shape[p]._zod;return n.io==="input"?g.optin===void 0:g.optout===void 0}));h.size>0&&(c.required=Array.from(h)),d.catchall?._zod.def.type==="never"?c.additionalProperties=!1:d.catchall?d.catchall&&(c.additionalProperties=_n(d.catchall,n,{...i,path:[...i.path,"additionalProperties"]})):n.io==="output"&&(c.additionalProperties=!1)},n7=(e,n,r,i)=>{const c=e._zod.def,d=c.inclusive===!1,u=c.options.map((m,h)=>_n(m,n,{...i,path:[...i.path,d?"oneOf":"anyOf",h]}));d?r.oneOf=u:r.anyOf=u},t7=(e,n,r,i)=>{const c=e._zod.def,d=_n(c.left,n,{...i,path:[...i.path,"allOf",0]}),u=_n(c.right,n,{...i,path:[...i.path,"allOf",1]}),m=p=>"allOf"in p&&Object.keys(p).length===1,h=[...m(d)?d.allOf:[d],...m(u)?u.allOf:[u]];r.allOf=h},r7=(e,n,r,i)=>{const c=e._zod.def,d=_n(c.innerType,n,i),u=n.seen.get(e);n.target==="openapi-3.0"?(u.ref=c.innerType,r.nullable=!0):r.anyOf=[d,{type:"null"}]},a7=(e,n,r,i)=>{const c=e._zod.def;_n(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType},l7=(e,n,r,i)=>{const c=e._zod.def;_n(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType,r.default=JSON.parse(JSON.stringify(c.defaultValue))},i7=(e,n,r,i)=>{const c=e._zod.def;_n(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType,n.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(c.defaultValue)))},c7=(e,n,r,i)=>{const c=e._zod.def;_n(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType;let u;try{u=c.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=u},s7=(e,n,r,i)=>{const c=e._zod.def,d=n.io==="input"?c.in._zod.def.type==="transform"?c.out:c.in:c.out;_n(d,n,i);const u=n.seen.get(e);u.ref=d},d7=(e,n,r,i)=>{const c=e._zod.def;_n(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType,r.readOnly=!0},xw=(e,n,r,i)=>{const c=e._zod.def;_n(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType},u7=W("ZodISODateTime",(e,n)=>{b9.init(e,n),No.init(e,n)});function f7(e){return vR(u7,e)}const b7=W("ZodISODate",(e,n)=>{m9.init(e,n),No.init(e,n)});function m7(e){return gR(b7,e)}const h7=W("ZodISOTime",(e,n)=>{h9.init(e,n),No.init(e,n)});function p7(e){return _R(h7,e)}const k7=W("ZodISODuration",(e,n)=>{p9.init(e,n),No.init(e,n)});function v7(e){return xR(k7,e)}const g7=(e,n)=>{tw.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>aN(e,r)},flatten:{value:r=>rN(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Xb,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Xb,2)}},isEmpty:{get(){return e.issues.length===0}}})},_t=W("ZodError",g7,{Parent:Error}),_7=Pm(_t),x7=Gm(_t),y7=bd(_t),w7=md(_t),z7=cN(_t),S7=sN(_t),j7=dN(_t),T7=uN(_t),A7=fN(_t),C7=bN(_t),E7=mN(_t),L7=hN(_t),Fo=W("ZodType",(e,n)=>(Uo.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:ed(e,"input"),output:ed(e,"output")}}),e.toJSONSchema=VR(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.check=(...r)=>e.clone(Yr(n,{checks:[...n.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(r,i)=>Jr(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>_7(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>y7(e,r,i),e.parseAsync=async(r,i)=>x7(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>w7(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>z7(e,r,i),e.decode=(r,i)=>S7(e,r,i),e.encodeAsync=async(r,i)=>j7(e,r,i),e.decodeAsync=async(r,i)=>T7(e,r,i),e.safeEncode=(r,i)=>A7(e,r,i),e.safeDecode=(r,i)=>C7(e,r,i),e.safeEncodeAsync=async(r,i)=>E7(e,r,i),e.safeDecodeAsync=async(r,i)=>L7(e,r,i),e.refine=(r,i)=>e.check(AB(r,i)),e.superRefine=r=>e.check(CB(r)),e.overwrite=r=>e.check(Nl(r)),e.optional=()=>Cx(e),e.exactOptional=()=>hB(e),e.nullable=()=>Ex(e),e.nullish=()=>Cx(Ex(e)),e.nonoptional=r=>xB(e,r),e.array=()=>aB(e),e.or=r=>sB([e,r]),e.and=r=>uB(e,r),e.transform=r=>em(e,zw(r)),e.default=r=>vB(e,r),e.prefault=r=>_B(e,r),e.catch=r=>wB(e,r),e.pipe=r=>em(e,r),e.readonly=()=>jB(e),e.describe=r=>{const i=e.clone();return Hi.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return Hi.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Hi.get(e);const i=e.clone();return Hi.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),yw=W("_ZodString",(e,n)=>{Ym.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(i,c,d)=>qR(e,i,c);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check(AR(...i)),e.includes=(...i)=>e.check(LR(...i)),e.startsWith=(...i)=>e.check(OR(...i)),e.endsWith=(...i)=>e.check($R(...i)),e.min=(...i)=>e.check(Qs(...i)),e.max=(...i)=>e.check(pw(...i)),e.length=(...i)=>e.check(kw(...i)),e.nonempty=(...i)=>e.check(Qs(1,...i)),e.lowercase=i=>e.check(CR(i)),e.uppercase=i=>e.check(ER(i)),e.trim=()=>e.check(RR()),e.normalize=(...i)=>e.check(NR(...i)),e.toLowerCase=()=>e.check(BR()),e.toUpperCase=()=>e.check(DR()),e.slugify=()=>e.check(MR())}),O7=W("ZodString",(e,n)=>{Ym.init(e,n),yw.init(e,n),e.email=r=>e.check(X9($7,r)),e.url=r=>e.check(nR(N7,r)),e.jwt=r=>e.check(kR(Y7,r)),e.emoji=r=>e.check(tR(R7,r)),e.guid=r=>e.check(xx(Sx,r)),e.uuid=r=>e.check(W9(Ts,r)),e.uuidv4=r=>e.check(Q9(Ts,r)),e.uuidv6=r=>e.check(eR(Ts,r)),e.uuidv7=r=>e.check(oR(Ts,r)),e.nanoid=r=>e.check(rR(B7,r)),e.guid=r=>e.check(xx(Sx,r)),e.cuid=r=>e.check(aR(D7,r)),e.cuid2=r=>e.check(lR(M7,r)),e.ulid=r=>e.check(iR(I7,r)),e.base64=r=>e.check(mR(Z7,r)),e.base64url=r=>e.check(hR(P7,r)),e.xid=r=>e.check(cR(U7,r)),e.ksuid=r=>e.check(sR(F7,r)),e.ipv4=r=>e.check(dR(H7,r)),e.ipv6=r=>e.check(uR(V7,r)),e.cidrv4=r=>e.check(fR(K7,r)),e.cidrv6=r=>e.check(bR(q7,r)),e.e164=r=>e.check(pR(G7,r)),e.datetime=r=>e.check(f7(r)),e.date=r=>e.check(m7(r)),e.time=r=>e.check(p7(r)),e.duration=r=>e.check(v7(r))});function rr(e){return J9(O7,e)}const No=W("ZodStringFormat",(e,n)=>{Eo.init(e,n),yw.init(e,n)}),$7=W("ZodEmail",(e,n)=>{r9.init(e,n),No.init(e,n)}),Sx=W("ZodGUID",(e,n)=>{n9.init(e,n),No.init(e,n)}),Ts=W("ZodUUID",(e,n)=>{t9.init(e,n),No.init(e,n)}),N7=W("ZodURL",(e,n)=>{a9.init(e,n),No.init(e,n)}),R7=W("ZodEmoji",(e,n)=>{l9.init(e,n),No.init(e,n)}),B7=W("ZodNanoID",(e,n)=>{i9.init(e,n),No.init(e,n)}),D7=W("ZodCUID",(e,n)=>{c9.init(e,n),No.init(e,n)}),M7=W("ZodCUID2",(e,n)=>{s9.init(e,n),No.init(e,n)}),I7=W("ZodULID",(e,n)=>{d9.init(e,n),No.init(e,n)}),U7=W("ZodXID",(e,n)=>{u9.init(e,n),No.init(e,n)}),F7=W("ZodKSUID",(e,n)=>{f9.init(e,n),No.init(e,n)}),H7=W("ZodIPv4",(e,n)=>{k9.init(e,n),No.init(e,n)}),V7=W("ZodIPv6",(e,n)=>{v9.init(e,n),No.init(e,n)}),K7=W("ZodCIDRv4",(e,n)=>{g9.init(e,n),No.init(e,n)}),q7=W("ZodCIDRv6",(e,n)=>{_9.init(e,n),No.init(e,n)}),Z7=W("ZodBase64",(e,n)=>{x9.init(e,n),No.init(e,n)}),P7=W("ZodBase64URL",(e,n)=>{w9.init(e,n),No.init(e,n)}),G7=W("ZodE164",(e,n)=>{z9.init(e,n),No.init(e,n)}),Y7=W("ZodJWT",(e,n)=>{j9.init(e,n),No.init(e,n)}),ww=W("ZodNumber",(e,n)=>{fw.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(i,c,d)=>ZR(e,i,c),e.gt=(i,c)=>e.check(wx(i,c)),e.gte=(i,c)=>e.check(Ms(i,c)),e.min=(i,c)=>e.check(Ms(i,c)),e.lt=(i,c)=>e.check(yx(i,c)),e.lte=(i,c)=>e.check(Ds(i,c)),e.max=(i,c)=>e.check(Ds(i,c)),e.int=i=>e.check(Tx(i)),e.safe=i=>e.check(Tx(i)),e.positive=i=>e.check(wx(0,i)),e.nonnegative=i=>e.check(Ms(0,i)),e.negative=i=>e.check(yx(0,i)),e.nonpositive=i=>e.check(Ds(0,i)),e.multipleOf=(i,c)=>e.check(zx(i,c)),e.step=(i,c)=>e.check(zx(i,c)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function jx(e){return yR(ww,e)}const J7=W("ZodNumberFormat",(e,n)=>{T9.init(e,n),ww.init(e,n)});function Tx(e){return wR(J7,e)}const X7=W("ZodBoolean",(e,n)=>{A9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>PR(e,r,i)});function W7(e){return zR(X7,e)}const Q7=W("ZodUnknown",(e,n)=>{C9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>YR()});function Ax(){return SR(Q7)}const eB=W("ZodNever",(e,n)=>{E9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>GR(e,r,i)});function oB(e){return jR(eB,e)}const nB=W("ZodDate",(e,n)=>{L9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(i,c,d)=>JR(e,i),e.min=(i,c)=>e.check(Ms(i,c)),e.max=(i,c)=>e.check(Ds(i,c));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function tB(e){return TR(nB,e)}const rB=W("ZodArray",(e,n)=>{O9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>e7(e,r,i,c),e.element=n.element,e.min=(r,i)=>e.check(Qs(r,i)),e.nonempty=r=>e.check(Qs(1,r)),e.max=(r,i)=>e.check(pw(r,i)),e.length=(r,i)=>e.check(kw(r,i)),e.unwrap=()=>e.element});function aB(e,n){return IR(rB,e,n)}const lB=W("ZodObject",(e,n)=>{N9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>o7(e,r,i,c),po(e,"shape",()=>n.shape),e.keyof=()=>fB(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ax()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ax()}),e.strict=()=>e.clone({...e._zod.def,catchall:oB()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Q$(e,r),e.safeExtend=r=>eN(e,r),e.merge=r=>oN(e,r),e.pick=r=>X$(e,r),e.omit=r=>W$(e,r),e.partial=(...r)=>nN(Sw,e,r[0]),e.required=(...r)=>tN(jw,e,r[0])});function iB(e,n){const r={type:"object",shape:e??{},...je(n)};return new lB(r)}const cB=W("ZodUnion",(e,n)=>{R9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>n7(e,r,i,c),e.options=n.options});function sB(e,n){return new cB({type:"union",options:e,...je(n)})}const dB=W("ZodIntersection",(e,n)=>{B9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>t7(e,r,i,c)});function uB(e,n){return new dB({type:"intersection",left:e,right:n})}const Qb=W("ZodEnum",(e,n)=>{D9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(i,c,d)=>XR(e,i,c),e.enum=n.entries,e.options=Object.values(n.entries);const r=new Set(Object.keys(n.entries));e.extract=(i,c)=>{const d={};for(const u of i)if(r.has(u))d[u]=n.entries[u];else throw new Error(`Key ${u} not found in enum`);return new Qb({...n,checks:[],...je(c),entries:d})},e.exclude=(i,c)=>{const d={...n.entries};for(const u of i)if(r.has(u))delete d[u];else throw new Error(`Key ${u} not found in enum`);return new Qb({...n,checks:[],...je(c),entries:d})}});function fB(e,n){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Qb({type:"enum",entries:r,...je(n)})}const bB=W("ZodTransform",(e,n)=>{M9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>QR(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new J0(e.constructor.name);r.addIssue=d=>{if(typeof d=="string")r.issues.push(oc(d,r.value,n));else{const u=d;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=r.value),u.inst??(u.inst=e),r.issues.push(oc(u))}};const c=n.transform(r.value,r);return c instanceof Promise?c.then(d=>(r.value=d,r)):(r.value=c,r)}});function zw(e){return new bB({type:"transform",transform:e})}const Sw=W("ZodOptional",(e,n)=>{hw.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>xw(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function Cx(e){return new Sw({type:"optional",innerType:e})}const mB=W("ZodExactOptional",(e,n)=>{I9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>xw(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function hB(e){return new mB({type:"optional",innerType:e})}const pB=W("ZodNullable",(e,n)=>{U9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>r7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function Ex(e){return new pB({type:"nullable",innerType:e})}const kB=W("ZodDefault",(e,n)=>{F9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>l7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function vB(e,n){return new kB({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():ew(n)}})}const gB=W("ZodPrefault",(e,n)=>{H9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>i7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function _B(e,n){return new gB({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():ew(n)}})}const jw=W("ZodNonOptional",(e,n)=>{V9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>a7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function xB(e,n){return new jw({type:"nonoptional",innerType:e,...je(n)})}const yB=W("ZodCatch",(e,n)=>{K9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>c7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function wB(e,n){return new yB({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const zB=W("ZodPipe",(e,n)=>{q9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>s7(e,r,i,c),e.in=n.in,e.out=n.out});function em(e,n){return new zB({type:"pipe",in:e,out:n})}const SB=W("ZodReadonly",(e,n)=>{Z9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>d7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function jB(e){return new SB({type:"readonly",innerType:e})}const TB=W("ZodCustom",(e,n)=>{P9.init(e,n),Fo.init(e,n),e._zod.processJSONSchema=(r,i,c)=>WR(e,r)});function AB(e,n={}){return UR(TB,e,n)}function CB(e){return FR(e)}function EB(e,n){return em(zw(e),n)}const LB=iB({date:EB(e=>typeof e=="string"||e instanceof Date?new Date(e):void 0,tB({message:"Date is required"}).refine(e=>!isNaN(e.getTime()),{message:"Invalid date"})),text:rr({message:"Please enter text."}).min(10,"Text must be at least 10 characters long."),email:rr({message:"Please enter your email."}).min(1,"Please enter your email.").email("Invalid email address."),password:rr({message:"Please enter a password."}).min(8,"Password must be at least 8 characters.").regex(/[A-Z]/,"Password must include at least one uppercase letter.").regex(/[0-9]/,"Password must include at least one number."),range:jx({message:"Please select a range."}).min(30,"Minimum value is 30."),number:jx({message:"Please enter a number."}).min(1,"Minimum is 1.").max(10,"Maximum is 10."),checkbox:W7().refine(e=>e===!0,{message:"You must accept the terms and conditions."}),radio:rr({message:"Please select a gender."}).min(1,"Please select a gender."),color:rr({message:"Please select a color."}).min(1,"Please select a color."),select:rr({message:"Please select a value."}).min(1,"Please select a value."),singleSelect:rr({message:"Please select a single option."}).min(1,"Please select a single option."),combobox:rr({message:"Please select a country."}).min(1,"Please select a country."),textarea:rr({message:"Please enter a message."}).min(1,"Please enter a message.")}),OB=()=>{const{dummyClickEventHandler:e}=Io(),{handleSubmit:n,formState:{errors:r},reset:i,control:c}=El({mode:"onBlur",reValidateMode:"onChange",resolver:K$(LB),defaultValues:{range:30,number:5}}),d=()=>{i(void 0,{keepErrors:!1,keepTouched:!1,keepDirty:!1})},u=Object.entries(r).map(([m,h])=>[m,h.message]).filter(([,m])=>!!m);return a.jsxs("section",{className:"w-full max-w-3xl mx-auto p-6",children:[a.jsx(ue,{_level:2,_label:"Sample Form with Validation (Zod)"}),a.jsx(K,{children:a.jsxs("p",{children:["This example shows validation with ",a.jsx("code",{children:"react-hook-form"}),", ",a.jsx("code",{children:"Zod"}),", and an error list."]})}),u.length>0&&a.jsx(Sn,{_type:"error",_label:"Please fix the following:",_alert:!0,_variant:"card",children:a.jsx("ul",{className:"list-disc pl-5",children:u.map(([m,h],p)=>a.jsx("li",{children:a.jsx(xe,{_label:h,_href:`#field-${m}`,_on:{onClick:g=>{g.preventDefault(),document.getElementById(`field-${m}`)?.focus()}}})},p))})}),a.jsxs("form",{onSubmit:n(e),noValidate:!0,className:"grid gap-4 mt-6",children:[a.jsx(F0,{control:c,name:"date",_label:"Date"}),a.jsx(Qi,{control:c,name:"text",_label:"Text (≥ 10 chars)"}),a.jsx(M0,{control:c,name:"email",_label:"Email"}),a.jsx(D0,{control:c,name:"password",_label:"Password"}),a.jsx(U0,{control:c,name:"range",_label:"Range (≥ 30)",_min:0,_max:100}),a.jsx(I0,{control:c,name:"number",_label:"Number (1 – 10)"}),a.jsx(G0,{control:c,name:"checkbox",_label:"Accept terms"}),a.jsx(P0,{control:c,name:"radio",_label:"Gender",_options:[{label:"Female",value:"f"},{label:"Male",value:"m"}]}),a.jsx(H0,{control:c,name:"color",_label:"Favorite Color"}),a.jsx(q0,{control:c,name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(Z0,{control:c,name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(K0,{control:c,name:"combobox",_label:"Country",_suggestions:tt}),a.jsx(V0,{control:c,name:"textarea",_label:"Message",_rows:4}),a.jsxs("div",{className:"flex gap-4 mt-4",children:[a.jsx(X,{_label:"Submit",_type:"submit",_variant:"primary"}),a.jsx(X,{_label:"Reset",_type:"reset",onClick:d})]})]})]})},$B=()=>{const{searchParams:e}=new URL(location.href);return a.jsxs(a.Fragment,{children:[a.jsxs(K,{children:[a.jsx("p",{children:"This sample shows how KoliBri can be used in a static form context."}),a.jsxs("ol",{children:[a.jsxs("li",{children:["First you have to enable the ",a.jsx("code",{children:"experimental mode"}),":"," ",a.jsx("code",{className:"bg-gray-200",children:'<meta name="kolibri" content="dev-mode=false;experimental-mode=true;" />'})]}),a.jsxs("li",{children:["Currently you have to use a native ",a.jsx("code",{children:"form"})," element:"," ",a.jsx("code",{className:"bg-gray-200",children:'<form method="GET">...</form>'})]}),a.jsxs("li",{children:["It is important in static usage to give every input a ",a.jsx("code",{children:"name"})," attribute:"," ",a.jsx("code",{className:"bg-gray-200",children:'<KolInputColor _name="color" _label="Color" />'})]}),a.jsxs("li",{children:["Last of all one button should have the type ",a.jsx("code",{children:"submit"}),":"," ",a.jsx("code",{className:"bg-gray-200",children:'<KolButton _label="Submit" _type="submit" _variant="primary" />'})]})]})]}),a.jsxs("section",{className:"w-full flex flex-col",children:[e.size>0&&a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Submitted data"}),a.jsx("pre",{className:"text-base",children:a.jsx("code",{children:JSON.stringify(Object.fromEntries(e.entries()),null,2)})})]}),a.jsxs("form",{className:"grid gap-4",method:"get",noValidate:!0,children:[a.jsx(ao,{_name:"checkbox",_label:"Checkbox"}),a.jsx(Xo,{_name:"color",_label:"Color"}),a.jsx(He,{_name:"date",_label:"Date"}),a.jsx(Wo,{_name:"email",_label:"Email"}),a.jsx(Mo,{_name:"file",_label:"File"}),a.jsx(Mo,{_name:"file",_label:"Files (multiple)",_multiple:!0}),a.jsx(Ao,{_name:"number",_label:"Number"}),a.jsx(Lo,{_name:"password",_label:"Password"}),a.jsx(Oo,{_name:"radio",_label:"Radio",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(tn,{_name:"range",_label:"Range"}),a.jsx(Le,{_name:"text",_label:"Text"}),a.jsx(Qo,{_name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(Qo,{_name:"select",_label:"Select (multiple)",_multiple:!0,_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],_rows:2}),a.jsx(pn,{_name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(jn,{_name:"combobox",_label:"Combobox",_suggestions:tt}),a.jsx(eo,{_name:"textarea",_label:"Textarea",_rows:5}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_label:"Submit",_type:"submit",_variant:"primary"}),a.jsx(X,{_label:"Reset",_type:"reset"})]}),a.jsx("input",{type:"hidden",value:crypto.randomUUID(),name:"random"})]})]})]})},NB=()=>{const[e,n]=S.useState(!1),[r,i]=S.useState(!1);S.useEffect(()=>{let h;return e&&(h=setTimeout(()=>{n(!1)},2e3)),()=>clearTimeout(h)},[e]),S.useEffect(()=>{let h;return r&&(h=setTimeout(()=>{i(!1)},2e3)),()=>clearTimeout(h)},[r]);const c=()=>n(!0),d=()=>i(!0),u=S.useMemo(()=>Array.from({length:5},(p,g)=>({_label:`Button ${g+1}`,_on:{onClick:c},_icons:e?"codicon codicon-loading codicon-modifier-spin":void 0,_disabled:e})),[e]),m=S.useMemo(()=>Array.from({length:5},(p,g)=>({_label:`Button ${g+1}`,_on:{onClick:d},_disabled:r,_icons:r?"codicon codicon-loading codicon-modifier-spin":void 0})),[r]);return a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[a.jsx(ue,{_label:"Disabled Toolbar Buttons Bug (solved)"}),a.jsx(ue,{_label:"icon vor disabled",_level:2}),a.jsx(ya,{_label:"KolToolbar A",_items:u}),a.jsx(ue,{_label:"disabled vor icon",_level:2}),a.jsxs("p",{children:["Klicke auf einen der ",m.length-1," ersten Buttons hatte zur Folge, dass die nachfolgenden Buttons kaputt gehen."]}),a.jsx(ya,{_label:"KolToolbar B",_items:m})]})},RB=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This example demonstrates tooltip positioning within container query contexts. Container queries can interfere with fixed positioning, causing tooltips to render incorrectly relative to the viewport. The layout containment fix ensures tooltips position properly even when their parent elements use container-based sizing and layout rules."})}),a.jsx("div",{style:{container:"test / size",contain:"layout"},children:a.jsx(hb,{_label:"Sample PopoverButton—Click for Popover",_icons:"codicon codicon-info",_tooltipAlign:"right",_hideLabel:!0,children:"This is an explanation shown on click."})})]}),BB={scenarios:{"change-tabindex":r$,"custom-tooltip-css-properties":a$,"date-in-form":l$,"disabled-interactive-scenario":i$,"focus-elements":c$,"input-group-with-error":f$,"inputs-get-value":b$,"react-hook-form-adapter":D$,"react-hook-form-adapter-disabled":I$,"same-height-of-all-interactive-elements":U$,"static-form":$B,"sample-form-with-validation":OB,"table-horizontal-scrollbar-advanced":u$,"toolbar-item-order":NB,"tooltip-positioning":RB,"performance-test":p$}},Jm={...RA,...O8,...R8,...I8,...F8,...q8,...P8,...W8,...dA,...bA,...kA,...gA,...zA,...TA,...UA,...VA,...qA,...YA,...WA,...sC,...fC,...hC,...bE,...kE,...yE,...SE,...BE,...ME,...FE,...JE,...WE,...tL,...aL,...iL,...sL,...fL,...Y1,...Y1,...yL,...TL,..._L,...EL,...TO,...BO,...KO,...GO,...XO,...e$,...t$,...BB};t0(localStorage);const Tw=(e,n="/")=>{let r=[];for(const i in e)if(e[i]){const c=e[i],d=`${n}${i}`;typeof c=="function"?r.push(d):typeof c=="object"&&c!==null&&(r=r.concat(Tw(c,`${d}/`)))}return r},Aw=e=>{const n=[];for(const r in e)if(e[r]){const i=e[r],c=`/${r}`;if(typeof i=="function")n.push(a.jsx(_a,{path:c,element:a.jsx(i,{})},c)),n.push(a.jsx(_a,{path:`${c}/all`,element:a.jsx("div",{className:"d-grid gap-4",children:Am.filter(d=>Wy.indexOf(d.value)>=0).map(d=>a.jsxs("div",{className:"d-grid gap-2",children:[a.jsx("div",{className:"mt-4",children:a.jsx("strong",{children:d.label})}),a.jsx("div",{className:"my-2",children:a.jsx(i,{})}),a.jsx("hr",{"aria-hidden":"true"})]},d.value))})},`${c}/all`));else if(typeof i=="object"&&i!==null){const d=Object.keys(i);d.length>0&&n.push(a.jsx(_a,{path:`${c}/*`,element:a.jsxs(oy,{children:[a.jsx(_a,{path:"/",element:a.jsx(ey,{to:d[0]})}),Aw(i)]})},c))}}return n},om=Tw(Jm),DB=Aw(Jm),Lx=new Map;om.forEach(e=>{const n=e.split("/");Lx.has(n[1])||Lx.set(n[1],{label:n[1],value:e})});const MB=()=>{const e=Nn(),[n,r]=Pr(),i=n.get("theme")??Ps(),c=n.has("hideMenus");EA(i),A8(),document.title=`KoliBri-Handout - ${qb(Ps())} | v${Vb.version}`,document.body.setAttribute("class",i),document.body.dataset.theme=i;const d=u=>{r({theme:u}),window.location.reload()};return a.jsx(Cm.Provider,{value:c,children:a.jsxs("div",{className:c?"":"app-container","data-theme":i,children:[!c&&a.jsx(T8,{version:Vb.version,theme:i,sample:e.pathname,routes:Jm,routeList:om,buildDate:"2026-04-25T03:49:08.938Z",commitHash:"843b7296f",onThemeChange:d}),a.jsx("main",{className:"flex flex-col items-stretch p-4",id:"route-container",children:a.jsxs(oy,{children:[DB,a.jsx(_a,{path:"*",element:a.jsx(ey,{to:om[0],replace:!0})}),a.jsx(_a,{path:"back-page",element:a.jsx(y8,{})})]})})]})})},IB=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableI18nOverwriting"),UB=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableThemePatching"),nm=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableTagNameTransformer"),tm=e=>`${e}-sample`;nm&&Xz(tm);const FB=async()=>[F3,LT,_8];(async()=>{try{await lS(await FB(),()=>{kj(window,{transformTagName:nm?tm:void 0})},{environment:"production",reflectInputValues:!0,theme:{detect:"auto"},translation:{name:"en"},translations:IB?new Set([n=>n("en",{"kol-error":"Tiny error!"}),n=>n("de",{"kol-error":"Kleiner Fehler!"})]):void 0,transformTagName:nm?tm:void 0}),UB&&Ca.patchTheme("default",{"KOL-BUTTON":`
|
|
26011
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const m=u[1];if(n===u[0]){d(u);continue}if(e.external){const p=e.external.registry.get(u[0])?.id;if(n!==u[0]&&p){d(u);continue}}if(e.metadataRegistry.get(u[0])?.id){d(u);continue}if(m.cycle){d(u);continue}if(m.count>1&&e.reused==="ref"){d(u);continue}}}function _w(e,n){const r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=u=>{const m=e.seen.get(u);if(m.ref===null)return;const h=m.def??m.schema,p={...h},g=m.ref;if(m.ref=null,g){i(g);const _=e.seen.get(g),z=_.schema;if(z.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(z)):Object.assign(h,z),Object.assign(h,p),u._zod.parent===g)for(const j in h)j==="$ref"||j==="allOf"||j in p||delete h[j];if(z.$ref&&_.def)for(const j in h)j==="$ref"||j==="allOf"||j in _.def&&JSON.stringify(h[j])===JSON.stringify(_.def[j])&&delete h[j]}const v=u._zod.parent;if(v&&v!==g){i(v);const _=e.seen.get(v);if(_?.schema.$ref&&(h.$ref=_.schema.$ref,_.def))for(const z in h)z==="$ref"||z==="allOf"||z in _.def&&JSON.stringify(h[z])===JSON.stringify(_.def[z])&&delete h[z]}e.override({zodSchema:u,jsonSchema:h,path:m.path??[]})};for(const u of[...e.seen.entries()].reverse())i(u[0]);const c={};if(e.target==="draft-2020-12"?c.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?c.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?c.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const u=e.external.registry.get(n)?.id;if(!u)throw new Error("Schema is missing an `id` property");c.$id=e.external.uri(u)}Object.assign(c,r.def??r.schema);const d=e.external?.defs??{};for(const u of e.seen.entries()){const m=u[1];m.def&&m.defId&&(d[m.defId]=m.def)}e.external||Object.keys(d).length>0&&(e.target==="draft-2020-12"?c.$defs=d:c.definitions=d);try{const u=JSON.parse(JSON.stringify(c));return Object.defineProperty(u,"~standard",{value:{...n["~standard"],jsonSchema:{input:ed(n,"input",e.processors),output:ed(n,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function $n(e,n){const r=n??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return $n(i.element,r);if(i.type==="set")return $n(i.valueType,r);if(i.type==="lazy")return $n(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return $n(i.innerType,r);if(i.type==="intersection")return $n(i.left,r)||$n(i.right,r);if(i.type==="record"||i.type==="map")return $n(i.keyType,r)||$n(i.valueType,r);if(i.type==="pipe")return $n(i.in,r)||$n(i.out,r);if(i.type==="object"){for(const c in i.shape)if($n(i.shape[c],r))return!0;return!1}if(i.type==="union"){for(const c of i.options)if($n(c,r))return!0;return!1}if(i.type==="tuple"){for(const c of i.items)if($n(c,r))return!0;return!!(i.rest&&$n(i.rest,r))}return!1}const VR=(e,n={})=>r=>{const i=vw({...r,processors:n});return xn(e,i),gw(i,e),_w(i,e)},ed=(e,n,r={})=>i=>{const{libraryOptions:c,target:d}=i??{},u=vw({...c??{},target:d,io:n,processors:r});return xn(e,u),gw(u,e),_w(u,e)},KR={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},qR=(e,n,r,i)=>{const c=r;c.type="string";const{minimum:d,maximum:u,format:m,patterns:h,contentEncoding:p}=e._zod.bag;if(typeof d=="number"&&(c.minLength=d),typeof u=="number"&&(c.maxLength=u),m&&(c.format=KR[m]??m,c.format===""&&delete c.format,m==="time"&&delete c.format),p&&(c.contentEncoding=p),h&&h.size>0){const g=[...h];g.length===1?c.pattern=g[0].source:g.length>1&&(c.allOf=[...g.map(v=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:v.source}))])}},ZR=(e,n,r,i)=>{const c=r,{minimum:d,maximum:u,format:m,multipleOf:h,exclusiveMaximum:p,exclusiveMinimum:g}=e._zod.bag;typeof m=="string"&&m.includes("int")?c.type="integer":c.type="number",typeof g=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(c.minimum=g,c.exclusiveMinimum=!0):c.exclusiveMinimum=g),typeof d=="number"&&(c.minimum=d,typeof g=="number"&&n.target!=="draft-04"&&(g>=d?delete c.minimum:delete c.exclusiveMinimum)),typeof p=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(c.maximum=p,c.exclusiveMaximum=!0):c.exclusiveMaximum=p),typeof u=="number"&&(c.maximum=u,typeof p=="number"&&n.target!=="draft-04"&&(p<=u?delete c.maximum:delete c.exclusiveMaximum)),typeof h=="number"&&(c.multipleOf=h)},PR=(e,n,r,i)=>{r.type="boolean"},GR=(e,n,r,i)=>{r.not={}},YR=(e,n,r,i)=>{},JR=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},XR=(e,n,r,i)=>{const c=e._zod.def,d=W0(c.entries);d.every(u=>typeof u=="number")&&(r.type="number"),d.every(u=>typeof u=="string")&&(r.type="string"),r.enum=d},WR=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},QR=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},e7=(e,n,r,i)=>{const c=r,d=e._zod.def,{minimum:u,maximum:m}=e._zod.bag;typeof u=="number"&&(c.minItems=u),typeof m=="number"&&(c.maxItems=m),c.type="array",c.items=xn(d.element,n,{...i,path:[...i.path,"items"]})},o7=(e,n,r,i)=>{const c=r,d=e._zod.def;c.type="object",c.properties={};const u=d.shape;for(const p in u)c.properties[p]=xn(u[p],n,{...i,path:[...i.path,"properties",p]});const m=new Set(Object.keys(u)),h=new Set([...m].filter(p=>{const g=d.shape[p]._zod;return n.io==="input"?g.optin===void 0:g.optout===void 0}));h.size>0&&(c.required=Array.from(h)),d.catchall?._zod.def.type==="never"?c.additionalProperties=!1:d.catchall?d.catchall&&(c.additionalProperties=xn(d.catchall,n,{...i,path:[...i.path,"additionalProperties"]})):n.io==="output"&&(c.additionalProperties=!1)},n7=(e,n,r,i)=>{const c=e._zod.def,d=c.inclusive===!1,u=c.options.map((m,h)=>xn(m,n,{...i,path:[...i.path,d?"oneOf":"anyOf",h]}));d?r.oneOf=u:r.anyOf=u},t7=(e,n,r,i)=>{const c=e._zod.def,d=xn(c.left,n,{...i,path:[...i.path,"allOf",0]}),u=xn(c.right,n,{...i,path:[...i.path,"allOf",1]}),m=p=>"allOf"in p&&Object.keys(p).length===1,h=[...m(d)?d.allOf:[d],...m(u)?u.allOf:[u]];r.allOf=h},r7=(e,n,r,i)=>{const c=e._zod.def,d=xn(c.innerType,n,i),u=n.seen.get(e);n.target==="openapi-3.0"?(u.ref=c.innerType,r.nullable=!0):r.anyOf=[d,{type:"null"}]},a7=(e,n,r,i)=>{const c=e._zod.def;xn(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType},l7=(e,n,r,i)=>{const c=e._zod.def;xn(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType,r.default=JSON.parse(JSON.stringify(c.defaultValue))},i7=(e,n,r,i)=>{const c=e._zod.def;xn(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType,n.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(c.defaultValue)))},c7=(e,n,r,i)=>{const c=e._zod.def;xn(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType;let u;try{u=c.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=u},s7=(e,n,r,i)=>{const c=e._zod.def,d=n.io==="input"?c.in._zod.def.type==="transform"?c.out:c.in:c.out;xn(d,n,i);const u=n.seen.get(e);u.ref=d},d7=(e,n,r,i)=>{const c=e._zod.def;xn(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType,r.readOnly=!0},xw=(e,n,r,i)=>{const c=e._zod.def;xn(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType},u7=W("ZodISODateTime",(e,n)=>{b9.init(e,n),Bo.init(e,n)});function f7(e){return vR(u7,e)}const b7=W("ZodISODate",(e,n)=>{m9.init(e,n),Bo.init(e,n)});function m7(e){return gR(b7,e)}const h7=W("ZodISOTime",(e,n)=>{h9.init(e,n),Bo.init(e,n)});function p7(e){return _R(h7,e)}const k7=W("ZodISODuration",(e,n)=>{p9.init(e,n),Bo.init(e,n)});function v7(e){return xR(k7,e)}const g7=(e,n)=>{tw.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>aN(e,r)},flatten:{value:r=>rN(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Xb,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Xb,2)}},isEmpty:{get(){return e.issues.length===0}}})},yt=W("ZodError",g7,{Parent:Error}),_7=Pm(yt),x7=Gm(yt),y7=bd(yt),w7=md(yt),z7=cN(yt),S7=sN(yt),j7=dN(yt),T7=uN(yt),A7=fN(yt),C7=bN(yt),E7=mN(yt),L7=hN(yt),Ho=W("ZodType",(e,n)=>(Fo.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:ed(e,"input"),output:ed(e,"output")}}),e.toJSONSchema=VR(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.check=(...r)=>e.clone(Jr(n,{checks:[...n.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(r,i)=>Xr(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>_7(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>y7(e,r,i),e.parseAsync=async(r,i)=>x7(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>w7(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>z7(e,r,i),e.decode=(r,i)=>S7(e,r,i),e.encodeAsync=async(r,i)=>j7(e,r,i),e.decodeAsync=async(r,i)=>T7(e,r,i),e.safeEncode=(r,i)=>A7(e,r,i),e.safeDecode=(r,i)=>C7(e,r,i),e.safeEncodeAsync=async(r,i)=>E7(e,r,i),e.safeDecodeAsync=async(r,i)=>L7(e,r,i),e.refine=(r,i)=>e.check(AB(r,i)),e.superRefine=r=>e.check(CB(r)),e.overwrite=r=>e.check(Rl(r)),e.optional=()=>Cx(e),e.exactOptional=()=>hB(e),e.nullable=()=>Ex(e),e.nullish=()=>Cx(Ex(e)),e.nonoptional=r=>xB(e,r),e.array=()=>aB(e),e.or=r=>sB([e,r]),e.and=r=>uB(e,r),e.transform=r=>em(e,zw(r)),e.default=r=>vB(e,r),e.prefault=r=>_B(e,r),e.catch=r=>wB(e,r),e.pipe=r=>em(e,r),e.readonly=()=>jB(e),e.describe=r=>{const i=e.clone();return Ki.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return Ki.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Ki.get(e);const i=e.clone();return Ki.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),yw=W("_ZodString",(e,n)=>{Ym.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(i,c,d)=>qR(e,i,c);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check(AR(...i)),e.includes=(...i)=>e.check(LR(...i)),e.startsWith=(...i)=>e.check(OR(...i)),e.endsWith=(...i)=>e.check($R(...i)),e.min=(...i)=>e.check(Qs(...i)),e.max=(...i)=>e.check(pw(...i)),e.length=(...i)=>e.check(kw(...i)),e.nonempty=(...i)=>e.check(Qs(1,...i)),e.lowercase=i=>e.check(CR(i)),e.uppercase=i=>e.check(ER(i)),e.trim=()=>e.check(RR()),e.normalize=(...i)=>e.check(NR(...i)),e.toLowerCase=()=>e.check(BR()),e.toUpperCase=()=>e.check(DR()),e.slugify=()=>e.check(MR())}),O7=W("ZodString",(e,n)=>{Ym.init(e,n),yw.init(e,n),e.email=r=>e.check(X9($7,r)),e.url=r=>e.check(nR(N7,r)),e.jwt=r=>e.check(kR(Y7,r)),e.emoji=r=>e.check(tR(R7,r)),e.guid=r=>e.check(xx(Sx,r)),e.uuid=r=>e.check(W9(Ts,r)),e.uuidv4=r=>e.check(Q9(Ts,r)),e.uuidv6=r=>e.check(eR(Ts,r)),e.uuidv7=r=>e.check(oR(Ts,r)),e.nanoid=r=>e.check(rR(B7,r)),e.guid=r=>e.check(xx(Sx,r)),e.cuid=r=>e.check(aR(D7,r)),e.cuid2=r=>e.check(lR(M7,r)),e.ulid=r=>e.check(iR(I7,r)),e.base64=r=>e.check(mR(Z7,r)),e.base64url=r=>e.check(hR(P7,r)),e.xid=r=>e.check(cR(U7,r)),e.ksuid=r=>e.check(sR(F7,r)),e.ipv4=r=>e.check(dR(H7,r)),e.ipv6=r=>e.check(uR(V7,r)),e.cidrv4=r=>e.check(fR(K7,r)),e.cidrv6=r=>e.check(bR(q7,r)),e.e164=r=>e.check(pR(G7,r)),e.datetime=r=>e.check(f7(r)),e.date=r=>e.check(m7(r)),e.time=r=>e.check(p7(r)),e.duration=r=>e.check(v7(r))});function nr(e){return J9(O7,e)}const Bo=W("ZodStringFormat",(e,n)=>{Eo.init(e,n),yw.init(e,n)}),$7=W("ZodEmail",(e,n)=>{r9.init(e,n),Bo.init(e,n)}),Sx=W("ZodGUID",(e,n)=>{n9.init(e,n),Bo.init(e,n)}),Ts=W("ZodUUID",(e,n)=>{t9.init(e,n),Bo.init(e,n)}),N7=W("ZodURL",(e,n)=>{a9.init(e,n),Bo.init(e,n)}),R7=W("ZodEmoji",(e,n)=>{l9.init(e,n),Bo.init(e,n)}),B7=W("ZodNanoID",(e,n)=>{i9.init(e,n),Bo.init(e,n)}),D7=W("ZodCUID",(e,n)=>{c9.init(e,n),Bo.init(e,n)}),M7=W("ZodCUID2",(e,n)=>{s9.init(e,n),Bo.init(e,n)}),I7=W("ZodULID",(e,n)=>{d9.init(e,n),Bo.init(e,n)}),U7=W("ZodXID",(e,n)=>{u9.init(e,n),Bo.init(e,n)}),F7=W("ZodKSUID",(e,n)=>{f9.init(e,n),Bo.init(e,n)}),H7=W("ZodIPv4",(e,n)=>{k9.init(e,n),Bo.init(e,n)}),V7=W("ZodIPv6",(e,n)=>{v9.init(e,n),Bo.init(e,n)}),K7=W("ZodCIDRv4",(e,n)=>{g9.init(e,n),Bo.init(e,n)}),q7=W("ZodCIDRv6",(e,n)=>{_9.init(e,n),Bo.init(e,n)}),Z7=W("ZodBase64",(e,n)=>{x9.init(e,n),Bo.init(e,n)}),P7=W("ZodBase64URL",(e,n)=>{w9.init(e,n),Bo.init(e,n)}),G7=W("ZodE164",(e,n)=>{z9.init(e,n),Bo.init(e,n)}),Y7=W("ZodJWT",(e,n)=>{j9.init(e,n),Bo.init(e,n)}),ww=W("ZodNumber",(e,n)=>{fw.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(i,c,d)=>ZR(e,i,c),e.gt=(i,c)=>e.check(wx(i,c)),e.gte=(i,c)=>e.check(Ms(i,c)),e.min=(i,c)=>e.check(Ms(i,c)),e.lt=(i,c)=>e.check(yx(i,c)),e.lte=(i,c)=>e.check(Ds(i,c)),e.max=(i,c)=>e.check(Ds(i,c)),e.int=i=>e.check(Tx(i)),e.safe=i=>e.check(Tx(i)),e.positive=i=>e.check(wx(0,i)),e.nonnegative=i=>e.check(Ms(0,i)),e.negative=i=>e.check(yx(0,i)),e.nonpositive=i=>e.check(Ds(0,i)),e.multipleOf=(i,c)=>e.check(zx(i,c)),e.step=(i,c)=>e.check(zx(i,c)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function jx(e){return yR(ww,e)}const J7=W("ZodNumberFormat",(e,n)=>{T9.init(e,n),ww.init(e,n)});function Tx(e){return wR(J7,e)}const X7=W("ZodBoolean",(e,n)=>{A9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>PR(e,r,i)});function W7(e){return zR(X7,e)}const Q7=W("ZodUnknown",(e,n)=>{C9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>YR()});function Ax(){return SR(Q7)}const eB=W("ZodNever",(e,n)=>{E9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>GR(e,r,i)});function oB(e){return jR(eB,e)}const nB=W("ZodDate",(e,n)=>{L9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(i,c,d)=>JR(e,i),e.min=(i,c)=>e.check(Ms(i,c)),e.max=(i,c)=>e.check(Ds(i,c));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function tB(e){return TR(nB,e)}const rB=W("ZodArray",(e,n)=>{O9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>e7(e,r,i,c),e.element=n.element,e.min=(r,i)=>e.check(Qs(r,i)),e.nonempty=r=>e.check(Qs(1,r)),e.max=(r,i)=>e.check(pw(r,i)),e.length=(r,i)=>e.check(kw(r,i)),e.unwrap=()=>e.element});function aB(e,n){return IR(rB,e,n)}const lB=W("ZodObject",(e,n)=>{N9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>o7(e,r,i,c),po(e,"shape",()=>n.shape),e.keyof=()=>fB(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ax()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ax()}),e.strict=()=>e.clone({...e._zod.def,catchall:oB()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Q$(e,r),e.safeExtend=r=>eN(e,r),e.merge=r=>oN(e,r),e.pick=r=>X$(e,r),e.omit=r=>W$(e,r),e.partial=(...r)=>nN(Sw,e,r[0]),e.required=(...r)=>tN(jw,e,r[0])});function iB(e,n){const r={type:"object",shape:e??{},...je(n)};return new lB(r)}const cB=W("ZodUnion",(e,n)=>{R9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>n7(e,r,i,c),e.options=n.options});function sB(e,n){return new cB({type:"union",options:e,...je(n)})}const dB=W("ZodIntersection",(e,n)=>{B9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>t7(e,r,i,c)});function uB(e,n){return new dB({type:"intersection",left:e,right:n})}const Qb=W("ZodEnum",(e,n)=>{D9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(i,c,d)=>XR(e,i,c),e.enum=n.entries,e.options=Object.values(n.entries);const r=new Set(Object.keys(n.entries));e.extract=(i,c)=>{const d={};for(const u of i)if(r.has(u))d[u]=n.entries[u];else throw new Error(`Key ${u} not found in enum`);return new Qb({...n,checks:[],...je(c),entries:d})},e.exclude=(i,c)=>{const d={...n.entries};for(const u of i)if(r.has(u))delete d[u];else throw new Error(`Key ${u} not found in enum`);return new Qb({...n,checks:[],...je(c),entries:d})}});function fB(e,n){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Qb({type:"enum",entries:r,...je(n)})}const bB=W("ZodTransform",(e,n)=>{M9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>QR(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new J0(e.constructor.name);r.addIssue=d=>{if(typeof d=="string")r.issues.push(tc(d,r.value,n));else{const u=d;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=r.value),u.inst??(u.inst=e),r.issues.push(tc(u))}};const c=n.transform(r.value,r);return c instanceof Promise?c.then(d=>(r.value=d,r)):(r.value=c,r)}});function zw(e){return new bB({type:"transform",transform:e})}const Sw=W("ZodOptional",(e,n)=>{hw.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>xw(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function Cx(e){return new Sw({type:"optional",innerType:e})}const mB=W("ZodExactOptional",(e,n)=>{I9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>xw(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function hB(e){return new mB({type:"optional",innerType:e})}const pB=W("ZodNullable",(e,n)=>{U9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>r7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function Ex(e){return new pB({type:"nullable",innerType:e})}const kB=W("ZodDefault",(e,n)=>{F9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>l7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function vB(e,n){return new kB({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():ew(n)}})}const gB=W("ZodPrefault",(e,n)=>{H9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>i7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function _B(e,n){return new gB({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():ew(n)}})}const jw=W("ZodNonOptional",(e,n)=>{V9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>a7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function xB(e,n){return new jw({type:"nonoptional",innerType:e,...je(n)})}const yB=W("ZodCatch",(e,n)=>{K9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>c7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function wB(e,n){return new yB({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const zB=W("ZodPipe",(e,n)=>{q9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>s7(e,r,i,c),e.in=n.in,e.out=n.out});function em(e,n){return new zB({type:"pipe",in:e,out:n})}const SB=W("ZodReadonly",(e,n)=>{Z9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>d7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function jB(e){return new SB({type:"readonly",innerType:e})}const TB=W("ZodCustom",(e,n)=>{P9.init(e,n),Ho.init(e,n),e._zod.processJSONSchema=(r,i,c)=>WR(e,r)});function AB(e,n={}){return UR(TB,e,n)}function CB(e){return FR(e)}function EB(e,n){return em(zw(e),n)}const LB=iB({date:EB(e=>typeof e=="string"||e instanceof Date?new Date(e):void 0,tB({message:"Date is required"}).refine(e=>!isNaN(e.getTime()),{message:"Invalid date"})),text:nr({message:"Please enter text."}).min(10,"Text must be at least 10 characters long."),email:nr({message:"Please enter your email."}).min(1,"Please enter your email.").email("Invalid email address."),password:nr({message:"Please enter a password."}).min(8,"Password must be at least 8 characters.").regex(/[A-Z]/,"Password must include at least one uppercase letter.").regex(/[0-9]/,"Password must include at least one number."),range:jx({message:"Please select a range."}).min(30,"Minimum value is 30."),number:jx({message:"Please enter a number."}).min(1,"Minimum is 1.").max(10,"Maximum is 10."),checkbox:W7().refine(e=>e===!0,{message:"You must accept the terms and conditions."}),radio:nr({message:"Please select a gender."}).min(1,"Please select a gender."),color:nr({message:"Please select a color."}).min(1,"Please select a color."),select:nr({message:"Please select a value."}).min(1,"Please select a value."),singleSelect:nr({message:"Please select a single option."}).min(1,"Please select a single option."),combobox:nr({message:"Please select a country."}).min(1,"Please select a country."),textarea:nr({message:"Please enter a message."}).min(1,"Please enter a message.")}),OB=()=>{const{dummyClickEventHandler:e}=Uo(),{handleSubmit:n,formState:{errors:r},reset:i,control:c}=Ll({mode:"onBlur",reValidateMode:"onChange",resolver:K$(LB),defaultValues:{range:30,number:5}}),d=()=>{i(void 0,{keepErrors:!1,keepTouched:!1,keepDirty:!1})},u=Object.entries(r).map(([m,h])=>[m,h.message]).filter(([,m])=>!!m);return a.jsxs("section",{className:"w-full max-w-3xl mx-auto p-6",children:[a.jsx(ue,{_level:2,_label:"Sample Form with Validation (Zod)"}),a.jsx(K,{children:a.jsxs("p",{children:["This example shows validation with ",a.jsx("code",{children:"react-hook-form"}),", ",a.jsx("code",{children:"Zod"}),", and an error list."]})}),u.length>0&&a.jsx(jn,{_type:"error",_label:"Please fix the following:",_alert:!0,_variant:"card",children:a.jsx("ul",{className:"list-disc pl-5",children:u.map(([m,h],p)=>a.jsx("li",{children:a.jsx(xe,{_label:h,_href:`#field-${m}`,_on:{onClick:g=>{g.preventDefault(),document.getElementById(`field-${m}`)?.focus()}}})},p))})}),a.jsxs("form",{onSubmit:n(e),noValidate:!0,className:"grid gap-4 mt-6",children:[a.jsx(F0,{control:c,name:"date",_label:"Date"}),a.jsx(oc,{control:c,name:"text",_label:"Text (≥ 10 chars)"}),a.jsx(M0,{control:c,name:"email",_label:"Email"}),a.jsx(D0,{control:c,name:"password",_label:"Password"}),a.jsx(U0,{control:c,name:"range",_label:"Range (≥ 30)",_min:0,_max:100}),a.jsx(I0,{control:c,name:"number",_label:"Number (1 – 10)"}),a.jsx(G0,{control:c,name:"checkbox",_label:"Accept terms"}),a.jsx(P0,{control:c,name:"radio",_label:"Gender",_options:[{label:"Female",value:"f"},{label:"Male",value:"m"}]}),a.jsx(H0,{control:c,name:"color",_label:"Favorite Color"}),a.jsx(q0,{control:c,name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(Z0,{control:c,name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(K0,{control:c,name:"combobox",_label:"Country",_suggestions:lt}),a.jsx(V0,{control:c,name:"textarea",_label:"Message",_rows:4}),a.jsxs("div",{className:"flex gap-4 mt-4",children:[a.jsx(X,{_label:"Submit",_type:"submit",_variant:"primary"}),a.jsx(X,{_label:"Reset",_type:"reset",onClick:d})]})]})]})},$B=()=>{const{searchParams:e}=new URL(location.href);return a.jsxs(a.Fragment,{children:[a.jsxs(K,{children:[a.jsx("p",{children:"This sample shows how KoliBri can be used in a static form context."}),a.jsxs("ol",{children:[a.jsxs("li",{children:["First you have to enable the ",a.jsx("code",{children:"experimental mode"}),":"," ",a.jsx("code",{className:"bg-gray-200",children:'<meta name="kolibri" content="dev-mode=false;experimental-mode=true;" />'})]}),a.jsxs("li",{children:["Currently you have to use a native ",a.jsx("code",{children:"form"})," element:"," ",a.jsx("code",{className:"bg-gray-200",children:'<form method="GET">...</form>'})]}),a.jsxs("li",{children:["It is important in static usage to give every input a ",a.jsx("code",{children:"name"})," attribute:"," ",a.jsx("code",{className:"bg-gray-200",children:'<KolInputColor _name="color" _label="Color" />'})]}),a.jsxs("li",{children:["Last of all one button should have the type ",a.jsx("code",{children:"submit"}),":"," ",a.jsx("code",{className:"bg-gray-200",children:'<KolButton _label="Submit" _type="submit" _variant="primary" />'})]})]})]}),a.jsxs("section",{className:"w-full flex flex-col",children:[e.size>0&&a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Submitted data"}),a.jsx("pre",{className:"text-base",children:a.jsx("code",{children:JSON.stringify(Object.fromEntries(e.entries()),null,2)})})]}),a.jsxs("form",{className:"grid gap-4",method:"get",noValidate:!0,children:[a.jsx(lo,{_name:"checkbox",_label:"Checkbox"}),a.jsx(on,{_name:"color",_label:"Color"}),a.jsx(Ve,{_name:"date",_label:"Date"}),a.jsx(nn,{_name:"email",_label:"Email"}),a.jsx(Io,{_name:"file",_label:"File"}),a.jsx(Io,{_name:"file",_label:"Files (multiple)",_multiple:!0}),a.jsx(Co,{_name:"number",_label:"Number"}),a.jsx($o,{_name:"password",_label:"Password"}),a.jsx(No,{_name:"radio",_label:"Radio",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(ln,{_name:"range",_label:"Range"}),a.jsx(Le,{_name:"text",_label:"Text"}),a.jsx(tn,{_name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(tn,{_name:"select",_label:"Select (multiple)",_multiple:!0,_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],_rows:2}),a.jsx(kn,{_name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(Tn,{_name:"combobox",_label:"Combobox",_suggestions:lt}),a.jsx(eo,{_name:"textarea",_label:"Textarea",_rows:5}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(X,{_label:"Submit",_type:"submit",_variant:"primary"}),a.jsx(X,{_label:"Reset",_type:"reset"})]}),a.jsx("input",{type:"hidden",value:crypto.randomUUID(),name:"random"})]})]})]})},NB=()=>{const[e,n]=S.useState(!1),[r,i]=S.useState(!1);S.useEffect(()=>{let h;return e&&(h=setTimeout(()=>{n(!1)},2e3)),()=>clearTimeout(h)},[e]),S.useEffect(()=>{let h;return r&&(h=setTimeout(()=>{i(!1)},2e3)),()=>clearTimeout(h)},[r]);const c=()=>n(!0),d=()=>i(!0),u=S.useMemo(()=>Array.from({length:5},(p,g)=>({_label:`Button ${g+1}`,_on:{onClick:c},_icons:e?"codicon codicon-loading codicon-modifier-spin":void 0,_disabled:e})),[e]),m=S.useMemo(()=>Array.from({length:5},(p,g)=>({_label:`Button ${g+1}`,_on:{onClick:d},_disabled:r,_icons:r?"codicon codicon-loading codicon-modifier-spin":void 0})),[r]);return a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[a.jsx(ue,{_label:"Disabled Toolbar Buttons Bug (solved)"}),a.jsx(ue,{_label:"icon vor disabled",_level:2}),a.jsx(wa,{_label:"KolToolbar A",_items:u}),a.jsx(ue,{_label:"disabled vor icon",_level:2}),a.jsxs("p",{children:["Klicke auf einen der ",m.length-1," ersten Buttons hatte zur Folge, dass die nachfolgenden Buttons kaputt gehen."]}),a.jsx(wa,{_label:"KolToolbar B",_items:m})]})},RB=()=>a.jsxs(a.Fragment,{children:[a.jsx(K,{children:a.jsx("p",{children:"This example demonstrates tooltip positioning within container query contexts. Container queries can interfere with fixed positioning, causing tooltips to render incorrectly relative to the viewport. The layout containment fix ensures tooltips position properly even when their parent elements use container-based sizing and layout rules."})}),a.jsx("div",{style:{container:"test / size",contain:"layout"},children:a.jsx(hb,{_label:"Sample PopoverButton—Click for Popover",_icons:"codicon codicon-info",_tooltipAlign:"right",_hideLabel:!0,children:"This is an explanation shown on click."})})]}),BB={scenarios:{"change-tabindex":r$,"custom-tooltip-css-properties":a$,"date-in-form":l$,"disabled-interactive-scenario":i$,"focus-elements":c$,"input-group-with-error":f$,"inputs-get-value":b$,"react-hook-form-adapter":D$,"react-hook-form-adapter-disabled":I$,"same-height-of-all-interactive-elements":U$,"static-form":$B,"sample-form-with-validation":OB,"table-horizontal-scrollbar-advanced":u$,"toolbar-item-order":NB,"tooltip-positioning":RB,"performance-test":p$}},Jm={...RA,...O8,...R8,...I8,...F8,...q8,...P8,...W8,...dA,...bA,...kA,...gA,...zA,...TA,...UA,...VA,...qA,...YA,...WA,...sC,...fC,...hC,...bE,...kE,...yE,...SE,...BE,...ME,...FE,...JE,...WE,...tL,...aL,...iL,...sL,...fL,...Y1,...Y1,...yL,...TL,..._L,...EL,...TO,...BO,...KO,...GO,...XO,...e$,...t$,...BB};t0(localStorage);const Tw=(e,n="/")=>{let r=[];for(const i in e)if(e[i]){const c=e[i],d=`${n}${i}`;typeof c=="function"?r.push(d):typeof c=="object"&&c!==null&&(r=r.concat(Tw(c,`${d}/`)))}return r},Aw=e=>{const n=[];for(const r in e)if(e[r]){const i=e[r],c=`/${r}`;if(typeof i=="function")n.push(a.jsx(xa,{path:c,element:a.jsx(i,{})},c)),n.push(a.jsx(xa,{path:`${c}/all`,element:a.jsx("div",{className:"d-grid gap-4",children:Am.filter(d=>Wy.indexOf(d.value)>=0).map(d=>a.jsxs("div",{className:"d-grid gap-2",children:[a.jsx("div",{className:"mt-4",children:a.jsx("strong",{children:d.label})}),a.jsx("div",{className:"my-2",children:a.jsx(i,{})}),a.jsx("hr",{"aria-hidden":"true"})]},d.value))})},`${c}/all`));else if(typeof i=="object"&&i!==null){const d=Object.keys(i);d.length>0&&n.push(a.jsx(xa,{path:`${c}/*`,element:a.jsxs(oy,{children:[a.jsx(xa,{path:"/",element:a.jsx(ey,{to:d[0]})}),Aw(i)]})},c))}}return n},om=Tw(Jm),DB=Aw(Jm),Lx=new Map;om.forEach(e=>{const n=e.split("/");Lx.has(n[1])||Lx.set(n[1],{label:n[1],value:e})});const MB=()=>{const e=Bn(),[n,r]=Gr(),i=n.get("theme")??Ps(),c=n.has("hideMenus");EA(i),A8(),document.title=`KoliBri-Handout - ${qb(Ps())} | v${Vb.version}`,document.body.setAttribute("class",i),document.body.dataset.theme=i;const d=u=>{r({theme:u}),window.location.reload()};return a.jsx(Cm.Provider,{value:c,children:a.jsxs("div",{className:c?"":"app-container","data-theme":i,children:[!c&&a.jsx(T8,{version:Vb.version,theme:i,sample:e.pathname,routes:Jm,routeList:om,buildDate:"2026-04-28T12:54:25.072Z",commitHash:"230d2c119",onThemeChange:d}),a.jsx("main",{className:"flex flex-col items-stretch p-4",id:"route-container",children:a.jsxs(oy,{children:[DB,a.jsx(xa,{path:"*",element:a.jsx(ey,{to:om[0],replace:!0})}),a.jsx(xa,{path:"back-page",element:a.jsx(y8,{})})]})})]})})},IB=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableI18nOverwriting"),UB=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableThemePatching"),nm=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableTagNameTransformer"),tm=e=>`${e}-sample`;nm&&Xz(tm);const FB=async()=>[F3,LT,_8];(async()=>{try{await lS(await FB(),()=>{kj(window,{transformTagName:nm?tm:void 0})},{environment:"production",reflectInputValues:!0,theme:{detect:"auto"},translation:{name:"en"},translations:IB?new Set([n=>n("en",{"kol-error":"Tiny error!"}),n=>n("de",{"kol-error":"Kleiner Fehler!"})]):void 0,transformTagName:nm?tm:void 0}),UB&&Ea.patchTheme("default",{"KOL-BUTTON":`
|
|
26012
26012
|
button {
|
|
26013
26013
|
border: 1px solid red;
|
|
26014
26014
|
}`,"KOL-SPIN":`
|
|
@@ -26017,5 +26017,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26017
26017
|
}
|
|
26018
26018
|
.bg-spin-3 {
|
|
26019
26019
|
background-color: gold;
|
|
26020
|
-
}`},{append:!0})}catch(n){console.warn("Theme registration failed:",n)}const e=document.querySelector("div#app");e instanceof HTMLDivElement&&Bx.createRoot(e).render(a.jsx(S.StrictMode,{children:a.jsx(C6,{children:a.jsx(MB,{})})}))})();export{id as $,gy as A,uD as B,g5 as C,JB as D,gD as E,yD as F,hm as G,HS as H,VB as I,qB as J,Yf as K
|
|
26021
|
-
//# sourceMappingURL=index-
|
|
26020
|
+
}`},{append:!0})}catch(n){console.warn("Theme registration failed:",n)}const e=document.querySelector("div#app");e instanceof HTMLDivElement&&Bx.createRoot(e).render(a.jsx(S.StrictMode,{children:a.jsx(C6,{children:a.jsx(MB,{})})}))})();export{id as $,gy as A,uD as B,g5 as C,JB as D,gD as E,yD as F,hm as G,HS as H,VB as I,qB as J,Yf as K,Ro as L,f5 as M,HB as N,km as O,pD as P,hD as Q,kD as R,QB as S,eD as T,E5 as U,Og as V,S5 as W,cD as X,iD as Y,bD as Z,rS as _,Rt as a,aD as a0,WB as a1,h5 as a2,oD as a3,e_ as a4,Ea as a5,rD as a6,mD as a7,k_ as a8,C_ as a9,w_ as aa,M5 as ab,D_ as ac,q5 as ad,Pg as ae,V_ as af,F_ as ag,Kg as ah,lD as ai,K5 as aj,fD as ak,sD as al,o_ as am,r_ as an,s_ as ao,N_ as ap,H_ as aq,U_ as ar,m5 as as,wb as at,Z5 as au,P5 as av,nt as aw,F5 as ax,KB as ay,Fg as b,Vg as c,vD as d,Gg as e,YB as f,xD as g,My as h,n_ as i,v_ as j,XB as k,Jg as l,nD as m,tD as n,Zf as o,V5 as p,dD as q,_D as r,yb as s,Bg as t,PB as u,_y as v,pm as w,GB as x,y_ as y,S_ as z};
|
|
26021
|
+
//# sourceMappingURL=index-Bt3sQb7d.js.map
|