smoothly 1.0.0-alpha.13 → 1.0.0-alpha.131
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/cjs/{Listenable-63ea2d90.js → Data-e345d3cd.js} +74 -4
- package/dist/cjs/Data-e345d3cd.js.map +1 -0
- package/dist/cjs/Observers-6450f075.js +25 -0
- package/dist/cjs/Observers-6450f075.js.map +1 -0
- package/dist/cjs/{getLanguage-430ecf04.js → getLanguage-28ce96e4.js} +1111 -890
- package/dist/cjs/getLanguage-28ce96e4.js.map +1 -0
- package/dist/cjs/{index-8352a4e0.js → index-6ae370b4.js} +12 -43
- package/dist/cjs/index-6ae370b4.js.map +1 -0
- package/dist/cjs/index.cjs.js +386 -22
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/redirect-2e5d4524.js +104 -0
- package/dist/cjs/redirect-2e5d4524.js.map +1 -0
- package/dist/cjs/smoothly-accordion_70.cjs.entry.js +17204 -0
- package/dist/cjs/smoothly-accordion_70.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-address-display.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-address.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-addresses.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-color.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-country.cjs.entry.js +9 -9
- package/dist/cjs/smoothly-country.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-display-date-time.cjs.entry.js +26 -0
- package/dist/cjs/smoothly-display-date-time.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-reorder.cjs.entry.js +4 -4
- package/dist/cjs/smoothly-reorder.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +4 -4
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +6 -6
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly.cjs.js +4 -3
- package/dist/cjs/smoothly.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +23 -12
- package/dist/collection/components/Button.js +16 -2
- package/dist/collection/components/Button.js.map +1 -1
- package/dist/collection/components/accordion/index.js +32 -12
- package/dist/collection/components/accordion/index.js.map +1 -1
- package/dist/collection/components/accordion-item/index.js +18 -25
- package/dist/collection/components/accordion-item/index.js.map +1 -1
- package/dist/collection/components/app/index.js +147 -1
- package/dist/collection/components/app/index.js.map +1 -1
- package/dist/collection/components/app/room/index.js +240 -0
- package/dist/collection/components/app/room/index.js.map +1 -0
- package/dist/collection/components/app/room/style.css +55 -0
- package/dist/collection/components/app/style.css +89 -101
- package/dist/collection/components/app-demo/index.js +5 -19
- package/dist/collection/components/app-demo/index.js.map +1 -1
- package/dist/collection/components/backtotop/index.js +3 -3
- package/dist/collection/components/backtotop/index.js.map +1 -1
- package/dist/collection/components/burger/index.js +174 -0
- package/dist/collection/components/burger/index.js.map +1 -0
- package/dist/collection/components/burger/style.css +22 -0
- package/dist/collection/components/button/index.js +10 -23
- package/dist/collection/components/button/index.js.map +1 -1
- package/dist/collection/components/button/style.css +13 -17
- package/dist/collection/components/button-demo/index.js +6 -2
- package/dist/collection/components/button-demo/index.js.map +1 -1
- package/dist/collection/components/button-demo/style.css +1 -0
- package/dist/collection/components/calendar/generate.js +1 -1
- package/dist/collection/components/calendar/generate.js.map +1 -1
- package/dist/collection/components/checkbox/index.js +25 -3
- package/dist/collection/components/checkbox/index.js.map +1 -1
- package/dist/collection/components/country/index.js +1 -1
- package/dist/collection/components/display/index.js +24 -3
- package/dist/collection/components/display/index.js.map +1 -1
- package/dist/collection/components/display-amount/index.js +1 -1
- package/dist/collection/components/display-demo/index.js +1 -1
- package/dist/collection/components/display-demo/index.js.map +1 -1
- package/dist/collection/components/filter/index.js +1 -1
- package/dist/collection/components/filter/index.js.map +1 -1
- package/dist/collection/components/filter/input/index.js +16 -9
- package/dist/collection/components/filter/input/index.js.map +1 -1
- package/dist/collection/components/form/index.js +132 -9
- package/dist/collection/components/form/index.js.map +1 -1
- package/dist/collection/components/form/style.css +9 -16
- package/dist/collection/components/frame/index.js +1 -2
- package/dist/collection/components/frame/index.js.map +1 -1
- package/dist/collection/components/icon/index.js +29 -38
- package/dist/collection/components/icon/index.js.map +1 -1
- package/dist/collection/components/icon-demo/index.js.map +1 -1
- package/dist/collection/components/icon-demo/style.css +1 -0
- package/dist/collection/components/input/Changeable.js +8 -0
- package/dist/collection/components/input/Changeable.js.map +1 -0
- package/dist/collection/components/input/Clearable.js.map +1 -0
- package/dist/collection/components/input/Input.js +2 -0
- package/dist/collection/components/input/Input.js.map +1 -0
- package/dist/collection/components/input/Looks.js +2 -0
- package/dist/collection/components/input/Looks.js.map +1 -0
- package/dist/collection/components/input/Submittable.js +8 -0
- package/dist/collection/components/input/Submittable.js.map +1 -0
- package/dist/collection/components/input/clear/index.js +237 -0
- package/dist/collection/components/input/clear/index.js.map +1 -0
- package/dist/collection/components/input/clear/style.css +254 -0
- package/dist/collection/components/{input-date → input/date}/index.js +160 -3
- package/dist/collection/components/input/date/index.js.map +1 -0
- package/dist/collection/components/{input-date-range → input/date/range}/index.js +161 -23
- package/dist/collection/components/input/date/range/index.js.map +1 -0
- package/dist/collection/components/input/date/range/style.css +69 -0
- package/dist/collection/components/input/date/style.css +58 -0
- package/dist/collection/components/input/demo/index.js +95 -0
- package/dist/collection/components/input/demo/index.js.map +1 -0
- package/dist/collection/components/{input-demo → input/demo}/style.css +1 -0
- package/dist/collection/components/input/file/index.js +305 -0
- package/dist/collection/components/input/file/index.js.map +1 -0
- package/dist/collection/components/input/file/style.css +85 -0
- package/dist/collection/components/input/index.js +131 -8
- package/dist/collection/components/input/index.js.map +1 -1
- package/dist/collection/components/{input-month → input/month}/index.js +5 -5
- package/dist/collection/components/input/month/index.js.map +1 -0
- package/dist/collection/components/{selector → input/select}/index.js +176 -5
- package/dist/collection/components/input/select/index.js.map +1 -0
- package/dist/collection/components/input/select/style.css +80 -0
- package/dist/collection/components/input/style.css +23 -8
- package/dist/collection/components/notification/index.js +45 -8
- package/dist/collection/components/notification/index.js.map +1 -1
- package/dist/collection/components/notification/style.css +25 -1
- package/dist/collection/components/notifier/style.css +1 -3
- package/dist/collection/components/picker/demo/index.js +91 -0
- package/dist/collection/components/picker/demo/index.js.map +1 -0
- package/dist/collection/components/picker/demo/style.css +26 -0
- package/dist/collection/components/picker/index.js +197 -396
- package/dist/collection/components/picker/index.js.map +1 -1
- package/dist/collection/components/picker/menu/index.js +422 -0
- package/dist/collection/components/picker/menu/index.js.map +1 -0
- package/dist/collection/components/picker/menu/style.css +44 -0
- package/dist/collection/components/picker/option/index.js +298 -0
- package/dist/collection/components/picker/option/index.js.map +1 -0
- package/dist/collection/components/picker/option/style.css +30 -0
- package/dist/collection/components/picker/slot-elements/index.js +109 -0
- package/dist/collection/components/picker/slot-elements/index.js.map +1 -0
- package/dist/collection/components/picker/slot-elements/style.css +3 -0
- package/dist/collection/components/picker/slotted-elements/index.js +84 -0
- package/dist/collection/components/picker/slotted-elements/index.js.map +1 -0
- package/dist/collection/components/picker/slotted-elements/style.css +3 -0
- package/dist/collection/components/picker/style.css +60 -144
- package/dist/collection/components/radio/index.js +4 -4
- package/dist/collection/components/radio/index.js.map +1 -1
- package/dist/collection/components/radio-button/index.js +35 -10
- package/dist/collection/components/radio-button/index.js.map +1 -1
- package/dist/collection/components/select-demo/index.js +0 -87
- package/dist/collection/components/select-demo/index.js.map +1 -1
- package/dist/collection/components/spinner/style.css +1 -0
- package/dist/collection/components/submit/index.js +64 -5
- package/dist/collection/components/submit/index.js.map +1 -1
- package/dist/collection/components/submit/style.css +224 -0
- package/dist/collection/components/summary/index.js +44 -1
- package/dist/collection/components/summary/index.js.map +1 -1
- package/dist/collection/components/svg/style.css +2 -2
- package/dist/collection/components/table/cell/index.js +1 -1
- package/dist/collection/components/table/cell/index.js.map +1 -1
- package/dist/collection/components/table/cell/style.css +19 -10
- package/dist/collection/components/table/demo/filtered/index.js +4 -3
- package/dist/collection/components/table/demo/filtered/index.js.map +1 -1
- package/dist/collection/components/table/demo/index.js +8 -2
- package/dist/collection/components/table/demo/index.js.map +1 -1
- package/dist/collection/components/table/demo/style.css +2 -0
- package/dist/collection/components/table/expandable/cell/index.js +14 -14
- package/dist/collection/components/table/expandable/cell/index.js.map +1 -1
- package/dist/collection/components/table/expandable/cell/style.css +32 -22
- package/dist/collection/components/table/expandable/row/index.js +9 -32
- package/dist/collection/components/table/expandable/row/index.js.map +1 -1
- package/dist/collection/components/table/expandable/row/style.css +32 -29
- package/dist/collection/components/table/footer/index.js +19 -0
- package/dist/collection/components/table/footer/index.js.map +1 -0
- package/dist/collection/components/table/footer/style.css +13 -0
- package/dist/collection/components/table/header/style.css +2 -2
- package/dist/collection/components/table/index.js +55 -12
- package/dist/collection/components/table/index.js.map +1 -1
- package/dist/collection/components/table/row/index.js +37 -5
- package/dist/collection/components/table/row/index.js.map +1 -1
- package/dist/collection/components/table/row/style.css +4 -1
- package/dist/collection/components/table/style.css +0 -2
- package/dist/collection/components/table/testing/data.js +28 -0
- package/dist/collection/components/table/testing/data.js.map +1 -0
- package/dist/collection/components/table/testing/index.js +28 -0
- package/dist/collection/components/table/testing/index.js.map +1 -0
- package/dist/collection/components/table/testing/style.css +22 -0
- package/dist/collection/components/theme/color/index.js +48 -0
- package/dist/collection/components/theme/color/index.js.map +1 -0
- package/dist/collection/components/theme/color/style.css +8 -0
- package/dist/collection/components/theme/color/variant/index.js +66 -0
- package/dist/collection/components/theme/color/variant/index.js.map +1 -0
- package/dist/collection/components/theme/color/variant/style.css +18 -0
- package/dist/collection/components/theme/colors/index.js +30 -0
- package/dist/collection/components/theme/colors/index.js.map +1 -0
- package/dist/collection/components/theme/colors/style.css +7 -0
- package/dist/collection/components/toggle-switch/index.js +69 -17
- package/dist/collection/components/toggle-switch/index.js.map +1 -1
- package/dist/collection/components/toggle-switch/style.css +19 -12
- package/dist/collection/components/trigger-source/index.js +3 -3
- package/dist/collection/components/trigger-source/index.js.map +1 -1
- package/dist/collection/global/Observers.js +22 -0
- package/dist/collection/global/Observers.js.map +1 -0
- package/dist/collection/global/index.js +5 -0
- package/dist/collection/global/index.js.map +1 -0
- package/dist/collection/index.js +2 -3
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/model/Data.js.map +1 -0
- package/dist/collection/model/Icon.js +23 -0
- package/dist/collection/model/Icon.js.map +1 -0
- package/dist/collection/model/Listenable.js +2 -2
- package/dist/collection/model/Listenable.js.map +1 -1
- package/dist/collection/model/Notice.js +1 -1
- package/dist/collection/model/Notice.js.map +1 -1
- package/dist/collection/model/Option.js.map +1 -1
- package/dist/collection/model/index.js +3 -0
- package/dist/collection/model/index.js.map +1 -1
- package/dist/collection/model/redirect.js +8 -0
- package/dist/collection/model/redirect.js.map +1 -0
- package/dist/collection/smoothly.js +3 -0
- package/dist/collection/smoothly.js.map +1 -0
- package/dist/custom-elements/index.d.ts +94 -34
- package/dist/custom-elements/index.js +5360 -16302
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/{Listenable-fb6f4723.js → Data-37e7c0b9.js} +75 -5
- package/dist/esm/Data-37e7c0b9.js.map +1 -0
- package/dist/esm/Observers-5f08e828.js +25 -0
- package/dist/esm/Observers-5f08e828.js.map +1 -0
- package/dist/esm/{getLanguage-cccb8418.js → getLanguage-5233a597.js} +1111 -890
- package/dist/esm/getLanguage-5233a597.js.map +1 -0
- package/dist/esm/{index-7b57a52c.js → index-c196715a.js} +12 -42
- package/dist/esm/index-c196715a.js.map +1 -0
- package/dist/esm/index.js +388 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +5 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/redirect-b0f87e88.js +101 -0
- package/dist/esm/redirect-b0f87e88.js.map +1 -0
- package/dist/esm/smoothly-accordion_70.entry.js +17131 -0
- package/dist/esm/smoothly-accordion_70.entry.js.map +1 -0
- package/dist/esm/smoothly-address-display.entry.js +1 -1
- package/dist/esm/smoothly-address.entry.js +1 -1
- package/dist/esm/smoothly-addresses.entry.js +1 -1
- package/dist/esm/smoothly-color.entry.js +1 -1
- package/dist/esm/smoothly-country.entry.js +9 -9
- package/dist/esm/smoothly-country.entry.js.map +1 -1
- package/dist/esm/smoothly-display-date-time.entry.js +22 -0
- package/dist/esm/smoothly-display-date-time.entry.js.map +1 -0
- package/dist/esm/smoothly-google-font.entry.js +1 -1
- package/dist/esm/smoothly-radio-group.entry.js +1 -1
- package/dist/esm/smoothly-reorder.entry.js +2 -2
- package/dist/esm/smoothly-reorder.entry.js.map +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +2 -2
- package/dist/esm/smoothly-trigger-source.entry.js +4 -4
- package/dist/esm/smoothly-trigger-source.entry.js.map +1 -1
- package/dist/esm/smoothly.js +5 -4
- package/dist/esm/smoothly.js.map +1 -1
- package/dist/smoothly/index.esm.js +1 -1
- package/dist/smoothly/index.esm.js.map +1 -1
- package/dist/smoothly/{p-d4182274.entry.js → p-1efa3261.entry.js} +2 -2
- package/dist/smoothly/p-2a0c2387.js +2 -0
- package/dist/smoothly/p-2a0c2387.js.map +1 -0
- package/dist/smoothly/{p-e136b93e.entry.js → p-4d743f07.entry.js} +2 -2
- package/dist/smoothly/p-4ff439dd.entry.js +2 -0
- package/dist/smoothly/{p-5b28795c.entry.js.map → p-4ff439dd.entry.js.map} +1 -1
- package/dist/smoothly/{p-be2ff772.entry.js → p-5edb65c6.entry.js} +2 -2
- package/dist/smoothly/{p-c49d2094.entry.js → p-663ccbd0.entry.js} +2 -2
- package/dist/smoothly/p-73442332.entry.js +2 -0
- package/dist/smoothly/p-73442332.entry.js.map +1 -0
- package/dist/smoothly/{p-940af6d3.entry.js → p-9992c8c4.entry.js} +2 -2
- package/dist/smoothly/p-a6c4c2d4.entry.js +2 -0
- package/dist/smoothly/p-a6c4c2d4.entry.js.map +1 -0
- package/dist/smoothly/p-b9cb0514.js +2 -0
- package/dist/smoothly/p-b9cb0514.js.map +1 -0
- package/dist/smoothly/p-c833c402.js +2 -0
- package/dist/smoothly/p-c833c402.js.map +1 -0
- package/dist/smoothly/p-ce4e6f44.entry.js +2 -0
- package/dist/smoothly/p-ce4e6f44.entry.js.map +1 -0
- package/dist/smoothly/p-d0b8061e.js +3 -0
- package/dist/smoothly/p-d0b8061e.js.map +1 -0
- package/dist/smoothly/{p-79025273.entry.js → p-dbd1afa9.entry.js} +2 -2
- package/dist/smoothly/p-ede93d69.js +2 -0
- package/dist/smoothly/p-ede93d69.js.map +1 -0
- package/dist/smoothly/{p-712b362e.entry.js → p-f96e41aa.entry.js} +2 -2
- package/dist/smoothly/p-ff8acb9b.entry.js +2 -0
- package/dist/smoothly/p-ff8acb9b.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/smoothly/smoothly.esm.js.map +1 -1
- package/dist/types/components/Button.d.ts +1 -2
- package/dist/types/components/accordion/index.d.ts +1 -1
- package/dist/types/components/accordion-item/index.d.ts +5 -4
- package/dist/types/components/app/index.d.ts +25 -0
- package/dist/types/components/app/room/index.d.ts +25 -0
- package/dist/types/components/app-demo/index.d.ts +2 -0
- package/dist/types/components/backtotop/index.d.ts +1 -1
- package/dist/types/components/burger/index.d.ts +15 -0
- package/dist/types/components/button/index.d.ts +2 -2
- package/dist/types/components/checkbox/index.d.ts +4 -2
- package/dist/types/components/display/index.d.ts +1 -0
- package/dist/types/components/filter/input/index.d.ts +1 -1
- package/dist/types/components/form/index.d.ts +16 -3
- package/dist/types/components/frame/index.d.ts +1 -1
- package/dist/types/components/icon/index.d.ts +3 -9
- package/dist/types/components/input/Changeable.d.ts +7 -0
- package/dist/types/components/input/Input.d.ts +10 -0
- package/dist/types/components/input/Looks.d.ts +1 -0
- package/dist/types/components/input/Submittable.d.ts +6 -0
- package/dist/types/components/input/clear/index.d.ts +17 -0
- package/dist/types/components/input/date/index.d.ts +28 -0
- package/dist/types/components/input/date/range/index.d.ts +33 -0
- package/dist/types/components/input/demo/index.d.ts +8 -0
- package/dist/types/components/input/file/index.d.ts +24 -0
- package/dist/types/components/input/index.d.ts +17 -4
- package/dist/types/components/{input-month → input/month}/index.d.ts +1 -1
- package/dist/types/components/{selector → input/select}/index.d.ts +15 -3
- package/dist/types/components/notification/index.d.ts +3 -1
- package/dist/types/components/picker/demo/index.d.ts +18 -0
- package/dist/types/components/picker/index.d.ts +33 -45
- package/dist/types/components/picker/menu/index.d.ts +53 -0
- package/dist/types/components/picker/option/index.d.ts +23 -0
- package/dist/types/components/picker/slot-elements/index.d.ts +15 -0
- package/dist/types/components/picker/slotted-elements/index.d.ts +8 -0
- package/dist/types/components/radio/index.d.ts +1 -1
- package/dist/types/components/radio-button/index.d.ts +3 -5
- package/dist/types/components/select-demo/index.d.ts +0 -9
- package/dist/types/components/submit/index.d.ts +6 -1
- package/dist/types/components/summary/index.d.ts +4 -0
- package/dist/types/components/table/demo/filtered/index.d.ts +1 -1
- package/dist/types/components/table/expandable/cell/index.d.ts +4 -4
- package/dist/types/components/table/expandable/row/index.d.ts +3 -7
- package/dist/types/components/table/footer/index.d.ts +3 -0
- package/dist/types/components/table/index.d.ts +6 -3
- package/dist/types/components/table/row/index.d.ts +3 -1
- package/dist/types/components/table/testing/data.d.ts +5 -0
- package/dist/types/components/table/testing/index.d.ts +4 -0
- package/dist/types/components/theme/color/index.d.ts +5 -0
- package/dist/types/components/theme/color/variant/index.d.ts +6 -0
- package/dist/types/components/theme/colors/index.d.ts +3 -0
- package/dist/types/components/toggle-switch/index.d.ts +7 -2
- package/dist/types/components/trigger-source/index.d.ts +1 -1
- package/dist/types/components.d.ts +490 -226
- package/dist/types/global/Observers.d.ts +8 -0
- package/dist/types/global/index.d.ts +4 -0
- package/dist/types/index.d.ts +1 -4
- package/dist/types/model/Icon.d.ts +8 -0
- package/dist/types/model/Notice.d.ts +1 -1
- package/dist/types/model/Option.d.ts +24 -6
- package/dist/types/model/index.d.ts +4 -1
- package/dist/types/model/redirect.d.ts +1 -0
- package/dist/types/smoothly.d.ts +3 -0
- package/package.json +16 -16
- package/dist/cjs/Listenable-63ea2d90.js.map +0 -1
- package/dist/cjs/getLanguage-430ecf04.js.map +0 -1
- package/dist/cjs/index-8352a4e0.js.map +0 -1
- package/dist/cjs/index-b282ee83.js +0 -865
- package/dist/cjs/index-b282ee83.js.map +0 -1
- package/dist/cjs/smoothly-accordion_61.cjs.entry.js +0 -28113
- package/dist/cjs/smoothly-accordion_61.cjs.entry.js.map +0 -1
- package/dist/collection/components/App.js +0 -71
- package/dist/collection/components/App.js.map +0 -1
- package/dist/collection/components/form/Clearable.js.map +0 -1
- package/dist/collection/components/form/Data.js.map +0 -1
- package/dist/collection/components/input-date/index.js.map +0 -1
- package/dist/collection/components/input-date/style.css +0 -39
- package/dist/collection/components/input-date-range/index.js.map +0 -1
- package/dist/collection/components/input-date-range/style.css +0 -51
- package/dist/collection/components/input-demo/index.js +0 -45
- package/dist/collection/components/input-demo/index.js.map +0 -1
- package/dist/collection/components/input-month/index.js.map +0 -1
- package/dist/collection/components/menu-options/index.js +0 -413
- package/dist/collection/components/menu-options/index.js.map +0 -1
- package/dist/collection/components/menu-options/style.css +0 -18
- package/dist/collection/components/option/index.js +0 -270
- package/dist/collection/components/option/index.js.map +0 -1
- package/dist/collection/components/option/style.css +0 -42
- package/dist/collection/components/room/index.js +0 -90
- package/dist/collection/components/room/index.js.map +0 -1
- package/dist/collection/components/select/index.js +0 -108
- package/dist/collection/components/select/index.js.map +0 -1
- package/dist/collection/components/select/style.css +0 -20
- package/dist/collection/components/selector/index.js.map +0 -1
- package/dist/collection/components/selector/style.css +0 -46
- package/dist/esm/Listenable-fb6f4723.js.map +0 -1
- package/dist/esm/getLanguage-cccb8418.js.map +0 -1
- package/dist/esm/index-2e948fc3.js +0 -861
- package/dist/esm/index-2e948fc3.js.map +0 -1
- package/dist/esm/index-7b57a52c.js.map +0 -1
- package/dist/esm/smoothly-accordion_61.entry.js +0 -28049
- package/dist/esm/smoothly-accordion_61.entry.js.map +0 -1
- package/dist/smoothly/p-06337b89.js +0 -2
- package/dist/smoothly/p-06337b89.js.map +0 -1
- package/dist/smoothly/p-21341e18.entry.js +0 -2
- package/dist/smoothly/p-21341e18.entry.js.map +0 -1
- package/dist/smoothly/p-5b28795c.entry.js +0 -2
- package/dist/smoothly/p-5b6351f6.js +0 -2
- package/dist/smoothly/p-5b6351f6.js.map +0 -1
- package/dist/smoothly/p-70280a11.js +0 -2
- package/dist/smoothly/p-70280a11.js.map +0 -1
- package/dist/smoothly/p-b49664d8.entry.js +0 -2
- package/dist/smoothly/p-b49664d8.entry.js.map +0 -1
- package/dist/smoothly/p-b82efb2e.entry.js +0 -2
- package/dist/smoothly/p-b82efb2e.entry.js.map +0 -1
- package/dist/smoothly/p-c88ae468.js +0 -3
- package/dist/smoothly/p-c88ae468.js.map +0 -1
- package/dist/types/components/App.d.ts +0 -5
- package/dist/types/components/input-date/index.d.ts +0 -14
- package/dist/types/components/input-date-range/index.d.ts +0 -23
- package/dist/types/components/input-demo/index.d.ts +0 -3
- package/dist/types/components/menu-options/index.d.ts +0 -35
- package/dist/types/components/option/index.d.ts +0 -32
- package/dist/types/components/room/index.d.ts +0 -7
- package/dist/types/components/select/index.d.ts +0 -14
- /package/dist/collection/components/{form → input}/Clearable.js +0 -0
- /package/dist/collection/components/{input-month → input/month}/style.css +0 -0
- /package/dist/collection/{components/form → model}/Data.js +0 -0
- /package/dist/smoothly/{p-d4182274.entry.js.map → p-1efa3261.entry.js.map} +0 -0
- /package/dist/smoothly/{p-e136b93e.entry.js.map → p-4d743f07.entry.js.map} +0 -0
- /package/dist/smoothly/{p-be2ff772.entry.js.map → p-5edb65c6.entry.js.map} +0 -0
- /package/dist/smoothly/{p-c49d2094.entry.js.map → p-663ccbd0.entry.js.map} +0 -0
- /package/dist/smoothly/{p-940af6d3.entry.js.map → p-9992c8c4.entry.js.map} +0 -0
- /package/dist/smoothly/{p-79025273.entry.js.map → p-dbd1afa9.entry.js.map} +0 -0
- /package/dist/smoothly/{p-712b362e.entry.js.map → p-f96e41aa.entry.js.map} +0 -0
- /package/dist/types/components/{form → input}/Clearable.d.ts +0 -0
- /package/dist/types/{components/form → model}/Data.d.ts +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as e,g as o,c as s,H as n}from"./p-d0b8061e.js";import{T as i,D as l,M as r,a}from"./p-b9cb0514.js";import"./p-bd478a53.js";import{r as c,N as h}from"./p-c833c402.js";import{D as u,L as d,g as m,a as y,b as f,c as p,C as b,d as g}from"./p-2a0c2387.js";import{O as v}from"./p-ede93d69.js";function w(){return{Observers:v}}const k="smoothly-accordion-item.sc-smoothly-accordion{border:1px solid rgb(var(--smoothly-dark-color));border-bottom:none}smoothly-accordion-item.sc-smoothly-accordion:first-of-type{border-top-left-radius:4px;border-top-right-radius:4px;margin-top:0.4em}smoothly-accordion-item.sc-smoothly-accordion:last-of-type{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:1px solid rgb(var(--smoothly-dark-color));margin-bottom:0.6em}smoothly-accordion-item[open].sc-smoothly-accordion{border-color:rgb(var(--smoothly-primary-color));border-bottom:1px solid rgb(var(--smoothly-primary-color))}smoothly-accordion-item[open].sc-smoothly-accordion+smoothly-accordion-item.sc-smoothly-accordion{border-top:none}";const S=class{constructor(e){t(this,e);this.items=[];this.value=undefined}valueChanged(t){this.updateItems()}handleOpenClose(t){if(t.detail.open)this.value=t.detail.name;else if(this.value==t.detail.name)this.value=undefined}onAccordionItemDidLoad(t){const e=t.target;this.items.push(e);if(this.value==undefined&&e.open)this.value=e.name;else this.updateItems()}componentDidLoad(){this.updateItems()}updateItems(){let t=false;for(const e of this.items)if(e.open=!t&&e.name==this.value)t=true}async removeItem(t){const e=this.items.indexOf(t);if(e>-1)this.items.splice(e,1)}render(){return[e("slot",null)]}get me(){return o(this)}static get watchers(){return{value:["valueChanged"]}}};S.style=k;const x=".sc-smoothly-accordion-item-h{display:block}[hidden].sc-smoothly-accordion-item-h{display:none}details.sc-smoothly-accordion-item{padding:0}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>span.sc-smoothly-accordion-item{float:right;margin:0.2em;font-size:60%}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item{font-size:120%;list-style-type:none;cursor:pointer;padding:0.4em;color:rgb(var(--smoothly-text-tint))}details.sc-smoothly-accordion-item>fieldset.sc-smoothly-accordion-item{border:none;margin:0;padding:0}[open].sc-smoothly-accordion-item-h>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item::-webkit-details-marker{display:none}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{width:1em;height:auto;margin-bottom:-0.2em;margin-right:0.4em}[open].sc-smoothly-accordion-item-h>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{fill:rgb(var(--smoothly-primary-contrast))}.sc-smoothly-accordion-item-h:not([open])>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{fill:rgb(var(--smoothly-text-tint))}";const C=class{constructor(e){t(this,e);this.smoothlyAccordionItemWillLoad=s(this,"smoothlyAccordionItemWillLoad",7);this.smoothlyOpen=s(this,"smoothlyOpen",7);this.smoothlyClose=s(this,"smoothlyClose",7);this.name=undefined;this.brand=undefined;this.open=undefined}openChanged(t){this.open=t;if(t){this.smoothlyOpen.emit({open:true,name:this.name})}}componentWillLoad(){const t=this.element.getElementsByTagName("summary");if(t.length>0){const e=t=>{if(this.open)this.smoothlyClose.emit({open:this.open,name:this.name});else this.open=true;t.preventDefault()};t[0].addEventListener("click",e);t[0].addEventListener("touch",e)}this.smoothlyAccordionItemWillLoad.emit((t=>{this.parent=t}))}disconnectedCallback(){var t;(t=this.parent)===null||t===void 0?void 0:t.removeItem(this.element)}render(){return e("details",{open:this.open},e("summary",null,this.open?e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e("path",{d:"M256 48C141.6 48 48 141.6 48 256s93.6 208 208 208 208-93.6 208-208S370.4 48 256 48zm-42.7 318.9L106.7 260.3l29.9-29.9 76.8 76.8 162.1-162.1 29.9 29.9-192.1 191.9z"})):e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e("path",{d:"M256 48C141.601 48 48 141.601 48 256s93.601 208 208 208 208-93.601 208-208S370.399 48 256 48zm0 374.399c-91.518 0-166.399-74.882-166.399-166.399S164.482 89.6 256 89.6 422.4 164.482 422.4 256 347.518 422.399 256 422.399z"})),this.name,typeof this.brand=="string"?e("span",{class:this.brand.toLowerCase()},this.brand):Array.isArray(this.brand)?this.brand.map((t=>e("span",{class:t.toLowerCase()},t))):[]),e("fieldset",{disabled:!this.open,name:this.name},e("slot",null)))}get element(){return o(this)}static get watchers(){return{open:["openChanged"]}}};C.style=x;const M='smoothly-app{--margin:-0.5rem;display:block;scrollbar-width:none;margin-left:var(--margin);margin-right:var(--margin);margin-top:var(--margin)}smoothly-app[hidden]{display:none}smoothly-app>smoothly-notifier{background:none}smoothly-app>smoothly-notifier>header{position:sticky;top:0;z-index:5;width:100%;height:5rem;display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 5px 0 rgba(var(--smoothly-dark-shadow));border-bottom:1px solid rgba(var(--smoothly-dark-color));background:rgba(var(--smoothly-color));color:rgba(var(--smoothly-color-contrast))}smoothly-app>smoothly-notifier>header>nav{width:100%;flex-shrink:2;height:100%}smoothly-app>smoothly-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul{display:flex;margin:0}smoothly-app>smoothly-notifier>header>h1{margin-left:1rem;margin-bottom:0.8em;display:flex;height:100%}smoothly-app>smoothly-notifier>header>h1>a{display:inline-block;align-self:center;size:100%;background-position-y:center;text-decoration:none;white-space:nowrap}smoothly-app>smoothly-notifier>header>nav>ul li a{line-height:1.6cm}smoothly-app>smoothly-notifier>header>nav>ul li a{line-height:1.6cm}smoothly-app>smoothly-notifier>header>nav>ul{width:100%}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container{display:flex;align-items:center;height:100%}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container{display:flex;gap:1rem;align-items:center;height:100%;margin-left:auto;margin-right:1rem}smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-end"]{width:fit-content;gap:0.5em;align-self:center;height:fit-content;margin-left:10rem}smoothly-app>smoothly-notifier>header>nav>ul li a{display:flex;height:2.3rem;text-decoration:none;align-items:center;align-self:center}@media screen and (max-width: 900px){smoothly-app>smoothly-notifier>header>nav{width:50dvw;max-width:15rem;top:100%;position:absolute;right:0;height:auto}smoothly-app>smoothly-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul{flex-direction:column;background-color:rgba(var(--smoothly-color))}smoothly-app>smoothly-notifier>header>nav>ul{padding:1.5rem;box-sizing:border-box}smoothly-app>smoothly-notifier>header>nav>ul li{margin-right:0;margin-bottom:1em;width:100%}smoothly-app>smoothly-notifier>header>smoothly-burger{position:absolute;top:0;right:0}smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-start"]{display:none}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container,smoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container{flex-direction:column;margin:0;align-items:start;justify-content:center;gap:1em}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container>*:last-child{margin-bottom:1em}}smoothly-app>smoothly-notifier>header>nav:not(.menu-open){display:none}';const A=class{constructor(e){t(this,e);this.rooms={};this.label="App";this.color=undefined;this.menuOpen=false;this.selected=undefined}selectRoom(t){var e;(e=this.rooms[t])===null||e===void 0?void 0:e.element.setSelected(true)}async selectedChanged(){var t;Object.values(this.rooms).forEach((t=>{var e;return(t===null||t===void 0?void 0:t.element.path)!=((e=this.selected)===null||e===void 0?void 0:e.element.path)&&(t===null||t===void 0?void 0:t.element.setSelected(false))}));const e=await((t=this.selected)===null||t===void 0?void 0:t.element.getContent());if(this.mainElement&&e){this.mainElement.innerHTML="";this.mainElement.appendChild(e)}}burgerVisibilityHandler(t){this.burgerVisibility=t.detail}burgerStatusHandler(t){t.stopPropagation();this.menuOpen=t.detail}async locationChangeHandler(t){var e;(e=this.rooms[t.state.smoothlyPath])===null||e===void 0?void 0:e.element.setSelected(true,{history:true})}roomSelectedHandler(t){this.selected={element:t.target};if(this.burgerVisibility)this.menuOpen=false;if(!t.detail.history){const t=this.selected.element.path.toString();const e=new URL(window.location.pathname==t?window.location.href:window.location.origin);e.pathname=t;window.history.pushState({smoothlyPath:t},"",e.href)}}roomLoadedHandler(t){const e=this.rooms[t.target.path.toString()]={element:t.target};if(e.element.selected){this.selected=e;window.history.replaceState({smoothlyPath:e.element.path},"",window.location.href)}}clickHandler(t){if(this.burgerVisibility)if(t.composedPath().some((t=>t==this.burgerElement||t==this.navElement)));else this.menuOpen=false}render(){return e("smoothly-notifier",null,e("header",{color:this.color},e("h1",null,e("a",{href:""},this.label)),e("slot",{name:"header"}),e("nav",{ref:t=>this.navElement=t,class:{"menu-open":this.menuOpen}},e("ul",null,e("div",{class:"nav-start-container"},e("slot",{name:"nav-start"})),e("slot",null," "),e("div",{class:"nav-end-container"},e("slot",{name:"nav-end"})))),e("smoothly-burger",{ref:t=>this.burgerElement=t,open:this.menuOpen,onNavStatus:t=>this.burgerStatusHandler(t),onVisibleStatus:t=>this.burgerVisibilityHandler(t)})),e("main",{ref:t=>this.mainElement=t}))}static get watchers(){return{selected:["selectedChanged"]}}};A.style=M;const O=class{constructor(e){t(this,e);this.baseUrl=undefined}render(){return e("smoothly-app",{color:"dark",label:"Smoothly Demo",ref:t=>this.app=t},e("smoothly-trigger",{slot:"nav-start",type:"link",name:"logout"},e("smoothly-icon",{toolTip:"Log out",name:"log-out",size:"medium"})),e("smoothly-app-room",{path:"/root",label:"root"},e("smoothly-button",{type:"link",link:"/redirect"},"To redirect"),e("smoothly-button",{type:"link",link:"/redirect"},"To /redirect"),e("smoothly-button",{type:"link",link:new URL("/redirect",window.location.origin).href},'To new URL("redirect")'),e("smoothly-button",{type:"link",link:"redirect/nested"},"To redirect nested")),e("smoothly-app-room",{path:"/links",label:"Links"},e("smoothly-input",{type:"text"},"Default"),e("div",{style:{padding:"1em",maxWidth:"12em"}},e("smoothly-button",{fill:"solid",color:"danger",link:"https://google.com"},"open"),e("smoothly-button",{fill:"solid",color:"danger",link:"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",type:"download"},"download"),e("smoothly-button",{fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),e("smoothly-button",{disabled:true,fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),e("smoothly-button",{type:"link",fill:"clear",color:"danger",onClick:()=>alert("clicked")},"action link"))),e("smoothly-app-room",{path:"/input",label:"Input"},e("smoothly-input-demo",null)),e("smoothly-app-room",{path:"/button",label:"Button"},e("smoothly-button-demo",null)),e("smoothly-app-room",{path:"/dialog",label:"Dialog"},e("smoothly-dialog-demo",null)),e("smoothly-app-room",{path:"/display",label:"Display",icon:"eye-outline"},e("smoothly-display-demo",null)),e("smoothly-app-room",{path:"/table",label:"Table"},e("smoothly-table-demo",null)),e("smoothly-app-room",{path:"/select",label:"Select"},e("smoothly-select-demo",null)),e("smoothly-app-room",{path:"/icon",label:"Icon"},e("smoothly-icon-demo",null)),e("smoothly-app-room",{path:"/old",label:"Old",to:"select"}),e("smoothly-app-room",{path:"/redirect",label:"Redirect"},e("smoothly-button",{type:"link",link:"/input"},"To input"),e("smoothly-button",{type:"link",link:"../button"},"To button"),e("smoothly-button",{type:"link",link:new URL("/hidden",window.location.origin).href},"To hidden"),e("smoothly-button",{type:"link",link:"/redirect"},"To redirect"),e("smoothly-button",{type:"link",link:"nested"},"To redirect nested, relative path")),e("smoothly-app-room",{path:"/hidden"},e("p",null,"hello world!")),e("smoothly-app-room",{path:"/redirect/nested"},"this is a nested room"))}componentDidRender(){var t;(t=this.app)===null||t===void 0?void 0:t.selectRoom("/root")}};var T=/[$_\p{ID_Start}]/u;var N=/[$_\u200C\u200D\p{ID_Continue}]/u;function I(t,e){return(e?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(t)}function R(t,e=false){const o=[];let s=0;while(s<t.length){const n=t[s];const i=function(n){if(!e)throw new TypeError(n);o.push({type:"INVALID_CHAR",index:s,value:t[s++]})};if(n==="*"){o.push({type:"ASTERISK",index:s,value:t[s++]});continue}if(n==="+"||n==="?"){o.push({type:"MODIFIER",index:s,value:t[s++]});continue}if(n==="\\"){o.push({type:"ESCAPED_CHAR",index:s++,value:t[s++]});continue}if(n==="{"){o.push({type:"OPEN",index:s,value:t[s++]});continue}if(n==="}"){o.push({type:"CLOSE",index:s,value:t[s++]});continue}if(n===":"){let e="";let n=s+1;while(n<t.length){const o=t.substr(n,1);if(n===s+1&&T.test(o)||n!==s+1&&N.test(o)){e+=t[n++];continue}break}if(!e){i(`Missing parameter name at ${s}`);continue}o.push({type:"NAME",index:s,value:e});s=n;continue}if(n==="("){let e=1;let n="";let l=s+1;let r=false;if(t[l]==="?"){i(`Pattern cannot start with "?" at ${l}`);continue}while(l<t.length){if(!I(t[l],false)){i(`Invalid character '${t[l]}' at ${l}.`);r=true;break}if(t[l]==="\\"){n+=t[l++]+t[l++];continue}if(t[l]===")"){e--;if(e===0){l++;break}}else if(t[l]==="("){e++;if(t[l+1]!=="?"){i(`Capturing groups are not allowed at ${l}`);r=true;break}}n+=t[l++]}if(r){continue}if(e){i(`Unbalanced pattern at ${s}`);continue}if(!n){i(`Missing pattern at ${s}`);continue}o.push({type:"PATTERN",index:s,value:n});s=l;continue}o.push({type:"CHAR",index:s,value:t[s++]})}o.push({type:"END",index:s,value:""});return o}function L(t,e={}){const o=R(t);const{prefixes:s="./"}=e;const n=`[^${E(e.delimiter===void 0?"/#?":e.delimiter)}]+?`;const i=[];let l=0;let r=0;let a="";let c=new Set;const h=t=>{if(r<o.length&&o[r].type===t)return o[r++].value};const u=()=>{const t=h("MODIFIER");if(t){return t}return h("ASTERISK")};const d=t=>{const e=h(t);if(e!==void 0)return e;const{type:s,index:n}=o[r];throw new TypeError(`Unexpected ${s} at ${n}, expected ${t}`)};const m=()=>{let t="";let e;while(e=h("CHAR")||h("ESCAPED_CHAR")){t+=e}return t};const y=t=>t;const f=e.encodePart||y;while(r<o.length){const t=h("CHAR");const e=h("NAME");let o=h("PATTERN");if(!e&&!o&&h("ASTERISK")){o=".*"}if(e||o){let r=t||"";if(s.indexOf(r)===-1){a+=r;r=""}if(a){i.push(f(a));a=""}const h=e||l++;if(c.has(h)){throw new TypeError(`Duplicate name '${h}'.`)}c.add(h);i.push({name:h,prefix:f(r),suffix:"",pattern:o||n,modifier:u()||""});continue}const r=t||h("ESCAPED_CHAR");if(r){a+=r;continue}const y=h("OPEN");if(y){const t=m();const e=h("NAME")||"";let o=h("PATTERN")||"";if(!e&&!o&&h("ASTERISK")){o=".*"}const s=m();d("CLOSE");const r=u()||"";if(!e&&!o&&!r){a+=t;continue}if(!e&&!o&&!t){continue}if(a){i.push(f(a));a=""}i.push({name:e||(o?l++:""),pattern:e&&!o?n:o,prefix:f(t),suffix:f(s),modifier:r});continue}if(a){i.push(f(a));a=""}d("END")}return i}function E(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function D(t){return t&&t.ignoreCase?"ui":"u"}function P(t,e){if(!e)return t;const o=/\((?:\?<(.*?)>)?(?!\?)/g;let s=0;let n=o.exec(t.source);while(n){e.push({name:n[1]||s++,prefix:"",suffix:"",modifier:"",pattern:""});n=o.exec(t.source)}return t}function B(t,e,o){const s=t.map((t=>K(t,e,o).source));return new RegExp(`(?:${s.join("|")})`,D(o))}function G(t,e,o){return j(L(t,o),e,o)}function j(t,e,o={}){const{strict:s=false,start:n=true,end:i=true,encode:l=(t=>t)}=o;const r=`[${E(o.endsWith===void 0?"":o.endsWith)}]|$`;const a=`[${E(o.delimiter===void 0?"/#?":o.delimiter)}]`;let c=n?"^":"";for(const o of t){if(typeof o==="string"){c+=E(l(o))}else{const t=E(l(o.prefix));const s=E(l(o.suffix));if(o.pattern){if(e)e.push(o);if(t||s){if(o.modifier==="+"||o.modifier==="*"){const e=o.modifier==="*"?"?":"";c+=`(?:${t}((?:${o.pattern})(?:${s}${t}(?:${o.pattern}))*)${s})${e}`}else{c+=`(?:${t}(${o.pattern})${s})${o.modifier}`}}else{if(o.modifier==="+"||o.modifier==="*"){c+=`((?:${o.pattern})${o.modifier})`}else{c+=`(${o.pattern})${o.modifier}`}}}else{c+=`(?:${t}${s})${o.modifier}`}}}if(i){if(!s)c+=`${a}?`;c+=!o.endsWith?"$":`(?=${r})`}else{const e=t[t.length-1];const o=typeof e==="string"?a.indexOf(e[e.length-1])>-1:e===void 0;if(!s){c+=`(?:${a}(?=${r}))?`}if(!o){c+=`(?=${a}|${r})`}}return new RegExp(c,D(o))}function K(t,e,o){if(t instanceof RegExp)return P(t,e);if(Array.isArray(t))return B(t,e,o);return G(t,e,o)}var U={delimiter:"",prefixes:"",sensitive:true,strict:true};var _={delimiter:".",prefixes:"",sensitive:true,strict:true};var H={delimiter:"/",prefixes:"/",sensitive:true,strict:true};function F(t,e){if(!t.length){return false}if(t[0]==="/"){return true}if(!e){return false}if(t.length<2){return false}if((t[0]=="\\"||t[0]=="{")&&t[1]=="/"){return true}return false}function z(t,e){if(t.startsWith(e)){return t.substring(e.length,t.length)}return t}function W(t,e){if(t.endsWith(e)){return t.substr(0,t.length-e.length)}return t}function Y(t){if(!t||t.length<2){return false}if(t[0]==="["){return true}if((t[0]==="\\"||t[0]==="{")&&t[1]==="["){return true}return false}var Z=["ftp","file","http","https","ws","wss"];function V(t){if(!t){return true}for(const e of Z){if(t.test(e)){return true}}return false}function $(t,e){t=z(t,"#");if(e||t===""){return t}const o=new URL("https://example.com");o.hash=t;return o.hash?o.hash.substring(1,o.hash.length):""}function X(t,e){t=z(t,"?");if(e||t===""){return t}const o=new URL("https://example.com");o.search=t;return o.search?o.search.substring(1,o.search.length):""}function J(t,e){if(e||t===""){return t}if(Y(t)){return at(t)}else{return rt(t)}}function Q(t,e){if(e||t===""){return t}const o=new URL("https://example.com");o.password=t;return o.password}function q(t,e){if(e||t===""){return t}const o=new URL("https://example.com");o.username=t;return o.username}function tt(t,e,o){if(o||t===""){return t}if(e&&!Z.includes(e)){const o=new URL(`${e}:${t}`);return o.pathname}const s=t[0]=="/";t=new URL(!s?"/-"+t:t,"https://example.com").pathname;if(!s){t=t.substring(2,t.length)}return t}function et(t,e,o){if(st(e)===t){t=""}if(o||t===""){return t}return ct(t)}function ot(t,e){t=W(t,":");if(e||t===""){return t}return nt(t)}function st(t){switch(t){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function nt(t){if(t===""){return t}if(/^[-+.A-Za-z0-9]*$/.test(t))return t.toLowerCase();throw new TypeError(`Invalid protocol '${t}'.`)}function it(t){if(t===""){return t}const e=new URL("https://example.com");e.username=t;return e.username}function lt(t){if(t===""){return t}const e=new URL("https://example.com");e.password=t;return e.password}function rt(t){if(t===""){return t}if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(t)){throw new TypeError(`Invalid hostname '${t}'`)}const e=new URL("https://example.com");e.hostname=t;return e.hostname}function at(t){if(t===""){return t}if(/[^0-9a-fA-F[\]:]/g.test(t)){throw new TypeError(`Invalid IPv6 hostname '${t}'`)}return t.toLowerCase()}function ct(t){if(t===""){return t}if(/^[0-9]*$/.test(t)&&parseInt(t)<=65535){return t}throw new TypeError(`Invalid port '${t}'.`)}function ht(t){if(t===""){return t}const e=new URL("https://example.com");e.pathname=t[0]!=="/"?"/-"+t:t;if(t[0]!=="/"){return e.pathname.substring(2,e.pathname.length)}return e.pathname}function ut(t){if(t===""){return t}const e=new URL(`data:${t}`);return e.pathname}function dt(t){if(t===""){return t}const e=new URL("https://example.com");e.search=t;return e.search.substring(1,e.search.length)}function mt(t){if(t===""){return t}const e=new URL("https://example.com");e.hash=t;return e.hash.substring(1,e.hash.length)}var yt=class{constructor(t){this.tokenList=[];this.internalResult={};this.tokenIndex=0;this.tokenIncrement=1;this.componentStart=0;this.state=0;this.groupDepth=0;this.hostnameIPv6BracketDepth=0;this.shouldTreatAsStandardURL=false;this.input=t}get result(){return this.internalResult}parse(){this.tokenList=R(this.input,true);for(;this.tokenIndex<this.tokenList.length;this.tokenIndex+=this.tokenIncrement){this.tokenIncrement=1;if(this.tokenList[this.tokenIndex].type==="END"){if(this.state===0){this.rewind();if(this.isHashPrefix()){this.changeState(9,1)}else if(this.isSearchPrefix()){this.changeState(8,1);this.internalResult.hash=""}else{this.changeState(7,0);this.internalResult.search="";this.internalResult.hash=""}continue}else if(this.state===2){this.rewindAndSetState(5);continue}this.changeState(10,0);break}if(this.groupDepth>0){if(this.isGroupClose()){this.groupDepth-=1}else{continue}}if(this.isGroupOpen()){this.groupDepth+=1;continue}switch(this.state){case 0:if(this.isProtocolSuffix()){this.internalResult.username="";this.internalResult.password="";this.internalResult.hostname="";this.internalResult.port="";this.internalResult.pathname="";this.internalResult.search="";this.internalResult.hash="";this.rewindAndSetState(1)}break;case 1:if(this.isProtocolSuffix()){this.computeShouldTreatAsStandardURL();let t=7;let e=1;if(this.shouldTreatAsStandardURL){this.internalResult.pathname="/"}if(this.nextIsAuthoritySlashes()){t=2;e=3}else if(this.shouldTreatAsStandardURL){t=2}this.changeState(t,e)}break;case 2:if(this.isIdentityTerminator()){this.rewindAndSetState(3)}else if(this.isPathnameStart()||this.isSearchPrefix()||this.isHashPrefix()){this.rewindAndSetState(5)}break;case 3:if(this.isPasswordPrefix()){this.changeState(4,1)}else if(this.isIdentityTerminator()){this.changeState(5,1)}break;case 4:if(this.isIdentityTerminator()){this.changeState(5,1)}break;case 5:if(this.isIPv6Open()){this.hostnameIPv6BracketDepth+=1}else if(this.isIPv6Close()){this.hostnameIPv6BracketDepth-=1}if(this.isPortPrefix()&&!this.hostnameIPv6BracketDepth){this.changeState(6,1)}else if(this.isPathnameStart()){this.changeState(7,0)}else if(this.isSearchPrefix()){this.changeState(8,1)}else if(this.isHashPrefix()){this.changeState(9,1)}break;case 6:if(this.isPathnameStart()){this.changeState(7,0)}else if(this.isSearchPrefix()){this.changeState(8,1)}else if(this.isHashPrefix()){this.changeState(9,1)}break;case 7:if(this.isSearchPrefix()){this.changeState(8,1)}else if(this.isHashPrefix()){this.changeState(9,1)}break;case 8:if(this.isHashPrefix()){this.changeState(9,1)}break}}}changeState(t,e){switch(this.state){case 0:break;case 1:this.internalResult.protocol=this.makeComponentString();break;case 2:break;case 3:this.internalResult.username=this.makeComponentString();break;case 4:this.internalResult.password=this.makeComponentString();break;case 5:this.internalResult.hostname=this.makeComponentString();break;case 6:this.internalResult.port=this.makeComponentString();break;case 7:this.internalResult.pathname=this.makeComponentString();break;case 8:this.internalResult.search=this.makeComponentString();break;case 9:this.internalResult.hash=this.makeComponentString();break}this.changeStateWithoutSettingComponent(t,e)}changeStateWithoutSettingComponent(t,e){this.state=t;this.componentStart=this.tokenIndex+e;this.tokenIndex+=e;this.tokenIncrement=0}rewind(){this.tokenIndex=this.componentStart;this.tokenIncrement=0}rewindAndSetState(t){this.rewind();this.state=t}safeToken(t){if(t<0){t=this.tokenList.length-t}if(t<this.tokenList.length){return this.tokenList[t]}return this.tokenList[this.tokenList.length-1]}isNonSpecialPatternChar(t,e){const o=this.safeToken(t);return o.value===e&&(o.type==="CHAR"||o.type==="ESCAPED_CHAR"||o.type==="INVALID_CHAR")}isProtocolSuffix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}nextIsAuthoritySlashes(){return this.isNonSpecialPatternChar(this.tokenIndex+1,"/")&&this.isNonSpecialPatternChar(this.tokenIndex+2,"/")}isIdentityTerminator(){return this.isNonSpecialPatternChar(this.tokenIndex,"@")}isPasswordPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}isPortPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}isPathnameStart(){return this.isNonSpecialPatternChar(this.tokenIndex,"/")}isSearchPrefix(){if(this.isNonSpecialPatternChar(this.tokenIndex,"?")){return true}if(this.tokenList[this.tokenIndex].value!=="?"){return false}const t=this.safeToken(this.tokenIndex-1);return t.type!=="NAME"&&t.type!=="PATTERN"&&t.type!=="CLOSE"&&t.type!=="ASTERISK"}isHashPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,"#")}isGroupOpen(){return this.tokenList[this.tokenIndex].type=="OPEN"}isGroupClose(){return this.tokenList[this.tokenIndex].type=="CLOSE"}isIPv6Open(){return this.isNonSpecialPatternChar(this.tokenIndex,"[")}isIPv6Close(){return this.isNonSpecialPatternChar(this.tokenIndex,"]")}makeComponentString(){const t=this.tokenList[this.tokenIndex];const e=this.safeToken(this.componentStart).index;return this.input.substring(e,t.index)}computeShouldTreatAsStandardURL(){const t={};Object.assign(t,U);t.encodePart=nt;const e=K(this.makeComponentString(),void 0,t);this.shouldTreatAsStandardURL=V(e)}};var ft=["protocol","username","password","hostname","port","pathname","search","hash"];var pt="*";function bt(t,e){if(typeof t!=="string"){throw new TypeError(`parameter 1 is not of type 'string'.`)}const o=new URL(t,e);return{protocol:o.protocol.substring(0,o.protocol.length-1),username:o.username,password:o.password,hostname:o.hostname,port:o.port,pathname:o.pathname,search:o.search!=""?o.search.substring(1,o.search.length):void 0,hash:o.hash!=""?o.hash.substring(1,o.hash.length):void 0}}function gt(t,e){if(!e){return t}return wt(t)}function vt(t,e,o){let s;if(typeof e.baseURL==="string"){try{s=new URL(e.baseURL);t.protocol=gt(s.protocol.substring(0,s.protocol.length-1),o);t.username=gt(s.username,o);t.password=gt(s.password,o);t.hostname=gt(s.hostname,o);t.port=gt(s.port,o);t.pathname=gt(s.pathname,o);t.search=gt(s.search.substring(1,s.search.length),o);t.hash=gt(s.hash.substring(1,s.hash.length),o)}catch{throw new TypeError(`invalid baseURL '${e.baseURL}'.`)}}if(typeof e.protocol==="string"){t.protocol=ot(e.protocol,o)}if(typeof e.username==="string"){t.username=q(e.username,o)}if(typeof e.password==="string"){t.password=Q(e.password,o)}if(typeof e.hostname==="string"){t.hostname=J(e.hostname,o)}if(typeof e.port==="string"){t.port=et(e.port,t.protocol,o)}if(typeof e.pathname==="string"){t.pathname=e.pathname;if(s&&!F(t.pathname,o)){const e=s.pathname.lastIndexOf("/");if(e>=0){t.pathname=gt(s.pathname.substring(0,e+1),o)+t.pathname}}t.pathname=tt(t.pathname,t.protocol,o)}if(typeof e.search==="string"){t.search=X(e.search,o)}if(typeof e.hash==="string"){t.hash=$(e.hash,o)}return t}function wt(t){return t.replace(/([+*?:{}()\\])/g,"\\$1")}function kt(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function St(t,e){const o=".*";const s=`[^${kt(e.delimiter===void 0?"/#?":e.delimiter)}]+?`;const n=/[$_\u200C\u200D\p{ID_Continue}]/u;let i="";for(let l=0;l<t.length;++l){const r=t[l];const a=l>0?t[l-1]:null;const c=l<t.length-1?t[l+1]:null;if(typeof r==="string"){i+=wt(r);continue}if(r.pattern===""){if(r.modifier===""){i+=wt(r.prefix);continue}i+=`{${wt(r.prefix)}}${r.modifier}`;continue}const h=typeof r.name!=="number";const u=e.prefixes!==void 0?e.prefixes:"./";let d=r.suffix!==""||r.prefix!==""&&(r.prefix.length!==1||!u.includes(r.prefix));if(!d&&h&&r.pattern===s&&r.modifier===""&&c&&!c.prefix&&!c.suffix){if(typeof c==="string"){const t=c.length>0?c[0]:"";d=n.test(t)}else{d=typeof c.name==="number"}}if(!d&&r.prefix===""&&a&&typeof a==="string"&&a.length>0){const t=a[a.length-1];d=u.includes(t)}if(d){i+="{"}i+=wt(r.prefix);if(h){i+=`:${r.name}`}if(r.pattern===o){if(!h&&(!a||typeof a==="string"||a.modifier||d||r.prefix!=="")){i+="*"}else{i+=`(${o})`}}else if(r.pattern===s){if(!h){i+=`(${s})`}}else{i+=`(${r.pattern})`}if(r.pattern===s&&h&&r.suffix!==""){if(n.test(r.suffix[0])){i+="\\"}}i+=wt(r.suffix);if(d){i+="}"}i+=r.modifier}return i}var xt=class{constructor(t={},e,o){this.regexp={};this.keys={};this.component_pattern={};try{let s=void 0;if(typeof e==="string"){s=e}else{o=e}if(typeof t==="string"){const e=new yt(t);e.parse();t=e.result;if(s===void 0&&typeof t.protocol!=="string"){throw new TypeError(`A base URL must be provided for a relative constructor string.`)}t.baseURL=s}else{if(!t||typeof t!=="object"){throw new TypeError(`parameter 1 is not of type 'string' and cannot convert to dictionary.`)}if(s){throw new TypeError(`parameter 1 is not of type 'string'.`)}}if(typeof o==="undefined"){o={ignoreCase:false}}const n={ignoreCase:o.ignoreCase===true};const i={pathname:pt,protocol:pt,username:pt,password:pt,hostname:pt,port:pt,search:pt,hash:pt};this.pattern=vt(i,t,true);if(st(this.pattern.protocol)===this.pattern.port){this.pattern.port=""}let l;for(l of ft){if(!(l in this.pattern))continue;const t={};const e=this.pattern[l];this.keys[l]=[];switch(l){case"protocol":Object.assign(t,U);t.encodePart=nt;break;case"username":Object.assign(t,U);t.encodePart=it;break;case"password":Object.assign(t,U);t.encodePart=lt;break;case"hostname":Object.assign(t,_);if(Y(e)){t.encodePart=at}else{t.encodePart=rt}break;case"port":Object.assign(t,U);t.encodePart=ct;break;case"pathname":if(V(this.regexp.protocol)){Object.assign(t,H,n);t.encodePart=ht}else{Object.assign(t,U,n);t.encodePart=ut}break;case"search":Object.assign(t,U,n);t.encodePart=dt;break;case"hash":Object.assign(t,U,n);t.encodePart=mt;break}try{const o=L(e,t);this.regexp[l]=j(o,this.keys[l],t);this.component_pattern[l]=St(o,t)}catch{throw new TypeError(`invalid ${l} pattern '${this.pattern[l]}'.`)}}}catch(t){throw new TypeError(`Failed to construct 'URLPattern': ${t.message}`)}}test(t={},e){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!=="string"&&e){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof t==="undefined"){return false}try{if(typeof t==="object"){o=vt(o,t,false)}else{o=vt(o,bt(t,e),false)}}catch(t){return false}let s;for(s of ft){if(!this.regexp[s].exec(o[s])){return false}}return true}exec(t={},e){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!=="string"&&e){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof t==="undefined"){return}try{if(typeof t==="object"){o=vt(o,t,false)}else{o=vt(o,bt(t,e),false)}}catch(t){return null}let s={};if(e){s.inputs=[t,e]}else{s.inputs=[t]}let n;for(n of ft){let t=this.regexp[n].exec(o[n]);if(!t){return null}let e={};for(let[o,s]of this.keys[n].entries()){if(typeof s.name==="string"||typeof s.name==="number"){let n=t[o+1];e[s.name]=n}}s[n]={input:o[n]||"",groups:e}}return s}get protocol(){return this.component_pattern.protocol}get username(){return this.component_pattern.username}get password(){return this.component_pattern.password}get hostname(){return this.component_pattern.hostname}get port(){return this.component_pattern.port}get pathname(){return this.component_pattern.pathname}get search(){return this.component_pattern.search}get hash(){return this.component_pattern.hash}};if(!globalThis.URLPattern){globalThis.URLPattern=xt}const Ct=".sc-smoothly-app-room-h{display:flex;justify-content:center;text-align:center;cursor:pointer}:not([label].sc-smoothly-app-room-h,[icon]).sc-smoothly-app-room-h,[disabled].sc-smoothly-app-room-h{display:none}.sc-smoothly-app-room-h>main.sc-smoothly-app-room{display:none}.sc-smoothly-app-room-h>li.sc-smoothly-app-room{height:100%;list-style:none}.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{padding:0 1.5em;height:100%}[selected].sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{display:flex;color:rgb(var(--smoothly-color-contrast));background:rgb(var(--smoothly-color-shade))}.sc-smoothly-app-room-h:hover>li.sc-smoothly-app-room>a.sc-smoothly-app-room{color:rgb(var(--smoothly-color-contrast));background-color:rgb(var(--smoothly-color-tint));transition:0.2s}.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room>smoothly-icon.sc-smoothly-app-room{align-self:inherit;margin-bottom:1em}@media screen and (max-width: 900px){.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{padding:0}.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{margin-left:-1.5rem;margin-right:-1.5rem;padding-left:1.5rem;padding-right:1.5rem}}";const Mt=class{constructor(e){t(this,e);this.smoothlyRoomSelected=s(this,"smoothlyRoomSelected",7);this.smoothlyRoomLoaded=s(this,"smoothlyRoomLoaded",7);this.label=undefined;this.icon=undefined;this.disabled=undefined;this.path="";this.to=undefined;this.selected=undefined}componentWillLoad(){this.selected=(typeof this.path=="string"?new URLPattern({pathname:this.path}):this.path).test(window.location);this.smoothlyRoomLoaded.emit({selected:this.selected})}async getContent(){return this.contentElement}async setSelected(t,e){this.selected=t;if(t)this.smoothlyRoomSelected.emit({history:!!(e===null||e===void 0?void 0:e.history)})}clickHandler(t){if(!t.metaKey&&!t.ctrlKey&&t.which!=2&&t.button!=1){t.preventDefault();this.setSelected(true)}}render(){return e(n,null,e("li",null,e("a",{href:typeof this.path=="string"?this.path:this.path.pathname,onClick:t=>this.clickHandler(t)},this.icon?e("smoothly-icon",{name:this.icon,toolTip:this.label}):this.label)),e("main",{ref:t=>this.contentElement=t},e("slot",null)))}};Mt.style=Ct;const At=".sc-smoothly-back-to-top-h{background-color:rgba(var(--smoothly-default-color), 1);opacity:var(--opacity);pointer-events:var(--pointer-events);transition:opacity 400ms;z-index:3;border-radius:50%;box-shadow:var(--smoothly-shadow);height:3rem;width:3rem;position:fixed;bottom:var(--bottom);right:var(--right);outline:none;cursor:pointer;display:flex;justify-content:center;align-items:center}";const Ot=class{constructor(e){t(this,e);this.opacity="0.5";this.bottom="1rem";this.right="1rem";this.visible=undefined}componentWillLoad(){window.addEventListener("scroll",(()=>{this.visible=document.body.scrollTop>20||document.documentElement.scrollTop>20}))}render(){const t={"--opacity":this.visible?this.opacity:"0","--pointer-events":this.visible?"auto":"none","--bottom":this.bottom,"--right":this.right};return e(n,{style:t,onClick:()=>window.scrollTo({top:0,left:0,behavior:"smooth"})},e("smoothly-icon",{name:"caret-up-outline"}))}};Ot.style=At;const Tt="[visible].sc-smoothly-burger-h{display:flex;justify-content:center;align-items:center;height:100%}[visible].sc-smoothly-burger-h .burger.sc-smoothly-burger smoothly-icon.sc-smoothly-burger{font-size:1.7em;cursor:pointer;margin-right:1em}.sc-smoothly-burger-h:not([visible]){display:none}.sc-smoothly-burger-h:not([open]) smoothly-icon.sc-smoothly-burger{transform:rotate(0deg);transition:transform 100ms ease-in-out}[open].sc-smoothly-burger-h smoothly-icon.sc-smoothly-burger{transform:rotate(-90deg);transition:transform 100ms ease-in-out}";const Nt=class{constructor(e){t(this,e);this.navStatus=s(this,"navStatus",7);this.visibleStatus=s(this,"visibleStatus",7);this.visible=undefined;this.open=false;this.mediaQuery="(max-width: 900px)";this.history=undefined}componentWillLoad(){this.history=window.matchMedia(this.mediaQuery).matches;if(!window.matchMedia(this.mediaQuery).matches)this.visible=false;else this.visible=true;this.navStatus.emit(!this.visible);this.visibleStatus.emit(this.visible)}openChanged(){this.navStatus.emit(this.open)}clickHandler(t){if(this.visible)this.open=!this.open}resizeHandler(){const t=window.matchMedia(this.mediaQuery).matches;if(t!=this.history){if(t){this.visible=true;this.open=false}else{this.visible=false;this.open=false}this.visibleStatus.emit(this.visible);this.navStatus.emit(!this.visible)}this.history=t}render(){return e(n,null,e("span",{class:"burger"},e("smoothly-icon",{name:"menu"})))}get element(){return o(this)}static get watchers(){return{open:["openChanged"]}}};Nt.style=Tt;const It=({disabled:t,type:o,link:s})=>t&&(s||o=="link")?e("slot",null):o=="link"?e("a",{href:s,onClick:!s||!Lt(s)?undefined:t=>(t.preventDefault(),c(Rt(s)))},e("slot",{name:"start"}),e("slot",null),e("slot",{name:"end"})):o=="download"?e("a",{href:s,target:"_blank",download:true},e("slot",{name:"start"}),e("slot",null),e("slot",{name:"end"})):e("button",{disabled:t},e("slot",{name:"start"}),e("slot",null),e("slot",{name:"end"}));function Rt(t){let e;if(t.startsWith(window.location.origin))e=new URL(t).pathname;else if(t.match(/^\//))e=new URL(t,window.location.origin).pathname;else e=new URL(`${window.location.pathname.replace(/\/+$/,"")}/${t}`,window.location.origin).pathname;return e}function Lt(t){return new URL(t,window.location.origin).origin==window.location.origin}const Et="[color=default].sc-smoothly-button{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-button{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-button{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-button{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-button{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-color);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-button{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-button{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-button{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-button{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-button{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-button-h{display:inline-block;margin:1em;box-sizing:border-box;border-radius:0.5rem;border:solid 1px;transition:background 150ms ease-in-out;cursor:pointer}[type=link].sc-smoothly-button-h{display:inline;border:none}[disabled].sc-smoothly-button-h{opacity:0.5;pointer-events:none}a.sc-smoothly-button,button.sc-smoothly-button{font-size:110%;font-weight:400;border:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem}button.sc-smoothly-button{justify-content:center;height:100%;width:100%;border-radius:0.5rem;min-width:8em;align-items:center}.sc-smoothly-button-h:not([size=icon])>button.sc-smoothly-button{padding:0.8em}[size=icon].sc-smoothly-button-h>button.sc-smoothly-button{padding:0.5em}[shape=rounded].sc-smoothly-button-h>button.sc-smoothly-button,[shape=rounded].sc-smoothly-button-h{border-radius:2rem}[type=button].sc-smoothly-button-h>a.sc-smoothly-button{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-button-h>button.sc-smoothly-button{font-size:100%}[size=large].sc-smoothly-button-h>button.sc-smoothly-button{font-size:130%}.sc-smoothly-button-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-button-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center;border:none}[size=flexible].sc-smoothly-button-h>button.sc-smoothly-button{min-width:unset;padding:0;margin:0 !important}[expand].sc-smoothly-button-h{width:100%}[expand=full].sc-smoothly-button-h{border-left:none;border-right:none;border-radius:0}[shape=rounded].sc-smoothly-button-h>button.sc-smoothly-button,[shape=rounded].sc-smoothly-button-h{border-radius:2rem}.sc-smoothly-button-h:not([fill=clear]):hover,.sc-smoothly-button-h:not([fill=clear]):focus,.sc-smoothly-button-h:not([fill=clear]):active{border-color:rgb(var(--smoothly-color-tint)) !important;background:rgb(var(--smoothly-color-tint)) !important}.sc-smoothly-button-h:not([fill=clear]):hover>button.sc-smoothly-button,.sc-smoothly-button-h:not([fill=clear]):focus>button.sc-smoothly-button,.sc-smoothly-button-h:not([fill=clear]):active>button.sc-smoothly-button,.sc-smoothly-button-h:not([fill=clear]):hover .sc-smoothly-button-s>smoothly-icon,.sc-smoothly-button-h:not([fill=clear]):focus .sc-smoothly-button-s>smoothly-icon,.sc-smoothly-button-h:not([fill=clear]):active .sc-smoothly-button-s>smoothly-icon{color:rgb(var(--smoothly-color-contrast)) !important;stroke:rgb(var(--smoothly-color-contrast)) !important;fill:rgb(var(--smoothly-color-contrast)) !important}[fill=clear].sc-smoothly-button-h:hover>button.sc-smoothly-button,[fill=clear].sc-smoothly-button-h:focus>button.sc-smoothly-button,[fill=clear].sc-smoothly-button-h:active>button.sc-smoothly-button{color:rgb(var(--smoothly-color-tint)) !important;stroke:rgb(var(--smoothly-color-tint)) !important;fill:rgb(var(--smoothly-color-tint)) !important}[disabled].sc-smoothly-button-h{opacity:0.5;pointer-events:none}.sc-smoothly-button-h:not([fill]),[fill=default].sc-smoothly-button-h{background:rgb(var(--smoothly-color));border-color:transparent}[fill=solid].sc-smoothly-button-h{background:rgb(var(--smoothly-color));border-color:rgb(var(--smoothly-color))}[fill=solid].sc-smoothly-button-h>button.sc-smoothly-button,[fill=default].sc-smoothly-button-h>button.sc-smoothly-button{stroke:rgb(var(--smoothly-color-contrast));fill:rgb(var(--smoothly-color-contrast));color:rgb(var(--smoothly-color-contrast))}[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button,[fill=clear].sc-smoothly-button-h>button.sc-smoothly-button{stroke:rgb(var(--smoothly-color));fill:rgb(var(--smoothly-color));color:rgb(var(--smoothly-color))}[fill=outline].sc-smoothly-button-h{background:transparent;border-color:rgb(var(--smoothly-color))}[fill=clear].sc-smoothly-button-h{background:transparent;border-color:transparent}.sc-smoothly-button-s>smoothly-icon[slot=start],.sc-smoothly-button-s>smoothly-icon[slot=end]{font-size:0.65em}[hidden].sc-smoothly-button-h{display:none}";const Dt=class{constructor(e){t(this,e);this.color=undefined;this.expand=undefined;this.fill=undefined;this.disabled=false;this.type="button";this.size=undefined;this.shape=undefined;this.link=undefined}render(){return e(It,{disabled:this.disabled,type:this.type,link:this.link},e("slot",null))}};Dt.style=Et;const Pt="smoothly-button-demo{display:block;margin:1rem}smoothly-button-demo>section>div{display:flex;align-items:center}";const Bt=class{constructor(e){t(this,e)}render(){return[e("h2",null,"Theme"),e("smoothly-theme-colors",null),e("h2",null,"Buttons"),e("section",null,e("h4",null,"Toggle button"),e("smoothly-toggle",null,e("smoothly-icon",{name:"card",fill:"solid",slot:"icon-slot"})),e("smoothly-toggle",null,e("smoothly-icon",{name:"briefcase",slot:"icon-slot"})),e("smoothly-toggle",null,e("smoothly-icon",{name:"airplane",slot:"icon-slot"})),e("h4",null,"Toggle switches"),e("smoothly-toggle-switch",{checkmark:false,color:"primary",disabled:false,size:"small",onSmoothlyToggleSwitchChange:t=>{console.log("toggleSwitch ",t.detail)}}),e("smoothly-toggle-switch",{disabled:false}),e("smoothly-toggle-switch",{disabled:false,size:"large"}),e("h4",null,"Links with icons"),e("smoothly-button",{type:"link"},e("smoothly-icon",{name:"checkmark-circle",slot:"start"}),"type link"),e("smoothly-button",{type:"button",color:"warning",fill:"default"},e("smoothly-icon",{name:"call",slot:"start"}),e("a",{href:"https://google.com"},"link")),e("smoothly-button",{link:"https://google.com",type:"link"},e("smoothly-icon",{name:"arrow-forward",slot:"end"}),"link + type link"),e("h4",null,"Size and Color test"),e("smoothly-button",{color:"primary",fill:"solid",size:"small",shape:"rounded"},"Color Primary + Small"),e("smoothly-button",{color:"secondary",fill:"solid",shape:"rounded"},"Color Secondary + Default"),e("smoothly-button",{color:"warning",fill:"solid",size:"large"},"Color Warning + Large"),e("smoothly-button",{color:"danger",fill:"solid",size:"small",shape:"rounded"},"Color Danger + Small"),e("smoothly-button",{color:"success",fill:"solid",size:"small",shape:"rounded"},"Color Success + Small"),e("smoothly-button",{color:"tertiary",fill:"solid",size:"small",shape:"rounded"},"Color Tertiary + Small"),e("smoothly-button",{color:"dark",fill:"solid",size:"small",shape:"rounded"},"Color Dark + Small"),e("smoothly-button",{color:"medium",fill:"solid",size:"small",shape:"rounded"},"Color Medium + Small"),e("smoothly-button",{color:"light",fill:"solid",size:"small",shape:"rounded"},"Color Light + Small"),e("h4",null,"Expand examples"),e("smoothly-button",{color:"secondary",fill:"solid",expand:"full"},"Color Secondary + Default"),e("smoothly-button",{color:"warning",fill:"solid",expand:"block"},"Color Warning + Large"),e("h4",null,"Fill examples"),e("div",null,e("smoothly-button",{shape:"rounded",color:"primary",fill:"solid"},e("smoothly-icon",{name:"checkmark-circle",slot:"start"}),"Fill Solid"),e("smoothly-button",{shape:"rounded",color:"secondary",fill:"outline"},e("smoothly-icon",{name:"checkmark-circle",slot:"start",fill:"clear"}),"Fill Outline"),e("smoothly-button",{shape:"rounded",color:"tertiary",fill:"clear"},e("smoothly-icon",{name:"checkmark-circle",slot:"start",fill:"clear"}),"Fill Clear"),e("smoothly-button",{size:"icon",shape:"rounded",color:"success",fill:"solid"},e("smoothly-icon",{name:"basketball",fill:"solid"}))),e("h4",null,'Buttons with Icon in "start"'),e("div",null,e("smoothly-button",{shape:"rounded",fill:"solid",color:"warning"},e("smoothly-icon",{name:"checkmark-circle",slot:"start"}),"Check"),e("smoothly-button",{shape:"rounded",fill:"solid",color:"secondary"},e("smoothly-icon",{name:"basketball",slot:"start"}),"Check"),e("smoothly-button",{shape:"rounded",fill:"solid",color:"success"},e("smoothly-icon",{name:"call",slot:"start"}),"Check"),e("smoothly-button",{size:"icon",fill:"solid",shape:"rounded",color:"success"},e("smoothly-icon",{name:"call"}))),e("h4",null,'Buttons with Icon in "end"'),e("smoothly-button",{fill:"solid",color:"light"},"Go Forward",e("smoothly-icon",{name:"arrow-forward",slot:"end"})),e("h4",null,"Test for icon button"),e("div",null,e("smoothly-button",{size:"icon",fill:"solid",shape:"rounded",color:"success"},e("smoothly-icon",{name:"call"})),e("smoothly-button",{size:"icon",shape:"rounded",color:"warning",fill:"solid"},e("smoothly-icon",{name:"search-outline"})),e("smoothly-button",{size:"icon",shape:"rounded",color:"secondary"},e("smoothly-icon",{name:"checkmark-circle"}))),e("h4",null,"Link examples"),e("div",null,e("smoothly-button",{type:"link"},"type link"),e("smoothly-button",{type:"button",fill:"clear"},e("a",{href:"https://google.com"},"link")),e("smoothly-button",{link:"https://google.com",type:"link"},"link + type link")),e("h4",null,"Disabled buttons"),e("div",null,e("smoothly-button",{disabled:true,fill:"solid",color:"secondary"},"Disabled"),e("smoothly-button",{type:"link",link:"https://google.com",disabled:true},"Disabled link"))),e("smoothly-back-to-top",null)]}};Bt.style=Pt;function Gt(t){const e=new Date(t);e.setDate(1);let o=-((e.getDay()+6)%7)+1;const s=[];for(let e=0;e<6;e++){const n=[];for(let e=0;e<7;e++){const e=new Date(t);e.setUTCDate(o++);n.push(u.create(e))}if(e<5||u.firstOfMonth(n[0])==u.firstOfMonth(t))s.push(n)}return s}function jt(){const t=new globalThis.Date;t.setDate(t.getDate()-t.getDay()+1);const e=[];for(let o=0;o<7;o++){e.push(t.toLocaleString(undefined,{weekday:"short"}));t.setDate(t.getDate()+1)}return e}function Kt(t){const e=new globalThis.Date(t);const o=[];for(let s=0;s<12;s++){e.setMonth(s,28);const n=u.create(e);o.push({date:n,name:e.toLocaleString(undefined,{month:"long"}),selected:n.substr(0,7)==t.substr(0,7)})}return o}function Ut(t){const e=new globalThis.Date(t);const o=(new Date).getFullYear()-10;const s=(new Date).getFullYear()+10;const n=[];for(let i=o;i<=s;i++){e.setFullYear(i);const o=u.create(e);n.push({date:o,name:e.toLocaleString(undefined,{year:"numeric"}),selected:o==t})}return n}const _t=".sc-smoothly-calendar-h{display:block;--other-month-opacity:0.5;margin-bottom:1rem}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{width:calc(100% - 1em);padding:0.5em 0.5em 0 0.5em}.sc-smoothly-calendar-h>table.sc-smoothly-calendar{table-layout:fixed;width:100%}th.sc-smoothly-calendar,td.sc-smoothly-calendar{text-align:center;padding:0.5em;min-width:2em;background-color:rgb(var(--smoothly-default-shade));cursor:pointer;user-select:none}td.currentMonth.sc-smoothly-calendar{color:rgb(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:not(.currentMonth){color:rgba(var(--smoothly-default-contrast), var(--other-month-opacity))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).dateRange,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).dateRange{color:rgba(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:nth-child(6),td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-danger-tint))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth),td.sc-smoothly-calendar:nth-child(7):not(.currentMonth){color:rgba(var(--smoothly-danger-tint), var(--other-month-opacity))}td.sc-smoothly-calendar:not(.selected,.disable).sc-smoothly-calendar:hover{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}td.selected.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}td.sc-smoothly-calendar:not(.selected,.dateRange).sc-smoothly-calendar:not(:hover).today{background:rgb(var(--smoothly-dark-tint));color:rgb(var(--smoothly-dark-contrast))}td.dateRange.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}td.disable.sc-smoothly-calendar{cursor:not-allowed;background-color:rgb(var(--smoothly-default-tint), 0.5);color:rgb(var(--smoothly-default-contrast), 0.5)}";const Ht=class{constructor(e){t(this,e);this.valueChanged=s(this,"valueChanged",7);this.startChanged=s(this,"startChanged",7);this.endChanged=s(this,"endChanged",7);this.dateSet=s(this,"dateSet",7);this.dateRangeSet=s(this,"dateRangeSet",7);this.clickCounter=0;this.month=undefined;this.value=u.now();this.start=undefined;this.end=undefined;this.max=undefined;this.min=undefined;this.doubleInput=undefined;this.firstSelected=undefined}onStart(t){this.startChanged.emit(t)}onEnd(t){this.endChanged.emit(t)}onClick(t){this.valueChanged.emit(this.value=t);this.clickCounter+=1;if(this.doubleInput){if(this.clickCounter%2==1)this.start=this.end=this.frozenDate=t;else{if(this.start&&t>this.start)this.end=t;else this.start=t}}!this.doubleInput&&this.dateSet.emit(this.value);this.doubleInput&&this.clickCounter%2==0&&this.start&&this.end&&this.dateRangeSet.emit({start:this.start,end:this.end})}onHover(t){if(this.doubleInput&&this.clickCounter%2==1){if(t<this.frozenDate){this.start=t;this.end=this.frozenDate}else{this.start=this.frozenDate;this.end=t}}}render(){var t,o;return[e("smoothly-input-month",{value:(t=this.month)!==null&&t!==void 0?t:this.value,onValueChanged:t=>{this.month=t.detail;t.stopPropagation()}}),e("table",null,e("thead",null,e("tr",null,jt().map((t=>e("th",null,t))))),Gt((o=this.month)!==null&&o!==void 0?o:this.value).map((t=>e("tr",null,t.map((t=>{var o,s,n;return e("td",{tabindex:1,onMouseOver:()=>{!this.doubleInput&&(this.min||this.max)&&(t<this.min||t>this.max)?undefined:this.onHover(t)},onClick:(this.min||this.max)&&(t<this.min||t>this.max)?undefined:()=>this.onClick(t),class:(t==this.value?["selected"]:[]).concat(...t==u.now()?["today"]:[],u.firstOfMonth((o=this.month)!==null&&o!==void 0?o:this.value)==u.firstOfMonth(t)?["currentMonth"]:[],this.doubleInput?this.start==t||this.end==t?["selected"]:t>=((s=this.start)!==null&&s!==void 0?s:"")&&t<=((n=this.end)!==null&&n!==void 0?n:"")?["dateRange"]:[]:"").concat(...this.min||this.max?t<this.min||t>this.max?["disable"]:[]:"").join(" ")},t.substring(8,10))}))))))]}get element(){return o(this)}static get watchers(){return{start:["onStart"],end:["onEnd"]}}};Ht.style=_t;function Ft(t,e){let o;if(!e){const e=t;o=(t,...o)=>{const s=e[t];return!s?zt(t,...o):typeof s=="function"?s(...o):o.length>0?zt(s,...o):s}}else{if(!d.is(e))e=m(e);const s=e&&t[e];o=s?Ft(s):zt}return o}function zt(t,...e){return e.length>0?e.reduce(((t,e,o)=>t.replace("$"+o,e)),t):t}const Wt={"Select all":"Markera alla","Deselect all":"Avmarkera alla",Select:"Markera",Deselect:"Avmarkera"};function Yt(t){return Ft({sv:Wt},t)}const Zt='*.sc-smoothly-checkbox{box-sizing:border-box}.sc-smoothly-checkbox-h{display:block}.sc-smoothly-checkbox-h>main.sc-smoothly-checkbox{display:flex;align-items:center;width:fit-content;height:max-content;margin:0.3rem 0;line-height:0}.sc-smoothly-checkbox-h>main.sc-smoothly-checkbox>label.sc-smoothly-checkbox{display:flex;justify-content:center;align-items:center;margin:0 0.2em}.sc-smoothly-checkbox-h>main.sc-smoothly-checkbox>div.sc-smoothly-checkbox{border:1px solid rgb(var(--smoothly-color-contrast))}.sc-smoothly-checkbox-h>main.sc-smoothly-checkbox>div.sc-smoothly-checkbox>smoothly-icon.sc-smoothly-checkbox{display:flex;justify-content:center;align-items:center}.sc-smoothly-checkbox-h:not([checked])>main.sc-smoothly-checkbox>div.sc-smoothly-checkbox>smoothly-icon.sc-smoothly-checkbox,.sc-smoothly-checkbox-h:not([intermediate])>main.sc-smoothly-checkbox>div.sc-smoothly-checkbox>smoothly-icon.sc-smoothly-checkbox{stroke:rgb(var(--smoothly-color-contrast))}[disabled].sc-smoothly-checkbox-h>main.sc-smoothly-checkbox>div.sc-smoothly-checkbox{border:1px solid rgb(var(--smoothly-color-contrast), 0.3)}.sc-smoothly-checkbox-s>[slot=expansion]{display:none;background-color:rgb(var(--smoothly-secondary-color));color:rgb(var(--smoothly-secondary-contrast))}[checked].sc-smoothly-checkbox-s>[slot=expansion]{display:block;padding:0.5em;border-radius:5px;margin:0.5rem 0}[checked].sc-smoothly-checkbox-s>[slot=expansion]::before{content:"\\25B2";position:relative;top:-1.35em;left:2rem;color:rgb(var(--smoothly-secondary-color))}';const Vt=class{constructor(e){t(this,e);this.smoothlyInput=s(this,"smoothlyInput",7);this.size="tiny";this.checked=false;this.intermediate=false;this.name=undefined;this.value=undefined;this.disabled=undefined;this.t=undefined}componentWillLoad(){this.t=Yt(this.element)}async toggle(){if(!this.disabled){const t=this.intermediate||this.checked==false;this.smoothlyInput.emit({[this.name]:t?this.value:undefined});this.checked=t}}async clear(){this.checked=false;this.smoothlyInput.emit({[this.name]:undefined})}render(){return e(n,null,e("main",null,e("div",null,e("smoothly-icon",{toolTip:this.t(!this.checked?"Select":"De-select"),onClick:t=>{this.toggle()},size:this.size,name:this.intermediate&&!this.checked?"remove-outline":this.checked&&!this.intermediate?"checkmark-outline":"empty"})),e("label",{htmlFor:this.name},e("slot",null))),e("slot",{name:"expansion"}))}get element(){return o(this)}};Vt.style=Zt;const $t=".sc-smoothly-dialog-h{display:block;position:fixed;left:0;top:0;width:100%;height:100%;z-index:1;background:rgba(var(--smoothly-default-color), var(--smoothly-semitransparent)) !important}[hidden].sc-smoothly-dialog-h{display:none}.sc-smoothly-dialog-h>header.sc-smoothly-dialog{border-top-left-radius:8px;border-top-right-radius:8px;margin-top:2em;color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color));border-color:rgb(var(--smoothly-primary-color))}.sc-smoothly-dialog-h:not([header]) header.sc-smoothly-dialog{border:none}.sc-smoothly-dialog-h>*.sc-smoothly-dialog{position:relative;color:rgb(var(--smoothly-default-contrast));background-color:rgb(var(--smoothly-default-color));border-color:rgb(var(--smoothly-color));border-width:1px;border-style:solid;max-width:40em;width:calc(100vw - 4em - 2px);max-height:calc(100vh - 6em - 2px);height:auto;margin-left:auto;margin-right:auto;border-collapse:collapse}.sc-smoothly-dialog-h>main.sc-smoothly-dialog{border-bottom-left-radius:8px;border-bottom-right-radius:8px;margin-bottom:2em;border:1px solid rgb(var(--smoothly-default-contrast));box-sizing:border-box;overflow:hidden}.sc-smoothly-dialog-h:not([header]) main.sc-smoothly-dialog{border-radius:8px}.sc-smoothly-dialog-h>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog{position:absolute;right:-2em;top:-2em;z-index:1;border-color:transparent}.sc-smoothly-dialog-h>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog:hover{border-color:transparent}.sc-smoothly-dialog-h smoothly-icon.sc-smoothly-dialog{background-color:rgb(var(--smoothly-color));border-radius:50%}.sc-smoothly-dialog-h>*.sc-smoothly-dialog>*.sc-smoothly-dialog{margin:10px}";const Xt=class{constructor(e){t(this,e);this.color=undefined;this.open=true;this.closable=false;this.header=undefined}TriggerListener(t){if(i.is(t.detail)&&t.detail.name=="close")this.open=false}hostData(){return{style:{display:this.open?"block":"none"}}}__stencil_render(){return[e("header",null,this.closable?e("smoothly-trigger",{fill:"clear",name:"close"},e("smoothly-icon",{name:"close-circle",fill:"solid",color:this.color})):[],this.header?e("h1",null,this.header):e("slot",{name:"header"})),e("main",null,e("slot",null))]}render(){return e(n,this.hostData(),this.__stencil_render())}};Xt.style=$t;const Jt=class{constructor(e){t(this,e)}render(){return e("smoothly-dialog",{color:"default",style:{"margin-top":"6vh"},closable:true},e("smoothly-frame",{url:"https://www.wikipedia.org/",name:"parent",style:{height:"80vh"}}))}};function Qt(t,e,o){let s=0;while(o.exec(t)!=null){s=o.lastIndex;if(o.lastIndex>e)break}o.lastIndex<=e&&(s=t.length);return s}function qt(t,e,o){let s=0;let n;while((n=o.exec(t))!=null){if(o.lastIndex-n[0].length<e)s=o.lastIndex-n[0].length;else break}return s}function te(t,e,o){const s=/([\wåäöüéáúíóßðœøæñµçþ_]+|[@-]+)/gi;return o=="backward"?qt(t,e,s):Qt(t,e,s)}var ee;(function(t){function e(t){return t.direction=="backward"?t.start:t.end}t.getCursor=e;function o(t){return t.direction!="backward"?t.start:t.end}t.getStalker=o})(ee||(ee={}));var oe;(function(t){function e(t){return{value:t.value,selection:{start:t.selection.start,end:t.selection.end,direction:t.selection.direction}}}t.copy=e})(oe||(oe={}));class se{constructor(t){this.value=t.value;this.selection={start:t.selection?.start,end:t.selection?.end,direction:t.selection?.direction}}get(t,e=1){return this.value.substr(t,e)}is(t,...e){const o=this.get(t);return e.some((t=>o==t))}isDigit(t){const e=this.get(t);return e>="0"&&e<="9"}match(t){return this.value.match(t)}replace(t,e,o){let s;if(typeof t=="string"&&typeof e=="string"){let o;s=this;while((o=s.value.indexOf(t))>-1)s=s.replace(o,o+t.length,e)}else if(typeof t=="number"&&typeof e=="number"){const n={value:this.value,selection:{start:this.selection.start,end:this.selection.end,direction:this.selection.direction}};if(!o)o="";n.value=this.value.slice(0,t)+o+this.value.slice(e,this.value.length);if(this.selection.start>=e)n.selection.start=this.selection.start+o.length-e+t;else if(this.selection.start>t&&this.selection.start<e)n.selection.start=Math.min(this.selection.start,t+o.length);if(this.selection.end>=e)n.selection.end=this.selection.end+o.length-e+t;else if(this.selection.end>t&&this.selection.end<e)n.selection.end=Math.min(this.selection.end,t+o.length);s=new se(n)}return s||this}insert(t,e){return this.replace(t,t,e)}append(t){return this.insert(this.value.length,t)}prepend(t){return this.insert(0,t)}suffix(t){return new se({value:this.value+t,selection:this.selection})}delete(t,e){let o;if(!this.value)o=this;else if(typeof t=="string"){let e;o=this;while(t&&(e=o.value.indexOf(t))>-1)o=o.delete(e,e+t.length)}else o=this.replace(t,e||t+1,"");return o}truncate(t){return this.value.length>=t?this.delete(t,this.value.length):this}pad(t,e,o){let s=this;while(t>s.value.length+e.length)s=s.insert(o,e);if(t>s.value.length)s=s.insert(o,e.substring(0,t-s.value.length));return s}padEnd(t,e){return this.pad(t,e,this.value.length)}padStart(t,e){return this.pad(t,e,0)}map(t){let e=this;let o=0;for(let s=0;s<this.value.length;s++){const n=t(this.get(s),s);e=e.replace(o,o+1,n);o+=n.length}return e}static copy(t){return new se({...t})}static create(){return new se({value:"",selection:{start:0,end:0}})}static modify(t){return new se(typeof t=="string"?{value:t,selection:{start:t.length,end:t.length}}:t)}}var ne;(function(t){function e(t,e,o){let c=oe.copy(t.unformat(se.copy(e)));if(e.autocomplete=="cc-exp"&&/^\d\d \/$/g.test(e.value))o?.key&&(o.key="Backspace");if(o){if(o.ctrlKey||o.metaKey){if(o.key=="a")l(c,0,c.value.length,"forward");else if(["ArrowLeft","ArrowRight"].includes(o.key)&&e?.type!="password")c=s(t,e,o);else if(["Delete","Backspace"].includes(o.key)&&e?.type!="password")c=n(t,e,o)}else if(["ArrowLeft","ArrowRight","Home","End"].includes(o.key))i(c,o);else if(["Delete","Backspace"].includes(o.key)){c.selection.start==c.selection.end&&l(c,c.selection.start+(o.key=="Backspace"?-1:0),c.selection.end+(o.key=="Delete"?1:0));r(c)}else if(o.key!="Unidentified"){r(c);t.allowed(o.key,c)&&a(c,o.key)}}return t.format(se.copy(c))}t.apply=e;function o(t,e,o){const s=oe.copy(t.unformat(se.copy(e)));a(s,o);return t.format(se.copy(s))}t.paste=o;function s(t,e,o){let s=ee.getCursor(e.selection);let n=ee.getStalker(e.selection);s=te(e.value,s,o.key=="ArrowLeft"?"backward":"forward");n=o.shiftKey?n:s;return oe.copy(t.unformat(se.copy({...e,selection:{start:Math.min(n,s),end:Math.max(n,s),direction:n<s?"forward":n>s?"backward":"none"}})))}function n(t,e,o){const s=ee.getCursor(e.selection);const n=te(e.value,s,o.key=="Backspace"?"backward":"forward");const i=oe.copy(t.unformat(se.copy({...e,selection:{start:Math.min(s,n),end:Math.max(s,n),direction:"none"}})));i.value=i.value.substring(0,i.selection.start)+i.value.substring(i.selection.end);i.selection.end=i.selection.start;return i}function i(t,e){let o=ee.getCursor(t.selection);let s=ee.getStalker(t.selection);o=e.key=="Home"?0:e.key=="End"?t.value.length:t.selection.start==t.selection.end||e.shiftKey?Math.min(Math.max(o+(e.key=="ArrowLeft"?-1:1),0),t.value.length):e.key=="ArrowLeft"?t.selection.start:t.selection.end;s=e.shiftKey?s:o;t.selection.direction=s<o?"forward":s>o?"backward":"none";t.selection.start=Math.min(s,o);t.selection.end=Math.max(s,o)}function l(t,e,o,s){t.selection.start=e;t.selection.end=o;s&&(t.selection.direction=s)}function r(t){a(t,"")}function a(t,e){t.value=t.value.substring(0,t.selection.start)+e+t.value.substring(t.selection.end);t.selection.start=t.selection.start+e.length;t.selection.end=t.selection.start}})(ne||(ne={}));const ie={};function le(t,e){ie[t]=e}function re(t,...e){const o=ie[t];return o&&o(e)}function ae(t,e,...o){const s=re(e,...o);return s?s.format(se.modify(s.toString(typeof t=="string"?ce(t,e,o):t))).value:""}function ce(t,e,...o){const s=re(e,o);return s?s.fromString(s.unformat(se.modify(t)).value):undefined}class he{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"?t:undefined}format(t){return{...t,type:"tel",autocomplete:"cc-csc",length:[3,3],pattern:/^\d{3}$/}}unformat(t){return t}allowed(t,e){return e.value.length<3&&t>="0"&&t<="9"}}le("card-csc",(()=>new he));class ue{toString(t){return Array.isArray(t)&&t.length==2&&typeof t[0]=="number"&&typeof t[1]=="number"?t[0].toString().padStart(2,"0")+t[1].toString().padStart(2,"0"):""}fromString(t){return typeof t=="string"&&t.length==4?[Number.parseInt(t.slice(0,2)),Number.parseInt(t.slice(2))]:undefined}format(t){let e=t;if(t.value.length>0&&!t.is(0,"0","1"))e=e.prepend("0");if(e.value.length>1)e=e.insert(2," / ");return{...e,type:"tel",autocomplete:"cc-exp",length:[7,7],pattern:/^(0[1-9]|1[012]) \/ \d\d$/}}unformat(t){return t.delete(" / ")}allowed(t,e){return e.value.length<4&&t>="0"&&t<="9"}}le("card-expires",(()=>new ue));class de{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"?t:undefined}format(t){const e=me(t.value);const o=t.map(((t,o)=>(o!=0&&o%4==0&&o+1<e.length[0]?" ":"")+t));return{...o,type:"tel",autocomplete:"cc-number",length:e.length.slice(1),pattern:e.verification,classes:["issuer-"+e.icon]}}unformat(t){return t.delete(" ")}allowed(t,e){const o=me(e.value);return t>="0"&&t<="9"&&e.value.length<o.length[0]}}le("card-number",(()=>new de));function me(t){let e=ye;for(const o in fe)if(Object.prototype.hasOwnProperty.call(fe,o)&&fe[o].identification.test(t)){e={...ye,name:o,...fe[o]};break}return e}const ye={name:"unknown",verification:/^\d{19}$/,identification:/^\d/,length:[16,16,19],icon:"generic"};const fe={amex:{verification:/^3[47][0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{3}$/,identification:/^3[47]/,length:[15,18,18],icon:"amex"},dankort:{verification:/^(5019)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^(5019)\d+/,length:[16,19,19],icon:"generic"},diners:{verification:/^3(?:0[0-5]|[68][0-9])[0-9]\s[0-9]{4}\s[0-9]{4}\s[0-9]{2}$/,identification:/^3(?:0[0-5]|[68][0-9])/,length:[14,17,17],icon:"diners"},discover:{verification:/^6(?:011|5[0-9]{2})\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^6(?:011|5[0-9]{2})/,length:[16,19,19],icon:"generic"},electron:{verification:/^((4026|4405|4508|4844|4913|4917)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4})|((4175)\s(00)[0-9]{2}\s[0-9]{4}\s[0-9]{4})$/,identification:/^(4026|417500|4405|4508|4844|4913|4917)/,length:[16,19,19],icon:"generic"},interpayment:{verification:/^(636)[0-9]\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^(636)/,length:[16,19,19],icon:"generic"},jcb:{verification:/^((?:2131|1800)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4})|(35[0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4})$/,identification:/^(?:2131|1800|35\d{3})/,length:[16,19,19],icon:"generic"},unionpay:{verification:/^(62|88)[0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^(62|88)/,length:[16,19,19],icon:"generic"},maestro:{verification:/^(5018|5020|5038|5612|5893|6304|6759|6761|6762|6763|0604|6390)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^(5018|5020|5038|5612|5893|6304|6759|6761|6762|6763|0604|6390)/,length:[16,19,19],icon:"maestro"},mastercard:{verification:/^5[1-5][0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^5[1-5][0-9]/,length:[16,19,19],icon:"mastercard"},visa:{verification:/^4[0-9]{3}\s[0-9]{4}\s[0-9]{4}\s[0-9](?:[0-9]{3})?$/,identification:/^4[0-9]/,length:[16,16,19],icon:"visa"}};var pe;(function(t){function e(t){return typeof t=="string"&&t.length<=5&&(t=="+93"||t=="+358"||t=="+355"||t=="+213"||t=="+1684"||t=="+376"||t=="+244"||t=="+1264"||t=="+672"||t=="+1268"||t=="+54"||t=="+374"||t=="+297"||t=="+61"||t=="+43"||t=="+994"||t=="+1242"||t=="+973"||t=="+880"||t=="+1246"||t=="+375"||t=="+32"||t=="+501"||t=="+229"||t=="+1441"||t=="+975"||t=="+591"||t=="+387"||t=="+267"||t=="+55"||t=="+246"||t=="+673"||t=="+359"||t=="+226"||t=="+257"||t=="+855"||t=="+237"||t=="+1"||t=="+238"||t=="+345"||t=="+236"||t=="+235"||t=="+56"||t=="+86"||t=="+61"||t=="+61"||t=="+57"||t=="+269"||t=="+242"||t=="+243"||t=="+682"||t=="+506"||t=="+225"||t=="+385"||t=="+53"||t=="+357"||t=="+420"||t=="+45"||t=="+253"||t=="+1767"||t=="+1849"||t=="+593"||t=="+20"||t=="+503"||t=="+240"||t=="+291"||t=="+372"||t=="+251"||t=="+500"||t=="+298"||t=="+679"||t=="+358"||t=="+33"||t=="+594"||t=="+689"||t=="+241"||t=="+220"||t=="+995"||t=="+49"||t=="+233"||t=="+350"||t=="+30"||t=="+299"||t=="+1473"||t=="+590"||t=="+1671"||t=="+502"||t=="+44"||t=="+224"||t=="+245"||t=="+592"||t=="+509"||t=="+379"||t=="+504"||t=="+852"||t=="+36"||t=="+354"||t=="+91"||t=="+62"||t=="+98"||t=="+964"||t=="+353"||t=="+44"||t=="+972"||t=="+39"||t=="+1876"||t=="+81"||t=="+44"||t=="+962"||t=="+77"||t=="+254"||t=="+686"||t=="+850"||t=="+82"||t=="+965"||t=="+996"||t=="+856"||t=="+371"||t=="+961"||t=="+266"||t=="+231"||t=="+218"||t=="+423"||t=="+370"||t=="+352"||t=="+853"||t=="+389"||t=="+261"||t=="+265"||t=="+60"||t=="+960"||t=="+223"||t=="+356"||t=="+692"||t=="+596"||t=="+222"||t=="+230"||t=="+262"||t=="+52"||t=="+691"||t=="+373"||t=="+377"||t=="+976"||t=="+382"||t=="+1664"||t=="+212"||t=="+258"||t=="+95"||t=="+264"||t=="+674"||t=="+977"||t=="+31"||t=="+599"||t=="+687"||t=="+64"||t=="+505"||t=="+227"||t=="+234"||t=="+683"||t=="+672"||t=="+1670"||t=="+47"||t=="+968"||t=="+92"||t=="+680"||t=="+970"||t=="+507"||t=="+675"||t=="+595"||t=="+51"||t=="+63"||t=="+872"||t=="+48"||t=="+351"||t=="+1939"||t=="+974"||t=="+40"||t=="+7"||t=="+250"||t=="+262"||t=="+590"||t=="+290"||t=="+1869"||t=="+1758"||t=="+590"||t=="+508"||t=="+1784"||t=="+685"||t=="+378"||t=="+239"||t=="+966"||t=="+221"||t=="+381"||t=="+248"||t=="+232"||t=="+65"||t=="+421"||t=="+386"||t=="+677"||t=="+252"||t=="+27"||t=="+211"||t=="+500"||t=="+34"||t=="+94"||t=="+249"||t=="+597"||t=="+47"||t=="+268"||t=="+46"||t=="+41"||t=="+963"||t=="+886"||t=="+992"||t=="+255"||t=="+66"||t=="+670"||t=="+228"||t=="+690"||t=="+676"||t=="+1868"||t=="+216"||t=="+90"||t=="+993"||t=="+1649"||t=="+688"||t=="+256"||t=="+380"||t=="+971"||t=="+44"||t=="+1"||t=="+598"||t=="+998"||t=="+678"||t=="+58"||t=="+84"||t=="+1284"||t=="+1340"||t=="+681"||t=="+967"||t=="+260"||t=="+263")}t.is=e;function o(t){return ge[t]}t.from=o;function s(t){return be[t]}t.to=s;function n(e){let o=[undefined,e];if(e.substring(0,1)=="+"){for(let s=5;s>1;s--){const n=e.substring(0,s);if(t.is(n)){o=[n,e.substring(s)];break}}}return o}t.seperate=n})(pe||(pe={}));const be={"+93":"AF","+358":["FI","AX"],"+355":"AL","+213":"DZ","+1684":"AS","+376":"AD","+244":"AO","+1264":"AI","+672":["NF","AQ"],"+1268":"AG","+54":"AR","+374":"AM","+297":"AW","+61":["AU","CX","CC"],"+43":"AT","+994":"AZ","+1242":"BS","+973":"BH","+880":"BD","+1246":"BB","+375":"BY","+32":"BE","+501":"BZ","+229":"BJ","+1441":"BM","+975":"BT","+591":"BO","+599":"BQ","+387":"BA","+267":"BW","+55":"BR","+246":"IO","+673":"BN","+359":"BG","+226":"BF","+257":"BI","+855":"KH","+237":"CM","+1":["US","CA"],"+238":"CV","+345":"KY","+236":"CF","+235":"TD","+56":"CL","+86":"CN","+57":"CO","+269":"KM","+242":"CG","+243":"CD","+682":"CK","+506":"CR","+225":"CI","+385":"HR","+53":"CU","+357":"CY","+420":"CZ","+45":"DK","+253":"DJ","+1767":"DM","+1849":"DO","+593":"EC","+20":"EG","+503":"SV","+240":"GQ","+291":"ER","+372":"EE","+251":"ET","+500":["FK","GS"],"+298":"FO","+679":"FJ","+33":"FR","+594":"GF","+689":"PF","+241":"GA","+220":"GM","+995":"GE","+49":"DE","+233":"GH","+350":"GI","+30":"GR","+299":"GL","+1473":"GD","+590":["GP","BL","MF"],"+1671":"GU","+502":"GT","+44":["GB","JE","IM","GG"],"+224":"GN","+245":"GW","+592":"GY","+595":"PY","+509":"HT","+379":"VA","+504":"HN","+852":"HK","+36":"HU","+354":"IS","+91":"IN","+62":"ID","+98":"IR","+964":"IQ","+353":"IE","+972":"IL","+39":"IT","+1876":"JM","+81":"JP","+962":"JO","+77":"KZ","+254":"KE","+686":"KI","+850":"KP","+82":"KR","+965":"KW","+996":"KG","+856":"LA","+371":"LV","+961":"LB","+266":"LS","+231":"LR","+218":"LY","+423":"LI","+370":"LT","+352":"LU","+853":"MO","+389":"MK","+261":"MG","+265":"MW","+60":"MY","+960":"MV","+223":"ML","+356":"MT","+692":"MH","+596":"MQ","+222":"MR","+230":"MU","+262":["RE","YT"],"+52":"MX","+691":"FM","+373":"MD","+377":"MC","+976":"MN","+382":"ME","+1664":"MS","+212":"MA","+258":"MZ","+95":"MM","+264":"NA","+674":"NR","+977":"NP","+31":"NL","+687":"NC","+64":"NZ","+505":"NI","+227":"NE","+234":"NG","+683":"NU","+1670":"MP","+47":["NO","SJ"],"+968":"OM","+92":"PK","+680":"PW","+970":"PS","+507":"PA","+675":"PG","+51":"PE","+63":"PH","+872":"PN","+48":"PL","+351":"PT","+1939":"PR","+974":"QA","+40":"RO","+7":"RU","+250":"RW","+290":"SH","+1869":"KN","+1758":"LC","+508":"PM","+1784":"VC","+685":"WS","+378":"SM","+239":"ST","+966":"SA","+221":"SN","+381":"RS","+248":"SC","+232":"SL","+65":"SG","+421":"SK","+386":"SI","+677":"SB","+252":"SO","+27":"ZA","+211":"SS","+34":"ES","+94":"LK","+249":"SD","+597":"SR","+268":"SZ","+46":"SE","+41":"CH","+963":"SY","+886":"TW","+992":"TJ","+255":"TZ","+66":"TH","+670":"TL","+228":"TG","+690":"TK","+676":"TO","+1868":"TT","+216":"TN","+90":"TR","+993":"TM","+1649":"TC","+688":"TV","+256":"UG","+380":"UA","+971":"AE","+598":"UY","+998":"UZ","+678":"VU","+58":"VE","+84":"VN","+1284":"VG","+1340":"VI","+681":"WF","+967":"YE","+260":"ZM","+263":"ZW"};const ge={AF:"+93",AX:"+358",AL:"+355",DZ:"+213",AS:"+1684",AD:"+376",AO:"+244",AI:"+1264",AQ:"+672",AG:"+1268",AR:"+54",AM:"+374",AW:"+297",AU:"+61",AT:"+43",AZ:"+994",BS:"+1242",BH:"+973",BD:"+880",BB:"+1246",BY:"+375",BE:"+32",BZ:"+501",BJ:"+229",BM:"+1441",BT:"+975",BO:"+591",BQ:"+599",BA:"+387",BW:"+267",BR:"+55",IO:"+246",BN:"+673",BG:"+359",BF:"+226",BI:"+257",KH:"+855",CM:"+237",CA:"+1",CV:"+238",KY:"+345",CF:"+236",TD:"+235",CL:"+56",CN:"+86",CX:"+61",CC:"+61",CO:"+57",KM:"+269",CG:"+242",CD:"+243",CK:"+682",CR:"+506",CI:"+225",HR:"+385",CU:"+53",CY:"+357",CZ:"+420",DK:"+45",DJ:"+253",DM:"+1767",DO:"+1849",EC:"+593",EG:"+20",SV:"+503",GQ:"+240",ER:"+291",EE:"+372",ET:"+251",FK:"+500",FO:"+298",FJ:"+679",FI:"+358",FR:"+33",GF:"+594",PF:"+689",GA:"+241",GM:"+220",GE:"+995",DE:"+49",GH:"+233",GI:"+350",GR:"+30",GL:"+299",GD:"+1473",GP:"+590",GU:"+1671",GT:"+502",GG:"+44",GN:"+224",GW:"+245",GY:"+592",HT:"+509",VA:"+379",HN:"+504",HK:"+852",HU:"+36",IS:"+354",IN:"+91",ID:"+62",IR:"+98",IQ:"+964",IE:"+353",IM:"+44",IL:"+972",IT:"+39",JM:"+1876",JP:"+81",JE:"+44",JO:"+962",KZ:"+77",KE:"+254",KI:"+686",KP:"+850",KR:"+82",KW:"+965",KG:"+996",LA:"+856",LV:"+371",LB:"+961",LS:"+266",LR:"+231",LY:"+218",LI:"+423",LT:"+370",LU:"+352",MO:"+853",MK:"+389",MG:"+261",MW:"+265",MY:"+60",MV:"+960",ML:"+223",MT:"+356",MH:"+692",MQ:"+596",MR:"+222",MU:"+230",YT:"+262",MX:"+52",FM:"+691",MD:"+373",MC:"+377",MN:"+976",ME:"+382",MS:"+1664",MA:"+212",MZ:"+258",MM:"+95",NA:"+264",NR:"+674",NP:"+977",NL:"+31",NC:"+687",NZ:"+64",NI:"+505",NE:"+227",NG:"+234",NU:"+683",NF:"+672",MP:"+1670",NO:"+47",OM:"+968",PK:"+92",PW:"+680",PS:"+970",PA:"+507",PG:"+675",PY:"+595",PE:"+51",PH:"+63",PN:"+872",PL:"+48",PT:"+351",PR:"+1939",QA:"+974",RO:"+40",RU:"+7",RW:"+250",RE:"+262",BL:"+590",SH:"+290",KN:"+1869",LC:"+1758",MF:"+590",PM:"+508",VC:"+1784",WS:"+685",SM:"+378",ST:"+239",SA:"+966",SN:"+221",RS:"+381",SC:"+248",SL:"+232",SG:"+65",SK:"+421",SI:"+386",SB:"+677",SO:"+252",ZA:"+27",SS:"+211",GS:"+500",ES:"+34",LK:"+94",SD:"+249",SR:"+597",SJ:"+47",SZ:"+268",SE:"+46",CH:"+41",SY:"+963",TW:"+886",TJ:"+992",TZ:"+255",TH:"+66",TL:"+670",TG:"+228",TK:"+690",TO:"+676",TT:"+1868",TN:"+216",TR:"+90",TM:"+993",TC:"+1649",TV:"+688",UG:"+256",UA:"+380",AE:"+971",GB:"+44",US:"+1",UY:"+598",UZ:"+998",VU:"+678",VE:"+58",VN:"+84",VG:"+1284",VI:"+1340",WF:"+681",YE:"+967",ZM:"+260",ZW:"+263"};var ve;(function(t){t.types=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"];function e(e){return t.types.includes(e)}t.is=e;function o(t){return typeof t=="number"?we[t]:ke[t]}t.from=o;function s(t){const e=["AT","BE","BG","HR","CY","DK","EE","FI","FR","DE","GR","HU","IS","IE","IT","LV","LT","MT","NL","NO","PL","PT","RO","SI","ES","SE","LI","LU","SK","CZ"];return e.includes(t)}t.isEEA=s})(ve||(ve={}));const we={4:"AF",248:"AX",8:"AL",12:"DZ",16:"AS",20:"AD",24:"AO",660:"AI",10:"AQ",28:"AG",32:"AR",51:"AM",533:"AW",36:"AU",40:"AT",31:"AZ",44:"BS",48:"BH",50:"BD",52:"BB",112:"BY",56:"BE",84:"BZ",204:"BJ",60:"BM",64:"BT",68:"BO",535:"BQ",70:"BA",72:"BW",74:"BV",76:"BR",86:"IO",96:"BN",100:"BG",854:"BF",108:"BI",132:"CV",116:"KH",120:"CM",124:"CA",136:"KY",140:"CF",148:"TD",152:"CL",156:"CN",162:"CX",166:"CC",170:"CO",174:"KM",178:"CG",180:"CD",184:"CK",188:"CR",384:"CI",191:"HR",192:"CU",531:"CW",196:"CY",203:"CZ",208:"DK",262:"DJ",212:"DM",214:"DO",218:"EC",818:"EG",222:"SV",226:"GQ",232:"ER",233:"EE",748:"SZ",231:"ET",238:"FK",234:"FO",242:"FJ",246:"FI",250:"FR",254:"GF",258:"PF",260:"TF",266:"GA",270:"GM",268:"GE",276:"DE",280:"DE",288:"GH",292:"GI",300:"GR",304:"GL",308:"GD",312:"GP",316:"GU",320:"GT",831:"GG",324:"GN",624:"GW",328:"GY",332:"HT",334:"HM",336:"VA",340:"HN",344:"HK",348:"HU",352:"IS",356:"IN",360:"ID",364:"IR",368:"IQ",372:"IE",833:"IM",376:"IL",380:"IT",388:"JM",392:"JP",832:"JE",400:"JO",398:"KZ",404:"KE",296:"KI",408:"KP",410:"KR",414:"KW",417:"KG",418:"LA",428:"LV",422:"LB",426:"LS",430:"LR",434:"LY",438:"LI",440:"LT",442:"LU",446:"MO",450:"MG",454:"MW",458:"MY",462:"MV",466:"ML",470:"MT",584:"MH",474:"MQ",478:"MR",480:"MU",175:"YT",484:"MX",583:"FM",498:"MD",492:"MC",496:"MN",499:"ME",500:"MS",504:"MA",508:"MZ",104:"MM",516:"NA",520:"NR",524:"NP",528:"NL",540:"NC",554:"NZ",558:"NI",562:"NE",566:"NG",570:"NU",574:"NF",807:"MK",580:"MP",578:"NO",512:"OM",586:"PK",585:"PW",275:"PS",591:"PA",598:"PG",600:"PY",604:"PE",608:"PH",612:"PN",616:"PL",620:"PT",630:"PR",634:"QA",638:"RE",642:"RO",643:"RU",646:"RW",652:"BL",654:"SH",659:"KN",662:"LC",663:"MF",666:"PM",670:"VC",882:"WS",674:"SM",678:"ST",682:"SA",686:"SN",688:"RS",690:"SC",694:"SL",702:"SG",534:"SX",703:"SK",705:"SI",90:"SB",706:"SO",710:"ZA",239:"GS",728:"SS",724:"ES",144:"LK",729:"SD",740:"SR",744:"SJ",752:"SE",756:"CH",760:"SY",158:"TW",762:"TJ",834:"TZ",764:"TH",626:"TL",768:"TG",772:"TK",776:"TO",780:"TT",788:"TN",792:"TR",795:"TM",796:"TC",798:"TV",800:"UG",804:"UA",784:"AE",826:"GB",840:"US",581:"UM",858:"UY",860:"UZ",548:"VU",862:"VE",704:"VN",92:"VG",850:"VI",876:"WF",732:"EH",887:"YE",894:"ZM",716:"ZW",926:"XK"};const ke={AFG:"AF",ALA:"AX",ALB:"AL",DZA:"DZ",ASM:"AS",AND:"AD",AGO:"AO",AIA:"AI",ATA:"AQ",ATG:"AG",ARG:"AR",ARM:"AM",ABW:"AW",AUS:"AU",AUT:"AT",AZE:"AZ",BHS:"BS",BHR:"BH",BGD:"BD",BRB:"BB",BLR:"BY",BEL:"BE",BLZ:"BZ",BEN:"BJ",BMU:"BM",BTN:"BT",BOL:"BO",BES:"BQ",BIH:"BA",BWA:"BW",BVT:"BV",BRA:"BR",IOT:"IO",BRN:"BN",BGR:"BG",BFA:"BF",BDI:"BI",CPV:"CV",KHM:"KH",CMR:"CM",CAN:"CA",CYM:"KY",CAF:"CF",TCD:"TD",CHL:"CL",CHN:"CN",CXR:"CX",CCK:"CC",COL:"CO",COM:"KM",COG:"CG",COD:"CD",COK:"CK",CRI:"CR",CIV:"CI",HRV:"HR",CUB:"CU",CUW:"CW",CYP:"CY",CZE:"CZ",DNK:"DK",DJI:"DJ",DMA:"DM",DOM:"DO",ECU:"EC",EGY:"EG",SLV:"SV",GNQ:"GQ",ERI:"ER",EST:"EE",SWZ:"SZ",ETH:"ET",FLK:"FK",FRO:"FO",FJI:"FJ",FIN:"FI",FRA:"FR",GUF:"GF",PYF:"PF",ATF:"TF",GAB:"GA",GMB:"GM",GEO:"GE",DEU:"DE",GHA:"GH",GIB:"GI",GRC:"GR",GRL:"GL",GRD:"GD",GLP:"GP",GUM:"GU",GTM:"GT",GGY:"GG",GIN:"GN",GNB:"GW",GUY:"GY",HTI:"HT",HMD:"HM",VAT:"VA",HND:"HN",HKG:"HK",HUN:"HU",ISL:"IS",IND:"IN",IDN:"ID",IRN:"IR",IRQ:"IQ",IRL:"IE",IMN:"IM",ISR:"IL",ITA:"IT",JAM:"JM",JPN:"JP",JEY:"JE",JOR:"JO",KAZ:"KZ",KEN:"KE",KIR:"KI",PRK:"KP",KOR:"KR",KWT:"KW",KGZ:"KG",LAO:"LA",LVA:"LV",LBN:"LB",LSO:"LS",LBR:"LR",LBY:"LY",LIE:"LI",LTU:"LT",LUX:"LU",MAC:"MO",MDG:"MG",MWI:"MW",MYS:"MY",MDV:"MV",MLI:"ML",MLT:"MT",MHL:"MH",MTQ:"MQ",MRT:"MR",MUS:"MU",MYT:"YT",MEX:"MX",FSM:"FM",MDA:"MD",MCO:"MC",MNG:"MN",MNE:"ME",MSR:"MS",MAR:"MA",MOZ:"MZ",MMR:"MM",NAM:"NA",NRU:"NR",NPL:"NP",NLD:"NL",NCL:"NC",NZL:"NZ",NIC:"NI",NER:"NE",NGA:"NG",NIU:"NU",NFK:"NF",MKD:"MK",MNP:"MP",NOR:"NO",OMN:"OM",PAK:"PK",PLW:"PW",PSE:"PS",PAN:"PA",PNG:"PG",PRY:"PY",PER:"PE",PHL:"PH",PCN:"PN",POL:"PL",PRT:"PT",PRI:"PR",QAT:"QA",REU:"RE",ROU:"RO",RUS:"RU",RWA:"RW",BLM:"BL",SHN:"SH",KNA:"KN",LCA:"LC",MAF:"MF",SPM:"PM",VCT:"VC",WSM:"WS",SMR:"SM",STP:"ST",SAU:"SA",SEN:"SN",SRB:"RS",SYC:"SC",SLE:"SL",SGP:"SG",SXM:"SX",SVK:"SK",SVN:"SI",SLB:"SB",SOM:"SO",ZAF:"ZA",SGS:"GS",SSD:"SS",ESP:"ES",LKA:"LK",SDN:"SD",SUR:"SR",SJM:"SJ",SWE:"SE",CHE:"CH",SYR:"SY",TWN:"TW",TJK:"TJ",TZA:"TZ",THA:"TH",TLS:"TL",TGO:"TG",TKL:"TK",TON:"TO",TTO:"TT",TUN:"TN",TUR:"TR",TKM:"TM",TCA:"TC",TUV:"TV",UGA:"UG",UKR:"UA",ARE:"AE",GBR:"GB",USA:"US",UMI:"UM",URY:"UY",UZB:"UZ",VUT:"VU",VEN:"VE",VNM:"VN",VGB:"VG",VIR:"VI",WLF:"WF",ESH:"EH",YEM:"YE",ZMB:"ZM",ZWE:"ZW",XKX:"XK"};var Se;(function(t){t.types=["ABW","AFG","AGO","AIA","ALA","ALB","AND","ARE","ARG","ARM","ASM","ATA","ATF","ATG","AUS","AUT","AZE","BDI","BEL","BEN","BES","BFA","BGD","BGR","BHR","BHS","BIH","BLM","BLR","BLZ","BMU","BOL","BRA","BRB","BRN","BTN","BVT","BWA","CAF","CAN","CCK","CHE","CHL","CHN","CIV","CMR","COD","COG","COK","COL","COM","CPV","CRI","CUB","CUW","CXR","CYM","CYP","CZE","DEU","DJI","DMA","DNK","DOM","DZA","ECU","EGY","ERI","ESH","ESP","EST","ETH","FIN","FJI","FLK","FRA","FRO","FSM","GAB","GBR","GEO","GGY","GHA","GIB","GIN","GLP","GMB","GNB","GNQ","GRC","GRD","GRL","GTM","GUF","GUM","GUY","HKG","HMD","HND","HRV","HTI","HUN","IDN","IMN","IND","IOT","IRL","IRN","IRQ","ISL","ISR","ITA","JAM","JEY","JOR","JPN","KAZ","KEN","KGZ","KHM","KIR","KNA","KOR","KWT","LAO","LBN","LBR","LBY","LCA","LIE","LKA","LSO","LTU","LUX","LVA","MAC","MAF","MAR","MCO","MDA","MDG","MDV","MEX","MHL","MKD","MLI","MLT","MMR","MNE","MNG","MNP","MOZ","MRT","MSR","MTQ","MUS","MWI","MYS","MYT","NAM","NCL","NER","NFK","NGA","NIC","NIU","NLD","NOR","NPL","NRU","NZL","OMN","PAK","PAN","PCN","PER","PHL","PLW","PNG","POL","PRI","PRK","PRT","PRY","PSE","PYF","QAT","REU","ROU","RUS","RWA","SAU","SDN","SEN","SGP","SGS","SHN","SJM","SLB","SLE","SLV","SMR","SOM","SPM","SRB","SSD","STP","SUR","SVK","SVN","SWE","SWZ","SXM","SYC","SYR","TCA","TCD","TGO","THA","TJK","TKL","TKM","TLS","TON","TTO","TUN","TUR","TUV","TWN","TZA","UGA","UKR","UMI","URY","USA","UZB","VAT","VCT","VEN","VGB","VIR","VNM","VUT","WLF","WSM","XKX","YEM","ZAF","ZMB","ZWE"];function e(e){return typeof e=="string"&&e.length==3&&t.types.includes(e)}t.is=e;function o(t){return typeof t=="number"?o(ve.from(t)):xe[t]}t.from=o})(Se||(Se={}));const xe={AF:"AFG",AX:"ALA",AL:"ALB",DZ:"DZA",AS:"ASM",AD:"AND",AO:"AGO",AI:"AIA",AQ:"ATA",AG:"ATG",AR:"ARG",AM:"ARM",AW:"ABW",AU:"AUS",AT:"AUT",AZ:"AZE",BS:"BHS",BH:"BHR",BD:"BGD",BB:"BRB",BY:"BLR",BE:"BEL",BZ:"BLZ",BJ:"BEN",BM:"BMU",BT:"BTN",BO:"BOL",BQ:"BES",BA:"BIH",BW:"BWA",BV:"BVT",BR:"BRA",IO:"IOT",BN:"BRN",BG:"BGR",BF:"BFA",BI:"BDI",CV:"CPV",KH:"KHM",CM:"CMR",CA:"CAN",KY:"CYM",CF:"CAF",TD:"TCD",CL:"CHL",CN:"CHN",CX:"CXR",CC:"CCK",CO:"COL",KM:"COM",CG:"COG",CD:"COD",CK:"COK",CR:"CRI",CI:"CIV",HR:"HRV",CU:"CUB",CW:"CUW",CY:"CYP",CZ:"CZE",DK:"DNK",DJ:"DJI",DM:"DMA",DO:"DOM",EC:"ECU",EG:"EGY",SV:"SLV",GQ:"GNQ",ER:"ERI",EE:"EST",SZ:"SWZ",ET:"ETH",FK:"FLK",FO:"FRO",FJ:"FJI",FI:"FIN",FR:"FRA",GF:"GUF",PF:"PYF",TF:"ATF",GA:"GAB",GM:"GMB",GE:"GEO",DE:"DEU",GH:"GHA",GI:"GIB",GR:"GRC",GL:"GRL",GD:"GRD",GP:"GLP",GU:"GUM",GT:"GTM",GG:"GGY",GN:"GIN",GW:"GNB",GY:"GUY",HT:"HTI",HM:"HMD",VA:"VAT",HN:"HND",HK:"HKG",HU:"HUN",IS:"ISL",IN:"IND",ID:"IDN",IR:"IRN",IQ:"IRQ",IE:"IRL",IM:"IMN",IL:"ISR",IT:"ITA",JM:"JAM",JP:"JPN",JE:"JEY",JO:"JOR",KZ:"KAZ",KE:"KEN",KI:"KIR",KP:"PRK",KR:"KOR",KW:"KWT",KG:"KGZ",LA:"LAO",LV:"LVA",LB:"LBN",LS:"LSO",LR:"LBR",LY:"LBY",LI:"LIE",LT:"LTU",LU:"LUX",MO:"MAC",MG:"MDG",MW:"MWI",MY:"MYS",MV:"MDV",ML:"MLI",MT:"MLT",MH:"MHL",MQ:"MTQ",MR:"MRT",MU:"MUS",YT:"MYT",MX:"MEX",FM:"FSM",MD:"MDA",MC:"MCO",MN:"MNG",ME:"MNE",MS:"MSR",MA:"MAR",MZ:"MOZ",MM:"MMR",NA:"NAM",NR:"NRU",NP:"NPL",NL:"NLD",NC:"NCL",NZ:"NZL",NI:"NIC",NE:"NER",NG:"NGA",NU:"NIU",NF:"NFK",MK:"MKD",MP:"MNP",NO:"NOR",OM:"OMN",PK:"PAK",PW:"PLW",PS:"PSE",PA:"PAN",PG:"PNG",PY:"PRY",PE:"PER",PH:"PHL",PN:"PCN",PL:"POL",PT:"PRT",PR:"PRI",QA:"QAT",RE:"REU",RO:"ROU",RU:"RUS",RW:"RWA",BL:"BLM",SH:"SHN",KN:"KNA",LC:"LCA",MF:"MAF",PM:"SPM",VC:"VCT",WS:"WSM",SM:"SMR",ST:"STP",SA:"SAU",SN:"SEN",RS:"SRB",SC:"SYC",SL:"SLE",SG:"SGP",SX:"SXM",SK:"SVK",SI:"SVN",SB:"SLB",SO:"SOM",ZA:"ZAF",GS:"SGS",SS:"SSD",ES:"ESP",LK:"LKA",SD:"SDN",SR:"SUR",SJ:"SJM",SE:"SWE",CH:"CHE",SY:"SYR",TW:"TWN",TJ:"TJK",TZ:"TZA",TH:"THA",TL:"TLS",TG:"TGO",TK:"TKL",TO:"TON",TT:"TTO",TN:"TUN",TR:"TUR",TM:"TKM",TC:"TCA",TV:"TUV",UG:"UGA",UA:"UKR",AE:"ARE",GB:"GBR",US:"USA",UM:"UMI",UY:"URY",UZ:"UZB",VU:"VUT",VE:"VEN",VN:"VNM",VG:"VGB",VI:"VIR",WF:"WLF",EH:"ESH",YE:"YEM",ZM:"ZMB",ZW:"ZWE",XK:"XKX"};var Ce;(function(t){t.types=[4,8,10,12,16,20,24,28,31,32,36,40,44,48,50,51,52,56,60,64,68,70,72,74,76,84,86,90,92,96,100,104,108,112,116,120,124,132,136,140,144,148,152,156,158,162,166,170,174,175,178,180,184,188,191,192,196,203,204,208,212,214,218,222,226,231,232,233,234,238,239,242,246,248,250,254,258,260,262,266,268,270,275,276,280,288,292,296,300,304,308,312,316,320,324,328,332,334,336,340,344,348,352,356,360,364,368,372,376,380,384,388,392,398,400,404,408,410,414,417,418,422,426,428,430,434,438,440,442,446,450,454,458,462,466,470,474,478,480,484,492,496,498,499,500,504,508,512,516,520,524,528,531,533,534,535,540,548,554,558,562,566,570,574,578,580,581,583,584,585,586,591,598,600,604,608,612,616,620,624,626,630,634,638,642,643,646,652,654,659,660,662,663,666,670,674,678,682,686,688,690,694,702,703,704,705,706,710,716,724,728,729,732,740,744,748,752,756,760,762,764,768,772,776,780,784,788,792,795,796,798,800,804,807,818,826,831,832,833,834,840,850,854,858,860,862,876,882,887,894,926];function e(e){return typeof e=="number"&&e>=0&&e<=999&&Number.isInteger(e)&&t.types.includes(e)}t.is=e;function o(t){return t.length==2?Me[t]:o(ve.from(t))}t.from=o})(Ce||(Ce={}));const Me={AF:4,AX:248,AL:8,DZ:12,AS:16,AD:20,AO:24,AI:660,AQ:10,AG:28,AR:32,AM:51,AW:533,AU:36,AT:40,AZ:31,BS:44,BH:48,BD:50,BB:52,BY:112,BE:56,BZ:84,BJ:204,BM:60,BT:64,BO:68,BQ:535,BA:70,BW:72,BV:74,BR:76,IO:86,BN:96,BG:100,BF:854,BI:108,CV:132,KH:116,CM:120,CA:124,KY:136,CF:140,TD:148,CL:152,CN:156,CX:162,CC:166,CO:170,KM:174,CG:178,CD:180,CK:184,CR:188,CI:384,HR:191,CU:192,CW:531,CY:196,CZ:203,DK:208,DJ:262,DM:212,DO:214,EC:218,EG:818,SV:222,GQ:226,ER:232,EE:233,SZ:748,ET:231,FK:238,FO:234,FJ:242,FI:246,FR:250,GF:254,PF:258,TF:260,GA:266,GM:270,GE:268,DE:276,GH:288,GI:292,GR:300,GL:304,GD:308,GP:312,GU:316,GT:320,GG:831,GN:324,GW:624,GY:328,HT:332,HM:334,VA:336,HN:340,HK:344,HU:348,IS:352,IN:356,ID:360,IR:364,IQ:368,IE:372,IM:833,IL:376,IT:380,JM:388,JP:392,JE:832,JO:400,KZ:398,KE:404,KI:296,KP:408,KR:410,KW:414,KG:417,LA:418,LV:428,LB:422,LS:426,LR:430,LY:434,LI:438,LT:440,LU:442,MO:446,MG:450,MW:454,MY:458,MV:462,ML:466,MT:470,MH:584,MQ:474,MR:478,MU:480,YT:175,MX:484,FM:583,MD:498,MC:492,MN:496,ME:499,MS:500,MA:504,MZ:508,MM:104,NA:516,NR:520,NP:524,NL:528,NC:540,NZ:554,NI:558,NE:562,NG:566,NU:570,NF:574,MK:807,MP:580,NO:578,OM:512,PK:586,PW:585,PS:275,PA:591,PG:598,PY:600,PE:604,PH:608,PN:612,PL:616,PT:620,PR:630,QA:634,RE:638,RO:642,RU:643,RW:646,BL:652,SH:654,KN:659,LC:662,MF:663,PM:666,VC:670,WS:882,SM:674,ST:678,SA:682,SN:686,RS:688,SC:690,SL:694,SG:702,SX:534,SK:703,SI:705,SB:90,SO:706,ZA:710,GS:239,SS:728,ES:724,LK:144,SD:729,SR:740,SJ:744,SE:752,CH:756,SY:760,TW:158,TJ:762,TZ:834,TH:764,TL:626,TG:768,TK:772,TO:776,TT:780,TN:788,TR:792,TM:795,TC:796,TV:798,UG:800,UA:804,AE:784,GB:826,US:840,UM:581,UY:858,UZ:860,VU:548,VE:862,VN:704,VG:92,VI:850,WF:876,EH:732,YE:887,ZM:894,ZW:716,XK:926};const Ae=["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"];var Oe;(function(t){t.types=[...Ae];function e(e){return t.types.includes(e)}t.is=e;function o(t){return{784:"AED",971:"AFN","008":"ALL","051":"AMD",532:"ANG",973:"AOA","032":"ARS","036":"AUD",533:"AWG",944:"AZN",977:"BAM","052":"BBD","050":"BDT",975:"BGN","048":"BHD",108:"BIF","060":"BMD","096":"BND","068":"BOB",984:"BOV",986:"BRL","044":"BSD","064":"BTN","072":"BWP",933:"BYN","084":"BZD",124:"CAD",976:"CDF",947:"CHE",756:"CHF",948:"CHW",990:"CLF",152:"CLP",156:"CNY",170:"COP",970:"COU",188:"CRC",931:"CUC",192:"CUP",132:"CVE",203:"CZK",262:"DJF",208:"DKK",214:"DOP","012":"DZD",818:"EGP",232:"ERN",230:"ETB",978:"EUR",242:"FJD",238:"FKP",826:"GBP",981:"GEL",936:"GHS",292:"GIP",270:"GMD",324:"GNF",320:"GTQ",328:"GYD",344:"HKD",340:"HNL",191:"HRK",332:"HTG",348:"HUF",360:"IDR",376:"ILS",356:"INR",368:"IQD",364:"IRR",352:"ISK",388:"JMD",400:"JOD",392:"JPY",404:"KES",417:"KGS",116:"KHR",174:"KMF",408:"KPW",410:"KRW",414:"KWD",136:"KYD",398:"KZT",418:"LAK",422:"LBP",144:"LKR",430:"LRD",426:"LSL",434:"LYD",504:"MAD",498:"MDL",969:"MGA",807:"MKD",104:"MMK",496:"MNT",446:"MOP",929:"MRU",480:"MUR",462:"MVR",454:"MWK",484:"MXN",979:"MXV",458:"MYR",943:"MZN",516:"NAD",566:"NGN",558:"NIO",578:"NOK",524:"NPR",554:"NZD",512:"OMR",590:"PAB",604:"PEN",598:"PGK",608:"PHP",586:"PKR",985:"PLN",600:"PYG",634:"QAR",946:"RON",941:"RSD",643:"RUB",646:"RWF",682:"SAR","090":"SBD",690:"SCR",938:"SDG",752:"SEK",702:"SGD",654:"SHP",694:"SLL",706:"SOS",968:"SRD",728:"SSP",930:"STN",222:"SVC",760:"SYP",748:"SZL",764:"THB",972:"TJS",934:"TMT",788:"TND",776:"TOP",949:"TRY",780:"TTD",901:"TWD",834:"TZS",980:"UAH",800:"UGX",840:"USD",997:"USN",940:"UYI",858:"UYU",927:"UYW",860:"UZS",928:"VES",704:"VND",548:"VUV",882:"WST",950:"XAF",961:"XAG",959:"XAU",955:"XBA",956:"XBB",957:"XBC",958:"XBD",951:"XCD",960:"XDR",952:"XOF",964:"XPD",953:"XPF",962:"XPT",994:"XSU",963:"XTS",965:"XUA",999:"XXX",886:"YER",710:"ZAR",967:"ZMW",932:"ZWL"}[t]}t.from=o;function s(e,o){const s=t.decimalDigits(o)??2;const n=Math.pow(10,s);const i=(e.toString().split(".")?.[1]?.length??0)-1;return Math.round((e+(i<=s+5?Number.EPSILON:Math.pow(10,-i)))*n)/n}t.round=s;function n(t,e,o){return s(s(e,t)+s(o,t),t)}t.add=n;function i(t,e,o){return s(s(e,t)/o,t)}t.divide=i;function l(t,e,o,n){return s(s(e,t)*o,n??t)}t.multiply=l;function r(t,e,o){return s(s(e,t)-s(o,t),t)}t.subtract=r;function a(e,o){const s=t.decimalDigits(o);return typeof s=="number"?Math.round(e*10**s):e}t.toMinor=a;function c(e,o){const s=t.decimalDigits(o);return typeof s=="number"?t.divide(o,e,10**s):e}t.fromMinor=c;function h(e,o){const s=t.decimalDigits(o);return s==undefined?true:isNaN(e)?false:(e.toString().split(".")[1]?.length??0)<=s}t.isRounded=h;function u(t){return{AED:2,AFN:2,ALL:2,AMD:2,ANG:2,AOA:2,ARS:2,AUD:2,AWG:2,AZN:2,BAM:2,BBD:2,BDT:2,BGN:2,BHD:3,BIF:0,BMD:2,BND:2,BOB:2,BOV:2,BRL:2,BSD:2,BTN:2,BWP:2,BYN:2,BZD:2,CAD:2,CDF:2,CHE:2,CHF:2,CHW:2,CLF:4,CLP:0,CNY:2,COP:2,COU:2,CRC:2,CUC:2,CUP:2,CVE:2,CZK:2,DJF:0,DKK:2,DOP:2,DZD:2,EGP:2,ERN:2,ETB:2,EUR:2,FJD:2,FKP:2,GBP:2,GEL:2,GHS:2,GIP:2,GMD:2,GNF:0,GTQ:2,GYD:2,HKD:2,HNL:2,HRK:2,HTG:2,HUF:2,IDR:2,ILS:2,INR:2,IQD:3,IRR:2,ISK:0,JMD:2,JOD:3,JPY:0,KES:2,KGS:2,KHR:2,KMF:0,KPW:2,KRW:0,KWD:3,KYD:2,KZT:2,LAK:2,LBP:2,LKR:2,LRD:2,LSL:2,LYD:3,MAD:2,MDL:2,MGA:2,MKD:2,MMK:2,MNT:2,MOP:2,MRU:2,MUR:2,MVR:2,MWK:2,MXN:2,MXV:2,MYR:2,MZN:2,NAD:2,NGN:2,NIO:2,NOK:2,NPR:2,NZD:2,OMR:3,PAB:2,PEN:2,PGK:2,PHP:2,PKR:2,PLN:2,PYG:0,QAR:2,RON:2,RSD:2,RUB:2,RWF:0,SAR:2,SBD:2,SCR:2,SDG:2,SEK:2,SGD:2,SHP:2,SLL:2,SOS:2,SRD:2,SSP:2,STN:2,SVC:2,SYP:2,SZL:2,THB:2,TJS:2,TMT:2,TND:3,TOP:2,TRY:2,TTD:2,TWD:2,TZS:2,UAH:2,UGX:0,USD:2,USN:2,UYI:0,UYU:2,UYW:4,UZS:2,VES:2,VND:0,VUV:0,WST:2,XAF:0,XAG:undefined,XAU:undefined,XBA:undefined,XBB:undefined,XBC:undefined,XBD:undefined,XCD:2,XDR:undefined,XOF:0,XPD:undefined,XPF:0,XPT:undefined,XSU:undefined,XTS:undefined,XUA:undefined,XXX:undefined,YER:2,ZAR:2,ZMW:2,ZWL:2}[t]}t.decimalDigits=u})(Oe||(Oe={}));var Te;(function(t){t.types=["008","012","032","036","044","048","050","051","052","060","064","068","072","084","090","096","104","108","116","124","132","136","144","152","156","170","174","188","191","192","203","208","214","222","230","232","238","242","262","270","292","320","324","328","332","340","344","348","352","356","360","364","368","376","388","392","398","400","404","408","410","414","417","418","422","426","430","434","446","454","458","462","480","484","496","498","504","512","516","524","532","533","548","554","558","566","578","586","590","598","600","604","608","634","643","646","654","682","690","694","702","704","706","710","728","748","752","756","760","764","776","780","784","788","800","807","818","826","834","840","858","860","882","886","901","927","928","929","930","931","932","933","934","936","938","940","941","943","944","946","947","948","949","950","951","952","953","955","956","957","958","959","960","961","962","963","964","965","967","968","969","970","971","972","973","975","976","977","978","979","980","981","984","985","986","990","994","997","999"];function e(e){return t.types.includes(e)}t.is=e;function o(t){return{ALL:"008",DZD:"012",ARS:"032",AUD:"036",BSD:"044",BHD:"048",BDT:"050",AMD:"051",BBD:"052",BMD:"060",BTN:"064",BOB:"068",BWP:"072",BZD:"084",SBD:"090",BND:"096",MMK:"104",BIF:"108",KHR:"116",CAD:"124",CVE:"132",KYD:"136",LKR:"144",CLP:"152",CNY:"156",COP:"170",KMF:"174",CRC:"188",HRK:"191",CUP:"192",CZK:"203",DKK:"208",DOP:"214",SVC:"222",ETB:"230",ERN:"232",FKP:"238",FJD:"242",DJF:"262",GMD:"270",GIP:"292",GTQ:"320",GNF:"324",GYD:"328",HTG:"332",HNL:"340",HKD:"344",HUF:"348",ISK:"352",INR:"356",IDR:"360",IRR:"364",IQD:"368",ILS:"376",JMD:"388",JPY:"392",KZT:"398",JOD:"400",KES:"404",KPW:"408",KRW:"410",KWD:"414",KGS:"417",LAK:"418",LBP:"422",LSL:"426",LRD:"430",LYD:"434",MOP:"446",MWK:"454",MYR:"458",MVR:"462",MUR:"480",MXN:"484",MNT:"496",MDL:"498",MAD:"504",OMR:"512",NAD:"516",NPR:"524",ANG:"532",AWG:"533",VUV:"548",NZD:"554",NIO:"558",NGN:"566",NOK:"578",PKR:"586",PAB:"590",PGK:"598",PYG:"600",PEN:"604",PHP:"608",QAR:"634",RUB:"643",RWF:"646",SHP:"654",SAR:"682",SCR:"690",SLL:"694",SGD:"702",VND:"704",SOS:"706",ZAR:"710",SSP:"728",SZL:"748",SEK:"752",CHF:"756",SYP:"760",THB:"764",TOP:"776",TTD:"780",AED:"784",TND:"788",UGX:"800",MKD:"807",EGP:"818",GBP:"826",TZS:"834",USD:"840",UYU:"858",UZS:"860",WST:"882",YER:"886",TWD:"901",UYW:"927",VES:"928",MRU:"929",STN:"930",CUC:"931",ZWL:"932",BYN:"933",TMT:"934",GHS:"936",SDG:"938",UYI:"940",RSD:"941",MZN:"943",AZN:"944",RON:"946",CHE:"947",CHW:"948",TRY:"949",XAF:"950",XCD:"951",XOF:"952",XPF:"953",XBA:"955",XBB:"956",XBC:"957",XBD:"958",XAU:"959",XDR:"960",XAG:"961",XPT:"962",XTS:"963",XPD:"964",XUA:"965",ZMW:"967",SRD:"968",MGA:"969",COU:"970",AFN:"971",TJS:"972",AOA:"973",BGN:"975",CDF:"976",BAM:"977",EUR:"978",MXV:"979",UAH:"980",GEL:"981",BOV:"984",PLN:"985",BRL:"986",CLF:"990",XSU:"994",USN:"997",XXX:"999"}[t]}t.from=o;function s(t){return{"008":2,"012":2,"032":2,"036":2,"044":2,"048":3,"050":2,"051":2,"052":2,"060":2,"064":2,"068":2,"072":2,"084":2,"090":2,"096":2,104:2,108:0,116:2,124:2,132:2,136:2,144:2,152:0,156:2,170:2,174:0,188:2,191:2,192:2,203:2,208:2,214:2,222:2,230:2,232:2,238:2,242:2,262:0,270:2,292:2,320:2,324:0,328:2,332:2,340:2,344:2,348:2,352:0,356:2,360:2,364:2,368:3,376:2,388:2,392:0,398:2,400:3,404:2,408:2,410:0,414:3,417:2,418:2,422:2,426:2,430:2,434:3,446:2,454:2,458:2,462:2,480:2,484:2,496:2,498:2,504:2,512:3,516:2,524:2,532:2,533:2,548:0,554:2,558:2,566:2,578:2,586:2,590:2,598:2,600:0,604:2,608:2,634:2,643:2,646:0,654:2,682:2,690:2,694:2,702:2,704:0,706:2,710:2,728:2,748:2,752:2,756:2,760:2,764:2,776:2,780:2,784:2,788:3,800:0,807:2,818:2,826:2,834:2,840:2,858:2,860:2,882:2,886:2,901:2,927:4,928:2,929:2,930:2,931:2,932:2,933:2,934:2,936:2,938:2,940:0,941:2,943:2,944:2,946:2,947:2,948:2,949:2,950:0,951:2,952:0,953:0,955:undefined,956:undefined,957:undefined,958:undefined,959:undefined,960:undefined,961:undefined,962:undefined,963:undefined,964:undefined,965:undefined,967:2,968:2,969:2,970:2,971:2,972:2,973:2,975:2,976:2,977:2,978:2,979:2,980:2,981:2,984:2,985:2,986:2,990:4,994:undefined,997:2,999:undefined}[t]}t.decimalDigits=s})(Te||(Te={}));var Ne;(function(t){function e(t){return typeof t=="string"&&t.length==10&&new globalThis.Date(t).toString()!="Invalid Date"&&s(new globalThis.Date(t))==t}t.is=e;function o(t,e){return new globalThis.Date(t+(e??"T12:00:00.000Z"))}t.parse=o;function s(t){return t.toISOString().substring(0,10)}t.create=s;function n(){return s(new globalThis.Date)}t.now=n;function i(t,s,n){return(e(t)?o(t):t).toLocaleString(s?s:Intl.DateTimeFormat().resolvedOptions().locale,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:n??Intl.DateTimeFormat().resolvedOptions().timeZone}).substring(0,10).replaceAll(" "," ")}t.localize=i;function l(e,s=1){let n;if(typeof s=="number"){const i=o(e);i.setDate(i.getDate()+s);n=t.create(i)}else{n=e;if(s.years)n=h(n,s.years);if(s.months)n=a(n,s.months);if(s.days)n=l(n,s.days)}return n}t.next=l;function r(e,s=1){let n;if(typeof s=="number"){const i=o(e);i.setDate(i.getDate()-s);n=t.create(i)}else{n=e;if(s.years)n=u(n,s.years);if(s.months)n=c(n,s.months);if(s.days)n=r(n,s.days)}return n}t.previous=r;function a(e,s=1){const n=o(e);n.setMonth(n.getMonth()+s);return t.create(n)}t.nextMonth=a;function c(t,e=1){return a(t,-e)}t.previousMonth=c;function h(e,s=1){const n=o(e);n.setFullYear(n.getFullYear()+s);return t.create(n)}t.nextYear=h;function u(t,e=1){return h(t,-e)}t.previousYear=u;function d(e){const s=o(e);s.setMonth(0);s.setDate(1);return t.create(s)}t.firstOfYear=d;function m(e){const s=o(e);s.setFullYear(s.getFullYear()+1);s.setMonth(0);s.setDate(0);return t.create(s)}t.lastOfYear=m;function y(e){const s=o(e);s.setDate(1);return t.create(s)}t.firstOfMonth=y;function f(e){const s=o(e);s.setMonth(s.getMonth()+1);s.setDate(0);return t.create(s)}t.lastOfMonth=f;function p(e){const s=o(e);const n=s.getDate()-(s.getDay()||7)+1;s.setDate(n);return t.create(s)}t.firstOfWeek=p;function b(e){const s=o(e);const n=s.getDate()-s.getDay()+7;s.setDate(n);return t.create(s)}t.lastOfWeek=b;function g(t){return Number.parseInt(t.substring(0,4))}t.getYear=g;function v(t){return Number.parseInt(t.substring(5,7))}t.getMonth=v;function w(t){const e=new globalThis.Date(t);e.setHours(0,0,0,0);e.setDate(e.getDate()+3-(e.getDay()+6)%7);const o=new globalThis.Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-o.getTime())/864e5-3+(o.getDay()+6)%7)/7)}t.getWeek=w;function k(t){return Number.parseInt(t.substring(8,10))}t.getDay=k;function S(t,e,o){const s=o?.format??"long";return e?new globalThis.Date(t).toLocaleDateString(e,{weekday:s}):new globalThis.Date(t).getDay()}t.getWeekDay=S;function x(t,e=1,o=[]){const s=new Set(o);let n=l(t,e);let i=S(n);while(i==6||i==0||s.has(n)){n=l(n,i==6?2:1);i=S(n)}return n}t.nextWeekday=x;function C(t,e){return{years:g(t)-g(e),months:v(t)-v(e),days:k(t)-k(e)}}t.span=C;t.epochStart="0000-01-01";t.epochEnd="9999-12-31";function M(t){return`${(9999-g(t)).toFixed(0).padStart(4,"0")}-${(13-v(t)).toFixed(0).padStart(2,"0")}-${(32-k(t)).toFixed(0).padStart(2,"0")}`}t.invert=M})(Ne||(Ne={}));var Ie;(function(t){function e(t){return typeof t=="object"&&Ne.is(t.start)&&Ne.is(t.end)}t.is=e;function o(t,e){return!Ne.is(e)?o(t,Ne.next(t,e)):t<=e?{start:t,end:e}:{start:e,end:t}}t.create=o;function s(t,e=true){const o=[];for(let s=t.start;e?s<=t.end:s<t.end;s=Ne.next(s))o.push(s);return o}t.toDates=s;function n(t){const e=t.start<=t.end?Math.ceil((new globalThis.Date(t.end).getTime()-new globalThis.Date(t.start).getTime())/(1e3*3600*24)):-n({start:t.end,end:t.start});return e}t.getDays=n})(Ie||(Ie={}));var Re;(function(t){function e(t){return typeof t=="object"&&(typeof t.years=="number"||t.years==undefined)&&(typeof t.months=="number"||t.months==undefined)&&(typeof t.days=="number"||t.days==undefined)&&(typeof t.years=="number"||typeof t.months=="number"||typeof t.days=="number")}t.is=e})(Re||(Re={}));var Le;(function(t){t.values=["-12:00","-11:00","-10:00","-09:30","-09:00","-08:00","-07:00","-06:00","-05:00","-04:00","-03:30","-03:00","-02:00","-01:00","-00:00","Z","+00:00","+01:00","+02:00","+03:00","+03:30","+04:00","+04:30","+05:00","+05:30","+05:45","+06:00","+06:30","+07:00","+08:00","+08:45","+09:00","+09:30","+10:00","+10:30","+11:00","+12:00","+12:45","+13:00","+14:00"];function e(e){return typeof e=="string"&&t.values.includes(e)}t.is=e})(Le||(Le={}));var Ee;(function(t){function e(t){return t[0]>="0"&&t[0]<="1"&&t[1]>="0"&&t[1]<="9"||t[0]=="2"&&t[1]>="0"&&t[1]<="3"}function o(t){return t[0]>="0"&&t[0]<="5"&&t[1]>="0"&&t[1]<="9"}function s(t){return t[0]>="0"&&t[0]<="5"&&t[1]>="0"&&t[1]<="9"||t=="60"||t=="61"}function n(t){return typeof t=="string"&&t.length>=13&&t.length<=29&&Ne.is(t.substring(0,10))&&t[10]=="T"&&e(t.substring(11,13))&&(t.length==13||Le.is(t.substring(13))||t[13]==":"&&t.length>=16&&o(t.substring(14,16))&&(t.length==16||Le.is(t.substring(16))||t[16]==":"&&t.length>=19&&s(t.substring(17,19))&&(t.length==19||Le.is(t.substring(19))||t[19]=="."&&t.length>=23&&[...t.substring(20,23)].every((t=>t>="0"&&t<="9"))&&(t.length==23||Le.is(t.substring(23))))))}t.is=n;function i(e){return new globalThis.Date(t.truncate(e,"milliseconds"))}t.parse=i;function l(t,e="seconds"){if(typeof t=="number"){switch(e){case"days":t=t*24;case"hours":t=t*60;case"minutes":t=t*60;case"seconds":t=t*1e3}t=new globalThis.Date(t)}return r(t.toISOString())}t.create=l;function r(t){if(t.length==22&&t.match(/\.\dZ$/))t=t.substring(0,21)+"00Z";else if(t.length==23&&t.match(/\.\d\dZ$/))t=t.substring(0,22)+"0Z";return t}t.fixIncorrect=r;function a(t,e){t=t.replace(/(Z|([+-].{5}))?$/,"");const o=new globalThis.Date(`${t}Z`);const s=new globalThis.Date(o.toLocaleString("sv-SE",{timeZone:e}).replace(" ","T")+"Z");const n=(s.getTime()-o.getTime())/6e4;const i=Math.floor(Math.abs(n)/60).toString().padStart(2,"0");const l=(Math.abs(n)%60).toString().padStart(2,"0");const r=`${n>=0?"+":"-"}${i}:${l}`;return`${t}${r}`}t.fromLocalDateTime=a;function c(){return l(new globalThis.Date)}t.now=c;function h(e,o,s){let l;if(typeof o=="object"){const t=s?s:Intl.DateTimeFormat().resolvedOptions().locale;l=(n(e)?i(e):e).toLocaleString(t,o).replaceAll(" "," ")}else{const i=n(e)?t.precision(e):"milliseconds";l=h(e,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:i=="minutes"||i=="seconds"||i=="milliseconds"?"2-digit":undefined,second:i=="seconds"||i=="milliseconds"?"2-digit":undefined,timeZone:s},o)}return l}t.localize=h;function u(t){return d(t)}t.timeZone=u;function d(t){const e=t[t.length-1]=="Z"?"Z":t.substring(t.length-6);return Le.is(e)?e:""}t.timeZoneOffset=d;function m(t){return i(t).getTimezoneOffset()}t.timeZoneShort=m;function y(t){const e=d(t);const o=t.substring(0,t.length-e.length).split("T",2)[1];let s;switch(o.length){case 2:s="hours";break;case 5:s="minutes";break;case 8:s="seconds";break;default:case 12:s="milliseconds";break}return s}t.precision=y;function f(t,e){const o=d(t);let[s,n]=t.split("T",2);n=n.substring(0,n.length-o.length);switch(n.length){case 2:n+=":00:00.000";break;case 5:n+=":00.000";break;case 8:n+=".000";break}let i;switch(e){case"hours":i=n.substring(0,2);break;case"minutes":i=n.substring(0,5);break;case"seconds":i=n.substring(0,8);break;case"milliseconds":i=n.substring(0,12);break}return s+"T"+i+o}t.truncate=f;function p(t,e="seconds"){let o=(typeof t=="string"?i(t):t).getTime();switch(e){case"days":o=Math.round(o/24);case"hours":o=Math.round(o/60);case"minutes":o=Math.round(o/60);case"seconds":o=Math.round(o/1e3)}return o}t.epoch=p;function b(t,e=1){let o;if(typeof e=="number")o=k(t,e);else{o=t;if(e.years)o=R(o,e.years);if(e.months)o=N(o,e.months);if(e.days)o=O(o,e.days);if(e.hours)o=M(o,e.hours);if(e.minutes)o=x(o,e.minutes);if(e.seconds)o=k(o,e.seconds);if(e.milliseconds)o=v(o,e.milliseconds)}return o}t.next=b;function g(t,e=1){let o;if(typeof e=="number")o=S(t,e);else{o=t;if(e.years)o=L(o,e.years);if(e.months)o=I(o,e.months);if(e.days)o=T(o,e.days);if(e.hours)o=A(o,e.hours);if(e.minutes)o=C(o,e.minutes);if(e.seconds)o=S(o,e.seconds);if(e.milliseconds)o=w(o,e.milliseconds)}return o}t.previous=g;function v(e,o=1){const s=i(e);s.setMilliseconds(s.getMilliseconds()+o);return t.create(s)}t.nextMillisecond=v;function w(t,e=1){return v(t,-e)}t.previousMillisecond=w;function k(e,o=1){const s=i(e);s.setSeconds(s.getSeconds()+o);return t.create(s)}t.nextSecond=k;function S(t,e=1){return k(t,-e)}t.previousSecond=S;function x(e,o=1){const s=i(e);s.setMinutes(s.getMinutes()+o);return t.create(s)}t.nextMinute=x;function C(t,e=1){return x(t,-e)}t.previousMinute=C;function M(e,o=1){const s=i(e);s.setHours(s.getHours()+o);return t.create(s)}t.nextHour=M;function A(t,e=1){return M(t,-e)}t.previousHour=A;function O(e,o=1){const s=i(e);const n=s.getTimezoneOffset();s.setDate(s.getDate()+o);s.setMinutes(s.getMinutes()+n-s.getTimezoneOffset());return t.create(s)}t.nextDay=O;function T(t,e=1){return O(t,-e)}t.previousDay=T;function N(e,o=1){const s=i(e);const n=s.getTimezoneOffset();s.setMonth(s.getMonth()+o);s.setMinutes(s.getMinutes()+n-s.getTimezoneOffset());return t.create(s)}t.nextMonth=N;function I(t,e=1){return N(t,-e)}t.previousMonth=I;function R(e,o=1){const s=i(e);s.setFullYear(s.getFullYear()+o);return t.create(s)}t.nextYear=R;function L(t,e=1){return R(t,-e)}t.previousYear=L;function E(t){return t.substring(0,10)}t.getDate=E;function D(t){return t.substring(11)}t.getTime=D;function P(t){return Number.parseInt(t.substring(0,4))}t.getYear=P;function B(t){return Number.parseInt(t.substring(5,7))}t.getMonth=B;function G(t){return Number.parseInt(t.substring(8,10))}t.getDay=G;function j(t){return Number.parseInt(t.substring(11,13))}t.getHour=j;function K(t){return Number.parseInt(t.substring(14,16))}t.getMinute=K;function U(t){return Number.parseInt(t.substring(17,19))}t.getSecond=U;function _(t){return Number.parseInt(t.substring(20,23))}t.getMillisecond=_;function H(t,e,o="years"){let s;if(o=="years"){s={...Ne.span(t,e),hours:j(t)-j(e),minutes:K(t)-K(e),seconds:U(t)-U(e),milliseconds:_(t)-_(e)}}else{let n=p(t,"milliseconds")-p(e,"milliseconds");const i=Math.sign(n);n=Math.abs(n);s={};switch(o){case"hours":s.hours=i*Math.floor(n/(3600*1e3));n-=i*s.hours*3600*1e3;case"minutes":s.minutes=i*Math.floor(n/(60*1e3));n-=i*s.minutes*60*1e3;case"seconds":s.seconds=i*Math.floor(n/1e3);n-=i*s.seconds*1e3;case"milliseconds":s.milliseconds=i*n}}return s}t.span=H;t.epochStart="0000-01-01T00:00:00.000Z";t.epochEnd="9999-12-31T23:59:59.999Z";function F(t){return`${Ne.invert(E(t))}T${(24-j(t)).toFixed(0).padStart(2,"0")}:${(60-K(t)).toFixed(0).padStart(2,"0")}:${(60-U(t)).toFixed(0).padStart(2,"0")}.${(999-_(t)).toFixed(0).padStart(3,"0")}Z`}t.invert=F})(Ee||(Ee={}));class De{}class Pe extends De{encode(t){return Uint8Array.from(t.split(""),(t=>Ge[t]))}decode(t){return!t?"":new Uint8Array(t.buffer,t.byteOffset,t.byteLength).reduce(((t,e)=>t+Be[e]),"")}}const Be=["\0","","","","","","","","\b","\t","\n","\v","\f","\r","","","","","","","","","","","","","","","","","",""," ","!",'"',"#","$","%","&",'"',"(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\\","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","","€","","‚","ƒ","„","…","†","‡","ˆ","‰","Š","‹","Œ","","Ž","","","‘","’","“","”","•","–","—","˜","™","š","›","œ","","ž","Ÿ"," ","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","¬","","®","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ý","þ","ÿ"];const Ge={"\0":0,"":1,"":2,"":3,"":4,"":5,"":6,"":7,"\b":8,"\t":9,"\n":10,"\v":11,"\f":12,"\r":13,"":14,"":15,"":16,"":17,"":18,"":19,"":20,"":21,"":22,"":23,"":24,"":25,"":26,"":27,"":28,"":29,"":30,"":31," ":32,"!":33,'"':34,"#":35,$:36,"%":37,"&":38,"'":39,"(":40,")":41,"*":42,"+":43,",":44,"-":45,".":46,"/":47,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,":":58,";":59,"<":60,"=":61,">":62,"?":63,"@":64,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,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,a:97,b:98,c:99,d:100,e:101,f:102,g:103,h:104,i:105,j:106,k:107,l:108,m:109,n:110,o:111,p:112,q:113,r:114,s:115,t:116,u:117,v:118,w:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126,"":127,"€":128,"":129,"‚":130,ƒ:131,"„":132,"…":133,"†":134,"‡":135,ˆ:136,"‰":137,Š:138,"‹":139,Œ:140,"":141,Ž:142,"":143,"":144,"‘":145,"’":146,"“":147,"”":148,"•":149,"–":150,"—":151,"˜":152,"™":153,š:154,"›":155,œ:156,"":157,ž:158,Ÿ:159," ":160,"¡":161,"¢":162,"£":163,"¤":164,"¥":165,"¦":166,"§":167,"¨":168,"©":169,ª:170,"«":171,"¬":172,"":173,"®":174,"¯":175,"°":176,"±":177,"²":178,"³":179,"´":180,µ:181,"¶":182,"·":183,"¸":184,"¹":185,º:186,"»":187,"¼":188,"½":189,"¾":190,"¿":191,À:192,Á:193,Â:194,Ã:195,Ä:196,Å:197,Æ:198,Ç:199,È:200,É:201,Ê:202,Ë:203,Ì:204,Í:205,Î:206,Ï:207,Ð:208,Ñ:209,Ò:210,Ó:211,Ô:212,Õ:213,Ö:214,"×":215,Ø:216,Ù:217,Ú:218,Û:219,Ü:220,Ý:221,Þ:222,ß:223,à:224,á:225,â:226,ã:227,ä:228,å:229,æ:230,ç:231,è:232,é:233,ê:234,ë:235,ì:236,í:237,î:238,ï:239,ð:240,ñ:241,ò:242,ó:243,ô:244,õ:245,ö:246,"÷":247,ø:248,ù:249,ú:250,û:251,ü:252,ý:253,þ:254,ÿ:255};class je extends De{encode(t){return Uint8Array.from(unescape(encodeURIComponent(t)).split(""),(t=>t.charCodeAt(0)))}decode(t){return!t?"":decodeURIComponent(escape(Array.from(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),(t=>String.fromCharCode(t))).join("")))}}var Ke;(function(t){t.values=["UTF-8","UTF-16","UTF-32","ASCII","CP037","CP930","CP1047","ISO-8859-1","ISO-8859-2","ISO-8859-3","ISO-8859-4","ISO-8859-5","ISO-8859-6","ISO-8859-7","ISO-8859-8","ISO-8859-9","ISO-8859-10","ISO-8859-11","ISO-8859-13","ISO-8859-14","ISO-8859-15","ISO-8859-16","CP437","CP720","CP737","CP850","CP852","CP855","CP857","CP858","CP860","CP861","CP862","CP863","CP865","CP866","CP869","CP872","Windows-1250","Windows-1251","Windows-1252","Windows-1253","Windows-1254","Windows-1255","Windows-1256","Windows-1257","Windows-1258","Mac OS Roman","KOI8-R","KOI8-U","KOI7","MIK","ISCII","TSCII","VISCII","Shift_JIS","EUC-JP","ISO-2022-JP","Shift_JIS-2004","EUC-JIS-2004","ISO-2022-2004","GB 2312","GBK","GB 18030","Big5","HKSCS","KS X 1001","EUC-KR","ISO-2022-KR","T.51"];function e(e){return typeof e=="string"&&t.values.some((t=>t==e))}t.is=e;function o(t){let e;switch(t.toUpperCase()){case"UTF-8":case"UTF8":case"UTF 8":e="UTF-8";break;case"UTF-16":e="UTF-16";break;case"UTF-32":e="UTF-32";break;case"US-ASCII":case"ASCII":e="ASCII";break;case"CP037":e="CP037";break;case"CP930":e="CP930";break;case"CP1047":e="CP1047";break;case"ISO-IR-100":case"CSISOLATIN1":case"LATIN1":case"LATIN-1":case"L1":case"IBM819":case"CODE PAGE 28591":case"WINDOWS-28591":case"CODE PAGE 819":case"CP819":case"CCSID 819":case"WE8ISO8859P1":case"ISO 8859-1":case"ISO-8859-1":e="ISO-8859-1";break;case"ISO-8859-2":e="ISO-8859-2";break;case"ISO-8859-3":e="ISO-8859-3";break;case"ISO-8859-4":e="ISO-8859-4";break;case"ISO-8859-5":e="ISO-8859-5";break;case"ISO-8859-6":e="ISO-8859-6";break;case"ISO-8859-7":e="ISO-8859-7";break;case"ISO-8859-8":e="ISO-8859-8";break;case"ISO-8859-9":e="ISO-8859-9";break;case"ISO-8859-10":e="ISO-8859-10";break;case"ISO-8859-11":e="ISO-8859-11";break;case"ISO-8859-13":e="ISO-8859-13";break;case"ISO-8859-14":e="ISO-8859-14";break;case"ISO-8859-15":e="ISO-8859-15";break;case"ISO-8859-16":e="ISO-8859-16";break;case"CP437":e="CP437";break;case"CP720":e="CP720";break;case"CP737":e="CP737";break;case"CP850":e="CP850";break;case"CP852":e="CP852";break;case"CP855":e="CP855";break;case"CP857":e="CP857";break;case"CP858":e="CP858";break;case"CP860":e="CP860";break;case"CP861":e="CP861";break;case"CP862":e="CP862";break;case"CP863":e="CP863";break;case"CP865":e="CP865";break;case"CP866":e="CP866";break;case"CP869":e="CP869";break;case"CP872":e="CP872";break;case"WINDOWS-1250":e="Windows-1250";break;case"WINDOWS-1251":e="Windows-1251";break;case"WINDOWS-1252":e="Windows-1252";break;case"WINDOWS-1253":e="Windows-1253";break;case"WINDOWS-1254":e="Windows-1254";break;case"WINDOWS-1255":e="Windows-1255";break;case"WINDOWS-1256":e="Windows-1256";break;case"WINDOWS-1257":e="Windows-1257";break;case"WINDOWS-1258":e="Windows-1258";break;case"MAC OS ROMAN":e="Mac OS Roman";break;case"KOI8-R":e="KOI8-R";break;case"KOI8-U":e="KOI8-U";break;case"KOI7":e="KOI7";break;case"MIK":e="MIK";break;case"ISCII":e="ISCII";break;case"TSCII":e="TSCII";break;case"VISCII":e="VISCII";break;case"SHIFT_JIS":e="Shift_JIS";break;case"EUC-JP":e="EUC-JP";break;case"ISO-2022-JP":e="ISO-2022-JP";break;case"SHIFT_JIS-2004":e="Shift_JIS-2004";break;case"EUC-JIS-2004":e="EUC-JIS-2004";break;case"ISO-2022-2004":e="ISO-2022-2004";break;case"GB 2312":e="GB 2312";break;case"GBK":e="GBK";break;case"GB 18030":e="GB 18030";break;case"BIG5":e="Big5";break;case"HKSCS":e="HKSCS";break;case"KS X 1001":e="KS X 1001";break;case"EUC-KR":e="EUC-KR";break;case"ISO-2022-KR":e="ISO-2022-KR";break;case"T.51":e="T.51";break}return e}t.parse=o;function s(t,e){return i[t].encode(e)}t.encode=s;function n(t,e){return i[t].decode(e)}t.decode=n;const i={"ISO-8859-1":new Pe,"UTF-8":new je}})(Ke||(Ke={}));var Ue;(function(t){function e(t){return typeof t=="string"&&(t=="ab"||t=="aa"||t=="af"||t=="ak"||t=="sq"||t=="am"||t=="ar"||t=="an"||t=="hy"||t=="as"||t=="av"||t=="ae"||t=="ay"||t=="az"||t=="bm"||t=="ba"||t=="eu"||t=="be"||t=="bn"||t=="bh"||t=="bi"||t=="bs"||t=="br"||t=="bg"||t=="my"||t=="ca"||t=="ch"||t=="ce"||t=="ny"||t=="zh"||t=="cv"||t=="kw"||t=="co"||t=="cr"||t=="hr"||t=="cs"||t=="da"||t=="dv"||t=="nl"||t=="dz"||t=="en"||t=="eo"||t=="et"||t=="ee"||t=="fo"||t=="fj"||t=="fi"||t=="fr"||t=="ff"||t=="gl"||t=="ka"||t=="de"||t=="el"||t=="gn"||t=="gu"||t=="ht"||t=="ha"||t=="he"||t=="hz"||t=="hi"||t=="ho"||t=="hu"||t=="ia"||t=="id"||t=="ie"||t=="ga"||t=="ig"||t=="ik"||t=="io"||t=="is"||t=="it"||t=="iu"||t=="ja"||t=="jv"||t=="kl"||t=="kn"||t=="kr"||t=="ks"||t=="kk"||t=="km"||t=="ki"||t=="rw"||t=="ky"||t=="kv"||t=="kg"||t=="ko"||t=="ku"||t=="kj"||t=="la"||t=="lb"||t=="lg"||t=="li"||t=="ln"||t=="lo"||t=="lt"||t=="lu"||t=="lv"||t=="gv"||t=="mk"||t=="mg"||t=="ms"||t=="ml"||t=="mt"||t=="mi"||t=="mr"||t=="mh"||t=="mn"||t=="na"||t=="nv"||t=="nd"||t=="ne"||t=="ng"||t=="nb"||t=="nn"||t=="no"||t=="ii"||t=="nr"||t=="oc"||t=="oj"||t=="cu"||t=="om"||t=="or"||t=="os"||t=="pa"||t=="pi"||t=="fa"||t=="pl"||t=="ps"||t=="pt"||t=="qu"||t=="rm"||t=="rn"||t=="ro"||t=="ru"||t=="sa"||t=="sc"||t=="sd"||t=="se"||t=="sm"||t=="sg"||t=="sr"||t=="gd"||t=="sn"||t=="si"||t=="sk"||t=="sl"||t=="so"||t=="st"||t=="es"||t=="su"||t=="sw"||t=="ss"||t=="sv"||t=="ta"||t=="te"||t=="tg"||t=="th"||t=="ti"||t=="bo"||t=="tk"||t=="tl"||t=="tn"||t=="to"||t=="tr"||t=="ts"||t=="tt"||t=="tw"||t=="ty"||t=="ug"||t=="uk"||t=="ur"||t=="uz"||t=="ve"||t=="vi"||t=="vo"||t=="wa"||t=="cy"||t=="wo"||t=="fy"||t=="xh"||t=="yi"||t=="yo"||t=="za"||t=="zu")}t.is=e;function o(t){return{ab:"Abkhazian",aa:"Afar",af:"Afrikaans",ak:"Akan",sq:"Albanian",am:"Amharic",ar:"Arabic",an:"Aragonese",hy:"Armenian",as:"Assamese",av:"Avaric",ae:"Avestan",ay:"Aymara",az:"Azerbaijani",bm:"Bambara",ba:"Bashkir",eu:"Basque",be:"Belarusian",bn:"Bengali",bh:"Bihari languages",bi:"Bislama",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan, Valencian",ch:"Chamorro",ce:"Chechen",ny:"Chichewa, Chewa, Nyanja",zh:"Chinese",cv:"Chuvash",kw:"Cornish",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",dv:"Divehi, Dhivehi, Maldivian",nl:"Dutch, Flemish",dz:"Dzongkha",en:"English",eo:"Esperanto",et:"Estonian",ee:"Ewe",fo:"Faroese",fj:"Fijian",fi:"Finnish",fr:"French",ff:"Fulah",gl:"Galician",ka:"Georgian",de:"German",el:"Greek, Modern (1453-)",gn:"Guarani",gu:"Gujarati",ht:"Haitian, Haitian Creole",ha:"Hausa",he:"Hebrew",hz:"Herero",hi:"Hindi",ho:"Hiri Motu",hu:"Hungarian",ia:"Interlingua (International Auxiliary Language Association)",id:"Indonesian",ie:"Interlingue, Occidental",ga:"Irish",ig:"Igbo",ik:"Inupiaq",io:"Ido",is:"Icelandic",it:"Italian",iu:"Inuktitut",ja:"Japanese",jv:"Javanese",kl:"Kalaallisut, Greenlandic",kn:"Kannada",kr:"Kanuri",ks:"Kashmiri",kk:"Kazakh",km:"Central Khmer",ki:"Kikuyu, Gikuyu",rw:"Kinyarwanda",ky:"Kirghiz, Kyrgyz",kv:"Komi",kg:"Kongo",ko:"Korean",ku:"Kurdish",kj:"Kuanyama, Kwanyama",la:"Latin",lb:"Luxembourgish, Letzeburgesch",lg:"Ganda",li:"Limburgan, Limburger, Limburgish",ln:"Lingala",lo:"Lao",lt:"Lithuanian",lu:"Luba-Katanga",lv:"Latvian",gv:"Manx",mk:"Macedonian",mg:"Malagasy",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mh:"Marshallese",mn:"Mongolian",na:"Nauru",nv:"Navajo, Navaho",nd:"North Ndebele",ne:"Nepali",ng:"Ndonga",nb:"Norwegian Bokmål",nn:"Norwegian Nynorsk",no:"Norwegian",ii:"Sichuan Yi, Nuosu",nr:"South Ndebele",oc:"Occitan",oj:"Ojibwa",cu:"Church Slavic, Old Slavonic, Church Slavonic, Old Bulgarian, Old Church Slavonic",om:"Oromo",or:"Oriya",os:"Ossetian, Ossetic",pa:"Panjabi, Punjabi",pi:"Pali",fa:"Persian",pl:"Polish",ps:"Pashto, Pushto",pt:"Portuguese",qu:"Quechua",rm:"Romansh",rn:"Rundi",ro:"Romanian, Moldavian, Moldovan",ru:"Russian",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",se:"Northern Sami",sm:"Samoan",sg:"Sango",sr:"Serbian",gd:"Gaelic, Scottish Gaelic",sn:"Shona",si:"Sinhala, Sinhalese",sk:"Slovak",sl:"Slovenian",so:"Somali",st:"Southern Sotho",es:"Spanish, Castilian",su:"Sundanese",sw:"Swahili",ss:"Swati",sv:"Swedish",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",ti:"Tigrinya",bo:"Tibetan",tk:"Turkmen",tl:"Tagalog",tn:"Tswana",to:"Tonga (Tonga Islands)",tr:"Turkish",ts:"Tsonga",tt:"Tatar",tw:"Twi",ty:"Tahitian",ug:"Uighur, Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",ve:"Venda",vi:"Vietnamese",vo:"Volapük",wa:"Walloon",cy:"Welsh",wo:"Wolof",fy:"Western Frisian",xh:"Xhosa",yi:"Yiddish",yo:"Yoruba",za:"Zhuang, Chuang",zu:"Zulu"}[t]}t.toName=o;function s(t){return{ab:"аҧсуа бызшәа, аҧсшәа",aa:"Afaraf",af:"Afrikaans",ak:"Akan",sq:"Shqip",am:"አማርኛ",ar:"العربية",an:"aragonés",hy:"Հայերեն",as:"অসমীয়া",av:"авар мацӀ, магӀарул мацӀ",ae:"avesta",ay:"aymar aru",az:"azərbaycan dili",bm:"bamanankan",ba:"башҡорт теле",eu:"euskara, euskera",be:"беларуская мова",bn:"বাংলা",bh:"ोजपुरी",bi:"Bislama",bs:"bosanski jezik",br:"brezhoneg",bg:"български език",my:"ဗမာစာ",ca:";català, valencià",ch:"Chamoru",ce:"нохчийн мотт",ny:"chiCheŵa, chinyanja",zh:"中文 (Zhōngwén), 汉语, 漢語",cv:"чӑваш чӗлхи",kw:"Kernewek",co:"corsu, lingua corsa",cr:"ᓀᐦᐃᔭᐍᐏᐣ",hr:"hrvatski jezik",cs:"čeština, český jazyk",da:"dansk",dv:";ދިވެހި",nl:"Nederlands, Vlaams",dz:"རྫོང་ཁ",en:"English",eo:"Esperanto",et:"eesti, eesti keel",ee:"Eʋegbe",fo:"føroyskt",fj:"vosa Vakaviti",fi:"suomi, suomen kieli",fr:"français, langue française",ff:"Fulfulde, Pulaar, Pular",gl:"Galego",ka:"ქართული",de:"Deutsch",el:"ελληνικά",gn:"Avañe'ẽ",gu:"ગુજરાતી",ht:"Kreyòl ayisyen",ha:"(Hausa) هَوُسَ",he:"עברית",hz:"Otjiherero",hi:"हिन्दी, हिंदी",ho:";Hiri Motu",hu:"magyar",ia:"Interlingua",id:"Bahasa Indonesia",ie:"Interlingue",ga:"Gaeilge",ig:"Asụsụ Igbo",ik:"Iñupiaq, Iñupiatun",io:"Ido",is:"Íslenska",it:"Italiano",iu:"ᐃᓄᒃᑎᑐᑦ",ja:"日本語 (にほんご)",jv:"ꦧꦱꦗꦮ, Basa Jawa",kl:"kalaallisut, kalaallit oqaasii",kn:"ಕನ್ನಡ",kr:"Kanuri",ks:"कश्मीरी, كشميري",kk:"қазақ тілі",km:"្មែរ, ខេមរភាសា, ភាសាខ្មែរ",ki:"Gĩkũyũ",rw:"Ikinyarwanda",ky:"Кыргызча, Кыргыз тили",kv:"коми кыв",kg:"Kikongo",ko:"한국어",ku:"Kurdî, کوردی",kj:"Kuanyama",la:"latine, lingua latina",lb:"Lëtzebuergesch",lg:"Luganda",li:"Limburgs",ln:"Lingála",lo:"ພາສາລາວ",lt:"lietuvių kalba",lu:";Kiluba",lv:"latviešu valoda",gv:"Gaelg, Gailck",mk:"македонски јазик",mg:"fiteny malagasy",ms:"Bahasa Melayu, بهاس ملايو",ml:"മലയാളം",mt:"Malti",mi:"te reo Māori",mr:"मराठी",mh:"Kajin M̧ajeļ",mn:"Монгол хэл",na:"Dorerin Naoero",nv:";Diné bizaad",nd:";isiNdebele",ne:"नेपाली",ng:"Owambo",nb:"Norsk Bokmål",nn:"Norsk Nynorsk",no:"Norsk",ii:";ꆈꌠ꒿ Nuosuhxop",nr:";isiNdebele",oc:"occitan, lenga d'òc",oj:"ᐊᓂᔑᓈᐯᒧᐎᓐ",cu:";ѩзыкъ словѣньскъ",om:"Afaan Oromoo",or:"ଓଡ଼ିଆ",os:";ирон æвзаг",pa:";ਪੰਜਾਬੀ",pi:"पाऴि",fa:"فارسی",pl:"język polski, polszczyzna",ps:"پښتو",pt:"Português",qu:"Runa Simi, Kichwa",rm:"Rumantsch Grischun",rn:"Ikirundi",ro:";Română",ru:"русский",sa:"संस्कृतम्",sc:"sardu",sd:"सिन्धी, سنڌي، سندھی",se:";Davvisámegiella",sm:"gagana fa'a Samoa",sg:"yângâ tî sängö",sr:"српски језик",gd:";Gàidhlig",sn:"chiShona",si:";සිංහල",sk:"Slovenčina, Slovenský Jazyk",sl:"Slovenski Jezik, Slovenščina",so:"Soomaaliga, af Soomaali",st:";Sesotho",es:";Español",su:"Basa Sunda",sw:"Kiswahili",ss:"SiSwati",sv:"Svenska",ta:"தமிழ்",te:"తెలుగు",tg:"тоҷикӣ, toçikī, تاجیکی",th:"ไทย",ti:"ትግርኛ",bo:"བོད་ཡིག",tk:"Türkmen, Түркмен",tl:"Wikang Tagalog",tn:"Setswana",to:"Faka Tonga",tr:"Türkçe",ts:"Xitsonga",tt:"татар теле, tatar tele",tw:"Twi",ty:"Reo Tahiti",ug:";ئۇيغۇرچە, Uyghurche",uk:"Українська",ur:"اردو",uz:"Oʻzbek, Ўзбек, أۇزبېك",ve:"Tshivenḓa",vi:"Tiếng Việt",vo:"Volapük",wa:"Walon",cy:"Cymraeg",wo:"Wollof",fy:";Frysk",xh:"isiXhosa",yi:"ייִדיש",yo:"Yorùbá",za:"Saɯ cueŋƅ, Saw cuengh",zu:"isiZu"}[t]}t.toNativeName=s})(Ue||(Ue={}));var _e;(function(t){function e(t){return t=="af-ZA"||t=="am-ET"||t=="ar-AE"||t=="ar-BH"||t=="ar-DZ"||t=="ar-EG"||t=="ar-IQ"||t=="ar-JO"||t=="ar-KW"||t=="ar-LB"||t=="ar-LY"||t=="ar-MA"||t=="arn-CL"||t=="ar-OM"||t=="ar-QA"||t=="ar-SA"||t=="ar-SY"||t=="ar-TN"||t=="ar-YE"||t=="as-IN"||t=="az-AZ"||t=="az-Cyrl-AZ"||t=="az-Latn-AZ"||t=="ba-RU"||t=="be-BY"||t=="bg-BG"||t=="bn-BD"||t=="bn-IN"||t=="bo-CN"||t=="br-FR"||t=="bs-BA"||t=="bs-Cyrl-BA"||t=="bs-Latn-BA"||t=="ca-ES"||t=="co-FR"||t=="cs-CZ"||t=="cy-GB"||t=="da-DK"||t=="de-AT"||t=="de-CH"||t=="de-DE"||t=="de-LI"||t=="de-LU"||t=="dsb-DE"||t=="dv-MV"||t=="el-GR"||t=="en-029"||t=="en-AU"||t=="en-BZ"||t=="en-CA"||t=="en-GB"||t=="en-IE"||t=="en-IN"||t=="en-JM"||t=="en-MY"||t=="en-NZ"||t=="en-PH"||t=="en-SG"||t=="en-TT"||t=="en-US"||t=="en-ZA"||t=="en-ZW"||t=="es-AR"||t=="es-BO"||t=="es-CL"||t=="es-CO"||t=="es-CR"||t=="es-DO"||t=="es-EC"||t=="es-ES"||t=="es-GT"||t=="es-HN"||t=="es-MX"||t=="es-NI"||t=="es-PA"||t=="es-PE"||t=="es-PR"||t=="es-PY"||t=="es-SV"||t=="es-US"||t=="es-UY"||t=="es-VE"||t=="et-EE"||t=="eu-ES"||t=="fa-IR"||t=="fi-FI"||t=="fil-PH"||t=="fo-FO"||t=="fr-BE"||t=="fr-CA"||t=="fr-CH"||t=="fr-FR"||t=="fr-LU"||t=="fr-MC"||t=="fy-NL"||t=="ga-IE"||t=="gd-GB"||t=="gl-ES"||t=="gsw-FR"||t=="gu-IN"||t=="ha-Latn-NG"||t=="he-IL"||t=="hi-IN"||t=="hr-BA"||t=="hr-HR"||t=="hsb-DE"||t=="hu-HU"||t=="hy-AM"||t=="id-ID"||t=="ig-NG"||t=="ii-CN"||t=="is-IS"||t=="it-CH"||t=="it-IT"||t=="iu-Cans-CA"||t=="iu-Latn-CA"||t=="ja-JP"||t=="ka-GE"||t=="kk-KZ"||t=="kl-GL"||t=="km-KH"||t=="kn-IN"||t=="kok-IN"||t=="ko-KR"||t=="ky-KG"||t=="lb-LU"||t=="lo-LA"||t=="lt-LT"||t=="lv-LV"||t=="mi-NZ"||t=="mk-MK"||t=="ml-IN"||t=="mn-MN"||t=="mn-Mong-CN"||t=="moh-CA"||t=="mr-IN"||t=="ms-BN"||t=="ms-MY"||t=="mt-MT"||t=="nb-NO"||t=="ne-NP"||t=="nl-BE"||t=="nl-NL"||t=="nn-NO"||t=="nso-ZA"||t=="oc-FR"||t=="or-IN"||t=="pa-IN"||t=="pl-PL"||t=="prs-AF"||t=="ps-AF"||t=="pt-BR"||t=="pt-PT"||t=="qut-GT"||t=="quz-BO"||t=="quz-EC"||t=="quz-PE"||t=="rm-CH"||t=="ro-RO"||t=="ru-RU"||t=="rw-RW"||t=="sah-RU"||t=="sa-IN"||t=="se-FI"||t=="se-NO"||t=="se-SE"||t=="si-LK"||t=="sk-SK"||t=="sl-SI"||t=="sma-NO"||t=="sma-SE"||t=="smj-NO"||t=="smj-SE"||t=="smn-FI"||t=="sms-FI"||t=="sq-AL"||t=="sr-BA"||t=="sr-CS"||t=="sr-ME"||t=="sr-RS"||t=="sr-Cyrl-BA"||t=="sr-Cyrl-CS"||t=="sr-Cyrl-ME"||t=="sr-Cyrl-RS"||t=="sr-Latn-BA"||t=="sr-Latn-CS"||t=="sr-Latn-ME"||t=="sr-Latn-RS"||t=="sv-FI"||t=="sv-SE"||t=="sw-KE"||t=="syr-SY"||t=="ta-IN"||t=="te-IN"||t=="tg-TJ"||t=="tg-Cyrl-TJ"||t=="th-TH"||t=="tk-TM"||t=="tn-ZA"||t=="tr-TR"||t=="tt-RU"||t=="tzm-DZ"||t=="tzm-Latn-DZ"||t=="ug-CN"||t=="uk-UA"||t=="ur-PK"||t=="uz-UZ"||t=="uz-Cyrl-UZ"||t=="uz-Latn-UZ"||t=="vi-VN"||t=="wo-SN"||t=="xh-ZA"||t=="yo-NG"||t=="zh-CN"||t=="zh-HK"||t=="zh-MO"||t=="zh-SG"||t=="zh-TW"||t=="zu-ZA"}t.is=e;function o(t){const e=t.split("-").shift();return Ue.is(e)?e:undefined}t.toLanguage=o;function s(t){const e=t.split("-").pop();return ve.is(e)?e:undefined}t.toAlpha2=s;function n(t,o){let s;if(o)s=t+"-"+o;else{s={ca:"ca-ES",co:"co-FR",da:"da-DK",de:"de-DE",en:"en-GB",es:"es-ES",et:"et-EE",fi:"fi-FI",fr:"fr-FR",is:"is-IS",ja:"ja-JP",ko:"ko-KR",lb:"lb-LU",lt:"lt-LT",nb:"nb-NO",no:"nn-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-PT",ru:"ru-RU",sv:"sv-SE"}[t]}return e(s)?s:undefined}t.toLocale=n})(_e||(_e={}));var He;(function(t){function e(t){return typeof t=="object"&&Ee.is(t.start)&&Ee.is(t.end)}t.is=e;function o(t,e){return!Ee.is(e)?o(t,Ee.next(t,e)):t<=e?{start:t,end:e}:{start:e,end:t}}t.create=o})(He||(He={}));var Fe;(function(t){function e(t){return typeof t=="object"&&(typeof t.years=="number"||t.years==undefined)&&(typeof t.months=="number"||t.months==undefined)&&(typeof t.days=="number"||t.days==undefined)&&(typeof t.hours=="number"||t.hours==undefined)&&(typeof t.minutes=="number"||t.minutes==undefined)&&(typeof t.seconds=="number"||t.seconds==undefined)&&(typeof t.milliseconds=="number"||t.milliseconds==undefined)&&(typeof t.years=="number"||typeof t.months=="number"||typeof t.days=="number"||typeof t.hours=="number"||typeof t.minutes=="number"||typeof t.seconds=="number"||typeof t.milliseconds=="number")}t.is=e;function o(t,e){const o=(ze(t)+(t.milliseconds??0))/(60*60*1e3)+(t.seconds??0)/(60*60)+(t.minutes??0)/60+(t.hours??0);return We(o,e)}t.toHours=o;function s(t,e){const o=(ze(t)+(t.milliseconds??0))/(60*1e3)+(t.seconds??0)/60+(t.minutes??0)+(t.hours??0)*60;return We(o,e)}t.toMinutes=s;function n(t,e){const o=(ze(t)+(t.milliseconds??0))/1e3+(t.seconds??0)+(t.minutes??0)*60+(t.hours??0)*60*60;return We(o,e)}t.toSeconds=n;function i(t,e){const o=ze(t)+(t.milliseconds??0)+(t.seconds??0)*1e3+(t.minutes??0)*60*1e3+(t.hours??0)*60*60*1e3;return We(o,e)}t.toMilliseconds=i})(Fe||(Fe={}));function ze(t){const e=Date.UTC(0,0);const o=new Date(e);const s=Date.UTC(o.getUTCFullYear()+(t.years??0),o.getUTCMonth()+(t.months??0),o.getUTCDate()+(t.days??0),o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds());return s.valueOf()-o.valueOf()}function We(t,e){return!e?t:e=="ceiling"?Math.ceil(t):e=="floor"?Math.floor(t):Math.round(t)}var Ye;(function(t){function e(t){let e;try{e=typeof t=="string"&&!!new Intl.DateTimeFormat("en-GB",{timeZone:t})}catch(t){e=false}return e}t.is=e})(Ye||(Ye={}));var Ze;(function(t){function e(t){let e;switch(t){case"sq-AL":case"es-AR":case"it-IT":case"en-GB":case"fr-FR":e="dd/mm/YYYY";break;case"en-US":e="mm/dd/YYYY";break;case"et-EE":case"de-AT":case"de-DE":case"he-IL":case"is-IS":case"lv-LV":case"pl-PL":case"ru-RU":case"fi-FI":e="dd.mm.YYYY";break;case"hi-IN":case"en-IN":e="dd-mm-YYYY";break;default:e="YYYY-mm-dd";break}return e}t.fromLocale=e;function o(t){let e;switch(t){case"dd/mm/YYYY":e="en-GB";break;case"mm/dd/YYYY":e="en-US";break;case"dd.mm.YYYY":e="de-DE";break;default:e="sv-SE";break}return e}t.toLocale=o;function s(t){return typeof t=="string"&&(t=="YYYY-mm-dd"||t=="dd/mm/YYYY"||t=="dd.mm.YYYY"||t=="mm/dd/YYYY")}t.is=s})(Ze||(Ze={}));class Ve{constructor(t){this.separator=t}unformat(t){return t.delete(this.separator)}validMonth(t,e,o){return new Date(Number.parseInt(o??"2004"),Number.parseInt(e),0).getDate()>=Number.parseInt(t)}}const $e={};function Xe(t,e){$e[t]=e}le("date",(t=>{const e=t&&t.length>0?t[0]:undefined;const o=Ze.is(e)?e:Ze.fromLocale(e);const s=$e[o]??$e["YYYY-mm-dd"];return s()}));class Je extends Ve{constructor(t){super(t)}toString(t){return t?.length==10?[t.substring(8,10),t.substring(5,7),t.substring(0,4)].join(this.separator):""}fromString(t){const e=t?.length==8?`${t.substring(4,8)}-${t.substring(2,4)}-${t.substring(0,2)}`:undefined;return Ne.is(e)?e:undefined}format(t){let e=t;if(e.get(0,1)>"3")e=e.insert(0,"0");if(e.value.length>1)e=e.insert(2,this.separator);if(e.get(3,1)>"1")e=e.insert(3,"0");if(e.value.length>4)e=e.insert(5,this.separator);return{...e,type:"text",length:[0,10],pattern:new RegExp(["^(0[1-9]|[12][0-9]|3[01])","(0[1-9]|1[012])","\\d{4}$"].join(this.separator))}}allowed(t,e){return e.selection.start==1&&e.value[0]=="3"?t>="0"&&t<="1":e.selection.start==1&&e.value[0]=="0"?t>="1"&&t<="9":e.selection.start==2?t>="0"&&t<="9"&&(t=="0"||t=="1"||this.validMonth(e.value.substring(0,2),t)):e.selection.start==3?t>="0"&&t<="9"&&this.validMonth(e.value.substring(0,2),e.value[2]+t):e.selection.start==7?t>="0"&&t<="9"&&this.validMonth(e.value.substring(0,2),e.value.substring(2,4),e.value.substring(4,7)+t):e.selection.start<8&&t>="0"&&t<="9"}}Xe("dd.mm.YYYY",(()=>new Je(".")));Xe("dd/mm/YYYY",(()=>new Je("/")));Xe("dd-mm-YYYY",(()=>new Je("-")));class Qe extends Ve{constructor(t){super(t)}toString(t){return t?.length==10?[t.substring(5,7),t.substring(8,10),t.substring(0,4)].join(this.separator):""}fromString(t){const e=t.length==8?`${t.substring(4,8)}-${t.substring(0,2)}-${t.substring(2,4)}`:undefined;return Ne.is(e)?e:undefined}format(t){let e=t;if(e.get(0,1)>"1")e=e.insert(0,"0");if(e.value.length>1)e=e.insert(2,this.separator);if(e.get(3,1)>(e.get(0,2)=="02"?"2":"3"))e=e.insert(3,"0");if(e.value.length>4)e=e.insert(5,this.separator);return{...e,type:"text",length:[0,10],pattern:new RegExp(["^(0[1-9]|1[012])","(0[1-9]|[12][0-9]|3[01])","\\d{4}$"].join(this.separator))}}allowed(t,e){const o=e.selection.start==1&&e.value[0]=="1"?t>="0"&&t<="2":e.selection.start==1&&e.value[0]=="0"?t>="1"&&t<="9":e.selection.start==3?t>="0"&&t<="9"&&this.validMonth(e.value[2]+t,e.value.substring(0,2)):e.selection.start==7?t>="0"&&t<="9"&&this.validMonth(e.value.substring(2,4),e.value.substring(0,2),e.value.substring(4,7)+t):e.selection.start<8&&t>="0"&&t<="9";return o}}Xe("mm/dd/YYYY",(()=>new Qe("/")));class qe extends Ve{constructor(t){super(t)}toString(t){return typeof t!="string"?"":t}fromString(t){const e=t?.length==8?`${t.substring(0,4)}-${t.substring(4,6)}-${t.substring(6,8)}`:undefined;return Ne.is(e)?e:undefined}daysInMonth(t){const e=`${t.substring(0,4)}-${t.substring(4,6)}-01`;return Ne.is(e)?+Ne.lastOfMonth(`${t.substring(0,4)}-${t.substring(4,6)}-01`).substring(8,10):31}format(t){let e=t;if(e.value.length>3){e=e.insert(4,this.separator);if(e.get(5,1)>"1")e=e.insert(5,"0");if(e.value.length>6){e=e.insert(7,this.separator);if(e.get(8,1)>this.daysInMonth(t.value).toString().substring(0,1))e=e.insert(8,"0")}}return{...e,type:"text",length:[0,10],pattern:new RegExp(["^\\d{4}","(0[1-9]|1[012])","(0[1-9]|[12][0-9]|3[01])$"].join(this.separator))}}allowed(t,e){const o=this.daysInMonth(e.value);return e.selection.start==5&&e.value[4]=="0"?t>="1"&&t<="9":e.selection.start==5&&e.value[4]=="1"?t>="0"&&t<="2":e.selection.start==7&&e.value[6]=="0"?t>="1"&&t<="9":e.selection.start==7&&(e.value[6]=="2"&&o<30||e.value[6]=="3")?t>="0"&&t<=o.toString().substring(1):e.selection.start<8&&t>="0"&&t<="9"}}Xe("YYYY-mm-dd",(()=>new qe("-")));class to{toString(t){return typeof t=="string"?t:""}fromString(t){let e=t.replace(" ","T");const o="0000-01-01T00:00:00.000Z";if(e?.match(/-\d$/))e=e.substring(0,e.length-1)+"0"+e.substring(e.length-1,e.length);e=!e.match(/^\d{4}-(0[1-9]|1[012])/)?undefined:e+o.substring(e.length,o.length);return Ee.is(e)?e:undefined}format(t){let e=eo(t);if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[\d:.-]$/))e=e.insert(10," ");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 3$/))e=e.replace(11,12,"23:");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [45]$/))e=e.insert(11,"23:");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [6-9]$/))e=e.insert(11,"23:5");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 24$/))e=e.replace(10,13,"00:");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 25$/))e=e.insert(12,"3:");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 2[6-9]$/))e=e.insert(12,"3:5").append(":");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3])\d[\s\S]$/))e=e.insert(13,":");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[6-9]$/))e=e.insert(14,"5");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[0-5]\d\d$/))e=e.insert(16,":");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[0-5]\d:[6-9]$/))e=e.insert(17,"5");return{...e,type:"text",length:[0,19],pattern:/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3])(:[0-5]\d){2}$/}}unformat(t){return t}allowed(t,e){return e.value.length<19&&(t>="0"&&t<="9"||t=="-"||t==":"||t=="."||t==" ")}}le("date-time",(()=>new to));function eo(t,e){let o=t;switch(e){case"dd/mm/YYYY":case"dd.mm.YYYY":if(!oo(o.value,e))o=o.replace(0,10,oo("31"+o.value.substring(2,10),e)?"31"+o.value.substring(2,10):oo("30"+o.value.substring(2,10),e)?"30"+o.value.substring(2,10):oo("29"+o.value.substring(2,10),e)?"29"+o.value.substring(2,10):oo("28"+o.value.substring(2,10),e)?"28"+o.value.substring(2,10):o.value);break;case"mm/dd/YYYY":if(!oo(o.value,e))o=o.replace(0,10,oo(o.value.substring(0,3)+"31"+o.value.substring(5,10),e)?o.value.substring(0,3)+"31"+o.value.substring(5,10):oo(o.value.substring(0,3)+"30"+o.value.substring(5,10),e)?o.value.substring(0,3)+"30"+o.value.substring(5,10):oo(o.value.substring(0,3)+"29"+o.value.substring(5,10),e)?o.value.substring(0,3)+"29"+o.value.substring(5,10):oo(o.value.substring(0,3)+"28"+o.value.substring(5,10),e)?o.value.substring(0,3)+"28"+o.value.substring(5,10):o.value);break;default:if(t.value.length==10){if(!oo(o.value)){o=o.replace(0,10,oo(o.value.substring(0,8)+"31")?o.value.substring(0,8)+"31":oo(o.value.substring(0,8)+"30")?o.value.substring(0,8)+"30":oo(o.value.substring(0,8)+"29")?o.value.substring(0,8)+"29":oo(o.value.substring(0,8)+"28")?o.value.substring(0,8)+"28":o.value);break}return t}}return o}function oo(t,e){let o;let s;let n;switch(e){case"dd/mm/YYYY":case"dd.mm.YYYY":o=parseInt(t.substring(6,10));s=parseInt(t.substring(3,5));n=parseInt(t.substring(0,2));return o&&s&&n?n>0&&so(o,s)>=n:false;case"mm/dd/YYYY":o=parseInt(t.substring(6,10));s=parseInt(t.substring(0,2));n=parseInt(t.substring(3,5));return o&&s&&n?n>0&&so(o,s)>=n:false;default:o=parseInt(t.substring(0,4));s=parseInt(t.substring(5,7));n=parseInt(t.substring(8,10));return o&&s&&n?n>0&&so(o,s)>=n:false}}function so(t,e){let o;switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:o=31;break;case 4:case 6:case 9:case 11:o=30;break;case 2:o=28;break}return o}class no{toString(t){return Array.isArray(t)&&t.length==2&&typeof t[0]=="number"&&typeof t[1]=="number"?t[0].toString()+" / "+t[1].toString():typeof t=="number"?t.toString():""}fromString(t){return typeof t=="string"&&t.match(/^\d{1,2}\s+\/\s+\d{1,2}$/)?[Number.parseInt(t.slice(0,2)),Number.parseInt(t.slice(t.length-2))]:typeof t=="string"&&t.match(/\d{1,2}/)?Number.parseInt(t):undefined}format(t){let e=t;if(t.match(/^\d\/$/))e=t.replace(1,2," / ");else if(t.match(/^\d{1,2}\s$/))e=t.replace(t.value.length-1,t.value.length," / ");else if(t.match(/^[\D.]+\/[\D.]+$/))e=t.delete(0,t.value.length);else if(t.match(/^[\D.]+\/[\D.]+\d$/))e=t.delete(0,t.value.length-1);else if(t.match(/^[\D.]+\/[\D.]+\d\d$/))e=t.delete(0,t.value.length-2);else if(t.match(/^[\D.]+\//))e=t.delete(0,t.value.search("/")+1);else if(t.match(/^\d\d\/$/))e=t.replace(2,3," / ");else if(t.match(/^\d\d\s+\/$/))e=t.delete(2,t.value.length);else if(t.match(/^\d\s+\/$/))e=t.delete(1,t.value.length);else if(t.match(/^\d\d\s\s+\/\s*$/))e=t.replace(2,t.value.length," / ");else if(t.match(/^\d\s\s+(\/\s*)?$/))e=t.replace(1,t.value.length," / ");else if(t.match(/^\d\s\/\s\d\d.+$/))e=t.delete(6,t.value.length);else if(t.value.length>1&&t.value.indexOf("/")<1)e=t.insert(2," / ");else if(t.value.length>1&&t.value.split("/").length>2)e=t.delete(t.value.lastIndexOf("/"));else if(t.value.length==1&&!t.isDigit(0))e=t.delete(0);return{...e,type:"text",length:[1,7],pattern:/^(\d{1,2}|\d{1,2} \/ \d{1,2})$/}}unformat(t){return t}allowed(t,e){return e.value.length<7&&(t>="0"&&t<="9"||t=="/"||t==" ")}}le("divisor",(()=>new no));class io{constructor(){this.pattern=/(^\d*:{0,1}[0-5]{0,1}[0-9]{0,1}$|^\d*[.,]{0,1}[0-9]{0,2}$)/}toString(t){return`${t?.hours?.toString(10)??"0"}:${t?.minutes?.toString(10).padStart(2,"0")??"00"}`}fromString(t){let e;if(!this.decimal){const o=t.split(":",2).map((t=>Number.parseInt(t)));e=o?{hours:!o[0]||!Number.isFinite(o[0])?0:o[0],minutes:!o[1]||!Number.isFinite(o[1])?0:o[1]}:undefined}else if(this.decimal){const o=t.split(/[,.]/,2);if(o)o[1]=o[1].length==1?o[1]+"0":o[1];const s=o?o.map((t=>Number.parseInt(t))):undefined;e=s?{hours:!s[0]||!Number.isFinite(s[0])?0:s[0],minutes:!s[1]||!(0<=s[1]&&s[1]<100)?0:+(s[1]/100*60%1).toFixed(7)}:undefined}return e}format(t){let e=t;if(e.value.match(/^[.,:]/))e=e.prepend("0");return{...e,type:"tel",pattern:this.pattern}}unformat(t){if(t.value.includes(".")||t.value.includes(","))this.decimal=true;else this.decimal=false;return t}allowed(t,e){const o=e.value.slice(0,e.selection.start)+t+e.value.slice(e.selection.end);return!!o.match(this.pattern)}}le("duration",(()=>new io));class lo{constructor(t){this.country=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"?t:undefined}format(t){let e=t;const o=(new Date).getFullYear().toString();if(t.value.length>1&&t.get(0,2)!="19"&&t.get(0,2)!="20")e=e.prepend(t.get(0,2)>o.substr(2,2)?"19":"20");if(e.value.length>=8)e=e.insert(8,"-");return{...e.truncate(13),type:"text",length:[11,13],pattern:/^\d{6,8}-\d{4}$/}}unformat(t){return t.delete("-")}allowed(t,e){return e.value.length<13&&t>="0"&&t<="9"}}le("identity-number",(t=>new lo(t&&t.length>0?t[0]:undefined)));class ro{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"?t:undefined}format(t){return{...t,type:"password",autocomplete:"current-password"}}unformat(t){return t}allowed(t,e){return true}}le("password",(()=>new ro));class ao{toString(t){return t&&typeof t=="number"?(t*100).toString():""}fromString(t){return typeof t!="string"||!Number.parseFloat(t)?undefined:Number.parseFloat(t)/100}format(t){return{...t.value?t.suffix(" %"):t,type:"text",length:[3,undefined],pattern:/^\d+(.\d)? %+$/}}unformat(t){return t.delete(" %")}allowed(t,e){return t>="0"&&t<="9"||t=="."&&!e.value.includes(".")}}le("percent",(()=>new ao));const co=[{countryCode:"+46",areaCodes:["011","0120","0121","0122","0123","0125","013","0140","0141","0142","0143","0144","0150","0151","0152","0155","0156","0157","0158","0159","016","0171","0173","0174","0175","0176","018","019","021","0220","0221","0222","0223","0224","0225","0226","0227","023","0240","0241","0243","0246","0247","0248","0250","0251","0253","0258","026","0270","0271","0278","0280","0281","0290","0291","0292","0293","0294","0295","0297","0300","0301","0302","0303","0304","031","0320","0321","0322","0325","033","0340","0345","0346","035","036","0370","0371","0372","0380","0381","0382","0383","0390","0392","0393","040","0410","0411","0413","0414","0415","0416","0417","0418","042","0430","0431","0433","0435","044","0451","0454","0455","0456","0457","0459","046","0470","0471","0472","0474","0476","0477","0478","0479","0480","0481","0485","0486","0490","0491","0492","0493","0494","0495","0496","0498","0499","0500","0501","0502","0503","0504","0505","0506","0510","0511","0512","0513","0514","0515","0520","0521","0522","0523","0524","0525","0526","0528","0530","0531","0532","0533","0534","054","0550","0551","0552","0553","0554","0555","0560","0563","0564","0565","0570","0571","0573","0580","0581","0582","0583","0584","0585","0586","0587","0589","0590","0591","060","0611","0612","0613","0620","0621","0622","0623","0624","063","0640","0642","0643","0644","0645","0647","0650","0651","0652","0653","0657","0660","0661","0662","0663","0670","0671","0672","0680","0682","0684","0687","0690","0691","0692","0693","0695","0696","08","090","0910","0911","0912","0913","0914","0915","0916","0918","0920","0921","0922","0923","0924","0925","0926","0927","0928","0929","0930","0932","0933","0934","0935","0940","0941","0942","0943","0950","0951","0952","0953","0954","0960","0961","0970","0971","0973","0975","0976","0977","0978","0980","0981","010","020","0378","070","072","073","076","079","0710","0740","0746","0749","0741","0742","0743","0744","0745","0747","075","077","078","0900","0939","0944","0969","099"]}];class ho{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"?t:undefined}format(t){let e=t;if(e.value.startsWith("+")){for(const t of co)if(e.value.startsWith(t.countryCode))for(let o of t.areaCodes){o=o.substring(1);if(e.value.startsWith(t.countryCode+o)&&!e.value.includes("-"))e=e.insert(t.countryCode.length,"-").insert(t.countryCode.length+1+o.length,"-")}}else{const t=co[0];for(const o of t.areaCodes)if(e.value.startsWith(o)&&!e.value.includes("-")){e=e.insert(o.length,"-");e=e.delete(0);e=e.insert(0,"-").insert(0,t.countryCode)}}if(e.value.includes("-")){const t=e.value.indexOf("-",e.value.indexOf("-")+1)+1;const o=e.value.substring(t,e.value.length+1).length;switch(o){case 4:e=e.insert(t+2," ");break;case 5:e=e.insert(t+3," ");break;case 6:e=e.insert(t+2," ");e=e.insert(t+5," ");break;case 7:e=e.insert(t+3," ");e=e.insert(t+6," ");break;case 8:case 9:e=e.insert(t+3," ");e=e.insert(t+7," ");break}if(o>9){const s=Math.ceil(o/3)-1;if(s>0){for(let o=0;o<s;o++){const s=o*3+3+o;e=e.insert(s+t," ")}}}}return{...e,type:"text",autocomplete:"tel"}}unformat(t){return t.delete(" ").delete("-")}allowed(t,e){return t>="0"&&t<="9"||e.selection.start==0&&t=="+"&&!e.value.includes("+")}}le("phone",(()=>new ho));class uo{constructor(t){this.country=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"?t:undefined}format(t){const e=!t.value.includes(" ")&&t.value.length>=4?t.insert(3," "):t;return{...e.truncate(6),type:"text",autocomplete:"postal-code",length:[6,6],pattern:/^\d{3} \d{2}$/}}unformat(t){return t.delete(" ")}allowed(t,e){return e.value.length<=5&&t>="0"&&t<="9"}}le("postal-code",(t=>new uo(t&&t.length>0?t[0]:undefined)));class mo{constructor(t){this.currency=t}toString(t){return typeof t=="number"?isNaN(t)?"":t.toString():""}fromString(t){const e=typeof t=="string"?Number.parseFloat(t):undefined;return e!=undefined&&!isNaN(e)?e:undefined}format(t){let e=t.value&&t.value.includes(".")?t.value.indexOf("."):undefined;let o=t.value=="NaN"?t.replace(0,t.value.length,""):se.copy(t);if(e==0){o=o.prepend("0");e++}if(e!=undefined){const t=e+1+(!this.currency||Oe.decimalDigits(this.currency)==undefined?2:Oe.decimalDigits(this.currency)??2)-o.value.length;o=t<0?o.truncate(o.value.length+t):o.suffix("0".repeat(t))}else e=o.value.length;const s=e<=0?0:Math.ceil(e/3)-1;for(let t=0;t<s;t++){const n=e-(s-t)*3;o=o.insert(n," ");e++}if(o.match(/^[0\s]{2,}$/))o=o.replace(0,o.value.length,"0");else if(o.match(/^[0\s]{2,}(\s\w{3}){1}$/))o=o.replace(0,o.value.length-4,"0");o=this.currency&&(o.value.length>1||o.value.length==1&&o.value.charAt(0)!=".")?o.suffix(" "+this.currency):o;return{...o,type:"text",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d+)?"+(this.currency?" "+this.currency:"")+"$")}}unformat(t){return this.currency?t.delete(" ").delete(""+this.currency):t.delete(" ")}allowed(t,e){return t>="0"&&t<="9"||t=="."&&!e.value.includes(".")}}le("price",(t=>new mo(t&&t.length>0?t[0]:undefined)));class yo{constructor(t){this.settings=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"?t:undefined}format(t){return{...t,type:"text",...this.settings}}unformat(t){return t}allowed(t,e){return this.settings.length==undefined||this.settings.length[1]==undefined||e.value.length<this.settings.length[1]}}le("text",(t=>new yo(t||{})));le("email",(t=>new yo(t||{})));const fo=".sc-smoothly-display-h{display:block}[hidden].sc-smoothly-display-h{display:none}";const po=class{constructor(e){t(this,e);this.type=undefined;this.value=undefined;this.currency=undefined;this.country=undefined;this.format=undefined;this.unit=undefined}render(){var t,o;let s;const n=this.type;switch(n){default:s=ae(this.value,n);break;case"email":s=e("a",{href:"mailto:"+this.value},ae(this.value,n));break;case"phone":s=e("a",{href:"tel:"+this.value},ae(this.value,n,this.country));break;case"postal-code":s=ae(this.value,n,this.country);break;case"price":s=ae(this.value,n,this.currency);break;case"date":s=(t=re(this.type,bo()))===null||t===void 0?void 0:t.toString(this.value);break;case"duration":s=ae(this.value,n,this.unit);break;case"date-time":s=this.format?y.localize(this.value,this.format,bo()):(o=re(this.type,bo()))===null||o===void 0?void 0:o.toString(this.value);break}return s}};function bo(){const t=navigator.language;return f.is(t)?t:p.is(t)?f.toLocale(t):undefined}po.style=fo;const go=".sc-smoothly-display-amount-h{display:block}[hidden].sc-smoothly-display-amount-h{display:none}";const vo=class{constructor(e){t(this,e);this.amount=undefined;this.currency=undefined;this.toInteger=false}format(t){const e=3;const o=2;const s=b.decimalDigits(this.currency)?b.decimalDigits(this.currency):o;let n=t.length;let i;let l=t;if(l=="")l="0";if(t.includes(".")){i=t.indexOf(".");if(i==0){l="0"+l;i++}n=i;l=l.padEnd(i+s+1,"0");l=l.substring(0,i+s+1)}else if(!this.toInteger){l=l+".";i=l.length-1;l=l.padEnd(i+s+1,"0")}const r=Math.ceil(n/e)-1;if(r>0){for(let t=0;t<r;t++){const o=n-(r-t)*e;l=l.slice(0,o)+" "+l.slice(o,l.length);n++}}return l}render(){return[typeof this.amount=="number"?this.format(this.amount.toString()):this.format(this.amount)," ",this.currency]}};vo.style=go;const wo=class{constructor(e){t(this,e);this.notice=s(this,"notice",7)}noticeWarning(t){console.log("emit",t);this.notice.emit(t)}render(){return[e("main",null,e("fieldset",null,e("h2",null,"Smoothly display"),e("dl",null,e("dt",null,"text"),e("dd",null,e("smoothly-display",{type:"text",value:"text"})),e("dt",null,"postal code"),e("dd",null,e("smoothly-display",{type:"postal-code",value:"752 31"})),e("dt",null,"password"),e("dd",null,e("smoothly-display",{type:"password",value:"password"})),e("dt",null,"email"),e("dd",null,e("smoothly-display",{type:"email",value:"test@example.com"})),e("dt",null,"price"),e("dd",null,e("smoothly-display",{type:"price",value:"13.37",currency:"SEK"})),e("dt",null,"display amount without decimals"),e("dd",null,e("smoothly-display-amount",{amount:200,currency:"SEK",toInteger:true})),e("dt",null,"display amount with decimals if they are set, otherwise no decimal"),e("dd",null,e("smoothly-display-amount",{amount:200.2,currency:"SEK",toInteger:true})),e("dt",null,"display amount with decimals"),e("dd",null,e("smoothly-display-amount",{amount:200.2,currency:"SEK"})),e("dt",null,"percent"),e("dd",null,e("smoothly-display",{type:"percent",value:"42"})),e("dt",null,"phone"),e("dd",null,e("smoothly-display",{type:"phone",value:"0101881108"})),e("dt",null,"card number"),e("dd",null,e("smoothly-display",{type:"card-number",value:"4111111111111111"})),e("dt",null,"card expires"),e("dd",null,e("smoothly-display",{type:"card-expires",value:"7/22"})),e("dt",null,"card csc"),e("dd",null,e("smoothly-display",{type:"card-csc",value:"987"})),e("dt",null,"date"),e("dd",null,e("smoothly-display",{type:"date",value:"2022-07-07"})),e("dt",null,"date time"),e("dd",null,e("smoothly-display",{type:"date-time",format:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T02:02:02Z"})),e("dd",null,e("smoothly-display",{type:"date-time",format:{year:"2-digit",month:"long",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},value:"2022-07-07T02:02:02Z"})),e("dd",null,e("smoothly-display",{type:"date-time",format:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),e("dd",null,e("smoothly-display",{type:"date-time",format:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),e("dd",null,e("smoothly-display",{type:"date-time",format:{year:"numeric",month:"short",day:"numeric"},value:"2022-07-07T00:00+02:00"})),e("dd",null,e("smoothly-display",{type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric"},value:"2022-07-07T00:00+02:00"})),e("dd",null,e("smoothly-display",{type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:"Europe/Stockholm"},value:"2022-07-07T12:15Z"})),e("dt",null,"Deprecated display date time"),e("dt",null,"Display amount"),e("dd",null,e("smoothly-display-amount",{currency:"SEK",amount:"1289.5"})),e("dt",null,"Quiet"),e("dd",null,e("smoothly-quiet",{color:"dark"},"-")),e("dt",null,"Duration"),e("dd",null,e("smoothly-display",{type:"duration",value:{hours:13,minutes:35},unit:"h"}),e("smoothly-display",{type:"duration",value:{hours:8,minutes:30},unit:""}),e("smoothly-display",{type:"duration",value:{hours:0,minutes:3},unit:" h"})))),e("fieldset",null,e("h2",null,"Smoothly skeleton"),e("smoothly-skeleton",{period:3,distance:"20rem",width:"20rem"}),e("smoothly-skeleton",{period:3,distance:"20rem",color:"200,200,255"}),e("smoothly-skeleton",{period:3,distance:"20rem",color:"var(--smoothly-warning-color)"}),e("smoothly-skeleton",{period:3,distance:"20rem"}),e("smoothly-skeleton",{align:"center",period:3,distance:"20rem",width:"20rem"}),e("smoothly-skeleton",{align:"center",period:3,distance:"20rem"}),e("smoothly-skeleton",{align:"center",period:3,distance:"20rem"}),e("smoothly-skeleton",{align:"center",period:3,distance:"20rem"}),e("smoothly-skeleton",{align:"right",period:3,distance:"20rem",width:"20rem"}),e("smoothly-skeleton",{align:"right",period:3,distance:"20rem"}),e("smoothly-skeleton",{align:"right",period:3,distance:"20rem"}),e("smoothly-skeleton",{align:"right",period:3,distance:"20rem"})),e("fieldset",null,e("h2",null,"Smoothly URL encoded"),e("smoothly-urlencoded",{data:"hej=hopp&tjena=moss"})),e("fieldset",null,e("h2",null,"Smoothly popup"),e("div",{style:{display:"flex",justifyContent:"space-between"}},e("smoothly-popup",{direction:"down"},"Click for popup",e("span",{slot:"popup",color:"dark",style:{whiteSpace:"nowrap"}},"Some popup stuff that has a lot of text")),e("smoothly-popup",{direction:"down"},"Click for popup",e("span",{slot:"popup",color:"dark",style:{whiteSpace:"nowrap"}},"Some popup with a bunch of text."))),e("smoothly-popup",null,e("div",null,"Popup, click me"),e("div",{color:"dark",slot:"popup"},"1 line popup"))),e("fieldset",null,e("h2",null,"Test of different kinds of notifier"),e("button",{onClick:()=>this.noticeWarning(h.warn("This is a test warning notice."))},"warning"),e("button",{onClick:()=>this.noticeWarning(h.succeeded("This is a test success notice."))},"success"),e("button",{onClick:()=>this.noticeWarning(h.failed("This is a test danger notice."))},"danger"),e("button",{onClick:()=>this.noticeWarning(h.execute("This is a test execute notice.",(()=>new Promise((t=>window.setTimeout((()=>t([true,"This went great"])),3e3))))))},"execute"),e("button",{onClick:()=>this.noticeWarning(h.delay("This is a test delay notice.",(()=>new Promise((t=>window.setTimeout((()=>t([true,"This went great"])),3e3))))))},"delay")),e("fieldset",null,e("h2",null,"Smoothly spinner"),e("div",{style:{position:"relative",height:"10em"}},"Large Spinner",e("smoothly-spinner",{active:true,size:"large",style:{"--background-color":"255,255,255","--background-opacity":"0.2","--spinner-color":"0,130,0"}})),e("div",{style:{position:"relative",height:"10em"}},"Medium Spinner",e("smoothly-spinner",{active:true,size:"medium"})),e("div",{style:{position:"relative",height:"10em"}},"Small Spinner",e("smoothly-spinner",{active:true,size:"small"})),e("div",{style:{position:"absolute",left:"500px",top:"150px"}},e("smoothly-svg",{url:"https://theme.payfunc.com/intergiro/animated-logo.svg"}))),e("fieldset",null,e("h2",null,"Smoothly summary"),e("smoothly-summary",{color:"light",fill:"clear",size:"large"},e("p",{slot:"summary"},"Some title"),e("p",{slot:"content"},"Some content")),e("smoothly-summary",{color:"light",fill:"clear",size:"large"},e("p",{slot:"summary"},"Some title"),e("p",{slot:"content"},"Some content")),e("smoothly-summary",{color:"danger",fill:"clear"},e("div",{slot:"summary",style:{display:"flex",gap:"0.3rem"}},e("span",null,"Person"),e("smoothly-icon",{name:"person",color:"light",fill:"clear",size:"tiny"})),e("p",{slot:"content"},"Some person information.")),e("smoothly-summary",{color:"danger",fill:"clear",open:true},e("p",{slot:"summary"},"Some other title"),e("p",{slot:"content"},"A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please.A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please."))))]}};var ko=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function So(t,e,o){return o={path:e,exports:{},require:function(t,e){return xo()}},t(o,o.exports),o.exports}function xo(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Co=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.create=e.setFallback=e.add=e.Rule=void 0;class o{filter(t){return t.filter((t=>this.is(t)))}stringify(t=0){let e=this.toString();if(this.precedence<t)e="("+e+")";return e}}e.Rule=o;const s=[t=>t instanceof o?t:undefined];function n(t){s.push(t)}e.add=n;let i;function l(t){i=t}e.setFallback=l;function r(t){let e;for(const o of s){e=o(t);if(e)break}return e||i}e.create=r}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Always=void 0;class o extends Co.Rule{constructor(){super();this.precedence=Number.MAX_SAFE_INTEGER;this.class="Always"}is(t){return true}toString(){return""}}e.Always=o;(0,Co.setFallback)(new o)}));var Mo=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.any=e.Any=void 0;class o extends Co.Rule{constructor(t){super();this.criteria=t;this.precedence=50;this.class="Any"}is(t){return t&&typeof t=="object"&&Object.getOwnPropertyNames(t).some((e=>this.criteria.is(t[e])||this.is(t[e])))}toString(){return this.criteria.stringify(this.precedence)}}e.Any=o;function s(t,e){const s=new o((0,Co.create)(t));return e?s.is(e):s}e.any=s}));var Ao=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.and=e.And=void 0;class o extends Co.Rule{constructor(t){super();this.precedence=40;this.class="And";this.rules=t.reduce(((t,e)=>e instanceof o?[...t,...e.rules]:[...t,e]),[])}is(t){return this.rules.every((e=>e.is(t)))}toString(){return this.rules.map((t=>t.stringify(this.precedence))).join(" ")}generalize(){return new o(this.rules.map((t=>t.class=="Property"?t:new Mo.Any(t))))}}e.And=o;function s(...t){return new o(t.map(Co.create))}e.and=s}));var Oo=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.isCriteria=e.Criteria=void 0;(function(t){t.is=o})(e.Criteria||(e.Criteria={}));function o(t,e=false){return typeof t=="number"||typeof t=="string"||t instanceof Co.Rule||e&&typeof t=="object"&&t&&Object.values(t).every((t=>Array.isArray(t)?t.every((t=>o(t,true))):o(t,true)))}e.isCriteria=o}));var To=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(function(t){t[t["Logging"]=0]="Logging";t[t["Debug"]=1]="Debug";t[t["Warning"]=2]="Warning";t[t["Recoverable"]=3]="Recoverable";t[t["Critical"]=4]="Critical"})(e.Level||(e.Level={}))}));var No=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o{constructor(t,e=To.Level.Recoverable,o="unknown",s){this.description=t;this.level=e;this.type=o;this.region=s}toString(){return To.Level[this.level]+": "+this.type+" error. "+this.description+(this.region?" @ "+this.region.toString():"")}}e.Message=o}));var Io=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o{raise(t,e,o,s){if(!(t instanceof No.Message))t=new No.Message(t,e,o,s);console.error(t.toString())}}e.ConsoleHandler=o}));var Ro=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o{constructor(t,e){this.line=t;this.column=e}toString(){return"Ln "+this.line+", Col "+this.column}}e.Position=o}));var Lo=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o extends Ro.Position{constructor(t,e,o){super(e,o);this.resource=t}toString(){return this.resource.toString()+" @ "+super.toString()}}e.Location=o}));var Eo=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o{constructor(t,e,o,s){this.resource=t;this.start=e;this.end=o;this.content=s}merge(t){return t?new o(this.resource,this.start,t.end,this.content?this.content:""+t.content?t.content:""):this}toString(){let t=this.resource.toString();if(this.start&&this.end)t+=" ("+this.start.toString()+" - "+this.end.toString()+") ";if(this.content)t+=this.content;return t}}e.Region=o}));var Do=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.ConsoleHandler=Io.ConsoleHandler;e.Level=To.Level;e.Location=Lo.Location;e.Message=No.Message;e.Position=Ro.Position;e.Region=Eo.Region}));var Po=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o{constructor(t,e){this.name=t;this.password=e}get isEmpty(){return!this.name&&!this.password}toString(){let t="";if(this.name)t=this.name;if(this.password)t+=":"+this.password;return t}static parse(t){let e;if(t){const s=t.split(":",2);e=new o(s[0],s[1])}else e=new o;return e}}e.User=o}));var Bo=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o{constructor(t=[],e){this.host=t;this.port=e}get isEmpty(){return this.host.length==0&&!this.port}toString(){let t=this.host.join(".");if(this.port)t+=":"+this.port.toString();return t}static parse(t){let e;if(t){const s=t.split(":",2);e=new o(s[0].split("."),s.length>1?parseInt(s[1]):undefined)}else e=new o;return e}}e.Endpoint=o}));var Go=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o{constructor(t=new Po.User,e=new Bo.Endpoint){this.user=t;this.endpoint=e}get isEmpty(){return this.user.isEmpty&&this.endpoint.isEmpty}toString(){let t="";if(!this.user.isEmpty)t=this.user.toString()+"@";if(!this.endpoint.isEmpty)t=t+this.endpoint.toString();return t}static parse(t){let e;if(t){const s=t.split("@",2);e=new o(Po.User.parse(s.length==2?s.pop():undefined),Bo.Endpoint.parse(s.pop()))}return e}}e.Authority=o}));var jo=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o{constructor(t=[],e=new Go.Authority,o=[],s={},n){this.scheme=t;this.authority=e;this.path=o;this.query=s;this.fragment=n}get isRelative(){return this.path[0]=="."||this.path[0]==".."}get isFolder(){return this.path[this.path.length-1]==""}get folder(){return this.isFolder?this:new o(this.scheme,this.authority,this.path.filter(((t,e)=>e<this.path.length-1)),this.query,this.fragment)}get name(){return this.path[this.path.length-1]}get extension(){const t=this.name.split(".");return t.length>1?t[t.length-1]:""}createArray(t,e){const o=[];while(e-- >0)o.push(t);return o}normalize(){let t=0;const e=this.path.reverse().filter(((e,o)=>{let s=false;if((e==""||e==".")&&o<this.path.length-1)s=false;else if(e=="..")t++;else if(t>0)t--;else s=true;return s})).concat(this.createArray("..",t)).reverse();return new o(this.scheme,this.authority,e,this.query,this.fragment)}resolve(t){return!t?this:new o(this.scheme.length>0?this.scheme:t.scheme,!this.authority.isEmpty?this.authority:t.authority,this.isRelative?t.folder.path.concat(this.path):this.path,this.query,this.fragment).normalize()}appendPath(t){return new o(this.scheme,this.authority,t instanceof Array?[...this.path,...t]:[...this.path,t],this.query,this.fragment)}toString(){let t="";if(this.scheme.length>0)t+=this.scheme.join("+")+":";if(!this.authority.isEmpty)t+="//"+this.authority.toString();else if(this.scheme.length>0)t+="//";if(this.path){let e=this.path.join("/");if(e[0]!="."||t.length>0)e="/"+e;t+=e}if(Object.keys(this.query).length>0)t+="?"+this.query.toString();if(this.fragment)t+="#"+this.fragment;return t}static parse(t){let e;switch(t){case"":case null:case undefined:break;default:let s=true;let n=[];let i=t.split("://",2);if(i.length>1){n=(i.shift()||"").split("+");t=i.shift()}else if(t.slice(0,2)=="//")t=t.slice(2);else s=false;let l;let r;if(t&&(l=t.lastIndexOf("#"))>-1){r=t.slice(l+1);t=t.slice(0,l)}let a={};if(t&&(l=t.lastIndexOf("?"))>-1){a=new Object;t.slice(l+1).split(";").forEach((t=>{i=t.split("=");const e=i.shift();const o=i.shift();if(e&&o)a[e]=o}));t=t.slice(0,l)}let c;let h=[];if(t){i=t.split("/");if(i.length>0){switch(i[0]){case".":case"..":break;case"":i.shift();break;default:if(s)c=Go.Authority.parse(i.shift());else i.unshift(".");break}h=i}}e=new o(n,c,h,a,r);break}return e}}e.Locator=o;o.empty=new o(undefined,undefined,undefined,undefined,undefined)}));var Ko=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Authority=Go.Authority;e.Endpoint=Bo.Endpoint;e.Locator=jo.Locator;e.User=Po.User}));var Uo=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o{}e.Device=o}));var _o=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o extends Uo.Device{}e.InDevice=o}));var Ho=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o extends _o.InDevice{static addOpener(t,e){if(!e)e=0;o.openers.push({open:t,priority:e});o.openers=o.openers.sort(((t,e)=>e.priority-t.priority))}static open(t){let e;let s=0;do{e=o.openers[s++].open(t)}while(!e&&s<o.openers.length);return e}}e.Reader=o;o.openers=[]}));var Fo=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});var o=Ho;e.Reader=o.Reader;class s extends Ho.Reader{constructor(t){super();this.backend=t;this.buffer=[];this.lastContent="";this.lastMark=this.locationValue=this.backend.location}get tabSize(){return this.backend.tabSize}set tabSize(t){this.backend.tabSize=t}get readable(){return!!this.backend}get opened(){return!!this.backend}get isEmpty(){return(this.buffer.length==0||this.buffer[0].data=="\0")&&this.backend.isEmpty}get resource(){const t=this.location;return t?t.resource:Ko.Locator.empty}get location(){return this.locationValue}get region(){return new Do.Region(this.resource,this.lastMark,this.location,this.lastContent)}close(){return this.backend.close()}peek(t){if(!t)t=1;let e;while(t>this.buffer.length&&(e=this.backend.read()))this.buffer.push({data:e,location:this.backend.location});return this.buffer.length==0?undefined:this.buffer.slice(0,t>this.buffer.length?this.buffer.length:t).map((t=>t.data)).join("")}read(t){if(!t)t=1;const e=this.peek(t);if(e&&e.length>0){this.locationValue=this.buffer[e.length-1].location;this.buffer.splice(0,e.length);this.lastContent+=e}return e}peekIs(t,e){let o;if(t)if(typeof t=="string"){const s=t;while(e&&e-- >0)t+=s;o=this.peek(t.length)==t?t:undefined}else if(t.length>0&&!(o=this.peekIs(t[0]))&&t.length)o=this.peekIs(t.slice(1));return o}readIf(t){let e;if(t)if(typeof t=="string")e=this.peek(t.length)==t&&this.read(t.length)||undefined;else if(t.length>0&&!(e=this.readIf(t[0]))&&t.length)e=this.readIf(t.slice(1));return e}readAll(){let t="";while(this.peek())t+=this.read();return t!=""?t:undefined}mark(){const t=this.region;this.lastMark=this.location;this.lastContent="";return t}static create(t){return t?new s(t):undefined}}e.BufferedReader=s}));var zo=So((function(t,e){var o=ko&&ko.__awaiter||function(t,e,o,s){function n(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function l(t){try{a(s.next(t))}catch(t){i(t)}}function r(t){try{a(s["throw"](t))}catch(t){i(t)}}function a(t){t.done?o(t.value):n(t.value).then(l,r)}a((s=s.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:true});function s(t){return o(this,void 0,void 0,(function*(){}))}e.close=s;function n(t){return o(this,void 0,void 0,(function*(){}))}e.fsync=n;function i(t,e,s){return o(this,void 0,void 0,(function*(){return 0}))}e.open=i;function l(t,e,s,n){return o(this,void 0,void 0,(function*(){return{bytesWritten:0}}))}e.write=l;function r(t,e){return{isDirectory:()=>false}}e.lstatSync=r;function a(t){return[]}e.readdirSync=a;function c(t,e){return""}e.readFileSync=c}));var Wo=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});const o="/";e.sep=o}));var Yo=So((function(t,e){var o=ko&&ko.__awaiter||function(t,e,o,s){function n(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function l(t){try{a(s.next(t))}catch(t){i(t)}}function r(t){try{a(s["throw"](t))}catch(t){i(t)}}function a(t){t.done?o(t.value):n(t.value).then(l,r)}a((s=s.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:true});class s extends Ho.Reader{constructor(t,e){super();this.content=t;this.resource=e;this.tabSize=2;this.count=0;this.line=1;this.column=1;this.lastContent="";this.readable=true;this.content+="\0";this.lastPosition=this.location}get opened(){return this.count+1>=this.content.length}get isEmpty(){return this.opened}get location(){return new Do.Location(this.resource,this.line,this.column)}get region(){return new Do.Region(this.resource,this.lastPosition,this.location,this.lastContent)}close(){return o(this,void 0,void 0,(function*(){const t=!(yield this.isEmpty);if(t)this.count=this.content.length;return t}))}read(){let t;if(this.count<this.content.length)t=this.content.charAt(this.count);else if(this.count==this.content.length)t=undefined;this.count++;if(t){switch(t){case"\n":this.line++;this.column=1;break;case"\t":this.column+=this.tabSize;break;default:this.column++;break}this.lastContent+=t}return t}mark(){const t=this.region;this.lastPosition=this.location;this.lastContent="";return t}static create(t,e){return t!=undefined?new s(t,e||Ko.Locator.empty):undefined}}e.StringReader=s}));var Zo=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o extends Ho.Reader{constructor(t){super();this.backend=t}get tabSize(){return this.backend.tabSize}set tabSize(t){this.backend.tabSize=t}get readable(){return this.backend.readable}get opened(){return this.backend.opened}get isEmpty(){return this.backend.isEmpty}get resource(){return this.backend?this.backend.resource:Ko.Locator.empty}get location(){return this.backend.location}get region(){return this.backend.region}close(){return this.backend.close()}read(){return this.backend.read()}mark(){return this.backend.mark()}static open(t){let e;if(t&&(t.scheme.length==0||t.scheme.length==1&&t.scheme[0]=="file"))try{e=Yo.StringReader.create(zo.readFileSync((t.isRelative?"":Wo.sep)+t.path.join(Wo.sep),"utf-8"),t)}catch(e){console.log(`Failed to open file: ${t.toString()}`)}return e?new o(e):undefined}}e.FileReader=o;Ho.Reader.addOpener((t=>o.open(t)),10)}));var Vo=So((function(t,e){var o=ko&&ko.__awaiter||function(t,e,o,s){function n(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function l(t){try{a(s.next(t))}catch(t){i(t)}}function r(t){try{a(s["throw"](t))}catch(t){i(t)}}function a(t){t.done?o(t.value):n(t.value).then(l,r)}a((s=s.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:true});class s extends Ho.Reader{constructor(t){super();this.files=t;this.tabSizeValue=2;this.lastLocation=new Do.Location(Ko.Locator.empty,0,0)}get tabSize(){return this.tabSizeValue}set tabSize(t){this.tabSizeValue=t;if(this.current)this.current.tabSize=t}get readable(){return this.current!=undefined&&this.current.readable||this.files.length>0}get opened(){return this.current!=undefined||this.files.length>0}get isEmpty(){return this.files.length==0&&(!this.current||this.current.isEmpty)}get resource(){return this.current?this.current.resource:this.lastLocation.resource}get location(){return this.current?this.current.location:this.lastLocation}get region(){return this.current?this.current.region:new Do.Region(this.resource)}close(){return o(this,void 0,void 0,(function*(){return this.current!=undefined&&(yield this.current.close())}))}read(){let t;if(!this.current&&this.files.length>0){this.current=Zo.FileReader.open(this.files.shift());this.current.tabSize=this.tabSize}if(this.current){t=this.current.read();if(t==undefined||t=="\0"){this.current.close();this.current=undefined}}this.lastLocation=this.location;return t}mark(){return this.current?this.current.mark():new Do.Region(this.resource)}static getFiles(t,e,o=[]){let n=[];const i=zo.readdirSync(t);i.forEach((i=>{const l=t+Wo.sep+i;if(o.indexOf(l)==-1){if(zo.lstatSync(l).isDirectory())n=n.concat(s.getFiles(l,e,o));else if(i.length>e.length&&i.lastIndexOf(e,i.length-e.length)===i.length-e.length)n.push(l)}}));return n}static open(t){let e;try{if(t&&(t.scheme.length==0||t.scheme.length==1&&t.scheme[0]=="file")&&t.isFolder||t.name.match("*"))e=s.getFiles((t.isRelative?"":Wo.sep)+t.folder.path.join(Wo.sep),t.extension)}catch(t){}return e?new s(e.map((t=>new Ko.Locator(["file"],undefined,t.split(Wo.sep))))):undefined}}e.FolderReader=s;Ho.Reader.addOpener((t=>s.open(t)),0)}));var $o=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});function*o(t){let e;while((e=t())!=undefined)yield e}function s(t){return t.next instanceof Function}function*n(t,e){let o;while(!(o=t.next()).done)yield o.value;if(s(e))while(!(o=e.next()).done)yield o.value;else yield e}class i{constructor(t){this.iterator=t instanceof Function?o(t):t}get length(){let t=0;while(!this.next().done)t++;return t}get last(){return this.nextValue&&!this.nextValue.done?this.nextValue.value:undefined}fetch(){const t=this.next();return t.done?undefined:t.value}next(t){return this.nextValue=this.iterator.next(t)}append(t){return new i(n(this,t))}map(t){return new i((()=>{const e=this.fetch();return e!=undefined?t(e):undefined}))}reduce(t,e){const o=this.fetch();return o?this.reduce(t,t(e,o)):e}apply(t){const e=this.fetch();if(e){t(e);this.apply(t)}}filter(t){return new i((()=>{let e;do{e=this.fetch()}while(e!=undefined&&!t(e));return e}))}toArray(){const t=this.fetch();let e;if(!t)e=[];else{e=this.toArray();e.unshift(t)}return e}static from(t){return new i(t)}}e.Enumerator=i;i.empty=i.from((()=>undefined))}));var Xo=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});function o(t){return t==null?false:typeof t[Symbol.iterator]==="function"}class s{constructor(t){this.get=t}get length(){return this.get().length}get first(){return this.get().fetch()}get last(){return this.get().last}getEnumerator(){return new $o.Enumerator(this.get())}[Symbol.iterator](){return this.getEnumerator()}append(t){return new s((()=>this.get().append(t)))}map(t){return new s((()=>this.get().map(t)))}reduce(t,e){return this.get().reduce(t,e)}apply(t){this.get().apply(t)}filter(t){return new s((()=>this.get().filter(t)))}toArray(){return this.getEnumerator().toArray()}static from(t){return o(t)?new s((()=>new $o.Enumerator(t[Symbol.iterator]()))):new s((()=>{const e=t();return e instanceof $o.Enumerator?e:new $o.Enumerator(e)}))}}e.Enumerable=s;s.empty=s.from([])}));var Jo=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o extends $o.Enumerator{constructor(t){super((()=>this.position<this.backend.length?this.backend[this.position++]:undefined));this.backend=t;this.position=0}}e.ArrayEnumerator=o}));var Qo=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o extends $o.Enumerator{constructor(t){super((()=>{const t=this.peek(0);if(this.buffer.length>0)this.buffer.shift();return t}));this.backend=t;this.buffer=[]}peek(t){if(!t)t=0;let e;while(t>this.buffer.length-1&&(e=this.backend.fetch()))this.buffer.push(e);return t>this.buffer.length-1?undefined:this.buffer[t]}}e.BufferedEnumerator=o}));var qo=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o{static padLeft(t,e,s){return o.pad(t,e,s,true)}static padRight(t,e,s){return o.pad(t,e,s,false)}static pad(t,e,o,s){let n="";const i=o-t.length;for(let t=0;t<i;t++)n+=e;return s?n+t:t+n}}e.String=o}));var ts=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Enumerator=$o.Enumerator;e.Enumerable=Xo.Enumerable;e.ArrayEnumerator=Jo.ArrayEnumerator;e.BufferedEnumerator=Qo.BufferedEnumerator;e.String=qo.String}));var es=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o extends Uo.Device{}e.OutDevice=o}));var os=So((function(t,e){var o=ko&&ko.__awaiter||function(t,e,o,s){function n(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function l(t){try{a(s.next(t))}catch(t){i(t)}}function r(t){try{a(s["throw"](t))}catch(t){i(t)}}function a(t){t.done?o(t.value):n(t.value).then(l,r)}a((s=s.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:true});class s extends es.OutDevice{constructor(){super(...arguments);this.newLineSymbol="\n"}write(t){return o(this,void 0,void 0,(function*(){return t instanceof ts.Enumerator?this.writeImplementation(t):t instanceof Array?this.writeImplementation(new ts.ArrayEnumerator(t)):this.writeImplementation(new ts.ArrayEnumerator([t]))}))}writeLine(t){return o(this,void 0,void 0,(function*(){return t instanceof ts.Enumerator?this.writeImplementation(t.append(this.newLineSymbol)):t instanceof Array?this.writeImplementation(new ts.ArrayEnumerator([...t,this.newLineSymbol])):t?this.writeImplementation(new ts.ArrayEnumerator([t,this.newLineSymbol])):this.writeImplementation(new ts.ArrayEnumerator([this.newLineSymbol]))}))}static addOpener(t,e){if(!e)e=0;s.openers.push({open:t,priority:e});s.openers=s.openers.sort(((t,e)=>e.priority-t.priority))}static open(t){return o(this,void 0,void 0,(function*(){let e;if(typeof t=="string"){const o=Ko.Locator.parse(t);e=o?yield s.open(o):undefined}else{let o=0;do{e=yield s.openers[o++].open(t)}while(!e&&o<s.openers.length)}return e}))}}e.Writer=s;s.openers=[]}));var ss=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o extends os.Writer{constructor(t){super();this.backend=t;this.autoFlush=true;this.indentionSymbol="\t";this.indentionCount=0;this.indentNext=false}get resource(){return this.backend.resource}get opened(){return this.backend.opened}get writable(){return this.backend.writable}flush(){return this.backend.flush()}close(){return this.backend.close()}increase(){this.indentionCount++;return true}decrease(){this.indentionCount--;return this.indentionCount>=0}getIndention(){return this.indentionSymbol.repeat(this.indentionCount)}writeImplementation(t){const e=[];let o;let s=t.fetch();if(s)do{o=s;s=t.fetch();if(this.indentNext)o=this.getIndention()+o;this.indentNext=o.endsWith(this.newLineSymbol);o=o.replace(this.newLineSymbol,this.newLineSymbol+this.getIndention());if(this.indentNext)o=o.substring(0,o.length-this.indentionCount*this.indentionSymbol.length);e.push(this.backend.write(o))}while(s);return Promise.all(e).then((t=>t.reduce(((t,e)=>t&&e),true)))}}e.Indenter=o}));var ns=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o extends Ho.Reader{constructor(t,e){super();this.prefix=e;this.done=false;this.backend=t instanceof Fo.BufferedReader?t:Fo.BufferedReader.create(t)}get tabSize(){return this.backend.tabSize}set tabSize(t){this.backend.tabSize=t}get readable(){return this.backend.readable}get opened(){return this.backend.opened}get isEmpty(){return this.done||this.backend.isEmpty}get resource(){return this.backend.resource}get location(){return this.backend.location}get region(){return this.backend.region}close(){return this.backend.close()}read(){let t;if(!this.done){t=this.backend.read();this.done=t=="\n"&&!this.backend.readIf(this.prefix)&&!this.backend.peekIs("\n")}return t}mark(){return this.backend.mark()}static create(t,e){return t&&e?new o(t,e):t}}e.PrefixReader=o}));var is=So((function(t,e){var o=ko&&ko.__awaiter||function(t,e,o,s){function n(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function l(t){try{a(s.next(t))}catch(t){i(t)}}function r(t){try{a(s["throw"](t))}catch(t){i(t)}}function a(t){t.done?o(t.value):n(t.value).then(l,r)}a((s=s.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:true});class s extends os.Writer{constructor(t,e){super();this.resource=t;this.descriptor=e;this.autoFlush=false}get opened(){return this.descriptor>0}get writable(){return this.descriptor>0}flush(){return o(this,void 0,void 0,(function*(){let t=true;try{yield zo.fsync(this.descriptor)}catch(e){t=false}return t}))}close(){return o(this,void 0,void 0,(function*(){let t=this.opened;if(t){try{yield zo.close(this.descriptor)}catch(e){t=false}this.descriptor=0}return t}))}writeImplementation(t){return o(this,void 0,void 0,(function*(){let e=true;const o=Buffer.from(t.reduce(((t,e)=>t+e),""));try{const t=yield zo.write(this.descriptor,o,0,"utf8");e=t.bytesWritten==o.length}catch(t){e=false}return e&&(!this.autoFlush||(yield this.flush()))}))}static open(t){return o(this,void 0,void 0,(function*(){let e;if(t&&(t.scheme.length==0||t.scheme.length==1&&t.scheme[0]=="file"))try{e=yield zo.open((t.isRelative?"":Wo.sep)+t.path.join(Wo.sep),"w")}catch(t){e=undefined}return e?new s(t,e):undefined}))}}e.FileWriter=s;os.Writer.addOpener(s.open)}));var ls=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o extends Ho.Reader{constructor(t,e){super();this.endMark=e;this.done=false;this.backend=t instanceof Fo.BufferedReader?t:Fo.BufferedReader.create(t);this.done=this.backend.peekIs(this.endMark)!=undefined}get tabSize(){return this.backend.tabSize}set tabSize(t){this.backend.tabSize=t}get readable(){return this.backend.readable}get opened(){return!this.done&&this.backend.opened}get isEmpty(){return this.done||this.backend.isEmpty}get resource(){return this.backend.resource}get location(){return this.backend.location}get region(){return this.backend.region}close(){const t=!this.done;if(t)this.done=true;return Promise.resolve(t)}read(){let t;if(!this.done){t=this.backend.read();this.done=this.backend.peekIs(this.endMark)!=undefined}return t}mark(){return this.backend.mark()}static create(t,e){return t&&e?new o(t,e):t}}e.TillReader=o}));var rs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});class o extends Ho.Reader{constructor(t,e){super();this.endMark=e;this.done=-1;this.backend=t instanceof Fo.BufferedReader?t:Fo.BufferedReader.create(t);const o=this.backend.peekIs(this.endMark);if(o)this.done=o.length}get tabSize(){return this.backend.tabSize}set tabSize(t){this.backend.tabSize=t}get readable(){return this.backend.readable}get opened(){return!this.done&&this.backend.opened}get isEmpty(){return this.done==0||this.backend.isEmpty}get resource(){return this.backend.resource}get location(){return this.backend.location}get region(){return this.backend.region}close(){const t=this.done>0;if(t)this.done=0;return Promise.resolve(t)}read(){let t;if(this.done!=0){t=this.backend.read();let e;if(this.done>0)this.done--;else if(e=this.backend.peekIs(this.endMark))this.done=e.length}return t}mark(){return this.backend.mark()}static create(t,e){return t&&e?new o(t,e):t}}e.UntilReader=o}));var as=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.BufferedReader=Fo.BufferedReader;e.Device=Uo.Device;e.FileReader=Zo.FileReader;e.FolderReader=Vo.FolderReader;e.Indenter=ss.Indenter;e.InDevice=_o.InDevice;e.OutDevice=es.OutDevice;e.PrefixReader=ns.PrefixReader;e.Reader=Ho.Reader;e.StringReader=Yo.StringReader;e.FileWriter=is.FileWriter;e.TillReader=ls.TillReader;e.UntilReader=rs.UntilReader;e.Writer=os.Writer}));var cs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Error=Do;e.IO=as;e.Uri=Ko;e.Utilities=ts}));var hs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Source=void 0;class o extends cs.IO.BufferedReader{constructor(t,e){super(typeof t=="string"?cs.IO.StringReader.create(t):t);this.errorHandler=e}raise(t,e,o="lexical",s){if(!(t instanceof cs.Error.Message)){if(!e)e=cs.Error.Level.Critical;if(!s)s=this.region;t=new cs.Error.Message(t,e,o,s)}if(this.errorHandler)this.errorHandler.raise(t)}requirePrefix(t){return new o(new cs.IO.PrefixReader(this,t),this.errorHandler)}till(t){return new o(cs.IO.TillReader.create(this,t),this.errorHandler)}until(t){return new o(cs.IO.UntilReader.create(this,t),this.errorHandler)}peekIsSymbol(t){var e,o;return(o=(e=this.peekIs(t!==null&&t!==void 0?t:["!","(",")","[","]","|","*",":",".","<=",">=","<",">"," * "," + "," - "," / ",","]))===null||e===void 0?void 0:e.length)!==null&&o!==void 0?o:false}peekIsWhitespace(){return!!this.peekIs([" ","\n","\t"])}}e.Source=o}));var us=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.tokenize=e.Source=void 0;Object.defineProperty(e,"Source",{enumerable:true,get:function(){return hs.Source}});function o(t,e,o){const s=new hs.Source(t,e);return new cs.Utilities.Enumerator((()=>{let t;let e=1;if(!s.isEmpty){while(s.peekIsWhitespace()&&!s.peekIsSymbol(o))s.read();if(e=s.peekIsSymbol(o))t={value:s.read(e)||"",region:s.mark()};else{let e="";while(!s.isEmpty&&!s.peekIsWhitespace()&&!s.peekIsSymbol(o))e+=s.read();if(e)t={value:e,region:s.mark()}}}return t}))}e.tokenize=o}));var ds=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Base=void 0;class o{tokenize(t){return(0,us.tokenize)(t,undefined,["!","(",")","[","]","|"," | ","*",":",".","<=",">=","<",">"," * "," + ","+"," - ","-"," / "]).map((t=>({value:t.value}))).toArray()}}e.Base=o}));var ms=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Array=void 0;class o extends ds.Base{constructor(t){super();this.class="array";this.array=t}complete(t,e,s){const n=typeof t=="string"?this.tokenize(t):t;return o.completor.flatMap((t=>t(n,this,e))).reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[])}isType(t){return ko.Array.isArray(t)}static add(...t){this.completor.push(...t)}static is(t){return t instanceof o}}e.Array=o;o.completor=[]}));var ys=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Cursor=void 0;(function(t){function e(t){return typeof t=="object"&&typeof t.start=="number"&&typeof t.end=="number"}t.is=e})(e.Cursor||(e.Cursor={}))}));var fs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Completion=void 0;(function(t){function e(t){return t.map((t=>typeof t.cursor=="number"?t.value.slice(0,t.cursor)+"_"+t.value.slice(t.cursor,t.value.length):t.value+"_"))}t.stringify=e;function o(t,e,s){return Array.isArray(e)?e.map((e=>o(t,e,s))):{value:t+e.value+(s!==null&&s!==void 0?s:""),cursor:typeof(e===null||e===void 0?void 0:e.cursor)=="number"?(e===null||e===void 0?void 0:e.cursor)+t.length:ys.Cursor.is(e.cursor)?{start:e.cursor.start+t.length,end:e.cursor.end+t.length}:e.value.length+t.length,suggestion:e.suggestion}}t.prepend=o})(e.Completion||(e.Completion={}))}));var ps=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Boolean=void 0;class o extends ds.Base{constructor(){super();this.class="boolean"}complete(t,e,s){var n;const i=typeof t=="string"?this.tokenize(t):t;const l=s?o.literals.filter((t=>{var e,o;return t.value.startsWith((o=(e=i[0])===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:"")})):((n=i[0])===null||n===void 0?void 0:n.value)==":"?fs.Completion.prepend(":",o.literals.filter((t=>{var e,o;return t.value.startsWith((o=(e=i[1])===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:"")}))):[];return[...l!==null&&l!==void 0?l:[],...(s?[]:o.completor).flatMap((t=>t(i,this,e))).reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[])]}isType(t){return typeof t=="boolean"}static add(...t){this.completor.push(...t)}}e.Boolean=o;o.literals=[{value:"true",suggestion:{value:"true"}},{value:"false",suggestion:{value:"false"}}];o.completor=[]}));var bs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Completor=void 0;(function(t){function e(t,e,o){var s,n,i,l;return t.length==0?[{value:":",suggestion:{value:":"}}]:t.length<=3&&t[0].value==":"&&o.value.startsWith((n=(s=t[1])===null||s===void 0?void 0:s.value)!==null&&n!==void 0?n:"")&&((l=(i=t[2])===null||i===void 0?void 0:i.value)!==null&&l!==void 0?l:"(")=="("?fs.Completion.prepend(":",[o]):t.length<=4&&t.slice(0,4).reduce(((t,e)=>t+e.value),"")==":"+o.value?fs.Completion.prepend(":"+o.value.substring(0,o.value.length-1),e(),")"):t.length==5&&t.slice(0,3).reduce(((t,e)=>t+e.value),"")+t[4].value==":"+o.value?fs.Completion.prepend(":"+o.value.substring(0,o.value.length-1),e(t.slice(3,t.length-1)),")"):t.length>5&&t.slice(0,3).reduce(((t,e)=>t+e.value),"")+t[t.length-1].value==":"+o.value?fs.Completion.prepend(":"+o.value.substring(0,o.value.length-1),e(t.slice(3,t.length-1)),")"):[]}t.functions=e;function o(t,e,o){return t.length==0?[{value:":",suggestion:{value:":"}}]:t[0].value!=":"?[]:t.length==1?fs.Completion.prepend(":",[o]):fs.Completion.prepend(":",e(t.slice(1)))}t.expressions=o;function s(t,e,o){return t.length>=1&&t[0].value==o.value?fs.Completion.prepend(o.value,e(t.slice(1))):t.length==0||t.length==1&&o.value.startsWith(t[0].value)||t[0].value==o.value.replace(/ /g,"")?[o]:[]}t.operators=s})(e.Completor||(e.Completor={}))}));var gs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Number=void 0;class o extends ds.Base{constructor(t){super();this.input=t;this.class="number";if(t)this.value=t}complete(t,e,s){const n=typeof t=="string"?this.tokenize(t):t;return[...n.length>0&&n[0].value==":"&&e?fs.Completion.prepend(":",e.complete(n.slice(1),undefined,this)):e&&n.length>=0&&s?fs.Completion.prepend(" ",e===null||e===void 0?void 0:e.complete(n,undefined,undefined)):[],...(s?o.completorArgument:o.completor).flatMap((t=>t(n,this,e))).reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[])]}isType(t){return isNaN(+t)?false:true}static add(...t){this.completor.push(...t)}static addArgument(...t){this.completorArgument.push(...t)}static is(t){return t instanceof o||!ko.Number.isNaN(t)}}e.Number=o;o.completor=[];o.completorArgument=[]}));var vs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.TObject=void 0;class o extends ds.Base{constructor(t){super();this.properties=t;this.class="object";this.completions=Object.keys(this.properties).map((t=>({value:t,suggestion:{value:t}})))}complete(t,e,s){const n=typeof t=="string"?this.tokenize(t):t;let i;const l=this.filterByType(s);if(!e){const t=n.length>0?this.match(n[0],l):undefined;if(t)i=n.length>=1?fs.Completion.prepend(t.value,this.properties[t.value].complete(n.slice(1),this,s)):[];else if(s&&n.length>2&&s.isType(n[0].value+n[1].value+n[2].value))i=fs.Completion.prepend(n[0].value+n[1].value+n[2].value,s.complete(n.slice(3),this,s));else if(s&&n.length>0&&s.isType(n[0].value))i=fs.Completion.prepend(n[0].value,s.complete(n.slice(1),this,s));else{let t;i=n.length==0?[...this.addDot(l,s),...(s===null||s===void 0?void 0:s.class)=="number"?[]:o.wildcard]:n.length==1&&(t=o.wildcard.find((t=>t.value==n[0].value)))?fs.Completion.prepend(t.value,this.completions,s?".":""):n.length>=1&&(t=o.wildcard.find((t=>t.value==n[0].value)))?fs.Completion.prepend(t.value,this.complete(n.slice(1))):this.addDot(this.partial(n[0],l),s)}}else i=n.length==0?[{value:".",suggestion:{value:"."}}]:n[0].value!="."?[]:n.length==1?fs.Completion.prepend(".",this.addDot(l,s)):this.properties[n[1].value]?fs.Completion.prepend("."+n[1].value,this.properties[n[1].value].complete(n.slice(2),e,s)):fs.Completion.prepend(".",this.addDot(this.partial(n[1],l),s));return[...i.reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[]),...o.completor.flatMap((t=>t(n,this,e)))]}filterByType(t){return t?this.completions.filter((e=>this.properties[e.value].class==t.class||(this.properties[e.value].class=="object"?this.properties[e.value].filterByType(t).length>0:false))):this.completions}addDot(t,e){return!t?[]:e?t.map((t=>{var e;return this.properties[t.value].class=="object"?{value:t.value+".",suggestion:{value:((e=t.suggestion)===null||e===void 0?void 0:e.value)+"."}}:t})):t}partial(t,e){const o=e.filter((e=>e.value.startsWith(t.value)));return o&&o.length>0?o:undefined}match(t,e){const o=e.filter((e=>e.value==t.value));return o&&o.length>0?o[0]:undefined}isType(t){return false}static add(...t){this.completor.push(...t)}}e.TObject=o;o.wildcard=[{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}];o.completor=[]}));var ws=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.String=void 0;class o extends ds.Base{constructor(t){super();this.class="string";if(t)this.value=t}complete(t,e,s){var n,i,l,r,a,c;const h=typeof t=="string"?this.tokenize(t):t;let u;if(s)u=((n=this.value)===null||n===void 0?void 0:n.startsWith((l=(i=h[0])===null||i===void 0?void 0:i.value)!==null&&l!==void 0?l:""))?[{value:this.value,suggestion:{value:this.value}}]:undefined;else u=h.length==0||h[0].value!=":"?undefined:((r=this.value)===null||r===void 0?void 0:r.startsWith((c=(a=h[1])===null||a===void 0?void 0:a.value)!==null&&c!==void 0?c:""))?[fs.Completion.prepend(":",{value:this.value,suggestion:{value:this.value}})]:undefined;return[...u!==null&&u!==void 0?u:[],...(s?[]:o.completor).flatMap((t=>t(h,this,e))).reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[])]}isType(t){return typeof t.value=="string"}static add(...t){this.completor.push(...t)}static is(t){return t instanceof o}}e.String=o;o.completor=[]}));var ks=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Union=void 0;class o extends ds.Base{constructor(t){super();this.type=t;this.class="union"}complete(t,e,o){var s;const n=typeof t=="string"?this.tokenize(t):t;return this.type?(s=this.type)===null||s===void 0?void 0:s.flatMap((t=>{var s;return(s=t===null||t===void 0?void 0:t.complete(n,e,o))!==null&&s!==void 0?s:[]})):[]}isType(t){return t instanceof o}static is(t){return t instanceof o}}e.Union=o}));var Ss=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Type=void 0;(function(t){function e(t,e){const o=t.complete(e);return o.filter((t=>{var o;return!e.includes(t.value)&&((o=t.suggestion)===null||o===void 0?void 0:o.value)})).map((t=>{var e,o,s;return{full:t.value,cursor:(e=t===null||t===void 0?void 0:t.cursor)!==null&&e!==void 0?e:t.value.length,addon:(o=t===null||t===void 0?void 0:t.suggestion)===null||o===void 0?void 0:o.value,description:(s=t===null||t===void 0?void 0:t.suggestion)===null||s===void 0?void 0:s.description}}))}t.complete=e;function o(t){let e;switch(typeof t){case"object":e=ko.Array.isArray(t)?new ms.Array(t.map((t=>o(t)))):new vs.TObject(ko.Object.entries(t).reduce(((t,e)=>Object.assign(Object.assign({},t),{[e[0]]:o(e[1])})),{}));break;case"string":e=new ws.String(t);break;default:e=new gs.Number(t);break}return e}t.convert=o;t.Array=ms.Array;t.Boolean=ps.Boolean;t.Completion=fs.Completion;t.Object=vs.TObject;t.String=ws.String;t.Number=gs.Number;t.Union=ks.Union;t.Completor=bs.Completor})(e.Type||(e.Type={}))}));var xs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.endsWith=e.EndsWith=void 0;class o extends Co.Rule{constructor(t){super();this.needle=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="EndsWith"}is(t){return typeof t=="string"&&t.endsWith(this.needle)}toString(){return`*${this.needle}`}}e.EndsWith=o;function s(t,e){const s=new o(t);return e?s.is(e):s}e.endsWith=s;function n(t,e){return bs.Completor.expressions(t,(t=>{var o,s,n,i;return!t||t[0].value=="*"&&e.value&&e.value.endsWith((s=(o=t[1])===null||o===void 0?void 0:o.value)!==null&&s!==void 0?s:"")?[Ss.Type.Completion.prepend("*",{value:(n=e===null||e===void 0?void 0:e.value)!==null&&n!==void 0?n:"",suggestion:{value:(i=e===null||e===void 0?void 0:e.value)!==null&&i!==void 0?i:""}})]:[]}),{value:"*",suggestion:{value:"*",description:"endswith"}})}Ss.Type.String.add(n)}));var Cs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.every=e.Every=void 0;class o extends Co.Rule{constructor(t){super();this.criteria=t;this.precedence=100;this.class="Every"}is(t){return Array.isArray(t)&&t.every((t=>this.criteria.is(t)))}toString(){return`every(${this.criteria.toString()})`}}e.Every=o;function s(t,e){const s=new o((0,Co.create)(t));return e?s.is(e):s}e.every=s;function n(t,e){const o=t=>e.array.some(Ss.Type.String.is)&&t?e.array.filter(Ss.Type.String.is).map((e=>e.complete([{value:":"},...t]))).reduce(((t,e)=>Array.isArray(e)?t.concat(e):e?[...t,e]:t),[]):!t&&e.array.some(Ss.Type.String.is)?e.array.filter(Ss.Type.String.is).map((t=>{var e;return{value:(e=t===null||t===void 0?void 0:t.value)!==null&&e!==void 0?e:""}})):e.array.some(Ss.Type.Number.is)&&t?e.array.filter(Ss.Type.Number.is).map((e=>e.complete(t))).reduce(((t,e)=>Array.isArray(e)?t.concat(e):e?[...t,e]:t),[]):!t&&e.array.some(Ss.Type.Number.is)?e.array.filter(Ss.Type.Number.is).map((t=>{var e;return{value:((e=t===null||t===void 0?void 0:t.value)!==null&&e!==void 0?e:"").toString()}})):[];return bs.Completor.functions(t,o,{value:"every()",cursor:6,suggestion:{value:"every()"}})}Ss.Type.Array.add(n)}));var Ms=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.isType=e.FunctionCall=void 0;class o extends Co.Rule{constructor(t,e,o){super();this.identifier=t;this.argument=e;this.definition=o;this.precedence=85;this.class="FunctionCall"}is(t){var e,o;return(o=(e=this.definition)===null||e===void 0?void 0:e.is(t))!==null&&o!==void 0?o:true}toString(){return`${this.identifier}(${this.argument.join(", ")})`}}e.FunctionCall=o;function s(t){return typeof t=="object"&&(t===null||t===void 0?void 0:t.class)=="FunctionCall"}e.isType=s}));var As=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Expression=void 0;class o{stringify(t=0){let e=this.toString();if(this.precedence<t)e="("+e+")";return e}}e.Expression=o}));var Os=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Value=void 0;class o extends As.Expression{constructor(t,e){super();this.name=e;this.precedence=o.precedence;this.class="Value";if(typeof t=="string")this.value=isNaN(+t.replace(",","."))?t:+t.replace(",",".");else this.value=t}toString(){var t;return this.name?`${(t=this.name)===null||t===void 0?void 0:t.toString()}.`+this.value.toString():this.value.toString()}evaluate(t){return t?this.get(t):+this.value}get(t){return typeof this.value=="string"?+t[this.value]:this.name&&typeof this.value=="object"?this.value.get(t[this.name]):+this.value}static create(t,e){return new o(t,e)}}e.Value=o;o.precedence=19}));var Ts=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.greaterThan=e.GreaterThan=void 0;class o extends Co.Rule{constructor(t){super();this.value=t;this.precedence=85;this.class="GreaterThan";this.symbol=">"}is(t,e){return(isNaN(+t)?t:+t)>(this.value instanceof Os.Value&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}e.GreaterThan=o;function s(t,e){const s=new o(t);return e?s.is(e):s}e.greaterThan=s;function n(t,e,o){return Ss.Type.Completor.operators(t,(t=>t&&o?o===null||o===void 0?void 0:o.complete(t,undefined,e):[]),{value:">",suggestion:{value:">"}})}Ss.Type.Number.add(n);Ss.Type.String.add(n)}));var Ns=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.greaterThanOrEqual=e.GreaterThanOrEqual=void 0;class o extends Co.Rule{constructor(t){super();this.value=t;this.precedence=85;this.class="GreaterThanOrEqual";this.symbol=">="}is(t,e){return(isNaN(+t)?t:+t)>=(this.value instanceof Os.Value&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}e.GreaterThanOrEqual=o;function s(t,e){const s=new o(t);return e?s.is(e):s}e.greaterThanOrEqual=s;function n(t,e,o){return Ss.Type.Completor.operators(t,(t=>t&&o?o===null||o===void 0?void 0:o.complete(t,undefined,e):[]),{value:">=",suggestion:{value:">="}})}Ss.Type.Number.add(n);Ss.Type.String.add(n)}));var Is=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.has=e.Has=void 0;class o extends Co.Rule{constructor(t){super();this.property=t;this.precedence=85;this.class="Has"}is(t,e){return typeof t=="object"&&t?Object.entries(t).some((t=>{e=typeof e=="string"?e:this.property;return t[0]==e?true:typeof t[1]=="object"&&t[1]?this.is(t[1],e.includes(".")&&e.split(".")[0]==t[0]?e.split(".")[1]:undefined):false})):false}toString(){return`has(${this.property})`}}e.Has=o;function s(t,e){const s=new o(t);return e?s.is(e):s}e.has=s;function n(t,e,o){return o&&(e===null||e===void 0?void 0:e.class)=="object"?bs.Completor.functions(t,(t=>e.completions.filter((e=>e.value.startsWith(t?t[0].value:"")))),{value:"has()",cursor:4,suggestion:{value:"has()"}}):[]}Ss.Type.Object.add(n)}));var Rs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.includes=e.Includes=void 0;class o extends Co.Rule{constructor(t){super();this.needle=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Includes"}is(t){return typeof t=="string"&&t.includes(this.needle)}toString(){return`*${this.needle}*`}}e.Includes=o;function s(t,e){const s=new o(t);return e?s.is(e):s}e.includes=s;function n(t,e){return bs.Completor.expressions(t,(t=>{var o,s,n;return!t||t.length==3&&((o=e.value)===null||o===void 0?void 0:o.includes(t[1].value))&&e.value!=t[1].value||t.length==2&&t[0].value+t[1].value=="**"?[Ss.Type.Completion.prepend("*",{value:(s=e===null||e===void 0?void 0:e.value)!==null&&s!==void 0?s:"",suggestion:{value:(n=e===null||e===void 0?void 0:e.value)!==null&&n!==void 0?n:""}},"*")]:t.length==1&&t[0].value=="*"?[{value:"**",suggestion:{value:"**",description:"includes"}}]:[]}),{value:"**",cursor:1,suggestion:{value:"**",description:"includes"}})}Ss.Type.String.add(n)}));var Ls=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.some=e.Some=void 0;class o extends Co.Rule{constructor(t){super();this.criteria=t;this.precedence=100;this.class="Some"}is(t){return Array.isArray(t)&&t.some((t=>this.criteria.is(t)))}toString(){return`some(${this.criteria.toString()})`}}e.Some=o;function s(t,e){const s=new o((0,Co.create)(t));return e?s.is(e):s}e.some=s;function n(t,e,o){return t.length==0?[{value:":",suggestion:{value:":"}}]:t[0].value!=":"?[]:t.length==1&&t[0].value==":"?Ss.Type.Completion.prepend(":",e.array.filter(Ss.Type.String.is).filter((t=>t.value&&t.value!="string")).map((t=>{var e,o;return{value:(e=t===null||t===void 0?void 0:t.value)!==null&&e!==void 0?e:"",suggestion:{value:(o=t===null||t===void 0?void 0:t.value)!==null&&o!==void 0?o:""}}}))):t.length==2&&t[0].value==":"?Ss.Type.Completion.prepend(":",e.array.filter(Ss.Type.String.is).filter((e=>e.value&&e.value!="string"&&e.value.startsWith(t[1].value))).map((t=>{var e,o;return{value:(e=t===null||t===void 0?void 0:t.value)!==null&&e!==void 0?e:"",suggestion:{value:(o=t===null||t===void 0?void 0:t.value)!==null&&o!==void 0?o:""}}}))):[]}Ss.Type.Array.add(n)}));var Es=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.is=e.Is=void 0;class o extends Co.Rule{constructor(t){super();this.value=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Is";this.symbol=":"}is(t,e){return Array.isArray(t)&&(0,Oo.isCriteria)(this.value)?(0,Ls.some)(this.value,t):(typeof t=="boolean"?t.toString():isNaN(+t)?t:+t)==(typeof this.value=="object"?this.value.evaluate(e):this.value)}toString(){return this.value.toString()}}e.Is=o;function s(t,e){const s=new o(t);return e?s.is(e):s}e.is=s;(0,Co.add)((t=>typeof t=="bigint"||typeof t=="boolean"||typeof t=="number"||typeof t=="string"?new o(t):undefined))}));var Ds=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.lesserThan=e.LesserThan=void 0;class o extends Co.Rule{constructor(t){super();this.value=t;this.precedence=85;this.class="LesserThan";this.symbol="<"}is(t,e){return(isNaN(+t)?t:+t)<(this.value instanceof Os.Value&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}e.LesserThan=o;function s(t,e){const s=new o(t);return e?s.is(e):s}e.lesserThan=s;function n(t,e,o){return Ss.Type.Completor.operators(t,(t=>t&&o?o===null||o===void 0?void 0:o.complete(t,undefined,e):[]),{value:"<",suggestion:{value:"<"}})}Ss.Type.Number.add(n);Ss.Type.String.add(n)}));var Ps=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.lesserThanOrEqual=e.LesserThanOrEqual=void 0;class o extends Co.Rule{constructor(t){super();this.value=t;this.precedence=85;this.class="LesserThanOrEqual";this.symbol="<="}is(t,e){return(isNaN(+t)?t:+t)<=(this.value instanceof Os.Value&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}e.LesserThanOrEqual=o;function s(t,e){const s=new o(t);return e?s.is(e):s}e.lesserThanOrEqual=s;function n(t,e,o){return Ss.Type.Completor.operators(t,(t=>t&&o?o===null||o===void 0?void 0:o.complete(t,undefined,e):[]),{value:"<=",suggestion:{value:"<="}})}Ss.Type.Number.add(n);Ss.Type.String.add(n)}));var Bs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.match=e.Match=void 0;class o extends Co.Rule{constructor(t){super();this.criteria=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Match"}is(t){return typeof t=="string"&&this.criteria.test(t)}toString(){return`/${this.criteria}/`}}e.Match=o;function s(t){return new o(t)}e.match=s;function n(t,e){return bs.Completor.expressions(t,(t=>t&&(t===null||t===void 0?void 0:t.length)==1&&t[0].value=="/"?[{value:"//",cursor:1}]:[]),{value:"//",cursor:1,suggestion:{value:"//",description:"match"}})}Ss.Type.String.add(n)}));var Gs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.not=e.Not=void 0;class o extends Co.Rule{constructor(t){super();this.criteria=t;this.precedence=o.precedence;this.class="Not"}is(t){return!this.criteria.is(t)}toString(){return`!${this.criteria.stringify(this.precedence)}`}}e.Not=o;o.precedence=90;function s(t,e){const s=new o((0,Co.create)(t));return e?s.is(e):s}e.not=s;function n(t,e,o){return e&&e.class!="object"&&o?bs.Completor.expressions(t,(t=>t[0].value!="!"?[]:Ss.Type.Completion.prepend("!",e.complete(t.slice(1),o,e))),{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}):[]}Ss.Type.String.add(n);Ss.Type.Number.add(n);Ss.Type.Boolean.add(n);Ss.Type.Object.add(n)}));var js=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.or=e.Or=void 0;class o extends Co.Rule{constructor(t){super();this.precedence=o.precedence;this.class="Or";this.criteria=t.reduce(((t,e)=>e instanceof o?[...t,...e.criteria]:[...t,e]),[])}is(t){return this.criteria.some((e=>e.is(t)))}toString(){return this.criteria.map((t=>t.stringify(this.precedence))).join(" | ")}}e.Or=o;o.precedence=30;function s(...t){return new o(t.map(Co.create))}e.or=s;function n(t,e,o){return Ss.Type.Completor.operators(t,(t=>t&&o?o===null||o===void 0?void 0:o.complete(t,undefined,undefined):[]),{value:" | ",suggestion:{value:"|",description:"or"}})}Ss.Type.Number.addArgument(n)}));var Ks=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Source=void 0;class o extends cs.Utilities.BufferedEnumerator{constructor(t,e){super(Array.isArray(t)?new cs.Utilities.ArrayEnumerator(t):t);this.errorHandler=e}clone(t="(",e=")"){let s=0;return new o(new cs.Utilities.Enumerator((()=>{let o;if(this.peekIs(t))s++;else if(this.peekIs(e))s--;if(s>=0)o=this.fetch();return o})),this)}peekIs(...t){return t.every(((t,e)=>{const s=this.peek(e);return s&&s.value&&o.is(t,s.value)}))}fetchIf(...t){const e=[];if(this.peekIs(...t))t.forEach((t=>e.push(this.fetch())));return t.length==1?e.length==1?e[0]:undefined:t.length==e.length?e:undefined}mark(){return cs.Utilities.Enumerable.from(cs.Utilities.Enumerable.empty)}raise(t,e=cs.Error.Level.Critical,o="grammatical",s){if(typeof t=="string"){if(!s&&this.last)s=this.last.region;t=new cs.Error.Message(t,e,o,s)}this.errorHandler.raise(t)}static is(t,e){return Array.isArray(t)?t.some((t=>o.is(t,e))):typeof t!="string"?t.test(e):t.startsWith("!")&&t!="!"?!o.is(t.substring(1),e):t=="any"?o.symbol.every((t=>t!=e)):t=="symbol"?o.symbol.some((t=>t==e)):t=="identifier"?/[A-Za-z][A-Za-z0-9_]*/.test(e):t==e}}e.Source=o;o.wildcard=["*","?"];o.separator=["(",")","."];o.operator=["!","|"];o.comparator=["<","<=",">",">=",":"];o.binaryOperator=[" * "," + "," - "];o.symbol=[...o.wildcard,...o.separator,...o.operator,...o.comparator]}));var Us=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.add=e.parseNext=e.parse=void 0;function o(t,e){if(typeof t=="string"){e=e||new cs.Error.ConsoleHandler;const o=us.tokenize(t,e).toArray();t=new Ks.Source(o,e)}e=e instanceof Co.Rule?e:undefined;const o=[];while(t.peek()){if(t.fetchIf("|"))o[o.length-1]=new js.Or([o[o.length-1],s(0,t)]);else o.push(s(0,t))}return o.length==1?o[0]:new Ao.And(o)}e.parse=o;function s(t,e){let o;const i=typeof t=="number"?e=>t<e:e=>t.precedence>e;const l=typeof t=="number"?undefined:t;for(const t of n)if(i(t[1]||Number.MAX_SAFE_INTEGER)){const n=t[0](e,l);if(n){o=s(n,e);break}}return o||l||new Ao.And([])}e.parseNext=s;const n=[];function i(t,e){n.push([t,e])}e.add=i}));var _s=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.addExpression=e.parseNextExpression=e.parseExpression=void 0;function o(t,e){if(typeof t=="string"){e=e||new cs.Error.ConsoleHandler;const o=us.tokenize(t,e).toArray();t=new Ks.Source(o,e)}e=e instanceof As.Expression?e:undefined;let o;let n=false;let i=false;while(!o!=n&&!i&&t.peek()){let e=1;n=false;i=false;while(!n&&!i&&t.peek(e)){n=Ks.Source.binaryOperator.some((o=>{var s;return((s=t.peek(e))===null||s===void 0?void 0:s.value)==o}));i=Ks.Source.comparator.some((o=>{var s;return((s=t.peek(e))===null||s===void 0?void 0:s.value)==o}));e++}o=s(o!==null&&o!==void 0?o:Number.MAX_SAFE_INTEGER,t)}if(!o)t.raise("Missing Expression");return o!==null&&o!==void 0?o:new Os.Value(NaN)}e.parseExpression=o;function s(t,e){let o;const s=typeof t=="number"?undefined:t;for(const s of n){const n=s[0](e,t);if(n){o=n;break}}return o||s}e.parseNextExpression=s;const n=[];function i(t,e){n.push([t,e])}e.addExpression=i}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>{const e=t.fetchIf(":","every","(")&&new Cs.Every((0,Us.parse)(t.clone()));if(e&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return e}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>{const e=t.fetchIf(":","some","(")&&new Ls.Some((0,Us.parse)(t.clone()));if(e&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return e}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)(o(Us.parse));(0,_s.addExpression)(o(_s.parseExpression));function o(t){return e=>{const o=e.fetchIf("(")&&t(e.clone());if(o&&!e.fetchIf(")"))e.raise("Missing end of parenthesis.");return o}}}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>t.fetchIf(">")&&new Ts.GreaterThan((0,_s.parseExpression)(t))))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>t.fetchIf(">=")&&new Ns.GreaterThanOrEqual((0,_s.parseExpression)(t))))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>t.fetchIf("<")&&new Ds.LesserThan((0,_s.parseExpression)(t))))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>t.fetchIf("<=")&&new Ps.LesserThanOrEqual((0,_s.parseExpression)(t))))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>t.fetchIf("!")&&new Gs.Not((0,Us.parseNext)(Gs.Not.precedence,t))))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>{const e=t.fetchIf("has","(","any",")")||t.fetchIf(":","has","(","any",")");return e&&new Is.Has(e.length==4?e[2].value:e[3].value)}))}));var Hs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.within=e.Within=void 0;class o extends Co.Rule{constructor(t){super();this.value=t;this.precedence=85;this.class="Within"}is(t){return this.value.includes(t)}toString(){return`within(${this.value.join(", ")})`}}e.Within=o;function s(t,e){const s=new o(t);return e?s.is(e):s}e.within=s;function n(t,e,o){return o&&(e===null||e===void 0?void 0:e.class)?bs.Completor.functions(t,(t=>[]),{value:"within()",cursor:7,suggestion:{value:"within()"}}):[]}Ss.Type.String.add(n);Ss.Type.Number.add(n)}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>{var e,o,s,n;const i=t.fetchIf(":","within","(");let l;if(i&&t.peek()){l=[(o=(e=t.fetch())===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:""];while(t.fetchIf(","))l.push((n=(s=t.fetchIf("any"))===null||s===void 0?void 0:s.value)!==null&&n!==void 0?n:"");if(!t.fetchIf(")"))t.raise("Missing end of parenthesis.")}return i&&l?new Hs.Within(l):undefined}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>{var e,o,s,n,i,l;const r=(e=t.peek(3))===null||e===void 0?void 0:e.value;const a=[")",",","("].find((t=>t==r))||((o=t.peek(2))===null||o===void 0?void 0:o.value)==")"?t.fetchIf("identifier","("):undefined;let c;if(a&&t.peek()){c=[(n=(s=t.fetchIf(/[A-Za-z0-9_\.\-]+/))===null||s===void 0?void 0:s.value)!==null&&n!==void 0?n:""];while(t.fetchIf(","))c.push((l=(i=t.fetchIf(/[A-Za-z0-9_\.\-]+/))===null||i===void 0?void 0:i.value)!==null&&l!==void 0?l:"");if(!t.fetchIf(")"))t.raise("Missing end of parenthesis.")}return a&&c?new Ms.FunctionCall(a[0].value,c):undefined}))}));var Fs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.property=e.Property=void 0;class o extends Co.Rule{constructor(t,e){super();this.name=t;this.criteria=e;this.precedence=o.precedence;this.class="Property";this.symbol="."}is(t,e){return typeof t=="object"&&this.criteria.is(t[this.name],e!==null&&e!==void 0?e:t)}toString(){var t;return`${this.name}${(t=this.criteria.symbol)!==null&&t!==void 0?t:":"}${this.criteria.stringify(this.precedence)}`}}e.Property=o;o.precedence=80;function s(t,e,s){const n=(Array.isArray(t)?t:[t]).reduceRight(((t,e)=>new o(e,t)),(0,Co.create)(e));return s?n.is(s):n}e.property=s;(0,Co.add)((t=>typeof t=="object"&&!(t instanceof Co.Rule)&&!Array.isArray(t)?(0,Ao.and)(...Object.getOwnPropertyNames(t).map((e=>s(e,t[e])))):undefined))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>{const e=[];let o;while(o=t.fetchIf("identifier","."))e.push(o[0].value);if(t.peekIs("identifier",Ks.Source.comparator)&&(o=t.fetchIf("identifier")))e.push(o.value);return e.length>0?e.reduceRight(((t,e)=>new Fs.Property(e,t)),(0,Us.parseNext)(Fs.Property.precedence,t)):undefined}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>{const e=t.fetchIf(":","*","any","*")||t.fetchIf("*","any","*");return e&&new Rs.Includes(e.length==4?e[2].value:e[1].value)}))}));var zs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.startsWith=e.StartsWith=void 0;class o extends Co.Rule{constructor(t){super();this.needle=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="StartsWith"}is(t){return typeof t=="string"&&t.startsWith(this.needle)}toString(){return`${this.needle}*`}}e.StartsWith=o;function s(t,e){const s=new o(t);return e?s.is(e):s}e.startsWith=s;function n(t,e){return bs.Completor.expressions(t,(t=>{var o,s,n,i;return!t||t.length==1&&t[0].value=="*"||t.length==2&&t[1].value=="*"&&e.value&&e.value.startsWith((s=(o=t[0])===null||o===void 0?void 0:o.value)!==null&&s!==void 0?s:"")?[Ss.Type.Completion.prepend("",{value:(n=e===null||e===void 0?void 0:e.value)!==null&&n!==void 0?n:"",suggestion:{value:(i=e===null||e===void 0?void 0:e.value)!==null&&i!==void 0?i:""}},"*")]:[]}),{value:"*",cursor:0,suggestion:{value:"*",description:"startswith"}})}Ss.Type.String.add(n)}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>{const e=t.fetchIf(":","any","*")||t.fetchIf("any","*");return e&&new zs.StartsWith((e===null||e===void 0?void 0:e.length)==3?e[1].value:e[0].value)}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>{const e=t.fetchIf(":","*","any")||t.fetchIf("*","any");return e&&new xs.EndsWith((e===null||e===void 0?void 0:e.length)==3?e[2].value:e[1].value)}))}));var Ws=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.InfixOperator=void 0;class o extends As.Expression{toString(){const t=this.symbol;return this.left.stringify(o.getPrecedence(t))+` ${t} `+this.right.stringify(o.getPrecedence(t))}constructor(t,e,o,s){super();this.precedence=e;this.left=o;this.right=s;this.class="InfixOperator";this.symbol=t.replace(/ /g,"")}evaluate(t){let e;switch(this.getSymbol()){case"+":e=this.left.evaluate(t)+this.right.evaluate(t);break;case"-":e=this.left.evaluate(t)-this.right.evaluate(t);break;case"*":e=this.left.evaluate(t)*this.right.evaluate(t);break;default:e=NaN;break}return e}getSymbol(){return this.symbol}stringify(t=0){let e=this.toString();if(this.precedence<t)e="("+e+")";return e}static getPrecedence(t){let e;t=t===null||t===void 0?void 0:t.replace(/ /g,"");switch(t){case"+":e=14;break;case"-":e=15;break;case"*":e=16;break;default:e=undefined;break}return e}static create(t,e,s){let n;const i=new o("+",14,e,s);const l=o.getPrecedence(t);if(l)n=new o(t,l,e,s);return n||i}}e.InfixOperator=o;function s(t,e,o){return[" + "," - "," * "].map((t=>({value:t,suggestion:{value:t}}))).map((s=>Ss.Type.Completor.operators(t,(t=>t?o.complete(t,undefined,e):[]),s))).reduce(((t,e)=>t.concat(e)),[])}Ss.Type.Number.addArgument(s)}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,_s.addExpression)(((t,e)=>{var o,s;let n;const i=t.peekIs(Ks.Source.binaryOperator)&&t.fetch().value;let l;if(i&&typeof e=="object"){let r;let a;let c=0;l=Ws.InfixOperator.getPrecedence(i);while(!a&&t.peek(c)){a=((o=t.peek(c))===null||o===void 0?void 0:o.value)=="("?Number.MAX_SAFE_INTEGER:Ws.InfixOperator.getPrecedence((s=t.peek(c))===null||s===void 0?void 0:s.value);c++}if(a&&l<a){r=(0,_s.parseNextExpression)(l,t);if(!r){t.raise("Missing right hand side of "+i)}}else r=(0,_s.parseNextExpression)(NaN,t);if(a&&l==a||a==Number.MAX_SAFE_INTEGER){n=(0,_s.parseNextExpression)(new Ws.InfixOperator(i,l,e,r),t)}else n=new Ws.InfixOperator(i,l,e,r)}return n}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,_s.addExpression)(((t,e)=>{const o=[];let s;while(s=t.fetchIf("identifier","."))o.push(s[0].value);let n;if(o.length==0){s=t.fetchIf("any",".","any")||t.fetchIf("any",",","any")||t.fetchIf("any");n=s&&(Array.isArray(s)?new Os.Value(+s.map((t=>t.value.replace(",","."))).join("")):new Os.Value(s.value))}else{s=t.fetchIf("identifier");const e=new Os.Value(s?s.value:0);n=o.length>0?o.reduceRight(((t,e)=>new Os.Value(isNaN(+t)?t:+t,e)),e):undefined}if(n&&typeof e=="number"&&!isNaN(e)&&e!=Number.MAX_SAFE_INTEGER)n=(0,_s.parseNextExpression)(n,t);return n}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>{let e;if(t.fetchIf(":")){let o=false;let s=false;let n=1;while(!o&&!s&&t.peek(n)){o=Ks.Source.binaryOperator.some((e=>{var o;return((o=t.peek(n))===null||o===void 0?void 0:o.value)==e}));s=Ks.Source.comparator.some((e=>{var o;return((o=t.peek(n))===null||o===void 0?void 0:o.value)==e}));n++}if(o)e=(0,_s.parseExpression)(t)}const o=t.fetchIf("any");return e?new Es.Is(e):o&&new Es.Is(o.value)}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Us.add)((t=>{t.raise(`Ignoring unknown token "${t.fetch()}"`);return undefined}))}));var Ys=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.parseExpression=e.parse=void 0;Object.defineProperty(e,"parse",{enumerable:true,get:function(){return Us.parse}});Object.defineProperty(e,"parseExpression",{enumerable:true,get:function(){return _s.parseExpression}})}));var Zs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.add=e.resolve=void 0;function o(t,e,o={input:[],identifier:[]}){var n,i;return(i=(n=s[e===null||e===void 0?void 0:e.class])===null||n===void 0?void 0:n.call(s,t,e,o))!==null&&i!==void 0?i:e}e.resolve=o;const s={};function n(t,e){s[t]=e}e.add=n}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("And",((t,e,o)=>new Ao.And(e.rules.map((e=>(0,Zs.resolve)(t,e,o))))))}));var Vs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.replace=void 0;(function(t){function e(t,e){var o,s;let n=undefined;let i;const l=typeof t=="string"?t:t.toString();if(e&&e.input&&e.identifier&&((o=e===null||e===void 0?void 0:e.input)===null||o===void 0?void 0:o.length)>0&&((s=e===null||e===void 0?void 0:e.identifier)===null||s===void 0?void 0:s.length)>0&&e.identifier.includes(l)){i=e.identifier.indexOf(l);n=isNaN(+e.input[i])?e.input[i]:+e.input[i]}return n}t.argument=e})(e.replace||(e.replace={}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("EndsWith",((t,e,o)=>{const s=Vs.replace.argument(e.needle,o);return s?new xs.EndsWith(typeof s=="object"?s.value.toString():s.toString()):e}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("Every",((t,e,o)=>new Cs.Every((0,Zs.resolve)(t,e.criteria,o))))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("FunctionCall",((t,e,o)=>{var s,n;const i=t[e.identifier];const l=i?(0,Ys.parse)(i.definition):undefined;const r=l?(0,Zs.resolve)(t,l,{input:(s=o===null||o===void 0?void 0:o.input)===null||s===void 0?void 0:s.concat(e.argument),identifier:(n=o===null||o===void 0?void 0:o.identifier)===null||n===void 0?void 0:n.concat(i.arguments)}):undefined;return new Ms.FunctionCall(e.identifier,e.argument,r)}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("GreaterThan",((t,e,o)=>{const s=Vs.replace.argument(e.value,o);return s?new Ts.GreaterThan(s):e}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("GreaterThanOrEqual",((t,e,o)=>{const s=Vs.replace.argument(e.value,o);return s?new Ns.GreaterThanOrEqual(s):e}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("Has",((t,e,o)=>{const s=Vs.replace.argument(e.property,o);return s?new Is.Has(typeof s=="object"?s.value.toString():s.toString()):e}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("Includes",((t,e,o)=>{const s=Vs.replace.argument(e.needle,o);return s?new Rs.Includes(typeof s=="object"?s.value.toString():s.toString()):e}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("LesserThan",((t,e,o)=>{const s=Vs.replace.argument(e.value,o);return s?new Ds.LesserThan(s):e}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("LesserThanOrEqual",((t,e,o)=>{const s=Vs.replace.argument(e.value,o);return s?new Ps.LesserThanOrEqual(s):e}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("Not",((t,e,o)=>new Gs.Not((0,Zs.resolve)(t,e.criteria,o))))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("Or",((t,e,o)=>new js.Or(e.criteria.map((e=>(0,Zs.resolve)(t,e,o))))))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("Property",((t,e,o)=>new Fs.Property(e.name,(0,Zs.resolve)(t,e.criteria,o))))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("Some",((t,e,o)=>new Ls.Some((0,Zs.resolve)(t,e.criteria,o))))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("StartsWith",((t,e,o)=>{const s=Vs.replace.argument(e.needle,o);return s?new zs.StartsWith(typeof s=="object"?s.value.toString():s.toString()):e}))}));So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});(0,Zs.add)("Is",((t,e,o)=>{const s=Vs.replace.argument(e.value,o);return s?new Es.Is(s):e}))}));var $s=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.resolve=void 0;Object.defineProperty(e,"resolve",{enumerable:true,get:function(){return Zs.resolve}})}));var Xs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.Tuple=void 0;class o extends Co.Rule{constructor(t){super();this.criteria=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Tuple"}is(t){return this.criteria.length==t.length&&this.criteria.every(((e,o)=>e.is(t[o])))}toString(){return`[${this.criteria.map((t=>t.toString())).join(", ")}]`}}e.Tuple=o;(0,Co.add)((t=>Array.isArray(t)?new o(t.map(Co.create)):undefined))}));var Js=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.within=e.startsWith=e.some=e.resolve=e.property=e.parseExpression=e.parse=e.or=e.not=e.match=e.is=e.includes=e.lesserThanOrEqual=e.lesserThan=e.greaterThanOrEqual=e.greaterThan=e.filter=e.has=e.every=e.endsWith=e.create=e.and=e.any=e.Within=e.Value=e.Type=e.Tuple=e.StartsWith=e.Some=e.Rule=e.Property=e.Or=e.Not=e.Match=e.Is=e.Includes=e.LesserThanOrEqual=e.LesserThan=e.GreaterThanOrEqual=e.GreaterThan=e.Has=e.FunctionCall=e.Every=e.EndsWith=e.Criteria=e.Any=e.And=void 0;Object.defineProperty(e,"And",{enumerable:true,get:function(){return Ao.And}});Object.defineProperty(e,"and",{enumerable:true,get:function(){return Ao.and}});Object.defineProperty(e,"Any",{enumerable:true,get:function(){return Mo.Any}});Object.defineProperty(e,"any",{enumerable:true,get:function(){return Mo.any}});Object.defineProperty(e,"Criteria",{enumerable:true,get:function(){return Oo.Criteria}});Object.defineProperty(e,"EndsWith",{enumerable:true,get:function(){return xs.EndsWith}});Object.defineProperty(e,"endsWith",{enumerable:true,get:function(){return xs.endsWith}});Object.defineProperty(e,"Every",{enumerable:true,get:function(){return Cs.Every}});Object.defineProperty(e,"every",{enumerable:true,get:function(){return Cs.every}});Object.defineProperty(e,"FunctionCall",{enumerable:true,get:function(){return Ms.FunctionCall}});Object.defineProperty(e,"GreaterThan",{enumerable:true,get:function(){return Ts.GreaterThan}});Object.defineProperty(e,"greaterThan",{enumerable:true,get:function(){return Ts.greaterThan}});Object.defineProperty(e,"GreaterThanOrEqual",{enumerable:true,get:function(){return Ns.GreaterThanOrEqual}});Object.defineProperty(e,"greaterThanOrEqual",{enumerable:true,get:function(){return Ns.greaterThanOrEqual}});Object.defineProperty(e,"Has",{enumerable:true,get:function(){return Is.Has}});Object.defineProperty(e,"has",{enumerable:true,get:function(){return Is.has}});Object.defineProperty(e,"Includes",{enumerable:true,get:function(){return Rs.Includes}});Object.defineProperty(e,"includes",{enumerable:true,get:function(){return Rs.includes}});Object.defineProperty(e,"Is",{enumerable:true,get:function(){return Es.Is}});Object.defineProperty(e,"LesserThan",{enumerable:true,get:function(){return Ds.LesserThan}});Object.defineProperty(e,"lesserThan",{enumerable:true,get:function(){return Ds.lesserThan}});Object.defineProperty(e,"LesserThanOrEqual",{enumerable:true,get:function(){return Ps.LesserThanOrEqual}});Object.defineProperty(e,"lesserThanOrEqual",{enumerable:true,get:function(){return Ps.lesserThanOrEqual}});Object.defineProperty(e,"Match",{enumerable:true,get:function(){return Bs.Match}});Object.defineProperty(e,"match",{enumerable:true,get:function(){return Bs.match}});Object.defineProperty(e,"Not",{enumerable:true,get:function(){return Gs.Not}});Object.defineProperty(e,"not",{enumerable:true,get:function(){return Gs.not}});Object.defineProperty(e,"Or",{enumerable:true,get:function(){return js.Or}});Object.defineProperty(e,"or",{enumerable:true,get:function(){return js.or}});Object.defineProperty(e,"parse",{enumerable:true,get:function(){return Ys.parse}});Object.defineProperty(e,"parseExpression",{enumerable:true,get:function(){return Ys.parseExpression}});Object.defineProperty(e,"Property",{enumerable:true,get:function(){return Fs.Property}});Object.defineProperty(e,"property",{enumerable:true,get:function(){return Fs.property}});Object.defineProperty(e,"resolve",{enumerable:true,get:function(){return $s.resolve}});Object.defineProperty(e,"create",{enumerable:true,get:function(){return Co.create}});Object.defineProperty(e,"Rule",{enumerable:true,get:function(){return Co.Rule}});Object.defineProperty(e,"Some",{enumerable:true,get:function(){return Ls.Some}});Object.defineProperty(e,"some",{enumerable:true,get:function(){return Ls.some}});Object.defineProperty(e,"StartsWith",{enumerable:true,get:function(){return zs.StartsWith}});Object.defineProperty(e,"startsWith",{enumerable:true,get:function(){return zs.startsWith}});Object.defineProperty(e,"Tuple",{enumerable:true,get:function(){return Xs.Tuple}});Object.defineProperty(e,"Type",{enumerable:true,get:function(){return Ss.Type}});Object.defineProperty(e,"Value",{enumerable:true,get:function(){return Os.Value}});Object.defineProperty(e,"Within",{enumerable:true,get:function(){return Hs.Within}});Object.defineProperty(e,"within",{enumerable:true,get:function(){return Hs.within}});function o(t,e){const o=(0,Co.create)(t);return e?o.is(e):o}e.is=o;function s(t,e){const o=(0,Co.create)(t);return o.filter(e)}e.filter=s}));var Qs=So((function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.within=e.startsWith=e.some=e.resolve=e.property=e.parseExpression=e.parse=e.or=e.not=e.match=e.is=e.includes=e.lesserThanOrEqual=e.lesserThan=e.greaterThanOrEqual=e.greaterThan=e.filter=e.has=e.every=e.endsWith=e.create=e.and=e.any=e.Within=e.Value=e.Type=e.Tuple=e.StartsWith=e.Some=e.Rule=e.Property=e.Or=e.Not=e.Match=e.Is=e.Includes=e.LesserThanOrEqual=e.LesserThan=e.GreaterThanOrEqual=e.GreaterThan=e.Has=e.FunctionCall=e.Every=e.EndsWith=e.Criteria=e.Any=e.And=e.selectively=void 0;Object.defineProperty(e,"And",{enumerable:true,get:function(){return Ao.And}});Object.defineProperty(e,"and",{enumerable:true,get:function(){return Ao.and}});Object.defineProperty(e,"Any",{enumerable:true,get:function(){return Mo.Any}});Object.defineProperty(e,"any",{enumerable:true,get:function(){return Mo.any}});Object.defineProperty(e,"Criteria",{enumerable:true,get:function(){return Oo.Criteria}});Object.defineProperty(e,"EndsWith",{enumerable:true,get:function(){return xs.EndsWith}});Object.defineProperty(e,"endsWith",{enumerable:true,get:function(){return xs.endsWith}});Object.defineProperty(e,"Every",{enumerable:true,get:function(){return Cs.Every}});Object.defineProperty(e,"every",{enumerable:true,get:function(){return Cs.every}});Object.defineProperty(e,"FunctionCall",{enumerable:true,get:function(){return Ms.FunctionCall}});Object.defineProperty(e,"GreaterThan",{enumerable:true,get:function(){return Ts.GreaterThan}});Object.defineProperty(e,"greaterThan",{enumerable:true,get:function(){return Ts.greaterThan}});Object.defineProperty(e,"GreaterThanOrEqual",{enumerable:true,get:function(){return Ns.GreaterThanOrEqual}});Object.defineProperty(e,"greaterThanOrEqual",{enumerable:true,get:function(){return Ns.greaterThanOrEqual}});Object.defineProperty(e,"Has",{enumerable:true,get:function(){return Is.Has}});Object.defineProperty(e,"has",{enumerable:true,get:function(){return Is.has}});Object.defineProperty(e,"Includes",{enumerable:true,get:function(){return Rs.Includes}});Object.defineProperty(e,"includes",{enumerable:true,get:function(){return Rs.includes}});Object.defineProperty(e,"Is",{enumerable:true,get:function(){return Es.Is}});Object.defineProperty(e,"LesserThan",{enumerable:true,get:function(){return Ds.LesserThan}});Object.defineProperty(e,"lesserThan",{enumerable:true,get:function(){return Ds.lesserThan}});Object.defineProperty(e,"LesserThanOrEqual",{enumerable:true,get:function(){return Ps.LesserThanOrEqual}});Object.defineProperty(e,"lesserThanOrEqual",{enumerable:true,get:function(){return Ps.lesserThanOrEqual}});Object.defineProperty(e,"Match",{enumerable:true,get:function(){return Bs.Match}});Object.defineProperty(e,"match",{enumerable:true,get:function(){return Bs.match}});Object.defineProperty(e,"Not",{enumerable:true,get:function(){return Gs.Not}});Object.defineProperty(e,"not",{enumerable:true,get:function(){return Gs.not}});Object.defineProperty(e,"Or",{enumerable:true,get:function(){return js.Or}});Object.defineProperty(e,"or",{enumerable:true,get:function(){return js.or}});Object.defineProperty(e,"parse",{enumerable:true,get:function(){return Ys.parse}});Object.defineProperty(e,"parseExpression",{enumerable:true,get:function(){return Ys.parseExpression}});Object.defineProperty(e,"Property",{enumerable:true,get:function(){return Fs.Property}});Object.defineProperty(e,"property",{enumerable:true,get:function(){return Fs.property}});Object.defineProperty(e,"resolve",{enumerable:true,get:function(){return $s.resolve}});Object.defineProperty(e,"create",{enumerable:true,get:function(){return Co.create}});Object.defineProperty(e,"Rule",{enumerable:true,get:function(){return Co.Rule}});Object.defineProperty(e,"Some",{enumerable:true,get:function(){return Ls.Some}});Object.defineProperty(e,"some",{enumerable:true,get:function(){return Ls.some}});Object.defineProperty(e,"StartsWith",{enumerable:true,get:function(){return zs.StartsWith}});Object.defineProperty(e,"startsWith",{enumerable:true,get:function(){return zs.startsWith}});Object.defineProperty(e,"Tuple",{enumerable:true,get:function(){return Xs.Tuple}});Object.defineProperty(e,"Type",{enumerable:true,get:function(){return Ss.Type}});Object.defineProperty(e,"Value",{enumerable:true,get:function(){return Os.Value}});Object.defineProperty(e,"Within",{enumerable:true,get:function(){return Hs.Within}});Object.defineProperty(e,"within",{enumerable:true,get:function(){return Hs.within}});function o(t,e){const o=(0,Co.create)(t);return e?o.is(e):o}e.is=o;function s(t,e){const o=(0,Co.create)(t);return o.filter(e)}e.filter=s;e.selectively=Js}));var qs;(function(t){function e(t){return t&&typeof t=="object"&&typeof t.clear=="function"}t.is=e})(qs||(qs={}));const tn='*{box-sizing:border-box}:host{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;width:100%;margin-bottom:1em}:host>smoothly-input{margin-bottom:0.5em}section{display:flex;justify-content:center;align-items:center}.hidden{display:flex;width:0px;opacity:0}.container{width:inherit;position:relative;z-index:3;margin:0.8em 0;opacity:1;transition:opacity 100ms ease-in-out}.container:after{content:"";height:100%;width:100%;border:1px solid rgb(var(--smoothly-color-contrast));border-radius:0.25em;position:absolute;top:0;left:0}.container:before{content:"";width:0.6em;height:0.6em;transform:rotate(45deg);border-top:1px solid rgb(var(--smoothly-color-contrast));border-left:1px solid rgb(var(--smoothly-color-contrast));background-color:rgb(var(--smoothly-default-color));position:absolute;z-index:3}.container.arrow-top:before{left:calc(84.5%);top:-5px}.container-wrapper{width:100%;padding:1em;position:relative}.btn.hidden{margin-right:0.25em;opacity:0;cursor:text}.btn.clear{margin-right:0.25em;opacity:0.3}::slotted(div[slot=filter]){display:grid;grid-template-columns:1fr;justify-content:center;align-items:center;gap:0.5em}:host>smoothly-fom>smoothly-input>section[slot=end]>smoothly-button{font-size:100%;min-width:min-content;padding:0;margin:0;border:none !important}';const en=class{constructor(e){t(this,e);this.filters=s(this,"filters",7);this.inputs=new Map;this.placeholder=undefined;this.expanded=false;this.freeSearchValue=undefined;this.criteria={};this.inputValue=undefined}filterHandler(t){t.stopPropagation();if(qs.is(t.target)){const e=t.target;Object.keys(t.detail).forEach((t=>this.inputs.set(t,e)))}!this.freeSearchValue?this.filters.emit(this.criteria=Object.assign(Object.assign({},this.criteria),t.detail)):this.filters.emit(Qs.and(Qs.any(Qs.includes(this.freeSearchValue)),this.criteria=Object.assign(Object.assign({},this.criteria),t.detail)))}onKeyDown(){var t;this.freeSearchValue=(t=this.freeSearchElement)===null||t===void 0?void 0:t.value;this.inputValue=Qs.includes(this.freeSearchValue);this.filters.emit(Qs.any(this.inputValue))}async clear(t){new Set(this.inputs.values()).forEach((t=>t.clear()));this.filters.emit(this.criteria={})}render(){return[e("smoothly-form",{looks:"border"},e("smoothly-input",{name:"filter",ref:t=>this.freeSearchElement=t,value:Qs.create(this.criteria).stringify(),onKeyDown:()=>this.onKeyDown(),placeholder:this.placeholder},e("section",{slot:"start"},e("slot",{name:"start"})),e("slot",null),e("section",{slot:"end"},e("smoothly-button",{size:"flexible",onClick:t=>this.clear(t)},e("smoothly-icon",{class:Object.keys(this.criteria).length>=1?"btn clear":"btn hidden",name:"close",size:"tiny"})),e("smoothly-button",{size:"flexible",class:"btn",onClick:()=>{this.expanded=!this.expanded}},this.expanded?e("smoothly-icon",{name:"options",size:"small"}):e("smoothly-icon",{name:"options-outline",size:"small"}))))),e("section",{hidden:!this.expanded,class:this.expanded?"container arrow-top":"hidden"},e("div",{hidden:!this.expanded,class:this.expanded?"container-wrapper":"hidden"},this.expanded&&e("slot",{name:"filter"})))]}};en.style=tn;const on=":host{display:block}";const sn=class{constructor(e){t(this,e);this.filter=s(this,"filter",7);this.name=undefined;this.value="";this.type="text";this.required=false;this.minLength=0;this.showLabel=true;this.maxLength=Number.POSITIVE_INFINITY;this.autocomplete=true;this.pattern=undefined;this.placeholder=undefined;this.disabled=false;this.readonly=false;this.currency=undefined;this.comparison="includes";this.criteria=undefined}onFilter(){this.value=this.smoothlyInput.value;let t="";let e;switch(this.comparison){case"equals":e=this.value;break;case"less":e=Qs.lesserThan(this.value);break;case"greater":e=Qs.greaterThan(this.value);break;case"starts":e=Qs.startsWith(this.value);break;case"ends":e=Qs.endsWith(this.value);break;default:case"includes":e=Qs.includes(this.value);break}t=this.name.split(".").reverse().reduce(((t,e)=>({[e]:t})),e);this.filter.emit(t)}async clear(){this.value=""}render(){return[e("smoothly-input",{name:this.name,ref:t=>this.smoothlyInput=t,value:this.value,onKeyDown:()=>this.onFilter(),onSmoothlyInput:t=>{var e;this.value=(e=t.detail.value)!==null&&e!==void 0?e:""},placeholder:this.placeholder},e("div",{slot:"start"},e("slot",{name:"start"})),e("slot",null))]}};sn.style=on;var nn;(function(t){function e(t){return typeof t=="string"&&(t=="GET"||t=="POST"||t=="DELETE"||t=="HEAD"||t=="PATCH"||t=="PUT"||t=="OPTIONS"||t=="TRACE"||t=="CONNECT")}t.is=e;function o(t){t=t?.toUpperCase();return e(t)?t:undefined}t.parse=o})(nn||(nn={}));const ln={};function rn(t,...e){e.forEach((e=>ln[e]=t))}function an(t){const e=t.headers.get("Content-Type");const o=e&&e.split(";");const s=ln[o?.[0]??"plain/text"];return s?s(t):t.text()}const cn={};function hn(t,...e){e.forEach((e=>cn[e]=t))}function un(t,e){const o=cn[e?.split(";")[0]??""];return o?o(t,e):t}function dn(t){return t.toLowerCase().replace(/-[a-z]/g,(t=>t.substring(1).toUpperCase()))}function mn(t){const e=t.replace(/[A-Z]/g,(t=>"-"+t));return e[0].toUpperCase()+e.substring(1)}const yn=[["aIM","A-IM",1],["accept","Accept",2],["acceptCharset","Accept-Charset",2],["acceptDatetime","Accept-Datetime",1],["acceptEncoding","Accept-Encoding",2],["acceptLanguage","Accept-Language",2],["accessControlRequestMethod","Access-Control-Request-Method",1],["accessControlRequestHeaders","Access-Control-Request-Headers",1],["authorization","Authorization",1],["cacheControl","Cache-Control",1],["cfConnectionIp","CF-Connecting-IP",1],["cfIpCountry","CF-IPCountry",1],["connection","Connection",1],["contentLength","Content-Length",1],["contentMD5","Content-MD5",1],["contentType","Content-Type",1],["cookie","Cookie",1],["date","Date",1],["expect","Expect",1],["forwarded","Forwarded",1],["from","From",1],["host","Host",1],["http2Settings","HTTP2-Settings",1],["ifMatch","If-Match",2],["ifModifiedSince","If-Modified-Since",1],["ifNoneMatch","If-None-Match",2],["ifRange","If-Range",1],["ifUnmodifiedSince","If-Unmodified-Since",1],["maxForwards","Max-Forwards",1],["origin","Origin",1],["pragma","Pragma",1],["proxyAuthorization","Proxy-Authorization",1],["range","Range",1],["referer","Referer",1],["te","TE",2],["trailer","Trailer",1],["transferEncoding","Transfer-Encoding",1],["userAgent","User-Agent",1],["upgrade","Upgrade",2],["via","Via",2],["warning","Warning",1],["upgradeInsecureRequests","Upgrade-Insecure-Requests",1],["xRequestedWith","X-Requested-With",1],["dnt","DNT",1],["xForwardedFor","X-Forwarded-For",1],["xForwardedHost","X-Forwarded-Host",1],["xForwardedProto","X-Forwarded-Proto",1],["xMsContinuation","X-Ms-Continuation",1],["frontEndHttps","Front-End-Https",1],["xHttpMethodOverride","X-Http-Method-Override",1],["xAttDeviceId","X-ATT-DeviceId",1],["xWapProfile","X-Wap-Profile",1],["proxyConnection","Proxy-Connection",1],["xCsrfToken","X-Csrf-Token",1],["xCorrelationID","X-Correlation-ID",1],["xModNonce","x-mod-nonce",1],["xModRetry","x-mod-retry",1],["saveData","Save-Data",1],["xAuthToken","X-Auth-Token",1],["xTrackingId","x-tracking-id",1]];var fn;(function(t){function e(t){function e(t){return t==undefined||typeof t=="string"}function o(t){return t==undefined||Array.isArray(t)&&t.every((t=>typeof t=="string"))}return typeof t=="object"&&yn.every((s=>(s[2]==1?e:o)(t[s[0]])))}t.is=e;function o(t){return Object.fromEntries(Object.entries(t).map((([t,e])=>{const o=yn.find((([e,o,s])=>e==t));return[o?o[1]:mn(t),Array.isArray(e)?e.join(", "):e]})))}t.to=o;function s(t){return Object.fromEntries((Array.isArray(t)?t.map((([t,...e])=>[t,e.join(", ")])):i(t)?[...t]:Object.entries(t)).map((([t,e])=>{const o=yn.find((([e,o,s])=>t.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof e!="string"?e:e.split(",").map((t=>t.trim()))]:[dn(t),e]})))}t.from=s;function n(t){return Object.entries(t).map((([t,e])=>t+": "+e)).join("\n")}t.toString=n;function i(t){return typeof t.entries=="function"}})(fn||(fn={}));var pn;(function(t){function e(t){return typeof t=="object"&&Object.keys(t).every((t=>["method","url","parameter","search","remote","header","body"].some((e=>e==t))))&&nn.is(t.method)&&t.url instanceof URL&&typeof t.parameter=="object"&&Object.entries(t.parameter).every((([t,e])=>typeof t=="string"&&typeof e=="string"))&&typeof t.search=="object"&&Object.entries(t.search).every((([t,e])=>typeof t=="string"&&typeof e=="string"))&&(t.remote==undefined||typeof t.remote=="string")&&(t.header==undefined||fn.is(t.header))}t.is=e;async function o(t){const o=e(t)?t:n(t);const s=o.header.contentType?.startsWith("multipart/form-data")?(({contentType:t,...e})=>e)(o.header):o.header;return{url:o.url.toString(),method:o.method,headers:fn.to(s),body:["GET","HEAD"].some((t=>t==o.method))?undefined:await un(await o.body,o.header.contentType)}}t.to=o;function s(t){const e=new URL(t.url);return{method:nn.parse(t.method)??"GET",url:e,header:fn.from(t.headers),parameter:{},search:Object.fromEntries(e.searchParams.entries()),body:an(t),..."cf"in t&&{cloudflare:t.cf}}}t.from=s;function n(t){let e;if(typeof t=="string")e=n({url:t});else{const o=typeof t.url=="string"?new URL(t.url):t.url;e={method:nn.parse(t.method)??"GET",url:o,parameter:t.parameter??{},search:{...t.search,...Object.fromEntries(o.searchParams.entries())},remote:t.remote,header:t.header??{},body:t.body}}return e}t.create=n;(function(t){t.is=fn.is;t.from=fn.from;t.to=fn.to})(t.Header||(t.Header={}))})(pn||(pn={}));const bn=typeof Response!="undefined"?Response:globalThis.Response;var gn=undefined&&undefined.__classPrivateFieldGet||function(t,e,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(t):s?s.value:e.get(t)};var vn=undefined&&undefined.__classPrivateFieldSet||function(t,e,o,s,n){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?n.call(t,o):n?n.value=o:e.set(t,o),o};var wn,kn,Sn,xn,Cn,Mn,An,On,Tn;class Nn{get state(){return gn(this,xn,"f")?"closed":"opened"}set onMessage(t){if(gn(this,kn,"f").length&&t){gn(this,kn,"f").forEach(t);vn(this,kn,[],"f")}vn(this,Mn,t,"f")}set onClose(t){if(this.state=="closed"&&t)t();vn(this,An,t,"f")}set onOpen(t){if(this.state=="opened"&&t)t();vn(this,Tn,t,"f")}constructor(t,e){wn.add(this);kn.set(this,[]);Sn.set(this,[]);xn.set(this,false);Cn.set(this,void 0);Mn.set(this,void 0);An.set(this,void 0);Tn.set(this,void 0);vn(this,Cn,t,"f");if(e)vn(this,Sn,undefined,"f");gn(this,Cn,"f").addEventListener("open",(()=>{if(gn(this,Tn,"f"))gn(this,Tn,"f").call(this);gn(this,wn,"m",On).bind(this)}));gn(this,Cn,"f").addEventListener("message",(async t=>{const e=this.processReceived(t.data);gn(this,wn,"m",On).call(this);if(gn(this,Mn,"f"))gn(this,Mn,"f").call(this,e);else gn(this,kn,"f")?.push(e)}));gn(this,Cn,"f").addEventListener("close",(()=>{if(gn(this,An,"f"))gn(this,An,"f").call(this);vn(this,xn,true,"f")}))}send(t){if(gn(this,Sn,"f"))gn(this,Sn,"f").push(this.processSend(t));else gn(this,Cn,"f").send(this.processSend(t))}}kn=new WeakMap,Sn=new WeakMap,xn=new WeakMap,Cn=new WeakMap,Mn=new WeakMap,An=new WeakMap,Tn=new WeakMap,wn=new WeakSet,On=function t(){gn(this,Sn,"f")?.forEach((t=>gn(this,Cn,"f").send(t)));vn(this,Sn,undefined,"f")};class In extends Nn{processReceived(t){return t?.arrayBuffer?t.arrayBuffer():typeof t=="string"?(new TextEncoder).encode(t).buffer:t}processSend(t){return t}}class Rn extends Nn{processReceived(t){return JSON.parse(t?.arrayBuffer?(new TextDecoder).decode(t.arrayBuffer()):typeof t!="string"?(new TextDecoder).decode(t):t)}processSend(t){return JSON.stringify(t)}}class Ln extends Nn{processReceived(t){return t?.arrayBuffer?(new TextDecoder).decode(t.arrayBuffer()):typeof t!="string"?(new TextDecoder).decode(t):t}processSend(t){return t}}var En=undefined&&undefined.__classPrivateFieldGet||function(t,e,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(t):s?s.value:e.get(t)};var Dn=undefined&&undefined.__classPrivateFieldSet||function(t,e,o,s,n){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?n.call(t,o):n?n.value=o:e.set(t,o),o};var Pn,Bn,Gn;class jn{get json(){if(!En(this,Pn,"f"))Dn(this,Pn,new Rn(this.backend,this.isOpen),"f");return En(this,Pn,"f")}get string(){if(!En(this,Bn,"f"))Dn(this,Bn,new Ln(this.backend,this.isOpen),"f");return En(this,Bn,"f")}get arrayBuffer(){if(!En(this,Gn,"f"))Dn(this,Gn,new In(this.backend,this.isOpen),"f");return En(this,Gn,"f")}constructor(t,e){this.backend=t;this.isOpen=e;Pn.set(this,void 0);Bn.set(this,void 0);Gn.set(this,void 0)}createResponse(t={}){return{status:101,socket:this,header:t}}close(t,e){this.backend.close(t,e)}}Pn=new WeakMap,Bn=new WeakMap,Gn=new WeakMap;var Kn;(function(t){t.Factory=jn})(Kn||(Kn={}));const Un=[["accessControlAllowOrigin","Access-Control-Allow-Origin",1],["accessControlAllowCredentials","Access-Control-Allow-Credentials",1],["accessControlExposeHeaders","Access-Control-Expose-Headers",2],["accessControlMaxAge","Access-Control-Max-Age",1],["accessControlAllowMethods","Access-Control-Allow-Methods",2],["accessControlAllowHeaders","Access-Control-Allow-Headers",2],["acceptPatch","Accept-Patch",1],["acceptRanges","Accept-Ranges",1],["age","Age",1],["allow","Allow",2],["altSvc","Alt-Svc",1],["cacheControl","Cache-Control",1],["cfConnectionIp","CF-Connecting-IP",1],["cfIpCountry","CF-IPCountry",1],["connection","Connection",1],["contentDisposition","Content-Disposition",1],["contentEncoding","Content-Encoding",1],["contentLanguage","Content-Language",2],["contentLength","Content-Length",1],["contentLocation","Content-Location",1],["contentMD5","Content-MD5",1],["contentRange","Content-Range",1],["contentSecurityPolicy","Content-Security-Policy",1],["contentType","Content-Type",1],["date","Date",1],["deltaBase","Delta-Base",1],["eTag","ETag",1],["expires","Expires",1],["iM","IM",1],["lastModified","Last-Modified",1],["link","Link",1],["location","Location",1],["p3P","P3P",1],["pragma","Pragma",1],["proxyAuthenticate","Proxy-Authenticate",1],["publicKeyPins","Public-Key-Pins",1],["refresh","Refresh",1],["retryAfter","Retry-After",1],["server","Server",1],["setCookie","Set-Cookie",1],["status","Status",1],["strictTransportSecurity","Strict-Transport-Security",1],["timingAllowOrigin","Timing-Allow-Origin",2],["trailer","Trailer",1],["transferEncoding","Transfer-Encoding",1],["tk","Tk",1],["upgrade","Upgrade",2],["vary","Vary",2],["via","Via",1],["warning","Warning",1],["wwwAuthenticate","WWW-Authenticate",1],["xContentDuration","X-Content-Duration",1],["xContentSecurityPolicy","X-Content-Security-Policy",1],["xContentTypeOptions","X-Content-Type-Options",1],["xCorrelationId","X-Correlation-ID",1],["xFrameOptions","X-Frame-Options",1],["xMsContinuation","X-Ms-Continuation",1],["xPoweredBy","X-Powered-By",1],["xRequestId","X-Request-ID",1],["xUACompatible","X-UA-Compatible",1],["xWebkitCsp","X-WebKit-CSP",1],["xXssProtection","X-XSS-Protection",1]];var _n;(function(t){function e(t){function e(t){return t==undefined||typeof t=="string"}function o(t){return t==undefined||Array.isArray(t)&&t.every((t=>typeof t=="string"))}return typeof t=="object"&&Un.every((s=>(s[2]==1?e:o)(t[s[0]])))}t.is=e;function o(t){return Object.fromEntries(Object.entries(t).map((([t,e])=>{const o=Un.find((([e,...o])=>e==t));return[o?o[1]:mn(t),Array.isArray(e)?e.join(", "):e]})))}t.to=o;function s(t){return Object.fromEntries((Array.isArray(t)?t.map((([t,...e])=>[t,e.join(", ")])):i(t)?l(t):Object.entries(t)).map((([t,e])=>{const o=Un.find((([e,o,s])=>t.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof e!="string"?e:e.split(",").map((t=>t.trim()))]:[dn(t),e]})))}t.from=s;function n(t){return Object.entries(t).map((([t,e])=>t+": "+e)).join("\n")}t.toString=n;function i(t){return typeof t.forEach=="function"}function l(t){const e=[];t.forEach(((t,o)=>e.push([o,t])));return e}})(_n||(_n={}));var Hn;(function(t){function e(t){return typeof t=="object"&&Object.keys(t).every((t=>["status","header","body","socket"].some((e=>e==t))))&&(t.status==undefined||typeof t.status=="number")&&(t.header==undefined||_n.is(t.header))&&(t.socket==undefined||typeof t.socket.close=="function"&&typeof t.socket.json?.send=="function"&&typeof t.socket.string?.send=="function"&&typeof t.socket.arrayBuffer?.send=="function")&&(t.status!=undefined||t.header!=undefined||t.body!=undefined)}t.is=e})(Hn||(Hn={}));var Fn;(function(t){function e(t){return typeof t=="object"&&Object.keys(t).every((t=>["status","header","body","socket"].some((e=>e==t))))&&(t.status==undefined||typeof t.status=="number")&&(t.header==undefined||_n.is(t.header))&&(t.socket==undefined||t.socket instanceof WebSocket)}t.is=e;async function o(t){return new bn(await un(await t.body,t.header.contentType),{status:t.status,headers:new Headers(_n.to(!t.header.contentType?.startsWith("multipart/formdata")?t.header:(({contentType:t,...e})=>e)(t.header))),...t.socket&&{webSocket:{...t.socket.createResponse().socket}?.backend}})}t.to=o;function s(t){return{status:t.status,header:_n.from(t.headers),body:t.status==101?undefined:an(t),...t.webSocket&&{socket:new Kn.Factory(t.webSocket)}}}t.from=s;function n(t,e){const o=Hn.is(t)?{status:200,header:{},body:undefined,...t.socket&&{socket:t.socket},...t}:typeof t?.createResponse=="function"&&(e==undefined||_n.is(e))?t.createResponse(e):{status:typeof t=="object"&&typeof t.status=="number"&&t.status||200,header:typeof t=="object"?{...t.header,...(t.status==301||t.status==302)&&t.location?{location:t.location}:{}}:{},body:!(typeof t=="object"&&!Array.isArray(t))||t instanceof ArrayBuffer||ArrayBuffer.isView(t)||t instanceof FormData?t:(({header:t,...e})=>e)(t),...t.webSocket&&{socket:new Kn.Factory(t.webSocket)}||t.socket&&{socket:t.socket}};if(!o.header.contentType)switch(typeof o.body){case"undefined":break;default:case"object":o.header.contentType=typeof e=="string"?e:e?.contentType?e.contentType:o.body instanceof FormData?"multipart/formdata":o.body instanceof ArrayBuffer||ArrayBuffer.isView(o.body)?i(o.body)?"application/pdf":"application/octet-stream":"application/json; charset=utf-8";break;case"string":o.header.contentType=o.body.slice(0,9).toLowerCase()=="<!doctype"?"text/html; charset=utf-8":/^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/.test(o.body)?"application/jwt; charset=utf-8":/^<\?xml version=(.|\n)*\?>(.|\n)*<svg(.|\n)*<\/svg>$/.test(o.body)?"image/svg+xml":"text/plain; charset=utf-8";break}return o}t.create=n;function i(t){const e=new Uint8Array(ArrayBuffer.isView(t)?t.buffer:t).slice(0,4);return[37,80,68,70].every(((t,o)=>t==e[o]))}t.Header=_n;t.Like=Hn})(Fn||(Fn={}));const zn=Wn(globalThis.fetch);zn.create=Wn;function Wn(t){return async e=>{const o=pn.create(e);return Fn.from(await t(o.url.toString(),await pn.to(o)))}}var Yn;(function(t){function e(t){const e=new globalThis.FormData;e.append("*",new globalThis.Blob([(new TextEncoder).encode(JSON.stringify(o(t,"",e)))],{type:"application/json; charset=utf-8"}));return e}t.to=e;function o(t,e,n){return Object.entries(t).reduce(((t,[i,l])=>{l instanceof Blob?n.append(e?`${e}.${i}`:i,l):typeof l=="object"&&l?Array.isArray(l)?t[i]=s(l,e?`${e}.${i}`:i,n):t[i]=o(l,e?`${e}.${i}`:i,n):t[i]=l;return t}),{})}function s(t,e,n){return t.reduce(((t,i)=>{typeof i=="object"&&i?Array.isArray(i)?t.push(s(i,e,n)):t.push(o(i,e,n)):t.push(i);return t}),[])}async function n(t){const e={};for(const[o,s]of t.entries())await i(e,o.split("."),s);return e}t.from=n;async function i(t,[e,...o],s){if(o.length==0)s instanceof Blob&&s.type.startsWith("application/json")?e=="*"?l(t,JSON.parse(await s.text())):typeof t[e]=="object"&&t[e]?l(t[e],JSON.parse(await s.text())):t[e]=JSON.parse(await s.text()):t[e]=s;else i(typeof t[e]=="object"&&t[e]?t[e]:t[e]={},o,s)}function l(t,...e){if(e.length){const[o,...s]=e;Object.entries(o).forEach((([e,s])=>r(s)?l(r(t[e])?t[e]:t[e]={},s):t[e]=o[e]));l(t,...s)}}function r(t){return t&&typeof t=="object"&&!Array.isArray(t)}t.isObject=r})(Yn||(Yn={}));function Zn(t){const e=[];const o=(t,s)=>{switch(typeof s){default:case"bigint":case"boolean":case"number":case"string":e.push(`${t}=${encodeURIComponent(s.toString())}`);break;case"undefined":break;case"object":for(const e in s)if(Object.prototype.hasOwnProperty.call(s,e))o(t?t+`[${e}]`:e,s[e]);break}};o("",t);return e.join("&")}function Vn(t){const e=t=>typeof t=="object"&&Object.keys(t).sort().every(((t,e)=>`${t}`==`${e}`))?Object.entries(t).sort().map((t=>typeof t[1]=="object"?e(t[1]):t[1])):typeof t=="object"?Object.fromEntries(Object.entries(t).map((t=>[t[0],e(t[1])]))):t;const o=(t,e,s)=>{t[e[0]]=e.length>1?o(t[e[0]]??{},e.slice(1),s):s;return t};const s=t.split("&").map((t=>t.split("=",2))).map((([t,e])=>[decodeURIComponent(t).split("[").map((t=>t.replace("]",""))),decodeURIComponent(e.replace(/\+/g," "))]));return s.reduce(((t,[s,n])=>e(o(t,s,n))),{})}rn((async t=>await t.text()),"text/plain","text/html");rn((async t=>await t.json()),"application/json");rn((async t=>Yn.from(await t.formData())),"multipart/form-data");rn((async t=>Vn(await t.text())),"application/x-www-form-urlencoded");hn((async t=>typeof t=="string"?t:t.toString()),"text/plain","text/html");hn((async t=>JSON.stringify(t)),"application/json");hn((async t=>Zn(t)),"application/x-www-form-urlencoded");hn((async t=>t instanceof globalThis.FormData?t:Yn.to(t)),"multipart/form-data");var $n;(function(t){function e(t){return t&&typeof t=="object"&&typeof t.clear=="function"}t.is=e})($n||($n={}));const Xn='smoothly-form{display:block;position:relative;--background-color:var(--smoothly-color-shade);--text-color:var(--smoothly-color-contrast)}smoothly-form>form{position:relative;min-width:15em}smoothly-form>form>fieldset{display:flex;flex-flow:row wrap;margin-inline-start:unset;margin-inline-end:unset;padding-block-start:unset;padding-inline-start:unset;padding-inline-end:unset;padding-block-end:unset;min-inline-size:unset;border-width:unset;border-style:unset;border-color:unset;border-image:unset}smoothly-form>form>fieldset>*{flex-grow:1;min-width:10em;flex-basis:40%}smoothly-form[looks="grid"]>form>fieldset{border:rgba(var(--text-color), .5) solid .5px}smoothly-form[looks="line"]>form>fieldset,smoothly-form[looks="border"]>form>fieldset{gap:2em}smoothly-form>form>div{display:flex;justify-content:end;gap:1em}';const Jn=class{constructor(e){t(this,e);this.smoothlyFormInput=s(this,"smoothlyFormInput",7);this.smoothlyFormSubmit=s(this,"smoothlyFormSubmit",7);this.clearables=new Map;this.listeners={};this.color=undefined;this.value={};this.looks="plain";this.name=undefined;this.method=undefined;this.action=undefined;this.processing=undefined;this.prevent=true;this.notice=undefined;this.changed=false}listen(t,e){var o;var s;((o=(s=this.listeners)[t])!==null&&o!==void 0?o:s[t]=[]).push(e);e(this)}watchValue(){var t;this.changed=Object.values(this.value).filter((t=>Boolean(t))).length>0;(t=this.listeners.changed)===null||t===void 0?void 0:t.forEach((t=>t(this)))}smoothlyInputLooksHandler(t){t.stopPropagation();t.detail(this.looks,this.color)}async smoothlyInputHandler(t){this.notice=undefined;this.smoothlyFormInput.emit(this.value=Object.entries(t.detail).reduce(((t,[e,o])=>l.set(t,e.split("."),o)),this.value));if($n.is(t.target)){const e=t.target;Object.keys(t.detail).forEach((t=>this.clearables.set(t,e)))}}async smoothlySubmitHandler(t){this.processing=true;this.submit();this.processing=false}async SmoothlyInputLoadHandler(t){t.detail(this)}async submit(){this.smoothlyFormSubmit.emit(this.value);if(this.action){const t=await zn(this.method=="POST"?{method:"POST",url:this.action,body:this.value}:{url:`${this.action}?${Zn(this.value)}`});if(t.status>=200&&t.status<300){this.notice=h.succeeded("Form sucessfully submitted.");await this.clear()}else this.notice=h.failed("Failed to submit form.")}}async clear(){new Set(this.clearables.values()).forEach((t=>t.clear()))}render(){return e(n,null,this.notice?e("smoothly-notification",{notice:this.notice}):[],e("smoothly-spinner",{active:this.processing}),e("form",{onSubmit:!this.prevent?undefined:t=>t.preventDefault(),name:this.name},e("fieldset",null,e("slot",null)),e("div",null,e("slot",{name:"clear"}),e("slot",{name:"submit"}))))}static get watchers(){return{value:["watchValue"]}}};Jn.style=Xn;const Qn=".sc-smoothly-frame-h{display:block;width:100%;height:100%}[hidden].sc-smoothly-frame-h{display:none}.sc-smoothly-frame-h>iframe.sc-smoothly-frame{border:none;padding:none;margin:none}";const qn=class{constructor(e){t(this,e);this.trigger=s(this,"trigger",7);this.message2=s(this,"message2",7);this.url=undefined;this.name=undefined;this.origin=undefined}get contentWindow(){const t=this.element&&this.element.firstElementChild?this.element.firstElementChild:undefined;return t&&t.contentWindow||undefined}get defaultOrigin(){const t=this.url.match(/^(([a-z]+\+)*[a-z]+:\/\/)?[^/^\n]+/);return t?t[0]:"*"}componentDidLoad(){var t;if(this.contentWindow)r.listen((t=this.origin)!==null&&t!==void 0?t:this.defaultOrigin,((t,e)=>{if(t==this.name)if(i.is(e))this.trigger.emit(e);else this.message2.emit({destination:t,content:e})}),window)}async send(t,e){var o,s;if(typeof t=="string")r.send(((o=this.origin)!==null&&o!==void 0?o:this.defaultOrigin)+"#"+t,e,this.contentWindow);else if(r.is(t)&&this.contentWindow)r.send({destination:((s=this.origin)!==null&&s!==void 0?s:this.defaultOrigin)+"#"+t.destination,content:t.destination},this.contentWindow)}render(){return[]}get element(){return o(this)}};qn.style=Qn;const ti="[size].sc-smoothly-icon-h{background:none}.sc-smoothly-icon-h{display:block}[hidden].sc-smoothly-icon-h{display:none}[size=tiny].sc-smoothly-icon-h{width:1.2em;height:1.2em}[size=small].sc-smoothly-icon-h{width:1.4em;height:1.4em}[size=medium].sc-smoothly-icon-h{width:1.8em;height:1.8em}[size=large].sc-smoothly-icon-h{width:2.8em;height:2.8em}[size=xlarge].sc-smoothly-icon-h{width:4em;height:4em}";const ei=class{constructor(e){t(this,e);this.color=undefined;this.fill="solid";this.name="empty";this.size="medium";this.toolTip=undefined;this.document=undefined}async componentWillLoad(){let t;if(this.name!="empty"){t=await a.load(this.name);t=t===null||t===void 0?void 0:t.replace(/(?<=^<svg\s?)/,`$& role="img"`).replace(` width="512" height="512"`,"").replace(/stroke:#000;/gi,"");if(t===null||t===void 0?void 0:t.includes("<title>"))t=t.replace(/(<title>)[\w\d\s-]*(<\/title>)/,`<title>${this.toolTip||""}</title>`);else t=t===null||t===void 0?void 0:t.replace(/(.*>)(<\/svg>$)/,`$1<title>${this.toolTip||""}</title>$2`)}this.document=t!==null&&t!==void 0?t:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\n\t\t<title>Empty</title>\n\t\t</svg>`}render(){return e(n,{innerHTML:this.document})}static get watchers(){return{name:["componentWillLoad"]}}};ei.style=ti;const oi="icon-demo.sc-smoothly-icon-demo{display:block}icon-demo[hidden].sc-smoothly-icon-demo{display:none}icon-demo.sc-smoothly-icon-demo>content.sc-smoothly-icon-demo{display:flex;flex-flow:row wrap}icon-demo.sc-smoothly-icon-demo>content.sc-smoothly-icon-demo>*.sc-smoothly-icon-demo{margin:1cm}";const si=class{constructor(e){t(this,e);this.page=0}render(){return[e("h1",null,"Icons"),e("content",null,["add-circle","add","airplane","alarm","albums","alert-circle","alert","american-football","analytics","aperture","apps","archive","arrow-back-circle","arrow-back","arrow-down-circle","arrow-down","arrow-forward-circle","arrow-forward","arrow-redo-circle","arrow-redo","arrow-undo-circle","arrow-undo","arrow-up-circle","arrow-up","at-circle","at","attach","backspace","bandage","barbell","bar-chart","barcode","baseball","basketball","basket","battery-charging","battery-dead","battery-full","battery-half","beaker","bed","beer","bicycle","bluetooth","boat","body","bonfire","bookmarks","bookmark","book","briefcase","browsers","brush","bug","build","bulb","business","bus","cafe","calculator","calendar","call","camera-reverse","camera","card","caret-back-circle","caret-back","caret-down-circle","caret-down","caret-forward-circle","caret-forward","caret-up-circle","caret-up","car-sport","car","cart","cash","cellular","chatbox-ellipses","chatbox","chatbubble-ellipses","chatbubbles","chatbubble","checkbox","checkmark-circle","checkmark-done-circle","checkmark-done","checkmark","chevron-back-circle","chevron-back","chevron-down-circle","chevron-down","chevron-forward-circle","chevron-forward","chevron-up-circle","chevron-up","clipboard","close-circle","close","cloud-circle","cloud-done","cloud-download","cloud-offline","cloud","cloud-upload","cloudy-night","cloudy","code-download","code-slash","code","code-working","cog","color-fill","color-filter","color-palette","color-wand","compass","construct","contract","contrast","copy","create","crop","cube","cut","desktop","disc","document-attach","documents","document","document-text","download","duplicate","ear","earth","easel","egg","ellipse","ellipsis-horizontal-circle","ellipsis-horizontal","ellipsis-vertical-circle","ellipsis-vertical","enter","exit","expand","eyedrop","eye-off","eye","fast-food","female","file-tray-full","file-tray-stacked","file-tray","film","filter","finger-print","fitness","flag","flame","flashlight","flash-off","flash","flask","flower","folder-open","folder","football","funnel","game-controller","gift","git-branch","git-commit","git-compare","git-merge","git-network","git-pull-request","glasses","globe","golf","grid","hammer","hand-left","hand-right","happy","hardware-chip","headset","heart-circle","heart-dislike-circle","heart-dislike","heart-half","heart","help-buoy","help-circle","help","home","hourglass","ice-cream","images","image","infinite","information-circle","information","journal","keypad","key","language","laptop","layers","leaf","library","link","list-circle","list","locate","location","lock-closed","lock-open","log-in","logo-amazon","logo-amplify","logo-android","logo-angular","logo-apple-appstore","logo-apple","logo-behance","logo-bitbucket","logo-bitcoin","logo-buffer","logo-capacitor","logo-chrome","logo-closed-captioning","logo-codepen","logo-css3","logo-designernews","logo-docker","logo-dribbble","logo-dropbox","logo-edge","logo-electron","logo-euro","logo-facebook","logo-firebase","logo-firefox","logo-flickr","logo-foursquare","logo-github","logo-gitlab","logo-google-playstore","logo-google","logo-hackernews","logo-html5","logo-instagram","logo-ionic","logo-ionitron","logo-javascript","logo-laravel","logo-linkedin","logo-markdown","logo-medium","logo-nodejs","logo-no-smoking","logo-npm","logo-octocat","logo-paypal","logo-pinterest","logo-playstation","logo-pwa","logo-python","logo-react","logo-reddit","logo-rss","logo-sass","logo-skype","logo-slack","logo-snapchat","logo-soundcloud","logo-stackoverflow","logo-steam","logo-stencil","logo-tiktok","logo-tumblr","logo-tux","logo-twitch","logo-twitter","logo-usd","log-out","logo-web-component","logo-venmo","logo-whatsapp","logo-vimeo","logo-windows","logo-vk","logo-wordpress","logo-vue","logo-xbox","logo-xing","logo-yahoo","logo-yen","logo-youtube","magnet","mail-open","mail","mail-unread","male-female","male","man","map","medal","medical","medkit","megaphone","menu","mic-circle","mic-off-circle","mic-off","mic","moon","move","musical-notes","musical-note","navigate-circle","navigate","newspaper","notifications-circle","notifications-off-circle","notifications-off","notifications","nuclear","nutrition","open","options","paper-plane","partly-sunny","pause-circle","pause","paw","pencil","people-circle","people","person-add","person-circle","person-remove","person","phone-landscape","phone-portrait","pie-chart","pin","pint","pizza","planet","play-back-circle","play-back","play-circle","play-forward-circle","play-forward","play-skip-back-circle","play-skip-back","play-skip-forward-circle","play-skip-forward","play","podium","power","pricetags","pricetag","print","pulse","push","qr-code","radio-button-off","radio-button-on","radio","rainy","reader","receipt","recording","refresh-circle","refresh","reload-circle","reload","remove-circle","remove","reorder-four","reorder-three","reorder-two","repeat","resize","restaurant","return-down-back","return-down-forward","return-up-back","return-up-forward","ribbon","rocket","rose","sad","save","scan-circle","scan","school","search-circle","search","send","server","settings","shapes","share-social","share","shield-checkmark","shield","shirt","shuffle","skull","snow","speedometer","square","star-half","star","stats-chart","stop-circle","stop","stopwatch","subway","sunny","swap-horizontal","swap-vertical","sync-circle","sync","tablet-landscape","tablet-portrait","tennisball","terminal","text","thermometer","thumbs-down","thumbs-up","thunderstorm","timer","time","today","toggle","trail-sign","train","transgender","trash-bin","trash","trending-down","trending-up","triangle","trophy","tv","umbrella","walk","wallet","warning","watch","water","videocam","wifi","wine","volume-high","volume-low","volume-medium","volume-mute","volume-off","woman"].slice(this.page*100,100).map((t=>e("smoothly-icon",{name:t,toolTip:t}))))]}};si.style=oi;const ni='.sc-smoothly-input-h{box-sizing:border-box}.sc-smoothly-input-h[looks="border"].sc-smoothly-input-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-input-h[looks="line"].sc-smoothly-input-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-input-h[looks="grid"].sc-smoothly-input-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}.sc-smoothly-input-h{display:flex;align-items:center;justify-content:center;font-weight:var(--smoothly-font-weight);padding:0 0.4em;overflow:hidden;background-color:rgb(var(--background-color, var(--smoothly-color-shade)));color:rgb(var(--text-color, var(--smoothly-color-contrast)))}[hidden].sc-smoothly-input-h{display:none}.sc-smoothly-input-h>div.sc-smoothly-input:nth-child(2){margin-left:0.2em}.sc-smoothly-input-h>div.sc-smoothly-input{position:relative;width:100%;height:100%}label.sc-smoothly-input{position:absolute;left:0;top:0.6em;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-h:not([show-label]) label.sc-smoothly-input{display:none}.sc-smoothly-input-h:not([show-label]) input.sc-smoothly-input{padding:0.7em 0.3em 0.7em 0.4em}input.sc-smoothly-input{padding:1.2em 0.3em 0.2em 0.4em;box-sizing:border-box;width:100%;height:100%;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family);background-color:rgb(var(--background-color, var(--smoothly-color-shade)))}smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}input.sc-smoothly-input:invalid+label.sc-smoothly-input+smoothly-icon.sc-smoothly-input{display:block}.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input{z-index:1;pointer-events:none}[placeholder].sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input,.has-value.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input,.sc-smoothly-input-h:focus-within>div.sc-smoothly-input>label.sc-smoothly-input{top:0.4em;transform:scale(0.6)}input.sc-smoothly-input:focus{outline:none}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill:hover,input.sc-smoothly-input:-webkit-autofill:focus,input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 40em rgb(var(--background-color, var(--smoothly-color-shade))) inset;-webkit-box-shadow:0 0 0 40em rgb(var(--background-color, var(--smoothly-color-shade))) inset}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill+label.sc-smoothly-input{-webkit-text-fill-color:rgb(var(--text-color, var(--smoothly-color-contrast)))}';const ii=class{constructor(e){t(this,e);this.smoothlyInputLooks=s(this,"smoothlyInputLooks",7);this.smoothlyBlur=s(this,"smoothlyBlur",7);this.smoothlyChange=s(this,"smoothlyChange",7);this.smoothlyInput=s(this,"smoothlyInput",7);this.keepFocusOnReRender=false;this.listener={};this.color=undefined;this.looks="plain";this.name=undefined;this.value=undefined;this.type="text";this.required=false;this.minLength=0;this.showLabel=true;this.maxLength=Number.POSITIVE_INFINITY;this.autocomplete=true;this.pattern=undefined;this.placeholder=undefined;this.disabled=false;this.readonly=false;this.currency=undefined;this.formatter=undefined;this.initialValue=undefined;this.changed=false}listen(t,e){this.listener[t]=e;e(this)}async SmoothlyInputLoadHandler(t){t.stopPropagation();t.detail(this)}typeChange(){let t;switch(this.type){case"price":t=re("price",this.currency);break;default:t=re(this.type,li());break}this.formatter=t||re("text")}newState(t){const e=this.formatter;return e.format(se.copy(e.unformat(se.copy(t))))}valueWatcher(t,e){var o,s;if(this.lastValue!=t){this.lastValue=t;this.state=Object.assign(Object.assign({},this.state),{value:this.newState({value:this.formatter.toString(t),selection:this.state.selection}).value})}if(t!=e){if(typeof t=="string")t=t.trim();this.smoothlyInput.emit({[this.name]:t})}this.changed=Boolean(this.value);(s=(o=this.listener).changed)===null||s===void 0?void 0:s.call(o,this)}onCurrency(){this.state=Object.assign(Object.assign({},this.state),{value:this.newState({value:this.formatter.toString(this.value),selection:this.state.selection}).value,pattern:this.newState({value:this.formatter.toString(this.value),selection:this.state.selection}).pattern})}componentWillLoad(){this.typeChange();const t=this.formatter.toString(this.value)||"";const e=t.length;this.state=this.newState({value:t,selection:{start:e,end:e,direction:"none"}});this.smoothlyInputLooks.emit(((t,e)=>(this.looks=t,!this.color&&(this.color=e))))}componentDidRender(){if(this.keepFocusOnReRender){this.inputElement.focus();this.keepFocusOnReRender=false}}async clear(){this.value=undefined}async getFormData(t){const e={};const o=document.forms.namedItem(t);if(o){const t=o.elements;for(let o=0;o<t.length;o++){const s=t.item(o);if(this.hasNameAndValue(s)&&s.name)e[s.name]=s.value}const s=o.getElementsByTagName("smoothly-input");for(let t=0;t<s.length;t++){const o=s.item(t);if(this.hasNameAndValue(o)&&o.name)e[o.name]=o.value}}return e}hasNameAndValue(t){return typeof t.name=="string"&&typeof t.value=="string"}async setKeepFocusOnReRender(t){this.keepFocusOnReRender=t}async setSelectionRange(t,e,o){this.state=this.newState(Object.assign(Object.assign({},this.state),{selection:{start:t,end:e,direction:o!=undefined?o:this.state.selection.direction}}));const s=this.formatter.format(se.copy(this.formatter.unformat(se.copy(Object.assign({},this.state)))));this.updateBackend(s,this.inputElement)}onBlur(t){this.smoothlyBlur.emit();if(this.initialValue!=this.value)this.smoothlyChange.emit({[this.name]:this.value});this.initialValue=undefined}onFocus(t){this.initialValue=this.value;const e=this.formatter.format(se.copy(this.formatter.unformat(se.copy(Object.assign({},this.state)))));if(t.target)this.updateBackend(e,t.target)}onClick(t){const e=t.target;this.state=Object.assign(Object.assign({},this.state),{value:e.value,selection:{start:e.selectionStart!=undefined?e.selectionStart:e.value.length,end:e.selectionEnd!=undefined?e.selectionEnd:e.value.length,direction:e.selectionDirection?e.selectionDirection:"none"}});const o=this.newState(Object.assign({},this.state));this.updateBackend(o,e)}onKeyDown(t){if(t.key&&!(t.key=="Unidentified")){const e=t.target;this.state=Object.assign(Object.assign({},this.state),{value:e.value,selection:{start:e.selectionStart!=undefined?e.selectionStart:e.value.length,end:e.selectionEnd!=undefined?e.selectionEnd:e.value.length,direction:e.selectionDirection?e.selectionDirection:"none"}});if(!((t.ctrlKey||t.metaKey)&&(t.key=="v"||t.key=="x"||t.key=="c"))&&t.key.length==1||t.key=="ArrowLeft"||t.key=="ArrowRight"||t.key=="Delete"||t.key=="Backspace"||t.key=="Home"||t.key=="End"){t.preventDefault();this.processKey(t,e)}else if(t.key=="ArrowUp"||t.key=="ArrowDown")t.preventDefault()}}onPaste(t){t.preventDefault();let e=t.clipboardData?t.clipboardData.getData("text"):"";const o=t.target;e=this.expiresAutocompleteFix(o,e);for(const t of e)this.processKey({key:t},o)}onInput(t){var e;if(t.inputType=="insertReplacementText"){this.processKey({key:"a",ctrlKey:true},t.target);[...(e=t.data)!==null&&e!==void 0?e:""].forEach((e=>this.processKey({key:e},t.target)))}else{const e=t.target;let o=e.value;if(o){t.preventDefault();this.processKey({key:"a",ctrlKey:true},e);o=this.expiresAutocompleteFix(e,o);for(const t of o)this.processKey({key:t},e)}}}expiresAutocompleteFix(t,e){var o;if(((o=t.attributes.getNamedItem("autocomplete"))===null||o===void 0?void 0:o.value)=="cc-exp")e=e.match(/^20\d\d[.\D]*\d\d$/)?e.substring(e.length-2,e.length)+e.substring(2,4):e.match(/^(1[3-9]|[2-9]\d)[.\D]*\d\d$/)?e.substring(e.length-2,e.length)+e.substring(0,2):e.match(/^\d\d[.\D]*20\d\d$/)?e.substring(0,2)+e.substring(e.length-2,e.length):e;return e}processKey(t,e){if(!this.readonly){const o=ne.apply(this.formatter,this.state,t);this.updateBackend(o,e)}}updateBackend(t,e){if(t.value!=e.value)e.value=t.value;if(e.selectionStart!=undefined&&t.selection.start!=e.selectionStart)e.selectionStart=t.selection.start;if(e.selectionEnd!=undefined&&t.selection.end!=e.selectionEnd)e.selectionEnd=t.selection.end;e.selectionDirection=t.selection.direction?t.selection.direction:e.selectionDirection;this.state=t;this.value=this.lastValue=this.formatter.fromString(this.formatter.unformat(se.copy(Object.assign({},this.state))).value)}render(){var t,o,s,i,l,r,a;return e(n,{class:{"has-value":((t=this.state)===null||t===void 0?void 0:t.value)!=undefined&&((o=this.state)===null||o===void 0?void 0:o.value)!=""},onclick:()=>{var t;return(t=this.inputElement)===null||t===void 0?void 0:t.focus()}},e("slot",{name:"start"}),e("div",null,e("input",{color:this.color,name:this.name,type:(s=this.state)===null||s===void 0?void 0:s.type,placeholder:this.placeholder,required:this.required,autocomplete:this.autocomplete?(i=this.state)===null||i===void 0?void 0:i.autocomplete:"off",disabled:this.disabled,readOnly:this.readonly,pattern:((l=this.state)===null||l===void 0?void 0:l.pattern)&&((r=this.state)===null||r===void 0?void 0:r.pattern.source),value:(a=this.state)===null||a===void 0?void 0:a.value,onInput:t=>this.onInput(t),onFocus:t=>this.onFocus(t),onClick:t=>this.onClick(t),onBlur:t=>this.onBlur(t),onKeyDown:t=>this.onKeyDown(t),ref:t=>this.inputElement=t,onPaste:t=>this.onPaste(t)}),e("label",{htmlFor:this.name},e("slot",null)),e("smoothly-icon",{name:"alert-circle",color:"danger",fill:"clear",size:"small"})),e("slot",{name:"end"}))}static get watchers(){return{type:["typeChange"],value:["valueWatcher"],currency:["onCurrency"]}}};function li(){const t=navigator.language;return f.is(t)?t:p.is(t)?f.toLocale(t):undefined}ii.style=ni;var ri;(function(t){function e(t){return t&&typeof t=="object"&&typeof t.changed=="boolean"&&typeof t.listen=="function"}t.is=e})(ri||(ri={}));const ai='[color=default].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-color);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-clear-h{display:inline-block;margin:1em;box-sizing:border-box;border-radius:0.5rem;border:solid 1px;transition:background 150ms ease-in-out;cursor:pointer}[type=link].sc-smoothly-input-clear-h{display:inline;border:none}[disabled].sc-smoothly-input-clear-h{opacity:0.5;pointer-events:none}a.sc-smoothly-input-clear,button.sc-smoothly-input-clear{font-size:110%;font-weight:400;border:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem}button.sc-smoothly-input-clear{justify-content:center;height:100%;width:100%;border-radius:0.5rem;min-width:8em;align-items:center}.sc-smoothly-input-clear-h:not([size=icon])>button.sc-smoothly-input-clear{padding:0.8em}[size=icon].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{padding:0.5em}[shape=rounded].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear,[shape=rounded].sc-smoothly-input-clear-h{border-radius:2rem}[type=button].sc-smoothly-input-clear-h>a.sc-smoothly-input-clear{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-size:100%}[size=large].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-size:130%}.sc-smoothly-input-clear-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-clear-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center;border:none}[size=flexible].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{min-width:unset;padding:0;margin:0 !important}[expand].sc-smoothly-input-clear-h{width:100%}[expand=full].sc-smoothly-input-clear-h{border-left:none;border-right:none;border-radius:0}[shape=rounded].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear,[shape=rounded].sc-smoothly-input-clear-h{border-radius:2rem}.sc-smoothly-input-clear-h:not([fill=clear]):hover,.sc-smoothly-input-clear-h:not([fill=clear]):focus,.sc-smoothly-input-clear-h:not([fill=clear]):active{border-color:rgb(var(--smoothly-color-tint)) !important;background:rgb(var(--smoothly-color-tint)) !important}.sc-smoothly-input-clear-h:not([fill=clear]):hover>button.sc-smoothly-input-clear,.sc-smoothly-input-clear-h:not([fill=clear]):focus>button.sc-smoothly-input-clear,.sc-smoothly-input-clear-h:not([fill=clear]):active>button.sc-smoothly-input-clear,.sc-smoothly-input-clear-h:not([fill=clear]):hover .sc-smoothly-input-clear-s>smoothly-icon,.sc-smoothly-input-clear-h:not([fill=clear]):focus .sc-smoothly-input-clear-s>smoothly-icon,.sc-smoothly-input-clear-h:not([fill=clear]):active .sc-smoothly-input-clear-s>smoothly-icon{color:rgb(var(--smoothly-color-contrast)) !important;stroke:rgb(var(--smoothly-color-contrast)) !important;fill:rgb(var(--smoothly-color-contrast)) !important}[fill=clear].sc-smoothly-input-clear-h:hover>button.sc-smoothly-input-clear,[fill=clear].sc-smoothly-input-clear-h:focus>button.sc-smoothly-input-clear,[fill=clear].sc-smoothly-input-clear-h:active>button.sc-smoothly-input-clear{color:rgb(var(--smoothly-color-tint)) !important;stroke:rgb(var(--smoothly-color-tint)) !important;fill:rgb(var(--smoothly-color-tint)) !important}[disabled].sc-smoothly-input-clear-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-clear-h:not([fill]),[fill=default].sc-smoothly-input-clear-h{background:rgb(var(--smoothly-color));border-color:transparent}[fill=solid].sc-smoothly-input-clear-h{background:rgb(var(--smoothly-color));border-color:rgb(var(--smoothly-color))}[fill=solid].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear,[fill=default].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{stroke:rgb(var(--smoothly-color-contrast));fill:rgb(var(--smoothly-color-contrast));color:rgb(var(--smoothly-color-contrast))}[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear,[fill=clear].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{stroke:rgb(var(--smoothly-color));fill:rgb(var(--smoothly-color));color:rgb(var(--smoothly-color))}[fill=outline].sc-smoothly-input-clear-h{background:transparent;border-color:rgb(var(--smoothly-color))}[fill=clear].sc-smoothly-input-clear-h{background:transparent;border-color:transparent}.sc-smoothly-input-clear-s>smoothly-icon[slot=start],.sc-smoothly-input-clear-s>smoothly-icon[slot=end]{font-size:0.65em}[hidden].sc-smoothly-input-clear-h{display:none}.sc-smoothly-input-clear-h:not([display]){display:none}.sc-smoothly-input-clear-h{transition:0.6s;margin:0rem;min-width:0rem}[type="input"].sc-smoothly-input-clear-h{line-height:1}[type="form"].sc-smoothly-input-clear-h{margin:1em 0em}.sc-smoothly-input-clear-h[type="input"] .sc-smoothly-input-clear-s>smoothly-icon{filter:opacity(60%);font-size:70%}.sc-smoothly-input-clear-h[type="input"]:hover .sc-smoothly-input-clear-s>smoothly-icon{cursor:pointer;filter:opacity(100%)}[type="input"].sc-smoothly-input-clear-h button.sc-smoothly-input-clear{padding:0rem;margin:0rem;min-width:0rem}';const ci=class{constructor(e){t(this,e);this.smoothlyInputLoad=s(this,"smoothlyInputLoad",7);this.color=undefined;this.expand=undefined;this.fill="clear";this.disabled=false;this.size=undefined;this.shape=undefined;this.display=true;this.type="input"}async componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if($n.is(t)){this.parent=t;if(ri.is(t))t.listen("changed",(async t=>{if(t instanceof Jn)this.disabled=!t.changed;if(t instanceof ii)this.display=t.changed}))}}))}clickHandler(){var t;(t=this.parent)===null||t===void 0?void 0:t.clear()}render(){return e(It,{disabled:this.disabled,type:"button"},e("slot",null))}};ci.style=ai;const hi='.sc-smoothly-input-date-h{box-sizing:border-box}.sc-smoothly-input-date-h[looks="border"].sc-smoothly-input-date-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-date-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-input-date-h[looks="line"].sc-smoothly-input-date-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-date-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-input-date-h[looks="grid"].sc-smoothly-input-date-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-date-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}.sc-smoothly-input-date-h{position:relative;max-width:100vw;background-color:rgb(var(--background-color, var(--smoothly-color-shade)))}nav.sc-smoothly-input-date{position:absolute;z-index:10;top:3.5em;background-color:rgb(var(--background-color, var(--smoothly-color-shade)));min-width:18em}.sc-smoothly-input-date-h>div.sc-smoothly-input-date{position:fixed;top:0;left:0;right:0;bottom:0;width:100vw;height:100vh;z-index:2}.sc-smoothly-input-date-h>nav.sc-smoothly-input-date>.arrow.sc-smoothly-input-date{position:absolute;z-index:9;transform:translate(2em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--background-color, var(--smoothly-color-shade)))}@media screen and (min-width: 400px){nav.sc-smoothly-input-date{position:absolute;z-index:10;top:3.5em;background-color:rgb(var(--background-color, var(--smoothly-color-shade)));max-width:22em}}';const ui=class{constructor(e){t(this,e);this.valueChanged=s(this,"valueChanged",7);this.smoothlyInput=s(this,"smoothlyInput",7);this.smoothlyInputLooks=s(this,"smoothlyInputLooks",7);this.color=undefined;this.looks="plain";this.name=undefined;this.value=undefined;this.open=undefined;this.max=undefined;this.min=undefined;this.showLabel=true;this.disabled=undefined}componentWillLoad(){this.smoothlyInputLooks.emit(((t,e)=>(this.looks=t,!this.color&&(this.color=e))))}async clear(){this.value=undefined}onStart(t){this.valueChanged.emit(t);this.smoothlyInput.emit({[this.name]:t})}smoothlyInputHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}dateSetHandler(t){this.open=false;t.stopPropagation()}render(){var t;return[e("smoothly-input",{color:this.color,name:this.name,onFocus:()=>this.open=!this.open,onClick:()=>this.open=!this.open,disabled:this.disabled,type:"date",value:this.value,looks:"plain",showLabel:this.showLabel,onSmoothlyInput:t=>this.value=t.detail[this.name]},e("slot",null)),this.open&&!this.disabled?[e("div",{onClick:()=>this.open=false}),e("nav",null,e("div",{class:"arrow"}),e("smoothly-calendar",{doubleInput:false,value:(t=this.value)!==null&&t!==void 0?t:u.now(),onValueChanged:t=>{this.value=t.detail;t.stopPropagation()},max:this.max,min:this.min}))]:[]]}get element(){return o(this)}static get watchers(){return{value:["onStart"]}}};ui.style=hi;const di='.sc-smoothly-input-date-range-h{box-sizing:border-box}.sc-smoothly-input-date-range-h[looks="border"].sc-smoothly-input-date-range-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-date-range-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-input-date-range-h[looks="line"].sc-smoothly-input-date-range-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-date-range-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-input-date-range-h[looks="grid"].sc-smoothly-input-date-range-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-date-range-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}.sc-smoothly-input-date-range-h{position:relative;display:block;width:fit-content;background-color:rgb(var(--background-color, var(--smoothly-color-shade)))}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range{position:absolute;z-index:10;top:3.5em;background-color:rgb(var(--background-color, var(--smoothly-color-shade)));max-width:22em}.sc-smoothly-input-date-range-h>div.sc-smoothly-input-date-range{position:fixed;top:0px;left:0px;right:0px;bottom:0px;width:100vw;height:100vh;z-index:2}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range>.arrow.sc-smoothly-input-date-range{position:absolute;z-index:9;transform:translate(10em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--background-color, var(--smoothly-color-shade)))}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range{display:flex;background-color:var(--background-color, var(--smoothly-color-shade), transparent);border-radius:0.25rem;cursor:pointer}smoothly-input.sc-smoothly-input-date-range{border-radius:var(--border-radius, none);background-color:transparent;width:var(--input-width);flex-grow:1}span.sc-smoothly-input-date-range{padding:0.5em 0.2em 0.5em 0.2em;align-self:center}';const mi=class{constructor(e){t(this,e);this.valueChanged=s(this,"valueChanged",7);this.smoothlyInput=s(this,"smoothlyInput",7);this.smoothlyInputLooks=s(this,"smoothlyInputLooks",7);this.color=undefined;this.looks="plain";this.name=undefined;this.value=undefined;this.start=undefined;this.end=undefined;this.max=undefined;this.min=undefined;this.open=undefined;this.showLabel=true;this.labelStart="from";this.labelEnd="to"}async clear(){this.start=undefined;this.end=undefined}componentWillLoad(){this.smoothlyInputLooks.emit(((t,e)=>(this.looks=t,!this.color&&(this.color=e))));if(this.start&&this.end)this.smoothlyInput.emit({[this.name]:{start:this.start,end:this.end}})}onValue(t){this.valueChanged.emit(t)}smoothlyInputHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}onStartChanged(t){this.start=t.detail}onEndChanged(t){this.end=t.detail}onDateRangeSet(t){this.open=false;t.stopPropagation();g.is(t.detail)&&this.smoothlyInput.emit({[this.name]:t.detail})}render(){var t;return[e("section",{onClick:()=>this.open=!this.open},e("smoothly-input",{type:"date",name:"start",value:this.start,looks:"plain",showLabel:this.showLabel,onSmoothlyInput:t=>this.start=t.detail.start},`${this.labelStart}`),e("span",null,"–"),e("smoothly-input",{type:"date",name:"end",value:this.end,looks:"plain",showLabel:this.showLabel,onSmoothlyInput:t=>this.end=t.detail.end},`${this.labelEnd}`)),this.open?e("div",{onClick:()=>this.open=false}):[],this.open?e("nav",null,e("div",{class:"arrow"}),e("smoothly-calendar",{doubleInput:true,value:(t=this.value)!==null&&t!==void 0?t:u.now(),onValueChanged:t=>{this.value=t.detail;t.stopPropagation()},start:this.start,end:this.end,max:this.max,min:this.min})):[]]}get element(){return o(this)}static get watchers(){return{value:["onValue"]}}};mi.style=di;const yi="smoothly-input-demo{display:block;margin:2em;margin-bottom:20rem}";const fi=class{constructor(e){t(this,e)}handleSelectionChanged(t){console.log("selectionChanged",t.detail)}render(){return[e("h2",null,"Duration"),e("smoothly-form",{looks:"border"},e("smoothly-input",{name:"duration",type:"duration",placeholder:"hh:mm",value:{hours:5,minutes:30},onSmoothlyInput:t=>console.log(t.detail.duration)},"Duration"),e("smoothly-input",{name:"duration",type:"duration",value:{hours:5,minutes:30},placeholder:"hh:mm",onSmoothlyInput:t=>console.log(t.detail.duration)},"Varaktighet")),e("h2",null,"Submit"),e("smoothly-form",{looks:"border"},e("smoothly-input",{type:"email",name:"email"},"Email"),e("smoothly-input",{type:"password",name:"password"},"Password"),e("smoothly-input-clear",{fill:"default",type:"form",color:"danger",slot:"clear"},"Clear"),e("smoothly-submit",{slot:"submit"},"Submit")),e("h4",null,"Clear"),e("smoothly-form",{looks:"border"},e("smoothly-input",{name:"First Name"},"First name"),e("smoothly-input",{name:"Last name"},"Last name",e("smoothly-input-clear",{slot:"end"},e("smoothly-icon",{name:"close"}))),e("smoothly-input",{type:"phone",name:"Phone"},"Phone",e("smoothly-input-clear",{slot:"end"},e("smoothly-icon",{name:"close"}))),e("smoothly-input-clear",{fill:"default",type:"form",color:"danger",slot:"submit"},"Clear")),e("h2",null,"Border"),e("smoothly-form",{looks:"border"},e("smoothly-input",{type:"email",name:"email"},"Email"),e("smoothly-input",{type:"password",name:"password"},"Password"),e("smoothly-submit",{slot:"submit",onSubmit:t=>alert(t),color:"success",fill:"solid"},"Send")),e("h2",null,"Grid"),e("h4",null,"Contact"),e("smoothly-form",{looks:"grid",method:"GET",action:"https://webhook.site/85bb78f6-b450-4a74-81ac-d7cac6e94bbe"},e("smoothly-input",{type:"text",name:"name.last"},"First Name"),e("smoothly-input",{type:"text",name:"name.first"},"Last Name"),e("smoothly-input",{type:"text",name:"street",value:"Torgny Segerstedts Allé 87"},"Street"),e("smoothly-input",{type:"postal-code",name:"zip"},"ZipCode"),e("smoothly-input",{type:"text",name:"city"},"City"),e("smoothly-input",{type:"text",name:"countryCode"},"CountryCode"),e("smoothly-input",{type:"phone",name:"phone"},"Phone"),e("smoothly-input",{type:"email",name:"email"},"Email"),e("smoothly-submit",{slot:"submit",color:"success",fill:"solid"},e("smoothly-icon",{name:"checkmark-circle",slot:"start"}),"Submit")),e("h4",null,"Card"),e("smoothly-form",{looks:"grid",onSmoothlyFormSubmit:t=>alert(JSON.stringify(t.detail))},e("smoothly-input",{type:"card-number",name:"card"},"Card #"),e("smoothly-submit",{size:"icon",slot:"submit",color:"success",fill:"solid"},e("smoothly-icon",{name:"checkmark-circle"})),e("smoothly-input",{type:"card-expires",name:"expires"},"Expires"),e("smoothly-input",{type:"card-csc",name:"csc"},"CVV/CVC"),e("smoothly-input",{type:"text",name:"name.first"},"First Name"),e("smoothly-input",{type:"text",name:"name.last"},"Last Name")),e("h4",null,"Contact"),e("smoothly-form",{looks:"grid"},e("smoothly-input",{type:"email",name:"email"},"Email"),e("smoothly-input",{type:"password",name:"password"},"Password"),e("smoothly-input",{type:"price",currency:"SEK",name:"price"},"Price"),e("smoothly-input",{type:"percent",name:"percent"},"Percent"),e("smoothly-submit",{slot:"submit",color:"success",fill:"solid",size:"icon"},e("smoothly-icon",{name:"checkmark-circle"}))),e("h4",null,"Random"),e("smoothly-form",{looks:"grid"},e("smoothly-input",{type:"text",name:"name",readonly:true,value:"Readonly",onSmoothlyBlur:()=>console.log("smoothly blur"),style:{width:"100%"}},"Readonly"),e("smoothly-input",{type:"text",name:"testing"},"TextTest"),e("smoothly-input",{type:"date-time",name:"date-time"},"Date-Time"),e("smoothly-input",{type:"divisor",name:"divisor"},"Divisor"),e("smoothly-input",{type:"date",name:"date"},"Date"),e("smoothly-input-date",{name:"some-date"},"Calendar")),e("h2",null,"Line"),e("smoothly-form",{looks:"line"},e("smoothly-input",{type:"text",name:"name.last",onSmoothlyChange:t=>console.log("smoothly change event")},"First Name"),e("smoothly-input",{type:"text",name:"name.first",onSmoothlyChange:t=>console.log("smoothly change event")},"Last Name"),e("smoothly-submit",{slot:"submit",fill:"solid",onSubmit:t=>alert(t),color:"success"},"Send")),e("h2",null,"Input Alternatives"),e("smoothly-form",{looks:"border"},e("smoothly-input",{type:"text",name:"name.last",onSmoothlyChange:t=>console.log("smoothly change event")},e("smoothly-icon",{name:"checkmark-circle",slot:"start"}),"First Name"),e("smoothly-input",{type:"text",name:"name.first",onSmoothlyChange:t=>console.log("smoothly change event")},"Last Name",e("smoothly-icon",{name:"checkmark-circle",slot:"end"})),e("smoothly-input",{type:"text",name:"name.first",placeholder:"Smith",onSmoothlyChange:t=>console.log("smoothly change event")},"Last Name",e("smoothly-icon",{name:"checkmark-circle",slot:"end"})),e("smoothly-input",{placeholder:"test"}),e("smoothly-submit",{slot:"submit",fill:"solid",onSubmit:t=>alert(t),color:"success"},"Send")),e("h4",null,"Smoothly checkboxes"),e("smoothly-form",null,e("div",null,e("smoothly-checkbox",null,"Check me",e("div",{slot:"expansion"},"Some context")),e("smoothly-checkbox",null,"Label"),e("smoothly-checkbox",{disabled:true}))),e("h4",null,"Smoothly Radio Buttons"),e("smoothly-form",{onSmoothlyFormSubmit:t=>console.log(t.detail)},e("smoothly-radio-button",{name:"radioButtonDemo",deselectable:true,decoration:"button"},e("smoothly-radio-button-item",{value:"test"},"Option 1",e("div",{slot:"expansion"},"Some description.")),e("smoothly-radio-button-item",{value:{some:"thing",yes:"miss"}},"Option 2",e("div",{slot:"expansion"},"Some other description.")),e("smoothly-radio-button-item",{value:{some:"one",yes:"kid"}},"Option 3",e("div",{slot:"expansion"},"Some third description."))),e("smoothly-submit",{slot:"submit",color:"success",fill:"solid",size:"icon"},e("smoothly-icon",{name:"checkmark-circle"}))),e("h4",null,"Radio List without button 1"),e("smoothly-form",null,e("smoothly-radio-button",{name:"RadioListWithoutButton"},e("smoothly-radio-button-item",{value:{some:"content",yes:"sir"},selected:true,color:"light"},e("span",null,"Option 1"),e("span",{slot:"expansion"},"Some description.")),e("smoothly-radio-button-item",{value:{some:"thing",yes:"miss"},color:"light"},e("span",null,"Option 2"),e("span",{slot:"expansion"},"Some other description.")),e("smoothly-radio-button-item",{value:{some:"one",yes:"kid"},color:"light"},e("span",null,"Option 3"),e("span",{slot:"expansion"},"Some third description."))),e("smoothly-submit",{slot:"submit",color:"success",fill:"solid",size:"icon"},e("smoothly-icon",{name:"checkmark-circle"}))),e("h4",null,"Radio List without button 2"),e("smoothly-form",null,e("smoothly-radio",{name:"option",value:"1a",style:{width:"100%"}},"option 1"),e("smoothly-radio",{name:"option",value:"2a",checked:true,style:{width:"100%"}},"option 2"),e("smoothly-radio",{name:"option",value:"3a",style:{width:"100%"}},"option 3")),e("h4",null,"Smoothly Accordion"),e("smoothly-form",null,e("smoothly-accordion",null,e("smoothly-accordion-item",{name:"A",open:true},e("smoothly-radio",{name:"a",value:"1b"},"a 1"),e("smoothly-radio",{name:"a",value:"2b",checked:true},"a 2"),e("smoothly-radio",{name:"a",value:"3b"},"a 3")),e("smoothly-accordion-item",{name:"B"},e("smoothly-radio",{name:"b",value:"1c"},"b 1"),e("smoothly-radio",{name:"b",value:"2c"},"b 2"),e("smoothly-radio",{name:"b",value:"3c"},"b 3"))),e("smoothly-submit",{slot:"submit",color:"success",fill:"solid",size:"icon"},e("smoothly-icon",{name:"checkmark-circle"}))),e("h4",null,"Smoothly Picker"),e("smoothly-picker-demo",null),e("smoothly-back-to-top",null),e("h4",null,"Smoothly Date"),e("smoothly-input-date",null,"Date"),e("smoothly-input-date",{showLabel:false,value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),e("smoothly-form",{looks:"grid",onSmoothlyFormSubmit:t=>console.log(t.detail)},e("smoothly-input-date-range",{name:"testing",start:u.now(),end:u.nextMonth(u.now()),min:"2021-10-10",max:"2024-12-30"}),e("smoothly-input-clear",{type:"form",color:"danger",fill:"solid",slot:"clear"},"Clear"),e("smoothly-submit",{slot:"submit"},"submit daterange")),e("smoothly-input-date-range",{looks:"grid",start:u.now(),end:u.nextMonth(u.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--border-radius":"4px","--padding":"0 0.75em","--input-width":"12ch"}}),e("br",null),e("h4",null,"Smoothly Selector"),e("smoothly-input-select",{type:"icon",initialValue:"folder",showSelected:false},e("smoothly-item",{value:"folder"},e("smoothly-icon",{color:"dark",name:"folder-outline"})),e("smoothly-item",{value:"camera"},e("smoothly-icon",{color:"dark",name:"camera-outline"}))),e("br",null),e("smoothly-input-select",{looks:"line",initialPrompt:"Select...",ref:t=>this.selectElement=t},e("smoothly-item",{value:"1"},"January"),e("smoothly-item",{value:"2"},"February"),e("smoothly-item",{value:"3"},"March"),e("smoothly-item",{value:"4"},"April"),e("smoothly-item",{value:"5"},"May"),e("smoothly-item",{value:"6"},"June"),e("smoothly-item",{value:"7"},"July"),e("smoothly-item",{value:"8"},"August"),e("smoothly-item",{value:"9"},"September"),e("smoothly-item",{value:"10"},"October"),e("smoothly-item",{value:"11"},"November"),e("smoothly-item",{value:"12"},"December")),e("button",{onClick:async()=>this.selectElement.reset()},"Reset select"),e("br",null),e("smoothly-form",{looks:"grid",onSmoothlyFormSubmit:t=>console.log("Submitted",t.detail)},e("smoothly-input",{type:"text",name:"text"},"Text"),e("div",null,e("smoothly-input-file",{placeholder:"Select or drag a file here",name:"file"},e("span",{slot:"label"},"Testing file input"),e("smoothly-icon",{slot:"button",name:"folder-outline"}))),e("smoothly-input-file",{camera:"back",placeholder:"Capture a photo",name:"image"},e("span",{slot:"label"},"Testing camera photo"),e("smoothly-icon",{slot:"button",name:"camera-outline"})),e("smoothly-input-clear",{type:"form",color:"danger",fill:"solid",slot:"clear"},"Clear"),e("smoothly-submit",{slot:"submit"},"Submit")),e("br",null),e("smoothly-form",{looks:"line",onSmoothlyFormSubmit:t=>console.log("form input",t.detail)},e("smoothly-input",{name:"text"},"Input"),e("smoothly-input-file",{camera:"back",placeholder:"Capture a photo",name:"image"},e("span",{slot:"label"},"Testing camera photo"),e("smoothly-icon",{slot:"button",name:"camera-outline"})),e("smoothly-picker",{name:"picker"},e("span",{slot:"label"},"Shape"),e("span",{slot:"search"},"Search"),e("smoothly-picker-option",{value:"circle"},e("span",{slot:"label"},"Circle"),e("smoothly-icon",{size:"tiny",name:"ellipse-outline"})),e("smoothly-picker-option",{value:"cube"},e("span",{slot:"label"},"Cube"),e("smoothly-icon",{size:"tiny",name:"cube-outline"})),e("smoothly-picker-option",{value:"square",selected:true},e("span",{slot:"label"},"Square"),e("smoothly-icon",{size:"tiny",name:"square-outline"}))),e("smoothly-input-select",{name:"select",initialPrompt:"Select...",ref:t=>this.selectElement=t},e("smoothly-item",{value:"1"},"January"),e("smoothly-item",{value:"2"},"February"),e("smoothly-item",{value:"3"},"March"),e("smoothly-item",{value:"4"},"April"),e("smoothly-item",{value:"5"},"May"),e("smoothly-item",{value:"6"},"June"),e("smoothly-item",{value:"7"},"July"),e("smoothly-item",{value:"8"},"August"),e("smoothly-item",{value:"9"},"September"),e("smoothly-item",{value:"10"},"October"),e("smoothly-item",{value:"11"},"November"),e("smoothly-item",{value:"12"},"December")),e("smoothly-input-date-range",{name:"date-range",start:u.now(),end:u.nextMonth(u.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--border-radius":"4px","--padding":"0 0.75em","--input-width":"12ch"}}),e("smoothly-input-date",{name:"date",value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),e("smoothly-submit",{slot:"submit",color:"success",fill:"solid",size:"icon"},e("smoothly-icon",{name:"checkmark-circle",fill:"solid",size:"medium"}))),e("h4",null,"Form with spinner showcase"),e("smoothly-form",{looks:"line",processing:true,onSmoothlyFormSubmit:t=>console.log("form input",t.detail)},e("smoothly-input",{name:"text"},"Input"),e("smoothly-input-file",{camera:"back",placeholder:"Capture a photo",name:"image"},e("span",{slot:"label"},"Testing camera photo"),e("smoothly-icon",{slot:"button",name:"camera-outline"})),e("smoothly-picker",{name:"picker"},e("span",{slot:"label"},"Shape"),e("span",{slot:"search"},"Search"),e("smoothly-picker-option",{value:"circle"},e("span",{slot:"label"},"Circle"),e("smoothly-icon",{size:"tiny",name:"ellipse-outline"})),e("smoothly-picker-option",{value:"cube"},e("span",{slot:"label"},"Cube"),e("smoothly-icon",{size:"tiny",name:"cube-outline"})),e("smoothly-picker-option",{value:"square",selected:true},e("span",{slot:"label"},"Square"),e("smoothly-icon",{size:"tiny",name:"square-outline"}))),e("smoothly-input-select",{name:"select",initialPrompt:"Select...",ref:t=>this.selectElement=t},e("smoothly-item",{value:"1"},"January"),e("smoothly-item",{value:"2"},"February"),e("smoothly-item",{value:"3"},"March"),e("smoothly-item",{value:"4"},"April"),e("smoothly-item",{value:"5"},"May"),e("smoothly-item",{value:"6"},"June"),e("smoothly-item",{value:"7"},"July"),e("smoothly-item",{value:"8"},"August"),e("smoothly-item",{value:"9"},"September"),e("smoothly-item",{value:"10"},"October"),e("smoothly-item",{value:"11"},"November"),e("smoothly-item",{value:"12"},"December")),e("smoothly-input-date-range",{name:"date-range",start:u.now(),end:u.nextMonth(u.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--border-radius":"4px","--padding":"0 0.75em","--input-width":"12ch"}}),e("smoothly-input-date",{name:"date",value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),e("smoothly-submit",{slot:"submit",color:"success",fill:"solid",size:"icon"},e("smoothly-icon",{name:"checkmark-circle",fill:"solid",size:"medium"})))]}};fi.style=yi;const pi='.sc-smoothly-input-file-h{box-sizing:border-box}.sc-smoothly-input-file-h[looks="border"].sc-smoothly-input-file-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-file-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-input-file-h[looks="line"].sc-smoothly-input-file-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-file-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-input-file-h[looks="grid"].sc-smoothly-input-file-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-file-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}.sc-smoothly-input-file-h{display:flex;align-items:center;flex-wrap:wrap;overflow:hidden;position:relative;width:100%;padding-left:0.4rem;background-color:rgb(var(--background-color,var(--smoothly-color-shade)))}.mask.sc-smoothly-input-file{position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgb(var(--text-color ,var(--smoothly-color-contrast)), 0.3)}.sc-smoothly-input-file-h:not(.dragging) .mask.sc-smoothly-input-file{display:none}input.sc-smoothly-input-file{overflow:hidden;height:0;width:0;padding:0}.input.sc-smoothly-input-file{display:flex;align-items:center;padding-left:0.4rem;padding-bottom:0.2rem}smoothly-button.sc-smoothly-input-file{margin:0;border:none}label.sc-smoothly-input-file{padding-left:0.4rem;padding-top:0.4rem;display:flex;width:100%;align-items:baseline;justify-content:flex-start;color:rgb(var(--text-color, var(--smoothly-color-contrast)));cursor:inherit}label.sc-smoothly-input-file-s>*{display:block;width:100%;font-size:0.65em;opacity:0.8}.sc-smoothly-input-file-h:not([show-label]) label.sc-smoothly-input-file{display:none}smoothly-icon.sc-smoothly-input-file{display:none;position:absolute;right:0.2em;top:0.6em}span.sc-smoothly-input-file{cursor:pointer;padding-left:0.5rem}';const bi=class{constructor(e){t(this,e);this.smoothlyInputLooks=s(this,"smoothlyInputLooks",7);this.smoothlyInput=s(this,"smoothlyInput",7);this.smoothlyChange=s(this,"smoothlyChange",7);this.transfer=new DataTransfer;this.dragging=false;this.accept=undefined;this.color=undefined;this.looks="plain";this.camera=undefined;this.name=undefined;this.showLabel=true;this.value=undefined;this.placeholder=undefined}componentWillLoad(){this.smoothlyInputLooks.emit(((t,e)=>(this.looks=t,!this.color&&(this.color=e))))}async clear(){this.value=undefined}render(){var t,o,s;return e(n,{class:{dragging:this.dragging},onDragOver:t=>(t.preventDefault(),t.stopPropagation()),onDragEnter:()=>this.dragging=true},e("label",null,e("slot",{name:"label"})),e("div",{class:"input"},e("smoothly-button",{color:this.color,fill:"clear",size:"flexible",onClick:t=>{var e;return t.stopPropagation(),(e=this.input)===null||e===void 0?void 0:e.click()}},e("slot",{name:"button"})),e("span",{onClick:t=>{var e;return t.stopPropagation(),(e=this.input)===null||e===void 0?void 0:e.click()}},(o=(t=this.value)===null||t===void 0?void 0:t.name)!==null&&o!==void 0?o:this.placeholder),e("div",{class:"mask",onDrop:t=>{var e;return t.preventDefault(),t.stopPropagation(),this.dragging=false,((e=t.dataTransfer)===null||e===void 0?void 0:e.files.length)&&(this.smoothlyInput.emit({[this.name]:this.value=t.dataTransfer.files[0]}),this.smoothlyChange.emit({[this.name]:this.value=t.dataTransfer.files[0]}))},onDragLeave:t=>(t.stopPropagation(),this.dragging=false)}),e("input",{ref:t=>this.input=t,type:"file",capture:this.camera=="back"?"environment":"user",accept:(s=this.accept)!==null&&s!==void 0?s:!this.camera?undefined:"image/jpeg",files:(this.transfer.items.clear(),this.value&&this.transfer.items.add(this.value),this.transfer.files),onInput:t=>{var e,o,s;return t.stopPropagation(),((o=(e=this.input)===null||e===void 0?void 0:e.files)===null||o===void 0?void 0:o.length)&&this.smoothlyInput.emit({[this.name]:this.value=(s=this.input)===null||s===void 0?void 0:s.files[0]})},onChange:t=>{var e,o,s;return t.stopPropagation(),((o=(e=this.input)===null||e===void 0?void 0:e.files)===null||o===void 0?void 0:o.length)&&this.smoothlyChange.emit({[this.name]:this.value=(s=this.input)===null||s===void 0?void 0:s.files[0]})}})),e("slot",null))}};bi.style=pi;const gi=".sc-smoothly-input-month-h{display:flex;justify-content:space-between;font-size:large}smoothly-icon.sc-smoothly-input-month{font-size:smaller}";const vi=class{constructor(e){t(this,e);this.valueChanged=s(this,"valueChanged",7);this.value=undefined}onValueChanged(t){this.valueChanged.emit(t)}adjustMonth(t){var e;const o=u.parse((e=this.value)!==null&&e!==void 0?e:u.now());o.setMonth(o.getMonth()+t);this.value=u.create(o)}render(){var t,o;return[e("div",{onClick:()=>this.adjustMonth(-1)},e("smoothly-icon",{name:"caret-back-outline",size:"small"})),e("smoothly-input-select",{onSelected:t=>this.value=t.detail},Ut((t=this.value)!==null&&t!==void 0?t:u.now()).map((t=>e("smoothly-item",{value:t.date,selected:t.selected},t.name)))),e("smoothly-input-select",{onSelected:t=>this.value=t.detail},Kt((o=this.value)!==null&&o!==void 0?o:u.now()).map((t=>e("smoothly-item",{value:t.date,selected:t.selected},t.name)))),e("div",{onClick:()=>this.adjustMonth(1)},e("smoothly-icon",{name:"caret-forward-outline",size:"small"}))]}static get watchers(){return{value:["onValueChanged"]}}};vi.style=gi;const wi='.sc-smoothly-input-select-h{box-sizing:border-box}.sc-smoothly-input-select-h[looks="border"].sc-smoothly-input-select-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-select-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-input-select-h[looks="line"].sc-smoothly-input-select-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-select-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-input-select-h[looks="grid"].sc-smoothly-input-select-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-select-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}.sc-smoothly-input-select-h{display:flex;position:relative;background-color:rgb(var(--background-color, var(--smoothly-color-shade)))}.icon.sc-smoothly-input-select-h{width:fit-content;flex-direction:column}.sc-smoothly-input-select-h>main.sc-smoothly-input-select,.sc-smoothly-input-select-h>main.sc-smoothly-input-select>*.sc-smoothly-input-select{height:100%;display:flex;align-items:center}.icon.sc-smoothly-input-select-h>main.sc-smoothly-input-select,.icon.sc-smoothly-input-select-h>main.sc-smoothly-input-select>*.sc-smoothly-input-select{padding:0.5em}.sc-smoothly-input-select-h>div.sc-smoothly-input-select>nav.sc-smoothly-input-select{display:flex;flex-direction:column;position:absolute;z-index:10;height:var(--menu-height, unset);overflow-y:scroll}.sc-smoothly-input-select-h>aside.sc-smoothly-input-select{position:absolute;top:0;left:5em;z-index:10;background-color:rgb(var(--smoothly-tertiary-color));color:rgb(var(--smoothly-tertiary-contrast));height:1.25rem;border-radius:0.3rem;padding:0.3rem;display:flex;align-items:center}.missing.sc-smoothly-input-select-h>aside.sc-smoothly-input-select{background-color:rgb(var(--smoothly-warning-color));color:rgb(var(--smoothly-warning-contrast))}.hidden.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h>section.sc-smoothly-input-select{position:fixed;top:0px;left:0px;width:100vw;height:100vh;z-index:10}';const ki=class{constructor(e){t(this,e);this.selected=s(this,"selected",7);this.smoothlyInput=s(this,"smoothlyInput",7);this.smoothlyInputLooks=s(this,"smoothlyInputLooks",7);this.items=[];this.name=undefined;this.color=undefined;this.looks="plain";this.type=undefined;this.showSelected=true;this.initialPrompt=undefined;this.initialValue=undefined;this.opened=false;this.selectedElement=undefined;this.missing=false;this.filter=""}componentWillLoad(){this.smoothlyInputLooks.emit(((t,e)=>(this.looks=t,!this.color&&(this.color=e))))}async reset(){var t;this.selectedElement=undefined;if(this.mainElement){this.mainElement.innerHTML=(t=this.initialPrompt)!==null&&t!==void 0?t:"(none)"}}onSelectedChange(t,e){if(e)e.selected=false;this.selected.emit(t===null||t===void 0?void 0:t.value);this.smoothlyInput.emit({[this.name]:t===null||t===void 0?void 0:t.value})}async onFilterChange(t){t=t.toLowerCase();if(!(await Promise.all(this.items.map((e=>e.filter(t))))).some((t=>t))){this.missing=true;this.items.forEach((t=>t.filter("")))}else this.missing=false}onClick(t){t.stopPropagation();this.opened=!this.opened}onItemSelected(t){this.selectedElement&&(this.selectedElement.hidden=false);this.selectedElement=t.target;!this.showSelected&&(this.selectedElement.hidden=true);if(this.mainElement)this.mainElement.innerHTML=this.selectedElement.innerHTML}onClosed(){if(!this.opened){const t=this.items.find((t=>t.marked));if(t)t.marked=false}}onKeyDown(t){t.stopPropagation();t.preventDefault();if(this.opened){let e=0;switch(t.key){case"ArrowUp":e=-1;break;case"ArrowDown":e=1;break;case"Escape":this.filter="";break;case"Backspace":this.filter=this.filter.slice(0,-1);break;case"Enter":const o=this.items.find((t=>t.marked));if(o===null||o===void 0?void 0:o.value){o.selected=true}this.opened=false;this.filter="";break;default:if(t.key.length==1)this.filter+=t.key;break}this.move(e)}else if(t.key=="Enter")this.opened=true}move(t){if(t){let e=this.items.findIndex((t=>t.marked));if(e==-1)e=this.items.findIndex((t=>t.selected));if(this.items[e])this.items[e].marked=false;do{e=(e+t+this.items.length)%this.items.length}while(this.items[e].hidden);this.items[e].marked=true;this.items[e].focus()}}render(){var t,o;return e(n,{tabIndex:2,class:(t=this.missing?"missing":this.type)!==null&&t!==void 0?t:""},e("main",{ref:t=>this.mainElement=t},(o=this.initialPrompt)!==null&&o!==void 0?o:"(none)"),this.filter.length!=0?e("aside",{ref:t=>this.aside=t},this.filter,e("button",{onClick:t=>{t.stopPropagation();this.filter=""}},e("smoothly-icon",{name:"close",size:"small"}))):undefined,this.opened?e("section",{onClick:()=>this.opened=true}):[],e("div",{class:this.opened?"":"hidden"},e("nav",null,e("slot",null))))}componentDidRender(){const t=[];const e=this.element.querySelectorAll("div > nav > smoothly-item");for(let o=0;o<e.length;o++){const s=e.item(o);if(Si(s)){t.push(s);s.value==this.initialValue&&this.mainElement&&!this.selectedElement&&(s.selected=true)}}this.items=t}get element(){return o(this)}static get watchers(){return{selectedElement:["onSelectedChange"],filter:["onFilterChange"],opened:["onClosed"]}}};function Si(t){return typeof t=="object"&&(typeof t.selected=="boolean"||t.selected==undefined)&&typeof t.filter=="function"}ki.style=wi;const xi="[selected].sc-smoothly-item-h{background-color:rgb(var(--smoothly-primary-shade));color:rgb(var(--smoothly-primary-contrast))}.sc-smoothly-item-h{padding:0.5em;cursor:pointer;background-color:rgb(var(--smoothly-default-shade));color:rgb(var(--smoothly-default-contrast));border:rgb(var(--smoothly-default-shade) solid 1px)}[marked].sc-smoothly-item-h,.sc-smoothly-item-h:hover{background-color:rgb(var(--smoothly-primary-color));color:rgb(var(--smoothly-primary-contrast))}";const Ci=class{constructor(e){t(this,e);this.itemSelected=s(this,"itemSelected",7);this.value=undefined;this.selected=undefined;this.marked=undefined}onSelectedChanged(t,e){if(t&&!e)this.itemSelected.emit()}onClick(){this.selected=true;this.itemSelected.emit()}componentDidLoad(){if(this.selected)this.itemSelected.emit()}async filter(t){const e=!(this.element.hidden=t?!((typeof this.value==="string"?this.value:JSON.stringify(this.value)).toLowerCase().includes(t)||this.element.innerText.toLowerCase().includes(t)):false);return e}render(){return e(n,{tabIndex:-1},e("slot",null))}get element(){return o(this)}static get watchers(){return{selected:["onSelectedChanged"]}}};Ci.style=xi;const Mi=".sc-smoothly-notification-h{display:block;width:30em;min-height:3em;border-radius:5px;margin:0.5em}.clean.sc-smoothly-notification{display:flex;justify-content:center;align-items:center;padding:0.5em 1em}.icon.sc-smoothly-notification{display:grid;width:100%;grid-template-columns:1fr 5fr}.icon.sc-smoothly-notification>p.sc-smoothly-notification{padding-right:1em}.sc-smoothly-notification-h>span.sc-smoothly-notification>p.sc-smoothly-notification{text-align:left}[hidden].sc-smoothly-notification-h{display:none}smoothly-icon.sc-smoothly-notification{left:0;font-size:1.2em;align-self:center;justify-self:center}smoothly-trigger.sc-smoothly-notification{font-size:0.5em;float:right;text-align:right;margin-right:0.2em}";const Ai=class{constructor(e){t(this,e);this.remove=s(this,"remove",7);this.listener=t=>{if(t.state=="closed")this.remove.emit(t);else this.tick={}};this.notice=undefined;this.closable=true;this.icon=false;this.tick={}}get properties(){let t;switch(this.notice.state){case"delayed":case"warning":t=["warning","warning-outline"];break;case"success":t=["success","checkmark-circle"];break;case"executing":t=["light","hourglass-outline"];break;case"failed":t=["danger","alert-circle"];break;default:t=["light",undefined];break}return t}onTrigger(t){if(t.detail.name=="close"){t.stopPropagation();this.notice.close()}}onUpdatedNotice(t,e){if(e)e.unlisten(this.listener);t.listen(this.listener)}componentDidLoad(){this.onUpdatedNotice(this.notice)}render(){return e(n,{color:this.properties[0],fill:"solid"},this.closable?e("smoothly-trigger",{fill:"clear",name:"close"},e("smoothly-icon",{name:"close-circle-outline"})):"",e("span",{class:this.icon?"icon":"clean"},this.icon?e("smoothly-icon",{name:this.properties[1]}):"",e("p",null,this.notice.message)))}static get watchers(){return{notice:["onUpdatedNotice"]}}};Ai.style=Mi;const Oi=".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}.sc-smoothly-notifier-h>aside.sc-smoothly-notifier{display:flex;flex-wrap:wrap-reverse;align-content:stretch;position:fixed;bottom:3rem;left:0;text-align:center;z-index:100}";const Ti=class{constructor(e){t(this,e);this.notices=[]}onNotice(t){this.notices=[...this.notices,t.detail]}onRemove(t){this.notices=[...this.notices.filter((e=>e!=t.detail))]}render(){return[e("slot",null),e("aside",null,this.notices.map((t=>e("smoothly-notification",{notice:t}))))]}};Ti.style=Oi;const Ni='.sc-smoothly-picker-h{box-sizing:border-box}.sc-smoothly-picker-h[looks="border"].sc-smoothly-picker-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-picker-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-picker-h[looks="line"].sc-smoothly-picker-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-picker-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-picker-h[looks="grid"].sc-smoothly-picker-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-picker-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}.sc-smoothly-picker-h{display:flex;position:relative;width:max-content;padding:1.2em 0.7em 0.2em 0.8em;background-color:rgb(var(--background-color, var(--smoothly-color-shade)))}.sc-smoothly-picker-h div.element.sc-smoothly-picker{display:flex;background-color:inherit}smoothly-slot-elements.sc-smoothly-picker{white-space:nowrap}.selected.sc-smoothly-picker{position:relative;display:flex;align-items:center;gap:1rem;width:100%;overflow:hidden;text-overflow:ellipsis;margin-right:2px}.selected.sc-smoothly-picker::after{content:"";position:absolute;top:0;bottom:0;right:0;width:2ch;background:linear-gradient(90deg, rgba(var(--background-color, var(--smoothly-color-shade)), 0) 0%, rgba(var(--background-color, var(--smoothly-color-shade)), 1) 100%)}.selected.sc-smoothly-picker *.sc-smoothly-picker{display:none}.label.sc-smoothly-picker{position:absolute;left:0.4rem;top:0.6rem;color:rgb(var(--text-color, var(--smoothly-color-contrast)));opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.selected.sc-smoothly-picker:not(:empty)+.label.sc-smoothly-picker{top:0.4em;transform:scale(0.6)}';var Ii=undefined&&undefined.__rest||function(t,e){var o={};for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0)o[s]=t[s];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var n=0,s=Object.getOwnPropertySymbols(t);n<s.length;n++){if(e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n]))o[s[n]]=t[s[n]]}return o};const Ri=class{constructor(e){t(this,e);this.smoothlyPickerLoaded=s(this,"smoothlyPickerLoaded",7);this.smoothlyInput=s(this,"smoothlyInput",7);this.smoothlyChange=s(this,"smoothlyChange",7);this.smoothlyInputLooks=s(this,"smoothlyInputLooks",7);this.looks="plain";this.name=undefined;this.open=false;this.mutable=false;this.multiple=false;this.readonly=false;this.validator=undefined;this.selected=new Map;this.display=undefined}componentWillLoad(){this.smoothlyInputLooks.emit((t=>this.looks=t))}selectedChanged(){var t;const e=Array.from(this.selected.values(),(t=>t.value));if((t=this.controls)===null||t===void 0?void 0:t.synced()){this.smoothlyInput.emit({[this.name]:this.multiple?e:e.at(0)});this.smoothlyChange.emit({[this.name]:this.multiple?e:e.at(0)})}this.display=Array.from(this.selected.values(),(t=>{const e=document.createElement("span");t.slotted.forEach((t=>e.appendChild(t.cloneNode(true))));return e}))}componentDidLoad(){if(this.controls)this.smoothlyPickerLoaded.emit((t=>{var e=Ii(t,["synced"]);return e})(this.controls))}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}menuLoadedHandler(t){this.controls=t.detail}optionLoadedHandler(t){if(t.detail.selected)this.selected=this.multiple?new Map(this.selected.set(t.detail.value,t.detail).entries()):(new Map).set(t.detail.value,t.detail)}optionChangeHandler(t){if(!this.readonly)if(this.multiple)this.selected=t.detail.selected?new Map(this.selected.set(t.detail.value,t.detail).entries()):!this.selected.delete(t.detail.value)?this.selected:new Map(this.selected.entries());else this.selected=!t.detail.selected?new Map:(new Map).set(t.detail.value,t.detail)}clickHandler(t){this.open=!t.composedPath().includes(this.element)?false:!this.open}focusHandler(t){if(!t.composedPath().includes(this.element))this.open=false}async clear(){this.selected.forEach((t=>t.selected&&t.element.clickHandler()))}render(){return e(n,null,e("smoothly-slot-elements",{class:"selected",nodes:this.display}),e("span",{class:"label"},e("slot",{name:"label"})),e("button",{type:"button"},e("smoothly-icon",{size:"tiny",name:this.open?"caret-down-outline":"caret-forward-outline"})),e("slot",{name:"child"}),e("smoothly-picker-menu",{open:this.open,looks:this.looks,onClick:t=>t.stopPropagation(),multiple:this.multiple,mutable:this.mutable,readonly:this.readonly,validator:this.validator},e("slot",{name:"search",slot:"search"}),e("slot",{name:"display",slot:"display"}),e("slot",null)))}get element(){return o(this)}static get watchers(){return{selected:["selectedChanged"]}}};Ri.style=Ni;const Li=".sc-smoothly-picker-demo-h{display:flex;flex-direction:column}.sc-smoothly-picker-demo-h smoothly-form.sc-smoothly-picker-demo{max-width:50rem}.sc-smoothly-picker-demo-h .counter.sc-smoothly-picker-demo{position:relative;width:3rem;height:3rem}.sc-smoothly-picker-demo-h .counter-button.sc-smoothly-picker-demo{position:absolute;top:0;left:0;padding:0;margin:0;height:3rem;width:3rem;background-color:inherit;border:none;display:flex;justify-content:center;align-items:center}";function Ei(t){return t.match(/^.+@.+/)?true:{result:false,notice:h.failed("That is not an email")}}const Di=class{constructor(e){t(this,e);this.users={"giovani@rocket.com":"giovani doe","jessie@rocket.com":"jessie doe","james@rocket.com":"james doe"};this.counter=3;this.data={message:"hello world",emails:["jessie@rocket.com","james@rocket.com"],options:["giovani@rocket.com","john@example.com","jane@example.com","jack@example.com","jessica@example.com","julia@example.com","jayden@example.com","jake@example.com","jamie@example.com","jasmine@example.com"]};this.change=undefined}inputHandler(t){if(this.change){this.change=Object.assign(Object.assign({},this.change),t.detail);console.log("demo input",this.change)}}submitHandler(t){console.log("submitted",t.detail)}clickHandler(){var t,e;if(!this.change)(t=this.controls)===null||t===void 0?void 0:t.remember();else(e=this.controls)===null||e===void 0?void 0:e.restore();this.change=this.change?undefined:Object.assign(Object.assign({},this.data),{emails:[...this.data.emails]})}loadedHandler(t){this.controls=t.detail}render(){var t,o;return e(n,null,e("div",null,e("smoothly-button",{onClick:()=>this.counter+=1},"Add one"),e("smoothly-button",{onClick:()=>this.counter-=1},"Remove one"),e("smoothly-picker",{class:"counter",key:Array.from({length:this.counter}).toString(),name:"counter",multiple:true,mutable:true,onSmoothlyInput:t=>console.log("demo counter input",t.detail)},Array.from({length:this.counter}).map(((t,o)=>e("smoothly-picker-option",{value:o,selected:o<this.counter-1},o))),e("span",{slot:"search"},"Search"),e("button",{slot:"child",class:"counter-button"},e("smoothly-icon",{name:"add-outline"})))),e("smoothly-button",{onClick:()=>this.clickHandler()},!this.change?"start edit":"end edit"),e("h5",null,"Controlled input"),e("smoothly-form",{looks:"line",onSmoothlyFormInput:t=>this.inputHandler(t)},e("smoothly-input",{readonly:!this.change,name:"message",value:this.data.message},"Message"),e("smoothly-picker",{name:"emails",mutable:true,multiple:true,readonly:!this.change,validator:Ei,onSmoothlyPickerLoaded:t=>this.loadedHandler(t)},e("span",{slot:"label"},"Emails"),e("span",{slot:"search"},"Search"),e("smoothly-icon",{size:"tiny",slot:"display",name:"person-add-outline"}),((o=(t=this.change)===null||t===void 0?void 0:t.emails)!==null&&o!==void 0?o:this.data.emails).map((t=>{var o;return e("smoothly-picker-option",{key:t,value:t,selected:true,search:[(o=this.users[t])!==null&&o!==void 0?o:[]].flat()},e("span",null,this.users[t]),e("span",{slot:"label"},t),e("smoothly-icon",{size:"tiny",slot:"display",name:"person-outline"}))})),this.data.options.map((t=>{var o;return e("smoothly-picker-option",{key:t,value:t,search:[(o=this.users[t])!==null&&o!==void 0?o:[]].flat()},e("span",null,this.users[t]),e("span",{slot:"label"},t),e("smoothly-icon",{size:"tiny",slot:"display",name:"person-outline"}))}))),e("smoothly-submit",{size:"icon",slot:"submit"},e("smoothly-icon",{name:"checkmark-circle"})),e("smoothly-input-clear",{type:"form",color:"danger",fill:"solid",slot:"clear"},"Clear")),e("h5",null,"uncontrolled inputs"),e("smoothly-form",{onSmoothlyFormSubmit:t=>console.log("submitted",t.detail),looks:"line"},e("smoothly-input",{name:"purpose",type:"text"},"Purpose"),e("smoothly-picker",{multiple:true,mutable:true,name:"emails",validator:Ei},e("span",{slot:"label"},"Emails"),e("span",{slot:"search"},"Search"),e("smoothly-picker-option",{value:"james@rocket.com"},"james@rocket.com"),e("smoothly-picker-option",{selected:true,value:"jessie@rocket.com"},"jessie@rocket.com"),e("smoothly-picker-option",{value:"giovanni@rocket.com"},"giovanni@rocket.com")),e("smoothly-submit",{slot:"submit"},"Submit"),e("smoothly-input-clear",{type:"form",color:"danger",fill:"solid",slot:"clear"},"Clear"),e("smoothly-picker",{name:"shape"},e("span",{slot:"label"},"Shape"),e("span",{slot:"search"},"Search"),e("smoothly-picker-option",{value:"circle"},e("span",{slot:"label"},"Circle"),e("smoothly-icon",{size:"tiny",name:"ellipse-outline"})),e("smoothly-picker-option",{value:"cube"},e("span",{slot:"label"},"Cube"),e("smoothly-icon",{size:"tiny",name:"cube-outline"})),e("smoothly-picker-option",{value:"square",selected:true},e("span",{slot:"label"},"Square"),e("smoothly-icon",{size:"tiny",name:"square-outline"}))),e("smoothly-picker",{multiple:true,readonly:true,name:"animals"},e("span",{slot:"label"},"Animals"),e("span",{slot:"search"},"Search"),e("smoothly-picker-option",{selected:true,value:"cat"},"Cat"),e("smoothly-picker-option",{value:"dog"},"Dog"),e("smoothly-picker-option",{value:"fish"},"Fish"))),e("smoothly-picker",{looks:"border",name:"icon",multiple:true},e("span",{slot:"label"},"Icon"),e("span",{slot:"search"},"Search"),e("smoothly-picker-option",{value:"circle",required:true},e("span",{slot:"label"},"Circle"),e("smoothly-icon",{size:"tiny",name:"ellipse-outline"})),e("smoothly-picker-option",{value:"cube"},e("span",{slot:"label"},"Cube"),e("smoothly-icon",{size:"tiny",name:"cube-outline"})),e("smoothly-picker-option",{value:"square",selected:true},e("span",{slot:"label"},"Square"),e("smoothly-icon",{size:"tiny",name:"square-outline"})),e("smoothly-picker-option",{value:"airplane"},e("span",{slot:"label"},"Airplane"),e("smoothly-icon",{size:"tiny",name:"airplane-outline"})),e("smoothly-picker-option",{value:"alarm"},e("span",{slot:"label"},"Alarm"),e("smoothly-icon",{size:"tiny",name:"alarm-outline"})),e("smoothly-picker-option",{value:"archive"},e("span",{slot:"label"},"Archive"),e("smoothly-icon",{size:"tiny",name:"archive-outline"})),e("smoothly-picker-option",{value:"bag"},e("span",{slot:"label"},"Bag"),e("smoothly-icon",{size:"tiny",name:"bag-outline"})),e("smoothly-picker-option",{value:"cafe"},e("span",{slot:"label"},"Cafe"),e("smoothly-icon",{size:"tiny",name:"cafe-outline"})),e("smoothly-picker-option",{value:"disc"},e("span",{slot:"label"},"Disc"),e("smoothly-icon",{size:"tiny",name:"disc-outline"})),e("smoothly-picker-option",{value:"earth"},e("span",{slot:"label"},"Earth"),e("smoothly-icon",{size:"tiny",name:"earth-outline"})),e("smoothly-picker-option",{value:"fast-food"},e("span",{slot:"label"},"Fast food"),e("smoothly-icon",{size:"tiny",name:"fast-food-outline"}))))}};Di.style=Li;const Pi=".sc-smoothly-picker-menu-h{display:flex;flex-direction:column;gap:0.5rem;position:absolute;z-index:4;left:-1px;right:-1px;min-width:max-content;background-color:rgb(var(--background-color, var(--smoothly-color-shade)));padding:0.5rem;border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-picker-menu-h:not(.flip){top:100%}.flip.sc-smoothly-picker-menu-h{bottom:100%}.sc-smoothly-picker-menu-h:not([open]){display:none}.sc-smoothly-picker-menu-h .list.sc-smoothly-picker-menu{display:grid;grid-template-columns:auto 1fr auto;align-items:center;row-gap:0.5ch;overflow-y:auto;max-height:calc(1.75rem * 10 + 0.5ch * 9);padding-right:0.5rem;padding-bottom:0.25rem}.sc-smoothly-picker-menu-h .hide.sc-smoothly-picker-menu{display:none}.sc-smoothly-picker-menu-h .controls.sc-smoothly-picker-menu{display:grid;grid-template-columns:1fr auto;gap:0.5rem;transition:grid-template-columns 200ms linear}.sc-smoothly-picker-menu-h .controls.sc-smoothly-picker-menu>button.sc-smoothly-picker-menu:disabled{opacity:0.3}";const Bi=w().Observers;function*Gi(...t){for(const e of t)yield*e}function ji(t,e){t===null||t===void 0?void 0:t.set.selected(t.selected=e.selected);t===null||t===void 0?void 0:t.set.readonly(t.readonly=e.readonly);t===null||t===void 0?void 0:t.set.visible(t.visible=e.visible);t===null||t===void 0?void 0:t.set.value(t.value=e.value);t===null||t===void 0?void 0:t.set.search(t.search=e.search);return t}function Ki(t,e){t===null||t===void 0?void 0:t.addEventListener("smoothlyPickerOptionLoad",(t=>ji(t.detail,e)))}const Ui=class{constructor(e){t(this,e);this.notice=s(this,"notice",7);this.smoothlyPickerMenuLoaded=s(this,"smoothlyPickerMenuLoaded",7);this.synced=false;this.looks=undefined;this.open=false;this.multiple=false;this.mutable=false;this.readonly=false;this.validator=undefined;this.backend=new Map;this.options=new Map;this.created=new Map;this.search="";this.valid=false;this.display=undefined;this.flip=false;this.flipChecked=false}componentWillLoad(){if(!Bi.has(this.element)){const t=.4;Bi.set(this.element,new IntersectionObserver((e=>{var o,s;return((s=(o=e.find((t=>t.target==this.element)))===null||o===void 0?void 0:o.intersectionRatio)!==null&&s!==void 0?s:0)<t&&!this.flipChecked&&(this.flip=!this.flip,this.flipChecked=true)}),{threshold:t}))}}sync(){if(this.backend.size!=this.options.size)this.synced=false;else this.synced=true}componentDidLoad(){this.smoothlyPickerMenuLoaded.emit({remember:()=>{this.memory={backend:new Map(Array.from(this.backend.entries(),(([t,e])=>[t,Object.assign({},e)]))),options:new Map(Array.from(this.options.entries(),(([t,e])=>[t,Object.assign({},e)])))}},restore:()=>{if(this.memory){for(const t of this.options.values()){const e=this.memory.options.get(t.value);if(e!=undefined)ji(t,e);else if(this.created.get(t.value))t.set.selected(t.selected=false)}for(const t of this.backend.values()){const e=this.memory.backend.get(t.value);if(e!=undefined)ji(t,e);else if(this.created.get(t.value))t.set.selected(t.selected=false)}}},synced:()=>this.synced})}disconnectedCallback(){var t;if(!this.element.parentElement){(t=Bi.get(this.element))===null||t===void 0?void 0:t.disconnect();Bi.remove(this.element)}}openChange(){const t=Bi.get(this.element);if(this.open)t===null||t===void 0?void 0:t.observe(this.element);else t===null||t===void 0?void 0:t.unobserve(this.element)}readonlyChanged(){for(const t of Gi(this.options.values(),this.backend.values()))t.set.readonly(this.readonly)}scrollHandler(){this.flipChecked=false}optionLoadHandler(t){if(!this.listElement||!t.composedPath().includes(this.listElement)){t.stopPropagation();this.sync();t.detail.set.readonly(this.readonly);const e=this.options.get(t.detail.value);if(e)t.detail.set.selected(e.element.selected)}}optionLoadedHandler(t){var e;if(!this.listElement||!t.composedPath().includes(this.listElement)){t.stopPropagation();const o=ji(this.backend.get(t.detail.value),t.detail);this.backend=new Map(this.backend.set(t.detail.value,Object.assign(Object.assign({},t.detail),{clone:(e=o===null||o===void 0?void 0:o.clone)!==null&&e!==void 0?e:t.detail.element.cloneNode(true)})).entries())}else this.options.set(t.detail.value,t.detail);this.sync()}optionChangeHandler(t){var e;if(!this.listElement||!t.composedPath().includes(this.listElement)){t.stopPropagation();(e=this.options.get(t.detail.value))===null||e===void 0?void 0:e.set.selected(t.detail.selected)}else{const e=this.backend.get(t.detail.value);if(e===null||e===void 0?void 0:e.element.parentElement)e===null||e===void 0?void 0:e.set.selected(t.detail.selected)}if(!this.readonly&&!this.multiple&&t.detail.selected)for(const e of Gi(this.options.values(),this.backend.values()))if(e.value!=t.detail.value)e.set.selected(false)}inputHandler(t){t.stopPropagation();this.search=t.detail.search;if(!this.search){this.valid=false;for(const t of Gi(this.options.values(),this.backend.values()))t.set.visible(true)}else{this.valid=!Array.from(this.options.values()).find((t=>t.value==this.search));const t=this.search.toLocaleLowerCase();for(const e of Gi(this.options.values(),this.backend.values())){const o=e.value.toString().toLocaleLowerCase().includes(t);const s=e.search.some((e=>e.includes(t)));const n=o||s;e.set.visible(n)}}}addHandler(){var t;const e=!this.validator?true:this.validator(this.search);if(this.mutable){if(typeof e=="object"?e.result:e){if(!this.multiple)for(const t of Gi(this.options.values(),this.backend.values()))t.set.selected(false);this.created=new Map(this.created.set(this.search,{value:this.search,selected:true}).entries());this.search="";(t=this.searchElement)===null||t===void 0?void 0:t.focus();this.valid=false}if(typeof e=="object")this.notice.emit(e.notice)}}keyDownHandler(t){if(t.key=="Enter"){t.preventDefault();this.addHandler()}}emptyDisplayHandler(t){t.stopPropagation();t.detail.set.nodes(this.display)}render(){return e(n,{class:{valid:this.valid,flip:this.flip}},e("smoothly-slotted-elements",{class:"hide",onSmoothlySlottedChange:t=>this.display=t.detail},e("slot",{name:"display"})),e("div",{class:"hide"},e("slot",null),Array.from(this.created.values(),(t=>e("smoothly-picker-option",{key:t.value,value:t.value,selected:t.selected},t.value,e("smoothly-slot-elements",{slot:"display",nodes:this.display}))))),e("div",{class:"controls"},e("smoothly-input",{ref:t=>this.searchElement=t,name:"search",value:this.search,looks:this.looks,onKeyDown:t=>this.keyDownHandler(t),onSmoothlyInput:t=>this.inputHandler(t),onSmoothlyChange:t=>t.stopPropagation(),onSmoothlyBlur:t=>t.stopPropagation()},e("slot",{name:"search"})),this.mutable&&!this.readonly?e("button",{onClick:()=>this.addHandler(),disabled:!this.valid,type:"button"},e("smoothly-icon",{name:"add-outline"})):null),e("div",{class:"list",ref:t=>this.listElement=t},Array.from(this.backend.values()).sort(((t,e)=>t.position-e.position)).map((t=>e("smoothly-slot-elements",{ref:e=>Ki(e,t),clone:false,nodes:t.clone})))))}get element(){return o(this)}static get watchers(){return{open:["openChange"],readonly:["readonlyChanged"]}}};Ui.style=Pi;const _i=":host{display:contents}:host(:not([visible])){display:none}:host>*{cursor:pointer;padding:0.25ch 0.5rem}:host .display{padding-left:0}:host button{color:unset;background-color:inherit;border:none;padding-right:0}:host .content{display:flex;column-gap:1rem;justify-content:space-between}:host([required])>*{cursor:default}:host([required]) button{opacity:0.65}";var Hi=undefined&&undefined.__rest||function(t,e){var o={};for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0)o[s]=t[s];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var n=0,s=Object.getOwnPropertySymbols(t);n<s.length;n++){if(e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n]))o[s[n]]=t[s[n]]}return o};const Fi=class{constructor(e){t(this,e);this.smoothlyPickerOptionLoad=s(this,"smoothlyPickerOptionLoad",7);this.smoothlyPickerOptionLoaded=s(this,"smoothlyPickerOptionLoaded",7);this.smoothlyPickerOptionChange=s(this,"smoothlyPickerOptionChange",7);this.selected=false;this.visible=true;this.value=undefined;this.search=[];this.position=-1;this.required=false;this.readonly=false;this.slotted=[]}get option(){var t;return{element:this.element,selected:this.selected,readonly:this.readonly,required:this.required,visible:this.visible,search:this.search,value:this.value,slotted:this.slotted,position:this.position>=0||!((t=this.element.parentElement)===null||t===void 0?void 0:t.parentElement)?this.position:Array.from(this.element.parentElement.parentElement.children).indexOf(this.element.parentElement),set:{selected:t=>this.selected=t,readonly:t=>this.readonly=t,visible:t=>this.visible=t,search:t=>this.search=t,value:t=>this.value=t}}}emitChange(){if(this.element.parentElement)this.smoothlyPickerOptionChange.emit(this.option)}componentWillLoad(){if(this.required)this.selected=true;this.smoothlyPickerOptionLoad.emit((t=>{var e=Hi(t,["slotted"]);return e})(this.option))}componentDidLoad(){this.smoothlyPickerOptionLoaded.emit(this.option)}slottedChangeHandler(t){t.stopPropagation();this.slotted=t.detail}async clickHandler(){if(!this.readonly&&!this.required)this.selected=!this.selected}render(){return e(n,{class:{visible:this.visible},onClick:()=>this.clickHandler()},e("div",{part:"display",class:"display"},e("slot",{name:"display"})),e("div",{part:"content",class:"content"},e("smoothly-slotted-elements",{onSmoothlySlottedChange:t=>this.slottedChangeHandler(t),clone:true},e("slot",null)),e("slot",{name:"label"})),e("button",{type:"button"},e("smoothly-icon",{name:this.selected?"checkbox-outline":"square-outline"})))}get element(){return o(this)}static get watchers(){return{position:["emitChange"],selected:["emitChange"],slotted:["emitChange"]}}};Fi.style=_i;const zi='.sc-smoothly-popup-h{display:inline-flex;position:relative}[hidden].sc-smoothly-popup-h{display:none}.sc-smoothly-popup-h:not([visible]) aside.sc-smoothly-popup{display:none}.sc-smoothly-popup-h aside.sc-smoothly-popup{display:inline;position:absolute;padding:0.3em;left:var(--left);right:var(--right);background-color:rgb(238, 238, 238);border-color:rgb(238, 238, 238);border-style:solid;border-width:0.1em;border-radius:0.6em;z-index:3}[direction=down].sc-smoothly-popup-h aside.sc-smoothly-popup{top:2.2em;box-shadow:6px 5px 9px -9px black, 5px 6px 9px -9px black}[direction=up].sc-smoothly-popup-h aside.sc-smoothly-popup{bottom:2.2em;box-shadow:-6px -5px 9px -9px black, -5px -6px 9px -9px black}.sc-smoothly-popup-h:not([visible]) .background.sc-smoothly-popup{display:none}.sc-smoothly-popup-h .background.sc-smoothly-popup{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:2}.sc-smoothly-popup-h:not([visible]) .arrow.sc-smoothly-popup{display:none}.sc-smoothly-popup-h .arrow.sc-smoothly-popup{background-color:rgb(238, 238, 238);border-color:rgb(238, 238, 238);z-index:2;content:"";position:absolute;width:12px;height:12px;transform:rotate(45deg);left:calc(var(--left) + 1em);right:calc(var(--right) + 1em)}[direction=down].sc-smoothly-popup-h .arrow.sc-smoothly-popup{top:2em;border-top-style:solid;border-top-width:1px;border-left-style:solid;border-left-width:1px}[direction=up].sc-smoothly-popup-h .arrow.sc-smoothly-popup{bottom:2em;border-bottom-style:solid;border-bottom-width:1px;border-right-style:solid;border-right-width:1px}.sc-smoothly-popup-h .pointer.sc-smoothly-popup{cursor:pointer}';const Wi=class{constructor(e){t(this,e);this.popup=s(this,"popup",7);this.visible=false;this.direction="down";this.cssVariables={"--left":"0.1em"}}onClick(){var t,e,o,s,n,i;if(this.visible==false){(t=this.aside)===null||t===void 0?void 0:t.style.setProperty("display","block");this.cssVariables=((o=(e=this.aside)===null||e===void 0?void 0:e.getBoundingClientRect().right)!==null&&o!==void 0?o:0)>=window.innerWidth?{"--right":"0.1em"}:((n=(s=this.aside)===null||s===void 0?void 0:s.getBoundingClientRect().left)!==null&&n!==void 0?n:0)<0?{"--left":"0.1em"}:this.cssVariables;(i=this.aside)===null||i===void 0?void 0:i.style.removeProperty("display")}this.visible=!this.visible;this.popup.emit(this.visible)}render(){return e(n,{style:Object.assign({},this.cssVariables)},e("content",{class:"pointer",onClick:()=>this.onClick()},e("slot",null)),e("div",{class:"background",onClick:()=>this.onClick()}),e("div",{class:"arrow",onClick:()=>this.onClick()}),e("aside",{ref:t=>this.aside=t},e("slot",{name:"popup"})))}};Wi.style=zi;const Yi=".sc-smoothly-quiet-h{opacity:0.5}";const Zi=class{constructor(e){t(this,e);this.color=undefined}render(){return e(n,{color:this.color},e("slot",null))}};Zi.style=Yi;const Vi=".sc-smoothly-radio-h{display:block;position:relative}[hidden].sc-smoothly-radio-h{display:none}label.sc-smoothly-radio{display:block;width:calc(100% - 2 * 0.4em);padding:0.2em 0.4em 0.2em 0.4em}input[type=radio].sc-smoothly-radio{position:absolute;left:0;top:0;width:calc(100%);height:100%;margin:0;appearance:none;-webkit-appearance:none}input[type=radio].sc-smoothly-radio~label.sc-smoothly-radio{color:rgba(var(--smoothly-default-contrast), 0.5);background:rgb(var(--smoothly-default-color))}input[type=radio].sc-smoothly-radio:checked~label.sc-smoothly-radio{background-color:rgb(var(--smoothly-default-shade));color:rgb(var(--smoothly-default-contrast))}";const $i=class{constructor(e){t(this,e);this.smoothlySelected=s(this,"smoothlySelected",7);this.name=undefined;this.value=undefined;this.checked=undefined;this.tab=undefined}async onInput(t){if(t.target&&t.target.value&&(this.checked=t.target.checked))this.smoothlySelected.emit({name:this.name,value:this.value});return true}render(){return[e("input",{type:"radio",name:this.name,id:this.value,tabindex:this.tab,checked:this.checked,value:this.value,onChange:t=>this.onInput(t)}),e("label",{htmlFor:this.value},e("slot",null))]}};$i.style=Vi;const Xi=".sc-smoothly-radio-button-h{display:block}";const Ji=class{constructor(e){t(this,e);this.smoothlyInput=s(this,"smoothlyInput",7);this.smoothlyChange=s(this,"smoothlyChange",7);this.name=undefined;this.value=undefined;this.deselectable=undefined;this.decoration="radio"}radioSelectHandler(t){var e,o;if(this.deselectable||((e=this.active)===null||e===void 0?void 0:e.value)!=t.detail.value){(o=this.active)===null||o===void 0?void 0:o.select(false);this.active=t.detail;this.smoothlyInput.emit({[this.name]:this.value=this.active.selected?this.active.value:undefined});this.smoothlyChange.emit({[this.name]:this.value=this.active.selected?this.active.value:undefined});this.active.select(this.active.selected)}}render(){return e(n,null,e("slot",null))}};Ji.style=Xi;const Qi='smoothly-radio-button[decoration=radio] .sc-smoothly-radio-button-item-h{transition:0.2s}smoothly-radio-button[decoration=radio] .sc-smoothly-radio-button-item-h>header.sc-smoothly-radio-button-item{padding:0.5rem}smoothly-radio-button[decoration=radio] .sc-smoothly-radio-button-item-h>header.sc-smoothly-radio-button-item>smoothly-icon.sc-smoothly-radio-button-item{display:none}smoothly-radio-button[decoration=radio] [selected].sc-smoothly-radio-button-item-h>header.sc-smoothly-radio-button-item{color:rgb(var(--smoothly-secondary-contrast));background:rgb(var(--smoothly-secondary-color))}smoothly-radio-button[decoration=radio].sc-smoothly-radio-button-item-s>[slot=expansion]::before,smoothly-radio-button[decoration=radio] .sc-smoothly-radio-button-item-s>[slot=expansion]::before{content:unset}@media screen and (min-width: 900px){smoothly-radio-button[decoration=radio] .sc-smoothly-radio-button-item-h:hover{background:rgb(var(--smoothly-secondary-shade));cursor:pointer}}smoothly-radio-button[decoration=button] .sc-smoothly-radio-button-item-h{padding:0.3rem}smoothly-radio-button[decoration=button] .sc-smoothly-radio-button-item-h>header.sc-smoothly-radio-button-item>smoothly-icon.sc-smoothly-radio-button-item{margin-right:0.5rem;border-radius:100%;font-size:1.3rem;display:flex}smoothly-radio-button[decoration=button].sc-smoothly-radio-button-item-s>[slot=expansion],smoothly-radio-button[decoration=button] .sc-smoothly-radio-button-item-s>[slot=expansion]{background:rgb(var(--smoothly-secondary-color));color:rgb(var(--smoothly-secondary-contrast));border-radius:5px;margin-top:0.5rem}smoothly-radio-button[decoration=button].sc-smoothly-radio-button-item-s>[slot=expansion]::before,smoothly-radio-button[decoration=button] .sc-smoothly-radio-button-item-s>[slot=expansion]::before{content:"\\25B2";position:absolute;top:-0.8rem;left:3rem;color:rgb(var(--smoothly-secondary-color))}@media screen and (min-width: 900px){smoothly-radio-button[decoration=button] .sc-smoothly-radio-button-item-h>header.sc-smoothly-radio-button-item:hover>smoothly-icon.sc-smoothly-radio-button-item{cursor:pointer}smoothly-radio-button[deselectable] [selected].sc-smoothly-radio-button-item-h>header.sc-smoothly-radio-button-item:hover>smoothly-icon.sc-smoothly-radio-button-item{cursor:pointer}}.sc-smoothly-radio-button-item-h{display:block}.sc-smoothly-radio-button-item-h>header.sc-smoothly-radio-button-item{display:flex;align-items:center}.sc-smoothly-radio-button-item-s>[slot=expansion]{display:none;background:rgb(var(--smoothly-secondary-tint));color:rgb(var(--smoothly-secondary-contrast));padding:0;position:relative;transition:0.1s}[selected].sc-smoothly-radio-button-item-s>[slot=expansion]{display:block;padding:0.5rem}';const qi=class{constructor(e){t(this,e);this.radioItemSelectInternal=s(this,"radioItemSelectInternal",7);this.value=undefined;this.selected=undefined;this.color=undefined}componentWillLoad(){this.selected&&this.select(this.selected)}select(t=false){this.radioItemSelectInternal.emit({value:this.value,selected:t,select:t=>this.selected=t})}render(){return e(n,null,e("header",{onClick:()=>this.select(!this.selected)},e("smoothly-icon",{color:this.selected?"success":"medium",fill:"outline",name:this.selected?"checkmark-circle":"ellipse-outline",size:"tiny",toolTip:"Select"}),e("slot",null),e("slot",{name:"end"})),e("slot",{name:"expansion"}))}};qi.style=Qi;const tl=".sc-smoothly-select-demo-h{display:block}[hidden].sc-smoothly-select-demo-h{display:none}button.sc-smoothly-select-demo:focus{outline:none}smoothly-selector.sc-smoothly-select-demo{outline:none}button.sc-smoothly-select-demo{display:block}";const el=class{constructor(e){t(this,e)}render(){return[e("smoothly-tab-switch",null,e("smoothly-tab",{label:"test1",open:true},"Hello world!"),e("smoothly-tab",{label:"test2"},"this is a test message!"),e("smoothly-tab",{label:"test3"},"this is a test message again!"))]}};el.style=tl;const ol='.sc-smoothly-skeleton-h{display:block;height:1rem}.sc-smoothly-skeleton-h::before{content:"";display:block;width:var(--width);height:100%;border-radius:0.4rem;background-image:linear-gradient(90deg, rgb(var(--color, var(--smoothly-dark-color))) 0, transparent 2.5rem, rgb(var(--color, var(--smoothly-dark-color))) 5rem);background-size:calc(var(--distance) + 5rem);animation-duration:var(--period, 1.6s);animation-iteration-count:infinite;animation-timing-function:linear;animation-name:shine-lines-left}@keyframes shine-lines-left{0%{background-position:-5rem}40%,100%{background-position:var(--distance)}}[align=center].sc-smoothly-skeleton-h::before{margin:0 auto;animation-name:shine-lines-center}@keyframes shine-lines-center{0%{background-position:calc((var(--width) - var(--distance)) / 2 - 5rem)}40%,100%{background-position:calc(var(--width) + (var(--distance) - var(--width)) / 2)}}[align=right].sc-smoothly-skeleton-h::before{margin:0;margin-left:auto;animation-name:shine-lines-right}@keyframes shine-lines-right{0%{background-position:calc(var(--width) - var(--distance) - 5rem)}40%,100%{background-position:var(--width)}}';const sl=class{constructor(e){t(this,e);this.widths=["8rem","9rem","10rem"];this.width=undefined;this.color=undefined;this.period=undefined;this.distance=undefined;this.align="left"}componentWillLoad(){var t;this.width=(t=this.width)!==null&&t!==void 0?t:this.widths[Math.floor(Math.random()*this.widths.length)]}render(){var t;const o=Object.assign(Object.assign({"--width":this.width,"--distance":(t=this.distance)!==null&&t!==void 0?t:"10rem"},this.color?{"--color":this.color}:undefined),this.period?{"--period":this.period+"s"}:undefined);return e(n,{style:o})}};sl.style=ol;const nl=".sc-smoothly-slot-elements-h{display:contents}";const il=class{constructor(e){t(this,e);this.smoothlySlotEmpty=s(this,"smoothlySlotEmpty",7);this.clone=true;this.nodes=undefined}componentWillLoad(){if(!this.nodes)this.smoothlySlotEmpty.emit({set:{nodes:t=>this.nodes=t}})}componentDidLoad(){this.element.innerHTML="";if(this.nodes)if(Array.isArray(this.nodes))this.nodes.forEach((t=>this.element.appendChild(this.clone?t.cloneNode(true):t)));else this.element.appendChild(this.clone?this.nodes.cloneNode(true):this.nodes)}render(){return e(n,null,e("slot",null))}get element(){return o(this)}static get watchers(){return{nodes:["componentDidLoad"]}}};il.style=nl;const ll=".sc-smoothly-slotted-elements-h{display:contents}";const rl=class{constructor(e){t(this,e);this.smoothlySlottedChange=s(this,"smoothlySlottedChange",7);this.clone=true}componentDidRender(){const t=Array.from(this.element.childNodes,(t=>{let e;if(t instanceof HTMLSlotElement){const o=t.assignedNodes();e=o.length?o.map((t=>this.clone?t.cloneNode(true):t)):this.clone?t.cloneNode(true):t}else e=t;return e})).flat();this.smoothlySlottedChange.emit(Array.from(t,(t=>this.clone?t.cloneNode(true):t)))}render(){return e(n,null,e("slot",null))}get element(){return o(this)}};rl.style=ll;const al=".sc-smoothly-spinner-h:not([active]){display:none}[hidden].sc-smoothly-spinner-h{display:none}.sc-smoothly-spinner-h{display:block;stroke:rgb(var(--spinner-color, var(--smoothly-primary-tint)));position:absolute;z-index:4;inset:0;width:100%;height:100%;background-color:rgba(var(--background-color, var(--smoothly-default-color)), var(--background-opacity, var(--smoothly-semitransparent, 0.8)))}.sc-smoothly-spinner-h svg.sc-smoothly-spinner{position:absolute;left:calc(50% - var(--size) / 2);top:calc(50% - var(--size) / 2);width:var(--size);animation:SPIN-SVG 1.4s linear infinite}.sc-smoothly-spinner-h svg.sc-smoothly-spinner circle.sc-smoothly-spinner{transform-origin:center;animation:SPIN-CIRCLE 1.4s ease-in-out infinite;stroke-dasharray:187;stroke-dashoffset:0}@keyframes SPIN-SVG{0%{transform:rotate(0deg)}100%{transform:rotate(270deg)}}@keyframes SPIN-CIRCLE{0%{stroke-dashoffset:187}50%{stroke-dashoffset:46.75;transform:rotate(135deg)}100%{stroke-dashoffset:187;transform:rotate(450deg)}}";const cl=class{constructor(e){t(this,e);this.active=undefined;this.size="large"}render(){const t=this.size=="large"?6:this.size=="medium"?8:12;return e(n,{style:{"--color":`var(--spinner-color)`,"--size":this.size=="large"?"5em":this.size=="medium"?"3em":"1.2em"}},e("svg",{class:"spinner",viewBox:`0 0 ${60+t} ${60+t}`,xmlns:"http://www.w3.org/2000/svg"},e("circle",{class:"path",fill:"none","stroke-width":t,"stroke-linecap":"round",cx:`${30+t/2}`,cy:`${30+t/2}`,r:"30"})))}};cl.style=al;var hl;(function(t){function e(t){return t&&typeof t=="object"&&typeof t.submit=="function"}t.is=e})(hl||(hl={}));const ul="[color=default].sc-smoothly-submit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-submit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-submit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-submit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-submit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-color);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-submit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-submit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-submit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-submit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-submit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-submit-h{display:inline-block;margin:1em;box-sizing:border-box;border-radius:0.5rem;border:solid 1px;transition:background 150ms ease-in-out;cursor:pointer}[type=link].sc-smoothly-submit-h{display:inline;border:none}[disabled].sc-smoothly-submit-h{opacity:0.5;pointer-events:none}a.sc-smoothly-submit,button.sc-smoothly-submit{font-size:110%;font-weight:400;border:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem}button.sc-smoothly-submit{justify-content:center;height:100%;width:100%;border-radius:0.5rem;min-width:8em;align-items:center}.sc-smoothly-submit-h:not([size=icon])>button.sc-smoothly-submit{padding:0.8em}[size=icon].sc-smoothly-submit-h>button.sc-smoothly-submit{padding:0.5em}[shape=rounded].sc-smoothly-submit-h>button.sc-smoothly-submit,[shape=rounded].sc-smoothly-submit-h{border-radius:2rem}[type=button].sc-smoothly-submit-h>a.sc-smoothly-submit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:100%}[size=large].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:130%}.sc-smoothly-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center;border:none}[size=flexible].sc-smoothly-submit-h>button.sc-smoothly-submit{min-width:unset;padding:0;margin:0 !important}[expand].sc-smoothly-submit-h{width:100%}[expand=full].sc-smoothly-submit-h{border-left:none;border-right:none;border-radius:0}[shape=rounded].sc-smoothly-submit-h>button.sc-smoothly-submit,[shape=rounded].sc-smoothly-submit-h{border-radius:2rem}.sc-smoothly-submit-h:not([fill=clear]):hover,.sc-smoothly-submit-h:not([fill=clear]):focus,.sc-smoothly-submit-h:not([fill=clear]):active{border-color:rgb(var(--smoothly-color-tint)) !important;background:rgb(var(--smoothly-color-tint)) !important}.sc-smoothly-submit-h:not([fill=clear]):hover>button.sc-smoothly-submit,.sc-smoothly-submit-h:not([fill=clear]):focus>button.sc-smoothly-submit,.sc-smoothly-submit-h:not([fill=clear]):active>button.sc-smoothly-submit,.sc-smoothly-submit-h:not([fill=clear]):hover .sc-smoothly-submit-s>smoothly-icon,.sc-smoothly-submit-h:not([fill=clear]):focus .sc-smoothly-submit-s>smoothly-icon,.sc-smoothly-submit-h:not([fill=clear]):active .sc-smoothly-submit-s>smoothly-icon{color:rgb(var(--smoothly-color-contrast)) !important;stroke:rgb(var(--smoothly-color-contrast)) !important;fill:rgb(var(--smoothly-color-contrast)) !important}[fill=clear].sc-smoothly-submit-h:hover>button.sc-smoothly-submit,[fill=clear].sc-smoothly-submit-h:focus>button.sc-smoothly-submit,[fill=clear].sc-smoothly-submit-h:active>button.sc-smoothly-submit{color:rgb(var(--smoothly-color-tint)) !important;stroke:rgb(var(--smoothly-color-tint)) !important;fill:rgb(var(--smoothly-color-tint)) !important}[disabled].sc-smoothly-submit-h{opacity:0.5;pointer-events:none}.sc-smoothly-submit-h:not([fill]),[fill=default].sc-smoothly-submit-h{background:rgb(var(--smoothly-color));border-color:transparent}[fill=solid].sc-smoothly-submit-h{background:rgb(var(--smoothly-color));border-color:rgb(var(--smoothly-color))}[fill=solid].sc-smoothly-submit-h>button.sc-smoothly-submit,[fill=default].sc-smoothly-submit-h>button.sc-smoothly-submit{stroke:rgb(var(--smoothly-color-contrast));fill:rgb(var(--smoothly-color-contrast));color:rgb(var(--smoothly-color-contrast))}[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit,[fill=clear].sc-smoothly-submit-h>button.sc-smoothly-submit{stroke:rgb(var(--smoothly-color));fill:rgb(var(--smoothly-color));color:rgb(var(--smoothly-color))}[fill=outline].sc-smoothly-submit-h{background:transparent;border-color:rgb(var(--smoothly-color))}[fill=clear].sc-smoothly-submit-h{background:transparent;border-color:transparent}.sc-smoothly-submit-s>smoothly-icon[slot=start],.sc-smoothly-submit-s>smoothly-icon[slot=end]{font-size:0.65em}[hidden].sc-smoothly-submit-h{display:none}.sc-smoothly-submit-h{margin:1em 0em}";const dl=class{constructor(e){t(this,e);this.smoothlySubmit=s(this,"smoothlySubmit",7);this.smoothlyInputLoad=s(this,"smoothlyInputLoad",7);this.color="success";this.expand=undefined;this.fill=undefined;this.disabled=false;this.type="button";this.size=undefined;this.shape=undefined;this.prevent=true}async componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(hl.is(t)){this.parent=t}}))}clickHandler(){var t;(t=this.parent)===null||t===void 0?void 0:t.submit()}render(){return e(It,{disabled:this.disabled,type:this.type},e("slot",null))}};dl.style=ul;const ml=".sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary{list-style:none;display:flex;gap:0.5rem;align-items:center}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transition:0.2s}.sc-smoothly-summary-h>details[open].sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transform:rotate(90deg)}.sc-smoothly-summary-h>details>summary.sc-smoothly-summary-s>[slot=summary]{display:inline-block;margin:0}.sc-smoothly-summary-h>details.sc-smoothly-summary-s>[slot=content]{display:inline-block;margin:0;padding:0.5rem 1.75rem}@media screen and (min-width: 900px){.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary:hover{cursor:pointer}}";const yl=class{constructor(e){t(this,e);this.smoothlySummaryOpen=s(this,"smoothlySummaryOpen",7);this.open=false;this.color="primary";this.fill="solid";this.size="tiny"}toggleHandler(t){if(t.target instanceof HTMLDetailsElement){this.open=t.target.open;this.smoothlySummaryOpen.emit(this.open)}}render(){return e("details",{onToggle:t=>this.toggleHandler(t),open:this.open},e("summary",null,e("smoothly-icon",{name:"caret-forward",color:this.color,fill:this.fill,size:this.size}),e("slot",{name:"summary"})),e("slot",{name:"content"}))}};yl.style=ml;const fl=".sc-smoothly-svg-h{display:block;min-width:var(--size-width);min-height:var(--size-height);background-color:rgb(var(--color, var(--smoothly-color-contrast)))}object.sc-smoothly-svg{min-width:var(--size-width);min-height:var(--size-height);background-color:rgb(var(--color, var(--smoothly-color-contrast)))}";const pl=class{constructor(e){t(this,e);this.defaultSizes={large:{height:"50rem",width:"50rem"},medium:{height:"30rem",width:"30rem"},small:{height:"10rem",width:"10rem"},tiny:{height:"5rem",width:"5rem"}};this.url=undefined;this.size=undefined;this.color=undefined}render(){const t=this.size?typeof this.size=="object"?this.size.height:this.defaultSizes[this.size].height:"10rem";const o=this.size?typeof this.size=="object"?this.size.width:this.defaultSizes[this.size].width:"10rem";return e(n,{style:{"min-height":t,"min-width":o,"--size-height":t,"--size-width":o,"--color":this.color}},e("object",{height:t,width:o,type:"image/svg+xml",data:this.url}))}};pl.style=fl;const bl="[open].sc-smoothly-tab-h{border-bottom:3px solid rgb(var(--smoothly-primary-color));box-sizing:border-box;margin-bottom:-3px}.hide.sc-smoothly-tab{display:none}label.sc-smoothly-tab{display:block;padding:.5rem;background-color:transparent;width:auto}";const gl=class{constructor(e){t(this,e);this.expansionOpen=s(this,"expansionOpen",7);this.label=undefined;this.open=undefined}openChanged(){if(this.expansionElement){this.expansionOpen.emit(this.expansionElement)}}onClick(t){this.open=!this.open;t.stopPropagation()}componentDidLoad(){if(this.expansionElement&&this.open){this.expansionOpen.emit(this.expansionElement)}}render(){return e(n,null,e("label",null,this.label),e("div",{ref:t=>this.expansionElement=t,class:!this.open?"hide":""},e("slot",null)))}static get watchers(){return{open:["openChanged"]}}};gl.style=bl;const vl=".sc-smoothly-tab-switch-h{display:flex;flex-direction:row;justify-content:space-around;border-bottom:3px solid rgb(var(--smoothly-default-shade))}";const wl=class{constructor(e){t(this,e);this.selectedElement=undefined}openChanged(t){t.stopPropagation();this.selectedElement=t.target;this.selectedElement.open=true;this.element.after(t.detail)}onSelectedChange(t,e){if(e)e.open=false}render(){return e(n,null,e("slot",null))}get element(){return o(this)}static get watchers(){return{selectedElement:["onSelectedChange"]}}};wl.style=vl;const kl=".sc-smoothly-table-h{display:table;width:var(--table-width, 80%);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color))}[root].sc-smoothly-table-h{margin-left:1.5rem;margin-right:1.5rem}.sc-smoothly-table-h:not([root]){margin:0;width:100%}";const Sl=class{constructor(e){t(this,e);this.smoothlyNestedTable=s(this,"smoothlyNestedTable",7);this.smoothlySpotlightChange=s(this,"smoothlySpotlightChange",7);this.smoothlyTableLoad=s(this,"smoothlyTableLoad",7);this.expandable=new WeakMap;this.expanded=new Set;this.root=true;this.color=undefined;this.align="middle";this.open=false}componentWillLoad(){this.smoothlyNestedTable.emit((()=>this.root=false));this.smoothlyTableLoad.emit((t=>this.owner=t))}handleExpandableLoaded(t){t.stopPropagation();t.target&&this.expandable.set(t.target,t.detail)}handleExpandableState(t){t.stopPropagation();t.target&&(t.detail?this.expanded.add(t.target):this.expanded.delete(t.target));this.smoothlySpotlightChange.emit({allowSpotlight:!this.expanded.size,owner:this.owner})}handleSpotlightState(t){var e;this.open=!!this.expanded.size;t.target!=this.element&&(t.stopPropagation(),t.detail.owner&&((e=this.expandable.get(t.detail.owner))===null||e===void 0?void 0:e.allowSpotlight(t.detail.allowSpotlight)))}handleNestedTable(t){t.target!=this.element&&(t.stopPropagation(),t.detail())}handleEvents(t){t.stopPropagation()}render(){return[e("slot",null)]}get element(){return o(this)}};Sl.style=kl;const xl=".sc-smoothly-table-cell-h{display:table-cell;line-height:1.5rem;white-space:nowrap;padding:0.3rem 0 0.3rem 1rem;box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade))}.sc-smoothly-table-cell-h smoothly-icon.sc-smoothly-table-cell{display:none;width:1em;height:auto;aspect-ratio:1 / 1;margin:0 0.3rem;transition:transform 0.2s, opacity 0.1s;opacity:0.3}.sc-smoothly-table-cell-h:hover smoothly-icon.sc-smoothly-table-cell{opacity:1}smoothly-table-expandable-row>div .sc-smoothly-table-cell-h:last-of-type smoothly-icon.sc-smoothly-table-cell{display:flex}smoothly-table-expandable-row[open]>div .sc-smoothly-table-cell-h:last-of-type smoothly-icon.sc-smoothly-table-cell{transform:rotate(90deg)}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell{display:grid;grid-auto-flow:column;align-items:center;justify-content:space-between}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell>div.sc-smoothly-table-cell{width:100%}smoothly-table[align=bottom] .sc-smoothly-table-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-cell-h{vertical-align:middle;text-align:left}smoothly-table[align=top] .sc-smoothly-table-cell-h{vertical-align:top}";const Cl=class{constructor(e){t(this,e)}render(){return e(n,null,e("div",null,e("div",null,e("slot",null)),e("smoothly-icon",{name:"caret-forward-outline",size:"tiny"})))}};Cl.style=xl;const Ml=".sc-smoothly-table-demo-h{display:flex;flex-direction:column;align-items:center;gap:3rem;padding-bottom:10rem;margin-left:1.5rem;margin-right:1.5rem}.content.sc-smoothly-table-demo{display:contents}";const Al=class{constructor(e){t(this,e)}render(){return[e("h4",null,"Filtered & Checked Table"),e("smoothly-table-demo-filtered",null),e("smoothly-table-testing",null),e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,"Header A"),e("smoothly-table-header",null,"Header B"),e("smoothly-table-header",null,"Header C"),e("smoothly-table-header",null,"Header D")),e("smoothly-table-row",null,e("smoothly-table-expandable-cell",null,"normal row (exp.cell)",e("div",{slot:"detail"},"expandable cell 1 content")),e("smoothly-table-expandable-cell",null,"expandable cell",e("div",{slot:"detail"},"expandable cell 2 content")),e("smoothly-table-expandable-cell",null,"expandable cell",e("div",{slot:"detail"},"expandable cell 3 content")),e("smoothly-table-expandable-cell",null,"expandable cell",e("div",{slot:"detail"},"expandable cell 4 content"))),e("smoothly-table-row",null,e("smoothly-table-cell",null,'normal row (nor.cell)"'),e("smoothly-table-cell",null,"normal cell"),e("smoothly-table-expandable-cell",null,"expandable cell",e("div",{slot:"detail"},"expandable cell details.")),e("smoothly-table-expandable-cell",null,"expandable cell",e("div",{slot:"detail"},"expandable cell details."))),e("smoothly-table-expandable-row",null,e("smoothly-table-cell",null,"expandable row (nor.cell)"),e("smoothly-table-cell",null,"Normal cell"),e("smoothly-table-cell",null,"normal cell"),e("smoothly-table-cell",null,"Normal cell"),e("div",{slot:"detail"},"expandable row content"))),e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,"Header A"),e("smoothly-table-expandable-cell",null,"Header expansion",e("div",{slot:"detail"},"Expansion content"))),e("smoothly-table-expandable-row",null,e("smoothly-table-cell",null,"A Content"),e("smoothly-table-cell",null,"Expansion cell"),e("div",{slot:"detail"},e("smoothly-tab-switch",null,e("smoothly-tab",{label:"innertable 1",open:true},e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,"Header B")),e("smoothly-table-expandable-row",null,"B Content"))),e("smoothly-tab",{label:"innertable 2"},e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,"Header C")),e("smoothly-table-expandable-row",null,e("smoothly-table-cell",null,"C Content"))))))),e("smoothly-table-row",null,e("smoothly-table-cell",null,"A Content"),e("smoothly-table-expandable-cell",null,"Expandable cell",e("div",{slot:"detail"},"Expansion content")))),e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,"A"),e("smoothly-table-header",null,"B")),e("smoothly-table-expandable-row",null,e("smoothly-table-cell",null,"a row"),e("smoothly-table-cell",null,"b row"),e("div",{slot:"detail"},e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,"C"),e("smoothly-table-header",null,"D")),e("smoothly-table-expandable-row",null,e("smoothly-table-cell",null,"c"),e("smoothly-table-cell",null,"d"),e("div",{slot:"detail"},e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,"E"),e("smoothly-table-header",null,"F")),e("smoothly-table-expandable-row",null,e("smoothly-table-cell",null,"e row"),e("smoothly-table-cell",null,"f row"),e("div",{slot:"detail"},"nested expandable row expansion e f")))))))),e("smoothly-table-expandable-row",null,e("smoothly-table-cell",null,e("span",null,"one"),e("span",null,"two"),e("span",null,"three")),e("smoothly-table-cell",null,"five",e("smoothly-icon",{name:"paper-plane-sharp",size:"small"})),e("div",{slot:"detail"},"four")),e("smoothly-table-row",null,e("smoothly-table-expandable-cell",null,"a cell",e("div",{slot:"detail"},e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,"E"),e("smoothly-table-header",null,"F")),e("smoothly-table-row",null,e("smoothly-table-expandable-cell",null,"e cell",e("div",{slot:"detail"},e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,"G"),e("smoothly-table-header",null,"H")),e("smoothly-table-row",null,e("smoothly-table-expandable-cell",null,"g cell",e("div",{slot:"detail"},"nested expandable cell expansion g")),e("smoothly-table-expandable-cell",null,"h cell",e("div",{slot:"detail"},"nested expandable cell expansion h")))))),e("smoothly-table-expandable-cell",null,"f cell",e("div",{slot:"detail"},"nested expandable cell expansion f")))))),e("smoothly-table-expandable-cell",null,"b cell",e("div",{slot:"detail"},e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,"C"),e("smoothly-table-header",null,"D")),e("smoothly-table-row",null,e("smoothly-table-expandable-cell",null,"c cell",e("div",{slot:"detail"},"nested expandable cell expansion c")),e("smoothly-table-expandable-cell",null,"d cell",e("div",{slot:"detail"},"nested expandable cell expansion d")))))))),e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,"display"),e("smoothly-table-header",null,"contents")),e("smoothly-table-expandable-row",null,e("div",{class:"content"},e("smoothly-table-cell",null,"A"),e("smoothly-table-cell",null,"B")),e("div",{slot:"detail"},"expansion"))),e("span",null,"nested 1 then normal"),e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,"A"),e("smoothly-table-header",null,"B")),e("smoothly-table-expandable-row",null,e("smoothly-table-cell",null,"a"),e("smoothly-table-cell",null,"b"),e("div",{slot:"detail"},e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,"C"),e("smoothly-table-header",null,"D")),e("smoothly-table-row",null,e("smoothly-table-cell",null,"c"),e("smoothly-table-cell",null,"d")),e("smoothly-table-row",null,e("smoothly-table-cell",null,"ccc"),e("smoothly-table-cell",null,"ddd")),e("smoothly-table-expandable-row",null,e("smoothly-table-cell",null,"cccc"),e("smoothly-table-cell",null,"dddd"),e("div",{slot:"detail"},"CONTENT")),e("smoothly-table-row",null,e("smoothly-table-cell",null,"ccccc"),e("smoothly-table-cell",null,"ddd")),e("smoothly-table-expandable-row",null,e("smoothly-table-cell",null,"cccc"),e("smoothly-table-cell",null,"dddd"),e("div",{slot:"detail"},"CONTENT")))))),e("span",null,"not nested"),e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,"C"),e("smoothly-table-header",null,"D")),e("smoothly-table-row",null,e("smoothly-table-cell",null,"c"),e("smoothly-table-cell",null,"d")),e("smoothly-table-row",null,e("smoothly-table-cell",null,"cc"),e("smoothly-table-cell",null,"dd")),e("smoothly-table-row",null,e("smoothly-table-cell",null,"ccc"),e("smoothly-table-cell",null,"ddd"))),e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,"First name"),e("smoothly-table-header",null,"Last name"),e("smoothly-table-header",{style:{width:"1px"}},e("smoothly-icon",{name:"alert-outline"}))),e("smoothly-table-expandable-row",null,e("smoothly-table-cell",null,"Jessie"),e("smoothly-table-cell",null,"Doe"),e("smoothly-table-cell",null),e("div",{slot:"detail"},e("p",null,"This is Jessie"))))]}};Al.style=Ml;var Ol=undefined&&undefined.__classPrivateFieldGet||function(t,e,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(t):s?s.value:e.get(t)};var Tl=undefined&&undefined.__classPrivateFieldSet||function(t,e,o,s,n){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?n.call(t,o):n?n.value=o:e.set(t,o),o};var Nl;class Il{get selected(){var t;return Tl(this,Nl,(t=Ol(this,Nl,"f"))!==null&&t!==void 0?t:Object.values(this.data),"f")}constructor(t,e={}){this.key=t;this.data=e;Nl.set(this,void 0)}handle(t){var e;return new Il(this.key,"check-all"in t?(e=t["check-all"])!==null&&e!==void 0?e:{}:Object.fromEntries(Object.entries(Object.assign(Object.assign({},this.data),t)).filter((([t,e])=>e!=undefined))))}render(t){var o,s,n;return Array.isArray(t)?e("smoothly-checkbox",{name:"check-all",value:Object.fromEntries(t.map((t=>[t[this.key],t]))),intermediate:this.selected.length>0&&this.selected.length<t.length,checked:this.selected.length==t.length?true:this.selected.length==0&&false}):e("smoothly-checkbox",{name:(o=t[this.key])===null||o===void 0?void 0:o.toString(),value:t,checked:!!this.data[(n=(s=t[this.key])===null||s===void 0?void 0:s.toString())!==null&&n!==void 0?n:""]})}static create(t){return new Il(t)}}Nl=new WeakMap;const Rl=".sc-smoothly-table-demo-filtered-h{display:block}";const Ll=class{constructor(e){t(this,e);this.criteria={};this.data=undefined;this.selector=Il.create("breed")}onFilterUpdate(t){t.stopPropagation();this.criteria=t.detail}smoothlyInputHandler(t){t.stopPropagation();this.selector=this.selector.handle(t.detail)}async componentWillLoad(){const t=await zn("https://catfact.ninja/breeds?limit=10");this.data=t.status==200&&await t.body}render(){const t=this.data&&Qs.filter(this.criteria,this.data.data);return!t?"Failed to load data.":[e("smoothly-filter",null,e("smoothly-icon",{slot:"start",name:"search-outline",size:"small"}),"Readonly",e("div",{slot:"filter"},e("smoothly-form",{looks:"border"},e("smoothly-filter-input",{name:"breed",placeholder:"ex. Abyssinian"},"Breed",e("smoothly-icon",{slot:"start",name:"search-outline",size:"small"}))),e("smoothly-form",{looks:"border"},e("smoothly-filter-input",{name:"country",placeholder:"ex. Ethiopia"},"Country",e("smoothly-icon",{slot:"start",name:"search-outline",size:"small"}))),e("smoothly-form",{looks:"border"},e("smoothly-filter-input",{name:"coat",placeholder:"ex. Short"},"Coat",e("smoothly-icon",{slot:"start",name:"search-outline",size:"small"}))),e("smoothly-form",{looks:"border"},e("smoothly-filter-input",{name:"pattern",placeholder:"ex. Ticked"},"Pattern",e("smoothly-icon",{slot:"start",name:"search-outline",size:"small"}))))),e("smoothly-table",null,e("smoothly-table-row",null,e("smoothly-table-header",null,this.selector.render(t)),e("smoothly-table-header",null,"Breed"),e("smoothly-table-header",null,"Coat")),t.map((t=>e("smoothly-table-row",null,e("smoothly-table-cell",null,this.selector.render(t)),e("smoothly-table-expandable-cell",null,t.breed,e("div",{slot:"detail"},"Country: ",t.country)),e("smoothly-table-expandable-cell",null,t.coat,e("div",{slot:"detail"},"Pattern: ",t.pattern))))))]}};Ll.style=Rl;const El='.sc-smoothly-table-expandable-cell-h{display:table-cell;padding:0.3rem 0 0.3rem 0;cursor:pointer;line-height:1.5rem}.sc-smoothly-table-expandable-cell-h:not([open]){box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)), 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}[open].sc-smoothly-table-expandable-cell-h{position:relative;z-index:3;background-color:rgb(var(--smoothly-color));box-shadow:1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-cell-h smoothly-icon.sc-smoothly-table-expandable-cell{width:1em;float:left;padding:0 0.3rem;transition:transform 0.2s, opacity 0.1s;display:flex;height:auto;aspect-ratio:1 / 1;align-self:center;opacity:0.3}.sc-smoothly-table-expandable-cell-h:hover smoothly-icon.sc-smoothly-table-expandable-cell{opacity:1}[open].sc-smoothly-table-expandable-cell-h smoothly-icon.sc-smoothly-table-expandable-cell{transform:rotate(90deg)}aside.sc-smoothly-table-expandable-cell{display:grid;grid-auto-flow:column;justify-content:start;align-items:center}.hide.sc-smoothly-table-expandable-cell{display:none}td.sc-smoothly-table-expandable-cell-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 1px);top:1px;left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}tr.spotlight>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:calc(var(--expansion-border-width)) 0 0 0 rgb(var(--smoothly-tertiary-color)) inset}tr:not(.spotlight)>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}td.sc-smoothly-table-expandable-cell-s>*::before{content:"";position:absolute;display:flex;top:-1px;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}td.sc-smoothly-table-expandable-cell-s>*::after{content:"";position:absolute;display:flex;top:-1px;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}smoothly-table[align=bottom] .sc-smoothly-table-expandable-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-expandable-cell-h{vertical-align:middle;text-align:left}smoothly-table[align=top] .sc-smoothly-table-expandable-cell-h{vertical-align:top}';const Dl=class{constructor(e){t(this,e);this.smoothlyExpansionOpen=s(this,"smoothlyExpansionOpen",7);this.smoothlyExpansionLoad=s(this,"smoothlyExpansionLoad",7);this.smoothlyExpandableChange=s(this,"smoothlyExpandableChange",7);this.smoothlyExpandableLoad=s(this,"smoothlyExpandableLoad",7);this.allowSpotlight=true;this.spotlight=true;this.align="left";this.open=undefined}openChanged(t){if(this.expansionElement)if(t)this.beginOpen=true;else this.element.append(this.expansionElement);this.smoothlyExpandableChange.emit(this.open)}handleSpotlight(){this.spotlight=this.open&&this.allowSpotlight}componentWillLoad(){this.smoothlyExpansionLoad.emit();this.smoothlyExpandableLoad.emit({allowSpotlight:t=>this.allowSpotlight=t})}componentDidRender(){if(this.beginOpen){this.beginOpen=false;this.smoothlyExpansionOpen.emit(this.expansionElement)}}onClick(){this.open=!this.open}handleTableLoaded(t){t.stopPropagation();t.detail(this.element)}render(){return e(n,{style:{textAlign:this.align}},e("aside",null,e("smoothly-icon",{name:"caret-forward-outline"}),e("slot",null)),e("tr",{class:{spotlight:this.spotlight},ref:t=>this.expansionElement=t},e("td",{colSpan:999,class:!this.open?"hide":""},e("slot",{name:"detail"}))))}get element(){return o(this)}static get watchers(){return{open:["openChanged","handleSpotlight"],allowSpotlight:["handleSpotlight"]}}};Dl.style=El;const Pl='.sc-smoothly-table-expandable-row-h{display:contents}div.sc-smoothly-table-expandable-row{display:table-row;cursor:pointer;line-height:1.5rem}[open].sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row{position:relative;z-index:3;background-color:rgb(var(--smoothly-color))}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell,.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s>smoothly-table-cell{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.hide.sc-smoothly-table-expandable-row{display:none}div.sc-smoothly-table-expandable-row>tr.sc-smoothly-table-expandable-row>td.sc-smoothly-table-expandable-row{position:relative}td.sc-smoothly-table-expandable-row-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 2px);left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}tr.spotlight>td.sc-smoothly-table-expandable-row-s>*{box-shadow:calc(var(--expansion-border-width)) 0px 0px 0px rgb(var(--smoothly-tertiary-color)) inset}tr:not(.spotlight)>td.sc-smoothly-table-expandable-row-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}td.sc-smoothly-table-expandable-row-s>*::before{content:"";position:absolute;display:flex;top:0;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}td.sc-smoothly-table-expandable-row-s>*::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}';const Bl=class{constructor(e){t(this,e);this.smoothlyExpansionOpen=s(this,"smoothlyExpansionOpen",7);this.smoothlyExpandableChange=s(this,"smoothlyExpandableChange",7);this.smoothlyExpandableLoad=s(this,"smoothlyExpandableLoad",7);this.allowSpotlight=true;this.spotlight=true;this.align="left";this.open=undefined}handleSpotlight(){this.spotlight=this.open&&this.allowSpotlight}componentWillLoad(){this.smoothlyExpandableLoad.emit({allowSpotlight:t=>this.allowSpotlight=t})}handleTableLoaded(t){t.stopPropagation();t.detail(this.element)}render(){return e(n,{style:{textAlign:this.align}},e("div",{style:{textAlign:this.align},onClick:()=>this.open=!this.open},e("slot",null)),e("tr",{class:{spotlight:this.spotlight}},e("td",{colSpan:999,class:{hide:!this.open}},e("slot",{name:"detail"}))))}get element(){return o(this)}static get watchers(){return{open:["handleSpotlight"],allowSpotlight:["handleSpotlight"]}}};Bl.style=Pl;const Gl=".sc-smoothly-table-footer-h{display:table-footer-group;cursor:default;position:sticky;width:100%;bottom:0;background-color:rgb(var(--smoothly-color));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)),\n\tinset 0 1px 0 rgb(var(--smoothly-color-shade))}div.sc-smoothly-table-footer{display:contents}";const jl=class{constructor(e){t(this,e)}render(){return e("div",null,e("slot",null))}};jl.style=Gl;const Kl=".sc-smoothly-table-header-h{display:table-cell;line-height:2.5rem;border-top:1px solid rgb(var(--smoothly-color-shade));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade));padding-left:1rem;font-weight:bold}smoothly-table[align=bottom] .sc-smoothly-table-header-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-header-h{vertical-align:middle;text-align:left}smoothly-table[align=top] .sc-smoothly-table-header-h{vertical-align:top}";const Ul=class{constructor(e){t(this,e);this.name=undefined}render(){return e(n,null,e("slot",null))}};Ul.style=Kl;const _l=".sc-smoothly-table-row-h{display:table-row-group;cursor:default;line-height:1.5rem}.hide.sc-smoothly-table-row{display:none}div.sc-smoothly-table-row{display:contents}";const Hl=class{constructor(e){t(this,e);this.expansions=[];this.open=false}onExpansionLoad(t){this.expansions.push(t.target)}onExpansionChange(){this.open=this.expansions.some((t=>t.open))}onExpansionOpen(t){var e;this.expansions.forEach((e=>{if(e!=t.target)e.open=false}));if(t.detail)(e=this.element)===null||e===void 0?void 0:e.after(t.detail)}render(){return e("div",{ref:t=>this.element=t},e("slot",null))}};Hl.style=_l;const Fl=[{type:"cat",name:"Lazie",age:3},{type:"dog",name:"Jessie",age:8},{type:"cat",name:"Snooz",age:5},{type:"bird",name:"Squeak",age:1},{type:"bird",name:"Quirk",age:2}];const zl=".sc-smoothly-table-testing-h{width:100%;display:flex;justify-content:center}smoothly-table.sc-smoothly-table-testing{width:80%}.tableCell.sc-smoothly-table-testing{height:3rem;display:flex;align-items:center}.tableCell.sc-smoothly-table-testing>div.sc-smoothly-table-testing{margin-left:3rem;margin-right:3rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:2rem}";const Wl=class{constructor(e){t(this,e);this.counter=0}render(){return e(n,null,e("smoothly-table",{color:"dark"},e("smoothly-table-row",null,e("smoothly-table-header",null,"Type"),e("smoothly-table-header",null,"Name"),e("smoothly-table-header",null,"Age")),Fl.map((t=>e("smoothly-table-expandable-row",null,e("smoothly-table-cell",null,t.type),e("smoothly-table-cell",null,t.name),e("smoothly-table-cell",null,t.age),e("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},e("smoothly-input",{value:t.type},"Type"),e("smoothly-input",{value:t.name},"Name"),e("smoothly-input",null,t.age),e("smoothly-submit",{slot:"submit"},"Submit!"))))),Fl.map((t=>e("smoothly-table-row",null,e("smoothly-table-cell",null,t.type),e("smoothly-table-expandable-cell",null,t.name,e("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},e("smoothly-input",{value:t.name},"Name"),e("smoothly-submit",{slot:"submit"},"Submit!"))),e("smoothly-table-expandable-cell",null,t.age,e("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},e("smoothly-input",{value:t.type},"Type"),e("smoothly-input",{value:t.name},"Name"),e("smoothly-input",null,t.age),e("smoothly-submit",{slot:"submit"},"Submit!")))))),e("smoothly-table-footer",null,e("div",{class:"tableCell"},e("div",null,"Currently viewing content from:",e("smoothly-display",{type:"date",value:"2023-10-12"}))))))}};Wl.style=zl;const Yl=".sc-smoothly-theme-color-h{display:flex;flex-direction:column;align-items:center}.sc-smoothly-theme-color-h>.sc-smoothly-theme-color:first-child{margin-top:0.2rem}";const Zl=class{constructor(e){t(this,e);this.color=undefined}render(){return e(n,null,this.color,["tint","color","shade"].map((t=>e("smoothly-theme-color-variant",{color:this.color,variant:t}))))}};Zl.style=Yl;const Vl=".sc-smoothly-theme-color-variant-h{display:flex;justify-content:center;align-items:center;width:3em;height:3em;font-weight:900}[color][variant=color].sc-smoothly-theme-color-variant-h{background:rgb(var(--smoothly-color))}[color][variant=tint].sc-smoothly-theme-color-variant-h{background:rgb(var(--smoothly-color-tint))}[color][variant=shade].sc-smoothly-theme-color-variant-h{background:rgb(var(--smoothly-color-shade))}";const $l=class{constructor(e){t(this,e);this.color=undefined;this.variant="color"}render(){return"Aa"}};$l.style=Vl;const Xl=".sc-smoothly-theme-colors-h{display:grid;grid-template-columns:repeat(3, 1fr);row-gap:1em;column-gap:1em;width:fit-content}";const Jl=class{constructor(e){t(this,e)}render(){return["primary","secondary","tertiary","success","warning","danger","light","medium","dark","default"].map((t=>e("smoothly-theme-color",{color:t})))}};Jl.style=Xl;const Ql=".sc-smoothly-toggle-h{display:inline-block;border:none}button.sc-smoothly-toggle{border:solid white 0.5px;display:flex;padding:0.6em;justify-content:center;font-size:110%;font-weight:400;color:rgb(var(--smoothly-default-tint));background-color:rgb(var(--smoothly-default-shade))}[shape=rounded].sc-smoothly-toggle-h{border-radius:0.6em}[shape=rounded].sc-smoothly-toggle-h>button.sc-smoothly-toggle{border-radius:0.5em}[selected].sc-smoothly-toggle-h>button.sc-smoothly-toggle{color:rgb(var(--smoothly-light-contrast))}.sc-smoothly-toggle-s>smoothly-icon{stroke:rgb(var(--smoothly-default-contrast));fill:rgb(var(--smoothly-default-contrast));font-size:110%}.sc-smoothly-toggle-h:not([selected])>.sc-smoothly-toggle-s>smoothly-icon{color:rgb(var(--smoothly-default-tint));fill:rgb(var(--smoothly-default-tint))}[disabled].sc-smoothly-toggle-h{opacity:0.5;pointer-events:none}";const ql=class{constructor(e){t(this,e);this.selected=false;this.shape=undefined;this.disabled=false;this.name=undefined;this.value=undefined}onClick(t){this.selected=!this.selected}render(){return e("button",null,e("slot",{name:"icon-slot"}),e("slot",null,this.name))}};ql.style=Ql;const tr=":host{display:block;margin:1em 0;width:3.6em;height:1.8em}:host button{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer;border:none;border-radius:3em;background-color:rgb(var(--smoothly-light-tint))}:host button:hover{background-color:rgb(var(--smoothly-light-color))}:host smoothly-icon{display:flex;justify-content:flex-start;align-items:center;position:absolute;left:0;fill:rgb(var(--smoothly-color));stroke:rgb(var(--smoothly-color));font-size:1.2em;transition:100ms ease-in-out}:host[checkmark] smoothly-icon{fill:rgb(var(--smoothly-success-color));stroke:rgb(var(--smoothly-success-color))}:host([selected][checkmark]) button{background-color:rgb(var(--smoothly-success-color))}:host([selected]) smoothly-icon{transform:translateX(100%)}:host([size=small]){width:3.05em;height:1.5em}:host([size=large]){width:5.2em;height:2.5em}:host([size=small]) smoothly-icon{font-size:1em}:host([size=large]) smoothly-icon{font-size:1.75em}";const er=class{constructor(e){t(this,e);this.smoothlyToggleSwitchChange=s(this,"smoothlyToggleSwitchChange",7);this.checkmark=true;this.selected=false;this.disabled=false;this.size="default";this.color=undefined;this.fill="clear"}handleClick(){this.selected=!this.selected;this.smoothlyToggleSwitchChange.emit(this.selected)}render(){return e(n,null,e("button",{disabled:this.disabled,onClick:()=>this.handleClick()},e("smoothly-icon",{color:this.color,name:!this.checkmark?"ellipse":this.selected?"checkmark-circle":"close-circle",fill:"clear",class:{selected:this.selected}})))}};er.style=tr;const or=".sc-smoothly-trigger-h{display:block;border-style:solid;border-width:1px;border-radius:3px}[hidden].sc-smoothly-trigger-h{display:none}[disabled].sc-smoothly-trigger-h{opacity:0.5}button.sc-smoothly-trigger{border-color:transparent;background-color:transparent;padding:0.2em 0.3em;font-size:110%;font-weight:400}.sc-smoothly-trigger-h:not([disabled]):hover,.sc-smoothly-trigger-h:not([disabled]):focus,.sc-smoothly-trigger-h:not([disabled]):active{border-color:var(--smoothly-trigger-border)}[expand=full].sc-smoothly-trigger-h>button.sc-smoothly-trigger,[expand=block].sc-smoothly-trigger-h>button.sc-smoothly-trigger{width:100%}[expand=full].sc-smoothly-trigger-h{border-left:none;border-right:none}";const sr=class{constructor(e){t(this,e);this.trigger=s(this,"trigger",7);this.color=undefined;this.fill=undefined;this.disabled=false;this.type="button";this.name=undefined;this.value=undefined}onClick(t){this.trigger.emit({name:this.name,value:this.value});t.stopPropagation();t.preventDefault()}render(){let t;switch(this.type){case"link":t=this.disabled?e("slot",null):e("a",{onClick:t=>this.onClick(t)},e("slot",null));break;case"button":t=e("button",{disabled:this.disabled,name:this.name},e("slot",null));break}return t}};sr.style=or;const nr=class{constructor(e){t(this,e);this.tuple=undefined}render(){return[e("b",null,this.tuple[0]),": ",this.tuple[1],e("br",null)]}};const ir=class{constructor(e){t(this,e);this.data=undefined}render(){return this.data.split("&").map((t=>t.split("="))).map((t=>e("smoothly-tuple",{tuple:t})))}};export{S as smoothly_accordion,C as smoothly_accordion_item,A as smoothly_app,O as smoothly_app_demo,Mt as smoothly_app_room,Ot as smoothly_back_to_top,Nt as smoothly_burger,Dt as smoothly_button,Bt as smoothly_button_demo,Ht as smoothly_calendar,Vt as smoothly_checkbox,Xt as smoothly_dialog,Jt as smoothly_dialog_demo,po as smoothly_display,vo as smoothly_display_amount,wo as smoothly_display_demo,en as smoothly_filter,sn as smoothly_filter_input,Jn as smoothly_form,qn as smoothly_frame,ei as smoothly_icon,si as smoothly_icon_demo,ii as smoothly_input,ci as smoothly_input_clear,ui as smoothly_input_date,mi as smoothly_input_date_range,fi as smoothly_input_demo,bi as smoothly_input_file,vi as smoothly_input_month,ki as smoothly_input_select,Ci as smoothly_item,Ai as smoothly_notification,Ti as smoothly_notifier,Ri as smoothly_picker,Di as smoothly_picker_demo,Ui as smoothly_picker_menu,Fi as smoothly_picker_option,Wi as smoothly_popup,Zi as smoothly_quiet,$i as smoothly_radio,Ji as smoothly_radio_button,qi as smoothly_radio_button_item,el as smoothly_select_demo,sl as smoothly_skeleton,il as smoothly_slot_elements,rl as smoothly_slotted_elements,cl as smoothly_spinner,dl as smoothly_submit,yl as smoothly_summary,pl as smoothly_svg,gl as smoothly_tab,wl as smoothly_tab_switch,Sl as smoothly_table,Cl as smoothly_table_cell,Al as smoothly_table_demo,Ll as smoothly_table_demo_filtered,Dl as smoothly_table_expandable_cell,Bl as smoothly_table_expandable_row,jl as smoothly_table_footer,Ul as smoothly_table_header,Hl as smoothly_table_row,Wl as smoothly_table_testing,Zl as smoothly_theme_color,$l as smoothly_theme_color_variant,Jl as smoothly_theme_colors,ql as smoothly_toggle,er as smoothly_toggle_switch,sr as smoothly_trigger,nr as smoothly_tuple,ir as smoothly_urlencoded};
|
|
2
|
+
//# sourceMappingURL=p-ff8acb9b.entry.js.map
|