bromcom-ui 2.10.1-rc.1 → 2.10.1-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/p-000670b6.js +5 -0
- package/dist/bromcom-ui/p-01c19c5a.entry.js +5 -0
- package/dist/bromcom-ui/{p-09699c4d.entry.js → p-0985e7ba.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3756f541.entry.js → p-10e70228.entry.js} +1 -1
- package/dist/bromcom-ui/{p-16848643.entry.js → p-13c47eea.entry.js} +1 -1
- package/dist/bromcom-ui/p-140b6ce0.js +5 -0
- package/dist/bromcom-ui/{p-1708a5ec.entry.js → p-18020ef7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7f09901d.entry.js → p-1b9bffba.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3f39982f.entry.js → p-30bfe3bd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-571dca86.entry.js → p-372ffe04.entry.js} +1 -1
- package/dist/bromcom-ui/{p-551058cd.entry.js → p-3c87fd88.entry.js} +1 -1
- package/dist/bromcom-ui/p-4597ee14.entry.js +5 -0
- package/dist/bromcom-ui/p-47682d2b.entry.js +21 -0
- package/dist/bromcom-ui/p-4bace961.entry.js +5 -0
- package/dist/bromcom-ui/{p-0973538a.entry.js → p-5f419e20.entry.js} +1 -1
- package/dist/bromcom-ui/p-6132700e.entry.js +5 -0
- package/dist/bromcom-ui/{p-9a41b688.js → p-62840867.js} +1 -1
- package/dist/bromcom-ui/p-629bcf93.entry.js +5 -0
- package/dist/bromcom-ui/{p-77eb2287.entry.js → p-6a02ed0b.entry.js} +1 -1
- package/dist/bromcom-ui/p-6bfed79a.entry.js +5 -0
- package/dist/bromcom-ui/{p-55291cc5.entry.js → p-6d83c8f6.entry.js} +1 -1
- package/dist/bromcom-ui/p-6de1c6ea.entry.js +5 -0
- package/dist/bromcom-ui/p-71cbd6f6.entry.js +5 -0
- package/dist/bromcom-ui/{p-56f7477e.entry.js → p-73d4bd1c.entry.js} +1 -1
- package/dist/bromcom-ui/p-7ada3462.entry.js +5 -0
- package/dist/bromcom-ui/p-7c0a3a3d.js +5 -0
- package/dist/bromcom-ui/{p-dac3117a.entry.js → p-7d1dd1b9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-673f7ee8.entry.js → p-82331114.entry.js} +1 -1
- package/dist/bromcom-ui/p-8301a465.entry.js +5 -0
- package/dist/bromcom-ui/p-85565afb.js +5 -0
- package/dist/bromcom-ui/{p-5ca4aa84.entry.js → p-88c38780.entry.js} +1 -1
- package/dist/bromcom-ui/p-8dc361a8.js +5 -0
- package/dist/bromcom-ui/{p-015d19dd.entry.js → p-90510968.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e131b27f.js → p-92d1a4c9.js} +1 -1
- package/dist/bromcom-ui/{p-cf171578.js → p-9398df85.js} +1 -1
- package/dist/bromcom-ui/{p-a04aab3c.entry.js → p-9ec71162.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0325e8a4.entry.js → p-9f954c08.entry.js} +1 -1
- package/dist/bromcom-ui/p-9fbc30a6.entry.js +5 -0
- package/dist/bromcom-ui/{p-f3431dc8.js → p-a40d4f27.js} +1 -1
- package/dist/bromcom-ui/p-a8d23b66.entry.js +5 -0
- package/dist/bromcom-ui/p-a953375b.entry.js +5 -0
- package/dist/bromcom-ui/p-a95b18f2.entry.js +5 -0
- package/dist/bromcom-ui/{p-24710a65.entry.js → p-a9c8b43c.entry.js} +1 -1
- package/dist/bromcom-ui/p-abc44b58.entry.js +5 -0
- package/dist/bromcom-ui/p-baf565be.entry.js +5 -0
- package/dist/bromcom-ui/{p-e38c4c3a.entry.js → p-bffc5f8c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-39a40a6e.entry.js → p-c80014e3.entry.js} +1 -1
- package/dist/bromcom-ui/p-c852c8fe.entry.js +5 -0
- package/dist/bromcom-ui/{p-cf0c0700.entry.js → p-ca788dc4.entry.js} +1 -1
- package/dist/bromcom-ui/p-ca8a4fc8.entry.js +5 -0
- package/dist/bromcom-ui/p-cc6c6f9e.entry.js +5 -0
- package/dist/bromcom-ui/p-d283e83e.entry.js +5 -0
- package/dist/bromcom-ui/p-dbad3126.entry.js +5 -0
- package/dist/bromcom-ui/{p-c1b167a3.js → p-de2272c5.js} +1 -1
- package/dist/bromcom-ui/{p-3b41df22.entry.js → p-df444847.entry.js} +1 -1
- package/dist/bromcom-ui/p-ee4845ac.entry.js +5 -0
- package/dist/bromcom-ui/{p-e11ab4ed.entry.js → p-ef829d33.entry.js} +1 -1
- package/dist/bromcom-ui/{p-646cf63c.entry.js → p-f24b096b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d7538ba4.entry.js → p-f372306f.entry.js} +1 -1
- package/dist/bromcom-ui/p-f818d2a9.entry.js +5 -0
- package/dist/bromcom-ui/{p-14c32a34.entry.js → p-f93bf6db.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f1dbd96d.entry.js → p-fc18af27.entry.js} +1 -1
- package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
- package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
- package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +4 -5
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bcm-button-group.cjs.entry.js +2 -2
- package/dist/cjs/{bcm-button_10.cjs.entry.js → bcm-button_18.cjs.entry.js} +8309 -1414
- package/dist/cjs/bcm-caption.cjs.entry.js +5 -6
- package/dist/cjs/bcm-card.cjs.entry.js +2 -2
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
- package/dist/cjs/bcm-chip-group.cjs.entry.js +5 -6
- package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
- package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
- package/dist/cjs/bcm-color-input.cjs.entry.js +4 -5
- package/dist/cjs/bcm-default.cjs.entry.js +2 -2
- package/dist/cjs/bcm-drawer.cjs.entry.js +4 -5
- package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +2 -2
- package/dist/cjs/bcm-form-2.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +6 -7
- package/dist/cjs/bcm-item.cjs.entry.js +2 -2
- package/dist/cjs/bcm-items.cjs.entry.js +2 -2
- package/dist/cjs/bcm-menu.cjs.entry.js +5 -6
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -5
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -5
- package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -5
- package/dist/cjs/bcm-modal.cjs.entry.js +2 -2
- package/dist/cjs/bcm-number-input.cjs.entry.js +108 -0
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popover.cjs.entry.js +4 -5
- package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
- package/dist/cjs/bcm-radio-group.cjs.entry.js +4 -5
- package/dist/cjs/bcm-radio.cjs.entry.js +4 -5
- package/dist/cjs/bcm-range.cjs.entry.js +2 -2
- package/dist/cjs/bcm-shortcut.cjs.entry.js +4 -5
- package/dist/cjs/bcm-skeleton.cjs.entry.js +4 -5
- package/dist/cjs/bcm-step.cjs.entry.js +3 -3
- package/dist/cjs/bcm-stepper.cjs.entry.js +5 -6
- package/dist/cjs/bcm-tab-group.cjs.entry.js +4 -5
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +4 -5
- package/dist/cjs/bcm-tab-item.cjs.entry.js +4 -5
- package/dist/cjs/bcm-table.cjs.entry.js +4 -5
- package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
- package/dist/cjs/bcm-textarea.cjs.entry.js +3 -3
- package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/bcm-toast.cjs.entry.js +2 -2
- package/dist/cjs/bcm-typography.cjs.entry.js +21 -0
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{generate-e79347af.js → generate-8f2a5b22.js} +15 -1
- package/dist/cjs/{global-9bb1902a.js → global-6e3108be.js} +1 -1
- package/dist/cjs/{input-template-3d21aacb.js → input-template-866a71d3.js} +1 -1
- package/dist/cjs/{json-parse-decarator-4d7afa63.js → json-parse-decarator-f30bb239.js} +1 -1
- package/dist/cjs/{label-template-8dc10d0a.js → label-template-a6f51ef2.js} +6 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{number-helper-2f971fd8.js → number-helper-57ea679e.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -3
- package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
- package/dist/cjs/{package-47b7b998.js → package-9f43976f.js} +1 -1
- package/dist/cjs/{stepper-states-a5699b31.js → stepper-states-1199c518.js} +1 -1
- package/dist/cjs/{tooltip-helper-7d5d1cb5.js → tooltip-helper-f55fc832.js} +3 -4
- package/dist/cjs/{validators-507307b9.js → validators-463a67ba.js} +6 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/atoms/label/label.js +1 -1
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
- package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +1 -1
- package/dist/collection/components/molecules/number-input/number-input.css +137 -0
- package/dist/collection/components/molecules/number-input/number-input.js +425 -0
- package/dist/collection/components/molecules/number-input/number-input.style.js +45 -0
- package/dist/collection/components/molecules/switch/switch.css +1 -0
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +47 -0
- package/dist/collection/components/organism/list/list.css +2 -0
- package/dist/collection/components/organism/list/list.js +38 -9
- package/dist/collection/components/other_deprecated/old-input/old-input.css +47 -0
- package/dist/collection/helper/generate.js +14 -0
- package/dist/collection/templates/label-template.js +6 -6
- package/dist/collection/templates/list-item-template.js +3 -2
- package/dist/components/bcm-caption.js +2 -2
- package/dist/components/bcm-input-dropdown.js +2 -2
- package/dist/components/bcm-number-input.d.ts +11 -0
- package/dist/components/bcm-number-input.js +157 -0
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/datetime-picker.js +1 -1
- package/dist/components/generate.js +15 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/label.js +7 -4
- package/dist/components/list.js +19 -10
- package/dist/components/old-input.js +1 -1
- package/dist/esm/bcm-accordion.entry.js +2 -2
- package/dist/esm/bcm-alert.entry.js +2 -2
- package/dist/esm/bcm-attendance.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +4 -5
- package/dist/esm/bcm-breadcrumb.entry.js +2 -2
- package/dist/esm/bcm-button-group.entry.js +2 -2
- package/dist/esm/{bcm-button_10.entry.js → bcm-button_18.entry.js} +7872 -985
- package/dist/esm/bcm-caption.entry.js +5 -6
- package/dist/esm/bcm-card.entry.js +2 -2
- package/dist/esm/bcm-checkbox-group.entry.js +3 -3
- package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
- package/dist/esm/bcm-chip-group.entry.js +5 -6
- package/dist/esm/bcm-chip.entry.js +2 -2
- package/dist/esm/bcm-collapse.entry.js +2 -2
- package/dist/esm/bcm-color-input.entry.js +4 -5
- package/dist/esm/bcm-default.entry.js +2 -2
- package/dist/esm/bcm-drawer.entry.js +4 -5
- package/dist/esm/bcm-dropdown.entry.js +3 -3
- package/dist/esm/bcm-expansion-panel.entry.js +2 -2
- package/dist/esm/bcm-form-2.entry.js +2 -2
- package/dist/esm/bcm-input-custom.entry.js +2 -2
- package/dist/esm/bcm-input-dropdown.entry.js +6 -7
- package/dist/esm/bcm-item.entry.js +2 -2
- package/dist/esm/bcm-items.entry.js +2 -2
- package/dist/esm/bcm-menu.entry.js +5 -6
- package/dist/esm/bcm-modal-2-footer.entry.js +4 -5
- package/dist/esm/bcm-modal-2-header.entry.js +4 -5
- package/dist/esm/bcm-modal-2.entry.js +4 -5
- package/dist/esm/bcm-modal.entry.js +2 -2
- package/dist/esm/bcm-number-input.entry.js +104 -0
- package/dist/esm/bcm-popconfirm-box.entry.js +2 -2
- package/dist/esm/bcm-popconfirm.entry.js +2 -2
- package/dist/esm/bcm-popover.entry.js +4 -5
- package/dist/esm/bcm-progress.entry.js +2 -2
- package/dist/esm/bcm-radio-group.entry.js +4 -5
- package/dist/esm/bcm-radio.entry.js +4 -5
- package/dist/esm/bcm-range.entry.js +2 -2
- package/dist/esm/bcm-shortcut.entry.js +4 -5
- package/dist/esm/bcm-skeleton.entry.js +4 -5
- package/dist/esm/bcm-step.entry.js +3 -3
- package/dist/esm/bcm-stepper.entry.js +5 -6
- package/dist/esm/bcm-tab-group.entry.js +4 -5
- package/dist/esm/bcm-tab-item-header.entry.js +4 -5
- package/dist/esm/bcm-tab-item.entry.js +4 -5
- package/dist/esm/bcm-table.entry.js +4 -5
- package/dist/esm/bcm-tag.entry.js +3 -3
- package/dist/esm/bcm-textarea.entry.js +3 -3
- package/dist/esm/bcm-time-picker.entry.js +2 -2
- package/dist/esm/bcm-toast.entry.js +2 -2
- package/dist/esm/bcm-typography.entry.js +17 -0
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{generate-b9c6f412.js → generate-c1065765.js} +15 -1
- package/dist/esm/{global-114427da.js → global-6365ce83.js} +1 -1
- package/dist/esm/{input-template-dc94e47f.js → input-template-74229cd2.js} +1 -1
- package/dist/esm/{json-parse-decarator-fca2dc09.js → json-parse-decarator-a301c8b7.js} +1 -1
- package/dist/esm/{label-template-989d1700.js → label-template-ad2e8119.js} +6 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{number-helper-70be3621.js → number-helper-d42f27d5.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +3 -3
- package/dist/esm/old-bcm-popover.entry.js +2 -2
- package/dist/esm/{package-6f4c9f8c.js → package-5c7049c1.js} +1 -1
- package/dist/esm/{stepper-states-291a682f.js → stepper-states-39645921.js} +1 -1
- package/dist/esm/{tooltip-helper-089735b1.js → tooltip-helper-61f3e8cb.js} +3 -4
- package/dist/esm/{validators-c1fe8b4b.js → validators-3881959b.js} +6 -2
- package/dist/types/components/molecules/number-input/number-input.d.ts +29 -0
- package/dist/types/components/molecules/number-input/number-input.style.d.ts +200 -0
- package/dist/types/components/organism/list/list.d.ts +3 -1
- package/dist/types/components.d.ts +55 -1
- package/dist/types/helper/generate.d.ts +3 -0
- package/dist/types/models/bcm.d.ts +3 -0
- package/dist/types/templates/label-template.d.ts +2 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-0b316c6f.entry.js +0 -5
- package/dist/bromcom-ui/p-0b820f78.entry.js +0 -5
- package/dist/bromcom-ui/p-0fe106fc.entry.js +0 -5
- package/dist/bromcom-ui/p-140f3478.js +0 -5
- package/dist/bromcom-ui/p-29614b49.entry.js +0 -5
- package/dist/bromcom-ui/p-2da72d6a.entry.js +0 -5
- package/dist/bromcom-ui/p-3432a82d.js +0 -19
- package/dist/bromcom-ui/p-3d142f76.entry.js +0 -5
- package/dist/bromcom-ui/p-40b85b9b.entry.js +0 -5
- package/dist/bromcom-ui/p-483b4ba8.entry.js +0 -5
- package/dist/bromcom-ui/p-5ff3c68f.entry.js +0 -5
- package/dist/bromcom-ui/p-626a65e9.js +0 -5
- package/dist/bromcom-ui/p-62d178e3.entry.js +0 -5
- package/dist/bromcom-ui/p-71b9ea64.entry.js +0 -7
- package/dist/bromcom-ui/p-795d2f76.entry.js +0 -5
- package/dist/bromcom-ui/p-813ec92d.js +0 -5
- package/dist/bromcom-ui/p-8b202d9e.js +0 -5
- package/dist/bromcom-ui/p-8d43aa14.entry.js +0 -5
- package/dist/bromcom-ui/p-93b8a3ff.entry.js +0 -5
- package/dist/bromcom-ui/p-9889a4ed.entry.js +0 -5
- package/dist/bromcom-ui/p-a00170b7.entry.js +0 -5
- package/dist/bromcom-ui/p-a1f9e7d4.entry.js +0 -5
- package/dist/bromcom-ui/p-a42cc789.entry.js +0 -5
- package/dist/bromcom-ui/p-a839a0e5.entry.js +0 -5
- package/dist/bromcom-ui/p-b013cff9.entry.js +0 -5
- package/dist/bromcom-ui/p-b3b59bc3.entry.js +0 -5
- package/dist/bromcom-ui/p-be434461.entry.js +0 -5
- package/dist/bromcom-ui/p-bec8a936.entry.js +0 -5
- package/dist/bromcom-ui/p-c566b3a0.entry.js +0 -5
- package/dist/bromcom-ui/p-cd04678a.entry.js +0 -5
- package/dist/bromcom-ui/p-d06f5291.js +0 -5
- package/dist/bromcom-ui/p-d89b7e22.entry.js +0 -5
- package/dist/bromcom-ui/p-ea2ce157.js +0 -5
- package/dist/bromcom-ui/p-f7549b1f.entry.js +0 -5
- package/dist/bromcom-ui/p-fb597d84.entry.js +0 -5
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -182
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1450
- package/dist/cjs/bcm-list_3.cjs.entry.js +0 -2536
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
- package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
- package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
- package/dist/cjs/index-7eed931f.js +0 -2146
- package/dist/esm/bcm-checkbox_2.entry.js +0 -189
- package/dist/esm/bcm-date-picker.entry.js +0 -178
- package/dist/esm/bcm-datetime-picker.entry.js +0 -1446
- package/dist/esm/bcm-list_3.entry.js +0 -2530
- package/dist/esm/bcm-old-input.entry.js +0 -393
- package/dist/esm/bcm-switch.entry.js +0 -147
- package/dist/esm/datetime-helper-df25808a.js +0 -9
- package/dist/esm/index-e4b6a4ce.js +0 -2127
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import{h as t,r as e,c as n,H as i,g as r,f as o,a as c}from"./p-170cf07d.js";import{s as a,G as l}from"./p-8dc361a8.js";import{B as s,a as u}from"./p-6369b73b.js";import{c as h}from"./p-64fad38b.js";import{c as f}from"./p-74e6d2b6.js";import{S as d}from"./p-f800e665.js";import{C as b}from"./p-61db1f1f.js";import{C as m}from"./p-a25c8a55.js";import{d as p,p as v,g}from"./p-8c018ae0.js";import{I as x}from"./p-9850cbce.js";import{c as y,a as w,g as k,b as _}from"./p-85eedabc.js";import{D as z,V as C}from"./p-7c0a3a3d.js";import{N as S}from"./p-140b6ce0.js";import{S as D}from"./p-157359d6.js";import{D as j,E as M}from"./p-7e44e6b5.js";import"./p-3fac58f7.js";import"./p-2e73d572.js";import{g as O,s as E}from"./p-125d6ed0.js";import{L as N}from"./p-000670b6.js";import{I as T}from"./p-a40d4f27.js";import{F as I}from"./p-518b9b80.js";import{J as R}from"./p-de2272c5.js";import{T as Y}from"./p-85565afb.js";import"./p-62840867.js";import"./p-6edf985f.js";import"./p-436364c8.js";const A={save:{text:"Save",color:"emerald",icon:"far fa-save",iconPosition:"prefix"},ok:{text:"Ok",color:"emerald",icon:"far fa-check",iconPosition:"prefix"},new:{text:"New",color:"emerald",icon:"far fa-plus",iconPosition:"prefix"},add:{text:"Add",color:"emerald",icon:"far fa-plus",iconPosition:"prefix"},create:{text:"Create",color:"emerald",icon:"far fa-plus",iconPosition:"prefix"},prev:{text:"Prev",color:"",icon:"far fa-arrow-left",iconPosition:"prefix"},next:{text:"Next",color:"",icon:"far fa-arrow-right",iconPosition:"suffix"},apply:{text:"Apply",color:"",icon:"far fa-check-circle",iconPosition:"prefix"},submit:{text:"Submit",color:"",icon:"far fa-save",iconPosition:"prefix"},send:{text:"Send",color:"emerald",icon:"far fa-paper-plane",iconPosition:"prefix"},delete:{text:"Delete",color:"red",icon:"far fa-trash",iconPosition:"prefix"},cancel:{text:"Cancel",color:"red",icon:"far fa-times",iconPosition:"prefix"},decline:{text:"Decline",color:"red",icon:"far fa-ban",iconPosition:"prefix"},close:{text:"Close",color:"red",icon:"far fa-times-circle",iconPosition:"prefix"},archive:{text:"Archive",color:"red",icon:"far fa-folder-open",iconPosition:"prefix"},remove:{text:"Remove",color:"red",icon:"far fa-minus-circle",iconPosition:"prefix"},edit:{text:"Edit",color:"",icon:"far fa-edit",iconPosition:"prefix"},export:{text:"Export",color:"",icon:"far fa-sign-out",iconPosition:"prefix"},import:{text:"Import",color:"",icon:"far fa-sign-in",iconPosition:"prefix"},filter:{text:"Filter",color:"",icon:"far fa-filter",iconPosition:"prefix"},update:{text:"Update",color:"",icon:"far fa-sync",iconPosition:"prefix"},reset:{text:"Reset",color:"",icon:"far fa-sync",iconPosition:"prefix"},download:{text:"Download",color:"",icon:"far fa-download",iconPosition:"prefix"}};var P;!function(t){t.save="save",t.submit="submit",t.ok="ok",t.new="new",t.add="add",t.create="create",t.apply="apply",t.prev="prev",t.next="next",t.send="send",t.delete="delete",t.cancel="cancel",t.decline="decline",t.close="close",t.archive="archive",t.remove="remove",t.edit="edit",t.export="export",t.import="import",t.filter="filter",t.update="update",t.reset="Reset",t.download="download"}(P||(P={}));const{state:F}=f({value:new Map,setData:{},removeData:{}}),$=({value:e,type:n,componentClass:i,disabled:r,href:o,target:c,loading:a,isIconOnly:l,icon:u,iconPosition:h,id:f})=>t(o?s.HtmlElementType.a:s.HtmlElementType.button,Object.assign({id:f},n==s.HtmlElementType.button&&{type:n},{class:i,disabled:r,href:o,target:c,tabindex:"0"}),t("span",{hidden:!0},t("slot",null)),a&&t("span",{class:"bcm-button__container-loading"}," ",t("span",{class:"bcm-button__container-icon"},t("i",{class:"far fa-spinner-third fa-spin"})," ")),u&&t("span",{class:`${h} bcm-button__container-icon`},t("i",{class:`${u}`})),!l&&t(d,{className:"bcm-button__container-text",value:e}),t("slot",{name:"suffix"})),L=class{constructor(t){e(this,t),this.bcmClick=n(this,"bcm-click",7),this._id=l.UID(),this.hidden=!1,this.type=s.ButtonType.button,this.size=s.Size.medium,this.disabled=!1,this.kind=s.Kind.solid,this.outline=!1,this.icon=void 0,this.href=void 0,this.target=void 0,this.value=void 0,this.loading=!1,this.variant=void 0,this.dataDismiss=!1,this.fullWidth=!1,this.iconPosition=s.IconPosition.prefix,this.color=void 0,this.checked=!1}handleOnClick(t){if(this.disabled)return t.preventDefault(),t.stopPropagation(),!1}componentWillRender(){const{size:t,kind:e,icon:n,iconPosition:i,disabled:r,outline:o,href:c,type:a,target:l,loading:u,variant:h,fullWidth:f,hidden:d,value:b}=this;(t=>{const e=Object.assign(Object.assign({},t),A[t.variant]&&{icon:A[t.variant].icon,value:A[t.variant].text,iconPosition:s.IconPosition[A[t.variant].iconPosition],variantColor:A[t.variant].color});F.value.set(e.id,e)})({id:this._id,size:t,type:a,kind:e,icon:n,iconPosition:i,disabled:r,outline:o,href:c,target:l,loading:u,variant:h,fullWidth:f,hidden:d,value:b,isIconOnly:!(!this.isHaveChildNodes()||!this.icon)})}getStateData(){return(t=>a((()=>F.value.get(t)),{}))(this._id)}isHaveChildNodes(){return void 0===Array.from(this.el.childNodes).find((t=>t.nodeType===Node.TEXT_NODE))}setColor(t=this.color){if(!t)return;const{kind:e}=this,n=`--bcm-button-${e}`;return"solid"===e?{[`${n}-color-default`]:b.dsColor("white"),[`${n}-color-hover`]:b.dsColor("white"),[`${n}-color-focus-visible`]:b.dsColor("white"),[`${n}-color-active`]:b.dsColor("white"),[`${n}-color-disabled`]:b.dsColor("white"),[`${n}-background-color-default`]:b.dsColor(t+"-500"),[`${n}-background-color-hover`]:b.dsColor(t+"-600"),[`${n}-background-color-focus-visible`]:b.dsColor(t+"-700"),[`${n}-background-color-active`]:b.dsColor(t+"-800"),[`${n}-background-color-disabled`]:b.dsColor("slate-400"),[`${n}-border-default`]:b.dsColor(t+"-500"),[`${n}-border-hover`]:b.dsColor(t+"-600"),[`${n}-border-focus-visible`]:b.dsColor(t+"-700"),[`${n}-border-active`]:b.dsColor(t+"-800"),[`${n}-border-disabled`]:b.dsColor("slate-400")}:"link"==e?{[`${n}-color-default`]:b.dsColor(t+"-500"),[`${n}-color-hover`]:b.dsColor(t+"-600"),[`${n}-color-focus-visible`]:b.dsColor(t+"-800"),[`${n}-color-active`]:b.dsColor(t+"-700"),[`${n}-color-disabled`]:b.dsColor("slate-400"),[`${n}-background-color-default`]:b.dsColor("transparent"),[`${n}-background-color-hover`]:b.dsColor("transparent"),[`${n}-background-color-focus-visible`]:b.dsColor("slate-50"),[`${n}-background-color-active`]:b.dsColor("slate-50"),[`${n}-background-color-disabled`]:b.dsColor("transparent"),[`${n}-border-default`]:b.dsColor("transparent"),[`${n}-border-hover`]:b.dsColor("transparent"),[`${n}-border-focus-visible`]:b.dsColor("slate-50"),[`${n}-border-active`]:b.dsColor("slate-50"),[`${n}-border-disabled`]:b.dsColor("transparent")}:"ghost"==e?{[`${n}-color-default`]:b.dsColor(t+"-600"),[`${n}-color-hover`]:b.dsColor(t+"-600"),[`${n}-color-focus-visible`]:b.dsColor(t+"-600"),[`${n}-color-active`]:b.dsColor(t+"-600"),[`${n}-color-disabled`]:b.dsColor(t+"-300"),[`${n}-background-color-default`]:b.dsColor(t+"-100"),[`${n}-background-color-hover`]:b.dsColor(t+"-200"),[`${n}-background-color-focus-visible`]:b.dsColor(t+"-400"),[`${n}-background-color-active`]:b.dsColor(t+"-300"),[`${n}-background-color-disabled`]:b.dsColor(t+"-50"),[`${n}-border-default`]:b.dsColor(t+"-300"),[`${n}-border-hover`]:b.dsColor(t+"-400"),[`${n}-border-focus-visible`]:b.dsColor(t+"-600"),[`${n}-border-active`]:b.dsColor(t+"-500"),[`${n}-border-disabled`]:b.dsColor(t+"-200")}:void 0}render(){const{size:e,kind:n,disabled:r,outline:o,type:c,href:a,target:l,loading:s,variantColor:u,fullWidth:f,hidden:d,icon:b,iconPosition:m,value:p,isIconOnly:v,iconSize:g}=this.getStateData();let x=h("bcm-button__container",`bcm-button__container-size-${e}`,`bcm-button__container-kind-${o?"ghost":n}`,{"full-width":f,checked:this.checked,disabled:r});const y=h("bcm-button",{hidden:d,"full-width":f});return t(i,{class:y,style:this.setColor(u),onClick:()=>!r&&this.bcmClick.emit(this.el)},t($,{type:c,value:p,componentClass:x,disabled:r,href:a,target:l,icon:b,loading:s,iconSize:g,isIconOnly:v,iconPosition:m}))}get el(){return r(this)}};L.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-button{display:inline-flex;width:fit-content;height:fit-content;--bcm-button-solid-color-default:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-default:var(--bcm-new-ds-color-blue-500);--bcm-button-solid-border-default:var(--bcm-new-ds-color-blue-500);--bcm-button-solid-color-hover:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-button-solid-border-hover:var(--bcm-new-ds-color-blue-600);--bcm-button-solid-color-focus-visible:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-button-solid-border-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-button-solid-color-active:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-active:var(--bcm-new-ds-color-blue-700);--bcm-button-solid-border-active:var(--bcm-new-ds-color-blue-700);--bcm-button-solid-color-disabled:var(--bcm-new-ds-color-white);--bcm-button-solid-background-color-disabled:var(--bcm-new-ds-color-slate-400);--bcm-button-solid-border-disabled:var(--bcm-new-ds-color-slate-400);--bcm-button-ghost-color-default:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-default:var(--bcm-new-ds-color-slate-100);--bcm-button-ghost-border-default:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-color-hover:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-hover:var(--bcm-new-ds-color-slate-200);--bcm-button-ghost-border-hover:var(--bcm-new-ds-color-slate-400);--bcm-button-ghost-color-focus-visible:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-focus-visible:var(--bcm-new-ds-color-slate-400);--bcm-button-ghost-border-focus-visible:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-color-active:var(--bcm-new-ds-color-slate-600);--bcm-button-ghost-background-color-active:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-border-active:var(--bcm-new-ds-color-slate-500);--bcm-button-ghost-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-background-color-disabled:var(--bcm-new-ds-color-slate-50);--bcm-button-ghost-border-disabled:var(--bcm-new-ds-color-slate-200);--bcm-button-link-color-default:var(--bcm-new-ds-color-blue-500);--bcm-button-link-background-color-default:var(--bcm-new-ds-color-transparent);--bcm-button-link-border-default:var(--bcm-new-ds-color-transparent);--bcm-button-link-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-button-link-background-color-hover:var(--bcm-new-ds-color-transparent);--bcm-button-link-border-hover:var(--bcm-new-ds-color-transparent);--bcm-button-link-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-button-link-background-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-button-link-border-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-button-link-color-active:var(--bcm-new-ds-color-blue-700);--bcm-button-link-background-color-active:var(--bcm-new-ds-color-slate-50);--bcm-button-link-border-active:var(--bcm-new-ds-color-slate-50);--bcm-button-link-color-disabled:var(--bcm-new-ds-color-slate-400);--bcm-button-link-background-color-disabled:var(--bcm-new-ds-color-transparent);--bcm-button-link-border-disabled:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-default:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-default:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-border-default:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-hover:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-hover:var(--bcm-new-ds-color-slate-200);--bcm-button-ghost-link-border-hover:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-focus-visible:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-focus-visible:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-link-border-focus-visible:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-active:var(--bcm-new-ds-color-slate-700);--bcm-button-ghost-link-background-color-active:var(--bcm-new-ds-color-slate-300);--bcm-button-ghost-link-border-active:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-color-disabled:var(--bcm-new-ds-color-slate-500);--bcm-button-ghost-link-background-color-disabled:var(--bcm-new-ds-color-transparent);--bcm-button-ghost-link-border-disabled:var(--bcm-new-ds-color-transparent)}.bcm-button.full-width{width:100%}.bcm-button.full-width .bcm-button__container{width:100%}.bcm-button:after,.bcm-button:before{content:"";clear:both}.bcm-button__container{border:none;color:inherit;background-color:inherit;padding:0;margin:0;font:inherit;cursor:pointer;outline:none;text-decoration:none;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:4px 12px;outline:none;border-radius:4px;transition:background-color 0.1s ease-in-out;position:relative;min-width:40px;border-width:1px;border-style:solid;border-color:initial}.bcm-button__container:hover,.bcm-button__container:focus,.bcm-button__container:active{outline:none;text-decoration:none}.bcm-button__container-loading{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:4px;display:flex;align-items:center;justify-content:center}.bcm-button__container-kind-solid{color:var(--bcm-button-solid-color-default);background-color:var(--bcm-button-solid-background-color-default);border-color:var(--bcm-button-solid-border-default)}.bcm-button__container-kind-solid:hover{color:var(--bcm-button-solid-color-hover);background-color:var(--bcm-button-solid-background-color-hover);border-color:var(--bcm-button-solid-border-hover)}.bcm-button__container-kind-solid:focus-visible{color:var(--bcm-button-solid-color-focus-visible);background-color:var(--bcm-button-solid-background-color-focus-visible);border-color:var(--bcm-button-solid-border-focus-visible)}.bcm-button__container-kind-solid:active{color:var(--bcm-button-solid-color-active);background-color:var(--bcm-button-solid-background-color-active);border-color:var(--bcm-button-solid-border-active)}.bcm-button__container-kind-solid:disabled{color:var(--bcm-button-solid-color-disabled);background-color:var(--bcm-button-solid-background-color-disabled);border-color:var(--bcm-button-solid-border-disabled)}.bcm-button__container-kind-solid.checked{color:var(--bcm-button-solid-color-active);background-color:var(--bcm-button-solid-background-color-active);border-color:var(--bcm-button-solid-border-active)}.bcm-button__container-kind-solid.disabled{color:var(--bcm-button-solid-color-disabled);background-color:var(--bcm-button-solid-background-color-disabled);border-color:var(--bcm-button-solid-border-disabled)}.bcm-button__container-kind-solid .bcm-button__container-loading{color:var(--bcm-button-solid-color-default);background-color:var(--bcm-button-solid-background-color-default);border-color:var(--bcm-button-solid-border-default)}.bcm-button__container-kind-ghost{color:var(--bcm-button-ghost-color-default);background-color:var(--bcm-button-ghost-background-color-default);border-color:var(--bcm-button-ghost-border-default)}.bcm-button__container-kind-ghost:not([disabled]) .bcm-icon{color:var(--bcm-new-ds-color-slate-500)}.bcm-button__container-kind-ghost:hover{color:var(--bcm-button-ghost-color-hover);background-color:var(--bcm-button-ghost-background-color-hover);border-color:var(--bcm-button-ghost-border-hover)}.bcm-button__container-kind-ghost:focus-visible{color:var(--bcm-button-ghost-color-focus-visible);background-color:var(--bcm-button-ghost-background-color-focus-visible);border-color:var(--bcm-button-ghost-border-focus-visible)}.bcm-button__container-kind-ghost:active{color:var(--bcm-button-ghost-color-active);background-color:var(--bcm-button-ghost-background-color-active);border-color:var(--bcm-button-ghost-border-active)}.bcm-button__container-kind-ghost:disabled{color:var(--bcm-button-ghost-color-disabled);background-color:var(--bcm-button-ghost-background-color-disabled);border-color:var(--bcm-button-ghost-border-disabled)}.bcm-button__container-kind-ghost.checked{color:var(--bcm-button-ghost-color-active);background-color:var(--bcm-button-ghost-background-color-active);border-color:var(--bcm-button-ghost-border-active)}.bcm-button__container-kind-ghost.disabled{color:var(--bcm-button-ghost-color-disabled);background-color:var(--bcm-button-ghost-background-color-disabled);border-color:var(--bcm-button-ghost-border-disabled)}.bcm-button__container-kind-ghost .bcm-button__container-loading{color:var(--bcm-button-ghost-color-default);background-color:var(--bcm-button-ghost-background-color-default);border-color:var(--bcm-button-ghost-border-default)}.bcm-button__container-kind-link{color:var(--bcm-button-link-color-default);background-color:var(--bcm-button-link-background-color-default);border-color:var(--bcm-button-link-border-default)}.bcm-button__container-kind-link:hover{color:var(--bcm-button-link-color-hover);background-color:var(--bcm-button-link-background-color-hover);border-color:var(--bcm-button-link-border-hover)}.bcm-button__container-kind-link:focus-visible{color:var(--bcm-button-link-color-focus-visible);background-color:var(--bcm-button-link-background-color-focus-visible);border-color:var(--bcm-button-link-border-focus-visible)}.bcm-button__container-kind-link:active{color:var(--bcm-button-link-color-active);background-color:var(--bcm-button-link-background-color-active);border-color:var(--bcm-button-link-border-active)}.bcm-button__container-kind-link:disabled{color:var(--bcm-button-link-color-disabled);background-color:var(--bcm-button-link-background-color-disabled);border-color:var(--bcm-button-link-border-disabled)}.bcm-button__container-kind-link.checked{color:var(--bcm-button-link-color-active);background-color:var(--bcm-button-link-background-color-active);border-color:var(--bcm-button-link-border-active)}.bcm-button__container-kind-link.disabled{color:var(--bcm-button-link-color-disabled);background-color:var(--bcm-button-link-background-color-disabled);border-color:var(--bcm-button-link-border-disabled)}.bcm-button__container-kind-link .bcm-button__container-loading{color:var(--bcm-button-link-color-default);background-color:var(--bcm-button-link-background-color-default);border-color:var(--bcm-button-link-border-default)}.bcm-button__container-kind-ghost-link{color:var(--bcm-button-ghost-link-color-default);background-color:var(--bcm-button-ghost-link-background-color-default);border-color:var(--bcm-button-ghost-link-border-default)}.bcm-button__container-kind-ghost-link:hover{color:var(--bcm-button-ghost-link-color-hover);background-color:var(--bcm-button-ghost-link-background-color-hover);border-color:var(--bcm-button-ghost-link-border-hover)}.bcm-button__container-kind-ghost-link:focus-visible{color:var(--bcm-button-ghost-link-color-focus-visible);background-color:var(--bcm-button-ghost-link-background-color-focus-visible);border-color:var(--bcm-button-ghost-link-border-focus-visible)}.bcm-button__container-kind-ghost-link:active{color:var(--bcm-button-ghost-link-color-active);background-color:var(--bcm-button-ghost-link-background-color-active);border-color:var(--bcm-button-ghost-link-border-active)}.bcm-button__container-kind-ghost-link:disabled{color:var(--bcm-button-ghost-link-color-disabled);background-color:var(--bcm-button-ghost-link-background-color-disabled);border-color:var(--bcm-button-ghost-link-border-disabled)}.bcm-button__container-kind-ghost-link.checked{color:var(--bcm-button-ghost-link-color-active);background-color:var(--bcm-button-ghost-link-background-color-active);border-color:var(--bcm-button-ghost-link-border-active)}.bcm-button__container-kind-ghost-link.disabled{color:var(--bcm-button-ghost-link-color-disabled);background-color:var(--bcm-button-ghost-link-background-color-disabled);border-color:var(--bcm-button-ghost-link-border-disabled)}.bcm-button__container-kind-ghost-link .bcm-button__container-loading{color:var(--bcm-button-ghost-link-color-default);background-color:var(--bcm-button-ghost-link-background-color-default);border-color:var(--bcm-button-ghost-link-border-default)}.bcm-button__container[disabled]{cursor:not-allowed}.bcm-button__container-text{order:3;display:flex;align-items:center;gap:8px;white-space:nowrap}.bcm-button__container-icon{min-height:calc(12px + 8px)}.bcm-button__container-icon.prefix{order:2}.bcm-button__container-icon.suffix{order:4}.bcm-button__container-size-small{font-size:12px;line-height:calc(12px + 8px);padding:calc(4px - 3px) 12px;min-height:calc(calc(12px + 8px) + calc(calc(4px - 2px)) * 2)}.bcm-button__container-size-small .bcm-button__container-icon{min-height:calc(12px + 8px)}.bcm-button__container-size-medium{font-size:calc(12px + 1px);line-height:calc(12px + 8px);padding:calc(4px + 1px) 12px;min-height:calc(calc(12px + 8px) + calc(calc(4px + 2px)) * 2)}.bcm-button__container-size-medium .bcm-button__container-icon{min-height:calc(12px + 8px)}.bcm-button__container-size-large{font-size:16px;line-height:calc(16px + 8px);padding:calc(8px - 1px) 12px;min-height:calc(calc(16px + 8px) + (calc(8px) * 2))}.bcm-button__container-size-large .bcm-button__container-icon{min-height:calc(16px + 8px)}';const H=class{constructor(t){e(this,t),this.blur=n(this,"bcm-blur",7),this.focus=n(this,"bcm-focus",7),this.change=n(this,"bcm-change",7),this.changeCheckbox=n(this,"bcm-change-checkbox",7),this._id=l.UID(),this.inGroup=!1,this.value=!1,this.checked=!1,this.name=void 0,this.disabled=!1,this.hidden=!1,this.required=!1,this.label=void 0,this.readonly=!1,this.size=s.Size.medium,this.indeterminate=null,this.color="blue",this.caption=void 0,this.noCaption=!1,this.captionError=void 0,this.captionType=s.Status.default,this.captionCache=void 0,this.captionTypeCache=void 0}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType,this.value=this.checked}componentDidRender(){this.inputElement.checked=this.checked}async onBcmFocus(){this.el.focus()}async onBcmBlur(){this.el.blur()}async setClear(){return this.check(!1),this.handleChange(),await p(10),Promise.resolve()}async resetCaption(){return await p(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await p(10),Promise.resolve()}handleChange(){this.checked=this.inputElement.checked,this.value=this.checked,this.indeterminate||(this.changeCheckbox.emit(),this.change.emit({name:this.name,value:this.checked}))}watchIndeterminate(t,e){t!=e&&(this.inputElement.checked=this.indeterminate==s.IndeterminateType.determinate,this.handleChange())}async set(t){"boolean"==typeof t&&await this.check(t)}async get(){return this.checked||!1}async check(t=!0){this.inputElement.checked=t,this.handleChange()}handleKeyUp(t){if(t.keyCode==s.KeyCode.space||t.keyCode==s.KeyCode.enter)return this.disabled||this.readonly||(this.inputElement.checked=!this.inputElement.checked,this.handleChange()),t.stopPropagation(),t.preventDefault(),!1}watchChecked(){this.checked&&this.resetCaption(),this.value=this.checked}setColor(t=this.color){if(!t)return;const e="--bcm-checkbox";return{[`${e}-primary-color-default`]:b.dsColor(t+"-500"),[`${e}-primary-color-hover`]:b.dsColor(t+"-600"),[`${e}-primary-color-focus-visible`]:b.dsColor(t+"-800"),[`${e}-primary-color-active`]:b.dsColor(t+"-700"),[`${e}-secondary-color-default`]:b.dsColor("white"),[`${e}-secondary-color-hover`]:b.dsColor("slate-50"),[`${e}-secondary-color-focus-visible`]:b.dsColor("slate-50"),[`${e}-secondary-color-active`]:b.dsColor("slate-50")}}render(){const{label:e,_id:n,indeterminate:r,hidden:o,disabled:c,checked:a,readonly:l,required:u,caption:f,captionError:b,captionType:p,noCaption:v,size:g}=this,x=h("bcm-checkbox",`bcm-checkbox-size-${g}`,{error:p==s.Status.error,hidden:o,checked:a,disabled:c,required:u,readonly:l}),y=h("bcm-checkbox__label-icon","bcm-checkbox__label-icon-lite","bcm-checkbox__label-icon-"+r,{"bcm-checkbox__label-icon-checked":a}),w=h("bcm-checkbox__label"),k=h("bcm-checkbox__input");return t(i,{tabindex:"0",onFocus:()=>this.focus.emit(this.el),onBlur:()=>this.blur.emit(this.el),style:this.setColor(this.color),class:x,disabled:c},t("span",{hidden:!0},t("slot",null)),e&&t("bcm-label",{htmlFor:`input-${n}`,type:p,value:e,required:u}),t("div",{class:k},t("input",{id:`input-${n}`,type:"checkbox",checked:a,disabled:c,required:u,readonly:l,onChange:()=>{!c&&!l&&this.handleChange()},ref:t=>this.inputElement=t}),t("label",{class:w,htmlFor:`input-${n}`},t("span",{class:y},t("bcm-icon",{icon:"far fa-check"})),t(d,{className:"slot"}))),t(m,{noCaption:v,captionType:p,captionError:b,caption:f}))}get el(){return r(this)}static get watchers(){return{indeterminate:["watchIndeterminate"],checked:["watchChecked"]}}};(function(t,e,n,i){var r,o=arguments.length,c=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(c=(o<3?r(c):o>3?r(e,n,c):r(e,n))||c);o>3&&c&&Object.defineProperty(e,n,c)})([x()],H.prototype,"el",void 0),H.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0;display:none}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:"";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}';
|
|
6
|
+
/*
|
|
7
|
+
object-assign
|
|
8
|
+
(c) Sindre Sorhus
|
|
9
|
+
@license MIT
|
|
10
|
+
*/
|
|
11
|
+
var W=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;function B(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var G=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==i.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,i,r=B(t),o=1;o<arguments.length;o++){for(var c in n=Object(arguments[o]))V.call(n,c)&&(r[c]=n[c]);if(W){i=W(n);for(var a=0;a<i.length;a++)U.call(n,i[a])&&(r[i[a]]=n[i[a]])}}return r},q="function"==typeof Symbol&&Symbol.for,K=q?Symbol.for("react.element"):60103,Z=q?Symbol.for("react.portal"):60106,X=q?Symbol.for("react.fragment"):60107,Q=q?Symbol.for("react.strict_mode"):60108,J=q?Symbol.for("react.profiler"):60114,tt=q?Symbol.for("react.provider"):60109,et=q?Symbol.for("react.context"):60110,nt=q?Symbol.for("react.forward_ref"):60112,it=q?Symbol.for("react.suspense"):60113,rt=q?Symbol.for("react.memo"):60115,ot=q?Symbol.for("react.lazy"):60116,ct="function"==typeof Symbol&&Symbol.iterator;function at(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var lt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},st={};function ut(t,e,n){this.props=t,this.context=e,this.refs=st,this.updater=n||lt}function ht(){}function ft(t,e,n){this.props=t,this.context=e,this.refs=st,this.updater=n||lt}ut.prototype.isReactComponent={},ut.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(at(85));this.updater.enqueueSetState(this,t,e,"setState")},ut.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},ht.prototype=ut.prototype;var dt=ft.prototype=new ht;dt.constructor=ft,G(dt,ut.prototype),dt.isPureReactComponent=!0;var bt={current:null},mt=Object.prototype.hasOwnProperty,pt={key:!0,ref:!0,__self:!0,__source:!0};function vt(t,e,n){var i,r={},o=null,c=null;if(null!=e)for(i in void 0!==e.ref&&(c=e.ref),void 0!==e.key&&(o=""+e.key),e)mt.call(e,i)&&!pt.hasOwnProperty(i)&&(r[i]=e[i]);var a=arguments.length-2;if(1===a)r.children=n;else if(1<a){for(var l=Array(a),s=0;s<a;s++)l[s]=arguments[s+2];r.children=l}if(t&&t.defaultProps)for(i in a=t.defaultProps)void 0===r[i]&&(r[i]=a[i]);return{$$typeof:K,type:t,key:o,ref:c,props:r,_owner:bt.current}}function gt(t){return"object"==typeof t&&null!==t&&t.$$typeof===K}var xt=/\/+/g,yt=[];function wt(t,e,n,i){if(yt.length){var r=yt.pop();return r.result=t,r.keyPrefix=e,r.func=n,r.context=i,r.count=0,r}return{result:t,keyPrefix:e,func:n,context:i,count:0}}function kt(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>yt.length&&yt.push(t)}function _t(t,e,n,i){var r=typeof t;"undefined"!==r&&"boolean"!==r||(t=null);var o=!1;if(null===t)o=!0;else switch(r){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case K:case Z:o=!0}}if(o)return n(i,t,""===e?"."+Ct(t,0):e),1;if(o=0,e=""===e?".":e+":",Array.isArray(t))for(var c=0;c<t.length;c++){var a=e+Ct(r=t[c],c);o+=_t(r,a,n,i)}else if("function"==typeof(a=null===t||"object"!=typeof t?null:"function"==typeof(a=ct&&t[ct]||t["@@iterator"])?a:null))for(t=a.call(t),c=0;!(r=t.next()).done;)o+=_t(r=r.value,a=e+Ct(r,c++),n,i);else if("object"===r)throw n=""+t,Error(at(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return o}function zt(t,e,n){return null==t?0:_t(t,"",e,n)}function Ct(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function St(t,e){t.func.call(t.context,e,t.count++)}function Dt(t,e,n){var i=t.result,r=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?jt(t,i,n,(function(t){return t})):null!=t&&(gt(t)&&(t=function(t,e){return{$$typeof:K,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,r+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(xt,"$&/")+"/")+n)),i.push(t))}function jt(t,e,n,i,r){var o="";null!=n&&(o=(""+n).replace(xt,"$&/")+"/"),zt(t,Dt,e=wt(e,o,i,r)),kt(e)}var Mt={current:null};function Ot(){var t=Mt.current;if(null===t)throw Error(at(321));return t}var Et={map:function(t,e,n){if(null==t)return t;var i=[];return jt(t,i,null,e,n),i},forEach:function(t,e,n){if(null==t)return t;zt(t,St,e=wt(null,null,e,n)),kt(e)},count:function(t){return zt(t,(function(){return null}),null)},toArray:function(t){var e=[];return jt(t,e,null,(function(t){return t})),e},only:function(t){if(!gt(t))throw Error(at(143));return t}},Nt={Children:Et,Component:ut,Fragment:X,Profiler:J,PureComponent:ft,StrictMode:Q,Suspense:it,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:Mt,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:bt,IsSomeRendererActing:{current:!1},assign:G},cloneElement:function(t,e,n){if(null==t)throw Error(at(267,t));var i=G({},t.props),r=t.key,o=t.ref,c=t._owner;if(null!=e){if(void 0!==e.ref&&(o=e.ref,c=bt.current),void 0!==e.key&&(r=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)mt.call(e,l)&&!pt.hasOwnProperty(l)&&(i[l]=void 0===e[l]&&void 0!==a?a[l]:e[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){a=Array(l);for(var s=0;s<l;s++)a[s]=arguments[s+2];i.children=a}return{$$typeof:K,type:t.type,key:r,ref:o,props:i,_owner:c}},createContext:function(t,e){return void 0===e&&(e=null),(t={$$typeof:et,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:tt,_context:t},t.Consumer=t},createElement:vt,createFactory:function(t){var e=vt.bind(null,t);return e.type=t,e},createRef:function(){return{current:null}},forwardRef:function(t){return{$$typeof:nt,render:t}},isValidElement:gt,lazy:function(t){return{$$typeof:ot,_ctor:t,_status:-1,_result:null}},memo:function(t,e){return{$$typeof:rt,type:t,compare:void 0===e?null:e}},useCallback:function(t,e){return Ot().useCallback(t,e)},useContext:function(t,e){return Ot().useContext(t,e)},useDebugValue:function(){},useEffect:function(t,e){return Ot().useEffect(t,e)},useImperativeHandle:function(t,e,n){return Ot().useImperativeHandle(t,e,n)},useLayoutEffect:function(t,e){return Ot().useLayoutEffect(t,e)},useMemo:function(t,e){return Ot().useMemo(t,e)},useReducer:function(t,e,n){return Ot().useReducer(t,e,n)},useRef:function(t){return Ot().useRef(t)},useState:function(t){return Ot().useState(t)},version:"16.14.0"};y((function(){}));var Tt=y((function(t){t.exports=Nt}));const It=Object.freeze(Object.assign(Object.create(null),Tt,{default:Tt}));var Rt=y((function(t,e){var n,i,r,o,c;if("undefined"==typeof window||"function"!=typeof MessageChannel){var a=null,l=null,s=function(){if(null!==a)try{var t=e.unstable_now();a(!0,t),a=null}catch(t){throw setTimeout(s,0),t}},u=Date.now();e.unstable_now=function(){return Date.now()-u},n=function(t){null!==a?setTimeout(n,0,t):(a=t,setTimeout(s,0))},i=function(t,e){l=setTimeout(t,e)},r=function(){clearTimeout(l)},o=function(){return!1},c=e.unstable_forceFrameRate=function(){}}else{var h=window.performance,f=window.Date,d=window.setTimeout,b=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof h&&"function"==typeof h.now)e.unstable_now=function(){return h.now()};else{var p=f.now();e.unstable_now=function(){return f.now()-p}}var v=!1,g=null,x=-1,y=5,w=0;o=function(){return e.unstable_now()>=w},c=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):y=0<t?Math.floor(1e3/t):5};var k=new MessageChannel,_=k.port2;k.port1.onmessage=function(){if(null!==g){var t=e.unstable_now();w=t+y;try{g(!0,t)?_.postMessage(null):(v=!1,g=null)}catch(t){throw _.postMessage(null),t}}else v=!1},n=function(t){g=t,v||(v=!0,_.postMessage(null))},i=function(t,n){x=d((function(){t(e.unstable_now())}),n)},r=function(){b(x),x=-1}}function z(t,e){var n=t.length;t.push(e);t:for(;;){var i=n-1>>>1,r=t[i];if(!(void 0!==r&&0<D(r,e)))break t;t[i]=e,t[n]=r,n=i}}function C(t){return void 0===(t=t[0])?null:t}function S(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var i=0,r=t.length;i<r;){var o=2*(i+1)-1,c=t[o],a=o+1,l=t[a];if(void 0!==c&&0>D(c,n))void 0!==l&&0>D(l,c)?(t[i]=l,t[a]=n,i=a):(t[i]=c,t[o]=n,i=o);else{if(!(void 0!==l&&0>D(l,n)))break t;t[i]=l,t[a]=n,i=a}}}return e}return null}function D(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var j=[],M=[],O=1,E=null,N=3,T=!1,I=!1,R=!1;function Y(t){for(var e=C(M);null!==e;){if(null===e.callback)S(M);else{if(!(e.startTime<=t))break;S(M),e.sortIndex=e.expirationTime,z(j,e)}e=C(M)}}function A(t){if(R=!1,Y(t),!I)if(null!==C(j))I=!0,n(P);else{var e=C(M);null!==e&&i(A,e.startTime-t)}}function P(t,n){I=!1,R&&(R=!1,r()),T=!0;var c=N;try{for(Y(n),E=C(j);null!==E&&(!(E.expirationTime>n)||t&&!o());){var a=E.callback;if(null!==a){E.callback=null,N=E.priorityLevel;var l=a(E.expirationTime<=n);n=e.unstable_now(),"function"==typeof l?E.callback=l:E===C(j)&&S(j),Y(n)}else S(j);E=C(j)}if(null!==E)var s=!0;else{var u=C(M);null!==u&&i(A,u.startTime-n),s=!1}return s}finally{E=null,N=c,T=!1}}function F(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var $=c;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(t){t.callback=null},e.unstable_continueExecution=function(){I||T||(I=!0,n(P))},e.unstable_getCurrentPriorityLevel=function(){return N},e.unstable_getFirstCallbackNode=function(){return C(j)},e.unstable_next=function(t){switch(N){case 1:case 2:case 3:var e=3;break;default:e=N}var n=N;N=e;try{return t()}finally{N=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=$,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=N;N=t;try{return e()}finally{N=n}},e.unstable_scheduleCallback=function(t,o,c){var a=e.unstable_now();if("object"==typeof c&&null!==c){var l=c.delay;l="number"==typeof l&&0<l?a+l:a,c="number"==typeof c.timeout?c.timeout:F(t)}else c=F(t),l=a;return t={id:O++,callback:o,priorityLevel:t,startTime:l,expirationTime:c=l+c,sortIndex:-1},l>a?(t.sortIndex=l,z(M,t),null===C(j)&&t===C(M)&&(R?r():R=!0,i(A,l-a))):(t.sortIndex=c,z(j,t),I||T||(I=!0,n(P))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();Y(t);var n=C(j);return n!==E&&null!==E&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<E.expirationTime||o()},e.unstable_wrapCallback=function(t){var e=N;return function(){var n=N;N=e;try{return t.apply(this,arguments)}finally{N=n}}}}));y((function(){}));var Yt=y((function(t){t.exports=Rt}));function At(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Tt)throw Error(At(227));function Pt(t,e,n,i,r,o,c,a,l){var s=Array.prototype.slice.call(arguments,3);try{e.apply(n,s)}catch(t){this.onError(t)}}var Ft=!1,$t=null,Lt=!1,Ht=null,Wt={onError:function(t){Ft=!0,$t=t}};function Vt(t,e,n,i,r,o,c,a,l){Ft=!1,$t=null,Pt.apply(Wt,arguments)}var Ut=null,Bt=null,Gt=null;function qt(t,e,n){var i=t.type||"unknown-event";t.currentTarget=Gt(n),function(t,e,n,i,r,o,c,a,l){if(Vt.apply(this,arguments),Ft){if(!Ft)throw Error(At(198));var s=$t;Ft=!1,$t=null,Lt||(Lt=!0,Ht=s)}}(i,e,void 0,t),t.currentTarget=null}var Kt=null,Zt={};function Xt(){if(Kt)for(var t in Zt){var e=Zt[t],n=Kt.indexOf(t);if(!(-1<n))throw Error(At(96,t));if(!Jt[n]){if(!e.extractEvents)throw Error(At(97,t));for(var i in Jt[n]=e,n=e.eventTypes){var r=void 0,o=n[i],c=e,a=i;if(te.hasOwnProperty(a))throw Error(At(99,a));te[a]=o;var l=o.phasedRegistrationNames;if(l){for(r in l)l.hasOwnProperty(r)&&Qt(l[r],c,a);r=!0}else o.registrationName?(Qt(o.registrationName,c,a),r=!0):r=!1;if(!r)throw Error(At(98,i,t))}}}}function Qt(t,e,n){if(ee[t])throw Error(At(100,t));ee[t]=e,ne[t]=e.eventTypes[n].dependencies}var Jt=[],te={},ee={},ne={};function ie(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var i=t[e];if(!Zt.hasOwnProperty(e)||Zt[e]!==i){if(Zt[e])throw Error(At(102,e));Zt[e]=i,n=!0}}n&&Xt()}var re=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),oe=null,ce=null,ae=null;function le(t){if(t=Bt(t)){if("function"!=typeof oe)throw Error(At(280));var e=t.stateNode;e&&(e=Ut(e),oe(t.stateNode,t.type,e))}}function se(t){ce?ae?ae.push(t):ae=[t]:ce=t}function ue(){if(ce){var t=ce,e=ae;if(ae=ce=null,le(t),e)for(t=0;t<e.length;t++)le(e[t])}}function he(t,e){return t(e)}function fe(t,e,n,i,r){return t(e,n,i,r)}function de(){}var be=he,me=!1,pe=!1;function ve(){null===ce&&null===ae||(de(),ue())}function ge(t,e,n){if(pe)return t(e,n);pe=!0;try{return be(t,e,n)}finally{pe=!1,ve()}}var xe=/^[: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]*$/,ye=Object.prototype.hasOwnProperty,we={},ke={};function _e(t,e,n,i,r,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o}var ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){ze[t]=new _e(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];ze[e]=new _e(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){ze[t]=new _e(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){ze[t]=new _e(t,2,!1,t,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){ze[t]=new _e(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){ze[t]=new _e(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){ze[t]=new _e(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){ze[t]=new _e(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){ze[t]=new _e(t,5,!1,t.toLowerCase(),null,!1)}));var Ce=/[\-:]([a-z])/g;function Se(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(Ce,Se);ze[e]=new _e(e,1,!1,t,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(Ce,Se);ze[e]=new _e(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(Ce,Se);ze[e]=new _e(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){ze[t]=new _e(t,1,!1,t.toLowerCase(),null,!1)})),ze.xlinkHref=new _e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){ze[t]=new _e(t,1,!1,t.toLowerCase(),null,!0)}));var De=Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function je(t,e,n,i){var r=ze.hasOwnProperty(e)?ze[e]:null;(null!==r?0===r.type:!i&&2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1]))||(function(t,e,n,i){if(null==e||function(t,e,n,i){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,r,i)&&(n=null),i||null===r?function(t){return!!ye.call(ke,t)||!ye.call(we,t)&&(xe.test(t)?ke[t]=!0:(we[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):r.mustUseProperty?t[r.propertyName]=null===n?3!==r.type&&"":n:(e=r.attributeName,i=r.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,i?t.setAttributeNS(i,e,n):t.setAttribute(e,n))))}De.hasOwnProperty("ReactCurrentDispatcher")||(De.ReactCurrentDispatcher={current:null}),De.hasOwnProperty("ReactCurrentBatchConfig")||(De.ReactCurrentBatchConfig={suspense:null});var Me=/^(.*)[\\\/]/,Oe="function"==typeof Symbol&&Symbol.for,Ee=Oe?Symbol.for("react.element"):60103,Ne=Oe?Symbol.for("react.portal"):60106,Te=Oe?Symbol.for("react.fragment"):60107,Ie=Oe?Symbol.for("react.strict_mode"):60108,Re=Oe?Symbol.for("react.profiler"):60114,Ye=Oe?Symbol.for("react.provider"):60109,Ae=Oe?Symbol.for("react.context"):60110,Pe=Oe?Symbol.for("react.concurrent_mode"):60111,Fe=Oe?Symbol.for("react.forward_ref"):60112,$e=Oe?Symbol.for("react.suspense"):60113,Le=Oe?Symbol.for("react.suspense_list"):60120,He=Oe?Symbol.for("react.memo"):60115,We=Oe?Symbol.for("react.lazy"):60116,Ve=Oe?Symbol.for("react.block"):60121,Ue="function"==typeof Symbol&&Symbol.iterator;function Be(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=Ue&&t[Ue]||t["@@iterator"])?t:null}function Ge(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case Te:return"Fragment";case Ne:return"Portal";case Re:return"Profiler";case Ie:return"StrictMode";case $e:return"Suspense";case Le:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case Ae:return"Context.Consumer";case Ye:return"Context.Provider";case Fe:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case He:return Ge(t.type);case Ve:return Ge(t.render);case We:if(t=1===t._status?t._result:null)return Ge(t)}return null}function qe(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var i=t._debugOwner,r=t._debugSource,o=Ge(t.type);n=null,i&&(n=Ge(i.type)),i=o,o="",r?o=" (at "+r.fileName.replace(Me,"")+":"+r.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(i||"Unknown")+o}e+=n,t=t.return}while(t);return e}function Ke(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function Ze(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function Xe(t){t._valueTracker||(t._valueTracker=function(t){var e=Ze(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(t){i=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(t){i=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function Qe(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Ze(t)?t.checked?"true":"false":t.value),(t=i)!==n&&(e.setValue(t),!0)}function Je(t,e){var n=e.checked;return G({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function tn(t,e){var n=null==e.defaultValue?"":e.defaultValue,i=null!=e.checked?e.checked:e.defaultChecked;n=Ke(null!=e.value?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function en(t,e){null!=(e=e.checked)&&je(t,"checked",e,!1)}function nn(t,e){en(t,e);var n=Ke(e.value),i=e.type;if(null!=n)"number"===i?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===i||"reset"===i)return void t.removeAttribute("value");e.hasOwnProperty("value")?on(t,e.type,n):e.hasOwnProperty("defaultValue")&&on(t,e.type,Ke(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function rn(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(("submit"===i||"reset"===i)&&null==e.value)return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function on(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function cn(t,e){return t=G({children:void 0},e),(e=function(t){var e="";return Tt.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function an(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&i&&(t[n].defaultSelected=!0)}else{for(n=""+Ke(n),e=null,r=0;r<t.length;r++){if(t[r].value===n)return t[r].selected=!0,void(i&&(t[r].defaultSelected=!0));null!==e||t[r].disabled||(e=t[r])}null!==e&&(e.selected=!0)}}function ln(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(At(91));return G({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function sn(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(At(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(At(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:Ke(n)}}function un(t,e){var n=Ke(e.value),i=Ke(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=i&&(t.defaultValue=""+i)}function hn(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}function fn(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function dn(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?fn(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var bn,mn,pn=(mn=function(t,e){if("http://www.w3.org/2000/svg"!==t.namespaceURI||"innerHTML"in t)t.innerHTML=e;else{for((bn=bn||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=bn.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e){MSApp.execUnsafeLocalFunction((function(){return mn(t,e)}))}:mn);function vn(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function gn(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var xn={animationend:gn("Animation","AnimationEnd"),animationiteration:gn("Animation","AnimationIteration"),animationstart:gn("Animation","AnimationStart"),transitionend:gn("Transition","TransitionEnd")},yn={},wn={};function kn(t){if(yn[t])return yn[t];if(!xn[t])return t;var e,n=xn[t];for(e in n)if(n.hasOwnProperty(e)&&e in wn)return yn[t]=n[e];return t}re&&(wn=document.createElement("div").style,"AnimationEvent"in window||(delete xn.animationend.animation,delete xn.animationiteration.animation,delete xn.animationstart.animation),"TransitionEvent"in window||delete xn.transitionend.transition);var _n=kn("animationend"),zn=kn("animationiteration"),Cn=kn("animationstart"),Sn=kn("transitionend"),Dn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jn=new("function"==typeof WeakMap?WeakMap:Map);function Mn(t){var e=jn.get(t);return void 0===e&&(e=new Map,jn.set(t,e)),e}function On(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!=(1026&(e=t).effectTag)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function En(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&null!==(t=t.alternate)&&(e=t.memoizedState),null!==e)return e.dehydrated}return null}function Nn(t){if(On(t)!==t)throw Error(At(188))}function Tn(t){if(t=function(t){var e=t.alternate;if(!e){if(null===(e=On(t)))throw Error(At(188));return e!==t?null:t}for(var n=t,i=e;;){var r=n.return;if(null===r)break;var o=r.alternate;if(null===o){if(null!==(i=r.return)){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return Nn(r),t;if(o===i)return Nn(r),e;o=o.sibling}throw Error(At(188))}if(n.return!==i.return)n=r,i=o;else{for(var c=!1,a=r.child;a;){if(a===n){c=!0,n=r,i=o;break}if(a===i){c=!0,i=r,n=o;break}a=a.sibling}if(!c){for(a=o.child;a;){if(a===n){c=!0,n=o,i=r;break}if(a===i){c=!0,i=o,n=r;break}a=a.sibling}if(!c)throw Error(At(189))}}if(n.alternate!==i)throw Error(At(190))}if(3!==n.tag)throw Error(At(188));return n.stateNode.current===n?t:e}(t),!t)return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function In(t,e){if(null==e)throw Error(At(30));return null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function Rn(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var Yn=null;function An(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var i=0;i<e.length&&!t.isPropagationStopped();i++)qt(t,e[i],n[i]);else e&&qt(t,e,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function Pn(t){if(null!==t&&(Yn=In(Yn,t)),t=Yn,Yn=null,t){if(Rn(t,An),Yn)throw Error(At(95));if(Lt)throw t=Ht,Lt=!1,Ht=null,t}}function Fn(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function $n(t){if(!re)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"==typeof e[t]),e}var Ln=[];function Hn(t){t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>Ln.length&&Ln.push(t)}function Wn(t,e,n,i){if(Ln.length){var r=Ln.pop();return r.topLevelType=t,r.eventSystemFlags=i,r.nativeEvent=e,r.targetInst=n,r}return{topLevelType:t,eventSystemFlags:i,nativeEvent:e,targetInst:n,ancestors:[]}}function Vn(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var i=n;if(3===i.tag)i=i.stateNode.containerInfo;else{for(;i.return;)i=i.return;i=3!==i.tag?null:i.stateNode.containerInfo}if(!i)break;5!==(e=n.tag)&&6!==e||t.ancestors.push(n),n=cr(i)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var r=Fn(t.nativeEvent);i=t.topLevelType;var o=t.nativeEvent,c=t.eventSystemFlags;0===n&&(c|=64);for(var a=null,l=0;l<Jt.length;l++){var s=Jt[l];s&&(s=s.extractEvents(i,e,o,r,c))&&(a=In(a,s))}Pn(a)}}function Un(t,e,n){if(!n.has(t)){switch(t){case"scroll":Ci(e,"scroll",!0);break;case"focus":case"blur":Ci(e,"focus",!0),Ci(e,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":$n(t)&&Ci(e,t,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Dn.indexOf(t)&&zi(t,e)}n.set(t,null)}}var Bn,Gn,qn,Kn=!1,Zn=[],Xn=null,Qn=null,Jn=null,ti=new Map,ei=new Map,ni=[],ii="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),ri="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function oi(t,e,n,i,r){return{blockedOn:t,topLevelType:e,eventSystemFlags:32|n,nativeEvent:r,container:i}}function ci(t,e){switch(t){case"focus":case"blur":Xn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":ti.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ei.delete(e.pointerId)}}function ai(t,e,n,i,r,o){return null===t||t.nativeEvent!==o?(t=oi(e,n,i,r,o),null!==e&&null!==(e=ar(e))&&Gn(e),t):(t.eventSystemFlags|=i,t)}function li(t){var e=cr(t.target);if(null!==e){var n=On(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=En(n)))return t.blockedOn=e,void Yt.unstable_runWithPriority(t.priority,(function(){qn(n)}))}else if(3===e&&n.stateNode.hydrate)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function si(t){if(null!==t.blockedOn)return!1;var e=Mi(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);if(null!==e){var n=ar(e);return null!==n&&Gn(n),t.blockedOn=e,!1}return!0}function ui(t,e,n){si(t)&&n.delete(e)}function hi(){for(Kn=!1;0<Zn.length;){var t=Zn[0];if(null!==t.blockedOn){null!==(t=ar(t.blockedOn))&&Bn(t);break}var e=Mi(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);null!==e?t.blockedOn=e:Zn.shift()}null!==Xn&&si(Xn)&&(Xn=null),null!==Qn&&si(Qn)&&(Qn=null),null!==Jn&&si(Jn)&&(Jn=null),ti.forEach(ui),ei.forEach(ui)}function fi(t,e){t.blockedOn===e&&(t.blockedOn=null,Kn||(Kn=!0,Yt.unstable_scheduleCallback(Yt.unstable_NormalPriority,hi)))}function di(t){function e(e){return fi(e,t)}if(0<Zn.length){fi(Zn[0],t);for(var n=1;n<Zn.length;n++){var i=Zn[n];i.blockedOn===t&&(i.blockedOn=null)}}for(null!==Xn&&fi(Xn,t),null!==Qn&&fi(Qn,t),null!==Jn&&fi(Jn,t),ti.forEach(e),ei.forEach(e),n=0;n<ni.length;n++)(i=ni[n]).blockedOn===t&&(i.blockedOn=null);for(;0<ni.length&&null===(n=ni[0]).blockedOn;)li(n),null===n.blockedOn&&ni.shift()}var bi={},mi=new Map,pi=new Map,vi=["abort","abort",_n,"animationEnd",zn,"animationIteration",Cn,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Sn,"transitionEnd","waiting","waiting"];function gi(t,e){for(var n=0;n<t.length;n+=2){var i=t[n],r=t[n+1],o="on"+(r[0].toUpperCase()+r.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[i],eventPriority:e},pi.set(i,e),mi.set(i,o),bi[r]=o}}gi("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),gi("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),gi(vi,2);for(var xi="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),yi=0;yi<xi.length;yi++)pi.set(xi[yi],0);var wi=Yt.unstable_UserBlockingPriority,ki=Yt.unstable_runWithPriority,_i=!0;function zi(t,e){Ci(e,t,!1)}function Ci(t,e,n){var i=pi.get(e);switch(void 0===i?2:i){case 0:i=Si.bind(null,e,1,t);break;case 1:i=Di.bind(null,e,1,t);break;default:i=ji.bind(null,e,1,t)}t.addEventListener(e,i,!!n)}function Si(t,e,n,i){me||de();var r=ji,o=me;me=!0;try{fe(r,t,e,n,i)}finally{(me=o)||ve()}}function Di(t,e,n,i){ki(wi,ji.bind(null,t,e,n,i))}function ji(t,e,n,i){if(_i)if(0<Zn.length&&-1<ii.indexOf(t))t=oi(null,t,e,n,i),Zn.push(t);else{var r=Mi(t,e,n,i);if(null===r)ci(t,i);else if(-1<ii.indexOf(t))t=oi(r,t,e,n,i),Zn.push(t);else if(!function(t,e,n,i,r){switch(e){case"focus":return Xn=ai(Xn,t,e,n,i,r),!0;case"dragenter":return Qn=ai(Qn,t,e,n,i,r),!0;case"mouseover":return Jn=ai(Jn,t,e,n,i,r),!0;case"pointerover":var o=r.pointerId;return ti.set(o,ai(ti.get(o)||null,t,e,n,i,r)),!0;case"gotpointercapture":return ei.set(o=r.pointerId,ai(ei.get(o)||null,t,e,n,i,r)),!0}return!1}(r,t,e,n,i)){ci(t,i),t=Wn(t,i,null,e);try{ge(Vn,t)}finally{Hn(t)}}}}function Mi(t,e,n,i){if(null!==(n=cr(n=Fn(i)))){var r=On(n);if(null===r)n=null;else{var o=r.tag;if(13===o){if(null!==(n=En(r)))return n;n=null}else if(3===o){if(r.stateNode.hydrate)return 3===r.tag?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}t=Wn(t,i,n,e);try{ge(Vn,t)}finally{Hn(t)}return null}var Oi={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ei=["Webkit","ms","Moz","O"];function Ni(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||Oi.hasOwnProperty(t)&&Oi[t]?(""+e).trim():e+"px"}function Ti(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=Ni(n,e[n],i);"float"===n&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}Object.keys(Oi).forEach((function(t){Ei.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Oi[e]=Oi[t]}))}));var Ii=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ri(t,e){if(e){if(Ii[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(At(137,t,""));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(At(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(At(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(At(62,""))}}function Yi(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){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 Ai="http://www.w3.org/1999/xhtml";function Pi(t,e){var n=Mn(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=ne[e];for(var i=0;i<e.length;i++)Un(e[i],t,n)}function Fi(){}function $i(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function Li(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Hi(t,e){var n,i=Li(t);for(t=0;i;){if(3===i.nodeType){if(n=t+i.textContent.length,t<=e&&n>=e)return{node:i,offset:e-t};t=n}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=Li(i)}}function Wi(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?Wi(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function Vi(){for(var t=window,e=$i();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(t){n=!1}if(!n)break;e=$i((t=e.contentWindow).document)}return e}function Ui(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var Bi="$?",Gi="$!",qi=null,Ki=null;function Zi(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function Xi(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var Qi="function"==typeof setTimeout?setTimeout:void 0,Ji="function"==typeof clearTimeout?clearTimeout:void 0;function tr(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function er(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||n===Gi||n===Bi){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var nr=Math.random().toString(36).slice(2),ir="__reactInternalInstance$"+nr,rr="__reactEventHandlers$"+nr,or="__reactContainere$"+nr;function cr(t){var e=t[ir];if(e)return e;for(var n=t.parentNode;n;){if(e=n[or]||n[ir]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=er(t);null!==t;){if(n=t[ir])return n;t=er(t)}return e}n=(t=n).parentNode}return null}function ar(t){return!(t=t[ir]||t[or])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function lr(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(At(33))}function sr(t){return t[rr]||null}function ur(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function hr(t,e){var n=t.stateNode;if(!n)return null;var i=Ut(n);if(!i)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!i;break t;default:t=!1}if(t)return null;if(n&&"function"!=typeof n)throw Error(At(231,e,typeof n));return n}function fr(t,e,n){(e=hr(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=In(n._dispatchListeners,e),n._dispatchInstances=In(n._dispatchInstances,t))}function dr(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=ur(e);for(e=n.length;0<e--;)fr(n[e],"captured",t);for(e=0;e<n.length;e++)fr(n[e],"bubbled",t)}}function br(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=hr(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=In(n._dispatchListeners,e),n._dispatchInstances=In(n._dispatchInstances,t))}function mr(t){t&&t.dispatchConfig.registrationName&&br(t._targetInst,null,t)}function pr(t){Rn(t,dr)}var vr=null,gr=null,xr=null;function yr(){if(xr)return xr;var t,e,n=gr,i=n.length,r="value"in vr?vr.value:vr.textContent,o=r.length;for(t=0;t<i&&n[t]===r[t];t++);var c=i-t;for(e=1;e<=c&&n[i-e]===r[o-e];e++);return xr=r.slice(t,1<e?1-e:void 0)}function wr(){return!0}function kr(){return!1}function _r(t,e,n,i){for(var r in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface)t.hasOwnProperty(r)&&((e=t[r])?this[r]=e(n):"target"===r?this.target=i:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?wr:kr,this.isPropagationStopped=kr,this}function zr(t,e,n,i){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,t,e,n,i),r}return new this(t,e,n,i)}function Cr(t){if(!(t instanceof this))throw Error(At(279));t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function Sr(t){t.eventPool=[],t.getPooled=zr,t.release=Cr}G(_r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=wr)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=wr)},persist:function(){this.isPersistent=wr},isPersistent:kr,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=kr,this._dispatchInstances=this._dispatchListeners=null}}),_r.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},_r.extend=function(t){function e(){}function n(){return i.apply(this,arguments)}var i=this;e.prototype=i.prototype;var r=new e;return G(r,n.prototype),(n.prototype=r).constructor=n,n.Interface=G({},i.Interface,t),n.extend=i.extend,Sr(n),n},Sr(_r);var Dr=_r.extend({data:null}),jr=_r.extend({data:null}),Mr=[9,13,27,32],Or=re&&"CompositionEvent"in window,Er=null;re&&"documentMode"in document&&(Er=document.documentMode);var Nr=re&&"TextEvent"in window&&!Er,Tr=re&&(!Or||Er&&8<Er&&11>=Er),Ir=String.fromCharCode(32),Rr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Yr=!1;function Ar(t,e){switch(t){case"keyup":return-1!==Mr.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Pr(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Fr=!1,$r={eventTypes:Rr,extractEvents:function(t,e,n,i){var r;if(Or)t:{switch(t){case"compositionstart":var o=Rr.compositionStart;break t;case"compositionend":o=Rr.compositionEnd;break t;case"compositionupdate":o=Rr.compositionUpdate;break t}o=void 0}else Fr?Ar(t,n)&&(o=Rr.compositionEnd):"keydown"===t&&229===n.keyCode&&(o=Rr.compositionStart);return o?(Tr&&"ko"!==n.locale&&(Fr||o!==Rr.compositionStart?o===Rr.compositionEnd&&Fr&&(r=yr()):(gr="value"in(vr=i)?vr.value:vr.textContent,Fr=!0)),o=Dr.getPooled(o,e,n,i),(r||null!==(r=Pr(n)))&&(o.data=r),pr(o),r=o):r=null,(t=Nr?function(t,e){switch(t){case"compositionend":return Pr(e);case"keypress":return 32!==e.which?null:(Yr=!0,Ir);case"textInput":return(t=e.data)===Ir&&Yr?null:t;default:return null}}(t,n):function(t,e){if(Fr)return"compositionend"===t||!Or&&Ar(t,e)?(t=yr(),xr=gr=vr=null,Fr=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Tr&&"ko"!==e.locale?null:e.data}}(t,n))?((e=jr.getPooled(Rr.beforeInput,e,n,i)).data=t,pr(e)):e=null,null===r?e:null===e?r:[r,e]}},Lr={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 Hr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Lr[t.type]:"textarea"===e}var Wr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Vr(t,e,n){return(t=_r.getPooled(Wr.change,t,e,n)).type="change",se(n),pr(t),t}var Ur=null,Br=null;function Gr(t){Pn(t)}function qr(t){if(Qe(lr(t)))return t}function Kr(t,e){if("change"===t)return e}var Zr=!1;function Xr(){Ur&&(Ur.detachEvent("onpropertychange",Qr),Br=Ur=null)}function Qr(t){if("value"===t.propertyName&&qr(Br))if(t=Vr(Br,t,Fn(t)),me)Pn(t);else{me=!0;try{he(Gr,t)}finally{me=!1,ve()}}}function Jr(t,e,n){"focus"===t?(Xr(),Br=n,(Ur=e).attachEvent("onpropertychange",Qr)):"blur"===t&&Xr()}function to(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return qr(Br)}function eo(t,e){if("click"===t)return qr(e)}function no(t,e){if("input"===t||"change"===t)return qr(e)}re&&(Zr=$n("input")&&(!document.documentMode||9<document.documentMode));var io={eventTypes:Wr,_isInputEventSupported:Zr,extractEvents:function(t,e,n,i){var r=e?lr(e):window,o=r.nodeName&&r.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===r.type)var c=Kr;else if(Hr(r))if(Zr)c=no;else{c=to;var a=Jr}else(o=r.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(c=eo);if(c&&(c=c(t,e)))return Vr(c,n,i);a&&a(t,r,e),"blur"===t&&(t=r._wrapperState)&&t.controlled&&"number"===r.type&&on(r,"number",r.value)}},ro=_r.extend({view:null,detail:null}),oo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function co(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=oo[t])&&!!e[t]}function ao(){return co}var lo=0,so=0,uo=!1,ho=!1,fo=ro.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:ao,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=lo;return lo=t.screenX,uo?"mousemove"===t.type?t.screenX-e:0:(uo=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=so;return so=t.screenY,ho?"mousemove"===t.type?t.screenY-e:0:(ho=!0,0)}}),bo=fo.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),mo={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},po={eventTypes:mo,extractEvents:function(t,e,n,i,r){var o="mouseover"===t||"pointerover"===t,c="mouseout"===t||"pointerout"===t;if(o&&0==(32&r)&&(n.relatedTarget||n.fromElement)||!c&&!o)return null;if(o=i.window===i?i:(o=i.ownerDocument)?o.defaultView||o.parentWindow:window,c?(c=e,null!==(e=(e=n.relatedTarget||n.toElement)?cr(e):null)&&(e!==On(e)||5!==e.tag&&6!==e.tag)&&(e=null)):c=null,c===e)return null;if("mouseout"===t||"mouseover"===t)var a=fo,l=mo.mouseLeave,s=mo.mouseEnter,u="mouse";else"pointerout"!==t&&"pointerover"!==t||(a=bo,l=mo.pointerLeave,s=mo.pointerEnter,u="pointer");if(t=null==c?o:lr(c),o=null==e?o:lr(e),(l=a.getPooled(l,c,n,i)).type=u+"leave",l.target=t,l.relatedTarget=o,(n=a.getPooled(s,e,n,i)).type=u+"enter",n.target=o,n.relatedTarget=t,u=e,(i=c)&&u)t:{for(s=u,c=0,t=a=i;t;t=ur(t))c++;for(t=0,e=s;e;e=ur(e))t++;for(;0<c-t;)a=ur(a),c--;for(;0<t-c;)s=ur(s),t--;for(;c--;){if(a===s||a===s.alternate)break t;a=ur(a),s=ur(s)}a=null}else a=null;for(s=a,a=[];i&&i!==s&&(null===(c=i.alternate)||c!==s);)a.push(i),i=ur(i);for(i=[];u&&u!==s&&(null===(c=u.alternate)||c!==s);)i.push(u),u=ur(u);for(u=0;u<a.length;u++)br(a[u],"bubbled",l);for(u=i.length;0<u--;)br(i[u],"captured",n);return 0==(64&r)?[l]:[l,n]}},vo="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},go=Object.prototype.hasOwnProperty;function xo(t,e){if(vo(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++)if(!go.call(e,n[i])||!vo(t[n[i]],e[n[i]]))return!1;return!0}var yo=re&&"documentMode"in document&&11>=document.documentMode,wo={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},ko=null,_o=null,zo=null,Co=!1;function So(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Co||null==ko||ko!==$i(n)?null:(n="selectionStart"in(n=ko)&&Ui(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},zo&&xo(zo,n)?null:(zo=n,(t=_r.getPooled(wo.select,_o,t,e)).type="select",t.target=ko,pr(t),t))}var Do={eventTypes:wo,extractEvents:function(t,e,n,i,r,o){if(!(o=!(r=o||(i.window===i?i.document:9===i.nodeType?i:i.ownerDocument)))){t:{r=Mn(r),o=ne.onSelect;for(var c=0;c<o.length;c++)if(!r.has(o[c])){r=!1;break t}r=!0}o=!r}if(o)return null;switch(r=e?lr(e):window,t){case"focus":(Hr(r)||"true"===r.contentEditable)&&(ko=r,_o=e,zo=null);break;case"blur":zo=_o=ko=null;break;case"mousedown":Co=!0;break;case"contextmenu":case"mouseup":case"dragend":return Co=!1,So(n,i);case"selectionchange":if(yo)break;case"keydown":case"keyup":return So(n,i)}return null}},jo=_r.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Mo=_r.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Oo=ro.extend({relatedTarget:null});function Eo(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var No={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},To={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"},Io=ro.extend({key:function(t){if(t.key){var e=No[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=Eo(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?To[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:ao,charCode:function(t){return"keypress"===t.type?Eo(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Eo(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),Ro=fo.extend({dataTransfer:null}),Yo=ro.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:ao}),Ao=_r.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),Po=fo.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),Fo={eventTypes:bi,extractEvents:function(t,e,n,i){var r=mi.get(t);if(!r)return null;switch(t){case"keypress":if(0===Eo(n))return null;case"keydown":case"keyup":t=Io;break;case"blur":case"focus":t=Oo;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=fo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=Ro;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=Yo;break;case _n:case zn:case Cn:t=jo;break;case Sn:t=Ao;break;case"scroll":t=ro;break;case"wheel":t=Po;break;case"copy":case"cut":case"paste":t=Mo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=bo;break;default:t=_r}return pr(e=t.getPooled(r,e,n,i)),e}};if(Kt)throw Error(At(101));Kt=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Xt(),Ut=sr,Bt=ar,Gt=lr,ie({SimpleEventPlugin:Fo,EnterLeaveEventPlugin:po,ChangeEventPlugin:io,SelectEventPlugin:Do,BeforeInputEventPlugin:$r});var $o=[],Lo=-1;function Ho(t){0>Lo||(t.current=$o[Lo],$o[Lo]=null,Lo--)}function Wo(t,e){Lo++,$o[Lo]=t.current,t.current=e}var Vo={},Uo={current:Vo},Bo={current:!1},Go=Vo;function qo(t,e){var n=t.type.contextTypes;if(!n)return Vo;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in n)o[r]=e[r];return i&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Ko(t){return null!=t.childContextTypes}function Zo(){Ho(Bo),Ho(Uo)}function Xo(t,e,n){if(Uo.current!==Vo)throw Error(At(168));Wo(Uo,e),Wo(Bo,n)}function Qo(t,e,n){var i=t.stateNode;if(t=e.childContextTypes,"function"!=typeof i.getChildContext)return n;for(var r in i=i.getChildContext())if(!(r in t))throw Error(At(108,Ge(e)||"Unknown",r));return G({},n,{},i)}function Jo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Vo,Go=Uo.current,Wo(Uo,t),Wo(Bo,Bo.current),!0}function tc(t,e,n){var i=t.stateNode;if(!i)throw Error(At(169));n?(t=Qo(t,e,Go),i.__reactInternalMemoizedMergedChildContext=t,Ho(Bo),Ho(Uo),Wo(Uo,t)):Ho(Bo),Wo(Bo,n)}var ec=Yt.unstable_runWithPriority,nc=Yt.unstable_scheduleCallback,ic=Yt.unstable_cancelCallback,rc=Yt.unstable_requestPaint,oc=Yt.unstable_now,cc=Yt.unstable_getCurrentPriorityLevel,ac=Yt.unstable_ImmediatePriority,lc=Yt.unstable_UserBlockingPriority,sc=Yt.unstable_NormalPriority,uc=Yt.unstable_LowPriority,hc=Yt.unstable_IdlePriority,fc={},dc=Yt.unstable_shouldYield,bc=void 0!==rc?rc:function(){},mc=null,pc=null,vc=!1,gc=oc(),xc=1e4>gc?oc:function(){return oc()-gc};function yc(){switch(cc()){case ac:return 99;case lc:return 98;case sc:return 97;case uc:return 96;case hc:return 95;default:throw Error(At(332))}}function wc(t){switch(t){case 99:return ac;case 98:return lc;case 97:return sc;case 96:return uc;case 95:return hc;default:throw Error(At(332))}}function kc(t,e){return t=wc(t),ec(t,e)}function _c(t,e,n){return t=wc(t),nc(t,e,n)}function zc(t){return null===mc?(mc=[t],pc=nc(ac,Sc)):mc.push(t),fc}function Cc(){if(null!==pc){var t=pc;pc=null,ic(t)}Sc()}function Sc(){if(!vc&&null!==mc){vc=!0;var t=0;try{var e=mc;kc(99,(function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}})),mc=null}catch(e){throw null!==mc&&(mc=mc.slice(t+1)),nc(ac,Cc),e}finally{vc=!1}}}function Dc(t,e,n){return 1073741821-(1+((1073741821-t+e/10)/(n/=10)|0))*n}function jc(t,e){if(t&&t.defaultProps)for(var n in e=G({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}var Mc={current:null},Oc=null,Ec=null,Nc=null;function Tc(){Nc=Ec=Oc=null}function Ic(t){var e=Mc.current;Ho(Mc),t.type._context._currentValue=e}function Rc(t,e){for(;null!==t;){var n=t.alternate;if(t.childExpirationTime<e)t.childExpirationTime=e,null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e);else{if(!(null!==n&&n.childExpirationTime<e))break;n.childExpirationTime=e}t=t.return}}function Yc(t,e){Oc=t,Nc=Ec=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(t.expirationTime>=e&&(sl=!0),t.firstContext=null)}function Ac(t,e){if(Nc!==t&&!1!==e&&0!==e)if("number"==typeof e&&1073741823!==e||(Nc=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Ec){if(null===Oc)throw Error(At(308));Ec=e,Oc.dependencies={expirationTime:0,firstContext:e,responders:null}}else Ec=Ec.next=e;return t._currentValue}var Pc=!1;function Fc(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function $c(t,e){e.updateQueue===(t=t.updateQueue)&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function Lc(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function Hc(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function Wc(t,e){var n=t.alternate;null!==n&&$c(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function Vc(t,e,n,i){var r=t.updateQueue;Pc=!1;var o=r.baseQueue,c=r.shared.pending;if(null!==c){if(null!==o){var a=o.next;o.next=c.next,c.next=a}o=c,r.shared.pending=null,null!==(a=t.alternate)&&null!==(a=a.updateQueue)&&(a.baseQueue=c)}if(null!==o){var l=r.baseState,s=0,u=null,h=null,f=null;if(null!==(a=o.next))for(var d=a;;){if((c=d.expirationTime)<i){var b={expirationTime:d.expirationTime,suspenseConfig:d.suspenseConfig,tag:d.tag,payload:d.payload,callback:d.callback,next:null};null===f?(h=f=b,u=l):f=f.next=b,c>s&&(s=c)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:d.suspenseConfig,tag:d.tag,payload:d.payload,callback:d.callback,next:null}),$s(c,d.suspenseConfig);t:{var m=t,p=d;switch(c=e,b=n,p.tag){case 1:if("function"==typeof(m=p.payload)){l=m.call(b,l,c);break t}l=m;break t;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null==(c="function"==typeof(m=p.payload)?m.call(b,l,c):m))break t;l=G({},l,c);break t;case 2:Pc=!0}}null!==d.callback&&(t.effectTag|=32,null===(c=r.effects)?r.effects=[d]:c.push(d))}if(null===(d=d.next)||d===a){if(null===(c=r.shared.pending))break;d=o.next=c.next,c.next=a,r.baseQueue=o=c,r.shared.pending=null}}null===f?u=l:f.next=h,r.baseState=u,r.baseQueue=f,Ls(s),t.expirationTime=s,t.memoizedState=l}}function Uc(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var i=t[e],r=i.callback;if(null!==r){if(i.callback=null,i=r,r=n,"function"!=typeof i)throw Error(At(191,i));i.call(r)}}}var Bc=De.ReactCurrentBatchConfig,Gc=(new Tt.Component).refs;function qc(t,e,n,i){n=null==(n=n(i,e=t.memoizedState))?e:G({},e,n),t.memoizedState=n,0===t.expirationTime&&(t.updateQueue.baseState=n)}var Kc={isMounted:function(t){return!!(t=t._reactInternalFiber)&&On(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var i=Ds(),r=Bc.suspense;(r=Lc(i=js(i,t,r),r)).payload=e,null!=n&&(r.callback=n),Hc(t,r),Ms(t,i)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var i=Ds(),r=Bc.suspense;(r=Lc(i=js(i,t,r),r)).tag=1,r.payload=e,null!=n&&(r.callback=n),Hc(t,r),Ms(t,i)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=Ds(),i=Bc.suspense;(i=Lc(n=js(n,t,i),i)).tag=2,null!=e&&(i.callback=e),Hc(t,i),Ms(t,n)}};function Zc(t,e,n,i,r,o,c){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(i,o,c):!(e.prototype&&e.prototype.isPureReactComponent&&xo(n,i)&&xo(r,o))}function Xc(t,e,n){var i=!1,r=Vo,o=e.contextType;return"object"==typeof o&&null!==o?o=Ac(o):(r=Ko(e)?Go:Uo.current,o=(i=null!=(i=e.contextTypes))?qo(t,r):Vo),e=new e(n,o),t.memoizedState=null!=e.state?e.state:null,e.updater=Kc,t.stateNode=e,e._reactInternalFiber=t,i&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=o),e}function Qc(t,e,n,i){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,i),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Kc.enqueueReplaceState(e,e.state,null)}function Jc(t,e,n,i){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs=Gc,Fc(t);var o=e.contextType;"object"==typeof o&&null!==o?r.context=Ac(o):(o=Ko(e)?Go:Uo.current,r.context=qo(t,o)),Vc(t,n,r,i),r.state=t.memoizedState,"function"==typeof(o=e.getDerivedStateFromProps)&&(qc(t,e,o,n),r.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(e=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),e!==r.state&&Kc.enqueueReplaceState(r,r.state,null),Vc(t,n,r,i),r.state=t.memoizedState),"function"==typeof r.componentDidMount&&(t.effectTag|=4)}var ta=Array.isArray;function ea(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(At(309));var i=n.stateNode}if(!i)throw Error(At(147,t));var r=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===r?e.ref:(e=function(t){var e=i.refs;e===Gc&&(e=i.refs={}),null===t?delete e[r]:e[r]=t},e._stringRef=r,e)}if("string"!=typeof t)throw Error(At(284));if(!n._owner)throw Error(At(290,t))}return t}function na(t,e){if("textarea"!==t.type)throw Error(At(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,""))}function ia(t){function e(e,n){if(t){var i=e.lastEffect;null!==i?(i.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,i){if(!t)return null;for(;null!==i;)e(n,i),i=i.sibling;return null}function i(t,e){for(t=new Map;null!==e;)t.set(null!==e.key?e.key:e.index,e),e=e.sibling;return t}function r(t,e){return(t=au(t,e)).index=0,t.sibling=null,t}function o(e,n,i){return e.index=i,t?null!==(i=e.alternate)?(i=i.index)<n?(e.effectTag=2,n):i:(e.effectTag=2,n):n}function c(e){return t&&null===e.alternate&&(e.effectTag=2),e}function a(t,e,n,i){return null===e||6!==e.tag?((e=uu(n,t.mode,i)).return=t,e):((e=r(e,n)).return=t,e)}function l(t,e,n,i){return null!==e&&e.elementType===n.type?((i=r(e,n.props)).ref=ea(t,e,n),i.return=t,i):((i=lu(n.type,n.key,n.props,null,t.mode,i)).ref=ea(t,e,n),i.return=t,i)}function s(t,e,n,i){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=hu(n,t.mode,i)).return=t,e):((e=r(e,n.children||[])).return=t,e)}function u(t,e,n,i,o){return null===e||7!==e.tag?((e=su(n,t.mode,i,o)).return=t,e):((e=r(e,n)).return=t,e)}function h(t,e,n){if("string"==typeof e||"number"==typeof e)return(e=uu(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case Ee:return(n=lu(e.type,e.key,e.props,null,t.mode,n)).ref=ea(t,null,e),n.return=t,n;case Ne:return(e=hu(e,t.mode,n)).return=t,e}if(ta(e)||Be(e))return(e=su(e,t.mode,n,null)).return=t,e;na(t,e)}return null}function f(t,e,n,i){var r=null!==e?e.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:a(t,e,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ee:return n.key===r?n.type===Te?u(t,e,n.props.children,i,r):l(t,e,n,i):null;case Ne:return n.key===r?s(t,e,n,i):null}if(ta(n)||Be(n))return null!==r?null:u(t,e,n,i,null);na(t,n)}return null}function d(t,e,n,i,r){if("string"==typeof i||"number"==typeof i)return a(e,t=t.get(n)||null,""+i,r);if("object"==typeof i&&null!==i){switch(i.$$typeof){case Ee:return t=t.get(null===i.key?n:i.key)||null,i.type===Te?u(e,t,i.props.children,r,i.key):l(e,t,i,r);case Ne:return s(e,t=t.get(null===i.key?n:i.key)||null,i,r)}if(ta(i)||Be(i))return u(e,t=t.get(n)||null,i,r,null);na(e,i)}return null}function b(r,c,a,l){for(var s=null,u=null,b=c,m=c=0,p=null;null!==b&&m<a.length;m++){b.index>m?(p=b,b=null):p=b.sibling;var v=f(r,b,a[m],l);if(null===v){null===b&&(b=p);break}t&&b&&null===v.alternate&&e(r,b),c=o(v,c,m),null===u?s=v:u.sibling=v,u=v,b=p}if(m===a.length)return n(r,b),s;if(null===b){for(;m<a.length;m++)null!==(b=h(r,a[m],l))&&(c=o(b,c,m),null===u?s=b:u.sibling=b,u=b);return s}for(b=i(r,b);m<a.length;m++)null!==(p=d(b,r,m,a[m],l))&&(t&&null!==p.alternate&&b.delete(null===p.key?m:p.key),c=o(p,c,m),null===u?s=p:u.sibling=p,u=p);return t&&b.forEach((function(t){return e(r,t)})),s}function m(r,c,a,l){var s=Be(a);if("function"!=typeof s)throw Error(At(150));if(null==(a=s.call(a)))throw Error(At(151));for(var u=s=null,b=c,m=c=0,p=null,v=a.next();null!==b&&!v.done;m++,v=a.next()){b.index>m?(p=b,b=null):p=b.sibling;var g=f(r,b,v.value,l);if(null===g){null===b&&(b=p);break}t&&b&&null===g.alternate&&e(r,b),c=o(g,c,m),null===u?s=g:u.sibling=g,u=g,b=p}if(v.done)return n(r,b),s;if(null===b){for(;!v.done;m++,v=a.next())null!==(v=h(r,v.value,l))&&(c=o(v,c,m),null===u?s=v:u.sibling=v,u=v);return s}for(b=i(r,b);!v.done;m++,v=a.next())null!==(v=d(b,r,m,v.value,l))&&(t&&null!==v.alternate&&b.delete(null===v.key?m:v.key),c=o(v,c,m),null===u?s=v:u.sibling=v,u=v);return t&&b.forEach((function(t){return e(r,t)})),s}return function(t,i,o,a){var l="object"==typeof o&&null!==o&&o.type===Te&&null===o.key;l&&(o=o.props.children);var s="object"==typeof o&&null!==o;if(s)switch(o.$$typeof){case Ee:t:{for(s=o.key,l=i;null!==l;){if(l.key===s){if(7===l.tag){if(o.type===Te){n(t,l.sibling),(i=r(l,o.props.children)).return=t,t=i;break t}}else if(l.elementType===o.type){n(t,l.sibling),(i=r(l,o.props)).ref=ea(t,l,o),i.return=t,t=i;break t}n(t,l);break}e(t,l),l=l.sibling}o.type===Te?((i=su(o.props.children,t.mode,a,o.key)).return=t,t=i):((a=lu(o.type,o.key,o.props,null,t.mode,a)).ref=ea(t,i,o),a.return=t,t=a)}return c(t);case Ne:t:{for(l=o.key;null!==i;){if(i.key===l){if(4===i.tag&&i.stateNode.containerInfo===o.containerInfo&&i.stateNode.implementation===o.implementation){n(t,i.sibling),(i=r(i,o.children||[])).return=t,t=i;break t}n(t,i);break}e(t,i),i=i.sibling}(i=hu(o,t.mode,a)).return=t,t=i}return c(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==i&&6===i.tag?(n(t,i.sibling),(i=r(i,o)).return=t,t=i):(n(t,i),(i=uu(o,t.mode,a)).return=t,t=i),c(t);if(ta(o))return b(t,i,o,a);if(Be(o))return m(t,i,o,a);if(s&&na(t,o),void 0===o&&!l)switch(t.tag){case 1:case 0:throw t=t.type,Error(At(152,t.displayName||t.name||"Component"))}return n(t,i)}}var ra=ia(!0),oa=ia(!1),ca={},aa={current:ca},la={current:ca},sa={current:ca};function ua(t){if(t===ca)throw Error(At(174));return t}function ha(t,e){switch(Wo(sa,e),Wo(la,t),Wo(aa,ca),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:dn(null,"");break;default:e=dn(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}Ho(aa),Wo(aa,e)}function fa(){Ho(aa),Ho(la),Ho(sa)}function da(t){ua(sa.current);var e=ua(aa.current),n=dn(e,t.type);e!==n&&(Wo(la,t),Wo(aa,n))}function ba(t){la.current===t&&(Ho(aa),Ho(la))}var ma={current:0};function pa(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===Bi||n.data===Gi))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!=(64&e.effectTag))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function va(t,e){return{responder:t,props:e}}var ga=De.ReactCurrentDispatcher,xa=De.ReactCurrentBatchConfig,ya=0,wa=null,ka=null,_a=null,za=!1;function Ca(){throw Error(At(321))}function Sa(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!vo(t[n],e[n]))return!1;return!0}function Da(t,e,n,i,r,o){if(ya=o,wa=e,e.memoizedState=null,e.updateQueue=null,e.expirationTime=0,ga.current=null===t||null===t.memoizedState?Za:Xa,t=n(i,r),e.expirationTime===ya){o=0;do{if(e.expirationTime=0,!(25>o))throw Error(At(301));o+=1,_a=ka=null,e.updateQueue=null,ga.current=Qa,t=n(i,r)}while(e.expirationTime===ya)}if(ga.current=Ka,e=null!==ka&&null!==ka.next,ya=0,_a=ka=wa=null,za=!1,e)throw Error(At(300));return t}function ja(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===_a?wa.memoizedState=_a=t:_a=_a.next=t,_a}function Ma(){if(null===ka){var t=wa.alternate;t=null!==t?t.memoizedState:null}else t=ka.next;var e=null===_a?wa.memoizedState:_a.next;if(null!==e)_a=e,ka=t;else{if(null===t)throw Error(At(310));t={memoizedState:(ka=t).memoizedState,baseState:ka.baseState,baseQueue:ka.baseQueue,queue:ka.queue,next:null},null===_a?wa.memoizedState=_a=t:_a=_a.next=t}return _a}function Oa(t,e){return"function"==typeof e?e(t):e}function Ea(t){var e=Ma(),n=e.queue;if(null===n)throw Error(At(311));n.lastRenderedReducer=t;var i=ka,r=i.baseQueue,o=n.pending;if(null!==o){if(null!==r){var c=r.next;r.next=o.next,o.next=c}i.baseQueue=r=o,n.pending=null}if(null!==r){i=i.baseState;var a=c=o=null,l=r=r.next;do{var s=l.expirationTime;if(s<ya){var u={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===a?(c=a=u,o=i):a=a.next=u,s>wa.expirationTime&&(wa.expirationTime=s,Ls(s))}else null!==a&&(a=a.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),$s(s,l.suspenseConfig),i=l.eagerReducer===t?l.eagerState:t(i,l.action);l=l.next}while(null!==l&&l!==r);null===a?o=i:a.next=c,vo(i,e.memoizedState)||(sl=!0),e.memoizedState=i,e.baseState=o,e.baseQueue=a,n.lastRenderedState=i}return[e.memoizedState,n.dispatch]}function Na(t){var e=Ma(),n=e.queue;if(null===n)throw Error(At(311));n.lastRenderedReducer=t;var i=n.dispatch,r=n.pending,o=e.memoizedState;if(null!==r){n.pending=null;var c=r=r.next;do{o=t(o,c.action),c=c.next}while(c!==r);vo(o,e.memoizedState)||(sl=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,i]}function Ta(t){var e=ja();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:t}).dispatch=qa.bind(null,wa,t),[e.memoizedState,t]}function Ia(t,e,n,i){return t={tag:t,create:e,destroy:n,deps:i,next:null},null===(e=wa.updateQueue)?(wa.updateQueue=e={lastEffect:null},e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function Ra(){return Ma().memoizedState}function Ya(t,e,n,i){var r=ja();wa.effectTag|=t,r.memoizedState=Ia(1|e,n,void 0,void 0===i?null:i)}function Aa(t,e,n,i){var r=Ma();i=void 0===i?null:i;var o=void 0;if(null!==ka){var c=ka.memoizedState;if(o=c.destroy,null!==i&&Sa(i,c.deps))return void Ia(e,n,o,i)}wa.effectTag|=t,r.memoizedState=Ia(1|e,n,o,i)}function Pa(t,e){return Ya(516,4,t,e)}function Fa(t,e){return Aa(516,4,t,e)}function $a(t,e){return Aa(4,2,t,e)}function La(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function Ha(t,e,n){return n=null!=n?n.concat([t]):null,Aa(4,2,La.bind(null,e,t),n)}function Wa(){}function Va(t,e){return ja().memoizedState=[t,void 0===e?null:e],t}function Ua(t,e){var n=Ma();e=void 0===e?null:e;var i=n.memoizedState;return null!==i&&null!==e&&Sa(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function Ba(t,e){var n=Ma();e=void 0===e?null:e;var i=n.memoizedState;return null!==i&&null!==e&&Sa(e,i[1])?i[0]:(t=t(),n.memoizedState=[t,e],t)}function Ga(t,e,n){var i=yc();kc(98>i?98:i,(function(){t(!0)})),kc(97<i?97:i,(function(){var i=xa.suspense;xa.suspense=void 0===e?null:e;try{t(!1),n()}finally{xa.suspense=i}}))}function qa(t,e,n){var i=Ds(),r=Bc.suspense;r={expirationTime:i=js(i,t,r),suspenseConfig:r,action:n,eagerReducer:null,eagerState:null,next:null};var o=e.pending;if(null===o?r.next=r:(r.next=o.next,o.next=r),e.pending=r,o=t.alternate,t===wa||null!==o&&o===wa)za=!0,r.expirationTime=ya,wa.expirationTime=ya;else{if(0===t.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=e.lastRenderedReducer))try{var c=e.lastRenderedState,a=o(c,n);if(r.eagerReducer=o,r.eagerState=a,vo(a,c))return}catch(t){}Ms(t,i)}}var Ka={readContext:Ac,useCallback:Ca,useContext:Ca,useEffect:Ca,useImperativeHandle:Ca,useLayoutEffect:Ca,useMemo:Ca,useReducer:Ca,useRef:Ca,useState:Ca,useDebugValue:Ca,useResponder:Ca,useDeferredValue:Ca,useTransition:Ca},Za={readContext:Ac,useCallback:Va,useContext:Ac,useEffect:Pa,useImperativeHandle:function(t,e,n){return n=null!=n?n.concat([t]):null,Ya(4,2,La.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Ya(4,2,t,e)},useMemo:function(t,e){var n=ja();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=ja();return e=void 0!==n?n(e):e,i.memoizedState=i.baseState=e,t=(t=i.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=qa.bind(null,wa,t),[i.memoizedState,t]},useRef:function(t){return ja().memoizedState={current:t}},useState:Ta,useDebugValue:Wa,useResponder:va,useDeferredValue:function(t,e){var n=Ta(t),i=n[0],r=n[1];return Pa((function(){var n=xa.suspense;xa.suspense=void 0===e?null:e;try{r(t)}finally{xa.suspense=n}}),[t,e]),i},useTransition:function(t){var e=Ta(!1),n=e[0];return[Va(Ga.bind(null,e=e[1],t),[e,t]),n]}},Xa={readContext:Ac,useCallback:Ua,useContext:Ac,useEffect:Fa,useImperativeHandle:Ha,useLayoutEffect:$a,useMemo:Ba,useReducer:Ea,useRef:Ra,useState:function(){return Ea(Oa)},useDebugValue:Wa,useResponder:va,useDeferredValue:function(t,e){var n=Ea(Oa),i=n[0],r=n[1];return Fa((function(){var n=xa.suspense;xa.suspense=void 0===e?null:e;try{r(t)}finally{xa.suspense=n}}),[t,e]),i},useTransition:function(t){var e=Ea(Oa),n=e[0];return[Ua(Ga.bind(null,e=e[1],t),[e,t]),n]}},Qa={readContext:Ac,useCallback:Ua,useContext:Ac,useEffect:Fa,useImperativeHandle:Ha,useLayoutEffect:$a,useMemo:Ba,useReducer:Na,useRef:Ra,useState:function(){return Na(Oa)},useDebugValue:Wa,useResponder:va,useDeferredValue:function(t,e){var n=Na(Oa),i=n[0],r=n[1];return Fa((function(){var n=xa.suspense;xa.suspense=void 0===e?null:e;try{r(t)}finally{xa.suspense=n}}),[t,e]),i},useTransition:function(t){var e=Na(Oa),n=e[0];return[Ua(Ga.bind(null,e=e[1],t),[e,t]),n]}},Ja=null,tl=null,el=!1;function nl(t,e){var n=ou(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function il(t,e){switch(t.tag){case 5:return null!==(e=1!==e.nodeType||t.type.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);default:return!1}}function rl(t){if(el){var e=tl;if(e){var n=e;if(!il(t,e)){if(!(e=tr(n.nextSibling))||!il(t,e))return t.effectTag=-1025&t.effectTag|2,el=!1,void(Ja=t);nl(Ja,n)}Ja=t,tl=tr(e.firstChild)}else t.effectTag=-1025&t.effectTag|2,el=!1,Ja=t}}function ol(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;Ja=t}function cl(t){if(t!==Ja)return!1;if(!el)return ol(t),el=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!Xi(e,t.memoizedProps))for(e=tl;e;)nl(t,e),e=tr(e.nextSibling);if(ol(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(At(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){tl=tr(t.nextSibling);break t}e--}else"$"!==n&&n!==Gi&&n!==Bi||e++}t=t.nextSibling}tl=null}}else tl=Ja?tr(t.stateNode.nextSibling):null;return!0}function al(){tl=Ja=null,el=!1}var ll=De.ReactCurrentOwner,sl=!1;function ul(t,e,n,i){e.child=null===t?oa(e,null,n,i):ra(e,t.child,n,i)}function hl(t,e,n,i,r){n=n.render;var o=e.ref;return Yc(e,r),i=Da(t,e,n,i,o,r),null===t||sl?(e.effectTag|=1,ul(t,e,i,r),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=r&&(t.expirationTime=0),Dl(t,e,r))}function fl(t,e,n,i,r,o){if(null===t){var c=n.type;return"function"!=typeof c||cu(c)||void 0!==c.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=lu(n.type,null,i,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=c,dl(t,e,c,i,r,o))}return c=t.child,r<o&&(n=null!==(n=n.compare)?n:xo)(r=c.memoizedProps,i)&&t.ref===e.ref?Dl(t,e,o):(e.effectTag|=1,(t=au(c,i)).ref=e.ref,t.return=e,e.child=t)}function dl(t,e,n,i,r,o){return null!==t&&xo(t.memoizedProps,i)&&t.ref===e.ref&&(sl=!1,r<o)?(e.expirationTime=t.expirationTime,Dl(t,e,o)):ml(t,e,n,i,o)}function bl(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function ml(t,e,n,i,r){var o=Ko(n)?Go:Uo.current;return o=qo(e,o),Yc(e,r),n=Da(t,e,n,i,o,r),null===t||sl?(e.effectTag|=1,ul(t,e,n,r),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=r&&(t.expirationTime=0),Dl(t,e,r))}function pl(t,e,n,i,r){if(Ko(n)){var o=!0;Jo(e)}else o=!1;if(Yc(e,r),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),Xc(e,n,i),Jc(e,n,i,r),i=!0;else if(null===t){var c=e.stateNode,a=e.memoizedProps;c.props=a;var l=c.context,s=n.contextType;s="object"==typeof s&&null!==s?Ac(s):qo(e,s=Ko(n)?Go:Uo.current);var u=n.getDerivedStateFromProps,h="function"==typeof u||"function"==typeof c.getSnapshotBeforeUpdate;h||"function"!=typeof c.UNSAFE_componentWillReceiveProps&&"function"!=typeof c.componentWillReceiveProps||(a!==i||l!==s)&&Qc(e,c,i,s),Pc=!1;var f=e.memoizedState;c.state=f,Vc(e,i,c,r),l=e.memoizedState,a!==i||f!==l||Bo.current||Pc?("function"==typeof u&&(qc(e,n,u,i),l=e.memoizedState),(a=Pc||Zc(e,n,a,i,f,l,s))?(h||"function"!=typeof c.UNSAFE_componentWillMount&&"function"!=typeof c.componentWillMount||("function"==typeof c.componentWillMount&&c.componentWillMount(),"function"==typeof c.UNSAFE_componentWillMount&&c.UNSAFE_componentWillMount()),"function"==typeof c.componentDidMount&&(e.effectTag|=4)):("function"==typeof c.componentDidMount&&(e.effectTag|=4),e.memoizedProps=i,e.memoizedState=l),c.props=i,c.state=l,c.context=s,i=a):("function"==typeof c.componentDidMount&&(e.effectTag|=4),i=!1)}else c=e.stateNode,$c(t,e),a=e.memoizedProps,c.props=e.type===e.elementType?a:jc(e.type,a),l=c.context,s="object"==typeof(s=n.contextType)&&null!==s?Ac(s):qo(e,s=Ko(n)?Go:Uo.current),(h="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof c.getSnapshotBeforeUpdate)||"function"!=typeof c.UNSAFE_componentWillReceiveProps&&"function"!=typeof c.componentWillReceiveProps||(a!==i||l!==s)&&Qc(e,c,i,s),Pc=!1,c.state=l=e.memoizedState,Vc(e,i,c,r),f=e.memoizedState,a!==i||l!==f||Bo.current||Pc?("function"==typeof u&&(qc(e,n,u,i),f=e.memoizedState),(u=Pc||Zc(e,n,a,i,l,f,s))?(h||"function"!=typeof c.UNSAFE_componentWillUpdate&&"function"!=typeof c.componentWillUpdate||("function"==typeof c.componentWillUpdate&&c.componentWillUpdate(i,f,s),"function"==typeof c.UNSAFE_componentWillUpdate&&c.UNSAFE_componentWillUpdate(i,f,s)),"function"==typeof c.componentDidUpdate&&(e.effectTag|=4),"function"==typeof c.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof c.componentDidUpdate||a===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),"function"!=typeof c.getSnapshotBeforeUpdate||a===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),e.memoizedProps=i,e.memoizedState=f),c.props=i,c.state=f,c.context=s,i=u):("function"!=typeof c.componentDidUpdate||a===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),"function"!=typeof c.getSnapshotBeforeUpdate||a===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),i=!1);return vl(t,e,n,i,o,r)}function vl(t,e,n,i,r,o){bl(t,e);var c=0!=(64&e.effectTag);if(!i&&!c)return r&&tc(e,n,!1),Dl(t,e,o);i=e.stateNode,ll.current=e;var a=c&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return e.effectTag|=1,null!==t&&c?(e.child=ra(e,t.child,null,o),e.child=ra(e,null,a,o)):ul(t,e,a,o),e.memoizedState=i.state,r&&tc(e,n,!0),e.child}function gl(t){var e=t.stateNode;e.pendingContext?Xo(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Xo(0,e.context,!1),ha(t,e.containerInfo)}var xl,yl,wl,kl={dehydrated:null,retryTime:0};function _l(t,e,n){var i,r=e.mode,o=e.pendingProps,c=ma.current,a=!1;if((i=0!=(64&e.effectTag))||(i=0!=(2&c)&&(null===t||null!==t.memoizedState)),i?(a=!0,e.effectTag&=-65):null!==t&&null===t.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(c|=1),Wo(ma,1&c),null===t){if(void 0!==o.fallback&&rl(e),a){if(a=o.fallback,(o=su(null,r,0,null)).return=e,0==(2&e.mode))for(o.child=t=null!==e.memoizedState?e.child.child:e.child;null!==t;)t.return=o,t=t.sibling;return(n=su(a,r,n,null)).return=e,o.sibling=n,e.memoizedState=kl,e.child=o,n}return r=o.children,e.memoizedState=null,e.child=oa(e,null,r,n)}if(null!==t.memoizedState){if(r=(t=t.child).sibling,a){if(o=o.fallback,(n=au(t,t.pendingProps)).return=e,0==(2&e.mode)&&(a=null!==e.memoizedState?e.child.child:e.child)!==t.child)for(n.child=a;null!==a;)a.return=n,a=a.sibling;return(r=au(r,o)).return=e,n.sibling=r,n.childExpirationTime=0,e.memoizedState=kl,e.child=n,r}return n=ra(e,t.child,o.children,n),e.memoizedState=null,e.child=n}if(t=t.child,a){if(a=o.fallback,(o=su(null,r,0,null)).return=e,o.child=t,null!==t&&(t.return=o),0==(2&e.mode))for(o.child=t=null!==e.memoizedState?e.child.child:e.child;null!==t;)t.return=o,t=t.sibling;return(n=su(a,r,n,null)).return=e,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,e.memoizedState=kl,e.child=o,n}return e.memoizedState=null,e.child=ra(e,t,o.children,n)}function zl(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e),Rc(t.return,e)}function Cl(t,e,n,i,r,o){var c=t.memoizedState;null===c?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailExpiration:0,tailMode:r,lastEffect:o}:(c.isBackwards=e,c.rendering=null,c.renderingStartTime=0,c.last=i,c.tail=n,c.tailExpiration=0,c.tailMode=r,c.lastEffect=o)}function Sl(t,e,n){var i=e.pendingProps,r=i.revealOrder,o=i.tail;if(ul(t,e,i.children,n),0!=(2&(i=ma.current)))i=1&i|2,e.effectTag|=64;else{if(null!==t&&0!=(64&t.effectTag))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&zl(t,n);else if(19===t.tag)zl(t,n);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}i&=1}if(Wo(ma,i),0==(2&e.mode))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;null!==n;)null!==(t=n.alternate)&&null===pa(t)&&(r=n),n=n.sibling;null===(n=r)?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),Cl(e,!1,r,n,o,e.lastEffect);break;case"backwards":for(n=null,r=e.child,e.child=null;null!==r;){if(null!==(t=r.alternate)&&null===pa(t)){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}Cl(e,!0,n,null,o,e.lastEffect);break;case"together":Cl(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Dl(t,e,n){null!==t&&(e.dependencies=t.dependencies);var i=e.expirationTime;if(0!==i&&Ls(i),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child)throw Error(At(153));if(null!==e.child){for(n=au(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)(n=n.sibling=au(t=t.sibling,t.pendingProps)).return=e;n.sibling=null}return e.child}function jl(t,e){switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?e||null===t.tail?t.tail=null:t.tail.sibling=null:i.sibling=null}}function Ml(t,e,n){var i=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return Ko(e.type)&&Zo(),null;case 3:return fa(),Ho(Bo),Ho(Uo),(n=e.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||!cl(e)||(e.effectTag|=4),null;case 5:ba(e),n=ua(sa.current);var r=e.type;if(null!==t&&null!=e.stateNode)yl(t,e,r,i,n),t.ref!==e.ref&&(e.effectTag|=128);else{if(!i){if(null===e.stateNode)throw Error(At(166));return null}if(t=ua(aa.current),cl(e)){r=e.type;var o=e.memoizedProps;switch((i=e.stateNode)[ir]=e,i[rr]=o,r){case"iframe":case"object":case"embed":zi("load",i);break;case"video":case"audio":for(t=0;t<Dn.length;t++)zi(Dn[t],i);break;case"source":zi("error",i);break;case"img":case"image":case"link":zi("error",i),zi("load",i);break;case"form":zi("reset",i),zi("submit",i);break;case"details":zi("toggle",i);break;case"input":tn(i,o),zi("invalid",i),Pi(n,"onChange");break;case"select":i._wrapperState={wasMultiple:!!o.multiple},zi("invalid",i),Pi(n,"onChange");break;case"textarea":sn(i,o),zi("invalid",i),Pi(n,"onChange")}for(var c in Ri(r,o),t=null,o)if(o.hasOwnProperty(c)){var a=o[c];"children"===c?"string"==typeof a?i.textContent!==a&&(t=["children",a]):"number"==typeof a&&i.textContent!==""+a&&(t=["children",""+a]):ee.hasOwnProperty(c)&&null!=a&&Pi(n,c)}switch(r){case"input":Xe(i),rn(i,o,!0);break;case"textarea":Xe(i),hn(i);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(i.onclick=Fi)}e.updateQueue=n=t,null!==n&&(e.effectTag|=4)}else{switch(c=9===n.nodeType?n:n.ownerDocument,t===Ai&&(t=fn(r)),t===Ai?"script"===r?((t=c.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"==typeof i.is?t=c.createElement(r,{is:i.is}):(t=c.createElement(r),"select"===r&&(c=t,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):t=c.createElementNS(t,r),t[ir]=e,t[rr]=i,xl(t,e),e.stateNode=t,c=Yi(r,i),r){case"iframe":case"object":case"embed":zi("load",t),a=i;break;case"video":case"audio":for(a=0;a<Dn.length;a++)zi(Dn[a],t);a=i;break;case"source":zi("error",t),a=i;break;case"img":case"image":case"link":zi("error",t),zi("load",t),a=i;break;case"form":zi("reset",t),zi("submit",t),a=i;break;case"details":zi("toggle",t),a=i;break;case"input":tn(t,i),a=Je(t,i),zi("invalid",t),Pi(n,"onChange");break;case"option":a=cn(t,i);break;case"select":t._wrapperState={wasMultiple:!!i.multiple},a=G({},i,{value:void 0}),zi("invalid",t),Pi(n,"onChange");break;case"textarea":sn(t,i),a=ln(t,i),zi("invalid",t),Pi(n,"onChange");break;default:a=i}Ri(r,a);var l=a;for(o in l)if(l.hasOwnProperty(o)){var s=l[o];"style"===o?Ti(t,s):"dangerouslySetInnerHTML"===o?null!=(s=s?s.__html:void 0)&&pn(t,s):"children"===o?"string"==typeof s?("textarea"!==r||""!==s)&&vn(t,s):"number"==typeof s&&vn(t,""+s):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(ee.hasOwnProperty(o)?null!=s&&Pi(n,o):null!=s&&je(t,o,s,c))}switch(r){case"input":Xe(t),rn(t,i,!1);break;case"textarea":Xe(t),hn(t);break;case"option":null!=i.value&&t.setAttribute("value",""+Ke(i.value));break;case"select":t.multiple=!!i.multiple,null!=(n=i.value)?an(t,!!i.multiple,n,!1):null!=i.defaultValue&&an(t,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(t.onclick=Fi)}Zi(r,i)&&(e.effectTag|=4)}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)wl(0,e,t.memoizedProps,i);else{if("string"!=typeof i&&null===e.stateNode)throw Error(At(166));n=ua(sa.current),ua(aa.current),cl(e)?(i=e.memoizedProps,(n=e.stateNode)[ir]=e,n.nodeValue!==i&&(e.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[ir]=e,e.stateNode=n)}return null;case 13:return Ho(ma),i=e.memoizedState,0!=(64&e.effectTag)?(e.expirationTime=n,e):(n=null!==i,i=!1,null===t?void 0!==e.memoizedProps.fallback&&cl(e):(i=null!==(r=t.memoizedState),n||null===r||null!==(r=t.child.sibling)&&(null!==(o=e.firstEffect)?(e.firstEffect=r,r.nextEffect=o):(e.firstEffect=e.lastEffect=r,r.nextEffect=null),r.effectTag=8)),n&&!i&&0!=(2&e.mode)&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||0!=(1&ma.current)?ls===es&&(ls=ns):(ls!==es&&ls!==ns||(ls=is),0!==ds&&null!==os&&(bu(os,as),mu(os,ds)))),(n||i)&&(e.effectTag|=4),null);case 4:return fa(),null;case 10:return Ic(e),null;case 19:if(Ho(ma),null===(i=e.memoizedState))return null;if(r=0!=(64&e.effectTag),null===(o=i.rendering)){if(r)jl(i,!1);else if(ls!==es||null!==t&&0!=(64&t.effectTag))for(o=e.child;null!==o;){if(null!==(t=pa(o))){for(e.effectTag|=64,jl(i,!1),null!==(r=t.updateQueue)&&(e.updateQueue=r,e.effectTag|=4),null===i.lastEffect&&(e.firstEffect=null),e.lastEffect=i.lastEffect,i=e.child;null!==i;)o=n,(r=i).effectTag&=2,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null,null===(t=r.alternate)?(r.childExpirationTime=0,r.expirationTime=o,r.child=null,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null):(r.childExpirationTime=t.childExpirationTime,r.expirationTime=t.expirationTime,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,r.dependencies=null===(o=t.dependencies)?null:{expirationTime:o.expirationTime,firstContext:o.firstContext,responders:o.responders}),i=i.sibling;return Wo(ma,1&ma.current|2),e.child}o=o.sibling}}else{if(!r)if(null!==(t=pa(o))){if(e.effectTag|=64,r=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.effectTag|=4),jl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate)return null!==(e=e.lastEffect=i.lastEffect)&&(e.nextEffect=null),null}else 2*xc()-i.renderingStartTime>i.tailExpiration&&1<n&&(e.effectTag|=64,r=!0,jl(i,!1),e.expirationTime=e.childExpirationTime=n-1);i.isBackwards?(o.sibling=e.child,e.child=o):(null!==(n=i.last)?n.sibling=o:e.child=o,i.last=o)}return null!==i.tail?(0===i.tailExpiration&&(i.tailExpiration=xc()+500),i.rendering=n=i.tail,i.tail=n.sibling,i.lastEffect=e.lastEffect,i.renderingStartTime=xc(),n.sibling=null,e=ma.current,Wo(ma,r?1&e|2:1&e),n):null}throw Error(At(156,e.tag))}function Ol(t){switch(t.tag){case 1:Ko(t.type)&&Zo();var e=t.effectTag;return 4096&e?(t.effectTag=-4097&e|64,t):null;case 3:if(fa(),Ho(Bo),Ho(Uo),0!=(64&(e=t.effectTag)))throw Error(At(285));return t.effectTag=-4097&e|64,t;case 5:return ba(t),null;case 13:return Ho(ma),4096&(e=t.effectTag)?(t.effectTag=-4097&e|64,t):null;case 19:return Ho(ma),null;case 4:return fa(),null;case 10:return Ic(t),null;default:return null}}function El(t,e){return{value:t,source:e,stack:qe(e)}}xl=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},yl=function(t,e,n,i,r){var o=t.memoizedProps;if(o!==i){var c,a,l=e.stateNode;switch(ua(aa.current),t=null,n){case"input":o=Je(l,o),i=Je(l,i),t=[];break;case"option":o=cn(l,o),i=cn(l,i),t=[];break;case"select":o=G({},o,{value:void 0}),i=G({},i,{value:void 0}),t=[];break;case"textarea":o=ln(l,o),i=ln(l,i),t=[];break;default:"function"!=typeof o.onClick&&"function"==typeof i.onClick&&(l.onclick=Fi)}for(c in Ri(n,i),n=null,o)if(!i.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c)for(a in l=o[c])l.hasOwnProperty(a)&&(n||(n={}),n[a]="");else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(ee.hasOwnProperty(c)?t||(t=[]):(t=t||[]).push(c,null));for(c in i){var s=i[c];if(l=null!=o?o[c]:void 0,i.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(t||(t=[]),t.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,null!=(s=s?s.__html:void 0)&&l!==s&&(t=t||[]).push(c,s)):"children"===c?l===s||"string"!=typeof s&&"number"!=typeof s||(t=t||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(ee.hasOwnProperty(c)?(null!=s&&Pi(r,c),t||l===s||(t=[])):(t=t||[]).push(c,s))}n&&(t=t||[]).push("style",n),(e.updateQueue=r=t)&&(e.effectTag|=4)}},wl=function(t,e,n,i){n!==i&&(e.effectTag|=4)};var Nl="function"==typeof WeakSet?WeakSet:Set;function Tl(t,e){var n=e.source,i=e.stack;null===i&&null!==n&&(i=qe(n)),null!==n&&Ge(n.type),e=e.value,null!==t&&1===t.tag&&Ge(t.type);try{console.error(e)}catch(t){setTimeout((function(){throw t}))}}function Il(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){Js(t,e)}else e.current=null}function Rl(t,e){switch(e.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&e.effectTag&&null!==t){var n=t.memoizedProps,i=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?n:jc(e.type,n),i),t.__reactInternalSnapshotBeforeUpdate=e}return}throw Error(At(163))}function Yl(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var i=n.destroy;n.destroy=void 0,void 0!==i&&i()}n=n.next}while(n!==e)}}function Al(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{(n.tag&t)===t&&(n.destroy=(0,n.create)()),n=n.next}while(n!==e)}}function Pl(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:return void Al(3,n);case 1:if(t=n.stateNode,4&n.effectTag)if(null===e)t.componentDidMount();else{var i=n.elementType===n.type?e.memoizedProps:jc(n.type,e.memoizedProps);t.componentDidUpdate(i,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate)}return void(null!==(e=n.updateQueue)&&Uc(n,e,t));case 3:if(null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 5:case 1:t=n.child.stateNode}Uc(n,e,t)}return;case 5:return t=n.stateNode,void(null===e&&4&n.effectTag&&Zi(n.type,n.memoizedProps)&&t.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&di(n)))))}throw Error(At(163))}function Fl(t,e,n){switch("function"==typeof iu&&iu(e),e.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(t=e.updateQueue)&&null!==(t=t.lastEffect)){var i=t.next;kc(97<n?97:n,(function(){var t=i;do{var n=t.destroy;if(void 0!==n){var r=e;try{n()}catch(t){Js(r,t)}}t=t.next}while(t!==i)}))}break;case 1:Il(e),"function"==typeof(n=e.stateNode).componentWillUnmount&&function(t,e){try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Js(t,e)}}(e,n);break;case 5:Il(e);break;case 4:Ul(t,e,n)}}function $l(t){var e=t.alternate;t.return=null,t.child=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.alternate=null,t.firstEffect=null,t.lastEffect=null,t.pendingProps=null,t.memoizedProps=null,t.stateNode=null,null!==e&&$l(e)}function Ll(t){return 5===t.tag||3===t.tag||4===t.tag}function Hl(t){t:{for(var e=t.return;null!==e;){if(Ll(e)){var n=e;break t}e=e.return}throw Error(At(160))}switch(e=n.stateNode,n.tag){case 5:var i=!1;break;case 3:case 4:e=e.containerInfo,i=!0;break;default:throw Error(At(161))}16&n.effectTag&&(vn(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||Ll(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}i?Wl(t,n,e):Vl(t,n,e)}function Wl(t,e,n){var i=t.tag,r=5===i||6===i;if(r)t=r?t.stateNode:t.stateNode.instance,e?8===n.nodeType?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(8===n.nodeType?(e=n.parentNode).insertBefore(t,n):(e=n).appendChild(t),null!=(n=n._reactRootContainer)||null!==e.onclick||(e.onclick=Fi));else if(4!==i&&null!==(t=t.child))for(Wl(t,e,n),t=t.sibling;null!==t;)Wl(t,e,n),t=t.sibling}function Vl(t,e,n){var i=t.tag,r=5===i||6===i;if(r)t=r?t.stateNode:t.stateNode.instance,e?n.insertBefore(t,e):n.appendChild(t);else if(4!==i&&null!==(t=t.child))for(Vl(t,e,n),t=t.sibling;null!==t;)Vl(t,e,n),t=t.sibling}function Ul(t,e,n){for(var i,r,o=e,c=!1;;){if(!c){c=o.return;t:for(;;){if(null===c)throw Error(At(160));switch(i=c.stateNode,c.tag){case 5:r=!1;break t;case 3:case 4:i=i.containerInfo,r=!0;break t}c=c.return}c=!0}if(5===o.tag||6===o.tag){t:for(var a=t,l=o,s=n,u=l;;)if(Fl(a,u,s),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break t;for(;null===u.sibling;){if(null===u.return||u.return===l)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=o.stateNode,8===(a=i).nodeType?a.parentNode.removeChild(l):a.removeChild(l)):i.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){i=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(Fl(t,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;4===(o=o.return).tag&&(c=!1)}o.sibling.return=o.return,o=o.sibling}}function Bl(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:return void Yl(3,e);case 1:case 12:case 17:return;case 5:var n=e.stateNode;if(null!=n){var i=e.memoizedProps,r=null!==t?t.memoizedProps:i;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,null!==o){for(n[rr]=i,"input"===t&&"radio"===i.type&&null!=i.name&&en(n,i),Yi(t,r),e=Yi(t,i),r=0;r<o.length;r+=2){var c=o[r],a=o[r+1];"style"===c?Ti(n,a):"dangerouslySetInnerHTML"===c?pn(n,a):"children"===c?vn(n,a):je(n,c,a,e)}switch(t){case"input":nn(n,i);break;case"textarea":un(n,i);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!i.multiple,null!=(t=i.value)?an(n,!!i.multiple,t,!1):e!==!!i.multiple&&(null!=i.defaultValue?an(n,!!i.multiple,i.defaultValue,!0):an(n,!!i.multiple,i.multiple?[]:"",!1))}}}return;case 6:if(null===e.stateNode)throw Error(At(162));return void(e.stateNode.nodeValue=e.memoizedProps);case 3:return void((e=e.stateNode).hydrate&&(e.hydrate=!1,di(e.containerInfo)));case 13:if(n=e,null===e.memoizedState?i=!1:(i=!0,n=e.child,ms=xc()),null!==n)t:for(t=n;;){if(5===t.tag)o=t.stateNode,i?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=t.stateNode,r=null!=(r=t.memoizedProps.style)&&r.hasOwnProperty("display")?r.display:null,o.style.display=Ni("display",r));else if(6===t.tag)t.stateNode.nodeValue=i?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState&&null===t.memoizedState.dehydrated){(o=t.child.sibling).return=t,t=o;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}return void Gl(e);case 19:return void Gl(e)}throw Error(At(163))}function Gl(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new Nl),e.forEach((function(e){var i=eu.bind(null,t,e);n.has(e)||(n.add(e),e.then(i,i))}))}}var ql="function"==typeof WeakMap?WeakMap:Map;function Kl(t,e,n){(n=Lc(n,null)).tag=3,n.payload={element:null};var i=e.value;return n.callback=function(){vs||(vs=!0,gs=i),Tl(t,e)},n}function Zl(t,e,n){(n=Lc(n,null)).tag=3;var i=t.type.getDerivedStateFromError;if("function"==typeof i){var r=e.value;n.payload=function(){return Tl(t,e),i(r)}}var o=t.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof i&&(null===xs?xs=new Set([this]):xs.add(this),Tl(t,e));var n=e.stack;this.componentDidCatch(e.value,{componentStack:null!==n?n:""})}),n}var Xl,Ql=Math.ceil,Jl=De.ReactCurrentDispatcher,ts=De.ReactCurrentOwner,es=0,ns=3,is=4,rs=0,os=null,cs=null,as=0,ls=es,ss=null,us=1073741823,hs=1073741823,fs=null,ds=0,bs=!1,ms=0,ps=null,vs=!1,gs=null,xs=null,ys=!1,ws=null,ks=90,_s=null,zs=0,Cs=null,Ss=0;function Ds(){return 0!=(48&rs)?1073741821-(xc()/10|0):0!==Ss?Ss:Ss=1073741821-(xc()/10|0)}function js(t,e,n){if(0==(2&(e=e.mode)))return 1073741823;var i=yc();if(0==(4&e))return 99===i?1073741823:1073741822;if(0!=(16&rs))return as;if(null!==n)t=Dc(t,0|n.timeoutMs||5e3,250);else switch(i){case 99:t=1073741823;break;case 98:t=Dc(t,150,100);break;case 97:case 96:t=Dc(t,5e3,250);break;case 95:t=2;break;default:throw Error(At(326))}return null!==os&&t===as&&--t,t}function Ms(t,e){if(50<zs)throw zs=0,Cs=null,Error(At(185));if(null!==(t=Os(t,e))){var n=yc();1073741823===e?0!=(8&rs)&&0==(48&rs)?Is(t):(Ns(t),0===rs&&Cc()):Ns(t),0==(4&rs)||98!==n&&99!==n||(null===_s?_s=new Map([[t,e]]):(void 0===(n=_s.get(t))||n>e)&&_s.set(t,e))}}function Os(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e);var i=t.return,r=null;if(null===i&&3===t.tag)r=t.stateNode;else for(;null!==i;){if(n=i.alternate,i.childExpirationTime<e&&(i.childExpirationTime=e),null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e),null===i.return&&3===i.tag){r=i.stateNode;break}i=i.return}return null!==r&&(os===r&&(Ls(e),ls===is&&bu(r,as)),mu(r,e)),r}function Es(t){var e=t.lastExpiredTime;if(0!==e)return e;if(!du(t,e=t.firstPendingTime))return e;var n=t.lastPingedTime;return 2>=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function Ns(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=zc(Is.bind(null,t));else{var e=Es(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var i=Ds();if(i=1073741823===e?99:1===e||2===e?95:0>=(i=10*(1073741821-e)-10*(1073741821-i))?99:250>=i?98:5250>=i?97:95,null!==n){if(t.callbackExpirationTime===e&&t.callbackPriority>=i)return;n!==fc&&ic(n)}t.callbackExpirationTime=e,t.callbackPriority=i,e=1073741823===e?zc(Is.bind(null,t)):_c(i,Ts.bind(null,t),{timeout:10*(1073741821-e)-xc()}),t.callbackNode=e}}}function Ts(t,e){if(Ss=0,e)return pu(t,e=Ds()),Ns(t),null;var n=Es(t);if(0!==n){if(e=t.callbackNode,0!=(48&rs))throw Error(At(327));if(Zs(),t===os&&n===as||As(t,n),null!==cs){var i=rs;rs|=16;for(var r=Fs();;)try{Ws();break}catch(e){Ps(t,e)}if(Tc(),rs=i,Jl.current=r,1===ls)throw e=ss,As(t,n),bu(t,n),Ns(t),e;if(null===cs)switch(r=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,i=ls,os=null,i){case es:case 1:throw Error(At(345));case 2:pu(t,2<n?2:n);break;case ns:if(bu(t,n),n===(i=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=Bs(r)),1073741823===us&&10<(r=ms+500-xc())){if(bs){var o=t.lastPingedTime;if(0===o||o>=n){t.lastPingedTime=n,As(t,n);break}}if(0!==(o=Es(t))&&o!==n)break;if(0!==i&&i!==n){t.lastPingedTime=i;break}t.timeoutHandle=Qi(Gs.bind(null,t),r);break}Gs(t);break;case is:if(bu(t,n),n===(i=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=Bs(r)),bs&&(0===(r=t.lastPingedTime)||r>=n)){t.lastPingedTime=n,As(t,n);break}if(0!==(r=Es(t))&&r!==n)break;if(0!==i&&i!==n){t.lastPingedTime=i;break}if(1073741823!==hs?i=10*(1073741821-hs)-xc():1073741823===us?i=0:(i=10*(1073741821-us)-5e3,0>(i=(r=xc())-i)&&(i=0),(n=10*(1073741821-n)-r)<(i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Ql(i/1960))-i)&&(i=n)),10<i){t.timeoutHandle=Qi(Gs.bind(null,t),i);break}Gs(t);break;case 5:if(1073741823!==us&&null!==fs){o=us;var c=fs;if(0>=(i=0|c.busyMinDurationMs)?i=0:(r=0|c.busyDelayMs,i=(o=xc()-(10*(1073741821-o)-(0|c.timeoutMs||5e3)))<=r?0:r+i-o),10<i){bu(t,n),t.timeoutHandle=Qi(Gs.bind(null,t),i);break}}Gs(t);break;default:throw Error(At(329))}if(Ns(t),t.callbackNode===e)return Ts.bind(null,t)}}return null}function Is(t){var e=t.lastExpiredTime;if(e=0!==e?e:1073741823,0!=(48&rs))throw Error(At(327));if(Zs(),t===os&&e===as||As(t,e),null!==cs){var n=rs;rs|=16;for(var i=Fs();;)try{Hs();break}catch(e){Ps(t,e)}if(Tc(),rs=n,Jl.current=i,1===ls)throw n=ss,As(t,e),bu(t,e),Ns(t),n;if(null!==cs)throw Error(At(261));t.finishedWork=t.current.alternate,t.finishedExpirationTime=e,os=null,Gs(t),Ns(t)}return null}function Rs(t,e){var n=rs;rs|=1;try{return t(e)}finally{0===(rs=n)&&Cc()}}function Ys(t,e){var n=rs;rs&=-2,rs|=8;try{return t(e)}finally{0===(rs=n)&&Cc()}}function As(t,e){t.finishedWork=null,t.finishedExpirationTime=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,Ji(n)),null!==cs)for(n=cs.return;null!==n;){var i=n;switch(i.tag){case 1:null!=(i=i.type.childContextTypes)&&Zo();break;case 3:fa(),Ho(Bo),Ho(Uo);break;case 5:ba(i);break;case 4:fa();break;case 13:case 19:Ho(ma);break;case 10:Ic(i)}n=n.return}os=t,cs=au(t.current,null),as=e,ls=es,ss=null,hs=us=1073741823,fs=null,ds=0,bs=!1}function Ps(t,e){for(;;){try{if(Tc(),ga.current=Ka,za)for(var n=wa.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}if(ya=0,_a=ka=wa=null,za=!1,null===cs||null===cs.return)return ls=1,ss=e,cs=null;t:{var r=t,o=cs.return,c=cs,a=e;if(e=as,c.effectTag|=2048,c.firstEffect=c.lastEffect=null,null!==a&&"object"==typeof a&&"function"==typeof a.then){var l=a;if(0==(2&c.mode)){var s=c.alternate;s?(c.updateQueue=s.updateQueue,c.memoizedState=s.memoizedState,c.expirationTime=s.expirationTime):(c.updateQueue=null,c.memoizedState=null)}var u=0!=(1&ma.current),h=o;do{var f;if(f=13===h.tag){var d=h.memoizedState;if(null!==d)f=null!==d.dehydrated;else{var b=h.memoizedProps;f=void 0!==b.fallback&&(!0!==b.unstable_avoidThisFallback||!u)}}if(f){var m=h.updateQueue;if(null===m){var p=new Set;p.add(l),h.updateQueue=p}else m.add(l);if(0==(2&h.mode)){if(h.effectTag|=64,c.effectTag&=-2981,1===c.tag)if(null===c.alternate)c.tag=17;else{var v=Lc(1073741823,null);v.tag=2,Hc(c,v)}c.expirationTime=1073741823;break t}a=void 0,c=e;var g=r.pingCache;if(null===g?(g=r.pingCache=new ql,a=new Set,g.set(l,a)):void 0===(a=g.get(l))&&(a=new Set,g.set(l,a)),!a.has(c)){a.add(c);var x=tu.bind(null,r,l,c);l.then(x,x)}h.effectTag|=4096,h.expirationTime=e;break t}h=h.return}while(null!==h);a=Error((Ge(c.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+qe(c))}5!==ls&&(ls=2),a=El(a,c),h=o;do{switch(h.tag){case 3:l=a,h.effectTag|=4096,h.expirationTime=e,Wc(h,Kl(h,l,e));break t;case 1:l=a;var y=h.stateNode;if(0==(64&h.effectTag)&&("function"==typeof h.type.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===xs||!xs.has(y)))){h.effectTag|=4096,h.expirationTime=e,Wc(h,Zl(h,l,e));break t}}h=h.return}while(null!==h)}cs=Us(cs)}catch(t){e=t;continue}break}}function Fs(){var t=Jl.current;return Jl.current=Ka,null===t?Ka:t}function $s(t,e){t<us&&2<t&&(us=t),null!==e&&t<hs&&2<t&&(hs=t,fs=e)}function Ls(t){t>ds&&(ds=t)}function Hs(){for(;null!==cs;)cs=Vs(cs)}function Ws(){for(;null!==cs&&!dc();)cs=Vs(cs)}function Vs(t){var e=Xl(t.alternate,t,as);return t.memoizedProps=t.pendingProps,null===e&&(e=Us(t)),ts.current=null,e}function Us(t){cs=t;do{var e=cs.alternate;if(t=cs.return,0==(2048&cs.effectTag)){if(e=Ml(e,cs,as),1===as||1!==cs.childExpirationTime){for(var n=0,i=cs.child;null!==i;){var r=i.expirationTime,o=i.childExpirationTime;r>n&&(n=r),o>n&&(n=o),i=i.sibling}cs.childExpirationTime=n}if(null!==e)return e;null!==t&&0==(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=cs.firstEffect),null!==cs.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=cs.firstEffect),t.lastEffect=cs.lastEffect),1<cs.effectTag&&(null!==t.lastEffect?t.lastEffect.nextEffect=cs:t.firstEffect=cs,t.lastEffect=cs))}else{if(null!==(e=Ol(cs)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}if(null!==(e=cs.sibling))return e;cs=t}while(null!==cs);return ls===es&&(ls=5),null}function Bs(t){var e=t.expirationTime;return e>(t=t.childExpirationTime)?e:t}function Gs(t){var e=yc();return kc(99,qs.bind(null,t,e)),null}function qs(t,e){do{Zs()}while(null!==ws);if(0!=(48&rs))throw Error(At(327));var n=t.finishedWork,i=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(At(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var r=Bs(n);if(t.firstPendingTime=r,i<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:i<=t.firstSuspendedTime&&(t.firstSuspendedTime=i-1),i<=t.lastPingedTime&&(t.lastPingedTime=0),i<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===os&&(cs=os=null,as=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){var o=rs;rs|=32,ts.current=null,qi=_i;var c=Vi();if(Ui(c)){if("selectionStart"in c)var a={start:c.selectionStart,end:c.selectionEnd};else{var l=(a=(a=c.ownerDocument)&&a.defaultView||window).getSelection&&a.getSelection();if(l&&0!==l.rangeCount){a=l.anchorNode;var s=l.anchorOffset,u=l.focusNode;l=l.focusOffset;var h=0,f=-1,d=-1,b=0,m=0,p=c,v=null;t:for(;;){for(var g;p!==a||0!==s&&3!==p.nodeType||(f=h+s),p!==u||0!==l&&3!==p.nodeType||(d=h+l),3===p.nodeType&&(h+=p.nodeValue.length),null!==(g=p.firstChild);)v=p,p=g;for(;;){if(p===c)break t;if(v===a&&++b===s&&(f=h),v===u&&++m===l&&(d=h),null!==(g=p.nextSibling))break;v=(p=v).parentNode}p=g}a=-1===f||-1===d?null:{start:f,end:d}}else a=null}a=a||{start:0,end:0}}else a=null;Ki={activeElementDetached:null,focusedElem:c,selectionRange:a},_i=!1,ps=r;do{try{Ks()}catch(t){if(null===ps)throw Error(At(330));Js(ps,t),ps=ps.nextEffect}}while(null!==ps);ps=r;do{try{for(c=t,a=e;null!==ps;){var x=ps.effectTag;if(16&x&&vn(ps.stateNode,""),128&x){var y=ps.alternate;if(null!==y){var w=y.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&x){case 2:Hl(ps),ps.effectTag&=-3;break;case 6:Hl(ps),ps.effectTag&=-3,Bl(ps.alternate,ps);break;case 1024:ps.effectTag&=-1025;break;case 1028:ps.effectTag&=-1025,Bl(ps.alternate,ps);break;case 4:Bl(ps.alternate,ps);break;case 8:Ul(c,s=ps,a),$l(s)}ps=ps.nextEffect}}catch(t){if(null===ps)throw Error(At(330));Js(ps,t),ps=ps.nextEffect}}while(null!==ps);if(w=Ki,y=Vi(),a=w.selectionRange,y!==(x=w.focusedElem)&&x&&x.ownerDocument&&Wi(x.ownerDocument.documentElement,x)){null!==a&&Ui(x)&&(y=a.start,void 0===(w=a.end)&&(w=y),"selectionStart"in x?(x.selectionStart=y,x.selectionEnd=Math.min(w,x.value.length)):(w=(y=x.ownerDocument||document)&&y.defaultView||window).getSelection&&(w=w.getSelection(),s=x.textContent.length,c=Math.min(a.start,s),a=void 0===a.end?c:Math.min(a.end,s),!w.extend&&c>a&&(s=a,a=c,c=s),s=Hi(x,c),u=Hi(x,a),s&&u&&(1!==w.rangeCount||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==u.node||w.focusOffset!==u.offset)&&((y=y.createRange()).setStart(s.node,s.offset),w.removeAllRanges(),c>a?(w.addRange(y),w.extend(u.node,u.offset)):(y.setEnd(u.node,u.offset),w.addRange(y))))),y=[];for(w=x;w=w.parentNode;)1===w.nodeType&&y.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof x.focus&&x.focus(),x=0;x<y.length;x++)(w=y[x]).element.scrollLeft=w.left,w.element.scrollTop=w.top}_i=!!qi,Ki=qi=null,t.current=n,ps=r;do{try{for(x=t;null!==ps;){var k=ps.effectTag;if(36&k&&Pl(x,ps.alternate,ps),128&k){y=void 0;var _=ps.ref;if(null!==_)y=ps.stateNode,"function"==typeof _?_(y):_.current=y}ps=ps.nextEffect}}catch(t){if(null===ps)throw Error(At(330));Js(ps,t),ps=ps.nextEffect}}while(null!==ps);ps=null,bc(),rs=o}else t.current=n;if(ys)ys=!1,ws=t,ks=e;else for(ps=r;null!==ps;)e=ps.nextEffect,ps.nextEffect=null,ps=e;if(0===(e=t.firstPendingTime)&&(xs=null),1073741823===e?t===Cs?zs++:(zs=0,Cs=t):zs=0,"function"==typeof nu&&nu(n.stateNode,i),Ns(t),vs)throw vs=!1,t=gs,gs=null,t;return 0!=(8&rs)||Cc(),null}function Ks(){for(;null!==ps;){var t=ps.effectTag;0!=(256&t)&&Rl(ps.alternate,ps),0==(512&t)||ys||(ys=!0,_c(97,(function(){return Zs(),null}))),ps=ps.nextEffect}}function Zs(){if(90!==ks){var t=97<ks?97:ks;return ks=90,kc(t,Xs)}}function Xs(){if(null===ws)return!1;var t=ws;if(ws=null,0!=(48&rs))throw Error(At(331));var e=rs;for(rs|=32,t=t.current.firstEffect;null!==t;){try{var n=t;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:Yl(5,n),Al(5,n)}}catch(e){if(null===t)throw Error(At(330));Js(t,e)}n=t.nextEffect,t.nextEffect=null,t=n}return rs=e,Cc(),!0}function Qs(t,e,n){Hc(t,e=Kl(t,e=El(n,e),1073741823)),null!==(t=Os(t,1073741823))&&Ns(t)}function Js(t,e){if(3===t.tag)Qs(t,t,e);else for(var n=t.return;null!==n;){if(3===n.tag){Qs(n,t,e);break}if(1===n.tag){var i=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===xs||!xs.has(i))){Hc(n,t=Zl(n,t=El(e,t),1073741823)),null!==(n=Os(n,1073741823))&&Ns(n);break}}n=n.return}}function tu(t,e,n){var i=t.pingCache;null!==i&&i.delete(e),os===t&&as===n?ls===is||ls===ns&&1073741823===us&&xc()-ms<500?As(t,as):bs=!0:du(t,n)&&(0!==(e=t.lastPingedTime)&&e<n||(t.lastPingedTime=n,Ns(t)))}function eu(t,e){var n=t.stateNode;null!==n&&n.delete(e),0==(e=0)&&(e=js(e=Ds(),t,null)),null!==(t=Os(t,e))&&Ns(t)}Xl=function(t,e,n){var i=e.expirationTime;if(null!==t){var r=e.pendingProps;if(t.memoizedProps!==r||Bo.current)sl=!0;else{if(i<n){switch(sl=!1,e.tag){case 3:gl(e),al();break;case 5:if(da(e),4&e.mode&&1!==n&&r.hidden)return e.expirationTime=e.childExpirationTime=1,null;break;case 1:Ko(e.type)&&Jo(e);break;case 4:ha(e,e.stateNode.containerInfo);break;case 10:i=e.memoizedProps.value,Wo(Mc,(r=e.type._context)._currentValue),r._currentValue=i;break;case 13:if(null!==e.memoizedState)return 0!==(i=e.child.childExpirationTime)&&i>=n?_l(t,e,n):(Wo(ma,1&ma.current),null!==(e=Dl(t,e,n))?e.sibling:null);Wo(ma,1&ma.current);break;case 19:if(i=e.childExpirationTime>=n,0!=(64&t.effectTag)){if(i)return Sl(t,e,n);e.effectTag|=64}if(null!==(r=e.memoizedState)&&(r.rendering=null,r.tail=null),Wo(ma,ma.current),!i)return null}return Dl(t,e,n)}sl=!1}}else sl=!1;switch(e.expirationTime=0,e.tag){case 2:if(i=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,r=qo(e,Uo.current),Yc(e,n),r=Da(null,e,i,t,r,n),e.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ko(i)){var o=!0;Jo(e)}else o=!1;e.memoizedState=null!=r.state?r.state:null,Fc(e);var c=i.getDerivedStateFromProps;"function"==typeof c&&qc(e,i,c,t),r.updater=Kc,e.stateNode=r,r._reactInternalFiber=e,Jc(e,i,t,n),e=vl(null,e,i,!0,o,n)}else e.tag=0,ul(null,e,r,n),e=e.child;return e;case 16:t:{if(r=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(r),1!==r._status)throw r._result;switch(e.type=r=r._result,o=e.tag=function(t){if("function"==typeof t)return cu(t)?1:0;if(null!=t){if((t=t.$$typeof)===Fe)return 11;if(t===He)return 14}return 2}(r),t=jc(r,t),o){case 0:e=ml(null,e,r,t,n);break t;case 1:e=pl(null,e,r,t,n);break t;case 11:e=hl(null,e,r,t,n);break t;case 14:e=fl(null,e,r,jc(r.type,t),i,n);break t}throw Error(At(306,r,""))}return e;case 0:return r=e.pendingProps,ml(t,e,i=e.type,r=e.elementType===i?r:jc(i,r),n);case 1:return r=e.pendingProps,pl(t,e,i=e.type,r=e.elementType===i?r:jc(i,r),n);case 3:if(gl(e),i=e.updateQueue,null===t||null===i)throw Error(At(282));if(i=e.pendingProps,r=null!==(r=e.memoizedState)?r.element:null,$c(t,e),Vc(e,i,null,n),(i=e.memoizedState.element)===r)al(),e=Dl(t,e,n);else{if((r=e.stateNode.hydrate)&&(tl=tr(e.stateNode.containerInfo.firstChild),Ja=e,r=el=!0),r)for(n=oa(e,null,i,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else ul(t,e,i,n),al();e=e.child}return e;case 5:return da(e),null===t&&rl(e),o=null!==t?t.memoizedProps:null,c=(r=e.pendingProps).children,Xi(i=e.type,r)?c=null:null!==o&&Xi(i,o)&&(e.effectTag|=16),bl(t,e),4&e.mode&&1!==n&&r.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(ul(t,e,c,n),e=e.child),e;case 6:return null===t&&rl(e),null;case 13:return _l(t,e,n);case 4:return ha(e,e.stateNode.containerInfo),i=e.pendingProps,null===t?e.child=ra(e,null,i,n):ul(t,e,i,n),e.child;case 11:return r=e.pendingProps,hl(t,e,i=e.type,r=e.elementType===i?r:jc(i,r),n);case 7:return ul(t,e,e.pendingProps,n),e.child;case 8:case 12:return ul(t,e,e.pendingProps.children,n),e.child;case 10:t:{i=e.type._context,c=e.memoizedProps,o=(r=e.pendingProps).value;var a=e.type._context;if(Wo(Mc,a._currentValue),a._currentValue=o,null!==c)if(0==(o=vo(a=c.value,o)?0:0|("function"==typeof i._calculateChangedBits?i._calculateChangedBits(a,o):1073741823))){if(c.children===r.children&&!Bo.current){e=Dl(t,e,n);break t}}else for(null!==(a=e.child)&&(a.return=e);null!==a;){var l=a.dependencies;if(null!==l){c=a.child;for(var s=l.firstContext;null!==s;){if(s.context===i&&0!=(s.observedBits&o)){1===a.tag&&((s=Lc(n,null)).tag=2,Hc(a,s)),a.expirationTime<n&&(a.expirationTime=n),null!==(s=a.alternate)&&s.expirationTime<n&&(s.expirationTime=n),Rc(a.return,n),l.expirationTime<n&&(l.expirationTime=n);break}s=s.next}}else c=10===a.tag&&a.type===e.type?null:a.child;if(null!==c)c.return=a;else for(c=a;null!==c;){if(c===e){c=null;break}if(null!==(a=c.sibling)){a.return=c.return,c=a;break}c=c.return}a=c}ul(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=(o=e.pendingProps).children,Yc(e,n),i=i(r=Ac(r,o.unstable_observedBits)),e.effectTag|=1,ul(t,e,i,n),e.child;case 14:return o=jc(r=e.type,e.pendingProps),fl(t,e,r,o=jc(r.type,o),i,n);case 15:return dl(t,e,e.type,e.pendingProps,i,n);case 17:return r=e.pendingProps,r=e.elementType===(i=e.type)?r:jc(i,r),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,Ko(i)?(t=!0,Jo(e)):t=!1,Yc(e,n),Xc(e,i,r),Jc(e,i,r,n),vl(null,e,i,!0,t,n);case 19:return Sl(t,e,n)}throw Error(At(156,e.tag))};var nu=null,iu=null;function ru(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function ou(t,e,n,i){return new ru(t,e,n,i)}function cu(t){return!(!(t=t.prototype)||!t.isReactComponent)}function au(t,e){var n=t.alternate;return null===n?((n=ou(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,n.dependencies=null===(e=t.dependencies)?null:{expirationTime:e.expirationTime,firstContext:e.firstContext,responders:e.responders},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function lu(t,e,n,i,r,o){var c=2;if(i=t,"function"==typeof t)cu(t)&&(c=1);else if("string"==typeof t)c=5;else t:switch(t){case Te:return su(n.children,r,o,e);case Pe:c=8,r|=7;break;case Ie:c=8,r|=1;break;case Re:return(t=ou(12,n,e,8|r)).elementType=Re,t.type=Re,t.expirationTime=o,t;case $e:return(t=ou(13,n,e,r)).type=$e,t.elementType=$e,t.expirationTime=o,t;case Le:return(t=ou(19,n,e,r)).elementType=Le,t.expirationTime=o,t;default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case Ye:c=10;break t;case Ae:c=9;break t;case Fe:c=11;break t;case He:c=14;break t;case We:c=16,i=null;break t;case Ve:c=22;break t}throw Error(At(130,null==t?t:typeof t,""))}return(e=ou(c,n,e,r)).elementType=t,e.type=i,e.expirationTime=o,e}function su(t,e,n,i){return(t=ou(7,t,i,e)).expirationTime=n,t}function uu(t,e,n){return(t=ou(6,t,null,e)).expirationTime=n,t}function hu(t,e,n){return(e=ou(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function fu(t,e,n){this.tag=e,this.current=null,this.containerInfo=t,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function du(t,e){var n=t.firstSuspendedTime;return t=t.lastSuspendedTime,0!==n&&n>=e&&t<=e}function bu(t,e){var n=t.firstSuspendedTime,i=t.lastSuspendedTime;n<e&&(t.firstSuspendedTime=e),(i>e||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function mu(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function pu(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function vu(t,e,n,i){var r=e.current,o=Ds(),c=Bc.suspense;o=js(o,r,c);t:if(n){e:{if(On(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(At(170));var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(Ko(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(null!==a);throw Error(At(171))}if(1===n.tag){var l=n.type;if(Ko(l)){n=Qo(n,l,a);break t}}n=a}else n=Vo;return null===e.context?e.context=n:e.pendingContext=n,(e=Lc(o,c)).payload={element:t},null!==(i=void 0===i?null:i)&&(e.callback=i),Hc(r,e),Ms(r,o),o}function gu(t){return(t=t.current).child?t.child.stateNode:null}function xu(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime<e&&(t.retryTime=e)}function yu(t,e){xu(t,e),(t=t.alternate)&&xu(t,e)}function wu(t,e,n){var i=new fu(t,e,n=null!=n&&!0===n.hydrate),r=ou(3,null,null,2===e?7:1===e?3:0);i.current=r,r.stateNode=i,Fc(r),t[or]=i.current,n&&0!==e&&function(t,e){var n=Mn(e);ii.forEach((function(t){Un(t,e,n)})),ri.forEach((function(t){Un(t,e,n)}))}(0,9===t.nodeType?t:t.ownerDocument),this._internalRoot=i}function ku(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function _u(t,e,n,i,r){var o=n._reactRootContainer;if(o){var c=o._internalRoot;if("function"==typeof r){var a=r;r=function(){var t=gu(c);a.call(t)}}vu(e,c,t,r)}else{if(o=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new wu(t,0,e?{hydrate:!0}:void 0)}(n,i),c=o._internalRoot,"function"==typeof r){var l=r;r=function(){var t=gu(c);l.call(t)}}Ys((function(){vu(e,c,t,r)}))}return gu(c)}function zu(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ne,key:null==i?null:""+i,children:t,containerInfo:e,implementation:n}}function Cu(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ku(e))throw Error(At(200));return zu(t,e,null,n)}wu.prototype.render=function(t){vu(t,this._internalRoot,null,null)},wu.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;vu(null,t,null,(function(){e[or]=null}))},Bn=function(t){if(13===t.tag){var e=Dc(Ds(),150,100);Ms(t,e),yu(t,e)}},Gn=function(t){13===t.tag&&(Ms(t,3),yu(t,3))},qn=function(t){if(13===t.tag){var e=Ds();Ms(t,e=js(e,t,null)),yu(t,e)}},oe=function(t,e,n){switch(e){case"input":if(nn(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var r=sr(i);if(!r)throw Error(At(90));Qe(i),nn(i,r)}}}break;case"textarea":un(t,n);break;case"select":null!=(e=n.value)&&an(t,!!n.multiple,e,!1)}},he=Rs,fe=function(t,e,n,i,r){var o=rs;rs|=4;try{return kc(98,t.bind(null,e,n,i,r))}finally{0===(rs=o)&&Cc()}},de=function(){0==(49&rs)&&(function(){if(null!==_s){var t=_s;_s=null,t.forEach((function(t,e){pu(e,t),Ns(e)})),Cc()}}(),Zs())},be=function(t,e){var n=rs;rs|=2;try{return t(e)}finally{0===(rs=n)&&Cc()}};var Su={Events:[ar,lr,sr,ie,te,pr,function(t){Rn(t,mr)},se,ue,ji,Pn,Zs,{current:!1}]};!function(t){var e=t.findFiberByHostInstance;!function(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);nu=function(t){try{e.onCommitFiberRoot(n,t,void 0,64==(64&t.current.effectTag))}catch(t){}},iu=function(t){try{e.onCommitFiberUnmount(n,t)}catch(t){}}}catch(t){}}(G({},t,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:De.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=Tn(t))?null:t.stateNode},findFiberByHostInstance:function(t){return e?e(t):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:cr,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"});var Du={__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Su,createPortal:Cu,findDOMNode:function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;if(void 0===e){if("function"==typeof t.render)throw Error(At(188));throw Error(At(268,Object.keys(t)))}return null===(t=Tn(e))?null:t.stateNode},flushSync:function(t,e){if(0!=(48&rs))throw Error(At(187));var n=rs;rs|=1;try{return kc(99,t.bind(null,e))}finally{rs=n,Cc()}},hydrate:function(t,e,n){if(!ku(e))throw Error(At(200));return _u(null,t,e,!0,n)},render:function(t,e,n){if(!ku(e))throw Error(At(200));return _u(null,t,e,!1,n)},unmountComponentAtNode:function(t){if(!ku(t))throw Error(At(40));return!!t._reactRootContainer&&(Ys((function(){_u(null,null,t,!1,(function(){t._reactRootContainer=null,t[or]=null}))})),!0)},unstable_batchedUpdates:Rs,unstable_createPortal:function(t,e){return Cu(t,e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},unstable_renderSubtreeIntoContainer:function(t,e,n,i){if(!ku(n))throw Error(At(200));if(null==t||void 0===t._reactInternalFiber)throw Error(At(38));return _u(t,e,n,!1,i)},version:"16.14.0"},ju=0,Mu={__interactionsRef:null,__subscriberRef:null,unstable_clear:function(t){return t()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++ju},unstable_subscribe:function(){},unstable_trace:function(t,e,n){return n()},unstable_unsubscribe:function(){},unstable_wrap:function(t){return t}};y((function(){})),y((function(t){t.exports=Mu})),y((function(){}));var Ou=y((function(t){!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=Du}));function Eu(){return(Eu=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function Nu(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||(r[n]=t[n]);return r}function Tu(t){var e=Tt.useRef(t),n=Tt.useRef((function(t){e.current&&e.current(t)}));return e.current=t,n.current}var Iu=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),t>n?n:t<e?e:t},Ru=function(t){return"touches"in t},Yu=function(t){return t&&t.ownerDocument.defaultView||self},Au=function(t,e,n){var i=t.getBoundingClientRect(),r=Ru(e)?function(t,e){for(var n=0;n<t.length;n++)if(t[n].identifier===e)return t[n];return t[0]}(e.touches,n):e;return{left:Iu((r.pageX-(i.left+Yu(t).pageXOffset))/i.width),top:Iu((r.pageY-(i.top+Yu(t).pageYOffset))/i.height)}},Pu=function(t){!Ru(t)&&t.preventDefault()},Fu=Tt.memo((function(t){var e=t.onMove,n=t.onKey,i=Nu(t,["onMove","onKey"]),r=Tt.useRef(null),o=Tu(e),c=Tu(n),a=Tt.useRef(null),l=Tt.useRef(!1),s=Tt.useMemo((function(){var t=function(t){Pu(t),(Ru(t)?t.touches.length>0:t.buttons>0)&&r.current?o(Au(r.current,t,a.current)):n(!1)},e=function(){return n(!1)};function n(n){var i=l.current,o=Yu(r.current),c=n?o.addEventListener:o.removeEventListener;c(i?"touchmove":"mousemove",t),c(i?"touchend":"mouseup",e)}return[function(t){var e=t.nativeEvent,i=r.current;if(i&&(Pu(e),!function(t,e){return e&&!Ru(t)}(e,l.current)&&i)){if(Ru(e)){l.current=!0;var c=e.changedTouches||[];c.length&&(a.current=c[0].identifier)}i.focus(),o(Au(i,e,a.current)),n(!0)}},function(t){var e=t.which||t.keyCode;e<37||e>40||(t.preventDefault(),c({left:39===e?.05:37===e?-.05:0,top:40===e?.05:38===e?-.05:0}))},n]}),[c,o]),u=s[0],h=s[1],f=s[2];return Tt.useEffect((function(){return f}),[f]),Tt.createElement("div",Eu({},i,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:r,onKeyDown:h,tabIndex:0,role:"slider"}))})),$u=function(t){return t.filter(Boolean).join(" ")},Lu=function(t){var e=t.color,n=t.left,i=t.top,r=void 0===i?.5:i,o=$u(["react-colorful__pointer",t.className]);return Tt.createElement("div",{className:o,style:{top:100*r+"%",left:100*n+"%"}},Tt.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},Hu=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=Math.pow(10,e)),Math.round(n*t)/n},Wu=function(t){return"#"===t[0]&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?Hu(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:8===t.length?Hu(parseInt(t.substring(6,8),16)/255,2):1}},Vu=function(t){var e=function(t){var e=t.s,n=t.v,i=t.a,r=(200-e)*n/100;return{h:Hu(t.h),s:Hu(r>0&&r<200?e*n/100/(r<=100?r:200-r)*100:0),l:Hu(r/2),a:Hu(i,2)}}(t);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},Uu=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Bu=Tt.memo((function(t){var e=t.hue,n=t.onChange,i=$u(["react-colorful__hue",t.className]);return Tt.createElement("div",{className:i},Tt.createElement(Fu,{onMove:function(t){n({h:360*t.left})},onKey:function(t){n({h:Iu(e+360*t.left,0,360)})},"aria-label":"Hue","aria-valuenow":Hu(e),"aria-valuemax":"360","aria-valuemin":"0"},Tt.createElement(Lu,{className:"react-colorful__hue-pointer",left:e/360,color:Vu({h:e,s:100,v:100,a:1})})))})),Gu=Tt.memo((function(t){var e=t.hsva,n=t.onChange,i={backgroundColor:Vu({h:e.h,s:100,v:100,a:1})};return Tt.createElement("div",{className:"react-colorful__saturation",style:i},Tt.createElement(Fu,{onMove:function(t){n({s:100*t.left,v:100-100*t.top})},onKey:function(t){n({s:Iu(e.s+100*t.left,0,100),v:Iu(e.v-100*t.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Hu(e.s)+"%, Brightness "+Hu(e.v)+"%"},Tt.createElement(Lu,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Vu(e)})))})),qu=function(t,e){if(t===e)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0};function Ku(t,e,n){var i=Tu(n),r=Tt.useState((function(){return t.toHsva(e)})),o=r[0],c=r[1],a=Tt.useRef({color:e,hsva:o});Tt.useEffect((function(){if(!t.equal(e,a.current.color)){var n=t.toHsva(e);a.current={hsva:n,color:e},c(n)}}),[e,t]),Tt.useEffect((function(){var e;qu(o,a.current.hsva)||t.equal(e=t.fromHsva(o),a.current.color)||(a.current={hsva:o,color:e},i(e))}),[o,t,i]);var l=Tt.useCallback((function(t){c((function(e){return Object.assign({},e,t)}))}),[]);return[o,l]}var Zu="undefined"!=typeof window?Tt.useLayoutEffect:Tt.useEffect,Xu=new Map,Qu=function(t){var e=t.className,n=t.colorModel,i=t.color,r=void 0===i?n.defaultColor:i,o=t.onChange,c=Nu(t,["className","colorModel","color","onChange"]),a=Tt.useRef(null);!function(t){Zu((function(){var e=t.current?t.current.ownerDocument:document;if(void 0!==e&&!Xu.has(e)){var n=e.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',Xu.set(e,n);var i="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0;i&&n.setAttribute("nonce",i),e.head.appendChild(n)}}),[])}(a);var l=Ku(n,r,o),s=l[0],u=l[1],h=$u(["react-colorful",e]);return Tt.createElement("div",Eu({},c,{ref:a,className:h}),Tt.createElement(Gu,{hsva:s,onChange:u}),Tt.createElement(Bu,{hue:s.h,onChange:u,className:"react-colorful__last-control"}))},Ju={defaultColor:"000",toHsva:function(t){return function(t){var e=t.r,n=t.g,i=t.b,r=t.a,o=Math.max(e,n,i),c=o-Math.min(e,n,i),a=c?o===e?(n-i)/c:o===n?2+(i-e)/c:4+(e-n)/c:0;return{h:Hu(60*(a<0?a+6:a)),s:Hu(o?c/o*100:0),v:Hu(o/255*100),a:r}}(Wu(t))},fromHsva:function(t){return function(t){return function(t){var e=t.r,n=t.g,i=t.b,r=t.a,o=r<1?Uu(Hu(255*r)):"";return"#"+Uu(e)+Uu(n)+Uu(i)+o}(function(t){var e=t.h,n=t.s,i=t.v,r=t.a;e=e/360*6,n/=100,i/=100;var o=Math.floor(e),c=i*(1-n),a=i*(1-(e-o)*n),l=i*(1-(1-e+o)*n),s=o%6;return{r:Hu(255*[i,a,c,c,l,i][s]),g:Hu(255*[l,i,i,a,c,c][s]),b:Hu(255*[c,c,l,i,i,a][s]),a:Hu(r,2)}}(t))}({h:t.h,s:t.s,v:t.v,a:1})},equal:function(t,e){return t.toLowerCase()===e.toLowerCase()||qu(Wu(t),Wu(e))}},th=function(t){return Tt.createElement(Qu,Eu({},t,{colorModel:Ju}))},eh=y((function(t,e){(function(){var n,i="Expected a function",r="__lodash_hash_undefined__",o="__lodash_placeholder__",c=32,a=128,l=1/0,s=9007199254740991,u=NaN,h=4294967295,f=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],d="[object Arguments]",b="[object Array]",m="[object Boolean]",p="[object Date]",v="[object Error]",g="[object Function]",x="[object GeneratorFunction]",y="[object Map]",k="[object Number]",_="[object Object]",z="[object Promise]",C="[object RegExp]",S="[object Set]",D="[object String]",j="[object Symbol]",M="[object WeakMap]",O="[object ArrayBuffer]",E="[object DataView]",N="[object Float32Array]",T="[object Float64Array]",I="[object Int8Array]",R="[object Int16Array]",Y="[object Int32Array]",A="[object Uint8Array]",P="[object Uint8ClampedArray]",F="[object Uint16Array]",$="[object Uint32Array]",L=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,B=RegExp(V.source),G=RegExp(U.source),q=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,et=RegExp(tt.source),nt=/^\s+/,it=/\s/,rt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,ct=/,? & /,at=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,st=/\\(\\)?/g,ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,bt=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,pt=/^(?:0|[1-9]\d*)$/,vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gt=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,yt="\\ud800-\\udfff",wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kt="\\u2700-\\u27bf",_t="a-z\\xdf-\\xf6\\xf8-\\xff",zt="A-Z\\xc0-\\xd6\\xd8-\\xde",Ct="\\ufe0e\\ufe0f",St="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Dt="["+yt+"]",jt="["+St+"]",Mt="["+wt+"]",Ot="\\d+",Et="["+kt+"]",Nt="["+_t+"]",Tt="[^"+yt+St+Ot+kt+_t+zt+"]",It="\\ud83c[\\udffb-\\udfff]",Rt="[^"+yt+"]",Yt="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",Pt="["+zt+"]",Ft="\\u200d",$t="(?:"+Nt+"|"+Tt+")",Lt="(?:"+Pt+"|"+Tt+")",Ht="(?:['’](?:d|ll|m|re|s|t|ve))?",Wt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vt="(?:"+Mt+"|"+It+")?",Ut="["+Ct+"]?",Bt=Ut+Vt+"(?:"+Ft+"(?:"+[Rt,Yt,At].join("|")+")"+Ut+Vt+")*",Gt="(?:"+[Et,Yt,At].join("|")+")"+Bt,qt="(?:"+[Rt+Mt+"?",Mt,Yt,At,Dt].join("|")+")",Kt=RegExp("['’]","g"),Zt=RegExp(Mt,"g"),Xt=RegExp(It+"(?="+It+")|"+qt+Bt,"g"),Qt=RegExp([Pt+"?"+Nt+"+"+Ht+"(?="+[jt,Pt,"$"].join("|")+")",Lt+"+"+Wt+"(?="+[jt,Pt+$t,"$"].join("|")+")",Pt+"?"+$t+"+"+Ht,Pt+"+"+Wt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ot,Gt].join("|"),"g"),Jt=RegExp("["+Ft+yt+wt+Ct+"]"),te=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ne=-1,ie={};ie[N]=ie[T]=ie[I]=ie[R]=ie[Y]=ie[A]=ie[P]=ie[F]=ie[$]=!0,ie[d]=ie[b]=ie[O]=ie[m]=ie[E]=ie[p]=ie[v]=ie[g]=ie[y]=ie[k]=ie[_]=ie[C]=ie[S]=ie[D]=ie[M]=!1;var re={};re[d]=re[b]=re[O]=re[E]=re[m]=re[p]=re[N]=re[T]=re[I]=re[R]=re[Y]=re[y]=re[k]=re[_]=re[C]=re[S]=re[D]=re[j]=re[A]=re[P]=re[F]=re[$]=!0,re[v]=re[g]=re[M]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ce=parseFloat,ae=parseInt,le="object"==typeof w&&w&&w.Object===Object&&w,se="object"==typeof self&&self&&self.Object===Object&&self,ue=le||se||Function("return this")(),he=e&&!e.nodeType&&e,fe=he&&t&&!t.nodeType&&t,de=fe&&fe.exports===he,be=de&&le.process,me=function(){try{return fe&&fe.require&&fe.require("util").types||be&&be.binding&&be.binding("util")}catch(t){}}(),pe=me&&me.isArrayBuffer,ve=me&&me.isDate,ge=me&&me.isMap,xe=me&&me.isRegExp,ye=me&&me.isSet,we=me&&me.isTypedArray;function ke(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function _e(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r<o;){var c=t[r];e(i,c,n(c),t)}return i}function ze(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function Ce(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Se(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function De(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var c=t[n];e(c,n,t)&&(o[r++]=c)}return o}function je(t,e){return!(null==t||!t.length)&&Pe(t,e,0)>-1}function Me(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function Oe(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function Ee(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function Ne(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}function Te(t,e,n,i){var r=null==t?0:t.length;for(i&&r&&(n=t[--r]);r--;)n=e(n,t[r],r,t);return n}function Ie(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var Re=He("length");function Ye(t,e,n){var i;return n(t,(function(t,n,r){if(e(t,n,r))return i=n,!1})),i}function Ae(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}function Pe(t,e,n){return e==e?function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}(t,e,n):Ae(t,$e,n)}function Fe(t,e,n,i){for(var r=n-1,o=t.length;++r<o;)if(i(t[r],e))return r;return-1}function $e(t){return t!=t}function Le(t,e){var n=null==t?0:t.length;return n?Ue(t,e)/n:u}function He(t){return function(e){return null==e?n:e[t]}}function We(t){return function(e){return null==t?n:t[e]}}function Ve(t,e,n,i,r){return r(t,(function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)})),n}function Ue(t,e){for(var i,r=-1,o=t.length;++r<o;){var c=e(t[r]);c!==n&&(i=i===n?c:i+c)}return i}function Be(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function Ge(t){return t?t.slice(0,fn(t)+1).replace(nt,""):t}function qe(t){return function(e){return t(e)}}function Ke(t,e){return Oe(e,(function(e){return t[e]}))}function Ze(t,e){return t.has(e)}function Xe(t,e){for(var n=-1,i=t.length;++n<i&&Pe(e,t[n],0)>-1;);return n}function Qe(t,e){for(var n=t.length;n--&&Pe(e,t[n],0)>-1;);return n}function Je(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}var tn=We({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),en=We({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(t){return"\\"+oe[t]}function rn(t){return Jt.test(t)}function on(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function cn(t,e){return function(n){return t(e(n))}}function an(t,e){for(var n=-1,i=t.length,r=0,c=[];++n<i;){var a=t[n];a!==e&&a!==o||(t[n]=o,c[r++]=n)}return c}function ln(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function sn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function un(t){return rn(t)?function(t){for(var e=Xt.lastIndex=0;Xt.test(t);)++e;return e}(t):Re(t)}function hn(t){return rn(t)?function(t){return t.match(Xt)||[]}(t):function(t){return t.split("")}(t)}function fn(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var dn=We({"&":"&","<":"<",">":">",""":'"',"'":"'"}),bn=function t(e){var w,it=(e=null==e?ue:bn.defaults(ue.Object(),e,bn.pick(ue,ee))).Array,yt=e.Date,wt=e.Error,kt=e.Function,_t=e.Math,zt=e.Object,Ct=e.RegExp,St=e.String,Dt=e.TypeError,jt=it.prototype,Mt=zt.prototype,Ot=e["__core-js_shared__"],Et=kt.prototype.toString,Nt=Mt.hasOwnProperty,Tt=0,It=(w=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",Rt=Mt.toString,Yt=Et.call(zt),At=ue._,Pt=Ct("^"+Et.call(Nt).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=de?e.Buffer:n,$t=e.Symbol,Lt=e.Uint8Array,Ht=Ft?Ft.allocUnsafe:n,Wt=cn(zt.getPrototypeOf,zt),Vt=zt.create,Ut=Mt.propertyIsEnumerable,Bt=jt.splice,Gt=$t?$t.isConcatSpreadable:n,qt=$t?$t.iterator:n,Xt=$t?$t.toStringTag:n,Jt=function(){try{var t=lo(zt,"defineProperty");return t({},"",{}),t}catch(t){}}(),oe=e.clearTimeout!==ue.clearTimeout&&e.clearTimeout,le=yt&&yt.now!==ue.Date.now&&yt.now,se=e.setTimeout!==ue.setTimeout&&e.setTimeout,he=_t.ceil,fe=_t.floor,be=zt.getOwnPropertySymbols,me=Ft?Ft.isBuffer:n,Re=e.isFinite,We=jt.join,mn=cn(zt.keys,zt),pn=_t.max,vn=_t.min,gn=yt.now,xn=e.parseInt,yn=_t.random,wn=jt.reverse,kn=lo(e,"DataView"),_n=lo(e,"Map"),zn=lo(e,"Promise"),Cn=lo(e,"Set"),Sn=lo(e,"WeakMap"),Dn=lo(zt,"create"),jn=Sn&&new Sn,Mn={},On=Po(kn),En=Po(_n),Nn=Po(zn),Tn=Po(Cn),In=Po(Sn),Rn=$t?$t.prototype:n,Yn=Rn?Rn.valueOf:n,An=Rn?Rn.toString:n;function Pn(t){if(ea(t)&&!Vc(t)&&!(t instanceof Hn)){if(t instanceof Ln)return t;if(Nt.call(t,"__wrapped__"))return Fo(t)}return new Ln(t)}var Fn=function(){function t(){}return function(e){if(!ta(e))return{};if(Vt)return Vt(e);t.prototype=e;var i=new t;return t.prototype=n,i}}();function $n(){}function Ln(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=n}function Hn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Wn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Bn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Un;++e<n;)this.add(t[e])}function Gn(t){var e=this.__data__=new Vn(t);this.size=e.size}function qn(t,e){var n=Vc(t),i=!n&&Wc(t),r=!n&&!i&&qc(t),o=!n&&!i&&!r&&sa(t),c=n||i||r||o,a=c?Be(t.length,St):[],l=a.length;for(var s in t)!e&&!Nt.call(t,s)||c&&("length"==s||r&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||po(s,l))||a.push(s);return a}function Kn(t){var e=t.length;return e?t[Ui(0,e-1)]:n}function Zn(t,e){return To(Sr(t),oi(e,0,t.length))}function Xn(t){return To(Sr(t))}function Qn(t,e,i){(i!==n&&!$c(t[e],i)||i===n&&!(e in t))&&ii(t,e,i)}function Jn(t,e,i){var r=t[e];Nt.call(t,e)&&$c(r,i)&&(i!==n||e in t)||ii(t,e,i)}function ti(t,e){for(var n=t.length;n--;)if($c(t[n][0],e))return n;return-1}function ei(t,e,n,i){return ui(t,(function(t,r,o){e(i,t,n(t),o)})),i}function ni(t,e){return t&&Dr(e,Ea(e),t)}function ii(t,e,n){"__proto__"==e&&Jt?Jt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ri(t,e){for(var i=-1,r=e.length,o=it(r),c=null==t;++i<r;)o[i]=c?n:Sa(t,e[i]);return o}function oi(t,e,i){return t==t&&(i!==n&&(t=t<=i?t:i),e!==n&&(t=t>=e?t:e)),t}function ci(t,e,i,r,o,c){var a,l=1&e,s=2&e,u=4&e;if(i&&(a=o?i(t,r,o,c):i(t)),a!==n)return a;if(!ta(t))return t;var h=Vc(t);if(h){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Nt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!l)return Sr(t,a)}else{var f=ho(t),b=f==g||f==x;if(qc(t))return yr(t,l);if(f==_||f==d||b&&!o){if(a=s||b?{}:bo(t),!l)return s?function(t,e){return Dr(t,uo(t),e)}(t,function(t,e){return t&&Dr(e,Na(e),t)}(a,t)):function(t,e){return Dr(t,so(t),e)}(t,ni(a,t))}else{if(!re[f])return o?t:{};a=function(t,e,n){var i=t.constructor;switch(e){case O:return wr(t);case m:case p:return new i(+t);case E:return function(t,e){var n=e?wr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case N:case T:case I:case R:case Y:case A:case P:case F:case $:return kr(t,n);case y:return new i;case k:case D:return new i(t);case C:return function(t){var e=new t.constructor(t.source,ht.exec(t));return e.lastIndex=t.lastIndex,e}(t);case S:return new i;case j:return Yn?zt(Yn.call(t)):{}}}(t,f,l)}}c||(c=new Gn);var v=c.get(t);if(v)return v;c.set(t,a),ca(t)?t.forEach((function(n){a.add(ci(n,e,i,n,t,c))})):na(t)&&t.forEach((function(n,r){a.set(r,ci(n,e,i,r,t,c))}));var w=h?n:(u?s?eo:to:s?Na:Ea)(t);return ze(w||t,(function(n,r){w&&(n=t[r=n]),Jn(a,r,ci(n,e,i,r,t,c))})),a}function ai(t,e,i){var r=i.length;if(null==t)return!r;for(t=zt(t);r--;){var o=i[r],c=t[o];if(c===n&&!(o in t)||!(0,e[o])(c))return!1}return!0}function li(t,e,r){if("function"!=typeof t)throw new Dt(i);return Mo((function(){t.apply(n,r)}),e)}function si(t,e,n,i){var r=-1,o=je,c=!0,a=t.length,l=[],s=e.length;if(!a)return l;n&&(e=Oe(e,qe(n))),i?(o=Me,c=!1):e.length>=200&&(o=Ze,c=!1,e=new Bn(e));t:for(;++r<a;){var u=t[r],h=null==n?u:n(u);if(u=i||0!==u?u:0,c&&h==h){for(var f=s;f--;)if(e[f]===h)continue t;l.push(u)}else o(e,h,i)||l.push(u)}return l}Pn.templateSettings={escape:q,evaluate:K,interpolate:Z,variable:"",imports:{_:Pn}},(Pn.prototype=$n.prototype).constructor=Pn,(Ln.prototype=Fn($n.prototype)).constructor=Ln,(Hn.prototype=Fn($n.prototype)).constructor=Hn,Wn.prototype.clear=function(){this.__data__=Dn?Dn(null):{},this.size=0},Wn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Wn.prototype.get=function(t){var e=this.__data__;if(Dn){var i=e[t];return i===r?n:i}return Nt.call(e,t)?e[t]:n},Wn.prototype.has=function(t){var e=this.__data__;return Dn?e[t]!==n:Nt.call(e,t)},Wn.prototype.set=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Dn&&e===n?r:e,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(t){var e=this.__data__,n=ti(e,t);return!(n<0||(n==e.length-1?e.pop():Bt.call(e,n,1),--this.size,0))},Vn.prototype.get=function(t){var e=this.__data__,i=ti(e,t);return i<0?n:e[i][1]},Vn.prototype.has=function(t){return ti(this.__data__,t)>-1},Vn.prototype.set=function(t,e){var n=this.__data__,i=ti(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},Un.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(_n||Vn),string:new Wn}},Un.prototype.delete=function(t){var e=co(this,t).delete(t);return this.size-=e?1:0,e},Un.prototype.get=function(t){return co(this,t).get(t)},Un.prototype.has=function(t){return co(this,t).has(t)},Un.prototype.set=function(t,e){var n=co(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},Bn.prototype.add=Bn.prototype.push=function(t){return this.__data__.set(t,r),this},Bn.prototype.has=function(t){return this.__data__.has(t)},Gn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Gn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Gn.prototype.get=function(t){return this.__data__.get(t)},Gn.prototype.has=function(t){return this.__data__.has(t)},Gn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Vn){var i=n.__data__;if(!_n||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Un(i)}return n.set(t,e),this.size=n.size,this};var ui=Or(gi),hi=Or(xi,!0);function fi(t,e){var n=!0;return ui(t,(function(t,i,r){return n=!!e(t,i,r)})),n}function di(t,e,i){for(var r=-1,o=t.length;++r<o;){var c=t[r],a=e(c);if(null!=a&&(l===n?a==a&&!la(a):i(a,l)))var l=a,s=c}return s}function bi(t,e){var n=[];return ui(t,(function(t,i,r){e(t,i,r)&&n.push(t)})),n}function mi(t,e,n,i,r){var o=-1,c=t.length;for(n||(n=mo),r||(r=[]);++o<c;){var a=t[o];e>0&&n(a)?e>1?mi(a,e-1,n,i,r):Ee(r,a):i||(r[r.length]=a)}return r}var pi=Er(),vi=Er(!0);function gi(t,e){return t&&pi(t,e,Ea)}function xi(t,e){return t&&vi(t,e,Ea)}function yi(t,e){return De(e,(function(e){return Xc(t[e])}))}function wi(t,e){for(var i=0,r=(e=pr(e,t)).length;null!=t&&i<r;)t=t[Ao(e[i++])];return i&&i==r?t:n}function ki(t,e,n){var i=e(t);return Vc(t)?i:Ee(i,n(t))}function _i(t){return null==t?t===n?"[object Undefined]":"[object Null]":Xt&&Xt in zt(t)?function(t){var e=Nt.call(t,Xt),i=t[Xt];try{t[Xt]=n;var r=!0}catch(t){}var o=Rt.call(t);return r&&(e?t[Xt]=i:delete t[Xt]),o}(t):function(t){return Rt.call(t)}(t)}function zi(t,e){return t>e}function Ci(t,e){return null!=t&&Nt.call(t,e)}function Si(t,e){return null!=t&&e in zt(t)}function Di(t,e,i){for(var r=i?Me:je,o=t[0].length,c=t.length,a=c,l=it(c),s=1/0,u=[];a--;){var h=t[a];a&&e&&(h=Oe(h,qe(e))),s=vn(h.length,s),l[a]=!i&&(e||o>=120&&h.length>=120)?new Bn(a&&h):n}h=t[0];var f=-1,d=l[0];t:for(;++f<o&&u.length<s;){var b=h[f],m=e?e(b):b;if(b=i||0!==b?b:0,!(d?Ze(d,m):r(u,m,i))){for(a=c;--a;){var p=l[a];if(!(p?Ze(p,m):r(t[a],m,i)))continue t}d&&d.push(m),u.push(b)}}return u}function ji(t,e,i){var r=null==(t=Co(t,e=pr(e,t)))?t:t[Ao(Zo(e))];return null==r?n:ke(r,t,i)}function Mi(t){return ea(t)&&_i(t)==d}function Oi(t,e,i,r,o){return t===e||(null==t||null==e||!ea(t)&&!ea(e)?t!=t&&e!=e:function(t,e,i,r,o,c){var a=Vc(t),l=Vc(e),s=a?b:ho(t),u=l?b:ho(e),h=(s=s==d?_:s)==_,f=(u=u==d?_:u)==_,g=s==u;if(g&&qc(t)){if(!qc(e))return!1;a=!0,h=!1}if(g&&!h)return c||(c=new Gn),a||sa(t)?Qr(t,e,i,r,o,c):function(t,e,n,i,r,o,c){switch(n){case E:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case O:return!(t.byteLength!=e.byteLength||!o(new Lt(t),new Lt(e)));case m:case p:case k:return $c(+t,+e);case v:return t.name==e.name&&t.message==e.message;case C:case D:return t==e+"";case y:var a=on;case S:if(a||(a=ln),t.size!=e.size&&!(1&i))return!1;var l=c.get(t);if(l)return l==e;i|=2,c.set(t,e);var s=Qr(a(t),a(e),i,r,o,c);return c.delete(t),s;case j:if(Yn)return Yn.call(t)==Yn.call(e)}return!1}(t,e,s,i,r,o,c);if(!(1&i)){var x=h&&Nt.call(t,"__wrapped__"),w=f&&Nt.call(e,"__wrapped__");if(x||w){var z=x?t.value():t,M=w?e.value():e;return c||(c=new Gn),o(z,M,i,r,c)}}return!!g&&(c||(c=new Gn),function(t,e,i,r,o,c){var a=1&i,l=to(t),s=l.length;if(s!=to(e).length&&!a)return!1;for(var u=s;u--;){var h=l[u];if(!(a?h in e:Nt.call(e,h)))return!1}var f=c.get(t),d=c.get(e);if(f&&d)return f==e&&d==t;var b=!0;c.set(t,e),c.set(e,t);for(var m=a;++u<s;){var p=t[h=l[u]],v=e[h];if(r)var g=a?r(v,p,h,e,t,c):r(p,v,h,t,e,c);if(!(g===n?p===v||o(p,v,i,r,c):g)){b=!1;break}m||(m="constructor"==h)}if(b&&!m){var x=t.constructor,y=e.constructor;x==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof y&&y instanceof y||(b=!1)}return c.delete(t),c.delete(e),b}(t,e,i,r,o,c))}(t,e,i,r,Oi,o))}function Ei(t,e,i,r){var o=i.length,c=o,a=!r;if(null==t)return!c;for(t=zt(t);o--;){var l=i[o];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<c;){var s=(l=i[o])[0],u=t[s],h=l[1];if(a&&l[2]){if(u===n&&!(s in t))return!1}else{var f=new Gn;if(r)var d=r(u,h,s,t,e,f);if(!(d===n?Oi(h,u,3,r,f):d))return!1}}return!0}function Ni(t){return!(!ta(t)||(e=t,It&&It in e))&&(Xc(t)?Pt:bt).test(Po(t));var e}function Ti(t){return"function"==typeof t?t:null==t?il:"object"==typeof t?Vc(t)?Pi(t[0],t[1]):Ai(t):fl(t)}function Ii(t){if(!wo(t))return mn(t);var e=[];for(var n in zt(t))Nt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Ri(t,e){return t<e}function Yi(t,e){var n=-1,i=Bc(t)?it(t.length):[];return ui(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function Ai(t){var e=ao(t);return 1==e.length&&e[0][2]?_o(e[0][0],e[0][1]):function(n){return n===t||Ei(n,t,e)}}function Pi(t,e){return go(t)&&ko(e)?_o(Ao(t),e):function(i){var r=Sa(i,t);return r===n&&r===e?Da(i,t):Oi(e,r,3)}}function Fi(t,e,i,r,o){t!==e&&pi(e,(function(c,a){if(o||(o=new Gn),ta(c))!function(t,e,i,r,o,c,a){var l=Do(t,i),s=Do(e,i),u=a.get(s);if(u)Qn(t,i,u);else{var h=c?c(l,s,i+"",t,e,a):n,f=h===n;if(f){var d=Vc(s),b=!d&&qc(s),m=!d&&!b&&sa(s);h=s,d||b||m?Vc(l)?h=l:Gc(l)?h=Sr(l):b?(f=!1,h=yr(s,!0)):m?(f=!1,h=kr(s,!0)):h=[]:ra(s)||Wc(s)?(h=l,Wc(l)?h=va(l):ta(l)&&!Xc(l)||(h=bo(s))):f=!1}f&&(a.set(s,h),o(h,s,r,c,a),a.delete(s)),Qn(t,i,h)}}(t,e,a,i,Fi,r,o);else{var l=r?r(Do(t,a),c,a+"",t,e,o):n;l===n&&(l=c),Qn(t,a,l)}}),Na)}function $i(t,e){var i=t.length;if(i)return po(e+=e<0?i:0,i)?t[e]:n}function Li(t,e,n){e=e.length?Oe(e,(function(t){return Vc(t)?function(e){return wi(e,1===t.length?t[0]:t)}:t})):[il];var i=-1;e=Oe(e,qe(oo()));var r=Yi(t,(function(t){var n=Oe(e,(function(e){return e(t)}));return{criteria:n,index:++i,value:t}}));return function(t){var e=t.length;for(t.sort((function(t,e){return function(t,e,n){for(var i=-1,r=t.criteria,o=e.criteria,c=r.length,a=n.length;++i<c;){var l=_r(r[i],o[i]);if(l)return i>=a?l:l*("desc"==n[i]?-1:1)}return t.index-e.index}(t,e,n)}));e--;)t[e]=t[e].value;return t}(r)}function Hi(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var c=e[i],a=wi(t,c);n(a,c)&&Zi(o,pr(c,t),a)}return o}function Wi(t,e,n,i){var r=i?Fe:Pe,o=-1,c=e.length,a=t;for(t===e&&(e=Sr(e)),n&&(a=Oe(t,qe(n)));++o<c;)for(var l=0,s=e[o],u=n?n(s):s;(l=r(a,u,l,i))>-1;)a!==t&&Bt.call(a,l,1),Bt.call(t,l,1);return t}function Vi(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;po(r)?Bt.call(t,r,1):lr(t,r)}}return t}function Ui(t,e){return t+fe(yn()*(e-t+1))}function Bi(t,e){var n="";if(!t||e<1||e>s)return n;do{e%2&&(n+=t),(e=fe(e/2))&&(t+=t)}while(e);return n}function Gi(t,e){return Oo(zo(t,e,il),t+"")}function qi(t){return Kn($a(t))}function Ki(t,e){var n=$a(t);return To(n,oi(e,0,n.length))}function Zi(t,e,i,r){if(!ta(t))return t;for(var o=-1,c=(e=pr(e,t)).length,a=c-1,l=t;null!=l&&++o<c;){var s=Ao(e[o]),u=i;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(o!=a){var h=l[s];(u=r?r(h,s,l):n)===n&&(u=ta(h)?h:po(e[o+1])?[]:{})}Jn(l,s,u),l=l[s]}return t}var Xi=jn?function(t,e){return jn.set(t,e),t}:il,Qi=Jt?function(t,e){return Jt(t,"toString",{configurable:!0,enumerable:!1,value:tl(e),writable:!0})}:il;function Ji(t){return To($a(t))}function tr(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=it(r);++i<r;)o[i]=t[i+e];return o}function er(t,e){var n;return ui(t,(function(t,i,r){return!(n=e(t,i,r))})),!!n}function nr(t,e,n){var i=0,r=null==t?i:t.length;if("number"==typeof e&&e==e&&r<=2147483647){for(;i<r;){var o=i+r>>>1,c=t[o];null!==c&&!la(c)&&(n?c<=e:c<e)?i=o+1:r=o}return r}return ir(t,e,il,n)}function ir(t,e,i,r){var o=0,c=null==t?0:t.length;if(0===c)return 0;for(var a=(e=i(e))!=e,l=null===e,s=la(e),u=e===n;o<c;){var h=fe((o+c)/2),f=i(t[h]),d=f!==n,b=null===f,m=f==f,p=la(f);if(a)var v=r||m;else v=u?m&&(r||d):l?m&&d&&(r||!b):s?m&&d&&!b&&(r||!p):!b&&!p&&(r?f<=e:f<e);v?o=h+1:c=h}return vn(c,4294967294)}function rr(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var c=t[n],a=e?e(c):c;if(!n||!$c(a,l)){var l=a;o[r++]=0===c?0:c}}return o}function or(t){return"number"==typeof t?t:la(t)?u:+t}function cr(t){if("string"==typeof t)return t;if(Vc(t))return Oe(t,cr)+"";if(la(t))return An?An.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ar(t,e,n){var i=-1,r=je,o=t.length,c=!0,a=[],l=a;if(n)c=!1,r=Me;else if(o>=200){var s=e?null:Br(t);if(s)return ln(s);c=!1,r=Ze,l=new Bn}else l=e?[]:a;t:for(;++i<o;){var u=t[i],h=e?e(u):u;if(u=n||0!==u?u:0,c&&h==h){for(var f=l.length;f--;)if(l[f]===h)continue t;e&&l.push(h),a.push(u)}else r(l,h,n)||(l!==a&&l.push(h),a.push(u))}return a}function lr(t,e){return null==(t=Co(t,e=pr(e,t)))||delete t[Ao(Zo(e))]}function sr(t,e,n,i){return Zi(t,e,n(wi(t,e)),i)}function ur(t,e,n,i){for(var r=t.length,o=i?r:-1;(i?o--:++o<r)&&e(t[o],o,t););return n?tr(t,i?0:o,i?o+1:r):tr(t,i?o+1:0,i?r:o)}function hr(t,e){var n=t;return n instanceof Hn&&(n=n.value()),Ne(e,(function(t,e){return e.func.apply(e.thisArg,Ee([t],e.args))}),n)}function fr(t,e,n){var i=t.length;if(i<2)return i?ar(t[0]):[];for(var r=-1,o=it(i);++r<i;)for(var c=t[r],a=-1;++a<i;)a!=r&&(o[r]=si(o[r]||c,t[a],e,n));return ar(mi(o,1),e,n)}function dr(t,e,i){for(var r=-1,o=t.length,c=e.length,a={};++r<o;)i(a,t[r],r<c?e[r]:n);return a}function br(t){return Gc(t)?t:[]}function mr(t){return"function"==typeof t?t:il}function pr(t,e){return Vc(t)?t:go(t,e)?[t]:Yo(ga(t))}var vr=Gi;function gr(t,e,i){var r=t.length;return i=i===n?r:i,!e&&i>=r?t:tr(t,e,i)}var xr=oe||function(t){return ue.clearTimeout(t)};function yr(t,e){if(e)return t.slice();var n=t.length,i=Ht?Ht(n):new t.constructor(n);return t.copy(i),i}function wr(t){var e=new t.constructor(t.byteLength);return new Lt(e).set(new Lt(t)),e}function kr(t,e){var n=e?wr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function _r(t,e){if(t!==e){var i=t!==n,r=null===t,o=t==t,c=la(t),a=e!==n,l=null===e,s=e==e,u=la(e);if(!l&&!u&&!c&&t>e||c&&a&&s&&!l&&!u||r&&a&&s||!i&&s||!o)return 1;if(!r&&!c&&!u&&t<e||u&&i&&o&&!r&&!c||l&&i&&o||!a&&o||!s)return-1}return 0}function zr(t,e,n,i){for(var r=-1,o=t.length,c=n.length,a=-1,l=e.length,s=pn(o-c,0),u=it(l+s),h=!i;++a<l;)u[a]=e[a];for(;++r<c;)(h||r<o)&&(u[n[r]]=t[r]);for(;s--;)u[a++]=t[r++];return u}function Cr(t,e,n,i){for(var r=-1,o=t.length,c=-1,a=n.length,l=-1,s=e.length,u=pn(o-a,0),h=it(u+s),f=!i;++r<u;)h[r]=t[r];for(var d=r;++l<s;)h[d+l]=e[l];for(;++c<a;)(f||r<o)&&(h[d+n[c]]=t[r++]);return h}function Sr(t,e){var n=-1,i=t.length;for(e||(e=it(i));++n<i;)e[n]=t[n];return e}function Dr(t,e,i,r){var o=!i;i||(i={});for(var c=-1,a=e.length;++c<a;){var l=e[c],s=r?r(i[l],t[l],l,i,t):n;s===n&&(s=t[l]),o?ii(i,l,s):Jn(i,l,s)}return i}function jr(t,e){return function(n,i){var r=Vc(n)?_e:ei,o=e?e():{};return r(n,t,oo(i,2),o)}}function Mr(t){return Gi((function(e,i){var r=-1,o=i.length,c=o>1?i[o-1]:n,a=o>2?i[2]:n;for(c=t.length>3&&"function"==typeof c?(o--,c):n,a&&vo(i[0],i[1],a)&&(c=o<3?n:c,o=1),e=zt(e);++r<o;){var l=i[r];l&&t(e,l,r,c)}return e}))}function Or(t,e){return function(n,i){if(null==n)return n;if(!Bc(n))return t(n,i);for(var r=n.length,o=e?r:-1,c=zt(n);(e?o--:++o<r)&&!1!==i(c[o],o,c););return n}}function Er(t){return function(e,n,i){for(var r=-1,o=zt(e),c=i(e),a=c.length;a--;){var l=c[t?a:++r];if(!1===n(o[l],l,o))break}return e}}function Nr(t){return function(e){var i=rn(e=ga(e))?hn(e):n,r=i?i[0]:e.charAt(0),o=i?gr(i,1).join(""):e.slice(1);return r[t]()+o}}function Tr(t){return function(e){return Ne(Xa(Wa(e).replace(Kt,"")),t,"")}}function Ir(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Fn(t.prototype),i=t.apply(n,e);return ta(i)?i:n}}function Rr(t){return function(e,i,r){var o=zt(e);if(!Bc(e)){var c=oo(i,3);e=Ea(e),i=function(t){return c(o[t],t,o)}}var a=t(e,i,r);return a>-1?o[c?e[a]:a]:n}}function Yr(t){return Jr((function(e){var r=e.length,o=r,c=Ln.prototype.thru;for(t&&e.reverse();o--;){var a=e[o];if("function"!=typeof a)throw new Dt(i);if(c&&!l&&"wrapper"==io(a))var l=new Ln([],!0)}for(o=l?o:r;++o<r;){var s=io(a=e[o]),u="wrapper"==s?no(a):n;l=u&&xo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[io(u[0])].apply(l,u[3]):1==a.length&&xo(a)?l[s]():l.thru(a)}return function(){var t=arguments,n=t[0];if(l&&1==t.length&&Vc(n))return l.plant(n).value();for(var i=0,o=r?e[i].apply(this,t):n;++i<r;)o=e[i].call(this,o);return o}}))}function Ar(t,e,i,r,o,c,l,s,u,h){var f=e&a,d=1&e,b=2&e,m=24&e,p=512&e,v=b?n:Ir(t);return function n(){for(var a=arguments.length,g=it(a),x=a;x--;)g[x]=arguments[x];if(m)var y=ro(n),w=Je(g,y);if(r&&(g=zr(g,r,o,m)),c&&(g=Cr(g,c,l,m)),a-=w,m&&a<h){var k=an(g,y);return Vr(t,e,Ar,n.placeholder,i,g,k,s,u,h-a)}var _=d?i:this,z=b?_[t]:t;return a=g.length,s?g=So(g,s):p&&a>1&&g.reverse(),f&&u<a&&(g.length=u),this&&this!==ue&&this instanceof n&&(z=v||Ir(z)),z.apply(_,g)}}function Pr(t,e){return function(n,i){return function(t,e,n,i){return gi(t,(function(t,r,o){e(i,n(t),r,o)})),i}(n,t,e(i),{})}}function Fr(t,e){return function(i,r){var o;if(i===n&&r===n)return e;if(i!==n&&(o=i),r!==n){if(o===n)return r;"string"==typeof i||"string"==typeof r?(i=cr(i),r=cr(r)):(i=or(i),r=or(r)),o=t(i,r)}return o}}function $r(t){return Jr((function(e){return e=Oe(e,qe(oo())),Gi((function(n){var i=this;return t(e,(function(t){return ke(t,i,n)}))}))}))}function Lr(t,e){var i=(e=e===n?" ":cr(e)).length;if(i<2)return i?Bi(e,t):e;var r=Bi(e,he(t/un(e)));return rn(e)?gr(hn(r),0,t).join(""):r.slice(0,t)}function Hr(t){return function(e,i,r){return r&&"number"!=typeof r&&vo(e,i,r)&&(i=r=n),e=da(e),i===n?(i=e,e=0):i=da(i),function(t,e,n,i){for(var r=-1,o=pn(he((e-t)/(n||1)),0),c=it(o);o--;)c[i?o:++r]=t,t+=n;return c}(e,i,r=r===n?e<i?1:-1:da(r),t)}}function Wr(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=pa(e),n=pa(n)),t(e,n)}}function Vr(t,e,i,r,o,a,l,s,u,h){var f=8&e;e|=f?c:64,4&(e&=~(f?64:c))||(e&=-4);var d=[t,e,o,f?a:n,f?l:n,f?n:a,f?n:l,s,u,h],b=i.apply(n,d);return xo(t)&&jo(b,d),b.placeholder=r,Eo(b,t,e)}function Ur(t){var e=_t[t];return function(t,n){if(t=pa(t),(n=null==n?0:vn(ba(n),292))&&Re(t)){var i=(ga(t)+"e").split("e");return+((i=(ga(e(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return e(t)}}var Br=Cn&&1/ln(new Cn([,-0]))[1]==l?function(t){return new Cn(t)}:ll;function Gr(t){return function(e){var n=ho(e);return n==y?on(e):n==S?sn(e):function(t,e){return Oe(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function qr(t,e,r,l,s,u,h,f){var d=2&e;if(!d&&"function"!=typeof t)throw new Dt(i);var b=l?l.length:0;if(b||(e&=-97,l=s=n),h=h===n?h:pn(ba(h),0),f=f===n?f:ba(f),b-=s?s.length:0,64&e){var m=l,p=s;l=s=n}var v=d?n:no(t),g=[t,e,r,l,s,m,p,u,h,f];if(v&&function(t,e){var n=t[1],i=e[1],r=n|i;if(!(r<131||(i==a&&8==n||i==a&&256==n&&t[7].length<=e[8]||384==i&&e[7].length<=e[8]&&8==n)))return t;1&i&&(t[2]=e[2],r|=1&n?0:4);var c=e[3];if(c){var l=t[3];t[3]=l?zr(l,c,e[4]):c,t[4]=l?an(t[3],o):e[4]}(c=e[5])&&(t[5]=(l=t[5])?Cr(l,c,e[6]):c,t[6]=l?an(t[5],o):e[6]),(c=e[7])&&(t[7]=c),i&a&&(t[8]=null==t[8]?e[8]:vn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=r}(g,v),t=g[0],e=g[1],r=g[2],l=g[3],s=g[4],!(f=g[9]=g[9]===n?d?0:t.length:pn(g[9]-b,0))&&24&e&&(e&=-25),e&&1!=e)x=8==e||16==e?function(t,e,i){var r=Ir(t);return function o(){for(var c=arguments.length,a=it(c),l=c,s=ro(o);l--;)a[l]=arguments[l];var u=c<3&&a[0]!==s&&a[c-1]!==s?[]:an(a,s);return(c-=u.length)<i?Vr(t,e,Ar,o.placeholder,n,a,u,n,n,i-c):ke(this&&this!==ue&&this instanceof o?r:t,this,a)}}(t,e,f):e!=c&&33!=e||s.length?Ar.apply(n,g):function(t,e,n,i){var r=1&e,o=Ir(t);return function e(){for(var c=-1,a=arguments.length,l=-1,s=i.length,u=it(s+a),h=this&&this!==ue&&this instanceof e?o:t;++l<s;)u[l]=i[l];for(;a--;)u[l++]=arguments[++c];return ke(h,r?n:this,u)}}(t,e,r,l);else var x=function(t,e,n){var i=1&e,r=Ir(t);return function e(){return(this&&this!==ue&&this instanceof e?r:t).apply(i?n:this,arguments)}}(t,e,r);return Eo((v?Xi:jo)(x,g),t,e)}function Kr(t,e,i,r){return t===n||$c(t,Mt[i])&&!Nt.call(r,i)?e:t}function Zr(t,e,i,r,o,c){return ta(t)&&ta(e)&&(c.set(e,t),Fi(t,e,n,Zr,c),c.delete(e)),t}function Xr(t){return ra(t)?n:t}function Qr(t,e,i,r,o,c){var a=1&i,l=t.length,s=e.length;if(l!=s&&!(a&&s>l))return!1;var u=c.get(t),h=c.get(e);if(u&&h)return u==e&&h==t;var f=-1,d=!0,b=2&i?new Bn:n;for(c.set(t,e),c.set(e,t);++f<l;){var m=t[f],p=e[f];if(r)var v=a?r(p,m,f,e,t,c):r(m,p,f,t,e,c);if(v!==n){if(v)continue;d=!1;break}if(b){if(!Ie(e,(function(t,e){if(!Ze(b,e)&&(m===t||o(m,t,i,r,c)))return b.push(e)}))){d=!1;break}}else if(m!==p&&!o(m,p,i,r,c)){d=!1;break}}return c.delete(t),c.delete(e),d}function Jr(t){return Oo(zo(t,n,Uo),t+"")}function to(t){return ki(t,Ea,so)}function eo(t){return ki(t,Na,uo)}var no=jn?function(t){return jn.get(t)}:ll;function io(t){for(var e=t.name+"",n=Mn[e],i=Nt.call(Mn,e)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==t)return r.name}return e}function ro(t){return(Nt.call(Pn,"placeholder")?Pn:t).placeholder}function oo(){var t=Pn.iteratee||rl;return t=t===rl?Ti:t,arguments.length?t(arguments[0],arguments[1]):t}function co(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function ao(t){for(var e=Ea(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,ko(r)]}return e}function lo(t,e){var i=function(t,e){return null==t?n:t[e]}(t,e);return Ni(i)?i:n}var so=be?function(t){return null==t?[]:(t=zt(t),De(be(t),(function(e){return Ut.call(t,e)})))}:ml,uo=be?function(t){for(var e=[];t;)Ee(e,so(t)),t=Wt(t);return e}:ml,ho=_i;function fo(t,e,n){for(var i=-1,r=(e=pr(e,t)).length,o=!1;++i<r;){var c=Ao(e[i]);if(!(o=null!=t&&n(t,c)))break;t=t[c]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&Jc(r)&&po(c,r)&&(Vc(t)||Wc(t))}function bo(t){return"function"!=typeof t.constructor||wo(t)?{}:Fn(Wt(t))}function mo(t){return Vc(t)||Wc(t)||!!(Gt&&t&&t[Gt])}function po(t,e){var n=typeof t;return!!(e=null==e?s:e)&&("number"==n||"symbol"!=n&&pt.test(t))&&t>-1&&t%1==0&&t<e}function vo(t,e,n){if(!ta(n))return!1;var i=typeof e;return!!("number"==i?Bc(n)&&po(e,n.length):"string"==i&&e in n)&&$c(n[e],t)}function go(t,e){if(Vc(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!la(t))||Q.test(t)||!X.test(t)||null!=e&&t in zt(e)}function xo(t){var e=io(t),n=Pn[e];if("function"!=typeof n||!(e in Hn.prototype))return!1;if(t===n)return!0;var i=no(n);return!!i&&t===i[0]}(kn&&ho(new kn(new ArrayBuffer(1)))!=E||_n&&ho(new _n)!=y||zn&&ho(zn.resolve())!=z||Cn&&ho(new Cn)!=S||Sn&&ho(new Sn)!=M)&&(ho=function(t){var e=_i(t),i=e==_?t.constructor:n,r=i?Po(i):"";if(r)switch(r){case On:return E;case En:return y;case Nn:return z;case Tn:return S;case In:return M}return e});var yo=Ot?Xc:pl;function wo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Mt)}function ko(t){return t==t&&!ta(t)}function _o(t,e){return function(i){return null!=i&&i[t]===e&&(e!==n||t in zt(i))}}function zo(t,e,i){return e=pn(e===n?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=pn(n.length-e,0),c=it(o);++r<o;)c[r]=n[e+r];r=-1;for(var a=it(e+1);++r<e;)a[r]=n[r];return a[e]=i(c),ke(t,this,a)}}function Co(t,e){return e.length<2?t:wi(t,tr(e,0,-1))}function So(t,e){for(var i=t.length,r=vn(e.length,i),o=Sr(t);r--;){var c=e[r];t[r]=po(c,i)?o[c]:n}return t}function Do(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var jo=No(Xi),Mo=se||function(t,e){return ue.setTimeout(t,e)},Oo=No(Qi);function Eo(t,e,n){var i=e+"";return Oo(t,function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(rt,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return ze(f,(function(n){var i="_."+n[0];e&n[1]&&!je(t,i)&&t.push(i)})),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(ct):[]}(i),n)))}function No(t){var e=0,i=0;return function(){var r=gn(),o=16-(r-i);if(i=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(n,arguments)}}function To(t,e){var i=-1,r=t.length,o=r-1;for(e=e===n?r:e;++i<e;){var c=Ui(i,o),a=t[c];t[c]=t[i],t[i]=a}return t.length=e,t}var Io,Ro,Yo=(Io=Ic((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(J,(function(t,n,i,r){e.push(i?r.replace(st,"$1"):n||t)})),e}),(function(t){return 500===Ro.size&&Ro.clear(),t})),Ro=Io.cache,Io);function Ao(t){if("string"==typeof t||la(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Po(t){if(null!=t){try{return Et.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Fo(t){if(t instanceof Hn)return t.clone();var e=new Ln(t.__wrapped__,t.__chain__);return e.__actions__=Sr(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var $o=Gi((function(t,e){return Gc(t)?si(t,mi(e,1,Gc,!0)):[]})),Lo=Gi((function(t,e){var i=Zo(e);return Gc(i)&&(i=n),Gc(t)?si(t,mi(e,1,Gc,!0),oo(i,2)):[]})),Ho=Gi((function(t,e){var i=Zo(e);return Gc(i)&&(i=n),Gc(t)?si(t,mi(e,1,Gc,!0),n,i):[]}));function Wo(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:ba(n);return r<0&&(r=pn(i+r,0)),Ae(t,oo(e,3),r)}function Vo(t,e,i){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return i!==n&&(o=ba(i),o=i<0?pn(r+o,0):vn(o,r-1)),Ae(t,oo(e,3),o,!0)}function Uo(t){return null!=t&&t.length?mi(t,1):[]}function Bo(t){return t&&t.length?t[0]:n}var Go=Gi((function(t){var e=Oe(t,br);return e.length&&e[0]===t[0]?Di(e):[]})),qo=Gi((function(t){var e=Zo(t),i=Oe(t,br);return e===Zo(i)?e=n:i.pop(),i.length&&i[0]===t[0]?Di(i,oo(e,2)):[]})),Ko=Gi((function(t){var e=Zo(t),i=Oe(t,br);return(e="function"==typeof e?e:n)&&i.pop(),i.length&&i[0]===t[0]?Di(i,n,e):[]}));function Zo(t){var e=null==t?0:t.length;return e?t[e-1]:n}var Xo=Gi(Qo);function Qo(t,e){return t&&t.length&&e&&e.length?Wi(t,e):t}var Jo=Jr((function(t,e){var n=null==t?0:t.length,i=ri(t,e);return Vi(t,Oe(e,(function(t){return po(t,n)?+t:t})).sort(_r)),i}));function tc(t){return null==t?t:wn.call(t)}var ec=Gi((function(t){return ar(mi(t,1,Gc,!0))})),nc=Gi((function(t){var e=Zo(t);return Gc(e)&&(e=n),ar(mi(t,1,Gc,!0),oo(e,2))})),ic=Gi((function(t){var e=Zo(t);return e="function"==typeof e?e:n,ar(mi(t,1,Gc,!0),n,e)}));function rc(t){if(!t||!t.length)return[];var e=0;return t=De(t,(function(t){if(Gc(t))return e=pn(t.length,e),!0})),Be(e,(function(e){return Oe(t,He(e))}))}function oc(t,e){if(!t||!t.length)return[];var i=rc(t);return null==e?i:Oe(i,(function(t){return ke(e,n,t)}))}var cc=Gi((function(t,e){return Gc(t)?si(t,e):[]})),ac=Gi((function(t){return fr(De(t,Gc))})),lc=Gi((function(t){var e=Zo(t);return Gc(e)&&(e=n),fr(De(t,Gc),oo(e,2))})),sc=Gi((function(t){var e=Zo(t);return e="function"==typeof e?e:n,fr(De(t,Gc),n,e)})),uc=Gi(rc),hc=Gi((function(t){var e=t.length,i=e>1?t[e-1]:n;return i="function"==typeof i?(t.pop(),i):n,oc(t,i)}));function fc(t){var e=Pn(t);return e.__chain__=!0,e}function dc(t,e){return e(t)}var bc=Jr((function(t){var e=t.length,i=e?t[0]:0,r=this.__wrapped__,o=function(e){return ri(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Hn&&po(i)?((r=r.slice(i,+i+(e?1:0))).__actions__.push({func:dc,args:[o],thisArg:n}),new Ln(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(n),t}))):this.thru(o)})),mc=jr((function(t,e,n){Nt.call(t,n)?++t[n]:ii(t,n,1)})),pc=Rr(Wo),vc=Rr(Vo);function gc(t,e){return(Vc(t)?ze:ui)(t,oo(e,3))}function xc(t,e){return(Vc(t)?Ce:hi)(t,oo(e,3))}var yc=jr((function(t,e,n){Nt.call(t,n)?t[n].push(e):ii(t,n,[e])})),wc=Gi((function(t,e,n){var i=-1,r="function"==typeof e,o=Bc(t)?it(t.length):[];return ui(t,(function(t){o[++i]=r?ke(e,t,n):ji(t,e,n)})),o})),kc=jr((function(t,e,n){ii(t,n,e)}));function _c(t,e){return(Vc(t)?Oe:Yi)(t,oo(e,3))}var zc=jr((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),Cc=Gi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&vo(t,e[0],e[1])?e=[]:n>2&&vo(e[0],e[1],e[2])&&(e=[e[0]]),Li(t,mi(e,1),[])})),Sc=le||function(){return ue.Date.now()};function Dc(t,e,i){return e=i?n:e,qr(t,a,n,n,n,n,e=t&&null==e?t.length:e)}function jc(t,e){var r;if("function"!=typeof e)throw new Dt(i);return t=ba(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=n),r}}var Mc=Gi((function(t,e,n){var i=1;if(n.length){var r=an(n,ro(Mc));i|=c}return qr(t,i,e,n,r)})),Oc=Gi((function(t,e,n){var i=3;if(n.length){var r=an(n,ro(Oc));i|=c}return qr(e,i,t,n,r)}));function Ec(t,e,r){var o,c,a,l,s,u,h=0,f=!1,d=!1,b=!0;if("function"!=typeof t)throw new Dt(i);function m(e){var i=o,r=c;return o=c=n,h=e,l=t.apply(r,i)}function p(t){return h=t,s=Mo(g,e),f?m(t):l}function v(t){var i=t-u;return u===n||i>=e||i<0||d&&t-h>=a}function g(){var t=Sc();if(v(t))return x(t);s=Mo(g,function(t){var n=e-(t-u);return d?vn(n,a-(t-h)):n}(t))}function x(t){return s=n,b&&o?m(t):(o=c=n,l)}function y(){var t=Sc(),i=v(t);if(o=arguments,c=this,u=t,i){if(s===n)return p(u);if(d)return xr(s),s=Mo(g,e),m(u)}return s===n&&(s=Mo(g,e)),l}return e=pa(e)||0,ta(r)&&(f=!!r.leading,a=(d="maxWait"in r)?pn(pa(r.maxWait)||0,e):a,b="trailing"in r?!!r.trailing:b),y.cancel=function(){s!==n&&xr(s),h=0,o=u=c=s=n},y.flush=function(){return s===n?l:x(Sc())},y}var Nc=Gi((function(t,e){return li(t,1,e)})),Tc=Gi((function(t,e,n){return li(t,pa(e)||0,n)}));function Ic(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Dt(i);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var c=t.apply(this,i);return n.cache=o.set(r,c)||o,c};return n.cache=new(Ic.Cache||Un),n}function Rc(t){if("function"!=typeof t)throw new Dt(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ic.Cache=Un;var Yc=vr((function(t,e){var n=(e=1==e.length&&Vc(e[0])?Oe(e[0],qe(oo())):Oe(mi(e,1),qe(oo()))).length;return Gi((function(i){for(var r=-1,o=vn(i.length,n);++r<o;)i[r]=e[r].call(this,i[r]);return ke(t,this,i)}))})),Ac=Gi((function(t,e){var i=an(e,ro(Ac));return qr(t,c,n,e,i)})),Pc=Gi((function(t,e){var i=an(e,ro(Pc));return qr(t,64,n,e,i)})),Fc=Jr((function(t,e){return qr(t,256,n,n,n,e)}));function $c(t,e){return t===e||t!=t&&e!=e}var Lc=Wr(zi),Hc=Wr((function(t,e){return t>=e})),Wc=Mi(function(){return arguments}())?Mi:function(t){return ea(t)&&Nt.call(t,"callee")&&!Ut.call(t,"callee")},Vc=it.isArray,Uc=pe?qe(pe):function(t){return ea(t)&&_i(t)==O};function Bc(t){return null!=t&&Jc(t.length)&&!Xc(t)}function Gc(t){return ea(t)&&Bc(t)}var qc=me||pl,Kc=ve?qe(ve):function(t){return ea(t)&&_i(t)==p};function Zc(t){if(!ea(t))return!1;var e=_i(t);return e==v||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ra(t)}function Xc(t){if(!ta(t))return!1;var e=_i(t);return e==g||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Qc(t){return"number"==typeof t&&t==ba(t)}function Jc(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function ta(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ea(t){return null!=t&&"object"==typeof t}var na=ge?qe(ge):function(t){return ea(t)&&ho(t)==y};function ia(t){return"number"==typeof t||ea(t)&&_i(t)==k}function ra(t){if(!ea(t)||_i(t)!=_)return!1;var e=Wt(t);if(null===e)return!0;var n=Nt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Et.call(n)==Yt}var oa=xe?qe(xe):function(t){return ea(t)&&_i(t)==C},ca=ye?qe(ye):function(t){return ea(t)&&ho(t)==S};function aa(t){return"string"==typeof t||!Vc(t)&&ea(t)&&_i(t)==D}function la(t){return"symbol"==typeof t||ea(t)&&_i(t)==j}var sa=we?qe(we):function(t){return ea(t)&&Jc(t.length)&&!!ie[_i(t)]},ua=Wr(Ri),ha=Wr((function(t,e){return t<=e}));function fa(t){if(!t)return[];if(Bc(t))return aa(t)?hn(t):Sr(t);if(qt&&t[qt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[qt]());var e=ho(t);return(e==y?on:e==S?ln:$a)(t)}function da(t){return t?(t=pa(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ba(t){var e=da(t),n=e%1;return e==e?n?e-n:e:0}function ma(t){return t?oi(ba(t),0,h):0}function pa(t){if("number"==typeof t)return t;if(la(t))return u;if(ta(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ta(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ge(t);var n=dt.test(t);return n||mt.test(t)?ae(t.slice(2),n?2:8):ft.test(t)?u:+t}function va(t){return Dr(t,Na(t))}function ga(t){return null==t?"":cr(t)}var xa=Mr((function(t,e){if(wo(e)||Bc(e))Dr(e,Ea(e),t);else for(var n in e)Nt.call(e,n)&&Jn(t,n,e[n])})),ya=Mr((function(t,e){Dr(e,Na(e),t)})),wa=Mr((function(t,e,n,i){Dr(e,Na(e),t,i)})),ka=Mr((function(t,e,n,i){Dr(e,Ea(e),t,i)})),_a=Jr(ri),za=Gi((function(t,e){t=zt(t);var i=-1,r=e.length,o=r>2?e[2]:n;for(o&&vo(e[0],e[1],o)&&(r=1);++i<r;)for(var c=e[i],a=Na(c),l=-1,s=a.length;++l<s;){var u=a[l],h=t[u];(h===n||$c(h,Mt[u])&&!Nt.call(t,u))&&(t[u]=c[u])}return t})),Ca=Gi((function(t){return t.push(n,Zr),ke(Ia,n,t)}));function Sa(t,e,i){var r=null==t?n:wi(t,e);return r===n?i:r}function Da(t,e){return null!=t&&fo(t,e,Si)}var ja=Pr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Rt.call(e)),t[e]=n}),tl(il)),Ma=Pr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Rt.call(e)),Nt.call(t,e)?t[e].push(n):t[e]=[n]}),oo),Oa=Gi(ji);function Ea(t){return Bc(t)?qn(t):Ii(t)}function Na(t){return Bc(t)?qn(t,!0):function(t){if(!ta(t))return function(t){var e=[];if(null!=t)for(var n in zt(t))e.push(n);return e}(t);var e=wo(t),n=[];for(var i in t)("constructor"!=i||!e&&Nt.call(t,i))&&n.push(i);return n}(t)}var Ta=Mr((function(t,e,n){Fi(t,e,n)})),Ia=Mr((function(t,e,n,i){Fi(t,e,n,i)})),Ra=Jr((function(t,e){var n={};if(null==t)return n;var i=!1;e=Oe(e,(function(e){return e=pr(e,t),i||(i=e.length>1),e})),Dr(t,eo(t),n),i&&(n=ci(n,7,Xr));for(var r=e.length;r--;)lr(n,e[r]);return n})),Ya=Jr((function(t,e){return null==t?{}:function(t,e){return Hi(t,e,(function(e,n){return Da(t,n)}))}(t,e)}));function Aa(t,e){if(null==t)return{};var n=Oe(eo(t),(function(t){return[t]}));return e=oo(e),Hi(t,n,(function(t,n){return e(t,n[0])}))}var Pa=Gr(Ea),Fa=Gr(Na);function $a(t){return null==t?[]:Ke(t,Ea(t))}var La=Tr((function(t,e,n){return e=e.toLowerCase(),t+(n?Ha(e):e)}));function Ha(t){return Za(ga(t).toLowerCase())}function Wa(t){return(t=ga(t))&&t.replace(vt,tn).replace(Zt,"")}var Va=Tr((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ua=Tr((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ba=Nr("toLowerCase"),Ga=Tr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),qa=Tr((function(t,e,n){return t+(n?" ":"")+Za(e)})),Ka=Tr((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Za=Nr("toUpperCase");function Xa(t,e,i){return t=ga(t),(e=i?n:e)===n?function(t){return te.test(t)}(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.match(at)||[]}(t):t.match(e)||[]}var Qa=Gi((function(t,e){try{return ke(t,n,e)}catch(t){return Zc(t)?t:new wt(t)}})),Ja=Jr((function(t,e){return ze(e,(function(e){e=Ao(e),ii(t,e,Mc(t[e],t))})),t}));function tl(t){return function(){return t}}var el=Yr(),nl=Yr(!0);function il(t){return t}function rl(t){return Ti("function"==typeof t?t:ci(t,1))}var ol=Gi((function(t,e){return function(n){return ji(n,t,e)}})),cl=Gi((function(t,e){return function(n){return ji(t,n,e)}}));function al(t,e,n){var i=Ea(e),r=yi(e,i);null!=n||ta(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=yi(e,Ea(e)));var o=!(ta(n)&&"chain"in n&&!n.chain),c=Xc(t);return ze(r,(function(n){var i=e[n];t[n]=i,c&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),r=n.__actions__=Sr(this.__actions__);return r.push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,Ee([this.value()],arguments))})})),t}function ll(){}var sl=$r(Oe),ul=$r(Se),hl=$r(Ie);function fl(t){return go(t)?He(Ao(t)):function(t){return function(e){return wi(e,t)}}(t)}var dl=Hr(),bl=Hr(!0);function ml(){return[]}function pl(){return!1}var vl,gl=Fr((function(t,e){return t+e}),0),xl=Ur("ceil"),yl=Fr((function(t,e){return t/e}),1),wl=Ur("floor"),kl=Fr((function(t,e){return t*e}),1),_l=Ur("round"),zl=Fr((function(t,e){return t-e}),0);return Pn.after=function(t,e){if("function"!=typeof e)throw new Dt(i);return t=ba(t),function(){if(--t<1)return e.apply(this,arguments)}},Pn.ary=Dc,Pn.assign=xa,Pn.assignIn=ya,Pn.assignInWith=wa,Pn.assignWith=ka,Pn.at=_a,Pn.before=jc,Pn.bind=Mc,Pn.bindAll=Ja,Pn.bindKey=Oc,Pn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Vc(t)?t:[t]},Pn.chain=fc,Pn.chunk=function(t,e,i){e=(i?vo(t,e,i):e===n)?1:pn(ba(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var o=0,c=0,a=it(he(r/e));o<r;)a[c++]=tr(t,o,o+=e);return a},Pn.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e<n;){var o=t[e];o&&(r[i++]=o)}return r},Pn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=it(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Ee(Vc(n)?Sr(n):[n],mi(e,1))},Pn.cond=function(t){var e=null==t?0:t.length,n=oo();return t=e?Oe(t,(function(t){if("function"!=typeof t[1])throw new Dt(i);return[n(t[0]),t[1]]})):[],Gi((function(n){for(var i=-1;++i<e;){var r=t[i];if(ke(r[0],this,n))return ke(r[1],this,n)}}))},Pn.conforms=function(t){return function(t){var e=Ea(t);return function(n){return ai(n,t,e)}}(ci(t,1))},Pn.constant=tl,Pn.countBy=mc,Pn.create=function(t,e){var n=Fn(t);return null==e?n:ni(n,e)},Pn.curry=function t(e,i,r){var o=qr(e,8,n,n,n,n,n,i=r?n:i);return o.placeholder=t.placeholder,o},Pn.curryRight=function t(e,i,r){var o=qr(e,16,n,n,n,n,n,i=r?n:i);return o.placeholder=t.placeholder,o},Pn.debounce=Ec,Pn.defaults=za,Pn.defaultsDeep=Ca,Pn.defer=Nc,Pn.delay=Tc,Pn.difference=$o,Pn.differenceBy=Lo,Pn.differenceWith=Ho,Pn.drop=function(t,e,i){var r=null==t?0:t.length;return r?tr(t,(e=i||e===n?1:ba(e))<0?0:e,r):[]},Pn.dropRight=function(t,e,i){var r=null==t?0:t.length;return r?tr(t,0,(e=r-(e=i||e===n?1:ba(e)))<0?0:e):[]},Pn.dropRightWhile=function(t,e){return t&&t.length?ur(t,oo(e,3),!0,!0):[]},Pn.dropWhile=function(t,e){return t&&t.length?ur(t,oo(e,3),!0):[]},Pn.fill=function(t,e,i,r){var o=null==t?0:t.length;return o?(i&&"number"!=typeof i&&vo(t,e,i)&&(i=0,r=o),function(t,e,i,r){var o=t.length;for((i=ba(i))<0&&(i=-i>o?0:o+i),(r=r===n||r>o?o:ba(r))<0&&(r+=o),r=i>r?0:ma(r);i<r;)t[i++]=e;return t}(t,e,i,r)):[]},Pn.filter=function(t,e){return(Vc(t)?De:bi)(t,oo(e,3))},Pn.flatMap=function(t,e){return mi(_c(t,e),1)},Pn.flatMapDeep=function(t,e){return mi(_c(t,e),l)},Pn.flatMapDepth=function(t,e,i){return i=i===n?1:ba(i),mi(_c(t,e),i)},Pn.flatten=Uo,Pn.flattenDeep=function(t){return null!=t&&t.length?mi(t,l):[]},Pn.flattenDepth=function(t,e){return null!=t&&t.length?mi(t,e=e===n?1:ba(e)):[]},Pn.flip=function(t){return qr(t,512)},Pn.flow=el,Pn.flowRight=nl,Pn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i},Pn.functions=function(t){return null==t?[]:yi(t,Ea(t))},Pn.functionsIn=function(t){return null==t?[]:yi(t,Na(t))},Pn.groupBy=yc,Pn.initial=function(t){return null!=t&&t.length?tr(t,0,-1):[]},Pn.intersection=Go,Pn.intersectionBy=qo,Pn.intersectionWith=Ko,Pn.invert=ja,Pn.invertBy=Ma,Pn.invokeMap=wc,Pn.iteratee=rl,Pn.keyBy=kc,Pn.keys=Ea,Pn.keysIn=Na,Pn.map=_c,Pn.mapKeys=function(t,e){var n={};return e=oo(e,3),gi(t,(function(t,i,r){ii(n,e(t,i,r),t)})),n},Pn.mapValues=function(t,e){var n={};return e=oo(e,3),gi(t,(function(t,i,r){ii(n,i,e(t,i,r))})),n},Pn.matches=function(t){return Ai(ci(t,1))},Pn.matchesProperty=function(t,e){return Pi(t,ci(e,1))},Pn.memoize=Ic,Pn.merge=Ta,Pn.mergeWith=Ia,Pn.method=ol,Pn.methodOf=cl,Pn.mixin=al,Pn.negate=Rc,Pn.nthArg=function(t){return t=ba(t),Gi((function(e){return $i(e,t)}))},Pn.omit=Ra,Pn.omitBy=function(t,e){return Aa(t,Rc(oo(e)))},Pn.once=function(t){return jc(2,t)},Pn.orderBy=function(t,e,i,r){return null==t?[]:(Vc(e)||(e=null==e?[]:[e]),Vc(i=r?n:i)||(i=null==i?[]:[i]),Li(t,e,i))},Pn.over=sl,Pn.overArgs=Yc,Pn.overEvery=ul,Pn.overSome=hl,Pn.partial=Ac,Pn.partialRight=Pc,Pn.partition=zc,Pn.pick=Ya,Pn.pickBy=Aa,Pn.property=fl,Pn.propertyOf=function(t){return function(e){return null==t?n:wi(t,e)}},Pn.pull=Xo,Pn.pullAll=Qo,Pn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Wi(t,e,oo(n,2)):t},Pn.pullAllWith=function(t,e,i){return t&&t.length&&e&&e.length?Wi(t,e,n,i):t},Pn.pullAt=Jo,Pn.range=dl,Pn.rangeRight=bl,Pn.rearg=Fc,Pn.reject=function(t,e){return(Vc(t)?De:bi)(t,Rc(oo(e,3)))},Pn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,r=[],o=t.length;for(e=oo(e,3);++i<o;){var c=t[i];e(c,i,t)&&(n.push(c),r.push(i))}return Vi(t,r),n},Pn.rest=function(t,e){if("function"!=typeof t)throw new Dt(i);return Gi(t,e=e===n?e:ba(e))},Pn.reverse=tc,Pn.sampleSize=function(t,e,i){return e=(i?vo(t,e,i):e===n)?1:ba(e),(Vc(t)?Zn:Ki)(t,e)},Pn.set=function(t,e,n){return null==t?t:Zi(t,e,n)},Pn.setWith=function(t,e,i,r){return r="function"==typeof r?r:n,null==t?t:Zi(t,e,i,r)},Pn.shuffle=function(t){return(Vc(t)?Xn:Ji)(t)},Pn.slice=function(t,e,i){var r=null==t?0:t.length;return r?(i&&"number"!=typeof i&&vo(t,e,i)?(e=0,i=r):(e=null==e?0:ba(e),i=i===n?r:ba(i)),tr(t,e,i)):[]},Pn.sortBy=Cc,Pn.sortedUniq=function(t){return t&&t.length?rr(t):[]},Pn.sortedUniqBy=function(t,e){return t&&t.length?rr(t,oo(e,2)):[]},Pn.split=function(t,e,i){return i&&"number"!=typeof i&&vo(t,e,i)&&(e=i=n),(i=i===n?h:i>>>0)?(t=ga(t))&&("string"==typeof e||null!=e&&!oa(e))&&!(e=cr(e))&&rn(t)?gr(hn(t),0,i):t.split(e,i):[]},Pn.spread=function(t,e){if("function"!=typeof t)throw new Dt(i);return e=null==e?0:pn(ba(e),0),Gi((function(n){var i=n[e],r=gr(n,0,e);return i&&Ee(r,i),ke(t,this,r)}))},Pn.tail=function(t){var e=null==t?0:t.length;return e?tr(t,1,e):[]},Pn.take=function(t,e,i){return t&&t.length?tr(t,0,(e=i||e===n?1:ba(e))<0?0:e):[]},Pn.takeRight=function(t,e,i){var r=null==t?0:t.length;return r?tr(t,(e=r-(e=i||e===n?1:ba(e)))<0?0:e,r):[]},Pn.takeRightWhile=function(t,e){return t&&t.length?ur(t,oo(e,3),!1,!0):[]},Pn.takeWhile=function(t,e){return t&&t.length?ur(t,oo(e,3)):[]},Pn.tap=function(t,e){return e(t),t},Pn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new Dt(i);return ta(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ec(t,e,{leading:r,maxWait:e,trailing:o})},Pn.thru=dc,Pn.toArray=fa,Pn.toPairs=Pa,Pn.toPairsIn=Fa,Pn.toPath=function(t){return Vc(t)?Oe(t,Ao):la(t)?[t]:Sr(Yo(ga(t)))},Pn.toPlainObject=va,Pn.transform=function(t,e,n){var i=Vc(t),r=i||qc(t)||sa(t);if(e=oo(e,4),null==n){var o=t&&t.constructor;n=r?i?new o:[]:ta(t)&&Xc(o)?Fn(Wt(t)):{}}return(r?ze:gi)(t,(function(t,i,r){return e(n,t,i,r)})),n},Pn.unary=function(t){return Dc(t,1)},Pn.union=ec,Pn.unionBy=nc,Pn.unionWith=ic,Pn.uniq=function(t){return t&&t.length?ar(t):[]},Pn.uniqBy=function(t,e){return t&&t.length?ar(t,oo(e,2)):[]},Pn.uniqWith=function(t,e){return e="function"==typeof e?e:n,t&&t.length?ar(t,n,e):[]},Pn.unset=function(t,e){return null==t||lr(t,e)},Pn.unzip=rc,Pn.unzipWith=oc,Pn.update=function(t,e,n){return null==t?t:sr(t,e,mr(n))},Pn.updateWith=function(t,e,i,r){return r="function"==typeof r?r:n,null==t?t:sr(t,e,mr(i),r)},Pn.values=$a,Pn.valuesIn=function(t){return null==t?[]:Ke(t,Na(t))},Pn.without=cc,Pn.words=Xa,Pn.wrap=function(t,e){return Ac(mr(e),t)},Pn.xor=ac,Pn.xorBy=lc,Pn.xorWith=sc,Pn.zip=uc,Pn.zipObject=function(t,e){return dr(t||[],e||[],Jn)},Pn.zipObjectDeep=function(t,e){return dr(t||[],e||[],Zi)},Pn.zipWith=hc,Pn.entries=Pa,Pn.entriesIn=Fa,Pn.extend=ya,Pn.extendWith=wa,al(Pn,Pn),Pn.add=gl,Pn.attempt=Qa,Pn.camelCase=La,Pn.capitalize=Ha,Pn.ceil=xl,Pn.clamp=function(t,e,i){return i===n&&(i=e,e=n),i!==n&&(i=(i=pa(i))==i?i:0),e!==n&&(e=(e=pa(e))==e?e:0),oi(pa(t),e,i)},Pn.clone=function(t){return ci(t,4)},Pn.cloneDeep=function(t){return ci(t,5)},Pn.cloneDeepWith=function(t,e){return ci(t,5,e="function"==typeof e?e:n)},Pn.cloneWith=function(t,e){return ci(t,4,e="function"==typeof e?e:n)},Pn.conformsTo=function(t,e){return null==e||ai(t,e,Ea(e))},Pn.deburr=Wa,Pn.defaultTo=function(t,e){return null==t||t!=t?e:t},Pn.divide=yl,Pn.endsWith=function(t,e,i){t=ga(t),e=cr(e);var r=t.length,o=i=i===n?r:oi(ba(i),0,r);return(i-=e.length)>=0&&t.slice(i,o)==e},Pn.eq=$c,Pn.escape=function(t){return(t=ga(t))&&G.test(t)?t.replace(U,en):t},Pn.escapeRegExp=function(t){return(t=ga(t))&&et.test(t)?t.replace(tt,"\\$&"):t},Pn.every=function(t,e,i){var r=Vc(t)?Se:fi;return i&&vo(t,e,i)&&(e=n),r(t,oo(e,3))},Pn.find=pc,Pn.findIndex=Wo,Pn.findKey=function(t,e){return Ye(t,oo(e,3),gi)},Pn.findLast=vc,Pn.findLastIndex=Vo,Pn.findLastKey=function(t,e){return Ye(t,oo(e,3),xi)},Pn.floor=wl,Pn.forEach=gc,Pn.forEachRight=xc,Pn.forIn=function(t,e){return null==t?t:pi(t,oo(e,3),Na)},Pn.forInRight=function(t,e){return null==t?t:vi(t,oo(e,3),Na)},Pn.forOwn=function(t,e){return t&&gi(t,oo(e,3))},Pn.forOwnRight=function(t,e){return t&&xi(t,oo(e,3))},Pn.get=Sa,Pn.gt=Lc,Pn.gte=Hc,Pn.has=function(t,e){return null!=t&&fo(t,e,Ci)},Pn.hasIn=Da,Pn.head=Bo,Pn.identity=il,Pn.includes=function(t,e,n,i){t=Bc(t)?t:$a(t),n=n&&!i?ba(n):0;var r=t.length;return n<0&&(n=pn(r+n,0)),aa(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&Pe(t,e,n)>-1},Pn.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:ba(n);return r<0&&(r=pn(i+r,0)),Pe(t,e,r)},Pn.inRange=function(t,e,i){return e=da(e),i===n?(i=e,e=0):i=da(i),function(t,e,n){return t>=vn(e,n)&&t<pn(e,n)}(t=pa(t),e,i)},Pn.invoke=Oa,Pn.isArguments=Wc,Pn.isArray=Vc,Pn.isArrayBuffer=Uc,Pn.isArrayLike=Bc,Pn.isArrayLikeObject=Gc,Pn.isBoolean=function(t){return!0===t||!1===t||ea(t)&&_i(t)==m},Pn.isBuffer=qc,Pn.isDate=Kc,Pn.isElement=function(t){return ea(t)&&1===t.nodeType&&!ra(t)},Pn.isEmpty=function(t){if(null==t)return!0;if(Bc(t)&&(Vc(t)||"string"==typeof t||"function"==typeof t.splice||qc(t)||sa(t)||Wc(t)))return!t.length;var e=ho(t);if(e==y||e==S)return!t.size;if(wo(t))return!Ii(t).length;for(var n in t)if(Nt.call(t,n))return!1;return!0},Pn.isEqual=function(t,e){return Oi(t,e)},Pn.isEqualWith=function(t,e,i){var r=(i="function"==typeof i?i:n)?i(t,e):n;return r===n?Oi(t,e,n,i):!!r},Pn.isError=Zc,Pn.isFinite=function(t){return"number"==typeof t&&Re(t)},Pn.isFunction=Xc,Pn.isInteger=Qc,Pn.isLength=Jc,Pn.isMap=na,Pn.isMatch=function(t,e){return t===e||Ei(t,e,ao(e))},Pn.isMatchWith=function(t,e,i){return i="function"==typeof i?i:n,Ei(t,e,ao(e),i)},Pn.isNaN=function(t){return ia(t)&&t!=+t},Pn.isNative=function(t){if(yo(t))throw new wt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ni(t)},Pn.isNil=function(t){return null==t},Pn.isNull=function(t){return null===t},Pn.isNumber=ia,Pn.isObject=ta,Pn.isObjectLike=ea,Pn.isPlainObject=ra,Pn.isRegExp=oa,Pn.isSafeInteger=function(t){return Qc(t)&&t>=-9007199254740991&&t<=s},Pn.isSet=ca,Pn.isString=aa,Pn.isSymbol=la,Pn.isTypedArray=sa,Pn.isUndefined=function(t){return t===n},Pn.isWeakMap=function(t){return ea(t)&&ho(t)==M},Pn.isWeakSet=function(t){return ea(t)&&"[object WeakSet]"==_i(t)},Pn.join=function(t,e){return null==t?"":We.call(t,e)},Pn.kebabCase=Va,Pn.last=Zo,Pn.lastIndexOf=function(t,e,i){var r=null==t?0:t.length;if(!r)return-1;var o=r;return i!==n&&(o=(o=ba(i))<0?pn(r+o,0):vn(o,r-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,o):Ae(t,$e,o,!0)},Pn.lowerCase=Ua,Pn.lowerFirst=Ba,Pn.lt=ua,Pn.lte=ha,Pn.max=function(t){return t&&t.length?di(t,il,zi):n},Pn.maxBy=function(t,e){return t&&t.length?di(t,oo(e,2),zi):n},Pn.mean=function(t){return Le(t,il)},Pn.meanBy=function(t,e){return Le(t,oo(e,2))},Pn.min=function(t){return t&&t.length?di(t,il,Ri):n},Pn.minBy=function(t,e){return t&&t.length?di(t,oo(e,2),Ri):n},Pn.stubArray=ml,Pn.stubFalse=pl,Pn.stubObject=function(){return{}},Pn.stubString=function(){return""},Pn.stubTrue=function(){return!0},Pn.multiply=kl,Pn.nth=function(t,e){return t&&t.length?$i(t,ba(e)):n},Pn.noConflict=function(){return ue._===this&&(ue._=At),this},Pn.noop=ll,Pn.now=Sc,Pn.pad=function(t,e,n){t=ga(t);var i=(e=ba(e))?un(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return Lr(fe(r),n)+t+Lr(he(r),n)},Pn.padEnd=function(t,e,n){t=ga(t);var i=(e=ba(e))?un(t):0;return e&&i<e?t+Lr(e-i,n):t},Pn.padStart=function(t,e,n){t=ga(t);var i=(e=ba(e))?un(t):0;return e&&i<e?Lr(e-i,n)+t:t},Pn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),xn(ga(t).replace(nt,""),e||0)},Pn.random=function(t,e,i){if(i&&"boolean"!=typeof i&&vo(t,e,i)&&(e=i=n),i===n&&("boolean"==typeof e?(i=e,e=n):"boolean"==typeof t&&(i=t,t=n)),t===n&&e===n?(t=0,e=1):(t=da(t),e===n?(e=t,t=0):e=da(e)),t>e){var r=t;t=e,e=r}if(i||t%1||e%1){var o=yn();return vn(t+o*(e-t+ce("1e-"+((o+"").length-1))),e)}return Ui(t,e)},Pn.reduce=function(t,e,n){var i=Vc(t)?Ne:Ve,r=arguments.length<3;return i(t,oo(e,4),n,r,ui)},Pn.reduceRight=function(t,e,n){var i=Vc(t)?Te:Ve,r=arguments.length<3;return i(t,oo(e,4),n,r,hi)},Pn.repeat=function(t,e,i){return e=(i?vo(t,e,i):e===n)?1:ba(e),Bi(ga(t),e)},Pn.replace=function(){var t=arguments,e=ga(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Pn.result=function(t,e,i){var r=-1,o=(e=pr(e,t)).length;for(o||(o=1,t=n);++r<o;){var c=null==t?n:t[Ao(e[r])];c===n&&(r=o,c=i),t=Xc(c)?c.call(t):c}return t},Pn.round=_l,Pn.runInContext=t,Pn.sample=function(t){return(Vc(t)?Kn:qi)(t)},Pn.size=function(t){if(null==t)return 0;if(Bc(t))return aa(t)?un(t):t.length;var e=ho(t);return e==y||e==S?t.size:Ii(t).length},Pn.snakeCase=Ga,Pn.some=function(t,e,i){var r=Vc(t)?Ie:er;return i&&vo(t,e,i)&&(e=n),r(t,oo(e,3))},Pn.sortedIndex=function(t,e){return nr(t,e)},Pn.sortedIndexBy=function(t,e,n){return ir(t,e,oo(n,2))},Pn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=nr(t,e);if(i<n&&$c(t[i],e))return i}return-1},Pn.sortedLastIndex=function(t,e){return nr(t,e,!0)},Pn.sortedLastIndexBy=function(t,e,n){return ir(t,e,oo(n,2),!0)},Pn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=nr(t,e,!0)-1;if($c(t[n],e))return n}return-1},Pn.startCase=qa,Pn.startsWith=function(t,e,n){return t=ga(t),n=null==n?0:oi(ba(n),0,t.length),e=cr(e),t.slice(n,n+e.length)==e},Pn.subtract=zl,Pn.sum=function(t){return t&&t.length?Ue(t,il):0},Pn.sumBy=function(t,e){return t&&t.length?Ue(t,oo(e,2)):0},Pn.template=function(t,e,i){var r=Pn.templateSettings;i&&vo(t,e,i)&&(e=n),t=ga(t),e=wa({},e,r,Kr);var o,c,a=wa({},e.imports,r.imports,Kr),l=Ea(a),s=Ke(a,l),u=0,h=e.interpolate||gt,f="__p += '",d=Ct((e.escape||gt).source+"|"+h.source+"|"+(h===Z?ut:gt).source+"|"+(e.evaluate||gt).source+"|$","g"),b="//# sourceURL="+(Nt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ne+"]")+"\n";t.replace(d,(function(e,n,i,r,a,l){return i||(i=r),f+=t.slice(u,l).replace(xt,nn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),a&&(c=!0,f+="';\n"+a+";\n__p += '"),i&&(f+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=l+e.length,e})),f+="';\n";var m=Nt.call(e,"variable")&&e.variable;if(m){if(lt.test(m))throw new wt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(c?f.replace(L,""):f).replace(H,"$1").replace(W,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var p=Qa((function(){return kt(l,b+"return "+f).apply(n,s)}));if(p.source=f,Zc(p))throw p;return p},Pn.times=function(t,e){if((t=ba(t))<1||t>s)return[];var n=h,i=vn(t,h);e=oo(e),t-=h;for(var r=Be(i,e);++n<t;)e(n);return r},Pn.toFinite=da,Pn.toInteger=ba,Pn.toLength=ma,Pn.toLower=function(t){return ga(t).toLowerCase()},Pn.toNumber=pa,Pn.toSafeInteger=function(t){return t?oi(ba(t),-9007199254740991,s):0===t?t:0},Pn.toString=ga,Pn.toUpper=function(t){return ga(t).toUpperCase()},Pn.trim=function(t,e,i){if((t=ga(t))&&(i||e===n))return Ge(t);if(!t||!(e=cr(e)))return t;var r=hn(t),o=hn(e);return gr(r,Xe(r,o),Qe(r,o)+1).join("")},Pn.trimEnd=function(t,e,i){if((t=ga(t))&&(i||e===n))return t.slice(0,fn(t)+1);if(!t||!(e=cr(e)))return t;var r=hn(t);return gr(r,0,Qe(r,hn(e))+1).join("")},Pn.trimStart=function(t,e,i){if((t=ga(t))&&(i||e===n))return t.replace(nt,"");if(!t||!(e=cr(e)))return t;var r=hn(t);return gr(r,Xe(r,hn(e))).join("")},Pn.truncate=function(t,e){var i=30,r="...";if(ta(e)){var o="separator"in e?e.separator:o;i="length"in e?ba(e.length):i,r="omission"in e?cr(e.omission):r}var c=(t=ga(t)).length;if(rn(t)){var a=hn(t);c=a.length}if(i>=c)return t;var l=i-un(r);if(l<1)return r;var s=a?gr(a,0,l).join(""):t.slice(0,l);if(o===n)return s+r;if(a&&(l+=s.length-l),oa(o)){if(t.slice(l).search(o)){var u,h=s;for(o.global||(o=Ct(o.source,ga(ht.exec(o))+"g")),o.lastIndex=0;u=o.exec(h);)var f=u.index;s=s.slice(0,f===n?l:f)}}else if(t.indexOf(cr(o),l)!=l){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r},Pn.unescape=function(t){return(t=ga(t))&&B.test(t)?t.replace(V,dn):t},Pn.uniqueId=function(t){var e=++Tt;return ga(t)+e},Pn.upperCase=Ka,Pn.upperFirst=Za,Pn.each=gc,Pn.eachRight=xc,Pn.first=Bo,al(Pn,(vl={},gi(Pn,(function(t,e){Nt.call(Pn.prototype,e)||(vl[e]=t)})),vl),{chain:!1}),Pn.VERSION="4.17.21",ze(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Pn[t].placeholder=Pn})),ze(["drop","take"],(function(t,e){Hn.prototype[t]=function(i){i=i===n?1:pn(ba(i),0);var r=this.__filtered__&&!e?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(i,r.__takeCount__):r.__views__.push({size:vn(i,h),type:t+(r.__dir__<0?"Right":"")}),r},Hn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),ze(["filter","map","takeWhile"],(function(t,e){var n=e+1,i=1==n||3==n;Hn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:oo(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}})),ze(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Hn.prototype[t]=function(){return this[n](1).value()[0]}})),ze(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Hn.prototype[t]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(il)},Hn.prototype.find=function(t){return this.filter(t).head()},Hn.prototype.findLast=function(t){return this.reverse().find(t)},Hn.prototype.invokeMap=Gi((function(t,e){return"function"==typeof t?new Hn(this):this.map((function(n){return ji(n,t,e)}))})),Hn.prototype.reject=function(t){return this.filter(Rc(oo(t)))},Hn.prototype.slice=function(t,e){t=ba(t);var i=this;return i.__filtered__&&(t>0||e<0)?new Hn(i):(t<0?i=i.takeRight(-t):t&&(i=i.drop(t)),e!==n&&(i=(e=ba(e))<0?i.dropRight(-e):i.take(e-t)),i)},Hn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Hn.prototype.toArray=function(){return this.take(h)},gi(Hn.prototype,(function(t,e){var i=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Pn[r?"take"+("last"==e?"Right":""):e],c=r||/^find/.test(e);o&&(Pn.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,l=e instanceof Hn,s=a[0],u=l||Vc(e),h=function(t){var e=o.apply(Pn,Ee([t],a));return r&&f?e[0]:e};u&&i&&"function"==typeof s&&1!=s.length&&(l=u=!1);var f=this.__chain__,d=!!this.__actions__.length,b=c&&!f,m=l&&!d;if(!c&&u){e=m?e:new Hn(this);var p=t.apply(e,a);return p.__actions__.push({func:dc,args:[h],thisArg:n}),new Ln(p,f)}return b&&m?t.apply(this,a):(p=this.thru(h),b?r?p.value()[0]:p.value():p)})})),ze(["pop","push","shift","sort","splice","unshift"],(function(t){var e=jt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);Pn.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(Vc(r)?r:[],t)}return this[n]((function(n){return e.apply(Vc(n)?n:[],t)}))}})),gi(Hn.prototype,(function(t,e){var n=Pn[e];if(n){var i=n.name+"";Nt.call(Mn,i)||(Mn[i]=[]),Mn[i].push({name:e,func:n})}})),Mn[Ar(n,2).name]=[{name:"wrapper",func:n}],Hn.prototype.clone=function(){var t=new Hn(this.__wrapped__);return t.__actions__=Sr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Sr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Sr(this.__views__),t},Hn.prototype.reverse=function(){if(this.__filtered__){var t=new Hn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Hn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Vc(t),i=e<0,r=n?t.length:0,o=function(t,e,n){for(var i=-1,r=n.length;++i<r;){var o=n[i],c=o.size;switch(o.type){case"drop":t+=c;break;case"dropRight":e-=c;break;case"take":e=vn(e,t+c);break;case"takeRight":t=pn(t,e-c)}}return{start:t,end:e}}(0,r,this.__views__),c=o.start,a=o.end,l=a-c,s=i?a:c-1,u=this.__iteratees__,h=u.length,f=0,d=vn(l,this.__takeCount__);if(!n||!i&&r==l&&d==l)return hr(t,this.__actions__);var b=[];t:for(;l--&&f<d;){for(var m=-1,p=t[s+=e];++m<h;){var v=u[m],g=v.type,x=(0,v.iteratee)(p);if(2==g)p=x;else if(!x){if(1==g)continue t;break t}}b[f++]=p}return b},Pn.prototype.at=bc,Pn.prototype.chain=function(){return fc(this)},Pn.prototype.commit=function(){return new Ln(this.value(),this.__chain__)},Pn.prototype.next=function(){this.__values__===n&&(this.__values__=fa(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?n:this.__values__[this.__index__++]}},Pn.prototype.plant=function(t){for(var e,i=this;i instanceof $n;){var r=Fo(i);r.__index__=0,r.__values__=n,e?o.__wrapped__=r:e=r;var o=r;i=i.__wrapped__}return o.__wrapped__=t,e},Pn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Hn){var e=t;return this.__actions__.length&&(e=new Hn(this)),(e=e.reverse()).__actions__.push({func:dc,args:[tc],thisArg:n}),new Ln(e,this.__chain__)}return this.thru(tc)},Pn.prototype.toJSON=Pn.prototype.valueOf=Pn.prototype.value=function(){return hr(this.__wrapped__,this.__actions__)},Pn.prototype.first=Pn.prototype.head,qt&&(Pn.prototype[qt]=function(){return this}),Pn}();fe?((fe.exports=bn)._=bn,he._=bn):ue._=bn}).call(w)}));const nh=class{constructor(t){e(this,t),this.bcmChange=n(this,"bcmChange",7),this.color="#3b82f6"}handleChange(t){this.bcmChange.emit(t)}componentDidRender(){const{color:t}=this;Ou.render(Tt.createElement(th,{color:t,onChange:eh.debounce(this.handleChange.bind(this),150)}),this.el)}get el(){return r(this)}};nh.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:"Inter", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:"Inter", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}bcm-colorful{display:flex;flex-direction:column;width:256px;padding:8px;background-color:#fff;border-radius:4px}bcm-colorful .react-colorful{width:100%;gap:4px}bcm-colorful .react-colorful__saturation{margin:0 0 4px 0;border-radius:2px;border-bottom:none}bcm-colorful .react-colorful__hue,bcm-colorful .react-colorful__alpha{height:20px;border-radius:2px}bcm-colorful .react-colorful__hue-pointer,bcm-colorful .react-colorful__alpha-pointer{width:15px;height:15px}bcm-colorful .react-colorful__saturation-pointer{width:20px;height:20px}';const ih=new class{constructor(){}response(t,e){return Object.assign(Object.assign({valid:t},e&&{message:e}),!t&&{type:"error"})}required(t,e){let n=this.response(!0);return""!=t&&""!=t&&null!=t&&null!=t&&!1!==t||(n=this.response(!1,"This field is required.")),e&&(e.valid||(n=this.response(!1,e.errorText)),t instanceof Object&&t.isValid&&0==t.isValid&&(n=this.response(!1,"This field is required."))),n}selfValidation(t){let e=this.response(!0);return null==t.captionError&&"error"!=t.captionType||(e=this.response(!1,t.captionError)),e}},rh=({disabled:e,checked:n,readonly:i,required:r,indeterminate:o,hidden:c,captionType:a,_id:l})=>{const u=h("bcm-checkbox","bcm-checkbox__type-default","bcm-checkbox-size-medium",{error:a==s.Status.error,hidden:c,checked:n,disabled:e,required:r,readonly:i}),f=h("bcm-checkbox__label-icon","bcm-checkbox__label-icon-lite","bcm-checkbox__label-icon-"+o,{"bcm-checkbox__label-icon-checked":n}),d=h("bcm-checkbox__label");return t("div",{class:u},t("input",{tabindex:"-1",id:l,type:"checkbox",checked:n,disabled:e,required:r,readonly:i}),t("label",{class:d,htmlFor:l},t("span",{class:f},t("bcm-icon",{icon:"far fa-check"}))))},oh=({selected:e,total:n,found:i,multiple:r,variableText:o})=>(n=n||0,o=o?v(o,n):"items",t("footer",{class:"bcm-info-footer"},t("bcm-text",{scale:"size-1",color:"grey-8"},r&&e>0&&` ( ${e} selected ) `,` Total ${n} `,null!=i&&` / ${i} `,` ${o} found. `))),ch=({item:e,treeview:n,highlight:i,checkboxes:r,size:o,selectedItem:c,openGroup:a,checkedItem:s,focusItem:u,searchIsOnlyChilds:f})=>{const d=e.items&&e.items.length>0;var b=D.htmlEntities(e.text);let m=[];if(i&&D.slugify(b).includes(D.slugify(i))&&(f&&(!f||d&&(n||"group"==e.type))||(b=D.highlight(b,i))),"group"!=e.type&&e.template){const t=e.template.replace(/\s/g,"").match(/\{{[^}}]+\}/g).map((t=>t.replace(/[{}]/g,""))),n=Object.keys(e.itemObject);m=t.filter((t=>n.includes(t)))}b=e.isHtmlContent?e.isHtmlContent:e.template&&m.length>0?D.templateParser(e.template,Object.assign(Object.assign({},e.itemObject),{text:b})):b;const p=e.template?b:l.domParser(b),v=!n&&"group"==e.type&&!e.clickable,g=e.disabled,x=e.readonly,y=()=>{e.open=e.isSearching,a(e.id)};return t("div",{id:e.id,hidden:e.hidden,"on-focus":t=>!v&&!g&&u(t),class:h("bcm-list__item","bcm-list__item-"+o,{"bcm-list__item--group":!n&&"group"==e.type,"bcm-list__item--readonly":x})},t("div",{class:h("bcm-list__item-content",!r&&e.selected&&"selected",{disabled:g})},n&&t("div",{class:"bcm-list__item-content-collapse-icon",onClick:()=>y()},d&&t("bcm-icon",{icon:h("fas fa-caret-"+(e.isSearching||e.open?"down":"right"))})),t("div",{class:h("bcm-list__item-content-text",{treeview:n}),onClick:t=>{var n;((n=t).path||n.composedPath()).filter((t=>t.attributes&&t.attributes.getNamedItem("unlinked")))[0]||(x&&y(),!v&&!g&&!x&&(r?s(e.id):c(e.id)))}},r&&(n||!n&&"group"!=e.type)&&t("div",{class:"bcm-list__item-content-text-checkbox"},t(rh,{indeterminate:e.indeterminate,checked:e.checked,disabled:e.disabled})),t("span",Object.assign({class:"bcm-list__item-content-text-inner"},e.title&&{title:e.title},{innerHTML:p})))),(n||!n&&"group"==e.type)&&d&&t("div",{class:"bcm-list__item-childs"},(e.isSearching||e.open||!n&&"group"==e.type)&&e.items.map((e=>t(ch,{highlight:i,item:e,searchIsOnlyChilds:f,treeview:n,checkboxes:r,size:o,selectedItem:c,checkedItem:s,openGroup:t=>a(t),focusItem:t=>u(t)})))))},ah=({highlight:e,selectAllItem:n,bcmListContainer:i,treeview:r,checkboxes:o,checkAll:c,infoFooter:a,value:l,totalData:s,searchFound:u,variableText:h,_id:f,tempId:d,data:b,width:m,height:p,size:v,searchPlaceholder:g,minSearchLength:x,selectedItem:y,openGroup:w,checkedItem:k,onScrollEvent:_,focusItem:z,items:C,searchable:S,searchIsOnlyChilds:D,emptyText:j,emptyIcon:M,handleTransitionEnd:O})=>{const E=!(r&&u>0||u>0);return t("div",{id:`bcm-list-${f}`,class:i,"temp-id":`bcm-list-${d}`,style:{"--height":p,"--width":m},onTransitionEnd:t=>O(t)},b&&S&&t("section",{class:"bcm-list__container-search"},t("bcm-search",{size:v,id:`bcm-list-${f}-search`,data:b,clearable:!0,placeholder:g,"min-search-length":x,searchIsOnlyChilds:D})),t("main",{onScroll:t=>_(t),class:"scrolling",style:{"overscroll-behavior":"none"}},t("div",{style:{"min-height":`${(null==u?r?C.length:s:u)*("small"===v?28:"medium"===v?36:48)||0}px`,"overscroll-behavior":"none",height:"100%",display:"flex","flex-direction":"column"}},c&&0!=u&&C&&C.length>0&&o&&E&&t("section",{class:"bcm-list__container-select-all"},t(ch,{size:v,item:n,treeview:!1,checkboxes:!0,selectedItem:t=>y(t),checkedItem:t=>k(t),openGroup:t=>w(t),focusItem:t=>z(t)})),C.map((n=>t(ch,{highlight:e,size:v,item:n,searchIsOnlyChilds:D,treeview:r,checkboxes:o,selectedItem:t=>y(t),checkedItem:t=>k(t),openGroup:t=>w(t),focusItem:t=>z(t)}))),(!C||0===C.length)&&0!=u&&t("section",{class:"bcm-list__container-no-data"},t("bcm-empty",{style:{height:"auto"},icon:M},t("span",{innerHTML:j||"No data"}))),0==u&&t("section",{class:"bcm-list__container-no-data"},t("bcm-empty",{style:{height:"auto"},icon:M},t("span",{innerHTML:j||"No Data Found"}))))),a&&b&&b.length>0&&t(oh,{selected:null==l?void 0:l.length,total:s,found:u,multiple:o,variableText:h}))};var lh,sh;function uh(){return lh.apply(null,arguments)}function hh(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function fh(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function dh(t){return void 0===t}function bh(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function mh(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function ph(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function vh(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function gh(t,e){for(var n in e)vh(e,n)&&(t[n]=e[n]);return vh(e,"toString")&&(t.toString=e.toString),vh(e,"valueOf")&&(t.valueOf=e.valueOf),t}function xh(t,e,n,i){return Od(t,e,n,i,!0).utc()}function yh(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function wh(t){if(null==t._isValid){var e=yh(t),n=sh.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function kh(t){var e=xh(NaN);return null!=t?gh(yh(e),t):yh(e).userInvalidated=!0,e}sh=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var _h=uh.momentProperties=[];function zh(t,e){var n,i,r;if(dh(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),dh(e._i)||(t._i=e._i),dh(e._f)||(t._f=e._f),dh(e._l)||(t._l=e._l),dh(e._strict)||(t._strict=e._strict),dh(e._tzm)||(t._tzm=e._tzm),dh(e._isUTC)||(t._isUTC=e._isUTC),dh(e._offset)||(t._offset=e._offset),dh(e._pf)||(t._pf=yh(e)),dh(e._locale)||(t._locale=e._locale),_h.length>0)for(n=0;n<_h.length;n++)dh(r=e[i=_h[n]])||(t[i]=r);return t}var Ch=!1;function Sh(t){zh(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Ch&&(Ch=!0,uh.updateOffset(this),Ch=!1)}function Dh(t){return t instanceof Sh||null!=t&&null!=t._isAMomentObject}function jh(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Mh(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=jh(e)),n}function Oh(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),c=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&Mh(t[i])!==Mh(e[i]))&&c++;return c+o}function Eh(t){!1===uh.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function Nh(t,e){var n=!0;return gh((function(){if(null!=uh.deprecationHandler&&uh.deprecationHandler(null,t),n){for(var i,r=[],o=0;o<arguments.length;o++){if(i="","object"==typeof arguments[o]){for(var c in i+="\n["+o+"] ",arguments[0])i+=c+": "+arguments[0][c]+", ";i=i.slice(0,-2)}else i=arguments[o];r.push(i)}Eh(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var Th,Ih={};function Rh(t,e){null!=uh.deprecationHandler&&uh.deprecationHandler(t,e),Ih[t]||(Eh(e),Ih[t]=!0)}function Yh(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Ah(t,e){var n,i=gh({},t);for(n in e)vh(e,n)&&(fh(t[n])&&fh(e[n])?(i[n]={},gh(i[n],t[n]),gh(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)vh(t,n)&&!vh(e,n)&&fh(t[n])&&(i[n]=gh({},i[n]));return i}function Ph(t){null!=t&&this.set(t)}uh.suppressDeprecationWarnings=!1,uh.deprecationHandler=null,Th=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)vh(t,e)&&n.push(e);return n};var Fh={};function $h(t,e){var n=t.toLowerCase();Fh[n]=Fh[n+"s"]=Fh[e]=t}function Lh(t){return"string"==typeof t?Fh[t]||Fh[t.toLowerCase()]:void 0}function Hh(t){var e,n,i={};for(n in t)vh(t,n)&&(e=Lh(n))&&(i[e]=t[n]);return i}var Wh={};function Vh(t,e){Wh[t]=e}function Uh(t,e,n){var i=""+Math.abs(t);return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}var Bh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Gh=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,qh={},Kh={};function Zh(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(Kh[t]=r),e&&(Kh[e[0]]=function(){return Uh(r.apply(this,arguments),e[1],e[2])}),n&&(Kh[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function Xh(t,e){return t.isValid()?(e=Qh(e,t.localeData()),qh[e]=qh[e]||function(t){var e,n,i,r=t.match(Bh);for(e=0,n=r.length;e<n;e++)r[e]=Kh[r[e]]?Kh[r[e]]:(i=r[e]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(e){var i,o="";for(i=0;i<n;i++)o+=Yh(r[i])?r[i].call(e,t):r[i];return o}}(e),qh[e](t)):t.localeData().invalidDate()}function Qh(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(Gh.lastIndex=0;n>=0&&Gh.test(t);)t=t.replace(Gh,i),Gh.lastIndex=0,n-=1;return t}var Jh=/\d/,tf=/\d\d/,ef=/\d{3}/,nf=/\d{4}/,rf=/[+-]?\d{6}/,of=/\d\d?/,cf=/\d\d\d\d?/,af=/\d\d\d\d\d\d?/,lf=/\d{1,3}/,sf=/\d{1,4}/,uf=/[+-]?\d{1,6}/,hf=/\d+/,ff=/[+-]?\d+/,df=/Z|[+-]\d\d:?\d\d/gi,bf=/Z|[+-]\d\d(?::?\d\d)?/gi,mf=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,pf={};function vf(t,e,n){pf[t]=Yh(e)?e:function(t){return t&&n?n:e}}function gf(t,e){return vh(pf,t)?pf[t](e._strict,e._locale):new RegExp(function(t){return xf(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r})))}(t))}function xf(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var yf={};function wf(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),bh(e)&&(i=function(t,n){n[e]=Mh(t)}),n=0;n<t.length;n++)yf[t[n]]=i}function kf(t,e){wf(t,(function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)}))}function _f(t,e,n){null!=e&&vh(yf,t)&&yf[t](e,n._a,n,t)}function zf(t){return Cf(t)?366:365}function Cf(t){return t%4==0&&t%100!=0||t%400==0}Zh("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),Zh(0,["YY",2],0,(function(){return this.year()%100})),Zh(0,["YYYY",4],0,"year"),Zh(0,["YYYYY",5],0,"year"),Zh(0,["YYYYYY",6,!0],0,"year"),$h("year","y"),Vh("year",1),vf("Y",ff),vf("YY",of,tf),vf("YYYY",sf,nf),vf("YYYYY",uf,rf),vf("YYYYYY",uf,rf),wf(["YYYYY","YYYYYY"],0),wf("YYYY",(function(t,e){e[0]=2===t.length?uh.parseTwoDigitYear(t):Mh(t)})),wf("YY",(function(t,e){e[0]=uh.parseTwoDigitYear(t)})),wf("Y",(function(t,e){e[0]=parseInt(t,10)})),uh.parseTwoDigitYear=function(t){return Mh(t)+(Mh(t)>68?1900:2e3)};var Sf,Df=jf("FullYear",!0);function jf(t,e){return function(n){return null!=n?(Of(this,t,n),uh.updateOffset(this,e),this):Mf(this,t)}}function Mf(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Of(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Cf(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Ef(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Ef(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=function(t){return(t%12+12)%12}(e);return t+=(e-n)/12,1===n?Cf(t)?29:28:31-n%7%2}Sf=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},Zh("M",["MM",2],"Mo",(function(){return this.month()+1})),Zh("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),Zh("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),$h("month","M"),Vh("month",8),vf("M",of),vf("MM",of,tf),vf("MMM",(function(t,e){return e.monthsShortRegex(t)})),vf("MMMM",(function(t,e){return e.monthsRegex(t)})),wf(["M","MM"],(function(t,e){e[1]=Mh(t)-1})),wf(["MMM","MMMM"],(function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[1]=r:yh(n).invalidMonth=t}));var Nf=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Tf="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),If="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Rf(t,e,n){var i,r,o,c=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=xh([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=Sf.call(this._shortMonthsParse,c))?r:null:-1!==(r=Sf.call(this._longMonthsParse,c))?r:null:"MMM"===e?-1!==(r=Sf.call(this._shortMonthsParse,c))||-1!==(r=Sf.call(this._longMonthsParse,c))?r:null:-1!==(r=Sf.call(this._longMonthsParse,c))||-1!==(r=Sf.call(this._shortMonthsParse,c))?r:null}function Yf(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=Mh(e);else if(!bh(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Ef(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Af(t){return null!=t?(Yf(this,t),uh.updateOffset(this,!0),this):Mf(this,"Month")}var Pf=mf,Ff=mf;function $f(){function t(t,e){return e.length-t.length}var e,n,i=[],r=[],o=[];for(e=0;e<12;e++)n=xh([2e3,e]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)i[e]=xf(i[e]),r[e]=xf(r[e]);for(e=0;e<24;e++)o[e]=xf(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Lf(t,e,n,i,r,o,c){var a;return t<100&&t>=0?(a=new Date(t+400,e,n,i,r,o,c),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,r,o,c),a}function Hf(t){var e;if(t<100&&t>=0){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Wf(t,e,n){var i=7+e-n;return-(7+Hf(t,0,i).getUTCDay()-e)%7+i-1}function Vf(t,e,n,i,r){var o,c,a=1+7*(e-1)+(7+n-i)%7+Wf(t,i,r);return a<=0?c=zf(o=t-1)+a:a>zf(t)?(o=t+1,c=a-zf(t)):(o=t,c=a),{year:o,dayOfYear:c}}function Uf(t,e,n){var i,r,o=Wf(t.year(),e,n),c=Math.floor((t.dayOfYear()-o-1)/7)+1;return c<1?i=c+Bf(r=t.year()-1,e,n):c>Bf(t.year(),e,n)?(i=c-Bf(t.year(),e,n),r=t.year()+1):(r=t.year(),i=c),{week:i,year:r}}function Bf(t,e,n){var i=Wf(t,e,n),r=Wf(t+1,e,n);return(zf(t)-i+r)/7}function Gf(t,e){return t.slice(e,7).concat(t.slice(0,e))}Zh("w",["ww",2],"wo","week"),Zh("W",["WW",2],"Wo","isoWeek"),$h("week","w"),$h("isoWeek","W"),Vh("week",5),Vh("isoWeek",5),vf("w",of),vf("ww",of,tf),vf("W",of),vf("WW",of,tf),kf(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=Mh(t)})),Zh("d",0,"do","day"),Zh("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),Zh("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),Zh("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),Zh("e",0,0,"weekday"),Zh("E",0,0,"isoWeekday"),$h("day","d"),$h("weekday","e"),$h("isoWeekday","E"),Vh("day",11),Vh("weekday",11),Vh("isoWeekday",11),vf("d",of),vf("e",of),vf("E",of),vf("dd",(function(t,e){return e.weekdaysMinRegex(t)})),vf("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),vf("dddd",(function(t,e){return e.weekdaysRegex(t)})),kf(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:yh(n).invalidWeekday=t})),kf(["d","e","E"],(function(t,e,n,i){e[i]=Mh(t)}));var qf="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Kf="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Zf="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Xf(t,e,n){var i,r,o,c=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=xh([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=Sf.call(this._weekdaysParse,c))?r:null:"ddd"===e?-1!==(r=Sf.call(this._shortWeekdaysParse,c))?r:null:-1!==(r=Sf.call(this._minWeekdaysParse,c))?r:null:"dddd"===e?-1!==(r=Sf.call(this._weekdaysParse,c))||-1!==(r=Sf.call(this._shortWeekdaysParse,c))||-1!==(r=Sf.call(this._minWeekdaysParse,c))?r:null:"ddd"===e?-1!==(r=Sf.call(this._shortWeekdaysParse,c))||-1!==(r=Sf.call(this._weekdaysParse,c))||-1!==(r=Sf.call(this._minWeekdaysParse,c))?r:null:-1!==(r=Sf.call(this._minWeekdaysParse,c))||-1!==(r=Sf.call(this._weekdaysParse,c))||-1!==(r=Sf.call(this._shortWeekdaysParse,c))?r:null}var Qf=mf,Jf=mf,td=mf;function ed(){function t(t,e){return e.length-t.length}var e,n,i,r,o,c=[],a=[],l=[],s=[];for(e=0;e<7;e++)n=xh([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),c.push(i),a.push(r),l.push(o),s.push(i),s.push(r),s.push(o);for(c.sort(t),a.sort(t),l.sort(t),s.sort(t),e=0;e<7;e++)a[e]=xf(a[e]),l[e]=xf(l[e]),s[e]=xf(s[e]);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+c.join("|")+")","i")}function nd(){return this.hours()%12||12}function id(t,e){Zh(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function rd(t,e){return e._meridiemParse}Zh("H",["HH",2],0,"hour"),Zh("h",["hh",2],0,nd),Zh("k",["kk",2],0,(function(){return this.hours()||24})),Zh("hmm",0,0,(function(){return""+nd.apply(this)+Uh(this.minutes(),2)})),Zh("hmmss",0,0,(function(){return""+nd.apply(this)+Uh(this.minutes(),2)+Uh(this.seconds(),2)})),Zh("Hmm",0,0,(function(){return""+this.hours()+Uh(this.minutes(),2)})),Zh("Hmmss",0,0,(function(){return""+this.hours()+Uh(this.minutes(),2)+Uh(this.seconds(),2)})),id("a",!0),id("A",!1),$h("hour","h"),Vh("hour",13),vf("a",rd),vf("A",rd),vf("H",of),vf("h",of),vf("k",of),vf("HH",of,tf),vf("hh",of,tf),vf("kk",of,tf),vf("hmm",cf),vf("hmmss",af),vf("Hmm",cf),vf("Hmmss",af),wf(["H","HH"],3),wf(["k","kk"],(function(t,e){var n=Mh(t);e[3]=24===n?0:n})),wf(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),wf(["h","hh"],(function(t,e,n){e[3]=Mh(t),yh(n).bigHour=!0})),wf("hmm",(function(t,e,n){var i=t.length-2;e[3]=Mh(t.substr(0,i)),e[4]=Mh(t.substr(i)),yh(n).bigHour=!0})),wf("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[3]=Mh(t.substr(0,i)),e[4]=Mh(t.substr(i,2)),e[5]=Mh(t.substr(r)),yh(n).bigHour=!0})),wf("Hmm",(function(t,e){var n=t.length-2;e[3]=Mh(t.substr(0,n)),e[4]=Mh(t.substr(n))})),wf("Hmmss",(function(t,e){var n=t.length-4,i=t.length-2;e[3]=Mh(t.substr(0,n)),e[4]=Mh(t.substr(n,2)),e[5]=Mh(t.substr(i))}));var od,cd=jf("Hours",!0),ad={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Tf,monthsShort:If,week:{dow:0,doy:6},weekdays:qf,weekdaysMin:Zf,weekdaysShort:Kf,meridiemParse:/[ap]\.?m?\.?/i},ld={},sd={};function ud(t){return t?t.toLowerCase().replace("_","-"):t}function hd(t){var e=null;if(!ld[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=od._abbr,require("./locale/"+t),fd(e)}catch(t){}return ld[t]}function fd(t,e){var n;return t&&((n=dh(e)?bd(t):dd(t,e))?od=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),od._abbr}function dd(t,e){if(null!==e){var n,i=ad;if(e.abbr=t,null!=ld[t])Rh("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ld[t]._config;else if(null!=e.parentLocale)if(null!=ld[e.parentLocale])i=ld[e.parentLocale]._config;else{if(null==(n=hd(e.parentLocale)))return sd[e.parentLocale]||(sd[e.parentLocale]=[]),sd[e.parentLocale].push({name:t,config:e}),null;i=n._config}return ld[t]=new Ph(Ah(i,e)),sd[t]&&sd[t].forEach((function(t){dd(t.name,t.config)})),fd(t),ld[t]}return delete ld[t],null}function bd(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return od;if(!hh(t)){if(e=hd(t))return e;t=[t]}return function(t){for(var e,n,i,r,o=0;o<t.length;){for(e=(r=ud(t[o]).split("-")).length,n=(n=ud(t[o+1]))?n.split("-"):null;e>0;){if(i=hd(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&Oh(r,n,!0)>=e-1)break;e--}o++}return od}(t)}function md(t){var e,n=t._a;return n&&-2===yh(t).overflow&&(e=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Ef(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,yh(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),yh(t)._overflowWeeks&&-1===e&&(e=7),yh(t)._overflowWeekday&&-1===e&&(e=8),yh(t).overflow=e),t}function pd(t,e,n){return null!=t?t:null!=e?e:n}function vd(t){var e,n,i,r,o,c=[];if(!t._d){for(i=function(t){var e=new Date(uh.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,n,i,r,o,c,a,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,c=4,n=pd(e.GG,t._a[0],Uf(Ed(),1,4).year),i=pd(e.W,1),((r=pd(e.E,1))<1||r>7)&&(l=!0);else{o=t._locale._week.dow,c=t._locale._week.doy;var s=Uf(Ed(),o,c);n=pd(e.gg,t._a[0],s.year),i=pd(e.w,s.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o}i<1||i>Bf(n,o,c)?yh(t)._overflowWeeks=!0:null!=l?yh(t)._overflowWeekday=!0:(a=Vf(n,i,r,o,c),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(o=pd(t._a[0],i[0]),(t._dayOfYear>zf(o)||0===t._dayOfYear)&&(yh(t)._overflowDayOfYear=!0),n=Hf(o,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=c[e]=i[e];for(;e<7;e++)t._a[e]=c[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Hf:Lf).apply(null,c),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(yh(t).weekdayMismatch=!0)}}var gd=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xd=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yd=/Z|[+-]\d\d(?::?\d\d)?/,wd=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],kd=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_d=/^\/?Date\((\-?\d+)/i;function zd(t){var e,n,i,r,o,c,a=t._i,l=gd.exec(a)||xd.exec(a);if(l){for(yh(t).iso=!0,e=0,n=wd.length;e<n;e++)if(wd[e][1].exec(l[1])){r=wd[e][0],i=!1!==wd[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,n=kd.length;e<n;e++)if(kd[e][1].exec(l[3])){o=(l[2]||" ")+kd[e][0];break}if(null==o)return void(t._isValid=!1)}if(!i&&null!=o)return void(t._isValid=!1);if(l[4]){if(!yd.exec(l[4]))return void(t._isValid=!1);c="Z"}t._f=r+(o||"")+(c||""),jd(t)}else t._isValid=!1}var Cd=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;var Sd={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dd(t){var e,n,i,r,o,c,a,l,s=Cd.exec(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(t._i));if(s){var u=(e=s[3],n=s[2],i=s[5],r=s[6],o=s[7],c=[(a=s[4],l=parseInt(a,10),l<=49?2e3+l:l<=999?1900+l:l),If.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(r,10)],o&&c.push(parseInt(o,10)),c);if(!function(t,e,n){return!t||Kf.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(yh(n).weekdayMismatch=!0,n._isValid=!1,!1)}(s[1],u,t))return;t._a=u,t._tzm=function(t,e,n){if(t)return Sd[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(s[8],s[9],s[10]),t._d=Hf.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),yh(t).rfc2822=!0}else t._isValid=!1}function jd(t){if(t._f!==uh.ISO_8601)if(t._f!==uh.RFC_2822){t._a=[],yh(t).empty=!0;var e,n,i,r,o,c=""+t._i,a=c.length,l=0;for(i=Qh(t._f,t._locale).match(Bh)||[],e=0;e<i.length;e++)(n=(c.match(gf(r=i[e],t))||[])[0])&&((o=c.substr(0,c.indexOf(n))).length>0&&yh(t).unusedInput.push(o),c=c.slice(c.indexOf(n)+n.length),l+=n.length),Kh[r]?(n?yh(t).empty=!1:yh(t).unusedTokens.push(r),_f(r,n,t)):t._strict&&!n&&yh(t).unusedTokens.push(r);yh(t).charsLeftOver=a-l,c.length>0&&yh(t).unusedInput.push(c),t._a[3]<=12&&!0===yh(t).bigHour&&t._a[3]>0&&(yh(t).bigHour=void 0),yh(t).parsedDateParts=t._a.slice(0),yh(t).meridiem=t._meridiem,t._a[3]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),vd(t),md(t)}else Dd(t);else zd(t)}function Md(t){var e=t._i,n=t._f;return t._locale=t._locale||bd(t._l),null===e||void 0===n&&""===e?kh({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),Dh(e)?new Sh(md(e)):(mh(e)?t._d=e:hh(n)?function(t){var e,n,i,r,o;if(0===t._f.length)return yh(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)o=0,e=zh({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],jd(e),wh(e)&&(o+=yh(e).charsLeftOver,o+=10*yh(e).unusedTokens.length,yh(e).score=o,(null==i||o<i)&&(i=o,n=e));gh(t,n||e)}(t):n?jd(t):function(t){var e=t._i;dh(e)?t._d=new Date(uh.now()):mh(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=_d.exec(t._i);null===e?(zd(t),!1===t._isValid&&(delete t._isValid,Dd(t),!1===t._isValid&&(delete t._isValid,uh.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):hh(e)?(t._a=ph(e.slice(0),(function(t){return parseInt(t,10)})),vd(t)):fh(e)?function(t){if(!t._d){var e=Hh(t._i);t._a=ph([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),vd(t)}}(t):bh(e)?t._d=new Date(e):uh.createFromInputFallback(t)}(t),wh(t)||(t._d=null),t))}function Od(t,e,n,i,r){var o,c={};return!0!==n&&!1!==n||(i=n,n=void 0),(fh(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||hh(t)&&0===t.length)&&(t=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=r,c._l=n,c._i=t,c._f=e,c._strict=i,(o=new Sh(md(Md(c))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Ed(t,e,n,i){return Od(t,e,n,i,!1)}uh.createFromInputFallback=Nh("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),uh.ISO_8601=function(){},uh.RFC_2822=function(){};var Nd=Nh("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ed.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:kh()})),Td=Nh("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ed.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:kh()}));function Id(t,e){var n,i;if(1===e.length&&hh(e[0])&&(e=e[0]),!e.length)return Ed();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Rd=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Yd(t){var e=Hh(t),n=e.year||0,i=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,c=e.day||0,a=e.hour||0,l=e.minute||0,s=e.second||0,u=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Sf.call(Rd,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Rd.length;++i)if(t[Rd[i]]){if(n)return!1;parseFloat(t[Rd[i]])!==Mh(t[Rd[i]])&&(n=!0)}return!0}(e),this._milliseconds=+u+1e3*s+6e4*l+1e3*a*60*60,this._days=+c+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=bd(),this._bubble()}function Ad(t){return t instanceof Yd}function Pd(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Fd(t,e){Zh(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+Uh(~~(t/60),2)+e+Uh(~~t%60,2)}))}Fd("Z",":"),Fd("ZZ",""),vf("Z",bf),vf("ZZ",bf),wf(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=Ld(bf,t)}));var $d=/([\+\-]|\d\d)/gi;function Ld(t,e){var n=(e||"").match(t);if(null===n)return null;var i=((n[n.length-1]||[])+"").match($d)||["-",0,0],r=60*i[1]+Mh(i[2]);return 0===r?0:"+"===i[0]?r:-r}function Hd(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(Dh(t)||mh(t)?t.valueOf():Ed(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),uh.updateOffset(n,!1),n):Ed(t).local()}function Wd(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Vd(){return!!this.isValid()&&this._isUTC&&0===this._offset}uh.updateOffset=function(){};var Ud=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Bd=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Gd(t,e){var n,i,r,o,c,a,l=t,s=null;return Ad(t)?l={ms:t._milliseconds,d:t._days,M:t._months}:bh(t)?(l={},e?l[e]=t:l.milliseconds=t):(s=Ud.exec(t))?(n="-"===s[1]?-1:1,l={y:0,d:Mh(s[2])*n,h:Mh(s[3])*n,m:Mh(s[4])*n,s:Mh(s[5])*n,ms:Mh(Pd(1e3*s[6]))*n}):(s=Bd.exec(t))?l={y:qd(s[2],n="-"===s[1]?-1:1),M:qd(s[3],n),w:qd(s[4],n),d:qd(s[5],n),h:qd(s[6],n),m:qd(s[7],n),s:qd(s[8],n)}:null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(o=Ed(l.from),c=Ed(l.to),r=o.isValid()&&c.isValid()?(c=Hd(c,o),o.isBefore(c)?a=Kd(o,c):((a=Kd(c,o)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(l={}).ms=r.milliseconds,l.M=r.months),i=new Yd(l),Ad(t)&&vh(t,"_locale")&&(i._locale=t._locale),i}function qd(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Kd(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Zd(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(Rh(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Xd(this,Gd(n="string"==typeof n?+n:n,i),t),this}}function Xd(t,e,n,i){var r=e._milliseconds,o=Pd(e._days),c=Pd(e._months);t.isValid()&&(i=null==i||i,c&&Yf(t,Mf(t,"Month")+c*n),o&&Of(t,"Date",Mf(t,"Date")+o*n),r&&t._d.setTime(t._d.valueOf()+r*n),i&&uh.updateOffset(t,o||c))}Gd.fn=Yd.prototype,Gd.invalid=function(){return Gd(NaN)};var Qd=Zd(1,"add"),Jd=Zd(-1,"subtract");function tb(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function eb(t){var e;return void 0===t?this._locale._abbr:(null!=(e=bd(t))&&(this._locale=e),this)}uh.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",uh.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var nb=Nh("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ib(){return this._locale}var rb=1e3,ob=6e4,cb=36e5,ab=126227808e5;function lb(t,e){return(t%e+e)%e}function sb(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-ab:new Date(t,e,n).valueOf()}function ub(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-ab:Date.UTC(t,e,n)}function hb(t,e){Zh(0,[t,t.length],0,e)}function fb(t,e,n,i,r){var o;return null==t?Uf(this,i,r).year:(e>(o=Bf(t,i,r))&&(e=o),db.call(this,t,e,n,i,r))}function db(t,e,n,i,r){var o=Vf(t,e,n,i,r),c=Hf(o.year,0,o.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}Zh(0,["gg",2],0,(function(){return this.weekYear()%100})),Zh(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),hb("gggg","weekYear"),hb("ggggg","weekYear"),hb("GGGG","isoWeekYear"),hb("GGGGG","isoWeekYear"),$h("weekYear","gg"),$h("isoWeekYear","GG"),Vh("weekYear",1),Vh("isoWeekYear",1),vf("G",ff),vf("g",ff),vf("GG",of,tf),vf("gg",of,tf),vf("GGGG",sf,nf),vf("gggg",sf,nf),vf("GGGGG",uf,rf),vf("ggggg",uf,rf),kf(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=Mh(t)})),kf(["gg","GG"],(function(t,e,n,i){e[i]=uh.parseTwoDigitYear(t)})),Zh("Q",0,"Qo","quarter"),$h("quarter","Q"),Vh("quarter",7),vf("Q",Jh),wf("Q",(function(t,e){e[1]=3*(Mh(t)-1)})),Zh("D",["DD",2],"Do","date"),$h("date","D"),Vh("date",9),vf("D",of),vf("DD",of,tf),vf("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),wf(["D","DD"],2),wf("Do",(function(t,e){e[2]=Mh(t.match(of)[0])}));var bb=jf("Date",!0);Zh("DDD",["DDDD",3],"DDDo","dayOfYear"),$h("dayOfYear","DDD"),Vh("dayOfYear",4),vf("DDD",lf),vf("DDDD",ef),wf(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=Mh(t)})),Zh("m",["mm",2],0,"minute"),$h("minute","m"),Vh("minute",14),vf("m",of),vf("mm",of,tf),wf(["m","mm"],4);var mb=jf("Minutes",!1);Zh("s",["ss",2],0,"second"),$h("second","s"),Vh("second",15),vf("s",of),vf("ss",of,tf),wf(["s","ss"],5);var pb,vb=jf("Seconds",!1);for(Zh("S",0,0,(function(){return~~(this.millisecond()/100)})),Zh(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Zh(0,["SSS",3],0,"millisecond"),Zh(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Zh(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Zh(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Zh(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Zh(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Zh(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),$h("millisecond","ms"),Vh("millisecond",16),vf("S",lf,Jh),vf("SS",lf,tf),vf("SSS",lf,ef),pb="SSSS";pb.length<=9;pb+="S")vf(pb,hf);function gb(t,e){e[6]=Mh(1e3*("0."+t))}for(pb="S";pb.length<=9;pb+="S")wf(pb,gb);var xb=jf("Milliseconds",!1);Zh("z",0,0,"zoneAbbr"),Zh("zz",0,0,"zoneName");var yb=Sh.prototype;function wb(t){return t}yb.add=Qd,yb.calendar=function(t,e){var n=t||Ed(),i=Hd(n,this).startOf("day"),r=uh.calendarFormat(this,i)||"sameElse",o=e&&(Yh(e[r])?e[r].call(this,n):e[r]);return this.format(o||this.localeData().calendar(r,this,Ed(n)))},yb.clone=function(){return new Sh(this)},yb.diff=function(t,e,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Hd(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=Lh(e)){case"year":o=tb(this,i)/12;break;case"month":o=tb(this,i);break;case"quarter":o=tb(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:jh(o)},yb.endOf=function(t){var e;if(void 0===(t=Lh(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?ub:sb;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=cb-lb(e+(this._isUTC?0:this.utcOffset()*ob),cb)-1;break;case"minute":e=this._d.valueOf(),e+=ob-lb(e,ob)-1;break;case"second":e=this._d.valueOf(),e+=rb-lb(e,rb)-1}return this._d.setTime(e),uh.updateOffset(this,!0),this},yb.format=function(t){t||(t=this.isUtc()?uh.defaultFormatUtc:uh.defaultFormat);var e=Xh(this,t);return this.localeData().postformat(e)},yb.from=function(t,e){return this.isValid()&&(Dh(t)&&t.isValid()||Ed(t).isValid())?Gd({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},yb.fromNow=function(t){return this.from(Ed(),t)},yb.to=function(t,e){return this.isValid()&&(Dh(t)&&t.isValid()||Ed(t).isValid())?Gd({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},yb.toNow=function(t){return this.to(Ed(),t)},yb.get=function(t){return Yh(this[t=Lh(t)])?this[t]():this},yb.invalidAt=function(){return yh(this).overflow},yb.isAfter=function(t,e){var n=Dh(t)?t:Ed(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Lh(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},yb.isBefore=function(t,e){var n=Dh(t)?t:Ed(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Lh(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},yb.isBetween=function(t,e,n,i){var r=Dh(t)?t:Ed(t),o=Dh(e)?e:Ed(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n))},yb.isSame=function(t,e){var n,i=Dh(t)?t:Ed(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=Lh(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},yb.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},yb.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},yb.isValid=function(){return wh(this)},yb.lang=nb,yb.locale=eb,yb.localeData=ib,yb.max=Td,yb.min=Nd,yb.parsingFlags=function(){return gh({},yh(this))},yb.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:Wh[n]});return e.sort((function(t,e){return t.priority-e.priority})),e}(t=Hh(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(Yh(this[t=Lh(t)]))return this[t](e);return this},yb.startOf=function(t){var e;if(void 0===(t=Lh(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?ub:sb;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=lb(e+(this._isUTC?0:this.utcOffset()*ob),cb);break;case"minute":e=this._d.valueOf(),e-=lb(e,ob);break;case"second":e=this._d.valueOf(),e-=lb(e,rb)}return this._d.setTime(e),uh.updateOffset(this,!0),this},yb.subtract=Jd,yb.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},yb.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},yb.toDate=function(){return new Date(this.valueOf())},yb.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?Xh(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Yh(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Xh(n,"Z")):Xh(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},yb.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},yb.toJSON=function(){return this.isValid()?this.toISOString():null},yb.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},yb.unix=function(){return Math.floor(this.valueOf()/1e3)},yb.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},yb.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},yb.year=Df,yb.isLeapYear=function(){return Cf(this.year())},yb.weekYear=function(t){return fb.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},yb.isoWeekYear=function(t){return fb.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},yb.quarter=yb.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},yb.month=Af,yb.daysInMonth=function(){return Ef(this.year(),this.month())},yb.week=yb.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},yb.isoWeek=yb.isoWeeks=function(t){var e=Uf(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},yb.weeksInYear=function(){var t=this.localeData()._week;return Bf(this.year(),t.dow,t.doy)},yb.isoWeeksInYear=function(){return Bf(this.year(),1,4)},yb.date=bb,yb.day=yb.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},yb.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},yb.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},yb.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},yb.hour=yb.hours=cd,yb.minute=yb.minutes=mb,yb.second=yb.seconds=vb,yb.millisecond=yb.milliseconds=xb,yb.utcOffset=function(t,e,n){var i,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ld(bf,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=Wd(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==t&&(!e||this._changeInProgress?Xd(this,Gd(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,uh.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Wd(this)},yb.utc=function(t){return this.utcOffset(0,t)},yb.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Wd(this),"m")),this},yb.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ld(df,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},yb.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ed(t).utcOffset():0,(this.utcOffset()-t)%60==0)},yb.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},yb.isLocal=function(){return!!this.isValid()&&!this._isUTC},yb.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},yb.isUtc=Vd,yb.isUTC=Vd,yb.zoneAbbr=function(){return this._isUTC?"UTC":""},yb.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},yb.dates=Nh("dates accessor is deprecated. Use date instead.",bb),yb.months=Nh("months accessor is deprecated. Use month instead",Af),yb.years=Nh("years accessor is deprecated. Use year instead",Df),yb.zone=Nh("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),yb.isDSTShifted=Nh("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!dh(this._isDSTShifted))return this._isDSTShifted;var t={};if(zh(t,this),(t=Md(t))._a){var e=t._isUTC?xh(t._a):Ed(t._a);this._isDSTShifted=this.isValid()&&Oh(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var kb=Ph.prototype;function _b(t,e,n,i){var r=bd(),o=xh().set(i,e);return r[n](o,t)}function zb(t,e,n){if(bh(t)&&(e=t,t=void 0),t=t||"",null!=e)return _b(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=_b(t,i,n,"month");return r}function Cb(t,e,n,i){"boolean"==typeof t?(bh(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,bh(e)&&(n=e,e=void 0),e=e||"");var r,o=bd(),c=t?o._week.dow:0;if(null!=n)return _b(e,(n+c)%7,i,"day");var a=[];for(r=0;r<7;r++)a[r]=_b(e,(r+c)%7,i,"day");return a}kb.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return Yh(i)?i.call(e,n):i},kb.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},kb.invalidDate=function(){return this._invalidDate},kb.ordinal=function(t){return this._ordinal.replace("%d",t)},kb.preparse=wb,kb.postformat=wb,kb.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return Yh(r)?r(t,e,n,i):r.replace(/%d/i,t)},kb.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return Yh(n)?n(e):n.replace(/%s/i,e)},kb.set=function(t){var e,n;for(n in t)Yh(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},kb.months=function(t,e){return t?hh(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Nf).test(e)?"format":"standalone"][t.month()]:hh(this._months)?this._months:this._months.standalone},kb.monthsShort=function(t,e){return t?hh(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Nf.test(e)?"format":"standalone"][t.month()]:hh(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},kb.monthsParse=function(t,e,n){var i,r,o;if(this._monthsParseExact)return Rf.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=xh([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},kb.monthsRegex=function(t){return this._monthsParseExact?(vh(this,"_monthsRegex")||$f.call(this),t?this._monthsStrictRegex:this._monthsRegex):(vh(this,"_monthsRegex")||(this._monthsRegex=Ff),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},kb.monthsShortRegex=function(t){return this._monthsParseExact?(vh(this,"_monthsRegex")||$f.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(vh(this,"_monthsShortRegex")||(this._monthsShortRegex=Pf),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},kb.week=function(t){return Uf(t,this._week.dow,this._week.doy).week},kb.firstDayOfYear=function(){return this._week.doy},kb.firstDayOfWeek=function(){return this._week.dow},kb.weekdays=function(t,e){var n=hh(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Gf(n,this._week.dow):t?n[t.day()]:n},kb.weekdaysMin=function(t){return!0===t?Gf(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},kb.weekdaysShort=function(t){return!0===t?Gf(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},kb.weekdaysParse=function(t,e,n){var i,r,o;if(this._weekdaysParseExact)return Xf.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=xh([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},kb.weekdaysRegex=function(t){return this._weekdaysParseExact?(vh(this,"_weekdaysRegex")||ed.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(vh(this,"_weekdaysRegex")||(this._weekdaysRegex=Qf),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},kb.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(vh(this,"_weekdaysRegex")||ed.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(vh(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Jf),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},kb.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(vh(this,"_weekdaysRegex")||ed.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(vh(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=td),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},kb.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},kb.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},fd("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===Mh(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),uh.lang=Nh("moment.lang is deprecated. Use moment.locale instead.",fd),uh.langData=Nh("moment.langData is deprecated. Use moment.localeData instead.",bd);var Sb=Math.abs;function Db(t,e,n,i){var r=Gd(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function jb(t){return t<0?Math.floor(t):Math.ceil(t)}function Mb(t){return 4800*t/146097}function Ob(t){return 146097*t/4800}function Eb(t){return function(){return this.as(t)}}var Nb=Eb("ms"),Tb=Eb("s"),Ib=Eb("m"),Rb=Eb("h"),Yb=Eb("d"),Ab=Eb("w"),Pb=Eb("M"),Fb=Eb("Q"),$b=Eb("y");function Lb(t){return function(){return this.isValid()?this._data[t]:NaN}}var Hb=Lb("milliseconds"),Wb=Lb("seconds"),Vb=Lb("minutes"),Ub=Lb("hours"),Bb=Lb("days"),Gb=Lb("months"),qb=Lb("years"),Kb=Math.round,Zb={ss:44,s:45,m:45,h:22,d:26,M:11};function Xb(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}var Qb=Math.abs;function Jb(t){return(t>0)-(t<0)||+t}function tm(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Qb(this._milliseconds)/1e3,i=Qb(this._days),r=Qb(this._months);t=jh(n/60),e=jh(t/60),n%=60,t%=60;var o=jh(r/12),c=r%=12,a=i,l=e,s=t,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var f=h<0?"-":"",d=Jb(this._months)!==Jb(h)?"-":"",b=Jb(this._days)!==Jb(h)?"-":"",m=Jb(this._milliseconds)!==Jb(h)?"-":"";return f+"P"+(o?d+o+"Y":"")+(c?d+c+"M":"")+(a?b+a+"D":"")+(l||s||u?"T":"")+(l?m+l+"H":"")+(s?m+s+"M":"")+(u?m+u+"S":"")}var em=Yd.prototype;em.isValid=function(){return this._isValid},em.abs=function(){var t=this._data;return this._milliseconds=Sb(this._milliseconds),this._days=Sb(this._days),this._months=Sb(this._months),t.milliseconds=Sb(t.milliseconds),t.seconds=Sb(t.seconds),t.minutes=Sb(t.minutes),t.hours=Sb(t.hours),t.months=Sb(t.months),t.years=Sb(t.years),this},em.add=function(t,e){return Db(this,t,e,1)},em.subtract=function(t,e){return Db(this,t,e,-1)},em.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=Lh(t))||"quarter"===t||"year"===t)switch(n=this._months+Mb(e=this._days+i/864e5),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Ob(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},em.asMilliseconds=Nb,em.asSeconds=Tb,em.asMinutes=Ib,em.asHours=Rb,em.asDays=Yb,em.asWeeks=Ab,em.asMonths=Pb,em.asQuarters=Fb,em.asYears=$b,em.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Mh(this._months/12):NaN},em._bubble=function(){var t,e,n,i,r,o=this._milliseconds,c=this._days,a=this._months,l=this._data;return o>=0&&c>=0&&a>=0||o<=0&&c<=0&&a<=0||(o+=864e5*jb(Ob(a)+c),c=0,a=0),l.milliseconds=o%1e3,t=jh(o/1e3),l.seconds=t%60,e=jh(t/60),l.minutes=e%60,n=jh(e/60),l.hours=n%24,c+=jh(n/24),a+=r=jh(Mb(c)),c-=jb(Ob(r)),i=jh(a/12),a%=12,l.days=c,l.months=a,l.years=i,this},em.clone=function(){return Gd(this)},em.get=function(t){return t=Lh(t),this.isValid()?this[t+"s"]():NaN},em.milliseconds=Hb,em.seconds=Wb,em.minutes=Vb,em.hours=Ub,em.days=Bb,em.weeks=function(){return jh(this.days()/7)},em.months=Gb,em.years=qb,em.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=function(t,e,n){var i=Gd(t).abs(),r=Kb(i.as("s")),o=Kb(i.as("m")),c=Kb(i.as("h")),a=Kb(i.as("d")),l=Kb(i.as("M")),s=Kb(i.as("y")),u=r<=Zb.ss&&["s",r]||r<Zb.s&&["ss",r]||o<=1&&["m"]||o<Zb.m&&["mm",o]||c<=1&&["h"]||c<Zb.h&&["hh",c]||a<=1&&["d"]||a<Zb.d&&["dd",a]||l<=1&&["M"]||l<Zb.M&&["MM",l]||s<=1&&["y"]||["yy",s];return u[2]=e,u[3]=+t>0,u[4]=n,Xb.apply(null,u)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},em.toISOString=tm,em.toString=tm,em.toJSON=tm,em.locale=eb,em.localeData=ib,em.toIsoString=Nh("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",tm),em.lang=nb,Zh("X",0,0,"unix"),Zh("x",0,0,"valueOf"),vf("x",ff),vf("X",/[+-]?\d+(\.\d{1,3})?/),wf("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))})),wf("x",(function(t,e,n){n._d=new Date(Mh(t))})),
|
|
12
|
+
//! moment.js
|
|
13
|
+
uh.version="2.24.0",lh=Ed,uh.fn=yb,uh.min=function(){var t=[].slice.call(arguments,0);return Id("isBefore",t)},uh.max=function(){var t=[].slice.call(arguments,0);return Id("isAfter",t)},uh.now=function(){return Date.now?Date.now():+new Date},uh.utc=xh,uh.unix=function(t){return Ed(1e3*t)},uh.months=function(t,e){return zb(t,e,"months")},uh.isDate=mh,uh.locale=fd,uh.invalid=kh,uh.duration=Gd,uh.isMoment=Dh,uh.weekdays=function(t,e,n){return Cb(t,e,n,"weekdays")},uh.parseZone=function(){return Ed.apply(null,arguments).parseZone()},uh.localeData=bd,uh.isDuration=Ad,uh.monthsShort=function(t,e){return zb(t,e,"monthsShort")},uh.weekdaysMin=function(t,e,n){return Cb(t,e,n,"weekdaysMin")},uh.defineLocale=dd,uh.updateLocale=function(t,e){if(null!=e){var n,i,r=ad;null!=(i=hd(t))&&(r=i._config),(n=new Ph(e=Ah(r,e))).parentLocale=ld[t],ld[t]=n,fd(t)}else null!=ld[t]&&(null!=ld[t].parentLocale?ld[t]=ld[t].parentLocale:null!=ld[t]&&delete ld[t]);return ld[t]},uh.locales=function(){return Th(ld)},uh.weekdaysShort=function(t,e,n){return Cb(t,e,n,"weekdaysShort")},uh.normalizeUnits=Lh,uh.relativeTimeRounding=function(t){return void 0===t?Kb:"function"==typeof t&&(Kb=t,!0)},uh.relativeTimeThreshold=function(t,e){return void 0!==Zb[t]&&(void 0===e?Zb[t]:(Zb[t]=e,"s"===t&&(Zb.ss=e-1),!0))},uh.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},uh.prototype=yb,uh.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const nm=Object.freeze({__proto__:null,default:uh});const im=class{constructor(t){e(this,t),this.change=n(this,"bcm-change",7),this.onChange=t=>{this.value=this.getValueObject(t.detail),this.change.emit(this.value)},this.getFormat=()=>{if(!this.format){const t=this.use12Hours?"hh":"HH",e=`${this.showSecond?`${t}:mm:ss`:this.showMinute?`${t}:mm`:`${t}`}${this.use12Hours?" a":""}`;switch(this.type){case"time":return`${e}`;case"date":default:return"DD/MM/YYYY";case"datetime":return`DD/MM/YYYY ${e}`;case"week":return"YYYY-wo";case"month":return"MM/YYYY";case"year":return"YYYY"}}return this.format},this.getValueObject=t=>this.range?this.getRangeValueObject(t):this.createValueObject(t),this.getRangeValueObject=t=>{const[e,n]=t._i||[],i=this.createValueObject(e),r=this.createValueObject(n);return Object.assign({isValid:i.isValid&&r.isValid,start:i,end:r,date:[i.date,r.date],timestamp:[i.timestamp,r.timestamp],value:`${i.value} - ${r.value}`},"time"===this.type&&{time:`${i.time} - ${r.time}`})},this.createValueObject=t=>t&&uh(t).isValid()?Object.assign({isValid:uh(t).isValid(),date:uh(t).toDate(),timestamp:uh(t).valueOf(),dateObject:{year:uh(t).year(),day:uh(t).date(),month:uh(t).month(),dayOfWeek:uh(t).day(),monthFirstDay:uh(t).startOf("month").day()},value:uh(t).format(this.getFormat())},"time"===this.type&&{time:uh(t).format(this.getFormat()),timeObject:{hour:uh(t).hour(),minute:uh(t).minute(),second:uh(t).second()}}):null,this._id=l.UID(),this.label=void 0,this.placeholder=void 0,this.size=u.Size.medium,this.fullWidth=!1,this.required=!1,this.clearable=!1,this.disabled=!1,this.noMargin=!1,this.caption=void 0,this.noCaption=!1,this.captionType=u.Status.default,this.captionError=void 0,this.name=void 0,this.value=void 0,this.type="date",this.format=void 0,this.range=!1,this.showTime=!1,this.showNow=!0,this.showHour=!0,this.showMinute=!0,this.showSecond=!1,this.use12Hours=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.hideDisabledOptions=!1,this.disabledTime=void 0,this.showToday=!0,this.disabledDates=void 0}async getValue(){return this.value}async get(){var t;return(null===(t=this.value)||void 0===t?void 0:t.timestamp)||null}async set(t){this.getPickerElement().set(t)}async setClear(){this.getPickerElement().set(null)}async resetCaption(){this.captionType="default",this.captionError=null}async getInput(){return this.el.querySelector("input")}async isValid(){var t;return(null===(t=this.getValueObject(this.value))||void 0===t?void 0:t.isValid)||!1}getPickerElement(){return this.el.querySelector("bcm-rc-picker")}render(){const{label:e,size:n,captionType:r,required:o,_id:c}=this;return t(i,{class:h("bcm-ui-element bcm-ui-input","tw-relative tw-m-0 tw-inline-flex tw-w-full tw-flex-col",{"tw-max-w-[256px]":!this.fullWidth,"tw-mb-2":!this.noMargin})},e&&t("bcm-label",{size:n,type:r,value:e,required:o,htmlFor:c}),t("bcm-rc-picker",{id:c+"-picker",class:h("w-full tw-flex"),onBcmRCPickerChange:t=>this.onChange(t),disabled:this.disabled,clearable:this.clearable,size:n,placeholder:this.placeholder,error:"error"===this.captionType,type:this.type,format:this.getFormat(),range:this.range,showToday:this.showToday,disabledDates:this.disabledDates,showTime:this.showTime,showNow:this.showNow,showHour:this.showHour,showMinute:this.showMinute,showSecond:this.showSecond,use12Hours:this.use12Hours,hourStep:this.hourStep,minuteStep:this.minuteStep,secondStep:this.secondStep,hideDisabledOptions:this.hideDisabledOptions,disabledTime:this.disabledTime}),t(m,{noCaption:this.noCaption,captionType:this.captionType,captionError:this.captionError,caption:this.caption}))}get el(){return r(this)}};!function(t,e,n,i){var r,o=arguments.length,c=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(c=(o<3?r(c):o>3?r(e,n,c):r(e,n))||c);o>3&&c&&Object.defineProperty(e,n,c)}([x()],im.prototype,"el",void 0);const rm=class{constructor(t){e(this,t),this._id=l.UID(),this.date=new Date,this.value=void 0,this.endDate=null,this.range=!1,this.hidden=!1,this.name=void 0,this.fullWidth=!1,this.required=!1,this.label=void 0,this.placeholder=void 0,this.disabledDates="",this.disabled=!1,this.noMargin=!1,this.noCaption=!1,this.caption="",this.captionError=void 0,this.captionType="default",this.alignment=void 0,this._internal_id=(4*Math.random()).toString(16).replace(".",""),this.placement=s.Placement["bottom-start"],this.linkedComponent=void 0,this.clearable=!1,this.stateStartDate=null,this.stateEndDate=null}handleStartDateChange(){this.handleDate()}handleEndDateChange(){this.handleDate()}handlePickerLoad(){this.value=this.picker.value}handlePickerChange(t){this.value=t.detail}async set(t){return this.picker.set(t)}async get(){var t;return(null===(t=this.value)||void 0===t?void 0:t.timestamp)||null}async setDisabled(t){this.disabled=t}async setClear(){return await this.picker.setClear(),await p(10),Promise.resolve()}async setStartDate(t){t?(t=z.convertTimeStampToDate(new Date(t).getTime()),this.stateStartDate=t):this.setClear()}async setEndDate(t){t?(t=z.convertTimeStampToDate(new Date(t).getTime()),this.stateEndDate=t):this.setClear()}handleDate(){this.range?this.stateStartDate&&this.stateEndDate&&this.set(this.stateStartDate+"-"+this.stateEndDate):this.set(this.stateStartDate)}async getInput(){return await this.picker.getInput()}async open(){return await this.picker.open()}async getValue(){return this.value}async isValid(){return await this.picker.isValid()}async resetCaption(){return await p(10),await this.picker.resetCaption(),this.captionType="default",this.captionError=null,await p(10),Promise.resolve()}render(){const e=h(this.hidden?"hidden":null,{"full-width":this.fullWidth,"linked-component":this.linkedComponent});return t(i,{class:e},t("bcm-datetime-picker",{"linked-component":this.linkedComponent,id:this._id,name:this.name,type:this.range?"range":"date",date:this.date,placeholder:this.placeholder,fullWidth:this.fullWidth,ref:t=>this.picker=t,required:this.required,clearable:this.clearable,label:this.label,"end-date":this.endDate,disabled:this.disabled,disabledDates:this.disabledDates,"on-bcm-load":()=>this.handlePickerLoad(),"on-bcm-change":t=>this.handlePickerChange(t),noCaption:this.noCaption,caption:this.caption,captionError:this.captionError,captionType:this.captionType,alignment:this.alignment,placement:this.placement,noMargin:this.noMargin}))}get el(){return r(this)}static get watchers(){return{stateStartDate:["handleStartDateChange"],stateEndDate:["handleEndDateChange"]}}};var om,cm,am;(function(t,e,n,i){var r,o=arguments.length,c=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(c=(o<3?r(c):o>3?r(e,n,c):r(e,n))||c);o>3&&c&&Object.defineProperty(e,n,c)})([x()],rm.prototype,"el",void 0),rm.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-flex;width:100%;max-width:256px}:host(.full-width){max-width:100%}:host(.hidden){display:none}:host(.linked-component){display:none}',function(t){t.january="january",t.february="february",t.march="march",t.april="april",t.may="may",t.june="june",t.july="july",t.august="august",t.september="september",t.october="october",t.november="november",t.december="december"}(om||(om={})),function(t){t.sunday="sunday",t.monday="monday",t.tuesday="tuesday",t.wednesday="wednesday",t.thursday="thursday",t.friday="friday",t.saturday="saturday"}(cm||(cm={})),function(t){t.datetime="datetime",t.range="range",t.date="date",t.time="time"}(am||(am={}));const lm=JSON.stringify,sm=class{constructor(t){e(this,t),this.load=n(this,"bcm-load",7),this.change=n(this,"bcm-change",7),this.bcmOpen=n(this,"bcm-open",7),this.inputId=null,this.emptyState=!1,this.initialized=!1,this.disabledDatesList={min:null,max:null,dates:[]},this.dayNumbers=[],this.valueText=null,this.dataIsValid=!1,this._id=l.UID(),this.date=new Date,this.endDate=null,this.type=am.datetime,this.disabled=!1,this.disabledDates="",this.value=null,this._open=!1,this.hidden=!1,this.name=void 0,this.fullWidth=!1,this.required=!1,this.label=void 0,this.placeholder=void 0,this.minYear=1900,this.maxYear=2200,this.noCaption=!1,this.noMargin=!1,this.captionError=void 0,this.caption="",this.captionType="default",this.alignment=void 0,this.placement=s.Placement["bottom-start"],this.linkedComponent=void 0,this.clearable=!1,this.years=[],this.hours=[],this.minutes=[],this.hasDateModule=!1,this.hasTimeModule=!1,this.renderDate=void 0,this.selectedDate=void 0,this.selectedEndDate=void 0,this.error=!1,this.errorText="",this.tick={}}markForCheck(){this.tick=l.UID()}openChanged(){this.bcmOpen.emit(this._open)}componentWillLoad(){if(this.inputId="picker-input-"+this._id,this.hasDateModule=this.type===am.datetime||this.type===am.date||this.type===am.range,this.hasTimeModule=this.type===am.datetime||this.type===am.time,this.prepareDisabledDates(),this.setData(),!this.initialized){for(let t=this.minYear;t<=this.maxYear;t++)this.years.push(t);for(let t=0;t<=23;t++)this.hours.push(t);for(let t=0;t<=59;t++)this.minutes.push(t);this.load.emit()}this.initialized=!0}componentDidRender(){this.hasDateModule&&!this.yearsDragger&&(this.createDragSelection("years",this.yearsElement,this.yearsWrapperElement,this.yearsStripElement,j.y),this.createWheelChange("years",this.yearsWrapperElement,this.yearsStripElement),this.setDragSelection("years",this.currentDate.year)),this.hasTimeModule&&!this.hoursDragger&&(this.createDragSelection("hours",this.hoursElement,this.hoursWrapperElement,this.timeStripElement,j.y),this.createWheelChange("hours",this.hoursWrapperElement,this.timeStripElement),this.setDragSelection("hours",this.currentDate.hour)),this.hasTimeModule&&!this.minutesDragger&&(this.createDragSelection("minutes",this.minutesElement,this.minutesWrapperElement,this.timeStripElement,j.y),this.createWheelChange("minutes",this.minutesWrapperElement,this.timeStripElement),this.setDragSelection("minutes",this.currentDate.minute))}renderDateChange(){this.initialized&&(this.setData(),this.hasDateModule&&this.setDragSelection("years",this.currentDate.year))}openChange(t){t&&(this.calculateLocation(),this.hasDateModule&&(this.createDragSelection("years",this.yearsElement,this.yearsWrapperElement,this.yearsStripElement,j.y),this.createWheelChange("years",this.yearsWrapperElement,this.yearsStripElement),this.setDragSelection("years",this.currentDate.year)),this.hasTimeModule&&(this.createDragSelection("hours",this.hoursElement,this.hoursWrapperElement,this.timeStripElement,j.y),this.createWheelChange("hours",this.hoursWrapperElement,this.timeStripElement),this.setDragSelection("hours",this.currentDate.hour,!0)),this.hasTimeModule&&(this.createDragSelection("minutes",this.minutesElement,this.minutesWrapperElement,this.timeStripElement,j.y),this.createWheelChange("minutes",this.minutesWrapperElement,this.timeStripElement),this.setDragSelection("minutes",this.currentDate.minute,!0)),this.markForCheck(),o(this.el))}valueChange(t,e){const n={isValid:!1,value:this.valueText};if(t)if(this.type!==am.range&&this.error)this.change.emit({isValid:!1,value:this.inputElement.value});else try{if((e&&lm(t.dateObject)!==lm(e.dateObject)||!e&&t)&&(this.type!==am.date&&this.type!==am.datetime||this.change.emit(t),this.type===am.time&&this.change.emit(t),this.type===am.range)){const e=t.dateObject;e.start.date&&e.end.date?t.isValid&&this.change.emit({isValid:t.isValid,value:t.value,start:e.start,end:e.end}):this.change.emit(n)}}catch(t){}else this.change.emit()}disabledDatesChange(t){t&&this.prepareDisabledDates()}stringToDate(t){return t.getMonth?t:new Date(Date.parse(this.switchDDMM(t)))}dateToString(t){if(!(t instanceof Date))return!1}switchDDMM(t){if(!t)return;const e=t.split("/");return-1===t.indexOf("/")||3!==e.length?t:`${e[1]}/${e[0]}/${e[2]}`}setData(){this.date=this.stringToDate(this.date),this.initialized||this.renderDate||(this.renderDate=this.date&&this.date||new Date),!this.initialized&&this.endDate&&(this.selectedEndDate=this.stringToDate(this.endDate));const t=this.renderDate;if(this.currentDate=this.createDateObject(t),this.dayNumbers=this.getMonthDayNumbers(t).map((e=>({day:e,thisMonth:!0,isWeekend:this.getDayIsWeekend(t,e),today:this.getIsCurrentDate(t,e),date:this.getTargetDayDate(t,e)}))),this.currentDate.year>this.minYear){let e=new Date(new Date(t).setMonth(this.currentDate.month-1,1)),n=this.getMonthDayNumbers(e).reverse(),i=this.currentDate.monthFirstDay;for(let t=1;t<(0===i?7:i);t++){const i=n[t-1];this.dayNumbers.unshift({day:i,prevMonth:!0,isWeekend:this.getDayIsWeekend(e,i),date:this.getTargetDayDate(e,i)})}}if(this.currentDate.year<this.maxYear){let e=new Date(new Date(t).setMonth(this.currentDate.month+1)),n=this.getMonthDayNumbers(e),i=42-this.dayNumbers.length;for(let t=0;t<i;t++){const i=n[t];this.dayNumbers.push({day:i,nextMonth:!0,isWeekend:this.getDayIsWeekend(e,i),date:this.getTargetDayDate(e,i)})}}this.emptyState||(this.valueText=this.getValueText()),o(this.el)}prepareDisabledDates(){if(!this.disabledDates)return;let t=null;if("string"==typeof this.disabledDates)try{t=JSON.parse(this.disabledDates)}catch(t){return}else t=this.disabledDates;if(t.dates&&t.dates.length&&t.dates.length){const e=t.dates.map((t=>{const e=new Date(t);return"invalid date"===e.toString().toLowerCase()?null:e})).filter((t=>t));this.disabledDatesList.dates=e}if(t.min&&t.max&&(t.min.getTime()>t.max.getTime()||t.max.getTime()<t.min.getTime()))return;t.min&&t.min instanceof Date?this.disabledDatesList.min=new Date(t.min.toDateString()):delete this.disabledDatesList.min,t.max&&t.max instanceof Date?this.disabledDatesList.max=new Date(t.max.toDateString()):delete this.disabledDatesList.max;const e=this.inputElement&&this.inputElement.value;e&&this.setDataFromText(e)}createWheelChange(t,e,n){e.addEventListener("wheel",(e=>{const i=e.deltaY>0,r=this[t+"Dragger"].getOffset().top,o=this.getTargetChildByDragPosition({y:r},n);let c=i?o+1:o-1;c<0?c=0:void 0===this[t][c]&&(c=this[t].length-1),"time"!=this.type||this.selectedDate||this.setTime(),this.setDragSelection(t,this[t][c],!0,!0)}))}createDragSelection(t,e,n,i,r){const o=t+"Dragger";this[o]=new M({target:e,trigger:n,direction:r,useTransform:!0,limit:{y:{max:i.offsetTop-i.offsetHeight/2,min:-1*(e.offsetHeight-(i.offsetTop+i.offsetHeight/2))}}}),this[o].on("end",(e=>{const n=this.getTargetChildByDragPosition(e,i);this.selectTargetChildByDragIdx(n,i,this[o]),this.setDragSelection(t,this[t][n],!1)}))}getTargetChildByDragPosition({y:t},e){const n=e.offsetHeight,i=n/2;return Math.floor(-(t-(e.offsetTop-i)-i)/n)}selectTargetChildByDragIdx(t,e,n,i=!0){n.setPosition({y:e.offsetHeight/2+e.offsetTop-(t+1)*e.offsetHeight,anim:i})}setDragSelection(t,e,n=!0,i=!1){const r=this[t].findIndex((t=>t===e));switch(n&&this.selectTargetChildByDragIdx(r,this["years"===t?t+"StripElement":"timeStripElement"],this[t+"Dragger"],i),t){case"years":this.date.setFullYear(e);break;case"hours":this.date.setHours(e);break;case"minutes":this.date.setMinutes(e)}this.renderDate=this.date,this.setData(),this.selectedDate&&this.setValue()}getHours12(){const t=(this.date.getHours()+24)%12||12;return t>12?t-12:t}createDateObject(t,{excludeTime:e=!1,exactMonthNumber:n=!1}={}){const i=t.getFullYear();return Object.assign(Object.assign({year:i>=this.maxYear?this.maxYear:i<=this.minYear?this.minYear:i,day:t.getDate(),month:t.getMonth()+(n?1:0),dayOfWeek:t.getDay(),monthFirstDay:new Date(new Date(t).setDate(1)).getDay()},!e&&{hour:t.getHours()}),!e&&{minute:t.getMinutes()})}generateDaysArrayFromMax(t){return Array.from(Array(t+1).keys()).slice(1)}getMonthDayNumbers(t){const e=this.getDaysInMonth(t.getMonth(),t.getFullYear());return this.generateDaysArrayFromMax(e)}getTargetDayDate(t,e){return new Date(new Date(t).setDate(e))}getDayIsWeekend(t,e){const n=new Date(new Date(t).setDate(e)).getDay();return 6===n||0===n}getClock(t){return{hours:(t=t||new Date).getHours(),minutes:t.getMinutes(),seconds:t.getSeconds(),milis:t.getMilliseconds()}}setValue(t){var e,n,i;const r=new Date(this.date.setHours(Number(this.currentDate.hour),Number(this.currentDate.minute)));if(t)this.value=null;else{if(this.dataIsValid=!0,this.type===am.datetime){const t=Object.assign({},this.currentDate);t.month+=1,(null===(e=this.value)||void 0===e?void 0:e.value)!=this.valueText&&(this.value={isValid:this.dataIsValid,date:r,timestamp:r.getTime(),dateObject:t,value:this.valueText})}if(this.type===am.date){const t=Object.assign({},this.currentDate);delete t.hour,delete t.minute,t.month+=1,(null===(n=this.value)||void 0===n?void 0:n.value)!=this.valueText&&(this.value={isValid:this.dataIsValid,date:r,timestamp:r.getTime(),dateObject:t,value:this.valueText})}if(this.type===am.time){const t=this.getTimeText(),e=Object.assign({},this.currentDate);e.month+=1,this.value={isValid:this.dataIsValid,date:r,timestamp:r.getTime(),time:t,dateObject:e,timeObject:{hours:this.currentDate.hour,minutes:this.currentDate.minute},value:t},this.inputElement.value=t}this.type===am.range&&(null===(i=this.value)||void 0===i?void 0:i.value)!=this.valueText&&(this.value={isValid:this.dataIsValid,dateObject:{start:Object.assign({},this.selectedDate&&{date:this.selectedDate,timestamp:this.selectedDate.getTime(),detail:this.createDateObject(this.selectedDate,{excludeTime:!0,exactMonthNumber:!0})}),end:Object.assign({},this.selectedEndDate&&{date:this.selectedEndDate,timestamp:this.selectedEndDate.getTime(),detail:this.createDateObject(this.selectedEndDate,{excludeTime:!0,exactMonthNumber:!0})})},value:this.valueText})}}setMonth(t){this.renderDate.setDate(1),this.renderDate=new Date(this.renderDate.setMonth(t)),this.setDragSelection("years",this.currentDate.year)}checkRangeValidation({popupClosing:t=!1}={}){return this.type!==am.range||(t&&(!this.selectedDate||this.selectedDate&&!this.selectedEndDate)?(this.setError(!0,"date range invalid"),!1):(t||this.setError(!1),!0))}pad(t,e){return t<e?"0":""}isInputClearable(){return!(!this.inputElement||!this.inputElement.value)}isDisabledDate(t){if(this.disabledDatesList.dates.map((e=>this.isSameDate(e,t))).filter((t=>t)).length)return!0;if(this.disabledDatesList.min){const e=new Date(this.disabledDatesList.min);if(e&&e.getTime()>t.getTime())return!0}if(this.disabledDatesList.max){const e=new Date(this.disabledDatesList.max);if(e&&new Date(e.setDate(e.getDate()+1)).getTime()<t.getTime())return!0}}setDate(t,e,n=!1){const i=this.type===am.range,r=!!this.selectedEndDate;if((this.type!==am.date&&this.type!==am.datetime||!this.isDisabledDate(t))&&(this.emptyState=!1,(!i||i&&!r)&&(this.date=new Date(t.setHours(this.currentDate.hour,this.currentDate.minute))),i&&this.checkRangeValidation(),i&&this.selectedDate&&this.selectedEndDate&&(this.selectedDate=null,this.selectedEndDate=null),e)){const e=new Date(t);i&&this.selectedDate?this.selectedDate.getTime()>e.getTime()?(this.selectedEndDate=this.selectedDate)&&(this.selectedDate=e):this.selectedEndDate=e:this.selectedDate=e,!i&&(this._open=n),this.renderDate=this.date,this.valueText=this.getValueText(),this.setValue();const r=this.valueText.split("/"),o=this.valueText?this.changeFormat(new Date(r[1]+"/"+r[0]+"/"+r[2])):"";this.inputElement.value=o}}setDataFromText(t,e=!1,n=!0){let i=!1,r="";const o=this.parse(t);if(this.type!==am.date&&this.type!==am.datetime||!this.isDisabledDate(o.date)||(o.dateIsValid=!1,r="disabled-date"),this.type===am.datetime&&o.dateIsValid&&o.timeIsValid&&(e&&this.setDate(o.date,!0,n),e&&this.setTime(o.timeSections[0],o.timeSections[1]),i=!0),this.type===am.date&&o.dateIsValid&&(e&&this.setDate(o.date,!0,n),i=!0),this.type===am.time&&o.timeIsValid&&(e&&this.setTime(o.timeSections[0],o.timeSections[1]),i=!0),this.type===am.range&&(o.dateIsValid&&!this.selectedDate&&(e&&this.setDate(o.date,!0,n),i=!0),o.date2IsValid&&!this.selectedEndDate&&(e&&this.setDate(o.date2,!0,n),i=!0),this.selectedDate&&this.selectedEndDate&&o.rangeIsValid&&(this.isSameDate(o.date2,this.selectedEndDate)&&!this.isSameDate(o.date,this.selectedDate)&&(this.selectedDate=null,e&&this.setDate(o.date,!0,n),i=!0),this.isSameDate(o.date,this.selectedDate)&&!this.isSameDate(o.date2,this.selectedEndDate)&&(this.selectedEndDate=null,e&&this.setDate(o.date2,!0,n),i=!0)),this.selectedDate&&this.selectedEndDate&&!o.rangeIsValid&&e&&(this.selectedDate=null,this.selectedEndDate=null)),i)e&&(this.renderDate=this.date),this.setError(!1);else{this.type===am.range&&this.selectedDate&&this.selectedEndDate&&o.rangeIsValid?this.setError(!1):r?this.setError(!0,"disabled-date"===r&&"selected date is not allowed"):(t&&this.setError(!0,(this.type===am.datetime?"invalid date or time":this.type===am.range&&"invalid date range")||this.type===am.date&&"The selected date is not allowed."||this.type===am.time&&"invalid time"),this.setValue(!0));const e=t.split("/"),n=t&&!this.error?this.changeFormat(new Date(e[1]+"/"+e[0]+"/"+e[2])):"";this.inputElement.value=n}}setDateToday(){const t=new Date;this.type===am.range&&(this.selectedDate=null,this.selectedEndDate=null),this.setDate(t,!0,!1)}HourContentDblClick(t){const e=l.findEventPathWithNodeName(t,"SPAN");e&&e.classList.contains("selected")&&(this.setValue(),this._open=!1)}setTime(t,e){this.renderDate=new Date(this.date.setHours(Number(t||this.getClock().hours),Number(e||this.getClock().minutes))),this.type===am.time&&(this.selectedDate=this.date);const n=this.currentDate.hour||(new Date).getHours(),i=this.currentDate.minute||(new Date).getMinutes();this.setDragSelection("hours",n,!0,!0),this.setDragSelection("minutes",i,!0,!0)}setError(t=!1,e=""){this.error=t,this.errorText=t?e:""}getError(){const{error:t,errorText:e}=this;return{valid:!t,error:t,errorText:e}}getDaysInMonth(t,e){return new Date(e,t+1,0).getDate()}getIsCurrentDate(t,e){const n=new Date;return n.getDate()===e&&n.getMonth()===t.getMonth()&&n.getFullYear()===t.getFullYear()}isSameDate(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}getSelected(t,e=!1){const n=new Date(this["selected"+(e?"EndDate":"Date")]),i=n.getFullYear(),r=n.getMonth(),o=n.getDate();return t.getDate()===o&&t.getMonth()===r&&t.getFullYear()===i}getDateIsInRange(t){if(this.type!==am.range||!this.selectedDate||!this.selectedEndDate)return;const e=t.getTime(),n=this.selectedDate.getTime(),i=this.selectedEndDate.getTime();return e>n&&e<i}getMonthText(){return Object.values(om)[this.renderDate.getMonth()]}getCurrentDateText(){const t=Object.values(cm)[this.currentDate.dayOfWeek],e=Object.values(om)[this.currentDate.month];return`${t}, ${this.currentDate.day}th ${e} ${this.currentDate.year}`}getTimeText(){const{hour:t,minute:e}=this.currentDate;return`${t<10?"0"+t:t}:${e<10?"0"+e:e}`}getValueText(){if(!this.selectedDate)return"";const t=this.selectedDate,e=t.getFullYear(),n=t.getDate(),i=t.getMonth()+1;let r="";if(this.type!==am.date&&this.type!==am.datetime||(r=`${n<10?"0"+n:n}/${i<10?"0"+i:i}/${e}`),this.type===am.time&&(r=this.getTimeText()),this.type===am.datetime&&(r=`${r} ${this.getTimeText()}`),this.type===am.range&&(r=`${n<10?"0"+n:n}/${i<10?"0"+i:i}/${e}`),this.type===am.range&&this.selectedEndDate){const t=this.selectedEndDate,e=t.getFullYear(),n=t.getDate(),i=t.getMonth()+1;r+=`-${n<10?"0"+n:n}/${i<10?"0"+i:i}/${e}`}return this.setDataFromText(r),r}parseDate(t){var e=t.split("/"),n=parseInt(e[0],10),i=parseInt(e[1],10)-1,r=parseInt(e[2],10);if(isNaN(n)||isNaN(i)||isNaN(r))return"invalid date";var o=new Date(r,i,n);return o.getDate()!==n||o.getMonth()!==i||o.getFullYear()!==r?"invalid date":o}parse(t){const e=t.split(this.type===am.range?"-":" "),n=this.switchDDMM(e[0]),i=this.switchDDMM(e[1]),r=this.type===am.datetime?e[1]:e[0],o=new Date(n),c=new Date(i),a="invalid date"!==o.toString().toLowerCase()&&"invalid date"!==this.parseDate(t),l="invalid date"!==c.toString().toLowerCase(),s=/^((0?[1-9]|1[0-2])(-|\/)(0?[1-9]|[12]\d|3[01])(-|\/)[12]\d{3})$/,u=s.test(n),h=s.test(i),f=/\b([01][0-9]|2[0-3]):([0-5][0-9])\b/.test(r),d=a&&u,b=l&&h;return{date:o,date2:c,timeSections:f?r.split(":"):"",dateIsValid:d,date2IsValid:b,rangeIsValid:d&&b,timeIsValid:f}}getPrevMonth(){this.setMonth(this.renderDate.getMonth()-1)}getNextMonth(){this.setMonth(this.renderDate.getMonth()+1)}yearClick(t){this.yearsDragger.busy||this.setDragSelection("years",this.years[t],!0,!0)}hourClick(t){this.hoursDragger.busy||(this.selectedDate||this.setTime(),this.setDragSelection("hours",this.hours[t],!0,!0))}minuteClick(t){this.minutesDragger.busy||(this.selectedDate||this.setTime(),this.setDragSelection("minutes",this.minutes[t],!0,!0))}openPicker(){this.disabled||!this._open&&(this._open=!0)}handleDayNumber(t){this.type===am.range&&this.selectedDate&&!this.selectedEndDate&&this.isSameDate(this.selectedDate,t)||this.setDate(t,!0)}handleInputInput(t){this.setDataFromText(t,!0)}handleInputChange(t){this.setDataFromText(this.inputElement.value,!0,!1),t.stopPropagation()}async handleInputClear(){return this.selectedDate=null,this.selectedEndDate=null,this.emptyState=!0,this.renderDate=new Date,this._open=!1,this.setValue(!0),this.setError(),this.getValueText(),await this.inputElement.setClear(),await p(10),Promise.resolve()}handleWheel(t){t.preventDefault()}handleWindowClick(t){if(this._open){const e=document.getElementById(`picker-vp-${this._id}`),n=l.findEventPath(t,this.el),i=!!e&&l.findEventPath(t,e);n||i||(this._open=!1)}}openToggle(){this.disabled||(this._open=!this._open)}async open(){await p(50),this.openToggle()}async close(){this._open=!1}async getValue(){return this.value}async setDisabled(t){this.disabled=t}changeFormat(t,e=!1){if(!t)return;const n=t=>t<10?`0${t}`:t,i=n(new Date(t).getDate()),r=n(new Date(t).getMonth()+1),o=new Date(t).getFullYear(),c=n(new Date(t).getHours()),a=n(new Date(t).getMinutes());return"range"==this.type||"date"==this.type?e?`${r}/${i}/${o}`:`${i}/${r}/${o}`:e?`${r}/${i}/${o} ${c}:${a}`:`${i}/${r}/${o} ${c}:${a}`}isTime(t){return/^([0-1]?[0-9]|2[0-4]):([0-5][0-9])(:[0-5][0-9])?$/.test(t)}getHHMM(t){if(!t)return;const e=t=>t<10?`0${t}`:t;return`${e(new Date(t).getHours())}:${e(new Date(t).getMinutes())}`}async set(t){if(t)if("number"==typeof t&&(t=new Date(t)),"time"==this.type){let e=t;this.isTime(t)||(e=this.getHHMM(t)),this.setDataFromText(e,!0,!1)}else{const n=t.toString().split("-"),i=Date.parse(n[0]);if(n[0]&&!isNaN(i)){var e=this.changeFormat(z.convertTimeStampToDate(new Date(n[0]).getTime()));n[1]&&!isNaN(Date.parse(n[1]))&&(e=e+"-"+this.changeFormat(z.convertTimeStampToDate(new Date(n[1]).getTime()))),this.setDataFromText(e,!0,!1)}else this.setDataFromText("",!0,!1)}else this.setClear()}async get(){var t;return(null===(t=this.value)||void 0===t?void 0:t.timestamp)||null}async setClear(){return await this.handleInputClear(),Promise.resolve()}async getInput(){return this.inputElement}async isValid(){return this.getError()}async resetCaption(){return await p(10),await this.inputElement.resetCaption(),this.captionType="default",this.captionError=null,await p(10),Promise.resolve()}addZeroBefore(t){return(t<10?"0":"")+t}formatDate(t,e){const n={mm:this.addZeroBefore(t.getMonth()+1),dd:this.addZeroBefore(t.getDate()),yyyy:this.addZeroBefore(t.getFullYear()),hh:this.addZeroBefore(t.getHours()),mi:this.addZeroBefore(t.getMinutes())};return e.replace(/mm|dd|yyyy|hh|mi/gi,(t=>n[t]))}handleResize(){this.calculateLocation()}handleWheels(t){if(this._open){const e=document.querySelector(`#picker-vp-${this._id}`);e&&l.findEventPath(t,e)?this.calculateLocation():this._open=!1}}componentDidLoad(){const t=this.el.shadowRoot.querySelector(`#picker-vp-${this._id}`);t&&(document.body.appendChild(t),this.calculateLocation())}disconnectedCallback(){this.el.innerHTML="";const t=document.getElementById(`picker-vp-${this._id}`);t&&t.remove()}async calculateLocation(){const t=document.getElementById(`picker-vp-${this._id}`),e=this.placement.split("-");this.alignment&&(this.placement=e[0]+("right"==this.alignment?"-end":"-start"));var n=this.placement;const i=document.getElementById(this.linkedComponent?this.linkedComponent:this._id);if(i){const e=this.linkedComponent?i:i.shadowRoot.querySelector(`#picker-input-${this._id}`)||i.shadowRoot.querySelector("bcm-datetime-picker").shadowRoot.querySelector(`#picker-input-${this._id}`);if(t&&e){O(t,e,n,(t=>n=t)),await p(10);let i=E(n,e),r=this.noCaption?0:20,o=0;switch(O(t,e,n,(t=>n=t)),await p(10),i=E(n,e),t.style.top=this.linkedComponent?("top"==n.split("-")[0]?i[0]-t.offsetHeight:i[0])+"px":("top"==n.split("-")[0]?i[0]-t.offsetHeight+o:i[0]-r)+"px",n.split("-")[1]){case"start":t.style.left=i[1]+"px";break;case"center":t.style.left=i[1]-t.offsetWidth/2+"px";break;case"end":t.style.left=i[1]-t.offsetWidth+"px"}t.classList.toggle("bcm-list--top","top"==n.split("-")[0])}}}handleKeyDown(t){(t.keyCode||t.which)===s.KeyCode.escape&&this._open&&(this._open=!1,t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this.markForCheck())}render(){const e=h("day-numbers"),n=h("datetime-picker","datetime-picker-wrapper",{open:this._open,"no-caption":this.noCaption}),r=h(this.hidden?"hidden":null,{"full-width":this.fullWidth,"linked-component":this.linkedComponent,"no-margin":this.noMargin}),o=h("toggle",{disabled:this.disabled}),c="time"==this.type?'<svg style="fill: #595959; width: 14px; height: 14px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"/></svg>':'<svg style="fill: #595959; width: 14px; height: 14px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>';return t(i,{class:r,"bcm-internal-id":this.inputId},this.label&&t("div",{class:"picker-label",onClick:()=>this.openToggle()},t(N,{size:"medium",type:this.captionType,value:this.label,required:this.required,htmlFor:this._id})),t("bcm-old-input",{ref:t=>this.inputElement=t,placeholder:this.placeholder||"Select "+(this.type===am.datetime?"date and time":"")+(this.type===am.date?"date":"")+(this.type===am.time?"time":"")+(this.type===am.range?"date range":""),value:this.valueText,required:this.required,fullWidth:this.fullWidth,disabled:this.disabled,name:this.name,id:this.inputId,clearable:this.clearable,onClick:()=>this.openPicker(),"no-margin":!0,disableWatchValue:!0,"on-bcm-clear":()=>this.handleInputClear(),"on-bcm-change":t=>this.handleInputChange(t),noCaption:this.noCaption,captionError:this.captionError,caption:this.caption,captionType:this.captionType},this.error&&t("span",{slot:"suffix"},t("span",{id:"error-icon",class:o,innerHTML:'<svg style="fill: #ef4444; width: 14px; height: 14px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm42-104c0 23.2-18.8 42-42 42s-42-18.8-42-42 18.8-42 42-42 42 18.8 42 42zm-81.4-211.4l6.8 136c.3 6.4 5.6 11.4 12 11.4h41.2c6.4 0 11.7-5.1 12-11.4l6.8-136c.3-6.9-5.1-12.6-12-12.6h-54.8c-6.9 0-12.4 5.7-12 12.6z"/></svg>',title:this.errorText})),t("span",{slot:"suffix",onClick:()=>this.openPicker()},t("span",{id:"calender-icon",class:o,innerHTML:c}))),t("div",{id:"picker-vp-"+this._id,class:n,onWheel:t=>this.handleWheel(t)},t("div",{class:"modules"},this.hasDateModule&&t("div",{class:"date-container"},t("div",{class:"bcm-datetime-picker__header"},t("span",null),t("div",{class:"month-year"},t("button",{onClick:()=>this.getPrevMonth()},t("bcm-icon",{icon:"far fa-chevron-left"})),t("div",{class:"month-year-wrapper"},t("span",{class:"month"},this.getMonthText()),",",t("span",{class:"year"},this.date.getFullYear())),t("button",{onClick:()=>this.getNextMonth()},t("bcm-icon",{icon:"far fa-chevron-right"}))),t("span",{class:"today",onClick:()=>this.setDateToday()},"Today")),t("div",{class:"bcm-datetime-picker__content"},t("div",{class:"years",ref:t=>this.yearsWrapperElement=t},t("div",{class:"items",ref:t=>this.yearsElement=t},this.years.map(((e,n)=>t("span",{onClick:()=>this.yearClick(n)},e)))),t("div",{class:"select-strip",ref:t=>this.yearsStripElement=t})),t("div",{class:"days"},t("div",{class:"day-labels"},t("span",null,"Mo"),t("span",null,"Tu"),t("span",null,"We"),t("span",null,"Th"),t("span",null,"Fr"),t("span",null,"Sa"),t("span",null,"Su")),t("div",{class:e},this.dayNumbers.map((e=>t("span",{class:{"is-disabled-date":(this.type===am.date||this.type===am.datetime)&&this.isDisabledDate(e.date),"not-this-month":!e.thisMonth,"is-weekend":e.isWeekend,today:e.today,selected:this.getSelected(e.date),"selected-start":this.getSelected(e.date)&&this.selectedEndDate&&this.type===am.range,"selected-end":this.getSelected(e.date,!0)&&this.type===am.range,range:this.getDateIsInRange(e.date)&&this.type===am.range},onClick:()=>this.handleDayNumber(e.date)},t("span",{class:"number"},e.day)))))))),this.hasTimeModule&&t("div",{class:"time-container"},t("div",{class:"bcm-datetime-picker__header"},t("div",{class:"month-year"},t("span",{class:"month"},this.getTimeText())),t("span",{class:"now",onClick:()=>{this.setTime(),"time"==this.type&&(this._open=!1)}},"Now")),t("div",{class:"bcm-datetime-picker__content",onDblClick:t=>{this.HourContentDblClick(t)}},t("div",{class:"hours",ref:t=>this.hoursWrapperElement=t},t("div",{class:"items",ref:t=>this.hoursElement=t},this.hours.map(((e,n)=>t("span",{class:this.currentDate.hour===e?"selected":"",onClick:()=>this.hourClick(n)},(e<10&&"0")+e))))),t("div",{class:"minutes",ref:t=>this.minutesWrapperElement=t},t("div",{class:"items",ref:t=>this.minutesElement=t},this.minutes.map(((e,n)=>t("span",{class:this.currentDate.minute===e?"selected":"",onClick:()=>this.minuteClick(n)},(e<10&&"0")+e))))),t("div",{class:"select-strip",ref:t=>this.timeStripElement=t}))))))}get el(){return r(this)}static get watchers(){return{_open:["openChanged","openChange"],renderDate:["renderDateChange"],value:["valueChange"],disabledDates:["disabledDatesChange"]}}};(function(t,e,n,i){var r,o=arguments.length,c=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(c=(o<3?r(c):o>3?r(e,n,c):r(e,n))||c);o>3&&c&&Object.defineProperty(e,n,c)})([x()],sm.prototype,"el",void 0),sm.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}:host{display:inline-flex;flex-direction:column;position:relative;width:100%;max-width:256px;margin:0;margin-bottom:8px}:host(.full-width){max-width:100%}:host(.no-margin){margin:0}:host(.hidden){display:none}:host(.linked-component){display:none}.toggle{cursor:pointer}.toggle.disabled{cursor:not-allowed}.modules{display:flex}.picker-label{user-select:none;line-height:1}.datetime-picker{position:absolute;top:-1000px;display:inline-flex;flex-direction:column;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);opacity:0;visibility:hidden;transition:transform 0.2s ease, opacity 0.3s ease;transform:scale(0.8) translateY(-100px);background-color:#ffffff;min-height:356px;max-height:356px;box-sizing:border-box;z-index:-1000}.datetime-picker.alignment-left{left:0}.datetime-picker.alignment-right{right:0}.datetime-picker.open{top:calc(100% - 28px);z-index:10000;opacity:1;visibility:visible;transform:scale(1) translateY(0)}.datetime-picker.open.no-caption{top:100%}.actions{display:flex;align-items:center;justify-content:space-between;padding:8px;margin-top:auto;border-top:1px solid var(--bcm-color-grey-6)}.actions .current-date{font-size:14px;line-height:22px;color:var(--bcm-color-prime-blue-6);text-transform:capitalize}.date-container+.time-container{border-left:1px solid #cecece}.time-container{width:185px}.time-container .bcm-datetime-picker__header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;max-height:60px;border-bottom:1px solid var(--bcm-color-grey-4)}.time-container .bcm-datetime-picker__header .now{font-size:14px;line-height:22px;cursor:pointer;color:var(--bcm-color-prime-blue-6);user-select:none}.time-container .bcm-datetime-picker__content{position:relative;display:flex}.time-container .hours,.time-container .minutes,.time-container .time-period{position:relative;flex:1 1 100%;max-width:100%;height:280px;overflow:hidden}.time-container .hours .items>span,.time-container .minutes .items>span,.time-container .time-period .items>span{font-size:14px;color:var(--bcm-color-grey-8)}.time-container .hours .items>span.selected,.time-container .minutes .items>span.selected,.time-container .time-period .items>span.selected{color:var(--bcm-color-prime-blue-6)}.date-container{width:364px;}.date-container .bcm-datetime-picker__header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;max-height:60px;border-bottom:1px solid var(--bcm-color-grey-4)}.date-container .bcm-datetime-picker__header .month-year-wrapper{display:flex;align-items:center;justify-content:center;margin:0 4px;min-width:125px}.date-container .bcm-datetime-picker__header .month-year{font-size:16px;line-height:24px}.date-container .bcm-datetime-picker__header .month-year{display:flex;align-items:center}.date-container .bcm-datetime-picker__header .month-year button{display:flex;align-items:center;box-shadow:none;background:transparent;outline:none;appearance:none;border:none;color:var(--bcm-color-prime-blue-6);cursor:pointer}.date-container .bcm-datetime-picker__header .month{text-transform:capitalize}.date-container .bcm-datetime-picker__header .year{padding-left:4px}.date-container .bcm-datetime-picker__header .today{font-size:14px;line-height:22px;cursor:pointer;color:var(--bcm-color-prime-blue-6);user-select:none}.date-container .bcm-datetime-picker__content{display:flex}.date-container .years{position:relative;flex:0 0 70px;max-width:70px;height:280px;overflow:hidden;background-color:var(--bcm-color-grey-2)}.date-container .days{width:100%}.date-container .day-numbers,.date-container .day-labels{display:grid;grid-template-columns:repeat(7, 1fr)}.date-container .day-numbers{padding:24px 24px}.date-container .day-numbers>span,.date-container .day-labels span{text-align:center}.date-container .day-numbers>span{position:relative;padding-bottom:100%;cursor:pointer}.date-container .day-numbers>span.not-this-month{color:var(--bcm-color-grey-4)}.date-container .day-numbers>span.is-weekend{color:var(--bcm-color-prime-blue-3)}.date-container .day-numbers>span.is-disabled-date:not(.today){color:var(--bcm-color-grey-4);cursor:not-allowed}.date-container .day-numbers>span.is-disabled-date:not(.today):before{opacity:0 !important}.date-container .day-numbers>span.today{color:var(--bcm-color-prime-blue-6)}.date-container .day-numbers>span.today:before{opacity:1;background-color:var(--bcm-color-prime-blue-2);border:1px solid var(--bcm-color-prime-blue-6)}.date-container .day-numbers>span.selected-start{background:linear-gradient(90deg, white 50%, #8abde2 50%) !important}.date-container .day-numbers>span.selected-end{background:linear-gradient(90deg, #8abde2 50%, white 50%) !important}.date-container .day-numbers>span.range{background:#8abde2}.date-container .day-numbers>span.range:not(.today){color:#ffffff}.date-container .day-numbers>span.range:not(.today):before{background-color:var(--bcm-color-prime-blue-6)}.date-container .day-numbers>span.range.is-weekend:not(.today){color:var(--bcm-color-prime-blue-2)}.date-container .day-numbers>span.selected,.date-container .day-numbers>span.selected-end{color:#ffffff}.date-container .day-numbers>span.selected:before,.date-container .day-numbers>span.selected-end:before{opacity:1;background-color:var(--bcm-color-prime-blue-6)}.date-container .day-numbers.start-1>span:first-child{grid-column:1}.date-container .day-numbers.start-2>span:first-child{grid-column:2}.date-container .day-numbers.start-3>span:first-child{grid-column:3}.date-container .day-numbers.start-4>span:first-child{grid-column:4}.date-container .day-numbers.start-5>span:first-child{grid-column:5}.date-container .day-numbers.start-6>span:first-child{grid-column:6}.date-container .day-numbers.start-7>span:first-child{grid-column:7}.date-container .day-numbers>span:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;background-color:var(--bcm-color-grey-4);opacity:0;box-sizing:border-box}.date-container .day-numbers>span:hover.not-this-month:not(.is-weekend){color:var(--bcm-color-grey-6)}.date-container .day-numbers>span:hover:before{opacity:1}.date-container .day-numbers .number{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.date-container .day-labels{padding:24px 40px 0 40px}.date-container .day-labels span{font-size:12px;color:var(--bcm-color-grey-6)}.date-container .day-labels span:nth-child(7n+6),.date-container .day-labels span:nth-child(7n+7){color:var(--bcm-color-prime-blue-3)}.years .items,.hours .items,.minutes .items,.time-period .items{position:relative;display:flex;flex-direction:column;z-index:0;transform:translateY(0);scroll-behavior:smooth}.years .items>span,.hours .items>span,.minutes .items>span,.time-period .items>span{text-align:center;font-size:12px;min-height:26px;max-height:26px;line-height:26px;color:var(--bcm-color-grey-8);user-select:none}.years:before,.years:after,.hours:before,.hours:after,.minutes:before,.minutes:after,.time-period:before,.time-period:after{content:"";position:absolute;left:0;width:100%;height:40px}.years:before,.hours:before,.minutes:before,.time-period:before{top:-40px;box-shadow:0 10px 100px 70px #ffffff;z-index:1}.years:after,.hours:after,.minutes:after,.time-period:after{bottom:-40px;box-shadow:0 -10px 100px 70px #ffffff;z-index:2}.select-strip{position:absolute;width:100%;top:50%;left:0;transform:translateY(-50%);min-height:26px;max-height:26px;border:1px solid var(--bcm-color-grey-5);border-left:0;border-right:0;pointer-events:none;box-sizing:border-box}.bcm-label{font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:4px;font-weight:500;color:#475569}.bcm-label.tw-text-1{font-size:10px;line-height:18px}.bcm-label.tw-text-2{font-size:12px;line-height:20px}.bcm-label.tw-text-3{font-size:14px;line-height:22px}.bcm-caption-area{color:#dc2626;font-weight:400;justify-content:space-between;align-items:flex-start;flex-direction:row;min-height:20px;display:flex;margin-top:4px;font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bcm-caption-area.tw-text-1{font-size:10px;line-height:18px}.bcm-caption-area.tw-text-2{font-size:12px;line-height:20px}.bcm-caption-area.tw-text-3{font-size:14px;line-height:22px}.picker-input-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:stretch}';const um=class{constructor(t){e(this,t),this.bcmForm=n(this,"bcm-form",7),this.formData={},this.inputs=[],this.duplicateInput=[],this.isValid=!0,this.returnCaption=[],this.Bromcom={errors:{targetFormNotExist:"target form is not exist --\x3e "},inputComponents:{CHIP_GROUP:"chip-group",INPUT:"input",TEXTAREA:"textarea",SWITCH:"switch",CHECKBOX:"checkbox",RADIO_GROUP:"radio-group",CHECKBOX_GROUP:"checkbox-group",RANGE:"range",FORM:"form",FORM_GROUP:"form-group",LIST:"list",COLORPICKER:"colorpicker",DATE:"date",DATE_PICKER:"date-picker",TIME_PICKER:"time-picker",DATETIME_PICKER:"datetime-picker",SELECT:"select",LISTBOX:"listbox"},helpers:{randomId:function(){return Math.random().toString(16).slice(2,-1)}}},this._id=(4*Math.random()).toString(16).replace(".",""),this.hidden=!1,this.validation=!1,this.name="",this.value=void 0,this.autocomplete=!1}handleSubmit(){}async submitFunction(){this.formData={},this.inputs=[],this.selector=this.el,await this.getInputs(),await p(10);const t=await this.userFormData();var e={isValid:!0,formData:t};return this.name&&(e=Object.assign(Object.assign({},e),{formName:this.name})),this.isValid?(this.bcmForm.emit(e),e):(this.returnCaption={isValid:!1,message:"Please fill in all inputs",errorDetails:this.returnCaption,formData:t},this.name&&(this.returnCaption=Object.assign(Object.assign({},this.returnCaption),{formName:this.name})),this.bcmForm.emit(this.returnCaption),this.returnCaption)}async submit(){return Promise.resolve(this.submitFunction())}async set(t){var e;const n=this.validation;if(this.validation=!1,this.selector=this.el,await this.getInputs(),t&&(null===(e=this.inputs)||void 0===e?void 0:e.length)>0)for(const e of Object.keys(t)){const n=this.inputs.find((t=>t.name===e));if(n)try{await n.set(t[e])}catch(t){console.log(n.nodeName,"set",t)}}this.validation=n}async get(){var t;let e={};this.selector=this.el;const n=this.inputs;return await this.getInputs(),(null===(t=this.inputs)||void 0===t?void 0:t.length)>0&&this.inputs.forEach((async t=>{try{const n=await t.get();e=Object.assign(Object.assign({},e),{[t.name]:n})}catch(e){console.log(`${t.nodeName} get error`)}})),this.inputs=n,await p(10),Promise.resolve(e)}async setClear(){this.formData={},this.inputs=[],this.selector=this.el;let t=[];return await this.getInputs(),this.inputs.forEach((async e=>{try{t.push(await e.setClear())}catch(t){console.log(t)}})),await Promise.all(t).then((()=>{this.formData={},this.inputs=[],this.duplicateInput=[],this.isValid=!0,this.returnCaption=[]})),await p(10),Promise.resolve(!0)}async resetCaption(){await p(10),this.formData={},this.inputs=[],this.selector=this.el,await this.getInputs();for(const t of this.inputs)try{await t.resetCaption()}catch(e){console.log(t.nodeName,"rc p")}return await p(10),Promise.resolve()}async config(t){return t.validation&&(this.validation="boolean"==typeof t.validation&&t.validation),!0}async getInputs(){var t=this.selector;if(!t)return void console.warn(this.Bromcom.errors.targetFormNotExist+this.selector);const e=Array.from(t.querySelectorAll("bcm-"+Object.values(this.Bromcom.inputComponents).join(",bcm-")));this.duplicateInput=[];const n=e.filter((t=>{var e;return!t["s-hn"]||"BcmForm"!==(null===(e=t["s-hn"])||void 0===e?void 0:e.nodeName)}));for(const t of n){if("bcm-checkbox-group"==D.lowercase(t.nodeName)){let e=t.querySelectorAll("bcm-checkbox");if(e)for(const t of e)this.duplicateInput.push(t.name)}if("bcm-form"==D.lowercase(t.nodeName)){const e=Array.from(t.querySelectorAll("bcm-"+Object.values(this.Bromcom.inputComponents).join(",bcm-")));let n={};for(const t of e){var i=t.name,r=t.value;n=Object.assign(Object.assign({},n),{[i]:r}),this.duplicateInput.push(t.name)}t.value=n;let o=t.querySelectorAll("bcm-checkbox");if(o)for(const t of o)this.duplicateInput.push(t.name)}}await p(10),this.inputs=n}getItemValue(t){return t.tagName.toLowerCase().replace("bcm-",""),t.value}isWrapperComponent(t){return["bcm-datetime-picker","bcm-date-picker","bcm-time-picker"].includes(t.toLowerCase())}isGroupComponent(t){return["bcm-checkbox-group"].includes(t.toLowerCase())}isListComponent(t){return["bcm-list"].includes(t.toLowerCase())}async userFormData(){this.formData={},this.isValid=!0,this.returnCaption=[];for(const e of this.inputs){const n=this.isGroupComponent(e.tagName),i=this.isWrapperComponent(e.tagName),r=i&&e,o=i?await e.getInput()&&e:e;if(this.validation){let t=null;if(i){const e=await r.isValid();t=ih.required(o.value,e),t&&(o.value instanceof Object?0==o.value.isValid&&(t=ih.required("",e)):t=ih.required(o.value,e))}else if(n){const e=g(o,"bcm-checkbox:not(#bcm-indeterminate-element)");if(e&&e.length>0)for(const n of e)n&&!0===n.required&&(t=ih.required(n.checked),t.valid?(n.noCaption=o.noCaption,n.captionError=null,n.captionType="default"):(n.noCaption=!1,n.captionError=t.message,n.captionType=t.type))}else t=ih.required(o.value);if(o.required){t.valid?(o.captionError=null,o.captionType="default"):(o.captionError=t.message,o.captionType=t.type),await p(10);const e=ih.selfValidation(o);t.valid&&(e.valid||(o.captionError=e.message,o.captionType=e.type))}let e=o.name,c=o.captionError;!o.hidden&&"error"==o.captionType&&(this.returnCaption=[...Array.from(this.returnCaption),{[e]:c}],this.isValid=!1)}if(o.name&&!this.duplicateInput.includes(o.name)){var t=this.getItemValue(o);t&&null!=t&&null!=t||(t=null),this.formData[o.name]=t}}return this.formData}async handleChange(t){const e=this.isWrapperComponent(t.target.tagName),n=this.isGroupComponent(t.target.tagName);let i;if(e)i=t.target.getInput&&await t.target.getInput()||t.target;else if(n){let e=!1;const n=g(t.target,"bcm-checkbox:not(#bcm-indeterminate-element)");n.length>0&&n.forEach((t=>{t&&!0===t.required&&(e=!0)})),i=Object.assign(Object.assign({},t.target),{required:e})}else i=t.target;const r=t.target.value,o=e&&t.target;var c;e&&(c=await o.isValid());const a=setTimeout((()=>{if(i.required){let o=null;if(e)o=ih.required(r,c),o&&(r instanceof Object?0==r.isValid&&(o=ih.required("",c)):o=ih.required(r,c));else if(n){const e=g(t.target,"bcm-checkbox:not(#bcm-indeterminate-element)");e.length>0&&e.forEach((e=>{e&&!0===e.required&&(o=ih.required(e.checked),o.valid?(e.noCaption=t.target.noCaption,e.captionError=null,e.captionType="default"):(e.noCaption=!1,e.captionError=o.message,e.captionType=o.type))}))}else o=ih.required(r);o.valid?(i.captionError=null,i.captionType=null):(i.captionError=o.message,i.captionType=o.type)}clearTimeout(a)}));this.value=await this.userFormData()}render(){const e=h(this.hidden?"hidden":null);return t(i,{class:e},t("form",{class:"bcm-form",autocomplete:this.autocomplete?"on":"off"},t("slot",null)))}get el(){return r(this)}};(function(t,e,n,i){var r,o=arguments.length,c=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(c=(o<3?r(c):o>3?r(e,n,c):r(e,n))||c);o>3&&c&&Object.defineProperty(e,n,c)})([x()],um.prototype,"el",void 0),um.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block;margin-bottom:8px}:host(.hidden){display:none}';const hm={"message-bot":"message-bot.svg"},fm=class{constructor(t){e(this,t),this.hidden=!1,this.icon=void 0}getIcon(){const{icon:e}=this;if(e in hm){const n=c("./static/"+hm[e]);return t("div",{class:"tw-flex tw-h-fit tw-w-fit tw-items-center tw-justify-center"},t("img",{src:`${n}`,alt:e,class:"tw-h-fit tw-w-fit"}))}return t("i",{class:`${e}`})}render(){const{hidden:e}=this;return t(i,{class:"bcm-icon fa "+(e?"hidden":"")},this.getIcon())}static get assetsDirs(){return["static"]}get el(){return r(this)}};fm.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-icon.hidden{display:none}';const dm=class{constructor(t){e(this,t),this.focus=n(this,"bcm-focus",7),this.blur=n(this,"bcm-blur",7),this.clear=n(this,"bcm-clear",7),this.change=n(this,"bcm-change",7),this.input=n(this,"bcm-input",7),this.isBlur=!1,this._id=l.UID(),this._internal_id=l.UID(),this.value="",this.size=s.Size.medium,this.label=void 0,this.pattern=void 0,this.tooltip=void 0,this.placeholder=void 0,this.disabled=!1,this.readonly=!1,this.clearable=!1,this.autocomplete=!1,this.name=void 0,this.type=s.InputType.text,this.hidden=!1,this.required=!1,this.fullWidth=!1,this.noDefaultIcon=void 0,this.disableWatchValue=!1,this.passwordToggle=!1,this.maxLength=null,this.minLength=null,this.unitPrefix=null,this.unit=void 0,this.decimal=!0,this.min=void 0,this.max=void 0,this.step=void 0,this.caption=void 0,this.noCaption=!1,this.captionType=s.Status.default,this.captionError=void 0,this.customErrorMessage=void 0,this._prefix=void 0,this._suffix=void 0,this.captionCache=void 0,this.captionTypeCache=void 0,this.inValid=!1,this.valueCache="",this.focused=!1,this.isPasswordVisible=!1}connectedCallback(){this.valueCache=this.value,this.captionCache=this.caption,this.captionTypeCache=this.captionType}componentWillRender(){const{type:t,isBlur:e,value:n}=this;if(n)switch(this.value.length>0&&this.checkPattern(),t){case"number":!this.checkValid("number")&&this.validationRange();break;case"email":e&&this.checkValid("email");break;case"tel":e&&this.checkValid("phone");break;case"text":e&&this.checkLength()}else!this.required&&this.resetCaption()}async onBcmFocus(){this.inputElement.focus()}async onBcmBlur(){this.inputElement.blur()}async onBcmSelect(){this.inputElement.select()}async set(t){await this.setValue(t)}async get(){return this.value||null}async setValue(t){return this.inputElement.value=t,this.handleChange(),t}async setClear(){return this.inputElement.value="",this.value="",await p(10),Promise.resolve()}async resetCaption(){return await p(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,this.inValid=!1,await p(10),Promise.resolve()}async getValue(){return this.value}watchValue(t){this.inputElement.value=t,this.disableWatchValue||"number"==this.type||this.handleChange()}listenKeyDown(t){if(!this.disabled&&!this.readonly&&(this.onBcmFocus(),"number"==this.type)){var e=t.which||0,n=t.key;38==e&&(t.preventDefault(),this.stepUpOrDown("up")),40==e&&(t.preventDefault(),this.stepUpOrDown("down")),(190==e||110==e||"."==n)&&this.value.indexOf(".")>-1&&t.preventDefault(),189!=e&&109!=e&&"-"!=n||("-"==this.value.charAt(0)||this.value.indexOf("-")>-1)&&t.preventDefault()}}handleFocus(){this.focused=!0,this.focus.emit(),this.whatchHasFocus()}handleBlur(){this.focused=!1,this.isBlur=!0,this.whatchHasFocus(),this.blur.emit()}handleChange(){this.valueSync()}handleInput(){if("number"==this.type&&this.maxLength){const t=this.inputElement.value;t&&t.length>0&&t.length>this.maxLength&&(this.inputElement.value=t.substring(0,this.maxLength))}this.valueSync()}valueSync(){return this.value!=this.inputElement.value?(this.value=this.inputElement.value,this.change.emit(this.value),!0):(this.input.emit(this.value),!1)}handleClear(t){this.inputElement.value="",this.value="",this.inputElement.focus(),this.clear.emit(t),this.change.emit(this.value),t.stopPropagation()}changePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible}setCaption(t=null,e=null){this.caption=t||this.captionCache,this.captionType=e||this.captionTypeCache,this.captionError="error"==e?t:null}stepUpOrDown(t){if(!this.inValid&&!this.disabled&&!this.readonly){let e=+this.step||1,n=+this.value;n="up"==t?+(n+e):+(n-e),this.value=n.toString(),this.change.emit(this.value)}}validationRange(){const{min:t,max:e,value:n}=this;if(void 0!==n)if(void 0!==t&&void 0!==e){if(n<t||n>e)return this.setCaption(D.getMessage("between",[t,e]),"error"),!1}else if(void 0!==t){if(n<t)return this.setCaption(D.getMessage("min",[t]),"error"),!1}else if(void 0!==e&&n>e)return this.setCaption(D.getMessage("max",[e]),"error"),!1;return this.setCaption(),!0}checkLength(){const{minLength:t,maxLength:e,value:n}=this;t&&e?n.length<t||n.length>e?(this.setCaption(D.getMessage("betweenlength",[t,e]),"error"),this.inValid=!0):(this.setCaption(),this.inValid=!1):t?n.length<t?(this.setCaption(D.getMessage("minlength",[t]),"error"),this.inValid=!0):(this.setCaption(),this.inValid=!1):e&&(n.length>e?(this.setCaption(D.getMessage("maxlength",[e]),"error"),this.inValid=!0):(this.setCaption(),this.inValid=!1))}checkPattern(){const{pattern:t,value:e}=this;t&&(C.pattern(e,t)?(this.setCaption(),this.inValid=!1):(this.setCaption(D.getMessage("pattern"),"error"),this.inValid=!0))}checkValid(t){const{value:e}=this;return C.isValidate(e,t)?(this.setCaption(),this.inValid=!1):(this.setCaption(D.getMessage(t),"error"),this.inValid=!0),this.inValid}whatchHasFocus(){const{type:t,focused:e,valueCache:n,inValid:i}=this;t==s.InputType.number&&i&&(this.value=e?"":D.isNullOrEmpty(this.value)?n:this.value?this.fixToNumber(this.value):"")}fixToNumber(t){if(t){const e=S.getDecimalLength(this.step);return e>0?S.parseFloatFixed(t,e):t}return t}eyeDropper(){(new window.EyeDropper).open().then((t=>{this.setValue(t.sRGBHex)})).catch((t=>{"NotAllowedError"===t.name?console.log("Permission to access sensor was denied."):"NotSupportedError"===t.name&&console.log("Sensor not supported.")}))}isEyeDropperSupported(){return"undefined"!=typeof window&&"EyeDropper"in window}toggleLinked(){const t=document.getElementById(`${this._id}-linked`);t&&t.toggle()}render(){const{value:e,size:n,label:r,type:o,captionType:c,caption:a,captionError:l,placeholder:u,fullWidth:f,disabled:d,readonly:b,clearable:p,passwordToggle:v,isPasswordVisible:g,noDefaultIcon:x,unit:y,inValid:w,focused:k,unitPrefix:_,noCaption:z,required:C,hidden:S,_id:D,autocomplete:j}=this,M=(null==e?void 0:e.length)>0&&p,O=h("bcm-input",`bcm-input__container--${n}`,{hidden:S,"full-width":f});return t(i,{onfocus:()=>this.onBcmFocus(),class:O,onClick:()=>this.onBcmFocus()},r&&t("bcm-label",{onClick:()=>this.toggleLinked(),tooltip:this.tooltip,type:c,value:r,required:C,htmlFor:D}),t(T,{id:D,type:o,value:e,pattern:this.pattern,placeholder:u,disabled:d,readonly:b,clearable:M,passwordToggle:v,isPasswordVisible:g,noDefaultIcon:x,focused:k,inValid:w,unitPrefix:_,maxLength:this.maxLength,internalId:this._internal_id,captionType:c,unit:y,size:n,handleFocus:()=>this.handleFocus(),handleBlur:()=>this.handleBlur(),handleChange:()=>this.handleChange(),handleInput:()=>this.handleInput(),steps:t=>this.stepUpOrDown(t),changePasswordVisibility:()=>this.changePasswordVisibility(),handleClear:t=>this.handleClear(t),eyeDropper:()=>this.eyeDropper(),isEyeDropperSupported:()=>this.isEyeDropperSupported(),ref:t=>this.inputElement=t,_suffix:this._suffix,_prefix:this._prefix,autocomplete:j}),t(m,{noCaption:z,captionType:c,captionError:l,caption:a,customErrorMessage:this.customErrorMessage}),o==s.InputType.color&&t("bcm-linked",{targetId:this._id+"-container",id:this._id+"-linked"},t("bcm-colorful",{id:this._id+"-picker",color:this.value,onBcmChange:t=>this.setValue(t.detail)})))}static get watchers(){return{value:["watchValue"]}}};(function(t,e,n,i){var r,o=arguments.length,c=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(c=(o<3?r(c):o>3?r(e,n,c):r(e,n))||c);o>3&&c&&Object.defineProperty(e,n,c)})([x()],dm.prototype,"inputElement",void 0),dm.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:"Inter", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:"Inter", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}';const bm=class{constructor(t){e(this,t),this._id=l.UID(),this.required=!1,this.value=void 0,this.label=void 0,this.size="medium",this.form=void 0,this.htmlFor=void 0,this.hidden=!1,this.type=s.Status.default,this.tooltip=void 0}render(){const{required:e,value:n,label:r,size:o,form:c,htmlFor:a,type:l,tooltip:s}=this;return t(i,{class:"tw-inline-block tw-leading-none"},t(N,{form:c,htmlFor:a,value:n||r,size:o,type:l,required:e,tooltip:s}))}get el(){return r(this)}};!function(t,e,n,i){var r,o=arguments.length,c=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(c=(o<3?r(c):o>3?r(e,n,c):r(e,n))||c);o>3&&c&&Object.defineProperty(e,n,c)}([x()],bm.prototype,"el",void 0);const mm=class{constructor(t){e(this,t),this.bcmOpen=n(this,"bcm-open",7),this._id=l.UID(),this.placement=u.Placement["bottom-start"],this.trigger=u.TriggerType.click,this.targetId="",this.height=void 0,this.maxHeight=void 0,this.minHeight="50px",this.isOpen=!1,this.hideDelay=500,this.isMouseOverLink=!1,window.addEventListener("scroll",(()=>this.calculatePosition()),!0),window.addEventListener("wheel",(()=>this.calculatePosition()),!0),window.addEventListener("resize",(()=>this.calculatePosition()),!0)}target(){const t=document.querySelectorAll(`[id="${this.targetId}"]`);return t.length>0?(t.length>1&&console.warn(`[bcm-linked] - Target id "${this.targetId}" is duplicated`),t[0]):(this.el.remove(),null)}detectClone(){const t=document.querySelectorAll(`[target-id="${this.targetId}"]`);t.length>0&&t.forEach((t=>{t.id!==this._id&&(console.warn(`[bcm-linked] - id="${this._id}" was removed from the dom because id="${this.targetId}" is duplicated.`),t.remove())}))}dismissEvent(){document.dispatchEvent(new CustomEvent("linked-data-dismiss",{detail:{id:this._id}}))}checkDataDismiss(t){l.findEventPathHasAttribute(t,"data-dismiss")&&this.dismissEvent()}hideChildLinked(){this.el.querySelectorAll("[is-linked][linked-is-open]").forEach((t=>{var e;null===(e=document.querySelector(`#${t.getAttribute("is-linked")}[is-open]`))||void 0===e||e.hide(!1)}))}calculatePosition(){const t=this.el;t&&this.target()&&(this.isOpen?I({ref:this.target(),floating:t,placement:this.placement,offset:4,autoHidden:"true"!==t.getAttribute("main-linked"),autoSize:!0,style:{height:this.height,maxHeight:this.maxHeight,minHeight:this.minHeight}}):(t.style.visibility="hidden",t.style.opacity="0"))}init(){const t=this.target();this.trigger===u.TriggerType.hover&&this.listenMouseOver(),t&&(t.setAttribute("is-linked",this.el.id),l.getAncestor(t,"bcm-linked")?this.el.removeAttribute("main-linked"):this.el.setAttribute("main-linked","true"))}componentDidLoad(){this.init()}triggerWatch(t){t===u.TriggerType.hover&&this.listenMouseOver()}watchIsOpen(){this.bcmOpen.emit(this.isOpen)}onLinkedDataDismis(){this.hide(!1)}onBcmFloatingIsHide(t){t.detail.id===this._id&&this.hide(!1)}async show(t=!0){t&&await p(50),this.detectClone();const e=this.target();return e?(document.querySelector("#bcm-overlay-container").appendChild(this.el),e.setAttribute("linked-is-open","true"),this.isOpen=!0,this.calculatePosition()):this.hide(!1),this.isOpen}async hide(t=!0){t&&await p(50);const e=this.target();return this.isMouseOverLink=!1,e&&(e.removeAttribute("linked-is-open"),this.hideChildLinked(),this.isOpen=!1),this.isOpen}async toggle(t=!0){return this.isOpen?await this.hide(t):await this.show(t)}clickListener(t){if(!this.target())return;if(this.trigger===u.TriggerType.hover||this.trigger===u.TriggerType.custom)return;const e=l.findEventPath(t,this.target()),n=l.findEventPath(t,this.el),i=l.findEventPathWithNodeName(t,"BCM-LINKED");if(!e&&!n&&!i)return this.hide(),void this.bcmOpen.emit(this.isOpen);this.isOpen?(e&&this.hide(!1),n&&this.checkDataDismiss(t),"true"!==this.el.getAttribute("main-linked")||e||n||i||this.dismissEvent()):e&&this.show(!1)}listenMouseOver(){var t,e;this.el.addEventListener("mouseover",(()=>this.isMouseOverLink=!0)),this.el.addEventListener("mouseleave",(()=>{this.isMouseOverLink=!1,this.handleMouseLeave()})),null===(t=this.target())||void 0===t||t.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),null===(e=this.target())||void 0===e||e.addEventListener("mouseleave",this.handleMouseLeave.bind(this))}handleMouseLeave(){setTimeout((()=>{!this.isMouseOverLink&&this.hide()}),this.hideDelay)}handleMouseEnter(){clearTimeout(this.timeoutId),this.isMouseOverLink=!1,this.show()}render(){return t(i,{class:"tw-invisible tw-absolute tw-left-0 tw-top-0 tw-z-tooltip tw-block tw-overscroll-contain tw-scroll-smooth tw-rounded tw-bg-white tw-opacity-0 tw-shadow tw-transition-opacity tw-duration-100",style:Object.assign(Object.assign({},this.isOpen?{visibility:"visible",opacity:"1"}:{visibility:"hidden",opacity:"0"}),{overflow:"auto"})},t("slot",null))}get el(){return r(this)}static get watchers(){return{trigger:["triggerWatch"],isOpen:["watchIsOpen"]}}},{state:pm}=f({value:new Map}),vm=(t,e,n,i="0.")=>{let r=[];return t&&t.length>0&&(r=t.map(((t,r)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({itemObject:t},t),e),{parentId:a((()=>n),null),open:e.allOpen||t.open||!1}),(e.treeview||!e.treeview&&"group"==t.type)&&t.items&&t.items.length>0?{items:a((()=>vm(t.items,e,t.id,`${i}${r}`)),[])}:{items:[]}),{ct:`${i}${r}`})))),r},gm=t=>a((()=>pm.value.get(t)),{}),xm=(t,e)=>{let n=0;return t.forEach((t=>{(e||!e&&"group"!=t.type)&&(n+=1),(e||!e&&"group"==t.type)&&t.items&&(n+=xm(t.items,e))})),n},ym=(t,e,n,i)=>{let r;r=n||gm(t).dataSource,r&&r.forEach((n=>{null!=i?n.open=i:n.id==e?(n.open=!n.open,n.isSearching=n.open,!n.open&&n.items&&ym(t,e,n.items,!1)):n.items&&ym(t,e,n.items)}))},wm=(t,e,n)=>{n&&n.forEach((n=>{n.id==e?(n.checked=!1,n.itemObject.checked=!1,Cm(t,n.parentId)):n.items&&wm(t,e,n.items)}))},km=(t,e)=>{_m(t,e)},_m=(t,e,n)=>{let i;e=Array.isArray(e)?e:[e],i=n||gm(t).dataSource,i&&i.forEach((n=>{e.includes(n.id)?(zm(t,n),n.parentId&&Cm(t,n.parentId)):n.items&&_m(t,e,n.items)}))},zm=(t,e,n)=>{const i=gm(t);if(i){const r=i.options.treeview;e&&((r||!r&&"group"!=e.type)&&(e.disabled||(e.checked=null!=n?n:!e.checked,e.itemObject.checked=e.checked,e.indeterminate=e.checked?"determinate":"uncheck")),e.items&&e.items.forEach((i=>{zm(t,i,null==n?e.checked:n)})))}},Cm=(t,e,n)=>{let i;i=n||gm(t).dataSource,i&&i.forEach((n=>{if(n.id==e){let e=!0,i=!0;n.items&&n.items.map((t=>{(t.checked||"indeterminate"===t.indeterminate)&&(i=!1),!t.checked&&(e=!1)}));const r=e||i?e?"determinate":"uncheck":"indeterminate";n.indeterminate=r,n.checked="determinate"==r,n.itemObject.checked=n.checked,n.parentId&&Cm(t,n.parentId)}else n.items&&Cm(t,e,n.items)}))},Sm=(t,e,n,i)=>{let r,o=[],c=[];return gm(t).isSearchOtherTag=i,r=n||gm(t).dataSource,r&&r.forEach((n=>{if(e){var r;n.hidden=!0;for(let t=0;t<e.length;t++)if(e[t].id===n.id){r=e[t];break}if(r&&(n.hidden=!1,gm(t).isSearchOtherTag||(n.isSearching=!0),c.push(n),n.checked&&o.push(n),r.items)){const{checkedItems:e,visibledItems:a}=Sm(t,r.items,n.items,i);e&&(o=[...new Set([...o,...e])]),a&&(c=[...new Set([...c,...a])])}}else n.hidden=!1,n.items&&Sm(t,null,n.items),c.push(n),n.isSearching=!1})),{checkedItems:null!=o?o:[],visibledItems:null!=c?c:[]}},Dm=(t,e)=>{let n,i=null;return n=e||gm(t).dataSource,n&&n.forEach((e=>{if(e.selected)i=e.itemObject;else if(e.items){const n=Dm(t,e.items);n&&(i=n)}})),i},jm=(t,e)=>{let n,i=[],r=[];return n=e||gm(t).dataSource,n&&n.forEach((e=>{var n;const o=Object.assign(Object.assign({},e.itemObject),{ct:e.ct});let c=[],a=[];if(e.checked&&(i.push(o),a.push(Object.assign(Object.assign({},o),{items:[]}))),e.items){const r=jm(t,e.items);(null===(n=null==r?void 0:r.checkedList)||void 0===n?void 0:n.length)>0&&(i=[...i,...r.checkedList]),r.nestedResult.length>0&&(c=r.nestedResult)}c.length>0?(0==a.length&&a.push(Object.assign(Object.assign({},o),{items:[]})),a[0].items=c,r.push(a[0])):a.length>0&&(a[0].items=c,r.push(a[0]))})),{checkedList:(null==i?void 0:i.length)>0?i:null,nestedResult:r}},Mm=(t,e,n)=>{let i,r=[];return i=n||gm(t).dataSource,i&&i.forEach((n=>{if(e&&(n.id==e?(n.selected=!0,n.itemObject.selected=n.selected):n.selected&&(n.selected=!1,n.itemObject.selected=n.selected)),n.items){const i=Mm(t,e,n.items);(null==i?void 0:i.length)>0&&(r=[...r,...i])}n.selected&&r.push(n.itemObject)})),r&&r.length>0?r:null},Om=(t,e)=>{let n;n=e||gm(t).dataSource,n&&n.forEach((e=>{var n,i,r;e.checked&&(e.checked=!1),e.selected&&(e.selected=!1),e.indeterminate&&(e.indeterminate="uncheck"),(null===(n=e.itemObject)||void 0===n?void 0:n.checked)&&(e.itemObject.checked=!1),(null===(i=e.itemObject)||void 0===i?void 0:i.selected)&&(e.itemObject.selected=!1),(null===(r=e.itemObject)||void 0===r?void 0:r.indeterminate)&&(e.itemObject.indeterminate="uncheck"),e.items&&Om(t,e.items)}))},Em={setValue:t=>{const{id:e,dataSource:n,options:i}=t,{type:r,treeview:o,checkboxes:c,searchable:s,value:u,name:h,label:f,size:d,disabled:b,readonly:m,highlight:p,required:v,hidden:g,fullWidth:x,height:y,maxHeight:w,minHeight:k,width:_,infoFooter:z,variableText:C,template:S,allOpen:D,keyControl:j,checkAll:M,linkedComponent:O,placeholder:E,searchPlaceholder:N,searchIsOnlyChilds:T,clearable:I,caption:R,noCaption:Y,captionType:A,captionError:P,placement:F}=i,$={size:d,checkboxes:c,template:S,allOpen:D,highlight:p,treeview:o},L={id:a((()=>e),l.UID),dataSource:n&&n.length>0&&vm(n,$),options:{type:r,treeview:o,checkboxes:c,searchable:s,value:u,name:h,label:f,size:d,disabled:b,readonly:m,highlight:p,required:v,hidden:g,fullWidth:x,height:y,maxHeight:w,minHeight:k,width:_,infoFooter:z,variableText:C,template:S,allOpen:D,keyControl:j,checkAll:M,linkedComponent:O,placeholder:E,searchPlaceholder:N,searchIsOnlyChilds:T,clearable:I,caption:R,noCaption:Y,captionType:A,captionError:P,placement:F},totalItems:(null==n?void 0:n.length)>0&&xm(n,i.treeview),totalRoots:null==n?void 0:n.length};pm.value.set(L.id,L)},removeValue:t=>{pm.value.delete(t)},getValue:gm,getData:t=>{let e=[];const n=gm(t);if(n){const{dataSource:t}=n;e=t}return e},getDataPagination:(t,e=3,n)=>{let i=[];const r=gm(t);if(r){const{dataSource:t}=r;i=n?t.filter((t=>n.indexOf(t.id)>-1)).slice(0,e):t.slice(0,e)}return i},openGroup:ym,checkedItem:km,filterData:Sm,getSelected:Dm,getCheckedList:jm,selectedItem:Mm,addChecked:(t,e)=>{gm(t)&&e.forEach((e=>{km(t,e)}))},setClear:Om,selectAll:(t,e)=>{const n=gm(t).dataSource;n&&n.forEach((n=>{zm(t,n,e)}))},removeOtherTags:(t,e,n)=>{let i;if(e=Array.isArray(e)?e:[e],n)i=n;else{const e=gm(t);i=e.dataSource}i&&e.forEach((e=>{i.forEach((n=>{n.id==e?(n.checked=!1,n.itemObject.checked=!1):n.items&&wm(t,e,n.items)}))}))},onRemoveItems:wm,updateOptions:(t,e)=>{Object.keys(gm(t).options).forEach((n=>{gm(t).options[n]=e[n]}))},removeState:t=>Promise.resolve(pm.value.delete(t))};class Nm{constructor(t,e,n,i){this.elementName="",this.childElementName="",this.keyCode=t,this.element=e,this.elementName=n,this.childElementName=i}getKeyCode(){return this.keyCode}getElementName(){return this.elementName}getChildElementName(){return this.childElementName}getFocusedElementName(){return this.getElementName()+".focused"}getFocusedElement(){return this.element.querySelectorAll(this.getFocusedElementName())[0]||null}getFirstElement(){return this.element.querySelectorAll(this.getElementName())[0]||null}getNextElement(){var t;return(null===(t=this.getFocusedElement())||void 0===t?void 0:t.nextElementSibling)||this.getFirstElement()}getPreviousElement(){var t;return(null===(t=this.getFocusedElement())||void 0===t?void 0:t.previousElementSibling)||this.getFirstElement()}getChildElement(){var t;return(null===(t=this.getFocusedElement())||void 0===t?void 0:t.querySelectorAll(this.getChildElementName())[0])||null}getParentElement(t){if(t&&t)return t&&t.attributes["data-isroot"]?t:this.getParentElement(t.parentNode)}focusElementIsOpen(){var t;return(null===(t=this.getFocusedElement())||void 0===t?void 0:t.classList.contains("bcm-list__item--open"))||!1}isRootElement(){var t;return(null===(t=this.getFocusedElement())||void 0===t?void 0:t.querySelectorAll(this.getChildElementName()).length)>0}isRootElementIsOpen(){return this.getFocusedElement().classList.contains("bcm-list__item--open")}getFocusedChildElement(){var t;return(null===(t=this.getChildElement())||void 0===t?void 0:t.querySelectorAll(".focused")[0])||null}isLastElement(){var t;return null===(null===(t=this.getFocusedElement())||void 0===t?void 0:t.nextElementSibling)}focusParentElementFirstChild(){var t,e;return this.setFocus(null===(e=null===(t=this.getFocusedElement())||void 0===t?void 0:t.parentElement)||void 0===e?void 0:e.firstChild)}isFirstElement(){var t;return null===(null===(t=this.getFocusedElement())||void 0===t?void 0:t.previousElementSibling)}focusRootElement(){var t,e,n;return this.setFocus(null===(n=null===(e=null===(t=this.getFocusedElement())||void 0===t?void 0:t.parentElement)||void 0===e?void 0:e.parentElement)||void 0===n?void 0:n.firstChild)}nextRootElement(){var t,e,n;return this.setFocus(null===(n=null===(e=null===(t=this.getFocusedElement())||void 0===t?void 0:t.parentElement)||void 0===e?void 0:e.parentElement)||void 0===n?void 0:n.nextElementSibling)}findFocusElementParent(){return this.getFocusedElement().parentNode.querySelectorAll(".bcm-list__item--open")}getLastElement(){return this.element.querySelectorAll(this.getElementName())[this.element.querySelectorAll(this.getElementName()).length-1]||null}setFocus(t){t.focus()}}class Tm extends Nm{constructor(t,e,n,i){super(t,e,".bcm-list__item",".bcm-list__item-childs"),this.isTreeview=!1,this.isCheckBoxes=!1,this.isTreeview=n,this.isCheckBoxes=i}keyUpControl(){this.isTreeview?this.keyUpTreeview():this.isFirstElement()?this.setFocus(this.getLastElement()):this.setFocus(this.getPreviousElement())}keyDownTreeView(){var t;if(this.isTreeview)if(this.isRootElement()&&this.isRootElementIsOpen()){const t=this.getChildElement();t&&this.setFocus(t.firstChild)}else this.isLastElement()&&this.getParentElement(this.getFocusedElement())?this.setFocus(null===(t=this.getParentElement(this.getFocusedElement()))||void 0===t?void 0:t.nextElementSibling):this.setFocus(this.getNextElement())}keyUpTreeview(){if(this.isFirstElement()){const t=this.getParentElement(this.getFocusedElement());this.setFocus(t)}else{const t=this.getPreviousElement();if(t)if(t.classList.contains("bcm-list__item--open")){const e=t.querySelectorAll(this.getChildElementName())[0];console.log({getChildElement:e}),this.setFocus(e.lastChild)}else this.setFocus(t)}}keyDownControl(){this.isTreeview?this.keyDownTreeView():this.isLastElement()?this.setFocus(this.getFirstElement()):this.setFocus(this.getNextElement())}keyRightControl(){if(this.isTreeview&&!this.isRootElementIsOpen()&&this.isRootElement()){const{id:t}=this.getFocusedElement();this.openGroup(t)}}keyLeftControl(){if(this.isTreeview&&this.isRootElementIsOpen()&&this.isRootElement()){const{id:t}=this.getFocusedElement();this.openGroup(t)}}keyEnterControl(){}keySpaceControl(){if(this.isCheckBoxes){const{id:t}=this.getFocusedElement();this.checkedItem(t)}}keyDown(){switch(this.getKeyCode()){case s.KeyCode.up:this.keyUpControl();break;case s.KeyCode.down:this.keyDownControl();break;case s.KeyCode.left:this.keyLeftControl();break;case s.KeyCode.right:this.keyRightControl();break;case s.KeyCode.enter:this.keyEnterControl();break;case s.KeyCode.space:this.keySpaceControl()}}keyUp(){}}var Im=function(t,e,n,i){var r,o=arguments.length,c=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(c=(o<3?r(c):o>3?r(e,n,c):r(e,n))||c);return o>3&&c&&Object.defineProperty(e,n,c),c};const Rm=class{constructor(t){e(this,t),this.bcmChecklist=n(this,"bcm-checklist",7),this.bcmSelected=n(this,"bcm-selected",7),this.change=n(this,"bcm-change",7),this.open=n(this,"bcm-open",3),this.close=n(this,"bcm-close",3),this.listClose=n(this,"bcm-list-close",7),this.listOpen=n(this,"bcm-list-open",7),this.debounce=null,this.debounceHandler=l.debounceInput((()=>this.listenResize()),300,!1),this._id=l.UID(),this.tempId=l.UID(),this.type=u.ListType.listbox,this.treeview=!1,this.checkboxes=!1,this.searchable=!1,this.value=null,this.inputText=void 0,this.name=void 0,this.label=void 0,this.size=u.Size.medium,this.disabled=!1,this.readonly=!1,this.highlight=!1,this.highlightText=void 0,this.required=!1,this.hidden=!1,this.fullWidth=!1,this.height="256px",this.maxHeight="500px",this.minHeight="150px",this.width="256px",this.tooltip=void 0,this.infoFooter=!1,this.variableText="item",this.template=void 0,this.allOpen=!1,this.keyControl=!1,this.checkAll=!0,this.stopDeepClean=!1,this.openIntersecting=!1,this.linkedComponent=void 0,this.isOpen=!1,this.calculatedViewport=!1,this.isSelectedOther=!1,this.isHaveOtherTag=!1,this.placeholder="Choose an option",this.searchPlaceholder="Search",this.searchIsOnlyChilds=!1,this.minSearchLength=2,this.clearable=!1,this.caption=void 0,this.noCaption=!1,this.captionType=u.Status.default,this.captionError=void 0,this.emptyText=void 0,this.emptyIcon="fad fa-folder-open",this.captionCache=void 0,this.captionTypeCache=void 0,this.tick={},this.totalData=0,this.totalRootData=0,this.limit=20,this.searchGetParents=void 0,this.searchResultLimit=20,this.searchFound=null,this.returnFilterData={},this.returnOtherData={},this.options={rootMargin:"30px"},this.tagContainerWidth=0,this.selectAllItem={id:"select-all",text:"Select All",value:"select-all",checked:!1,disabled:!1,icon:"",status:u.Status.default,indeterminate:"uncheck"},this.shouldTriggerChange=void 0,this.placement=u.Placement["bottom-start"],this.disableChangeEvent=!1,this.data=[],window.addEventListener("scroll",this.handleWheel.bind(this),!0),window.addEventListener("wheel",this.handleWheel.bind(this),!0),window.addEventListener("resize",this.handleResize.bind(this),!0)}connectedCallback(){"256px"!=this.height&&(this.limit=this.height.indexOf("px")>-1?Math.floor(+this.height.replace("px","")/10):Math.floor(+window.innerHeight/10),this.searchResultLimit=this.limit,this.markForCheck());const t=document.querySelectorAll(`#bcm-list-${this._id}`);(null==t?void 0:t.length)>1&&t.forEach(((t,e)=>e>0&&t.remove()))}componentWillRender(){this.calculateLocation()}componentShouldUpdate(t,e,n){Object.keys(this.getOptions()).indexOf(n)>-1&&t!==e&&this.updateOptions()}get containerWidth(){var t,e;return null===(e=null===(t=this.el)||void 0===t?void 0:t.getBoundingClientRect())||void 0===e?void 0:e.width}get tagCount(){return this.containerWidth>0?Math.floor(+(this.containerWidth-100)/85):0}get tagData(){return a((()=>{var t;return null===(t=this.value)||void 0===t?void 0:t.map((t=>({value:t.id,label:D.textLimitter(t.text,7),text:t.tooltipMessage||t.tagTitle||l.domParser(t.text)})))}),[])}async componentDidLoad(){await this.initState()}disconnectedCallback(){if(this.isOpen=!1,!this.stopDeepClean&&(Em.removeState(this._id),this.el.innerHTML="","select"==this.type||"autocomplete"==this.type||this.linkedComponent)){const t=document.querySelectorAll(`#bcm-list-${this._id}`);(null==t?void 0:t.length)&&(t.forEach((t=>t.remove())),this.el.remove())}}watchId(t,e){Em.removeState(e),this.initState()}handleValueChange(t,e){var n;l.objectIsEmpty(this.returnFilterData)&&this.handleIndeterminate((null===(n=this.value)||void 0===n?void 0:n.length)||0,this.totalData),this.checkboxes?C.compareTwoArrayIsSame(t,e)||(this.bcmChecklist.emit(this.value),!this.disableChangeEvent&&this.change.emit([...this.value,{shouldTriggerChange:this.shouldTriggerChange}])):(null==t?void 0:t.id)!=(null==e?void 0:e.id)&&!this.disableChangeEvent&&this.change.emit(Object.assign(Object.assign({},this.value),{shouldTriggerChange:this.shouldTriggerChange}))}watchReturnFilterData(t){var e;const{checkedItems:n,visibledItems:i}=t;n&&i?this.handleIndeterminate(n.length,i.length):this.handleIndeterminate((null===(e=this.value)||void 0===e?void 0:e.length)||0,this.totalData)}async handleOpen(){if(this.isOpen){if(this.detectClone(),"select"==this.type||"autocomplete"==this.type||this.linkedComponent){const t=this.el.querySelector(`#bcm-list-${this._id}`);t&&document.querySelector("#bcm-overlay-container").appendChild(t)}this.open.emit(),this.calculateLocation(),this.onSelectSearch()}else this.listScrollToTop(),this.close.emit(),this.listClose.emit(),await p(100),this.unSelectOther()}listScrollToTop(){const t=document.querySelector(`#bcm-list-${this._id}`);t&&(t.querySelector(".scrolling").scrollTop=0)}async dataChanged(t,e){C.compareTwoArrayIsSame(t,e)||await this.initState()}isIntersecting(t){const e=null==t?void 0:t.target;e&&e.id===this._id&&this.listenResize()}handleSlotItems(t){var e;(null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.length)>0&&(this.data=t.detail)}handleChange(t){t.target.id==`bcm-list-input-tag-container-${this._id}-autocomplete-input`&&t.stopImmediatePropagation()}handleResize(){this.calculateLocation(),this.debounceHandler()}handleWheel(t){if(this.isOpen){const e=document.querySelector(`#bcm-list-${this._id}`);e&&l.findEventPath(t,e)?("select"==this.type||"autocomplete"==this.type||this.linkedComponent)&&this.calculateLocation():this.hide()}}clearAutocomplete(){if("autocomplete"==this.type){const t=this.getAutoCompleteInput();t&&t.handleClear(!1)}}async handleSelectOtherTag(t){if(this.disabled)return;const{id:e,checked:n}=t.detail;this.isSelectedOther=n,e&&(n?this.filterOtherList(e):this.unSelectOther(),this.isOpen=!0)}async handleDeleteTag(t){var e;if(this.disabled)return;const{id:n}=t.detail;this.isSelectedOther&&this.unSelectOther(),Array.isArray(n)?Em.removeOtherTags(this._id,n):Em.checkedItem(this._id,n),this.value=(await this.getCheckedList()).checkedList,this.handleIndeterminate((null===(e=this.value)||void 0===e?void 0:e.length)||0,this.totalData)}async handleSelectTag(t){this.disabled||(this.clearAutocomplete(),this.onSelectSearch(),this.unSelectOther())}handleClick(t){var e;if(this.disabled)return;const n=document.querySelector(`#bcm-list-${this._id}`),i=l.findEventPath(t,this.el)||n&&l.findEventPath(t,n);if(i&&(null!==this.debounce&&(t.preventDefault(),t.stopPropagation(),clearTimeout(this.debounce),this.debounce=null),this.debounce=setTimeout((()=>{this.debounce=null}),300)),!i&&"autocomplete"==this.type){const t=this.getAutoCompleteInput();t&&t.setValue(this.checkboxes?"":(null===(e=this.value)||void 0===e?void 0:e.text)||"")}const r=l.findEventPathWithKey(t,"className",["bcm-tag"]),o=l.findEventPathWithKey(t,"className",["bcm-tag bcm-tag--other"]),c=l.findEventPathWithKey(t,"id",[`bcm-list-input-${this._id}`,`bcm-list-label-${this._id}`]),a=l.findEventPathWithKey(t,"className",["right close-button"]);c&&!a&&"autocomplete"!=this.type&&(this.isOpen=!(!r&&!o&&this.isOpen)),n&&this.isOpen&&(n.contains(t.target)||this.el.contains(t.target)||(this.isOpen=!1))}bcmOnSearchClear(t){var e,n;"autocomplete"==this.type&&((null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.id)!==`bcm-list-${this._id}-search`&&(null===(n=null==t?void 0:t.target)||void 0===n?void 0:n.id)!==`bcm-list-input-tag-container-${this._id}-autocomplete-input`||t.detail&&this.setClear())}bcmOnSearch(t){var e,n,i,r,o,c;(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.id)!==`bcm-list-${this._id}-search`&&(null===(n=null==t?void 0:t.target)||void 0===n?void 0:n.id)!==`bcm-list-input-tag-container-${this._id}-autocomplete-input`||(this.searchGetParents=a((()=>{var e;return null===(e=t.detail)||void 0===e?void 0:e.parentIndex}),null),this.searchResultLimit=10,this.searchFound=null!=(null===(i=t.detail)||void 0===i?void 0:i.matching)?null===(r=t.detail)||void 0===r?void 0:r.matching.length:null,this.returnFilterData=Em.filterData(this._id,null===(o=t.detail)||void 0===o?void 0:o.nestedResult),this.searchFound>0&&this.highlight&&(this.highlightText=null===(c=t.detail)||void 0===c?void 0:c.value),"autocomplete"==this.type&&(this.isOpen=!0),t.detail.result||("autocomplete"==this.type?this.isOpen=!1:(this.returnFilterData={},Em.filterData(this._id,null)),this.searchResultLimit=null,this.highlightText=null),this.markForCheck())}handleKeyDown(t){const e=t.keyCode||t.which;if(e===u.KeyCode.escape&&this.isOpen&&(this.isOpen=!1,t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()),this.keyControl){const t=new Tm(e,this.el,this.treeview,this.checkboxes);t.openGroup=t=>{this.openGroup(t)},t.checkedItem=t=>{this.checkedItem(t)},t.keyDown()}}handleKeyUp(t){if(this.keyControl&&l.findEventPath(t,this.el)){const t=document.getElementById(`bcm-list-${this._id}`);if(t){const e=t.querySelectorAll(".bcm-list__item.focused");if(e.length>0){const n=t.querySelector("main"),i=e[0].offsetHeight,r=n.offsetHeight,o=e[0].offsetTop;o>r&&(n.scrollTop=o-r/2+i/2),o<r&&(n.scrollTop=o-r/2-i/2)}}}}async set(t,e=!0){t?(this.shouldTriggerChange=e,Array.isArray(t)&&this.addChecked(t),"string"!=typeof t&&"number"!=typeof t||this.selectedItem(t)):this.setClear()}async get(){var t,e;return this.value?this.checkboxes?null===(e=null===(t=await this.getCheckedList())||void 0===t?void 0:t.checkedList)||void 0===e?void 0:e.map((t=>t.id)):this.value.id:null}async getCheckedList(){return Promise.resolve(Em.getCheckedList(this._id))}async getSelected(){return Promise.resolve(Em.getSelected(this._id))}async getValue(){return Promise.resolve(this.value)}async triggerChange(t){this.shouldTriggerChange=t}async addChecked(t=[],e=!1,n=!0){return t&&t.length>0&&(e||(Em.setClear(this._id),await p(10)),await Em.addChecked(this._id,t),await p(10),n&&(this.value=(await this.getCheckedList()).checkedList),this.markForCheck()),Promise.resolve(this.value)}async selected(t){return!!t&&Promise.resolve(await this.selectedItem(t))}async setClear(t){return Em.setClear(this._id),this.value=null,this.inputText="",this.isOpen=!1,this.selectAllItem.indeterminate="uncheck",this.markForCheck(),t&&(t.stopPropagation(),t.preventDefault()),await p(10),Promise.resolve()}async resetCaption(){return await p(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await p(10),Promise.resolve()}detectClone(){const t=document.querySelectorAll(`#bcm-list-${this._id}`);t.length>0&&t.forEach((t=>{const e=t.getAttribute("temp-id");e!==`bcm-list-${this.tempId}`&&(console.warn(`[bcm-list] - Detected duplicate temp-id="${e}"`),t.remove())}))}async show(){return this.isOpen=!0,Promise.resolve()}async hide(){return this.isOpen=!1,Promise.resolve()}updateOptions(){Em.updateOptions(this._id,this)}handleIndeterminate(t,e){this.selectAllItem=Object.assign(Object.assign({},this.selectAllItem),{indeterminate:this.checkboxes&&t>0?t===e?"check":"indeterminate":"uncheck",checked:!!(this.checkboxes&&t>0)&&t===e})}listenResize(){this.calculateLocation(),this.markForCheck()}async unSelectOther(){return await this.onClearSearch(),this.isSelectedOther=!1,this.searchFound=null,this.returnFilterData={},Em.filterData(this._id,null),await p(10),Promise.resolve()}async onClearSearch(){const t=document.getElementById(`bcm-list-${this._id}-search`);return t&&await t.handleClear(),Promise.resolve()}async onSelectSearch(){const t=document.getElementById(`bcm-list-${this._id}-search`);t&&(await p(100),t.onBcmFocus(),t.onBcmSelect())}async filterOtherList(t){const e=(await this.getCheckedList()).nestedResult,n=l.convertIdsToNestedData(t,e);this.returnFilterData=await Em.filterData(this._id,n,null,!0),this.searchFound=(null==t?void 0:t.length)||0,this.limit=500,this.searchGetParents=null,await p(1e3),this.markForCheck()}async initState(){var t,e,n;this.onClearSearch(),await Em.setValue({id:this._id,dataSource:this.data&&a((()=>"string"==typeof this.data?JSON.parse(this.data):this.data),[]),options:this});const{totalRoots:i,totalItems:r}=Em.getValue(this._id);if(this.totalData=r,this.totalRootData=i,this.value=this.checkboxes?(await this.getCheckedList()).checkedList:Em.selectedItem(this._id)?Em.selectedItem(this._id)[0]:null,this.checkboxes||(this.inputText=l.domParser(null===(t=this.value)||void 0===t?void 0:t.text)||null),this.checkboxes&&(null===(e=this.value)||void 0===e?void 0:e.length)>0){const t=[];this.value.forEach((e=>{e.items&&0!==e.items.length||t.push(e.id)})),await this.addChecked(t,!1,!1)}await this.handleIndeterminate(null===(n=this.value)||void 0===n?void 0:n.length,this.totalData),await this.markForCheck()}async markForCheck(){await p(10),this.tick=l.UID()}getOptions(){return a((()=>Em.getValue(this._id).options),{})}getItems(){return this.isSelectedOther?this.returnFilterData.checkedItems:a((()=>Em.getData(this._id)),[])}getLimitedItems(t){return a((()=>Em.getDataPagination(this._id,this.searchResultLimit||this.limit,t)),[])}openGroup(t){Em.openGroup(this._id,t),this.markForCheck()}focusItem(t){if(t.target.classList.contains("bcm-list__item")){const e=t.target,n=document.getElementById(`bcm-list-${this._id}`);if(n&&n.querySelectorAll(".bcm-list__item").length>0){const t=n.querySelector(".bcm-list__item.focused");t&&t.classList.remove("focused"),e.classList.add("focused")}}}async selectedItem(t){var e;if(!this.checkboxes&&(this.value=Em.selectedItem(this._id,t)?Em.selectedItem(this._id,t)[0]:null,this.inputText=l.domParser(null===(e=this.value)||void 0===e?void 0:e.text)||null,this.isOpen=!1,this.markForCheck(),"autocomplete"==this.type&&this.value)){const t=this.getAutoCompleteInput();t&&setTimeout((()=>{var e;t.setValue((null===(e=this.value)||void 0===e?void 0:e.text)||""),this.isOpen=!1}),100)}return Promise.resolve(this.value)}async checkedItem(t){"select-all"===t?Em.selectAll(this._id,!this.selectAllItem.checked):Em.checkedItem(this._id,t),this.value=(await this.getCheckedList()).checkedList,this.changeVisibleCheckeds(),this.markForCheck()}changeVisibleCheckeds(){const{visibledItems:t}=this.returnFilterData;this.returnFilterData={visibledItems:t,checkedItems:t&&t.filter((t=>t.checked))||[]}}getAutoCompleteInput(){return document.getElementById(`bcm-list-input-tag-container-${this._id}-autocomplete-input`)}dataScrollEvent(t){let e=0,n=new IntersectionObserver((t=>{0===e&&(e++,t[0].isIntersecting&&(this.limit+=15,this.searchResultLimit+=15,n.disconnect(),n=null))}),this.options);n.observe(t.target.lastElementChild)}async calculateLocation(){var t,e;if("select"==this.type||"autocomplete"==this.type||this.linkedComponent){const i=document.getElementById(`bcm-list-${this._id}`);var n=this.placement;const r=document.getElementById(this.linkedComponent?this.linkedComponent:`bcm-list-input-${this._id}`);if(i&&r){O(i,r,n,(t=>n=t)),await p(10);let o=E(n,r),c=0,a=0;if(this.linkedComponent){const n=document.getElementById(this.linkedComponent);if(n){if(!n.noCaption){const e=(null===(t=n.shadowRoot)||void 0===t?void 0:t.querySelector(".bcm-caption-area"))||n.querySelector(".bcm-caption-area");e&&(c=e.offsetHeight||e.clientHeight)}const i=(null===(e=n.shadowRoot)||void 0===e?void 0:e.querySelector(".bcm-label"))||n.querySelector(".bcm-label");i&&(a=i.offsetHeight||i.clientHeight)}}i.style.width=this.fullWidth?r.offsetWidth+"px":this.width||"auto",i.style.height=this.height.indexOf("%")>-1?.01*S.toNumber(this.height)*window.innerHeight-o[0]-50+"px":this.height,i.style.minHeight=this.minHeight;const l="top"==n.split("-")[0]?window.innerHeight-(window.innerHeight-o[0])-50:window.innerHeight-o[0]-50;i.style.maxHeight=this.maxHeight.indexOf("%")>-1?.01*S.toNumber(this.maxHeight)*l+"px":S.toNumber(this.maxHeight)<l?this.maxHeight:l+"px",O(i,r,n,(t=>n=t)),await p(10),o=E(n,r),i.style.top=("top"==n.split("-")[0]?o[0]-i.offsetHeight+a:o[0]-c)+"px",i.style.left="end"==n.split("-")[1]?o[1]-i.offsetWidth+"px":o[1]+"px",i.classList.toggle("bcm-list--top","top"==n.split("-")[0]),this.calculatedViewport=!0}}}handleTransitionEnd(t){const{isOpen:e,type:n}=this;e&&"select"==n&&"transform"==(null==t?void 0:t.propertyName)&&this.listOpen.emit()}render(){const{checkboxes:e,treeview:n,label:r,size:o,disabled:c,readonly:a,required:l,hidden:s,fullWidth:f,searchable:d}=this.getOptions(),b=h("bcm-list",`bcm-list__size-${o}`,`bcm-list__${this.type}`,"large"===o?"size-3":"size-2",{error:this.captionType==u.Status.error,"full-width":f,"bcm-list__linked":this.linkedComponent,hidden:s,readonly:a,disabled:c}),p=h("bcm-list__container",this.linkedComponent?"bcm-list__type-linked-component":`bcm-list__type-${this.type}`,{"is-open":this.isOpen&&this.calculatedViewport,error:this.captionType==u.Status.error,"full-width":f,hidden:s,readonly:a,disabled:c}),v=h("bcm-list__input"),g="select"==this.type||"autocomplete"==this.type||this.linkedComponent;return t(i,{class:b,tabindex:"0",style:{"--width":f?"100%":this.width,"--height":g?"100%":this.height,"--max-height":g?"inherit":this.maxHeight,"--min-height":g?"inherit":this.minHeight}},t("div",{id:`bcm-list-label-${this._id}`,class:"bcm-list__label"},r&&t("div",null,t("bcm-label",{tooltip:this.tooltip,size:this.size,type:this.captionType,value:r,required:l,htmlFor:this._id}))),"select"==this.type&&t("div",{id:`bcm-list-input-${this._id}`,class:v},t("span",{class:h("bcm-list__input-container",{"type-single":!e,"value-empty":!this.value})},this.checkboxes?this.value&&this.value.length>0?t("bcm-rc-overflow",{data:this.tagData,maxCount:this.tagCount}):t("span",{class:"bcm-list__input-placeholder"},this.placeholder):this.value?this.inputText:t("span",{class:"bcm-list__input-placeholder"},this.placeholder)),t("span",{class:h("bcm-list__input-buttons",{disabled:c})},this.clearable&&this.value&&t("div",{class:"bcm-list__input-buttons-button"},t("bcm-icon",{icon:"fal fa-times",onClick:t=>!c&&this.setClear(t)})),t("div",{class:`bcm-list__input-buttons-button caret-is ${this.isOpen&&this.calculatedViewport&&"caret-is-open"}`},t("bcm-icon",{icon:"far fa-angle-down"})))),"autocomplete"===this.type&&t("div",{id:`bcm-list-input-${this._id}`,class:h(v,{"bcm-list__input-autocomplete":"autocomplete"==this.type})},t("span",{class:"bcm-list__input-container",id:`bcm-list-input-tag-container-${this._id}`},this.checkboxes&&t("span",{class:"bcm-list__input-tag-container",id:`bcm-list-input-tag-container-${this._id}-autocomplete`}),t("bcm-search",{id:`bcm-list-input-tag-container-${this._id}-autocomplete-input`,class:"bcm-list__autocomplete",data:this.data,clearable:!0,"full-width":!0,"no-caption":!0,placeholder:this.placeholder}))),t(ah,{highlight:this.highlightText,searchable:"autocomplete"!=this.type&&d,bcmListContainer:p,checkboxes:e,treeview:n,infoFooter:this.infoFooter,value:this.value,totalData:this.totalData,searchFound:this.searchFound,variableText:this.variableText,searchPlaceholder:this.searchPlaceholder,minSearchLength:this.minSearchLength,searchIsOnlyChilds:this.searchIsOnlyChilds,_id:this._id,tempId:this.tempId,checkAll:this.checkAll,data:this.getItems(),width:this.width,height:this.height,size:this.size,selectAllItem:this.selectAllItem,onScrollEvent:t=>this.dataScrollEvent(t),items:this.getLimitedItems(this.searchGetParents),selectedItem:t=>this.selectedItem(t),checkedItem:t=>this.checkedItem(t),openGroup:t=>this.openGroup(t),focusItem:t=>this.focusItem(t),emptyText:this.emptyText,emptyIcon:this.emptyIcon,handleTransitionEnd:t=>this.handleTransitionEnd(t)}),t(m,{noCaption:this.noCaption,captionType:this.captionType,captionError:this.captionError,caption:this.caption}))}get el(){return r(this)}static get watchers(){return{_id:["watchId"],value:["handleValueChange"],returnFilterData:["watchReturnFilterData"],isOpen:["handleOpen"],data:["dataChanged"]}}};Im([x()],Rm.prototype,"el",void 0),Im([R("data",!0)],Rm.prototype,"dataChanged",null),Rm.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}*{box-sizing:border-box}.bcm-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0;display:none}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:"";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}.bcm-list{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;--width:256px;--height:256px;--max-height:inherit;--min-height:inherit;min-width:90px;display:flex;flex-direction:column;margin:0 0 8px 0}.bcm-list__listbox .bcm-list__container{height:var(--height);max-height:var(--max-height);min-height:var(--min-height)}.bcm-list.full-width{width:100%}.bcm-list__size-small .bcm-list__input{height:24px;font-size:12px;line-height:calc(12px + 8px)}.bcm-list__size-small .bcm-list__input .bcm-tag__content.dismissable{font-size:10px;line-height:calc(10px + 8px)}.bcm-list__size-medium .bcm-list__input{height:32px;font-size:14px;line-height:calc(14px + 8px)}.bcm-list__size-medium .bcm-list__input .bcm-tag__content.dismissable{font-size:12px;line-height:calc(12px + 8px)}.bcm-list__size-large .bcm-list__input{height:40px;font-size:16px;line-height:calc(16px + 8px)}.bcm-list__size-large .bcm-list__input .bcm-tag__content.dismissable{font-size:14px;line-height:calc(14px + 8px)}.bcm-list:hover{outline:none}.bcm-list:hover .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-500);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list:focus-visible{outline:none}.bcm-list:focus-visible .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-600);background-color:var(--bcm-new-ds-color-white)}.bcm-list:active{outline:none}.bcm-list:active .bcm-list__input{border-color:var(--bcm-new-ds-color-blue-600);box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-list__container{--width:256px;--height:256px;width:var(--width);height:var(--height);background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;padding-top:8px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:4px}.bcm-list__container main{scroll-behavior:smooth;padding:0 8px;flex:1;overflow:auto;display:flex;flex-direction:column}.bcm-list__container-search{margin:0 8px}.bcm-list__container-search:after{margin:4px 0}.bcm-list__container-no-data{flex:1;display:flex;justify-content:stretch;align-items:stretch;padding-bottom:4px}.bcm-list__container.error{border-color:var(--bcm-color-red-6)}.bcm-list__container.full-width{width:100%}.bcm-list__container.bcm-list__type-linked-component,.bcm-list__container.bcm-list__type-select,.bcm-list__container.bcm-list__type-autocomplete{display:none;opacity:0;visibility:hidden;position:absolute;top:0;left:0;height:0;width:0;transform:translateY(10%);z-index:10800;transition:visibility 0s linear 400ms, opacity 100ms, transform 200ms}.bcm-list__container.bcm-list__type-linked-component.bcm-list--top,.bcm-list__container.bcm-list__type-select.bcm-list--top,.bcm-list__container.bcm-list__type-autocomplete.bcm-list--top{transform:translateY(-10%)}.bcm-list__container.bcm-list__type-linked-component.is-open,.bcm-list__container.bcm-list__type-select.is-open,.bcm-list__container.bcm-list__type-autocomplete.is-open{display:flex;opacity:1;transform:translateY(0);visibility:visible;transition:visibility 0s linear 0s, opacity 100ms, transform 100ms}.bcm-list__container.bcm-list__type-linked-component{margin-top:2px}.bcm-list__label{line-height:1}.bcm-list__input{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-white);user-select:none;cursor:pointer;padding:0 8px;height:32px;overflow:hidden;position:relative;transition:background-color 100ms, border-color 100ms}.bcm-list__input-spinner{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background-color:var(--bcm-color-grey-1);opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out;z-index:-1}.bcm-list__input-spinner.is-open{opacity:1;visibility:visible;z-index:1}.bcm-list__input-container{flex:1;display:block;overflow:hidden}.bcm-list__input-container.value-empty{color:var(--bcm-color-grey-6)}.bcm-list__input-container.type-single,.bcm-list__input-container.value-empty{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bcm-list__input-placeholder{color:var(--bcm-color-grey-6)}.bcm-list__input-tag-container{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;grid-gap:2px;line-height:1}.bcm-list__input-buttons{display:flex;align-items:center;justify-content:flex-end;grid-gap:4px}.bcm-list__input-buttons-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 4px 0 4px;font-size:16px;color:var(--bcm-new-ds-color-slate-500)}.bcm-list__input-buttons-button.caret-is{transform:rotate(360deg);transition:transform 0.2s ease-in-out}.bcm-list__input-buttons-button.caret-is-open{transform:rotate(180deg)}.bcm-list__input-buttons:not(.disabled) .bcm-list__input-buttons-button:hover{cursor:pointer;color:var(--bcm-new-ds-color-slate-600)}.bcm-list__input-autocomplete{position:relative;padding-right:0}.bcm-list__input-autocomplete .bcm-list-input-selected-text{background-color:#ffffff;display:flex;align-items:center;justify-content:flex-start;width:calc(100% - 24px);height:100%;padding:0 calc(8px + 4px);position:absolute;top:0;left:0}.bcm-list__input-autocomplete .bcm-list__input-container{height:100%;display:flex;flex-direction:row}.bcm-list__input-autocomplete .bcm-list__input-container .bcm-list__input-tag-container{width:auto}.bcm-list__input-autocomplete .bcm-input,.bcm-list__input-autocomplete .bcm-list__autocomplete{height:100%;min-width:70px;width:100%}.bcm-list__input-autocomplete .bcm-input__container,.bcm-list__input-autocomplete .bcm-list__autocomplete__container{height:100%;border:none;padding:0;width:100%}.bcm-list__input-autocomplete .bcm-input__container:not(.disabled).focused,.bcm-list__input-autocomplete .bcm-input__container:not(.disabled):hover,.bcm-list__input-autocomplete .bcm-list__autocomplete__container:not(.disabled).focused,.bcm-list__input-autocomplete .bcm-list__autocomplete__container:not(.disabled):hover{border:none;box-shadow:none}.bcm-list__autocomplete{width:100%;position:relative}.bcm-list.full-width .bcm-list__container,.bcm-list.full-width .bcm-list__input{width:100%}.bcm-list.error .bcm-list__input{border-color:var(--bcm-color-red-6)}.bcm-list.disabled .bcm-list__container,.bcm-list.disabled .bcm-list__input{color:var(--bcm-new-ds-color-slate-300);background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-list.disabled .bcm-tag__content.dismissable .close-button{cursor:default}.bcm-list:not(.disabled) .bcm-list__input .bcm-tag__content.checked .close-button bcm-icon{color:var(--bcm-new-ds-color-slate-100)}.bcm-list:not(.disabled) .bcm-list__input .bcm-tag__content.checked .close-button:hover bcm-icon{color:var(--bcm-new-ds-color-slate-200)}.bcm-list:not(.disabled) .bcm-list__input:hover{border-color:var(--bcm-new-ds-color-blue-500)}.bcm-list:not(.disabled) .bcm-list__input:hover .bcm-tag__content.dismissable:not(.checked){background-color:var(--bcm-new-ds-color-slate-200);border-color:var(--bcm-new-ds-color-slate-200)}.bcm-list:not(.disabled) .bcm-list__input:focus-visible{border-color:var(--bcm-new-ds-color-blue-500);box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-list:not(.disabled) .bcm-list__input:active{border-color:var(--bcm-new-ds-color-blue-500)}.bcm-list__item{padding:2px 0}.bcm-list__item.disabled{user-select:none}.bcm-list__item:focus{outline:none}.bcm-list__item:focus-visible>.bcm-list__item-content{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-list__item:focus-visible>.bcm-list__item-content:not(.disabled){color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item-content{display:flex;flex-direction:row;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;cursor:pointer;border-radius:4px;padding:0;padding-left:4px;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-50);transition:background-color 0.2s ease}.bcm-list__item-content.disabled{color:var(--bcm-new-ds-color-slate-300);background-color:var(--bcm-new-ds-color-slate-50);user-select:none;cursor:not-allowed}.bcm-list__item-content.selected{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-new-ds-color-blue-500)}.bcm-list__item-content.selected:hover:not(.disabled){color:var(--bcm-new-ds-color-white);background-color:var(--bcm-new-ds-color-blue-600)}.bcm-list__item-content:hover:not(.disabled){color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-100)}.bcm-list__item-content:active:not(.disabled){color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-200)}.bcm-list__item-content-collapse-icon{width:16px;padding:0 8px;display:flex;align-items:center;justify-content:center;font-size:16px}.bcm-list__item-content-collapse-icon.child{cursor:pointer}.bcm-list__item-content-text{user-select:none;padding:8px;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.bcm-list__item-content-text.treeview{padding:8px 0}.bcm-list__item-content-text-checkbox{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;margin-right:8px}.bcm-list__item-content-text-checkbox .bcm-checkbox{margin:0}.bcm-list__item-content-text-inner{width:100%}.bcm-list__item-content-text mark{padding:0;margin:0;font-size:inherit;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-yellow-4)}.bcm-list__item-childs{padding-left:16px}.bcm-list__item-small{padding:2px 0 2px 8px;font-size:10px;line-height:calc(10px + 8px)}.bcm-list__item-small .bcm-list__item-content-text{padding:3px 4px}.bcm-list__item-medium{font-size:12px;line-height:calc(12px + 8px)}.bcm-list__item-medium .bcm-list__item-content-text{padding:6px 4px}.bcm-list__item-large{font-size:14px;line-height:calc(14px + 8px)}.bcm-list__item-large .bcm-list__item-content-text{padding:9px 4px}.bcm-list__item--readonly:focus>.bcm-list__item-content:not(.disabled),.bcm-list__item--readonly.focused>.bcm-list__item-content:not(.disabled){color:var(--bcm-color-grey-7)}.bcm-list__item--readonly>.bcm-list__item-content{color:var(--bcm-color-grey-7)}.bcm-list__item--readonly>.bcm-list__item-content:hover,.bcm-list__item--readonly>.bcm-list__item-content:focus{color:var(--bcm-color-grey-7)}.bcm-list__item--group{border-radius:4px}.bcm-list__item--group:focus>.bcm-list__item-content:not(.disabled){background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--group>.bcm-list__item-content{background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600);border-radius:4px 4px 0 0;cursor:default;font-size:14px;line-height:calc(14px + 8px);font-weight:500;position:sticky;top:0}.bcm-list__item--group>.bcm-list__item-content>.bcm-list__item-content-text{padding:4px 8px 4px 16px}.bcm-list__item--group>.bcm-list__item-content:hover,.bcm-list__item--group>.bcm-list__item-content:focus{color:var(--bcm-new-ds-color-slate-800);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list__item--group>.bcm-list__item-content-unclickable:hover{color:var(--bcm-new-ds-color-slate-700);background-color:var(--bcm-new-ds-color-slate-50)}.bcm-list__item--group>.bcm-list__item-childs{background-color:var(--bcm-new-ds-color-slate-50);color:var(--bcm-new-ds-color-slate-600);padding-bottom:8px;border-radius:0 0 4px 4px;padding-left:8px}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content{background-color:var(--bcm-new-ds-color-white);color:var(--bcm-new-ds-color-slate-600)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:hover{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:active{background-color:var(--bcm-new-ds-color-slate-200)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content:focus-visible{background-color:var(--bcm-new-ds-color-slate-300)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected{background-color:var(--bcm-new-ds-color-blue-500);color:var(--bcm-new-ds-color-white)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected:hover{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-list__item--group>.bcm-list__item-childs .bcm-list__item-content.selected:active{background-color:var(--bcm-new-ds-color-blue-700)}.bcm-list__linked{display:none}.bcm-list .bcm-tag--other .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bcm-info-footer{text-align:right;padding:4px 8px;background-color:var(--bcm-new-ds-color-slate-100);color:var(--bcm-new-ds-color-slate-600);border-radius:0 0 4px 4px}';let Ym=0;const Am={email:'<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"/></svg>',tel:'<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M476.5 22.9L382.3 1.2c-21.6-5-43.6 6.2-52.3 26.6l-43.5 101.5c-8 18.6-2.6 40.6 13.1 53.4l40 32.7C311 267.8 267.8 311 215.4 339.5l-32.7-40c-12.8-15.7-34.8-21.1-53.4-13.1L27.7 329.9c-20.4 8.7-31.5 30.7-26.6 52.3l21.7 94.2c4.8 20.9 23.2 35.5 44.6 35.5C312.3 512 512 313.7 512 67.5c0-21.4-14.6-39.8-35.5-44.6zM69.3 464l-20.9-90.7 98.2-42.1 55.7 68.1c98.8-46.4 150.6-98 197-197l-68.1-55.7 42.1-98.2L464 69.3C463 286.9 286.9 463 69.3 464z"/></svg>',search:'<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z"/></svg>',url:'<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M314.222 197.78c51.091 51.091 54.377 132.287 9.75 187.16-6.242 7.73-2.784 3.865-84.94 86.02-54.696 54.696-143.266 54.745-197.99 0-54.711-54.69-54.734-143.255 0-197.99 32.773-32.773 51.835-51.899 63.409-63.457 7.463-7.452 20.331-2.354 20.486 8.192a173.31 173.31 0 0 0 4.746 37.828c.966 4.029-.272 8.269-3.202 11.198L80.632 312.57c-32.755 32.775-32.887 85.892 0 118.8 32.775 32.755 85.892 32.887 118.8 0l75.19-75.2c32.718-32.725 32.777-86.013 0-118.79a83.722 83.722 0 0 0-22.814-16.229c-4.623-2.233-7.182-7.25-6.561-12.346 1.356-11.122 6.296-21.885 14.815-30.405l4.375-4.375c3.625-3.626 9.177-4.594 13.76-2.294 12.999 6.524 25.187 15.211 36.025 26.049zM470.958 41.04c-54.724-54.745-143.294-54.696-197.99 0-82.156 82.156-78.698 78.29-84.94 86.02-44.627 54.873-41.341 136.069 9.75 187.16 10.838 10.838 23.026 19.525 36.025 26.049 4.582 2.3 10.134 1.331 13.76-2.294l4.375-4.375c8.52-8.519 13.459-19.283 14.815-30.405.621-5.096-1.938-10.113-6.561-12.346a83.706 83.706 0 0 1-22.814-16.229c-32.777-32.777-32.718-86.065 0-118.79l75.19-75.2c32.908-32.887 86.025-32.755 118.8 0 32.887 32.908 32.755 86.025 0 118.8l-45.848 45.84c-2.93 2.929-4.168 7.169-3.202 11.198a173.31 173.31 0 0 1 4.746 37.828c.155 10.546 13.023 15.644 20.486 8.192 11.574-11.558 30.636-30.684 63.409-63.457 54.733-54.735 54.71-143.3-.001-197.991z"/></svg>'},Pm=class{constructor(t){e(this,t),this.focus=n(this,"bcm-focus",7),this.blur=n(this,"bcm-blur",7),this.clear=n(this,"bcm-clear",7),this.change=n(this,"bcm-change",7),this.input=n(this,"bcm-input",7),this.inputId="input-"+ ++Ym,this.isBlur=!1,this.type="text",this.value="",this.size="medium",this.label=void 0,this.noCaption=!1,this.noMargin=!1,this.captionError=void 0,this.caption=void 0,this.captionType="default",this.placeholder=void 0,this.fullWidth=!1,this.disabled=!1,this.readonly=!1,this.clearable=!1,this.passwordToggle=void 0,this.noDefaultIcon=void 0,this._id=void 0,this._internal_id=(4*Math.random()).toString(16).replace(".",""),this.name=void 0,this.unit=null,this.unitPrefix=null,this.decimal=void 0,this.min=null,this.max=null,this.step=null,this.hidden=!1,this.required=!1,this.disableWatchValue=!1,this.maxLength=null,this.tooltip=void 0,this.inValid=!1,this.valueCache=void 0,this.captionCache=void 0,this.captionTypeCache=void 0,this.hasFocus=!1,this.isPasswordVisible=!1}async setFocus(){this.inputElement.focus()}async removeFocus(){this.inputElement.blur()}async select(){return this.inputElement.select()}async setValue(t){return this.inputElement.value=t,this.value=t,this.handleChange(),t}async setClear(){return this.inputElement.value="",this.value="",await p(10),Promise.resolve()}async resetCaption(){return await p(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await p(10),Promise.resolve()}async getValue(){return this.value}handleFocus(){this.hasFocus=!0,this.focus.emit()}handleBlur(){this.hasFocus=!1,this.isBlur=!0,"email"==this.type&&this.isEmailValid(),"tel"==this.type&&this.isTelValid(),this.blur.emit()}handleChange(){this.value=this.inputElement.value,this.change.emit(this.value)}handleInput(){"number"==this.type&&(this.inputElement.value=this.inputElement.value.replace("false"==this.decimal?/[^0-9-]/g:/[^0-9.,-]/g,""),this.inputElement.value=this.inputElement.value.replace(/(\..*)\./g,"$1").replace(/(\-.*)\-/g,"$1")),this.value=this.inputElement.value,this.input.emit(this.value)}handleClear(t){this.inputElement.value="",this.value="",this.inputElement.focus(),this.change.emit(this.value),this.clear.emit(t),t.stopPropagation()}changePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible}incrementNumber(){if(!this.inValid&&!this.disabled&&!this.readonly){let t=this.getNumberStep(),e=Number(this.value)+Number(t);this.value=this.numberDecimal(e)}}decrementNumber(){if(!this.inValid&&!this.disabled&&!this.readonly){let t=this.getNumberStep(),e=Number(this.value)-Number(t);this.value=this.numberDecimal(e)}}getNumberStep(t=Number(this.step)){let e=1;return t&&Number(t)==t&&(e=t),Number(e)}connectedCallback(){this.changePasswordVisibility=this.changePasswordVisibility.bind(this),this.handleChange=this.handleChange.bind(this),this.handleBlur=this.handleBlur.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleInput=this.handleInput.bind(this),this.handleClear=this.handleClear.bind(this),this.incrementNumber=this.incrementNumber.bind(this),this.decrementNumber=this.decrementNumber.bind(this),this.valueCache=this.value,this.captionCache=this.caption,this.captionTypeCache=this.captionType}validationRange(t=JSON.stringify({value:this.value,min:this.min,max:this.max})){let e=null,n=null,i=!0,r=JSON.parse(t),{length:o,value:c,min:a,max:l}=r;return o=parseFloat(o),c=parseFloat(c),a=parseFloat(a),l=parseFloat(l),0!==o&&c&&(a&&l&&(c<a||c>l)&&(e="Please enter a value between "+a+" and "+l+".",n="error",i=!1)||a&&!l&&c<a&&(e="Please enter a value greater than or equal to "+a+".",n="error",i=!1)||!a&&l&&c>l&&(e="Please enter a value less than or equal to "+l+".",n="error",i=!1)),this.setCaption(e,n),i}setCaption(t=null,e=null){this.caption=t||this.captionCache,this.captionType=e||this.captionTypeCache,this.captionError="error"==e?t:null}isEmailValid(){const{value:t}=this,e=new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);let n=null,i=null;return t&&!e.test(t)?(n="Please enter a valid email address.",i="error",this.inValid=!0):this.inValid=!1,this.setCaption(n,i),this.inValid}isTelValid(){const{value:t}=this,e=new RegExp(/^(?=.*[0-9])[- +()0-9]+$/);let n=null,i=null;return t&&!e.test(t)?(n="Please enter a valid phone number.",i="error",this.inValid=!0):this.inValid=!1,this.setCaption(n,i),this.inValid}isNumberValid(t="Invalid number",e="error"){const{value:n}=this;return n&&Number(n)!=n?(this.inValid=!0,this.setCaption(t,e),!0):(this.inValid=!1,!1)}setNumberUnit(){const{value:t,unit:e}=this;Number(t)==t&&(null==e?void 0:e.length)>0&&!t&&(this.value=0)}numberDecimal(t=""){let e=this.getDecimalLength();return t&&e?parseFloat(t).toFixed(e):t}numberNotDecimal(t=0){return Math.trunc(t)}getDecimalLength(){const{step:t}=this;let e,n,i=0;return t&&Number(t)==t&&(String(t).includes(".")?(e=String(t).split("."),n=e[e.length-1].length):n=0,i=n),Number(i)}componentWillRender(){const{type:t}=this;"number"==t&&this.value&&(this.isNumberValid()||this.validationRange()),this.isBlur&&("email"==t&&this.value&&this.isEmailValid(),"tel"==t&&this.value&&this.isTelValid())}componentWillLoad(){const{type:t,value:e}=this;"number"==t&&Number(e)==e&&(this.value=this.numberDecimal(e))}numberControl(t){if(!this.disabled&&!this.readonly&&"number"==this.type){var e=t.which||0,n=t.key;if(38==e&&(t.preventDefault(),this.incrementNumber()),40==e&&(t.preventDefault(),this.decrementNumber()),"."==n&&String(this.value).includes(".")&&t.preventDefault(),8==e||9==e||13==e||16==e||17==e||18==e||46==e||110==e&&"number"==this.type&&0!=this.decimal||190==e&&"."==n&&"number"==this.type&&0!=this.decimal||189==e&&0==this.inputElement.value.length||109==e&&0==this.inputElement.value.length||e>=35&&e<=40||e>=48&&e<=57||e>=96&&e<=105)return!0;t.preventDefault(),1==this.decimal?this.value=this.numberDecimal(this.value):0==this.decimal&&(this.value=this.numberNotDecimal(this.value))}}whatchHasFocus(){const{type:t,hasFocus:e,value:n,valueCache:i,inValid:r}=this;if("number"==t){this.isNumberValid();let t=!1;1==e?1==r&&(this.value="",t=!0):(""==this.value&&0==r&&(this.value=i,t=!0),n!=i&&0==r&&0==t&&(this.value=n?this.numberDecimal(n):""))}}watchValue(){this.disableWatchValue||"number"==this.type||this.handleChange()}render(){const{value:e,size:n,label:r,type:o,captionType:c,caption:a,captionError:l,placeholder:s,fullWidth:u,disabled:f,readonly:d,clearable:b,passwordToggle:p,isPasswordVisible:v,noDefaultIcon:g,unit:x,inValid:y,hasFocus:w,unitPrefix:k,noCaption:_,required:z}=this,C=h("input-container",{"full-width":u,error:"error"==c}),S=h("input-base","input-"+n,{invalid:y,unit:(null==x?void 0:x.length)>0,focused:w,disabled:f,readonly:d,empty:(null==e?void 0:e.length)<1}),D="large"===n?"size-3":"size-2",j=h(this.hidden?"hidden":null,this.noMargin?"no-margin":null);return t(i,{class:j},t("div",{class:C},r&&t("div",null,t("bcm-label",{tooltip:this.tooltip,type:c,value:r,required:z,htmlFor:this.inputId})),t("div",{class:S},t("span",{class:"input-prefix"},t("slot",{name:"prefix"}),k&&t("span",{class:h(D,"unit-prefix")},k)),t("input",{"bcm-internal-id":this._id,id:this.inputId,class:D,ref:t=>this.inputElement=t,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onInput:this.handleInput,maxLength:this.maxLength,type:"password"===o&&v||"number"===o?"text":o,placeholder:s,value:"number"!==o||this.hasFocus?e:e+(e&&(null==x?void 0:x.length)>0?" "+x:""),disabled:this.disabled,readonly:this.readonly}),b&&!this.disabled&&t("button",{class:"input-clear-button",onClick:this.handleClear},t("svg",{style:{fill:"#595959",width:"14px",height:"14px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},t("path",{d:"M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"}))),"password"===o&&p&&t("button",{class:"input-password-toggle",onClick:this.changePasswordVisibility},t("bcm-icon",{icon:v?"far fa-eye-invisible":"far fa-eye"})),Object.keys(Am).includes(o)&&!g&&t("span",{class:"input-suffix default-icon",innerHTML:Am[o]}),"number"===o&&t("div",{class:h("caret-container",{unit:(null==x?void 0:x.length)>0},{disabled:y},{disabled:d})},t("span",{class:"caret",onClick:0==y&&this.incrementNumber},t("bcm-icon",{icon:"far fa-caret-up"})),t("span",{class:"caret",onClick:0==y&&this.decrementNumber},t("bcm-icon",{icon:"far fa-caret-down"}))),"number"!==o&&t("span",{class:"input-suffix"},t("slot",{name:"suffix"}))),t(m,{noCaption:_,captionType:c,captionError:l,caption:a})))}get el(){return r(this)}static get watchers(){return{hasFocus:["whatchHasFocus"],value:["watchValue"]}}};function Fm(){return Fm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Fm.apply(this,arguments)}function $m(t){return $m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$m(t)}function Lm(t,e,n){return(e=function(t){var e=function(t){if("object"!==$m(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==$m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===$m(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Wm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hm(Object(n),!0).forEach((function(e){Lm(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Um(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,c,a=[],l=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){s=!0,r=t}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Vm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vm(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bm(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Gm(){return Gm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Gm.apply(this,arguments)}
|
|
14
|
+
/** @license React v16.13.1
|
|
15
|
+
* react-is.production.min.js
|
|
16
|
+
*
|
|
17
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the MIT license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/Pm.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:inline-block;width:100%;margin:0 0 8px 0}:host(.hidden){display:none}:host(.no-margin){margin:0}.input-container{display:flex;flex-direction:column;width:100%;max-width:256px}.input-container.full-width{max-width:100%}.input-base{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;vertical-align:middle;overflow:hidden;padding:0 4px;cursor:text}.input-base.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.input-base.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-300)}.input-base.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.input-base.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.input-base:not(.disabled):hover .caret-container,.input-base:not(.disabled).focused .caret-container{opacity:1}.input-base:not(.disabled):hover .input-clear-button,.input-base:not(.disabled).focused .input-clear-button{opacity:1}.input-base:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.input-base:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.input-base.focused:not(.disabled) .caret-container{opacity:1}.input-base.focused:not(.disabled) .input-clear-button{opacity:1}.input-base:hover:not(.disabled) .caret-container{opacity:1}.input-base:hover:not(.disabled) .input-clear-button{opacity:1}.input-base.disabled{cursor:not-allowed}.input-base.readonly{cursor:default}.input-base.empty .input-clear-button{display:none}.input-base.invalid,.input-base.error{border-color:var(--bcm-new-ds-color-red-500)}.error .label{color:var(--bcm-new-ds-color-red-500) !important}.error .input-base{border-color:var(--bcm-new-ds-color-red-500) !important}.input-base input{color:var(--bcm-new-ds-color-slate-600);flex:1 1 auto;width:0%;border:none;border-radius:2px;background:none;box-shadow:none;padding:0;margin:0 4px;font-family:"Inter", sans-serif;cursor:inherit;-webkit-appearance:none;appearance:none}.input-base input::-webkit-search-decoration,.input-base input::-webkit-search-cancel-button,.input-base input::-webkit-search-results-button,.input-base input::-webkit-search-results-decoration{-webkit-appearance:none}.input-base input::placeholder{font-family:"Inter", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.input-base input:focus{outline:none}input::-webkit-calendar-picker-indicator{-webkit-appearance:none;display:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input[type=number]{-moz-appearance:textfield}.input-prefix,.input-suffix{display:inline-flex;align-items:center;justify-content:center;cursor:default;color:var(--bcm-new-ds-color-slate-500)}.input-prefix ::slotted(*),.input-prefix>span{line-height:1;margin-left:4px}.input-suffix ::slotted(*),.input-suffix>span{line-height:1;margin-right:4px}.input-clear-button,.input-password-toggle{display:inline-flex;align-items:center;border:none;background:none;padding:0;cursor:pointer;margin-right:4px;transition:0.2s opacity}.input-clear-button:last-child,.input-clear-button:last-of-type,.input-password-toggle:last-child,.input-password-toggle:last-of-type{margin-right:8px}.input-clear-button:focus,.input-password-toggle:focus{outline:none}.input-clear-button{opacity:0}.label{display:flex;flex-direction:column;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;color:var(--bcm-new-ds-color-slate-600);margin-bottom:4px}.caption-area{min-height:20px}.input-caption{display:block}.unit.input-suffix{width:24px}.unit-prefix{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default;color:var(--bcm-color-grey-8)}.caret-container{opacity:0;width:30px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-left:1px solid #D9D9D9;border-right:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box;margin-right:4px}.caret-container:last-of-type{margin-right:-space("xxxs");border-right:none}.caret-container .caret{display:inline-flex;height:50%;width:100%;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer}.caret-container .caret:hover{color:var(--bcm-color-prime-blue-6)}.caret-container .caret:active{background-color:var(--bcm-color-grey-3)}.caret-container .caret:last-child{border-top:1px solid #D9D9D9}.caret-container.disabled{background-color:var(--bcm-color-grey-3)}.caret-container.disabled .caret{cursor:not-allowed}.default-icon{margin-right:8px}.input-large{height:40px}.input-medium{height:32px}.input-small{height:24px}.bcm-label{font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:4px;font-weight:500;color:#475569}.bcm-label.tw-text-1{font-size:10px;line-height:18px}.bcm-label.tw-text-2{font-size:12px;line-height:20px}.bcm-label.tw-text-3{font-size:14px;line-height:22px}.bcm-caption-area{color:#dc2626;font-weight:400;justify-content:space-between;align-items:flex-start;flex-direction:row;min-height:20px;display:flex;margin-top:4px;font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bcm-caption-area.tw-text-1{font-size:10px;line-height:18px}.bcm-caption-area.tw-text-2{font-size:12px;line-height:20px}.bcm-caption-area.tw-text-3{font-size:14px;line-height:22px}';var qm="function"==typeof Symbol&&Symbol.for,Km=qm?Symbol.for("react.element"):60103,Zm=qm?Symbol.for("react.portal"):60106,Xm=qm?Symbol.for("react.fragment"):60107,Qm=qm?Symbol.for("react.strict_mode"):60108,Jm=qm?Symbol.for("react.profiler"):60114,tp=qm?Symbol.for("react.provider"):60109,ep=qm?Symbol.for("react.context"):60110,np=qm?Symbol.for("react.async_mode"):60111,ip=qm?Symbol.for("react.concurrent_mode"):60111,rp=qm?Symbol.for("react.forward_ref"):60112,op=qm?Symbol.for("react.suspense"):60113,cp=qm?Symbol.for("react.suspense_list"):60120,ap=qm?Symbol.for("react.memo"):60115,lp=qm?Symbol.for("react.lazy"):60116,sp=qm?Symbol.for("react.block"):60121,up=qm?Symbol.for("react.fundamental"):60117,hp=qm?Symbol.for("react.responder"):60118,fp=qm?Symbol.for("react.scope"):60119;function dp(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case Km:switch(t=t.type){case np:case ip:case Xm:case Jm:case Qm:case op:return t;default:switch(t=t&&t.$$typeof){case ep:case rp:case lp:case ap:case tp:return t;default:return e}}case Zm:return e}}}function bp(t){return dp(t)===ip}var mp={AsyncMode:np,ConcurrentMode:ip,ContextConsumer:ep,ContextProvider:tp,Element:Km,ForwardRef:rp,Fragment:Xm,Lazy:lp,Memo:ap,Portal:Zm,Profiler:Jm,StrictMode:Qm,Suspense:op,isAsyncMode:function(t){return bp(t)||dp(t)===np},isConcurrentMode:bp,isContextConsumer:function(t){return dp(t)===ep},isContextProvider:function(t){return dp(t)===tp},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===Km},isForwardRef:function(t){return dp(t)===rp},isFragment:function(t){return dp(t)===Xm},isLazy:function(t){return dp(t)===lp},isMemo:function(t){return dp(t)===ap},isPortal:function(t){return dp(t)===Zm},isProfiler:function(t){return dp(t)===Jm},isStrictMode:function(t){return dp(t)===Qm},isSuspense:function(t){return dp(t)===op},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===Xm||t===ip||t===Jm||t===Qm||t===op||t===cp||"object"==typeof t&&null!==t&&(t.$$typeof===lp||t.$$typeof===ap||t.$$typeof===tp||t.$$typeof===ep||t.$$typeof===rp||t.$$typeof===up||t.$$typeof===hp||t.$$typeof===fp||t.$$typeof===sp)},typeOf:dp};y((function(){}));var pp=y((function(t){t.exports=mp}));function vp(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return Tt.Children.forEach(t,(function(t){(null!=t||e.keepEmpty)&&(Array.isArray(t)?n=n.concat(vp(t)):pp.isFragment(t)&&t.props?n=n.concat(vp(t.props.children,e)):n.push(t))})),n}var gp={};function xp(){}function yp(){}function wp(t,e,n){e||gp[n]||(t(!1,n),gp[n]=!0)}function kp(t,e){wp(xp,t,e)}function _p(t){return _p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_p(t)}function zp(t){var e=function(t){if("object"!==_p(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==_p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===_p(e)?e:String(e)}function Cp(t,e,n){return(e=zp(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Dp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Sp(Object(n),!0).forEach((function(e){Cp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jp(t){return jp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jp(t)}function Mp(t,e,n){var i=Tt.useRef({});return"value"in i.current&&!n(i.current.condition,e)||(i.current.value=t(),i.current.condition=e),i.current.value}function Op(t,e){"function"==typeof t?t(e):"object"===jp(t)&&t&&"current"in t&&(t.current=e)}function Ep(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.filter((function(t){return t}));return i.length<=1?i[0]:function(t){e.forEach((function(e){Op(e,t)}))}}function Np(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Mp((function(){return Ep.apply(void 0,e)}),e,(function(t,e){return t.length===e.length&&t.every((function(t,n){return t===e[n]}))}))}function Tp(t){var e,n,i=pp.isMemo(t)?t.type.type:t.type;return!!("function"!=typeof i||null!==(e=i.prototype)&&void 0!==e&&e.render)&&!!("function"!=typeof t||null!==(n=t.prototype)&&void 0!==n&&n.render)}function Ip(t){return t instanceof HTMLElement||t instanceof SVGElement}function Rp(t){return Ip(t)?t:t instanceof Tt.Component?Ou.findDOMNode(t):null}kp.preMessage=function(){},kp.resetWarned=function(){gp={}},kp.noteOnce=function(t,e){wp(yp,t,e)};var Yp=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,i){return t[0]===e&&(n=i,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];t.call(e,r[1],r[0])}},e}()}(),Ap="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Pp="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Fp="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Pp):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},$p=["top","right","bottom","left","width","height","size","weight"],Lp="undefined"!=typeof MutationObserver,Hp=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t){var e=!1,n=!1,i=0;function r(){e&&(e=!1,t()),n&&c()}function o(){Fp(r)}function c(){var t=Date.now();if(e){if(t-i<2)return;n=!0}else e=!0,n=!1,setTimeout(o,20);i=t}return c}(this.refresh.bind(this))}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){Ap&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Lp?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){Ap&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;$p.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Wp=function(t,e){for(var n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},Vp=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||Pp},Up=Zp(0,0,0,0);function Bp(t){return parseFloat(t)||0}function Gp(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+Bp(t["border-"+n+"-width"])}),0)}var qp="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof Vp(t).SVGGraphicsElement}:function(t){return t instanceof Vp(t).SVGElement&&"function"==typeof t.getBBox};function Kp(t){return Ap?qp(t)?function(t){var e=t.getBBox();return Zp(0,0,e.width,e.height)}(t):function(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return Up;var i=Vp(t).getComputedStyle(t),r=function(t){for(var e={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n];e[r]=Bp(t["padding-"+r])}return e}(i),o=r.left+r.right,c=r.top+r.bottom,a=Bp(i.width),l=Bp(i.height);if("border-box"===i.boxSizing&&(Math.round(a+o)!==e&&(a-=Gp(i,"left","right")+o),Math.round(l+c)!==n&&(l-=Gp(i,"top","bottom")+c)),!function(t){return t===Vp(t).document.documentElement}(t)){var s=Math.round(a+o)-e,u=Math.round(l+c)-n;1!==Math.abs(s)&&(a-=s),1!==Math.abs(u)&&(l-=u)}return Zp(r.left,r.top,a,l)}(t):Up}function Zp(t,e,n,i){return{x:t,y:e,width:n,height:i}}var Xp=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Zp(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=Kp(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),Qp=function(t,e){var n=function(t){var e=t.x,n=t.y,i=t.width,r=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(o.prototype);return Wp(c,{x:e,y:n,width:i,height:r,top:n,right:e+i,bottom:r+n,left:e}),c}(e);Wp(this,{target:t,contentRect:n})},Jp=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new Yp,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Vp(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Xp(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Vp(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new Qp(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),tv="undefined"!=typeof WeakMap?new WeakMap:new Yp,ev=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Hp.getInstance(),i=new Jp(e,n,this);tv.set(this,i)};["observe","unobserve","disconnect"].forEach((function(t){ev.prototype[t]=function(){var e;return(e=tv.get(this))[t].apply(e,arguments)}}));var nv=void 0!==Pp.ResizeObserver?Pp.ResizeObserver:ev,iv=new Map,rv=new nv((function(t){t.forEach((function(t){var e,n=t.target;null===(e=iv.get(n))||void 0===e||e.forEach((function(t){return t(n)}))}))}));function ov(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cv(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,zp(i.key),i)}}function av(t,e){return av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},av(t,e)}function lv(t){return lv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lv(t)}function sv(t,e){if(e&&("object"===_p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}var uv=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&av(t,e)}(o,Tt.Component);var t,e,n,i,r=(n=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=lv(n);if(i){var r=lv(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return sv(this,t)});function o(){return ov(this,o),r.apply(this,arguments)}return t=o,(e=[{key:"render",value:function(){return this.props.children}}])&&cv(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(),hv=Tt.createContext(null);function fv(t,e){var n=t.children,i=t.disabled,r=Tt.useRef(null),o=Tt.useRef(null),c=Tt.useContext(hv),a="function"==typeof n,l=a?n(r):n,s=Tt.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!a&&Tt.isValidElement(l)&&Tp(l),h=u?l.ref:null,f=Tt.useMemo((function(){return Ep(h,r)}),[h,r]),d=function(){return Rp(r.current)||Rp(o.current)};Tt.useImperativeHandle(e,(function(){return d()}));var b=Tt.useRef(t);b.current=t;var m=Tt.useCallback((function(t){var e=b.current,n=e.onResize,i=e.data,r=t.getBoundingClientRect(),o=r.width,a=r.height,l=t.offsetWidth,u=t.offsetHeight,h=Math.floor(o),f=Math.floor(a);if(s.current.width!==h||s.current.height!==f||s.current.offsetWidth!==l||s.current.offsetHeight!==u){var d={width:h,height:f,offsetWidth:l,offsetHeight:u};s.current=d;var m=l===Math.round(o)?o:l,p=u===Math.round(a)?a:u,v=Dp(Dp({},d),{},{offsetWidth:m,offsetHeight:p});null==c||c(v,t,i),n&&Promise.resolve().then((function(){n(v,t)}))}}),[]);return Tt.useEffect((function(){var t,e,n=d();return n&&!i&&(e=m,iv.has(t=n)||(iv.set(t,new Set),rv.observe(t)),iv.get(t).add(e)),function(){return function(t,e){iv.has(t)&&(iv.get(t).delete(e),iv.get(t).size||(rv.unobserve(t),iv.delete(t)))}(n,m)}}),[r.current,i]),Tt.createElement(uv,{ref:o},u?Tt.cloneElement(l,{ref:f}):l)}var dv=Tt.forwardRef(fv);function bv(t,e){var n=t.children;return("function"==typeof n?[n]:vp(n)).map((function(n,i){var r=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return Tt.createElement(dv,Gm({},t,{key:r,ref:0===i?e:void 0}),n)}))}var mv=Tt.forwardRef(bv);function pv(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}mv.Collection=function(t){var e=t.children,n=t.onBatchResize,i=Tt.useRef(0),r=Tt.useRef([]),o=Tt.useContext(hv),c=Tt.useCallback((function(t,e,c){i.current+=1;var a=i.current;r.current.push({size:t,element:e,data:c}),Promise.resolve().then((function(){a===i.current&&(null==n||n(r.current),r.current=[])})),null==o||o(t,e,c)}),[n,o]);return Tt.createElement(hv.Provider,{value:c},e)};var vv=pv()?Tt.useLayoutEffect:Tt.useEffect,gv=function(t,e){var n=Tt.useRef(!0);vv((function(){return t(n.current)}),e),vv((function(){return n.current=!1,function(){n.current=!0}}),[])},xv=function(t,e){gv((function(e){if(!e)return t()}),e)},yv=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],wv=void 0;function kv(t,e){var n=t.prefixCls,i=t.invalidate,r=t.item,o=t.renderItem,c=t.responsive,a=t.responsiveDisabled,l=t.registerSize,s=t.itemKey,u=t.className,f=t.style,d=t.children,b=t.display,m=t.order,p=t.component,v=void 0===p?"div":p,g=Bm(t,yv),x=c&&!b;function y(t){l(s,t)}Tt.useEffect((function(){return function(){y(null)}}),[]);var w,k=o&&r!==wv?o(r):d;i||(w={opacity:x?0:1,height:x?0:wv,overflowY:x?"hidden":wv,order:c?m:wv,pointerEvents:x?"none":wv,position:x?"absolute":wv});var _={};x&&(_["aria-hidden"]=!0);var z=Tt.createElement(v,Fm({className:h(!i&&n,u),style:Wm(Wm({},w),f)},_,g,{ref:e}),k);return c&&(z=Tt.createElement(mv,{onResize:function(t){y(t.offsetWidth)},disabled:a},z)),z}var _v=Tt.forwardRef(kv);function zv(t){var e=Tt.useRef();e.current=t;var n=Tt.useCallback((function(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return null===(t=e.current)||void 0===t?void 0:t.call.apply(t,[e].concat(i))}),[]);return n}_v.displayName="Item";var Cv=function(t){return+setTimeout(t,16)},Sv=function(t){return clearTimeout(t)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Cv=function(t){return window.requestAnimationFrame(t)},Sv=function(t){return window.cancelAnimationFrame(t)});var Dv=0,jv=new Map;function Mv(t){jv.delete(t)}var Ov=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=Dv+=1;function i(e){if(0===e)Mv(n),t();else{var r=Cv((function(){i(e-1)}));jv.set(n,r)}}return i(e),n};function Ev(t,e){var n=Um(Tt.useState(e),2),i=n[1];return[n[0],zv((function(e){t((function(){i(e)}))}))]}Ov.cancel=function(t){var e=jv.get(t);return Mv(e),Sv(e)};var Nv=Tt.createContext(null),Tv=["component"],Iv=["className"],Rv=["className"],Yv=function(t,e){var n=Tt.useContext(Nv);if(!n){var i=t.component,r=void 0===i?"div":i,o=Bm(t,Tv);return Tt.createElement(r,Fm({},o,{ref:e}))}var c=n.className,a=Bm(n,Iv),l=t.className,s=Bm(t,Rv);return Tt.createElement(Nv.Provider,{value:null},Tt.createElement(_v,Fm({ref:e,className:h(c,l)},a,s)))},Av=Tt.forwardRef(Yv);Av.displayName="RawItem";var Pv=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Fv="responsive",$v="invalidate";function Lv(t){return"+ ".concat(t.length," ...")}function Hv(t,e){var n,i=t.prefixCls,r=void 0===i?"rc-overflow":i,o=t.data,c=void 0===o?[]:o,a=t.renderItem,l=t.renderRawItem,s=t.itemKey,u=t.itemWidth,f=void 0===u?10:u,d=t.ssr,b=t.style,m=t.className,p=t.maxCount,v=t.renderRest,g=t.renderRawRest,x=t.suffix,y=t.component,w=void 0===y?"div":y,k=t.itemComponent,_=t.onVisibleChange,z=Bm(t,Pv),C="full"===d,S=(n=Tt.useRef(null),function(t){n.current||(n.current=[],function(t){if("undefined"==typeof MessageChannel)Ov(t);else{var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(void 0)}}((function(){Ou.unstable_batchedUpdates((function(){n.current.forEach((function(t){t()})),n.current=null}))}))),n.current.push(t)}),D=Um(Ev(S,null),2),j=D[0],M=D[1],O=j||0,E=Um(Ev(S,new Map),2),N=E[0],T=E[1],I=Um(Ev(S,0),2),R=I[0],Y=I[1],A=Um(Ev(S,0),2),P=A[0],F=A[1],$=Um(Ev(S,0),2),L=$[0],H=$[1],W=Um(Tt.useState(null),2),V=W[0],U=W[1],B=Um(Tt.useState(null),2),G=B[0],q=B[1],K=Tt.useMemo((function(){return null===G&&C?Number.MAX_SAFE_INTEGER:G||0}),[G,j]),Z=Um(Tt.useState(!1),2),X=Z[0],Q=Z[1],J="".concat(r,"-item"),tt=Math.max(R,P),et=p===Fv,nt=c.length&&et,it=p===$v,rt=nt||"number"==typeof p&&c.length>p,ot=Tt.useMemo((function(){var t=c;return nt?t=null===j&&C?c:c.slice(0,Math.min(c.length,O/f)):"number"==typeof p&&(t=c.slice(0,p)),t}),[c,f,j,p,nt]),ct=Tt.useMemo((function(){return c.slice(nt?K+1:ot.length)}),[c,ot,nt,K]),at=Tt.useCallback((function(t,e){var n;return"function"==typeof s?s(t):null!==(n=s&&(null==t?void 0:t[s]))&&void 0!==n?n:e}),[s]),lt=Tt.useCallback(a||function(t){return t},[a]);function st(t,e,n){(G!==t||void 0!==e&&e!==V)&&(q(t),n||(Q(t<c.length-1),null==_||_(t)),void 0!==e&&U(e))}function ut(t,e){T((function(n){var i=new Map(n);return null===e?i.delete(t):i.set(t,e),i}))}function ht(t){return N.get(at(ot[t],t))}gv((function(){if(O&&"number"==typeof tt&&ot){var t=L,e=ot.length,n=e-1;if(!e)return void st(0,null);for(var i=0;i<e;i+=1){var r=ht(i);if(C&&(r=r||0),void 0===r){st(i-1,void 0,!0);break}if(t+=r,0===n&&t<=O||i===n-1&&t+ht(n)<=O){st(n,null);break}if(t+tt>O){st(i-1,t-r-L+P);break}}x&&ht(0)+L>O&&U(null)}}),[O,N,P,L,at,ot]);var ft=X&&!!ct.length,dt={};null!==V&&nt&&(dt={position:"absolute",left:V,top:0});var bt,mt={prefixCls:J,responsive:nt,component:k,invalidate:it},pt=l?function(t,e){var n=at(t,e);return Tt.createElement(Nv.Provider,{key:n,value:Wm(Wm({},mt),{},{order:e,item:t,itemKey:n,registerSize:ut,display:e<=K})},l(t,e))}:function(t,e){var n=at(t,e);return Tt.createElement(_v,Fm({},mt,{order:e,key:n,item:t,renderItem:lt,itemKey:n,registerSize:ut,display:e<=K}))},vt={order:ft?K:Number.MAX_SAFE_INTEGER,className:"".concat(J,"-rest"),registerSize:function(t,e){F(e),Y(P)},display:ft};if(g)g&&(bt=Tt.createElement(Nv.Provider,{value:Wm(Wm({},mt),vt)},g(ct)));else{var gt=v||Lv;bt=Tt.createElement(_v,Fm({},mt,vt),"function"==typeof gt?gt(ct):gt)}var xt=Tt.createElement(w,Fm({className:h(!it&&r,m),style:b,ref:e},z),ot.map(pt),rt?bt:null,x&&Tt.createElement(_v,Fm({},mt,{responsive:et,responsiveDisabled:!nt,order:K,className:"".concat(J,"-suffix"),registerSize:function(t,e){H(e)},display:!0,style:dt}),x));return et&&(xt=Tt.createElement(mv,{onResize:function(t,e){M(e.clientWidth)},disabled:!nt},xt)),xt}var Wv=Tt.forwardRef(Hv);Wv.displayName="Overflow",Wv.Item=Av,Wv.RESPONSIVE=Fv,Wv.INVALIDATE=$v;const Vv=class{constructor(t){e(this,t),this.selectOtherTag=n(this,"bcm-select-other-tag",7),this.selectTag=n(this,"bcm-select-tag",7),this.deleteTag=n(this,"bcm-delete-tag",7),this.renderItem=t=>Tt.createElement("bcm-tooltip",{placement:"bottom",message:t.text,trigger:"hover"},Tt.createElement("div",{id:t.value+"-tag",className:"bcm-tag",onClick:({target:e})=>this.onClickControl(e,t,!1)},Tt.createElement("span",{className:"bcm-tag__content dismissable"},Tt.createElement("div",{className:"value tw-block tw-max-w-[38px] tw-overflow-hidden tw-overflow-ellipsis tw-whitespace-nowrap"},t.text),Tt.createElement("span",{className:"right close-button"},Tt.createElement("bcm-icon",{icon:"fa fa-times"}))))),this.renderRest=t=>{const e=(null==t?void 0:t.sort(((t,e)=>+t.ct-+e.ct)).slice(0,15).map((t=>D.textLimitter(t.text,40,!0))).toString().split(",").join("\r\n"))+(t.length>15?"\r\n...":"");return Tt.createElement("bcm-tooltip",{placement:"bottom",message:e,trigger:"hover"},Tt.createElement("div",{className:"bcm-tag bcm-tag--other",onClick:({target:e})=>this.onClickControl(e,t,!0)},Tt.createElement("span",{className:"bcm-tag__content dismissable "+(this.checked?"checkable checked":"")},Tt.createElement("span",{className:"value"},`+${null==t?void 0:t.length}`),Tt.createElement("span",{className:"right close-button"},Tt.createElement("bcm-icon",{icon:"fa fa-times"})))))},this._id=l.UID(),this.maxCount=1,this.data=[],this.checked=!1}isClickDismiss(t){return"BCM-ICON"===t["s-hn"]}onClickControl(t,e,n=!1){const i=this.isClickDismiss(t);i&&this.deleteTag.emit({id:Array.isArray(e)?e.map((t=>t.value)):e.value})&&this.checked&&(this.checked=!1),!n&&this.selectTag.emit({id:e.value})&&this.checked&&(this.checked=!1),n&&!i&&(this.checked=!this.checked,this.selectOtherTag.emit({id:null==e?void 0:e.map((t=>t.value)),checked:this.checked}))}componentWillRender(){const{data:t,renderItem:e,renderRest:n,maxCount:i}=this;this.overflowInstance=Tt.createElement(Wv,{data:t,renderItem:e,renderRest:n,maxCount:i}),Ou.render(this.overflowInstance,this.el)}get el(){return r(this)}};function Uv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bv(t){return Bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bv(t)}function Gv(t){var e=function(t){if("object"!==Bv(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Bv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Bv(e)?e:String(e)}function qv(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Gv(i.key),i)}}function Kv(t,e,n){return e&&qv(t.prototype,e),n&&qv(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xv(t,e){return Xv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xv(t,e)}function Qv(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xv(t,e)}function Jv(t){return Jv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Jv(t)}function tg(t,e){if(e&&("object"===Bv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Zv(t)}function eg(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Jv(t);if(e){var r=Jv(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return tg(this,n)}}function ng(){return ng=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ng.apply(this,arguments)}function ig(t,e,n){return(e=Gv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function og(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rg(Object(n),!0).forEach((function(e){ig(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function cg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ag(t,e){if(t){if("string"==typeof t)return cg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cg(t,e):void 0}}function lg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,c,a=[],l=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){s=!0,r=t}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw r}}return a}}(t,e)||ag(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ug(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,c,a=[],l=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){s=!0,r=t}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return sg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sg(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hg(t){var e=Tt.useRef(!1),n=ug(Tt.useState(t),2),i=n[0],r=n[1];return Tt.useEffect((function(){return e.current=!1,function(){e.current=!0}}),[]),[i,function(t,n){n&&e.current||r(t)}]}function fg(t){return void 0!==t}function dg(t,e){var n=e||{},i=n.defaultValue,r=n.value,o=n.onChange,c=n.postState,a=ug(hg((function(){return fg(r)?r:fg(i)?"function"==typeof i?i():i:"function"==typeof t?t():t})),2),l=a[0],s=a[1],u=void 0!==r?r:l,h=c?c(u):u,f=zv(o),d=ug(hg([u]),2),b=d[0],m=d[1];return xv((function(){var t=b[0];l!==t&&f(l,t)}),[b]),xv((function(){fg(r)||s(r)}),[r]),[h,zv((function(t,e){s(t,e),m([u],e)}))]}function bg(t,e,n){return(e=function(t){var e=function(t){if("object"!==jp(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==jp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===jp(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function pg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mg(Object(n),!0).forEach((function(e){bg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}Vv.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.rc-overflow{display:flex;flex-direction:row;flex-wrap:nowrap;width:100%}.rc-overflow-item{transition:all 0.3s ease;padding:0 2px;display:flex;align-items:center;justify-content:center}';var vg="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),gg="aria-",xg="data-";function yg(t,e){return 0===t.indexOf(e)}function wg(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:pg({},n);var i={};return Object.keys(t).forEach((function(n){(e.aria&&("role"===n||yg(n,gg))||e.data&&yg(n,xg)||e.attr&&vg.includes(n))&&(i[n]=t[n])})),i}function kg(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;function r(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=i.has(t);if(kp(!c,"Warning: There may be circular references"),c)return!1;if(t===e)return!0;if(n&&o>1)return!1;i.add(t);var a=o+1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var l=0;l<t.length;l++)if(!r(t[l],e[l],a))return!1;return!0}if(t&&e&&"object"===jp(t)&&"object"===jp(e)){var s=Object.keys(t);return s.length===Object.keys(e).length&&s.every((function(n){return r(t[n],e[n],a)}))}return!1}return r(t,e)}var _g=10,zg=100;function Cg(t,e){return!t&&!e||!(!t||!e)&&void 0}function Sg(t,e,n){var i=Cg(e,n);return"boolean"==typeof i?i:t.getYear(e)===t.getYear(n)}function Dg(t,e){return Math.floor(t.getMonth(e)/3)+1}function jg(t,e,n){var i=Cg(e,n);return"boolean"==typeof i?i:Sg(t,e,n)&&Dg(t,e)===Dg(t,n)}function Mg(t,e,n){var i=Cg(e,n);return"boolean"==typeof i?i:Sg(t,e,n)&&t.getMonth(e)===t.getMonth(n)}function Og(t,e,n){var i=Cg(e,n);return"boolean"==typeof i?i:t.getYear(e)===t.getYear(n)&&t.getMonth(e)===t.getMonth(n)&&t.getDate(e)===t.getDate(n)}function Eg(t,e,n,i){var r=Cg(n,i);return"boolean"==typeof r?r:Sg(t,n,i)&&t.locale.getWeek(e,n)===t.locale.getWeek(e,i)}function Ng(t,e,n){return Og(t,e,n)&&function(t,e,n){var i=Cg(e,n);return"boolean"==typeof i?i:t.getHour(e)===t.getHour(n)&&t.getMinute(e)===t.getMinute(n)&&t.getSecond(e)===t.getSecond(n)}(t,e,n)}function Tg(t,e,n,i){return!!(e&&n&&i)&&!Og(t,e,i)&&!Og(t,n,i)&&t.isAfter(i,e)&&t.isAfter(n,i)}function Ig(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(e){case"year":return n.addYear(t,10*i);case"quarter":case"month":return n.addYear(t,i);default:return n.addMonth(t,i)}}function Rg(t,e){var n=e.generateConfig,i=e.locale,r=e.format;return"function"==typeof r?r(t):n.locale.format(i.locale,t,r)}function Yg(t,e){var n=e.formatList;return t&&"function"!=typeof n[0]?e.generateConfig.locale.parse(e.locale.locale,t,n):null}function Ag(t){var e=t.cellDate,n=t.disabledDate,i=t.generateConfig;if(!n)return!1;var r=function(t,r,o){for(var c=r;c<=o;){var a=void 0;switch(t){case"date":if(a=i.setDate(e,c),!n(a))return!1;break;case"month":if(!Ag({cellDate:a=i.setMonth(e,c),mode:"month",generateConfig:i,disabledDate:n}))return!1;break;case"year":if(!Ag({cellDate:a=i.setYear(e,c),mode:"year",generateConfig:i,disabledDate:n}))return!1}c+=1}return!0};switch(t.mode){case"date":case"week":return n(e);case"month":return r("date",1,i.getDate(i.getEndDate(e)));case"quarter":var o=3*Math.floor(i.getMonth(e)/3);return r("month",o,o+2);case"year":return r("month",0,11);case"decade":var c=i.getYear(e),a=Math.floor(c/_g)*_g;return r("year",a,a+_g-1)}}function Pg(t,e){var n=e.formatList,i=e.generateConfig,r=e.locale;return Mp((function(){if(!t)return[[""],""];for(var e="",o=[],c=0;c<n.length;c+=1){var a=Rg(t,{generateConfig:i,locale:r,format:n[c]});o.push(a),0===c&&(e=a)}return[o,e]}),[t,n,r],(function(t,e){return!Ng(i,t[0],e[0])||!kg(t[1],e[1],!0)||!kg(t[2],e[2],!0)}))}function Fg(t,e){var n=e.formatList,i=e.generateConfig,r=e.locale,o=lg(Tt.useState(null),2),c=o[0],a=o[1],l=Tt.useRef(null);function s(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];cancelAnimationFrame(l.current),e?a(t):l.current=requestAnimationFrame((function(){a(t)}))}var u=lg(Pg(c,{formatList:n,generateConfig:i,locale:r}),2)[1];function h(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s(null,t)}return Tt.useEffect((function(){h(!0)}),[t]),Tt.useEffect((function(){return function(){return cancelAnimationFrame(l.current)}}),[]),[u,function(t){s(t)},h]}var $g={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var e=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||e>=$g.F1&&e<=$g.F12)return!1;switch(e){case $g.ALT:case $g.CAPS_LOCK:case $g.CONTEXT_MENU:case $g.CTRL:case $g.DOWN:case $g.END:case $g.ESC:case $g.HOME:case $g.INSERT:case $g.LEFT:case $g.MAC_FF_META:case $g.META:case $g.NUMLOCK:case $g.NUM_CENTER:case $g.PAGE_DOWN:case $g.PAGE_UP:case $g.PAUSE:case $g.PRINT_SCREEN:case $g.RIGHT:case $g.SHIFT:case $g.UP:case $g.WIN_KEY:case $g.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=$g.ZERO&&t<=$g.NINE)return!0;if(t>=$g.NUM_ZERO&&t<=$g.NUM_MULTIPLY)return!0;if(t>=$g.A&&t<=$g.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case $g.SPACE:case $g.QUESTION_MARK:case $g.NUM_PLUS:case $g.NUM_MINUS:case $g.NUM_PERIOD:case $g.NUM_DIVISION:case $g.SEMICOLON:case $g.DASH:case $g.EQUALS:case $g.COMMA:case $g.PERIOD:case $g.SLASH:case $g.APOSTROPHE:case $g.SINGLE_QUOTE:case $g.OPEN_SQUARE_BRACKET:case $g.BACKSLASH:case $g.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function Lg(t){return function(t){if(Array.isArray(t))return cg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ag(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Hg=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox();if(e.width||e.height)return!0}if(t.getBoundingClientRect){var n=t.getBoundingClientRect();if(n.width||n.height)return!0}}return!1};var Wg=new Map;function Vg(t,e,n){if(Wg.get(t)&&cancelAnimationFrame(Wg.get(t)),n<=0)Wg.set(t,requestAnimationFrame((function(){t.scrollTop=e})));else{var i=(e-t.scrollTop)/n*10;Wg.set(t,requestAnimationFrame((function(){t.scrollTop+=i,t.scrollTop!==e&&Vg(t,e,n-10)})))}}function Ug(t,e){var n=e.onLeftRight,i=e.onCtrlLeftRight,r=e.onUpDown,o=e.onPageUpDown,c=e.onEnter,a=t.ctrlKey,l=t.metaKey;switch(t.which){case $g.LEFT:if(a||l){if(i)return i(-1),!0}else if(n)return n(-1),!0;break;case $g.RIGHT:if(a||l){if(i)return i(1),!0}else if(n)return n(1),!0;break;case $g.UP:if(r)return r(-1),!0;break;case $g.DOWN:if(r)return r(1),!0;break;case $g.PAGE_UP:if(o)return o(-1),!0;break;case $g.PAGE_DOWN:if(o)return o(1),!0;break;case $g.ENTER:if(c)return c(),!0}return!1}function Bg(t,e,n,i){var r=t;if(!r)switch(e){case"time":r=i?"hh:mm:ss a":"HH:mm:ss";break;case"week":r="gggg-wo";break;case"month":r="YYYY-MM";break;case"quarter":r="YYYY-[Q]Q";break;case"year":r="YYYY";break;default:r=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return r}function Gg(t,e,n){var i="time"===t?8:10,r="function"==typeof e?e(n.getNow()).length:e.length;return Math.max(i,r)+2}var qg=null,Kg=new Set,Zg={year:function(t){return"month"===t||"date"===t?"year":t},month:function(t){return"date"===t?"month":t},quarter:function(t){return"month"===t||"date"===t?"quarter":t},week:function(t){return"date"===t?"week":t},time:null,date:null};function Xg(t,e){return t.some((function(t){return t&&t.contains(e)}))}function Qg(t){var e=t.open,n=t.value,i=t.isClickOutside,r=t.triggerOpen,o=t.forwardKeyDown,c=t.onKeyDown,a=t.blurToCancel,l=t.changeOnBlur,s=t.onSubmit,u=t.onCancel,h=t.onFocus,f=t.onBlur,d=lg(Tt.useState(!1),2),b=d[0],m=d[1],p=lg(Tt.useState(!1),2),v=p[0],g=p[1],x=Tt.useRef(!1),y=Tt.useRef(!1),w=Tt.useRef(!1),k={onMouseDown:function(){m(!0),r(!0)},onKeyDown:function(t){if(c(t,(function(){w.current=!0})),!w.current){switch(t.which){case $g.ENTER:return e?!1!==s()&&m(!0):r(!0),void t.preventDefault();case $g.TAB:return void(b&&e&&!t.shiftKey?(m(!1),t.preventDefault()):!b&&e&&!o(t)&&t.shiftKey&&(m(!0),t.preventDefault()));case $g.ESC:return m(!0),void u()}e||[$g.SHIFT].includes(t.which)?b||o(t):r(!0)}},onFocus:function(t){m(!0),g(!0),h&&h(t)},onBlur:function(t){!x.current&&i(document.activeElement)?(a?setTimeout((function(){for(var t=document.activeElement;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;i(t)&&u()}),0):e&&(r(!1),y.current&&s()),g(!1),null==f||f(t)):x.current=!1}};return Tt.useEffect((function(){y.current=!1}),[e]),Tt.useEffect((function(){y.current=!0}),[n]),Tt.useEffect((function(){return t=function(t){var n=function(t){var e,n=t.target;return t.composed&&n.shadowRoot&&(null===(e=t.composedPath)||void 0===e?void 0:e.call(t)[0])||n}(t),o=i(n);e&&(o?l||a||v&&!o||r(!1):(x.current=!0,Ov((function(){x.current=!1}))))},!qg&&"undefined"!=typeof window&&window.addEventListener&&(qg=function(t){Lg(Kg).forEach((function(e){e(t)}))},window.addEventListener("mousedown",qg)),Kg.add(t),function(){Kg.delete(t),0===Kg.size&&(window.removeEventListener("mousedown",qg),qg=null)};var t})),[k,{focused:v,typing:b}]}function Jg(t,e){return Tt.useMemo((function(){return t||(e?(kp(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(e).map((function(t){var e=lg(t,2);return{label:e[0],value:e[1]}}))):[])}),[t,e])}function tx(t){var e=t.valueTexts,n=t.onTextChange,i=lg(Tt.useState(""),2),r=i[0],o=i[1],c=Tt.useRef([]);function a(){o(c.current[0])}return c.current=e,gv((function(){e.every((function(t){return t!==r}))&&a()}),[e.join("||")]),[r,function(t){o(t),n(t)},a]}var ex=Tt.createContext({});function nx(t){var e=t.cellRender,n=t.monthCellRender,i=t.dateRender;return Tt.useMemo((function(){return e||(n||i?function(t,e){var r=t;return i&&"date"===e.type?i(r,e.today):n&&"month"===e.type?n(r,e.locale):e.originNode}:void 0)}),[e,n,i])}function ix(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",i=String(t);i.length<e;)i="".concat(n).concat(t);return i}function rx(t){return null==t?[]:Array.isArray(t)?t:[t]}function ox(t,e){return t?t[e]:null}function cx(t,e,n){var i=[ox(t,0),ox(t,1)];return i[n]="function"==typeof e?e(i[n]):e,i[0]||i[1]?i:null}function ax(t){return"function"==typeof t?t():t}function lx(t){var e=t.cellPrefixCls,n=t.generateConfig,i=t.rangedValue,r=t.hoverRangedValue,o=t.isInView,c=t.isSameCell,a=t.offsetCell,l=t.today,s=t.value;return function(t){var u,h=a(t,-1),f=a(t,1),d=ox(i,0),b=ox(i,1),m=ox(r,0),p=ox(r,1),v=Tg(n,m,p,t);function g(t){return c(d,t)}function x(t){return c(b,t)}var y=c(m,t),w=c(p,t),k=(v||w)&&(!o(h)||x(h)),_=(v||y)&&(!o(f)||g(f));return ig(u={},"".concat(e,"-in-view"),o(t)),ig(u,"".concat(e,"-in-range"),Tg(n,d,b,t)),ig(u,"".concat(e,"-range-start"),g(t)),ig(u,"".concat(e,"-range-end"),x(t)),ig(u,"".concat(e,"-range-start-single"),g(t)&&!b),ig(u,"".concat(e,"-range-end-single"),x(t)&&!d),ig(u,"".concat(e,"-range-start-near-hover"),g(t)&&(c(h,m)||Tg(n,m,p,h))),ig(u,"".concat(e,"-range-end-near-hover"),x(t)&&(c(f,p)||Tg(n,m,p,f))),ig(u,"".concat(e,"-range-hover"),v),ig(u,"".concat(e,"-range-hover-start"),y),ig(u,"".concat(e,"-range-hover-end"),w),ig(u,"".concat(e,"-range-hover-edge-start"),k),ig(u,"".concat(e,"-range-hover-edge-end"),_),ig(u,"".concat(e,"-range-hover-edge-start-near-range"),k&&c(h,b)),ig(u,"".concat(e,"-range-hover-edge-end-near-range"),_&&c(f,d)),ig(u,"".concat(e,"-today"),c(l,t)),ig(u,"".concat(e,"-selected"),c(s,t)),u}}var sx=Tt.createContext({});function ux(t,e,n,i,r){var o=t.setHour(e,n);return o=t.setMinute(o,i),t.setSecond(o,r)}function hx(t,e,n){if(!n)return e;var i=e;return i=t.setHour(i,t.getHour(n)),i=t.setMinute(i,t.getMinute(n)),t.setSecond(i,t.getSecond(n))}function fx(t,e){var n=t.getYear(e),i=t.getMonth(e)+1,r=t.getEndDate(t.getFixedDate("".concat(n,"-").concat(i,"-01"))),o=t.getDate(r),c=i<10?"0".concat(i):"".concat(i);return"".concat(n,"-").concat(c,"-").concat(o)}function dx(t){for(var e=t.prefixCls,n=t.disabledDate,i=t.onSelect,r=t.picker,o=t.rowNum,c=t.colNum,a=t.prefixColumn,l=t.rowClassName,s=t.baseDate,u=t.getCellClassName,f=t.getCellText,d=t.getCellNode,b=t.getCellDate,m=t.generateConfig,p=t.titleCell,v=t.headerCells,g=Tt.useContext(ex),x=g.onDateMouseEnter,y=g.onDateMouseLeave,w=g.mode,k="".concat(e,"-cell"),_=[],z=0;z<o;z+=1){for(var C=[],S=void 0,D=function(){var t,e=b(s,z*c+j),o=Ag({cellDate:e,mode:w,disabledDate:n,generateConfig:m});0===j&&(S=e,a&&C.push(a(S)));var l=p&&p(e),v=Tt.createElement("div",{className:"".concat(k,"-inner")},f(e));C.push(Tt.createElement("td",{key:j,title:l,className:h(k,og((t={},ig(t,"".concat(k,"-disabled"),o),ig(t,"".concat(k,"-start"),1===f(e)||"year"===r&&Number(l)%10==0),ig(t,"".concat(k,"-end"),l===fx(m,e)||"year"===r&&Number(l)%10==9),t),u(e))),onClick:function(){o||i(e)},onMouseEnter:function(){!o&&x&&x(e)},onMouseLeave:function(){!o&&y&&y(e)}},d?d(e,v):v))},j=0;j<c;j+=1)D();_.push(Tt.createElement("tr",{key:z,className:l&&l(S)},C))}return Tt.createElement("div",{className:"".concat(e,"-body")},Tt.createElement("table",{className:"".concat(e,"-content")},v&&Tt.createElement("thead",null,Tt.createElement("tr",null,v)),Tt.createElement("tbody",null,_)))}function bx(t){var e=t.prefixCls,n=t.generateConfig,i=t.prefixColumn,r=t.locale,o=t.rowCount,c=t.viewDate,a=t.value,l=t.cellRender,s=t.isSameCell,u=Tt.useContext(sx),h=u.rangedValue,f=u.hoverRangedValue,d=function(t,e,n){var i=e.locale.getWeekFirstDay(t),r=e.setDate(n,1),o=e.getWeekDay(r),c=e.addDate(r,i-o);return e.getMonth(c)===e.getMonth(n)&&e.getDate(c)>1&&(c=e.addDate(c,-7)),c}(r.locale,n,c),b="".concat(e,"-cell"),m=n.locale.getWeekFirstDay(r.locale),p=n.getNow(),v=[],g=r.shortWeekDays||(n.locale.getShortWeekDays?n.locale.getShortWeekDays(r.locale):[]);i&&v.push(Tt.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var x=0;x<7;x+=1)v.push(Tt.createElement("th",{key:x},g[(x+m)%7]));var y=lx({cellPrefixCls:b,today:p,value:a,generateConfig:n,rangedValue:i?null:h,hoverRangedValue:i?null:f,isSameCell:s||function(t,e){return Og(n,t,e)},isInView:function(t){return Mg(n,t,c)},offsetCell:function(t,e){return n.addDate(t,e)}});return Tt.createElement(dx,ng({},t,{rowNum:o,colNum:7,baseDate:d,getCellNode:l?function(t,e){return l(t,{originNode:e,today:p,type:"date",locale:r})}:void 0,getCellText:n.getDate,getCellClassName:y,getCellDate:n.addDate,titleCell:function(t){return Rg(t,{locale:r,format:"YYYY-MM-DD",generateConfig:n})},headerCells:v}))}var mx={visibility:"hidden"};function px(t){var e=t.prefixCls,n=t.prevIcon,i=void 0===n?"‹":n,r=t.nextIcon,o=void 0===r?"›":r,c=t.superPrevIcon,a=void 0===c?"«":c,l=t.superNextIcon,s=void 0===l?"»":l,u=t.onSuperPrev,h=t.onSuperNext,f=t.onPrev,d=t.onNext,b=t.children,m=Tt.useContext(ex),p=m.hideNextBtn,v=m.hidePrevBtn;return Tt.createElement("div",{className:e},u&&Tt.createElement("button",{type:"button",onClick:u,tabIndex:-1,className:"".concat(e,"-super-prev-btn"),style:v?mx:{}},a),f&&Tt.createElement("button",{type:"button",onClick:f,tabIndex:-1,className:"".concat(e,"-prev-btn"),style:v?mx:{}},i),Tt.createElement("div",{className:"".concat(e,"-view")},b),d&&Tt.createElement("button",{type:"button",onClick:d,tabIndex:-1,className:"".concat(e,"-next-btn"),style:p?mx:{}},o),h&&Tt.createElement("button",{type:"button",onClick:h,tabIndex:-1,className:"".concat(e,"-super-next-btn"),style:p?mx:{}},s))}function vx(t){var e=t.prefixCls,n=t.generateConfig,i=t.locale,r=t.viewDate,o=t.onNextMonth,c=t.onPrevMonth,a=t.onNextYear,l=t.onPrevYear,s=t.onYearClick,u=t.onMonthClick;if(Tt.useContext(ex).hideHeader)return null;var h="".concat(e,"-header"),f=i.shortMonths||(n.locale.getShortMonths?n.locale.getShortMonths(i.locale):[]),d=n.getMonth(r),b=Tt.createElement("button",{type:"button",key:"year",onClick:s,tabIndex:-1,className:"".concat(e,"-year-btn")},Rg(r,{locale:i,format:i.yearFormat,generateConfig:n})),m=Tt.createElement("button",{type:"button",key:"month",onClick:u,tabIndex:-1,className:"".concat(e,"-month-btn")},i.monthFormat?Rg(r,{locale:i,format:i.monthFormat,generateConfig:n}):f[d]),p=i.monthBeforeYear?[m,b]:[b,m];return Tt.createElement(px,ng({},t,{prefixCls:h,onSuperPrev:l,onPrev:c,onNext:o,onSuperNext:a}),p)}function gx(t){var e=t.prefixCls,n=t.panelName,i=void 0===n?"date":n,r=t.keyboardConfig,o=t.active,c=t.operationRef,a=t.generateConfig,l=t.value,s=t.viewDate,u=t.onViewDateChange,f=t.onPanelChange,d=t.onSelect,b="".concat(e,"-").concat(i,"-panel");c.current={onKeyDown:function(t){return Ug(t,og({onLeftRight:function(t){d(a.addDate(l||s,t),"key")},onCtrlLeftRight:function(t){d(a.addYear(l||s,t),"key")},onUpDown:function(t){d(a.addDate(l||s,7*t),"key")},onPageUpDown:function(t){d(a.addMonth(l||s,t),"key")}},r))}};var m=function(t){var e=a.addYear(s,t);u(e),f(null,e)},p=function(t){var e=a.addMonth(s,t);u(e),f(null,e)};return Tt.createElement("div",{className:h(b,ig({},"".concat(b,"-active"),o))},Tt.createElement(vx,ng({},t,{prefixCls:e,value:l,viewDate:s,onPrevYear:function(){m(-1)},onNextYear:function(){m(1)},onPrevMonth:function(){p(-1)},onNextMonth:function(){p(1)},onMonthClick:function(){f("month",s)},onYearClick:function(){f("year",s)}})),Tt.createElement(bx,ng({},t,{onSelect:function(t){return d(t,"mouse")},prefixCls:e,value:l,viewDate:s,rowCount:6})))}function xx(t){var e=t.value,n=t.generateConfig,i=t.disabledMinutes,r=t.disabledSeconds,o=t.minutes,c=t.seconds,a=t.use12Hours;return function(t,l,s,u){var h=n.getNow(),f=e||h,d=l<0?n.getHour(h):l,b=s<0?n.getMinute(h):s,m=u<0?n.getSecond(h):u,p=i&&i(d);if(null!=p&&p.includes(b)){var v=o.find((function(t){return!p.includes(t.value)}));if(!v)return null;b=v.value}var g=r&&r(d,b);if(null!=g&&g.includes(m)){var x=c.find((function(t){return!g.includes(t.value)}));if(!x)return null;m=x.value}return ux(n,f,a&&t?d+12:d,b,m)}}function yx(t){var e=t.prefixCls,n=t.units,i=t.onSelect,r=t.value,o=t.active,c=t.hideDisabledOptions,a=t.info,l=t.type,s="".concat(e,"-cell"),u=Tt.useContext(ex).open,f=Tt.useRef(null),d=Tt.useRef(new Map),b=Tt.useRef();return Tt.useLayoutEffect((function(){var t=d.current.get(r);t&&!1!==u&&Vg(f.current,t.offsetTop,120)}),[r]),Tt.useLayoutEffect((function(){if(u){var t=d.current.get(r);t&&(b.current=function(e){var n;return function i(){Hg(e)?Vg(f.current,t.offsetTop,0):n=Ov((function(){i()}))}(),function(){Ov.cancel(n)}}(t))}return function(){var t;null===(t=b.current)||void 0===t||t.call(b)}}),[u]),Tt.createElement("ul",{className:h("".concat(e,"-column"),ig({},"".concat(e,"-column-active"),o)),ref:f,style:{position:"relative"}},n.map((function(t){var e;return c&&t.disabled?null:Tt.createElement("li",{key:t.value,ref:function(e){d.current.set(t.value,e)},className:h(s,(e={},ig(e,"".concat(s,"-disabled"),t.disabled),ig(e,"".concat(s,"-selected"),r===t.value),e)),onClick:function(){t.disabled||i(t.value)}},a.cellRender?a.cellRender(t.value,{today:a.today,locale:a.locale,originNode:Tt.createElement("div",{className:"".concat(s,"-inner")},t.label),type:"time",subType:l}):Tt.createElement("div",{className:"".concat(s,"-inner")},t.label))})))}function wx(t,e){if(t.length!==e.length)return!0;for(var n=0;n<t.length;n+=1)if(t[n].disabled!==e[n].disabled)return!0;return!1}function kx(t,e,n,i){for(var r=[],o=n>=1?0|n:1,c=t;c<=e;c+=o)r.push({label:ix(c,2),value:c,disabled:(i||[]).includes(c)});return r}function _x(t){var e,n=t.generateConfig,i=t.prefixCls,r=t.operationRef,o=t.activeColumnIndex,c=t.value,a=t.showHour,l=t.showMinute,s=t.showSecond,u=t.use12Hours,h=t.hourStep,f=void 0===h?1:h,d=t.minuteStep,b=void 0===d?1:d,m=t.secondStep,p=void 0===m?1:m,v=t.disabledHours,g=t.disabledMinutes,x=t.disabledSeconds,y=t.disabledTime,w=t.hideDisabledOptions,k=t.onSelect,_=t.cellRender,z=t.locale,C=[],S="".concat(i,"-content"),D="".concat(i,"-time-panel"),j=c?n.getHour(c):-1,M=j,O=c?n.getMinute(c):-1,E=c?n.getSecond(c):-1,N=n.getNow(),T=lg(Tt.useMemo((function(){if(y){var t=y(N);return[t.disabledHours,t.disabledMinutes,t.disabledSeconds]}return[v,g,x]}),[v,g,x,y,N]),3),I=T[0],R=T[1],Y=T[2],A=kx(0,23,f,I&&I()),P=Mp((function(){return A}),A,wx);u&&(e=M>=12,M%=12);var F=lg(Tt.useMemo((function(){if(!u)return[!1,!1];var t=[!0,!0];return P.forEach((function(e){e.disabled||(e.value>=12?t[1]=!1:t[0]=!1)})),t}),[u,P]),2),$=F[0],L=F[1],H=Tt.useMemo((function(){return u?P.filter(e?function(t){return t.value>=12}:function(t){return t.value<12}).map((function(t){var e=t.value%12,n=0===e?"12":ix(e,2);return og(og({},t),{},{label:n,value:e})})):P}),[u,e,P]),W=kx(0,59,b,R&&R(j)),V=kx(0,59,p,Y&&Y(j,O)),U=xx({value:c,generateConfig:n,disabledMinutes:R,disabledSeconds:Y,minutes:W,seconds:V,use12Hours:u});function B(t,e,n,i,r){!1!==t&&C.push({node:Tt.cloneElement(e,{prefixCls:D,value:n,active:o===C.length,onSelect:r,units:i,hideDisabledOptions:w}),onSelect:r,value:n,units:i})}r.current={onUpDown:function(t){var e=C[o];if(e)for(var n=e.units.findIndex((function(t){return t.value===e.value})),i=e.units.length,r=1;r<i;r+=1){var c=e.units[(n+t*r+i)%i];if(!0!==c.disabled){e.onSelect(c.value);break}}}},B(a,Tt.createElement(yx,{key:"hour",type:"hour",info:{today:N,locale:z,cellRender:_}}),M,H,(function(t){k(U(e,t,O,E),"mouse")})),B(l,Tt.createElement(yx,{key:"minute",type:"minute",info:{today:N,locale:z,cellRender:_}}),O,W,(function(t){k(U(e,M,t,E),"mouse")})),B(s,Tt.createElement(yx,{key:"second",type:"second",info:{today:N,locale:z,cellRender:_}}),E,V,(function(t){k(U(e,M,O,t),"mouse")}));var G=-1;return"boolean"==typeof e&&(G=e?1:0),B(!0===u,Tt.createElement(yx,{key:"meridiem",type:"meridiem",info:{today:N,locale:z,cellRender:_}}),G,[{label:"AM",value:0,disabled:$},{label:"PM",value:1,disabled:L}],(function(t){k(U(!!t,M,O,E),"mouse")})),Tt.createElement("div",{className:S},C.map((function(t){return t.node})))}function zx(t){if(Tt.useContext(ex).hideHeader)return null;var e=t.generateConfig,n=t.locale,i=t.value,r=t.format,o="".concat(t.prefixCls,"-header");return Tt.createElement(px,{prefixCls:o},i?Rg(i,{locale:n,format:r,generateConfig:e}):" ")}function Cx(t){var e=t.generateConfig,n=t.format,i=void 0===n?"HH:mm:ss":n,r=t.prefixCls,o=t.active,c=t.operationRef,a=t.showHour,l=t.showMinute,s=t.showSecond,u=t.use12Hours,f=void 0!==u&&u,d=t.onSelect,b=t.value,m="".concat(r,"-time-panel"),p=Tt.useRef(),v=lg(Tt.useState(-1),2),g=v[0],x=v[1],y=[a,l,s,f].filter((function(t){return!1!==t})).length;return c.current={onKeyDown:function(t){return Ug(t,{onLeftRight:function(t){x((g+t+y)%y)},onUpDown:function(t){-1===g?x(0):p.current&&p.current.onUpDown(t)},onEnter:function(){d(b||e.getNow(),"key"),x(-1)}})},onBlur:function(){x(-1)}},Tt.createElement("div",{className:h(m,ig({},"".concat(m,"-active"),o))},Tt.createElement(zx,ng({},t,{format:i,prefixCls:r})),Tt.createElement(_x,ng({},t,{prefixCls:r,activeColumnIndex:g,operationRef:p})))}var Sx=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e}("date","time"),Dx=function(t,e){for(var n=new Set(t),i=0;i<=e;i++)if(!n.has(i))return i;return 0};function jx(t){var e=t.operationRef,n=t.generateConfig,i=t.value,r=t.defaultValue,o=t.disabledTime,c=t.showTime,a=t.onSelect,l=t.cellRender,s="".concat(t.prefixCls,"-datetime-panel"),u=lg(Tt.useState(null),2),f=u[0],d=u[1],b=Tt.useRef({}),m=Tt.useRef({}),p="object"===Bv(c)?og({},c):{},v=function(t){m.current.onBlur&&m.current.onBlur(t),d(null)};e.current={onKeyDown:function(t){if(t.which===$g.TAB){var e=function(t){var e=Sx.indexOf(f)+t;return Sx[e]||null}(t.shiftKey?-1:1);return d(e),e&&t.preventDefault(),!0}if(f){var n="date"===f?b:m;return n.current&&n.current.onKeyDown&&n.current.onKeyDown(t),!0}return!![$g.LEFT,$g.RIGHT,$g.UP,$g.DOWN].includes(t.which)&&(d("date"),!0)},onBlur:v,onClose:v};var g=function(t,e){var c=t;if("date"===e&&!i&&p.defaultValue)c=n.setHour(c,n.getHour(p.defaultValue)),c=n.setMinute(c,n.getMinute(p.defaultValue)),c=n.setSecond(c,n.getSecond(p.defaultValue));else if("time"===e&&!i&&r)c=n.setYear(c,n.getYear(r)),c=n.setMonth(c,n.getMonth(r)),c=n.setDate(c,n.getDate(r));else if("date"===e&&i&&o){var l,s,u,h=o(i),f=Dx((null===(l=h.disabledHours)||void 0===l?void 0:l.call(h))||[-1],23),d=Dx((null===(s=h.disabledMinutes)||void 0===s?void 0:s.call(h,f))||[-1],59),b=Dx((null===(u=h.disabledSeconds)||void 0===u?void 0:u.call(h,f,d))||[-1],59);c=n.setHour(c,f),c=n.setMinute(c,d),c=n.setSecond(c,b)}a&&a(c,"mouse")},x=o?o(i||null):{};return Tt.createElement("div",{className:h(s,ig({},"".concat(s,"-active"),f))},Tt.createElement(gx,ng({},t,{cellRender:l,operationRef:b,active:"date"===f,onSelect:function(t){g(hx(n,t,i||"object"!==Bv(c)?null:c.defaultValue),"date")}})),Tt.createElement(Cx,ng({},t,{cellRender:l?function(t,e){return l(t,og(og({},e),{},{type:"time"}))}:void 0,format:void 0},p,x,{disabledTime:null,defaultValue:void 0,operationRef:m,active:"time"===f,onSelect:function(t){g(t,"time")}})))}function Mx(t){var e=t.prefixCls,n=t.generateConfig,i=t.viewDate,r=t.onPrevDecades,o=t.onNextDecades;if(Tt.useContext(ex).hideHeader)return null;var c="".concat(e,"-header"),a=n.getYear(i),l=Math.floor(a/zg)*zg,s=l+zg-1;return Tt.createElement(px,ng({},t,{prefixCls:c,onSuperPrev:r,onSuperNext:o}),l,"-",s)}function Ox(t){var e=t.viewDate,n=t.generateConfig,i=t.cellRender,r=t.locale,o="".concat(t.prefixCls,"-cell"),c=n.getYear(e),a=Math.floor(c/_g)*_g,l=Math.floor(c/zg)*zg,s=l+zg-1,u=n.setYear(e,l-Math.ceil(10));return Tt.createElement(dx,ng({},t,{rowNum:4,colNum:3,baseDate:u,getCellNode:i?function(t,e){return i(t,{originNode:e,today:n.getNow(),type:"decade",locale:r})}:void 0,getCellText:function(t){var e=n.getYear(t);return"".concat(e,"-").concat(e+9)},getCellClassName:function(t){var e,i=n.getYear(t),r=i+9;return ig(e={},"".concat(o,"-in-view"),l<=i&&r<=s),ig(e,"".concat(o,"-selected"),i===a),e},getCellDate:function(t,e){return n.addYear(t,e*_g)}}))}function Ex(t){var e=t.prefixCls,n=t.onViewDateChange,i=t.generateConfig,r=t.viewDate,o=t.operationRef,c=t.onSelect,a=t.onPanelChange,l="".concat(e,"-decade-panel");o.current={onKeyDown:function(t){return Ug(t,{onLeftRight:function(t){c(i.addYear(r,t*_g),"key")},onCtrlLeftRight:function(t){c(i.addYear(r,t*zg),"key")},onUpDown:function(t){c(i.addYear(r,t*_g*3),"key")},onEnter:function(){a("year",r)}})}};var s=function(t){var e=i.addYear(r,t*zg);n(e),a(null,e)};return Tt.createElement("div",{className:l},Tt.createElement(Mx,ng({},t,{prefixCls:e,onPrevDecades:function(){s(-1)},onNextDecades:function(){s(1)}})),Tt.createElement(Ox,ng({},t,{prefixCls:e,onSelect:function(t){c(t,"mouse"),a("year",t)}})))}function Nx(t){var e=t.prefixCls,n=t.generateConfig,i=t.locale,r=t.viewDate,o=t.onNextYear,c=t.onPrevYear,a=t.onYearClick;if(Tt.useContext(ex).hideHeader)return null;var l="".concat(e,"-header");return Tt.createElement(px,ng({},t,{prefixCls:l,onSuperPrev:c,onSuperNext:o}),Tt.createElement("button",{type:"button",onClick:a,className:"".concat(e,"-year-btn")},Rg(r,{locale:i,format:i.yearFormat,generateConfig:n})))}function Tx(t){var e=t.prefixCls,n=t.locale,i=t.value,r=t.viewDate,o=t.generateConfig,c=t.cellRender,a=Tt.useContext(sx),l=a.rangedValue,s=a.hoverRangedValue,u=lx({cellPrefixCls:"".concat(e,"-cell"),value:i,generateConfig:o,rangedValue:l,hoverRangedValue:s,isSameCell:function(t,e){return Mg(o,t,e)},isInView:function(){return!0},offsetCell:function(t,e){return o.addMonth(t,e)}}),h=n.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(n.locale):[]),f=o.setMonth(r,0);return Tt.createElement(dx,ng({},t,{rowNum:4,colNum:3,baseDate:f,getCellNode:c?function(t,e){return c(t,{originNode:e,locale:n,today:o.getNow(),type:"month"})}:void 0,getCellText:function(t){return n.monthFormat?Rg(t,{locale:n,format:n.monthFormat,generateConfig:o}):h[o.getMonth(t)]},getCellClassName:u,getCellDate:o.addMonth,titleCell:function(t){return Rg(t,{locale:n,format:"YYYY-MM",generateConfig:o})}}))}function Ix(t){var e=t.prefixCls,n=t.operationRef,i=t.onViewDateChange,r=t.generateConfig,o=t.value,c=t.viewDate,a=t.onPanelChange,l=t.onSelect,s="".concat(e,"-month-panel");n.current={onKeyDown:function(t){return Ug(t,{onLeftRight:function(t){l(r.addMonth(o||c,t),"key")},onCtrlLeftRight:function(t){l(r.addYear(o||c,t),"key")},onUpDown:function(t){l(r.addMonth(o||c,3*t),"key")},onEnter:function(){a("date",o||c)}})}};var u=function(t){var e=r.addYear(c,t);i(e),a(null,e)};return Tt.createElement("div",{className:s},Tt.createElement(Nx,ng({},t,{prefixCls:e,onPrevYear:function(){u(-1)},onNextYear:function(){u(1)},onYearClick:function(){a("year",c)}})),Tt.createElement(Tx,ng({},t,{prefixCls:e,onSelect:function(t){l(t,"mouse"),a("date",t)}})))}function Rx(t){var e=t.prefixCls,n=t.generateConfig,i=t.locale,r=t.viewDate,o=t.onNextYear,c=t.onPrevYear,a=t.onYearClick;if(Tt.useContext(ex).hideHeader)return null;var l="".concat(e,"-header");return Tt.createElement(px,ng({},t,{prefixCls:l,onSuperPrev:c,onSuperNext:o}),Tt.createElement("button",{type:"button",onClick:a,className:"".concat(e,"-year-btn")},Rg(r,{locale:i,format:i.yearFormat,generateConfig:n})))}function Yx(t){var e=t.prefixCls,n=t.locale,i=t.value,r=t.viewDate,o=t.generateConfig,c=t.cellRender,a=Tt.useContext(sx),l=a.rangedValue,s=a.hoverRangedValue,u=lx({cellPrefixCls:"".concat(e,"-cell"),value:i,generateConfig:o,rangedValue:l,hoverRangedValue:s,isSameCell:function(t,e){return jg(o,t,e)},isInView:function(){return!0},offsetCell:function(t,e){return o.addMonth(t,3*e)}}),h=o.setDate(o.setMonth(r,0),1);return Tt.createElement(dx,ng({},t,{rowNum:1,colNum:4,baseDate:h,getCellNode:c?function(t,e){return c(t,{originNode:e,locale:n,today:o.getNow(),type:"quarter"})}:void 0,getCellText:function(t){return Rg(t,{locale:n,format:n.quarterFormat||"[Q]Q",generateConfig:o})},getCellClassName:u,getCellDate:function(t,e){return o.addMonth(t,3*e)},titleCell:function(t){return Rg(t,{locale:n,format:"YYYY-[Q]Q",generateConfig:o})}}))}function Ax(t){var e=t.prefixCls,n=t.operationRef,i=t.onViewDateChange,r=t.generateConfig,o=t.value,c=t.viewDate,a=t.onPanelChange,l=t.onSelect,s="".concat(e,"-quarter-panel");n.current={onKeyDown:function(t){return Ug(t,{onLeftRight:function(t){l(r.addMonth(o||c,3*t),"key")},onCtrlLeftRight:function(t){l(r.addYear(o||c,t),"key")},onUpDown:function(t){l(r.addYear(o||c,t),"key")}})}};var u=function(t){var e=r.addYear(c,t);i(e),a(null,e)};return Tt.createElement("div",{className:s},Tt.createElement(Rx,ng({},t,{prefixCls:e,onPrevYear:function(){u(-1)},onNextYear:function(){u(1)},onYearClick:function(){a("year",c)}})),Tt.createElement(Yx,ng({},t,{prefixCls:e,onSelect:function(t){l(t,"mouse")}})))}function Px(t){var e=t.prefixCls,n=t.generateConfig,i=t.locale,r=t.value,o=t.disabledDate,c=t.onSelect,a=Tt.useContext(sx),l=a.rangedValue,s=a.hoverRangedValue,u=Tt.useContext(ex),f=u.onDateMouseEnter,d=u.onDateMouseLeave,b=(null==s?void 0:s[0])||(null==l?void 0:l[0]),m=(null==s?void 0:s[1])||(null==l?void 0:l[1]),p="".concat(e,"-cell"),v="".concat(e,"-week-panel-row");return Tt.createElement(gx,ng({},t,{panelName:"week",prefixColumn:function(t){var e=Ag({cellDate:t,mode:"week",disabledDate:o,generateConfig:n});return Tt.createElement("td",{key:"week",className:h(p,"".concat(p,"-week")),onClick:function(){e||c(t,"mouse")},onMouseEnter:function(){!e&&f&&f(t)},onMouseLeave:function(){!e&&d&&d(t)}},Tt.createElement("div",{className:"".concat(p,"-inner")},n.locale.getWeek(i.locale,t)))},rowClassName:function(t){var e,o=Eg(n,i.locale,b,t),c=Eg(n,i.locale,m,t);return h(v,(ig(e={},"".concat(v,"-selected"),!l&&Eg(n,i.locale,r,t)),ig(e,"".concat(v,"-range-start"),o),ig(e,"".concat(v,"-range-end"),c),ig(e,"".concat(v,"-range-hover"),!o&&!c&&Tg(n,b,m,t)),e))},keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var Fx=10;function $x(t){var e=t.prefixCls,n=t.generateConfig,i=t.viewDate,r=t.onPrevDecade,o=t.onNextDecade,c=t.onDecadeClick;if(Tt.useContext(ex).hideHeader)return null;var a="".concat(e,"-header"),l=n.getYear(i),s=Math.floor(l/Fx)*Fx,u=s+Fx-1;return Tt.createElement(px,ng({},t,{prefixCls:a,onSuperPrev:r,onSuperNext:o}),Tt.createElement("button",{type:"button",onClick:c,className:"".concat(e,"-decade-btn")},s,"-",u))}function Lx(t){var e=t.prefixCls,n=t.value,i=t.viewDate,r=t.locale,o=t.generateConfig,c=t.cellRender,a=Tt.useContext(sx),l=a.rangedValue,s=a.hoverRangedValue,u="".concat(e,"-cell"),h=o.getYear(i),f=Math.floor(h/Fx)*Fx,d=f+Fx-1,b=o.setYear(i,f-Math.ceil(1)),m=o.getNow(),p=lx({cellPrefixCls:u,value:n,generateConfig:o,rangedValue:l,hoverRangedValue:s,isSameCell:function(t,e){return Sg(o,t,e)},isInView:function(t){var e=o.getYear(t);return f<=e&&e<=d},offsetCell:function(t,e){return o.addYear(t,e)}});return Tt.createElement(dx,ng({},t,{rowNum:4,colNum:3,baseDate:b,getCellNode:c?function(t,e){return c(t,{originNode:e,today:m,type:"year",locale:r})}:void 0,getCellText:o.getYear,getCellClassName:p,getCellDate:o.addYear,titleCell:function(t){return Rg(t,{locale:r,format:"YYYY",generateConfig:o})}}))}function Hx(t){var e=t.prefixCls,n=t.operationRef,i=t.onViewDateChange,r=t.generateConfig,o=t.value,c=t.viewDate,a=t.sourceMode,l=t.onSelect,s=t.onPanelChange,u="".concat(e,"-year-panel");n.current={onKeyDown:function(t){return Ug(t,{onLeftRight:function(t){l(r.addYear(o||c,t),"key")},onCtrlLeftRight:function(t){l(r.addYear(o||c,t*Fx),"key")},onUpDown:function(t){l(r.addYear(o||c,3*t),"key")},onEnter:function(){s("date"===a?"date":"month",o||c)}})}};var h=function(t){var e=r.addYear(c,10*t);i(e),s(null,e)};return Tt.createElement("div",{className:u},Tt.createElement($x,ng({},t,{prefixCls:e,onPrevDecade:function(){h(-1)},onNextDecade:function(){h(1)},onDecadeClick:function(){s("decade",c)}})),Tt.createElement(Lx,ng({},t,{prefixCls:e,onSelect:function(t){s("date"===a?"date":"month",t),l(t,"mouse")}})))}function Wx(t,e,n){return n?Tt.createElement("div",{className:"".concat(t,"-footer-extra")},n(e)):null}function Vx(t){var e,n,i=t.prefixCls,r=t.components,o=t.needConfirmButton,c=t.onNow,a=t.onOk,l=t.okDisabled,s=t.locale;if(o){var u=(void 0===r?{}:r).button||"button";c&&!1!==t.showNow&&(e=Tt.createElement("li",{className:"".concat(i,"-now")},Tt.createElement("a",{className:"".concat(i,"-now-btn"),onClick:c},s.now))),n=o&&Tt.createElement("li",{className:"".concat(i,"-ok")},Tt.createElement(u,{disabled:l,onClick:a},s.ok))}return e||n?Tt.createElement("ul",{className:"".concat(i,"-ranges")},e,n):null}var Ux=["date","month"];function Bx(t){var e,n=t.prefixCls,i=void 0===n?"rc-picker":n,r=t.className,o=t.style,c=t.locale,a=t.generateConfig,l=t.value,s=t.defaultValue,u=t.pickerValue,f=t.defaultPickerValue,d=t.disabledDate,b=t.mode,m=t.picker,p=void 0===m?"date":m,v=t.tabIndex,g=void 0===v?0:v,x=t.showNow,y=t.showTime,w=t.showToday,k=t.renderExtraFooter,_=t.hideHeader,z=t.onSelect,C=t.onChange,S=t.onPanelChange,D=t.onMouseDown,j=t.onPickerValueChange,M=t.onOk,O=t.components,E=t.direction,N=t.hourStep,T=void 0===N?1:N,I=t.minuteStep,R=void 0===I?1:I,Y=t.secondStep,A=void 0===Y?1:Y,P=t.dateRender,F=t.monthCellRender,$=t.cellRender,L="date"===p&&!!y||"time"===p,H=24%T==0,W=60%R==0,V=60%A==0,U=Tt.useContext(ex),B=U.operationRef,G=U.onSelect,q=U.hideRanges,K=U.defaultOpenValue,Z=Tt.useContext(sx),X=Z.inRange,Q=Z.panelPosition,J=Z.rangedValue,tt=Z.hoverRangedValue,et=Tt.useRef({}),nt=Tt.useRef(!0),it=lg(dg(null,{value:l,defaultValue:s,postState:function(t){return!t&&K&&"time"===p?K:t}}),2),rt=it[0],ot=it[1],ct=dg(null,{value:u,defaultValue:f||rt,postState:function(t){var e=a.getNow();if(!t)return e;if(!rt&&y){var n="object"===Bv(y)?y.defaultValue:s;return hx(a,Array.isArray(t)?t[0]:t,n||e)}return Array.isArray(t)?t[0]:t}}),at=lg(ct,2),lt=at[0],st=at[1],ut=function(t){st(t),j&&j(t)},ht=function(t){var e=Zg[p];return e?e(t):t},ft=lg(dg((function(){return"time"===p?"time":ht("date")}),{value:b}),2),dt=ft[0],bt=ft[1];Tt.useEffect((function(){bt(p)}),[p]);var mt,pt=lg(Tt.useState((function(){return dt})),2),vt=pt[0],gt=pt[1],xt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(dt===p||n)&&(ot(t),z&&z(t),G&&G(t,e),!C||Ng(a,t,rt)||null!=d&&d(t)||C(t))},yt=function(t){if(et.current&&et.current.onKeyDown){var e=!0,n=t.which;if([$g.LEFT,$g.RIGHT,$g.UP,$g.DOWN,$g.PAGE_UP,$g.PAGE_DOWN,$g.ENTER].includes(n)&&(t.preventDefault(),n!==$g.ENTER&&0===g&&(e=function(t){if(Ux.includes(dt)){var e,n,i="date"===dt;switch(n=t===$g.PAGE_UP||t===$g.PAGE_DOWN?i?a.addMonth:a.addYear:i?a.addDate:a.addMonth,t){case $g.LEFT:case $g.PAGE_UP:e=n(lt,-1);break;case $g.RIGHT:case $g.PAGE_DOWN:e=n(lt,1);break;case $g.UP:case $g.DOWN:e=n(lt,Number("".concat(t===$g.UP?"-":"").concat(i?7:3)))}if(e)return!(null!=d&&d(e))}return!0}(n))),e)return et.current.onKeyDown(t)}return kp(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1};B&&"right"!==Q&&(B.current={onKeyDown:yt,onClose:function(){et.current&&et.current.onClose&&et.current.onClose()}}),Tt.useEffect((function(){l&&!nt.current&&st(l)}),[l]),Tt.useEffect((function(){nt.current=!1}),[]);var wt,kt,_t,zt=nx({cellRender:$,monthCellRender:F,dateRender:P}),Ct=og(og({},t),{},{cellRender:zt,operationRef:et,prefixCls:i,viewDate:lt,value:rt,onViewDateChange:ut,sourceMode:vt,onPanelChange:function(t,e){var n=ht(t||dt);gt(dt),bt(n),S&&(dt!==n||Ng(a,lt,lt))&&S(e,n)},disabledDate:d});switch(delete Ct.onChange,delete Ct.onSelect,dt){case"decade":mt=Tt.createElement(Ex,ng({},Ct,{onSelect:function(t,e){ut(t),xt(t,e)}}));break;case"year":mt=Tt.createElement(Hx,ng({},Ct,{onSelect:function(t,e){ut(t),xt(t,e)}}));break;case"month":mt=Tt.createElement(Ix,ng({},Ct,{onSelect:function(t,e){ut(t),xt(t,e)}}));break;case"quarter":mt=Tt.createElement(Ax,ng({},Ct,{onSelect:function(t,e){ut(t),xt(t,e)}}));break;case"week":mt=Tt.createElement(Px,ng({},Ct,{onSelect:function(t,e){ut(t),xt(t,e)}}));break;case"time":delete Ct.showTime,mt=Tt.createElement(Cx,ng({},Ct,"object"===Bv(y)?y:null,{onSelect:function(t,e){ut(t),xt(t,e)}}));break;default:mt=Tt.createElement(y?jx:gx,ng({},Ct,{onSelect:function(t,e){ut(t),xt(t,e)}}))}if(q||(wt=Wx(i,dt,k),kt=y&&"date"!==dt?null:Vx({prefixCls:i,components:O,needConfirmButton:L,okDisabled:!rt||d&&d(rt),locale:c,showNow:x,onNow:L&&function(){var t=a.getNow(),e=function(t,e,n,i,r,o){var c=Math.floor(t/i)*i;if(c<t)return[c,60-r,60-o];var a=Math.floor(e/r)*r;return a<e?[c,a,60-o]:[c,a,Math.floor(n/o)*o]}(a.getHour(t),a.getMinute(t),a.getSecond(t),H?T:1,W?R:1,V?A:1),n=ux(a,t,e[0],e[1],e[2]);xt(n,"submit")},onOk:function(){rt&&(xt(rt,"submit",!0),M&&M(rt))}})),w&&"date"===dt&&"date"===p&&!y){var St=a.getNow(),Dt="".concat(i,"-today-btn"),jt=d&&d(St);_t=Tt.createElement("a",{className:h(Dt,jt&&"".concat(Dt,"-disabled")),"aria-disabled":jt,onClick:function(){jt||xt(St,"mouse",!0)}},c.today)}return Tt.createElement(ex.Provider,{value:og(og({},U),{},{mode:dt,hideHeader:"hideHeader"in t?_:U.hideHeader,hidePrevBtn:X&&"right"===Q,hideNextBtn:X&&"left"===Q})},Tt.createElement("div",{tabIndex:g,className:h("".concat(i,"-panel"),r,(e={},ig(e,"".concat(i,"-panel-has-range"),J&&J[0]&&J[1]),ig(e,"".concat(i,"-panel-has-range-hover"),tt&&tt[0]&&tt[1]),ig(e,"".concat(i,"-panel-rtl"),"rtl"===E),e)),style:o,onKeyDown:yt,onBlur:function(t){et.current&&et.current.onBlur&&et.current.onBlur(t)},onMouseDown:D},mt,wt||kt||_t?Tt.createElement("div",{className:"".concat(i,"-footer")},wt,kt,_t):null))}function Gx(t){return Gx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gx(t)}function qx(t,e,n){return(e=function(t){var e=function(t){if("object"!==Gx(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Gx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Gx(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Kx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Zx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kx(Object(n),!0).forEach((function(e){qx(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xx(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Qx(t,e){if(t){if("string"==typeof t)return Xx(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xx(t,e):void 0}}function Jx(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,c,a=[],l=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){s=!0,r=t}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw r}}return a}}(t,e)||Qx(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ty(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ey(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ny(t,e){if(t){if("string"==typeof t)return ey(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ey(t,e):void 0}}function iy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,c,a=[],l=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){s=!0,r=t}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw r}}return a}}(t,e)||ny(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ry=Tt.createContext(null);var oy,cy=[],ay="data-rc-order",ly="rc-util-key",sy=new Map;function uy(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):ly}function hy(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function fy(t){return"queue"===t?"prependQueue":t?"prepend":"append"}function dy(t){return Array.from((sy.get(t)||t).children).filter((function(t){return"STYLE"===t.tagName}))}function by(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!pv())return null;var n=e.csp,i=e.prepend,r=document.createElement("style");r.setAttribute(ay,fy(i)),null!=n&&n.nonce&&(r.nonce=null==n?void 0:n.nonce),r.innerHTML=t;var o=hy(e),c=o.firstChild;if(i){if("queue"===i){var a=dy(o).filter((function(t){return["prepend","prependQueue"].includes(t.getAttribute(ay))}));if(a.length)return o.insertBefore(r,a[a.length-1].nextSibling),r}o.insertBefore(r,c)}else o.appendChild(r);return r}function my(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=hy(e);return dy(n).find((function(n){return n.getAttribute(uy(e))===t}))}function py(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=my(t,e);if(n){var i=hy(e);i.removeChild(n)}}function vy(t,e){var n=sy.get(t);if(!n||!function(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}(document,n)){var i=by("",e);sy.set(t,i.parentNode),t.removeChild(i)}}function gy(t){var e=t.match(/^(.*)px$/),n=Number(null==e?void 0:e[1]);return Number.isNaN(n)?function(){if("undefined"==typeof document)return 0;if(void 0===oy){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div"),n=e.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var r=t.offsetWidth;i===r&&(r=e.clientWidth),document.body.removeChild(e),oy=i-r}return oy}():n}var xy="rc-util-locker-".concat(Date.now()),yy=0;function wy(t){var e=!!t,n=iy(Tt.useState((function(){return yy+=1,"".concat(xy,"_").concat(yy)})),1)[0];gv((function(){if(e){var t=function(t){if(!("undefined"!=typeof document&&t&&t instanceof Element))return{width:0,height:0};var e=getComputedStyle(t,"::-webkit-scrollbar"),n=e.height;return{width:gy(e.width),height:gy(n)}}(document.body).width,i=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;!function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};vy(hy(n),n);var i,r,o,c=my(e,n);if(c)return null!==(i=n.csp)&&void 0!==i&&i.nonce&&c.nonce!==(null===(r=n.csp)||void 0===r?void 0:r.nonce)&&(c.nonce=null===(o=n.csp)||void 0===o?void 0:o.nonce),c.innerHTML!==t&&(c.innerHTML=t),c;var a=by(t,n);a.setAttribute(uy(n),e)}("\nhtml body {\n overflow-y: hidden;\n ".concat(i?"width: calc(100% - ".concat(t,"px);"):"","\n}"),n)}else py(n);return function(){py(n)}}),[e,n])}var ky=!1,_y=function(t){return!1!==t&&(pv()&&t?"string"==typeof t?document.querySelector(t):"function"==typeof t?t():t:null)},zy=Tt.forwardRef((function(t,e){var n=t.open,i=t.autoLock,r=t.getContainer,o=t.autoDestroy,c=void 0===o||o,a=t.children,l=iy(Tt.useState(n),2),s=l[1],u=l[0]||n;Tt.useEffect((function(){(c||n)&&s(n)}),[n,c]);var h=iy(Tt.useState((function(){return _y(r)})),2),f=h[0],d=h[1];Tt.useEffect((function(){var t=_y(r);d(null!=t?t:null)}));var b=function(t){var e=iy(Tt.useState((function(){return pv()?document.createElement("div"):null})),1)[0],n=Tt.useRef(!1),i=Tt.useContext(ry),r=iy(Tt.useState(cy),2),o=r[0],c=r[1],a=i||(n.current?void 0:function(t){c((function(e){return[t].concat(function(t){if(Array.isArray(t))return ey(t)}(n=e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||ny(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var n}))});function l(){e.parentElement||document.body.appendChild(e),n.current=!0}function s(){var t;null===(t=e.parentElement)||void 0===t||t.removeChild(e),n.current=!1}return gv((function(){return t?i?i(l):l():s(),s}),[t]),gv((function(){o.length&&(o.forEach((function(t){return t()})),c(cy))}),[o]),[e,a]}(u&&!f),m=iy(b,2),p=m[0],v=m[1],g=null!=f?f:p;wy(i&&n&&pv()&&(g===p||g===document.body));var x=null;a&&Tp(a)&&e&&(x=a.ref);var y=Np(x,e);if(!u||!pv()||void 0===f)return null;var w=!1===g||ky,k=a;return e&&(k=Tt.cloneElement(a,{ref:y})),Tt.createElement(ry.Provider,{value:v},w?k:Ou.createPortal(k,g))}));function Cy(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}function Sy(t){return function(t){return Cy(t)!==(null==t?void 0:t.ownerDocument)}(t)?Cy(t):null}var Dy=0;function jy(t){var e=ug(Tt.useState("ssr-id"),2),n=e[0],i=e[1],r=pg({},It).useId,o=null==r?void 0:r();return Tt.useEffect((function(){if(!r){var t=Dy;Dy+=1,i("rc_unique_".concat(t))}}),[]),t||o||n}const My=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==t?void 0:t.substr(0,4))};var Oy=Tt.createContext(null);function Ey(t){return t?Array.isArray(t)?t:[t]:[]}function Ny(t,e,n,i){return Tt.useMemo((function(){var r=Ey(null!=n?n:e),o=Ey(null!=i?i:e),c=new Set(r),a=new Set(o);return t&&(c.has("hover")&&(c.delete("hover"),c.add("click")),a.has("hover")&&(a.delete("hover"),a.add("click"))),[c,a]}),[t,e,n,i])}function Ty(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function Iy(t,e,n,i){for(var r=n.points,o=Object.keys(t),c=0;c<o.length;c+=1){var a,l=o[c];if(Ty(null===(a=t[l])||void 0===a?void 0:a.points,r,i))return"".concat(e,"-placement-").concat(l)}return""}function Ry(t,e,n,i){return e||(n?{motionName:"".concat(t,"-").concat(n)}:i?{motionName:i}:null)}function Yy(t){return t.ownerDocument.defaultView}function Ay(t){for(var e=[],n=null==t?void 0:t.parentElement,i=["hidden","scroll","clip","auto"];n;){var r=Yy(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some((function(t){return i.includes(t)}))&&e.push(n),n=n.parentElement}return e}function Py(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(t)?e:t}function Fy(t){return Py(parseFloat(t),0)}function $y(t,e){var n=Zx({},t);return(e||[]).forEach((function(t){if(!(t instanceof HTMLBodyElement||t instanceof HTMLHtmlElement)){var e=Yy(t).getComputedStyle(t),i=e.overflow,r=e.overflowClipMargin,o=e.borderTopWidth,c=e.borderBottomWidth,a=e.borderLeftWidth,l=e.borderRightWidth,s=t.getBoundingClientRect(),u=t.offsetHeight,h=t.clientHeight,f=t.offsetWidth,d=t.clientWidth,b=Fy(o),m=Fy(c),p=Fy(a),v=Fy(l),g=Py(Math.round(s.width/f*1e3)/1e3),x=Py(Math.round(s.height/u*1e3)/1e3),y=(f-d-p-v)*g,w=(u-h-b-m)*x,k=b*x,_=m*x,z=p*g,C=v*g,S=0,D=0;if("clip"===i){var j=Fy(r);S=j*g,D=j*x}var M=s.x+z-S,O=s.y+k-D,E=M+s.width+2*S-z-C-y,N=O+s.height+2*D-k-_-w;n.left=Math.max(n.left,M),n.top=Math.max(n.top,O),n.right=Math.min(n.right,E),n.bottom=Math.min(n.bottom,N)}})),n}function Ly(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(e),i=n.match(/^(.*)\%$/);return i?t*(parseFloat(i[1])/100):parseFloat(n)}function Hy(t,e){var n=Jx(e||[],2),i=n[1];return[Ly(t.width,n[0]),Ly(t.height,i)]}function Wy(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[t[0],t[1]]}function Vy(t,e){var n=e[0],i=e[1];return{x:"l"===i?t.x:"r"===i?t.x+t.width:t.x+t.width/2,y:"t"===n?t.y:"b"===n?t.y+t.height:t.y+t.height/2}}function Uy(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map((function(t,i){return i===e?n[t]||"c":t})).join("")}function By(t,e,n,i,r,o,c){var a=Jx(Tt.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:r[i]||{}}),2),l=a[0],s=a[1],u=Tt.useRef(0),h=Tt.useMemo((function(){return e?Ay(e):[]}),[e]),f=Tt.useRef({});t||(f.current={});var d=zv((function(){if(e&&n&&t){var a,l,u,d=e,b=d.ownerDocument,m=Yy(d).getComputedStyle(d),p=m.width,v=m.height,g=m.position,x=d.style.left,y=d.style.top,w=d.style.right,k=d.style.bottom,_=Zx(Zx({},r[i]),o),z=b.createElement("div");if(null===(a=d.parentElement)||void 0===a||a.appendChild(z),z.style.left="".concat(d.offsetLeft,"px"),z.style.top="".concat(d.offsetTop,"px"),z.style.position=g,z.style.height="".concat(d.offsetHeight,"px"),z.style.width="".concat(d.offsetWidth,"px"),d.style.left="0",d.style.top="0",d.style.right="auto",d.style.bottom="auto",Array.isArray(n))u={x:n[0],y:n[1],width:0,height:0};else{var C=n.getBoundingClientRect();u={x:C.x,y:C.y,width:C.width,height:C.height}}var S=d.getBoundingClientRect(),D=b.documentElement,j=D.scrollTop,M=D.scrollLeft,O=S.height,E=S.width,N=u.height,T=u.width,I={left:0,top:0,right:D.clientWidth,bottom:D.clientHeight},R=_.htmlRegion,Y="visible",A="visibleFirst";"scroll"!==R&&R!==A&&(R=Y);var P=R===A,F=$y({left:-M,top:-j,right:D.scrollWidth-M,bottom:D.scrollHeight-j},h),$=$y(I,h),L=R===Y?$:F,H=P?$:L;d.style.left="auto",d.style.top="auto",d.style.right="0",d.style.bottom="0";var W=d.getBoundingClientRect();d.style.left=x,d.style.top=y,d.style.right=w,d.style.bottom=k,null===(l=d.parentElement)||void 0===l||l.removeChild(z);var V=Py(Math.round(E/parseFloat(p)*1e3)/1e3),U=Py(Math.round(O/parseFloat(v)*1e3)/1e3);if(0===V||0===U||Ip(n)&&!Hg(n))return;var B=_.targetOffset,G=Jx(Hy(S,_.offset),2),q=G[0],K=G[1],Z=Jx(Hy(u,B),2),X=Z[1];u.x-=Z[0],u.y-=X;var Q=Jx(_.points||[],2),J=Q[0],tt=Wy(Q[1]),et=Wy(J),nt=Vy(u,tt),it=Vy(S,et),rt=Zx({},_),ot=nt.x-it.x+q,ct=nt.y-it.y+K;function at(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L,i=S.x+t,r=S.y+e,o=i+E,c=r+O,a=Math.max(i,n.left),l=Math.max(r,n.top),s=Math.min(o,n.right),u=Math.min(c,n.bottom);return Math.max(0,(s-a)*(u-l))}var lt,st,ut,ht,ft=at(ot,ct),dt=at(ot,ct,$),bt=Vy(u,["t","l"]),mt=Vy(S,["t","l"]),pt=Vy(u,["b","r"]),vt=Vy(S,["b","r"]),gt=_.overflow||{},xt=gt.adjustX,yt=gt.adjustY,wt=gt.shiftX,kt=gt.shiftY,_t=function(t){return"boolean"==typeof t?t:t>=0};function zt(){st=(lt=S.y+ct)+O,ht=(ut=S.x+ot)+E}zt();var Ct=_t(yt),St=et[0]===tt[0];if(Ct&&"t"===et[0]&&(st>H.bottom||f.current.bt)){var Dt=ct;St?Dt-=O-N:Dt=bt.y-vt.y-K;var jt=at(ot,Dt),Mt=at(ot,Dt,$);jt>ft||jt===ft&&(!P||Mt>=dt)?(f.current.bt=!0,ct=Dt,K=-K,rt.points=[Uy(et,0),Uy(tt,0)]):f.current.bt=!1}if(Ct&&"b"===et[0]&&(lt<H.top||f.current.tb)){var Ot=ct;St?Ot+=O-N:Ot=pt.y-mt.y-K;var Et=at(ot,Ot),Nt=at(ot,Ot,$);Et>ft||Et===ft&&(!P||Nt>=dt)?(f.current.tb=!0,ct=Ot,K=-K,rt.points=[Uy(et,0),Uy(tt,0)]):f.current.tb=!1}var Tt=_t(xt),It=et[1]===tt[1];if(Tt&&"l"===et[1]&&(ht>H.right||f.current.rl)){var Rt=ot;It?Rt-=E-T:Rt=bt.x-vt.x-q;var Yt=at(Rt,ct),At=at(Rt,ct,$);Yt>ft||Yt===ft&&(!P||At>=dt)?(f.current.rl=!0,ot=Rt,q=-q,rt.points=[Uy(et,1),Uy(tt,1)]):f.current.rl=!1}if(Tt&&"r"===et[1]&&(ut<H.left||f.current.lr)){var Pt=ot;It?Pt+=E-T:Pt=pt.x-mt.x-q;var Ft=at(Pt,ct),$t=at(Pt,ct,$);Ft>ft||Ft===ft&&(!P||$t>=dt)?(f.current.lr=!0,ot=Pt,q=-q,rt.points=[Uy(et,1),Uy(tt,1)]):f.current.lr=!1}zt();var Lt=!0===wt?0:wt;"number"==typeof Lt&&(ut<$.left&&(ot-=ut-$.left-q,u.x+T<$.left+Lt&&(ot+=u.x-$.left+T-Lt)),ht>$.right&&(ot-=ht-$.right-q,u.x>$.right-Lt&&(ot+=u.x-$.right+Lt)));var Ht=!0===kt?0:kt;"number"==typeof Ht&&(lt<$.top&&(ct-=lt-$.top-K,u.y+N<$.top+Ht&&(ct+=u.y-$.top+N-Ht)),st>$.bottom&&(ct-=st-$.bottom-K,u.y>$.bottom-Ht&&(ct+=u.y-$.bottom+Ht)));var Wt=S.x+ot,Vt=Wt+E,Ut=S.y+ct,Bt=Ut+O,Gt=u.x,qt=Gt+T,Kt=u.y,Zt=Kt+N,Xt=(Math.max(Wt,Gt)+Math.min(Vt,qt))/2-Wt,Qt=(Math.max(Ut,Kt)+Math.min(Bt,Zt))/2-Ut;null==c||c(e,rt),s({ready:!0,offsetX:ot/V,offsetY:ct/U,offsetR:(W.right-S.x-(ot+S.width))/V,offsetB:(W.bottom-S.y-(ct+S.height))/U,arrowX:Xt/V,arrowY:Qt/U,scaleX:V,scaleY:U,align:rt})}})),b=function(){s((function(t){return Zx(Zx({},t),{},{ready:!1})}))};return gv(b,[i]),gv((function(){t||b()}),[t]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){u.current+=1;var t=u.current;Promise.resolve().then((function(){u.current===t&&d()}))}]}function Gy(t){return function(t){if(Array.isArray(t))return Xx(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Qx(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qy(t,e,n,i,r){gv((function(){if(t&&e&&n){var o=n,c=Ay(e),a=Ay(o),l=Yy(o),s=new Set([l].concat(Gy(c),Gy(a)));function u(){i(),r()}return s.forEach((function(t){t.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),i(),function(){s.forEach((function(t){t.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[t,e,n])}function Ky(t,e,n,i,r,o,c,a){var l=Tt.useRef(t),s=Tt.useRef(!1);l.current!==t&&(s.current=!0,l.current=t),Tt.useEffect((function(){var t=Ov((function(){s.current=!1}));return function(){Ov.cancel(t)}}),[t]),Tt.useEffect((function(){if(e&&i&&(!r||o)){var t=function(){var t=!1;return[function(e){t=c(e.target)},function(e){s.current||!l.current||t||c(e.target)||a(!1)}]},u=Jx(t(),2),h=u[0],f=u[1],d=Jx(t(),2),b=d[0],m=d[1],p=Yy(i);p.addEventListener("mousedown",h,!0),p.addEventListener("click",f,!0),p.addEventListener("contextmenu",f,!0);var v=Sy(n);return v&&(v.addEventListener("mousedown",b,!0),v.addEventListener("click",m,!0),v.addEventListener("contextmenu",m,!0)),function(){p.removeEventListener("mousedown",h,!0),p.removeEventListener("click",f,!0),p.removeEventListener("contextmenu",f,!0),v&&(v.removeEventListener("mousedown",b,!0),v.removeEventListener("click",m,!0),v.removeEventListener("contextmenu",m,!0))}}}),[e,n,i,r,o])}function Zy(){return Zy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Zy.apply(this,arguments)}function Xy(t){return Xy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xy(t)}function Qy(t){var e=function(t){if("object"!==Xy(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Xy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Xy(e)?e:String(e)}function Jy(t,e,n){return(e=Qy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ew(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tw(Object(n),!0).forEach((function(e){Jy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nw(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function iw(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,c,a=[],l=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){s=!0,r=t}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return nw(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nw(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rw(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var ow=Tt.createContext({});function cw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aw(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Qy(i.key),i)}}function lw(t,e,n){return e&&aw(t.prototype,e),n&&aw(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function sw(t,e){return sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},sw(t,e)}function uw(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sw(t,e)}function hw(t){return hw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hw(t)}function fw(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dw(t,e){if(e&&("object"===Xy(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return fw(t)}function bw(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=hw(t);if(e){var r=hw(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return dw(this,n)}}var mw=function(){uw(e,Tt.Component);var t=bw(e);function e(){return cw(this,e),t.apply(this,arguments)}return lw(e,[{key:"render",value:function(){return this.props.children}}]),e}(),pw="none",vw="appear",gw="enter",xw="leave",yw="none",ww="prepare",kw="start",_w="active",zw="end",Cw="prepared";function Sw(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(e),n["Moz".concat(t)]="moz".concat(e),n["ms".concat(t)]="MS".concat(e),n["O".concat(t)]="o".concat(e.toLowerCase()),n}var Dw,jw,Mw,Ow=(Dw=pv(),jw="undefined"!=typeof window?window:{},Mw={animationend:Sw("Animation","AnimationEnd"),transitionend:Sw("Transition","TransitionEnd")},Dw&&("AnimationEvent"in jw||delete Mw.animationend.animation,"TransitionEvent"in jw||delete Mw.transitionend.transition),Mw),Ew={};if(pv()){var Nw=document.createElement("div");Ew=Nw.style}var Tw={};function Iw(t){if(Tw[t])return Tw[t];var e=Ow[t];if(e)for(var n=Object.keys(e),i=n.length,r=0;r<i;r+=1){var o=n[r];if(Object.prototype.hasOwnProperty.call(e,o)&&o in Ew)return Tw[t]=e[o],Tw[t]}return""}var Rw=Iw("animationend"),Yw=Iw("transitionend"),Aw=!(!Rw||!Yw),Pw=Rw||"animationend",Fw=Yw||"transitionend";function $w(t,e){if(!t)return null;if("object"===Xy(t)){var n=e.replace(/-\w/g,(function(t){return t[1].toUpperCase()}));return t[n]}return"".concat(t,"-").concat(e)}var Lw=pv()?Tt.useLayoutEffect:Tt.useEffect,Hw=[ww,kw,_w,zw],Ww=[ww,Cw];function Vw(t){return t===_w||t===zw}function Uw(t,e,n,i){var r=i.motionEnter,o=void 0===r||r,c=i.motionAppear,a=void 0===c||c,l=i.motionLeave,s=void 0===l||l,u=i.motionDeadline,h=i.motionLeaveImmediately,f=i.onAppearPrepare,d=i.onEnterPrepare,b=i.onLeavePrepare,m=i.onAppearStart,p=i.onEnterStart,v=i.onLeaveStart,g=i.onAppearActive,x=i.onEnterActive,y=i.onLeaveActive,w=i.onAppearEnd,k=i.onEnterEnd,_=i.onLeaveEnd,z=i.onVisibleChanged,C=iw(hg(),2),S=C[0],D=C[1],j=iw(hg(pw),2),M=j[0],O=j[1],E=iw(hg(null),2),N=E[0],T=E[1],I=Tt.useRef(!1),R=Tt.useRef(null);function Y(){return n()}var A=Tt.useRef(!1);function P(){O(pw,!0),T(null,!0)}function F(t){var e=Y();if(!t||t.deadline||t.target===e){var n,i=A.current;M===vw&&i?n=null==w?void 0:w(e,t):M===gw&&i?n=null==k?void 0:k(e,t):M===xw&&i&&(n=null==_?void 0:_(e,t)),M!==pw&&i&&!1!==n&&P()}}var $=function(t){var e=Tt.useRef(),n=Tt.useRef(t);n.current=t;var i=Tt.useCallback((function(t){n.current(t)}),[]);function r(t){t&&(t.removeEventListener(Fw,i),t.removeEventListener(Pw,i))}return Tt.useEffect((function(){return function(){r(e.current)}}),[]),[function(t){e.current&&e.current!==t&&r(e.current),t&&t!==e.current&&(t.addEventListener(Fw,i),t.addEventListener(Pw,i),e.current=t)},r]}(F),L=iw($,1)[0],H=function(t){var e,n,i;switch(t){case vw:return Jy(e={},ww,f),Jy(e,kw,m),Jy(e,_w,g),e;case gw:return Jy(n={},ww,d),Jy(n,kw,p),Jy(n,_w,x),n;case xw:return Jy(i={},ww,b),Jy(i,kw,v),Jy(i,_w,y),i;default:return{}}},W=Tt.useMemo((function(){return H(M)}),[M]),V=iw(function(t,e,n){var i=iw(hg(yw),2),r=i[0],o=i[1],c=function(){var t=Tt.useRef(null);function e(){Ov.cancel(t.current)}return Tt.useEffect((function(){return function(){e()}}),[]),[function n(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;e();var o=Ov((function(){r<=1?i({isCanceled:function(){return o!==t.current}}):n(i,r-1)}));t.current=o},e]}(),a=iw(c,2),l=a[0],s=a[1],u=e?Ww:Hw;return Lw((function(){if(r!==yw&&r!==zw){var t=u.indexOf(r),e=u[t+1],i=n(r);!1===i?o(e,!0):e&&l((function(t){function n(){t.isCanceled()||o(e,!0)}!0===i?n():Promise.resolve(i).then(n)}))}}),[t,r]),Tt.useEffect((function(){return function(){s()}}),[]),[function(){o(ww,!0)},r]}(M,!t,(function(t){if(t===ww){var e=W[ww];return!!e&&e(Y())}var n;return B in W&&T((null===(n=W[B])||void 0===n?void 0:n.call(W,Y(),null))||null),B===_w&&(L(Y()),u>0&&(clearTimeout(R.current),R.current=setTimeout((function(){F({deadline:!0})}),u))),B===Cw&&P(),!0})),2),U=V[0],B=V[1],G=Vw(B);A.current=G,Lw((function(){D(e);var n,i=I.current;I.current=!0,!i&&e&&a&&(n=vw),i&&e&&o&&(n=gw),(i&&!e&&s||!i&&h&&!e&&s)&&(n=xw);var r=H(n);n&&(t||r[ww])?(O(n),U()):O(pw)}),[e]),Tt.useEffect((function(){(M===vw&&!a||M===gw&&!o||M===xw&&!s)&&O(pw)}),[a,o,s]),Tt.useEffect((function(){return function(){I.current=!1,clearTimeout(R.current)}}),[]);var q=Tt.useRef(!1);Tt.useEffect((function(){S&&(q.current=!0),void 0!==S&&M===pw&&((q.current||S)&&(null==z||z(S)),q.current=!0)}),[S,M]);var K=N;return W[ww]&&B===kw&&(K=ew({transition:"none"},K)),[M,B,K,null!=S?S:e]}const Bw=function(t){var e=t;"object"===Xy(t)&&(e=t.transitionSupport);var n=Tt.forwardRef((function(t,n){var i=t.visible,r=void 0===i||i,o=t.removeOnLeave,c=void 0===o||o,a=t.forceRender,l=t.children,s=t.motionName,u=t.leavedClassName,f=t.eventProps,d=function(t,n){return!(!t.motionName||!e||!1===n)}(t,Tt.useContext(ow).motion),b=Tt.useRef(),m=Tt.useRef(),p=iw(Uw(d,r,(function(){try{return b.current instanceof HTMLElement?b.current:Rp(m.current)}catch(t){return null}}),t),4),v=p[0],g=p[1],x=p[2],y=p[3],w=Tt.useRef(y);y&&(w.current=!0);var k,_=Tt.useCallback((function(t){b.current=t,Op(n,t)}),[n]),z=ew(ew({},f),{},{visible:r});if(l)if(v===pw)k=y?l(ew({},z),_):!c&&w.current&&u?l(ew(ew({},z),{},{className:u}),_):a||!c&&!u?l(ew(ew({},z),{},{style:{display:"none"}}),_):null;else{var C,S;g===ww?S="prepare":Vw(g)?S="active":g===kw&&(S="start");var D=$w(s,"".concat(v,"-").concat(S));k=l(ew(ew({},z),{},{className:h($w(s,v),(C={},Jy(C,D,D&&S),Jy(C,s,"string"==typeof s),C)),style:x}),_)}else k=null;return Tt.isValidElement(k)&&Tp(k)&&(k.ref||(k=Tt.cloneElement(k,{ref:_}))),Tt.createElement(mw,{ref:m},k)}));return n.displayName="CSSMotion",n}(Aw);function Gw(){return Gw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Gw.apply(this,arguments)}var qw="add",Kw="keep",Zw="remove",Xw="removed";function Qw(t){var e;return ew(ew({},e=t&&"object"===Xy(t)&&"key"in t?t:{key:t}),{},{key:String(e.key)})}function Jw(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.map(Qw)}function tk(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],i=0,r=e.length,o=Jw(t),c=Jw(e);o.forEach((function(t){for(var e=!1,o=i;o<r;o+=1){var a=c[o];if(a.key===t.key){i<o&&(n=n.concat(c.slice(i,o).map((function(t){return ew(ew({},t),{},{status:qw})}))),i=o),n.push(ew(ew({},a),{},{status:Kw})),i+=1,e=!0;break}}e||n.push(ew(ew({},t),{},{status:Zw}))})),i<r&&(n=n.concat(c.slice(i).map((function(t){return ew(ew({},t),{},{status:qw})}))));var a={};n.forEach((function(t){var e=t.key;a[e]=(a[e]||0)+1}));var l=Object.keys(a).filter((function(t){return a[t]>1}));return l.forEach((function(t){(n=n.filter((function(e){return e.key!==t||e.status!==Zw}))).forEach((function(e){e.key===t&&(e.status=Kw)}))})),n}var ek=["component","children","onVisibleChanged","onAllRemoved"],nk=["status"],ik=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function rk(t){var e=t.prefixCls,n=t.align,i=t.arrowPos,r=t.arrow||{},o=r.className,c=r.content,a=i.x,l=void 0===a?0:a,s=i.y,u=void 0===s?0:s,f=Tt.useRef();if(!n||!n.points)return null;var d={position:"absolute"};if(!1!==n.autoArrow){var b=n.points[0],m=n.points[1],p=b[0],v=b[1],g=m[1];p!==m[0]&&["t","b"].includes(p)?"t"===p?d.top=0:d.bottom=0:d.top=u,v!==g&&["l","r"].includes(v)?"l"===v?d.left=0:d.right=0:d.left=l}return Tt.createElement("div",{ref:f,className:h("".concat(e,"-arrow"),o),style:d},c)}function ok(t){var e=t.prefixCls,n=t.zIndex;return t.mask?Tt.createElement(Bw,Zy({},t.motion,{motionAppear:!0,visible:t.open,removeOnLeave:!0}),(function(t){var i=t.className;return Tt.createElement("div",{style:{zIndex:n},className:h("".concat(e,"-mask"),i)})})):null}!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bw,n=function(){uw(n,Tt.Component);var t=bw(n);function n(){var e;cw(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return Jy(fw(e=t.call.apply(t,[this].concat(r))),"state",{keyEntities:[]}),Jy(fw(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:ew(ew({},e),{},{status:Xw})}));return e.setState({keyEntities:n}),n.filter((function(t){return t.status!==Xw})).length})),e}return lw(n,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,i=this.props,r=i.component,o=i.children,c=i.onVisibleChanged,a=i.onAllRemoved,l=rw(i,ek),s=r||Tt.Fragment,u={};return ik.forEach((function(t){u[t]=l[t],delete l[t]})),delete l.keys,Tt.createElement(s,l,n.map((function(n,i){var r=n.status,l=rw(n,nk);return Tt.createElement(e,Gw({},u,{key:l.key,visible:r===qw||r===Kw,eventProps:l,onVisibleChanged:function(e){null==c||c(e,{key:l.key}),e||0===t.removeKey(l.key)&&a&&a()}}),(function(t,e){return o(ew(ew({},t),{},{index:i}),e)}))})))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=e.keyEntities,i=Jw(t.keys);return{keyEntities:tk(n,i).filter((function(t){var e=n.find((function(e){return t.key===e.key}));return!e||e.status!==Xw||t.status!==Zw}))}}}]),n}();Jy(n,"defaultProps",{component:"div"})}(Aw);var ck=Tt.memo((function(t){return t.children}),(function(t,e){return e.cache})),ak=Tt.forwardRef((function(t,e){var n=t.popup,i=t.className,r=t.prefixCls,o=t.style,c=t.target,a=t.onVisibleChanged,l=t.open,s=t.keepDom,u=t.fresh,f=t.onClick,d=t.mask,b=t.arrow,m=t.arrowPos,p=t.align,v=t.motion,g=t.maskMotion,x=t.forceRender,y=t.getPopupContainer,w=t.autoDestroy,k=t.portal,_=t.zIndex,z=t.onMouseEnter,C=t.onMouseLeave,S=t.onPointerEnter,D=t.ready,j=t.offsetX,M=t.offsetY,O=t.offsetR,E=t.offsetB,N=t.onAlign,T=t.onPrepare,I=t.stretch,R=t.targetWidth,Y=t.targetHeight,A="function"==typeof n?n():n,P=l||s,F=(null==y?void 0:y.length)>0,$=Jx(Tt.useState(!y||!F),2),L=$[0],H=$[1];if(gv((function(){!L&&F&&c&&H(!0)}),[L,F,c]),!L)return null;var W="auto",V={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if(D||!l){var U,B=p.points,G=p.dynamicInset||(null===(U=p._experimental)||void 0===U?void 0:U.dynamicInset),q=G&&"b"===B[0][0];G&&"r"===B[0][1]?(V.right=O,V.left=W):(V.left=j,V.right=W),q?(V.bottom=E,V.top=W):(V.top=M,V.bottom=W)}var K={};return I&&(I.includes("height")&&Y?K.height=Y:I.includes("minHeight")&&Y&&(K.minHeight=Y),I.includes("width")&&R?K.width=R:I.includes("minWidth")&&R&&(K.minWidth=R)),l||(K.pointerEvents="none"),Tt.createElement(k,{open:x||P,getContainer:y&&function(){return y(c)},autoDestroy:w},Tt.createElement(ok,{prefixCls:r,open:l,zIndex:_,mask:d,motion:g}),Tt.createElement(mv,{onResize:N,disabled:!l},(function(t){return Tt.createElement(Bw,Zy({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(r,"-hidden")},v,{onAppearPrepare:T,onEnterPrepare:T,visible:l,onVisibleChanged:function(t){var e;null==v||null===(e=v.onVisibleChanged)||void 0===e||e.call(v,t),a(t)}}),(function(n,c){var a=n.style,s=h(r,n.className,i);return Tt.createElement("div",{ref:Ep(t,e,c),className:s,style:Zx(Zx(Zx(Zx({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},V),K),a),{},{boxSizing:"border-box",zIndex:_},o),onMouseEnter:z,onMouseLeave:C,onPointerEnter:S,onClick:f},b&&Tt.createElement(rk,{prefixCls:r,arrow:b,arrowPos:m,align:p}),Tt.createElement(ck,{cache:!l&&!u},A))}))})))})),lk=Tt.forwardRef((function(t,e){var n=t.children,i=t.getTriggerDOMNode,r=Tp(n),o=Np(Tt.useCallback((function(t){Op(e,i?i(t):t)}),[i]),n.ref);return r?Tt.cloneElement(n,{ref:o}):n})),sk=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const uk=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zy,e=Tt.forwardRef((function(e,n){var i=e.prefixCls,r=void 0===i?"rc-trigger-popup":i,o=e.children,c=e.action,a=void 0===c?"hover":c,l=e.showAction,s=e.hideAction,u=e.popupVisible,f=e.defaultPopupVisible,d=e.onPopupVisibleChange,b=e.afterPopupVisibleChange,m=e.mouseEnterDelay,p=e.mouseLeaveDelay,v=void 0===p?.1:p,g=e.focusDelay,x=e.blurDelay,y=e.mask,w=e.maskClosable,k=void 0===w||w,_=e.getPopupContainer,z=e.forceRender,C=e.autoDestroy,S=e.destroyPopupOnHide,D=e.popup,j=e.popupClassName,M=e.popupStyle,O=e.popupPlacement,E=e.builtinPlacements,N=void 0===E?{}:E,T=e.popupAlign,I=e.zIndex,R=e.stretch,Y=e.getPopupClassNameFromAlign,A=e.fresh,P=e.alignPoint,F=e.onPopupClick,$=e.onPopupAlign,L=e.arrow,H=e.popupMotion,W=e.maskMotion,V=e.popupTransitionName,U=e.popupAnimation,B=e.maskTransitionName,G=e.maskAnimation,q=e.className,K=e.getTriggerDOMNode,Z=ty(e,sk),X=C||S||!1,Q=Jx(Tt.useState(!1),2),J=Q[0],tt=Q[1];gv((function(){tt(My())}),[]);var et=Tt.useRef({}),nt=Tt.useContext(Oy),it=Tt.useMemo((function(){return{registerSubPopup:function(t,e){et.current[t]=e,null==nt||nt.registerSubPopup(t,e)}}}),[nt]),rt=jy(),ot=Jx(Tt.useState(null),2),ct=ot[0],at=ot[1],lt=zv((function(t){Ip(t)&&ct!==t&&at(t),null==nt||nt.registerSubPopup(rt,t)})),st=Jx(Tt.useState(null),2),ut=st[0],ht=st[1],ft=zv((function(t){Ip(t)&&ut!==t&&ht(t)})),dt=Tt.Children.only(o),bt=(null==dt?void 0:dt.props)||{},mt={},pt=zv((function(t){var e,n,i=ut;return(null==i?void 0:i.contains(t))||(null===(e=Sy(i))||void 0===e?void 0:e.host)===t||t===i||(null==ct?void 0:ct.contains(t))||(null===(n=Sy(ct))||void 0===n?void 0:n.host)===t||t===ct||Object.values(et.current).some((function(e){return(null==e?void 0:e.contains(t))||t===e}))})),vt=Ry(r,H,U,V),gt=Ry(r,W,G,B),xt=Jx(Tt.useState(f||!1),2),yt=xt[1],wt=null!=u?u:xt[0],kt=zv((function(t){void 0===u&&yt(t)}));gv((function(){yt(u||!1)}),[u]);var _t=Tt.useRef(wt);_t.current=wt;var zt=zv((function(t){Ou.flushSync((function(){wt!==t&&(kt(t),null==d||d(t))}))})),Ct=Tt.useRef(),St=function(){clearTimeout(Ct.current)},Dt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;St(),0===e?zt(t):Ct.current=setTimeout((function(){zt(t)}),1e3*e)};Tt.useEffect((function(){return St}),[]);var jt=Jx(Tt.useState(!1),2),Mt=jt[0],Ot=jt[1];gv((function(t){t&&!wt||Ot(!0)}),[wt]);var Et=Jx(Tt.useState(null),2),Nt=Et[0],It=Et[1],Rt=Jx(Tt.useState([0,0]),2),Yt=Rt[0],At=Rt[1],Pt=function(t){At([t.clientX,t.clientY])},Ft=Jx(By(wt,ct,P?Yt:ut,O,N,T,$),11),$t=Ft[0],Lt=Ft[1],Ht=Ft[2],Wt=Ft[3],Vt=Ft[4],Ut=Ft[5],Bt=Ft[6],Gt=Ft[7],qt=Ft[8],Kt=Ft[9],Zt=Ft[10],Xt=Jx(Ny(J,a,l,s),2),Qt=Xt[0],Jt=Xt[1],te=Qt.has("click"),ee=Jt.has("click")||Jt.has("contextMenu"),ne=zv((function(){Mt||Zt()}));qy(wt,ut,ct,ne,(function(){_t.current&&P&&ee&&Dt(!1)})),gv((function(){ne()}),[Yt,O]),gv((function(){!wt||null!=N&&N[O]||ne()}),[JSON.stringify(T)]);var ie=Tt.useMemo((function(){var t=Iy(N,r,Kt,P);return h(t,null==Y?void 0:Y(Kt))}),[Kt,Y,N,r,P]);Tt.useImperativeHandle(n,(function(){return{forceAlign:ne}}));var re=Jx(Tt.useState(0),2),oe=re[0],ce=re[1],ae=Jx(Tt.useState(0),2),le=ae[0],se=ae[1],ue=function(){if(R&&ut){var t=ut.getBoundingClientRect();ce(t.width),se(t.height)}};function he(t,e,n,i){mt[t]=function(r){var o;null==i||i(r),Dt(e,n);for(var c=arguments.length,a=new Array(c>1?c-1:0),l=1;l<c;l++)a[l-1]=arguments[l];null===(o=bt[t])||void 0===o||o.call.apply(o,[bt,r].concat(a))}}gv((function(){Nt&&(Zt(),Nt(),It(null))}),[Nt]),(te||ee)&&(mt.onClick=function(t){var e;_t.current&&ee?Dt(!1):!_t.current&&te&&(Pt(t),Dt(!0));for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];null===(e=bt.onClick)||void 0===e||e.call.apply(e,[bt,t].concat(i))}),Ky(wt,ee,ut,ct,y,k,pt,Dt);var fe,de,be=Qt.has("hover"),me=Jt.has("hover");be&&(he("onMouseEnter",!0,m,(function(t){Pt(t)})),he("onPointerEnter",!0,m,(function(t){Pt(t)})),fe=function(){(wt||Mt)&&Dt(!0,m)},P&&(mt.onMouseMove=function(t){var e;null===(e=bt.onMouseMove)||void 0===e||e.call(bt,t)})),me&&(he("onMouseLeave",!1,v),he("onPointerLeave",!1,v),de=function(){Dt(!1,v)}),Qt.has("focus")&&he("onFocus",!0,g),Jt.has("focus")&&he("onBlur",!1,x),Qt.has("contextMenu")&&(mt.onContextMenu=function(t){var e;_t.current&&Jt.has("contextMenu")?Dt(!1):(Pt(t),Dt(!0)),t.preventDefault();for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];null===(e=bt.onContextMenu)||void 0===e||e.call.apply(e,[bt,t].concat(i))}),q&&(mt.className=h(bt.className,q));var pe=Zx(Zx({},bt),mt),ve={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(t){Z[t]&&(ve[t]=function(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];null===(e=pe[t])||void 0===e||e.call.apply(e,[pe].concat(i)),Z[t].apply(Z,i)})}));var ge=Tt.cloneElement(dt,Zx(Zx({},pe),ve)),xe={x:Ut,y:Bt},ye=L?Zx({},!0!==L?L:{}):null;return Tt.createElement(Tt.Fragment,null,Tt.createElement(mv,{disabled:!wt,ref:ft,onResize:function(){ue(),ne()}},Tt.createElement(lk,{getTriggerDOMNode:K},ge)),Tt.createElement(Oy.Provider,{value:it},Tt.createElement(ak,{portal:t,ref:lt,prefixCls:r,popup:D,className:h(j,ie),style:M,target:ut,onMouseEnter:fe,onMouseLeave:de,onPointerEnter:fe,zIndex:I,open:wt,keepDom:Mt,fresh:A,onClick:F,mask:y,motion:vt,maskMotion:gt,onVisibleChanged:function(t){Ot(!1),Zt(),null==b||b(t)},onPrepare:function(){return new Promise((function(t){ue(),It((function(){return t}))}))},forceRender:z,autoDestroy:X,getPopupContainer:_,align:Kt,arrow:ye,arrowPos:xe,ready:$t,offsetX:Lt,offsetY:Ht,offsetR:Wt,offsetB:Vt,onAlign:ne,stretch:R,targetWidth:oe/Gt,targetHeight:le/qt})))}));return e}(zy);var hk={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function fk(t){var e,n=t.popupElement,i=t.popupStyle,r=t.visible,o=t.dropdownClassName,c=t.dropdownAlign,a=t.transitionName,l=t.getPopupContainer,s=t.children,u=t.range,f=t.popupPlacement,d=t.direction,b="".concat(t.prefixCls,"-dropdown");return Tt.createElement(uk,{showAction:[],hideAction:[],popupPlacement:void 0!==f?f:"rtl"===d?"bottomRight":"bottomLeft",builtinPlacements:hk,prefixCls:b,popupTransitionName:a,popup:n,popupAlign:c,popupVisible:r,popupClassName:h(o,(e={},ig(e,"".concat(b,"-range"),u),ig(e,"".concat(b,"-rtl"),"rtl"===d),e)),popupStyle:i,getPopupContainer:l},s)}function dk(t){var e=t.presets,n=t.onClick,i=t.onHover;return e.length?Tt.createElement("div",{className:"".concat(t.prefixCls,"-presets")},Tt.createElement("ul",null,e.map((function(t,e){var r=t.value;return Tt.createElement("li",{key:e,onClick:function(){return null==n?void 0:n(ax(r))},onMouseEnter:function(){return null==i?void 0:i(ax(r))},onMouseLeave:function(){return null==i?void 0:i(null)}},t.label)})))):null}function bk(t,e,n){return("object"===Bv(e)?e.clearIcon:n)||Tt.createElement("span",{className:"".concat(t,"-clear-btn")})}function mk(t){var e,n=t.prefixCls,i=void 0===n?"rc-picker":n,r=t.id,o=t.name,c=t.tabIndex,a=t.style,l=t.className,s=t.dropdownClassName,u=t.dropdownAlign,f=t.popupStyle,d=t.transitionName,b=t.generateConfig,m=t.locale,p=t.inputReadOnly,v=t.allowClear,g=t.autoFocus,x=t.showTime,y=t.picker,w=void 0===y?"date":y,k=t.format,_=t.use12Hours,z=t.value,C=t.defaultValue,S=t.presets,D=t.open,j=t.defaultOpen,M=t.defaultOpenValue,O=t.suffixIcon,E=t.clearIcon,N=t.disabled,T=t.disabledDate,I=t.placeholder,R=t.getPopupContainer,Y=t.pickerRef,A=t.panelRender,P=t.onChange,F=t.onOpenChange,$=t.onFocus,L=t.onBlur,H=t.onMouseDown,W=t.onMouseUp,V=t.onMouseEnter,U=t.onMouseLeave,B=t.onContextMenu,G=t.onClick,q=t.onKeyDown,K=t.onSelect,Z=t.direction,X=t.autoComplete,Q=void 0===X?"off":X,J=t.inputRender,tt=t.changeOnBlur,et=Tt.useRef(null),nt="date"===w&&!!x||"time"===w,it=Jg(S),rt=rx(Bg(k,w,x,_)),ot=Tt.useRef(null),ct=Tt.useRef(null),at=Tt.useRef(null),lt=lg(dg(null,{value:z,defaultValue:C}),2),st=lt[0],ut=lt[1],ht=lg(Tt.useState(st),2),ft=ht[0],dt=ht[1],bt=Tt.useRef(null),mt=lg(dg(!1,{value:D,defaultValue:j,postState:function(t){return!N&&t},onChange:function(t){F&&F(t),!t&&bt.current&&bt.current.onClose&&bt.current.onClose()}}),2),pt=mt[0],vt=mt[1],gt=lg(Pg(ft,{formatList:rt,generateConfig:b,locale:m}),2),xt=gt[0],yt=gt[1],wt=lg(tx({valueTexts:xt,onTextChange:function(t){var e=Yg(t,{locale:m,formatList:rt,generateConfig:b});!e||T&&T(e)||dt(e)}}),3),kt=wt[0],_t=wt[1],zt=wt[2],Ct=function(t){dt(t),ut(t),P&&!Ng(b,st,t)&&P(t,t?Rg(t,{generateConfig:b,locale:m,format:rt[0]}):"")},St=function(t){N&&t||vt(t)},Dt=Qg({blurToCancel:nt,changeOnBlur:tt,open:pt,value:kt,triggerOpen:St,forwardKeyDown:function(t){return pt&&bt.current&&bt.current.onKeyDown?bt.current.onKeyDown(t):(kp(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},isClickOutside:function(t){return!Xg([ot.current,ct.current,at.current],t)},onSubmit:function(){return!(!ft||T&&T(ft)||(Ct(ft),St(!1),zt(),0))},onCancel:function(){St(!1),dt(st),zt()},onKeyDown:function(t,e){null==q||q(t,e)},onFocus:$,onBlur:function(t){tt&&Ct(ft),null==L||L(t)}}),jt=lg(Dt,2),Mt=jt[0],Ot=jt[1],Et=Ot.focused,Nt=Ot.typing;Tt.useEffect((function(){pt||(dt(st),xt.length&&""!==xt[0]?yt!==kt&&zt():_t(""))}),[pt,xt]),Tt.useEffect((function(){pt||zt()}),[w]),Tt.useEffect((function(){dt(st)}),[st]),Y&&(Y.current={focus:function(){var t;null===(t=et.current)||void 0===t||t.focus()},blur:function(){var t;null===(t=et.current)||void 0===t||t.blur()}});var It=lg(Fg(kt,{formatList:rt,generateConfig:b,locale:m}),3),Rt=It[0],Yt=It[1],At=It[2],Pt=og(og({},t),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Ft=Tt.createElement("div",{className:"".concat(i,"-panel-layout")},Tt.createElement(dk,{prefixCls:i,presets:it,onClick:function(t){Ct(t),St(!1)}}),Tt.createElement(Bx,ng({},Pt,{generateConfig:b,className:h(ig({},"".concat(i,"-panel-focused"),!Nt)),value:ft,locale:m,tabIndex:-1,onSelect:function(t){null==K||K(t),dt(t)},direction:Z,onPanelChange:function(e,n){var i=t.onPanelChange;At(!0),null==i||i(e,n)}})));A&&(Ft=A(Ft));var $t,Lt=Tt.createElement("div",{className:"".concat(i,"-panel-container"),ref:ot,onMouseDown:function(t){t.preventDefault()}},Ft);O&&($t=Tt.createElement("span",{className:"".concat(i,"-suffix"),onMouseDown:function(t){t.preventDefault()}},O));var Ht=bk(i,v,E),Wt=Tt.createElement("span",{onMouseDown:function(t){t.preventDefault(),t.stopPropagation()},onMouseUp:function(t){t.preventDefault(),t.stopPropagation(),Ct(null),St(!1)},className:"".concat(i,"-clear"),role:"button"},Ht),Vt=!!v&&st&&!N,Ut=og(og(og({id:r,tabIndex:c,disabled:N,readOnly:p||"function"==typeof rt[0]||!Nt,value:Rt||kt,onChange:function(t){_t(t.target.value)},autoFocus:g,placeholder:I,ref:et,title:kt},Mt),{},{size:Gg(w,rt[0],b),name:o},wg(t,{aria:!0,data:!0})),{},{autoComplete:Q}),Bt=J?J(Ut):Tt.createElement("input",Ut);return Tt.createElement(ex.Provider,{value:{operationRef:bt,hideHeader:"time"===w,onSelect:function(t,e){("submit"===e||"key"!==e&&!nt)&&(Ct(t),St(!1))},open:pt,defaultOpenValue:M,onDateMouseEnter:Yt,onDateMouseLeave:At}},Tt.createElement(fk,{visible:pt,popupElement:Lt,popupStyle:f,prefixCls:i,dropdownClassName:s,dropdownAlign:u,getPopupContainer:R,transitionName:d,popupPlacement:"rtl"===Z?"bottomRight":"bottomLeft",direction:Z},Tt.createElement("div",{ref:at,className:h(i,l,(e={},ig(e,"".concat(i,"-disabled"),N),ig(e,"".concat(i,"-focused"),Et),ig(e,"".concat(i,"-rtl"),"rtl"===Z),e)),style:a,onMouseDown:H,onMouseUp:W,onMouseEnter:V,onMouseLeave:U,onContextMenu:B,onClick:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];null==G||G.apply(void 0,e),et.current&&(et.current.focus(),St(!0))}},Tt.createElement("div",{className:h("".concat(i,"-input"),ig({},"".concat(i,"-input-placeholder"),!!Rt)),ref:ct},Bt,$t,Vt&&Wt))))}var pk=function(){Qv(e,Tt.Component);var t=eg(e);function e(){var n;Uv(this,e);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return ig(Zv(n=t.call.apply(t,[this].concat(r))),"pickerRef",Tt.createRef()),ig(Zv(n),"focus",(function(){n.pickerRef.current&&n.pickerRef.current.focus()})),ig(Zv(n),"blur",(function(){n.pickerRef.current&&n.pickerRef.current.blur()})),n}return Kv(e,[{key:"render",value:function(){return Tt.createElement(mk,ng({},this.props,{pickerRef:this.pickerRef}))}}]),e}();function vk(t){var e=t.values,n=t.picker,i=t.defaultDates,r=t.generateConfig,o=lg(Tt.useState((function(){return[ox(i,0),ox(i,1)]})),2),c=o[0],a=o[1],l=lg(Tt.useState(null),2),s=l[0],u=l[1],h=ox(e,0),f=ox(e,1);return[function(t){return c[t]?c[t]:ox(s,t)||function(t,e,n,i){var r=ox(t,0),o=ox(t,1);if(0===e)return r;if(r&&o)switch(function(t,e,n,i){var r=Ig(t,n,i,1);function o(n){return n(t,e)?"same":n(r,e)?"closing":"far"}switch(n){case"year":return o((function(t,e){return function(t,e,n){var i=Cg(e,n);return"boolean"==typeof i?i:Math.floor(t.getYear(e)/10)===Math.floor(t.getYear(n)/10)}(i,t,e)}));case"quarter":case"month":return o((function(t,e){return Sg(i,t,e)}));default:return o((function(t,e){return Mg(i,t,e)}))}}(r,o,n,i)){case"same":case"closing":return r;default:return Ig(o,n,i,-1)}return r}(e,t,n,r)||h||f||r.getNow()},function(t,n){if(t){var i=cx(s,t,n);a(cx(c,null,n)||[null,null]);var r=(n+1)%2;ox(e,r)||(i=cx(i,t,r)),u(i)}else(h||f)&&u(null)}]}function gk(t,e){return t&&t[0]&&t[1]&&e.isAfter(t[0],t[1])?[t[1],t[0]]:t}function xk(t,e,n,i){return!!t||!(!i||!i[e])||!!n[(e+1)%2]}function yk(t){var e,n,i,r=t.prefixCls,o=void 0===r?"rc-picker":r,c=t.id,a=t.style,l=t.className,s=t.popupStyle,u=t.dropdownClassName,f=t.transitionName,d=t.dropdownAlign,b=t.getPopupContainer,m=t.generateConfig,p=t.locale,v=t.placeholder,g=t.autoFocus,x=t.disabled,y=t.format,w=t.picker,k=void 0===w?"date":w,_=t.showTime,z=t.use12Hours,C=t.separator,S=void 0===C?"~":C,D=t.value,j=t.defaultValue,M=t.defaultPickerValue,O=t.open,E=t.defaultOpen,N=t.disabledDate,T=t.disabledTime,I=t.dateRender,R=t.monthCellRender,Y=t.cellRender,A=t.panelRender,P=t.presets,F=t.ranges,$=t.allowEmpty,L=t.allowClear,H=t.suffixIcon,W=t.clearIcon,V=t.pickerRef,U=t.inputReadOnly,B=t.mode,G=t.renderExtraFooter,q=t.onChange,K=t.onOpenChange,Z=t.onPanelChange,X=t.onCalendarChange,Q=t.onFocus,J=t.onBlur,tt=t.onMouseDown,et=t.onMouseUp,nt=t.onMouseEnter,it=t.onMouseLeave,rt=t.onClick,ot=t.onOk,ct=t.onKeyDown,at=t.components,lt=t.order,st=t.direction,ut=t.activePickerIndex,ht=t.autoComplete,ft=void 0===ht?"off":ht,dt=t.changeOnBlur,bt="date"===k&&!!_||"time"===k,mt=Tt.useRef(null),pt=Tt.useRef(null),vt=Tt.useRef(null),gt=Tt.useRef(null),xt=Tt.useRef(null),yt=Tt.useRef(null),wt=Tt.useRef(null),kt=Tt.useRef(null),_t=rx(Bg(y,k,_,z)),zt=function(t,e){return t&&t[e]?Rg(t[e],{generateConfig:m,locale:p,format:_t[0]}):""},Ct=Tt.useRef(null),St=Tt.useMemo((function(){return Array.isArray(x)?x:[x||!1,x||!1]}),[x]),Dt=lg(dg(null,{value:D,defaultValue:j,postState:function(t){return"time"!==k||lt?gk(t,m):t}}),2),jt=Dt[0],Mt=Dt[1],Ot=lg(vk({values:jt,picker:k,defaultDates:M,generateConfig:m}),2),Et=Ot[0],Nt=Ot[1],It=dg(jt,{postState:function(t){var e=t;if(St[0]&&St[1])return e;for(var n=0;n<2;n+=1)!St[n]||e||ox(e,n)||ox($,n)||(e=cx(e,m.getNow(),n));return e}}),Rt=lg(It,2),Yt=Rt[0],At=Rt[1],Pt=lg(dg([k,k],{value:B}),2),Ft=Pt[0],$t=Pt[1];Tt.useEffect((function(){$t([k,k])}),[k]);var Lt=function(t,e){$t(t),Z&&Z(e,t)},Ht=function(t,e,n,i,r,o,c,a,l,s,u){var h=lg(Tt.useState(!1),2),f=h[0],d=h[1],b=lg(dg(t||!1,{value:e}),2),m=b[0],p=b[1],v=lg(dg(t||!1,{value:e,onChange:function(t){null==u||u(t)}}),2),g=v[0],x=v[1],y=lg(dg(0,{value:n}),2),w=y[0],k=y[1],_=lg(Tt.useState(null),2),z=_[0],C=_[1];Tt.useEffect((function(){g&&d(!0)}),[g]);var S=function(t){return 0===t?1:0},D=zv((function(t,e,n){if(!1===e)x(t);else if(t){k(e),x(t);var u=S(e);g&&[a,l][u]?(d(!1),null!==z&&C(null)):C(u)}else if("confirm"===n||"blur"===n&&i){var h=m&&!r?S(e):z;null!==h&&(d(!1),k(h)),C(null),null===h||s[h]?x(!1):Ov((function(){var t;null===(t=[o,c][h].current)||void 0===t||t.focus()}))}else x(!1),p(!1)}));return[g,w,f,D]}(E,O,ut,dt,bt,yt,wt,ox(Yt,0),ox(Yt,1),St,K),Wt=lg(Ht,4),Vt=Wt[0],Ut=Wt[1],Bt=Wt[3],Gt=Vt&&0===Ut,qt=Vt&&1===Ut,Kt=function(t,e){var n=t.picker,i=t.locale,r=t.selectedValue,o=t.disabledDate,c=t.disabled,a=t.generateConfig,l=ox(r,0),s=ox(r,1);function u(t){return a.locale.getWeekFirstDate(i.locale,t)}function h(t){return 100*a.getYear(t)+a.getMonth(t)}function f(t){return 10*a.getYear(t)+Dg(a,t)}return[Tt.useCallback((function(t){if(c[0]||o&&o(t))return!0;if(c[1]&&s)return!Og(a,t,s)&&a.isAfter(t,s);if(!e&&s)switch(n){case"quarter":return f(t)>f(s);case"month":return h(t)>h(s);case"week":return u(t)>u(s);default:return!Og(a,t,s)&&a.isAfter(t,s)}return!1}),[o,c[1],s,e]),Tt.useCallback((function(t){if(c[1]||o&&o(t))return!0;if(c[0]&&l)return!Og(a,t,s)&&a.isAfter(l,t);if(!e&&l)switch(n){case"quarter":return f(t)<f(l);case"month":return h(t)<h(l);case"week":return u(t)<u(l);default:return!Og(a,t,l)&&a.isAfter(l,t)}return!1}),[o,c[0],l,e])]}({picker:k,selectedValue:Yt,locale:p,disabled:St,disabledDate:N,generateConfig:m},!Vt||Wt[2]),Zt=lg(Kt,2),Xt=Zt[0],Qt=Zt[1],Jt=lg(Tt.useState(0),2),te=Jt[0],ee=Jt[1];function ne(t){Bt(!0,t,"open"),Ov((function(){var e;null===(e=[yt,wt][t].current)||void 0===e||e.focus()}),0)}function ie(t,e,n){var i=t,r=ox(i,0),o=ox(i,1);r&&o&&m.isAfter(r,o)&&("week"===k&&!Eg(m,p.locale,r,o)||"quarter"===k&&!jg(m,r,o)||"week"!==k&&"quarter"!==k&&"time"!==k&&!Og(m,r,o)?0===e?(i=[r,null],o=null):(r=null,i=[null,o]):"time"===k&&!1===lt||(i=gk(i,m))),At(i);var c=zt(i,0),a=zt(i,1);if(X&&X(i,[c,a],{range:0===e?"start":"end"}),!n){var l=xk(r,0,St,$),s=xk(o,1,St,$);(null===i||l&&s)&&(Mt(i),!q||Ng(m,ox(jt,0),r)&&Ng(m,ox(jt,1),o)||q(i,[c,a]))}}Tt.useEffect((function(){!Vt&&mt.current&&ee(mt.current.offsetWidth)}),[Vt]);var re=function(t){return Vt&&Ct.current&&Ct.current.onKeyDown?Ct.current.onKeyDown(t):(kp(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},oe={formatList:_t,generateConfig:m,locale:p},ce=lg(Pg(ox(Yt,0),oe),2),ae=ce[0],le=ce[1],se=lg(Pg(ox(Yt,1),oe),2),ue=se[0],he=se[1],fe=function(t,e){var n=Yg(t,{locale:p,formatList:_t,generateConfig:m});n&&!(0===e?Xt:Qt)(n)&&(At(cx(Yt,n,e)),Nt(n,e))},de=lg(tx({valueTexts:ae,onTextChange:function(t){return fe(t,0)}}),3),be=de[0],me=de[1],pe=de[2],ve=lg(tx({valueTexts:ue,onTextChange:function(t){return fe(t,1)}}),3),ge=ve[0],xe=ve[1],ye=ve[2],we=lg(Tt.useState(null),2),ke=we[0],_e=we[1],ze=lg(Tt.useState(null),2),Ce=ze[0],Se=ze[1],De=lg(Fg(be,{formatList:_t,generateConfig:m,locale:p}),3),je=De[0],Me=De[1],Oe=De[2],Ee=lg(Fg(ge,{formatList:_t,generateConfig:m,locale:p}),3),Ne=Ee[0],Te=Ee[1],Ie=Ee[2],Re=lg(Tt.useState(Vt),2),Ye=Re[0],Ae=Re[1];Tt.useEffect((function(){Ae(Vt)}),[Vt]);var Pe=function(t){if(Ye)if(bt){var e=Ut?0:1;ox(Yt,e)&&ie(Yt,e,!0)}else dt&&ox(Yt,Ut)&&ie(Yt,Ut);return null==J?void 0:J(t)},Fe=function(t,e){return{blurToCancel:!dt&&bt,changeOnBlur:dt,forwardKeyDown:re,onBlur:Pe,isClickOutside:function(t){var e=[vt.current,gt.current,mt.current];return!Xg([].concat(Lg(bt?[e[Ut]]:e),[pt.current]),t)},onFocus:function(t){Q&&Q(t)},triggerOpen:function(e){e?Bt(e,t,"open"):Bt(e,!!ox(Yt,t)&&t,"blur")},onSubmit:function(){if(!Yt||N&&N(Yt[t]))return!1;ie(Yt,t),e(),Bt(!1,Ut,"confirm")},onCancel:function(){Bt(!1,t,"cancel"),At(jt),e()}}},$e={onKeyDown:function(t,e){null==ct||ct(t,e)}},Le=lg(Qg(og(og({},Fe(0,pe)),{},{open:Gt,value:be},$e)),2),He=Le[0],We=Le[1],Ve=We.focused,Ue=We.typing,Be=lg(Qg(og(og({},Fe(1,ye)),{},{open:qt,value:ge},$e)),2),Ge=Be[0],qe=Be[1],Ke=qe.focused,Ze=qe.typing,Xe=jt&&jt[0]?Rg(jt[0],{locale:p,format:"YYYYMMDDHHmmss",generateConfig:m}):"",Qe=jt&&jt[1]?Rg(jt[1],{locale:p,format:"YYYYMMDDHHmmss",generateConfig:m}):"";Tt.useEffect((function(){Vt||(At(jt),ae.length&&""!==ae[0]?le!==be&&pe():me(""),ue.length&&""!==ue[0]?he!==ge&&ye():xe(""))}),[Vt,ae,ue]),Tt.useEffect((function(){At(jt)}),[Xe,Qe]);var Je=nx({cellRender:Y,monthCellRender:R,dateRender:I}),tn=Tt.useMemo((function(){if(Je)return function(t,e){return Je(t,og(og({},e),{},{range:Ut?"end":"start"}))}}),[Ut,Je]);V&&(V.current={focus:function(){yt.current&&yt.current.focus()},blur:function(){yt.current&&yt.current.blur(),wt.current&&wt.current.blur()}});var en=Jg(P,F);function nn(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;Vt&&Ce&&Ce[0]&&Ce[1]&&m.isAfter(Ce[1],Ce[0])&&(i=Ce);var r=_;if(_&&"object"===Bv(_)&&_.defaultValue){var c=_.defaultValue;r=og(og({},_),{},{defaultValue:ox(c,Ut)||void 0})}return Tt.createElement(sx.Provider,{value:{inRange:!0,panelPosition:e,rangedValue:ke||Yt,hoverRangedValue:i}},Tt.createElement(Bx,ng({},t,n,{cellRender:tn,showTime:r,mode:Ft[Ut],generateConfig:m,style:void 0,direction:st,disabledDate:0===Ut?Xt:Qt,disabledTime:function(t){return!!T&&T(t,0===Ut?"start":"end")},className:h(ig({},"".concat(o,"-panel-focused"),0===Ut?!Ue:!Ze)),value:ox(Yt,Ut),locale:p,tabIndex:-1,onPanelChange:function(t,n){0===Ut&&Oe(!0),1===Ut&&Ie(!0),Lt(cx(Ft,n,Ut),cx(Yt,t,Ut));var i=t;"right"===e&&Ft[Ut]===n&&(i=Ig(i,n,m,-1)),Nt(i,Ut)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:ox(Yt,0===Ut?1:0)})))}var rn=0,on=0;if(Ut&&vt.current&&xt.current&&pt.current&&kt.current){rn=vt.current.offsetWidth+xt.current.offsetWidth;var cn=pt.current.offsetWidth,an=kt.current.offsetWidth;cn&&an&&rn>cn-an-("rtl"===st?0:kt.current.offsetLeft>rn?kt.current.offsetLeft-rn:kt.current.offsetLeft)&&(on=rn)}var ln,sn="rtl"===st?{right:rn}:{left:rn},un=Tt.createElement("div",{className:h("".concat(o,"-range-wrapper"),"".concat(o,"-").concat(k,"-range-wrapper")),style:{minWidth:te}},Tt.createElement("div",{ref:kt,className:"".concat(o,"-range-arrow"),style:sn}),function(){var t,e=Wx(o,Ft[Ut],G),n=Vx({prefixCls:o,components:at,needConfirmButton:bt,okDisabled:!ox(Yt,Ut)||N&&N(Yt[Ut]),locale:p,onOk:function(){ox(Yt,Ut)&&(ie(Yt,Ut),null==ot||ot(Yt),Bt(!1,Ut,"confirm"))}});if("time"===k||_)t=nn();else{var i=Et(Ut),r=Ig(i,k,m),c=Ft[Ut]===k,a=nn(!!c&&"left",{pickerValue:i,onPickerValueChange:function(t){Nt(t,Ut)}}),l=nn("right",{pickerValue:r,onPickerValueChange:function(t){Nt(Ig(t,k,m,-1),Ut)}});t="rtl"===st?Tt.createElement(Tt.Fragment,null,l,c&&a):Tt.createElement(Tt.Fragment,null,a,c&&l)}var s=Tt.createElement("div",{className:"".concat(o,"-panel-layout")},Tt.createElement(dk,{prefixCls:o,presets:en,onClick:function(t){ie(t,null),Bt(!1,Ut,"preset")},onHover:function(t){_e(t)}}),Tt.createElement("div",null,Tt.createElement("div",{className:"".concat(o,"-panels")},t),(e||n)&&Tt.createElement("div",{className:"".concat(o,"-footer")},e,n)));return A&&(s=A(s)),Tt.createElement("div",{className:"".concat(o,"-panel-container"),style:{marginLeft:on},ref:pt,onMouseDown:function(t){t.preventDefault()}},s)}());H&&(ln=Tt.createElement("span",{className:"".concat(o,"-suffix"),onMouseDown:function(t){t.preventDefault()}},H));var hn=bk(o,L,W),fn=Tt.createElement("span",{onMouseDown:function(t){t.preventDefault(),t.stopPropagation()},onMouseUp:function(t){t.preventDefault(),t.stopPropagation();var e=jt;St[0]||(e=cx(e,null,0)),St[1]||(e=cx(e,null,1)),ie(e,null),Bt(!1,Ut,"clear")},className:"".concat(o,"-clear"),role:"button"},hn),dn=L&&(ox(jt,0)&&!St[0]||ox(jt,1)&&!St[1]),bn={size:Gg(k,_t[0],m)},mn=0,pn=0;vt.current&>.current&&xt.current&&(0===Ut?pn=vt.current.offsetWidth:(mn=rn,pn=gt.current.offsetWidth));var vn="rtl"===st?{right:mn}:{left:mn};return Tt.createElement(ex.Provider,{value:{operationRef:Ct,hideHeader:"time"===k,onDateMouseEnter:function(t){Se(cx(Yt,t,Ut)),0===Ut?Me(t):Te(t)},onDateMouseLeave:function(){Se(cx(Yt,null,Ut)),0===Ut?Oe():Ie()},hideRanges:!0,onSelect:function(t,e){var n=cx(Yt,t,Ut);"submit"===e||"key"!==e&&!bt?(ie(n,Ut),0===Ut?Oe():Ie(),Bt(!1,!St[0===Ut?1:0]&&Ut,"confirm")):At(n)},open:Vt}},Tt.createElement(fk,{visible:Vt,popupElement:un,popupStyle:s,prefixCls:o,dropdownClassName:u,dropdownAlign:d,getPopupContainer:b,transitionName:f,range:!0,direction:st},Tt.createElement("div",ng({ref:mt,className:h(o,"".concat(o,"-range"),l,(e={},ig(e,"".concat(o,"-disabled"),St[0]&&St[1]),ig(e,"".concat(o,"-focused"),0===Ut?Ve:Ke),ig(e,"".concat(o,"-rtl"),"rtl"===st),e)),style:a,onClick:function(t){rt&&rt(t),Vt||yt.current.contains(t.target)||wt.current.contains(t.target)||(St[0]?St[1]||ne(1):ne(0))},onMouseEnter:nt,onMouseLeave:it,onMouseDown:function(t){tt&&tt(t),!Vt||!Ve&&!Ke||yt.current.contains(t.target)||wt.current.contains(t.target)||t.preventDefault()},onMouseUp:et},wg(t,{aria:!0,data:!0})),Tt.createElement("div",{className:h("".concat(o,"-input"),(n={},ig(n,"".concat(o,"-input-active"),0===Ut),ig(n,"".concat(o,"-input-placeholder"),!!je),n)),ref:vt},Tt.createElement("input",ng({id:c,disabled:St[0],readOnly:U||"function"==typeof _t[0]||!Ue,value:je||be,onChange:function(t){me(t.target.value)},autoFocus:g,placeholder:ox(v,0)||"",ref:yt},He,bn,{autoComplete:ft}))),Tt.createElement("div",{className:"".concat(o,"-range-separator"),ref:xt},S),Tt.createElement("div",{className:h("".concat(o,"-input"),(i={},ig(i,"".concat(o,"-input-active"),1===Ut),ig(i,"".concat(o,"-input-placeholder"),!!Ne),i)),ref:gt},Tt.createElement("input",ng({disabled:St[1],readOnly:U||"function"==typeof _t[0]||!Ze,value:Ne||ge,onChange:function(t){xe(t.target.value)},placeholder:ox(v,1)||"",ref:wt},Ge,bn,{autoComplete:ft}))),Tt.createElement("div",{className:"".concat(o,"-active-bar"),style:og(og({},vn),{},{width:pn,position:"absolute"})}),ln,dn&&fn)))}var wk=function(){Qv(e,Tt.Component);var t=eg(e);function e(){var n;Uv(this,e);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return ig(Zv(n=t.call.apply(t,[this].concat(r))),"pickerRef",Tt.createRef()),ig(Zv(n),"focus",(function(){n.pickerRef.current&&n.pickerRef.current.focus()})),ig(Zv(n),"blur",(function(){n.pickerRef.current&&n.pickerRef.current.blur()})),n}return Kv(e,[{key:"render",value:function(){return Tt.createElement(yk,ng({},this.props,{pickerRef:this.pickerRef}))}}]),e}(),kk=y((function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports})),_k=y((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.call=a,e.default=void 0,e.note=o,e.noteOnce=s,e.preMessage=void 0,e.resetWarned=c,e.warning=r,e.warningOnce=l;var n={},i=function(){};function r(){}function o(){}function c(){n={}}function a(t,e,i){e||n[i]||(t(!1,i),n[i]=!0)}function l(t,e){a(r,t,e)}function s(t,e){a(o,t,e)}e.preMessage=i,l.preMessage=i,l.resetWarned=c,l.noteOnce=s,e.default=l}));const zk=k(nm);var Ck=y((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=kk(zk),i={getNow:function(){return(0,n.default)()},getFixedDate:function(t){return(0,n.default)(t,"YYYY-MM-DD")},getEndDate:function(t){return t.clone().endOf("month")},getWeekDay:function(t){var e=t.clone().locale("en_US");return e.weekday()+e.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},addYear:function(t,e){return t.clone().add(e,"year")},addMonth:function(t,e){return t.clone().add(e,"month")},addDate:function(t,e){return t.clone().add(e,"day")},setYear:function(t,e){return t.clone().year(e)},setMonth:function(t,e){return t.clone().month(e)},setDate:function(t,e){return t.clone().date(e)},setHour:function(t,e){return t.clone().hour(e)},setMinute:function(t,e){return t.clone().minute(e)},setSecond:function(t,e){return t.clone().second(e)},isAfter:function(t,e){return t.isAfter(e)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return(0,n.default)().locale(t).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,e){return e.clone().locale(t).weekday(0)},getWeek:function(t,e){return e.clone().locale(t).week()},getShortWeekDays:function(t){return(0,n.default)().locale(t).localeData().weekdaysMin()},getShortMonths:function(t){return(0,n.default)().locale(t).localeData().monthsShort()},format:function(t,e,n){return e.clone().locale(t).format(n)},parse:function(t,e,i){for(var r=[],o=0;o<i.length;o+=1){var c=i[o],a=e;if(c.includes("wo")||c.includes("Wo")){var l=(c=c.replace(/wo/g,"w").replace(/Wo/g,"W")).match(/[-YyMmDdHhSsWwGg]+/g),s=a.match(/[-\d]+/g);l&&s?(c=l.join(""),a=s.join("")):r.push(c.replace(/o/g,""))}var u=(0,n.default)(a,c,t,!0);if(u.isValid())return u}for(var h=0;h<r.length;h+=1){var f=(0,n.default)(e,r[h],t,!1);if(f.isValid())return(0,_k.noteOnce)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),f}return null}}};e.default=i}));const Sk=_(Ck),Dk=_(y((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}}))),jk=class{constructor(t){e(this,t),this.bcmRCPickerChange=n(this,"bcmRCPickerChange",7),this.manageDisabledDates=t=>{const{min:e,max:n,dates:i,custom:r}=this.disabledDates||{};return!(!e||!t.isBefore(this.convertDateToMoment(e)))||!(!n||!t.isAfter(this.convertDateToMoment(n)))||(i&&i.length>0?i.some((e=>t.isSame(this.convertDateToMoment(e),"day"))):!!r&&r(t))},this.manageDisabledTime=()=>{const{disabledHours:t,disabledMinutes:e,disabledSeconds:n}=this.disabledTime||{};return Object.assign(Object.assign(Object.assign({},t&&this.showHour&&{disabledHours:()=>t}),e&&this.showMinute&&{disabledMinutes:()=>e}),n&&this.showSecond&&{disabledSeconds:()=>n})},this.convertDateToMoment=t=>t&&"invalid date"!==t?uh(t):null,this.placeholder=void 0,this.size=u.Size.medium,this.error=!1,this.disabled=!1,this.clearable=!1,this.type="date",this.format=void 0,this.range=!1,this.showToday=!0,this.disabledDates=void 0,this.showTime=!1,this.showNow=!0,this.showHour=!0,this.showMinute=!0,this.showSecond=!1,this.use12Hours=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.hideDisabledOptions=!1,this.disabledTime=void 0,this.newValue=null}async set(t){this.newValue=t?uh(t):null,this.bcmRCPickerChange.emit(this.newValue)}componentDidRender(){const t={showToday:this.showToday,disabledDate:t=>this.manageDisabledDates(t)},e={showNow:this.showNow,showHour:this.showHour,showMinute:this.showMinute,showSecond:this.showSecond,use12Hours:this.use12Hours,hourStep:this.hourStep,minuteStep:this.minuteStep,secondStep:this.secondStep,hideDisabledOptions:this.hideDisabledOptions,disabledTime:()=>this.manageDisabledTime()},n={time:Object.assign({},e),date:Object.assign({},t),datetime:Object.assign(Object.assign(Object.assign({},t),e),{showTime:Object.assign({showSecond:this.showSecond},e)})},i=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({generateConfig:Sk,value:this.newValue,onChange:t=>this.set(t)},this.format&&{format:this.format}),this.clearable&&{allowClear:this.clearable}),this.placeholder&&{placeholder:this.placeholder}),this.error&&{error:this.error}),this.disabled&&{disabled:this.disabled}),{picker:this.type}),n[this.type]),{prefixCls:"bcm-date",suffixIcon:" ",autofocus:!0,locale:Dk,className:h(`bcm-date--${this.type}`,{[`bcm-date--${this.size}`]:this.size,"bcm-date--error":this.error})});Ou.render(Tt.createElement(this.range?wk:pk,Object.assign({},i)),this.el)}get el(){return r(this)}};jk.style='@charset "UTF-8";@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-date{font-family:"Inter", sans-serif;font-size:14px;line-height:22px;font-weight:500;display:flex;align-items:stretch;flex-direction:row;background-color:#fff;border:1px solid #cbd5e1;color:#334155;border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%;}.bcm-date--large{height:40px;font-size:16px}.bcm-date--medium{height:32px;font-size:14px}.bcm-date--small{height:24px;font-size:12px}.bcm-date:hover{border:1px solid #4293cf;}.bcm-date-focused{background-color:#f8fafc}.bcm-date-suffix{color:#334155}.bcm-date-suffix:not(:empty){display:flex;align-items:center;justify-content:center;order:2}.bcm-date-suffix::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1;font-family:"Font Awesome 6 Pro";font-weight:400;line-height:1;box-sizing:border-box;padding:0 4px;cursor:pointer}.bcm-date--datetime .bcm-date-suffix::before{content:"\\e0d2"}.bcm-date--date .bcm-date-suffix::before{content:"\\f133"}.bcm-date--time .bcm-date-suffix::before{content:"\\f017"}.bcm-date-input{position:relative;display:inline-flex;width:100%;padding:0 4px;color:#334155}.bcm-date-input-placeholder{color:#94a3b8}.bcm-date-input>input{color:inherit;width:100%;flex:1;border:none;background:transparent;box-shadow:unset;line-height:22px;font-family:"Inter", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;overflow:hidden;text-overflow:ellipsis;font-weight:500}.bcm-date-input>input::placeholder{font-family:"Inter", sans-serif;color:#cbd5e1;user-select:none}.bcm-date-input>input::-webkit-search-decoration,.bcm-date-input>input::-webkit-search-cancel-button,.bcm-date-input>input::-webkit-search-results-button,.bcm-date-input>input::-webkit-search-results-decoration,.bcm-date-input>input::-webkit-calendar-picker-indicator,.bcm-date-input>input::-webkit-inner-spin-button,.bcm-date-input>input::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-date-input>input::-moz-placeholder{opacity:1}.bcm-date-input>input:placeholder-shown{text-overflow:ellipsis}.bcm-date-clear{color:#334155;display:flex;flex-direction:column;align-items:center;justify-content:center;width:20px;font-size:20px;padding-bottom:3px;line-height:1;order:1;cursor:pointer;font-weight:400}.bcm-date-clear-btn::after{content:"×"}.bcm-date-disabled{background-color:#f8fafc;color:#a0aec0;cursor:not-allowed}.bcm-date-disabled input{color:#a0aec0}.bcm-date-disabled:hover{border:1px solid #cbd5e1}.bcm-date-disabled .bcm-date-input{cursor:not-allowed}.bcm-date-disabled .bcm-date-suffix:before{cursor:not-allowed}.bcm-date-disabled .bcm-date-clear{cursor:not-allowed}.bcm-date--error{border:1px solid #e53e3e}.bcm-date--error:hover{border:1px solid #e53e3e}.bcm-date-dropdown{position:absolute;z-index:10800;box-shadow:0 4px 12px 0 rgba(17, 24, 39, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);background-color:#fff;top:-9999;left:-9999;border-radius:4px}.bcm-date-dropdown-placement-bottomLeft,.bcm-date-dropdown-placement-bottomRight{top:0;display:block}.bcm-date-dropdown-placement-topLeft,.bcm-date-dropdown-placement-topRight{bottom:0;display:block}.bcm-date-dropdown-hidden{display:none}.bcm-date-dropdown .bcm-date-panel-container{font-family:"Inter", sans-serif;font-size:14px;line-height:22px;font-weight:400}.bcm-date-dropdown .bcm-date-panels{display:inline-flex}.bcm-date-dropdown .bcm-date-decade-panel,.bcm-date-dropdown .bcm-date-year-panel,.bcm-date-dropdown .bcm-date-month-panel,.bcm-date-dropdown .bcm-date-week-panel,.bcm-date-dropdown .bcm-date-date-panel,.bcm-date-dropdown .bcm-date-time-panel{width:256px}.bcm-date-dropdown .bcm-date-time-panel{width:auto;padding-top:4px}.bcm-date-dropdown .bcm-date-time-panel .bcm-date-content{width:100%;table-layout:fixed;border-collapse:collapse;text-align:center;display:flex;flex:auto;height:224px}.bcm-date-dropdown .bcm-date-time-panel-column{flex:1 0 auto;width:56px;margin:4px 0;padding:0;overflow-y:hidden;text-align:start;list-style:none;transition:background 0.2s;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0.45) transparent;position:relative}.bcm-date-dropdown .bcm-date-time-panel-column:not(:first-child){border-inline-start:1px solid rgba(5, 5, 5, 0.06)}.bcm-date-dropdown .bcm-date-time-panel-column-active{background:rgba(0, 0, 255, 0.1)}.bcm-date-dropdown .bcm-date-time-panel-column:hover{overflow-y:auto}.bcm-date-dropdown .bcm-date-time-panel-column>li{margin:0;padding:0}.bcm-date-dropdown .bcm-date-time-panel-column>li.disabled{opacity:0.5}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell{margin-inline:4px}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell .bcm-date-time-panel-cell-inner{display:block;width:48px;height:28px;margin:0;padding-block:0;padding-inline-end:0;padding-inline-start:14px;color:rgba(0, 0, 0, 0.88);line-height:28px;border-radius:4px;cursor:pointer;transition:background 0.2s}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell .bcm-date-time-panel-cell-inner:hover{background:rgba(0, 0, 0, 0.04)}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell-selected .bcm-date-time-panel-cell-inner{background:#e6f4ff}.bcm-date-dropdown .bcm-date-time-panel-column>li.bcm-date-time-panel-cell-disabled .bcm-date-time-panel-cell-inner{pointer-events:none;color:rgba(0, 0, 0, 0.25)}.bcm-date-dropdown .bcm-date-datetime-panel{display:flex;flex-direction:row;align-items:stretch}.bcm-date-dropdown .bcm-date-datetime-panel .bcm-date-time-panel{padding-top:8px}.bcm-date-dropdown .bcm-date-datetime-panel .bcm-date-time-panel .bcm-date-header{display:none}.bcm-date-dropdown .bcm-date-header{padding:0 8px;color:rgba(0, 0, 0, 0.88);border-bottom:1px solid rgba(5, 5, 5, 0.06);display:flex;flex-direction:row;align-items:center;justify-content:space-between;font-size:18px}.bcm-date-dropdown .bcm-date-header>*{flex:none}.bcm-date-dropdown .bcm-date-header>button{min-width:20px}.bcm-date-dropdown .bcm-date-header button{padding:0;color:rgba(0, 0, 0, 0.45);line-height:40px;background:transparent;border:0;cursor:pointer;transition:color 0.2s;font-size:inherit}.bcm-date-dropdown .bcm-date-header button:hover{color:#3b82f6}.bcm-date-dropdown .bcm-date-header-view{flex:auto;text-align:center;font-weight:600;line-height:40px;gap:8px;font-size:14px}.bcm-date-dropdown .bcm-date-header-view button{color:inherit;font-weight:inherit;vertical-align:top;padding:0 4px}.bcm-date-dropdown .bcm-date-body{padding:8px 18px}.bcm-date-dropdown .bcm-date-content{text-align:center;width:100%;table-layout:fixed;border-collapse:collapse}.bcm-date-dropdown .bcm-date-content thead tr th{color:#334155;font-weight:400;font-size:12px;line-height:16px;padding:8px 0;text-align:center;text-transform:uppercase}.bcm-date-dropdown .bcm-date-cell{position:relative}.bcm-date-dropdown .bcm-date-cell::before{position:absolute;top:50%;inset-inline-start:0;inset-inline-end:0;z-index:1;height:24px;transform:translateY(-50%);transition:all 0.3s;content:""}.bcm-date-dropdown .bcm-date-cell-inner{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;border-radius:4px;border:1px solid transparent;transition:background 0.2s, border 0.2s;cursor:pointer;color:#94a3b8}.bcm-date-dropdown .bcm-date-cell-inner:hover{background:#e2e8f0;color:#64748b}.bcm-date-dropdown .bcm-date-cell-in-view .bcm-date-cell-inner{color:#334155}.bcm-date-dropdown .bcm-date-cell-today .bcm-date-cell-inner{border:1px solid #3b82f6;color:#3b82f6}.bcm-date-dropdown .bcm-date-cell-today .bcm-date-cell-inner:hover{background:#e2e8f0;color:#64748b}.bcm-date-dropdown .bcm-date-cell-selected .bcm-date-cell-inner{color:#fff;background:#3b82f6}.bcm-date-dropdown .bcm-date-cell-selected .bcm-date-cell-inner:hover{background:#2563eb;color:#fff}.bcm-date-dropdown .bcm-date-cell-in-range .bcm-date-cell-inner{background:#bfdbfe}.bcm-date-dropdown .bcm-date-cell-in-range::before{background:#bfdbfe}.bcm-date-dropdown .bcm-date-cell-range-hover .bcm-date-cell-inner{background:#93c5fd;color:#334155}.bcm-date-dropdown .bcm-date-cell-range-hover::before{background:#93c5fd}.bcm-date-dropdown .bcm-date-cell-range-start .bcm-date-cell-inner{background-color:#3b82f6;color:#fff;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-start .bcm-date-cell-inner:hover{background:#3b82f6;color:#fff;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-start::before{background:#bfdbfe;inset-inline-start:50%}.bcm-date-dropdown .bcm-date-cell-range-end .bcm-date-cell-inner{background-color:#3b82f6;color:#fff;border-radius:0 4px 4px 0}.bcm-date-dropdown .bcm-date-cell-range-end .bcm-date-cell-inner:hover{background:#3b82f6;color:#fff;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-end::before{background:#bfdbfe;inset-inline-end:50%}.bcm-date-dropdown .bcm-date-cell-range-hover-start .bcm-date-cell-inner{background-color:#93c5fd;color:#334155}.bcm-date-dropdown .bcm-date-cell-range-hover-start .bcm-date-cell-inner:hover{background:#93c5fd;color:#334155;border-radius:4px 0 0 4px}.bcm-date-dropdown .bcm-date-cell-range-hover-end .bcm-date-cell-inner:hover{background:#93c5fd;color:#334155;border-radius:0 4px 4px 0}.bcm-date-dropdown .bcm-date-cell-disabled .bcm-date-cell-inner{pointer-events:none;color:rgba(0, 0, 0, 0.25)}.bcm-date-dropdown .bcm-date-cell-disabled::before{background:rgba(0, 0, 0, 0.04)}.bcm-date-dropdown .bcm-date-footer{border-top:1px solid rgba(5, 5, 5, 0.06);width:min-content;min-width:100%;line-height:38px;text-align:center}.bcm-date-dropdown .bcm-date-footer .bcm-date-today-btn{color:#3b82f6;cursor:pointer;padding:0 8px}.bcm-date-dropdown .bcm-date-footer .bcm-date-today-btn:hover{color:#2563eb}.bcm-date-dropdown .bcm-date-ranges{margin:0;margin-bottom:0;padding:4px 12px;overflow:hidden;line-height:34px;text-align:start;list-style:none;display:flex;justify-content:space-between}.bcm-date-dropdown .bcm-date-ranges>li{display:inline-block}.bcm-date-dropdown .bcm-date-ranges .bcm-date-ok{margin-inline-start:auto}.bcm-date-dropdown .bcm-date-ranges .bcm-date-ok>button{font-size:14px;color:#fff;background-color:#3b82f6;box-shadow:0 2px 0 rgba(5, 145, 255, 0.1);height:24px;padding:0 7px;border-radius:4px;outline:none;border:none;cursor:pointer;transition:background-color 0.3s}.bcm-date-dropdown .bcm-date-ranges .bcm-date-ok>button:hover{background-color:#2563eb}.bcm-date-dropdown .bcm-date-now{text-align:right}.bcm-date-dropdown .bcm-date-now-btn{color:#3b82f6;text-decoration:none;background-color:transparent;outline:none;cursor:pointer;transition:color 0.3s;-webkit-text-decoration-skip:objects}.bcm-date-dropdown .bcm-date-now-btn:hover{color:#2563eb}.bcm-date-dropdown .bcm-date-range-wrapper{display:flex;position:relative}';const{state:Mk}=f({value:new Map}),Ok=(t,e)=>{let n=[];return t&&(n=t.map((t=>Object.assign(Object.assign(Object.assign({},t),{parentId:a((()=>e),null)}),t.items&&t.items.length>0&&{items:a((()=>Ok(t.items,t.id)),[])})))),n},Ek=t=>a((()=>Mk.value.get(t)),{}),Nk=(t,e,n)=>{let i=[],r=[],o=[],c=[];const{searchIsOnlyChilds:a}=Ek(t);return e&&e.length>0&&e.forEach((e=>{let l=a&&null!==e.parentId;if((e.text&&D.slugify(e.text).includes(D.slugify(n))||e.keywords&&D.slugify(e.keywords).includes(D.slugify(n)))&&(!a||a&&l)){if(o.push(e.id),i.push(e.id),r.push(e.id),c.push({id:e.id,text:e.text,parentId:e.parentId}),e.items&&e.items.length>0){const r=Nk(t,e.items,n);r.matching.length>0&&r.matching.forEach((t=>{i.push(t)}))}}else if(e.items&&e.items.length>0){const a=Nk(t,e.items,n);a.result.length>0&&(a.result.forEach((t=>{o.push(t)})),o.push(e.id),r.push(e.id),c.push({id:e.id,text:e.text,parentId:e.parentId,items:a.nestedResult})),a.matching.length>0&&i.push(...a.matching)}})),{result:o,matching:i,parentIndex:r,nestedResult:c}},Tk=(t,e,n)=>{let i;i=n&&n.length>0?n:Ek(t).dataSource;let r=[];return i&&r.push(Nk(t,i,e)),{result:a((()=>l.flatArray(r[0].result)),[]),matching:a((()=>r[0].matching),[]),parentIndex:a((()=>r[0].parentIndex),[]),nestedResult:a((()=>r[0].nestedResult),[])}},Ik=class{constructor(t){e(this,t),this.bcmOnSearch=n(this,"bcm-on-search",7),this.bcmOnSearchClear=n(this,"bcm-on-search-clear",7),this.debounceHandler=l.debounceInput((t=>this.onSearchValue(t,this)),300,!1,(()=>{var t,e;this.isActiveClearable=(null===(e=null===(t=this.inputElement)||void 0===t?void 0:t.value)||void 0===e?void 0:e.length)>0&&this.clearable})),this._id=l.UID(),this.placeholder="Search",this.disabled=!1,this.readonly=!1,this.clearable=!0,this.size=s.Size.medium,this.limit=10,this.searchIsOnlyChilds=!1,this.minSearchLength=2,this.data=[],this.tick={},this.isActiveClearable=!1}async componentDidLoad(){await this.initState()}async dataChanged(t,e){t!==e&&await this.initState()}async initState(){await(t=>{const{id:e,dataSource:n}=t,i={id:a((()=>e),l.UID),dataSource:n&&n.length>0&&Ok(n),searchIsOnlyChilds:t.searchIsOnlyChilds};Mk.value.set(i.id,i)})({id:this._id+"-input",dataSource:this.data,searchIsOnlyChilds:this.searchIsOnlyChilds}),await this.markForCheck()}markForCheck(){this.tick=l.UID()}handleInput(){}async onBcmFocus(){this.inputElement.focus()}async onBcmBlur(){this.inputElement.blur()}async onBcmSelect(){this.inputElement.select()}async setValue(t){this.inputElement.value=t}handleFocus(){}handleBlur(){}handleChange(){}async handleClear(t=!0){this.inputElement.value="";const{value:e,id:n}=this.inputElement;return Tk(n,e),this.isActiveClearable=!1,this.bcmOnSearch.emit({result:null,value:null,matching:null,parentIndex:null}),this.bcmOnSearchClear.emit(t),await p(10),Promise.resolve()}onSearchValue(t,e){const{value:n,id:i}=t.target,r=(null==n?void 0:n.length)>=this.minSearchLength?Tk(i,n,null):null,{bcmOnSearch:o,inputElement:c}=e;o.emit({result:null==r?void 0:r.result,value:null==c?void 0:c.value,matching:null==r?void 0:r.matching,parentIndex:null==r?void 0:r.parentIndex,nestedResult:null==r?void 0:r.nestedResult})}render(){const{_id:e,placeholder:n,disabled:r,readonly:o}=this;return t(i,{onClick:()=>{this.onBcmFocus(),this.onBcmSelect()}},t(T,{size:this.size,id:e,type:"search",placeholder:n,disabled:r,"full-width":!0,readonly:o,clearable:this.isActiveClearable,handleFocus:()=>this.handleFocus(),handleBlur:()=>this.handleBlur(),handleChange:()=>this.handleChange(),handleClear:()=>this.handleClear(),handleInput:this.debounceHandler,ref:t=>this.inputElement=t}))}get el(){return r(this)}static get watchers(){return{data:["dataChanged"]}}};Ik.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:"Inter", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:"Inter", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}';const Rk=class{constructor(t){e(this,t),this.change=n(this,"bcm-change",7),this.focus=n(this,"bcm-focus",7),this.blur=n(this,"bcm-blur",7),this._id=l.UID(),this._internal_id=l.UID(),this.checked=!1,this.hidden=!1,this.value=!1,this.name=void 0,this.disabled=!1,this.required=!1,this.size=s.Size.medium,this.readonly=!1,this.activeIcon=void 0,this.activeText=void 0,this.inactiveIcon=void 0,this.inactiveText=void 0,this.pending=!1,this.label=void 0,this.labelPosition="top",this.tooltip=void 0,this.caption=void 0,this.noCaption=!1,this.captionError=void 0,this.captionType=s.Status.default,this.captionCache=void 0,this.captionTypeCache=void 0}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType,this.value=this.checked}handleChange(){this.checked=this.inputElement.checked,this.value=this.checked,this.change.emit(this.checked)}componentWillRender(){this.pending&&(this.disabled=!0)}async onBcmFocus(){this.el.focus()}async onBcmBlur(){this.el.blur()}async set(t){"boolean"==typeof t&&await this.check(t)}async check(t=!0){this.inputElement.checked=t,this.handleChange()}async get(){return this.checked||!1}async setClear(){return 1==this.inputElement.checked&&(this.inputElement.checked=!1,this.checked=this.inputElement.checked,this.value=this.checked,this.change.emit(this.checked)),await p(10),Promise.resolve()}async resetCaption(){return await p(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await p(10),Promise.resolve()}handleKeyUp(t){if(t.keyCode==s.KeyCode.space||t.keyCode==s.KeyCode.enter)return this.disabled||this.readonly||(this.inputElement.checked=!this.inputElement.checked,this.handleChange()),t.stopPropagation(),t.preventDefault(),!1}render(){const{hidden:e,_internal_id:n,checked:r,size:o,activeIcon:c,inactiveIcon:a,activeText:l,inactiveText:u,pending:f,disabled:d,readonly:b,label:p,required:v,noCaption:g,captionType:x,captionError:y,caption:w}=this,k=h("bcm-switch__toggle","bcm-switch__size-"+o,{"switch-checked":r,disabled:d,readonly:b}),_=h("bcm-switch","bcm-switch__size-"+o,{hidden:e,checked:r,disabled:d,readonly:b}),z=h("bcm-switch__label","input-size-"+s.Size[o]),C=h("bcm-switch__container",`bcm-switch__container--${this.labelPosition}`),S=e=>o!=s.Size.small&&(l||u)&&t("span",{class:e+"-text"},"active"==e?l:u),D=e=>o!=s.Size.small&&(c||a)&&t("bcm-icon",{icon:"active"==e?c:a,class:" icon-"+e});return t(i,{tabindex:"0",onFocus:()=>this.focus.emit(this.el),onBlur:()=>this.blur.emit(this.el),class:_},t("span",{hidden:!0},t("slot",null)),t("div",{class:C},p&&t("bcm-label",{htmlFor:n,tooltip:this.tooltip,type:x,value:p,required:v}),t("input",{id:n,onChange:()=>this.handleChange(),ref:t=>this.inputElement=t,checked:r,type:"checkbox",class:"switch",disabled:d||b}),t("label",{htmlFor:n,class:z},S("inactive"),t("div",{class:k},D("active"),t("span",{class:"handle"},f&&t("span",{class:"switch-spinner"})),D("inactive")),S("active"))),t(m,{noCaption:g,captionType:x,captionError:y,caption:w}))}get el(){return r(this)}};(function(t,e,n,i){var r,o=arguments.length,c=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(c=(o<3?r(c):o>3?r(e,n,c):r(e,n))||c);o>3&&c&&Object.defineProperty(e,n,c)})([x()],Rk.prototype,"el",void 0),Rk.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-switch{display:inline-flex;user-select:none;flex-direction:column;margin-bottom:8px}.bcm-switch__container{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px}.bcm-switch__container--left,.bcm-switch__container--right{align-items:center}.bcm-switch__container--left .bcm-label__text,.bcm-switch__container--right .bcm-label__text{margin:0}.bcm-switch__container--left{flex-direction:row}.bcm-switch__container--left .bcm-label__text{margin-right:4px}.bcm-switch__container--right{flex-direction:row-reverse}.bcm-switch__container--right .bcm-label__text{margin-left:4px}.bcm-switch:focus-visible{outline:none}.bcm-switch:focus-visible .bcm-switch__toggle{background-color:var(--bcm-new-ds-color-slate-400)}.bcm-switch:focus-visible .bcm-switch__toggle.switch-checked{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-switch:hover{outline:none}.bcm-switch:hover .bcm-switch__toggle .handle{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-switch:hover .bcm-switch__toggle.switch-checked .handle{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-switch *{box-sizing:border-box}.bcm-switch.hidden{display:none}.bcm-switch input{display:none}.bcm-switch.disabled .bcm-switch__toggle{cursor:not-allowed;opacity:40%}.bcm-switch.readonly .bcm-switch__toggle{cursor:default;opacity:80%}.bcm-switch__label{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-flex;align-items:center;margin:0}.bcm-switch__label .active-text{color:var(--bcm-new-ds-color-blue-500);margin:0 0 0 4px}.bcm-switch__label .inactive-text{color:var(--bcm-new-ds-color-slate-500);margin:0 4px 0 0}.bcm-switch__toggle{display:flex;justify-content:space-between;align-items:center;border-radius:16px;background-color:var(--bcm-new-ds-color-slate-300);position:relative;cursor:pointer}.bcm-switch__toggle .handle{padding:1px;position:absolute;background-color:var(--bcm-new-ds-color-slate-50);display:inline-flex;align-items:center;justify-content:center;border-radius:16px;transition:left 0.2s ease-in-out, width 0.2s ease-in-out;box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-switch__toggle .icon-active{opacity:0;margin-left:2px}.bcm-switch__toggle .icon-inactive{opacity:1;margin-right:2px}.bcm-switch__toggle.bcm-switch__size-small{width:32px;min-width:32px;height:16px;padding:4px}.bcm-switch__toggle.bcm-switch__size-small .handle{width:12px;height:12px;left:2px}.bcm-switch__toggle.bcm-switch__size-small.switch-checked .handle{left:18px}.bcm-switch__toggle.bcm-switch__size-small:active:not(.disabled):not(.readonly) .handle{width:16px}.bcm-switch__toggle.bcm-switch__size-small:active.switch-checked:not(.disabled):not(.readonly) .handle{left:12px}.bcm-switch__toggle.bcm-switch__size-small .switch-spinner{box-sizing:border-box;display:inline-flex;width:9px;height:9px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.bcm-switch__size-medium{width:36px;min-width:36px;height:18px;padding:4px}.bcm-switch__toggle.bcm-switch__size-medium .handle{width:14px;height:14px;left:2px}.bcm-switch__toggle.bcm-switch__size-medium.switch-checked .handle{left:20px}.bcm-switch__toggle.bcm-switch__size-medium:active:not(.disabled):not(.readonly) .handle{width:18px}.bcm-switch__toggle.bcm-switch__size-medium:active.switch-checked:not(.disabled):not(.readonly) .handle{left:14px}.bcm-switch__toggle.bcm-switch__size-medium .switch-spinner{box-sizing:border-box;display:inline-flex;width:11px;height:11px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.bcm-switch__size-large{width:40px;min-width:40px;height:20px;padding:4px}.bcm-switch__toggle.bcm-switch__size-large .handle{width:16px;height:16px;left:2px}.bcm-switch__toggle.bcm-switch__size-large.switch-checked .handle{left:22px}.bcm-switch__toggle.bcm-switch__size-large:active:not(.disabled):not(.readonly) .handle{width:20px}.bcm-switch__toggle.bcm-switch__size-large:active.switch-checked:not(.disabled):not(.readonly) .handle{left:16px}.bcm-switch__toggle.bcm-switch__size-large .switch-spinner{box-sizing:border-box;display:inline-flex;width:13px;height:13px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.switch-checked{background-color:var(--bcm-new-ds-color-blue-500)}.bcm-switch__toggle.switch-checked .icon-active{color:var(--bcm-new-ds-color-slate-100);opacity:1}.bcm-switch__toggle.switch-checked .icon-inactive{opacity:0}.bcm-switch__toggle.switch-checked .switch-spinner{border-top-color:var(--bcm-new-ds-color-blue-600)}.bcm-switch__size-small .bcm-switch__label,.bcm-switch__size-small .bcm-label__text{font-size:12px}.bcm-switch__size-small .bcm-switch__toggle{font-size:8px}.bcm-switch__size-medium .bcm-switch__label,.bcm-switch__size-medium .bcm-label__text{font-size:13px}.bcm-switch__size-medium .bcm-switch__toggle{font-size:9px}.bcm-switch__size-large .bcm-switch__label,.bcm-switch__size-large .bcm-label__text{font-size:16px}.bcm-switch__size-large .bcm-switch__toggle{font-size:12px}@keyframes switch-spinner{to{transform:rotate(360deg)}}';const Yk=class{constructor(t){e(this,t),this.bcmTooltipShow=n(this,"bcmTooltipShow",7),this.bcmTooltipHide=n(this,"bcmTooltipHide",7),this._id=l.UID(),this.message="",this.placement=u.Placement.top,this.trigger=u.TriggerType.click,this.open=!1,this.color="slate",this.size=u.Size.medium,this.openDelay=0,this.closeDelay=0,this.autoHide=!1,this.targetId=void 0,this.tooltip=void 0}emitShow(){this.bcmTooltipShow.emit()}emitHide(){this.bcmTooltipHide.emit()}connectedCallback(){this.tooltip=new Y({targetId:this.targetId||this._id,message:this.message,placement:this.placement,color:this.color,trigger:this.trigger,size:this.size,openDelay:this.openDelay,closeDelay:this.closeDelay,autoHide:this.autoHide,emitShow:()=>this.emitShow(),emitHide:()=>this.emitHide()})}componentDidLoad(){this.tooltip.listener()}componentDidRender(){this.tooltip.message=this.message,this.tooltip.placement=this.placement,this.tooltip.color=this.color,this.tooltip.trigger=this.trigger,this.tooltip.size=this.size,this.tooltip.openDelay=this.openDelay,this.tooltip.closeDelay=this.closeDelay,this.tooltip.autoHide=this.autoHide,this.tooltip.update()}disconnectedCallback(){this.tooltip.destroy()}async show(){this.tooltip.show()}async hide(){this.tooltip.hide()}async toggle(){this.tooltip.toggle()}render(){return t(i,{class:"tw-inline-flex tw-h-fit tw-w-fit",role:"tooltip","aria-hidden":"true"},t("slot",null))}get el(){return r(this)}};export{L as bcm_button,H as bcm_checkbox,nh as bcm_colorful,im as bcm_date,rm as bcm_date_picker,sm as bcm_datetime_picker,um as bcm_form,fm as bcm_icon,dm as bcm_input,bm as bcm_label,mm as bcm_linked,Rm as bcm_list,Pm as bcm_old_input,Vv as bcm_rc_overflow,jk as bcm_rc_picker,Ik as bcm_search,Rk as bcm_switch,Yk as bcm_tooltip}
|