@public-ui/sample-react 3.1.2-rc.1 → 3.1.2

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.
Files changed (259) hide show
  1. package/dist/assets/{Alert-DPawiK_u-DmZyHJ9j.js → Alert-Cyr4RO_F-B9EgtDyM.js} +2 -2
  2. package/dist/assets/{Alert-DPawiK_u-DmZyHJ9j.js.map → Alert-Cyr4RO_F-B9EgtDyM.js.map} +1 -1
  3. package/dist/assets/{Collapsible-CV9uH8QW-Dg5z06c5.js → Collapsible-65J9qjb2-BZlQW_uq.js} +2 -2
  4. package/dist/assets/{Collapsible-CV9uH8QW-Dg5z06c5.js.map → Collapsible-65J9qjb2-BZlQW_uq.js.map} +1 -1
  5. package/dist/assets/{CustomSuggestionsOptionsGroup-CXBAO9w1-CHlFfhWU.js → CustomSuggestionsOptionsGroup-Dgz5IVOs-DYuIiG_X.js} +2 -2
  6. package/dist/assets/{CustomSuggestionsOptionsGroup-CXBAO9w1-CHlFfhWU.js.map → CustomSuggestionsOptionsGroup-Dgz5IVOs-DYuIiG_X.js.map} +1 -1
  7. package/dist/assets/{FieldControlStateWrapper-CTXru6yD-BNTidkBA.js → FieldControlStateWrapper-Yb7_L3u1-Dykj6Tp-.js} +2 -2
  8. package/dist/assets/{FieldControlStateWrapper-CTXru6yD-BNTidkBA.js.map → FieldControlStateWrapper-Yb7_L3u1-Dykj6Tp-.js.map} +1 -1
  9. package/dist/assets/{FormFieldStateWrapper-CxxIHDZ9-C0d1L0Pw.js → FormFieldStateWrapper-Cj4-CJCr-BKjQSump.js} +2 -2
  10. package/dist/assets/{FormFieldStateWrapper-CxxIHDZ9-C0d1L0Pw.js.map → FormFieldStateWrapper-Cj4-CJCr-BKjQSump.js.map} +1 -1
  11. package/dist/assets/{Heading-Ced-SQXs-CfG3DPhj.js → Heading-1FTzB33X-Dwxb2Oks.js} +2 -2
  12. package/dist/assets/{Heading-Ced-SQXs-CfG3DPhj.js.map → Heading-1FTzB33X-Dwxb2Oks.js.map} +1 -1
  13. package/dist/assets/{Icon-DGRJwhHU-jfAbeC9o.js → Icon-FTWc_xI9-BqSY1w1g.js} +2 -2
  14. package/dist/assets/{Icon-DGRJwhHU-jfAbeC9o.js.map → Icon-FTWc_xI9-BqSY1w1g.js.map} +1 -1
  15. package/dist/assets/{Input-CBpXZ9FH-DATdGTMS.js → Input-D-VKrBBS-CVvAf0s9.js} +2 -2
  16. package/dist/assets/{Input-CBpXZ9FH-DATdGTMS.js.map → Input-D-VKrBBS-CVvAf0s9.js.map} +1 -1
  17. package/dist/assets/{InputStateWrapper-BV_Hdtp7-DCva5HcK.js → InputStateWrapper-CqW3i2M_-C3bvbHCV.js} +2 -2
  18. package/dist/assets/{InputStateWrapper-BV_Hdtp7-DCva5HcK.js.map → InputStateWrapper-CqW3i2M_-C3bvbHCV.js.map} +1 -1
  19. package/dist/assets/{InternalUnderlinedBadgeText-BuY-onQS-CBv_n62N.js → InternalUnderlinedBadgeText-BeTCgMOl-BAoZf6fz.js} +2 -2
  20. package/dist/assets/{InternalUnderlinedBadgeText-BuY-onQS-CBv_n62N.js.map → InternalUnderlinedBadgeText-BeTCgMOl-BAoZf6fz.js.map} +1 -1
  21. package/dist/assets/{Span-C76fzthN-hRfDLnsT.js → Span-B9Wi_b1J-D8hgbpRY.js} +2 -2
  22. package/dist/assets/{Span-C76fzthN-hRfDLnsT.js.map → Span-B9Wi_b1J-D8hgbpRY.js.map} +1 -1
  23. package/dist/assets/{access-and-short-key-B37XLwy2-SrYjEW27.js → access-and-short-key-B37XLwy2-LRrdzNMq.js} +2 -2
  24. package/dist/assets/{access-and-short-key-B37XLwy2-SrYjEW27.js.map → access-and-short-key-B37XLwy2-LRrdzNMq.js.map} +1 -1
  25. package/dist/assets/{align-D-ifSKu8-Cb8xjikV.js → align-D-ifSKu8-DhQk3v06.js} +2 -2
  26. package/dist/assets/{align-D-ifSKu8-Cb8xjikV.js.map → align-D-ifSKu8-DhQk3v06.js.map} +1 -1
  27. package/dist/assets/{align-floating-elements-7Np6z5EU-C3bEGNqG.js → align-floating-elements-7Np6z5EU-DQJxJ4Kr.js} +2 -2
  28. package/dist/assets/{align-floating-elements-7Np6z5EU-C3bEGNqG.js.map → align-floating-elements-7Np6z5EU-DQJxJ4Kr.js.map} +1 -1
  29. package/dist/assets/{associated.controller-B9GDDaFL-BVDn95U5.js → associated.controller-B9GDDaFL-n-gMjtxS.js} +2 -2
  30. package/dist/assets/{associated.controller-B9GDDaFL-BVDn95U5.js.map → associated.controller-B9GDDaFL-n-gMjtxS.js.map} +1 -1
  31. package/dist/assets/{auto-complete-mCkUnxg2-3Azo4kF9.js → auto-complete-mCkUnxg2-DcRuXSH3.js} +2 -2
  32. package/dist/assets/{auto-complete-mCkUnxg2-3Azo4kF9.js.map → auto-complete-mCkUnxg2-DcRuXSH3.js.map} +1 -1
  33. package/dist/assets/{button-variant-_wL6MroY-CvInrY0F.js → button-variant-_wL6MroY-D4qSmZ16.js} +2 -2
  34. package/dist/assets/{button-variant-_wL6MroY-CvInrY0F.js.map → button-variant-_wL6MroY-D4qSmZ16.js.map} +1 -1
  35. package/dist/assets/{color-BOIEtqEM-CxuoUTc5.js → color-BOIEtqEM-BGCbgFJF.js} +2 -2
  36. package/dist/assets/{color-BOIEtqEM-CxuoUTc5.js.map → color-BOIEtqEM-BGCbgFJF.js.map} +1 -1
  37. package/dist/assets/{controller-BVM81R_j-DrpPz6k5.js → controller-BbPdbRY2-BOXEHC_v.js} +2 -2
  38. package/dist/assets/{controller-BVM81R_j-DrpPz6k5.js.map → controller-BbPdbRY2-BOXEHC_v.js.map} +1 -1
  39. package/dist/assets/{controller-CM5wW8Ij-DuGpa6C0.js → controller-CM5wW8Ij-RzCbsWxY.js} +2 -2
  40. package/dist/assets/{controller-CM5wW8Ij-DuGpa6C0.js.map → controller-CM5wW8Ij-RzCbsWxY.js.map} +1 -1
  41. package/dist/assets/{controller-CLYkhP2y-CTaygRUb.js → controller-DR4po1JO-Q5JwJkXb.js} +2 -2
  42. package/dist/assets/{controller-CLYkhP2y-CTaygRUb.js.map → controller-DR4po1JO-Q5JwJkXb.js.map} +1 -1
  43. package/dist/assets/{controller-DdvAdxaY-BG35dAH5.js → controller-DxHklGK1-BidRDbKd.js} +2 -2
  44. package/dist/assets/{controller-DdvAdxaY-BG35dAH5.js.map → controller-DxHklGK1-BidRDbKd.js.map} +1 -1
  45. package/dist/assets/{controller-icon-BMXdGWBH-DU0WzD7H.js → controller-icon-DWR7m7FI-BUiMDOPT.js} +2 -2
  46. package/dist/assets/{controller-icon-BMXdGWBH-DU0WzD7H.js.map → controller-icon-DWR7m7FI-BUiMDOPT.js.map} +1 -1
  47. package/dist/assets/custom-class-nuoQ9Aml-CKD2nvBC.js +2 -0
  48. package/dist/assets/{custom-class-nuoQ9Aml-k3CvN0Q1.js.map → custom-class-nuoQ9Aml-CKD2nvBC.js.map} +1 -1
  49. package/dist/assets/{dev.utils-iUOH5jci-BDxF2tyy.js → dev.utils-D2KUwuu5-bmd9xpB6.js} +2 -2
  50. package/dist/assets/{dev.utils-iUOH5jci-BDxF2tyy.js.map → dev.utils-D2KUwuu5-bmd9xpB6.js.map} +1 -1
  51. package/dist/assets/{devtools-x5A7ew63-D2jJoaSE.js → devtools-iuvU9xiJ-p134dzCf.js} +2 -2
  52. package/dist/assets/{devtools-x5A7ew63-D2jJoaSE.js.map → devtools-iuvU9xiJ-p134dzCf.js.map} +1 -1
  53. package/dist/assets/disabled-BhpAFgSp-Dw79dM5w.js +2 -0
  54. package/dist/assets/{disabled-BhpAFgSp-Ci8x8L08.js.map → disabled-BhpAFgSp-Dw79dM5w.js.map} +1 -1
  55. package/dist/assets/has-closer-CQzjaTkv-ByVuU6U5.js +2 -0
  56. package/dist/assets/{has-closer-CQzjaTkv-DjcH2Sqw.js.map → has-closer-CQzjaTkv-ByVuU6U5.js.map} +1 -1
  57. package/dist/assets/hide-label-B9FhGrWP-rgJHO401.js +2 -0
  58. package/dist/assets/{hide-label-B9FhGrWP-DnKJv7Uw.js.map → hide-label-B9FhGrWP-rgJHO401.js.map} +1 -1
  59. package/dist/assets/href-rwDd36rS-CW9a0MwY.js +2 -0
  60. package/dist/assets/{href-rwDd36rS-CTKE580c.js.map → href-rwDd36rS-CW9a0MwY.js.map} +1 -1
  61. package/dist/assets/i18n-LBpyQ66X-BOFQwIMK.js +2 -0
  62. package/dist/assets/{i18n-LBpyQ66X-BxdFXj4b.js.map → i18n-LBpyQ66X-BOFQwIMK.js.map} +1 -1
  63. package/dist/assets/{icons-DNTuScEN-CnMKGJ3S.js → icons-DNTuScEN-B_Aff7lh.js} +2 -2
  64. package/dist/assets/{icons-DNTuScEN-CnMKGJ3S.js.map → icons-DNTuScEN-B_Aff7lh.js.map} +1 -1
  65. package/dist/assets/image-source-BfBEJ0rX-BvOI5rV1.js +2 -0
  66. package/dist/assets/{image-source-BfBEJ0rX-Cs6mS_aI.js.map → image-source-BfBEJ0rX-BvOI5rV1.js.map} +1 -1
  67. package/dist/assets/{index-sRqLaO-Y.js → index-BZjd7-d9.js} +33 -33
  68. package/dist/assets/index-BZjd7-d9.js.map +1 -0
  69. package/dist/assets/inline-cDaqwSfK-B_1p8WG3.js +2 -0
  70. package/dist/assets/{inline-cDaqwSfK-Ca_olGs6.js.map → inline-cDaqwSfK-B_1p8WG3.js.map} +1 -1
  71. package/dist/assets/{kol-abbr.entry-CO9LTHW0.js → kol-abbr.entry-BlQgUNkH.js} +2 -2
  72. package/dist/assets/{kol-abbr.entry-CO9LTHW0.js.map → kol-abbr.entry-BlQgUNkH.js.map} +1 -1
  73. package/dist/assets/{kol-accordion.entry-C6O2r3sW.js → kol-accordion.entry-DrkecTu0.js} +2 -2
  74. package/dist/assets/{kol-accordion.entry-C6O2r3sW.js.map → kol-accordion.entry-DrkecTu0.js.map} +1 -1
  75. package/dist/assets/{kol-alert-wc.entry-DMFRB8uw.js → kol-alert-wc.entry-DzRVowx7.js} +2 -2
  76. package/dist/assets/{kol-alert-wc.entry-DMFRB8uw.js.map → kol-alert-wc.entry-DzRVowx7.js.map} +1 -1
  77. package/dist/assets/{kol-alert.entry-BnqfZDIN.js → kol-alert.entry-n-LaJLhu.js} +2 -2
  78. package/dist/assets/{kol-alert.entry-BnqfZDIN.js.map → kol-alert.entry-n-LaJLhu.js.map} +1 -1
  79. package/dist/assets/{kol-avatar-wc.entry-D5J9pYxl.js → kol-avatar-wc.entry-CpadrBFG.js} +2 -2
  80. package/dist/assets/{kol-avatar-wc.entry-D5J9pYxl.js.map → kol-avatar-wc.entry-CpadrBFG.js.map} +1 -1
  81. package/dist/assets/{kol-avatar.entry-JmYiWnA_.js → kol-avatar.entry-8tW-yVNf.js} +2 -2
  82. package/dist/assets/{kol-avatar.entry-JmYiWnA_.js.map → kol-avatar.entry-8tW-yVNf.js.map} +1 -1
  83. package/dist/assets/{kol-badge.entry-O_AeYXIJ.js → kol-badge.entry-BhGsnIZ3.js} +2 -2
  84. package/dist/assets/{kol-badge.entry-O_AeYXIJ.js.map → kol-badge.entry-BhGsnIZ3.js.map} +1 -1
  85. package/dist/assets/{kol-breadcrumb.entry-BxLiQFH9.js → kol-breadcrumb.entry-Cnj1rEM0.js} +2 -2
  86. package/dist/assets/{kol-breadcrumb.entry-BxLiQFH9.js.map → kol-breadcrumb.entry-Cnj1rEM0.js.map} +1 -1
  87. package/dist/assets/{kol-button-link.entry-obKE1T36.js → kol-button-link.entry-C-x3SjQ5.js} +2 -2
  88. package/dist/assets/{kol-button-link.entry-obKE1T36.js.map → kol-button-link.entry-C-x3SjQ5.js.map} +1 -1
  89. package/dist/assets/{kol-button-wc.entry-B2-84boN.js → kol-button-wc.entry-BaAm3eD9.js} +2 -2
  90. package/dist/assets/{kol-button-wc.entry-B2-84boN.js.map → kol-button-wc.entry-BaAm3eD9.js.map} +1 -1
  91. package/dist/assets/{kol-button.entry-C1zzBW5z.js → kol-button.entry-EFuMtzTt.js} +2 -2
  92. package/dist/assets/{kol-button.entry-C1zzBW5z.js.map → kol-button.entry-EFuMtzTt.js.map} +1 -1
  93. package/dist/assets/{kol-card-wc.entry-D3a3Y3IG.js → kol-card-wc.entry-Dr_zYsPt.js} +2 -2
  94. package/dist/assets/{kol-card-wc.entry-D3a3Y3IG.js.map → kol-card-wc.entry-Dr_zYsPt.js.map} +1 -1
  95. package/dist/assets/{kol-card.entry-DlRidgmq.js → kol-card.entry-wzw9nzRG.js} +2 -2
  96. package/dist/assets/{kol-card.entry-DlRidgmq.js.map → kol-card.entry-wzw9nzRG.js.map} +1 -1
  97. package/dist/assets/{kol-combobox.entry-DUAUSC49.js → kol-combobox.entry-DahFb7-A.js} +2 -2
  98. package/dist/assets/{kol-combobox.entry-DUAUSC49.js.map → kol-combobox.entry-DahFb7-A.js.map} +1 -1
  99. package/dist/assets/{kol-details.entry-BiV6wNfB.js → kol-details.entry-DFceOZml.js} +2 -2
  100. package/dist/assets/{kol-details.entry-BiV6wNfB.js.map → kol-details.entry-DFceOZml.js.map} +1 -1
  101. package/dist/assets/{kol-drawer.entry-DTIemJ9E.js → kol-drawer.entry-C-ta79gR.js} +2 -2
  102. package/dist/assets/{kol-drawer.entry-DTIemJ9E.js.map → kol-drawer.entry-C-ta79gR.js.map} +1 -1
  103. package/dist/assets/{kol-form.entry-DAtdP0Op.js → kol-form.entry-Bifplkno.js} +2 -2
  104. package/dist/assets/{kol-form.entry-DAtdP0Op.js.map → kol-form.entry-Bifplkno.js.map} +1 -1
  105. package/dist/assets/{kol-heading.entry-CxRaKuF3.js → kol-heading.entry-BqO2snjf.js} +2 -2
  106. package/dist/assets/{kol-heading.entry-CxRaKuF3.js.map → kol-heading.entry-BqO2snjf.js.map} +1 -1
  107. package/dist/assets/{kol-icon.entry-B45vnsI-.js → kol-icon.entry-CAd3hS00.js} +2 -2
  108. package/dist/assets/{kol-icon.entry-B45vnsI-.js.map → kol-icon.entry-CAd3hS00.js.map} +1 -1
  109. package/dist/assets/{kol-image.entry-B8pgCPeL.js → kol-image.entry-DE1cmSyl.js} +2 -2
  110. package/dist/assets/{kol-image.entry-B8pgCPeL.js.map → kol-image.entry-DE1cmSyl.js.map} +1 -1
  111. package/dist/assets/{kol-input-checkbox.entry-CTzH4m_V.js → kol-input-checkbox.entry-CfkiFtW0.js} +2 -2
  112. package/dist/assets/{kol-input-checkbox.entry-CTzH4m_V.js.map → kol-input-checkbox.entry-CfkiFtW0.js.map} +1 -1
  113. package/dist/assets/{kol-input-color.entry-B1cO5C9r.js → kol-input-color.entry-Dpg-DM0A.js} +2 -2
  114. package/dist/assets/{kol-input-color.entry-B1cO5C9r.js.map → kol-input-color.entry-Dpg-DM0A.js.map} +1 -1
  115. package/dist/assets/{kol-input-date.entry-1S7u9b6A.js → kol-input-date.entry-BA6oWQTV.js} +2 -2
  116. package/dist/assets/{kol-input-date.entry-1S7u9b6A.js.map → kol-input-date.entry-BA6oWQTV.js.map} +1 -1
  117. package/dist/assets/{kol-input-email.entry-Ct2wtuXO.js → kol-input-email.entry-B0lYJhuS.js} +2 -2
  118. package/dist/assets/{kol-input-email.entry-Ct2wtuXO.js.map → kol-input-email.entry-B0lYJhuS.js.map} +1 -1
  119. package/dist/assets/{kol-input-file.entry-B8G1ohEC.js → kol-input-file.entry-CkMb4Aa2.js} +2 -2
  120. package/dist/assets/{kol-input-file.entry-B8G1ohEC.js.map → kol-input-file.entry-CkMb4Aa2.js.map} +1 -1
  121. package/dist/assets/{kol-input-number.entry-BkV3aZNm.js → kol-input-number.entry-C9Uz7ugl.js} +2 -2
  122. package/dist/assets/{kol-input-number.entry-BkV3aZNm.js.map → kol-input-number.entry-C9Uz7ugl.js.map} +1 -1
  123. package/dist/assets/{kol-input-password.entry-C1SQs2QM.js → kol-input-password.entry-CKDnNMKM.js} +2 -2
  124. package/dist/assets/{kol-input-password.entry-C1SQs2QM.js.map → kol-input-password.entry-CKDnNMKM.js.map} +1 -1
  125. package/dist/assets/{kol-input-radio.entry-Dv51AH7N.js → kol-input-radio.entry-Bvq2xuN_.js} +2 -2
  126. package/dist/assets/{kol-input-radio.entry-Dv51AH7N.js.map → kol-input-radio.entry-Bvq2xuN_.js.map} +1 -1
  127. package/dist/assets/{kol-input-range.entry-D-Yv0ta1.js → kol-input-range.entry-BsA0bzxZ.js} +2 -2
  128. package/dist/assets/{kol-input-range.entry-D-Yv0ta1.js.map → kol-input-range.entry-BsA0bzxZ.js.map} +1 -1
  129. package/dist/assets/{kol-input-text.entry-D6HpanSD.js → kol-input-text.entry-CvPv_SpQ.js} +2 -2
  130. package/dist/assets/{kol-input-text.entry-D6HpanSD.js.map → kol-input-text.entry-CvPv_SpQ.js.map} +1 -1
  131. package/dist/assets/{kol-kolibri.entry-BHhiMbBs.js → kol-kolibri.entry-DwC2eseI.js} +2 -2
  132. package/dist/assets/{kol-kolibri.entry-BHhiMbBs.js.map → kol-kolibri.entry-DwC2eseI.js.map} +1 -1
  133. package/dist/assets/{kol-link-button.entry-Yq4trsOK.js → kol-link-button.entry-B-j63Onl.js} +2 -2
  134. package/dist/assets/{kol-link-button.entry-Yq4trsOK.js.map → kol-link-button.entry-B-j63Onl.js.map} +1 -1
  135. package/dist/assets/{kol-link-wc.entry-DzYCh4t9.js → kol-link-wc.entry-BHI_sPLD.js} +2 -2
  136. package/dist/assets/{kol-link-wc.entry-DzYCh4t9.js.map → kol-link-wc.entry-BHI_sPLD.js.map} +1 -1
  137. package/dist/assets/{kol-link.entry-CZzimAnQ.js → kol-link.entry-B3v21TEB.js} +2 -2
  138. package/dist/assets/{kol-link.entry-CZzimAnQ.js.map → kol-link.entry-B3v21TEB.js.map} +1 -1
  139. package/dist/assets/{kol-modal.entry-XLTYxNsN.js → kol-modal.entry-Dng1owrN.js} +2 -2
  140. package/dist/assets/{kol-modal.entry-XLTYxNsN.js.map → kol-modal.entry-Dng1owrN.js.map} +1 -1
  141. package/dist/assets/{kol-nav.entry-BVKBKQSJ.js → kol-nav.entry-jMjLvsej.js} +2 -2
  142. package/dist/assets/{kol-nav.entry-BVKBKQSJ.js.map → kol-nav.entry-jMjLvsej.js.map} +1 -1
  143. package/dist/assets/{kol-pagination-wc.entry-CEM325PI.js → kol-pagination-wc.entry-D87Syo85.js} +2 -2
  144. package/dist/assets/{kol-pagination-wc.entry-CEM325PI.js.map → kol-pagination-wc.entry-D87Syo85.js.map} +1 -1
  145. package/dist/assets/{kol-pagination.entry-CB_cdI3Q.js → kol-pagination.entry-COcyxfvN.js} +2 -2
  146. package/dist/assets/{kol-pagination.entry-CB_cdI3Q.js.map → kol-pagination.entry-COcyxfvN.js.map} +1 -1
  147. package/dist/assets/{kol-popover-button-wc.entry-D3TsHOPw.js → kol-popover-button-wc.entry-DG-j1VTP.js} +2 -2
  148. package/dist/assets/{kol-popover-button-wc.entry-D3TsHOPw.js.map → kol-popover-button-wc.entry-DG-j1VTP.js.map} +1 -1
  149. package/dist/assets/{kol-popover-button.entry-Dg0UkZ4P.js → kol-popover-button.entry-BKS0FWbh.js} +2 -2
  150. package/dist/assets/{kol-popover-button.entry-Dg0UkZ4P.js.map → kol-popover-button.entry-BKS0FWbh.js.map} +1 -1
  151. package/dist/assets/{kol-popover-wc.entry-Dns-e0b3.js → kol-popover-wc.entry-Dn9H03F_.js} +2 -2
  152. package/dist/assets/{kol-popover-wc.entry-Dns-e0b3.js.map → kol-popover-wc.entry-Dn9H03F_.js.map} +1 -1
  153. package/dist/assets/{kol-progress.entry-CqPvcswV.js → kol-progress.entry-CdfEo3cm.js} +2 -2
  154. package/dist/assets/{kol-progress.entry-CqPvcswV.js.map → kol-progress.entry-CdfEo3cm.js.map} +1 -1
  155. package/dist/assets/{kol-quote.entry-BdilRJzm.js → kol-quote.entry-DxBanMdi.js} +2 -2
  156. package/dist/assets/{kol-quote.entry-BdilRJzm.js.map → kol-quote.entry-DxBanMdi.js.map} +1 -1
  157. package/dist/assets/{kol-select-wc.entry-D0xWvPWg.js → kol-select-wc.entry--0rvWXvM.js} +2 -2
  158. package/dist/assets/{kol-select-wc.entry-D0xWvPWg.js.map → kol-select-wc.entry--0rvWXvM.js.map} +1 -1
  159. package/dist/assets/{kol-select.entry-kFH0Ms7P.js → kol-select.entry-CiuPcTMM.js} +2 -2
  160. package/dist/assets/{kol-select.entry-kFH0Ms7P.js.map → kol-select.entry-CiuPcTMM.js.map} +1 -1
  161. package/dist/assets/{kol-single-select.entry-BYF1cAmw.js → kol-single-select.entry-DgWYHIHW.js} +2 -2
  162. package/dist/assets/{kol-single-select.entry-BYF1cAmw.js.map → kol-single-select.entry-DgWYHIHW.js.map} +1 -1
  163. package/dist/assets/{kol-skip-nav.entry-TR_KH9IQ.js → kol-skip-nav.entry-2JkSlLKT.js} +2 -2
  164. package/dist/assets/{kol-skip-nav.entry-TR_KH9IQ.js.map → kol-skip-nav.entry-2JkSlLKT.js.map} +1 -1
  165. package/dist/assets/{kol-spin.entry-CgbvAVRf.js → kol-spin.entry-7awF0wgN.js} +2 -2
  166. package/dist/assets/{kol-spin.entry-CgbvAVRf.js.map → kol-spin.entry-7awF0wgN.js.map} +1 -1
  167. package/dist/assets/{kol-split-button.entry-DImfZNKp.js → kol-split-button.entry-D2VVIMpP.js} +2 -2
  168. package/dist/assets/{kol-split-button.entry-DImfZNKp.js.map → kol-split-button.entry-D2VVIMpP.js.map} +1 -1
  169. package/dist/assets/{kol-table-settings-wc.entry-DwGg0JtN.js → kol-table-settings-wc.entry-DYLzkbkt.js} +2 -2
  170. package/dist/assets/{kol-table-settings-wc.entry-DwGg0JtN.js.map → kol-table-settings-wc.entry-DYLzkbkt.js.map} +1 -1
  171. package/dist/assets/{kol-table-stateful.entry-2ocbR_ry.js → kol-table-stateful.entry-BZkDxJij.js} +2 -2
  172. package/dist/assets/{kol-table-stateful.entry-2ocbR_ry.js.map → kol-table-stateful.entry-BZkDxJij.js.map} +1 -1
  173. package/dist/assets/{kol-table-stateless-wc.entry-CdNudf0i.js → kol-table-stateless-wc.entry-7ru8_gCj.js} +2 -2
  174. package/dist/assets/{kol-table-stateless-wc.entry-CdNudf0i.js.map → kol-table-stateless-wc.entry-7ru8_gCj.js.map} +1 -1
  175. package/dist/assets/{kol-table-stateless.entry-By-SwJJB.js → kol-table-stateless.entry-BGgmumN4.js} +2 -2
  176. package/dist/assets/{kol-table-stateless.entry-By-SwJJB.js.map → kol-table-stateless.entry-BGgmumN4.js.map} +1 -1
  177. package/dist/assets/{kol-tabs.entry-CcbVZAD5.js → kol-tabs.entry-CuYaiFrU.js} +2 -2
  178. package/dist/assets/{kol-tabs.entry-CcbVZAD5.js.map → kol-tabs.entry-CuYaiFrU.js.map} +1 -1
  179. package/dist/assets/{kol-textarea.entry-rXsY3y_7.js → kol-textarea.entry-B2JQgArr.js} +2 -2
  180. package/dist/assets/{kol-textarea.entry-rXsY3y_7.js.map → kol-textarea.entry-B2JQgArr.js.map} +1 -1
  181. package/dist/assets/{kol-toast-container.entry-m1LW5cqQ.js → kol-toast-container.entry-DUI9j7tb.js} +2 -2
  182. package/dist/assets/{kol-toast-container.entry-m1LW5cqQ.js.map → kol-toast-container.entry-DUI9j7tb.js.map} +1 -1
  183. package/dist/assets/{kol-toolbar.entry-DRl4fTJ7.js → kol-toolbar.entry-Dwa8t314.js} +2 -2
  184. package/dist/assets/{kol-toolbar.entry-DRl4fTJ7.js.map → kol-toolbar.entry-Dwa8t314.js.map} +1 -1
  185. package/dist/assets/{kol-tooltip-wc.entry-CXNiNpNH.js → kol-tooltip-wc.entry-CdiVj6TD.js} +2 -2
  186. package/dist/assets/{kol-tooltip-wc.entry-CXNiNpNH.js.map → kol-tooltip-wc.entry-CdiVj6TD.js.map} +1 -1
  187. package/dist/assets/{kol-tree-item-wc.entry-Nqk6XEjx.js → kol-tree-item-wc.entry-COcYaJUx.js} +2 -2
  188. package/dist/assets/{kol-tree-item-wc.entry-Nqk6XEjx.js.map → kol-tree-item-wc.entry-COcYaJUx.js.map} +1 -1
  189. package/dist/assets/{kol-tree-item.entry-Bjqx2WRs.js → kol-tree-item.entry-p5TwCnrJ.js} +2 -2
  190. package/dist/assets/{kol-tree-item.entry-Bjqx2WRs.js.map → kol-tree-item.entry-p5TwCnrJ.js.map} +1 -1
  191. package/dist/assets/{kol-tree-wc.entry-46MxyTIP.js → kol-tree-wc.entry-Byf_0HR3.js} +2 -2
  192. package/dist/assets/{kol-tree-wc.entry-46MxyTIP.js.map → kol-tree-wc.entry-Byf_0HR3.js.map} +1 -1
  193. package/dist/assets/{kol-tree.entry-DpbmkuCA.js → kol-tree.entry-DUz2MvSS.js} +2 -2
  194. package/dist/assets/{kol-tree.entry-DpbmkuCA.js.map → kol-tree.entry-DUz2MvSS.js.map} +1 -1
  195. package/dist/assets/{kol-version.entry-zSDCAxho.js → kol-version.entry-B5Fm7U67.js} +2 -2
  196. package/dist/assets/{kol-version.entry-zSDCAxho.js.map → kol-version.entry-B5Fm7U67.js.map} +1 -1
  197. package/dist/assets/{label-Dnmzb2S_-Zma6Pxm_.js → label-Dnmzb2S_-1VSZxvoO.js} +2 -2
  198. package/dist/assets/{label-Dnmzb2S_-Zma6Pxm_.js.map → label-Dnmzb2S_-1VSZxvoO.js.map} +1 -1
  199. package/dist/assets/{markdown-BSkXjaSn-CNxjZ6s3.js → markdown-BSkXjaSn-Cxzu4wrx.js} +2 -2
  200. package/dist/assets/{markdown-BSkXjaSn-CNxjZ6s3.js.map → markdown-BSkXjaSn-Cxzu4wrx.js.map} +1 -1
  201. package/dist/assets/{max-length-behavior-nTw1Zuyf-8RHkW56M.js → max-length-behavior-nTw1Zuyf-DksVlr1c.js} +2 -2
  202. package/dist/assets/{max-length-behavior-nTw1Zuyf-8RHkW56M.js.map → max-length-behavior-nTw1Zuyf-DksVlr1c.js.map} +1 -1
  203. package/dist/assets/multiple-Cj3JQafH-DjTr2L2Z.js +2 -0
  204. package/dist/assets/{multiple-Cj3JQafH-DBF4KrOC.js.map → multiple-Cj3JQafH-DjTr2L2Z.js.map} +1 -1
  205. package/dist/assets/open-CbvHO4XG-Dc7OEIot.js +2 -0
  206. package/dist/assets/{open-CbvHO4XG-Cm1wrUdB.js.map → open-CbvHO4XG-Dc7OEIot.js.map} +1 -1
  207. package/dist/assets/{orientation-eCMt8CD1-aGIn3O98.js → orientation-eCMt8CD1-CCv7wRw7.js} +2 -2
  208. package/dist/assets/{orientation-eCMt8CD1-aGIn3O98.js.map → orientation-eCMt8CD1-CCv7wRw7.js.map} +1 -1
  209. package/dist/assets/placeholder-BVhy3BzI-CTg5Xeve.js +2 -0
  210. package/dist/assets/{placeholder-BVhy3BzI-wu3GKehG.js.map → placeholder-BVhy3BzI-CTg5Xeve.js.map} +1 -1
  211. package/dist/assets/read-only-BetTuumR-B93cBEp2.js +2 -0
  212. package/dist/assets/{read-only-BetTuumR-NxVp9WKU.js.map → read-only-BetTuumR-B93cBEp2.js.map} +1 -1
  213. package/dist/assets/required-CnTTpFCN-fhOY-YdZ.js +2 -0
  214. package/dist/assets/{required-CnTTpFCN-DwUNrnv3.js.map → required-CnTTpFCN-fhOY-YdZ.js.map} +1 -1
  215. package/dist/assets/rows-DtS-0sp9-D8fmVgiy.js +2 -0
  216. package/dist/assets/{rows-DtS-0sp9-DfnnqW3G.js.map → rows-DtS-0sp9-D8fmVgiy.js.map} +1 -1
  217. package/dist/assets/show-DdPK3aM7-DtcKTglg.js +2 -0
  218. package/dist/assets/{show-DdPK3aM7-Cw-uYhEh.js.map → show-DdPK3aM7-DtcKTglg.js.map} +1 -1
  219. package/dist/assets/spell-check-B9ot-4t--rYV4ph5Q.js +2 -0
  220. package/dist/assets/{spell-check-B9ot-4t--B6qpur0N.js.map → spell-check-B9ot-4t--rYV4ph5Q.js.map} +1 -1
  221. package/dist/assets/{suggestions-B-jLvT4L-m1pQE2NY.js → suggestions-B-jLvT4L-BO3c5IS0.js} +2 -2
  222. package/dist/assets/{suggestions-B-jLvT4L-m1pQE2NY.js.map → suggestions-B-jLvT4L-BO3c5IS0.js.map} +1 -1
  223. package/dist/assets/{table-settings-DxLvhwRE-Ao6HmkWN.js → table-settings-DxLvhwRE-C5gTTxaJ.js} +2 -2
  224. package/dist/assets/{table-settings-DxLvhwRE-Ao6HmkWN.js.map → table-settings-DxLvhwRE-C5gTTxaJ.js.map} +1 -1
  225. package/dist/assets/test-component.entry-kW2eau8l.js +2 -0
  226. package/dist/assets/{test-component.entry-DOmC-t2_.js.map → test-component.entry-kW2eau8l.js.map} +1 -1
  227. package/dist/assets/tooltip-align-Cnin7S26-C4CqXyIM.js +2 -0
  228. package/dist/assets/{tooltip-align-Cnin7S26-DDXM0lR1.js.map → tooltip-align-Cnin7S26-C4CqXyIM.js.map} +1 -1
  229. package/dist/assets/{unique-nav-labels-CrfmPC99-B-kQWspD.js → unique-nav-labels-CrfmPC99-FOk8izWr.js} +2 -2
  230. package/dist/assets/{unique-nav-labels-CrfmPC99-B-kQWspD.js.map → unique-nav-labels-CrfmPC99-FOk8izWr.js.map} +1 -1
  231. package/dist/assets/{validation-BfjI5un_-_s5oPe3B.js → validation-BfjI5un_-BtAAVwnX.js} +2 -2
  232. package/dist/assets/{validation-BfjI5un_-_s5oPe3B.js.map → validation-BfjI5un_-BtAAVwnX.js.map} +1 -1
  233. package/dist/assets/validation-aqgnZOL6-D9JDYnW_.js +2 -0
  234. package/dist/assets/{validation-aqgnZOL6-bH5RAQkb.js.map → validation-aqgnZOL6-D9JDYnW_.js.map} +1 -1
  235. package/dist/index.html +1 -1
  236. package/package.json +22 -20
  237. package/src/components/input-text/text-formatter.tsx +240 -139
  238. package/src/scenarios/react-hook-form/disabled.tsx +52 -0
  239. package/src/scenarios/routes.ts +2 -0
  240. package/dist/assets/custom-class-nuoQ9Aml-k3CvN0Q1.js +0 -2
  241. package/dist/assets/disabled-BhpAFgSp-Ci8x8L08.js +0 -2
  242. package/dist/assets/has-closer-CQzjaTkv-DjcH2Sqw.js +0 -2
  243. package/dist/assets/hide-label-B9FhGrWP-DnKJv7Uw.js +0 -2
  244. package/dist/assets/href-rwDd36rS-CTKE580c.js +0 -2
  245. package/dist/assets/i18n-LBpyQ66X-BxdFXj4b.js +0 -2
  246. package/dist/assets/image-source-BfBEJ0rX-Cs6mS_aI.js +0 -2
  247. package/dist/assets/index-sRqLaO-Y.js.map +0 -1
  248. package/dist/assets/inline-cDaqwSfK-Ca_olGs6.js +0 -2
  249. package/dist/assets/multiple-Cj3JQafH-DBF4KrOC.js +0 -2
  250. package/dist/assets/open-CbvHO4XG-Cm1wrUdB.js +0 -2
  251. package/dist/assets/placeholder-BVhy3BzI-wu3GKehG.js +0 -2
  252. package/dist/assets/read-only-BetTuumR-NxVp9WKU.js +0 -2
  253. package/dist/assets/required-CnTTpFCN-DwUNrnv3.js +0 -2
  254. package/dist/assets/rows-DtS-0sp9-DfnnqW3G.js +0 -2
  255. package/dist/assets/show-DdPK3aM7-Cw-uYhEh.js +0 -2
  256. package/dist/assets/spell-check-B9ot-4t--B6qpur0N.js +0 -2
  257. package/dist/assets/test-component.entry-DOmC-t2_.js +0 -2
  258. package/dist/assets/tooltip-align-Cnin7S26-DDXM0lR1.js +0 -2
  259. package/dist/assets/validation-aqgnZOL6-bH5RAQkb.js +0 -2
@@ -1,15 +1,15 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/kol-abbr.entry-CO9LTHW0.js","assets/label-Dnmzb2S_-Zma6Pxm_.js","assets/kol-accordion.entry-C6O2r3sW.js","assets/Collapsible-CV9uH8QW-Dg5z06c5.js","assets/tslib.es6-CxX45GIN-BGVaTf34.js","assets/clsx-eK3rPvPS-B-dksMZM.js","assets/Heading-Ced-SQXs-CfG3DPhj.js","assets/disabled-BhpAFgSp-Ci8x8L08.js","assets/open-CbvHO4XG-Cm1wrUdB.js","assets/dev.utils-iUOH5jci-BDxF2tyy.js","assets/validation-aqgnZOL6-bH5RAQkb.js","assets/kol-badge.entry-O_AeYXIJ.js","assets/Alert-DPawiK_u-DmZyHJ9j.js","assets/i18n-LBpyQ66X-BxdFXj4b.js","assets/color-BOIEtqEM-CxuoUTc5.js","assets/icons-DNTuScEN-CnMKGJ3S.js","assets/Span-C76fzthN-hRfDLnsT.js","assets/Icon-DGRJwhHU-jfAbeC9o.js","assets/reuse-CX4AQDkS-BaVSFETn.js","assets/markdown-BSkXjaSn-CNxjZ6s3.js","assets/InternalUnderlinedBadgeText-BuY-onQS-CBv_n62N.js","assets/isObject-DvSELytj-DhzEQer1.js","assets/kol-breadcrumb.entry-BxLiQFH9.js","assets/unique-nav-labels-CrfmPC99-B-kQWspD.js","assets/validation-BfjI5un_-_s5oPe3B.js","assets/kol-details.entry-BiV6wNfB.js","assets/kol-drawer.entry-DTIemJ9E.js","assets/align-D-ifSKu8-Cb8xjikV.js","assets/has-closer-CQzjaTkv-DjcH2Sqw.js","assets/tooltip-open-tracking-rBbBgPWP-DRkgcff2.js","assets/kol-form.entry-DAtdP0Op.js","assets/kol-heading.entry-CxRaKuF3.js","assets/kol-icon.entry-B45vnsI-.js","assets/kol-image.entry-B8pgCPeL.js","assets/image-source-BfBEJ0rX-Cs6mS_aI.js","assets/kol-input-checkbox.entry-CTzH4m_V.js","assets/controller-DdvAdxaY-BG35dAH5.js","assets/required-CnTTpFCN-DwUNrnv3.js","assets/orientation-eCMt8CD1-aGIn3O98.js","assets/FormFieldStateWrapper-CxxIHDZ9-C0d1L0Pw.js","assets/access-and-short-key-B37XLwy2-SrYjEW27.js","assets/hide-label-B9FhGrWP-DnKJv7Uw.js","assets/tooltip-align-Cnin7S26-DDXM0lR1.js","assets/associated.controller-B9GDDaFL-BVDn95U5.js","assets/Input-CBpXZ9FH-DATdGTMS.js","assets/FieldControlStateWrapper-CTXru6yD-BNTidkBA.js","assets/controller-CM5wW8Ij-DuGpa6C0.js","assets/kol-input-color.entry-B1cO5C9r.js","assets/controller-icon-BMXdGWBH-DU0WzD7H.js","assets/InputStateWrapper-BV_Hdtp7-DCva5HcK.js","assets/auto-complete-mCkUnxg2-3Azo4kF9.js","assets/suggestions-B-jLvT4L-m1pQE2NY.js","assets/kol-input-date.entry-1S7u9b6A.js","assets/read-only-BetTuumR-NxVp9WKU.js","assets/kol-input-email.entry-Ct2wtuXO.js","assets/max-length-behavior-nTw1Zuyf-8RHkW56M.js","assets/multiple-Cj3JQafH-DBF4KrOC.js","assets/controller-CLYkhP2y-CTaygRUb.js","assets/spell-check-B9ot-4t--B6qpur0N.js","assets/controller-BVM81R_j-DrpPz6k5.js","assets/placeholder-BVhy3BzI-wu3GKehG.js","assets/kol-input-file.entry-B8G1ohEC.js","assets/kol-input-number.entry-BkV3aZNm.js","assets/kol-input-password.entry-C1SQs2QM.js","assets/kol-input-radio.entry-Dv51AH7N.js","assets/kol-input-text.entry-D6HpanSD.js","assets/kol-kolibri.entry-BHhiMbBs.js","assets/kol-modal.entry-XLTYxNsN.js","assets/kol-nav.entry-BVKBKQSJ.js","assets/kol-progress.entry-CqPvcswV.js","assets/kol-quote.entry-BdilRJzm.js","assets/kol-skip-nav.entry-TR_KH9IQ.js","assets/kol-spin.entry-CgbvAVRf.js","assets/show-DdPK3aM7-Cw-uYhEh.js","assets/kol-split-button.entry-DImfZNKp.js","assets/kol-table-stateful.entry-2ocbR_ry.js","assets/table-settings-DxLvhwRE-Ao6HmkWN.js","assets/keyboard-D6PoWr38-BGYQJqo4.js","assets/kol-tabs.entry-CcbVZAD5.js","assets/kol-textarea.entry-rXsY3y_7.js","assets/rows-DtS-0sp9-DfnnqW3G.js","assets/kol-toast-container.entry-m1LW5cqQ.js","assets/kol-toolbar.entry-DRl4fTJ7.js","assets/kol-version.entry-zSDCAxho.js","assets/kol-alert-wc.entry-DMFRB8uw.js","assets/kol-avatar-wc.entry-D5J9pYxl.js","assets/kol-button-wc.entry-B2-84boN.js","assets/button-variant-_wL6MroY-CvInrY0F.js","assets/custom-class-nuoQ9Aml-k3CvN0Q1.js","assets/inline-cDaqwSfK-Ca_olGs6.js","assets/kol-card-wc.entry-D3a3Y3IG.js","assets/kol-combobox.entry-DUAUSC49.js","assets/CustomSuggestionsOptionsGroup-CXBAO9w1-CHlFfhWU.js","assets/kol-input-range.entry-D-Yv0ta1.js","assets/kol-link-wc.entry-DzYCh4t9.js","assets/href-rwDd36rS-CTKE580c.js","assets/kol-pagination-wc.entry-CEM325PI.js","assets/kol-popover-button-wc.entry-D3TsHOPw.js","assets/align-floating-elements-7Np6z5EU-C3bEGNqG.js","assets/kol-popover-wc.entry-Dns-e0b3.js","assets/kol-select-wc.entry-D0xWvPWg.js","assets/kol-single-select.entry-BYF1cAmw.js","assets/kol-table-settings-wc.entry-DwGg0JtN.js","assets/kol-table-stateless-wc.entry-CdNudf0i.js","assets/kol-tooltip-wc.entry-CXNiNpNH.js","assets/kol-tree-item-wc.entry-Nqk6XEjx.js","assets/kol-tree-wc.entry-46MxyTIP.js","assets/devtools-x5A7ew63-D2jJoaSE.js"])))=>i.map(i=>d[i]);
2
- (function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const d of s)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(s){const d={};return s.integrity&&(d.integrity=s.integrity),s.referrerPolicy&&(d.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?d.credentials="include":s.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(s){if(s.ep)return;s.ep=!0;const d=r(s);fetch(s.href,d)}})();function $z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tf={exports:{}},yi={};var Fv;function Nz(){if(Fv)return yi;Fv=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,s,d){var u=null;if(d!==void 0&&(u=""+d),s.key!==void 0&&(u=""+s.key),"key"in s){d={};for(var m in s)m!=="key"&&(d[m]=s[m])}else d=s;return s=d.ref,{$$typeof:e,type:i,key:u,ref:s!==void 0?s:null,props:d}}return yi.Fragment=n,yi.jsx=r,yi.jsxs=r,yi}var Kv;function Bz(){return Kv||(Kv=1,Tf.exports=Nz()),Tf.exports}var a=Bz(),Af={exports:{}},Be={};var Vv;function Rz(){if(Vv)return Be;Vv=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=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 N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,O={};function E(C,P,le){this.props=C,this.context=P,this.refs=O,this.updater=le||N}E.prototype.isReactComponent={},E.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")},E.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function x(){}x.prototype=E.prototype;function w(C,P,le){this.props=C,this.context=P,this.refs=O,this.updater=le||N}var $=w.prototype=new x;$.constructor=w,S($,E.prototype),$.isPureReactComponent=!0;var D=Array.isArray;function H(){}var Z={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function se(C,P,le){var fe=le.ref;return{$$typeof:e,type:C,key:P,ref:fe!==void 0?fe:null,props:le}}function $e(C,P){return se(C.type,P,C.props)}function ce(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function ne(C){var P={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(le){return P[le]})}var we=/\/+/g;function De(C,P){return typeof C=="object"&&C!==null&&C.key!=null?ne(""+C.key):P.toString(36)}function Fe(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,le,fe,Ce){var Ne=typeof C;(Ne==="undefined"||Ne==="boolean")&&(C=null);var Ge=!1;if(C===null)Ge=!0;else switch(Ne){case"bigint":case"string":case"number":Ge=!0;break;case"object":switch(C.$$typeof){case e:case n:Ge=!0;break;case g:return Ge=C._init,M(Ge(C._payload),P,le,fe,Ce)}}if(Ge)return Ce=Ce(C),Ge=fe===""?"."+De(C,0):fe,D(Ce)?(le="",Ge!=null&&(le=Ge.replace(we,"$&/")+"/"),M(Ce,P,le,"",function(vt){return vt})):Ce!=null&&(ce(Ce)&&(Ce=$e(Ce,le+(Ce.key==null||C&&C.key===Ce.key?"":(""+Ce.key).replace(we,"$&/")+"/")+Ge)),P.push(Ce)),1;Ge=0;var Co=fe===""?".":fe+":";if(D(C))for(var _o=0;_o<C.length;_o++)fe=C[_o],Ne=Co+De(fe,_o),Ge+=M(fe,P,le,Ne,Ce);else if(_o=z(C),typeof _o=="function")for(C=_o.call(C),_o=0;!(fe=C.next()).done;)fe=fe.value,Ne=Co+De(fe,_o++),Ge+=M(fe,P,le,Ne,Ce);else if(Ne==="object"){if(typeof C.then=="function")return M(Fe(C),P,le,fe,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 Ge}function G(C,P,le){if(C==null)return C;var fe=[],Ce=0;return M(C,fe,"","",function(Ne){return P.call(le,Ne,Ce++)}),fe}function ie(C){if(C._status===-1){var P=C._result;P=P(),P.then(function(le){(C._status===0||C._status===-1)&&(C._status=1,C._result=le)},function(le){(C._status===0||C._status===-1)&&(C._status=2,C._result=le)}),C._status===-1&&(C._status=0,C._result=P)}if(C._status===1)return C._result.default;throw C._result}var Se=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)},Te={map:G,forEach:function(C,P,le){G(C,function(){P.apply(this,arguments)},le)},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(!ce(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return Be.Activity=v,Be.Children=Te,Be.Component=E,Be.Fragment=r,Be.Profiler=s,Be.PureComponent=w,Be.StrictMode=i,Be.Suspense=h,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,Be.__COMPILER_RUNTIME={__proto__:null,c:function(C){return Z.H.useMemoCache(C)}},Be.cache=function(C){return function(){return C.apply(null,arguments)}},Be.cacheSignal=function(){return null},Be.cloneElement=function(C,P,le){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var fe=S({},C.props),Ce=C.key;if(P!=null)for(Ne in P.key!==void 0&&(Ce=""+P.key),P)!ee.call(P,Ne)||Ne==="key"||Ne==="__self"||Ne==="__source"||Ne==="ref"&&P.ref===void 0||(fe[Ne]=P[Ne]);var Ne=arguments.length-2;if(Ne===1)fe.children=le;else if(1<Ne){for(var Ge=Array(Ne),Co=0;Co<Ne;Co++)Ge[Co]=arguments[Co+2];fe.children=Ge}return se(C.type,Ce,fe)},Be.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},Be.createElement=function(C,P,le){var fe,Ce={},Ne=null;if(P!=null)for(fe in P.key!==void 0&&(Ne=""+P.key),P)ee.call(P,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(Ce[fe]=P[fe]);var Ge=arguments.length-2;if(Ge===1)Ce.children=le;else if(1<Ge){for(var Co=Array(Ge),_o=0;_o<Ge;_o++)Co[_o]=arguments[_o+2];Ce.children=Co}if(C&&C.defaultProps)for(fe in Ge=C.defaultProps,Ge)Ce[fe]===void 0&&(Ce[fe]=Ge[fe]);return se(C,Ne,Ce)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(C){return{$$typeof:m,render:C}},Be.isValidElement=ce,Be.lazy=function(C){return{$$typeof:g,_payload:{_status:-1,_result:C},_init:ie}},Be.memo=function(C,P){return{$$typeof:p,type:C,compare:P===void 0?null:P}},Be.startTransition=function(C){var P=Z.T,le={};Z.T=le;try{var fe=C(),Ce=Z.S;Ce!==null&&Ce(le,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(H,Se)}catch(Ne){Se(Ne)}finally{P!==null&&le.types!==null&&(P.types=le.types),Z.T=P}},Be.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},Be.use=function(C){return Z.H.use(C)},Be.useActionState=function(C,P,le){return Z.H.useActionState(C,P,le)},Be.useCallback=function(C,P){return Z.H.useCallback(C,P)},Be.useContext=function(C){return Z.H.useContext(C)},Be.useDebugValue=function(){},Be.useDeferredValue=function(C,P){return Z.H.useDeferredValue(C,P)},Be.useEffect=function(C,P){return Z.H.useEffect(C,P)},Be.useEffectEvent=function(C){return Z.H.useEffectEvent(C)},Be.useId=function(){return Z.H.useId()},Be.useImperativeHandle=function(C,P,le){return Z.H.useImperativeHandle(C,P,le)},Be.useInsertionEffect=function(C,P){return Z.H.useInsertionEffect(C,P)},Be.useLayoutEffect=function(C,P){return Z.H.useLayoutEffect(C,P)},Be.useMemo=function(C,P){return Z.H.useMemo(C,P)},Be.useOptimistic=function(C,P){return Z.H.useOptimistic(C,P)},Be.useReducer=function(C,P,le){return Z.H.useReducer(C,P,le)},Be.useRef=function(C){return Z.H.useRef(C)},Be.useState=function(C){return Z.H.useState(C)},Be.useSyncExternalStore=function(C,P,le){return Z.H.useSyncExternalStore(C,P,le)},Be.useTransition=function(){return Z.H.useTransition()},Be.version="19.2.4",Be}var qv;function em(){return qv||(qv=1,Af.exports=Rz()),Af.exports}var j=em();const ae=$z(j),Dz=e=>e.toLowerCase().split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(""),yx=e=>e.replace(/([A-Z])/g,n=>`-${n[0].toLowerCase()}`),Mz=(e,n,r={})=>{if(e instanceof Element){const i=Iz(e.classList,n,r);i!==""&&(e.className=i),Object.keys(n).forEach(s=>{if(!(s==="children"||s==="style"||s==="ref"||s==="class"||s==="className"||s==="forwardedRef"))if(s.indexOf("on")===0&&s[2]===s[2].toUpperCase()){const d=s.substring(2),u=d[0].toLowerCase()+d.substring(1);wx(u)||Hz(e,u,n[s])}else e[s]=n[s],typeof n[s]==="string"&&e.setAttribute(yx(s),n[s])})}},Iz=(e,n,r)=>{const i=n.className||n.class,s=r.className||r.class,d=Cf(e),u=Cf(i?i.split(" "):[]),m=Cf(s?s.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(" ")},Uz=e=>{switch(e){case"doubleclick":return"dblclick"}return e};const wx=e=>{if(typeof document>"u")return!0;{const n="on"+Uz(e);let r=n in document;if(!r){const i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return r}},Hz=(e,n,r)=>{const i=e.__events||(e.__events={}),s=i[n];s&&e.removeEventListener(n,s),e.addEventListener(n,i[n]=function(u){r&&r.call(this,u)})},Cf=e=>{const n=new Map;return e.forEach(r=>n.set(r,r)),n};let db;const Fz=e=>{db=e},Kz=(e,n)=>{typeof e=="function"?e(n):e!=null&&(e.current=n)},Vz=(...e)=>n=>{e.forEach(r=>{Kz(r,n)})},qz=(e,n)=>{const r=(i,s)=>ae.createElement(e,{...i,forwardedRef:s});return r.displayName=n,ae.forwardRef(r)},Ee=(e,n,r,i)=>{const s=Dz(e),d=class extends ae.Component{componentEl;setComponentElRef=u=>{this.componentEl=u};constructor(u){super(u)}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(u){Mz(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((S,O)=>{const E=v[O];if(O.indexOf("on")===0&&O[2]===O[2].toUpperCase()){const x=O.substring(2).toLowerCase();typeof document<"u"&&wx(x)&&(S[O]=E)}else{const x=typeof E;(x==="string"||x==="boolean"||x==="number")&&(S[yx(O)]=E)}return S},{}),ref:Vz(m,this.setComponentElRef),style:h},N=typeof db=="function"?db(e):e;return j.createElement(N,z,u)}static get displayName(){return s}};return qz(d,s)},Di=Ee("kol-abbr"),rn=Ee("kol-accordion"),gn=Ee("kol-alert"),ps=Ee("kol-avatar"),wo=Ee("kol-badge"),js=Ee("kol-breadcrumb"),W=Ee("kol-button"),Pe=Ee("kol-button-link"),Le=Ee("kol-card"),_n=Ee("kol-combobox"),rr=Ee("kol-details"),om=Ee("kol-drawer"),An=Ee("kol-form"),be=Ee("kol-heading"),pt=Ee("kol-icon"),Zz=Ee("kol-image"),ro=Ee("kol-input-checkbox"),Go=Ee("kol-input-color"),He=Ee("kol-input-date"),Yo=Ee("kol-input-email"),Ro=Ee("kol-input-file"),So=Ee("kol-input-number"),Eo=Ee("kol-input-password"),Lo=Ee("kol-input-radio"),en=Ee("kol-input-range"),Oe=Ee("kol-input-text"),Ss=Ee("kol-kolibri"),_e=Ee("kol-link"),Xe=Ee("kol-link-button"),Zv=Ee("kol-modal"),wl=Ee("kol-nav"),wi=Ee("kol-pagination"),ub=Ee("kol-popover-button"),nr=Ee("kol-progress"),zx=Ee("kol-quote"),Jo=Ee("kol-select"),bn=Ee("kol-single-select"),Pz=Ee("kol-skip-nav"),Ws=Ee("kol-spin"),_l=Ee("kol-split-button"),mo=Ee("kol-table-stateful"),Sl=Ee("kol-table-stateless"),cr=Ee("kol-tabs"),Qe=Ee("kol-textarea"),ga=Ee("kol-toolbar"),jx=Ee("kol-tree"),Qo=Ee("kol-tree-item"),Qs=Ee("kol-version");function Fr(e){const n=document.createElement("div");return n.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(n),n}var Ef={exports:{}},zi={},Lf={exports:{}},Of={};var Pv;function Gz(){return Pv||(Pv=1,(function(e){function n(M,G){var ie=M.length;M.push(G);e:for(;0<ie;){var Se=ie-1>>>1,Te=M[Se];if(0<s(Te,G))M[Se]=G,M[ie]=Te,ie=Se;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],ie=M.pop();if(ie!==G){M[0]=ie;e:for(var Se=0,Te=M.length,C=Te>>>1;Se<C;){var P=2*(Se+1)-1,le=M[P],fe=P+1,Ce=M[fe];if(0>s(le,ie))fe<Te&&0>s(Ce,le)?(M[Se]=Ce,M[fe]=ie,Se=fe):(M[Se]=le,M[P]=ie,Se=P);else if(fe<Te&&0>s(Ce,ie))M[Se]=Ce,M[fe]=ie,Se=fe;else break e}}return G}function s(M,G){var ie=M.sortIndex-G.sortIndex;return ie!==0?ie: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,N=!1,S=!1,O=!1,E=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function $(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(S=!1,$(M),!N)if(r(h)!==null)N=!0,H||(H=!0,ne());else{var G=r(p);G!==null&&Fe(D,G.startTime-M)}}var H=!1,Z=-1,ee=5,se=-1;function $e(){return O?!0:!(e.unstable_now()-se<ee)}function ce(){if(O=!1,H){var M=e.unstable_now();se=M;var G=!0;try{e:{N=!1,S&&(S=!1,x(Z),Z=-1),z=!0;var ie=_;try{o:{for($(M),v=r(h);v!==null&&!(v.expirationTime>M&&$e());){var Se=v.callback;if(typeof Se=="function"){v.callback=null,_=v.priorityLevel;var Te=Se(v.expirationTime<=M);if(M=e.unstable_now(),typeof Te=="function"){v.callback=Te,$(M),G=!0;break o}v===r(h)&&i(h),$(M)}else i(h);v=r(h)}if(v!==null)G=!0;else{var C=r(p);C!==null&&Fe(D,C.startTime-M),G=!1}}break e}finally{v=null,_=ie,z=!1}G=void 0}}finally{G?ne():H=!1}}}var ne;if(typeof w=="function")ne=function(){w(ce)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,De=we.port2;we.port1.onmessage=ce,ne=function(){De.postMessage(null)}}else ne=function(){E(ce,0)};function Fe(M,G){Z=E(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"):ee=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 ie=_;_=G;try{return M()}finally{_=ie}},e.unstable_requestPaint=function(){O=!0},e.unstable_runWithPriority=function(M,G){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ie=_;_=M;try{return G()}finally{_=ie}},e.unstable_scheduleCallback=function(M,G,ie){var Se=e.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?Se+ie:Se):ie=Se,M){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=ie+Te,M={id:g++,callback:G,priorityLevel:M,startTime:ie,expirationTime:Te,sortIndex:-1},ie>Se?(M.sortIndex=ie,n(p,M),r(h)===null&&M===r(p)&&(S?(x(Z),Z=-1):S=!0,Fe(D,ie-Se))):(M.sortIndex=Te,n(h,M),N||z||(N=!0,H||(H=!0,ne()))),M},e.unstable_shouldYield=$e,e.unstable_wrapCallback=function(M){var G=_;return function(){var ie=_;_=G;try{return M.apply(this,arguments)}finally{_=ie}}}})(Of)),Of}var Gv;function Yz(){return Gv||(Gv=1,Lf.exports=Gz()),Lf.exports}var $f={exports:{}},kn={};var Yv;function Jz(){if(Yv)return kn;Yv=1;var e=em();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},s=Symbol.for("react.portal");function d(h,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,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 kn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,kn.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)},kn.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()}},kn.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))},kn.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},kn.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})}},kn.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)},kn.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})}},kn.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)},kn.requestFormReset=function(h){i.d.r(h)},kn.unstable_batchedUpdates=function(h,p){return h(p)},kn.useFormState=function(h,p,g){return u.H.useFormState(h,p,g)},kn.useFormStatus=function(){return u.H.useHostTransitionStatus()},kn.version="19.2.4",kn}var Jv;function Xz(){if(Jv)return $f.exports;Jv=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=Jz(),$f.exports}var Xv;function Wz(){if(Xv)return zi;Xv=1;var e=Yz(),n=em(),r=Xz();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 s(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,c=t;;){var f=l.return;if(f===null)break;var b=f.alternate;if(b===null){if(c=f.return,c!==null){l=c;continue}break}if(f.child===b.child){for(b=f.child;b;){if(b===l)return h(f),o;if(b===c)return h(f),t;b=b.sibling}throw Error(i(188))}if(l.return!==c.return)l=f,c=b;else{for(var k=!1,y=f.child;y;){if(y===l){k=!0,l=f,c=b;break}if(y===c){k=!0,c=f,l=b;break}y=y.sibling}if(!k){for(y=b.child;y;){if(y===l){k=!0,l=b,c=f;break}if(y===c){k=!0,c=b,l=f;break}y=y.sibling}if(!k)throw Error(i(189))}}if(l.alternate!==c)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"),N=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),w=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),$e=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function ne(o){return o===null||typeof o!="object"?null:(o=ce&&o[ce]||o["@@iterator"],typeof o=="function"?o:null)}var we=Symbol.for("react.client.reference");function De(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===we?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case S:return"Fragment";case E:return"Profiler";case O:return"StrictMode";case D:return"Suspense";case H:return"SuspenseList";case se:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case N:return"Portal";case w:return o.displayName||"Context";case x:return(o._context.displayName||"Context")+".Consumer";case $:var t=o.render;return o=o.displayName,o||(o=t.displayName||t.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Z:return t=o.displayName||null,t!==null?t:De(o.type)||"Memo";case ee:t=o._payload,o=o._init;try{return De(o(t))}catch{}}return null}var Fe=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,ie={pending:!1,data:null,method:null,action:null},Se=[],Te=-1;function C(o){return{current:o}}function P(o){0>Te||(o.current=Se[Te],Se[Te]=null,Te--)}function le(o,t){Te++,Se[Te]=o.current,o.current=t}var fe=C(null),Ce=C(null),Ne=C(null),Ge=C(null);function Co(o,t){switch(le(Ne,t),le(Ce,o),le(fe,null),t.nodeType){case 9:case 11:o=(o=t.documentElement)&&(o=o.namespaceURI)?uv(o):0;break;default:if(o=t.tagName,t=t.namespaceURI)t=uv(t),o=fv(t,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}P(fe),le(fe,o)}function _o(){P(fe),P(Ce),P(Ne)}function vt(o){o.memoizedState!==null&&le(Ge,o);var t=fe.current,l=fv(t,o.type);t!==l&&(le(Ce,o),le(fe,l))}function St(o){Ce.current===o&&(P(fe),P(Ce)),Ge.current===o&&(P(Ge),vi._currentValue=ie)}var Pr,Gr;function gt(o){if(Pr===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Pr=t&&t[1]||"",Gr=-1<l.stack.indexOf(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/kol-abbr.entry-BlQgUNkH.js","assets/label-Dnmzb2S_-1VSZxvoO.js","assets/kol-accordion.entry-DrkecTu0.js","assets/Collapsible-65J9qjb2-BZlQW_uq.js","assets/tslib.es6-CxX45GIN-BGVaTf34.js","assets/clsx-eK3rPvPS-B-dksMZM.js","assets/Heading-1FTzB33X-Dwxb2Oks.js","assets/disabled-BhpAFgSp-Dw79dM5w.js","assets/open-CbvHO4XG-Dc7OEIot.js","assets/dev.utils-D2KUwuu5-bmd9xpB6.js","assets/validation-aqgnZOL6-D9JDYnW_.js","assets/kol-badge.entry-BhGsnIZ3.js","assets/Alert-Cyr4RO_F-B9EgtDyM.js","assets/i18n-LBpyQ66X-BOFQwIMK.js","assets/color-BOIEtqEM-BGCbgFJF.js","assets/icons-DNTuScEN-B_Aff7lh.js","assets/Span-B9Wi_b1J-D8hgbpRY.js","assets/Icon-FTWc_xI9-BqSY1w1g.js","assets/reuse-CX4AQDkS-BaVSFETn.js","assets/markdown-BSkXjaSn-Cxzu4wrx.js","assets/InternalUnderlinedBadgeText-BeTCgMOl-BAoZf6fz.js","assets/isObject-DvSELytj-DhzEQer1.js","assets/kol-breadcrumb.entry-Cnj1rEM0.js","assets/unique-nav-labels-CrfmPC99-FOk8izWr.js","assets/validation-BfjI5un_-BtAAVwnX.js","assets/kol-details.entry-DFceOZml.js","assets/kol-drawer.entry-C-ta79gR.js","assets/align-D-ifSKu8-DhQk3v06.js","assets/has-closer-CQzjaTkv-ByVuU6U5.js","assets/tooltip-open-tracking-rBbBgPWP-DRkgcff2.js","assets/kol-form.entry-Bifplkno.js","assets/kol-heading.entry-BqO2snjf.js","assets/kol-icon.entry-CAd3hS00.js","assets/kol-image.entry-DE1cmSyl.js","assets/image-source-BfBEJ0rX-BvOI5rV1.js","assets/kol-input-checkbox.entry-CfkiFtW0.js","assets/controller-DxHklGK1-BidRDbKd.js","assets/required-CnTTpFCN-fhOY-YdZ.js","assets/orientation-eCMt8CD1-CCv7wRw7.js","assets/FormFieldStateWrapper-Cj4-CJCr-BKjQSump.js","assets/access-and-short-key-B37XLwy2-LRrdzNMq.js","assets/hide-label-B9FhGrWP-rgJHO401.js","assets/tooltip-align-Cnin7S26-C4CqXyIM.js","assets/associated.controller-B9GDDaFL-n-gMjtxS.js","assets/Input-D-VKrBBS-CVvAf0s9.js","assets/FieldControlStateWrapper-Yb7_L3u1-Dykj6Tp-.js","assets/controller-CM5wW8Ij-RzCbsWxY.js","assets/kol-input-color.entry-Dpg-DM0A.js","assets/controller-icon-DWR7m7FI-BUiMDOPT.js","assets/InputStateWrapper-CqW3i2M_-C3bvbHCV.js","assets/auto-complete-mCkUnxg2-DcRuXSH3.js","assets/suggestions-B-jLvT4L-BO3c5IS0.js","assets/kol-input-date.entry-BA6oWQTV.js","assets/read-only-BetTuumR-B93cBEp2.js","assets/kol-input-email.entry-B0lYJhuS.js","assets/max-length-behavior-nTw1Zuyf-DksVlr1c.js","assets/multiple-Cj3JQafH-DjTr2L2Z.js","assets/controller-DR4po1JO-Q5JwJkXb.js","assets/spell-check-B9ot-4t--rYV4ph5Q.js","assets/controller-BbPdbRY2-BOXEHC_v.js","assets/placeholder-BVhy3BzI-CTg5Xeve.js","assets/kol-input-file.entry-CkMb4Aa2.js","assets/kol-input-number.entry-C9Uz7ugl.js","assets/kol-input-password.entry-CKDnNMKM.js","assets/kol-input-radio.entry-Bvq2xuN_.js","assets/kol-input-text.entry-CvPv_SpQ.js","assets/kol-kolibri.entry-DwC2eseI.js","assets/kol-modal.entry-Dng1owrN.js","assets/kol-nav.entry-jMjLvsej.js","assets/kol-progress.entry-CdfEo3cm.js","assets/kol-quote.entry-DxBanMdi.js","assets/kol-skip-nav.entry-2JkSlLKT.js","assets/kol-spin.entry-7awF0wgN.js","assets/show-DdPK3aM7-DtcKTglg.js","assets/kol-split-button.entry-D2VVIMpP.js","assets/kol-table-stateful.entry-BZkDxJij.js","assets/table-settings-DxLvhwRE-C5gTTxaJ.js","assets/keyboard-D6PoWr38-BGYQJqo4.js","assets/kol-tabs.entry-CuYaiFrU.js","assets/kol-textarea.entry-B2JQgArr.js","assets/rows-DtS-0sp9-D8fmVgiy.js","assets/kol-toast-container.entry-DUI9j7tb.js","assets/kol-toolbar.entry-Dwa8t314.js","assets/kol-version.entry-B5Fm7U67.js","assets/kol-alert-wc.entry-DzRVowx7.js","assets/kol-avatar-wc.entry-CpadrBFG.js","assets/kol-button-wc.entry-BaAm3eD9.js","assets/button-variant-_wL6MroY-D4qSmZ16.js","assets/custom-class-nuoQ9Aml-CKD2nvBC.js","assets/inline-cDaqwSfK-B_1p8WG3.js","assets/kol-card-wc.entry-Dr_zYsPt.js","assets/kol-combobox.entry-DahFb7-A.js","assets/CustomSuggestionsOptionsGroup-Dgz5IVOs-DYuIiG_X.js","assets/kol-input-range.entry-BsA0bzxZ.js","assets/kol-link-wc.entry-BHI_sPLD.js","assets/href-rwDd36rS-CW9a0MwY.js","assets/kol-pagination-wc.entry-D87Syo85.js","assets/kol-popover-button-wc.entry-DG-j1VTP.js","assets/align-floating-elements-7Np6z5EU-DQJxJ4Kr.js","assets/kol-popover-wc.entry-Dn9H03F_.js","assets/kol-select-wc.entry--0rvWXvM.js","assets/kol-single-select.entry-DgWYHIHW.js","assets/kol-table-settings-wc.entry-DYLzkbkt.js","assets/kol-table-stateless-wc.entry-7ru8_gCj.js","assets/kol-tooltip-wc.entry-CdiVj6TD.js","assets/kol-tree-item-wc.entry-COcYaJUx.js","assets/kol-tree-wc.entry-Byf_0HR3.js","assets/devtools-iuvU9xiJ-p134dzCf.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 $z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Af={exports:{}},wi={};var Kv;function Nz(){if(Kv)return wi;Kv=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 wi.Fragment=n,wi.jsx=r,wi.jsxs=r,wi}var Vv;function Bz(){return Vv||(Vv=1,Af.exports=Nz()),Af.exports}var a=Bz(),Cf={exports:{}},Be={};var qv;function Rz(){if(qv)return Be;qv=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"),x=Symbol.iterator;function z(C){return C===null||typeof C!="object"?null:(C=x&&C[x]||C["@@iterator"],typeof C=="function"?C:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,O={};function E(C,P,le){this.props=C,this.context=P,this.refs=O,this.updater=le||N}E.prototype.isReactComponent={},E.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")},E.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function _(){}_.prototype=E.prototype;function w(C,P,le){this.props=C,this.context=P,this.refs=O,this.updater=le||N}var $=w.prototype=new _;$.constructor=w,S($,E.prototype),$.isPureReactComponent=!0;var D=Array.isArray;function F(){}var Z={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function se(C,P,le){var be=le.ref;return{$$typeof:e,type:C,key:P,ref:be!==void 0?be:null,props:le}}function $e(C,P){return se(C.type,P,C.props)}function ce(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function ne(C){var P={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(le){return P[le]})}var we=/\/+/g;function De(C,P){return typeof C=="object"&&C!==null&&C.key!=null?ne(""+C.key):P.toString(36)}function He(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(F,F):(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,le,be,Ce){var Ne=typeof C;(Ne==="undefined"||Ne==="boolean")&&(C=null);var Ge=!1;if(C===null)Ge=!0;else switch(Ne){case"bigint":case"string":case"number":Ge=!0;break;case"object":switch(C.$$typeof){case e:case n:Ge=!0;break;case g:return Ge=C._init,M(Ge(C._payload),P,le,be,Ce)}}if(Ge)return Ce=Ce(C),Ge=be===""?"."+De(C,0):be,D(Ce)?(le="",Ge!=null&&(le=Ge.replace(we,"$&/")+"/"),M(Ce,P,le,"",function(vt){return vt})):Ce!=null&&(ce(Ce)&&(Ce=$e(Ce,le+(Ce.key==null||C&&C.key===Ce.key?"":(""+Ce.key).replace(we,"$&/")+"/")+Ge)),P.push(Ce)),1;Ge=0;var Co=be===""?".":be+":";if(D(C))for(var _o=0;_o<C.length;_o++)be=C[_o],Ne=Co+De(be,_o),Ge+=M(be,P,le,Ne,Ce);else if(_o=z(C),typeof _o=="function")for(C=_o.call(C),_o=0;!(be=C.next()).done;)be=be.value,Ne=Co+De(be,_o++),Ge+=M(be,P,le,Ne,Ce);else if(Ne==="object"){if(typeof C.then=="function")return M(He(C),P,le,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 Ge}function G(C,P,le){if(C==null)return C;var be=[],Ce=0;return M(C,be,"","",function(Ne){return P.call(le,Ne,Ce++)}),be}function ie(C){if(C._status===-1){var P=C._result;P=P(),P.then(function(le){(C._status===0||C._status===-1)&&(C._status=1,C._result=le)},function(le){(C._status===0||C._status===-1)&&(C._status=2,C._result=le)}),C._status===-1&&(C._status=0,C._result=P)}if(C._status===1)return C._result.default;throw C._result}var Se=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)},Te={map:G,forEach:function(C,P,le){G(C,function(){P.apply(this,arguments)},le)},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(!ce(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return Be.Activity=v,Be.Children=Te,Be.Component=E,Be.Fragment=r,Be.Profiler=c,Be.PureComponent=w,Be.StrictMode=i,Be.Suspense=h,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,Be.__COMPILER_RUNTIME={__proto__:null,c:function(C){return Z.H.useMemoCache(C)}},Be.cache=function(C){return function(){return C.apply(null,arguments)}},Be.cacheSignal=function(){return null},Be.cloneElement=function(C,P,le){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var be=S({},C.props),Ce=C.key;if(P!=null)for(Ne in P.key!==void 0&&(Ce=""+P.key),P)!ee.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=le;else if(1<Ne){for(var Ge=Array(Ne),Co=0;Co<Ne;Co++)Ge[Co]=arguments[Co+2];be.children=Ge}return se(C.type,Ce,be)},Be.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},Be.createElement=function(C,P,le){var be,Ce={},Ne=null;if(P!=null)for(be in P.key!==void 0&&(Ne=""+P.key),P)ee.call(P,be)&&be!=="key"&&be!=="__self"&&be!=="__source"&&(Ce[be]=P[be]);var Ge=arguments.length-2;if(Ge===1)Ce.children=le;else if(1<Ge){for(var Co=Array(Ge),_o=0;_o<Ge;_o++)Co[_o]=arguments[_o+2];Ce.children=Co}if(C&&C.defaultProps)for(be in Ge=C.defaultProps,Ge)Ce[be]===void 0&&(Ce[be]=Ge[be]);return se(C,Ne,Ce)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(C){return{$$typeof:m,render:C}},Be.isValidElement=ce,Be.lazy=function(C){return{$$typeof:g,_payload:{_status:-1,_result:C},_init:ie}},Be.memo=function(C,P){return{$$typeof:p,type:C,compare:P===void 0?null:P}},Be.startTransition=function(C){var P=Z.T,le={};Z.T=le;try{var be=C(),Ce=Z.S;Ce!==null&&Ce(le,be),typeof be=="object"&&be!==null&&typeof be.then=="function"&&be.then(F,Se)}catch(Ne){Se(Ne)}finally{P!==null&&le.types!==null&&(P.types=le.types),Z.T=P}},Be.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},Be.use=function(C){return Z.H.use(C)},Be.useActionState=function(C,P,le){return Z.H.useActionState(C,P,le)},Be.useCallback=function(C,P){return Z.H.useCallback(C,P)},Be.useContext=function(C){return Z.H.useContext(C)},Be.useDebugValue=function(){},Be.useDeferredValue=function(C,P){return Z.H.useDeferredValue(C,P)},Be.useEffect=function(C,P){return Z.H.useEffect(C,P)},Be.useEffectEvent=function(C){return Z.H.useEffectEvent(C)},Be.useId=function(){return Z.H.useId()},Be.useImperativeHandle=function(C,P,le){return Z.H.useImperativeHandle(C,P,le)},Be.useInsertionEffect=function(C,P){return Z.H.useInsertionEffect(C,P)},Be.useLayoutEffect=function(C,P){return Z.H.useLayoutEffect(C,P)},Be.useMemo=function(C,P){return Z.H.useMemo(C,P)},Be.useOptimistic=function(C,P){return Z.H.useOptimistic(C,P)},Be.useReducer=function(C,P,le){return Z.H.useReducer(C,P,le)},Be.useRef=function(C){return Z.H.useRef(C)},Be.useState=function(C){return Z.H.useState(C)},Be.useSyncExternalStore=function(C,P,le){return Z.H.useSyncExternalStore(C,P,le)},Be.useTransition=function(){return Z.H.useTransition()},Be.version="19.2.4",Be}var Zv;function om(){return Zv||(Zv=1,Cf.exports=Rz()),Cf.exports}var j=om();const ae=$z(j),Dz=e=>e.toLowerCase().split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(""),wx=e=>e.replace(/([A-Z])/g,n=>`-${n[0].toLowerCase()}`),Mz=(e,n,r={})=>{if(e instanceof Element){const i=Iz(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);zx(u)||Fz(e,u,n[c])}else e[c]=n[c],typeof n[c]==="string"&&e.setAttribute(wx(c),n[c])})}},Iz=(e,n,r)=>{const i=n.className||n.class,c=r.className||r.class,d=Ef(e),u=Ef(i?i.split(" "):[]),m=Ef(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(" ")},Uz=e=>{switch(e){case"doubleclick":return"dblclick"}return e};const zx=e=>{if(typeof document>"u")return!0;{const n="on"+Uz(e);let r=n in document;if(!r){const i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return r}},Fz=(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)})},Ef=e=>{const n=new Map;return e.forEach(r=>n.set(r,r)),n};let ub;const Hz=e=>{ub=e},Kz=(e,n)=>{typeof e=="function"?e(n):e!=null&&(e.current=n)},Vz=(...e)=>n=>{e.forEach(r=>{Kz(r,n)})},qz=(e,n)=>{const r=(i,c)=>ae.createElement(e,{...i,forwardedRef:c});return r.displayName=n,ae.forwardRef(r)},Le=(e,n,r,i)=>{const c=Dz(e),d=class extends ae.Component{componentEl;setComponentElRef=u=>{this.componentEl=u};constructor(u){super(u)}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(u){Mz(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((S,O)=>{const E=v[O];if(O.indexOf("on")===0&&O[2]===O[2].toUpperCase()){const _=O.substring(2).toLowerCase();typeof document<"u"&&zx(_)&&(S[O]=E)}else{const _=typeof E;(_==="string"||_==="boolean"||_==="number")&&(S[wx(O)]=E)}return S},{}),ref:Vz(m,this.setComponentElRef),style:h},N=typeof ub=="function"?ub(e):e;return j.createElement(N,z,u)}static get displayName(){return c}};return qz(d,c)},Mi=Le("kol-abbr"),rn=Le("kol-accordion"),_n=Le("kol-alert"),vs=Le("kol-avatar"),wo=Le("kol-badge"),Ts=Le("kol-breadcrumb"),X=Le("kol-button"),Pe=Le("kol-button-link"),Oe=Le("kol-card"),xn=Le("kol-combobox"),rr=Le("kol-details"),nm=Le("kol-drawer"),mn=Le("kol-form"),ue=Le("kol-heading"),pt=Le("kol-icon"),Zz=Le("kol-image"),ro=Le("kol-input-checkbox"),Go=Le("kol-input-color"),Fe=Le("kol-input-date"),Yo=Le("kol-input-email"),Ro=Le("kol-input-file"),So=Le("kol-input-number"),Eo=Le("kol-input-password"),Lo=Le("kol-input-radio"),en=Le("kol-input-range"),Ee=Le("kol-input-text"),As=Le("kol-kolibri"),_e=Le("kol-link"),Xe=Le("kol-link-button"),Pv=Le("kol-modal"),wl=Le("kol-nav"),zi=Le("kol-pagination"),fb=Le("kol-popover-button"),nr=Le("kol-progress"),jx=Le("kol-quote"),Jo=Le("kol-select"),bn=Le("kol-single-select"),Pz=Le("kol-skip-nav"),ed=Le("kol-spin"),_l=Le("kol-split-button"),mo=Le("kol-table-stateful"),Sl=Le("kol-table-stateless"),cr=Le("kol-tabs"),Qe=Le("kol-textarea"),ga=Le("kol-toolbar"),Sx=Le("kol-tree"),Qo=Le("kol-tree-item"),od=Le("kol-version");function Hr(e){const n=document.createElement("div");return n.setAttribute("role","presentation"),e.innerHTML="",e.appendChild(n),n}var Lf={exports:{}},ji={},Of={exports:{}},$f={};var Gv;function Gz(){return Gv||(Gv=1,(function(e){function n(M,G){var ie=M.length;M.push(G);e:for(;0<ie;){var Se=ie-1>>>1,Te=M[Se];if(0<c(Te,G))M[Se]=G,M[ie]=Te,ie=Se;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],ie=M.pop();if(ie!==G){M[0]=ie;e:for(var Se=0,Te=M.length,C=Te>>>1;Se<C;){var P=2*(Se+1)-1,le=M[P],be=P+1,Ce=M[be];if(0>c(le,ie))be<Te&&0>c(Ce,le)?(M[Se]=Ce,M[be]=ie,Se=be):(M[Se]=le,M[P]=ie,Se=P);else if(be<Te&&0>c(Ce,ie))M[Se]=Ce,M[be]=ie,Se=be;else break e}}return G}function c(M,G){var ie=M.sortIndex-G.sortIndex;return ie!==0?ie: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,x=3,z=!1,N=!1,S=!1,O=!1,E=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function $(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(S=!1,$(M),!N)if(r(h)!==null)N=!0,F||(F=!0,ne());else{var G=r(p);G!==null&&He(D,G.startTime-M)}}var F=!1,Z=-1,ee=5,se=-1;function $e(){return O?!0:!(e.unstable_now()-se<ee)}function ce(){if(O=!1,F){var M=e.unstable_now();se=M;var G=!0;try{e:{N=!1,S&&(S=!1,_(Z),Z=-1),z=!0;var ie=x;try{o:{for($(M),v=r(h);v!==null&&!(v.expirationTime>M&&$e());){var Se=v.callback;if(typeof Se=="function"){v.callback=null,x=v.priorityLevel;var Te=Se(v.expirationTime<=M);if(M=e.unstable_now(),typeof Te=="function"){v.callback=Te,$(M),G=!0;break o}v===r(h)&&i(h),$(M)}else i(h);v=r(h)}if(v!==null)G=!0;else{var C=r(p);C!==null&&He(D,C.startTime-M),G=!1}}break e}finally{v=null,x=ie,z=!1}G=void 0}}finally{G?ne():F=!1}}}var ne;if(typeof w=="function")ne=function(){w(ce)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,De=we.port2;we.port1.onmessage=ce,ne=function(){De.postMessage(null)}}else ne=function(){E(ce,0)};function He(M,G){Z=E(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"):ee=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(M){switch(x){case 1:case 2:case 3:var G=3;break;default:G=x}var ie=x;x=G;try{return M()}finally{x=ie}},e.unstable_requestPaint=function(){O=!0},e.unstable_runWithPriority=function(M,G){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ie=x;x=M;try{return G()}finally{x=ie}},e.unstable_scheduleCallback=function(M,G,ie){var Se=e.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?Se+ie:Se):ie=Se,M){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=ie+Te,M={id:g++,callback:G,priorityLevel:M,startTime:ie,expirationTime:Te,sortIndex:-1},ie>Se?(M.sortIndex=ie,n(p,M),r(h)===null&&M===r(p)&&(S?(_(Z),Z=-1):S=!0,He(D,ie-Se))):(M.sortIndex=Te,n(h,M),N||z||(N=!0,F||(F=!0,ne()))),M},e.unstable_shouldYield=$e,e.unstable_wrapCallback=function(M){var G=x;return function(){var ie=x;x=G;try{return M.apply(this,arguments)}finally{x=ie}}}})($f)),$f}var Yv;function Yz(){return Yv||(Yv=1,Of.exports=Gz()),Of.exports}var Nf={exports:{}},vn={};var Jv;function Jz(){if(Jv)return vn;Jv=1;var e=om();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 vn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,vn.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)},vn.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()}},vn.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))},vn.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},vn.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin),x=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:x,fetchPriority:z}):g==="script"&&i.d.X(h,{crossOrigin:v,integrity:x,fetchPriority:z,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},vn.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)},vn.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})}},vn.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)},vn.requestFormReset=function(h){i.d.r(h)},vn.unstable_batchedUpdates=function(h,p){return h(p)},vn.useFormState=function(h,p,g){return u.H.useFormState(h,p,g)},vn.useFormStatus=function(){return u.H.useHostTransitionStatus()},vn.version="19.2.4",vn}var Xv;function Xz(){if(Xv)return Nf.exports;Xv=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(),Nf.exports=Jz(),Nf.exports}var Wv;function Wz(){if(Wv)return ji;Wv=1;var e=Yz(),n=om(),r=Xz();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,y=f.child;y;){if(y===l){k=!0,l=f,s=b;break}if(y===s){k=!0,s=f,l=b;break}y=y.sibling}if(!k){for(y=b.child;y;){if(y===l){k=!0,l=b,s=f;break}if(y===s){k=!0,s=b,l=f;break}y=y.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,x=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),w=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),$e=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function ne(o){return o===null||typeof o!="object"?null:(o=ce&&o[ce]||o["@@iterator"],typeof o=="function"?o:null)}var we=Symbol.for("react.client.reference");function De(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===we?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case S:return"Fragment";case E:return"Profiler";case O:return"StrictMode";case D:return"Suspense";case F:return"SuspenseList";case se:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case N:return"Portal";case w:return o.displayName||"Context";case _:return(o._context.displayName||"Context")+".Consumer";case $:var t=o.render;return o=o.displayName,o||(o=t.displayName||t.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Z:return t=o.displayName||null,t!==null?t:De(o.type)||"Memo";case ee:t=o._payload,o=o._init;try{return De(o(t))}catch{}}return null}var He=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,ie={pending:!1,data:null,method:null,action:null},Se=[],Te=-1;function C(o){return{current:o}}function P(o){0>Te||(o.current=Se[Te],Se[Te]=null,Te--)}function le(o,t){Te++,Se[Te]=o.current,o.current=t}var be=C(null),Ce=C(null),Ne=C(null),Ge=C(null);function Co(o,t){switch(le(Ne,t),le(Ce,o),le(be,null),t.nodeType){case 9:case 11:o=(o=t.documentElement)&&(o=o.namespaceURI)?fv(o):0;break;default:if(o=t.tagName,t=t.namespaceURI)t=fv(t),o=bv(t,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}P(be),le(be,o)}function _o(){P(be),P(Ce),P(Ne)}function vt(o){o.memoizedState!==null&&le(Ge,o);var t=be.current,l=bv(t,o.type);t!==l&&(le(Ce,o),le(be,l))}function St(o){Ce.current===o&&(P(be),P(Ce)),Ge.current===o&&(P(Ge),gi._currentValue=ie)}var Pr,Gr;function gt(o){if(Pr===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Pr=t&&t[1]||"",Gr=-1<l.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
4
- `+Pr+o+Gr}var Nt=!1;function fr(o,t){if(!o||Nt)return"";Nt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={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(q){var K=q}Reflect.construct(o,[],Q)}else{try{Q.call()}catch(q){K=q}o.call(Q.prototype)}}else{try{throw Error()}catch(q){K=q}(Q=o())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(q){if(q&&K&&typeof q.stack=="string")return[q.stack,K.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=c.DetermineComponentFrameRoot(),k=b[0],y=b[1];if(k&&y){var A=k.split(`
4
+ `+Pr+o+Gr}var Nt=!1;function fr(o,t){if(!o||Nt)return"";Nt=!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(q){var K=q}Reflect.construct(o,[],Q)}else{try{Q.call()}catch(q){K=q}o.call(Q.prototype)}}else{try{throw Error()}catch(q){K=q}(Q=o())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(q){if(q&&K&&typeof q.stack=="string")return[q.stack,K.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],y=b[1];if(k&&y){var A=k.split(`
5
5
  `),U=y.split(`
6
- `);for(f=c=0;c<A.length&&!A[c].includes("DetermineComponentFrameRoot");)c++;for(;f<U.length&&!U[f].includes("DetermineComponentFrameRoot");)f++;if(c===A.length||f===U.length)for(c=A.length-1,f=U.length-1;1<=c&&0<=f&&A[c]!==U[f];)f--;for(;1<=c&&0<=f;c--,f--)if(A[c]!==U[f]){if(c!==1||f!==1)do if(c--,f--,0>f||A[c]!==U[f]){var Y=`
7
- `+A[c].replace(" at new "," at ");return o.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",o.displayName)),Y}while(1<=c&&0<=f);break}}}finally{Nt=!1,Error.prepareStackTrace=l}return(l=o?o.displayName||o.name:"")?gt(l):""}function he(o,t){switch(o.tag){case 26:case 27:case 5:return gt(o.type);case 16:return gt("Lazy");case 13:return o.child!==t&&t!==null?gt("Suspense Fallback"):gt("Suspense");case 19:return gt("SuspenseList");case 0:case 15:return fr(o.type,!1);case 11:return fr(o.type.render,!1);case 1:return fr(o.type,!0);case 31:return gt("Activity");default:return""}}function ke(o){try{var t="",l=null;do t+=he(o,l),l=o,o=o.return;while(o);return t}catch(c){return`
8
- Error generating stack: `+c.message+`
9
- `+c.stack}}var Re=Object.prototype.hasOwnProperty,lo=e.unstable_scheduleCallback,T=e.unstable_cancelCallback,B=e.unstable_shouldYield,F=e.unstable_requestPaint,te=e.unstable_now,re=e.unstable_getCurrentPriorityLevel,oe=e.unstable_ImmediatePriority,ve=e.unstable_UserBlockingPriority,eo=e.unstable_NormalPriority,io=e.unstable_LowPriority,on=e.unstable_IdlePriority,Bt=e.log,Tt=e.unstable_setDisableYieldValue,Yr=null,an=null;function at(o){if(typeof Bt=="function"&&Tt(o),an&&typeof an.setStrictMode=="function")try{an.setStrictMode(Yr,o)}catch{}}var wn=Math.clz32?Math.clz32:Qi,Wi=Math.log,bd=Math.LN2;function Qi(o){return o>>>=0,o===0?32:31-(Wi(o)/bd|0)|0}var ec=256,oc=262144,nc=4194304;function Jr(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 tc(o,t,l){var c=o.pendingLanes;if(c===0)return 0;var f=0,b=o.suspendedLanes,k=o.pingedLanes;o=o.warmLanes;var y=c&134217727;return y!==0?(c=y&~b,c!==0?f=Jr(c):(k&=y,k!==0?f=Jr(k):l||(l=y&~o,l!==0&&(f=Jr(l))))):(y=c&~b,y!==0?f=Jr(y):k!==0?f=Jr(k):l||(l=c&~o,l!==0&&(f=Jr(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 Ll(o,t){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&t)===0}function _w(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 Zm(){var o=nc;return nc<<=1,(nc&62914560)===0&&(nc=4194304),o}function md(o){for(var t=[],l=0;31>l;l++)t.push(o);return t}function Ol(o,t){o.pendingLanes|=t,t!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function xw(o,t,l,c,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 y=o.entanglements,A=o.expirationTimes,U=o.hiddenUpdates;for(l=k&~l;0<l;){var Y=31-wn(l),Q=1<<Y;y[Y]=0,A[Y]=-1;var K=U[Y];if(K!==null)for(U[Y]=null,Y=0;Y<K.length;Y++){var q=K[Y];q!==null&&(q.lane&=-536870913)}l&=~Q}c!==0&&Pm(o,c,0),b!==0&&f===0&&o.tag!==0&&(o.suspendedLanes|=b&~(k&~t))}function Pm(o,t,l){o.pendingLanes|=t,o.suspendedLanes&=~t;var c=31-wn(t);o.entangledLanes|=t,o.entanglements[c]=o.entanglements[c]|1073741824|l&261930}function Gm(o,t){var l=o.entangledLanes|=t;for(o=o.entanglements;l;){var c=31-wn(l),f=1<<c;f&t|o[c]&t&&(o[c]|=t),l&=~f}}function Ym(o,t){var l=t&-t;return l=(l&42)!==0?1:hd(l),(l&(o.suspendedLanes|t))!==0?0:l}function hd(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 pd(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Jm(){var o=G.p;return o!==0?o:(o=window.event,o===void 0?32:Bv(o.type))}function Xm(o,t){var l=G.p;try{return G.p=o,t()}finally{G.p=l}}var br=Math.random().toString(36).slice(2),ln="__reactFiber$"+br,En="__reactProps$"+br,Aa="__reactContainer$"+br,kd="__reactEvents$"+br,yw="__reactListeners$"+br,ww="__reactHandles$"+br,Wm="__reactResources$"+br,$l="__reactMarker$"+br;function vd(o){delete o[ln],delete o[En],delete o[kd],delete o[yw],delete o[ww]}function Ca(o){var t=o[ln];if(t)return t;for(var l=o.parentNode;l;){if(t=l[Aa]||l[ln]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(o=gv(o);o!==null;){if(l=o[ln])return l;o=gv(o)}return t}o=l,l=o.parentNode}return null}function Ea(o){if(o=o[ln]||o[Aa]){var t=o.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return o}return null}function Nl(o){var t=o.tag;if(t===5||t===26||t===27||t===6)return o.stateNode;throw Error(i(33))}function La(o){var t=o[Wm];return t||(t=o[Wm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nn(o){o[$l]=!0}var Qm=new Set,eh={};function Xr(o,t){Oa(o,t),Oa(o+"Capture",t)}function Oa(o,t){for(eh[o]=t,o=0;o<t.length;o++)Qm.add(t[o])}var zw=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]*$"),oh={},nh={};function jw(o){return Re.call(nh,o)?!0:Re.call(oh,o)?!1:zw.test(o)?nh[o]=!0:(oh[o]=!0,!1)}function rc(o,t,l){if(jw(t))if(l===null)o.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":o.removeAttribute(t);return;case"boolean":var c=t.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){o.removeAttribute(t);return}}o.setAttribute(t,""+l)}}function ac(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 Rt(o,t,l,c){if(c===null)o.removeAttribute(l);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttributeNS(t,l,""+c)}}function lt(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function th(o){var t=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sw(o,t,l){var c=Object.getOwnPropertyDescriptor(o.constructor.prototype,t);if(!o.hasOwnProperty(t)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var f=c.get,b=c.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:c.enumerable}),{getValue:function(){return l},setValue:function(k){l=""+k},stopTracking:function(){o._valueTracker=null,delete o[t]}}}}function gd(o){if(!o._valueTracker){var t=th(o)?"checked":"value";o._valueTracker=Sw(o,t,""+o[t])}}function rh(o){if(!o)return!1;var t=o._valueTracker;if(!t)return!0;var l=t.getValue(),c="";return o&&(c=th(o)?o.checked?"true":"false":o.value),o=c,o!==l?(t.setValue(o),!0):!1}function lc(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 Tw=/[\n"\\]/g;function it(o){return o.replace(Tw,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _d(o,t,l,c,f,b,k,y){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=""+lt(t)):o.value!==""+lt(t)&&(o.value=""+lt(t)):k!=="submit"&&k!=="reset"||o.removeAttribute("value"),t!=null?xd(o,k,lt(t)):l!=null?xd(o,k,lt(l)):c!=null&&o.removeAttribute("value"),f==null&&b!=null&&(o.defaultChecked=!!b),f!=null&&(o.checked=f&&typeof f!="function"&&typeof f!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?o.name=""+lt(y):o.removeAttribute("name")}function ah(o,t,l,c,f,b,k,y){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)){gd(o);return}l=l!=null?""+lt(l):"",t=t!=null?""+lt(t):l,y||t===o.value||(o.value=t),o.defaultValue=t}c=c??f,c=typeof c!="function"&&typeof c!="symbol"&&!!c,o.checked=y?o.checked:!!c,o.defaultChecked=!!c,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(o.name=k),gd(o)}function xd(o,t,l){t==="number"&&lc(o.ownerDocument)===o||o.defaultValue===""+l||(o.defaultValue=""+l)}function $a(o,t,l,c){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&&c&&(o[l].defaultSelected=!0)}else{for(l=""+lt(l),t=null,f=0;f<o.length;f++){if(o[f].value===l){o[f].selected=!0,c&&(o[f].defaultSelected=!0);return}t!==null||o[f].disabled||(t=o[f])}t!==null&&(t.selected=!0)}}function lh(o,t,l){if(t!=null&&(t=""+lt(t),t!==o.value&&(o.value=t),l==null)){o.defaultValue!==t&&(o.defaultValue=t);return}o.defaultValue=l!=null?""+lt(l):""}function ih(o,t,l,c){if(t==null){if(c!=null){if(l!=null)throw Error(i(92));if(Fe(c)){if(1<c.length)throw Error(i(93));c=c[0]}l=c}l==null&&(l=""),t=l}l=lt(t),o.defaultValue=l,c=o.textContent,c===l&&c!==""&&c!==null&&(o.value=c),gd(o)}function Na(o,t){if(t){var l=o.firstChild;if(l&&l===o.lastChild&&l.nodeType===3){l.nodeValue=t;return}}o.textContent=t}var Aw=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 ch(o,t,l){var c=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?c?o.setProperty(t,""):t==="float"?o.cssFloat="":o[t]="":c?o.setProperty(t,l):typeof l!="number"||l===0||Aw.has(t)?t==="float"?o.cssFloat=l:o[t]=(""+l).trim():o[t]=l+"px"}function sh(o,t,l){if(t!=null&&typeof t!="object")throw Error(i(62));if(o=o.style,l!=null){for(var c in l)!l.hasOwnProperty(c)||t!=null&&t.hasOwnProperty(c)||(c.indexOf("--")===0?o.setProperty(c,""):c==="float"?o.cssFloat="":o[c]="");for(var f in t)c=t[f],t.hasOwnProperty(f)&&l[f]!==c&&ch(o,f,c)}else for(var b in t)t.hasOwnProperty(b)&&ch(o,b,t[b])}function yd(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 Cw=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"]]),Ew=/^[\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 ic(o){return Ew.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Dt(){}var wd=null;function zd(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Ba=null,Ra=null;function dh(o){var t=Ea(o);if(t&&(o=t.stateNode)){var l=o[En]||null;e:switch(o=t.stateNode,t.type){case"input":if(_d(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="'+it(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var c=l[t];if(c!==o&&c.form===o.form){var f=c[En]||null;if(!f)throw Error(i(90));_d(c,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(t=0;t<l.length;t++)c=l[t],c.form===o.form&&rh(c)}break e;case"textarea":lh(o,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&$a(o,!!l.multiple,t,!1)}}}var jd=!1;function uh(o,t,l){if(jd)return o(t,l);jd=!0;try{var c=o(t);return c}finally{if(jd=!1,(Ba!==null||Ra!==null)&&(Gc(),Ba&&(t=Ba,o=Ra,Ra=Ba=null,dh(t),o)))for(t=0;t<o.length;t++)dh(o[t])}}function Bl(o,t){var l=o.stateNode;if(l===null)return null;var c=l[En]||null;if(c===null)return null;l=c[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":(c=!c.disabled)||(o=o.type,c=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!c;break e;default:o=!1}if(o)return null;if(l&&typeof l!="function")throw Error(i(231,t,typeof l));return l}var Mt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sd=!1;if(Mt)try{var Rl={};Object.defineProperty(Rl,"passive",{get:function(){Sd=!0}}),window.addEventListener("test",Rl,Rl),window.removeEventListener("test",Rl,Rl)}catch{Sd=!1}var mr=null,Td=null,cc=null;function fh(){if(cc)return cc;var o,t=Td,l=t.length,c,f="value"in mr?mr.value:mr.textContent,b=f.length;for(o=0;o<l&&t[o]===f[o];o++);var k=l-o;for(c=1;c<=k&&t[l-c]===f[b-c];c++);return cc=f.slice(o,1<c?1-c:void 0)}function sc(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 dc(){return!0}function bh(){return!1}function Ln(o){function t(l,c,f,b,k){this._reactName=l,this._targetInst=f,this.type=c,this.nativeEvent=b,this.target=k,this.currentTarget=null;for(var y in o)o.hasOwnProperty(y)&&(l=o[y],this[y]=l?l(b):b[y]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?dc:bh,this.isPropagationStopped=bh,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=dc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=dc)},persist:function(){},isPersistent:dc}),t}var Wr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uc=Ln(Wr),Dl=v({},Wr,{view:0,detail:0}),Lw=Ln(Dl),Ad,Cd,Ml,fc=v({},Dl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ld,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!==Ml&&(Ml&&o.type==="mousemove"?(Ad=o.screenX-Ml.screenX,Cd=o.screenY-Ml.screenY):Cd=Ad=0,Ml=o),Ad)},movementY:function(o){return"movementY"in o?o.movementY:Cd}}),mh=Ln(fc),Ow=v({},fc,{dataTransfer:0}),$w=Ln(Ow),Nw=v({},Dl,{relatedTarget:0}),Ed=Ln(Nw),Bw=v({},Wr,{animationName:0,elapsedTime:0,pseudoElement:0}),Rw=Ln(Bw),Dw=v({},Wr,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),Mw=Ln(Dw),Iw=v({},Wr,{data:0}),hh=Ln(Iw),Uw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hw={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"},Fw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kw(o){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(o):(o=Fw[o])?!!t[o]:!1}function Ld(){return Kw}var Vw=v({},Dl,{key:function(o){if(o.key){var t=Uw[o.key]||o.key;if(t!=="Unidentified")return t}return o.type==="keypress"?(o=sc(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Hw[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ld,charCode:function(o){return o.type==="keypress"?sc(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?sc(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),qw=Ln(Vw),Zw=v({},fc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ph=Ln(Zw),Pw=v({},Dl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ld}),Gw=Ln(Pw),Yw=v({},Wr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jw=Ln(Yw),Xw=v({},fc,{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}),Ww=Ln(Xw),Qw=v({},Wr,{newState:0,oldState:0}),e2=Ln(Qw),o2=[9,13,27,32],Od=Mt&&"CompositionEvent"in window,Il=null;Mt&&"documentMode"in document&&(Il=document.documentMode);var n2=Mt&&"TextEvent"in window&&!Il,kh=Mt&&(!Od||Il&&8<Il&&11>=Il),vh=" ",gh=!1;function _h(o,t){switch(o){case"keyup":return o2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xh(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Da=!1;function t2(o,t){switch(o){case"compositionend":return xh(t);case"keypress":return t.which!==32?null:(gh=!0,vh);case"textInput":return o=t.data,o===vh&&gh?null:o;default:return null}}function r2(o,t){if(Da)return o==="compositionend"||!Od&&_h(o,t)?(o=fh(),cc=Td=mr=null,Da=!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 kh&&t.locale!=="ko"?null:t.data;default:return null}}var a2={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 yh(o){var t=o&&o.nodeName&&o.nodeName.toLowerCase();return t==="input"?!!a2[o.type]:t==="textarea"}function wh(o,t,l,c){Ba?Ra?Ra.push(c):Ra=[c]:Ba=c,t=os(t,"onChange"),0<t.length&&(l=new uc("onChange","change",null,l,c),o.push({event:l,listeners:t}))}var Ul=null,Hl=null;function l2(o){av(o,0)}function bc(o){var t=Nl(o);if(rh(t))return o}function zh(o,t){if(o==="change")return t}var jh=!1;if(Mt){var $d;if(Mt){var Nd="oninput"in document;if(!Nd){var Sh=document.createElement("div");Sh.setAttribute("oninput","return;"),Nd=typeof Sh.oninput=="function"}$d=Nd}else $d=!1;jh=$d&&(!document.documentMode||9<document.documentMode)}function Th(){Ul&&(Ul.detachEvent("onpropertychange",Ah),Hl=Ul=null)}function Ah(o){if(o.propertyName==="value"&&bc(Hl)){var t=[];wh(t,Hl,o,zd(o)),uh(l2,t)}}function i2(o,t,l){o==="focusin"?(Th(),Ul=t,Hl=l,Ul.attachEvent("onpropertychange",Ah)):o==="focusout"&&Th()}function c2(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return bc(Hl)}function s2(o,t){if(o==="click")return bc(t)}function d2(o,t){if(o==="input"||o==="change")return bc(t)}function u2(o,t){return o===t&&(o!==0||1/o===1/t)||o!==o&&t!==t}var Kn=typeof Object.is=="function"?Object.is:u2;function Fl(o,t){if(Kn(o,t))return!0;if(typeof o!="object"||o===null||typeof t!="object"||t===null)return!1;var l=Object.keys(o),c=Object.keys(t);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var f=l[c];if(!Re.call(t,f)||!Kn(o[f],t[f]))return!1}return!0}function Ch(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Eh(o,t){var l=Ch(o);o=0;for(var c;l;){if(l.nodeType===3){if(c=o+l.textContent.length,o<=t&&c>=t)return{node:l,offset:t-o};o=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Ch(l)}}function Lh(o,t){return o&&t?o===t?!0:o&&o.nodeType===3?!1:t&&t.nodeType===3?Lh(o,t.parentNode):"contains"in o?o.contains(t):o.compareDocumentPosition?!!(o.compareDocumentPosition(t)&16):!1:!1}function Oh(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var t=lc(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=lc(o.document)}return t}function Bd(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 f2=Mt&&"documentMode"in document&&11>=document.documentMode,Ma=null,Rd=null,Kl=null,Dd=!1;function $h(o,t,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Dd||Ma==null||Ma!==lc(c)||(c=Ma,"selectionStart"in c&&Bd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Kl&&Fl(Kl,c)||(Kl=c,c=os(Rd,"onSelect"),0<c.length&&(t=new uc("onSelect","select",null,t,l),o.push({event:t,listeners:c}),t.target=Ma)))}function Qr(o,t){var l={};return l[o.toLowerCase()]=t.toLowerCase(),l["Webkit"+o]="webkit"+t,l["Moz"+o]="moz"+t,l}var Ia={animationend:Qr("Animation","AnimationEnd"),animationiteration:Qr("Animation","AnimationIteration"),animationstart:Qr("Animation","AnimationStart"),transitionrun:Qr("Transition","TransitionRun"),transitionstart:Qr("Transition","TransitionStart"),transitioncancel:Qr("Transition","TransitionCancel"),transitionend:Qr("Transition","TransitionEnd")},Md={},Nh={};Mt&&(Nh=document.createElement("div").style,"AnimationEvent"in window||(delete Ia.animationend.animation,delete Ia.animationiteration.animation,delete Ia.animationstart.animation),"TransitionEvent"in window||delete Ia.transitionend.transition);function ea(o){if(Md[o])return Md[o];if(!Ia[o])return o;var t=Ia[o],l;for(l in t)if(t.hasOwnProperty(l)&&l in Nh)return Md[o]=t[l];return o}var Bh=ea("animationend"),Rh=ea("animationiteration"),Dh=ea("animationstart"),b2=ea("transitionrun"),m2=ea("transitionstart"),h2=ea("transitioncancel"),Mh=ea("transitionend"),Ih=new Map,Id="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(" ");Id.push("scrollEnd");function _t(o,t){Ih.set(o,t),Xr(t,[o])}var mc=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)},ct=[],Ua=0,Ud=0;function hc(){for(var o=Ua,t=Ud=Ua=0;t<o;){var l=ct[t];ct[t++]=null;var c=ct[t];ct[t++]=null;var f=ct[t];ct[t++]=null;var b=ct[t];if(ct[t++]=null,c!==null&&f!==null){var k=c.pending;k===null?f.next=f:(f.next=k.next,k.next=f),c.pending=f}b!==0&&Uh(l,f,b)}}function pc(o,t,l,c){ct[Ua++]=o,ct[Ua++]=t,ct[Ua++]=l,ct[Ua++]=c,Ud|=c,o.lanes|=c,o=o.alternate,o!==null&&(o.lanes|=c)}function Hd(o,t,l,c){return pc(o,t,l,c),kc(o)}function oa(o,t){return pc(o,null,null,t),kc(o)}function Uh(o,t,l){o.lanes|=l;var c=o.alternate;c!==null&&(c.lanes|=l);for(var f=!1,b=o.return;b!==null;)b.childLanes|=l,c=b.alternate,c!==null&&(c.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-wn(l),o=b.hiddenUpdates,c=o[f],c===null?o[f]=[t]:c.push(t),t.lane=l|536870912),b):null}function kc(o){if(50<ui)throw ui=0,Ju=null,Error(i(185));for(var t=o.return;t!==null;)o=t,t=o.return;return o.tag===3?o.stateNode:null}var Ha={};function p2(o,t,l,c){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=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vn(o,t,l,c){return new p2(o,t,l,c)}function Fd(o){return o=o.prototype,!(!o||!o.isReactComponent)}function It(o,t){var l=o.alternate;return l===null?(l=Vn(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 Hh(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 vc(o,t,l,c,f,b){var k=0;if(c=o,typeof o=="function")Fd(o)&&(k=1);else if(typeof o=="string")k=xz(o,l,fe.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case se:return o=Vn(31,l,t,f),o.elementType=se,o.lanes=b,o;case S:return na(l.children,f,b,t);case O:k=8,f|=24;break;case E:return o=Vn(12,l,t,f|2),o.elementType=E,o.lanes=b,o;case D:return o=Vn(13,l,t,f),o.elementType=D,o.lanes=b,o;case H:return o=Vn(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 x:k=9;break e;case $:k=11;break e;case Z:k=14;break e;case ee:k=16,c=null;break e}k=29,l=Error(i(130,o===null?"null":typeof o,"")),c=null}return t=Vn(k,l,t,f),t.elementType=o,t.type=c,t.lanes=b,t}function na(o,t,l,c){return o=Vn(7,o,c,t),o.lanes=l,o}function Kd(o,t,l){return o=Vn(6,o,null,t),o.lanes=l,o}function Fh(o){var t=Vn(18,null,null,0);return t.stateNode=o,t}function Vd(o,t,l){return t=Vn(4,o.children!==null?o.children:[],o.key,t),t.lanes=l,t.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},t}var Kh=new WeakMap;function st(o,t){if(typeof o=="object"&&o!==null){var l=Kh.get(o);return l!==void 0?l:(t={value:o,source:t,stack:ke(t)},Kh.set(o,t),t)}return{value:o,source:t,stack:ke(t)}}var Fa=[],Ka=0,gc=null,Vl=0,dt=[],ut=0,hr=null,At=1,Ct="";function Ut(o,t){Fa[Ka++]=Vl,Fa[Ka++]=gc,gc=o,Vl=t}function Vh(o,t,l){dt[ut++]=At,dt[ut++]=Ct,dt[ut++]=hr,hr=o;var c=At;o=Ct;var f=32-wn(c)-1;c&=~(1<<f),l+=1;var b=32-wn(t)+f;if(30<b){var k=f-f%5;b=(c&(1<<k)-1).toString(32),c>>=k,f-=k,At=1<<32-wn(t)+f|l<<f|c,Ct=b+o}else At=1<<b|l<<f|c,Ct=o}function qd(o){o.return!==null&&(Ut(o,1),Vh(o,1,0))}function Zd(o){for(;o===gc;)gc=Fa[--Ka],Fa[Ka]=null,Vl=Fa[--Ka],Fa[Ka]=null;for(;o===hr;)hr=dt[--ut],dt[ut]=null,Ct=dt[--ut],dt[ut]=null,At=dt[--ut],dt[ut]=null}function qh(o,t){dt[ut++]=At,dt[ut++]=Ct,dt[ut++]=hr,At=t.id,Ct=t.overflow,hr=o}var cn=null,xo=null,We=!1,pr=null,ft=!1,Pd=Error(i(519));function kr(o){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ql(st(t,o)),Pd}function Zh(o){var t=o.stateNode,l=o.type,c=o.memoizedProps;switch(t[ln]=o,t[En]=c,l){case"dialog":Ze("cancel",t),Ze("close",t);break;case"iframe":case"object":case"embed":Ze("load",t);break;case"video":case"audio":for(l=0;l<bi.length;l++)Ze(bi[l],t);break;case"source":Ze("error",t);break;case"img":case"image":case"link":Ze("error",t),Ze("load",t);break;case"details":Ze("toggle",t);break;case"input":Ze("invalid",t),ah(t,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Ze("invalid",t);break;case"textarea":Ze("invalid",t),ih(t,c.value,c.defaultValue,c.children)}l=c.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||c.suppressHydrationWarning===!0||sv(t.textContent,l)?(c.popover!=null&&(Ze("beforetoggle",t),Ze("toggle",t)),c.onScroll!=null&&Ze("scroll",t),c.onScrollEnd!=null&&Ze("scrollend",t),c.onClick!=null&&(t.onclick=Dt),t=!0):t=!1,t||kr(o,!0)}function Ph(o){for(cn=o.return;cn;)switch(cn.tag){case 5:case 31:case 13:ft=!1;return;case 27:case 3:ft=!0;return;default:cn=cn.return}}function Va(o){if(o!==cn)return!1;if(!We)return Ph(o),We=!0,!1;var t=o.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=o.type,l=!(l!=="form"&&l!=="button")||ff(o.type,o.memoizedProps)),l=!l),l&&xo&&kr(o),Ph(o),t===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));xo=vv(o)}else if(t===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));xo=vv(o)}else t===27?(t=xo,Lr(o.type)?(o=kf,kf=null,xo=o):xo=t):xo=cn?mt(o.stateNode.nextSibling):null;return!0}function ta(){xo=cn=null,We=!1}function Gd(){var o=pr;return o!==null&&(Bn===null?Bn=o:Bn.push.apply(Bn,o),pr=null),o}function ql(o){pr===null?pr=[o]:pr.push(o)}var Yd=C(null),ra=null,Ht=null;function vr(o,t,l){le(Yd,t._currentValue),t._currentValue=l}function Ft(o){o._currentValue=Yd.current,P(Yd)}function Jd(o,t,l){for(;o!==null;){var c=o.alternate;if((o.childLanes&t)!==t?(o.childLanes|=t,c!==null&&(c.childLanes|=t)):c!==null&&(c.childLanes&t)!==t&&(c.childLanes|=t),o===l)break;o=o.return}}function Xd(o,t,l,c){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 y=b;b=f;for(var A=0;A<t.length;A++)if(y.context===t[A]){b.lanes|=l,y=b.alternate,y!==null&&(y.lanes|=l),Jd(b.return,l,o),c||(k=null);break e}b=y.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),Jd(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 qa(o,t,l,c){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 y=f.type;Kn(f.pendingProps.value,k.value)||(o!==null?o.push(y):o=[y])}}else if(f===Ge.current){if(k=f.alternate,k===null)throw Error(i(387));k.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(o!==null?o.push(vi):o=[vi])}f=f.return}o!==null&&Xd(t,o,l,c),t.flags|=262144}function _c(o){for(o=o.firstContext;o!==null;){if(!Kn(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function aa(o){ra=o,Ht=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function sn(o){return Gh(ra,o)}function xc(o,t){return ra===null&&aa(o),Gh(o,t)}function Gh(o,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Ht===null){if(o===null)throw Error(i(308));Ht=t,o.dependencies={lanes:0,firstContext:t},o.flags|=524288}else Ht=Ht.next=t;return l}var k2=typeof AbortController<"u"?AbortController:function(){var o=[],t=this.signal={aborted:!1,addEventListener:function(l,c){o.push(c)}};this.abort=function(){t.aborted=!0,o.forEach(function(l){return l()})}},v2=e.unstable_scheduleCallback,g2=e.unstable_NormalPriority,Fo={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wd(){return{controller:new k2,data:new Map,refCount:0}}function Zl(o){o.refCount--,o.refCount===0&&v2(g2,function(){o.controller.abort()})}var Pl=null,Qd=0,Za=0,Pa=null;function _2(o,t){if(Pl===null){var l=Pl=[];Qd=0,Za=nf(),Pa={status:"pending",value:void 0,then:function(c){l.push(c)}}}return Qd++,t.then(Yh,Yh),t}function Yh(){if(--Qd===0&&Pl!==null){Pa!==null&&(Pa.status="fulfilled");var o=Pl;Pl=null,Za=0,Pa=null;for(var t=0;t<o.length;t++)(0,o[t])()}}function x2(o,t){var l=[],c={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return o.then(function(){c.status="fulfilled",c.value=t;for(var f=0;f<l.length;f++)(0,l[f])(t)},function(f){for(c.status="rejected",c.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),c}var Jh=M.S;M.S=function(o,t){$k=te(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&_2(o,t),Jh!==null&&Jh(o,t)};var la=C(null);function eu(){var o=la.current;return o!==null?o:go.pooledCache}function yc(o,t){t===null?le(la,la.current):le(la,t.pool)}function Xh(){var o=eu();return o===null?null:{parent:Fo._currentValue,pool:o}}var Ga=Error(i(460)),ou=Error(i(474)),wc=Error(i(542)),zc={then:function(){}};function Wh(o){return o=o.status,o==="fulfilled"||o==="rejected"}function Qh(o,t,l){switch(l=o[l],l===void 0?o.push(t):l!==t&&(t.then(Dt,Dt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw o=t.reason,op(o),o;default:if(typeof t.status=="string")t.then(Dt,Dt);else{if(o=go,o!==null&&100<o.shellSuspendCounter)throw Error(i(482));o=t,o.status="pending",o.then(function(c){if(t.status==="pending"){var f=t;f.status="fulfilled",f.value=c}},function(c){if(t.status==="pending"){var f=t;f.status="rejected",f.reason=c}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw o=t.reason,op(o),o}throw ca=t,Ga}}function ia(o){try{var t=o._init;return t(o._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ca=l,Ga):l}}var ca=null;function ep(){if(ca===null)throw Error(i(459));var o=ca;return ca=null,o}function op(o){if(o===Ga||o===wc)throw Error(i(483))}var Ya=null,Gl=0;function jc(o){var t=Gl;return Gl+=1,Ya===null&&(Ya=[]),Qh(Ya,o,t)}function Yl(o,t){t=t.props.ref,o.ref=t!==void 0?t:null}function Sc(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 np(o){function t(R,L){if(o){var I=R.deletions;I===null?(R.deletions=[L],R.flags|=16):I.push(L)}}function l(R,L){if(!o)return null;for(;L!==null;)t(R,L),L=L.sibling;return null}function c(R){for(var L=new Map;R!==null;)R.key!==null?L.set(R.key,R):L.set(R.index,R),R=R.sibling;return L}function f(R,L){return R=It(R,L),R.index=0,R.sibling=null,R}function b(R,L,I){return R.index=I,o?(I=R.alternate,I!==null?(I=I.index,I<L?(R.flags|=67108866,L):I):(R.flags|=67108866,L)):(R.flags|=1048576,L)}function k(R){return o&&R.alternate===null&&(R.flags|=67108866),R}function y(R,L,I,J){return L===null||L.tag!==6?(L=Kd(I,R.mode,J),L.return=R,L):(L=f(L,I),L.return=R,L)}function A(R,L,I,J){var ze=I.type;return ze===S?Y(R,L,I.props.children,J,I.key):L!==null&&(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===ee&&ia(ze)===L.type)?(L=f(L,I.props),Yl(L,I),L.return=R,L):(L=vc(I.type,I.key,I.props,null,R.mode,J),Yl(L,I),L.return=R,L)}function U(R,L,I,J){return L===null||L.tag!==4||L.stateNode.containerInfo!==I.containerInfo||L.stateNode.implementation!==I.implementation?(L=Vd(I,R.mode,J),L.return=R,L):(L=f(L,I.children||[]),L.return=R,L)}function Y(R,L,I,J,ze){return L===null||L.tag!==7?(L=na(I,R.mode,J,ze),L.return=R,L):(L=f(L,I),L.return=R,L)}function Q(R,L,I){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Kd(""+L,R.mode,I),L.return=R,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case z:return I=vc(L.type,L.key,L.props,null,R.mode,I),Yl(I,L),I.return=R,I;case N:return L=Vd(L,R.mode,I),L.return=R,L;case ee:return L=ia(L),Q(R,L,I)}if(Fe(L)||ne(L))return L=na(L,R.mode,I,null),L.return=R,L;if(typeof L.then=="function")return Q(R,jc(L),I);if(L.$$typeof===w)return Q(R,xc(R,L),I);Sc(R,L)}return null}function K(R,L,I,J){var ze=L!==null?L.key:null;if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return ze!==null?null:y(R,L,""+I,J);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case z:return I.key===ze?A(R,L,I,J):null;case N:return I.key===ze?U(R,L,I,J):null;case ee:return I=ia(I),K(R,L,I,J)}if(Fe(I)||ne(I))return ze!==null?null:Y(R,L,I,J,null);if(typeof I.then=="function")return K(R,L,jc(I),J);if(I.$$typeof===w)return K(R,L,xc(R,I),J);Sc(R,I)}return null}function q(R,L,I,J,ze){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return R=R.get(I)||null,y(L,R,""+J,ze);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case z:return R=R.get(J.key===null?I:J.key)||null,A(L,R,J,ze);case N:return R=R.get(J.key===null?I:J.key)||null,U(L,R,J,ze);case ee:return J=ia(J),q(R,L,I,J,ze)}if(Fe(J)||ne(J))return R=R.get(I)||null,Y(L,R,J,ze,null);if(typeof J.then=="function")return q(R,L,I,jc(J),ze);if(J.$$typeof===w)return q(R,L,I,xc(L,J),ze);Sc(L,J)}return null}function pe(R,L,I,J){for(var ze=null,no=null,ge=L,Ie=L=0,Je=null;ge!==null&&Ie<I.length;Ie++){ge.index>Ie?(Je=ge,ge=null):Je=ge.sibling;var to=K(R,ge,I[Ie],J);if(to===null){ge===null&&(ge=Je);break}o&&ge&&to.alternate===null&&t(R,ge),L=b(to,L,Ie),no===null?ze=to:no.sibling=to,no=to,ge=Je}if(Ie===I.length)return l(R,ge),We&&Ut(R,Ie),ze;if(ge===null){for(;Ie<I.length;Ie++)ge=Q(R,I[Ie],J),ge!==null&&(L=b(ge,L,Ie),no===null?ze=ge:no.sibling=ge,no=ge);return We&&Ut(R,Ie),ze}for(ge=c(ge);Ie<I.length;Ie++)Je=q(ge,R,Ie,I[Ie],J),Je!==null&&(o&&Je.alternate!==null&&ge.delete(Je.key===null?Ie:Je.key),L=b(Je,L,Ie),no===null?ze=Je:no.sibling=Je,no=Je);return o&&ge.forEach(function(Rr){return t(R,Rr)}),We&&Ut(R,Ie),ze}function Ae(R,L,I,J){if(I==null)throw Error(i(151));for(var ze=null,no=null,ge=L,Ie=L=0,Je=null,to=I.next();ge!==null&&!to.done;Ie++,to=I.next()){ge.index>Ie?(Je=ge,ge=null):Je=ge.sibling;var Rr=K(R,ge,to.value,J);if(Rr===null){ge===null&&(ge=Je);break}o&&ge&&Rr.alternate===null&&t(R,ge),L=b(Rr,L,Ie),no===null?ze=Rr:no.sibling=Rr,no=Rr,ge=Je}if(to.done)return l(R,ge),We&&Ut(R,Ie),ze;if(ge===null){for(;!to.done;Ie++,to=I.next())to=Q(R,to.value,J),to!==null&&(L=b(to,L,Ie),no===null?ze=to:no.sibling=to,no=to);return We&&Ut(R,Ie),ze}for(ge=c(ge);!to.done;Ie++,to=I.next())to=q(ge,R,Ie,to.value,J),to!==null&&(o&&to.alternate!==null&&ge.delete(to.key===null?Ie:to.key),L=b(to,L,Ie),no===null?ze=to:no.sibling=to,no=to);return o&&ge.forEach(function(Oz){return t(R,Oz)}),We&&Ut(R,Ie),ze}function vo(R,L,I,J){if(typeof I=="object"&&I!==null&&I.type===S&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case z:e:{for(var ze=I.key;L!==null;){if(L.key===ze){if(ze=I.type,ze===S){if(L.tag===7){l(R,L.sibling),J=f(L,I.props.children),J.return=R,R=J;break e}}else if(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===ee&&ia(ze)===L.type){l(R,L.sibling),J=f(L,I.props),Yl(J,I),J.return=R,R=J;break e}l(R,L);break}else t(R,L);L=L.sibling}I.type===S?(J=na(I.props.children,R.mode,J,I.key),J.return=R,R=J):(J=vc(I.type,I.key,I.props,null,R.mode,J),Yl(J,I),J.return=R,R=J)}return k(R);case N:e:{for(ze=I.key;L!==null;){if(L.key===ze)if(L.tag===4&&L.stateNode.containerInfo===I.containerInfo&&L.stateNode.implementation===I.implementation){l(R,L.sibling),J=f(L,I.children||[]),J.return=R,R=J;break e}else{l(R,L);break}else t(R,L);L=L.sibling}J=Vd(I,R.mode,J),J.return=R,R=J}return k(R);case ee:return I=ia(I),vo(R,L,I,J)}if(Fe(I))return pe(R,L,I,J);if(ne(I)){if(ze=ne(I),typeof ze!="function")throw Error(i(150));return I=ze.call(I),Ae(R,L,I,J)}if(typeof I.then=="function")return vo(R,L,jc(I),J);if(I.$$typeof===w)return vo(R,L,xc(R,I),J);Sc(R,I)}return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,L!==null&&L.tag===6?(l(R,L.sibling),J=f(L,I),J.return=R,R=J):(l(R,L),J=Kd(I,R.mode,J),J.return=R,R=J),k(R)):l(R,L)}return function(R,L,I,J){try{Gl=0;var ze=vo(R,L,I,J);return Ya=null,ze}catch(ge){if(ge===Ga||ge===wc)throw ge;var no=Vn(29,ge,null,R.mode);return no.lanes=J,no.return=R,no}finally{}}}var sa=np(!0),tp=np(!1),gr=!1;function nu(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tu(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 _r(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function xr(o,t,l){var c=o.updateQueue;if(c===null)return null;if(c=c.shared,(co&2)!==0){var f=c.pending;return f===null?t.next=t:(t.next=f.next,f.next=t),c.pending=t,t=kc(o),Uh(o,null,l),t}return pc(o,c,t,l),kc(o)}function Jl(o,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var c=t.lanes;c&=o.pendingLanes,l|=c,t.lanes=l,Gm(o,l)}}function ru(o,t){var l=o.updateQueue,c=o.alternate;if(c!==null&&(c=c.updateQueue,l===c)){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:c.baseState,firstBaseUpdate:f,lastBaseUpdate:b,shared:c.shared,callbacks:c.callbacks},o.updateQueue=l;return}o=l.lastBaseUpdate,o===null?l.firstBaseUpdate=t:o.next=t,l.lastBaseUpdate=t}var au=!1;function Xl(){if(au){var o=Pa;if(o!==null)throw o}}function Wl(o,t,l,c){au=!1;var f=o.updateQueue;gr=!1;var b=f.firstBaseUpdate,k=f.lastBaseUpdate,y=f.shared.pending;if(y!==null){f.shared.pending=null;var A=y,U=A.next;A.next=null,k===null?b=U:k.next=U,k=A;var Y=o.alternate;Y!==null&&(Y=Y.updateQueue,y=Y.lastBaseUpdate,y!==k&&(y===null?Y.firstBaseUpdate=U:y.next=U,Y.lastBaseUpdate=A))}if(b!==null){var Q=f.baseState;k=0,Y=U=A=null,y=b;do{var K=y.lane&-536870913,q=K!==y.lane;if(q?(Ye&K)===K:(c&K)===K){K!==0&&K===Za&&(au=!0),Y!==null&&(Y=Y.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var pe=o,Ae=y;K=t;var vo=l;switch(Ae.tag){case 1:if(pe=Ae.payload,typeof pe=="function"){Q=pe.call(vo,Q,K);break e}Q=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Ae.payload,K=typeof pe=="function"?pe.call(vo,Q,K):pe,K==null)break e;Q=v({},Q,K);break e;case 2:gr=!0}}K=y.callback,K!==null&&(o.flags|=64,q&&(o.flags|=8192),q=f.callbacks,q===null?f.callbacks=[K]:q.push(K))}else q={lane:K,tag:y.tag,payload:y.payload,callback:y.callback,next:null},Y===null?(U=Y=q,A=Q):Y=Y.next=q,k|=K;if(y=y.next,y===null){if(y=f.shared.pending,y===null)break;q=y,y=q.next,q.next=null,f.lastBaseUpdate=q,f.shared.pending=null}}while(!0);Y===null&&(A=Q),f.baseState=A,f.firstBaseUpdate=U,f.lastBaseUpdate=Y,b===null&&(f.shared.lanes=0),Sr|=k,o.lanes=k,o.memoizedState=Q}}function rp(o,t){if(typeof o!="function")throw Error(i(191,o));o.call(t)}function ap(o,t){var l=o.callbacks;if(l!==null)for(o.callbacks=null,o=0;o<l.length;o++)rp(l[o],t)}var Ja=C(null),Tc=C(0);function lp(o,t){o=Xt,le(Tc,o),le(Ja,t),Xt=o|t.baseLanes}function lu(){le(Tc,Xt),le(Ja,Ja.current)}function iu(){Xt=Tc.current,P(Ja),P(Tc)}var qn=C(null),bt=null;function yr(o){var t=o.alternate;le(Uo,Uo.current&1),le(qn,o),bt===null&&(t===null||Ja.current!==null||t.memoizedState!==null)&&(bt=o)}function cu(o){le(Uo,Uo.current),le(qn,o),bt===null&&(bt=o)}function ip(o){o.tag===22?(le(Uo,Uo.current),le(qn,o),bt===null&&(bt=o)):wr()}function wr(){le(Uo,Uo.current),le(qn,qn.current)}function Zn(o){P(qn),bt===o&&(bt=null),P(Uo)}var Uo=C(0);function Ac(o){for(var t=o;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||hf(l)||pf(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 Kt=0,Me=null,po=null,Ko=null,Cc=!1,Xa=!1,da=!1,Ec=0,Ql=0,Wa=null,y2=0;function No(){throw Error(i(321))}function su(o,t){if(t===null)return!1;for(var l=0;l<t.length&&l<o.length;l++)if(!Kn(o[l],t[l]))return!1;return!0}function du(o,t,l,c,f,b){return Kt=b,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=o===null||o.memoizedState===null?Vp:ju,da=!1,b=l(c,f),da=!1,Xa&&(b=sp(t,l,c,f)),cp(o),b}function cp(o){M.H=ni;var t=po!==null&&po.next!==null;if(Kt=0,Ko=po=Me=null,Cc=!1,Ql=0,Wa=null,t)throw Error(i(300));o===null||Vo||(o=o.dependencies,o!==null&&_c(o)&&(Vo=!0))}function sp(o,t,l,c){Me=o;var f=0;do{if(Xa&&(Wa=null),Ql=0,Xa=!1,25<=f)throw Error(i(301));if(f+=1,Ko=po=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=qp,b=t(l,c)}while(Xa);return b}function w2(){var o=M.H,t=o.useState()[0];return t=typeof t.then=="function"?ei(t):t,o=o.useState()[0],(po!==null?po.memoizedState:null)!==o&&(Me.flags|=1024),t}function uu(){var o=Ec!==0;return Ec=0,o}function fu(o,t,l){t.updateQueue=o.updateQueue,t.flags&=-2053,o.lanes&=~l}function bu(o){if(Cc){for(o=o.memoizedState;o!==null;){var t=o.queue;t!==null&&(t.pending=null),o=o.next}Cc=!1}Kt=0,Ko=po=Me=null,Xa=!1,Ql=Ec=0,Wa=null}function zn(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ko===null?Me.memoizedState=Ko=o:Ko=Ko.next=o,Ko}function Ho(){if(po===null){var o=Me.alternate;o=o!==null?o.memoizedState:null}else o=po.next;var t=Ko===null?Me.memoizedState:Ko.next;if(t!==null)Ko=t,po=o;else{if(o===null)throw Me.alternate===null?Error(i(467)):Error(i(310));po=o,o={memoizedState:po.memoizedState,baseState:po.baseState,baseQueue:po.baseQueue,queue:po.queue,next:null},Ko===null?Me.memoizedState=Ko=o:Ko=Ko.next=o}return Ko}function Lc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ei(o){var t=Ql;return Ql+=1,Wa===null&&(Wa=[]),o=Qh(Wa,o,t),t=Me,(Ko===null?t.memoizedState:Ko.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Vp:ju),o}function Oc(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return ei(o);if(o.$$typeof===w)return sn(o)}throw Error(i(438,String(o)))}function mu(o){var t=null,l=Me.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var c=Me.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(t={data:c.data.map(function(f){return f.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Lc(),Me.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(o),c=0;c<o;c++)l[c]=$e;return t.index++,l}function Vt(o,t){return typeof t=="function"?t(o):t}function $c(o){var t=Ho();return hu(t,po,o)}function hu(o,t,l){var c=o.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=l;var f=o.baseQueue,b=c.pending;if(b!==null){if(f!==null){var k=f.next;f.next=b.next,b.next=k}t.baseQueue=f=b,c.pending=null}if(b=o.baseState,f===null)o.memoizedState=b;else{t=f.next;var y=k=null,A=null,U=t,Y=!1;do{var Q=U.lane&-536870913;if(Q!==U.lane?(Ye&Q)===Q:(Kt&Q)===Q){var K=U.revertLane;if(K===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),Q===Za&&(Y=!0);else if((Kt&K)===K){U=U.next,K===Za&&(Y=!0);continue}else Q={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(y=A=Q,k=b):A=A.next=Q,Me.lanes|=K,Sr|=K;Q=U.action,da&&l(b,Q),b=U.hasEagerState?U.eagerState:l(b,Q)}else K={lane:Q,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(y=A=K,k=b):A=A.next=K,Me.lanes|=Q,Sr|=Q;U=U.next}while(U!==null&&U!==t);if(A===null?k=b:A.next=y,!Kn(b,o.memoizedState)&&(Vo=!0,Y&&(l=Pa,l!==null)))throw l;o.memoizedState=b,o.baseState=k,o.baseQueue=A,c.lastRenderedState=b}return f===null&&(c.lanes=0),[o.memoizedState,c.dispatch]}function pu(o){var t=Ho(),l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=o;var c=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);Kn(b,t.memoizedState)||(Vo=!0),t.memoizedState=b,t.baseQueue===null&&(t.baseState=b),l.lastRenderedState=b}return[b,c]}function dp(o,t,l){var c=Me,f=Ho(),b=We;if(b){if(l===void 0)throw Error(i(407));l=l()}else l=t();var k=!Kn((po||f).memoizedState,l);if(k&&(f.memoizedState=l,Vo=!0),f=f.queue,gu(bp.bind(null,c,f,o),[o]),f.getSnapshot!==t||k||Ko!==null&&Ko.memoizedState.tag&1){if(c.flags|=2048,Qa(9,{destroy:void 0},fp.bind(null,c,f,l,t),null),go===null)throw Error(i(349));b||(Kt&127)!==0||up(c,t,l)}return l}function up(o,t,l){o.flags|=16384,o={getSnapshot:t,value:l},t=Me.updateQueue,t===null?(t=Lc(),Me.updateQueue=t,t.stores=[o]):(l=t.stores,l===null?t.stores=[o]:l.push(o))}function fp(o,t,l,c){t.value=l,t.getSnapshot=c,mp(t)&&hp(o)}function bp(o,t,l){return l(function(){mp(t)&&hp(o)})}function mp(o){var t=o.getSnapshot;o=o.value;try{var l=t();return!Kn(o,l)}catch{return!0}}function hp(o){var t=oa(o,2);t!==null&&Rn(t,o,2)}function ku(o){var t=zn();if(typeof o=="function"){var l=o;if(o=l(),da){at(!0);try{l()}finally{at(!1)}}}return t.memoizedState=t.baseState=o,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:o},t}function pp(o,t,l,c){return o.baseState=l,hu(o,po,typeof c=="function"?c:Vt)}function z2(o,t,l,c,f){if(Rc(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,c(b),l=t.pending,l===null?(b.next=t.pending=b,kp(t,b)):(b.next=l.next,t.pending=l.next=b)}}function kp(o,t){var l=t.action,c=t.payload,f=o.state;if(t.isTransition){var b=M.T,k={};M.T=k;try{var y=l(f,c),A=M.S;A!==null&&A(k,y),vp(o,t,y)}catch(U){vu(o,t,U)}finally{b!==null&&k.types!==null&&(b.types=k.types),M.T=b}}else try{b=l(f,c),vp(o,t,b)}catch(U){vu(o,t,U)}}function vp(o,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(c){gp(o,t,c)},function(c){return vu(o,t,c)}):gp(o,t,l)}function gp(o,t,l){t.status="fulfilled",t.value=l,_p(t),o.state=l,t=o.pending,t!==null&&(l=t.next,l===t?o.pending=null:(l=l.next,t.next=l,kp(o,l)))}function vu(o,t,l){var c=o.pending;if(o.pending=null,c!==null){c=c.next;do t.status="rejected",t.reason=l,_p(t),t=t.next;while(t!==c)}o.action=null}function _p(o){o=o.listeners;for(var t=0;t<o.length;t++)(0,o[t])()}function xp(o,t){return t}function yp(o,t){if(We){var l=go.formState;if(l!==null){e:{var c=Me;if(We){if(xo){o:{for(var f=xo,b=ft;f.nodeType!==8;){if(!b){f=null;break o}if(f=mt(f.nextSibling),f===null){f=null;break o}}b=f.data,f=b==="F!"||b==="F"?f:null}if(f){xo=mt(f.nextSibling),c=f.data==="F!";break e}}kr(c)}c=!1}c&&(t=l[0])}}return l=zn(),l.memoizedState=l.baseState=t,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xp,lastRenderedState:t},l.queue=c,l=Hp.bind(null,Me,c),c.dispatch=l,c=ku(!1),b=zu.bind(null,Me,!1,c.queue),c=zn(),f={state:t,dispatch:null,action:o,pending:null},c.queue=f,l=z2.bind(null,Me,f,b,l),f.dispatch=l,c.memoizedState=o,[t,l,!1]}function wp(o){var t=Ho();return zp(t,po,o)}function zp(o,t,l){if(t=hu(o,t,xp)[0],o=$c(Vt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var c=ei(t)}catch(k){throw k===Ga?wc:k}else c=t;t=Ho();var f=t.queue,b=f.dispatch;return l!==t.memoizedState&&(Me.flags|=2048,Qa(9,{destroy:void 0},j2.bind(null,f,l),null)),[c,b,o]}function j2(o,t){o.action=t}function jp(o){var t=Ho(),l=po;if(l!==null)return zp(t,l,o);Ho(),t=t.memoizedState,l=Ho();var c=l.queue.dispatch;return l.memoizedState=o,[t,c,!1]}function Qa(o,t,l,c){return o={tag:o,create:l,deps:c,inst:t,next:null},t=Me.updateQueue,t===null&&(t=Lc(),Me.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=o.next=o:(c=l.next,l.next=o,o.next=c,t.lastEffect=o),o}function Sp(){return Ho().memoizedState}function Nc(o,t,l,c){var f=zn();Me.flags|=o,f.memoizedState=Qa(1|t,{destroy:void 0},l,c===void 0?null:c)}function Bc(o,t,l,c){var f=Ho();c=c===void 0?null:c;var b=f.memoizedState.inst;po!==null&&c!==null&&su(c,po.memoizedState.deps)?f.memoizedState=Qa(t,b,l,c):(Me.flags|=o,f.memoizedState=Qa(1|t,b,l,c))}function Tp(o,t){Nc(8390656,8,o,t)}function gu(o,t){Bc(2048,8,o,t)}function S2(o){Me.flags|=4;var t=Me.updateQueue;if(t===null)t=Lc(),Me.updateQueue=t,t.events=[o];else{var l=t.events;l===null?t.events=[o]:l.push(o)}}function Ap(o){var t=Ho().memoizedState;return S2({ref:t,nextImpl:o}),function(){if((co&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Cp(o,t){return Bc(4,2,o,t)}function Ep(o,t){return Bc(4,4,o,t)}function Lp(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 Op(o,t,l){l=l!=null?l.concat([o]):null,Bc(4,4,Lp.bind(null,t,o),l)}function _u(){}function $p(o,t){var l=Ho();t=t===void 0?null:t;var c=l.memoizedState;return t!==null&&su(t,c[1])?c[0]:(l.memoizedState=[o,t],o)}function Np(o,t){var l=Ho();t=t===void 0?null:t;var c=l.memoizedState;if(t!==null&&su(t,c[1]))return c[0];if(c=o(),da){at(!0);try{o()}finally{at(!1)}}return l.memoizedState=[c,t],c}function xu(o,t,l){return l===void 0||(Kt&1073741824)!==0&&(Ye&261930)===0?o.memoizedState=t:(o.memoizedState=l,o=Bk(),Me.lanes|=o,Sr|=o,l)}function Bp(o,t,l,c){return Kn(l,t)?l:Ja.current!==null?(o=xu(o,l,c),Kn(o,t)||(Vo=!0),o):(Kt&42)===0||(Kt&1073741824)!==0&&(Ye&261930)===0?(Vo=!0,o.memoizedState=l):(o=Bk(),Me.lanes|=o,Sr|=o,t)}function Rp(o,t,l,c,f){var b=G.p;G.p=b!==0&&8>b?b:8;var k=M.T,y={};M.T=y,zu(o,!1,t,l);try{var A=f(),U=M.S;if(U!==null&&U(y,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var Y=x2(A,c);oi(o,t,Y,Yn(o))}else oi(o,t,c,Yn(o))}catch(Q){oi(o,t,{then:function(){},status:"rejected",reason:Q},Yn())}finally{G.p=b,k!==null&&y.types!==null&&(k.types=y.types),M.T=k}}function T2(){}function yu(o,t,l,c){if(o.tag!==5)throw Error(i(476));var f=Dp(o).queue;Rp(o,f,t,ie,l===null?T2:function(){return Mp(o),l(c)})}function Dp(o){var t=o.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:ie},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:l},next:null},o.memoizedState=t,o=o.alternate,o!==null&&(o.memoizedState=t),t}function Mp(o){var t=Dp(o);t.next===null&&(t=o.alternate.memoizedState),oi(o,t.next.queue,{},Yn())}function wu(){return sn(vi)}function Ip(){return Ho().memoizedState}function Up(){return Ho().memoizedState}function A2(o){for(var t=o.return;t!==null;){switch(t.tag){case 24:case 3:var l=Yn();o=_r(l);var c=xr(t,o,l);c!==null&&(Rn(c,t,l),Jl(c,t,l)),t={cache:Wd()},o.payload=t;return}t=t.return}}function C2(o,t,l){var c=Yn();l={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Rc(o)?Fp(t,l):(l=Hd(o,t,l,c),l!==null&&(Rn(l,o,c),Kp(l,t,c)))}function Hp(o,t,l){var c=Yn();oi(o,t,l,c)}function oi(o,t,l,c){var f={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Rc(o))Fp(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,y=b(k,l);if(f.hasEagerState=!0,f.eagerState=y,Kn(y,k))return pc(o,t,f,0),go===null&&hc(),!1}catch{}finally{}if(l=Hd(o,t,f,c),l!==null)return Rn(l,o,c),Kp(l,t,c),!0}return!1}function zu(o,t,l,c){if(c={lane:2,revertLane:nf(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Rc(o)){if(t)throw Error(i(479))}else t=Hd(o,l,c,2),t!==null&&Rn(t,o,2)}function Rc(o){var t=o.alternate;return o===Me||t!==null&&t===Me}function Fp(o,t){Xa=Cc=!0;var l=o.pending;l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t}function Kp(o,t,l){if((l&4194048)!==0){var c=t.lanes;c&=o.pendingLanes,l|=c,t.lanes=l,Gm(o,l)}}var ni={readContext:sn,use:Oc,useCallback:No,useContext:No,useEffect:No,useImperativeHandle:No,useLayoutEffect:No,useInsertionEffect:No,useMemo:No,useReducer:No,useRef:No,useState:No,useDebugValue:No,useDeferredValue:No,useTransition:No,useSyncExternalStore:No,useId:No,useHostTransitionStatus:No,useFormState:No,useActionState:No,useOptimistic:No,useMemoCache:No,useCacheRefresh:No};ni.useEffectEvent=No;var Vp={readContext:sn,use:Oc,useCallback:function(o,t){return zn().memoizedState=[o,t===void 0?null:t],o},useContext:sn,useEffect:Tp,useImperativeHandle:function(o,t,l){l=l!=null?l.concat([o]):null,Nc(4194308,4,Lp.bind(null,t,o),l)},useLayoutEffect:function(o,t){return Nc(4194308,4,o,t)},useInsertionEffect:function(o,t){Nc(4,2,o,t)},useMemo:function(o,t){var l=zn();t=t===void 0?null:t;var c=o();if(da){at(!0);try{o()}finally{at(!1)}}return l.memoizedState=[c,t],c},useReducer:function(o,t,l){var c=zn();if(l!==void 0){var f=l(t);if(da){at(!0);try{l(t)}finally{at(!1)}}}else f=t;return c.memoizedState=c.baseState=f,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:f},c.queue=o,o=o.dispatch=C2.bind(null,Me,o),[c.memoizedState,o]},useRef:function(o){var t=zn();return o={current:o},t.memoizedState=o},useState:function(o){o=ku(o);var t=o.queue,l=Hp.bind(null,Me,t);return t.dispatch=l,[o.memoizedState,l]},useDebugValue:_u,useDeferredValue:function(o,t){var l=zn();return xu(l,o,t)},useTransition:function(){var o=ku(!1);return o=Rp.bind(null,Me,o.queue,!0,!1),zn().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,t,l){var c=Me,f=zn();if(We){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),go===null)throw Error(i(349));(Ye&127)!==0||up(c,t,l)}f.memoizedState=l;var b={value:l,getSnapshot:t};return f.queue=b,Tp(bp.bind(null,c,b,o),[o]),c.flags|=2048,Qa(9,{destroy:void 0},fp.bind(null,c,b,l,t),null),l},useId:function(){var o=zn(),t=go.identifierPrefix;if(We){var l=Ct,c=At;l=(c&~(1<<32-wn(c)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ec++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=y2++,t="_"+t+"r_"+l.toString(32)+"_";return o.memoizedState=t},useHostTransitionStatus:wu,useFormState:yp,useActionState:yp,useOptimistic:function(o){var t=zn();t.memoizedState=t.baseState=o;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=zu.bind(null,Me,!0,l),l.dispatch=t,[o,t]},useMemoCache:mu,useCacheRefresh:function(){return zn().memoizedState=A2.bind(null,Me)},useEffectEvent:function(o){var t=zn(),l={impl:o};return t.memoizedState=l,function(){if((co&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},ju={readContext:sn,use:Oc,useCallback:$p,useContext:sn,useEffect:gu,useImperativeHandle:Op,useInsertionEffect:Cp,useLayoutEffect:Ep,useMemo:Np,useReducer:$c,useRef:Sp,useState:function(){return $c(Vt)},useDebugValue:_u,useDeferredValue:function(o,t){var l=Ho();return Bp(l,po.memoizedState,o,t)},useTransition:function(){var o=$c(Vt)[0],t=Ho().memoizedState;return[typeof o=="boolean"?o:ei(o),t]},useSyncExternalStore:dp,useId:Ip,useHostTransitionStatus:wu,useFormState:wp,useActionState:wp,useOptimistic:function(o,t){var l=Ho();return pp(l,po,o,t)},useMemoCache:mu,useCacheRefresh:Up};ju.useEffectEvent=Ap;var qp={readContext:sn,use:Oc,useCallback:$p,useContext:sn,useEffect:gu,useImperativeHandle:Op,useInsertionEffect:Cp,useLayoutEffect:Ep,useMemo:Np,useReducer:pu,useRef:Sp,useState:function(){return pu(Vt)},useDebugValue:_u,useDeferredValue:function(o,t){var l=Ho();return po===null?xu(l,o,t):Bp(l,po.memoizedState,o,t)},useTransition:function(){var o=pu(Vt)[0],t=Ho().memoizedState;return[typeof o=="boolean"?o:ei(o),t]},useSyncExternalStore:dp,useId:Ip,useHostTransitionStatus:wu,useFormState:jp,useActionState:jp,useOptimistic:function(o,t){var l=Ho();return po!==null?pp(l,po,o,t):(l.baseState=o,[o,l.queue.dispatch])},useMemoCache:mu,useCacheRefresh:Up};qp.useEffectEvent=Ap;function Su(o,t,l,c){t=o.memoizedState,l=l(c,t),l=l==null?t:v({},t,l),o.memoizedState=l,o.lanes===0&&(o.updateQueue.baseState=l)}var Tu={enqueueSetState:function(o,t,l){o=o._reactInternals;var c=Yn(),f=_r(c);f.payload=t,l!=null&&(f.callback=l),t=xr(o,f,c),t!==null&&(Rn(t,o,c),Jl(t,o,c))},enqueueReplaceState:function(o,t,l){o=o._reactInternals;var c=Yn(),f=_r(c);f.tag=1,f.payload=t,l!=null&&(f.callback=l),t=xr(o,f,c),t!==null&&(Rn(t,o,c),Jl(t,o,c))},enqueueForceUpdate:function(o,t){o=o._reactInternals;var l=Yn(),c=_r(l);c.tag=2,t!=null&&(c.callback=t),t=xr(o,c,l),t!==null&&(Rn(t,o,l),Jl(t,o,l))}};function Zp(o,t,l,c,f,b,k){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(c,b,k):t.prototype&&t.prototype.isPureReactComponent?!Fl(l,c)||!Fl(f,b):!0}function Pp(o,t,l,c){o=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,c),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,c),t.state!==o&&Tu.enqueueReplaceState(t,t.state,null)}function ua(o,t){var l=t;if("ref"in t){l={};for(var c in t)c!=="ref"&&(l[c]=t[c])}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 Gp(o){mc(o)}function Yp(o){console.error(o)}function Jp(o){mc(o)}function Dc(o,t){try{var l=o.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(c){setTimeout(function(){throw c})}}function Xp(o,t,l){try{var c=o.onCaughtError;c(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Au(o,t,l){return l=_r(l),l.tag=3,l.payload={element:null},l.callback=function(){Dc(o,t)},l}function Wp(o){return o=_r(o),o.tag=3,o}function Qp(o,t,l,c){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var b=c.value;o.payload=function(){return f(b)},o.callback=function(){Xp(t,l,c)}}var k=l.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(o.callback=function(){Xp(t,l,c),typeof f!="function"&&(Tr===null?Tr=new Set([this]):Tr.add(this));var y=c.stack;this.componentDidCatch(c.value,{componentStack:y!==null?y:""})})}function E2(o,t,l,c,f){if(l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(t=l.alternate,t!==null&&qa(t,l,f,!0),l=qn.current,l!==null){switch(l.tag){case 31:case 13:return bt===null?Yc():l.alternate===null&&Bo===0&&(Bo=3),l.flags&=-257,l.flags|=65536,l.lanes=f,c===zc?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([c]):t.add(c),Qu(o,c,f)),!1;case 22:return l.flags|=65536,c===zc?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([c])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([c]):l.add(c)),Qu(o,c,f)),!1}throw Error(i(435,l.tag))}return Qu(o,c,f),Yc(),!1}if(We)return t=qn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=f,c!==Pd&&(o=Error(i(422),{cause:c}),ql(st(o,l)))):(c!==Pd&&(t=Error(i(423),{cause:c}),ql(st(t,l))),o=o.current.alternate,o.flags|=65536,f&=-f,o.lanes|=f,c=st(c,l),f=Au(o.stateNode,c,f),ru(o,f),Bo!==4&&(Bo=2)),!1;var b=Error(i(520),{cause:c});if(b=st(b,l),di===null?di=[b]:di.push(b),Bo!==4&&(Bo=2),t===null)return!0;c=st(c,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,o=f&-f,l.lanes|=o,o=Au(l.stateNode,c,o),ru(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"&&(Tr===null||!Tr.has(b))))return l.flags|=65536,f&=-f,l.lanes|=f,f=Wp(f),Qp(f,o,l,c),ru(l,f),!1}l=l.return}while(l!==null);return!1}var Cu=Error(i(461)),Vo=!1;function dn(o,t,l,c){t.child=o===null?tp(t,null,l,c):sa(t,o.child,l,c)}function ek(o,t,l,c,f){l=l.render;var b=t.ref;if("ref"in c){var k={};for(var y in c)y!=="ref"&&(k[y]=c[y])}else k=c;return aa(t),c=du(o,t,l,k,b,f),y=uu(),o!==null&&!Vo?(fu(o,t,f),qt(o,t,f)):(We&&y&&qd(t),t.flags|=1,dn(o,t,c,f),t.child)}function ok(o,t,l,c,f){if(o===null){var b=l.type;return typeof b=="function"&&!Fd(b)&&b.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=b,nk(o,t,b,c,f)):(o=vc(l.type,null,c,t,t.mode,f),o.ref=t.ref,o.return=t,t.child=o)}if(b=o.child,!Du(o,f)){var k=b.memoizedProps;if(l=l.compare,l=l!==null?l:Fl,l(k,c)&&o.ref===t.ref)return qt(o,t,f)}return t.flags|=1,o=It(b,c),o.ref=t.ref,o.return=t,t.child=o}function nk(o,t,l,c,f){if(o!==null){var b=o.memoizedProps;if(Fl(b,c)&&o.ref===t.ref)if(Vo=!1,t.pendingProps=c=b,Du(o,f))(o.flags&131072)!==0&&(Vo=!0);else return t.lanes=o.lanes,qt(o,t,f)}return Eu(o,t,l,c,f)}function tk(o,t,l,c){var f=c.children,b=o!==null?o.memoizedState:null;if(o===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((t.flags&128)!==0){if(b=b!==null?b.baseLanes|l:l,o!==null){for(c=t.child=o.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;c=f&~b}else c=0,t.child=null;return rk(o,t,b,l,c)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},o!==null&&yc(t,b!==null?b.cachePool:null),b!==null?lp(t,b):lu(),ip(t);else return c=t.lanes=536870912,rk(o,t,b!==null?b.baseLanes|l:l,l,c)}else b!==null?(yc(t,b.cachePool),lp(t,b),wr(),t.memoizedState=null):(o!==null&&yc(t,null),lu(),wr());return dn(o,t,f,l),t.child}function ti(o,t){return o!==null&&o.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rk(o,t,l,c,f){var b=eu();return b=b===null?null:{parent:Fo._currentValue,pool:b},t.memoizedState={baseLanes:l,cachePool:b},o!==null&&yc(t,null),lu(),ip(t),o!==null&&qa(o,t,c,!0),t.childLanes=f,null}function Mc(o,t){return t=Uc({mode:t.mode,children:t.children},o.mode),t.ref=o.ref,o.child=t,t.return=o,t}function ak(o,t,l){return sa(t,o.child,null,l),o=Mc(t,t.pendingProps),o.flags|=2,Zn(t),t.memoizedState=null,o}function L2(o,t,l){var c=t.pendingProps,f=(t.flags&128)!==0;if(t.flags&=-129,o===null){if(We){if(c.mode==="hidden")return o=Mc(t,c),t.lanes=536870912,ti(null,o);if(cu(t),(o=xo)?(o=kv(o,ft),o=o!==null&&o.data==="&"?o:null,o!==null&&(t.memoizedState={dehydrated:o,treeContext:hr!==null?{id:At,overflow:Ct}:null,retryLane:536870912,hydrationErrors:null},l=Fh(o),l.return=t,t.child=l,cn=t,xo=null)):o=null,o===null)throw kr(t);return t.lanes=536870912,null}return Mc(t,c)}var b=o.memoizedState;if(b!==null){var k=b.dehydrated;if(cu(t),f)if(t.flags&256)t.flags&=-257,t=ak(o,t,l);else if(t.memoizedState!==null)t.child=o.child,t.flags|=128,t=null;else throw Error(i(558));else if(Vo||qa(o,t,l,!1),f=(l&o.childLanes)!==0,Vo||f){if(c=go,c!==null&&(k=Ym(c,l),k!==0&&k!==b.retryLane))throw b.retryLane=k,oa(o,k),Rn(c,o,k),Cu;Yc(),t=ak(o,t,l)}else o=b.treeContext,xo=mt(k.nextSibling),cn=t,We=!0,pr=null,ft=!1,o!==null&&qh(t,o),t=Mc(t,c),t.flags|=4096;return t}return o=It(o.child,{mode:c.mode,children:c.children}),o.ref=t.ref,t.child=o,o.return=t,o}function Ic(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 Eu(o,t,l,c,f){return aa(t),l=du(o,t,l,c,void 0,f),c=uu(),o!==null&&!Vo?(fu(o,t,f),qt(o,t,f)):(We&&c&&qd(t),t.flags|=1,dn(o,t,l,f),t.child)}function lk(o,t,l,c,f,b){return aa(t),t.updateQueue=null,l=sp(t,c,l,f),cp(o),c=uu(),o!==null&&!Vo?(fu(o,t,b),qt(o,t,b)):(We&&c&&qd(t),t.flags|=1,dn(o,t,l,b),t.child)}function ik(o,t,l,c,f){if(aa(t),t.stateNode===null){var b=Ha,k=l.contextType;typeof k=="object"&&k!==null&&(b=sn(k)),b=new l(c,b),t.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Tu,t.stateNode=b,b._reactInternals=t,b=t.stateNode,b.props=c,b.state=t.memoizedState,b.refs={},nu(t),k=l.contextType,b.context=typeof k=="object"&&k!==null?sn(k):Ha,b.state=t.memoizedState,k=l.getDerivedStateFromProps,typeof k=="function"&&(Su(t,l,k,c),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&&Tu.enqueueReplaceState(b,b.state,null),Wl(t,c,b,f),Xl(),b.state=t.memoizedState),typeof b.componentDidMount=="function"&&(t.flags|=4194308),c=!0}else if(o===null){b=t.stateNode;var y=t.memoizedProps,A=ua(l,y);b.props=A;var U=b.context,Y=l.contextType;k=Ha,typeof Y=="object"&&Y!==null&&(k=sn(Y));var Q=l.getDerivedStateFromProps;Y=typeof Q=="function"||typeof b.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,Y||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(y||U!==k)&&Pp(t,b,c,k),gr=!1;var K=t.memoizedState;b.state=K,Wl(t,c,b,f),Xl(),U=t.memoizedState,y||K!==U||gr?(typeof Q=="function"&&(Su(t,l,Q,c),U=t.memoizedState),(A=gr||Zp(t,l,A,c,K,U,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=c,t.memoizedState=U),b.props=c,b.state=U,b.context=k,c=A):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),c=!1)}else{b=t.stateNode,tu(o,t),k=t.memoizedProps,Y=ua(l,k),b.props=Y,Q=t.pendingProps,K=b.context,U=l.contextType,A=Ha,typeof U=="object"&&U!==null&&(A=sn(U)),y=l.getDerivedStateFromProps,(U=typeof y=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(k!==Q||K!==A)&&Pp(t,b,c,A),gr=!1,K=t.memoizedState,b.state=K,Wl(t,c,b,f),Xl();var q=t.memoizedState;k!==Q||K!==q||gr||o!==null&&o.dependencies!==null&&_c(o.dependencies)?(typeof y=="function"&&(Su(t,l,y,c),q=t.memoizedState),(Y=gr||Zp(t,l,Y,c,K,q,A)||o!==null&&o.dependencies!==null&&_c(o.dependencies))?(U||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(c,q,A),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(c,q,A)),typeof b.componentDidUpdate=="function"&&(t.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof b.componentDidUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=1024),t.memoizedProps=c,t.memoizedState=q),b.props=c,b.state=q,b.context=A,c=Y):(typeof b.componentDidUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=1024),c=!1)}return b=c,Ic(o,t),c=(t.flags&128)!==0,b||c?(b=t.stateNode,l=c&&typeof l.getDerivedStateFromError!="function"?null:b.render(),t.flags|=1,o!==null&&c?(t.child=sa(t,o.child,null,f),t.child=sa(t,null,l,f)):dn(o,t,l,f),t.memoizedState=b.state,o=t.child):o=qt(o,t,f),o}function ck(o,t,l,c){return ta(),t.flags|=256,dn(o,t,l,c),t.child}var Lu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ou(o){return{baseLanes:o,cachePool:Xh()}}function $u(o,t,l){return o=o!==null?o.childLanes&~l:0,t&&(o|=Gn),o}function sk(o,t,l){var c=t.pendingProps,f=!1,b=(t.flags&128)!==0,k;if((k=b)||(k=o!==null&&o.memoizedState===null?!1:(Uo.current&2)!==0),k&&(f=!0,t.flags&=-129),k=(t.flags&32)!==0,t.flags&=-33,o===null){if(We){if(f?yr(t):wr(),(o=xo)?(o=kv(o,ft),o=o!==null&&o.data!=="&"?o:null,o!==null&&(t.memoizedState={dehydrated:o,treeContext:hr!==null?{id:At,overflow:Ct}:null,retryLane:536870912,hydrationErrors:null},l=Fh(o),l.return=t,t.child=l,cn=t,xo=null)):o=null,o===null)throw kr(t);return pf(o)?t.lanes=32:t.lanes=536870912,null}var y=c.children;return c=c.fallback,f?(wr(),f=t.mode,y=Uc({mode:"hidden",children:y},f),c=na(c,f,l,null),y.return=t,c.return=t,y.sibling=c,t.child=y,c=t.child,c.memoizedState=Ou(l),c.childLanes=$u(o,k,l),t.memoizedState=Lu,ti(null,c)):(yr(t),Nu(t,y))}var A=o.memoizedState;if(A!==null&&(y=A.dehydrated,y!==null)){if(b)t.flags&256?(yr(t),t.flags&=-257,t=Bu(o,t,l)):t.memoizedState!==null?(wr(),t.child=o.child,t.flags|=128,t=null):(wr(),y=c.fallback,f=t.mode,c=Uc({mode:"visible",children:c.children},f),y=na(y,f,l,null),y.flags|=2,c.return=t,y.return=t,c.sibling=y,t.child=c,sa(t,o.child,null,l),c=t.child,c.memoizedState=Ou(l),c.childLanes=$u(o,k,l),t.memoizedState=Lu,t=ti(null,c));else if(yr(t),pf(y)){if(k=y.nextSibling&&y.nextSibling.dataset,k)var U=k.dgst;k=U,c=Error(i(419)),c.stack="",c.digest=k,ql({value:c,source:null,stack:null}),t=Bu(o,t,l)}else if(Vo||qa(o,t,l,!1),k=(l&o.childLanes)!==0,Vo||k){if(k=go,k!==null&&(c=Ym(k,l),c!==0&&c!==A.retryLane))throw A.retryLane=c,oa(o,c),Rn(k,o,c),Cu;hf(y)||Yc(),t=Bu(o,t,l)}else hf(y)?(t.flags|=192,t.child=o.child,t=null):(o=A.treeContext,xo=mt(y.nextSibling),cn=t,We=!0,pr=null,ft=!1,o!==null&&qh(t,o),t=Nu(t,c.children),t.flags|=4096);return t}return f?(wr(),y=c.fallback,f=t.mode,A=o.child,U=A.sibling,c=It(A,{mode:"hidden",children:c.children}),c.subtreeFlags=A.subtreeFlags&65011712,U!==null?y=It(U,y):(y=na(y,f,l,null),y.flags|=2),y.return=t,c.return=t,c.sibling=y,t.child=c,ti(null,c),c=t.child,y=o.child.memoizedState,y===null?y=Ou(l):(f=y.cachePool,f!==null?(A=Fo._currentValue,f=f.parent!==A?{parent:A,pool:A}:f):f=Xh(),y={baseLanes:y.baseLanes|l,cachePool:f}),c.memoizedState=y,c.childLanes=$u(o,k,l),t.memoizedState=Lu,ti(o.child,c)):(yr(t),l=o.child,o=l.sibling,l=It(l,{mode:"visible",children:c.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 Nu(o,t){return t=Uc({mode:"visible",children:t},o.mode),t.return=o,o.child=t}function Uc(o,t){return o=Vn(22,o,null,t),o.lanes=0,o}function Bu(o,t,l){return sa(t,o.child,null,l),o=Nu(t,t.pendingProps.children),o.flags|=2,t.memoizedState=null,o}function dk(o,t,l){o.lanes|=t;var c=o.alternate;c!==null&&(c.lanes|=t),Jd(o.return,t,l)}function Ru(o,t,l,c,f,b){var k=o.memoizedState;k===null?o.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:f,treeForkCount:b}:(k.isBackwards=t,k.rendering=null,k.renderingStartTime=0,k.last=c,k.tail=l,k.tailMode=f,k.treeForkCount=b)}function uk(o,t,l){var c=t.pendingProps,f=c.revealOrder,b=c.tail;c=c.children;var k=Uo.current,y=(k&2)!==0;if(y?(k=k&1|2,t.flags|=128):k&=1,le(Uo,k),dn(o,t,c,l),c=We?Vl:0,!y&&o!==null&&(o.flags&128)!==0)e:for(o=t.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&dk(o,l,t);else if(o.tag===19)dk(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&&Ac(o)===null&&(f=l),l=l.sibling;l=f,l===null?(f=t.child,t.child=null):(f=l.sibling,l.sibling=null),Ru(t,!1,f,l,b,c);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=t.child,t.child=null;f!==null;){if(o=f.alternate,o!==null&&Ac(o)===null){t.child=f;break}o=f.sibling,f.sibling=l,l=f,f=o}Ru(t,!0,l,null,b,c);break;case"together":Ru(t,!1,null,null,void 0,c);break;default:t.memoizedState=null}return t.child}function qt(o,t,l){if(o!==null&&(t.dependencies=o.dependencies),Sr|=t.lanes,(l&t.childLanes)===0)if(o!==null){if(qa(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=It(o,o.pendingProps),t.child=l,l.return=t;o.sibling!==null;)o=o.sibling,l=l.sibling=It(o,o.pendingProps),l.return=t;l.sibling=null}return t.child}function Du(o,t){return(o.lanes&t)!==0?!0:(o=o.dependencies,!!(o!==null&&_c(o)))}function O2(o,t,l){switch(t.tag){case 3:Co(t,t.stateNode.containerInfo),vr(t,Fo,o.memoizedState.cache),ta();break;case 27:case 5:vt(t);break;case 4:Co(t,t.stateNode.containerInfo);break;case 10:vr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,cu(t),null;break;case 13:var c=t.memoizedState;if(c!==null)return c.dehydrated!==null?(yr(t),t.flags|=128,null):(l&t.child.childLanes)!==0?sk(o,t,l):(yr(t),o=qt(o,t,l),o!==null?o.sibling:null);yr(t);break;case 19:var f=(o.flags&128)!==0;if(c=(l&t.childLanes)!==0,c||(qa(o,t,l,!1),c=(l&t.childLanes)!==0),f){if(c)return uk(o,t,l);t.flags|=128}if(f=t.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),le(Uo,Uo.current),c)break;return null;case 22:return t.lanes=0,tk(o,t,l,t.pendingProps);case 24:vr(t,Fo,o.memoizedState.cache)}return qt(o,t,l)}function fk(o,t,l){if(o!==null)if(o.memoizedProps!==t.pendingProps)Vo=!0;else{if(!Du(o,l)&&(t.flags&128)===0)return Vo=!1,O2(o,t,l);Vo=(o.flags&131072)!==0}else Vo=!1,We&&(t.flags&1048576)!==0&&Vh(t,Vl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var c=t.pendingProps;if(o=ia(t.elementType),t.type=o,typeof o=="function")Fd(o)?(c=ua(o,c),t.tag=1,t=ik(null,t,o,c,l)):(t.tag=0,t=Eu(null,t,o,c,l));else{if(o!=null){var f=o.$$typeof;if(f===$){t.tag=11,t=ek(null,t,o,c,l);break e}else if(f===Z){t.tag=14,t=ok(null,t,o,c,l);break e}}throw t=De(o)||o,Error(i(306,t,""))}}return t;case 0:return Eu(o,t,t.type,t.pendingProps,l);case 1:return c=t.type,f=ua(c,t.pendingProps),ik(o,t,c,f,l);case 3:e:{if(Co(t,t.stateNode.containerInfo),o===null)throw Error(i(387));c=t.pendingProps;var b=t.memoizedState;f=b.element,tu(o,t),Wl(t,c,null,l);var k=t.memoizedState;if(c=k.cache,vr(t,Fo,c),c!==b.cache&&Xd(t,[Fo],l,!0),Xl(),c=k.element,b.isDehydrated)if(b={element:c,isDehydrated:!1,cache:k.cache},t.updateQueue.baseState=b,t.memoizedState=b,t.flags&256){t=ck(o,t,c,l);break e}else if(c!==f){f=st(Error(i(424)),t),ql(f),t=ck(o,t,c,l);break e}else{switch(o=t.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(xo=mt(o.firstChild),cn=t,We=!0,pr=null,ft=!0,l=tp(t,null,c,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ta(),c===f){t=qt(o,t,l);break e}dn(o,t,c,l)}t=t.child}return t;case 26:return Ic(o,t),o===null?(l=wv(t.type,null,t.pendingProps,null))?t.memoizedState=l:We||(l=t.type,o=t.pendingProps,c=ns(Ne.current).createElement(l),c[ln]=t,c[En]=o,un(c,l,o),nn(c),t.stateNode=c):t.memoizedState=wv(t.type,o.memoizedProps,t.pendingProps,o.memoizedState),null;case 27:return vt(t),o===null&&We&&(c=t.stateNode=_v(t.type,t.pendingProps,Ne.current),cn=t,ft=!0,f=xo,Lr(t.type)?(kf=f,xo=mt(c.firstChild)):xo=f),dn(o,t,t.pendingProps.children,l),Ic(o,t),o===null&&(t.flags|=4194304),t.child;case 5:return o===null&&We&&((f=c=xo)&&(c=cz(c,t.type,t.pendingProps,ft),c!==null?(t.stateNode=c,cn=t,xo=mt(c.firstChild),ft=!1,f=!0):f=!1),f||kr(t)),vt(t),f=t.type,b=t.pendingProps,k=o!==null?o.memoizedProps:null,c=b.children,ff(f,b)?c=null:k!==null&&ff(f,k)&&(t.flags|=32),t.memoizedState!==null&&(f=du(o,t,w2,null,null,l),vi._currentValue=f),Ic(o,t),dn(o,t,c,l),t.child;case 6:return o===null&&We&&((o=l=xo)&&(l=sz(l,t.pendingProps,ft),l!==null?(t.stateNode=l,cn=t,xo=null,o=!0):o=!1),o||kr(t)),null;case 13:return sk(o,t,l);case 4:return Co(t,t.stateNode.containerInfo),c=t.pendingProps,o===null?t.child=sa(t,null,c,l):dn(o,t,c,l),t.child;case 11:return ek(o,t,t.type,t.pendingProps,l);case 7:return dn(o,t,t.pendingProps,l),t.child;case 8:return dn(o,t,t.pendingProps.children,l),t.child;case 12:return dn(o,t,t.pendingProps.children,l),t.child;case 10:return c=t.pendingProps,vr(t,t.type,c.value),dn(o,t,c.children,l),t.child;case 9:return f=t.type._context,c=t.pendingProps.children,aa(t),f=sn(f),c=c(f),t.flags|=1,dn(o,t,c,l),t.child;case 14:return ok(o,t,t.type,t.pendingProps,l);case 15:return nk(o,t,t.type,t.pendingProps,l);case 19:return uk(o,t,l);case 31:return L2(o,t,l);case 22:return tk(o,t,l,t.pendingProps);case 24:return aa(t),c=sn(Fo),o===null?(f=eu(),f===null&&(f=go,b=Wd(),f.pooledCache=b,b.refCount++,b!==null&&(f.pooledCacheLanes|=l),f=b),t.memoizedState={parent:c,cache:f},nu(t),vr(t,Fo,f)):((o.lanes&l)!==0&&(tu(o,t),Wl(t,null,null,l),Xl()),f=o.memoizedState,b=t.memoizedState,f.parent!==c?(f={parent:c,cache:c},t.memoizedState=f,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=f),vr(t,Fo,c)):(c=b.cache,vr(t,Fo,c),c!==f.cache&&Xd(t,[Fo],l,!0))),dn(o,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Zt(o){o.flags|=4}function Mu(o,t,l,c,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(Ik())o.flags|=8192;else throw ca=zc,ou}else o.flags&=-16777217}function bk(o,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!Av(t))if(Ik())o.flags|=8192;else throw ca=zc,ou}function Hc(o,t){t!==null&&(o.flags|=4),o.flags&16384&&(t=o.tag!==22?Zm():536870912,o.lanes|=t,tl|=t)}function ri(o,t){if(!We)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 c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?t||o.tail===null?o.tail=null:o.tail.sibling=null:c.sibling=null}}function yo(o){var t=o.alternate!==null&&o.alternate.child===o.child,l=0,c=0;if(t)for(var f=o.child;f!==null;)l|=f.lanes|f.childLanes,c|=f.subtreeFlags&65011712,c|=f.flags&65011712,f.return=o,f=f.sibling;else for(f=o.child;f!==null;)l|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=o,f=f.sibling;return o.subtreeFlags|=c,o.childLanes=l,t}function $2(o,t,l){var c=t.pendingProps;switch(Zd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yo(t),null;case 1:return yo(t),null;case 3:return l=t.stateNode,c=null,o!==null&&(c=o.memoizedState.cache),t.memoizedState.cache!==c&&(t.flags|=2048),Ft(Fo),_o(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(o===null||o.child===null)&&(Va(t)?Zt(t):o===null||o.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Gd())),yo(t),null;case 26:var f=t.type,b=t.memoizedState;return o===null?(Zt(t),b!==null?(yo(t),bk(t,b)):(yo(t),Mu(t,f,null,c,l))):b?b!==o.memoizedState?(Zt(t),yo(t),bk(t,b)):(yo(t),t.flags&=-16777217):(o=o.memoizedProps,o!==c&&Zt(t),yo(t),Mu(t,f,o,c,l)),null;case 27:if(St(t),l=Ne.current,f=t.type,o!==null&&t.stateNode!=null)o.memoizedProps!==c&&Zt(t);else{if(!c){if(t.stateNode===null)throw Error(i(166));return yo(t),null}o=fe.current,Va(t)?Zh(t):(o=_v(f,c,l),t.stateNode=o,Zt(t))}return yo(t),null;case 5:if(St(t),f=t.type,o!==null&&t.stateNode!=null)o.memoizedProps!==c&&Zt(t);else{if(!c){if(t.stateNode===null)throw Error(i(166));return yo(t),null}if(b=fe.current,Va(t))Zh(t);else{var k=ns(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 c.is=="string"?k.createElement("select",{is:c.is}):k.createElement("select"),c.multiple?b.multiple=!0:c.size&&(b.size=c.size);break;default:b=typeof c.is=="string"?k.createElement(f,{is:c.is}):k.createElement(f)}}b[ln]=t,b[En]=c;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(un(b,f,c),f){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Zt(t)}}return yo(t),Mu(t,t.type,o===null?null:o.memoizedProps,t.pendingProps,l),null;case 6:if(o&&t.stateNode!=null)o.memoizedProps!==c&&Zt(t);else{if(typeof c!="string"&&t.stateNode===null)throw Error(i(166));if(o=Ne.current,Va(t)){if(o=t.stateNode,l=t.memoizedProps,c=null,f=cn,f!==null)switch(f.tag){case 27:case 5:c=f.memoizedProps}o[ln]=t,o=!!(o.nodeValue===l||c!==null&&c.suppressHydrationWarning===!0||sv(o.nodeValue,l)),o||kr(t,!0)}else o=ns(o).createTextNode(c),o[ln]=t,t.stateNode=o}return yo(t),null;case 31:if(l=t.memoizedState,o===null||o.memoizedState!==null){if(c=Va(t),l!==null){if(o===null){if(!c)throw Error(i(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(557));o[ln]=t}else ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yo(t),o=!1}else l=Gd(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=l),o=!0;if(!o)return t.flags&256?(Zn(t),t):(Zn(t),null);if((t.flags&128)!==0)throw Error(i(558))}return yo(t),null;case 13:if(c=t.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(f=Va(t),c!==null&&c.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[ln]=t}else ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yo(t),f=!1}else f=Gd(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=f),f=!0;if(!f)return t.flags&256?(Zn(t),t):(Zn(t),null)}return Zn(t),(t.flags&128)!==0?(t.lanes=l,t):(l=c!==null,o=o!==null&&o.memoizedState!==null,l&&(c=t.child,f=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(f=c.alternate.memoizedState.cachePool.pool),b=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(b=c.memoizedState.cachePool.pool),b!==f&&(c.flags|=2048)),l!==o&&l&&(t.child.flags|=8192),Hc(t,t.updateQueue),yo(t),null);case 4:return _o(),o===null&&lf(t.stateNode.containerInfo),yo(t),null;case 10:return Ft(t.type),yo(t),null;case 19:if(P(Uo),c=t.memoizedState,c===null)return yo(t),null;if(f=(t.flags&128)!==0,b=c.rendering,b===null)if(f)ri(c,!1);else{if(Bo!==0||o!==null&&(o.flags&128)!==0)for(o=t.child;o!==null;){if(b=Ac(o),b!==null){for(t.flags|=128,ri(c,!1),o=b.updateQueue,t.updateQueue=o,Hc(t,o),t.subtreeFlags=0,o=l,l=t.child;l!==null;)Hh(l,o),l=l.sibling;return le(Uo,Uo.current&1|2),We&&Ut(t,c.treeForkCount),t.child}o=o.sibling}c.tail!==null&&te()>Zc&&(t.flags|=128,f=!0,ri(c,!1),t.lanes=4194304)}else{if(!f)if(o=Ac(b),o!==null){if(t.flags|=128,f=!0,o=o.updateQueue,t.updateQueue=o,Hc(t,o),ri(c,!0),c.tail===null&&c.tailMode==="hidden"&&!b.alternate&&!We)return yo(t),null}else 2*te()-c.renderingStartTime>Zc&&l!==536870912&&(t.flags|=128,f=!0,ri(c,!1),t.lanes=4194304);c.isBackwards?(b.sibling=t.child,t.child=b):(o=c.last,o!==null?o.sibling=b:t.child=b,c.last=b)}return c.tail!==null?(o=c.tail,c.rendering=o,c.tail=o.sibling,c.renderingStartTime=te(),o.sibling=null,l=Uo.current,le(Uo,f?l&1|2:l&1),We&&Ut(t,c.treeForkCount),o):(yo(t),null);case 22:case 23:return Zn(t),iu(),c=t.memoizedState!==null,o!==null?o.memoizedState!==null!==c&&(t.flags|=8192):c&&(t.flags|=8192),c?(l&536870912)!==0&&(t.flags&128)===0&&(yo(t),t.subtreeFlags&6&&(t.flags|=8192)):yo(t),l=t.updateQueue,l!==null&&Hc(t,l.retryQueue),l=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),c=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(c=t.memoizedState.cachePool.pool),c!==l&&(t.flags|=2048),o!==null&&P(la),null;case 24:return l=null,o!==null&&(l=o.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ft(Fo),yo(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function N2(o,t){switch(Zd(t),t.tag){case 1:return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 3:return Ft(Fo),_o(),o=t.flags,(o&65536)!==0&&(o&128)===0?(t.flags=o&-65537|128,t):null;case 26:case 27:case 5:return St(t),null;case 31:if(t.memoizedState!==null){if(Zn(t),t.alternate===null)throw Error(i(340));ta()}return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 13:if(Zn(t),o=t.memoizedState,o!==null&&o.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ta()}return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 19:return P(Uo),null;case 4:return _o(),null;case 10:return Ft(t.type),null;case 22:case 23:return Zn(t),iu(),o!==null&&P(la),o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 24:return Ft(Fo),null;case 25:return null;default:return null}}function mk(o,t){switch(Zd(t),t.tag){case 3:Ft(Fo),_o();break;case 26:case 27:case 5:St(t);break;case 4:_o();break;case 31:t.memoizedState!==null&&Zn(t);break;case 13:Zn(t);break;case 19:P(Uo);break;case 10:Ft(t.type);break;case 22:case 23:Zn(t),iu(),o!==null&&P(la);break;case 24:Ft(Fo)}}function ai(o,t){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var f=c.next;l=f;do{if((l.tag&o)===o){c=void 0;var b=l.create,k=l.inst;c=b(),k.destroy=c}l=l.next}while(l!==f)}}catch(y){uo(t,t.return,y)}}function zr(o,t,l){try{var c=t.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var b=f.next;c=b;do{if((c.tag&o)===o){var k=c.inst,y=k.destroy;if(y!==void 0){k.destroy=void 0,f=t;var A=l,U=y;try{U()}catch(Y){uo(f,A,Y)}}}c=c.next}while(c!==b)}}catch(Y){uo(t,t.return,Y)}}function hk(o){var t=o.updateQueue;if(t!==null){var l=o.stateNode;try{ap(t,l)}catch(c){uo(o,o.return,c)}}}function pk(o,t,l){l.props=ua(o.type,o.memoizedProps),l.state=o.memoizedState;try{l.componentWillUnmount()}catch(c){uo(o,t,c)}}function li(o,t){try{var l=o.ref;if(l!==null){switch(o.tag){case 26:case 27:case 5:var c=o.stateNode;break;case 30:c=o.stateNode;break;default:c=o.stateNode}typeof l=="function"?o.refCleanup=l(c):l.current=c}}catch(f){uo(o,t,f)}}function Et(o,t){var l=o.ref,c=o.refCleanup;if(l!==null)if(typeof c=="function")try{c()}catch(f){uo(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){uo(o,t,f)}else l.current=null}function kk(o){var t=o.type,l=o.memoizedProps,c=o.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&c.focus();break e;case"img":l.src?c.src=l.src:l.srcSet&&(c.srcset=l.srcSet)}}catch(f){uo(o,o.return,f)}}function Iu(o,t,l){try{var c=o.stateNode;nz(c,o.type,l,t),c[En]=t}catch(f){uo(o,o.return,f)}}function vk(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Lr(o.type)||o.tag===4}function Uu(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||vk(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&&Lr(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 Hu(o,t,l){var c=o.tag;if(c===5||c===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=Dt));else if(c!==4&&(c===27&&Lr(o.type)&&(l=o.stateNode,t=null),o=o.child,o!==null))for(Hu(o,t,l),o=o.sibling;o!==null;)Hu(o,t,l),o=o.sibling}function Fc(o,t,l){var c=o.tag;if(c===5||c===6)o=o.stateNode,t?l.insertBefore(o,t):l.appendChild(o);else if(c!==4&&(c===27&&Lr(o.type)&&(l=o.stateNode),o=o.child,o!==null))for(Fc(o,t,l),o=o.sibling;o!==null;)Fc(o,t,l),o=o.sibling}function gk(o){var t=o.stateNode,l=o.memoizedProps;try{for(var c=o.type,f=t.attributes;f.length;)t.removeAttributeNode(f[0]);un(t,c,l),t[ln]=o,t[En]=l}catch(b){uo(o,o.return,b)}}var Pt=!1,qo=!1,Fu=!1,_k=typeof WeakSet=="function"?WeakSet:Set,tn=null;function B2(o,t){if(o=o.containerInfo,df=ss,o=Oh(o),Bd(o)){if("selectionStart"in o)var l={start:o.selectionStart,end:o.selectionEnd};else e:{l=(l=o.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var f=c.anchorOffset,b=c.focusNode;c=c.focusOffset;try{l.nodeType,b.nodeType}catch{l=null;break e}var k=0,y=-1,A=-1,U=0,Y=0,Q=o,K=null;o:for(;;){for(var q;Q!==l||f!==0&&Q.nodeType!==3||(y=k+f),Q!==b||c!==0&&Q.nodeType!==3||(A=k+c),Q.nodeType===3&&(k+=Q.nodeValue.length),(q=Q.firstChild)!==null;)K=Q,Q=q;for(;;){if(Q===o)break o;if(K===l&&++U===f&&(y=k),K===b&&++Y===c&&(A=k),(q=Q.nextSibling)!==null)break;Q=K,K=Q.parentNode}Q=q}l=y===-1||A===-1?null:{start:y,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(uf={focusedElem:o,selectionRange:l},ss=!1,tn=t;tn!==null;)if(t=tn,o=t.child,(t.subtreeFlags&1028)!==0&&o!==null)o.return=t,tn=o;else for(;tn!==null;){switch(t=tn,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,c=l.stateNode;try{var pe=ua(l.type,f);o=c.getSnapshotBeforeUpdate(pe,b),c.__reactInternalSnapshotBeforeUpdate=o}catch(Ae){uo(l,l.return,Ae)}}break;case 3:if((o&1024)!==0){if(o=t.stateNode.containerInfo,l=o.nodeType,l===9)mf(o);else if(l===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":mf(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,tn=o;break}tn=t.return}}function xk(o,t,l){var c=l.flags;switch(l.tag){case 0:case 11:case 15:Yt(o,l),c&4&&ai(5,l);break;case 1:if(Yt(o,l),c&4)if(o=l.stateNode,t===null)try{o.componentDidMount()}catch(k){uo(l,l.return,k)}else{var f=ua(l.type,t.memoizedProps);t=t.memoizedState;try{o.componentDidUpdate(f,t,o.__reactInternalSnapshotBeforeUpdate)}catch(k){uo(l,l.return,k)}}c&64&&hk(l),c&512&&li(l,l.return);break;case 3:if(Yt(o,l),c&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{ap(o,t)}catch(k){uo(l,l.return,k)}}break;case 27:t===null&&c&4&&gk(l);case 26:case 5:Yt(o,l),t===null&&c&4&&kk(l),c&512&&li(l,l.return);break;case 12:Yt(o,l);break;case 31:Yt(o,l),c&4&&zk(o,l);break;case 13:Yt(o,l),c&4&&jk(o,l),c&64&&(o=l.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(l=V2.bind(null,l),dz(o,l))));break;case 22:if(c=l.memoizedState!==null||Pt,!c){t=t!==null&&t.memoizedState!==null||qo,f=Pt;var b=qo;Pt=c,(qo=t)&&!b?Jt(o,l,(l.subtreeFlags&8772)!==0):Yt(o,l),Pt=f,qo=b}break;case 30:break;default:Yt(o,l)}}function yk(o){var t=o.alternate;t!==null&&(o.alternate=null,yk(t)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(t=o.stateNode,t!==null&&vd(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 jo=null,On=!1;function Gt(o,t,l){for(l=l.child;l!==null;)wk(o,t,l),l=l.sibling}function wk(o,t,l){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Yr,l)}catch{}switch(l.tag){case 26:qo||Et(l,t),Gt(o,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:qo||Et(l,t);var c=jo,f=On;Lr(l.type)&&(jo=l.stateNode,On=!1),Gt(o,t,l),hi(l.stateNode),jo=c,On=f;break;case 5:qo||Et(l,t);case 6:if(c=jo,f=On,jo=null,Gt(o,t,l),jo=c,On=f,jo!==null)if(On)try{(jo.nodeType===9?jo.body:jo.nodeName==="HTML"?jo.ownerDocument.body:jo).removeChild(l.stateNode)}catch(b){uo(l,t,b)}else try{jo.removeChild(l.stateNode)}catch(b){uo(l,t,b)}break;case 18:jo!==null&&(On?(o=jo,hv(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,l.stateNode),ul(o)):hv(jo,l.stateNode));break;case 4:c=jo,f=On,jo=l.stateNode.containerInfo,On=!0,Gt(o,t,l),jo=c,On=f;break;case 0:case 11:case 14:case 15:zr(2,l,t),qo||zr(4,l,t),Gt(o,t,l);break;case 1:qo||(Et(l,t),c=l.stateNode,typeof c.componentWillUnmount=="function"&&pk(l,t,c)),Gt(o,t,l);break;case 21:Gt(o,t,l);break;case 22:qo=(c=qo)||l.memoizedState!==null,Gt(o,t,l),qo=c;break;default:Gt(o,t,l)}}function zk(o,t){if(t.memoizedState===null&&(o=t.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{ul(o)}catch(l){uo(t,t.return,l)}}}function jk(o,t){if(t.memoizedState===null&&(o=t.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{ul(o)}catch(l){uo(t,t.return,l)}}function R2(o){switch(o.tag){case 31:case 13:case 19:var t=o.stateNode;return t===null&&(t=o.stateNode=new _k),t;case 22:return o=o.stateNode,t=o._retryCache,t===null&&(t=o._retryCache=new _k),t;default:throw Error(i(435,o.tag))}}function Kc(o,t){var l=R2(o);t.forEach(function(c){if(!l.has(c)){l.add(c);var f=q2.bind(null,o,c);c.then(f,f)}})}function $n(o,t){var l=t.deletions;if(l!==null)for(var c=0;c<l.length;c++){var f=l[c],b=o,k=t,y=k;e:for(;y!==null;){switch(y.tag){case 27:if(Lr(y.type)){jo=y.stateNode,On=!1;break e}break;case 5:jo=y.stateNode,On=!1;break e;case 3:case 4:jo=y.stateNode.containerInfo,On=!0;break e}y=y.return}if(jo===null)throw Error(i(160));wk(b,k,f),jo=null,On=!1,b=f.alternate,b!==null&&(b.return=null),f.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sk(t,o),t=t.sibling}var xt=null;function Sk(o,t){var l=o.alternate,c=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:$n(t,o),Nn(o),c&4&&(zr(3,o,o.return),ai(3,o),zr(5,o,o.return));break;case 1:$n(t,o),Nn(o),c&512&&(qo||l===null||Et(l,l.return)),c&64&&Pt&&(o=o.updateQueue,o!==null&&(c=o.callbacks,c!==null&&(l=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=l===null?c:l.concat(c))));break;case 26:var f=xt;if($n(t,o),Nn(o),c&512&&(qo||l===null||Et(l,l.return)),c&4){var b=l!==null?l.memoizedState:null;if(c=o.memoizedState,l===null)if(c===null)if(o.stateNode===null){e:{c=o.type,l=o.memoizedProps,f=f.ownerDocument||f;o:switch(c){case"title":b=f.getElementsByTagName("title")[0],(!b||b[$l]||b[ln]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=f.createElement(c),f.head.insertBefore(b,f.querySelector("head > title"))),un(b,c,l),b[ln]=o,nn(b),c=b;break e;case"link":var k=Sv("link","href",f).get(c+(l.href||""));if(k){for(var y=0;y<k.length;y++)if(b=k[y],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(y,1);break o}}b=f.createElement(c),un(b,c,l),f.head.appendChild(b);break;case"meta":if(k=Sv("meta","content",f).get(c+(l.content||""))){for(y=0;y<k.length;y++)if(b=k[y],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(y,1);break o}}b=f.createElement(c),un(b,c,l),f.head.appendChild(b);break;default:throw Error(i(468,c))}b[ln]=o,nn(b),c=b}o.stateNode=c}else Tv(f,o.type,o.stateNode);else o.stateNode=jv(f,c,o.memoizedProps);else b!==c?(b===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):b.count--,c===null?Tv(f,o.type,o.stateNode):jv(f,c,o.memoizedProps)):c===null&&o.stateNode!==null&&Iu(o,o.memoizedProps,l.memoizedProps)}break;case 27:$n(t,o),Nn(o),c&512&&(qo||l===null||Et(l,l.return)),l!==null&&c&4&&Iu(o,o.memoizedProps,l.memoizedProps);break;case 5:if($n(t,o),Nn(o),c&512&&(qo||l===null||Et(l,l.return)),o.flags&32){f=o.stateNode;try{Na(f,"")}catch(pe){uo(o,o.return,pe)}}c&4&&o.stateNode!=null&&(f=o.memoizedProps,Iu(o,f,l!==null?l.memoizedProps:f)),c&1024&&(Fu=!0);break;case 6:if($n(t,o),Nn(o),c&4){if(o.stateNode===null)throw Error(i(162));c=o.memoizedProps,l=o.stateNode;try{l.nodeValue=c}catch(pe){uo(o,o.return,pe)}}break;case 3:if(as=null,f=xt,xt=ts(t.containerInfo),$n(t,o),xt=f,Nn(o),c&4&&l!==null&&l.memoizedState.isDehydrated)try{ul(t.containerInfo)}catch(pe){uo(o,o.return,pe)}Fu&&(Fu=!1,Tk(o));break;case 4:c=xt,xt=ts(o.stateNode.containerInfo),$n(t,o),Nn(o),xt=c;break;case 12:$n(t,o),Nn(o);break;case 31:$n(t,o),Nn(o),c&4&&(c=o.updateQueue,c!==null&&(o.updateQueue=null,Kc(o,c)));break;case 13:$n(t,o),Nn(o),o.child.flags&8192&&o.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(qc=te()),c&4&&(c=o.updateQueue,c!==null&&(o.updateQueue=null,Kc(o,c)));break;case 22:f=o.memoizedState!==null;var A=l!==null&&l.memoizedState!==null,U=Pt,Y=qo;if(Pt=U||f,qo=Y||A,$n(t,o),qo=Y,Pt=U,Nn(o),c&8192)e:for(t=o.stateNode,t._visibility=f?t._visibility&-2:t._visibility|1,f&&(l===null||A||Pt||qo||fa(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{y=A.stateNode;var Q=A.memoizedProps.style,K=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;y.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(pe){uo(A,A.return,pe)}}}else if(t.tag===6){if(l===null){A=t;try{A.stateNode.nodeValue=f?"":A.memoizedProps}catch(pe){uo(A,A.return,pe)}}}else if(t.tag===18){if(l===null){A=t;try{var q=A.stateNode;f?pv(q,!0):pv(A.stateNode,!1)}catch(pe){uo(A,A.return,pe)}}}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}c&4&&(c=o.updateQueue,c!==null&&(l=c.retryQueue,l!==null&&(c.retryQueue=null,Kc(o,l))));break;case 19:$n(t,o),Nn(o),c&4&&(c=o.updateQueue,c!==null&&(o.updateQueue=null,Kc(o,c)));break;case 30:break;case 21:break;default:$n(t,o),Nn(o)}}function Nn(o){var t=o.flags;if(t&2){try{for(var l,c=o.return;c!==null;){if(vk(c)){l=c;break}c=c.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var f=l.stateNode,b=Uu(o);Fc(o,b,f);break;case 5:var k=l.stateNode;l.flags&32&&(Na(k,""),l.flags&=-33);var y=Uu(o);Fc(o,y,k);break;case 3:case 4:var A=l.stateNode.containerInfo,U=Uu(o);Hu(o,U,A);break;default:throw Error(i(161))}}catch(Y){uo(o,o.return,Y)}o.flags&=-3}t&4096&&(o.flags&=-4097)}function Tk(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var t=o;Tk(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),o=o.sibling}}function Yt(o,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xk(o,t.alternate,t),t=t.sibling}function fa(o){for(o=o.child;o!==null;){var t=o;switch(t.tag){case 0:case 11:case 14:case 15:zr(4,t,t.return),fa(t);break;case 1:Et(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&pk(t,t.return,l),fa(t);break;case 27:hi(t.stateNode);case 26:case 5:Et(t,t.return),fa(t);break;case 22:t.memoizedState===null&&fa(t);break;case 30:fa(t);break;default:fa(t)}o=o.sibling}}function Jt(o,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var c=t.alternate,f=o,b=t,k=b.flags;switch(b.tag){case 0:case 11:case 15:Jt(f,b,l),ai(4,b);break;case 1:if(Jt(f,b,l),c=b,f=c.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(U){uo(c,c.return,U)}if(c=b,f=c.updateQueue,f!==null){var y=c.stateNode;try{var A=f.shared.hiddenCallbacks;if(A!==null)for(f.shared.hiddenCallbacks=null,f=0;f<A.length;f++)rp(A[f],y)}catch(U){uo(c,c.return,U)}}l&&k&64&&hk(b),li(b,b.return);break;case 27:gk(b);case 26:case 5:Jt(f,b,l),l&&c===null&&k&4&&kk(b),li(b,b.return);break;case 12:Jt(f,b,l);break;case 31:Jt(f,b,l),l&&k&4&&zk(f,b);break;case 13:Jt(f,b,l),l&&k&4&&jk(f,b);break;case 22:b.memoizedState===null&&Jt(f,b,l),li(b,b.return);break;case 30:break;default:Jt(f,b,l)}t=t.sibling}}function Ku(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&&Zl(l))}function Vu(o,t){o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Zl(o))}function yt(o,t,l,c){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ak(o,t,l,c),t=t.sibling}function Ak(o,t,l,c){var f=t.flags;switch(t.tag){case 0:case 11:case 15:yt(o,t,l,c),f&2048&&ai(9,t);break;case 1:yt(o,t,l,c);break;case 3:yt(o,t,l,c),f&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Zl(o)));break;case 12:if(f&2048){yt(o,t,l,c),o=t.stateNode;try{var b=t.memoizedProps,k=b.id,y=b.onPostCommit;typeof y=="function"&&y(k,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(A){uo(t,t.return,A)}}else yt(o,t,l,c);break;case 31:yt(o,t,l,c);break;case 13:yt(o,t,l,c);break;case 23:break;case 22:b=t.stateNode,k=t.alternate,t.memoizedState!==null?b._visibility&2?yt(o,t,l,c):ii(o,t):b._visibility&2?yt(o,t,l,c):(b._visibility|=2,el(o,t,l,c,(t.subtreeFlags&10256)!==0||!1)),f&2048&&Ku(k,t);break;case 24:yt(o,t,l,c),f&2048&&Vu(t.alternate,t);break;default:yt(o,t,l,c)}}function el(o,t,l,c,f){for(f=f&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var b=o,k=t,y=l,A=c,U=k.flags;switch(k.tag){case 0:case 11:case 15:el(b,k,y,A,f),ai(8,k);break;case 23:break;case 22:var Y=k.stateNode;k.memoizedState!==null?Y._visibility&2?el(b,k,y,A,f):ii(b,k):(Y._visibility|=2,el(b,k,y,A,f)),f&&U&2048&&Ku(k.alternate,k);break;case 24:el(b,k,y,A,f),f&&U&2048&&Vu(k.alternate,k);break;default:el(b,k,y,A,f)}t=t.sibling}}function ii(o,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=o,c=t,f=c.flags;switch(c.tag){case 22:ii(l,c),f&2048&&Ku(c.alternate,c);break;case 24:ii(l,c),f&2048&&Vu(c.alternate,c);break;default:ii(l,c)}t=t.sibling}}var ci=8192;function ol(o,t,l){if(o.subtreeFlags&ci)for(o=o.child;o!==null;)Ck(o,t,l),o=o.sibling}function Ck(o,t,l){switch(o.tag){case 26:ol(o,t,l),o.flags&ci&&o.memoizedState!==null&&yz(l,xt,o.memoizedState,o.memoizedProps);break;case 5:ol(o,t,l);break;case 3:case 4:var c=xt;xt=ts(o.stateNode.containerInfo),ol(o,t,l),xt=c;break;case 22:o.memoizedState===null&&(c=o.alternate,c!==null&&c.memoizedState!==null?(c=ci,ci=16777216,ol(o,t,l),ci=c):ol(o,t,l));break;default:ol(o,t,l)}}function Ek(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 si(o){var t=o.deletions;if((o.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var c=t[l];tn=c,Ok(c,o)}Ek(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)Lk(o),o=o.sibling}function Lk(o){switch(o.tag){case 0:case 11:case 15:si(o),o.flags&2048&&zr(9,o,o.return);break;case 3:si(o);break;case 12:si(o);break;case 22:var t=o.stateNode;o.memoizedState!==null&&t._visibility&2&&(o.return===null||o.return.tag!==13)?(t._visibility&=-3,Vc(o)):si(o);break;default:si(o)}}function Vc(o){var t=o.deletions;if((o.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var c=t[l];tn=c,Ok(c,o)}Ek(o)}for(o=o.child;o!==null;){switch(t=o,t.tag){case 0:case 11:case 15:zr(8,t,t.return),Vc(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Vc(t));break;default:Vc(t)}o=o.sibling}}function Ok(o,t){for(;tn!==null;){var l=tn;switch(l.tag){case 0:case 11:case 15:zr(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var c=l.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Zl(l.memoizedState.cache)}if(c=l.child,c!==null)c.return=l,tn=c;else e:for(l=o;tn!==null;){c=tn;var f=c.sibling,b=c.return;if(yk(c),c===l){tn=null;break e}if(f!==null){f.return=b,tn=f;break e}tn=b}}}var D2={getCacheForType:function(o){var t=sn(Fo),l=t.data.get(o);return l===void 0&&(l=o(),t.data.set(o,l)),l},cacheSignal:function(){return sn(Fo).controller.signal}},M2=typeof WeakMap=="function"?WeakMap:Map,co=0,go=null,qe=null,Ye=0,so=0,Pn=null,jr=!1,nl=!1,qu=!1,Xt=0,Bo=0,Sr=0,ba=0,Zu=0,Gn=0,tl=0,di=null,Bn=null,Pu=!1,qc=0,$k=0,Zc=1/0,Pc=null,Tr=null,Wo=0,Ar=null,rl=null,Wt=0,Gu=0,Yu=null,Nk=null,ui=0,Ju=null;function Yn(){return(co&2)!==0&&Ye!==0?Ye&-Ye:M.T!==null?nf():Jm()}function Bk(){if(Gn===0)if((Ye&536870912)===0||We){var o=oc;oc<<=1,(oc&3932160)===0&&(oc=262144),Gn=o}else Gn=536870912;return o=qn.current,o!==null&&(o.flags|=32),Gn}function Rn(o,t,l){(o===go&&(so===2||so===9)||o.cancelPendingCommit!==null)&&(al(o,0),Cr(o,Ye,Gn,!1)),Ol(o,l),((co&2)===0||o!==go)&&(o===go&&((co&2)===0&&(ba|=l),Bo===4&&Cr(o,Ye,Gn,!1)),Lt(o))}function Rk(o,t,l){if((co&6)!==0)throw Error(i(327));var c=!l&&(t&127)===0&&(t&o.expiredLanes)===0||Ll(o,t),f=c?H2(o,t):Wu(o,t,!0),b=c;do{if(f===0){nl&&!c&&Cr(o,t,0,!1);break}else{if(l=o.current.alternate,b&&!I2(l)){f=Wu(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 y=o;f=di;var A=y.current.memoizedState.isDehydrated;if(A&&(al(y,k).flags|=256),k=Wu(y,k,!1),k!==2){if(qu&&!A){y.errorRecoveryDisabledLanes|=b,ba|=b,f=4;break e}b=Bn,Bn=f,b!==null&&(Bn===null?Bn=b:Bn.push.apply(Bn,b))}f=k}if(b=!1,f!==2)continue}}if(f===1){al(o,0),Cr(o,t,0,!0);break}e:{switch(c=o,b=f,b){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Cr(c,t,Gn,!jr);break e;case 2:Bn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(f=qc+300-te(),10<f)){if(Cr(c,t,Gn,!jr),tc(c,0,!0)!==0)break e;Wt=t,c.timeoutHandle=bv(Dk.bind(null,c,l,Bn,Pc,Pu,t,Gn,ba,tl,jr,b,"Throttled",-0,0),f);break e}Dk(c,l,Bn,Pc,Pu,t,Gn,ba,tl,jr,b,null,-0,0)}}break}while(!0);Lt(o)}function Dk(o,t,l,c,f,b,k,y,A,U,Y,Q,K,q){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:Dt},Ck(t,b,Q);var pe=(b&62914560)===b?qc-te():(b&4194048)===b?$k-te():0;if(pe=wz(Q,pe),pe!==null){Wt=b,o.cancelPendingCommit=pe(qk.bind(null,o,t,b,l,c,f,k,y,A,Y,Q,null,K,q)),Cr(o,b,k,!U);return}}qk(o,t,b,l,c,f,k,y,A)}function I2(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 c=0;c<l.length;c++){var f=l[c],b=f.getSnapshot;f=f.value;try{if(!Kn(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 Cr(o,t,l,c){t&=~Zu,t&=~ba,o.suspendedLanes|=t,o.pingedLanes&=~t,c&&(o.warmLanes|=t),c=o.expirationTimes;for(var f=t;0<f;){var b=31-wn(f),k=1<<b;c[b]=-1,f&=~k}l!==0&&Pm(o,l,t)}function Gc(){return(co&6)===0?(fi(0),!1):!0}function Xu(){if(qe!==null){if(so===0)var o=qe.return;else o=qe,Ht=ra=null,bu(o),Ya=null,Gl=0,o=qe;for(;o!==null;)mk(o.alternate,o),o=o.return;qe=null}}function al(o,t){var l=o.timeoutHandle;l!==-1&&(o.timeoutHandle=-1,az(l)),l=o.cancelPendingCommit,l!==null&&(o.cancelPendingCommit=null,l()),Wt=0,Xu(),go=o,qe=l=It(o.current,null),Ye=t,so=0,Pn=null,jr=!1,nl=Ll(o,t),qu=!1,tl=Gn=Zu=ba=Sr=Bo=0,Bn=di=null,Pu=!1,(t&8)!==0&&(t|=t&32);var c=o.entangledLanes;if(c!==0)for(o=o.entanglements,c&=t;0<c;){var f=31-wn(c),b=1<<f;t|=o[f],c&=~b}return Xt=t,hc(),l}function Mk(o,t){Me=null,M.H=ni,t===Ga||t===wc?(t=ep(),so=3):t===ou?(t=ep(),so=4):so=t===Cu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Pn=t,qe===null&&(Bo=1,Dc(o,st(t,o.current)))}function Ik(){var o=qn.current;return o===null?!0:(Ye&4194048)===Ye?bt===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?o===bt:!1}function Uk(){var o=M.H;return M.H=ni,o===null?ni:o}function Hk(){var o=M.A;return M.A=D2,o}function Yc(){Bo=4,jr||(Ye&4194048)!==Ye&&qn.current!==null||(nl=!0),(Sr&134217727)===0&&(ba&134217727)===0||go===null||Cr(go,Ye,Gn,!1)}function Wu(o,t,l){var c=co;co|=2;var f=Uk(),b=Hk();(go!==o||Ye!==t)&&(Pc=null,al(o,t)),t=!1;var k=Bo;e:do try{if(so!==0&&qe!==null){var y=qe,A=Pn;switch(so){case 8:Xu(),k=6;break e;case 3:case 2:case 9:case 6:qn.current===null&&(t=!0);var U=so;if(so=0,Pn=null,ll(o,y,A,U),l&&nl){k=0;break e}break;default:U=so,so=0,Pn=null,ll(o,y,A,U)}}U2(),k=Bo;break}catch(Y){Mk(o,Y)}while(!0);return t&&o.shellSuspendCounter++,Ht=ra=null,co=c,M.H=f,M.A=b,qe===null&&(go=null,Ye=0,hc()),k}function U2(){for(;qe!==null;)Fk(qe)}function H2(o,t){var l=co;co|=2;var c=Uk(),f=Hk();go!==o||Ye!==t?(Pc=null,Zc=te()+500,al(o,t)):nl=Ll(o,t);e:do try{if(so!==0&&qe!==null){t=qe;var b=Pn;o:switch(so){case 1:so=0,Pn=null,ll(o,t,b,1);break;case 2:case 9:if(Wh(b)){so=0,Pn=null,Kk(t);break}t=function(){so!==2&&so!==9||go!==o||(so=7),Lt(o)},b.then(t,t);break e;case 3:so=7;break e;case 4:so=5;break e;case 7:Wh(b)?(so=0,Pn=null,Kk(t)):(so=0,Pn=null,ll(o,t,b,7));break;case 5:var k=null;switch(qe.tag){case 26:k=qe.memoizedState;case 5:case 27:var y=qe;if(k?Av(k):y.stateNode.complete){so=0,Pn=null;var A=y.sibling;if(A!==null)qe=A;else{var U=y.return;U!==null?(qe=U,Jc(U)):qe=null}break o}}so=0,Pn=null,ll(o,t,b,5);break;case 6:so=0,Pn=null,ll(o,t,b,6);break;case 8:Xu(),Bo=6;break e;default:throw Error(i(462))}}F2();break}catch(Y){Mk(o,Y)}while(!0);return Ht=ra=null,M.H=c,M.A=f,co=l,qe!==null?0:(go=null,Ye=0,hc(),Bo)}function F2(){for(;qe!==null&&!B();)Fk(qe)}function Fk(o){var t=fk(o.alternate,o,Xt);o.memoizedProps=o.pendingProps,t===null?Jc(o):qe=t}function Kk(o){var t=o,l=t.alternate;switch(t.tag){case 15:case 0:t=lk(l,t,t.pendingProps,t.type,void 0,Ye);break;case 11:t=lk(l,t,t.pendingProps,t.type.render,t.ref,Ye);break;case 5:bu(t);default:mk(l,t),t=qe=Hh(t,Xt),t=fk(l,t,Xt)}o.memoizedProps=o.pendingProps,t===null?Jc(o):qe=t}function ll(o,t,l,c){Ht=ra=null,bu(t),Ya=null,Gl=0;var f=t.return;try{if(E2(o,f,t,l,Ye)){Bo=1,Dc(o,st(l,o.current)),qe=null;return}}catch(b){if(f!==null)throw qe=f,b;Bo=1,Dc(o,st(l,o.current)),qe=null;return}t.flags&32768?(We||c===1?o=!0:nl||(Ye&536870912)!==0?o=!1:(jr=o=!0,(c===2||c===9||c===3||c===6)&&(c=qn.current,c!==null&&c.tag===13&&(c.flags|=16384))),Vk(t,o)):Jc(t)}function Jc(o){var t=o;do{if((t.flags&32768)!==0){Vk(t,jr);return}o=t.return;var l=$2(t.alternate,t,Xt);if(l!==null){qe=l;return}if(t=t.sibling,t!==null){qe=t;return}qe=t=o}while(t!==null);Bo===0&&(Bo=5)}function Vk(o,t){do{var l=N2(o.alternate,o);if(l!==null){l.flags&=32767,qe=l;return}if(l=o.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(o=o.sibling,o!==null)){qe=o;return}qe=o=l}while(o!==null);Bo=6,qe=null}function qk(o,t,l,c,f,b,k,y,A){o.cancelPendingCommit=null;do Xc();while(Wo!==0);if((co&6)!==0)throw Error(i(327));if(t!==null){if(t===o.current)throw Error(i(177));if(b=t.lanes|t.childLanes,b|=Ud,xw(o,l,b,k,y,A),o===go&&(qe=go=null,Ye=0),rl=t,Ar=o,Wt=l,Gu=b,Yu=f,Nk=c,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,Z2(eo,function(){return Jk(),null})):(o.callbackNode=null,o.callbackPriority=0),c=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||c){c=M.T,M.T=null,f=G.p,G.p=2,k=co,co|=4;try{B2(o,t,l)}finally{co=k,G.p=f,M.T=c}}Wo=1,Zk(),Pk(),Gk()}}function Zk(){if(Wo===1){Wo=0;var o=Ar,t=rl,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var c=G.p;G.p=2;var f=co;co|=4;try{Sk(t,o);var b=uf,k=Oh(o.containerInfo),y=b.focusedElem,A=b.selectionRange;if(k!==y&&y&&y.ownerDocument&&Lh(y.ownerDocument.documentElement,y)){if(A!==null&&Bd(y)){var U=A.start,Y=A.end;if(Y===void 0&&(Y=U),"selectionStart"in y)y.selectionStart=U,y.selectionEnd=Math.min(Y,y.value.length);else{var Q=y.ownerDocument||document,K=Q&&Q.defaultView||window;if(K.getSelection){var q=K.getSelection(),pe=y.textContent.length,Ae=Math.min(A.start,pe),vo=A.end===void 0?Ae:Math.min(A.end,pe);!q.extend&&Ae>vo&&(k=vo,vo=Ae,Ae=k);var R=Eh(y,Ae),L=Eh(y,vo);if(R&&L&&(q.rangeCount!==1||q.anchorNode!==R.node||q.anchorOffset!==R.offset||q.focusNode!==L.node||q.focusOffset!==L.offset)){var I=Q.createRange();I.setStart(R.node,R.offset),q.removeAllRanges(),Ae>vo?(q.addRange(I),q.extend(L.node,L.offset)):(I.setEnd(L.node,L.offset),q.addRange(I))}}}}for(Q=[],q=y;q=q.parentNode;)q.nodeType===1&&Q.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<Q.length;y++){var J=Q[y];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}ss=!!df,uf=df=null}finally{co=f,G.p=c,M.T=l}}o.current=t,Wo=2}}function Pk(){if(Wo===2){Wo=0;var o=Ar,t=rl,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var c=G.p;G.p=2;var f=co;co|=4;try{xk(o,t.alternate,t)}finally{co=f,G.p=c,M.T=l}}Wo=3}}function Gk(){if(Wo===4||Wo===3){Wo=0,F();var o=Ar,t=rl,l=Wt,c=Nk;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Wo=5:(Wo=0,rl=Ar=null,Yk(o,o.pendingLanes));var f=o.pendingLanes;if(f===0&&(Tr=null),pd(l),t=t.stateNode,an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot(Yr,t,void 0,(t.current.flags&128)===128)}catch{}if(c!==null){t=M.T,f=G.p,G.p=2,M.T=null;try{for(var b=o.onRecoverableError,k=0;k<c.length;k++){var y=c[k];b(y.value,{componentStack:y.stack})}}finally{M.T=t,G.p=f}}(Wt&3)!==0&&Xc(),Lt(o),f=o.pendingLanes,(l&261930)!==0&&(f&42)!==0?o===Ju?ui++:(ui=0,Ju=o):ui=0,fi(0)}}function Yk(o,t){(o.pooledCacheLanes&=t)===0&&(t=o.pooledCache,t!=null&&(o.pooledCache=null,Zl(t)))}function Xc(){return Zk(),Pk(),Gk(),Jk()}function Jk(){if(Wo!==5)return!1;var o=Ar,t=Gu;Gu=0;var l=pd(Wt),c=M.T,f=G.p;try{G.p=32>l?32:l,M.T=null,l=Yu,Yu=null;var b=Ar,k=Wt;if(Wo=0,rl=Ar=null,Wt=0,(co&6)!==0)throw Error(i(331));var y=co;if(co|=4,Lk(b.current),Ak(b,b.current,k,l),co=y,fi(0,!1),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot(Yr,b)}catch{}return!0}finally{G.p=f,M.T=c,Yk(o,t)}}function Xk(o,t,l){t=st(l,t),t=Au(o.stateNode,t,2),o=xr(o,t,2),o!==null&&(Ol(o,2),Lt(o))}function uo(o,t,l){if(o.tag===3)Xk(o,o,l);else for(;t!==null;){if(t.tag===3){Xk(t,o,l);break}else if(t.tag===1){var c=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Tr===null||!Tr.has(c))){o=st(l,o),l=Wp(2),c=xr(t,l,2),c!==null&&(Qp(l,c,t,o),Ol(c,2),Lt(c));break}}t=t.return}}function Qu(o,t,l){var c=o.pingCache;if(c===null){c=o.pingCache=new M2;var f=new Set;c.set(t,f)}else f=c.get(t),f===void 0&&(f=new Set,c.set(t,f));f.has(l)||(qu=!0,f.add(l),o=K2.bind(null,o,t,l),t.then(o,o))}function K2(o,t,l){var c=o.pingCache;c!==null&&c.delete(t),o.pingedLanes|=o.suspendedLanes&l,o.warmLanes&=~l,go===o&&(Ye&l)===l&&(Bo===4||Bo===3&&(Ye&62914560)===Ye&&300>te()-qc?(co&2)===0&&al(o,0):Zu|=l,tl===Ye&&(tl=0)),Lt(o)}function Wk(o,t){t===0&&(t=Zm()),o=oa(o,t),o!==null&&(Ol(o,t),Lt(o))}function V2(o){var t=o.memoizedState,l=0;t!==null&&(l=t.retryLane),Wk(o,l)}function q2(o,t){var l=0;switch(o.tag){case 31:case 13:var c=o.stateNode,f=o.memoizedState;f!==null&&(l=f.retryLane);break;case 19:c=o.stateNode;break;case 22:c=o.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(t),Wk(o,l)}function Z2(o,t){return lo(o,t)}var Wc=null,il=null,ef=!1,Qc=!1,of=!1,Er=0;function Lt(o){o!==il&&o.next===null&&(il===null?Wc=il=o:il=il.next=o),Qc=!0,ef||(ef=!0,G2())}function fi(o,t){if(!of&&Qc){of=!0;do for(var l=!1,c=Wc;c!==null;){if(o!==0){var f=c.pendingLanes;if(f===0)var b=0;else{var k=c.suspendedLanes,y=c.pingedLanes;b=(1<<31-wn(42|o)+1)-1,b&=f&~(k&~y),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(l=!0,nv(c,b))}else b=Ye,b=tc(c,c===go?b:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(b&3)===0||Ll(c,b)||(l=!0,nv(c,b));c=c.next}while(l);of=!1}}function P2(){Qk()}function Qk(){Qc=ef=!1;var o=0;Er!==0&&rz()&&(o=Er);for(var t=te(),l=null,c=Wc;c!==null;){var f=c.next,b=ev(c,t);b===0?(c.next=null,l===null?Wc=f:l.next=f,f===null&&(il=l)):(l=c,(o!==0||(b&3)!==0)&&(Qc=!0)),c=f}Wo!==0&&Wo!==5||fi(o),Er!==0&&(Er=0)}function ev(o,t){for(var l=o.suspendedLanes,c=o.pingedLanes,f=o.expirationTimes,b=o.pendingLanes&-62914561;0<b;){var k=31-wn(b),y=1<<k,A=f[k];A===-1?((y&l)===0||(y&c)!==0)&&(f[k]=_w(y,t)):A<=t&&(o.expiredLanes|=y),b&=~y}if(t=go,l=Ye,l=tc(o,o===t?l:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),c=o.callbackNode,l===0||o===t&&(so===2||so===9)||o.cancelPendingCommit!==null)return c!==null&&c!==null&&T(c),o.callbackNode=null,o.callbackPriority=0;if((l&3)===0||Ll(o,l)){if(t=l&-l,t===o.callbackPriority)return t;switch(c!==null&&T(c),pd(l)){case 2:case 8:l=ve;break;case 32:l=eo;break;case 268435456:l=on;break;default:l=eo}return c=ov.bind(null,o),l=lo(l,c),o.callbackPriority=t,o.callbackNode=l,t}return c!==null&&c!==null&&T(c),o.callbackPriority=2,o.callbackNode=null,2}function ov(o,t){if(Wo!==0&&Wo!==5)return o.callbackNode=null,o.callbackPriority=0,null;var l=o.callbackNode;if(Xc()&&o.callbackNode!==l)return null;var c=Ye;return c=tc(o,o===go?c:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),c===0?null:(Rk(o,c,t),ev(o,te()),o.callbackNode!=null&&o.callbackNode===l?ov.bind(null,o):null)}function nv(o,t){if(Xc())return null;Rk(o,t,!0)}function G2(){lz(function(){(co&6)!==0?lo(oe,P2):Qk()})}function nf(){if(Er===0){var o=Za;o===0&&(o=ec,ec<<=1,(ec&261888)===0&&(ec=256)),Er=o}return Er}function tv(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:ic(""+o)}function rv(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 Y2(o,t,l,c,f){if(t==="submit"&&l&&l.stateNode===f){var b=tv((f[En]||null).action),k=c.submitter;k&&(t=(t=k[En]||null)?tv(t.formAction):k.getAttribute("formAction"),t!==null&&(b=t,k=null));var y=new uc("action","action",null,c,f);o.push({event:y,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Er!==0){var A=k?rv(f,k):new FormData(f);yu(l,{pending:!0,data:A,method:f.method,action:b},null,A)}}else typeof b=="function"&&(y.preventDefault(),A=k?rv(f,k):new FormData(f),yu(l,{pending:!0,data:A,method:f.method,action:b},b,A))},currentTarget:f}]})}}for(var tf=0;tf<Id.length;tf++){var rf=Id[tf],J2=rf.toLowerCase(),X2=rf[0].toUpperCase()+rf.slice(1);_t(J2,"on"+X2)}_t(Bh,"onAnimationEnd"),_t(Rh,"onAnimationIteration"),_t(Dh,"onAnimationStart"),_t("dblclick","onDoubleClick"),_t("focusin","onFocus"),_t("focusout","onBlur"),_t(b2,"onTransitionRun"),_t(m2,"onTransitionStart"),_t(h2,"onTransitionCancel"),_t(Mh,"onTransitionEnd"),Oa("onMouseEnter",["mouseout","mouseover"]),Oa("onMouseLeave",["mouseout","mouseover"]),Oa("onPointerEnter",["pointerout","pointerover"]),Oa("onPointerLeave",["pointerout","pointerover"]),Xr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bi="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(" "),W2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bi));function av(o,t){t=(t&4)!==0;for(var l=0;l<o.length;l++){var c=o[l],f=c.event;c=c.listeners;e:{var b=void 0;if(t)for(var k=c.length-1;0<=k;k--){var y=c[k],A=y.instance,U=y.currentTarget;if(y=y.listener,A!==b&&f.isPropagationStopped())break e;b=y,f.currentTarget=U;try{b(f)}catch(Y){mc(Y)}f.currentTarget=null,b=A}else for(k=0;k<c.length;k++){if(y=c[k],A=y.instance,U=y.currentTarget,y=y.listener,A!==b&&f.isPropagationStopped())break e;b=y,f.currentTarget=U;try{b(f)}catch(Y){mc(Y)}f.currentTarget=null,b=A}}}}function Ze(o,t){var l=t[kd];l===void 0&&(l=t[kd]=new Set);var c=o+"__bubble";l.has(c)||(lv(t,o,2,!1),l.add(c))}function af(o,t,l){var c=0;t&&(c|=4),lv(l,o,c,t)}var es="_reactListening"+Math.random().toString(36).slice(2);function lf(o){if(!o[es]){o[es]=!0,Qm.forEach(function(l){l!=="selectionchange"&&(W2.has(l)||af(l,!1,o),af(l,!0,o))});var t=o.nodeType===9?o:o.ownerDocument;t===null||t[es]||(t[es]=!0,af("selectionchange",!1,t))}}function lv(o,t,l,c){switch(Bv(t)){case 2:var f=Sz;break;case 8:f=Tz;break;default:f=yf}l=f.bind(null,t,l,o),f=void 0,!Sd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(f=!0),c?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 cf(o,t,l,c,f){var b=c;if((t&1)===0&&(t&2)===0&&c!==null)e:for(;;){if(c===null)return;var k=c.tag;if(k===3||k===4){var y=c.stateNode.containerInfo;if(y===f)break;if(k===4)for(k=c.return;k!==null;){var A=k.tag;if((A===3||A===4)&&k.stateNode.containerInfo===f)return;k=k.return}for(;y!==null;){if(k=Ca(y),k===null)return;if(A=k.tag,A===5||A===6||A===26||A===27){c=b=k;continue e}y=y.parentNode}}c=c.return}uh(function(){var U=b,Y=zd(l),Q=[];e:{var K=Ih.get(o);if(K!==void 0){var q=uc,pe=o;switch(o){case"keypress":if(sc(l)===0)break e;case"keydown":case"keyup":q=qw;break;case"focusin":pe="focus",q=Ed;break;case"focusout":pe="blur",q=Ed;break;case"beforeblur":case"afterblur":q=Ed;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":q=mh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=$w;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Gw;break;case Bh:case Rh:case Dh:q=Rw;break;case Mh:q=Jw;break;case"scroll":case"scrollend":q=Lw;break;case"wheel":q=Ww;break;case"copy":case"cut":case"paste":q=Mw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=ph;break;case"toggle":case"beforetoggle":q=e2}var Ae=(t&4)!==0,vo=!Ae&&(o==="scroll"||o==="scrollend"),R=Ae?K!==null?K+"Capture":null:K;Ae=[];for(var L=U,I;L!==null;){var J=L;if(I=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||I===null||R===null||(J=Bl(L,R),J!=null&&Ae.push(mi(L,J,I))),vo)break;L=L.return}0<Ae.length&&(K=new q(K,pe,null,l,Y),Q.push({event:K,listeners:Ae}))}}if((t&7)===0){e:{if(K=o==="mouseover"||o==="pointerover",q=o==="mouseout"||o==="pointerout",K&&l!==wd&&(pe=l.relatedTarget||l.fromElement)&&(Ca(pe)||pe[Aa]))break e;if((q||K)&&(K=Y.window===Y?Y:(K=Y.ownerDocument)?K.defaultView||K.parentWindow:window,q?(pe=l.relatedTarget||l.toElement,q=U,pe=pe?Ca(pe):null,pe!==null&&(vo=d(pe),Ae=pe.tag,pe!==vo||Ae!==5&&Ae!==27&&Ae!==6)&&(pe=null)):(q=null,pe=U),q!==pe)){if(Ae=mh,J="onMouseLeave",R="onMouseEnter",L="mouse",(o==="pointerout"||o==="pointerover")&&(Ae=ph,J="onPointerLeave",R="onPointerEnter",L="pointer"),vo=q==null?K:Nl(q),I=pe==null?K:Nl(pe),K=new Ae(J,L+"leave",q,l,Y),K.target=vo,K.relatedTarget=I,J=null,Ca(Y)===U&&(Ae=new Ae(R,L+"enter",pe,l,Y),Ae.target=I,Ae.relatedTarget=vo,J=Ae),vo=J,q&&pe)o:{for(Ae=Q2,R=q,L=pe,I=0,J=R;J;J=Ae(J))I++;J=0;for(var ze=L;ze;ze=Ae(ze))J++;for(;0<I-J;)R=Ae(R),I--;for(;0<J-I;)L=Ae(L),J--;for(;I--;){if(R===L||L!==null&&R===L.alternate){Ae=R;break o}R=Ae(R),L=Ae(L)}Ae=null}else Ae=null;q!==null&&iv(Q,K,q,Ae,!1),pe!==null&&vo!==null&&iv(Q,vo,pe,Ae,!0)}}e:{if(K=U?Nl(U):window,q=K.nodeName&&K.nodeName.toLowerCase(),q==="select"||q==="input"&&K.type==="file")var no=zh;else if(yh(K))if(jh)no=d2;else{no=c2;var ge=i2}else q=K.nodeName,!q||q.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?U&&yd(U.elementType)&&(no=zh):no=s2;if(no&&(no=no(o,U))){wh(Q,no,l,Y);break e}ge&&ge(o,K,U),o==="focusout"&&U&&K.type==="number"&&U.memoizedProps.value!=null&&xd(K,"number",K.value)}switch(ge=U?Nl(U):window,o){case"focusin":(yh(ge)||ge.contentEditable==="true")&&(Ma=ge,Rd=U,Kl=null);break;case"focusout":Kl=Rd=Ma=null;break;case"mousedown":Dd=!0;break;case"contextmenu":case"mouseup":case"dragend":Dd=!1,$h(Q,l,Y);break;case"selectionchange":if(f2)break;case"keydown":case"keyup":$h(Q,l,Y)}var Ie;if(Od)e:{switch(o){case"compositionstart":var Je="onCompositionStart";break e;case"compositionend":Je="onCompositionEnd";break e;case"compositionupdate":Je="onCompositionUpdate";break e}Je=void 0}else Da?_h(o,l)&&(Je="onCompositionEnd"):o==="keydown"&&l.keyCode===229&&(Je="onCompositionStart");Je&&(kh&&l.locale!=="ko"&&(Da||Je!=="onCompositionStart"?Je==="onCompositionEnd"&&Da&&(Ie=fh()):(mr=Y,Td="value"in mr?mr.value:mr.textContent,Da=!0)),ge=os(U,Je),0<ge.length&&(Je=new hh(Je,o,null,l,Y),Q.push({event:Je,listeners:ge}),Ie?Je.data=Ie:(Ie=xh(l),Ie!==null&&(Je.data=Ie)))),(Ie=n2?t2(o,l):r2(o,l))&&(Je=os(U,"onBeforeInput"),0<Je.length&&(ge=new hh("onBeforeInput","beforeinput",null,l,Y),Q.push({event:ge,listeners:Je}),ge.data=Ie)),Y2(Q,o,U,l,Y)}av(Q,t)})}function mi(o,t,l){return{instance:o,listener:t,currentTarget:l}}function os(o,t){for(var l=t+"Capture",c=[];o!==null;){var f=o,b=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||b===null||(f=Bl(o,l),f!=null&&c.unshift(mi(o,f,b)),f=Bl(o,t),f!=null&&c.push(mi(o,f,b))),o.tag===3)return c;o=o.return}return[]}function Q2(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function iv(o,t,l,c,f){for(var b=t._reactName,k=[];l!==null&&l!==c;){var y=l,A=y.alternate,U=y.stateNode;if(y=y.tag,A!==null&&A===c)break;y!==5&&y!==26&&y!==27||U===null||(A=U,f?(U=Bl(l,b),U!=null&&k.unshift(mi(l,U,A))):f||(U=Bl(l,b),U!=null&&k.push(mi(l,U,A)))),l=l.return}k.length!==0&&o.push({event:t,listeners:k})}var ez=/\r\n?/g,oz=/\u0000|\uFFFD/g;function cv(o){return(typeof o=="string"?o:""+o).replace(ez,`
10
- `).replace(oz,"")}function sv(o,t){return t=cv(t),cv(o)===t}function ko(o,t,l,c,f,b){switch(l){case"children":typeof c=="string"?t==="body"||t==="textarea"&&c===""||Na(o,c):(typeof c=="number"||typeof c=="bigint")&&t!=="body"&&Na(o,""+c);break;case"className":ac(o,"class",c);break;case"tabIndex":ac(o,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":ac(o,l,c);break;case"style":sh(o,c,b);break;case"data":if(t!=="object"){ac(o,"data",c);break}case"src":case"href":if(c===""&&(t!=="a"||l!=="href")){o.removeAttribute(l);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){o.removeAttribute(l);break}c=ic(""+c),o.setAttribute(l,c);break;case"action":case"formAction":if(typeof c=="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"&&ko(o,t,"name",f.name,f,null),ko(o,t,"formEncType",f.formEncType,f,null),ko(o,t,"formMethod",f.formMethod,f,null),ko(o,t,"formTarget",f.formTarget,f,null)):(ko(o,t,"encType",f.encType,f,null),ko(o,t,"method",f.method,f,null),ko(o,t,"target",f.target,f,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){o.removeAttribute(l);break}c=ic(""+c),o.setAttribute(l,c);break;case"onClick":c!=null&&(o.onclick=Dt);break;case"onScroll":c!=null&&Ze("scroll",o);break;case"onScrollEnd":c!=null&&Ze("scrollend",o);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(f.children!=null)throw Error(i(60));o.innerHTML=l}}break;case"multiple":o.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":o.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){o.removeAttribute("xlink:href");break}l=ic(""+c),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":c!=null&&typeof c!="function"&&typeof c!="symbol"?o.setAttribute(l,""+c):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":c&&typeof c!="function"&&typeof c!="symbol"?o.setAttribute(l,""):o.removeAttribute(l);break;case"capture":case"download":c===!0?o.setAttribute(l,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?o.setAttribute(l,c):o.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?o.setAttribute(l,c):o.removeAttribute(l);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?o.removeAttribute(l):o.setAttribute(l,c);break;case"popover":Ze("beforetoggle",o),Ze("toggle",o),rc(o,"popover",c);break;case"xlinkActuate":Rt(o,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Rt(o,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Rt(o,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Rt(o,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Rt(o,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Rt(o,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Rt(o,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Rt(o,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Rt(o,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":rc(o,"is",c);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Cw.get(l)||l,rc(o,l,c))}}function sf(o,t,l,c,f,b){switch(l){case"style":sh(o,c,b);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(f.children!=null)throw Error(i(60));o.innerHTML=l}}break;case"children":typeof c=="string"?Na(o,c):(typeof c=="number"||typeof c=="bigint")&&Na(o,""+c);break;case"onScroll":c!=null&&Ze("scroll",o);break;case"onScrollEnd":c!=null&&Ze("scrollend",o);break;case"onClick":c!=null&&(o.onclick=Dt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!eh.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[En]||null,b=b!=null?b[l]:null,typeof b=="function"&&o.removeEventListener(t,b,f),typeof c=="function")){typeof b!="function"&&b!==null&&(l in o?o[l]=null:o.hasAttribute(l)&&o.removeAttribute(l)),o.addEventListener(t,c,f);break e}l in o?o[l]=c:c===!0?o.setAttribute(l,""):rc(o,l,c)}}}function un(o,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ze("error",o),Ze("load",o);var c=!1,f=!1,b;for(b in l)if(l.hasOwnProperty(b)){var k=l[b];if(k!=null)switch(b){case"src":c=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:ko(o,t,b,k,l,null)}}f&&ko(o,t,"srcSet",l.srcSet,l,null),c&&ko(o,t,"src",l.src,l,null);return;case"input":Ze("invalid",o);var y=b=k=f=null,A=null,U=null;for(c in l)if(l.hasOwnProperty(c)){var Y=l[c];if(Y!=null)switch(c){case"name":f=Y;break;case"type":k=Y;break;case"checked":A=Y;break;case"defaultChecked":U=Y;break;case"value":b=Y;break;case"defaultValue":y=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:ko(o,t,c,Y,l,null)}}ah(o,b,y,A,U,k,f,!1);return;case"select":Ze("invalid",o),c=k=b=null;for(f in l)if(l.hasOwnProperty(f)&&(y=l[f],y!=null))switch(f){case"value":b=y;break;case"defaultValue":k=y;break;case"multiple":c=y;default:ko(o,t,f,y,l,null)}t=b,l=k,o.multiple=!!c,t!=null?$a(o,!!c,t,!1):l!=null&&$a(o,!!c,l,!0);return;case"textarea":Ze("invalid",o),b=f=c=null;for(k in l)if(l.hasOwnProperty(k)&&(y=l[k],y!=null))switch(k){case"value":c=y;break;case"defaultValue":f=y;break;case"children":b=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(i(91));break;default:ko(o,t,k,y,l,null)}ih(o,c,f,b);return;case"option":for(A in l)if(l.hasOwnProperty(A)&&(c=l[A],c!=null))switch(A){case"selected":o.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:ko(o,t,A,c,l,null)}return;case"dialog":Ze("beforetoggle",o),Ze("toggle",o),Ze("cancel",o),Ze("close",o);break;case"iframe":case"object":Ze("load",o);break;case"video":case"audio":for(c=0;c<bi.length;c++)Ze(bi[c],o);break;case"image":Ze("error",o),Ze("load",o);break;case"details":Ze("toggle",o);break;case"embed":case"source":case"link":Ze("error",o),Ze("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(U in l)if(l.hasOwnProperty(U)&&(c=l[U],c!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:ko(o,t,U,c,l,null)}return;default:if(yd(t)){for(Y in l)l.hasOwnProperty(Y)&&(c=l[Y],c!==void 0&&sf(o,t,Y,c,l,void 0));return}}for(y in l)l.hasOwnProperty(y)&&(c=l[y],c!=null&&ko(o,t,y,c,l,null))}function nz(o,t,l,c){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,y=null,A=null,U=null,Y=null;for(q in l){var Q=l[q];if(l.hasOwnProperty(q)&&Q!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":A=Q;default:c.hasOwnProperty(q)||ko(o,t,q,null,c,Q)}}for(var K in c){var q=c[K];if(Q=l[K],c.hasOwnProperty(K)&&(q!=null||Q!=null))switch(K){case"type":b=q;break;case"name":f=q;break;case"checked":U=q;break;case"defaultChecked":Y=q;break;case"value":k=q;break;case"defaultValue":y=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(i(137,t));break;default:q!==Q&&ko(o,t,K,q,c,Q)}}_d(o,k,y,A,U,Y,b,f);return;case"select":q=k=y=K=null;for(b in l)if(A=l[b],l.hasOwnProperty(b)&&A!=null)switch(b){case"value":break;case"multiple":q=A;default:c.hasOwnProperty(b)||ko(o,t,b,null,c,A)}for(f in c)if(b=c[f],A=l[f],c.hasOwnProperty(f)&&(b!=null||A!=null))switch(f){case"value":K=b;break;case"defaultValue":y=b;break;case"multiple":k=b;default:b!==A&&ko(o,t,f,b,c,A)}t=y,l=k,c=q,K!=null?$a(o,!!l,K,!1):!!c!=!!l&&(t!=null?$a(o,!!l,t,!0):$a(o,!!l,l?[]:"",!1));return;case"textarea":q=K=null;for(y in l)if(f=l[y],l.hasOwnProperty(y)&&f!=null&&!c.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:ko(o,t,y,null,c,f)}for(k in c)if(f=c[k],b=l[k],c.hasOwnProperty(k)&&(f!=null||b!=null))switch(k){case"value":K=f;break;case"defaultValue":q=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==b&&ko(o,t,k,f,c,b)}lh(o,K,q);return;case"option":for(var pe in l)if(K=l[pe],l.hasOwnProperty(pe)&&K!=null&&!c.hasOwnProperty(pe))switch(pe){case"selected":o.selected=!1;break;default:ko(o,t,pe,null,c,K)}for(A in c)if(K=c[A],q=l[A],c.hasOwnProperty(A)&&K!==q&&(K!=null||q!=null))switch(A){case"selected":o.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:ko(o,t,A,K,c,q)}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 Ae in l)K=l[Ae],l.hasOwnProperty(Ae)&&K!=null&&!c.hasOwnProperty(Ae)&&ko(o,t,Ae,null,c,K);for(U in c)if(K=c[U],q=l[U],c.hasOwnProperty(U)&&K!==q&&(K!=null||q!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,t));break;default:ko(o,t,U,K,c,q)}return;default:if(yd(t)){for(var vo in l)K=l[vo],l.hasOwnProperty(vo)&&K!==void 0&&!c.hasOwnProperty(vo)&&sf(o,t,vo,void 0,c,K);for(Y in c)K=c[Y],q=l[Y],!c.hasOwnProperty(Y)||K===q||K===void 0&&q===void 0||sf(o,t,Y,K,c,q);return}}for(var R in l)K=l[R],l.hasOwnProperty(R)&&K!=null&&!c.hasOwnProperty(R)&&ko(o,t,R,null,c,K);for(Q in c)K=c[Q],q=l[Q],!c.hasOwnProperty(Q)||K===q||K==null&&q==null||ko(o,t,Q,K,c,q)}function dv(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function tz(){if(typeof performance.getEntriesByType=="function"){for(var o=0,t=0,l=performance.getEntriesByType("resource"),c=0;c<l.length;c++){var f=l[c],b=f.transferSize,k=f.initiatorType,y=f.duration;if(b&&y&&dv(k)){for(k=0,y=f.responseEnd,c+=1;c<l.length;c++){var A=l[c],U=A.startTime;if(U>y)break;var Y=A.transferSize,Q=A.initiatorType;Y&&dv(Q)&&(A=A.responseEnd,k+=Y*(A<y?1:(y-U)/(A-U)))}if(--c,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 df=null,uf=null;function ns(o){return o.nodeType===9?o:o.ownerDocument}function uv(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 fv(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 ff(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 bf=null;function rz(){var o=window.event;return o&&o.type==="popstate"?o===bf?!1:(bf=o,!0):(bf=null,!1)}var bv=typeof setTimeout=="function"?setTimeout:void 0,az=typeof clearTimeout=="function"?clearTimeout:void 0,mv=typeof Promise=="function"?Promise:void 0,lz=typeof queueMicrotask=="function"?queueMicrotask:typeof mv<"u"?function(o){return mv.resolve(null).then(o).catch(iz)}:bv;function iz(o){setTimeout(function(){throw o})}function Lr(o){return o==="head"}function hv(o,t){var l=t,c=0;do{var f=l.nextSibling;if(o.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(c===0){o.removeChild(f),ul(t);return}c--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")c++;else if(l==="html")hi(o.ownerDocument.documentElement);else if(l==="head"){l=o.ownerDocument.head,hi(l);for(var b=l.firstChild;b;){var k=b.nextSibling,y=b.nodeName;b[$l]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&b.rel.toLowerCase()==="stylesheet"||l.removeChild(b),b=k}}else l==="body"&&hi(o.ownerDocument.body);l=f}while(l);ul(t)}function pv(o,t){var l=o;o=0;do{var c=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||""),c&&c.nodeType===8)if(l=c.data,l==="/$"){if(o===0)break;o--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||o++;l=c}while(l)}function mf(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":mf(l),vd(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}o.removeChild(l)}}function cz(o,t,l,c){for(;o.nodeType===1;){var f=l;if(o.nodeName.toLowerCase()!==t.toLowerCase()){if(!c&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(c){if(!o[$l])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=mt(o.nextSibling),o===null)break}return null}function sz(o,t,l){if(t==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=mt(o.nextSibling),o===null))return null;return o}function kv(o,t){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!t||(o=mt(o.nextSibling),o===null))return null;return o}function hf(o){return o.data==="$?"||o.data==="$~"}function pf(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function dz(o,t){var l=o.ownerDocument;if(o.data==="$~")o._reactRetry=t;else if(o.data!=="$?"||l.readyState!=="loading")t();else{var c=function(){t(),l.removeEventListener("DOMContentLoaded",c)};l.addEventListener("DOMContentLoaded",c),o._reactRetry=c}}function mt(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 kf=null;function vv(o){o=o.nextSibling;for(var t=0;o;){if(o.nodeType===8){var l=o.data;if(l==="/$"||l==="/&"){if(t===0)return mt(o.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}o=o.nextSibling}return null}function gv(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 _v(o,t,l){switch(t=ns(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 hi(o){for(var t=o.attributes;t.length;)o.removeAttributeNode(t[0]);vd(o)}var ht=new Map,xv=new Set;function ts(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Qt=G.d;G.d={f:uz,r:fz,D:bz,C:mz,L:hz,m:pz,X:vz,S:kz,M:gz};function uz(){var o=Qt.f(),t=Gc();return o||t}function fz(o){var t=Ea(o);t!==null&&t.tag===5&&t.type==="form"?Mp(t):Qt.r(o)}var cl=typeof document>"u"?null:document;function yv(o,t,l){var c=cl;if(c&&typeof t=="string"&&t){var f=it(t);f='link[rel="'+o+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),xv.has(f)||(xv.add(f),o={rel:o,crossOrigin:l,href:t},c.querySelector(f)===null&&(t=c.createElement("link"),un(t,"link",o),nn(t),c.head.appendChild(t)))}}function bz(o){Qt.D(o),yv("dns-prefetch",o,null)}function mz(o,t){Qt.C(o,t),yv("preconnect",o,t)}function hz(o,t,l){Qt.L(o,t,l);var c=cl;if(c&&o&&t){var f='link[rel="preload"][as="'+it(t)+'"]';t==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+it(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+it(l.imageSizes)+'"]')):f+='[href="'+it(o)+'"]';var b=f;switch(t){case"style":b=sl(o);break;case"script":b=dl(o)}ht.has(b)||(o=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:o,as:t},l),ht.set(b,o),c.querySelector(f)!==null||t==="style"&&c.querySelector(pi(b))||t==="script"&&c.querySelector(ki(b))||(t=c.createElement("link"),un(t,"link",o),nn(t),c.head.appendChild(t)))}}function pz(o,t){Qt.m(o,t);var l=cl;if(l&&o){var c=t&&typeof t.as=="string"?t.as:"script",f='link[rel="modulepreload"][as="'+it(c)+'"][href="'+it(o)+'"]',b=f;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=dl(o)}if(!ht.has(b)&&(o=v({rel:"modulepreload",href:o},t),ht.set(b,o),l.querySelector(f)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ki(b)))return}c=l.createElement("link"),un(c,"link",o),nn(c),l.head.appendChild(c)}}}function kz(o,t,l){Qt.S(o,t,l);var c=cl;if(c&&o){var f=La(c).hoistableStyles,b=sl(o);t=t||"default";var k=f.get(b);if(!k){var y={loading:0,preload:null};if(k=c.querySelector(pi(b)))y.loading=5;else{o=v({rel:"stylesheet",href:o,"data-precedence":t},l),(l=ht.get(b))&&vf(o,l);var A=k=c.createElement("link");nn(A),un(A,"link",o),A._p=new Promise(function(U,Y){A.onload=U,A.onerror=Y}),A.addEventListener("load",function(){y.loading|=1}),A.addEventListener("error",function(){y.loading|=2}),y.loading|=4,rs(k,t,c)}k={type:"stylesheet",instance:k,count:1,state:y},f.set(b,k)}}}function vz(o,t){Qt.X(o,t);var l=cl;if(l&&o){var c=La(l).hoistableScripts,f=dl(o),b=c.get(f);b||(b=l.querySelector(ki(f)),b||(o=v({src:o,async:!0},t),(t=ht.get(f))&&gf(o,t),b=l.createElement("script"),nn(b),un(b,"link",o),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},c.set(f,b))}}function gz(o,t){Qt.M(o,t);var l=cl;if(l&&o){var c=La(l).hoistableScripts,f=dl(o),b=c.get(f);b||(b=l.querySelector(ki(f)),b||(o=v({src:o,async:!0,type:"module"},t),(t=ht.get(f))&&gf(o,t),b=l.createElement("script"),nn(b),un(b,"link",o),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},c.set(f,b))}}function wv(o,t,l,c){var f=(f=Ne.current)?ts(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=sl(l.href),l=La(f).hoistableStyles,c=l.get(t),c||(c={type:"style",instance:null,count:0,state:null},l.set(t,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){o=sl(l.href);var b=La(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(pi(o)))&&!b._p&&(k.instance=b,k.state.loading=5),ht.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},ht.set(o,l),b||_z(f,o,l,k.state))),t&&c===null)throw Error(i(528,""));return k}if(t&&c!==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=dl(l),l=La(f).hoistableScripts,c=l.get(t),c||(c={type:"script",instance:null,count:0,state:null},l.set(t,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,o))}}function sl(o){return'href="'+it(o)+'"'}function pi(o){return'link[rel="stylesheet"]['+o+"]"}function zv(o){return v({},o,{"data-precedence":o.precedence,precedence:null})}function _z(o,t,l,c){o.querySelector('link[rel="preload"][as="style"]['+t+"]")?c.loading=1:(t=o.createElement("link"),c.preload=t,t.addEventListener("load",function(){return c.loading|=1}),t.addEventListener("error",function(){return c.loading|=2}),un(t,"link",l),nn(t),o.head.appendChild(t))}function dl(o){return'[src="'+it(o)+'"]'}function ki(o){return"script[async]"+o}function jv(o,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var c=o.querySelector('style[data-href~="'+it(l.href)+'"]');if(c)return t.instance=c,nn(c),c;var f=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return c=(o.ownerDocument||o).createElement("style"),nn(c),un(c,"style",f),rs(c,l.precedence,o),t.instance=c;case"stylesheet":f=sl(l.href);var b=o.querySelector(pi(f));if(b)return t.state.loading|=4,t.instance=b,nn(b),b;c=zv(l),(f=ht.get(f))&&vf(c,f),b=(o.ownerDocument||o).createElement("link"),nn(b);var k=b;return k._p=new Promise(function(y,A){k.onload=y,k.onerror=A}),un(b,"link",c),t.state.loading|=4,rs(b,l.precedence,o),t.instance=b;case"script":return b=dl(l.src),(f=o.querySelector(ki(b)))?(t.instance=f,nn(f),f):(c=l,(f=ht.get(b))&&(c=v({},l),gf(c,f)),o=o.ownerDocument||o,f=o.createElement("script"),nn(f),un(f,"link",c),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&&(c=t.instance,t.state.loading|=4,rs(c,l.precedence,o));return t.instance}function rs(o,t,l){for(var c=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=c.length?c[c.length-1]:null,b=f,k=0;k<c.length;k++){var y=c[k];if(y.dataset.precedence===t)b=y;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 vf(o,t){o.crossOrigin==null&&(o.crossOrigin=t.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=t.referrerPolicy),o.title==null&&(o.title=t.title)}function gf(o,t){o.crossOrigin==null&&(o.crossOrigin=t.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=t.referrerPolicy),o.integrity==null&&(o.integrity=t.integrity)}var as=null;function Sv(o,t,l){if(as===null){var c=new Map,f=as=new Map;f.set(l,c)}else f=as,c=f.get(l),c||(c=new Map,f.set(l,c));if(c.has(o))return c;for(c.set(o,null),l=l.getElementsByTagName(o),f=0;f<l.length;f++){var b=l[f];if(!(b[$l]||b[ln]||o==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var k=b.getAttribute(t)||"";k=o+k;var y=c.get(k);y?y.push(b):c.set(k,[b])}}return c}function Tv(o,t,l){o=o.ownerDocument||o,o.head.insertBefore(l,t==="title"?o.querySelector("head > title"):null)}function xz(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;switch(t.rel){case"stylesheet":return o=t.disabled,typeof t.precedence=="string"&&o==null;default:return!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 Av(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function yz(o,t,l,c){if(l.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=sl(c.href),b=t.querySelector(pi(f));if(b){t=b._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(o.count++,o=ls.bind(o),t.then(o,o)),l.state.loading|=4,l.instance=b,nn(b);return}b=t.ownerDocument||t,c=zv(c),(f=ht.get(f))&&vf(c,f),b=b.createElement("link"),nn(b);var k=b;k._p=new Promise(function(y,A){k.onload=y,k.onerror=A}),un(b,"link",c),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=ls.bind(o),t.addEventListener("load",l),t.addEventListener("error",l))}}var _f=0;function wz(o,t){return o.stylesheets&&o.count===0&&cs(o,o.stylesheets),0<o.count||0<o.imgCount?function(l){var c=setTimeout(function(){if(o.stylesheets&&cs(o,o.stylesheets),o.unsuspend){var b=o.unsuspend;o.unsuspend=null,b()}},6e4+t);0<o.imgBytes&&_f===0&&(_f=62500*tz());var f=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&cs(o,o.stylesheets),o.unsuspend)){var b=o.unsuspend;o.unsuspend=null,b()}},(o.imgBytes>_f?50:800)+t);return o.unsuspend=l,function(){o.unsuspend=null,clearTimeout(c),clearTimeout(f)}}:null}function ls(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cs(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var is=null;function cs(o,t){o.stylesheets=null,o.unsuspend!==null&&(o.count++,is=new Map,t.forEach(zz,o),is=null,ls.call(o))}function zz(o,t){if(!(t.state.loading&4)){var l=is.get(o);if(l)var c=l.get(null);else{l=new Map,is.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),c=k)}c&&l.set(null,c)}f=t.instance,k=f.getAttribute("data-precedence"),b=l.get(k)||c,b===c&&l.set(null,f),l.set(k,f),this.count++,c=ls.bind(this),f.addEventListener("load",c),f.addEventListener("error",c),b?b.parentNode.insertBefore(f,b.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(f,o.firstChild)),t.state.loading|=4}}var vi={$$typeof:w,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function jz(o,t,l,c,f,b,k,y,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=md(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=md(0),this.hiddenUpdates=md(null),this.identifierPrefix=c,this.onUncaughtError=f,this.onCaughtError=b,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Cv(o,t,l,c,f,b,k,y,A,U,Y,Q){return o=new jz(o,t,l,k,A,U,Y,Q,y),t=1,b===!0&&(t|=24),b=Vn(3,null,null,t),o.current=b,b.stateNode=o,t=Wd(),t.refCount++,o.pooledCache=t,t.refCount++,b.memoizedState={element:c,isDehydrated:l,cache:t},nu(b),o}function Ev(o){return o?(o=Ha,o):Ha}function Lv(o,t,l,c,f,b){f=Ev(f),c.context===null?c.context=f:c.pendingContext=f,c=_r(t),c.payload={element:l},b=b===void 0?null:b,b!==null&&(c.callback=b),l=xr(o,c,t),l!==null&&(Rn(l,o,t),Jl(l,o,t))}function Ov(o,t){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var l=o.retryLane;o.retryLane=l!==0&&l<t?l:t}}function xf(o,t){Ov(o,t),(o=o.alternate)&&Ov(o,t)}function $v(o){if(o.tag===13||o.tag===31){var t=oa(o,67108864);t!==null&&Rn(t,o,67108864),xf(o,67108864)}}function Nv(o){if(o.tag===13||o.tag===31){var t=Yn();t=hd(t);var l=oa(o,t);l!==null&&Rn(l,o,t),xf(o,t)}}var ss=!0;function Sz(o,t,l,c){var f=M.T;M.T=null;var b=G.p;try{G.p=2,yf(o,t,l,c)}finally{G.p=b,M.T=f}}function Tz(o,t,l,c){var f=M.T;M.T=null;var b=G.p;try{G.p=8,yf(o,t,l,c)}finally{G.p=b,M.T=f}}function yf(o,t,l,c){if(ss){var f=wf(c);if(f===null)cf(o,t,c,ds,l),Rv(o,c);else if(Cz(f,o,t,l,c))c.stopPropagation();else if(Rv(o,c),t&4&&-1<Az.indexOf(o)){for(;f!==null;){var b=Ea(f);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var k=Jr(b.pendingLanes);if(k!==0){var y=b;for(y.pendingLanes|=2,y.entangledLanes|=2;k;){var A=1<<31-wn(k);y.entanglements[1]|=A,k&=~A}Lt(b),(co&6)===0&&(Zc=te()+500,fi(0))}}break;case 31:case 13:y=oa(b,2),y!==null&&Rn(y,b,2),Gc(),xf(b,2)}if(b=wf(c),b===null&&cf(o,t,c,ds,l),b===f)break;f=b}f!==null&&c.stopPropagation()}else cf(o,t,c,null,l)}}function wf(o){return o=zd(o),zf(o)}var ds=null;function zf(o){if(ds=null,o=Ca(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 ds=o,null}function Bv(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(re()){case oe:return 2;case ve:return 8;case eo:case io:return 32;case on:return 268435456;default:return 32}default:return 32}}var jf=!1,Or=null,$r=null,Nr=null,gi=new Map,_i=new Map,Br=[],Az="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 Rv(o,t){switch(o){case"focusin":case"focusout":Or=null;break;case"dragenter":case"dragleave":$r=null;break;case"mouseover":case"mouseout":Nr=null;break;case"pointerover":case"pointerout":gi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_i.delete(t.pointerId)}}function xi(o,t,l,c,f,b){return o===null||o.nativeEvent!==b?(o={blockedOn:t,domEventName:l,eventSystemFlags:c,nativeEvent:b,targetContainers:[f]},t!==null&&(t=Ea(t),t!==null&&$v(t)),o):(o.eventSystemFlags|=c,t=o.targetContainers,f!==null&&t.indexOf(f)===-1&&t.push(f),o)}function Cz(o,t,l,c,f){switch(t){case"focusin":return Or=xi(Or,o,t,l,c,f),!0;case"dragenter":return $r=xi($r,o,t,l,c,f),!0;case"mouseover":return Nr=xi(Nr,o,t,l,c,f),!0;case"pointerover":var b=f.pointerId;return gi.set(b,xi(gi.get(b)||null,o,t,l,c,f)),!0;case"gotpointercapture":return b=f.pointerId,_i.set(b,xi(_i.get(b)||null,o,t,l,c,f)),!0}return!1}function Dv(o){var t=Ca(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,Xm(o.priority,function(){Nv(l)});return}}else if(t===31){if(t=m(l),t!==null){o.blockedOn=t,Xm(o.priority,function(){Nv(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 us(o){if(o.blockedOn!==null)return!1;for(var t=o.targetContainers;0<t.length;){var l=wf(o.nativeEvent);if(l===null){l=o.nativeEvent;var c=new l.constructor(l.type,l);wd=c,l.target.dispatchEvent(c),wd=null}else return t=Ea(l),t!==null&&$v(t),o.blockedOn=l,!1;t.shift()}return!0}function Mv(o,t,l){us(o)&&l.delete(t)}function Ez(){jf=!1,Or!==null&&us(Or)&&(Or=null),$r!==null&&us($r)&&($r=null),Nr!==null&&us(Nr)&&(Nr=null),gi.forEach(Mv),_i.forEach(Mv)}function fs(o,t){o.blockedOn===t&&(o.blockedOn=null,jf||(jf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ez)))}var bs=null;function Iv(o){bs!==o&&(bs=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){bs===o&&(bs=null);for(var t=0;t<o.length;t+=3){var l=o[t],c=o[t+1],f=o[t+2];if(typeof c!="function"){if(zf(c||l)===null)continue;break}var b=Ea(l);b!==null&&(o.splice(t,3),t-=3,yu(b,{pending:!0,data:f,method:l.method,action:c},c,f))}}))}function ul(o){function t(A){return fs(A,o)}Or!==null&&fs(Or,o),$r!==null&&fs($r,o),Nr!==null&&fs(Nr,o),gi.forEach(t),_i.forEach(t);for(var l=0;l<Br.length;l++){var c=Br[l];c.blockedOn===o&&(c.blockedOn=null)}for(;0<Br.length&&(l=Br[0],l.blockedOn===null);)Dv(l),l.blockedOn===null&&Br.shift();if(l=(o.ownerDocument||o).$$reactFormReplay,l!=null)for(c=0;c<l.length;c+=3){var f=l[c],b=l[c+1],k=f[En]||null;if(typeof b=="function")k||Iv(l);else if(k){var y=null;if(b&&b.hasAttribute("formAction")){if(f=b,k=b[En]||null)y=k.formAction;else if(zf(f)!==null)continue}else y=k.action;typeof y=="function"?l[c+1]=y:(l.splice(c,3),c-=3),Iv(l)}}}function Uv(){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),c||setTimeout(l,20)}function l(){if(!c&&!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 c=!1,f=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){c=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),f!==null&&(f(),f=null)}}}function Sf(o){this._internalRoot=o}ms.prototype.render=Sf.prototype.render=function(o){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,c=Yn();Lv(l,c,o,t,null,null)},ms.prototype.unmount=Sf.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var t=o.containerInfo;Lv(o.current,2,null,o,null,null),Gc(),t[Aa]=null}};function ms(o){this._internalRoot=o}ms.prototype.unstable_scheduleHydration=function(o){if(o){var t=Jm();o={blockedOn:null,target:o,priority:t};for(var l=0;l<Br.length&&t!==0&&t<Br[l].priority;l++);Br.splice(l,0,o),l===0&&Dv(o)}};var Hv=n.version;if(Hv!=="19.2.4")throw Error(i(527,Hv,"19.2.4"));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 Lz={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hs.isDisabled&&hs.supportsFiber)try{Yr=hs.inject(Lz),an=hs}catch{}}return zi.createRoot=function(o,t){if(!s(o))throw Error(i(299));var l=!1,c="",f=Gp,b=Yp,k=Jp;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(c=t.identifierPrefix),t.onUncaughtError!==void 0&&(f=t.onUncaughtError),t.onCaughtError!==void 0&&(b=t.onCaughtError),t.onRecoverableError!==void 0&&(k=t.onRecoverableError)),t=Cv(o,1,!1,null,null,l,c,null,f,b,k,Uv),o[Aa]=t.current,lf(o),new Sf(t)},zi.hydrateRoot=function(o,t,l){if(!s(o))throw Error(i(299));var c=!1,f="",b=Gp,k=Yp,y=Jp,A=null;return l!=null&&(l.unstable_strictMode===!0&&(c=!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&&(y=l.onRecoverableError),l.formState!==void 0&&(A=l.formState)),t=Cv(o,1,!0,t,l??null,c,f,A,b,k,y,Uv),t.context=Ev(null),l=t.current,c=Yn(),c=hd(c),f=_r(c),f.callback=null,xr(l,f,c),l=c,t.current.lanes=l,Ol(t,l),Lt(t),o[Aa]=t.current,lf(o),new ms(t)},zi.version="19.2.4",zi}var Wv;function Qz(){if(Wv)return Ef.exports;Wv=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(),Ef.exports=Wz(),Ef.exports}var Sx=Qz();var Qv="popstate";function e4(e={}){function n(s,d){let{pathname:u="/",search:m="",hash:h=""}=za(s.location.hash.substring(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),fb("",{pathname:u,search:m,hash:h},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function r(s,d){let u=s.document.querySelector("base"),m="";if(u&&u.getAttribute("href")){let h=s.location.href,p=h.indexOf("#");m=p===-1?h:h.slice(0,p)}return m+"#"+(typeof d=="string"?d:Ui(d))}function i(s,d){nt(s.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(d)})`)}return n4(n,r,i,e)}function zo(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function nt(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function o4(){return Math.random().toString(36).substring(2,10)}function eg(e,n){return{usr:e.state,key:e.key,idx:n}}function fb(e,n,r=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?za(n):n,state:r,key:n&&n.key||i||o4()}}function Ui({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 za(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 n4(e,n,r,i={}){let{window:s=document.defaultView,v5Compat:d=!1}=i,u=s.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 O=g(),E=O==null?null:O-p;p=O,h&&h({action:m,location:S.location,delta:E})}function _(O,E){m="PUSH";let x=fb(S.location,O,E);r&&r(x,O),p=g()+1;let w=eg(x,p),$=S.createHref(x);try{u.pushState(w,"",$)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;s.location.assign($)}d&&h&&h({action:m,location:S.location,delta:1})}function z(O,E){m="REPLACE";let x=fb(S.location,O,E);r&&r(x,O),p=g();let w=eg(x,p),$=S.createHref(x);u.replaceState(w,"",$),d&&h&&h({action:m,location:S.location,delta:0})}function N(O){return t4(O)}let S={get action(){return m},get location(){return e(s,u)},listen(O){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(Qv,v),h=O,()=>{s.removeEventListener(Qv,v),h=null}},createHref(O){return n(s,O)},createURL:N,encodeLocation(O){let E=N(O);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:_,replace:z,go(O){return u.go(O)}};return S}function t4(e,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),zo(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Ui(e);return i=i.replace(/ $/,"%20"),!n&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function Tx(e,n,r="/"){return r4(e,n,r,!1)}function r4(e,n,r,i){let s=typeof n=="string"?za(n):n,d=sr(s.pathname||"/",r);if(d==null)return null;let u=Ax(e);a4(u);let m=null;for(let h=0;m==null&&h<u.length;++h){let p=Ex(d);m=m4(u[h],p,i)}return m}function Ax(e,n=[],r=[],i="",s=!1){let d=(u,m,h=s,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;zo(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=lr([i,g.relativePath]),_=r.concat(g);u.children&&u.children.length>0&&(zo(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Ax(u.children,n,_,v,h)),!(u.path==null&&!u.index)&&n.push({path:v,score:f4(v,u.index),routesMeta:_})};return e.forEach((u,m)=>{if(u.path===""||!u.path?.includes("?"))d(u,m);else for(let h of Cx(u.path))d(u,m,!0,h)}),n}function Cx(e){let n=e.split("/");if(n.length===0)return[];let[r,...i]=n,s=r.endsWith("?"),d=r.replace(/\?$/,"");if(i.length===0)return s?[d,""]:[d];let u=Cx(i.join("/")),m=[];return m.push(...u.map(h=>h===""?d:[d,h].join("/"))),s&&m.push(...u),m.map(h=>e.startsWith("/")&&h===""?"/":h)}function a4(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:b4(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var l4=/^:[\w-]+$/,i4=3,c4=2,s4=1,d4=10,u4=-2,og=e=>e==="*";function f4(e,n){let r=e.split("/"),i=r.length;return r.some(og)&&(i+=u4),n&&(i+=c4),r.filter(s=>!og(s)).reduce((s,d)=>s+(l4.test(d)?i4:d===""?s4:d4),i)}function b4(e,n){return e.length===n.length&&e.slice(0,-1).every((i,s)=>i===n[s])?e[e.length-1]-n[n.length-1]:0}function m4(e,n,r=!1){let{routesMeta:i}=e,s={},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=Hi({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),_=h.route;if(!v&&p&&r&&!i[i.length-1].route.index&&(v=Hi({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!v)return null;Object.assign(s,v.params),u.push({params:s,pathname:lr([d,v.pathname]),pathnameBase:g4(lr([d,v.pathnameBase])),route:_}),v.pathnameBase!=="/"&&(d=lr([d,v.pathnameBase]))}return u}function Hi(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=h4(e.path,e.caseSensitive,e.end),s=n.match(r);if(!s)return null;let d=s[0],u=d.replace(/(.)\/+$/,"$1"),m=s.slice(1);return{params:i.reduce((p,{paramName:g,isOptional:v},_)=>{if(g==="*"){let N=m[_]||"";u=d.slice(0,d.length-N.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 h4(e,n=!1,r=!0){nt(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=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,m,h)=>(i.push({paramName:m,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),i]}function Ex(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return nt(!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 p4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function k4(e,n="/"){let{pathname:r,search:i="",hash:s=""}=typeof e=="string"?za(e):e,d;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?d=ng(r.substring(1),"/"):d=ng(r,n)):d=n,{pathname:d,search:_4(i),hash:x4(s)}}function ng(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Nf(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 v4(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function nm(e){let n=v4(e);return n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase)}function tm(e,n,r,i=!1){let s;typeof e=="string"?s=za(e):(s={...e},zo(!s.pathname||!s.pathname.includes("?"),Nf("?","pathname","search",s)),zo(!s.pathname||!s.pathname.includes("#"),Nf("#","pathname","hash",s)),zo(!s.search||!s.search.includes("#"),Nf("#","search","hash",s)));let d=e===""||s.pathname==="",u=d?"/":s.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;s.pathname=_.join("/")}m=v>=0?n[v]:"/"}let h=k4(s,m),p=u&&u!=="/"&&u.endsWith("/"),g=(d||u===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}var lr=e=>e.join("/").replace(/\/\/+/g,"/"),g4=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,x4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,y4=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 w4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function z4(e){return e.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Lx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ox(e,n){let r=e;if(typeof r!="string"||!p4.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let i=r,s=!1;if(Lx)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:s=!0}catch{nt(!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:s,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var $x=["POST","PUT","PATCH","DELETE"];new Set($x);var j4=["GET",...$x];new Set(j4);var Al=j.createContext(null);Al.displayName="DataRouter";var ed=j.createContext(null);ed.displayName="DataRouterState";var S4=j.createContext(!1),Nx=j.createContext({isTransitioning:!1});Nx.displayName="ViewTransition";var T4=j.createContext(new Map);T4.displayName="Fetchers";var A4=j.createContext(null);A4.displayName="Await";var tt=j.createContext(null);tt.displayName="Navigation";var Ji=j.createContext(null);Ji.displayName="Location";var jt=j.createContext({outlet:null,matches:[],isDataRoute:!1});jt.displayName="Route";var rm=j.createContext(null);rm.displayName="RouteError";var Bx="REACT_ROUTER_ERROR",C4="REDIRECT",E4="ROUTE_ERROR_RESPONSE";function L4(e){if(e.startsWith(`${Bx}:${C4}:{`))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 O4(e){if(e.startsWith(`${Bx}:${E4}:{`))try{let n=JSON.parse(e.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new y4(n.status,n.statusText,n.data)}catch{}}function Rx(e,{relative:n}={}){zo(ja(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=j.useContext(tt),{hash:s,pathname:d,search:u}=Cl(e,{relative:n}),m=d;return r!=="/"&&(m=d==="/"?r:lr([r,d])),i.createHref({pathname:m,search:u,hash:s})}function ja(){return j.useContext(Ji)!=null}function rt(){return zo(ja(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(Ji).location}function $4(e){zo(ja(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:n}=rt();return j.useMemo(()=>Hi(e,Ex(n)),[n,e])}var Dx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Mx(e){j.useContext(tt).static||j.useLayoutEffect(e)}function od(){let{isDataRoute:e}=j.useContext(jt);return e?P4():N4()}function N4(){zo(ja(),"useNavigate() may be used only in the context of a <Router> component.");let e=j.useContext(Al),{basename:n,navigator:r}=j.useContext(tt),{matches:i}=j.useContext(jt),{pathname:s}=rt(),d=JSON.stringify(nm(i)),u=j.useRef(!1);return Mx(()=>{u.current=!0}),j.useCallback((h,p={})=>{if(nt(u.current,Dx),!u.current)return;if(typeof h=="number"){r.go(h);return}let g=tm(h,JSON.parse(d),s,p.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:lr([n,g.pathname])),(p.replace?r.replace:r.push)(g,p.state,p)},[n,r,d,s,e])}j.createContext(null);function B4(){let{matches:e}=j.useContext(jt),n=e[e.length-1];return n?n.params:{}}function Cl(e,{relative:n}={}){let{matches:r}=j.useContext(jt),{pathname:i}=rt(),s=JSON.stringify(nm(r));return j.useMemo(()=>tm(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function R4(e,n){return Ix(e,n)}function Ix(e,n,r,i,s){zo(ja(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=j.useContext(tt),{matches:u}=j.useContext(jt),m=u[u.length-1],h=m?m.params:{},p=m?m.pathname:"/",g=m?m.pathnameBase:"/",v=m&&m.route;{let x=v&&v.path||"";Hx(p,!v||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${x}">) 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.
6
+ `);for(f=s=0;s<A.length&&!A[s].includes("DetermineComponentFrameRoot");)s++;for(;f<U.length&&!U[f].includes("DetermineComponentFrameRoot");)f++;if(s===A.length||f===U.length)for(s=A.length-1,f=U.length-1;1<=s&&0<=f&&A[s]!==U[f];)f--;for(;1<=s&&0<=f;s--,f--)if(A[s]!==U[f]){if(s!==1||f!==1)do if(s--,f--,0>f||A[s]!==U[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{Nt=!1,Error.prepareStackTrace=l}return(l=o?o.displayName||o.name:"")?gt(l):""}function he(o,t){switch(o.tag){case 26:case 27:case 5:return gt(o.type);case 16:return gt("Lazy");case 13:return o.child!==t&&t!==null?gt("Suspense Fallback"):gt("Suspense");case 19:return gt("SuspenseList");case 0:case 15:return fr(o.type,!1);case 11:return fr(o.type.render,!1);case 1:return fr(o.type,!0);case 31:return gt("Activity");default:return""}}function ke(o){try{var t="",l=null;do t+=he(o,l),l=o,o=o.return;while(o);return t}catch(s){return`
8
+ Error generating stack: `+s.message+`
9
+ `+s.stack}}var Re=Object.prototype.hasOwnProperty,lo=e.unstable_scheduleCallback,T=e.unstable_cancelCallback,B=e.unstable_shouldYield,H=e.unstable_requestPaint,te=e.unstable_now,re=e.unstable_getCurrentPriorityLevel,oe=e.unstable_ImmediatePriority,ve=e.unstable_UserBlockingPriority,eo=e.unstable_NormalPriority,io=e.unstable_LowPriority,on=e.unstable_IdlePriority,Bt=e.log,Tt=e.unstable_setDisableYieldValue,Yr=null,an=null;function at(o){if(typeof Bt=="function"&&Tt(o),an&&typeof an.setStrictMode=="function")try{an.setStrictMode(Yr,o)}catch{}}var zn=Math.clz32?Math.clz32:oc,ec=Math.log,md=Math.LN2;function oc(o){return o>>>=0,o===0?32:31-(ec(o)/md|0)|0}var nc=256,tc=262144,rc=4194304;function Jr(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 ac(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 y=s&134217727;return y!==0?(s=y&~b,s!==0?f=Jr(s):(k&=y,k!==0?f=Jr(k):l||(l=y&~o,l!==0&&(f=Jr(l))))):(y=s&~b,y!==0?f=Jr(y):k!==0?f=Jr(k):l||(l=s&~o,l!==0&&(f=Jr(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 Ol(o,t){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&t)===0}function _w(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 Pm(){var o=rc;return rc<<=1,(rc&62914560)===0&&(rc=4194304),o}function hd(o){for(var t=[],l=0;31>l;l++)t.push(o);return t}function $l(o,t){o.pendingLanes|=t,t!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function xw(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 y=o.entanglements,A=o.expirationTimes,U=o.hiddenUpdates;for(l=k&~l;0<l;){var Y=31-zn(l),Q=1<<Y;y[Y]=0,A[Y]=-1;var K=U[Y];if(K!==null)for(U[Y]=null,Y=0;Y<K.length;Y++){var q=K[Y];q!==null&&(q.lane&=-536870913)}l&=~Q}s!==0&&Gm(o,s,0),b!==0&&f===0&&o.tag!==0&&(o.suspendedLanes|=b&~(k&~t))}function Gm(o,t,l){o.pendingLanes|=t,o.suspendedLanes&=~t;var s=31-zn(t);o.entangledLanes|=t,o.entanglements[s]=o.entanglements[s]|1073741824|l&261930}function Ym(o,t){var l=o.entangledLanes|=t;for(o=o.entanglements;l;){var s=31-zn(l),f=1<<s;f&t|o[s]&t&&(o[s]|=t),l&=~f}}function Jm(o,t){var l=t&-t;return l=(l&42)!==0?1:pd(l),(l&(o.suspendedLanes|t))!==0?0:l}function pd(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 kd(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Xm(){var o=G.p;return o!==0?o:(o=window.event,o===void 0?32:Rv(o.type))}function Wm(o,t){var l=G.p;try{return G.p=o,t()}finally{G.p=l}}var br=Math.random().toString(36).slice(2),ln="__reactFiber$"+br,En="__reactProps$"+br,Aa="__reactContainer$"+br,vd="__reactEvents$"+br,yw="__reactListeners$"+br,ww="__reactHandles$"+br,Qm="__reactResources$"+br,Nl="__reactMarker$"+br;function gd(o){delete o[ln],delete o[En],delete o[vd],delete o[yw],delete o[ww]}function Ca(o){var t=o[ln];if(t)return t;for(var l=o.parentNode;l;){if(t=l[Aa]||l[ln]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(o=_v(o);o!==null;){if(l=o[ln])return l;o=_v(o)}return t}o=l,l=o.parentNode}return null}function Ea(o){if(o=o[ln]||o[Aa]){var t=o.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return o}return null}function Bl(o){var t=o.tag;if(t===5||t===26||t===27||t===6)return o.stateNode;throw Error(i(33))}function La(o){var t=o[Qm];return t||(t=o[Qm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nn(o){o[Nl]=!0}var eh=new Set,oh={};function Xr(o,t){Oa(o,t),Oa(o+"Capture",t)}function Oa(o,t){for(oh[o]=t,o=0;o<t.length;o++)eh.add(t[o])}var zw=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]*$"),nh={},th={};function jw(o){return Re.call(th,o)?!0:Re.call(nh,o)?!1:zw.test(o)?th[o]=!0:(nh[o]=!0,!1)}function lc(o,t,l){if(jw(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 ic(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 Rt(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 lt(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function rh(o){var t=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sw(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 _d(o){if(!o._valueTracker){var t=rh(o)?"checked":"value";o._valueTracker=Sw(o,t,""+o[t])}}function ah(o){if(!o)return!1;var t=o._valueTracker;if(!t)return!0;var l=t.getValue(),s="";return o&&(s=rh(o)?o.checked?"true":"false":o.value),o=s,o!==l?(t.setValue(o),!0):!1}function cc(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 Tw=/[\n"\\]/g;function it(o){return o.replace(Tw,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function xd(o,t,l,s,f,b,k,y){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=""+lt(t)):o.value!==""+lt(t)&&(o.value=""+lt(t)):k!=="submit"&&k!=="reset"||o.removeAttribute("value"),t!=null?yd(o,k,lt(t)):l!=null?yd(o,k,lt(l)):s!=null&&o.removeAttribute("value"),f==null&&b!=null&&(o.defaultChecked=!!b),f!=null&&(o.checked=f&&typeof f!="function"&&typeof f!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?o.name=""+lt(y):o.removeAttribute("name")}function lh(o,t,l,s,f,b,k,y){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)){_d(o);return}l=l!=null?""+lt(l):"",t=t!=null?""+lt(t):l,y||t===o.value||(o.value=t),o.defaultValue=t}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,o.checked=y?o.checked:!!s,o.defaultChecked=!!s,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(o.name=k),_d(o)}function yd(o,t,l){t==="number"&&cc(o.ownerDocument)===o||o.defaultValue===""+l||(o.defaultValue=""+l)}function $a(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=""+lt(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 ih(o,t,l){if(t!=null&&(t=""+lt(t),t!==o.value&&(o.value=t),l==null)){o.defaultValue!==t&&(o.defaultValue=t);return}o.defaultValue=l!=null?""+lt(l):""}function ch(o,t,l,s){if(t==null){if(s!=null){if(l!=null)throw Error(i(92));if(He(s)){if(1<s.length)throw Error(i(93));s=s[0]}l=s}l==null&&(l=""),t=l}l=lt(t),o.defaultValue=l,s=o.textContent,s===l&&s!==""&&s!==null&&(o.value=s),_d(o)}function Na(o,t){if(t){var l=o.firstChild;if(l&&l===o.lastChild&&l.nodeType===3){l.nodeValue=t;return}}o.textContent=t}var Aw=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 sh(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||Aw.has(t)?t==="float"?o.cssFloat=l:o[t]=(""+l).trim():o[t]=l+"px"}function dh(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&&sh(o,f,s)}else for(var b in t)t.hasOwnProperty(b)&&sh(o,b,t[b])}function wd(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 Cw=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"]]),Ew=/^[\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 sc(o){return Ew.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Dt(){}var zd=null;function jd(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Ba=null,Ra=null;function uh(o){var t=Ea(o);if(t&&(o=t.stateNode)){var l=o[En]||null;e:switch(o=t.stateNode,t.type){case"input":if(xd(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="'+it(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var s=l[t];if(s!==o&&s.form===o.form){var f=s[En]||null;if(!f)throw Error(i(90));xd(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&&ah(s)}break e;case"textarea":ih(o,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&$a(o,!!l.multiple,t,!1)}}}var Sd=!1;function fh(o,t,l){if(Sd)return o(t,l);Sd=!0;try{var s=o(t);return s}finally{if(Sd=!1,(Ba!==null||Ra!==null)&&(Jc(),Ba&&(t=Ba,o=Ra,Ra=Ba=null,uh(t),o)))for(t=0;t<o.length;t++)uh(o[t])}}function Rl(o,t){var l=o.stateNode;if(l===null)return null;var s=l[En]||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 Mt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Td=!1;if(Mt)try{var Dl={};Object.defineProperty(Dl,"passive",{get:function(){Td=!0}}),window.addEventListener("test",Dl,Dl),window.removeEventListener("test",Dl,Dl)}catch{Td=!1}var mr=null,Ad=null,dc=null;function bh(){if(dc)return dc;var o,t=Ad,l=t.length,s,f="value"in mr?mr.value:mr.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 dc=f.slice(o,1<s?1-s:void 0)}function uc(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 fc(){return!0}function mh(){return!1}function Ln(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 y in o)o.hasOwnProperty(y)&&(l=o[y],this[y]=l?l(b):b[y]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?fc:mh,this.isPropagationStopped=mh,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=fc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=fc)},persist:function(){},isPersistent:fc}),t}var Wr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bc=Ln(Wr),Ml=v({},Wr,{view:0,detail:0}),Lw=Ln(Ml),Cd,Ed,Il,mc=v({},Ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Od,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!==Il&&(Il&&o.type==="mousemove"?(Cd=o.screenX-Il.screenX,Ed=o.screenY-Il.screenY):Ed=Cd=0,Il=o),Cd)},movementY:function(o){return"movementY"in o?o.movementY:Ed}}),hh=Ln(mc),Ow=v({},mc,{dataTransfer:0}),$w=Ln(Ow),Nw=v({},Ml,{relatedTarget:0}),Ld=Ln(Nw),Bw=v({},Wr,{animationName:0,elapsedTime:0,pseudoElement:0}),Rw=Ln(Bw),Dw=v({},Wr,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),Mw=Ln(Dw),Iw=v({},Wr,{data:0}),ph=Ln(Iw),Uw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fw={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"},Hw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kw(o){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(o):(o=Hw[o])?!!t[o]:!1}function Od(){return Kw}var Vw=v({},Ml,{key:function(o){if(o.key){var t=Uw[o.key]||o.key;if(t!=="Unidentified")return t}return o.type==="keypress"?(o=uc(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Fw[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Od,charCode:function(o){return o.type==="keypress"?uc(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?uc(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),qw=Ln(Vw),Zw=v({},mc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kh=Ln(Zw),Pw=v({},Ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Od}),Gw=Ln(Pw),Yw=v({},Wr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jw=Ln(Yw),Xw=v({},mc,{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}),Ww=Ln(Xw),Qw=v({},Wr,{newState:0,oldState:0}),e2=Ln(Qw),o2=[9,13,27,32],$d=Mt&&"CompositionEvent"in window,Ul=null;Mt&&"documentMode"in document&&(Ul=document.documentMode);var n2=Mt&&"TextEvent"in window&&!Ul,vh=Mt&&(!$d||Ul&&8<Ul&&11>=Ul),gh=" ",_h=!1;function xh(o,t){switch(o){case"keyup":return o2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yh(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Da=!1;function t2(o,t){switch(o){case"compositionend":return yh(t);case"keypress":return t.which!==32?null:(_h=!0,gh);case"textInput":return o=t.data,o===gh&&_h?null:o;default:return null}}function r2(o,t){if(Da)return o==="compositionend"||!$d&&xh(o,t)?(o=bh(),dc=Ad=mr=null,Da=!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 vh&&t.locale!=="ko"?null:t.data;default:return null}}var a2={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 wh(o){var t=o&&o.nodeName&&o.nodeName.toLowerCase();return t==="input"?!!a2[o.type]:t==="textarea"}function zh(o,t,l,s){Ba?Ra?Ra.push(s):Ra=[s]:Ba=s,t=ts(t,"onChange"),0<t.length&&(l=new bc("onChange","change",null,l,s),o.push({event:l,listeners:t}))}var Fl=null,Hl=null;function l2(o){lv(o,0)}function hc(o){var t=Bl(o);if(ah(t))return o}function jh(o,t){if(o==="change")return t}var Sh=!1;if(Mt){var Nd;if(Mt){var Bd="oninput"in document;if(!Bd){var Th=document.createElement("div");Th.setAttribute("oninput","return;"),Bd=typeof Th.oninput=="function"}Nd=Bd}else Nd=!1;Sh=Nd&&(!document.documentMode||9<document.documentMode)}function Ah(){Fl&&(Fl.detachEvent("onpropertychange",Ch),Hl=Fl=null)}function Ch(o){if(o.propertyName==="value"&&hc(Hl)){var t=[];zh(t,Hl,o,jd(o)),fh(l2,t)}}function i2(o,t,l){o==="focusin"?(Ah(),Fl=t,Hl=l,Fl.attachEvent("onpropertychange",Ch)):o==="focusout"&&Ah()}function c2(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return hc(Hl)}function s2(o,t){if(o==="click")return hc(t)}function d2(o,t){if(o==="input"||o==="change")return hc(t)}function u2(o,t){return o===t&&(o!==0||1/o===1/t)||o!==o&&t!==t}var Kn=typeof Object.is=="function"?Object.is:u2;function Kl(o,t){if(Kn(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(!Re.call(t,f)||!Kn(o[f],t[f]))return!1}return!0}function Eh(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Lh(o,t){var l=Eh(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=Eh(l)}}function Oh(o,t){return o&&t?o===t?!0:o&&o.nodeType===3?!1:t&&t.nodeType===3?Oh(o,t.parentNode):"contains"in o?o.contains(t):o.compareDocumentPosition?!!(o.compareDocumentPosition(t)&16):!1:!1}function $h(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var t=cc(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=cc(o.document)}return t}function Rd(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 f2=Mt&&"documentMode"in document&&11>=document.documentMode,Ma=null,Dd=null,Vl=null,Md=!1;function Nh(o,t,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Md||Ma==null||Ma!==cc(s)||(s=Ma,"selectionStart"in s&&Rd(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}),Vl&&Kl(Vl,s)||(Vl=s,s=ts(Dd,"onSelect"),0<s.length&&(t=new bc("onSelect","select",null,t,l),o.push({event:t,listeners:s}),t.target=Ma)))}function Qr(o,t){var l={};return l[o.toLowerCase()]=t.toLowerCase(),l["Webkit"+o]="webkit"+t,l["Moz"+o]="moz"+t,l}var Ia={animationend:Qr("Animation","AnimationEnd"),animationiteration:Qr("Animation","AnimationIteration"),animationstart:Qr("Animation","AnimationStart"),transitionrun:Qr("Transition","TransitionRun"),transitionstart:Qr("Transition","TransitionStart"),transitioncancel:Qr("Transition","TransitionCancel"),transitionend:Qr("Transition","TransitionEnd")},Id={},Bh={};Mt&&(Bh=document.createElement("div").style,"AnimationEvent"in window||(delete Ia.animationend.animation,delete Ia.animationiteration.animation,delete Ia.animationstart.animation),"TransitionEvent"in window||delete Ia.transitionend.transition);function ea(o){if(Id[o])return Id[o];if(!Ia[o])return o;var t=Ia[o],l;for(l in t)if(t.hasOwnProperty(l)&&l in Bh)return Id[o]=t[l];return o}var Rh=ea("animationend"),Dh=ea("animationiteration"),Mh=ea("animationstart"),b2=ea("transitionrun"),m2=ea("transitionstart"),h2=ea("transitioncancel"),Ih=ea("transitionend"),Uh=new Map,Ud="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(" ");Ud.push("scrollEnd");function _t(o,t){Uh.set(o,t),Xr(t,[o])}var pc=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)},ct=[],Ua=0,Fd=0;function kc(){for(var o=Ua,t=Fd=Ua=0;t<o;){var l=ct[t];ct[t++]=null;var s=ct[t];ct[t++]=null;var f=ct[t];ct[t++]=null;var b=ct[t];if(ct[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&&Fh(l,f,b)}}function vc(o,t,l,s){ct[Ua++]=o,ct[Ua++]=t,ct[Ua++]=l,ct[Ua++]=s,Fd|=s,o.lanes|=s,o=o.alternate,o!==null&&(o.lanes|=s)}function Hd(o,t,l,s){return vc(o,t,l,s),gc(o)}function oa(o,t){return vc(o,null,null,t),gc(o)}function Fh(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-zn(l),o=b.hiddenUpdates,s=o[f],s===null?o[f]=[t]:s.push(t),t.lane=l|536870912),b):null}function gc(o){if(50<fi)throw fi=0,Xu=null,Error(i(185));for(var t=o.return;t!==null;)o=t,t=o.return;return o.tag===3?o.stateNode:null}var Fa={};function p2(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 Vn(o,t,l,s){return new p2(o,t,l,s)}function Kd(o){return o=o.prototype,!(!o||!o.isReactComponent)}function It(o,t){var l=o.alternate;return l===null?(l=Vn(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 Hh(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 _c(o,t,l,s,f,b){var k=0;if(s=o,typeof o=="function")Kd(o)&&(k=1);else if(typeof o=="string")k=xz(o,l,be.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case se:return o=Vn(31,l,t,f),o.elementType=se,o.lanes=b,o;case S:return na(l.children,f,b,t);case O:k=8,f|=24;break;case E:return o=Vn(12,l,t,f|2),o.elementType=E,o.lanes=b,o;case D:return o=Vn(13,l,t,f),o.elementType=D,o.lanes=b,o;case F:return o=Vn(19,l,t,f),o.elementType=F,o.lanes=b,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case w:k=10;break e;case _:k=9;break e;case $:k=11;break e;case Z:k=14;break e;case ee:k=16,s=null;break e}k=29,l=Error(i(130,o===null?"null":typeof o,"")),s=null}return t=Vn(k,l,t,f),t.elementType=o,t.type=s,t.lanes=b,t}function na(o,t,l,s){return o=Vn(7,o,s,t),o.lanes=l,o}function Vd(o,t,l){return o=Vn(6,o,null,t),o.lanes=l,o}function Kh(o){var t=Vn(18,null,null,0);return t.stateNode=o,t}function qd(o,t,l){return t=Vn(4,o.children!==null?o.children:[],o.key,t),t.lanes=l,t.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},t}var Vh=new WeakMap;function st(o,t){if(typeof o=="object"&&o!==null){var l=Vh.get(o);return l!==void 0?l:(t={value:o,source:t,stack:ke(t)},Vh.set(o,t),t)}return{value:o,source:t,stack:ke(t)}}var Ha=[],Ka=0,xc=null,ql=0,dt=[],ut=0,hr=null,At=1,Ct="";function Ut(o,t){Ha[Ka++]=ql,Ha[Ka++]=xc,xc=o,ql=t}function qh(o,t,l){dt[ut++]=At,dt[ut++]=Ct,dt[ut++]=hr,hr=o;var s=At;o=Ct;var f=32-zn(s)-1;s&=~(1<<f),l+=1;var b=32-zn(t)+f;if(30<b){var k=f-f%5;b=(s&(1<<k)-1).toString(32),s>>=k,f-=k,At=1<<32-zn(t)+f|l<<f|s,Ct=b+o}else At=1<<b|l<<f|s,Ct=o}function Zd(o){o.return!==null&&(Ut(o,1),qh(o,1,0))}function Pd(o){for(;o===xc;)xc=Ha[--Ka],Ha[Ka]=null,ql=Ha[--Ka],Ha[Ka]=null;for(;o===hr;)hr=dt[--ut],dt[ut]=null,Ct=dt[--ut],dt[ut]=null,At=dt[--ut],dt[ut]=null}function Zh(o,t){dt[ut++]=At,dt[ut++]=Ct,dt[ut++]=hr,At=t.id,Ct=t.overflow,hr=o}var cn=null,xo=null,We=!1,pr=null,ft=!1,Gd=Error(i(519));function kr(o){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zl(st(t,o)),Gd}function Ph(o){var t=o.stateNode,l=o.type,s=o.memoizedProps;switch(t[ln]=o,t[En]=s,l){case"dialog":Ze("cancel",t),Ze("close",t);break;case"iframe":case"object":case"embed":Ze("load",t);break;case"video":case"audio":for(l=0;l<mi.length;l++)Ze(mi[l],t);break;case"source":Ze("error",t);break;case"img":case"image":case"link":Ze("error",t),Ze("load",t);break;case"details":Ze("toggle",t);break;case"input":Ze("invalid",t),lh(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ze("invalid",t);break;case"textarea":Ze("invalid",t),ch(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||dv(t.textContent,l)?(s.popover!=null&&(Ze("beforetoggle",t),Ze("toggle",t)),s.onScroll!=null&&Ze("scroll",t),s.onScrollEnd!=null&&Ze("scrollend",t),s.onClick!=null&&(t.onclick=Dt),t=!0):t=!1,t||kr(o,!0)}function Gh(o){for(cn=o.return;cn;)switch(cn.tag){case 5:case 31:case 13:ft=!1;return;case 27:case 3:ft=!0;return;default:cn=cn.return}}function Va(o){if(o!==cn)return!1;if(!We)return Gh(o),We=!0,!1;var t=o.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=o.type,l=!(l!=="form"&&l!=="button")||bf(o.type,o.memoizedProps)),l=!l),l&&xo&&kr(o),Gh(o),t===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));xo=gv(o)}else if(t===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));xo=gv(o)}else t===27?(t=xo,Lr(o.type)?(o=vf,vf=null,xo=o):xo=t):xo=cn?mt(o.stateNode.nextSibling):null;return!0}function ta(){xo=cn=null,We=!1}function Yd(){var o=pr;return o!==null&&(Bn===null?Bn=o:Bn.push.apply(Bn,o),pr=null),o}function Zl(o){pr===null?pr=[o]:pr.push(o)}var Jd=C(null),ra=null,Ft=null;function vr(o,t,l){le(Jd,t._currentValue),t._currentValue=l}function Ht(o){o._currentValue=Jd.current,P(Jd)}function Xd(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 Wd(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 y=b;b=f;for(var A=0;A<t.length;A++)if(y.context===t[A]){b.lanes|=l,y=b.alternate,y!==null&&(y.lanes|=l),Xd(b.return,l,o),s||(k=null);break e}b=y.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),Xd(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 qa(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 y=f.type;Kn(f.pendingProps.value,k.value)||(o!==null?o.push(y):o=[y])}}else if(f===Ge.current){if(k=f.alternate,k===null)throw Error(i(387));k.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(o!==null?o.push(gi):o=[gi])}f=f.return}o!==null&&Wd(t,o,l,s),t.flags|=262144}function yc(o){for(o=o.firstContext;o!==null;){if(!Kn(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function aa(o){ra=o,Ft=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function sn(o){return Yh(ra,o)}function wc(o,t){return ra===null&&aa(o),Yh(o,t)}function Yh(o,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Ft===null){if(o===null)throw Error(i(308));Ft=t,o.dependencies={lanes:0,firstContext:t},o.flags|=524288}else Ft=Ft.next=t;return l}var k2=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()})}},v2=e.unstable_scheduleCallback,g2=e.unstable_NormalPriority,Ho={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qd(){return{controller:new k2,data:new Map,refCount:0}}function Pl(o){o.refCount--,o.refCount===0&&v2(g2,function(){o.controller.abort()})}var Gl=null,eu=0,Za=0,Pa=null;function _2(o,t){if(Gl===null){var l=Gl=[];eu=0,Za=tf(),Pa={status:"pending",value:void 0,then:function(s){l.push(s)}}}return eu++,t.then(Jh,Jh),t}function Jh(){if(--eu===0&&Gl!==null){Pa!==null&&(Pa.status="fulfilled");var o=Gl;Gl=null,Za=0,Pa=null;for(var t=0;t<o.length;t++)(0,o[t])()}}function x2(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 Xh=M.S;M.S=function(o,t){Nk=te(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&_2(o,t),Xh!==null&&Xh(o,t)};var la=C(null);function ou(){var o=la.current;return o!==null?o:go.pooledCache}function zc(o,t){t===null?le(la,la.current):le(la,t.pool)}function Wh(){var o=ou();return o===null?null:{parent:Ho._currentValue,pool:o}}var Ga=Error(i(460)),nu=Error(i(474)),jc=Error(i(542)),Sc={then:function(){}};function Qh(o){return o=o.status,o==="fulfilled"||o==="rejected"}function ep(o,t,l){switch(l=o[l],l===void 0?o.push(t):l!==t&&(t.then(Dt,Dt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw o=t.reason,np(o),o;default:if(typeof t.status=="string")t.then(Dt,Dt);else{if(o=go,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,np(o),o}throw ca=t,Ga}}function ia(o){try{var t=o._init;return t(o._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ca=l,Ga):l}}var ca=null;function op(){if(ca===null)throw Error(i(459));var o=ca;return ca=null,o}function np(o){if(o===Ga||o===jc)throw Error(i(483))}var Ya=null,Yl=0;function Tc(o){var t=Yl;return Yl+=1,Ya===null&&(Ya=[]),ep(Ya,o,t)}function Jl(o,t){t=t.props.ref,o.ref=t!==void 0?t:null}function Ac(o,t){throw t.$$typeof===x?Error(i(525)):(o=Object.prototype.toString.call(t),Error(i(31,o==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":o)))}function tp(o){function t(R,L){if(o){var I=R.deletions;I===null?(R.deletions=[L],R.flags|=16):I.push(L)}}function l(R,L){if(!o)return null;for(;L!==null;)t(R,L),L=L.sibling;return null}function s(R){for(var L=new Map;R!==null;)R.key!==null?L.set(R.key,R):L.set(R.index,R),R=R.sibling;return L}function f(R,L){return R=It(R,L),R.index=0,R.sibling=null,R}function b(R,L,I){return R.index=I,o?(I=R.alternate,I!==null?(I=I.index,I<L?(R.flags|=67108866,L):I):(R.flags|=67108866,L)):(R.flags|=1048576,L)}function k(R){return o&&R.alternate===null&&(R.flags|=67108866),R}function y(R,L,I,J){return L===null||L.tag!==6?(L=Vd(I,R.mode,J),L.return=R,L):(L=f(L,I),L.return=R,L)}function A(R,L,I,J){var ze=I.type;return ze===S?Y(R,L,I.props.children,J,I.key):L!==null&&(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===ee&&ia(ze)===L.type)?(L=f(L,I.props),Jl(L,I),L.return=R,L):(L=_c(I.type,I.key,I.props,null,R.mode,J),Jl(L,I),L.return=R,L)}function U(R,L,I,J){return L===null||L.tag!==4||L.stateNode.containerInfo!==I.containerInfo||L.stateNode.implementation!==I.implementation?(L=qd(I,R.mode,J),L.return=R,L):(L=f(L,I.children||[]),L.return=R,L)}function Y(R,L,I,J,ze){return L===null||L.tag!==7?(L=na(I,R.mode,J,ze),L.return=R,L):(L=f(L,I),L.return=R,L)}function Q(R,L,I){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Vd(""+L,R.mode,I),L.return=R,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case z:return I=_c(L.type,L.key,L.props,null,R.mode,I),Jl(I,L),I.return=R,I;case N:return L=qd(L,R.mode,I),L.return=R,L;case ee:return L=ia(L),Q(R,L,I)}if(He(L)||ne(L))return L=na(L,R.mode,I,null),L.return=R,L;if(typeof L.then=="function")return Q(R,Tc(L),I);if(L.$$typeof===w)return Q(R,wc(R,L),I);Ac(R,L)}return null}function K(R,L,I,J){var ze=L!==null?L.key:null;if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return ze!==null?null:y(R,L,""+I,J);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case z:return I.key===ze?A(R,L,I,J):null;case N:return I.key===ze?U(R,L,I,J):null;case ee:return I=ia(I),K(R,L,I,J)}if(He(I)||ne(I))return ze!==null?null:Y(R,L,I,J,null);if(typeof I.then=="function")return K(R,L,Tc(I),J);if(I.$$typeof===w)return K(R,L,wc(R,I),J);Ac(R,I)}return null}function q(R,L,I,J,ze){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return R=R.get(I)||null,y(L,R,""+J,ze);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case z:return R=R.get(J.key===null?I:J.key)||null,A(L,R,J,ze);case N:return R=R.get(J.key===null?I:J.key)||null,U(L,R,J,ze);case ee:return J=ia(J),q(R,L,I,J,ze)}if(He(J)||ne(J))return R=R.get(I)||null,Y(L,R,J,ze,null);if(typeof J.then=="function")return q(R,L,I,Tc(J),ze);if(J.$$typeof===w)return q(R,L,I,wc(L,J),ze);Ac(L,J)}return null}function pe(R,L,I,J){for(var ze=null,no=null,ge=L,Ie=L=0,Je=null;ge!==null&&Ie<I.length;Ie++){ge.index>Ie?(Je=ge,ge=null):Je=ge.sibling;var to=K(R,ge,I[Ie],J);if(to===null){ge===null&&(ge=Je);break}o&&ge&&to.alternate===null&&t(R,ge),L=b(to,L,Ie),no===null?ze=to:no.sibling=to,no=to,ge=Je}if(Ie===I.length)return l(R,ge),We&&Ut(R,Ie),ze;if(ge===null){for(;Ie<I.length;Ie++)ge=Q(R,I[Ie],J),ge!==null&&(L=b(ge,L,Ie),no===null?ze=ge:no.sibling=ge,no=ge);return We&&Ut(R,Ie),ze}for(ge=s(ge);Ie<I.length;Ie++)Je=q(ge,R,Ie,I[Ie],J),Je!==null&&(o&&Je.alternate!==null&&ge.delete(Je.key===null?Ie:Je.key),L=b(Je,L,Ie),no===null?ze=Je:no.sibling=Je,no=Je);return o&&ge.forEach(function(Rr){return t(R,Rr)}),We&&Ut(R,Ie),ze}function Ae(R,L,I,J){if(I==null)throw Error(i(151));for(var ze=null,no=null,ge=L,Ie=L=0,Je=null,to=I.next();ge!==null&&!to.done;Ie++,to=I.next()){ge.index>Ie?(Je=ge,ge=null):Je=ge.sibling;var Rr=K(R,ge,to.value,J);if(Rr===null){ge===null&&(ge=Je);break}o&&ge&&Rr.alternate===null&&t(R,ge),L=b(Rr,L,Ie),no===null?ze=Rr:no.sibling=Rr,no=Rr,ge=Je}if(to.done)return l(R,ge),We&&Ut(R,Ie),ze;if(ge===null){for(;!to.done;Ie++,to=I.next())to=Q(R,to.value,J),to!==null&&(L=b(to,L,Ie),no===null?ze=to:no.sibling=to,no=to);return We&&Ut(R,Ie),ze}for(ge=s(ge);!to.done;Ie++,to=I.next())to=q(ge,R,Ie,to.value,J),to!==null&&(o&&to.alternate!==null&&ge.delete(to.key===null?Ie:to.key),L=b(to,L,Ie),no===null?ze=to:no.sibling=to,no=to);return o&&ge.forEach(function(Oz){return t(R,Oz)}),We&&Ut(R,Ie),ze}function vo(R,L,I,J){if(typeof I=="object"&&I!==null&&I.type===S&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case z:e:{for(var ze=I.key;L!==null;){if(L.key===ze){if(ze=I.type,ze===S){if(L.tag===7){l(R,L.sibling),J=f(L,I.props.children),J.return=R,R=J;break e}}else if(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===ee&&ia(ze)===L.type){l(R,L.sibling),J=f(L,I.props),Jl(J,I),J.return=R,R=J;break e}l(R,L);break}else t(R,L);L=L.sibling}I.type===S?(J=na(I.props.children,R.mode,J,I.key),J.return=R,R=J):(J=_c(I.type,I.key,I.props,null,R.mode,J),Jl(J,I),J.return=R,R=J)}return k(R);case N:e:{for(ze=I.key;L!==null;){if(L.key===ze)if(L.tag===4&&L.stateNode.containerInfo===I.containerInfo&&L.stateNode.implementation===I.implementation){l(R,L.sibling),J=f(L,I.children||[]),J.return=R,R=J;break e}else{l(R,L);break}else t(R,L);L=L.sibling}J=qd(I,R.mode,J),J.return=R,R=J}return k(R);case ee:return I=ia(I),vo(R,L,I,J)}if(He(I))return pe(R,L,I,J);if(ne(I)){if(ze=ne(I),typeof ze!="function")throw Error(i(150));return I=ze.call(I),Ae(R,L,I,J)}if(typeof I.then=="function")return vo(R,L,Tc(I),J);if(I.$$typeof===w)return vo(R,L,wc(R,I),J);Ac(R,I)}return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,L!==null&&L.tag===6?(l(R,L.sibling),J=f(L,I),J.return=R,R=J):(l(R,L),J=Vd(I,R.mode,J),J.return=R,R=J),k(R)):l(R,L)}return function(R,L,I,J){try{Yl=0;var ze=vo(R,L,I,J);return Ya=null,ze}catch(ge){if(ge===Ga||ge===jc)throw ge;var no=Vn(29,ge,null,R.mode);return no.lanes=J,no.return=R,no}finally{}}}var sa=tp(!0),rp=tp(!1),gr=!1;function tu(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ru(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 _r(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function xr(o,t,l){var s=o.updateQueue;if(s===null)return null;if(s=s.shared,(co&2)!==0){var f=s.pending;return f===null?t.next=t:(t.next=f.next,f.next=t),s.pending=t,t=gc(o),Fh(o,null,l),t}return vc(o,s,t,l),gc(o)}function Xl(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,Ym(o,l)}}function au(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 lu=!1;function Wl(){if(lu){var o=Pa;if(o!==null)throw o}}function Ql(o,t,l,s){lu=!1;var f=o.updateQueue;gr=!1;var b=f.firstBaseUpdate,k=f.lastBaseUpdate,y=f.shared.pending;if(y!==null){f.shared.pending=null;var A=y,U=A.next;A.next=null,k===null?b=U:k.next=U,k=A;var Y=o.alternate;Y!==null&&(Y=Y.updateQueue,y=Y.lastBaseUpdate,y!==k&&(y===null?Y.firstBaseUpdate=U:y.next=U,Y.lastBaseUpdate=A))}if(b!==null){var Q=f.baseState;k=0,Y=U=A=null,y=b;do{var K=y.lane&-536870913,q=K!==y.lane;if(q?(Ye&K)===K:(s&K)===K){K!==0&&K===Za&&(lu=!0),Y!==null&&(Y=Y.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var pe=o,Ae=y;K=t;var vo=l;switch(Ae.tag){case 1:if(pe=Ae.payload,typeof pe=="function"){Q=pe.call(vo,Q,K);break e}Q=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Ae.payload,K=typeof pe=="function"?pe.call(vo,Q,K):pe,K==null)break e;Q=v({},Q,K);break e;case 2:gr=!0}}K=y.callback,K!==null&&(o.flags|=64,q&&(o.flags|=8192),q=f.callbacks,q===null?f.callbacks=[K]:q.push(K))}else q={lane:K,tag:y.tag,payload:y.payload,callback:y.callback,next:null},Y===null?(U=Y=q,A=Q):Y=Y.next=q,k|=K;if(y=y.next,y===null){if(y=f.shared.pending,y===null)break;q=y,y=q.next,q.next=null,f.lastBaseUpdate=q,f.shared.pending=null}}while(!0);Y===null&&(A=Q),f.baseState=A,f.firstBaseUpdate=U,f.lastBaseUpdate=Y,b===null&&(f.shared.lanes=0),Sr|=k,o.lanes=k,o.memoizedState=Q}}function ap(o,t){if(typeof o!="function")throw Error(i(191,o));o.call(t)}function lp(o,t){var l=o.callbacks;if(l!==null)for(o.callbacks=null,o=0;o<l.length;o++)ap(l[o],t)}var Ja=C(null),Cc=C(0);function ip(o,t){o=Xt,le(Cc,o),le(Ja,t),Xt=o|t.baseLanes}function iu(){le(Cc,Xt),le(Ja,Ja.current)}function cu(){Xt=Cc.current,P(Ja),P(Cc)}var qn=C(null),bt=null;function yr(o){var t=o.alternate;le(Uo,Uo.current&1),le(qn,o),bt===null&&(t===null||Ja.current!==null||t.memoizedState!==null)&&(bt=o)}function su(o){le(Uo,Uo.current),le(qn,o),bt===null&&(bt=o)}function cp(o){o.tag===22?(le(Uo,Uo.current),le(qn,o),bt===null&&(bt=o)):wr()}function wr(){le(Uo,Uo.current),le(qn,qn.current)}function Zn(o){P(qn),bt===o&&(bt=null),P(Uo)}var Uo=C(0);function Ec(o){for(var t=o;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||pf(l)||kf(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 Kt=0,Me=null,po=null,Ko=null,Lc=!1,Xa=!1,da=!1,Oc=0,ei=0,Wa=null,y2=0;function No(){throw Error(i(321))}function du(o,t){if(t===null)return!1;for(var l=0;l<t.length&&l<o.length;l++)if(!Kn(o[l],t[l]))return!1;return!0}function uu(o,t,l,s,f,b){return Kt=b,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=o===null||o.memoizedState===null?qp:Su,da=!1,b=l(s,f),da=!1,Xa&&(b=dp(t,l,s,f)),sp(o),b}function sp(o){M.H=ti;var t=po!==null&&po.next!==null;if(Kt=0,Ko=po=Me=null,Lc=!1,ei=0,Wa=null,t)throw Error(i(300));o===null||Vo||(o=o.dependencies,o!==null&&yc(o)&&(Vo=!0))}function dp(o,t,l,s){Me=o;var f=0;do{if(Xa&&(Wa=null),ei=0,Xa=!1,25<=f)throw Error(i(301));if(f+=1,Ko=po=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=Zp,b=t(l,s)}while(Xa);return b}function w2(){var o=M.H,t=o.useState()[0];return t=typeof t.then=="function"?oi(t):t,o=o.useState()[0],(po!==null?po.memoizedState:null)!==o&&(Me.flags|=1024),t}function fu(){var o=Oc!==0;return Oc=0,o}function bu(o,t,l){t.updateQueue=o.updateQueue,t.flags&=-2053,o.lanes&=~l}function mu(o){if(Lc){for(o=o.memoizedState;o!==null;){var t=o.queue;t!==null&&(t.pending=null),o=o.next}Lc=!1}Kt=0,Ko=po=Me=null,Xa=!1,ei=Oc=0,Wa=null}function jn(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ko===null?Me.memoizedState=Ko=o:Ko=Ko.next=o,Ko}function Fo(){if(po===null){var o=Me.alternate;o=o!==null?o.memoizedState:null}else o=po.next;var t=Ko===null?Me.memoizedState:Ko.next;if(t!==null)Ko=t,po=o;else{if(o===null)throw Me.alternate===null?Error(i(467)):Error(i(310));po=o,o={memoizedState:po.memoizedState,baseState:po.baseState,baseQueue:po.baseQueue,queue:po.queue,next:null},Ko===null?Me.memoizedState=Ko=o:Ko=Ko.next=o}return Ko}function $c(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function oi(o){var t=ei;return ei+=1,Wa===null&&(Wa=[]),o=ep(Wa,o,t),t=Me,(Ko===null?t.memoizedState:Ko.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?qp:Su),o}function Nc(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return oi(o);if(o.$$typeof===w)return sn(o)}throw Error(i(438,String(o)))}function hu(o){var t=null,l=Me.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var s=Me.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=$c(),Me.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]=$e;return t.index++,l}function Vt(o,t){return typeof t=="function"?t(o):t}function Bc(o){var t=Fo();return pu(t,po,o)}function pu(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 y=k=null,A=null,U=t,Y=!1;do{var Q=U.lane&-536870913;if(Q!==U.lane?(Ye&Q)===Q:(Kt&Q)===Q){var K=U.revertLane;if(K===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),Q===Za&&(Y=!0);else if((Kt&K)===K){U=U.next,K===Za&&(Y=!0);continue}else Q={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(y=A=Q,k=b):A=A.next=Q,Me.lanes|=K,Sr|=K;Q=U.action,da&&l(b,Q),b=U.hasEagerState?U.eagerState:l(b,Q)}else K={lane:Q,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(y=A=K,k=b):A=A.next=K,Me.lanes|=Q,Sr|=Q;U=U.next}while(U!==null&&U!==t);if(A===null?k=b:A.next=y,!Kn(b,o.memoizedState)&&(Vo=!0,Y&&(l=Pa,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 ku(o){var t=Fo(),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);Kn(b,t.memoizedState)||(Vo=!0),t.memoizedState=b,t.baseQueue===null&&(t.baseState=b),l.lastRenderedState=b}return[b,s]}function up(o,t,l){var s=Me,f=Fo(),b=We;if(b){if(l===void 0)throw Error(i(407));l=l()}else l=t();var k=!Kn((po||f).memoizedState,l);if(k&&(f.memoizedState=l,Vo=!0),f=f.queue,_u(mp.bind(null,s,f,o),[o]),f.getSnapshot!==t||k||Ko!==null&&Ko.memoizedState.tag&1){if(s.flags|=2048,Qa(9,{destroy:void 0},bp.bind(null,s,f,l,t),null),go===null)throw Error(i(349));b||(Kt&127)!==0||fp(s,t,l)}return l}function fp(o,t,l){o.flags|=16384,o={getSnapshot:t,value:l},t=Me.updateQueue,t===null?(t=$c(),Me.updateQueue=t,t.stores=[o]):(l=t.stores,l===null?t.stores=[o]:l.push(o))}function bp(o,t,l,s){t.value=l,t.getSnapshot=s,hp(t)&&pp(o)}function mp(o,t,l){return l(function(){hp(t)&&pp(o)})}function hp(o){var t=o.getSnapshot;o=o.value;try{var l=t();return!Kn(o,l)}catch{return!0}}function pp(o){var t=oa(o,2);t!==null&&Rn(t,o,2)}function vu(o){var t=jn();if(typeof o=="function"){var l=o;if(o=l(),da){at(!0);try{l()}finally{at(!1)}}}return t.memoizedState=t.baseState=o,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:o},t}function kp(o,t,l,s){return o.baseState=l,pu(o,po,typeof s=="function"?s:Vt)}function z2(o,t,l,s,f){if(Mc(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,vp(t,b)):(b.next=l.next,t.pending=l.next=b)}}function vp(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 y=l(f,s),A=M.S;A!==null&&A(k,y),gp(o,t,y)}catch(U){gu(o,t,U)}finally{b!==null&&k.types!==null&&(b.types=k.types),M.T=b}}else try{b=l(f,s),gp(o,t,b)}catch(U){gu(o,t,U)}}function gp(o,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){_p(o,t,s)},function(s){return gu(o,t,s)}):_p(o,t,l)}function _p(o,t,l){t.status="fulfilled",t.value=l,xp(t),o.state=l,t=o.pending,t!==null&&(l=t.next,l===t?o.pending=null:(l=l.next,t.next=l,vp(o,l)))}function gu(o,t,l){var s=o.pending;if(o.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=l,xp(t),t=t.next;while(t!==s)}o.action=null}function xp(o){o=o.listeners;for(var t=0;t<o.length;t++)(0,o[t])()}function yp(o,t){return t}function wp(o,t){if(We){var l=go.formState;if(l!==null){e:{var s=Me;if(We){if(xo){o:{for(var f=xo,b=ft;f.nodeType!==8;){if(!b){f=null;break o}if(f=mt(f.nextSibling),f===null){f=null;break o}}b=f.data,f=b==="F!"||b==="F"?f:null}if(f){xo=mt(f.nextSibling),s=f.data==="F!";break e}}kr(s)}s=!1}s&&(t=l[0])}}return l=jn(),l.memoizedState=l.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yp,lastRenderedState:t},l.queue=s,l=Hp.bind(null,Me,s),s.dispatch=l,s=vu(!1),b=ju.bind(null,Me,!1,s.queue),s=jn(),f={state:t,dispatch:null,action:o,pending:null},s.queue=f,l=z2.bind(null,Me,f,b,l),f.dispatch=l,s.memoizedState=o,[t,l,!1]}function zp(o){var t=Fo();return jp(t,po,o)}function jp(o,t,l){if(t=pu(o,t,yp)[0],o=Bc(Vt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=oi(t)}catch(k){throw k===Ga?jc:k}else s=t;t=Fo();var f=t.queue,b=f.dispatch;return l!==t.memoizedState&&(Me.flags|=2048,Qa(9,{destroy:void 0},j2.bind(null,f,l),null)),[s,b,o]}function j2(o,t){o.action=t}function Sp(o){var t=Fo(),l=po;if(l!==null)return jp(t,l,o);Fo(),t=t.memoizedState,l=Fo();var s=l.queue.dispatch;return l.memoizedState=o,[t,s,!1]}function Qa(o,t,l,s){return o={tag:o,create:l,deps:s,inst:t,next:null},t=Me.updateQueue,t===null&&(t=$c(),Me.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 Tp(){return Fo().memoizedState}function Rc(o,t,l,s){var f=jn();Me.flags|=o,f.memoizedState=Qa(1|t,{destroy:void 0},l,s===void 0?null:s)}function Dc(o,t,l,s){var f=Fo();s=s===void 0?null:s;var b=f.memoizedState.inst;po!==null&&s!==null&&du(s,po.memoizedState.deps)?f.memoizedState=Qa(t,b,l,s):(Me.flags|=o,f.memoizedState=Qa(1|t,b,l,s))}function Ap(o,t){Rc(8390656,8,o,t)}function _u(o,t){Dc(2048,8,o,t)}function S2(o){Me.flags|=4;var t=Me.updateQueue;if(t===null)t=$c(),Me.updateQueue=t,t.events=[o];else{var l=t.events;l===null?t.events=[o]:l.push(o)}}function Cp(o){var t=Fo().memoizedState;return S2({ref:t,nextImpl:o}),function(){if((co&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Ep(o,t){return Dc(4,2,o,t)}function Lp(o,t){return Dc(4,4,o,t)}function Op(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 $p(o,t,l){l=l!=null?l.concat([o]):null,Dc(4,4,Op.bind(null,t,o),l)}function xu(){}function Np(o,t){var l=Fo();t=t===void 0?null:t;var s=l.memoizedState;return t!==null&&du(t,s[1])?s[0]:(l.memoizedState=[o,t],o)}function Bp(o,t){var l=Fo();t=t===void 0?null:t;var s=l.memoizedState;if(t!==null&&du(t,s[1]))return s[0];if(s=o(),da){at(!0);try{o()}finally{at(!1)}}return l.memoizedState=[s,t],s}function yu(o,t,l){return l===void 0||(Kt&1073741824)!==0&&(Ye&261930)===0?o.memoizedState=t:(o.memoizedState=l,o=Rk(),Me.lanes|=o,Sr|=o,l)}function Rp(o,t,l,s){return Kn(l,t)?l:Ja.current!==null?(o=yu(o,l,s),Kn(o,t)||(Vo=!0),o):(Kt&42)===0||(Kt&1073741824)!==0&&(Ye&261930)===0?(Vo=!0,o.memoizedState=l):(o=Rk(),Me.lanes|=o,Sr|=o,t)}function Dp(o,t,l,s,f){var b=G.p;G.p=b!==0&&8>b?b:8;var k=M.T,y={};M.T=y,ju(o,!1,t,l);try{var A=f(),U=M.S;if(U!==null&&U(y,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var Y=x2(A,s);ni(o,t,Y,Yn(o))}else ni(o,t,s,Yn(o))}catch(Q){ni(o,t,{then:function(){},status:"rejected",reason:Q},Yn())}finally{G.p=b,k!==null&&y.types!==null&&(k.types=y.types),M.T=k}}function T2(){}function wu(o,t,l,s){if(o.tag!==5)throw Error(i(476));var f=Mp(o).queue;Dp(o,f,t,ie,l===null?T2:function(){return Ip(o),l(s)})}function Mp(o){var t=o.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:ie},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:l},next:null},o.memoizedState=t,o=o.alternate,o!==null&&(o.memoizedState=t),t}function Ip(o){var t=Mp(o);t.next===null&&(t=o.alternate.memoizedState),ni(o,t.next.queue,{},Yn())}function zu(){return sn(gi)}function Up(){return Fo().memoizedState}function Fp(){return Fo().memoizedState}function A2(o){for(var t=o.return;t!==null;){switch(t.tag){case 24:case 3:var l=Yn();o=_r(l);var s=xr(t,o,l);s!==null&&(Rn(s,t,l),Xl(s,t,l)),t={cache:Qd()},o.payload=t;return}t=t.return}}function C2(o,t,l){var s=Yn();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mc(o)?Kp(t,l):(l=Hd(o,t,l,s),l!==null&&(Rn(l,o,s),Vp(l,t,s)))}function Hp(o,t,l){var s=Yn();ni(o,t,l,s)}function ni(o,t,l,s){var f={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mc(o))Kp(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,y=b(k,l);if(f.hasEagerState=!0,f.eagerState=y,Kn(y,k))return vc(o,t,f,0),go===null&&kc(),!1}catch{}finally{}if(l=Hd(o,t,f,s),l!==null)return Rn(l,o,s),Vp(l,t,s),!0}return!1}function ju(o,t,l,s){if(s={lane:2,revertLane:tf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Mc(o)){if(t)throw Error(i(479))}else t=Hd(o,l,s,2),t!==null&&Rn(t,o,2)}function Mc(o){var t=o.alternate;return o===Me||t!==null&&t===Me}function Kp(o,t){Xa=Lc=!0;var l=o.pending;l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t}function Vp(o,t,l){if((l&4194048)!==0){var s=t.lanes;s&=o.pendingLanes,l|=s,t.lanes=l,Ym(o,l)}}var ti={readContext:sn,use:Nc,useCallback:No,useContext:No,useEffect:No,useImperativeHandle:No,useLayoutEffect:No,useInsertionEffect:No,useMemo:No,useReducer:No,useRef:No,useState:No,useDebugValue:No,useDeferredValue:No,useTransition:No,useSyncExternalStore:No,useId:No,useHostTransitionStatus:No,useFormState:No,useActionState:No,useOptimistic:No,useMemoCache:No,useCacheRefresh:No};ti.useEffectEvent=No;var qp={readContext:sn,use:Nc,useCallback:function(o,t){return jn().memoizedState=[o,t===void 0?null:t],o},useContext:sn,useEffect:Ap,useImperativeHandle:function(o,t,l){l=l!=null?l.concat([o]):null,Rc(4194308,4,Op.bind(null,t,o),l)},useLayoutEffect:function(o,t){return Rc(4194308,4,o,t)},useInsertionEffect:function(o,t){Rc(4,2,o,t)},useMemo:function(o,t){var l=jn();t=t===void 0?null:t;var s=o();if(da){at(!0);try{o()}finally{at(!1)}}return l.memoizedState=[s,t],s},useReducer:function(o,t,l){var s=jn();if(l!==void 0){var f=l(t);if(da){at(!0);try{l(t)}finally{at(!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=C2.bind(null,Me,o),[s.memoizedState,o]},useRef:function(o){var t=jn();return o={current:o},t.memoizedState=o},useState:function(o){o=vu(o);var t=o.queue,l=Hp.bind(null,Me,t);return t.dispatch=l,[o.memoizedState,l]},useDebugValue:xu,useDeferredValue:function(o,t){var l=jn();return yu(l,o,t)},useTransition:function(){var o=vu(!1);return o=Dp.bind(null,Me,o.queue,!0,!1),jn().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,t,l){var s=Me,f=jn();if(We){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),go===null)throw Error(i(349));(Ye&127)!==0||fp(s,t,l)}f.memoizedState=l;var b={value:l,getSnapshot:t};return f.queue=b,Ap(mp.bind(null,s,b,o),[o]),s.flags|=2048,Qa(9,{destroy:void 0},bp.bind(null,s,b,l,t),null),l},useId:function(){var o=jn(),t=go.identifierPrefix;if(We){var l=Ct,s=At;l=(s&~(1<<32-zn(s)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Oc++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=y2++,t="_"+t+"r_"+l.toString(32)+"_";return o.memoizedState=t},useHostTransitionStatus:zu,useFormState:wp,useActionState:wp,useOptimistic:function(o){var t=jn();t.memoizedState=t.baseState=o;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ju.bind(null,Me,!0,l),l.dispatch=t,[o,t]},useMemoCache:hu,useCacheRefresh:function(){return jn().memoizedState=A2.bind(null,Me)},useEffectEvent:function(o){var t=jn(),l={impl:o};return t.memoizedState=l,function(){if((co&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},Su={readContext:sn,use:Nc,useCallback:Np,useContext:sn,useEffect:_u,useImperativeHandle:$p,useInsertionEffect:Ep,useLayoutEffect:Lp,useMemo:Bp,useReducer:Bc,useRef:Tp,useState:function(){return Bc(Vt)},useDebugValue:xu,useDeferredValue:function(o,t){var l=Fo();return Rp(l,po.memoizedState,o,t)},useTransition:function(){var o=Bc(Vt)[0],t=Fo().memoizedState;return[typeof o=="boolean"?o:oi(o),t]},useSyncExternalStore:up,useId:Up,useHostTransitionStatus:zu,useFormState:zp,useActionState:zp,useOptimistic:function(o,t){var l=Fo();return kp(l,po,o,t)},useMemoCache:hu,useCacheRefresh:Fp};Su.useEffectEvent=Cp;var Zp={readContext:sn,use:Nc,useCallback:Np,useContext:sn,useEffect:_u,useImperativeHandle:$p,useInsertionEffect:Ep,useLayoutEffect:Lp,useMemo:Bp,useReducer:ku,useRef:Tp,useState:function(){return ku(Vt)},useDebugValue:xu,useDeferredValue:function(o,t){var l=Fo();return po===null?yu(l,o,t):Rp(l,po.memoizedState,o,t)},useTransition:function(){var o=ku(Vt)[0],t=Fo().memoizedState;return[typeof o=="boolean"?o:oi(o),t]},useSyncExternalStore:up,useId:Up,useHostTransitionStatus:zu,useFormState:Sp,useActionState:Sp,useOptimistic:function(o,t){var l=Fo();return po!==null?kp(l,po,o,t):(l.baseState=o,[o,l.queue.dispatch])},useMemoCache:hu,useCacheRefresh:Fp};Zp.useEffectEvent=Cp;function Tu(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 Au={enqueueSetState:function(o,t,l){o=o._reactInternals;var s=Yn(),f=_r(s);f.payload=t,l!=null&&(f.callback=l),t=xr(o,f,s),t!==null&&(Rn(t,o,s),Xl(t,o,s))},enqueueReplaceState:function(o,t,l){o=o._reactInternals;var s=Yn(),f=_r(s);f.tag=1,f.payload=t,l!=null&&(f.callback=l),t=xr(o,f,s),t!==null&&(Rn(t,o,s),Xl(t,o,s))},enqueueForceUpdate:function(o,t){o=o._reactInternals;var l=Yn(),s=_r(l);s.tag=2,t!=null&&(s.callback=t),t=xr(o,s,l),t!==null&&(Rn(t,o,l),Xl(t,o,l))}};function Pp(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?!Kl(l,s)||!Kl(f,b):!0}function Gp(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&&Au.enqueueReplaceState(t,t.state,null)}function ua(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 Yp(o){pc(o)}function Jp(o){console.error(o)}function Xp(o){pc(o)}function Ic(o,t){try{var l=o.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function Wp(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 Cu(o,t,l){return l=_r(l),l.tag=3,l.payload={element:null},l.callback=function(){Ic(o,t)},l}function Qp(o){return o=_r(o),o.tag=3,o}function ek(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(){Wp(t,l,s)}}var k=l.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(o.callback=function(){Wp(t,l,s),typeof f!="function"&&(Tr===null?Tr=new Set([this]):Tr.add(this));var y=s.stack;this.componentDidCatch(s.value,{componentStack:y!==null?y:""})})}function E2(o,t,l,s,f){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=l.alternate,t!==null&&qa(t,l,f,!0),l=qn.current,l!==null){switch(l.tag){case 31:case 13:return bt===null?Xc():l.alternate===null&&Bo===0&&(Bo=3),l.flags&=-257,l.flags|=65536,l.lanes=f,s===Sc?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([s]):t.add(s),ef(o,s,f)),!1;case 22:return l.flags|=65536,s===Sc?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)),ef(o,s,f)),!1}throw Error(i(435,l.tag))}return ef(o,s,f),Xc(),!1}if(We)return t=qn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=f,s!==Gd&&(o=Error(i(422),{cause:s}),Zl(st(o,l)))):(s!==Gd&&(t=Error(i(423),{cause:s}),Zl(st(t,l))),o=o.current.alternate,o.flags|=65536,f&=-f,o.lanes|=f,s=st(s,l),f=Cu(o.stateNode,s,f),au(o,f),Bo!==4&&(Bo=2)),!1;var b=Error(i(520),{cause:s});if(b=st(b,l),ui===null?ui=[b]:ui.push(b),Bo!==4&&(Bo=2),t===null)return!0;s=st(s,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,o=f&-f,l.lanes|=o,o=Cu(l.stateNode,s,o),au(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"&&(Tr===null||!Tr.has(b))))return l.flags|=65536,f&=-f,l.lanes|=f,f=Qp(f),ek(f,o,l,s),au(l,f),!1}l=l.return}while(l!==null);return!1}var Eu=Error(i(461)),Vo=!1;function dn(o,t,l,s){t.child=o===null?rp(t,null,l,s):sa(t,o.child,l,s)}function ok(o,t,l,s,f){l=l.render;var b=t.ref;if("ref"in s){var k={};for(var y in s)y!=="ref"&&(k[y]=s[y])}else k=s;return aa(t),s=uu(o,t,l,k,b,f),y=fu(),o!==null&&!Vo?(bu(o,t,f),qt(o,t,f)):(We&&y&&Zd(t),t.flags|=1,dn(o,t,s,f),t.child)}function nk(o,t,l,s,f){if(o===null){var b=l.type;return typeof b=="function"&&!Kd(b)&&b.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=b,tk(o,t,b,s,f)):(o=_c(l.type,null,s,t,t.mode,f),o.ref=t.ref,o.return=t,t.child=o)}if(b=o.child,!Mu(o,f)){var k=b.memoizedProps;if(l=l.compare,l=l!==null?l:Kl,l(k,s)&&o.ref===t.ref)return qt(o,t,f)}return t.flags|=1,o=It(b,s),o.ref=t.ref,o.return=t,t.child=o}function tk(o,t,l,s,f){if(o!==null){var b=o.memoizedProps;if(Kl(b,s)&&o.ref===t.ref)if(Vo=!1,t.pendingProps=s=b,Mu(o,f))(o.flags&131072)!==0&&(Vo=!0);else return t.lanes=o.lanes,qt(o,t,f)}return Lu(o,t,l,s,f)}function rk(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 ak(o,t,b,l,s)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},o!==null&&zc(t,b!==null?b.cachePool:null),b!==null?ip(t,b):iu(),cp(t);else return s=t.lanes=536870912,ak(o,t,b!==null?b.baseLanes|l:l,l,s)}else b!==null?(zc(t,b.cachePool),ip(t,b),wr(),t.memoizedState=null):(o!==null&&zc(t,null),iu(),wr());return dn(o,t,f,l),t.child}function ri(o,t){return o!==null&&o.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ak(o,t,l,s,f){var b=ou();return b=b===null?null:{parent:Ho._currentValue,pool:b},t.memoizedState={baseLanes:l,cachePool:b},o!==null&&zc(t,null),iu(),cp(t),o!==null&&qa(o,t,s,!0),t.childLanes=f,null}function Uc(o,t){return t=Hc({mode:t.mode,children:t.children},o.mode),t.ref=o.ref,o.child=t,t.return=o,t}function lk(o,t,l){return sa(t,o.child,null,l),o=Uc(t,t.pendingProps),o.flags|=2,Zn(t),t.memoizedState=null,o}function L2(o,t,l){var s=t.pendingProps,f=(t.flags&128)!==0;if(t.flags&=-129,o===null){if(We){if(s.mode==="hidden")return o=Uc(t,s),t.lanes=536870912,ri(null,o);if(su(t),(o=xo)?(o=vv(o,ft),o=o!==null&&o.data==="&"?o:null,o!==null&&(t.memoizedState={dehydrated:o,treeContext:hr!==null?{id:At,overflow:Ct}:null,retryLane:536870912,hydrationErrors:null},l=Kh(o),l.return=t,t.child=l,cn=t,xo=null)):o=null,o===null)throw kr(t);return t.lanes=536870912,null}return Uc(t,s)}var b=o.memoizedState;if(b!==null){var k=b.dehydrated;if(su(t),f)if(t.flags&256)t.flags&=-257,t=lk(o,t,l);else if(t.memoizedState!==null)t.child=o.child,t.flags|=128,t=null;else throw Error(i(558));else if(Vo||qa(o,t,l,!1),f=(l&o.childLanes)!==0,Vo||f){if(s=go,s!==null&&(k=Jm(s,l),k!==0&&k!==b.retryLane))throw b.retryLane=k,oa(o,k),Rn(s,o,k),Eu;Xc(),t=lk(o,t,l)}else o=b.treeContext,xo=mt(k.nextSibling),cn=t,We=!0,pr=null,ft=!1,o!==null&&Zh(t,o),t=Uc(t,s),t.flags|=4096;return t}return o=It(o.child,{mode:s.mode,children:s.children}),o.ref=t.ref,t.child=o,o.return=t,o}function Fc(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 Lu(o,t,l,s,f){return aa(t),l=uu(o,t,l,s,void 0,f),s=fu(),o!==null&&!Vo?(bu(o,t,f),qt(o,t,f)):(We&&s&&Zd(t),t.flags|=1,dn(o,t,l,f),t.child)}function ik(o,t,l,s,f,b){return aa(t),t.updateQueue=null,l=dp(t,s,l,f),sp(o),s=fu(),o!==null&&!Vo?(bu(o,t,b),qt(o,t,b)):(We&&s&&Zd(t),t.flags|=1,dn(o,t,l,b),t.child)}function ck(o,t,l,s,f){if(aa(t),t.stateNode===null){var b=Fa,k=l.contextType;typeof k=="object"&&k!==null&&(b=sn(k)),b=new l(s,b),t.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Au,t.stateNode=b,b._reactInternals=t,b=t.stateNode,b.props=s,b.state=t.memoizedState,b.refs={},tu(t),k=l.contextType,b.context=typeof k=="object"&&k!==null?sn(k):Fa,b.state=t.memoizedState,k=l.getDerivedStateFromProps,typeof k=="function"&&(Tu(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&&Au.enqueueReplaceState(b,b.state,null),Ql(t,s,b,f),Wl(),b.state=t.memoizedState),typeof b.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(o===null){b=t.stateNode;var y=t.memoizedProps,A=ua(l,y);b.props=A;var U=b.context,Y=l.contextType;k=Fa,typeof Y=="object"&&Y!==null&&(k=sn(Y));var Q=l.getDerivedStateFromProps;Y=typeof Q=="function"||typeof b.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,Y||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(y||U!==k)&&Gp(t,b,s,k),gr=!1;var K=t.memoizedState;b.state=K,Ql(t,s,b,f),Wl(),U=t.memoizedState,y||K!==U||gr?(typeof Q=="function"&&(Tu(t,l,Q,s),U=t.memoizedState),(A=gr||Pp(t,l,A,s,K,U,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=U),b.props=s,b.state=U,b.context=k,s=A):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{b=t.stateNode,ru(o,t),k=t.memoizedProps,Y=ua(l,k),b.props=Y,Q=t.pendingProps,K=b.context,U=l.contextType,A=Fa,typeof U=="object"&&U!==null&&(A=sn(U)),y=l.getDerivedStateFromProps,(U=typeof y=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(k!==Q||K!==A)&&Gp(t,b,s,A),gr=!1,K=t.memoizedState,b.state=K,Ql(t,s,b,f),Wl();var q=t.memoizedState;k!==Q||K!==q||gr||o!==null&&o.dependencies!==null&&yc(o.dependencies)?(typeof y=="function"&&(Tu(t,l,y,s),q=t.memoizedState),(Y=gr||Pp(t,l,Y,s,K,q,A)||o!==null&&o.dependencies!==null&&yc(o.dependencies))?(U||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(s,q,A),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(s,q,A)),typeof b.componentDidUpdate=="function"&&(t.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof b.componentDidUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=q),b.props=s,b.state=q,b.context=A,s=Y):(typeof b.componentDidUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&K===o.memoizedState||(t.flags|=1024),s=!1)}return b=s,Fc(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=sa(t,o.child,null,f),t.child=sa(t,null,l,f)):dn(o,t,l,f),t.memoizedState=b.state,o=t.child):o=qt(o,t,f),o}function sk(o,t,l,s){return ta(),t.flags|=256,dn(o,t,l,s),t.child}var Ou={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $u(o){return{baseLanes:o,cachePool:Wh()}}function Nu(o,t,l){return o=o!==null?o.childLanes&~l:0,t&&(o|=Gn),o}function dk(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:(Uo.current&2)!==0),k&&(f=!0,t.flags&=-129),k=(t.flags&32)!==0,t.flags&=-33,o===null){if(We){if(f?yr(t):wr(),(o=xo)?(o=vv(o,ft),o=o!==null&&o.data!=="&"?o:null,o!==null&&(t.memoizedState={dehydrated:o,treeContext:hr!==null?{id:At,overflow:Ct}:null,retryLane:536870912,hydrationErrors:null},l=Kh(o),l.return=t,t.child=l,cn=t,xo=null)):o=null,o===null)throw kr(t);return kf(o)?t.lanes=32:t.lanes=536870912,null}var y=s.children;return s=s.fallback,f?(wr(),f=t.mode,y=Hc({mode:"hidden",children:y},f),s=na(s,f,l,null),y.return=t,s.return=t,y.sibling=s,t.child=y,s=t.child,s.memoizedState=$u(l),s.childLanes=Nu(o,k,l),t.memoizedState=Ou,ri(null,s)):(yr(t),Bu(t,y))}var A=o.memoizedState;if(A!==null&&(y=A.dehydrated,y!==null)){if(b)t.flags&256?(yr(t),t.flags&=-257,t=Ru(o,t,l)):t.memoizedState!==null?(wr(),t.child=o.child,t.flags|=128,t=null):(wr(),y=s.fallback,f=t.mode,s=Hc({mode:"visible",children:s.children},f),y=na(y,f,l,null),y.flags|=2,s.return=t,y.return=t,s.sibling=y,t.child=s,sa(t,o.child,null,l),s=t.child,s.memoizedState=$u(l),s.childLanes=Nu(o,k,l),t.memoizedState=Ou,t=ri(null,s));else if(yr(t),kf(y)){if(k=y.nextSibling&&y.nextSibling.dataset,k)var U=k.dgst;k=U,s=Error(i(419)),s.stack="",s.digest=k,Zl({value:s,source:null,stack:null}),t=Ru(o,t,l)}else if(Vo||qa(o,t,l,!1),k=(l&o.childLanes)!==0,Vo||k){if(k=go,k!==null&&(s=Jm(k,l),s!==0&&s!==A.retryLane))throw A.retryLane=s,oa(o,s),Rn(k,o,s),Eu;pf(y)||Xc(),t=Ru(o,t,l)}else pf(y)?(t.flags|=192,t.child=o.child,t=null):(o=A.treeContext,xo=mt(y.nextSibling),cn=t,We=!0,pr=null,ft=!1,o!==null&&Zh(t,o),t=Bu(t,s.children),t.flags|=4096);return t}return f?(wr(),y=s.fallback,f=t.mode,A=o.child,U=A.sibling,s=It(A,{mode:"hidden",children:s.children}),s.subtreeFlags=A.subtreeFlags&65011712,U!==null?y=It(U,y):(y=na(y,f,l,null),y.flags|=2),y.return=t,s.return=t,s.sibling=y,t.child=s,ri(null,s),s=t.child,y=o.child.memoizedState,y===null?y=$u(l):(f=y.cachePool,f!==null?(A=Ho._currentValue,f=f.parent!==A?{parent:A,pool:A}:f):f=Wh(),y={baseLanes:y.baseLanes|l,cachePool:f}),s.memoizedState=y,s.childLanes=Nu(o,k,l),t.memoizedState=Ou,ri(o.child,s)):(yr(t),l=o.child,o=l.sibling,l=It(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 Bu(o,t){return t=Hc({mode:"visible",children:t},o.mode),t.return=o,o.child=t}function Hc(o,t){return o=Vn(22,o,null,t),o.lanes=0,o}function Ru(o,t,l){return sa(t,o.child,null,l),o=Bu(t,t.pendingProps.children),o.flags|=2,t.memoizedState=null,o}function uk(o,t,l){o.lanes|=t;var s=o.alternate;s!==null&&(s.lanes|=t),Xd(o.return,t,l)}function Du(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 fk(o,t,l){var s=t.pendingProps,f=s.revealOrder,b=s.tail;s=s.children;var k=Uo.current,y=(k&2)!==0;if(y?(k=k&1|2,t.flags|=128):k&=1,le(Uo,k),dn(o,t,s,l),s=We?ql:0,!y&&o!==null&&(o.flags&128)!==0)e:for(o=t.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&uk(o,l,t);else if(o.tag===19)uk(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&&Ec(o)===null&&(f=l),l=l.sibling;l=f,l===null?(f=t.child,t.child=null):(f=l.sibling,l.sibling=null),Du(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&&Ec(o)===null){t.child=f;break}o=f.sibling,f.sibling=l,l=f,f=o}Du(t,!0,l,null,b,s);break;case"together":Du(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function qt(o,t,l){if(o!==null&&(t.dependencies=o.dependencies),Sr|=t.lanes,(l&t.childLanes)===0)if(o!==null){if(qa(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=It(o,o.pendingProps),t.child=l,l.return=t;o.sibling!==null;)o=o.sibling,l=l.sibling=It(o,o.pendingProps),l.return=t;l.sibling=null}return t.child}function Mu(o,t){return(o.lanes&t)!==0?!0:(o=o.dependencies,!!(o!==null&&yc(o)))}function O2(o,t,l){switch(t.tag){case 3:Co(t,t.stateNode.containerInfo),vr(t,Ho,o.memoizedState.cache),ta();break;case 27:case 5:vt(t);break;case 4:Co(t,t.stateNode.containerInfo);break;case 10:vr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,su(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(yr(t),t.flags|=128,null):(l&t.child.childLanes)!==0?dk(o,t,l):(yr(t),o=qt(o,t,l),o!==null?o.sibling:null);yr(t);break;case 19:var f=(o.flags&128)!==0;if(s=(l&t.childLanes)!==0,s||(qa(o,t,l,!1),s=(l&t.childLanes)!==0),f){if(s)return fk(o,t,l);t.flags|=128}if(f=t.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),le(Uo,Uo.current),s)break;return null;case 22:return t.lanes=0,rk(o,t,l,t.pendingProps);case 24:vr(t,Ho,o.memoizedState.cache)}return qt(o,t,l)}function bk(o,t,l){if(o!==null)if(o.memoizedProps!==t.pendingProps)Vo=!0;else{if(!Mu(o,l)&&(t.flags&128)===0)return Vo=!1,O2(o,t,l);Vo=(o.flags&131072)!==0}else Vo=!1,We&&(t.flags&1048576)!==0&&qh(t,ql,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(o=ia(t.elementType),t.type=o,typeof o=="function")Kd(o)?(s=ua(o,s),t.tag=1,t=ck(null,t,o,s,l)):(t.tag=0,t=Lu(null,t,o,s,l));else{if(o!=null){var f=o.$$typeof;if(f===$){t.tag=11,t=ok(null,t,o,s,l);break e}else if(f===Z){t.tag=14,t=nk(null,t,o,s,l);break e}}throw t=De(o)||o,Error(i(306,t,""))}}return t;case 0:return Lu(o,t,t.type,t.pendingProps,l);case 1:return s=t.type,f=ua(s,t.pendingProps),ck(o,t,s,f,l);case 3:e:{if(Co(t,t.stateNode.containerInfo),o===null)throw Error(i(387));s=t.pendingProps;var b=t.memoizedState;f=b.element,ru(o,t),Ql(t,s,null,l);var k=t.memoizedState;if(s=k.cache,vr(t,Ho,s),s!==b.cache&&Wd(t,[Ho],l,!0),Wl(),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=sk(o,t,s,l);break e}else if(s!==f){f=st(Error(i(424)),t),Zl(f),t=sk(o,t,s,l);break e}else{switch(o=t.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(xo=mt(o.firstChild),cn=t,We=!0,pr=null,ft=!0,l=rp(t,null,s,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ta(),s===f){t=qt(o,t,l);break e}dn(o,t,s,l)}t=t.child}return t;case 26:return Fc(o,t),o===null?(l=zv(t.type,null,t.pendingProps,null))?t.memoizedState=l:We||(l=t.type,o=t.pendingProps,s=rs(Ne.current).createElement(l),s[ln]=t,s[En]=o,un(s,l,o),nn(s),t.stateNode=s):t.memoizedState=zv(t.type,o.memoizedProps,t.pendingProps,o.memoizedState),null;case 27:return vt(t),o===null&&We&&(s=t.stateNode=xv(t.type,t.pendingProps,Ne.current),cn=t,ft=!0,f=xo,Lr(t.type)?(vf=f,xo=mt(s.firstChild)):xo=f),dn(o,t,t.pendingProps.children,l),Fc(o,t),o===null&&(t.flags|=4194304),t.child;case 5:return o===null&&We&&((f=s=xo)&&(s=cz(s,t.type,t.pendingProps,ft),s!==null?(t.stateNode=s,cn=t,xo=mt(s.firstChild),ft=!1,f=!0):f=!1),f||kr(t)),vt(t),f=t.type,b=t.pendingProps,k=o!==null?o.memoizedProps:null,s=b.children,bf(f,b)?s=null:k!==null&&bf(f,k)&&(t.flags|=32),t.memoizedState!==null&&(f=uu(o,t,w2,null,null,l),gi._currentValue=f),Fc(o,t),dn(o,t,s,l),t.child;case 6:return o===null&&We&&((o=l=xo)&&(l=sz(l,t.pendingProps,ft),l!==null?(t.stateNode=l,cn=t,xo=null,o=!0):o=!1),o||kr(t)),null;case 13:return dk(o,t,l);case 4:return Co(t,t.stateNode.containerInfo),s=t.pendingProps,o===null?t.child=sa(t,null,s,l):dn(o,t,s,l),t.child;case 11:return ok(o,t,t.type,t.pendingProps,l);case 7:return dn(o,t,t.pendingProps,l),t.child;case 8:return dn(o,t,t.pendingProps.children,l),t.child;case 12:return dn(o,t,t.pendingProps.children,l),t.child;case 10:return s=t.pendingProps,vr(t,t.type,s.value),dn(o,t,s.children,l),t.child;case 9:return f=t.type._context,s=t.pendingProps.children,aa(t),f=sn(f),s=s(f),t.flags|=1,dn(o,t,s,l),t.child;case 14:return nk(o,t,t.type,t.pendingProps,l);case 15:return tk(o,t,t.type,t.pendingProps,l);case 19:return fk(o,t,l);case 31:return L2(o,t,l);case 22:return rk(o,t,l,t.pendingProps);case 24:return aa(t),s=sn(Ho),o===null?(f=ou(),f===null&&(f=go,b=Qd(),f.pooledCache=b,b.refCount++,b!==null&&(f.pooledCacheLanes|=l),f=b),t.memoizedState={parent:s,cache:f},tu(t),vr(t,Ho,f)):((o.lanes&l)!==0&&(ru(o,t),Ql(t,null,null,l),Wl()),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),vr(t,Ho,s)):(s=b.cache,vr(t,Ho,s),s!==f.cache&&Wd(t,[Ho],l,!0))),dn(o,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Zt(o){o.flags|=4}function Iu(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(Uk())o.flags|=8192;else throw ca=Sc,nu}else o.flags&=-16777217}function mk(o,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!Cv(t))if(Uk())o.flags|=8192;else throw ca=Sc,nu}function Kc(o,t){t!==null&&(o.flags|=4),o.flags&16384&&(t=o.tag!==22?Pm():536870912,o.lanes|=t,tl|=t)}function ai(o,t){if(!We)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 yo(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 $2(o,t,l){var s=t.pendingProps;switch(Pd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yo(t),null;case 1:return yo(t),null;case 3:return l=t.stateNode,s=null,o!==null&&(s=o.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Ht(Ho),_o(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(o===null||o.child===null)&&(Va(t)?Zt(t):o===null||o.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Yd())),yo(t),null;case 26:var f=t.type,b=t.memoizedState;return o===null?(Zt(t),b!==null?(yo(t),mk(t,b)):(yo(t),Iu(t,f,null,s,l))):b?b!==o.memoizedState?(Zt(t),yo(t),mk(t,b)):(yo(t),t.flags&=-16777217):(o=o.memoizedProps,o!==s&&Zt(t),yo(t),Iu(t,f,o,s,l)),null;case 27:if(St(t),l=Ne.current,f=t.type,o!==null&&t.stateNode!=null)o.memoizedProps!==s&&Zt(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return yo(t),null}o=be.current,Va(t)?Ph(t):(o=xv(f,s,l),t.stateNode=o,Zt(t))}return yo(t),null;case 5:if(St(t),f=t.type,o!==null&&t.stateNode!=null)o.memoizedProps!==s&&Zt(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return yo(t),null}if(b=be.current,Va(t))Ph(t);else{var k=rs(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[ln]=t,b[En]=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(un(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&&Zt(t)}}return yo(t),Iu(t,t.type,o===null?null:o.memoizedProps,t.pendingProps,l),null;case 6:if(o&&t.stateNode!=null)o.memoizedProps!==s&&Zt(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(o=Ne.current,Va(t)){if(o=t.stateNode,l=t.memoizedProps,s=null,f=cn,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}o[ln]=t,o=!!(o.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||dv(o.nodeValue,l)),o||kr(t,!0)}else o=rs(o).createTextNode(s),o[ln]=t,t.stateNode=o}return yo(t),null;case 31:if(l=t.memoizedState,o===null||o.memoizedState!==null){if(s=Va(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[ln]=t}else ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yo(t),o=!1}else l=Yd(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=l),o=!0;if(!o)return t.flags&256?(Zn(t),t):(Zn(t),null);if((t.flags&128)!==0)throw Error(i(558))}return yo(t),null;case 13:if(s=t.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(f=Va(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[ln]=t}else ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yo(t),f=!1}else f=Yd(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=f),f=!0;if(!f)return t.flags&256?(Zn(t),t):(Zn(t),null)}return Zn(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),yo(t),null);case 4:return _o(),o===null&&cf(t.stateNode.containerInfo),yo(t),null;case 10:return Ht(t.type),yo(t),null;case 19:if(P(Uo),s=t.memoizedState,s===null)return yo(t),null;if(f=(t.flags&128)!==0,b=s.rendering,b===null)if(f)ai(s,!1);else{if(Bo!==0||o!==null&&(o.flags&128)!==0)for(o=t.child;o!==null;){if(b=Ec(o),b!==null){for(t.flags|=128,ai(s,!1),o=b.updateQueue,t.updateQueue=o,Kc(t,o),t.subtreeFlags=0,o=l,l=t.child;l!==null;)Hh(l,o),l=l.sibling;return le(Uo,Uo.current&1|2),We&&Ut(t,s.treeForkCount),t.child}o=o.sibling}s.tail!==null&&te()>Gc&&(t.flags|=128,f=!0,ai(s,!1),t.lanes=4194304)}else{if(!f)if(o=Ec(b),o!==null){if(t.flags|=128,f=!0,o=o.updateQueue,t.updateQueue=o,Kc(t,o),ai(s,!0),s.tail===null&&s.tailMode==="hidden"&&!b.alternate&&!We)return yo(t),null}else 2*te()-s.renderingStartTime>Gc&&l!==536870912&&(t.flags|=128,f=!0,ai(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=te(),o.sibling=null,l=Uo.current,le(Uo,f?l&1|2:l&1),We&&Ut(t,s.treeForkCount),o):(yo(t),null);case 22:case 23:return Zn(t),cu(),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&&(yo(t),t.subtreeFlags&6&&(t.flags|=8192)):yo(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(la),null;case 24:return l=null,o!==null&&(l=o.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ht(Ho),yo(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function N2(o,t){switch(Pd(t),t.tag){case 1:return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 3:return Ht(Ho),_o(),o=t.flags,(o&65536)!==0&&(o&128)===0?(t.flags=o&-65537|128,t):null;case 26:case 27:case 5:return St(t),null;case 31:if(t.memoizedState!==null){if(Zn(t),t.alternate===null)throw Error(i(340));ta()}return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 13:if(Zn(t),o=t.memoizedState,o!==null&&o.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ta()}return o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 19:return P(Uo),null;case 4:return _o(),null;case 10:return Ht(t.type),null;case 22:case 23:return Zn(t),cu(),o!==null&&P(la),o=t.flags,o&65536?(t.flags=o&-65537|128,t):null;case 24:return Ht(Ho),null;case 25:return null;default:return null}}function hk(o,t){switch(Pd(t),t.tag){case 3:Ht(Ho),_o();break;case 26:case 27:case 5:St(t);break;case 4:_o();break;case 31:t.memoizedState!==null&&Zn(t);break;case 13:Zn(t);break;case 19:P(Uo);break;case 10:Ht(t.type);break;case 22:case 23:Zn(t),cu(),o!==null&&P(la);break;case 24:Ht(Ho)}}function li(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(y){uo(t,t.return,y)}}function zr(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,y=k.destroy;if(y!==void 0){k.destroy=void 0,f=t;var A=l,U=y;try{U()}catch(Y){uo(f,A,Y)}}}s=s.next}while(s!==b)}}catch(Y){uo(t,t.return,Y)}}function pk(o){var t=o.updateQueue;if(t!==null){var l=o.stateNode;try{lp(t,l)}catch(s){uo(o,o.return,s)}}}function kk(o,t,l){l.props=ua(o.type,o.memoizedProps),l.state=o.memoizedState;try{l.componentWillUnmount()}catch(s){uo(o,t,s)}}function ii(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){uo(o,t,f)}}function Et(o,t){var l=o.ref,s=o.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(f){uo(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){uo(o,t,f)}else l.current=null}function vk(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){uo(o,o.return,f)}}function Uu(o,t,l){try{var s=o.stateNode;nz(s,o.type,l,t),s[En]=t}catch(f){uo(o,o.return,f)}}function gk(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Lr(o.type)||o.tag===4}function Fu(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||gk(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&&Lr(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 Hu(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=Dt));else if(s!==4&&(s===27&&Lr(o.type)&&(l=o.stateNode,t=null),o=o.child,o!==null))for(Hu(o,t,l),o=o.sibling;o!==null;)Hu(o,t,l),o=o.sibling}function Vc(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&&Lr(o.type)&&(l=o.stateNode),o=o.child,o!==null))for(Vc(o,t,l),o=o.sibling;o!==null;)Vc(o,t,l),o=o.sibling}function _k(o){var t=o.stateNode,l=o.memoizedProps;try{for(var s=o.type,f=t.attributes;f.length;)t.removeAttributeNode(f[0]);un(t,s,l),t[ln]=o,t[En]=l}catch(b){uo(o,o.return,b)}}var Pt=!1,qo=!1,Ku=!1,xk=typeof WeakSet=="function"?WeakSet:Set,tn=null;function B2(o,t){if(o=o.containerInfo,uf=us,o=$h(o),Rd(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,y=-1,A=-1,U=0,Y=0,Q=o,K=null;o:for(;;){for(var q;Q!==l||f!==0&&Q.nodeType!==3||(y=k+f),Q!==b||s!==0&&Q.nodeType!==3||(A=k+s),Q.nodeType===3&&(k+=Q.nodeValue.length),(q=Q.firstChild)!==null;)K=Q,Q=q;for(;;){if(Q===o)break o;if(K===l&&++U===f&&(y=k),K===b&&++Y===s&&(A=k),(q=Q.nextSibling)!==null)break;Q=K,K=Q.parentNode}Q=q}l=y===-1||A===-1?null:{start:y,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(ff={focusedElem:o,selectionRange:l},us=!1,tn=t;tn!==null;)if(t=tn,o=t.child,(t.subtreeFlags&1028)!==0&&o!==null)o.return=t,tn=o;else for(;tn!==null;){switch(t=tn,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 pe=ua(l.type,f);o=s.getSnapshotBeforeUpdate(pe,b),s.__reactInternalSnapshotBeforeUpdate=o}catch(Ae){uo(l,l.return,Ae)}}break;case 3:if((o&1024)!==0){if(o=t.stateNode.containerInfo,l=o.nodeType,l===9)hf(o);else if(l===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":hf(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,tn=o;break}tn=t.return}}function yk(o,t,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:Yt(o,l),s&4&&li(5,l);break;case 1:if(Yt(o,l),s&4)if(o=l.stateNode,t===null)try{o.componentDidMount()}catch(k){uo(l,l.return,k)}else{var f=ua(l.type,t.memoizedProps);t=t.memoizedState;try{o.componentDidUpdate(f,t,o.__reactInternalSnapshotBeforeUpdate)}catch(k){uo(l,l.return,k)}}s&64&&pk(l),s&512&&ii(l,l.return);break;case 3:if(Yt(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{lp(o,t)}catch(k){uo(l,l.return,k)}}break;case 27:t===null&&s&4&&_k(l);case 26:case 5:Yt(o,l),t===null&&s&4&&vk(l),s&512&&ii(l,l.return);break;case 12:Yt(o,l);break;case 31:Yt(o,l),s&4&&jk(o,l);break;case 13:Yt(o,l),s&4&&Sk(o,l),s&64&&(o=l.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(l=V2.bind(null,l),dz(o,l))));break;case 22:if(s=l.memoizedState!==null||Pt,!s){t=t!==null&&t.memoizedState!==null||qo,f=Pt;var b=qo;Pt=s,(qo=t)&&!b?Jt(o,l,(l.subtreeFlags&8772)!==0):Yt(o,l),Pt=f,qo=b}break;case 30:break;default:Yt(o,l)}}function wk(o){var t=o.alternate;t!==null&&(o.alternate=null,wk(t)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(t=o.stateNode,t!==null&&gd(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 jo=null,On=!1;function Gt(o,t,l){for(l=l.child;l!==null;)zk(o,t,l),l=l.sibling}function zk(o,t,l){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Yr,l)}catch{}switch(l.tag){case 26:qo||Et(l,t),Gt(o,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:qo||Et(l,t);var s=jo,f=On;Lr(l.type)&&(jo=l.stateNode,On=!1),Gt(o,t,l),pi(l.stateNode),jo=s,On=f;break;case 5:qo||Et(l,t);case 6:if(s=jo,f=On,jo=null,Gt(o,t,l),jo=s,On=f,jo!==null)if(On)try{(jo.nodeType===9?jo.body:jo.nodeName==="HTML"?jo.ownerDocument.body:jo).removeChild(l.stateNode)}catch(b){uo(l,t,b)}else try{jo.removeChild(l.stateNode)}catch(b){uo(l,t,b)}break;case 18:jo!==null&&(On?(o=jo,pv(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,l.stateNode),ul(o)):pv(jo,l.stateNode));break;case 4:s=jo,f=On,jo=l.stateNode.containerInfo,On=!0,Gt(o,t,l),jo=s,On=f;break;case 0:case 11:case 14:case 15:zr(2,l,t),qo||zr(4,l,t),Gt(o,t,l);break;case 1:qo||(Et(l,t),s=l.stateNode,typeof s.componentWillUnmount=="function"&&kk(l,t,s)),Gt(o,t,l);break;case 21:Gt(o,t,l);break;case 22:qo=(s=qo)||l.memoizedState!==null,Gt(o,t,l),qo=s;break;default:Gt(o,t,l)}}function jk(o,t){if(t.memoizedState===null&&(o=t.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{ul(o)}catch(l){uo(t,t.return,l)}}}function Sk(o,t){if(t.memoizedState===null&&(o=t.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{ul(o)}catch(l){uo(t,t.return,l)}}function R2(o){switch(o.tag){case 31:case 13:case 19:var t=o.stateNode;return t===null&&(t=o.stateNode=new xk),t;case 22:return o=o.stateNode,t=o._retryCache,t===null&&(t=o._retryCache=new xk),t;default:throw Error(i(435,o.tag))}}function qc(o,t){var l=R2(o);t.forEach(function(s){if(!l.has(s)){l.add(s);var f=q2.bind(null,o,s);s.then(f,f)}})}function $n(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,y=k;e:for(;y!==null;){switch(y.tag){case 27:if(Lr(y.type)){jo=y.stateNode,On=!1;break e}break;case 5:jo=y.stateNode,On=!1;break e;case 3:case 4:jo=y.stateNode.containerInfo,On=!0;break e}y=y.return}if(jo===null)throw Error(i(160));zk(b,k,f),jo=null,On=!1,b=f.alternate,b!==null&&(b.return=null),f.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Tk(t,o),t=t.sibling}var xt=null;function Tk(o,t){var l=o.alternate,s=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:$n(t,o),Nn(o),s&4&&(zr(3,o,o.return),li(3,o),zr(5,o,o.return));break;case 1:$n(t,o),Nn(o),s&512&&(qo||l===null||Et(l,l.return)),s&64&&Pt&&(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=xt;if($n(t,o),Nn(o),s&512&&(qo||l===null||Et(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[Nl]||b[ln]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=f.createElement(s),f.head.insertBefore(b,f.querySelector("head > title"))),un(b,s,l),b[ln]=o,nn(b),s=b;break e;case"link":var k=Tv("link","href",f).get(s+(l.href||""));if(k){for(var y=0;y<k.length;y++)if(b=k[y],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(y,1);break o}}b=f.createElement(s),un(b,s,l),f.head.appendChild(b);break;case"meta":if(k=Tv("meta","content",f).get(s+(l.content||""))){for(y=0;y<k.length;y++)if(b=k[y],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(y,1);break o}}b=f.createElement(s),un(b,s,l),f.head.appendChild(b);break;default:throw Error(i(468,s))}b[ln]=o,nn(b),s=b}o.stateNode=s}else Av(f,o.type,o.stateNode);else o.stateNode=Sv(f,s,o.memoizedProps);else b!==s?(b===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):b.count--,s===null?Av(f,o.type,o.stateNode):Sv(f,s,o.memoizedProps)):s===null&&o.stateNode!==null&&Uu(o,o.memoizedProps,l.memoizedProps)}break;case 27:$n(t,o),Nn(o),s&512&&(qo||l===null||Et(l,l.return)),l!==null&&s&4&&Uu(o,o.memoizedProps,l.memoizedProps);break;case 5:if($n(t,o),Nn(o),s&512&&(qo||l===null||Et(l,l.return)),o.flags&32){f=o.stateNode;try{Na(f,"")}catch(pe){uo(o,o.return,pe)}}s&4&&o.stateNode!=null&&(f=o.memoizedProps,Uu(o,f,l!==null?l.memoizedProps:f)),s&1024&&(Ku=!0);break;case 6:if($n(t,o),Nn(o),s&4){if(o.stateNode===null)throw Error(i(162));s=o.memoizedProps,l=o.stateNode;try{l.nodeValue=s}catch(pe){uo(o,o.return,pe)}}break;case 3:if(is=null,f=xt,xt=as(t.containerInfo),$n(t,o),xt=f,Nn(o),s&4&&l!==null&&l.memoizedState.isDehydrated)try{ul(t.containerInfo)}catch(pe){uo(o,o.return,pe)}Ku&&(Ku=!1,Ak(o));break;case 4:s=xt,xt=as(o.stateNode.containerInfo),$n(t,o),Nn(o),xt=s;break;case 12:$n(t,o),Nn(o);break;case 31:$n(t,o),Nn(o),s&4&&(s=o.updateQueue,s!==null&&(o.updateQueue=null,qc(o,s)));break;case 13:$n(t,o),Nn(o),o.child.flags&8192&&o.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Pc=te()),s&4&&(s=o.updateQueue,s!==null&&(o.updateQueue=null,qc(o,s)));break;case 22:f=o.memoizedState!==null;var A=l!==null&&l.memoizedState!==null,U=Pt,Y=qo;if(Pt=U||f,qo=Y||A,$n(t,o),qo=Y,Pt=U,Nn(o),s&8192)e:for(t=o.stateNode,t._visibility=f?t._visibility&-2:t._visibility|1,f&&(l===null||A||Pt||qo||fa(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{y=A.stateNode;var Q=A.memoizedProps.style,K=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;y.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(pe){uo(A,A.return,pe)}}}else if(t.tag===6){if(l===null){A=t;try{A.stateNode.nodeValue=f?"":A.memoizedProps}catch(pe){uo(A,A.return,pe)}}}else if(t.tag===18){if(l===null){A=t;try{var q=A.stateNode;f?kv(q,!0):kv(A.stateNode,!1)}catch(pe){uo(A,A.return,pe)}}}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,qc(o,l))));break;case 19:$n(t,o),Nn(o),s&4&&(s=o.updateQueue,s!==null&&(o.updateQueue=null,qc(o,s)));break;case 30:break;case 21:break;default:$n(t,o),Nn(o)}}function Nn(o){var t=o.flags;if(t&2){try{for(var l,s=o.return;s!==null;){if(gk(s)){l=s;break}s=s.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var f=l.stateNode,b=Fu(o);Vc(o,b,f);break;case 5:var k=l.stateNode;l.flags&32&&(Na(k,""),l.flags&=-33);var y=Fu(o);Vc(o,y,k);break;case 3:case 4:var A=l.stateNode.containerInfo,U=Fu(o);Hu(o,U,A);break;default:throw Error(i(161))}}catch(Y){uo(o,o.return,Y)}o.flags&=-3}t&4096&&(o.flags&=-4097)}function Ak(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var t=o;Ak(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),o=o.sibling}}function Yt(o,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)yk(o,t.alternate,t),t=t.sibling}function fa(o){for(o=o.child;o!==null;){var t=o;switch(t.tag){case 0:case 11:case 14:case 15:zr(4,t,t.return),fa(t);break;case 1:Et(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&kk(t,t.return,l),fa(t);break;case 27:pi(t.stateNode);case 26:case 5:Et(t,t.return),fa(t);break;case 22:t.memoizedState===null&&fa(t);break;case 30:fa(t);break;default:fa(t)}o=o.sibling}}function Jt(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:Jt(f,b,l),li(4,b);break;case 1:if(Jt(f,b,l),s=b,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(U){uo(s,s.return,U)}if(s=b,f=s.updateQueue,f!==null){var y=s.stateNode;try{var A=f.shared.hiddenCallbacks;if(A!==null)for(f.shared.hiddenCallbacks=null,f=0;f<A.length;f++)ap(A[f],y)}catch(U){uo(s,s.return,U)}}l&&k&64&&pk(b),ii(b,b.return);break;case 27:_k(b);case 26:case 5:Jt(f,b,l),l&&s===null&&k&4&&vk(b),ii(b,b.return);break;case 12:Jt(f,b,l);break;case 31:Jt(f,b,l),l&&k&4&&jk(f,b);break;case 13:Jt(f,b,l),l&&k&4&&Sk(f,b);break;case 22:b.memoizedState===null&&Jt(f,b,l),ii(b,b.return);break;case 30:break;default:Jt(f,b,l)}t=t.sibling}}function Vu(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&&Pl(l))}function qu(o,t){o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Pl(o))}function yt(o,t,l,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ck(o,t,l,s),t=t.sibling}function Ck(o,t,l,s){var f=t.flags;switch(t.tag){case 0:case 11:case 15:yt(o,t,l,s),f&2048&&li(9,t);break;case 1:yt(o,t,l,s);break;case 3:yt(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&&Pl(o)));break;case 12:if(f&2048){yt(o,t,l,s),o=t.stateNode;try{var b=t.memoizedProps,k=b.id,y=b.onPostCommit;typeof y=="function"&&y(k,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(A){uo(t,t.return,A)}}else yt(o,t,l,s);break;case 31:yt(o,t,l,s);break;case 13:yt(o,t,l,s);break;case 23:break;case 22:b=t.stateNode,k=t.alternate,t.memoizedState!==null?b._visibility&2?yt(o,t,l,s):ci(o,t):b._visibility&2?yt(o,t,l,s):(b._visibility|=2,el(o,t,l,s,(t.subtreeFlags&10256)!==0||!1)),f&2048&&Vu(k,t);break;case 24:yt(o,t,l,s),f&2048&&qu(t.alternate,t);break;default:yt(o,t,l,s)}}function el(o,t,l,s,f){for(f=f&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var b=o,k=t,y=l,A=s,U=k.flags;switch(k.tag){case 0:case 11:case 15:el(b,k,y,A,f),li(8,k);break;case 23:break;case 22:var Y=k.stateNode;k.memoizedState!==null?Y._visibility&2?el(b,k,y,A,f):ci(b,k):(Y._visibility|=2,el(b,k,y,A,f)),f&&U&2048&&Vu(k.alternate,k);break;case 24:el(b,k,y,A,f),f&&U&2048&&qu(k.alternate,k);break;default:el(b,k,y,A,f)}t=t.sibling}}function ci(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:ci(l,s),f&2048&&Vu(s.alternate,s);break;case 24:ci(l,s),f&2048&&qu(s.alternate,s);break;default:ci(l,s)}t=t.sibling}}var si=8192;function ol(o,t,l){if(o.subtreeFlags&si)for(o=o.child;o!==null;)Ek(o,t,l),o=o.sibling}function Ek(o,t,l){switch(o.tag){case 26:ol(o,t,l),o.flags&si&&o.memoizedState!==null&&yz(l,xt,o.memoizedState,o.memoizedProps);break;case 5:ol(o,t,l);break;case 3:case 4:var s=xt;xt=as(o.stateNode.containerInfo),ol(o,t,l),xt=s;break;case 22:o.memoizedState===null&&(s=o.alternate,s!==null&&s.memoizedState!==null?(s=si,si=16777216,ol(o,t,l),si=s):ol(o,t,l));break;default:ol(o,t,l)}}function Lk(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 di(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];tn=s,$k(s,o)}Lk(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)Ok(o),o=o.sibling}function Ok(o){switch(o.tag){case 0:case 11:case 15:di(o),o.flags&2048&&zr(9,o,o.return);break;case 3:di(o);break;case 12:di(o);break;case 22:var t=o.stateNode;o.memoizedState!==null&&t._visibility&2&&(o.return===null||o.return.tag!==13)?(t._visibility&=-3,Zc(o)):di(o);break;default:di(o)}}function Zc(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];tn=s,$k(s,o)}Lk(o)}for(o=o.child;o!==null;){switch(t=o,t.tag){case 0:case 11:case 15:zr(8,t,t.return),Zc(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Zc(t));break;default:Zc(t)}o=o.sibling}}function $k(o,t){for(;tn!==null;){var l=tn;switch(l.tag){case 0:case 11:case 15:zr(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:Pl(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,tn=s;else e:for(l=o;tn!==null;){s=tn;var f=s.sibling,b=s.return;if(wk(s),s===l){tn=null;break e}if(f!==null){f.return=b,tn=f;break e}tn=b}}}var D2={getCacheForType:function(o){var t=sn(Ho),l=t.data.get(o);return l===void 0&&(l=o(),t.data.set(o,l)),l},cacheSignal:function(){return sn(Ho).controller.signal}},M2=typeof WeakMap=="function"?WeakMap:Map,co=0,go=null,qe=null,Ye=0,so=0,Pn=null,jr=!1,nl=!1,Zu=!1,Xt=0,Bo=0,Sr=0,ba=0,Pu=0,Gn=0,tl=0,ui=null,Bn=null,Gu=!1,Pc=0,Nk=0,Gc=1/0,Yc=null,Tr=null,Wo=0,Ar=null,rl=null,Wt=0,Yu=0,Ju=null,Bk=null,fi=0,Xu=null;function Yn(){return(co&2)!==0&&Ye!==0?Ye&-Ye:M.T!==null?tf():Xm()}function Rk(){if(Gn===0)if((Ye&536870912)===0||We){var o=tc;tc<<=1,(tc&3932160)===0&&(tc=262144),Gn=o}else Gn=536870912;return o=qn.current,o!==null&&(o.flags|=32),Gn}function Rn(o,t,l){(o===go&&(so===2||so===9)||o.cancelPendingCommit!==null)&&(al(o,0),Cr(o,Ye,Gn,!1)),$l(o,l),((co&2)===0||o!==go)&&(o===go&&((co&2)===0&&(ba|=l),Bo===4&&Cr(o,Ye,Gn,!1)),Lt(o))}function Dk(o,t,l){if((co&6)!==0)throw Error(i(327));var s=!l&&(t&127)===0&&(t&o.expiredLanes)===0||Ol(o,t),f=s?F2(o,t):Qu(o,t,!0),b=s;do{if(f===0){nl&&!s&&Cr(o,t,0,!1);break}else{if(l=o.current.alternate,b&&!I2(l)){f=Qu(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 y=o;f=ui;var A=y.current.memoizedState.isDehydrated;if(A&&(al(y,k).flags|=256),k=Qu(y,k,!1),k!==2){if(Zu&&!A){y.errorRecoveryDisabledLanes|=b,ba|=b,f=4;break e}b=Bn,Bn=f,b!==null&&(Bn===null?Bn=b:Bn.push.apply(Bn,b))}f=k}if(b=!1,f!==2)continue}}if(f===1){al(o,0),Cr(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:Cr(s,t,Gn,!jr);break e;case 2:Bn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(f=Pc+300-te(),10<f)){if(Cr(s,t,Gn,!jr),ac(s,0,!0)!==0)break e;Wt=t,s.timeoutHandle=mv(Mk.bind(null,s,l,Bn,Yc,Gu,t,Gn,ba,tl,jr,b,"Throttled",-0,0),f);break e}Mk(s,l,Bn,Yc,Gu,t,Gn,ba,tl,jr,b,null,-0,0)}}break}while(!0);Lt(o)}function Mk(o,t,l,s,f,b,k,y,A,U,Y,Q,K,q){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:Dt},Ek(t,b,Q);var pe=(b&62914560)===b?Pc-te():(b&4194048)===b?Nk-te():0;if(pe=wz(Q,pe),pe!==null){Wt=b,o.cancelPendingCommit=pe(Zk.bind(null,o,t,b,l,s,f,k,y,A,Y,Q,null,K,q)),Cr(o,b,k,!U);return}}Zk(o,t,b,l,s,f,k,y,A)}function I2(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(!Kn(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 Cr(o,t,l,s){t&=~Pu,t&=~ba,o.suspendedLanes|=t,o.pingedLanes&=~t,s&&(o.warmLanes|=t),s=o.expirationTimes;for(var f=t;0<f;){var b=31-zn(f),k=1<<b;s[b]=-1,f&=~k}l!==0&&Gm(o,l,t)}function Jc(){return(co&6)===0?(bi(0),!1):!0}function Wu(){if(qe!==null){if(so===0)var o=qe.return;else o=qe,Ft=ra=null,mu(o),Ya=null,Yl=0,o=qe;for(;o!==null;)hk(o.alternate,o),o=o.return;qe=null}}function al(o,t){var l=o.timeoutHandle;l!==-1&&(o.timeoutHandle=-1,az(l)),l=o.cancelPendingCommit,l!==null&&(o.cancelPendingCommit=null,l()),Wt=0,Wu(),go=o,qe=l=It(o.current,null),Ye=t,so=0,Pn=null,jr=!1,nl=Ol(o,t),Zu=!1,tl=Gn=Pu=ba=Sr=Bo=0,Bn=ui=null,Gu=!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-zn(s),b=1<<f;t|=o[f],s&=~b}return Xt=t,kc(),l}function Ik(o,t){Me=null,M.H=ti,t===Ga||t===jc?(t=op(),so=3):t===nu?(t=op(),so=4):so=t===Eu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Pn=t,qe===null&&(Bo=1,Ic(o,st(t,o.current)))}function Uk(){var o=qn.current;return o===null?!0:(Ye&4194048)===Ye?bt===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?o===bt:!1}function Fk(){var o=M.H;return M.H=ti,o===null?ti:o}function Hk(){var o=M.A;return M.A=D2,o}function Xc(){Bo=4,jr||(Ye&4194048)!==Ye&&qn.current!==null||(nl=!0),(Sr&134217727)===0&&(ba&134217727)===0||go===null||Cr(go,Ye,Gn,!1)}function Qu(o,t,l){var s=co;co|=2;var f=Fk(),b=Hk();(go!==o||Ye!==t)&&(Yc=null,al(o,t)),t=!1;var k=Bo;e:do try{if(so!==0&&qe!==null){var y=qe,A=Pn;switch(so){case 8:Wu(),k=6;break e;case 3:case 2:case 9:case 6:qn.current===null&&(t=!0);var U=so;if(so=0,Pn=null,ll(o,y,A,U),l&&nl){k=0;break e}break;default:U=so,so=0,Pn=null,ll(o,y,A,U)}}U2(),k=Bo;break}catch(Y){Ik(o,Y)}while(!0);return t&&o.shellSuspendCounter++,Ft=ra=null,co=s,M.H=f,M.A=b,qe===null&&(go=null,Ye=0,kc()),k}function U2(){for(;qe!==null;)Kk(qe)}function F2(o,t){var l=co;co|=2;var s=Fk(),f=Hk();go!==o||Ye!==t?(Yc=null,Gc=te()+500,al(o,t)):nl=Ol(o,t);e:do try{if(so!==0&&qe!==null){t=qe;var b=Pn;o:switch(so){case 1:so=0,Pn=null,ll(o,t,b,1);break;case 2:case 9:if(Qh(b)){so=0,Pn=null,Vk(t);break}t=function(){so!==2&&so!==9||go!==o||(so=7),Lt(o)},b.then(t,t);break e;case 3:so=7;break e;case 4:so=5;break e;case 7:Qh(b)?(so=0,Pn=null,Vk(t)):(so=0,Pn=null,ll(o,t,b,7));break;case 5:var k=null;switch(qe.tag){case 26:k=qe.memoizedState;case 5:case 27:var y=qe;if(k?Cv(k):y.stateNode.complete){so=0,Pn=null;var A=y.sibling;if(A!==null)qe=A;else{var U=y.return;U!==null?(qe=U,Wc(U)):qe=null}break o}}so=0,Pn=null,ll(o,t,b,5);break;case 6:so=0,Pn=null,ll(o,t,b,6);break;case 8:Wu(),Bo=6;break e;default:throw Error(i(462))}}H2();break}catch(Y){Ik(o,Y)}while(!0);return Ft=ra=null,M.H=s,M.A=f,co=l,qe!==null?0:(go=null,Ye=0,kc(),Bo)}function H2(){for(;qe!==null&&!B();)Kk(qe)}function Kk(o){var t=bk(o.alternate,o,Xt);o.memoizedProps=o.pendingProps,t===null?Wc(o):qe=t}function Vk(o){var t=o,l=t.alternate;switch(t.tag){case 15:case 0:t=ik(l,t,t.pendingProps,t.type,void 0,Ye);break;case 11:t=ik(l,t,t.pendingProps,t.type.render,t.ref,Ye);break;case 5:mu(t);default:hk(l,t),t=qe=Hh(t,Xt),t=bk(l,t,Xt)}o.memoizedProps=o.pendingProps,t===null?Wc(o):qe=t}function ll(o,t,l,s){Ft=ra=null,mu(t),Ya=null,Yl=0;var f=t.return;try{if(E2(o,f,t,l,Ye)){Bo=1,Ic(o,st(l,o.current)),qe=null;return}}catch(b){if(f!==null)throw qe=f,b;Bo=1,Ic(o,st(l,o.current)),qe=null;return}t.flags&32768?(We||s===1?o=!0:nl||(Ye&536870912)!==0?o=!1:(jr=o=!0,(s===2||s===9||s===3||s===6)&&(s=qn.current,s!==null&&s.tag===13&&(s.flags|=16384))),qk(t,o)):Wc(t)}function Wc(o){var t=o;do{if((t.flags&32768)!==0){qk(t,jr);return}o=t.return;var l=$2(t.alternate,t,Xt);if(l!==null){qe=l;return}if(t=t.sibling,t!==null){qe=t;return}qe=t=o}while(t!==null);Bo===0&&(Bo=5)}function qk(o,t){do{var l=N2(o.alternate,o);if(l!==null){l.flags&=32767,qe=l;return}if(l=o.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(o=o.sibling,o!==null)){qe=o;return}qe=o=l}while(o!==null);Bo=6,qe=null}function Zk(o,t,l,s,f,b,k,y,A){o.cancelPendingCommit=null;do Qc();while(Wo!==0);if((co&6)!==0)throw Error(i(327));if(t!==null){if(t===o.current)throw Error(i(177));if(b=t.lanes|t.childLanes,b|=Fd,xw(o,l,b,k,y,A),o===go&&(qe=go=null,Ye=0),rl=t,Ar=o,Wt=l,Yu=b,Ju=f,Bk=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,Z2(eo,function(){return Xk(),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=co,co|=4;try{B2(o,t,l)}finally{co=k,G.p=f,M.T=s}}Wo=1,Pk(),Gk(),Yk()}}function Pk(){if(Wo===1){Wo=0;var o=Ar,t=rl,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=co;co|=4;try{Tk(t,o);var b=ff,k=$h(o.containerInfo),y=b.focusedElem,A=b.selectionRange;if(k!==y&&y&&y.ownerDocument&&Oh(y.ownerDocument.documentElement,y)){if(A!==null&&Rd(y)){var U=A.start,Y=A.end;if(Y===void 0&&(Y=U),"selectionStart"in y)y.selectionStart=U,y.selectionEnd=Math.min(Y,y.value.length);else{var Q=y.ownerDocument||document,K=Q&&Q.defaultView||window;if(K.getSelection){var q=K.getSelection(),pe=y.textContent.length,Ae=Math.min(A.start,pe),vo=A.end===void 0?Ae:Math.min(A.end,pe);!q.extend&&Ae>vo&&(k=vo,vo=Ae,Ae=k);var R=Lh(y,Ae),L=Lh(y,vo);if(R&&L&&(q.rangeCount!==1||q.anchorNode!==R.node||q.anchorOffset!==R.offset||q.focusNode!==L.node||q.focusOffset!==L.offset)){var I=Q.createRange();I.setStart(R.node,R.offset),q.removeAllRanges(),Ae>vo?(q.addRange(I),q.extend(L.node,L.offset)):(I.setEnd(L.node,L.offset),q.addRange(I))}}}}for(Q=[],q=y;q=q.parentNode;)q.nodeType===1&&Q.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<Q.length;y++){var J=Q[y];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}us=!!uf,ff=uf=null}finally{co=f,G.p=s,M.T=l}}o.current=t,Wo=2}}function Gk(){if(Wo===2){Wo=0;var o=Ar,t=rl,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=co;co|=4;try{yk(o,t.alternate,t)}finally{co=f,G.p=s,M.T=l}}Wo=3}}function Yk(){if(Wo===4||Wo===3){Wo=0,H();var o=Ar,t=rl,l=Wt,s=Bk;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Wo=5:(Wo=0,rl=Ar=null,Jk(o,o.pendingLanes));var f=o.pendingLanes;if(f===0&&(Tr=null),kd(l),t=t.stateNode,an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot(Yr,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 y=s[k];b(y.value,{componentStack:y.stack})}}finally{M.T=t,G.p=f}}(Wt&3)!==0&&Qc(),Lt(o),f=o.pendingLanes,(l&261930)!==0&&(f&42)!==0?o===Xu?fi++:(fi=0,Xu=o):fi=0,bi(0)}}function Jk(o,t){(o.pooledCacheLanes&=t)===0&&(t=o.pooledCache,t!=null&&(o.pooledCache=null,Pl(t)))}function Qc(){return Pk(),Gk(),Yk(),Xk()}function Xk(){if(Wo!==5)return!1;var o=Ar,t=Yu;Yu=0;var l=kd(Wt),s=M.T,f=G.p;try{G.p=32>l?32:l,M.T=null,l=Ju,Ju=null;var b=Ar,k=Wt;if(Wo=0,rl=Ar=null,Wt=0,(co&6)!==0)throw Error(i(331));var y=co;if(co|=4,Ok(b.current),Ck(b,b.current,k,l),co=y,bi(0,!1),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot(Yr,b)}catch{}return!0}finally{G.p=f,M.T=s,Jk(o,t)}}function Wk(o,t,l){t=st(l,t),t=Cu(o.stateNode,t,2),o=xr(o,t,2),o!==null&&($l(o,2),Lt(o))}function uo(o,t,l){if(o.tag===3)Wk(o,o,l);else for(;t!==null;){if(t.tag===3){Wk(t,o,l);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Tr===null||!Tr.has(s))){o=st(l,o),l=Qp(2),s=xr(t,l,2),s!==null&&(ek(l,s,t,o),$l(s,2),Lt(s));break}}t=t.return}}function ef(o,t,l){var s=o.pingCache;if(s===null){s=o.pingCache=new M2;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)||(Zu=!0,f.add(l),o=K2.bind(null,o,t,l),t.then(o,o))}function K2(o,t,l){var s=o.pingCache;s!==null&&s.delete(t),o.pingedLanes|=o.suspendedLanes&l,o.warmLanes&=~l,go===o&&(Ye&l)===l&&(Bo===4||Bo===3&&(Ye&62914560)===Ye&&300>te()-Pc?(co&2)===0&&al(o,0):Pu|=l,tl===Ye&&(tl=0)),Lt(o)}function Qk(o,t){t===0&&(t=Pm()),o=oa(o,t),o!==null&&($l(o,t),Lt(o))}function V2(o){var t=o.memoizedState,l=0;t!==null&&(l=t.retryLane),Qk(o,l)}function q2(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),Qk(o,l)}function Z2(o,t){return lo(o,t)}var es=null,il=null,of=!1,os=!1,nf=!1,Er=0;function Lt(o){o!==il&&o.next===null&&(il===null?es=il=o:il=il.next=o),os=!0,of||(of=!0,G2())}function bi(o,t){if(!nf&&os){nf=!0;do for(var l=!1,s=es;s!==null;){if(o!==0){var f=s.pendingLanes;if(f===0)var b=0;else{var k=s.suspendedLanes,y=s.pingedLanes;b=(1<<31-zn(42|o)+1)-1,b&=f&~(k&~y),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(l=!0,tv(s,b))}else b=Ye,b=ac(s,s===go?b:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(b&3)===0||Ol(s,b)||(l=!0,tv(s,b));s=s.next}while(l);nf=!1}}function P2(){ev()}function ev(){os=of=!1;var o=0;Er!==0&&rz()&&(o=Er);for(var t=te(),l=null,s=es;s!==null;){var f=s.next,b=ov(s,t);b===0?(s.next=null,l===null?es=f:l.next=f,f===null&&(il=l)):(l=s,(o!==0||(b&3)!==0)&&(os=!0)),s=f}Wo!==0&&Wo!==5||bi(o),Er!==0&&(Er=0)}function ov(o,t){for(var l=o.suspendedLanes,s=o.pingedLanes,f=o.expirationTimes,b=o.pendingLanes&-62914561;0<b;){var k=31-zn(b),y=1<<k,A=f[k];A===-1?((y&l)===0||(y&s)!==0)&&(f[k]=_w(y,t)):A<=t&&(o.expiredLanes|=y),b&=~y}if(t=go,l=Ye,l=ac(o,o===t?l:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),s=o.callbackNode,l===0||o===t&&(so===2||so===9)||o.cancelPendingCommit!==null)return s!==null&&s!==null&&T(s),o.callbackNode=null,o.callbackPriority=0;if((l&3)===0||Ol(o,l)){if(t=l&-l,t===o.callbackPriority)return t;switch(s!==null&&T(s),kd(l)){case 2:case 8:l=ve;break;case 32:l=eo;break;case 268435456:l=on;break;default:l=eo}return s=nv.bind(null,o),l=lo(l,s),o.callbackPriority=t,o.callbackNode=l,t}return s!==null&&s!==null&&T(s),o.callbackPriority=2,o.callbackNode=null,2}function nv(o,t){if(Wo!==0&&Wo!==5)return o.callbackNode=null,o.callbackPriority=0,null;var l=o.callbackNode;if(Qc()&&o.callbackNode!==l)return null;var s=Ye;return s=ac(o,o===go?s:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),s===0?null:(Dk(o,s,t),ov(o,te()),o.callbackNode!=null&&o.callbackNode===l?nv.bind(null,o):null)}function tv(o,t){if(Qc())return null;Dk(o,t,!0)}function G2(){lz(function(){(co&6)!==0?lo(oe,P2):ev()})}function tf(){if(Er===0){var o=Za;o===0&&(o=nc,nc<<=1,(nc&261888)===0&&(nc=256)),Er=o}return Er}function rv(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:sc(""+o)}function av(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 Y2(o,t,l,s,f){if(t==="submit"&&l&&l.stateNode===f){var b=rv((f[En]||null).action),k=s.submitter;k&&(t=(t=k[En]||null)?rv(t.formAction):k.getAttribute("formAction"),t!==null&&(b=t,k=null));var y=new bc("action","action",null,s,f);o.push({event:y,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Er!==0){var A=k?av(f,k):new FormData(f);wu(l,{pending:!0,data:A,method:f.method,action:b},null,A)}}else typeof b=="function"&&(y.preventDefault(),A=k?av(f,k):new FormData(f),wu(l,{pending:!0,data:A,method:f.method,action:b},b,A))},currentTarget:f}]})}}for(var rf=0;rf<Ud.length;rf++){var af=Ud[rf],J2=af.toLowerCase(),X2=af[0].toUpperCase()+af.slice(1);_t(J2,"on"+X2)}_t(Rh,"onAnimationEnd"),_t(Dh,"onAnimationIteration"),_t(Mh,"onAnimationStart"),_t("dblclick","onDoubleClick"),_t("focusin","onFocus"),_t("focusout","onBlur"),_t(b2,"onTransitionRun"),_t(m2,"onTransitionStart"),_t(h2,"onTransitionCancel"),_t(Ih,"onTransitionEnd"),Oa("onMouseEnter",["mouseout","mouseover"]),Oa("onMouseLeave",["mouseout","mouseover"]),Oa("onPointerEnter",["pointerout","pointerover"]),Oa("onPointerLeave",["pointerout","pointerover"]),Xr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mi="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(" "),W2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mi));function lv(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 y=s[k],A=y.instance,U=y.currentTarget;if(y=y.listener,A!==b&&f.isPropagationStopped())break e;b=y,f.currentTarget=U;try{b(f)}catch(Y){pc(Y)}f.currentTarget=null,b=A}else for(k=0;k<s.length;k++){if(y=s[k],A=y.instance,U=y.currentTarget,y=y.listener,A!==b&&f.isPropagationStopped())break e;b=y,f.currentTarget=U;try{b(f)}catch(Y){pc(Y)}f.currentTarget=null,b=A}}}}function Ze(o,t){var l=t[vd];l===void 0&&(l=t[vd]=new Set);var s=o+"__bubble";l.has(s)||(iv(t,o,2,!1),l.add(s))}function lf(o,t,l){var s=0;t&&(s|=4),iv(l,o,s,t)}var ns="_reactListening"+Math.random().toString(36).slice(2);function cf(o){if(!o[ns]){o[ns]=!0,eh.forEach(function(l){l!=="selectionchange"&&(W2.has(l)||lf(l,!1,o),lf(l,!0,o))});var t=o.nodeType===9?o:o.ownerDocument;t===null||t[ns]||(t[ns]=!0,lf("selectionchange",!1,t))}}function iv(o,t,l,s){switch(Rv(t)){case 2:var f=Sz;break;case 8:f=Tz;break;default:f=wf}l=f.bind(null,t,l,o),f=void 0,!Td||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 sf(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 y=s.stateNode.containerInfo;if(y===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(;y!==null;){if(k=Ca(y),k===null)return;if(A=k.tag,A===5||A===6||A===26||A===27){s=b=k;continue e}y=y.parentNode}}s=s.return}fh(function(){var U=b,Y=jd(l),Q=[];e:{var K=Uh.get(o);if(K!==void 0){var q=bc,pe=o;switch(o){case"keypress":if(uc(l)===0)break e;case"keydown":case"keyup":q=qw;break;case"focusin":pe="focus",q=Ld;break;case"focusout":pe="blur",q=Ld;break;case"beforeblur":case"afterblur":q=Ld;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":q=hh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=$w;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Gw;break;case Rh:case Dh:case Mh:q=Rw;break;case Ih:q=Jw;break;case"scroll":case"scrollend":q=Lw;break;case"wheel":q=Ww;break;case"copy":case"cut":case"paste":q=Mw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=kh;break;case"toggle":case"beforetoggle":q=e2}var Ae=(t&4)!==0,vo=!Ae&&(o==="scroll"||o==="scrollend"),R=Ae?K!==null?K+"Capture":null:K;Ae=[];for(var L=U,I;L!==null;){var J=L;if(I=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||I===null||R===null||(J=Rl(L,R),J!=null&&Ae.push(hi(L,J,I))),vo)break;L=L.return}0<Ae.length&&(K=new q(K,pe,null,l,Y),Q.push({event:K,listeners:Ae}))}}if((t&7)===0){e:{if(K=o==="mouseover"||o==="pointerover",q=o==="mouseout"||o==="pointerout",K&&l!==zd&&(pe=l.relatedTarget||l.fromElement)&&(Ca(pe)||pe[Aa]))break e;if((q||K)&&(K=Y.window===Y?Y:(K=Y.ownerDocument)?K.defaultView||K.parentWindow:window,q?(pe=l.relatedTarget||l.toElement,q=U,pe=pe?Ca(pe):null,pe!==null&&(vo=d(pe),Ae=pe.tag,pe!==vo||Ae!==5&&Ae!==27&&Ae!==6)&&(pe=null)):(q=null,pe=U),q!==pe)){if(Ae=hh,J="onMouseLeave",R="onMouseEnter",L="mouse",(o==="pointerout"||o==="pointerover")&&(Ae=kh,J="onPointerLeave",R="onPointerEnter",L="pointer"),vo=q==null?K:Bl(q),I=pe==null?K:Bl(pe),K=new Ae(J,L+"leave",q,l,Y),K.target=vo,K.relatedTarget=I,J=null,Ca(Y)===U&&(Ae=new Ae(R,L+"enter",pe,l,Y),Ae.target=I,Ae.relatedTarget=vo,J=Ae),vo=J,q&&pe)o:{for(Ae=Q2,R=q,L=pe,I=0,J=R;J;J=Ae(J))I++;J=0;for(var ze=L;ze;ze=Ae(ze))J++;for(;0<I-J;)R=Ae(R),I--;for(;0<J-I;)L=Ae(L),J--;for(;I--;){if(R===L||L!==null&&R===L.alternate){Ae=R;break o}R=Ae(R),L=Ae(L)}Ae=null}else Ae=null;q!==null&&cv(Q,K,q,Ae,!1),pe!==null&&vo!==null&&cv(Q,vo,pe,Ae,!0)}}e:{if(K=U?Bl(U):window,q=K.nodeName&&K.nodeName.toLowerCase(),q==="select"||q==="input"&&K.type==="file")var no=jh;else if(wh(K))if(Sh)no=d2;else{no=c2;var ge=i2}else q=K.nodeName,!q||q.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?U&&wd(U.elementType)&&(no=jh):no=s2;if(no&&(no=no(o,U))){zh(Q,no,l,Y);break e}ge&&ge(o,K,U),o==="focusout"&&U&&K.type==="number"&&U.memoizedProps.value!=null&&yd(K,"number",K.value)}switch(ge=U?Bl(U):window,o){case"focusin":(wh(ge)||ge.contentEditable==="true")&&(Ma=ge,Dd=U,Vl=null);break;case"focusout":Vl=Dd=Ma=null;break;case"mousedown":Md=!0;break;case"contextmenu":case"mouseup":case"dragend":Md=!1,Nh(Q,l,Y);break;case"selectionchange":if(f2)break;case"keydown":case"keyup":Nh(Q,l,Y)}var Ie;if($d)e:{switch(o){case"compositionstart":var Je="onCompositionStart";break e;case"compositionend":Je="onCompositionEnd";break e;case"compositionupdate":Je="onCompositionUpdate";break e}Je=void 0}else Da?xh(o,l)&&(Je="onCompositionEnd"):o==="keydown"&&l.keyCode===229&&(Je="onCompositionStart");Je&&(vh&&l.locale!=="ko"&&(Da||Je!=="onCompositionStart"?Je==="onCompositionEnd"&&Da&&(Ie=bh()):(mr=Y,Ad="value"in mr?mr.value:mr.textContent,Da=!0)),ge=ts(U,Je),0<ge.length&&(Je=new ph(Je,o,null,l,Y),Q.push({event:Je,listeners:ge}),Ie?Je.data=Ie:(Ie=yh(l),Ie!==null&&(Je.data=Ie)))),(Ie=n2?t2(o,l):r2(o,l))&&(Je=ts(U,"onBeforeInput"),0<Je.length&&(ge=new ph("onBeforeInput","beforeinput",null,l,Y),Q.push({event:ge,listeners:Je}),ge.data=Ie)),Y2(Q,o,U,l,Y)}lv(Q,t)})}function hi(o,t,l){return{instance:o,listener:t,currentTarget:l}}function ts(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=Rl(o,l),f!=null&&s.unshift(hi(o,f,b)),f=Rl(o,t),f!=null&&s.push(hi(o,f,b))),o.tag===3)return s;o=o.return}return[]}function Q2(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function cv(o,t,l,s,f){for(var b=t._reactName,k=[];l!==null&&l!==s;){var y=l,A=y.alternate,U=y.stateNode;if(y=y.tag,A!==null&&A===s)break;y!==5&&y!==26&&y!==27||U===null||(A=U,f?(U=Rl(l,b),U!=null&&k.unshift(hi(l,U,A))):f||(U=Rl(l,b),U!=null&&k.push(hi(l,U,A)))),l=l.return}k.length!==0&&o.push({event:t,listeners:k})}var ez=/\r\n?/g,oz=/\u0000|\uFFFD/g;function sv(o){return(typeof o=="string"?o:""+o).replace(ez,`
10
+ `).replace(oz,"")}function dv(o,t){return t=sv(t),sv(o)===t}function ko(o,t,l,s,f,b){switch(l){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Na(o,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Na(o,""+s);break;case"className":ic(o,"class",s);break;case"tabIndex":ic(o,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ic(o,l,s);break;case"style":dh(o,s,b);break;case"data":if(t!=="object"){ic(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=sc(""+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"&&ko(o,t,"name",f.name,f,null),ko(o,t,"formEncType",f.formEncType,f,null),ko(o,t,"formMethod",f.formMethod,f,null),ko(o,t,"formTarget",f.formTarget,f,null)):(ko(o,t,"encType",f.encType,f,null),ko(o,t,"method",f.method,f,null),ko(o,t,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){o.removeAttribute(l);break}s=sc(""+s),o.setAttribute(l,s);break;case"onClick":s!=null&&(o.onclick=Dt);break;case"onScroll":s!=null&&Ze("scroll",o);break;case"onScrollEnd":s!=null&&Ze("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=sc(""+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":Ze("beforetoggle",o),Ze("toggle",o),lc(o,"popover",s);break;case"xlinkActuate":Rt(o,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Rt(o,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Rt(o,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Rt(o,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Rt(o,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Rt(o,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Rt(o,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Rt(o,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Rt(o,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":lc(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=Cw.get(l)||l,lc(o,l,s))}}function df(o,t,l,s,f,b){switch(l){case"style":dh(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"?Na(o,s):(typeof s=="number"||typeof s=="bigint")&&Na(o,""+s);break;case"onScroll":s!=null&&Ze("scroll",o);break;case"onScrollEnd":s!=null&&Ze("scrollend",o);break;case"onClick":s!=null&&(o.onclick=Dt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!oh.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[En]||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,""):lc(o,l,s)}}}function un(o,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ze("error",o),Ze("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:ko(o,t,b,k,l,null)}}f&&ko(o,t,"srcSet",l.srcSet,l,null),s&&ko(o,t,"src",l.src,l,null);return;case"input":Ze("invalid",o);var y=b=k=f=null,A=null,U=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":U=Y;break;case"value":b=Y;break;case"defaultValue":y=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:ko(o,t,s,Y,l,null)}}lh(o,b,y,A,U,k,f,!1);return;case"select":Ze("invalid",o),s=k=b=null;for(f in l)if(l.hasOwnProperty(f)&&(y=l[f],y!=null))switch(f){case"value":b=y;break;case"defaultValue":k=y;break;case"multiple":s=y;default:ko(o,t,f,y,l,null)}t=b,l=k,o.multiple=!!s,t!=null?$a(o,!!s,t,!1):l!=null&&$a(o,!!s,l,!0);return;case"textarea":Ze("invalid",o),b=f=s=null;for(k in l)if(l.hasOwnProperty(k)&&(y=l[k],y!=null))switch(k){case"value":s=y;break;case"defaultValue":f=y;break;case"children":b=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(i(91));break;default:ko(o,t,k,y,l,null)}ch(o,s,f,b);return;case"option":for(A in l)if(l.hasOwnProperty(A)&&(s=l[A],s!=null))switch(A){case"selected":o.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:ko(o,t,A,s,l,null)}return;case"dialog":Ze("beforetoggle",o),Ze("toggle",o),Ze("cancel",o),Ze("close",o);break;case"iframe":case"object":Ze("load",o);break;case"video":case"audio":for(s=0;s<mi.length;s++)Ze(mi[s],o);break;case"image":Ze("error",o),Ze("load",o);break;case"details":Ze("toggle",o);break;case"embed":case"source":case"link":Ze("error",o),Ze("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(U in l)if(l.hasOwnProperty(U)&&(s=l[U],s!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:ko(o,t,U,s,l,null)}return;default:if(wd(t)){for(Y in l)l.hasOwnProperty(Y)&&(s=l[Y],s!==void 0&&df(o,t,Y,s,l,void 0));return}}for(y in l)l.hasOwnProperty(y)&&(s=l[y],s!=null&&ko(o,t,y,s,l,null))}function nz(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,y=null,A=null,U=null,Y=null;for(q in l){var Q=l[q];if(l.hasOwnProperty(q)&&Q!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":A=Q;default:s.hasOwnProperty(q)||ko(o,t,q,null,s,Q)}}for(var K in s){var q=s[K];if(Q=l[K],s.hasOwnProperty(K)&&(q!=null||Q!=null))switch(K){case"type":b=q;break;case"name":f=q;break;case"checked":U=q;break;case"defaultChecked":Y=q;break;case"value":k=q;break;case"defaultValue":y=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(i(137,t));break;default:q!==Q&&ko(o,t,K,q,s,Q)}}xd(o,k,y,A,U,Y,b,f);return;case"select":q=k=y=K=null;for(b in l)if(A=l[b],l.hasOwnProperty(b)&&A!=null)switch(b){case"value":break;case"multiple":q=A;default:s.hasOwnProperty(b)||ko(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":K=b;break;case"defaultValue":y=b;break;case"multiple":k=b;default:b!==A&&ko(o,t,f,b,s,A)}t=y,l=k,s=q,K!=null?$a(o,!!l,K,!1):!!s!=!!l&&(t!=null?$a(o,!!l,t,!0):$a(o,!!l,l?[]:"",!1));return;case"textarea":q=K=null;for(y in l)if(f=l[y],l.hasOwnProperty(y)&&f!=null&&!s.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:ko(o,t,y,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":K=f;break;case"defaultValue":q=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==b&&ko(o,t,k,f,s,b)}ih(o,K,q);return;case"option":for(var pe in l)if(K=l[pe],l.hasOwnProperty(pe)&&K!=null&&!s.hasOwnProperty(pe))switch(pe){case"selected":o.selected=!1;break;default:ko(o,t,pe,null,s,K)}for(A in s)if(K=s[A],q=l[A],s.hasOwnProperty(A)&&K!==q&&(K!=null||q!=null))switch(A){case"selected":o.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:ko(o,t,A,K,s,q)}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 Ae in l)K=l[Ae],l.hasOwnProperty(Ae)&&K!=null&&!s.hasOwnProperty(Ae)&&ko(o,t,Ae,null,s,K);for(U in s)if(K=s[U],q=l[U],s.hasOwnProperty(U)&&K!==q&&(K!=null||q!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,t));break;default:ko(o,t,U,K,s,q)}return;default:if(wd(t)){for(var vo in l)K=l[vo],l.hasOwnProperty(vo)&&K!==void 0&&!s.hasOwnProperty(vo)&&df(o,t,vo,void 0,s,K);for(Y in s)K=s[Y],q=l[Y],!s.hasOwnProperty(Y)||K===q||K===void 0&&q===void 0||df(o,t,Y,K,s,q);return}}for(var R in l)K=l[R],l.hasOwnProperty(R)&&K!=null&&!s.hasOwnProperty(R)&&ko(o,t,R,null,s,K);for(Q in s)K=s[Q],q=l[Q],!s.hasOwnProperty(Q)||K===q||K==null&&q==null||ko(o,t,Q,K,s,q)}function uv(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function tz(){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,y=f.duration;if(b&&y&&uv(k)){for(k=0,y=f.responseEnd,s+=1;s<l.length;s++){var A=l[s],U=A.startTime;if(U>y)break;var Y=A.transferSize,Q=A.initiatorType;Y&&uv(Q)&&(A=A.responseEnd,k+=Y*(A<y?1:(y-U)/(A-U)))}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 uf=null,ff=null;function rs(o){return o.nodeType===9?o:o.ownerDocument}function fv(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 bv(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 bf(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 mf=null;function rz(){var o=window.event;return o&&o.type==="popstate"?o===mf?!1:(mf=o,!0):(mf=null,!1)}var mv=typeof setTimeout=="function"?setTimeout:void 0,az=typeof clearTimeout=="function"?clearTimeout:void 0,hv=typeof Promise=="function"?Promise:void 0,lz=typeof queueMicrotask=="function"?queueMicrotask:typeof hv<"u"?function(o){return hv.resolve(null).then(o).catch(iz)}:mv;function iz(o){setTimeout(function(){throw o})}function Lr(o){return o==="head"}function pv(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),ul(t);return}s--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")s++;else if(l==="html")pi(o.ownerDocument.documentElement);else if(l==="head"){l=o.ownerDocument.head,pi(l);for(var b=l.firstChild;b;){var k=b.nextSibling,y=b.nodeName;b[Nl]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&b.rel.toLowerCase()==="stylesheet"||l.removeChild(b),b=k}}else l==="body"&&pi(o.ownerDocument.body);l=f}while(l);ul(t)}function kv(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 hf(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":hf(l),gd(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}o.removeChild(l)}}function cz(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[Nl])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=mt(o.nextSibling),o===null)break}return null}function sz(o,t,l){if(t==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=mt(o.nextSibling),o===null))return null;return o}function vv(o,t){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!t||(o=mt(o.nextSibling),o===null))return null;return o}function pf(o){return o.data==="$?"||o.data==="$~"}function kf(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function dz(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 mt(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 vf=null;function gv(o){o=o.nextSibling;for(var t=0;o;){if(o.nodeType===8){var l=o.data;if(l==="/$"||l==="/&"){if(t===0)return mt(o.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}o=o.nextSibling}return null}function _v(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 xv(o,t,l){switch(t=rs(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 pi(o){for(var t=o.attributes;t.length;)o.removeAttributeNode(t[0]);gd(o)}var ht=new Map,yv=new Set;function as(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Qt=G.d;G.d={f:uz,r:fz,D:bz,C:mz,L:hz,m:pz,X:vz,S:kz,M:gz};function uz(){var o=Qt.f(),t=Jc();return o||t}function fz(o){var t=Ea(o);t!==null&&t.tag===5&&t.type==="form"?Ip(t):Qt.r(o)}var cl=typeof document>"u"?null:document;function wv(o,t,l){var s=cl;if(s&&typeof t=="string"&&t){var f=it(t);f='link[rel="'+o+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),yv.has(f)||(yv.add(f),o={rel:o,crossOrigin:l,href:t},s.querySelector(f)===null&&(t=s.createElement("link"),un(t,"link",o),nn(t),s.head.appendChild(t)))}}function bz(o){Qt.D(o),wv("dns-prefetch",o,null)}function mz(o,t){Qt.C(o,t),wv("preconnect",o,t)}function hz(o,t,l){Qt.L(o,t,l);var s=cl;if(s&&o&&t){var f='link[rel="preload"][as="'+it(t)+'"]';t==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+it(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+it(l.imageSizes)+'"]')):f+='[href="'+it(o)+'"]';var b=f;switch(t){case"style":b=sl(o);break;case"script":b=dl(o)}ht.has(b)||(o=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:o,as:t},l),ht.set(b,o),s.querySelector(f)!==null||t==="style"&&s.querySelector(ki(b))||t==="script"&&s.querySelector(vi(b))||(t=s.createElement("link"),un(t,"link",o),nn(t),s.head.appendChild(t)))}}function pz(o,t){Qt.m(o,t);var l=cl;if(l&&o){var s=t&&typeof t.as=="string"?t.as:"script",f='link[rel="modulepreload"][as="'+it(s)+'"][href="'+it(o)+'"]',b=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=dl(o)}if(!ht.has(b)&&(o=v({rel:"modulepreload",href:o},t),ht.set(b,o),l.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(vi(b)))return}s=l.createElement("link"),un(s,"link",o),nn(s),l.head.appendChild(s)}}}function kz(o,t,l){Qt.S(o,t,l);var s=cl;if(s&&o){var f=La(s).hoistableStyles,b=sl(o);t=t||"default";var k=f.get(b);if(!k){var y={loading:0,preload:null};if(k=s.querySelector(ki(b)))y.loading=5;else{o=v({rel:"stylesheet",href:o,"data-precedence":t},l),(l=ht.get(b))&&gf(o,l);var A=k=s.createElement("link");nn(A),un(A,"link",o),A._p=new Promise(function(U,Y){A.onload=U,A.onerror=Y}),A.addEventListener("load",function(){y.loading|=1}),A.addEventListener("error",function(){y.loading|=2}),y.loading|=4,ls(k,t,s)}k={type:"stylesheet",instance:k,count:1,state:y},f.set(b,k)}}}function vz(o,t){Qt.X(o,t);var l=cl;if(l&&o){var s=La(l).hoistableScripts,f=dl(o),b=s.get(f);b||(b=l.querySelector(vi(f)),b||(o=v({src:o,async:!0},t),(t=ht.get(f))&&_f(o,t),b=l.createElement("script"),nn(b),un(b,"link",o),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},s.set(f,b))}}function gz(o,t){Qt.M(o,t);var l=cl;if(l&&o){var s=La(l).hoistableScripts,f=dl(o),b=s.get(f);b||(b=l.querySelector(vi(f)),b||(o=v({src:o,async:!0,type:"module"},t),(t=ht.get(f))&&_f(o,t),b=l.createElement("script"),nn(b),un(b,"link",o),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},s.set(f,b))}}function zv(o,t,l,s){var f=(f=Ne.current)?as(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=sl(l.href),l=La(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=sl(l.href);var b=La(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(ki(o)))&&!b._p&&(k.instance=b,k.state.loading=5),ht.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},ht.set(o,l),b||_z(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=dl(l),l=La(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 sl(o){return'href="'+it(o)+'"'}function ki(o){return'link[rel="stylesheet"]['+o+"]"}function jv(o){return v({},o,{"data-precedence":o.precedence,precedence:null})}function _z(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}),un(t,"link",l),nn(t),o.head.appendChild(t))}function dl(o){return'[src="'+it(o)+'"]'}function vi(o){return"script[async]"+o}function Sv(o,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var s=o.querySelector('style[data-href~="'+it(l.href)+'"]');if(s)return t.instance=s,nn(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"),nn(s),un(s,"style",f),ls(s,l.precedence,o),t.instance=s;case"stylesheet":f=sl(l.href);var b=o.querySelector(ki(f));if(b)return t.state.loading|=4,t.instance=b,nn(b),b;s=jv(l),(f=ht.get(f))&&gf(s,f),b=(o.ownerDocument||o).createElement("link"),nn(b);var k=b;return k._p=new Promise(function(y,A){k.onload=y,k.onerror=A}),un(b,"link",s),t.state.loading|=4,ls(b,l.precedence,o),t.instance=b;case"script":return b=dl(l.src),(f=o.querySelector(vi(b)))?(t.instance=f,nn(f),f):(s=l,(f=ht.get(b))&&(s=v({},l),_f(s,f)),o=o.ownerDocument||o,f=o.createElement("script"),nn(f),un(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,ls(s,l.precedence,o));return t.instance}function ls(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 y=s[k];if(y.dataset.precedence===t)b=y;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 gf(o,t){o.crossOrigin==null&&(o.crossOrigin=t.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=t.referrerPolicy),o.title==null&&(o.title=t.title)}function _f(o,t){o.crossOrigin==null&&(o.crossOrigin=t.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=t.referrerPolicy),o.integrity==null&&(o.integrity=t.integrity)}var is=null;function Tv(o,t,l){if(is===null){var s=new Map,f=is=new Map;f.set(l,s)}else f=is,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[Nl]||b[ln]||o==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var k=b.getAttribute(t)||"";k=o+k;var y=s.get(k);y?y.push(b):s.set(k,[b])}}return s}function Av(o,t,l){o=o.ownerDocument||o,o.head.insertBefore(l,t==="title"?o.querySelector("head > title"):null)}function xz(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;switch(t.rel){case"stylesheet":return o=t.disabled,typeof t.precedence=="string"&&o==null;default:return!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 Cv(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function yz(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=sl(s.href),b=t.querySelector(ki(f));if(b){t=b._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(o.count++,o=cs.bind(o),t.then(o,o)),l.state.loading|=4,l.instance=b,nn(b);return}b=t.ownerDocument||t,s=jv(s),(f=ht.get(f))&&gf(s,f),b=b.createElement("link"),nn(b);var k=b;k._p=new Promise(function(y,A){k.onload=y,k.onerror=A}),un(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=cs.bind(o),t.addEventListener("load",l),t.addEventListener("error",l))}}var xf=0;function wz(o,t){return o.stylesheets&&o.count===0&&ds(o,o.stylesheets),0<o.count||0<o.imgCount?function(l){var s=setTimeout(function(){if(o.stylesheets&&ds(o,o.stylesheets),o.unsuspend){var b=o.unsuspend;o.unsuspend=null,b()}},6e4+t);0<o.imgBytes&&xf===0&&(xf=62500*tz());var f=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&ds(o,o.stylesheets),o.unsuspend)){var b=o.unsuspend;o.unsuspend=null,b()}},(o.imgBytes>xf?50:800)+t);return o.unsuspend=l,function(){o.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function cs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ds(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var ss=null;function ds(o,t){o.stylesheets=null,o.unsuspend!==null&&(o.count++,ss=new Map,t.forEach(zz,o),ss=null,cs.call(o))}function zz(o,t){if(!(t.state.loading&4)){var l=ss.get(o);if(l)var s=l.get(null);else{l=new Map,ss.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=cs.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 gi={$$typeof:w,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function jz(o,t,l,s,f,b,k,y,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=hd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hd(0),this.hiddenUpdates=hd(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 Ev(o,t,l,s,f,b,k,y,A,U,Y,Q){return o=new jz(o,t,l,k,A,U,Y,Q,y),t=1,b===!0&&(t|=24),b=Vn(3,null,null,t),o.current=b,b.stateNode=o,t=Qd(),t.refCount++,o.pooledCache=t,t.refCount++,b.memoizedState={element:s,isDehydrated:l,cache:t},tu(b),o}function Lv(o){return o?(o=Fa,o):Fa}function Ov(o,t,l,s,f,b){f=Lv(f),s.context===null?s.context=f:s.pendingContext=f,s=_r(t),s.payload={element:l},b=b===void 0?null:b,b!==null&&(s.callback=b),l=xr(o,s,t),l!==null&&(Rn(l,o,t),Xl(l,o,t))}function $v(o,t){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var l=o.retryLane;o.retryLane=l!==0&&l<t?l:t}}function yf(o,t){$v(o,t),(o=o.alternate)&&$v(o,t)}function Nv(o){if(o.tag===13||o.tag===31){var t=oa(o,67108864);t!==null&&Rn(t,o,67108864),yf(o,67108864)}}function Bv(o){if(o.tag===13||o.tag===31){var t=Yn();t=pd(t);var l=oa(o,t);l!==null&&Rn(l,o,t),yf(o,t)}}var us=!0;function Sz(o,t,l,s){var f=M.T;M.T=null;var b=G.p;try{G.p=2,wf(o,t,l,s)}finally{G.p=b,M.T=f}}function Tz(o,t,l,s){var f=M.T;M.T=null;var b=G.p;try{G.p=8,wf(o,t,l,s)}finally{G.p=b,M.T=f}}function wf(o,t,l,s){if(us){var f=zf(s);if(f===null)sf(o,t,s,fs,l),Dv(o,s);else if(Cz(f,o,t,l,s))s.stopPropagation();else if(Dv(o,s),t&4&&-1<Az.indexOf(o)){for(;f!==null;){var b=Ea(f);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var k=Jr(b.pendingLanes);if(k!==0){var y=b;for(y.pendingLanes|=2,y.entangledLanes|=2;k;){var A=1<<31-zn(k);y.entanglements[1]|=A,k&=~A}Lt(b),(co&6)===0&&(Gc=te()+500,bi(0))}}break;case 31:case 13:y=oa(b,2),y!==null&&Rn(y,b,2),Jc(),yf(b,2)}if(b=zf(s),b===null&&sf(o,t,s,fs,l),b===f)break;f=b}f!==null&&s.stopPropagation()}else sf(o,t,s,null,l)}}function zf(o){return o=jd(o),jf(o)}var fs=null;function jf(o){if(fs=null,o=Ca(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 fs=o,null}function Rv(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(re()){case oe:return 2;case ve:return 8;case eo:case io:return 32;case on:return 268435456;default:return 32}default:return 32}}var Sf=!1,Or=null,$r=null,Nr=null,_i=new Map,xi=new Map,Br=[],Az="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 Dv(o,t){switch(o){case"focusin":case"focusout":Or=null;break;case"dragenter":case"dragleave":$r=null;break;case"mouseover":case"mouseout":Nr=null;break;case"pointerover":case"pointerout":_i.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xi.delete(t.pointerId)}}function yi(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=Ea(t),t!==null&&Nv(t)),o):(o.eventSystemFlags|=s,t=o.targetContainers,f!==null&&t.indexOf(f)===-1&&t.push(f),o)}function Cz(o,t,l,s,f){switch(t){case"focusin":return Or=yi(Or,o,t,l,s,f),!0;case"dragenter":return $r=yi($r,o,t,l,s,f),!0;case"mouseover":return Nr=yi(Nr,o,t,l,s,f),!0;case"pointerover":var b=f.pointerId;return _i.set(b,yi(_i.get(b)||null,o,t,l,s,f)),!0;case"gotpointercapture":return b=f.pointerId,xi.set(b,yi(xi.get(b)||null,o,t,l,s,f)),!0}return!1}function Mv(o){var t=Ca(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,Wm(o.priority,function(){Bv(l)});return}}else if(t===31){if(t=m(l),t!==null){o.blockedOn=t,Wm(o.priority,function(){Bv(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 bs(o){if(o.blockedOn!==null)return!1;for(var t=o.targetContainers;0<t.length;){var l=zf(o.nativeEvent);if(l===null){l=o.nativeEvent;var s=new l.constructor(l.type,l);zd=s,l.target.dispatchEvent(s),zd=null}else return t=Ea(l),t!==null&&Nv(t),o.blockedOn=l,!1;t.shift()}return!0}function Iv(o,t,l){bs(o)&&l.delete(t)}function Ez(){Sf=!1,Or!==null&&bs(Or)&&(Or=null),$r!==null&&bs($r)&&($r=null),Nr!==null&&bs(Nr)&&(Nr=null),_i.forEach(Iv),xi.forEach(Iv)}function ms(o,t){o.blockedOn===t&&(o.blockedOn=null,Sf||(Sf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ez)))}var hs=null;function Uv(o){hs!==o&&(hs=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){hs===o&&(hs=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(jf(s||l)===null)continue;break}var b=Ea(l);b!==null&&(o.splice(t,3),t-=3,wu(b,{pending:!0,data:f,method:l.method,action:s},s,f))}}))}function ul(o){function t(A){return ms(A,o)}Or!==null&&ms(Or,o),$r!==null&&ms($r,o),Nr!==null&&ms(Nr,o),_i.forEach(t),xi.forEach(t);for(var l=0;l<Br.length;l++){var s=Br[l];s.blockedOn===o&&(s.blockedOn=null)}for(;0<Br.length&&(l=Br[0],l.blockedOn===null);)Mv(l),l.blockedOn===null&&Br.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[En]||null;if(typeof b=="function")k||Uv(l);else if(k){var y=null;if(b&&b.hasAttribute("formAction")){if(f=b,k=b[En]||null)y=k.formAction;else if(jf(f)!==null)continue}else y=k.action;typeof y=="function"?l[s+1]=y:(l.splice(s,3),s-=3),Uv(l)}}}function Fv(){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 Tf(o){this._internalRoot=o}ps.prototype.render=Tf.prototype.render=function(o){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,s=Yn();Ov(l,s,o,t,null,null)},ps.prototype.unmount=Tf.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var t=o.containerInfo;Ov(o.current,2,null,o,null,null),Jc(),t[Aa]=null}};function ps(o){this._internalRoot=o}ps.prototype.unstable_scheduleHydration=function(o){if(o){var t=Xm();o={blockedOn:null,target:o,priority:t};for(var l=0;l<Br.length&&t!==0&&t<Br[l].priority;l++);Br.splice(l,0,o),l===0&&Mv(o)}};var Hv=n.version;if(Hv!=="19.2.4")throw Error(i(527,Hv,"19.2.4"));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 Lz={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ks=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ks.isDisabled&&ks.supportsFiber)try{Yr=ks.inject(Lz),an=ks}catch{}}return ji.createRoot=function(o,t){if(!c(o))throw Error(i(299));var l=!1,s="",f=Yp,b=Jp,k=Xp;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=Ev(o,1,!1,null,null,l,s,null,f,b,k,Fv),o[Aa]=t.current,cf(o),new Tf(t)},ji.hydrateRoot=function(o,t,l){if(!c(o))throw Error(i(299));var s=!1,f="",b=Yp,k=Jp,y=Xp,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&&(y=l.onRecoverableError),l.formState!==void 0&&(A=l.formState)),t=Ev(o,1,!0,t,l??null,s,f,A,b,k,y,Fv),t.context=Lv(null),l=t.current,s=Yn(),s=pd(s),f=_r(s),f.callback=null,xr(l,f,s),l=s,t.current.lanes=l,$l(t,l),Lt(t),o[Aa]=t.current,cf(o),new ps(t)},ji.version="19.2.4",ji}var Qv;function Qz(){if(Qv)return Lf.exports;Qv=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(),Lf.exports=Wz(),Lf.exports}var Tx=Qz();var eg="popstate";function e4(e={}){function n(c,d){let{pathname:u="/",search:m="",hash:h=""}=za(c.location.hash.substring(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),bb("",{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:Fi(d))}function i(c,d){nt(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(d)})`)}return n4(n,r,i,e)}function zo(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function nt(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function o4(){return Math.random().toString(36).substring(2,10)}function og(e,n){return{usr:e.state,key:e.key,idx:n}}function bb(e,n,r=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?za(n):n,state:r,key:n&&n.key||i||o4()}}function Fi({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 za(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 n4(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 O=g(),E=O==null?null:O-p;p=O,h&&h({action:m,location:S.location,delta:E})}function x(O,E){m="PUSH";let _=bb(S.location,O,E);r&&r(_,O),p=g()+1;let w=og(_,p),$=S.createHref(_);try{u.pushState(w,"",$)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;c.location.assign($)}d&&h&&h({action:m,location:S.location,delta:1})}function z(O,E){m="REPLACE";let _=bb(S.location,O,E);r&&r(_,O),p=g();let w=og(_,p),$=S.createHref(_);u.replaceState(w,"",$),d&&h&&h({action:m,location:S.location,delta:0})}function N(O){return t4(O)}let S={get action(){return m},get location(){return e(c,u)},listen(O){if(h)throw new Error("A history only accepts one active listener");return c.addEventListener(eg,v),h=O,()=>{c.removeEventListener(eg,v),h=null}},createHref(O){return n(c,O)},createURL:N,encodeLocation(O){let E=N(O);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:x,replace:z,go(O){return u.go(O)}};return S}function t4(e,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),zo(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Fi(e);return i=i.replace(/ $/,"%20"),!n&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function Ax(e,n,r="/"){return r4(e,n,r,!1)}function r4(e,n,r,i){let c=typeof n=="string"?za(n):n,d=sr(c.pathname||"/",r);if(d==null)return null;let u=Cx(e);a4(u);let m=null;for(let h=0;m==null&&h<u.length;++h){let p=Lx(d);m=m4(u[h],p,i)}return m}function Cx(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;zo(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=lr([i,g.relativePath]),x=r.concat(g);u.children&&u.children.length>0&&(zo(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Cx(u.children,n,x,v,h)),!(u.path==null&&!u.index)&&n.push({path:v,score:f4(v,u.index),routesMeta:x})};return e.forEach((u,m)=>{if(u.path===""||!u.path?.includes("?"))d(u,m);else for(let h of Ex(u.path))d(u,m,!0,h)}),n}function Ex(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=Ex(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 a4(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:b4(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var l4=/^:[\w-]+$/,i4=3,c4=2,s4=1,d4=10,u4=-2,ng=e=>e==="*";function f4(e,n){let r=e.split("/"),i=r.length;return r.some(ng)&&(i+=u4),n&&(i+=c4),r.filter(c=>!ng(c)).reduce((c,d)=>c+(l4.test(d)?i4:d===""?s4:d4),i)}function b4(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 m4(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=Hi({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),x=h.route;if(!v&&p&&r&&!i[i.length-1].route.index&&(v=Hi({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!v)return null;Object.assign(c,v.params),u.push({params:c,pathname:lr([d,v.pathname]),pathnameBase:g4(lr([d,v.pathnameBase])),route:x}),v.pathnameBase!=="/"&&(d=lr([d,v.pathnameBase]))}return u}function Hi(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=h4(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},x)=>{if(g==="*"){let N=m[x]||"";u=d.slice(0,d.length-N.length).replace(/(.)\/+$/,"$1")}const z=m[x];return v&&!z?p[g]=void 0:p[g]=(z||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:u,pattern:e}}function h4(e,n=!1,r=!0){nt(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)=>(i.push({paramName:m,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).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 Lx(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return nt(!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 p4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function k4(e,n="/"){let{pathname:r,search:i="",hash:c=""}=typeof e=="string"?za(e):e,d;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?d=tg(r.substring(1),"/"):d=tg(r,n)):d=n,{pathname:d,search:_4(i),hash:x4(c)}}function tg(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(c=>{c===".."?r.length>1&&r.pop():c!=="."&&r.push(c)}),r.length>1?r.join("/"):"/"}function Bf(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 v4(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function tm(e){let n=v4(e);return n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase)}function rm(e,n,r,i=!1){let c;typeof e=="string"?c=za(e):(c={...e},zo(!c.pathname||!c.pathname.includes("?"),Bf("?","pathname","search",c)),zo(!c.pathname||!c.pathname.includes("#"),Bf("#","pathname","hash",c)),zo(!c.search||!c.search.includes("#"),Bf("#","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 x=u.split("/");for(;x[0]==="..";)x.shift(),v-=1;c.pathname=x.join("/")}m=v>=0?n[v]:"/"}let h=k4(c,m),p=u&&u!=="/"&&u.endsWith("/"),g=(d||u===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}var lr=e=>e.join("/").replace(/\/\/+/g,"/"),g4=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,x4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,y4=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 w4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function z4(e){return e.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Ox=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $x(e,n){let r=e;if(typeof r!="string"||!p4.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let i=r,c=!1;if(Ox)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{nt(!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 Nx=["POST","PUT","PATCH","DELETE"];new Set(Nx);var j4=["GET",...Nx];new Set(j4);var Cl=j.createContext(null);Cl.displayName="DataRouter";var nd=j.createContext(null);nd.displayName="DataRouterState";var S4=j.createContext(!1),Bx=j.createContext({isTransitioning:!1});Bx.displayName="ViewTransition";var T4=j.createContext(new Map);T4.displayName="Fetchers";var A4=j.createContext(null);A4.displayName="Await";var tt=j.createContext(null);tt.displayName="Navigation";var Wi=j.createContext(null);Wi.displayName="Location";var jt=j.createContext({outlet:null,matches:[],isDataRoute:!1});jt.displayName="Route";var am=j.createContext(null);am.displayName="RouteError";var Rx="REACT_ROUTER_ERROR",C4="REDIRECT",E4="ROUTE_ERROR_RESPONSE";function L4(e){if(e.startsWith(`${Rx}:${C4}:{`))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 O4(e){if(e.startsWith(`${Rx}:${E4}:{`))try{let n=JSON.parse(e.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new y4(n.status,n.statusText,n.data)}catch{}}function Dx(e,{relative:n}={}){zo(ja(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=j.useContext(tt),{hash:c,pathname:d,search:u}=El(e,{relative:n}),m=d;return r!=="/"&&(m=d==="/"?r:lr([r,d])),i.createHref({pathname:m,search:u,hash:c})}function ja(){return j.useContext(Wi)!=null}function rt(){return zo(ja(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(Wi).location}function $4(e){zo(ja(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:n}=rt();return j.useMemo(()=>Hi(e,Lx(n)),[n,e])}var Mx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ix(e){j.useContext(tt).static||j.useLayoutEffect(e)}function td(){let{isDataRoute:e}=j.useContext(jt);return e?P4():N4()}function N4(){zo(ja(),"useNavigate() may be used only in the context of a <Router> component.");let e=j.useContext(Cl),{basename:n,navigator:r}=j.useContext(tt),{matches:i}=j.useContext(jt),{pathname:c}=rt(),d=JSON.stringify(tm(i)),u=j.useRef(!1);return Ix(()=>{u.current=!0}),j.useCallback((h,p={})=>{if(nt(u.current,Mx),!u.current)return;if(typeof h=="number"){r.go(h);return}let g=rm(h,JSON.parse(d),c,p.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:lr([n,g.pathname])),(p.replace?r.replace:r.push)(g,p.state,p)},[n,r,d,c,e])}j.createContext(null);function B4(){let{matches:e}=j.useContext(jt),n=e[e.length-1];return n?n.params:{}}function El(e,{relative:n}={}){let{matches:r}=j.useContext(jt),{pathname:i}=rt(),c=JSON.stringify(tm(r));return j.useMemo(()=>rm(e,JSON.parse(c),i,n==="path"),[e,c,i,n])}function R4(e,n){return Ux(e,n)}function Ux(e,n,r,i,c){zo(ja(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=j.useContext(tt),{matches:u}=j.useContext(jt),m=u[u.length-1],h=m?m.params:{},p=m?m.pathname:"/",g=m?m.pathnameBase:"/",v=m&&m.route;{let _=v&&v.path||"";Hx(p,!v||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${_}">) 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="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let _=rt(),z;if(n){let x=typeof n=="string"?za(n):n;zo(g==="/"||x.pathname?.startsWith(g),`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 "${g}" but pathname "${x.pathname}" was given in the \`location\` prop.`),z=x}else z=_;let N=z.pathname||"/",S=N;if(g!=="/"){let x=g.replace(/^\//,"").split("/");S="/"+N.replace(/^\//,"").split("/").slice(x.length).join("/")}let O=Tx(e,{pathname:S});nt(v||O!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),nt(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${z.pathname}${z.search}${z.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 E=H4(O&&O.map(x=>Object.assign({},x,{params:Object.assign({},h,x.params),pathname:lr([g,d.encodeLocation?d.encodeLocation(x.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?g:lr([g,d.encodeLocation?d.encodeLocation(x.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),u,r,i,s);return n&&E?j.createElement(Ji.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...z},navigationType:"POP"}},E):E}function D4(){let e=Z4(),n=w4(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)",s={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=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:d},"ErrorBoundary")," or"," ",j.createElement("code",{style:d},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},n),r?j.createElement("pre",{style:s},r):null,u)}var M4=j.createElement(D4,null),Ux=class extends j.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=O4(e.digest);r&&(e=r)}let n=e!==void 0?j.createElement(jt.Provider,{value:this.props.routeContext},j.createElement(rm.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?j.createElement(I4,{error:e},n):n}};Ux.contextType=S4;var Bf=new WeakMap;function I4({children:e,error:n}){let{basename:r}=j.useContext(tt);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let i=L4(n.digest);if(i){let s=Bf.get(n);if(s)throw s;let d=Ox(i.location,r);if(Lx&&!Bf.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 Bf.set(n,u),u}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return e}function U4({routeContext:e,match:n,children:r}){let i=j.useContext(Al);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),j.createElement(jt.Provider,{value:e},r)}function H4(e,n=[],r=null,i=null,s=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let d=e,u=r?.errors;if(u!=null){let g=d.findIndex(v=>v.route.id&&u?.[v.route.id]!==void 0);zo(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),d=d.slice(0,Math.min(d.length,g+1))}let m=!1,h=-1;if(r)for(let g=0;g<d.length;g++){let v=d[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(h=g),v.route.id){let{loaderData:_,errors:z}=r,N=v.route.loader&&!_.hasOwnProperty(v.route.id)&&(!z||z[v.route.id]===void 0);if(v.route.lazy||N){m=!0,h>=0?d=d.slice(0,h+1):d=[d[0]];break}}}let p=r&&i?(g,v)=>{i(g,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:z4(r.matches),errorInfo:v})}:void 0;return d.reduceRight((g,v,_)=>{let z,N=!1,S=null,O=null;r&&(z=u&&v.route.id?u[v.route.id]:void 0,S=v.route.errorElement||M4,m&&(h<0&&_===0?(Hx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,O=null):h===_&&(N=!0,O=v.route.hydrateFallbackElement||null)));let E=n.concat(d.slice(0,_+1)),x=()=>{let w;return z?w=S:N?w=O:v.route.Component?w=j.createElement(v.route.Component,null):v.route.element?w=v.route.element:w=g,j.createElement(U4,{match:v,routeContext:{outlet:g,matches:E,isDataRoute:r!=null},children:w})};return r&&(v.route.ErrorBoundary||v.route.errorElement||_===0)?j.createElement(Ux,{location:r.location,revalidation:r.revalidation,component:S,error:z,children:x(),routeContext:{outlet:null,matches:E,isDataRoute:!0},onError:p}):x()},null)}function am(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function F4(e){let n=j.useContext(Al);return zo(n,am(e)),n}function K4(e){let n=j.useContext(ed);return zo(n,am(e)),n}function V4(e){let n=j.useContext(jt);return zo(n,am(e)),n}function lm(e){let n=V4(e),r=n.matches[n.matches.length-1];return zo(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function q4(){return lm("useRouteId")}function Z4(){let e=j.useContext(rm),n=K4("useRouteError"),r=lm("useRouteError");return e!==void 0?e:n.errors?.[r]}function P4(){let{router:e}=F4("useNavigate"),n=lm("useNavigate"),r=j.useRef(!1);return Mx(()=>{r.current=!0}),j.useCallback(async(s,d={})=>{nt(r.current,Dx),r.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:n,...d}))},[e,n])}var tg={};function Hx(e,n,r){!n&&!tg[e]&&(tg[e]=!0,nt(!1,r))}j.memo(G4);function G4({routes:e,future:n,state:r,onError:i}){return Ix(e,void 0,r,i,n)}function Fx({to:e,replace:n,state:r,relative:i}){zo(ja(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=j.useContext(tt);nt(!s,"<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}=j.useContext(jt),{pathname:u}=rt(),m=od(),h=tm(e,nm(d),u,i==="path"),p=JSON.stringify(h);return j.useEffect(()=>{m(JSON.parse(p),{replace:n,state:r,relative:i})},[m,p,i,n,r]),null}function ka(e){zo(!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 Y4({basename:e="/",children:n=null,location:r,navigationType:i="POP",navigator:s,static:d=!1,unstable_useTransitions:u}){zo(!ja(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=e.replace(/^\/*/,"/"),h=j.useMemo(()=>({basename:m,navigator:s,static:d,unstable_useTransitions:u,future:{}}),[m,s,d,u]);typeof r=="string"&&(r=za(r));let{pathname:p="/",search:g="",hash:v="",state:_=null,key:z="default"}=r,N=j.useMemo(()=>{let S=sr(p,m);return S==null?null:{location:{pathname:S,search:g,hash:v,state:_,key:z},navigationType:i}},[m,p,g,v,_,z,i]);return nt(N!=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.`),N==null?null:j.createElement(tt.Provider,{value:h},j.createElement(Ji.Provider,{children:n,value:N}))}function Kx({children:e,location:n}){return R4(bb(e),n)}function bb(e,n=[]){let r=[];return j.Children.forEach(e,(i,s)=>{if(!j.isValidElement(i))return;let d=[...n,s];if(i.type===j.Fragment){r.push.apply(r,bb(i.props.children,d));return}zo(i.type===ka,`[${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>`),zo(!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=bb(i.props.children,d)),r.push(u)}),r}var Ts="get",As="application/x-www-form-urlencoded";function nd(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function J4(e){return nd(e)&&e.tagName.toLowerCase()==="button"}function X4(e){return nd(e)&&e.tagName.toLowerCase()==="form"}function W4(e){return nd(e)&&e.tagName.toLowerCase()==="input"}function Q4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function e6(e,n){return e.button===0&&(!n||n==="_self")&&!Q4(e)}function mb(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(s=>[r,s]):[[r,i]])},[]))}function o6(e,n){let r=mb(e);return n&&n.forEach((i,s)=>{r.has(s)||n.getAll(s).forEach(d=>{r.append(s,d)})}),r}var ks=null;function n6(){if(ks===null)try{new FormData(document.createElement("form"),0),ks=!1}catch{ks=!0}return ks}var t6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Rf(e){return e!=null&&!t6.has(e)?(nt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${As}"`),null):e}function r6(e,n){let r,i,s,d,u;if(X4(e)){let m=e.getAttribute("action");i=m?sr(m,n):null,r=e.getAttribute("method")||Ts,s=Rf(e.getAttribute("enctype"))||As,d=new FormData(e)}else if(J4(e)||W4(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")||Ts,s=Rf(e.getAttribute("formenctype"))||Rf(m.getAttribute("enctype"))||As,d=new FormData(m,e),!n6()){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(nd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ts,i=null,s=As,u=e}return d&&s==="text/plain"&&(u=d,d=void 0),{action:i,method:r.toLowerCase(),encType:s,formData:d,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function im(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function a6(e,n,r,i){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${i}`:s.pathname=`${s.pathname}.${i}`:s.pathname==="/"?s.pathname=`_root.${i}`:n&&sr(s.pathname,n)==="/"?s.pathname=`${n.replace(/\/$/,"")}/_root.${i}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${i}`,s}async function l6(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 i6(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 c6(e,n,r){let i=await Promise.all(e.map(async s=>{let d=n.routes[s.route.id];if(d){let u=await l6(d,r);return u.links?u.links():[]}return[]}));return f6(i.flat(1).filter(i6).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function rg(e,n,r,i,s,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(s.pathname+s.search+s.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 s6(e,n,{includeHydrateFallback:r}={}){return d6(e.map(i=>{let s=n.routes[i.route.id];if(!s)return[];let d=[s.module];return s.clientActionModule&&(d=d.concat(s.clientActionModule)),s.clientLoaderModule&&(d=d.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(d=d.concat(s.hydrateFallbackModule)),s.imports&&(d=d.concat(s.imports)),d}).flat(1))}function d6(e){return[...new Set(e)]}function u6(e){let n={},r=Object.keys(e).sort();for(let i of r)n[i]=e[i];return n}function f6(e,n){let r=new Set;return new Set(n),e.reduce((i,s)=>{let d=JSON.stringify(u6(s));return r.has(d)||(r.add(d),i.push({key:d,link:s})),i},[])}function Vx(){let e=j.useContext(Al);return im(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function b6(){let e=j.useContext(ed);return im(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var cm=j.createContext(void 0);cm.displayName="FrameworkContext";function qx(){let e=j.useContext(cm);return im(e,"You must render this element inside a <HydratedRouter> element"),e}function m6(e,n){let r=j.useContext(cm),[i,s]=j.useState(!1),[d,u]=j.useState(!1),{onFocus:m,onBlur:h,onMouseEnter:p,onMouseLeave:g,onTouchStart:v}=n,_=j.useRef(null);j.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let S=E=>{E.forEach(x=>{u(x.isIntersecting)})},O=new IntersectionObserver(S,{threshold:.5});return _.current&&O.observe(_.current),()=>{O.disconnect()}}},[e]),j.useEffect(()=>{if(i){let S=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(S)}}},[i]);let z=()=>{s(!0)},N=()=>{s(!1),u(!1)};return r?e!=="intent"?[d,_,{}]:[d,_,{onFocus:ji(m,z),onBlur:ji(h,N),onMouseEnter:ji(p,z),onMouseLeave:ji(g,N),onTouchStart:ji(v,z)}]:[!1,_,{}]}function ji(e,n){return r=>{e&&e(r),r.defaultPrevented||n(r)}}function h6({page:e,...n}){let{router:r}=Vx(),i=j.useMemo(()=>Tx(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?j.createElement(k6,{page:e,matches:i,...n}):null}function p6(e){let{manifest:n,routeModules:r}=qx(),[i,s]=j.useState([]);return j.useEffect(()=>{let d=!1;return c6(e,n,r).then(u=>{d||s(u)}),()=>{d=!0}},[e,n,r]),i}function k6({page:e,matches:n,...r}){let i=rt(),{future:s,manifest:d,routeModules:u}=qx(),{basename:m}=Vx(),{loaderData:h,matches:p}=b6(),g=j.useMemo(()=>rg(e,n,p,d,i,"data"),[e,n,p,d,i]),v=j.useMemo(()=>rg(e,n,p,d,i,"assets"),[e,n,p,d,i]),_=j.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let S=new Set,O=!1;if(n.forEach(x=>{let w=d.routes[x.route.id];!w||!w.hasLoader||(!g.some($=>$.route.id===x.route.id)&&x.route.id in h&&u[x.route.id]?.shouldRevalidate||w.hasClientLoader?O=!0:S.add(x.route.id))}),S.size===0)return[];let E=a6(e,m,s.unstable_trailingSlashAwareDataRequests,"data");return O&&S.size>0&&E.searchParams.set("_routes",n.filter(x=>S.has(x.route.id)).map(x=>x.route.id).join(",")),[E.pathname+E.search]},[m,s.unstable_trailingSlashAwareDataRequests,h,i,d,g,n,e,u]),z=j.useMemo(()=>s6(v,d),[v,d]),N=p6(v);return j.createElement(j.Fragment,null,_.map(S=>j.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...r})),z.map(S=>j.createElement("link",{key:S,rel:"modulepreload",href:S,...r})),N.map(({key:S,link:O})=>j.createElement("link",{key:S,nonce:r.nonce,...O,crossOrigin:O.crossOrigin??r.crossOrigin})))}function v6(...e){return n=>{e.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var g6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{g6&&(window.__reactRouterVersion="7.13.0")}catch{}function _6({basename:e,children:n,unstable_useTransitions:r,window:i}){let s=j.useRef();s.current==null&&(s.current=e4({window:i,v5Compat:!0}));let d=s.current,[u,m]=j.useState({action:d.action,location:d.location}),h=j.useCallback(p=>{r===!1?m(p):j.startTransition(()=>m(p))},[r]);return j.useLayoutEffect(()=>d.listen(h),[d,h]),j.createElement(Y4,{basename:e,children:n,location:u.location,navigationType:u.action,navigator:d,unstable_useTransitions:r})}var Zx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Px=j.forwardRef(function({onClick:n,discover:r="render",prefetch:i="none",relative:s,reloadDocument:d,replace:u,state:m,target:h,to:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:_,...z},N){let{basename:S,unstable_useTransitions:O}=j.useContext(tt),E=typeof p=="string"&&Zx.test(p),x=Ox(p,S);p=x.to;let w=Rx(p,{relative:s}),[$,D,H]=m6(i,z),Z=z6(p,{replace:u,state:m,target:h,preventScrollReset:g,relative:s,viewTransition:v,unstable_defaultShouldRevalidate:_,unstable_useTransitions:O});function ee($e){n&&n($e),$e.defaultPrevented||Z($e)}let se=j.createElement("a",{...z,...H,href:x.absoluteURL||w,onClick:x.isExternal||d?n:ee,ref:v6(N,D),target:h,"data-discover":!E&&r==="render"?"true":void 0});return $&&!E?j.createElement(j.Fragment,null,se,j.createElement(h6,{page:w})):se});Px.displayName="Link";var x6=j.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:i="",end:s=!1,style:d,to:u,viewTransition:m,children:h,...p},g){let v=Cl(u,{relative:p.relative}),_=rt(),z=j.useContext(ed),{navigator:N,basename:S}=j.useContext(tt),O=z!=null&&C6(v)&&m===!0,E=N.encodeLocation?N.encodeLocation(v).pathname:v.pathname,x=_.pathname,w=z&&z.navigation&&z.navigation.location?z.navigation.location.pathname:null;r||(x=x.toLowerCase(),w=w?w.toLowerCase():null,E=E.toLowerCase()),w&&S&&(w=sr(w,S)||w);const $=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let D=x===E||!s&&x.startsWith(E)&&x.charAt($)==="/",H=w!=null&&(w===E||!s&&w.startsWith(E)&&w.charAt(E.length)==="/"),Z={isActive:D,isPending:H,isTransitioning:O},ee=D?n:void 0,se;typeof i=="function"?se=i(Z):se=[i,D?"active":null,H?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let $e=typeof d=="function"?d(Z):d;return j.createElement(Px,{...p,"aria-current":ee,className:se,ref:g,style:$e,to:u,viewTransition:m},typeof h=="function"?h(Z):h)});x6.displayName="NavLink";var y6=j.forwardRef(({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:d,method:u=Ts,action:m,onSubmit:h,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:_,...z},N)=>{let{unstable_useTransitions:S}=j.useContext(tt),O=T6(),E=A6(m,{relative:p}),x=u.toLowerCase()==="get"?"get":"post",w=typeof m=="string"&&Zx.test(m),$=D=>{if(h&&h(D),D.defaultPrevented)return;D.preventDefault();let H=D.nativeEvent.submitter,Z=H?.getAttribute("formmethod")||u,ee=()=>O(H||D.currentTarget,{fetcherKey:n,method:Z,navigate:r,replace:s,state:d,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:_});S&&r!==!1?j.startTransition(()=>ee()):ee()};return j.createElement("form",{ref:N,method:x,action:E,onSubmit:i?h:$,...z,"data-discover":!w&&e==="render"?"true":void 0})});y6.displayName="Form";function w6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gx(e){let n=j.useContext(Al);return zo(n,w6(e)),n}function z6(e,{target:n,replace:r,state:i,preventScrollReset:s,relative:d,viewTransition:u,unstable_defaultShouldRevalidate:m,unstable_useTransitions:h}={}){let p=od(),g=rt(),v=Cl(e,{relative:d});return j.useCallback(_=>{if(e6(_,n)){_.preventDefault();let z=r!==void 0?r:Ui(g)===Ui(v),N=()=>p(e,{replace:z,state:i,preventScrollReset:s,relative:d,viewTransition:u,unstable_defaultShouldRevalidate:m});h?j.startTransition(()=>N()):N()}},[g,p,v,r,i,n,e,s,d,u,m,h])}function Kr(e){nt(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=j.useRef(mb(e)),r=j.useRef(!1),i=rt(),s=j.useMemo(()=>o6(i.search,r.current?null:n.current),[i.search]),d=od(),u=j.useCallback((m,h)=>{const p=mb(typeof m=="function"?m(new URLSearchParams(s)):m);r.current=!0,d("?"+p,h)},[d,s]);return[s,u]}var j6=0,S6=()=>`__${String(++j6)}__`;function T6(){let{router:e}=Gx("useSubmit"),{basename:n}=j.useContext(tt),r=q4(),i=e.fetch,s=e.navigate;return j.useCallback(async(d,u={})=>{let{action:m,method:h,encType:p,formData:g,body:v}=r6(d,n);if(u.navigate===!1){let _=u.fetcherKey||S6();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 s(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,s,n,r])}function A6(e,{relative:n}={}){let{basename:r}=j.useContext(tt),i=j.useContext(jt);zo(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),d={...Cl(e||".",{relative:n})},u=rt();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===".")&&s.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(d.pathname=d.pathname==="/"?r:lr([r,d.pathname])),Ui(d)}function C6(e,{relative:n}={}){let r=j.useContext(Nx);zo(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Gx("useViewTransitionState"),s=Cl(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 Hi(s.pathname,u)!=null||Hi(s.pathname,d)!=null}var hb={};function td(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cs={exports:{}},E6=Cs.exports,ag;function L6(){return ag||(ag=1,(function(e){(function(n,r){e.exports?e.exports=r():n.log=r()})(E6,function(){var n=function(){},r="undefined",i=typeof window!==r&&typeof window.navigator!==r&&/Trident\/|MSIE /.test(window.navigator.userAgent),s=["trace","debug","info","warn","error"],d={},u=null;function m(S,O){var E=S[O];if(typeof E.bind=="function")return E.bind(S);try{return Function.prototype.bind.call(E,S)}catch{return function(){return Function.prototype.apply.apply(E,[S,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(S){return S==="debug"&&(S="log"),typeof console===r?!1:S==="trace"&&i?h:console[S]!==void 0?m(console,S):console.log!==void 0?m(console,"log"):n}function g(){for(var S=this.getLevel(),O=0;O<s.length;O++){var E=s[O];this[E]=O<S?n:this.methodFactory(E,S,this.name)}if(this.log=this.debug,typeof console===r&&S<this.levels.SILENT)return"No console available for logging"}function v(S){return function(){typeof console!==r&&(g.call(this),this[S].apply(this,arguments))}}function _(S,O,E){return p(S)||v.apply(this,arguments)}function z(S,O){var E=this,x,w,$,D="loglevel";typeof S=="string"?D+=":"+S:typeof S=="symbol"&&(D=void 0);function H(ce){var ne=(s[ce]||"silent").toUpperCase();if(!(typeof window===r||!D)){try{window.localStorage[D]=ne;return}catch{}try{window.document.cookie=encodeURIComponent(D)+"="+ne+";"}catch{}}}function Z(){var ce;if(!(typeof window===r||!D)){try{ce=window.localStorage[D]}catch{}if(typeof ce===r)try{var ne=window.document.cookie,we=encodeURIComponent(D),De=ne.indexOf(we+"=");De!==-1&&(ce=/^([^;]+)/.exec(ne.slice(De+we.length+1))[1])}catch{}return E.levels[ce]===void 0&&(ce=void 0),ce}}function ee(){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 se(ce){var ne=ce;if(typeof ne=="string"&&E.levels[ne.toUpperCase()]!==void 0&&(ne=E.levels[ne.toUpperCase()]),typeof ne=="number"&&ne>=0&&ne<=E.levels.SILENT)return ne;throw new TypeError("log.setLevel() called with invalid level: "+ce)}E.name=S,E.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},E.methodFactory=O||_,E.getLevel=function(){return $??w??x},E.setLevel=function(ce,ne){return $=se(ce),ne!==!1&&H($),g.call(E)},E.setDefaultLevel=function(ce){w=se(ce),Z()||E.setLevel(ce,!1)},E.resetLevel=function(){$=null,ee(),g.call(E)},E.enableAll=function(ce){E.setLevel(E.levels.TRACE,ce)},E.disableAll=function(ce){E.setLevel(E.levels.SILENT,ce)},E.rebuild=function(){if(u!==E&&(x=se(u.getLevel())),g.call(E),u===E)for(var ce in d)d[ce].rebuild()},x=se(u?u.getLevel():"WARN");var $e=Z();$e!=null&&($=se($e)),g.call(E)}u=new z,u.getLogger=function(O){if(typeof O!="symbol"&&typeof O!="string"||O==="")throw new TypeError("You must supply a name when creating a logger.");var E=d[O];return E||(E=d[O]=new z(O,u.methodFactory)),E};var N=typeof window!==r?window.log:void 0;return u.noConflict=function(){return typeof window!==r&&window.log===u&&(window.log=N),u},u.getLoggers=function(){return d},u.default=u,u})})(Cs)),Cs.exports}var O6=L6(),Rs=td(O6);const $6=()=>{const e=typeof process<"u"&&hb?hb:{},n=e.NODE_ENV==="test",r="VITEST"in e,i="JEST_WORKER_ID"in e,s="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||s||d||u||m||h},ao={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:$6(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const e={};for(const[r,i]of ao.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,s]])=>[r,{"avg (ms)":parseFloat(i.toFixed(2)),count:s}]))),e}}};let pb=!0,Ds=!1;const N6=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,B6=e=>typeof e=="string"&&N6.test(e),Yx=e=>{if(!B6(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]+)?$/`)},lg=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),R6=(e,n,r,i)=>Jx(e,n,r,i),Jx=(e,n,r,i)=>{i=i??{},i.append=i.append??!1,Yx(e),pb&&!Ds&&(Ds=!0,Rs.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.
12
+ Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let x=rt(),z;if(n){let _=typeof n=="string"?za(n):n;zo(g==="/"||_.pathname?.startsWith(g),`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 "${g}" but pathname "${_.pathname}" was given in the \`location\` prop.`),z=_}else z=x;let N=z.pathname||"/",S=N;if(g!=="/"){let _=g.replace(/^\//,"").split("/");S="/"+N.replace(/^\//,"").split("/").slice(_.length).join("/")}let O=Ax(e,{pathname:S});nt(v||O!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),nt(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${z.pathname}${z.search}${z.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 E=F4(O&&O.map(_=>Object.assign({},_,{params:Object.assign({},h,_.params),pathname:lr([g,d.encodeLocation?d.encodeLocation(_.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?g:lr([g,d.encodeLocation?d.encodeLocation(_.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathnameBase])})),u,r,i,c);return n&&E?j.createElement(Wi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...z},navigationType:"POP"}},E):E}function D4(){let e=Z4(),n=w4(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=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:d},"ErrorBoundary")," or"," ",j.createElement("code",{style:d},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},n),r?j.createElement("pre",{style:c},r):null,u)}var M4=j.createElement(D4,null),Fx=class extends j.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=O4(e.digest);r&&(e=r)}let n=e!==void 0?j.createElement(jt.Provider,{value:this.props.routeContext},j.createElement(am.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?j.createElement(I4,{error:e},n):n}};Fx.contextType=S4;var Rf=new WeakMap;function I4({children:e,error:n}){let{basename:r}=j.useContext(tt);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let i=L4(n.digest);if(i){let c=Rf.get(n);if(c)throw c;let d=$x(i.location,r);if(Ox&&!Rf.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 Rf.set(n,u),u}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return e}function U4({routeContext:e,match:n,children:r}){let i=j.useContext(Cl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),j.createElement(jt.Provider,{value:e},r)}function F4(e,n=[],r=null,i=null,c=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let d=e,u=r?.errors;if(u!=null){let g=d.findIndex(v=>v.route.id&&u?.[v.route.id]!==void 0);zo(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),d=d.slice(0,Math.min(d.length,g+1))}let m=!1,h=-1;if(r)for(let g=0;g<d.length;g++){let v=d[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(h=g),v.route.id){let{loaderData:x,errors:z}=r,N=v.route.loader&&!x.hasOwnProperty(v.route.id)&&(!z||z[v.route.id]===void 0);if(v.route.lazy||N){m=!0,h>=0?d=d.slice(0,h+1):d=[d[0]];break}}}let p=r&&i?(g,v)=>{i(g,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:z4(r.matches),errorInfo:v})}:void 0;return d.reduceRight((g,v,x)=>{let z,N=!1,S=null,O=null;r&&(z=u&&v.route.id?u[v.route.id]:void 0,S=v.route.errorElement||M4,m&&(h<0&&x===0?(Hx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,O=null):h===x&&(N=!0,O=v.route.hydrateFallbackElement||null)));let E=n.concat(d.slice(0,x+1)),_=()=>{let w;return z?w=S:N?w=O:v.route.Component?w=j.createElement(v.route.Component,null):v.route.element?w=v.route.element:w=g,j.createElement(U4,{match:v,routeContext:{outlet:g,matches:E,isDataRoute:r!=null},children:w})};return r&&(v.route.ErrorBoundary||v.route.errorElement||x===0)?j.createElement(Fx,{location:r.location,revalidation:r.revalidation,component:S,error:z,children:_(),routeContext:{outlet:null,matches:E,isDataRoute:!0},onError:p}):_()},null)}function lm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function H4(e){let n=j.useContext(Cl);return zo(n,lm(e)),n}function K4(e){let n=j.useContext(nd);return zo(n,lm(e)),n}function V4(e){let n=j.useContext(jt);return zo(n,lm(e)),n}function im(e){let n=V4(e),r=n.matches[n.matches.length-1];return zo(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function q4(){return im("useRouteId")}function Z4(){let e=j.useContext(am),n=K4("useRouteError"),r=im("useRouteError");return e!==void 0?e:n.errors?.[r]}function P4(){let{router:e}=H4("useNavigate"),n=im("useNavigate"),r=j.useRef(!1);return Ix(()=>{r.current=!0}),j.useCallback(async(c,d={})=>{nt(r.current,Mx),r.current&&(typeof c=="number"?await e.navigate(c):await e.navigate(c,{fromRouteId:n,...d}))},[e,n])}var rg={};function Hx(e,n,r){!n&&!rg[e]&&(rg[e]=!0,nt(!1,r))}j.memo(G4);function G4({routes:e,future:n,state:r,onError:i}){return Ux(e,void 0,r,i,n)}function Kx({to:e,replace:n,state:r,relative:i}){zo(ja(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=j.useContext(tt);nt(!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}=j.useContext(jt),{pathname:u}=rt(),m=td(),h=rm(e,tm(d),u,i==="path"),p=JSON.stringify(h);return j.useEffect(()=>{m(JSON.parse(p),{replace:n,state:r,relative:i})},[m,p,i,n,r]),null}function ka(e){zo(!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 Y4({basename:e="/",children:n=null,location:r,navigationType:i="POP",navigator:c,static:d=!1,unstable_useTransitions:u}){zo(!ja(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=e.replace(/^\/*/,"/"),h=j.useMemo(()=>({basename:m,navigator:c,static:d,unstable_useTransitions:u,future:{}}),[m,c,d,u]);typeof r=="string"&&(r=za(r));let{pathname:p="/",search:g="",hash:v="",state:x=null,key:z="default"}=r,N=j.useMemo(()=>{let S=sr(p,m);return S==null?null:{location:{pathname:S,search:g,hash:v,state:x,key:z},navigationType:i}},[m,p,g,v,x,z,i]);return nt(N!=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.`),N==null?null:j.createElement(tt.Provider,{value:h},j.createElement(Wi.Provider,{children:n,value:N}))}function Vx({children:e,location:n}){return R4(mb(e),n)}function mb(e,n=[]){let r=[];return j.Children.forEach(e,(i,c)=>{if(!j.isValidElement(i))return;let d=[...n,c];if(i.type===j.Fragment){r.push.apply(r,mb(i.props.children,d));return}zo(i.type===ka,`[${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>`),zo(!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=mb(i.props.children,d)),r.push(u)}),r}var Cs="get",Es="application/x-www-form-urlencoded";function rd(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function J4(e){return rd(e)&&e.tagName.toLowerCase()==="button"}function X4(e){return rd(e)&&e.tagName.toLowerCase()==="form"}function W4(e){return rd(e)&&e.tagName.toLowerCase()==="input"}function Q4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function e6(e,n){return e.button===0&&(!n||n==="_self")&&!Q4(e)}function hb(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 o6(e,n){let r=hb(e);return n&&n.forEach((i,c)=>{r.has(c)||n.getAll(c).forEach(d=>{r.append(c,d)})}),r}var gs=null;function n6(){if(gs===null)try{new FormData(document.createElement("form"),0),gs=!1}catch{gs=!0}return gs}var t6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Df(e){return e!=null&&!t6.has(e)?(nt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Es}"`),null):e}function r6(e,n){let r,i,c,d,u;if(X4(e)){let m=e.getAttribute("action");i=m?sr(m,n):null,r=e.getAttribute("method")||Cs,c=Df(e.getAttribute("enctype"))||Es,d=new FormData(e)}else if(J4(e)||W4(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")||Cs,c=Df(e.getAttribute("formenctype"))||Df(m.getAttribute("enctype"))||Es,d=new FormData(m,e),!n6()){let{name:p,type:g,value:v}=e;if(g==="image"){let x=p?`${p}.`:"";d.append(`${x}x`,"0"),d.append(`${x}y`,"0")}else p&&d.append(p,v)}}else{if(rd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Cs,i=null,c=Es,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 cm(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function a6(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=`${n.replace(/\/$/,"")}/_root.${i}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${i}`,c}async function l6(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 i6(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 c6(e,n,r){let i=await Promise.all(e.map(async c=>{let d=n.routes[c.route.id];if(d){let u=await l6(d,r);return u.links?u.links():[]}return[]}));return f6(i.flat(1).filter(i6).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function ag(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 s6(e,n,{includeHydrateFallback:r}={}){return d6(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 d6(e){return[...new Set(e)]}function u6(e){let n={},r=Object.keys(e).sort();for(let i of r)n[i]=e[i];return n}function f6(e,n){let r=new Set;return new Set(n),e.reduce((i,c)=>{let d=JSON.stringify(u6(c));return r.has(d)||(r.add(d),i.push({key:d,link:c})),i},[])}function qx(){let e=j.useContext(Cl);return cm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function b6(){let e=j.useContext(nd);return cm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var sm=j.createContext(void 0);sm.displayName="FrameworkContext";function Zx(){let e=j.useContext(sm);return cm(e,"You must render this element inside a <HydratedRouter> element"),e}function m6(e,n){let r=j.useContext(sm),[i,c]=j.useState(!1),[d,u]=j.useState(!1),{onFocus:m,onBlur:h,onMouseEnter:p,onMouseLeave:g,onTouchStart:v}=n,x=j.useRef(null);j.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let S=E=>{E.forEach(_=>{u(_.isIntersecting)})},O=new IntersectionObserver(S,{threshold:.5});return x.current&&O.observe(x.current),()=>{O.disconnect()}}},[e]),j.useEffect(()=>{if(i){let S=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(S)}}},[i]);let z=()=>{c(!0)},N=()=>{c(!1),u(!1)};return r?e!=="intent"?[d,x,{}]:[d,x,{onFocus:Si(m,z),onBlur:Si(h,N),onMouseEnter:Si(p,z),onMouseLeave:Si(g,N),onTouchStart:Si(v,z)}]:[!1,x,{}]}function Si(e,n){return r=>{e&&e(r),r.defaultPrevented||n(r)}}function h6({page:e,...n}){let{router:r}=qx(),i=j.useMemo(()=>Ax(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?j.createElement(k6,{page:e,matches:i,...n}):null}function p6(e){let{manifest:n,routeModules:r}=Zx(),[i,c]=j.useState([]);return j.useEffect(()=>{let d=!1;return c6(e,n,r).then(u=>{d||c(u)}),()=>{d=!0}},[e,n,r]),i}function k6({page:e,matches:n,...r}){let i=rt(),{future:c,manifest:d,routeModules:u}=Zx(),{basename:m}=qx(),{loaderData:h,matches:p}=b6(),g=j.useMemo(()=>ag(e,n,p,d,i,"data"),[e,n,p,d,i]),v=j.useMemo(()=>ag(e,n,p,d,i,"assets"),[e,n,p,d,i]),x=j.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let S=new Set,O=!1;if(n.forEach(_=>{let w=d.routes[_.route.id];!w||!w.hasLoader||(!g.some($=>$.route.id===_.route.id)&&_.route.id in h&&u[_.route.id]?.shouldRevalidate||w.hasClientLoader?O=!0:S.add(_.route.id))}),S.size===0)return[];let E=a6(e,m,c.unstable_trailingSlashAwareDataRequests,"data");return O&&S.size>0&&E.searchParams.set("_routes",n.filter(_=>S.has(_.route.id)).map(_=>_.route.id).join(",")),[E.pathname+E.search]},[m,c.unstable_trailingSlashAwareDataRequests,h,i,d,g,n,e,u]),z=j.useMemo(()=>s6(v,d),[v,d]),N=p6(v);return j.createElement(j.Fragment,null,x.map(S=>j.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...r})),z.map(S=>j.createElement("link",{key:S,rel:"modulepreload",href:S,...r})),N.map(({key:S,link:O})=>j.createElement("link",{key:S,nonce:r.nonce,...O,crossOrigin:O.crossOrigin??r.crossOrigin})))}function v6(...e){return n=>{e.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var g6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{g6&&(window.__reactRouterVersion="7.13.0")}catch{}function _6({basename:e,children:n,unstable_useTransitions:r,window:i}){let c=j.useRef();c.current==null&&(c.current=e4({window:i,v5Compat:!0}));let d=c.current,[u,m]=j.useState({action:d.action,location:d.location}),h=j.useCallback(p=>{r===!1?m(p):j.startTransition(()=>m(p))},[r]);return j.useLayoutEffect(()=>d.listen(h),[d,h]),j.createElement(Y4,{basename:e,children:n,location:u.location,navigationType:u.action,navigator:d,unstable_useTransitions:r})}var Px=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gx=j.forwardRef(function({onClick:n,discover:r="render",prefetch:i="none",relative:c,reloadDocument:d,replace:u,state:m,target:h,to:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:x,...z},N){let{basename:S,unstable_useTransitions:O}=j.useContext(tt),E=typeof p=="string"&&Px.test(p),_=$x(p,S);p=_.to;let w=Dx(p,{relative:c}),[$,D,F]=m6(i,z),Z=z6(p,{replace:u,state:m,target:h,preventScrollReset:g,relative:c,viewTransition:v,unstable_defaultShouldRevalidate:x,unstable_useTransitions:O});function ee($e){n&&n($e),$e.defaultPrevented||Z($e)}let se=j.createElement("a",{...z,...F,href:_.absoluteURL||w,onClick:_.isExternal||d?n:ee,ref:v6(N,D),target:h,"data-discover":!E&&r==="render"?"true":void 0});return $&&!E?j.createElement(j.Fragment,null,se,j.createElement(h6,{page:w})):se});Gx.displayName="Link";var x6=j.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=El(u,{relative:p.relative}),x=rt(),z=j.useContext(nd),{navigator:N,basename:S}=j.useContext(tt),O=z!=null&&C6(v)&&m===!0,E=N.encodeLocation?N.encodeLocation(v).pathname:v.pathname,_=x.pathname,w=z&&z.navigation&&z.navigation.location?z.navigation.location.pathname:null;r||(_=_.toLowerCase(),w=w?w.toLowerCase():null,E=E.toLowerCase()),w&&S&&(w=sr(w,S)||w);const $=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let D=_===E||!c&&_.startsWith(E)&&_.charAt($)==="/",F=w!=null&&(w===E||!c&&w.startsWith(E)&&w.charAt(E.length)==="/"),Z={isActive:D,isPending:F,isTransitioning:O},ee=D?n:void 0,se;typeof i=="function"?se=i(Z):se=[i,D?"active":null,F?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let $e=typeof d=="function"?d(Z):d;return j.createElement(Gx,{...p,"aria-current":ee,className:se,ref:g,style:$e,to:u,viewTransition:m},typeof h=="function"?h(Z):h)});x6.displayName="NavLink";var y6=j.forwardRef(({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:i,replace:c,state:d,method:u=Cs,action:m,onSubmit:h,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:x,...z},N)=>{let{unstable_useTransitions:S}=j.useContext(tt),O=T6(),E=A6(m,{relative:p}),_=u.toLowerCase()==="get"?"get":"post",w=typeof m=="string"&&Px.test(m),$=D=>{if(h&&h(D),D.defaultPrevented)return;D.preventDefault();let F=D.nativeEvent.submitter,Z=F?.getAttribute("formmethod")||u,ee=()=>O(F||D.currentTarget,{fetcherKey:n,method:Z,navigate:r,replace:c,state:d,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:x});S&&r!==!1?j.startTransition(()=>ee()):ee()};return j.createElement("form",{ref:N,method:_,action:E,onSubmit:i?h:$,...z,"data-discover":!w&&e==="render"?"true":void 0})});y6.displayName="Form";function w6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Yx(e){let n=j.useContext(Cl);return zo(n,w6(e)),n}function z6(e,{target:n,replace:r,state:i,preventScrollReset:c,relative:d,viewTransition:u,unstable_defaultShouldRevalidate:m,unstable_useTransitions:h}={}){let p=td(),g=rt(),v=El(e,{relative:d});return j.useCallback(x=>{if(e6(x,n)){x.preventDefault();let z=r!==void 0?r:Fi(g)===Fi(v),N=()=>p(e,{replace:z,state:i,preventScrollReset:c,relative:d,viewTransition:u,unstable_defaultShouldRevalidate:m});h?j.startTransition(()=>N()):N()}},[g,p,v,r,i,n,e,c,d,u,m,h])}function Kr(e){nt(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=j.useRef(hb(e)),r=j.useRef(!1),i=rt(),c=j.useMemo(()=>o6(i.search,r.current?null:n.current),[i.search]),d=td(),u=j.useCallback((m,h)=>{const p=hb(typeof m=="function"?m(new URLSearchParams(c)):m);r.current=!0,d("?"+p,h)},[d,c]);return[c,u]}var j6=0,S6=()=>`__${String(++j6)}__`;function T6(){let{router:e}=Yx("useSubmit"),{basename:n}=j.useContext(tt),r=q4(),i=e.fetch,c=e.navigate;return j.useCallback(async(d,u={})=>{let{action:m,method:h,encType:p,formData:g,body:v}=r6(d,n);if(u.navigate===!1){let x=u.fetcherKey||S6();await i(x,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 A6(e,{relative:n}={}){let{basename:r}=j.useContext(tt),i=j.useContext(jt);zo(i,"useFormAction must be used inside a RouteContext");let[c]=i.matches.slice(-1),d={...El(e||".",{relative:n})},u=rt();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:lr([r,d.pathname])),Fi(d)}function C6(e,{relative:n}={}){let r=j.useContext(Bx);zo(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Yx("useViewTransitionState"),c=El(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 Hi(c.pathname,u)!=null||Hi(c.pathname,d)!=null}var pb={};function ad(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ls={exports:{}},E6=Ls.exports,lg;function L6(){return lg||(lg=1,(function(e){(function(n,r){e.exports?e.exports=r():n.log=r()})(E6,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(S,O){var E=S[O];if(typeof E.bind=="function")return E.bind(S);try{return Function.prototype.bind.call(E,S)}catch{return function(){return Function.prototype.apply.apply(E,[S,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(S){return S==="debug"&&(S="log"),typeof console===r?!1:S==="trace"&&i?h:console[S]!==void 0?m(console,S):console.log!==void 0?m(console,"log"):n}function g(){for(var S=this.getLevel(),O=0;O<c.length;O++){var E=c[O];this[E]=O<S?n:this.methodFactory(E,S,this.name)}if(this.log=this.debug,typeof console===r&&S<this.levels.SILENT)return"No console available for logging"}function v(S){return function(){typeof console!==r&&(g.call(this),this[S].apply(this,arguments))}}function x(S,O,E){return p(S)||v.apply(this,arguments)}function z(S,O){var E=this,_,w,$,D="loglevel";typeof S=="string"?D+=":"+S:typeof S=="symbol"&&(D=void 0);function F(ce){var ne=(c[ce]||"silent").toUpperCase();if(!(typeof window===r||!D)){try{window.localStorage[D]=ne;return}catch{}try{window.document.cookie=encodeURIComponent(D)+"="+ne+";"}catch{}}}function Z(){var ce;if(!(typeof window===r||!D)){try{ce=window.localStorage[D]}catch{}if(typeof ce===r)try{var ne=window.document.cookie,we=encodeURIComponent(D),De=ne.indexOf(we+"=");De!==-1&&(ce=/^([^;]+)/.exec(ne.slice(De+we.length+1))[1])}catch{}return E.levels[ce]===void 0&&(ce=void 0),ce}}function ee(){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 se(ce){var ne=ce;if(typeof ne=="string"&&E.levels[ne.toUpperCase()]!==void 0&&(ne=E.levels[ne.toUpperCase()]),typeof ne=="number"&&ne>=0&&ne<=E.levels.SILENT)return ne;throw new TypeError("log.setLevel() called with invalid level: "+ce)}E.name=S,E.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},E.methodFactory=O||x,E.getLevel=function(){return $??w??_},E.setLevel=function(ce,ne){return $=se(ce),ne!==!1&&F($),g.call(E)},E.setDefaultLevel=function(ce){w=se(ce),Z()||E.setLevel(ce,!1)},E.resetLevel=function(){$=null,ee(),g.call(E)},E.enableAll=function(ce){E.setLevel(E.levels.TRACE,ce)},E.disableAll=function(ce){E.setLevel(E.levels.SILENT,ce)},E.rebuild=function(){if(u!==E&&(_=se(u.getLevel())),g.call(E),u===E)for(var ce in d)d[ce].rebuild()},_=se(u?u.getLevel():"WARN");var $e=Z();$e!=null&&($=se($e)),g.call(E)}u=new z,u.getLogger=function(O){if(typeof O!="symbol"&&typeof O!="string"||O==="")throw new TypeError("You must supply a name when creating a logger.");var E=d[O];return E||(E=d[O]=new z(O,u.methodFactory)),E};var N=typeof window!==r?window.log:void 0;return u.noConflict=function(){return typeof window!==r&&window.log===u&&(window.log=N),u},u.getLoggers=function(){return d},u.default=u,u})})(Ls)),Ls.exports}var O6=L6(),Ms=ad(O6);const $6=()=>{const e=typeof process<"u"&&pb?pb:{},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},ao={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:$6(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const e={};for(const[r,i]of ao.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 kb=!0,Is=!1;const N6=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,B6=e=>typeof e=="string"&&N6.test(e),Jx=e=>{if(!B6(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]+)?$/`)},ig=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),R6=(e,n,r,i)=>Xx(e,n,r,i),Xx=(e,n,r,i)=>{i=i??{},i.append=i.append??!1,Jx(e),kb&&!Is&&(Is=!0,Ms.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="${x}"> to <Route path="${x==="/"?"*":`${x}
19
19
  .then(() => {
20
20
  // run your app or website
21
21
  })
22
- .catch(console.warn);`));let s=ao.A11yUi.THEMES.get(e);if(s||(s=new Map,ao.A11yUi.THEMES.set(e,s)),i.append&&s.has(n)){const d=s.get(n);s.set(n,lg(`${d}${r}`))}else s.set(n,lg(r))},D6=(e,n,r,i)=>Xx(e,n,r,i),Xx=(e,n,r,i)=>(Yx(e),typeof n=="object"&&n!==null&&Object.getOwnPropertyNames(n).forEach(s=>{const d=n[s],u=s.toLowerCase(),m=typeof i?.transformTagName=="function"&&!["GLOBAL","PROPERTIES"].includes(s)?i.transformTagName(u):s;typeof d=="string"&&d.length>0&&Jx(e,m.toUpperCase(),d,r)}),e),Wx=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 Wx(n)}}else return null},ig=(e={})=>e.themeEncroachCss==="false"||e.themeReset==="true"?!1:{mode:e.themeEncroachCssMode==="after"||e.themeEncroachCssMode==="before"?e.themeEncroachCssMode:"before"},Qx=()=>typeof ao.A11yUi.Theme=="object"&&ao.A11yUi.Theme!==null&&typeof ao.A11yUi.Theme.cache=="boolean"&&typeof ao.A11yUi.Theme.encroachCss=="object"&&ao.A11yUi.Theme.encroachCss!==null&&typeof ao.A11yUi.Theme.encroachCss.mode=="string"&&typeof ao.A11yUi.Theme.name=="string",M6=()=>!(typeof ao.A11yUi.Theme=="object"&&ao.A11yUi.Theme!==null)||ao.A11yUi.Theme.name!=="default",I6=e=>{if(Qx())return ao.A11yUi.Theme;{const n={cache:!0,encroachCss:ig(),loglevel:"silent",mode:"csr",name:null},r=Wx(e);return r instanceof HTMLElement&&(n.cache=r.dataset.themeCache!=="false",n.encroachCss=ig(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}},U6=(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}),H6=(e,n)=>{Qx()===!1&&M6()&&typeof n=="object"&&n!==null&&(n=U6(e,n),n.detect==="fixed"?(n.name===null&&typeof e=="string"&&(n.name=e),e===n.name&&(ao.A11yUi.Theme=n,Rs.info(`[Theming] Theme "${e}" was set as default theme.`))):Ds||(Ds=!0,Rs.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))};let cg=!1;const F6=(e,n,r={})=>{cg||(cg=!0,pb=!1,typeof window<"u"&&(window.A11yUi=ao.A11yUi)),typeof e=="function"?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach(s=>{typeof s=="function"&&s.length===1?H6(s((d,u,m)=>Xx(d,u,m,r)),{cache:r.theme?.cache,detect:r.theme?.detect,encroachCss:r.theme?.encroachCss,mode:r.theme?.mode,name:r.theme?.name}):Rs.error("[Theming] An attempt was made to load an incompatible theme.")}),pb=!0,typeof n=="function"?n=new Set([n]):Array.isArray(n)&&(n=new Set(n));const i=[];return n.forEach(s=>{const d=s();d instanceof Promise&&i.push(d)}),Promise.all(i)},ey=new Set,K6=/--[^;]+/g,V6=/:/,q6=typeof MutationObserver<"u";let oy=25,ny=()=>{oy=Math.min(25+Math.log2(ao.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250)};const Z6=(e,n)=>{let r=n.match(K6);if(Array.isArray(r)){r=r.filter(s=>V6.test(s));const i=document.createElement("style");i.innerHTML=`.${e} {${r.join(";")}}`,document.querySelector("head")?.appendChild(i)}ey.add(e)},Es=(e,n)=>{const r=ao.A11yUi.THEMES.get(e);return r instanceof Map&&r.has(n)?r.get(n):""},P6=e=>{for(const n of Array.from(e.childNodes))if(n instanceof HTMLStyleElement&&n.tagName==="STYLE"&&n.dataset.themingFallback===void 0)e.removeChild(n);else break},G6=(e,n)=>{try{if(ao.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const r=[];n.forEach(i=>{const s=new CSSStyleSheet;s.replaceSync(i),r.push(s)}),e.adoptedStyleSheets=r}catch{[...n].reverse().forEach((r,i)=>{if(typeof r!="string"||r.length===0)return;const s=document.createElement("style");switch(s.dataset.themingFallback="",i){case 4:s.dataset.themingBaseA11y="";break;case 3:s.dataset.themingBaseGlobal="";break;case 2:s.dataset.themingBaseComponent="";break;case 1:s.dataset.themingCustomGlobal="";break;case 0:s.dataset.themingCustomComponent="";break;default:s.dataset.themingUnknown="";break}s.innerHTML=r,e.insertBefore(s,e.firstChild)})}},Y6=(e,n,r)=>{if(r!==!1){const i=[...Array.from(e.childNodes).filter(d=>d instanceof HTMLStyleElement&&d.tagName==="STYLE")];let s;try{s=[...Array.from(e.adoptedStyleSheets)]}catch{s=[]}r?.mode==="before"?(i.reverse().forEach(d=>n.unshift(d.innerHTML)),s.reverse().forEach(d=>n.unshift(Array.from(d.cssRules).map(u=>u.cssText).join("")))):r?.mode==="after"&&(i.forEach(d=>n.push(d.innerHTML)),s.forEach(d=>n.push(Array.from(d.cssRules).map(u=>u.cssText).join(""))))}},J6=(e,n,r)=>{const i=n.name||"default";let s;try{if(e.shadowRoot===null)throw new Error("ShadowRoot is null");s=e.shadowRoot}catch{s=e}if(ao.A11yUi.CSS_STYLE_CACHE.get(i)?.has(e.tagName))sg(e,s,ao.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName),r);else{const d=Es(i,"PROPERTIES"),u=Es(i,"GLOBAL"),m=Es(i,e.tagName);ey.has(i)===!1&&Z6(i,u);const h=[d,u,m];Y6(s,h,n.encroachCss),n.cache===!0&&(ao.A11yUi.CSS_STYLE_CACHE.has(i)===!1&&ao.A11yUi.CSS_STYLE_CACHE.set(i,new Map),ao.A11yUi.CSS_STYLE_CACHE.get(i)?.set(e.tagName,h)),sg(e,s,h,r)}},sg=(e,n,r,i)=>{const s=performance.now();if(P6(n),G6(n,r),ay(e),i(),ao.A11yUi.PERFORMANCE_MEASURES.has(e.tagName)){const d=ao.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);d.count+=1,d.totalTime+=performance.now()-s}else ao.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:performance.now()-s})},ty=e=>{const n=ao.A11yUi.STYLING_TASK_QUEUE.get(e);if(n){const{resetCss:r,themeDetails:i}=n;J6(e,i,r),ay(e)}};let sm=e=>{const n=setTimeout(()=>{clearTimeout(n),e.classList.contains("hydrated")?ty(e):sm(e)},oy)};const X6={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1},W6={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},dg=q6?new MutationObserver((e,n)=>{for(const r of e){const i=r.target;i.classList.contains("hydrated")&&(ty(i),n.observe(i,W6))}}):null;dg&&(sm=e=>dg.observe(e,X6),ny=()=>{});let ry=e=>{const n=getComputedStyle(e).getPropertyValue("--theme-visibility-delay").trim();if(n.endsWith("ms"))return parseFloat(n);if(n.endsWith("s"))return parseFloat(n)*1e3;{const r=parseFloat(n);return isNaN(r)?0:r}};ao.A11yUi.IS_TEST_ENVIRONMENT&&(ry=()=>0);const ug=(e,n)=>{e.style.setProperty("visibility",n),e.dataset.themed=""},Q6=(e,n)=>{const r=e.style.visibility||null;ao.A11yUi.STYLING_TASK_QUEUE.set(e,{resetCss:()=>{const i=ry(e);i>0?setTimeout(()=>{ug(e,r)},i):ug(e,r)},themeDetails:n}),e.style.setProperty("visibility","hidden","important"),sm(e)},ay=e=>{ao.A11yUi.STYLING_TASK_QUEUE.delete(e),ny()},e5=(e,n)=>{Q6(e,{...ao.A11yUi.Theme,...n})};var fg;(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"})(fg||(fg={}));var bg;(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"})(bg||(bg={}));const o5=()=>typeof window<"u"?window:{},dm=()=>{const e=o5();return e&&typeof e.document<"u"?e.document:{}},kb=["development","production","test"];let Ms="production";const ly=e=>{try{if(kb.includes(e))Ms=e;else throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${kb.join(", ")}.`)}catch{Ms="production"}},n5=()=>{try{const e=typeof process<"u"&&hb?"production":void 0;if(e&&kb.includes(e))return e}catch{}return"production"};ly(n5());let iy=!1,cy=!1;const t5=()=>Ms==="development",OR=()=>Ms==="test",r5=()=>iy===!0,$R=e=>{iy=e===!0},NR=()=>cy===!0,BR=e=>{cy=e===!0},a5="color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000",fl=e=>Array.isArray(e)?e:[e],mg=e=>`%c${e}`,l5=(e,n)=>typeof n=="string"&&n.length>0?`${mg(e)} | ${n}`:mg(e),bl=(e,n)=>[l5(e,n?.classifier),`${a5};${n?.overwriteStyle||""}`],Si=e=>t5()||e===!0;let i5=class{constructor(n){this.label=n}debug(n,r){Si(r?.forceLog)&&console.debug(...bl(this.label,r),...fl(n))}info(n,r){Si(r?.forceLog)&&console.info(...bl(this.label,r),...fl(n))}trace(n,r){Si(r?.forceLog)&&console.trace(...bl(this.label,r),...fl(n))}warn(n,r){Si(r?.forceLog)&&console.warn(...bl(this.label,r),...fl(n))}error(n,r){console.error(...bl(this.label,r),...fl(n))}throw(n,r){if(Si(r?.forceLog))throw new Error(...bl(this.label,r),...fl(n))}};const Oo=new i5("KoliBri"),hg=new Set,sy=(e,n)=>{hg.has(e)===!1&&(hg.add(e),Oo.debug([e].concat([]),{classifier:"✋ a11y",forceLog:!1,overwriteStyle:"; background-color: #09f"}))},pg=new Set,DR=(e,n)=>{pg.has(e)===!1&&(pg.add(e),Oo.warn([e].concat([]),{classifier:"🔥 deprecated",forceLog:!1,overwriteStyle:"; background-color: #f00"}))},Is=new Set,dy=(e,n)=>{(Is.has(e)===!1||n?.force)&&(Is.add(e),Oo.debug([e].concat(n?.details||[]),{classifier:"💻 dev",forceLog:!!n?.force,overwriteStyle:"; background-color: #f09"}))},MR=(e,n)=>{Is.has(e)===!1&&(Is.add(e),Oo.warn([e].concat([]),{classifier:"⚠️ dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))},kg=new Set,IR=(e,n=!1,r)=>{kg.has(e)===!1&&(kg.add(e),e+=n===!0?" ✅":"",Oo.debug([e].concat([]),{classifier:"🌟 feature",forceLog:!1,overwriteStyle:"; background-color: #309"}))};dy("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");const vg=new Set,c5=(e,n)=>{vg.has(e)===!1&&(vg.add(e),Oo.debug([e].concat([]),{classifier:"📑 ui/ux",forceLog:!1,overwriteStyle:"; background-color: #060;"}))},UR=()=>{sy(`"Disabled" limits accessibility and visibility. From an accessibility perspective, we recommend using the readonly attribute instead of disabled.
23
- - https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae`)},HR=e=>{(typeof e!="string"||e==="")&&sy(`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.
22
+ .catch(console.warn);`));let c=ao.A11yUi.THEMES.get(e);if(c||(c=new Map,ao.A11yUi.THEMES.set(e,c)),i.append&&c.has(n)){const d=c.get(n);c.set(n,ig(`${d}${r}`))}else c.set(n,ig(r))},D6=(e,n,r,i)=>Wx(e,n,r,i),Wx=(e,n,r,i)=>(Jx(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&&Xx(e,m.toUpperCase(),d,r)}),e),Qx=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 Qx(n)}}else return null},cg=(e={})=>e.themeEncroachCss==="false"||e.themeReset==="true"?!1:{mode:e.themeEncroachCssMode==="after"||e.themeEncroachCssMode==="before"?e.themeEncroachCssMode:"before"},ey=()=>typeof ao.A11yUi.Theme=="object"&&ao.A11yUi.Theme!==null&&typeof ao.A11yUi.Theme.cache=="boolean"&&typeof ao.A11yUi.Theme.encroachCss=="object"&&ao.A11yUi.Theme.encroachCss!==null&&typeof ao.A11yUi.Theme.encroachCss.mode=="string"&&typeof ao.A11yUi.Theme.name=="string",M6=()=>!(typeof ao.A11yUi.Theme=="object"&&ao.A11yUi.Theme!==null)||ao.A11yUi.Theme.name!=="default",I6=e=>{if(ey())return ao.A11yUi.Theme;{const n={cache:!0,encroachCss:cg(),loglevel:"silent",mode:"csr",name:null},r=Qx(e);return r instanceof HTMLElement&&(n.cache=r.dataset.themeCache!=="false",n.encroachCss=cg(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}},U6=(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}),F6=(e,n)=>{ey()===!1&&M6()&&typeof n=="object"&&n!==null&&(n=U6(e,n),n.detect==="fixed"?(n.name===null&&typeof e=="string"&&(n.name=e),e===n.name&&(ao.A11yUi.Theme=n,Ms.info(`[Theming] Theme "${e}" was set as default theme.`))):Is||(Is=!0,Ms.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))};let sg=!1;const H6=(e,n,r={})=>{sg||(sg=!0,kb=!1,typeof window<"u"&&(window.A11yUi=ao.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?F6(c((d,u,m)=>Wx(d,u,m,r)),{cache:r.theme?.cache,detect:r.theme?.detect,encroachCss:r.theme?.encroachCss,mode:r.theme?.mode,name:r.theme?.name}):Ms.error("[Theming] An attempt was made to load an incompatible theme.")}),kb=!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)},oy=new Set,K6=/--[^;]+/g,V6=/:/,q6=typeof MutationObserver<"u";let ny=25,ty=()=>{ny=Math.min(25+Math.log2(ao.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250)};const Z6=(e,n)=>{let r=n.match(K6);if(Array.isArray(r)){r=r.filter(c=>V6.test(c));const i=document.createElement("style");i.innerHTML=`.${e} {${r.join(";")}}`,document.querySelector("head")?.appendChild(i)}oy.add(e)},Os=(e,n)=>{const r=ao.A11yUi.THEMES.get(e);return r instanceof Map&&r.has(n)?r.get(n):""},P6=e=>{for(const n of Array.from(e.childNodes))if(n instanceof HTMLStyleElement&&n.tagName==="STYLE"&&n.dataset.themingFallback===void 0)e.removeChild(n);else break},G6=(e,n)=>{try{if(ao.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const r=[];n.forEach(i=>{const c=new CSSStyleSheet;c.replaceSync(i),r.push(c)}),e.adoptedStyleSheets=r}catch{[...n].reverse().forEach((r,i)=>{if(typeof r!="string"||r.length===0)return;const c=document.createElement("style");switch(c.dataset.themingFallback="",i){case 4:c.dataset.themingBaseA11y="";break;case 3:c.dataset.themingBaseGlobal="";break;case 2:c.dataset.themingBaseComponent="";break;case 1:c.dataset.themingCustomGlobal="";break;case 0:c.dataset.themingCustomComponent="";break;default:c.dataset.themingUnknown="";break}c.innerHTML=r,e.insertBefore(c,e.firstChild)})}},Y6=(e,n,r)=>{if(r!==!1){const i=[...Array.from(e.childNodes).filter(d=>d instanceof HTMLStyleElement&&d.tagName==="STYLE")];let c;try{c=[...Array.from(e.adoptedStyleSheets)]}catch{c=[]}r?.mode==="before"?(i.reverse().forEach(d=>n.unshift(d.innerHTML)),c.reverse().forEach(d=>n.unshift(Array.from(d.cssRules).map(u=>u.cssText).join("")))):r?.mode==="after"&&(i.forEach(d=>n.push(d.innerHTML)),c.forEach(d=>n.push(Array.from(d.cssRules).map(u=>u.cssText).join(""))))}},J6=(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}if(ao.A11yUi.CSS_STYLE_CACHE.get(i)?.has(e.tagName))dg(e,c,ao.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName),r);else{const d=Os(i,"PROPERTIES"),u=Os(i,"GLOBAL"),m=Os(i,e.tagName);oy.has(i)===!1&&Z6(i,u);const h=[d,u,m];Y6(c,h,n.encroachCss),n.cache===!0&&(ao.A11yUi.CSS_STYLE_CACHE.has(i)===!1&&ao.A11yUi.CSS_STYLE_CACHE.set(i,new Map),ao.A11yUi.CSS_STYLE_CACHE.get(i)?.set(e.tagName,h)),dg(e,c,h,r)}},dg=(e,n,r,i)=>{const c=performance.now();if(P6(n),G6(n,r),ly(e),i(),ao.A11yUi.PERFORMANCE_MEASURES.has(e.tagName)){const d=ao.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);d.count+=1,d.totalTime+=performance.now()-c}else ao.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:performance.now()-c})},ry=e=>{const n=ao.A11yUi.STYLING_TASK_QUEUE.get(e);if(n){const{resetCss:r,themeDetails:i}=n;J6(e,i,r),ly(e)}};let dm=e=>{const n=setTimeout(()=>{clearTimeout(n),e.classList.contains("hydrated")?ry(e):dm(e)},ny)};const X6={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1},W6={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},ug=q6?new MutationObserver((e,n)=>{for(const r of e){const i=r.target;i.classList.contains("hydrated")&&(ry(i),n.observe(i,W6))}}):null;ug&&(dm=e=>ug.observe(e,X6),ty=()=>{});let ay=e=>{const n=getComputedStyle(e).getPropertyValue("--theme-visibility-delay").trim();if(n.endsWith("ms"))return parseFloat(n);if(n.endsWith("s"))return parseFloat(n)*1e3;{const r=parseFloat(n);return isNaN(r)?0:r}};ao.A11yUi.IS_TEST_ENVIRONMENT&&(ay=()=>0);const fg=(e,n)=>{e.style.setProperty("visibility",n),e.dataset.themed=""},Q6=(e,n)=>{const r=e.style.visibility||null;ao.A11yUi.STYLING_TASK_QUEUE.set(e,{resetCss:()=>{const i=ay(e);i>0?setTimeout(()=>{fg(e,r)},i):fg(e,r)},themeDetails:n}),e.style.setProperty("visibility","hidden","important"),dm(e)},ly=e=>{ao.A11yUi.STYLING_TASK_QUEUE.delete(e),ty()},e5=(e,n)=>{Q6(e,{...ao.A11yUi.Theme,...n})};var bg;(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"})(bg||(bg={}));var mg;(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"})(mg||(mg={}));const o5=()=>typeof window<"u"?window:{},um=()=>{const e=o5();return e&&typeof e.document<"u"?e.document:{}},vb=["development","production","test"];let Us="production";const iy=e=>{try{if(vb.includes(e))Us=e;else throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${vb.join(", ")}.`)}catch{Us="production"}},n5=()=>{try{const e=typeof process<"u"&&pb?"production":void 0;if(e&&vb.includes(e))return e}catch{}return"production"};iy(n5());let cy=!1,sy=!1;const t5=()=>Us==="development",LR=()=>Us==="test",r5=()=>cy===!0,OR=e=>{cy=e===!0},$R=()=>sy===!0,NR=e=>{sy=e===!0},a5="color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000",fl=e=>Array.isArray(e)?e:[e],hg=e=>`%c${e}`,l5=(e,n)=>typeof n=="string"&&n.length>0?`${hg(e)} | ${n}`:hg(e),bl=(e,n)=>[l5(e,n?.classifier),`${a5};${n?.overwriteStyle||""}`],Ti=e=>t5()||e===!0;let i5=class{constructor(n){this.label=n}debug(n,r){Ti(r?.forceLog)&&console.debug(...bl(this.label,r),...fl(n))}info(n,r){Ti(r?.forceLog)&&console.info(...bl(this.label,r),...fl(n))}trace(n,r){Ti(r?.forceLog)&&console.trace(...bl(this.label,r),...fl(n))}warn(n,r){Ti(r?.forceLog)&&console.warn(...bl(this.label,r),...fl(n))}error(n,r){console.error(...bl(this.label,r),...fl(n))}throw(n,r){if(Ti(r?.forceLog))throw new Error(...bl(this.label,r),...fl(n))}};const Oo=new i5("KoliBri"),pg=new Set,dy=(e,n)=>{pg.has(e)===!1&&(pg.add(e),Oo.debug([e].concat([]),{classifier:"✋ a11y",forceLog:!1,overwriteStyle:"; background-color: #09f"}))},kg=new Set,RR=(e,n)=>{kg.has(e)===!1&&(kg.add(e),Oo.warn([e].concat([]),{classifier:"🔥 deprecated",forceLog:!1,overwriteStyle:"; background-color: #f00"}))},Fs=new Set,uy=(e,n)=>{(Fs.has(e)===!1||n?.force)&&(Fs.add(e),Oo.debug([e].concat(n?.details||[]),{classifier:"💻 dev",forceLog:!!n?.force,overwriteStyle:"; background-color: #f09"}))},DR=(e,n)=>{Fs.has(e)===!1&&(Fs.add(e),Oo.warn([e].concat([]),{classifier:"⚠️ dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))},vg=new Set,MR=(e,n=!1,r)=>{vg.has(e)===!1&&(vg.add(e),e+=n===!0?" ✅":"",Oo.debug([e].concat([]),{classifier:"🌟 feature",forceLog:!1,overwriteStyle:"; background-color: #309"}))};uy("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");const gg=new Set,c5=(e,n)=>{gg.has(e)===!1&&(gg.add(e),Oo.debug([e].concat([]),{classifier:"📑 ui/ux",forceLog:!1,overwriteStyle:"; background-color: #060;"}))},IR=()=>{dy(`"Disabled" limits accessibility and visibility. From an accessibility perspective, we recommend using the readonly attribute instead of disabled.
23
+ - https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae`)},UR=e=>{(typeof e!="string"||e==="")&&dy(`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`)},FR=(e,n=8)=>{n>7&&c5(`[${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 s5=.2126,d5=.7152,u5=.0722,Df=1/12.92;function Mf(e){return Math.pow((e+.055)/1.055,2.4)}function gg(e){var n=e[0]/255,r=e[1]/255,i=e[2]/255,s=n<=.03928?n*Df:Mf(n),d=r<=.03928?r*Df:Mf(r),u=i<=.03928?i*Df:Mf(i);return s*s5+d*d5+u*u5}function _g(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 f5(e,n){return(Math.max(e,n)+.05)/(Math.min(e,n)+.05)}function b5(e,n){return f5(gg(e),gg(n))}function m5(e,n){return b5(_g(e),_g(n))}function h5(e){return e>=7?"AAA":e>=4.5?"AA":e>=3?"AA Large":"Fail"}var If,xg;function p5(){return xg||(xg=1,If={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]}),If}var Uf,yg;function k5(){if(yg)return Uf;yg=1;var e=p5();Uf=r;var n={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function r(i){var s,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(s=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(i)){var v=s[1],_=v==="rgb",h=v.replace(/a$/,"");m=h;var p=h==="cmyk"?4:h==="gray"?1:3;d=s[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(S,O){if(/%$/.test(S))return O===p?parseFloat(S)/100:h==="rgb"?parseFloat(S)*255/100:parseFloat(S);if(h[O]==="h"){if(/deg$/.test(S))return parseFloat(S);if(n[S]!==void 0)return n[S]}return parseFloat(S)}),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 Uf}var v5=k5(),KR=td(v5);const g5={min:[0,0,0],max:[255,255,255]};var VR={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,s,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,s=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?s+(d-s)*6*u:2*u<1?d:3*u<2?s+(d-s)*(2/3-u)*6:s,m[p++]=h*255;return m}};g5.hsl=function(e){var n=e[0]/255,r=e[1]/255,i=e[2]/255,s=Math.min(n,r,i),d=Math.max(n,r,i),u=d-s,m,h,p;return d===s?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=(s+d)/2,d===s?h=0:p<=.5?h=u/(d+s):h=u/(2-d-s),[m,h*100,p*100]};var Dr={exports:{}},wg;function _5(){if(wg)return Dr.exports;wg=1,Dr.exports=e,Dr.exports.arr=e,Dr.exports.obj=n,Dr.exports.css=r,Dr.exports.hex=i,Dr.exports.num=s;function e(x){var w=d(x);return w.length==3?w.concat(255):(w[3]=Math.round(w[3]),w)}function n(x){var w=d(x);return{r:w[0],g:w[1],b:w[2],a:w.length==3?255:Math.round(w[3])}}function r(x){var w=d(x);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(x){var Z=d(x);Z.length==3&&Z.push(255);var w=Z[3]==255,$=u(Z[0]),D=u(Z[1]),H=u(Z[2]),Z=u(Math.round(Z[3])),ee=m($,D,H,Z);return w?ee?"#"+$.charAt(0)+D.charAt(0)+H.charAt(0):"#"+$+D+H:ee?"#"+$.charAt(0)+D.charAt(0)+H.charAt(0)+Z.charAt(0):"#"+$+D+H+Z}function s(x){var w=d(x);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(x){return typeof x=="string"?(x=x.toLowerCase(),h(x)||g(x)||v(x)||O(x)||E(x)||[0,0,0,255]):z(x)||N(x)||S(x)||[0,0,0,255]}function u(x){var w=x.toString(16);return w.length==1?"0"+w:w}function m(x,w,$,D){var H=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return H.indexOf(x)!=-1&&H.indexOf(w)!=-1&&H.indexOf($)!=-1&&H.indexOf(D)!=-1}function h(x){if(x=="red")return[255,0,0];if(x=="green")return[0,255,0];if(x=="blue")return[0,0,255];if(x=="black")return[0,0,0];if(x=="white")return[255,255,255];if(x=="cyan")return[0,255,255];if(x=="gray")return[128,128,128];if(x=="grey")return[128,128,128];if(x=="magenta")return[255,0,255];if(x=="pink")return[255,0,255];if(x=="yellow")return[255,255,0]}function p(x){return x.length==1?parseInt(x+x,16):parseInt(x,16)}function g(x){var w=x.replace(/^#/,""),$=w.length;if($==3||$==4){var D=p(w[0]),H=p(w[1]),Z=p(w[2]),ee=$==3?255:p(w[3]);return isNaN(D)||isNaN(H)||isNaN(Z)||isNaN(ee)?void 0:[D,H,Z,ee]}}function v(x){var w=x.replace(/^#/,""),$=w.length;if($==6||$==8){var D=p(w.slice(0,2)),H=p(w.slice(2,4)),Z=p(w.slice(4,6)),ee=$==6?255:p(w.slice(6,8));return isNaN(D)||isNaN(H)||isNaN(Z)||isNaN(ee)?void 0:[D,H,Z,ee]}}function _(x,w){return typeof x!="number"||w===!0&&Math.floor(x)!==x?-1:x>=0&&x<=255?x:-1}function z(x){if(Object.prototype.toString.call(x)==="[object Object]"&&Object.getPrototypeOf(x)===Object.getPrototypeOf({})){var w=_(x.r!=null?x.r:x.red!=null?x.red:0,!0),$=_(x.g!=null?x.g:x.green!=null?x.green:0,!0),D=_(x.b!=null?x.b:x.blue!=null?x.blue:0,!0),H=_(x.a!=null?x.a:x.alpha!=null?x.alpha:255,!0);if(w!=-1&&$!=-1&&D!=-1&&H!=-1)return[w,$,D,H]}}function N(x){if(Array.isArray(x)&&(x.length==3||x.length==4)){var w=_(x[0],!0),$=_(x[1],!0),D=_(x[2],!0),H=_(x[3]!=null?x[3]:255,!0);if(w!=-1&&$!=-1&&D!=-1&&H!=-1)return[w,$,D,H]}}function S(x){if(typeof x=="number"&&Math.floor(x)==x&&x<=4294967295&&x>=0){var w=x>>24&255,$=x>>16&255,D=x>>8&255,H=x&255;return[$,D,H,w]}}function O(x){if(x.substr(0,4)=="rgb("){x=x.match(/^rgb\(([^)]+)\)/)[1];var w=x.split(/ *, */).map(Number),$=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0);if($!=-1&&D!=-1&&H!=-1)return[$,D,H,255]}}function E(x){if(x.substr(0,5)=="rgba("){x=x.match(/^rgba\(([^)]+)\)/)[1];var w=x.split(/ *, */).map(Number),$=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0),Z=_(w[3]*255);if($!=-1&&D!=-1&&H!=-1&&Z!=-1)return[$,D,H,Z]}}return Dr.exports}var x5=_5(),zg=td(x5),Hf={},jg;function y5(){return jg||(jg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelectorAll=void 0;const n=(i,s)=>{s.forEach(d=>{i.has(d)===!1&&i.add(d)})},r=(i,s=document)=>{if(s instanceof Document||s instanceof HTMLElement||s instanceof ShadowRoot){const d=new Set;n(d,s.querySelectorAll(i));const u=s.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})(Hf)),Hf}var w5=y5(),Ff={},Sg;function z5(){return Sg||(Sg=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 s=i.querySelector(r);if(s===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?s=(0,e.querySelector)(r,m):s=(0,e.querySelector)(r,d[u]),s!==null)break}}return s}else throw new Error("The parameter document for the method querySelector is not type of Document, HTMLElement or ShadowRoot.")};e.querySelector=n})(Ff)),Ff}var j5=z5();const S5=/\[object Object\]/,Kf=(e,n)=>{typeof e=="string"&&S5.test(e)||n()},T5=(e,n)=>{typeof e=="string"&&e===""||n()},qR=(e,n)=>{r5()&&(Oo.debug([e,n]),Oo.debug("↑ We propagate the (submit) event to this target.")),Object.defineProperty(e,"target",{value:n,writable:!1})},A5=e=>{var n,r,i;(n=e.nextHooks)===null||n===void 0||n.forEach((s,d)=>{var u;const m=s.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((s,d)=>{const u=s.get("afterPatch");typeof u=="function"&&u(e.state[d],e.state,e,d)})),delete e.nextHooks},vb=(e,n,r,i={})=>{var s,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"&&((s=e.nextHooks.get(n))===null||s===void 0||s.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),A5(e)},C5=(e,n,r,i)=>{dy(`[${e.constructor.name}] The property value: (${r}) for '${n}' is not valid. Allowed values are: ${Array.from(i).join(", ")}`)};function um(e,n,r,i,s,d={}){r(s)?vb(e,n,s,d.hooks):s===void 0&&d.required!==!0&&r(d.defaultValue)?vb(e,n,d.defaultValue,d.hooks):(d.required||i.add(null),C5(e,n,s,i))}const ZR=(e,n,r,i)=>{um(e,n,s=>typeof s=="boolean",new Set(["Boolean {true, false}"]),r,i)},PR=(e,n,r,i={})=>{const s=typeof i.minLength=="number"?i?.minLength:0;um(e,n,d=>typeof d=="string"&&d.length>=s&&(typeof i?.maxLength>"u"||d.length<=i.maxLength),new Set(["String"]),r,i)},GR=(e,n,r,i)=>{um(e,n,s=>typeof s=="number"&&(typeof i?.min>"u"||typeof i?.min=="number"&&s>=i.min)&&(typeof i?.max>"u"||typeof i?.max=="number"&&s<=i.max),new Set(["Number"]),r,i)},YR=(e,n,r,i,s=u=>u===u,d={})=>{T5(i,()=>{Kf(i,()=>{typeof i>"u"&&(i=[]);try{try{i=O5(i)}catch{}if(Array.isArray(i)){const u=i.find(m=>!r(m));u===void 0&&s(i)?vb(e,n,i,d.hooks):Kf(u,()=>{throw Oo.debug(u),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}else Kf(i,()=>{throw Oo.debug(i),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}catch(u){Oo.debug(u)}})})},E5=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch{throw Oo.warn(["stringifyJson",e]),Oo.error("↑ The JSON could not be converted to a string. A stringifiable JSON is expected."),new Error}},L5=/^[{[]/,O5=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{if(L5.test(e))try{return JSON.parse(e.replace(/'/g,'"'))}catch{Oo.warn(["parseJson",e]),Oo.error("↑ The JSON string could not be parsed. Make sure that single quotes in the text are escaped (&#8216;).")}}throw new Error},$5=e=>typeof e=="boolean"?e===!0?"true":"false":void 0,JR=e=>typeof e=="string"?e:$5(e),N5=(e,n)=>j5.querySelector(e,n||dm()),B5=(e,n)=>w5.querySelectorAll(e,n||dm());let Vf=null;const uy=()=>(Vf=Vf||{backgroundColor:"#00000000",color:"#00000000",domNode:dm().body,level:"Fail",score:1},Vf),Tg=/(\d+, ){3}0\)/,gb=(e,n=uy())=>{const r=getComputedStyle(e),i=Tg.test(r.backgroundColor)?n.backgroundColor:zg.hex(r.backgroundColor),s=Tg.test(r.color)?n.color:zg.hex(r.color),d=m5(i,s),u={backgroundColor:i,color:s,domNode:e,level:h5(d),score:d};return d<4.5&&Oo.error(["Color-Contrast-Error",{backgroundColor:u.backgroundColor,color:u.color,level:u.level,score:u.score},u.domNode]),u},R5=(e,n=uy())=>{n.domNode instanceof HTMLElement&&(n=gb(n.domNode,n));const r=n.domNode.querySelector(e);if(r===null){const i=n.domNode.querySelectorAll('[class="hydrated"]');for(let s=0;s<i.length&&(n.domNode=i[s],n=R5(e,n),n.domNode===null);s++);return n}else return gb(r,n)};class Jn{static queryHtmlElementColors(n,r,i=!1,s=!0){let d=null;if(i===!0||Jn.executionLock===!1)if(i===!1&&(Jn.cache.clear(),Jn.cache.set(r.domNode,r),Jn.executionLock=!0,s===!0&&Oo.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=Jn.cache.get(p[g]);v===void 0&&(v=gb(p[g],r)),Jn.cache.set(p[g],v);const _=Jn.queryHtmlElementColors(n,v,!0,!1);if(_!==null){d=_;break}}}else Oo.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return i===!1&&(s===!0&&Oo.debug(`[KoliBriUtils] Color contrast analysis finished (${Jn.cache.size} DOM elements are analysed).`),Jn.executionLock=!1,Jn.cache.clear()),d}}Jn.executionLock=!1;Jn.cache=new Map;class Sa{}Sa.getCssStyle=Es;Sa.patchTheme=D6;Sa.patchThemeTag=R6;Sa.querySelector=N5;Sa.querySelectorAll=B5;Sa.stringifyJson=E5;const XR=e=>typeof e=="object"&&e!==null,Ag=(e,n=0)=>typeof e=="string"&&e.length>=n,WR=e=>{if(typeof e=="object"&&e!==null){for(const n in e)if(Ag(n,1)===!1)return!1}else return Ag(e,1);return!0},QR=new Event("StateChange");var qf,Cg;function D5(){return Cg||(Cg=1,qf=function(n){return function(r,i){if(!r)return n;var s;typeof r=="string"?s=r:i=r;var d=n;return s&&(d+="__"+s),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},""):"")}}),qf}var M5=D5(),I5=td(M5);function fy(){const e=new Map,n=(r,i,s)=>{try{return e.get(r)(i,s)}catch{return e.set(r,I5(r)).get(r)(i,s)}};return n.forBlock=r=>{const i=(s,d)=>n(r,s,d);return i.forElement=s=>d=>n(r,s,d),i},n}const by=fy(),eD=by("kol-icon"),oD=by("kol-icon","icon");let _b;const Ls=[],U5=e=>{_b=e,Ls.forEach(n=>{n(e)})},nD=(e,n=!0)=>(n&&typeof _b=="string"&&e(_b),Ls.push(e),()=>{const r=Ls.indexOf(e);r>=0&&Ls.splice(r,1)});let Eg="kol-abbr",Lg="kol-accordion",Og="kol-alert",$g="kol-alert-wc",Ng="kol-avatar",Bg="kol-avatar-wc",Rg="kol-badge",Dg="kol-breadcrumb",Mg="kol-button-link",Ig="kol-button",Ug="kol-button-wc",Hg="kol-card",Fg="kol-card-wc",Kg="kol-combobox",Vg="kol-details",qg="kol-drawer",Zg="kol-form",Pg="kol-heading",Gg="kol-icon",Yg="kol-image",Jg="kol-input-checkbox",Xg="kol-input-color",Wg="kol-input-date",Qg="kol-input-email",e_="kol-input-file",o_="kol-input-number",n_="kol-input-password",t_="kol-input-radio",r_="kol-input-range",a_="kol-input",l_="kol-input-text",i_="kol-kolibri",c_="kol-link-button",s_="kol-link",d_="kol-link-wc",u_="kol-modal",f_="kol-nav",b_="kol-pagination",m_="kol-pagination-wc",h_="kol-popover-wc",p_="kol-popover-button",k_="kol-popover-button-wc",v_="kol-progress",g_="kol-quote",__="kol-select",x_="kol-select-wc",y_="kol-single-select",w_="kol-skip-nav",z_="kol-spin",j_="kol-split-button",S_="kol-table-settings-wc",T_="kol-table-stateful",A_="kol-table-stateless",C_="kol-table-stateless-wc",E_="kol-tabs",L_="kol-textarea",xb="kol-toast-container",Zf="kol-tooltip-wc",O_="kol-tree-item",$_="kol-tree-item-wc",N_="kol-tree",B_="kol-tree-wc",R_="kol-version";const H5=e=>{Eg=e(Eg),Lg=e(Lg),Og=e(Og),$g=e($g),Ng=e(Ng),Bg=e(Bg),Rg=e(Rg),Dg=e(Dg),Mg=e(Mg),Ig=e(Ig),Ug=e(Ug),Hg=e(Hg),Fg=e(Fg),Kg=e(Kg),Vg=e(Vg),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_),j_=e(j_),S_=e(S_),T_=e(T_),A_=e(A_),C_=e(C_),E_=e(E_),L_=e(L_),xb=e(xb),e(Zf),Zf=e(Zf),O_=e(O_),$_=e($_),N_=e(N_),B_=e(B_),R_=e(R_)};var F5={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"},K5={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 D_=e=>Object.keys(e).reduce((n,r)=>(n[`kol-${r}`]=e[r],n),{}),V5=new Set([e=>e("en",D_(K5)),e=>e("de",D_(F5))]),q5=function(e,n,r){return e.split(n).join(r)};class Z5{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,s)=>{let d=this.resourceMap.get(i);return d||(d=new Map,this.resourceMap.set(i,d)),Object.entries(s).forEach(([u,m])=>{m&&d.set(u,m)}),i}))}setLanguage(n){this.language=n}translate(n,r){var i;let s=(i=this.resourceMap.get(this.language))===null||i===void 0?void 0:i.get(n);return s?r?.placeholders&&Object.entries(r.placeholders).forEach(([d,u])=>{s=q5(s,`{{${d}}}`,u)}):s=n,s}}let Os;const tD=()=>Os,P5=(e,n=V5)=>(Os=new Z5(e),Os.addTranslations(n),Os);var G5={};let my=!1,hy;const Y5=async(e,n,r)=>{var i,s;const d=typeof process<"u"&&G5?"production":void 0;ly(r?.environment||d||"production"),P5((s=(i=r?.translation)===null||i===void 0?void 0:i.name)!==null&&s!==void 0?s:"de",r?.translations),r?.transformTagName&&H5(r?.transformTagName);const u=await F6(e,n,r);return my=!0,hy=r,Oo.info("Development mode active - Enhanced debugging features available"),u},J5=()=>my,rD=()=>hy;const fm=fy(),aD=fm("kol-alert","closer")+" kol-close-button",lD=fm("kol-alert","content"),iD=fm("kol-alert","icon");var Ot;(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"})(Ot||(Ot={}));function X5(e,n){return new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!0,detail:n})}function cD(e,n,r){e.dispatchEvent(X5(n,r))}class Vr{constructor(n,r){var i;this.document=n,this.options=r,this.toastContainerElement=this.document.createElement(xb),this.document.body.prepend(this.toastContainerElement),!((i=this.options)===null||i===void 0)&&i.defaultVariant&&Oo.info("ToasterService: Default variant is deprecated. Use 'card' variant for all toasts instead.")}static getInstance(n,r){if(!J5())throw new Error("Toaster: Call KoliBri bootstrap/register method first.");let i=this.instances.get(n);return i||(i=new Vr(n,r),this.instances.set(n,i)),i}dispose(){const n=this.toastContainerElement;n?(this.toastContainerElement=void 0,n.remove()):Oo.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)}}Vr.instances=new Map;var mn;(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"})(mn||(mn={}));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 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 xe=new Map;xe.set(mn["Die Bundesregierung"],["Die","Bundesregierung"]);xe.set(mn["Bundesministerium der Finanzen"],["Bundesministerium","der Finanzen"]);xe.set(mn["Bundesministerium des Innern, für Bau und Heimat"],["Bundesministerium","des Inneren, für Bau","und Heimat"]);xe.set(mn["Auswärtiges Amt"],["Auswärtiges Amt"]);xe.set(mn["Bundesministerium für Wirtschaft und Energie"],["Bundesministerium","für Wirtschaft","und Energie"]);xe.set(mn["Bundesministerium der Justiz und für Verbraucherschutz"],["Bundesministerium","der Justiz und","für Verbraucherschutz"]);xe.set(mn["Bundesministerium für Arbeit und Soziales"],["Bundesministerium","für Arbeit und Soziales"]);xe.set(mn["Bundesministerium der Verteidigung"],["Bundesministerium","der Verteidigung"]);xe.set(mn["Bundesministerium für Bildung und Forschung"],["Bundesministerium","für Bildung","und Forschung"]);xe.set(mn["Bundesministerium für Ernährung und Landwirtschaft"],["Bundesministerium","für Ernährung","und Landwirtschaft"]);xe.set(mn["Bundesministerium für Familie, Senioren, Frauen und Jugend"],["Bundesministerium","für Familie, Senioren, Frauen","und Jugend"]);xe.set(mn["Bundesministerium für Gesundheit"],["Bundesministerium","für Gesundheit"]);xe.set(mn["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"],["Bundesministerium","für Umwelt, Naturschutz","und nukleare Sicherheit"]);xe.set(mn["Bundesministerium für Verkehr und digitale Infrastruktur"],["Bundesministerium","für Verkehr und","digitale Infrastruktur"]);xe.set(mn["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"],["Bundesministerium","für wirtschaftliche Zusammenarbeit","und Entwicklung"]);xe.set(Ke["Beschaffungsamt des Bundesministeriums des Innern"],["Beschaffungsamt","des Bundesministeriums","des Innern"]);xe.set(Ke["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"],[]);xe.set(Ke["Bundesamt für äußere Restitutionen"],[]);xe.set(Ke["Bundesamt für Bauwesen und Raumordnung"],[]);xe.set(Ke["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"],["Bundesamt","für Bevölkerungsschutz","und Katastrophenhilfe"]);xe.set(Ke["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"],["Bundesamt","für Familie und","zivilgesellschaftliche Aufgaben"]);xe.set(Ke["Bundesamt für Güterverkehr"],["Bundesamt","für Güterverkehr"]);xe.set(Ke["Bundesamt für Justiz"],["Bundesamt für","Justiz"]);xe.set(Ke["Bundesamt für Kartographie und Geodäsie"],["Bundesamt für","Kartographie und Geodäsie"]);xe.set(Ke["Bundesamt für kerntechnische Entsorgungssicherheit"],["Bundesamt für","kerntechnische","Entsorgungssicherheit"]);xe.set(Ke["Bundesamt für Migration und Flüchtlinge"],["Bundesamt","für Migration","und Flüchtlinge"]);xe.set(Ke["Bundesamt für Sicherheit in der Informationstechnik"],["Bundesamt","für Sicherheit in der","Informationstechnik"]);xe.set(Ke["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"],["Bundesamt für","Verbraucherschutz und","Lebensmittelsicherheit"]);xe.set(Ke["Bundesamt für Verfassungsschutz"],["Bundesamt für","Verfassungsschutz"]);xe.set(Ke["Bundesamt für Wirtschaft und Ausfuhrkontrolle"],["Bundesamt","für Wirtschaft","Ausfuhrkontrolle"]);xe.set(Ke["Bundesamt für zentrale Dienste und offene Vermögensfragen"],["Bundesamt","für zentrale Dienste und","offene Vermögensfragen"]);xe.set(Ke["Bundesanstalt für Verwaltungsdienstleistungen"],["Bundesanstalt","für Verwaltungsdienstleistungen"]);xe.set(Ke.Bundesarchiv,["Das","Bundesarchiv"]);xe.set(Ke["Bundesaufsichtsamt für Flugsicherung"],["Bundesaufsichtsamt","für Flugsicherung"]);xe.set(Ke.Bundesausgleichsamt,["Bundesausgleichsamt"]);xe.set(Ke.Bundeskartellamt,["Bundeskartellamt"]);xe.set(Ke.Bundeskriminalamt,["Bundeskriminalamt"]);xe.set(Ke.Bundesnachrichtendienst,["Bundesnachrichtendienst"]);xe.set(Ke["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"],["Bundesnetzagentur"]);xe.set(Ke.Bundespolizeipräsidium,["Bundespolizeipräsidium"]);xe.set(Ke["Bundesprüfstelle für jugendgefährdende Medien"],["Bundesprüfstelle","für jugendgefährdende","Medien"]);xe.set(Ke.Bundessortenamt,["Bundessortenamt"]);xe.set(Ke.Bundessprachenamt,["Bundessprachenamt"]);xe.set(Ke["Bundesamt für Soziale Sicherung"],["Bundesamt","für Soziale Sicherung"]);xe.set(Ke.Bundesverwaltungsamt,["Bundesverwaltungsamt"]);xe.set(Ke["Bundeszentralamt für Steuern"],["Bundeszentralamt","für Steuern"]);xe.set(Ke["Deutsches Patent- und Markenamt"],["Deutsches","Patent- und Markenamt"]);xe.set(Ke["Eisenbahn-Bundesamt"],["Eisenbahn-Bundesamt"]);xe.set(Ke.Generalzolldirektion,["Generalzolldirektion"]);xe.set(Ke["Militärischer Abschirmdienst"],["Bundesamt für den","Militärischen Abschirmdienst"]);xe.set(Ke["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"],["Zentrale Stelle","für Informationstechnik","im Sicherheitsbereich"]);xe.set(dr["Informationstechnikzentrum Bund"],["Informations","Technik","Zentrum Bund"]);xe.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"]);xe.set(dr["Bundesanstalt für Landwirtschaft und Ernährung"],["Bundesanstalt für","Landwirtschaft und Ernährung"]);xe.set(dr["Bundesanstalt Technisches Hilfswerk"],["Bundesanstalt","Technisches Hilfswerk"]);xe.set(dr["Bundesinstitut für Arzneimittel und Medizinprodukte"],["Bundesinstitut","für Arzneimittel","und Medizinprodukte"]);xe.set(dr["Bundesinstitut für Bevölkerungsforschung"],["Bundesinstitut","für Bevölkerungsforschung"]);xe.set(dr["Bundesinstitut für Sportwissenschaft"],["Bundesinstitut","für Sportwissenschaft"]);const W5="modulepreload",Q5=function(e){return"/"+e},M_={},me=function(n,r,i){let s=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");s=h(r.map(p=>{if(p=Q5(p),p in M_)return;M_[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":W5,g||(_.as="script"),_.crossOrigin="",_.href=p,m&&_.setAttribute("nonce",m),document.head.appendChild(_),g)return new Promise((z,N)=>{_.addEventListener("load",z),_.addEventListener("error",()=>N(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 s.then(u=>{for(const m of u||[])m.status==="rejected"&&d(m.reason);return n().catch(d)})},ej="kolibri",_a={hydratedSelectorName:"hydrated",lazyLoad:!0,propChangeCallback:!0,slotRelocation:!0,state:!0,updatable:!0},sD={kolibriVersion:"3.1.2-rc.1"};var oj=Object.defineProperty,nj=(e,n)=>{for(var r in n)oj(e,r,{get:n[r],enumerable:!0})},tj="http://www.w3.org/2000/svg",rj="http://www.w3.org/1999/xhtml",py=(e=>(e.Undefined="undefined",e.Null="null",e.String="string",e.Number="number",e.SpecialNumber="number",e.Boolean="boolean",e.BigInt="bigint",e))(py||{}),ky=(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))(ky||{}),Pf="type",Gf="value",yb="serialized:",aj=(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=lj(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 lj(e,n){for(;e;){const r=Object.getOwnPropertyDescriptor(e,n);if(r?.get)return r;e=Object.getPrototypeOf(e)}}var ot=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},dD=(e,n)=>{n&&(e.__stencil__getHostRef=()=>n,n.$lazyInstance$=e,n.$cmpMeta$.$flags$&512&&_a.state&&aj(e,n))},ij=(e,n)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:n,$instanceValues$:new Map,$serializerValues$:new Map};r.$onInstancePromise$=new Promise(s=>r.$onInstanceResolve$=s),r.$onReadyPromise$=new Promise(s=>r.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],r.$fetchedCbList$=[];const i=r;return e.__stencil__getHostRef=()=>i,i},I_=(e,n)=>n in e,ue=(e,n)=>(0,console.error)(e,n),Yf=new Map,cj=(e,n,r)=>{const i=e.$tagName$.replace(/-/g,"_"),s=e.$lazyBundleId$;if(!s)return;const d=Yf.get(s);if(d)return d[i];{const u=m=>(Yf.set(s,m),m[i]);switch(s){case"kol-abbr":return me(()=>import("./kol-abbr.entry-CO9LTHW0.js"),__vite__mapDeps([0,1])).then(u,ue);case"kol-accordion":return me(()=>import("./kol-accordion.entry-C6O2r3sW.js"),__vite__mapDeps([2,3,4,5,6,7,1,8,9,10])).then(u,ue);case"kol-alert":return me(()=>import("./kol-alert.entry-BnqfZDIN.js"),[]).then(u,ue);case"kol-avatar":return me(()=>import("./kol-avatar.entry-JmYiWnA_.js"),[]).then(u,ue);case"kol-badge":return me(()=>import("./kol-badge.entry-O_AeYXIJ.js"),__vite__mapDeps([11,12,4,5,13,6,14,15,16,17,18,19,20,21,9])).then(u,ue);case"kol-breadcrumb":return me(()=>import("./kol-breadcrumb.entry-BxLiQFH9.js"),__vite__mapDeps([22,1,23,24])).then(u,ue);case"kol-button":return me(()=>import("./kol-button.entry-C1zzBW5z.js"),[]).then(u,ue);case"kol-button-link":return me(()=>import("./kol-button-link.entry-obKE1T36.js"),[]).then(u,ue);case"kol-card":return me(()=>import("./kol-card.entry-DlRidgmq.js"),[]).then(u,ue);case"kol-details":return me(()=>import("./kol-details.entry-BiV6wNfB.js"),__vite__mapDeps([25,3,4,5,6,7,1,8,9,10])).then(u,ue);case"kol-drawer":return me(()=>import("./kol-drawer.entry-DTIemJ9E.js"),__vite__mapDeps([26,5,27,28,1,8,29])).then(u,ue);case"kol-form":return me(()=>import("./kol-form.entry-DAtdP0Op.js"),__vite__mapDeps([30,13,12,4,5,6])).then(u,ue);case"kol-heading":return me(()=>import("./kol-heading.entry-CxRaKuF3.js"),__vite__mapDeps([31,12,4,5,13,6,1,19,10])).then(u,ue);case"kol-icon":return me(()=>import("./kol-icon.entry-B45vnsI-.js"),__vite__mapDeps([32,1,5])).then(u,ue);case"kol-image":return me(()=>import("./kol-image.entry-B8pgCPeL.js"),__vite__mapDeps([33,34])).then(u,ue);case"kol-input-checkbox":return me(()=>import("./kol-input-checkbox.entry-CTzH4m_V.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,ue);case"kol-input-color":return me(()=>import("./kol-input-color.entry-B1cO5C9r.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,ue);case"kol-input-date":return me(()=>import("./kol-input-date.entry-1S7u9b6A.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,ue);case"kol-input-email":return me(()=>import("./kol-input-email.entry-Ct2wtuXO.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,ue);case"kol-input-file":return me(()=>import("./kol-input-file.entry-B8G1ohEC.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,ue);case"kol-input-number":return me(()=>import("./kol-input-number.entry-BkV3aZNm.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,ue);case"kol-input-password":return me(()=>import("./kol-input-password.entry-C1SQs2QM.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,ue);case"kol-input-radio":return me(()=>import("./kol-input-radio.entry-Dv51AH7N.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,ue);case"kol-input-text":return me(()=>import("./kol-input-text.entry-D6HpanSD.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,ue);case"kol-kolibri":return me(()=>import("./kol-kolibri.entry-BHhiMbBs.js"),__vite__mapDeps([66,14,13])).then(u,ue);case"kol-link":return me(()=>import("./kol-link.entry-CZzimAnQ.js"),[]).then(u,ue);case"kol-link-button":return me(()=>import("./kol-link-button.entry-Yq4trsOK.js"),[]).then(u,ue);case"kol-modal":return me(()=>import("./kol-modal.entry-XLTYxNsN.js"),__vite__mapDeps([67,5,1,29])).then(u,ue);case"kol-nav":return me(()=>import("./kol-nav.entry-BVKBKQSJ.js"),__vite__mapDeps([68,41,1,5,13,9,23,24])).then(u,ue);case"kol-pagination":return me(()=>import("./kol-pagination.entry-CB_cdI3Q.js"),[]).then(u,ue);case"kol-popover-button":return me(()=>import("./kol-popover-button.entry-Dg0UkZ4P.js"),[]).then(u,ue);case"kol-progress":return me(()=>import("./kol-progress.entry-CqPvcswV.js"),__vite__mapDeps([69,1])).then(u,ue);case"kol-quote":return me(()=>import("./kol-quote.entry-BdilRJzm.js"),__vite__mapDeps([70,18,1,5])).then(u,ue);case"kol-select":return me(()=>import("./kol-select.entry-kFH0Ms7P.js"),[]).then(u,ue);case"kol-skip-nav":return me(()=>import("./kol-skip-nav.entry-TR_KH9IQ.js"),__vite__mapDeps([71,1,23,24])).then(u,ue);case"kol-spin":return me(()=>import("./kol-spin.entry-CgbvAVRf.js"),__vite__mapDeps([72,1,73,13,5])).then(u,ue);case"kol-split-button":return me(()=>import("./kol-split-button.entry-DImfZNKp.js"),__vite__mapDeps([74,5,13])).then(u,ue);case"kol-table-stateful":return me(()=>import("./kol-table-stateful.entry-2ocbR_ry.js"),__vite__mapDeps([75,13,76,1,77])).then(u,ue);case"kol-table-stateless":return me(()=>import("./kol-table-stateless.entry-By-SwJJB.js"),[]).then(u,ue);case"kol-tabs":return me(()=>import("./kol-tabs.entry-CcbVZAD5.js"),__vite__mapDeps([78,27,1,5,13,77])).then(u,ue);case"kol-textarea":return me(()=>import("./kol-textarea.entry-rXsY3y_7.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,ue);case"kol-toast-container":return me(()=>import("./kol-toast-container.entry-m1LW5cqQ.js"),__vite__mapDeps([81,13,9,12,4,5,6,19])).then(u,ue);case"kol-toolbar":return me(()=>import("./kol-toolbar.entry-DRl4fTJ7.js"),__vite__mapDeps([82,4,1,77,38])).then(u,ue);case"kol-tree":return me(()=>import("./kol-tree.entry-DpbmkuCA.js"),[]).then(u,ue);case"kol-tree-item":return me(()=>import("./kol-tree-item.entry-Bjqx2WRs.js"),[]).then(u,ue);case"kol-version":return me(()=>import("./kol-version.entry-zSDCAxho.js"),__vite__mapDeps([83,1,13])).then(u,ue);case"kol-alert-wc":return me(()=>import("./kol-alert-wc.entry-DMFRB8uw.js"),__vite__mapDeps([84,12,4,5,13,6,28,1,10])).then(u,ue);case"kol-avatar-wc":return me(()=>import("./kol-avatar-wc.entry-D5J9pYxl.js"),__vite__mapDeps([85,14,34,1,13])).then(u,ue);case"kol-button-wc":return me(()=>import("./kol-button-wc.entry-B2-84boN.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,ue);case"kol-card-wc":return me(()=>import("./kol-card-wc.entry-D3a3Y3IG.js"),__vite__mapDeps([90,28,1,13,10,12,4,5,6,19,9])).then(u,ue);case"kol-combobox":return me(()=>import("./kol-combobox.entry-DUAUSC49.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,ue);case"kol-input-range":return me(()=>import("./kol-input-range.entry-D-Yv0ta1.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,ue);case"kol-link-wc":return me(()=>import("./kol-link-wc.entry-DzYCh4t9.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,ue);case"kol-pagination-wc":return me(()=>import("./kol-pagination-wc.entry-CEM325PI.js"),__vite__mapDeps([96,88,1,42,27,13,9,23])).then(u,ue);case"kol-popover-button-wc":return me(()=>import("./kol-popover-button-wc.entry-D3TsHOPw.js"),__vite__mapDeps([97,98,5,89,27])).then(u,ue);case"kol-popover-wc":return me(()=>import("./kol-popover-wc.entry-Dns-e0b3.js"),__vite__mapDeps([99,98,27,73,5])).then(u,ue);case"kol-select-wc":return me(()=>import("./kol-select-wc.entry-D0xWvPWg.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,ue);case"kol-single-select":return me(()=>import("./kol-single-select.entry-BYF1cAmw.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,ue);case"kol-table-settings-wc":return me(()=>import("./kol-table-settings-wc.entry-DwGg0JtN.js"),__vite__mapDeps([102,4,13])).then(u,ue);case"kol-table-stateless-wc":return me(()=>import("./kol-table-stateless-wc.entry-CdNudf0i.js"),__vite__mapDeps([103,5,13,76,1,77,9,21])).then(u,ue);case"kol-tooltip-wc":return me(()=>import("./kol-tooltip-wc.entry-CXNiNpNH.js"),__vite__mapDeps([104,98,27,1,12,4,5,13,6,16,17,18,19,20,21,29])).then(u,ue);case"kol-tree-item-wc":return me(()=>import("./kol-tree-item-wc.entry-Nqk6XEjx.js"),__vite__mapDeps([105,5,95,1,8,9])).then(u,ue);case"kol-tree-wc":return me(()=>import("./kol-tree-wc.entry-46MxyTIP.js"),__vite__mapDeps([106,1])).then(u,ue);case"test-component":return me(()=>import("./test-component.entry-DOmC-t2_.js"),[]).then(u,ue)}}return me(()=>import(`./${s}.entry.js`),[]).then(u=>(Yf.set(s,u),u[i]),u=>{ue(u,n.$hostElement$)})},Us=new Map,vy=[],sj="r",dj="o",wb="s",uj="t",fj="c",Fi="s-id",zb="sty-id",U_="c-id",bj="{visibility:hidden}.hydrated{visibility:inherit}",gy="slot-fb{display:contents}slot-fb[hidden]{display:none}",H_="http://www.w3.org/1999/xlink",oo=typeof window<"u"?window:{},bo={$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)},mj=(()=>{var e;let n=!1;try{(e=oo.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){n=!0}}))}catch{}return n})(),hj=e=>Promise.resolve(e),bm=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),jb=bm?!!oo.document&&Object.getOwnPropertyDescriptor(oo.document.adoptedStyleSheets,"length").writable:!1,_y=e=>hj().then(e),mm=e=>(e=typeof e,e==="object"||e==="function");function xy(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 pj=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),kj=class ha{static fromLocalValue(n){const r=n[Pf],i=Gf in n?n[Gf]: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=>ha.fromLocalValue(p));case"date":return new Date(i);case"map":const s=new Map;for(const[p,g]of i){const v=typeof p=="object"&&p!==null?ha.fromLocalValue(p):p,_=ha.fromLocalValue(g);s.set(v,_)}return s;case"object":const d={};for(const[p,g]of i)d[p]=ha.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(ha.fromLocalValue(p));return h;case"symbol":return Symbol(i);default:throw new Error(`Unsupported type: ${r}`)}}static fromLocalValueArray(n){return n.map(r=>ha.fromLocalValue(r))}static isLocalValueObject(n){if(typeof n!="object"||n===null||!n.hasOwnProperty(Pf))return!1;const r=n[Pf];return Object.values({...py,...ky}).includes(r)?r!=="null"&&r!=="undefined"?n.hasOwnProperty(Gf):!0:!1}},vj={};nj(vj,{err:()=>yy,map:()=>gj,ok:()=>Sb,unwrap:()=>_j,unwrapErr:()=>xj});var Sb=e=>({isOk:!0,isErr:!1,value:e}),yy=e=>({isOk:!1,isErr:!0,value:e});function gj(e,n){if(e.isOk){const r=n(e.value);return r instanceof Promise?r.then(i=>Sb(i)):Sb(r)}if(e.isErr){const r=e.value;return yy(r)}throw"should never get here"}var _j=e=>{if(e.isOk)return e.value;throw e.value},xj=e=>{if(e.isErr)return e.value;throw e.value};function yj(e){return typeof e!="string"||!e.startsWith(yb)?e:kj.fromLocalValue(JSON.parse(atob(e.slice(yb.length))))}var Ti;function wj(e){var n;const r=this.attachShadow({mode:"open"});Ti===void 0&&(Ti=(n=void 0)!=null?n:null),Ti&&(jb?r.adoptedStyleSheets.push(Ti):r.adoptedStyleSheets=[...r.adoptedStyleSheets,Ti])}var wy=e=>{const n=Ur(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&zy(n,e.tagName).forEach(i=>{i.nodeType===1&&i.tagName==="SLOT-FB"&&(jj(i,hm(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&&Ur(i,"childNodes").length&&wy(i)}},zj=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 zy(e,n,r){let i=0,s=[],d;for(;i<e.length;i++)d=e[i],d["s-sr"]&&(!n||d["s-hn"]===n)&&r===void 0&&s.push(d),s=[...s,...zy(d.childNodes,n,r)];return s}var jj=(e,n,r=!0)=>{const i=[];(r&&e["s-sr"]||!e["s-sr"])&&i.push(e);let s=e;for(;s=s.nextSibling;)hm(s)===n&&(r||!s["s-sr"])&&i.push(s);return i},F_=(e,n)=>e.nodeType===1?e.getAttribute("slot")===null&&n===""||e.getAttribute("slot")===n:e["s-sn"]===n?!0:n==="",Sj=(e,n,r,i)=>{if(e["s-ol"]&&e["s-ol"].isConnected)return;const s=document.createTextNode("");if(s["s-nr"]=e,!n["s-cr"]||!n["s-cr"].parentNode)return;const d=n["s-cr"].parentNode,u=Ur(d,"appendChild");if(typeof i<"u"){s["s-oo"]=i;const m=Ur(d,"childNodes"),h=[s];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,s);e["s-ol"]=s,e["s-sh"]=n["s-hn"]},hm=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function jy(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const n=r=>(function(i){const s=[],d=this["s-sn"];i?.flatten&&console.error(`
27
+ - https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus_or_Minus_Two`)};var s5=.2126,d5=.7152,u5=.0722,Mf=1/12.92;function If(e){return Math.pow((e+.055)/1.055,2.4)}function _g(e){var n=e[0]/255,r=e[1]/255,i=e[2]/255,c=n<=.03928?n*Mf:If(n),d=r<=.03928?r*Mf:If(r),u=i<=.03928?i*Mf:If(i);return c*s5+d*d5+u*u5}function xg(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 f5(e,n){return(Math.max(e,n)+.05)/(Math.min(e,n)+.05)}function b5(e,n){return f5(_g(e),_g(n))}function m5(e,n){return b5(xg(e),xg(n))}function h5(e){return e>=7?"AAA":e>=4.5?"AA":e>=3?"AA Large":"Fail"}var Uf,yg;function p5(){return yg||(yg=1,Uf={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]}),Uf}var Ff,wg;function k5(){if(wg)return Ff;wg=1;var e=p5();Ff=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],x=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(S,O){if(/%$/.test(S))return O===p?parseFloat(S)/100:h==="rgb"?parseFloat(S)*255/100:parseFloat(S);if(h[O]==="h"){if(/deg$/.test(S))return parseFloat(S);if(n[S]!==void 0)return n[S]}return parseFloat(S)}),v===h&&d.push(1),u=x||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 Ff}var v5=k5(),HR=ad(v5);const g5={min:[0,0,0],max:[255,255,255]};var KR={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}};g5.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 Dr={exports:{}},zg;function _5(){if(zg)return Dr.exports;zg=1,Dr.exports=e,Dr.exports.arr=e,Dr.exports.obj=n,Dr.exports.css=r,Dr.exports.hex=i,Dr.exports.num=c;function e(_){var w=d(_);return w.length==3?w.concat(255):(w[3]=Math.round(w[3]),w)}function n(_){var w=d(_);return{r:w[0],g:w[1],b:w[2],a:w.length==3?255:Math.round(w[3])}}function r(_){var w=d(_);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(_){var Z=d(_);Z.length==3&&Z.push(255);var w=Z[3]==255,$=u(Z[0]),D=u(Z[1]),F=u(Z[2]),Z=u(Math.round(Z[3])),ee=m($,D,F,Z);return w?ee?"#"+$.charAt(0)+D.charAt(0)+F.charAt(0):"#"+$+D+F:ee?"#"+$.charAt(0)+D.charAt(0)+F.charAt(0)+Z.charAt(0):"#"+$+D+F+Z}function c(_){var w=d(_);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(_){return typeof _=="string"?(_=_.toLowerCase(),h(_)||g(_)||v(_)||O(_)||E(_)||[0,0,0,255]):z(_)||N(_)||S(_)||[0,0,0,255]}function u(_){var w=_.toString(16);return w.length==1?"0"+w:w}function m(_,w,$,D){var F=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return F.indexOf(_)!=-1&&F.indexOf(w)!=-1&&F.indexOf($)!=-1&&F.indexOf(D)!=-1}function h(_){if(_=="red")return[255,0,0];if(_=="green")return[0,255,0];if(_=="blue")return[0,0,255];if(_=="black")return[0,0,0];if(_=="white")return[255,255,255];if(_=="cyan")return[0,255,255];if(_=="gray")return[128,128,128];if(_=="grey")return[128,128,128];if(_=="magenta")return[255,0,255];if(_=="pink")return[255,0,255];if(_=="yellow")return[255,255,0]}function p(_){return _.length==1?parseInt(_+_,16):parseInt(_,16)}function g(_){var w=_.replace(/^#/,""),$=w.length;if($==3||$==4){var D=p(w[0]),F=p(w[1]),Z=p(w[2]),ee=$==3?255:p(w[3]);return isNaN(D)||isNaN(F)||isNaN(Z)||isNaN(ee)?void 0:[D,F,Z,ee]}}function v(_){var w=_.replace(/^#/,""),$=w.length;if($==6||$==8){var D=p(w.slice(0,2)),F=p(w.slice(2,4)),Z=p(w.slice(4,6)),ee=$==6?255:p(w.slice(6,8));return isNaN(D)||isNaN(F)||isNaN(Z)||isNaN(ee)?void 0:[D,F,Z,ee]}}function x(_,w){return typeof _!="number"||w===!0&&Math.floor(_)!==_?-1:_>=0&&_<=255?_:-1}function z(_){if(Object.prototype.toString.call(_)==="[object Object]"&&Object.getPrototypeOf(_)===Object.getPrototypeOf({})){var w=x(_.r!=null?_.r:_.red!=null?_.red:0,!0),$=x(_.g!=null?_.g:_.green!=null?_.green:0,!0),D=x(_.b!=null?_.b:_.blue!=null?_.blue:0,!0),F=x(_.a!=null?_.a:_.alpha!=null?_.alpha:255,!0);if(w!=-1&&$!=-1&&D!=-1&&F!=-1)return[w,$,D,F]}}function N(_){if(Array.isArray(_)&&(_.length==3||_.length==4)){var w=x(_[0],!0),$=x(_[1],!0),D=x(_[2],!0),F=x(_[3]!=null?_[3]:255,!0);if(w!=-1&&$!=-1&&D!=-1&&F!=-1)return[w,$,D,F]}}function S(_){if(typeof _=="number"&&Math.floor(_)==_&&_<=4294967295&&_>=0){var w=_>>24&255,$=_>>16&255,D=_>>8&255,F=_&255;return[$,D,F,w]}}function O(_){if(_.substr(0,4)=="rgb("){_=_.match(/^rgb\(([^)]+)\)/)[1];var w=_.split(/ *, */).map(Number),$=x(w[0],!0),D=x(w[1],!0),F=x(w[2],!0);if($!=-1&&D!=-1&&F!=-1)return[$,D,F,255]}}function E(_){if(_.substr(0,5)=="rgba("){_=_.match(/^rgba\(([^)]+)\)/)[1];var w=_.split(/ *, */).map(Number),$=x(w[0],!0),D=x(w[1],!0),F=x(w[2],!0),Z=x(w[3]*255);if($!=-1&&D!=-1&&F!=-1&&Z!=-1)return[$,D,F,Z]}}return Dr.exports}var x5=_5(),jg=ad(x5),Hf={},Sg;function y5(){return Sg||(Sg=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})(Hf)),Hf}var w5=y5(),Kf={},Tg;function z5(){return Tg||(Tg=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})(Kf)),Kf}var j5=z5();const S5=/\[object Object\]/,Vf=(e,n)=>{typeof e=="string"&&S5.test(e)||n()},T5=(e,n)=>{typeof e=="string"&&e===""||n()},VR=(e,n)=>{r5()&&(Oo.debug([e,n]),Oo.debug("↑ We propagate the (submit) event to this target.")),Object.defineProperty(e,"target",{value:n,writable:!1})},A5=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},gb=(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),A5(e)},C5=(e,n,r,i)=>{uy(`[${e.constructor.name}] The property value: (${r}) for '${n}' is not valid. Allowed values are: ${Array.from(i).join(", ")}`)};function fm(e,n,r,i,c,d={}){r(c)?gb(e,n,c,d.hooks):c===void 0&&d.required!==!0&&r(d.defaultValue)?gb(e,n,d.defaultValue,d.hooks):(d.required||i.add(null),C5(e,n,c,i))}const qR=(e,n,r,i)=>{fm(e,n,c=>typeof c=="boolean",new Set(["Boolean {true, false}"]),r,i)},ZR=(e,n,r,i={})=>{const c=typeof i.minLength=="number"?i?.minLength:0;fm(e,n,d=>typeof d=="string"&&d.length>=c&&(typeof i?.maxLength>"u"||d.length<=i.maxLength),new Set(["String"]),r,i)},PR=(e,n,r,i)=>{fm(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)},GR=(e,n,r,i,c=u=>u===u,d={})=>{T5(i,()=>{Vf(i,()=>{typeof i>"u"&&(i=[]);try{try{i=O5(i)}catch{}if(Array.isArray(i)){const u=i.find(m=>!r(m));u===void 0&&c(i)?gb(e,n,i,d.hooks):Vf(u,()=>{throw Oo.debug(u),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}else Vf(i,()=>{throw Oo.debug(i),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}catch(u){Oo.debug(u)}})})},E5=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch{throw Oo.warn(["stringifyJson",e]),Oo.error("↑ The JSON could not be converted to a string. A stringifiable JSON is expected."),new Error}},L5=/^[{[]/,O5=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{if(L5.test(e))try{return JSON.parse(e.replace(/'/g,'"'))}catch{Oo.warn(["parseJson",e]),Oo.error("↑ The JSON string could not be parsed. Make sure that single quotes in the text are escaped (&#8216;).")}}throw new Error},$5=e=>typeof e=="boolean"?e===!0?"true":"false":void 0,YR=e=>typeof e=="string"?e:$5(e),N5=(e,n)=>j5.querySelector(e,n||um()),B5=(e,n)=>w5.querySelectorAll(e,n||um());let qf=null;const fy=()=>(qf=qf||{backgroundColor:"#00000000",color:"#00000000",domNode:um().body,level:"Fail",score:1},qf),Ag=/(\d+, ){3}0\)/,_b=(e,n=fy())=>{const r=getComputedStyle(e),i=Ag.test(r.backgroundColor)?n.backgroundColor:jg.hex(r.backgroundColor),c=Ag.test(r.color)?n.color:jg.hex(r.color),d=m5(i,c),u={backgroundColor:i,color:c,domNode:e,level:h5(d),score:d};return d<4.5&&Oo.error(["Color-Contrast-Error",{backgroundColor:u.backgroundColor,color:u.color,level:u.level,score:u.score},u.domNode]),u},R5=(e,n=fy())=>{n.domNode instanceof HTMLElement&&(n=_b(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=R5(e,n),n.domNode===null);c++);return n}else return _b(r,n)};class Jn{static queryHtmlElementColors(n,r,i=!1,c=!0){let d=null;if(i===!0||Jn.executionLock===!1)if(i===!1&&(Jn.cache.clear(),Jn.cache.set(r.domNode,r),Jn.executionLock=!0,c===!0&&Oo.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=Jn.cache.get(p[g]);v===void 0&&(v=_b(p[g],r)),Jn.cache.set(p[g],v);const x=Jn.queryHtmlElementColors(n,v,!0,!1);if(x!==null){d=x;break}}}else Oo.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return i===!1&&(c===!0&&Oo.debug(`[KoliBriUtils] Color contrast analysis finished (${Jn.cache.size} DOM elements are analysed).`),Jn.executionLock=!1,Jn.cache.clear()),d}}Jn.executionLock=!1;Jn.cache=new Map;class Sa{}Sa.getCssStyle=Os;Sa.patchTheme=D6;Sa.patchThemeTag=R6;Sa.querySelector=N5;Sa.querySelectorAll=B5;Sa.stringifyJson=E5;const JR=e=>typeof e=="object"&&e!==null,Cg=(e,n=0)=>typeof e=="string"&&e.length>=n,XR=e=>{if(typeof e=="object"&&e!==null){for(const n in e)if(Cg(n,1)===!1)return!1}else return Cg(e,1);return!0},WR=new Event("StateChange");var Zf,Eg;function D5(){return Eg||(Eg=1,Zf=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},""):"")}}),Zf}var M5=D5(),I5=ad(M5);function by(){const e=new Map,n=(r,i,c)=>{try{return e.get(r)(i,c)}catch{return e.set(r,I5(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 my=by(),QR=my("kol-icon"),eD=my("kol-icon","icon");let xb;const $s=[],U5=e=>{xb=e,$s.forEach(n=>{n(e)})},oD=(e,n=!0)=>(n&&typeof xb=="string"&&e(xb),$s.push(e),()=>{const r=$s.indexOf(e);r>=0&&$s.splice(r,1)});let Lg="kol-abbr",Og="kol-accordion",$g="kol-alert",Ng="kol-alert-wc",Bg="kol-avatar",Rg="kol-avatar-wc",Dg="kol-badge",Mg="kol-breadcrumb",Ig="kol-button-link",Ug="kol-button",Fg="kol-button-wc",Hg="kol-card",Kg="kol-card-wc",Vg="kol-combobox",qg="kol-details",Zg="kol-drawer",Pg="kol-form",Gg="kol-heading",Yg="kol-icon",Jg="kol-image",Xg="kol-input-checkbox",Wg="kol-input-color",Qg="kol-input-date",e_="kol-input-email",o_="kol-input-file",n_="kol-input-number",t_="kol-input-password",r_="kol-input-radio",a_="kol-input-range",l_="kol-input",i_="kol-input-text",c_="kol-kolibri",s_="kol-link-button",d_="kol-link",u_="kol-link-wc",f_="kol-modal",b_="kol-nav",m_="kol-pagination",h_="kol-pagination-wc",p_="kol-popover-wc",k_="kol-popover-button",v_="kol-popover-button-wc",g_="kol-progress",__="kol-quote",x_="kol-select",y_="kol-select-wc",w_="kol-single-select",z_="kol-skip-nav",j_="kol-spin",S_="kol-split-button",T_="kol-table-settings-wc",A_="kol-table-stateful",C_="kol-table-stateless",E_="kol-table-stateless-wc",L_="kol-tabs",O_="kol-textarea",yb="kol-toast-container",Pf="kol-tooltip-wc",$_="kol-tree-item",N_="kol-tree-item-wc",B_="kol-tree",R_="kol-tree-wc",D_="kol-version";const F5=e=>{Lg=e(Lg),Og=e(Og),$g=e($g),Ng=e(Ng),Bg=e(Bg),Rg=e(Rg),Dg=e(Dg),Mg=e(Mg),Ig=e(Ig),Ug=e(Ug),Fg=e(Fg),Hg=e(Hg),Kg=e(Kg),Vg=e(Vg),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_),j_=e(j_),S_=e(S_),T_=e(T_),A_=e(A_),C_=e(C_),E_=e(E_),L_=e(L_),O_=e(O_),yb=e(yb),e(Pf),Pf=e(Pf),$_=e($_),N_=e(N_),B_=e(B_),R_=e(R_),D_=e(D_)};var H5={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"},K5={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 M_=e=>Object.keys(e).reduce((n,r)=>(n[`kol-${r}`]=e[r],n),{}),V5=new Set([e=>e("en",M_(K5)),e=>e("de",M_(H5))]),q5=function(e,n,r){return e.split(n).join(r)};class Z5{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=q5(c,`{{${d}}}`,u)}):c=n,c}}let Ns;const nD=()=>Ns,P5=(e,n=V5)=>(Ns=new Z5(e),Ns.addTranslations(n),Ns);var G5={};let hy=!1,py;const Y5=async(e,n,r)=>{var i,c;const d=typeof process<"u"&&G5?"production":void 0;iy(r?.environment||d||"production"),P5((c=(i=r?.translation)===null||i===void 0?void 0:i.name)!==null&&c!==void 0?c:"de",r?.translations),r?.transformTagName&&F5(r?.transformTagName);const u=await H6(e,n,r);return hy=!0,py=r,Oo.info("Development mode active - Enhanced debugging features available"),u},J5=()=>hy,tD=()=>py;const bm=by(),rD=bm("kol-alert","closer")+" kol-close-button",aD=bm("kol-alert","content"),lD=bm("kol-alert","icon");var Ot;(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"})(Ot||(Ot={}));function X5(e,n){return new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!0,detail:n})}function iD(e,n,r){e.dispatchEvent(X5(n,r))}class Vr{constructor(n,r){var i;this.document=n,this.options=r,this.toastContainerElement=this.document.createElement(yb),this.document.body.prepend(this.toastContainerElement),!((i=this.options)===null||i===void 0)&&i.defaultVariant&&Oo.info("ToasterService: Default variant is deprecated. Use 'card' variant for all toasts instead.")}static getInstance(n,r){if(!J5())throw new Error("Toaster: Call KoliBri bootstrap/register method first.");let i=this.instances.get(n);return i||(i=new Vr(n,r),this.instances.set(n,i)),i}dispose(){const n=this.toastContainerElement;n?(this.toastContainerElement=void 0,n.remove()):Oo.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)}}Vr.instances=new Map;var hn;(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"})(hn||(hn={}));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 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 xe=new Map;xe.set(hn["Die Bundesregierung"],["Die","Bundesregierung"]);xe.set(hn["Bundesministerium der Finanzen"],["Bundesministerium","der Finanzen"]);xe.set(hn["Bundesministerium des Innern, für Bau und Heimat"],["Bundesministerium","des Inneren, für Bau","und Heimat"]);xe.set(hn["Auswärtiges Amt"],["Auswärtiges Amt"]);xe.set(hn["Bundesministerium für Wirtschaft und Energie"],["Bundesministerium","für Wirtschaft","und Energie"]);xe.set(hn["Bundesministerium der Justiz und für Verbraucherschutz"],["Bundesministerium","der Justiz und","für Verbraucherschutz"]);xe.set(hn["Bundesministerium für Arbeit und Soziales"],["Bundesministerium","für Arbeit und Soziales"]);xe.set(hn["Bundesministerium der Verteidigung"],["Bundesministerium","der Verteidigung"]);xe.set(hn["Bundesministerium für Bildung und Forschung"],["Bundesministerium","für Bildung","und Forschung"]);xe.set(hn["Bundesministerium für Ernährung und Landwirtschaft"],["Bundesministerium","für Ernährung","und Landwirtschaft"]);xe.set(hn["Bundesministerium für Familie, Senioren, Frauen und Jugend"],["Bundesministerium","für Familie, Senioren, Frauen","und Jugend"]);xe.set(hn["Bundesministerium für Gesundheit"],["Bundesministerium","für Gesundheit"]);xe.set(hn["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"],["Bundesministerium","für Umwelt, Naturschutz","und nukleare Sicherheit"]);xe.set(hn["Bundesministerium für Verkehr und digitale Infrastruktur"],["Bundesministerium","für Verkehr und","digitale Infrastruktur"]);xe.set(hn["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"],["Bundesministerium","für wirtschaftliche Zusammenarbeit","und Entwicklung"]);xe.set(Ke["Beschaffungsamt des Bundesministeriums des Innern"],["Beschaffungsamt","des Bundesministeriums","des Innern"]);xe.set(Ke["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"],[]);xe.set(Ke["Bundesamt für äußere Restitutionen"],[]);xe.set(Ke["Bundesamt für Bauwesen und Raumordnung"],[]);xe.set(Ke["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"],["Bundesamt","für Bevölkerungsschutz","und Katastrophenhilfe"]);xe.set(Ke["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"],["Bundesamt","für Familie und","zivilgesellschaftliche Aufgaben"]);xe.set(Ke["Bundesamt für Güterverkehr"],["Bundesamt","für Güterverkehr"]);xe.set(Ke["Bundesamt für Justiz"],["Bundesamt für","Justiz"]);xe.set(Ke["Bundesamt für Kartographie und Geodäsie"],["Bundesamt für","Kartographie und Geodäsie"]);xe.set(Ke["Bundesamt für kerntechnische Entsorgungssicherheit"],["Bundesamt für","kerntechnische","Entsorgungssicherheit"]);xe.set(Ke["Bundesamt für Migration und Flüchtlinge"],["Bundesamt","für Migration","und Flüchtlinge"]);xe.set(Ke["Bundesamt für Sicherheit in der Informationstechnik"],["Bundesamt","für Sicherheit in der","Informationstechnik"]);xe.set(Ke["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"],["Bundesamt für","Verbraucherschutz und","Lebensmittelsicherheit"]);xe.set(Ke["Bundesamt für Verfassungsschutz"],["Bundesamt für","Verfassungsschutz"]);xe.set(Ke["Bundesamt für Wirtschaft und Ausfuhrkontrolle"],["Bundesamt","für Wirtschaft","Ausfuhrkontrolle"]);xe.set(Ke["Bundesamt für zentrale Dienste und offene Vermögensfragen"],["Bundesamt","für zentrale Dienste und","offene Vermögensfragen"]);xe.set(Ke["Bundesanstalt für Verwaltungsdienstleistungen"],["Bundesanstalt","für Verwaltungsdienstleistungen"]);xe.set(Ke.Bundesarchiv,["Das","Bundesarchiv"]);xe.set(Ke["Bundesaufsichtsamt für Flugsicherung"],["Bundesaufsichtsamt","für Flugsicherung"]);xe.set(Ke.Bundesausgleichsamt,["Bundesausgleichsamt"]);xe.set(Ke.Bundeskartellamt,["Bundeskartellamt"]);xe.set(Ke.Bundeskriminalamt,["Bundeskriminalamt"]);xe.set(Ke.Bundesnachrichtendienst,["Bundesnachrichtendienst"]);xe.set(Ke["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"],["Bundesnetzagentur"]);xe.set(Ke.Bundespolizeipräsidium,["Bundespolizeipräsidium"]);xe.set(Ke["Bundesprüfstelle für jugendgefährdende Medien"],["Bundesprüfstelle","für jugendgefährdende","Medien"]);xe.set(Ke.Bundessortenamt,["Bundessortenamt"]);xe.set(Ke.Bundessprachenamt,["Bundessprachenamt"]);xe.set(Ke["Bundesamt für Soziale Sicherung"],["Bundesamt","für Soziale Sicherung"]);xe.set(Ke.Bundesverwaltungsamt,["Bundesverwaltungsamt"]);xe.set(Ke["Bundeszentralamt für Steuern"],["Bundeszentralamt","für Steuern"]);xe.set(Ke["Deutsches Patent- und Markenamt"],["Deutsches","Patent- und Markenamt"]);xe.set(Ke["Eisenbahn-Bundesamt"],["Eisenbahn-Bundesamt"]);xe.set(Ke.Generalzolldirektion,["Generalzolldirektion"]);xe.set(Ke["Militärischer Abschirmdienst"],["Bundesamt für den","Militärischen Abschirmdienst"]);xe.set(Ke["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"],["Zentrale Stelle","für Informationstechnik","im Sicherheitsbereich"]);xe.set(dr["Informationstechnikzentrum Bund"],["Informations","Technik","Zentrum Bund"]);xe.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"]);xe.set(dr["Bundesanstalt für Landwirtschaft und Ernährung"],["Bundesanstalt für","Landwirtschaft und Ernährung"]);xe.set(dr["Bundesanstalt Technisches Hilfswerk"],["Bundesanstalt","Technisches Hilfswerk"]);xe.set(dr["Bundesinstitut für Arzneimittel und Medizinprodukte"],["Bundesinstitut","für Arzneimittel","und Medizinprodukte"]);xe.set(dr["Bundesinstitut für Bevölkerungsforschung"],["Bundesinstitut","für Bevölkerungsforschung"]);xe.set(dr["Bundesinstitut für Sportwissenschaft"],["Bundesinstitut","für Sportwissenschaft"]);const W5="modulepreload",Q5=function(e){return"/"+e},I_={},me=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=Q5(p),p in I_)return;I_[p]=!0;const g=p.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const x=document.createElement("link");if(x.rel=g?"stylesheet":W5,g||(x.as="script"),x.crossOrigin="",x.href=p,m&&x.setAttribute("nonce",m),document.head.appendChild(x),g)return new Promise((z,N)=>{x.addEventListener("load",z),x.addEventListener("error",()=>N(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)})},ej="kolibri",_a={hydratedSelectorName:"hydrated",lazyLoad:!0,propChangeCallback:!0,slotRelocation:!0,state:!0,updatable:!0},cD={kolibriVersion:"3.1.2"};var oj=Object.defineProperty,nj=(e,n)=>{for(var r in n)oj(e,r,{get:n[r],enumerable:!0})},tj="http://www.w3.org/2000/svg",rj="http://www.w3.org/1999/xhtml",ky=(e=>(e.Undefined="undefined",e.Null="null",e.String="string",e.Number="number",e.SpecialNumber="number",e.Boolean="boolean",e.BigInt="bigint",e))(ky||{}),vy=(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))(vy||{}),Gf="type",Yf="value",wb="serialized:",aj=(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=lj(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 lj(e,n){for(;e;){const r=Object.getOwnPropertyDescriptor(e,n);if(r?.get)return r;e=Object.getPrototypeOf(e)}}var ot=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},sD=(e,n)=>{n&&(e.__stencil__getHostRef=()=>n,n.$lazyInstance$=e,n.$cmpMeta$.$flags$&512&&_a.state&&aj(e,n))},ij=(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},U_=(e,n)=>n in e,fe=(e,n)=>(0,console.error)(e,n),Jf=new Map,cj=(e,n,r)=>{const i=e.$tagName$.replace(/-/g,"_"),c=e.$lazyBundleId$;if(!c)return;const d=Jf.get(c);if(d)return d[i];{const u=m=>(Jf.set(c,m),m[i]);switch(c){case"kol-abbr":return me(()=>import("./kol-abbr.entry-BlQgUNkH.js"),__vite__mapDeps([0,1])).then(u,fe);case"kol-accordion":return me(()=>import("./kol-accordion.entry-DrkecTu0.js"),__vite__mapDeps([2,3,4,5,6,7,1,8,9,10])).then(u,fe);case"kol-alert":return me(()=>import("./kol-alert.entry-n-LaJLhu.js"),[]).then(u,fe);case"kol-avatar":return me(()=>import("./kol-avatar.entry-8tW-yVNf.js"),[]).then(u,fe);case"kol-badge":return me(()=>import("./kol-badge.entry-BhGsnIZ3.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 me(()=>import("./kol-breadcrumb.entry-Cnj1rEM0.js"),__vite__mapDeps([22,1,23,24])).then(u,fe);case"kol-button":return me(()=>import("./kol-button.entry-EFuMtzTt.js"),[]).then(u,fe);case"kol-button-link":return me(()=>import("./kol-button-link.entry-C-x3SjQ5.js"),[]).then(u,fe);case"kol-card":return me(()=>import("./kol-card.entry-wzw9nzRG.js"),[]).then(u,fe);case"kol-details":return me(()=>import("./kol-details.entry-DFceOZml.js"),__vite__mapDeps([25,3,4,5,6,7,1,8,9,10])).then(u,fe);case"kol-drawer":return me(()=>import("./kol-drawer.entry-C-ta79gR.js"),__vite__mapDeps([26,5,27,28,1,8,29])).then(u,fe);case"kol-form":return me(()=>import("./kol-form.entry-Bifplkno.js"),__vite__mapDeps([30,13,12,4,5,6])).then(u,fe);case"kol-heading":return me(()=>import("./kol-heading.entry-BqO2snjf.js"),__vite__mapDeps([31,12,4,5,13,6,1,19,10])).then(u,fe);case"kol-icon":return me(()=>import("./kol-icon.entry-CAd3hS00.js"),__vite__mapDeps([32,1,5])).then(u,fe);case"kol-image":return me(()=>import("./kol-image.entry-DE1cmSyl.js"),__vite__mapDeps([33,34])).then(u,fe);case"kol-input-checkbox":return me(()=>import("./kol-input-checkbox.entry-CfkiFtW0.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 me(()=>import("./kol-input-color.entry-Dpg-DM0A.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 me(()=>import("./kol-input-date.entry-BA6oWQTV.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 me(()=>import("./kol-input-email.entry-B0lYJhuS.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 me(()=>import("./kol-input-file.entry-CkMb4Aa2.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 me(()=>import("./kol-input-number.entry-C9Uz7ugl.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 me(()=>import("./kol-input-password.entry-CKDnNMKM.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 me(()=>import("./kol-input-radio.entry-Bvq2xuN_.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 me(()=>import("./kol-input-text.entry-CvPv_SpQ.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 me(()=>import("./kol-kolibri.entry-DwC2eseI.js"),__vite__mapDeps([66,14,13])).then(u,fe);case"kol-link":return me(()=>import("./kol-link.entry-B3v21TEB.js"),[]).then(u,fe);case"kol-link-button":return me(()=>import("./kol-link-button.entry-B-j63Onl.js"),[]).then(u,fe);case"kol-modal":return me(()=>import("./kol-modal.entry-Dng1owrN.js"),__vite__mapDeps([67,5,1,29])).then(u,fe);case"kol-nav":return me(()=>import("./kol-nav.entry-jMjLvsej.js"),__vite__mapDeps([68,41,1,5,13,9,23,24])).then(u,fe);case"kol-pagination":return me(()=>import("./kol-pagination.entry-COcyxfvN.js"),[]).then(u,fe);case"kol-popover-button":return me(()=>import("./kol-popover-button.entry-BKS0FWbh.js"),[]).then(u,fe);case"kol-progress":return me(()=>import("./kol-progress.entry-CdfEo3cm.js"),__vite__mapDeps([69,1])).then(u,fe);case"kol-quote":return me(()=>import("./kol-quote.entry-DxBanMdi.js"),__vite__mapDeps([70,18,1,5])).then(u,fe);case"kol-select":return me(()=>import("./kol-select.entry-CiuPcTMM.js"),[]).then(u,fe);case"kol-skip-nav":return me(()=>import("./kol-skip-nav.entry-2JkSlLKT.js"),__vite__mapDeps([71,1,23,24])).then(u,fe);case"kol-spin":return me(()=>import("./kol-spin.entry-7awF0wgN.js"),__vite__mapDeps([72,1,73,13,5])).then(u,fe);case"kol-split-button":return me(()=>import("./kol-split-button.entry-D2VVIMpP.js"),__vite__mapDeps([74,5,13])).then(u,fe);case"kol-table-stateful":return me(()=>import("./kol-table-stateful.entry-BZkDxJij.js"),__vite__mapDeps([75,13,76,1,77])).then(u,fe);case"kol-table-stateless":return me(()=>import("./kol-table-stateless.entry-BGgmumN4.js"),[]).then(u,fe);case"kol-tabs":return me(()=>import("./kol-tabs.entry-CuYaiFrU.js"),__vite__mapDeps([78,27,1,5,13,77])).then(u,fe);case"kol-textarea":return me(()=>import("./kol-textarea.entry-B2JQgArr.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 me(()=>import("./kol-toast-container.entry-DUI9j7tb.js"),__vite__mapDeps([81,13,9,12,4,5,6,19])).then(u,fe);case"kol-toolbar":return me(()=>import("./kol-toolbar.entry-Dwa8t314.js"),__vite__mapDeps([82,4,1,77,38])).then(u,fe);case"kol-tree":return me(()=>import("./kol-tree.entry-DUz2MvSS.js"),[]).then(u,fe);case"kol-tree-item":return me(()=>import("./kol-tree-item.entry-p5TwCnrJ.js"),[]).then(u,fe);case"kol-version":return me(()=>import("./kol-version.entry-B5Fm7U67.js"),__vite__mapDeps([83,1,13])).then(u,fe);case"kol-alert-wc":return me(()=>import("./kol-alert-wc.entry-DzRVowx7.js"),__vite__mapDeps([84,12,4,5,13,6,28,1,10])).then(u,fe);case"kol-avatar-wc":return me(()=>import("./kol-avatar-wc.entry-CpadrBFG.js"),__vite__mapDeps([85,14,34,1,13])).then(u,fe);case"kol-button-wc":return me(()=>import("./kol-button-wc.entry-BaAm3eD9.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 me(()=>import("./kol-card-wc.entry-Dr_zYsPt.js"),__vite__mapDeps([90,28,1,13,10,12,4,5,6,19,9])).then(u,fe);case"kol-combobox":return me(()=>import("./kol-combobox.entry-DahFb7-A.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 me(()=>import("./kol-input-range.entry-BsA0bzxZ.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 me(()=>import("./kol-link-wc.entry-BHI_sPLD.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 me(()=>import("./kol-pagination-wc.entry-D87Syo85.js"),__vite__mapDeps([96,88,1,42,27,13,9,23])).then(u,fe);case"kol-popover-button-wc":return me(()=>import("./kol-popover-button-wc.entry-DG-j1VTP.js"),__vite__mapDeps([97,98,5,89,27])).then(u,fe);case"kol-popover-wc":return me(()=>import("./kol-popover-wc.entry-Dn9H03F_.js"),__vite__mapDeps([99,98,27,73,5])).then(u,fe);case"kol-select-wc":return me(()=>import("./kol-select-wc.entry--0rvWXvM.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 me(()=>import("./kol-single-select.entry-DgWYHIHW.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 me(()=>import("./kol-table-settings-wc.entry-DYLzkbkt.js"),__vite__mapDeps([102,4,13])).then(u,fe);case"kol-table-stateless-wc":return me(()=>import("./kol-table-stateless-wc.entry-7ru8_gCj.js"),__vite__mapDeps([103,5,13,76,1,77,9,21])).then(u,fe);case"kol-tooltip-wc":return me(()=>import("./kol-tooltip-wc.entry-CdiVj6TD.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 me(()=>import("./kol-tree-item-wc.entry-COcYaJUx.js"),__vite__mapDeps([105,5,95,1,8,9])).then(u,fe);case"kol-tree-wc":return me(()=>import("./kol-tree-wc.entry-Byf_0HR3.js"),__vite__mapDeps([106,1])).then(u,fe);case"test-component":return me(()=>import("./test-component.entry-kW2eau8l.js"),[]).then(u,fe)}}return me(()=>import(`./${c}.entry.js`),[]).then(u=>(Jf.set(c,u),u[i]),u=>{fe(u,n.$hostElement$)})},Hs=new Map,gy=[],sj="r",dj="o",zb="s",uj="t",fj="c",Ki="s-id",jb="sty-id",F_="c-id",bj="{visibility:hidden}.hydrated{visibility:inherit}",_y="slot-fb{display:contents}slot-fb[hidden]{display:none}",H_="http://www.w3.org/1999/xlink",oo=typeof window<"u"?window:{},bo={$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)},mj=(()=>{var e;let n=!1;try{(e=oo.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){n=!0}}))}catch{}return n})(),hj=e=>Promise.resolve(e),mm=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),Sb=mm?!!oo.document&&Object.getOwnPropertyDescriptor(oo.document.adoptedStyleSheets,"length").writable:!1,xy=e=>hj().then(e),hm=e=>(e=typeof e,e==="object"||e==="function");function yy(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 pj=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),kj=class ha{static fromLocalValue(n){const r=n[Gf],i=Yf in n?n[Yf]: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=>ha.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?ha.fromLocalValue(p):p,x=ha.fromLocalValue(g);c.set(v,x)}return c;case"object":const d={};for(const[p,g]of i)d[p]=ha.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(ha.fromLocalValue(p));return h;case"symbol":return Symbol(i);default:throw new Error(`Unsupported type: ${r}`)}}static fromLocalValueArray(n){return n.map(r=>ha.fromLocalValue(r))}static isLocalValueObject(n){if(typeof n!="object"||n===null||!n.hasOwnProperty(Gf))return!1;const r=n[Gf];return Object.values({...ky,...vy}).includes(r)?r!=="null"&&r!=="undefined"?n.hasOwnProperty(Yf):!0:!1}},vj={};nj(vj,{err:()=>wy,map:()=>gj,ok:()=>Tb,unwrap:()=>_j,unwrapErr:()=>xj});var Tb=e=>({isOk:!0,isErr:!1,value:e}),wy=e=>({isOk:!1,isErr:!0,value:e});function gj(e,n){if(e.isOk){const r=n(e.value);return r instanceof Promise?r.then(i=>Tb(i)):Tb(r)}if(e.isErr){const r=e.value;return wy(r)}throw"should never get here"}var _j=e=>{if(e.isOk)return e.value;throw e.value},xj=e=>{if(e.isErr)return e.value;throw e.value};function yj(e){return typeof e!="string"||!e.startsWith(wb)?e:kj.fromLocalValue(JSON.parse(atob(e.slice(wb.length))))}var Ai;function wj(e){var n;const r=this.attachShadow({mode:"open"});Ai===void 0&&(Ai=(n=void 0)!=null?n:null),Ai&&(Sb?r.adoptedStyleSheets.push(Ai):r.adoptedStyleSheets=[...r.adoptedStyleSheets,Ai])}var zy=e=>{const n=Ur(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&jy(n,e.tagName).forEach(i=>{i.nodeType===1&&i.tagName==="SLOT-FB"&&(jj(i,pm(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&&Ur(i,"childNodes").length&&zy(i)}},zj=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 jy(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,...jy(d.childNodes,n,r)];return c}var jj=(e,n,r=!0)=>{const i=[];(r&&e["s-sr"]||!e["s-sr"])&&i.push(e);let c=e;for(;c=c.nextSibling;)pm(c)===n&&(r||!c["s-sr"])&&i.push(c);return i},K_=(e,n)=>e.nodeType===1?e.getAttribute("slot")===null&&n===""||e.getAttribute("slot")===n:e["s-sn"]===n?!0:n==="",Sj=(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=Ur(d,"appendChild");if(typeof i<"u"){c["s-oo"]=i;const m=Ur(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"]},pm=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Sy(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:zj(u.childNodes)).forEach(h=>{d===hm(h)&&s.push(h)}),r?s.filter(h=>h.nodeType===1):s}).bind(e);e.assignedElements=n(!0),e.assignedNodes=n(!1)}function Ur(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 $t=(e,n="")=>()=>{},Tj=(e,n)=>()=>{},xl=new WeakMap,Sy=(e,n,r)=>{let i=Us.get(e);bm&&r?(i=i||new CSSStyleSheet,typeof i=="string"?i=n:i.replaceSync(n)):i=n,Us.set(e,i)},Ty=(e,n,r)=>{var i;const s=pm(n,r),d=Us.get(s);if(!oo.document)return s;if(e=e.nodeType===11?e:oo.document,d)if(typeof d=="string"){e=e.head||e;let u=xl.get(e),m;if(u||xl.set(e,u=new Set),!u.has(s)){if(e.host&&(m=e.querySelector(`[${zb}="${s}"]`)))m.innerHTML=d;else{m=oo.document.createElement("style"),m.innerHTML=d;const h=(i=bo.$nonce$)!=null?i:xy(oo.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(bm){const p=new CSSStyleSheet;p.replaceSync(d),jb?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+=gy),u&&u.add(s)}}else e.adoptedStyleSheets.includes(d)||(jb?e.adoptedStyleSheets.push(d):e.adoptedStyleSheets=[...e.adoptedStyleSheets,d]);return s},Aj=e=>{const n=e.$cmpMeta$,r=e.$hostElement$,i=n.$flags$,s=$t("attachStyles",n.$tagName$),d=Ty(r.shadowRoot?r.shadowRoot:r.getRootNode(),n,e.$modeName$);i&10&&(r["s-sc"]=d,r.classList.add(d+"-h")),s()},pm=(e,n)=>"sc-"+(n&&e.$flags$&32?e.$tagName$+"-"+n:e.$tagName$),Cj=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Ej=()=>{if(!oo.document)return;const e=oo.document.querySelectorAll(`[${zb}]`);let n=0;for(;n<e.length;n++)Sy(e[n].getAttribute(zb),Cj(e[n].innerHTML),!0)},Ay=(e,n,...r)=>{let i=null,s=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"&&!mm(i))&&(i=String(i)),u&&m?h[h.length-1].$text$+=i:h.push(u?Tl(null,i):i),m=u)};if(p(r),n){n.key&&(s=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,$j);const g=Tl(e,null);return g.$attrs$=n,h.length>0&&(g.$children$=h),g.$key$=s,g.$name$=d,g},Tl=(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},Lj={},Oj=e=>e&&e.$tag$===Lj,$j={forEach:(e,n)=>e.map(K_).forEach(n),map:(e,n)=>e.map(K_).map(n).map(Nj)},K_=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Nj=e=>{if(typeof e.vtag=="function"){const r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),Ay(e.vtag,r,...e.vchildren||[])}const n=Tl(e.vtag,e.vtext);return n.$attrs$=e.vattrs,n.$children$=e.vchildren,n.$key$=e.vkey,n.$name$=e.vname,n},Bj=(e,n,r,i)=>{var s,d;const u=$t("hydrateClient",n),m=e.shadowRoot,h=[],p=[],g=[],v=m?[]:null,_=Tl(n,null);_.$elm$=e,oo.document&&(!bo.$orgLocNodes$||!bo.$orgLocNodes$.size)&&Ab(oo.document.body,bo.$orgLocNodes$=new Map),e[Fi]=r,e.removeAttribute(Fi),i.$vnode$=Tb(_,h,p,v,e,e,r,g);let z=0;const N=h.length;let S;for(z;z<N;z++){S=h[z];const Z=S.$hostId$+"."+S.$nodeId$,ee=bo.$orgLocNodes$.get(Z),se=S.$elm$;if(!m)se["s-hn"]=n.toUpperCase(),S.$tag$==="slot"&&(se["s-cr"]=e["s-cr"]);else if((s=S.$tag$)!=null&&s.toString().includes("-")&&S.$tag$!=="slot-fb"&&!S.$elm$.shadowRoot){const $e=ot(S.$elm$);if($e){const ce=pm($e.$cmpMeta$,S.$elm$.getAttribute("s-mode")),ne=oo.document.querySelector(`style[sty-id="${ce}"]`);ne&&e.shadowRoot.append(ne.cloneNode(!0))}}S.$tag$==="slot"&&(S.$name$=S.$elm$["s-sn"]||S.$elm$.name||null,S.$children$?(S.$flags$|=2,S.$elm$.childNodes.length||S.$children$.forEach($e=>{S.$elm$.appendChild($e.$elm$)})):S.$flags$|=1),ee&&ee.isConnected&&(ee.parentElement.shadowRoot&&ee["s-en"]===""&&ee.parentNode.insertBefore(se,ee.nextSibling),ee.parentNode.removeChild(ee),m||(se["s-oo"]=parseInt(S.$nodeId$))),ee&&!ee["s-id"]&&bo.$orgLocNodes$.delete(Z)}const O=[],E=g.length;let x=0,w,$,D,H;for(x;x<E;x++)if(w=g[x],!(!w||!w.length))for(D=w.length,$=0,$;$<D;$++){if(H=w[$],O[H.hostId]||(O[H.hostId]=bo.$orgLocNodes$.get(H.hostId)),!O[H.hostId])continue;const Z=O[H.hostId];Z.shadowRoot&&H.node.parentElement!==Z&&Z.appendChild(H.node),(!Z.shadowRoot||!m)&&(H.slot["s-cr"]||(H.slot["s-cr"]=Z["s-cr"],!H.slot["s-cr"]&&Z.shadowRoot?H.slot["s-cr"]=Z:H.slot["s-cr"]=(Z.__childNodes||Z.childNodes)[0]),Sj(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 Z=0;const ee=v.length;if(ee){for(Z;Z<ee;Z++){const se=v[Z];se&&m.appendChild(se)}Array.from(e.childNodes).forEach(se=>{typeof se["s-en"]!="string"&&typeof se["s-sn"]!="string"&&(se.nodeType===1&&se.slot&&se.hidden?se.removeAttribute("hidden"):(se.nodeType===8&&!se.nodeValue||se.nodeType===3&&!se.wholeText.trim())&&se.parentNode.removeChild(se))})}}i.$hostElement$=e,u()},Tb=(e,n,r,i,s,d,u,m=[])=>{let h,p,g,v;if(d.nodeType===1){if(h=d.getAttribute(U_),h&&(p=h.split("."),p[0]===u||p[0]==="0")){g=V_({$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(U_),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--)Tb(e,n,r,i,s,d.shadowRoot.childNodes[v],u,m);const _=d.__childNodes||d.childNodes;for(v=_.length-1;v>=0;v--)Tb(e,n,r,i,s,_[v],u,m)}else if(d.nodeType===8){if(p=d.nodeValue.split("."),p[1]===u||p[1]==="0"){if(h=p[0],g=V_({$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===uj)g.$elm$=P_(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===fj)g.$elm$=P_(d,8),g.$elm$&&g.$elm$.nodeType===8&&(n.push(g),d.remove());else if(g.$hostId$===u)if(h===wb){const _=d["s-sn"]=p[5]||"";q_(_,p[2],g,d,e,n,r,i,m)}else h===sj&&(i?d.remove():(s["s-cr"]=d,d["s-cn"]=!0))}}else if(e&&e.$tag$==="style"){const _=Tl(null,d.textContent);_.$elm$=d,_.$index$="0",e.$children$=[_]}else d.nodeType===3&&!d.wholeText.trim()&&!d["s-nr"]&&d.remove();return e},Ab=(e,n)=>{if(e.nodeType===1){const r=e[Fi]||e.getAttribute(Fi);r&&n.set(r,e);let i=0;if(e.shadowRoot)for(;i<e.shadowRoot.childNodes.length;i++)Ab(e.shadowRoot.childNodes[i],n);const s=e.__childNodes||e.childNodes;for(i=0;i<s.length;i++)Ab(s[i],n)}else if(e.nodeType===8){const r=e.nodeValue.split(".");r[0]===dj&&(n.set(r[1]+"."+r[2],e),e.nodeValue="",e["s-en"]=r[3])}},V_=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,s,d,u,m,h){i["s-sr"]=!0,r.$name$=e||null,r.$tag$="slot";const p=s?.$elm$?s.$elm$["s-id"]||s.$elm$.getAttribute("s-id"):"";if(m&&oo.document){const g=r.$elm$=oo.document.createElement(r.$tag$);r.$name$&&r.$elm$.setAttribute("name",e),s.$elm$.shadowRoot&&p&&p!==r.$hostId$?Ur(s.$elm$,"insertBefore")(g,Ur(s.$elm$,"children")[0]):Ur(Ur(i,"parentNode"),"insertBefore")(g,i),Z_(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$&&s.$elm$.shadowRoot;Z_(h,n,e,i,v?p:r.$hostId$),jy(i),v&&s.$elm$.insertBefore(g,s.$elm$.children[0])}d.push(r),u.push(r),s.$children$||(s.$children$=[]),s.$children$[r.$index$]=r}var Z_=(e,n,r,i,s)=>{var d,u;let m=i.nextSibling;if(e[n]=e[n]||[],!(!m||(d=m.nodeValue)!=null&&d.startsWith(wb+".")))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:s})),m=m?.nextSibling;while(m&&!((u=m.nodeValue)!=null&&u.startsWith(wb+".")))},P_=(e,n)=>{let r=e;do r=r.nextSibling;while(r&&(r.nodeType!==n||!r.nodeValue));return r},km=e=>{const n=pj(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${n}))(${n}\\b)`,"g")};km("::slotted");km(":host");km(":host-context");var Rj=e=>vy.map(n=>n(e)).find(n=>!!n),Dj=e=>vy.push(e),Cb=(e,n,r)=>typeof e=="string"&&e.startsWith(yb)?(e=yj(e),e):e!=null&&!mm(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,uD=e=>{var n;return(n=ot(e))==null?void 0:n.$hostElement$},Mj=(e,n,r)=>{const i=bo.ce(n,r);return e.dispatchEvent(i),i},G_=(e,n,r,i,s,d,u)=>{if(r===i)return;let m=I_(e,n),h=n.toLowerCase();if(n==="class"){const p=e.classList,g=Y_(r);let v=Y_(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):I_(oo,h)?n=h.slice(2):n=h[2]+n.slice(3),r||i){const p=n.endsWith(Cy);n=n.replace(Uj,""),r&&bo.rel(e,n,r,p),i&&bo.ael(e,n,i,p)}}else{const p=mm(i);if((m||p&&i!==null)&&!s)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(H_,n):e.removeAttribute(n)):(!m||d&4||s)&&!p&&e.nodeType===1&&(i=i===!0?"":i,g?e.setAttributeNS(H_,n,i):e.setAttribute(n,i))}},Ij=/\s/,Y_=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),!e||typeof e!="string"?[]:e.split(Ij)),Cy="Capture",Uj=new RegExp(Cy+"$"),Eb=(e,n,r,i)=>{const s=n.$elm$.nodeType===11&&n.$elm$.host?n.$elm$.host:n.$elm$,d=e&&e.$attrs$||{},u=n.$attrs$||{};for(const m of J_(Object.keys(d)))m in u||G_(s,m,d[m],void 0,r,n.$flags$,i);for(const m of J_(Object.keys(u)))G_(s,m,d[m],u[m],r,n.$flags$,i)};function J_(e){return e.includes("ref")?[...e.filter(n=>n!=="ref"),"ref"]:e}var Lb,rd,Ob=!1,Hs=!1,vm=!1,Mn=!1,Fs=(e,n,r)=>{var i;const s=n.$children$[r];let d=0,u,m,h;if(Ob||(vm=!0,s.$tag$==="slot"&&(s.$flags$|=s.$children$?2:1)),s.$text$!==null)u=s.$elm$=oo.document.createTextNode(s.$text$);else if(s.$flags$&1)u=s.$elm$=oo.document.createTextNode(""),Eb(null,s,Mn);else{if(Mn||(Mn=s.$tag$==="svg"),!oo.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=s.$elm$=oo.document.createElementNS(Mn?tj:rj,!Ob&&_a.slotRelocation&&s.$flags$&2?"slot-fb":s.$tag$),Mn&&s.$tag$==="foreignObject"&&(Mn=!1),Eb(null,s,Mn),s.$children$)for(d=0;d<s.$children$.length;++d)m=Fs(e,s,d),m&&u.appendChild(m);s.$tag$==="svg"?Mn=!1:u.tagName==="foreignObject"&&(Mn=!0)}return u["s-hn"]=rd,s.$flags$&3&&(u["s-sr"]=!0,u["s-cr"]=Lb,u["s-sn"]=s.$name$||"",u["s-rf"]=(i=s.$attrs$)==null?void 0:i.ref,jy(u),h=e&&e.$children$&&e.$children$[r],h&&h.$tag$===s.$tag$&&e.$elm$&&Ki(e.$elm$,!1)),u},Ki=(e,n)=>{bo.$flags$|=1;const r=Array.from(e.__childNodes||e.childNodes);for(let i=r.length-1;i>=0;i--){const s=r[i];s["s-hn"]!==rd&&s["s-ol"]&&(Hr(Vi(s).parentNode,s,Vi(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,vm=!0),n&&Ki(s,n)}bo.$flags$&=-2},Ey=(e,n,r,i,s,d)=>{let u=e["s-cr"]&&e["s-cr"].parentNode||e,m;for(u.shadowRoot&&u.tagName===rd&&(u=u.shadowRoot);s<=d;++s)i[s]&&(m=Fs(null,r,s),m&&(i[s].$elm$=m,Hr(u,m,Vi(n))))},Ly=(e,n,r)=>{for(let i=n;i<=r;++i){const s=e[i];if(s){const d=s.$elm$;$y(s),d&&(Hs=!0,d["s-ol"]?d["s-ol"].remove():Ki(d,!0),d.remove())}}},Hj=(e,n,r,i,s=!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],N=i[_],S,O;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(N==null)N=i[--_];else if(vs(g,z,s))vl(g,z,s),g=n[++d],z=i[++u];else if(vs(v,N,s))vl(v,N,s),v=n[--p],N=i[--_];else if(vs(g,N,s))(g.$tag$==="slot"||N.$tag$==="slot")&&Ki(g.$elm$.parentNode,!1),vl(g,N,s),Hr(e,g.$elm$,v.$elm$.nextSibling),g=n[++d],N=i[--_];else if(vs(v,z,s))(g.$tag$==="slot"||N.$tag$==="slot")&&Ki(v.$elm$.parentNode,!1),vl(v,z,s),Hr(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?(O=n[m],O.$tag$!==z.$tag$?S=Fs(n&&n[u],r,m):(vl(O,z,s),n[m]=void 0,S=O.$elm$),z=i[++u]):(S=Fs(n&&n[u],r,u),z=i[++u]),S&&Hr(Vi(g.$elm$).parentNode,S,Vi(g.$elm$))}d>p?Ey(e,i[_+1]==null?null:i[_+1].$elm$,r,i,u,_):u>_&&Ly(n,d,p)},vs=(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,Vi=e=>e&&e["s-ol"]||e,vl=(e,n,r=!1)=>{const i=n.$elm$=e.$elm$,s=e.$children$,d=n.$children$,u=n.$tag$,m=n.$text$;let h;m===null?(Mn=u==="svg"?!0:u==="foreignObject"?!1:Mn,Eb(e,n,Mn,r),s!==null&&d!==null?Hj(i,s,n,d,r):d!==null?(e.$text$!==null&&(i.textContent=""),Ey(i,null,n,d,0,d.length-1)):!r&&_a.updatable&&s!==null?Ly(s,0,s.length-1):r&&_a.updatable&&s!==null&&d===null&&(n.$children$=s),Mn&&u==="svg"&&(Mn=!1)):(h=i["s-cr"])?h.parentNode.textContent=m:e.$text$!==m&&(i.data=m)},tr=[],Oy=e=>{let n,r,i;const s=e.__childNodes||e.childNodes;for(const d of s){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(F_(n,u)){let m=tr.find(h=>h.$nodeToRelocate$===n);Hs=!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"],tr.push({$slotRefNode$:d,$nodeToRelocate$:n})),n["s-sr"]&&tr.map(h=>{F_(h.$nodeToRelocate$,n["s-sn"])&&(m=tr.find(p=>p.$nodeToRelocate$===n),m&&!h.$slotRefNode$&&(h.$slotRefNode$=m.$slotRefNode$))})}else tr.some(m=>m.$nodeToRelocate$===n)||tr.push({$nodeToRelocate$:n})}d.nodeType===1&&Oy(d)}},$y=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map($y)},Hr=(e,n,r)=>e?.insertBefore(n,r),Fj=(e,n,r=!1)=>{var i,s,d,u;const m=e.$hostElement$,h=e.$cmpMeta$,p=e.$vnode$||Tl(null,null),v=Oj(n)?n:Ay(null,null,n);if(rd=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,Ob=!!(h.$flags$&1)&&!(h.$flags$&128),Lb=m["s-cr"],Hs=!1,vl(p,v,r);{if(bo.$flags$|=1,vm){Oy(v.$elm$);for(const _ of tr){const z=_.$nodeToRelocate$;if(!z["s-ol"]&&oo.document){const N=oo.document.createTextNode("");N["s-nr"]=z,Hr(z.parentNode,z["s-ol"]=N,z)}}for(const _ of tr){const z=_.$nodeToRelocate$,N=_.$slotRefNode$;if(N){const S=N.parentNode;let O=N.nextSibling;{let w=(i=z["s-ol"])==null?void 0:i.previousSibling;for(;w;){let $=(s=w["s-nr"])!=null?s:null;if($&&$["s-sn"]===z["s-sn"]&&S===($.__parentNode||$.parentNode)){for($=$.nextSibling;$===z||$?.["s-sr"];)$=$?.nextSibling;if(!$||!$["s-nr"]){O=$;break}}w=w.previousSibling}}const E=z.__parentNode||z.parentNode,x=z.__nextSibling||z.nextSibling;(!O&&S!==E||x!==O)&&z!==O&&(!z["s-hn"]&&z["s-ol"]&&(z["s-hn"]=z["s-ol"].parentNode.nodeName),Hr(S,z,O),z.nodeType===1&&z.tagName!=="SLOT-FB"&&(z.hidden=(d=z["s-ih"])!=null?d:!1)),z&&typeof N["s-rf"]=="function"&&N["s-rf"](N)}else z.nodeType===1&&(r&&(z["s-ih"]=(u=z.hidden)!=null?u:!1),z.hidden=!0)}}Hs&&wy(v.$elm$),bo.$flags$&=-2,tr.length=0}Lb=void 0},Ny=(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()}))}},gm=(e,n)=>{if(e.$flags$&4){e.$flags$|=512;return}Ny(e,e.$ancestorComponent$);const r=()=>Kj(e,n);if(n){queueMicrotask(()=>{r()});return}return r()},Kj=(e,n)=>{const r=e.$hostElement$,i=$t("scheduleUpdate",e.$cmpMeta$.$tagName$),s=e.$lazyInstance$;if(!s)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])=>ar(s,u,m,r)),e.$queuedListeners$=void 0),e.$fetchedCbList$.length&&e.$fetchedCbList$.forEach(u=>u(r)),d=ar(s,"componentWillLoad",void 0,r)):d=ar(s,"componentWillUpdate",void 0,r),d=X_(d,()=>ar(s,"componentWillRender",void 0,r)),i(),X_(d,()=>qj(e,s,n))},X_=(e,n)=>Vj(e)?e.then(n).catch(r=>{console.error(r),n()}):n(),Vj=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",qj=async(e,n,r)=>{var i;const s=e.$hostElement$,d=$t("update",e.$cmpMeta$.$tagName$),u=s["s-rc"];r&&Aj(e);const m=$t("render",e.$cmpMeta$.$tagName$);Zj(e,n,s,r),u&&(u.map(h=>h()),s["s-rc"]=void 0),m(),d();{const h=(i=s["s-p"])!=null?i:[],p=()=>Pj(e);h.length===0?p():(Promise.all(h).then(p),e.$flags$|=4,h.length=0)}},Zj=(e,n,r,i)=>{try{n=n.render&&n.render(),e.$flags$|=2,Fj(e,n,i)}catch(s){ue(s,e.$hostElement$)}return null},Pj=e=>{const n=e.$cmpMeta$.$tagName$,r=e.$hostElement$,i=$t("postUpdate",n),s=e.$lazyInstance$,d=e.$ancestorComponent$;ar(s,"componentDidRender",void 0,r),e.$flags$&64?(ar(s,"componentDidUpdate",void 0,r),i()):(e.$flags$|=64,Gj(r),ar(s,"componentDidLoad",void 0,r),i(),e.$onReadyResolve$(r),d||By()),e.$onInstanceResolve$(r),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&_y(()=>gm(e,!1)),e.$flags$&=-517},By=e=>{var n;_y(()=>Mj(oo,"appload",{detail:{namespace:ej}})),(n=bo.$orgLocNodes$)!=null&&n.size&&bo.$orgLocNodes$.clear()},ar=(e,n,r,i)=>{if(e&&e[n])try{return e[n](r)}catch(s){ue(s,i)}},Gj=e=>{var n;return e.classList.add((n=_a.hydratedSelectorName)!=null?n:"hydrated")},Yj=(e,n)=>ot(e).$instanceValues$.get(n),Jf=(e,n,r,i)=>{const s=ot(e);if(!s)return;if(!s)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=s.$hostElement$,u=s.$instanceValues$.get(n),m=s.$flags$,h=s.$lazyInstance$;r=Cb(r,i.$members$[n][0]);const p=Number.isNaN(u)&&Number.isNaN(r),g=r!==u&&!p;if((!(m&8)||u===void 0)&&g&&(s.$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){ue(z,d)}})}if((m&18)===2){if(h.componentShouldUpdate&&h.componentShouldUpdate(r,u,n)===!1)return;gm(s,!1)}}},Ry=(e,n,r)=>{var i,s;const d=e.prototype;if(n.$members$||_a.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 Yj(this,m);const v=ot(this),_=v?v.$lazyInstance$:d;return _?_[m]:void 0}},configurable:!0,enumerable:!0}),Object.defineProperty(d,m,{set(v){const _=ot(this);if(_){if(g){typeof(h&32?this[m]:_.$hostElement$[m])>"u"&&_.$instanceValues$.get(m)&&(v=_.$instanceValues$.get(m)),g.apply(this,[Cb(v,h)]),v=h&32?this[m]:_.$hostElement$[m],Jf(this,m,v,n);return}{if((r&1)===0||(n.$members$[m][0]&4096)===0){Jf(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 N=_.$lazyInstance$[m];!_.$instanceValues$.get(m)&&N&&_.$instanceValues$.set(m,N),_.$lazyInstance$[m]=Cb(v,h),Jf(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=ot(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){bo.jmp(()=>{var v;const _=m.get(h),z=ot(this);if(this.hasOwnProperty(_)&&_a.lazyLoad&&(g=this[_],delete this[_]),d.hasOwnProperty(_)&&typeof this[_]=="number"&&this[_]==g)return;if(_==null){const O=z?.$flags$;if(z&&O&&!(O&8)&&O&128&&g!==p){const E=z.$lazyInstance$,x=(v=n.$watchers$)==null?void 0:v[h];x?.forEach(w=>{E[w]!=null&&E[w].call(E,g,p,h)})}return}const N=u.find(([O])=>O===_);N&&N[1][0]&4&&(g=!(g===null||g==="false"));const S=Object.getOwnPropertyDescriptor(d,_);g!=this[_]&&(!S.get||S.set)&&(this[_]=g)})},e.observedAttributes=Array.from(new Set([...Object.keys((s=n.$watchers$)!=null?s:{}),...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},Jj=async(e,n,r,i)=>{let s;if((n.$flags$&32)===0){if(n.$flags$|=32,r.$lazyBundleId$){const h=cj(r,n);if(h&&"then"in h){const g=Tj();s=await h,g()}else s=h;if(!s)throw new Error(`Constructor for "${r.$tagName$}#${n.$modeName$}" was not found`);s.isProxied||(r.$watchers$=s.watchers,r.$serializers$=s.serializers,r.$deserializers$=s.deserializers,Ry(s,r,2),s.isProxied=!0);const p=$t("createInstance",r.$tagName$);n.$flags$|=8;try{new s(n)}catch(g){ue(g,e)}n.$flags$&=-9,n.$flags$|=128,p(),$b(n.$lazyInstance$,e)}else{s=e.constructor;const h=e.localName;customElements.whenDefined(h).then(()=>n.$flags$|=128)}if(s&&s.style){let h;typeof s.style=="string"?h=s.style:typeof s.style!="string"&&(n.$modeName$=Rj(e),n.$modeName$&&(h=s.style[n.$modeName$]));const p=pm(r,n.$modeName$);if(!Us.has(p)){const g=$t("registerStyles",r.$tagName$);Sy(p,h,!!(r.$flags$&1)),g()}}}const d=n.$ancestorComponent$,u=()=>gm(n,!0);d&&d["s-rc"]?d["s-rc"].push(u):u()},$b=(e,n)=>{ar(e,"connectedCallback",void 0,n)},Xj=e=>{if((bo.$flags$&1)===0){const n=ot(e);if(!n)return;const r=n.$cmpMeta$,i=$t("connectedCallback",r.$tagName$);if(n.$flags$&1)Dy(e,n,r.$listeners$),n?.$lazyInstance$?$b(n.$lazyInstance$,e):n?.$onReadyPromise$&&n.$onReadyPromise$.then(()=>$b(n.$lazyInstance$,e));else{n.$flags$|=1;let s;if(s=e.getAttribute(Fi),s){if(r.$flags$&1){const d=Ty(e.shadowRoot,r,e.getAttribute("s-mode"));e.classList.remove(d+"-h",d+"-s")}Bj(e,r.$tagName$,s,n)}s||r.$flags$&12&&Wj(e);{let d=e;for(;d=d.parentNode||d.host;)if(d.nodeType===1&&d.hasAttribute("s-id")&&d["s-p"]||d["s-p"]){Ny(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}}),Jj(e,n,r)}i()}},Wj=e=>{if(!oo.document)return;const n=e["s-cr"]=oo.document.createComment("");n["s-cn"]=!0,Hr(e,n,e.firstChild)},W_=(e,n)=>{ar(e,"disconnectedCallback",void 0,n||e)},Qj=async e=>{if((bo.$flags$&1)===0){const n=ot(e);n?.$rmListeners$&&(n.$rmListeners$.map(r=>r()),n.$rmListeners$=void 0),n?.$lazyInstance$?W_(n.$lazyInstance$,e):n?.$onReadyPromise$&&n.$onReadyPromise$.then(()=>W_(n.$lazyInstance$,e))}xl.has(e)&&xl.delete(e),e.shadowRoot&&xl.has(e.shadowRoot)&&xl.delete(e.shadowRoot)},eS=(e,n={})=>{var r;if(!oo.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const i=$t(),s=[],d=n.exclude||[],u=oo.customElements,m=oo.document.head,h=m.querySelector("meta[charset]"),p=oo.document.createElement("style"),g=[];let v,_=!0;Object.assign(bo,n),bo.$resourcesUrl$=new URL(n.resourcesUrl||"./",oo.document.baseURI).href,bo.$flags$|=2,Ej();let z=!1;if(e.map(N=>{N[1].map(S=>{var O,E,x;const w={$flags$:S[0],$tagName$:S[1],$members$:S[2],$listeners$:S[3]};w.$flags$&4&&(z=!0),w.$members$=S[2],w.$listeners$=S[3],w.$attrsToReflect$=[],w.$watchers$=(O=S[4])!=null?O:{},w.$serializers$=(E=S[5])!=null?E:{},w.$deserializers$=(x=S[6])!=null?x:{};const $=n.transformTagName?n.transformTagName(w.$tagName$):w.$tagName$,D=class extends HTMLElement{constructor(H){if(super(H),this.hasRegisteredEventListeners=!1,H=this,ij(H,w),w.$flags$&1){if(!H.shadowRoot)wj.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=ot(this);H&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Dy(this,H,w.$listeners$)),v&&(clearTimeout(v),v=null),_?g.push(this):bo.jmp(()=>Xj(this)))}disconnectedCallback(){bo.jmp(()=>Qj(this)),bo.raf(()=>{var H;const Z=ot(this);if(!Z)return;const ee=g.findIndex(se=>se===this);ee>-1&&g.splice(ee,1),((H=Z?.$vnode$)==null?void 0:H.$elm$)instanceof Node&&!Z.$vnode$.$elm$.isConnected&&delete Z.$vnode$.$elm$})}componentOnReady(){var H;return(H=ot(this))==null?void 0:H.$onReadyPromise$}};w.$lazyBundleId$=N[0],!d.includes($)&&!u.get($)&&(s.push($),u.define($,Ry(D,w,1)))})}),s.length>0&&(z&&(p.textContent+=gy),p.textContent+=s.sort()+bj,p.innerHTML.length)){p.setAttribute("data-styles","");const N=(r=bo.$nonce$)!=null?r:xy(oo.document);N!=null&&p.setAttribute("nonce",N),m.insertBefore(p,h?h.nextSibling:m.firstChild)}_=!1,g.length?g.map(N=>N.connectedCallback()):bo.jmp(()=>v=setTimeout(By,30)),i()},fD=(e,n)=>n,Dy=(e,n,r,i)=>{r&&oo.document&&r.map(([s,d,u])=>{const m=nS(oo.document,e,s),h=oS(n,u),p=tS(s);bo.ael(m,d,h,p),(n.$rmListeners$=n.$rmListeners$||[]).push(()=>bo.rel(m,d,h,p))})},oS=(e,n)=>r=>{var i;try{e.$flags$&256?(i=e.$lazyInstance$)==null||i[n](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([n,r])}catch(s){ue(s,e.$hostElement$)}},nS=(e,n,r)=>r&8?oo:n,tS=e=>mj?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,rS=()=>{Dj(e=>{try{e.shadowRoot instanceof ShadowRoot&&e5(e,I6(e))}catch{}return"default"}),me(()=>import("./devtools-x5A7ew63-D2jJoaSE.js"),__vite__mapDeps([107,9])).then(e=>{typeof e=="object"&&e!==null&&typeof e.initialize=="function"&&e.initialize()}).catch(e=>{Oo.error(e)})};const aS=rS;const lS=async(e,n)=>{if(!(typeof window>"u"))return await aS(),eS(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 Nb={};function iS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $s={exports:{}},cS=$s.exports,Q_;function sS(){return Q_||(Q_=1,(function(e){(function(n,r){e.exports?e.exports=r():n.log=r()})(cS,function(){var n=function(){},r="undefined",i=typeof window!==r&&typeof window.navigator!==r&&/Trident\/|MSIE /.test(window.navigator.userAgent),s=["trace","debug","info","warn","error"],d={},u=null;function m(S,O){var E=S[O];if(typeof E.bind=="function")return E.bind(S);try{return Function.prototype.bind.call(E,S)}catch{return function(){return Function.prototype.apply.apply(E,[S,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(S){return S==="debug"&&(S="log"),typeof console===r?!1:S==="trace"&&i?h:console[S]!==void 0?m(console,S):console.log!==void 0?m(console,"log"):n}function g(){for(var S=this.getLevel(),O=0;O<s.length;O++){var E=s[O];this[E]=O<S?n:this.methodFactory(E,S,this.name)}if(this.log=this.debug,typeof console===r&&S<this.levels.SILENT)return"No console available for logging"}function v(S){return function(){typeof console!==r&&(g.call(this),this[S].apply(this,arguments))}}function _(S,O,E){return p(S)||v.apply(this,arguments)}function z(S,O){var E=this,x,w,$,D="loglevel";typeof S=="string"?D+=":"+S:typeof S=="symbol"&&(D=void 0);function H(ce){var ne=(s[ce]||"silent").toUpperCase();if(!(typeof window===r||!D)){try{window.localStorage[D]=ne;return}catch{}try{window.document.cookie=encodeURIComponent(D)+"="+ne+";"}catch{}}}function Z(){var ce;if(!(typeof window===r||!D)){try{ce=window.localStorage[D]}catch{}if(typeof ce===r)try{var ne=window.document.cookie,we=encodeURIComponent(D),De=ne.indexOf(we+"=");De!==-1&&(ce=/^([^;]+)/.exec(ne.slice(De+we.length+1))[1])}catch{}return E.levels[ce]===void 0&&(ce=void 0),ce}}function ee(){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 se(ce){var ne=ce;if(typeof ne=="string"&&E.levels[ne.toUpperCase()]!==void 0&&(ne=E.levels[ne.toUpperCase()]),typeof ne=="number"&&ne>=0&&ne<=E.levels.SILENT)return ne;throw new TypeError("log.setLevel() called with invalid level: "+ce)}E.name=S,E.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},E.methodFactory=O||_,E.getLevel=function(){return $??w??x},E.setLevel=function(ce,ne){return $=se(ce),ne!==!1&&H($),g.call(E)},E.setDefaultLevel=function(ce){w=se(ce),Z()||E.setLevel(ce,!1)},E.resetLevel=function(){$=null,ee(),g.call(E)},E.enableAll=function(ce){E.setLevel(E.levels.TRACE,ce)},E.disableAll=function(ce){E.setLevel(E.levels.SILENT,ce)},E.rebuild=function(){if(u!==E&&(x=se(u.getLevel())),g.call(E),u===E)for(var ce in d)d[ce].rebuild()},x=se(u?u.getLevel():"WARN");var $e=Z();$e!=null&&($=se($e)),g.call(E)}u=new z,u.getLogger=function(O){if(typeof O!="symbol"&&typeof O!="string"||O==="")throw new TypeError("You must supply a name when creating a logger.");var E=d[O];return E||(E=d[O]=new z(O,u.methodFactory)),E};var N=typeof window!==r?window.log:void 0;return u.noConflict=function(){return typeof window!==r&&window.log===u&&(window.log=N),u},u.getLoggers=function(){return d},u.default=u,u})})($s)),$s.exports}sS();const dS=(e,n)=>r=>r(e,n),uS=(e,n)=>r=>r(e,n,{append:!1}),fS=()=>{const e=typeof process<"u"&&Nb?Nb:{},n=e.NODE_ENV==="test",r="VITEST"in e,i="JEST_WORKER_ID"in e,s="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||s||d||u||m||h},Un={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:fS(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const e={};for(const[r,i]of Un.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,s]])=>[r,{"avg (ms)":parseFloat(i.toFixed(2)),count:s}]))),e}}},My=new Set,bS=/--[^;]+/g,mS=/:/,hS=typeof MutationObserver<"u";let Iy=()=>{Math.min(25+Math.log2(Un.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250)};const pS=(e,n)=>{let r=n.match(bS);if(Array.isArray(r)){r=r.filter(s=>mS.test(s));const i=document.createElement("style");i.innerHTML=`.${e} {${r.join(";")}}`,document.querySelector("head")?.appendChild(i)}My.add(e)},Xf=(e,n)=>{const r=Un.A11yUi.THEMES.get(e);return r instanceof Map&&r.has(n)?r.get(n):""},kS=e=>{for(const n of Array.from(e.childNodes))if(n instanceof HTMLStyleElement&&n.tagName==="STYLE"&&n.dataset.themingFallback===void 0)e.removeChild(n);else break},vS=(e,n)=>{try{if(Un.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const r=[];n.forEach(i=>{const s=new CSSStyleSheet;s.replaceSync(i),r.push(s)}),e.adoptedStyleSheets=r}catch{[...n].reverse().forEach((r,i)=>{if(typeof r!="string"||r.length===0)return;const s=document.createElement("style");switch(s.dataset.themingFallback="",i){case 4:s.dataset.themingBaseA11y="";break;case 3:s.dataset.themingBaseGlobal="";break;case 2:s.dataset.themingBaseComponent="";break;case 1:s.dataset.themingCustomGlobal="";break;case 0:s.dataset.themingCustomComponent="";break;default:s.dataset.themingUnknown="";break}s.innerHTML=r,e.insertBefore(s,e.firstChild)})}},gS=(e,n,r)=>{if(r!==!1){const i=[...Array.from(e.childNodes).filter(d=>d instanceof HTMLStyleElement&&d.tagName==="STYLE")];let s;try{s=[...Array.from(e.adoptedStyleSheets)]}catch{s=[]}r?.mode==="before"?(i.reverse().forEach(d=>n.unshift(d.innerHTML)),s.reverse().forEach(d=>n.unshift(Array.from(d.cssRules).map(u=>u.cssText).join("")))):r?.mode==="after"&&(i.forEach(d=>n.push(d.innerHTML)),s.forEach(d=>n.push(Array.from(d.cssRules).map(u=>u.cssText).join(""))))}},_S=(e,n,r)=>{const i=n.name||"default";let s;try{if(e.shadowRoot===null)throw new Error("ShadowRoot is null");s=e.shadowRoot}catch{s=e}if(Un.A11yUi.CSS_STYLE_CACHE.get(i)?.has(e.tagName))e1(e,s,Un.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName),r);else{const d=Xf(i,"PROPERTIES"),u=Xf(i,"GLOBAL"),m=Xf(i,e.tagName);My.has(i)===!1&&pS(i,u);const h=[d,u,m];gS(s,h,n.encroachCss),n.cache===!0&&(Un.A11yUi.CSS_STYLE_CACHE.has(i)===!1&&Un.A11yUi.CSS_STYLE_CACHE.set(i,new Map),Un.A11yUi.CSS_STYLE_CACHE.get(i)?.set(e.tagName,h)),e1(e,s,h,r)}},e1=(e,n,r,i)=>{const s=performance.now();if(kS(n),vS(n,r),Uy(e),i(),Un.A11yUi.PERFORMANCE_MEASURES.has(e.tagName)){const d=Un.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);d.count+=1,d.totalTime+=performance.now()-s}else Un.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:performance.now()-s})},xS=e=>{const n=Un.A11yUi.STYLING_TASK_QUEUE.get(e);if(n){const{resetCss:r,themeDetails:i}=n;_S(e,i,r),Uy(e)}},yS={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},wS=hS?new MutationObserver((e,n)=>{for(const r of e){const i=r.target;i.classList.contains("hydrated")&&(xS(i),n.observe(i,yS))}}):null;wS&&(Iy=()=>{});const Uy=e=>{Un.A11yUi.STYLING_TASK_QUEUE.delete(e),Iy()};class zS{Prefix;Key;Tag;createTheme=(n,r)=>uS(n,r);createTranslation=(n,r)=>dS(n,r);constructor(n,r,i){this.Prefix=n,this.Key=Object.getOwnPropertyNames(r),this.Tag=Object.getOwnPropertyNames(i)}}var Bb;(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"})(Bb||(Bb={}));var Rb;(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"})(Rb||(Rb={}));const Db=["development","production","test"];let Mb="production";const jS=e=>{try{if(Db.includes(e))Mb=e;else throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${Db.join(", ")}.`)}catch{Mb="production"}},SS=()=>{try{const e=typeof process<"u"&&Nb?"production":void 0;if(e&&Db.includes(e))return e}catch{}return"production"};jS(SS());const TS=()=>Mb==="development",AS="color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000",ml=e=>Array.isArray(e)?e:[e],o1=e=>`%c${e}`,CS=(e,n)=>typeof n=="string"&&n.length>0?`${o1(e)} | ${n}`:o1(e),hl=(e,n)=>[CS(e,n?.classifier),`${AS};${n?.overwriteStyle||""}`],Ai=e=>TS()||e===!0;class ES{constructor(n){this.label=n}debug(n,r){Ai(r?.forceLog)&&console.debug(...hl(this.label,r),...ml(n))}info(n,r){Ai(r?.forceLog)&&console.info(...hl(this.label,r),...ml(n))}trace(n,r){Ai(r?.forceLog)&&console.trace(...hl(this.label,r),...ml(n))}warn(n,r){Ai(r?.forceLog)&&console.warn(...hl(this.label,r),...ml(n))}error(n,r){console.error(...hl(this.label,r),...ml(n))}throw(n,r){if(Ai(r?.forceLog))throw new Error(...hl(this.label,r),...ml(n))}}const LS=new ES("KoliBri"),n1=new Set,OS=(e,n)=>{n1.has(e)===!1&&(n1.add(e),LS.debug([e].concat([]),{classifier:"💻 dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))};OS("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");var Mr={exports:{}},t1;function $S(){if(t1)return Mr.exports;t1=1,Mr.exports=e,Mr.exports.arr=e,Mr.exports.obj=n,Mr.exports.css=r,Mr.exports.hex=i,Mr.exports.num=s;function e(x){var w=d(x);return w.length==3?w.concat(255):(w[3]=Math.round(w[3]),w)}function n(x){var w=d(x);return{r:w[0],g:w[1],b:w[2],a:w.length==3?255:Math.round(w[3])}}function r(x){var w=d(x);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(x){var Z=d(x);Z.length==3&&Z.push(255);var w=Z[3]==255,$=u(Z[0]),D=u(Z[1]),H=u(Z[2]),Z=u(Math.round(Z[3])),ee=m($,D,H,Z);return w?ee?"#"+$.charAt(0)+D.charAt(0)+H.charAt(0):"#"+$+D+H:ee?"#"+$.charAt(0)+D.charAt(0)+H.charAt(0)+Z.charAt(0):"#"+$+D+H+Z}function s(x){var w=d(x);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(x){return typeof x=="string"?(x=x.toLowerCase(),h(x)||g(x)||v(x)||O(x)||E(x)||[0,0,0,255]):z(x)||N(x)||S(x)||[0,0,0,255]}function u(x){var w=x.toString(16);return w.length==1?"0"+w:w}function m(x,w,$,D){var H=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return H.indexOf(x)!=-1&&H.indexOf(w)!=-1&&H.indexOf($)!=-1&&H.indexOf(D)!=-1}function h(x){if(x=="red")return[255,0,0];if(x=="green")return[0,255,0];if(x=="blue")return[0,0,255];if(x=="black")return[0,0,0];if(x=="white")return[255,255,255];if(x=="cyan")return[0,255,255];if(x=="gray")return[128,128,128];if(x=="grey")return[128,128,128];if(x=="magenta")return[255,0,255];if(x=="pink")return[255,0,255];if(x=="yellow")return[255,255,0]}function p(x){return x.length==1?parseInt(x+x,16):parseInt(x,16)}function g(x){var w=x.replace(/^#/,""),$=w.length;if($==3||$==4){var D=p(w[0]),H=p(w[1]),Z=p(w[2]),ee=$==3?255:p(w[3]);return isNaN(D)||isNaN(H)||isNaN(Z)||isNaN(ee)?void 0:[D,H,Z,ee]}}function v(x){var w=x.replace(/^#/,""),$=w.length;if($==6||$==8){var D=p(w.slice(0,2)),H=p(w.slice(2,4)),Z=p(w.slice(4,6)),ee=$==6?255:p(w.slice(6,8));return isNaN(D)||isNaN(H)||isNaN(Z)||isNaN(ee)?void 0:[D,H,Z,ee]}}function _(x,w){return typeof x!="number"||w===!0&&Math.floor(x)!==x?-1:x>=0&&x<=255?x:-1}function z(x){if(Object.prototype.toString.call(x)==="[object Object]"&&Object.getPrototypeOf(x)===Object.getPrototypeOf({})){var w=_(x.r!=null?x.r:x.red!=null?x.red:0,!0),$=_(x.g!=null?x.g:x.green!=null?x.green:0,!0),D=_(x.b!=null?x.b:x.blue!=null?x.blue:0,!0),H=_(x.a!=null?x.a:x.alpha!=null?x.alpha:255,!0);if(w!=-1&&$!=-1&&D!=-1&&H!=-1)return[w,$,D,H]}}function N(x){if(Array.isArray(x)&&(x.length==3||x.length==4)){var w=_(x[0],!0),$=_(x[1],!0),D=_(x[2],!0),H=_(x[3]!=null?x[3]:255,!0);if(w!=-1&&$!=-1&&D!=-1&&H!=-1)return[w,$,D,H]}}function S(x){if(typeof x=="number"&&Math.floor(x)==x&&x<=4294967295&&x>=0){var w=x>>24&255,$=x>>16&255,D=x>>8&255,H=x&255;return[$,D,H,w]}}function O(x){if(x.substr(0,4)=="rgb("){x=x.match(/^rgb\(([^)]+)\)/)[1];var w=x.split(/ *, */).map(Number),$=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0);if($!=-1&&D!=-1&&H!=-1)return[$,D,H,255]}}function E(x){if(x.substr(0,5)=="rgba("){x=x.match(/^rgba\(([^)]+)\)/)[1];var w=x.split(/ *, */).map(Number),$=_(w[0],!0),D=_(w[1],!0),H=_(w[2],!0),Z=_(w[3]*255);if($!=-1&&D!=-1&&H!=-1&&Z!=-1)return[$,D,H,Z]}}return Mr.exports}$S();var Wf={},r1;function NS(){return r1||(r1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.querySelectorAll=void 0;const n=(i,s)=>{s.forEach(d=>{i.has(d)===!1&&i.add(d)})},r=(i,s=document)=>{if(s instanceof Document||s instanceof HTMLElement||s instanceof ShadowRoot){const d=new Set;n(d,s.querySelectorAll(i));const u=s.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})(Wf)),Wf}NS();var Qf={},a1;function BS(){return a1||(a1=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 s=i.querySelector(r);if(s===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?s=(0,e.querySelector)(r,m):s=(0,e.querySelector)(r,d[u]),s!==null)break}}return s}else throw new Error("The parameter document for the method querySelector is not type of Document, HTMLElement or ShadowRoot.")};e.querySelector=n})(Qf)),Qf}BS();new Event("StateChange");var eb,l1;function RS(){return l1||(l1=1,eb=function(n){return function(r,i){if(!r)return n;var s;typeof r=="string"?s=r:i=r;var d=n;return s&&(d+="__"+s),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},""):"")}}),eb}var DS=RS(),MS=iS(DS);function Hy(){const e=new Map,n=(r,i,s)=>{try{return e.get(r)(i,s)}catch{return e.set(r,MS(r)).get(r)(i,s)}};return n.forBlock=r=>{const i=(s,d)=>n(r,s,d);return i.forElement=s=>d=>n(r,s,d),i},n}const Fy=Hy();Fy("kol-icon");Fy("kol-icon","icon");const _m=Hy();_m("kol-alert","closer")+"";_m("kol-alert","content");_m("kol-alert","icon");var i1;(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"})(i1||(i1={}));const xm=new zS("kol",Bb,Rb);var hn;(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"})(hn||(hn={}));var Ve;(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"})(Ve||(Ve={}));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 ye=new Map;ye.set(hn["Die Bundesregierung"],["Die","Bundesregierung"]);ye.set(hn["Bundesministerium der Finanzen"],["Bundesministerium","der Finanzen"]);ye.set(hn["Bundesministerium des Innern, für Bau und Heimat"],["Bundesministerium","des Inneren, für Bau","und Heimat"]);ye.set(hn["Auswärtiges Amt"],["Auswärtiges Amt"]);ye.set(hn["Bundesministerium für Wirtschaft und Energie"],["Bundesministerium","für Wirtschaft","und Energie"]);ye.set(hn["Bundesministerium der Justiz und für Verbraucherschutz"],["Bundesministerium","der Justiz und","für Verbraucherschutz"]);ye.set(hn["Bundesministerium für Arbeit und Soziales"],["Bundesministerium","für Arbeit und Soziales"]);ye.set(hn["Bundesministerium der Verteidigung"],["Bundesministerium","der Verteidigung"]);ye.set(hn["Bundesministerium für Bildung und Forschung"],["Bundesministerium","für Bildung","und Forschung"]);ye.set(hn["Bundesministerium für Ernährung und Landwirtschaft"],["Bundesministerium","für Ernährung","und Landwirtschaft"]);ye.set(hn["Bundesministerium für Familie, Senioren, Frauen und Jugend"],["Bundesministerium","für Familie, Senioren, Frauen","und Jugend"]);ye.set(hn["Bundesministerium für Gesundheit"],["Bundesministerium","für Gesundheit"]);ye.set(hn["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"],["Bundesministerium","für Umwelt, Naturschutz","und nukleare Sicherheit"]);ye.set(hn["Bundesministerium für Verkehr und digitale Infrastruktur"],["Bundesministerium","für Verkehr und","digitale Infrastruktur"]);ye.set(hn["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"],["Bundesministerium","für wirtschaftliche Zusammenarbeit","und Entwicklung"]);ye.set(Ve["Beschaffungsamt des Bundesministeriums des Innern"],["Beschaffungsamt","des Bundesministeriums","des Innern"]);ye.set(Ve["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"],[]);ye.set(Ve["Bundesamt für äußere Restitutionen"],[]);ye.set(Ve["Bundesamt für Bauwesen und Raumordnung"],[]);ye.set(Ve["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"],["Bundesamt","für Bevölkerungsschutz","und Katastrophenhilfe"]);ye.set(Ve["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"],["Bundesamt","für Familie und","zivilgesellschaftliche Aufgaben"]);ye.set(Ve["Bundesamt für Güterverkehr"],["Bundesamt","für Güterverkehr"]);ye.set(Ve["Bundesamt für Justiz"],["Bundesamt für","Justiz"]);ye.set(Ve["Bundesamt für Kartographie und Geodäsie"],["Bundesamt für","Kartographie und Geodäsie"]);ye.set(Ve["Bundesamt für kerntechnische Entsorgungssicherheit"],["Bundesamt für","kerntechnische","Entsorgungssicherheit"]);ye.set(Ve["Bundesamt für Migration und Flüchtlinge"],["Bundesamt","für Migration","und Flüchtlinge"]);ye.set(Ve["Bundesamt für Sicherheit in der Informationstechnik"],["Bundesamt","für Sicherheit in der","Informationstechnik"]);ye.set(Ve["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"],["Bundesamt für","Verbraucherschutz und","Lebensmittelsicherheit"]);ye.set(Ve["Bundesamt für Verfassungsschutz"],["Bundesamt für","Verfassungsschutz"]);ye.set(Ve["Bundesamt für Wirtschaft und Ausfuhrkontrolle"],["Bundesamt","für Wirtschaft","Ausfuhrkontrolle"]);ye.set(Ve["Bundesamt für zentrale Dienste und offene Vermögensfragen"],["Bundesamt","für zentrale Dienste und","offene Vermögensfragen"]);ye.set(Ve["Bundesanstalt für Verwaltungsdienstleistungen"],["Bundesanstalt","für Verwaltungsdienstleistungen"]);ye.set(Ve.Bundesarchiv,["Das","Bundesarchiv"]);ye.set(Ve["Bundesaufsichtsamt für Flugsicherung"],["Bundesaufsichtsamt","für Flugsicherung"]);ye.set(Ve.Bundesausgleichsamt,["Bundesausgleichsamt"]);ye.set(Ve.Bundeskartellamt,["Bundeskartellamt"]);ye.set(Ve.Bundeskriminalamt,["Bundeskriminalamt"]);ye.set(Ve.Bundesnachrichtendienst,["Bundesnachrichtendienst"]);ye.set(Ve["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"],["Bundesnetzagentur"]);ye.set(Ve.Bundespolizeipräsidium,["Bundespolizeipräsidium"]);ye.set(Ve["Bundesprüfstelle für jugendgefährdende Medien"],["Bundesprüfstelle","für jugendgefährdende","Medien"]);ye.set(Ve.Bundessortenamt,["Bundessortenamt"]);ye.set(Ve.Bundessprachenamt,["Bundessprachenamt"]);ye.set(Ve["Bundesamt für Soziale Sicherung"],["Bundesamt","für Soziale Sicherung"]);ye.set(Ve.Bundesverwaltungsamt,["Bundesverwaltungsamt"]);ye.set(Ve["Bundeszentralamt für Steuern"],["Bundeszentralamt","für Steuern"]);ye.set(Ve["Deutsches Patent- und Markenamt"],["Deutsches","Patent- und Markenamt"]);ye.set(Ve["Eisenbahn-Bundesamt"],["Eisenbahn-Bundesamt"]);ye.set(Ve.Generalzolldirektion,["Generalzolldirektion"]);ye.set(Ve["Militärischer Abschirmdienst"],["Bundesamt für den","Militärischen Abschirmdienst"]);ye.set(Ve["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"],["Zentrale Stelle","für Informationstechnik","im Sicherheitsbereich"]);ye.set(ur["Informationstechnikzentrum Bund"],["Informations","Technik","Zentrum Bund"]);ye.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"]);ye.set(ur["Bundesanstalt für Landwirtschaft und Ernährung"],["Bundesanstalt für","Landwirtschaft und Ernährung"]);ye.set(ur["Bundesanstalt Technisches Hilfswerk"],["Bundesanstalt","Technisches Hilfswerk"]);ye.set(ur["Bundesinstitut für Arzneimittel und Medizinprodukte"],["Bundesinstitut","für Arzneimittel","und Medizinprodukte"]);ye.set(ur["Bundesinstitut für Bevölkerungsforschung"],["Bundesinstitut","für Bevölkerungsforschung"]);ye.set(ur["Bundesinstitut für Sportwissenschaft"],["Bundesinstitut","für Sportwissenschaft"]);var IS=`/* forward the rem function */
31
+ `);const u=this["s-cr"].parentElement;return(u.__childNodes?u.childNodes:zj(u.childNodes)).forEach(h=>{d===pm(h)&&c.push(h)}),r?c.filter(h=>h.nodeType===1):c}).bind(e);e.assignedElements=n(!0),e.assignedNodes=n(!1)}function Ur(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 $t=(e,n="")=>()=>{},Tj=(e,n)=>()=>{},xl=new WeakMap,Ty=(e,n,r)=>{let i=Hs.get(e);mm&&r?(i=i||new CSSStyleSheet,typeof i=="string"?i=n:i.replaceSync(n)):i=n,Hs.set(e,i)},Ay=(e,n,r)=>{var i;const c=km(n,r),d=Hs.get(c);if(!oo.document)return c;if(e=e.nodeType===11?e:oo.document,d)if(typeof d=="string"){e=e.head||e;let u=xl.get(e),m;if(u||xl.set(e,u=new Set),!u.has(c)){if(e.host&&(m=e.querySelector(`[${jb}="${c}"]`)))m.innerHTML=d;else{m=oo.document.createElement("style"),m.innerHTML=d;const h=(i=bo.$nonce$)!=null?i:yy(oo.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(mm){const p=new CSSStyleSheet;p.replaceSync(d),Sb?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+=_y),u&&u.add(c)}}else e.adoptedStyleSheets.includes(d)||(Sb?e.adoptedStyleSheets.push(d):e.adoptedStyleSheets=[...e.adoptedStyleSheets,d]);return c},Aj=e=>{const n=e.$cmpMeta$,r=e.$hostElement$,i=n.$flags$,c=$t("attachStyles",n.$tagName$),d=Ay(r.shadowRoot?r.shadowRoot:r.getRootNode(),n,e.$modeName$);i&10&&(r["s-sc"]=d,r.classList.add(d+"-h")),c()},km=(e,n)=>"sc-"+(n&&e.$flags$&32?e.$tagName$+"-"+n:e.$tagName$),Cj=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Ej=()=>{if(!oo.document)return;const e=oo.document.querySelectorAll(`[${jb}]`);let n=0;for(;n<e.length;n++)Ty(e[n].getAttribute(jb),Cj(e[n].innerHTML),!0)},Cy=(e,n,...r)=>{let i=null,c=null,d=null,u=!1,m=!1;const h=[],p=v=>{for(let x=0;x<v.length;x++)i=v[x],Array.isArray(i)?p(i):i!=null&&typeof i!="boolean"&&((u=typeof e!="function"&&!hm(i))&&(i=String(i)),u&&m?h[h.length-1].$text$+=i:h.push(u?Tl(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(x=>v[x]).join(" "))}}if(typeof e=="function")return e(n===null?{}:n,h,$j);const g=Tl(e,null);return g.$attrs$=n,h.length>0&&(g.$children$=h),g.$key$=c,g.$name$=d,g},Tl=(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},Lj={},Oj=e=>e&&e.$tag$===Lj,$j={forEach:(e,n)=>e.map(V_).forEach(n),map:(e,n)=>e.map(V_).map(n).map(Nj)},V_=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Nj=e=>{if(typeof e.vtag=="function"){const r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),Cy(e.vtag,r,...e.vchildren||[])}const n=Tl(e.vtag,e.vtext);return n.$attrs$=e.vattrs,n.$children$=e.vchildren,n.$key$=e.vkey,n.$name$=e.vname,n},Bj=(e,n,r,i)=>{var c,d;const u=$t("hydrateClient",n),m=e.shadowRoot,h=[],p=[],g=[],v=m?[]:null,x=Tl(n,null);x.$elm$=e,oo.document&&(!bo.$orgLocNodes$||!bo.$orgLocNodes$.size)&&Cb(oo.document.body,bo.$orgLocNodes$=new Map),e[Ki]=r,e.removeAttribute(Ki),i.$vnode$=Ab(x,h,p,v,e,e,r,g);let z=0;const N=h.length;let S;for(z;z<N;z++){S=h[z];const Z=S.$hostId$+"."+S.$nodeId$,ee=bo.$orgLocNodes$.get(Z),se=S.$elm$;if(!m)se["s-hn"]=n.toUpperCase(),S.$tag$==="slot"&&(se["s-cr"]=e["s-cr"]);else if((c=S.$tag$)!=null&&c.toString().includes("-")&&S.$tag$!=="slot-fb"&&!S.$elm$.shadowRoot){const $e=ot(S.$elm$);if($e){const ce=km($e.$cmpMeta$,S.$elm$.getAttribute("s-mode")),ne=oo.document.querySelector(`style[sty-id="${ce}"]`);ne&&e.shadowRoot.append(ne.cloneNode(!0))}}S.$tag$==="slot"&&(S.$name$=S.$elm$["s-sn"]||S.$elm$.name||null,S.$children$?(S.$flags$|=2,S.$elm$.childNodes.length||S.$children$.forEach($e=>{S.$elm$.appendChild($e.$elm$)})):S.$flags$|=1),ee&&ee.isConnected&&(ee.parentElement.shadowRoot&&ee["s-en"]===""&&ee.parentNode.insertBefore(se,ee.nextSibling),ee.parentNode.removeChild(ee),m||(se["s-oo"]=parseInt(S.$nodeId$))),ee&&!ee["s-id"]&&bo.$orgLocNodes$.delete(Z)}const O=[],E=g.length;let _=0,w,$,D,F;for(_;_<E;_++)if(w=g[_],!(!w||!w.length))for(D=w.length,$=0,$;$<D;$++){if(F=w[$],O[F.hostId]||(O[F.hostId]=bo.$orgLocNodes$.get(F.hostId)),!O[F.hostId])continue;const Z=O[F.hostId];Z.shadowRoot&&F.node.parentElement!==Z&&Z.appendChild(F.node),(!Z.shadowRoot||!m)&&(F.slot["s-cr"]||(F.slot["s-cr"]=Z["s-cr"],!F.slot["s-cr"]&&Z.shadowRoot?F.slot["s-cr"]=Z:F.slot["s-cr"]=(Z.__childNodes||Z.childNodes)[0]),Sj(F.node,F.slot,!1,F.node["s-oo"]),(d=F.node.parentElement)!=null&&d.shadowRoot&&F.node.getAttribute&&F.node.getAttribute("slot")&&F.node.removeAttribute("slot"))}if(m){let Z=0;const ee=v.length;if(ee){for(Z;Z<ee;Z++){const se=v[Z];se&&m.appendChild(se)}Array.from(e.childNodes).forEach(se=>{typeof se["s-en"]!="string"&&typeof se["s-sn"]!="string"&&(se.nodeType===1&&se.slot&&se.hidden?se.removeAttribute("hidden"):(se.nodeType===8&&!se.nodeValue||se.nodeType===3&&!se.wholeText.trim())&&se.parentNode.removeChild(se))})}}i.$hostElement$=e,u()},Ab=(e,n,r,i,c,d,u,m=[])=>{let h,p,g,v;if(d.nodeType===1){if(h=d.getAttribute(F_),h&&(p=h.split("."),p[0]===u||p[0]==="0")){g=q_({$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(F_),e.$children$||(e.$children$=[]);const z=g.$elm$.getAttribute("s-sn");typeof z=="string"&&(g.$tag$==="slot-fb"&&Z_(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--)Ab(e,n,r,i,c,d.shadowRoot.childNodes[v],u,m);const x=d.__childNodes||d.childNodes;for(v=x.length-1;v>=0;v--)Ab(e,n,r,i,c,x[v],u,m)}else if(d.nodeType===8){if(p=d.nodeValue.split("."),p[1]===u||p[1]==="0"){if(h=p[0],g=q_({$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===uj)g.$elm$=G_(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===fj)g.$elm$=G_(d,8),g.$elm$&&g.$elm$.nodeType===8&&(n.push(g),d.remove());else if(g.$hostId$===u)if(h===zb){const x=d["s-sn"]=p[5]||"";Z_(x,p[2],g,d,e,n,r,i,m)}else h===sj&&(i?d.remove():(c["s-cr"]=d,d["s-cn"]=!0))}}else if(e&&e.$tag$==="style"){const x=Tl(null,d.textContent);x.$elm$=d,x.$index$="0",e.$children$=[x]}else d.nodeType===3&&!d.wholeText.trim()&&!d["s-nr"]&&d.remove();return e},Cb=(e,n)=>{if(e.nodeType===1){const r=e[Ki]||e.getAttribute(Ki);r&&n.set(r,e);let i=0;if(e.shadowRoot)for(;i<e.shadowRoot.childNodes.length;i++)Cb(e.shadowRoot.childNodes[i],n);const c=e.__childNodes||e.childNodes;for(i=0;i<c.length;i++)Cb(c[i],n)}else if(e.nodeType===8){const r=e.nodeValue.split(".");r[0]===dj&&(n.set(r[1]+"."+r[2],e),e.nodeValue="",e["s-en"]=r[3])}},q_=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 Z_(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&&oo.document){const g=r.$elm$=oo.document.createElement(r.$tag$);r.$name$&&r.$elm$.setAttribute("name",e),c.$elm$.shadowRoot&&p&&p!==r.$hostId$?Ur(c.$elm$,"insertBefore")(g,Ur(c.$elm$,"children")[0]):Ur(Ur(i,"parentNode"),"insertBefore")(g,i),P_(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;P_(h,n,e,i,v?p:r.$hostId$),Sy(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 P_=(e,n,r,i,c)=>{var d,u;let m=i.nextSibling;if(e[n]=e[n]||[],!(!m||(d=m.nodeValue)!=null&&d.startsWith(zb+".")))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(zb+".")))},G_=(e,n)=>{let r=e;do r=r.nextSibling;while(r&&(r.nodeType!==n||!r.nodeValue));return r},vm=e=>{const n=pj(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${n}))(${n}\\b)`,"g")};vm("::slotted");vm(":host");vm(":host-context");var Rj=e=>gy.map(n=>n(e)).find(n=>!!n),Dj=e=>gy.push(e),Eb=(e,n,r)=>typeof e=="string"&&e.startsWith(wb)?(e=yj(e),e):e!=null&&!hm(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,dD=e=>{var n;return(n=ot(e))==null?void 0:n.$hostElement$},Mj=(e,n,r)=>{const i=bo.ce(n,r);return e.dispatchEvent(i),i},Y_=(e,n,r,i,c,d,u)=>{if(r===i)return;let m=U_(e,n),h=n.toLowerCase();if(n==="class"){const p=e.classList,g=J_(r);let v=J_(i);if((e["s-si"]||e["s-sc"])&&u){const x=e["s-sc"]||e["s-si"];v.push(x),g.forEach(z=>{z.startsWith(x)&&v.push(z)}),v=[...new Set(v)].filter(z=>z),p.add(...v)}else p.remove(...g.filter(x=>x&&!v.includes(x))),p.add(...v.filter(x=>x&&!g.includes(x)))}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):U_(oo,h)?n=h.slice(2):n=h[2]+n.slice(3),r||i){const p=n.endsWith(Ey);n=n.replace(Uj,""),r&&bo.rel(e,n,r,p),i&&bo.ael(e,n,i,p)}}else{const p=hm(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(H_,n):e.removeAttribute(n)):(!m||d&4||c)&&!p&&e.nodeType===1&&(i=i===!0?"":i,g?e.setAttributeNS(H_,n,i):e.setAttribute(n,i))}},Ij=/\s/,J_=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),!e||typeof e!="string"?[]:e.split(Ij)),Ey="Capture",Uj=new RegExp(Ey+"$"),Lb=(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 X_(Object.keys(d)))m in u||Y_(c,m,d[m],void 0,r,n.$flags$,i);for(const m of X_(Object.keys(u)))Y_(c,m,d[m],u[m],r,n.$flags$,i)};function X_(e){return e.includes("ref")?[...e.filter(n=>n!=="ref"),"ref"]:e}var Ob,ld,$b=!1,Ks=!1,gm=!1,Mn=!1,Vs=(e,n,r)=>{var i;const c=n.$children$[r];let d=0,u,m,h;if($b||(gm=!0,c.$tag$==="slot"&&(c.$flags$|=c.$children$?2:1)),c.$text$!==null)u=c.$elm$=oo.document.createTextNode(c.$text$);else if(c.$flags$&1)u=c.$elm$=oo.document.createTextNode(""),Lb(null,c,Mn);else{if(Mn||(Mn=c.$tag$==="svg"),!oo.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$=oo.document.createElementNS(Mn?tj:rj,!$b&&_a.slotRelocation&&c.$flags$&2?"slot-fb":c.$tag$),Mn&&c.$tag$==="foreignObject"&&(Mn=!1),Lb(null,c,Mn),c.$children$)for(d=0;d<c.$children$.length;++d)m=Vs(e,c,d),m&&u.appendChild(m);c.$tag$==="svg"?Mn=!1:u.tagName==="foreignObject"&&(Mn=!0)}return u["s-hn"]=ld,c.$flags$&3&&(u["s-sr"]=!0,u["s-cr"]=Ob,u["s-sn"]=c.$name$||"",u["s-rf"]=(i=c.$attrs$)==null?void 0:i.ref,Sy(u),h=e&&e.$children$&&e.$children$[r],h&&h.$tag$===c.$tag$&&e.$elm$&&Vi(e.$elm$,!1)),u},Vi=(e,n)=>{bo.$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"]!==ld&&c["s-ol"]&&(Fr(qi(c).parentNode,c,qi(c)),c["s-ol"].remove(),c["s-ol"]=void 0,c["s-sh"]=void 0,gm=!0),n&&Vi(c,n)}bo.$flags$&=-2},Ly=(e,n,r,i,c,d)=>{let u=e["s-cr"]&&e["s-cr"].parentNode||e,m;for(u.shadowRoot&&u.tagName===ld&&(u=u.shadowRoot);c<=d;++c)i[c]&&(m=Vs(null,r,c),m&&(i[c].$elm$=m,Fr(u,m,qi(n))))},Oy=(e,n,r)=>{for(let i=n;i<=r;++i){const c=e[i];if(c){const d=c.$elm$;Ny(c),d&&(Ks=!0,d["s-ol"]?d["s-ol"].remove():Vi(d,!0),d.remove())}}},Fj=(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],x=i.length-1,z=i[0],N=i[x],S,O;for(;d<=p&&u<=x;)if(g==null)g=n[++d];else if(v==null)v=n[--p];else if(z==null)z=i[++u];else if(N==null)N=i[--x];else if(_s(g,z,c))vl(g,z,c),g=n[++d],z=i[++u];else if(_s(v,N,c))vl(v,N,c),v=n[--p],N=i[--x];else if(_s(g,N,c))(g.$tag$==="slot"||N.$tag$==="slot")&&Vi(g.$elm$.parentNode,!1),vl(g,N,c),Fr(e,g.$elm$,v.$elm$.nextSibling),g=n[++d],N=i[--x];else if(_s(v,z,c))(g.$tag$==="slot"||N.$tag$==="slot")&&Vi(v.$elm$.parentNode,!1),vl(v,z,c),Fr(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?(O=n[m],O.$tag$!==z.$tag$?S=Vs(n&&n[u],r,m):(vl(O,z,c),n[m]=void 0,S=O.$elm$),z=i[++u]):(S=Vs(n&&n[u],r,u),z=i[++u]),S&&Fr(qi(g.$elm$).parentNode,S,qi(g.$elm$))}d>p?Ly(e,i[x+1]==null?null:i[x+1].$elm$,r,i,u,x):u>x&&Oy(n,d,p)},_s=(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,qi=e=>e&&e["s-ol"]||e,vl=(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?(Mn=u==="svg"?!0:u==="foreignObject"?!1:Mn,Lb(e,n,Mn,r),c!==null&&d!==null?Fj(i,c,n,d,r):d!==null?(e.$text$!==null&&(i.textContent=""),Ly(i,null,n,d,0,d.length-1)):!r&&_a.updatable&&c!==null?Oy(c,0,c.length-1):r&&_a.updatable&&c!==null&&d===null&&(n.$children$=c),Mn&&u==="svg"&&(Mn=!1)):(h=i["s-cr"])?h.parentNode.textContent=m:e.$text$!==m&&(i.data=m)},tr=[],$y=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(K_(n,u)){let m=tr.find(h=>h.$nodeToRelocate$===n);Ks=!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"],tr.push({$slotRefNode$:d,$nodeToRelocate$:n})),n["s-sr"]&&tr.map(h=>{K_(h.$nodeToRelocate$,n["s-sn"])&&(m=tr.find(p=>p.$nodeToRelocate$===n),m&&!h.$slotRefNode$&&(h.$slotRefNode$=m.$slotRefNode$))})}else tr.some(m=>m.$nodeToRelocate$===n)||tr.push({$nodeToRelocate$:n})}d.nodeType===1&&$y(d)}},Ny=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Ny)},Fr=(e,n,r)=>e?.insertBefore(n,r),Hj=(e,n,r=!1)=>{var i,c,d,u;const m=e.$hostElement$,h=e.$cmpMeta$,p=e.$vnode$||Tl(null,null),v=Oj(n)?n:Cy(null,null,n);if(ld=m.tagName,h.$attrsToReflect$&&(v.$attrs$=v.$attrs$||{},h.$attrsToReflect$.forEach(([x,z])=>{v.$attrs$[z]=m[x]})),r&&v.$attrs$)for(const x of Object.keys(v.$attrs$))m.hasAttribute(x)&&!["key","ref","style","class"].includes(x)&&(v.$attrs$[x]=m[x]);v.$tag$=null,v.$flags$|=4,e.$vnode$=v,v.$elm$=p.$elm$=m.shadowRoot||m,$b=!!(h.$flags$&1)&&!(h.$flags$&128),Ob=m["s-cr"],Ks=!1,vl(p,v,r);{if(bo.$flags$|=1,gm){$y(v.$elm$);for(const x of tr){const z=x.$nodeToRelocate$;if(!z["s-ol"]&&oo.document){const N=oo.document.createTextNode("");N["s-nr"]=z,Fr(z.parentNode,z["s-ol"]=N,z)}}for(const x of tr){const z=x.$nodeToRelocate$,N=x.$slotRefNode$;if(N){const S=N.parentNode;let O=N.nextSibling;{let w=(i=z["s-ol"])==null?void 0:i.previousSibling;for(;w;){let $=(c=w["s-nr"])!=null?c:null;if($&&$["s-sn"]===z["s-sn"]&&S===($.__parentNode||$.parentNode)){for($=$.nextSibling;$===z||$?.["s-sr"];)$=$?.nextSibling;if(!$||!$["s-nr"]){O=$;break}}w=w.previousSibling}}const E=z.__parentNode||z.parentNode,_=z.__nextSibling||z.nextSibling;(!O&&S!==E||_!==O)&&z!==O&&(!z["s-hn"]&&z["s-ol"]&&(z["s-hn"]=z["s-ol"].parentNode.nodeName),Fr(S,z,O),z.nodeType===1&&z.tagName!=="SLOT-FB"&&(z.hidden=(d=z["s-ih"])!=null?d:!1)),z&&typeof N["s-rf"]=="function"&&N["s-rf"](N)}else z.nodeType===1&&(r&&(z["s-ih"]=(u=z.hidden)!=null?u:!1),z.hidden=!0)}}Ks&&zy(v.$elm$),bo.$flags$&=-2,tr.length=0}Ob=void 0},By=(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()}))}},_m=(e,n)=>{if(e.$flags$&4){e.$flags$|=512;return}By(e,e.$ancestorComponent$);const r=()=>Kj(e,n);if(n){queueMicrotask(()=>{r()});return}return r()},Kj=(e,n)=>{const r=e.$hostElement$,i=$t("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])=>ar(c,u,m,r)),e.$queuedListeners$=void 0),e.$fetchedCbList$.length&&e.$fetchedCbList$.forEach(u=>u(r)),d=ar(c,"componentWillLoad",void 0,r)):d=ar(c,"componentWillUpdate",void 0,r),d=W_(d,()=>ar(c,"componentWillRender",void 0,r)),i(),W_(d,()=>qj(e,c,n))},W_=(e,n)=>Vj(e)?e.then(n).catch(r=>{console.error(r),n()}):n(),Vj=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",qj=async(e,n,r)=>{var i;const c=e.$hostElement$,d=$t("update",e.$cmpMeta$.$tagName$),u=c["s-rc"];r&&Aj(e);const m=$t("render",e.$cmpMeta$.$tagName$);Zj(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=()=>Pj(e);h.length===0?p():(Promise.all(h).then(p),e.$flags$|=4,h.length=0)}},Zj=(e,n,r,i)=>{try{n=n.render&&n.render(),e.$flags$|=2,Hj(e,n,i)}catch(c){fe(c,e.$hostElement$)}return null},Pj=e=>{const n=e.$cmpMeta$.$tagName$,r=e.$hostElement$,i=$t("postUpdate",n),c=e.$lazyInstance$,d=e.$ancestorComponent$;ar(c,"componentDidRender",void 0,r),e.$flags$&64?(ar(c,"componentDidUpdate",void 0,r),i()):(e.$flags$|=64,Gj(r),ar(c,"componentDidLoad",void 0,r),i(),e.$onReadyResolve$(r),d||Ry()),e.$onInstanceResolve$(r),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&xy(()=>_m(e,!1)),e.$flags$&=-517},Ry=e=>{var n;xy(()=>Mj(oo,"appload",{detail:{namespace:ej}})),(n=bo.$orgLocNodes$)!=null&&n.size&&bo.$orgLocNodes$.clear()},ar=(e,n,r,i)=>{if(e&&e[n])try{return e[n](r)}catch(c){fe(c,i)}},Gj=e=>{var n;return e.classList.add((n=_a.hydratedSelectorName)!=null?n:"hydrated")},Yj=(e,n)=>ot(e).$instanceValues$.get(n),Xf=(e,n,r,i)=>{const c=ot(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=Eb(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(x=>{try{h[x](r,u,n)}catch(z){fe(z,d)}})}if((m&18)===2){if(h.componentShouldUpdate&&h.componentShouldUpdate(r,u,n)===!1)return;_m(c,!1)}}},Dy=(e,n,r)=>{var i,c;const d=e.prototype;if(n.$members$||_a.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 Yj(this,m);const v=ot(this),x=v?v.$lazyInstance$:d;return x?x[m]:void 0}},configurable:!0,enumerable:!0}),Object.defineProperty(d,m,{set(v){const x=ot(this);if(x){if(g){typeof(h&32?this[m]:x.$hostElement$[m])>"u"&&x.$instanceValues$.get(m)&&(v=x.$instanceValues$.get(m)),g.apply(this,[Eb(v,h)]),v=h&32?this[m]:x.$hostElement$[m],Xf(this,m,v,n);return}{if((r&1)===0||(n.$members$[m][0]&4096)===0){Xf(this,m,v,n),r&1&&!x.$lazyInstance$&&x.$fetchedCbList$.push(()=>{n.$members$[m][0]&4096&&x.$lazyInstance$[m]!==x.$instanceValues$.get(m)&&(x.$lazyInstance$[m]=v)});return}const z=()=>{const N=x.$lazyInstance$[m];!x.$instanceValues$.get(m)&&N&&x.$instanceValues$.set(m,N),x.$lazyInstance$[m]=Eb(v,h),Xf(this,m,x.$lazyInstance$[m],n)};x.$lazyInstance$?z():x.$fetchedCbList$.push(()=>{z()})}}}})}else r&1&&h&64&&Object.defineProperty(d,m,{value(...p){var g;const v=ot(this);return(g=v?.$onInstancePromise$)==null?void 0:g.then(()=>{var x;return(x=v.$lazyInstance$)==null?void 0:x[m](...p)})}})}),r&1){const m=new Map;d.attributeChangedCallback=function(h,p,g){bo.jmp(()=>{var v;const x=m.get(h),z=ot(this);if(this.hasOwnProperty(x)&&_a.lazyLoad&&(g=this[x],delete this[x]),d.hasOwnProperty(x)&&typeof this[x]=="number"&&this[x]==g)return;if(x==null){const O=z?.$flags$;if(z&&O&&!(O&8)&&O&128&&g!==p){const E=z.$lazyInstance$,_=(v=n.$watchers$)==null?void 0:v[h];_?.forEach(w=>{E[w]!=null&&E[w].call(E,g,p,h)})}return}const N=u.find(([O])=>O===x);N&&N[1][0]&4&&(g=!(g===null||g==="false"));const S=Object.getOwnPropertyDescriptor(d,x);g!=this[x]&&(!S.get||S.set)&&(this[x]=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},Jj=async(e,n,r,i)=>{let c;if((n.$flags$&32)===0){if(n.$flags$|=32,r.$lazyBundleId$){const h=cj(r,n);if(h&&"then"in h){const g=Tj();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,Dy(c,r,2),c.isProxied=!0);const p=$t("createInstance",r.$tagName$);n.$flags$|=8;try{new c(n)}catch(g){fe(g,e)}n.$flags$&=-9,n.$flags$|=128,p(),Nb(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$=Rj(e),n.$modeName$&&(h=c.style[n.$modeName$]));const p=km(r,n.$modeName$);if(!Hs.has(p)){const g=$t("registerStyles",r.$tagName$);Ty(p,h,!!(r.$flags$&1)),g()}}}const d=n.$ancestorComponent$,u=()=>_m(n,!0);d&&d["s-rc"]?d["s-rc"].push(u):u()},Nb=(e,n)=>{ar(e,"connectedCallback",void 0,n)},Xj=e=>{if((bo.$flags$&1)===0){const n=ot(e);if(!n)return;const r=n.$cmpMeta$,i=$t("connectedCallback",r.$tagName$);if(n.$flags$&1)My(e,n,r.$listeners$),n?.$lazyInstance$?Nb(n.$lazyInstance$,e):n?.$onReadyPromise$&&n.$onReadyPromise$.then(()=>Nb(n.$lazyInstance$,e));else{n.$flags$|=1;let c;if(c=e.getAttribute(Ki),c){if(r.$flags$&1){const d=Ay(e.shadowRoot,r,e.getAttribute("s-mode"));e.classList.remove(d+"-h",d+"-s")}Bj(e,r.$tagName$,c,n)}c||r.$flags$&12&&Wj(e);{let d=e;for(;d=d.parentNode||d.host;)if(d.nodeType===1&&d.hasAttribute("s-id")&&d["s-p"]||d["s-p"]){By(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}}),Jj(e,n,r)}i()}},Wj=e=>{if(!oo.document)return;const n=e["s-cr"]=oo.document.createComment("");n["s-cn"]=!0,Fr(e,n,e.firstChild)},Q_=(e,n)=>{ar(e,"disconnectedCallback",void 0,n||e)},Qj=async e=>{if((bo.$flags$&1)===0){const n=ot(e);n?.$rmListeners$&&(n.$rmListeners$.map(r=>r()),n.$rmListeners$=void 0),n?.$lazyInstance$?Q_(n.$lazyInstance$,e):n?.$onReadyPromise$&&n.$onReadyPromise$.then(()=>Q_(n.$lazyInstance$,e))}xl.has(e)&&xl.delete(e),e.shadowRoot&&xl.has(e.shadowRoot)&&xl.delete(e.shadowRoot)},eS=(e,n={})=>{var r;if(!oo.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const i=$t(),c=[],d=n.exclude||[],u=oo.customElements,m=oo.document.head,h=m.querySelector("meta[charset]"),p=oo.document.createElement("style"),g=[];let v,x=!0;Object.assign(bo,n),bo.$resourcesUrl$=new URL(n.resourcesUrl||"./",oo.document.baseURI).href,bo.$flags$|=2,Ej();let z=!1;if(e.map(N=>{N[1].map(S=>{var O,E,_;const w={$flags$:S[0],$tagName$:S[1],$members$:S[2],$listeners$:S[3]};w.$flags$&4&&(z=!0),w.$members$=S[2],w.$listeners$=S[3],w.$attrsToReflect$=[],w.$watchers$=(O=S[4])!=null?O:{},w.$serializers$=(E=S[5])!=null?E:{},w.$deserializers$=(_=S[6])!=null?_:{};const $=n.transformTagName?n.transformTagName(w.$tagName$):w.$tagName$,D=class extends HTMLElement{constructor(F){if(super(F),this.hasRegisteredEventListeners=!1,F=this,ij(F,w),w.$flags$&1){if(!F.shadowRoot)wj.call(F,w);else if(F.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${w.$tagName$}! Mode is set to ${F.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){const F=ot(this);F&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,My(this,F,w.$listeners$)),v&&(clearTimeout(v),v=null),x?g.push(this):bo.jmp(()=>Xj(this)))}disconnectedCallback(){bo.jmp(()=>Qj(this)),bo.raf(()=>{var F;const Z=ot(this);if(!Z)return;const ee=g.findIndex(se=>se===this);ee>-1&&g.splice(ee,1),((F=Z?.$vnode$)==null?void 0:F.$elm$)instanceof Node&&!Z.$vnode$.$elm$.isConnected&&delete Z.$vnode$.$elm$})}componentOnReady(){var F;return(F=ot(this))==null?void 0:F.$onReadyPromise$}};w.$lazyBundleId$=N[0],!d.includes($)&&!u.get($)&&(c.push($),u.define($,Dy(D,w,1)))})}),c.length>0&&(z&&(p.textContent+=_y),p.textContent+=c.sort()+bj,p.innerHTML.length)){p.setAttribute("data-styles","");const N=(r=bo.$nonce$)!=null?r:yy(oo.document);N!=null&&p.setAttribute("nonce",N),m.insertBefore(p,h?h.nextSibling:m.firstChild)}x=!1,g.length?g.map(N=>N.connectedCallback()):bo.jmp(()=>v=setTimeout(Ry,30)),i()},uD=(e,n)=>n,My=(e,n,r,i)=>{r&&oo.document&&r.map(([c,d,u])=>{const m=nS(oo.document,e,c),h=oS(n,u),p=tS(c);bo.ael(m,d,h,p),(n.$rmListeners$=n.$rmListeners$||[]).push(()=>bo.rel(m,d,h,p))})},oS=(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$)}},nS=(e,n,r)=>r&8?oo:n,tS=e=>mj?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,rS=()=>{Dj(e=>{try{e.shadowRoot instanceof ShadowRoot&&e5(e,I6(e))}catch{}return"default"}),me(()=>import("./devtools-iuvU9xiJ-p134dzCf.js"),__vite__mapDeps([107,9])).then(e=>{typeof e=="object"&&e!==null&&typeof e.initialize=="function"&&e.initialize()}).catch(e=>{Oo.error(e)})};const aS=rS;const lS=async(e,n)=>{if(!(typeof window>"u"))return await aS(),eS(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 Bb={};function iS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bs={exports:{}},cS=Bs.exports,e1;function sS(){return e1||(e1=1,(function(e){(function(n,r){e.exports?e.exports=r():n.log=r()})(cS,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(S,O){var E=S[O];if(typeof E.bind=="function")return E.bind(S);try{return Function.prototype.bind.call(E,S)}catch{return function(){return Function.prototype.apply.apply(E,[S,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(S){return S==="debug"&&(S="log"),typeof console===r?!1:S==="trace"&&i?h:console[S]!==void 0?m(console,S):console.log!==void 0?m(console,"log"):n}function g(){for(var S=this.getLevel(),O=0;O<c.length;O++){var E=c[O];this[E]=O<S?n:this.methodFactory(E,S,this.name)}if(this.log=this.debug,typeof console===r&&S<this.levels.SILENT)return"No console available for logging"}function v(S){return function(){typeof console!==r&&(g.call(this),this[S].apply(this,arguments))}}function x(S,O,E){return p(S)||v.apply(this,arguments)}function z(S,O){var E=this,_,w,$,D="loglevel";typeof S=="string"?D+=":"+S:typeof S=="symbol"&&(D=void 0);function F(ce){var ne=(c[ce]||"silent").toUpperCase();if(!(typeof window===r||!D)){try{window.localStorage[D]=ne;return}catch{}try{window.document.cookie=encodeURIComponent(D)+"="+ne+";"}catch{}}}function Z(){var ce;if(!(typeof window===r||!D)){try{ce=window.localStorage[D]}catch{}if(typeof ce===r)try{var ne=window.document.cookie,we=encodeURIComponent(D),De=ne.indexOf(we+"=");De!==-1&&(ce=/^([^;]+)/.exec(ne.slice(De+we.length+1))[1])}catch{}return E.levels[ce]===void 0&&(ce=void 0),ce}}function ee(){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 se(ce){var ne=ce;if(typeof ne=="string"&&E.levels[ne.toUpperCase()]!==void 0&&(ne=E.levels[ne.toUpperCase()]),typeof ne=="number"&&ne>=0&&ne<=E.levels.SILENT)return ne;throw new TypeError("log.setLevel() called with invalid level: "+ce)}E.name=S,E.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},E.methodFactory=O||x,E.getLevel=function(){return $??w??_},E.setLevel=function(ce,ne){return $=se(ce),ne!==!1&&F($),g.call(E)},E.setDefaultLevel=function(ce){w=se(ce),Z()||E.setLevel(ce,!1)},E.resetLevel=function(){$=null,ee(),g.call(E)},E.enableAll=function(ce){E.setLevel(E.levels.TRACE,ce)},E.disableAll=function(ce){E.setLevel(E.levels.SILENT,ce)},E.rebuild=function(){if(u!==E&&(_=se(u.getLevel())),g.call(E),u===E)for(var ce in d)d[ce].rebuild()},_=se(u?u.getLevel():"WARN");var $e=Z();$e!=null&&($=se($e)),g.call(E)}u=new z,u.getLogger=function(O){if(typeof O!="symbol"&&typeof O!="string"||O==="")throw new TypeError("You must supply a name when creating a logger.");var E=d[O];return E||(E=d[O]=new z(O,u.methodFactory)),E};var N=typeof window!==r?window.log:void 0;return u.noConflict=function(){return typeof window!==r&&window.log===u&&(window.log=N),u},u.getLoggers=function(){return d},u.default=u,u})})(Bs)),Bs.exports}sS();const dS=(e,n)=>r=>r(e,n),uS=(e,n)=>r=>r(e,n,{append:!1}),fS=()=>{const e=typeof process<"u"&&Bb?Bb:{},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},Un={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:fS(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const e={};for(const[r,i]of Un.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}}},Iy=new Set,bS=/--[^;]+/g,mS=/:/,hS=typeof MutationObserver<"u";let Uy=()=>{Math.min(25+Math.log2(Un.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250)};const pS=(e,n)=>{let r=n.match(bS);if(Array.isArray(r)){r=r.filter(c=>mS.test(c));const i=document.createElement("style");i.innerHTML=`.${e} {${r.join(";")}}`,document.querySelector("head")?.appendChild(i)}Iy.add(e)},Wf=(e,n)=>{const r=Un.A11yUi.THEMES.get(e);return r instanceof Map&&r.has(n)?r.get(n):""},kS=e=>{for(const n of Array.from(e.childNodes))if(n instanceof HTMLStyleElement&&n.tagName==="STYLE"&&n.dataset.themingFallback===void 0)e.removeChild(n);else break},vS=(e,n)=>{try{if(Un.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const r=[];n.forEach(i=>{const c=new CSSStyleSheet;c.replaceSync(i),r.push(c)}),e.adoptedStyleSheets=r}catch{[...n].reverse().forEach((r,i)=>{if(typeof r!="string"||r.length===0)return;const c=document.createElement("style");switch(c.dataset.themingFallback="",i){case 4:c.dataset.themingBaseA11y="";break;case 3:c.dataset.themingBaseGlobal="";break;case 2:c.dataset.themingBaseComponent="";break;case 1:c.dataset.themingCustomGlobal="";break;case 0:c.dataset.themingCustomComponent="";break;default:c.dataset.themingUnknown="";break}c.innerHTML=r,e.insertBefore(c,e.firstChild)})}},gS=(e,n,r)=>{if(r!==!1){const i=[...Array.from(e.childNodes).filter(d=>d instanceof HTMLStyleElement&&d.tagName==="STYLE")];let c;try{c=[...Array.from(e.adoptedStyleSheets)]}catch{c=[]}r?.mode==="before"?(i.reverse().forEach(d=>n.unshift(d.innerHTML)),c.reverse().forEach(d=>n.unshift(Array.from(d.cssRules).map(u=>u.cssText).join("")))):r?.mode==="after"&&(i.forEach(d=>n.push(d.innerHTML)),c.forEach(d=>n.push(Array.from(d.cssRules).map(u=>u.cssText).join(""))))}},_S=(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}if(Un.A11yUi.CSS_STYLE_CACHE.get(i)?.has(e.tagName))o1(e,c,Un.A11yUi.CSS_STYLE_CACHE.get(i)?.get(e.tagName),r);else{const d=Wf(i,"PROPERTIES"),u=Wf(i,"GLOBAL"),m=Wf(i,e.tagName);Iy.has(i)===!1&&pS(i,u);const h=[d,u,m];gS(c,h,n.encroachCss),n.cache===!0&&(Un.A11yUi.CSS_STYLE_CACHE.has(i)===!1&&Un.A11yUi.CSS_STYLE_CACHE.set(i,new Map),Un.A11yUi.CSS_STYLE_CACHE.get(i)?.set(e.tagName,h)),o1(e,c,h,r)}},o1=(e,n,r,i)=>{const c=performance.now();if(kS(n),vS(n,r),Fy(e),i(),Un.A11yUi.PERFORMANCE_MEASURES.has(e.tagName)){const d=Un.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);d.count+=1,d.totalTime+=performance.now()-c}else Un.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:performance.now()-c})},xS=e=>{const n=Un.A11yUi.STYLING_TASK_QUEUE.get(e);if(n){const{resetCss:r,themeDetails:i}=n;_S(e,i,r),Fy(e)}},yS={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},wS=hS?new MutationObserver((e,n)=>{for(const r of e){const i=r.target;i.classList.contains("hydrated")&&(xS(i),n.observe(i,yS))}}):null;wS&&(Uy=()=>{});const Fy=e=>{Un.A11yUi.STYLING_TASK_QUEUE.delete(e),Uy()};class zS{Prefix;Key;Tag;createTheme=(n,r)=>uS(n,r);createTranslation=(n,r)=>dS(n,r);constructor(n,r,i){this.Prefix=n,this.Key=Object.getOwnPropertyNames(r),this.Tag=Object.getOwnPropertyNames(i)}}var Rb;(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"})(Rb||(Rb={}));var Db;(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"})(Db||(Db={}));const Mb=["development","production","test"];let Ib="production";const jS=e=>{try{if(Mb.includes(e))Ib=e;else throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${Mb.join(", ")}.`)}catch{Ib="production"}},SS=()=>{try{const e=typeof process<"u"&&Bb?"production":void 0;if(e&&Mb.includes(e))return e}catch{}return"production"};jS(SS());const TS=()=>Ib==="development",AS="color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000",ml=e=>Array.isArray(e)?e:[e],n1=e=>`%c${e}`,CS=(e,n)=>typeof n=="string"&&n.length>0?`${n1(e)} | ${n}`:n1(e),hl=(e,n)=>[CS(e,n?.classifier),`${AS};${n?.overwriteStyle||""}`],Ci=e=>TS()||e===!0;class ES{constructor(n){this.label=n}debug(n,r){Ci(r?.forceLog)&&console.debug(...hl(this.label,r),...ml(n))}info(n,r){Ci(r?.forceLog)&&console.info(...hl(this.label,r),...ml(n))}trace(n,r){Ci(r?.forceLog)&&console.trace(...hl(this.label,r),...ml(n))}warn(n,r){Ci(r?.forceLog)&&console.warn(...hl(this.label,r),...ml(n))}error(n,r){console.error(...hl(this.label,r),...ml(n))}throw(n,r){if(Ci(r?.forceLog))throw new Error(...hl(this.label,r),...ml(n))}}const LS=new ES("KoliBri"),t1=new Set,OS=(e,n)=>{t1.has(e)===!1&&(t1.add(e),LS.debug([e].concat([]),{classifier:"💻 dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))};OS("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");var Mr={exports:{}},r1;function $S(){if(r1)return Mr.exports;r1=1,Mr.exports=e,Mr.exports.arr=e,Mr.exports.obj=n,Mr.exports.css=r,Mr.exports.hex=i,Mr.exports.num=c;function e(_){var w=d(_);return w.length==3?w.concat(255):(w[3]=Math.round(w[3]),w)}function n(_){var w=d(_);return{r:w[0],g:w[1],b:w[2],a:w.length==3?255:Math.round(w[3])}}function r(_){var w=d(_);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(_){var Z=d(_);Z.length==3&&Z.push(255);var w=Z[3]==255,$=u(Z[0]),D=u(Z[1]),F=u(Z[2]),Z=u(Math.round(Z[3])),ee=m($,D,F,Z);return w?ee?"#"+$.charAt(0)+D.charAt(0)+F.charAt(0):"#"+$+D+F:ee?"#"+$.charAt(0)+D.charAt(0)+F.charAt(0)+Z.charAt(0):"#"+$+D+F+Z}function c(_){var w=d(_);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(_){return typeof _=="string"?(_=_.toLowerCase(),h(_)||g(_)||v(_)||O(_)||E(_)||[0,0,0,255]):z(_)||N(_)||S(_)||[0,0,0,255]}function u(_){var w=_.toString(16);return w.length==1?"0"+w:w}function m(_,w,$,D){var F=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return F.indexOf(_)!=-1&&F.indexOf(w)!=-1&&F.indexOf($)!=-1&&F.indexOf(D)!=-1}function h(_){if(_=="red")return[255,0,0];if(_=="green")return[0,255,0];if(_=="blue")return[0,0,255];if(_=="black")return[0,0,0];if(_=="white")return[255,255,255];if(_=="cyan")return[0,255,255];if(_=="gray")return[128,128,128];if(_=="grey")return[128,128,128];if(_=="magenta")return[255,0,255];if(_=="pink")return[255,0,255];if(_=="yellow")return[255,255,0]}function p(_){return _.length==1?parseInt(_+_,16):parseInt(_,16)}function g(_){var w=_.replace(/^#/,""),$=w.length;if($==3||$==4){var D=p(w[0]),F=p(w[1]),Z=p(w[2]),ee=$==3?255:p(w[3]);return isNaN(D)||isNaN(F)||isNaN(Z)||isNaN(ee)?void 0:[D,F,Z,ee]}}function v(_){var w=_.replace(/^#/,""),$=w.length;if($==6||$==8){var D=p(w.slice(0,2)),F=p(w.slice(2,4)),Z=p(w.slice(4,6)),ee=$==6?255:p(w.slice(6,8));return isNaN(D)||isNaN(F)||isNaN(Z)||isNaN(ee)?void 0:[D,F,Z,ee]}}function x(_,w){return typeof _!="number"||w===!0&&Math.floor(_)!==_?-1:_>=0&&_<=255?_:-1}function z(_){if(Object.prototype.toString.call(_)==="[object Object]"&&Object.getPrototypeOf(_)===Object.getPrototypeOf({})){var w=x(_.r!=null?_.r:_.red!=null?_.red:0,!0),$=x(_.g!=null?_.g:_.green!=null?_.green:0,!0),D=x(_.b!=null?_.b:_.blue!=null?_.blue:0,!0),F=x(_.a!=null?_.a:_.alpha!=null?_.alpha:255,!0);if(w!=-1&&$!=-1&&D!=-1&&F!=-1)return[w,$,D,F]}}function N(_){if(Array.isArray(_)&&(_.length==3||_.length==4)){var w=x(_[0],!0),$=x(_[1],!0),D=x(_[2],!0),F=x(_[3]!=null?_[3]:255,!0);if(w!=-1&&$!=-1&&D!=-1&&F!=-1)return[w,$,D,F]}}function S(_){if(typeof _=="number"&&Math.floor(_)==_&&_<=4294967295&&_>=0){var w=_>>24&255,$=_>>16&255,D=_>>8&255,F=_&255;return[$,D,F,w]}}function O(_){if(_.substr(0,4)=="rgb("){_=_.match(/^rgb\(([^)]+)\)/)[1];var w=_.split(/ *, */).map(Number),$=x(w[0],!0),D=x(w[1],!0),F=x(w[2],!0);if($!=-1&&D!=-1&&F!=-1)return[$,D,F,255]}}function E(_){if(_.substr(0,5)=="rgba("){_=_.match(/^rgba\(([^)]+)\)/)[1];var w=_.split(/ *, */).map(Number),$=x(w[0],!0),D=x(w[1],!0),F=x(w[2],!0),Z=x(w[3]*255);if($!=-1&&D!=-1&&F!=-1&&Z!=-1)return[$,D,F,Z]}}return Mr.exports}$S();var Qf={},a1;function NS(){return a1||(a1=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})(Qf)),Qf}NS();var eb={},l1;function BS(){return l1||(l1=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})(eb)),eb}BS();new Event("StateChange");var ob,i1;function RS(){return i1||(i1=1,ob=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},""):"")}}),ob}var DS=RS(),MS=iS(DS);function Hy(){const e=new Map,n=(r,i,c)=>{try{return e.get(r)(i,c)}catch{return e.set(r,MS(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 Ky=Hy();Ky("kol-icon");Ky("kol-icon","icon");const xm=Hy();xm("kol-alert","closer")+"";xm("kol-alert","content");xm("kol-alert","icon");var c1;(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"})(c1||(c1={}));const ym=new zS("kol",Rb,Db);var pn;(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"})(pn||(pn={}));var Ve;(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"})(Ve||(Ve={}));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 ye=new Map;ye.set(pn["Die Bundesregierung"],["Die","Bundesregierung"]);ye.set(pn["Bundesministerium der Finanzen"],["Bundesministerium","der Finanzen"]);ye.set(pn["Bundesministerium des Innern, für Bau und Heimat"],["Bundesministerium","des Inneren, für Bau","und Heimat"]);ye.set(pn["Auswärtiges Amt"],["Auswärtiges Amt"]);ye.set(pn["Bundesministerium für Wirtschaft und Energie"],["Bundesministerium","für Wirtschaft","und Energie"]);ye.set(pn["Bundesministerium der Justiz und für Verbraucherschutz"],["Bundesministerium","der Justiz und","für Verbraucherschutz"]);ye.set(pn["Bundesministerium für Arbeit und Soziales"],["Bundesministerium","für Arbeit und Soziales"]);ye.set(pn["Bundesministerium der Verteidigung"],["Bundesministerium","der Verteidigung"]);ye.set(pn["Bundesministerium für Bildung und Forschung"],["Bundesministerium","für Bildung","und Forschung"]);ye.set(pn["Bundesministerium für Ernährung und Landwirtschaft"],["Bundesministerium","für Ernährung","und Landwirtschaft"]);ye.set(pn["Bundesministerium für Familie, Senioren, Frauen und Jugend"],["Bundesministerium","für Familie, Senioren, Frauen","und Jugend"]);ye.set(pn["Bundesministerium für Gesundheit"],["Bundesministerium","für Gesundheit"]);ye.set(pn["Bundesministerium für Umwelt, Naturschutz und nukleare Sicherheit"],["Bundesministerium","für Umwelt, Naturschutz","und nukleare Sicherheit"]);ye.set(pn["Bundesministerium für Verkehr und digitale Infrastruktur"],["Bundesministerium","für Verkehr und","digitale Infrastruktur"]);ye.set(pn["Bundesministerium für wirtschaftliche Zusammenarbeit und Entwicklung"],["Bundesministerium","für wirtschaftliche Zusammenarbeit","und Entwicklung"]);ye.set(Ve["Beschaffungsamt des Bundesministeriums des Innern"],["Beschaffungsamt","des Bundesministeriums","des Innern"]);ye.set(Ve["Bundesamt für Ausrüstung, Informationstechnik und Nutzung der Bundeswehr"],[]);ye.set(Ve["Bundesamt für äußere Restitutionen"],[]);ye.set(Ve["Bundesamt für Bauwesen und Raumordnung"],[]);ye.set(Ve["Bundesamt für Bevölkerungsschutz und Katastrophenhilfe"],["Bundesamt","für Bevölkerungsschutz","und Katastrophenhilfe"]);ye.set(Ve["Bundesamt für Familie und zivilgesellschaftliche Aufgaben"],["Bundesamt","für Familie und","zivilgesellschaftliche Aufgaben"]);ye.set(Ve["Bundesamt für Güterverkehr"],["Bundesamt","für Güterverkehr"]);ye.set(Ve["Bundesamt für Justiz"],["Bundesamt für","Justiz"]);ye.set(Ve["Bundesamt für Kartographie und Geodäsie"],["Bundesamt für","Kartographie und Geodäsie"]);ye.set(Ve["Bundesamt für kerntechnische Entsorgungssicherheit"],["Bundesamt für","kerntechnische","Entsorgungssicherheit"]);ye.set(Ve["Bundesamt für Migration und Flüchtlinge"],["Bundesamt","für Migration","und Flüchtlinge"]);ye.set(Ve["Bundesamt für Sicherheit in der Informationstechnik"],["Bundesamt","für Sicherheit in der","Informationstechnik"]);ye.set(Ve["Bundesamt für Verbraucherschutz und Lebensmittelsicherheit"],["Bundesamt für","Verbraucherschutz und","Lebensmittelsicherheit"]);ye.set(Ve["Bundesamt für Verfassungsschutz"],["Bundesamt für","Verfassungsschutz"]);ye.set(Ve["Bundesamt für Wirtschaft und Ausfuhrkontrolle"],["Bundesamt","für Wirtschaft","Ausfuhrkontrolle"]);ye.set(Ve["Bundesamt für zentrale Dienste und offene Vermögensfragen"],["Bundesamt","für zentrale Dienste und","offene Vermögensfragen"]);ye.set(Ve["Bundesanstalt für Verwaltungsdienstleistungen"],["Bundesanstalt","für Verwaltungsdienstleistungen"]);ye.set(Ve.Bundesarchiv,["Das","Bundesarchiv"]);ye.set(Ve["Bundesaufsichtsamt für Flugsicherung"],["Bundesaufsichtsamt","für Flugsicherung"]);ye.set(Ve.Bundesausgleichsamt,["Bundesausgleichsamt"]);ye.set(Ve.Bundeskartellamt,["Bundeskartellamt"]);ye.set(Ve.Bundeskriminalamt,["Bundeskriminalamt"]);ye.set(Ve.Bundesnachrichtendienst,["Bundesnachrichtendienst"]);ye.set(Ve["Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen"],["Bundesnetzagentur"]);ye.set(Ve.Bundespolizeipräsidium,["Bundespolizeipräsidium"]);ye.set(Ve["Bundesprüfstelle für jugendgefährdende Medien"],["Bundesprüfstelle","für jugendgefährdende","Medien"]);ye.set(Ve.Bundessortenamt,["Bundessortenamt"]);ye.set(Ve.Bundessprachenamt,["Bundessprachenamt"]);ye.set(Ve["Bundesamt für Soziale Sicherung"],["Bundesamt","für Soziale Sicherung"]);ye.set(Ve.Bundesverwaltungsamt,["Bundesverwaltungsamt"]);ye.set(Ve["Bundeszentralamt für Steuern"],["Bundeszentralamt","für Steuern"]);ye.set(Ve["Deutsches Patent- und Markenamt"],["Deutsches","Patent- und Markenamt"]);ye.set(Ve["Eisenbahn-Bundesamt"],["Eisenbahn-Bundesamt"]);ye.set(Ve.Generalzolldirektion,["Generalzolldirektion"]);ye.set(Ve["Militärischer Abschirmdienst"],["Bundesamt für den","Militärischen Abschirmdienst"]);ye.set(Ve["Zentrale Stelle für Informationstechnik im Sicherheitsbereich"],["Zentrale Stelle","für Informationstechnik","im Sicherheitsbereich"]);ye.set(ur["Informationstechnikzentrum Bund"],["Informations","Technik","Zentrum Bund"]);ye.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"]);ye.set(ur["Bundesanstalt für Landwirtschaft und Ernährung"],["Bundesanstalt für","Landwirtschaft und Ernährung"]);ye.set(ur["Bundesanstalt Technisches Hilfswerk"],["Bundesanstalt","Technisches Hilfswerk"]);ye.set(ur["Bundesinstitut für Arzneimittel und Medizinprodukte"],["Bundesinstitut","für Arzneimittel","und Medizinprodukte"]);ye.set(ur["Bundesinstitut für Bevölkerungsforschung"],["Bundesinstitut","für Bevölkerungsforschung"]);ye.set(ur["Bundesinstitut für Sportwissenschaft"],["Bundesinstitut","für Sportwissenschaft"]);var IS=`/* forward the rem function */
32
32
  @layer kol-theme-component {
33
33
  abbr {
34
34
  text-decoration: none;
@@ -81,7 +81,7 @@ Link:
81
81
  .kol-accordion__heading-button .kol-icon {
82
82
  color: var(--color-primary);
83
83
  }
84
- }`,HS=`/* forward the rem function */
84
+ }`,FS=`/* forward the rem function */
85
85
  @layer kol-theme-component {
86
86
  .kol-alert :host {
87
87
  --theme-visibility-delay: 0.5s;
@@ -278,7 +278,7 @@ Link:
278
278
  .kol-alert--variant-card .kol-alert__content {
279
279
  padding: calc(16 * 1rem / var(--kolibri-root-font-size, 16));
280
280
  }
281
- }`,FS=`/* forward the rem function */
281
+ }`,HS=`/* forward the rem function */
282
282
  @layer kol-theme-component {
283
283
  .kol-badge {
284
284
  border-radius: var(--border-radius);
@@ -17642,7 +17642,7 @@ Link:
17642
17642
  transform: rotate(360deg);
17643
17643
  }
17644
17644
  }
17645
- }`;const C3=xm.createTheme("default",{GLOBAL:A3,"KOL-ABBR":IS,"KOL-ACCORDION":US,"KOL-ALERT":HS,"KOL-BADGE":FS,"KOL-BREADCRUMB":KS,"KOL-BUTTON":qS,"KOL-BUTTON-LINK":VS,"KOL-CARD":ZS,"KOL-COMBOBOX":PS,"KOL-DETAILS":GS,"KOL-DRAWER":YS,"KOL-FORM":JS,"KOL-HEADING":XS,"KOL-ICON":WS,"KOL-INPUT-CHECKBOX":QS,"KOL-INPUT-COLOR":e3,"KOL-INPUT-DATE":o3,"KOL-INPUT-EMAIL":n3,"KOL-INPUT-FILE":t3,"KOL-INPUT-NUMBER":r3,"KOL-INPUT-PASSWORD":a3,"KOL-INPUT-RADIO":l3,"KOL-INPUT-RANGE":i3,"KOL-INPUT-TEXT":c3,"KOL-LINK":d3,"KOL-LINK-BUTTON":s3,"KOL-MODAL":u3,"KOL-NAV":f3,"KOL-PAGINATION":b3,"KOL-POPOVER-BUTTON":m3,"KOL-PROGRESS":h3,"KOL-SELECT":p3,"KOL-SINGLE-SELECT":k3,"KOL-SKIP-NAV":v3,"KOL-SPLIT-BUTTON":g3,"KOL-TABLE-STATEFUL":_3,"KOL-TABLE-STATELESS":x3,"KOL-TABS":y3,"KOL-TEXTAREA":w3,"KOL-TOAST-CONTAINER":z3,"KOL-TOOLBAR":j3,"KOL-TREE":T3,"KOL-TREE-ITEM":S3});var E3=`/* forward the rem function */
17645
+ }`;const C3=ym.createTheme("default",{GLOBAL:A3,"KOL-ABBR":IS,"KOL-ACCORDION":US,"KOL-ALERT":FS,"KOL-BADGE":HS,"KOL-BREADCRUMB":KS,"KOL-BUTTON":qS,"KOL-BUTTON-LINK":VS,"KOL-CARD":ZS,"KOL-COMBOBOX":PS,"KOL-DETAILS":GS,"KOL-DRAWER":YS,"KOL-FORM":JS,"KOL-HEADING":XS,"KOL-ICON":WS,"KOL-INPUT-CHECKBOX":QS,"KOL-INPUT-COLOR":e3,"KOL-INPUT-DATE":o3,"KOL-INPUT-EMAIL":n3,"KOL-INPUT-FILE":t3,"KOL-INPUT-NUMBER":r3,"KOL-INPUT-PASSWORD":a3,"KOL-INPUT-RADIO":l3,"KOL-INPUT-RANGE":i3,"KOL-INPUT-TEXT":c3,"KOL-LINK":d3,"KOL-LINK-BUTTON":s3,"KOL-MODAL":u3,"KOL-NAV":f3,"KOL-PAGINATION":b3,"KOL-POPOVER-BUTTON":m3,"KOL-PROGRESS":h3,"KOL-SELECT":p3,"KOL-SINGLE-SELECT":k3,"KOL-SKIP-NAV":v3,"KOL-SPLIT-BUTTON":g3,"KOL-TABLE-STATEFUL":_3,"KOL-TABLE-STATELESS":x3,"KOL-TABS":y3,"KOL-TEXTAREA":w3,"KOL-TOAST-CONTAINER":z3,"KOL-TOOLBAR":j3,"KOL-TREE":T3,"KOL-TREE-ITEM":S3});var E3=`/* forward the rem function */
17646
17646
  @layer kol-theme-component {
17647
17647
  .kol-accordion {
17648
17648
  background-color: var(--color-grey-5);
@@ -18288,7 +18288,7 @@ Link:
18288
18288
  display: flex;
18289
18289
  place-items: center;
18290
18290
  }
18291
- }`,H3=`/* forward the rem function */
18291
+ }`,F3=`/* forward the rem function */
18292
18292
  @layer kol-theme-component {
18293
18293
  .kol-headline--h1 {
18294
18294
  font-size: calc(32 * 1rem / var(--kolibri-root-font-size, 16));
@@ -18313,7 +18313,7 @@ Link:
18313
18313
  .kol-headline--h6 {
18314
18314
  color: rgb(234, 0, 255);
18315
18315
  }
18316
- }`,F3=`/* forward the rem function */
18316
+ }`,H3=`/* forward the rem function */
18317
18317
  @layer kol-theme-component {
18318
18318
  .kol-alert--variant-msg {
18319
18319
  border: none;
@@ -21737,7 +21737,7 @@ Link:
21737
21737
  border-radius: 3px;
21738
21738
  padding: 0 0.3em;
21739
21739
  }
21740
- }`;const gT=xm.createTheme("ecl-ec",{GLOBAL:vT,"KOL-ACCORDION":E3,"KOL-ALERT":L3,"KOL-BADGE":O3,"KOL-BREADCRUMB":$3,"KOL-BUTTON":B3,"KOL-BUTTON-LINK":N3,"KOL-CARD":R3,"KOL-COMBOBOX":D3,"KOL-DETAILS":M3,"KOL-DRAWER":I3,"KOL-FORM":U3,"KOL-HEADING":H3,"KOL-INPUT-CHECKBOX":F3,"KOL-INPUT-COLOR":K3,"KOL-INPUT-DATE":V3,"KOL-INPUT-EMAIL":q3,"KOL-INPUT-FILE":Z3,"KOL-INPUT-NUMBER":P3,"KOL-INPUT-PASSWORD":G3,"KOL-INPUT-RADIO":Y3,"KOL-INPUT-RANGE":J3,"KOL-INPUT-TEXT":X3,"KOL-LINK":Q3,"KOL-LINK-BUTTON":W3,"KOL-MODAL":eT,"KOL-NAV":oT,"KOL-PAGINATION":nT,"KOL-POPOVER-BUTTON":tT,"KOL-PROGRESS":rT,"KOL-SELECT":aT,"KOL-SINGLE-SELECT":lT,"KOL-SKIP-NAV":iT,"KOL-SPIN":cT,"KOL-SPLIT-BUTTON":sT,"KOL-TABLE-STATEFUL":dT,"KOL-TABLE-STATELESS":uT,"KOL-TABS":fT,"KOL-TEXTAREA":bT,"KOL-TOAST-CONTAINER":mT,"KOL-TOOLBAR":hT,"KOL-TREE":kT,"KOL-TREE-ITEM":pT});var _T=`/* forward the rem function */
21740
+ }`;const gT=ym.createTheme("ecl-ec",{GLOBAL:vT,"KOL-ACCORDION":E3,"KOL-ALERT":L3,"KOL-BADGE":O3,"KOL-BREADCRUMB":$3,"KOL-BUTTON":B3,"KOL-BUTTON-LINK":N3,"KOL-CARD":R3,"KOL-COMBOBOX":D3,"KOL-DETAILS":M3,"KOL-DRAWER":I3,"KOL-FORM":U3,"KOL-HEADING":F3,"KOL-INPUT-CHECKBOX":H3,"KOL-INPUT-COLOR":K3,"KOL-INPUT-DATE":V3,"KOL-INPUT-EMAIL":q3,"KOL-INPUT-FILE":Z3,"KOL-INPUT-NUMBER":P3,"KOL-INPUT-PASSWORD":G3,"KOL-INPUT-RADIO":Y3,"KOL-INPUT-RANGE":J3,"KOL-INPUT-TEXT":X3,"KOL-LINK":Q3,"KOL-LINK-BUTTON":W3,"KOL-MODAL":eT,"KOL-NAV":oT,"KOL-PAGINATION":nT,"KOL-POPOVER-BUTTON":tT,"KOL-PROGRESS":rT,"KOL-SELECT":aT,"KOL-SINGLE-SELECT":lT,"KOL-SKIP-NAV":iT,"KOL-SPIN":cT,"KOL-SPLIT-BUTTON":sT,"KOL-TABLE-STATEFUL":dT,"KOL-TABLE-STATELESS":uT,"KOL-TABS":fT,"KOL-TEXTAREA":bT,"KOL-TOAST-CONTAINER":mT,"KOL-TOOLBAR":hT,"KOL-TREE":kT,"KOL-TREE-ITEM":pT});var _T=`/* forward the rem function */
21741
21741
  @layer kol-theme-component {
21742
21742
  .kol-accordion {
21743
21743
  box-shadow: 0 calc(2 * 1rem / var(--kolibri-root-font-size, 16)) calc(4 * 1rem / var(--kolibri-root-font-size, 16)) rgba(9, 49, 142, 0.08), 0 0 calc(10 * 1rem / var(--kolibri-root-font-size, 16)) rgba(9, 49, 142, 0.04), 0 calc(4 * 1rem / var(--kolibri-root-font-size, 16)) calc(5 * 1rem / var(--kolibri-root-font-size, 16)) rgba(9, 49, 142, 0.04), 0 calc(-4 * 1rem / var(--kolibri-root-font-size, 16)) calc(4 * 1rem / var(--kolibri-root-font-size, 16)) rgba(9, 49, 142, 0.04);
@@ -23815,7 +23815,7 @@ Link:
23815
23815
  .kol-input-range__inputs-wrapper {
23816
23816
  gap: calc(16 * 1rem / var(--kolibri-root-font-size, 16));
23817
23817
  }
23818
- }`,HT=`/* forward the rem function */
23818
+ }`,FT=`/* forward the rem function */
23819
23819
  @layer kol-theme-component {
23820
23820
  .kol-alert--variant-msg {
23821
23821
  border: none;
@@ -23958,7 +23958,7 @@ Link:
23958
23958
  .kol-textarea::placeholder {
23959
23959
  color: var(--color-grey-50);
23960
23960
  }
23961
- }`,FT=`/* forward the rem function */
23961
+ }`,HT=`/* forward the rem function */
23962
23962
  @layer kol-theme-component {
23963
23963
  .kol-link {
23964
23964
  --kolibri-spacing: calc(4 * 1rem / var(--kolibri-root-font-size, 16));
@@ -25951,28 +25951,28 @@ Link:
25951
25951
  border-radius: 3px;
25952
25952
  padding: 0 0.3em;
25953
25953
  }
25954
- }`;const c8=xm.createTheme("ecl-eu",{GLOBAL:i8,"KOL-ACCORDION":_T,"KOL-ALERT":xT,"KOL-BADGE":yT,"KOL-BREADCRUMB":wT,"KOL-BUTTON":jT,"KOL-BUTTON-LINK":zT,"KOL-CARD":ST,"KOL-COMBOBOX":TT,"KOL-DETAILS":AT,"KOL-DRAWER":CT,"KOL-FORM":ET,"KOL-HEADING":LT,"KOL-INPUT-CHECKBOX":OT,"KOL-INPUT-COLOR":$T,"KOL-INPUT-DATE":NT,"KOL-INPUT-EMAIL":BT,"KOL-INPUT-FILE":RT,"KOL-INPUT-NUMBER":DT,"KOL-INPUT-PASSWORD":MT,"KOL-INPUT-RADIO":IT,"KOL-INPUT-RANGE":UT,"KOL-INPUT-TEXT":HT,"KOL-LINK":KT,"KOL-LINK-BUTTON":FT,"KOL-MODAL":VT,"KOL-NAV":qT,"KOL-PAGINATION":ZT,"KOL-POPOVER-BUTTON":PT,"KOL-SELECT":GT,"KOL-SINGLE-SELECT":YT,"KOL-SKIP-NAV":JT,"KOL-SPIN":XT,"KOL-SPLIT-BUTTON":WT,"KOL-TABLE-STATEFUL":QT,"KOL-TABLE-STATELESS":e8,"KOL-TABS":o8,"KOL-TEXTAREA":n8,"KOL-TOAST-CONTAINER":t8,"KOL-TOOLBAR":r8,"KOL-TREE":l8,"KOL-TREE-ITEM":a8}),s8="3.1.2-rc.1",Ib={version:s8},d8=()=>{const e={onClick:()=>history.back()};return a.jsxs(gn,{_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(W,{_label:"Go Back",_on:e})]})},Ky=["default","ecl-ec","ecl-eu","unstyled"],ym=e=>Ky.find(n=>n===e)!==void 0,wm=[{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 u8(){const e=matchMedia("(max-width: 1023px)"),[n,r]=j.useState(e.matches),i=()=>{r(e.matches)};return j.useEffect(()=>(i(),e.addEventListener("change",i),()=>{e.removeEventListener("change",i)}),[e]),n}function f8({children:e}){return u8()?a.jsx(rn,{_label:"All components",class:"mt",children:e}):a.jsx("div",{className:"mt scrollable-container",children:e})}function c1({label:e,to:n,children:r}){const i=Rx(n),s=Cl(n),d=$4({path:s.pathname,end:!0});return a.jsx(Qo,{_label:e,_href:i,_active:!!d,children:r})}function b8({routes:e}){const n=(i,s)=>Object.keys(s).map(d=>{const u=i==="tree"&&d==="basic/:subPage",m=u?"basic/home":d,h=u?"basic":d;return a.jsx(c1,{label:h,to:[i,m].join("/")},[i,d].join("/"))}),r=Object.entries(e).map(([i,s])=>a.jsx(c1,{label:i,to:i,children:n(i,s)},i));return a.jsx(f8,{children:a.jsx("nav",{children:a.jsx(jx,{_label:"Navigation",class:"block",children:r})})})}const m8=({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}`}),h8=({version:e,theme:n,routes:r,routeList:i,sample:s,buildDate:d,commitHash:u,onThemeChange:m})=>{const h=()=>i.indexOf(s),p=()=>s.replace(/\//g," "),g=(z,N)=>{m(N)},v=()=>{const z=h(),N=z<=0?i.length-1:z-1;location.replace(`#${i[N]}`)},_=()=>{const z=h(),N=z===i.length-1?0:z+1;location.replace(`#${i[N]}`)};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(be,{_label:"KoliBri React"}),a.jsx(Qs,{_label:e})]}),a.jsx(m8,{buildDate:d,commitHash:u}),a.jsx(Jo,{_label:"Theme",_options:wm,_on:{onChange:g},_value:n,class:"mt"}),a.jsx(be,{_label:"Components",_level:2,className:"block mt"}),a.jsxs("div",{className:"flex flex-justify-between flex-items-center mt",children:[a.jsx(W,{_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(W,{_icons:"codicon codicon-arrow-right",_hideLabel:!0,_label:"Next component",_on:{onClick:_}})]}),a.jsx(b8,{routes:r})]})})},p8=()=>{const e=rt();U5("#"+e.pathname)},zm=j.createContext(null),k8="https://public-ui.github.io/docs/components",v8="https://github.com/public-ui/kolibri/blob/develop/packages/samples/react/src/components",Ue="I am an error message!",xn="I am a hint.",V=e=>{const n=j.useContext(zm),r=rt(),i=r.pathname.split("/").slice(1),s=j.useMemo(()=>i[0]==="scenarios"?null:`${k8}/${i[0]}`,[r.hash]),d=j.useMemo(()=>i[0]==="scenarios"?null:`${v8}/${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(_e,{_href:d,_label:"Code",_target:"_blank"})}),s&&a.jsx("li",{children:a.jsx(_e,{_href:s,_label:"Documentation",_target:"_blank"})}),a.jsx("li",{children:a.jsx(_e,{_href:`#${r.pathname}?hideMenus`,_label:"Standalone example",_target:"_blank"})})]})]})]})},g8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Di,{_label:"as an example",children:"e.g."})," an abbreviation."]}),a.jsxs("p",{children:["I am ",a.jsx(Di,{children:"e.g."})," an abbreviation without label."]})]}),_8={abbr:{basic:g8}},x8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(rn,{_label:"Heading Accordion Tab 1 (open)",_open:!0,children:a.jsx(_n,{_label:"Combobox in Accordion",_suggestions:"['Herr','Frau','Firma']"})}),a.jsx(rn,{_label:"Heading Accordion Tab 2",children:"Contents Accordion Tab 2"}),a.jsx(rn,{_label:"Heading Accordion Tab 3 (deactivated)",_disabled:!0,children:"Contents Accordion Tab 3"}),a.jsx(rn,{_label:"Heading Accordion Tab 4 (disabled and open)",_disabled:!0,_open:!0,children:"Contents Accordion Tab 4"})]})]}),y8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(rn,{_label:"Heading Level 1",_level:1,children:"Contents Accordion Tab 1"}),a.jsx(rn,{_label:"Heading Level 2",_level:2,children:"Contents Accordion Tab 2"}),a.jsx(rn,{_label:"Heading Level 3",_level:3,children:"Contents Accordion Tab 3"}),a.jsx(rn,{_label:"Heading Level 4",_level:4,children:"Contents Accordion Tab 4"}),a.jsx(rn,{_label:"Heading Level 5",_level:5,children:"Contents Accordion Tab 5"}),a.jsx(rn,{_label:"Heading Level 6",_level:6,children:"Contents Accordion Tab 6"})]})]}),w8={accordion:{basic:x8,headlines:y8}},Ci=({level:e,type:n,variant:r})=>a.jsxs(a.Fragment,{children:[a.jsx(gn,{_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(gn,{_type:n,_variant:r,children:"In this alert, only the text without the heading is used."}),a.jsx(gn,{_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(gn,{_type:n,_variant:r,_hasCloser:!0,children:"In this alert, only the text without the heading is used. With close button."})]}),Vy=({variant:e="msg"})=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Ci,{level:1,type:"default",variant:e}),a.jsx(Ci,{level:2,type:"error",variant:e}),a.jsx(Ci,{level:3,type:"info",variant:e}),a.jsx(Ci,{level:4,type:"success",variant:e}),a.jsx(Ci,{level:5,type:"warning",variant:e})]}),z8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Vy,{variant:"msg"})]}),j8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Vy,{variant:"card"})})]}),S8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(gn,{_label:"Output of HTML code in the alert",_type:"info",children:[a.jsx("div",{className:"mt-2 mb-3",children:a.jsx(be,{_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!"})]})]})]})})]}),T8={alert:{basic:z8,"card-msg":j8,html:S8}},A8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(ps,{_src:"https://www.w3schools.com/howto/img_avatar.png",_label:"Elke Mustermann"}),a.jsx(ps,{_label:"Elke Mustermann "}),a.jsx(ps,{_label:"Marianne"}),a.jsx(ps,{_color:"#0000FF",_label:"Christian"})]})]}),C8={avatar:{basic:A8}},E8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wo,{_label:"black"}),a.jsx(wo,{_color:"#86ffc6",_label:"teal"}),a.jsx(wo,{_color:"#06539e",_label:"blue"}),a.jsx(wo,{_color:"#ae0000",_label:"red with icon",_icons:"codicon codicon-smiley"}),a.jsx(wo,{_color:"#8b008b",_label:"purple with icon",_icons:"codicon codicon-squirrel"})]})]}),Ei=e=>({_label:e,_smartButton:{_ariaDescription:e,_icons:"codicon codicon-close",_label:"Remove",_on:{onClick:()=>alert("clicked")}}}),L8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wo,{...Ei("black")}),a.jsx(wo,{_color:"#86ffc6",...Ei("teal")}),a.jsx(wo,{_color:"#06539e",...Ei("blue")}),a.jsx(wo,{_color:"#ae0000",_icons:"codicon codicon-smiley",...Ei("red with icon")}),a.jsx(wo,{_color:"#8b008b",_icons:"codicon codicon-squirrel",...Ei("purple with icon")})]})]}),O8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wo,{_color:"#7db4ebff",_label:"**Bold** and _italic_ Markdown label"}),a.jsx(wo,{_color:"#8feb7dff",_label:"This is ~~strikethrough~~ text"}),a.jsx(wo,{_color:"#e6ee8eff",_label:"Source code like `y = mx + n` is possible"})]})]}),$8={badge:{basic:E8,button:L8,"formatted-label":O8}},N8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(js,{_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(js,{_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(js,{_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"}]})]})]}),B8={breadcrumb:{basic:N8}},R8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButtonLink with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(Pe,{_label:"Button Text without area description"}),a.jsx(Pe,{_label:"Button Text",_ariaDescription:"Button Area Description"})]})]});function Do(){const e=Vr.getInstance(document),n=s=>{e.enqueue({description:s||"Hello",label:"Hello",type:"info"})};return{dummyClickEventHandler:()=>{n()},buttonWithTextClickEventHandler:s=>{const d=s.currentTarget.textContent;n(d)}}}const D8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(be,{_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(Pe,{_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(Pe,{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(Pe,{style:{display:"block"},_label:"Simple Link"}),"Therefore, I go over the entire width of the parent element to create a line break."]}),a.jsx(be,{_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(Pe,{_label:"Disabled ButtonLink",_disabled:!0,_inline:!1})}),a.jsx("p",{children:a.jsx(Pe,{_label:"With access key",_accessKey:"c",_inline:!1,_on:n})}),a.jsx("p",{children:a.jsx(Pe,{_label:"Disabled ButtonLink",_inline:!1,_shortKey:"s"})})]})]})},M8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButtonLink with icons in different locations."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Pe,{_icons:"codicon codicon-home",_label:"I am a link with an icon on the left"}),a.jsx(Pe,{_icons:{right:"codicon codicon-home"},_label:"I am a link with an icon on the right"}),a.jsx(Pe,{_icons:{top:"codicon codicon-home"},_label:"I am a link with an icon at the top"}),a.jsx(Pe,{_icons:{bottom:"codicon codicon-home"},_label:"I am a link with icon below"}),a.jsx(Pe,{_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(Pe,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"I am a link with icon only"})]})]}),I8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Pe,{_label:"I am a link that is rendered as text"}),a.jsx(Pe,{_label:"",children:a.jsx("img",{alt:"Presentation of the KoliBri theming",slot:"expert",src:"abgrenzung.jpg",width:"300"})})]})]}),U8={"button-link":{basic:D8,icons:M8,image:I8,"aria-description":R8}},H8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolButton with"," ",a.jsx(_e,{_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(W,{_label:"With S access key",_accessKey:"S",_on:n}),a.jsx(W,{_label:"Very small b",_accessKey:"b",_on:n}),a.jsx(W,{_label:"Access key does not appear in label",_accessKey:"x",_on:n}),a.jsx(W,{_label:"access key without label",_hideLabel:!0,_accessKey:"a",_icons:"codicon codicon-dashboard",_on:n}),a.jsx(W,{_label:"with inline icons",_icons:{left:"codicon codicon-dashboard",right:"codicon codicon-dashboard"},_accessKey:"n",_on:n})]})]})},F8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButton with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_label:"Button Text without area description",_on:n}),a.jsx(W,{_label:"Button Text",_ariaDescription:"Button Area Description",_on:n})]})]})},K8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(W,{_label:"Label-Text",_on:n}),a.jsx(W,{_label:"Label-Text",_on:n}),a.jsx(W,{_label:"Label-Text",_on:n}),a.jsx(W,{_icons:"codicon codicon-reactions",_label:"Label-Text with Icon",_on:n})]})]})},pl="kol-tooltip-wc",V8=e=>{const{children:n,...r}=e,{dummyClickEventHandler:i}=Do(),s={onClick:i};return a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_icons:"codicon codicon-home",_label:"Primary",_variant:"primary",_on:s,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Primary"}),a.jsx(W,{_icons:"codicon codicon-heart",_label:"Secondary",_variant:"secondary",_on:s,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Tertiary"}),a.jsx(W,{_icons:"codicon codicon-hubot",_label:"Tertiary",_variant:"tertiary",_on:s,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Normal"}),a.jsx(W,{_icons:"codicon codicon-hubot",_label:"Normal",_variant:"normal",_on:s,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Danger"}),a.jsx(W,{_icons:"codicon codicon-trash",_label:"Danger",_variant:"danger",_on:s,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Ghost"}),a.jsx(W,{_icons:"codicon codicon-reactions",_label:"Ghost",_variant:"ghost",_on:s,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Link"})]})},qy=(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},s)=>a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:r}),a.jsx(V8,{...i})]},s))})},q8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(qy,{})]}),Z8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolButton show a button-element with expert slot."})}),a.jsx(qy,{_label:"",children:a.jsx("span",{slot:"expert",children:"I am more than just a button"})})]}),P8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButton with icons in all alignments."})}),a.jsx("div",{children:a.jsx(W,{_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"})})]})},G8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(W,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"This is a very, very long tooltip text that exceeds the width.",_variant:"primary"})})]}),ob=new WeakMap,vn=e=>(ob.has(e)===!1&&ob.set(e,Sx.createRoot(e)),ob.get(e)),Y8=({label:e})=>{const n=Vr.getInstance(document),r=j.useRef(null),i=j.useRef(null),s=()=>{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(),s();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(W,{ref:r,_label:"Edit",_shortKey:"e",_on:{onClick:s}}),a.jsx(W,{ref:i,_label:"Delete",_shortKey:"d",_variant:"danger",_on:{onClick:d}})]})},J8=()=>{const{dummyClickEventHandler:e}=Do(),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:(s,d)=>{vn(Fr(s)).render(a.jsx(Y8,{label:d.data.label}))}}]]};return a.jsxs(a.Fragment,{children:[a.jsxs(V,{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(W,{_label:"With S short key",_shortKey:"S",_on:n}),a.jsx(W,{_label:"Very small b",_shortKey:"b",_on:n}),a.jsx(W,{_label:"Short key does not appear in label",_shortKey:"x",_on:n}),a.jsx(W,{_label:"short key without label",_hideLabel:!0,_shortKey:"k",_icons:"codicon codicon-dashboard",_on:n}),a.jsx(W,{_label:"with inline icons",_icons:{left:"codicon codicon-dashboard",right:"codicon codicon-dashboard"},_shortKey:"n",_on:n})]}),a.jsx(be,{_level:2,_label:"Interactive sample",className:"mt"}),a.jsx(mo,{_label:'Move focus within one of the "Actions" cells and press "e" or "d" to trigger an action.',_data:r,_headers:i,_minWidth:"400px"})]})},X8=()=>{const{dummyClickEventHandler:e}=Do(),n={className:"w-8rem",_on:{onClick:e}};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(W,{_label:"Primary",_variant:"primary",...n}),a.jsx(W,{_label:"Secondary",_variant:"secondary",...n}),a.jsx(W,{_label:"Normal",_variant:"normal",...n}),a.jsx(W,{_label:"Danger",_variant:"danger",...n}),a.jsx(W,{_label:"Ghost",_variant:"ghost",...n})]}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_disabled:!0,_label:"Primary",_variant:"primary",...n}),a.jsx(W,{_disabled:!0,_label:"Secondary",_variant:"secondary",...n}),a.jsx(W,{_disabled:!0,_label:"Normal",_variant:"normal",...n}),a.jsx(W,{_disabled:!0,_label:"Danger",_variant:"danger",...n}),a.jsx(W,{_disabled:!0,_label:"Ghost",_variant:"ghost",...n})]})]})]})},W8={button:{basic:q8,icons:P8,width:X8,"access-key":H8,"aria-description":F8,baselined:K8,"short-key":J8,"expert-slot":Z8,"row-reverse-tooltip":G8}},Q8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Le,{_label:"Card with title and content",children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with closer",_hasCloser:!0,children:a.jsx("p",{children:"This card has a close button."})})]})]}),eA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Le,{_label:"Card with headline level 0",_level:0,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 1",_level:1,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 2",_level:2,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 3",_level:3,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 4",_level:4,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 5",_level:5,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Le,{_label:"Card with headline level 6",_level:6,children:a.jsx("div",{children:"Card contents."})})]})]}),oA={card:{basic:Q8,headlines:eA}},yn=({RefComponent:e,showButtons:n=!0,...r})=>a.jsx(An,{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(W,{_label:"Submit",_icons:"codicon codicon-arrow-right",_type:"submit",_variant:"primary"}),a.jsx(W,{_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(W,{_label:"Reset",_type:"reset",_variant:"tertiary"}),a.jsx(W,{_label:"Help",_variant:"ghost"})]})]})});function Cn({children:e}){const[n]=Kr(),r=n.has("noColumns");return a.jsx("div",{className:r?"":"grid md:grid-cols-2 gap-4",children:e})}const Zy=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"}]'),Wn=[...Zy.map(e=>({label:e.name,value:e.alpha2}))],Qn=[...Zy.map(e=>e.name)],s1=e=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(_n,{...e,_hint:xn,_label:"Label",_suggestions:Qn,_value:"Deutschland"}),a.jsx(_n,{...e,_label:"Disabled",_suggestions:Qn,_value:"Deutschland",_disabled:!0}),a.jsx(_n,{...e,_suggestions:Qn,_msg:{_type:"error",_description:Ue},_touched:!0,_label:"Label",_placeholder:"Placeholder",_required:!0}),a.jsx(_n,{...e,_label:"With access key",_suggestions:Qn,_value:"Deutschland",_accessKey:"c"}),a.jsx(_n,{...e,_label:"With short key",_suggestions:Qn,_value:"Deutschland",_shortKey:"s"})]}),nA=e=>a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(s1,{...e})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(s1,{...e,_hideLabel:!0})]})]}),tA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(yn,{RefComponent:nA,showButtons:!1})]}),rA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"A HTML only KolCombobox."})}),a.jsx(_n,{_label:"With string array in html",_suggestions:"['Herr','Frau','Firma']",_value:"Herr"})]}),aA={combobox:{basic:tA,html:rA}},lA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(rr,{_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(rr,{_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(rr,{_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."})]})]}),iA={details:{basic:lA}},cA=["left","top","right","bottom"].map(e=>({label:e,value:e})),jm=({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(Lo,{_label:"Drawer alignment",_value:e,_options:cA,_orientation:"horizontal",_on:{onChange:n}})})}),sA=()=>{const[e]=Kr(),n=e.get("align"),r=e.get("closer")==="true",i=j.useRef(null),[s,d]=j.useState(n||"left"),[u,m]=j.useState(r);return j.useEffect(()=>{n&&i.current?.open()},[n]),a.jsxs(a.Fragment,{children:[a.jsx(V,{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(jm,{value:s,onChange:(h,p)=>d(p)}),a.jsx(ro,{_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(om,{ref:i,_label:"I am a drawer",_align:s,_hasCloser:u,_on:{onClose:()=>console.log("Drawer onClose triggered!")},children:a.jsxs("div",{className:s==="left"||s==="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(W,{_label:"Close drawer",_on:{onClick:()=>i.current?.close()}})]})}),a.jsx(W,{_label:"Open drawer",_on:{onClick:()=>i.current?.open()}})]})]})},dA=()=>{const[e]=Kr(),n=e.get("align"),[r,i]=j.useState(!1),[s,d]=j.useState(n||"left");return a.jsxs("div",{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows the KolDrawer controlled by the property ",a.jsx("code",{children:"_open"})," instead of methods."]})}),a.jsx(jm,{value:s,onChange:(u,m)=>d(m)}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(om,{_open:r,_align:s,_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(W,{_label:"Close drawer",_on:{onClick:()=>i(!1)}})]})}),a.jsx(W,{_label:"Open drawer",_on:{onClick:()=>i(!0)}})]})]})},uA=()=>{const e=j.useRef(null),[n,r]=j.useState("bottom"),[i,s]=j.useState(!0);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(jm,{value:n,onChange:(d,u)=>r(u)}),a.jsx(ro,{_label:"Enable Overflow Handling (Recommended)",_checked:i,_on:{onChange:(d,u)=>s(!!u)}})]}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(om,{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(W,{_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(W,{_label:"Close drawer",_on:{onClick:()=>e.current?.close()}})})]})]})}),a.jsx(W,{_label:"Open scrollable drawer",_on:{onClick:()=>e.current?.open()}})]})]})},fA={drawer:{basic:sA,controlled:dA,scrolled:uA}},bA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(An,{className:"w-full",children:a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Oe,{id:"input1",_label:"Input 1"}),a.jsx(Oe,{id:"input2",_label:"Input 2"}),a.jsx(Oe,{id:"input3",_label:"Input 3"})]})})]}),mA=()=>{const e=j.useRef(null),n=()=>{e.current?.focusErrorList()};return j.useEffect(()=>{e.current?.focusErrorList()},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows a form with error messages."})}),a.jsx(An,{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(Oe,{id:"input1",_label:"Input 1"}),a.jsx(Oe,{id:"input2",_label:"Input 2",_touched:!0,_msg:{_description:"Input error",_type:"error"}}),a.jsx(Oe,{id:"input3",_label:"Input 3",_touched:!0,_msg:{_description:"Input error",_type:"error"}}),a.jsx("div",{children:a.jsx(W,{_label:"ScrollTo",_type:"submit"})})]})})]})},hA={form:{basic:bA,"error-list":mA}},Py=`public-ui.v${Ib.version}`;class pA{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 Ub;function Gy(e){Ub=e;const n=Ub.getItem(Py);try{const r=JSON.parse(n);typeof r=="object"&&r!==null&&(qi.darkMode=r.darkMode===!0,ym(r.theme)&&(qi.theme=r.theme))}catch{}}Gy(new pA);const kA=()=>{Ub.setItem(Py,JSON.stringify(qi))},vA=e=>{if(ym(e))qi.theme=e,kA();else throw new Error(`The theme identifier "${e}" is not valid or an available option.`)},Ks=()=>`${qi.theme}`,Hb=e=>{if(ym(e))return wm.find(n=>n.value===e)?.label;throw new Error(`The theme identifier "${e}" is not valid or an available option.`)},gA=[{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 _A({_on:e,...n}){const{dummyClickEventHandler:r}=Do(),i={onClick:r};return a.jsx(W,{...n,_on:i})}const xA={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),vn(r).render(a.jsx(_A,{_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),vn(r).render(a.jsx(wo,{_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),vn(r).render(a.jsx(wo,{_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),vn(r).render(a.jsx(wo,{_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),vn(r).render(a.jsx(wo,{_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),vn(r).render(a.jsx(wo,{_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),vn(r).render(a.jsx(wo,{_color:"#033",_label:n.label}))}}]],vertical:[[{label:"Early"},{label:"Noon"},{label:"Evening"},{label:"Night"}]]},yA=()=>{const{dummyClickEventHandler:e}=Do(),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(Ss,{className:"block w-75px",_labeled:!1}),a.jsx(be,{_label:"",_level:1,children:a.jsxs("span",{slot:"expert",children:["Kolibri-Handout ",a.jsxs("small",{children:["for ",Hb(Ks())]})]})}),a.jsxs(rr,{_label:"Abstract",_open:!0,children:["The handout shows a selection of KoliBri components in the style of ",a.jsx("strong",{children:Hb(Ks())}),". 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(_e,{_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(Le,{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(be,{_label:"Heading Level 1",_level:1}),a.jsx(be,{_label:"Heading Level 2",_level:2}),a.jsx(be,{_label:"Heading Level 3",_level:3}),a.jsx(be,{_label:"Heading Level 4",_level:4}),a.jsx(be,{_label:"Heading Level 5",_level:5}),a.jsx(be,{_label:"Heading Level 6",_level:6}),a.jsx(be,{_label:"Heading Level 6",_secondaryHeadline:"Lessons",_level:6})]})}),a.jsx(Le,{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(Di,{_label:"as an example",children:"e.g."})," an abbreviation."]}),a.jsxs("p",{children:["I am ",a.jsx(Di,{children:"e.g."})," an abbreviation without label."]}),a.jsx(nr,{_variant:"bar",_max:100,_value:33,_label:"Progress"}),a.jsx(nr,{_variant:"cycle",_max:100,_value:66,_label:"Progress"})]})}),a.jsx(Le,{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(W,{_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary",_on:n}),a.jsx(W,{_disabled:!0,_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary",_on:n}),a.jsx(W,{_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(W,{_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary",_on:n}),a.jsx(W,{_disabled:!0,_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary",_on:n}),a.jsx(W,{_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(W,{_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger",_on:n}),a.jsx(W,{_disabled:!0,_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger",_on:n}),a.jsx(W,{_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(W,{_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal",_on:n}),a.jsx(W,{_disabled:!0,_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal",_on:n}),a.jsx(W,{_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(W,{_label:"ghost",_variant:"ghost"}),a.jsx(W,{_disabled:!0,_label:"ghost",_variant:"ghost"}),a.jsx(W,{_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(Xe,{_href:"#/back-page",_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary"}),a.jsx(Xe,{_href:"#/back-page",_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary"}),a.jsx(Xe,{_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(Xe,{_href:"#/back-page",_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary"}),a.jsx(Xe,{_href:"#/back-page",_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary"}),a.jsx(Xe,{_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(Xe,{_href:"#/back-page",_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger"}),a.jsx(Xe,{_href:"#/back-page",_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger"}),a.jsx(Xe,{_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(Xe,{_href:"#/back-page",_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal"}),a.jsx(Xe,{_href:"#/back-page",_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal"}),a.jsx(Xe,{_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(Xe,{_href:"#/back-page",_label:"ghost",_variant:"ghost"}),a.jsx(Xe,{_href:"#/back-page",_label:"ghost",_variant:"ghost"}),a.jsx(Xe,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"ghost",_variant:"ghost"})]})]})]})})}),a.jsx(Le,{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(rn,{_label:"Links",_level:3,_open:!0,children:a.jsxs("div",{className:"grid gap-2",slot:"",children:[a.jsx(_e,{_href:"#/back-page",_label:"Link text"}),a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_label:"Link text with icon"}),a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link text with icon only"}),a.jsx(_e,{_href:"/",_label:"Visited link"}),a.jsxs("p",{children:["I am a ",a.jsx(_e,{_href:"#/back-page",_label:"externer Link",_target:"w3c"})," in the running text."]})]})}),a.jsx(rn,{_label:"ButtonLinks",_level:3,children:a.jsxs("div",{className:"grid gap-2",slot:"",children:[a.jsx(Pe,{_label:"Link text"}),a.jsx(Pe,{_icons:"codicon codicon-home",_label:"Link text with icon"}),a.jsx(Pe,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link text with icon only"}),a.jsxs("p",{children:["I am a ",a.jsx(Pe,{_label:"Link"})," in the running text."]}),a.jsx(Pe,{_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(Le,{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(gn,{_label:"Default message",_type:"default",children:"This is the text of the alert."}),a.jsx(gn,{_type:"success",children:"Success message text"}),a.jsx(gn,{_type:"error",_hasCloser:!0,children:"This is a error message text."}),a.jsx(gn,{_label:"Info card",_type:"info",_variant:"card",children:"This is the text of the alert."}),a.jsx(gn,{_label:"Warning card",_type:"warning",_hasCloser:!0,_variant:"card",children:"This is the text of the alert."})]})}),a.jsx(Le,{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(wl,{_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(js,{_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(Le,{className:"col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5",_label:"Input",_level:2,children:a.jsx(An,{slot:"",children:a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 md:grid-cols-3 p-2",children:[a.jsx(Go,{_label:"Color"}),a.jsx(Ro,{_label:"Upload file"}),a.jsx(So,{_label:"Number input"}),a.jsx(He,{_type:"date",_label:"Date"}),a.jsx(Yo,{_icons:"{'left': 'codicon codicon-home'}",_msg:{_type:"error",_description:"Test of an error message"},_touched:!0,_label:"E-mail address"}),a.jsx(Oe,{_hint:"I am a hint.",_label:"First name"}),a.jsx(Eo,{_label:"password"}),a.jsx(Jo,{_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_label:"Stimmung"}),a.jsx(en,{_min:0,_max:50,_value:25,_label:"Slider"}),a.jsx(Lo,{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(Lo,{_orientation:"horizontal",_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_value:"0",_label:"Salutation"}),a.jsx(ro,{_label:"",children:a.jsxs("span",{slot:"expert",children:["I accept the ",a.jsx(Di,{_label:"General Terms and Conditions",children:"AGB"}),"."]})})]}),a.jsx(Qe,{_rows:4,_label:"Textarea"})]})})}),a.jsx(Le,{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(mo,{_label:"Table",_minWidth:"auto",_headers:xA,_data:gA,_pagination:!0})})})]}),a.jsx(Qs,{_label:"5.0.2-test.2"})]})},wA={handout:{basic:yA}},zA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(be,{_label:"",_level:1,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_label:"Label"})]})}),a.jsx(be,{_label:"",_level:2,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#86ffc6",_label:"Label"})]})}),a.jsx(be,{_label:"",_level:3,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#06539e",_label:"Label"})]})}),a.jsx(be,{_label:"",_level:4,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#ae0000",_label:"Label"})]})}),a.jsx(be,{_label:"",_level:5,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#8b008b",_label:"Label"})]})}),a.jsx(be,{_label:"",_level:6,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#ffc0cb",_label:"Label"})]})})]})]}),jA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolHeading renders a heading with the given level."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(be,{_label:"I'm a H1-heading",_level:1}),a.jsx(be,{_label:"I'm a H2-heading",_level:2}),a.jsx(be,{_label:"I'm a H3-heading",_level:3}),a.jsx(be,{_label:"I'm a H4-heading",_level:4}),a.jsx(be,{_label:"I'm a H5-heading",_level:5}),a.jsx(be,{_label:"I'm a H6-heading",_level:6})]})]}),SA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(be,{_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(be,{_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(be,{_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(be,{_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(be,{_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(be,{_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."})]})]}),TA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(be,{_label:"This is a H1 headline",_secondaryHeadline:"This is a secondary headline",_level:1})})]}),AA={heading:{basic:jA,badge:zA,paragraph:SA,secondary:TA}},CA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(pt,{className:"block",_label:"",_icons:"codicon codicon-home"}),a.jsx(pt,{className:"block",_label:"",_icons:"codicon codicon-compass-active"}),a.jsx(pt,{className:"block",_label:"",_icons:"codicon codicon-debug"}),a.jsx(pt,{className:"block",_label:"",_icons:"codicon codicon-squirrel"}),a.jsx(pt,{className:"block w-[1em] h-[1em]",style:{color:"red"},_label:"",_icons:"codicon codicon-home"})]})]}),EA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(pt,{className:"block",_label:"",_icons:"fa-solid fa-house"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-solid fa-circle-user"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-solid fa-truck"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-solid fa-city"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-regular fa-heart"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-regular fa-thumbs-up"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-brands fa-github"}),a.jsx(Oe,{_label:"With Font Awesome icons",_icons:{left:{icon:"fa-solid fa-phone"},right:{icon:"fa-solid fa-arrow-right"}}})]})]}),LA={icon:{basic:CA,"font-awesome":EA}},OA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolImage renders an image. The sample shows an image with alternative text."})}),a.jsx(Zz,{className:"w-image",_src:"abgrenzung.jpg",_alt:"Darstellung des KoliBri-Theming"})]}),$A={image:{basic:OA}},gs=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ro,{...n,_label:"Not selected",_value:!1,_required:!0}),a.jsx(ro,{...n,_label:"Indeterminate",_value:null,_indeterminate:!0}),a.jsx(ro,{...n,ref:r,_accessKey:"A",_checked:!0,_label:"Selected",_tooltipAlign:"right",_value:!0}),a.jsx(ro,{...n,_checked:!0,_icons:{unchecked:"codicon codicon-close"},_label:"With a very long label and upheavals ".repeat(5),_value:!0}),a.jsx(ro,{...n,_disabled:!0,_label:"Disabled",_value:!0,_hint:"Hint text"}),a.jsx(ro,{...n,_checked:!0,_disabled:!0,_label:"Checked and disabled"}),a.jsx(ro,{...n,_indeterminate:!0,_disabled:!0,_label:"Indeterminate and disabled"}),a.jsx(ro,{...n,_msg:{_type:"error",_description:Ue},_label:"With error",_touched:!0,_value:!0,_hint:"Hint text"}),a.jsx(ro,{...n,_label:"With access key",_accessKey:"c",_value:null}),a.jsx(ro,{...n,_label:"With short key",_shortKey:"s",_value:null})]})}),Sm=j.forwardRef(function(n,r){return a.jsxs(a.Fragment,{children:[a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "left" with label'}),a.jsx(gs,{...n,_labelAlign:"left"})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "left" without Label (hideLabel)'}),a.jsx(gs,{ref:r,...n,_hideLabel:!0,_labelAlign:"left"})]})]}),a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "right" with label'}),a.jsx(gs,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "right" without Label (hideLabel)'}),a.jsx(gs,{ref:r,...n,_hideLabel:!0})]})]})]})}),NA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputCheckbox renders a checkbox. The sample shows KolInputCheckbox in a form context with all variations and states."})}),a.jsx(yn,{RefComponent:Sm,showButtons:!1})]}),BA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolInputCheckbox in the variant "button".'})}),a.jsx(yn,{RefComponent:Sm,_variant:"button",showButtons:!1})]}),RA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolInputCheckbox in the variant "switch".'})}),a.jsx(yn,{RefComponent:Sm,_variant:"switch",showButtons:!1})]}),DA={"input-checkbox":{basic:NA,switch:RA,button:BA}},d1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Go,{...n,_msg:{_type:"error",_description:Ue},_icons:{left:"codicon codicon-symbol-color"},_label:"Color (Black background test)",_value:"#f08080"})}),a.jsx(Go,{...n,_msg:{_type:"error",_description:Ue},_label:"Color with error",_suggestions:"['#000000','#f08080', '#0000ff','#00ff00']",_touched:!0}),a.jsx(Go,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Color"}),a.jsx(Go,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Color"}),a.jsx(Go,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Color"}),a.jsx(Go,{...n,ref:r,_accessKey:"C",_hint:"Hint text",_label:"Color with hint",_value:"#f08080"}),a.jsx(Go,{...n,_disabled:!0,_label:"Color (Disabled)",_value:"#f08080"}),a.jsx(Go,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(Go,{...n,_label:"With short key",_shortKey:"s"})]})}),MA=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Color"}),a.jsx(d1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Color (hideLabel)"}),a.jsx(d1,{ref:r,...n,_hideLabel:!0})]})]})}),IA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(yn,{RefComponent:MA,showButtons:!1})]}),UA={"input-color":{basic:IA}},u1=j.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:xn,_msg:{_type:"error",_description:Ue},_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"})]})}),HA=e=>{const n="2024-09-26",r="2024-09-27",i="12:00",s="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:s}),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:_})]})},FA=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date"}),a.jsx(u1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date (hideLabel)"}),a.jsx(u1,{ref:r,...n,_hideLabel:!0})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date (with min/max)"}),a.jsx(HA,{...n})]})]})}),KA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(yn,{RefComponent:FA,showButtons:!1})]}),f1=e=>String(e).padStart(2,"0"),VA=(e,n,r)=>{const i=new Date(e,n-1,r);return i.getFullYear()===e&&i.getMonth()===n-1&&i.getDate()===r};function b1(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],s=+n[3];return VA(s,i,r)?`${s}-${f1(i)}-${f1(r)}`:null}function qA(e){return e instanceof HTMLElement&&e.tagName==="KOL-INPUT-DATE"}async function ZA(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 PA=()=>{const[e,n]=j.useState("31.12.2025"),[r,i]=j.useState(""),s=j.useRef(null),d=j.useMemo(()=>b1(e),[e]);j.useEffect(()=>{const h=new AbortController,p=g=>{const v=g.composedPath?.()??[];s.current=v.find(qA)??null};return document.addEventListener("focusin",p,{capture:!0,signal:h.signal}),()=>h.abort()},[]),j.useEffect(()=>{const h=new AbortController,p=g=>{const v=s.current;if(!v)return;const _=g.clipboardData?.getData("text")??"",z=b1(_);if(!z){i("Clipboard: unrecognized date. Use DD.MM.YYYY.");return}g.preventDefault(),ZA(v,z),i("Pasted.")};return document.addEventListener("paste",p,{capture:!0,signal:h.signal}),()=>h.abort()},[]);const u=j.useCallback(async h=>{i("");try{await navigator.clipboard.writeText(h),i("Copied.")}catch{i("Copy failed. Your browser may block clipboard access.")}},[]),m=j.useCallback((h,p)=>{if(h?.target){const g=typeof p=="string"?p:String(p??"");n(g)}},[]);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Oe,{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(W,{_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})]})]})},GA=()=>{const e=j.useRef(null);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(W,{className:"mt",_label:"Reset",_on:{onClick:()=>e.current?.reset()}})]})},YA=["default","error","info","success","warning"];function nb(e){return{onChange:()=>e(n=>!n)}}const JA=()=>{const[e,n]=j.useState(!0),[r,i]=j.useState(!0),[s,d]=j.useState(!1),u=nb(n),m=nb(i),h=nb(d);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(ro,{_label:"Toggle Msg",_on:u,_checked:e,_variant:"button"}),a.jsx(ro,{_label:"Toggle Touched",_on:m,_checked:r,_variant:"button"}),a.jsx(ro,{_label:"Toggle Hide Msg",_on:h,_checked:s,_variant:"button"})]}),a.jsxs("pre",{children:["Message exists: ",e?"Yes":"No"," (showMsg: ",e?"Yes":"No",")",a.jsx("br",{}),"Non-Error-Message visible: ",e&&!s?"Yes":"No"," (showMsg: ",e?"Yes":"No",", hideMsg: ",s?"Yes":"No",")",a.jsx("br",{}),"Error-Message visible: ",e&&r&&!s?"Yes":"No"," (showMsg: ",e?"Yes":"No",", isTouched: ",r?"Yes":"No",", hideMsg: ",s?"Yes":"No",")"]}),YA.map(p=>a.jsx(He,{_hideMsg:s,_label:`Date (_msg, ${p})`,_msg:e?{_description:`${p} message`,_type:p}:void 0,_touched:r},p))]})]})},XA={"input-date":{basic:KA,"copy-paste":PA,reset:GA,"show-hide-msg":JA}},m1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Yo,{...n,_required:!0,_value:"test@mail.de",_msg:{_type:"error",_description:Ue},_label:"E-Mail (Black background test)"})}),a.jsx(Yo,{...n,ref:r,_accessKey:"M",_placeholder:"elke@mustermann.de",_suggestions:"['test1@mail.de', 'test2@mail.de', 'test3@mail.de']",_label:"E-Mail (list)",_hint:xn,_msg:{_type:"error",_description:Ue},_touched:!0,_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(Yo,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"E-Mail"}),a.jsx(Yo,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"E-Mail"}),a.jsx(Yo,{...n,_msg:{_type:"success",_description:"Success message"},_label:"E-Mail"}),a.jsx(Yo,{...n,_disabled:!0,_value:"test@mail.de",_label:"E-Mail (Disabled)"}),a.jsx(Yo,{...n,_readOnly:!0,_value:"test@mail.de",_label:"E-Mail (Readonly)"}),a.jsx(Yo,{...n,_value:"test@mail.de",_label:"With access key",_accessKey:"c"}),a.jsx(Yo,{...n,_value:"test@mail.de",_label:"With short key",_shortKey:"s"})]})}),WA=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Email"}),a.jsx(m1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Email (hideLabel)"}),a.jsx(m1,{ref:r,...n,_hideLabel:!0})]})]})}),QA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(yn,{RefComponent:WA,showButtons:!1})]}),eC={"input-email":{basic:QA}},h1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Ro,{...n,_label:"Upload file (Black background test)",_icons:{left:{icon:"codicon codicon-save"}},_touched:!0})}),a.jsx(Ro,{...n,_required:!0,_hint:xn,_msg:{_type:"error",_description:Ue},_label:"Upload file (Black background test)",_icons:{left:{icon:"codicon codicon-save"}},_touched:!0}),a.jsx(Ro,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Upload file"}),a.jsx(Ro,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Upload file"}),a.jsx(Ro,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Upload file"}),a.jsx(Ro,{...n,ref:r,_accessKey:"h",_multiple:!0,_msg:{_type:"error",_description:Ue},_label:"Upload file (Multiple)"}),a.jsx(Ro,{...n,_disabled:!0,_label:"Upload file (Disabled)"}),a.jsx(Ro,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(Ro,{...n,_label:"With short key",_shortKey:"s"})]})}),oC=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"File"}),a.jsx(h1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"File (hideLabel)"}),a.jsx(h1,{ref:r,...n,_hideLabel:!0})]})]})}),nC=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(yn,{RefComponent:oC,showButtons:!1})]}),tC={"input-file":{basic:nC}},p1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsxs("div",{className:"black-background",children:[a.jsx(So,{...n,_required:!0,_touched:!0,_value:123,_label:"Number input (Black background test)"})," "]}),a.jsx(So,{...n,_required:!0,_msg:{_type:"error",_description:Ue},_touched:!0,_placeholder:"Mit Icons",_label:"Number input",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(So,{...n,_required:!0,_msg:{_type:"error",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(So,{...n,_required:!0,_msg:{_type:"warning",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(So,{...n,_required:!0,_msg:{_type:"info",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(So,{...n,_required:!0,_msg:{_type:"success",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(So,{...n,ref:r,_accessKey:"Z",_max:10,_min:-10,_step:2,_label:"Number input (-10 to 10 in steps of 2)"}),a.jsx(So,{...n,_readOnly:!0,_label:"Number input (Readonly)"}),a.jsx(So,{...n,_disabled:!0,_label:"Number input (Disabled)"}),a.jsx(So,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(So,{...n,_label:"With short key",_shortKey:"s"})]})}),rC=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Number"}),a.jsx(p1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Number (hideLabel)"}),a.jsx(p1,{ref:r,...n,_hideLabel:!0})]})]})}),aC=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(yn,{RefComponent:rC,showButtons:!1})]});var Xi=e=>e.type==="checkbox",va=e=>e instanceof Date,In=e=>e==null;const Yy=e=>typeof e=="object";var Xo=e=>!In(e)&&!Array.isArray(e)&&Yy(e)&&!va(e),Jy=e=>Xo(e)&&e.target?Xi(e.target)?e.target.checked:e.target.value:e,lC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Xy=(e,n)=>e.has(lC(n)),iC=e=>{const n=e.constructor&&e.constructor.prototype;return Xo(n)&&n.hasOwnProperty("isPrototypeOf")},Tm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Zo(e){if(e instanceof Date)return new Date(e);const n=typeof FileList<"u"&&e instanceof FileList;if(Tm&&(e instanceof Blob||n))return e;const r=Array.isArray(e);if(!r&&!(Xo(e)&&iC(e)))return e;const i=r?[]:Object.create(Object.getPrototypeOf(e));for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=Zo(e[s]));return i}var ad=e=>/^\w*$/.test(e),To=e=>e===void 0,Am=e=>Array.isArray(e)?e.filter(Boolean):[],Cm=e=>Am(e.replace(/["|']|\]/g,"").split(/\.|\[/)),de=(e,n,r)=>{if(!n||!Xo(e))return r;const i=(ad(n)?[n]:Cm(n)).reduce((s,d)=>In(s)?s:s[d],e);return To(i)||i===e?To(e[n])?r:e[n]:i},Xn=e=>typeof e=="boolean",Tn=e=>typeof e=="function",fo=(e,n,r)=>{let i=-1;const s=ad(n)?[n]:Cm(n),d=s.length,u=d-1;for(;++i<d;){const m=s[i];let h=r;if(i!==u){const p=e[m];h=Xo(p)||Array.isArray(p)?p:isNaN(+s[i+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;e[m]=h,e=e[m]}};const Vs={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},wt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},er={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Wy=ae.createContext(null);Wy.displayName="HookFormControlContext";const Em=()=>ae.useContext(Wy);var Qy=(e,n,r,i=!0)=>{const s={defaultValues:n._defaultValues};for(const d in e)Object.defineProperty(s,d,{get:()=>{const u=d;return n._proxyFormState[u]!==wt.all&&(n._proxyFormState[u]=!i||wt.all),r&&(r[u]=!0),e[u]}});return s};const Lm=typeof window<"u"?ae.useLayoutEffect:ae.useEffect;function cC(e){const n=Em(),{control:r=n,disabled:i,name:s,exact:d}=e||{},[u,m]=ae.useState(r._formState),h=ae.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Lm(()=>r._subscribe({name:s,formState:h.current,exact:d,callback:p=>{!i&&m({...r._formState,...p})}}),[s,i,d]),ae.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),ae.useMemo(()=>Qy(u,r,h.current,!1),[u,r])}var et=e=>typeof e=="string",Fb=(e,n,r,i,s)=>et(e)?(i&&n.watch.add(e),de(r,e,s)):Array.isArray(e)?e.map(d=>(i&&n.watch.add(d),de(r,d))):(i&&(n.watchAll=!0),r),Kb=e=>In(e)||!Yy(e);function zt(e,n,r=new WeakSet){if(Kb(e)||Kb(n))return Object.is(e,n);if(va(e)&&va(n))return Object.is(e.getTime(),n.getTime());const i=Object.keys(e),s=Object.keys(n);if(i.length!==s.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(!s.includes(d))return!1;if(d!=="ref"){const m=n[d];if(va(u)&&va(m)||Xo(u)&&Xo(m)||Array.isArray(u)&&Array.isArray(m)?!zt(u,m,r):!Object.is(u,m))return!1}}return!0}function sC(e){const n=Em(),{control:r=n,name:i,defaultValue:s,disabled:d,exact:u,compute:m}=e||{},h=ae.useRef(s),p=ae.useRef(m),g=ae.useRef(void 0),v=ae.useRef(r),_=ae.useRef(i);p.current=m;const[z,N]=ae.useState(()=>{const $=r._getWatch(i,h.current);return p.current?p.current($):$}),S=ae.useCallback($=>{const D=Fb(i,r._names,$||r._formValues,!1,h.current);return p.current?p.current(D):D},[r._formValues,r._names,i]),O=ae.useCallback($=>{if(!d){const D=Fb(i,r._names,$||r._formValues,!1,h.current);if(p.current){const H=p.current(D);zt(H,g.current)||(N(H),g.current=H)}else N(D)}},[r._formValues,r._names,d,i]);Lm(()=>((v.current!==r||!zt(_.current,i))&&(v.current=r,_.current=i,O()),r._subscribe({name:i,formState:{values:!0},exact:u,callback:$=>{O($.values)}})),[r,u,i,O]),ae.useEffect(()=>r._removeUnmounted());const E=v.current!==r,x=_.current,w=ae.useMemo(()=>{if(d)return null;const $=!E&&!zt(x,i);return E||$?S():null},[d,E,i,x,S]);return w!==null?w:z}function dC(e){const n=Em(),{name:r,disabled:i,control:s=n,shouldUnregister:d,defaultValue:u,exact:m=!0}=e,h=Xy(s._names.array,r),p=ae.useMemo(()=>de(s._formValues,r,de(s._defaultValues,r,u)),[s,r,u]),g=sC({control:s,name:r,defaultValue:p,exact:m}),v=cC({control:s,name:r,exact:m}),_=ae.useRef(e),z=ae.useRef(void 0),N=ae.useRef(s.register(r,{...e.rules,value:g,...Xn(e.disabled)?{disabled:e.disabled}:{}}));_.current=e;const S=ae.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]),O=ae.useCallback($=>N.current.onChange({target:{value:Jy($),name:r},type:Vs.CHANGE}),[r]),E=ae.useCallback(()=>N.current.onBlur({target:{value:de(s._formValues,r),name:r},type:Vs.BLUR}),[r,s._formValues]),x=ae.useCallback($=>{const D=de(s._fields,r);D&&D._f&&$&&(D._f.ref={focus:()=>Tn($.focus)&&$.focus(),select:()=>Tn($.select)&&$.select(),setCustomValidity:H=>Tn($.setCustomValidity)&&$.setCustomValidity(H),reportValidity:()=>Tn($.reportValidity)&&$.reportValidity()})},[s._fields,r]),w=ae.useMemo(()=>({name:r,value:g,...Xn(i)||v.disabled?{disabled:v.disabled||i}:{},onChange:O,onBlur:E,ref:x}),[r,i,v.disabled,O,E,x,g]);return ae.useEffect(()=>{const $=s._options.shouldUnregister||d,D=z.current;D&&D!==r&&!h&&s.unregister(D),s.register(r,{..._.current.rules,...Xn(_.current.disabled)?{disabled:_.current.disabled}:{}});const H=(Z,ee)=>{const se=de(s._fields,Z);se&&se._f&&(se._f.mount=ee)};if(H(r,!0),$){const Z=Zo(de(s._options.defaultValues,r,_.current.defaultValue));fo(s._defaultValues,r,Z),To(de(s._formValues,r))&&fo(s._formValues,r,Z)}return!h&&s.register(r),z.current=r,()=>{(h?$&&!s._state.action:$)?s.unregister(r):H(r,!1)}},[r,s,h,d]),ae.useEffect(()=>{s._setDisabledField({disabled:i,name:r})},[i,r,s]),ae.useMemo(()=>({field:w,formState:v,fieldState:S}),[w,v,S])}const e0=e=>e.render(dC(e)),uC=ae.createContext(null);uC.displayName="HookFormContext";var o0=(e,n,r,i,s)=>n?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[i]:s||!0}}:{},Mi=e=>Array.isArray(e)?e:[e],k1=()=>{let e=[];return{get observers(){return e},next:s=>{for(const d of e)d.next&&d.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(d=>d!==s)}}),unsubscribe:()=>{e=[]}}};function n0(e,n){const r={};for(const i in e)if(e.hasOwnProperty(i)){const s=e[i],d=n[i];if(s&&Xo(s)&&d){const u=n0(s,d);Xo(u)&&(r[i]=u)}else e[i]&&(r[i]=d)}return r}var Sn=e=>Xo(e)&&!Object.keys(e).length,Om=e=>e.type==="file",qs=e=>{if(!Tm)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},t0=e=>e.type==="select-multiple",$m=e=>e.type==="radio",fC=e=>$m(e)||Xi(e),tb=e=>qs(e)&&e.isConnected;function bC(e,n){const r=n.slice(0,-1).length;let i=0;for(;i<r;)e=To(e)?i++:e[n[i++]];return e}function mC(e){for(const n in e)if(e.hasOwnProperty(n)&&!To(e[n]))return!1;return!0}function Po(e,n){const r=Array.isArray(n)?n:ad(n)?[n]:Cm(n),i=r.length===1?e:bC(e,r),s=r.length-1,d=r[s];return i&&delete i[d],s!==0&&(Xo(i)&&Sn(i)||Array.isArray(i)&&mC(i))&&Po(e,r.slice(0,-1)),e}var hC=e=>{for(const n in e)if(Tn(e[n]))return!0;return!1};function r0(e){return Array.isArray(e)||Xo(e)&&!hC(e)}function Vb(e,n={}){for(const r in e){const i=e[r];r0(i)?(n[r]=Array.isArray(i)?[]:{},Vb(i,n[r])):To(i)||(n[r]=!0)}return n}function gl(e,n,r){r||(r=Vb(n));for(const i in e){const s=e[i];if(r0(s))To(n)||Kb(r[i])?r[i]=Vb(s,Array.isArray(s)?[]:{}):gl(s,In(n)?{}:n[i],r[i]);else{const d=n[i];r[i]=!zt(s,d)}}return r}const v1={value:!1,isValid:!1},g1={value:!0,isValid:!0};var a0=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&&!To(e[0].attributes.value)?To(e[0].value)||e[0].value===""?g1:{value:e[0].value,isValid:!0}:g1:v1}return v1},l0=(e,{valueAsNumber:n,valueAsDate:r,setValueAs:i})=>To(e)?e:n?e===""?NaN:e&&+e:r&&et(e)?new Date(e):i?i(e):e;const _1={isValid:!1,value:null};var i0=e=>Array.isArray(e)?e.reduce((n,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:n,_1):_1;function x1(e){const n=e.ref;return Om(n)?n.files:$m(n)?i0(e.refs).value:t0(n)?[...n.selectedOptions].map(({value:r})=>r):Xi(n)?a0(e.refs).value:l0(To(n.value)?e.ref.value:n.value,e)}var pC=(e,n,r,i)=>{const s={};for(const d of e){const u=de(n,d);u&&fo(s,d,u._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:i}},Zs=e=>e instanceof RegExp,Li=e=>To(e)?e:Zs(e)?e.source:Xo(e)?Zs(e.value)?e.value.source:e.value:e,y1=e=>({isOnSubmit:!e||e===wt.onSubmit,isOnBlur:e===wt.onBlur,isOnChange:e===wt.onChange,isOnAll:e===wt.all,isOnTouch:e===wt.onTouched});const w1="AsyncFunction";var kC=e=>!!e&&!!e.validate&&!!(Tn(e.validate)&&e.validate.constructor.name===w1||Xo(e.validate)&&Object.values(e.validate).find(n=>n.constructor.name===w1)),vC=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),z1=(e,n,r)=>!r&&(n.watchAll||n.watch.has(e)||[...n.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const Ii=(e,n,r,i)=>{for(const s of r||Object.keys(e)){const d=de(e,s);if(d){const{_f:u,...m}=d;if(u){if(u.refs&&u.refs[0]&&n(u.refs[0],s)&&!i)return!0;if(u.ref&&n(u.ref,u.name)&&!i)return!0;if(Ii(m,n))break}else if(Xo(m)&&Ii(m,n))break}}};function j1(e,n,r){const i=de(e,r);if(i||ad(r))return{error:i,name:r};const s=r.split(".");for(;s.length;){const d=s.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};s.pop()}return{name:r}}var gC=(e,n,r,i)=>{r(e);const{name:s,...d}=e;return Sn(d)||Object.keys(d).length>=Object.keys(n).length||Object.keys(d).find(u=>n[u]===(!i||wt.all))},_C=(e,n,r)=>!e||!n||e===n||Mi(e).some(i=>i&&(r?i===n:i.startsWith(n)||n.startsWith(i))),xC=(e,n,r,i,s)=>s.isOnAll?!1:!r&&s.isOnTouch?!(n||e):(r?i.isOnBlur:s.isOnBlur)?!e:(r?i.isOnChange:s.isOnChange)?e:!0,yC=(e,n)=>!Am(de(e,n)).length&&Po(e,n),wC=(e,n,r)=>{const i=Mi(de(e,r));return fo(i,"root",n[r]),fo(e,r,i),e};function S1(e,n,r="validate"){if(et(e)||Array.isArray(e)&&e.every(et)||Xn(e)&&!e)return{type:r,message:et(e)?e:"",ref:n}}var kl=e=>Xo(e)&&!Zs(e)?e:{value:e,message:""},T1=async(e,n,r,i,s,d)=>{const{ref:u,refs:m,required:h,maxLength:p,minLength:g,min:v,max:_,pattern:z,validate:N,name:S,valueAsNumber:O,mount:E}=e._f,x=de(r,S);if(!E||n.has(S))return{};const w=m?m[0]:u,$=ne=>{s&&w.reportValidity&&(w.setCustomValidity(Xn(ne)?"":ne||""),w.reportValidity())},D={},H=$m(u),Z=Xi(u),ee=H||Z,se=(O||Om(u))&&To(u.value)&&To(x)||qs(u)&&u.value===""||x===""||Array.isArray(x)&&!x.length,$e=o0.bind(null,S,i,D),ce=(ne,we,De,Fe=er.maxLength,M=er.minLength)=>{const G=ne?we:De;D[S]={type:ne?Fe:M,message:G,ref:u,...$e(ne?Fe:M,G)}};if(d?!Array.isArray(x)||!x.length:h&&(!ee&&(se||In(x))||Xn(x)&&!x||Z&&!a0(m).isValid||H&&!i0(m).isValid)){const{value:ne,message:we}=et(h)?{value:!!h,message:h}:kl(h);if(ne&&(D[S]={type:er.required,message:we,ref:w,...$e(er.required,we)},!i))return $(we),D}if(!se&&(!In(v)||!In(_))){let ne,we;const De=kl(_),Fe=kl(v);if(!In(x)&&!isNaN(x)){const M=u.valueAsNumber||x&&+x;In(De.value)||(ne=M>De.value),In(Fe.value)||(we=M<Fe.value)}else{const M=u.valueAsDate||new Date(x),G=Te=>new Date(new Date().toDateString()+" "+Te),ie=u.type=="time",Se=u.type=="week";et(De.value)&&x&&(ne=ie?G(x)>G(De.value):Se?x>De.value:M>new Date(De.value)),et(Fe.value)&&x&&(we=ie?G(x)<G(Fe.value):Se?x<Fe.value:M<new Date(Fe.value))}if((ne||we)&&(ce(!!ne,De.message,Fe.message,er.max,er.min),!i))return $(D[S].message),D}if((p||g)&&!se&&(et(x)||d&&Array.isArray(x))){const ne=kl(p),we=kl(g),De=!In(ne.value)&&x.length>+ne.value,Fe=!In(we.value)&&x.length<+we.value;if((De||Fe)&&(ce(De,ne.message,we.message),!i))return $(D[S].message),D}if(z&&!se&&et(x)){const{value:ne,message:we}=kl(z);if(Zs(ne)&&!x.match(ne)&&(D[S]={type:er.pattern,message:we,ref:u,...$e(er.pattern,we)},!i))return $(we),D}if(N){if(Tn(N)){const ne=await N(x,r),we=S1(ne,w);if(we&&(D[S]={...we,...$e(er.validate,we.message)},!i))return $(we.message),D}else if(Xo(N)){let ne={};for(const we in N){if(!Sn(ne)&&!i)break;const De=S1(await N[we](x,r),w,we);De&&(ne={...De,...$e(we,De.message)},$(De.message),i&&(D[S]=ne))}if(!Sn(ne)&&(D[S]={ref:w,...ne},!i))return D}}return $(!0),D};const zC={mode:wt.onSubmit,reValidateMode:wt.onChange,shouldFocusError:!0};function jC(e={}){let n={...zC,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Tn(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},s=Xo(n.defaultValues)||Xo(n.values)?Zo(n.defaultValues||n.values)||{}:{},d=n.shouldUnregister?{}:Zo(s),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},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:k1(),state:k1()},N=n.criteriaMode===wt.all,S=T=>B=>{clearTimeout(p),p=setTimeout(T,B)},O=async T=>{if(!u.keepIsValid&&!n.disabled&&(v.isValid||_.isValid||T)){let B;n.resolver?(B=Sn((await ee()).errors),E()):B=await $e(i,!0),B!==r.isValid&&z.state.next({isValid:B})}},E=(T,B)=>{!n.disabled&&(v.isValidating||v.validatingFields||_.isValidating||_.validatingFields)&&((T||Array.from(m.mount)).forEach(F=>{F&&(B?fo(r.validatingFields,F,B):Po(r.validatingFields,F))}),z.state.next({validatingFields:r.validatingFields,isValidating:!Sn(r.validatingFields)}))},x=(T,B=[],F,te,re=!0,oe=!0)=>{if(te&&F&&!n.disabled){if(u.action=!0,oe&&Array.isArray(de(i,T))){const ve=F(de(i,T),te.argA,te.argB);re&&fo(i,T,ve)}if(oe&&Array.isArray(de(r.errors,T))){const ve=F(de(r.errors,T),te.argA,te.argB);re&&fo(r.errors,T,ve),yC(r.errors,T)}if((v.touchedFields||_.touchedFields)&&oe&&Array.isArray(de(r.touchedFields,T))){const ve=F(de(r.touchedFields,T),te.argA,te.argB);re&&fo(r.touchedFields,T,ve)}(v.dirtyFields||_.dirtyFields)&&(r.dirtyFields=gl(s,d)),z.state.next({name:T,isDirty:ne(T,B),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else fo(d,T,B)},w=(T,B)=>{fo(r.errors,T,B),z.state.next({errors:r.errors})},$=T=>{r.errors=T,z.state.next({errors:r.errors,isValid:!1})},D=(T,B,F,te)=>{const re=de(i,T);if(re){const oe=de(d,T,To(F)?de(s,T):F);To(oe)||te&&te.defaultChecked||B?fo(d,T,B?oe:x1(re._f)):Fe(T,oe),u.mount&&!u.action&&O()}},H=(T,B,F,te,re)=>{let oe=!1,ve=!1;const eo={name:T};if(!n.disabled){if(!F||te){(v.isDirty||_.isDirty)&&(ve=r.isDirty,r.isDirty=eo.isDirty=ne(),oe=ve!==eo.isDirty);const io=zt(de(s,T),B);ve=!!de(r.dirtyFields,T),io?Po(r.dirtyFields,T):fo(r.dirtyFields,T,!0),eo.dirtyFields=r.dirtyFields,oe=oe||(v.dirtyFields||_.dirtyFields)&&ve!==!io}if(F){const io=de(r.touchedFields,T);io||(fo(r.touchedFields,T,F),eo.touchedFields=r.touchedFields,oe=oe||(v.touchedFields||_.touchedFields)&&io!==F)}oe&&re&&z.state.next(eo)}return oe?eo:{}},Z=(T,B,F,te)=>{const re=de(r.errors,T),oe=(v.isValid||_.isValid)&&Xn(B)&&r.isValid!==B;if(n.delayError&&F?(h=S(()=>w(T,F)),h(n.delayError)):(clearTimeout(p),h=null,F?fo(r.errors,T,F):Po(r.errors,T)),(F?!zt(re,F):re)||!Sn(te)||oe){const ve={...te,...oe&&Xn(B)?{isValid:B}:{},errors:r.errors,name:T};r={...r,...ve},z.state.next(ve)}},ee=async T=>(E(T,!0),await n.resolver(d,n.context,pC(T||m.mount,i,n.criteriaMode,n.shouldUseNativeValidation))),se=async T=>{const{errors:B}=await ee(T);if(E(T),T)for(const F of T){const te=de(B,F);te?fo(r.errors,F,te):Po(r.errors,F)}else r.errors=B;return B},$e=async(T,B,F={valid:!0})=>{for(const te in T){const re=T[te];if(re){const{_f:oe,...ve}=re;if(oe){const eo=m.array.has(oe.name),io=re._f&&kC(re._f);io&&v.validatingFields&&E([oe.name],!0);const on=await T1(re,m.disabled,d,N,n.shouldUseNativeValidation&&!B,eo);if(io&&v.validatingFields&&E([oe.name]),on[oe.name]&&(F.valid=!1,B||e.shouldUseNativeValidation))break;!B&&(de(on,oe.name)?eo?wC(r.errors,on,oe.name):fo(r.errors,oe.name,on[oe.name]):Po(r.errors,oe.name))}!Sn(ve)&&await $e(ve,B,F)}}return F.valid},ce=()=>{for(const T of m.unMount){const B=de(i,T);B&&(B._f.refs?B._f.refs.every(F=>!tb(F)):!tb(B._f.ref))&&Co(T)}m.unMount=new Set},ne=(T,B)=>!n.disabled&&(T&&B&&fo(d,T,B),!zt(C(),s)),we=(T,B,F)=>Fb(T,m,{...u.mount?d:To(B)?s:et(T)?{[T]:B}:B},F,B),De=T=>Am(de(u.mount?d:s,T,n.shouldUnregister?de(s,T,[]):[])),Fe=(T,B,F={})=>{const te=de(i,T);let re=B;if(te){const oe=te._f;oe&&(!oe.disabled&&fo(d,T,l0(B,oe)),re=qs(oe.ref)&&In(B)?"":B,t0(oe.ref)?[...oe.ref.options].forEach(ve=>ve.selected=re.includes(ve.value)):oe.refs?Xi(oe.ref)?oe.refs.forEach(ve=>{(!ve.defaultChecked||!ve.disabled)&&(Array.isArray(re)?ve.checked=!!re.find(eo=>eo===ve.value):ve.checked=re===ve.value||!!re)}):oe.refs.forEach(ve=>ve.checked=ve.value===re):Om(oe.ref)?oe.ref.value="":(oe.ref.value=re,oe.ref.type||z.state.next({name:T,values:Zo(d)})))}(F.shouldDirty||F.shouldTouch)&&H(T,re,F.shouldTouch,F.shouldDirty,!0),F.shouldValidate&&Te(T)},M=(T,B,F)=>{for(const te in B){if(!B.hasOwnProperty(te))return;const re=B[te],oe=T+"."+te,ve=de(i,oe);(m.array.has(T)||Xo(re)||ve&&!ve._f)&&!va(re)?M(oe,re,F):Fe(oe,re,F)}},G=(T,B,F={})=>{const te=de(i,T),re=m.array.has(T),oe=Zo(B);fo(d,T,oe),re?(z.array.next({name:T,values:Zo(d)}),(v.isDirty||v.dirtyFields||_.isDirty||_.dirtyFields)&&F.shouldDirty&&z.state.next({name:T,dirtyFields:gl(s,d),isDirty:ne(T,oe)})):te&&!te._f&&!In(oe)?M(T,oe,F):Fe(T,oe,F),z1(T,m)?z.state.next({...r,name:T,values:Zo(d)}):z.state.next({name:u.mount?T:void 0,values:Zo(d)})},ie=async T=>{u.mount=!0;const B=T.target;let F=B.name,te=!0;const re=de(i,F),oe=io=>{te=Number.isNaN(io)||va(io)&&isNaN(io.getTime())||zt(io,de(d,F,io))},ve=y1(n.mode),eo=y1(n.reValidateMode);if(re){let io,on;const Bt=B.type?x1(re._f):Jy(T),Tt=T.type===Vs.BLUR||T.type===Vs.FOCUS_OUT,Yr=!vC(re._f)&&!n.resolver&&!de(r.errors,F)&&!re._f.deps||xC(Tt,de(r.touchedFields,F),r.isSubmitted,eo,ve),an=z1(F,m,Tt);fo(d,F,Bt),Tt?(!B||!B.readOnly)&&(re._f.onBlur&&re._f.onBlur(T),h&&h(0)):re._f.onChange&&re._f.onChange(T);const at=H(F,Bt,Tt),wn=!Sn(at)||an;if(!Tt&&z.state.next({name:F,type:T.type,values:Zo(d)}),Yr)return(v.isValid||_.isValid)&&(n.mode==="onBlur"?Tt&&O():Tt||O()),wn&&z.state.next({name:F,...an?{}:at});if(!Tt&&an&&z.state.next({...r}),n.resolver){const{errors:Wi}=await ee([F]);if(E([F]),oe(Bt),te){const bd=j1(r.errors,i,F),Qi=j1(Wi,i,bd.name||F);io=Qi.error,F=Qi.name,on=Sn(Wi)}}else E([F],!0),io=(await T1(re,m.disabled,d,N,n.shouldUseNativeValidation))[F],E([F]),oe(Bt),te&&(io?on=!1:(v.isValid||_.isValid)&&(on=await $e(i,!0)));te&&(re._f.deps&&(!Array.isArray(re._f.deps)||re._f.deps.length>0)&&Te(re._f.deps),Z(F,on,io,at))}},Se=(T,B)=>{if(de(r.errors,B)&&T.focus)return T.focus(),1},Te=async(T,B={})=>{let F,te;const re=Mi(T);if(n.resolver){const oe=await se(To(T)?T:re);F=Sn(oe),te=T?!re.some(ve=>de(oe,ve)):F}else T?(te=(await Promise.all(re.map(async oe=>{const ve=de(i,oe);return await $e(ve&&ve._f?{[oe]:ve}:ve)}))).every(Boolean),!(!te&&!r.isValid)&&O()):te=F=await $e(i);return z.state.next({...!et(T)||(v.isValid||_.isValid)&&F!==r.isValid?{}:{name:T},...n.resolver||!T?{isValid:F}:{},errors:r.errors}),B.shouldFocus&&!te&&Ii(i,Se,T?re:m.mount),te},C=(T,B)=>{let F={...u.mount?d:s};return B&&(F=n0(B.dirtyFields?r.dirtyFields:r.touchedFields,F)),To(T)?F:et(T)?de(F,T):T.map(te=>de(F,te))},P=(T,B)=>({invalid:!!de((B||r).errors,T),isDirty:!!de((B||r).dirtyFields,T),error:de((B||r).errors,T),isValidating:!!de(r.validatingFields,T),isTouched:!!de((B||r).touchedFields,T)}),le=T=>{T&&Mi(T).forEach(B=>Po(r.errors,B)),z.state.next({errors:T?r.errors:{}})},fe=(T,B,F)=>{const te=(de(i,T,{_f:{}})._f||{}).ref,re=de(r.errors,T)||{},{ref:oe,message:ve,type:eo,...io}=re;fo(r.errors,T,{...io,...B,ref:te}),z.state.next({name:T,errors:r.errors,isValid:!1}),F&&F.shouldFocus&&te&&te.focus&&te.focus()},Ce=(T,B)=>Tn(T)?z.state.subscribe({next:F=>"values"in F&&T(we(void 0,B),F)}):we(T,B,!0),Ne=T=>z.state.subscribe({next:B=>{_C(T.name,B.name,T.exact)&&gC(B,T.formState||v,ke,T.reRenderRoot)&&T.callback({values:{...d},...r,...B,defaultValues:s})}}).unsubscribe,Ge=T=>(u.mount=!0,_={..._,...T.formState},Ne({...T,formState:{...g,...T.formState}})),Co=(T,B={})=>{for(const F of T?Mi(T):m.mount)m.mount.delete(F),m.array.delete(F),B.keepValue||(Po(i,F),Po(d,F)),!B.keepError&&Po(r.errors,F),!B.keepDirty&&Po(r.dirtyFields,F),!B.keepTouched&&Po(r.touchedFields,F),!B.keepIsValidating&&Po(r.validatingFields,F),!n.shouldUnregister&&!B.keepDefaultValue&&Po(s,F);z.state.next({values:Zo(d)}),z.state.next({...r,...B.keepDirty?{isDirty:ne()}:{}}),!B.keepIsValid&&O()},_o=({disabled:T,name:B})=>{if(Xn(T)&&u.mount||T||m.disabled.has(B)){const re=m.disabled.has(B)!==!!T;T?m.disabled.add(B):m.disabled.delete(B),re&&u.mount&&!u.action&&O()}},vt=(T,B={})=>{let F=de(i,T);const te=Xn(B.disabled)||Xn(n.disabled);return fo(i,T,{...F||{},_f:{...F&&F._f?F._f:{ref:{name:T}},name:T,mount:!0,...B}}),m.mount.add(T),F?_o({disabled:Xn(B.disabled)?B.disabled:n.disabled,name:T}):D(T,!0,B.value),{...te?{disabled:B.disabled||n.disabled}:{},...n.progressive?{required:!!B.required,min:Li(B.min),max:Li(B.max),minLength:Li(B.minLength),maxLength:Li(B.maxLength),pattern:Li(B.pattern)}:{},name:T,onChange:ie,onBlur:ie,ref:re=>{if(re){vt(T,B),F=de(i,T);const oe=To(re.value)&&re.querySelectorAll&&re.querySelectorAll("input,select,textarea")[0]||re,ve=fC(oe),eo=F._f.refs||[];if(ve?eo.find(io=>io===oe):oe===F._f.ref)return;fo(i,T,{_f:{...F._f,...ve?{refs:[...eo.filter(tb),oe,...Array.isArray(de(s,T))?[{}]:[]],ref:{type:oe.type,name:T}}:{ref:oe}}}),D(T,!1,void 0,oe)}else F=de(i,T,{}),F._f&&(F._f.mount=!1),(n.shouldUnregister||B.shouldUnregister)&&!(Xy(m.array,T)&&u.action)&&m.unMount.add(T)}}},St=()=>n.shouldFocusError&&Ii(i,Se,m.mount),Pr=T=>{Xn(T)&&(z.state.next({disabled:T}),Ii(i,(B,F)=>{const te=de(i,F);te&&(B.disabled=te._f.disabled||T,Array.isArray(te._f.refs)&&te._f.refs.forEach(re=>{re.disabled=te._f.disabled||T}))},0,!1))},Gr=(T,B)=>async F=>{let te;F&&(F.preventDefault&&F.preventDefault(),F.persist&&F.persist());let re=Zo(d);if(z.state.next({isSubmitting:!0}),n.resolver){const{errors:oe,values:ve}=await ee();E(),r.errors=oe,re=Zo(ve)}else await $e(i);if(m.disabled.size)for(const oe of m.disabled)Po(re,oe);if(Po(r.errors,"root"),Sn(r.errors)){z.state.next({errors:{}});try{await T(re,F)}catch(oe){te=oe}}else B&&await B({...r.errors},F),St(),setTimeout(St);if(z.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Sn(r.errors)&&!te,submitCount:r.submitCount+1,errors:r.errors}),te)throw te},gt=(T,B={})=>{de(i,T)&&(To(B.defaultValue)?G(T,Zo(de(s,T))):(G(T,B.defaultValue),fo(s,T,Zo(B.defaultValue))),B.keepTouched||Po(r.touchedFields,T),B.keepDirty||(Po(r.dirtyFields,T),r.isDirty=B.defaultValue?ne(T,Zo(de(s,T))):ne()),B.keepError||(Po(r.errors,T),v.isValid&&O()),z.state.next({...r}))},Nt=(T,B={})=>{const F=T?Zo(T):s,te=Zo(F),re=Sn(T),oe=re?s:te;if(B.keepDefaultValues||(s=F),!B.keepValues){if(B.keepDirtyValues){const ve=new Set([...m.mount,...Object.keys(gl(s,d))]);for(const eo of Array.from(ve)){const io=de(r.dirtyFields,eo),on=de(d,eo),Bt=de(oe,eo);io&&!To(on)?fo(oe,eo,on):!io&&!To(Bt)&&G(eo,Bt)}}else{if(Tm&&To(T))for(const ve of m.mount){const eo=de(i,ve);if(eo&&eo._f){const io=Array.isArray(eo._f.refs)?eo._f.refs[0]:eo._f.ref;if(qs(io)){const on=io.closest("form");if(on){on.reset();break}}}}if(B.keepFieldsRef)for(const ve of m.mount)G(ve,de(oe,ve));else i={}}d=n.shouldUnregister?B.keepDefaultValues?Zo(s):{}:Zo(oe),z.array.next({values:{...oe}}),z.state.next({values:{...oe}})}m={mount:B.keepDirtyValues?m.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!v.isValid||!!B.keepIsValid||!!B.keepDirtyValues||!n.shouldUnregister&&!Sn(oe),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:re?!1:B.keepDirty?r.isDirty:!!(B.keepDefaultValues&&!zt(T,s)),isSubmitted:B.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:re?{}:B.keepDirtyValues?B.keepDefaultValues&&d?gl(s,d):r.dirtyFields:B.keepDefaultValues&&T?gl(s,T):B.keepDirty?r.dirtyFields:{},touchedFields:B.keepTouched?r.touchedFields:{},errors:B.keepErrors?r.errors:{},isSubmitSuccessful:B.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},fr=(T,B)=>Nt(Tn(T)?T(d):T,{...n.resetOptions,...B}),he=(T,B={})=>{const F=de(i,T),te=F&&F._f;if(te){const re=te.refs?te.refs[0]:te.ref;re.focus&&setTimeout(()=>{re.focus(),B.shouldSelect&&Tn(re.select)&&re.select()})}},ke=T=>{r={...r,...T}},lo={control:{register:vt,unregister:Co,getFieldState:P,handleSubmit:Gr,setError:fe,_subscribe:Ne,_runSchema:ee,_updateIsValidating:E,_focusError:St,_getWatch:we,_getDirty:ne,_setValid:O,_setFieldArray:x,_setDisabledField:_o,_setErrors:$,_getFieldArray:De,_reset:Nt,_resetDefaultValues:()=>Tn(n.defaultValues)&&n.defaultValues().then(T=>{fr(T,n.resetOptions),z.state.next({isLoading:!1})}),_removeUnmounted:ce,_disableForm:Pr,_subjects:z,_proxyFormState:v,get _fields(){return i},get _formValues(){return d},get _state(){return u},set _state(T){u=T},get _defaultValues(){return s},get _names(){return m},set _names(T){m=T},get _formState(){return r},get _options(){return n},set _options(T){n={...n,...T}}},subscribe:Ge,trigger:Te,register:vt,handleSubmit:Gr,watch:Ce,setValue:G,getValues:C,reset:fr,resetField:gt,clearErrors:le,unregister:Co,setError:fe,setFocus:he,getFieldState:P};return{...lo,formControl:lo}}function ld(e={}){const n=ae.useRef(void 0),r=ae.useRef(void 0),[i,s]=ae.useState({isDirty:!1,isValidating:!1,isLoading:Tn(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:Tn(e.defaultValues)?void 0:e.defaultValues});if(!n.current)if(e.formControl)n.current={...e.formControl,formState:i},e.defaultValues&&!Tn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:u,...m}=jC(e);n.current={...m,formState:i}}const d=n.current.control;return d._options=e,Lm(()=>{const u=d._subscribe({formState:d._proxyFormState,callback:()=>s({...d._formState}),reRenderRoot:!0});return s(m=>({...m,isReady:!0})),d._formState.isReady=!0,u},[d]),ae.useEffect(()=>d._disableForm(e.disabled),[d,e.disabled]),ae.useEffect(()=>{e.mode&&(d._options.mode=e.mode),e.reValidateMode&&(d._options.reValidateMode=e.reValidateMode)},[d,e.mode,e.reValidateMode]),ae.useEffect(()=>{e.errors&&(d._setErrors(e.errors),d._focusError())},[d,e.errors]),ae.useEffect(()=>{e.shouldUnregister&&d._subjects.state.next({values:d._getWatch()})},[d,e.shouldUnregister]),ae.useEffect(()=>{if(d._proxyFormState.isDirty){const u=d._getDirty();u!==i.isDirty&&d._subjects.state.next({isDirty:u})}},[d,i.isDirty]),ae.useEffect(()=>{var u;e.values&&!zt(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,s(m=>({...m}))):d._resetDefaultValues()},[d,e.values]),ae.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=ae.useMemo(()=>Qy(i,d),[d,i]),n.current}function c0(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 s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)n.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r}var Zi;(function(e){e.event="event",e.props="prop"})(Zi||(Zi={}));function Ir(){}function SC(e){var n,r=void 0;return function(){for(var i=[],s=arguments.length;s--;)i[s]=arguments[s];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 Pi(e){return!!(e||"").match(/\d/)}function zl(e){return e==null}function TC(e){return typeof e=="number"&&isNaN(e)}function s0(e){return zl(e)||TC(e)||typeof e=="number"&&!isFinite(e)}function d0(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function AC(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function CC(e,n,r){var i=AC(r),s=e.search(/[1-9]/);return s=s===-1?e.length:s,e.substring(0,s)+e.substring(s,e.length).replace(i,"$1"+n)}function EC(e){var n=j.useRef(e);n.current=e;var r=j.useRef(function(){for(var i=[],s=arguments.length;s--;)i[s]=arguments[s];return n.current.apply(n,i)});return r.current}function Nm(e,n){n===void 0&&(n=!0);var r=e[0]==="-",i=r&&n;e=e.replace("-","");var s=e.split("."),d=s[0],u=s[1]||"";return{beforeDecimal:d,afterDecimal:u,hasNegation:r,addNegation:i}}function LC(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",s=r[1]||"";return(n?"-":"")+i+(s?"."+s:"")}function u0(e,n,r){for(var i="",s=r?"0":"",d=0;d<=n-1;d++)i+=e[d]||s;return i}function A1(e,n){return Array(n+1).join(e)}function f0(e){var n=e+"",r=n[0]==="-"?"-":"";r&&(n=n.substring(1));var i=n.split(/[eE]/g),s=i[0],d=i[1];if(d=Number(d),!d)return r+s;s=s.replace(".","");var u=1+d,m=s.length;return u<0?s="0."+A1("0",Math.abs(u))+s:u>=m?s=s+A1("0",u-m):s=(s.substring(0,u)||"0")+"."+s.substring(u),r+s}function C1(e,n,r){if(["","-"].indexOf(e)!==-1)return e;var i=(e.indexOf(".")!==-1||r)&&n,s=Nm(e),d=s.beforeDecimal,u=s.afterDecimal,m=s.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(S,O,E){return S.length>E?(Number(S[0])+Number(O)).toString()+S.substring(1,S.length):O+S},g[0]));var _=u0(g[1]||"",n,r),z=m?"-":"",N=i?".":"";return""+z+v+N+_}function pa(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 b0=SC(function(e,n){for(var r=0,i=0,s=e.length,d=n.length;e[r]===n[r]&&r<s;)r++;for(;e[s-1-i]===n[d-1-i]&&d-i>r&&s-i>r;)i++;return{from:{start:r,end:s-i},to:{start:r,end:d-i}}}),OC=function(e,n){var r=Math.min(e.selectionStart,n);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:n}}};function $C(e,n,r){return Math.min(Math.max(e,n),r)}function rb(e){return Math.max(e.selectionStart,e.selectionEnd)}function NC(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function BC(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function RC(e){var n=e.currentValue,r=e.formattedValue,i=e.currentValueIndex,s=e.formattedValueIndex;return n[i]===r[s]}function DC(e,n,r,i,s,d,u){u===void 0&&(u=RC);var m=s.findIndex(function($){return $}),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 N=0,S=g;N<S;N++){var O=u({currentValue:r,lastValue:n,formattedValue:e,currentValueIndex:z,formattedValueIndex:N});if(O&&v[N]!==!0){_[z]=N,v[N]=!0;break}}}for(var E=i;E<p&&(_[E]===-1||!d(r[E]));)E++;var x=E===p||_[E]===-1?g:_[E];for(E=i-1;E>0&&_[E]===-1;)E--;var w=E===-1||_[E]===-1?0:_[E]+1;return w>x?x:i-w<x-i?w:x}function E1(e,n,r,i){var s=e.length;if(n=$C(n,0,s),i==="left"){for(;n>=0&&!r[n];)n--;n===-1&&(n=r.indexOf(!0))}else{for(;n<=s&&!r[n];)n++;n>s&&(n=r.lastIndexOf(!0))}return n===-1&&(n=s),n}function MC(e){for(var n=Array.from({length:e.length+1}).map(function(){return!0}),r=0,i=n.length;r<i;r++)n[r]=!!(Pi(e[r])||Pi(e[r-1]));return n}function m0(e,n,r,i,s,d){d===void 0&&(d=Ir);var u=EC(function(N,S){var O,E;return s0(N)?(E="",O=""):typeof N=="number"||S?(E=typeof N=="number"?f0(N):N,O=i(E)):(E=s(N,void 0),O=i(E)),{formattedValue:O,numAsString:E}}),m=j.useState(function(){return u(zl(e)?n:e,r)}),h=m[0],p=m[1],g=function(N,S){N.formattedValue!==h.formattedValue&&p({formattedValue:N.formattedValue,numAsString:N.value}),d(N,S)},v=e,_=r;zl(e)&&(v=h.numAsString,_=!0);var z=u(v,_);return j.useMemo(function(){p(z)},[z.formattedValue]),[h,g]}function IC(e){return e.replace(/[^0-9]/g,"")}function UC(e){return e}function HC(e){var n=e.type;n===void 0&&(n="text");var r=e.displayType;r===void 0&&(r="input");var i=e.customInput,s=e.renderText,d=e.getInputRef,u=e.format;u===void 0&&(u=UC);var m=e.removeFormatting;m===void 0&&(m=IC);var h=e.defaultValue,p=e.valueIsNumericString,g=e.onValueChange,v=e.isAllowed,_=e.onChange;_===void 0&&(_=Ir);var z=e.onKeyDown;z===void 0&&(z=Ir);var N=e.onMouseUp;N===void 0&&(N=Ir);var S=e.onFocus;S===void 0&&(S=Ir);var O=e.onBlur;O===void 0&&(O=Ir);var E=e.value,x=e.getCaretBoundary;x===void 0&&(x=MC);var w=e.isValidInputCharacter;w===void 0&&(w=Pi);var $=e.isCharacterSame,D=c0(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),H=m0(E,h,!!p,u,m,g),Z=H[0],ee=Z.formattedValue,se=Z.numAsString,$e=H[1],ce=j.useRef(),ne=j.useRef({formattedValue:ee,numAsString:se}),we=function(he,ke){ne.current={formattedValue:he.formattedValue,numAsString:he.value},$e(he,ke)},De=j.useState(!1),Fe=De[0],M=De[1],G=j.useRef(null),ie=j.useRef({setCaretTimeout:null,focusTimeout:null});j.useEffect(function(){return M(!0),function(){clearTimeout(ie.current.setCaretTimeout),clearTimeout(ie.current.focusTimeout)}},[]);var Se=u,Te=function(he,ke){var Re=parseFloat(ke);return{formattedValue:he,value:ke,floatValue:isNaN(Re)?void 0:Re}},C=function(he,ke,Re){he.selectionStart===0&&he.selectionEnd===he.value.length||(pa(he,ke),ie.current.setCaretTimeout=setTimeout(function(){he.value===Re&&he.selectionStart!==ke&&pa(he,ke)},0))},P=function(he,ke,Re){return E1(he,ke,x(he),Re)},le=function(he,ke,Re){var lo=x(ke),T=DC(ke,ee,he,Re,lo,w,$);return T=E1(ke,T,lo),T},fe=function(he){var ke=he.formattedValue;ke===void 0&&(ke="");var Re=he.input,lo=he.source,T=he.event,B=he.numAsString,F;if(Re){var te=he.inputValue||Re.value,re=rb(Re);Re.value=ke,F=le(te,ke,re),F!==void 0&&C(Re,F,ke)}ke!==ee&&we(Te(ke,B),{event:T,source:lo})};j.useEffect(function(){var he=ne.current,ke=he.formattedValue,Re=he.numAsString;(ee!==ke||se!==Re)&&we(Te(ee,se),{event:void 0,source:Zi.props})},[ee,se]);var Ce=G.current?rb(G.current):void 0,Ne=typeof window<"u"?j.useLayoutEffect:j.useEffect;Ne(function(){var he=G.current;if(ee!==ne.current.formattedValue&&he){var ke=le(ne.current.formattedValue,ee,Ce);he.value=ee,C(he,ke,ee)}},[ee]);var Ge=function(he,ke,Re){var lo=ke.target,T=ce.current?OC(ce.current,lo.selectionEnd):b0(ee,he),B=Object.assign(Object.assign({},T),{lastValue:ee}),F=m(he,B),te=Se(F);if(F=m(te,void 0),v&&!v(Te(te,F))){var re=ke.target,oe=rb(re),ve=le(he,ee,oe);return re.value=ee,C(re,ve,ee),!1}return fe({formattedValue:te,numAsString:F,inputValue:he,event:ke,source:Re,input:ke.target}),!0},Co=function(he,ke){ke===void 0&&(ke=0);var Re=he.selectionStart,lo=he.selectionEnd;ce.current={selectionStart:Re,selectionEnd:lo+ke}},_o=function(he){var ke=he.target,Re=ke.value,lo=Ge(Re,he,Zi.event);lo&&_(he),ce.current=void 0},vt=function(he){var ke=he.target,Re=he.key,lo=ke.selectionStart,T=ke.selectionEnd,B=ke.value;B===void 0&&(B="");var F;Re==="ArrowLeft"||Re==="Backspace"?F=Math.max(lo-1,0):Re==="ArrowRight"?F=Math.min(lo+1,B.length):Re==="Delete"&&(F=lo);var te=0;Re==="Delete"&&lo===T&&(te=1);var re=Re==="ArrowLeft"||Re==="ArrowRight";if(F===void 0||lo!==T&&!re){z(he),Co(ke,te);return}var oe=F;if(re){var ve=Re==="ArrowLeft"?"left":"right";oe=P(B,F,ve),oe!==F&&he.preventDefault()}else Re==="Delete"&&!w(B[F])?oe=P(B,F,"right"):Re==="Backspace"&&!w(B[F])&&(oe=P(B,F,"left"));oe!==F&&C(ke,oe,B),z(he),Co(ke,te)},St=function(he){var ke=he.target,Re=function(){var lo=ke.selectionStart,T=ke.selectionEnd,B=ke.value;if(B===void 0&&(B=""),lo===T){var F=P(B,lo);F!==lo&&C(ke,F,B)}};Re(),requestAnimationFrame(function(){Re()}),N(he),Co(ke)},Pr=function(he){he.persist&&he.persist();var ke=he.target,Re=he.currentTarget;G.current=ke,ie.current.focusTimeout=setTimeout(function(){var lo=ke.selectionStart,T=ke.selectionEnd,B=ke.value;B===void 0&&(B="");var F=P(B,lo);F!==lo&&!(lo===0&&T===B.length)&&C(ke,F,B),S(Object.assign(Object.assign({},he),{currentTarget:Re}))},0)},Gr=function(he){G.current=null,clearTimeout(ie.current.focusTimeout),clearTimeout(ie.current.setCaretTimeout),O(he)},gt=Fe&&NC()?"numeric":void 0,Nt=Object.assign({inputMode:gt},D,{type:n,value:ee,onChange:_o,onKeyDown:vt,onMouseUp:St,onFocus:Pr,onBlur:Gr});if(r==="text")return s?ae.createElement(ae.Fragment,null,s(ee,D)||null):ae.createElement("span",Object.assign({},D,{ref:d}),ee);if(i){var fr=i;return ae.createElement(fr,Object.assign({},Nt,{ref:d}))}return ae.createElement("input",Object.assign({},Nt,{ref:d}))}function L1(e,n){var r=n.decimalScale,i=n.fixedDecimalScale,s=n.prefix;s===void 0&&(s="");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=id(n),p=h.thousandSeparator,g=h.decimalSeparator,v=r!==0&&e.indexOf(".")!==-1||r&&i,_=Nm(e,u),z=_.beforeDecimal,N=_.afterDecimal,S=_.addNegation;return r!==void 0&&(N=u0(N,r,!!i)),p&&(z=CC(z,p,m)),s&&(z=s+z),d&&(N=N+d),S&&(z="-"+z),e=z+(v&&g||"")+N,e}function id(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 FC(e,n){e===void 0&&(e="");var r=new RegExp("(-)"),i=new RegExp("(-)(.)*(-)"),s=r.test(e),d=i.test(e);return e=e.replace(/-/g,""),s&&!d&&n&&(e="-"+e),e}function KC(e,n){return new RegExp("(^-)|[0-9]|"+d0(e),"g")}function VC(e,n,r){return e===""?!0:!n?.match(/\d/)&&!r?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function qC(e,n,r){var i;n===void 0&&(n=BC(e));var s=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,_=id(r),z=_.allowedDecimalSeparators,N=_.decimalSeparator,S=e[v]===N;if(Pi(e)&&(e===d||e===u)&&n.lastValue==="")return e;if(v-g===1&&z.indexOf(e[g])!==-1){var O=m===0?"":N;e=e.substring(0,g)+O+e.substring(g+1,e.length)}var E=function(G,ie,Se){var Te=!1,C=!1;d.startsWith("-")?Te=!1:G.startsWith("--")?(Te=!1,C=!0):u.startsWith("-")&&G.length===u.length?Te=!1:G[0]==="-"&&(Te=!0);var P=Te?1:0;return C&&(P=2),P&&(G=G.substring(P),ie-=P,Se-=P),{value:G,start:ie,end:Se,hasNegation:Te}},x=E(e,g,v),w=x.hasNegation;i=x,e=i.value,g=i.start,v=i.end;var $=E(n.lastValue,h.start,h.end),D=$.start,H=$.end,Z=$.value,ee=e.substring(g,v);e.length&&Z.length&&(D>Z.length-u.length||H<d.length)&&!(ee&&u.startsWith(ee))&&(e=Z);var se=0;e.startsWith(d)?se+=d.length:g<d.length&&(se=g),e=e.substring(se),v-=se;var $e=e.length,ce=e.length-u.length;e.endsWith(u)?$e=ce:(v>ce||v>e.length-u.length)&&($e=v),e=e.substring(0,$e),e=FC(w?"-"+e:e,s),e=(e.match(KC(N))||[]).join("");var ne=e.indexOf(N);e=e.replace(new RegExp(d0(N),"g"),function(G,ie){return ie===ne?".":""});var we=Nm(e,s),De=we.beforeDecimal,Fe=we.afterDecimal,M=we.addNegation;return p.end-p.start<h.end-h.start&&De===""&&S&&!parseFloat(Fe)&&(e=M?"-":""),e}function ZC(e,n){var r=n.prefix;r===void 0&&(r="");var i=n.suffix;i===void 0&&(i="");var s=Array.from({length:e.length+1}).map(function(){return!0}),d=e[0]==="-";s.fill(!1,0,r.length+(d?1:0));var u=e.length;return s.fill(!1,u-i.length+1,u+1),s}function PC(e){var n=id(e),r=n.thousandSeparator,i=n.decimalSeparator,s=e.prefix;s===void 0&&(s="");var d=e.allowNegative;if(d===void 0&&(d=!0),r===i)throw new Error(`
25954
+ }`;const c8=ym.createTheme("ecl-eu",{GLOBAL:i8,"KOL-ACCORDION":_T,"KOL-ALERT":xT,"KOL-BADGE":yT,"KOL-BREADCRUMB":wT,"KOL-BUTTON":jT,"KOL-BUTTON-LINK":zT,"KOL-CARD":ST,"KOL-COMBOBOX":TT,"KOL-DETAILS":AT,"KOL-DRAWER":CT,"KOL-FORM":ET,"KOL-HEADING":LT,"KOL-INPUT-CHECKBOX":OT,"KOL-INPUT-COLOR":$T,"KOL-INPUT-DATE":NT,"KOL-INPUT-EMAIL":BT,"KOL-INPUT-FILE":RT,"KOL-INPUT-NUMBER":DT,"KOL-INPUT-PASSWORD":MT,"KOL-INPUT-RADIO":IT,"KOL-INPUT-RANGE":UT,"KOL-INPUT-TEXT":FT,"KOL-LINK":KT,"KOL-LINK-BUTTON":HT,"KOL-MODAL":VT,"KOL-NAV":qT,"KOL-PAGINATION":ZT,"KOL-POPOVER-BUTTON":PT,"KOL-SELECT":GT,"KOL-SINGLE-SELECT":YT,"KOL-SKIP-NAV":JT,"KOL-SPIN":XT,"KOL-SPLIT-BUTTON":WT,"KOL-TABLE-STATEFUL":QT,"KOL-TABLE-STATELESS":e8,"KOL-TABS":o8,"KOL-TEXTAREA":n8,"KOL-TOAST-CONTAINER":t8,"KOL-TOOLBAR":r8,"KOL-TREE":l8,"KOL-TREE-ITEM":a8}),s8="3.1.2",Ub={version:s8},d8=()=>{const e={onClick:()=>history.back()};return a.jsxs(_n,{_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})]})},Vy=["default","ecl-ec","ecl-eu","unstyled"],wm=e=>Vy.find(n=>n===e)!==void 0,zm=[{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 u8(){const e=matchMedia("(max-width: 1023px)"),[n,r]=j.useState(e.matches),i=()=>{r(e.matches)};return j.useEffect(()=>(i(),e.addEventListener("change",i),()=>{e.removeEventListener("change",i)}),[e]),n}function f8({children:e}){return u8()?a.jsx(rn,{_label:"All components",class:"mt",children:e}):a.jsx("div",{className:"mt scrollable-container",children:e})}function s1({label:e,to:n,children:r}){const i=Dx(n),c=El(n),d=$4({path:c.pathname,end:!0});return a.jsx(Qo,{_label:e,_href:i,_active:!!d,children:r})}function b8({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(s1,{label:h,to:[i,m].join("/")},[i,d].join("/"))}),r=Object.entries(e).map(([i,c])=>a.jsx(s1,{label:i,to:i,children:n(i,c)},i));return a.jsx(f8,{children:a.jsx("nav",{children:a.jsx(Sx,{_label:"Navigation",class:"block",children:r})})})}const m8=({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}`}),h8=({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,N)=>{m(N)},v=()=>{const z=h(),N=z<=0?i.length-1:z-1;location.replace(`#${i[N]}`)},x=()=>{const z=h(),N=z===i.length-1?0:z+1;location.replace(`#${i[N]}`)};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(od,{_label:e})]}),a.jsx(m8,{buildDate:d,commitHash:u}),a.jsx(Jo,{_label:"Theme",_options:zm,_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:x}})]}),a.jsx(b8,{routes:r})]})})},p8=()=>{const e=rt();U5("#"+e.pathname)},jm=j.createContext(null),k8="https://public-ui.github.io/docs/components",v8="https://github.com/public-ui/kolibri/blob/develop/packages/samples/react/src/components",Ue="I am an error message!",yn="I am a hint.",V=e=>{const n=j.useContext(jm),r=rt(),i=r.pathname.split("/").slice(1),c=j.useMemo(()=>i[0]==="scenarios"?null:`${k8}/${i[0]}`,[r.hash]),d=j.useMemo(()=>i[0]==="scenarios"?null:`${v8}/${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(_e,{_href:d,_label:"Code",_target:"_blank"})}),c&&a.jsx("li",{children:a.jsx(_e,{_href:c,_label:"Documentation",_target:"_blank"})}),a.jsx("li",{children:a.jsx(_e,{_href:`#${r.pathname}?hideMenus`,_label:"Standalone example",_target:"_blank"})})]})]})]})},g8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Mi,{_label:"as an example",children:"e.g."})," an abbreviation."]}),a.jsxs("p",{children:["I am ",a.jsx(Mi,{children:"e.g."})," an abbreviation without label."]})]}),_8={abbr:{basic:g8}},x8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(rn,{_label:"Heading Accordion Tab 1 (open)",_open:!0,children:a.jsx(xn,{_label:"Combobox in Accordion",_suggestions:"['Herr','Frau','Firma']"})}),a.jsx(rn,{_label:"Heading Accordion Tab 2",children:"Contents Accordion Tab 2"}),a.jsx(rn,{_label:"Heading Accordion Tab 3 (deactivated)",_disabled:!0,children:"Contents Accordion Tab 3"}),a.jsx(rn,{_label:"Heading Accordion Tab 4 (disabled and open)",_disabled:!0,_open:!0,children:"Contents Accordion Tab 4"})]})]}),y8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(rn,{_label:"Heading Level 1",_level:1,children:"Contents Accordion Tab 1"}),a.jsx(rn,{_label:"Heading Level 2",_level:2,children:"Contents Accordion Tab 2"}),a.jsx(rn,{_label:"Heading Level 3",_level:3,children:"Contents Accordion Tab 3"}),a.jsx(rn,{_label:"Heading Level 4",_level:4,children:"Contents Accordion Tab 4"}),a.jsx(rn,{_label:"Heading Level 5",_level:5,children:"Contents Accordion Tab 5"}),a.jsx(rn,{_label:"Heading Level 6",_level:6,children:"Contents Accordion Tab 6"})]})]}),w8={accordion:{basic:x8,headlines:y8}},Ei=({level:e,type:n,variant:r})=>a.jsxs(a.Fragment,{children:[a.jsx(_n,{_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(_n,{_type:n,_variant:r,children:"In this alert, only the text without the heading is used."}),a.jsx(_n,{_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(_n,{_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(Ei,{level:1,type:"default",variant:e}),a.jsx(Ei,{level:2,type:"error",variant:e}),a.jsx(Ei,{level:3,type:"info",variant:e}),a.jsx(Ei,{level:4,type:"success",variant:e}),a.jsx(Ei,{level:5,type:"warning",variant:e})]}),z8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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"})]}),j8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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"})})]}),S8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_n,{_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!"})]})]})]})})]}),T8={alert:{basic:z8,"card-msg":j8,html:S8}},A8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(vs,{_src:"https://www.w3schools.com/howto/img_avatar.png",_label:"Elke Mustermann"}),a.jsx(vs,{_label:"Elke Mustermann "}),a.jsx(vs,{_label:"Marianne"}),a.jsx(vs,{_color:"#0000FF",_label:"Christian"})]})]}),C8={avatar:{basic:A8}},E8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wo,{_label:"black"}),a.jsx(wo,{_color:"#86ffc6",_label:"teal"}),a.jsx(wo,{_color:"#06539e",_label:"blue"}),a.jsx(wo,{_color:"#ae0000",_label:"red with icon",_icons:"codicon codicon-smiley"}),a.jsx(wo,{_color:"#8b008b",_label:"purple with icon",_icons:"codicon codicon-squirrel"})]})]}),Li=e=>({_label:e,_smartButton:{_ariaDescription:e,_icons:"codicon codicon-close",_label:"Remove",_on:{onClick:()=>alert("clicked")}}}),L8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wo,{...Li("black")}),a.jsx(wo,{_color:"#86ffc6",...Li("teal")}),a.jsx(wo,{_color:"#06539e",...Li("blue")}),a.jsx(wo,{_color:"#ae0000",_icons:"codicon codicon-smiley",...Li("red with icon")}),a.jsx(wo,{_color:"#8b008b",_icons:"codicon codicon-squirrel",...Li("purple with icon")})]})]}),O8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wo,{_color:"#7db4ebff",_label:"**Bold** and _italic_ Markdown label"}),a.jsx(wo,{_color:"#8feb7dff",_label:"This is ~~strikethrough~~ text"}),a.jsx(wo,{_color:"#e6ee8eff",_label:"Source code like `y = mx + n` is possible"})]})]}),$8={badge:{basic:E8,button:L8,"formatted-label":O8}},N8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Ts,{_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(Ts,{_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(Ts,{_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"}]})]})]}),B8={breadcrumb:{basic:N8}},R8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButtonLink with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(Pe,{_label:"Button Text without area description"}),a.jsx(Pe,{_label:"Button Text",_ariaDescription:"Button Area Description"})]})]});function Do(){const e=Vr.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 D8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Pe,{_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(Pe,{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(Pe,{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(Pe,{_label:"Disabled ButtonLink",_disabled:!0,_inline:!1})}),a.jsx("p",{children:a.jsx(Pe,{_label:"With access key",_accessKey:"c",_inline:!1,_on:n})}),a.jsx("p",{children:a.jsx(Pe,{_label:"Disabled ButtonLink",_inline:!1,_shortKey:"s"})})]})]})},M8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolButtonLink with icons in different locations."})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Pe,{_icons:"codicon codicon-home",_label:"I am a link with an icon on the left"}),a.jsx(Pe,{_icons:{right:"codicon codicon-home"},_label:"I am a link with an icon on the right"}),a.jsx(Pe,{_icons:{top:"codicon codicon-home"},_label:"I am a link with an icon at the top"}),a.jsx(Pe,{_icons:{bottom:"codicon codicon-home"},_label:"I am a link with icon below"}),a.jsx(Pe,{_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(Pe,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"I am a link with icon only"})]})]}),I8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Pe,{_label:"I am a link that is rendered as text"}),a.jsx(Pe,{_label:"",children:a.jsx("img",{alt:"Presentation of the KoliBri theming",slot:"expert",src:"abgrenzung.jpg",width:"300"})})]})]}),U8={"button-link":{basic:D8,icons:M8,image:I8,"aria-description":R8}},F8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows KolButton with"," ",a.jsx(_e,{_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})]})]})},H8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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})]})]})},K8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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})]})]})},pl="kol-tooltip-wc",V8=e=>{const{children:n,...r}=e,{dummyClickEventHandler:i}=Do(),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(pl,{_label:"Primary"}),a.jsx(X,{_icons:"codicon codicon-heart",_label:"Secondary",_variant:"secondary",_on:c,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Tertiary"}),a.jsx(X,{_icons:"codicon codicon-hubot",_label:"Tertiary",_variant:"tertiary",_on:c,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Normal"}),a.jsx(X,{_icons:"codicon codicon-hubot",_label:"Normal",_variant:"normal",_on:c,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Danger"}),a.jsx(X,{_icons:"codicon codicon-trash",_label:"Danger",_variant:"danger",_on:c,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Ghost"}),a.jsx(X,{_icons:"codicon codicon-reactions",_label:"Ghost",_variant:"ghost",_on:c,...r,children:n}),r._hideLabel&&a.jsx(pl,{_label:"Link"})]})},Zy=(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(V8,{...i})]},c))})},q8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Zy,{})]}),Z8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolButton show a button-element with expert slot."})}),a.jsx(Zy,{_label:"",children:a.jsx("span",{slot:"expert",children:"I am more than just a button"})})]}),P8=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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"})})]})},G8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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"})})]}),nb=new WeakMap,gn=e=>(nb.has(e)===!1&&nb.set(e,Tx.createRoot(e)),nb.get(e)),Y8=({label:e})=>{const n=Vr.getInstance(document),r=j.useRef(null),i=j.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}})]})},J8=()=>{const{dummyClickEventHandler:e}=Do(),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)=>{gn(Hr(c)).render(a.jsx(Y8,{label:d.data.label}))}}]]};return a.jsxs(a.Fragment,{children:[a.jsxs(V,{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(mo,{_label:'Move focus within one of the "Actions" cells and press "e" or "d" to trigger an action.',_data:r,_headers:i,_minWidth:"400px"})]})},X8=()=>{const{dummyClickEventHandler:e}=Do(),n={className:"w-8rem",_on:{onClick:e}};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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})]})]})]})},W8={button:{basic:q8,icons:P8,width:X8,"access-key":F8,"aria-description":H8,baselined:K8,"short-key":J8,"expert-slot":Z8,"row-reverse-tooltip":G8}},Q8=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Oe,{_label:"Card with title and content",children:a.jsx("div",{children:"Card contents."})}),a.jsx(Oe,{_label:"Card with closer",_hasCloser:!0,children:a.jsx("p",{children:"This card has a close button."})})]})]}),eA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Oe,{_label:"Card with headline level 0",_level:0,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Oe,{_label:"Card with headline level 1",_level:1,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Oe,{_label:"Card with headline level 2",_level:2,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Oe,{_label:"Card with headline level 3",_level:3,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Oe,{_label:"Card with headline level 4",_level:4,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Oe,{_label:"Card with headline level 5",_level:5,children:a.jsx("div",{children:"Card contents."})}),a.jsx(Oe,{_label:"Card with headline level 6",_level:6,children:a.jsx("div",{children:"Card contents."})})]})]}),oA={card:{basic:Q8,headlines:eA}},wn=({RefComponent:e,showButtons:n=!0,...r})=>a.jsx(mn,{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 Cn({children:e}){const[n]=Kr(),r=n.has("noColumns");return a.jsx("div",{className:r?"":"grid md:grid-cols-2 gap-4",children:e})}const Py=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"}]'),Wn=[...Py.map(e=>({label:e.name,value:e.alpha2}))],Qn=[...Py.map(e=>e.name)],d1=e=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(xn,{...e,_hint:yn,_label:"Label",_suggestions:Qn,_value:"Deutschland"}),a.jsx(xn,{...e,_label:"Disabled",_suggestions:Qn,_value:"Deutschland",_disabled:!0}),a.jsx(xn,{...e,_suggestions:Qn,_msg:{_type:"error",_description:Ue},_touched:!0,_label:"Label",_placeholder:"Placeholder",_required:!0}),a.jsx(xn,{...e,_label:"With access key",_suggestions:Qn,_value:"Deutschland",_accessKey:"c"}),a.jsx(xn,{...e,_label:"With short key",_suggestions:Qn,_value:"Deutschland",_shortKey:"s"})]}),nA=e=>a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(d1,{...e})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(d1,{...e,_hideLabel:!0})]})]}),tA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wn,{RefComponent:nA,showButtons:!1})]}),rA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"A HTML only KolCombobox."})}),a.jsx(xn,{_label:"With string array in html",_suggestions:"['Herr','Frau','Firma']",_value:"Herr"})]}),aA={combobox:{basic:tA,html:rA}},lA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(rr,{_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(rr,{_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(rr,{_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."})]})]}),iA={details:{basic:lA}},cA=["left","top","right","bottom"].map(e=>({label:e,value:e})),Sm=({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(Lo,{_label:"Drawer alignment",_value:e,_options:cA,_orientation:"horizontal",_on:{onChange:n}})})}),sA=()=>{const[e]=Kr(),n=e.get("align"),r=e.get("closer")==="true",i=j.useRef(null),[c,d]=j.useState(n||"left"),[u,m]=j.useState(r);return j.useEffect(()=>{n&&i.current?.open()},[n]),a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Sm,{value:c,onChange:(h,p)=>d(p)}),a.jsx(ro,{_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(nm,{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()}})]})]})},dA=()=>{const[e]=Kr(),n=e.get("align"),[r,i]=j.useState(!1),[c,d]=j.useState(n||"left");return a.jsxs("div",{children:[a.jsx(V,{children:a.jsxs("p",{children:["This sample shows the KolDrawer controlled by the property ",a.jsx("code",{children:"_open"})," instead of methods."]})}),a.jsx(Sm,{value:c,onChange:(u,m)=>d(m)}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(nm,{_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)}})]})]})},uA=()=>{const e=j.useRef(null),[n,r]=j.useState("bottom"),[i,c]=j.useState(!0);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Sm,{value:n,onChange:(d,u)=>r(u)}),a.jsx(ro,{_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(nm,{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()}})]})]})},fA={drawer:{basic:sA,controlled:dA,scrolled:uA}},bA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mn,{className:"w-full",children:a.jsxs("div",{className:"grid gap-2",children:[a.jsx(Ee,{id:"input1",_label:"Input 1"}),a.jsx(Ee,{id:"input2",_label:"Input 2"}),a.jsx(Ee,{id:"input3",_label:"Input 3"})]})})]}),mA=()=>{const e=j.useRef(null),n=()=>{e.current?.focusErrorList()};return j.useEffect(()=>{e.current?.focusErrorList()},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows a form with error messages."})}),a.jsx(mn,{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(Ee,{id:"input1",_label:"Input 1"}),a.jsx(Ee,{id:"input2",_label:"Input 2",_touched:!0,_msg:{_description:"Input error",_type:"error"}}),a.jsx(Ee,{id:"input3",_label:"Input 3",_touched:!0,_msg:{_description:"Input error",_type:"error"}}),a.jsx("div",{children:a.jsx(X,{_label:"ScrollTo",_type:"submit"})})]})})]})},hA={form:{basic:bA,"error-list":mA}},Gy=`public-ui.v${Ub.version}`;class pA{store=new Map;setItem(n,r){this.store.set(n,r)}getItem(n){return this.store.get(n)||null}}const Zi={darkMode:!1,theme:"default"};let Fb;function Yy(e){Fb=e;const n=Fb.getItem(Gy);try{const r=JSON.parse(n);typeof r=="object"&&r!==null&&(Zi.darkMode=r.darkMode===!0,wm(r.theme)&&(Zi.theme=r.theme))}catch{}}Yy(new pA);const kA=()=>{Fb.setItem(Gy,JSON.stringify(Zi))},vA=e=>{if(wm(e))Zi.theme=e,kA();else throw new Error(`The theme identifier "${e}" is not valid or an available option.`)},qs=()=>`${Zi.theme}`,Hb=e=>{if(wm(e))return zm.find(n=>n.value===e)?.label;throw new Error(`The theme identifier "${e}" is not valid or an available option.`)},gA=[{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 _A({_on:e,...n}){const{dummyClickEventHandler:r}=Do(),i={onClick:r};return a.jsx(X,{...n,_on:i})}const xA={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),gn(r).render(a.jsx(_A,{_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),gn(r).render(a.jsx(wo,{_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),gn(r).render(a.jsx(wo,{_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),gn(r).render(a.jsx(wo,{_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),gn(r).render(a.jsx(wo,{_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),gn(r).render(a.jsx(wo,{_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),gn(r).render(a.jsx(wo,{_color:"#033",_label:n.label}))}}]],vertical:[[{label:"Early"},{label:"Noon"},{label:"Evening"},{label:"Night"}]]},yA=()=>{const{dummyClickEventHandler:e}=Do(),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(As,{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 ",Hb(qs())]})]})}),a.jsxs(rr,{_label:"Abstract",_open:!0,children:["The handout shows a selection of KoliBri components in the style of ",a.jsx("strong",{children:Hb(qs())}),". 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(_e,{_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(Oe,{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(Oe,{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(Mi,{_label:"as an example",children:"e.g."})," an abbreviation."]}),a.jsxs("p",{children:["I am ",a.jsx(Mi,{children:"e.g."})," an abbreviation without label."]}),a.jsx(nr,{_variant:"bar",_max:100,_value:33,_label:"Progress"}),a.jsx(nr,{_variant:"cycle",_max:100,_value:66,_label:"Progress"})]})}),a.jsx(Oe,{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(Xe,{_href:"#/back-page",_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary"}),a.jsx(Xe,{_href:"#/back-page",_icons:{left:"codicon codicon-arrow-left"},_label:"primary",_variant:"primary"}),a.jsx(Xe,{_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(Xe,{_href:"#/back-page",_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary"}),a.jsx(Xe,{_href:"#/back-page",_icons:{right:"codicon codicon-arrow-right"},_label:"secondary",_variant:"secondary"}),a.jsx(Xe,{_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(Xe,{_href:"#/back-page",_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger"}),a.jsx(Xe,{_href:"#/back-page",_icons:{top:"codicon codicon-arrow-up"},_label:"danger",_variant:"danger"}),a.jsx(Xe,{_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(Xe,{_href:"#/back-page",_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal"}),a.jsx(Xe,{_href:"#/back-page",_icons:{bottom:"codicon codicon-arrow-down"},_label:"normal",_variant:"normal"}),a.jsx(Xe,{_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(Xe,{_href:"#/back-page",_label:"ghost",_variant:"ghost"}),a.jsx(Xe,{_href:"#/back-page",_label:"ghost",_variant:"ghost"}),a.jsx(Xe,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"ghost",_variant:"ghost"})]})]})]})})}),a.jsx(Oe,{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(rn,{_label:"Links",_level:3,_open:!0,children:a.jsxs("div",{className:"grid gap-2",slot:"",children:[a.jsx(_e,{_href:"#/back-page",_label:"Link text"}),a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_label:"Link text with icon"}),a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link text with icon only"}),a.jsx(_e,{_href:"/",_label:"Visited link"}),a.jsxs("p",{children:["I am a ",a.jsx(_e,{_href:"#/back-page",_label:"externer Link",_target:"w3c"})," in the running text."]})]})}),a.jsx(rn,{_label:"ButtonLinks",_level:3,children:a.jsxs("div",{className:"grid gap-2",slot:"",children:[a.jsx(Pe,{_label:"Link text"}),a.jsx(Pe,{_icons:"codicon codicon-home",_label:"Link text with icon"}),a.jsx(Pe,{_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link text with icon only"}),a.jsxs("p",{children:["I am a ",a.jsx(Pe,{_label:"Link"})," in the running text."]}),a.jsx(Pe,{_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(Oe,{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(_n,{_label:"Default message",_type:"default",children:"This is the text of the alert."}),a.jsx(_n,{_type:"success",children:"Success message text"}),a.jsx(_n,{_type:"error",_hasCloser:!0,children:"This is a error message text."}),a.jsx(_n,{_label:"Info card",_type:"info",_variant:"card",children:"This is the text of the alert."}),a.jsx(_n,{_label:"Warning card",_type:"warning",_hasCloser:!0,_variant:"card",children:"This is the text of the alert."})]})}),a.jsx(Oe,{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(wl,{_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(Ts,{_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(Oe,{className:"col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5",_label:"Input",_level:2,children:a.jsx(mn,{slot:"",children:a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 md:grid-cols-3 p-2",children:[a.jsx(Go,{_label:"Color"}),a.jsx(Ro,{_label:"Upload file"}),a.jsx(So,{_label:"Number input"}),a.jsx(Fe,{_type:"date",_label:"Date"}),a.jsx(Yo,{_icons:"{'left': 'codicon codicon-home'}",_msg:{_type:"error",_description:"Test of an error message"},_touched:!0,_label:"E-mail address"}),a.jsx(Ee,{_hint:"I am a hint.",_label:"First name"}),a.jsx(Eo,{_label:"password"}),a.jsx(Jo,{_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_label:"Stimmung"}),a.jsx(en,{_min:0,_max:50,_value:25,_label:"Slider"}),a.jsx(Lo,{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(Lo,{_orientation:"horizontal",_options:"[{'label':'Mr.','value':0},{'label':'Mrs.','value':1}]",_value:"0",_label:"Salutation"}),a.jsx(ro,{_label:"",children:a.jsxs("span",{slot:"expert",children:["I accept the ",a.jsx(Mi,{_label:"General Terms and Conditions",children:"AGB"}),"."]})})]}),a.jsx(Qe,{_rows:4,_label:"Textarea"})]})})}),a.jsx(Oe,{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(mo,{_label:"Table",_minWidth:"auto",_headers:xA,_data:gA,_pagination:!0})})})]}),a.jsx(od,{_label:"5.0.2-test.2"})]})},wA={handout:{basic:yA}},zA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wo,{_label:"Label"})]})}),a.jsx(ue,{_label:"",_level:2,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#86ffc6",_label:"Label"})]})}),a.jsx(ue,{_label:"",_level:3,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#06539e",_label:"Label"})]})}),a.jsx(ue,{_label:"",_level:4,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#ae0000",_label:"Label"})]})}),a.jsx(ue,{_label:"",_level:5,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#8b008b",_label:"Label"})]})}),a.jsx(ue,{_label:"",_level:6,children:a.jsxs("span",{slot:"expert",children:["A heading with a ",a.jsx(wo,{_color:"#ffc0cb",_label:"Label"})]})})]})]}),jA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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})]})]}),SA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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."})]})]}),TA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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})})]}),AA={heading:{basic:jA,badge:zA,paragraph:SA,secondary:TA}},CA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(pt,{className:"block",_label:"",_icons:"codicon codicon-home"}),a.jsx(pt,{className:"block",_label:"",_icons:"codicon codicon-compass-active"}),a.jsx(pt,{className:"block",_label:"",_icons:"codicon codicon-debug"}),a.jsx(pt,{className:"block",_label:"",_icons:"codicon codicon-squirrel"}),a.jsx(pt,{className:"block w-[1em] h-[1em]",style:{color:"red"},_label:"",_icons:"codicon codicon-home"})]})]}),EA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(pt,{className:"block",_label:"",_icons:"fa-solid fa-house"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-solid fa-circle-user"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-solid fa-truck"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-solid fa-city"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-regular fa-heart"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-regular fa-thumbs-up"}),a.jsx(pt,{className:"block",_label:"",_icons:"fa-brands fa-github"}),a.jsx(Ee,{_label:"With Font Awesome icons",_icons:{left:{icon:"fa-solid fa-phone"},right:{icon:"fa-solid fa-arrow-right"}}})]})]}),LA={icon:{basic:CA,"font-awesome":EA}},OA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolImage renders an image. The sample shows an image with alternative text."})}),a.jsx(Zz,{className:"w-image",_src:"abgrenzung.jpg",_alt:"Darstellung des KoliBri-Theming"})]}),$A={image:{basic:OA}},xs=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(ro,{...n,_label:"Not selected",_value:!1,_required:!0}),a.jsx(ro,{...n,_label:"Indeterminate",_value:null,_indeterminate:!0}),a.jsx(ro,{...n,ref:r,_accessKey:"A",_checked:!0,_label:"Selected",_tooltipAlign:"right",_value:!0}),a.jsx(ro,{...n,_checked:!0,_icons:{unchecked:"codicon codicon-close"},_label:"With a very long label and upheavals ".repeat(5),_value:!0}),a.jsx(ro,{...n,_disabled:!0,_label:"Disabled",_value:!0,_hint:"Hint text"}),a.jsx(ro,{...n,_checked:!0,_disabled:!0,_label:"Checked and disabled"}),a.jsx(ro,{...n,_indeterminate:!0,_disabled:!0,_label:"Indeterminate and disabled"}),a.jsx(ro,{...n,_msg:{_type:"error",_description:Ue},_label:"With error",_touched:!0,_value:!0,_hint:"Hint text"}),a.jsx(ro,{...n,_label:"With access key",_accessKey:"c",_value:null}),a.jsx(ro,{...n,_label:"With short key",_shortKey:"s",_value:null})]})}),Tm=j.forwardRef(function(n,r){return a.jsxs(a.Fragment,{children:[a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "left" with label'}),a.jsx(xs,{...n,_labelAlign:"left"})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "left" without Label (hideLabel)'}),a.jsx(xs,{ref:r,...n,_hideLabel:!0,_labelAlign:"left"})]})]}),a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "right" with label'}),a.jsx(xs,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:'Label align "right" without Label (hideLabel)'}),a.jsx(xs,{ref:r,...n,_hideLabel:!0})]})]})]})}),NA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolInputCheckbox renders a checkbox. The sample shows KolInputCheckbox in a form context with all variations and states."})}),a.jsx(wn,{RefComponent:Tm,showButtons:!1})]}),BA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolInputCheckbox in the variant "button".'})}),a.jsx(wn,{RefComponent:Tm,_variant:"button",showButtons:!1})]}),RA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows KolInputCheckbox in the variant "switch".'})}),a.jsx(wn,{RefComponent:Tm,_variant:"switch",showButtons:!1})]}),DA={"input-checkbox":{basic:NA,switch:RA,button:BA}},u1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Go,{...n,_msg:{_type:"error",_description:Ue},_icons:{left:"codicon codicon-symbol-color"},_label:"Color (Black background test)",_value:"#f08080"})}),a.jsx(Go,{...n,_msg:{_type:"error",_description:Ue},_label:"Color with error",_suggestions:"['#000000','#f08080', '#0000ff','#00ff00']",_touched:!0}),a.jsx(Go,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Color"}),a.jsx(Go,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Color"}),a.jsx(Go,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Color"}),a.jsx(Go,{...n,ref:r,_accessKey:"C",_hint:"Hint text",_label:"Color with hint",_value:"#f08080"}),a.jsx(Go,{...n,_disabled:!0,_label:"Color (Disabled)",_value:"#f08080"}),a.jsx(Go,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(Go,{...n,_label:"With short key",_shortKey:"s"})]})}),MA=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Color"}),a.jsx(u1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Color (hideLabel)"}),a.jsx(u1,{ref:r,...n,_hideLabel:!0})]})]})}),IA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wn,{RefComponent:MA,showButtons:!1})]}),UA={"input-color":{basic:IA}},f1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Fe,{...n,_type:"date",_label:"Date input (Black background test)",_required:!0})}),a.jsx(Fe,{...n,_type:"datetime-local",_label:"Local-Datetime (Standard)",_required:!0}),a.jsx(Fe,{...n,_step:1,_type:"datetime-local",_hint:yn,_msg:{_type:"error",_description:Ue},_label:"Local datetime (with seconds)",_required:!0,_touched:!0}),a.jsx(Fe,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Color"}),a.jsx(Fe,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Color"}),a.jsx(Fe,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Color"}),a.jsx(Fe,{...n,_type:"month",_label:"Month",_required:!0}),a.jsx(Fe,{...n,ref:r,_accessKey:"W",_type:"week",_label:"Week",_required:!0}),a.jsx(Fe,{...n,_type:"time",_label:"Time (standard)",_required:!0}),a.jsx(Fe,{...n,_step:1,_type:"time",_label:"Time (with seconds)",_required:!0}),a.jsx(Fe,{...n,_readOnly:!0,_label:"Date input (read-only)",_required:!0}),a.jsx(Fe,{...n,_disabled:!0,_label:"Date input (Disabled)",_required:!0}),a.jsx(Fe,{...n,_label:"With access key",_accessKey:"s"}),a.jsx(Fe,{...n,_label:"With short key",_shortKey:"s"})]})}),FA=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"),x=new Date("October 20, 2024, 15:00");return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Fe,{...e,_type:"date",_label:"Date with Iso",_min:n,_max:r}),a.jsx(Fe,{...e,_type:"date",_label:"Date with Date",_min:v,_max:x}),a.jsx(Fe,{...e,_type:"time",_label:"Time with Iso",_min:i,_max:c}),a.jsx(Fe,{...e,_type:"time",_label:"Time with Date",_min:v,_max:x}),a.jsx(Fe,{...e,_type:"datetime-local",_label:"DayTime with Iso",_min:d,_max:u}),a.jsx(Fe,{...e,_type:"datetime-local",_label:"DayTime with Date",_min:v,_max:x}),a.jsx(Fe,{...e,_type:"week",_label:"Week with Iso",_min:m,_max:h}),a.jsx(Fe,{...e,_type:"week",_label:"Week with Date",_min:v,_max:x}),a.jsx(Fe,{...e,_type:"month",_label:"Month with Iso",_min:p,_max:g}),a.jsx(Fe,{...e,_type:"month",_label:"Month with Date",_min:v,_max:x})]})},HA=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date"}),a.jsx(f1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date (hideLabel)"}),a.jsx(f1,{ref:r,...n,_hideLabel:!0})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Date (with min/max)"}),a.jsx(FA,{...n})]})]})}),KA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wn,{RefComponent:HA,showButtons:!1})]}),b1=e=>String(e).padStart(2,"0"),VA=(e,n,r)=>{const i=new Date(e,n-1,r);return i.getFullYear()===e&&i.getMonth()===n-1&&i.getDate()===r};function m1(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 VA(c,i,r)?`${c}-${b1(i)}-${b1(r)}`:null}function qA(e){return e instanceof HTMLElement&&e.tagName==="KOL-INPUT-DATE"}async function ZA(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 PA=()=>{const[e,n]=j.useState("31.12.2025"),[r,i]=j.useState(""),c=j.useRef(null),d=j.useMemo(()=>m1(e),[e]);j.useEffect(()=>{const h=new AbortController,p=g=>{const v=g.composedPath?.()??[];c.current=v.find(qA)??null};return document.addEventListener("focusin",p,{capture:!0,signal:h.signal}),()=>h.abort()},[]),j.useEffect(()=>{const h=new AbortController,p=g=>{const v=c.current;if(!v)return;const x=g.clipboardData?.getData("text")??"",z=m1(x);if(!z){i("Clipboard: unrecognized date. Use DD.MM.YYYY.");return}g.preventDefault(),ZA(v,z),i("Pasted.")};return document.addEventListener("paste",p,{capture:!0,signal:h.signal}),()=>h.abort()},[]);const u=j.useCallback(async h=>{i("");try{await navigator.clipboard.writeText(h),i("Copied.")}catch{i("Copy failed. Your browser may block clipboard access.")}},[]),m=j.useCallback((h,p)=>{if(h?.target){const g=typeof p=="string"?p:String(p??"");n(g)}},[]);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Ee,{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(Fe,{_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})]})]})},GA=()=>{const e=j.useRef(null);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Fe,{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()}})]})},YA=["default","error","info","success","warning"];function tb(e){return{onChange:()=>e(n=>!n)}}const JA=()=>{const[e,n]=j.useState(!0),[r,i]=j.useState(!0),[c,d]=j.useState(!1),u=tb(n),m=tb(i),h=tb(d);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(ro,{_label:"Toggle Msg",_on:u,_checked:e,_variant:"button"}),a.jsx(ro,{_label:"Toggle Touched",_on:m,_checked:r,_variant:"button"}),a.jsx(ro,{_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",")"]}),YA.map(p=>a.jsx(Fe,{_hideMsg:c,_label:`Date (_msg, ${p})`,_msg:e?{_description:`${p} message`,_type:p}:void 0,_touched:r},p))]})]})},XA={"input-date":{basic:KA,"copy-paste":PA,reset:GA,"show-hide-msg":JA}},h1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Yo,{...n,_required:!0,_value:"test@mail.de",_msg:{_type:"error",_description:Ue},_label:"E-Mail (Black background test)"})}),a.jsx(Yo,{...n,ref:r,_accessKey:"M",_placeholder:"elke@mustermann.de",_suggestions:"['test1@mail.de', 'test2@mail.de', 'test3@mail.de']",_label:"E-Mail (list)",_hint:yn,_msg:{_type:"error",_description:Ue},_touched:!0,_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(Yo,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"E-Mail"}),a.jsx(Yo,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"E-Mail"}),a.jsx(Yo,{...n,_msg:{_type:"success",_description:"Success message"},_label:"E-Mail"}),a.jsx(Yo,{...n,_disabled:!0,_value:"test@mail.de",_label:"E-Mail (Disabled)"}),a.jsx(Yo,{...n,_readOnly:!0,_value:"test@mail.de",_label:"E-Mail (Readonly)"}),a.jsx(Yo,{...n,_value:"test@mail.de",_label:"With access key",_accessKey:"c"}),a.jsx(Yo,{...n,_value:"test@mail.de",_label:"With short key",_shortKey:"s"})]})}),WA=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Email"}),a.jsx(h1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Email (hideLabel)"}),a.jsx(h1,{ref:r,...n,_hideLabel:!0})]})]})}),QA=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wn,{RefComponent:WA,showButtons:!1})]}),eC={"input-email":{basic:QA}},p1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Ro,{...n,_label:"Upload file (Black background test)",_icons:{left:{icon:"codicon codicon-save"}},_touched:!0})}),a.jsx(Ro,{...n,_required:!0,_hint:yn,_msg:{_type:"error",_description:Ue},_label:"Upload file (Black background test)",_icons:{left:{icon:"codicon codicon-save"}},_touched:!0}),a.jsx(Ro,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Upload file"}),a.jsx(Ro,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Upload file"}),a.jsx(Ro,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Upload file"}),a.jsx(Ro,{...n,ref:r,_accessKey:"h",_multiple:!0,_msg:{_type:"error",_description:Ue},_label:"Upload file (Multiple)"}),a.jsx(Ro,{...n,_disabled:!0,_label:"Upload file (Disabled)"}),a.jsx(Ro,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(Ro,{...n,_label:"With short key",_shortKey:"s"})]})}),oC=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"File"}),a.jsx(p1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"File (hideLabel)"}),a.jsx(p1,{ref:r,...n,_hideLabel:!0})]})]})}),nC=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wn,{RefComponent:oC,showButtons:!1})]}),tC={"input-file":{basic:nC}},k1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsxs("div",{className:"black-background",children:[a.jsx(So,{...n,_required:!0,_touched:!0,_value:123,_label:"Number input (Black background test)"})," "]}),a.jsx(So,{...n,_required:!0,_msg:{_type:"error",_description:Ue},_touched:!0,_placeholder:"Mit Icons",_label:"Number input",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(So,{...n,_required:!0,_msg:{_type:"error",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(So,{...n,_required:!0,_msg:{_type:"warning",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(So,{...n,_required:!0,_msg:{_type:"info",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(So,{...n,_required:!0,_msg:{_type:"success",_description:Ue},_touched:!0,_value:123,_label:"Number input"}),a.jsx(So,{...n,ref:r,_accessKey:"Z",_max:10,_min:-10,_step:2,_label:"Number input (-10 to 10 in steps of 2)"}),a.jsx(So,{...n,_readOnly:!0,_label:"Number input (Readonly)"}),a.jsx(So,{...n,_disabled:!0,_label:"Number input (Disabled)"}),a.jsx(So,{...n,_label:"With access key",_accessKey:"c"}),a.jsx(So,{...n,_label:"With short key",_shortKey:"s"})]})}),rC=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Number"}),a.jsx(k1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Number (hideLabel)"}),a.jsx(k1,{ref:r,...n,_hideLabel:!0})]})]})}),aC=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wn,{RefComponent:rC,showButtons:!1})]});var Qi=e=>e.type==="checkbox",va=e=>e instanceof Date,In=e=>e==null;const Jy=e=>typeof e=="object";var Xo=e=>!In(e)&&!Array.isArray(e)&&Jy(e)&&!va(e),Xy=e=>Xo(e)&&e.target?Qi(e.target)?e.target.checked:e.target.value:e,lC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Wy=(e,n)=>e.has(lC(n)),iC=e=>{const n=e.constructor&&e.constructor.prototype;return Xo(n)&&n.hasOwnProperty("isPrototypeOf")},Am=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Zo(e){if(e instanceof Date)return new Date(e);const n=typeof FileList<"u"&&e instanceof FileList;if(Am&&(e instanceof Blob||n))return e;const r=Array.isArray(e);if(!r&&!(Xo(e)&&iC(e)))return e;const i=r?[]:Object.create(Object.getPrototypeOf(e));for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&(i[c]=Zo(e[c]));return i}var id=e=>/^\w*$/.test(e),To=e=>e===void 0,Cm=e=>Array.isArray(e)?e.filter(Boolean):[],Em=e=>Cm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),de=(e,n,r)=>{if(!n||!Xo(e))return r;const i=(id(n)?[n]:Em(n)).reduce((c,d)=>In(c)?c:c[d],e);return To(i)||i===e?To(e[n])?r:e[n]:i},Xn=e=>typeof e=="boolean",An=e=>typeof e=="function",fo=(e,n,r)=>{let i=-1;const c=id(n)?[n]:Em(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=Xo(p)||Array.isArray(p)?p:isNaN(+c[i+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;e[m]=h,e=e[m]}};const Zs={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},wt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},er={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Qy=ae.createContext(null);Qy.displayName="HookFormControlContext";const Lm=()=>ae.useContext(Qy);var e0=(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]!==wt.all&&(n._proxyFormState[u]=!i||wt.all),r&&(r[u]=!0),e[u]}});return c};const Om=typeof window<"u"?ae.useLayoutEffect:ae.useEffect;function cC(e){const n=Lm(),{control:r=n,disabled:i,name:c,exact:d}=e||{},[u,m]=ae.useState(r._formState),h=ae.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Om(()=>r._subscribe({name:c,formState:h.current,exact:d,callback:p=>{!i&&m({...r._formState,...p})}}),[c,i,d]),ae.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),ae.useMemo(()=>e0(u,r,h.current,!1),[u,r])}var et=e=>typeof e=="string",Kb=(e,n,r,i,c)=>et(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),Vb=e=>In(e)||!Jy(e);function zt(e,n,r=new WeakSet){if(Vb(e)||Vb(n))return Object.is(e,n);if(va(e)&&va(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(!c.includes(d))return!1;if(d!=="ref"){const m=n[d];if(va(u)&&va(m)||Xo(u)&&Xo(m)||Array.isArray(u)&&Array.isArray(m)?!zt(u,m,r):!Object.is(u,m))return!1}}return!0}function sC(e){const n=Lm(),{control:r=n,name:i,defaultValue:c,disabled:d,exact:u,compute:m}=e||{},h=ae.useRef(c),p=ae.useRef(m),g=ae.useRef(void 0),v=ae.useRef(r),x=ae.useRef(i);p.current=m;const[z,N]=ae.useState(()=>{const $=r._getWatch(i,h.current);return p.current?p.current($):$}),S=ae.useCallback($=>{const D=Kb(i,r._names,$||r._formValues,!1,h.current);return p.current?p.current(D):D},[r._formValues,r._names,i]),O=ae.useCallback($=>{if(!d){const D=Kb(i,r._names,$||r._formValues,!1,h.current);if(p.current){const F=p.current(D);zt(F,g.current)||(N(F),g.current=F)}else N(D)}},[r._formValues,r._names,d,i]);Om(()=>((v.current!==r||!zt(x.current,i))&&(v.current=r,x.current=i,O()),r._subscribe({name:i,formState:{values:!0},exact:u,callback:$=>{O($.values)}})),[r,u,i,O]),ae.useEffect(()=>r._removeUnmounted());const E=v.current!==r,_=x.current,w=ae.useMemo(()=>{if(d)return null;const $=!E&&!zt(_,i);return E||$?S():null},[d,E,i,_,S]);return w!==null?w:z}function dC(e){const n=Lm(),{name:r,disabled:i,control:c=n,shouldUnregister:d,defaultValue:u,exact:m=!0}=e,h=Wy(c._names.array,r),p=ae.useMemo(()=>de(c._formValues,r,de(c._defaultValues,r,u)),[c,r,u]),g=sC({control:c,name:r,defaultValue:p,exact:m}),v=cC({control:c,name:r,exact:m}),x=ae.useRef(e),z=ae.useRef(void 0),N=ae.useRef(c.register(r,{...e.rules,value:g,...Xn(e.disabled)?{disabled:e.disabled}:{}}));x.current=e;const S=ae.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]),O=ae.useCallback($=>N.current.onChange({target:{value:Xy($),name:r},type:Zs.CHANGE}),[r]),E=ae.useCallback(()=>N.current.onBlur({target:{value:de(c._formValues,r),name:r},type:Zs.BLUR}),[r,c._formValues]),_=ae.useCallback($=>{const D=de(c._fields,r);D&&D._f&&$&&(D._f.ref={focus:()=>An($.focus)&&$.focus(),select:()=>An($.select)&&$.select(),setCustomValidity:F=>An($.setCustomValidity)&&$.setCustomValidity(F),reportValidity:()=>An($.reportValidity)&&$.reportValidity()})},[c._fields,r]),w=ae.useMemo(()=>({name:r,value:g,...Xn(i)||v.disabled?{disabled:v.disabled||i}:{},onChange:O,onBlur:E,ref:_}),[r,i,v.disabled,O,E,_,g]);return ae.useEffect(()=>{const $=c._options.shouldUnregister||d,D=z.current;D&&D!==r&&!h&&c.unregister(D),c.register(r,{...x.current.rules,...Xn(x.current.disabled)?{disabled:x.current.disabled}:{}});const F=(Z,ee)=>{const se=de(c._fields,Z);se&&se._f&&(se._f.mount=ee)};if(F(r,!0),$){const Z=Zo(de(c._options.defaultValues,r,x.current.defaultValue));fo(c._defaultValues,r,Z),To(de(c._formValues,r))&&fo(c._formValues,r,Z)}return!h&&c.register(r),z.current=r,()=>{(h?$&&!c._state.action:$)?c.unregister(r):F(r,!1)}},[r,c,h,d]),ae.useEffect(()=>{c._setDisabledField({disabled:i,name:r})},[i,r,c]),ae.useMemo(()=>({field:w,formState:v,fieldState:S}),[w,v,S])}const qb=e=>e.render(dC(e)),uC=ae.createContext(null);uC.displayName="HookFormContext";var o0=(e,n,r,i,c)=>n?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[i]:c||!0}}:{},Ii=e=>Array.isArray(e)?e:[e],v1=()=>{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 n0(e,n){const r={};for(const i in e)if(e.hasOwnProperty(i)){const c=e[i],d=n[i];if(c&&Xo(c)&&d){const u=n0(c,d);Xo(u)&&(r[i]=u)}else e[i]&&(r[i]=d)}return r}var Tn=e=>Xo(e)&&!Object.keys(e).length,$m=e=>e.type==="file",Ps=e=>{if(!Am)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},t0=e=>e.type==="select-multiple",Nm=e=>e.type==="radio",fC=e=>Nm(e)||Qi(e),rb=e=>Ps(e)&&e.isConnected;function bC(e,n){const r=n.slice(0,-1).length;let i=0;for(;i<r;)e=To(e)?i++:e[n[i++]];return e}function mC(e){for(const n in e)if(e.hasOwnProperty(n)&&!To(e[n]))return!1;return!0}function Po(e,n){const r=Array.isArray(n)?n:id(n)?[n]:Em(n),i=r.length===1?e:bC(e,r),c=r.length-1,d=r[c];return i&&delete i[d],c!==0&&(Xo(i)&&Tn(i)||Array.isArray(i)&&mC(i))&&Po(e,r.slice(0,-1)),e}var hC=e=>{for(const n in e)if(An(e[n]))return!0;return!1};function r0(e){return Array.isArray(e)||Xo(e)&&!hC(e)}function Zb(e,n={}){for(const r in e){const i=e[r];r0(i)?(n[r]=Array.isArray(i)?[]:{},Zb(i,n[r])):To(i)||(n[r]=!0)}return n}function gl(e,n,r){r||(r=Zb(n));for(const i in e){const c=e[i];if(r0(c))To(n)||Vb(r[i])?r[i]=Zb(c,Array.isArray(c)?[]:{}):gl(c,In(n)?{}:n[i],r[i]);else{const d=n[i];r[i]=!zt(c,d)}}return r}const g1={value:!1,isValid:!1},_1={value:!0,isValid:!0};var a0=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&&!To(e[0].attributes.value)?To(e[0].value)||e[0].value===""?_1:{value:e[0].value,isValid:!0}:_1:g1}return g1},l0=(e,{valueAsNumber:n,valueAsDate:r,setValueAs:i})=>To(e)?e:n?e===""?NaN:e&&+e:r&&et(e)?new Date(e):i?i(e):e;const x1={isValid:!1,value:null};var i0=e=>Array.isArray(e)?e.reduce((n,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:n,x1):x1;function y1(e){const n=e.ref;return $m(n)?n.files:Nm(n)?i0(e.refs).value:t0(n)?[...n.selectedOptions].map(({value:r})=>r):Qi(n)?a0(e.refs).value:l0(To(n.value)?e.ref.value:n.value,e)}var pC=(e,n,r,i)=>{const c={};for(const d of e){const u=de(n,d);u&&fo(c,d,u._f)}return{criteriaMode:r,names:[...e],fields:c,shouldUseNativeValidation:i}},Gs=e=>e instanceof RegExp,Oi=e=>To(e)?e:Gs(e)?e.source:Xo(e)?Gs(e.value)?e.value.source:e.value:e,w1=e=>({isOnSubmit:!e||e===wt.onSubmit,isOnBlur:e===wt.onBlur,isOnChange:e===wt.onChange,isOnAll:e===wt.all,isOnTouch:e===wt.onTouched});const z1="AsyncFunction";var kC=e=>!!e&&!!e.validate&&!!(An(e.validate)&&e.validate.constructor.name===z1||Xo(e.validate)&&Object.values(e.validate).find(n=>n.constructor.name===z1)),vC=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),j1=(e,n,r)=>!r&&(n.watchAll||n.watch.has(e)||[...n.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const Ui=(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(Ui(m,n))break}else if(Xo(m)&&Ui(m,n))break}}};function S1(e,n,r){const i=de(e,r);if(i||id(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 gC=(e,n,r,i)=>{r(e);const{name:c,...d}=e;return Tn(d)||Object.keys(d).length>=Object.keys(n).length||Object.keys(d).find(u=>n[u]===(!i||wt.all))},_C=(e,n,r)=>!e||!n||e===n||Ii(e).some(i=>i&&(r?i===n:i.startsWith(n)||n.startsWith(i))),xC=(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,yC=(e,n)=>!Cm(de(e,n)).length&&Po(e,n),wC=(e,n,r)=>{const i=Ii(de(e,r));return fo(i,"root",n[r]),fo(e,r,i),e};function T1(e,n,r="validate"){if(et(e)||Array.isArray(e)&&e.every(et)||Xn(e)&&!e)return{type:r,message:et(e)?e:"",ref:n}}var kl=e=>Xo(e)&&!Gs(e)?e:{value:e,message:""},A1=async(e,n,r,i,c,d)=>{const{ref:u,refs:m,required:h,maxLength:p,minLength:g,min:v,max:x,pattern:z,validate:N,name:S,valueAsNumber:O,mount:E}=e._f,_=de(r,S);if(!E||n.has(S))return{};const w=m?m[0]:u,$=ne=>{c&&w.reportValidity&&(w.setCustomValidity(Xn(ne)?"":ne||""),w.reportValidity())},D={},F=Nm(u),Z=Qi(u),ee=F||Z,se=(O||$m(u))&&To(u.value)&&To(_)||Ps(u)&&u.value===""||_===""||Array.isArray(_)&&!_.length,$e=o0.bind(null,S,i,D),ce=(ne,we,De,He=er.maxLength,M=er.minLength)=>{const G=ne?we:De;D[S]={type:ne?He:M,message:G,ref:u,...$e(ne?He:M,G)}};if(d?!Array.isArray(_)||!_.length:h&&(!ee&&(se||In(_))||Xn(_)&&!_||Z&&!a0(m).isValid||F&&!i0(m).isValid)){const{value:ne,message:we}=et(h)?{value:!!h,message:h}:kl(h);if(ne&&(D[S]={type:er.required,message:we,ref:w,...$e(er.required,we)},!i))return $(we),D}if(!se&&(!In(v)||!In(x))){let ne,we;const De=kl(x),He=kl(v);if(!In(_)&&!isNaN(_)){const M=u.valueAsNumber||_&&+_;In(De.value)||(ne=M>De.value),In(He.value)||(we=M<He.value)}else{const M=u.valueAsDate||new Date(_),G=Te=>new Date(new Date().toDateString()+" "+Te),ie=u.type=="time",Se=u.type=="week";et(De.value)&&_&&(ne=ie?G(_)>G(De.value):Se?_>De.value:M>new Date(De.value)),et(He.value)&&_&&(we=ie?G(_)<G(He.value):Se?_<He.value:M<new Date(He.value))}if((ne||we)&&(ce(!!ne,De.message,He.message,er.max,er.min),!i))return $(D[S].message),D}if((p||g)&&!se&&(et(_)||d&&Array.isArray(_))){const ne=kl(p),we=kl(g),De=!In(ne.value)&&_.length>+ne.value,He=!In(we.value)&&_.length<+we.value;if((De||He)&&(ce(De,ne.message,we.message),!i))return $(D[S].message),D}if(z&&!se&&et(_)){const{value:ne,message:we}=kl(z);if(Gs(ne)&&!_.match(ne)&&(D[S]={type:er.pattern,message:we,ref:u,...$e(er.pattern,we)},!i))return $(we),D}if(N){if(An(N)){const ne=await N(_,r),we=T1(ne,w);if(we&&(D[S]={...we,...$e(er.validate,we.message)},!i))return $(we.message),D}else if(Xo(N)){let ne={};for(const we in N){if(!Tn(ne)&&!i)break;const De=T1(await N[we](_,r),w,we);De&&(ne={...De,...$e(we,De.message)},$(De.message),i&&(D[S]=ne))}if(!Tn(ne)&&(D[S]={ref:w,...ne},!i))return D}}return $(!0),D};const zC={mode:wt.onSubmit,reValidateMode:wt.onChange,shouldFocusError:!0};function jC(e={}){let n={...zC,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:An(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},c=Xo(n.defaultValues)||Xo(n.values)?Zo(n.defaultValues||n.values)||{}:{},d=n.shouldUnregister?{}:Zo(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},h,p=0;const g={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={...g};let x={...v};const z={array:v1(),state:v1()},N=n.criteriaMode===wt.all,S=T=>B=>{clearTimeout(p),p=setTimeout(T,B)},O=async T=>{if(!u.keepIsValid&&!n.disabled&&(v.isValid||x.isValid||T)){let B;n.resolver?(B=Tn((await ee()).errors),E()):B=await $e(i,!0),B!==r.isValid&&z.state.next({isValid:B})}},E=(T,B)=>{!n.disabled&&(v.isValidating||v.validatingFields||x.isValidating||x.validatingFields)&&((T||Array.from(m.mount)).forEach(H=>{H&&(B?fo(r.validatingFields,H,B):Po(r.validatingFields,H))}),z.state.next({validatingFields:r.validatingFields,isValidating:!Tn(r.validatingFields)}))},_=(T,B=[],H,te,re=!0,oe=!0)=>{if(te&&H&&!n.disabled){if(u.action=!0,oe&&Array.isArray(de(i,T))){const ve=H(de(i,T),te.argA,te.argB);re&&fo(i,T,ve)}if(oe&&Array.isArray(de(r.errors,T))){const ve=H(de(r.errors,T),te.argA,te.argB);re&&fo(r.errors,T,ve),yC(r.errors,T)}if((v.touchedFields||x.touchedFields)&&oe&&Array.isArray(de(r.touchedFields,T))){const ve=H(de(r.touchedFields,T),te.argA,te.argB);re&&fo(r.touchedFields,T,ve)}(v.dirtyFields||x.dirtyFields)&&(r.dirtyFields=gl(c,d)),z.state.next({name:T,isDirty:ne(T,B),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else fo(d,T,B)},w=(T,B)=>{fo(r.errors,T,B),z.state.next({errors:r.errors})},$=T=>{r.errors=T,z.state.next({errors:r.errors,isValid:!1})},D=(T,B,H,te)=>{const re=de(i,T);if(re){const oe=de(d,T,To(H)?de(c,T):H);To(oe)||te&&te.defaultChecked||B?fo(d,T,B?oe:y1(re._f)):He(T,oe),u.mount&&!u.action&&O()}},F=(T,B,H,te,re)=>{let oe=!1,ve=!1;const eo={name:T};if(!n.disabled){if(!H||te){(v.isDirty||x.isDirty)&&(ve=r.isDirty,r.isDirty=eo.isDirty=ne(),oe=ve!==eo.isDirty);const io=zt(de(c,T),B);ve=!!de(r.dirtyFields,T),io?Po(r.dirtyFields,T):fo(r.dirtyFields,T,!0),eo.dirtyFields=r.dirtyFields,oe=oe||(v.dirtyFields||x.dirtyFields)&&ve!==!io}if(H){const io=de(r.touchedFields,T);io||(fo(r.touchedFields,T,H),eo.touchedFields=r.touchedFields,oe=oe||(v.touchedFields||x.touchedFields)&&io!==H)}oe&&re&&z.state.next(eo)}return oe?eo:{}},Z=(T,B,H,te)=>{const re=de(r.errors,T),oe=(v.isValid||x.isValid)&&Xn(B)&&r.isValid!==B;if(n.delayError&&H?(h=S(()=>w(T,H)),h(n.delayError)):(clearTimeout(p),h=null,H?fo(r.errors,T,H):Po(r.errors,T)),(H?!zt(re,H):re)||!Tn(te)||oe){const ve={...te,...oe&&Xn(B)?{isValid:B}:{},errors:r.errors,name:T};r={...r,...ve},z.state.next(ve)}},ee=async T=>(E(T,!0),await n.resolver(d,n.context,pC(T||m.mount,i,n.criteriaMode,n.shouldUseNativeValidation))),se=async T=>{const{errors:B}=await ee(T);if(E(T),T)for(const H of T){const te=de(B,H);te?fo(r.errors,H,te):Po(r.errors,H)}else r.errors=B;return B},$e=async(T,B,H={valid:!0})=>{for(const te in T){const re=T[te];if(re){const{_f:oe,...ve}=re;if(oe){const eo=m.array.has(oe.name),io=re._f&&kC(re._f);io&&v.validatingFields&&E([oe.name],!0);const on=await A1(re,m.disabled,d,N,n.shouldUseNativeValidation&&!B,eo);if(io&&v.validatingFields&&E([oe.name]),on[oe.name]&&(H.valid=!1,B||e.shouldUseNativeValidation))break;!B&&(de(on,oe.name)?eo?wC(r.errors,on,oe.name):fo(r.errors,oe.name,on[oe.name]):Po(r.errors,oe.name))}!Tn(ve)&&await $e(ve,B,H)}}return H.valid},ce=()=>{for(const T of m.unMount){const B=de(i,T);B&&(B._f.refs?B._f.refs.every(H=>!rb(H)):!rb(B._f.ref))&&Co(T)}m.unMount=new Set},ne=(T,B)=>!n.disabled&&(T&&B&&fo(d,T,B),!zt(C(),c)),we=(T,B,H)=>Kb(T,m,{...u.mount?d:To(B)?c:et(T)?{[T]:B}:B},H,B),De=T=>Cm(de(u.mount?d:c,T,n.shouldUnregister?de(c,T,[]):[])),He=(T,B,H={})=>{const te=de(i,T);let re=B;if(te){const oe=te._f;oe&&(!oe.disabled&&fo(d,T,l0(B,oe)),re=Ps(oe.ref)&&In(B)?"":B,t0(oe.ref)?[...oe.ref.options].forEach(ve=>ve.selected=re.includes(ve.value)):oe.refs?Qi(oe.ref)?oe.refs.forEach(ve=>{(!ve.defaultChecked||!ve.disabled)&&(Array.isArray(re)?ve.checked=!!re.find(eo=>eo===ve.value):ve.checked=re===ve.value||!!re)}):oe.refs.forEach(ve=>ve.checked=ve.value===re):$m(oe.ref)?oe.ref.value="":(oe.ref.value=re,oe.ref.type||z.state.next({name:T,values:Zo(d)})))}(H.shouldDirty||H.shouldTouch)&&F(T,re,H.shouldTouch,H.shouldDirty,!0),H.shouldValidate&&Te(T)},M=(T,B,H)=>{for(const te in B){if(!B.hasOwnProperty(te))return;const re=B[te],oe=T+"."+te,ve=de(i,oe);(m.array.has(T)||Xo(re)||ve&&!ve._f)&&!va(re)?M(oe,re,H):He(oe,re,H)}},G=(T,B,H={})=>{const te=de(i,T),re=m.array.has(T),oe=Zo(B);fo(d,T,oe),re?(z.array.next({name:T,values:Zo(d)}),(v.isDirty||v.dirtyFields||x.isDirty||x.dirtyFields)&&H.shouldDirty&&z.state.next({name:T,dirtyFields:gl(c,d),isDirty:ne(T,oe)})):te&&!te._f&&!In(oe)?M(T,oe,H):He(T,oe,H),j1(T,m)?z.state.next({...r,name:T,values:Zo(d)}):z.state.next({name:u.mount?T:void 0,values:Zo(d)})},ie=async T=>{u.mount=!0;const B=T.target;let H=B.name,te=!0;const re=de(i,H),oe=io=>{te=Number.isNaN(io)||va(io)&&isNaN(io.getTime())||zt(io,de(d,H,io))},ve=w1(n.mode),eo=w1(n.reValidateMode);if(re){let io,on;const Bt=B.type?y1(re._f):Xy(T),Tt=T.type===Zs.BLUR||T.type===Zs.FOCUS_OUT,Yr=!vC(re._f)&&!n.resolver&&!de(r.errors,H)&&!re._f.deps||xC(Tt,de(r.touchedFields,H),r.isSubmitted,eo,ve),an=j1(H,m,Tt);fo(d,H,Bt),Tt?(!B||!B.readOnly)&&(re._f.onBlur&&re._f.onBlur(T),h&&h(0)):re._f.onChange&&re._f.onChange(T);const at=F(H,Bt,Tt),zn=!Tn(at)||an;if(!Tt&&z.state.next({name:H,type:T.type,values:Zo(d)}),Yr)return(v.isValid||x.isValid)&&(n.mode==="onBlur"?Tt&&O():Tt||O()),zn&&z.state.next({name:H,...an?{}:at});if(!Tt&&an&&z.state.next({...r}),n.resolver){const{errors:ec}=await ee([H]);if(E([H]),oe(Bt),te){const md=S1(r.errors,i,H),oc=S1(ec,i,md.name||H);io=oc.error,H=oc.name,on=Tn(ec)}}else E([H],!0),io=(await A1(re,m.disabled,d,N,n.shouldUseNativeValidation))[H],E([H]),oe(Bt),te&&(io?on=!1:(v.isValid||x.isValid)&&(on=await $e(i,!0)));te&&(re._f.deps&&(!Array.isArray(re._f.deps)||re._f.deps.length>0)&&Te(re._f.deps),Z(H,on,io,at))}},Se=(T,B)=>{if(de(r.errors,B)&&T.focus)return T.focus(),1},Te=async(T,B={})=>{let H,te;const re=Ii(T);if(n.resolver){const oe=await se(To(T)?T:re);H=Tn(oe),te=T?!re.some(ve=>de(oe,ve)):H}else T?(te=(await Promise.all(re.map(async oe=>{const ve=de(i,oe);return await $e(ve&&ve._f?{[oe]:ve}:ve)}))).every(Boolean),!(!te&&!r.isValid)&&O()):te=H=await $e(i);return z.state.next({...!et(T)||(v.isValid||x.isValid)&&H!==r.isValid?{}:{name:T},...n.resolver||!T?{isValid:H}:{},errors:r.errors}),B.shouldFocus&&!te&&Ui(i,Se,T?re:m.mount),te},C=(T,B)=>{let H={...u.mount?d:c};return B&&(H=n0(B.dirtyFields?r.dirtyFields:r.touchedFields,H)),To(T)?H:et(T)?de(H,T):T.map(te=>de(H,te))},P=(T,B)=>({invalid:!!de((B||r).errors,T),isDirty:!!de((B||r).dirtyFields,T),error:de((B||r).errors,T),isValidating:!!de(r.validatingFields,T),isTouched:!!de((B||r).touchedFields,T)}),le=T=>{T&&Ii(T).forEach(B=>Po(r.errors,B)),z.state.next({errors:T?r.errors:{}})},be=(T,B,H)=>{const te=(de(i,T,{_f:{}})._f||{}).ref,re=de(r.errors,T)||{},{ref:oe,message:ve,type:eo,...io}=re;fo(r.errors,T,{...io,...B,ref:te}),z.state.next({name:T,errors:r.errors,isValid:!1}),H&&H.shouldFocus&&te&&te.focus&&te.focus()},Ce=(T,B)=>An(T)?z.state.subscribe({next:H=>"values"in H&&T(we(void 0,B),H)}):we(T,B,!0),Ne=T=>z.state.subscribe({next:B=>{_C(T.name,B.name,T.exact)&&gC(B,T.formState||v,ke,T.reRenderRoot)&&T.callback({values:{...d},...r,...B,defaultValues:c})}}).unsubscribe,Ge=T=>(u.mount=!0,x={...x,...T.formState},Ne({...T,formState:{...g,...T.formState}})),Co=(T,B={})=>{for(const H of T?Ii(T):m.mount)m.mount.delete(H),m.array.delete(H),B.keepValue||(Po(i,H),Po(d,H)),!B.keepError&&Po(r.errors,H),!B.keepDirty&&Po(r.dirtyFields,H),!B.keepTouched&&Po(r.touchedFields,H),!B.keepIsValidating&&Po(r.validatingFields,H),!n.shouldUnregister&&!B.keepDefaultValue&&Po(c,H);z.state.next({values:Zo(d)}),z.state.next({...r,...B.keepDirty?{isDirty:ne()}:{}}),!B.keepIsValid&&O()},_o=({disabled:T,name:B})=>{if(Xn(T)&&u.mount||T||m.disabled.has(B)){const re=m.disabled.has(B)!==!!T;T?m.disabled.add(B):m.disabled.delete(B),re&&u.mount&&!u.action&&O()}},vt=(T,B={})=>{let H=de(i,T);const te=Xn(B.disabled)||Xn(n.disabled);return fo(i,T,{...H||{},_f:{...H&&H._f?H._f:{ref:{name:T}},name:T,mount:!0,...B}}),m.mount.add(T),H?_o({disabled:Xn(B.disabled)?B.disabled:n.disabled,name:T}):D(T,!0,B.value),{...te?{disabled:B.disabled||n.disabled}:{},...n.progressive?{required:!!B.required,min:Oi(B.min),max:Oi(B.max),minLength:Oi(B.minLength),maxLength:Oi(B.maxLength),pattern:Oi(B.pattern)}:{},name:T,onChange:ie,onBlur:ie,ref:re=>{if(re){vt(T,B),H=de(i,T);const oe=To(re.value)&&re.querySelectorAll&&re.querySelectorAll("input,select,textarea")[0]||re,ve=fC(oe),eo=H._f.refs||[];if(ve?eo.find(io=>io===oe):oe===H._f.ref)return;fo(i,T,{_f:{...H._f,...ve?{refs:[...eo.filter(rb),oe,...Array.isArray(de(c,T))?[{}]:[]],ref:{type:oe.type,name:T}}:{ref:oe}}}),D(T,!1,void 0,oe)}else H=de(i,T,{}),H._f&&(H._f.mount=!1),(n.shouldUnregister||B.shouldUnregister)&&!(Wy(m.array,T)&&u.action)&&m.unMount.add(T)}}},St=()=>n.shouldFocusError&&Ui(i,Se,m.mount),Pr=T=>{Xn(T)&&(z.state.next({disabled:T}),Ui(i,(B,H)=>{const te=de(i,H);te&&(B.disabled=te._f.disabled||T,Array.isArray(te._f.refs)&&te._f.refs.forEach(re=>{re.disabled=te._f.disabled||T}))},0,!1))},Gr=(T,B)=>async H=>{let te;H&&(H.preventDefault&&H.preventDefault(),H.persist&&H.persist());let re=Zo(d);if(z.state.next({isSubmitting:!0}),n.resolver){const{errors:oe,values:ve}=await ee();E(),r.errors=oe,re=Zo(ve)}else await $e(i);if(m.disabled.size)for(const oe of m.disabled)Po(re,oe);if(Po(r.errors,"root"),Tn(r.errors)){z.state.next({errors:{}});try{await T(re,H)}catch(oe){te=oe}}else B&&await B({...r.errors},H),St(),setTimeout(St);if(z.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Tn(r.errors)&&!te,submitCount:r.submitCount+1,errors:r.errors}),te)throw te},gt=(T,B={})=>{de(i,T)&&(To(B.defaultValue)?G(T,Zo(de(c,T))):(G(T,B.defaultValue),fo(c,T,Zo(B.defaultValue))),B.keepTouched||Po(r.touchedFields,T),B.keepDirty||(Po(r.dirtyFields,T),r.isDirty=B.defaultValue?ne(T,Zo(de(c,T))):ne()),B.keepError||(Po(r.errors,T),v.isValid&&O()),z.state.next({...r}))},Nt=(T,B={})=>{const H=T?Zo(T):c,te=Zo(H),re=Tn(T),oe=re?c:te;if(B.keepDefaultValues||(c=H),!B.keepValues){if(B.keepDirtyValues){const ve=new Set([...m.mount,...Object.keys(gl(c,d))]);for(const eo of Array.from(ve)){const io=de(r.dirtyFields,eo),on=de(d,eo),Bt=de(oe,eo);io&&!To(on)?fo(oe,eo,on):!io&&!To(Bt)&&G(eo,Bt)}}else{if(Am&&To(T))for(const ve of m.mount){const eo=de(i,ve);if(eo&&eo._f){const io=Array.isArray(eo._f.refs)?eo._f.refs[0]:eo._f.ref;if(Ps(io)){const on=io.closest("form");if(on){on.reset();break}}}}if(B.keepFieldsRef)for(const ve of m.mount)G(ve,de(oe,ve));else i={}}d=n.shouldUnregister?B.keepDefaultValues?Zo(c):{}:Zo(oe),z.array.next({values:{...oe}}),z.state.next({values:{...oe}})}m={mount:B.keepDirtyValues?m.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!v.isValid||!!B.keepIsValid||!!B.keepDirtyValues||!n.shouldUnregister&&!Tn(oe),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:re?!1:B.keepDirty?r.isDirty:!!(B.keepDefaultValues&&!zt(T,c)),isSubmitted:B.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:re?{}:B.keepDirtyValues?B.keepDefaultValues&&d?gl(c,d):r.dirtyFields:B.keepDefaultValues&&T?gl(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})},fr=(T,B)=>Nt(An(T)?T(d):T,{...n.resetOptions,...B}),he=(T,B={})=>{const H=de(i,T),te=H&&H._f;if(te){const re=te.refs?te.refs[0]:te.ref;re.focus&&setTimeout(()=>{re.focus(),B.shouldSelect&&An(re.select)&&re.select()})}},ke=T=>{r={...r,...T}},lo={control:{register:vt,unregister:Co,getFieldState:P,handleSubmit:Gr,setError:be,_subscribe:Ne,_runSchema:ee,_updateIsValidating:E,_focusError:St,_getWatch:we,_getDirty:ne,_setValid:O,_setFieldArray:_,_setDisabledField:_o,_setErrors:$,_getFieldArray:De,_reset:Nt,_resetDefaultValues:()=>An(n.defaultValues)&&n.defaultValues().then(T=>{fr(T,n.resetOptions),z.state.next({isLoading:!1})}),_removeUnmounted:ce,_disableForm:Pr,_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:Ge,trigger:Te,register:vt,handleSubmit:Gr,watch:Ce,setValue:G,getValues:C,reset:fr,resetField:gt,clearErrors:le,unregister:Co,setError:be,setFocus:he,getFieldState:P};return{...lo,formControl:lo}}function Al(e={}){const n=ae.useRef(void 0),r=ae.useRef(void 0),[i,c]=ae.useState({isDirty:!1,isValidating:!1,isLoading:An(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:An(e.defaultValues)?void 0:e.defaultValues});if(!n.current)if(e.formControl)n.current={...e.formControl,formState:i},e.defaultValues&&!An(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:u,...m}=jC(e);n.current={...m,formState:i}}const d=n.current.control;return d._options=e,Om(()=>{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]),ae.useEffect(()=>d._disableForm(e.disabled),[d,e.disabled]),ae.useEffect(()=>{e.mode&&(d._options.mode=e.mode),e.reValidateMode&&(d._options.reValidateMode=e.reValidateMode)},[d,e.mode,e.reValidateMode]),ae.useEffect(()=>{e.errors&&(d._setErrors(e.errors),d._focusError())},[d,e.errors]),ae.useEffect(()=>{e.shouldUnregister&&d._subjects.state.next({values:d._getWatch()})},[d,e.shouldUnregister]),ae.useEffect(()=>{if(d._proxyFormState.isDirty){const u=d._getDirty();u!==i.isDirty&&d._subjects.state.next({isDirty:u})}},[d,i.isDirty]),ae.useEffect(()=>{var u;e.values&&!zt(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]),ae.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=ae.useMemo(()=>e0(i,d),[d,i]),n.current}function c0(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 Pi;(function(e){e.event="event",e.props="prop"})(Pi||(Pi={}));function Ir(){}function SC(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 Gi(e){return!!(e||"").match(/\d/)}function zl(e){return e==null}function TC(e){return typeof e=="number"&&isNaN(e)}function s0(e){return zl(e)||TC(e)||typeof e=="number"&&!isFinite(e)}function d0(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function AC(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function CC(e,n,r){var i=AC(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 EC(e){var n=j.useRef(e);n.current=e;var r=j.useRef(function(){for(var i=[],c=arguments.length;c--;)i[c]=arguments[c];return n.current.apply(n,i)});return r.current}function Bm(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 LC(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 u0(e,n,r){for(var i="",c=r?"0":"",d=0;d<=n-1;d++)i+=e[d]||c;return i}function C1(e,n){return Array(n+1).join(e)}function f0(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."+C1("0",Math.abs(u))+c:u>=m?c=c+C1("0",u-m):c=(c.substring(0,u)||"0")+"."+c.substring(u),r+c}function E1(e,n,r){if(["","-"].indexOf(e)!==-1)return e;var i=(e.indexOf(".")!==-1||r)&&n,c=Bm(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(S,O,E){return S.length>E?(Number(S[0])+Number(O)).toString()+S.substring(1,S.length):O+S},g[0]));var x=u0(g[1]||"",n,r),z=m?"-":"",N=i?".":"";return""+z+v+N+x}function pa(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 b0=SC(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}}}),OC=function(e,n){var r=Math.min(e.selectionStart,n);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:n}}};function $C(e,n,r){return Math.min(Math.max(e,n),r)}function ab(e){return Math.max(e.selectionStart,e.selectionEnd)}function NC(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function BC(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function RC(e){var n=e.currentValue,r=e.formattedValue,i=e.currentValueIndex,c=e.formattedValueIndex;return n[i]===r[c]}function DC(e,n,r,i,c,d,u){u===void 0&&(u=RC);var m=c.findIndex(function($){return $}),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={},x=new Array(p),z=0;z<p;z++){x[z]=-1;for(var N=0,S=g;N<S;N++){var O=u({currentValue:r,lastValue:n,formattedValue:e,currentValueIndex:z,formattedValueIndex:N});if(O&&v[N]!==!0){x[z]=N,v[N]=!0;break}}}for(var E=i;E<p&&(x[E]===-1||!d(r[E]));)E++;var _=E===p||x[E]===-1?g:x[E];for(E=i-1;E>0&&x[E]===-1;)E--;var w=E===-1||x[E]===-1?0:x[E]+1;return w>_?_:i-w<_-i?w:_}function L1(e,n,r,i){var c=e.length;if(n=$C(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 MC(e){for(var n=Array.from({length:e.length+1}).map(function(){return!0}),r=0,i=n.length;r<i;r++)n[r]=!!(Gi(e[r])||Gi(e[r-1]));return n}function m0(e,n,r,i,c,d){d===void 0&&(d=Ir);var u=EC(function(N,S){var O,E;return s0(N)?(E="",O=""):typeof N=="number"||S?(E=typeof N=="number"?f0(N):N,O=i(E)):(E=c(N,void 0),O=i(E)),{formattedValue:O,numAsString:E}}),m=j.useState(function(){return u(zl(e)?n:e,r)}),h=m[0],p=m[1],g=function(N,S){N.formattedValue!==h.formattedValue&&p({formattedValue:N.formattedValue,numAsString:N.value}),d(N,S)},v=e,x=r;zl(e)&&(v=h.numAsString,x=!0);var z=u(v,x);return j.useMemo(function(){p(z)},[z.formattedValue]),[h,g]}function IC(e){return e.replace(/[^0-9]/g,"")}function UC(e){return e}function FC(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=UC);var m=e.removeFormatting;m===void 0&&(m=IC);var h=e.defaultValue,p=e.valueIsNumericString,g=e.onValueChange,v=e.isAllowed,x=e.onChange;x===void 0&&(x=Ir);var z=e.onKeyDown;z===void 0&&(z=Ir);var N=e.onMouseUp;N===void 0&&(N=Ir);var S=e.onFocus;S===void 0&&(S=Ir);var O=e.onBlur;O===void 0&&(O=Ir);var E=e.value,_=e.getCaretBoundary;_===void 0&&(_=MC);var w=e.isValidInputCharacter;w===void 0&&(w=Gi);var $=e.isCharacterSame,D=c0(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),F=m0(E,h,!!p,u,m,g),Z=F[0],ee=Z.formattedValue,se=Z.numAsString,$e=F[1],ce=j.useRef(),ne=j.useRef({formattedValue:ee,numAsString:se}),we=function(he,ke){ne.current={formattedValue:he.formattedValue,numAsString:he.value},$e(he,ke)},De=j.useState(!1),He=De[0],M=De[1],G=j.useRef(null),ie=j.useRef({setCaretTimeout:null,focusTimeout:null});j.useEffect(function(){return M(!0),function(){clearTimeout(ie.current.setCaretTimeout),clearTimeout(ie.current.focusTimeout)}},[]);var Se=u,Te=function(he,ke){var Re=parseFloat(ke);return{formattedValue:he,value:ke,floatValue:isNaN(Re)?void 0:Re}},C=function(he,ke,Re){he.selectionStart===0&&he.selectionEnd===he.value.length||(pa(he,ke),ie.current.setCaretTimeout=setTimeout(function(){he.value===Re&&he.selectionStart!==ke&&pa(he,ke)},0))},P=function(he,ke,Re){return L1(he,ke,_(he),Re)},le=function(he,ke,Re){var lo=_(ke),T=DC(ke,ee,he,Re,lo,w,$);return T=L1(ke,T,lo),T},be=function(he){var ke=he.formattedValue;ke===void 0&&(ke="");var Re=he.input,lo=he.source,T=he.event,B=he.numAsString,H;if(Re){var te=he.inputValue||Re.value,re=ab(Re);Re.value=ke,H=le(te,ke,re),H!==void 0&&C(Re,H,ke)}ke!==ee&&we(Te(ke,B),{event:T,source:lo})};j.useEffect(function(){var he=ne.current,ke=he.formattedValue,Re=he.numAsString;(ee!==ke||se!==Re)&&we(Te(ee,se),{event:void 0,source:Pi.props})},[ee,se]);var Ce=G.current?ab(G.current):void 0,Ne=typeof window<"u"?j.useLayoutEffect:j.useEffect;Ne(function(){var he=G.current;if(ee!==ne.current.formattedValue&&he){var ke=le(ne.current.formattedValue,ee,Ce);he.value=ee,C(he,ke,ee)}},[ee]);var Ge=function(he,ke,Re){var lo=ke.target,T=ce.current?OC(ce.current,lo.selectionEnd):b0(ee,he),B=Object.assign(Object.assign({},T),{lastValue:ee}),H=m(he,B),te=Se(H);if(H=m(te,void 0),v&&!v(Te(te,H))){var re=ke.target,oe=ab(re),ve=le(he,ee,oe);return re.value=ee,C(re,ve,ee),!1}return be({formattedValue:te,numAsString:H,inputValue:he,event:ke,source:Re,input:ke.target}),!0},Co=function(he,ke){ke===void 0&&(ke=0);var Re=he.selectionStart,lo=he.selectionEnd;ce.current={selectionStart:Re,selectionEnd:lo+ke}},_o=function(he){var ke=he.target,Re=ke.value,lo=Ge(Re,he,Pi.event);lo&&x(he),ce.current=void 0},vt=function(he){var ke=he.target,Re=he.key,lo=ke.selectionStart,T=ke.selectionEnd,B=ke.value;B===void 0&&(B="");var H;Re==="ArrowLeft"||Re==="Backspace"?H=Math.max(lo-1,0):Re==="ArrowRight"?H=Math.min(lo+1,B.length):Re==="Delete"&&(H=lo);var te=0;Re==="Delete"&&lo===T&&(te=1);var re=Re==="ArrowLeft"||Re==="ArrowRight";if(H===void 0||lo!==T&&!re){z(he),Co(ke,te);return}var oe=H;if(re){var ve=Re==="ArrowLeft"?"left":"right";oe=P(B,H,ve),oe!==H&&he.preventDefault()}else Re==="Delete"&&!w(B[H])?oe=P(B,H,"right"):Re==="Backspace"&&!w(B[H])&&(oe=P(B,H,"left"));oe!==H&&C(ke,oe,B),z(he),Co(ke,te)},St=function(he){var ke=he.target,Re=function(){var lo=ke.selectionStart,T=ke.selectionEnd,B=ke.value;if(B===void 0&&(B=""),lo===T){var H=P(B,lo);H!==lo&&C(ke,H,B)}};Re(),requestAnimationFrame(function(){Re()}),N(he),Co(ke)},Pr=function(he){he.persist&&he.persist();var ke=he.target,Re=he.currentTarget;G.current=ke,ie.current.focusTimeout=setTimeout(function(){var lo=ke.selectionStart,T=ke.selectionEnd,B=ke.value;B===void 0&&(B="");var H=P(B,lo);H!==lo&&!(lo===0&&T===B.length)&&C(ke,H,B),S(Object.assign(Object.assign({},he),{currentTarget:Re}))},0)},Gr=function(he){G.current=null,clearTimeout(ie.current.focusTimeout),clearTimeout(ie.current.setCaretTimeout),O(he)},gt=He&&NC()?"numeric":void 0,Nt=Object.assign({inputMode:gt},D,{type:n,value:ee,onChange:_o,onKeyDown:vt,onMouseUp:St,onFocus:Pr,onBlur:Gr});if(r==="text")return c?ae.createElement(ae.Fragment,null,c(ee,D)||null):ae.createElement("span",Object.assign({},D,{ref:d}),ee);if(i){var fr=i;return ae.createElement(fr,Object.assign({},Nt,{ref:d}))}return ae.createElement("input",Object.assign({},Nt,{ref:d}))}function O1(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=cd(n),p=h.thousandSeparator,g=h.decimalSeparator,v=r!==0&&e.indexOf(".")!==-1||r&&i,x=Bm(e,u),z=x.beforeDecimal,N=x.afterDecimal,S=x.addNegation;return r!==void 0&&(N=u0(N,r,!!i)),p&&(z=CC(z,p,m)),c&&(z=c+z),d&&(N=N+d),S&&(z="-"+z),e=z+(v&&g||"")+N,e}function cd(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 HC(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 KC(e,n){return new RegExp("(^-)|[0-9]|"+d0(e),"g")}function VC(e,n,r){return e===""?!0:!n?.match(/\d/)&&!r?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function qC(e,n,r){var i;n===void 0&&(n=BC(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,x=cd(r),z=x.allowedDecimalSeparators,N=x.decimalSeparator,S=e[v]===N;if(Gi(e)&&(e===d||e===u)&&n.lastValue==="")return e;if(v-g===1&&z.indexOf(e[g])!==-1){var O=m===0?"":N;e=e.substring(0,g)+O+e.substring(g+1,e.length)}var E=function(G,ie,Se){var Te=!1,C=!1;d.startsWith("-")?Te=!1:G.startsWith("--")?(Te=!1,C=!0):u.startsWith("-")&&G.length===u.length?Te=!1:G[0]==="-"&&(Te=!0);var P=Te?1:0;return C&&(P=2),P&&(G=G.substring(P),ie-=P,Se-=P),{value:G,start:ie,end:Se,hasNegation:Te}},_=E(e,g,v),w=_.hasNegation;i=_,e=i.value,g=i.start,v=i.end;var $=E(n.lastValue,h.start,h.end),D=$.start,F=$.end,Z=$.value,ee=e.substring(g,v);e.length&&Z.length&&(D>Z.length-u.length||F<d.length)&&!(ee&&u.startsWith(ee))&&(e=Z);var se=0;e.startsWith(d)?se+=d.length:g<d.length&&(se=g),e=e.substring(se),v-=se;var $e=e.length,ce=e.length-u.length;e.endsWith(u)?$e=ce:(v>ce||v>e.length-u.length)&&($e=v),e=e.substring(0,$e),e=HC(w?"-"+e:e,c),e=(e.match(KC(N))||[]).join("");var ne=e.indexOf(N);e=e.replace(new RegExp(d0(N),"g"),function(G,ie){return ie===ne?".":""});var we=Bm(e,c),De=we.beforeDecimal,He=we.afterDecimal,M=we.addNegation;return p.end-p.start<h.end-h.start&&De===""&&S&&!parseFloat(He)&&(e=M?"-":""),e}function ZC(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,r.length+(d?1:0));var u=e.length;return c.fill(!1,u-i.length+1,u+1),c}function PC(e){var n=cd(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 .)
25958
- `);return s.startsWith("-")&&d&&(console.error(`
25958
+ `);return c.startsWith("-")&&d&&(console.error(`
25959
25959
  Prefix can't start with '-' when allowNegative is true.
25960
- prefix: `+s+`
25960
+ prefix: `+c+`
25961
25961
  allowNegative: `+d+`
25962
- `),d=!1),Object.assign(Object.assign({},e),{allowNegative:d})}function GC(e){e=PC(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var n=e.suffix,r=e.allowNegative,i=e.allowLeadingZeros,s=e.onKeyDown;s===void 0&&(s=Ir);var d=e.onBlur;d===void 0&&(d=Ir);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,N=c0(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),S=id(e),O=S.decimalSeparator,E=S.allowedDecimalSeparators,x=function(M){return L1(M,e)},w=function(M,G){return qC(M,G,e)},$=zl(v)?g:v,D=_??VC($,p,n);zl(v)?zl(g)||(D=D||typeof g=="number"):D=D||typeof v=="number";var H=function(M){return s0(M)?M:(typeof M=="number"&&(M=f0(M)),D&&typeof m=="number"?C1(M,m,!!h):M)},Z=m0(H(v),H(g),!!D,x,w,z),ee=Z[0],se=ee.numAsString,$e=ee.formattedValue,ce=Z[1],ne=function(M){var G=M.target,ie=M.key,Se=G.selectionStart,Te=G.selectionEnd,C=G.value;if(C===void 0&&(C=""),(ie==="Backspace"||ie==="Delete")&&Te<p.length){M.preventDefault();return}if(Se!==Te){s(M);return}ie==="Backspace"&&C[0]==="-"&&Se===p.length+1&&r&&pa(G,1),m&&h&&(ie==="Backspace"&&C[Se-1]===O?(pa(G,Se-1),M.preventDefault()):ie==="Delete"&&C[Se]===O&&M.preventDefault()),E?.includes(ie)&&C[Se]===O&&pa(G,Se+1);var P=u===!0?",":u;ie==="Backspace"&&C[Se-1]===P&&pa(G,Se-1),ie==="Delete"&&C[Se]===P&&pa(G,Se+1),s(M)},we=function(M){var G=se;if(G.match(/\d/g)||(G=""),i||(G=LC(G)),h&&m&&(G=C1(G,m,h)),G!==se){var ie=L1(G,e);ce({formattedValue:ie,value:G,floatValue:parseFloat(G)},{event:M,source:Zi.event})}d(M)},De=function(M){return M===O?!0:Pi(M)},Fe=function(M){var G=M.currentValue,ie=M.lastValue,Se=M.formattedValue,Te=M.currentValueIndex,C=M.formattedValueIndex,P=G[Te],le=Se[C],fe=b0(ie,G),Ce=fe.to,Ne=function(Ge){return w(Ge).indexOf(".")+p.length};return v===0&&h&&m&&G[Ce.start]===O&&Ne(G)<Te&&Ne(Se)>C?!1:Te>=Ce.start&&Te<Ce.end&&E&&E.includes(P)&&le===O?!0:P===le};return Object.assign(Object.assign({},N),{value:$e,valueIsNumericString:!1,isValidInputCharacter:De,isCharacterSame:Fe,onValueChange:ce,format:x,removeFormatting:w,getCaretBoundary:function(M){return ZC(M,e)},onKeyDown:ne,onBlur:we})}function YC(e){var n=GC(e);return ae.createElement(HC,Object.assign({},n))}class JC{parse(n){return n==null||n===""?"":String(n).replace(/[eE.,]/g,"").replace(/\d[+-]/g,"")}}const XC=/[.,+eE]/,WC=e=>{e.key.length===1&&!e.ctrlKey&&!e.metaKey&&XC.test(e.key)&&e.preventDefault()};function QC({_label:e,_msg:n,_touched:r,_on:i,_required:s,value:d,thousandSeparator:u=!0,suffix:m="€",...h}){const p=i&&typeof i=="object"?i:void 0;return a.jsx(YC,{...h,value:d,suffix:m,thousandSeparator:u,valueIsNumericString:!1,customInput:g=>{const v=g.value;return a.jsx(Oe,{...g,_value:v,_label:e,_msg:n,_touched:r,_required:s,_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 eE(e){const{name:n,control:r,rules:i,defaultValue:s,shouldUnregister:d,disabled:u,_label:m,_required:h,...p}=e;return a.jsx(e0,{name:n,control:r,rules:i,defaultValue:s,shouldUnregister:d,disabled:u,render:({field:g,fieldState:v})=>{const _=p._on;return a.jsx(QC,{...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,N)=>{g.onChange(N),_?.onInput?.(z,N)},onBlur:()=>g.onBlur()}})}})}function oE(){const e=new JC,[n,r]=ae.useState(void 0),[i,s]=ae.useState(-128),[d,u]=ae.useState(!1),h=ld({defaultValues:{currency:1e6},mode:"onTouched"}),p=h.watch(),g=v=>{h.handleSubmit(async()=>{})(v)};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(An,{children:a.jsx(So,{_label:"Whole number",_step:1,_value:n??i,_on:{onKeyDown:WC,onBlur:()=>{u(!0)},onInput:(v,_)=>{const z=e.parse(_),N=z===""?void 0:Number(z);r(N),s(N)}}})}),a.jsx("pre",{className:"text-base mt-2",children:JSON.stringify({value:i,touched:d},null,2)})]}),a.jsxs("div",{children:[a.jsx(An,{_on:{onSubmit:g},children:a.jsx(eE,{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 nE={"input-number":{basic:aC,"number-formatter":oE}},O1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Eo,{...n,_label:"Passwort (Black background test)"})}),a.jsx(Eo,{...n,ref:r,_accessKey:"P",_required:!0,_hint:xn,_msg:{_type:"error",_description:Ue},_placeholder:"Mit Icons",_label:"Passwort",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},_touched:!0}),a.jsx(Eo,{...n,_placeholder:"Placeholder",_msg:{_type:"info",_description:"Just a hint"},_label:"Password"}),a.jsx(Eo,{...n,_placeholder:"Placeholder",_msg:{_type:"warning",_description:"Small warning"},_label:"Password"}),a.jsx(Eo,{...n,_placeholder:"Placeholder",_msg:{_type:"success",_description:"Success message"},_label:"Password"}),a.jsx(Eo,{...n,_disabled:!0,_msg:{_type:"error",_description:Ue},_label:"Passwort (Disabled)",_touched:!0}),a.jsx(Eo,{...n,_readOnly:!0,_label:"Passwort (Readonly)"}),a.jsx(Eo,{...n,ref:r,_shortKey:"c",_label:"With access key"}),a.jsx(Eo,{...n,ref:r,_shortKey:"s",_label:"With short key"})]})}),tE=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Password"}),a.jsx(O1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Password (hideLabel)"}),a.jsx(O1,{ref:r,...n,_hideLabel:!0})]})]})}),rE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(yn,{RefComponent:tE,showButtons:!1})]}),aE=()=>{const e=j.useRef(null);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(An,{className:"w-full",children:[a.jsx(Eo,{_placeholder:"With 'Show password' button",_label:"Password",ref:e,className:"block",_variant:"visibility-toggle"}),a.jsx(Eo,{_placeholder:"With 'Show password' button",_label:"Password",ref:e,className:"block",_variant:"visibility-toggle",_value:"Password"}),a.jsx(Eo,{_placeholder:"With 'Show password' button and disabled",_label:"Password",ref:e,className:"block",_disabled:!0,_variant:"visibility-toggle"})]})]})},lE={"input-password":{basic:rE,"show-password":aE}},$1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Lo,{...n,_options:"[{'disabled':true,'label':'Mrs. (disabled)','value':'Mrs.'},{'label':'Mr.'},{'label':'Company','value':'Company'}]",_label:"Salutation (Black background test)"})}),a.jsx(Lo,{...n,_required:!0,_msg:{_type:"error",_description:Ue},_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(Lo,{...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(Lo,{...n,_disabled:!0,_orientation:"horizontal",_required:!0,_msg:{_type:"error",_description:Ue},_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(Lo,{...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(Lo,{...n,_orientation:"horizontal",_required:!0,_msg:{_type:"error",_description:Ue},_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:xn})]})}),iE=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("div",{className:"border border-solid border-dark-100 p-3",children:[a.jsx(be,{_level:2,_label:"Radio",className:"block mb-2"}),a.jsx($1,{...n})]}),a.jsxs("div",{className:"border border-solid border-dark-100 p-3",children:[a.jsx(be,{_level:2,_label:"Radio (hideLabel)",className:"block mb-2"}),a.jsx($1,{ref:r,...n,_hideLabel:!0})]})]})}),cE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(yn,{RefComponent:iE,showButtons:!1})]}),sE=()=>{const[e,n]=j.useState(!0),[r,i]=j.useState("horizontal"),s=[{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(V,{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(W,{_label:"Click me a few times",_on:{onClick:d}}),a.jsx(ro,{_label:"Switch orientation (horizontal/vertical)",_on:{onChange:u},_variant:"switch"})]}),e&&a.jsx(An,{children:a.jsxs("div",{className:"container my-4 d-grid gap-4",children:[a.jsx(Lo,{_label:`Test (${r})`,_options:s,_orientation:r,_required:!0}),a.jsx(Lo,{_hideLabel:!0,_label:`Test (${r})`,_options:s,_orientation:r,_required:!0})]})})]})},dE=()=>{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(V,{children:["This sample shows KolInputRadio with ",a.jsx("code",{children:"object"})," and ",a.jsx("code",{children:"undefined"})," values."]}),a.jsxs(An,{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(Lo,{_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(Lo,{_options:e,_label:"Test (without value)"})})]})]})},uE={"input-radio":{basic:cE,horizontal:sE,object:dE}},N1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(en,{...n,_min:0,_max:50,_msg:{_type:"error",_description:Ue},_label:"Slider (Black background test)",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},_touched:!0})}),a.jsx(en,{...n,ref:r,_accessKey:"F",_min:0,_max:50,_step:10,_hint:xn,_msg:{_type:"error",_description:Ue},_label:"Slider with error",_touched:!0}),a.jsx(en,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Slider"}),a.jsx(en,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Slider"}),a.jsx(en,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Slider"}),a.jsx(en,{...n,_disabled:!0,_min:0,_max:50,_label:"Slider (disabled)"}),a.jsx(en,{...n,_min:0,_max:50,_label:"With access key",_accessKey:"c"}),a.jsx(en,{...n,_min:0,_max:50,_label:"With short key",_shortKey:"s"})]})}),fE=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Range"}),a.jsx(N1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Range (hideLabel)"}),a.jsx(N1,{ref:r,...n,_hideLabel:!0})]})]})}),bE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(yn,{RefComponent:fE,showButtons:!1})]}),mE={"input-range":{basic:bE}},B1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Oe,{...n,_value:"Value",_label:"First name (Black background test)"})}),a.jsx(Oe,{...n,_hint:xn,_msg:{_type:"error",_description:Ue},_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(Oe,{...n,_placeholder:"Placeholder",_msg:{_type:"info",_description:"Just a hint"},_label:"Search",_type:"search"}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_msg:{_type:"error",_description:Ue},_touched:!0,_type:"url",_label:"URL (url)"}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_type:"tel",_label:"Telephone (tel)",_msg:{_type:"warning",_description:"Small warning"}}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_type:"tel",_label:"Telephone (tel)",_msg:{_type:"success",_description:"Success message"}}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_label:"With counter",_maxLength:10,_value:"Lorem Ipsum",_hasCounter:!0}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_readOnly:!0,_label:"First name (placeholder)"}),a.jsx(Oe,{...n,_value:"Value",_readOnly:!0,_label:"First name (text)"}),a.jsx(Oe,{...n,_placeholder:"Placeholder",_disabled:!0,_label:"First name (placeholder, disabled)"}),a.jsx(Oe,{...n,_value:"Value",_disabled:!0,_label:"First name (text, disabled)"}),a.jsx(Oe,{...n,_value:"Value",_label:"With access key",_accessKey:"c"}),a.jsx(Oe,{...n,_value:"Value",_label:"With short key",_shortKey:"s"})]})}),hE=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(B1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(B1,{ref:r,...n,_hideLabel:!0})]})]})}),pE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(yn,{RefComponent:hE,showButtons:!1})]}),kE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample show KolInputText with expert slot."})}),a.jsx(Oe,{_label:"",_type:"text",children:a.jsx("span",{slot:"expert",children:"I am more than just a input field"})})]}),vE=()=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(V,{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(Le,{_label:"Normal input field with error",_level:0,children:a.jsx(Oe,{_msg:{_type:"error",_description:"Error message"},_label:"Input with error",_touched:!0})}),a.jsx(Le,{_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(gn,{className:"col-span-2",_level:0,_type:"error",children:"This is a combined error message"}),a.jsx(Oe,{_msg:{_type:"error",_description:"This is a combined error message"},_hideMsg:!0,_label:"First input",_touched:!0}),a.jsx(Oe,{_msg:{_type:"error",_description:"This is a combined error message"},_hideMsg:!0,_label:"Second input with error",_touched:!0})]})})]}),gE=()=>{const e=j.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(V,{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(Oe,{_value:"Very long value",_label:"Text Input Label",ref:e}),a.jsx(Pe,{_label:"Set Start",onClick:n}),a.jsx(Pe,{_label:"Set Range",onClick:r}),a.jsx(Pe,{_label:"Set Range Text",onClick:i})]})]})},R1={_icons:"codicon codicon-info",_hideLabel:!0},_E={left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},xE=()=>{const e=Vr.getInstance(document),n={onClick:()=>{e.enqueue({description:"Smart-Button clicked",label:"Toaster",type:"default"})}};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Oe,{_label:"Input with button and icons",_type:"text",_smartButton:{...R1,_label:"Open Toast",_on:n},_icons:_E}),a.jsx(Oe,{_label:"Disabled input with button and without icons",_disabled:!0,_type:"text",_smartButton:{...R1,_label:"Disabled Button"}})]})]})},yE=/[^a-zA-Z0-9]/g,wE=/(.{4})(?!$)/g;class zE{electronicFormat(n){return n.replace(yE,"").toUpperCase()}printFormat(n,r){return this.electronicFormat(n).replace(wE,"$1"+(r||" "))}parse(n){return this.electronicFormat(n)}format(n,r,i){const s=r?.setSelectionStart;return i&&s&&(i%5===0&&i++,s(i)),this.printFormat(n)}}function jE({formatter:e,selectionStartRef:n,_on:r,_value:i,...s}){const d=j.useRef(null),u=r&&typeof r=="object"?r:void 0,m=n,h=d.current,p=m.current,g=e;return a.jsx(Oe,{...s,ref:d,_value:g.format(i??"",h,p),_on:{...u,onInput:(v,_)=>{const z=d.current?.selectionStart;z?.().then(S=>{m.current=S??null});const N=g.parse(typeof _=="string"?_:"");u?.onInput?.(v,N)}}})}function SE(e){const{name:n,control:r,rules:i,defaultValue:s,shouldUnregister:d,disabled:u,formatter:m,selectionStartRef:h,...p}=e;return a.jsx(e0,{name:n,control:r,rules:i,defaultValue:s,shouldUnregister:d,disabled:u,render:({field:g,fieldState:v})=>{const _=p._on;return a.jsx(jE,{...p,formatter:m,selectionStartRef:h,_value:g.value,_touched:v.isTouched,_msg:v.error?{_type:"error",_description:v.error.message||String(v.error)}:void 0,_on:{onInput:(z,N)=>{g.onChange(N),_?.onInput?.(z,N)},onBlur:()=>g.onBlur()}})}})}function TE(){const e=j.useMemo(()=>new zE,[]),n=j.useRef(null),i=ld({defaultValues:{iban:"DE89370400440532013000"},mode:"onTouched"}),s=i.watch(),d=u=>{i.handleSubmit(async()=>{})(u)};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example demonstrates formatting a data value in an input field (example IBAN). The data value is formatted to the input field (print format) and vice versa the formatting is removed again (machine format)"})}),a.jsx("section",{className:"w-full",children:a.jsxs("div",{children:[a.jsx(An,{_on:{onSubmit:d},children:a.jsx(SE,{control:i.control,name:"iban",id:"field-iban",formatter:e,selectionStartRef:n,rules:{required:"Please enter an IBAN."},_label:"IBAN",_required:!0})}),a.jsx("pre",{className:"text-base mt-2",children:JSON.stringify(s,null,2)})]})})]})}const AE={"input-text":{basic:pE,"hide-msg":vE,"text-formatter":TE,"smart-button":xE,"expert-slot":kE,"select-range":gE}},CE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(be,{class:"block",_level:3,_label:"Regular"}),a.jsx(Ss,{class:"block",style:{width:300}}),a.jsx(be,{class:"block",_level:3,_label:"Without Label"}),a.jsx(Ss,{class:"block",style:{width:300},_labeled:!1}),a.jsx(be,{class:"block",_level:3,_label:"Customized color"}),a.jsx(Ss,{class:"block",style:{width:300},_color:"#cc006e"})]}),EE={kolibri:{basic:CE}},LE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolLinkButton with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(Xe,{_href:"#/back-page",_label:"Link Button Text without area description"}),a.jsx(Xe,{_href:"#/back-page",_label:"Link Button Text",_ariaDescription:"Link Button Area Description"})]})]}),ma={_href:"#/back-page"},OE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Xe,{_label:"Primary",_variant:"primary",...ma}),a.jsx(Xe,{_label:"Secondary",_variant:"secondary",...ma}),a.jsx(Xe,{_label:"Normal",_variant:"normal",...ma}),a.jsx(Xe,{_label:"Danger",_variant:"danger",...ma}),a.jsx(Xe,{_label:"Ghost",_variant:"ghost",...ma}),a.jsx(Xe,{_label:"Access Key",_variant:"primary",_accessKey:"c",...ma}),a.jsx(Xe,{_label:"Short Key",_variant:"primary",_shortKey:"s",...ma})]})]}),$E={"link-button":{basic:OE,"aria-description":LE}},NE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_e,{_href:"#/back-page",_label:"With S access key",_accessKey:"S"}),a.jsx(_e,{_href:"#/back-page",_label:"Very small s",_accessKey:"s"}),a.jsx(_e,{_href:"#/back-page",_label:"Access key does not appear in label",_accessKey:"s"}),a.jsx(_e,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_label:"access key without label",_accessKey:"s"})]})]}),BE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolLink with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(_e,{_href:"#/back-page",_label:"Link Text without aria description"}),a.jsx(_e,{_href:"#/back-page",_label:"Link Text",_ariaDescription:"Link Area Description"})]})]}),RE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_e,{_href:"#/back-page",_inline:!1,_label:"Simple Link"}),a.jsx(_e,{_disabled:!0,_href:"#/back-page",_inline:!1,_label:"Simple Link (disabled)"}),a.jsx(_e,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_inline:!1,_label:"Icon Link"}),a.jsx(_e,{_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(_e,{_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(_e,{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(_e,{class:"d-block",_href:"#/back-page",_label:"Simple Link"}),", therefore, I span the entire width of the parent element, causing a line break."]})]})]}),DE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_e,{_icons:"codicon codicon-home",_label:"I am a link with an icon on the left",_href:"#/back-page"}),a.jsx(_e,{_icons:{right:"codicon codicon-home"},_label:"I am a link with an icon on the right",_href:"#/back-page"}),a.jsx(_e,{_icons:{top:"codicon codicon-home"},_label:"I am a link with an icon at the top",_href:"#/back-page"}),a.jsx(_e,{_icons:{bottom:"codicon codicon-home"},_label:"I am a link with icon below",_href:"#/back-page"}),a.jsx(_e,{_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(_e,{_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(_e,{_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(_e,{_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(_e,{_icons:{bottom:"codicon codicon-home"},_href:"https://public-ui.github.io/",_label:"I am a external link with icon below",_target:"_blank"}),a.jsx(_e,{_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"}})]})]}),ME=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_e,{_href:"#/back-page",_label:"I am a link that is rendered as text"}),a.jsx(_e,{_href:"#/back-page",_label:"",children:a.jsx("img",{alt:"Presentation of the KoliBri theming",slot:"expert",src:"abgrenzung.jpg",width:"300"})})]})]}),IE=()=>{const e=od(),n={onClick:r=>{r.preventDefault(),e("/back-page")}};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_e,{_href:"/back-page",_inline:!1,_label:"Go to overview",_on:n})})]})},UE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_e,{_href:"#/back-page",_label:"With S short key",_shortKey:"S"}),a.jsx(_e,{_href:"#/back-page",_label:"Very small s",_shortKey:"s"}),a.jsx(_e,{_href:"#/back-page",_label:"Short key does not appear in label",_shortKey:"s"}),a.jsx(_e,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_label:"short key without label",_shortKey:"s"})]})]}),HE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_e,{_href:"#/back-page",_label:"Link without target"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_label:"Link with target (_self)",_target:"_self"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_label:"Link with target (_blank)",_target:"_blank"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link without target"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link with target (_self)",_target:"_self"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link with target (_blank)",_target:"_blank"})})]})})]}),FE={link:{basic:RE,icons:DE,image:ME,target:HE,"aria-description":BE,"access-key":NE,"short-key":UE,"react-router":IE}},KE=()=>{const[e]=Kr(),n=e.get("show-modal"),r=j.useRef(null),i=j.useRef(null),s={onClick:()=>r.current?.openModal()},d={onClick:()=>i.current?.openModal()},u={onClick:()=>r.current?.closeModal()};return j.useEffect(()=>{n==="true"&&(r.current?.openModal(),i.current?.openModal())},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{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(W,{_label:"Open blank modal",_on:s}),a.jsx(Zv,{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(W,{_label:"Open card modal",className:"mr",_on:d}),a.jsx(W,{_label:"Close",_on:u})]})})]}),a.jsxs("div",{children:[a.jsx(W,{_label:"Open card modal",_on:d}),a.jsx(Zv,{ref:i,_label:"Card modal",_variant:"card",_width:"30%",children:a.jsx("p",{className:"mt-0",children:"This variant wraps content inside a KolCard."})})]})]})]})},VE={modal:{basic:KE}},qE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wl,{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}]})]}),h0=[{_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"}]}],ZE=[{_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"}],PE=[{_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"}]}],GE=()=>{const[e,n]=j.useState(!1);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(ro,{_label:"Show icons when expanded",_checked:e,_on:{onChange:(r,i)=>{n(i)}}})}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Navigation without submenu"}),a.jsx(wl,{class:"block w-fit",_label:"Navigation without submenu",_links:ZE,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Navigation with submenu"}),a.jsx(wl,{class:"block w-fit",_label:"Navigation with submenu",_links:h0,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Navigation with submenu active"}),a.jsx(wl,{class:"block w-fit",_label:"Navigation with submenu active",_links:PE,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]})]})]})},YE={nav:{basic:GE,"aria-current":qE}},JE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wi,{_max:316514,_page:15475,_siblingCount:3,_label:"Test pagination 1",_on:{}}),a.jsx(wi,{_max:14,_page:14,_siblingCount:1,_boundaryCount:2,_label:"Test pagination 2",_on:{}}),a.jsx(wi,{_max:4,_page:1,_siblingCount:0,_boundaryCount:2,_label:"Test pagination 3",_on:{}}),a.jsx(wi,{_max:4,_page:6,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:"Test pagination 4",_on:{}}),a.jsx(wi,{_max:400,_page:6,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:"Test pagination 5",_on:{},_pageSizeOptions:[10,100]})]})]}),XE={pagination:{basic:JE}},WE=()=>{const{dummyClickEventHandler:e}=Do(),n=ae.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 j.useEffect(()=>{n.current&&(n.current.showPopover(),n.current.focus())},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{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(ub,{_label:"Actions",_variant:"primary",_icons:{right:"codicon codicon-chevron-down"},ref:n,children:a.jsx(ga,{_label:"Action toolbar",_items:i,_orientation:"vertical"})}),a.jsx(ub,{_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(be,{_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."]})]})})]})]})},QE={"popover-button":{basic:WE}},eL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(nr,{_variant:"bar",_max:7,_value:0}),a.jsx(nr,{_variant:"bar",_max:7,_value:2}),a.jsx(nr,{_variant:"bar",_max:7,_value:7}),a.jsx(nr,{_variant:"cycle",_max:7,_value:6})]}),a.jsxs("fieldset",{title:"Custom units",className:"flex flex-col gap-4",children:[a.jsx(nr,{_label:"Distance",_variant:"bar",_max:65434,_value:7236,_unit:"m"}),a.jsx(nr,{_label:"12 Tasks to do",_variant:"bar",_max:12,_value:5,_unit:"tasks completed"}),a.jsx(nr,{_label:"Max 150 kg",_variant:"cycle",_max:150,_value:42,_unit:"kg"})]})]})]}),oL={progress:{basic:eL}},nL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(zx,{_href:"https://datatracker.ietf.org/doc/html/rfc1149",_quote:"Avian carriers can provide high delay.",_variant:"inline"})]}),tL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows a quote in the "block" variant.'})}),a.jsx(zx,{_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 GC(e){e=PC(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var n=e.suffix,r=e.allowNegative,i=e.allowLeadingZeros,c=e.onKeyDown;c===void 0&&(c=Ir);var d=e.onBlur;d===void 0&&(d=Ir);var u=e.thousandSeparator,m=e.decimalScale,h=e.fixedDecimalScale,p=e.prefix;p===void 0&&(p="");var g=e.defaultValue,v=e.value,x=e.valueIsNumericString,z=e.onValueChange,N=c0(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),S=cd(e),O=S.decimalSeparator,E=S.allowedDecimalSeparators,_=function(M){return O1(M,e)},w=function(M,G){return qC(M,G,e)},$=zl(v)?g:v,D=x??VC($,p,n);zl(v)?zl(g)||(D=D||typeof g=="number"):D=D||typeof v=="number";var F=function(M){return s0(M)?M:(typeof M=="number"&&(M=f0(M)),D&&typeof m=="number"?E1(M,m,!!h):M)},Z=m0(F(v),F(g),!!D,_,w,z),ee=Z[0],se=ee.numAsString,$e=ee.formattedValue,ce=Z[1],ne=function(M){var G=M.target,ie=M.key,Se=G.selectionStart,Te=G.selectionEnd,C=G.value;if(C===void 0&&(C=""),(ie==="Backspace"||ie==="Delete")&&Te<p.length){M.preventDefault();return}if(Se!==Te){c(M);return}ie==="Backspace"&&C[0]==="-"&&Se===p.length+1&&r&&pa(G,1),m&&h&&(ie==="Backspace"&&C[Se-1]===O?(pa(G,Se-1),M.preventDefault()):ie==="Delete"&&C[Se]===O&&M.preventDefault()),E?.includes(ie)&&C[Se]===O&&pa(G,Se+1);var P=u===!0?",":u;ie==="Backspace"&&C[Se-1]===P&&pa(G,Se-1),ie==="Delete"&&C[Se]===P&&pa(G,Se+1),c(M)},we=function(M){var G=se;if(G.match(/\d/g)||(G=""),i||(G=LC(G)),h&&m&&(G=E1(G,m,h)),G!==se){var ie=O1(G,e);ce({formattedValue:ie,value:G,floatValue:parseFloat(G)},{event:M,source:Pi.event})}d(M)},De=function(M){return M===O?!0:Gi(M)},He=function(M){var G=M.currentValue,ie=M.lastValue,Se=M.formattedValue,Te=M.currentValueIndex,C=M.formattedValueIndex,P=G[Te],le=Se[C],be=b0(ie,G),Ce=be.to,Ne=function(Ge){return w(Ge).indexOf(".")+p.length};return v===0&&h&&m&&G[Ce.start]===O&&Ne(G)<Te&&Ne(Se)>C?!1:Te>=Ce.start&&Te<Ce.end&&E&&E.includes(P)&&le===O?!0:P===le};return Object.assign(Object.assign({},N),{value:$e,valueIsNumericString:!1,isValidInputCharacter:De,isCharacterSame:He,onValueChange:ce,format:_,removeFormatting:w,getCaretBoundary:function(M){return ZC(M,e)},onKeyDown:ne,onBlur:we})}function YC(e){var n=GC(e);return ae.createElement(FC,Object.assign({},n))}class JC{parse(n){return n==null||n===""?"":String(n).replace(/[eE.,]/g,"").replace(/\d[+-]/g,"")}}const XC=/[.,+eE]/,WC=e=>{e.key.length===1&&!e.ctrlKey&&!e.metaKey&&XC.test(e.key)&&e.preventDefault()};function QC({_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(YC,{...h,value:d,suffix:m,thousandSeparator:u,valueIsNumericString:!1,customInput:g=>{const v=g.value;return a.jsx(Ee,{...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 eE(e){const{name:n,control:r,rules:i,defaultValue:c,shouldUnregister:d,disabled:u,_label:m,_required:h,...p}=e;return a.jsx(qb,{name:n,control:r,rules:i,defaultValue:c,shouldUnregister:d,disabled:u,render:({field:g,fieldState:v})=>{const x=p._on;return a.jsx(QC,{...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,N)=>{g.onChange(N),x?.onInput?.(z,N)},onBlur:()=>g.onBlur()}})}})}function oE(){const e=new JC,[n,r]=ae.useState(void 0),[i,c]=ae.useState(-128),[d,u]=ae.useState(!1),h=Al({defaultValues:{currency:1e6},mode:"onTouched"}),p=h.watch(),g=v=>{h.handleSubmit(async()=>{})(v)};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mn,{children:a.jsx(So,{_label:"Whole number",_step:1,_value:n??i,_on:{onKeyDown:WC,onBlur:()=>{u(!0)},onInput:(v,x)=>{const z=e.parse(x),N=z===""?void 0:Number(z);r(N),c(N)}}})}),a.jsx("pre",{className:"text-base mt-2",children:JSON.stringify({value:i,touched:d},null,2)})]}),a.jsxs("div",{children:[a.jsx(mn,{_on:{onSubmit:g},children:a.jsx(eE,{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 nE={"input-number":{basic:aC,"number-formatter":oE}},$1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Eo,{...n,_label:"Passwort (Black background test)"})}),a.jsx(Eo,{...n,ref:r,_accessKey:"P",_required:!0,_hint:yn,_msg:{_type:"error",_description:Ue},_placeholder:"Mit Icons",_label:"Passwort",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},_touched:!0}),a.jsx(Eo,{...n,_placeholder:"Placeholder",_msg:{_type:"info",_description:"Just a hint"},_label:"Password"}),a.jsx(Eo,{...n,_placeholder:"Placeholder",_msg:{_type:"warning",_description:"Small warning"},_label:"Password"}),a.jsx(Eo,{...n,_placeholder:"Placeholder",_msg:{_type:"success",_description:"Success message"},_label:"Password"}),a.jsx(Eo,{...n,_disabled:!0,_msg:{_type:"error",_description:Ue},_label:"Passwort (Disabled)",_touched:!0}),a.jsx(Eo,{...n,_readOnly:!0,_label:"Passwort (Readonly)"}),a.jsx(Eo,{...n,ref:r,_shortKey:"c",_label:"With access key"}),a.jsx(Eo,{...n,ref:r,_shortKey:"s",_label:"With short key"})]})}),tE=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Password"}),a.jsx($1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Password (hideLabel)"}),a.jsx($1,{ref:r,...n,_hideLabel:!0})]})]})}),rE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wn,{RefComponent:tE,showButtons:!1})]}),aE=()=>{const e=j.useRef(null);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mn,{className:"w-full",children:[a.jsx(Eo,{_placeholder:"With 'Show password' button",_label:"Password",ref:e,className:"block",_variant:"visibility-toggle"}),a.jsx(Eo,{_placeholder:"With 'Show password' button",_label:"Password",ref:e,className:"block",_variant:"visibility-toggle",_value:"Password"}),a.jsx(Eo,{_placeholder:"With 'Show password' button and disabled",_label:"Password",ref:e,className:"block",_disabled:!0,_variant:"visibility-toggle"})]})]})},lE={"input-password":{basic:rE,"show-password":aE}},N1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Lo,{...n,_options:"[{'disabled':true,'label':'Mrs. (disabled)','value':'Mrs.'},{'label':'Mr.'},{'label':'Company','value':'Company'}]",_label:"Salutation (Black background test)"})}),a.jsx(Lo,{...n,_required:!0,_msg:{_type:"error",_description:Ue},_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(Lo,{...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(Lo,{...n,_disabled:!0,_orientation:"horizontal",_required:!0,_msg:{_type:"error",_description:Ue},_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(Lo,{...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(Lo,{...n,_orientation:"horizontal",_required:!0,_msg:{_type:"error",_description:Ue},_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:yn})]})}),iE=j.forwardRef(function(n,r){return a.jsxs(Cn,{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(N1,{...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(N1,{ref:r,...n,_hideLabel:!0})]})]})}),cE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wn,{RefComponent:iE,showButtons:!1})]}),sE=()=>{const[e,n]=j.useState(!0),[r,i]=j.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(V,{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(ro,{_label:"Switch orientation (horizontal/vertical)",_on:{onChange:u},_variant:"switch"})]}),e&&a.jsx(mn,{children:a.jsxs("div",{className:"container my-4 d-grid gap-4",children:[a.jsx(Lo,{_label:`Test (${r})`,_options:c,_orientation:r,_required:!0}),a.jsx(Lo,{_hideLabel:!0,_label:`Test (${r})`,_options:c,_orientation:r,_required:!0})]})})]})},dE=()=>{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(V,{children:["This sample shows KolInputRadio with ",a.jsx("code",{children:"object"})," and ",a.jsx("code",{children:"undefined"})," values."]}),a.jsxs(mn,{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(Lo,{_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(Lo,{_options:e,_label:"Test (without value)"})})]})]})},uE={"input-radio":{basic:cE,horizontal:sE,object:dE}},B1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(en,{...n,_min:0,_max:50,_msg:{_type:"error",_description:Ue},_label:"Slider (Black background test)",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},_touched:!0})}),a.jsx(en,{...n,ref:r,_accessKey:"F",_min:0,_max:50,_step:10,_hint:yn,_msg:{_type:"error",_description:Ue},_label:"Slider with error",_touched:!0}),a.jsx(en,{...n,_msg:{_type:"info",_description:"Just a hint"},_label:"Slider"}),a.jsx(en,{...n,_msg:{_type:"warning",_description:"Small warning"},_label:"Slider"}),a.jsx(en,{...n,_msg:{_type:"success",_description:"Success message"},_label:"Slider"}),a.jsx(en,{...n,_disabled:!0,_min:0,_max:50,_label:"Slider (disabled)"}),a.jsx(en,{...n,_min:0,_max:50,_label:"With access key",_accessKey:"c"}),a.jsx(en,{...n,_min:0,_max:50,_label:"With short key",_shortKey:"s"})]})}),fE=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Range"}),a.jsx(B1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Range (hideLabel)"}),a.jsx(B1,{ref:r,...n,_hideLabel:!0})]})]})}),bE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wn,{RefComponent:fE,showButtons:!1})]}),mE={"input-range":{basic:bE}},R1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Ee,{...n,_value:"Value",_label:"First name (Black background test)"})}),a.jsx(Ee,{...n,_hint:yn,_msg:{_type:"error",_description:Ue},_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(Ee,{...n,_placeholder:"Placeholder",_msg:{_type:"info",_description:"Just a hint"},_label:"Search",_type:"search"}),a.jsx(Ee,{...n,_placeholder:"Placeholder",_msg:{_type:"error",_description:Ue},_touched:!0,_type:"url",_label:"URL (url)"}),a.jsx(Ee,{...n,_placeholder:"Placeholder",_type:"tel",_label:"Telephone (tel)",_msg:{_type:"warning",_description:"Small warning"}}),a.jsx(Ee,{...n,_placeholder:"Placeholder",_type:"tel",_label:"Telephone (tel)",_msg:{_type:"success",_description:"Success message"}}),a.jsx(Ee,{...n,_placeholder:"Placeholder",_label:"With counter",_maxLength:10,_value:"Lorem Ipsum",_hasCounter:!0}),a.jsx(Ee,{...n,_placeholder:"Placeholder",_readOnly:!0,_label:"First name (placeholder)"}),a.jsx(Ee,{...n,_value:"Value",_readOnly:!0,_label:"First name (text)"}),a.jsx(Ee,{...n,_placeholder:"Placeholder",_disabled:!0,_label:"First name (placeholder, disabled)"}),a.jsx(Ee,{...n,_value:"Value",_disabled:!0,_label:"First name (text, disabled)"}),a.jsx(Ee,{...n,_value:"Value",_label:"With access key",_accessKey:"c"}),a.jsx(Ee,{...n,_value:"Value",_label:"With short key",_shortKey:"s"})]})}),hE=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(R1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(R1,{ref:r,...n,_hideLabel:!0})]})]})}),pE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wn,{RefComponent:hE,showButtons:!1})]}),kE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample show KolInputText with expert slot."})}),a.jsx(Ee,{_label:"",_type:"text",children:a.jsx("span",{slot:"expert",children:"I am more than just a input field"})})]}),vE=()=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(V,{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(Oe,{_label:"Normal input field with error",_level:0,children:a.jsx(Ee,{_msg:{_type:"error",_description:"Error message"},_label:"Input with error",_touched:!0})}),a.jsx(Oe,{_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(_n,{className:"col-span-2",_level:0,_type:"error",children:"This is a combined error message"}),a.jsx(Ee,{_msg:{_type:"error",_description:"This is a combined error message"},_hideMsg:!0,_label:"First input",_touched:!0}),a.jsx(Ee,{_msg:{_type:"error",_description:"This is a combined error message"},_hideMsg:!0,_label:"Second input with error",_touched:!0})]})})]}),gE=()=>{const e=j.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(V,{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(Ee,{_value:"Very long value",_label:"Text Input Label",ref:e}),a.jsx(Pe,{_label:"Set Start",onClick:n}),a.jsx(Pe,{_label:"Set Range",onClick:r}),a.jsx(Pe,{_label:"Set Range Text",onClick:i})]})]})},D1={_icons:"codicon codicon-info",_hideLabel:!0},_E={left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}},xE=()=>{const e=Vr.getInstance(document),n={onClick:()=>{e.enqueue({description:"Smart-Button clicked",label:"Toaster",type:"default"})}};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Ee,{_label:"Input with button and icons",_type:"text",_smartButton:{...D1,_label:"Open Toast",_on:n},_icons:_E}),a.jsx(Ee,{_label:"Disabled input with button and without icons",_disabled:!0,_type:"text",_smartButton:{...D1,_label:"Disabled Button"}})]})]})};class yE{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 wE{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 zE(){const e=new yE,n=new wE,r=Al({defaultValues:{iban:"DE89370400440532013000"}}),i=Al({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(V,{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(mn,{children:a.jsx("form",{onSubmit:r.handleSubmit(async()=>{}),children:a.jsx(qb,{name:"iban",control:r.control,render:({field:d})=>a.jsx("div",{className:"block mt-2",children:a.jsx(Ee,{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(mn,{children:a.jsx("form",{onSubmit:i.handleSubmit(async()=>{}),children:a.jsx(qb,{name:"currency",control:i.control,render:({field:d})=>a.jsx("div",{className:"block mt-2",children:a.jsx(Ee,{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 jE={"input-text":{basic:pE,"hide-msg":vE,"text-formatter":zE,"smart-button":xE,"expert-slot":kE,"select-range":gE}},SE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(As,{class:"block",style:{width:300}}),a.jsx(ue,{class:"block",_level:3,_label:"Without Label"}),a.jsx(As,{class:"block",style:{width:300},_labeled:!1}),a.jsx(ue,{class:"block",_level:3,_label:"Customized color"}),a.jsx(As,{class:"block",style:{width:300},_color:"#cc006e"})]}),TE={kolibri:{basic:SE}},AE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolLinkButton with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(Xe,{_href:"#/back-page",_label:"Link Button Text without area description"}),a.jsx(Xe,{_href:"#/back-page",_label:"Link Button Text",_ariaDescription:"Link Button Area Description"})]})]}),ma={_href:"#/back-page"},CE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Xe,{_label:"Primary",_variant:"primary",...ma}),a.jsx(Xe,{_label:"Secondary",_variant:"secondary",...ma}),a.jsx(Xe,{_label:"Normal",_variant:"normal",...ma}),a.jsx(Xe,{_label:"Danger",_variant:"danger",...ma}),a.jsx(Xe,{_label:"Ghost",_variant:"ghost",...ma}),a.jsx(Xe,{_label:"Access Key",_variant:"primary",_accessKey:"c",...ma}),a.jsx(Xe,{_label:"Short Key",_variant:"primary",_shortKey:"s",...ma})]})]}),EE={"link-button":{basic:CE,"aria-description":AE}},LE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_e,{_href:"#/back-page",_label:"With S access key",_accessKey:"S"}),a.jsx(_e,{_href:"#/back-page",_label:"Very small s",_accessKey:"s"}),a.jsx(_e,{_href:"#/back-page",_label:"Access key does not appear in label",_accessKey:"s"}),a.jsx(_e,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_label:"access key without label",_accessKey:"s"})]})]}),OE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolLink with aria-description"})}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(_e,{_href:"#/back-page",_label:"Link Text without aria description"}),a.jsx(_e,{_href:"#/back-page",_label:"Link Text",_ariaDescription:"Link Area Description"})]})]}),$E=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_e,{_href:"#/back-page",_inline:!1,_label:"Simple Link"}),a.jsx(_e,{_disabled:!0,_href:"#/back-page",_inline:!1,_label:"Simple Link (disabled)"}),a.jsx(_e,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_inline:!1,_label:"Icon Link"}),a.jsx(_e,{_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(_e,{_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(_e,{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(_e,{class:"d-block",_href:"#/back-page",_label:"Simple Link"}),", therefore, I span the entire width of the parent element, causing a line break."]})]})]}),NE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_e,{_icons:"codicon codicon-home",_label:"I am a link with an icon on the left",_href:"#/back-page"}),a.jsx(_e,{_icons:{right:"codicon codicon-home"},_label:"I am a link with an icon on the right",_href:"#/back-page"}),a.jsx(_e,{_icons:{top:"codicon codicon-home"},_label:"I am a link with an icon at the top",_href:"#/back-page"}),a.jsx(_e,{_icons:{bottom:"codicon codicon-home"},_label:"I am a link with icon below",_href:"#/back-page"}),a.jsx(_e,{_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(_e,{_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(_e,{_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(_e,{_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(_e,{_icons:{bottom:"codicon codicon-home"},_href:"https://public-ui.github.io/",_label:"I am a external link with icon below",_target:"_blank"}),a.jsx(_e,{_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"}})]})]}),BE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_e,{_href:"#/back-page",_label:"I am a link that is rendered as text"}),a.jsx(_e,{_href:"#/back-page",_label:"",children:a.jsx("img",{alt:"Presentation of the KoliBri theming",slot:"expert",src:"abgrenzung.jpg",width:"300"})})]})]}),RE=()=>{const e=td(),n={onClick:r=>{r.preventDefault(),e("/back-page")}};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_e,{_href:"/back-page",_inline:!1,_label:"Go to overview",_on:n})})]})},DE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_e,{_href:"#/back-page",_label:"With S short key",_shortKey:"S"}),a.jsx(_e,{_href:"#/back-page",_label:"Very small s",_shortKey:"s"}),a.jsx(_e,{_href:"#/back-page",_label:"Short key does not appear in label",_shortKey:"s"}),a.jsx(_e,{_hideLabel:!0,_icons:"codicon codicon-home",_href:"#/back-page",_label:"short key without label",_shortKey:"s"})]})]}),ME=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_e,{_href:"#/back-page",_label:"Link without target"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_label:"Link with target (_self)",_target:"_self"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_label:"Link with target (_blank)",_target:"_blank"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link without target"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link with target (_self)",_target:"_self"})}),a.jsx("li",{children:a.jsx(_e,{_href:"#/back-page",_icons:"codicon codicon-home",_hideLabel:!0,_label:"Link with target (_blank)",_target:"_blank"})})]})})]}),IE={link:{basic:$E,icons:NE,image:BE,target:ME,"aria-description":OE,"access-key":LE,"short-key":DE,"react-router":RE}},UE=()=>{const[e]=Kr(),n=e.get("show-modal"),r=j.useRef(null),i=j.useRef(null),c={onClick:()=>r.current?.openModal()},d={onClick:()=>i.current?.openModal()},u={onClick:()=>r.current?.closeModal()};return j.useEffect(()=>{n==="true"&&(r.current?.openModal(),i.current?.openModal())},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Pv,{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(Pv,{ref:i,_label:"Card modal",_variant:"card",_width:"30%",children:a.jsx("p",{className:"mt-0",children:"This variant wraps content inside a KolCard."})})]})]})]})},FE={modal:{basic:UE}},HE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wl,{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}]})]}),h0=[{_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"}]}],KE=[{_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"}],VE=[{_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"}]}],qE=()=>{const[e,n]=j.useState(!1);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(ro,{_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(wl,{class:"block w-fit",_label:"Navigation without submenu",_links:KE,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Navigation with submenu"}),a.jsx(wl,{class:"block w-fit",_label:"Navigation with submenu",_links:h0,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Navigation with submenu active"}),a.jsx(wl,{class:"block w-fit",_label:"Navigation with submenu active",_links:VE,_hasCompactButton:!0,_hasIconsWhenExpanded:e})]})]})]})},ZE={nav:{basic:qE,"aria-current":HE}},PE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(zi,{_max:316514,_page:15475,_siblingCount:3,_label:"Test pagination 1",_on:{}}),a.jsx(zi,{_max:14,_page:14,_siblingCount:1,_boundaryCount:2,_label:"Test pagination 2",_on:{}}),a.jsx(zi,{_max:4,_page:1,_siblingCount:0,_boundaryCount:2,_label:"Test pagination 3",_on:{}}),a.jsx(zi,{_max:4,_page:6,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:"Test pagination 4",_on:{}}),a.jsx(zi,{_max:400,_page:6,_siblingCount:0,_boundaryCount:2,_hasButtons:!1,_label:"Test pagination 5",_on:{},_pageSizeOptions:[10,100]})]})]}),GE={pagination:{basic:PE}},YE=()=>{const{dummyClickEventHandler:e}=Do(),n=ae.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 j.useEffect(()=>{n.current&&(n.current.showPopover(),n.current.focus())},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{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(fb,{_label:"Actions",_variant:"primary",_icons:{right:"codicon codicon-chevron-down"},ref:n,children:a.jsx(ga,{_label:"Action toolbar",_items:i,_orientation:"vertical"})}),a.jsx(fb,{_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."]})]})})]})]})},JE={"popover-button":{basic:YE}},XE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(nr,{_variant:"bar",_max:7,_value:0}),a.jsx(nr,{_variant:"bar",_max:7,_value:2}),a.jsx(nr,{_variant:"bar",_max:7,_value:7}),a.jsx(nr,{_variant:"cycle",_max:7,_value:6})]}),a.jsxs("fieldset",{title:"Custom units",className:"flex flex-col gap-4",children:[a.jsx(nr,{_label:"Distance",_variant:"bar",_max:65434,_value:7236,_unit:"m"}),a.jsx(nr,{_label:"12 Tasks to do",_variant:"bar",_max:12,_value:5,_unit:"tasks completed"}),a.jsx(nr,{_label:"Max 150 kg",_variant:"cycle",_max:150,_value:42,_unit:"kg"})]})]})]}),WE={progress:{basic:XE}},QE=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(jx,{_href:"https://datatracker.ietf.org/doc/html/rfc1149",_quote:"Avian carriers can provide high delay.",_variant:"inline"})]}),eL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows a quote in the "block" variant.'})}),a.jsx(jx,{_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"})]}),rL={quote:{basic:nL,block:tL}},Ni=[{label:"No salutation",value:""},{label:"Mrs.",value:"Mrs."},{label:"Mr.",value:"Mr."},{label:"Divers",value:"Divers"}],aL=Ni.map((e,n)=>n===0?{label:"Select salutation",value:"",disabled:!0}:e),lL=Wn.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},{}),D1=Object.values(lL),M1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Jo,{...n,ref:r,_accessKey:"a",_options:Ni,_label:"Salutation",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(Jo,{...n,_options:Ni,_label:"Disabled",_disabled:!0}),a.jsx(Jo,{...n,_options:aL,_label:"Salutation with error",_msg:{_type:"error",_description:Ue},_touched:!0}),a.jsx(Jo,{...n,_options:Wn,_label:"Multiple choice",_multiple:!0}),a.jsx(Jo,{...n,_options:Wn,_label:"Multiple choice with error",_multiple:!0,_required:!0,_msg:{_type:"error",_description:Ue},_hint:xn,_touched:!0}),a.jsx(Jo,{...n,_options:Ni,_label:"With access key",_accessKey:"c"}),a.jsx(Jo,{...n,_options:Ni,_label:"With short key",_shortKey:"s"}),a.jsx(Jo,{...n,_options:D1,_label:"With grouped by first letter",_value:"Albanien"}),a.jsx(Jo,{...n,_options:D1,_label:"With grouped by first letter (multiple)",_multiple:!0,_value:["Albanien"]})]})}),iL=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(M1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(M1,{ref:r,...n,_hideLabel:!0})]})]})}),cL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(yn,{RefComponent:iL,showButtons:!1})]}),I1={select:{basic:cL}},sL=[{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"}],U1=e=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(bn,{...e,_hint:xn,_label:"Label",_options:Wn,_value:"de",_on:{onBlur:console.log,onInput:console.log,onChange:console.log,onClick:console.log,onFocus:console.log}}),a.jsx(bn,{...e,_label:"Disabled",_options:Wn,_value:"de",_disabled:!0}),a.jsx(bn,{...e,_options:Wn,_msg:{_type:"error",_description:Ue},_rows:3,_touched:!0,_label:"Label",_placeholder:"Placeholder",_required:!0}),a.jsx(bn,{...e,_label:"With access key",_options:Wn,_value:"de",_accessKey:"c"}),a.jsx(bn,{...e,_label:"With short key",_options:Wn,_value:"de",_shortKey:"s"}),a.jsx(bn,{...e,_label:"With long labels",_options:sL,_placeholder:"Placeholder"}),a.jsx(bn,{...e,_label:"With hidden clear button",_options:Wn,_value:"de",_hideClearButton:!0}),a.jsx(bn,{...e,_hint:xn,_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}})]}),dL=e=>a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(U1,{...e})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(U1,{...e,_hideLabel:!0})]})]}),uL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"SingleSelect provides a select field for a single value, supported by a search field."})}),a.jsx(yn,{RefComponent:dL,showButtons:!1})]}),fL={"single-select":{basic:uL}},bL=()=>{const e=j.useRef(null);return j.useEffect(()=>{e.current?.focus()},[]),a.jsxs("div",{className:"grid gap-4",children:[a.jsxs(V,{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(Pz,{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"}]})]})},mL={"skip-nav":{basic:bL}},hL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'KolSpin renders a loading indicator. This sample shows the default variant "dot".'})}),a.jsx(Ws,{_show:!0})]}),pL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Ws,{_show:!0,_variant:"none",children:a.jsx("span",{slot:"expert",className:"loader"})})]}),kL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows the KolSpin variant "cycle".'})}),a.jsx(Ws,{_show:!0,_variant:"cycle"})]}),vL=()=>{const[e,n]=j.useState(!0);return j.useEffect(()=>{const r=setInterval(()=>n(i=>!i),3e3);return()=>clearInterval(r)},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolSpin with a label."})}),a.jsx(Ws,{_show:e,_label:e?"Loading data...":"Data loaded."})]})},gL={spin:{basic:hL,cycle:kL,custom:pL,label:vL}},_L=()=>{const{buttonWithTextClickEventHandler:e}=Do(),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(V,{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(_l,{_label:"Edit",_on:n,children:a.jsx(ga,{_label:"Action toolbar",_items:r,_orientation:"vertical"})})})]})},xL=()=>{const e=j.useRef(null),n=()=>{e.current?.closePopup()};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_l,{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(Oe,{_label:"User"}),a.jsx(Oe,{_label:"Role"}),a.jsx(W,{_label:"Close",_on:{onClick:n}})]})]})})})]})},yL={"split-button":{basic:_L,"with-context":xL}},_s=[{left:"Left Example",center:"Center Example",right:"Right Example"}],Oi=()=>0,wL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(be,{_label:"Simple table",_level:3}),a.jsx(mo,{_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:_s,className:"block",style:{maxWidth:"600px"}}),a.jsx(be,{_label:"Table with sortable columns",_level:3,className:"block mt-6"}),a.jsx(mo,{_label:"Table for demonstration purposes with sortable columns",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left",compareFn:Oi},{label:"center",key:"center",textAlign:"center",compareFn:Oi},{label:"right",key:"right",textAlign:"right",compareFn:Oi}]]},_data:_s,className:"block",style:{maxWidth:"600px"}}),a.jsx(be,{_label:"Table some sortable columns",_level:3,className:"block mt-6"}),a.jsx(mo,{_label:"Table for demonstration purposes with some but not all columns sortable",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left",compareFn:Oi},{label:"center",key:"center",textAlign:"center",compareFn:Oi},{label:"right",key:"right",textAlign:"right"}]]},_data:_s,className:"block",style:{maxWidth:"600px"}}),a.jsx(be,{_label:"Table with vertical heading",_level:3,className:"block mt-6"}),a.jsx(mo,{_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:_s,className:"block",style:{maxWidth:"600px"}})]})]}),zL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mo,{_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"}]]}})})]}),ab=22,jL=[{city:"Reykjavík",temperature:6},{city:"Berlin",temperature:21},{city:"Palma de Mallorca",temperature:29},{city:"Cairo",temperature:35},{city:"Helsinki",temperature:14}],SL={horizontal:[[{label:"City",key:"city"},{label:"Temperature (°C)",key:"temperature",textAlign:"right",compareFn:(e,n,r="ASC")=>{const i=e.temperature,s=n.temperature,d=Math.abs(i-ab),u=Math.abs(s-ab);return d!==u?r==="DESC"?u-d:d-u:r==="DESC"?s-i:i-s},render:(e,n,r)=>{const i=Math.abs(r.temperature-ab);return`${r.temperature} °C (Δ ${i} °C)`}}]]},TL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mo,{_minWidth:"100%",_label:"Direction aware compare function",_data:jL,_headers:SL,className:"block"})})]}),cd=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")}],H1=[{small:"Small Example",large:"Larger Example"}],lb={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"}]]},AL=()=>0,CL=()=>{const[e,n]=j.useState(!0);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mo,{_label:"Table for demonstration purposes with horizontal scrollbar.",_minWidth:e?"600px":"300px",_headers:lb,_data:H1,className:"block"}),a.jsx(mo,{_label:"Table for demonstration horizontal scrolling with pagination.",_minWidth:e?"600px":"300px",_headers:{horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",compareFn:AL,render:(r,i,s)=>cd.format(s.date)}]]},_data:ir,_pagination:!0}),a.jsx(mo,{_label:"Table for demonstration purposes with horizontal scrollbar with auto minWidth.",_minWidth:e?"600px":"300px",_headers:lb,_data:[],className:"block"})]}),a.jsx(ro,{_checked:e,_label:"Toggle width restriction",_variant:"switch",_on:{onChange:(r,i)=>{n(!!i)}}}),a.jsx(be,{_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(mo,{_label:"Table for demonstration purposes without horizontal scrollbar",_minWidth:"600px",_headers:lb,_data:H1,className:"block",_pagination:!0})]})]})};function EL({_on:e,...n}){const{dummyClickEventHandler:r}=Do(),i={onClick:r};return a.jsx(W,{...n,_on:i})}const $i=e=>{const n=e.charAt(0).toUpperCase()+e.slice(1);return{label:n,key:e,textAlign:"left",render:(r,i)=>{const s={_label:n,_variant:e,_icons:{right:"codicon codicon-squirrel"}};vn(Fr(r)).render(i.label==="button"?a.jsx(EL,{...s}):a.jsx(Xe,{_href:"#/back-page",...s}))}}},LL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Sl,{_label:"Button styles",_minWidth:"auto",_headerCells:{horizontal:[[$i("primary"),$i("secondary"),$i("normal"),$i("danger"),$i("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(Sl,{_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"}};vn(Fr(e)).render(n.label==="button-link"?a.jsx(Pe,{...r}):a.jsx(_e,{_href:"#/back-page",...r}))}}]],vertical:[[{label:"Link"},{label:"Button-Link"}]]},_data:[{regular:"link"},{regular:"button-link"}],className:"block mt"})]})]}),OL=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),Ps=[{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)=>OL.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}],$L={horizontal:[Ps]},NL={vertical:[Ps]},BL=()=>{const[e,n]=j.useState(NL),[r,i]=j.useState($L);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(be,{_level:2,_label:"Vertical"}),a.jsx(Pe,{_label:"Reset Table",_on:{onClick:()=>n({vertical:[[...Ps]]})}}),a.jsx(mo,{_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(be,{_level:2,_label:"Horizontal"}),a.jsx(Pe,{_label:"Reset Table",_on:{onClick:()=>i({horizontal:[[...Ps]]})}}),a.jsx(mo,{_label:"Sort Table with Order and Date",_minWidth:"auto",_data:ir,_headers:r,className:"block",_allowMultiSort:!0})]})]})]})},RL=[{id:"1001",name:"John",age:30},{id:"1002",name:"Jane",age:25}],DL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example demonstrates a column that cannot be hidden in the settings."})}),a.jsx(mo,{_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:RL,className:"block",style:{maxWidth:"600px"}})]}),ib={horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",render:(e,n,r)=>cd.format(r.date)}]]},cb={_page:2},ML=()=>a.jsxs("div",{className:"w-full grid gap-14",children:[a.jsx(V,{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(be,{_level:2,_label:"Table with pagination at the bottom."}),a.jsx(mo,{_label:"Sample table with pagination at the bottom",_minWidth:"auto",_data:ir,_headers:ib,_pagination:cb,_paginationPosition:"bottom"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Table with pagination at the top."}),a.jsx(mo,{_label:"Sample table with pagination at the top",_minWidth:"auto",_data:ir,_headers:ib,_pagination:cb,_paginationPosition:"top"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Table with pagination at both top and bottom."}),a.jsx(mo,{_label:"Sample table with pagination at both top and bottom",_minWidth:"auto",_data:ir,_headers:ib,_pagination:cb,_paginationPosition:"both"})]})]})]}),IL=[{columnA:"Column A",columnB:"Column B",columnC:"Column C"}],UL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example shows the table with predefined settings."})}),a.jsx(mo,{_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:IL,"_min-width":"500px",className:"block",style:{maxWidth:"600px"}})]}),HL=[{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 FL({label:e,icons:n}){const{dummyClickEventHandler:r}=Do(),i={onClick:r};return a.jsx(W,{_label:e,_icons:n,_on:i})}const KL={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>${cd.format(n.label)}</strong>`},compareFn:(e,n)=>e.date.getTime()-n.date.getTime()},{label:"Action (react)",width:"20em",render:e=>{vn(Fr(e)).render(a.jsxs("div",{style:{display:"grid",gridAutoFlow:"column",alignItems:"end",gap:"1rem",maxWidth:"400px"},children:[a.jsx(Oe,{_label:"Input"}),a.jsx(FL,{label:"Save",icons:{left:"codicon codicon-save"}})]}))}}]]},VL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful using React render functions for the cell contents."})}),a.jsx(mo,{_label:"Sort by date column",_minWidth:"auto",_data:HL,_headers:KL,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"}],ZL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mo,{_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"}})]}),p0=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),PL={horizontal:[[{label:"order",key:"order",textAlign:"center"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>p0.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}]]},GL={vertical:[[{label:"order",key:"order",textAlign:"center"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>p0.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}]]},YL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(be,{_level:2,_label:"Vertical headers"}),a.jsx(mo,{_label:"Sort a date column",_minWidth:"auto",_data:ir.slice(0,10),_headers:GL,className:"block"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(be,{_level:2,_label:"Horizontal headers"}),a.jsx(mo,{_label:"Sort a date column",_minWidth:"auto",_data:ir,_headers:PL,className:"block"})]})]})]}),JL=[{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 XL({label:e}){const{dummyClickEventHandler:n}=Do(),r={onClick:n};return a.jsx(W,{_label:e,_on:r})}const WL=()=>{const[e,n]=j.useState(),r={label:h=>`Selection for ${h.name}`,selectedKeys:e?e.map(h=>h.internalIdentifier):["AAA1004"],disabledKeys:["AAA1003","AAA1004"],keyPropertyName:"internalIdentifier"},i=j.useRef(null),s=({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)};j.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,s),()=>{i.current?.removeEventListener(Ot.selectionChange,s)}),[i]);const m=(h,p)=>{vn(Fr(h)).render(a.jsx(XL,{label:`Click ${p.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with checkboxes for selection enabled."})}),a.jsxs("section",{className:"w-full",children:[a.jsx(mo,{_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:JL,_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(W,{_label:"getSelection()",_on:{onClick:()=>{u()}}}),a.jsx("pre",{className:"text-base",children:JSON.stringify(e,null,2)})]})]})]})},QL=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"}];function eO({label:e}){const{dummyClickEventHandler:n}=Do(),r={onClick:n};return a.jsx(W,{_label:e,_on:r})}const oO=()=>{const[e,n]=j.useState(),r={label:h=>`Selection for ${h.name}`,multiple:!1,selectedKeys:e?[e.internalIdentifier]:[],keyPropertyName:"internalIdentifier"},i=j.useRef(null),s=({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)};j.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,s),()=>{i.current?.removeEventListener(Ot.selectionChange,s)}),[i]);const m=(h,p)=>{vn(Fr(h)).render(a.jsx(eO,{label:`Click ${p.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with radio buttons for selection enabled."})}),a.jsxs("section",{className:"w-full",children:[a.jsx(mo,{_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:QL,_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(W,{_label:"getSelection()",_on:{onClick:()=>{u()}}}),a.jsx("pre",{className:"text-base",children:JSON.stringify(e,null,2)})]})]})]})},nO=[{left:"Left Example",center:"Center Example",right:"Right Example"},{},{},{}],tO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Sl,{_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:nO,className:"block",style:{maxWidth:"600px"},_on:{onSort:(e,n)=>{console.log(n)}}})})]}),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}=Do(),r={onClick:n};return a.jsx(W,{_label:e,_on:r})}const lO=()=>{const[e,n]=j.useState(["AAA1002","AAA1004"]),r={label:m=>`Selection for ${m.name}`,selectedKeys:e,keyPropertyName:"internalIdentifier",disabledKeys:["AAA1003","AAA1004"]},i=j.useRef(null),s=({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])};j.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,s),()=>{i.current?.removeEventListener(Ot.selectionChange,s)}),[i]);const u=(m,h)=>{vn(Fr(m)).render(a.jsx(aO,{label:`Click ${h.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateless with checkboxes for selection enabled."})}),a.jsx("section",{className:"w-full",children:a.jsx(Sl,{_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:rO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i})})]})},iO=[{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"}],cO=()=>a.jsxs(a.Fragment,{children:[a.jsxs(V,{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(Sl,{_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:iO,_on:{onSort:(e,n)=>console.log("sort",n),onSelectionChange:(e,n)=>console.log("selection",n)}})]}),sO=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"},{id:"1003",name:"Foo Disabled",internalIdentifier:"AAA1003"}];function dO({label:e}){const{dummyClickEventHandler:n}=Do(),r={onClick:n};return a.jsx(W,{_label:e,_on:r})}const uO=()=>{const[e,n]=j.useState(["1002"]),r={label:m=>`Selection for ${m.name}`,multiple:!1,selectedKeys:e,disabledKeys:["AAA1003"],keyPropertyName:"internalIdentifier"},i=j.useRef(null),s=({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])};j.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,s),()=>{i.current?.removeEventListener(Ot.selectionChange,s)}),[i]);const u=(m,h)=>{vn(Fr(m)).render(a.jsx(dO,{label:`Click ${h.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateless with checkboxes for selection enabled."})}),a.jsx("section",{className:"w-full",children:a.jsx(Sl,{_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:sO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i})})]})},F1=[{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"}],fO=Array.from({length:200},(e,n)=>{const r=F1[n%F1.length];return{id:n+1,...r}}),bO={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"}]]},mO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(be,{_level:2,_label:"Sticky headers"}),a.jsx(mo,{_label:"Animal species overview",_minWidth:"1200px",_data:fO,_headers:bO,className:"block"})]}),hO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with footer data."})}),a.jsx(mo,{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"}]})]}),pO={horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",render:(e,n,r)=>cd.format(r.date)}]]},kO={_page:2},vO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mo,{_label:"Table description",_minWidth:"auto",_data:ir,_headers:pO,_pagination:kO})})]}),gO={table:{"column-alignment":wL,"complex-headers":zL,"horizontal-scrollbar":CL,"interactive-child-elements":LL,"multi-sort":BL,"non-hidable-columns":DL,"pagination-position":ML,"predefined-settings":UL,"render-cell":VL,"settings-column-options":ZL,"sort-data":YL,"direction-aware-sort":TL,"stateful-with-selection":WL,"stateless-with-settings-menu":cO,"stateful-with-single-selection":oO,stateless:tO,"stateless-with-selection":lO,"stateless-with-single-selection":uO,"sticky-header":mO,"with-footer":hO,"with-pagination":vO}},_O=[{_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"}],xO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(be,{_level:2,_label:n}),a.jsxs(cr,{_tabs:_O,_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)})})]}),k0=[{_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"}],yO=k0.map(e=>({...e,_icons:void 0})),wO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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:yO,_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:k0,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"})]})]}),K1=[{_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"}],zO=()=>a.jsxs(a.Fragment,{children:[a.jsxs(V,{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(be,{_level:2,_label:'Tabs with "select manual" behavior'}),a.jsxs(cr,{_tabs:K1,_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(be,{_level:2,_label:'Tabs with "select automatic" behavior'}),a.jsxs(cr,{_tabs:K1,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"})]})]})]})]}),jO=()=>{const[e,n]=j.useState([{_label:"First tab"},{_label:"Second Tab"}]),r=()=>{n([...e,{_label:`Tab #${e.length+1}`}])};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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,s)=>a.jsxs("div",{slot:`tab-${s}`,children:["Contents of ",i._label]},`tab-${s}`)),a.jsx("div",{slot:"tab-1",children:"Contents of Tab 2"})]})]})},SO=[{_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}],TO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTabs with hidden labels."})}),a.jsxs(cr,{_label:"Tabs with icons",_tabs:SO,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"})]})]}),AO={tabs:{basic:wO,"create-button":jO,"icons-only":TO,behavior:zO,align:xO}},CO=`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"})]}),oL={quote:{basic:QE,block:eL}},Bi=[{label:"No salutation",value:""},{label:"Mrs.",value:"Mrs."},{label:"Mr.",value:"Mr."},{label:"Divers",value:"Divers"}],nL=Bi.map((e,n)=>n===0?{label:"Select salutation",value:"",disabled:!0}:e),tL=Wn.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},{}),M1=Object.values(tL),I1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Jo,{...n,ref:r,_accessKey:"a",_options:Bi,_label:"Salutation",_icons:{left:{icon:"codicon codicon-arrow-left"},right:{icon:"codicon codicon-arrow-right"}}}),a.jsx(Jo,{...n,_options:Bi,_label:"Disabled",_disabled:!0}),a.jsx(Jo,{...n,_options:nL,_label:"Salutation with error",_msg:{_type:"error",_description:Ue},_touched:!0}),a.jsx(Jo,{...n,_options:Wn,_label:"Multiple choice",_multiple:!0}),a.jsx(Jo,{...n,_options:Wn,_label:"Multiple choice with error",_multiple:!0,_required:!0,_msg:{_type:"error",_description:Ue},_hint:yn,_touched:!0}),a.jsx(Jo,{...n,_options:Bi,_label:"With access key",_accessKey:"c"}),a.jsx(Jo,{...n,_options:Bi,_label:"With short key",_shortKey:"s"}),a.jsx(Jo,{...n,_options:M1,_label:"With grouped by first letter",_value:"Albanien"}),a.jsx(Jo,{...n,_options:M1,_label:"With grouped by first letter (multiple)",_multiple:!0,_value:["Albanien"]})]})}),rL=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(I1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(I1,{ref:r,...n,_hideLabel:!0})]})]})}),aL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wn,{RefComponent:rL,showButtons:!1})]}),U1={select:{basic:aL}},lL=[{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"}],F1=e=>a.jsxs("div",{className:"grid gap-4",children:[a.jsx(bn,{...e,_hint:yn,_label:"Label",_options:Wn,_value:"de",_on:{onBlur:console.log,onInput:console.log,onChange:console.log,onClick:console.log,onFocus:console.log}}),a.jsx(bn,{...e,_label:"Disabled",_options:Wn,_value:"de",_disabled:!0}),a.jsx(bn,{...e,_options:Wn,_msg:{_type:"error",_description:Ue},_rows:3,_touched:!0,_label:"Label",_placeholder:"Placeholder",_required:!0}),a.jsx(bn,{...e,_label:"With access key",_options:Wn,_value:"de",_accessKey:"c"}),a.jsx(bn,{...e,_label:"With short key",_options:Wn,_value:"de",_shortKey:"s"}),a.jsx(bn,{...e,_label:"With long labels",_options:lL,_placeholder:"Placeholder"}),a.jsx(bn,{...e,_label:"With hidden clear button",_options:Wn,_value:"de",_hideClearButton:!0}),a.jsx(bn,{...e,_hint:yn,_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}})]}),iL=e=>a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(F1,{...e})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(F1,{...e,_hideLabel:!0})]})]}),cL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"SingleSelect provides a select field for a single value, supported by a search field."})}),a.jsx(wn,{RefComponent:iL,showButtons:!1})]}),sL={"single-select":{basic:cL}},dL=()=>{const e=j.useRef(null);return j.useEffect(()=>{e.current?.focus()},[]),a.jsxs("div",{className:"grid gap-4",children:[a.jsxs(V,{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(Pz,{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"}]})]})},uL={"skip-nav":{basic:dL}},fL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'KolSpin renders a loading indicator. This sample shows the default variant "dot".'})}),a.jsx(ed,{_show:!0})]}),bL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(ed,{_show:!0,_variant:"none",children:a.jsx("span",{slot:"expert",className:"loader"})})]}),mL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:'This sample shows the KolSpin variant "cycle".'})}),a.jsx(ed,{_show:!0,_variant:"cycle"})]}),hL=()=>{const[e,n]=j.useState(!0);return j.useEffect(()=>{const r=setInterval(()=>n(i=>!i),3e3);return()=>clearInterval(r)},[]),a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolSpin with a label."})}),a.jsx(ed,{_show:e,_label:e?"Loading data...":"Data loaded."})]})},pL={spin:{basic:fL,cycle:mL,custom:bL,label:hL}},kL=()=>{const{buttonWithTextClickEventHandler:e}=Do(),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(V,{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(_l,{_label:"Edit",_on:n,children:a.jsx(ga,{_label:"Action toolbar",_items:r,_orientation:"vertical"})})})]})},vL=()=>{const e=j.useRef(null),n=()=>{e.current?.closePopup()};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_l,{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(Ee,{_label:"User"}),a.jsx(Ee,{_label:"Role"}),a.jsx(X,{_label:"Close",_on:{onClick:n}})]})]})})})]})},gL={"split-button":{basic:kL,"with-context":vL}},ys=[{left:"Left Example",center:"Center Example",right:"Right Example"}],$i=()=>0,_L=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mo,{_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:ys,className:"block",style:{maxWidth:"600px"}}),a.jsx(ue,{_label:"Table with sortable columns",_level:3,className:"block mt-6"}),a.jsx(mo,{_label:"Table for demonstration purposes with sortable columns",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left",compareFn:$i},{label:"center",key:"center",textAlign:"center",compareFn:$i},{label:"right",key:"right",textAlign:"right",compareFn:$i}]]},_data:ys,className:"block",style:{maxWidth:"600px"}}),a.jsx(ue,{_label:"Table some sortable columns",_level:3,className:"block mt-6"}),a.jsx(mo,{_label:"Table for demonstration purposes with some but not all columns sortable",_minWidth:"auto",_headers:{horizontal:[[{label:"left",key:"left",textAlign:"left",compareFn:$i},{label:"center",key:"center",textAlign:"center",compareFn:$i},{label:"right",key:"right",textAlign:"right"}]]},_data:ys,className:"block",style:{maxWidth:"600px"}}),a.jsx(ue,{_label:"Table with vertical heading",_level:3,className:"block mt-6"}),a.jsx(mo,{_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:ys,className:"block",style:{maxWidth:"600px"}})]})]}),xL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mo,{_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"}]]}})})]}),lb=22,yL=[{city:"Reykjavík",temperature:6},{city:"Berlin",temperature:21},{city:"Palma de Mallorca",temperature:29},{city:"Cairo",temperature:35},{city:"Helsinki",temperature:14}],wL={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-lb),u=Math.abs(c-lb);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-lb);return`${r.temperature} °C (Δ ${i} °C)`}}]]},zL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mo,{_minWidth:"100%",_label:"Direction aware compare function",_data:yL,_headers:wL,className:"block"})})]}),sd=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")}],H1=[{small:"Small Example",large:"Larger Example"}],ib={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"}]]},jL=()=>0,SL=()=>{const[e,n]=j.useState(!0);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mo,{_label:"Table for demonstration purposes with horizontal scrollbar.",_minWidth:e?"600px":"300px",_headers:ib,_data:H1,className:"block"}),a.jsx(mo,{_label:"Table for demonstration horizontal scrolling with pagination.",_minWidth:e?"600px":"300px",_headers:{horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",compareFn:jL,render:(r,i,c)=>sd.format(c.date)}]]},_data:ir,_pagination:!0}),a.jsx(mo,{_label:"Table for demonstration purposes with horizontal scrollbar with auto minWidth.",_minWidth:e?"600px":"300px",_headers:ib,_data:[],className:"block"})]}),a.jsx(ro,{_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(mo,{_label:"Table for demonstration purposes without horizontal scrollbar",_minWidth:"600px",_headers:ib,_data:H1,className:"block",_pagination:!0})]})]})};function TL({_on:e,...n}){const{dummyClickEventHandler:r}=Do(),i={onClick:r};return a.jsx(X,{...n,_on:i})}const Ni=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"}};gn(Hr(r)).render(i.label==="button"?a.jsx(TL,{...c}):a.jsx(Xe,{_href:"#/back-page",...c}))}}},AL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Sl,{_label:"Button styles",_minWidth:"auto",_headerCells:{horizontal:[[Ni("primary"),Ni("secondary"),Ni("normal"),Ni("danger"),Ni("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(Sl,{_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"}};gn(Hr(e)).render(n.label==="button-link"?a.jsx(Pe,{...r}):a.jsx(_e,{_href:"#/back-page",...r}))}}]],vertical:[[{label:"Link"},{label:"Button-Link"}]]},_data:[{regular:"link"},{regular:"button-link"}],className:"block mt"})]})]}),CL=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),Ys=[{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)=>CL.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}],EL={horizontal:[Ys]},LL={vertical:[Ys]},OL=()=>{const[e,n]=j.useState(LL),[r,i]=j.useState(EL);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Pe,{_label:"Reset Table",_on:{onClick:()=>n({vertical:[[...Ys]]})}}),a.jsx(mo,{_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(Pe,{_label:"Reset Table",_on:{onClick:()=>i({horizontal:[[...Ys]]})}}),a.jsx(mo,{_label:"Sort Table with Order and Date",_minWidth:"auto",_data:ir,_headers:r,className:"block",_allowMultiSort:!0})]})]})]})},$L=[{id:"1001",name:"John",age:30},{id:"1002",name:"Jane",age:25}],NL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example demonstrates a column that cannot be hidden in the settings."})}),a.jsx(mo,{_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:$L,className:"block",style:{maxWidth:"600px"}})]}),cb={horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",render:(e,n,r)=>sd.format(r.date)}]]},sb={_page:2},BL=()=>a.jsxs("div",{className:"w-full grid gap-14",children:[a.jsx(V,{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(mo,{_label:"Sample table with pagination at the bottom",_minWidth:"auto",_data:ir,_headers:cb,_pagination:sb,_paginationPosition:"bottom"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Table with pagination at the top."}),a.jsx(mo,{_label:"Sample table with pagination at the top",_minWidth:"auto",_data:ir,_headers:cb,_pagination:sb,_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(mo,{_label:"Sample table with pagination at both top and bottom",_minWidth:"auto",_data:ir,_headers:cb,_pagination:sb,_paginationPosition:"both"})]})]})]}),RL=[{columnA:"Column A",columnB:"Column B",columnC:"Column C"}],DL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This example shows the table with predefined settings."})}),a.jsx(mo,{_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:RL,"_min-width":"500px",className:"block",style:{maxWidth:"600px"}})]}),ML=[{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 IL({label:e,icons:n}){const{dummyClickEventHandler:r}=Do(),i={onClick:r};return a.jsx(X,{_label:e,_icons:n,_on:i})}const UL={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>${sd.format(n.label)}</strong>`},compareFn:(e,n)=>e.date.getTime()-n.date.getTime()},{label:"Action (react)",width:"20em",render:e=>{gn(Hr(e)).render(a.jsxs("div",{style:{display:"grid",gridAutoFlow:"column",alignItems:"end",gap:"1rem",maxWidth:"400px"},children:[a.jsx(Ee,{_label:"Input"}),a.jsx(IL,{label:"Save",icons:{left:"codicon codicon-save"}})]}))}}]]},FL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful using React render functions for the cell contents."})}),a.jsx(mo,{_label:"Sort by date column",_minWidth:"auto",_data:ML,_headers:UL,className:"w-full"})]}),HL=[{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"}],KL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mo,{_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:HL,className:"block",style:{maxWidth:"720px"}})]}),p0=Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),VL={horizontal:[[{label:"order",key:"order",textAlign:"center"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>p0.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}]]},qL={vertical:[[{label:"order",key:"order",textAlign:"center"},{label:"date",key:"date",textAlign:"center",render:(e,n,r)=>p0.format(r.date),compareFn:(e,n)=>e.date<n.date?-1:n.date<e.date?1:0}]]},ZL=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mo,{_label:"Sort a date column",_minWidth:"auto",_data:ir.slice(0,10),_headers:qL,className:"block"})]}),a.jsxs("section",{className:"grid gap-4",children:[a.jsx(ue,{_level:2,_label:"Horizontal headers"}),a.jsx(mo,{_label:"Sort a date column",_minWidth:"auto",_data:ir,_headers:VL,className:"block"})]})]})]}),PL=[{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 GL({label:e}){const{dummyClickEventHandler:n}=Do(),r={onClick:n};return a.jsx(X,{_label:e,_on:r})}const YL=()=>{const[e,n]=j.useState(),r={label:h=>`Selection for ${h.name}`,selectedKeys:e?e.map(h=>h.internalIdentifier):["AAA1004"],disabledKeys:["AAA1003","AAA1004"],keyPropertyName:"internalIdentifier"},i=j.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)};j.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,c),()=>{i.current?.removeEventListener(Ot.selectionChange,c)}),[i]);const m=(h,p)=>{gn(Hr(h)).render(a.jsx(GL,{label:`Click ${p.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with checkboxes for selection enabled."})}),a.jsxs("section",{className:"w-full",children:[a.jsx(mo,{_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:PL,_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)})]})]})]})},JL=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"}];function XL({label:e}){const{dummyClickEventHandler:n}=Do(),r={onClick:n};return a.jsx(X,{_label:e,_on:r})}const WL=()=>{const[e,n]=j.useState(),r={label:h=>`Selection for ${h.name}`,multiple:!1,selectedKeys:e?[e.internalIdentifier]:[],keyPropertyName:"internalIdentifier"},i=j.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)};j.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,c),()=>{i.current?.removeEventListener(Ot.selectionChange,c)}),[i]);const m=(h,p)=>{gn(Hr(h)).render(a.jsx(XL,{label:`Click ${p.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with radio buttons for selection enabled."})}),a.jsxs("section",{className:"w-full",children:[a.jsx(mo,{_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:JL,_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)})]})]})]})},QL=[{left:"Left Example",center:"Center Example",right:"Right Example"},{},{},{}],eO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Sl,{_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:QL,className:"block",style:{maxWidth:"600px"},_on:{onSort:(e,n)=>{console.log(n)}}})})]}),oO=[{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 nO({label:e}){const{dummyClickEventHandler:n}=Do(),r={onClick:n};return a.jsx(X,{_label:e,_on:r})}const tO=()=>{const[e,n]=j.useState(["AAA1002","AAA1004"]),r={label:m=>`Selection for ${m.name}`,selectedKeys:e,keyPropertyName:"internalIdentifier",disabledKeys:["AAA1003","AAA1004"]},i=j.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])};j.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,c),()=>{i.current?.removeEventListener(Ot.selectionChange,c)}),[i]);const u=(m,h)=>{gn(Hr(m)).render(a.jsx(nO,{label:`Click ${h.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateless with checkboxes for selection enabled."})}),a.jsx("section",{className:"w-full",children:a.jsx(Sl,{_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:oO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i})})]})},rO=[{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"}],aO=()=>a.jsxs(a.Fragment,{children:[a.jsxs(V,{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(Sl,{_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:rO,_on:{onSort:(e,n)=>console.log("sort",n),onSelectionChange:(e,n)=>console.log("selection",n)}})]}),lO=[{id:"1001",name:"Foo Bar",internalIdentifier:"AAA1001"},{id:"1002",name:"Foo Baz",internalIdentifier:"AAA1002"},{id:"1003",name:"Foo Disabled",internalIdentifier:"AAA1003"}];function iO({label:e}){const{dummyClickEventHandler:n}=Do(),r={onClick:n};return a.jsx(X,{_label:e,_on:r})}const cO=()=>{const[e,n]=j.useState(["1002"]),r={label:m=>`Selection for ${m.name}`,multiple:!1,selectedKeys:e,disabledKeys:["AAA1003"],keyPropertyName:"internalIdentifier"},i=j.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])};j.useEffect(()=>(i.current?.addEventListener(Ot.selectionChange,c),()=>{i.current?.removeEventListener(Ot.selectionChange,c)}),[i]);const u=(m,h)=>{gn(Hr(m)).render(a.jsx(iO,{label:`Click ${h.data?.id}`}))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateless with checkboxes for selection enabled."})}),a.jsx("section",{className:"w-full",children:a.jsx(Sl,{_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:lO,_selection:r,_on:{onSelectionChange:d},className:"block",style:{maxWidth:"600px"},ref:i})})]})},K1=[{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"}],sO=Array.from({length:200},(e,n)=>{const r=K1[n%K1.length];return{id:n+1,...r}}),dO={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"}]]},uO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mo,{_label:"Animal species overview",_minWidth:"1200px",_data:sO,_headers:dO,className:"block"})]}),fO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTableStateful with footer data."})}),a.jsx(mo,{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"}]})]}),bO={horizontal:[[{label:"Order",key:"order"},{label:"Date",key:"date",render:(e,n,r)=>sd.format(r.date)}]]},mO={_page:2},hO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mo,{_label:"Table description",_minWidth:"auto",_data:ir,_headers:bO,_pagination:mO})})]}),pO={table:{"column-alignment":_L,"complex-headers":xL,"horizontal-scrollbar":SL,"interactive-child-elements":AL,"multi-sort":OL,"non-hidable-columns":NL,"pagination-position":BL,"predefined-settings":DL,"render-cell":FL,"settings-column-options":KL,"sort-data":ZL,"direction-aware-sort":zL,"stateful-with-selection":YL,"stateless-with-settings-menu":aO,"stateful-with-single-selection":WL,stateless:eO,"stateless-with-selection":tO,"stateless-with-single-selection":cO,"sticky-header":uO,"with-footer":fO,"with-pagination":hO}},kO=[{_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"}],vO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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:kO,_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)})})]}),k0=[{_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"}],gO=k0.map(e=>({...e,_icons:void 0})),_O=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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:gO,_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:k0,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"})]})]}),V1=[{_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"}],xO=()=>a.jsxs(a.Fragment,{children:[a.jsxs(V,{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:V1,_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:V1,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"})]})]})]})]}),yO=()=>{const[e,n]=j.useState([{_label:"First tab"},{_label:"Second Tab"}]),r=()=>{n([...e,{_label:`Tab #${e.length+1}`}])};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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"})]})]})},wO=[{_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}],zO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolTabs with hidden labels."})}),a.jsxs(cr,{_label:"Tabs with icons",_tabs:wO,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"})]})]}),jO={tabs:{basic:_O,"create-button":yO,"icons-only":zO,behavior:xO,align:vO}},SO=`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.`,EO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(An,{className:"w-full",children:a.jsx(Qe,{_adjustHeight:!0,_value:CO,_label:"Text input (auto grow)"})})]}),V1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Qe,{...n,ref:r,_placeholder:"Placeholder",_label:"Text"})}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_required:!0,_msg:{_type:"error",_description:Ue},_label:"Text",_touched:!0,_hint:xn}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"info",_description:"Just a hint"}}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"warning",_description:"Small warning"}}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"success",_description:"Success message"}}),a.jsx(Qe,{...n,ref:r,_accessKey:"T",_label:"Text (3 rows)",_rows:3}),a.jsx(Qe,{...n,ref:r,_label:"Text (placeholder)",_rows:3,_placeholder:"Placeholder"}),a.jsx(Qe,{...n,ref:r,_label:"Text (disabled & placeholder)",_rows:3,_placeholder:"Placeholder",_disabled:!0}),a.jsx(Qe,{...n,ref:r,_label:"Text (readonly)",_rows:3,_placeholder:"Placeholder",_readOnly:!0}),a.jsx(Qe,{...n,ref:r,_label:"Text (disabled & value)",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_disabled:!0}),a.jsx(Qe,{...n,ref:r,_label:"With access key",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_accessKey:"c"}),a.jsx(Qe,{...n,ref:r,_label:"With short key",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_shortKey:"s"})]})}),LO=j.forwardRef(function(n,r){return a.jsxs(Cn,{children:[a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text"}),a.jsx(V1,{...n})]}),a.jsxs("fieldset",{children:[a.jsx("legend",{children:"Text (hideLabel)"}),a.jsx(V1,{ref:r,...n,_hideLabel:!0})]})]})}),OO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(yn,{RefComponent:LO,showButtons:!1})]}),$O=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(An,{className:"w-full",children:a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(Qe,{_label:"Text input (unset)"}),a.jsx(Qe,{_resize:"vertical",_label:"Text input (vertical)"}),a.jsx(Qe,{_resize:"none",_label:"Text input (none)"})]})})]}),NO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(An,{className:"w-full",children:a.jsx(Qe,{_rows:10,_label:"Texteingabe"})})]}),BO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Qe,{_label:"Textarea with soft max length",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20,_hasCounter:!0,_maxLengthBehavior:"soft"}),a.jsx(Qe,{_label:"Textarea with max length",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20}),a.jsx(Qe,{_label:"Textarea with max length and counter",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20,_hasCounter:!0}),a.jsx(Qe,{_label:"Textarea with counter",_value:"Lorem Ipsum",className:"mt-2",_hasCounter:!0})]})]}),RO={textarea:{basic:OO,"adjust-height":EO,resize:$O,rows:NO,"with-counter":BO}},DO=()=>{const[e]=Kr(),n=e.get("type"),r=Vr.getInstance(document),i=()=>{r.enqueue({description:"Toasty",label:"Initial Toast",type:"warning",onClose:()=>{console.log("Simple toast has been closed.")}})};j.useEffect(()=>{n&&r.enqueue({description:"Toasty",label:`Toast with type '${n}'`,type:n})},[n,r]);const s=()=>{r.enqueue({render:(m,{close:h})=>{vn(m).render(a.jsx(a.Fragment,{children:a.jsx(W,{_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(V,{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(W,{_label:"Show simple toast",_on:{onClick:i}}),a.jsx(W,{_label:"Show complex toast",_on:{onClick:s}}),a.jsx(W,{_label:"Show toast and close after 2 seconds",_on:{onClick:()=>void d()}}),a.jsx(W,{_label:"Close all toasts",_on:{onClick:u}})]})})]})},Bm=["default","info","success","warning","error"],MO=Bm.map(e=>({label:e,value:e})),q1=e=>typeof e=="string"&&Bm.includes(e),IO=()=>{const[e]=Kr(),n=e.get("type"),r=q1(n)?n:void 0,[i,s]=j.useState(()=>r??"default"),d=j.useMemo(()=>Vr.getInstance(document),[]);j.useEffect(()=>(Bm.forEach(p=>{d.enqueue({description:"Toasty",label:`Toast with type '${p}'`,type:p})}),()=>{d.closeAll()}),[d]),j.useEffect(()=>{r&&s(r)},[r]);const u=(p,g)=>{q1(g)&&s(g)},m=()=>{d.enqueue({description:"Toasty",label:`Toast with type '${i}'`,type:i})},h=()=>{d.closeAll()};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Lo,{_orientation:"horizontal",_label:"Toast type",_value:i,_options:MO,_on:{onChange:u}}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsx(W,{_label:`Open ${i} toast`,_on:{onClick:m}}),a.jsx(W,{_label:"Close all toasts",_on:{onClick:h}})]})]})]})},UO={toast:{basic:DO,configurator:IO}},HO=()=>{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(V,{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(be,{_label:"Orientation horizontal",_level:2}),a.jsx(ga,{class:"block w-fit",_label:"Toolbar",_items:e}),a.jsx(be,{_label:"Orientation vertical",_level:2}),a.jsx(ga,{class:"block w-fit",_label:"Toolbar",_items:e,_orientation:"vertical"})]})]})},FO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolToolbars with some of the elements disabled."})}),a.jsx(ga,{_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"}]})]}),KO={toolbar:{basic:HO,disabled:FO}},VO=()=>{const e=["🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵"];return e[Math.floor(Math.random()*e.length)]},qO=()=>{const e=j.useContext(zm),{subPage:n}=B4(),[r,i]=j.useState("1 Home"),[s,d]=j.useState(!1),[u,m]=j.useState(!1),[h,p]=j.useState(!0),g=()=>{i(`1 Home ${VO()}`)},v=_=>({_href:`#/tree/basic/${_}${e?"?hideMenus":""}`,_active:_===n});return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolTree renders a keyboard accessible nested navigation. Branches of the tree can be collapsed or expanded."})}),a.jsxs(jx,{_label:"Sitemap",class:"block w-fit",children:[a.jsx(Qo,{_label:r,...v("home")}),a.jsxs(Qo,{_label:"2 About (open initially)",...v("about"),_open:!0,children:[a.jsx(Qo,{_label:"2.0 Legal",...v("legal")}),a.jsxs(Qo,{_label:"2.1 Team",...v("team"),children:[a.jsx(Qo,{_label:"2.1.1. Values",...v("values")}),a.jsxs(Qo,{_label:"2.1.2. Members",...v("members"),children:[a.jsx(Qo,{_label:"2.1.2.1 Humans",...v("humans")}),s&&a.jsx(Qo,{_label:"2.1.2.2 Pets",...v("pets")})]}),a.jsx(Qo,{_label:"2.1.3 Locations",...v("locations"),children:u&&a.jsxs(Qo,{_label:"2.1.3.1 Europe",...v("europe"),children:[a.jsx(Qo,{_label:"2.1.3.1.1 Denmark",...v("denmark")}),a.jsx(Qo,{_label:"2.1.3.1.2 Netherlands",...v("netherlands")})]})})]})]}),h&&a.jsxs(Qo,{_label:"3. Products",...v("products"),children:[a.jsxs(Qo,{_label:"3.1 Home",...v("home-products"),children:[a.jsx(Qo,{_label:"3.1.1 Refrigerators",...v("fridges")}),a.jsx(Qo,{_label:"3.1.2 Coffee makers",...v("coffee-makers")})]}),a.jsx(Qo,{_label:"3.1 Office",...v("office-products"),children:a.jsx(Qo,{_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(W,{_label:"Change label for '1 Home'",_on:{onClick:g}}),a.jsx(W,{_label:"Toggle '2.1.2.2 Pets'",_on:{onClick:()=>d(!s)}}),a.jsx(W,{_label:"Toggle '2.2.1 Europe' (two levels at once)",_on:{onClick:()=>m(!u)}}),a.jsx(W,{_label:"Toggle '3. Products'",_on:{onClick:()=>p(!h)}})]})]})},ZO={tree:{"basic/:subPage":qO}},PO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolVersion renders a label showing the given version number."})}),a.jsx(Qs,{_label:"1.1.1"})]}),GO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolVersion inline with text paragraph content."})}),a.jsxs("p",{children:[a.jsx(Qs,{_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."]})]}),YO={version:{basic:PO,context:GO}},JO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Le,{_label:"Button",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(W,{_label:"Button 1, Tabindex 4",_variant:"primary",tabIndex:4}),a.jsx(W,{_disabled:!0,_label:"Button 2, Tabindex 3",_variant:"primary",tabIndex:3}),a.jsx(W,{_label:"Button 3, Tabindex 2",_variant:"primary",tabIndex:2}),a.jsx(W,{_label:"Button 4, Tabindex 1",_variant:"primary",tabIndex:1})]})}),a.jsx(Le,{_label:"ButtonLink",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Pe,{_label:"ButtonLink 1, Tabindex 4",tabIndex:4}),a.jsx(Pe,{_disabled:!0,_label:"ButtonLink 2, Tabindex 3",tabIndex:3}),a.jsx(Pe,{_label:"ButtonLink 3, Tabindex 2",tabIndex:2}),a.jsx(Pe,{_label:"ButtonLink 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"Combobox",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(_n,{_hint:xn,_label:"Combobox 1, Tabindex 4",_suggestions:Qn,_value:"Deutschland",tabIndex:4}),a.jsx(_n,{_disabled:!0,_hint:xn,_label:"Combobox 2, Tabindex 3",_suggestions:Qn,_value:"Deutschland",tabIndex:3}),a.jsx(_n,{_touched:!0,_hint:xn,_msg:{_type:"error",_description:Ue},_label:"Combobox 3, Tabindex 2",_suggestions:Qn,_value:"Deutschland",tabIndex:2}),a.jsx(_n,{_hint:xn,_label:"Combobox 4, Tabindex 1",_suggestions:Qn,_value:"Deutschland",tabIndex:1})]})}),a.jsx(Le,{_label:"InputCheckbox",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(ro,{_label:"InputCheckbox 4, Tabindex 1",_value:!1,tabIndex:4}),a.jsx(ro,{_disabled:!0,_label:"InputCheckbox 3, Tabindex 2",_value:!1,tabIndex:3}),a.jsx(ro,{_touched:!0,_label:"InputCheckbox 2, Tabindex 3",_msg:{_type:"error",_description:Ue},_value:!1,tabIndex:2}),a.jsx(ro,{_label:"InputCheckbox 1, Tabindex 4",_value:!1,tabIndex:1})]})}),a.jsx(Le,{_label:"InputColor",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Go,{_value:"#f08080",_label:"InputCheckbox 1, Tabindex 4",tabIndex:4}),a.jsx(Go,{_disabled:!0,_value:"#f08080",_label:"InputCheckbox 2, Tabindex 3",tabIndex:3}),a.jsx(Go,{_touched:!0,_value:"#f08080",_label:"InputCheckbox 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Go,{_value:"#f08080",_label:"InputCheckbox 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_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:Ue},tabIndex:2}),a.jsx(He,{_type:"datetime-local",_label:"InputCheckbox 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputEmail",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Yo,{_label:"InputEmail 1, Tabindex 4",tabIndex:4}),a.jsx(Yo,{_disabled:!0,_label:"InputEmail 2, Tabindex 3",tabIndex:3}),a.jsx(Yo,{_touched:!0,_label:"InputEmail 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Yo,{_label:"InputEmail 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputFile",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Ro,{_label:"InputFile 1, Tabindex 4",tabIndex:4}),a.jsx(Ro,{_disabled:!0,_label:"InputFile 2, Tabindex 3",tabIndex:3}),a.jsx(Ro,{_touched:!0,_label:"InputFile 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Ro,{_label:"InputFile 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputNumber",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(So,{_label:"InputNumber 1, Tabindex 4",tabIndex:4}),a.jsx(So,{_disabled:!0,_label:"InputNumber 2, Tabindex 3",tabIndex:3}),a.jsx(So,{_touched:!0,_label:"InputNumber 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(So,{_label:"InputNumber 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputPassword",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Eo,{_label:"InputPassword 1, Tabindex 4",tabIndex:4}),a.jsx(Eo,{_disabled:!0,_label:"InputPassword 2, Tabindex 3",tabIndex:3}),a.jsx(Eo,{_touched:!0,_label:"InputPassword 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Eo,{_label:"InputPassword 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"InputRadio",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Lo,{_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(Lo,{_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(Lo,{_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:Ue},tabIndex:2})," ",a.jsx(Lo,{_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(Le,{_label:"InputRange",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(en,{_label:"InputRange 1, Tabindex 4",_min:0,_max:50,tabIndex:4}),a.jsx(en,{_disabled:!0,_label:"InputRange 2, Tabindex 3",_min:0,_max:50,tabIndex:3}),a.jsx(en,{_touched:!0,_label:"InputRange 3, Tabindex 2",_min:0,_max:50,_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(en,{_label:"InputRange 4, Tabindex 1",_min:0,_max:50,tabIndex:1})]})}),a.jsx(Le,{_label:"InputText",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Oe,{_label:"InputText 1, Tabindex 4",tabIndex:4}),a.jsx(Oe,{_disabled:!0,_label:"InputText 2, Tabindex 3",tabIndex:3}),a.jsx(Oe,{_touched:!0,_label:"InputText 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Oe,{_label:"InputText 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"LinkButton",_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",_variant:"primary",tabIndex:4}),a.jsx(Xe,{_disabled:!0,_href:"#/back-page",_label:"InputText 2, Tabindex 3",_variant:"primary",tabIndex:3}),a.jsx(Xe,{_href:"#/back-page",_label:"InputText 3, Tabindex 2",_variant:"primary",tabIndex:2}),a.jsx(Xe,{_href:"#/back-page",_label:"InputText 4, Tabindex 1",_variant:"primary",tabIndex:1})]})}),a.jsx(Le,{_label:"Link",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(_e,{_href:"#/back-page",_label:"InputText 1, Tabindex 4",tabIndex:4}),a.jsx(_e,{_disabled:!0,_href:"#/back-page",_label:"InputText 2, Tabindex 3",tabIndex:3}),a.jsx(_e,{_href:"#/back-page",_label:"InputText 3, Tabindex 2",tabIndex:2}),a.jsx(_e,{_href:"#/back-page",_label:"InputText 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Le,{_label:"SingleSelect",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(bn,{_label:"InputText 1, Tabindex 4",_options:Wn,_value:"de",tabIndex:4}),a.jsx(bn,{_disabled:!0,_label:"InputText 2, Tabindex 3",_options:Wn,_value:"de",tabIndex:3}),a.jsx(bn,{_touched:!0,_label:"InputText 3, Tabindex 2",_options:Wn,_msg:{_type:"error",_description:Ue},_value:"de",tabIndex:2}),a.jsx(bn,{_label:"InputText 4, Tabindex 1",_options:Wn,_value:"de",tabIndex:1})]})}),a.jsx(Le,{_label:"SplitButton",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(_l,{_label:"InputText 1, Tabindex 4",tabIndex:4,children:"Dropdown-Inhalt"}),a.jsx(_l,{_label:"InputText 2, Tabindex 3",tabIndex:3,_disabled:!0,children:"Dropdown-Inhalt"}),a.jsx(_l,{_label:"InputText 3, Tabindex 2",tabIndex:2,children:"Dropdown-Inhalt"}),a.jsx(_l,{_label:"InputText 4, Tabindex 1",tabIndex:1,children:"Dropdown-Inhalt"})]})}),a.jsx(Le,{_label:"Textarea",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Qe,{_label:"Textarea 1, Tabindex 4",_rows:3,_placeholder:"Placeholder",tabIndex:4}),a.jsx(Qe,{_disabled:!0,_label:"Textarea 2, Tabindex 3",_rows:3,_placeholder:"Placeholder",tabIndex:3}),a.jsx(Qe,{_touched:!0,_label:"Textarea 3, Tabindex 2",_rows:3,_placeholder:"Placeholder",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Qe,{_label:"Textarea 4, Tabindex 1",_rows:3,_placeholder:"Placeholder",tabIndex:1})]})})]})]}),XO=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(W,{_label:"Custom duration",_hideLabel:!0,style:{"--kolibri-tooltip-animation-duration":"2500ms"},_icons:"codicon codicon-clock",_on:n}),a.jsx(W,{_label:"Custom width",_hideLabel:!0,style:{"--kol-tooltip-width":"400px"},_icons:"codicon codicon-arrow-both",_on:n})]})]})},WO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolForm with KolInputDate inside to make sure enter on the date icon does not submit the form."})}),a.jsxs(An,{_on:{onSubmit:()=>{console.error("submitted"),alert("submitted")}},children:[a.jsx(He,{_label:"date",_name:"datum"}),a.jsx(W,{_label:"Submit",_type:"submit"})]})]}),xs=[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],QO=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsxs(V,{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(Le,{_label:"Button",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_label:"Label",_on:n}),a.jsx(W,{_disabled:!0,_label:"Label",_on:n}),a.jsx(W,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label",_on:n}),a.jsx(W,{_disabled:!0,_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label",_on:n})]})}),a.jsx(Le,{_label:"ButtonLink",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(Pe,{_label:"Label"}),a.jsx(Pe,{_disabled:!0,_label:"Label"}),a.jsx(Pe,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label"}),a.jsx(Pe,{_hideLabel:!0,_icons:"codicon codicon-home",_disabled:!0,_label:"Label"})]})}),a.jsx(Le,{_label:"Link",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(_e,{_href:"#",_label:"Label"}),a.jsx(_e,{_disabled:!0,_href:"#",_label:"Label"}),a.jsx(_e,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"}),a.jsx(_e,{_disabled:!0,_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"})]})}),a.jsx(Le,{_label:"LinkButton",_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(Le,{_label:"Accordion",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(rn,{_label:"Label",children:"Content"}),a.jsx(rn,{_disabled:!0,_label:"Label",children:"Content"}),a.jsx(rn,{_label:"Label (open)",_open:!0,children:"Content"}),a.jsx(rn,{_disabled:!0,_label:"Label (open)",_open:!0,children:"Content"})]})}),a.jsx(Le,{_label:"Details",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(rr,{_label:"Label",children:"Content"}),a.jsx(rr,{_disabled:!0,_label:"Label",children:"Content"}),a.jsx(rr,{_label:"Label (open)",_open:!0,children:"Content"}),a.jsx(rr,{_disabled:!0,_label:"Label (open)",_open:!0,children:"Content"})]})}),[ro,Go,He,Yo,Ro,So,Eo,en,Oe].map(r=>{const s=r.render.displayName;return a.jsx(Le,{_label:s,_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"})]})},s)}),[Lo,Jo].map(r=>{const s=r.render.displayName;return a.jsx(Le,{_label:s,_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(r,{_label:"Label",_options:xs}),a.jsx(r,{_disabled:!0,_label:"Label",_options:xs}),a.jsx(r,{_hideLabel:!0,_label:"Label",_options:xs}),a.jsx(r,{_disabled:!0,_hideLabel:!0,_label:"Label",_options:xs})]})},s)}),a.jsx(Le,{_label:"KolTextarea",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Qe,{_label:"Label",_rows:3}),a.jsx(Qe,{_disabled:!0,_label:"Label",_rows:3}),a.jsx(Qe,{_hideLabel:!0,_label:"Label",_rows:3}),a.jsx(Qe,{_disabled:!0,_hideLabel:!0,_label:"Label",_rows:3})]})})]})]})},v0=()=>{const e=new Map;return e.set("inputCheckbox",(n,r)=>a.jsx(ro,{className:"w-full",_name:"checkbox",_label:"Checkbox",ref:r})),e.set("inputColor",(n,r)=>a.jsx(Go,{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(Yo,{className:"w-full",_name:"email",_label:"Email",ref:r})),e.set("inputFile",(n,r)=>a.jsx(Ro,{className:"w-full",_name:"file",_label:"File",ref:r})),e.set("inputFileMultiple",(n,r)=>a.jsx(Ro,{className:"w-full",_name:"file",_label:"Files (multiple)",_multiple:!0,ref:r})),e.set("inputNumber",(n,r)=>a.jsx(So,{className:"w-full",_name:"number",_label:"Number",ref:r})),e.set("inputPassword",(n,r)=>a.jsx(Eo,{className:"w-full",_name:"password",_label:"Password",ref:r})),e.set("inputRadio",(n,r)=>a.jsx(Lo,{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(en,{className:"w-full",_name:"range",_label:"Range",ref:r})),e.set("inputText",(n,r)=>a.jsx(Oe,{className:"w-full",_name:"text",_label:"Text",ref:r})),e.set("select",(n,r)=>a.jsx(Jo,{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(Jo,{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(bn,{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(Qe,{className:"w-full",_name:"textarea",_label:"Textarea",_rows:5,ref:r})),e.set("accordion",(n,r)=>a.jsx(rn,{className:"w-full",_label:"Accordion here",ref:r})),e.set("button",(n,r)=>a.jsx("div",{children:a.jsx(W,{_label:"Button here",ref:r})})),e.set("buttonLink",(n,r)=>a.jsx(Pe,{_label:"ButtonLink here",ref:r})),e.set("combobox",(n,r)=>a.jsx(_n,{className:"w-full",_label:"KolCombobox here",_suggestions:[],ref:r})),e.set("details",(n,r)=>a.jsx(rr,{className:"w-full",_label:"Details here",ref:r,children:"detailed details"})),e.set("link",(n,r)=>a.jsx(_e,{className:"w-full",_label:"Link here",_href:"#",ref:r})),e.set("linkButton",(n,r)=>a.jsx("div",{children:a.jsx(Xe,{_label:"LinkButton here",_href:"#",ref:r})})),e},Z1=e=>{const r=[...j.useMemo(()=>v0(),[]).keys()].map(i=>i);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(gn,{_type:"error",_variant:"card",children:"Component not found."}),a.jsx(be,{_level:2,_label:"Focus Test Cases"}),a.jsx("ul",{children:r.map(i=>a.jsx("li",{children:a.jsx(_e,{_label:i,_href:`#/scenarios/focus-elements?component=${i}`})},i))})]})},e$=()=>{const e=j.useRef(null),n=j.useMemo(()=>v0(),[]),[r]=Kr(),i=r.get("component");if(j.useLayoutEffect(()=>{setTimeout(()=>{e.current?.focus()},500)},[e]),i){const s=n.get(i);if(!s)return a.jsx(Z1,{invalidComponent:!0});const d=j.forwardRef(s);return a.jsx(d,{ref:e})}else return a.jsx(Z1,{})},o$=[{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}],n$=[{_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}],P1={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 t$(){const[e]=j.useState(()=>{const n=P1.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(V,{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(wl,{_label:"Main navigation",_links:h0,_hasCompactButton:!0,_hasIconsWhenExpanded:!0})}),a.jsx("div",{className:"content",children:a.jsxs(cr,{_tabs:n$,_align:"top",_label:"Demo Tabs",children:[a.jsx("div",{style:{overflow:"hidden"},children:a.jsx(mo,{_label:"Table for demonstration purposes with horizontal scrollbar",_minWidth:e,_headers:P1,_data:o$,_pagination:{_page:1},className:"block"})}),a.jsx("div",{}),a.jsx("div",{}),a.jsx("div",{})]})})]})]})}const r$=()=>{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(V,{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(gn,{_alert:!0,_type:"error",_label:e}),a.jsxs("div",{className:"grid grid-cols-3 gap-4 max-w-2xl",children:[a.jsx(Jo,{_options:i,_label:"CountryCode ",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0}),a.jsx(Oe,{_label:"Area code",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0}),a.jsx(Oe,{_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(gn,{_alert:!0,_type:"error",_label:n}),r.map(s=>a.jsx(ro,{_label:s,_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0},s))]})]})},g0=j.createContext(void 0),_0=j.createContext(!1),fn=e=>{const n=j.useRef(null),[r,i]=j.useState(void 0),[s,d]=j.useState(e.inputProps._value),u=e.formatter||JSON.stringify,m=j.useContext(g0),h=j.useContext(_0),p=async()=>{const v=await n.current?.getValue();i(v)};j.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:s}),a.jsx(W,{_label:"getValue()",_on:{onClick:()=>{p()}}}),a.jsx("pre",{className:"text-base",children:u(r)})]})})},a$=()=>{const e=j.useMemo(()=>new EventTarget,[]),[n,r]=j.useState(!0);return a.jsx(a.Fragment,{children:a.jsx(g0.Provider,{value:e,children:a.jsxs(_0.Provider,{value:n,children:[a.jsx(V,{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(Le,{_label:"Sample options",className:"block ha mb-8",children:a.jsx(ro,{_label:"Log events to console",_value:!0,_checked:n,_on:{onChange:(i,s)=>r(s)}})}),a.jsxs("div",{className:"grid gap-4",children:[a.jsx(fn,{testId:"scenario-inputText",InputComponent:Oe,inputProps:{_label:"InputText"}}),a.jsx(fn,{testId:"scenario-inputCheckboxString",InputComponent:ro,inputProps:{_label:"KolInputCheckbox (value)",_value:"Checkbox True Value"}}),a.jsx(fn,{testId:"scenario-inputCheckboxBoolean",InputComponent:ro,inputProps:{_label:"KolInputCheckbox (boolean)"}}),a.jsx(fn,{testId:"scenario-inputColor",InputComponent:Go,inputProps:{_label:"KolInputColor"}}),a.jsx(fn,{testId:"scenario-inputDate",InputComponent:He,inputProps:{_label:"KolInputDate"}}),a.jsx(fn,{testId:"scenario-inputEmail",InputComponent:Yo,inputProps:{_label:"KolInputEmail"}}),a.jsx(fn,{testId:"scenario-inputFile",InputComponent:Ro,inputProps:{_label:"KolInputFile"},formatter:i=>i instanceof FileList?`FileList{${Array.from(i).map(s=>s.name).join(", ")}}`:JSON.stringify(i)}),a.jsx(fn,{testId:"scenario-inputNumber",InputComponent:So,inputProps:{_label:"KolInputNumber"}}),a.jsx(fn,{testId:"scenario-inputPassword",InputComponent:Eo,inputProps:{_label:"KolInputPassword"}}),a.jsx(fn,{testId:"scenario-inputRange",InputComponent:en,inputProps:{_label:"KolInputRange"}}),a.jsx(fn,{testId:"scenario-inputRadio",InputComponent:Lo,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(fn,{testId:"scenario-select",InputComponent:Jo,inputProps:{_label:"KolSelect",_options:[{label:"New York",value:"New York"},{label:"Rio de Janeiro",value:"Rio de Janeiro"},{label:"Rosenheim",value:"Rosenheim"}]}}),a.jsx(fn,{testId:"scenario-singleSelect",InputComponent:bn,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(fn,{testId:"scenario-combobox",InputComponent:_n,inputProps:{_label:"KolCombobox",_suggestions:Qn,_value:"Deutschland"}}),a.jsx(fn,{testId:"scenario-textarea",InputComponent:Qe,inputProps:{_label:"KolTextarea"}}),a.jsx(fn,{testId:"scenario-button",InputComponent:W,inputProps:{_label:"KolButton",_variant:"ghost",_value:"KolButton value"}}),a.jsx(fn,{testId:"scenario-buttonLink",InputComponent:Pe,inputProps:{_label:"KolButtonLink",_value:"KolButtonLink value"}}),a.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[a.jsx("div",{}),a.jsx(W,{_label:"Run all",_variant:"primary",_on:{onClick:()=>{e.dispatchEvent(new Event("runAll"))}}})]})]})]})]})})})},l$=333,i$=new Array(l$).fill(0).map((e,n)=>n+1),c$=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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:i$.map(e=>a.jsxs("div",{className:"flex flex-wrap items-end gap-4",children:[a.jsx(Oe,{_label:`TextInput #${e}`}),a.jsx(So,{_label:`NumberInput #${e}`}),a.jsx(ro,{_label:`Checkbox #${e}`})]},e))})]});var s$=e=>e.type==="checkbox",Bi=e=>e instanceof Date,Rm=e=>e==null;const x0=e=>typeof e=="object";var xa=e=>!Rm(e)&&!Array.isArray(e)&&x0(e)&&!Bi(e),d$=e=>xa(e)&&e.target?s$(e.target)?e.target.checked:e.target.value:e,u$=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,f$=(e,n)=>e.has(u$(n)),b$=e=>{const n=e.constructor&&e.constructor.prototype;return xa(n)&&n.hasOwnProperty("isPrototypeOf")},m$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function y0(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(!(m$&&(e instanceof Blob||i))&&(r||xa(e)))if(n=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!b$(e))n=e;else for(const s in e)e.hasOwnProperty(s)&&(n[s]=y0(e[s]));else return e;return n}var w0=e=>/^\w*$/.test(e),qb=e=>e===void 0,h$=e=>Array.isArray(e)?e.filter(Boolean):[],z0=e=>h$(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Dn=(e,n,r)=>{if(!n||!xa(e))return r;const i=(w0(n)?[n]:z0(n)).reduce((s,d)=>Rm(s)?s:s[d],e);return qb(i)||i===e?qb(e[n])?r:e[n]:i},sb=e=>typeof e=="boolean",G1=(e,n,r)=>{let i=-1;const s=w0(n)?[n]:z0(n),d=s.length,u=d-1;for(;++i<d;){const m=s[i];let h=r;if(i!==u){const p=e[m];h=xa(p)||Array.isArray(p)?p:isNaN(+s[i+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;e[m]=h,e=e[m]}};const Y1={BLUR:"blur",CHANGE:"change"},J1={all:"all"},j0=ae.createContext(null);j0.displayName="HookFormContext";const Dm=()=>ae.useContext(j0);var p$=(e,n,r,i=!0)=>{const s={defaultValues:n._defaultValues};for(const d in e)Object.defineProperty(s,d,{get:()=>{const u=d;return n._proxyFormState[u]!==J1.all&&(n._proxyFormState[u]=!i||J1.all),r&&(r[u]=!0),e[u]}});return s};const S0=typeof window<"u"?ae.useLayoutEffect:ae.useEffect;function k$(e){const n=Dm(),{control:r=n.control,disabled:i,name:s,exact:d}=e||{},[u,m]=ae.useState(r._formState),h=ae.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return S0(()=>r._subscribe({name:s,formState:h.current,exact:d,callback:p=>{!i&&m({...r._formState,...p})}}),[s,i,d]),ae.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),ae.useMemo(()=>p$(u,r,h.current,!1),[u,r])}var v$=e=>typeof e=="string",g$=(e,n,r,i,s)=>v$(e)?Dn(r,e,s):Array.isArray(e)?e.map(d=>Dn(r,d)):r,X1=e=>Rm(e)||!x0(e);function T0(e,n,r=new WeakSet){if(X1(e)||X1(n))return e===n;if(Bi(e)&&Bi(n))return e.getTime()===n.getTime();const i=Object.keys(e),s=Object.keys(n);if(i.length!==s.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(!s.includes(d))return!1;if(d!=="ref"){const m=n[d];if(Bi(u)&&Bi(m)||xa(u)&&xa(m)||Array.isArray(u)&&Array.isArray(m)?!T0(u,m,r):u!==m)return!1}}return!0}function _$(e){const n=Dm(),{control:r=n.control,name:i,defaultValue:s,disabled:d,exact:u,compute:m}=e||{},h=ae.useRef(s),p=ae.useRef(m),g=ae.useRef(void 0);p.current=m;const v=ae.useMemo(()=>r._getWatch(i,h.current),[r,i]),[_,z]=ae.useState(p.current?p.current(v):v);return S0(()=>r._subscribe({name:i,formState:{values:!0},exact:u,callback:N=>{if(!d){const S=g$(i,r._names,N.values||r._formValues,!1,h.current);if(p.current){const O=p.current(S);T0(O,g.current)||(z(O),g.current=O)}else z(S)}}}),[r,d,i,u]),ae.useEffect(()=>r._removeUnmounted()),_}function x$(e){const n=Dm(),{name:r,disabled:i,control:s=n.control,shouldUnregister:d,defaultValue:u}=e,m=f$(s._names.array,r),h=ae.useMemo(()=>Dn(s._formValues,r,Dn(s._defaultValues,r,u)),[s,r,u]),p=_$({control:s,name:r,defaultValue:h,exact:!0}),g=k$({control:s,name:r,exact:!0}),v=ae.useRef(e),_=ae.useRef(void 0),z=ae.useRef(s.register(r,{...e.rules,value:p,...sb(e.disabled)?{disabled:e.disabled}:{}}));v.current=e;const N=ae.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Dn(g.errors,r)},isDirty:{enumerable:!0,get:()=>!!Dn(g.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Dn(g.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Dn(g.validatingFields,r)},error:{enumerable:!0,get:()=>Dn(g.errors,r)}}),[g,r]),S=ae.useCallback(w=>z.current.onChange({target:{value:d$(w),name:r},type:Y1.CHANGE}),[r]),O=ae.useCallback(()=>z.current.onBlur({target:{value:Dn(s._formValues,r),name:r},type:Y1.BLUR}),[r,s._formValues]),E=ae.useCallback(w=>{const $=Dn(s._fields,r);$&&w&&($._f.ref={focus:()=>w.focus&&w.focus(),select:()=>w.select&&w.select(),setCustomValidity:D=>w.setCustomValidity(D),reportValidity:()=>w.reportValidity()})},[s._fields,r]),x=ae.useMemo(()=>({name:r,value:p,...sb(i)||g.disabled?{disabled:g.disabled||i}:{},onChange:S,onBlur:O,ref:E}),[r,i,g.disabled,S,O,E,p]);return ae.useEffect(()=>{const w=s._options.shouldUnregister||d,$=_.current;$&&$!==r&&!m&&s.unregister($),s.register(r,{...v.current.rules,...sb(v.current.disabled)?{disabled:v.current.disabled}:{}});const D=(H,Z)=>{const ee=Dn(s._fields,H);ee&&ee._f&&(ee._f.mount=Z)};if(D(r,!0),w){const H=y0(Dn(s._options.defaultValues,r));G1(s._defaultValues,r,H),qb(Dn(s._formValues,r))&&G1(s._formValues,r,H)}return!m&&s.register(r),_.current=r,()=>{(m?w&&!s._state.action:w)?s.unregister(r):D(r,!1)}},[r,s,m,d]),ae.useEffect(()=>{s._setDisabledField({disabled:i,name:r})},[i,r,s]),ae.useMemo(()=>({field:x,formState:g,fieldState:N}),[x,g,N])}const y$=e=>e.render(x$(e));function Hn(e,n){const r=ae.forwardRef((i,s)=>{const{name:d,control:u,rules:m,defaultValue:h,shouldUnregister:p,disabled:g,...v}=i;return ae.createElement(y$,{name:d,control:u,rules:m,defaultValue:h,shouldUnregister:p,disabled:g,render:({field:_,fieldState:z})=>{const N=v._on,S={...v,ref:O=>{s&&(typeof s=="function"?s(O):s.current=O),O&&_.ref(O)},_name:d,_touched:z.isTouched,_disabled:v._disabled||g||_.disabled,_msg:z.error?{_type:"error",_description:z.error.message||String(z.error)}:void 0,_on:{...N||{},onInput:(O,E)=>{_.onChange(E),N?.onInput?.(O,E)},onChange:(O,E)=>{_.onChange(E),N?.onChange?.(O,E)},onBlur:O=>{_.onBlur(),N?.onBlur?.(O)}}};return n&&(S[n]=_.value),ae.createElement(e,{...S})}})});return r.displayName=`withController(${e.displayName||e.name||"Component"})`,r}const Zb=Hn(Oe,"_value"),A0=Hn(Eo,"_value"),C0=Hn(Yo,"_value"),E0=Hn(So,"_value"),L0=Hn(en,"_value"),O0=Hn(He,"_value"),$0=Hn(Go,"_value"),w$=Hn(Ro),N0=Hn(Qe,"_value"),B0=Hn(_n,"_value"),R0=Hn(Jo,"_value"),D0=Hn(bn,"_value"),M0=Hn(Lo,"_value"),I0=Hn(ro,"_checked"),z$={firstName:"",lastName:"",email:"",password:"",age:18,volume:50,birthday:"",favoriteColor:"#000000",cv:null,bio:"",country:"",language:"de",framework:"",gender:"",termsAccepted:!1},j$=[{label:"English",value:"en"},{label:"German",value:"de"},{label:"French",value:"fr"}],S$=[{label:"React",value:"react"},{label:"Vue",value:"vue"},{label:"Stencil",value:"stencil"}],T$=[{label:"Male",value:"male"},{label:"Female",value:"female"},{label:"Other",value:"other"}],A$=["firstName","lastName","email","password","age","volume","birthday","favoriteColor","cv","bio","country","language","framework","gender","termsAccepted"],C$=()=>{const{control:e,handleSubmit:n,setValue:r,getValues:i,trigger:s}=ld({defaultValues:z$,mode:"onTouched",shouldFocusError:!0}),d=()=>{A$.forEach(h=>{r(h,i(h),{shouldTouch:!0,shouldValidate:!0})})},u=h=>{alert(JSON.stringify(h,null,2))},m=h=>{d(),s(void 0,{shouldFocus:!0}),console.warn("Validation errors:",h)};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(An,{className:"w-full max-w-xl",_on:{onSubmit:h=>{n(u,m)(h)}},children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Zb,{name:"firstName",control:e,_label:"First Name",rules:{required:"First name is required"},_required:!0}),a.jsx(Zb,{name:"lastName",control:e,_label:"Last Name",rules:{required:"Last name is required"},_required:!0}),a.jsx(C0,{name:"email",control:e,_label:"Email",rules:{required:"Email is required"},_required:!0}),a.jsx(A0,{name:"password",control:e,_label:"Password",rules:{required:"Password is required"},_required:!0}),a.jsx(E0,{name:"age",control:e,_label:"Age",rules:{required:"Age is required",min:0},_required:!0}),a.jsx(L0,{name:"volume",control:e,_label:"Volume (0–100)",_min:0,_max:100}),a.jsx(O0,{name:"birthday",control:e,_label:"Birthday",rules:{required:"Birthday is required"}}),a.jsx($0,{name:"favoriteColor",control:e,_label:"Favorite Color",id:"favoriteColor"}),a.jsx(w$,{name:"cv",control:e,_label:"Upload CV",rules:{required:"Please upload your CV"},_required:!0}),a.jsx(N0,{name:"bio",control:e,_label:"Bio",rules:{required:"Please provide a short bio"},_required:!0}),a.jsx(B0,{control:e,rules:{required:"Please select a country"},name:"country",_label:"Country",_suggestions:Qn,_required:!0}),a.jsx(R0,{control:e,rules:{required:"Please select a language"},name:"language",_label:"Preferred Language",_options:j$,_required:!0}),a.jsx(D0,{rules:{required:"Please select a framework"},control:e,name:"framework",_label:"Favorite Framework",_options:S$,_required:!0}),a.jsx(M0,{control:e,rules:{required:"Please select your gender"},name:"gender",_label:"Gender",_options:T$,_required:!0}),a.jsx(I0,{name:"termsAccepted",control:e,_label:"I accept the terms and conditions",rules:{required:"You must accept the terms"},_required:!0}),a.jsx(W,{_label:"Submit",_type:"submit"})]})})]})},E$=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(W,{_icons:"codicon codicon-home",_label:"Button",_on:n}),a.jsx(W,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Button",_on:n}),a.jsx(Xe,{_href:"#",_icons:"codicon codicon-home",_label:"Link-Button",_on:n}),a.jsx(Xe,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Link-Button",_on:n}),a.jsx(_n,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_suggestions:[]}),a.jsx(Go,{_hideLabel:!0,_icons:{left:"codicon codicon-home"},_label:"Input-Color"}),a.jsx(Ro,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-File"}),a.jsx(He,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Date"}),a.jsx(Yo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Email"}),a.jsx(So,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Number"}),a.jsx(Eo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Password"}),a.jsx(en,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Range"}),a.jsx(Oe,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Text"}),a.jsx(Jo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_options:[]}),a.jsx(bn,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_options:[]}),a.jsx(Qe,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox"})]})]})},W1=(e,n,r)=>{if(e&&"reportValidity"in e){const i=de(r,n);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},U0=(e,n)=>{for(const r in n.fields){const i=n.fields[r];i&&i.ref&&"reportValidity"in i.ref?W1(i.ref,r,e):i.refs&&i.refs.forEach(s=>W1(s,r,e))}},L$=(e,n)=>{n.shouldUseNativeValidation&&U0(e,n);const r={};for(const i in e){const s=de(n.fields,i),d=Object.assign(e[i]||{},{ref:s&&s.ref});if(O$(n.names||Object.keys(e),i)){const u=Object.assign({},de(r,i));fo(u,"root",d),fo(r,i,u)}else fo(r,i,d)}return r},O$=(e,n)=>e.some(r=>r.startsWith(n+"."));var $$=function(e,n){for(var r={};e.length;){var i=e[0],s=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:s};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]=o0(u,n,r,s,p?[].concat(p,i.message):i.message)}e.shift()}return r},N$=function(e,n,r){return r===void 0&&(r={}),function(i,s,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&&U0({},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:L$($$(u.errors,!d.shouldUseNativeValidation&&d.criteriaMode==="all"),d)};throw u}))}catch(u){return Promise.reject(u)}}};function X(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 s=r?.Parent??Object;class d extends s{}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 jl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class H0 extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}const F0={};function ya(e){return F0}function K0(e){const n=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,s])=>n.indexOf(+i)===-1).map(([i,s])=>s)}function Pb(e,n){return typeof n=="bigint"?n.toString():n}function Mm(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Im(e){return e==null}function Um(e){const n=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(n,r)}function B$(e,n){const r=(e.toString().split(".")[1]||"").length,i=n.toString();let s=(i.split(".")[1]||"").length;if(s===0&&/\d?e-\d?/.test(i)){const h=i.match(/\d?e-(\d?)/);h?.[1]&&(s=Number.parseInt(h[1]))}const d=r>s?r:s,u=Number.parseInt(e.toFixed(d).replace(".","")),m=Number.parseInt(n.toFixed(d).replace(".",""));return u%m/10**d}const Q1=Symbol("evaluating");function ho(e,n,r){let i;Object.defineProperty(e,n,{get(){if(i!==Q1)return i===void 0&&(i=Q1,i=r()),i},set(s){Object.defineProperty(e,n,{value:s})},configurable:!0})}function Ta(e,n,r){Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0})}function qr(...e){const n={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(n,i)}return Object.defineProperties({},n)}function ex(e){return JSON.stringify(e)}function R$(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const V0="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Gs(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const D$=Mm(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Gi(e){if(Gs(e)===!1)return!1;const n=e.constructor;if(n===void 0||typeof n!="function")return!0;const r=n.prototype;return!(Gs(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function q0(e){return Gi(e)?{...e}:Array.isArray(e)?[...e]:e}const M$=new Set(["string","number","symbol"]);function sd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zr(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 I$(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}const U$={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 H$(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=qr(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 Ta(this,"shape",u),u},checks:[]});return Zr(e,d)}function F$(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=qr(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 Ta(this,"shape",u),u},checks:[]});return Zr(e,d)}function K$(e,n){if(!Gi(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 s=qr(e._zod.def,{get shape(){const d={...e._zod.def.shape,...n};return Ta(this,"shape",d),d}});return Zr(e,s)}function V$(e,n){if(!Gi(n))throw new Error("Invalid input to safeExtend: expected a plain object");const r=qr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...n};return Ta(this,"shape",i),i}});return Zr(e,r)}function q$(e,n){const r=qr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...n._zod.def.shape};return Ta(this,"shape",i),i},get catchall(){return n._zod.def.catchall},checks:[]});return Zr(e,r)}function Z$(e,n,r){const s=n._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const u=qr(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 Ta(this,"shape",h),h},checks:[]});return Zr(n,u)}function P$(e,n,r){const i=qr(n._zod.def,{get shape(){const s=n._zod.def.shape,d={...s};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:s[u]}))}else for(const u in s)d[u]=new e({type:"nonoptional",innerType:s[u]});return Ta(this,"shape",d),d}});return Zr(n,i)}function yl(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 Z0(e,n){return n.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function ys(e){return typeof e=="string"?e:e?.message}function wa(e,n,r){const i={...e,path:e.path??[]};if(!e.message){const s=ys(e.inst?._zod.def?.error?.(e))??ys(n?.error?.(e))??ys(r.customError?.(e))??ys(r.localeError?.(e))??"Invalid input";i.message=s}return delete i.inst,delete i.continue,n?.reportInput||delete i.input,i}function Hm(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Yi(...e){const[n,r,i]=e;return typeof n=="string"?{message:n,code:"custom",input:r,inst:i}:{...n}}const P0=(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,Pb,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},G0=X("$ZodError",P0),Y0=X("$ZodError",P0,{Parent:Error});function G$(e,n=r=>r.message){const r={},i=[];for(const s of e.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(n(s))):i.push(n(s));return{formErrors:i,fieldErrors:r}}function Y$(e,n=r=>r.message){const r={_errors:[]},i=s=>{for(const d of s.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 Fm=e=>(n,r,i,s)=>{const d=i?Object.assign(i,{async:!1}):{async:!1},u=n._zod.run({value:r,issues:[]},d);if(u instanceof Promise)throw new jl;if(u.issues.length){const m=new(s?.Err??e)(u.issues.map(h=>wa(h,d,ya())));throw V0(m,s?.callee),m}return u.value},Km=e=>async(n,r,i,s)=>{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(s?.Err??e)(u.issues.map(h=>wa(h,d,ya())));throw V0(m,s?.callee),m}return u.value},dd=e=>(n,r,i)=>{const s=i?{...i,async:!1}:{async:!1},d=n._zod.run({value:r,issues:[]},s);if(d instanceof Promise)throw new jl;return d.issues.length?{success:!1,error:new(e??G0)(d.issues.map(u=>wa(u,s,ya())))}:{success:!0,data:d.value}},J$=dd(Y0),ud=e=>async(n,r,i)=>{const s=i?Object.assign(i,{async:!0}):{async:!0};let d=n._zod.run({value:r,issues:[]},s);return d instanceof Promise&&(d=await d),d.issues.length?{success:!1,error:new e(d.issues.map(u=>wa(u,s,ya())))}:{success:!0,data:d.value}},X$=ud(Y0),W$=e=>(n,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Fm(e)(n,r,s)},Q$=e=>(n,r,i)=>Fm(e)(n,r,i),e9=e=>async(n,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Km(e)(n,r,s)},o9=e=>async(n,r,i)=>Km(e)(n,r,i),n9=e=>(n,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return dd(e)(n,r,s)},t9=e=>(n,r,i)=>dd(e)(n,r,i),r9=e=>async(n,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ud(e)(n,r,s)},a9=e=>async(n,r,i)=>ud(e)(n,r,i),l9=/^[cC][^\s-]{8,}$/,i9=/^[0-9a-z]+$/,c9=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,s9=/^[0-9a-vA-V]{20}$/,d9=/^[A-Za-z0-9]{27}$/,u9=/^[a-zA-Z0-9_-]{21}$/,f9=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,b9=/^([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})$/,ox=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)$/,m9=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,h9="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function p9(){return new RegExp(h9,"u")}const k9=/^(?:(?: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])$/,v9=/^(([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}|:))$/,g9=/^((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])$/,_9=/^(([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])$/,x9=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,J0=/^[A-Za-z0-9_-]*$/,y9=/^\+[1-9]\d{6,14}$/,X0="(?:(?:\\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])))",w9=new RegExp(`^${X0}$`);function W0(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 z9(e){return new RegExp(`^${W0(e)}$`)}function j9(e){const n=W0({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(`^${X0}T(?:${i})$`)}const S9=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},T9=/^-?\d+$/,A9=/^-?\d+(?:\.\d+)?$/,C9=/^(?:true|false)$/i,E9=/^[^A-Z]*$/,L9=/^[^a-z]*$/,Fn=X("$ZodCheck",(e,n)=>{var r;e._zod??(e._zod={}),e._zod.def=n,(r=e._zod).onattach??(r.onattach=[])}),Q0={number:"number",bigint:"bigint",object:"date"},ew=X("$ZodCheckLessThan",(e,n)=>{Fn.init(e,n);const r=Q0[typeof n.value];e._zod.onattach.push(i=>{const s=i._zod.bag,d=(n.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<d&&(n.inclusive?s.maximum=n.value:s.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})}}),ow=X("$ZodCheckGreaterThan",(e,n)=>{Fn.init(e,n);const r=Q0[typeof n.value];e._zod.onattach.push(i=>{const s=i._zod.bag,d=(n.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>d&&(n.inclusive?s.minimum=n.value:s.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})}}),O9=X("$ZodCheckMultipleOf",(e,n)=>{Fn.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):B$(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})}}),$9=X("$ZodCheckNumberFormat",(e,n)=>{Fn.init(e,n),n.format=n.format||"float64";const r=n.format?.includes("int"),i=r?"int":"number",[s,d]=U$[n.format];e._zod.onattach.push(u=>{const m=u._zod.bag;m.format=n.format,m.minimum=s,m.maximum=d,r&&(m.pattern=T9)}),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<s&&u.issues.push({origin:"number",input:m,code:"too_small",minimum:s,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})}}),N9=X("$ZodCheckMaxLength",(e,n)=>{var r;Fn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!Im(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<s&&(i._zod.bag.maximum=n.maximum)}),e._zod.check=i=>{const s=i.value;if(s.length<=n.maximum)return;const u=Hm(s);i.issues.push({origin:u,code:"too_big",maximum:n.maximum,inclusive:!0,input:s,inst:e,continue:!n.abort})}}),B9=X("$ZodCheckMinLength",(e,n)=>{var r;Fn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!Im(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>s&&(i._zod.bag.minimum=n.minimum)}),e._zod.check=i=>{const s=i.value;if(s.length>=n.minimum)return;const u=Hm(s);i.issues.push({origin:u,code:"too_small",minimum:n.minimum,inclusive:!0,input:s,inst:e,continue:!n.abort})}}),R9=X("$ZodCheckLengthEquals",(e,n)=>{var r;Fn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!Im(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag;s.minimum=n.length,s.maximum=n.length,s.length=n.length}),e._zod.check=i=>{const s=i.value,d=s.length;if(d===n.length)return;const u=Hm(s),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})}}),fd=X("$ZodCheckStringFormat",(e,n)=>{var r,i;Fn.init(e,n),e._zod.onattach.push(s=>{const d=s._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=s=>{n.pattern.lastIndex=0,!n.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:n.format,input:s.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(i=e._zod).check??(i.check=()=>{})}),D9=X("$ZodCheckRegex",(e,n)=>{fd.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})}}),M9=X("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=E9),fd.init(e,n)}),I9=X("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=L9),fd.init(e,n)}),U9=X("$ZodCheckIncludes",(e,n)=>{Fn.init(e,n);const r=sd(n.includes),i=new RegExp(typeof n.position=="number"?`^.{${n.position}}${r}`:r);n.pattern=i,e._zod.onattach.push(s=>{const d=s._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(i)}),e._zod.check=s=>{s.value.includes(n.includes,n.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:s.value,inst:e,continue:!n.abort})}}),H9=X("$ZodCheckStartsWith",(e,n)=>{Fn.init(e,n);const r=new RegExp(`^${sd(n.prefix)}.*`);n.pattern??(n.pattern=r),e._zod.onattach.push(i=>{const s=i._zod.bag;s.patterns??(s.patterns=new Set),s.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})}}),F9=X("$ZodCheckEndsWith",(e,n)=>{Fn.init(e,n);const r=new RegExp(`.*${sd(n.suffix)}$`);n.pattern??(n.pattern=r),e._zod.onattach.push(i=>{const s=i._zod.bag;s.patterns??(s.patterns=new Set),s.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})}}),K9=X("$ZodCheckOverwrite",(e,n)=>{Fn.init(e,n),e._zod.check=r=>{r.value=n.tx(r.value)}});class V9{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
- `).filter(u=>u),s=Math.min(...i.map(u=>u.length-u.trimStart().length)),d=i.map(u=>u.slice(s)).map(u=>" ".repeat(this.indent*2)+u);for(const u of d)this.content.push(u)}compile(){const n=Function,r=this?.args,s=[...(this?.content??[""]).map(d=>` ${d}`)];return new n(...r,s.join(`
25975
- `))}}const q9={major:4,minor:3,patch:6},Mo=X("$ZodType",(e,n)=>{var r;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=q9;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const s of i)for(const d of s._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 s=(u,m,h)=>{let p=yl(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 jl;if(g||z instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await z,u.issues.length!==_&&(p||(p=yl(u,_)))});else{if(u.issues.length===_)continue;p||(p=yl(u,_))}}return g?g.then(()=>u):u},d=(u,m,h)=>{if(yl(u))return u.aborted=!0,u;const p=s(m,i,h);if(p instanceof Promise){if(h.async===!1)throw new jl;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 jl;return h.then(p=>s(p,i,m))}return s(h,i,m)}}ho(e,"~standard",()=>({validate:s=>{try{const d=J$(e,s);return d.success?{value:d.data}:{issues:d.error?.issues}}catch{return X$(e,s).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}))}),Vm=X("$ZodString",(e,n)=>{Mo.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??S9(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}}),Ao=X("$ZodStringFormat",(e,n)=>{fd.init(e,n),Vm.init(e,n)}),Z9=X("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=b9),Ao.init(e,n)}),P9=X("$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=ox(i))}else n.pattern??(n.pattern=ox());Ao.init(e,n)}),G9=X("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=m9),Ao.init(e,n)}),Y9=X("$ZodURL",(e,n)=>{Ao.init(e,n),e._zod.check=r=>{try{const i=r.value.trim(),s=new URL(i);n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(s.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(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.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=s.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!n.abort})}}}),J9=X("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=p9()),Ao.init(e,n)}),X9=X("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=u9),Ao.init(e,n)}),W9=X("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=l9),Ao.init(e,n)}),Q9=X("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=i9),Ao.init(e,n)}),eN=X("$ZodULID",(e,n)=>{n.pattern??(n.pattern=c9),Ao.init(e,n)}),oN=X("$ZodXID",(e,n)=>{n.pattern??(n.pattern=s9),Ao.init(e,n)}),nN=X("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=d9),Ao.init(e,n)}),tN=X("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=j9(n)),Ao.init(e,n)}),rN=X("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=w9),Ao.init(e,n)}),aN=X("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=z9(n)),Ao.init(e,n)}),lN=X("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=f9),Ao.init(e,n)}),iN=X("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=k9),Ao.init(e,n),e._zod.bag.format="ipv4"}),cN=X("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=v9),Ao.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})}}}),sN=X("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=g9),Ao.init(e,n)}),dN=X("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=_9),Ao.init(e,n),e._zod.check=r=>{const i=r.value.split("/");try{if(i.length!==2)throw new Error;const[s,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://[${s}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!n.abort})}}});function nw(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const uN=X("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=x9),Ao.init(e,n),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{nw(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!n.abort})}});function fN(e){if(!J0.test(e))return!1;const n=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=n.padEnd(Math.ceil(n.length/4)*4,"=");return nw(r)}const bN=X("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=J0),Ao.init(e,n),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{fN(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!n.abort})}}),mN=X("$ZodE164",(e,n)=>{n.pattern??(n.pattern=y9),Ao.init(e,n)});function hN(e,n=null){try{const r=e.split(".");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const s=JSON.parse(atob(i));return!("typ"in s&&s?.typ!=="JWT"||!s.alg||n&&(!("alg"in s)||s.alg!==n))}catch{return!1}}const pN=X("$ZodJWT",(e,n)=>{Ao.init(e,n),e._zod.check=r=>{hN(r.value,n.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!n.abort})}}),tw=X("$ZodNumber",(e,n)=>{Mo.init(e,n),e._zod.pattern=e._zod.bag.pattern??A9,e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=Number(r.value)}catch{}const s=r.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return r;const d=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...d?{received:d}:{}}),r}}),kN=X("$ZodNumberFormat",(e,n)=>{$9.init(e,n),tw.init(e,n)}),vN=X("$ZodBoolean",(e,n)=>{Mo.init(e,n),e._zod.pattern=C9,e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=!!r.value}catch{}const s=r.value;return typeof s=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:e}),r}}),gN=X("$ZodUnknown",(e,n)=>{Mo.init(e,n),e._zod.parse=r=>r}),_N=X("$ZodNever",(e,n)=>{Mo.init(e,n),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),xN=X("$ZodDate",(e,n)=>{Mo.init(e,n),e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=new Date(r.value)}catch{}const s=r.value,d=s instanceof Date;return d&&!Number.isNaN(s.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:s,...d?{received:"Invalid Date"}:{},inst:e}),r}});function nx(e,n,r){e.issues.length&&n.issues.push(...Z0(r,e.issues)),n.value[r]=e.value}const yN=X("$ZodArray",(e,n)=>{Mo.init(e,n),e._zod.parse=(r,i)=>{const s=r.value;if(!Array.isArray(s))return r.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),r;r.value=Array(s.length);const d=[];for(let u=0;u<s.length;u++){const m=s[u],h=n.element._zod.run({value:m,issues:[]},i);h instanceof Promise?d.push(h.then(p=>nx(p,r,u))):nx(h,r,u)}return d.length?Promise.all(d).then(()=>r):r}});function Ys(e,n,r,i,s){if(e.issues.length){if(s&&!(r in i))return;n.issues.push(...Z0(r,e.issues))}e.value===void 0?r in i&&(n.value[r]=void 0):n.value[r]=e.value}function rw(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=I$(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(r)}}function aw(e,n,r,i,s,d){const u=[],m=s.keySet,h=s.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=>Ys(z,r,v,n,g))):Ys(_,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 wN=X("$ZodObject",(e,n)=>{if(Mo.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=Mm(()=>rw(n));ho(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 s=Gs,d=n.catchall;let u;e._zod.parse=(m,h)=>{u??(u=i.value);const p=m.value;if(!s(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[_],N=z._zod.optout==="optional",S=z._zod.run({value:p[_],issues:[]},h);S instanceof Promise?g.push(S.then(O=>Ys(O,m,_,p,N))):Ys(S,m,_,p,N)}return d?aw(g,p,m,h,i.value,e):g.length?Promise.all(g).then(()=>m):m}}),zN=X("$ZodObjectJIT",(e,n)=>{wN.init(e,n);const r=e._zod.parse,i=Mm(()=>rw(n)),s=_=>{const z=new V9(["shape","payload","ctx"]),N=i.value,S=w=>{const $=ex(w);return`shape[${$}]._zod.run({ value: input[${$}], issues: [] }, ctx)`};z.write("const input = payload.value;");const O=Object.create(null);let E=0;for(const w of N.keys)O[w]=`key_${E++}`;z.write("const newResult = {};");for(const w of N.keys){const $=O[w],D=ex(w),Z=_[w]?._zod?.optout==="optional";z.write(`const ${$} = ${S(w)};`),Z?z.write(`
25973
+ sit amet.`,TO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mn,{className:"w-full",children:a.jsx(Qe,{_adjustHeight:!0,_value:SO,_label:"Text input (auto grow)"})})]}),q1=j.forwardRef(function(n,r){return a.jsxs("div",{className:"grid gap-4",children:[a.jsx("div",{className:"black-background",children:a.jsx(Qe,{...n,ref:r,_placeholder:"Placeholder",_label:"Text"})}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_required:!0,_msg:{_type:"error",_description:Ue},_label:"Text",_touched:!0,_hint:yn}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"info",_description:"Just a hint"}}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"warning",_description:"Small warning"}}),a.jsx(Qe,{...n,_placeholder:"Placeholder",_label:"Text",_msg:{_type:"success",_description:"Success message"}}),a.jsx(Qe,{...n,ref:r,_accessKey:"T",_label:"Text (3 rows)",_rows:3}),a.jsx(Qe,{...n,ref:r,_label:"Text (placeholder)",_rows:3,_placeholder:"Placeholder"}),a.jsx(Qe,{...n,ref:r,_label:"Text (disabled & placeholder)",_rows:3,_placeholder:"Placeholder",_disabled:!0}),a.jsx(Qe,{...n,ref:r,_label:"Text (readonly)",_rows:3,_placeholder:"Placeholder",_readOnly:!0}),a.jsx(Qe,{...n,ref:r,_label:"Text (disabled & value)",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_disabled:!0}),a.jsx(Qe,{...n,ref:r,_label:"With access key",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_accessKey:"c"}),a.jsx(Qe,{...n,ref:r,_label:"With short key",_rows:3,_placeholder:"Placeholder",_value:"Lorem ipsum",_shortKey:"s"})]})}),AO=j.forwardRef(function(n,r){return a.jsxs(Cn,{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})]})]})}),CO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(wn,{RefComponent:AO,showButtons:!1})]}),EO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mn,{className:"w-full",children:a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx(Qe,{_label:"Text input (unset)"}),a.jsx(Qe,{_resize:"vertical",_label:"Text input (vertical)"}),a.jsx(Qe,{_resize:"none",_label:"Text input (none)"})]})})]}),LO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(mn,{className:"w-full",children:a.jsx(Qe,{_rows:10,_label:"Texteingabe"})})]}),OO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Qe,{_label:"Textarea with soft max length",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20,_hasCounter:!0,_maxLengthBehavior:"soft"}),a.jsx(Qe,{_label:"Textarea with max length",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20}),a.jsx(Qe,{_label:"Textarea with max length and counter",_value:"Lorem Ipsum",className:"mt-2",_maxLength:20,_hasCounter:!0}),a.jsx(Qe,{_label:"Textarea with counter",_value:"Lorem Ipsum",className:"mt-2",_hasCounter:!0})]})]}),$O={textarea:{basic:CO,"adjust-height":TO,resize:EO,rows:LO,"with-counter":OO}},NO=()=>{const[e]=Kr(),n=e.get("type"),r=Vr.getInstance(document),i=()=>{r.enqueue({description:"Toasty",label:"Initial Toast",type:"warning",onClose:()=>{console.log("Simple toast has been closed.")}})};j.useEffect(()=>{n&&r.enqueue({description:"Toasty",label:`Toast with type '${n}'`,type:n})},[n,r]);const c=()=>{r.enqueue({render:(m,{close:h})=>{gn(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(V,{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:()=>void d()}}),a.jsx(X,{_label:"Close all toasts",_on:{onClick:u}})]})})]})},Rm=["default","info","success","warning","error"],BO=Rm.map(e=>({label:e,value:e})),Z1=e=>typeof e=="string"&&Rm.includes(e),RO=()=>{const[e]=Kr(),n=e.get("type"),r=Z1(n)?n:void 0,[i,c]=j.useState(()=>r??"default"),d=j.useMemo(()=>Vr.getInstance(document),[]);j.useEffect(()=>(Rm.forEach(p=>{d.enqueue({description:"Toasty",label:`Toast with type '${p}'`,type:p})}),()=>{d.closeAll()}),[d]),j.useEffect(()=>{r&&c(r)},[r]);const u=(p,g)=>{Z1(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(V,{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(Lo,{_orientation:"horizontal",_label:"Toast type",_value:i,_options:BO,_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}})]})]})]})},DO={toast:{basic:NO,configurator:RO}},MO=()=>{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(V,{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(ga,{class:"block w-fit",_label:"Toolbar",_items:e}),a.jsx(ue,{_label:"Orientation vertical",_level:2}),a.jsx(ga,{class:"block w-fit",_label:"Toolbar",_items:e,_orientation:"vertical"})]})]})},IO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolToolbars with some of the elements disabled."})}),a.jsx(ga,{_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"}]})]}),UO={toolbar:{basic:MO,disabled:IO}},FO=()=>{const e=["🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵"];return e[Math.floor(Math.random()*e.length)]},HO=()=>{const e=j.useContext(jm),{subPage:n}=B4(),[r,i]=j.useState("1 Home"),[c,d]=j.useState(!1),[u,m]=j.useState(!1),[h,p]=j.useState(!0),g=()=>{i(`1 Home ${FO()}`)},v=x=>({_href:`#/tree/basic/${x}${e?"?hideMenus":""}`,_active:x===n});return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolTree renders a keyboard accessible nested navigation. Branches of the tree can be collapsed or expanded."})}),a.jsxs(Sx,{_label:"Sitemap",class:"block w-fit",children:[a.jsx(Qo,{_label:r,...v("home")}),a.jsxs(Qo,{_label:"2 About (open initially)",...v("about"),_open:!0,children:[a.jsx(Qo,{_label:"2.0 Legal",...v("legal")}),a.jsxs(Qo,{_label:"2.1 Team",...v("team"),children:[a.jsx(Qo,{_label:"2.1.1. Values",...v("values")}),a.jsxs(Qo,{_label:"2.1.2. Members",...v("members"),children:[a.jsx(Qo,{_label:"2.1.2.1 Humans",...v("humans")}),c&&a.jsx(Qo,{_label:"2.1.2.2 Pets",...v("pets")})]}),a.jsx(Qo,{_label:"2.1.3 Locations",...v("locations"),children:u&&a.jsxs(Qo,{_label:"2.1.3.1 Europe",...v("europe"),children:[a.jsx(Qo,{_label:"2.1.3.1.1 Denmark",...v("denmark")}),a.jsx(Qo,{_label:"2.1.3.1.2 Netherlands",...v("netherlands")})]})})]})]}),h&&a.jsxs(Qo,{_label:"3. Products",...v("products"),children:[a.jsxs(Qo,{_label:"3.1 Home",...v("home-products"),children:[a.jsx(Qo,{_label:"3.1.1 Refrigerators",...v("fridges")}),a.jsx(Qo,{_label:"3.1.2 Coffee makers",...v("coffee-makers")})]}),a.jsx(Qo,{_label:"3.1 Office",...v("office-products"),children:a.jsx(Qo,{_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)}})]})]})},KO={tree:{"basic/:subPage":HO}},VO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolVersion renders a label showing the given version number."})}),a.jsx(od,{_label:"1.1.1"})]}),qO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows KolVersion inline with text paragraph content."})}),a.jsxs("p",{children:[a.jsx(od,{_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."]})]}),ZO={version:{basic:VO,context:qO}},PO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Oe,{_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(Oe,{_label:"ButtonLink",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Pe,{_label:"ButtonLink 1, Tabindex 4",tabIndex:4}),a.jsx(Pe,{_disabled:!0,_label:"ButtonLink 2, Tabindex 3",tabIndex:3}),a.jsx(Pe,{_label:"ButtonLink 3, Tabindex 2",tabIndex:2}),a.jsx(Pe,{_label:"ButtonLink 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Oe,{_label:"Combobox",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(xn,{_hint:yn,_label:"Combobox 1, Tabindex 4",_suggestions:Qn,_value:"Deutschland",tabIndex:4}),a.jsx(xn,{_disabled:!0,_hint:yn,_label:"Combobox 2, Tabindex 3",_suggestions:Qn,_value:"Deutschland",tabIndex:3}),a.jsx(xn,{_touched:!0,_hint:yn,_msg:{_type:"error",_description:Ue},_label:"Combobox 3, Tabindex 2",_suggestions:Qn,_value:"Deutschland",tabIndex:2}),a.jsx(xn,{_hint:yn,_label:"Combobox 4, Tabindex 1",_suggestions:Qn,_value:"Deutschland",tabIndex:1})]})}),a.jsx(Oe,{_label:"InputCheckbox",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(ro,{_label:"InputCheckbox 4, Tabindex 1",_value:!1,tabIndex:4}),a.jsx(ro,{_disabled:!0,_label:"InputCheckbox 3, Tabindex 2",_value:!1,tabIndex:3}),a.jsx(ro,{_touched:!0,_label:"InputCheckbox 2, Tabindex 3",_msg:{_type:"error",_description:Ue},_value:!1,tabIndex:2}),a.jsx(ro,{_label:"InputCheckbox 1, Tabindex 4",_value:!1,tabIndex:1})]})}),a.jsx(Oe,{_label:"InputColor",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Go,{_value:"#f08080",_label:"InputCheckbox 1, Tabindex 4",tabIndex:4}),a.jsx(Go,{_disabled:!0,_value:"#f08080",_label:"InputCheckbox 2, Tabindex 3",tabIndex:3}),a.jsx(Go,{_touched:!0,_value:"#f08080",_label:"InputCheckbox 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Go,{_value:"#f08080",_label:"InputCheckbox 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Oe,{_label:"InputDate",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Fe,{_type:"datetime-local",_label:"InputCheckbox 1, Tabindex 4",tabIndex:4}),a.jsx(Fe,{_disabled:!0,_type:"datetime-local",_label:"InputCheckbox 2, Tabindex 3",tabIndex:3}),a.jsx(Fe,{_touched:!0,_type:"datetime-local",_label:"InputCheckbox 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Fe,{_type:"datetime-local",_label:"InputCheckbox 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Oe,{_label:"InputEmail",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Yo,{_label:"InputEmail 1, Tabindex 4",tabIndex:4}),a.jsx(Yo,{_disabled:!0,_label:"InputEmail 2, Tabindex 3",tabIndex:3}),a.jsx(Yo,{_touched:!0,_label:"InputEmail 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Yo,{_label:"InputEmail 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Oe,{_label:"InputFile",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Ro,{_label:"InputFile 1, Tabindex 4",tabIndex:4}),a.jsx(Ro,{_disabled:!0,_label:"InputFile 2, Tabindex 3",tabIndex:3}),a.jsx(Ro,{_touched:!0,_label:"InputFile 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Ro,{_label:"InputFile 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Oe,{_label:"InputNumber",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(So,{_label:"InputNumber 1, Tabindex 4",tabIndex:4}),a.jsx(So,{_disabled:!0,_label:"InputNumber 2, Tabindex 3",tabIndex:3}),a.jsx(So,{_touched:!0,_label:"InputNumber 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(So,{_label:"InputNumber 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Oe,{_label:"InputPassword",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Eo,{_label:"InputPassword 1, Tabindex 4",tabIndex:4}),a.jsx(Eo,{_disabled:!0,_label:"InputPassword 2, Tabindex 3",tabIndex:3}),a.jsx(Eo,{_touched:!0,_label:"InputPassword 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Eo,{_label:"InputPassword 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Oe,{_label:"InputRadio",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Lo,{_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(Lo,{_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(Lo,{_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:Ue},tabIndex:2})," ",a.jsx(Lo,{_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(Oe,{_label:"InputRange",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(en,{_label:"InputRange 1, Tabindex 4",_min:0,_max:50,tabIndex:4}),a.jsx(en,{_disabled:!0,_label:"InputRange 2, Tabindex 3",_min:0,_max:50,tabIndex:3}),a.jsx(en,{_touched:!0,_label:"InputRange 3, Tabindex 2",_min:0,_max:50,_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(en,{_label:"InputRange 4, Tabindex 1",_min:0,_max:50,tabIndex:1})]})}),a.jsx(Oe,{_label:"InputText",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Ee,{_label:"InputText 1, Tabindex 4",tabIndex:4}),a.jsx(Ee,{_disabled:!0,_label:"InputText 2, Tabindex 3",tabIndex:3}),a.jsx(Ee,{_touched:!0,_label:"InputText 3, Tabindex 2",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Ee,{_label:"InputText 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Oe,{_label:"LinkButton",_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",_variant:"primary",tabIndex:4}),a.jsx(Xe,{_disabled:!0,_href:"#/back-page",_label:"InputText 2, Tabindex 3",_variant:"primary",tabIndex:3}),a.jsx(Xe,{_href:"#/back-page",_label:"InputText 3, Tabindex 2",_variant:"primary",tabIndex:2}),a.jsx(Xe,{_href:"#/back-page",_label:"InputText 4, Tabindex 1",_variant:"primary",tabIndex:1})]})}),a.jsx(Oe,{_label:"Link",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(_e,{_href:"#/back-page",_label:"InputText 1, Tabindex 4",tabIndex:4}),a.jsx(_e,{_disabled:!0,_href:"#/back-page",_label:"InputText 2, Tabindex 3",tabIndex:3}),a.jsx(_e,{_href:"#/back-page",_label:"InputText 3, Tabindex 2",tabIndex:2}),a.jsx(_e,{_href:"#/back-page",_label:"InputText 4, Tabindex 1",tabIndex:1})]})}),a.jsx(Oe,{_label:"SingleSelect",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(bn,{_label:"InputText 1, Tabindex 4",_options:Wn,_value:"de",tabIndex:4}),a.jsx(bn,{_disabled:!0,_label:"InputText 2, Tabindex 3",_options:Wn,_value:"de",tabIndex:3}),a.jsx(bn,{_touched:!0,_label:"InputText 3, Tabindex 2",_options:Wn,_msg:{_type:"error",_description:Ue},_value:"de",tabIndex:2}),a.jsx(bn,{_label:"InputText 4, Tabindex 1",_options:Wn,_value:"de",tabIndex:1})]})}),a.jsx(Oe,{_label:"SplitButton",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(_l,{_label:"InputText 1, Tabindex 4",tabIndex:4,children:"Dropdown-Inhalt"}),a.jsx(_l,{_label:"InputText 2, Tabindex 3",tabIndex:3,_disabled:!0,children:"Dropdown-Inhalt"}),a.jsx(_l,{_label:"InputText 3, Tabindex 2",tabIndex:2,children:"Dropdown-Inhalt"}),a.jsx(_l,{_label:"InputText 4, Tabindex 1",tabIndex:1,children:"Dropdown-Inhalt"})]})}),a.jsx(Oe,{_label:"Textarea",_level:0,children:a.jsxs("div",{className:"grid sm:flex flex-wrap gap-4 items-end",children:[a.jsx(Qe,{_label:"Textarea 1, Tabindex 4",_rows:3,_placeholder:"Placeholder",tabIndex:4}),a.jsx(Qe,{_disabled:!0,_label:"Textarea 2, Tabindex 3",_rows:3,_placeholder:"Placeholder",tabIndex:3}),a.jsx(Qe,{_touched:!0,_label:"Textarea 3, Tabindex 2",_rows:3,_placeholder:"Placeholder",_msg:{_type:"error",_description:Ue},tabIndex:2}),a.jsx(Qe,{_label:"Textarea 4, Tabindex 1",_rows:3,_placeholder:"Placeholder",tabIndex:1})]})})]})]}),GO=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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})]})]})},YO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"KolForm with KolInputDate inside to make sure enter on the date icon does not submit the form."})}),a.jsxs(mn,{_on:{onSubmit:()=>{console.error("submitted"),alert("submitted")}},children:[a.jsx(Fe,{_label:"date",_name:"datum"}),a.jsx(X,{_label:"Submit",_type:"submit"})]})]}),ws=[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],JO=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsxs(V,{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(Oe,{_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(Oe,{_label:"ButtonLink",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(Pe,{_label:"Label"}),a.jsx(Pe,{_disabled:!0,_label:"Label"}),a.jsx(Pe,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Label"}),a.jsx(Pe,{_hideLabel:!0,_icons:"codicon codicon-home",_disabled:!0,_label:"Label"})]})}),a.jsx(Oe,{_label:"Link",_level:0,children:a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(_e,{_href:"#",_label:"Label"}),a.jsx(_e,{_disabled:!0,_href:"#",_label:"Label"}),a.jsx(_e,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"}),a.jsx(_e,{_disabled:!0,_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Label"})]})}),a.jsx(Oe,{_label:"LinkButton",_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(Oe,{_label:"Accordion",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(rn,{_label:"Label",children:"Content"}),a.jsx(rn,{_disabled:!0,_label:"Label",children:"Content"}),a.jsx(rn,{_label:"Label (open)",_open:!0,children:"Content"}),a.jsx(rn,{_disabled:!0,_label:"Label (open)",_open:!0,children:"Content"})]})}),a.jsx(Oe,{_label:"Details",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(rr,{_label:"Label",children:"Content"}),a.jsx(rr,{_disabled:!0,_label:"Label",children:"Content"}),a.jsx(rr,{_label:"Label (open)",_open:!0,children:"Content"}),a.jsx(rr,{_disabled:!0,_label:"Label (open)",_open:!0,children:"Content"})]})}),[ro,Go,Fe,Yo,Ro,So,Eo,en,Ee].map(r=>{const c=r.render.displayName;return a.jsx(Oe,{_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)}),[Lo,Jo].map(r=>{const c=r.render.displayName;return a.jsx(Oe,{_label:c,_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(r,{_label:"Label",_options:ws}),a.jsx(r,{_disabled:!0,_label:"Label",_options:ws}),a.jsx(r,{_hideLabel:!0,_label:"Label",_options:ws}),a.jsx(r,{_disabled:!0,_hideLabel:!0,_label:"Label",_options:ws})]})},c)}),a.jsx(Oe,{_label:"KolTextarea",_level:0,children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Qe,{_label:"Label",_rows:3}),a.jsx(Qe,{_disabled:!0,_label:"Label",_rows:3}),a.jsx(Qe,{_hideLabel:!0,_label:"Label",_rows:3}),a.jsx(Qe,{_disabled:!0,_hideLabel:!0,_label:"Label",_rows:3})]})})]})]})},v0=()=>{const e=new Map;return e.set("inputCheckbox",(n,r)=>a.jsx(ro,{className:"w-full",_name:"checkbox",_label:"Checkbox",ref:r})),e.set("inputColor",(n,r)=>a.jsx(Go,{className:"w-full",_name:"color",_label:"Color",ref:r})),e.set("inputDate",(n,r)=>a.jsx(Fe,{className:"w-full",_name:"date",_label:"Date",ref:r})),e.set("inputEmail",(n,r)=>a.jsx(Yo,{className:"w-full",_name:"email",_label:"Email",ref:r})),e.set("inputFile",(n,r)=>a.jsx(Ro,{className:"w-full",_name:"file",_label:"File",ref:r})),e.set("inputFileMultiple",(n,r)=>a.jsx(Ro,{className:"w-full",_name:"file",_label:"Files (multiple)",_multiple:!0,ref:r})),e.set("inputNumber",(n,r)=>a.jsx(So,{className:"w-full",_name:"number",_label:"Number",ref:r})),e.set("inputPassword",(n,r)=>a.jsx(Eo,{className:"w-full",_name:"password",_label:"Password",ref:r})),e.set("inputRadio",(n,r)=>a.jsx(Lo,{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(en,{className:"w-full",_name:"range",_label:"Range",ref:r})),e.set("inputText",(n,r)=>a.jsx(Ee,{className:"w-full",_name:"text",_label:"Text",ref:r})),e.set("select",(n,r)=>a.jsx(Jo,{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(Jo,{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(bn,{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(Qe,{className:"w-full",_name:"textarea",_label:"Textarea",_rows:5,ref:r})),e.set("accordion",(n,r)=>a.jsx(rn,{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(Pe,{_label:"ButtonLink here",ref:r})),e.set("combobox",(n,r)=>a.jsx(xn,{className:"w-full",_label:"KolCombobox here",_suggestions:[],ref:r})),e.set("details",(n,r)=>a.jsx(rr,{className:"w-full",_label:"Details here",ref:r,children:"detailed details"})),e.set("link",(n,r)=>a.jsx(_e,{className:"w-full",_label:"Link here",_href:"#",ref:r})),e.set("linkButton",(n,r)=>a.jsx("div",{children:a.jsx(Xe,{_label:"LinkButton here",_href:"#",ref:r})})),e},P1=e=>{const r=[...j.useMemo(()=>v0(),[]).keys()].map(i=>i);return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(_n,{_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(_e,{_label:i,_href:`#/scenarios/focus-elements?component=${i}`})},i))})]})},XO=()=>{const e=j.useRef(null),n=j.useMemo(()=>v0(),[]),[r]=Kr(),i=r.get("component");if(j.useLayoutEffect(()=>{setTimeout(()=>{e.current?.focus()},500)},[e]),i){const c=n.get(i);if(!c)return a.jsx(P1,{invalidComponent:!0});const d=j.forwardRef(c);return a.jsx(d,{ref:e})}else return a.jsx(P1,{})},WO=[{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}],QO=[{_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}],G1={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 e$(){const[e]=j.useState(()=>{const n=G1.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(V,{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(wl,{_label:"Main navigation",_links:h0,_hasCompactButton:!0,_hasIconsWhenExpanded:!0})}),a.jsx("div",{className:"content",children:a.jsxs(cr,{_tabs:QO,_align:"top",_label:"Demo Tabs",children:[a.jsx("div",{style:{overflow:"hidden"},children:a.jsx(mo,{_label:"Table for demonstration purposes with horizontal scrollbar",_minWidth:e,_headers:G1,_data:WO,_pagination:{_page:1},className:"block"})}),a.jsx("div",{}),a.jsx("div",{}),a.jsx("div",{})]})})]})]})}const o$=()=>{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(V,{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(_n,{_alert:!0,_type:"error",_label:e}),a.jsxs("div",{className:"grid grid-cols-3 gap-4 max-w-2xl",children:[a.jsx(Jo,{_options:i,_label:"CountryCode ",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0}),a.jsx(Ee,{_label:"Area code",_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0}),a.jsx(Ee,{_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(_n,{_alert:!0,_type:"error",_label:n}),r.map(c=>a.jsx(ro,{_label:c,_msg:{_description:e,_type:"error"},_touched:!0,_hideMsg:!0},c))]})]})},g0=j.createContext(void 0),_0=j.createContext(!1),fn=e=>{const n=j.useRef(null),[r,i]=j.useState(void 0),[c,d]=j.useState(e.inputProps._value),u=e.formatter||JSON.stringify,m=j.useContext(g0),h=j.useContext(_0),p=async()=>{const v=await n.current?.getValue();i(v)};j.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,(x,z)=>{h&&console.log(e.inputProps._label,v,z,x),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)})]})})},n$=()=>{const e=j.useMemo(()=>new EventTarget,[]),[n,r]=j.useState(!0);return a.jsx(a.Fragment,{children:a.jsx(g0.Provider,{value:e,children:a.jsxs(_0.Provider,{value:n,children:[a.jsx(V,{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(Oe,{_label:"Sample options",className:"block ha mb-8",children:a.jsx(ro,{_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(fn,{testId:"scenario-inputText",InputComponent:Ee,inputProps:{_label:"InputText"}}),a.jsx(fn,{testId:"scenario-inputCheckboxString",InputComponent:ro,inputProps:{_label:"KolInputCheckbox (value)",_value:"Checkbox True Value"}}),a.jsx(fn,{testId:"scenario-inputCheckboxBoolean",InputComponent:ro,inputProps:{_label:"KolInputCheckbox (boolean)"}}),a.jsx(fn,{testId:"scenario-inputColor",InputComponent:Go,inputProps:{_label:"KolInputColor"}}),a.jsx(fn,{testId:"scenario-inputDate",InputComponent:Fe,inputProps:{_label:"KolInputDate"}}),a.jsx(fn,{testId:"scenario-inputEmail",InputComponent:Yo,inputProps:{_label:"KolInputEmail"}}),a.jsx(fn,{testId:"scenario-inputFile",InputComponent:Ro,inputProps:{_label:"KolInputFile"},formatter:i=>i instanceof FileList?`FileList{${Array.from(i).map(c=>c.name).join(", ")}}`:JSON.stringify(i)}),a.jsx(fn,{testId:"scenario-inputNumber",InputComponent:So,inputProps:{_label:"KolInputNumber"}}),a.jsx(fn,{testId:"scenario-inputPassword",InputComponent:Eo,inputProps:{_label:"KolInputPassword"}}),a.jsx(fn,{testId:"scenario-inputRange",InputComponent:en,inputProps:{_label:"KolInputRange"}}),a.jsx(fn,{testId:"scenario-inputRadio",InputComponent:Lo,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(fn,{testId:"scenario-select",InputComponent:Jo,inputProps:{_label:"KolSelect",_options:[{label:"New York",value:"New York"},{label:"Rio de Janeiro",value:"Rio de Janeiro"},{label:"Rosenheim",value:"Rosenheim"}]}}),a.jsx(fn,{testId:"scenario-singleSelect",InputComponent:bn,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(fn,{testId:"scenario-combobox",InputComponent:xn,inputProps:{_label:"KolCombobox",_suggestions:Qn,_value:"Deutschland"}}),a.jsx(fn,{testId:"scenario-textarea",InputComponent:Qe,inputProps:{_label:"KolTextarea"}}),a.jsx(fn,{testId:"scenario-button",InputComponent:X,inputProps:{_label:"KolButton",_variant:"ghost",_value:"KolButton value"}}),a.jsx(fn,{testId:"scenario-buttonLink",InputComponent:Pe,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"))}}})]})]})]})]})})})},t$=333,r$=new Array(t$).fill(0).map((e,n)=>n+1),a$=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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:r$.map(e=>a.jsxs("div",{className:"flex flex-wrap items-end gap-4",children:[a.jsx(Ee,{_label:`TextInput #${e}`}),a.jsx(So,{_label:`NumberInput #${e}`}),a.jsx(ro,{_label:`Checkbox #${e}`})]},e))})]});var l$=e=>e.type==="checkbox",Ri=e=>e instanceof Date,Dm=e=>e==null;const x0=e=>typeof e=="object";var xa=e=>!Dm(e)&&!Array.isArray(e)&&x0(e)&&!Ri(e),i$=e=>xa(e)&&e.target?l$(e.target)?e.target.checked:e.target.value:e,c$=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,s$=(e,n)=>e.has(c$(n)),d$=e=>{const n=e.constructor&&e.constructor.prototype;return xa(n)&&n.hasOwnProperty("isPrototypeOf")},u$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function y0(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(!(u$&&(e instanceof Blob||i))&&(r||xa(e)))if(n=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!d$(e))n=e;else for(const c in e)e.hasOwnProperty(c)&&(n[c]=y0(e[c]));else return e;return n}var w0=e=>/^\w*$/.test(e),Pb=e=>e===void 0,f$=e=>Array.isArray(e)?e.filter(Boolean):[],z0=e=>f$(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Dn=(e,n,r)=>{if(!n||!xa(e))return r;const i=(w0(n)?[n]:z0(n)).reduce((c,d)=>Dm(c)?c:c[d],e);return Pb(i)||i===e?Pb(e[n])?r:e[n]:i},db=e=>typeof e=="boolean",Y1=(e,n,r)=>{let i=-1;const c=w0(n)?[n]:z0(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=xa(p)||Array.isArray(p)?p:isNaN(+c[i+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;e[m]=h,e=e[m]}};const J1={BLUR:"blur",CHANGE:"change"},X1={all:"all"},j0=ae.createContext(null);j0.displayName="HookFormContext";const Mm=()=>ae.useContext(j0);var b$=(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]!==X1.all&&(n._proxyFormState[u]=!i||X1.all),r&&(r[u]=!0),e[u]}});return c};const S0=typeof window<"u"?ae.useLayoutEffect:ae.useEffect;function m$(e){const n=Mm(),{control:r=n.control,disabled:i,name:c,exact:d}=e||{},[u,m]=ae.useState(r._formState),h=ae.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return S0(()=>r._subscribe({name:c,formState:h.current,exact:d,callback:p=>{!i&&m({...r._formState,...p})}}),[c,i,d]),ae.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),ae.useMemo(()=>b$(u,r,h.current,!1),[u,r])}var h$=e=>typeof e=="string",p$=(e,n,r,i,c)=>h$(e)?Dn(r,e,c):Array.isArray(e)?e.map(d=>Dn(r,d)):r,W1=e=>Dm(e)||!x0(e);function T0(e,n,r=new WeakSet){if(W1(e)||W1(n))return e===n;if(Ri(e)&&Ri(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(Ri(u)&&Ri(m)||xa(u)&&xa(m)||Array.isArray(u)&&Array.isArray(m)?!T0(u,m,r):u!==m)return!1}}return!0}function k$(e){const n=Mm(),{control:r=n.control,name:i,defaultValue:c,disabled:d,exact:u,compute:m}=e||{},h=ae.useRef(c),p=ae.useRef(m),g=ae.useRef(void 0);p.current=m;const v=ae.useMemo(()=>r._getWatch(i,h.current),[r,i]),[x,z]=ae.useState(p.current?p.current(v):v);return S0(()=>r._subscribe({name:i,formState:{values:!0},exact:u,callback:N=>{if(!d){const S=p$(i,r._names,N.values||r._formValues,!1,h.current);if(p.current){const O=p.current(S);T0(O,g.current)||(z(O),g.current=O)}else z(S)}}}),[r,d,i,u]),ae.useEffect(()=>r._removeUnmounted()),x}function v$(e){const n=Mm(),{name:r,disabled:i,control:c=n.control,shouldUnregister:d,defaultValue:u}=e,m=s$(c._names.array,r),h=ae.useMemo(()=>Dn(c._formValues,r,Dn(c._defaultValues,r,u)),[c,r,u]),p=k$({control:c,name:r,defaultValue:h,exact:!0}),g=m$({control:c,name:r,exact:!0}),v=ae.useRef(e),x=ae.useRef(void 0),z=ae.useRef(c.register(r,{...e.rules,value:p,...db(e.disabled)?{disabled:e.disabled}:{}}));v.current=e;const N=ae.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Dn(g.errors,r)},isDirty:{enumerable:!0,get:()=>!!Dn(g.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Dn(g.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Dn(g.validatingFields,r)},error:{enumerable:!0,get:()=>Dn(g.errors,r)}}),[g,r]),S=ae.useCallback(w=>z.current.onChange({target:{value:i$(w),name:r},type:J1.CHANGE}),[r]),O=ae.useCallback(()=>z.current.onBlur({target:{value:Dn(c._formValues,r),name:r},type:J1.BLUR}),[r,c._formValues]),E=ae.useCallback(w=>{const $=Dn(c._fields,r);$&&w&&($._f.ref={focus:()=>w.focus&&w.focus(),select:()=>w.select&&w.select(),setCustomValidity:D=>w.setCustomValidity(D),reportValidity:()=>w.reportValidity()})},[c._fields,r]),_=ae.useMemo(()=>({name:r,value:p,...db(i)||g.disabled?{disabled:g.disabled||i}:{},onChange:S,onBlur:O,ref:E}),[r,i,g.disabled,S,O,E,p]);return ae.useEffect(()=>{const w=c._options.shouldUnregister||d,$=x.current;$&&$!==r&&!m&&c.unregister($),c.register(r,{...v.current.rules,...db(v.current.disabled)?{disabled:v.current.disabled}:{}});const D=(F,Z)=>{const ee=Dn(c._fields,F);ee&&ee._f&&(ee._f.mount=Z)};if(D(r,!0),w){const F=y0(Dn(c._options.defaultValues,r));Y1(c._defaultValues,r,F),Pb(Dn(c._formValues,r))&&Y1(c._formValues,r,F)}return!m&&c.register(r),x.current=r,()=>{(m?w&&!c._state.action:w)?c.unregister(r):D(r,!1)}},[r,c,m,d]),ae.useEffect(()=>{c._setDisabledField({disabled:i,name:r})},[i,r,c]),ae.useMemo(()=>({field:_,formState:g,fieldState:N}),[_,g,N])}const g$=e=>e.render(v$(e));function Fn(e,n){const r=ae.forwardRef((i,c)=>{const{name:d,control:u,rules:m,defaultValue:h,shouldUnregister:p,...g}=i;return ae.createElement(g$,{name:d,control:u,rules:m,defaultValue:h,shouldUnregister:p,disabled:i._disabled,render:({field:v,fieldState:x})=>{const z=g._on,N={...g,ref:S=>{c&&(typeof c=="function"?c(S):c.current=S),S&&v.ref(S)},_name:d,_touched:x.isTouched,_disabled:v.disabled,_msg:x.error?{_type:"error",_description:x.error.message||String(x.error)}:void 0,_on:{...z||{},onInput:(S,O)=>{v.onChange(O),z?.onInput?.(S,O)},onChange:(S,O)=>{v.onChange(O),z?.onChange?.(S,O)},onBlur:S=>{v.onBlur(),z?.onBlur?.(S)}}};return n&&(N[n]=v.value),ae.createElement(e,{...N})}})});return r.displayName=`withController(${e.displayName||e.name||"Component"})`,r}const Yi=Fn(Ee,"_value"),A0=Fn(Eo,"_value"),C0=Fn(Yo,"_value"),E0=Fn(So,"_value"),L0=Fn(en,"_value"),O0=Fn(Fe,"_value"),$0=Fn(Go,"_value"),_$=Fn(Ro),N0=Fn(Qe,"_value"),B0=Fn(xn,"_value"),R0=Fn(Jo,"_value"),D0=Fn(bn,"_value"),M0=Fn(Lo,"_value"),I0=Fn(ro,"_checked"),x$={firstName:"",lastName:"",email:"",password:"",age:18,volume:50,birthday:"",favoriteColor:"#000000",cv:null,bio:"",country:"",language:"de",framework:"",gender:"",termsAccepted:!1},y$=[{label:"English",value:"en"},{label:"German",value:"de"},{label:"French",value:"fr"}],w$=[{label:"React",value:"react"},{label:"Vue",value:"vue"},{label:"Stencil",value:"stencil"}],z$=[{label:"Male",value:"male"},{label:"Female",value:"female"},{label:"Other",value:"other"}],j$=["firstName","lastName","email","password","age","volume","birthday","favoriteColor","cv","bio","country","language","framework","gender","termsAccepted"],S$=()=>{const{control:e,handleSubmit:n,setValue:r,getValues:i,trigger:c}=Al({defaultValues:x$,mode:"onTouched",shouldFocusError:!0}),d=()=>{j$.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(V,{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(mn,{className:"w-full max-w-xl",_on:{onSubmit:h=>{n(u,m)(h)}},children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Yi,{name:"firstName",control:e,_label:"First Name",rules:{required:"First name is required"},_required:!0}),a.jsx(Yi,{name:"lastName",control:e,_label:"Last Name",rules:{required:"Last name is required"},_required:!0}),a.jsx(C0,{name:"email",control:e,_label:"Email",rules:{required:"Email is required"},_required:!0}),a.jsx(A0,{name:"password",control:e,_label:"Password",rules:{required:"Password is required"},_required:!0}),a.jsx(E0,{name:"age",control:e,_label:"Age",rules:{required:"Age is required",min:0},_required:!0}),a.jsx(L0,{name:"volume",control:e,_label:"Volume (0–100)",_min:0,_max:100}),a.jsx(O0,{name:"birthday",control:e,_label:"Birthday",rules:{required:"Birthday is required"}}),a.jsx($0,{name:"favoriteColor",control:e,_label:"Favorite Color",id:"favoriteColor"}),a.jsx(_$,{name:"cv",control:e,_label:"Upload CV",rules:{required:"Please upload your CV"},_required:!0}),a.jsx(N0,{name:"bio",control:e,_label:"Bio",rules:{required:"Please provide a short bio"},_required:!0}),a.jsx(B0,{control:e,rules:{required:"Please select a country"},name:"country",_label:"Country",_suggestions:Qn,_required:!0}),a.jsx(R0,{control:e,rules:{required:"Please select a language"},name:"language",_label:"Preferred Language",_options:y$,_required:!0}),a.jsx(D0,{rules:{required:"Please select a framework"},control:e,name:"framework",_label:"Favorite Framework",_options:w$,_required:!0}),a.jsx(M0,{control:e,rules:{required:"Please select your gender"},name:"gender",_label:"Gender",_options:z$,_required:!0}),a.jsx(I0,{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"})]})})]})},T$={first:"",second:""},A$=()=>{const{control:e,handleSubmit:n,watch:r}=Al({defaultValues:T$}),i=c=>{alert(JSON.stringify(c,null,2))};return a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsx("p",{children:"This sample shows two fields of which just one can be filled. The other gets disabled."})}),a.jsx(mn,{className:"w-full max-w-xl",_on:{onSubmit:c=>{n(i)(c)}},children:a.jsxs("div",{className:"grid gap-4",children:[a.jsx(Yi,{name:"first",control:e,_label:"First",_disabled:!!r("second")}),a.jsx(Yi,{name:"second",control:e,_label:"Second",_disabled:!!r("first")}),a.jsx(X,{_label:"Submit",_type:"submit"})]})})]})},C$=()=>{const{dummyClickEventHandler:e}=Do(),n={onClick:e};return a.jsxs(a.Fragment,{children:[a.jsx(V,{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(Xe,{_href:"#",_icons:"codicon codicon-home",_label:"Link-Button",_on:n}),a.jsx(Xe,{_hideLabel:!0,_href:"#",_icons:"codicon codicon-home",_label:"Link-Button",_on:n}),a.jsx(xn,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_suggestions:[]}),a.jsx(Go,{_hideLabel:!0,_icons:{left:"codicon codicon-home"},_label:"Input-Color"}),a.jsx(Ro,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-File"}),a.jsx(Fe,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Date"}),a.jsx(Yo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Email"}),a.jsx(So,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Number"}),a.jsx(Eo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Password"}),a.jsx(en,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Range"}),a.jsx(Ee,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Input-Text"}),a.jsx(Jo,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_options:[]}),a.jsx(bn,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox",_options:[]}),a.jsx(Qe,{_hideLabel:!0,_icons:"codicon codicon-home",_label:"Combobox"})]})]})},Q1=(e,n,r)=>{if(e&&"reportValidity"in e){const i=de(r,n);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},U0=(e,n)=>{for(const r in n.fields){const i=n.fields[r];i&&i.ref&&"reportValidity"in i.ref?Q1(i.ref,r,e):i.refs&&i.refs.forEach(c=>Q1(c,r,e))}},E$=(e,n)=>{n.shouldUseNativeValidation&&U0(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(L$(n.names||Object.keys(e),i)){const u=Object.assign({},de(r,i));fo(u,"root",d),fo(r,i,u)}else fo(r,i,d)}return r},L$=(e,n)=>e.some(r=>r.startsWith(n+"."));var O$=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]=o0(u,n,r,c,p?[].concat(p,i.message):i.message)}e.shift()}return r},$$=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&&U0({},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:E$(O$(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 x=g[v];x in m||(m[x]=p[x].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 jl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class F0 extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}const H0={};function ya(e){return H0}function K0(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 Gb(e,n){return typeof n=="bigint"?n.toString():n}function Im(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Um(e){return e==null}function Fm(e){const n=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(n,r)}function N$(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 ex=Symbol("evaluating");function ho(e,n,r){let i;Object.defineProperty(e,n,{get(){if(i!==ex)return i===void 0&&(i=ex,i=r()),i},set(c){Object.defineProperty(e,n,{value:c})},configurable:!0})}function Ta(e,n,r){Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0})}function qr(...e){const n={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(n,i)}return Object.defineProperties({},n)}function ox(e){return JSON.stringify(e)}function B$(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const V0="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Js(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const R$=Im(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Ji(e){if(Js(e)===!1)return!1;const n=e.constructor;if(n===void 0||typeof n!="function")return!0;const r=n.prototype;return!(Js(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function q0(e){return Ji(e)?{...e}:Array.isArray(e)?[...e]:e}const D$=new Set(["string","number","symbol"]);function dd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zr(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 M$(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}const I$={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 U$(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=qr(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 Ta(this,"shape",u),u},checks:[]});return Zr(e,d)}function F$(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=qr(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 Ta(this,"shape",u),u},checks:[]});return Zr(e,d)}function H$(e,n){if(!Ji(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=qr(e._zod.def,{get shape(){const d={...e._zod.def.shape,...n};return Ta(this,"shape",d),d}});return Zr(e,c)}function K$(e,n){if(!Ji(n))throw new Error("Invalid input to safeExtend: expected a plain object");const r=qr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...n};return Ta(this,"shape",i),i}});return Zr(e,r)}function V$(e,n){const r=qr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...n._zod.def.shape};return Ta(this,"shape",i),i},get catchall(){return n._zod.def.catchall},checks:[]});return Zr(e,r)}function q$(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=qr(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 Ta(this,"shape",h),h},checks:[]});return Zr(n,u)}function Z$(e,n,r){const i=qr(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 Ta(this,"shape",d),d}});return Zr(n,i)}function yl(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 Z0(e,n){return n.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function zs(e){return typeof e=="string"?e:e?.message}function wa(e,n,r){const i={...e,path:e.path??[]};if(!e.message){const c=zs(e.inst?._zod.def?.error?.(e))??zs(n?.error?.(e))??zs(r.customError?.(e))??zs(r.localeError?.(e))??"Invalid input";i.message=c}return delete i.inst,delete i.continue,n?.reportInput||delete i.input,i}function Hm(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Xi(...e){const[n,r,i]=e;return typeof n=="string"?{message:n,code:"custom",input:r,inst:i}:{...n}}const P0=(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,Gb,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},G0=W("$ZodError",P0),Y0=W("$ZodError",P0,{Parent:Error});function P$(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 G$(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 Km=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 jl;if(u.issues.length){const m=new(c?.Err??e)(u.issues.map(h=>wa(h,d,ya())));throw V0(m,c?.callee),m}return u.value},Vm=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=>wa(h,d,ya())));throw V0(m,c?.callee),m}return u.value},ud=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 jl;return d.issues.length?{success:!1,error:new(e??G0)(d.issues.map(u=>wa(u,c,ya())))}:{success:!0,data:d.value}},Y$=ud(Y0),fd=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=>wa(u,c,ya())))}:{success:!0,data:d.value}},J$=fd(Y0),X$=e=>(n,r,i)=>{const c=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Km(e)(n,r,c)},W$=e=>(n,r,i)=>Km(e)(n,r,i),Q$=e=>async(n,r,i)=>{const c=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Vm(e)(n,r,c)},e9=e=>async(n,r,i)=>Vm(e)(n,r,i),o9=e=>(n,r,i)=>{const c=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ud(e)(n,r,c)},n9=e=>(n,r,i)=>ud(e)(n,r,i),t9=e=>async(n,r,i)=>{const c=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return fd(e)(n,r,c)},r9=e=>async(n,r,i)=>fd(e)(n,r,i),a9=/^[cC][^\s-]{8,}$/,l9=/^[0-9a-z]+$/,i9=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,c9=/^[0-9a-vA-V]{20}$/,s9=/^[A-Za-z0-9]{27}$/,d9=/^[a-zA-Z0-9_-]{21}$/,u9=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,f9=/^([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})$/,nx=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)$/,b9=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,m9="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function h9(){return new RegExp(m9,"u")}const p9=/^(?:(?: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])$/,k9=/^(([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}|:))$/,v9=/^((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])$/,g9=/^(([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])$/,_9=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,J0=/^[A-Za-z0-9_-]*$/,x9=/^\+[1-9]\d{6,14}$/,X0="(?:(?:\\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])))",y9=new RegExp(`^${X0}$`);function W0(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 w9(e){return new RegExp(`^${W0(e)}$`)}function z9(e){const n=W0({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(`^${X0}T(?:${i})$`)}const j9=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},S9=/^-?\d+$/,T9=/^-?\d+(?:\.\d+)?$/,A9=/^(?:true|false)$/i,C9=/^[^A-Z]*$/,E9=/^[^a-z]*$/,Hn=W("$ZodCheck",(e,n)=>{var r;e._zod??(e._zod={}),e._zod.def=n,(r=e._zod).onattach??(r.onattach=[])}),Q0={number:"number",bigint:"bigint",object:"date"},ew=W("$ZodCheckLessThan",(e,n)=>{Hn.init(e,n);const r=Q0[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})}}),ow=W("$ZodCheckGreaterThan",(e,n)=>{Hn.init(e,n);const r=Q0[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})}}),L9=W("$ZodCheckMultipleOf",(e,n)=>{Hn.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):N$(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})}}),O9=W("$ZodCheckNumberFormat",(e,n)=>{Hn.init(e,n),n.format=n.format||"float64";const r=n.format?.includes("int"),i=r?"int":"number",[c,d]=I$[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=S9)}),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})}}),$9=W("$ZodCheckMaxLength",(e,n)=>{var r;Hn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const c=i.value;return!Um(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=Hm(c);i.issues.push({origin:u,code:"too_big",maximum:n.maximum,inclusive:!0,input:c,inst:e,continue:!n.abort})}}),N9=W("$ZodCheckMinLength",(e,n)=>{var r;Hn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const c=i.value;return!Um(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=Hm(c);i.issues.push({origin:u,code:"too_small",minimum:n.minimum,inclusive:!0,input:c,inst:e,continue:!n.abort})}}),B9=W("$ZodCheckLengthEquals",(e,n)=>{var r;Hn.init(e,n),(r=e._zod.def).when??(r.when=i=>{const c=i.value;return!Um(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=Hm(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})}}),bd=W("$ZodCheckStringFormat",(e,n)=>{var r,i;Hn.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=()=>{})}),R9=W("$ZodCheckRegex",(e,n)=>{bd.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})}}),D9=W("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=C9),bd.init(e,n)}),M9=W("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=E9),bd.init(e,n)}),I9=W("$ZodCheckIncludes",(e,n)=>{Hn.init(e,n);const r=dd(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})}}),U9=W("$ZodCheckStartsWith",(e,n)=>{Hn.init(e,n);const r=new RegExp(`^${dd(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})}}),F9=W("$ZodCheckEndsWith",(e,n)=>{Hn.init(e,n);const r=new RegExp(`.*${dd(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})}}),H9=W("$ZodCheckOverwrite",(e,n)=>{Hn.init(e,n),e._zod.check=r=>{r.value=n.tx(r.value)}});class K9{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
+ `).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 V9={major:4,minor:3,patch:6},Mo=W("$ZodType",(e,n)=>{var r;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=V9;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=yl(u),g;for(const v of m){if(v._zod.def.when){if(!v._zod.def.when(u))continue}else if(p)continue;const x=u.issues.length,z=v._zod.check(u);if(z instanceof Promise&&h?.async===!1)throw new jl;if(g||z instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await z,u.issues.length!==x&&(p||(p=yl(u,x)))});else{if(u.issues.length===x)continue;p||(p=yl(u,x))}}return g?g.then(()=>u):u},d=(u,m,h)=>{if(yl(u))return u.aborted=!0,u;const p=c(m,i,h);if(p instanceof Promise){if(h.async===!1)throw new jl;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 jl;return h.then(p=>c(p,i,m))}return c(h,i,m)}}ho(e,"~standard",()=>({validate:c=>{try{const d=Y$(e,c);return d.success?{value:d.data}:{issues:d.error?.issues}}catch{return J$(e,c).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}))}),qm=W("$ZodString",(e,n)=>{Mo.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??j9(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}}),Ao=W("$ZodStringFormat",(e,n)=>{bd.init(e,n),qm.init(e,n)}),q9=W("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=f9),Ao.init(e,n)}),Z9=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=nx(i))}else n.pattern??(n.pattern=nx());Ao.init(e,n)}),P9=W("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=b9),Ao.init(e,n)}),G9=W("$ZodURL",(e,n)=>{Ao.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})}}}),Y9=W("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=h9()),Ao.init(e,n)}),J9=W("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=d9),Ao.init(e,n)}),X9=W("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=a9),Ao.init(e,n)}),W9=W("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=l9),Ao.init(e,n)}),Q9=W("$ZodULID",(e,n)=>{n.pattern??(n.pattern=i9),Ao.init(e,n)}),eN=W("$ZodXID",(e,n)=>{n.pattern??(n.pattern=c9),Ao.init(e,n)}),oN=W("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=s9),Ao.init(e,n)}),nN=W("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=z9(n)),Ao.init(e,n)}),tN=W("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=y9),Ao.init(e,n)}),rN=W("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=w9(n)),Ao.init(e,n)}),aN=W("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=u9),Ao.init(e,n)}),lN=W("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=p9),Ao.init(e,n),e._zod.bag.format="ipv4"}),iN=W("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=k9),Ao.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})}}}),cN=W("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=v9),Ao.init(e,n)}),sN=W("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=g9),Ao.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 nw(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const dN=W("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=_9),Ao.init(e,n),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{nw(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!n.abort})}});function uN(e){if(!J0.test(e))return!1;const n=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=n.padEnd(Math.ceil(n.length/4)*4,"=");return nw(r)}const fN=W("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=J0),Ao.init(e,n),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{uN(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!n.abort})}}),bN=W("$ZodE164",(e,n)=>{n.pattern??(n.pattern=x9),Ao.init(e,n)});function mN(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 hN=W("$ZodJWT",(e,n)=>{Ao.init(e,n),e._zod.check=r=>{mN(r.value,n.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!n.abort})}}),tw=W("$ZodNumber",(e,n)=>{Mo.init(e,n),e._zod.pattern=e._zod.bag.pattern??T9,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}}),pN=W("$ZodNumberFormat",(e,n)=>{O9.init(e,n),tw.init(e,n)}),kN=W("$ZodBoolean",(e,n)=>{Mo.init(e,n),e._zod.pattern=A9,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}}),vN=W("$ZodUnknown",(e,n)=>{Mo.init(e,n),e._zod.parse=r=>r}),gN=W("$ZodNever",(e,n)=>{Mo.init(e,n),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),_N=W("$ZodDate",(e,n)=>{Mo.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 tx(e,n,r){e.issues.length&&n.issues.push(...Z0(r,e.issues)),n.value[r]=e.value}const xN=W("$ZodArray",(e,n)=>{Mo.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=>tx(p,r,u))):tx(h,r,u)}return d.length?Promise.all(d).then(()=>r):r}});function Xs(e,n,r,i,c){if(e.issues.length){if(c&&!(r in i))return;n.issues.push(...Z0(r,e.issues))}e.value===void 0?r in i&&(n.value[r]=void 0):n.value[r]=e.value}function rw(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=M$(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(r)}}function aw(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 x=h.run({value:n[v],issues:[]},i);x instanceof Promise?e.push(x.then(z=>Xs(z,r,v,n,g))):Xs(x,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 yN=W("$ZodObject",(e,n)=>{if(Mo.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=Im(()=>rw(n));ho(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=Js,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 x of u.keys){const z=v[x],N=z._zod.optout==="optional",S=z._zod.run({value:p[x],issues:[]},h);S instanceof Promise?g.push(S.then(O=>Xs(O,m,x,p,N))):Xs(S,m,x,p,N)}return d?aw(g,p,m,h,i.value,e):g.length?Promise.all(g).then(()=>m):m}}),wN=W("$ZodObjectJIT",(e,n)=>{yN.init(e,n);const r=e._zod.parse,i=Im(()=>rw(n)),c=x=>{const z=new K9(["shape","payload","ctx"]),N=i.value,S=w=>{const $=ox(w);return`shape[${$}]._zod.run({ value: input[${$}], issues: [] }, ctx)`};z.write("const input = payload.value;");const O=Object.create(null);let E=0;for(const w of N.keys)O[w]=`key_${E++}`;z.write("const newResult = {};");for(const w of N.keys){const $=O[w],D=ox(w),Z=x[w]?._zod?.optout==="optional";z.write(`const ${$} = ${S(w)};`),Z?z.write(`
25976
25976
  if (${$}.issues.length) {
25977
25977
  if (${D} in input) {
25978
25978
  payload.issues = payload.issues.concat(${$}.issues.map(iss => ({
@@ -26006,9 +26006,9 @@ sit amet.`,EO=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{children:a.jsxs("p",{chi
26006
26006
  newResult[${D}] = ${$}.value;
26007
26007
  }
26008
26008
 
26009
- `)}z.write("payload.value = newResult;"),z.write("return payload;");const x=z.compile();return(w,$)=>x(_,w,$)};let d;const u=Gs,m=!F0.jitless,p=m&&D$.value,g=n.catchall;let v;e._zod.parse=(_,z)=>{v??(v=i.value);const N=_.value;return u(N)?m&&p&&z?.async===!1&&z.jitless!==!0?(d||(d=s(n.shape)),_=d(_,z),g?aw([],N,_,z,v,e):_):r(_,z):(_.issues.push({expected:"object",code:"invalid_type",input:N,inst:e}),_)}});function tx(e,n,r,i){for(const d of e)if(d.issues.length===0)return n.value=d.value,n;const s=e.filter(d=>!yl(d));return s.length===1?(n.value=s[0].value,s[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(d=>d.issues.map(u=>wa(u,i,ya())))}),n)}const jN=X("$ZodUnion",(e,n)=>{Mo.init(e,n),ho(e._zod,"optin",()=>n.options.some(s=>s._zod.optin==="optional")?"optional":void 0),ho(e._zod,"optout",()=>n.options.some(s=>s._zod.optout==="optional")?"optional":void 0),ho(e._zod,"values",()=>{if(n.options.every(s=>s._zod.values))return new Set(n.options.flatMap(s=>Array.from(s._zod.values)))}),ho(e._zod,"pattern",()=>{if(n.options.every(s=>s._zod.pattern)){const s=n.options.map(d=>d._zod.pattern);return new RegExp(`^(${s.map(d=>Um(d.source)).join("|")})$`)}});const r=n.options.length===1,i=n.options[0]._zod.run;e._zod.parse=(s,d)=>{if(r)return i(s,d);let u=!1;const m=[];for(const h of n.options){const p=h._zod.run({value:s.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=>tx(h,s,e,d)):tx(m,s,e,d)}}),SN=X("$ZodIntersection",(e,n)=>{Mo.init(e,n),e._zod.parse=(r,i)=>{const s=r.value,d=n.left._zod.run({value:s,issues:[]},i),u=n.right._zod.run({value:s,issues:[]},i);return d instanceof Promise||u instanceof Promise?Promise.all([d,u]).then(([h,p])=>rx(r,h,p)):rx(r,d,u)}});function Gb(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(Gi(e)&&Gi(n)){const r=Object.keys(n),i=Object.keys(e).filter(d=>r.indexOf(d)!==-1),s={...e,...n};for(const d of i){const u=Gb(e[d],n[d]);if(!u.valid)return{valid:!1,mergeErrorPath:[d,...u.mergeErrorPath]};s[d]=u.data}return{valid:!0,data:s}}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 s=e[i],d=n[i],u=Gb(s,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 rx(e,n,r){const i=new Map;let s;for(const m of n.issues)if(m.code==="unrecognized_keys"){s??(s=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&&s&&e.issues.push({...s,keys:d}),yl(e))return e;const u=Gb(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 TN=X("$ZodEnum",(e,n)=>{Mo.init(e,n);const r=K0(n.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(s=>M$.has(typeof s)).map(s=>typeof s=="string"?sd(s):s.toString()).join("|")})$`),e._zod.parse=(s,d)=>{const u=s.value;return i.has(u)||s.issues.push({code:"invalid_value",values:r,input:u,inst:e}),s}}),AN=X("$ZodTransform",(e,n)=>{Mo.init(e,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new H0(e.constructor.name);const s=n.transform(r.value,r);if(i.async)return(s instanceof Promise?s:Promise.resolve(s)).then(u=>(r.value=u,r));if(s instanceof Promise)throw new jl;return r.value=s,r}});function ax(e,n){return e.issues.length&&n===void 0?{issues:[],value:void 0}:e}const lw=X("$ZodOptional",(e,n)=>{Mo.init(e,n),e._zod.optin="optional",e._zod.optout="optional",ho(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),ho(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${Um(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(n.innerType._zod.optin==="optional"){const s=n.innerType._zod.run(r,i);return s instanceof Promise?s.then(d=>ax(d,r.value)):ax(s,r.value)}return r.value===void 0?r:n.innerType._zod.run(r,i)}}),CN=X("$ZodExactOptional",(e,n)=>{lw.init(e,n),ho(e._zod,"values",()=>n.innerType._zod.values),ho(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(r,i)=>n.innerType._zod.run(r,i)}),EN=X("$ZodNullable",(e,n)=>{Mo.init(e,n),ho(e._zod,"optin",()=>n.innerType._zod.optin),ho(e._zod,"optout",()=>n.innerType._zod.optout),ho(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${Um(r.source)}|null)$`):void 0}),ho(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)}),LN=X("$ZodDefault",(e,n)=>{Mo.init(e,n),e._zod.optin="optional",ho(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 s=n.innerType._zod.run(r,i);return s instanceof Promise?s.then(d=>lx(d,n)):lx(s,n)}});function lx(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const ON=X("$ZodPrefault",(e,n)=>{Mo.init(e,n),e._zod.optin="optional",ho(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))}),$N=X("$ZodNonOptional",(e,n)=>{Mo.init(e,n),ho(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 s=n.innerType._zod.run(r,i);return s instanceof Promise?s.then(d=>ix(d,e)):ix(s,e)}});function ix(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 NN=X("$ZodCatch",(e,n)=>{Mo.init(e,n),ho(e._zod,"optin",()=>n.innerType._zod.optin),ho(e._zod,"optout",()=>n.innerType._zod.optout),ho(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);const s=n.innerType._zod.run(r,i);return s instanceof Promise?s.then(d=>(r.value=d.value,d.issues.length&&(r.value=n.catchValue({...r,error:{issues:d.issues.map(u=>wa(u,i,ya()))},input:r.value}),r.issues=[]),r)):(r.value=s.value,s.issues.length&&(r.value=n.catchValue({...r,error:{issues:s.issues.map(d=>wa(d,i,ya()))},input:r.value}),r.issues=[]),r)}}),BN=X("$ZodPipe",(e,n)=>{Mo.init(e,n),ho(e._zod,"values",()=>n.in._zod.values),ho(e._zod,"optin",()=>n.in._zod.optin),ho(e._zod,"optout",()=>n.out._zod.optout),ho(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=>ws(u,n.in,i)):ws(d,n.in,i)}const s=n.in._zod.run(r,i);return s instanceof Promise?s.then(d=>ws(d,n.out,i)):ws(s,n.out,i)}});function ws(e,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues},r)}const RN=X("$ZodReadonly",(e,n)=>{Mo.init(e,n),ho(e._zod,"propValues",()=>n.innerType._zod.propValues),ho(e._zod,"values",()=>n.innerType._zod.values),ho(e._zod,"optin",()=>n.innerType?._zod?.optin),ho(e._zod,"optout",()=>n.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);const s=n.innerType._zod.run(r,i);return s instanceof Promise?s.then(cx):cx(s)}});function cx(e){return e.value=Object.freeze(e.value),e}const DN=X("$ZodCustom",(e,n)=>{Fn.init(e,n),Mo.init(e,n),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,s=n.fn(i);if(s instanceof Promise)return s.then(d=>sx(d,r,i,e));sx(s,r,i,e)}});function sx(e,n,r,i){if(!e){const s={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(s.params=i._zod.def.params),n.issues.push(Yi(s))}}var dx;class MN{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 s={...i,...this._map.get(n)};return Object.keys(s).length?s:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function IN(){return new MN}(dx=globalThis).__zod_globalRegistry??(dx.__zod_globalRegistry=IN());const Ri=globalThis.__zod_globalRegistry;function UN(e,n){return new e({type:"string",...je(n)})}function HN(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...je(n)})}function ux(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...je(n)})}function FN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...je(n)})}function KN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...je(n)})}function VN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...je(n)})}function qN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...je(n)})}function ZN(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...je(n)})}function PN(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...je(n)})}function GN(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...je(n)})}function YN(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...je(n)})}function JN(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...je(n)})}function XN(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...je(n)})}function WN(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...je(n)})}function QN(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...je(n)})}function e7(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...je(n)})}function o7(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...je(n)})}function n7(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...je(n)})}function t7(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...je(n)})}function r7(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...je(n)})}function a7(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...je(n)})}function l7(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...je(n)})}function i7(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...je(n)})}function c7(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...je(n)})}function s7(e,n){return new e({type:"string",format:"date",check:"string_format",...je(n)})}function d7(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...je(n)})}function u7(e,n){return new e({type:"string",format:"duration",check:"string_format",...je(n)})}function f7(e,n){return new e({type:"number",checks:[],...je(n)})}function b7(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...je(n)})}function m7(e,n){return new e({type:"boolean",...je(n)})}function h7(e){return new e({type:"unknown"})}function p7(e,n){return new e({type:"never",...je(n)})}function k7(e,n){return new e({type:"date",...je(n)})}function fx(e,n){return new ew({check:"less_than",...je(n),value:e,inclusive:!1})}function Ns(e,n){return new ew({check:"less_than",...je(n),value:e,inclusive:!0})}function bx(e,n){return new ow({check:"greater_than",...je(n),value:e,inclusive:!1})}function Bs(e,n){return new ow({check:"greater_than",...je(n),value:e,inclusive:!0})}function mx(e,n){return new O9({check:"multiple_of",...je(n),value:e})}function iw(e,n){return new N9({check:"max_length",...je(n),maximum:e})}function Js(e,n){return new B9({check:"min_length",...je(n),minimum:e})}function cw(e,n){return new R9({check:"length_equals",...je(n),length:e})}function v7(e,n){return new D9({check:"string_format",format:"regex",...je(n),pattern:e})}function g7(e){return new M9({check:"string_format",format:"lowercase",...je(e)})}function _7(e){return new I9({check:"string_format",format:"uppercase",...je(e)})}function x7(e,n){return new U9({check:"string_format",format:"includes",...je(n),includes:e})}function y7(e,n){return new H9({check:"string_format",format:"starts_with",...je(n),prefix:e})}function w7(e,n){return new F9({check:"string_format",format:"ends_with",...je(n),suffix:e})}function El(e){return new K9({check:"overwrite",tx:e})}function z7(e){return El(n=>n.normalize(e))}function j7(){return El(e=>e.trim())}function S7(){return El(e=>e.toLowerCase())}function T7(){return El(e=>e.toUpperCase())}function A7(){return El(e=>R$(e))}function C7(e,n,r){return new e({type:"array",element:n,...je(r)})}function E7(e,n,r){return new e({type:"custom",check:"custom",fn:n,...je(r)})}function L7(e){const n=O7(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(Yi(i,r.value,n._zod.def));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=n),s.continue??(s.continue=!n._zod.def.abort),r.issues.push(Yi(s))}},e(r.value,r)));return n}function O7(e,n){const r=new Fn({check:"custom",...je(n)});return r._zod.check=e,r}function sw(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??Ri,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 pn(e,n,r={path:[],schemaPath:[]}){var i;const s=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[s.type];if(!z)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);z(e,n,_,g)}const v=e._zod.parent;v&&(u.ref||(u.ref=v),pn(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"&&jn(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 dw(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 s=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??(N=>N);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}=s(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 _=z.compile();return(w,$)=>_(x,w,$)};let d;const u=Js,m=!H0.jitless,p=m&&R$.value,g=n.catchall;let v;e._zod.parse=(x,z)=>{v??(v=i.value);const N=x.value;return u(N)?m&&p&&z?.async===!1&&z.jitless!==!0?(d||(d=c(n.shape)),x=d(x,z),g?aw([],N,x,z,v,e):x):r(x,z):(x.issues.push({expected:"object",code:"invalid_type",input:N,inst:e}),x)}});function rx(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=>!yl(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=>wa(u,i,ya())))}),n)}const zN=W("$ZodUnion",(e,n)=>{Mo.init(e,n),ho(e._zod,"optin",()=>n.options.some(c=>c._zod.optin==="optional")?"optional":void 0),ho(e._zod,"optout",()=>n.options.some(c=>c._zod.optout==="optional")?"optional":void 0),ho(e._zod,"values",()=>{if(n.options.every(c=>c._zod.values))return new Set(n.options.flatMap(c=>Array.from(c._zod.values)))}),ho(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=>Fm(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=>rx(h,c,e,d)):rx(m,c,e,d)}}),jN=W("$ZodIntersection",(e,n)=>{Mo.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])=>ax(r,h,p)):ax(r,d,u)}});function Yb(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(Ji(e)&&Ji(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=Yb(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=Yb(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 ax(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}),yl(e))return e;const u=Yb(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 SN=W("$ZodEnum",(e,n)=>{Mo.init(e,n);const r=K0(n.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(c=>D$.has(typeof c)).map(c=>typeof c=="string"?dd(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}}),TN=W("$ZodTransform",(e,n)=>{Mo.init(e,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new F0(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 jl;return r.value=c,r}});function lx(e,n){return e.issues.length&&n===void 0?{issues:[],value:void 0}:e}const lw=W("$ZodOptional",(e,n)=>{Mo.init(e,n),e._zod.optin="optional",e._zod.optout="optional",ho(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),ho(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${Fm(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=>lx(d,r.value)):lx(c,r.value)}return r.value===void 0?r:n.innerType._zod.run(r,i)}}),AN=W("$ZodExactOptional",(e,n)=>{lw.init(e,n),ho(e._zod,"values",()=>n.innerType._zod.values),ho(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(r,i)=>n.innerType._zod.run(r,i)}),CN=W("$ZodNullable",(e,n)=>{Mo.init(e,n),ho(e._zod,"optin",()=>n.innerType._zod.optin),ho(e._zod,"optout",()=>n.innerType._zod.optout),ho(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${Fm(r.source)}|null)$`):void 0}),ho(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)}),EN=W("$ZodDefault",(e,n)=>{Mo.init(e,n),e._zod.optin="optional",ho(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=>ix(d,n)):ix(c,n)}});function ix(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const LN=W("$ZodPrefault",(e,n)=>{Mo.init(e,n),e._zod.optin="optional",ho(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))}),ON=W("$ZodNonOptional",(e,n)=>{Mo.init(e,n),ho(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=>cx(d,e)):cx(c,e)}});function cx(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 $N=W("$ZodCatch",(e,n)=>{Mo.init(e,n),ho(e._zod,"optin",()=>n.innerType._zod.optin),ho(e._zod,"optout",()=>n.innerType._zod.optout),ho(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=>wa(u,i,ya()))},input:r.value}),r.issues=[]),r)):(r.value=c.value,c.issues.length&&(r.value=n.catchValue({...r,error:{issues:c.issues.map(d=>wa(d,i,ya()))},input:r.value}),r.issues=[]),r)}}),NN=W("$ZodPipe",(e,n)=>{Mo.init(e,n),ho(e._zod,"values",()=>n.in._zod.values),ho(e._zod,"optin",()=>n.in._zod.optin),ho(e._zod,"optout",()=>n.out._zod.optout),ho(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 BN=W("$ZodReadonly",(e,n)=>{Mo.init(e,n),ho(e._zod,"propValues",()=>n.innerType._zod.propValues),ho(e._zod,"values",()=>n.innerType._zod.values),ho(e._zod,"optin",()=>n.innerType?._zod?.optin),ho(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(sx):sx(c)}});function sx(e){return e.value=Object.freeze(e.value),e}const RN=W("$ZodCustom",(e,n)=>{Hn.init(e,n),Mo.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=>dx(d,r,i,e));dx(c,r,i,e)}});function dx(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(Xi(c))}}var ux;class DN{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 MN(){return new DN}(ux=globalThis).__zod_globalRegistry??(ux.__zod_globalRegistry=MN());const Di=globalThis.__zod_globalRegistry;function IN(e,n){return new e({type:"string",...je(n)})}function UN(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...je(n)})}function fx(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...je(n)})}function FN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...je(n)})}function HN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...je(n)})}function KN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...je(n)})}function VN(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...je(n)})}function qN(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...je(n)})}function ZN(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...je(n)})}function PN(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...je(n)})}function GN(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...je(n)})}function YN(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...je(n)})}function JN(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...je(n)})}function XN(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...je(n)})}function WN(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...je(n)})}function QN(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...je(n)})}function e7(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...je(n)})}function o7(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...je(n)})}function n7(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...je(n)})}function t7(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...je(n)})}function r7(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...je(n)})}function a7(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...je(n)})}function l7(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...je(n)})}function i7(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...je(n)})}function c7(e,n){return new e({type:"string",format:"date",check:"string_format",...je(n)})}function s7(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...je(n)})}function d7(e,n){return new e({type:"string",format:"duration",check:"string_format",...je(n)})}function u7(e,n){return new e({type:"number",checks:[],...je(n)})}function f7(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...je(n)})}function b7(e,n){return new e({type:"boolean",...je(n)})}function m7(e){return new e({type:"unknown"})}function h7(e,n){return new e({type:"never",...je(n)})}function p7(e,n){return new e({type:"date",...je(n)})}function bx(e,n){return new ew({check:"less_than",...je(n),value:e,inclusive:!1})}function Rs(e,n){return new ew({check:"less_than",...je(n),value:e,inclusive:!0})}function mx(e,n){return new ow({check:"greater_than",...je(n),value:e,inclusive:!1})}function Ds(e,n){return new ow({check:"greater_than",...je(n),value:e,inclusive:!0})}function hx(e,n){return new L9({check:"multiple_of",...je(n),value:e})}function iw(e,n){return new $9({check:"max_length",...je(n),maximum:e})}function Ws(e,n){return new N9({check:"min_length",...je(n),minimum:e})}function cw(e,n){return new B9({check:"length_equals",...je(n),length:e})}function k7(e,n){return new R9({check:"string_format",format:"regex",...je(n),pattern:e})}function v7(e){return new D9({check:"string_format",format:"lowercase",...je(e)})}function g7(e){return new M9({check:"string_format",format:"uppercase",...je(e)})}function _7(e,n){return new I9({check:"string_format",format:"includes",...je(n),includes:e})}function x7(e,n){return new U9({check:"string_format",format:"starts_with",...je(n),prefix:e})}function y7(e,n){return new F9({check:"string_format",format:"ends_with",...je(n),suffix:e})}function Ll(e){return new H9({check:"overwrite",tx:e})}function w7(e){return Ll(n=>n.normalize(e))}function z7(){return Ll(e=>e.trim())}function j7(){return Ll(e=>e.toLowerCase())}function S7(){return Ll(e=>e.toUpperCase())}function T7(){return Ll(e=>B$(e))}function A7(e,n,r){return new e({type:"array",element:n,...je(r)})}function C7(e,n,r){return new e({type:"custom",check:"custom",fn:n,...je(r)})}function E7(e){const n=L7(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(Xi(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(Xi(c))}},e(r.value,r)));return n}function L7(e,n){const r=new Hn({check:"custom",...je(n)});return r._zod.check=e,r}function sw(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??Di,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 kn(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 x=u.schema,z=n.processors[c.type];if(!z)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${c.type}`);z(e,n,x,g)}const v=e._zod.parent;v&&(u.ref||(u.ref=v),kn(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"&&Sn(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 dw(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,x=e.external.uri??(N=>N);if(v)return{ref:x(v)};const z=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=z,{defId:z,ref:`${x("__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 uw(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 S in h)S==="$ref"||S==="allOf"||S in p||delete h[S];if(z.$ref&&_.def)for(const S in h)S==="$ref"||S==="allOf"||S in _.def&&JSON.stringify(h[S])===JSON.stringify(_.def[S])&&delete h[S]}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 s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$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");s.$id=e.external.uri(u)}Object.assign(s,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"?s.$defs=d:s.definitions=d);try{const u=JSON.parse(JSON.stringify(s));return Object.defineProperty(u,"~standard",{value:{...n["~standard"],jsonSchema:{input:Xs(n,"input",e.processors),output:Xs(n,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function jn(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 jn(i.element,r);if(i.type==="set")return jn(i.valueType,r);if(i.type==="lazy")return jn(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 jn(i.innerType,r);if(i.type==="intersection")return jn(i.left,r)||jn(i.right,r);if(i.type==="record"||i.type==="map")return jn(i.keyType,r)||jn(i.valueType,r);if(i.type==="pipe")return jn(i.in,r)||jn(i.out,r);if(i.type==="object"){for(const s in i.shape)if(jn(i.shape[s],r))return!0;return!1}if(i.type==="union"){for(const s of i.options)if(jn(s,r))return!0;return!1}if(i.type==="tuple"){for(const s of i.items)if(jn(s,r))return!0;return!!(i.rest&&jn(i.rest,r))}return!1}const $7=(e,n={})=>r=>{const i=sw({...r,processors:n});return pn(e,i),dw(i,e),uw(i,e)},Xs=(e,n,r={})=>i=>{const{libraryOptions:s,target:d}=i??{},u=sw({...s??{},target:d,io:n,processors:r});return pn(e,u),dw(u,e),uw(u,e)},N7={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},B7=(e,n,r,i)=>{const s=r;s.type="string";const{minimum:d,maximum:u,format:m,patterns:h,contentEncoding:p}=e._zod.bag;if(typeof d=="number"&&(s.minLength=d),typeof u=="number"&&(s.maxLength=u),m&&(s.format=N7[m]??m,s.format===""&&delete s.format,m==="time"&&delete s.format),p&&(s.contentEncoding=p),h&&h.size>0){const g=[...h];g.length===1?s.pattern=g[0].source:g.length>1&&(s.allOf=[...g.map(v=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:v.source}))])}},R7=(e,n,r,i)=>{const s=r,{minimum:d,maximum:u,format:m,multipleOf:h,exclusiveMaximum:p,exclusiveMinimum:g}=e._zod.bag;typeof m=="string"&&m.includes("int")?s.type="integer":s.type="number",typeof g=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(s.minimum=g,s.exclusiveMinimum=!0):s.exclusiveMinimum=g),typeof d=="number"&&(s.minimum=d,typeof g=="number"&&n.target!=="draft-04"&&(g>=d?delete s.minimum:delete s.exclusiveMinimum)),typeof p=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(s.maximum=p,s.exclusiveMaximum=!0):s.exclusiveMaximum=p),typeof u=="number"&&(s.maximum=u,typeof p=="number"&&n.target!=="draft-04"&&(p<=u?delete s.maximum:delete s.exclusiveMaximum)),typeof h=="number"&&(s.multipleOf=h)},D7=(e,n,r,i)=>{r.type="boolean"},M7=(e,n,r,i)=>{r.not={}},I7=(e,n,r,i)=>{},U7=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},H7=(e,n,r,i)=>{const s=e._zod.def,d=K0(s.entries);d.every(u=>typeof u=="number")&&(r.type="number"),d.every(u=>typeof u=="string")&&(r.type="string"),r.enum=d},F7=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},K7=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},V7=(e,n,r,i)=>{const s=r,d=e._zod.def,{minimum:u,maximum:m}=e._zod.bag;typeof u=="number"&&(s.minItems=u),typeof m=="number"&&(s.maxItems=m),s.type="array",s.items=pn(d.element,n,{...i,path:[...i.path,"items"]})},q7=(e,n,r,i)=>{const s=r,d=e._zod.def;s.type="object",s.properties={};const u=d.shape;for(const p in u)s.properties[p]=pn(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&&(s.required=Array.from(h)),d.catchall?._zod.def.type==="never"?s.additionalProperties=!1:d.catchall?d.catchall&&(s.additionalProperties=pn(d.catchall,n,{...i,path:[...i.path,"additionalProperties"]})):n.io==="output"&&(s.additionalProperties=!1)},Z7=(e,n,r,i)=>{const s=e._zod.def,d=s.inclusive===!1,u=s.options.map((m,h)=>pn(m,n,{...i,path:[...i.path,d?"oneOf":"anyOf",h]}));d?r.oneOf=u:r.anyOf=u},P7=(e,n,r,i)=>{const s=e._zod.def,d=pn(s.left,n,{...i,path:[...i.path,"allOf",0]}),u=pn(s.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},G7=(e,n,r,i)=>{const s=e._zod.def,d=pn(s.innerType,n,i),u=n.seen.get(e);n.target==="openapi-3.0"?(u.ref=s.innerType,r.nullable=!0):r.anyOf=[d,{type:"null"}]},Y7=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType},J7=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType,r.default=JSON.parse(JSON.stringify(s.defaultValue))},X7=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType,n.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},W7=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType;let u;try{u=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=u},Q7=(e,n,r,i)=>{const s=e._zod.def,d=n.io==="input"?s.in._zod.def.type==="transform"?s.out:s.in:s.out;pn(d,n,i);const u=n.seen.get(e);u.ref=d},eB=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType,r.readOnly=!0},fw=(e,n,r,i)=>{const s=e._zod.def;pn(s.innerType,n,i);const d=n.seen.get(e);d.ref=s.innerType},oB=X("ZodISODateTime",(e,n)=>{tN.init(e,n),$o.init(e,n)});function nB(e){return c7(oB,e)}const tB=X("ZodISODate",(e,n)=>{rN.init(e,n),$o.init(e,n)});function rB(e){return s7(tB,e)}const aB=X("ZodISOTime",(e,n)=>{aN.init(e,n),$o.init(e,n)});function lB(e){return d7(aB,e)}const iB=X("ZodISODuration",(e,n)=>{lN.init(e,n),$o.init(e,n)});function cB(e){return u7(iB,e)}const sB=(e,n)=>{G0.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Y$(e,r)},flatten:{value:r=>G$(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Pb,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Pb,2)}},isEmpty:{get(){return e.issues.length===0}}})},kt=X("ZodError",sB,{Parent:Error}),dB=Fm(kt),uB=Km(kt),fB=dd(kt),bB=ud(kt),mB=W$(kt),hB=Q$(kt),pB=e9(kt),kB=o9(kt),vB=n9(kt),gB=t9(kt),_B=r9(kt),xB=a9(kt),Io=X("ZodType",(e,n)=>(Mo.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:Xs(e,"input"),output:Xs(e,"output")}}),e.toJSONSchema=$7(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.check=(...r)=>e.clone(qr(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)=>Zr(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>dB(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>fB(e,r,i),e.parseAsync=async(r,i)=>uB(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>bB(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>mB(e,r,i),e.decode=(r,i)=>hB(e,r,i),e.encodeAsync=async(r,i)=>pB(e,r,i),e.decodeAsync=async(r,i)=>kB(e,r,i),e.safeEncode=(r,i)=>vB(e,r,i),e.safeDecode=(r,i)=>gB(e,r,i),e.safeEncodeAsync=async(r,i)=>_B(e,r,i),e.safeDecodeAsync=async(r,i)=>xB(e,r,i),e.refine=(r,i)=>e.check(vR(r,i)),e.superRefine=r=>e.check(gR(r)),e.overwrite=r=>e.check(El(r)),e.optional=()=>gx(e),e.exactOptional=()=>aR(e),e.nullable=()=>_x(e),e.nullish=()=>gx(_x(e)),e.nonoptional=r=>uR(e,r),e.array=()=>YB(e),e.or=r=>QB([e,r]),e.and=r=>oR(e,r),e.transform=r=>Jb(e,hw(r)),e.default=r=>cR(e,r),e.prefault=r=>dR(e,r),e.catch=r=>bR(e,r),e.pipe=r=>Jb(e,r),e.readonly=()=>pR(e),e.describe=r=>{const i=e.clone();return Ri.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return Ri.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Ri.get(e);const i=e.clone();return Ri.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),bw=X("_ZodString",(e,n)=>{Vm.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,s,d)=>B7(e,i,s);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(v7(...i)),e.includes=(...i)=>e.check(x7(...i)),e.startsWith=(...i)=>e.check(y7(...i)),e.endsWith=(...i)=>e.check(w7(...i)),e.min=(...i)=>e.check(Js(...i)),e.max=(...i)=>e.check(iw(...i)),e.length=(...i)=>e.check(cw(...i)),e.nonempty=(...i)=>e.check(Js(1,...i)),e.lowercase=i=>e.check(g7(i)),e.uppercase=i=>e.check(_7(i)),e.trim=()=>e.check(j7()),e.normalize=(...i)=>e.check(z7(...i)),e.toLowerCase=()=>e.check(S7()),e.toUpperCase=()=>e.check(T7()),e.slugify=()=>e.check(A7())}),yB=X("ZodString",(e,n)=>{Vm.init(e,n),bw.init(e,n),e.email=r=>e.check(HN(wB,r)),e.url=r=>e.check(ZN(zB,r)),e.jwt=r=>e.check(i7(IB,r)),e.emoji=r=>e.check(PN(jB,r)),e.guid=r=>e.check(ux(hx,r)),e.uuid=r=>e.check(FN(zs,r)),e.uuidv4=r=>e.check(KN(zs,r)),e.uuidv6=r=>e.check(VN(zs,r)),e.uuidv7=r=>e.check(qN(zs,r)),e.nanoid=r=>e.check(GN(SB,r)),e.guid=r=>e.check(ux(hx,r)),e.cuid=r=>e.check(YN(TB,r)),e.cuid2=r=>e.check(JN(AB,r)),e.ulid=r=>e.check(XN(CB,r)),e.base64=r=>e.check(r7(RB,r)),e.base64url=r=>e.check(a7(DB,r)),e.xid=r=>e.check(WN(EB,r)),e.ksuid=r=>e.check(QN(LB,r)),e.ipv4=r=>e.check(e7(OB,r)),e.ipv6=r=>e.check(o7($B,r)),e.cidrv4=r=>e.check(n7(NB,r)),e.cidrv6=r=>e.check(t7(BB,r)),e.e164=r=>e.check(l7(MB,r)),e.datetime=r=>e.check(nB(r)),e.date=r=>e.check(rB(r)),e.time=r=>e.check(lB(r)),e.duration=r=>e.check(cB(r))});function or(e){return UN(yB,e)}const $o=X("ZodStringFormat",(e,n)=>{Ao.init(e,n),bw.init(e,n)}),wB=X("ZodEmail",(e,n)=>{G9.init(e,n),$o.init(e,n)}),hx=X("ZodGUID",(e,n)=>{Z9.init(e,n),$o.init(e,n)}),zs=X("ZodUUID",(e,n)=>{P9.init(e,n),$o.init(e,n)}),zB=X("ZodURL",(e,n)=>{Y9.init(e,n),$o.init(e,n)}),jB=X("ZodEmoji",(e,n)=>{J9.init(e,n),$o.init(e,n)}),SB=X("ZodNanoID",(e,n)=>{X9.init(e,n),$o.init(e,n)}),TB=X("ZodCUID",(e,n)=>{W9.init(e,n),$o.init(e,n)}),AB=X("ZodCUID2",(e,n)=>{Q9.init(e,n),$o.init(e,n)}),CB=X("ZodULID",(e,n)=>{eN.init(e,n),$o.init(e,n)}),EB=X("ZodXID",(e,n)=>{oN.init(e,n),$o.init(e,n)}),LB=X("ZodKSUID",(e,n)=>{nN.init(e,n),$o.init(e,n)}),OB=X("ZodIPv4",(e,n)=>{iN.init(e,n),$o.init(e,n)}),$B=X("ZodIPv6",(e,n)=>{cN.init(e,n),$o.init(e,n)}),NB=X("ZodCIDRv4",(e,n)=>{sN.init(e,n),$o.init(e,n)}),BB=X("ZodCIDRv6",(e,n)=>{dN.init(e,n),$o.init(e,n)}),RB=X("ZodBase64",(e,n)=>{uN.init(e,n),$o.init(e,n)}),DB=X("ZodBase64URL",(e,n)=>{bN.init(e,n),$o.init(e,n)}),MB=X("ZodE164",(e,n)=>{mN.init(e,n),$o.init(e,n)}),IB=X("ZodJWT",(e,n)=>{pN.init(e,n),$o.init(e,n)}),mw=X("ZodNumber",(e,n)=>{tw.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,s,d)=>R7(e,i,s),e.gt=(i,s)=>e.check(bx(i,s)),e.gte=(i,s)=>e.check(Bs(i,s)),e.min=(i,s)=>e.check(Bs(i,s)),e.lt=(i,s)=>e.check(fx(i,s)),e.lte=(i,s)=>e.check(Ns(i,s)),e.max=(i,s)=>e.check(Ns(i,s)),e.int=i=>e.check(kx(i)),e.safe=i=>e.check(kx(i)),e.positive=i=>e.check(bx(0,i)),e.nonnegative=i=>e.check(Bs(0,i)),e.negative=i=>e.check(fx(0,i)),e.nonpositive=i=>e.check(Ns(0,i)),e.multipleOf=(i,s)=>e.check(mx(i,s)),e.step=(i,s)=>e.check(mx(i,s)),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 px(e){return f7(mw,e)}const UB=X("ZodNumberFormat",(e,n)=>{kN.init(e,n),mw.init(e,n)});function kx(e){return b7(UB,e)}const HB=X("ZodBoolean",(e,n)=>{vN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>D7(e,r,i)});function FB(e){return m7(HB,e)}const KB=X("ZodUnknown",(e,n)=>{gN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>I7()});function vx(){return h7(KB)}const VB=X("ZodNever",(e,n)=>{_N.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>M7(e,r,i)});function qB(e){return p7(VB,e)}const ZB=X("ZodDate",(e,n)=>{xN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,s,d)=>U7(e,i),e.min=(i,s)=>e.check(Bs(i,s)),e.max=(i,s)=>e.check(Ns(i,s));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function PB(e){return k7(ZB,e)}const GB=X("ZodArray",(e,n)=>{yN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>V7(e,r,i,s),e.element=n.element,e.min=(r,i)=>e.check(Js(r,i)),e.nonempty=r=>e.check(Js(1,r)),e.max=(r,i)=>e.check(iw(r,i)),e.length=(r,i)=>e.check(cw(r,i)),e.unwrap=()=>e.element});function YB(e,n){return C7(GB,e,n)}const JB=X("ZodObject",(e,n)=>{zN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>q7(e,r,i,s),ho(e,"shape",()=>n.shape),e.keyof=()=>nR(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:vx()}),e.loose=()=>e.clone({...e._zod.def,catchall:vx()}),e.strict=()=>e.clone({...e._zod.def,catchall:qB()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>K$(e,r),e.safeExtend=r=>V$(e,r),e.merge=r=>q$(e,r),e.pick=r=>H$(e,r),e.omit=r=>F$(e,r),e.partial=(...r)=>Z$(pw,e,r[0]),e.required=(...r)=>P$(kw,e,r[0])});function XB(e,n){const r={type:"object",shape:e??{},...je(n)};return new JB(r)}const WB=X("ZodUnion",(e,n)=>{jN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>Z7(e,r,i,s),e.options=n.options});function QB(e,n){return new WB({type:"union",options:e,...je(n)})}const eR=X("ZodIntersection",(e,n)=>{SN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>P7(e,r,i,s)});function oR(e,n){return new eR({type:"intersection",left:e,right:n})}const Yb=X("ZodEnum",(e,n)=>{TN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,s,d)=>H7(e,i,s),e.enum=n.entries,e.options=Object.values(n.entries);const r=new Set(Object.keys(n.entries));e.extract=(i,s)=>{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 Yb({...n,checks:[],...je(s),entries:d})},e.exclude=(i,s)=>{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 Yb({...n,checks:[],...je(s),entries:d})}});function nR(e,n){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Yb({type:"enum",entries:r,...je(n)})}const tR=X("ZodTransform",(e,n)=>{AN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>K7(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new H0(e.constructor.name);r.addIssue=d=>{if(typeof d=="string")r.issues.push(Yi(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(Yi(u))}};const s=n.transform(r.value,r);return s instanceof Promise?s.then(d=>(r.value=d,r)):(r.value=s,r)}});function hw(e){return new tR({type:"transform",transform:e})}const pw=X("ZodOptional",(e,n)=>{lw.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>fw(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function gx(e){return new pw({type:"optional",innerType:e})}const rR=X("ZodExactOptional",(e,n)=>{CN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>fw(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function aR(e){return new rR({type:"optional",innerType:e})}const lR=X("ZodNullable",(e,n)=>{EN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>G7(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function _x(e){return new lR({type:"nullable",innerType:e})}const iR=X("ZodDefault",(e,n)=>{LN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>J7(e,r,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function cR(e,n){return new iR({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():q0(n)}})}const sR=X("ZodPrefault",(e,n)=>{ON.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>X7(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function dR(e,n){return new sR({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():q0(n)}})}const kw=X("ZodNonOptional",(e,n)=>{$N.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>Y7(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function uR(e,n){return new kw({type:"nonoptional",innerType:e,...je(n)})}const fR=X("ZodCatch",(e,n)=>{NN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>W7(e,r,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bR(e,n){return new fR({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const mR=X("ZodPipe",(e,n)=>{BN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>Q7(e,r,i,s),e.in=n.in,e.out=n.out});function Jb(e,n){return new mR({type:"pipe",in:e,out:n})}const hR=X("ZodReadonly",(e,n)=>{RN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>eB(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function pR(e){return new hR({type:"readonly",innerType:e})}const kR=X("ZodCustom",(e,n)=>{DN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,s)=>F7(e,r)});function vR(e,n={}){return E7(kR,e,n)}function gR(e){return L7(e)}function _R(e,n){return Jb(hw(e),n)}const xR=XB({date:_R(e=>typeof e=="string"||e instanceof Date?new Date(e):void 0,PB({message:"Date is required"}).refine(e=>!isNaN(e.getTime()),{message:"Invalid date"})),text:or({message:"Please enter text."}).min(10,"Text must be at least 10 characters long."),email:or({message:"Please enter your email."}).min(1,"Please enter your email.").email("Invalid email address."),password:or({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:px({message:"Please select a range."}).min(30,"Minimum value is 30."),number:px({message:"Please enter a number."}).min(1,"Minimum is 1.").max(10,"Maximum is 10."),checkbox:FB().refine(e=>e===!0,{message:"You must accept the terms and conditions."}),radio:or({message:"Please select a gender."}).min(1,"Please select a gender."),color:or({message:"Please select a color."}).min(1,"Please select a color."),select:or({message:"Please select a value."}).min(1,"Please select a value."),singleSelect:or({message:"Please select a single option."}).min(1,"Please select a single option."),combobox:or({message:"Please select a country."}).min(1,"Please select a country."),textarea:or({message:"Please enter a message."}).min(1,"Please enter a message.")}),yR=()=>{const{dummyClickEventHandler:e}=Do(),{handleSubmit:n,formState:{errors:r},reset:i,control:s}=ld({mode:"onBlur",reValidateMode:"onChange",resolver:N$(xR),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(be,{_level:2,_label:"Sample Form with Validation (Zod)"}),a.jsx(V,{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(gn,{_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(_e,{_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(O0,{control:s,name:"date",_label:"Date"}),a.jsx(Zb,{control:s,name:"text",_label:"Text (≥ 10 chars)"}),a.jsx(C0,{control:s,name:"email",_label:"Email"}),a.jsx(A0,{control:s,name:"password",_label:"Password"}),a.jsx(L0,{control:s,name:"range",_label:"Range (≥ 30)",_min:0,_max:100}),a.jsx(E0,{control:s,name:"number",_label:"Number (1 – 10)"}),a.jsx(I0,{control:s,name:"checkbox",_label:"Accept terms"}),a.jsx(M0,{control:s,name:"radio",_label:"Gender",_options:[{label:"Female",value:"f"},{label:"Male",value:"m"}]}),a.jsx($0,{control:s,name:"color",_label:"Favorite Color"}),a.jsx(R0,{control:s,name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(D0,{control:s,name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(B0,{control:s,name:"combobox",_label:"Country",_suggestions:Qn}),a.jsx(N0,{control:s,name:"textarea",_label:"Message",_rows:4}),a.jsxs("div",{className:"flex gap-4 mt-4",children:[a.jsx(W,{_label:"Submit",_type:"submit",_variant:"primary"}),a.jsx(W,{_label:"Reset",_type:"reset",onClick:d})]})]})]})},wR=()=>{const{searchParams:e}=new URL(location.href);return a.jsxs(a.Fragment,{children:[a.jsxs(V,{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(be,{_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(ro,{_name:"checkbox",_label:"Checkbox"}),a.jsx(Go,{_name:"color",_label:"Color"}),a.jsx(He,{_name:"date",_label:"Date"}),a.jsx(Yo,{_name:"email",_label:"Email"}),a.jsx(Ro,{_name:"file",_label:"File"}),a.jsx(Ro,{_name:"file",_label:"Files (multiple)",_multiple:!0}),a.jsx(So,{_name:"number",_label:"Number"}),a.jsx(Eo,{_name:"password",_label:"Password"}),a.jsx(Lo,{_name:"radio",_label:"Radio",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(en,{_name:"range",_label:"Range"}),a.jsx(Oe,{_name:"text",_label:"Text"}),a.jsx(Jo,{_name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(Jo,{_name:"select",_label:"Select (multiple)",_multiple:!0,_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],_rows:2}),a.jsx(bn,{_name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(_n,{_name:"combobox",_label:"Combobox",_suggestions:Qn}),a.jsx(Qe,{_name:"textarea",_label:"Textarea",_rows:5}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx(W,{_label:"Submit",_type:"submit",_variant:"primary"}),a.jsx(W,{_label:"Reset",_type:"reset"})]}),a.jsx("input",{type:"hidden",value:crypto.randomUUID(),name:"random"})]})]})]})},zR=()=>{const[e,n]=j.useState(!1),[r,i]=j.useState(!1);j.useEffect(()=>{let h;return e&&(h=setTimeout(()=>{n(!1)},2e3)),()=>clearTimeout(h)},[e]),j.useEffect(()=>{let h;return r&&(h=setTimeout(()=>{i(!1)},2e3)),()=>clearTimeout(h)},[r]);const s=()=>n(!0),d=()=>i(!0),u=j.useMemo(()=>Array.from({length:5},(p,g)=>({_label:`Button ${g+1}`,_on:{onClick:s},_icons:e?"codicon codicon-loading codicon-modifier-spin":void 0,_disabled:e})),[e]),m=j.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(be,{_label:"Disabled Toolbar Buttons Bug (solved)"}),a.jsx(be,{_label:"icon vor disabled",_level:2}),a.jsx(ga,{_label:"KolToolbar A",_items:u}),a.jsx(be,{_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(ga,{_label:"KolToolbar B",_items:m})]})},jR=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(ub,{_label:"Sample PopoverButton—Click for Popover",_icons:"codicon codicon-info",_tooltipAlign:"right",_hideLabel:!0,children:"This is an explanation shown on click."})})]}),SR={scenarios:{"change-tabindex":JO,"custom-tooltip-css-properties":XO,"date-in-form":WO,"disabled-interactive-scenario":QO,"focus-elements":e$,"input-group-with-error":r$,"inputs-get-value":a$,"react-hook-form-adapter":C$,"same-height-of-all-interactive-elements":E$,"static-form":wR,"sample-form-with-validation":yR,"table-horizontal-scrollbar-advanced":t$,"toolbar-item-order":zR,"tooltip-positioning":jR,"performance-test":c$}},qm={...wA,..._8,...w8,...T8,...C8,...$8,...B8,...U8,...W8,...oA,...aA,...iA,...fA,...hA,...AA,...LA,...$A,...DA,...UA,...XA,...eC,...tC,...nE,...lE,...uE,...mE,...AE,...EE,...$E,...FE,...VE,...YE,...XE,...QE,...oL,...rL,...I1,...I1,...mL,...gL,...fL,...yL,...gO,...AO,...RO,...UO,...KO,...ZO,...YO,...SR};Gy(localStorage);const vw=(e,n="/")=>{let r=[];for(const i in e)if(e[i]){const s=e[i],d=`${n}${i}`;typeof s=="function"?r.push(d):typeof s=="object"&&s!==null&&(r=r.concat(vw(s,`${d}/`)))}return r},gw=e=>{const n=[];for(const r in e)if(e[r]){const i=e[r],s=`/${r}`;if(typeof i=="function")n.push(a.jsx(ka,{path:s,element:a.jsx(i,{})},s)),n.push(a.jsx(ka,{path:`${s}/all`,element:a.jsx("div",{className:"d-grid gap-4",children:wm.filter(d=>Ky.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))})},`${s}/all`));else if(typeof i=="object"&&i!==null){const d=Object.keys(i);d.length>0&&n.push(a.jsx(ka,{path:`${s}/*`,element:a.jsxs(Kx,{children:[a.jsx(ka,{path:"/",element:a.jsx(Fx,{to:d[0]})}),gw(i)]})},s))}}return n},Xb=vw(qm),TR=gw(qm),xx=new Map;Xb.forEach(e=>{const n=e.split("/");xx.has(n[1])||xx.set(n[1],{label:n[1],value:e})});const AR=()=>{const e=rt(),[n,r]=Kr(),i=n.get("theme")??Ks(),s=n.has("hideMenus");vA(i),p8(),document.title=`KoliBri-Handout - ${Hb(Ks())} | v${Ib.version}`,document.body.setAttribute("class",i),document.body.dataset.theme=i;const d=u=>{r({theme:u}),window.location.reload()};return a.jsx(zm.Provider,{value:s,children:a.jsxs("div",{className:s?"":"app-container","data-theme":i,children:[!s&&a.jsx(h8,{version:Ib.version,theme:i,sample:e.pathname,routes:qm,routeList:Xb,buildDate:"2026-02-01T06:09:13.180Z",commitHash:"dadd4a77f",onThemeChange:d}),a.jsx("main",{className:"flex flex-col items-stretch p-4",id:"route-container",children:a.jsxs(Kx,{children:[TR,a.jsx(ka,{path:"*",element:a.jsx(Fx,{to:Xb[0],replace:!0})}),a.jsx(ka,{path:"back-page",element:a.jsx(d8,{})})]})})]})})},CR=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableI18nOverwriting"),ER=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableThemePatching"),Wb=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableTagNameTransformer"),Qb=e=>`${e}-sample`;Wb&&Fz(Qb);const LR=async()=>[C3,gT,c8];(async()=>{try{await Y5(await LR(),()=>{lS(window,{transformTagName:Wb?Qb:void 0})},{environment:"production",reflectInputValues:!0,theme:{detect:"auto"},translation:{name:"en"},translations:CR?new Set([n=>n("en",{"kol-error":"Tiny error!"}),n=>n("de",{"kol-error":"Kleiner Fehler!"})]):void 0,transformTagName:Wb?Qb:void 0}),ER&&Sa.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 uw(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 x=e.seen.get(g),z=x.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 S in h)S==="$ref"||S==="allOf"||S in p||delete h[S];if(z.$ref&&x.def)for(const S in h)S==="$ref"||S==="allOf"||S in x.def&&JSON.stringify(h[S])===JSON.stringify(x.def[S])&&delete h[S]}const v=u._zod.parent;if(v&&v!==g){i(v);const x=e.seen.get(v);if(x?.schema.$ref&&(h.$ref=x.schema.$ref,x.def))for(const z in h)z==="$ref"||z==="allOf"||z in x.def&&JSON.stringify(h[z])===JSON.stringify(x.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:Qs(n,"input",e.processors),output:Qs(n,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function Sn(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 Sn(i.element,r);if(i.type==="set")return Sn(i.valueType,r);if(i.type==="lazy")return Sn(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 Sn(i.innerType,r);if(i.type==="intersection")return Sn(i.left,r)||Sn(i.right,r);if(i.type==="record"||i.type==="map")return Sn(i.keyType,r)||Sn(i.valueType,r);if(i.type==="pipe")return Sn(i.in,r)||Sn(i.out,r);if(i.type==="object"){for(const c in i.shape)if(Sn(i.shape[c],r))return!0;return!1}if(i.type==="union"){for(const c of i.options)if(Sn(c,r))return!0;return!1}if(i.type==="tuple"){for(const c of i.items)if(Sn(c,r))return!0;return!!(i.rest&&Sn(i.rest,r))}return!1}const O7=(e,n={})=>r=>{const i=sw({...r,processors:n});return kn(e,i),dw(i,e),uw(i,e)},Qs=(e,n,r={})=>i=>{const{libraryOptions:c,target:d}=i??{},u=sw({...c??{},target:d,io:n,processors:r});return kn(e,u),dw(u,e),uw(u,e)},$7={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},N7=(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=$7[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}))])}},B7=(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)},R7=(e,n,r,i)=>{r.type="boolean"},D7=(e,n,r,i)=>{r.not={}},M7=(e,n,r,i)=>{},I7=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},U7=(e,n,r,i)=>{const c=e._zod.def,d=K0(c.entries);d.every(u=>typeof u=="number")&&(r.type="number"),d.every(u=>typeof u=="string")&&(r.type="string"),r.enum=d},F7=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},H7=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},K7=(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=kn(d.element,n,{...i,path:[...i.path,"items"]})},V7=(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]=kn(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=kn(d.catchall,n,{...i,path:[...i.path,"additionalProperties"]})):n.io==="output"&&(c.additionalProperties=!1)},q7=(e,n,r,i)=>{const c=e._zod.def,d=c.inclusive===!1,u=c.options.map((m,h)=>kn(m,n,{...i,path:[...i.path,d?"oneOf":"anyOf",h]}));d?r.oneOf=u:r.anyOf=u},Z7=(e,n,r,i)=>{const c=e._zod.def,d=kn(c.left,n,{...i,path:[...i.path,"allOf",0]}),u=kn(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},P7=(e,n,r,i)=>{const c=e._zod.def,d=kn(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"}]},G7=(e,n,r,i)=>{const c=e._zod.def;kn(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType},Y7=(e,n,r,i)=>{const c=e._zod.def;kn(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType,r.default=JSON.parse(JSON.stringify(c.defaultValue))},J7=(e,n,r,i)=>{const c=e._zod.def;kn(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)))},X7=(e,n,r,i)=>{const c=e._zod.def;kn(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},W7=(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;kn(d,n,i);const u=n.seen.get(e);u.ref=d},Q7=(e,n,r,i)=>{const c=e._zod.def;kn(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType,r.readOnly=!0},fw=(e,n,r,i)=>{const c=e._zod.def;kn(c.innerType,n,i);const d=n.seen.get(e);d.ref=c.innerType},eB=W("ZodISODateTime",(e,n)=>{nN.init(e,n),$o.init(e,n)});function oB(e){return i7(eB,e)}const nB=W("ZodISODate",(e,n)=>{tN.init(e,n),$o.init(e,n)});function tB(e){return c7(nB,e)}const rB=W("ZodISOTime",(e,n)=>{rN.init(e,n),$o.init(e,n)});function aB(e){return s7(rB,e)}const lB=W("ZodISODuration",(e,n)=>{aN.init(e,n),$o.init(e,n)});function iB(e){return d7(lB,e)}const cB=(e,n)=>{G0.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>G$(e,r)},flatten:{value:r=>P$(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Gb,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Gb,2)}},isEmpty:{get(){return e.issues.length===0}}})},kt=W("ZodError",cB,{Parent:Error}),sB=Km(kt),dB=Vm(kt),uB=ud(kt),fB=fd(kt),bB=X$(kt),mB=W$(kt),hB=Q$(kt),pB=e9(kt),kB=o9(kt),vB=n9(kt),gB=t9(kt),_B=r9(kt),Io=W("ZodType",(e,n)=>(Mo.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:Qs(e,"input"),output:Qs(e,"output")}}),e.toJSONSchema=O7(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.check=(...r)=>e.clone(qr(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)=>Zr(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>sB(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>uB(e,r,i),e.parseAsync=async(r,i)=>dB(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>fB(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>bB(e,r,i),e.decode=(r,i)=>mB(e,r,i),e.encodeAsync=async(r,i)=>hB(e,r,i),e.decodeAsync=async(r,i)=>pB(e,r,i),e.safeEncode=(r,i)=>kB(e,r,i),e.safeDecode=(r,i)=>vB(e,r,i),e.safeEncodeAsync=async(r,i)=>gB(e,r,i),e.safeDecodeAsync=async(r,i)=>_B(e,r,i),e.refine=(r,i)=>e.check(kR(r,i)),e.superRefine=r=>e.check(vR(r)),e.overwrite=r=>e.check(Ll(r)),e.optional=()=>_x(e),e.exactOptional=()=>rR(e),e.nullable=()=>xx(e),e.nullish=()=>_x(xx(e)),e.nonoptional=r=>dR(e,r),e.array=()=>GB(e),e.or=r=>WB([e,r]),e.and=r=>eR(e,r),e.transform=r=>Xb(e,hw(r)),e.default=r=>iR(e,r),e.prefault=r=>sR(e,r),e.catch=r=>fR(e,r),e.pipe=r=>Xb(e,r),e.readonly=()=>hR(e),e.describe=r=>{const i=e.clone();return Di.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return Di.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Di.get(e);const i=e.clone();return Di.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),bw=W("_ZodString",(e,n)=>{qm.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,c,d)=>N7(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(k7(...i)),e.includes=(...i)=>e.check(_7(...i)),e.startsWith=(...i)=>e.check(x7(...i)),e.endsWith=(...i)=>e.check(y7(...i)),e.min=(...i)=>e.check(Ws(...i)),e.max=(...i)=>e.check(iw(...i)),e.length=(...i)=>e.check(cw(...i)),e.nonempty=(...i)=>e.check(Ws(1,...i)),e.lowercase=i=>e.check(v7(i)),e.uppercase=i=>e.check(g7(i)),e.trim=()=>e.check(z7()),e.normalize=(...i)=>e.check(w7(...i)),e.toLowerCase=()=>e.check(j7()),e.toUpperCase=()=>e.check(S7()),e.slugify=()=>e.check(T7())}),xB=W("ZodString",(e,n)=>{qm.init(e,n),bw.init(e,n),e.email=r=>e.check(UN(yB,r)),e.url=r=>e.check(qN(wB,r)),e.jwt=r=>e.check(l7(MB,r)),e.emoji=r=>e.check(ZN(zB,r)),e.guid=r=>e.check(fx(px,r)),e.uuid=r=>e.check(FN(Ss,r)),e.uuidv4=r=>e.check(HN(Ss,r)),e.uuidv6=r=>e.check(KN(Ss,r)),e.uuidv7=r=>e.check(VN(Ss,r)),e.nanoid=r=>e.check(PN(jB,r)),e.guid=r=>e.check(fx(px,r)),e.cuid=r=>e.check(GN(SB,r)),e.cuid2=r=>e.check(YN(TB,r)),e.ulid=r=>e.check(JN(AB,r)),e.base64=r=>e.check(t7(BB,r)),e.base64url=r=>e.check(r7(RB,r)),e.xid=r=>e.check(XN(CB,r)),e.ksuid=r=>e.check(WN(EB,r)),e.ipv4=r=>e.check(QN(LB,r)),e.ipv6=r=>e.check(e7(OB,r)),e.cidrv4=r=>e.check(o7($B,r)),e.cidrv6=r=>e.check(n7(NB,r)),e.e164=r=>e.check(a7(DB,r)),e.datetime=r=>e.check(oB(r)),e.date=r=>e.check(tB(r)),e.time=r=>e.check(aB(r)),e.duration=r=>e.check(iB(r))});function or(e){return IN(xB,e)}const $o=W("ZodStringFormat",(e,n)=>{Ao.init(e,n),bw.init(e,n)}),yB=W("ZodEmail",(e,n)=>{P9.init(e,n),$o.init(e,n)}),px=W("ZodGUID",(e,n)=>{q9.init(e,n),$o.init(e,n)}),Ss=W("ZodUUID",(e,n)=>{Z9.init(e,n),$o.init(e,n)}),wB=W("ZodURL",(e,n)=>{G9.init(e,n),$o.init(e,n)}),zB=W("ZodEmoji",(e,n)=>{Y9.init(e,n),$o.init(e,n)}),jB=W("ZodNanoID",(e,n)=>{J9.init(e,n),$o.init(e,n)}),SB=W("ZodCUID",(e,n)=>{X9.init(e,n),$o.init(e,n)}),TB=W("ZodCUID2",(e,n)=>{W9.init(e,n),$o.init(e,n)}),AB=W("ZodULID",(e,n)=>{Q9.init(e,n),$o.init(e,n)}),CB=W("ZodXID",(e,n)=>{eN.init(e,n),$o.init(e,n)}),EB=W("ZodKSUID",(e,n)=>{oN.init(e,n),$o.init(e,n)}),LB=W("ZodIPv4",(e,n)=>{lN.init(e,n),$o.init(e,n)}),OB=W("ZodIPv6",(e,n)=>{iN.init(e,n),$o.init(e,n)}),$B=W("ZodCIDRv4",(e,n)=>{cN.init(e,n),$o.init(e,n)}),NB=W("ZodCIDRv6",(e,n)=>{sN.init(e,n),$o.init(e,n)}),BB=W("ZodBase64",(e,n)=>{dN.init(e,n),$o.init(e,n)}),RB=W("ZodBase64URL",(e,n)=>{fN.init(e,n),$o.init(e,n)}),DB=W("ZodE164",(e,n)=>{bN.init(e,n),$o.init(e,n)}),MB=W("ZodJWT",(e,n)=>{hN.init(e,n),$o.init(e,n)}),mw=W("ZodNumber",(e,n)=>{tw.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,c,d)=>B7(e,i,c),e.gt=(i,c)=>e.check(mx(i,c)),e.gte=(i,c)=>e.check(Ds(i,c)),e.min=(i,c)=>e.check(Ds(i,c)),e.lt=(i,c)=>e.check(bx(i,c)),e.lte=(i,c)=>e.check(Rs(i,c)),e.max=(i,c)=>e.check(Rs(i,c)),e.int=i=>e.check(vx(i)),e.safe=i=>e.check(vx(i)),e.positive=i=>e.check(mx(0,i)),e.nonnegative=i=>e.check(Ds(0,i)),e.negative=i=>e.check(bx(0,i)),e.nonpositive=i=>e.check(Rs(0,i)),e.multipleOf=(i,c)=>e.check(hx(i,c)),e.step=(i,c)=>e.check(hx(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 kx(e){return u7(mw,e)}const IB=W("ZodNumberFormat",(e,n)=>{pN.init(e,n),mw.init(e,n)});function vx(e){return f7(IB,e)}const UB=W("ZodBoolean",(e,n)=>{kN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>R7(e,r,i)});function FB(e){return b7(UB,e)}const HB=W("ZodUnknown",(e,n)=>{vN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>M7()});function gx(){return m7(HB)}const KB=W("ZodNever",(e,n)=>{gN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>D7(e,r,i)});function VB(e){return h7(KB,e)}const qB=W("ZodDate",(e,n)=>{_N.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,c,d)=>I7(e,i),e.min=(i,c)=>e.check(Ds(i,c)),e.max=(i,c)=>e.check(Rs(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 ZB(e){return p7(qB,e)}const PB=W("ZodArray",(e,n)=>{xN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>K7(e,r,i,c),e.element=n.element,e.min=(r,i)=>e.check(Ws(r,i)),e.nonempty=r=>e.check(Ws(1,r)),e.max=(r,i)=>e.check(iw(r,i)),e.length=(r,i)=>e.check(cw(r,i)),e.unwrap=()=>e.element});function GB(e,n){return A7(PB,e,n)}const YB=W("ZodObject",(e,n)=>{wN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>V7(e,r,i,c),ho(e,"shape",()=>n.shape),e.keyof=()=>oR(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:gx()}),e.loose=()=>e.clone({...e._zod.def,catchall:gx()}),e.strict=()=>e.clone({...e._zod.def,catchall:VB()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>H$(e,r),e.safeExtend=r=>K$(e,r),e.merge=r=>V$(e,r),e.pick=r=>U$(e,r),e.omit=r=>F$(e,r),e.partial=(...r)=>q$(pw,e,r[0]),e.required=(...r)=>Z$(kw,e,r[0])});function JB(e,n){const r={type:"object",shape:e??{},...je(n)};return new YB(r)}const XB=W("ZodUnion",(e,n)=>{zN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>q7(e,r,i,c),e.options=n.options});function WB(e,n){return new XB({type:"union",options:e,...je(n)})}const QB=W("ZodIntersection",(e,n)=>{jN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>Z7(e,r,i,c)});function eR(e,n){return new QB({type:"intersection",left:e,right:n})}const Jb=W("ZodEnum",(e,n)=>{SN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(i,c,d)=>U7(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 Jb({...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 Jb({...n,checks:[],...je(c),entries:d})}});function oR(e,n){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Jb({type:"enum",entries:r,...je(n)})}const nR=W("ZodTransform",(e,n)=>{TN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>H7(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new F0(e.constructor.name);r.addIssue=d=>{if(typeof d=="string")r.issues.push(Xi(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(Xi(u))}};const c=n.transform(r.value,r);return c instanceof Promise?c.then(d=>(r.value=d,r)):(r.value=c,r)}});function hw(e){return new nR({type:"transform",transform:e})}const pw=W("ZodOptional",(e,n)=>{lw.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>fw(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function _x(e){return new pw({type:"optional",innerType:e})}const tR=W("ZodExactOptional",(e,n)=>{AN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>fw(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function rR(e){return new tR({type:"optional",innerType:e})}const aR=W("ZodNullable",(e,n)=>{CN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>P7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function xx(e){return new aR({type:"nullable",innerType:e})}const lR=W("ZodDefault",(e,n)=>{EN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>Y7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function iR(e,n){return new lR({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():q0(n)}})}const cR=W("ZodPrefault",(e,n)=>{LN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>J7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function sR(e,n){return new cR({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():q0(n)}})}const kw=W("ZodNonOptional",(e,n)=>{ON.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>G7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function dR(e,n){return new kw({type:"nonoptional",innerType:e,...je(n)})}const uR=W("ZodCatch",(e,n)=>{$N.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>X7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function fR(e,n){return new uR({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const bR=W("ZodPipe",(e,n)=>{NN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>W7(e,r,i,c),e.in=n.in,e.out=n.out});function Xb(e,n){return new bR({type:"pipe",in:e,out:n})}const mR=W("ZodReadonly",(e,n)=>{BN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>Q7(e,r,i,c),e.unwrap=()=>e._zod.def.innerType});function hR(e){return new mR({type:"readonly",innerType:e})}const pR=W("ZodCustom",(e,n)=>{RN.init(e,n),Io.init(e,n),e._zod.processJSONSchema=(r,i,c)=>F7(e,r)});function kR(e,n={}){return C7(pR,e,n)}function vR(e){return E7(e)}function gR(e,n){return Xb(hw(e),n)}const _R=JB({date:gR(e=>typeof e=="string"||e instanceof Date?new Date(e):void 0,ZB({message:"Date is required"}).refine(e=>!isNaN(e.getTime()),{message:"Invalid date"})),text:or({message:"Please enter text."}).min(10,"Text must be at least 10 characters long."),email:or({message:"Please enter your email."}).min(1,"Please enter your email.").email("Invalid email address."),password:or({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:kx({message:"Please select a range."}).min(30,"Minimum value is 30."),number:kx({message:"Please enter a number."}).min(1,"Minimum is 1.").max(10,"Maximum is 10."),checkbox:FB().refine(e=>e===!0,{message:"You must accept the terms and conditions."}),radio:or({message:"Please select a gender."}).min(1,"Please select a gender."),color:or({message:"Please select a color."}).min(1,"Please select a color."),select:or({message:"Please select a value."}).min(1,"Please select a value."),singleSelect:or({message:"Please select a single option."}).min(1,"Please select a single option."),combobox:or({message:"Please select a country."}).min(1,"Please select a country."),textarea:or({message:"Please enter a message."}).min(1,"Please enter a message.")}),xR=()=>{const{dummyClickEventHandler:e}=Do(),{handleSubmit:n,formState:{errors:r},reset:i,control:c}=Al({mode:"onBlur",reValidateMode:"onChange",resolver:$$(_R),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(V,{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(_n,{_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(_e,{_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(O0,{control:c,name:"date",_label:"Date"}),a.jsx(Yi,{control:c,name:"text",_label:"Text (≥ 10 chars)"}),a.jsx(C0,{control:c,name:"email",_label:"Email"}),a.jsx(A0,{control:c,name:"password",_label:"Password"}),a.jsx(L0,{control:c,name:"range",_label:"Range (≥ 30)",_min:0,_max:100}),a.jsx(E0,{control:c,name:"number",_label:"Number (1 – 10)"}),a.jsx(I0,{control:c,name:"checkbox",_label:"Accept terms"}),a.jsx(M0,{control:c,name:"radio",_label:"Gender",_options:[{label:"Female",value:"f"},{label:"Male",value:"m"}]}),a.jsx($0,{control:c,name:"color",_label:"Favorite Color"}),a.jsx(R0,{control:c,name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(D0,{control:c,name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(B0,{control:c,name:"combobox",_label:"Country",_suggestions:Qn}),a.jsx(N0,{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})]})]})]})},yR=()=>{const{searchParams:e}=new URL(location.href);return a.jsxs(a.Fragment,{children:[a.jsxs(V,{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(ro,{_name:"checkbox",_label:"Checkbox"}),a.jsx(Go,{_name:"color",_label:"Color"}),a.jsx(Fe,{_name:"date",_label:"Date"}),a.jsx(Yo,{_name:"email",_label:"Email"}),a.jsx(Ro,{_name:"file",_label:"File"}),a.jsx(Ro,{_name:"file",_label:"Files (multiple)",_multiple:!0}),a.jsx(So,{_name:"number",_label:"Number"}),a.jsx(Eo,{_name:"password",_label:"Password"}),a.jsx(Lo,{_name:"radio",_label:"Radio",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(en,{_name:"range",_label:"Range"}),a.jsx(Ee,{_name:"text",_label:"Text"}),a.jsx(Jo,{_name:"select",_label:"Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(Jo,{_name:"select",_label:"Select (multiple)",_multiple:!0,_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}],_rows:2}),a.jsx(bn,{_name:"singleSelect",_label:"Single Select",_options:[{label:"Option A",value:"A"},{label:"Option B",value:"B"}]}),a.jsx(xn,{_name:"combobox",_label:"Combobox",_suggestions:Qn}),a.jsx(Qe,{_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"})]})]})]})},wR=()=>{const[e,n]=j.useState(!1),[r,i]=j.useState(!1);j.useEffect(()=>{let h;return e&&(h=setTimeout(()=>{n(!1)},2e3)),()=>clearTimeout(h)},[e]),j.useEffect(()=>{let h;return r&&(h=setTimeout(()=>{i(!1)},2e3)),()=>clearTimeout(h)},[r]);const c=()=>n(!0),d=()=>i(!0),u=j.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=j.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(ga,{_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(ga,{_label:"KolToolbar B",_items:m})]})},zR=()=>a.jsxs(a.Fragment,{children:[a.jsx(V,{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(fb,{_label:"Sample PopoverButton—Click for Popover",_icons:"codicon codicon-info",_tooltipAlign:"right",_hideLabel:!0,children:"This is an explanation shown on click."})})]}),jR={scenarios:{"change-tabindex":PO,"custom-tooltip-css-properties":GO,"date-in-form":YO,"disabled-interactive-scenario":JO,"focus-elements":XO,"input-group-with-error":o$,"inputs-get-value":n$,"react-hook-form-adapter":S$,"react-hook-form-adapter-disabled":A$,"same-height-of-all-interactive-elements":C$,"static-form":yR,"sample-form-with-validation":xR,"table-horizontal-scrollbar-advanced":e$,"toolbar-item-order":wR,"tooltip-positioning":zR,"performance-test":a$}},Zm={...wA,..._8,...w8,...T8,...C8,...$8,...B8,...U8,...W8,...oA,...aA,...iA,...fA,...hA,...AA,...LA,...$A,...DA,...UA,...XA,...eC,...tC,...nE,...lE,...uE,...mE,...jE,...TE,...EE,...IE,...FE,...ZE,...GE,...JE,...WE,...oL,...U1,...U1,...uL,...pL,...sL,...gL,...pO,...jO,...$O,...DO,...UO,...KO,...ZO,...jR};Yy(localStorage);const vw=(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(vw(c,`${d}/`)))}return r},gw=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(ka,{path:c,element:a.jsx(i,{})},c)),n.push(a.jsx(ka,{path:`${c}/all`,element:a.jsx("div",{className:"d-grid gap-4",children:zm.filter(d=>Vy.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(ka,{path:`${c}/*`,element:a.jsxs(Vx,{children:[a.jsx(ka,{path:"/",element:a.jsx(Kx,{to:d[0]})}),gw(i)]})},c))}}return n},Wb=vw(Zm),SR=gw(Zm),yx=new Map;Wb.forEach(e=>{const n=e.split("/");yx.has(n[1])||yx.set(n[1],{label:n[1],value:e})});const TR=()=>{const e=rt(),[n,r]=Kr(),i=n.get("theme")??qs(),c=n.has("hideMenus");vA(i),p8(),document.title=`KoliBri-Handout - ${Hb(qs())} | v${Ub.version}`,document.body.setAttribute("class",i),document.body.dataset.theme=i;const d=u=>{r({theme:u}),window.location.reload()};return a.jsx(jm.Provider,{value:c,children:a.jsxs("div",{className:c?"":"app-container","data-theme":i,children:[!c&&a.jsx(h8,{version:Ub.version,theme:i,sample:e.pathname,routes:Zm,routeList:Wb,buildDate:"2026-02-06T15:42:07.410Z",commitHash:"a3f5966fb",onThemeChange:d}),a.jsx("main",{className:"flex flex-col items-stretch p-4",id:"route-container",children:a.jsxs(Vx,{children:[SR,a.jsx(ka,{path:"*",element:a.jsx(Kx,{to:Wb[0],replace:!0})}),a.jsx(ka,{path:"back-page",element:a.jsx(d8,{})})]})})]})})},AR=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableI18nOverwriting"),CR=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableThemePatching"),Qb=new URL("https://x"+location.hash.substring(1)).searchParams.has("enableTagNameTransformer"),em=e=>`${e}-sample`;Qb&&Hz(em);const ER=async()=>[C3,gT,c8];(async()=>{try{await Y5(await ER(),()=>{lS(window,{transformTagName:Qb?em:void 0})},{environment:"production",reflectInputValues:!0,theme:{detect:"auto"},translation:{name:"en"},translations:AR?new Set([n=>n("en",{"kol-error":"Tiny error!"}),n=>n("de",{"kol-error":"Kleiner Fehler!"})]):void 0,transformTagName:Qb?em:void 0}),CR&&Sa.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&&Sx.createRoot(e).render(a.jsx(j.StrictMode,{children:a.jsx(_6,{children:a.jsx(AR,{})})}))})();export{td as $,sy as A,oD as B,c5 as C,UR as D,sD as E,fD as F,dm as G,Lj as H,$R as I,BR as J,Zf as K,Oo as L,o5 as M,OR as N,fm as O,lD as P,aD as Q,iD as R,KR as S,VR as T,g5 as U,zg as V,m5 as W,WR as X,XR as Y,tD as Z,P5 as _,Ot as a,YR as a0,FR as a1,r5 as a2,qR as a3,Zg as a4,Sa as a5,GR as a6,rD as a7,s_ as a8,x_ as a9,h_ as aa,T5 as ab,C_ as ac,N5 as ad,Ig as ae,B_ as af,$_ as ag,Rg as ah,JR as ai,$5 as aj,nD as ak,QR as al,Pg as am,Jg as an,o_ as ao,S_ as ap,N_ as aq,O_ as ar,t5 as as,gb as at,B5 as au,R5 as av,Jn as aw,E5 as ax,NR as ay,$g as b,Bg as c,cD as d,Ug as e,IR as f,uD as g,Ay as h,Gg as i,d_ as j,HR as k,Fg as l,ZR as m,PR as n,Kf as o,O5 as p,eD as q,dD as r,vb as s,Ag as t,DR as u,dy as v,um as w,MR as x,m_ as y,k_ as z};
26021
- //# sourceMappingURL=index-sRqLaO-Y.js.map
26020
+ }`},{append:!0})}catch(n){console.warn("Theme registration failed:",n)}const e=document.querySelector("div#app");e instanceof HTMLDivElement&&Tx.createRoot(e).render(a.jsx(j.StrictMode,{children:a.jsx(_6,{children:a.jsx(TR,{})})}))})();export{ad as $,dy as A,eD as B,c5 as C,IR as D,cD as E,uD as F,um as G,Lj as H,OR as I,NR as J,Pf as K,Oo as L,o5 as M,LR as N,bm as O,aD as P,rD as Q,lD as R,HR as S,KR as T,g5 as U,jg as V,m5 as W,XR as X,JR as Y,nD as Z,P5 as _,Ot as a,GR as a0,FR as a1,r5 as a2,VR as a3,Pg as a4,Sa as a5,PR as a6,tD as a7,d_ as a8,y_ as a9,p_ as aa,T5 as ab,E_ as ac,N5 as ad,Ug as ae,R_ as af,N_ as ag,Dg as ah,YR as ai,$5 as aj,oD as ak,WR as al,Gg as am,Xg as an,n_ as ao,T_ as ap,B_ as aq,$_ as ar,t5 as as,_b as at,B5 as au,R5 as av,Jn as aw,E5 as ax,$R as ay,Ng as b,Rg as c,iD as d,Fg as e,MR as f,dD as g,Cy as h,Yg as i,u_ as j,UR as k,Kg as l,qR as m,ZR as n,Vf as o,O5 as p,QR as q,sD as r,gb as s,Cg as t,RR as u,uy as v,fm as w,DR as x,h_ as y,v_ as z};
26021
+ //# sourceMappingURL=index-BZjd7-d9.js.map