smoothly 1.2.1-alpha.61 → 1.2.1-alpha.62
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/loader.cjs.js +1 -1
- package/dist/cjs/{smoothly-app_99.cjs.entry.js → smoothly-app_98.cjs.entry.js} +302 -324
- package/dist/cjs/smoothly-app_98.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-color.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-country.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-checkbox-demo.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-submit.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
- package/dist/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/burger/style.css +5 -5
- package/dist/collection/components/button/demo/index.js +2 -2
- package/dist/collection/components/button/demo/index.js.map +1 -1
- package/dist/collection/components/calendar/index.js +2 -2
- package/dist/collection/components/checkbox/index.js +2 -2
- package/dist/collection/components/color/index.js +1 -1
- package/dist/collection/components/confirm/index.js +1 -1
- package/dist/collection/components/country/index.js +1 -1
- package/dist/collection/components/dialog/demo/index.js +1 -1
- package/dist/collection/components/dialog/index.js +1 -1
- package/dist/collection/components/display/demo/index.js +10 -10
- package/dist/collection/components/display/demo/json/index.js +1 -1
- package/dist/collection/components/display/index.js +3 -3
- package/dist/collection/components/display/json/index.js +1 -1
- package/dist/collection/components/display/json/object/index.js +2 -2
- package/dist/collection/components/display/json/object/key/index.js +1 -1
- package/dist/collection/components/display/json/primitive/index.js +1 -1
- package/dist/collection/components/filter/field/index.js +1 -1
- package/dist/collection/components/filter/index.js +3 -3
- package/dist/collection/components/filter/input/index.js +1 -1
- package/dist/collection/components/filter/select/index.js +1 -1
- package/dist/collection/components/filter/toggle/index.js +1 -1
- package/dist/collection/components/form/demo/all/index.js +2 -2
- package/dist/collection/components/form/demo/card/index.js +1 -1
- package/dist/collection/components/form/demo/controlled/index.js +1 -1
- package/dist/collection/components/form/demo/date/index.js +1 -1
- package/dist/collection/components/form/demo/date-range/index.js +1 -1
- package/dist/collection/components/form/demo/index.js +1 -1
- package/dist/collection/components/form/demo/login/index.js +1 -1
- package/dist/collection/components/form/demo/pet/index.js +2 -2
- package/dist/collection/components/form/demo/prices/index.js +1 -1
- package/dist/collection/components/form/demo/schedule/index.js +1 -1
- package/dist/collection/components/form/demo/transparent/index.js +1 -1
- package/dist/collection/components/form/demo/typed/index.js +1 -1
- package/dist/collection/components/form/index.js +1 -1
- package/dist/collection/components/icon/demo/index.js +1 -1
- package/dist/collection/components/icon/demo/index.js.map +1 -1
- package/dist/collection/components/icon/index.js +6 -7
- package/dist/collection/components/icon/index.js.map +1 -1
- package/dist/collection/components/icon/style.css +10 -11
- package/dist/collection/components/input/checkbox/demo/index.js +1 -1
- package/dist/collection/components/input/checkbox/index.js +1 -1
- package/dist/collection/components/input/clear/index.js +1 -1
- package/dist/collection/components/input/color/demo/index.js +1 -1
- package/dist/collection/components/input/color/index.js +2 -2
- package/dist/collection/components/input/date/index.js +3 -3
- package/dist/collection/components/input/date/range/index.js +2 -2
- package/dist/collection/components/input/demo/index.js +4 -4
- package/dist/collection/components/input/demo/price/index.js +1 -1
- package/dist/collection/components/input/demo/standard/index.js +1 -1
- package/dist/collection/components/input/edit/index.js +1 -1
- package/dist/collection/components/input/file/index.js +1 -1
- package/dist/collection/components/input/index.js +2 -2
- package/dist/collection/components/input/month/index.js +2 -2
- package/dist/collection/components/input/radio/index.js +1 -1
- package/dist/collection/components/input/radio/item/index.js +1 -1
- package/dist/collection/components/input/range/demo/index.js +1 -1
- package/dist/collection/components/input/range/index.js +4 -4
- package/dist/collection/components/input/reset/index.js +1 -1
- package/dist/collection/components/input/select/index.js +3 -3
- package/dist/collection/components/input/submit/index.js +1 -1
- package/dist/collection/components/item/index.js +1 -1
- package/dist/collection/components/label/index.js +2 -2
- package/dist/collection/components/lazy/index.js +1 -1
- package/dist/collection/components/load-more/index.js +1 -1
- package/dist/collection/components/modal/index.js +1 -1
- package/dist/collection/components/notification/index.js +1 -1
- package/dist/collection/components/notifier/index.js +1 -1
- package/dist/collection/components/spinner/index.js +2 -2
- package/dist/collection/components/submit/index.js +1 -1
- package/dist/collection/components/summary/index.js +1 -1
- package/dist/collection/components/table/body/index.js +1 -1
- package/dist/collection/components/table/cell/index.js +1 -1
- package/dist/collection/components/table/demo/colspan/index.js +1 -1
- package/dist/collection/components/table/demo/filler-row/index.js +1 -1
- package/dist/collection/components/table/demo/filtered/index.js +5 -5
- package/dist/collection/components/table/demo/group/index.js +1 -1
- package/dist/collection/components/table/demo/index.js +1 -1
- package/dist/collection/components/table/demo/nested/index.js +1 -1
- package/dist/collection/components/table/demo/nested/inner/index.js +1 -1
- package/dist/collection/components/table/demo/simple/simple.js +1 -1
- package/dist/collection/components/table/expandable/cell/index.js +1 -1
- package/dist/collection/components/table/expandable/row/index.js +1 -1
- package/dist/collection/components/table/filler-row/index.js +1 -1
- package/dist/collection/components/table/foot/index.js +1 -1
- package/dist/collection/components/table/group/index.js +1 -1
- package/dist/collection/components/table/head/index.js +1 -1
- package/dist/collection/components/table/index.js +1 -1
- package/dist/collection/components/table/row/index.js +1 -1
- package/dist/collection/components/tabs/demo/index.js +1 -1
- package/dist/collection/components/tabs/index.js +1 -1
- package/dist/collection/components/tabs/tab/index.js +1 -1
- package/dist/collection/components/theme/color/index.js +1 -1
- package/dist/collection/components/theme/demo/index.js +1 -1
- package/dist/collection/components/theme/guide/index.js +8 -8
- package/dist/collection/components/theme/picker/index.js +2 -2
- package/dist/collection/components/toggle-switch/demo/index.js +1 -1
- package/dist/collection/components/toggle-switch/index.js +1 -1
- package/dist/collection/components/toggle-switch/style.css +12 -20
- package/dist/collection/components/trigger/index.js +1 -1
- package/dist/collection/components/trigger/sink/index.js +1 -1
- package/dist/collection/components/trigger/source/index.js +1 -1
- package/dist/components/{p-e02f5eef.js → p-0156d1ac.js} +14 -14
- package/dist/components/{p-e02f5eef.js.map → p-0156d1ac.js.map} +1 -1
- package/dist/components/{p-42f2126d.js → p-08ff9613.js} +4 -4
- package/dist/components/{p-42f2126d.js.map → p-08ff9613.js.map} +1 -1
- package/dist/components/{p-e966bb8a.js → p-09f490eb.js} +4 -4
- package/dist/components/{p-e966bb8a.js.map → p-09f490eb.js.map} +1 -1
- package/dist/components/{p-8f0f82cd.js → p-0a200b85.js} +4 -4
- package/dist/components/{p-8f0f82cd.js.map → p-0a200b85.js.map} +1 -1
- package/dist/components/{p-23d9ecf6.js → p-0d09457c.js} +25 -25
- package/dist/components/{p-23d9ecf6.js.map → p-0d09457c.js.map} +1 -1
- package/dist/components/{p-7448315b.js → p-0d597c0f.js} +15 -15
- package/dist/components/p-0d597c0f.js.map +1 -0
- package/dist/components/{p-bfad759f.js → p-0ddbb10b.js} +11 -11
- package/dist/components/{p-bfad759f.js.map → p-0ddbb10b.js.map} +1 -1
- package/dist/components/{p-41400859.js → p-11e5cabe.js} +37 -37
- package/dist/components/{p-41400859.js.map → p-11e5cabe.js.map} +1 -1
- package/dist/components/{p-705b4afe.js → p-1512ddfa.js} +30 -30
- package/dist/components/{p-705b4afe.js.map → p-1512ddfa.js.map} +1 -1
- package/dist/components/{p-637d2964.js → p-188fb617.js} +4 -4
- package/dist/components/{p-637d2964.js.map → p-188fb617.js.map} +1 -1
- package/dist/components/{p-95abdb03.js → p-189a3517.js} +8 -8
- package/dist/components/{p-95abdb03.js.map → p-189a3517.js.map} +1 -1
- package/dist/components/{p-49f90785.js → p-1cc8de56.js} +8 -8
- package/dist/components/{p-49f90785.js.map → p-1cc8de56.js.map} +1 -1
- package/dist/components/{p-32acfe2f.js → p-1de0fb0e.js} +2 -2
- package/dist/components/{p-32acfe2f.js.map → p-1de0fb0e.js.map} +1 -1
- package/dist/components/{p-90cfcbfc.js → p-1fe82c92.js} +14 -14
- package/dist/components/{p-90cfcbfc.js.map → p-1fe82c92.js.map} +1 -1
- package/dist/components/{p-2020cb82.js → p-21601376.js} +2 -2
- package/dist/components/{p-2020cb82.js.map → p-21601376.js.map} +1 -1
- package/dist/components/{p-461ffea2.js → p-22a5c35b.js} +7 -7
- package/dist/components/{p-461ffea2.js.map → p-22a5c35b.js.map} +1 -1
- package/dist/components/{p-eafc7555.js → p-24934ba0.js} +4 -4
- package/dist/components/p-24934ba0.js.map +1 -0
- package/dist/components/{p-7add6ea0.js → p-27fead40.js} +14 -14
- package/dist/components/{p-7add6ea0.js.map → p-27fead40.js.map} +1 -1
- package/dist/components/{p-e15e5a5d.js → p-2b457d53.js} +2 -2
- package/dist/components/{p-e15e5a5d.js.map → p-2b457d53.js.map} +1 -1
- package/dist/components/{p-fe36713e.js → p-3091ab20.js} +2 -2
- package/dist/components/{p-fe36713e.js.map → p-3091ab20.js.map} +1 -1
- package/dist/components/{p-bc324b5e.js → p-3493b852.js} +2 -2
- package/dist/components/{p-bc324b5e.js.map → p-3493b852.js.map} +1 -1
- package/dist/components/{p-a820e0e8.js → p-37e8e0b4.js} +6 -6
- package/dist/components/{p-a820e0e8.js.map → p-37e8e0b4.js.map} +1 -1
- package/dist/components/{p-ba58a227.js → p-38ff4ddd.js} +5 -5
- package/dist/components/{p-ba58a227.js.map → p-38ff4ddd.js.map} +1 -1
- package/dist/components/p-3c1569b7.js +176 -0
- package/dist/components/{p-94cb3bb9.js.map → p-3c1569b7.js.map} +1 -1
- package/dist/components/{p-305c8221.js → p-3cdc6c8b.js} +13 -13
- package/dist/components/{p-305c8221.js.map → p-3cdc6c8b.js.map} +1 -1
- package/dist/components/{p-90f56544.js → p-3ef90e87.js} +15 -15
- package/dist/components/{p-90f56544.js.map → p-3ef90e87.js.map} +1 -1
- package/dist/components/{p-2137d036.js → p-41441353.js} +4 -4
- package/dist/components/{p-2137d036.js.map → p-41441353.js.map} +1 -1
- package/dist/components/p-43bad1c0.js +175 -0
- package/dist/components/{p-59f81a89.js.map → p-43bad1c0.js.map} +1 -1
- package/dist/components/{p-96841986.js → p-479909bd.js} +7 -7
- package/dist/components/{p-96841986.js.map → p-479909bd.js.map} +1 -1
- package/dist/components/{p-f0281d58.js → p-47e5df73.js} +3 -3
- package/dist/components/{p-f0281d58.js.map → p-47e5df73.js.map} +1 -1
- package/dist/components/{p-ab4db085.js → p-49d437f4.js} +4 -4
- package/dist/components/{p-ab4db085.js.map → p-49d437f4.js.map} +1 -1
- package/dist/components/{p-bc671400.js → p-52d1d5a1.js} +6 -6
- package/dist/components/{p-bc671400.js.map → p-52d1d5a1.js.map} +1 -1
- package/dist/components/{p-24488303.js → p-5c67d11d.js} +4 -4
- package/dist/components/{p-24488303.js.map → p-5c67d11d.js.map} +1 -1
- package/dist/components/p-5e2b1c67.js +57 -0
- package/dist/components/p-5e2b1c67.js.map +1 -0
- package/dist/components/{p-be11a354.js → p-619819ae.js} +4 -4
- package/dist/components/{p-be11a354.js.map → p-619819ae.js.map} +1 -1
- package/dist/components/{p-a7980d2c.js → p-62f513b3.js} +3 -3
- package/dist/components/{p-a7980d2c.js.map → p-62f513b3.js.map} +1 -1
- package/dist/components/{p-68b77df6.js → p-65801f7e.js} +5 -5
- package/dist/components/{p-68b77df6.js.map → p-65801f7e.js.map} +1 -1
- package/dist/components/{p-bae20465.js → p-67be9571.js} +3 -3
- package/dist/components/{p-bae20465.js.map → p-67be9571.js.map} +1 -1
- package/dist/components/{p-291b57ee.js → p-68f97107.js} +13 -13
- package/dist/components/{p-291b57ee.js.map → p-68f97107.js.map} +1 -1
- package/dist/components/{p-21ba8cd0.js → p-6abf2d7c.js} +13 -13
- package/dist/components/{p-21ba8cd0.js.map → p-6abf2d7c.js.map} +1 -1
- package/dist/components/{p-a698a6b7.js → p-6e6d0815.js} +5 -5
- package/dist/components/{p-a698a6b7.js.map → p-6e6d0815.js.map} +1 -1
- package/dist/components/p-75cf720d.js +123 -0
- package/dist/components/{p-58be554d.js.map → p-75cf720d.js.map} +1 -1
- package/dist/components/{p-2193cd07.js → p-76047d98.js} +2 -2
- package/dist/components/{p-2193cd07.js.map → p-76047d98.js.map} +1 -1
- package/dist/components/{p-433d4084.js → p-7c5d155e.js} +3 -3
- package/dist/components/{p-433d4084.js.map → p-7c5d155e.js.map} +1 -1
- package/dist/components/{p-04d6a4e3.js → p-7ea55b4d.js} +3 -3
- package/dist/components/{p-04d6a4e3.js.map → p-7ea55b4d.js.map} +1 -1
- package/dist/components/{p-3fbd90ff.js → p-81e4b071.js} +15 -15
- package/dist/components/{p-3fbd90ff.js.map → p-81e4b071.js.map} +1 -1
- package/dist/components/{p-cf4e20eb.js → p-85c2a76c.js} +3 -3
- package/dist/components/{p-cf4e20eb.js.map → p-85c2a76c.js.map} +1 -1
- package/dist/components/{p-259613c8.js → p-8789a504.js} +2 -2
- package/dist/components/{p-259613c8.js.map → p-8789a504.js.map} +1 -1
- package/dist/components/{p-7d3a1edc.js → p-8abb7216.js} +5 -5
- package/dist/components/{p-7d3a1edc.js.map → p-8abb7216.js.map} +1 -1
- package/dist/components/{p-bc67259a.js → p-8cd54408.js} +7 -7
- package/dist/components/{p-bc67259a.js.map → p-8cd54408.js.map} +1 -1
- package/dist/components/{p-6963d21b.js → p-8d3eea77.js} +2 -2
- package/dist/components/{p-6963d21b.js.map → p-8d3eea77.js.map} +1 -1
- package/dist/components/{p-271384e5.js → p-91ab8d87.js} +2 -2
- package/dist/components/{p-271384e5.js.map → p-91ab8d87.js.map} +1 -1
- package/dist/components/{p-db95d66d.js → p-92144b1e.js} +5 -5
- package/dist/components/{p-db95d66d.js.map → p-92144b1e.js.map} +1 -1
- package/dist/components/{p-d305739c.js → p-9832d3b5.js} +3 -3
- package/dist/components/{p-d305739c.js.map → p-9832d3b5.js.map} +1 -1
- package/dist/components/{p-04a36eba.js → p-994fd1b4.js} +4 -4
- package/dist/components/{p-04a36eba.js.map → p-994fd1b4.js.map} +1 -1
- package/dist/components/{p-48c1e6f9.js → p-9d7780cb.js} +3 -3
- package/dist/components/{p-48c1e6f9.js.map → p-9d7780cb.js.map} +1 -1
- package/dist/components/{p-256804de.js → p-9e2029f7.js} +13 -13
- package/dist/components/{p-256804de.js.map → p-9e2029f7.js.map} +1 -1
- package/dist/components/{p-2b3160e5.js → p-a10dfe73.js} +2 -2
- package/dist/components/{p-2b3160e5.js.map → p-a10dfe73.js.map} +1 -1
- package/dist/components/{p-dd071666.js → p-a12494c3.js} +2 -2
- package/dist/components/{p-dd071666.js.map → p-a12494c3.js.map} +1 -1
- package/dist/components/p-a129dc60.js +73 -0
- package/dist/components/p-a129dc60.js.map +1 -0
- package/dist/components/p-a141fe7c.js +238 -0
- package/dist/components/{p-c57b7011.js.map → p-a141fe7c.js.map} +1 -1
- package/dist/components/{p-0f1adb3d.js → p-a4d10377.js} +2 -2
- package/dist/components/{p-0f1adb3d.js.map → p-a4d10377.js.map} +1 -1
- package/dist/components/{p-bf12e671.js → p-a669dad9.js} +11 -11
- package/dist/components/{p-bf12e671.js.map → p-a669dad9.js.map} +1 -1
- package/dist/components/{p-2faaedc8.js → p-ab1e1709.js} +7 -7
- package/dist/components/{p-2faaedc8.js.map → p-ab1e1709.js.map} +1 -1
- package/dist/components/{p-2bc57b0f.js → p-ab2e4633.js} +8 -8
- package/dist/components/{p-2bc57b0f.js.map → p-ab2e4633.js.map} +1 -1
- package/dist/components/{p-e12d35bb.js → p-abdbd635.js} +4 -4
- package/dist/components/{p-e12d35bb.js.map → p-abdbd635.js.map} +1 -1
- package/dist/components/p-abf172db.js +45 -0
- package/dist/components/{p-73e309ae.js.map → p-abf172db.js.map} +1 -1
- package/dist/components/{p-438a59fc.js → p-b4db4967.js} +14 -14
- package/dist/components/{p-438a59fc.js.map → p-b4db4967.js.map} +1 -1
- package/dist/components/{p-b92f7f7f.js → p-b84d424b.js} +12 -12
- package/dist/components/{p-b92f7f7f.js.map → p-b84d424b.js.map} +1 -1
- package/dist/components/{p-121a3877.js → p-b89242b5.js} +3 -3
- package/dist/components/p-b89242b5.js.map +1 -0
- package/dist/components/{p-b22a5b41.js → p-b9872a14.js} +2 -2
- package/dist/components/{p-b22a5b41.js.map → p-b9872a14.js.map} +1 -1
- package/dist/components/{p-0a6f27a2.js → p-b99e9582.js} +2 -2
- package/dist/components/{p-0a6f27a2.js.map → p-b99e9582.js.map} +1 -1
- package/dist/components/{p-cdeece09.js → p-bd00e096.js} +2 -2
- package/dist/components/{p-cdeece09.js.map → p-bd00e096.js.map} +1 -1
- package/dist/components/{p-5cea42bb.js → p-bd902bf1.js} +2 -2
- package/dist/components/{p-5cea42bb.js.map → p-bd902bf1.js.map} +1 -1
- package/dist/components/{p-fba7e056.js → p-c9904619.js} +4 -4
- package/dist/components/{p-fba7e056.js.map → p-c9904619.js.map} +1 -1
- package/dist/components/{p-941cca12.js → p-cbffcc9d.js} +9 -9
- package/dist/components/{p-941cca12.js.map → p-cbffcc9d.js.map} +1 -1
- package/dist/components/{p-570e8262.js → p-cce0e89e.js} +3 -3
- package/dist/components/{p-570e8262.js.map → p-cce0e89e.js.map} +1 -1
- package/dist/components/{p-7df6aaed.js → p-d3888e8f.js} +3 -3
- package/dist/components/{p-7df6aaed.js.map → p-d3888e8f.js.map} +1 -1
- package/dist/components/{p-6aa25ab9.js → p-d3bc4725.js} +15 -15
- package/dist/components/{p-6aa25ab9.js.map → p-d3bc4725.js.map} +1 -1
- package/dist/components/{p-ebe0f3b2.js → p-d4f2eec1.js} +4 -4
- package/dist/components/{p-ebe0f3b2.js.map → p-d4f2eec1.js.map} +1 -1
- package/dist/components/{p-853367ff.js → p-d77cf57f.js} +7 -7
- package/dist/components/{p-853367ff.js.map → p-d77cf57f.js.map} +1 -1
- package/dist/components/{p-b4bb3e74.js → p-d9989605.js} +2 -2
- package/dist/components/{p-b4bb3e74.js.map → p-d9989605.js.map} +1 -1
- package/dist/components/{p-5867f2a1.js → p-d9d1453e.js} +2 -2
- package/dist/components/{p-5867f2a1.js.map → p-d9d1453e.js.map} +1 -1
- package/dist/components/{p-d69de688.js → p-e28192a5.js} +3 -3
- package/dist/components/{p-d69de688.js.map → p-e28192a5.js.map} +1 -1
- package/dist/components/{p-65b429d4.js → p-e55b30b0.js} +15 -15
- package/dist/components/{p-65b429d4.js.map → p-e55b30b0.js.map} +1 -1
- package/dist/components/{p-90642fb7.js → p-ea7e5a85.js} +6 -6
- package/dist/components/{p-90642fb7.js.map → p-ea7e5a85.js.map} +1 -1
- package/dist/components/{p-6ea4a4b6.js → p-ecb1c83a.js} +43 -43
- package/dist/components/{p-6ea4a4b6.js.map → p-ecb1c83a.js.map} +1 -1
- package/dist/components/{p-8918ad9d.js → p-ecbbfbcd.js} +4 -4
- package/dist/components/{p-8918ad9d.js.map → p-ecbbfbcd.js.map} +1 -1
- package/dist/components/{p-bb9a9d24.js → p-f7f92307.js} +7 -7
- package/dist/components/{p-bb9a9d24.js.map → p-f7f92307.js.map} +1 -1
- package/dist/components/{p-e1a977af.js → p-f89d6ab1.js} +14 -14
- package/dist/components/{p-e1a977af.js.map → p-f89d6ab1.js.map} +1 -1
- package/dist/components/{p-a398630f.js → p-fa1bb361.js} +10 -10
- package/dist/components/{p-a398630f.js.map → p-fa1bb361.js.map} +1 -1
- package/dist/components/{p-6e648f09.js → p-fa2bcda4.js} +9 -9
- package/dist/components/{p-6e648f09.js.map → p-fa2bcda4.js.map} +1 -1
- package/dist/components/{p-617e63f4.js → p-fc9f4cae.js} +28 -28
- package/dist/components/{p-617e63f4.js.map → p-fc9f4cae.js.map} +1 -1
- package/dist/components/{p-04f778b7.js → p-fe705776.js} +13 -13
- package/dist/components/{p-04f778b7.js.map → p-fe705776.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +191 -197
- package/dist/components/smoothly-app-demo.js.map +1 -1
- package/dist/components/smoothly-app-room.js +1 -1
- package/dist/components/smoothly-app.js +1 -1
- package/dist/components/smoothly-back-to-top.js +1 -1
- package/dist/components/smoothly-burger.js +1 -1
- package/dist/components/smoothly-button-confirm.js +1 -1
- package/dist/components/smoothly-button-demo.js +1 -1
- package/dist/components/smoothly-calendar.js +1 -1
- package/dist/components/smoothly-checkbox.js +3 -3
- package/dist/components/smoothly-color.js +1 -1
- package/dist/components/smoothly-country.js +1 -1
- package/dist/components/smoothly-dialog-demo.js +1 -1
- package/dist/components/smoothly-dialog.js +1 -1
- package/dist/components/smoothly-display-demo-json.js +1 -1
- package/dist/components/smoothly-display-demo.js +1 -1
- package/dist/components/smoothly-display-json-object.js +1 -1
- package/dist/components/smoothly-display-json-primitive.js +1 -1
- package/dist/components/smoothly-display-json-record-key.js +1 -1
- package/dist/components/smoothly-display-json.js +1 -1
- package/dist/components/smoothly-display.js +1 -1
- package/dist/components/smoothly-filter-field.js +1 -1
- package/dist/components/smoothly-filter-input.js +1 -1
- package/dist/components/smoothly-filter-select.js +1 -1
- package/dist/components/smoothly-filter-toggle.js +1 -1
- package/dist/components/smoothly-filter.js +1 -1
- package/dist/components/smoothly-form-demo-all.js +1 -1
- package/dist/components/smoothly-form-demo-card.js +1 -1
- package/dist/components/smoothly-form-demo-controlled.js +1 -1
- package/dist/components/smoothly-form-demo-date-range.js +1 -1
- package/dist/components/smoothly-form-demo-date.js +1 -1
- package/dist/components/smoothly-form-demo-login.js +1 -1
- package/dist/components/smoothly-form-demo-pet.js +1 -1
- package/dist/components/smoothly-form-demo-prices.js +1 -1
- package/dist/components/smoothly-form-demo-schedule.js +1 -1
- package/dist/components/smoothly-form-demo-transparent.js +1 -1
- package/dist/components/smoothly-form-demo-typed.js +1 -1
- package/dist/components/smoothly-form-demo.js +1 -1
- package/dist/components/smoothly-form.js +1 -1
- package/dist/components/smoothly-icon-demo.js +1 -1
- package/dist/components/smoothly-icon.js +1 -1
- package/dist/components/smoothly-input-checkbox-demo.js +28 -28
- package/dist/components/smoothly-input-checkbox.js +1 -1
- package/dist/components/smoothly-input-clear.js +1 -1
- package/dist/components/smoothly-input-color-demo.js +1 -1
- package/dist/components/smoothly-input-color.js +1 -1
- package/dist/components/smoothly-input-date-range.js +1 -1
- package/dist/components/smoothly-input-date.js +1 -1
- package/dist/components/smoothly-input-demo-standard.js +1 -1
- package/dist/components/smoothly-input-demo.js +1 -1
- package/dist/components/smoothly-input-edit.js +1 -1
- package/dist/components/smoothly-input-file.js +1 -1
- package/dist/components/smoothly-input-month.js +1 -1
- package/dist/components/smoothly-input-price-demo.js +1 -1
- package/dist/components/smoothly-input-radio-item.js +1 -1
- package/dist/components/smoothly-input-radio.js +1 -1
- package/dist/components/smoothly-input-range-demo.js +1 -1
- package/dist/components/smoothly-input-range.js +1 -1
- package/dist/components/smoothly-input-reset.js +1 -1
- package/dist/components/smoothly-input-select.js +1 -1
- package/dist/components/smoothly-input-submit.js +1 -1
- package/dist/components/smoothly-input.js +1 -1
- package/dist/components/smoothly-item.js +1 -1
- package/dist/components/smoothly-label.js +1 -1
- package/dist/components/smoothly-lazy.js +1 -1
- package/dist/components/smoothly-load-more.js +1 -1
- package/dist/components/smoothly-modal.js +1 -1
- package/dist/components/smoothly-notification.js +1 -1
- package/dist/components/smoothly-notifier.js +1 -1
- package/dist/components/smoothly-spinner.js +1 -1
- package/dist/components/smoothly-submit.js +1 -1
- package/dist/components/smoothly-summary.js +1 -1
- package/dist/components/smoothly-tab.js +1 -1
- package/dist/components/smoothly-table-body.js +1 -1
- package/dist/components/smoothly-table-cell.js +1 -1
- package/dist/components/smoothly-table-demo-colspan.js +1 -1
- package/dist/components/smoothly-table-demo-filler-row.js +1 -1
- package/dist/components/smoothly-table-demo-filtered.js +1 -1
- package/dist/components/smoothly-table-demo-group.js +1 -1
- package/dist/components/smoothly-table-demo-nested-inner.js +1 -1
- package/dist/components/smoothly-table-demo-nested.js +1 -1
- package/dist/components/smoothly-table-demo-simple.js +1 -1
- package/dist/components/smoothly-table-demo.js +1 -1
- package/dist/components/smoothly-table-expandable-cell.js +1 -1
- package/dist/components/smoothly-table-expandable-row.js +1 -1
- package/dist/components/smoothly-table-filler-row.js +1 -1
- package/dist/components/smoothly-table-foot.js +1 -1
- package/dist/components/smoothly-table-head.js +1 -1
- package/dist/components/smoothly-table-row-group.js +1 -1
- package/dist/components/smoothly-table-row.js +1 -1
- package/dist/components/smoothly-table.js +1 -1
- package/dist/components/smoothly-tabs-demo.js +1 -1
- package/dist/components/smoothly-tabs.js +1 -1
- package/dist/components/smoothly-theme-color.js +1 -1
- package/dist/components/smoothly-theme-colors.js +1 -1
- package/dist/components/smoothly-theme-demo.js +1 -1
- package/dist/components/smoothly-theme-guide.js +1 -1
- package/dist/components/smoothly-theme-picker.js +1 -1
- package/dist/components/smoothly-toggle-switch-demo.js +1 -1
- package/dist/components/smoothly-toggle-switch.js +1 -1
- package/dist/components/smoothly-trigger-sink.js +1 -1
- package/dist/components/smoothly-trigger-source.js +1 -1
- package/dist/components/smoothly-trigger.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{smoothly-app_99.entry.js → smoothly-app_98.entry.js} +303 -324
- package/dist/esm/smoothly-app_98.entry.js.map +1 -0
- package/dist/esm/smoothly-checkbox.entry.js +2 -2
- package/dist/esm/smoothly-color.entry.js +1 -1
- package/dist/esm/smoothly-country.entry.js +1 -1
- package/dist/esm/smoothly-input-checkbox-demo.entry.js +1 -1
- package/dist/esm/smoothly-submit.entry.js +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
- package/dist/esm/smoothly-trigger-source.entry.js +1 -1
- package/dist/esm/smoothly.js +1 -1
- package/dist/smoothly/{p-37d77190.entry.js → p-018e3f3c.entry.js} +2 -2
- package/dist/smoothly/{p-aef275e0.entry.js → p-0c10da7c.entry.js} +2 -2
- package/dist/smoothly/{p-534c56da.entry.js → p-2f60a07e.entry.js} +2 -2
- package/dist/smoothly/{p-8a7f2913.entry.js → p-69c6102d.entry.js} +2 -2
- package/dist/smoothly/{p-faea4d1c.entry.js → p-8a1d7506.entry.js} +2 -2
- package/dist/smoothly/p-b803a3c2.entry.js +2 -0
- package/dist/smoothly/p-b803a3c2.entry.js.map +1 -0
- package/dist/smoothly/{p-963b72df.entry.js → p-cdb8913e.entry.js} +2 -2
- package/dist/smoothly/p-d3024318.entry.js +2 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/smoothly/smoothly.esm.js.map +1 -1
- package/dist/types/components/icon/demo/index.d.ts +1 -1
- package/dist/types/components/icon/index.d.ts +1 -1
- package/dist/types/components.d.ts +2 -25
- package/package.json +1 -1
- package/dist/cjs/smoothly-app_99.cjs.entry.js.map +0 -1
- package/dist/collection/components/toggle/index.js +0 -129
- package/dist/collection/components/toggle/index.js.map +0 -1
- package/dist/collection/components/toggle/style.css +0 -36
- package/dist/components/p-121a3877.js.map +0 -1
- package/dist/components/p-310690f3.js +0 -47
- package/dist/components/p-310690f3.js.map +0 -1
- package/dist/components/p-58be554d.js +0 -123
- package/dist/components/p-59f81a89.js +0 -175
- package/dist/components/p-73e309ae.js +0 -45
- package/dist/components/p-7448315b.js.map +0 -1
- package/dist/components/p-94cb3bb9.js +0 -176
- package/dist/components/p-9e758101.js +0 -57
- package/dist/components/p-9e758101.js.map +0 -1
- package/dist/components/p-bad4348e.js +0 -79
- package/dist/components/p-bad4348e.js.map +0 -1
- package/dist/components/p-c57b7011.js +0 -238
- package/dist/components/p-eafc7555.js.map +0 -1
- package/dist/components/smoothly-toggle.d.ts +0 -11
- package/dist/components/smoothly-toggle.js +0 -8
- package/dist/components/smoothly-toggle.js.map +0 -1
- package/dist/esm/smoothly-app_99.entry.js.map +0 -1
- package/dist/smoothly/p-0d394534.entry.js +0 -2
- package/dist/smoothly/p-0d394534.entry.js.map +0 -1
- package/dist/smoothly/p-cbcf6951.entry.js +0 -2
- package/dist/types/components/toggle/index.d.ts +0 -9
- /package/dist/smoothly/{p-37d77190.entry.js.map → p-018e3f3c.entry.js.map} +0 -0
- /package/dist/smoothly/{p-aef275e0.entry.js.map → p-0c10da7c.entry.js.map} +0 -0
- /package/dist/smoothly/{p-534c56da.entry.js.map → p-2f60a07e.entry.js.map} +0 -0
- /package/dist/smoothly/{p-8a7f2913.entry.js.map → p-69c6102d.entry.js.map} +0 -0
- /package/dist/smoothly/{p-faea4d1c.entry.js.map → p-8a1d7506.entry.js.map} +0 -0
- /package/dist/smoothly/{p-963b72df.entry.js.map → p-cdb8913e.entry.js.map} +0 -0
- /package/dist/smoothly/{p-cbcf6951.entry.js.map → p-d3024318.entry.js.map} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as e,c as o,H as s,g as i,F as a}from"./p-ad674a4e.js";import{a as n,T as l,C as r,i as c,r as h,D as d,f as m,R as u,M as y,I as b}from"./p-5870d1ad.js";import{B as f,S as p}from"./p-cc5143d2.js";import{T as g,L as k,a as v,D as w,c as x,d as S,C,o as z,s as j,b as _,e as I,n as T,A as O}from"./p-34d144e8.js";import{N as L}from"./p-ef01331e.js";import{f as A}from"./p-2257be8c.js";import"./p-ef377b79.js";function M(t){return new E(t??"any")}class E extends g{class="any";is=t=>t!=undefined}function D(){const t=navigator.language;return k.is(t)?t:v.is(t)?k.toLocale(t):undefined}const $='smoothly-app{--header-height:5rem;display:block}smoothly-app>smoothly-notifier>main{height:calc(100dvh - var(--header-height))}smoothly-app[hidden]{display:none}smoothly-app>smoothly-notifier{height:100%;background:none}header:has(smoothly-burger[visible])>nav>ul smoothly-app-room{width:100%;height:4em}smoothly-app>smoothly-notifier>header{position:sticky;top:0;z-index:5;width:100%;height:var(--header-height);display:flex;justify-content:space-between;box-sizing:border-box;align-items:center;box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade))}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:not([label])>smoothly-notifier>header>h1{display:none}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{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;align-items:center;height:100%;margin-left:auto;margin-right:1rem}smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-end"]{width:fit-content;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:fit-content;max-width:100%;top:100%;position:absolute;max-height:calc(100dvh - var(--header-height));overflow-y:scroll;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;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}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container>*:last-child{margin-bottom:1em}}smoothly-app:not([menu-open])>smoothly-notifier>header>nav{display:none}smoothly-app>smoothly-notifier>main>div{overflow-y:scroll;height:100%}';const R=$;const P=class{constructor(e){t(this,e);this.rooms={};this.label=undefined;this.color=undefined;this.home=undefined;this.menuOpen=false;this.selected=undefined}async componentDidRender(){var t;if(!this.selected&&!window.location.search)(t=this.home&&this.rooms[this.home]?this.rooms[this.home]:Object.values(this.rooms).find((t=>!(t===null||t===void 0?void 0:t.element.disabled))))===null||t===void 0?void 0:t.element.setSelected(true)}async 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());requestAnimationFrame((()=>{if(this.mainElement&&e)this.mainElement.replaceChildren(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&&!t.composedPath().some((t=>t==this.burgerElement||t==this.navElement)))this.menuOpen=false}render(){return e("smoothly-notifier",{key:"ca8596edab7ca03d2790ac426dae3ed2b0a016e5"},e("header",{key:"d1d3c3b9aadde6e8ac48f6e2a0ed1dbda13efaca",color:this.color},e("h1",{key:"299cec593915416e4cbb909a9184863a5d873203"},e("a",{key:"97c7829f4faf239c853eaf96355ebc40871e9827",href:""},this.label)),e("slot",{key:"199d31b149daaeb1cd9b5323dba192dda646ecb8",name:"header"}),e("nav",{key:"a4b4229f4a441c44c11fc191f3148c28bb0bfb77",ref:t=>this.navElement=t},e("ul",{key:"83d549969e763e30e1b9b7f93319588637dea8a8"},e("div",{key:"2e668a0eca12985f4c134ba47b04eae2888dd487",class:"nav-start-container"},e("slot",{key:"2b38080d9a134492fa81c2d902331fb9c7bb6fbb",name:"nav-start"})),e("slot",{key:"7a4264888094eeafebff0f1b608a440f721c7d80"}),e("div",{key:"7db0a3a05fdb6e8c8c22cafb01aeb1d7099a6f8b",class:"nav-end-container"},e("slot",{key:"7edaccd0522fdece150fd91d5dd8bfa8f7399b71",name:"nav-end"})))),e("smoothly-burger",{key:"5228e136cd1af7109fcc6556a9745c3db170a4c6",ref:t=>this.burgerElement=t,open:this.menuOpen,onSmoothlyNavStatus:t=>this.burgerStatusHandler(t),onSmoothlyVisibleStatus:t=>this.burgerVisibilityHandler(t)})),e("main",{key:"13e58905f69f051662d77529c7f5bedc7fb82572",ref:t=>this.mainElement=t}))}static get watchers(){return{selected:["selectedChanged"]}}};P.style=R;const F=class{constructor(e){t(this,e);this.baseUrl=undefined}render(){return e("smoothly-app",{key:"aa798117a543b094b87cd4f794e41c2c62eedcf5",color:"dark",label:"Smoothly Demo",home:"/root",ref:t=>this.app=t},e("smoothly-trigger",{key:"8576545a5f1408fe488c80ca5a0856650d3d5b49",slot:"nav-start",type:"link",name:"logout"},e("smoothly-icon",{key:"1a9947b787c40e5d5b12c8477f1c4ffe393e0474",toolTip:"Log out",name:"log-out",size:"medium"})),e("smoothly-app-room",{key:"9653a86cd2f346ffc301960432f8eeaf690e0e70",path:"/root",label:"root"},e("smoothly-theme-demo",{key:"fd749cb147c01fb958ed096d077a029de1f26697"})),e("smoothly-app-room",{key:"727ba15cef2a69ab89c28f552d44990a6768dae6",path:"/links",label:"Links"},e("smoothly-input",{key:"44b3a95f3ef5c88763f4615198361660756066c6",type:"text"},"Default"),e("div",{key:"ec9caa80e9960bcaa73944459f6f04bd5293c67d",style:{padding:"1em",maxWidth:"12em"}},e("smoothly-button",{key:"1763ca643449adf56a5709b716adb8f2a9af898c",fill:"solid",color:"danger",link:"https://google.com"},"open"),e("smoothly-button",{key:"090a3ef85119ac1fd24e96971077d386e4b431eb",fill:"solid",color:"danger",link:"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",type:"download"},"download"),e("smoothly-button",{key:"075b6d63e37e741003b83a4ed5a0852f5bdb32ea",fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),e("smoothly-button",{key:"67a4e3426af4c0195af3958534ebe696e79d7f64",disabled:true,fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),e("smoothly-button",{key:"469b300005825ea47e9ff2b6dd1546c1f240d320",type:"link",fill:"clear",color:"danger",onClick:()=>alert("clicked")},"action link"))),e("smoothly-app-room",{key:"fa597eed63894a2b79230662218b4b4bb0a4123e",path:"/form",label:"Form"},e("smoothly-form-demo",{key:"c3c3fc18571c6c7749ebe336c101b3c6958c6ce5"})),e("smoothly-app-room",{key:"e74f975d2821661b1252a8d39abce539474b91d6",path:"/input",label:"Input"},e("smoothly-input-demo",{key:"2622b3979883e8b22ee24549e088235c4def37f7"})),e("smoothly-app-room",{key:"281e375aa7899aca4a72b1f28e5c35dba5afe47b",path:"/button",label:"Button"},e("smoothly-button-demo",{key:"1aa500d67a2db7debedcd51a1dab5540b7e76839"})),e("smoothly-app-room",{key:"52cca01be8d244ba27a9a0de84a7e9f6b38de862",path:"/dialog",label:"Dialog"},e("smoothly-dialog-demo",{key:"2ead6d7fdbccfac18eaca281324a022bb2476683"})),e("smoothly-app-room",{key:"1293f71f581304e67b7b23fd3ef7ea5b5358672a",path:"/display",label:"Display",icon:"eye-outline"},e("smoothly-display-demo",{key:"081a6770103ae7e31f862d2431932a23e3c44883"})),e("smoothly-app-room",{key:"edf9fc7b7c778e319f7072a06604962e9a887d45",path:"/table",label:"Table"},e("smoothly-table-demo",{key:"d4fd3e790dbff9761b7900611870c4de8ba3463b"})),e("smoothly-app-room",{key:"def6a10fe0cb4a2bb2c660a7a08d92f66bdefaf7",path:"/tabs",label:"Tabs",slot:"nav-end"},e("smoothly-tabs-demo",{key:"a612be377600630739c788f3e76978653b5750fd"})),e("smoothly-app-room",{key:"4b37f6e8cc32b66eed31354be28c8979e5a44872",path:"/icon",label:"Icon",content:e("smoothly-icon-demo",null),slot:"nav-end"}),e("smoothly-app-room",{key:"fc40658c71e321e7cd65fc4c0583a2799809cca3",path:"/redirect",label:"Redirect",slot:"nav-end"},e("smoothly-button",{key:"b4475ca298c2fb6598dd75c4a16a0bd47c234fa9",type:"link",link:"/input"},"To input"),e("smoothly-button",{key:"402887f2f0c5477ce46105be52197f5073a2d5c6",type:"link",link:"../button"},"To button"),e("smoothly-button",{key:"cf2d2d8c4936eecc243cf121f5d40bd94d1006f6",type:"link",link:new URL("/hidden",window.location.origin).href},"To hidden"),e("smoothly-button",{key:"e8354e2f81be7ec324ae734784022acdb02162cc",type:"link",link:"/redirect"},"To redirect"),e("smoothly-button",{key:"62411c9f8b6d9bb88ebef3fe531e912d2b27f97e",type:"link",link:"nested"},"To redirect nested, relative path")),e("smoothly-app-room",{key:"6b7fe4565b60a0f76c36ade149536daca1eff5b0",path:"/hidden"},e("p",{key:"c87cebb277d5463d07165e3fb7b8068dc317735e"},"hello world!")),e("smoothly-app-room",{key:"9a06e5a59ff5ff8db9b465826653f26f477ebdb2",path:"/redirect/nested"},"this is a nested room"))}};var H=class{constructor(t,e,o,s,i,a){this.type=3;this.name="";this.prefix="";this.value="";this.suffix="";this.modifier=3;this.type=t;this.name=e;this.prefix=o;this.value=s;this.suffix=i;this.modifier=a}hasCustomName(){return this.name!==""&&typeof this.name!=="number"}};var N=/[$_\p{ID_Start}]/u;var Y=/[$_\u200C\u200D\p{ID_Continue}]/u;var U=".*";function W(t,e){return(e?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(t)}function B(t,e=false){const o=[];let s=0;while(s<t.length){const i=t[s];const a=function(i){if(!e)throw new TypeError(i);o.push({type:"INVALID_CHAR",index:s,value:t[s++]})};if(i==="*"){o.push({type:"ASTERISK",index:s,value:t[s++]});continue}if(i==="+"||i==="?"){o.push({type:"OTHER_MODIFIER",index:s,value:t[s++]});continue}if(i==="\\"){o.push({type:"ESCAPED_CHAR",index:s++,value:t[s++]});continue}if(i==="{"){o.push({type:"OPEN",index:s,value:t[s++]});continue}if(i==="}"){o.push({type:"CLOSE",index:s,value:t[s++]});continue}if(i===":"){let e="";let i=s+1;while(i<t.length){const o=t.substr(i,1);if(i===s+1&&N.test(o)||i!==s+1&&Y.test(o)){e+=t[i++];continue}break}if(!e){a(`Missing parameter name at ${s}`);continue}o.push({type:"NAME",index:s,value:e});s=i;continue}if(i==="("){let e=1;let i="";let n=s+1;let l=false;if(t[n]==="?"){a(`Pattern cannot start with "?" at ${n}`);continue}while(n<t.length){if(!W(t[n],false)){a(`Invalid character '${t[n]}' at ${n}.`);l=true;break}if(t[n]==="\\"){i+=t[n++]+t[n++];continue}if(t[n]===")"){e--;if(e===0){n++;break}}else if(t[n]==="("){e++;if(t[n+1]!=="?"){a(`Capturing groups are not allowed at ${n}`);l=true;break}}i+=t[n++]}if(l){continue}if(e){a(`Unbalanced pattern at ${s}`);continue}if(!i){a(`Missing pattern at ${s}`);continue}o.push({type:"REGEX",index:s,value:i});s=n;continue}o.push({type:"CHAR",index:s,value:t[s++]})}o.push({type:"END",index:s,value:""});return o}function V(t,e={}){const o=B(t);e.delimiter??(e.delimiter="/#?");e.prefixes??(e.prefixes="./");const s=`[^${G(e.delimiter)}]+?`;const i=[];let a=0;let n=0;let l=new Set;const r=t=>{if(n<o.length&&o[n].type===t)return o[n++].value};const c=()=>r("OTHER_MODIFIER")??r("ASTERISK");const h=t=>{const e=r(t);if(e!==void 0)return e;const{type:s,index:i}=o[n];throw new TypeError(`Unexpected ${s} at ${i}, expected ${t}`)};const d=()=>{let t="";let e;while(e=r("CHAR")??r("ESCAPED_CHAR")){t+=e}return t};const m=t=>t;const u=e.encodePart||m;let y="";const b=t=>{y+=t};const f=()=>{if(!y.length){return}i.push(new H(3,"","",u(y),"",3));y=""};const p=(t,e,o,n,r)=>{let c=3;switch(r){case"?":c=1;break;case"*":c=0;break;case"+":c=2;break}if(!e&&!o&&c===3){b(t);return}f();if(!e&&!o){if(!t){return}i.push(new H(3,"","",u(t),"",c));return}let h;if(!o){h=s}else if(o==="*"){h=U}else{h=o}let d=2;if(h===s){d=1;h=""}else if(h===U){d=0;h=""}let m;if(e){m=e}else if(o){m=a++}if(l.has(m)){throw new TypeError(`Duplicate name '${m}'.`)}l.add(m);i.push(new H(d,m,u(t),h,u(n),c))};while(n<o.length){const t=r("CHAR");const o=r("NAME");let s=r("REGEX");if(!o&&!s){s=r("ASTERISK")}if(o||s){let i=t??"";if(e.prefixes.indexOf(i)===-1){b(i);i=""}f();let a=c();p(i,o,s,"",a);continue}const i=t??r("ESCAPED_CHAR");if(i){b(i);continue}const a=r("OPEN");if(a){const t=d();const e=r("NAME");let o=r("REGEX");if(!e&&!o){o=r("ASTERISK")}const s=d();h("CLOSE");const i=c();p(t,e,o,s,i);continue}f();h("END")}return i}function G(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function K(t){return t&&t.ignoreCase?"ui":"u"}function Z(t,e,o){return X(V(t,o),e,o)}function q(t){switch(t){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}function X(t,e,o={}){o.delimiter??(o.delimiter="/#?");o.prefixes??(o.prefixes="./");o.sensitive??(o.sensitive=false);o.strict??(o.strict=false);o.end??(o.end=true);o.start??(o.start=true);o.endsWith="";let s=o.start?"^":"";for(const i of t){if(i.type===3){if(i.modifier===3){s+=G(i.value)}else{s+=`(?:${G(i.value)})${q(i.modifier)}`}continue}if(e)e.push(i.name);const t=`[^${G(o.delimiter)}]+?`;let a=i.value;if(i.type===1)a=t;else if(i.type===0)a=U;if(!i.prefix.length&&!i.suffix.length){if(i.modifier===3||i.modifier===1){s+=`(${a})${q(i.modifier)}`}else{s+=`((?:${a})${q(i.modifier)})`}continue}if(i.modifier===3||i.modifier===1){s+=`(?:${G(i.prefix)}(${a})${G(i.suffix)})`;s+=q(i.modifier);continue}s+=`(?:${G(i.prefix)}`;s+=`((?:${a})(?:`;s+=G(i.suffix);s+=G(i.prefix);s+=`(?:${a}))*)${G(i.suffix)})`;if(i.modifier===0){s+="?"}}const i=`[${G(o.endsWith)}]|$`;const a=`[${G(o.delimiter)}]`;if(o.end){if(!o.strict){s+=`${a}?`}if(!o.endsWith.length){s+="$"}else{s+=`(?=${i})`}return new RegExp(s,K(o))}if(!o.strict){s+=`(?:${a}(?=${i}))?`}let n=false;if(t.length){const e=t[t.length-1];if(e.type===3&&e.modifier===3){n=o.delimiter.indexOf(e)>-1}}if(!n){s+=`(?=${a}|${i})`}return new RegExp(s,K(o))}var J={delimiter:"",prefixes:"",sensitive:true,strict:true};var Q={delimiter:".",prefixes:"",sensitive:true,strict:true};var tt={delimiter:"/",prefixes:"/",sensitive:true,strict:true};function et(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 ot(t,e){if(t.startsWith(e)){return t.substring(e.length,t.length)}return t}function st(t,e){if(t.endsWith(e)){return t.substr(0,t.length-e.length)}return t}function it(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 at=["ftp","file","http","https","ws","wss"];function nt(t){if(!t){return true}for(const e of at){if(t.test(e)){return true}}return false}function lt(t,e){t=ot(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 rt(t,e){t=ot(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 ct(t,e){if(e||t===""){return t}if(it(t)){return vt(t)}else{return kt(t)}}function ht(t,e){if(e||t===""){return t}const o=new URL("https://example.com");o.password=t;return o.password}function dt(t,e){if(e||t===""){return t}const o=new URL("https://example.com");o.username=t;return o.username}function mt(t,e,o){if(o||t===""){return t}if(e&&!at.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 ut(t,e,o){if(bt(e)===t){t=""}if(o||t===""){return t}return wt(t)}function yt(t,e){t=st(t,":");if(e||t===""){return t}return ft(t)}function bt(t){switch(t){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function ft(t){if(t===""){return t}if(/^[-+.A-Za-z0-9]*$/.test(t))return t.toLowerCase();throw new TypeError(`Invalid protocol '${t}'.`)}function pt(t){if(t===""){return t}const e=new URL("https://example.com");e.username=t;return e.username}function gt(t){if(t===""){return t}const e=new URL("https://example.com");e.password=t;return e.password}function kt(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 vt(t){if(t===""){return t}if(/[^0-9a-fA-F[\]:]/g.test(t)){throw new TypeError(`Invalid IPv6 hostname '${t}'`)}return t.toLowerCase()}function wt(t){if(t===""){return t}if(/^[0-9]*$/.test(t)&&parseInt(t)<=65535){return t}throw new TypeError(`Invalid port '${t}'.`)}function xt(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 St(t){if(t===""){return t}const e=new URL(`data:${t}`);return e.pathname}function Ct(t){if(t===""){return t}const e=new URL("https://example.com");e.search=t;return e.search.substring(1,e.search.length)}function zt(t){if(t===""){return t}const e=new URL("https://example.com");e.hash=t;return e.hash.substring(1,e.hash.length)}var jt=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=B(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!=="REGEX"&&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,J);t.encodePart=ft;const e=Z(this.makeComponentString(),void 0,t);this.shouldTreatAsStandardURL=nt(e)}};var _t=["protocol","username","password","hostname","port","pathname","search","hash"];var It="*";function Tt(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 Ot(t,e){if(!e){return t}return At(t)}function Lt(t,e,o){let s;if(typeof e.baseURL==="string"){try{s=new URL(e.baseURL);t.protocol=Ot(s.protocol.substring(0,s.protocol.length-1),o);t.username=Ot(s.username,o);t.password=Ot(s.password,o);t.hostname=Ot(s.hostname,o);t.port=Ot(s.port,o);t.pathname=Ot(s.pathname,o);t.search=Ot(s.search.substring(1,s.search.length),o);t.hash=Ot(s.hash.substring(1,s.hash.length),o)}catch{throw new TypeError(`invalid baseURL '${e.baseURL}'.`)}}if(typeof e.protocol==="string"){t.protocol=yt(e.protocol,o)}if(typeof e.username==="string"){t.username=dt(e.username,o)}if(typeof e.password==="string"){t.password=ht(e.password,o)}if(typeof e.hostname==="string"){t.hostname=ct(e.hostname,o)}if(typeof e.port==="string"){t.port=ut(e.port,t.protocol,o)}if(typeof e.pathname==="string"){t.pathname=e.pathname;if(s&&!et(t.pathname,o)){const e=s.pathname.lastIndexOf("/");if(e>=0){t.pathname=Ot(s.pathname.substring(0,e+1),o)+t.pathname}}t.pathname=mt(t.pathname,t.protocol,o)}if(typeof e.search==="string"){t.search=rt(e.search,o)}if(typeof e.hash==="string"){t.hash=lt(e.hash,o)}return t}function At(t){return t.replace(/([+*?:{}()\\])/g,"\\$1")}function Mt(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Et(t,e){e.delimiter??(e.delimiter="/#?");e.prefixes??(e.prefixes="./");e.sensitive??(e.sensitive=false);e.strict??(e.strict=false);e.end??(e.end=true);e.start??(e.start=true);e.endsWith="";const o=".*";const s=`[^${Mt(e.delimiter)}]+?`;const i=/[$_\u200C\u200D\p{ID_Continue}]/u;let a="";for(let n=0;n<t.length;++n){const l=t[n];if(l.type===3){if(l.modifier===3){a+=At(l.value);continue}a+=`{${At(l.value)}}${q(l.modifier)}`;continue}const r=l.hasCustomName();let c=!!l.suffix.length||!!l.prefix.length&&(l.prefix.length!==1||!e.prefixes.includes(l.prefix));const h=n>0?t[n-1]:null;const d=n<t.length-1?t[n+1]:null;if(!c&&r&&l.type===1&&l.modifier===3&&d&&!d.prefix.length&&!d.suffix.length){if(d.type===3){const t=d.value.length>0?d.value[0]:"";c=i.test(t)}else{c=!d.hasCustomName()}}if(!c&&!l.prefix.length&&h&&h.type===3){const t=h.value[h.value.length-1];c=e.prefixes.includes(t)}if(c){a+="{"}a+=At(l.prefix);if(r){a+=`:${l.name}`}if(l.type===2){a+=`(${l.value})`}else if(l.type===1){if(!r){a+=`(${s})`}}else if(l.type===0){if(!r&&(!h||h.type===3||h.modifier!==3||c||l.prefix!=="")){a+="*"}else{a+=`(${o})`}}if(l.type===1&&r&&!!l.suffix.length){if(i.test(l.suffix[0])){a+="\\"}}a+=At(l.suffix);if(c){a+="}"}if(l.modifier!==3){a+=q(l.modifier)}}return a}var Dt=class{constructor(t={},e,o){this.regexp={};this.names={};this.component_pattern={};this.parts={};try{let s=void 0;if(typeof e==="string"){s=e}else{o=e}if(typeof t==="string"){const e=new jt(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 i={ignoreCase:o.ignoreCase===true};const a={pathname:It,protocol:It,username:It,password:It,hostname:It,port:It,search:It,hash:It};this.pattern=Lt(a,t,true);if(bt(this.pattern.protocol)===this.pattern.port){this.pattern.port=""}let n;for(n of _t){if(!(n in this.pattern))continue;const t={};const e=this.pattern[n];this.names[n]=[];switch(n){case"protocol":Object.assign(t,J);t.encodePart=ft;break;case"username":Object.assign(t,J);t.encodePart=pt;break;case"password":Object.assign(t,J);t.encodePart=gt;break;case"hostname":Object.assign(t,Q);if(it(e)){t.encodePart=vt}else{t.encodePart=kt}break;case"port":Object.assign(t,J);t.encodePart=wt;break;case"pathname":if(nt(this.regexp.protocol)){Object.assign(t,tt,i);t.encodePart=xt}else{Object.assign(t,J,i);t.encodePart=St}break;case"search":Object.assign(t,J,i);t.encodePart=Ct;break;case"hash":Object.assign(t,J,i);t.encodePart=zt;break}try{this.parts[n]=V(e,t);this.regexp[n]=X(this.parts[n],this.names[n],t);this.component_pattern[n]=Et(this.parts[n],t)}catch(t){throw new TypeError(`invalid ${n} pattern '${this.pattern[n]}'.`)}}}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=Lt(o,t,false)}else{o=Lt(o,Tt(t,e),false)}}catch(t){return false}let s;for(s of _t){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=Lt(o,t,false)}else{o=Lt(o,Tt(t,e),false)}}catch(t){return null}let s={};if(e){s.inputs=[t,e]}else{s.inputs=[t]}let i;for(i of _t){let t=this.regexp[i].exec(o[i]);if(!t){return null}let e={};for(let[o,s]of this.names[i].entries()){if(typeof s==="string"||typeof s==="number"){let i=t[o+1];e[s]=i}}s[i]={input:o[i]??"",groups:e}}return s}static compareComponent(t,e,o){const s=(t,e)=>{for(let o of["type","modifier","prefix","value","suffix"]){if(t[o]<e[o])return-1;else if(t[o]===e[o])continue;else return 1}return 0};const i=new H(3,"","","","",3);const a=new H(0,"","","","",3);const n=(t,e)=>{let o=0;for(;o<Math.min(t.length,e.length);++o){let i=s(t[o],e[o]);if(i)return i}if(t.length===e.length){return 0}return s(t[o]??i,e[o]??i)};if(!e.component_pattern[t]&&!o.component_pattern[t]){return 0}if(e.component_pattern[t]&&!o.component_pattern[t]){return n(e.parts[t],[a])}if(!e.component_pattern[t]&&o.component_pattern[t]){return n([a],o.parts[t])}return n(e.parts[t],o.parts[t])}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=Dt}const $t='.sc-smoothly-app-room-h{display:flex;justify-content:center;text-align:center;cursor:pointer;height:100%;position:relative}.sc-smoothly-app-room-h>div.sc-smoothly-app-room{overflow-y:auto;height:100%}: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>div.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}[icon].sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room>.label.sc-smoothly-app-room{display:none}[icon][label].sc-smoothly-app-room-h:hover::before,[icon][label].sc-smoothly-app-room-h:hover::after{position:absolute;color:rgb(var(--smoothly-color-contrast));background-color:rgb(var(--smoothly-color-tint));border-radius:0.25rem;pointer-events:none}[icon][label].sc-smoothly-app-room-h:hover::before{content:"";bottom:-1.75rem;transform:rotate(45deg);width:1.25em;height:1.25em}[icon][label].sc-smoothly-app-room-h:hover::after{content:attr(label);white-space:nowrap;bottom:-3.25rem;padding:.5rem 1rem;border-radius:.25rem}@media screen and (max-width: 900px){.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{padding:0}[icon].sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room>.label.sc-smoothly-app-room{display:unset;padding:0 1rem}.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}[icon][label].sc-smoothly-app-room-h:hover::before,[icon][label].sc-smoothly-app-room-h:hover::after{content:unset}}';const Rt=$t;const Pt=class{constructor(e){t(this,e);this.smoothlyRoomSelect=o(this,"smoothlyRoomSelect",7);this.smoothlyRoomLoad=o(this,"smoothlyRoomLoad",7);this.label=undefined;this.icon=undefined;this.disabled=undefined;this.path="";this.selected=undefined;this.content=undefined}componentWillLoad(){this.selected=(typeof this.path=="string"?new URLPattern({pathname:this.path}):this.path).test(window.location);this.smoothlyRoomLoad.emit({selected:this.selected})}async getContent(){return this.contentElement}async setSelected(t,e){this.selected=t;if(t)this.smoothlyRoomSelect.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(s,{key:"145d89e87e5bc7988a2c37b30321e8e969724508"},e("li",{key:"bf5a642b87750bf78273b9eb856187ec5d0dfade"},e("a",{key:"b22e1fcf21a1d4cb60d73b967cca67e639ec539b",href:typeof this.path=="string"?this.path:this.path.pathname,onClick:t=>this.clickHandler(t)},this.icon&&e("smoothly-icon",{key:"7a40b124bcda86b48dcd10a32a240c413c2851b6",name:this.icon}),this.label&&e("span",{key:"01cb8b9aa06d17a13c3eed564e870fe4fba2e438",class:"label"},this.label))),e("div",{key:"a75f04cbb0aca3574f8b309cf88fa96c82a461aa",ref:t=>this.contentElement=t},this.content&&e("smoothly-lazy",{key:"37efba7cfc89753339c41038f6f69e6c380ee187",content:this.content}),e("slot",{key:"0b5a9394b9b83f153b73c6de35365a3cfc58a7da"})))}};Pt.style=Rt;const Ft=".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 Ht=Ft;const Nt=class{constructor(e){t(this,e);this.opacity="0.5";this.bottom="1rem";this.right="1rem";this.visible=undefined}componentWillLoad(){var t;this.scrollableParent=n.findParent(this.element);(t=this.scrollableParent)===null||t===void 0?void 0:t.addEventListener("scroll",(()=>{var t,e;this.visible=((e=(t=this.scrollableParent)===null||t===void 0?void 0:t.scrollTop)!==null&&e!==void 0?e:0)>20}))}render(){const t={"--opacity":this.visible?this.opacity:"0","--pointer-events":this.visible?"auto":"none","--bottom":this.bottom,"--right":this.right};return e(s,{key:"b2fe364dcdf392c75b51a6c0bc90802ac2c9b44a",style:t,onClick:()=>{var t;return(t=this.scrollableParent)===null||t===void 0?void 0:t.scrollTo({top:0,left:0,behavior:"smooth"})}},e("smoothly-icon",{key:"d0d21c03ed49fcc248ab89c8a5f54de6d3c995ac",name:"caret-up-outline"}))}get element(){return i(this)}};Nt.style=Ht;const Yt="[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{--smoothly-icon-size:3rem;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 Ut=Yt;const Wt=class{constructor(e){t(this,e);this.smoothlyNavStatus=o(this,"smoothlyNavStatus",7);this.smoothlyVisibleStatus=o(this,"smoothlyVisibleStatus",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.smoothlyNavStatus.emit(!this.visible);this.smoothlyVisibleStatus.emit(this.visible)}openChanged(){this.smoothlyNavStatus.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.smoothlyVisibleStatus.emit(this.visible);this.smoothlyNavStatus.emit(!this.visible)}this.history=t}render(){return e(s,{key:"6cf2501d1c4ad5a0a2865dd41667e40abffe756a"},e("span",{key:"c7bb85eb13d1acb54554a6456aa279f1e8593da8",class:"burger"},e("smoothly-icon",{key:"b7b51da7eb3de4c290ba0f4f0c9f9a44fe494c00",name:"menu"})))}get element(){return i(this)}static get watchers(){return{open:["openChanged"]}}};Wt.style=Ut;const Bt='[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-contrast);--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{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-button-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-button-h{display:inline}[disabled].sc-smoothly-button-h{opacity:0.5;pointer-events:none}.sc-smoothly-button-h>a.sc-smoothly-button,.sc-smoothly-button-h>button.sc-smoothly-button{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-button-h>a.sc-smoothly-button:empty,.sc-smoothly-button-h>button.sc-smoothly-button:empty{border-width:0}.sc-smoothly-button-h>button.sc-smoothly-button{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-button-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-button{padding:0.8em;min-width:8em}.sc-smoothly-button-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-button{padding:0.6em}[size=icon].sc-smoothly-button-h>button.sc-smoothly-button{padding:0.5em}[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}[size=flexible].sc-smoothly-button-h>button.sc-smoothly-button{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-button-h{width:100%}[expand=full].sc-smoothly-button-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-button-h:not([fill=clear])>button.sc-smoothly-button:hover,.sc-smoothly-button-h>button.sc-smoothly-button:focus-visible,[fill=outline].sc-smoothly-button-h:active>button.sc-smoothly-button::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:hover::before,[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:focus-within::before,[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:hover,.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:focus-visible,.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-button-h>button.sc-smoothly-button,.sc-smoothly-button-h.sc-smoothly-button-s>smoothly-icon,.sc-smoothly-button-h .sc-smoothly-button-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-button-h{display:none}';const Vt=Bt;const Gt=class{constructor(e){t(this,e);this.color=undefined;this.expand=undefined;this.fill=undefined;this.disabled=false;this.type=undefined;this.size=undefined;this.shape=undefined;this.link=undefined}render(){return e(f,{key:"1350144b97a2a5fdc24d5b53678ea9d7f97b5b71",disabled:this.disabled,type:this.type,link:this.link},e("slot",{key:"315355a1987956c9741a03819de181d2f626a205"}))}};Gt.style=Vt;const Kt=".sc-smoothly-button-confirm-h{display:inline-block}[disabled].sc-smoothly-button-confirm-h{opacity:0.5;pointer-events:none}.sc-smoothly-button-confirm-h:not([warning])>smoothly-button.sc-smoothly-button-confirm:first-child{display:none}[warning].sc-smoothly-button-confirm-h>smoothly-button.sc-smoothly-button-confirm:nth-child(2){display:none}[expand].sc-smoothly-button-confirm-h{width:100%}";const Zt=Kt;const qt=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyConfirm=o(this,"smoothlyConfirm",7);this.color=undefined;this.name=undefined;this.doubleClickTime=.2;this.expand=undefined;this.fill=undefined;this.disabled=false;this.shape=undefined;this.size=undefined;this.clickTimeStamp=undefined}clickHandler(t){if(this.clickTimeStamp&&t.timeStamp-this.clickTimeStamp>this.doubleClickTime*1e3){this.timer&&window.clearTimeout(this.timer);this.clickTimeStamp=undefined;this.smoothlyConfirm.emit({[this.name]:true})}else{this.clickTimeStamp=t.timeStamp;this.timer=window.setTimeout((()=>{this.clickTimeStamp=undefined}),2e3)}}render(){return e(s,{key:"316a3f9fb74039c7a6b80c0b665582c9c016176b",warning:this.clickTimeStamp},e("smoothly-button",{key:"c4e4a4845ccb4ca9b599957eafe177494f03f124",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:"warning",disabled:this.disabled,type:"button",onClick:t=>this.clickHandler(t)},e("smoothly-icon",{key:"d7763547cf321bbff31ce9fa437c0d7753b4767c",name:"alert-outline",fill:this.fill,color:"warning",size:this.size==="icon"?"tiny":"small"})),e("smoothly-button",{key:"f3e3af94612519e43694139c91bfca618293af94",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:this.color,disabled:this.disabled,type:"button",onClick:t=>this.clickHandler(t)},e("slot",{key:"38fbabcf48c532abea1fde79454acb5785955b77"})))}};qt.style=Zt;const Xt="smoothly-button-demo{display:block;margin:1rem}smoothly-button-demo>section>div{display:flex;align-items:center}smoothly-button-demo smoothly-button{margin:.2em .5em}";const Jt=Xt;const Qt=class{constructor(e){t(this,e)}render(){return[e("h2",{key:"bddbcdcb9ce5d83b6bfa7b6ecfdc6aa39a2eb566"},"Buttons"),e("section",{key:"1a68d5f5e150439e623fa625432c0b76d84cb4da"},e("h4",{key:"ce297567bb70f6f61cb5c9adfce457b96a727dee"},"Confirm button (two clicks)"),e("div",{key:"6b8561f4fe3001800c5a058e01a023361e8ff5fc"},e("smoothly-button-confirm",{key:"c26ec515d6e59142694394336d6c408f9d77d5c2",name:"confirm",shape:"rounded",color:"danger",size:"large"},"Delete"),e("smoothly-button-confirm",{key:"bc1fe30703e9469b80851611286309c2465b6708",name:"confirm-icon",shape:"rounded",color:"success",size:"icon"},e("smoothly-icon",{key:"2c5ad6e48b66c4aac2b85dc8ea27b292b9229054",name:"checkmark-outline",size:"tiny"})),e("smoothly-button-confirm",{key:"b00eff042a7e4ad8d84dbd5928499dfe93e0aade",name:"confirm-icon",shape:"rounded",color:"danger",size:"icon",fill:"outline"},e("smoothly-icon",{key:"180734788ed2a6bf6dd7b833ec6e2bb8c8aa4d65",name:"trash-outline",size:"tiny",fill:"outline"}))),e("smoothly-toggle-switch-demo",{key:"05f0025358df19ae26c50e988f75488f41da289d"}),e("h4",{key:"a9d8bcaea4a0f4faefb18091126dbcdf41f310d9"},"Links with icons"),e("smoothly-button",{key:"167bbb5902842ca9bffce2c147d628d56e400190",type:"link"},e("smoothly-icon",{key:"d072acb7417bacbe2f7ecdc46aabda39cbdbfc06",name:"checkmark-circle",slot:"start"}),"type link"),e("smoothly-button",{key:"009968c3ec3174984ea7d2d0f8583283dac79cd7",type:"button",color:"warning",fill:"default"},e("smoothly-icon",{key:"a006bec82e32c090679bf672067786ad20ee1a1c",name:"call",slot:"start"}),e("a",{key:"f07b7790a97c5ee46d0f9b2208c7adc6be83b578",href:"https://google.com"},"link")),e("smoothly-button",{key:"6bc40589a121c17134918def9047a9f4c5849d92",link:"https://google.com",type:"link"},e("smoothly-icon",{key:"7fe282e07c20828f9d3370fc652212dbfbffeb22",name:"arrow-forward",slot:"end"}),"link + type link"),e("h4",{key:"8ba8336502afd8345f6fb4e4fab960482ae518a8"},"Size and Color test"),e("smoothly-button",{key:"8853f3af8f2a529da7b4e852bb97b683b83305df",color:"primary",fill:"solid",size:"small",shape:"rounded"},"Color Primary + Small"),e("smoothly-button",{key:"58bacfecc8658277fce79ca8c92b09269d98dd9a",color:"secondary",fill:"solid",shape:"rounded"},"Color Secondary + Default"),e("smoothly-button",{key:"ad0d74e0a69340b75589a4758a09aac2dcb76f00",color:"warning",fill:"solid",size:"large"},"Color Warning + Large"),e("smoothly-button",{key:"440876e5df141e0c8ac44027661f8e575921699f",color:"danger",fill:"solid",size:"small",shape:"rounded"},"Color Danger + Small"),e("smoothly-button",{key:"2c7792f5eab260fc72dea8d02a69f870e017c461",color:"success",fill:"solid",size:"small",shape:"rounded"},"Color Success + Small"),e("smoothly-button",{key:"e6a5713a3f4c683442c44c7dce5d4b14d5ed137b",color:"tertiary",fill:"solid",size:"small",shape:"rounded"},"Color Tertiary + Small"),e("smoothly-button",{key:"9344764b926c4b7620a116f7811c569e2825440d",color:"dark",fill:"solid",size:"small",shape:"rounded"},"Color Dark + Small"),e("smoothly-button",{key:"47ee717243171483731ddb1645c4769dc02386e8",color:"medium",fill:"solid",size:"small",shape:"rounded"},"Color Medium + Small"),e("smoothly-button",{key:"fcb45ba51f2efd49e3bb1601213d3e7ad020fbbd",color:"light",fill:"solid",size:"small",shape:"rounded"},"Color Light + Small"),e("h4",{key:"2445eacd62ea0749ed0bdcd7a624fc9d0003b69e"},"Expand examples"),e("smoothly-button",{key:"9cdb6cfac5d2806e522c2764aaf4f3f8b24bd81c",color:"secondary",fill:"solid",expand:"full"},"Color Secondary + Default"),e("smoothly-button",{key:"72c233f139b871a57202f29cc3f2d26bd45900a2",color:"warning",fill:"solid",expand:"block"},"Color Warning + Large"),e("h4",{key:"b6912697d2018ba136133d3d21349c8fade175fb"},"Fill examples"),e("div",{key:"e4095adae1b21cac1437407a4b032ebf2b5857fb"},e("smoothly-button",{key:"537fb2c0df80f137e082ff7b0cfd3fd6dd0dbe46",shape:"rounded",color:"primary",fill:"solid"},e("smoothly-icon",{key:"9982e7b95ca149470e6d5b34967f46cad195a35f",name:"checkmark-circle",slot:"start"}),"Fill Solid"),e("smoothly-button",{key:"9a7021a7c1743c2c46a8a67159d2cda23e4579c2",shape:"rounded",color:"secondary",fill:"outline"},e("smoothly-icon",{key:"469608b3bfc55b192d773f42ef70e567795ca455",name:"checkmark-circle",slot:"start"}),"Fill Outline"),e("smoothly-button",{key:"52a5d266726a031d6b66b3a1180ad37623dd74c9",shape:"rounded",color:"tertiary",fill:"clear"},e("smoothly-icon",{key:"94e036929040b6ac859a055bde8ad09e804ad1fd",name:"checkmark-circle",slot:"start"}),"Fill Clear"),e("smoothly-button",{key:"f48dfdc3b4151689bfe7c3f069156b8e97ccd485",size:"icon",shape:"rounded",color:"success",fill:"solid"},e("smoothly-icon",{key:"729e24c3f27ee5ee5d9ac91a872d0ebaf232ef06",name:"basketball"}))),e("h4",{key:"f6925e64d522c3049c3df03ae5572e7cb79b91aa"},'Buttons with Icon in "start"'),e("div",{key:"4caf500f1fc1e0bc4fdefbada8053ec53d919859"},e("smoothly-button",{key:"69248dd64f9f1e6bd2eb72d9bb060d2adc95230e",shape:"rounded",fill:"solid",color:"warning"},e("smoothly-icon",{key:"326c813748e85699bf9378ae903f82c3a94a99fe",name:"checkmark-circle",slot:"start"}),"Check"),e("smoothly-button",{key:"e32f179237d11e7168f6b9d86584a941e7c132ba",shape:"rounded",fill:"solid",color:"secondary"},e("smoothly-icon",{key:"ac60c8faa7ee073a8193a670c1f4195331930f43",name:"basketball",slot:"start"}),"Check"),e("smoothly-button",{key:"19388cc01865030341d6e481e17f2b8201f7e2a2",shape:"rounded",fill:"solid",color:"success"},e("smoothly-icon",{key:"9ef487e2d5ee74050fb1d544d2cd38cba4e031ff",name:"call",slot:"start"}),"Check"),e("smoothly-button",{key:"551d64ac42aff595a46024e330dd09db0985f958",size:"icon",fill:"solid",shape:"rounded",color:"success"},e("smoothly-icon",{key:"c834b6e258f7a992a28349103b8029384fde8a60",name:"call"})),e("smoothly-button",{key:"747732c4f71779e75dd1e28f1279afbb5ca9977f",size:"flexible",fill:"solid",color:"success"},e("smoothly-icon",{key:"39095a422a92dae1516d70fc6cd307886dd44f8d",name:"airplane"}))),e("h4",{key:"bbbc29959dfe655b2d9cce283dea0fb02429a834"},'Buttons with Icon in "end"'),e("smoothly-button",{key:"24d19a5ecc1208b8a918027a8e32b7148554380e",fill:"solid",color:"light"},"Go Forward",e("smoothly-icon",{key:"263940589ee234ba91a0ee6d80474b3df208a27f",name:"arrow-forward",slot:"end"})),e("h4",{key:"94736445a17a3cf6880880463e181f50b41e919a"},"Test for icon button"),e("div",{key:"445605a6a79169dff7f1d8fc06afe4aa71279fc5"},e("smoothly-button",{key:"e2bf3d70b09f51ef033160538ee894ed7e5a5704",size:"icon",fill:"solid",shape:"rounded",color:"success"},e("smoothly-icon",{key:"bb6eeb8eefa8c9ded0804b62976fa3dea30e6f04",name:"call"})),e("smoothly-button",{key:"0dc78ad3f658c896c2f1094dbb378319ce081b7e",size:"icon",shape:"rounded",color:"warning",fill:"solid"},e("smoothly-icon",{key:"a07d3a8a103b9ce19b11b91f2464b8e7089d1337",name:"search-outline"})),e("smoothly-button",{key:"0408dea25ae083f2427cf347677914478426dbbc",size:"icon",shape:"rounded",color:"secondary"},e("smoothly-icon",{key:"38337dd0de50a5dcfe4d1ccd070826cfc0cd6124",name:"checkmark-circle"}))),e("h4",{key:"15e4d907e44d0c9191acf970a7ffa718b0baf537"},"Link examples"),e("div",{key:"f966263b0a25dd27dc146a28ba03774813c6469a"},e("smoothly-button",{key:"b1a65a0fd62273af3cb6d982ee98c7a1c565fb20",type:"link"},"type link"),e("smoothly-button",{key:"2b19c2d53a823dcc74426b12309e6854d3a4923d",type:"button",fill:"clear"},e("a",{key:"45c4ce410828bfb775464872aaa7e6ab6e0e800e",href:"https://google.com"},"link")),e("smoothly-button",{key:"c98b71da6960956e031b99d23e53cc5a123341a3",link:"https://google.com",type:"link"},"link + type link")),e("h4",{key:"559ef66961156a0c954e7a6009283a8328a4dd48"},"Disabled buttons"),e("div",{key:"5856c23cde78acfc84c73b78aaa5c1b1f1e82c43"},e("smoothly-button",{key:"6da6041b5d6b51adc0cc19ecf074412d7183fe7b",disabled:true,fill:"solid",color:"secondary"},"Disabled"),e("smoothly-button",{key:"57e28f82cf722df8dc9ecfb0bff304a345e27018",type:"link",link:"https://google.com",disabled:true},"Disabled link"))),e("smoothly-back-to-top",{key:"a1d78b61fcc3da58bd3f8683fbeccb34bbcb3ef3"})]}};Qt.style=Jt;function te(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 i=[];for(let e=0;e<7;e++){const e=new Date(t);e.setUTCDate(o++);i.push(w.create(e))}if(e<5||w.firstOfMonth(i[0])==w.firstOfMonth(t))s.push(i)}return s}function ee(){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 oe(t){const e=new globalThis.Date(t);const o=[];for(let s=0;s<12;s++){e.setMonth(s,28);const i=w.create(e);o.push({date:i,name:e.toLocaleString(undefined,{month:"long"}),selected:i.substr(0,7)==t.substr(0,7)})}return o}function se(t,e,o){const s=new globalThis.Date(t);const i=e?w.getYear(e):(new Date).getFullYear()-50;const a=o?w.getYear(o):(new Date).getFullYear()+50;const n=[];for(let e=i;e<=a;e++){s.setFullYear(e);const o=w.create(s);n.push({date:o,name:s.toLocaleString(undefined,{year:"numeric"}),selected:o==t})}return n}const ie='.sc-smoothly-calendar-h{display:block;--other-month-opacity:0.5;padding:0.5em;border:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{padding:0 0.5em}.sc-smoothly-calendar-h>table.sc-smoothly-calendar{table-layout:fixed;width:100%}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>thead.sc-smoothly-calendar>tr.sc-smoothly-calendar>th.sc-smoothly-calendar,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar{text-align:center;padding:0.5em;min-width:2em;box-sizing:border-box;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));-webkit-user-select:none;user-select:none}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar{position:relative;cursor:pointer}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.currentMonth.sc-smoothly-calendar{color:rgb(var(--smoothly-default-contrast))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:not(.currentMonth){color:rgba(var(--smoothly-default-contrast), var(--other-month-opacity))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).selected,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).dateRange,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).selected,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).dateRange{color:rgba(var(--smoothly-default-contrast))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6),.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-calendar-weekend-foreground, var(--smoothly-danger-color)))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth),.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth){color:rgba(var(--smoothly-calendar-weekend-foreground, var(--smoothly-danger-color)), var(--other-month-opacity))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:not(.selected,.disable).sc-smoothly-calendar:hover{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.selected.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.today.sc-smoothly-calendar::before{content:"";inset:2px;position:absolute;border:1px solid currentColor}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.dateRange.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.disable.sc-smoothly-calendar{cursor:not-allowed;opacity:0.5}';const ae=ie;const ne=class{constructor(e){t(this,e);this.smoothlyValueChange=o(this,"smoothlyValueChange",7);this.smoothlyStartChange=o(this,"smoothlyStartChange",7);this.smoothlyEndChange=o(this,"smoothlyEndChange",7);this.smoothlyDateSet=o(this,"smoothlyDateSet",7);this.smoothlyDateRangeSet=o(this,"smoothlyDateRangeSet",7);this.clickCounter=0;this.month=undefined;this.value=undefined;this.start=undefined;this.end=undefined;this.max=undefined;this.min=undefined;this.doubleInput=undefined;this.firstSelected=undefined}onStart(t){this.smoothlyStartChange.emit(t)}onEnd(t){this.smoothlyEndChange.emit(t)}onClick(t){this.smoothlyValueChange.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.smoothlyDateSet.emit(this.value);this.doubleInput&&this.clickCounter%2==0&&this.start&&this.end&&this.smoothlyDateRangeSet.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}}}withinLimit(t){return(!this.min||t>=this.min)&&(!this.max||t<=this.max)}render(){var t,o,s;return e(a,{key:"818f64c07d09772dcf0ca9a9d561b5745684c9ae"},e("smoothly-input-month",{key:"b407c0b400e94cfad36c372bf8353ad1fe52a5fd",name:"month",value:(t=this.month)!==null&&t!==void 0?t:this.value,min:this.min,max:this.max,inCalendar:true,next:true,previous:true,showLabel:false,onSmoothlyInput:t=>{t.stopPropagation();"month"in t.detail&&typeof t.detail.month=="string"&&(this.month=t.detail.month)}},e("div",{key:"46d05aa65a4a0de959e2bb79f00fd6bce67662a1",slot:"year-label"},e("slot",{key:"cbd40bacc7fa9a661916deb52e5538e163de5067",name:"year-label"})),e("div",{key:"26f35188e898cbd35a20ab6d5f469418bfc5952d",slot:"month-label"},e("slot",{key:"79ece04c1955c45809892accb4c692a3277a2c4b",name:"month-label"}))),e("table",{key:"3002ee275ea4b53934e14fa27d08ba67d79a993d"},e("thead",{key:"f6d280f29660fe107ef459e4cdc8a829b91d26b0"},e("tr",{key:"cdeaec6bc32757bb65c130618e9ea92b668acc25"},ee().map((t=>e("th",null,t))))),te((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:w.now()).map((t=>e("tr",null,t.map((t=>{var o,s,i,a;return e("td",{tabindex:1,onMouseOver:()=>this.withinLimit(t)?this.onHover(t):undefined,onClick:this.withinLimit(t)?()=>this.onClick(t):undefined,class:{selected:t==this.value||this.doubleInput&&(t==this.start||t==this.end),today:t==w.now(),currentMonth:w.firstOfMonth((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:w.now())==w.firstOfMonth(t),dateRange:this.doubleInput&&t>((i=this.start)!==null&&i!==void 0?i:"")&&t<((a=this.end)!==null&&a!==void 0?a:""),disable:!this.withinLimit(t)}},t.substring(8,10))})))))))}get element(){return i(this)}static get watchers(){return{start:["onStart"],end:["onEnd"]}}};ne.style=ae;const le=".sc-smoothly-dialog-h{display:block;position:fixed;top:55%;left:50%;transform:translate(-50%, -50%);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>section.sc-smoothly-dialog{margin-top:var(--smoothly-dialog-margin-top)}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>div.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]) div.header.sc-smoothly-dialog{border:none}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.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>section.sc-smoothly-dialog>div.content.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])>section.sc-smoothly-dialog>div.content.sc-smoothly-dialog{border-radius:8px}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog{position:absolute;right:-2em;top:-2em;z-index:1;border-color:transparent}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog:hover{border-color:transparent}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>div.header.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog>smoothly-icon.sc-smoothly-dialog{background-color:rgb(var(--smoothly-color));border-radius:50%}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog>*.sc-smoothly-dialog{margin:10px}";const re=le;const ce=class{constructor(e){t(this,e);this.color=undefined;this.open=true;this.closable=false;this.header=undefined}TriggerListener(t){if(l.is(t.detail)&&t.detail.name=="close")this.open=false}hostData(){return{style:{display:this.open?"block":"none"}}}__stencil_render(){return e("section",{key:"d13e5bf2132afe9b22f3ed6f3f3d5c96f8f61fc2"},e("div",{key:"9f0c40b2efb77ef63312ef5c6e70e55f6605b3b5",class:"header"},this.closable&&e("smoothly-trigger",{key:"2cbd48cb261f1c5e951a385a4e87e5af8ef3f9fa",fill:"clear",name:"close"},e("smoothly-icon",{key:"c87a41fd9350c00fa41965eb95a8ef8366a12361",name:"close-circle",fill:"solid",color:this.color})),this.header?e("h1",null,this.header):e("slot",{name:"header"})),e("div",{key:"f50603dce6e75b2254469f688c055610590df737",class:"content"},e("slot",{key:"2774f7a85f71e91ce07c1dd4c6fd48b53c589b47"})))}render(){return e(s,this.hostData(),this.__stencil_render())}};ce.style=re;const he=".sc-smoothly-dialog-demo-h>smoothly-button.sc-smoothly-dialog-demo{display:block;margin-block:2rem}";const de=he;const me=class{constructor(e){t(this,e);this.openModal=false;this.openTallModal=false;this.showFrame=false}render(){return e(s,{key:"f7ae2fc97658b0aa8c08755714792ec4399224da"},e("smoothly-button",{key:"f99ac0d5c89394052b2d6faab955d8b2634e2b5f",fill:"solid",color:"light",onClick:()=>this.openModal=true},"Open Modal"),e("smoothly-button",{key:"8e6a1ff75c6469816cdd206fe6afa2c8eead8684",fill:"solid",color:"light",onClick:()=>this.openTallModal=true},"Open Modal with long text and top-aligned."),e("smoothly-button",{key:"c8af4a1887f7f2c005926bec9032038e1fa43d3b",fill:"solid",color:"light",onClick:()=>this.showFrame=!this.showFrame},"Show Frame"),e("smoothly-modal",{key:"534b00fc5e74c9539ba8106b0c9cf382463448b3",closable:true,open:this.openModal,onSmoothlyModalChange:t=>this.openModal=t.detail},e("h2",{key:"82a998800b4e7ea57210a3116cdf35eec00aa952",slot:"header"},"Modal"),e("span",{key:"edeb8eaa859444f30e3f95b76fab7db2b322683f"},"Are you sure you want to confirm this action?"),e("smoothly-button",{key:"50a4de7de97c55783fdd3e8167ec9fac4395d16a",slot:"actions",color:"success"},"Confirm"),e("smoothly-button",{key:"d4740cdac6527a55b692c04dd70ad17fefbe7eb8",slot:"actions",color:"light",fill:"outline",onClick:()=>this.openModal=false},"Cancel")),e("smoothly-modal",{key:"0beaeb3ab4f2af395a3aa0257674f38f55faabd6",closable:true,open:this.openTallModal,onSmoothlyModalChange:t=>this.openTallModal=t.detail,align:"top"},e("h2",{key:"453c4ded8638235b6dc0ff5c043b57d37995be4d",slot:"header"},"Modal"),e("smoothly-summary",{key:"871fc4ad53812e7331093c43dee851b14d33f726"},e("div",{key:"720c732d6f03309304d677b6292b853ac38257f8",slot:"summary"},"Lorem ipsum"),e("div",{key:"2e5632e1402f5ff2830e63dc56be723549c2a90e",slot:"content"},Array.from({length:10}).map((()=>e("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."))))),e("smoothly-button",{key:"5fb59dab67d31d2783855d1e0c4f67197a7eaa04",slot:"actions",color:"light",fill:"outline",onClick:()=>this.openTallModal=false},"Cancel")),this.showFrame&&e("smoothly-dialog",{key:"939b4f257b01be10467dc90b45801402df5f70e3",closable:true},e("smoothly-frame",{key:"83c2ac363001992a0673506df8317b30b487ff60",url:"https://www.wikipedia.org/",name:"parent",style:{height:"80vh"}})))}};me.style=de;function ue(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 ye(t,e,o){let s=0;let i;while((i=o.exec(t))!=null){if(o.lastIndex-i[0].length<e)s=o.lastIndex-i[0].length;else break}return s}function be(t,e,o){const s=/([\wåäöüéáúíóßðœøæñµçþ_]+|[@-]+)/gi;return o=="backward"?ye(t,e,s):ue(t,e,s)}var fe;(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})(fe||(fe={}));var pe;(function(t){function e(t){return{value:t.value,selection:{start:t.selection.start,end:t.selection.end,direction:t.selection.direction},remainder:t.remainder}}t.copy=e})(pe||(pe={}));class ge{value;selection;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.substring(t,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 i={value:this.value,selection:{start:this.selection.start,end:this.selection.end,direction:this.selection.direction}};if(!o)o="";i.value=this.value.slice(0,t)+o+this.value.slice(e,this.value.length);if(this.selection.start>=e)i.selection.start=this.selection.start+o.length-e+t;else if(this.selection.start>t&&this.selection.start<e)i.selection.start=Math.min(this.selection.start,t+o.length);if(this.selection.end>=e)i.selection.end=this.selection.end+o.length-e+t;else if(this.selection.end>t&&this.selection.end<e)i.selection.end=Math.min(this.selection.end,t+o.length);s=new ge(i)}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 ge({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)}toLower(){return this.map((t=>t.toLowerCase()))}toUpper(){return this.map((t=>t.toUpperCase()))}map(t){let e=this;let o=0;for(let s=0;s<this.value.length;s++){const i=t(this.get(s),s);e=e.replace(o,o+1,i);o+=i.length}return e}static copy(t){return new ge({...t})}static create(){return new ge({value:"",selection:{start:0,end:0}})}static modify(t){return new ge(typeof t=="string"?{value:t,selection:{start:t.length,end:t.length}}:t)}}var ke;(function(t){function e(t,e,o){let c=pe.copy(t.unformat(ge.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")n(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=i(t,e,o)}else if(["ArrowLeft","ArrowRight","Home","End"].includes(o.key))a(c,o);else if(["Delete","Backspace"].includes(o.key)){c.selection.start==c.selection.end&&n(c,c.selection.start+(o.key=="Backspace"?-1:0),c.selection.end+(o.key=="Delete"?1:0));l(c)}else if(o.key!="Unidentified"){l(c);t.allowed(o.key,c)&&r(c,o.key)}}return t.format(ge.copy(c))}t.apply=e;function o(t,e,o){const s=pe.copy(t.unformat(ge.copy(e)));r(s,o);return t.format(ge.copy(s))}t.paste=o;function s(t,e,o){let s=fe.getCursor(e.selection);let i=fe.getStalker(e.selection);s=be(e.value,s,o.key=="ArrowLeft"?"backward":"forward");i=o.shiftKey?i:s;return pe.copy(t.unformat(ge.copy({...e,selection:{start:Math.min(i,s),end:Math.max(i,s),direction:i<s?"forward":i>s?"backward":"none"}})))}function i(t,e,o){const s=fe.getCursor(e.selection);const i=be(e.value,s,o.key=="Backspace"?"backward":"forward");const a=pe.copy(t.unformat(ge.copy({...e,selection:{start:Math.min(s,i),end:Math.max(s,i),direction:"none"}})));a.value=a.value.substring(0,a.selection.start)+a.value.substring(a.selection.end);a.selection.end=a.selection.start;return a}function a(t,e){let o=fe.getCursor(t.selection);let s=fe.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 n(t,e,o,s){t.selection.start=e;t.selection.end=o;s&&(t.selection.direction=s)}function l(t){r(t,"")}function r(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}})(ke||(ke={}));const ve={};function we(t,e){ve[t]=e}function xe(t,...e){const o=ve[t];return o&&o(e)}function Se(t,e,...o){const s=xe(e,...o);return s?s.format(ge.modify(s.toString(typeof t=="string"?Ce(t,e,o):t))).value:""}function Ce(t,e,...o){const s=xe(e,o);return s?s.fromString(s.unformat(ge.modify(t)).value):undefined}class ze{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){return{...t,type:"text",inputmode:"numeric",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"}}we("card-csc",(()=>new ze));class je{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}partialFormat=this.format;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:"text",inputmode:"numeric",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"}}we("card-expires",(()=>new je));class _e{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){const e=Ie(t.value);const o=t.map(((t,o)=>(o+1<e.length[0]&&e.spaceIndexes.includes(o)?" ":"")+t));return{...o,type:"text",inputmode:"numeric",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=Ie(e.value);return t>="0"&&t<="9"&&e.value.length<o.length[0]}}we("card-number",(()=>new _e));function Ie(t){let e={...Te,spaceIndexes:t.length==14?[4,10]:Te.spaceIndexes};for(const o in Oe)if(Object.prototype.hasOwnProperty.call(Oe,o)&&Oe[o].identification.test(t)){e={...Te,name:o,...Oe[o]};break}return e}const Te={name:"unknown",verification:/^\d{19}$/,spaceIndexes:[4,8,12],identification:/^\d/,length:[16,16,19],icon:"generic"};const Oe={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}$/,spaceIndexes:[4,8,12],identification:/^(5019)\d+/,length:[16,19,19],icon:"generic"},diners:{verification:/^3(?:0[0-5]|[68][0-9])[0-9]\s[0-9]{6}\s[0-9]{4}$/,identification:/^3(?:0[0-5]|[68][0-9])/,spaceIndexes:[4,10],length:[14,16,16],icon:"diners"},discover:{verification:/^6(?:011|5[0-9]{2})\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,spaceIndexes:[4,8,12],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)/,spaceIndexes:[4,8,12],length:[16,19,19],icon:"generic"},interpayment:{verification:/^(636)[0-9]\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,spaceIndexes:[4,8,12],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})/,spaceIndexes:[4,8,12],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}$/,spaceIndexes:[4,8,12],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}$/,spaceIndexes:[4,8,12],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}$/,spaceIndexes:[4,8,12],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})?$/,spaceIndexes:[4,8,12],identification:/^4[0-9]/,length:[16,16,19],icon:"visa"}};var Le;(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})(Le||(Le={}));class Ae{separator;constructor(t){this.separator=t}partialFormat(t){const e=this.format(t);return{...e,remainder:this.formatString.slice(e.value.length)}}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 Me={};function Ee(t,e){Me[t]=e}we("date",(t=>{const e=t&&t.length>0?t[0]:undefined;const o=Le.is(e)?e:Le.fromLocale(e);const s=Me[o]??Me["YYYY-mm-dd"];return s()}));class De extends Ae{constructor(t){super(t)}toString(t){return w.is(t)&&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 w.is(e)?e:undefined}formatString=`DD${this.separator}MM${this.separator}YYYY`;format(t){let e=t.delete(this.separator);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"}}Ee("dd.mm.YYYY",(()=>new De(".")));Ee("dd/mm/YYYY",(()=>new De("/")));Ee("dd-mm-YYYY",(()=>new De("-")));class $e extends Ae{constructor(t){super(t)}toString(t){return w.is(t)&&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 w.is(e)?e:undefined}formatString=`MM${this.separator}DD${this.separator}YYYY`;format(t){let e=t.delete(this.separator);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}}Ee("mm/dd/YYYY",(()=>new $e("/")));class Re extends Ae{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 w.is(e)?e:undefined}daysInMonth(t){const e=`${t.substring(0,4)}-${t.substring(4,6)}-01`;return w.is(e)?+w.lastOfMonth(`${t.substring(0,4)}-${t.substring(4,6)}-01`).substring(8,10):31}formatString=`YYYY${this.separator}MM${this.separator}DD`;format(t){let e=t.delete(this.separator);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"}}Ee("YYYY-mm-dd",(()=>new Re("-")));class Pe{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 x.is(e)?e:undefined}partialFormat=this.format;format(t){let e=Fe(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==" ")}}we("date-time",(()=>new Pe));function Fe(t,e){let o=t;switch(e){case"dd/mm/YYYY":case"dd.mm.YYYY":if(!He(o.value,e))o=o.replace(0,10,He("31"+o.value.substring(2,10),e)?"31"+o.value.substring(2,10):He("30"+o.value.substring(2,10),e)?"30"+o.value.substring(2,10):He("29"+o.value.substring(2,10),e)?"29"+o.value.substring(2,10):He("28"+o.value.substring(2,10),e)?"28"+o.value.substring(2,10):o.value);break;case"mm/dd/YYYY":if(!He(o.value,e))o=o.replace(0,10,He(o.value.substring(0,3)+"31"+o.value.substring(5,10),e)?o.value.substring(0,3)+"31"+o.value.substring(5,10):He(o.value.substring(0,3)+"30"+o.value.substring(5,10),e)?o.value.substring(0,3)+"30"+o.value.substring(5,10):He(o.value.substring(0,3)+"29"+o.value.substring(5,10),e)?o.value.substring(0,3)+"29"+o.value.substring(5,10):He(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(!He(o.value)){o=o.replace(0,10,He(o.value.substring(0,8)+"31")?o.value.substring(0,8)+"31":He(o.value.substring(0,8)+"30")?o.value.substring(0,8)+"30":He(o.value.substring(0,8)+"29")?o.value.substring(0,8)+"29":He(o.value.substring(0,8)+"28")?o.value.substring(0,8)+"28":o.value);break}return t}}return o}function He(t,e){let o;let s;let i;switch(e){case"dd/mm/YYYY":case"dd.mm.YYYY":o=parseInt(t.substring(6,10));s=parseInt(t.substring(3,5));i=parseInt(t.substring(0,2));return o&&s&&i?i>0&&Ne(o,s)>=i:false;case"mm/dd/YYYY":o=parseInt(t.substring(6,10));s=parseInt(t.substring(0,2));i=parseInt(t.substring(3,5));return o&&s&&i?i>0&&Ne(o,s)>=i:false;default:o=parseInt(t.substring(0,4));s=parseInt(t.substring(5,7));i=parseInt(t.substring(8,10));return o&&s&&i?i>0&&Ne(o,s)>=i:false}}function Ne(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 Ye{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}partialFormat=this.format;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==" ")}}we("divisor",(()=>new Ye));class Ue{separator=":";patterns={allowed:/^-?\d*(?::{0,1}[0-5]{0,1}[0-9]{0,1}|[.,]{0,1}[0-9]{0,2})$/,extract:/^(-?)(\d*)([:,.]{0,1})([0-9]{0,2})$/,zeros:/^(-?)(0+)(?:[1-9]|0[,.:]?)/};toString(t){let e;if(!S.is(t))e="";else{const o=S.normalize(t);if(!o.minutes&&!o.hours)e="";else if(this.separator!=":")e=(+S.toHours(o).toFixed(2)||"").toString(10);else if(o.hours&&!o.minutes)e=o.hours.toString(10);else if(!o.hours&&o.minutes)e=`${o.minutes<0?"-":""}0:${Math.abs(o.minutes).toString(10)}`;else e=`${o.hours?.toString(10)}:${Math.abs(o.minutes??0).toString(10)}`}return e}fromString(t){let e;const o=t.match(this.patterns.extract);if(!o)e=undefined;else{const[t,s,i,a,n]=o;this.separator=a;if(a==":"){const t={hours:parseInt(i),minutes:parseInt(n)};const o=s?-1:1;e=S.normalize({hours:!Number.isFinite(t.hours)?0:t.hours*o,minutes:!Number.isFinite(t.minutes)?0:t.minutes*o})}else{const o=parseFloat(t.replace(",","."));e=S.normalize({hours:!Number.isFinite(o)?0:o})}}return e}partialFormat=this.format;format(t){let e=t;const[,o,s,i]=t.match(this.patterns.extract)??[];if(!s&&i)e=e.insert(o?1:0,"0");const a=e.match(this.patterns.zeros);if(a){const[,t,o]=a;if(o){const s=t?1:0;e=e.delete(s,o.length+s)}}return{...e,type:"tel",pattern:this.patterns.allowed}}unformat(t){const[,,,e]=t.match(this.patterns.extract)??[];if(e)this.separator=e;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.patterns.allowed)}}we("duration",(()=>new Ue));class We{settings;constructor(t){this.settings=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){return{...t,...this.settings,type:"text",inputmode:"email",autocomplete:"email"}}unformat(t){return t}allowed(t,e){return this.settings.length==undefined||this.settings.length[1]==undefined||e.value.length<this.settings.length[1]}}we("email",(t=>new We(t||{})));class Be{settings;mode;constructor(t,e){this.settings=t;this.mode=e}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}split(t){let e;let o="";return t.map(((t,s)=>{const i=s!==0&&t===t.toUpperCase()&&isNaN(+t)&&o!==" "&&this.isSymbolAllowed(t)&&e?" "+t:(t==="_"||t==="-")&&o!==" "?" ":t===" "&&o===" "||!this.isSymbolAllowed(t)||!e&&!this.isSymbolLetter(t)&&this.mode!=="code"?"":t;!e&&(e=this.isSymbolLetter(t));this.isSymbolAllowed(t)&&(o=t);return i})).toLower().delete("-").delete("_")}isSymbolLetter(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"}isSymbolAllowed(t){return this.isSymbolLetter(t)||t>="0"&&t<="9"||t===" "}partialFormat=this.format;format(t){const e=this.split(t);let o;switch(this.mode){case"code":o=e.delete(" ");break;case"pascal":case"camel":let s;o=e.map(((t,e)=>{const o=e===0&&this.mode==="pascal"||s?t.toUpperCase():t.toLowerCase();s=t==" ";return o})).delete(" ");break;case"snake":case"attribute":o=e.replace(" ",this.mode==="snake"?"_":"-");break;default:o=t}return{...o,...this.settings,type:"text",autocomplete:"on"}}unformat(t){return t}allowed(t,e){return this.isSymbolLetter(t)||t>="0"&&t<="9"&&(this.mode=="code"||e.value.length>0)||t=="_"&&this.mode=="snake"&&e.value.length>0||t=="-"&&this.mode=="attribute"&&e.value.length>0}}we("identifier-code",(t=>new Be(t||{},"code")));we("identifier-pascal",(t=>new Be(t||{},"pascal")));we("identifier-snake",(t=>new Be(t||{},"snake")));we("identifier-camel",(t=>new Be(t||{},"camel")));we("identifier-attribute",(t=>new Be(t||{},"attribute")));class Ve{country;constructor(t){this.country=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;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.substring(2,4)?"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"}}we("identity-number",(t=>new Ve(t&&t.length>0?t[0]:undefined)));class Ge{min;max;constructor(t){this.min=t.min;this.max=t.max}toString(t){return typeof t=="number"?t.toString():""}fromString(t){const e=typeof t=="string"?Number.parseInt(t):undefined;return typeof e=="number"&&!Number.isNaN(e)?e:undefined}partialFormat(t){return{...t,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^[0-9]+$/}}format(t){const e=this.partialFormat(t);const o=this.fromString(e.value);return{...e,value:o==undefined?e.value:this.min!=undefined&&o<this.min?this.toString(this.min):this.max!=undefined&&o>this.max?this.toString(this.max):e.value}}unformat(t){return t}allowed(t,e){return t>="0"&&t<="9"}}we("integer",(t=>new Ge(t?.[0]??{})));class Ke{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){return{...t,type:"password",autocomplete:"current-password"}}unformat(t){return t}allowed(t,e){return true}}we("password",(()=>new Ke));class Ze{toString(t){let e="";if(typeof t=="number"){const o=t.toString().split(".")[1]?.length??2;e=(t*100).toFixed(!o||o<=1?0:o-2)}return e}fromString(t){const e=typeof t=="string"?Number.parseFloat(t):undefined;return typeof e=="number"&&!Number.isNaN(e)?e/100:undefined}partialFormat=this.format;format(t){return{...t.value?t.suffix(" %"):t,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^\d+(.\d+)? %+$/}}unformat(t){return t.delete(" %")}allowed(t,e){return t>="0"&&t<="9"||t=="."&&!e.value.includes(".")}}we("percent",(()=>new Ze));const qe=[{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 Xe{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){let e=t;if(e.value.startsWith("+")){for(const t of qe)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=qe[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:"tel",autocomplete:"tel"}}unformat(t){return t.delete(" ").delete("-")}allowed(t,e){return t>="0"&&t<="9"||e.selection.start==0&&t=="+"&&!e.value.includes("+")}}we("phone",(()=>new Xe));class Je{country;constructor(t){this.country=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;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"}}we("postal-code",(t=>new Je(t&&t.length>0?t[0]:undefined)));class Qe{currency;toInteger;constructor(t){this.currency=t&&typeof t=="object"?t.currency:t;this.toInteger=t&&typeof t=="object"?t.toInteger:undefined}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}partialFormat(t){let e=t.value=="NaN"?t.replace(0,t.value.length,""):ge.copy(t);const o=this.currency&&C.decimalDigits(this.currency);e=this.addLeadingIntegerZero(e);e=this.fillDecimalsIfPresent(e,o,"onlyLimit");e=this.truncateIntegerZeros(e);e=this.addThousandSeparators(e);return{...e,remainder:this.format(t).value.slice(e.value.length),type:"text",inputmode:"numeric",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d*)?$")}}format(t){let e=t.value=="NaN"?t.replace(0,t.value.length,""):ge.copy(t);const o=this.currency&&C.decimalDigits(this.currency);if(!this.toInteger)e=this.forceDecimalZero(e,o);e=this.addLeadingIntegerZero(e);e=this.fillDecimalsIfPresent(e,o,"fillAndLimit");e=this.truncateIntegerZeros(e);e=this.addThousandSeparators(e);e=this.appendCurrency(e);return{...e,type:"text",inputmode:"numeric",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d+)?"+(this.currency?" "+this.currency:"")+"$")}}forceDecimalZero(t,e){if(!t.value.includes(".")&&e&&(Math.abs(Number.parseFloat(t.value))>=0||t.value=="0"))t=t.suffix(".0");return t}addLeadingIntegerZero(t){const e=t.value&&t.value.includes(".")?t.value.indexOf("."):undefined;if(e==0)t=t.prepend("0");return t}fillDecimalsIfPresent(t,e,o){const s=t.value.indexOf(".");if(s!=-1){const i=s+1+(e??2)-t.value.length;t=i<0?t.truncate(t.value.length+i):o=="fillAndLimit"?t.suffix("0".repeat(i)):t}return t}truncateIntegerZeros(t){const e=t.match(/^[0\s]{2,}/);if(e)t=t.replace(0,e[0].length,"0");return t}addThousandSeparators(t){let e=t.value.includes(".")?t.value.indexOf("."):t.value.length;const o=e<=0?0:Math.ceil(e/3)-1;for(let s=0;s<o;s++){const i=e-(o-s)*3;t=t.insert(i," ");e++}return t}appendCurrency(t){return this.currency&&(t.value.length>1||t.value.length==1&&t.value.charAt(0)!=".")?t.suffix(" "+this.currency):t}unformat(t){return this.currency?t.delete(" ").delete(""+this.currency):t.delete(" ")}allowed(t,e){return t>="0"&&t<="9"||t=="."&&!e.value.includes(".")&&(!this.currency||C.decimalDigits(this.currency)!=0)}}we("price",(t=>new Qe(t&&t.length>0?t[0]:undefined)));class to{settings;constructor(t){this.settings=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;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]}}we("text",(t=>new to(t||{})));class eo{toString(t){return typeof t=="string"?"#"+t:""}fromString(t){return t?"#"+t:undefined}partialFormat=this.format;format(t){const e=t.delete("#");return{...e.value?e.prepend("#"):e,type:"text",length:[4,7],pattern:/^#([0-9a-f]{3}|[0-9a-f]{6})$/i}}unformat(t){return t.delete("#")}allowed(t,e){return(t>="0"&&t<="9"||t>="a"&&t<="f"||t>="A"&&t<="F")&&e.value.length<6}}we("hex-color",(()=>new eo));const oo=".sc-smoothly-display-h{display:block;white-space:wrap}[hidden].sc-smoothly-display-h{display:none}.sc-smoothly-display-h>div.sc-smoothly-display{opacity:0.6;font-size:.8rem}";const so=oo;const io=class{constructor(e){t(this,e);this.type=undefined;this.label=undefined;this.value=undefined;this.collapseDepth=undefined;this.toInteger=undefined;this.currency=undefined;this.country=undefined;this.format=undefined}render(){var t,o;let s;const i=this.type;switch(i){case"json":s=e("smoothly-display-json",{key:"1ede546f9829aea0f9b8c319db98df10e07b04a3",value:this.value,collapseDepth:this.collapseDepth});break;default:s=Se(this.value,i);break;case"email":s=e("a",{key:"c6047f436091639f6302be22f62610c0515a4009",href:"mailto:"+this.value},Se(this.value,i));break;case"phone":s=e("a",{key:"b62431225a51efb22037598e4227671e863be3c3",href:"tel:"+this.value},Se(this.value,i,this.country));break;case"postal-code":s=Se(this.value,i,this.country);break;case"price":s=Se(this.value,i,{currency:this.currency,toInteger:this.toInteger});break;case"date":s=(t=xe(this.type,D()))===null||t===void 0?void 0:t.toString(this.value);break;case"duration":s=Se(this.value,i)||"0";break;case"date-time":s=this.format?x.localize(this.value,this.format,D()):(o=xe(this.type,D()))===null||o===void 0?void 0:o.toString(this.value);break}return this.label?[e("div",null,this.label),s]:s}};io.style=so;const ao=class{constructor(e){t(this,e);this.notice=o(this,"notice",7);this.downloadingSpinner=undefined}noticeWarning(t){console.log("emit",t);this.notice.emit(t)}render(){return[e("main",{key:"21fb2b79f1e444d11b25150a336ce64e74f94386"},e("fieldset",{key:"8b8ef87a351e4cb8754f44f74ad31185db62b0cb"},e("h2",{key:"e466ccf59ad1f4e2a41c8dd1b1d85da6b37c8f95"},"Smoothly display"),e("dl",{key:"acb593cb9a73566cc3defcc55eede3a7710a42b0"},e("dt",{key:"9ccdcb7f5e3f55ea39d78b8ed6e75edb5f4a4c96"},"Duration"),e("dd",{key:"b7c93ccc874874faabe5e313ba204795a19adfc0"},e("div",{key:"d6e3d99849191e6d8effae216348bd634a4114b2"},e("div",{key:"bb64f8e9518218a499d0e52b5df759b31093e0e0"},e("smoothly-display",{key:"151b7ca20847a1e41701d3c93ad780a222f990fb",style:{display:"inline"},type:"duration",value:{hours:13,minutes:100}})," h"),e("div",{key:"72035e5cab01fd9a06d2782ba1255c2f86cbfdac"},e("smoothly-display",{key:"0f4723aac6e41aa4a7e29b0456e4661066b28985",style:{display:"inline"},type:"duration",value:{hours:8}})," h"),e("div",{key:"1346fe1098e87dab09ae4268fab19f7eb18cd949"},e("smoothly-display",{key:"5e70c627fe2dc9e1d65cfec40fa63a36d419466f",style:{display:"inline"},type:"duration",value:{minutes:3}})," h"),e("div",{key:"24beed45ab0c2cb2703d97ddecb72b767f19d989"},e("smoothly-display",{key:"a57ee2a431537bffe6d8a630c2466e342a10f089",style:{display:"inline"},type:"duration",value:{hours:-13,minutes:100}})," h"),e("div",{key:"44f65151109d00905e996e9205d71588ecabaea3"},e("smoothly-display",{key:"5c0a01aca2d99cb82c66701d4c7d7de26043d987",style:{display:"inline"},type:"duration",value:{hours:-8}})," h"),e("div",{key:"18cbc082f3d8f71f3ba6c6b7eb3a977b13d45268"},e("smoothly-display",{key:"a5bbf74186f51ce22f6eceb8396f215e7b0fc297",style:{display:"inline"},type:"duration",value:{}})," h"),e("div",{key:"1d2361cec57f38f40636641702f92100ebcd9122"},e("smoothly-display",{key:"a561ef92252a23064e7f7f7ffca3314a099329f2",style:{display:"inline"},type:"duration",value:{minutes:-3}})," h"))),e("dt",{key:"ab7b23c9c2ad57ceb6a2ce75d8f0a4e93439e610"},"text"),e("dd",{key:"8913158f3f3a5c4012ae94a3f1b38442fcb5aff2"},e("smoothly-display",{key:"13d54b85dcf178d480c8c834c79c47231c785aa6",type:"text",value:"text"})),e("dt",{key:"e3c43484f7cc87eb9bf67d6474bc9552dbd643bd"},"postal code"),e("dd",{key:"0df2d428a7847b3ddf436d2e9db2fe367f41df80"},e("smoothly-display",{key:"8550c5ee46cc4e0c1bb956b2dbf8a62c452aee30",type:"postal-code",value:"752 31"})),e("dt",{key:"1b06810c083306938ce8d25b5582a15cb066b085"},"password"),e("dd",{key:"b078c56b5a9d62e23b9d9b8ab6cd4d10798aa726"},e("smoothly-display",{key:"773204df4456963fbcc5cc26416c40f8111e43d0",type:"password",value:"password"})),e("dt",{key:"38c93b73ae2830ef7995f9c6d93d62c1ba019680"},"email"),e("dd",{key:"3f822f17d630c3388155a66e97e0bbb6fb7c3951"},e("smoothly-display",{key:"f31678fe3df819cdc266876c54a1d810e9fbf9e8",type:"email",value:"test@example.com"})),e("dt",{key:"9abf27aa6b2a6ffc035f14adc1204e620d8061ce"},"price"),e("dd",{key:"15a0e06145971b2c14abb0250cbb7edcea81483b"},e("smoothly-display",{key:"256922cd4e8c86be1707c1ddc9d9e8550fe7b5b3",type:"price",value:"13.37",currency:"SEK"})),e("dt",{key:"84e0e9b898c72e2390a5b50cc2445a988a845a60"},"price without decimals"),e("dd",{key:"3979f33c43640eb1376a533755cc39ac1a8c17b3"},e("smoothly-display",{key:"04afd00d763536c5b1faa310074726f346914114",type:"price",value:200,currency:"SEK",toInteger:true})),e("dt",{key:"28c9ddc91d2ceb52a7bd60577570a0ece1ef1704"},"price with decimals if they are set, otherwise no decimal"),e("dd",{key:"e2ae34d84db38387ee3d81b474a606b7b3d40742"},e("smoothly-display",{key:"a8c053147e77e15ba5a6a7d372d24d0948d67bd0",type:"price",value:200.2,currency:"SEK",toInteger:true})),e("dt",{key:"a42173872dac85db0f822c70e69baef5a244b4ef"},"price with decimals"),e("dd",{key:"4034e3ca1bde5f9ba3f5cdca710d3757b7e12955"},e("smoothly-display",{key:"0a07c33c6bf9b14aeafcbbff3e9f6d2817eb7230",type:"price",value:200.2,currency:"SEK"})),e("dt",{key:"701bee2385a94b38bf90f58b3dc4fb65458188e6"},"percent"),e("dd",{key:"e1b856b2059122d2c80e5c242bb95429bca4caeb"},e("smoothly-display",{key:"2682ebd78e2753fc2b1d558e00cf10eec0449c83",type:"percent",value:"42"})),e("dt",{key:"d6504232e42d7bd6fb239b24f8065677bfe7f5ce"},"phone"),e("dd",{key:"3b2cf4c53cf6b6fba8687ab994d6ded634d60046"},e("smoothly-display",{key:"1cb2c5406dfbec1db57c05be5f59f828b005cb17",type:"phone",value:"0101881108"})),e("dt",{key:"94ee7083b2d5eef22e7ff0e15c460f6fd863db9e"},"card number"),e("dd",{key:"97954e5e4d12f6be04096006d51ea6c9ac3e7fa3"},e("smoothly-display",{key:"027c2522274e6e23f6cda08da141b24432671837",type:"card-number",value:"4111111111111111"})),e("dt",{key:"77cda0ed14b7a75ef02966d1b29bf94b6d5fe6ef"},"card expires"),e("dd",{key:"e2c1cbe5353efc0bea8435181499188bcdf8d051"},e("smoothly-display",{key:"4aab5bf769fb89cadd2bf3fbb279a219e668c85d",type:"card-expires",value:"7/22"})),e("dt",{key:"ecb64258605dbce40b3b6b8f51ec1922046ecd44"},"card csc"),e("dd",{key:"b37ef76653942f81a110df017f26c4c5699f32ad"},e("smoothly-display",{key:"e9cb2787e18d88f2cde4559c90f8ad9d45889d51",type:"card-csc",value:"987"})),e("dt",{key:"f028f598bc51de708361494c66264047b8ab777e"},"date"),e("dd",{key:"8900bb90156489b4cc9d22c663c9a2f5f80b1062"},e("smoothly-display",{key:"c31d4cf0631bf5495c9286bcc87a37c056ac6308",type:"date",value:"2022-07-07"})),e("dt",{key:"a9df319e34d74e6ec9ef36e9f9128cda2df9043b"},"date time"),e("dd",{key:"f57d07c19738d28a60e0138cc827218a0f1ef7af"},e("smoothly-display",{key:"663d9cfa4235e90f6a8231b9c7c7d6d0bd4beb4b",type:"date-time",format:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T02:02:02Z"})),e("dd",{key:"664a74d91f65917bff18734fd100347533fb9b4e"},e("smoothly-display",{key:"456469ffdc5ccdea880ad86f92b9a29c183dcdba",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",{key:"6714499c457900dee5e2cd5bedbba3ef7083b749"},e("smoothly-display",{key:"4fea3c22e9402170205a5019a17850576fbb06f7",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",{key:"79c14cffa0634ab2af6fd3ba014d081e28e38319"},e("smoothly-display",{key:"d5559326f39e2f5bc8311135176b5eedb4ed2870",type:"date-time",format:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),e("dd",{key:"419b427db910e49fd541de31e95c7dd3dbd2811e"},e("smoothly-display",{key:"ebd569c36dd017c14523ee1efc8925c622f7747e",type:"date-time",format:{year:"numeric",month:"short",day:"numeric"},value:"2022-07-07T00:00+02:00"})),e("dd",{key:"6df381d322a21b50ad70fc41fee8800721ca0889"},e("smoothly-display",{key:"1ace79e51e8285e5124158f567a73508833bdcb4",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric"},value:"2022-07-07T00:00+02:00"})),e("dd",{key:"dbdc1a002cab9e951678621ad394c1237e91f3f1"},e("smoothly-display",{key:"529e5cd2b7f4bde6b06dfb51832cb4cb498c3447",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",{key:"d7b788672f67fbf1d0528f604ef1e77673d2e69f"},"Display JSON"),e("dd",{key:"87a892e6845db8618efd46d571e8a90f30ce1e6d"},e("smoothly-display-demo-json",{key:"f66473975507a01af105282f01f640c1baaa88ae"})))),e("h2",{key:"084965cafe76cf10bac4804c82ea460c0960f7da"},"With labels"),e("dd",{key:"395e03618fc767dcca6b12386286a97c83882686"},e("smoothly-display",{key:"d5f90cfeaad01ea046ed543f54e70b089c91463d",label:"Today",type:"date",value:w.now()}),e("smoothly-display",{key:"3333769695dd0b7e0d54fd729f2b3b59dc34737c",label:"Total amount",type:"price",currency:"SEK",value:6789}),e("smoothly-display",{key:"57070580aa9096b1d273bb7cb51a6ac82e22f9ca",label:"Total amount",type:"price",currency:"GBP",value:678.9}),e("smoothly-display",{key:"b4af7875200f61caf1c51f969c61362af7b3d402",label:"Logs",type:"json",value:[{type:"trace",message:"Hello"},{type:"error",message:"Oh no!"}]})),e("fieldset",{key:"411e5133a5c4bf2d36ad1c6b00cf549e769d7665"},e("h2",{key:"536dd0526204b6d389c670c576f32bca45c3630e"},"Test of different kinds of notifier"),e("button",{key:"2faebb0bcea77262e0a18b5e8a375bef7b5de11b",onClick:()=>this.noticeWarning(L.warn("This is a test warning notice."))},"warning"),e("button",{key:"21181f519f1bfe818fcc084596be2317fe541968",onClick:()=>this.noticeWarning(L.succeeded("This is a test success notice."))},"success"),e("button",{key:"c67c4056842c761165115333bb079165609208f1",onClick:()=>this.noticeWarning(L.failed("This is a test danger notice."))},"danger"),e("button",{key:"a42b0b8a77b40fa6ddea705306634489abaec09b",onClick:()=>this.noticeWarning(L.execute("This is a test execute notice.",(()=>new Promise((t=>window.setTimeout((()=>t([true,"This went great"])),3e3))))))},"execute"),e("button",{key:"d651ea26abb9ce9dd336b45ded8849fc4a00c56a",onClick:()=>this.noticeWarning(L.delay("This is a test delay notice.",(()=>new Promise((t=>window.setTimeout((()=>t([true,"This went great"])),3e3))))))},"delay")),e("fieldset",{key:"91b1d46f457a5261ddff3a1bc67db822190f0591"},e("h2",{key:"d46c2765def7f55a8bd225dbd9f1c5379029878b"},"Smoothly spinner"),e("div",{key:"efb40135dbbbd78e6ba4c9927ff212178a3da9eb",style:{width:"fit-content"}},"Large",e("smoothly-spinner",{key:"70616018eb896ff0bd28744b504fec5c416f1b45",size:"large",style:{"--spinner-background":"200,255,200","--spinner-background-opacity":"0.2","--spinner-color":"0,130,0"}})),e("div",{key:"585aff079f29aaeb3319268ebcf3857bec165942",style:{width:"fit-content"}},"Medium",e("smoothly-spinner",{key:"d46336b4e6fe98d2d2958c3047747b07d7999fe8",size:"medium"})),e("div",{key:"47db1735399b1b59e582b94229c4fdc51389b51d",style:{width:"fit-content"}},"Small",e("smoothly-spinner",{key:"8292ad153260c3cd3d26ad597effa2356e913ca9",size:"small"})),e("div",{key:"45ed5bea68185714286757dfa56d14b5987c3a19"},"Icon sized spinner on button",r.types.map((t=>e("smoothly-button",{size:"icon",color:t,shape:"rounded",onClick:()=>{this.downloadingSpinner=true;setTimeout((()=>this.downloadingSpinner=false),3e3)}},!this.downloadingSpinner&&e("smoothly-icon",{name:"download-outline"}),this.downloadingSpinner&&e("smoothly-spinner",{size:"icon",style:{"--spinner-background-opacity":"0"}}))))),e("h3",{key:"d793d083180c7ce2cdaed3edc8d9b3aa88b827b3"},"Spinner with overlay"),e("div",{key:"4e84a2f337c94398e86eab3dbfb055906e6e3640",style:{position:"relative",height:"10em"}},"Large Overlay Spinner",e("smoothly-spinner",{key:"f82d069b8d3ebf5f9a13e53e1ad7c60b19d21778",overlay:true,size:"large",style:{"--spinner-background":"255,200,255","--spinner-background-opacity":"0.5","--spinner-color":"0,130,0"}})),e("div",{key:"d7403378fc9b34cef1a918ef9cc5ea7f27e81723",style:{position:"relative",height:"10em"}},"Medium Overlay Spinner",e("smoothly-spinner",{key:"e93ef55fe61481db7105153ece6ff80c498b8fad",overlay:true,color:"secondary",size:"medium"})),e("div",{key:"c93c240c27abe1b38914b1af37eb374715038fd1",style:{position:"relative",height:"10em"}},"Small Overlay Spinner",e("smoothly-spinner",{key:"7519fb4f9bfaf9e4f3792833db59d9617d64240c",overlay:true,size:"small"}))),e("fieldset",{key:"94281d9137b942eb9d25b110d923608d66f4151f"},e("h2",{key:"12c705c2f5cdaf7a2dbcf4f71067aa1563156b53"},"Smoothly summary"),e("smoothly-summary",{key:"a94bc08481df51edee165c5f3ff4b0b6b524100b"},e("p",{key:"7697067b2742d7527b91c1e57dc252d5bc047b95",slot:"summary"},"Some title"),e("p",{key:"bf1b7cabdb250a6eb6401ea6a4f6f4fe56d4be95",slot:"content"},"Some content")),e("smoothly-summary",{key:"4a59074a291f48dbc2079eba28859176e139d145",size:"large"},e("p",{key:"29d101a62f8928b7226b4539fb133d6fb45582f0",slot:"summary"},"Some title"),e("p",{key:"24ca49ed27372ecf26904fe72e944c3f561b47f6",slot:"content"},"Some content")),e("smoothly-summary",{key:"d3b8dd90214c6adcaeb5cfee6d36d805c83c7322",color:"danger",fill:"clear"},e("div",{key:"0db1d4d0d722605b00aa5a4fdbce3a701287ce8e",slot:"summary",style:{display:"flex",gap:"0.3rem"}},e("span",{key:"2742c8dfb4e5ad70f433ed708424c64da93130fd"},"Person"),e("smoothly-icon",{key:"84059e999cea916c17ccbb87acab606d3b23e15b",name:"person",color:"light",fill:"clear",size:"tiny"})),e("p",{key:"67818f7de2e59494d452d89a89b2437a4f66cf72",slot:"content"},"Some person information.")),e("smoothly-summary",{key:"0f80219dc807486f83f6cae09e2240892608e00c",color:"danger",fill:"clear",open:true},e("p",{key:"e8cdfc372f68dbd7d1d04abe20e3744bfec51820",slot:"summary"},"Some other title"),e("p",{key:"a7a9ca8f540ce7847c51f788617e999df999dc1c",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.")),e("h2",{key:"3533e4642ed7300f49ac9d7aeaad55d40b1c598d"},"Label"),no.map((t=>e("smoothly-label",{hue:t.hue,description:t.description,shape:"rectangle"},t.name))),e("smoothly-label",{key:"82e99f058b45ee8eaaeeb5d855856ad3fb1d8f61",color:"primary",description:"Using colors",shape:"rectangle"},"Primary")))]}};const no=[{name:"2fa",hue:120,description:"User has two factor authentication enabled."},{name:"expired",hue:240,description:"User's password has expired."},{name:"inactive",hue:60,description:"User is inactive."}];const lo=class{constructor(e){t(this,e)}render(){return e(s,{key:"ea329526023da3b7329d8b7bd1cb34316542fd93"},[0,1,3,undefined].map((t=>[e("div",null,"collapseDepth=",t!==null&&t!==void 0?t:"undefined"),e("div",null,e("smoothly-display",{type:"json",value:ro,collapseDepth:t}))])))}};const ro={name:"stringy",nested:{age:109,array:["one","two","three",{name:"four"}],emptyObject:{},emptyArray:[],truthy:true,falsy:false,null:null,notDefined:undefined,longString:"pepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakor"}};const co=({value:t,collapseDepth:o})=>z().is(t)||Array.isArray(t)?e("smoothly-display-json-object",{value:t,collapseDepth:o}):e("smoothly-display-json-primitive",{value:t});const ho=".sc-smoothly-display-json-h{font-family:monospace}";const mo=ho;const uo=class{constructor(e){t(this,e);this.value=undefined;this.collapseDepth=undefined}render(){return e(co,{key:"a817223386521cc073aeab087efc636977b65e0a",value:this.value,collapseDepth:this.collapseDepth})}};uo.style=mo;const yo='.sc-smoothly-display-json-object-h{font-family:monospace;position:relative}[hidden].sc-smoothly-display-json-object-h{display:none}.indent.sc-smoothly-display-json-object{padding-left:1rem;border-left:1px solid rgb(var(--smoothly-light-shade))}.sc-smoothly-display-json-object-h:not(.open) .content.sc-smoothly-display-json-object{display:none}.sc-smoothly-display-json-object-h>.content.sc-smoothly-display-json-object>.indent.sc-smoothly-display-json-object:last-child>.comma.sc-smoothly-display-json-object{display:none}.open-bracket.sc-smoothly-display-json-object::after{background-color:rgb(var(--smoothly-light-color));color:rgb(var(--smoothly-light-shade));white-space:pre;border-radius:0.25rem;font-weight:bold;font-size:0.8em}.sc-smoothly-display-json-object-h:not(.open):not(.empty)>.open-bracket.sc-smoothly-display-json-object::after{content:" ▶ " attr(data-length) " ◀ "}.open.sc-smoothly-display-json-object-h:not(.empty)>.open-bracket.sc-smoothly-display-json-object::after{content:" ▼ "}';const bo=yo;const fo=class{constructor(e){t(this,e);this.openBracket="";this.closeBracket="";this.value=undefined;this.collapseDepth=undefined;this.open=undefined;this.empty=undefined}componentWillLoad(){this.open=typeof this.collapseDepth=="number"?this.collapseDepth>0:true;if(Array.isArray(this.value)){this.openBracket="[";this.closeBracket="]";this.length=this.value.length}else{this.openBracket="{";this.closeBracket="}";this.length=Object.keys(this.value).length}this.empty=this.length==0}render(){const t=typeof this.collapseDepth=="number"?Math.max(this.collapseDepth-1,0):undefined;return e(s,{key:"2878d58011daeccd9d1e3383f1081883f08ec598",class:{empty:this.empty,open:this.open}},e("span",{key:"8e07de6271113ae7c223c44a2193162071cf9eaf",class:"open-bracket",onClick:()=>this.open=!this.open,"data-length":this.length},this.openBracket),e("span",{key:"c850ca12c687165a5f752a1e3315a0d7bd947971",class:"content"},Array.isArray(this.value)?this.value.map((o=>e("div",{class:"indent"},e(co,{value:o,collapseDepth:t}),e("span",{class:"comma"},",")))):Object.entries(this.value).map((([o,s])=>e("div",{class:"indent"},e("smoothly-display-json-record-key",{value:o}),":"," ",e(co,{value:s,collapseDepth:t}),e("span",{class:"comma"},","))))),e("span",{key:"462371f02f42cbc4787b7a7a4eb0ff0b4598d326"},this.closeBracket))}};fo.style=bo;const po=".sc-smoothly-display-json-primitive-h{font-family:monospace;display:inline;word-wrap:anywhere}[hidden].sc-smoothly-display-json-primitive-h{display:none}.string.sc-smoothly-display-json-primitive-h,.number.sc-smoothly-display-json-primitive-h,.boolean.sc-smoothly-display-json-primitive-h{font-weight:bold}.string.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-primary-color))}.number.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-secondary-color))}.boolean.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-tertiary-color))}.null.sc-smoothly-display-json-primitive-h,.undefined.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-medium-color))}";const go=po;const ko=class{constructor(e){t(this,e);this.value=undefined}render(){return e(s,{key:"171404fee1a7bdd8ecd7beb0032c136e4e2652d8",class:this.value==null?"null":typeof this.value},""+JSON.stringify(this.value))}};ko.style=go;const vo=".sc-smoothly-display-json-record-key-h{font-family:monospace;display:inline;color:rgb(var(--smoothly-default-contrast))}[hidden].sc-smoothly-display-json-record-key-h{display:none}";const wo=vo;const xo=class{constructor(e){t(this,e);this.value=undefined}render(){return e(s,{key:"525fa15610e18dc3073cc4c28b1acf559a4c4a8a"},'"',this.value,'"')}};xo.style=wo;class So{filter(t){return t.filter((t=>this.is(t)))}stringify(t=0){let e=this.toString();if(this.precedence<t)e="("+e+")";return e}}const Co=[t=>t instanceof So?t:undefined];function zo(t){Co.push(t)}let jo;function _o(t){jo=t}function Io(t){let e;for(const o of Co){e=o(t);if(e)break}return e||jo}class To extends So{constructor(){super();this.precedence=Number.MAX_SAFE_INTEGER;this.class="Always"}is(t){return true}toString(){return""}}_o(new To);class Oo extends So{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)}}class Lo extends So{constructor(t){super();this.precedence=40;this.class="And";this.rules=t.reduce(((t,e)=>e instanceof Lo?[...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 Lo(this.rules.map((t=>t.class=="Property"?t:new Oo(t))))}}function Ao(...t){return new Lo(t.map(Io))}var Mo;(function(t){t.is=Eo})(Mo||(Mo={}));function Eo(t,e=false){return typeof t=="number"||typeof t=="string"||t instanceof So||e&&typeof t=="object"&&t&&Object.values(t).every((t=>Array.isArray(t)?t.every((t=>Eo(t,true))):Eo(t,true)))}var Do=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var $o={};var Ro={};var Po={};var Fo={};var Ho={};(function(t){Object.defineProperty(t,"__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"})(t.Level||(t.Level={}))})(Ho);Object.defineProperty(Fo,"__esModule",{value:true});const No=Ho;class Yo{constructor(t,e=No.Level.Recoverable,o="unknown",s){this.description=t;this.level=e;this.type=o;this.region=s}toString(){return No.Level[this.level]+": "+this.type+" error. "+this.description+(this.region?" @ "+this.region.toString():"")}}Fo.Message=Yo;Object.defineProperty(Po,"__esModule",{value:true});const Uo=Fo;class Wo{raise(t,e,o,s){if(!(t instanceof Uo.Message))t=new Uo.Message(t,e,o,s);console.error(t.toString())}}Po.ConsoleHandler=Wo;var Bo={};var Vo={};Object.defineProperty(Vo,"__esModule",{value:true});class Go{constructor(t,e){this.line=t;this.column=e}toString(){return"Ln "+this.line+", Col "+this.column}}Vo.Position=Go;Object.defineProperty(Bo,"__esModule",{value:true});const Ko=Vo;class Zo extends Ko.Position{constructor(t,e,o){super(e,o);this.resource=t}toString(){return this.resource.toString()+" @ "+super.toString()}}Bo.Location=Zo;var qo={};Object.defineProperty(qo,"__esModule",{value:true});class Xo{constructor(t,e,o,s){this.resource=t;this.start=e;this.end=o;this.content=s}merge(t){return t?new Xo(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}}qo.Region=Xo;Object.defineProperty(Ro,"__esModule",{value:true});var Jo=Po;Ro.ConsoleHandler=Jo.ConsoleHandler;var Qo=Ho;Ro.Level=Qo.Level;var ts=Bo;Ro.Location=ts.Location;var es=Fo;Ro.Message=es.Message;var os=Vo;Ro.Position=os.Position;var ss=qo;Ro.Region=ss.Region;var is={};var as={};var ns={};var ls={};var rs={};Object.defineProperty(rs,"__esModule",{value:true});class cs{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 o=t.split(":",2);e=new cs(o[0],o[1])}else e=new cs;return e}}rs.User=cs;var hs={};Object.defineProperty(hs,"__esModule",{value:true});class ds{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 o=t.split(":",2);e=new ds(o[0].split("."),o.length>1?parseInt(o[1]):undefined)}else e=new ds;return e}}hs.Endpoint=ds;Object.defineProperty(ls,"__esModule",{value:true});const ms=rs;const us=hs;class ys{constructor(t=new ms.User,e=new us.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 o=t.split("@",2);e=new ys(ms.User.parse(o.length==2?o.pop():undefined),us.Endpoint.parse(o.pop()))}return e}}ls.Authority=ys;var bs={};Object.defineProperty(bs,"__esModule",{value:true});const fs=ls;class ps{constructor(t=[],e=new fs.Authority,o=[],s={},i){this.scheme=t;this.authority=e;this.path=o;this.query=s;this.fragment=i}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 ps(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 ps(this.scheme,this.authority,e,this.query,this.fragment)}resolve(t){return!t?this:new ps(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 ps(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 o=true;let s=[];let i=t.split("://",2);if(i.length>1){s=(i.shift()||"").split("+");t=i.shift()}else if(t.slice(0,2)=="//")t=t.slice(2);else o=false;let a;let n;if(t&&(a=t.lastIndexOf("#"))>-1){n=t.slice(a+1);t=t.slice(0,a)}let l={};if(t&&(a=t.lastIndexOf("?"))>-1){l=new Object;t.slice(a+1).split(";").forEach((t=>{i=t.split("=");const e=i.shift();const o=i.shift();if(e&&o)l[e]=o}));t=t.slice(0,a)}let r;let c=[];if(t){i=t.split("/");if(i.length>0){switch(i[0]){case".":case"..":break;case"":i.shift();break;default:if(o)r=fs.Authority.parse(i.shift());else i.unshift(".");break}c=i}}e=new ps(s,r,c,l,n);break}return e}}bs.Locator=ps;ps.empty=new ps(undefined,undefined,undefined,undefined,undefined);Object.defineProperty(ns,"__esModule",{value:true});var gs=ls;ns.Authority=gs.Authority;var ks=hs;ns.Endpoint=ks.Endpoint;var vs=bs;ns.Locator=vs.Locator;var ws=rs;ns.User=ws.User;var xs={};var Ss={};var Cs={};Object.defineProperty(Cs,"__esModule",{value:true});class zs{}Cs.Device=zs;Object.defineProperty(Ss,"__esModule",{value:true});const js=Cs;class _s extends js.Device{}Ss.InDevice=_s;Object.defineProperty(xs,"__esModule",{value:true});const Is=Ss;class Ts extends Is.InDevice{static addOpener(t,e){if(!e)e=0;Ts.openers.push({open:t,priority:e});Ts.openers=Ts.openers.sort(((t,e)=>e.priority-t.priority))}static open(t){let e;let o=0;do{e=Ts.openers[o++].open(t)}while(!e&&o<Ts.openers.length);return e}}xs.Reader=Ts;Ts.openers=[];Object.defineProperty(as,"__esModule",{value:true});const Os=ns;const Ls=Ro;const As=xs;var Ms=xs;as.Reader=Ms.Reader;class Es extends As.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:Os.Locator.empty}get location(){return this.locationValue}get region(){return new Ls.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 Es(t):undefined}}as.BufferedReader=Es;var Ds={};var $s={};var Rs=Do&&Do.__awaiter||function(t,e,o,s){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{r(s.next(t))}catch(t){a(t)}}function l(t){try{r(s["throw"](t))}catch(t){a(t)}}function r(t){t.done?o(t.value):i(t.value).then(n,l)}r((s=s.apply(t,e||[])).next())}))};Object.defineProperty($s,"__esModule",{value:true});function Ps(t){return Rs(this,void 0,void 0,(function*(){}))}$s.close=Ps;function Fs(t){return Rs(this,void 0,void 0,(function*(){}))}$s.fsync=Fs;function Hs(t,e,o){return Rs(this,void 0,void 0,(function*(){return 0}))}$s.open=Hs;function Ns(t,e,o,s){return Rs(this,void 0,void 0,(function*(){return{bytesWritten:0}}))}$s.write=Ns;function Ys(t,e){return{isDirectory:()=>false}}$s.lstatSync=Ys;function Us(t){return[]}$s.readdirSync=Us;function Ws(t,e){return""}$s.readFileSync=Ws;var Bs={};Object.defineProperty(Bs,"__esModule",{value:true});const Vs="/";Bs.sep=Vs;var Gs={};var Ks=Do&&Do.__awaiter||function(t,e,o,s){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{r(s.next(t))}catch(t){a(t)}}function l(t){try{r(s["throw"](t))}catch(t){a(t)}}function r(t){t.done?o(t.value):i(t.value).then(n,l)}r((s=s.apply(t,e||[])).next())}))};Object.defineProperty(Gs,"__esModule",{value:true});const Zs=Ro;const qs=ns;const Xs=xs;class Js extends Xs.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 Zs.Location(this.resource,this.line,this.column)}get region(){return new Zs.Region(this.resource,this.lastPosition,this.location,this.lastContent)}close(){return Ks(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 Js(t,e||qs.Locator.empty):undefined}}Gs.StringReader=Js;Object.defineProperty(Ds,"__esModule",{value:true});const Qs=$s;const ti=Bs;const ei=ns;const oi=xs;const si=Gs;class ii extends oi.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:ei.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=si.StringReader.create(Qs.readFileSync((t.isRelative?"":ti.sep)+t.path.join(ti.sep),"utf-8"),t)}catch(e){console.log(`Failed to open file: ${t.toString()}`)}return e?new ii(e):undefined}}Ds.FileReader=ii;oi.Reader.addOpener((t=>ii.open(t)),10);var ai={};var ni=Do&&Do.__awaiter||function(t,e,o,s){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{r(s.next(t))}catch(t){a(t)}}function l(t){try{r(s["throw"](t))}catch(t){a(t)}}function r(t){t.done?o(t.value):i(t.value).then(n,l)}r((s=s.apply(t,e||[])).next())}))};Object.defineProperty(ai,"__esModule",{value:true});const li=$s;const ri=Bs;const ci=ns;const hi=Ro;const di=xs;const mi=Ds;class ui extends di.Reader{constructor(t){super();this.files=t;this.tabSizeValue=2;this.lastLocation=new hi.Location(ci.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 hi.Region(this.resource)}close(){return ni(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=mi.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 hi.Region(this.resource)}static getFiles(t,e,o=[]){let s=[];const i=li.readdirSync(t);i.forEach((i=>{const a=t+ri.sep+i;if(o.indexOf(a)==-1){if(li.lstatSync(a).isDirectory())s=s.concat(ui.getFiles(a,e,o));else if(i.length>e.length&&i.lastIndexOf(e,i.length-e.length)===i.length-e.length)s.push(a)}}));return s}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=ui.getFiles((t.isRelative?"":ri.sep)+t.folder.path.join(ri.sep),t.extension)}catch(t){}return e?new ui(e.map((t=>new ci.Locator(["file"],undefined,t.split(ri.sep))))):undefined}}ai.FolderReader=ui;di.Reader.addOpener((t=>ui.open(t)),0);var yi={};var bi={};var fi={};var pi={};Object.defineProperty(pi,"__esModule",{value:true});function*gi(t){let e;while((e=t())!=undefined)yield e}function ki(t){return t.next instanceof Function}function*vi(t,e){let o;while(!(o=t.next()).done)yield o.value;if(ki(e))while(!(o=e.next()).done)yield o.value;else yield e}class wi{constructor(t){this.iterator=t instanceof Function?gi(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 wi(vi(this,t))}map(t){return new wi((()=>{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 wi((()=>{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 wi(t)}}pi.Enumerator=wi;wi.empty=wi.from((()=>undefined));var xi={};Object.defineProperty(xi,"__esModule",{value:true});const Si=pi;function Ci(t){return t==null?false:typeof t[Symbol.iterator]==="function"}class zi{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 Si.Enumerator(this.get())}[Symbol.iterator](){return this.getEnumerator()}append(t){return new zi((()=>this.get().append(t)))}map(t){return new zi((()=>this.get().map(t)))}reduce(t,e){return this.get().reduce(t,e)}apply(t){this.get().apply(t)}filter(t){return new zi((()=>this.get().filter(t)))}toArray(){return this.getEnumerator().toArray()}static from(t){return Ci(t)?new zi((()=>new Si.Enumerator(t[Symbol.iterator]()))):new zi((()=>{const e=t();return e instanceof Si.Enumerator?e:new Si.Enumerator(e)}))}}xi.Enumerable=zi;zi.empty=zi.from([]);var ji={};Object.defineProperty(ji,"__esModule",{value:true});const _i=pi;class Ii extends _i.Enumerator{constructor(t){super((()=>this.position<this.backend.length?this.backend[this.position++]:undefined));this.backend=t;this.position=0}}ji.ArrayEnumerator=Ii;var Ti={};Object.defineProperty(Ti,"__esModule",{value:true});const Oi=pi;class Li extends Oi.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]}}Ti.BufferedEnumerator=Li;var Ai={};Object.defineProperty(Ai,"__esModule",{value:true});class Mi{static padLeft(t,e,o){return Mi.pad(t,e,o,true)}static padRight(t,e,o){return Mi.pad(t,e,o,false)}static pad(t,e,o,s){let i="";const a=o-t.length;for(let t=0;t<a;t++)i+=e;return s?i+t:t+i}}Ai.String=Mi;Object.defineProperty(fi,"__esModule",{value:true});var Ei=pi;fi.Enumerator=Ei.Enumerator;var Di=xi;fi.Enumerable=Di.Enumerable;var $i=ji;fi.ArrayEnumerator=$i.ArrayEnumerator;var Ri=Ti;fi.BufferedEnumerator=Ri.BufferedEnumerator;var Pi=Ai;fi.String=Pi.String;var Fi={};Object.defineProperty(Fi,"__esModule",{value:true});const Hi=Cs;class Ni extends Hi.Device{}Fi.OutDevice=Ni;var Yi=Do&&Do.__awaiter||function(t,e,o,s){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{r(s.next(t))}catch(t){a(t)}}function l(t){try{r(s["throw"](t))}catch(t){a(t)}}function r(t){t.done?o(t.value):i(t.value).then(n,l)}r((s=s.apply(t,e||[])).next())}))};Object.defineProperty(bi,"__esModule",{value:true});const Ui=ns;const Wi=fi;const Bi=Fi;class Vi extends Bi.OutDevice{constructor(){super(...arguments);this.newLineSymbol="\n"}write(t){return Yi(this,void 0,void 0,(function*(){return t instanceof Wi.Enumerator?this.writeImplementation(t):t instanceof Array?this.writeImplementation(new Wi.ArrayEnumerator(t)):this.writeImplementation(new Wi.ArrayEnumerator([t]))}))}writeLine(t){return Yi(this,void 0,void 0,(function*(){return t instanceof Wi.Enumerator?this.writeImplementation(t.append(this.newLineSymbol)):t instanceof Array?this.writeImplementation(new Wi.ArrayEnumerator([...t,this.newLineSymbol])):t?this.writeImplementation(new Wi.ArrayEnumerator([t,this.newLineSymbol])):this.writeImplementation(new Wi.ArrayEnumerator([this.newLineSymbol]))}))}static addOpener(t,e){if(!e)e=0;Vi.openers.push({open:t,priority:e});Vi.openers=Vi.openers.sort(((t,e)=>e.priority-t.priority))}static open(t){return Yi(this,void 0,void 0,(function*(){let e;if(typeof t=="string"){const o=Ui.Locator.parse(t);e=o?yield Vi.open(o):undefined}else{let o=0;do{e=yield Vi.openers[o++].open(t)}while(!e&&o<Vi.openers.length)}return e}))}}bi.Writer=Vi;Vi.openers=[];Object.defineProperty(yi,"__esModule",{value:true});const Gi=bi;class Ki extends Gi.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)))}}yi.Indenter=Ki;var Zi={};Object.defineProperty(Zi,"__esModule",{value:true});const qi=xs;const Xi=as;class Ji extends qi.Reader{constructor(t,e){super();this.prefix=e;this.done=false;this.backend=t instanceof Xi.BufferedReader?t:Xi.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 Ji(t,e):t}}Zi.PrefixReader=Ji;var Qi={};var ta=Do&&Do.__awaiter||function(t,e,o,s){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{r(s.next(t))}catch(t){a(t)}}function l(t){try{r(s["throw"](t))}catch(t){a(t)}}function r(t){t.done?o(t.value):i(t.value).then(n,l)}r((s=s.apply(t,e||[])).next())}))};Object.defineProperty(Qi,"__esModule",{value:true});const ea=$s;const oa=Bs;const sa=bi;class ia extends sa.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 ta(this,void 0,void 0,(function*(){let t=true;try{yield ea.fsync(this.descriptor)}catch(e){t=false}return t}))}close(){return ta(this,void 0,void 0,(function*(){let t=this.opened;if(t){try{yield ea.close(this.descriptor)}catch(e){t=false}this.descriptor=0}return t}))}writeImplementation(t){return ta(this,void 0,void 0,(function*(){let e=true;const o=Buffer.from(t.reduce(((t,e)=>t+e),""));try{const t=yield ea.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 ta(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 ea.open((t.isRelative?"":oa.sep)+t.path.join(oa.sep),"w")}catch(t){e=undefined}return e?new ia(t,e):undefined}))}}Qi.FileWriter=ia;sa.Writer.addOpener(ia.open);var aa={};Object.defineProperty(aa,"__esModule",{value:true});const na=xs;const la=as;class ra extends na.Reader{constructor(t,e){super();this.endMark=e;this.done=false;this.backend=t instanceof la.BufferedReader?t:la.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 ra(t,e):t}}aa.TillReader=ra;var ca={};Object.defineProperty(ca,"__esModule",{value:true});const ha=xs;const da=as;class ma extends ha.Reader{constructor(t,e){super();this.endMark=e;this.done=-1;this.backend=t instanceof da.BufferedReader?t:da.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 ma(t,e):t}}ca.UntilReader=ma;Object.defineProperty(is,"__esModule",{value:true});var ua=as;is.BufferedReader=ua.BufferedReader;var ya=Cs;is.Device=ya.Device;var ba=Ds;is.FileReader=ba.FileReader;var fa=ai;is.FolderReader=fa.FolderReader;var pa=yi;is.Indenter=pa.Indenter;var ga=Ss;is.InDevice=ga.InDevice;var ka=Fi;is.OutDevice=ka.OutDevice;var va=Zi;is.PrefixReader=va.PrefixReader;var wa=xs;is.Reader=wa.Reader;var xa=Gs;is.StringReader=xa.StringReader;var Sa=Qi;is.FileWriter=Sa.FileWriter;var Ca=aa;is.TillReader=Ca.TillReader;var za=ca;is.UntilReader=za.UntilReader;var ja=bi;is.Writer=ja.Writer;Object.defineProperty($o,"__esModule",{value:true});const _a=Ro;var Ia=$o.Error=_a;const Ta=is;var Oa=$o.IO=Ta;const La=ns;$o.Uri=La;const Aa=fi;var Ma=$o.Utilities=Aa;class Ea extends Oa.BufferedReader{constructor(t,e){super(typeof t=="string"?Oa.StringReader.create(t):t);this.errorHandler=e}raise(t,e,o="lexical",s){if(!(t instanceof Ia.Message)){if(!e)e=Ia.Level.Critical;if(!s)s=this.region;t=new Ia.Message(t,e,o,s)}if(this.errorHandler)this.errorHandler.raise(t)}requirePrefix(t){return new Ea(new Oa.PrefixReader(this,t),this.errorHandler)}till(t){return new Ea(Oa.TillReader.create(this,t),this.errorHandler)}until(t){return new Ea(Oa.UntilReader.create(this,t),this.errorHandler)}peekIsSymbol(t){return this.peekIs(t??["!","(",")","[","]","|","*",":",".","<=",">=","<",">"," * "," + "," - "," / ",","])?.length??false}peekIsWhitespace(){return!!this.peekIs([" ","\n","\t"])}}function Da(t,e,o){const s=new Ea(t,e);return new Ma.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}))}class $a{tokenize(t){return Da(t,undefined,["!","(",")","[","]","|"," | ","*",":",".","<=",">=","<",">"," * "," + ","+"," - ","-"," / "]).map((t=>({value:t.value}))).toArray()}}class Ra extends $a{constructor(t){super();this.class="array";this.array=t}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;return Ra.completor.flatMap((t=>t(s,this,e))).reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[])}isType(t){return global.Array.isArray(t)}static add(...t){this.completor.push(...t)}static is(t){return t instanceof Ra}}Ra.completor=[];var Pa;(function(t){function e(t){return typeof t=="object"&&typeof t.start=="number"&&typeof t.end=="number"}t.is=e})(Pa||(Pa={}));var Fa;(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??""),cursor:typeof e?.cursor=="number"?e?.cursor+t.length:Pa.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})(Fa||(Fa={}));class Ha extends $a{constructor(){super();this.class="boolean"}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;const i=o?Ha.literals.filter((t=>t.value.startsWith(s[0]?.value??""))):s[0]?.value==":"?Fa.prepend(":",Ha.literals.filter((t=>t.value.startsWith(s[1]?.value??"")))):[];return[...i??[],...(o?[]:Ha.completor).flatMap((t=>t(s,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)}}Ha.literals=[{value:"true",suggestion:{value:"true"}},{value:"false",suggestion:{value:"false"}}];Ha.completor=[];var Na;(function(t){function e(t,e,o){return t.length==0?[{value:":",suggestion:{value:":"}}]:t.length<=3&&t[0].value==":"&&o.value.startsWith(t[1]?.value??"")&&(t[2]?.value??"(")=="("?Fa.prepend(":",[o]):t.length<=4&&t.slice(0,4).reduce(((t,e)=>t+e.value),"")==":"+o.value?Fa.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?Fa.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?Fa.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?Fa.prepend(":",[o]):Fa.prepend(":",e(t.slice(1)))}t.expressions=o;function s(t,e,o){return t.length>=1&&t[0].value==o.value?Fa.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})(Na||(Na={}));class Ya extends $a{constructor(t){super();this.input=t;this.class="number";if(t)this.value=t}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;return[...s.length>0&&s[0].value==":"&&e?Fa.prepend(":",e.complete(s.slice(1),undefined,this)):e&&s.length>=0&&o?Fa.prepend(" ",e?.complete(s,undefined,undefined)):[],...(o?Ya.completorArgument:Ya.completor).flatMap((t=>t(s,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 Ya||!global.Number.isNaN(t)}}Ya.completor=[];Ya.completorArgument=[];class Ua extends $a{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,o){const s=typeof t=="string"?this.tokenize(t):t;let i;const a=this.filterByType(o);if(!e){const t=s.length>0?this.match(s[0],a):undefined;if(t)i=s.length>=1?Fa.prepend(t.value,this.properties[t.value].complete(s.slice(1),this,o)):[];else if(o&&s.length>2&&o.isType(s[0].value+s[1].value+s[2].value))i=Fa.prepend(s[0].value+s[1].value+s[2].value,o.complete(s.slice(3),this,o));else if(o&&s.length>0&&o.isType(s[0].value))i=Fa.prepend(s[0].value,o.complete(s.slice(1),this,o));else{let t;i=s.length==0?[...this.addDot(a,o),...o?.class=="number"?[]:Ua.wildcard]:s.length==1&&(t=Ua.wildcard.find((t=>t.value==s[0].value)))?Fa.prepend(t.value,this.completions,o?".":""):s.length>=1&&(t=Ua.wildcard.find((t=>t.value==s[0].value)))?Fa.prepend(t.value,this.complete(s.slice(1))):this.addDot(this.partial(s[0],a),o)}}else i=s.length==0?[{value:".",suggestion:{value:"."}}]:s[0].value!="."?[]:s.length==1?Fa.prepend(".",this.addDot(a,o)):this.properties[s[1].value]?Fa.prepend("."+s[1].value,this.properties[s[1].value].complete(s.slice(2),e,o)):Fa.prepend(".",this.addDot(this.partial(s[1],a),o));return[...i.reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[]),...Ua.completor.flatMap((t=>t(s,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=>this.properties[t.value].class=="object"?{value:t.value+".",suggestion:{value:t.suggestion?.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)}}Ua.wildcard=[{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}];Ua.completor=[];class Wa extends $a{constructor(t){super();this.class="string";if(t)this.value=t}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;let i;if(o)i=this.value?.startsWith(s[0]?.value??"")?[{value:this.value,suggestion:{value:this.value}}]:undefined;else i=s.length==0||s[0].value!=":"?undefined:this.value?.startsWith(s[1]?.value??"")?[Fa.prepend(":",{value:this.value,suggestion:{value:this.value}})]:undefined;return[...i??[],...(o?[]:Wa.completor).flatMap((t=>t(s,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 Wa}}Wa.completor=[];class Ba extends $a{constructor(t){super();this.type=t;this.class="union"}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;return this.type?this.type?.flatMap((t=>t?.complete(s,e,o)??[])):[]}isType(t){return t instanceof Ba}static is(t){return t instanceof Ba}}var Va;(function(t){function e(t,e){const o=t.complete(e);return o.filter((t=>!e.includes(t.value)&&t.suggestion?.value)).map((t=>({full:t.value,cursor:t?.cursor??t.value.length,addon:t?.suggestion?.value,description:t?.suggestion?.description})))}t.complete=e;function o(t){let e;switch(typeof t){case"object":e=global.Array.isArray(t)?new Ra(t.map((t=>o(t)))):new Ua(global.Object.entries(t).reduce(((t,e)=>({...t,[e[0]]:o(e[1])})),{}));break;case"string":e=new Wa(t);break;default:e=new Ya(t);break}return e}t.convert=o;t.Array=Ra;t.Boolean=Ha;t.Completion=Fa;t.Object=Ua;t.String=Wa;t.Number=Ya;t.Union=Ba;t.Completor=Na})(Va||(Va={}));class Ga extends So{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}`}}function Ka(t,e){return Na.expressions(t,(t=>!t||t[0].value=="*"&&e.value&&e.value.endsWith(t[1]?.value??"")?[Va.Completion.prepend("*",{value:e?.value??"",suggestion:{value:e?.value??""}})]:[]),{value:"*",suggestion:{value:"*",description:"endswith"}})}Va.String.add(Ka);class Za extends So{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()})`}}function qa(t,e){const o=t=>e.array.some(Va.String.is)&&t?e.array.filter(Va.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(Va.String.is)?e.array.filter(Va.String.is).map((t=>({value:t?.value??""}))):e.array.some(Va.Number.is)&&t?e.array.filter(Va.Number.is).map((e=>e.complete(t))).reduce(((t,e)=>Array.isArray(e)?t.concat(e):e?[...t,e]:t),[]):!t&&e.array.some(Va.Number.is)?e.array.filter(Va.Number.is).map((t=>({value:(t?.value??"").toString()}))):[];return Na.functions(t,o,{value:"every()",cursor:6,suggestion:{value:"every()"}})}Va.Array.add(qa);class Xa extends So{constructor(t,e,o){super();this.identifier=t;this.argument=e;this.definition=o;this.precedence=85;this.class="FunctionCall"}is(t){return this.definition?.is(t)??true}toString(){return`${this.identifier}(${this.argument.join(", ")})`}}class Ja{stringify(t=0){let e=this.toString();if(this.precedence<t)e="("+e+")";return e}}class Qa extends Ja{constructor(t,e){super();this.name=e;this.precedence=Qa.precedence;this.class="Value";if(typeof t=="string")this.value=isNaN(+t.replace(",","."))?t:+t.replace(",",".");else this.value=t}toString(){return this.name?`${this.name?.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 Qa(t,e)}}Qa.precedence=19;class tn extends So{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 Qa&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}function en(t,e,o){return Va.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:">",suggestion:{value:">"}})}Va.Number.add(en);Va.String.add(en);class on extends So{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 Qa&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}function sn(t,e,o){return Va.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:">=",suggestion:{value:">="}})}Va.Number.add(sn);Va.String.add(sn);class an extends So{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})`}}function nn(t,e,o){return o&&e?.class=="object"?Na.functions(t,(t=>e.completions.filter((e=>e.value.startsWith(t?t[0].value:"")))),{value:"has()",cursor:4,suggestion:{value:"has()"}}):[]}Va.Object.add(nn);class ln extends So{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}*`}}function rn(t,e){const o=new ln(t);return e?o.is(e):o}function cn(t,e){return Na.expressions(t,(t=>!t||t.length==3&&e.value?.includes(t[1].value)&&e.value!=t[1].value||t.length==2&&t[0].value+t[1].value=="**"?[Va.Completion.prepend("*",{value:e?.value??"",suggestion:{value:e?.value??""}},"*")]:t.length==1&&t[0].value=="*"?[{value:"**",suggestion:{value:"**",description:"includes"}}]:[]),{value:"**",cursor:1,suggestion:{value:"**",description:"includes"}})}Va.String.add(cn);class hn extends So{constructor(t){super();this.criteria=t;this.precedence=100;this.class="Some"}is(t,e){return Array.isArray(t)&&t.some((t=>this.criteria.is(t,e)))}toString(){return`some(${this.criteria.toString()})`}}function dn(t,e){const o=new hn(Io(t));return e?o.is(e):o}function mn(t,e,o){return t.length==0?[{value:":",suggestion:{value:":"}}]:t[0].value!=":"?[]:t.length==1&&t[0].value==":"?Va.Completion.prepend(":",e.array.filter(Va.String.is).filter((t=>t.value&&t.value!="string")).map((t=>({value:t?.value??"",suggestion:{value:t?.value??""}})))):t.length==2&&t[0].value==":"?Va.Completion.prepend(":",e.array.filter(Va.String.is).filter((e=>e.value&&e.value!="string"&&e.value.startsWith(t[1].value))).map((t=>({value:t?.value??"",suggestion:{value:t?.value??""}})))):[]}Va.Array.add(mn);class un extends So{constructor(t){super();this.value=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Is";this.symbol=":"}is(t,e){return Array.isArray(t)&&Eo(this.value)?dn(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()}}zo((t=>typeof t=="bigint"||typeof t=="boolean"||typeof t=="number"||typeof t=="string"?new un(t):undefined));class yn extends So{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 Qa&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}function bn(t,e,o){return Va.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:"<",suggestion:{value:"<"}})}Va.Number.add(bn);Va.String.add(bn);class fn extends So{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 Qa&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}function pn(t,e,o){return Va.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:"<=",suggestion:{value:"<="}})}Va.Number.add(pn);Va.String.add(pn);function gn(t,e){return Na.expressions(t,(t=>t&&t?.length==1&&t[0].value=="/"?[{value:"//",cursor:1}]:[]),{value:"//",cursor:1,suggestion:{value:"//",description:"match"}})}Va.String.add(gn);class kn extends So{constructor(t){super();this.criteria=t;this.precedence=kn.precedence;this.class="Not"}is(t){return!this.criteria.is(t)}toString(){return`!${this.criteria.stringify(this.precedence)}`}}kn.precedence=90;function vn(t,e){const o=new kn(Io(t));return e?o.is(e):o}function wn(t,e,o){return e&&e.class!="object"&&o?Na.expressions(t,(t=>t[0].value!="!"?[]:Va.Completion.prepend("!",e.complete(t.slice(1),o,e))),{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}):[]}Va.String.add(wn);Va.Number.add(wn);Va.Boolean.add(wn);Va.Object.add(wn);class xn extends So{constructor(t){super();this.precedence=xn.precedence;this.class="Or";this.criteria=t.reduce(((t,e)=>e instanceof xn?[...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(" | ")}}xn.precedence=30;function Sn(t,e,o){return Va.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,undefined):[]),{value:" | ",suggestion:{value:"|",description:"or"}})}Va.Number.addArgument(Sn);class Cn extends Ma.BufferedEnumerator{constructor(t,e){super(Array.isArray(t)?new Ma.ArrayEnumerator(t):t);this.errorHandler=e}clone(t="(",e=")"){let o=0;return new Cn(new Ma.Enumerator((()=>{let s;if(this.peekIs(t))o++;else if(this.peekIs(e))o--;if(o>=0)s=this.fetch();return s})),this)}peekIs(...t){return t.every(((t,e)=>{const o=this.peek(e);return o&&o.value&&Cn.is(t,o.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 Ma.Enumerable.from(Ma.Enumerable.empty)}raise(t,e=Ia.Level.Critical,o="grammatical",s){if(typeof t=="string"){if(!s&&this.last)s=this.last.region;t=new Ia.Message(t,e,o,s)}this.errorHandler.raise(t)}static is(t,e){return Array.isArray(t)?t.some((t=>Cn.is(t,e))):typeof t!="string"?t.test(e):t.startsWith("!")&&t!="!"?!Cn.is(t.substring(1),e):t=="any"?Cn.symbol.every((t=>t!=e)):t=="symbol"?Cn.symbol.some((t=>t==e)):t=="identifier"?/[A-Za-z][A-Za-z0-9_]*/.test(e):t==e}}Cn.wildcard=["*","?"];Cn.separator=["(",")","."];Cn.operator=["!","|"];Cn.comparator=["<","<=",">",">=",":"];Cn.binaryOperator=[" * "," + "," - "];Cn.symbol=[...Cn.wildcard,...Cn.separator,...Cn.operator,...Cn.comparator];function zn(t,e){if(typeof t=="string"){e=e||new Ia.ConsoleHandler;const o=Da(t,e).toArray();t=new Cn(o,e)}e=e instanceof So?e:undefined;const o=[];while(t.peek()){if(t.fetchIf("|"))o[o.length-1]=new xn([o[o.length-1],jn(0,t)]);else o.push(jn(0,t))}return o.length==1?o[0]:new Lo(o)}function jn(t,e){let o;const s=typeof t=="number"?e=>t<e:e=>t.precedence>e;const i=typeof t=="number"?undefined:t;for(const t of _n)if(s(t[1]||Number.MAX_SAFE_INTEGER)){const s=t[0](e,i);if(s){o=jn(s,e);break}}return o||i||new Lo([])}const _n=[];function In(t,e){_n.push([t,e])}function Tn(t,e){if(typeof t=="string"){e=e||new Ia.ConsoleHandler;const o=Da(t,e).toArray();t=new Cn(o,e)}e=e instanceof Ja?e:undefined;let o;let s=false;let i=false;while(!o!=s&&!i&&t.peek()){let e=1;s=false;i=false;while(!s&&!i&&t.peek(e)){s=Cn.binaryOperator.some((o=>t.peek(e)?.value==o));i=Cn.comparator.some((o=>t.peek(e)?.value==o));e++}o=On(o??Number.MAX_SAFE_INTEGER,t)}if(!o)t.raise("Missing Expression");return o??new Qa(NaN)}function On(t,e){let o;const s=typeof t=="number"?undefined:t;for(const s of Ln){const i=s[0](e,t);if(i){o=i;break}}return o||s}const Ln=[];function An(t,e){Ln.push([t,e])}In((t=>{const e=t.fetchIf(":","every","(")&&new Za(zn(t.clone()));if(e&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return e}));In((t=>{const e=t.fetchIf(":","some","(")&&new hn(zn(t.clone()));if(e&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return e}));In(Mn(zn));An(Mn(Tn));function Mn(t){return e=>{const o=e.fetchIf("(")&&t(e.clone());if(o&&!e.fetchIf(")"))e.raise("Missing end of parenthesis.");return o}}In((t=>t.fetchIf(">")&&new tn(Tn(t))));In((t=>t.fetchIf(">=")&&new on(Tn(t))));In((t=>t.fetchIf("<")&&new yn(Tn(t))));In((t=>t.fetchIf("<=")&&new fn(Tn(t))));In((t=>t.fetchIf("!")&&new kn(jn(kn.precedence,t))));In((t=>{const e=t.fetchIf("has","(","any",")")||t.fetchIf(":","has","(","any",")");return e&&new an(e.length==4?e[2].value:e[3].value)}));class En extends So{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(", ")})`}}function Dn(t,e){const o=new En(t);return e?o.is(e):o}function $n(t,e,o){return o&&e?.class?Na.functions(t,(t=>[]),{value:"within()",cursor:7,suggestion:{value:"within()"}}):[]}Va.String.add($n);Va.Number.add($n);In((t=>{const e=t.fetchIf(":","within","(");let o;if(e&&t.peek()){o=[t.fetch()?.value??""];while(t.fetchIf(","))o.push(t.fetchIf("any")?.value??"");if(!t.fetchIf(")"))t.raise("Missing end of parenthesis.")}return e&&o?new En(o):undefined}));class Rn extends So{constructor(t){super();this.criteria=t;this.precedence=85;this.class="Contains"}is(t,e){return Array.isArray(t)&&this.criteria.every((e=>t.some((t=>e==t))))}toString(){return`contains(${this.criteria.join(", ")})`}}function Pn(t,e){const o=new Rn(t);return e?o.is(e):o}function Fn(t,e,o){return Na.functions(t,(()=>[]),{value:"contains()",cursor:9,suggestion:{value:"contains()"}})}Va.Array.add(Fn);In((t=>{const e=t.fetchIf(":","contains","(");const o=[];if(e&&t.peek()){do{o.push(t.fetchIf("any")?.value??"")}while(t.fetchIf(","));if(!t.fetchIf(")"))t.raise("Missing end of parenthesis.")}return e&&o.length>0?new Rn(o):undefined}));In((t=>{const e=t.peek(3)?.value;const o=[")",",","("].find((t=>t==e))||t.peek(2)?.value==")"?t.fetchIf("identifier","("):undefined;let s;if(o&&t.peek()){s=[t.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??""];while(t.fetchIf(","))s.push(t.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??"");if(!t.fetchIf(")"))t.raise("Missing end of parenthesis.")}return o&&s?new Xa(o[0].value,s):undefined}));class Hn extends So{constructor(t,e){super();this.name=t;this.criteria=e;this.precedence=Hn.precedence;this.class="Property";this.symbol="."}is(t,e){return!this.criteria?t==e?.[this.name]:typeof t=="object"?this.criteria.is(t[this.name],e??t):this.criteria.is(t,e?.[this.name])}toString(){return`${this.name}${this.criteria?this.criteria.symbol??":":""}${this.criteria?.stringify(this.precedence)??""}`}}Hn.precedence=80;function Nn(t,e,o){const s=(Array.isArray(t)?t:[t]).reduceRight(((t,e)=>new Hn(e,t)),Io(e));return o?s.is(o):s}zo((t=>typeof t=="object"&&!(t instanceof So)&&!Array.isArray(t)?Ao(...Object.getOwnPropertyNames(t).map((e=>Nn(e,t[e])))):undefined));In((t=>{const e=[];let o;while(o=t.fetchIf("identifier","."))e.push(o[0].value);if(t.peekIs("identifier",Cn.comparator)&&(o=t.fetchIf("identifier")))e.push(o.value);return e.length>0?e.reduceRight(((t,e)=>new Hn(e,t)),t.peekIs("identifier")&&(o=t.fetchIf("identifier"))?new Hn(o.value):jn(Hn.precedence,t)):undefined}));In((t=>{const e=t.fetchIf(":","*","any","*")||t.fetchIf("*","any","*");return e&&new ln(e.length==4?e[2].value:e[1].value)}));class Yn extends So{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}*`}}function Un(t,e){return Na.expressions(t,(t=>!t||t.length==1&&t[0].value=="*"||t.length==2&&t[1].value=="*"&&e.value&&e.value.startsWith(t[0]?.value??"")?[Va.Completion.prepend("",{value:e?.value??"",suggestion:{value:e?.value??""}},"*")]:[]),{value:"*",cursor:0,suggestion:{value:"*",description:"startswith"}})}Va.String.add(Un);In((t=>{const e=t.fetchIf(":","any","*")||t.fetchIf("any","*");return e&&new Yn(e?.length==3?e[1].value:e[0].value)}));In((t=>{const e=t.fetchIf(":","*","any")||t.fetchIf("*","any");return e&&new Ga(e?.length==3?e[2].value:e[1].value)}));class Wn extends Ja{toString(){const t=this.symbol;return this.left.stringify(Wn.getPrecedence(t))+` ${t} `+this.right.stringify(Wn.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?.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,o){let s;const i=new Wn("+",14,e,o);const a=Wn.getPrecedence(t);if(a)s=new Wn(t,a,e,o);return s||i}}function Bn(t,e,o){return[" + "," - "," * "].map((t=>({value:t,suggestion:{value:t}}))).map((s=>Va.Completor.operators(t,(t=>t?o.complete(t,undefined,e):[]),s))).reduce(((t,e)=>t.concat(e)),[])}Va.Number.addArgument(Bn);An(((t,e)=>{let o;const s=t.peekIs(Cn.binaryOperator)&&t.fetch().value;let i;if(s&&typeof e=="object"){let a;let n;let l=0;i=Wn.getPrecedence(s);while(!n&&t.peek(l)){n=t.peek(l)?.value=="("?Number.MAX_SAFE_INTEGER:Wn.getPrecedence(t.peek(l)?.value);l++}if(n&&i<n){a=On(i,t);if(!a){t.raise("Missing right hand side of "+s)}}else a=On(NaN,t);if(n&&i==n||n==Number.MAX_SAFE_INTEGER){o=On(new Wn(s,i,e,a),t)}else o=new Wn(s,i,e,a)}return o}));An(((t,e)=>{const o=[];let s;while(s=t.fetchIf("identifier","."))o.push(s[0].value);let i;if(o.length==0){s=t.fetchIf("any",".","any")||t.fetchIf("any",",","any")||t.fetchIf("any");i=s&&(Array.isArray(s)?new Qa(+s.map((t=>t.value.replace(",","."))).join("")):new Qa(s.value))}else{s=t.fetchIf("identifier");const e=new Qa(s?s.value:0);i=o.length>0?o.reduceRight(((t,e)=>new Qa(isNaN(+t)?t:+t,e)),e):undefined}if(i&&typeof e=="number"&&!isNaN(e)&&e!=Number.MAX_SAFE_INTEGER)i=On(i,t);return i}));In((t=>{let e;if(t.fetchIf(":")){let o=false;let s=false;let i=1;while(!o&&!s&&t.peek(i)){o=Cn.binaryOperator.some((e=>t.peek(i)?.value==e));s=Cn.comparator.some((e=>t.peek(i)?.value==e));i++}if(o)e=Tn(t)}const o=t.fetchIf("any");return e?new un(e):o&&new un(o.value)}));In((t=>{t.raise(`Ignoring unknown token "${t.fetch()}"`);return undefined}));function Vn(t,e,o={input:[],identifier:[]}){return Gn[e?.class]?.(t,e,o)??e}const Gn={};function Kn(t,e){Gn[t]=e}Kn("And",((t,e,o)=>new Lo(e.rules.map((e=>Vn(t,e,o))))));var Zn;(function(t){function e(t,e){let o=undefined;let s;const i=typeof t=="string"?t:t.toString();if(e&&e.input&&e.identifier&&e?.input?.length>0&&e?.identifier?.length>0&&e.identifier.includes(i)){s=e.identifier.indexOf(i);o=isNaN(+e.input[s])?e.input[s]:+e.input[s]}return o}t.argument=e})(Zn||(Zn={}));Kn("EndsWith",((t,e,o)=>{const s=Zn.argument(e.needle,o);return s?new Ga(typeof s=="object"?s.value.toString():s.toString()):e}));Kn("Every",((t,e,o)=>new Za(Vn(t,e.criteria,o))));Kn("FunctionCall",((t,e,o)=>{const s=t[e.identifier];const i=s?zn(s.definition):undefined;const a=i?Vn(t,i,{input:o?.input?.concat(e.argument),identifier:o?.identifier?.concat(s.arguments)}):undefined;return new Xa(e.identifier,e.argument,a)}));Kn("GreaterThan",((t,e,o)=>{const s=Zn.argument(e.value,o);return s?new tn(s):e}));Kn("GreaterThanOrEqual",((t,e,o)=>{const s=Zn.argument(e.value,o);return s?new on(s):e}));Kn("Has",((t,e,o)=>{const s=Zn.argument(e.property,o);return s?new an(typeof s=="object"?s.value.toString():s.toString()):e}));Kn("Includes",((t,e,o)=>{const s=Zn.argument(e.needle,o);return s?new ln(typeof s=="object"?s.value.toString():s.toString()):e}));Kn("LesserThan",((t,e,o)=>{const s=Zn.argument(e.value,o);return s?new yn(s):e}));Kn("LesserThanOrEqual",((t,e,o)=>{const s=Zn.argument(e.value,o);return s?new fn(s):e}));Kn("Not",((t,e,o)=>new kn(Vn(t,e.criteria,o))));Kn("Or",((t,e,o)=>new xn(e.criteria.map((e=>Vn(t,e,o))))));Kn("Property",((t,e,o)=>new Hn(e.name,e.criteria&&Vn(t,e.criteria,o))));Kn("Some",((t,e,o)=>new hn(Vn(t,e.criteria,o))));Kn("StartsWith",((t,e,o)=>{const s=Zn.argument(e.needle,o);return s?new Yn(typeof s=="object"?s.value.toString():s.toString()):e}));Kn("Is",((t,e,o)=>{const s=Zn.argument(e.value,o);return s?new un(s):e}));class qn extends So{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(", ")}]`}}zo((t=>Array.isArray(t)?new qn(t.map(Io)):undefined));function Xn(t,e){const o=Io(t);return e?o.is(e):o}function Jn(t,e){const o=Io(t);return o.filter(e)}const Qn=z({emit:c()});var tl;(function(t){let e;(function(t){t.type=z({property:j().optional(),properties:h(j(),j()).optional()})})(e=t.Element||(t.Element={}));t.type=e.type.extend({smoothlyFilterUpdate:Qn,smoothlyFilterManipulate:Qn})})(tl||(tl={}));const el='.sc-smoothly-filter-h {\n\tposition: relative;\n\tborder: 1px solid rgb(var(--smoothly-medium-tint));\n\tmargin-left: 1rem;\n\tbackground-color: rgb(var(--smoothly-input-background));\n\tmargin-right: 1rem;\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n}\n\n.sc-smoothly-filter-h>div.sc-smoothly-filter-s > [slot=detail] {\n\tz-index: 5;\n}\n\n.sc-smoothly-filter-h.sc-smoothly-filter-s > [slot=bar] {\n\tpointer-events: auto;\n\tmargin-left: 0.3em;\n\tmargin-right: 0.3em;\n\n\t&>[looks="plain"] {\n\t\tdisplay: flex;\n\t\talign-self: stretch;\n\t\talign-items: center;\n\t}\n}\n\n.sc-smoothly-filter-h > div.sc-smoothly-filter:empty + smoothly-icon.sc-smoothly-filter {\n\tdisplay: none;\n}\n\n.sc-smoothly-filter-h > smoothly-icon.sc-smoothly-filter {\n\tcursor: pointer;\n\tmargin-left: 0.3em;\n\tmargin-right: 0.3em;\n\tflex-shrink: 0;\n}\n\n.sc-smoothly-filter-h > div.close.sc-smoothly-filter {\n\tposition: fixed;\n\tz-index: 3;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100dvw;\n\theight: 100dvh;\n\tbackground: transparent;\n}\n\n.sc-smoothly-filter-h > div.hidden.sc-smoothly-filter {\n\tdisplay: none;\n}\n\n.sc-smoothly-filter-h > .container.sc-smoothly-filter {\n\tpadding: 2em;\n\tposition: absolute;\n\tright: 0.35em;\n\twidth: fit-content;\n\tdisplay: flex;\n\tjustify-content: center;\n\ttop: 100%;\n\twidth: fit-content;\n\tz-index: 4;\n\tbackground-color: rgb(var(--smoothly-color));\n\tmargin: 0.8em -2em;\n}\n\n\n.sc-smoothly-filter-h > div.container.sc-smoothly-filter:before {\n\tcontent: "";\n\twidth: 0.6em;\n\theight: 0.6em;\n\ttransform: rotate(45deg);\n\tborder-top: 1px solid rgb(var(--smoothly-medium-tint));\n\tborder-left: 1px solid rgb(var(--smoothly-medium-tint));\n\tbackground-color: rgb(var(--smoothly-color));\n\tposition: absolute;\n\tz-index: 3;\n}\n\n\n.sc-smoothly-filter-h > div.container.arrow-top.sc-smoothly-filter:before {\n\tleft: calc(91%);\n\ttop: -5px;\n}\n\n.sc-smoothly-filter-h div.container.sc-smoothly-filter:after {\n\tcontent: "";\n\theight: 100%;\n\twidth: 100%;\n\tborder: 1px solid rgb(var(--smoothly-medium-tint));\n\tborder-radius: 0.25em;\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n}';const ol=el;const sl=class{constructor(e){t(this,e);this.smoothlyFilter=o(this,"smoothlyFilter",7);this.updating=false;this.filters=new Set;this.detailChildren=undefined;this.criteria=Ao();this.expanded=false}updateHandler(t){t.stopPropagation();if(tl.Element.type.is(t.target))this.filters.add(t.detail)}manipulateHandler(t){t.stopPropagation();this.updating=true;this.criteria=t.detail(this.criteria);this.smoothlyFilter.emit(this.criteria);this.filters.forEach((t=>t(this.criteria)));this.updating=false}filterFieldHandler(t){t.stopPropagation();if(!this.updating){this.smoothlyFilter.emit(this.criteria=Ao(t.detail));this.filters.forEach((t=>t(this.criteria)))}}clear(){var t;(t=this.field)===null||t===void 0?void 0:t.clear();this.smoothlyFilter.emit(this.criteria=Ao());this.filters.forEach((t=>t(this.criteria)))}render(){return e(s,{key:"d0758e4b4003774f8d64ea98dd189c9d1bc4dfb7"},e("slot",{key:"326730f0a2cdc4efe92f75be74f50e9d0afc2337",name:"bar"}),e("smoothly-filter-field",{key:"771a0da9c7c28810fb8b9c3eae4e0b2d6a8d629a",criteria:this.criteria,ref:t=>this.field=t}),this.criteria.toString()!=""&&e("smoothly-icon",{key:"f0699e512b801b2a82a4b6a75764455c4f6ff970",name:"close",toolTip:"Clear all filters",size:"small",onClick:()=>{this.clear()}}),e("div",{key:"4ed85c23a785b8f5a96d97acee1ec4bcdf11ccf1",class:this.expanded?"container arrow-top":"hidden"},e("slot",{key:"d41a7a8ed289625aa1f9de25b19a39cda75b6c29",name:"detail"})),e("smoothly-icon",{key:"534e48505b05d18bdbbc6d5817ef4f10d8c9f045",name:this.expanded?"options":"options-outline",toolTip:(this.expanded?"Hide":"Show")+" additional filters",size:"small",onClick:()=>{this.expanded=!this.expanded}}),e("div",{key:"52289b92ffc7b5f53e287c5c875ec3605ee307a2",class:this.expanded?"close":"hidden",onClick:()=>this.expanded=!this.expanded}))}};sl.style=ol;const il=".sc-smoothly-filter-field-h{flex-grow:5}";const al=il;const nl=class{constructor(e){t(this,e);this.smoothlyFilterField=o(this,"smoothlyFilterField",7);this.value="";this.criteria=undefined}async clear(){var t;await((t=this.input)===null||t===void 0?void 0:t.clear())}filterFieldEmit(){var t;this.smoothlyFilterField.emit(zn((t=this.value)!==null&&t!==void 0?t:""))}updateValue(t){this.value=t.detail.filter}render(){return e(s,{key:"247786bb8724ddcd5344cc02bb4f36e13737e43e"},e("smoothly-input",{key:"3b8088c08cf3a7671b8b9b33e48ac133b7d4fe14",name:"filter",ref:t=>this.input=t,value:this.criteria.toString(),onSmoothlyInputLooks:t=>t.stopPropagation(),onSmoothlyKeydown:t=>{t.stopPropagation();t.detail.key=="Enter"&&this.filterFieldEmit()},onSmoothlyBlur:t=>t.stopPropagation(),onSmoothlyFormDisable:t=>t.stopPropagation(),onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyChange:t=>t.stopPropagation(),onSmoothlyInput:t=>{t.stopPropagation();this.updateValue(t)}},"Filter"))}};nl.style=al;const ll=".sc-smoothly-filter-input-h{display:contents}.sc-smoothly-filter-input-h>smoothly-input.sc-smoothly-filter-input{flex-grow:1;min-width:10em;flex-basis:40%}";const rl=ll;const cl=class{constructor(e){t(this,e);this.smoothlyFilterUpdate=o(this,"smoothlyFilterUpdate",7);this.smoothlyFilterManipulate=o(this,"smoothlyFilterManipulate",7);this.type="text";this.needle="";this.label=undefined;this.property=undefined;this.placeholder=undefined}componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}update(t){var e;if(t instanceof Lo&&t.rules.length>0)for(const o of t.rules){const t=this.isCriteria(o,this.property);if(t){this.needle=(e=t.needle)!==null&&e!==void 0?e:"";break}}else this.needle=""}isCriteria(t,e){const[o,...s]=e.split(".");return t instanceof Hn&&t.name==o&&(t.criteria instanceof ln&&t.criteria||t.criteria instanceof Hn&&this.isCriteria(t.criteria,s.join(".")))||undefined}inputHandler(t){t.stopPropagation();const e=t.detail[this.property];const o=t=>{let o=t;const s=e?this.getCriteria(e):undefined;if(o instanceof Lo){const t=o.rules.findIndex((t=>this.findInstanceOf(t,this.property)));!s?t!=-1&&o.rules.splice(t,1):t==-1?o.rules.push(s):o.rules[t]=s;o=Ao(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}getCriteria(t){return this.property.split(".").reduceRight(((t,e)=>Nn(e,t)),rn(t))}findInstanceOf(t,e){const[o,...s]=e.split(".");return t instanceof Hn&&t.name==o&&(s.length==0||!!t.criteria&&this.findInstanceOf(t.criteria,s.join(".")))}render(){return e("smoothly-input",{key:"b9c0bad8ca30d5e45e9686b52f8536cf8b0f3a29",name:this.property,value:this.needle,type:this.type,placeholder:this.placeholder,onSmoothlyBlur:t=>t.stopPropagation(),onSmoothlyFormDisable:t=>t.stopPropagation(),onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyChange:t=>t.stopPropagation(),onSmoothlyInput:t=>this.inputHandler(t)},this.label,e("slot",{key:"b6bda14b39abfb507ce5a83f0cf95efb218d7c36"}))}};cl.style=rl;const hl=".sc-smoothly-filter-select-h{display:contents}.sc-smoothly-filter-select-h>smoothly-input-select.sc-smoothly-filter-select{flex-grow:1;width:12.5em}.options.sc-smoothly-filter-select{border:rgb(var(--smoothly-input-border, var(--smoothly-color-contrast))) solid 1px;border-top:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .4) solid 1px}";const dl=hl;const ml=class{constructor(e){t(this,e);this.smoothlyFilterUpdate=o(this,"smoothlyFilterUpdate",7);this.smoothlyFilterManipulate=o(this,"smoothlyFilterManipulate",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.updating=false;this.items=new Map;this.label=undefined;this.property=undefined;this.menuHeight=undefined;this.multiple=false;this.type="string";this.looks=undefined}componentWillLoad(){this.smoothlyInputLooks.emit((t=>{var e;return this.looks=(e=this.looks)!==null&&e!==void 0?e:t}))}async componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}async smoothlyInputLoadHandler(t){var e,o;(o=await((e=this.selectElement)===null||e===void 0?void 0:e.getItems()))===null||o===void 0?void 0:o.forEach((t=>this.items.set(t.value,{state:this.property.split(".").reduceRight(((t,e)=>({[e]:t})),t.value),item:t})))}smoothlyInputLooksHandler(t){if(t.target!=this.element){t.stopPropagation();t.detail(this.looks)}}update(t){this.updating=true;if(t instanceof Lo&&t.rules.length>0)for(const e of this.items.values()){const o=t.rules.some((t=>this.isCriteria(t,this.property,e.state)&&(this.type=="array"?this.findInstanceOf(t,this.property):t.is(e.state))));e.item.selected=o}else this.items.forEach((t=>t.item.selected=false));this.updating=false}isCriteria(t,e,o){const[s,...i]=e.split(".");const a=t instanceof Hn&&t.name==s?this.isCriteria(t.criteria,i.join("."),o[s]):this.multiple?t instanceof En&&t.value.some((t=>t==o))||this.type=="array"&&t instanceof Rn&&t.criteria.some((t=>t==o)):t instanceof un&&t.value==o;return a}selectHandler(t){t.stopPropagation();if(!this.updating){const e=t.detail[this.property];const o=t=>{let o=t;const s=this.getCriteria(e);if(!(o instanceof So))o=s?Ao(o,s):o;else if(o instanceof Lo){const t=o.rules.findIndex((t=>this.findInstanceOf(t,this.property)));!s&&t>=0?o.rules.splice(t,1):!s?undefined:t==-1?o.rules.push(s):o.rules[t]=s;o=Ao(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}}findInstanceOf(t,e){const[o,...s]=e.split(".");return t instanceof Hn&&t.name==o&&(t.criteria instanceof En||t.criteria instanceof un||t.criteria instanceof Rn||t.criteria instanceof Hn&&this.findInstanceOf(t.criteria,s.join(".")))}getCriteria(t){let e;if(this.multiple&&j().array({criteria:"minLength",value:1}).is(t))e=this.type=="array"?Pn(t):Dn(t);else if(typeof t=="string")e=Xn(t);else e=undefined;return e&&this.property.split(".").reduceRight(((t,e)=>Nn(e,t)),e)}render(){return e("smoothly-input-select",{key:"9107d3913b3e08208538db9de5d27e9b8107c816",ref:t=>this.selectElement=t,name:this.property,looks:this.looks,multiple:this.multiple,menuHeight:this.menuHeight,onSmoothlyInputLooks:t=>t.stopPropagation(),onSmoothlyItemSelect:t=>t.stopPropagation(),onSmoothlyInput:t=>this.selectHandler(t)},this.label&&e("span",{key:"63b6cea56be4665c27dcb4822bd55700b1e62a7e",slot:"label"},[this.label.slice(0,1).toUpperCase(),this.label.slice(1,this.label.length)].join("")),e("slot",{key:"30843b98d8e72b9eb258dfc6f12e58e5b49394ce",name:"items"}))}get element(){return i(this)}};ml.style=dl;const ul=".sc-smoothly-filter-toggle-h{position:relative;display:inline-block;cursor:pointer}.sc-smoothly-filter-toggle-h:hover>smoothly-icon.sc-smoothly-filter-toggle{stroke:rgb(var(--smoothly-success-tint));color:rgb(var(--smoothly-success-tint));fill:rgb(var(--smoothly-success-tint))}[flip].sc-smoothly-filter-toggle-h{transform:scaleX(-1)}";const yl=ul;const bl=class{constructor(e){t(this,e);this.smoothlyFilterUpdate=o(this,"smoothlyFilterUpdate",7);this.smoothlyFilterManipulate=o(this,"smoothlyFilterManipulate",7);this.icon=undefined;this.properties=undefined;this.toolTip=undefined;this.not=undefined;this.flip=false;this.active=false}componentWillLoad(){this.active&&this.activeHandler()}componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}update(t){if(t instanceof Lo&&t.rules.length>0){this.active=Object.entries(this.properties).every((([e,o])=>t.rules.some((t=>{const s=!this.not?t:t instanceof kn?t.criteria:undefined;return o==""?!(s instanceof Hn&&s.name==e):this.isCriteria(s,e,o)}))))}else this.active=false}isCriteria(t,e,o){const[s,...i]=e.split(".");return t instanceof Hn&&t.name==s&&(t.criteria instanceof un&&t.criteria.value==o||this.isCriteria(t.criteria,i.join("."),o))}activeHandler(t){const e=e=>{let o=e;t&&(this.active=!this.active);if(o instanceof Lo){for(const[t,e]of Object.entries(this.properties)){const s=!this.active||this.active&&e==""?undefined:this.not?vn(this.createCriteria(t,e)):this.createCriteria(t,e);const i=o.rules.findIndex((e=>this.findInstanceOf(e,t)));!s&&i>=0?o.rules.splice(i,1):!s?undefined:i==-1?o.rules.push(s):o.rules[i]=s}o=Ao(...o.rules)}return o};this.smoothlyFilterManipulate.emit(e.bind(this))}createCriteria(t,e){const[o,...s]=t.split(".");return Nn(o,s.length==0?Xn(e):this.createCriteria(s.join("."),e))}findInstanceOf(t,e){const o=!this.not?t:t instanceof kn?t.criteria:false;const[s,...i]=e.split(".");return o instanceof Hn&&o.name==s&&(i.length==0||!!o.criteria&&this.findInstanceOf(o.criteria,i.join(".")))}render(){return e("smoothly-icon",{key:"087ba0fc1cce503a6cf10665e89ca279075fcee7",fill:"clear",color:this.active?"success":"medium",name:this.active?`${this.icon}`:`${this.icon}-outline`,toolTip:this.toolTip,onClick:()=>this.activeHandler(true)})}};bl.style=yl;var fl;(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})(fl||(fl={}));const pl={};function gl(t,...e){e.forEach((e=>pl[e]=t))}function kl(t){const e=t.headers.get("Content-Type");const o=e&&e.split(";");const s=pl[o?.[0]??"plain/text"];return s?s(t):t.text()}const vl={};function wl(t,...e){e.forEach((e=>vl[e]=t))}function xl(t,e){const o=vl[e?.split(";")[0]??""];return o?o(t,e):t}function Sl(t){return t.toLowerCase().replace(/-[a-z]/g,(t=>t.substring(1).toUpperCase()))}function Cl(t){const e=t.replace(/[A-Z]/g,(t=>"-"+t));return e[0].toUpperCase()+e.substring(1)}const zl=[["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 jl;(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"&&zl.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=zl.find((([e,o,s])=>e==t));return[o?o[1]:Cl(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(", ")])):a(t)?[...t]:Object.entries(t)).map((([t,e])=>{const o=zl.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()))]:[Sl(t),e]})))}t.from=s;function i(t){return Object.entries(t).map((([t,e])=>t+": "+e)).join("\n")}t.toString=i;function a(t){return typeof t.entries=="function"}})(jl||(jl={}));var _l;(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))))&&fl.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||jl.is(t.header))}t.is=e;async function o(t){const o=e(t)?t:i(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:jl.to(s),body:["GET","HEAD"].some((t=>t==o.method))?undefined:await xl(await o.body,o.header.contentType)}}t.to=o;function s(t){const e=new URL(t.url);return{method:fl.parse(t.method)??"GET",url:e,header:jl.from(t.headers),parameter:{},search:Object.fromEntries(e.searchParams.entries()),body:kl(t),..."cf"in t&&{cloudflare:t.cf}}}t.from=s;function i(t){let e;if(typeof t=="string")e=i({url:t});else{const o=typeof t.url=="string"?new URL(t.url):t.url;e={method:fl.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=i;(function(t){t.is=jl.is;t.from=jl.from;t.to=jl.to})(t.Header||(t.Header={}))})(_l||(_l={}));const Il=typeof Response!="undefined"?Response:globalThis.Response;var Tl=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 Ol=undefined&&undefined.__classPrivateFieldSet||function(t,e,o,s,i){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(t,o):i?i.value=o:e.set(t,o),o};var Ll,Al,Ml,El,Dl,$l,Rl,Pl,Fl;class Hl{get state(){return Tl(this,El,"f")?"closed":"opened"}set onMessage(t){if(Tl(this,Al,"f").length&&t){Tl(this,Al,"f").forEach(t);Ol(this,Al,[],"f")}Ol(this,$l,t,"f")}set onClose(t){if(this.state=="closed"&&t)t();Ol(this,Rl,t,"f")}set onOpen(t){if(this.state=="opened"&&t)t();Ol(this,Fl,t,"f")}constructor(t,e){Ll.add(this);Al.set(this,[]);Ml.set(this,[]);El.set(this,false);Dl.set(this,void 0);$l.set(this,void 0);Rl.set(this,void 0);Fl.set(this,void 0);Ol(this,Dl,t,"f");if(e)Ol(this,Ml,undefined,"f");Tl(this,Dl,"f").addEventListener("open",(()=>{if(Tl(this,Fl,"f"))Tl(this,Fl,"f").call(this);Tl(this,Ll,"m",Pl).bind(this)}));Tl(this,Dl,"f").addEventListener("message",(async t=>{const e=this.processReceived(t.data);Tl(this,Ll,"m",Pl).call(this);if(Tl(this,$l,"f"))Tl(this,$l,"f").call(this,e);else Tl(this,Al,"f")?.push(e)}));Tl(this,Dl,"f").addEventListener("close",(()=>{if(Tl(this,Rl,"f"))Tl(this,Rl,"f").call(this);Ol(this,El,true,"f")}))}send(t){if(Tl(this,Ml,"f"))Tl(this,Ml,"f").push(this.processSend(t));else Tl(this,Dl,"f").send(this.processSend(t))}}Al=new WeakMap,Ml=new WeakMap,El=new WeakMap,Dl=new WeakMap,$l=new WeakMap,Rl=new WeakMap,Fl=new WeakMap,Ll=new WeakSet,Pl=function t(){Tl(this,Ml,"f")?.forEach((t=>Tl(this,Dl,"f").send(t)));Ol(this,Ml,undefined,"f")};class Nl extends Hl{processReceived(t){return t?.arrayBuffer?t.arrayBuffer():typeof t=="string"?(new TextEncoder).encode(t).buffer:t}processSend(t){return t}}class Yl extends Hl{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 Ul extends Hl{processReceived(t){return t?.arrayBuffer?(new TextDecoder).decode(t.arrayBuffer()):typeof t!="string"?(new TextDecoder).decode(t):t}processSend(t){return t}}var Wl=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 Bl=undefined&&undefined.__classPrivateFieldSet||function(t,e,o,s,i){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(t,o):i?i.value=o:e.set(t,o),o};var Vl,Gl,Kl;class Zl{get json(){if(!Wl(this,Vl,"f"))Bl(this,Vl,new Yl(this.backend,this.isOpen),"f");return Wl(this,Vl,"f")}get string(){if(!Wl(this,Gl,"f"))Bl(this,Gl,new Ul(this.backend,this.isOpen),"f");return Wl(this,Gl,"f")}get arrayBuffer(){if(!Wl(this,Kl,"f"))Bl(this,Kl,new Nl(this.backend,this.isOpen),"f");return Wl(this,Kl,"f")}constructor(t,e){this.backend=t;this.isOpen=e;Vl.set(this,void 0);Gl.set(this,void 0);Kl.set(this,void 0)}createResponse(t={}){return{status:101,socket:this,header:t}}close(t,e){this.backend.close(t,e)}}Vl=new WeakMap,Gl=new WeakMap,Kl=new WeakMap;var ql;(function(t){t.Factory=Zl})(ql||(ql={}));const Xl=[["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 Jl;(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"&&Xl.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=Xl.find((([e,...o])=>e==t));return[o?o[1]:Cl(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(", ")])):a(t)?n(t):Object.entries(t)).map((([t,e])=>{const o=Xl.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()))]:[Sl(t),e]})))}t.from=s;function i(t){return Object.entries(t).map((([t,e])=>t+": "+e)).join("\n")}t.toString=i;function a(t){return typeof t.forEach=="function"}function n(t){const e=[];t.forEach(((t,o)=>e.push([o,t])));return e}})(Jl||(Jl={}));var Ql;(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||Jl.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})(Ql||(Ql={}));var tr;(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||Jl.is(t.header))&&(t.socket==undefined||t.socket instanceof WebSocket)}t.is=e;async function o(t){return new Il(await xl(await t.body,t.header.contentType),{status:t.status,headers:new Headers(Jl.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:Jl.from(t.headers),body:t.status==101?undefined:kl(t),...t.webSocket&&{socket:new ql.Factory(t.webSocket)}}}t.from=s;function i(t,e){const o=Ql.is(t)?{status:200,header:{},body:undefined,...t.socket&&{socket:t.socket},...t}:typeof t?.createResponse=="function"&&(e==undefined||Jl.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 ql.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)?a(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=i;function a(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=Jl;t.Like=Ql})(tr||(tr={}));const er=or(globalThis.fetch);er.create=or;function or(t){return async e=>{const o=_l.create(e);return tr.from(await t(o.url.toString(),await _l.to(o)))}}var sr;(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,i){return Object.entries(t).reduce(((t,[a,n])=>{n instanceof Blob?i.append(e?`${e}.${a}`:a,n):typeof n=="object"&&n?Array.isArray(n)?t[a]=s(n,e?`${e}.${a}`:a,i):t[a]=o(n,e?`${e}.${a}`:a,i):t[a]=n;return t}),{})}function s(t,e,i){return t.reduce(((t,a)=>{typeof a=="object"&&a?Array.isArray(a)?t.push(s(a,e,i)):t.push(o(a,e,i)):t.push(a);return t}),[])}async function i(t){const e={};for(const[o,s]of t.entries())await a(e,o.split("."),s);return e}t.from=i;async function a(t,[e,...o],s){if(o.length==0)s instanceof Blob&&s.type.startsWith("application/json")?e=="*"?n(t,JSON.parse(await s.text())):typeof t[e]=="object"&&t[e]?n(t[e],JSON.parse(await s.text())):t[e]=JSON.parse(await s.text()):t[e]=s;else a(typeof t[e]=="object"&&t[e]?t[e]:t[e]={},o,s)}function n(t,...e){if(e.length){const[o,...s]=e;Object.entries(o).forEach((([e,s])=>l(s)?n(l(t[e])?t[e]:t[e]={},s):t[e]=o[e]));n(t,...s)}}function l(t){return t&&typeof t=="object"&&!Array.isArray(t)}t.isObject=l})(sr||(sr={}));function ir(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 ar(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,i])=>e(o(t,s,i))),{})}gl((async t=>await t.text()),"text/plain","text/html");gl((async t=>await t.json()),"application/json");gl((async t=>await t.arrayBuffer()),"application/pdf");gl((async t=>sr.from(await t.formData())),"multipart/form-data");gl((async t=>ar(await t.text())),"application/x-www-form-urlencoded");wl((async t=>typeof t=="string"?t:t.toString()),"text/plain","text/html");wl((async t=>JSON.stringify(t)),"application/json");wl((async t=>t),"application/pdf");wl((async t=>ir(t)),"application/x-www-form-urlencoded");wl((async t=>t instanceof globalThis.FormData?t:sr.to(t)),"multipart/form-data");var nr;(function(t){function e(t){return t&&typeof t=="object"&&typeof t.clear=="function"}t.is=e})(nr||(nr={}));var lr;(function(t){let e;(function(t){t.type=z({edit:c(),readonly:_(),listen:c(),reset:c(),setInitialValue:c()});t.is=t.type.is})(e=t.Element||(t.Element={}));const o=z({emit:c()});t.type=e.type.extend({changed:_(),value:M().optional(),smoothlyFormDisable:o});t.is=t.type.is})(lr||(lr={}));var rr;(function(t){t.types=["plain","grid","border","line","transparent"];t.type=j(t.types);t.is=t.type.is})(rr||(rr={}));var cr;(function(t){let e;(function(t){t.type=z({register:c(),unregister:c(),getValue:c(),color:r.type.optional(),name:j(),invalid:_().optional(),looks:rr.type.optional(),defined:_().optional(),binary:c().optional()});t.is=t.type.is})(e=t.Element||(t.Element={}));const o=z({emit:c()});t.type=e.type.extend({smoothlyInputLoad:o,smoothlyInput:o,smoothlyKeydown:o.optional(),smoothlyInputForm:o.optional(),parent:lr.type.optional()});t.is=t.type.is;function s(t){if(t.parent instanceof mr){t.parent.removeInput(t.name)}}t.formRemove=s;function i(t){t.smoothlyInputLoad.emit((e=>t.parent=e))}t.formAdd=i;function a(t,e){if(!(e.target&&"name"in e.target&&e.target.name===t.name)){e.stopPropagation();e.detail(t)}}t.registerSubAction=a})(cr||(cr={}));const hr='smoothly-form{display:block;position:relative}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="line"]>form>fieldset,smoothly-form[looks="border"]>form>fieldset,smoothly-form[looks="transparent"]>form>fieldset{gap:2em}smoothly-form[looks="grid"]>form>fieldset{padding:1px;gap:1px}smoothly-form>form>div:not(:empty){display:flex;justify-content:end;gap:1em;margin-top:0.5rem}';const dr=hr;const mr=class{constructor(e){t(this,e);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyFormInput=o(this,"smoothlyFormInput",7);this.smoothlyFormSubmit=o(this,"smoothlyFormSubmit",7);this.smoothlyFormReset=o(this,"smoothlyFormReset",7);this.smoothlyFormEdit=o(this,"smoothlyFormEdit",7);this.smoothlyFormClear=o(this,"smoothlyFormClear",7);this.notice=o(this,"notice",7);this.contentType="json";this.inputs=new Map;this.readonlyAtLoad=this.readonly;this.listeners={};this.color=undefined;this.value={};this.action=undefined;this.validator=undefined;this.type=this.action?"create":undefined;this.readonly=false;this.looks=undefined;this.name=undefined;this.prevent=true;this.changed=false;this.processing=undefined}componentWillLoad(){!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t))}async removeInput(t){if(this.element.isConnected){this.value=d.remove(this.value,t);this.inputs.delete(t);this.smoothlyFormInput.emit(d.convertArrays(this.value))}}async listen(t,e){var o;var s;((o=(s=this.listeners)[t])!==null&&o!==void 0?o:s[t]=[]).push(e);e(this)}async watchValue(){var t,e,o;this.changed=[...this.inputs.values()].some((t=>lr.type.is(t)?t.changed:true));if(this.validator){const o=(e=(t=this.validator)===null||t===void 0?void 0:t.flaw(d.convertArrays(this.value)).flaws)===null||e===void 0?void 0:e.reduce(((t,e)=>e.property?Object.assign(Object.assign({},t),{[e.property]:e}):t),{});for(const[t,e]of this.inputs.entries()){this.validate(o,t,e)}}(o=this.listeners.changed)===null||o===void 0?void 0:o.forEach((t=>t(this)))}validate(t,e,o){var s,i;if(e.includes(".")){const[a,...n]=e.split(".");const l=(i=(s=t===null||t===void 0?void 0:t[a])===null||s===void 0?void 0:s.flaws)!==null&&i!==void 0?i:[];this.validate(l.reduce(((t,e)=>e.property?Object.assign(Object.assign({},t),{[e.property]:e}):t),{}),n.join("."),o)}else{const s=t===null||t===void 0?void 0:t[e];o&&(o.invalid=!!s)}}watchReadonly(){var t;(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.value=d.merge(this.value,t.detail);this.smoothlyFormInput.emit(d.convertArrays(this.value))}async smoothlyKeydownHandler(t){if(t.detail.key=="Enter"&&this.inputs.has(t.detail.name)){t.stopPropagation();await this.submit()}}windowSubmitHandler(t){t.target==this.element&&t.detail.result(false)}submitHandler(t){this.action&&t.stopPropagation()}async smoothlyInputLoadHandler(t){var e;t.stopPropagation();t.detail(this);const o=t.target;if(cr.Element.is(o)){if(await((e=o.binary)===null||e===void 0?void 0:e.call(o)))this.contentType="form-data";const t=await o.getValue();this.value=d.merge(this.value,{[o.name]:t});this.smoothlyFormInput.emit(d.convertArrays(this.value));this.inputs.set(o.name,o)}}async smoothlyFormDisableHandler(t){t.stopPropagation();t.detail(this.readonly)}async submit(t){this.processing=new Promise((e=>{this.smoothlyFormSubmit.emit({value:d.convertArrays(this.value),result:e,type:t==true?"remove":this.type});if(this.action){const o=this.action;this.notice.emit(L.execute("Submitting form",(async()=>{const s=t?"DELETE":!this.type||this.type=="create"?"POST":this.type=="change"?"PUT":this.type=="update"?"PATCH":"GET";const i=await er(_l.create(s=="GET"?{method:s,url:`${o}?${ir(this.value)}`}:Object.assign({method:s,url:o},this.value&&{header:{contentType:this.contentType?"multipart/form-data":"application/json"},body:this.value}))).catch((()=>undefined));const a=!i||(i===null||i===void 0?void 0:i.status)<200||i.status>=300?[false,"Failed to submit form."]:[true,"Form successfully submitted."];e(a[0]);return[...a]})))}}));if(await this.processing){this.type=="create"&&await this.clear();await this.setInitialValue();this.readonlyAtLoad&&await this.edit(!this.readonlyAtLoad)}this.processing=undefined}async clear(){await Promise.all([...this.inputs.values()].map((async t=>nr.is(t)&&t.clear())));this.smoothlyFormClear.emit()}async edit(t){await Promise.all([...this.inputs.values()].map((async e=>lr.Element.type.is(e)&&e.edit(t))));this.readonly=!t;this.smoothlyFormEdit.emit(t)}async reset(){await Promise.all([...this.inputs.values()].map((t=>lr.Element.type.is(t)&&t.reset())));this.changed=[...this.inputs.values()].some((t=>lr.type.is(t)?t.changed:true));this.smoothlyFormReset.emit()}async setInitialValue(){await Promise.all([...this.inputs.values()].map((t=>lr.Element.type.is(t)&&t.setInitialValue())))}render(){return e(s,{key:"544cb7ab781d344afba275f3e363a7ca5e615c2e"},e("smoothly-spinner",{key:"ffc3e23544446c744aec87941e1f7e137e71d83e",overlay:true,hidden:!this.processing}),e("form",{key:"ee0a5b140641775c1d55c961db46e3e630b666a8",onSubmit:!this.prevent?undefined:t=>t.preventDefault(),name:this.name},e("fieldset",{key:"dc7509953049315094ba44369d7c56ee22c2e511"},e("slot",{key:"b510be19fca9b78c6ecb3b84648f75a21fb40d97"})),e("div",{key:"985fd0b35f3664135c09bdd03f6156399a4d3d58"},e("slot",{key:"014fd2d642d29332f9fc28298b0cdbf2d5b7956a",name:"clear"}),e("slot",{key:"55d2fd1d90b303f56e9578704780fc78b9bc9e17",name:"edit"}),e("slot",{key:"2af69ee44488e47a52cf7dff75138c16c1883ef8",name:"reset"}),e("slot",{key:"f35a976b66dada2670d5a280d310aac518eedc75",name:"delete"}),e("slot",{key:"90b1dfac51e438c663d93218fb114a491495864f",name:"submit"}))))}get element(){return i(this)}static get watchers(){return{value:["watchValue"],readonly:["watchReadonly"]}}};mr.style=dr;const ur=".sc-smoothly-form-demo-h{display:flex;margin-top:2em;margin-bottom:10em}.sc-smoothly-form-demo-h>div.sc-smoothly-form-demo{margin:auto;width:1200px;max-width:100%}";const yr=ur;const br=class{constructor(e){t(this,e)}render(){return e(s,{key:"c5b442e2dc17139d030550d2595b2ce07c0c03ca"},e("div",{key:"5a453eff769ea4cef9f474ae7bd22cfdae97e66d"},e("smoothly-form-demo-all",{key:"1b771b6dbcdcf463b968518ee933bcf511adc25d"}),e("smoothly-form-demo-pet",{key:"9154d737dda44b49c7b1a4ddb3dfb7c2dc69bb4c"}),e("smoothly-form-demo-card",{key:"b91fb0a14460ddf0074e55b4b31de8871ad41d47"}),e("smoothly-form-demo-login",{key:"f0bc618e065739efda66c9eadb31d22785068e17"}),e("smoothly-form-demo-prices",{key:"b9c08280b8cdb857ffbd5c443f5693e2b22a7cd5"}),e("smoothly-form-demo-typed",{key:"e0a2cab7330a378e9aa8cec545f3aea804a0ff10"}),e("smoothly-form-demo-transparent",{key:"7cad7cf997da8d3cdfd40689a074fd746338eccc"}),e("smoothly-form-demo-date",{key:"1d8567528f1c8f3d5178b57e197b7818b7244dcf"}),e("smoothly-form-demo-schedule",{key:"0c96e9f297face51f234e8c377933468607d5ccd"}),e("smoothly-form-demo-date-range",{key:"e1409719e74987f69cb66e689a88484f3a662ef8"}),e("smoothly-form-demo-controlled",{key:"09d09373a678c6754be06e7795870ad8344bfe55"})))}};br.style=yr;const fr=class{constructor(e){t(this,e)}render(){return e(s,{key:"4aafdec8d02db081953d370ef8d76e2088bf1102"},e("h2",{key:"e8e4e41a8363fd24b1edc5a9e97a3b2c25858fe8"},"All inputs"),e("smoothly-form",{key:"2c8e99228944bacb529312d309b10b9f3dba8e43",looks:"grid",type:"create",readonly:true,action:"https://api.toiletapi.com/upload/6b12fd2f-e896-46f9-b38f-25cf42cee4b4",onSmoothlyFormSubmit:t=>{Object.entries(t.detail.value).forEach((([t,e])=>console.log(t,e)))}},e("smoothly-input",{key:"5453b9a059c8210c3311476842b7391f045667ab",readonly:true,name:"First Name",value:"John"},"First name"),e("smoothly-input",{key:"90e31870a59bc198001b433647d2464a8686c019",showLabel:false,name:"Last name",value:"Doe"},"Last name",e("smoothly-input-clear",{key:"a9a8375a554d460964cf1f8d2d83599e378143c0",size:"icon",slot:"end"})),e("smoothly-input",{key:"f1af6f8f2c4c244a61bc4b7e2b2402c15bd36040",type:"phone",name:"Phone",value:"777888999"},"Phone",e("smoothly-input-reset",{key:"b07098fb565faa815121b1ac12d2f19c5dae383f",size:"icon",slot:"end"})),e("smoothly-input-radio",{key:"a7a55e86d8c37219a8f689ae44f249fa4b147357",clearable:true,name:"radioFirstInput"},e("label",{key:"3efcc33f30a7f52c4e287ddadf136b7bff33a383",slot:"label"},"Clearable"),e("smoothly-input-radio-item",{key:"bcdd7d2d5a7e3f9164f3970330ca517922ba1cc9",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"b90c7edce08ca75afc2abd72b91db9e7ec30621a",selected:true,value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"dfa717cfb10099f10c66810054e9c51874272c9a",value:"third"},"Label 3")),e("smoothly-input-color",{key:"28c439cbcb81a7f3480e67d956cf28b0cdff18c0",name:"color"},"Color"),e("smoothly-input-select",{key:"9d832b5471b3703173f92d0b2536af790ec872e2",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},e("label",{key:"bcc8d409a8d0fbfbdd7edc757958b3a43c2121b8",slot:"label"},"Month multiple select"),e("smoothly-item",{key:"9270263fc0907a95fa4fda20faab20724463eccc",value:"1"},"January"),e("smoothly-item",{key:"df50a7b49930b58947e4ada4787fe0f3b9c7959b",value:"2"},"February"),e("smoothly-item",{key:"c9c9ed6fa3f64f2bb2a7f7ce7a8e3e6ec973a71b",value:"3"},"March"),e("smoothly-item",{key:"1a4df13779efe8c8c61f2e57c39684690a7e677a",value:"4"},"April"),e("smoothly-item",{key:"c03f5dfebd422e4a81af772ab5ac5ddb08edecbd",value:"5"},"May"),e("smoothly-item",{key:"1238d99c2295fa52c22e67076b9714d12cc19cba",value:"6"},"June"),e("smoothly-item",{key:"46256dc03ebe9f2bebf360dfc51778aa1fa3f231",value:"7"},"July"),e("smoothly-item",{key:"0d2d6530ef9a48579bf014197fa29c1778138b2d",value:"8"},"August"),e("smoothly-item",{key:"c454e4f74973b4e4919c8ea40576d174ec7c9762",value:"9"},"September"),e("smoothly-item",{key:"6a410dc5b68b3fbd123531b99bad22d7ed9c0bce",value:"10"},"October"),e("smoothly-item",{key:"5214628e65ea539a77a14eeb2bbfe4270fb03033",value:"11"},"November"),e("smoothly-item",{key:"2ab1330f7b25c711d6d50239cff5f8c417addca6",value:"12"},"December")),e("smoothly-input-select",{key:"a1493892d87ab651e53780905807570b50b91d07",name:"select-icon",clearable:false,showSelected:false},e("smoothly-item",{key:"61df0c697952bff56da044b3f29748926e58967a",value:"folder",selected:true},e("smoothly-icon",{key:"0e54b6ca59fccab56e3ed55aa03862a263eb7e55",size:"small",name:"folder-outline"})),e("smoothly-item",{key:"5c3321c5142c69b3065b32a6b55a34aecfab33be",value:"camera"},e("smoothly-icon",{key:"cccbfdb9939b3d16a885d6605436fc54c1da3019",size:"small",name:"camera-outline"}))),e("smoothly-input-checkbox",{key:"f2bd24855f068fb7add590cb87f4050a3c18c17f",name:"checkbox"},"Check the box"),e("smoothly-input-checkbox",{key:"59a3654cf275543968911fa8dba440c1667496f9",name:"checkbox2",checked:true},"Check the box 2"),e("smoothly-input-range",{key:"45ed118690207280f2c26768d0da1b7801b24bf2",step:1,name:"range3",value:20,label:"Range"}),e("smoothly-input",{key:"4d597c188035beeec5adc9ccef43bdf9e3eb2427",name:"pets.0.name"},"First Pet's Name"),e("smoothly-input-range",{key:"9a9310130e8c940f4ec771aa6753e8f7231a7228",name:"pets.0.age",max:100,step:1,label:"First Pet's Age"}),e("smoothly-input",{key:"2c6cd64ce3a290205856e2442a1ef199a46d1cff",name:"pets.1.name"},"Second Pet's Name"),e("smoothly-input-range",{key:"e90157d8dfae3668bc67aa5646f2176754b08347",name:"pets.1.age",max:100,step:1,label:"Second Pet's Age"}),e("smoothly-input",{key:"26ee4906aa12fc145f24a45fbe4e0e6ac4f828e7",name:"pets.2.name"},"Third Pet's Name"),e("smoothly-input-range",{key:"9c313148e3134d81f9ffbe76bb50ddea1e5f82e3",name:"pets.2.age",max:100,step:1,label:"Third Pet's Age"}),e("smoothly-input-file",{key:"471cde92dd3f9b6deb214d85fc689c4451ee2aac",name:"profile",placeholder:"Click or drag your profile picture here..."},e("span",{key:"9baf5b9e972d897d55296c4bc870b2c22df72caa",slot:"label"},"Profile"),e("smoothly-icon",{key:"15b62211482dedb406cc0fe9979b2ea845ba8fb6",slot:"button",name:"person-circle-outline",size:"tiny",fill:"default"})),e("smoothly-input",{key:"60578f6da664c305319c8f04d30a1c05eae33a06",type:"duration",name:"duration",value:{}},"Duration"),e("smoothly-input-clear",{key:"8a9f189bacdba4054cbe6f4f21cd11c5246b5abb",fill:"default",type:"form",color:"warning",slot:"clear",size:"icon",shape:"rounded"}),e("smoothly-input-edit",{key:"480cf7b27cbdc2047f126677eb425a1576e98314",fill:"default",type:"form",color:"tertiary",slot:"edit",size:"icon",shape:"rounded"}),e("smoothly-input-reset",{key:"e3b3fb9fbf3a7999c76d81c85629170dd5efd6c3",fill:"default",type:"form",color:"warning",slot:"reset",size:"icon",shape:"rounded"}),e("smoothly-input-submit",{key:"db4bb9254a75878098844e4804a6121f053f631b",delete:true,slot:"delete",color:"danger",size:"icon",shape:"rounded"}),e("smoothly-input-submit",{key:"57b118fb1b4852b39baf424c3f69f1fa00bea891",fill:"default",color:"success",slot:"submit",size:"icon",shape:"rounded"})))}};const pr=class{constructor(e){t(this,e)}render(){return e(s,{key:"e6e9b32074fdf87dab50af3c1f904ac6861964ef"},e("h2",{key:"d4512eea73d23fb396db207b58fd437b282ba6d1"},"Card"),e("smoothly-form",{key:"96adcef6dba1a152573a391a8d020fba1c498b2e",looks:"grid",onSmoothlyFormSubmit:t=>alert(JSON.stringify(t.detail))},e("smoothly-input",{key:"c7e9dd627c326a133cdc3833d8aa9bee1fe3cd85",type:"card-number",name:"card"},"Card #"),e("smoothly-input-submit",{key:"e5d11e876a9ad1171ce24aefa7f104fc51948df3",size:"icon",slot:"submit",color:"success",fill:"solid"}),e("smoothly-input",{key:"b7193c79148812850e1d31970f6696da9c8a1083",type:"card-expires",name:"expires"},"Expires"),e("smoothly-input",{key:"69e610530f2d65909289c3a957df8c182613e9f4",type:"card-csc",name:"csc"},"CVV/CVC"),e("smoothly-input",{key:"4f9685d7d83dff346e4660c25886193030395e73",type:"text",name:"name.first"},"First Name"),e("smoothly-input",{key:"73f829b49a411a438f2228d17679671a0075335d",type:"text",name:"name.last"},"Last Name")))}};const gr=class{constructor(e){t(this,e);this.currencies=["GBP","SEK","EUR","USD"];this.name="Initial name";this.currency="EUR";this.date=w.now()}nameChanged(t,e){console.log(`updated name from '${e}' to '${t}'`)}async submitHandler(t){t.stopPropagation();console.log("Received event. Processing...",t.detail);if(!(typeof t.detail.value.name=="string")){console.error("Bad input. Resolving false.")}else if(!(typeof t.detail.value.date=="string"))console.error("Bad input. Resolving false.");else if(!C.is(t.detail.value.currency))console.error("Bad input. Resolving false.");else{await new Promise((t=>window.setTimeout(t,1e3)));this.name=t.detail.value.name;this.date=t.detail.value.date;this.currency=t.detail.value.currency;console.log("Finished processing successfully. Resolving true.");t.detail.result(true)}t.detail.result(false)}render(){return e(s,{key:"ef92c785b3365355b8ba811433b79938d060a5a4"},e("h2",{key:"306ca5c5065a7a6e92ddf920fc987bf61228ab42"},"Controlled"),e("smoothly-form",{key:"92248470b1409209b278951fdd4235cab8b6dc08",readonly:true,looks:"grid",onSmoothlyFormSubmit:t=>this.submitHandler(t)},e("smoothly-input",{key:"57d2c32977ca8b036f4d645ba9487df62d396073",type:"text",name:"name",value:this.name},"Name"),e("smoothly-input-select",{key:"9e29c5a6cb0b31b23fbe5e4db5c915e11b61eb10",name:"currency"},e("span",{key:"bae8a234efdf2ff5964797acb15ace498cdb2265",slot:"label"},"Currency"),this.currencies.map((t=>e("smoothly-item",{selected:t==this.currency,value:t},t)))),e("smoothly-input",{key:"d178a9307c618462ef461009da95292fd6f11b2f"},"Dummy"),e("smoothly-input-month",{key:"724c1e722dc1356525201c391321ecce06580ef4",name:"date",value:this.date,next:true,previous:true},e("span",{key:"93fb5f06e98380c3a26435e560cbbfdff67369ef",slot:"year-label"},"Year"),e("span",{key:"29ff08b4c11e66ddd5529b872ba310189ce460d5",slot:"month-label"},"Month")),e("smoothly-input-edit",{key:"869f2703a94250f47169d0f532995ee239479387",slot:"edit",size:"icon",color:"primary",fill:"default"}),e("smoothly-input-reset",{key:"6801450e28506323ec1e963540acf491419b48d2",slot:"reset",size:"icon",color:"warning",fill:"default"}),e("smoothly-input-submit",{key:"7c5df04fd4720162adaea05387260f3132e940bf",slot:"submit",size:"icon",color:"success"})))}static get watchers(){return{name:["nameChanged"]}}};const kr=".sc-smoothly-form-demo-date-h{display:block}";const vr=kr;const wr=class{constructor(e){t(this,e);this.notice=o(this,"notice",7);this.validator=z({date:m("isoly.Date",w.is)})}async submitHandler(t){t.stopPropagation();if(!this.validator.is(t.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(L.failed(`Type is incomplete.`))}else{this.notice.emit(L.succeeded(`Type is complete!`));t.detail.result(true)}t.detail.result(false)}render(){return e(s,{key:"22f4ed40b5848bc4784005b35f4601ade0ce4aac"},e("h2",{key:"c894900036aa83547c5b92acde5fa1dc2e56030f"},"Date input"),e("smoothly-form",{key:"d0ac14b67b826e1b731b397c76d78f2999b946ec",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:t=>this.submitHandler(t)},e("smoothly-input-date",{key:"74557c8d42c7091413536585a6eedef8cc464ca1",name:"date"},"Date"),e("smoothly-input-submit",{key:"283d86091ece17e31f8a9818ee281335836a314e",slot:"submit"},e("smoothly-icon",{key:"189942a7dd92dd1166b83edfe8987cd3e18d8a39",name:"checkmark-outline"}))))}};wr.style=vr;const xr=".sc-smoothly-form-demo-date-range-h{display:block}";const Sr=xr;const Cr=class{constructor(e){t(this,e);this.notice=o(this,"notice",7);this.validator=z({range:m("isoly.DateRange",I.is)})}async submitHandler(t){t.stopPropagation();if(!this.validator.is(t.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(L.failed(`Type is incomplete.`))}else{this.notice.emit(L.succeeded(`Type is complete!`));t.detail.result(true)}t.detail.result(false)}render(){return e(s,{key:"68aae8530e210936e6ee1cb52e65835cb5376088"},e("h2",{key:"ab56927aa4b3ffb87ad6ccda58ae62933c210ed7"},"Date-range input"),e("smoothly-form",{key:"b1901ddc4170e4f0cd5fd3a2685ba98230a519a4",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:t=>this.submitHandler(t)},e("smoothly-input-date-range",{key:"02ddba37b9f1a82f494717bbcdac1b86aff508b5",name:"range"},"Range"),e("smoothly-input-submit",{key:"91c4c3b390da5f50236ab9afbd53c1b005a7a90a",slot:"submit"},e("smoothly-icon",{key:"ddecec0e052bf335197963a0e85345a4396d3976",name:"checkmark-outline"}))))}};Cr.style=Sr;const zr=class{constructor(e){t(this,e)}render(){return e(s,{key:"914cd546393dcc39159cb968565a77afb574538f"},e("h2",{key:"7fee155ff0311666f0061bfe0b0292d7418150f1"},"Login"),e("smoothly-form",{key:"f3237c61ebb16e0f7715a87e3a949705fa6979ab",looks:"border"},e("smoothly-input",{key:"0ed97ea010760f27c89e4c78d3b00dca898b4d98",type:"text",name:"username"},"Username"),e("smoothly-input",{key:"039a6e17d6e359a93639ec99442b8cd93c91a1e1",type:"password",name:"password"},"Password"),e("smoothly-input-reset",{key:"e64d6a94c00b458d0d7c5e5b77a5f8b3a0fc316f",slot:"reset",type:"form",size:"icon",color:"warning"}),e("smoothly-input-submit",{key:"886ea445167ab3281130390594d3e165e7676b4b",slot:"submit"})))}};const jr='.sc-smoothly-form-demo-pet-h{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:auto auto;grid-column-gap:2rem}.sc-smoothly-form-demo-pet-h smoothly-input-checkbox[name="hasOwner"].sc-smoothly-form-demo-pet,.sc-smoothly-form-demo-pet-h>smoothly-form.sc-smoothly-form-demo-pet smoothly-summary.sc-smoothly-form-demo-pet,.sc-smoothly-form-demo-pet-h>smoothly-form.sc-smoothly-form-demo-pet smoothly-tabs.sc-smoothly-form-demo-pet{flex-basis:100%}';const _r=jr;const Ir=class{constructor(e){t(this,e);this.hasOwner=false;this.owner={};this.value=undefined}render(){var t,o;return e(s,{key:"ca731e714eb7d3c9027c8eaacccf0ef611917de7"},e("h2",{key:"6b4198cb4bc6f85810f4559fcfa97b8aa1948d76"},"Pet"),e("h3",{key:"8877db7feccc2c437df73f4b9d1df2c0d9e9397f"},"Value"),e("smoothly-form",{key:"817548dbe700db117d066032605e83e89bae52f9",looks:"border",onSmoothlyFormSubmit:t=>alert(JSON.stringify(t.detail)),onSmoothlyFormInput:t=>this.value=Object.assign({},t.detail)},e("smoothly-input",{key:"159422b05784af942138ba2b73c663988a981795",type:"text",name:"name.first"},"Name"),e("smoothly-input",{key:"a63d1fee5a11efff76f921e18cf7905473a41715",type:"integer",name:"age"},"Age (Years)"),e("smoothly-input-checkbox",{key:"8ad23527074d579b7ba39e9d39ba25c458173114",name:"hasOwner",onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyInput:t=>{this.hasOwner=t.detail.hasOwner;t.stopPropagation()}},"Has Owner"),this.hasOwner&&e(a,{key:"fc45ad128e8f79b37745c32f67d1ba7e8b1c4fbf"},e("smoothly-input",{key:"86d389e5e7b0d28d0df399400085729f6471716c",type:"text",name:"owner.firstName",value:this.owner.firstName,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{firstName:t.detail["owner.firstName"]})},"Owner First Name"),e("smoothly-input",{key:"cd62d7fb931c4400103fcc9d9a053a05fa85e487",type:"text",name:"owner.lastName",value:this.owner.lastName,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{lastName:t.detail["owner.lastName"]})},"Owner Last Name"),e("smoothly-input-file",{key:"a2896030432f228ad920cdeb4ba5858622ec80c5",name:"owner.picture"},e("span",{key:"24617088152871d9ccdaec6090a8f373d91f23bd",slot:"label"},"Owner picture")),e("smoothly-input-date",{key:"0401cc3c3323b07f71276a072319a30325200c3a",name:"owner.birthday",value:this.owner.birthday,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{birthday:t.detail["owner.birthday"]})},"Owner birthday"),e("smoothly-input-date-range",{key:"157925e70ec5003e368a04d598974017ed09ebb4",name:"owner.ownedRange",start:(t=this.owner.ownedRange)===null||t===void 0?void 0:t.start,end:(o=this.owner.ownedRange)===null||o===void 0?void 0:o.end,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{ownedRange:t.detail["owner.ownedRange"]})},"Owner ownedRange"),e("smoothly-input-range",{key:"ddb0c2ce68a4217fc9888bd5cfd1ba23f86070c7",name:"owner.height",step:1,max:250,value:this.owner.height,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{height:t.detail["owner.height"]})},"Owner's Height"),e("smoothly-input-select",{key:"c8c5da0249521e8531c89a7b8b3ac763d87efb41",name:"owner.favoriteHat"},e("span",{key:"a80454815d98de8211d0811be4f4e010eb5fea1d",slot:"label"},"Owner's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((t,o)=>e("smoothly-item",{value:t,key:o,selected:this.owner.favoriteHat==t},t)))),e("smoothly-input-color",{key:"e89472883061c53b0f8eb697ee7780fddd438426",name:"owner.favoriteColor",value:this.owner.favoriteColor?u.toHex(this.owner.favoriteColor):undefined,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{favoriteColor:t.detail["owner.favoriteColor"]})},"Owner's Favorite Color"),e("smoothly-input-radio",{key:"50c7b642ea08b27fd6f2a29d1cd1985b13f14789",name:"owner.favoritePizza",value:this.owner.favoritePizza,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{favoritePizza:t.detail["owner.favoritePizza"]})},e("span",{key:"baa6df6905dd70e4572b91ee17d599c75a593c91",slot:"label"},"Owner's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((t,o)=>e("smoothly-input-radio-item",{value:t,key:o},t)))),e("smoothly-input-checkbox",{key:"5bb00bd662f3c4e537ce4fd107845b8d5abf09fd",name:"owner.hasPet",checked:this.owner.hasPet,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{hasPet:t.detail["owner.hasPet"]})},"Has Pet")),e("smoothly-summary",{key:"4a3fc4cd07aa3873945c3ab974f99d037e3fbbda"},e("span",{key:"0afdd64ca5682fbffd32bd276ad1754347be7c22",slot:"summary"},"Summary"),e("div",{key:"495ef4c2d75d1643bc4f60dba3ce24d4b59cbe74",slot:"content"},e("smoothly-input",{key:"b62901460412b55658e0ecf9684dcf228c9b8aeb",type:"price",name:"summary.price",currency:"EUR"},"Summary Price"),e("smoothly-input-file",{key:"f5bbe653d7d76f849d407ed5412e7fd74738cf67",name:"summary.picture"},e("span",{key:"f895d5cd3508e1d0584c4b0f27b55a782f400185",slot:"label"},"Summary picture")),e("smoothly-input-date",{key:"0954c449c3dde1535e41b5b7ef8c68769c41bc92",name:"summary.birthday"},"Summary birthday"),e("smoothly-input-date-range",{key:"517776b35be90839508d52ef064ab6f60666ac04",name:"summary.ownedRange"},"Summary ownedRange"),e("smoothly-input-range",{key:"9177373ede95dd28367e3da1ee1f1f9320f8d3b3",name:"summary.height",label:"Height"}),e("smoothly-input-select",{key:"b49a7896448c2d40440e5ab6cec301d73d873669",name:"summary.favoriteHat"},e("span",{key:"50efd70498341500f18cbc37beaaa36fabb8dfa1",slot:"label"},"Summary's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((t,o)=>e("smoothly-item",{value:t,key:o},t)))),e("smoothly-input-month",{key:"3855402ed77dd5d6e8e2e3e5d83928df72846a6e",name:"summary.month"},e("span",{key:"2a19d1c8ca76b2a9e161c1ddff12574157074994",slot:"month-label"},"Summary month")),e("smoothly-input-color",{key:"5860b2f19faf59a89dc7ec927580eec8c87cbb4a",name:"summary.color"},"Summary Color"),e("smoothly-input-radio",{key:"ed742b746ecd09c0a68b239b020a0d5c98a055a7",name:"summary.favoritePizza"},e("span",{key:"658d7669cad7375204a0b8da4e811859d79ce8ac",slot:"label"},"Summary's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((t,o)=>e("smoothly-input-radio-item",{value:t,key:o},t)))),e("smoothly-input-checkbox",{key:"5b6e99bdbf96c73a979dbf896e283e04c7e5914c",name:"summary.hasPet"},"Has Pet"))),e("smoothly-tabs",{key:"4f491e665758c320d52b1296eb9bb7497697b626"},e("smoothly-tab",{key:"a0bf8af72607a286852fc39001708de27bf2e150",label:"Dog"},e("smoothly-input",{key:"ad8d73982d3791688cac56360b7924747af0110e",type:"text",name:"dog.breed"},"Breed"),e("smoothly-input-file",{key:"8e5248bf2108046ca6cbdd8ec0185d2cb9aec86c",name:"dog.picture"},e("span",{key:"a4250a2ad68960d8842266cab470a91809c7b245",slot:"label"},"Dog picture")),e("smoothly-input-date",{key:"106416b67980f12d5c22166e24824835118bccf6",name:"dog.birthday"},"Dog birthday"),e("smoothly-input-date-range",{key:"2a1b7a1cf995ef931b8780d97f3170f7b854dc17",name:"dog.dateRange"},"Dog date range"),e("smoothly-input-select",{key:"68446eaab3c5f035c03b408496d2a2f259e2c632",name:"dog.favoriteHat"},e("span",{key:"a22bf81ce8b12b752652a7605679c8aee1daf783",slot:"label"},"Dog's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((t,o)=>e("smoothly-item",{value:t,key:o},t)))),e("smoothly-input-color",{key:"bead816b30d4577c2888420696cca1ab5aa67e66",name:"dog.favoriteColor"},"Dog's Favorite Color"),e("smoothly-input-radio",{key:"4b92479885ffe3f6457946214192c5301298d421",name:"dog.favoritePizza"},e("span",{key:"01ee08918c28deac0d27058f2eca7bcf73d7fe1a",slot:"label"},"Dog's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((t,o)=>e("smoothly-input-radio-item",{value:t,key:o},t)))),e("smoothly-input-checkbox",{key:"cda0f160b8e813fec7d648a2451b3ba033bfa0c4",name:"dog.hasPet"},"Has Pet")),e("smoothly-tab",{key:"796d71378bcf2258a379332b2d48569435ad0bf7",label:"Cat",open:true},e("smoothly-input",{key:"751076dda5a70f296b5bb4304b7b66003134e098",name:"cat.favoriteFood"},"Favorite Food"))),e("smoothly-input-submit",{key:"5c8b9b8a08e1eff68c8b6420423d61fcdc4fe3c3",size:"icon",slot:"submit",color:"success",fill:"solid"})),e("smoothly-display",{key:"5ce4e16973896ff5e73e0a31697e5f4bb9471465",type:"json",value:this.value}))}};Ir.style=_r;const Tr=class{constructor(e){t(this,e)}render(){return e(s,{key:"9d7de2edf91d84fd944b0787aaae43abf274ac49"},e("h2",{key:"643d7d413bbe2dfd46e26fe227527e6c089c5cc6"},"Prices"),e("smoothly-form",{key:"8208d0a84ce3af46be9b9eb93652b3664ee643c8",looks:"line"},e("smoothly-input",{key:"e68ccdf92d114eebb5354f58254fc7e934dd8018",type:"price",name:"no"},"No currency"),e("smoothly-input",{key:"e4def726dbfe3e26c9292359f684eaad919fbf9c",type:"price",name:"crowns",currency:"SEK",toInteger:true},"SEK (toInteger)"),e("smoothly-input",{key:"d8519a00bf2f6f73cad691e7f5b1ef1bc465cadf",type:"price",name:"usDollar",currency:"USD"},"USD"),e("smoothly-input",{key:"bcc8cc63fbe4b674327e8216b65ae8861a70b1ca",type:"price",name:"pounds",currency:"GBP"},"GBP"),e("smoothly-input",{key:"4c25cadee15865ebac7e336685c97f354a16c142",type:"price",name:"peso",currency:"UYW"},"UYW"),e("smoothly-input",{key:"7928b1a081003be0858728f5bca227e040fecff2",type:"price",name:"iceland",currency:"ISK"},"ISK"),e("smoothly-input",{key:"4bcd0d6eeb77f290dbeb16a29dded1481ff53bdc",type:"price",name:"Palladium",currency:"XPD"},"XPD (Palladium)"),e("smoothly-input-reset",{key:"1223ba4cf3d7ab1cb6ab43ec706d54f5561741ea",slot:"reset",fill:"default",type:"form",color:"warning"}),e("smoothly-input-submit",{key:"a10a2e58fb28cfb12318a0915badf62254658221",slot:"submit"})))}};var Or;(function(t){t.type=z({date:m("isoly.Date",w.is),amount:T()})})(Or||(Or={}));var Lr;(function(t){t.type=z({schedule:Or.type.array()})})(Lr||(Lr={}));const Ar=class{constructor(e){t(this,e)}render(){return e(s,{key:"8779c231cfea2a0488329c8384180b2ce6653c77"},e("h2",{key:"7701101473e77f81f83d217cd9da07ddf3719917"},"Schedule"),e("smoothly-form",{key:"4bd3b21b816df424c8d24d6ef3aa8481f866faa7",looks:"line",validator:Lr.type},e("smoothly-input-date",{key:"581aeb5c592bb6d136aced229b57b323a4d22157",name:"schedule.0.date"},"Date"),e("smoothly-input",{key:"d5d8a372a1c75ba95d309f9bd88421f7515adc98",name:"schedule.0.amount",type:"price"},"Amount"),e("smoothly-input-date",{key:"433e2853f54b231a2a055707034e6044864b308e",name:"schedule.1.date"},"Date"),e("smoothly-input",{key:"fdae625f6319f7ce39dc60ef54f40814aa413b9a",name:"schedule.1.amount",type:"price"},"Amount"),e("smoothly-input-date",{key:"871ce952af55714bff595bfcc1792f8904489b68",name:"schedule.2.date"},"Date"),e("smoothly-input",{key:"ad3fd48a4325c79923b50c5631347d607eed16b5",name:"schedule.2.amount",type:"price"},"Amount"),e("smoothly-input-reset",{key:"76c80fbd2868d82ccc3620937c50aaade8a6c91d",slot:"reset",fill:"default",type:"form",color:"warning"}),e("smoothly-input-submit",{key:"8d7cd8f3f3a8ee14c3b3210543874522d5bee3d9",slot:"submit"})))}};const Mr=class{constructor(e){t(this,e)}render(){return e(s,{key:"53a31c785dc06bb1865af601f2272eea264bcf45"},e("h2",{key:"c5f0b6d091ac14b6c536ac86408101b965835a65"},"Transparent"),e("smoothly-form",{key:"f5ea31b4f975357c68d26736154b7a5c50674bb8",looks:"transparent",onSmoothlyFormSubmit:t=>console.log(t.detail.value)},e("smoothly-input-file",{key:"1ba3016a6b22095e36a12045acfb6a7122b326b0",name:"file"},e("span",{key:"ca7092555b9cae88390cbb594d46b91b97b46aa3",slot:"label"},"File"),e("smoothly-icon",{key:"c2b4022eb8dc04cc244d70e7fa9fb493cfd06fa3",slot:"button",name:"folder-open-outline",size:"small"})),e("smoothly-input",{key:"a0e13fe8040012c94419c63cc49623a621843451",type:"duration",looks:"transparent",placeholder:"h:mm"},"Input"),e("smoothly-input-date",{key:"0f6e14d465889d70de386972c19de0beee90517e"},"Date"),e("smoothly-input-date-range",{key:"f399d3172c129018ba86e217f8e2cb2534165340"},"Date Range"),e("smoothly-input-select",{key:"85c77b434a7296389e6050257053f9d31e564cee",name:"transport"},e("smoothly-item",{key:"f0c1dcf75073173bd2be1171d2a783ec6ed0d22c",value:"plane"},e("smoothly-icon",{key:"f666fd4254963626e7cde15a41c33b5b7aa0cce4",name:"airplane-outline"})),e("smoothly-item",{key:"e9ab4adb7f56fdd26faf7fe8f315a73066743e94",value:"car"},e("smoothly-icon",{key:"01e19307755adb4a0d31fcdc6356a3c549315e5d",name:"car-outline"})),e("smoothly-item",{key:"f624fbb5cd65bfd15117899389571d922df254b1",value:"bus",selected:true},e("smoothly-icon",{key:"c400375975272b95de64403e81f35d62247819c3",name:"bus-outline"}))),e("smoothly-input-submit",{key:"83ecdfad32bb44f5aee22bd9ed7fa08adbec348c",icon:"checkbox-outline"})))}};var Er;(function(t){t.type=z({name:z({first:j(),middle:j().optional(),last:j()}),age:T((t=>18<=t&&t<=120)),country:m("CountryCode",O.is),birthday:m("Date",w.is)})})(Er||(Er={}));const Dr="";const $r=Dr;const Rr=class{constructor(e){t(this,e)}render(){return e(s,{key:"7436ace22d5c15d63af957d69be005e2112052de"},e("h2",{key:"08458d0241d08780ec24a72a127e8c0cc93f3aa1"},"Typed Contact"),e("smoothly-form",{key:"16232cad107da9e5f472e960dca4f4a0b953b7bd",validator:Er.type},e("smoothly-input",{key:"d7561d6eab24a5a0f1bc29c970d32f5eb72fba80",name:"name.first"},"First Name"),e("smoothly-input",{key:"cf44c5b7b47bcb8d3adcb82b8ea1d06e64b15f8d",name:"name.middle"},"Middle Name (optional)"),e("smoothly-input",{key:"b6d253c5b17c453b4bc73dc4c90efefc7d63edce",name:"name.last"},"Last Name"),e("smoothly-input",{key:"0165cecb177e1c269c2a0db4e926306271d8a6be",name:"age",type:"integer"},"Age (18-120)"),e("smoothly-input-select",{key:"3f30a15dbe4de0a5b0584cb8cf2dc48f6b9de077",name:"country"},e("span",{key:"375090b3654e3351a1fffa1a85d3444c3374d82c",slot:"label"},"Country"),O.values.map((t=>e("smoothly-item",{value:t},A(t))))),e("smoothly-input-date",{key:"8127e66c92cbec9e91019cd7fd3a5f82d7923bc5",name:"birthday"},"Date of birth"),e("smoothly-input-reset",{key:"2c305f958cb25930100f182475d79fbeb69552f3",slot:"reset",type:"form",size:"icon",color:"warning"}),e("smoothly-input-submit",{key:"83e6fb1099c61c68bcdac8465d51b0cb91fb1722",slot:"submit",size:"icon",color:"success"})))}};Rr.style=$r;const Pr=".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 Fr=Pr;const Hr=class{constructor(e){t(this,e);this.trigger=o(this,"trigger",7);this.message2=o(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)y.listen((t=this.origin)!==null&&t!==void 0?t:this.defaultOrigin,((t,e)=>{if(t==this.name)if(l.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")y.send(((o=this.origin)!==null&&o!==void 0?o:this.defaultOrigin)+"#"+t,e,this.contentWindow);else if(y.is(t)&&this.contentWindow)y.send({destination:((s=this.origin)!==null&&s!==void 0?s:this.defaultOrigin)+"#"+t.destination,content:t.destination},this.contentWindow)}render(){return[]}get element(){return i(this)}};Hr.style=Fr;const Nr="[fill].sc-smoothly-icon-h{background:none}.sc-smoothly-icon-h{display:flex;align-items:center;justify-content:center;box-sizing:content-box}[rotate].sc-smoothly-icon-h{--rotate:rotate(var(--rotation, 0deg));transform:var(--rotate)}[flip=x].sc-smoothly-icon-h{--flip:scaleX(-1);transform:var(--flip)}[flip=y].sc-smoothly-icon-h{--flip:scaleY(-1);transform:var(--flip)}[rotate][flip].sc-smoothly-icon-h{transform:var(--rotate)var(--flip)}[hidden].sc-smoothly-icon-h{display:none}[size=tiny].sc-smoothly-icon-h{--smoothly-icon-size:1.2em}[size=small].sc-smoothly-icon-h{--smoothly-icon-size:1.4em}[size=medium].sc-smoothly-icon-h{--smoothly-icon-size:1.8em}[size=large].sc-smoothly-icon-h{--smoothly-icon-size:2.8em}[size=xlarge].sc-smoothly-icon-h{--smoothly-icon-size:4em}.sc-smoothly-icon-h{width:var(--smoothly-icon-size, 1.8em);height:var(--smoothly-icon-size, 1.8em)}.sc-smoothly-icon-h.sc-smoothly-icon-s>svg{width:100%}";const Yr=Nr;const Ur=class{constructor(e){t(this,e);this.color=undefined;this.fill="solid";this.name="empty";this.size=undefined;this.rotate=undefined;this.flip=undefined;this.toolTip=undefined;this.latestPromise=undefined;this.document=undefined}async componentWillLoad(){await this.nameChanged()}async nameChanged(){if(this.name!="empty"){const t=this.latestPromise=b.load(this.name);let e=await t;if(t==this.latestPromise){e=e===null||e===void 0?void 0:e.replace(/(?<=^<svg\s?)/,`$& role="img"`).replace(` width="512" height="512"`,"").replace(/stroke:#000;/gi,"");if(!this.toolTip)e=e===null||e===void 0?void 0:e.replace(/<title>.*<\/title>/,"");else if(e===null||e===void 0?void 0:e.includes("<title>"))e=e.replace(/(<title>).*(<\/title>)/,`<title>${this.toolTip}</title>`);else e=e===null||e===void 0?void 0:e.replace(/(.*>)(<\/svg>$)/,`$1<title>${this.toolTip}</title>$2`);this.updateDocument(e)}}else this.updateDocument()}updateDocument(t){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(){var t;return e(s,{key:"11b2bc0439710470af7ca83d814f7e3e18e5b52e",innerHTML:this.document,style:{["--rotation"]:`${(t=this.rotate)!==null&&t!==void 0?t:0}deg`}})}static get watchers(){return{toolTip:["nameChanged"],name:["nameChanged"]}}};Ur.style=Yr;const Wr=".sc-smoothly-icon-demo-h{display:block;width:clamp(200px, 100%, 1200px);margin:auto}[hidden].sc-smoothly-icon-demo-h{display:none}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo{display:flex;flex-flow:row wrap}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo{padding:1rem;position:relative}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo:hover{scale:1.5}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo:hover::after{content:attr(data-name);position:absolute;white-space:nowrap;bottom:100%;background:rgb(var(--smoothly-default-contrast));color:rgb(var(--smoothly-default-color));padding:0.25rem 1rem;z-index:1;pointer-events:none}";const Br=Wr;const Vr=class{constructor(e){t(this,e);this.notice=o(this,"notice",7);this.page=0;this.display={};this.props={}}render(){return e(s,{key:"4243369b1c46749df379f00e96544fa4761a5286"},e("h2",{key:"118123fd7ac92a6f1d2b6a78cc1fa024002b87cf"},"Filter and Variants"),e("smoothly-form",{key:"50cf6fb15cf329f386105fced5af132e1bfe24db",onSmoothlyFormInput:t=>this.display=t.detail},e("smoothly-input",{key:"9d5255638f23b72f71c43cb3c2545b2ec91d77dc",name:"filter"},"Filter"),e("smoothly-input-select",{key:"55b8e177f8ea3d3b2b189d256d372511280cbeda",name:"variant"},e("span",{key:"7bf040f9f34f789ab6cb0ab18296bb890d29f669",slot:"label"},"Variant"),e("smoothly-item",{key:"1ba46adbd0ff9eb9feb3096e25988c9b8130c228",value:"outline"},"outline"),e("smoothly-item",{key:"e55d0500bcfe1710f53cc705c26422744a14c1e1",value:"sharp"},"sharp"),e("smoothly-input-clear",{key:"3d0134c752032fede37899736da37833dfc869de",slot:"end"}))),e("h2",{key:"1c16464c982caf23966cf682600003b7c3958dda"},"Props"),e("smoothly-form",{key:"cc7c7f1cfbaf5f945033509bea2af64fd6898569",onSmoothlyFormInput:t=>this.props=t.detail},e("smoothly-input-select",{key:"39f0f89aacf12e2bdcab0873b5246b6780319cc6",name:"color"},e("span",{key:"d57d920476f11816ed41492ef518f7e2270e7dbb",slot:"label"},"Color"),r.types.map((t=>e("smoothly-item",{value:t,color:t},t))),e("smoothly-input-clear",{key:"9d2941451b4ce21f096f746b5be86d4eafcff263",slot:"end"})),e("smoothly-input-select",{key:"49fa93be8d22f2073ee01a5b15a0c73b983be912",name:"flip"},e("span",{key:"2a790cdd858df40128c7ace45ed01d70deb223b8",slot:"label"},"Flip"),e("smoothly-item",{key:"d26a41e2dbcc737453649751ac6abbaefd945726",value:"x"},"x"),e("smoothly-item",{key:"afa74692c11e593ee2281f26d4687728b56621f4",value:"y"},"y"),e("smoothly-input-clear",{key:"11055f2f865c79a8916d4494f2431aaadf440f1c",slot:"end"})),e("smoothly-input-select",{key:"ee959c0778e35040b410009cc12f228d93343855",name:"size"},e("span",{key:"b40c960699e8420211c71a944452f5538622b902",slot:"label"},"Size"),e("smoothly-item",{key:"b47d06dfde153f3ecc50a6e0e1423d5b737adef5",value:"tiny"},"tiny"),e("smoothly-item",{key:"e5e432209245eabc5e95295097318c6732ea1665",value:"small"},"small"),e("smoothly-item",{key:"d988461ac6c04ba037a24495b91df69c4375b199",value:"medium"},"medium"),e("smoothly-item",{key:"c887bce6d7233eeded5690cdda843caf218a61db",value:"large"},"large"),e("smoothly-item",{key:"f28da514b977e3cb249abd0023c22b65b5327eca",value:"xlarge"},"xlarge"),e("smoothly-input-clear",{key:"a1af3707e895d0a264bf3268f514c9872ac86659",slot:"end"})),e("smoothly-input-range",{key:"9e1810de388ef5dae13436e1a9c0fa0489d9ec3b",name:"rotate",step:1,min:-180,max:180,value:0},"Rotate",e("smoothly-input-clear",{key:"a3ea9f84ae4f2aacbbdfa86ae1902f61a31305b9",slot:"end"}))),e("h1",{key:"93c331d11d1e08df0e161bf5858c621f7f20c203"},"Icons"),e("div",{key:"52d373675e9910601a7427a44a4598eaa09a19cc",class:"icons"},[...b.Name.values.filter((t=>!this.display.filter||t.includes(this.display.filter))).map((t=>this.display.variant?`${t}-${this.display.variant}`:t)),...b.Logo.values.filter((t=>!this.display.filter||t.includes(this.display.filter)))].map((t=>e("smoothly-icon",{name:t,toolTip:t,"data-name":t,color:this.props.color,flip:this.props.flip,size:this.props.size,rotate:this.props.rotate,onClick:()=>{navigator.clipboard.writeText(t);this.notice.emit(L.succeeded(`Copied "${t}"`))}})))))}};Vr.style=Br;var Gr;(function(t){function e(t,o){if(t===o)return true;if(typeof t=="object"&&typeof o=="object"){const s=Object.keys(t);if(s.length==Object.keys(o).length&&s.every((s=>e(t[s],o[s]))))return true}return false}t.equal=e;function o(t,o){return!e(t,o)}t.notEqual=o})(Gr||(Gr={}));var Kr;(function(t){function e(t,e,i){const a=/([^.-@\s]+)/gi;return i=="backward"?o(t,e,a):s(t,e,a)}t.getWordBreakIndex=e;function o(t,e,o){let s=0;let i;while((i=o.exec(t))!=null){if(o.lastIndex-i[0].length<e)s=o.lastIndex-i[0].length;else break}return s}function s(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}})(Kr||(Kr={}));class Zr{constructor(t,e){this.formatter=t;this.type=e;this.keydownHandlers={ArrowLeft:(t,e)=>t.ctrlKey||t.metaKey?e:this.moveCursor(t,e),ArrowRight:(t,e)=>t.ctrlKey||t.metaKey?e:this.moveCursor(t,e)};this.eventHandlers={beforeinput:{insertText:(t,e)=>this.insert(t,e),insertFromPaste:(t,e)=>this.insert(t,e),insertFromDrop:(t,e)=>this.insert(t,e),deleteContentBackward:(t,e)=>{t.preventDefault();if(e.selection.start==e.selection.end)this.select(e,e.selection.start-1,e.selection.end);this.erase(e);return e},deleteContentForward:(t,e)=>{t.preventDefault();if(e.selection.start==e.selection.end)this.select(e,e.selection.start,e.selection.end+1);this.erase(e);return e},deleteWordBackward:(t,e,o)=>{let s=e;if(this.type!="password"){t.preventDefault();s=this.deleteWord(o,"backward")}return s},deleteWordForward:(t,e,o)=>{let s=e;if(this.type!="password"){t.preventDefault();s=this.deleteWord(o,"forward")}return s},deleteByCut:(t,e)=>{this.erase(e);return e}},input:{insertReplacementText:(t,e)=>Object.assign(Object.assign({},e),{value:t.target.value}),insertCompositionText:(t,e)=>Object.assign(Object.assign({},e),{value:t.target.value}),deleteWordBackward:(t,e)=>this.type=="password"?Object.assign(Object.assign({},e),{value:t.target.value}):e,deleteWordForward:(t,e)=>this.type=="password"?Object.assign(Object.assign({},e),{value:t.target.value}):e,undefined:(t,e)=>Object.assign(Object.assign({},e),{value:t.target.value})}}}static create(t,e){let o;switch(t){case"price":o=xe("price",e);break;case"integer":o=xe("integer",e);break;default:o=xe(t,e);break}return new Zr(o||xe("text"),t)}onKeyDown(t,e){var o,s,i,a;let n=e;const l=this.keydownHandlers[t.key];if(l){const r=t.target;e.selection.start=(o=r.selectionStart)!==null&&o!==void 0?o:e.selection.start;e.selection.end=(s=r.selectionEnd)!==null&&s!==void 0?s:e.selection.end;e.selection.direction=(i=r.selectionDirection)!==null&&i!==void 0?i:e.selection.direction;const c=l(t,this.unformatState(e),e);const h=this.partialFormatState(c);if(t.defaultPrevented){r.selectionStart=h.selection.start;r.selectionEnd=h.selection.end;r.selectionDirection=(a=h.selection.direction)!==null&&a!==void 0?a:null}n=h}return n}moveCursor(t,e){t.preventDefault();let o=fe.getCursor(e.selection);let s=fe.getStalker(e.selection);o=Math.min(Math.max(o+(t.key=="ArrowLeft"?-1:1),0),e.value.length);s=t.shiftKey?s:o;e.selection.direction=s<o?"forward":s>o?"backward":"none";e.selection.start=Math.min(s,o);e.selection.end=Math.max(s,o);return e}onFocus(t,e){const o=this.partialFormatState(this.unformatState(e));const s=t.target;s.value=o.value;return o}onBlur(t,e){const o=this.createFormattedState(e);const s=t.target;s.value=o.value;return o}onInputEvent(t,e){var o,s,i,a,n,l,r;const c=t.target;e.selection.start=(o=c.selectionStart)!==null&&o!==void 0?o:e.selection.start;e.selection.end=(s=c.selectionEnd)!==null&&s!==void 0?s:e.selection.end;e.selection.direction=(i=c.selectionDirection)!==null&&i!==void 0?i:e.selection.direction;const h=t.type=="beforeinput"||t.type=="input"?(l=(n=(a=this.eventHandlers[t.type])[t.inputType])===null||n===void 0?void 0:n.call(a,t,this.unformatState(e),e))!==null&&l!==void 0?l:e:e;const d=this.partialFormatState(h);if(t.defaultPrevented){c.value=d.value;c.selectionStart=d.selection.start;c.selectionEnd=d.selection.end;c.selectionDirection=(r=d.selection.direction)!==null&&r!==void 0?r:null}return d}insert(t,e){t.preventDefault();if(typeof t.data=="string")for(const o of t.data)this.formatter.allowed(o,e)&&this.replace(e,o);return e}deleteWord(t,e){const o=fe.getCursor(t.selection);const s=Kr.getWordBreakIndex(t.value,o,e);const i=this.unformatState(Object.assign(Object.assign({},t),{selection:{start:Math.min(o,s),end:Math.max(o,s),direction:"none"}}));const a=i.value.substring(0,i.selection.start)+i.value.substring(i.selection.end);i.value=a;i.selection.end=i.selection.start;return i}select(t,e,o,s){t.selection.start=e;t.selection.end=o;s&&(t.selection.direction=s)}erase(t){this.replace(t,"")}replace(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}unformatState(t){return pe.copy(this.formatter.unformat(ge.copy(t)))}partialFormatState(t){return this.formatter.partialFormat(ge.copy(t))}createFormattedState(t){return this.formatter.format(ge.copy(this.formatter.unformat(ge.copy(t))))}toString(t){return this.formatter.toString(t)}initialState(t){const e=this.toString(t)||"";const o=e.length;const s=this.createFormattedState({value:e,selection:{start:o,end:o,direction:"none"}});return s}setValue(t,e,o){const s=Object.assign(Object.assign({},e),{value:this.createFormattedState({value:this.formatter.toString(o),selection:e.selection}).value});t.value=s.value;return s}getValue(t){return this.formatter.fromString(this.unformatState(t).value)}setSelection(t,e,o,s){t.focus();t.selectionStart=o;t.selectionEnd=s;this.select(e,o,s);return e}}var qr;(function(t){t.type=z({name:j(),key:j(),shift:_(),ctrl:_(),alt:_(),meta:_()});t.is=t.type.is;function e(t,e){return{name:t,key:e.key,shift:e.shiftKey,ctrl:e.ctrlKey,alt:e.altKey,meta:e.metaKey}}t.create=e})(qr||(qr={}));const Xr='.sc-smoothly-input-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-h[looks="border"].sc-smoothly-input-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-h{border:transparent 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(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-h,[looks="transparent"].sc-smoothly-input-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-h>input.sc-smoothly-input,[looks="transparent"].sc-smoothly-input-h:not(:focus-within)>input.sc-smoothly-input{background:transparent}[looks="transparent"].sc-smoothly-input-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-h.sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h .label.sc-smoothly-input{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-h.floating-label.sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h.floating-label .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h.has-value.sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h.has-value .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[placeholder].sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[placeholder] .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[readonly].sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[readonly] .sc-smoothly-input-s>[slot=label],.has-value.sc-smoothly-input-h .label.sc-smoothly-input,[placeholder].sc-smoothly-input-h .label.sc-smoothly-input,[readonly].sc-smoothly-input-h .label.sc-smoothly-input,.sc-smoothly-input-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-h:not([show-label]):not(.show-label) .label.sc-smoothly-input{display:none}.sc-smoothly-input-h{display:flex;align-items:center;justify-content:center;font-weight:var(--smoothly-font-weight);overflow:hidden;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground))}[hidden].sc-smoothly-input-h{display:none}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input{position:relative;flex-grow:1;height:100%}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>label.sc-smoothly-input{left:var(--input-padding-side)}.sc-smoothly-input-h:not([show-label])>div.sc-smoothly-input>input.sc-smoothly-input{padding:0 var(--input-padding-side)}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>div.ghost.sc-smoothly-input{position:absolute;box-sizing:border-box;align-content:center;height:100%;padding:var(--input-value-padding-top) \n\t\tvar(--input-padding-side) \n\t\tvar(--input-value-padding-bottom) \n\t\tvar(--input-padding-side)}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>div.ghost.sc-smoothly-input>div.value.sc-smoothly-input{display:inline;pointer-events:none;opacity:0}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>div.ghost.sc-smoothly-input>div.remainder.sc-smoothly-input{display:inline;pointer-events:none;opacity:0.5}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>input.sc-smoothly-input{padding:var(--input-value-padding-top) \n\t\tvar(--input-padding-side) \n\t\tvar(--input-value-padding-bottom) \n\t\tvar(--input-padding-side);box-sizing:border-box;width:100%;height:100%;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family)}.sc-smoothly-input-h>.smoothly-invalid.sc-smoothly-input{display:none;z-index:2;cursor:pointer;padding:0.5rem}[invalid].sc-smoothly-input-h>.smoothly-invalid.sc-smoothly-input{display:flex}.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input{z-index:1;pointer-events:none}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:focus{outline:none}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill:hover,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill:focus,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 40em rgb(var(--smoothly-input-background)) inset;-webkit-box-shadow:0 0 0 40em rgb(var(--smoothly-input-background)) inset}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill+label.sc-smoothly-input{-webkit-text-fill-color:rgb(var(--smoothly-input-foreground))}';const Jr=Xr;const Qr=class{constructor(e){t(this,e);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyKeydown=o(this,"smoothlyKeydown",7);this.smoothlyBlur=o(this,"smoothlyBlur",7);this.smoothlyChange=o(this,"smoothlyChange",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.uneditable=this.readonly;this.listener={};this.color=undefined;this.looks=undefined;this.name=undefined;this.value=undefined;this.type="text";this.required=false;this.showLabel=true;this.autocomplete=undefined;this.placeholder=undefined;this.disabled=false;this.readonly=false;this.toInteger=undefined;this.currency=undefined;this.min=undefined;this.max=undefined;this.invalid=false;this.changed=false;this.errorMessage=undefined;this.initialValue=undefined;this.state=undefined}async getValue(){return this.stateHandler.getValue(this.state)}async setValue(t){if(this.inputElement)this.state=this.stateHandler.setValue(this.inputElement,this.state,t)}async setFocus(){var t;(t=this.inputElement)===null||t===void 0?void 0:t.focus()}async setSelection(t,e){if(this.inputElement)this.state=this.stateHandler.setSelection(this.inputElement,this.state,t,e<0?this.inputElement.value.length+e+1:e)}async listen(t,e){this.listener[t]=e;e(this)}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async clear(){if(!this.uneditable&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,undefined)}}async edit(t){!this.uneditable&&(this.readonly=!t)}async reset(){if(!this.uneditable&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,this.initialValue)}}async setInitialValue(){this.changed=false;this.initialValue=this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()})}async setCustomInitialValue(t){this.initialValue=t}async smoothlyInputLoadHandler(t){cr.registerSubAction(this,t)}typeChange(){var t,e;switch(this.type){case"price":this.stateHandler=Zr.create("price",{currency:this.currency,toInteger:this.toInteger});break;case"integer":this.stateHandler=Zr.create("integer",{min:this.min,max:this.max});break;default:this.stateHandler=Zr.create(this.type,D());break}this.state=this.stateHandler.initialState((t=this.value)!==null&&t!==void 0?t:(e=this.state)===null||e===void 0?void 0:e.value)}stateChange(){var t,e;this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)});(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}valueChange(t){const e=this.stateHandler.getValue(this.state);if(Gr.notEqual(e,t)&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,t);this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)})}}readonlyChange(){var t,e;(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}componentWillLoad(){var t,e;this.typeChange();this.initialValue=this.value;this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}componentDidLoad(){if(this.inputElement)this.inputElement.value=this.state.value}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}onEvent(t){this.state=this.stateHandler.onInputEvent(t,this.state)}render(){var t,o,i,a,n,l,r,c,h,d;return e(s,{key:"78e7885c853ce20755b714f0ccf9cab0ac75a5ef",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",{key:"9197c2a3bfa79e721feffa0a5c652f6370ecc5cf",name:"start"}),e("div",{key:"b881acabefc935109f3531b75416753c1c75ac43",class:"smoothly-input-container"},e("div",{key:"f0aa99d563a84f7b1ed4ffed7da479c4875e75be",class:"ghost"},e("div",{key:"69a4cbde610389146386eb94b75088d04d13a7e7",class:"value"},(i=this.state)===null||i===void 0?void 0:i.value),e("div",{key:"566ef9ee4cc2bd590366557b72c92fe3c16ed8e3",class:"remainder"},(a=this.state)===null||a===void 0?void 0:a.remainder)),e("input",{key:"da67d5f387d69094e14999b4eebcb16ebe8b69f8",ref:t=>this.inputElement=t,color:this.color,name:this.name,type:(n=this.state)===null||n===void 0?void 0:n.type,inputmode:(l=this.state)===null||l===void 0?void 0:l.inputmode,placeholder:this.placeholder,required:this.required,autocomplete:(r=this.autocomplete)!==null&&r!==void 0?r:(c=this.state)===null||c===void 0?void 0:c.autocomplete,disabled:this.disabled,readOnly:this.readonly,pattern:((h=this.state)===null||h===void 0?void 0:h.pattern)&&((d=this.state)===null||d===void 0?void 0:d.pattern.source),onKeyDown:t=>{this.state=this.stateHandler.onKeyDown(t,this.state);if(!this.readonly&&!this.disabled)this.smoothlyKeydown.emit(qr.create(this.name,t))},onFocus:t=>!this.readonly&&(this.state=this.stateHandler.onFocus(t,this.state)),onBlur:t=>{if(!this.readonly){const e=this.stateHandler.getValue(this.state);this.state=this.stateHandler.onBlur(t,this.state);this.smoothlyBlur.emit();this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)});if(Gr.notEqual(e,this.stateHandler.getValue(this.state)))this.smoothlyChange.emit({[this.name]:this.stateHandler.getValue(this.state)})}}}),e("label",{key:"b25431d691b144dfa5569cb2b08254cdedf24dc4",class:"label float-on-focus",htmlFor:this.name},e("slot",{key:"702434dac4c0783291d7ac9703ac80db5230ab81"}))),e("smoothly-icon",{key:"aad96360452850bc638500bbd37fb13dfc2e013e",class:"smoothly-invalid",name:"alert-circle",color:"danger",fill:"clear",size:"small",toolTip:this.errorMessage}),e("slot",{key:"a86bef126f931e4e0495412368be80748b44302c",name:"end"}))}get element(){return i(this)}static get watchers(){return{currency:["typeChange"],type:["typeChange"],state:["stateChange"],value:["valueChange"],readonly:["readonlyChange"]}}};Qr.style=Jr;const tc='.sc-smoothly-input-checkbox-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-checkbox-h[looks="border"].sc-smoothly-input-checkbox-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-checkbox-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-checkbox-h{border:transparent solid 1px}.sc-smoothly-input-checkbox-h[looks="line"].sc-smoothly-input-checkbox-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-checkbox-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-checkbox-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-checkbox-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-checkbox-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-checkbox-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-checkbox-h,[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within)>input.sc-smoothly-input-checkbox{background:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-checkbox-h.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-checkbox-h.floating-label.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.floating-label .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder] .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly] .sc-smoothly-input-checkbox-s>[slot=label],.has-value.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[placeholder].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[readonly].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,.sc-smoothly-input-checkbox-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-checkbox{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-checkbox-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-checkbox{display:none}.sc-smoothly-input-checkbox-h{display:flex;align-items:center;flex-direction:row;position:relative;gap:.5rem;padding:0 var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{position:absolute;z-index:1}.sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:1.25rem;width:1.25rem;border:1px solid black;display:block}.sc-smoothly-input-checkbox-h:not([readonly]),.sc-smoothly-input-checkbox-h:not([readonly])>*.sc-smoothly-input-checkbox{cursor:pointer}[readonly].sc-smoothly-input-checkbox-h,[readonly].sc-smoothly-input-checkbox-h>*.sc-smoothly-input-checkbox{cursor:not-allowed}[disabled].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[disabled].sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{cursor:not-allowed;border-color:rgb(var(--smoothly-color-contrast), 0.3);color:rgb(var(--smoothly-color-contrast), 0.4)}[looks="transparent"].sc-smoothly-input-checkbox-h{background-color:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline-color:transparent}';const ec=tc;const oc=class{constructor(e){t(this,e);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.name=undefined;this.changed=false;this.readonly=false;this.checked=false;this.value=this.checked;this.looks=undefined;this.color=undefined;this.disabled=undefined}componentWillLoad(){var t,e;this.initialValue=this.checked;!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.checked}async clear(){!this.disabled&&!this.readonly&&(this.checked=false)}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t}async reset(){this.checked=this.initialValue}async setInitialValue(){this.initialValue=this.checked;this.changed=false}async elementCheck(){var t,e;this.changed=this.initialValue!==this.checked;this.smoothlyInput.emit({[this.name]:await this.getValue()});(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}click(){!this.disabled&&!this.readonly&&(this.checked=!this.checked)}render(){return e(s,{key:"99d1fd7c03341e1f006d3e93528b3774b7e26644",onMouseDown:t=>this.mouseDownPosition={x:t.clientX,y:t.clientY},onMouseUp:t=>{var e;return((e=this.mouseDownPosition)===null||e===void 0?void 0:e.x)==t.clientX&&this.mouseDownPosition.y==t.clientY&&this.click()}},e("input",{key:"e31ef4946a26c9d7dfc36a72e368cd882e8ddfc8",type:"checkbox",checked:this.checked}),this.checked&&e("smoothly-icon",{key:"01d2fc86042120ed14744240048b0d86b3ea6b2e",name:"checkmark-outline",size:"tiny"}),e("label",{key:"0064444ff31f2fa701744532c5341c631ef8c60b"},e("slot",{key:"8e0c6756be0053328b93f3ae6ba9b99b3bbd1691"})))}get element(){return i(this)}static get watchers(){return{checked:["elementCheck"]}}};oc.style=ec;const sc='[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-contrast);--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{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-clear-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-clear-h{display:inline}[disabled].sc-smoothly-input-clear-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-clear-h>a.sc-smoothly-input-clear,.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-clear-h>a.sc-smoothly-input-clear:empty,.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:empty{border-width:0}.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-input-clear-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-clear{padding:0.8em;min-width:8em}.sc-smoothly-input-clear-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-clear{padding:0.6em}[size=icon].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{padding:0.5em}[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}[size=flexible].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-clear-h{width:100%}[expand=full].sc-smoothly-input-clear-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-clear-h:not([fill=clear])>button.sc-smoothly-input-clear:hover,.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:focus-visible,[fill=outline].sc-smoothly-input-clear-h:active>button.sc-smoothly-input-clear::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:hover::before,[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:focus-within::before,[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-clear:hover,.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-clear:focus-visible,.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-clear:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear,.sc-smoothly-input-clear-h.sc-smoothly-input-clear-s>smoothly-icon,.sc-smoothly-input-clear-h .sc-smoothly-input-clear-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-clear-h{display:none}.sc-smoothly-input-clear-h{display:flex}.sc-smoothly-input-clear-h:not([display]){display:none}.sc-smoothly-input-clear-h[type="input"].sc-smoothly-input-clear-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.sc-smoothly-input-clear-h.sc-smoothly-input-clear-s>smoothly-button>button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-clear-h{cursor:not-allowed}.sc-smoothly-input-clear-h[type="input"]:hover.sc-smoothly-input-clear-s>smoothly-icon,.sc-smoothly-input-clear-h[type="input"]:hover .sc-smoothly-input-clear-s>smoothly-icon{cursor:pointer;filter:opacity(100%)}';const ic=sc;const ac=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color=undefined;this.expand=undefined;this.fill="clear";this.disabled=false;this.size="icon";this.shape=undefined;this.display=true;this.type="input";this.tooltip="Clear"}async componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(nr.is(t)){this.parent=t;if(lr.Element.is(t)){t.listen("changed",(async t=>{if(cr.is(t)){this.display=!t.readonly&&(typeof t.defined=="boolean"?t.defined:Boolean(await t.getValue()))}if(t instanceof mr){this.disabled=t.readonly||Object.values(t.value).filter((t=>t)).length<1;this.display=!t.readonly}}))}}}))}clickHandler(){var t;(t=this.parent)===null||t===void 0?void 0:t.clear()}render(){var t;return e(s,{key:"c2fef10f6a93c77be53cd2cbb68ad5cb248ff111",title:this.tooltip},e("smoothly-button",{key:"36519257ceb0a390edbb5efb03f93bda9817e1c0",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(t=this.fill)!==null&&t!==void 0?t:this.type=="input"?"clear":undefined},e("slot",{key:"9626ceb7c5b85fe073768c4066190c1312914cee"}),e("smoothly-icon",{key:"0b6bd22cd03a708f555491ac7e66ebddbfb871aa",name:"close",size:"tiny"})))}};ac.style=ic;const nc='.sc-smoothly-input-color-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-color-h[looks="border"].sc-smoothly-input-color-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-color-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-color-h{border:transparent solid 1px}.sc-smoothly-input-color-h[looks="line"].sc-smoothly-input-color-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-color-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-color-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-color-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-color-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-color-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-color-h,[looks="transparent"].sc-smoothly-input-color-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-color-h>input.sc-smoothly-input-color,[looks="transparent"].sc-smoothly-input-color-h:not(:focus-within)>input.sc-smoothly-input-color{background:transparent}[looks="transparent"].sc-smoothly-input-color-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-color-h.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .label.sc-smoothly-input-color{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-color-h.floating-label.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.floating-label .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder] .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly] .sc-smoothly-input-color-s>[slot=label],.has-value.sc-smoothly-input-color-h .label.sc-smoothly-input-color,[placeholder].sc-smoothly-input-color-h .label.sc-smoothly-input-color,[readonly].sc-smoothly-input-color-h .label.sc-smoothly-input-color,.sc-smoothly-input-color-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-color{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-color-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-color{display:none}.sc-smoothly-input-color-h{display:flex;position:relative;background-color:rgb(var(--smoothly-input-background));align-items:center;justify-content:center}.sc-smoothly-input-color-h>smoothly-input.sc-smoothly-input-color{width:100%;--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-color-h div.color-sample.sc-smoothly-input-color{height:2em;width:3em;margin-right:0.5rem;background-color:var(--hexCode);outline:1px solid rgb(var(--smoothly-input-border));border-radius:3px}.sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{padding-right:var(--input-padding-side)}[readonly].sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{filter:opacity(60%)}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color{background-color:rgb(var(--smoothly-input-background));position:absolute;padding:1em 1em 1em 0;top:calc(var(--element-height) + .8em);left:0;box-sizing:border-box;z-index:10;border:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color::before{content:"";transform:translate(2em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border));position:absolute;z-index:100;top:0em}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color>smoothly-toggle-switch.sc-smoothly-input-color{margin-left:auto;margin-right:1em;margin-bottom:1em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color{padding:.5em 0}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color label.sc-smoothly-input-color{width:4em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-thumb{background-color:#777}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-thumb{background-color:#777}';const lc=nc;const rc=class{constructor(e){t(this,e);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined};this.value=undefined;this.looks=undefined;this.color=undefined;this.changed=false;this.readonly=false;this.output="rgb";this.name=undefined;this.showLabel=true;this.open=false;this.sliderMode="rgb"}async componentWillLoad(){this.value&&this.setInitialValue();this.value&&(this.rgb=r.Hex.toRGB(this.value));this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,this.color=e}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t))}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLoadHandler(t){cr.registerSubAction(this,t)}onWindowClick(t){!t.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.output==="rgb"?{r:this.rgb.r===undefined?undefined:Math.round(this.rgb.r),g:this.rgb.g===undefined?undefined:Math.round(this.rgb.g),b:this.rgb.b===undefined?undefined:Math.round(this.rgb.b)}:this.value?this.value:undefined}async clear(){this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined};this.value=undefined}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t;this.open=false}async reset(){this.value=this.initialValue;this.open=false}async setInitialValue(){this.initialValue=this.value;this.open=false}async valueChanged(){var t,e;this.changed=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()});(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}handleSwitchMode(t){t.stopPropagation();this.sliderMode=t.detail?"hsl":"rgb";if(this.sliderMode==="rgb"){this.value&&(this.rgb=r.Hex.toRGB(this.value))}else{this.value&&(this.hsl=r.RGB.toHSL(r.Hex.toRGB(this.value)))}}hexInputHandler(t){if(t!==this.value){if(t&&r.Hex.type.is(t)){if(this.sliderMode==="hsl"||this.rgb.r===undefined){this.rgb=r.Hex.toRGB(t)}if(this.sliderMode==="rgb"||this.hsl.h===undefined){this.hsl=r.RGB.toHSL(r.Hex.toRGB(t))}}else if(!t||!r.Hex.type.is(t)){this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined}}this.value=t}}sliderInputHandler(t){var e;t.stopPropagation();const o=Object.keys(t.detail)[0];let s=this.sliderMode==="rgb"?this.rgb:this.hsl;if(!(t.detail[o]===undefined)){for(const i of Object.keys(s))if(i===o)s=Object.assign(Object.assign({},s),{[i]:i==="s"||i==="l"?+((e=t.detail[o])!==null&&e!==void 0?e:0)*100:t.detail[o]});else if(s[i]===undefined)s=Object.assign(Object.assign({},s),{[i]:0});if(this.sliderMode==="rgb"){this.rgb=Object.assign({},s);this.hsl=r.RGB.toHSL(this.rgb);this.hexInputHandler(r.RGB.toHex(this.rgb))}else{this.hsl=Object.assign({},s);this.rgb=r.HSL.toRGB(this.hsl);this.hexInputHandler(r.RGB.toHex(r.HSL.toRGB(this.hsl)))}}}openDropdown(){this.open=!this.open}render(){var t,o,i,a,n,l;return e(s,{key:"670a7476f048858e2383bf790be29662c2b9d6e8",style:{"--hexCode":this.value,"--rgb-r":`${Math.round((t=this.rgb.r)!==null&&t!==void 0?t:0)}`,"--rgb-g":`${Math.round((o=this.rgb.g)!==null&&o!==void 0?o:0)}`,"--rgb-b":`${Math.round((i=this.rgb.b)!==null&&i!==void 0?i:0)}`,"--hsl-h":`${Math.round((a=this.hsl.h)!==null&&a!==void 0?a:0)}`,"--hsl-s":`${Math.round((n=this.hsl.s)!==null&&n!==void 0?n:0)}%`,"--hsl-l":`${Math.round((l=this.hsl.l)!==null&&l!==void 0?l:0)}%`,"--element-height":`${this.element.clientHeight}px`}},e("smoothly-input",{key:"335e0d548863c95bd9ea825b96f6e44b87e088ed",value:this.value,name:this.name,looks:undefined,color:this.color,type:"hex-color",showLabel:this.showLabel,readonly:this.readonly,onSmoothlyInput:t=>(t===null||t===void 0?void 0:t.stopPropagation(),this.hexInputHandler(t.detail[this.name]))},e("slot",{key:"b0dd625eb8c4a8a1d390b0f16fcf04ff3b0f3a20"})),e("div",{key:"9c2dd79e29f239ed5ae725a5277897b6f1390c0e",class:"color-sample"}),e("smoothly-icon",{key:"1f197df4c01bc228698f6a397f4bb6c659a30e9d",color:this.color,name:"options-outline",size:"small",onClick:()=>!this.readonly&&this.openDropdown()}),e("div",{key:"1cdf0dde9a954956d406ac8df83911c3f412a7c5"},e("slot",{key:"0bc12b808f76f1f4c05ef072d6fb51fe7ffffdac",name:"end"})),this.open&&!this.readonly&&e("div",{key:"3994288cb82a9596fdd9efb022f8270326cd8e39",class:"rgb-sliders"},e("smoothly-toggle-switch",{key:"640004c0237e5fc60edf66b413df444c8412c70b",title:`${this.sliderMode==="rgb"?"To HSL":"To RGB"}`,onSmoothlyToggleSwitchChange:t=>this.handleSwitchMode(t),size:"tiny",checkmark:false,selected:this.sliderMode==="hsl"}),Object.entries(this.rgb).map((([t,o])=>e("smoothly-input-range",{style:this.sliderMode!="rgb"?{display:"none"}:{},name:t,min:0,max:255,color:undefined,type:"text",value:o,step:1,outputSide:"right",onSmoothlyInput:t=>this.sliderInputHandler(t),label:t.toUpperCase()}))),Object.entries(this.hsl).map((([t,o])=>e("smoothly-input-range",{style:this.sliderMode!="hsl"?{display:"none"}:{},name:t,min:0,max:t==="h"?359:1,color:undefined,type:t==="s"||t==="l"?"percent":"text",value:(t==="s"||t==="l")&&o?o/100:o,step:t==="s"||t==="l"?.01:1,outputSide:"right",onSmoothlyInput:t=>this.sliderInputHandler(t),label:t.toUpperCase()})))))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"]}}};rc.style=lc;const cc=class{constructor(e){t(this,e)}render(){return e(s,{key:"6a345592a635a49d5c9bd4fa7cbce4d9bb31c1a3"},e("h2",{key:"43f287ca8e468b9375be66b2d67b7216473dcf07"},"Color"),e("smoothly-input-color",{key:"ebb416f1268f49d83ace12f1720ea8871d679f91",name:"color"},"Choose color"))}};cc.style="style.css";const hc='.sc-smoothly-input-date-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-date-h{border:transparent 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(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-date-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-date-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-date-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-date-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-date-h,[looks="transparent"].sc-smoothly-input-date-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-date-h>input.sc-smoothly-input-date,[looks="transparent"].sc-smoothly-input-date-h:not(:focus-within)>input.sc-smoothly-input-date{background:transparent}[looks="transparent"].sc-smoothly-input-date-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-h.sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h .label.sc-smoothly-input-date{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-date-h.floating-label.sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h.floating-label .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h.has-value.sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h.has-value .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[placeholder].sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[placeholder] .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[readonly].sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[readonly] .sc-smoothly-input-date-s>[slot=label],.has-value.sc-smoothly-input-date-h .label.sc-smoothly-input-date,[placeholder].sc-smoothly-input-date-h .label.sc-smoothly-input-date,[readonly].sc-smoothly-input-date-h .label.sc-smoothly-input-date,.sc-smoothly-input-date-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-date{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-date-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-date{display:none}.sc-smoothly-input-date-h{display:flex;position:relative;max-width:100vw;background-color:rgb(var(--smoothly-input-background));box-sizing:border-box;min-height:var(--input-min-height)}.sc-smoothly-input-date-h>smoothly-input.sc-smoothly-input-date{width:100%;--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-date-h>smoothly-input.sc-smoothly-input-date>div.sc-smoothly-input-date>input.sc-smoothly-input-date{cursor:pointer}[readonly].sc-smoothly-input-date-h,[readonly].sc-smoothly-input-date-h>smoothly-input.sc-smoothly-input-date>div.sc-smoothly-input-date>input.sc-smoothly-input-date{cursor:not-allowed}[looks=transparent].sc-smoothly-input-date-h smoothly-input.sc-smoothly-input-date{outline:none}.sc-smoothly-input-date-h>nav.sc-smoothly-input-date{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));min-width:18em}.sc-smoothly-input-date-h>nav.sc-smoothly-input-date>smoothly-calendar.sc-smoothly-input-date::before{content:"";box-sizing:border-box;position:absolute;top:1px;z-index:9;transform:translate(2em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-h>span.icons.sc-smoothly-input-date{display:flex;flex-direction:row;align-items:center}@media screen and (min-width: 400px){.sc-smoothly-input-date-h>nav.sc-smoothly-input-date{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));max-width:22em}}';const dc=hc;const mc=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyValueChange=o(this,"smoothlyValueChange",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.color=undefined;this.looks=undefined;this.name=undefined;this.changed=false;this.readonly=false;this.invalid=false;this.value=undefined;this.open=undefined;this.max=undefined;this.min=undefined;this.showLabel=true}componentWillLoad(){var t,e;this.setInitialValue();this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async listen(t,e){this.listener[t]=e;e(this)}async clear(){this.value=undefined}onStart(t){var e,o;this.smoothlyValueChange.emit(t);this.smoothlyInput.emit({[this.name]:t});(o=(e=this.listener).changed)===null||o===void 0?void 0:o.call(e,this)}smoothlyInputHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLoadHandler(t){cr.registerSubAction(this,t)}onWindowClick(t){!t.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async edit(t){this.readonly=!t}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.changed=false}dateSetHandler(t){this.open=false;t.stopPropagation()}render(){return e(s,{key:"57449661e55d63d143b194d62df4171e03b194a3"},e("smoothly-input",{key:"306bb8ce36b5e7834699eb945b082b447a244a9b",color:this.color,looks:this.looks=="transparent"?this.looks:undefined,name:this.name,onFocus:()=>!this.readonly&&(this.open=!this.open),onClick:()=>!this.readonly&&(this.open=!this.open),readonly:this.readonly,invalid:this.invalid,type:"date",value:this.value,showLabel:this.showLabel,onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyInput:t=>{t.stopPropagation();this.value=t.detail[this.name]}},e("slot",{key:"3277e1e95cf3e371a29e25d44accfea79a6a6ca5"})),e("span",{key:"60daa00cbbf4afef50cfda2a5db9647981e1372b",class:"icons"},e("slot",{key:"9b20a8d21cc5497f9617ed6dc106cb2e9b44e4cc",name:"end"})),this.open&&!this.readonly&&e("nav",{key:"6cdb787d6ba2d2bfdb5da488986ecb8da84927bb"},e("smoothly-calendar",{key:"41972f350405eacc0d2f726e24d81968bb1b611c",doubleInput:false,value:this.value,onSmoothlyValueChange:t=>{this.value=t.detail;t.stopPropagation()},max:this.max,min:this.min},e("div",{key:"c9ca20ed5c818887ea7ba619db55ebb78bc9082d",slot:"year-label"},e("slot",{key:"d33a0714715e677a3fbc6b9843038d5114c55862",name:"year-label"})),e("div",{key:"32b23e3d8996d3d16f1f09e642fbf6fb6853efda",slot:"month-label"},e("slot",{key:"563f5174260311dbe25962ec0673f66f9c9a3fe0",name:"month-label"})))))}get element(){return i(this)}static get watchers(){return{value:["onStart"]}}};mc.style=dc;const uc='.sc-smoothly-input-date-range-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-date-range-h{border:transparent 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(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-date-range-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-date-range-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-date-range-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-date-range-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-date-range-h,[looks="transparent"].sc-smoothly-input-date-range-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-date-range-h>input.sc-smoothly-input-date-range,[looks="transparent"].sc-smoothly-input-date-range-h:not(:focus-within)>input.sc-smoothly-input-date-range{background:transparent}[looks="transparent"].sc-smoothly-input-date-range-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-range-h.sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-date-range-h.floating-label.sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h.floating-label .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h.has-value.sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h.has-value .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[placeholder].sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[placeholder] .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[readonly].sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[readonly] .sc-smoothly-input-date-range-s>[slot=label],.has-value.sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range,[placeholder].sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range,[readonly].sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range,.sc-smoothly-input-date-range-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-date-range{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-date-range-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-date-range{display:none}.sc-smoothly-input-date-range-h{position:relative;display:flex;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-date-range-h:focus-within smoothly-input.sc-smoothly-input-date-range{outline:none}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>smoothly-input.sc-smoothly-input-date-range>div.sc-smoothly-input-date-range>input.sc-smoothly-input-date-range{cursor:pointer}[readonly].sc-smoothly-input-date-range-h,[readonly].sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>smoothly-input.sc-smoothly-input-date-range>div.sc-smoothly-input-date-range>input.sc-smoothly-input-date-range{cursor:not-allowed}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));max-width:22em;min-width:18em}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range>smoothly-calendar.sc-smoothly-input-date-range::before{content:"";position:absolute;box-sizing:border-box;top:1px;left:-7em;z-index:9;transform:translate(10em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range{display:flex;width:100%;background-color:var(--smoothly-input-background);border-radius:0.25rem;cursor:pointer}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>smoothly-input.sc-smoothly-input-date-range{min-width:15rem;width:100%;background-color:transparent;--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>span.sc-smoothly-input-date-range{padding:0.5em 0.2em 0.5em 0.2em;align-self:center}.sc-smoothly-input-date-range-h>span.icons.sc-smoothly-input-date-range{display:flex;flex-direction:row;align-items:center}';const yc=uc;const bc=class{constructor(e){t(this,e);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.name="dateRange";this.color=undefined;this.looks=undefined;this.readonly=false;this.showLabel=true;this.start=undefined;this.end=undefined;this.placeholder="from — to";this.invalid=false;this.max=undefined;this.min=undefined;this.changed=false;this.value=undefined;this.open=undefined}componentWillLoad(){var t,e;this.setInitialValue();this.updateValue();this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));this.start&&this.end&&this.smoothlyInput.emit({[this.name]:{start:this.start,end:this.end}});!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}inputHandler(t){const e="dateRangeInput"in t&&typeof t.dateRangeInput=="string"&&t.dateRangeInput.split(" - ");if(e&&e.length==2&&w.is(e[0])&&w.is(e[1])){this.start=e[0];this.end=e[1]}}updateValue(){this.value=this.start&&this.end?{start:this.start,end:this.end}:undefined}valueChanged(){var t,e;this.changed=this.initialStart!=this.start||this.initialEnd!=this.end;(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}smoothlyInputLoadHandler(t){cr.registerSubAction(this,t)}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}onWindowClick(t){!t.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.start&&this.end?{start:this.start,end:this.end}:undefined}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t}async reset(){this.start=this.initialStart;this.end=this.initialEnd}async setInitialValue(){this.initialStart=this.start;this.initialEnd=this.end;this.changed=false}async clear(){this.start=undefined;this.end=undefined;this.smoothlyInput.emit({[this.name]:undefined})}render(){const t=navigator.language;return e(s,{key:"10617daa1231da0652830f0a4c123429812de8a0",tabindex:0},e("section",{key:"7e2d1cf85c16d258b415ac53be0d94ab39d6191d",onClick:()=>!this.readonly&&(this.open=!this.open)},e("smoothly-input",{key:"89a82d7674433af8cfb2c82137ac02006ded2d1b",type:"text",name:"dateRangeInput",readonly:this.readonly,value:this.start&&this.end?`${Se(this.start,"date",t)} — ${Se(this.end,"date",t)}`:undefined,invalid:this.invalid,placeholder:this.placeholder,showLabel:this.showLabel,onSmoothlyInput:t=>{t.stopPropagation();this.inputHandler(t.detail)}},e("slot",{key:"1db498c4190f6154db7f89ceb0bacc4c70034b05"}))),e("span",{key:"86290b59033e9565a969aa8cef3a75800b51439e",class:"icons"},e("slot",{key:"803e5b3556ff808be5bbd0a7f892663d36b2cf6f",name:"end"})),this.open&&e("nav",{key:"790f4a4ab812fae1fd037c7cf831d0f4cea0e5cd"},e("smoothly-calendar",{key:"956867c0184cd71d3e23b02af8a5c95e2a10e886",doubleInput:true,onSmoothlyValueChange:t=>t.stopPropagation(),onSmoothlyStartChange:t=>{t.stopPropagation();this.start=t.detail},onSmoothlyEndChange:t=>{t.stopPropagation();this.end=t.detail},onSmoothlyDateSet:t=>t.stopPropagation(),onSmoothlyDateRangeSet:t=>{t.stopPropagation();this.open=false;this.smoothlyInput.emit({[this.name]:t.detail})},value:this.start,start:this.start,end:this.end,max:this.max,min:this.min})))}get element(){return i(this)}static get watchers(){return{start:["updateValue"],end:["updateValue"],value:["valueChanged"]}}};bc.style=yc;const fc=".sc-smoothly-input-demo-h{display:flex;flex-direction:column;margin-top:2em;margin-bottom:10rem}smoothly-input-demo-standard.sc-smoothly-input-demo{margin-bottom:2rem}div.inputs.sc-smoothly-input-demo{margin:auto;width:50%}div.inputs.sc-smoothly-input-demo>h2.sc-smoothly-input-demo:not(:first-child){padding-top:3em;margin-top:3em;border-top:1px solid black}.checkbox-group.sc-smoothly-input-demo{display:flex;gap:1.5em;align-items:center;background-color:rgb(var(--smoothly-input-background))}.select-div.sc-smoothly-input-demo{display:flex;justify-content:space-between;gap:1em;flex-wrap:wrap}.select-div.sc-smoothly-input-demo>smoothly-color.sc-smoothly-input-demo>*.sc-smoothly-input-demo,.select-div.sc-smoothly-input-demo>*.sc-smoothly-input-demo{flex-basis:49%}";const pc=fc;const gc=class{constructor(e){t(this,e);this.duration={hours:8};this.alphanumeric="!@##"}render(){return e(s,{key:"51f4aee40c6d4fd30250a99a33a4c871dbee07df"},e("smoothly-input-demo-standard",{key:"ac59b052dfc234d46b5d7ebeef5b6854ecef440e"}),e("div",{key:"4ddfea7ef3c9fecc5bf78fe7722c80c2f8fd909e",class:"inputs"},e("h2",{key:"e2351bb6192e23f3fe206eb127d8a5cff5b8a3b1"},"Calendar"),e("smoothly-input-date",{key:"64cc4d64b575a915b96fe4f4320aa0e6e50c5878",name:"some-date"},"Calendar"),e("h2",{key:"e6c93ff26dd6ddf0c20decaac5afe5f2b4a3ddfb"},"Date Range"),e("smoothly-input-date-range",{key:"57cc830b6f2b02b4fabb3ae963c218bd532ba433",name:"testing",start:w.now(),end:w.nextMonth(w.now()),min:"2021-10-01",max:"2025-01-31"}),e("smoothly-input-date-range",{key:"fdaf5c97a3e958a1711e3a72df10d26f049b4b06",name:"testing",start:w.now(),end:w.nextMonth(w.now()),min:"2021-10-10",max:"2024-12-30"},e("smoothly-input-reset",{key:"fc80bf6ef0faf3bc501bbc3e235a1990e0a9f8ea",slot:"end",size:"icon"})),e("smoothly-input-date-range",{key:"3e761321bcfcfd824e657f7eee0bb6d2e78e485e",looks:"grid",start:w.now(),end:w.nextMonth(w.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--smoothly-input-border-radius":"0.5rem"}},e("smoothly-input-clear",{key:"5498fe9bd23f5f0aa3bc1564677cd8527c3f216d",slot:"end",size:"icon"})),e("h2",{key:"e1cd9a2f933ace9b8654a16f8a4b63257c0720ea"},"Date"),e("smoothly-input-date",{key:"c402077b09b215d29f2a39a2966129b66778bbf6"},"Date"),e("smoothly-input-date",{key:"348a3b47233f5a297818801d8342f397d985a34d",showLabel:false,value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),e("smoothly-input-date",{key:"34dcb99153c016b5612ff0b94a7e22344ead452e",value:"2021-10-28"},"Date",e("smoothly-input-reset",{key:"51225d9833f9cff119d70e073d57e22a3c9ab6b7",slot:"end",size:"icon"})),e("smoothly-input-date",{key:"a8e0d841589a7835b7aa61e73d6f26402375ce02",value:"2021-10-28"},"Date",e("smoothly-input-clear",{key:"7c30f983577e754c64eddbbcba405ff88ffab967",slot:"end",size:"icon"})),e("h2",{key:"ed29c97bfa01d94b769f2b5443a34a0ec2cc81f1"},"Select"),e("div",{key:"3f02595af663b605a0cbf7ff468ad88db47a7d59",class:"select-div"},e("smoothly-input-select",{key:"6fa227e9ed5b0b7783a02125d449c63e3e7cfeb3",name:"select-dessert",looks:"border"},e("label",{key:"25fa5c82c38615865eec7d110e6d0dcf44c81a4a",slot:"label"},"Select with clear button"),e("smoothly-item",{key:"ac813fdf89c73912582dc5991fb1dc2e2ce1fb14",value:"1"},"Ice cream"),e("smoothly-item",{key:"fa5192b5eb35ff78615cdef32c9520d6a6ef76e0",value:"2"},"Sponge cake"),e("smoothly-item",{key:"ff645106190846ec3eb20be801aa181bf10fb298",value:"3",disabled:true},"Disabled Item"),e("smoothly-item",{key:"b44e0e0890947c152f2bbacb7a2875acbdf54518",value:"4"},"Cookie"),e("smoothly-item",{key:"861d5923d90ea8b38bdcae05c978c0e00d137917",value:"5"},"Croissant"),e("smoothly-item",{key:"56ae54fce385dc55783844eec020aa90af651aeb",value:"6"},"Chocolate fondue"),e("smoothly-input-clear",{key:"b02a524509e0e4cbfc3a03fb639c83ee27a71850",size:"icon",slot:"end"})),e("smoothly-input-select",{key:"93208005940d683db4dc4f663438aa57c787c0b2",multiple:true,name:"select-dessert-multiple",looks:"border"},e("label",{key:"7afee6b3ace710bec7f7790fc0d8d153a2e816a0",slot:"label"},"Select multiple with reset button"),e("smoothly-item",{key:"fd35e1647fb441226e5f956454297cd9bc561445",value:"ice cream"},"Ice cream"),e("smoothly-item",{key:"3acddb1b859f8e48fe686662cca517179e5d1a72",value:"sponge cake"},"Sponge cake"),e("smoothly-item",{key:"961d256786f4edd9171190ae0d458197306929c7",selected:true,value:"cookie"},"Cookie"),e("smoothly-item",{key:"cb2aa0a7c2ac196c3a21517e1eb7832346314174",value:"croissant"},"Croissant"),e("smoothly-item",{key:"0b2b13a5a83f8078b60ba2e0cae32479f208f2bf",selected:true,value:"chocolate fondue"},"Chocolate fondue"),e("smoothly-input-reset",{key:"32eb07a7229c9f90890057f1a8ae0abc7cb810be",size:"icon",slot:"end"})),e("smoothly-input-select",{key:"48f36f4dc49fd910b3ac5ca9a6920fecde5a4117",name:"spirit-animals",looks:"border",mutable:true},e("label",{key:"1dc701cc862d2ca1f200f903b15016fac25b7d1a",slot:"label"},"Select or add new options"),e("smoothly-item",{key:"48327f5013baccf6bbbec4ae3225646d40b96384",value:"manatee"},"Manatee"),e("smoothly-item",{key:"14b5652ebb2ab2c9f9efe069dc80f9e999297420",selected:true,value:"cthulu"},"Cthulu")),e("smoothly-input-select",{key:"ffbebfb60bf5e643c4298395b652e478a1f782e5",name:"select-icon",clearable:false,showSelected:false},e("smoothly-item",{key:"6794446769b476efa03e0536bd9d80e8d816be25",value:"folder",selected:true},e("smoothly-icon",{key:"bd8c1f88ea016ad705b128eddc0199caa159a64f",size:"small",name:"folder-outline"})),e("smoothly-item",{key:"e6357d8a92151fb7e8d6a8c38ca3f8f401fbd0db",value:"camera"},e("smoothly-icon",{key:"253786f8f4c60a8565c40a2b6b316b2bbaa5f72e",size:"small",name:"camera-outline"}))),e("smoothly-input-select",{key:"a85cabd287125fc7868360e8fc406e2b256d01a6",ordered:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},e("label",{key:"db93308d09a47a4b6e394a18395fac5249ee0899",slot:"label"},"Alphabet ordered select"),Array.from({length:26}).map(((t,e)=>String.fromCharCode(e+65))).map((t=>e("smoothly-item",{value:t,selected:t=="H"},t)))),e("smoothly-input-select",{key:"8d5c0b232dd500dd359c0fc8f2b0a92a6a521bcb",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},e("label",{key:"8b9175106a63bca1ea5bc819d9843773c10d830e",slot:"label"},"Month multiple select"),e("smoothly-item",{key:"a7a2c4509f5343103035ad2077e9127bb1228a8d",value:"1"},"January"),e("smoothly-item",{key:"98831946e62fa33e863884cebc66973122ce82dd",value:"2"},"February"),e("smoothly-item",{key:"3a64a70c78e4f9eadcb2ee41c580fe7ea7785b24",value:"3"},"March"),e("smoothly-item",{key:"470ef2574219e5303888cae46466a0f800a11039",value:"4"},"April"),e("smoothly-item",{key:"98fb61b1abbcc49254c5e507f9e8c5cf6b52b623",value:"5"},"May"),e("smoothly-item",{key:"763c4cbe3738ae5294441b57f0d787992d119d05",value:"6"},"June"),e("smoothly-item",{key:"40638da7cf970dfe3a12fc754e9f35735bf525e0",value:"7"},"July"),e("smoothly-item",{key:"04022676952f4c3bc7c3438805963d2c5f75c757",value:"8"},"August"),e("smoothly-item",{key:"b8b87515bf851056dd050662c4fdfe025a68a776",value:"9"},"September"),e("smoothly-item",{key:"ba586667d48408aa3d68b344858426463d60bb05",value:"10"},"October"),e("smoothly-item",{key:"04c17bafc1ce2274ab4e8633ceb47406cc0dc0fe",value:"11"},"November"),e("smoothly-item",{key:"d3aa3783f8a743ad95aaafffd5729648c508ff3b",value:"12"},"December"))),e("h2",{key:"a9990b1f07ba34b59b12bd54effacbadfbea3c65"},"Duration"),e("smoothly-input",{key:"92aa6ba1302c1c34b77a70d29714712c2be3068c",name:"duration",type:"duration",placeholder:"hh:mm",value:this.duration,onSmoothlyInput:t=>this.duration=t.detail.duration},"Duration"),e("smoothly-input",{key:"d2047bac99e33c9f737bd2c4e3900f855baa9999",name:"duration",type:"duration",value:this.duration,placeholder:"-hh:mm",onSmoothlyInput:t=>{const e=t.detail.duration;this.duration=e}},"Duration"),e("h2",{key:"283a6152257e6c7c68e5b5713c860c1877d65f24"},"Integer with Min/Max"),e("smoothly-input",{key:"01494df3d52b16246cea53b17f2924be03fcd45d",name:"days",type:"integer",min:0,max:365},"Days per year (0-365)"),e("smoothly-input",{key:"92760df5d824d83cfcabfcbb9c3d3ec14dc7b5f7",name:"hour",type:"integer",min:0,max:23},"Hours per day (0-23)"),e("smoothly-input",{key:"2b91b33d85c5a8060910c5c113bf86d8025d4258",name:"minute",type:"integer",min:0,max:59},"Minutes per hour (0-59)"),e("smoothly-input",{key:"753749c84e0a09a6bb22381e82b3db8fe54309f0",name:"minute",type:"integer",min:18,max:120},"Age (18-120)"),e("h2",{key:"5f4260798c795fe73e9243f1701296aa572409f0"},"Invalid text with warning icon and tooltip"),e("smoothly-input",{key:"79f1faf413093fa4688f3651d64e285828129022",name:"alphanumeric",invalid:!/^[a-zA-Z0-9]+$/.test(this.alphanumeric),errorMessage:"Only alphanumeric allowed",value:this.alphanumeric,onSmoothlyInput:t=>this.alphanumeric=t.detail.alphanumeric},"Alphanumeric"),e("h2",{key:"5a32fcb9c6a6fb1339195ebbdfb5c6ac8e186f5e"},"Identifiers"),e("smoothly-input",{key:"e495ce716e08285f08fcb66de94b6e8499f04443",type:"identifier-code"},"Code"),e("smoothly-input",{key:"27ae27bec80bc7e45d36165d7eaf625cd3f16733",type:"identifier-attribute"},"Attribute"),e("smoothly-input",{key:"63d4ec8ed784eb0a4ea3fd03468cc0d3017c2c87",type:"identifier-snake"},"Snake"),e("smoothly-input",{key:"262be226d93f8a826221ee7c69b11b48271ed7b6",type:"identifier-pascal"},"Pascal"),e("smoothly-input",{key:"9aa3a103dda1203be74a1ed95cabfe0d5b6b338b",type:"identifier-camel"},"Camel"),e("h2",{key:"cecf5ca7e639cbcda0914703672c053d3c8ce59e"},"Input Alternatives"),e("smoothly-input",{key:"1fd87c7537064f3ad713733d39be58f1199293ad",type:"text",name:"name.last",onSmoothlyChange:t=>console.log("smoothly change event")},e("smoothly-icon",{key:"55cb2bdaa096df6a1ca2ec3aba6ba49279cc31d3",name:"checkmark-circle",slot:"start"}),"First Name"),e("smoothly-input",{key:"402b8c49765021b02f5a4b360ec58bb65f6dd8a2",type:"text",name:"name.first",onSmoothlyChange:t=>console.log("smoothly change event")},"Last Name",e("smoothly-icon",{key:"501dcf174eb7f333491bb451a8e192e15e72805a",name:"checkmark-circle",slot:"end"})),e("smoothly-input",{key:"cf4afd621a442b90f41b4ae26a96cfa2d8153df4",type:"text",name:"name.first",placeholder:"Smith",onSmoothlyChange:t=>console.log("smoothly change event")},"Last Name",e("smoothly-icon",{key:"9fb3990c1caf1da748d82f3fb355d300f7404329",name:"checkmark-circle",slot:"end"})),e("smoothly-input",{key:"932b57faaca83f7cfba85e41fbc43eb8695d6ea4",placeholder:"test"}),e("smoothly-input-submit",{key:"b1aaf41eb1206fdc148d480573302f8693de18aa",slot:"submit",fill:"solid",onSubmit:t=>alert(t),color:"success"}),e("h4",{key:"b7ffb6f9330ced7f5763e48d626e0a17889d9f25"},"Smoothly checkboxes"),e("div",{key:"80fc9cc65cccc4adb8cba4c811742541137bf698",class:"checkbox-group"},e("smoothly-input-checkbox",{key:"be5e8d4dd4cb4c63b9c0d82920c5ea7c6a0e623b",disabled:true,name:"first-checkbox"},e("smoothly-icon",{key:"75edc6ead1a55befb22e6084d485749bd9cc6da1",name:"checkmark-circle",slot:"start",size:"tiny"}),"First"),e("smoothly-input-checkbox",{key:"704732e5a9e2ccc8e7ea1f4321a9911d4826e5d1",name:"second-checkbox",checked:true},e("smoothly-icon",{key:"708e9b987f921137264f288bbe1d4ec8499df19b",name:"checkmark-circle",slot:"start",size:"tiny"}),"second",e("smoothly-input-clear",{key:"80c5ce80c75f33f67bbbfdbfe73ba072eaa37d79",size:"icon",slot:"end"})),e("smoothly-input-checkbox",{key:"71264159bccb449aed01eb54f0f3e4c3ae2ad9b6",name:"third-checkbox"},"3rd")),e("h4",{key:"0c772e064d8a51c6d33172d27fc5af685edbb63f"},"Smoothly Radio Buttons"),e("smoothly-input-radio",{key:"2e7895c7d085ecbd0ca64410b7f76fa079861106",clearable:true,name:"radioFirstInput"},e("smoothly-icon",{key:"baf27045a94f4318c5193072003c3205566be340",name:"checkmark-circle",slot:"start"}),e("label",{key:"1510a8506ed6cc4654e52c0a8db589cb8f07789a",slot:"label"},"Clearable"),e("smoothly-input-radio-item",{key:"3640444f19026657c628973d69f82b21504c78d6",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"3e38e925bb0dc05927b249d5086a6793f67b6ebf",selected:true,value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"0b0331135e82acaacc3e7ccf86224ae4638190ed",value:"third"},"Label 3"),e("smoothly-input-clear",{key:"8799173946dae79110b281fd74af4fd7a680b4e9",size:"icon",slot:"end"})),e("smoothly-input-radio",{key:"a769bb209c9dd9c4ac3f17d6aa3ad887e2d168e8",name:"radioSecondInput"},e("label",{key:"252ba147b41c9155641e6b893591a6809f98c516",slot:"label"},"Not clearable"),e("smoothly-input-radio-item",{key:"269ad4c1ad1ef77808486ed910f76a93389ed53c",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"0de3d96a6afbfc9495085936af90c5bf17d2a4e6",value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"cac79cc3eab126dea7c063e7f469bc8b28c241b9",value:"third"},"Label 3"),e("smoothly-input-radio-item",{key:"c795e26c2789a10e8d0d8335f6f3ed96754a2f17",value:"fourth"},"Label 4"),e("smoothly-input-radio-item",{key:"63d8c92c4984fdf556360c61968e983da5e23548",value:"fifth"},"Label 5"),e("smoothly-input-radio-item",{key:"7c786157edd658508d71de20d55a4d596dc96d16",value:"sixth"},"Label 6")),e("smoothly-input-range-demo",{key:"90e079e7fa142511708ceb0781db47325feb7cbd"}),e("smoothly-input-color-demo",{key:"f52d61c72a3f01e834a2a626e1e533fd3c6ed11e"}),e("smoothly-input-price-demo",{key:"6da94024c5a01ed305071bce4f3afe97a807fe22"}),e("smoothly-back-to-top",{key:"49936dab6a55005f169850bbcc6d324e0aff0858"})))}};gc.style=pc;const kc='.sc-smoothly-input-demo-standard-h{width:50%;margin:auto}.sc-smoothly-input-demo-standard-h h2.sc-smoothly-input-demo-standard,.sc-smoothly-input-demo-standard-h p.sc-smoothly-input-demo-standard{margin:.5rem 0}div.input-wrapper.sc-smoothly-input-demo-standard{display:grid;margin-top:1rem;grid-template-columns:2fr 1fr;gap:1rem;position:relative;justify-content:space-around}div.input-wrapper.sc-smoothly-input-demo-standard>[name].sc-smoothly-input-demo-standard{grid-column:1 / 2}div.input-wrapper.sc-smoothly-input-demo-standard>.width.sc-smoothly-input-demo-standard{width:100%;text-align:center;border-bottom:1px dashed black}div.input-wrapper.sc-smoothly-input-demo-standard>.height.sc-smoothly-input-demo-standard{align-content:center;grid-column:2 / 3;border-left:1px dashed black;padding-left:1rem;content:"hello"}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard{width:0.5rem;grid-column:1 / 2;white-space:nowrap;overflow:visible;position:relative;cursor:default}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard::before{content:"";position:absolute;width:100%;top:1.5rem;bottom:-1rem;border:1px dashed black;z-index:2}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard:hover::before{bottom:-100vh}.vertical.sc-smoothly-input-demo-standard-h{width:100%;row-gap:0;position:relative}.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard{display:grid;grid-template-columns:repeat(auto-fill, 14rem);gap:.5rem}.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.width.sc-smoothly-input-demo-standard,.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.height.sc-smoothly-input-demo-standard,.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard{display:none}.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.guide-lines.sc-smoothly-input-demo-standard::before,.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.guide-lines.sc-smoothly-input-demo-standard::after{content:"";pointer-events:none;right:0;width:100vw;position:absolute;z-index:2;border-top:1px dotted black}.sc-smoothly-input-demo-standard-h:not(.vertical) .guide-lines.sc-smoothly-input-demo-standard{display:none}.guide-lines.sc-smoothly-input-demo-standard{text-align:end;justify-self:center;align-content:center}.guide-lines.sc-smoothly-input-demo-standard::before{top:1rem}.guide-lines.sc-smoothly-input-demo-standard::after{top:2rem}.guide-lines.show-label.sc-smoothly-input-demo-standard::before{top:1.05rem}.guide-lines.show-label.sc-smoothly-input-demo-standard::after{top:2.3rem}';const vc=kc;const wc=class{constructor(e){t(this,e);this.duration={hours:8};this.options={}}connectedCallback(){this.updateInputHeightText()}componentDidRender(){this.updateInputHeightText()}updateInputHeightText(){const t=Number(getComputedStyle(document.documentElement).fontSize.replace("px",""));this.element.querySelectorAll(".height").forEach((e=>{const o=e.clientHeight;e.innerHTML=`<b>${o/t}rem</b> (${o}pixels)`}))}render(){const t=this.options.placeholder?"placeholder":undefined;return e(s,{key:"c58dcd7a0ddf98a9833fbe9467b9b08402b388f1",class:{vertical:!!this.options.vertical}},e("div",{key:"aa6ad35e296975201ad7bce10df89c67b507daa4",class:"description"},e("h2",{key:"b54af57073864460a36cd6358dd103d9a8d6203e"},"Input Standard"),e("p",{key:"4dd1d682e32b4da92a9c6a496dcc4af4dd455edc"},"Height of input should be ",e("code",{key:"67d7d6a970a3266c6503dc53cb5bbd7e1053b3ca"},"3rem")," including border. This is should result in a 48 pixel height at 100% zoom, assuming a root font-size of 16 pixels."),e("smoothly-form",{key:"c14ded577c553892f190d82767037447791e08ca",looks:"grid",onSmoothlyFormInput:t=>this.options=t.detail},e("smoothly-input-select",{key:"733a90dfdfdabb477b2d6105682657df7df51f27",name:"looks"},e("span",{key:"91aecb53922674bffb8e7b7d084a2dc6f1520fc3",slot:"label"},"Looks"),rr.types.map((t=>e("smoothly-item",{value:t},t)))),e("smoothly-input-checkbox",{key:"72a431fcddf9309c4cc52de91991f75005bb08fa",name:"readonly"},"Readonly"),e("smoothly-input-select",{key:"06f5861be0d3acc109f02de05abeffebe764db39",name:"color"},e("span",{key:"3b514f9d59a5a6e85a3a760436110a32983d13e1",slot:"label"},"Color"),r.types.map((t=>e("smoothly-item",{value:t},e("span",{color:t},t)))),e("smoothly-input-clear",{key:"efaa0ccf60af3c1310d8ddc89e12825714de5b52",slot:"end"})),e("smoothly-input-checkbox",{key:"8e3ff06a5ec5a272e355ed32c4c3a26feaad93d9",name:"vertical"},"Vertical Layout"),e("smoothly-input-checkbox",{key:"f508c381ddc975eba1f73788b4ec9d1a17c6faff",name:"showLabel",checked:true},"Show Label"),e("smoothly-input-checkbox",{key:"976c451c4c52b9c4cdf06db0b287ce57d78c852f",name:"placeholder"},"Placeholder"),e("smoothly-input-checkbox",{key:"6c8aa60ab8294a01d5492d981b442bdb9f2567d5",name:"invalid"},"Invalid"),e("smoothly-input",{key:"fd721fe78c6623bec6468e647e6ac88f8e483e53",name:"errorMessage",value:"This is not a valid value"},"Error Message"),e("smoothly-input-range",{key:"8ab1d3698fa0cbe1c1f5da694443d3372aeec095",label:"Border Radius (rem)",name:"borderRadius",min:0,max:2,step:.25}))),e("div",{key:"b3e86ecbfd3d145454b420e3f45d87124c4d4650",class:"input-wrapper",style:{"--smoothly-input-border-radius":`${this.options.borderRadius}rem`}},e("div",{key:"4719ebb85b566902dc53cae95cbc8826a3b22619",class:"width"},"100%"),e("div",{key:"a205e5654718ba2a308e29dc3e34e6c9598f23d6",class:"left-padding"},"0.5rem - left padding"),e("smoothly-input",{key:"c5143cfedc84779d8b28d64a56e728ef2ab4df57",name:"text",looks:this.options.looks,placeholder:t,invalid:this.options.invalid,errorMessage:this.options.errorMessage,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"a675b1d8ad3e673914e020d9eb14b15a242cee0d"},"Text"),e("smoothly-input-clear",{key:"1088552e7fca00d6896c74d6da64748b8adcb9cd",slot:"end"})),e("div",{key:"c5fb2a470f3c7391b3ae9e4dbc5814f7e5550a86",class:"height"}),e("smoothly-input-select",{key:"b7eaf11fdf18381ae8d551c24e6e8f7566d6179a",name:"month",looks:this.options.looks,placeholder:t,invalid:this.options.invalid,errorMessage:this.options.errorMessage,readonly:this.options.readonly,color:this.options.color},this.options.showLabel&&e("label",{key:"131a55d7d6876efe226c6be6996c1b90b8465904",slot:"label"},"Select"),e("smoothly-item",{key:"84ff7f28d8b523555d77b8e90dd0a4c2303ddaf7",value:"1"},"January"),e("smoothly-item",{key:"31f15f5f9c7dc78227c2c6fd648e56623a8e4c8b",value:"2"},"February"),e("smoothly-item",{key:"e81d01da312a769b54fd33758d0a6b0f0c138519",value:"3"},"March"),e("smoothly-item",{key:"96922f4ed441fb7910c7e6838dfa3d3f7c71ef34",value:"4"},"April"),e("smoothly-item",{key:"9ecfcdcbb63b36deb2e18f195ba7e08ac7f738a1",value:"5"},"May"),e("smoothly-item",{key:"918d4f499d24d5947bdb060dc28009396fc23caf",value:"6"},"June"),e("smoothly-item",{key:"973167231cb8e2477ae54572042ec80cafe4ea37",value:"7"},"July"),e("smoothly-item",{key:"af47c9a8e15a6bb7ddebf827547e248219f2dd0b",value:"8"},"August"),e("smoothly-item",{key:"4069036ca290731580df101648683c305e67ebec",value:"9"},"September"),e("smoothly-item",{key:"d98add36ae1c3bd7159cb5e3784a74895ee78fff",value:"10"},"October"),e("smoothly-item",{key:"3c20e5f2c440ed7e3cce046236a22a6fd2259c2d",value:"11"},"November"),e("smoothly-item",{key:"7f9f272f95377d0fcb6950dbb5d5a5e4f610c613",value:"12"},"December"),e("smoothly-input-clear",{key:"b98b27b7a528601f9e1fe1d14e6043c20919377b",slot:"end"})),e("div",{key:"89d4880eaec86e70228d3d3f26f2eb112ad50cb1",class:"height"}),e("smoothly-input-checkbox",{key:"32b9e83ce27c25041b8cf103ad4c10ddbb11f2ce",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color},"Check"),e("div",{key:"3f0885c44817050860ae95324bacea6721e235cd",class:"height"}),e("smoothly-input-radio",{key:"2263d9a201f26ecf51c4e3a2ec445a94027d61a6",name:"radio",clearable:true,looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&e("label",{key:"badac80733108311a4800007278c3417cbad57df",slot:"label"},"Radio"),e("smoothly-input-radio-item",{key:"d4d72a709daf0c2cdbc7aabfe51db816f1a608ae",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"db98b84fc34c0ed7dad88ff4d75ef98533d19259",selected:true,value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"f732549c63fb54173349f1219535a54686e4281f",value:"third"},"Label 3"),e("smoothly-input-clear",{key:"f0affe94d6280188d9c2b6d482b252e9ab0707ac",slot:"end"})),e("div",{key:"e9c9eaf8c54bd995fe687366721903cfd2c04f40",class:"height"}),e("smoothly-input-file",{key:"adbbcd0bc57064fd2293ea700b6fed451bc38fd4",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,placeholder:t,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"70d58f1f7eaf4b31ded93887a4fad73fd99c07f1",slot:"label"},"File"),e("smoothly-input-clear",{key:"3b75906118b762daaddb6ac754dff28236cc4632",slot:"end"})),e("div",{key:"987ab65df503b27a86263d66c20d022bff4492e3",class:"height"}),e("smoothly-input-range",{key:"a363a3b91d2ab8e16f53647a8c706d2f14cf6c0d",name:"range",label:this.options.showLabel?"Range":undefined,looks:this.options.looks,readonly:this.options.readonly,color:this.options.color},e("smoothly-input-clear",{key:"98567ea997a482ae3fa6f57f5c28dde08b52a31d",slot:"end"})),e("div",{key:"89c0dac8beabb32cd47c1452360c8e3fc1f41a5d",class:"height"}),e("smoothly-input-color",{key:"47b272d0c0e50a46b885e0b0c23f9e690f8e7151",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"80e2730f7c9ce81cfa49bf193345c4b7f1f014be"},"Color"),e("smoothly-input-clear",{key:"d56a6765d8710d9f35d8d10b47d52b4bade2b6fa",slot:"end"})),e("div",{key:"ffe82240e639efb559a1710ea839708b548b89ef",class:"height"}),e("smoothly-input-date",{key:"2340719aa80968e1b630a4c967da15482ab28abd",looks:this.options.looks,readonly:this.options.readonly,invalid:this.options.invalid,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"7adde192741aaa0850e3ea70c04ea80cd6cfd914"},"Date"),e("smoothly-input-clear",{key:"a9187a4b235ef079adf84fe0403c5128e1216025",slot:"end"})),e("div",{key:"7d47f8663295f1ad7675789348becc972266d551",class:"height"}),e("smoothly-input-date-range",{key:"f1426cd9db9cc037ca2bf262f06672cab8f0e632",looks:this.options.looks,readonly:this.options.readonly,invalid:this.options.invalid,color:this.options.color,placeholder:t,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"d0faa66b131aaa9934b216d2a5b07a75a64d57db"},"Date Range"),e("smoothly-input-clear",{key:"ac6166b34ea31f06a41c6b856e6cb00bd014e2c5",slot:"end"})),e("div",{key:"44b52319c60c4bb7af8ccd8222ef083454b07814",class:"height"}),e("div",{key:"5e10df393906febb867db526c3a2546fa0911880",class:{"guide-lines":true,"show-label":!!this.options.showLabel}},this.options.showLabel?"Aligned labels & values":"Center values")))}get element(){return i(this)}};wc.style=vc;const xc='[color=default].sc-smoothly-input-edit{--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-edit{--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-edit{--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-edit{--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-edit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-edit{--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-edit{--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-edit{--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-edit{--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-edit{--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-edit-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-edit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-edit-h{display:inline}[disabled].sc-smoothly-input-edit-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-edit-h>a.sc-smoothly-input-edit,.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-edit-h>a.sc-smoothly-input-edit:empty,.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:empty{border-width:0}.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-input-edit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-edit{padding:0.8em;min-width:8em}.sc-smoothly-input-edit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-edit{padding:0.6em}[size=icon].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{padding:0.5em}[type=button].sc-smoothly-input-edit-h>a.sc-smoothly-input-edit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-size:100%}[size=large].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-size:130%}.sc-smoothly-input-edit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-edit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-edit-h{width:100%}[expand=full].sc-smoothly-input-edit-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-edit-h:not([fill=clear])>button.sc-smoothly-input-edit:hover,.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:focus-visible,[fill=outline].sc-smoothly-input-edit-h:active>button.sc-smoothly-input-edit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:hover::before,[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:focus-within::before,[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-edit:hover,.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-edit:focus-visible,.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-edit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit,.sc-smoothly-input-edit-h.sc-smoothly-input-edit-s>smoothly-icon,.sc-smoothly-input-edit-h .sc-smoothly-input-edit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-edit-h{display:none}.sc-smoothly-input-edit-h:not([display]){display:none}[editable].sc-smoothly-input-edit-h{opacity:0.5}.sc-smoothly-input-edit-h[type="input"].sc-smoothly-input-edit-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.sc-smoothly-input-edit-h smoothly-icon.default.sc-smoothly-input-edit{transform:translate(.1em, -.1em)}.sc-smoothly-input-edit-h.sc-smoothly-input-edit-s>button>*+smoothly-icon{display:none}';const Sc=xc;const Cc=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color="tertiary";this.expand=undefined;this.fill=undefined;this.disabled=false;this.display=true;this.shape=undefined;this.type="input";this.size=undefined;this.toolTip="Edit"}componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(lr.type.is(t)){this.parent=t;t.listen("changed",(async t=>{this.display=t.readonly}))}}))}clickHandler(){var t;(t=this.parent)===null||t===void 0?void 0:t.edit(true)}render(){var t;return e(s,{key:"5e4f89335ebea26c7e28f731e6c469d156737123",title:this.toolTip},e("smoothly-button",{key:"64bca4444a76e5ff728c3371419bd4a230143fb9",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(t=this.fill)!==null&&t!==void 0?t:this.type=="input"?"clear":undefined},e("slot",{key:"379cf7a1b3f7de48d734766e6748d3a0539c4b7d"}),e("smoothly-icon",{key:"53b19345d6883b7c286bdef9a4cdb4e39d20f70d",class:"default",name:"create-outline",size:"tiny"})))}};Cc.style=Sc;const zc='.sc-smoothly-input-file-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-file-h{border:transparent 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(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-file-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-file-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-file-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-file-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-file-h,[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-file-h>input.sc-smoothly-input-file,[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within)>input.sc-smoothly-input-file{background:transparent}[looks="transparent"].sc-smoothly-input-file-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-file-h.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h .label.sc-smoothly-input-file{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-file-h.floating-label.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.floating-label .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.has-value.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.has-value .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[placeholder].sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[placeholder] .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[readonly].sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[readonly] .sc-smoothly-input-file-s>[slot=label],.has-value.sc-smoothly-input-file-h .label.sc-smoothly-input-file,[placeholder].sc-smoothly-input-file-h .label.sc-smoothly-input-file,[readonly].sc-smoothly-input-file-h .label.sc-smoothly-input-file,.sc-smoothly-input-file-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-file{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-file-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h{display:flex;align-items:center;flex-wrap:wrap;overflow:hidden;position:relative;width:100%;padding-left:var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file{position:absolute;inset:0;background-color:rgb(var(--smoothly-input-hover-background), 0.6);border-radius:var(--smoothly-input-border-radius);border:0.25rem dashed rgb(var(--smoothly-input-hover-foreground));display:flex;justify-content:center;align-items:center}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file>smoothly-icon.sc-smoothly-input-file{color:rgb(var(--smoothly-input-hover-foreground))}.sc-smoothly-input-file-h:not(.dragging)>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h>div.input.sc-smoothly-input-file>input.sc-smoothly-input-file{overflow:hidden;height:0;width:0;padding:0}.sc-smoothly-input-file-h:not([show-label])>div.input.sc-smoothly-input-file{display:flex;align-items:center;padding-bottom:0.2rem}.sc-smoothly-input-file-h:not([show-label])>smoothly-button.sc-smoothly-input-file:not(:empty){margin-right:1ch}[show-label].sc-smoothly-input-file-h>div.input.sc-smoothly-input-file{display:flex;padding-block:var(--input-value-padding-top) var(--input-value-padding-bottom);height:100%;box-sizing:border-box;flex-grow:1}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>smoothly-button.sc-smoothly-input-file{margin:0;border:none}.sc-smoothly-input-file-h>label.sc-smoothly-input-file{left:var(--input-padding-side)}.sc-smoothly-input-file-h,.sc-smoothly-input-file-h *.sc-smoothly-input-file{cursor:pointer}[readonly].sc-smoothly-input-file-h,[readonly].sc-smoothly-input-file-h *.sc-smoothly-input-file{cursor:not-allowed}';const jc=zc;const _c=class{constructor(e){t(this,e);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.transfer=new DataTransfer;this.changed=false;this.readonly=false;this.accept=undefined;this.color=undefined;this.looks=undefined;this.camera=undefined;this.name=undefined;this.showLabel=true;this.value=undefined;this.placeholder=undefined;this.dragging=false}get files(){this.transfer.items.clear();this.value&&this.transfer.items.add(this.value);return this.transfer.files}async componentWillLoad(){this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t))}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}smoothlyInputLoadHandler(t){cr.registerSubAction(this,t)}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.valueChanged()}async binary(){return true}async valueChanged(){this.changed=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()})}inputHandler(t){var e,o,s;t.stopPropagation();if((o=(e=this.input)===null||e===void 0?void 0:e.files)===null||o===void 0?void 0:o.length)this.value=(s=this.input)===null||s===void 0?void 0:s.files[0]}dropHandler(t){var e;t.preventDefault();t.stopPropagation();this.dragging=false;if((e=t.dataTransfer)===null||e===void 0?void 0:e.files.length)this.value=t.dataTransfer.files[0]}clickHandler(t){var e;if(!this.readonly&&!t.composedPath().find((t=>t==this.input))){(e=this.input)===null||e===void 0?void 0:e.click()}}dragOverHandler(t){t.preventDefault();t.stopPropagation()}dragEnterHandler(t){t.preventDefault();!this.readonly&&(this.dragging=true)}dragLeaveHandler(t){t.stopPropagation();this.dragging=false}render(){var t,o,i;return e(s,{key:"a5683818b91fadba7fb3f46c3abf006be2111d38",class:{dragging:this.dragging,"has-value":!!this.value},tabindex:0,onClick:t=>this.clickHandler(t),onDragOver:t=>this.dragOverHandler(t),onDragEnter:t=>this.dragEnterHandler(t)},e("label",{key:"2034b3f660498dd2e4a510ddb4094073e4b60c51"},e("slot",{key:"0466b8ef49363c0869f6213d34fb24ece2e9eff6",name:"label"})),e("div",{key:"8106c7ae0fc63199f97e3de977b05018d9fb8535",class:"input"},e("smoothly-button",{key:"b4869d4bd56d4d4865d4af8c0c7237a320397078",type:"button",color:this.color,fill:"clear",size:"flexible"},e("slot",{key:"4a195b824d6ef4bb83aceba448bc95d62826337a",name:"button"})),e("span",{key:"51eb694634e34effd7f2ef90f8ab68ced272cedf"},(o=(t=this.value)===null||t===void 0?void 0:t.name)!==null&&o!==void 0?o:this.placeholder),e("div",{key:"ec5b06939273ce018ec60ff75bc1348ec3018460",class:"drag-overlay",onDrop:t=>this.dropHandler(t),onDragLeave:t=>this.dragLeaveHandler(t)},e("smoothly-icon",{key:"e1c90af52875e75e4813a0e23681b0fdbae2a217",name:"document-attach-outline"})),e("input",{key:"4f350280bbed38e8517b9bffca58f8a70b8891c7",ref:t=>this.input=t,type:"file",capture:this.camera=="back"?"environment":"user",accept:(i=this.accept)!==null&&i!==void 0?i:!this.camera?undefined:"image/jpeg",files:this.files,onInput:t=>this.inputHandler(t)})),e("div",{key:"451a75e9a5ddfe23431e434b2eccf20decd32078",class:"end",onClick:t=>t.stopPropagation()},e("slot",{key:"93dc9c23bd8c44ec4b5fdf7c90e6080f9c8e9005",name:"end"})))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"]}}};_c.style=jc;const Ic=".sc-smoothly-input-month-h{display:flex;flex-direction:row;justify-content:space-between;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-month-h:not([in-calendar])>smoothly-input-select.sc-smoothly-input-month{display:flex;flex:1}[looks=line].sc-smoothly-input-month-h,[looks=border].sc-smoothly-input-month-h,[looks=transparent].sc-smoothly-input-month-h{gap:2em}.sc-smoothly-input-month-h:not([previous])>smoothly-icon.sc-smoothly-input-month:first-of-type,.sc-smoothly-input-month-h:not([next])>smoothly-icon.sc-smoothly-input-month:last-of-type{display:none}.sc-smoothly-input-month-h>smoothly-icon.sc-smoothly-input-month{display:flex;align-self:center;cursor:pointer}.sc-smoothly-input-month-h>smoothly-icon.disabled.sc-smoothly-input-month{opacity:0.5;cursor:not-allowed}";const Tc=Ic;const Oc=class{constructor(e){t(this,e);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.listener={};this.readonly=undefined;this.color=undefined;this.looks=undefined;this.name=undefined;this.value=w.now();this.max=undefined;this.min=undefined;this.next=false;this.previous=false;this.inCalendar=false;this.showLabel=true;this.allowPreviousMonth=true;this.allowNextMonth=true}componentWillLoad(){this.smoothlyInputLooks.emit((t=>{var e;return this.looks=(e=this.looks)!==null&&e!==void 0?e:t}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.valueChanged()}valueChanged(){this.smoothlyInput.emit({[this.name]:this.value})}adjustMonth(t){var e;if(!this.readonly){const o=w.parse((e=this.value)!==null&&e!==void 0?e:w.now());o.setMonth(o.getMonth()+t);this.value=w.create(o)}}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}setAllowPreviousMonth(){var t,e;const o=w.previousMonth((t=this.value)!==null&&t!==void 0?t:w.now()).substring(0,7);const s=(e=this.min)===null||e===void 0?void 0:e.substring(0,7);this.allowPreviousMonth=!s||o>=s}setAllowNextMonth(){var t,e;const o=w.nextMonth((t=this.value)!==null&&t!==void 0?t:w.now()).substring(0,7);const s=(e=this.max)===null||e===void 0?void 0:e.substring(0,7);this.allowNextMonth=!s||o<=s}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async clear(){var t,e;(t=this.year)===null||t===void 0?void 0:t.clear();(e=this.month)===null||e===void 0?void 0:e.clear()}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t}async reset(){var t,e;(t=this.year)===null||t===void 0?void 0:t.reset();(e=this.month)===null||e===void 0?void 0:e.reset()}async setInitialValue(){var t,e;(t=this.year)===null||t===void 0?void 0:t.setInitialValue();(e=this.month)===null||e===void 0?void 0:e.setInitialValue()}inputHandler(t){if(t.target!=this.element){t.stopPropagation();const e=t.detail[`${this.name}-year`];const o=t.detail[`${this.name}-month`];if(o&&w.is(o))this.value=w.firstOfMonth(o);else if(e&&w.is(e))this.value=w.firstOfMonth(e)}}smoothlyInputLooksHandler(t){if(t.target!=this.element){t.stopPropagation();t.detail(this.looks,this.color)}}async smoothlyInputLoadHandler(t){if(t.target!=this.element)t.stopPropagation()}render(){var t,o;return e(s,{key:"8d6d58f19857560bb647feb6f07d117ff32f5e5c"},e("smoothly-icon",{key:"a96466450e2c0f52a4547c3e73be5f12e7fc8185",name:"caret-back-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowPreviousMonth},onClick:()=>this.allowPreviousMonth&&this.adjustMonth(-1)}),e("smoothly-input-select",{key:"4d9bc7ff4ba2abb8706feba8d70bf27d8358c6bf",ref:t=>this.year=t,name:`${this.name}-year`,readonly:this.readonly,changed:this.changed,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:t=>this.inputHandler(t),searchDisabled:true},e("div",{key:"b2b7c3c08e6190b111fe6705da0a67dbb8ac7a13",slot:"label"},e("slot",{key:"390da9b74eec6f2e26b35a9dc4e7e028d49a7ce8",name:"year-label"})),se((t=this.value)!==null&&t!==void 0?t:w.now(),this.min,this.max).map((t=>e("smoothly-item",{key:t.date,value:t.date,selected:t.selected||this.value==t.date},t.name)))),e("smoothly-input-select",{key:"ea8933a3d7c111b4945622056bef619fbeda3885",ref:t=>this.month=t,name:`${this.name}-month`,readonly:this.readonly,color:this.color,looks:this.looks,changed:this.changed,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:t=>this.inputHandler(t),searchDisabled:true},e("div",{key:"4406bf69875cdee066dea362b6079c1e02c79f2a",slot:"label"},e("slot",{key:"36dccb1cd12ac6580b55c859bc56a892e57cf704",name:"month-label"})),oe((o=this.value)!==null&&o!==void 0?o:w.now()).map((t=>e("smoothly-item",{key:t.date,value:t.date,selected:t.selected||this.value==t.date},t.name)))),e("smoothly-icon",{key:"9b0fbe42d865b52cb06fff38cc525c410d9705a3",name:"caret-forward-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowNextMonth},onClick:()=>this.allowNextMonth&&this.adjustMonth(1)}))}get element(){return i(this)}static get watchers(){return{value:["valueChanged","setAllowPreviousMonth","setAllowNextMonth"],min:["setAllowPreviousMonth"],max:["setAllowNextMonth"]}}};Oc.style=Tc;const Lc=".sc-smoothly-input-price-demo-h{display:block}";const Ac=Lc;const Mc=class{constructor(e){t(this,e);this.currencies=["EUR","USD","GBP"];this.currency="USD"}render(){return e(s,{key:"60e993b80b4e917ccbb75c50363683528679057c"},e("h2",{key:"d0aba9325c5d06129d4901db66f1013567b6b830"},"State demo on smoothly-input"),e("p",{key:"a855d441d2caca97623532b0c2b76fee767cb0c6"},"This demo/test the internal state of the smoothly-input component."),e("p",{key:"ace43773575545bf9e1436679882d52fc7df775e"},"The currency of the price should update when switching between the currencies."),e("smoothly-input-radio",{key:"37bfc9ebfe8859b3d91dc23903c9ed54dbaecde2",name:"currency",onSmoothlyInput:t=>this.currency=C.is(t.detail.currency)?t.detail.currency:undefined},this.currencies.map((t=>e("smoothly-input-radio-item",{key:t,selected:t==this.currency,value:t},t)))),e("smoothly-input",{key:"bac1cf757d16013bbc16193bc4bb8a290d30f4d8",type:"price",currency:this.currency},"price"))}};Mc.style=Ac;const Ec='.sc-smoothly-input-radio-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-radio-h[looks="border"].sc-smoothly-input-radio-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-radio-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-radio-h{border:transparent solid 1px}.sc-smoothly-input-radio-h[looks="line"].sc-smoothly-input-radio-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-radio-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-radio-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-radio-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-radio-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-radio-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-radio-h,[looks="transparent"].sc-smoothly-input-radio-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-radio-h>input.sc-smoothly-input-radio,[looks="transparent"].sc-smoothly-input-radio-h:not(:focus-within)>input.sc-smoothly-input-radio{background:transparent}[looks="transparent"].sc-smoothly-input-radio-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-radio-h.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h .label.sc-smoothly-input-radio{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-radio-h.floating-label.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.floating-label .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.has-value.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.has-value .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[placeholder].sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[placeholder] .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[readonly].sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[readonly] .sc-smoothly-input-radio-s>[slot=label],.has-value.sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,[placeholder].sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,[readonly].sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,.sc-smoothly-input-radio-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-radio{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-radio-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-radio{display:none}.sc-smoothly-input-radio-h{background-color:rgb(var(--smoothly-input-background));display:flex;align-items:center;padding-left:var(--input-padding-side);box-sizing:border-box}[show-label].sc-smoothly-input-radio-h>div.sc-smoothly-input-radio{position:relative;padding-block:var(--input-value-padding-top) var(--input-value-padding-bottom)}.sc-smoothly-input-radio-h>div.sc-smoothly-input-radio,.sc-smoothly-input-radio-h>div.sc-smoothly-input-radio>div.options.sc-smoothly-input-radio{display:flex;gap:1.5rem}.sc-smoothly-input-radio-h.sc-smoothly-input-radio-s>[slot=end]{margin-right:0;margin-left:auto}[readonly].sc-smoothly-input-radio-h smoothly-input-radio-item.sc-smoothly-input-radio *.sc-smoothly-input-radio{cursor:not-allowed}';const Dc=Ec;const $c=class{constructor(e){t(this,e);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.valueReceivedOnLoad=false;this.listener={};this.changed=false;this.value=undefined;this.looks=undefined;this.color=undefined;this.clearable=undefined;this.readonly=false;this.name=undefined;this.showLabel=true}componentWillLoad(){var t,e;this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,this.color=e}));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}componentDidLoad(){!this.valueReceivedOnLoad&&this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((t=>this.parent=t));this.initialValue=this.active}handleRegister(t){t.stopPropagation();t.detail(this.name)}smoothlyInputLoadHandler(t){cr.registerSubAction(this,t)}smoothlyRadioInputHandler(t){var e,o,s;t.stopPropagation();if(!this.readonly||!this.valueReceivedOnLoad){if(this.clearable&&((e=this.active)===null||e===void 0?void 0:e.value)===t.detail.value)this.clear();else if(((o=this.active)===null||o===void 0?void 0:o.value)!==t.detail.value){(s=this.active)===null||s===void 0?void 0:s.select(false);this.active=t.detail;this.value=this.active.value;this.active.select(true)}}!this.valueReceivedOnLoad&&(this.valueReceivedOnLoad=!this.valueReceivedOnLoad)}async listen(t,e){this.listener[t]=e;e(this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async clear(){var t;if(this.clearable){(t=this.active)===null||t===void 0?void 0:t.select(false);this.active=undefined;this.value=undefined}}async edit(t){this.readonly=!t}async reset(){var t,e,o;(t=this.active)===null||t===void 0?void 0:t.select(false);this.active=this.initialValue;this.value=(e=this.initialValue)===null||e===void 0?void 0:e.value;(o=this.active)===null||o===void 0?void 0:o.select(true)}async setInitialValue(){this.initialValue=this.active;this.valueChanged()}async valueChanged(){var t,e,o;this.valueReceivedOnLoad&&(this.changed=((t=this.initialValue)===null||t===void 0?void 0:t.value)!==this.value);this.smoothlyInput.emit({[this.name]:await this.getValue()});(o=(e=this.listener).changed)===null||o===void 0?void 0:o.call(e,this)}watchingReadonly(){var t,e;(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}render(){return e(s,{key:"14c5f85b5b0c7cfd321e2328b677452b782aa5fc",class:"floating-label"},e("slot",{key:"206397de0c4f978e662d8c5a0d6eb4677bc1538b",name:"start"}),e("div",{key:"481361e50d551d93508b306909843f08c02e4c61"},e("slot",{key:"cf59f6ced7a7c727c7815f94e0eb85c6bce2a884",name:"label"}),e("div",{key:"103d55a402384f5cb1b20a228e173a6944b6e6fd",class:"options"},e("slot",{key:"131fe08ee7e3d771ca291b1cb4daf258fe54217d"}))),e("slot",{key:"9bc6a3ae69e22269209965fbf5467a11c824793f",name:"end"}))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"],readonly:["watchingReadonly"]}}};$c.style=Dc;const Rc=".sc-smoothly-input-radio-item-h{display:flex;align-items:center;position:relative}.sc-smoothly-input-radio-item-h:hover>*.sc-smoothly-input-radio-item{cursor:pointer}.sc-smoothly-input-radio-item-h>input.sc-smoothly-input-radio-item:focus-visible+smoothly-icon.sc-smoothly-input-radio-item{outline:2px solid rgb(var(--smoothly-primary-color));border-radius:1px}.sc-smoothly-input-radio-item-h>input.sc-smoothly-input-radio-item{opacity:0;z-index:1;width:1.5em;height:1.5em;position:absolute;transform:translateX(50%)}.sc-smoothly-input-radio-item-h>label.sc-smoothly-input-radio-item{padding:0 .3em;white-space:nowrap}";const Pc=Rc;const Fc=class{constructor(e){t(this,e);this.smoothlySelect=o(this,"smoothlySelect",7);this.smoothlyRadioItemRegister=o(this,"smoothlyRadioItemRegister",7);this.value=undefined;this.selected=false;this.looks=undefined;this.name=undefined}componentWillLoad(){this.smoothlyRadioItemRegister.emit((t=>this.name=t));this.selected&&this.inputHandler()}inputHandler(){this.smoothlySelect.emit({value:this.value,selected:this.selected,select:t=>this.selected=t})}render(){return e(s,{key:"445ef0f4c36d3b307154b6ea14b186d9c0d47c6e",onClick:()=>this.inputHandler()},e("input",{key:"082a0bd1fe3a850dd72da3b7a933898cd06b5d9a",name:this.name,type:"radio",checked:this.selected}),e("smoothly-icon",{key:"22e4068f2fb882d078772d01a6d9b958ce627c43",name:this.selected?"checkmark-circle":"ellipse-outline",size:"small",fill:"outline",color:this.selected?"success":"medium",toolTip:"Select"}),e("label",{key:"c11b76f7cbdb3bf1e5f56295ac44cc2f8feeb818"},e("slot",{key:"8312f51540b6f9b15d385bda77959799fdeddd5e"})))}get element(){return i(this)}};Fc.style=Pc;const Hc='.sc-smoothly-input-range-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-range-h[looks="border"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-range-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-range-h{border:transparent solid 1px}.sc-smoothly-input-range-h[looks="line"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-range-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-range-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-range-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-range-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-range-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-range-h,[looks="transparent"].sc-smoothly-input-range-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-range-h>input.sc-smoothly-input-range,[looks="transparent"].sc-smoothly-input-range-h:not(:focus-within)>input.sc-smoothly-input-range{background:transparent}[looks="transparent"].sc-smoothly-input-range-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-range-h.sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h .label.sc-smoothly-input-range{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-range-h.floating-label.sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h.floating-label .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h.has-value.sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h.has-value .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[placeholder].sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[placeholder] .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[readonly].sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[readonly] .sc-smoothly-input-range-s>[slot=label],.has-value.sc-smoothly-input-range-h .label.sc-smoothly-input-range,[placeholder].sc-smoothly-input-range-h .label.sc-smoothly-input-range,[readonly].sc-smoothly-input-range-h .label.sc-smoothly-input-range,.sc-smoothly-input-range-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-range{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-range-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-range{display:none}*.sc-smoothly-input-range{box-sizing:border-box}.sc-smoothly-input-range-h{position:relative;width:100%;justify-content:center;align-items:center;display:flex;background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-range-h>div.sc-smoothly-input-range:not([slot]){position:relative;display:flex;justify-content:center;align-items:center;width:100%;padding-right:var(--input-padding-side)}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range{width:12em;--input-min-height:calc(3rem - 2px)}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range:focus{outline:none;border:none}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range label.sc-smoothly-input-range{white-space:nowrap}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range{padding:0}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range{text-align:center;margin-left:var(--input-padding-side);border:none;box-sizing:border-box;width:5em;order:3;margin:0}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-display.sc-smoothly-input-range,.sc-smoothly-input-range-h:not(.output-side-right)>div.sc-smoothly-input-range>label.sc-smoothly-input-range{display:none}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range input.sc-smoothly-input-range{padding:0;text-align:center}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range label.sc-smoothly-input-range{width:100%}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>label.sc-smoothly-input-range{position:static;font-size:inherit;text-align:center;margin:0 var(--input-padding-side)}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range{-webkit-appearance:none;width:100%;background:transparent;height:1.5em;padding:0 .4em}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-thumb{-webkit-appearance:none;height:0.8em;width:0.8em;border-radius:100%;background-color:rgb(var(--smoothly-primary-color));cursor:pointer;margin-top:-.25em;border:none}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-thumb{height:0.8em;width:0.8em;border-radius:100%;background-color:rgb(var(--smoothly-primary-color));cursor:pointer;border:none}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track{height:.3em;cursor:pointer;background-color:rgb(var(--smoothly-primary-color));border-radius:20px}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-track{width:100%;height:.3em;cursor:pointer;background-color:rgb(var(--smoothly-primary-color));border-radius:20px}.sc-smoothly-input-range-h:not([value])>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track{background-color:rgb(var(--smoothly-primary-tint))}.sc-smoothly-input-range-h:not([value])>dov.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-track{background-color:rgb(var(--smoothly-primary-tint))}[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-thumb,[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-thumb,[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track,[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-track,[readonly].sc-smoothly-input-range-h,[readonly].sc-smoothly-input-range-h *.sc-smoothly-input-range{cursor:not-allowed}input.sc-smoothly-input-range::-webkit-outer-spin-button,input.sc-smoothly-input-range::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}';const Nc=Hc;const Yc=class{constructor(e){t(this,e);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.initialValue=undefined;this.value=undefined;this.looks=undefined;this.color=undefined;this.changed=false;this.defined=false;this.readonly=false;this.type="text";this.min=0;this.max=100;this.name="range";this.step=undefined;this.outputSide="left";this.label=undefined;this.showInput=false}componentWillLoad(){this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,this.color=e}));this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.value&&(this.initialValue=this.value);this.valueChanged()}smoothlyInputLoadHandler(t){if(t.target!=this.element){t.stopPropagation();t.detail(this)}}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.valueChanged()}valueChanged(){var t,e,o,s;const i=!this.step?undefined:(e=(t=this.step.toString().split(".")[1])===null||t===void 0?void 0:t.length)!==null&&e!==void 0?e:0;this.value=Number.isNaN(this.value)||this.value==undefined?undefined:+this.value.toFixed(i);this.changed=this.initialValue!==this.value;this.defined=typeof this.value==="number";(s=(o=this.listener).changed)===null||s===void 0?void 0:s.call(o,this);this.smoothlyInput.emit({[this.name]:this.value})}setValue(t){var e;if(t==undefined)this.value=undefined;else if(t<this.min)this.value=this.min;else if(t>this.max)this.value=this.max;else this.value=t;this.input&&(this.input.value=this.type=="text"?(e=this.value)===null||e===void 0?void 0:e.toString():this.value)}render(){var t,o,i;return e(s,{key:"db783417b42bed5076f915f08313768bb88da4dd",class:{"output-side-right":this.outputSide==="right","show-label":this.outputSide==="left"&&!!this.label}},e("slot",{key:"fa546d63cc333586a0790952abd17d3e38ed57d8",name:"start"}),e("div",{key:"7174fa5235b46e4d5814a6319ee87780f53182a1"},e("label",{key:"68acdcdac91793738f6b9c793bbec91112452656",htmlFor:this.name},this.label),e("smoothly-input",{key:"2358aca48abfdbb7bf64509ffca4415c1417a7b0",ref:t=>this.input=t,looks:undefined,color:this.color,name:this.name,showLabel:this.outputSide==="left"&&!!this.label,type:this.type,onSmoothlyInputLoad:async t=>(t.stopPropagation(),this.setValue(cr.Element.is(t.target)?Number(await t.target.getValue()):undefined)),onSmoothlyBlur:t=>t.stopPropagation(),onSmoothlyInput:async t=>{t.stopPropagation();this.setValue(cr.Element.is(t.target)?Number(await t.target.getValue()):undefined)},value:this.type=="percent"?this.value:(t=this.value)===null||t===void 0?void 0:t.toString(),placeholder:this.outputSide==="right"?"-":undefined,readonly:this.readonly},this.label),e("smoothly-display",{key:"46d85841ca98e52c4983f3ec120aac867c82fbff",label:(this.type=="percent"?this.min*100:this.min).toString()}),e("input",{key:"0ab661e4cec6705de67f731b5ea77030358a2326",name:this.name,part:"range",type:"range",min:this.min,max:this.max,step:(o=this.step)!==null&&o!==void 0?o:"any",disabled:this.readonly,onInput:t=>{t.stopPropagation();this.setValue(t.target.valueAsNumber)},value:(i=this.value)!==null&&i!==void 0?i:this.min}),e("smoothly-display",{key:"07ea47fe23295c4f7ffa6897b4454d3f5506ad46",label:(this.type=="percent"?this.max*100:this.max).toString()})),e("slot",{key:"86f0ecb601f375f1b9991308b7840cec3594860f",name:"end"}))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"]}}};Yc.style=Nc;const Uc=class{constructor(e){t(this,e)}render(){return e(s,{key:"85b6282c50f89bee4840e693926c5ce11b8468d2"},e("h2",{key:"b5a5bfea39b7a5865dc2b675328518dcaa580815"},"Range"),e("h3",{key:"3027e87b61097dbead9b1cf4f10631a32f0d6117"},"Phone Number"),e("smoothly-input-range",{key:"31757986d4852b37927bcb19668890e700f85504",min:7e8,max:799999999,step:1,label:"Phone Number"}),e("h3",{key:"59ea0e4817e7b9bbc58d036519e353a1aa5e8e4b"},"Stars out of ten"),e("smoothly-input-range",{key:"aee411b555cf88517a82aca02c6b5b38322a1483",max:10,step:1,label:"Stars"}),e("h3",{key:"f1c1639384fc3d62e9bc37cf7c58cebe27d53a87"},"Percent"),e("smoothly-input-range",{key:"4719a44a7107c7383df68a36bb9b84e1d3e5ac60",type:"percent",max:1,step:.01,label:"Percent"}),e("h3",{key:"0e07c305b2bc726df28d1c9382f2b9b867437f6e"},"With icon at start and clear button"),e("smoothly-input-range",{key:"f68492573ae570abfbaa7b78e2f7fec795516576",step:1,name:"range2",label:"Select"},e("smoothly-icon",{key:"5a8edd71548ada20177deb229daec450ec3aac25",name:"checkmark-circle",slot:"start"}),e("smoothly-input-clear",{key:"f5e2bbaa52d1eff08ab227349dcea905804d941d",size:"icon",slot:"end"})))}};const Wc='[color=default].sc-smoothly-input-reset{--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-reset{--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-reset{--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-reset{--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-reset{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-reset{--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-reset{--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-reset{--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-reset{--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-reset{--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-reset-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-reset-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-reset-h{display:inline}[disabled].sc-smoothly-input-reset-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-reset-h>a.sc-smoothly-input-reset,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-reset-h>a.sc-smoothly-input-reset:empty,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:empty{border-width:0}.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-input-reset-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-reset{padding:0.8em;min-width:8em}.sc-smoothly-input-reset-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-reset{padding:0.6em}[size=icon].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{padding:0.5em}[type=button].sc-smoothly-input-reset-h>a.sc-smoothly-input-reset{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:100%}[size=large].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:130%}.sc-smoothly-input-reset-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-reset-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-reset-h{width:100%}[expand=full].sc-smoothly-input-reset-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-reset-h:not([fill=clear])>button.sc-smoothly-input-reset:hover,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:focus-visible,[fill=outline].sc-smoothly-input-reset-h:active>button.sc-smoothly-input-reset::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:hover::before,[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:focus-within::before,[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-reset:hover,.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-reset:focus-visible,.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-reset:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset,.sc-smoothly-input-reset-h.sc-smoothly-input-reset-s>smoothly-icon,.sc-smoothly-input-reset-h .sc-smoothly-input-reset-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-reset-h{display:none}.sc-smoothly-input-reset-h:not([display]){display:none}.sc-smoothly-input-reset-h[type="input"].sc-smoothly-input-reset-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.sc-smoothly-input-reset-h.sc-smoothly-input-reset-s>smoothly-button>button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-reset-h{cursor:not-allowed}.sc-smoothly-input-reset-h[type="input"]:hover.sc-smoothly-input-reset-s>smoothly-icon,.sc-smoothly-input-reset-h[type="input"]:hover .sc-smoothly-input-reset-s>smoothly-icon{cursor:pointer;filter:opacity(100%)}';const Bc=Wc;const Vc=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color=undefined;this.expand=undefined;this.fill=undefined;this.disabled=false;this.size="icon";this.shape=undefined;this.display=true;this.type="input";this.tooltip="Reset"}async componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(lr.Element.type.is(t)){this.parent=t;this.readonlyAtLoad=t.readonly;t.listen("changed",(async t=>{if(cr.is(t)){this.display=t.readonly?false:t.changed}if(t instanceof mr){this.display=!t.readonly;this.disabled=!this.readonlyAtLoad&&!t.changed}}))}}))}clickHandler(t){var e,o;t.stopPropagation();(e=this.parent)===null||e===void 0?void 0:e.reset();this.parent instanceof mr&&this.readonlyAtLoad&&((o=this.parent)===null||o===void 0?void 0:o.edit(false))}render(){var t;return e(s,{key:"ddf4d620b1e0a0ff24f3ebaa02d310d44ffcbe16",title:this.tooltip},e("smoothly-button",{key:"6275117e110e26ca2a335384da1ffcc16bf14195",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(t=this.fill)!==null&&t!==void 0?t:this.type=="input"?"clear":undefined,onClick:t=>this.clickHandler(t)},e("slot",{key:"b3161df742bcd93d8c14e693e35403a3939b10ef"}),e("smoothly-icon",{key:"a2fe246a617475efda9604db8526d7aa7b7b546e",flip:"x",name:"refresh-outline",size:"tiny"})))}};Vc.style=Bc;var Gc;(function(t){let e;(function(t){t.type=z({value:M(),deselectable:_(),selected:_().optional(),filter:c()});t.is=t.type.is})(e=t.Element||(t.Element={}));t.type=e.type.extend({});t.is=t.type.is})(Gc||(Gc={}));const Kc='.sc-smoothly-input-select-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-select-h{border:transparent 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(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-select-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-select-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-select-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-select-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-select-h,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-select-h>input.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within)>input.sc-smoothly-input-select{background:transparent}[looks="transparent"].sc-smoothly-input-select-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-select-h.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .label.sc-smoothly-input-select{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-select-h.floating-label.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.floating-label .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder] .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly] .sc-smoothly-input-select-s>[slot=label],.has-value.sc-smoothly-input-select-h .label.sc-smoothly-input-select,[placeholder].sc-smoothly-input-select-h .label.sc-smoothly-input-select,[readonly].sc-smoothly-input-select-h .label.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-select{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-select-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h{display:flex;justify-content:space-between;flex-direction:row;position:relative;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));padding-left:var(--input-padding-side)}.open.sc-smoothly-input-select-h{border-radius:var(--smoothly-input-border-radius) var(--smoothly-input-border-radius) 0 0}.icon.sc-smoothly-input-select-h{width:fit-content;flex-direction:column}.sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select{box-sizing:border-box;display:flex;cursor:pointer;padding:var(--input-value-padding-top) 0 var(--input-value-padding-bottom) 0;overflow:hidden;width:100%;white-space:nowrap;gap:1rem;text-overflow:ellipsis}.sc-smoothly-input-select-h:not(:has([slot=label]))>div.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([show-label])>div.select-display.sc-smoothly-input-select{padding:.6em 0;align-items:center}[readonly].sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select{cursor:not-allowed}.sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select smoothly-icon.sc-smoothly-input-select{color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select{display:flex;flex-direction:row;align-items:center}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select-s>smoothly-icon:not("color"){color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));filter:opacity(60%)}.sc-smoothly-input-select-h:hover>div.icons.sc-smoothly-input-select-s>smoothly-icon{filter:opacity(100%)}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{opacity:.7;cursor:pointer;height:100%;padding-inline:var(--input-padding-side)}[invalid].sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:block;padding:0.5rem}.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h .label.sc-smoothly-input-select{left:.5rem}.has-value.sc-smoothly-input-select-h:has([slot=label]:not(:empty))>div.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not(.has-value)[placeholder]>div.select-display.sc-smoothly-input-select{overflow:hidden;width:100%}.sc-smoothly-input-select-h>.options.sc-smoothly-input-select{display:flex;flex-direction:column;position:absolute;top:var(--element-height);z-index:10;max-height:var(--menu-height, unset);overflow-x:hidden;overflow-y:auto;background-color:rgb(var(--smoothly-input-background));left:0;right:0;border-radius:0 0 var(--smoothly-input-border-radius) var(--smoothly-input-border-radius);min-width:fit-content;border:rgb(var(--smoothly-input-border, var(--smoothly-color-contrast))) solid 1px;border-top:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .4) solid 1px}[looks="grid"].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select,[looks=border].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select{left:-1px;right:-1px}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>smoothly-item,.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview{padding:.7em .7em .7em .25em}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview{display:flex;gap:1em;background-color:rgba(var(--smoothly-primary-tint), .5);color:rgb(var(--smoothly-color-contrast));fill:rgb(var(--smoothly-color-contrast));stroke:rgb(var(--smoothly-color-contrast))}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>div.search-preview.sc-smoothly-input-select>smoothly-icon[name="backspace-outline"].sc-smoothly-input-select{margin-left:auto;margin-right:0}.sc-smoothly-input-select-h>div.options.hidden.sc-smoothly-input-select{display:none}';const Zc=Kc;const qc=class{constructor(e){t(this,e);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyItemSelect=o(this,"smoothlyItemSelect",7);this.initialValue=[];this.initialValueHandled=false;this.listener={};this.items=[];this.lastOpen=false;this.invalid=false;this.errorMessage=undefined;this.name="selected";this.color=undefined;this.looks=undefined;this.showLabel=true;this.showSelected=true;this.readonly=false;this.inCalendar=false;this.ordered=undefined;this.multiple=false;this.clearable=true;this.changed=false;this.defined=false;this.placeholder=undefined;this.menuHeight=undefined;this.required=false;this.searchDisabled=false;this.mutable=false;this.open=false;this.selected=[];this.filter="";this.addedItems=[]}componentWillLoad(){var t,e;this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}componentDidLoad(){this.selected&&!this.initialValueHandled&&(this.initialValue=[...this.selected]);this.initialValueHandled=true;this.onSelectedChange()}componentDidRender(){var t,e,o,s,i;this.itemHeight===undefined&&(this.itemHeight=(t=this.items.find((t=>t.clientHeight>0)))===null||t===void 0?void 0:t.clientHeight);if(this.menuHeight&&this.itemHeight){(e=this.element)===null||e===void 0?void 0:e.style.setProperty("--menu-height",!this.menuHeight.endsWith("items")||this.items.length==0?this.menuHeight:`${this.itemHeight*+((s=(o=this.menuHeight.match(/^(\d+(\.\d+)?|\.\d+)/g))===null||o===void 0?void 0:o[0])!==null&&s!==void 0?s:"10")}px`)}(i=this.element)===null||i===void 0?void 0:i.style.setProperty("--element-height",`${this.element.clientHeight}px`);if(this.ordered&&!this.multiple&&this.open&&!this.lastOpen){this.scrollToSelected()}}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return!this.multiple&&this.selected[0]?this.selected[0].value:this.multiple&&this.selected.length>0?this.selected.map((t=>t.value)):undefined}async getItems(){return this.items}async listen(t,e){this.listener[t]=e;e(this)}async reset(){this.selected.forEach((t=>t.selected=t.hidden=false));this.initialValue.forEach((t=>t.selected=true));this.selected=[...this.initialValue];this.displaySelected();this.changed=false;this.open&&this.handleShowOptions()}async clear(){var t;if(this.clearable){this.selected.forEach((t=>t.selected=t.hidden=false));this.selected=[];if(this.displaySelectedElement){this.displaySelectedElement.innerHTML=(t=this.placeholder)!==null&&t!==void 0?t:""}}}async edit(t){this.readonly=!t}async setInitialValue(){this.changed=false;this.initialValue=[...this.selected]}async onSelectedChange(){var t,e;this.initialValueHandled&&(this.changed=!this.areValuesEqual(this.selected,this.initialValue));this.defined=this.selected.length>0;this.smoothlyInput.emit({[this.name]:await this.getValue()});(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}onRequiredChange(){this.items.forEach((t=>t.deselectable=!this.required))}async onFilterChange(t){t=t.toLowerCase();await Promise.all(this.items.map((e=>e.filter(t))))}watchingReadonly(){var t,e;(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}async smoothlyInputLoadHandler(t){if(t.target&&("name"in t.target&&t.target.name!==this.name||t.composedPath().some((t=>t==this.iconsDiv))&&!t.composedPath().some((t=>t==this.toggle)))){t.stopPropagation()}else if(Gc.Element.is(t.target)){t.stopPropagation();t.target.deselectable=!this.required;this.items.push(t.target)}cr.registerSubAction(this,t);this.displaySelected()}onWindowClick(t){!t.composedPath().includes(this.element)&&this.open&&this.handleShowOptions()}onItemSelect(t){t.stopPropagation();if(this.multiple){this.selected=t.detail.selected?[...this.selected,t.detail]:this.selected.filter((t=>t.selected))}else if(t.detail.selected||!this.items.some((t=>t.selected))){this.selected[0]&&(this.selected[0].hidden=this.selected[0].selected=false);this.selected=!t.detail.selected?this.selected.filter((t=>t.selected)):[t.detail];!this.showSelected&&t.detail.selected&&(t.detail.hidden=true)}this.displaySelected()}onClosed(t,e){this.lastOpen=e;if(!t){const t=this.items.find((t=>t.marked));if(t){t.marked=false}}}handleShowOptions(t){const e=(t===null||t===void 0?void 0:t.composedPath().some((t=>t==this.iconsDiv)))&&!t.composedPath().some((t=>t==this.toggle));const o=t===null||t===void 0?void 0:t.composedPath().find((t=>"tagName"in t&&t.tagName=="SMOOTHLY-ITEM"));!this.readonly&&!(o&&this.items.includes(o)&&this.multiple)&&!e&&(this.open=!this.open);this.filter=""}areValuesEqual(t,e){return t.length===e.length&&e.every((e=>t.includes(e)))}displaySelected(){var t;const e=this.selected.map((t=>`<div>${t.innerHTML}</div>`)).join("");this.displaySelectedElement&&(this.displaySelectedElement.innerHTML=this.selected.length>0?e:(t=this.placeholder)!==null&&t!==void 0?t:"")}onKeyDown(t){if(!this.searchDisabled){t.stopPropagation();const e=this.items.some((t=>t.getAttribute("hidden")===null));if(t.key!="Tab"&&!t.ctrlKey&&!t.metaKey)t.preventDefault();if(this.open){switch(t.key){case"ArrowUp":e&&this.move(-1);break;case"ArrowDown":e&&this.move(1);break;case"Escape":if(this.filter=="")this.open=false;else this.filter="";break;case"Backspace":this.filter=t.ctrlKey?"":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=!o.selected;if(!this.multiple){this.open=false;this.filter=""}break;case"Tab":this.open=false;break;default:if(t.key.length==1)this.filter+=t.key;break}}else{switch(t.key){case"Enter":case" ":this.handleShowOptions();break;case"ArrowDown":this.handleShowOptions();this.move(1);break;case"ArrowUp":this.handleShowOptions();this.move(-1);break;case"Tab":break;default:this.handleShowOptions();if(t.key.length==1)this.filter+=t.key;break}}}}scrollToSelected(){const t=this.items.find((t=>t.selected));if(t){this.items.map((t=>t.marked=false));t.marked=true;this.scrollTo(t,"instant")}}move(t){const e=this.items.filter((t=>!t.hidden&&!t.disabled));let o=e.findIndex((t=>t.marked));if(o==-1)o=0;else{e[o].marked=false;o=(o+t+e.length)%e.length}e[o].marked=true;this.scrollTo(e[o],"smooth")}scrollTo(t,e){var o,s,i;(o=this.optionsDiv)===null||o===void 0?void 0:o.scrollTo({top:t.offsetTop+t.offsetHeight/2-((i=(s=this.optionsDiv)===null||s===void 0?void 0:s.clientHeight)!==null&&i!==void 0?i:0)/2,behavior:e})}addItem(){this.addedItems=this.addedItems.concat(e("smoothly-item",{value:this.filter,selected:true},this.filter))}render(){return e(s,{key:"53ca1c9cf778456791b51a012feef878a757b201",tabIndex:0,class:{"has-value":this.selected.length!==0,open:this.open},onClick:t=>this.handleShowOptions(t)},e("div",{key:"6f34984590263650dc01631642dd8d1fcb99e6f8",class:"select-display",ref:t=>this.displaySelectedElement=t},this.placeholder),e("div",{key:"4bc2998836740edcdf28cba931a493e41eb27164",class:"icons",ref:t=>this.iconsDiv=t},e("smoothly-icon",{key:"7ecbd020399beedb2f247dc24f34e124dff681ec",class:"smoothly-invalid",name:"alert-circle",color:"danger",fill:"clear",size:"small",toolTip:this.errorMessage}),e("slot",{key:"12a9f9bd31a268275d52e072f200b65065c6ebab",name:"end"}),this.looks=="border"&&!this.readonly&&e("smoothly-icon",{key:"471609e7f3392d240a86dcc12ec7789efb5fdbf0",ref:t=>this.toggle=t,size:"tiny",name:this.open?"caret-down-outline":"caret-forward-outline"})),e("slot",{key:"86dd1aab9ec4f5de581116941c093190a753800e",name:"label"}),e("div",{key:"2df664b32bc54c10aa785f04fb433041ca77e5af",class:{hidden:!this.open,options:true},ref:t=>this.optionsDiv=t},this.filter.length>0&&e("div",{key:"5f79fc4cadd7de3b18391b04beafb49d192eb471",class:"search-preview"},e("smoothly-icon",{key:"e39f46a99686b49c6d2b84efdc6b1b0af3ec4292",name:"search-outline",size:"small"}),this.filter,e("smoothly-icon",{key:"df7b29e678db8cd87fe4f57c8bcad7b9cb71bef0",name:"backspace-outline",size:"small",onClick:t=>{t.stopPropagation();this.filter="";this.element.focus()}}),this.mutable&&e("smoothly-icon",{key:"264aa85b53723489930a72ba8f070b51223de7ad",name:"add",size:"small",onClick:t=>{t.stopPropagation();this.addItem()}})),e("slot",{key:"1f1d5c8170cafcf97c73f1b9c25afd2333339606"}),this.addedItems))}get element(){return i(this)}static get watchers(){return{selected:["onSelectedChange"],required:["onRequiredChange"],filter:["onFilterChange"],readonly:["watchingReadonly"],open:["onClosed"]}}};qc.style=Zc;const Xc='[color=default].sc-smoothly-input-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-input-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-input-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-input-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-input-submit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-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-input-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-input-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-input-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-input-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-input-submit-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-submit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-submit-h{display:inline}[disabled].sc-smoothly-input-submit-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit:empty,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:empty{border-width:0}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-input-submit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-submit{padding:0.8em;min-width:8em}.sc-smoothly-input-submit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-submit{padding:0.6em}[size=icon].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{padding:0.5em}[type=button].sc-smoothly-input-submit-h>a.sc-smoothly-input-submit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:100%}[size=large].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:130%}.sc-smoothly-input-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-submit-h{width:100%}[expand=full].sc-smoothly-input-submit-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-submit-h:not([fill=clear])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:focus-visible,[fill=outline].sc-smoothly-input-submit-h:active>button.sc-smoothly-input-submit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:hover::before,[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:focus-within::before,[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:focus-visible,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-icon,.sc-smoothly-input-submit-h .sc-smoothly-input-submit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-submit-h{display:none}.sc-smoothly-input-submit-h{display:flex}.sc-smoothly-input-submit-h:not([display]){display:none}.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button button>*+smoothly-icon,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button-confirm button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-submit-h{cursor:not-allowed}';const Jc=Xc;const Qc=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.delete=false;this.color=undefined;this.icon="checkmark-outline";this.expand=undefined;this.fill=undefined;this.disabled=false;this.display=false;this.shape=undefined;this.size="icon";this.toolTip=this.delete?"Remove":"Submit"}componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(p.is(t)&&lr.type.is(t)){this.parent=t;t.listen("changed",(async t=>{var e;this.display=!t.readonly;this.disabled=!this.delete&&(t.readonly||"validator"in t&&t.validator instanceof g&&!((e=t.validator)===null||e===void 0?void 0:e.is(d.convertArrays(t.value)))||!t.changed)}))}}))}clickHandler(){var t;(t=this.parent)===null||t===void 0?void 0:t.submit(this.delete)}render(){var t,o;return e(s,{key:"1d8c88daf379890ea99a468e995664358fe34358",title:this.toolTip},this.delete==true?e("smoothly-button-confirm",{size:this.size,shape:this.shape,expand:this.expand,color:(t=this.color)!==null&&t!==void 0?t:"danger",fill:this.fill,onSmoothlyConfirm:()=>this.clickHandler()},e("slot",null),e("smoothly-icon",{name:"trash-outline",fill:"solid",size:"tiny"})):e("smoothly-button",{disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:(o=this.color)!==null&&o!==void 0?o:"success",fill:this.fill,onClick:()=>this.clickHandler()},e("slot",null),this.icon&&e("smoothly-icon",{name:this.icon,fill:"solid",size:"tiny"})))}};Qc.style=Jc;const th="[selected].sc-smoothly-item-h{background-color:rgb(var(--smoothly-item-selected-background));color:rgb(var(--smoothly-item-selected-foreground));border-left:.3em solid rgb(var(--smoothly-item-selected-border))}[disabled].sc-smoothly-item-h,.sc-smoothly-item-h[disabled].sc-smoothly-item-s>*{background-color:rgb(var(--smoothly-item-disabled-background));color:rgb(var(--smoothly-item-disabled-foreground));opacity:var(--smoothly-item-disabled-opacity);cursor:not-allowed}.sc-smoothly-item-h{padding:0.5em;cursor:pointer;border-left:.3em solid transparent;color:rgb(var(--smoothly-item-foreground));fill:rgb(var(--smoothly-item-foreground));stroke:rgb(var(--smoothly-item-foreground));box-sizing:border-box;min-height:3rem}.sc-smoothly-item-h.sc-smoothly-item-s>*{color:rgb(var(--smoothly-item-foreground));fill:rgb(var(--smoothly-item-foreground));stroke:rgb(var(--smoothly-item-foreground))}.sc-smoothly-item-h:not([disabled])[marked],.sc-smoothly-item-h:not([disabled]):hover,.sc-smoothly-item-h:not([disabled])[marked].sc-smoothly-item-s>*,.sc-smoothly-item-h:not([disabled]):hover.sc-smoothly-item-s>*{background-color:rgb(var(--smoothly-item-hover-background));color:rgb(var(--smoothly-item-hover-foreground));fill:rgb(var(--smoothly-item-hover-foreground));stroke:rgb(var(--smoothly-item-hover-foreground))}";const eh=th;const oh=class{constructor(e){t(this,e);this.smoothlyItemSelect=o(this,"smoothlyItemSelect",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.value=undefined;this.selected=false;this.marked=undefined;this.disabled=false;this.deselectable=true}clickHandler(){if(!this.disabled&&(!this.selected||this.deselectable))this.selected=!this.selected}selectedWatcher(){this.smoothlyItemSelect.emit(this.element)}componentWillLoad(){this.smoothlyInputLoad.emit((()=>{}))}componentDidLoad(){if(this.selected&&!this.disabled)this.smoothlyItemSelect.emit(this.element)}async filter(t){var e;const o=typeof this.value==="string"?this.value:JSON.stringify((e=this.value)!==null&&e!==void 0?e:"");this.element.hidden=t?!(o.includes(t)||this.element.innerText.toLowerCase().includes(t)):false}render(){return e(s,{key:"3ed995516cbc1201d69cf5ac51fec581d7d336e1",tabIndex:-1},e("slot",{key:"86b7afe4dba82ba858cb5cb423c48e83be1613cc"}))}get element(){return i(this)}static get watchers(){return{selected:["selectedWatcher"]}}};oh.style=eh;const sh=".sc-smoothly-label-h{position:relative;width:max-content;display:flex;justify-content:center;align-items:center;padding:0.15em 0.6em;border-radius:2em;color:rgb(var(--smoothly-default-contrast));background-color:hsl(var(--hue), 85%, 70%)}[shape=rectangle].sc-smoothly-label-h{border-radius:0.3em}";const ih=sh;const ah=class{constructor(e){t(this,e);this.hue=undefined;this.description=undefined;this.shape=undefined}render(){var t;return e(s,{key:"5774de78bb12d627ff4cbe9e929e9111fb7190d5",title:this.description,style:{"--hue":(t=this.hue)===null||t===void 0?void 0:t.toString()}},e("slot",{key:"9a8a3d260c46b24373ea2f825a01934044406eb0"}))}};ah.style=ih;const nh=".sc-smoothly-lazy-h{display:block}";const lh=nh;const rh=class{constructor(e){t(this,e);this.show=false;this.content=undefined}loadMoreHandler(t){t.stopPropagation();this.show=true}render(){return e(s,{key:"9232620482ed6c3a6f428bfe60cb697414b6a336"},e("slot",{key:"25929b29e0ae6429f009bd55c60698e9031375ba",name:"before"}),e("smoothly-load-more",{key:"636eedc57a3698f4a376b1f72557124e1fb9acfd",onSmoothlyLoadMore:t=>this.loadMoreHandler(t)}),this.show&&(typeof this.content=="function"?e(this.content,null):this.content),e("slot",{key:"0d88241bd8026ae932531aa40995f6fe852cae66"}))}};rh.style=lh;const ch=class{constructor(e){t(this,e);this.smoothlyLoadMore=o(this,"smoothlyLoadMore",7);this.triggerMode="intersection";this.name="";this.multiple=false;this.inView=undefined}checkInView(){if(this.inView)this.smoothlyLoadMore.emit(this.name)}connectedCallback(){var t;this.observer=new IntersectionObserver(((t,e)=>this.observationHandler(e,t)));this.observer.observe(this.element);if(this.triggerMode=="scroll"){this.inView&&this.smoothlyLoadMore.emit(this.name);if(this.multiple||!this.multiple&&!this.inView){this.scrollableParent=n.findParent(this.element);(t=this.scrollableParent)===null||t===void 0?void 0:t.addEventListener("scroll",this.checkInView.bind(this),{once:!this.multiple})}}}disconnectedCallback(){var t;(t=this.scrollableParent)===null||t===void 0?void 0:t.removeEventListener("scroll",this.checkInView.bind(this));this.observer.disconnect()}observationHandler(t,e){var o,s;this.inView=((s=(o=e.find((t=>t.target==this.element)))===null||o===void 0?void 0:o.intersectionRatio)!==null&&s!==void 0?s:0)>0;if(this.inView){this.smoothlyLoadMore.emit(this.name);!this.multiple&&(t.unobserve(this.element),t.disconnect())}}render(){return e(s,{key:"ab441b5c3f3d5d75cf571153176f2feb2e22be74"})}get element(){return i(this)}};const hh='.sc-smoothly-modal-h{position:fixed;display:flex;justify-content:center;top:0;left:0;width:100%;height:100%;background-color:rgba(var(--smoothly-modal-backdrop));color:rgb(var(--smoothly-modal-foreground));z-index:5}.sc-smoothly-modal-h:not([open]),[hidden].sc-smoothly-modal-h{display:none}[align=center].sc-smoothly-modal-h{align-items:center}[align=top].sc-smoothly-modal-h>div.modal.sc-smoothly-modal{margin-top:calc((100dvh - var(--smoothly-modal-max-height)) / 2)}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal{display:flex;flex-direction:column;padding:2rem;gap:1.5rem;width:var(--smoothly-modal-width, 40rem);max-width:calc(100dvw - 1rem);height:fit-content;max-height:min(var(--smoothly-modal-max-height), 100dvh);background:rgb(var(--smoothly-modal-background, var(--smoothly-color)));border:1px solid rgb(var(--smoothly-modal-border));border-radius:var(--smoothly-modal-border-radius);box-shadow:var(--smoothly-modal-shadow);box-sizing:border-box}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal:empty,.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.actions.sc-smoothly-modal:empty{display:none}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal{display:flex;justify-content:space-between;align-items:center}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>*.sc-smoothly-modal,.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>*.sc-smoothly-modal{margin-block:0}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>*.sc-smoothly-modal:not(.header):not(.actions){overflow-y:auto}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal:not(:has([slot="header"])){justify-content:end}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>smoothly-icon.sc-smoothly-modal:not([slot="header"]){cursor:pointer;opacity:0.7;color:rgb(var(--smoothly-default-contrast))}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>smoothly-icon.sc-smoothly-modal:not([slot="header"]):hover{opacity:1}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.actions.sc-smoothly-modal{display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap}';const dh=hh;const mh=class{constructor(e){t(this,e);this.smoothlyModalChange=o(this,"smoothlyModalChange",7);this.open=false;this.closable=false;this.align="center"}openChanged(){this.smoothlyModalChange.emit(this.open)}render(){return e(s,{key:"4e8e1a3fa1514c5f4e96be5ca19a3e51b00c8ebf",role:"alertdialog"},e("div",{key:"e34db35173c29b139189d2f4ed3f9ae32a0d1b8b",class:"modal"},e("div",{key:"d612e953afeeb5f263733f3962b75352b0acd4ac",class:"header"},e("slot",{key:"43bc2a0ba4af24172aa61445527bcca7daa20062",name:"header"}),this.closable&&e("smoothly-icon",{key:"077cfd88bb565982a48044d5449c23a33c86cf6f",name:"close-outline",fill:"solid",onClick:()=>this.open=false})),e("slot",{key:"7cf4fd88b99e833ceae23b9a84629cd832429615"}),e("div",{key:"694537630273a9b0457329c25930a681cac0d822",class:"actions"},e("slot",{key:"3be84aa4fb5b6df9745bf83121d5470df03e063f",name:"actions"}))))}static get watchers(){return{open:["openChanged"]}}};mh.style=dh;const uh=".sc-smoothly-notification-h{display:block;position:relative;min-width:30em;min-height:3em;border-radius:5px;margin:0.5em}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification,.sc-smoothly-notification-h>span.clean.sc-smoothly-notification{display:flex;justify-content:center;align-self:center}.sc-smoothly-notification-h>span.sc-smoothly-notification{margin:0 2rem 0 1rem}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification{display:flex;width:100%;justify-content:center}.sc-smoothly-notification-h>span.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}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification{margin:0 0.5rem}.sc-smoothly-notification-h>smoothly-trigger.sc-smoothly-notification{font-size:0.7em;position:absolute;right:0}";const yh=uh;const bh=class{constructor(e){t(this,e);this.remove=o(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=undefined;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(s,{key:"7c845d41e00adf4dcaae082e75dc602fbad208da",color:this.properties[0],fill:"solid"},this.closable&&e("smoothly-trigger",{key:"4ba34762185e7f145ca7220ff7a93e8139601caf",fill:"clear",name:"close"},e("smoothly-icon",{key:"a01ea1020f051a238299b6082d7f9513582b437d",name:"close-circle-outline"})),e("span",{key:"750ba5c476f6b4261f994fc5c3355e4a86127be3",class:this.icon?"icon":"clean"},this.icon&&e("smoothly-icon",{key:"ba67d3bf5712d9693c66ddee9a66da24521c7d60",name:this.properties[1]}),e("p",{key:"58b2e4f5ae440f81332125276bb6797dbed026d6"},this.notice.message)))}static get watchers(){return{notice:["onUpdatedNotice"]}}};bh.style=yh;const fh=".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 ph=fh;const gh=class{constructor(e){t(this,e);this.icon=false;this.notices=[]}onNotice(t){this.notices=[...this.notices,t.detail]}onRemove(t){this.notices=[...this.notices.filter((e=>e!=t.detail))]}render(){return e(s,{key:"c3f5493e09550b6c51e8a4a5d79e879213177971"},e("slot",{key:"031af69c7df7e8ec52665912c005603ef19e607c"}),e("aside",{key:"b373e41f80802cad42a1893ddb4cdcc11767d0d9"},this.notices.map((t=>e("smoothly-notification",{notice:t,icon:this.icon})))))}};gh.style=ph;const kh="[hidden].sc-smoothly-spinner-h{display:none}.sc-smoothly-spinner-h{cursor:wait;--spinner-time:1.4s;--spinner-color:var(--smoothly-color-contrast);--spinner-background:var(--smoothly-color);--spinner-background-opacity:var(--smoothly-semitransparent, 0.8);display:block;stroke:rgb(var(--spinner-color));background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}.sc-smoothly-spinner-h:not([overlay]){width:var(--spinner-size);height:var(--spinner-size)}[overlay].sc-smoothly-spinner-h{position:absolute;inset:0;width:100%;height:100%;z-index:4;background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}[color].sc-smoothly-spinner-h:not([overlay]),[color][overlay].sc-smoothly-spinner-h{background-color:rgba(var(--spinner-background), var(--spinner-background-opacity));stroke:rgb(var(--spinner-color))}[overlay].sc-smoothly-spinner-h>svg.sc-smoothly-spinner{position:absolute;width:var(--spinner-size);left:calc(50% - var(--spinner-size) / 2);top:calc(50% - var(--spinner-size) / 2)}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner{animation:SPIN-SVG var(--spinner-time) linear infinite}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner>circle.sc-smoothly-spinner{transform-origin:center;animation:SPIN-CIRCLE var(--spinner-time) 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 vh=kh;const wh=class{constructor(e){t(this,e);this.size="large";this.overlay=undefined}render(){const t=this.size=="large"?6:this.size=="medium"?8:this.size=="icon"?8:12;return e(s,{key:"ad927ab405fb8e1d9f65754de12159074f4674e4",style:{"--spinner-size":this.size=="large"?"5em":this.size=="medium"?"3em":this.size=="icon"?"1.8em":"1.2em"}},e("svg",{key:"c40d7dc9441ded52ef098365baf77870b110f757",class:"spinner",viewBox:`0 0 ${60+t} ${60+t}`,xmlns:"http://www.w3.org/2000/svg"},e("circle",{key:"8653e85654b023d560baaef3c094da84eac870e1",class:"path",fill:"none","stroke-width":t,"stroke-linecap":"round",cx:`${30+t/2}`,cy:`${30+t/2}`,r:"30"})))}};wh.style=vh;const xh=".sc-smoothly-summary-h{display:grid;grid-template-columns:auto 1fr;column-gap:0.3rem}.sc-smoothly-summary-h>details.sc-smoothly-summary{display:contents}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary{display:grid;grid-template-columns:subgrid;grid-column:1/-1;list-style:none;align-items:center;cursor:pointer}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transition:transform 0.2s, opacity 0.1s;opacity:0.3}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary:hover>smoothly-icon.sc-smoothly-summary{opacity:1}.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.sc-smoothly-summary-s>[slot=content]{grid-column:2}@media (prefers-reduced-motion){.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transition:none}}@supports selector(details::details-content){.sc-smoothly-summary-h>details.sc-smoothly-summary::details-content{grid-column:2}}";const Sh=xh;const Ch=class{constructor(e){t(this,e);this.smoothlySummaryOpen=o(this,"smoothlySummaryOpen",7);this.inputs={};this.open=false;this.color=undefined;this.fill="solid";this.size="tiny"}async toggleHandler(t){if(t.target instanceof HTMLDetailsElement){this.open=t.target.open;this.smoothlySummaryOpen.emit(this.open);this.open?await Promise.all(Object.values(this.inputs).map((t=>t.register()))):await Promise.all(Object.values(this.inputs).map((t=>t.unregister())))}}onInputLoad(t){if(cr.Element.is(t.target)){this.inputs[t.target.name]=t.target;if(!this.open)t.stopPropagation()}}render(){return e("details",{key:"867e247e3c2b27f03fe3d8d79ddccd2a4a24bd2a",onToggle:t=>this.toggleHandler(t),open:this.open},e("summary",{key:"302c2da5ca9acd9b7b1d0500f7cd449d5c0363b9"},e("smoothly-icon",{key:"d8f86b4a3a12ccb790a9d00269501d8f427eafcb",name:"caret-forward",color:this.color,fill:this.fill,size:this.size}),e("slot",{key:"b6746b271026ed27921a810b9adcc30a5d139a57",name:"summary"})),e("slot",{key:"81118cd7721c2ed5294eabb32c0fe819c423d9e0",name:"content"}))}};Ch.style=Sh;const zh=".sc-smoothly-tab-h{display:contents;--line-width:3px}.sc-smoothly-tab-h>div.sc-smoothly-tab:first-child{grid-column:span 1;background-color:transparent;border-bottom-color:rgb(var(--smoothly-default-shade));border-bottom-width:var(--line-width);border-bottom-style:solid}.sc-smoothly-tab-h>div.sc-smoothly-tab:first-child>label.sc-smoothly-tab{display:block;padding:.5rem;width:fit-content;margin:auto;cursor:pointer}[open].sc-smoothly-tab-h>div.sc-smoothly-tab:first-child>label.sc-smoothly-tab{border-bottom:var(--line-width) solid rgb(var(--smoothly-primary-color));margin-bottom:calc(-1 * var(--line-width));position:relative}.sc-smoothly-tab-h>div.sc-smoothly-tab:nth-child(2){grid-row:2 / 3;grid-column:1 / -1}";const jh=zh;const _h=class{constructor(e){t(this,e);this.smoothlyTabOpen=o(this,"smoothlyTabOpen",7);this.smoothlyTabLoad=o(this,"smoothlyTabLoad",7);this.inputs={};this.label=undefined;this.open=undefined}async openHandler(){if(this.open)this.smoothlyTabOpen.emit(this.label);this.open?await Promise.all(Object.values(this.inputs).map((t=>t.register()))):await Promise.all(Object.values(this.inputs).map((t=>t.unregister())))}onClick(){this.open=true}connectedCallback(){this.smoothlyTabLoad.emit()}async componentDidLoad(){await this.openHandler()}onInputLoad(t){if(cr.Element.is(t.target)){this.inputs[t.target.name]=t.target;if(!this.open)t.stopPropagation()}}render(){return e(s,{key:"cf40ac0574fdd7f01bc314ae73fadba15bfbe85b"},e("div",{key:"4bc51b1667b0e5e9d859e9ee56cb60e595d3834b"},e("label",{key:"82086748d110f0b960196cc23c6293926e136edf"},this.label)),e("div",{key:"e82a249814fda484771336d830f5ed2b63205da9",hidden:!this.open},e("slot",{key:"3b57b209692f6a98d826c53154ae98e8a6201dee"})))}static get watchers(){return{open:["openHandler"]}}};_h.style=jh;const Ih=".sc-smoothly-table-h{display:grid;grid-template-columns:repeat(var(--columns), auto);color:rgb(var(--smoothly-table-foreground));stroke:rgb(var(--smoothly-table-foreground));fill:rgb(var(--smoothly-table-foreground))}";const Th=Ih;const Oh=class{constructor(e){t(this,e);this.columns=1}smoothlyTableExpandableRowChange(t){t.stopPropagation()}smoothlyTableExpandableCellChange(t){t.stopPropagation()}render(){return e(s,{key:"9910a52a5c47f2aa29f68eb62cd451c4a03b2257",style:{"--columns":this.columns.toString()}},e("slot",{key:"d439efe423eb6dbcc8612ea135710225f036efaa"}))}};Oh.style=Th;const Lh=".sc-smoothly-table-body-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;color:rgb(var(--smoothly-table-foreground));background-color:rgb(var(--smoothly-table-background))}";const Ah=Lh;const Mh=class{constructor(e){t(this,e)}render(){return e(s,{key:"3514090979dca3daa66aa8ea35358229fd0b9065"},e("slot",{key:"9540bae0c43bdeff30d05835c2b039f23c9c458a"}))}};Mh.style=Ah;const Eh=".sc-smoothly-table-cell-h{grid-column:span var(--smoothly-table-cell-span, 1);display:flex;align-items:center;padding:0.3rem 1.1rem;white-space:nowrap}";const Dh=Eh;const $h=class{constructor(e){t(this,e);this.span=1}render(){var t;return e(s,{key:"579536102af161d3f9eb9e00af627344d069b2d9",style:{"--smoothly-table-cell-span":(t=this.span)===null||t===void 0?void 0:t.toString(10)}},e("slot",{key:"716b8539866c94a4e9f57beedc26c0b3398f3830"}))}};$h.style=Dh;const Rh=".sc-smoothly-table-demo-h{display:grid;gap:5rem;box-sizing:border-box;max-width:80rem;width:100%;margin:auto;padding:2rem}";const Ph=Rh;const Fh=class{constructor(e){t(this,e)}render(){return e(s,{key:"f02c9aa3d13d5348511bc42671c77fe88473618e"},e("smoothly-table-demo-filler-row",{key:"57b9f89eba6c6a93cfea05e753646a08ec5999d1"}),e("smoothly-table-demo-group",{key:"8bef227a7c5e4c4b3094c1ec04393909b22fdca9"}),e("smoothly-table-demo-colspan",{key:"2f4d90087abedaa28c03d535835f92b60f596241"}),e("smoothly-table-demo-simple",{key:"c518a151a2d43c0377bd4d9d94f85497bb73c1ec"}),e("smoothly-table-demo-nested",{key:"4ce6c41b94062d9dfea5b1730cdda6e9a87391a6"}),e("smoothly-table-demo-filtered",{key:"4a7901a241a00affa343c593c477509776596735"}))}};Fh.style=Ph;const Hh=".sc-smoothly-table-demo-colspan-h{display:block}.sc-smoothly-table-demo-colspan-h smoothly-display.sc-smoothly-table-demo-colspan{display:inline}";const Nh=Hh;const Yh=class{constructor(e){t(this,e)}render(){return e(s,{key:"9f2e3eb9e4d95cd8230e6fb82791d5d0c6012b53"},e("smoothly-table",{key:"f74d01b7f0160f4b23424ffdb8fa6b7b44d9fedd",columns:3},e("smoothly-table-head",{key:"4a53bd44d03ef7a46a46a85bd39af45b69456f59"},e("smoothly-table-row",{key:"1823ff3900ae5b940aacafa8f1b610b51e4adaa4"},e("smoothly-table-cell",{key:"c5c75b7295bd895df50f12fed08995265ffbfbbb"},"Date"),e("smoothly-table-cell",{key:"79bbe92adfea579806f89da74bff195092a1e85b"},"Skip"),e("smoothly-table-cell",{key:"c8541523b82dc0e447ab67b52ab66e15f655bf16"},"Total"))),e("smoothly-table-body",{key:"7c924ca900b3d482b340d3cbb5b461cc0371dc45"},e("smoothly-table-row",{key:"73845881085f1dba7afb783d6ec9eeea860df09f"},e("smoothly-table-cell",{key:"33c011cd65a3cbed12dc95372b3cc8321861e2c8",span:2},e("smoothly-display",{key:"d35fb76e50566c42e4ae7834d056ec7c3fd19651",type:"date",value:"2024-01-01"})),e("smoothly-table-cell",{key:"34b5085f8162964c3b5a690704a28d57ba98c507"},e("smoothly-display",{key:"cf24a3b830e3f0e4e57b8c0ece0b8d639c11fc82",type:"price",value:120,currency:"EUR"}))),e("smoothly-table-row",{key:"2a4f9a805b0141475f0f56305b68babfdbe99364"},e("smoothly-table-expandable-cell",{key:"1e37cefbe785ecc65d5cec5370d8f1ec8ae155bc",span:2},e("smoothly-display",{key:"16a398443bf00001d9302a106708a33739138cef",type:"date",value:"2024-01-02"}),e("smoothly-lazy",{key:"c872fac48a23e9245817e020bbf119f10abb5a87",slot:"detail",content:e("smoothly-display",{type:"date-time",value:"2024-01-02T13:37:00.000Z"})})),e("smoothly-table-expandable-cell",{key:"a0619681740d615b3638b0c1381868fd876d7b96"},e("smoothly-display",{key:"9b983efcc92fe95fa83b691ae129f4c81ec27566",type:"price",value:220,currency:"EUR"}),e("smoothly-lazy",{key:"c066cb080f4938384a01ec61b0d8660fc4f74267",slot:"detail",content:e("span",null,e("smoothly-display",{type:"price",value:120,currency:"EUR"})," + ",e("smoothly-display",{type:"price",value:100,currency:"EUR"}))}))),e("smoothly-table-row",{key:"b50830acc0c012b28d177b54cacc50f8bd4bfb1e"},e("smoothly-table-cell",{key:"ce9db98b833a2e09ee94bfad3582c0d5d107d9f5"},e("smoothly-display",{key:"5770b3138473dfd7fab6ec400f67250ac6b671f0",type:"date",value:"2024-01-02"})),e("smoothly-table-cell",{key:"c9f828236815c213bb2e78f989f1a484f7fd5a26"},"Not Skipped"),e("smoothly-table-cell",{key:"ddd50ffd161dd24d9196e6760fcd9e4bfce003c6"},e("smoothly-display",{key:"30b22f99777dcfb88cdb6420b718c45f709b2db5",type:"price",value:320,currency:"EUR"}))))))}};Yh.style=Nh;const Uh=".sc-smoothly-table-demo-filler-row-h{display:block}.sc-smoothly-table-demo-filler-row-h>smoothly-display.sc-smoothly-table-demo-filler-row{font-size:2em}.sc-smoothly-table-demo-filler-row-h>*.sc-smoothly-table-demo-filler-row{margin-bottom:2rem}";const Wh=Uh;const Bh=class{constructor(e){t(this,e);this.cats=[]}async componentDidLoad(){window.setTimeout((()=>{this.cats=undefined}),3e3)}render(){return e(s,{key:"4bfc0a1cdf124c7e8b9e139cea9fb1d40a698977"},e("smoothly-display",{key:"b4ecca1026d3f3c0d5fd964b0e6e668f068fd4de",type:"text",value:"Filler row"}),e("smoothly-table",{key:"aa373236eada287cf36872a8309b46864cd8a23e",color:"primary",columns:4},e("smoothly-table-head",{key:"0ab77571d777d6e808eaed27304af683dc0ae7ce"},e("smoothly-table-row",{key:"5a615f3b3dfbb0c3c2627cb5fc93643931adebf3"},e("smoothly-table-cell",{key:"c874d318c92a76a6eca2050cde288ac99c6aa3de"},"Breed"),e("smoothly-table-cell",{key:"8325696db18f5c147f6dce7154bfb5f328557fbe"},"Country"),e("smoothly-table-cell",{key:"7bbb2ab808a0a51dbd00a4b0cd8b4e16a4901fc5"},"Coat"),e("smoothly-table-cell",{key:"a26e3b609437a4bb89485b02cfca289beba1c427"},"Origin"))),e("smoothly-table-body",{key:"e3505ea86686e84fd19a3bd054193e02a879396d"},this.cats===undefined?e("smoothly-table-filler-row",null,"No data to display"):this.cats.length===0?e("smoothly-table-filler-row",null,e("smoothly-spinner",{style:{margin:"auto"},color:"default",size:"small"})):this.cats.map((t=>e("smoothly-table-row",null,e("smoothly-table-cell",null,t.breed),e("smoothly-table-cell",null,t.country),e("smoothly-table-cell",null,t.coat),e("smoothly-table-cell",null,t.origin)))))))}};Bh.style=Wh;var Vh=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 Gh=undefined&&undefined.__classPrivateFieldSet||function(t,e,o,s,i){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(t,o):i?i.value=o:e.set(t,o),o};var Kh;class Zh{get selected(){var t;return Gh(this,Kh,(t=Vh(this,Kh,"f"))!==null&&t!==void 0?t:Object.values(this.data),"f")}constructor(t,e={}){this.key=t;this.data=e;Kh.set(this,void 0)}handle(t){var e;return new Zh(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,i;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[(i=(s=t[this.key])===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""]})}static create(t){return new Zh(t)}}Kh=new WeakMap;const qh='.sc-smoothly-table-demo-filtered-h{display:grid;grid-template-columns:auto auto;grid-template-areas:"header filter"\n\t\t"main main";margin-bottom:50em}.sc-smoothly-table-demo-filtered-h>smoothly-display.sc-smoothly-table-demo-filtered{font-size:2em;grid-area:header}.sc-smoothly-table-demo-filtered-h>smoothly-filter.sc-smoothly-table-demo-filtered{margin-left:auto;grid-area:filter;height:fit-content}.sc-smoothly-table-demo-filtered-h>*.sc-smoothly-table-demo-filtered{margin-bottom:2rem;grid-area:main}.sc-smoothly-table-demo-filtered-h>smoothly-table.sc-smoothly-table-demo-filtered{grid-template-columns:min-content repeat(calc(var(--columns) - 1), auto)}smoothly-table.sc-smoothly-table-demo-filtered>smoothly-table-row.sc-smoothly-table-demo-filtered>smoothly-table-cell.sc-smoothly-table-demo-filtered:nth-of-type(2),.sc-smoothly-table-demo-filtered-h>smoothly-table.sc-smoothly-table-demo-filtered>smoothly-table-head.sc-smoothly-table-demo-filtered>smoothly-table-row.sc-smoothly-table-demo-filtered>smoothly-table-cell.sc-smoothly-table-demo-filtered:nth-of-type(4){justify-content:end}';const Xh=qh;const Jh=class{constructor(e){t(this,e);this.criteria={};this.cats=undefined;this.selector=Zh.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 er("https://catfact.ninja/breeds?limit=15");this.cats=t.status==200&&(await t.body).data.map((t=>{var e,o;return Object.assign(Object.assign({},t),{price:[...t.breed].reduce(((t,e)=>t+e.charCodeAt(0)),0),nested:Object.assign(Object.assign({},t),{names:(e=Qh[t.country])!==null&&e!==void 0?e:[]}),names:(o=Qh[t.country])!==null&&o!==void 0?o:[]})}))}render(){const t=this.cats&&Jn(this.criteria,this.cats);return e(s,{key:"8d55f782a5df458d13a02d59a0c204037cb084d3"},e("smoothly-display",{key:"b031a5503b68b070fbe0fa1e0a7973104bdd66b9",type:"text",value:"Filtered"}),e("smoothly-filter",{key:"5114ba3045e6a38813a4dda29ac3303f001af64e"},e("smoothly-filter-toggle",{key:"845ee58c9a0ce4fa8ff8c1e4114de768ac175fac",properties:{["nested.pattern"]:"Ticked",breed:""},icon:"add",toolTip:"Nested Ticked",slot:"bar"}),e("smoothly-filter-toggle",{key:"7c8e98ac1bfc7537a9aa6412255b34a54fc60de3",properties:{pattern:"Ticked",breed:""},icon:"paw",toolTip:"Ticked cats",slot:"bar"}),e("smoothly-filter-toggle",{key:"f14605713a881dfdc90e7fcac7bd7a550b06f587",properties:{breed:"Bombay",pattern:"Solid"},icon:"radio-button-on",toolTip:"Solid bombay cats",slot:"bar"}),e("smoothly-filter-toggle",{key:"2183ee1b6762ebd5ccaff93f0c1848a6c4cac5c7",properties:{pattern:"Colorpoint"},not:true,active:true,icon:"alert",toolTip:"Colored cats",slot:"bar"}),e("smoothly-filter-select",{key:"266ad69988175d612400edfcfb8dcfd7af16670b",menuHeight:"5items",label:"coat",property:"nested.coat",slot:"bar",multiple:false},this.cats&&Object.values(this.cats.reduce(((t,e)=>e.nested?Object.assign(Object.assign({},t),{[e.nested.coat]:e}):t),{})).map((t=>{var o;return((o=t.nested)===null||o===void 0?void 0:o.coat)&&e("smoothly-item",{slot:"items",value:t.nested.coat},t.nested.coat)}))),e("div",{key:"801474cee57610ea30e72193425c88d8de454e4e",slot:"detail"},e("smoothly-form",{key:"752f211850ac2e71727e5a7b2021f1bbcf7d68b3",looks:"border"},e("smoothly-filter-select",{key:"e9ecc6a81dd93740bb29c31d0916b32191317d77",menuHeight:"5items",label:"coat",property:"nested.coat",multiple:true},this.cats&&Object.values(this.cats.reduce(((t,e)=>e.nested?Object.assign(Object.assign({},t),{[e.nested.coat]:e}):t),{})).map((t=>{var o;return((o=t.nested)===null||o===void 0?void 0:o.coat)&&e("smoothly-item",{slot:"items",value:t.nested.coat},t.nested.coat)}))),e("smoothly-filter-select",{key:"e3ccd5e3248302430f151cb7190b82f6013e6c65",menuHeight:"5items",label:"breed",property:"breed",multiple:false},this.cats&&Object.values(this.cats.reduce(((t,e)=>e.breed?Object.assign(Object.assign({},t),{[e.breed]:e}):t),{})).map((t=>t.breed&&e("smoothly-item",{slot:"items",value:t.breed},t.breed)))),e("smoothly-filter-select",{key:"72505b6a1afe108c13b52aef6ab2874bb5c97782",menuHeight:"5items",label:"names",property:"nested.names",multiple:true,type:"array"},Object.keys(Object.values(Qh).flat().reduce(((t,e)=>Object.assign(Object.assign({},t),{[e]:true})),{})).flatMap((t=>e("smoothly-item",{slot:"items",value:t},t)))),e("smoothly-filter-input",{key:"6b5fc795a759f451ff4e46fad05c108ed5b47fc5",label:"Coat",property:"coat"}),e("smoothly-filter-input",{key:"53086231e9056ad86984bd63c1208b8e1df5ef15",label:"Nested Coat",property:"nested.coat"})))),!t?"Failed to load data.":e("smoothly-table",{columns:4},e("smoothly-table-head",null,e("smoothly-table-row",null,e("smoothly-table-cell",null,this.selector.render(t)),e("smoothly-table-cell",null,"Breed"),e("smoothly-table-cell",null,"Coat"),e("smoothly-table-cell",null,"Price"))),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)),e("smoothly-table-cell",null,e("smoothly-display",{type:"price",value:t.price,currency:"SEK"}))))),e("smoothly-table-foot",null,e("smoothly-table-row",null,e("smoothly-table-cell",{span:3},e("smoothly-display",{type:"text",value:`Selected: ${this.selector.selected.length!=0?this.selector.selected.length:t?t.length:"?"}`}))))))}};const Qh={"United States":["bill","bob","brad","joe","molly"],Australia:["nigel","bruce","sheila","brad","shane"],"United Kingdom":["nigel","james","molly","shane","bob"],Greece:["dionysius","demetrius","polikarpos"]};Jh.style=Xh;const td=".sc-smoothly-table-demo-group-h{display:block}.sc-smoothly-table-demo-group-h smoothly-display.sc-smoothly-table-demo-group{display:inline}.sc-smoothly-table-demo-group-h fake-cell-wrapper.span-2.sc-smoothly-table-demo-group{grid-column:span 2}.sc-smoothly-table-demo-group-h>smoothly-display.sc-smoothly-table-demo-group{display:inherit;font-size:2em}.sc-smoothly-table-demo-group-h>*.sc-smoothly-table-demo-group{margin-bottom:2rem}.sc-smoothly-table-demo-group-h fake-group-wrapper.sc-smoothly-table-demo-group,.sc-smoothly-table-demo-group-h fake-row-wrapper.sc-smoothly-table-demo-group,.sc-smoothly-table-demo-group-h fake-expandable-row-wrapper.sc-smoothly-table-demo-group{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}.sc-smoothly-table-demo-group-h fake-cell-wrapper.sc-smoothly-table-demo-group{grid-column:span 1;display:block}.sc-smoothly-table-demo-group-h fake-expandable-cell-wrapper.sc-smoothly-table-demo-group{display:contents}";const ed=td;const od=class{constructor(e){t(this,e)}render(){return e(s,{key:"ab17a5de6350253218129e9ef1a901afca119cb9"},e("smoothly-display",{key:"241b4f2a5d975758716c86f4a9e607a603deda71",type:"text",value:"Group"}),e("smoothly-table",{key:"862a1f6f51b60bdf7180a23ae2e5e8ba756da733",color:"primary",columns:2},e("smoothly-table-head",{key:"fd02d23e191fa245f87fba4ad4d6bca4589568d9"},e("smoothly-table-row",{key:"e680167eb05b171558d9eaa020078890e21b4417"},e("smoothly-table-cell",{key:"6b52630d199801fed460f8ec4006ed99917b55b0"},"Date"),e("smoothly-table-cell",{key:"257ab1871963edba4c508b9239d91fdc47a4188c"},"Total"))),e("smoothly-table-body",{key:"e105bea8ba10cbc7f28ff60276e905905e6a4f61"},e("smoothly-table-row-group",{key:"cfb10b12fa24d5f3503efc04cb630ed6f062426d",align:true},e("smoothly-display",{key:"1eb844826cb1b1acf2ac13aa7e042a430d930cfd",slot:"start",type:"date",value:"2024-01-01"}),e("smoothly-display",{key:"f80a2845de1d28e0827cc41f5d1060749c4ec953",slot:"end",type:"price",currency:"EUR",value:510}),e("smoothly-table-expandable-row",{key:"4efa1e4899770886d3a227487f50c3584555a8d0"},e("smoothly-table-cell",{key:"547add4a1a36ed0d969caa0c066d564cb44e2748"},e("smoothly-display",{key:"bb67befeef44104cbc3bf02c7880ff58387f2891",type:"date-time",value:"2024-01-01T01:37:00.000Z"})),e("smoothly-table-cell",{key:"6c9442e995afeba0d129e32c7a32744af53c9725"},e("smoothly-display",{key:"2d310c3f5a84ccad1d17c457dfb74b9d7e1bd9fc",type:"price",currency:"EUR",value:250})),e("smoothly-lazy",{key:"6f978c968c43d7315509241291a2a955ebbe5539",slot:"detail",content:e(a,null,"Details of 2024-01-01T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"492e93fa2821b38ab1f0ce305ea9fd65f8781e62"},e("smoothly-table-cell",{key:"68dd180e3c2954bf50ec903b3809304b4300dac8"},e("smoothly-display",{key:"172525308c6323f08391250970f83648f295f928",type:"date-time",value:"2024-01-01T13:37:00.000Z"})),e("smoothly-table-cell",{key:"102655f27f8fff0e563c1b9c4f91a7a5180517ed"},e("smoothly-display",{key:"a292efb6a9913c52a09669531f1ae420dee9bafe",type:"price",currency:"EUR",value:260})),e("smoothly-lazy",{key:"2229625dc6667273d75e5bab7e37c28353ff55c1",slot:"detail",content:e(a,null,"Details of 2024-01-01T13:37:00.000Z")}))),e("smoothly-table-row",{key:"2f6a9d343d2b8faeb54591568fca534491e09624"},e("smoothly-table-cell",{key:"d28918b88277bab63ce3ac9e0c2ea2952fdc149f"},e("smoothly-display",{key:"57254b712a9af72bd17db942d8c67b550f4bc249",type:"date",value:"2024-01-02"})),e("smoothly-table-cell",{key:"ce6078b20e8ad3a60a2c7487b3c10033721c71e7"},e("smoothly-display",{key:"59811e12b22df83a8b9f96743592aa3f0660c06a",type:"price",currency:"EUR",value:130}))),e("smoothly-table-row-group",{key:"794c6bd76c772c87610ddaf77da871e28b6fa3ce"},e("smoothly-display",{key:"4abdc694438211eca8549e931f62db5078e13d4f",slot:"start",type:"date",value:"2024-01-03"}),e("smoothly-display",{key:"4d9af1d234da7b5489714cb6e0c2fa368e88e39e",slot:"end",type:"price",currency:"EUR",value:720}),e("smoothly-table-expandable-row",{key:"a0866cf4f36b6e50e600d446ff6d101ebd5164fd"},e("smoothly-table-cell",{key:"d5f7ad1ff62d6b1002a3b191352fc3bf4cd4945c"},e("smoothly-display",{key:"e0066e67a6de844cd3e61d0898b216c14664dc65",type:"date-time",value:"2024-01-03T01:37:00.000Z"})),e("smoothly-table-cell",{key:"2de722ca6f420151fc220421e71e6ae4f76d63d6"},e("smoothly-display",{key:"83f90ecb3d641449e5abceaf5ea70dcc863ce6ad",type:"price",currency:"EUR",value:320})),e("smoothly-lazy",{key:"cab86fe7bdf6a750ab4acdf9f329829b8ee0f885",slot:"detail",content:e(a,null,"Details of 2024-01-03T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"737a4b2c40839d199221bc63185b59668a081428"},e("smoothly-table-cell",{key:"1aab121795680be1745e57dc057d0b3d110679c7"},e("smoothly-display",{key:"ca32ff5340a004a4c2c44bf321ec47e7857a144c",type:"date-time",value:"2024-01-03T13:37:00.000Z"})),e("smoothly-table-cell",{key:"340e08d0a9bc1e9d483215e9bda2c9c20183fff3"},e("smoothly-display",{key:"017cdd7cf3ac6aa73b2419abbd10484223ff8c93",type:"price",currency:"EUR",value:400})),e("smoothly-lazy",{key:"7e924702b8fd7ab2485fbeeca10c37851a415f62",slot:"detail",content:e(a,null,"Details of 2024-01-03T13:37:00.000Z")}))),e("smoothly-table-row-group",{key:"0a71b3746078226007b57f1ef91a2cdd29a22dad"},e("smoothly-display",{key:"6e179b5eddbcf3ba6effb11e02c0fd0c414a2f89",slot:"start",type:"date",value:"2024-01-04"}),e("smoothly-table-expandable-row",{key:"05dcfe20a4b3f6e312d2a7f487690b31190d0191"},e("smoothly-table-cell",{key:"9ec721a6d7ef609b489c9a9c67ef9013f337d187"},e("smoothly-display",{key:"bbf1daa961b4fa73148bab8bd0cb843f34aecafc",type:"date-time",value:"2024-01-04T01:37:00.000Z"})),e("smoothly-table-cell",{key:"9bf0559b4456306ca7547011a93ea009dfa5a47a"},e("smoothly-display",{key:"a505d472404ec220b78837d01fa9c48ab479fbf1",type:"price",currency:"EUR",value:320})),e("smoothly-lazy",{key:"07defc9828ac26cda563bc5fab971e95e5edb7cb",slot:"detail",content:e(a,null,"Details of 2024-01-04T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"b14b8ddb71431247dbaf2fa0a9a5bfa519773850"},e("smoothly-table-cell",{key:"15f885b73e9b55da373fc4ba2a9f2ec26df7a1ad"},e("smoothly-display",{key:"f837ee876510ded9cdc95fb1f319ad3f0d033066",type:"date-time",value:"2024-01-04T13:37:00.000Z"})),e("smoothly-table-cell",{key:"24ee4da95e2f6567e84979bf550ba12383f8bbc7"},e("smoothly-display",{key:"0c238ff9e955c702396b5f55362aa2b9b870e623",type:"price",currency:"EUR",value:400})),e("smoothly-lazy",{key:"4ddb314c99c1fcd10e0dfd624e15c705194d3999",slot:"detail",content:e(a,null,"Details of 2024-01-04T13:37:00.000Z")}))),e("smoothly-table-row-group",{key:"76c28c274cbe1d43976ce8bf2f68c6a7c38cfb20"},e("smoothly-display",{key:"b906ac9acb1c046c0e180d99cb5f4d75ccb063aa",slot:"end",type:"price",currency:"EUR",value:720}),e("smoothly-table-expandable-row",{key:"1a1cfdb1ed8c2fe215346bba93775813853aa082"},e("smoothly-table-cell",{key:"5d093841d54189dff2088e417a0df853af75fd9e"},e("smoothly-display",{key:"85c9271cc6eeb69e1e8a9b2e99baaecec0d24e6e",type:"date-time",value:"2024-01-05T01:37:00.000Z"})),e("smoothly-table-cell",{key:"d0207e188bfc3fcae67208cb54313e37b39bcae4"},e("smoothly-display",{key:"fda474c50fc46b3b1f9e3a765b83859082367204",type:"price",currency:"EUR",value:320})),e("smoothly-lazy",{key:"a6212b95f076d12ab0f70d1ce10170647d3dac5f",slot:"detail",content:e(a,null,"Details of 2024-01-05T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"2e3631f82c36b66f801d36ac420a9972121626e2"},e("smoothly-table-cell",{key:"83e96169bc9e24188f64356e8ce2909ea93705a5"},e("smoothly-display",{key:"fac1debee6f460708486d20a44da4783f7ef798d",type:"date-time",value:"2024-01-05T13:37:00.000Z"})),e("smoothly-table-cell",{key:"acc2178f2d34df95125bb8a6591f3eeac8637c97"},e("smoothly-display",{key:"2ba249b1cb1f3fa8e0f19d660bf555bfc2023934",type:"price",currency:"EUR",value:400})),e("smoothly-lazy",{key:"e2325d894438f3283173ed8b9ed9a5ad7fe1f766",slot:"detail",content:e(a,null,"Details of 2024-01-05T13:37:00.000Z")}))),e("fake-group-wrapper",{key:"6f03088f762e762bca3aaf5c9c2e0db272ea859b"},e("smoothly-table-row-group",{key:"8588a6eb1d4ae426898fdaac653e45053488f977"},e("smoothly-display",{key:"e74e5318cf74c0a3baf0af70a603238dd0aea2bc",slot:"start",type:"date",value:"2024-01-06"}),e("smoothly-display",{key:"37bbc408b2e023340c64ee2184efb3414a8ed78a",slot:"end",type:"price",currency:"EUR",value:720}),e("fake-row-wrapper",{key:"aa2b9dcb132df48feba44e8e645bb5f9d866d700"},e("smoothly-table-row",{key:"3fb8882c74c28e9f52bb812ecf95fc72788f4e28"},e("fake-cell-wrapper",{key:"65a11fedd55768fa7a2bfde52e35752f20bf941c"},e("smoothly-table-cell",{key:"3abc35523c899732331481fd7a533499647e9e11"},e("smoothly-display",{key:"15d61e95a487e711bb423a71dd687b9c8ac99b3b",type:"date",value:"2024-01-02"}))),e("fake-expandable-cell-wrapper",{key:"a5635badb923e122f6b539825695f23f07784ee5"},e("smoothly-table-expandable-cell",{key:"92596731648f02e90a6d3393f5b9154358590fc5"},e("smoothly-display",{key:"946cce4395db9b1db2994fbb898dabcf9587c445",type:"price",currency:"EUR",value:130}),e("smoothly-lazy",{key:"593551e1a00a7367db227a1b165b01325d0bbfe2",slot:"detail",content:e("span",null,e("smoothly-display",{type:"price",value:100,currency:"EUR"})," + ",e("smoothly-display",{type:"price",value:30,currency:"EUR"}))}))))),e("fake-expandable-row-wrapper",{key:"c3b8371c6f75c763d2f7983f9d6814cb6fda7b2b"},e("smoothly-table-expandable-row",{key:"f368d9a8964cd3491a6c3b15fee582316d93321b"},e("fake-cell-wrapper",{key:"e53b542c79a919162a5663937ea215f5ade7abe7",class:"span-2"},e("smoothly-table-cell",{key:"4d3d43c2fbcb74b8ab0ddc290d31eddf6eb3adaf",span:2},e("smoothly-display",{key:"e29d593e033eef6aa308729c115d6131c57527f8",type:"date",value:"2024-01-07"}))),e("smoothly-lazy",{key:"8efb4c4255338d4a042909417b6bdeee312a1395",slot:"detail",content:e("smoothly-display",{type:"date-time",value:"2024-01-07T13:37:00.000Z"})}))))),e("smoothly-table-row-group",{key:"b6d86bb92d60916bd58e1eb3d6eee104cfbe95e3"},e("smoothly-display",{key:"7f9f43eb7f95a2671a83bda52957c69b286881d3",slot:"start",type:"date",value:"2024-01-08"}),e("smoothly-display",{key:"5c7cac6977f26a51ad35fdcbf4a70a0aefa0d4cf",slot:"end",type:"price",currency:"EUR",value:720})))))}};od.style=ed;const sd=[{id:"667d329f9f4934ecdc4bf9eb",balance:1450.03,age:35,eyeColor:"blue",name:"Glenda Ballard",gender:"female",company:"ZENTIA",registered:"2022-06-13T12:39:15.908",friends:[{id:0,name:"Manning Hunter",age:30,balance:1922.25},{id:1,name:"Mcmillan Oliver",age:32,balance:2440.53},{id:2,name:"Graham Garza",age:33,balance:3712.59},{id:3,name:"Gabrielle Neal",age:36,balance:2519.25},{id:4,name:"Dotson Duncan",age:29,balance:3274.11}]},{id:"667d329f4e07097167ef92a2",balance:2488.91,age:21,eyeColor:"blue",name:"Delaney Haley",gender:"male",company:"COMTOURS",registered:"2018-05-11T08:58:36.197",friends:[{id:0,name:"Elsa Cochran",age:28,balance:2009.45},{id:1,name:"Willis Acevedo",age:33,balance:2198.01},{id:2,name:"Slater Fowler",age:34,balance:2888.16},{id:3,name:"Ashley Wilkerson",age:22,balance:1863.65},{id:4,name:"Ola Lynch",age:23,balance:3649.29}]},{id:"667d329f14a0aeea0d70d5e7",balance:1660.91,age:36,eyeColor:"brown",name:"Riddle Reilly",gender:"male",company:"OPTIQUE",registered:"2016-09-15T09:46:07.962",friends:[{id:0,name:"Hazel Steele",age:33,balance:3129.64},{id:1,name:"Golden Chapman",age:40,balance:2491},{id:2,name:"Solomon Lopez",age:26,balance:1382.71},{id:3,name:"Castro Booth",age:23,balance:1991.6},{id:4,name:"Hernandez Bartlett",age:25,balance:2842.85},{id:5,name:"Lindsay Wagner",age:20,balance:3636.6}]},{id:"667d329f953aaaba19bea98b",balance:1381.34,age:24,eyeColor:"brown",name:"Diana Burns",gender:"female",company:"CODACT",registered:"2023-06-02T09:07:46.478",friends:[{id:0,name:"Tamika Merritt",age:25,balance:2401.06},{id:1,name:"Ballard Buckner",age:36,balance:1986.13},{id:2,name:"Stokes Ramirez",age:25,balance:3521.75},{id:3,name:"Wood Aguirre",age:36,balance:1186.13},{id:4,name:"Sophia Bowen",age:25,balance:2750.95},{id:5,name:"Wilkinson Gordon",age:34,balance:3864.91}]},{id:"667d329f6a753976e21e23b5",balance:3054.74,age:22,eyeColor:"brown",name:"Jackson Burnett",gender:"male",company:"COMCUR",registered:"2019-06-05T09:17:31.312",friends:[{id:0,name:"Atkinson Alston",age:37,balance:1025.72},{id:1,name:"Delia Ford",age:34,balance:3061.87},{id:2,name:"Marylou Hanson",age:33,balance:3255.77},{id:3,name:"Kelly Ray",age:32,balance:3671.73},{id:4,name:"Valdez Weeks",age:38,balance:3911.29},{id:5,name:"Hayes Crawford",age:20,balance:3194.97}]},{id:"667d329fc4805cafac37861e",balance:1173.94,age:20,eyeColor:"green",name:"Stephenson Mcleod",gender:"male",company:"POLARAX",registered:"2015-12-10T07:36:10.267",friends:[{id:0,name:"Kristine Newton",age:26,balance:2713.9},{id:1,name:"Craft Patel",age:40,balance:3822.36},{id:2,name:"Cochran French",age:30,balance:1535.91},{id:3,name:"Bowen Vinson",age:29,balance:2787.01},{id:4,name:"Adrian Ewing",age:21,balance:2319.14},{id:5,name:"Jimmie Mathews",age:31,balance:2869.09},{id:6,name:"Dixon Daugherty",age:24,balance:1496.25}]},{id:"667d329f76318162fe27b208",balance:2977.01,age:24,eyeColor:"blue",name:"Claudette Christensen",gender:"female",company:"PIVITOL",registered:"2021-08-08T07:08:00.936",friends:[{id:0,name:"Parker Lamb",age:36,balance:3409.27},{id:1,name:"Kennedy Bryan",age:34,balance:3904.27},{id:2,name:"Johanna Barton",age:20,balance:3613.79},{id:3,name:"Vazquez Melendez",age:26,balance:3692.31},{id:4,name:"Mendoza Wooten",age:31,balance:2175.64},{id:5,name:"Kelli Hicks",age:21,balance:1326.46},{id:6,name:"Jill Sanchez",age:36,balance:3214.36}]},{id:"667d329ff80a953b7f0a73d2",balance:1993.09,age:20,eyeColor:"green",name:"Buckley Gutierrez",gender:"male",company:"HOUSEDOWN",registered:"2015-04-02T04:53:42.985",friends:[{id:0,name:"Leanne Pennington",age:37,balance:3111.48},{id:1,name:"Juarez Hoover",age:29,balance:2000.62},{id:2,name:"Navarro Mccormick",age:22,balance:3083.93},{id:3,name:"Berry Curry",age:31,balance:3181.41},{id:4,name:"Josefa Howard",age:30,balance:3744.56}]},{id:"667d329f4f53eb59f0512361",balance:2374.56,age:34,eyeColor:"brown",name:"Sallie Mccoy",gender:"female",company:"REALYSIS",registered:"2018-05-11T05:26:36.604",friends:[{id:0,name:"Martina Kirby",age:22,balance:1278.07},{id:1,name:"Macias Lyons",age:20,balance:2991.44},{id:2,name:"Alta Chaney",age:26,balance:1032.71},{id:3,name:"White Manning",age:39,balance:3103.16},{id:4,name:"Mason Rosa",age:31,balance:1384.77},{id:5,name:"Meghan Martin",age:27,balance:1982.09}]},{id:"667d329f8a6cf9319bfdbd30",balance:3220.94,age:23,eyeColor:"blue",name:"Huff Hull",gender:"male",company:"GADTRON",registered:"2023-02-14T01:58:56.938",friends:[{id:0,name:"Rochelle Maldonado",age:28,balance:1548.77},{id:1,name:"Diann Conrad",age:32,balance:1721.33},{id:2,name:"Hope Jarvis",age:38,balance:1265.24},{id:3,name:"Dixie Huffman",age:31,balance:3764.23},{id:4,name:"Erickson Porter",age:27,balance:2958.59},{id:5,name:"Christensen Thomas",age:21,balance:1233.2}]},{id:"667d329f1415ecb1efb216cc",balance:2907.83,age:26,eyeColor:"brown",name:"Hancock Eaton",gender:"male",company:"POLARIUM",registered:"2018-02-25T01:03:11.860",friends:[{id:0,name:"Flynn Gilmore",age:27,balance:2582.57},{id:1,name:"Kline Hickman",age:31,balance:3853.99},{id:2,name:"Hatfield Owens",age:40,balance:2016.57},{id:3,name:"Michael Carson",age:31,balance:1293.03},{id:4,name:"Strickland Lowery",age:23,balance:1367.06},{id:5,name:"Georgia Chavez",age:37,balance:2957.48},{id:6,name:"Alma Berry",age:26,balance:2357.01}]},{id:"667d329f722eb89c82b56dec",balance:1602.02,age:35,eyeColor:"brown",name:"Lorrie Mcpherson",gender:"female",company:"PYRAMIA",registered:"2018-12-07T05:18:34.223",friends:[{id:0,name:"Bridgett Everett",age:37,balance:1438.53},{id:1,name:"Carlene Farley",age:25,balance:1410.54},{id:2,name:"Phoebe Mendez",age:24,balance:1979.36},{id:3,name:"Louella Cox",age:36,balance:3430.55},{id:4,name:"Velez Pugh",age:30,balance:3436.5}]},{id:"667d329ff853efe8c4e0a454",balance:2654.19,age:36,eyeColor:"brown",name:"Luann Jennings",gender:"female",company:"NAXDIS",registered:"2014-02-18T04:25:50.302",friends:[{id:0,name:"Walton Gentry",age:26,balance:1328.43},{id:1,name:"Lucy Koch",age:23,balance:2134.54},{id:2,name:"Toni Meyers",age:31,balance:2572.29},{id:3,name:"Vicki Frost",age:39,balance:3299.36},{id:4,name:"Meadows Baker",age:21,balance:2323.75}]},{id:"667d329f84f3bfbfcc763674",balance:2528.48,age:28,eyeColor:"brown",name:"Michelle Carey",gender:"female",company:"IDEGO",registered:"2016-10-01T04:25:07.187",friends:[{id:0,name:"Roman Sanders",age:40,balance:3551.16},{id:1,name:"Amanda Herman",age:22,balance:3928.02},{id:2,name:"Kay Montgomery",age:26,balance:3241.16},{id:3,name:"Valentine Wilder",age:23,balance:1413.31},{id:4,name:"Brigitte Nixon",age:32,balance:3113.39}]},{id:"667d329f4359ec766055a765",balance:3732.65,age:30,eyeColor:"brown",name:"Beach Maddox",gender:"male",company:"GEEKETRON",registered:"2021-03-24T11:55:31.135",friends:[{id:0,name:"Candy Gibbs",age:20,balance:2602.28},{id:1,name:"Alissa Rosario",age:36,balance:1958.84},{id:2,name:"Imelda Harmon",age:23,balance:3817.79},{id:3,name:"Addie Serrano",age:35,balance:3154.77},{id:4,name:"Jordan Shields",age:26,balance:3566.08}]},{id:"667d329f9ef3817d307e2583",balance:2151.52,age:32,eyeColor:"brown",name:"Whitney Hood",gender:"male",company:"EVENTAGE",registered:"2021-06-17T12:11:56.473",friends:[{id:0,name:"Noel Walsh",age:29,balance:2790.49},{id:1,name:"Barlow Rodriquez",age:35,balance:1664.23},{id:2,name:"Nash Keith",age:23,balance:2285.17},{id:3,name:"Chavez Webster",age:23,balance:3381.55},{id:4,name:"Herminia Chen",age:24,balance:1064.96},{id:5,name:"Susana Glass",age:22,balance:2749.35}]},{id:"667d329f9bd581700cac2dbc",balance:2209.77,age:40,eyeColor:"blue",name:"Tasha Mosley",gender:"female",company:"QUIZKA",registered:"2014-05-11T11:44:55.071",friends:[{id:0,name:"Larsen Wall",age:22,balance:1523.28},{id:1,name:"Holmes Hopkins",age:35,balance:1112.68},{id:2,name:"Giles Espinoza",age:21,balance:2550.95},{id:3,name:"Aimee Rosales",age:26,balance:2195.06},{id:4,name:"Karin Little",age:28,balance:2896.23},{id:5,name:"Angelita Mcfadden",age:25,balance:1051.15}]},{id:"667d329f6e2dbb2002be4b9e",balance:3298.23,age:31,eyeColor:"brown",name:"Schneider Walker",gender:"male",company:"BLEENDOT",registered:"2020-02-11T08:57:29.025",friends:[{id:0,name:"Helena William",age:34,balance:2579.69},{id:1,name:"Silva Ware",age:30,balance:2683.79},{id:2,name:"Enid Oconnor",age:22,balance:1816.46},{id:3,name:"Knowles Goff",age:24,balance:1675.75},{id:4,name:"Carolina Greer",age:29,balance:3337.27}]},{id:"667d329f8c548510c5d4f5ce",balance:2823.51,age:35,eyeColor:"green",name:"Mayo Shepard",gender:"male",company:"KIOSK",registered:"2024-02-24T12:45:57.463",friends:[{id:0,name:"Olga Hester",age:21,balance:3878.21},{id:1,name:"Rogers Sampson",age:23,balance:2669.62},{id:2,name:"Myra Johnson",age:27,balance:3489.32},{id:3,name:"Mcfadden Phillips",age:20,balance:2758.8},{id:4,name:"Park Moody",age:23,balance:3519.08}]},{id:"667d329f6574ada6f090fd54",balance:2631.69,age:40,eyeColor:"blue",name:"Avis Carlson",gender:"female",company:"LINGOAGE",registered:"2016-08-08T08:59:54.752",friends:[{id:0,name:"Mcdonald Dyer",age:25,balance:2262.39},{id:1,name:"Irene Baldwin",age:29,balance:1291.1},{id:2,name:"Rollins Anderson",age:26,balance:1437.04},{id:3,name:"Juliana Larson",age:29,balance:3492.22},{id:4,name:"Michele Gardner",age:20,balance:2003.15},{id:5,name:"Vang Cardenas",age:31,balance:1855.52},{id:6,name:"Puckett Hubbard",age:21,balance:1659.92}]}];const id=".sc-smoothly-table-demo-nested-h{display:block}.sc-smoothly-table-demo-nested-h>smoothly-display.sc-smoothly-table-demo-nested{font-size:2em}.sc-smoothly-table-demo-nested-h>*.sc-smoothly-table-demo-nested{margin-bottom:2rem}";const ad=id;const nd=class{constructor(e){t(this,e)}render(){return e(s,{key:"f7dc608b56f946058e12ed68ea7e90df810f987a"},e("smoothly-display",{key:"358904431eafbb1d627d0fdee7c08086f6153dc6",type:"text",value:"Nested"}),e("smoothly-table",{key:"c2f0330f908bffe60134686ab682c4cd2387248d",color:"primary",columns:8},e("smoothly-table-head",{key:"b1fe6f04435b744f361633a7a887578b933fa1cd"},e("smoothly-table-row",{key:"78e9506a94ad8fdf48e78f9ab62bec3e9d9bb935"},e("smoothly-table-cell",{key:"7a7231af5f81a6eb7ee43349d63f83358103eb3d"},"Id"),e("smoothly-table-cell",{key:"ff3a6cc9c47a64b963b5e40001e88d3069bdbf0c"},"Registered"),e("smoothly-table-cell",{key:"c38b672be9a1365330d07b69054989f5e60ee1c8"},"Name"),e("smoothly-table-cell",{key:"c292d75f64bdc388ff8c264ecbf085e771ce2492"},"Age"),e("smoothly-table-cell",{key:"8365cd3d2247db5520b8e50ea0d0fcd87b382cd6"},"Balance"),e("smoothly-table-cell",{key:"62d413791161883a1e49ee7dff722391e82e5fb3"},"EyeColor"),e("smoothly-table-cell",{key:"49c25aaf48bb22a60746db2ccf645e7036a64ead"},"Gender"),e("smoothly-table-cell",{key:"0788fc296b75856ccc29ed294b4e626492813c5a"},"Company"))),e("smoothly-table-body",{key:"1a0cd70d6e0571c0ab7eb46af0d593f5728a6706"},sd.map((t=>e("smoothly-table-expandable-row",null,e("smoothly-table-demo-nested-inner",{color:"secondary",data:t.friends,slot:"detail"}),e("smoothly-table-cell",null,t.id),e("smoothly-table-cell",null,t.registered),e("smoothly-table-cell",null,t.name),e("smoothly-table-cell",null,t.age),e("smoothly-table-cell",null,t.balance),e("smoothly-table-cell",null,t.eyeColor),e("smoothly-table-cell",null,t.gender),e("smoothly-table-cell",null,t.company))))),e("smoothly-table-foot",{key:"ffd413ef41a90b18d9bc871c7b93f41510dc0509"},e("smoothly-table-row",{key:"eaf3e4be22c78eef4eb41ff9299781fca20496e0"},e("smoothly-table-cell",{key:"afae4894d7f49040746b279f6ce95a3eeb110778"},"Footer Cell"),e("smoothly-table-cell",{key:"c4b6dd203fbe9d891a46eb279188fd1140e6f514"},"Footer Cell")))))}};nd.style=ad;const ld=".sc-smoothly-table-demo-nested-inner-h{display:block;margin:1em auto;width:60%}";const rd=ld;const cd=class{constructor(e){t(this,e);this.data=undefined}render(){var t;return e(s,{key:"5c101d92550729cfde6440bf56e62dfd38aa03c6"},e("smoothly-table",{key:"9412c6c571b7ad4b48f883e30914cdb82a2ab24d",columns:4},e("smoothly-table-head",{key:"8c7348cef6b37f3a44fcdcfe24df87f54ec65144"},e("smoothly-table-row",{key:"0c81c23928a5c3822190d40e855dd86869094a01"},e("smoothly-table-cell",{key:"3ad50370e49f30a997b9549f262dc305e53ff25c"},"Id"),e("smoothly-table-cell",{key:"64e491e442a81d44f04719f9244f28fbe184a91d"},"Name"),e("smoothly-table-cell",{key:"fd80beeaacbd5f32db39deb0eeeaaf3c4fcd5034"},"Age"),e("smoothly-table-cell",{key:"fa5cbb0cfe826bfb09459894a822467a0e7e5ca7"},"Balance"))),e("smoothly-table-body",{key:"cbfc52a2bda400b6dcc2798a152d3b752bb7ce76"},(t=this.data)===null||t===void 0?void 0:t.map((t=>e("smoothly-table-expandable-row",null,e("smoothly-table-cell",null,t.id),e("smoothly-table-cell",null,t.name),e("smoothly-table-cell",null,t.age),e("smoothly-table-cell",null,t.balance)))))))}};cd.style=rd;const hd=".sc-smoothly-table-demo-simple-h{display:block}.sc-smoothly-table-demo-simple-h>smoothly-display.sc-smoothly-table-demo-simple{font-size:2em}.sc-smoothly-table-demo-simple-h>*.sc-smoothly-table-demo-simple{margin-bottom:2rem}";const dd=hd;const md=class{constructor(e){t(this,e)}render(){return e(s,{key:"7a1bac3d2892a466093ba4142113a0c67b757a6e"},e("smoothly-display",{key:"d0281faf4bc55a5432974d45971dad531e61fa2a",type:"text",value:"Simple"}),e("smoothly-table",{key:"09b616689732bf5d0246af33cdfe9551e6a6a879",color:"primary",columns:2},e("smoothly-table-head",{key:"7fad53ce1745be87aa696524fe5992472e509f13"},e("smoothly-table-row",{key:"7a38f71a563e17dde293404d1b2e744f86c4d356"},e("smoothly-table-cell",{key:"f24ae5d56b106567db557f6958b32d539590f251"},"Breed"),e("smoothly-table-cell",{key:"96ba0bf58ec0f283f84c00c90107d06254c63a81"},"Coat"))),e("smoothly-table-body",{key:"992aaee0b138ea7401ed3db9c5349eec6a7afeec"},ud.map((t=>e("smoothly-table-row",null,e("smoothly-table-expandable-cell",null,t.breed,e("div",{slot:"detail"},"Country:",e("br",null),t.country)),e("smoothly-table-expandable-cell",null,t.coat,e("div",{slot:"detail"},"Pattern: ",t.pattern))))),e("smoothly-table-expandable-row",{key:"c2ec45ddc7b5dc119a915cd0d2457b2367f12188"},e("div",{key:"73c069db23c714c6b1c084bb24173e4a09e8b564",slot:"detail"},"Content",e("br",{key:"cc86f8f9c9dda93bb9c15a1c5cc6cc8a2a3486e7"}),"of",e("br",{key:"a2eee8e62352f2340613cca097e7953d01525bc0"}),"the",e("br",{key:"e99454d1aab588f127ad11841d0b6cc5d67e3b73"}),"expandable",e("br",{key:"90d33ff03447c0db1eb214e5c12ee6936e5e43a2"}),"row"),e("smoothly-table-cell",{key:"a6fd99375d0dce9c73bb42c9ee7ef644efbf4e33"},"Cell1 in expandable row"),e("smoothly-table-cell",{key:"e9db7f1181f1081c8a6c41156ab3081e129e415e"},"Cell2 in expandable row")),e("smoothly-table-row",{key:"737ef8dd3914162e4107b24dae43077b29786b5f"},e("smoothly-table-cell",{key:"5b68efd60b226c22993cc064db1eaca8d54070e5"},"Cell5"),e("smoothly-table-expandable-cell",{key:"354dcf3f557b809c78dda6b22106613425bbd6e7"},"Expandable Cell",e("div",{key:"2008c93a669890609aff6b1f049b219682be1277",slot:"detail"},"Content of the expandable cell"))),e("smoothly-table-row",{key:"89fd80e93b9dab809e2a53d3ae30b1a552ca0eba"},e("smoothly-table-expandable-cell",{key:"3bace8fae4cacc7f427902e09a3384fcca784ea6"},"Expandable Cell 1",e("div",{key:"072770a51f3c9bd98d5c43e70f6c12c51ce1030d",slot:"detail"},"Content of the expandable cell 1")),e("smoothly-table-expandable-cell",{key:"2cd5fe1b928d238ef45217c4a061756e9b887b9a"},"Expandable Cell 2",e("div",{key:"65d0735ba8dd6f0059e26e2afaf2b89c5b1ea533",slot:"detail"},"Content of the expandable cell 2")))),e("smoothly-table-foot",{key:"65653e24e03fd281077a57ab93ab4235ff5eb858"},e("smoothly-table-row",{key:"f2f5735fdfa593094a37b8b9acab98036b1a54d2"},e("smoothly-table-cell",{key:"ad4ed310413fc142079ee4854a543345dcc5ad1d"},"Footer Cell"),e("smoothly-table-cell",{key:"9cbed75f0aa8890bb0843e8a6ea32e33d6cd9781"},"Footer Cell")))))}};const ud=[{breed:"Abyssinian",country:"Ethiopia",origin:"Natural/Standard",coat:"Short",pattern:"Ticked"},{breed:"Aegean",country:"Greece",origin:"Natural/Standard",coat:"Semi-long",pattern:"Bi- or tri-colored"},{breed:"American Curl",country:"United States",origin:"Mutation",coat:"Short/Long",pattern:"All"},{breed:"American Bobtail",country:"United States",origin:"Mutation",coat:"Short/Long",pattern:"All"},{breed:"American Shorthair",country:"United States",origin:"Natural",coat:"Short",pattern:"All but colorpoint"},{breed:"American Wirehair",country:"United States",origin:"Mutation",coat:"Rex",pattern:"All but colorpoint"},{breed:"Arabian Mau",country:"Arabian Peninsula",origin:"Natural",coat:"Short",pattern:""},{breed:"Australian Mist",country:"Australia",origin:"Crossbreed",coat:"Short",pattern:"Spotted and Classic tabby"},{breed:"Asian",country:"developed in the United Kingdom (founding stock from Asia)",origin:"",coat:"Short",pattern:"Evenly solid"},{breed:"Asian Semi-longhair",country:"United Kingdom",origin:"Crossbreed",coat:"Semi-long",pattern:"Solid"}];md.style=dd;const yd='.sc-smoothly-table-expandable-cell-h{display:contents}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell{padding:0.3rem 1.1rem}.sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell{grid-column:span var(--smoothly-table-cell-span, 1);display:flex;box-sizing:border-box;align-items:center;white-space:nowrap;position:relative}.sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell::before{content:"";display:flex;position:absolute;top:50%;translate:0 -50%;height:0.4em;width:0.4em;left:0.3em;border-bottom:1px solid rgb(var(--smoothly-table-foreground));border-right:1px solid rgb(var(--smoothly-table-foreground));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell:hover::before{border-bottom:1px solid rgb(var(--smoothly-table-hover-foreground));border-right:1px solid rgb(var(--smoothly-table-hover-foreground));opacity:1}[open].sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell::before{rotate:45deg}.sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell:hover{background-color:rgb(var(--smoothly-table-hover-background));color:rgb(var(--smoothly-table-hover-foreground));stroke:rgb(var(--smoothly-table-hover-foreground));fill:rgb(var(--smoothly-table-hover-foreground))}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell:first-child{cursor:pointer}.sc-smoothly-table-expandable-cell-h>div.detail.sc-smoothly-table-expandable-cell{grid-column:1/-1;grid-row:2;position:relative}[open].sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell{box-shadow:1px 1px 1px -1px rgb(var(--smoothly-table-border)) inset, -3px -1px 1px -3px rgb(var(--smoothly-table-border)) inset}[open].sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell{background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground));stroke:rgb(var(--smoothly-table-expanded-foreground));fill:rgb(var(--smoothly-table-expanded-foreground))}.sc-smoothly-table-expandable-cell-h:not([open])>div.detail.sc-smoothly-table-expandable-cell{display:none}.sc-smoothly-table-expandable-cell-h>div.detail.sc-smoothly-table-expandable-cell::before{content:"";position:absolute;display:flex;box-sizing:border-box;top:0;bottom:0;left:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));border-left:0.3em solid rgb(var(--smoothly-table-detail-border, var(--smoothly-table-border)));box-shadow:2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}.sc-smoothly-table-expandable-cell-h>div.detail.sc-smoothly-table-expandable-cell::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));box-shadow:-2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}';const bd=yd;const fd=class{constructor(e){t(this,e);this.smoothlyTableExpandableCellChange=o(this,"smoothlyTableExpandableCellChange",7);this.smoothlyTableExpandableCellRegister=o(this,"smoothlyTableExpandableCellRegister",7);this.span=1;this.open=false}componentWillLoad(){this.smoothlyTableExpandableCellRegister.emit()}async close(){this.open=false}clickHandler(){this.open=!this.open}openChange(){this.smoothlyTableExpandableCellChange.emit(this.open)}render(){var t;return e(s,{key:"edf19222d3f1a5954572dbe5dc67035f47e33f2b",style:{"--smoothly-table-cell-span":(t=this.span)===null||t===void 0?void 0:t.toString(10)}},e("div",{key:"21e0ad7b364c875f510e981dbf3b0449459a55d2",onClick:()=>this.clickHandler(),class:"content"},e("slot",{key:"dbd3f3735d7de5ccaef85fa724ff89dc4606432f"})),e("div",{key:"f8032d040bf4b84c8aac87a8b2c2cafd8885abef",class:"detail"},e("slot",{key:"f603898706b87596c4eaefe1588dad1db17028f2",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};fd.style=bd;const pd='.sc-smoothly-table-expandable-row-h{grid-column:1/-1;display:grid;grid-template-columns:subgrid;grid-template-rows:auto 0fr;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border))}.sc-smoothly-table-expandable-row-h.sc-smoothly-table-expandable-row-s>*{cursor:pointer}.sc-smoothly-table-expandable-row-h:has(>.sc-smoothly-table-expandable-row:not(:last-child):hover)>.sc-smoothly-table-expandable-row:not(:last-child){background-color:rgb(var(--smoothly-table-hover-background));color:rgb(var(--smoothly-table-hover-foreground))}[open].sc-smoothly-table-expandable-row-h{background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground));grid-template-rows:auto 1fr;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border)), 0px 0px 1px rgb(var(--smoothly-table-border)) inset;grid-template-rows:0fr 1fr}.sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row:last-child{grid-column:1/-1;cursor:default;position:relative;overflow:hidden;background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground))}.sc-smoothly-table-expandable-row-h>.sc-smoothly-table-expandable-row:first-child:not(:last-child){position:relative}.sc-smoothly-table-expandable-row-h>.sc-smoothly-table-expandable-row:first-child:not(:last-child)::before{content:"";display:flex;position:absolute;top:50%;translate:0 -50%;height:0.4em;width:0.4em;left:0.3em;border-bottom:1px solid rgb(var(--smoothly-table-foreground));border-right:1px solid rgb(var(--smoothly-table-foreground));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-table-expandable-row-h:has(>.sc-smoothly-table-expandable-row:not(:last-child):hover)>.sc-smoothly-table-expandable-row:first-child:not(:last-child)::before{border-bottom:1px solid rgb(var(--smoothly-table-hover-foreground));border-right:1px solid rgb(var(--smoothly-table-hover-foreground));opacity:1}[open].sc-smoothly-table-expandable-row-h>.sc-smoothly-table-expandable-row:first-child:not(:last-child)::before{rotate:45deg}[open].sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row:last-child{overflow:visible;padding:0.3rem 1.1rem}.sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row:last-child::before{content:"";position:absolute;display:flex;box-sizing:border-box;top:0;bottom:0;left:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));border-left:0.3em solid rgb(var(--smoothly-table-detail-border, var(--smoothly-table-border)));box-shadow:2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}.sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row:last-child::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));box-shadow:-2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}';const gd=pd;const kd=class{constructor(e){t(this,e);this.smoothlyTableExpandableRowChange=o(this,"smoothlyTableExpandableRowChange",7);this.open=false}clickHandler(t){this.div&&t.composedPath().includes(this.div)||(this.open=!this.open)}openChange(){this.smoothlyTableExpandableRowChange.emit(this.open)}render(){return e(s,{key:"4bed1759b9e09e82573bb7f3c251dfb994b0ad25",onClick:t=>this.clickHandler(t)},e("slot",{key:"b1a6428a863fffce9452ab4a0c5d4f4aa29ab0f4"}),e("div",{key:"904504be6f7815e689145eeb8c1904686db515cd",ref:t=>this.div=t},e("slot",{key:"a1d7dc0b75d7573ac3f9e04fbeaaed5972548a14",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};kd.style=gd;const vd=".sc-smoothly-table-filler-row-h{grid-column:1 / -1}";const wd=vd;const xd=class{constructor(e){t(this,e)}render(){return e("smoothly-table-row",{key:"487cc599f66e2256280eba9623a90c089489d1f6"},e("smoothly-table-cell",{key:"4ad4fb2d4bd3ff44bf6a62d20489cf7607f5d7ca"},e("slot",{key:"b1b8b30cdca397452636e65e2ff2f0c2e8624d42"})))}};xd.style=wd;const Sd=".sc-smoothly-table-foot-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;position:sticky;z-index:1;bottom:0;background-color:rgb(var(--smoothly-table-footer-background));color:rgb(var(--smoothly-table-footer-foreground));stroke:rgb(var(--smoothly-table-footer-foreground));fill:rgb(var(--smoothly-table-footer-foreground))}";const Cd=Sd;const zd=class{constructor(e){t(this,e)}render(){return e(s,{key:"8f13c28ec690d682f9d9d2161af1d8f5d21ac027"},e("slot",{key:"97de36a9401b62b683a8b6e86eef2d72910c067f"}))}};zd.style=Cd;const jd=".sc-smoothly-table-head-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;top:0;position:sticky;z-index:1;--smoothly-color:var(--smoothly-table-header-background);--smoothly-color-contrast:var(--smoothly-table-header-foreground);background-color:rgb(var(--smoothly-table-header-background));color:rgb(var(--smoothly-table-header-foreground));stroke:rgb(var(--smoothly-table-header-foreground));fill:rgb(var(--smoothly-table-header-foreground));font-weight:bold;transition:box-shadow 0.3s ease}.scrolled.sc-smoothly-table-head-h{box-shadow:var(--smoothly-table-header-shadow)}";const _d=jd;const Id=class{constructor(e){t(this,e);this.onScroll=t=>{if(t.target instanceof HTMLElement){this.scrollParent=t.target;const e=this.scrollParent.getBoundingClientRect();const o=this.element.getBoundingClientRect();this.scrolled=e.top==o.top}};this.scrolled=undefined}connectedCallback(){var t;this.scrollParent=n.findParent(this.element);(t=this.scrollParent)===null||t===void 0?void 0:t.addEventListener("scroll",this.onScroll)}disconnectedCallback(){var t;(t=this.scrollParent)===null||t===void 0?void 0:t.removeEventListener("scroll",this.onScroll)}render(){return e(s,{key:"b6bfb1f382f927b434e0007568170daf00f63c75",class:{scrolled:!!this.scrolled}},e("slot",{key:"d37d97f75e41498348e2d1ba12e6bf86187edb1f"}))}get element(){return i(this)}};Id.style=_d;const Td=".sc-smoothly-table-row-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;box-sizing:border-box;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border))}.sc-smoothly-table-row-h:has(smoothly-table-expandable-cell){grid-template-rows:auto 0fr 0fr}.sc-smoothly-table-row-h:has(smoothly-table-expandable-cell[open]){grid-template-rows:auto 1fr 0fr}";const Od=Td;const Ld=class{constructor(e){t(this,e);this.expandableCells=new Set}smoothlyTableExpandableCellRegisterHandler(t){t.stopPropagation();this.expandableCells.add(t.target)}smoothlyTableExpandableCellChangeHandler(t){if(t.detail)for(const e of this.expandableCells)t.target!=e&&e.close()}render(){return e(s,{key:"84924ddbf8eb1970ba47a5eaf91c918d8bcb3c06"},e("slot",{key:"7e100fae4fa251b97011f7fce663917e026b44e5"}))}};Ld.style=Od;const Ad=".sc-smoothly-table-row-group-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;margin-top:1px}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{grid-column:1 / -1;display:grid;position:relative;cursor:pointer}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:last-child{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}[align].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{grid-template-columns:subgrid}[align].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group{display:contents}[align].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group>*.sc-smoothly-table-row-group{padding:0.3rem 1.1rem}.sc-smoothly-table-row-group-h:not([align])>div.sc-smoothly-table-row-group:first-child{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2, auto);justify-content:space-between;padding:0.3rem 1.1rem}.sc-smoothly-table-row-group-h:not([align])>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:first-child{justify-self:start;display:flex;gap:1rem}.sc-smoothly-table-row-group-h:not([align])>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:last-child{justify-self:end;display:flex;gap:1rem}.sc-smoothly-table-row-group-h:not([open]){grid-template-rows:auto 0fr}.sc-smoothly-table-row-group-h:not([open])>div.sc-smoothly-table-row-group:last-child{grid-row:2;overflow:hidden}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:first-child::before{content:'';display:flex;position:absolute;top:50%;translate:0 -50%;left:0.3em;height:0.4em;width:0.4em;border-bottom:1px solid rgb(var(--smoothly-default-contrast));border-right:1px solid rgb(var(--smoothly-default-contrast));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child:hover>div.sc-smoothly-table-row-group:first-child::before{opacity:1}[open].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:first-child::before{rotate:45deg}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{background-color:rgb(var(--smoothly-default-tint))}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{border-bottom:1px solid rgb(var(--smoothly-default-shade))}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child:hover{background-color:rgb(var(--smoothly-default-shade))}";const Md=Ad;const Ed=class{constructor(e){t(this,e);this.smoothlyTableRowGroupChange=o(this,"smoothlyTableRowGroupChange",7);this.align=false;this.open=false}clickHandler(){this.open=!this.open;this.smoothlyTableRowGroupChange.emit(this.open)}render(){return e(s,{key:"d39263848ea2642912f8f7944b4af31bbeb7bedb"},e("div",{key:"c646cbc32e7a6d1dab115ad61e34e1d23df1b5c2",onClick:()=>this.clickHandler()},e("div",{key:"8625237beff7d80edd3d4b48ab97dafc688ebdad"},e("slot",{key:"19eb66f64c2f9d836ac74c11565cc3cf1573f9c4",name:"start"})),e("div",{key:"7a0605223df89b3f0edafa723244b495c0466608"},e("slot",{key:"5e781edb2a74e94b80bed6732abe028d5ddb0fa6",name:"end"}))),e("div",{key:"530f66f946ca11615f058bd0a8b061a858ec7751"},e("slot",{key:"7a9dccab9430529f5779424940073fcd19187775"})))}};Ed.style=Md;const Dd=".sc-smoothly-tabs-h{display:grid;grid-template-columns:repeat(var(--tabs), auto);grid-template-rows:auto auto}";const $d=Dd;const Rd=class{constructor(e){t(this,e);this.smoothlyTabOpen=o(this,"smoothlyTabOpen",7);this.tabs=[];this.selectedElement=undefined}onInputLoad(t){if(t.target instanceof HTMLElement&&!this.tabs.includes(t.target)){this.tabs=[...this.tabs,t.target]}}openChanged(t){if(t.target!=this.element){t.stopPropagation();this.selectedElement=t.target;this.smoothlyTabOpen.emit(t.detail)}}onSelectedChange(t,e){if(e)e.open=false}render(){return e(s,{key:"f17ec6be41e37bd9f3c4c13034bdcd6de9a7b9b4",style:{"--tabs":`${this.tabs.length}`}},e("slot",{key:"49300e34edd48016137690fa43d621225bf2ddea"}))}get element(){return i(this)}static get watchers(){return{selectedElement:["onSelectedChange"]}}};Rd.style=$d;const Pd=".sc-smoothly-tabs-demo-h{display:block}[hidden].sc-smoothly-tabs-demo-h{display:none}.sc-smoothly-tabs-demo-h>*.sc-smoothly-tabs-demo{margin:auto;max-width:1200px;width:100%}";const Fd=Pd;const Hd=class{constructor(e){t(this,e)}render(){return e("smoothly-tabs",{key:"4a00dd7c436dbf3d9abe9433b99638af102cf7ec"},e("smoothly-tab",{key:"7c12f03057817a6bb970ae5b6f94d6d0e3fbdf01",label:"test1",open:true},"Hello world!"),e("smoothly-tab",{key:"2a6045a36eb91238215cfea7d02ce7e57663412d",label:"test2"},"this is a test message!"),e("smoothly-tab",{key:"6fa4537914d989e47aad7eac348435ea97746e82",label:"test3"},"this is a test message again!"))}};Hd.style=Fd;const Nd=".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 Yd=Nd;const Ud=class{constructor(e){t(this,e);this.color=undefined}render(){return e(s,{key:"c4d5fc173ffb6f2eabf51c7857cf058ed1d1fe2c"},this.color,["tint","color","shade"].map((t=>e("smoothly-theme-color-variant",{title:`${this.color} ${t}`,color:this.color,variant:t}))))}};Ud.style=Yd;const Wd=".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 Bd=Wd;const Vd=class{constructor(e){t(this,e);this.color=undefined;this.variant="color"}render(){return"Aa"}};Vd.style=Bd;const Gd=".sc-smoothly-theme-colors-h{display:grid;grid-template-columns:repeat(3, 1fr);row-gap:1em;column-gap:1em;width:fit-content}";const Kd=Gd;const Zd=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})))}};Zd.style=Kd;const qd=".sc-smoothly-theme-demo-h{display:flex;width:50%;margin:auto;flex-direction:column;gap:2em;margin-top:2em}.sc-smoothly-theme-demo-h>smoothly-theme-picker.sc-smoothly-theme-demo{width:20em}.sc-smoothly-theme-demo-h>span.sc-smoothly-theme-demo{display:flex;flex-direction:row;gap:10em}";const Xd=qd;const Jd=class{constructor(e){t(this,e)}render(){return e(s,{key:"4463a636e45a126ba2fb062048ebd0b9fb3f687d"},e("h2",{key:"c2a7009ee3887c027ae7b7bf005d913036685e64"},"Theme"),e("smoothly-theme-picker",{key:"0a446c485965bef46174bbc3c43fbc80abbeb29f"},e("smoothly-item",{key:"1cd98a7c5a46aec65ffb22d125f788a0d84524f3",selected:true,value:"assets/style/smoothly.css"},"Smoothly"),e("smoothly-item",{key:"420c81c9b4fdde7d753d17dd89ea766b63cac4b7",value:"https://app.issuefab.com/assets/style/index.css"},"Issuefab"),e("smoothly-item",{key:"be405af1795f5a5f5880c43176d927eae4e7ed8c",value:"https://app.proquse.com/assets/style/index.css"},"Proquse"),e("smoothly-item",{key:"2873d44164cb6e8684096edb6f0cb48dddc00499",value:"https://app.weekmeter.com/assets/style/index.css"},"Weekmeter"),e("smoothly-item",{key:"f4074f3ff99ae23d74f9afd182f50bdca5975189",value:"https://dash.pax2pay.app/p2pdash.css"},"Pax2Pay Dashboard"),e("smoothly-item",{key:"e29a9eabce4fe47d563cd332f6ac1f9694255e0e",value:"https://ui.pax2pay.app/assets/style/pax2pay.css"},"Pax2Pay Portal"),e("smoothly-item",{key:"605c81cabec58d8bf0effbba978124cc2edc18dc",value:"https://theme.payfunc.com/intergiro/index.css"},"Intergiro Monitor"),e("smoothly-item",{key:"89cd4a4fde0377438f9b0774ef5cde8d12ad3de6",value:"https://theme.payfunc.com/light/index.css"},"Payfunc Light"),e("smoothly-item",{key:"80a0348fd0d5d123ae21e3553402cbd45cfc354f",value:"https://theme.payfunc.com/dark/index.css"},"Payfunc Dark")),e("span",{key:"8984c5ecbab2d30da873861d05dde2e33d9e91b5"},e("smoothly-theme-colors",{key:"b5cb68f62cdd11e8a5b5487c62680f5a1b955593"}),e("smoothly-theme-guide",{key:"caae0dccd337a1f7f3f59dac6cf616fe2058d3b9"})),e("smoothly-button",{key:"68ca23965a74ba537d3b3c011d70b8039990fe30",type:"link",link:"/redirect"},"To redirect"),e("smoothly-button",{key:"71ba1deab1a40617e628c555f81b8414d7900542",type:"link",link:"/redirect"},"To /redirect"),e("smoothly-button",{key:"8e4aff63e4a8b24aa875d277e6f0ad2c6b8c4960",type:"link",link:new URL("/redirect",window.location.origin).href},'To new URL("redirect")'),e("smoothly-button",{key:"24bb491c61fd7b4321936a31d3936067155d284c",type:"link",link:"redirect/nested"},"To redirect nested"))}};Jd.style=Xd;const Qd="";const tm=Qd;const em=class{constructor(e){t(this,e)}render(){return[e("smoothly-display",{key:"e02cf3d9a55c0f8bf5027f808870e1b3050be8b5"},"Tint is used as background to highlight, for example hovering an item in the select menu."),e("br",{key:"817c11793839a6ae6ba3c95d17bf4d259e3ba0f2"}),e("smoothly-display",{key:"2e94e10374c983af3d5e182fafa79a23297a1963"},"Color is used as a normal background or as a background to show that something is selected, for example a selected item in the select menu."),e("br",{key:"e66a23032469185cfbb4ff72e9269503e0dfe208"}),e("smoothly-display",{key:"d439e1e3c0376c104497ced7089fbe5353b95cf7"},"Shade is used as border and for symbols in buttons. It works as a semi-low contrast against color and tint."),e("br",{key:"da226714d31e8bb16901982c3d76760479556603"}),e("smoothly-display",{key:"dea4cf61a7aea11560d67ac2edef565c981958e7"},"One can use the ","<smoothly-color>"," component to switch between what color set is used."," "),e("br",{key:"5ac250dadb2c47de1399c1c5f5d7aacf9cb05c3d"})]}};em.style=tm;const om="";const sm=om;const im=class{constructor(e){t(this,e);this.element="smoothly-css"}render(){return e(s,{key:"d689a1c952e70cce86dc2aa27e794b087bf49b69"},e("smoothly-input-select",{key:"04a1ef8bf253bd7bc3799d219de7ebe7dd220e1b",name:"theme",looks:"border",onSmoothlyInput:t=>{const e=document.querySelector(`#${this.element}`);if(e instanceof HTMLLinkElement&&typeof t.detail.theme=="string")e.href=t.detail.theme}},e("label",{key:"0b294f2161e7862a2aaaf47b806a057aa1d1bdf5",slot:"label"},"Select theme"),e("slot",{key:"69e0dff8b9a96a9b13a986d2a61773de46fe9ef6"})))}};im.style=sm;const am=".sc-smoothly-toggle-switch-h{display:block}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch{width:100%;height:100%;display:flex;align-items:center;padding-inline:0;cursor:pointer;border:none;border-radius:3em;background-color:rgb(var(--smoothly-color))}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch:hover{background-color:rgb(var(--smoothly-color-tint))}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{display:flex;justify-content:flex-start;align-items:center;fill:rgb(var(--smoothly-color-contrast));stroke:rgb(var(--smoothly-color-contrast));transition:100ms ease-in-out}[selected][checkmark].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{fill:rgb(var(--smoothly-success-contrast));stroke:rgb(var(--smoothly-success-contrast))}[selected][checkmark].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch{background-color:rgb(var(--smoothly-success-color))}[selected][checkmark].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch:hover{background-color:rgb(var(--smoothly-success-tint))}[selected].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{transform:translateX(100%)}[size=tiny].sc-smoothly-toggle-switch-h{--height:1.25rem}[size=small].sc-smoothly-toggle-switch-h{--height:1.5rem}[size=default].sc-smoothly-toggle-switch-h{--height:2rem}[size=large].sc-smoothly-toggle-switch-h{--height:2.5rem}.sc-smoothly-toggle-switch-h{height:var(--height);width:calc(var(--height) * 2)}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{--smoothly-icon-size:var(--height)}";const nm=am;const lm=class{constructor(e){t(this,e);this.smoothlyToggleSwitchChange=o(this,"smoothlyToggleSwitchChange",7);this.checkmark=true;this.selected=false;this.disabled=false;this.size="default";this.color="medium";this.fill="clear"}handleClick(){this.selected=!this.selected;this.smoothlyToggleSwitchChange.emit(this.selected)}render(){return e(s,{key:"2b49a561fc51305ad11b09d2d8512ae24a1dc365"},e("button",{key:"01c61f4dcdd8e576da06f7ecc30ddca01168c0ea",type:"button",disabled:this.disabled,onClick:()=>this.handleClick()},e("smoothly-icon",{key:"5dae0fb3fe4f570bc8c343eed1ad27f0a075d6ff",color:this.color,name:!this.checkmark?"ellipse":this.selected?"checkmark-circle":"close-circle",fill:"clear",class:{selected:this.selected}})))}};lm.style=nm;const rm=".sc-smoothly-toggle-switch-demo-h>div.sc-smoothly-toggle-switch-demo{display:grid;grid-template-columns:repeat(5, max-content);gap:1em}.sc-smoothly-toggle-switch-demo-h>div.sc-smoothly-toggle-switch-demo>span.sc-smoothly-toggle-switch-demo>p.sc-smoothly-toggle-switch-demo{margin:0}";const cm=rm;const hm=class{constructor(e){t(this,e)}render(){return e(s,{key:"8f8fb58880229cff50b5d44aee4b24d82dc321fe"},e("h4",{key:"2ae31009038d1278b2ce0b7d50ef2317fb44d7ff"},"Toggle switches"),e("div",{key:"9f8445bc0d0a5337a403def1fffa04be6faa40d6"},e("p",{key:"634a07c5efac19248b1ae558a376dc6aa8eb38f5"},"Checkmark"),e("span",{key:"49bf90cc365d832852494e1ca4965d521c8cd22a"},e("p",{key:"91bdeb807b38b678b4cd74b481b197237bf9bb38"},"Tiny"),e("smoothly-toggle-switch",{key:"13c22571b68e3d81c9f15ac30dd6e14d8a6b35ce",disabled:false,size:"tiny"})),e("span",{key:"941a1d57831c661b9514282283360e8975af32fa"},e("p",{key:"53d710f9750058fe393e7b9b5fe4d31b12bd7b68"},"Small"),e("smoothly-toggle-switch",{key:"ae3ac2490f83c3077b15d85fcac8f7e5ac0a2d42",disabled:false,size:"small"})),e("span",{key:"34257d9b67e40cf072711fc847ca9dfb5f91c512"},e("p",{key:"be1801aafa7a7450f6dc792ac235f1c34f24710a"},"Standard"),e("smoothly-toggle-switch",{key:"827cddf2c771e838007062414cef66473d4d39ea",disabled:false})),e("span",{key:"c780dd94b09336dee3172a54a8149d63c3a62f9a"},e("p",{key:"2bcfd7698897e96f0b37ee74cf38425d91c34ee1"},"Large"),e("smoothly-toggle-switch",{key:"9c78c336ac234985630f609046e6f0d26864bcad",disabled:false,size:"large"})),e("p",{key:"6f7566af469a3afe52fc826cab71dc7b4c7b62d1"},"Colors checkmark"),e("span",{key:"7d756353704fff2ab7be10e2be69756d8197ea88"},e("p",{key:"49c67182d54a79c2053603905dab1bd0ecb71dee"},"Danger"),e("smoothly-toggle-switch",{key:"ee31817b353790e30365ca051afe9f0253037825",color:"danger",disabled:false,size:"small"})),e("span",{key:"b02a27a21cafc770c6ed8eba5b776bbdcf6c1978"},e("p",{key:"317c681c35af7d7d2fc7a994b1f2508197f99872"},"Primary color"),e("smoothly-toggle-switch",{key:"e65dfed030c63f77e8d6f593673809614ff2ba00",color:"primary",disabled:false,size:"small"})),e("span",{key:"fb5086478316b6152d33c2100f49fcc465ca3d3b"},e("p",{key:"41daa24ba72db875cc7b7af2c7f581aac5e7feef"},"Secondary color"),e("smoothly-toggle-switch",{key:"d39f57ed3d556ae37f2e8b0c41e1f325ebdb5603",color:"secondary",disabled:false,size:"small"})),e("p",{key:"0511afe9519a8c039c59e87a680f62fdc47654f0"}),e("p",{key:"625c4f5688027b5abeffb31f0dd7dcde1d66c97e"},"Colors no checkmark"),e("span",{key:"54ecca2b5044cba4d698350dcbdc7f6ccf89c955"},e("p",{key:"88c097beeac20c152c03bf300568fb17ed4fd706"},"Danger"),e("smoothly-toggle-switch",{key:"3f057efb84145a6b1da57551aa69abb0aaaa0cd5",checkmark:false,color:"danger",disabled:false,size:"small"})),e("span",{key:"f57ab262e99e374dd0170aff629f9141dc217113"},e("p",{key:"1c1345999a38cabf4d8a62790740125bd9d5e983"},"Primary color"),e("smoothly-toggle-switch",{key:"0e24546adf85da1be29927407fa8c94c1cdae1af",checkmark:false,color:"primary",disabled:false,size:"small"})),e("span",{key:"60a5ad8bcc7b92b9362cca69c205e340390443c8"},e("p",{key:"8fddc28615785cafb8b095fb688ae214380fc8a0"},"Secondary color"),e("smoothly-toggle-switch",{key:"e051cad9467cd9a8d286fdfdb178d50980ba262c",checkmark:false,color:"secondary",disabled:false,size:"small"}))))}};hm.style=cm;const dm=".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}.sc-smoothly-trigger-h>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 mm=dm;const um=class{constructor(e){t(this,e);this.trigger=o(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",{key:"6dcc500b529d05dd5dab24dae03f5329f20e2e9b",disabled:this.disabled,name:this.name},e("slot",{key:"8821fe6e52e1f4504b1803936fc7029963bfaefc"}));break}return t}};um.style=mm;export{P as smoothly_app,F as smoothly_app_demo,Pt as smoothly_app_room,Nt as smoothly_back_to_top,Wt as smoothly_burger,Gt as smoothly_button,qt as smoothly_button_confirm,Qt as smoothly_button_demo,ne as smoothly_calendar,ce as smoothly_dialog,me as smoothly_dialog_demo,io as smoothly_display,ao as smoothly_display_demo,lo as smoothly_display_demo_json,uo as smoothly_display_json,fo as smoothly_display_json_object,ko as smoothly_display_json_primitive,xo as smoothly_display_json_record_key,sl as smoothly_filter,nl as smoothly_filter_field,cl as smoothly_filter_input,ml as smoothly_filter_select,bl as smoothly_filter_toggle,mr as smoothly_form,br as smoothly_form_demo,fr as smoothly_form_demo_all,pr as smoothly_form_demo_card,gr as smoothly_form_demo_controlled,wr as smoothly_form_demo_date,Cr as smoothly_form_demo_date_range,zr as smoothly_form_demo_login,Ir as smoothly_form_demo_pet,Tr as smoothly_form_demo_prices,Ar as smoothly_form_demo_schedule,Mr as smoothly_form_demo_transparent,Rr as smoothly_form_demo_typed,Hr as smoothly_frame,Ur as smoothly_icon,Vr as smoothly_icon_demo,Qr as smoothly_input,oc as smoothly_input_checkbox,ac as smoothly_input_clear,rc as smoothly_input_color,cc as smoothly_input_color_demo,mc as smoothly_input_date,bc as smoothly_input_date_range,gc as smoothly_input_demo,wc as smoothly_input_demo_standard,Cc as smoothly_input_edit,_c as smoothly_input_file,Oc as smoothly_input_month,Mc as smoothly_input_price_demo,$c as smoothly_input_radio,Fc as smoothly_input_radio_item,Yc as smoothly_input_range,Uc as smoothly_input_range_demo,Vc as smoothly_input_reset,qc as smoothly_input_select,Qc as smoothly_input_submit,oh as smoothly_item,ah as smoothly_label,rh as smoothly_lazy,ch as smoothly_load_more,mh as smoothly_modal,bh as smoothly_notification,gh as smoothly_notifier,wh as smoothly_spinner,Ch as smoothly_summary,_h as smoothly_tab,Oh as smoothly_table,Mh as smoothly_table_body,$h as smoothly_table_cell,Fh as smoothly_table_demo,Yh as smoothly_table_demo_colspan,Bh as smoothly_table_demo_filler_row,Jh as smoothly_table_demo_filtered,od as smoothly_table_demo_group,nd as smoothly_table_demo_nested,cd as smoothly_table_demo_nested_inner,md as smoothly_table_demo_simple,fd as smoothly_table_expandable_cell,kd as smoothly_table_expandable_row,xd as smoothly_table_filler_row,zd as smoothly_table_foot,Id as smoothly_table_head,Ld as smoothly_table_row,Ed as smoothly_table_row_group,Rd as smoothly_tabs,Hd as smoothly_tabs_demo,Ud as smoothly_theme_color,Vd as smoothly_theme_color_variant,Zd as smoothly_theme_colors,Jd as smoothly_theme_demo,em as smoothly_theme_guide,im as smoothly_theme_picker,lm as smoothly_toggle_switch,hm as smoothly_toggle_switch_demo,um as smoothly_trigger};
|
|
2
|
+
//# sourceMappingURL=p-b803a3c2.entry.js.map
|