smoothly 1.2.1-alpha.48 → 1.2.1-alpha.49
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_107.cjs.entry.js → smoothly-app_109.cjs.entry.js} +268 -234
- package/dist/cjs/smoothly-app_109.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-input-checkbox-demo.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 +2 -0
- package/dist/collection/components/form/demo/pet/index.js +1 -1
- package/dist/collection/components/form/demo/pet/index.js.map +1 -1
- package/dist/collection/components/form/demo/prices/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/icon/demo/index.js +1 -1
- package/dist/collection/components/icon/index.js +1 -1
- 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 +5 -5
- 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/next/demo/colspan/index.js +1 -1
- package/dist/collection/components/next/demo/fillerRow/filleRowDemo.js +32 -0
- package/dist/collection/components/next/demo/fillerRow/filleRowDemo.js.map +1 -0
- package/dist/collection/components/next/demo/fillerRow/style.css +9 -0
- package/dist/collection/components/next/demo/filtered/index.js +5 -5
- package/dist/collection/components/next/demo/group/index.js +1 -1
- package/dist/collection/components/next/demo/index.js +1 -1
- package/dist/collection/components/next/demo/index.js.map +1 -1
- package/dist/collection/components/next/demo/nested/index.js +1 -1
- package/dist/collection/components/next/demo/nested/inner/index.js +1 -1
- package/dist/collection/components/next/demo/simple/simple.js +1 -1
- package/dist/collection/components/next/table/body/index.js +1 -1
- package/dist/collection/components/next/table/cell/index.js +1 -1
- package/dist/collection/components/next/table/expandable/cell/index.js +1 -1
- package/dist/collection/components/next/table/expandable/row/index.js +1 -1
- package/dist/collection/components/next/table/fillerRow/index.js +19 -0
- package/dist/collection/components/next/table/fillerRow/index.js.map +1 -0
- package/dist/collection/components/next/table/fillerRow/style.css +3 -0
- package/dist/collection/components/next/table/foot/index.js +1 -1
- package/dist/collection/components/next/table/group/index.js +1 -1
- package/dist/collection/components/next/table/head/index.js +1 -1
- package/dist/collection/components/next/table/index.js +1 -1
- package/dist/collection/components/next/table/row/index.js +1 -1
- package/dist/collection/components/notification/index.js +1 -1
- package/dist/collection/components/notifier/index.js +2 -2
- 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/cell/index.js +1 -1
- package/dist/collection/components/table/demo/filtered/index.js +5 -5
- package/dist/collection/components/table/demo/index.js +1 -1
- package/dist/collection/components/table/demo/testing/index.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/footer/index.js +1 -1
- package/dist/collection/components/table/header/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/index.js +1 -1
- 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/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-818a0ebe.js → p-00c5deff.js} +10 -10
- package/dist/components/{p-818a0ebe.js.map → p-00c5deff.js.map} +1 -1
- package/dist/components/{p-4fcc1ffa.js → p-017323e3.js} +12 -12
- package/dist/components/{p-4fcc1ffa.js.map → p-017323e3.js.map} +1 -1
- package/dist/components/{p-f64b103b.js → p-0b423141.js} +2 -2
- package/dist/components/{p-f64b103b.js.map → p-0b423141.js.map} +1 -1
- package/dist/components/{p-90e9aa1f.js → p-0d10cb58.js} +2 -2
- package/dist/components/{p-90e9aa1f.js.map → p-0d10cb58.js.map} +1 -1
- package/dist/components/{p-971ff797.js → p-0ea6c8fd.js} +23 -23
- package/dist/components/{p-971ff797.js.map → p-0ea6c8fd.js.map} +1 -1
- package/dist/components/{p-2f737371.js → p-1390a195.js} +20 -20
- package/dist/components/{p-2f737371.js.map → p-1390a195.js.map} +1 -1
- package/dist/components/{p-7a45faec.js → p-172f7392.js} +3 -3
- package/dist/components/{p-7a45faec.js.map → p-172f7392.js.map} +1 -1
- package/dist/components/{p-040802e2.js → p-192dca7c.js} +2 -2
- package/dist/components/{p-040802e2.js.map → p-192dca7c.js.map} +1 -1
- package/dist/components/{p-46e6dd30.js → p-19580a07.js} +2 -2
- package/dist/components/{p-46e6dd30.js.map → p-19580a07.js.map} +1 -1
- package/dist/components/{p-2b19c666.js → p-1cd836ca.js} +5 -5
- package/dist/components/{p-2b19c666.js.map → p-1cd836ca.js.map} +1 -1
- package/dist/components/{p-f4b2ed5f.js → p-1d427e55.js} +12 -12
- package/dist/components/{p-f4b2ed5f.js.map → p-1d427e55.js.map} +1 -1
- package/dist/components/p-1d44d3db.js +45 -0
- package/dist/components/p-1d44d3db.js.map +1 -0
- package/dist/components/p-1ff539de.js +123 -0
- package/dist/components/{p-f91c386e.js.map → p-1ff539de.js.map} +1 -1
- package/dist/components/{p-c47769b8.js → p-272d2d5a.js} +4 -4
- package/dist/components/{p-c47769b8.js.map → p-272d2d5a.js.map} +1 -1
- package/dist/components/{p-2eaee3c4.js → p-2737c300.js} +4 -4
- package/dist/components/{p-2eaee3c4.js.map → p-2737c300.js.map} +1 -1
- package/dist/components/{p-792cf362.js → p-29a260dd.js} +6 -6
- package/dist/components/{p-792cf362.js.map → p-29a260dd.js.map} +1 -1
- package/dist/components/{p-a560de93.js → p-2ceb6925.js} +2 -2
- package/dist/components/{p-a560de93.js.map → p-2ceb6925.js.map} +1 -1
- package/dist/components/p-2d4db101.js +113 -0
- package/dist/components/p-2d4db101.js.map +1 -0
- package/dist/components/{p-d5980695.js → p-2dba23a5.js} +10 -10
- package/dist/components/{p-d5980695.js.map → p-2dba23a5.js.map} +1 -1
- package/dist/components/{p-0b3c3d54.js → p-2ed3a16d.js} +36 -36
- package/dist/components/{p-0b3c3d54.js.map → p-2ed3a16d.js.map} +1 -1
- package/dist/components/{p-bfd34443.js → p-32f089f8.js} +2 -2
- package/dist/components/{p-bfd34443.js.map → p-32f089f8.js.map} +1 -1
- package/dist/components/{p-ed3722cc.js → p-38489e40.js} +3 -3
- package/dist/components/{p-ed3722cc.js.map → p-38489e40.js.map} +1 -1
- package/dist/components/{p-405b7f06.js → p-38c3ff20.js} +3 -3
- package/dist/components/{p-405b7f06.js.map → p-38c3ff20.js.map} +1 -1
- package/dist/components/{p-edcdcc51.js → p-38ce18a1.js} +2 -2
- package/dist/components/{p-edcdcc51.js.map → p-38ce18a1.js.map} +1 -1
- package/dist/components/{p-cc2c334d.js → p-422f3359.js} +4 -4
- package/dist/components/{p-cc2c334d.js.map → p-422f3359.js.map} +1 -1
- package/dist/components/{p-92adf709.js → p-448a256b.js} +2 -2
- package/dist/components/{p-92adf709.js.map → p-448a256b.js.map} +1 -1
- package/dist/components/{p-41d6da47.js → p-45124db6.js} +2 -2
- package/dist/components/{p-41d6da47.js.map → p-45124db6.js.map} +1 -1
- package/dist/components/{p-97686228.js → p-46d6198c.js} +2 -2
- package/dist/components/{p-97686228.js.map → p-46d6198c.js.map} +1 -1
- package/dist/components/{p-d0678b5e.js → p-47840b52.js} +19 -19
- package/dist/components/{p-d0678b5e.js.map → p-47840b52.js.map} +1 -1
- package/dist/components/{p-b3193095.js → p-47d6c43d.js} +6 -6
- package/dist/components/{p-b3193095.js.map → p-47d6c43d.js.map} +1 -1
- package/dist/components/{p-9d2628e7.js → p-4aad1b00.js} +5 -5
- package/dist/components/{p-9d2628e7.js.map → p-4aad1b00.js.map} +1 -1
- package/dist/components/{p-22f4742d.js → p-4b05e229.js} +10 -10
- package/dist/components/{p-22f4742d.js.map → p-4b05e229.js.map} +1 -1
- package/dist/components/{p-6f1d2edf.js → p-4b663489.js} +2 -2
- package/dist/components/{p-6f1d2edf.js.map → p-4b663489.js.map} +1 -1
- package/dist/components/{p-ebbe611d.js → p-4e8746f6.js} +7 -7
- package/dist/components/{p-ebbe611d.js.map → p-4e8746f6.js.map} +1 -1
- package/dist/components/{p-19671644.js → p-4f53a0e1.js} +7 -7
- package/dist/components/{p-19671644.js.map → p-4f53a0e1.js.map} +1 -1
- package/dist/components/{p-dd5d9674.js → p-4f911ef7.js} +3 -3
- package/dist/components/{p-dd5d9674.js.map → p-4f911ef7.js.map} +1 -1
- package/dist/components/{p-2951a47f.js → p-5501db91.js} +2 -2
- package/dist/components/{p-2951a47f.js.map → p-5501db91.js.map} +1 -1
- package/dist/components/{p-681bfb09.js → p-562db6b2.js} +2 -2
- package/dist/components/{p-681bfb09.js.map → p-562db6b2.js.map} +1 -1
- package/dist/components/{p-cd448401.js → p-575b902b.js} +8 -8
- package/dist/components/{p-cd448401.js.map → p-575b902b.js.map} +1 -1
- package/dist/components/{p-588bab5b.js → p-591e0e42.js} +6 -6
- package/dist/components/{p-588bab5b.js.map → p-591e0e42.js.map} +1 -1
- package/dist/components/{p-70ab7b2a.js → p-5926af96.js} +8 -8
- package/dist/components/{p-70ab7b2a.js.map → p-5926af96.js.map} +1 -1
- package/dist/components/{p-78eccb34.js → p-5a89aff9.js} +3 -3
- package/dist/components/{p-78eccb34.js.map → p-5a89aff9.js.map} +1 -1
- package/dist/components/{p-43651317.js → p-5bcf58c9.js} +3 -3
- package/dist/components/{p-43651317.js.map → p-5bcf58c9.js.map} +1 -1
- package/dist/components/{p-666206c5.js → p-5d648150.js} +5 -5
- package/dist/components/{p-666206c5.js.map → p-5d648150.js.map} +1 -1
- package/dist/components/{p-66efcdc0.js → p-5ef8d096.js} +4 -4
- package/dist/components/{p-66efcdc0.js.map → p-5ef8d096.js.map} +1 -1
- package/dist/components/{p-02796429.js → p-5ffba444.js} +4 -4
- package/dist/components/{p-02796429.js.map → p-5ffba444.js.map} +1 -1
- package/dist/components/{p-c77944e7.js → p-62c1780b.js} +3 -3
- package/dist/components/{p-c77944e7.js.map → p-62c1780b.js.map} +1 -1
- package/dist/components/p-63ac6b31.js +241 -0
- package/dist/components/{p-606ce249.js.map → p-63ac6b31.js.map} +1 -1
- package/dist/components/{p-9d011d36.js → p-67b8cf78.js} +8 -8
- package/dist/components/{p-9d011d36.js.map → p-67b8cf78.js.map} +1 -1
- package/dist/components/{p-d51e9e17.js → p-6b7f1394.js} +14 -14
- package/dist/components/{p-d51e9e17.js.map → p-6b7f1394.js.map} +1 -1
- package/dist/components/{p-d13712dc.js → p-6b8fa870.js} +3 -3
- package/dist/components/{p-d13712dc.js.map → p-6b8fa870.js.map} +1 -1
- package/dist/components/{p-2927f568.js → p-6c326e36.js} +6 -6
- package/dist/components/{p-2927f568.js.map → p-6c326e36.js.map} +1 -1
- package/dist/components/{p-046dcaa0.js → p-751259e1.js} +7 -7
- package/dist/components/{p-046dcaa0.js.map → p-751259e1.js.map} +1 -1
- package/dist/components/{p-d532422c.js → p-78e763a5.js} +3 -3
- package/dist/components/{p-d532422c.js.map → p-78e763a5.js.map} +1 -1
- package/dist/components/{p-4d44c37a.js → p-79ae3224.js} +2 -2
- package/dist/components/{p-4d44c37a.js.map → p-79ae3224.js.map} +1 -1
- package/dist/components/{p-9397efbf.js → p-7b5cb070.js} +10 -10
- package/dist/components/{p-9397efbf.js.map → p-7b5cb070.js.map} +1 -1
- package/dist/components/{p-db26eba4.js → p-7c727d4f.js} +7 -7
- package/dist/components/{p-db26eba4.js.map → p-7c727d4f.js.map} +1 -1
- package/dist/components/{p-07ed0ebd.js → p-7d208e60.js} +2 -2
- package/dist/components/{p-07ed0ebd.js.map → p-7d208e60.js.map} +1 -1
- package/dist/components/{p-969f9875.js → p-7e8da083.js} +2 -2
- package/dist/components/{p-969f9875.js.map → p-7e8da083.js.map} +1 -1
- package/dist/components/{p-a38dbdc4.js → p-835d7c93.js} +9 -9
- package/dist/components/{p-a38dbdc4.js.map → p-835d7c93.js.map} +1 -1
- package/dist/components/{p-515ab07d.js → p-864278eb.js} +4 -4
- package/dist/components/{p-515ab07d.js.map → p-864278eb.js.map} +1 -1
- package/dist/components/{p-edc7e53a.js → p-8e13449b.js} +2 -2
- package/dist/components/{p-edc7e53a.js.map → p-8e13449b.js.map} +1 -1
- package/dist/components/{p-4922697f.js → p-8e748704.js} +2 -2
- package/dist/components/{p-4922697f.js.map → p-8e748704.js.map} +1 -1
- package/dist/components/{p-1cebb9b6.js → p-93ece2c4.js} +24 -24
- package/dist/components/p-93ece2c4.js.map +1 -0
- package/dist/components/{p-4854855c.js → p-952205c2.js} +3 -3
- package/dist/components/{p-4854855c.js.map → p-952205c2.js.map} +1 -1
- package/dist/components/{p-ab4f6f94.js → p-954dd422.js} +2 -2
- package/dist/components/{p-ab4f6f94.js.map → p-954dd422.js.map} +1 -1
- package/dist/components/{p-2a79dcdb.js → p-97e2d2d1.js} +3 -3
- package/dist/components/{p-2a79dcdb.js.map → p-97e2d2d1.js.map} +1 -1
- package/dist/components/p-9a07b79f.js +207 -0
- package/dist/components/{p-69071ce8.js.map → p-9a07b79f.js.map} +1 -1
- package/dist/components/{p-c446b8ad.js → p-9caf65ff.js} +11 -11
- package/dist/components/{p-c446b8ad.js.map → p-9caf65ff.js.map} +1 -1
- package/dist/components/{p-78fd29c9.js → p-b1e386db.js} +3 -3
- package/dist/components/{p-78fd29c9.js.map → p-b1e386db.js.map} +1 -1
- package/dist/components/{p-08159d78.js → p-b2e18b02.js} +2 -2
- package/dist/components/{p-08159d78.js.map → p-b2e18b02.js.map} +1 -1
- package/dist/components/{p-4625dac5.js → p-b789d768.js} +4 -4
- package/dist/components/{p-4625dac5.js.map → p-b789d768.js.map} +1 -1
- package/dist/components/{p-3e30f0e3.js → p-b8c18e44.js} +2 -2
- package/dist/components/{p-3e30f0e3.js.map → p-b8c18e44.js.map} +1 -1
- package/dist/components/{p-550a71dc.js → p-b93f6336.js} +2 -2
- package/dist/components/{p-550a71dc.js.map → p-b93f6336.js.map} +1 -1
- package/dist/components/{p-ddf9d2aa.js → p-bad6a2f9.js} +4 -4
- package/dist/components/{p-ddf9d2aa.js.map → p-bad6a2f9.js.map} +1 -1
- package/dist/components/p-bdbac42a.js +45 -0
- package/dist/components/{p-c311a65d.js.map → p-bdbac42a.js.map} +1 -1
- package/dist/components/{p-25a43fb2.js → p-beb71121.js} +75 -63
- package/dist/components/p-beb71121.js.map +1 -0
- package/dist/components/{p-04e1a322.js → p-beb87a00.js} +2 -2
- package/dist/components/{p-04e1a322.js.map → p-beb87a00.js.map} +1 -1
- package/dist/components/{p-ae5eb701.js → p-bf57d733.js} +2 -2
- package/dist/components/{p-ae5eb701.js.map → p-bf57d733.js.map} +1 -1
- package/dist/components/{p-b3a66468.js → p-c0796b72.js} +3 -3
- package/dist/components/{p-b3a66468.js.map → p-c0796b72.js.map} +1 -1
- package/dist/components/{p-bbb43abd.js → p-c090ac4b.js} +2 -2
- package/dist/components/{p-bbb43abd.js.map → p-c090ac4b.js.map} +1 -1
- package/dist/components/{p-9741bfb4.js → p-d03c5e1c.js} +14 -14
- package/dist/components/{p-9741bfb4.js.map → p-d03c5e1c.js.map} +1 -1
- package/dist/components/{p-282a351d.js → p-d2c600c0.js} +4 -4
- package/dist/components/{p-282a351d.js.map → p-d2c600c0.js.map} +1 -1
- package/dist/components/{p-72b742f3.js → p-d51abfe0.js} +2 -2
- package/dist/components/{p-72b742f3.js.map → p-d51abfe0.js.map} +1 -1
- package/dist/components/{p-75de9c9a.js → p-d8318156.js} +4 -4
- package/dist/components/{p-75de9c9a.js.map → p-d8318156.js.map} +1 -1
- package/dist/components/{p-23e216a7.js → p-dcb5daf0.js} +7 -7
- package/dist/components/{p-23e216a7.js.map → p-dcb5daf0.js.map} +1 -1
- package/dist/components/{p-08d0d254.js → p-de7367c4.js} +2 -2
- package/dist/components/{p-08d0d254.js.map → p-de7367c4.js.map} +1 -1
- package/dist/components/{p-a9ea4176.js → p-df7644f9.js} +12 -12
- package/dist/components/{p-a9ea4176.js.map → p-df7644f9.js.map} +1 -1
- package/dist/components/{p-82080d82.js → p-e25d0a4a.js} +6 -6
- package/dist/components/{p-82080d82.js.map → p-e25d0a4a.js.map} +1 -1
- package/dist/components/{p-b75701e7.js → p-e93c2ce9.js} +9 -9
- package/dist/components/{p-b75701e7.js.map → p-e93c2ce9.js.map} +1 -1
- package/dist/components/{p-1b7eaa3c.js → p-e94f2ce5.js} +15 -15
- package/dist/components/{p-1b7eaa3c.js.map → p-e94f2ce5.js.map} +1 -1
- package/dist/components/{p-9b18f789.js → p-e98f0d21.js} +3 -3
- package/dist/components/{p-9b18f789.js.map → p-e98f0d21.js.map} +1 -1
- package/dist/components/{p-72ea39be.js → p-ea039b1e.js} +23 -23
- package/dist/components/{p-72ea39be.js.map → p-ea039b1e.js.map} +1 -1
- package/dist/components/{p-03f8f866.js → p-ee41db2f.js} +6 -6
- package/dist/components/{p-03f8f866.js.map → p-ee41db2f.js.map} +1 -1
- package/dist/components/{p-2d9134f1.js → p-ee8027c8.js} +9 -9
- package/dist/components/{p-2d9134f1.js.map → p-ee8027c8.js.map} +1 -1
- package/dist/components/{p-00307e9c.js → p-f92cf8e8.js} +10 -10
- package/dist/components/{p-00307e9c.js.map → p-f92cf8e8.js.map} +1 -1
- package/dist/components/{p-725308f2.js → p-f9cb46a5.js} +2 -2
- package/dist/components/{p-725308f2.js.map → p-f9cb46a5.js.map} +1 -1
- package/dist/components/{p-fb5105d9.js → p-fa59c097.js} +8 -8
- package/dist/components/{p-fb5105d9.js.map → p-fa59c097.js.map} +1 -1
- package/dist/components/{p-c39541c7.js → p-fc02cd6e.js} +4 -4
- package/dist/components/{p-c39541c7.js.map → p-fc02cd6e.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +191 -179
- 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 +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.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-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 +23 -23
- 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-next-demo-colspan.js +1 -1
- package/dist/components/smoothly-next-demo-filler-row-demo.d.ts +11 -0
- package/dist/components/smoothly-next-demo-filler-row-demo.js +8 -0
- package/dist/components/smoothly-next-demo-filler-row-demo.js.map +1 -0
- package/dist/components/smoothly-next-demo-group.js +1 -1
- package/dist/components/smoothly-next-demo-nested-inner.js +1 -1
- package/dist/components/smoothly-next-demo-nested.js +1 -1
- package/dist/components/smoothly-next-demo-simple.js +1 -1
- package/dist/components/smoothly-next-demo.js +1 -1
- package/dist/components/smoothly-next-table-body.js +1 -1
- package/dist/components/smoothly-next-table-cell.js +1 -1
- package/dist/components/smoothly-next-table-demo-filtered.js +1 -1
- package/dist/components/smoothly-next-table-expandable-cell.js +1 -1
- package/dist/components/smoothly-next-table-expandable-row.js +1 -1
- package/dist/components/smoothly-next-table-filler-row.d.ts +11 -0
- package/dist/components/smoothly-next-table-filler-row.js +8 -0
- package/dist/components/smoothly-next-table-filler-row.js.map +1 -0
- package/dist/components/smoothly-next-table-foot.js +1 -1
- package/dist/components/smoothly-next-table-head.js +1 -1
- package/dist/components/smoothly-next-table-row-group.js +1 -1
- package/dist/components/smoothly-next-table-row.js +1 -1
- package/dist/components/smoothly-next-table.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-cell.js +1 -1
- package/dist/components/smoothly-table-demo-filtered.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-footer.js +1 -1
- package/dist/components/smoothly-table-header.js +1 -1
- package/dist/components/smoothly-table-row.js +1 -1
- package/dist/components/smoothly-table-testing.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-toggle.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_107.entry.js → smoothly-app_109.entry.js} +267 -235
- package/dist/esm/smoothly-app_109.entry.js.map +1 -0
- package/dist/esm/smoothly-input-checkbox-demo.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-01a28324.entry.js +2 -0
- package/dist/smoothly/p-01a28324.entry.js.map +1 -0
- package/dist/smoothly/{p-651dcac2.entry.js → p-6a5409cf.entry.js} +2 -2
- package/dist/smoothly/{p-9f631b35.entry.js → p-7afb0711.entry.js} +2 -2
- package/dist/smoothly/p-8fa9500d.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/next/demo/fillerRow/filleRowDemo.d.ts +13 -0
- package/dist/types/components/next/table/fillerRow/index.d.ts +4 -0
- package/dist/types/components.d.ts +26 -0
- package/package.json +1 -1
- package/dist/cjs/smoothly-app_107.cjs.entry.js.map +0 -1
- package/dist/components/p-1cebb9b6.js.map +0 -1
- package/dist/components/p-25a43fb2.js.map +0 -1
- package/dist/components/p-606ce249.js +0 -241
- package/dist/components/p-69071ce8.js +0 -207
- package/dist/components/p-c311a65d.js +0 -45
- package/dist/components/p-f91c386e.js +0 -123
- package/dist/esm/smoothly-app_107.entry.js.map +0 -1
- package/dist/smoothly/p-22f843be.entry.js +0 -2
- package/dist/smoothly/p-8cc47619.entry.js +0 -2
- package/dist/smoothly/p-8cc47619.entry.js.map +0 -1
- /package/dist/smoothly/{p-651dcac2.entry.js.map → p-6a5409cf.entry.js.map} +0 -0
- /package/dist/smoothly/{p-9f631b35.entry.js.map → p-7afb0711.entry.js.map} +0 -0
- /package/dist/smoothly/{p-22f843be.entry.js.map → p-8fa9500d.entry.js.map} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t,c as o,H as s,g as a,F as i}from"./p-ad674a4e.js";import{a as n,T as l,C as r,i as c,r as d,D as h,f as m,R as y,M as b,I as u}from"./p-6d7ee489.js";import{T as f,L as p,a as g,D as k,c as v,d as x,C as w,o as S,s as C,b as z,e as j,n as _,A as T}from"./p-34d144e8.js";import{r as I,N as L}from"./p-c3f85494.js";import{f as O}from"./p-2257be8c.js";function E(e){return new A(e??"any")}class A extends f{class="any";is=e=>e!=undefined}function D(){const e=navigator.language;return p.is(e)?e:g.is(e)?p.toLocale(e):undefined}const M='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>smoothly-notifier>header>nav:not(.menu-open){display:none}smoothly-app>smoothly-notifier>main>div{overflow-y:scroll;height:100%}';const $=M;const R=class{constructor(t){e(this,t);this.rooms={};this.label=undefined;this.color=undefined;this.home=undefined;this.menuOpen=false;this.selected=undefined}async componentDidRender(){var e;if(!this.selected&&!window.location.search)(e=this.home&&this.rooms[this.home]?this.rooms[this.home]:Object.values(this.rooms).find((e=>!(e===null||e===void 0?void 0:e.element.disabled))))===null||e===void 0?void 0:e.element.setSelected(true)}async selectRoom(e){var t;(t=this.rooms[e])===null||t===void 0?void 0:t.element.setSelected(true)}async selectedChanged(){var e;Object.values(this.rooms).forEach((e=>{var t;return(e===null||e===void 0?void 0:e.element.path)!=((t=this.selected)===null||t===void 0?void 0:t.element.path)&&(e===null||e===void 0?void 0:e.element.setSelected(false))}));const t=await((e=this.selected)===null||e===void 0?void 0:e.element.getContent());if(this.mainElement&&t){this.mainElement.innerHTML="";this.mainElement.appendChild(t)}}burgerVisibilityHandler(e){this.burgerVisibility=e.detail}burgerStatusHandler(e){e.stopPropagation();this.menuOpen=e.detail}async locationChangeHandler(e){var t;(t=this.rooms[e.state.smoothlyPath])===null||t===void 0?void 0:t.element.setSelected(true,{history:true})}roomSelectedHandler(e){this.selected={element:e.target};if(this.burgerVisibility)this.menuOpen=false;if(!e.detail.history){const e=this.selected.element.path.toString();const t=new URL(window.location.pathname==e?window.location.href:window.location.origin);t.pathname=e;window.history.pushState({smoothlyPath:e},"",t.href)}}roomLoadedHandler(e){const t=this.rooms[e.target.path.toString()]={element:e.target};if(t.element.selected){this.selected=t;window.history.replaceState({smoothlyPath:t.element.path},"",window.location.href)}}clickHandler(e){if(this.burgerVisibility)if(e.composedPath().some((e=>e==this.burgerElement||e==this.navElement)));else this.menuOpen=false}render(){return t("smoothly-notifier",{key:"e9b90a7541f72cd1357e2bb68c1f26709984d176"},t("header",{key:"2fad88bef48cd6afcb8e5a3dc88c3126413e24cb",color:this.color},t("h1",{key:"56b0cf1059806fa6d522ff7c306d68e5b1fe6a02"},t("a",{key:"4609bf678748cbaf824c169f8723de0944d1940a",href:""},this.label)),t("slot",{key:"69b8995d75823b0dc79f9ac3e6589d93373d0b9e",name:"header"}),t("nav",{key:"74c0984bd564554aea61d69cc56057d49dc59431",ref:e=>this.navElement=e,class:{"menu-open":this.menuOpen}},t("ul",{key:"824b6fca8abe6cb0d94cf6af063522eb17bd7f24"},t("div",{key:"b341a3703747911119ce85bfcb799d85e8b36bc3",class:"nav-start-container"},t("slot",{key:"a88cd0274213cdcaea4750f26e543ff2a86458e9",name:"nav-start"})),t("slot",{key:"abefaa514bb2b5d9580c462d44356cc9336dbbad"}),t("div",{key:"3bd9dc239b15781dada1557337fda06525f03486",class:"nav-end-container"},t("slot",{key:"d42926c3698e00ef3d90cf9a0a2222c1b5ad0bbc",name:"nav-end"})))),t("smoothly-burger",{key:"174b04034324bd0e8e44416fe7781873c0749b01",ref:e=>this.burgerElement=e,open:this.menuOpen,onSmoothlyNavStatus:e=>this.burgerStatusHandler(e),onSmoothlyVisibleStatus:e=>this.burgerVisibilityHandler(e)})),t("main",{key:"116290e55aafdce447c85854f8f8a6040210b81a",ref:e=>this.mainElement=e}))}static get watchers(){return{selected:["selectedChanged"]}}};R.style=$;const P=class{constructor(t){e(this,t);this.baseUrl=undefined}render(){return t("smoothly-app",{key:"aa798117a543b094b87cd4f794e41c2c62eedcf5",color:"dark",label:"Smoothly Demo",home:"/root",ref:e=>this.app=e},t("smoothly-trigger",{key:"8576545a5f1408fe488c80ca5a0856650d3d5b49",slot:"nav-start",type:"link",name:"logout"},t("smoothly-icon",{key:"193f43f5a6d919ba06eec2a08149ed2374aee06f",toolTip:"Log out",name:"log-out",size:"medium"})),t("smoothly-app-room",{key:"e8844d73ceb204d13bfc279e946a0bac80dc4d68",path:"/root",label:"root"},t("smoothly-theme-demo",{key:"6cb3d1813bf4d9fe930ef3ed82215aac2af0d628"})),t("smoothly-app-room",{key:"cbf46329c16c64a199535b1553e7a8c672529fbc",path:"/links",label:"Links"},t("smoothly-input",{key:"4a9793a5fcca2a9addc6090c9c0cd671b1ebbd24",type:"text"},"Default"),t("div",{key:"14eeb3c49e15d784862c4f6e9d59c8a3d8da7963",style:{padding:"1em",maxWidth:"12em"}},t("smoothly-button",{key:"31b4d3395c2591401eb6dab6da14d6caac0411fe",fill:"solid",color:"danger",link:"https://google.com"},"open"),t("smoothly-button",{key:"bfad0b8b15643d8d31c85ee11a9c0e84db2ab6c9",fill:"solid",color:"danger",link:"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",type:"download"},"download"),t("smoothly-button",{key:"bebe8268049b005938a50db82b40c0ee87612743",fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),t("smoothly-button",{key:"e29cddc1f4bfd034dde47491361278c6ce87ba7d",disabled:true,fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),t("smoothly-button",{key:"d8cc0600b0632998ba1b869ad084edab91fad2e5",type:"link",fill:"clear",color:"danger",onClick:()=>alert("clicked")},"action link"))),t("smoothly-app-room",{key:"ac76d59a6a1abf64390f2abf922d5f5a6dee1669",path:"/form",label:"Form"},t("smoothly-form-demo",{key:"0bdc1d11f5b8f934dda4ff392458b08d4a70be3f"})),t("smoothly-app-room",{key:"4563223ad6f765c0939cc30cd45dc30cd5d69032",path:"/input",label:"Input"},t("smoothly-input-demo",{key:"375c06afd265f6307fc66e93c9835dc49ce3e6d6"})),t("smoothly-app-room",{key:"42e0a3a236f724591145301dd9df043f679af9ee",path:"/button",label:"Button"},t("smoothly-button-demo",{key:"5901292f12d2d24973a2cf5387508a431803b2e8"})),t("smoothly-app-room",{key:"d4a8784af2165b95cfc42aff5ca3be1e5c958e87",path:"/dialog",label:"Dialog"},t("smoothly-dialog-demo",{key:"35c854b7844271e48d3f0e6533f9306c8464baf0"})),t("smoothly-app-room",{key:"e2ad58e1f1265d3a5027cd3f224083e40d5973f7",path:"/display",label:"Display",icon:"eye-outline"},t("smoothly-display-demo",{key:"2bfc57d7150503495f8b12d2ed3d9ec7d5d89a88"})),t("smoothly-app-room",{key:"8d586a62c12cf26864db2f247ad12681f590a77d",path:"/table",label:"Table"},t("smoothly-table-demo",{key:"38415d9b5ce66403af5628b3348410592e67fa23"})),t("smoothly-app-room",{key:"751c2b58dcbc1863dcc5529d88dd4fdd903e757a",path:"/next",label:"Next"},t("smoothly-next-demo",{key:"4e59f67d38365c613cea03506f3084ea692ee586"})),t("smoothly-app-room",{key:"ae695b723b25a16a108fa9e0c2b3b09533e50286",path:"/tabs",label:"Tabs",slot:"nav-end"},t("smoothly-tabs-demo",{key:"c283c99faa9ac420440b044c3aeebe8a01ec43e4"})),t("smoothly-app-room",{key:"267db613a187c690e77b432dd39bcff73234ac38",path:"/icon",label:"Icon",content:t("smoothly-icon-demo",null),slot:"nav-end"}),t("smoothly-app-room",{key:"8bfbb99b17ad01a4fd09b8806a822546cdf720a3",path:"/redirect",label:"Redirect",slot:"nav-end"},t("smoothly-button",{key:"d4b35584d2c1287d720ebc459100761b276de121",type:"link",link:"/input"},"To input"),t("smoothly-button",{key:"8f207c300488db536215a3c61edb66519a22cc4d",type:"link",link:"../button"},"To button"),t("smoothly-button",{key:"c71e440088db8957a47434ab649fe7fe7c6c0f8e",type:"link",link:new URL("/hidden",window.location.origin).href},"To hidden"),t("smoothly-button",{key:"e6257c6f6da592e923ba67f73d587b35d2435d09",type:"link",link:"/redirect"},"To redirect"),t("smoothly-button",{key:"d55eb65cf2286b9fef264f8531f68b499af73199",type:"link",link:"nested"},"To redirect nested, relative path")),t("smoothly-app-room",{key:"3ba5cd1cfc05a1b00ec42ea9ddfebbe8abf74d02",path:"/hidden"},t("p",{key:"0033b0c86f9199c4623da10af5ad62ae3c89eb82"},"hello world!")),t("smoothly-app-room",{key:"5f43fc7540b1d3a123b278eed2b6be274a661fd5",path:"/redirect/nested"},"this is a nested room"))}};var N=class{constructor(e,t,o,s,a,i){this.type=3;this.name="";this.prefix="";this.value="";this.suffix="";this.modifier=3;this.type=e;this.name=t;this.prefix=o;this.value=s;this.suffix=a;this.modifier=i}hasCustomName(){return this.name!==""&&typeof this.name!=="number"}};var F=/[$_\p{ID_Start}]/u;var H=/[$_\u200C\u200D\p{ID_Continue}]/u;var U=".*";function Y(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function W(e,t=false){const o=[];let s=0;while(s<e.length){const a=e[s];const i=function(a){if(!t)throw new TypeError(a);o.push({type:"INVALID_CHAR",index:s,value:e[s++]})};if(a==="*"){o.push({type:"ASTERISK",index:s,value:e[s++]});continue}if(a==="+"||a==="?"){o.push({type:"OTHER_MODIFIER",index:s,value:e[s++]});continue}if(a==="\\"){o.push({type:"ESCAPED_CHAR",index:s++,value:e[s++]});continue}if(a==="{"){o.push({type:"OPEN",index:s,value:e[s++]});continue}if(a==="}"){o.push({type:"CLOSE",index:s,value:e[s++]});continue}if(a===":"){let t="";let a=s+1;while(a<e.length){const o=e.substr(a,1);if(a===s+1&&F.test(o)||a!==s+1&&H.test(o)){t+=e[a++];continue}break}if(!t){i(`Missing parameter name at ${s}`);continue}o.push({type:"NAME",index:s,value:t});s=a;continue}if(a==="("){let t=1;let a="";let n=s+1;let l=false;if(e[n]==="?"){i(`Pattern cannot start with "?" at ${n}`);continue}while(n<e.length){if(!Y(e[n],false)){i(`Invalid character '${e[n]}' at ${n}.`);l=true;break}if(e[n]==="\\"){a+=e[n++]+e[n++];continue}if(e[n]===")"){t--;if(t===0){n++;break}}else if(e[n]==="("){t++;if(e[n+1]!=="?"){i(`Capturing groups are not allowed at ${n}`);l=true;break}}a+=e[n++]}if(l){continue}if(t){i(`Unbalanced pattern at ${s}`);continue}if(!a){i(`Missing pattern at ${s}`);continue}o.push({type:"REGEX",index:s,value:a});s=n;continue}o.push({type:"CHAR",index:s,value:e[s++]})}o.push({type:"END",index:s,value:""});return o}function B(e,t={}){const o=W(e);t.delimiter??(t.delimiter="/#?");t.prefixes??(t.prefixes="./");const s=`[^${V(t.delimiter)}]+?`;const a=[];let i=0;let n=0;let l=new Set;const r=e=>{if(n<o.length&&o[n].type===e)return o[n++].value};const c=()=>r("OTHER_MODIFIER")??r("ASTERISK");const d=e=>{const t=r(e);if(t!==void 0)return t;const{type:s,index:a}=o[n];throw new TypeError(`Unexpected ${s} at ${a}, expected ${e}`)};const h=()=>{let e="";let t;while(t=r("CHAR")??r("ESCAPED_CHAR")){e+=t}return e};const m=e=>e;const y=t.encodePart||m;let b="";const u=e=>{b+=e};const f=()=>{if(!b.length){return}a.push(new N(3,"","",y(b),"",3));b=""};const p=(e,t,o,n,r)=>{let c=3;switch(r){case"?":c=1;break;case"*":c=0;break;case"+":c=2;break}if(!t&&!o&&c===3){u(e);return}f();if(!t&&!o){if(!e){return}a.push(new N(3,"","",y(e),"",c));return}let d;if(!o){d=s}else if(o==="*"){d=U}else{d=o}let h=2;if(d===s){h=1;d=""}else if(d===U){h=0;d=""}let m;if(t){m=t}else if(o){m=i++}if(l.has(m)){throw new TypeError(`Duplicate name '${m}'.`)}l.add(m);a.push(new N(h,m,y(e),d,y(n),c))};while(n<o.length){const e=r("CHAR");const o=r("NAME");let s=r("REGEX");if(!o&&!s){s=r("ASTERISK")}if(o||s){let a=e??"";if(t.prefixes.indexOf(a)===-1){u(a);a=""}f();let i=c();p(a,o,s,"",i);continue}const a=e??r("ESCAPED_CHAR");if(a){u(a);continue}const i=r("OPEN");if(i){const e=h();const t=r("NAME");let o=r("REGEX");if(!t&&!o){o=r("ASTERISK")}const s=h();d("CLOSE");const a=c();p(e,t,o,s,a);continue}f();d("END")}return a}function V(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function G(e){return e&&e.ignoreCase?"ui":"u"}function q(e,t,o){return Z(B(e,o),t,o)}function K(e){switch(e){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}function Z(e,t,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 a of e){if(a.type===3){if(a.modifier===3){s+=V(a.value)}else{s+=`(?:${V(a.value)})${K(a.modifier)}`}continue}if(t)t.push(a.name);const e=`[^${V(o.delimiter)}]+?`;let i=a.value;if(a.type===1)i=e;else if(a.type===0)i=U;if(!a.prefix.length&&!a.suffix.length){if(a.modifier===3||a.modifier===1){s+=`(${i})${K(a.modifier)}`}else{s+=`((?:${i})${K(a.modifier)})`}continue}if(a.modifier===3||a.modifier===1){s+=`(?:${V(a.prefix)}(${i})${V(a.suffix)})`;s+=K(a.modifier);continue}s+=`(?:${V(a.prefix)}`;s+=`((?:${i})(?:`;s+=V(a.suffix);s+=V(a.prefix);s+=`(?:${i}))*)${V(a.suffix)})`;if(a.modifier===0){s+="?"}}const a=`[${V(o.endsWith)}]|$`;const i=`[${V(o.delimiter)}]`;if(o.end){if(!o.strict){s+=`${i}?`}if(!o.endsWith.length){s+="$"}else{s+=`(?=${a})`}return new RegExp(s,G(o))}if(!o.strict){s+=`(?:${i}(?=${a}))?`}let n=false;if(e.length){const t=e[e.length-1];if(t.type===3&&t.modifier===3){n=o.delimiter.indexOf(t)>-1}}if(!n){s+=`(?=${i}|${a})`}return new RegExp(s,G(o))}var J={delimiter:"",prefixes:"",sensitive:true,strict:true};var X={delimiter:".",prefixes:"",sensitive:true,strict:true};var Q={delimiter:"/",prefixes:"/",sensitive:true,strict:true};function ee(e,t){if(!e.length){return false}if(e[0]==="/"){return true}if(!t){return false}if(e.length<2){return false}if((e[0]=="\\"||e[0]=="{")&&e[1]=="/"){return true}return false}function te(e,t){if(e.startsWith(t)){return e.substring(t.length,e.length)}return e}function oe(e,t){if(e.endsWith(t)){return e.substr(0,e.length-t.length)}return e}function se(e){if(!e||e.length<2){return false}if(e[0]==="["){return true}if((e[0]==="\\"||e[0]==="{")&&e[1]==="["){return true}return false}var ae=["ftp","file","http","https","ws","wss"];function ie(e){if(!e){return true}for(const t of ae){if(e.test(t)){return true}}return false}function ne(e,t){e=te(e,"#");if(t||e===""){return e}const o=new URL("https://example.com");o.hash=e;return o.hash?o.hash.substring(1,o.hash.length):""}function le(e,t){e=te(e,"?");if(t||e===""){return e}const o=new URL("https://example.com");o.search=e;return o.search?o.search.substring(1,o.search.length):""}function re(e,t){if(t||e===""){return e}if(se(e)){return ke(e)}else{return ge(e)}}function ce(e,t){if(t||e===""){return e}const o=new URL("https://example.com");o.password=e;return o.password}function de(e,t){if(t||e===""){return e}const o=new URL("https://example.com");o.username=e;return o.username}function he(e,t,o){if(o||e===""){return e}if(t&&!ae.includes(t)){const o=new URL(`${t}:${e}`);return o.pathname}const s=e[0]=="/";e=new URL(!s?"/-"+e:e,"https://example.com").pathname;if(!s){e=e.substring(2,e.length)}return e}function me(e,t,o){if(be(t)===e){e=""}if(o||e===""){return e}return ve(e)}function ye(e,t){e=oe(e,":");if(t||e===""){return e}return ue(e)}function be(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function ue(e){if(e===""){return e}if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function fe(e){if(e===""){return e}const t=new URL("https://example.com");t.username=e;return t.username}function pe(e){if(e===""){return e}const t=new URL("https://example.com");t.password=e;return t.password}function ge(e){if(e===""){return e}if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e)){throw new TypeError(`Invalid hostname '${e}'`)}const t=new URL("https://example.com");t.hostname=e;return t.hostname}function ke(e){if(e===""){return e}if(/[^0-9a-fA-F[\]:]/g.test(e)){throw new TypeError(`Invalid IPv6 hostname '${e}'`)}return e.toLowerCase()}function ve(e){if(e===""){return e}if(/^[0-9]*$/.test(e)&&parseInt(e)<=65535){return e}throw new TypeError(`Invalid port '${e}'.`)}function xe(e){if(e===""){return e}const t=new URL("https://example.com");t.pathname=e[0]!=="/"?"/-"+e:e;if(e[0]!=="/"){return t.pathname.substring(2,t.pathname.length)}return t.pathname}function we(e){if(e===""){return e}const t=new URL(`data:${e}`);return t.pathname}function Se(e){if(e===""){return e}const t=new URL("https://example.com");t.search=e;return t.search.substring(1,t.search.length)}function Ce(e){if(e===""){return e}const t=new URL("https://example.com");t.hash=e;return t.hash.substring(1,t.hash.length)}var ze=class{constructor(e){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=e}get result(){return this.internalResult}parse(){this.tokenList=W(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 e=7;let t=1;if(this.shouldTreatAsStandardURL){this.internalResult.pathname="/"}if(this.nextIsAuthoritySlashes()){e=2;t=3}else if(this.shouldTreatAsStandardURL){e=2}this.changeState(e,t)}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(e,t){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(e,t)}changeStateWithoutSettingComponent(e,t){this.state=e;this.componentStart=this.tokenIndex+t;this.tokenIndex+=t;this.tokenIncrement=0}rewind(){this.tokenIndex=this.componentStart;this.tokenIncrement=0}rewindAndSetState(e){this.rewind();this.state=e}safeToken(e){if(e<0){e=this.tokenList.length-e}if(e<this.tokenList.length){return this.tokenList[e]}return this.tokenList[this.tokenList.length-1]}isNonSpecialPatternChar(e,t){const o=this.safeToken(e);return o.value===t&&(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 e=this.safeToken(this.tokenIndex-1);return e.type!=="NAME"&&e.type!=="REGEX"&&e.type!=="CLOSE"&&e.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 e=this.tokenList[this.tokenIndex];const t=this.safeToken(this.componentStart).index;return this.input.substring(t,e.index)}computeShouldTreatAsStandardURL(){const e={};Object.assign(e,J);e.encodePart=ue;const t=q(this.makeComponentString(),void 0,e);this.shouldTreatAsStandardURL=ie(t)}};var je=["protocol","username","password","hostname","port","pathname","search","hash"];var _e="*";function Te(e,t){if(typeof e!=="string"){throw new TypeError(`parameter 1 is not of type 'string'.`)}const o=new URL(e,t);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 Ie(e,t){if(!t){return e}return Oe(e)}function Le(e,t,o){let s;if(typeof t.baseURL==="string"){try{s=new URL(t.baseURL);e.protocol=Ie(s.protocol.substring(0,s.protocol.length-1),o);e.username=Ie(s.username,o);e.password=Ie(s.password,o);e.hostname=Ie(s.hostname,o);e.port=Ie(s.port,o);e.pathname=Ie(s.pathname,o);e.search=Ie(s.search.substring(1,s.search.length),o);e.hash=Ie(s.hash.substring(1,s.hash.length),o)}catch{throw new TypeError(`invalid baseURL '${t.baseURL}'.`)}}if(typeof t.protocol==="string"){e.protocol=ye(t.protocol,o)}if(typeof t.username==="string"){e.username=de(t.username,o)}if(typeof t.password==="string"){e.password=ce(t.password,o)}if(typeof t.hostname==="string"){e.hostname=re(t.hostname,o)}if(typeof t.port==="string"){e.port=me(t.port,e.protocol,o)}if(typeof t.pathname==="string"){e.pathname=t.pathname;if(s&&!ee(e.pathname,o)){const t=s.pathname.lastIndexOf("/");if(t>=0){e.pathname=Ie(s.pathname.substring(0,t+1),o)+e.pathname}}e.pathname=he(e.pathname,e.protocol,o)}if(typeof t.search==="string"){e.search=le(t.search,o)}if(typeof t.hash==="string"){e.hash=ne(t.hash,o)}return e}function Oe(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function Ee(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Ae(e,t){t.delimiter??(t.delimiter="/#?");t.prefixes??(t.prefixes="./");t.sensitive??(t.sensitive=false);t.strict??(t.strict=false);t.end??(t.end=true);t.start??(t.start=true);t.endsWith="";const o=".*";const s=`[^${Ee(t.delimiter)}]+?`;const a=/[$_\u200C\u200D\p{ID_Continue}]/u;let i="";for(let n=0;n<e.length;++n){const l=e[n];if(l.type===3){if(l.modifier===3){i+=Oe(l.value);continue}i+=`{${Oe(l.value)}}${K(l.modifier)}`;continue}const r=l.hasCustomName();let c=!!l.suffix.length||!!l.prefix.length&&(l.prefix.length!==1||!t.prefixes.includes(l.prefix));const d=n>0?e[n-1]:null;const h=n<e.length-1?e[n+1]:null;if(!c&&r&&l.type===1&&l.modifier===3&&h&&!h.prefix.length&&!h.suffix.length){if(h.type===3){const e=h.value.length>0?h.value[0]:"";c=a.test(e)}else{c=!h.hasCustomName()}}if(!c&&!l.prefix.length&&d&&d.type===3){const e=d.value[d.value.length-1];c=t.prefixes.includes(e)}if(c){i+="{"}i+=Oe(l.prefix);if(r){i+=`:${l.name}`}if(l.type===2){i+=`(${l.value})`}else if(l.type===1){if(!r){i+=`(${s})`}}else if(l.type===0){if(!r&&(!d||d.type===3||d.modifier!==3||c||l.prefix!=="")){i+="*"}else{i+=`(${o})`}}if(l.type===1&&r&&!!l.suffix.length){if(a.test(l.suffix[0])){i+="\\"}}i+=Oe(l.suffix);if(c){i+="}"}if(l.modifier!==3){i+=K(l.modifier)}}return i}var De=class{constructor(e={},t,o){this.regexp={};this.names={};this.component_pattern={};this.parts={};try{let s=void 0;if(typeof t==="string"){s=t}else{o=t}if(typeof e==="string"){const t=new ze(e);t.parse();e=t.result;if(s===void 0&&typeof e.protocol!=="string"){throw new TypeError(`A base URL must be provided for a relative constructor string.`)}e.baseURL=s}else{if(!e||typeof e!=="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 a={ignoreCase:o.ignoreCase===true};const i={pathname:_e,protocol:_e,username:_e,password:_e,hostname:_e,port:_e,search:_e,hash:_e};this.pattern=Le(i,e,true);if(be(this.pattern.protocol)===this.pattern.port){this.pattern.port=""}let n;for(n of je){if(!(n in this.pattern))continue;const e={};const t=this.pattern[n];this.names[n]=[];switch(n){case"protocol":Object.assign(e,J);e.encodePart=ue;break;case"username":Object.assign(e,J);e.encodePart=fe;break;case"password":Object.assign(e,J);e.encodePart=pe;break;case"hostname":Object.assign(e,X);if(se(t)){e.encodePart=ke}else{e.encodePart=ge}break;case"port":Object.assign(e,J);e.encodePart=ve;break;case"pathname":if(ie(this.regexp.protocol)){Object.assign(e,Q,a);e.encodePart=xe}else{Object.assign(e,J,a);e.encodePart=we}break;case"search":Object.assign(e,J,a);e.encodePart=Se;break;case"hash":Object.assign(e,J,a);e.encodePart=Ce;break}try{this.parts[n]=B(t,e);this.regexp[n]=Z(this.parts[n],this.names[n],e);this.component_pattern[n]=Ae(this.parts[n],e)}catch(e){throw new TypeError(`invalid ${n} pattern '${this.pattern[n]}'.`)}}}catch(e){throw new TypeError(`Failed to construct 'URLPattern': ${e.message}`)}}test(e={},t){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof e!=="string"&&t){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof e==="undefined"){return false}try{if(typeof e==="object"){o=Le(o,e,false)}else{o=Le(o,Te(e,t),false)}}catch(e){return false}let s;for(s of je){if(!this.regexp[s].exec(o[s])){return false}}return true}exec(e={},t){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof e!=="string"&&t){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof e==="undefined"){return}try{if(typeof e==="object"){o=Le(o,e,false)}else{o=Le(o,Te(e,t),false)}}catch(e){return null}let s={};if(t){s.inputs=[e,t]}else{s.inputs=[e]}let a;for(a of je){let e=this.regexp[a].exec(o[a]);if(!e){return null}let t={};for(let[o,s]of this.names[a].entries()){if(typeof s==="string"||typeof s==="number"){let a=e[o+1];t[s]=a}}s[a]={input:o[a]??"",groups:t}}return s}static compareComponent(e,t,o){const s=(e,t)=>{for(let o of["type","modifier","prefix","value","suffix"]){if(e[o]<t[o])return-1;else if(e[o]===t[o])continue;else return 1}return 0};const a=new N(3,"","","","",3);const i=new N(0,"","","","",3);const n=(e,t)=>{let o=0;for(;o<Math.min(e.length,t.length);++o){let a=s(e[o],t[o]);if(a)return a}if(e.length===t.length){return 0}return s(e[o]??a,t[o]??a)};if(!t.component_pattern[e]&&!o.component_pattern[e]){return 0}if(t.component_pattern[e]&&!o.component_pattern[e]){return n(t.parts[e],[i])}if(!t.component_pattern[e]&&o.component_pattern[e]){return n([i],o.parts[e])}return n(t.parts[e],o.parts[e])}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=De}const Me='.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 $e=Me;const Re=class{constructor(t){e(this,t);this.smoothlyRoomSelected=o(this,"smoothlyRoomSelected",7);this.smoothlyRoomLoaded=o(this,"smoothlyRoomLoaded",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.smoothlyRoomLoaded.emit({selected:this.selected})}async getContent(){return this.contentElement}async setSelected(e,t){this.selected=e;if(e)this.smoothlyRoomSelected.emit({history:!!(t===null||t===void 0?void 0:t.history)})}clickHandler(e){if(!e.metaKey&&!e.ctrlKey&&e.which!=2&&e.button!=1){e.preventDefault();this.setSelected(true)}}render(){return t(s,{key:"c8a335193ee0aa36091178413f9c66aeedb8c055"},t("li",{key:"14789089daba4c466cfae4f85d4cc00f713d2f7d"},t("a",{key:"5fa57305ed064e5c797b19bbdb21bb80798e5bd7",href:typeof this.path=="string"?this.path:this.path.pathname,onClick:e=>this.clickHandler(e)},this.icon&&t("smoothly-icon",{key:"8e460965cfcf0be0dbc4ec3b0a5f2fac870c8847",name:this.icon}),this.label&&t("span",{key:"df177b3036464c00da7b305b59425e2421809adc",class:"label"},this.label))),t("div",{key:"8efc7494ce11d1260c32aba361d72a5a51cac010",ref:e=>this.contentElement=e},this.content&&t("smoothly-lazy",{key:"2bd422f0c20d4e56746dce0d120c578171a70a57",content:this.content}),t("slot",{key:"d45b27b47bd8bdb85fed17fc196d53eb33234bd8"})))}};Re.style=$e;const Pe=".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 Ne=Pe;const Fe=class{constructor(t){e(this,t);this.opacity="0.5";this.bottom="1rem";this.right="1rem";this.visible=undefined}componentWillLoad(){var e;this.scrollableParent=n.findParent(this.element);(e=this.scrollableParent)===null||e===void 0?void 0:e.addEventListener("scroll",(()=>{var e,t;this.visible=((t=(e=this.scrollableParent)===null||e===void 0?void 0:e.scrollTop)!==null&&t!==void 0?t:0)>20}))}render(){const e={"--opacity":this.visible?this.opacity:"0","--pointer-events":this.visible?"auto":"none","--bottom":this.bottom,"--right":this.right};return t(s,{key:"d58ae307b6f213cac17096127f4f02f89261134e",style:e,onClick:()=>{var e;return(e=this.scrollableParent)===null||e===void 0?void 0:e.scrollTo({top:0,left:0,behavior:"smooth"})}},t("smoothly-icon",{key:"ced3df0d986862792b4233ab646aa39acfbf5276",name:"caret-up-outline"}))}get element(){return a(this)}};Fe.style=Ne;const He="[visible].sc-smoothly-burger-h{display:flex;justify-content:center;align-items:center;height:100%}[visible].sc-smoothly-burger-h .burger.sc-smoothly-burger smoothly-icon.sc-smoothly-burger{font-size:1.7em;cursor:pointer;margin-right:1em}.sc-smoothly-burger-h:not([visible]){display:none}.sc-smoothly-burger-h:not([open]) smoothly-icon.sc-smoothly-burger{transform:rotate(0deg);transition:transform 100ms ease-in-out}[open].sc-smoothly-burger-h smoothly-icon.sc-smoothly-burger{transform:rotate(-90deg);transition:transform 100ms ease-in-out}";const Ue=He;const Ye=class{constructor(t){e(this,t);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(e){if(this.visible)this.open=!this.open}resizeHandler(){const e=window.matchMedia(this.mediaQuery).matches;if(e!=this.history){if(e){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=e}render(){return t(s,{key:"6e32b13474959bdbd15eb7be2339e1e14f109d33"},t("span",{key:"93fc4c98a838d5a37f5df7ac675e201b9c017cfd",class:"burger"},t("smoothly-icon",{key:"6c11e78a8e1ba2180ec15117a5affa8bcd52f4bd",name:"menu"})))}get element(){return a(this)}static get watchers(){return{open:["openChanged"]}}};Ye.style=Ue;const We=({disabled:e,type:o,link:s},a)=>e&&(s||o=="link")?t("slot",null):o=="link"?t("a",{href:s,onClick:!s||!Ve(s)?undefined:e=>(e.preventDefault(),I(Be(s)))},t("slot",{name:"start"}),t("slot",null),a,t("slot",{name:"end"})):o=="download"?t("a",{href:s,target:"_blank",download:true},t("slot",{name:"start"}),t("slot",null),a,t("slot",{name:"end"})):t("button",{type:o,disabled:e},t("slot",{name:"start"}),t("slot",null),a,t("slot",{name:"end"}));function Be(e){let t;if(e.startsWith(window.location.origin))t=new URL(e).pathname;else if(e.match(/^\//))t=new URL(e,window.location.origin).pathname;else t=new URL(`${window.location.pathname.replace(/\/+$/,"")}/${e}`,window.location.origin).pathname;return t}function Ve(e){return new URL(e,window.location.origin).origin==window.location.origin}const Ge='[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 qe=Ge;const Ke=class{constructor(t){e(this,t);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 t(We,{key:"d9f40ca3fcace86a986f242917b8f1965f2e7bed",disabled:this.disabled,type:this.type,link:this.link},t("slot",{key:"0d4561fa6cb301d7bd37c4f614b760943074298c"}))}};Ke.style=qe;const Ze=".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 Je=Ze;const Xe=class{constructor(t){e(this,t);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(e){if(this.clickTimeStamp&&e.timeStamp-this.clickTimeStamp>this.doubleClickTime*1e3){this.timer&&window.clearTimeout(this.timer);this.clickTimeStamp=undefined;this.smoothlyConfirm.emit({[this.name]:true})}else{this.clickTimeStamp=e.timeStamp;this.timer=window.setTimeout((()=>{this.clickTimeStamp=undefined}),2e3)}}render(){return t(s,{key:"f6fef52919cece13e8cefc87e6876375057a0f07",warning:this.clickTimeStamp},t("smoothly-button",{key:"15ba285763f7e51d255144bf7b4a74c4e12ecc22",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:"warning",disabled:this.disabled,type:"button",onClick:e=>this.clickHandler(e)},t("smoothly-icon",{key:"ab590fe61a83cede946727532183e7fa3f3420bf",name:"alert-outline",fill:this.fill,color:"warning",size:this.size==="icon"?"tiny":"small"})),t("smoothly-button",{key:"7e2f4b3056cea2eacba62a7e0ebaaa967ab98f4d",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:this.color,disabled:this.disabled,type:"button",onClick:e=>this.clickHandler(e)},t("slot",{key:"516023c4ad2d3080f49284d5f6ae9b299954c977"})))}};Xe.style=Je;const Qe="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 et=Qe;const tt=class{constructor(t){e(this,t)}render(){return[t("h2",{key:"3c8025ac2be655262bcd2b450a7bf231a4fb4895"},"Buttons"),t("section",{key:"7135bb7d07661d9c7feef8b28bd17f0cc2c290c2"},t("h4",{key:"a15d2adbce40601099357e61ceb47627f491e820"},"Confirm button (two clicks)"),t("div",{key:"ae1862a69fa8a949b3eb4338fcd42db23f33e0ea"},t("smoothly-button-confirm",{key:"c2408dce7880cb2c97feb9abf74cfe23293d9e8a",name:"confirm",shape:"rounded",color:"danger",size:"large"},"Delete"),t("smoothly-button-confirm",{key:"b933c3bfcc21591ea587c022be60b5dfa83d29dd",name:"confirm-icon",shape:"rounded",color:"success",size:"icon"},t("smoothly-icon",{key:"bb53ab8ab65c37b896d4d8889187fbaf1453b6aa",name:"checkmark-outline",size:"tiny"})),t("smoothly-button-confirm",{key:"29e5f6c63362ec0f2d67212ec119fb1527cf0715",name:"confirm-icon",shape:"rounded",color:"danger",size:"icon",fill:"outline"},t("smoothly-icon",{key:"5503b6db201faf2fc6756efb8eb7eed61f4e99b3",name:"trash-outline",size:"tiny",fill:"outline"}))),t("h4",{key:"ff82842ee1489a963ff6e609496210f1551c96d2"},"Toggle button"),t("smoothly-toggle",{key:"6222a1678c626c55914eac351c85d72a7f34baf9"},t("smoothly-icon",{key:"8bac18e6a2e093b6b3351e213f80f8659cf2bfad",name:"card",fill:"solid",slot:"icon-slot"})),t("smoothly-toggle",{key:"1f6fb978ecb57512a2edb0e827f3f755b9fed7b3"},t("smoothly-icon",{key:"92e78f07a80098c87db14a753ee185bbb4787965",name:"briefcase",slot:"icon-slot"})),t("smoothly-toggle",{key:"9dd282964fd8c821f9eaa4835a94ee46792160fd"},t("smoothly-icon",{key:"27fde3eb695917bb2aa80166deb3f79763672615",name:"airplane",slot:"icon-slot"})),t("smoothly-toggle-switch-demo",{key:"8142bb42ee3d41d537aaf9881499d8c14ae636ab"}),t("h4",{key:"8bf7ce023276823e238dc778ea7de087227b3c55"},"Links with icons"),t("smoothly-button",{key:"5dc5c52e56653c38b24653f8a09492b657a52812",type:"link"},t("smoothly-icon",{key:"bd37a7612e50a5b46a463cb33fcb3d3db4984fdc",name:"checkmark-circle",slot:"start"}),"type link"),t("smoothly-button",{key:"8c88fe90275d89b4d9266292ee5dfe2c89189453",type:"button",color:"warning",fill:"default"},t("smoothly-icon",{key:"7d0f38f8def892c6a70f94cfae60c97379f97a19",name:"call",slot:"start"}),t("a",{key:"c9a545939c8c69a936d7234f667a38304475ce29",href:"https://google.com"},"link")),t("smoothly-button",{key:"19ad20237f00b0fc3be118342479c542172aac85",link:"https://google.com",type:"link"},t("smoothly-icon",{key:"9417f3deb9468f0ec67b5e6f2e691d75237dfd8b",name:"arrow-forward",slot:"end"}),"link + type link"),t("h4",{key:"431e11211e7388a31e74c05c872f1225da3a8f2d"},"Size and Color test"),t("smoothly-button",{key:"e06b07125a4809a2fbfba8b663e7df05f2cafe2a",color:"primary",fill:"solid",size:"small",shape:"rounded"},"Color Primary + Small"),t("smoothly-button",{key:"4e6e0cd9552783605c85c0179ceb9867073d52f2",color:"secondary",fill:"solid",shape:"rounded"},"Color Secondary + Default"),t("smoothly-button",{key:"86e387b350d60cf3bf568aab93a4f87351556b03",color:"warning",fill:"solid",size:"large"},"Color Warning + Large"),t("smoothly-button",{key:"81ae2d506757e6d6aefa22389b27cf52115b0cd6",color:"danger",fill:"solid",size:"small",shape:"rounded"},"Color Danger + Small"),t("smoothly-button",{key:"8e54050a99f8373f550dc225ec562415d6a28341",color:"success",fill:"solid",size:"small",shape:"rounded"},"Color Success + Small"),t("smoothly-button",{key:"73fff1e9835ea73331f883f877b330ffc92366e2",color:"tertiary",fill:"solid",size:"small",shape:"rounded"},"Color Tertiary + Small"),t("smoothly-button",{key:"38c004df8478e18cfaadeafb000d566e618cd4ce",color:"dark",fill:"solid",size:"small",shape:"rounded"},"Color Dark + Small"),t("smoothly-button",{key:"423bc99ba52358b5fab7d023926c13d3d4147f79",color:"medium",fill:"solid",size:"small",shape:"rounded"},"Color Medium + Small"),t("smoothly-button",{key:"66f6cfaa814db14e2eb4dc58ff61d3f3e5df6407",color:"light",fill:"solid",size:"small",shape:"rounded"},"Color Light + Small"),t("h4",{key:"e8ab771bcfd1cb19d506768c70bd1489c3a63612"},"Expand examples"),t("smoothly-button",{key:"c33ba658c35a6d638885657a10b8355c1a39cad8",color:"secondary",fill:"solid",expand:"full"},"Color Secondary + Default"),t("smoothly-button",{key:"893978e950151a1f3bd34fa4e4d67be88a703f94",color:"warning",fill:"solid",expand:"block"},"Color Warning + Large"),t("h4",{key:"7ca51c36f0f7795529b768ff164fe897a545a503"},"Fill examples"),t("div",{key:"352da5da95852f703b34102dacd5056e96d49d2f"},t("smoothly-button",{key:"11060ec131da8694e760f9659ed298ff064bd02c",shape:"rounded",color:"primary",fill:"solid"},t("smoothly-icon",{key:"c1720e101a57dd3d3c6142ff00d7b6d3050b93ce",name:"checkmark-circle",slot:"start"}),"Fill Solid"),t("smoothly-button",{key:"a04d9f0204302610c9394e95bf954764fe8eaf8c",shape:"rounded",color:"secondary",fill:"outline"},t("smoothly-icon",{key:"d6dc32cc36c6f801abf35271167d2bca787faea3",name:"checkmark-circle",slot:"start"}),"Fill Outline"),t("smoothly-button",{key:"ffd1db87eaeb7e12f983146449be5d79e7de2b53",shape:"rounded",color:"tertiary",fill:"clear"},t("smoothly-icon",{key:"15086ae92c84b20973d964c699b219cca193fd6d",name:"checkmark-circle",slot:"start"}),"Fill Clear"),t("smoothly-button",{key:"461519344c8a5024d6b0dce79171375645abbdf8",size:"icon",shape:"rounded",color:"success",fill:"solid"},t("smoothly-icon",{key:"1068fe90e108438f28c66f8f4c6b2a6f203120df",name:"basketball"}))),t("h4",{key:"8e09f401d9ec18825e5b248cac01bddbf10ad95b"},'Buttons with Icon in "start"'),t("div",{key:"d17091668a8b535291fe14b7fb5fa64bcee3d77d"},t("smoothly-button",{key:"7fbcf5e63dfa6370f6ea8db63fe23eaafdf92d56",shape:"rounded",fill:"solid",color:"warning"},t("smoothly-icon",{key:"43da748cdca6199f9b0d677ec26a6ed14349522e",name:"checkmark-circle",slot:"start"}),"Check"),t("smoothly-button",{key:"dc64fcac7f381493149bd161dc78fa0b75d1e01f",shape:"rounded",fill:"solid",color:"secondary"},t("smoothly-icon",{key:"b64e9f855ee14612b83a4d6d320247056825e85a",name:"basketball",slot:"start"}),"Check"),t("smoothly-button",{key:"f714f8a9a143d68077a10e9bcc3008aebe34b931",shape:"rounded",fill:"solid",color:"success"},t("smoothly-icon",{key:"b39275e626a28eceb0d6c34b1781f175cf012b2d",name:"call",slot:"start"}),"Check"),t("smoothly-button",{key:"3c744c78969e58dbff1efadd767c59353a261a3b",size:"icon",fill:"solid",shape:"rounded",color:"success"},t("smoothly-icon",{key:"64aa5126a00bd7e0c157defe25e0c0a636f6a524",name:"call"})),t("smoothly-button",{key:"a5fff4c066a80e3e1b592b76facee2bb4bba2083",size:"flexible",fill:"solid",color:"success"},t("smoothly-icon",{key:"a3d95e518c35e3f4e508d303dad7d1b40c55319a",name:"airplane"}))),t("h4",{key:"308a6bfd84cfc8466d3df9900b39577edd0d58de"},'Buttons with Icon in "end"'),t("smoothly-button",{key:"d2a76de598220adf8083e951bc2694d81643c833",fill:"solid",color:"light"},"Go Forward",t("smoothly-icon",{key:"878b5626becbb010ac6b8556251fe51b0360cf22",name:"arrow-forward",slot:"end"})),t("h4",{key:"94f535345d7687b50d2d07cc3d61b24ca18ed4a0"},"Test for icon button"),t("div",{key:"9a3da368b7c537da7f95d60d75509940d462329e"},t("smoothly-button",{key:"065d688ae55163481d40f96e12c8e917360fc05b",size:"icon",fill:"solid",shape:"rounded",color:"success"},t("smoothly-icon",{key:"758c53a3eae336fbf8d3d7270236e4105ed532d4",name:"call"})),t("smoothly-button",{key:"32b14031344f9c74984ae1d8da0715b0b2b76be0",size:"icon",shape:"rounded",color:"warning",fill:"solid"},t("smoothly-icon",{key:"8e1988d9199e234f1b206d81fc69457c0461edf0",name:"search-outline"})),t("smoothly-button",{key:"16d4c1196b3b9f39777649f5047e5024624367a3",size:"icon",shape:"rounded",color:"secondary"},t("smoothly-icon",{key:"f217f1893799b98be1aee4d07f91766e791d5a6b",name:"checkmark-circle"}))),t("h4",{key:"07490863a687effc3cce1e96b730cb73441470e5"},"Link examples"),t("div",{key:"8d551baa54233f19b6829cbe6bd83498c2a8cc33"},t("smoothly-button",{key:"6eee7e1bc81598a59034ea1677795e0552b62327",type:"link"},"type link"),t("smoothly-button",{key:"c9121104f5847dc29da2bf88f09d8c7bab43ffbc",type:"button",fill:"clear"},t("a",{key:"b8cc19e6bd19dd64138d909e3a7e2a966c1ba8dd",href:"https://google.com"},"link")),t("smoothly-button",{key:"d47a8cb6b0f0102411f7badf1829d8d1c7ffd66c",link:"https://google.com",type:"link"},"link + type link")),t("h4",{key:"5468594fd4858fe83b593dac3e1da0a0982182bf"},"Disabled buttons"),t("div",{key:"cd4000d7596bc837b5735e72ac50a047f985244b"},t("smoothly-button",{key:"cd0fae2e3e985640c3cc8a89e34ef7c5c84c55d6",disabled:true,fill:"solid",color:"secondary"},"Disabled"),t("smoothly-button",{key:"72ed13dfb8bc8262daab63047dfb455f1fb602f7",type:"link",link:"https://google.com",disabled:true},"Disabled link"))),t("smoothly-back-to-top",{key:"2ec8649e3e567d6875b2c6a07125bdebd844786a"})]}};tt.style=et;function ot(e){const t=new Date(e);t.setDate(1);let o=-((t.getDay()+6)%7)+1;const s=[];for(let t=0;t<6;t++){const a=[];for(let t=0;t<7;t++){const t=new Date(e);t.setUTCDate(o++);a.push(k.create(t))}if(t<5||k.firstOfMonth(a[0])==k.firstOfMonth(e))s.push(a)}return s}function st(){const e=new globalThis.Date;e.setDate(e.getDate()-e.getDay()+1);const t=[];for(let o=0;o<7;o++){t.push(e.toLocaleString(undefined,{weekday:"short"}));e.setDate(e.getDate()+1)}return t}function at(e){const t=new globalThis.Date(e);const o=[];for(let s=0;s<12;s++){t.setMonth(s,28);const a=k.create(t);o.push({date:a,name:t.toLocaleString(undefined,{month:"long"}),selected:a.substr(0,7)==e.substr(0,7)})}return o}function it(e,t,o){const s=new globalThis.Date(e);const a=t?k.getYear(t):(new Date).getFullYear()-50;const i=o?k.getYear(o):(new Date).getFullYear()+50;const n=[];for(let t=a;t<=i;t++){s.setFullYear(t);const o=k.create(s);n.push({date:o,name:s.toLocaleString(undefined,{year:"numeric"}),selected:o==e})}return n}const nt='.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 lt=nt;const rt=class{constructor(t){e(this,t);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(e){this.smoothlyStartChange.emit(e)}onEnd(e){this.smoothlyEndChange.emit(e)}onClick(e){this.smoothlyValueChange.emit(this.value=e);this.clickCounter+=1;if(this.doubleInput){if(this.clickCounter%2==1)this.start=this.end=this.frozenDate=e;else{if(this.start&&e>this.start)this.end=e;else this.start=e}}!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(e){if(this.doubleInput&&this.clickCounter%2==1){if(e<this.frozenDate){this.start=e;this.end=this.frozenDate}else{this.start=this.frozenDate;this.end=e}}}withinLimit(e){return(!this.min||e>=this.min)&&(!this.max||e<=this.max)}render(){var e,o,s;return t(i,{key:"72c5a169add38daacba482bf64d5e0ac4e5376f2"},t("smoothly-input-month",{key:"400a611870cd3bd1dfef25b76497a7ddef88db0b",name:"month",value:(e=this.month)!==null&&e!==void 0?e:this.value,min:this.min,max:this.max,inCalendar:true,next:true,previous:true,showLabel:false,onSmoothlyInput:e=>{e.stopPropagation();"month"in e.detail&&typeof e.detail.month=="string"&&(this.month=e.detail.month)}},t("div",{key:"8c399dd9fdfd8de727bde48d1123d78f25f208a8",slot:"year-label"},t("slot",{key:"9e8fbc095327b1a09c7ac6c71817d9157d20b53d",name:"year-label"})),t("div",{key:"56fc2501be0d3fc5a7156e5156cfe0db7294f7f2",slot:"month-label"},t("slot",{key:"715855818d0299d69946f44d4b2031a47f3ce0a2",name:"month-label"}))),t("table",{key:"25a94c6bd36a6a509402b152456de995411cf00c"},t("thead",{key:"d310889be1da1ecef2b1a15aa5537815ed014660"},t("tr",{key:"2aabd32a00df64e4692d91c797934c5309e42a6c"},st().map((e=>t("th",null,e))))),ot((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:k.now()).map((e=>t("tr",null,e.map((e=>{var o,s,a,i;return t("td",{tabindex:1,onMouseOver:()=>this.withinLimit(e)?this.onHover(e):undefined,onClick:this.withinLimit(e)?()=>this.onClick(e):undefined,class:{selected:e==this.value||this.doubleInput&&(e==this.start||e==this.end),today:e==k.now(),currentMonth:k.firstOfMonth((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:k.now())==k.firstOfMonth(e),dateRange:this.doubleInput&&e>((a=this.start)!==null&&a!==void 0?a:"")&&e<((i=this.end)!==null&&i!==void 0?i:""),disable:!this.withinLimit(e)}},e.substring(8,10))})))))))}get element(){return a(this)}static get watchers(){return{start:["onStart"],end:["onEnd"]}}};rt.style=lt;const ct=".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 dt=ct;const ht=class{constructor(t){e(this,t);this.color=undefined;this.open=true;this.closable=false;this.header=undefined}TriggerListener(e){if(l.is(e.detail)&&e.detail.name=="close")this.open=false}hostData(){return{style:{display:this.open?"block":"none"}}}__stencil_render(){return t("section",{key:"895d01d3dc41982402c51de51028bd6f775fc83a"},t("div",{key:"a10dddff73f3afde845bed759770b71c9fe87d17",class:"header"},this.closable&&t("smoothly-trigger",{key:"42957dd2cfa11eb08041897a84073d93e87d7f11",fill:"clear",name:"close"},t("smoothly-icon",{key:"245fed623b099c0c7d8aff0c2a098c5730329a3d",name:"close-circle",fill:"solid",color:this.color})),this.header?t("h1",null,this.header):t("slot",{name:"header"})),t("div",{key:"0ad2e35ade6a11497a69b5e6c63be9f05de79c78",class:"content"},t("slot",{key:"0af86e9eda2be05845a2653a1e97c60848911e03"})))}render(){return t(s,this.hostData(),this.__stencil_render())}};ht.style=dt;const mt=".sc-smoothly-dialog-demo-h>smoothly-button.sc-smoothly-dialog-demo{display:block;margin-block:2rem}";const yt=mt;const bt=class{constructor(t){e(this,t);this.openModal=false;this.openTallModal=false;this.showFrame=false}render(){return t(s,{key:"6f23592546df981ab328a997d491fc38dd018cd9"},t("smoothly-button",{key:"10c77679cf0d56bc2a6f72a811af6a8565c8a089",fill:"solid",color:"light",onClick:()=>this.openModal=true},"Open Modal"),t("smoothly-button",{key:"3ac4824da8c88e874ef3ce1fd074c14eb03b564c",fill:"solid",color:"light",onClick:()=>this.openTallModal=true},"Open Modal with long text and top-aligned."),t("smoothly-button",{key:"90b57556f3c083e437e6adf978ca5985d2dcbdac",fill:"solid",color:"light",onClick:()=>this.showFrame=!this.showFrame},"Show Frame"),t("smoothly-modal",{key:"d3302307ea096a2f80305f2d5ef18fa5e97a723e",closable:true,open:this.openModal,onSmoothlyModalChange:e=>this.openModal=e.detail},t("h2",{key:"7659aef15bb808a8057ecf1be592d3a98c84000c",slot:"header"},"Modal"),t("span",{key:"68eec929d76adaf9abb535220d7fbe7a7fcf8b0a"},"Are you sure you want to confirm this action?"),t("smoothly-button",{key:"85963882f77a2d5d05076a873dc612a9dbb1d735",slot:"actions",color:"success"},"Confirm"),t("smoothly-button",{key:"a106ae037ea3c9ec9bbcc33f6a00324220b07b61",slot:"actions",color:"light",fill:"outline",onClick:()=>this.openModal=false},"Cancel")),t("smoothly-modal",{key:"9d91b3f59755964920ae0a9dba277b7de4795d09",closable:true,open:this.openTallModal,onSmoothlyModalChange:e=>this.openTallModal=e.detail,align:"top"},t("h2",{key:"b8f58b34e93ea54fdb83880b6a132aedd530d69b",slot:"header"},"Modal"),t("smoothly-summary",{key:"454a5f57522f0dbb0e2eb56365d62968a07b8f8c"},t("div",{key:"17607ba2a7b918eed58e4f827697aaccc1a3849b",slot:"summary"},"Lorem ipsum"),t("div",{key:"fda1929764661b8ceee7fff0de965716590d04fb",slot:"content"},Array.from({length:10}).map((()=>t("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."))))),t("smoothly-button",{key:"c176e661ec34df09bde9beffdf502264851a9548",slot:"actions",color:"light",fill:"outline",onClick:()=>this.openTallModal=false},"Cancel")),this.showFrame&&t("smoothly-dialog",{key:"0596a4eba8b82b63d6711cb8f9e840eebf537072",closable:true},t("smoothly-frame",{key:"1a027bc120e983af8790e4b03d47195b092deaa4",url:"https://www.wikipedia.org/",name:"parent",style:{height:"80vh"}})))}};bt.style=yt;function ut(e,t,o){let s=0;while(o.exec(e)!=null){s=o.lastIndex;if(o.lastIndex>t)break}o.lastIndex<=t&&(s=e.length);return s}function ft(e,t,o){let s=0;let a;while((a=o.exec(e))!=null){if(o.lastIndex-a[0].length<t)s=o.lastIndex-a[0].length;else break}return s}function pt(e,t,o){const s=/([\wåäöüéáúíóßðœøæñµçþ_]+|[@-]+)/gi;return o=="backward"?ft(e,t,s):ut(e,t,s)}var gt;(function(e){function t(e){return e.direction=="backward"?e.start:e.end}e.getCursor=t;function o(e){return e.direction!="backward"?e.start:e.end}e.getStalker=o})(gt||(gt={}));var kt;(function(e){function t(e){return{value:e.value,selection:{start:e.selection.start,end:e.selection.end,direction:e.selection.direction},remainder:e.remainder}}e.copy=t})(kt||(kt={}));class vt{value;selection;constructor(e){this.value=e.value;this.selection={start:e.selection?.start,end:e.selection?.end,direction:e.selection?.direction}}get(e,t=1){return this.value.substring(e,e+t)}is(e,...t){const o=this.get(e);return t.some((e=>o==e))}isDigit(e){const t=this.get(e);return t>="0"&&t<="9"}match(e){return this.value.match(e)}replace(e,t,o){let s;if(typeof e=="string"&&typeof t=="string"){let o;s=this;while((o=s.value.indexOf(e))>-1)s=s.replace(o,o+e.length,t)}else if(typeof e=="number"&&typeof t=="number"){const a={value:this.value,selection:{start:this.selection.start,end:this.selection.end,direction:this.selection.direction}};if(!o)o="";a.value=this.value.slice(0,e)+o+this.value.slice(t,this.value.length);if(this.selection.start>=t)a.selection.start=this.selection.start+o.length-t+e;else if(this.selection.start>e&&this.selection.start<t)a.selection.start=Math.min(this.selection.start,e+o.length);if(this.selection.end>=t)a.selection.end=this.selection.end+o.length-t+e;else if(this.selection.end>e&&this.selection.end<t)a.selection.end=Math.min(this.selection.end,e+o.length);s=new vt(a)}return s||this}insert(e,t){return this.replace(e,e,t)}append(e){return this.insert(this.value.length,e)}prepend(e){return this.insert(0,e)}suffix(e){return new vt({value:this.value+e,selection:this.selection})}delete(e,t){let o;if(!this.value)o=this;else if(typeof e=="string"){let t;o=this;while(e&&(t=o.value.indexOf(e))>-1)o=o.delete(t,t+e.length)}else o=this.replace(e,t||e+1,"");return o}truncate(e){return this.value.length>=e?this.delete(e,this.value.length):this}pad(e,t,o){let s=this;while(e>s.value.length+t.length)s=s.insert(o,t);if(e>s.value.length)s=s.insert(o,t.substring(0,e-s.value.length));return s}padEnd(e,t){return this.pad(e,t,this.value.length)}padStart(e,t){return this.pad(e,t,0)}toLower(){return this.map((e=>e.toLowerCase()))}toUpper(){return this.map((e=>e.toUpperCase()))}map(e){let t=this;let o=0;for(let s=0;s<this.value.length;s++){const a=e(this.get(s),s);t=t.replace(o,o+1,a);o+=a.length}return t}static copy(e){return new vt({...e})}static create(){return new vt({value:"",selection:{start:0,end:0}})}static modify(e){return new vt(typeof e=="string"?{value:e,selection:{start:e.length,end:e.length}}:e)}}var xt;(function(e){function t(e,t,o){let c=kt.copy(e.unformat(vt.copy(t)));if(t.autocomplete=="cc-exp"&&/^\d\d \/$/g.test(t.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)&&t?.type!="password")c=s(e,t,o);else if(["Delete","Backspace"].includes(o.key)&&t?.type!="password")c=a(e,t,o)}else if(["ArrowLeft","ArrowRight","Home","End"].includes(o.key))i(c,o);else if(["Delete","Backspace"].includes(o.key)){c.selection.start==c.selection.end&&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);e.allowed(o.key,c)&&r(c,o.key)}}return e.format(vt.copy(c))}e.apply=t;function o(e,t,o){const s=kt.copy(e.unformat(vt.copy(t)));r(s,o);return e.format(vt.copy(s))}e.paste=o;function s(e,t,o){let s=gt.getCursor(t.selection);let a=gt.getStalker(t.selection);s=pt(t.value,s,o.key=="ArrowLeft"?"backward":"forward");a=o.shiftKey?a:s;return kt.copy(e.unformat(vt.copy({...t,selection:{start:Math.min(a,s),end:Math.max(a,s),direction:a<s?"forward":a>s?"backward":"none"}})))}function a(e,t,o){const s=gt.getCursor(t.selection);const a=pt(t.value,s,o.key=="Backspace"?"backward":"forward");const i=kt.copy(e.unformat(vt.copy({...t,selection:{start:Math.min(s,a),end:Math.max(s,a),direction:"none"}})));i.value=i.value.substring(0,i.selection.start)+i.value.substring(i.selection.end);i.selection.end=i.selection.start;return i}function i(e,t){let o=gt.getCursor(e.selection);let s=gt.getStalker(e.selection);o=t.key=="Home"?0:t.key=="End"?e.value.length:e.selection.start==e.selection.end||t.shiftKey?Math.min(Math.max(o+(t.key=="ArrowLeft"?-1:1),0),e.value.length):t.key=="ArrowLeft"?e.selection.start:e.selection.end;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)}function n(e,t,o,s){e.selection.start=t;e.selection.end=o;s&&(e.selection.direction=s)}function l(e){r(e,"")}function r(e,t){e.value=e.value.substring(0,e.selection.start)+t+e.value.substring(e.selection.end);e.selection.start=e.selection.start+t.length;e.selection.end=e.selection.start}})(xt||(xt={}));const wt={};function St(e,t){wt[e]=t}function Ct(e,...t){const o=wt[e];return o&&o(t)}function zt(e,t,...o){const s=Ct(t,...o);return s?s.format(vt.modify(s.toString(typeof e=="string"?jt(e,t,o):e))).value:""}function jt(e,t,...o){const s=Ct(t,o);return s?s.fromString(s.unformat(vt.modify(e)).value):undefined}class _t{toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){return{...e,type:"text",inputmode:"numeric",autocomplete:"cc-csc",length:[3,3],pattern:/^\d{3}$/}}unformat(e){return e}allowed(e,t){return t.value.length<3&&e>="0"&&e<="9"}}St("card-csc",(()=>new _t));class Tt{toString(e){return Array.isArray(e)&&e.length==2&&typeof e[0]=="number"&&typeof e[1]=="number"?e[0].toString().padStart(2,"0")+e[1].toString().padStart(2,"0"):""}fromString(e){return typeof e=="string"&&e.length==4?[Number.parseInt(e.slice(0,2)),Number.parseInt(e.slice(2))]:undefined}partialFormat=this.format;format(e){let t=e;if(e.value.length>0&&!e.is(0,"0","1"))t=t.prepend("0");if(t.value.length>1)t=t.insert(2," / ");return{...t,type:"text",inputmode:"numeric",autocomplete:"cc-exp",length:[7,7],pattern:/^(0[1-9]|1[012]) \/ \d\d$/}}unformat(e){return e.delete(" / ")}allowed(e,t){return t.value.length<4&&e>="0"&&e<="9"}}St("card-expires",(()=>new Tt));class It{toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){const t=Lt(e.value);const o=e.map(((e,o)=>(o+1<t.length[0]&&t.spaceIndexes.includes(o)?" ":"")+e));return{...o,type:"text",inputmode:"numeric",autocomplete:"cc-number",length:t.length.slice(1),pattern:t.verification,classes:["issuer-"+t.icon]}}unformat(e){return e.delete(" ")}allowed(e,t){const o=Lt(t.value);return e>="0"&&e<="9"&&t.value.length<o.length[0]}}St("card-number",(()=>new It));function Lt(e){let t={...Ot,spaceIndexes:e.length==14?[4,10]:Ot.spaceIndexes};for(const o in Et)if(Object.prototype.hasOwnProperty.call(Et,o)&&Et[o].identification.test(e)){t={...Ot,name:o,...Et[o]};break}return t}const Ot={name:"unknown",verification:/^\d{19}$/,spaceIndexes:[4,8,12],identification:/^\d/,length:[16,16,19],icon:"generic"};const Et={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 At;(function(e){function t(e){let t;switch(e){case"sq-AL":case"es-AR":case"it-IT":case"en-GB":case"fr-FR":t="dd/mm/YYYY";break;case"en-US":t="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":t="dd.mm.YYYY";break;case"hi-IN":case"en-IN":t="dd-mm-YYYY";break;default:t="YYYY-mm-dd";break}return t}e.fromLocale=t;function o(e){let t;switch(e){case"dd/mm/YYYY":t="en-GB";break;case"mm/dd/YYYY":t="en-US";break;case"dd.mm.YYYY":t="de-DE";break;default:t="sv-SE";break}return t}e.toLocale=o;function s(e){return typeof e=="string"&&(e=="YYYY-mm-dd"||e=="dd/mm/YYYY"||e=="dd.mm.YYYY"||e=="mm/dd/YYYY")}e.is=s})(At||(At={}));class Dt{separator;constructor(e){this.separator=e}partialFormat(e){const t=this.format(e);return{...t,remainder:this.formatString.slice(t.value.length)}}unformat(e){return e.delete(this.separator)}validMonth(e,t,o){return new Date(Number.parseInt(o??"2004"),Number.parseInt(t),0).getDate()>=Number.parseInt(e)}}const Mt={};function $t(e,t){Mt[e]=t}St("date",(e=>{const t=e&&e.length>0?e[0]:undefined;const o=At.is(t)?t:At.fromLocale(t);const s=Mt[o]??Mt["YYYY-mm-dd"];return s()}));class Rt extends Dt{constructor(e){super(e)}toString(e){return k.is(e)&&e.length==10?[e.substring(8,10),e.substring(5,7),e.substring(0,4)].join(this.separator):""}fromString(e){const t=e?.length==8?`${e.substring(4,8)}-${e.substring(2,4)}-${e.substring(0,2)}`:undefined;return k.is(t)?t:undefined}formatString=`DD${this.separator}MM${this.separator}YYYY`;format(e){let t=e.delete(this.separator);if(t.get(0,1)>"3")t=t.insert(0,"0");if(t.value.length>1)t=t.insert(2,this.separator);if(t.get(3,1)>"1")t=t.insert(3,"0");if(t.value.length>4)t=t.insert(5,this.separator);return{...t,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(e,t){return t.selection.start==1&&t.value[0]=="3"?e>="0"&&e<="1":t.selection.start==1&&t.value[0]=="0"?e>="1"&&e<="9":t.selection.start==2?e>="0"&&e<="9"&&(e=="0"||e=="1"||this.validMonth(t.value.substring(0,2),e)):t.selection.start==3?e>="0"&&e<="9"&&this.validMonth(t.value.substring(0,2),t.value[2]+e):t.selection.start==7?e>="0"&&e<="9"&&this.validMonth(t.value.substring(0,2),t.value.substring(2,4),t.value.substring(4,7)+e):t.selection.start<8&&e>="0"&&e<="9"}}$t("dd.mm.YYYY",(()=>new Rt(".")));$t("dd/mm/YYYY",(()=>new Rt("/")));$t("dd-mm-YYYY",(()=>new Rt("-")));class Pt extends Dt{constructor(e){super(e)}toString(e){return k.is(e)&&e.length==10?[e.substring(5,7),e.substring(8,10),e.substring(0,4)].join(this.separator):""}fromString(e){const t=e.length==8?`${e.substring(4,8)}-${e.substring(0,2)}-${e.substring(2,4)}`:undefined;return k.is(t)?t:undefined}formatString=`MM${this.separator}DD${this.separator}YYYY`;format(e){let t=e.delete(this.separator);if(t.get(0,1)>"1")t=t.insert(0,"0");if(t.value.length>1)t=t.insert(2,this.separator);if(t.get(3,1)>(t.get(0,2)=="02"?"2":"3"))t=t.insert(3,"0");if(t.value.length>4)t=t.insert(5,this.separator);return{...t,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(e,t){const o=t.selection.start==1&&t.value[0]=="1"?e>="0"&&e<="2":t.selection.start==1&&t.value[0]=="0"?e>="1"&&e<="9":t.selection.start==3?e>="0"&&e<="9"&&this.validMonth(t.value[2]+e,t.value.substring(0,2)):t.selection.start==7?e>="0"&&e<="9"&&this.validMonth(t.value.substring(2,4),t.value.substring(0,2),t.value.substring(4,7)+e):t.selection.start<8&&e>="0"&&e<="9";return o}}$t("mm/dd/YYYY",(()=>new Pt("/")));class Nt extends Dt{constructor(e){super(e)}toString(e){return typeof e!="string"?"":e}fromString(e){const t=e?.length==8?`${e.substring(0,4)}-${e.substring(4,6)}-${e.substring(6,8)}`:undefined;return k.is(t)?t:undefined}daysInMonth(e){const t=`${e.substring(0,4)}-${e.substring(4,6)}-01`;return k.is(t)?+k.lastOfMonth(`${e.substring(0,4)}-${e.substring(4,6)}-01`).substring(8,10):31}formatString=`YYYY${this.separator}MM${this.separator}DD`;format(e){let t=e.delete(this.separator);if(t.value.length>3){t=t.insert(4,this.separator);if(t.get(5,1)>"1")t=t.insert(5,"0");if(t.value.length>6){t=t.insert(7,this.separator);if(t.get(8,1)>this.daysInMonth(e.value).toString().substring(0,1))t=t.insert(8,"0")}}return{...t,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(e,t){const o=this.daysInMonth(t.value);return t.selection.start==5&&t.value[4]=="0"?e>="1"&&e<="9":t.selection.start==5&&t.value[4]=="1"?e>="0"&&e<="2":t.selection.start==7&&t.value[6]=="0"?e>="1"&&e<="9":t.selection.start==7&&(t.value[6]=="2"&&o<30||t.value[6]=="3")?e>="0"&&e<=o.toString().substring(1):t.selection.start<8&&e>="0"&&e<="9"}}$t("YYYY-mm-dd",(()=>new Nt("-")));class Ft{toString(e){return typeof e=="string"?e:""}fromString(e){let t=e.replace(" ","T");const o="0000-01-01T00:00:00.000Z";if(t?.match(/-\d$/))t=t.substring(0,t.length-1)+"0"+t.substring(t.length-1,t.length);t=!t.match(/^\d{4}-(0[1-9]|1[012])/)?undefined:t+o.substring(t.length,o.length);return v.is(t)?t:undefined}partialFormat=this.format;format(e){let t=Ht(e);if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[\d:.-]$/))t=t.insert(10," ");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 3$/))t=t.replace(11,12,"23:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [45]$/))t=t.insert(11,"23:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [6-9]$/))t=t.insert(11,"23:5");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 24$/))t=t.replace(10,13,"00:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 25$/))t=t.insert(12,"3:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 2[6-9]$/))t=t.insert(12,"3:5").append(":");if(t.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]$/))t=t.insert(13,":");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[6-9]$/))t=t.insert(14,"5");if(t.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$/))t=t.insert(16,":");if(t.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]$/))t=t.insert(17,"5");return{...t,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(e){return e}allowed(e,t){return t.value.length<19&&(e>="0"&&e<="9"||e=="-"||e==":"||e=="."||e==" ")}}St("date-time",(()=>new Ft));function Ht(e,t){let o=e;switch(t){case"dd/mm/YYYY":case"dd.mm.YYYY":if(!Ut(o.value,t))o=o.replace(0,10,Ut("31"+o.value.substring(2,10),t)?"31"+o.value.substring(2,10):Ut("30"+o.value.substring(2,10),t)?"30"+o.value.substring(2,10):Ut("29"+o.value.substring(2,10),t)?"29"+o.value.substring(2,10):Ut("28"+o.value.substring(2,10),t)?"28"+o.value.substring(2,10):o.value);break;case"mm/dd/YYYY":if(!Ut(o.value,t))o=o.replace(0,10,Ut(o.value.substring(0,3)+"31"+o.value.substring(5,10),t)?o.value.substring(0,3)+"31"+o.value.substring(5,10):Ut(o.value.substring(0,3)+"30"+o.value.substring(5,10),t)?o.value.substring(0,3)+"30"+o.value.substring(5,10):Ut(o.value.substring(0,3)+"29"+o.value.substring(5,10),t)?o.value.substring(0,3)+"29"+o.value.substring(5,10):Ut(o.value.substring(0,3)+"28"+o.value.substring(5,10),t)?o.value.substring(0,3)+"28"+o.value.substring(5,10):o.value);break;default:if(e.value.length==10){if(!Ut(o.value)){o=o.replace(0,10,Ut(o.value.substring(0,8)+"31")?o.value.substring(0,8)+"31":Ut(o.value.substring(0,8)+"30")?o.value.substring(0,8)+"30":Ut(o.value.substring(0,8)+"29")?o.value.substring(0,8)+"29":Ut(o.value.substring(0,8)+"28")?o.value.substring(0,8)+"28":o.value);break}return e}}return o}function Ut(e,t){let o;let s;let a;switch(t){case"dd/mm/YYYY":case"dd.mm.YYYY":o=parseInt(e.substring(6,10));s=parseInt(e.substring(3,5));a=parseInt(e.substring(0,2));return o&&s&&a?a>0&&Yt(o,s)>=a:false;case"mm/dd/YYYY":o=parseInt(e.substring(6,10));s=parseInt(e.substring(0,2));a=parseInt(e.substring(3,5));return o&&s&&a?a>0&&Yt(o,s)>=a:false;default:o=parseInt(e.substring(0,4));s=parseInt(e.substring(5,7));a=parseInt(e.substring(8,10));return o&&s&&a?a>0&&Yt(o,s)>=a:false}}function Yt(e,t){let o;switch(t){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 Wt{toString(e){return Array.isArray(e)&&e.length==2&&typeof e[0]=="number"&&typeof e[1]=="number"?e[0].toString()+" / "+e[1].toString():typeof e=="number"?e.toString():""}fromString(e){return typeof e=="string"&&e.match(/^\d{1,2}\s+\/\s+\d{1,2}$/)?[Number.parseInt(e.slice(0,2)),Number.parseInt(e.slice(e.length-2))]:typeof e=="string"&&e.match(/\d{1,2}/)?Number.parseInt(e):undefined}partialFormat=this.format;format(e){let t=e;if(e.match(/^\d\/$/))t=e.replace(1,2," / ");else if(e.match(/^\d{1,2}\s$/))t=e.replace(e.value.length-1,e.value.length," / ");else if(e.match(/^[\D.]+\/[\D.]+$/))t=e.delete(0,e.value.length);else if(e.match(/^[\D.]+\/[\D.]+\d$/))t=e.delete(0,e.value.length-1);else if(e.match(/^[\D.]+\/[\D.]+\d\d$/))t=e.delete(0,e.value.length-2);else if(e.match(/^[\D.]+\//))t=e.delete(0,e.value.search("/")+1);else if(e.match(/^\d\d\/$/))t=e.replace(2,3," / ");else if(e.match(/^\d\d\s+\/$/))t=e.delete(2,e.value.length);else if(e.match(/^\d\s+\/$/))t=e.delete(1,e.value.length);else if(e.match(/^\d\d\s\s+\/\s*$/))t=e.replace(2,e.value.length," / ");else if(e.match(/^\d\s\s+(\/\s*)?$/))t=e.replace(1,e.value.length," / ");else if(e.match(/^\d\s\/\s\d\d.+$/))t=e.delete(6,e.value.length);else if(e.value.length>1&&e.value.indexOf("/")<1)t=e.insert(2," / ");else if(e.value.length>1&&e.value.split("/").length>2)t=e.delete(e.value.lastIndexOf("/"));else if(e.value.length==1&&!e.isDigit(0))t=e.delete(0);return{...t,type:"text",length:[1,7],pattern:/^(\d{1,2}|\d{1,2} \/ \d{1,2})$/}}unformat(e){return e}allowed(e,t){return t.value.length<7&&(e>="0"&&e<="9"||e=="/"||e==" ")}}St("divisor",(()=>new Wt));class Bt{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(e){let t;if(!x.is(e))t="";else{const o=x.normalize(e);if(!o.minutes&&!o.hours)t="";else if(this.separator!=":")t=(+x.toHours(o).toFixed(2)||"").toString(10);else if(o.hours&&!o.minutes)t=o.hours.toString(10);else if(!o.hours&&o.minutes)t=`${o.minutes<0?"-":""}0:${Math.abs(o.minutes).toString(10)}`;else t=`${o.hours?.toString(10)}:${Math.abs(o.minutes??0).toString(10)}`}return t}fromString(e){let t;const o=e.match(this.patterns.extract);if(!o)t=undefined;else{const[e,s,a,i,n]=o;this.separator=i;if(i==":"){const e={hours:parseInt(a),minutes:parseInt(n)};const o=s?-1:1;t=x.normalize({hours:!Number.isFinite(e.hours)?0:e.hours*o,minutes:!Number.isFinite(e.minutes)?0:e.minutes*o})}else{const o=parseFloat(e.replace(",","."));t=x.normalize({hours:!Number.isFinite(o)?0:o})}}return t}partialFormat=this.format;format(e){let t=e;const[,o,s,a]=e.match(this.patterns.extract)??[];if(!s&&a)t=t.insert(o?1:0,"0");const i=t.match(this.patterns.zeros);if(i){const[,e,o]=i;if(o){const s=e?1:0;t=t.delete(s,o.length+s)}}return{...t,type:"tel",pattern:this.patterns.allowed}}unformat(e){const[,,,t]=e.match(this.patterns.extract)??[];if(t)this.separator=t;return e}allowed(e,t){const o=t.value.slice(0,t.selection.start)+e+t.value.slice(t.selection.end);return!!o.match(this.patterns.allowed)}}St("duration",(()=>new Bt));class Vt{settings;constructor(e){this.settings=e}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){return{...e,...this.settings,type:"text",inputmode:"email",autocomplete:"email"}}unformat(e){return e}allowed(e,t){return this.settings.length==undefined||this.settings.length[1]==undefined||t.value.length<this.settings.length[1]}}St("email",(e=>new Vt(e||{})));class Gt{settings;mode;constructor(e,t){this.settings=e;this.mode=t}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}split(e){let t;let o="";return e.map(((e,s)=>{const a=s!==0&&e===e.toUpperCase()&&isNaN(+e)&&o!==" "&&this.isSymbolAllowed(e)&&t?" "+e:(e==="_"||e==="-")&&o!==" "?" ":e===" "&&o===" "||!this.isSymbolAllowed(e)||!t&&!this.isSymbolLetter(e)&&this.mode!=="code"?"":e;!t&&(t=this.isSymbolLetter(e));this.isSymbolAllowed(e)&&(o=e);return a})).toLower().delete("-").delete("_")}isSymbolLetter(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}isSymbolAllowed(e){return this.isSymbolLetter(e)||e>="0"&&e<="9"||e===" "}partialFormat=this.format;format(e){const t=this.split(e);let o;switch(this.mode){case"code":o=t.delete(" ");break;case"pascal":case"camel":let s;o=t.map(((e,t)=>{const o=t===0&&this.mode==="pascal"||s?e.toUpperCase():e.toLowerCase();s=e==" ";return o})).delete(" ");break;case"snake":case"attribute":o=t.replace(" ",this.mode==="snake"?"_":"-");break;default:o=e}return{...o,...this.settings,type:"text",autocomplete:"on"}}unformat(e){return e}allowed(e,t){return this.isSymbolLetter(e)||e>="0"&&e<="9"&&(this.mode=="code"||t.value.length>0)||e=="_"&&this.mode=="snake"&&t.value.length>0||e=="-"&&this.mode=="attribute"&&t.value.length>0}}St("identifier-code",(e=>new Gt(e||{},"code")));St("identifier-pascal",(e=>new Gt(e||{},"pascal")));St("identifier-snake",(e=>new Gt(e||{},"snake")));St("identifier-camel",(e=>new Gt(e||{},"camel")));St("identifier-attribute",(e=>new Gt(e||{},"attribute")));class qt{country;constructor(e){this.country=e}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){let t=e;const o=(new Date).getFullYear().toString();if(e.value.length>1&&e.get(0,2)!="19"&&e.get(0,2)!="20")t=t.prepend(e.get(0,2)>o.substring(2,4)?"19":"20");if(t.value.length>=8)t=t.insert(8,"-");return{...t.truncate(13),type:"text",length:[11,13],pattern:/^\d{6,8}-\d{4}$/}}unformat(e){return e.delete("-")}allowed(e,t){return t.value.length<13&&e>="0"&&e<="9"}}St("identity-number",(e=>new qt(e&&e.length>0?e[0]:undefined)));class Kt{toString(e){return typeof e=="number"?e.toString():""}fromString(e){const t=typeof e=="string"?Number.parseInt(e):undefined;return typeof t=="number"&&!Number.isNaN(t)?t:undefined}partialFormat=this.format;format(e){return{...e,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^[0-9]+$/}}unformat(e){return e}allowed(e,t){return e>="0"&&e<="9"}}St("integer",(()=>new Kt));class Zt{toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){return{...e,type:"password",autocomplete:"current-password"}}unformat(e){return e}allowed(e,t){return true}}St("password",(()=>new Zt));class Jt{toString(e){let t="";if(typeof e=="number"){const o=e.toString().split(".")[1]?.length??2;t=(e*100).toFixed(!o||o<=1?0:o-2)}return t}fromString(e){const t=typeof e=="string"?Number.parseFloat(e):undefined;return typeof t=="number"&&!Number.isNaN(t)?t/100:undefined}partialFormat=this.format;format(e){return{...e.value?e.suffix(" %"):e,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^\d+(.\d+)? %+$/}}unformat(e){return e.delete(" %")}allowed(e,t){return e>="0"&&e<="9"||e=="."&&!t.value.includes(".")}}St("percent",(()=>new Jt));const Xt=[{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 Qt{toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){let t=e;if(t.value.startsWith("+")){for(const e of Xt)if(t.value.startsWith(e.countryCode))for(let o of e.areaCodes){o=o.substring(1);if(t.value.startsWith(e.countryCode+o)&&!t.value.includes("-"))t=t.insert(e.countryCode.length,"-").insert(e.countryCode.length+1+o.length,"-")}}else{const e=Xt[0];for(const o of e.areaCodes)if(t.value.startsWith(o)&&!t.value.includes("-")){t=t.insert(o.length,"-");t=t.delete(0);t=t.insert(0,"-").insert(0,e.countryCode)}}if(t.value.includes("-")){const e=t.value.indexOf("-",t.value.indexOf("-")+1)+1;const o=t.value.substring(e,t.value.length+1).length;switch(o){case 4:t=t.insert(e+2," ");break;case 5:t=t.insert(e+3," ");break;case 6:t=t.insert(e+2," ");t=t.insert(e+5," ");break;case 7:t=t.insert(e+3," ");t=t.insert(e+6," ");break;case 8:case 9:t=t.insert(e+3," ");t=t.insert(e+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;t=t.insert(s+e," ")}}}}return{...t,type:"tel",autocomplete:"tel"}}unformat(e){return e.delete(" ").delete("-")}allowed(e,t){return e>="0"&&e<="9"||t.selection.start==0&&e=="+"&&!t.value.includes("+")}}St("phone",(()=>new Qt));class eo{country;constructor(e){this.country=e}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){const t=!e.value.includes(" ")&&e.value.length>=4?e.insert(3," "):e;return{...t.truncate(6),type:"text",autocomplete:"postal-code",length:[6,6],pattern:/^\d{3} \d{2}$/}}unformat(e){return e.delete(" ")}allowed(e,t){return t.value.length<=5&&e>="0"&&e<="9"}}St("postal-code",(e=>new eo(e&&e.length>0?e[0]:undefined)));class to{currency;toInteger;constructor(e){this.currency=e&&typeof e=="object"?e.currency:e;this.toInteger=e&&typeof e=="object"?e.toInteger:undefined}toString(e){return typeof e=="number"?isNaN(e)?"":e.toString():""}fromString(e){const t=typeof e=="string"?Number.parseFloat(e):undefined;return t!=undefined&&!isNaN(t)?t:undefined}partialFormat(e){let t=e.value=="NaN"?e.replace(0,e.value.length,""):vt.copy(e);const o=this.currency&&w.decimalDigits(this.currency);t=this.addLeadingIntegerZero(t);t=this.fillDecimalsIfPresent(t,o,"onlyLimit");t=this.truncateIntegerZeros(t);t=this.addThousandSeparators(t);return{...t,remainder:this.format(e).value.slice(t.value.length),type:"text",inputmode:"numeric",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d*)?$")}}format(e){let t=e.value=="NaN"?e.replace(0,e.value.length,""):vt.copy(e);const o=this.currency&&w.decimalDigits(this.currency);if(!this.toInteger)t=this.forceDecimalZero(t,o);t=this.addLeadingIntegerZero(t);t=this.fillDecimalsIfPresent(t,o,"fillAndLimit");t=this.truncateIntegerZeros(t);t=this.addThousandSeparators(t);t=this.appendCurrency(t);return{...t,type:"text",inputmode:"numeric",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d+)?"+(this.currency?" "+this.currency:"")+"$")}}forceDecimalZero(e,t){if(!e.value.includes(".")&&t&&(Math.abs(Number.parseFloat(e.value))>=0||e.value=="0"))e=e.suffix(".0");return e}addLeadingIntegerZero(e){const t=e.value&&e.value.includes(".")?e.value.indexOf("."):undefined;if(t==0)e=e.prepend("0");return e}fillDecimalsIfPresent(e,t,o){const s=e.value.indexOf(".");if(s!=-1){const a=s+1+(t??2)-e.value.length;e=a<0?e.truncate(e.value.length+a):o=="fillAndLimit"?e.suffix("0".repeat(a)):e}return e}truncateIntegerZeros(e){const t=e.match(/^[0\s]{2,}/);if(t)e=e.replace(0,t[0].length,"0");return e}addThousandSeparators(e){let t=e.value.includes(".")?e.value.indexOf("."):e.value.length;const o=t<=0?0:Math.ceil(t/3)-1;for(let s=0;s<o;s++){const a=t-(o-s)*3;e=e.insert(a," ");t++}return e}appendCurrency(e){return this.currency&&(e.value.length>1||e.value.length==1&&e.value.charAt(0)!=".")?e.suffix(" "+this.currency):e}unformat(e){return this.currency?e.delete(" ").delete(""+this.currency):e.delete(" ")}allowed(e,t){return e>="0"&&e<="9"||e=="."&&!t.value.includes(".")&&(!this.currency||w.decimalDigits(this.currency)!=0)}}St("price",(e=>new to(e&&e.length>0?e[0]:undefined)));class oo{settings;constructor(e){this.settings=e}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){return{...e,type:"text",...this.settings}}unformat(e){return e}allowed(e,t){return this.settings.length==undefined||this.settings.length[1]==undefined||t.value.length<this.settings.length[1]}}St("text",(e=>new oo(e||{})));class so{toString(e){return typeof e=="string"?"#"+e:""}fromString(e){return e?"#"+e:undefined}partialFormat=this.format;format(e){const t=e.delete("#");return{...t.value?t.prepend("#"):t,type:"text",length:[4,7],pattern:/^#([0-9a-f]{3}|[0-9a-f]{6})$/i}}unformat(e){return e.delete("#")}allowed(e,t){return(e>="0"&&e<="9"||e>="a"&&e<="f"||e>="A"&&e<="F")&&t.value.length<6}}St("hex-color",(()=>new so));const ao=".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 io=ao;const no=class{constructor(t){e(this,t);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 e,o;let s;const a=this.type;switch(a){case"json":s=t("smoothly-display-json",{key:"dae527906c3ef17061176ca4fa2b609136029d2a",value:this.value,collapseDepth:this.collapseDepth});break;default:s=zt(this.value,a);break;case"email":s=t("a",{key:"473961d0ae2df537bbd562de4c303b8a78579fe6",href:"mailto:"+this.value},zt(this.value,a));break;case"phone":s=t("a",{key:"ccb2abfa11f6240d8e2defb0d603db7910d9bfa4",href:"tel:"+this.value},zt(this.value,a,this.country));break;case"postal-code":s=zt(this.value,a,this.country);break;case"price":s=zt(this.value,a,{currency:this.currency,toInteger:this.toInteger});break;case"date":s=(e=Ct(this.type,D()))===null||e===void 0?void 0:e.toString(this.value);break;case"duration":s=zt(this.value,a)||"0";break;case"date-time":s=this.format?v.localize(this.value,this.format,D()):(o=Ct(this.type,D()))===null||o===void 0?void 0:o.toString(this.value);break}return this.label?[t("div",null,this.label),s]:s}};no.style=io;const lo=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.downloadingSpinner=undefined}noticeWarning(e){console.log("emit",e);this.notice.emit(e)}render(){return[t("main",{key:"39eb7bb72cea0c312714780bd9db27a77836a07d"},t("fieldset",{key:"46b0779510e3c6ee1106a6b3a83a13d41ac63b2e"},t("h2",{key:"f680e63af56e7d50cc660eac1a1b81de653d48bd"},"Smoothly display"),t("dl",{key:"26c00ce48352dde5b499bdd170488ffc0e9be984"},t("dt",{key:"8dbadab550b83b5bfc4acf8cff7b61d7ffd43af9"},"Duration"),t("dd",{key:"fc8689620efd6dd6e1ab8d1390b8d813be2520ca"},t("div",{key:"6ef111616240ac903eb2af7f2636936611c0a4f8"},t("div",{key:"7dc311657409ada5e96ce832158c020e55c4cc45"},t("smoothly-display",{key:"80fa4e17d62413c7699b94ef3ffa286f04b3f7b8",style:{display:"inline"},type:"duration",value:{hours:13,minutes:100}})," h"),t("div",{key:"e36d5b6131c20a99397c4c59f1dd2aace482dd9d"},t("smoothly-display",{key:"2858bd44eda1a0e81e22cd7f156ada646ce74e4b",style:{display:"inline"},type:"duration",value:{hours:8}})," h"),t("div",{key:"ad4757c65bfdee5ec7eaec6ca93985f8205ef629"},t("smoothly-display",{key:"e6b76219a8a754060a122303f9946fd3bac53ac3",style:{display:"inline"},type:"duration",value:{minutes:3}})," h"),t("div",{key:"5448e1f01cde73667fcddb1c12322bb3580570fd"},t("smoothly-display",{key:"716327a3acf4cc15693d1dd4bc4a2652ed10c6e5",style:{display:"inline"},type:"duration",value:{hours:-13,minutes:100}})," h"),t("div",{key:"7163c5acb2a9f3dcb9c620866a1bde90548f1d9a"},t("smoothly-display",{key:"75f2c509df90c14512e0ff6f9b218806c3b1d690",style:{display:"inline"},type:"duration",value:{hours:-8}})," h"),t("div",{key:"67bf890913db1d4907a7d8dc4a1386a85b30bb49"},t("smoothly-display",{key:"f38320854b7cbe1133ac214fda629cdb6e34fd04",style:{display:"inline"},type:"duration",value:{}})," h"),t("div",{key:"a0a553d3d7f1bf1e28c58f307e1cfc56dede0a86"},t("smoothly-display",{key:"dc28a4fab596e16a1180a6ff1d0ee081d2250efb",style:{display:"inline"},type:"duration",value:{minutes:-3}})," h"))),t("dt",{key:"cc4498418d1266333357fa9a47cfe267fefc4cb1"},"text"),t("dd",{key:"dbd253f9d092d730792090edc0d1c7294cd3268b"},t("smoothly-display",{key:"4b140b91c5b2e268dc691c4b2789ab1ad113cf9f",type:"text",value:"text"})),t("dt",{key:"7a7655e9282322688e901e034483e09aefe8dc69"},"postal code"),t("dd",{key:"3f880dcdad765deeb5bce0cfa92341cf08e42ceb"},t("smoothly-display",{key:"253b67d433924b812db35ac4b9442e8df6fb456e",type:"postal-code",value:"752 31"})),t("dt",{key:"a344618739cc1ce559ac80554f09405901643514"},"password"),t("dd",{key:"0f6f97055179d534b56754e9f4ffe868982f8364"},t("smoothly-display",{key:"0a95e73ffd18edec818388c6451e10e74ac25a1f",type:"password",value:"password"})),t("dt",{key:"d799959280bd357c59c1458620947ceb8261a8bc"},"email"),t("dd",{key:"6d822ad99d14d7ac68dfe5e60e76bc4f62039c60"},t("smoothly-display",{key:"df086753232838bbec2b4d6fe17a02e7640c7ec3",type:"email",value:"test@example.com"})),t("dt",{key:"eade96bd9319f2782533ad3ee6e73a279780dcc4"},"price"),t("dd",{key:"82580ddd52f3ec732054a92803c608241a03870c"},t("smoothly-display",{key:"db4df7924f25fe5c4b8c1ef79e4a2ccbfdb2b759",type:"price",value:"13.37",currency:"SEK"})),t("dt",{key:"6218fda2e606e48855cf22d2541a1b811f568a31"},"price without decimals"),t("dd",{key:"6f7b2d3f397e98bfcf7031739b8ded01b39c45b8"},t("smoothly-display",{key:"eec6de2446c60659d6fcfba09d1e1867dc5bb5f9",type:"price",value:200,currency:"SEK",toInteger:true})),t("dt",{key:"049e4dd01a1ecadf48febcb0c651b3a463373be7"},"price with decimals if they are set, otherwise no decimal"),t("dd",{key:"55b856f1380424862dc75ddb5a5d4ff9d6d4393b"},t("smoothly-display",{key:"d53fa00ba54c27011a7769bf89fb048d5ac43c2f",type:"price",value:200.2,currency:"SEK",toInteger:true})),t("dt",{key:"90d8a4d1e1649038656607cb0b65d805e3cb2aab"},"price with decimals"),t("dd",{key:"c9632b9d6252727300a101c585a8b26e5cc7fe51"},t("smoothly-display",{key:"fef95d8888886353708964a0bad03d716975c183",type:"price",value:200.2,currency:"SEK"})),t("dt",{key:"7abf3203c89e5c502717cd9757c937e582c1b6c7"},"percent"),t("dd",{key:"2fd5b7ec91de2fb4e0cbaf864ca258b852e88cca"},t("smoothly-display",{key:"0e241291b20784a4d802a83e15dadf318079f236",type:"percent",value:"42"})),t("dt",{key:"6c48237d73aba23ab3f35980f898eff5c2b87364"},"phone"),t("dd",{key:"53f16cee1b5c59599e8283cb4c22e751e8be1f3b"},t("smoothly-display",{key:"0338829b491a27c9d345cac5190203339c41ac6e",type:"phone",value:"0101881108"})),t("dt",{key:"afb89b8f0a49ad5bf1ef8bba4a51637f7ed57af1"},"card number"),t("dd",{key:"29e4eb02d6924ed8f7ac2797377ea3bf7b3e0623"},t("smoothly-display",{key:"745fefbafe113e1c12ace365f34c39938b3bb659",type:"card-number",value:"4111111111111111"})),t("dt",{key:"54a9b3bf222d4a9fa1bf1444b64fa7e6b4b7d5fd"},"card expires"),t("dd",{key:"a538c6af31872884cebb5e5667cd799d1cbe92dd"},t("smoothly-display",{key:"511a2c804811e9e1d3195d4ab8dad15e3e73cae4",type:"card-expires",value:"7/22"})),t("dt",{key:"16fa7df01a7d60ec01af68a37d196e35ff8d6503"},"card csc"),t("dd",{key:"0a3df0ba09f6fc7be53d17f0c87eece817a8145c"},t("smoothly-display",{key:"1351526da17988597fd739fe805a0da21689b520",type:"card-csc",value:"987"})),t("dt",{key:"4ac6ff219663982e06b96e7b3d7661b7317cee7f"},"date"),t("dd",{key:"6474b93898b9d357a4276a1801c0b1d739e8ae30"},t("smoothly-display",{key:"e6a43b2f91d87d9de7dd49583c97c93660157dfd",type:"date",value:"2022-07-07"})),t("dt",{key:"ad203d97c4b014f6235005882d1e35f32c37d291"},"date time"),t("dd",{key:"7869f2afaba99fd6c277707fd06dbc546e912377"},t("smoothly-display",{key:"c63424a1d505cedcd348aeddbc4083ec0fb99b43",type:"date-time",format:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T02:02:02Z"})),t("dd",{key:"bad6623c83aa440db37bba77404a0e3261406359"},t("smoothly-display",{key:"70e4ab1844a5c575c54ef14314ce6f40423df47b",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"})),t("dd",{key:"b7d2b44b723b3d32e063a517034db9c6478a77c5"},t("smoothly-display",{key:"12492a2754ccdcfa781e2ef46a2579ad3bbb49a0",type:"date-time",format:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),t("dd",{key:"72fda443ec030240fd29071d1a3eca87e2fa77d2"},t("smoothly-display",{key:"3bf63c1395a81d5da4c6594825a3120d99d36fd3",type:"date-time",format:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),t("dd",{key:"d9a5a251c68c83e51610bc8aac39c23a14a0da10"},t("smoothly-display",{key:"8a7438690f5b6ba0bbad4d676ebd161538024540",type:"date-time",format:{year:"numeric",month:"short",day:"numeric"},value:"2022-07-07T00:00+02:00"})),t("dd",{key:"f426a55591ef6e03405cce72c0e64eaff677beb3"},t("smoothly-display",{key:"3402255ed959acefbc71333683b92dee43275d7d",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric"},value:"2022-07-07T00:00+02:00"})),t("dd",{key:"cc2b1b59c5d789358fb67a6d48a5a9cdf7fe599b"},t("smoothly-display",{key:"1f3a0edc25b8b9b34d6ffbe88787133bd145bc4c",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"})),t("dt",{key:"747992d0fa309d7c8cbd13d8eb7818accbb6d522"},"Display JSON"),t("dd",{key:"bc2d0785dbb216170fd320a3e7ba000d532e54ff"},t("smoothly-display-demo-json",{key:"6d23c6c7cc4720d60ea2160780f26ad10384d6f9"})))),t("h2",{key:"2e29c1a9d6b24b00ff6fc6c41201fecd16003684"},"With labels"),t("dd",{key:"e60a4cf0fa048db54972698f0c41c10dd420231f"},t("smoothly-display",{key:"c31dc1154af9e19ae130336862060106d3e1ca80",label:"Today",type:"date",value:k.now()}),t("smoothly-display",{key:"f442d5b680e29cffa32a35b5beab2281bb41d1e8",label:"Total amount",type:"price",currency:"SEK",value:6789}),t("smoothly-display",{key:"7054be327820ae495a87652e4eee220bd224835c",label:"Total amount",type:"price",currency:"GBP",value:678.9}),t("smoothly-display",{key:"164ed80432c0342192e83ddaea4f27a1b283b222",label:"Logs",type:"json",value:[{type:"trace",message:"Hello"},{type:"error",message:"Oh no!"}]})),t("fieldset",{key:"ae8fda6783a1045b24a90f73d95eb75fef524c3b"},t("h2",{key:"8b735feede5041d16621b35ab4ed65b4f6893e02"},"Test of different kinds of notifier"),t("button",{key:"eff36a6ecd92f817fcb196996b6677945e535c6a",onClick:()=>this.noticeWarning(L.warn("This is a test warning notice."))},"warning"),t("button",{key:"bedcbef25de624da67f1ce3b1d6413d7f170113e",onClick:()=>this.noticeWarning(L.succeeded("This is a test success notice."))},"success"),t("button",{key:"c6a9ac7dacf8cc450d2bfb02a2bcb85f484f0f24",onClick:()=>this.noticeWarning(L.failed("This is a test danger notice."))},"danger"),t("button",{key:"a31c5b25807dac6438f1d3aad447610260611dbf",onClick:()=>this.noticeWarning(L.execute("This is a test execute notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"execute"),t("button",{key:"6875bd9cadd9f5eedfdc1dc41a68ef602f3ba160",onClick:()=>this.noticeWarning(L.delay("This is a test delay notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"delay")),t("fieldset",{key:"f7493cc029025477c394be2e48640f943e7d45df"},t("h2",{key:"14f549bdca342919dd0cc6b6e039b387ca9d5f47"},"Smoothly spinner"),t("div",{key:"2532ec422ca3c7f482fa2f80b8f0e188d00ed9e7",style:{width:"fit-content"}},"Large",t("smoothly-spinner",{key:"ca6bff694dfae13cbe31781fe75dc5a7f22726ce",size:"large",style:{"--spinner-background":"200,255,200","--spinner-background-opacity":"0.2","--spinner-color":"0,130,0"}})),t("div",{key:"94e96d5ea29719b5ed508879df5905db45e9b892",style:{width:"fit-content"}},"Medium",t("smoothly-spinner",{key:"a54f39247c27520000ec8a35acc4dca1eab61269",size:"medium"})),t("div",{key:"694bb6839a34c4d3c159674ac9d7b8764e715a0a",style:{width:"fit-content"}},"Small",t("smoothly-spinner",{key:"a4842814663b330faa6eb266722507dea1f1b0f0",size:"small"})),t("div",{key:"11dd2fd0047e3de22abe1de29f63ac56898b715e"},"Icon sized spinner on button",r.types.map((e=>t("smoothly-button",{size:"icon",color:e,shape:"rounded",onClick:()=>{this.downloadingSpinner=true;setTimeout((()=>this.downloadingSpinner=false),3e3)}},!this.downloadingSpinner&&t("smoothly-icon",{name:"download-outline"}),this.downloadingSpinner&&t("smoothly-spinner",{size:"icon",style:{"--spinner-background-opacity":"0"}}))))),t("h3",{key:"8e492b4dbad096875ccc36db465cd7441d33a6fa"},"Spinner with overlay"),t("div",{key:"00c85d4ee92d8f2cefec690537912abd43f97707",style:{position:"relative",height:"10em"}},"Large Overlay Spinner",t("smoothly-spinner",{key:"d340e0a508673de5a44756e13a85cedcfe328e71",overlay:true,size:"large",style:{"--spinner-background":"255,200,255","--spinner-background-opacity":"0.5","--spinner-color":"0,130,0"}})),t("div",{key:"016fe696e6e74e25bda569a1699e6049ac92c889",style:{position:"relative",height:"10em"}},"Medium Overlay Spinner",t("smoothly-spinner",{key:"66092e4011ae66dfaa436c55a39721be315c519a",overlay:true,color:"secondary",size:"medium"})),t("div",{key:"36a1cc846982bb5a1dc54c2f543c476b1fce8c91",style:{position:"relative",height:"10em"}},"Small Overlay Spinner",t("smoothly-spinner",{key:"b693e53a081661680f6a19ba81dacd2e41371902",overlay:true,size:"small"}))),t("fieldset",{key:"5a7e3b61ad86969f26a3679a58323a5a3e3eab65"},t("h2",{key:"bcc731681d6db9513cfc7391fcf3689233c2d540"},"Smoothly summary"),t("smoothly-summary",{key:"28698a792708b9630138d21a00bd6e367c8d2836"},t("p",{key:"43cddb839948c05ee1abe3e972b465601edcfa57",slot:"summary"},"Some title"),t("p",{key:"7e170421c947e618d3c88c2c78bc937cf895e7d5",slot:"content"},"Some content")),t("smoothly-summary",{key:"7766bc278e892e217b6e6441e41aa626d7ecf2d0",size:"large"},t("p",{key:"a0d83a3dacd955442983b2cbf086c95e5f54b87b",slot:"summary"},"Some title"),t("p",{key:"2d5957d9d8bd0d0ad1a8f0b11eb2ff211879c393",slot:"content"},"Some content")),t("smoothly-summary",{key:"9a03d40210651f64b7e3146b4f1f90d0af8e3b68",color:"danger",fill:"clear"},t("div",{key:"91888525a78ae6cf2bfbf492d4b8dc205d4ac1da",slot:"summary",style:{display:"flex",gap:"0.3rem"}},t("span",{key:"a22f933241a444da80c6d89b65275c4f6592609d"},"Person"),t("smoothly-icon",{key:"c79775e186b742d77715789887948c93c2c5867b",name:"person",color:"light",fill:"clear",size:"tiny"})),t("p",{key:"41b5c81feda26d37aab0d42093de072484c53045",slot:"content"},"Some person information.")),t("smoothly-summary",{key:"b7d82ffdf718528fbd038b9ce51490cbce1226fe",color:"danger",fill:"clear",open:true},t("p",{key:"f09c420f105318297999e44fb90b3e22f3a89a67",slot:"summary"},"Some other title"),t("p",{key:"b2761d6607e63756c7e0ee18a9da1f16f5c48969",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.")),t("h2",{key:"de8ca3994652d8f1dd8b364d79879a8ee638f9e6"},"Label"),ro.map((e=>t("smoothly-label",{hue:e.hue,description:e.description,shape:"rectangle"},e.name))),t("smoothly-label",{key:"dd8c4d057d26e554b03aefc7a1cc63ccb4f162c4",color:"primary",description:"Using colors",shape:"rectangle"},"Primary")))]}};const ro=[{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 co=class{constructor(t){e(this,t)}render(){return t(s,{key:"a3e2a042bff06a25da98b43e95705b303a4e2d7c"},[0,1,3,undefined].map((e=>[t("div",null,"collapseDepth=",e!==null&&e!==void 0?e:"undefined"),t("div",null,t("smoothly-display",{type:"json",value:ho,collapseDepth:e}))])))}};const ho={name:"stringy",nested:{age:109,array:["one","two","three",{name:"four"}],emptyObject:{},emptyArray:[],truthy:true,falsy:false,null:null,notDefined:undefined,longString:"pepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakor"}};const mo=({value:e,collapseDepth:o})=>S().is(e)||Array.isArray(e)?t("smoothly-display-json-object",{value:e,collapseDepth:o}):t("smoothly-display-json-primitive",{value:e});const yo=".sc-smoothly-display-json-h{font-family:monospace}";const bo=yo;const uo=class{constructor(t){e(this,t);this.value=undefined;this.collapseDepth=undefined}render(){return t(mo,{key:"c09039321486768334c742e4efc26dab510d2ffc",value:this.value,collapseDepth:this.collapseDepth})}};uo.style=bo;const fo='.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 po=fo;const go=class{constructor(t){e(this,t);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 e=typeof this.collapseDepth=="number"?Math.max(this.collapseDepth-1,0):undefined;return t(s,{key:"f0d5f6e755c48269ebeddd210961a91a45ac637c",class:{empty:this.empty,open:this.open}},t("span",{key:"9d8da480999cb92e162e1472c4cf0c4253033553",class:"open-bracket",onClick:()=>this.open=!this.open,"data-length":this.length},this.openBracket),t("span",{key:"4e540c3b7ab63546106d485b5e88849be5e497a3",class:"content"},Array.isArray(this.value)?this.value.map((o=>t("div",{class:"indent"},t(mo,{value:o,collapseDepth:e}),t("span",{class:"comma"},",")))):Object.entries(this.value).map((([o,s])=>t("div",{class:"indent"},t("smoothly-display-json-record-key",{value:o}),":"," ",t(mo,{value:s,collapseDepth:e}),t("span",{class:"comma"},","))))),t("span",{key:"b8bd52db35dcf7bc14de9fdfe3b928eebdc04d7a"},this.closeBracket))}};go.style=po;const ko=".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 vo=ko;const xo=class{constructor(t){e(this,t);this.value=undefined}render(){return t(s,{key:"2b2dbfe65a076ca4c5e5b4f16b9431eeca85ffbc",class:this.value==null?"null":typeof this.value},""+JSON.stringify(this.value))}};xo.style=vo;const wo=".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 So=wo;const Co=class{constructor(t){e(this,t);this.value=undefined}render(){return t(s,{key:"e76d5030ff940c6a7d9acf859603e6be834a3b81"},'"',this.value,'"')}};Co.style=So;class zo{filter(e){return e.filter((e=>this.is(e)))}stringify(e=0){let t=this.toString();if(this.precedence<e)t="("+t+")";return t}}const jo=[e=>e instanceof zo?e:undefined];function _o(e){jo.push(e)}let To;function Io(e){To=e}function Lo(e){let t;for(const o of jo){t=o(e);if(t)break}return t||To}class Oo extends zo{constructor(){super();this.precedence=Number.MAX_SAFE_INTEGER;this.class="Always"}is(e){return true}toString(){return""}}Io(new Oo);class Eo extends zo{constructor(e){super();this.criteria=e;this.precedence=50;this.class="Any"}is(e){return e&&typeof e=="object"&&Object.getOwnPropertyNames(e).some((t=>this.criteria.is(e[t])||this.is(e[t])))}toString(){return this.criteria.stringify(this.precedence)}}class Ao extends zo{constructor(e){super();this.precedence=40;this.class="And";this.rules=e.reduce(((e,t)=>t instanceof Ao?[...e,...t.rules]:[...e,t]),[])}is(e){return this.rules.every((t=>t.is(e)))}toString(){return this.rules.map((e=>e.stringify(this.precedence))).join(" ")}generalize(){return new Ao(this.rules.map((e=>e.class=="Property"?e:new Eo(e))))}}function Do(...e){return new Ao(e.map(Lo))}var Mo;(function(e){e.is=$o})(Mo||(Mo={}));function $o(e,t=false){return typeof e=="number"||typeof e=="string"||e instanceof zo||t&&typeof e=="object"&&e&&Object.values(e).every((e=>Array.isArray(e)?e.every((e=>$o(e,true))):$o(e,true)))}var Ro=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var Po={};var No={};var Fo={};var Ho={};var Uo={};(function(e){Object.defineProperty(e,"__esModule",{value:true});(function(e){e[e["Logging"]=0]="Logging";e[e["Debug"]=1]="Debug";e[e["Warning"]=2]="Warning";e[e["Recoverable"]=3]="Recoverable";e[e["Critical"]=4]="Critical"})(e.Level||(e.Level={}))})(Uo);Object.defineProperty(Ho,"__esModule",{value:true});const Yo=Uo;class Wo{constructor(e,t=Yo.Level.Recoverable,o="unknown",s){this.description=e;this.level=t;this.type=o;this.region=s}toString(){return Yo.Level[this.level]+": "+this.type+" error. "+this.description+(this.region?" @ "+this.region.toString():"")}}Ho.Message=Wo;Object.defineProperty(Fo,"__esModule",{value:true});const Bo=Ho;class Vo{raise(e,t,o,s){if(!(e instanceof Bo.Message))e=new Bo.Message(e,t,o,s);console.error(e.toString())}}Fo.ConsoleHandler=Vo;var Go={};var qo={};Object.defineProperty(qo,"__esModule",{value:true});class Ko{constructor(e,t){this.line=e;this.column=t}toString(){return"Ln "+this.line+", Col "+this.column}}qo.Position=Ko;Object.defineProperty(Go,"__esModule",{value:true});const Zo=qo;class Jo extends Zo.Position{constructor(e,t,o){super(t,o);this.resource=e}toString(){return this.resource.toString()+" @ "+super.toString()}}Go.Location=Jo;var Xo={};Object.defineProperty(Xo,"__esModule",{value:true});class Qo{constructor(e,t,o,s){this.resource=e;this.start=t;this.end=o;this.content=s}merge(e){return e?new Qo(this.resource,this.start,e.end,this.content?this.content:""+e.content?e.content:""):this}toString(){let e=this.resource.toString();if(this.start&&this.end)e+=" ("+this.start.toString()+" - "+this.end.toString()+") ";if(this.content)e+=this.content;return e}}Xo.Region=Qo;Object.defineProperty(No,"__esModule",{value:true});var es=Fo;No.ConsoleHandler=es.ConsoleHandler;var ts=Uo;No.Level=ts.Level;var os=Go;No.Location=os.Location;var ss=Ho;No.Message=ss.Message;var as=qo;No.Position=as.Position;var is=Xo;No.Region=is.Region;var ns={};var ls={};var rs={};var cs={};var ds={};Object.defineProperty(ds,"__esModule",{value:true});class hs{constructor(e,t){this.name=e;this.password=t}get isEmpty(){return!this.name&&!this.password}toString(){let e="";if(this.name)e=this.name;if(this.password)e+=":"+this.password;return e}static parse(e){let t;if(e){const o=e.split(":",2);t=new hs(o[0],o[1])}else t=new hs;return t}}ds.User=hs;var ms={};Object.defineProperty(ms,"__esModule",{value:true});class ys{constructor(e=[],t){this.host=e;this.port=t}get isEmpty(){return this.host.length==0&&!this.port}toString(){let e=this.host.join(".");if(this.port)e+=":"+this.port.toString();return e}static parse(e){let t;if(e){const o=e.split(":",2);t=new ys(o[0].split("."),o.length>1?parseInt(o[1]):undefined)}else t=new ys;return t}}ms.Endpoint=ys;Object.defineProperty(cs,"__esModule",{value:true});const bs=ds;const us=ms;class fs{constructor(e=new bs.User,t=new us.Endpoint){this.user=e;this.endpoint=t}get isEmpty(){return this.user.isEmpty&&this.endpoint.isEmpty}toString(){let e="";if(!this.user.isEmpty)e=this.user.toString()+"@";if(!this.endpoint.isEmpty)e=e+this.endpoint.toString();return e}static parse(e){let t;if(e){const o=e.split("@",2);t=new fs(bs.User.parse(o.length==2?o.pop():undefined),us.Endpoint.parse(o.pop()))}return t}}cs.Authority=fs;var ps={};Object.defineProperty(ps,"__esModule",{value:true});const gs=cs;class ks{constructor(e=[],t=new gs.Authority,o=[],s={},a){this.scheme=e;this.authority=t;this.path=o;this.query=s;this.fragment=a}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 ks(this.scheme,this.authority,this.path.filter(((e,t)=>t<this.path.length-1)),this.query,this.fragment)}get name(){return this.path[this.path.length-1]}get extension(){const e=this.name.split(".");return e.length>1?e[e.length-1]:""}createArray(e,t){const o=[];while(t-- >0)o.push(e);return o}normalize(){let e=0;const t=this.path.reverse().filter(((t,o)=>{let s=false;if((t==""||t==".")&&o<this.path.length-1)s=false;else if(t=="..")e++;else if(e>0)e--;else s=true;return s})).concat(this.createArray("..",e)).reverse();return new ks(this.scheme,this.authority,t,this.query,this.fragment)}resolve(e){return!e?this:new ks(this.scheme.length>0?this.scheme:e.scheme,!this.authority.isEmpty?this.authority:e.authority,this.isRelative?e.folder.path.concat(this.path):this.path,this.query,this.fragment).normalize()}appendPath(e){return new ks(this.scheme,this.authority,e instanceof Array?[...this.path,...e]:[...this.path,e],this.query,this.fragment)}toString(){let e="";if(this.scheme.length>0)e+=this.scheme.join("+")+":";if(!this.authority.isEmpty)e+="//"+this.authority.toString();else if(this.scheme.length>0)e+="//";if(this.path){let t=this.path.join("/");if(t[0]!="."||e.length>0)t="/"+t;e+=t}if(Object.keys(this.query).length>0)e+="?"+this.query.toString();if(this.fragment)e+="#"+this.fragment;return e}static parse(e){let t;switch(e){case"":case null:case undefined:break;default:let o=true;let s=[];let a=e.split("://",2);if(a.length>1){s=(a.shift()||"").split("+");e=a.shift()}else if(e.slice(0,2)=="//")e=e.slice(2);else o=false;let i;let n;if(e&&(i=e.lastIndexOf("#"))>-1){n=e.slice(i+1);e=e.slice(0,i)}let l={};if(e&&(i=e.lastIndexOf("?"))>-1){l=new Object;e.slice(i+1).split(";").forEach((e=>{a=e.split("=");const t=a.shift();const o=a.shift();if(t&&o)l[t]=o}));e=e.slice(0,i)}let r;let c=[];if(e){a=e.split("/");if(a.length>0){switch(a[0]){case".":case"..":break;case"":a.shift();break;default:if(o)r=gs.Authority.parse(a.shift());else a.unshift(".");break}c=a}}t=new ks(s,r,c,l,n);break}return t}}ps.Locator=ks;ks.empty=new ks(undefined,undefined,undefined,undefined,undefined);Object.defineProperty(rs,"__esModule",{value:true});var vs=cs;rs.Authority=vs.Authority;var xs=ms;rs.Endpoint=xs.Endpoint;var ws=ps;rs.Locator=ws.Locator;var Ss=ds;rs.User=Ss.User;var Cs={};var zs={};var js={};Object.defineProperty(js,"__esModule",{value:true});class _s{}js.Device=_s;Object.defineProperty(zs,"__esModule",{value:true});const Ts=js;class Is extends Ts.Device{}zs.InDevice=Is;Object.defineProperty(Cs,"__esModule",{value:true});const Ls=zs;class Os extends Ls.InDevice{static addOpener(e,t){if(!t)t=0;Os.openers.push({open:e,priority:t});Os.openers=Os.openers.sort(((e,t)=>t.priority-e.priority))}static open(e){let t;let o=0;do{t=Os.openers[o++].open(e)}while(!t&&o<Os.openers.length);return t}}Cs.Reader=Os;Os.openers=[];Object.defineProperty(ls,"__esModule",{value:true});const Es=rs;const As=No;const Ds=Cs;var Ms=Cs;ls.Reader=Ms.Reader;class $s extends Ds.Reader{constructor(e){super();this.backend=e;this.buffer=[];this.lastContent="";this.lastMark=this.locationValue=this.backend.location}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}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 e=this.location;return e?e.resource:Es.Locator.empty}get location(){return this.locationValue}get region(){return new As.Region(this.resource,this.lastMark,this.location,this.lastContent)}close(){return this.backend.close()}peek(e){if(!e)e=1;let t;while(e>this.buffer.length&&(t=this.backend.read()))this.buffer.push({data:t,location:this.backend.location});return this.buffer.length==0?undefined:this.buffer.slice(0,e>this.buffer.length?this.buffer.length:e).map((e=>e.data)).join("")}read(e){if(!e)e=1;const t=this.peek(e);if(t&&t.length>0){this.locationValue=this.buffer[t.length-1].location;this.buffer.splice(0,t.length);this.lastContent+=t}return t}peekIs(e,t){let o;if(e)if(typeof e=="string"){const s=e;while(t&&t-- >0)e+=s;o=this.peek(e.length)==e?e:undefined}else if(e.length>0&&!(o=this.peekIs(e[0]))&&e.length)o=this.peekIs(e.slice(1));return o}readIf(e){let t;if(e)if(typeof e=="string")t=this.peek(e.length)==e&&this.read(e.length)||undefined;else if(e.length>0&&!(t=this.readIf(e[0]))&&e.length)t=this.readIf(e.slice(1));return t}readAll(){let e="";while(this.peek())e+=this.read();return e!=""?e:undefined}mark(){const e=this.region;this.lastMark=this.location;this.lastContent="";return e}static create(e){return e?new $s(e):undefined}}ls.BufferedReader=$s;var Rs={};var Ps={};var Ns=Ro&&Ro.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(Ps,"__esModule",{value:true});function Fs(e){return Ns(this,void 0,void 0,(function*(){}))}Ps.close=Fs;function Hs(e){return Ns(this,void 0,void 0,(function*(){}))}Ps.fsync=Hs;function Us(e,t,o){return Ns(this,void 0,void 0,(function*(){return 0}))}Ps.open=Us;function Ys(e,t,o,s){return Ns(this,void 0,void 0,(function*(){return{bytesWritten:0}}))}Ps.write=Ys;function Ws(e,t){return{isDirectory:()=>false}}Ps.lstatSync=Ws;function Bs(e){return[]}Ps.readdirSync=Bs;function Vs(e,t){return""}Ps.readFileSync=Vs;var Gs={};Object.defineProperty(Gs,"__esModule",{value:true});const qs="/";Gs.sep=qs;var Ks={};var Zs=Ro&&Ro.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(Ks,"__esModule",{value:true});const Js=No;const Xs=rs;const Qs=Cs;class ea extends Qs.Reader{constructor(e,t){super();this.content=e;this.resource=t;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 Js.Location(this.resource,this.line,this.column)}get region(){return new Js.Region(this.resource,this.lastPosition,this.location,this.lastContent)}close(){return Zs(this,void 0,void 0,(function*(){const e=!(yield this.isEmpty);if(e)this.count=this.content.length;return e}))}read(){let e;if(this.count<this.content.length)e=this.content.charAt(this.count);else if(this.count==this.content.length)e=undefined;this.count++;if(e){switch(e){case"\n":this.line++;this.column=1;break;case"\t":this.column+=this.tabSize;break;default:this.column++;break}this.lastContent+=e}return e}mark(){const e=this.region;this.lastPosition=this.location;this.lastContent="";return e}static create(e,t){return e!=undefined?new ea(e,t||Xs.Locator.empty):undefined}}Ks.StringReader=ea;Object.defineProperty(Rs,"__esModule",{value:true});const ta=Ps;const oa=Gs;const sa=rs;const aa=Cs;const ia=Ks;class na extends aa.Reader{constructor(e){super();this.backend=e}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}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:sa.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(e){let t;if(e&&(e.scheme.length==0||e.scheme.length==1&&e.scheme[0]=="file"))try{t=ia.StringReader.create(ta.readFileSync((e.isRelative?"":oa.sep)+e.path.join(oa.sep),"utf-8"),e)}catch(t){console.log(`Failed to open file: ${e.toString()}`)}return t?new na(t):undefined}}Rs.FileReader=na;aa.Reader.addOpener((e=>na.open(e)),10);var la={};var ra=Ro&&Ro.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(la,"__esModule",{value:true});const ca=Ps;const da=Gs;const ha=rs;const ma=No;const ya=Cs;const ba=Rs;class ua extends ya.Reader{constructor(e){super();this.files=e;this.tabSizeValue=2;this.lastLocation=new ma.Location(ha.Locator.empty,0,0)}get tabSize(){return this.tabSizeValue}set tabSize(e){this.tabSizeValue=e;if(this.current)this.current.tabSize=e}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 ma.Region(this.resource)}close(){return ra(this,void 0,void 0,(function*(){return this.current!=undefined&&(yield this.current.close())}))}read(){let e;if(!this.current&&this.files.length>0){this.current=ba.FileReader.open(this.files.shift());this.current.tabSize=this.tabSize}if(this.current){e=this.current.read();if(e==undefined||e=="\0"){this.current.close();this.current=undefined}}this.lastLocation=this.location;return e}mark(){return this.current?this.current.mark():new ma.Region(this.resource)}static getFiles(e,t,o=[]){let s=[];const a=ca.readdirSync(e);a.forEach((a=>{const i=e+da.sep+a;if(o.indexOf(i)==-1){if(ca.lstatSync(i).isDirectory())s=s.concat(ua.getFiles(i,t,o));else if(a.length>t.length&&a.lastIndexOf(t,a.length-t.length)===a.length-t.length)s.push(i)}}));return s}static open(e){let t;try{if(e&&(e.scheme.length==0||e.scheme.length==1&&e.scheme[0]=="file")&&e.isFolder||e.name.match("*"))t=ua.getFiles((e.isRelative?"":da.sep)+e.folder.path.join(da.sep),e.extension)}catch(e){}return t?new ua(t.map((e=>new ha.Locator(["file"],undefined,e.split(da.sep))))):undefined}}la.FolderReader=ua;ya.Reader.addOpener((e=>ua.open(e)),0);var fa={};var pa={};var ga={};var ka={};Object.defineProperty(ka,"__esModule",{value:true});function*va(e){let t;while((t=e())!=undefined)yield t}function xa(e){return e.next instanceof Function}function*wa(e,t){let o;while(!(o=e.next()).done)yield o.value;if(xa(t))while(!(o=t.next()).done)yield o.value;else yield t}class Sa{constructor(e){this.iterator=e instanceof Function?va(e):e}get length(){let e=0;while(!this.next().done)e++;return e}get last(){return this.nextValue&&!this.nextValue.done?this.nextValue.value:undefined}fetch(){const e=this.next();return e.done?undefined:e.value}next(e){return this.nextValue=this.iterator.next(e)}append(e){return new Sa(wa(this,e))}map(e){return new Sa((()=>{const t=this.fetch();return t!=undefined?e(t):undefined}))}reduce(e,t){const o=this.fetch();return o?this.reduce(e,e(t,o)):t}apply(e){const t=this.fetch();if(t){e(t);this.apply(e)}}filter(e){return new Sa((()=>{let t;do{t=this.fetch()}while(t!=undefined&&!e(t));return t}))}toArray(){const e=this.fetch();let t;if(!e)t=[];else{t=this.toArray();t.unshift(e)}return t}static from(e){return new Sa(e)}}ka.Enumerator=Sa;Sa.empty=Sa.from((()=>undefined));var Ca={};Object.defineProperty(Ca,"__esModule",{value:true});const za=ka;function ja(e){return e==null?false:typeof e[Symbol.iterator]==="function"}class _a{constructor(e){this.get=e}get length(){return this.get().length}get first(){return this.get().fetch()}get last(){return this.get().last}getEnumerator(){return new za.Enumerator(this.get())}[Symbol.iterator](){return this.getEnumerator()}append(e){return new _a((()=>this.get().append(e)))}map(e){return new _a((()=>this.get().map(e)))}reduce(e,t){return this.get().reduce(e,t)}apply(e){this.get().apply(e)}filter(e){return new _a((()=>this.get().filter(e)))}toArray(){return this.getEnumerator().toArray()}static from(e){return ja(e)?new _a((()=>new za.Enumerator(e[Symbol.iterator]()))):new _a((()=>{const t=e();return t instanceof za.Enumerator?t:new za.Enumerator(t)}))}}Ca.Enumerable=_a;_a.empty=_a.from([]);var Ta={};Object.defineProperty(Ta,"__esModule",{value:true});const Ia=ka;class La extends Ia.Enumerator{constructor(e){super((()=>this.position<this.backend.length?this.backend[this.position++]:undefined));this.backend=e;this.position=0}}Ta.ArrayEnumerator=La;var Oa={};Object.defineProperty(Oa,"__esModule",{value:true});const Ea=ka;class Aa extends Ea.Enumerator{constructor(e){super((()=>{const e=this.peek(0);if(this.buffer.length>0)this.buffer.shift();return e}));this.backend=e;this.buffer=[]}peek(e){if(!e)e=0;let t;while(e>this.buffer.length-1&&(t=this.backend.fetch()))this.buffer.push(t);return e>this.buffer.length-1?undefined:this.buffer[e]}}Oa.BufferedEnumerator=Aa;var Da={};Object.defineProperty(Da,"__esModule",{value:true});class Ma{static padLeft(e,t,o){return Ma.pad(e,t,o,true)}static padRight(e,t,o){return Ma.pad(e,t,o,false)}static pad(e,t,o,s){let a="";const i=o-e.length;for(let e=0;e<i;e++)a+=t;return s?a+e:e+a}}Da.String=Ma;Object.defineProperty(ga,"__esModule",{value:true});var $a=ka;ga.Enumerator=$a.Enumerator;var Ra=Ca;ga.Enumerable=Ra.Enumerable;var Pa=Ta;ga.ArrayEnumerator=Pa.ArrayEnumerator;var Na=Oa;ga.BufferedEnumerator=Na.BufferedEnumerator;var Fa=Da;ga.String=Fa.String;var Ha={};Object.defineProperty(Ha,"__esModule",{value:true});const Ua=js;class Ya extends Ua.Device{}Ha.OutDevice=Ya;var Wa=Ro&&Ro.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(pa,"__esModule",{value:true});const Ba=rs;const Va=ga;const Ga=Ha;class qa extends Ga.OutDevice{constructor(){super(...arguments);this.newLineSymbol="\n"}write(e){return Wa(this,void 0,void 0,(function*(){return e instanceof Va.Enumerator?this.writeImplementation(e):e instanceof Array?this.writeImplementation(new Va.ArrayEnumerator(e)):this.writeImplementation(new Va.ArrayEnumerator([e]))}))}writeLine(e){return Wa(this,void 0,void 0,(function*(){return e instanceof Va.Enumerator?this.writeImplementation(e.append(this.newLineSymbol)):e instanceof Array?this.writeImplementation(new Va.ArrayEnumerator([...e,this.newLineSymbol])):e?this.writeImplementation(new Va.ArrayEnumerator([e,this.newLineSymbol])):this.writeImplementation(new Va.ArrayEnumerator([this.newLineSymbol]))}))}static addOpener(e,t){if(!t)t=0;qa.openers.push({open:e,priority:t});qa.openers=qa.openers.sort(((e,t)=>t.priority-e.priority))}static open(e){return Wa(this,void 0,void 0,(function*(){let t;if(typeof e=="string"){const o=Ba.Locator.parse(e);t=o?yield qa.open(o):undefined}else{let o=0;do{t=yield qa.openers[o++].open(e)}while(!t&&o<qa.openers.length)}return t}))}}pa.Writer=qa;qa.openers=[];Object.defineProperty(fa,"__esModule",{value:true});const Ka=pa;class Za extends Ka.Writer{constructor(e){super();this.backend=e;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(e){const t=[];let o;let s=e.fetch();if(s)do{o=s;s=e.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);t.push(this.backend.write(o))}while(s);return Promise.all(t).then((e=>e.reduce(((e,t)=>e&&t),true)))}}fa.Indenter=Za;var Ja={};Object.defineProperty(Ja,"__esModule",{value:true});const Xa=Cs;const Qa=ls;class ei extends Xa.Reader{constructor(e,t){super();this.prefix=t;this.done=false;this.backend=e instanceof Qa.BufferedReader?e:Qa.BufferedReader.create(e)}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}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 e;if(!this.done){e=this.backend.read();this.done=e=="\n"&&!this.backend.readIf(this.prefix)&&!this.backend.peekIs("\n")}return e}mark(){return this.backend.mark()}static create(e,t){return e&&t?new ei(e,t):e}}Ja.PrefixReader=ei;var ti={};var oi=Ro&&Ro.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(ti,"__esModule",{value:true});const si=Ps;const ai=Gs;const ii=pa;class ni extends ii.Writer{constructor(e,t){super();this.resource=e;this.descriptor=t;this.autoFlush=false}get opened(){return this.descriptor>0}get writable(){return this.descriptor>0}flush(){return oi(this,void 0,void 0,(function*(){let e=true;try{yield si.fsync(this.descriptor)}catch(t){e=false}return e}))}close(){return oi(this,void 0,void 0,(function*(){let e=this.opened;if(e){try{yield si.close(this.descriptor)}catch(t){e=false}this.descriptor=0}return e}))}writeImplementation(e){return oi(this,void 0,void 0,(function*(){let t=true;const o=Buffer.from(e.reduce(((e,t)=>e+t),""));try{const e=yield si.write(this.descriptor,o,0,"utf8");t=e.bytesWritten==o.length}catch(e){t=false}return t&&(!this.autoFlush||(yield this.flush()))}))}static open(e){return oi(this,void 0,void 0,(function*(){let t;if(e&&(e.scheme.length==0||e.scheme.length==1&&e.scheme[0]=="file"))try{t=yield si.open((e.isRelative?"":ai.sep)+e.path.join(ai.sep),"w")}catch(e){t=undefined}return t?new ni(e,t):undefined}))}}ti.FileWriter=ni;ii.Writer.addOpener(ni.open);var li={};Object.defineProperty(li,"__esModule",{value:true});const ri=Cs;const ci=ls;class di extends ri.Reader{constructor(e,t){super();this.endMark=t;this.done=false;this.backend=e instanceof ci.BufferedReader?e:ci.BufferedReader.create(e);this.done=this.backend.peekIs(this.endMark)!=undefined}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}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 e=!this.done;if(e)this.done=true;return Promise.resolve(e)}read(){let e;if(!this.done){e=this.backend.read();this.done=this.backend.peekIs(this.endMark)!=undefined}return e}mark(){return this.backend.mark()}static create(e,t){return e&&t?new di(e,t):e}}li.TillReader=di;var hi={};Object.defineProperty(hi,"__esModule",{value:true});const mi=Cs;const yi=ls;class bi extends mi.Reader{constructor(e,t){super();this.endMark=t;this.done=-1;this.backend=e instanceof yi.BufferedReader?e:yi.BufferedReader.create(e);const o=this.backend.peekIs(this.endMark);if(o)this.done=o.length}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}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 e=this.done>0;if(e)this.done=0;return Promise.resolve(e)}read(){let e;if(this.done!=0){e=this.backend.read();let t;if(this.done>0)this.done--;else if(t=this.backend.peekIs(this.endMark))this.done=t.length}return e}mark(){return this.backend.mark()}static create(e,t){return e&&t?new bi(e,t):e}}hi.UntilReader=bi;Object.defineProperty(ns,"__esModule",{value:true});var ui=ls;ns.BufferedReader=ui.BufferedReader;var fi=js;ns.Device=fi.Device;var pi=Rs;ns.FileReader=pi.FileReader;var gi=la;ns.FolderReader=gi.FolderReader;var ki=fa;ns.Indenter=ki.Indenter;var vi=zs;ns.InDevice=vi.InDevice;var xi=Ha;ns.OutDevice=xi.OutDevice;var wi=Ja;ns.PrefixReader=wi.PrefixReader;var Si=Cs;ns.Reader=Si.Reader;var Ci=Ks;ns.StringReader=Ci.StringReader;var zi=ti;ns.FileWriter=zi.FileWriter;var ji=li;ns.TillReader=ji.TillReader;var _i=hi;ns.UntilReader=_i.UntilReader;var Ti=pa;ns.Writer=Ti.Writer;Object.defineProperty(Po,"__esModule",{value:true});const Ii=No;var Li=Po.Error=Ii;const Oi=ns;var Ei=Po.IO=Oi;const Ai=rs;Po.Uri=Ai;const Di=ga;var Mi=Po.Utilities=Di;class $i extends Ei.BufferedReader{constructor(e,t){super(typeof e=="string"?Ei.StringReader.create(e):e);this.errorHandler=t}raise(e,t,o="lexical",s){if(!(e instanceof Li.Message)){if(!t)t=Li.Level.Critical;if(!s)s=this.region;e=new Li.Message(e,t,o,s)}if(this.errorHandler)this.errorHandler.raise(e)}requirePrefix(e){return new $i(new Ei.PrefixReader(this,e),this.errorHandler)}till(e){return new $i(Ei.TillReader.create(this,e),this.errorHandler)}until(e){return new $i(Ei.UntilReader.create(this,e),this.errorHandler)}peekIsSymbol(e){return this.peekIs(e??["!","(",")","[","]","|","*",":",".","<=",">=","<",">"," * "," + "," - "," / ",","])?.length??false}peekIsWhitespace(){return!!this.peekIs([" ","\n","\t"])}}function Ri(e,t,o){const s=new $i(e,t);return new Mi.Enumerator((()=>{let e;let t=1;if(!s.isEmpty){while(s.peekIsWhitespace()&&!s.peekIsSymbol(o))s.read();if(t=s.peekIsSymbol(o))e={value:s.read(t)||"",region:s.mark()};else{let t="";while(!s.isEmpty&&!s.peekIsWhitespace()&&!s.peekIsSymbol(o))t+=s.read();if(t)e={value:t,region:s.mark()}}}return e}))}class Pi{tokenize(e){return Ri(e,undefined,["!","(",")","[","]","|"," | ","*",":",".","<=",">=","<",">"," * "," + ","+"," - ","-"," / "]).map((e=>({value:e.value}))).toArray()}}class Ni extends Pi{constructor(e){super();this.class="array";this.array=e}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;return Ni.completor.flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])}isType(e){return global.Array.isArray(e)}static add(...e){this.completor.push(...e)}static is(e){return e instanceof Ni}}Ni.completor=[];var Fi;(function(e){function t(e){return typeof e=="object"&&typeof e.start=="number"&&typeof e.end=="number"}e.is=t})(Fi||(Fi={}));var Hi;(function(e){function t(e){return e.map((e=>typeof e.cursor=="number"?e.value.slice(0,e.cursor)+"_"+e.value.slice(e.cursor,e.value.length):e.value+"_"))}e.stringify=t;function o(e,t,s){return Array.isArray(t)?t.map((t=>o(e,t,s))):{value:e+t.value+(s??""),cursor:typeof t?.cursor=="number"?t?.cursor+e.length:Fi.is(t.cursor)?{start:t.cursor.start+e.length,end:t.cursor.end+e.length}:t.value.length+e.length,suggestion:t.suggestion}}e.prepend=o})(Hi||(Hi={}));class Ui extends Pi{constructor(){super();this.class="boolean"}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;const a=o?Ui.literals.filter((e=>e.value.startsWith(s[0]?.value??""))):s[0]?.value==":"?Hi.prepend(":",Ui.literals.filter((e=>e.value.startsWith(s[1]?.value??"")))):[];return[...a??[],...(o?[]:Ui.completor).flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])]}isType(e){return typeof e=="boolean"}static add(...e){this.completor.push(...e)}}Ui.literals=[{value:"true",suggestion:{value:"true"}},{value:"false",suggestion:{value:"false"}}];Ui.completor=[];var Yi;(function(e){function t(e,t,o){return e.length==0?[{value:":",suggestion:{value:":"}}]:e.length<=3&&e[0].value==":"&&o.value.startsWith(e[1]?.value??"")&&(e[2]?.value??"(")=="("?Hi.prepend(":",[o]):e.length<=4&&e.slice(0,4).reduce(((e,t)=>e+t.value),"")==":"+o.value?Hi.prepend(":"+o.value.substring(0,o.value.length-1),t(),")"):e.length==5&&e.slice(0,3).reduce(((e,t)=>e+t.value),"")+e[4].value==":"+o.value?Hi.prepend(":"+o.value.substring(0,o.value.length-1),t(e.slice(3,e.length-1)),")"):e.length>5&&e.slice(0,3).reduce(((e,t)=>e+t.value),"")+e[e.length-1].value==":"+o.value?Hi.prepend(":"+o.value.substring(0,o.value.length-1),t(e.slice(3,e.length-1)),")"):[]}e.functions=t;function o(e,t,o){return e.length==0?[{value:":",suggestion:{value:":"}}]:e[0].value!=":"?[]:e.length==1?Hi.prepend(":",[o]):Hi.prepend(":",t(e.slice(1)))}e.expressions=o;function s(e,t,o){return e.length>=1&&e[0].value==o.value?Hi.prepend(o.value,t(e.slice(1))):e.length==0||e.length==1&&o.value.startsWith(e[0].value)||e[0].value==o.value.replace(/ /g,"")?[o]:[]}e.operators=s})(Yi||(Yi={}));class Wi extends Pi{constructor(e){super();this.input=e;this.class="number";if(e)this.value=e}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;return[...s.length>0&&s[0].value==":"&&t?Hi.prepend(":",t.complete(s.slice(1),undefined,this)):t&&s.length>=0&&o?Hi.prepend(" ",t?.complete(s,undefined,undefined)):[],...(o?Wi.completorArgument:Wi.completor).flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])]}isType(e){return isNaN(+e)?false:true}static add(...e){this.completor.push(...e)}static addArgument(...e){this.completorArgument.push(...e)}static is(e){return e instanceof Wi||!global.Number.isNaN(e)}}Wi.completor=[];Wi.completorArgument=[];class Bi extends Pi{constructor(e){super();this.properties=e;this.class="object";this.completions=Object.keys(this.properties).map((e=>({value:e,suggestion:{value:e}})))}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;let a;const i=this.filterByType(o);if(!t){const e=s.length>0?this.match(s[0],i):undefined;if(e)a=s.length>=1?Hi.prepend(e.value,this.properties[e.value].complete(s.slice(1),this,o)):[];else if(o&&s.length>2&&o.isType(s[0].value+s[1].value+s[2].value))a=Hi.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))a=Hi.prepend(s[0].value,o.complete(s.slice(1),this,o));else{let e;a=s.length==0?[...this.addDot(i,o),...o?.class=="number"?[]:Bi.wildcard]:s.length==1&&(e=Bi.wildcard.find((e=>e.value==s[0].value)))?Hi.prepend(e.value,this.completions,o?".":""):s.length>=1&&(e=Bi.wildcard.find((e=>e.value==s[0].value)))?Hi.prepend(e.value,this.complete(s.slice(1))):this.addDot(this.partial(s[0],i),o)}}else a=s.length==0?[{value:".",suggestion:{value:"."}}]:s[0].value!="."?[]:s.length==1?Hi.prepend(".",this.addDot(i,o)):this.properties[s[1].value]?Hi.prepend("."+s[1].value,this.properties[s[1].value].complete(s.slice(2),t,o)):Hi.prepend(".",this.addDot(this.partial(s[1],i),o));return[...a.reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[]),...Bi.completor.flatMap((e=>e(s,this,t)))]}filterByType(e){return e?this.completions.filter((t=>this.properties[t.value].class==e.class||(this.properties[t.value].class=="object"?this.properties[t.value].filterByType(e).length>0:false))):this.completions}addDot(e,t){return!e?[]:t?e.map((e=>this.properties[e.value].class=="object"?{value:e.value+".",suggestion:{value:e.suggestion?.value+"."}}:e)):e}partial(e,t){const o=t.filter((t=>t.value.startsWith(e.value)));return o&&o.length>0?o:undefined}match(e,t){const o=t.filter((t=>t.value==e.value));return o&&o.length>0?o[0]:undefined}isType(e){return false}static add(...e){this.completor.push(...e)}}Bi.wildcard=[{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}];Bi.completor=[];class Vi extends Pi{constructor(e){super();this.class="string";if(e)this.value=e}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;let a;if(o)a=this.value?.startsWith(s[0]?.value??"")?[{value:this.value,suggestion:{value:this.value}}]:undefined;else a=s.length==0||s[0].value!=":"?undefined:this.value?.startsWith(s[1]?.value??"")?[Hi.prepend(":",{value:this.value,suggestion:{value:this.value}})]:undefined;return[...a??[],...(o?[]:Vi.completor).flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])]}isType(e){return typeof e.value=="string"}static add(...e){this.completor.push(...e)}static is(e){return e instanceof Vi}}Vi.completor=[];class Gi extends Pi{constructor(e){super();this.type=e;this.class="union"}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;return this.type?this.type?.flatMap((e=>e?.complete(s,t,o)??[])):[]}isType(e){return e instanceof Gi}static is(e){return e instanceof Gi}}var qi;(function(e){function t(e,t){const o=e.complete(t);return o.filter((e=>!t.includes(e.value)&&e.suggestion?.value)).map((e=>({full:e.value,cursor:e?.cursor??e.value.length,addon:e?.suggestion?.value,description:e?.suggestion?.description})))}e.complete=t;function o(e){let t;switch(typeof e){case"object":t=global.Array.isArray(e)?new Ni(e.map((e=>o(e)))):new Bi(global.Object.entries(e).reduce(((e,t)=>({...e,[t[0]]:o(t[1])})),{}));break;case"string":t=new Vi(e);break;default:t=new Wi(e);break}return t}e.convert=o;e.Array=Ni;e.Boolean=Ui;e.Completion=Hi;e.Object=Bi;e.String=Vi;e.Number=Wi;e.Union=Gi;e.Completor=Yi})(qi||(qi={}));class Ki extends zo{constructor(e){super();this.needle=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="EndsWith"}is(e){return typeof e=="string"&&e.endsWith(this.needle)}toString(){return`*${this.needle}`}}function Zi(e,t){return Yi.expressions(e,(e=>!e||e[0].value=="*"&&t.value&&t.value.endsWith(e[1]?.value??"")?[qi.Completion.prepend("*",{value:t?.value??"",suggestion:{value:t?.value??""}})]:[]),{value:"*",suggestion:{value:"*",description:"endswith"}})}qi.String.add(Zi);class Ji extends zo{constructor(e){super();this.criteria=e;this.precedence=100;this.class="Every"}is(e){return Array.isArray(e)&&e.every((e=>this.criteria.is(e)))}toString(){return`every(${this.criteria.toString()})`}}function Xi(e,t){const o=e=>t.array.some(qi.String.is)&&e?t.array.filter(qi.String.is).map((t=>t.complete([{value:":"},...e]))).reduce(((e,t)=>Array.isArray(t)?e.concat(t):t?[...e,t]:e),[]):!e&&t.array.some(qi.String.is)?t.array.filter(qi.String.is).map((e=>({value:e?.value??""}))):t.array.some(qi.Number.is)&&e?t.array.filter(qi.Number.is).map((t=>t.complete(e))).reduce(((e,t)=>Array.isArray(t)?e.concat(t):t?[...e,t]:e),[]):!e&&t.array.some(qi.Number.is)?t.array.filter(qi.Number.is).map((e=>({value:(e?.value??"").toString()}))):[];return Yi.functions(e,o,{value:"every()",cursor:6,suggestion:{value:"every()"}})}qi.Array.add(Xi);class Qi extends zo{constructor(e,t,o){super();this.identifier=e;this.argument=t;this.definition=o;this.precedence=85;this.class="FunctionCall"}is(e){return this.definition?.is(e)??true}toString(){return`${this.identifier}(${this.argument.join(", ")})`}}class en{stringify(e=0){let t=this.toString();if(this.precedence<e)t="("+t+")";return t}}class tn extends en{constructor(e,t){super();this.name=t;this.precedence=tn.precedence;this.class="Value";if(typeof e=="string")this.value=isNaN(+e.replace(",","."))?e:+e.replace(",",".");else this.value=e}toString(){return this.name?`${this.name?.toString()}.`+this.value.toString():this.value.toString()}evaluate(e){return e?this.get(e):+this.value}get(e){return typeof this.value=="string"?+e[this.value]:this.name&&typeof this.value=="object"?this.value.get(e[this.name]):+this.value}static create(e,t){return new tn(e,t)}}tn.precedence=19;class on extends zo{constructor(e){super();this.value=e;this.precedence=85;this.class="GreaterThan";this.symbol=">"}is(e,t){return(isNaN(+e)?e:+e)>(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function sn(e,t,o){return qi.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:">",suggestion:{value:">"}})}qi.Number.add(sn);qi.String.add(sn);class an extends zo{constructor(e){super();this.value=e;this.precedence=85;this.class="GreaterThanOrEqual";this.symbol=">="}is(e,t){return(isNaN(+e)?e:+e)>=(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function nn(e,t,o){return qi.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:">=",suggestion:{value:">="}})}qi.Number.add(nn);qi.String.add(nn);class ln extends zo{constructor(e){super();this.property=e;this.precedence=85;this.class="Has"}is(e,t){return typeof e=="object"&&e?Object.entries(e).some((e=>{t=typeof t=="string"?t:this.property;return e[0]==t?true:typeof e[1]=="object"&&e[1]?this.is(e[1],t.includes(".")&&t.split(".")[0]==e[0]?t.split(".")[1]:undefined):false})):false}toString(){return`has(${this.property})`}}function rn(e,t,o){return o&&t?.class=="object"?Yi.functions(e,(e=>t.completions.filter((t=>t.value.startsWith(e?e[0].value:"")))),{value:"has()",cursor:4,suggestion:{value:"has()"}}):[]}qi.Object.add(rn);class cn extends zo{constructor(e){super();this.needle=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Includes"}is(e){return typeof e=="string"&&e.includes(this.needle)}toString(){return`*${this.needle}*`}}function dn(e,t){const o=new cn(e);return t?o.is(t):o}function hn(e,t){return Yi.expressions(e,(e=>!e||e.length==3&&t.value?.includes(e[1].value)&&t.value!=e[1].value||e.length==2&&e[0].value+e[1].value=="**"?[qi.Completion.prepend("*",{value:t?.value??"",suggestion:{value:t?.value??""}},"*")]:e.length==1&&e[0].value=="*"?[{value:"**",suggestion:{value:"**",description:"includes"}}]:[]),{value:"**",cursor:1,suggestion:{value:"**",description:"includes"}})}qi.String.add(hn);class mn extends zo{constructor(e){super();this.criteria=e;this.precedence=100;this.class="Some"}is(e,t){return Array.isArray(e)&&e.some((e=>this.criteria.is(e,t)))}toString(){return`some(${this.criteria.toString()})`}}function yn(e,t){const o=new mn(Lo(e));return t?o.is(t):o}function bn(e,t,o){return e.length==0?[{value:":",suggestion:{value:":"}}]:e[0].value!=":"?[]:e.length==1&&e[0].value==":"?qi.Completion.prepend(":",t.array.filter(qi.String.is).filter((e=>e.value&&e.value!="string")).map((e=>({value:e?.value??"",suggestion:{value:e?.value??""}})))):e.length==2&&e[0].value==":"?qi.Completion.prepend(":",t.array.filter(qi.String.is).filter((t=>t.value&&t.value!="string"&&t.value.startsWith(e[1].value))).map((e=>({value:e?.value??"",suggestion:{value:e?.value??""}})))):[]}qi.Array.add(bn);class un extends zo{constructor(e){super();this.value=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Is";this.symbol=":"}is(e,t){return Array.isArray(e)&&$o(this.value)?yn(this.value,e):(typeof e=="boolean"?e.toString():isNaN(+e)?e:+e)==(typeof this.value=="object"?this.value.evaluate(t):this.value)}toString(){return this.value.toString()}}_o((e=>typeof e=="bigint"||typeof e=="boolean"||typeof e=="number"||typeof e=="string"?new un(e):undefined));class fn extends zo{constructor(e){super();this.value=e;this.precedence=85;this.class="LesserThan";this.symbol="<"}is(e,t){return(isNaN(+e)?e:+e)<(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function pn(e,t,o){return qi.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:"<",suggestion:{value:"<"}})}qi.Number.add(pn);qi.String.add(pn);class gn extends zo{constructor(e){super();this.value=e;this.precedence=85;this.class="LesserThanOrEqual";this.symbol="<="}is(e,t){return(isNaN(+e)?e:+e)<=(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function kn(e,t,o){return qi.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:"<=",suggestion:{value:"<="}})}qi.Number.add(kn);qi.String.add(kn);function vn(e,t){return Yi.expressions(e,(e=>e&&e?.length==1&&e[0].value=="/"?[{value:"//",cursor:1}]:[]),{value:"//",cursor:1,suggestion:{value:"//",description:"match"}})}qi.String.add(vn);class xn extends zo{constructor(e){super();this.criteria=e;this.precedence=xn.precedence;this.class="Not"}is(e){return!this.criteria.is(e)}toString(){return`!${this.criteria.stringify(this.precedence)}`}}xn.precedence=90;function wn(e,t){const o=new xn(Lo(e));return t?o.is(t):o}function Sn(e,t,o){return t&&t.class!="object"&&o?Yi.expressions(e,(e=>e[0].value!="!"?[]:qi.Completion.prepend("!",t.complete(e.slice(1),o,t))),{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}):[]}qi.String.add(Sn);qi.Number.add(Sn);qi.Boolean.add(Sn);qi.Object.add(Sn);class Cn extends zo{constructor(e){super();this.precedence=Cn.precedence;this.class="Or";this.criteria=e.reduce(((e,t)=>t instanceof Cn?[...e,...t.criteria]:[...e,t]),[])}is(e){return this.criteria.some((t=>t.is(e)))}toString(){return this.criteria.map((e=>e.stringify(this.precedence))).join(" | ")}}Cn.precedence=30;function zn(e,t,o){return qi.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,undefined):[]),{value:" | ",suggestion:{value:"|",description:"or"}})}qi.Number.addArgument(zn);class jn extends Mi.BufferedEnumerator{constructor(e,t){super(Array.isArray(e)?new Mi.ArrayEnumerator(e):e);this.errorHandler=t}clone(e="(",t=")"){let o=0;return new jn(new Mi.Enumerator((()=>{let s;if(this.peekIs(e))o++;else if(this.peekIs(t))o--;if(o>=0)s=this.fetch();return s})),this)}peekIs(...e){return e.every(((e,t)=>{const o=this.peek(t);return o&&o.value&&jn.is(e,o.value)}))}fetchIf(...e){const t=[];if(this.peekIs(...e))e.forEach((e=>t.push(this.fetch())));return e.length==1?t.length==1?t[0]:undefined:e.length==t.length?t:undefined}mark(){return Mi.Enumerable.from(Mi.Enumerable.empty)}raise(e,t=Li.Level.Critical,o="grammatical",s){if(typeof e=="string"){if(!s&&this.last)s=this.last.region;e=new Li.Message(e,t,o,s)}this.errorHandler.raise(e)}static is(e,t){return Array.isArray(e)?e.some((e=>jn.is(e,t))):typeof e!="string"?e.test(t):e.startsWith("!")&&e!="!"?!jn.is(e.substring(1),t):e=="any"?jn.symbol.every((e=>e!=t)):e=="symbol"?jn.symbol.some((e=>e==t)):e=="identifier"?/[A-Za-z][A-Za-z0-9_]*/.test(t):e==t}}jn.wildcard=["*","?"];jn.separator=["(",")","."];jn.operator=["!","|"];jn.comparator=["<","<=",">",">=",":"];jn.binaryOperator=[" * "," + "," - "];jn.symbol=[...jn.wildcard,...jn.separator,...jn.operator,...jn.comparator];function _n(e,t){if(typeof e=="string"){t=t||new Li.ConsoleHandler;const o=Ri(e,t).toArray();e=new jn(o,t)}t=t instanceof zo?t:undefined;const o=[];while(e.peek()){if(e.fetchIf("|"))o[o.length-1]=new Cn([o[o.length-1],Tn(0,e)]);else o.push(Tn(0,e))}return o.length==1?o[0]:new Ao(o)}function Tn(e,t){let o;const s=typeof e=="number"?t=>e<t:t=>e.precedence>t;const a=typeof e=="number"?undefined:e;for(const e of In)if(s(e[1]||Number.MAX_SAFE_INTEGER)){const s=e[0](t,a);if(s){o=Tn(s,t);break}}return o||a||new Ao([])}const In=[];function Ln(e,t){In.push([e,t])}function On(e,t){if(typeof e=="string"){t=t||new Li.ConsoleHandler;const o=Ri(e,t).toArray();e=new jn(o,t)}t=t instanceof en?t:undefined;let o;let s=false;let a=false;while(!o!=s&&!a&&e.peek()){let t=1;s=false;a=false;while(!s&&!a&&e.peek(t)){s=jn.binaryOperator.some((o=>e.peek(t)?.value==o));a=jn.comparator.some((o=>e.peek(t)?.value==o));t++}o=En(o??Number.MAX_SAFE_INTEGER,e)}if(!o)e.raise("Missing Expression");return o??new tn(NaN)}function En(e,t){let o;const s=typeof e=="number"?undefined:e;for(const s of An){const a=s[0](t,e);if(a){o=a;break}}return o||s}const An=[];function Dn(e,t){An.push([e,t])}Ln((e=>{const t=e.fetchIf(":","every","(")&&new Ji(_n(e.clone()));if(t&&!e.fetchIf(")"))e.raise("Missing end of parenthesis.");return t}));Ln((e=>{const t=e.fetchIf(":","some","(")&&new mn(_n(e.clone()));if(t&&!e.fetchIf(")"))e.raise("Missing end of parenthesis.");return t}));Ln(Mn(_n));Dn(Mn(On));function Mn(e){return t=>{const o=t.fetchIf("(")&&e(t.clone());if(o&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return o}}Ln((e=>e.fetchIf(">")&&new on(On(e))));Ln((e=>e.fetchIf(">=")&&new an(On(e))));Ln((e=>e.fetchIf("<")&&new fn(On(e))));Ln((e=>e.fetchIf("<=")&&new gn(On(e))));Ln((e=>e.fetchIf("!")&&new xn(Tn(xn.precedence,e))));Ln((e=>{const t=e.fetchIf("has","(","any",")")||e.fetchIf(":","has","(","any",")");return t&&new ln(t.length==4?t[2].value:t[3].value)}));class $n extends zo{constructor(e){super();this.value=e;this.precedence=85;this.class="Within"}is(e){return this.value.includes(e)}toString(){return`within(${this.value.join(", ")})`}}function Rn(e,t){const o=new $n(e);return t?o.is(t):o}function Pn(e,t,o){return o&&t?.class?Yi.functions(e,(e=>[]),{value:"within()",cursor:7,suggestion:{value:"within()"}}):[]}qi.String.add(Pn);qi.Number.add(Pn);Ln((e=>{const t=e.fetchIf(":","within","(");let o;if(t&&e.peek()){o=[e.fetch()?.value??""];while(e.fetchIf(","))o.push(e.fetchIf("any")?.value??"");if(!e.fetchIf(")"))e.raise("Missing end of parenthesis.")}return t&&o?new $n(o):undefined}));class Nn extends zo{constructor(e){super();this.criteria=e;this.precedence=85;this.class="Contains"}is(e,t){return Array.isArray(e)&&this.criteria.every((t=>e.some((e=>t==e))))}toString(){return`contains(${this.criteria.join(", ")})`}}function Fn(e,t){const o=new Nn(e);return t?o.is(t):o}function Hn(e,t,o){return Yi.functions(e,(()=>[]),{value:"contains()",cursor:9,suggestion:{value:"contains()"}})}qi.Array.add(Hn);Ln((e=>{const t=e.fetchIf(":","contains","(");const o=[];if(t&&e.peek()){do{o.push(e.fetchIf("any")?.value??"")}while(e.fetchIf(","));if(!e.fetchIf(")"))e.raise("Missing end of parenthesis.")}return t&&o.length>0?new Nn(o):undefined}));Ln((e=>{const t=e.peek(3)?.value;const o=[")",",","("].find((e=>e==t))||e.peek(2)?.value==")"?e.fetchIf("identifier","("):undefined;let s;if(o&&e.peek()){s=[e.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??""];while(e.fetchIf(","))s.push(e.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??"");if(!e.fetchIf(")"))e.raise("Missing end of parenthesis.")}return o&&s?new Qi(o[0].value,s):undefined}));class Un extends zo{constructor(e,t){super();this.name=e;this.criteria=t;this.precedence=Un.precedence;this.class="Property";this.symbol="."}is(e,t){return!this.criteria?e==t?.[this.name]:typeof e=="object"?this.criteria.is(e[this.name],t??e):this.criteria.is(e,t?.[this.name])}toString(){return`${this.name}${this.criteria?this.criteria.symbol??":":""}${this.criteria?.stringify(this.precedence)??""}`}}Un.precedence=80;function Yn(e,t,o){const s=(Array.isArray(e)?e:[e]).reduceRight(((e,t)=>new Un(t,e)),Lo(t));return o?s.is(o):s}_o((e=>typeof e=="object"&&!(e instanceof zo)&&!Array.isArray(e)?Do(...Object.getOwnPropertyNames(e).map((t=>Yn(t,e[t])))):undefined));Ln((e=>{const t=[];let o;while(o=e.fetchIf("identifier","."))t.push(o[0].value);if(e.peekIs("identifier",jn.comparator)&&(o=e.fetchIf("identifier")))t.push(o.value);return t.length>0?t.reduceRight(((e,t)=>new Un(t,e)),e.peekIs("identifier")&&(o=e.fetchIf("identifier"))?new Un(o.value):Tn(Un.precedence,e)):undefined}));Ln((e=>{const t=e.fetchIf(":","*","any","*")||e.fetchIf("*","any","*");return t&&new cn(t.length==4?t[2].value:t[1].value)}));class Wn extends zo{constructor(e){super();this.needle=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="StartsWith"}is(e){return typeof e=="string"&&e.startsWith(this.needle)}toString(){return`${this.needle}*`}}function Bn(e,t){return Yi.expressions(e,(e=>!e||e.length==1&&e[0].value=="*"||e.length==2&&e[1].value=="*"&&t.value&&t.value.startsWith(e[0]?.value??"")?[qi.Completion.prepend("",{value:t?.value??"",suggestion:{value:t?.value??""}},"*")]:[]),{value:"*",cursor:0,suggestion:{value:"*",description:"startswith"}})}qi.String.add(Bn);Ln((e=>{const t=e.fetchIf(":","any","*")||e.fetchIf("any","*");return t&&new Wn(t?.length==3?t[1].value:t[0].value)}));Ln((e=>{const t=e.fetchIf(":","*","any")||e.fetchIf("*","any");return t&&new Ki(t?.length==3?t[2].value:t[1].value)}));class Vn extends en{toString(){const e=this.symbol;return this.left.stringify(Vn.getPrecedence(e))+` ${e} `+this.right.stringify(Vn.getPrecedence(e))}constructor(e,t,o,s){super();this.precedence=t;this.left=o;this.right=s;this.class="InfixOperator";this.symbol=e.replace(/ /g,"")}evaluate(e){let t;switch(this.getSymbol()){case"+":t=this.left.evaluate(e)+this.right.evaluate(e);break;case"-":t=this.left.evaluate(e)-this.right.evaluate(e);break;case"*":t=this.left.evaluate(e)*this.right.evaluate(e);break;default:t=NaN;break}return t}getSymbol(){return this.symbol}stringify(e=0){let t=this.toString();if(this.precedence<e)t="("+t+")";return t}static getPrecedence(e){let t;e=e?.replace(/ /g,"");switch(e){case"+":t=14;break;case"-":t=15;break;case"*":t=16;break;default:t=undefined;break}return t}static create(e,t,o){let s;const a=new Vn("+",14,t,o);const i=Vn.getPrecedence(e);if(i)s=new Vn(e,i,t,o);return s||a}}function Gn(e,t,o){return[" + "," - "," * "].map((e=>({value:e,suggestion:{value:e}}))).map((s=>qi.Completor.operators(e,(e=>e?o.complete(e,undefined,t):[]),s))).reduce(((e,t)=>e.concat(t)),[])}qi.Number.addArgument(Gn);Dn(((e,t)=>{let o;const s=e.peekIs(jn.binaryOperator)&&e.fetch().value;let a;if(s&&typeof t=="object"){let i;let n;let l=0;a=Vn.getPrecedence(s);while(!n&&e.peek(l)){n=e.peek(l)?.value=="("?Number.MAX_SAFE_INTEGER:Vn.getPrecedence(e.peek(l)?.value);l++}if(n&&a<n){i=En(a,e);if(!i){e.raise("Missing right hand side of "+s)}}else i=En(NaN,e);if(n&&a==n||n==Number.MAX_SAFE_INTEGER){o=En(new Vn(s,a,t,i),e)}else o=new Vn(s,a,t,i)}return o}));Dn(((e,t)=>{const o=[];let s;while(s=e.fetchIf("identifier","."))o.push(s[0].value);let a;if(o.length==0){s=e.fetchIf("any",".","any")||e.fetchIf("any",",","any")||e.fetchIf("any");a=s&&(Array.isArray(s)?new tn(+s.map((e=>e.value.replace(",","."))).join("")):new tn(s.value))}else{s=e.fetchIf("identifier");const t=new tn(s?s.value:0);a=o.length>0?o.reduceRight(((e,t)=>new tn(isNaN(+e)?e:+e,t)),t):undefined}if(a&&typeof t=="number"&&!isNaN(t)&&t!=Number.MAX_SAFE_INTEGER)a=En(a,e);return a}));Ln((e=>{let t;if(e.fetchIf(":")){let o=false;let s=false;let a=1;while(!o&&!s&&e.peek(a)){o=jn.binaryOperator.some((t=>e.peek(a)?.value==t));s=jn.comparator.some((t=>e.peek(a)?.value==t));a++}if(o)t=On(e)}const o=e.fetchIf("any");return t?new un(t):o&&new un(o.value)}));Ln((e=>{e.raise(`Ignoring unknown token "${e.fetch()}"`);return undefined}));function qn(e,t,o={input:[],identifier:[]}){return Kn[t?.class]?.(e,t,o)??t}const Kn={};function Zn(e,t){Kn[e]=t}Zn("And",((e,t,o)=>new Ao(t.rules.map((t=>qn(e,t,o))))));var Jn;(function(e){function t(e,t){let o=undefined;let s;const a=typeof e=="string"?e:e.toString();if(t&&t.input&&t.identifier&&t?.input?.length>0&&t?.identifier?.length>0&&t.identifier.includes(a)){s=t.identifier.indexOf(a);o=isNaN(+t.input[s])?t.input[s]:+t.input[s]}return o}e.argument=t})(Jn||(Jn={}));Zn("EndsWith",((e,t,o)=>{const s=Jn.argument(t.needle,o);return s?new Ki(typeof s=="object"?s.value.toString():s.toString()):t}));Zn("Every",((e,t,o)=>new Ji(qn(e,t.criteria,o))));Zn("FunctionCall",((e,t,o)=>{const s=e[t.identifier];const a=s?_n(s.definition):undefined;const i=a?qn(e,a,{input:o?.input?.concat(t.argument),identifier:o?.identifier?.concat(s.arguments)}):undefined;return new Qi(t.identifier,t.argument,i)}));Zn("GreaterThan",((e,t,o)=>{const s=Jn.argument(t.value,o);return s?new on(s):t}));Zn("GreaterThanOrEqual",((e,t,o)=>{const s=Jn.argument(t.value,o);return s?new an(s):t}));Zn("Has",((e,t,o)=>{const s=Jn.argument(t.property,o);return s?new ln(typeof s=="object"?s.value.toString():s.toString()):t}));Zn("Includes",((e,t,o)=>{const s=Jn.argument(t.needle,o);return s?new cn(typeof s=="object"?s.value.toString():s.toString()):t}));Zn("LesserThan",((e,t,o)=>{const s=Jn.argument(t.value,o);return s?new fn(s):t}));Zn("LesserThanOrEqual",((e,t,o)=>{const s=Jn.argument(t.value,o);return s?new gn(s):t}));Zn("Not",((e,t,o)=>new xn(qn(e,t.criteria,o))));Zn("Or",((e,t,o)=>new Cn(t.criteria.map((t=>qn(e,t,o))))));Zn("Property",((e,t,o)=>new Un(t.name,t.criteria&&qn(e,t.criteria,o))));Zn("Some",((e,t,o)=>new mn(qn(e,t.criteria,o))));Zn("StartsWith",((e,t,o)=>{const s=Jn.argument(t.needle,o);return s?new Wn(typeof s=="object"?s.value.toString():s.toString()):t}));Zn("Is",((e,t,o)=>{const s=Jn.argument(t.value,o);return s?new un(s):t}));class Xn extends zo{constructor(e){super();this.criteria=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Tuple"}is(e){return this.criteria.length==e.length&&this.criteria.every(((t,o)=>t.is(e[o])))}toString(){return`[${this.criteria.map((e=>e.toString())).join(", ")}]`}}_o((e=>Array.isArray(e)?new Xn(e.map(Lo)):undefined));function Qn(e,t){const o=Lo(e);return t?o.is(t):o}function el(e,t){const o=Lo(e);return o.filter(t)}const tl=S({emit:c()});var ol;(function(e){let t;(function(e){e.type=S({property:C().optional(),properties:d(C(),C()).optional()})})(t=e.Element||(e.Element={}));e.type=t.type.extend({smoothlyFilterUpdate:tl,smoothlyFilterManipulate:tl})})(ol||(ol={}));const sl='.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 al=sl;const il=class{constructor(t){e(this,t);this.smoothlyFilter=o(this,"smoothlyFilter",7);this.updating=false;this.filters=new Set;this.detailChildren=undefined;this.criteria=Do();this.expanded=false}updateHandler(e){e.stopPropagation();if(ol.Element.type.is(e.target))this.filters.add(e.detail)}manipulateHandler(e){e.stopPropagation();this.updating=true;this.criteria=e.detail(this.criteria);this.smoothlyFilter.emit(this.criteria);this.filters.forEach((e=>e(this.criteria)));this.updating=false}filterFieldHandler(e){e.stopPropagation();if(!this.updating){this.smoothlyFilter.emit(this.criteria=Do(e.detail));this.filters.forEach((e=>e(this.criteria)))}}clear(){var e;(e=this.field)===null||e===void 0?void 0:e.clear();this.smoothlyFilter.emit(this.criteria=Do());this.filters.forEach((e=>e(this.criteria)))}render(){return t(s,{key:"8fa96851dc8a5b97455ffcc90d8edb4f556e1a5e"},t("slot",{key:"0a3c57ae72c5f8902d2b5f97de96c78fe6b1e091",name:"bar"}),t("smoothly-filter-field",{key:"fdc85964b77a2aa02effa9f1a634164a35086f52",criteria:this.criteria,ref:e=>this.field=e}),this.criteria.toString()!=""&&t("smoothly-icon",{key:"5a2a3f4582bb4ceb282c4ef6be1d439efd19ddc0",name:"close",toolTip:"Clear all filters",size:"small",onClick:()=>{this.clear()}}),t("div",{key:"6b7bba3c3a30cb4f9b562481d2921d595ea7e5fa",class:this.expanded?"container arrow-top":"hidden"},t("slot",{key:"5cdea6994206c24a2c62e1ac3208e03b6263468e",name:"detail"})),t("smoothly-icon",{key:"85d0324d62c557048e3caaaae33b2d8b0d0d4897",name:this.expanded?"options":"options-outline",toolTip:(this.expanded?"Hide":"Show")+" additional filters",size:"small",onClick:()=>{this.expanded=!this.expanded}}),t("div",{key:"f57ac805ce77fcc263d7c68581db9ae98566cf41",class:this.expanded?"close":"hidden",onClick:()=>this.expanded=!this.expanded}))}};il.style=al;const nl=".sc-smoothly-filter-field-h{flex-grow:5}";const ll=nl;const rl=class{constructor(t){e(this,t);this.smoothlyFilterField=o(this,"smoothlyFilterField",7);this.criteria=undefined}async clear(){var e;await((e=this.input)===null||e===void 0?void 0:e.clear())}filterFieldEmit(){var e,t;this.smoothlyFilterField.emit(_n((t=(e=this.input)===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:""))}render(){return t(s,{key:"f6098aa0fdc4a8be864ae688e5d792dfe5d7734f",onKeyDown:e=>e.key=="Enter"&&this.filterFieldEmit()},t("smoothly-input",{key:"1f607179ee4cd0951e005a0a68f5d455a9bf3672",name:"filter",ref:e=>this.input=e,value:this.criteria.toString(),onSmoothlyInputLooks:e=>e.stopPropagation(),onSmoothlyBlur:e=>{e.stopPropagation();this.filterFieldEmit()},onSmoothlyFormDisable:e=>e.stopPropagation(),onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyChange:e=>e.stopPropagation(),onSmoothlyInput:e=>{e.stopPropagation()}},"Filter"))}};rl.style=ll;const cl=".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 dl=cl;const hl=class{constructor(t){e(this,t);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(e){var t;if(e instanceof Ao&&e.rules.length>0)for(const o of e.rules){const e=this.isCriteria(o,this.property);if(e){this.needle=(t=e.needle)!==null&&t!==void 0?t:"";break}}else this.needle=""}isCriteria(e,t){const[o,...s]=t.split(".");return e instanceof Un&&e.name==o&&(e.criteria instanceof cn&&e.criteria||e.criteria instanceof Un&&this.isCriteria(e.criteria,s.join(".")))||undefined}inputHandler(e){e.stopPropagation();const t=e.detail[this.property];const o=e=>{let o=e;const s=t?this.getCriteria(t):undefined;if(o instanceof Ao){const e=o.rules.findIndex((e=>this.findInstanceOf(e,this.property)));!s?e!=-1&&o.rules.splice(e,1):e==-1?o.rules.push(s):o.rules[e]=s;o=Do(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}getCriteria(e){return this.property.split(".").reduceRight(((e,t)=>Yn(t,e)),dn(e))}findInstanceOf(e,t){const[o,...s]=t.split(".");return e instanceof Un&&e.name==o&&(s.length==0||!!e.criteria&&this.findInstanceOf(e.criteria,s.join(".")))}render(){return t("smoothly-input",{key:"743a8c6c26b12a10833791e322c06887a93a23c2",name:this.property,value:this.needle,type:this.type,placeholder:this.placeholder,onSmoothlyBlur:e=>e.stopPropagation(),onSmoothlyFormDisable:e=>e.stopPropagation(),onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyChange:e=>e.stopPropagation(),onSmoothlyInput:e=>this.inputHandler(e)},this.label,t("slot",{key:"68eacc299a625d16ce66b0eec27e4db1b0b6fb4c"}))}};hl.style=dl;const ml=".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 yl=ml;const bl=class{constructor(t){e(this,t);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((e=>{var t;return this.looks=(t=this.looks)!==null&&t!==void 0?t:e}))}async componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}async smoothlyInputLoadHandler(e){var t,o;(o=await((t=this.selectElement)===null||t===void 0?void 0:t.getItems()))===null||o===void 0?void 0:o.forEach((e=>this.items.set(e.value,{state:this.property.split(".").reduceRight(((e,t)=>({[t]:e})),e.value),item:e})))}smoothlyInputLooksHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this.looks)}}update(e){this.updating=true;if(e instanceof Ao&&e.rules.length>0)for(const t of this.items.values()){const o=e.rules.some((e=>this.isCriteria(e,this.property,t.state)&&(this.type=="array"?this.findInstanceOf(e,this.property):e.is(t.state))));t.item.selected=o}else this.items.forEach((e=>e.item.selected=false));this.updating=false}isCriteria(e,t,o){const[s,...a]=t.split(".");const i=e instanceof Un&&e.name==s?this.isCriteria(e.criteria,a.join("."),o[s]):this.multiple?e instanceof $n&&e.value.some((e=>e==o))||this.type=="array"&&e instanceof Nn&&e.criteria.some((e=>e==o)):e instanceof un&&e.value==o;return i}selectHandler(e){e.stopPropagation();if(!this.updating){const t=e.detail[this.property];const o=e=>{let o=e;const s=this.getCriteria(t);if(!(o instanceof zo))o=s?Do(o,s):o;else if(o instanceof Ao){const e=o.rules.findIndex((e=>this.findInstanceOf(e,this.property)));!s&&e>=0?o.rules.splice(e,1):!s?undefined:e==-1?o.rules.push(s):o.rules[e]=s;o=Do(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}}findInstanceOf(e,t){const[o,...s]=t.split(".");return e instanceof Un&&e.name==o&&(e.criteria instanceof $n||e.criteria instanceof un||e.criteria instanceof Nn||e.criteria instanceof Un&&this.findInstanceOf(e.criteria,s.join(".")))}getCriteria(e){let t;if(this.multiple&&C().array({criteria:"minLength",value:1}).is(e))t=this.type=="array"?Fn(e):Rn(e);else if(typeof e=="string")t=Qn(e);else t=undefined;return t&&this.property.split(".").reduceRight(((e,t)=>Yn(t,e)),t)}render(){return t("smoothly-input-select",{key:"d033eebdc74a6a25c7c9059d2f5ce06dc1c3fadc",ref:e=>this.selectElement=e,name:this.property,looks:this.looks,multiple:this.multiple,menuHeight:this.menuHeight,onSmoothlyInputLooks:e=>e.stopPropagation(),onSmoothlyItemSelect:e=>e.stopPropagation(),onSmoothlyInput:e=>this.selectHandler(e)},this.label&&t("span",{key:"74642e91b226596e425c6f676f6f855354bd0a39",slot:"label"},[this.label.slice(0,1).toUpperCase(),this.label.slice(1,this.label.length)].join("")),t("slot",{key:"bf075d1fee4c85cd8953b79cf9831c2d47b71b23",name:"items"}))}get element(){return a(this)}};bl.style=yl;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 fl=ul;const pl=class{constructor(t){e(this,t);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(e){if(e instanceof Ao&&e.rules.length>0){this.active=Object.entries(this.properties).every((([t,o])=>e.rules.some((e=>{const s=!this.not?e:e instanceof xn?e.criteria:undefined;return o==""?!(s instanceof Un&&s.name==t):this.isCriteria(s,t,o)}))))}else this.active=false}isCriteria(e,t,o){const[s,...a]=t.split(".");return e instanceof Un&&e.name==s&&(e.criteria instanceof un&&e.criteria.value==o||this.isCriteria(e.criteria,a.join("."),o))}activeHandler(e){const t=t=>{let o=t;e&&(this.active=!this.active);if(o instanceof Ao){for(const[e,t]of Object.entries(this.properties)){const s=!this.active||this.active&&t==""?undefined:this.not?wn(this.createCriteria(e,t)):this.createCriteria(e,t);const a=o.rules.findIndex((t=>this.findInstanceOf(t,e)));!s&&a>=0?o.rules.splice(a,1):!s?undefined:a==-1?o.rules.push(s):o.rules[a]=s}o=Do(...o.rules)}return o};this.smoothlyFilterManipulate.emit(t.bind(this))}createCriteria(e,t){const[o,...s]=e.split(".");return Yn(o,s.length==0?Qn(t):this.createCriteria(s.join("."),t))}findInstanceOf(e,t){const o=!this.not?e:e instanceof xn?e.criteria:false;const[s,...a]=t.split(".");return o instanceof Un&&o.name==s&&(a.length==0||!!o.criteria&&this.findInstanceOf(o.criteria,a.join(".")))}render(){return t("smoothly-icon",{key:"dd151c8e540e1808b87d0a291f3a2c5aba7ee321",fill:"clear",color:this.active?"success":"medium",name:this.active?`${this.icon}`:`${this.icon}-outline`,toolTip:this.toolTip,onClick:()=>this.activeHandler(true)})}};pl.style=fl;var gl;(function(e){function t(e){return typeof e=="string"&&(e=="GET"||e=="POST"||e=="DELETE"||e=="HEAD"||e=="PATCH"||e=="PUT"||e=="OPTIONS"||e=="TRACE"||e=="CONNECT")}e.is=t;function o(e){e=e?.toUpperCase();return t(e)?e:undefined}e.parse=o})(gl||(gl={}));const kl={};function vl(e,...t){t.forEach((t=>kl[t]=e))}function xl(e){const t=e.headers.get("Content-Type");const o=t&&t.split(";");const s=kl[o?.[0]??"plain/text"];return s?s(e):e.text()}const wl={};function Sl(e,...t){t.forEach((t=>wl[t]=e))}function Cl(e,t){const o=wl[t?.split(";")[0]??""];return o?o(e,t):e}function zl(e){return e.toLowerCase().replace(/-[a-z]/g,(e=>e.substring(1).toUpperCase()))}function jl(e){const t=e.replace(/[A-Z]/g,(e=>"-"+e));return t[0].toUpperCase()+t.substring(1)}const _l=[["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 Tl;(function(e){function t(e){function t(e){return e==undefined||typeof e=="string"}function o(e){return e==undefined||Array.isArray(e)&&e.every((e=>typeof e=="string"))}return typeof e=="object"&&_l.every((s=>(s[2]==1?t:o)(e[s[0]])))}e.is=t;function o(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>{const o=_l.find((([t,o,s])=>t==e));return[o?o[1]:jl(e),Array.isArray(t)?t.join(", "):t]})))}e.to=o;function s(e){return Object.fromEntries((Array.isArray(e)?e.map((([e,...t])=>[e,t.join(", ")])):i(e)?[...e]:Object.entries(e)).map((([e,t])=>{const o=_l.find((([t,o,s])=>e.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof t!="string"?t:t.split(",").map((e=>e.trim()))]:[zl(e),t]})))}e.from=s;function a(e){return Object.entries(e).map((([e,t])=>e+": "+t)).join("\n")}e.toString=a;function i(e){return typeof e.entries=="function"}})(Tl||(Tl={}));var Il;(function(e){function t(e){return typeof e=="object"&&Object.keys(e).every((e=>["method","url","parameter","search","remote","header","body"].some((t=>t==e))))&&gl.is(e.method)&&e.url instanceof URL&&typeof e.parameter=="object"&&Object.entries(e.parameter).every((([e,t])=>typeof e=="string"&&typeof t=="string"))&&typeof e.search=="object"&&Object.entries(e.search).every((([e,t])=>typeof e=="string"&&typeof t=="string"))&&(e.remote==undefined||typeof e.remote=="string")&&(e.header==undefined||Tl.is(e.header))}e.is=t;async function o(e){const o=t(e)?e:a(e);const s=o.header.contentType?.startsWith("multipart/form-data")?(({contentType:e,...t})=>t)(o.header):o.header;return{url:o.url.toString(),method:o.method,headers:Tl.to(s),body:["GET","HEAD"].some((e=>e==o.method))?undefined:await Cl(await o.body,o.header.contentType)}}e.to=o;function s(e){const t=new URL(e.url);return{method:gl.parse(e.method)??"GET",url:t,header:Tl.from(e.headers),parameter:{},search:Object.fromEntries(t.searchParams.entries()),body:xl(e),..."cf"in e&&{cloudflare:e.cf}}}e.from=s;function a(e){let t;if(typeof e=="string")t=a({url:e});else{const o=typeof e.url=="string"?new URL(e.url):e.url;t={method:gl.parse(e.method)??"GET",url:o,parameter:e.parameter??{},search:{...e.search,...Object.fromEntries(o.searchParams.entries())},remote:e.remote,header:e.header??{},body:e.body}}return t}e.create=a;(function(e){e.is=Tl.is;e.from=Tl.from;e.to=Tl.to})(e.Header||(e.Header={}))})(Il||(Il={}));const Ll=typeof Response!="undefined"?Response:globalThis.Response;var Ol=undefined&&undefined.__classPrivateFieldGet||function(e,t,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(e):s?s.value:t.get(e)};var El=undefined&&undefined.__classPrivateFieldSet||function(e,t,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};var Al,Dl,Ml,$l,Rl,Pl,Nl,Fl,Hl;class Ul{get state(){return Ol(this,$l,"f")?"closed":"opened"}set onMessage(e){if(Ol(this,Dl,"f").length&&e){Ol(this,Dl,"f").forEach(e);El(this,Dl,[],"f")}El(this,Pl,e,"f")}set onClose(e){if(this.state=="closed"&&e)e();El(this,Nl,e,"f")}set onOpen(e){if(this.state=="opened"&&e)e();El(this,Hl,e,"f")}constructor(e,t){Al.add(this);Dl.set(this,[]);Ml.set(this,[]);$l.set(this,false);Rl.set(this,void 0);Pl.set(this,void 0);Nl.set(this,void 0);Hl.set(this,void 0);El(this,Rl,e,"f");if(t)El(this,Ml,undefined,"f");Ol(this,Rl,"f").addEventListener("open",(()=>{if(Ol(this,Hl,"f"))Ol(this,Hl,"f").call(this);Ol(this,Al,"m",Fl).bind(this)}));Ol(this,Rl,"f").addEventListener("message",(async e=>{const t=this.processReceived(e.data);Ol(this,Al,"m",Fl).call(this);if(Ol(this,Pl,"f"))Ol(this,Pl,"f").call(this,t);else Ol(this,Dl,"f")?.push(t)}));Ol(this,Rl,"f").addEventListener("close",(()=>{if(Ol(this,Nl,"f"))Ol(this,Nl,"f").call(this);El(this,$l,true,"f")}))}send(e){if(Ol(this,Ml,"f"))Ol(this,Ml,"f").push(this.processSend(e));else Ol(this,Rl,"f").send(this.processSend(e))}}Dl=new WeakMap,Ml=new WeakMap,$l=new WeakMap,Rl=new WeakMap,Pl=new WeakMap,Nl=new WeakMap,Hl=new WeakMap,Al=new WeakSet,Fl=function e(){Ol(this,Ml,"f")?.forEach((e=>Ol(this,Rl,"f").send(e)));El(this,Ml,undefined,"f")};class Yl extends Ul{processReceived(e){return e?.arrayBuffer?e.arrayBuffer():typeof e=="string"?(new TextEncoder).encode(e).buffer:e}processSend(e){return e}}class Wl extends Ul{processReceived(e){return JSON.parse(e?.arrayBuffer?(new TextDecoder).decode(e.arrayBuffer()):typeof e!="string"?(new TextDecoder).decode(e):e)}processSend(e){return JSON.stringify(e)}}class Bl extends Ul{processReceived(e){return e?.arrayBuffer?(new TextDecoder).decode(e.arrayBuffer()):typeof e!="string"?(new TextDecoder).decode(e):e}processSend(e){return e}}var Vl=undefined&&undefined.__classPrivateFieldGet||function(e,t,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(e):s?s.value:t.get(e)};var Gl=undefined&&undefined.__classPrivateFieldSet||function(e,t,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};var ql,Kl,Zl;class Jl{get json(){if(!Vl(this,ql,"f"))Gl(this,ql,new Wl(this.backend,this.isOpen),"f");return Vl(this,ql,"f")}get string(){if(!Vl(this,Kl,"f"))Gl(this,Kl,new Bl(this.backend,this.isOpen),"f");return Vl(this,Kl,"f")}get arrayBuffer(){if(!Vl(this,Zl,"f"))Gl(this,Zl,new Yl(this.backend,this.isOpen),"f");return Vl(this,Zl,"f")}constructor(e,t){this.backend=e;this.isOpen=t;ql.set(this,void 0);Kl.set(this,void 0);Zl.set(this,void 0)}createResponse(e={}){return{status:101,socket:this,header:e}}close(e,t){this.backend.close(e,t)}}ql=new WeakMap,Kl=new WeakMap,Zl=new WeakMap;var Xl;(function(e){e.Factory=Jl})(Xl||(Xl={}));const Ql=[["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 er;(function(e){function t(e){function t(e){return e==undefined||typeof e=="string"}function o(e){return e==undefined||Array.isArray(e)&&e.every((e=>typeof e=="string"))}return typeof e=="object"&&Ql.every((s=>(s[2]==1?t:o)(e[s[0]])))}e.is=t;function o(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>{const o=Ql.find((([t,...o])=>t==e));return[o?o[1]:jl(e),Array.isArray(t)?t.join(", "):t]})))}e.to=o;function s(e){return Object.fromEntries((Array.isArray(e)?e.map((([e,...t])=>[e,t.join(", ")])):i(e)?n(e):Object.entries(e)).map((([e,t])=>{const o=Ql.find((([t,o,s])=>e.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof t!="string"?t:t.split(",").map((e=>e.trim()))]:[zl(e),t]})))}e.from=s;function a(e){return Object.entries(e).map((([e,t])=>e+": "+t)).join("\n")}e.toString=a;function i(e){return typeof e.forEach=="function"}function n(e){const t=[];e.forEach(((e,o)=>t.push([o,e])));return t}})(er||(er={}));var tr;(function(e){function t(e){return typeof e=="object"&&Object.keys(e).every((e=>["status","header","body","socket"].some((t=>t==e))))&&(e.status==undefined||typeof e.status=="number")&&(e.header==undefined||er.is(e.header))&&(e.socket==undefined||typeof e.socket.close=="function"&&typeof e.socket.json?.send=="function"&&typeof e.socket.string?.send=="function"&&typeof e.socket.arrayBuffer?.send=="function")&&(e.status!=undefined||e.header!=undefined||e.body!=undefined)}e.is=t})(tr||(tr={}));var or;(function(e){function t(e){return typeof e=="object"&&Object.keys(e).every((e=>["status","header","body","socket"].some((t=>t==e))))&&(e.status==undefined||typeof e.status=="number")&&(e.header==undefined||er.is(e.header))&&(e.socket==undefined||e.socket instanceof WebSocket)}e.is=t;async function o(e){return new Ll(await Cl(await e.body,e.header.contentType),{status:e.status,headers:new Headers(er.to(!e.header.contentType?.startsWith("multipart/formdata")?e.header:(({contentType:e,...t})=>t)(e.header))),...e.socket&&{webSocket:{...e.socket.createResponse().socket}?.backend}})}e.to=o;function s(e){return{status:e.status,header:er.from(e.headers),body:e.status==101?undefined:xl(e),...e.webSocket&&{socket:new Xl.Factory(e.webSocket)}}}e.from=s;function a(e,t){const o=tr.is(e)?{status:200,header:{},body:undefined,...e.socket&&{socket:e.socket},...e}:typeof e?.createResponse=="function"&&(t==undefined||er.is(t))?e.createResponse(t):{status:typeof e=="object"&&typeof e.status=="number"&&e.status||200,header:typeof e=="object"?{...e.header,...(e.status==301||e.status==302)&&e.location?{location:e.location}:{}}:{},body:!(typeof e=="object"&&!Array.isArray(e))||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof FormData?e:(({header:e,...t})=>t)(e),...e.webSocket&&{socket:new Xl.Factory(e.webSocket)}||e.socket&&{socket:e.socket}};if(!o.header.contentType)switch(typeof o.body){case"undefined":break;default:case"object":o.header.contentType=typeof t=="string"?t:t?.contentType?t.contentType:o.body instanceof FormData?"multipart/formdata":o.body instanceof ArrayBuffer||ArrayBuffer.isView(o.body)?i(o.body)?"application/pdf":"application/octet-stream":"application/json; charset=utf-8";break;case"string":o.header.contentType=o.body.slice(0,9).toLowerCase()=="<!doctype"?"text/html; charset=utf-8":/^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/.test(o.body)?"application/jwt; charset=utf-8":/^<\?xml version=(.|\n)*\?>(.|\n)*<svg(.|\n)*<\/svg>$/.test(o.body)?"image/svg+xml":"text/plain; charset=utf-8";break}return o}e.create=a;function i(e){const t=new Uint8Array(ArrayBuffer.isView(e)?e.buffer:e).slice(0,4);return[37,80,68,70].every(((e,o)=>e==t[o]))}e.Header=er;e.Like=tr})(or||(or={}));const sr=ar(globalThis.fetch);sr.create=ar;function ar(e){return async t=>{const o=Il.create(t);return or.from(await e(o.url.toString(),await Il.to(o)))}}var ir;(function(e){function t(e){const t=new globalThis.FormData;t.append("*",new globalThis.Blob([(new TextEncoder).encode(JSON.stringify(o(e,"",t)))],{type:"application/json; charset=utf-8"}));return t}e.to=t;function o(e,t,a){return Object.entries(e).reduce(((e,[i,n])=>{n instanceof Blob?a.append(t?`${t}.${i}`:i,n):typeof n=="object"&&n?Array.isArray(n)?e[i]=s(n,t?`${t}.${i}`:i,a):e[i]=o(n,t?`${t}.${i}`:i,a):e[i]=n;return e}),{})}function s(e,t,a){return e.reduce(((e,i)=>{typeof i=="object"&&i?Array.isArray(i)?e.push(s(i,t,a)):e.push(o(i,t,a)):e.push(i);return e}),[])}async function a(e){const t={};for(const[o,s]of e.entries())await i(t,o.split("."),s);return t}e.from=a;async function i(e,[t,...o],s){if(o.length==0)s instanceof Blob&&s.type.startsWith("application/json")?t=="*"?n(e,JSON.parse(await s.text())):typeof e[t]=="object"&&e[t]?n(e[t],JSON.parse(await s.text())):e[t]=JSON.parse(await s.text()):e[t]=s;else i(typeof e[t]=="object"&&e[t]?e[t]:e[t]={},o,s)}function n(e,...t){if(t.length){const[o,...s]=t;Object.entries(o).forEach((([t,s])=>l(s)?n(l(e[t])?e[t]:e[t]={},s):e[t]=o[t]));n(e,...s)}}function l(e){return e&&typeof e=="object"&&!Array.isArray(e)}e.isObject=l})(ir||(ir={}));function nr(e){const t=[];const o=(e,s)=>{switch(typeof s){default:case"bigint":case"boolean":case"number":case"string":t.push(`${e}=${encodeURIComponent(s.toString())}`);break;case"undefined":break;case"object":for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t))o(e?e+`[${t}]`:t,s[t]);break}};o("",e);return t.join("&")}function lr(e){const t=e=>typeof e=="object"&&Object.keys(e).sort().every(((e,t)=>`${e}`==`${t}`))?Object.entries(e).sort().map((e=>typeof e[1]=="object"?t(e[1]):e[1])):typeof e=="object"?Object.fromEntries(Object.entries(e).map((e=>[e[0],t(e[1])]))):e;const o=(e,t,s)=>{e[t[0]]=t.length>1?o(e[t[0]]??{},t.slice(1),s):s;return e};const s=e.split("&").map((e=>e.split("=",2))).map((([e,t])=>[decodeURIComponent(e).split("[").map((e=>e.replace("]",""))),decodeURIComponent(t.replace(/\+/g," "))]));return s.reduce(((e,[s,a])=>t(o(e,s,a))),{})}vl((async e=>await e.text()),"text/plain","text/html");vl((async e=>await e.json()),"application/json");vl((async e=>await e.arrayBuffer()),"application/pdf");vl((async e=>ir.from(await e.formData())),"multipart/form-data");vl((async e=>lr(await e.text())),"application/x-www-form-urlencoded");Sl((async e=>typeof e=="string"?e:e.toString()),"text/plain","text/html");Sl((async e=>JSON.stringify(e)),"application/json");Sl((async e=>e),"application/pdf");Sl((async e=>nr(e)),"application/x-www-form-urlencoded");Sl((async e=>e instanceof globalThis.FormData?e:ir.to(e)),"multipart/form-data");var rr;(function(e){function t(e){return e&&typeof e=="object"&&typeof e.clear=="function"}e.is=t})(rr||(rr={}));var cr;(function(e){let t;(function(e){e.type=S({edit:c(),readonly:z(),listen:c(),reset:c(),setInitialValue:c()});e.is=e.type.is})(t=e.Element||(e.Element={}));const o=S({emit:c()});e.type=t.type.extend({changed:z(),value:E().optional(),smoothlyFormDisable:o});e.is=e.type.is})(cr||(cr={}));var dr;(function(e){e.types=["plain","grid","border","line","transparent"];e.type=C(e.types);e.is=e.type.is})(dr||(dr={}));var hr;(function(e){let t;(function(e){e.type=S({register:c(),unregister:c(),getValue:c(),color:r.type.optional(),name:C(),invalid:z().optional(),looks:dr.type.optional(),defined:z().optional(),binary:c().optional()});e.is=e.type.is})(t=e.Element||(e.Element={}));const o=S({emit:c()});e.type=t.type.extend({smoothlyInputLoad:o,smoothlyInput:o,smoothlyInputForm:o.optional(),parent:cr.type.optional()});e.is=e.type.is;function s(e){if(e.parent instanceof br){e.parent.removeInput(e.name)}}e.formRemove=s;function a(e){e.smoothlyInputLoad.emit((t=>e.parent=t))}e.formAdd=a;function i(e,t){if(!(t.target&&"name"in t.target&&t.target.name===e.name)){t.stopPropagation();t.detail(e)}}e.registerSubAction=i})(hr||(hr={}));const mr='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 yr=mr;const br=class{constructor(t){e(this,t);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((e=>this.readonly=e))}async removeInput(e){if(this.element.isConnected){this.value=h.remove(this.value,e);this.inputs.delete(e);this.smoothlyFormInput.emit(h.convertArrays(this.value))}}async listen(e,t){var o;var s;((o=(s=this.listeners)[e])!==null&&o!==void 0?o:s[e]=[]).push(t);t(this)}async watchValue(){var e,t,o;this.changed=[...this.inputs.values()].some((e=>cr.type.is(e)?e.changed:true));if(this.validator){const o=(t=(e=this.validator)===null||e===void 0?void 0:e.flaw(this.value).flaws)===null||t===void 0?void 0:t.reduce(((e,t)=>t.property?Object.assign(Object.assign({},e),{[t.property]:t}):e),{});for(const[e,t]of this.inputs.entries()){this.validate(o,e,t)}}(o=this.listeners.changed)===null||o===void 0?void 0:o.forEach((e=>e(this)))}validate(e,t,o){var s,a;if(t.includes(".")){const[i,...n]=t.split(".");const l=(a=(s=e===null||e===void 0?void 0:e[i])===null||s===void 0?void 0:s.flaws)!==null&&a!==void 0?a:[];this.validate(l.reduce(((e,t)=>t.property?Object.assign(Object.assign({},e),{[t.property]:t}):e),{}),n.join("."),o)}else{const s=e===null||e===void 0?void 0:e[t];o&&(o.invalid=!!s)}}watchReadonly(){var e;(e=this.listeners.changed)===null||e===void 0?void 0:e.forEach((e=>e(this)))}smoothlyInputLooksHandler(e){e.stopPropagation();e.detail(this.looks,this.color)}async smoothlyInputHandler(e){this.value=h.merge(this.value,e.detail);this.smoothlyFormInput.emit(h.convertArrays(this.value))}windowSubmitHandler(e){e.target==this.element&&e.detail.result(false)}submitHandler(e){this.action&&e.stopPropagation()}async smoothlyInputLoadHandler(e){var t;e.stopPropagation();e.detail(this);const o=e.target;if(hr.Element.is(o)){if(await((t=o.binary)===null||t===void 0?void 0:t.call(o)))this.contentType="form-data";const e=await o.getValue();this.value=h.merge(this.value,{[o.name]:e});this.smoothlyFormInput.emit(h.convertArrays(this.value));this.inputs.set(o.name,o)}}async smoothlyFormDisableHandler(e){e.stopPropagation();e.detail(this.readonly)}async submit(e){this.processing=new Promise((t=>{this.smoothlyFormSubmit.emit({value:h.convertArrays(this.value),result:t,type:e==true?"remove":this.type});if(this.action){const o=this.action;this.notice.emit(L.execute("Submitting form",(async()=>{const s=e?"DELETE":!this.type||this.type=="create"?"POST":this.type=="change"?"PUT":this.type=="update"?"PATCH":"GET";const a=await sr(Il.create(s=="GET"?{method:s,url:`${o}?${nr(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 i=!a||(a===null||a===void 0?void 0:a.status)<200||a.status>=300?[false,"Failed to submit form."]:[true,"Form successfully submitted."];t(i[0]);return[...i]})))}}));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 e=>rr.is(e)&&e.clear())));this.smoothlyFormClear.emit()}async edit(e){await Promise.all([...this.inputs.values()].map((async t=>cr.Element.type.is(t)&&t.edit(e))));this.readonly=!e;this.smoothlyFormEdit.emit(e)}async reset(){await Promise.all([...this.inputs.values()].map((e=>cr.Element.type.is(e)&&e.reset())));this.changed=[...this.inputs.values()].some((e=>cr.type.is(e)?e.changed:true));this.smoothlyFormReset.emit()}async setInitialValue(){await Promise.all([...this.inputs.values()].map((e=>cr.Element.type.is(e)&&e.setInitialValue())))}render(){return t(s,{key:"0c7c00e9a8e53df304701fa4fdc9cea7025b1370"},t("smoothly-spinner",{key:"0c687fab2d60a1166bef972e6a25244ff0501c75",overlay:true,hidden:!this.processing}),t("form",{key:"4a84c5beec44065bb7bf42aed926103e7f2a5b00",onSubmit:!this.prevent?undefined:e=>e.preventDefault(),name:this.name},t("fieldset",{key:"49fae6fe14b1473edf0c322cdd436cb1fc6a11a8"},t("slot",{key:"5a590b898127d579d3e95f4a57cea945fce78b92"})),t("div",{key:"a3df10d8439b10c5f7655a7e87f8a42e4bd3d1e6"},t("slot",{key:"b44f7e07d750afe9d1835e4fee47165a8a25d35e",name:"clear"}),t("slot",{key:"6952d73102b5250eaa8ffd7594f55766dec2e9ae",name:"edit"}),t("slot",{key:"ecca8f1d188899033c0c21c83776d58f899523c8",name:"reset"}),t("slot",{key:"0e9a23859ae3ec0530eeacb036bdfb821019b894",name:"delete"}),t("slot",{key:"5d331550ad9ce34d733e2fd1490647a60b0ed5cf",name:"submit"}))))}get element(){return a(this)}static get watchers(){return{value:["watchValue"],readonly:["watchReadonly"]}}};br.style=yr;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 fr=ur;const pr=class{constructor(t){e(this,t)}render(){return t(s,{key:"f1ca7be120d87c8cdb9bd0c9121b7ccc2346d812"},t("div",{key:"0a57eceabdcb885bb2b114c107bbdbf0297c4396"},t("smoothly-form-demo-all",{key:"ceedbb7ddd84562a8e4ee35e15b7b9ea51c8e979"}),t("smoothly-form-demo-pet",{key:"4cba93208eb3e1ef043a19713d08a286e705c5ff"}),t("smoothly-form-demo-card",{key:"f5f566679b5dae179121e826534594daea439bc9"}),t("smoothly-form-demo-login",{key:"befffde4476de1a6b3e5918fea806391482bfdd3"}),t("smoothly-form-demo-prices",{key:"bd187e2eed55caf537cdb4383f2ef8d08de2de96"}),t("smoothly-form-demo-typed",{key:"3d059700b23d5cdb4bca6b133bec53b44bec85a3"}),t("smoothly-form-demo-transparent",{key:"ebfb7021b446605a417d1ef7a839ddd7d565cc54"}),t("smoothly-form-demo-date",{key:"a9af3ae6f5d7e4a71d3ebe4c1c3bf029fb2bb9b7"}),t("smoothly-form-demo-date-range",{key:"84c92fbabfb53309846028de50aa588004da1a03"}),t("smoothly-form-demo-controlled",{key:"a137a49656c067babc3dfaf3768a4addf1d7fcdd"})))}};pr.style=fr;const gr=class{constructor(t){e(this,t)}render(){return t(s,{key:"bfb388adc1db43ec7287e404cd7d3c045ebccc6b"},t("h2",{key:"22e727c2752992b85da8fc4292432ce05bfdb55e"},"All inputs"),t("smoothly-form",{key:"4f06760fb8f66f246c4c89aec330029b0bf1c0d0",looks:"grid",type:"create",readonly:true,action:"https://api.toiletapi.com/upload/6b12fd2f-e896-46f9-b38f-25cf42cee4b4",onSmoothlyFormSubmit:e=>{Object.entries(e.detail.value).forEach((([e,t])=>console.log(e,t)))}},t("smoothly-input",{key:"254ed8f85cb159a5af93d599609667088b4449e3",readonly:true,name:"First Name",value:"John"},"First name"),t("smoothly-input",{key:"7eacb1f23d475a21033225eef8c250c5e8c06538",showLabel:false,name:"Last name",value:"Doe"},"Last name",t("smoothly-input-clear",{key:"1124f037abb4a8d500c0a7986cf13c26dc64e925",size:"icon",slot:"end"})),t("smoothly-input",{key:"251918938159fe0cdc97a30dfb3039e6bb0dfb30",type:"phone",name:"Phone",value:"777888999"},"Phone",t("smoothly-input-reset",{key:"7b3cdc3fdfd0b6a69410e200dcb3bd36bf79bacf",size:"icon",slot:"end"})),t("smoothly-input-radio",{key:"99531672f356a01b94b578bea0147bf9a29f9ffc",clearable:true,name:"radioFirstInput"},t("label",{key:"d29a95e1f8ab6ab7afc4f39563ffcd5d55b96b9e",slot:"label"},"Clearable"),t("smoothly-input-radio-item",{key:"21fd7a7d149fa8c9d6b57132e69daee11a2f65f0",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"6038befc020652cf246170b00ae827cdb00d8414",selected:true,value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"6958375a1942980ff4848eac8b34f8810f356901",value:"third"},"Label 3")),t("smoothly-input-color",{key:"be65bda31cab2d5d5e88a4028ee1980b8a828dec",name:"color"},"Color"),t("smoothly-input-select",{key:"a6242f5ff75f4be66b3cf83abe95279ad724dfa9",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},t("label",{key:"105edf256973242d9b3a25ae72ffc886e897b726",slot:"label"},"Month multiple select"),t("smoothly-item",{key:"ba20725d9d9c742323e744eb022a698c4d3329db",value:"1"},"January"),t("smoothly-item",{key:"a48e992441eae172b275d9ebc082f7efae8359dc",value:"2"},"February"),t("smoothly-item",{key:"afcd5ef7d7b9adf0c1cd7d3883c817eee24e4094",value:"3"},"March"),t("smoothly-item",{key:"52d2a5247e4dd727b4ae30d859b6bd6e9e85ce96",value:"4"},"April"),t("smoothly-item",{key:"cb65e2be5db79a67e8eef259529dc13bc4165c72",value:"5"},"May"),t("smoothly-item",{key:"2a52b71909607fb27dbe792e9faa7c30c689d31e",value:"6"},"June"),t("smoothly-item",{key:"68010b3920797ae55199a09f5aa4d0c02277b3e3",value:"7"},"July"),t("smoothly-item",{key:"d96655195f93af1cdec4c3afa1ff5a8716df0af3",value:"8"},"August"),t("smoothly-item",{key:"74de65ffe848a2a20e18ea23cca052f68647e633",value:"9"},"September"),t("smoothly-item",{key:"8b36e48f30e16df1ae3d997c7a2d268613998ce0",value:"10"},"October"),t("smoothly-item",{key:"b0784ebd2bb7e7227b806bc92d04b1e2090ad8e6",value:"11"},"November"),t("smoothly-item",{key:"1a2a7e4e6511f955a18c813c84e58a28bc404248",value:"12"},"December")),t("smoothly-input-select",{key:"c2226b1ae4c7047b0ddc4253f5a7606b7f2fc9e8",name:"select-icon",clearable:false,showSelected:false},t("smoothly-item",{key:"9bdd864c8272b2ab73547074189e16e93bbcb95c",value:"folder",selected:true},t("smoothly-icon",{key:"58cce63b8b1ee021e662048d91985f75cc8fb41d",size:"small",name:"folder-outline"})),t("smoothly-item",{key:"f26e4fa4f9866d771b0eee93c846501edd0c59a1",value:"camera"},t("smoothly-icon",{key:"17f8216fd071284f115b35f067a40fc20803e955",size:"small",name:"camera-outline"}))),t("smoothly-input-checkbox",{key:"cf4f2cca30379914d19a4cb2ed34010d93910b46",name:"checkbox"},"Check the box"),t("smoothly-input-checkbox",{key:"74a5b23416500762fe906037d17e04fb718f0128",name:"checkbox2",checked:true},"Check the box 2"),t("smoothly-input-range",{key:"c3cd9df502de377b2bbb9320118f5177bd35ee23",step:1,name:"range3",value:20,label:"Range"}),t("smoothly-input",{key:"47afd204f75f650056ae56f929e5d8ae7565d40c",name:"pets.0.name"},"First Pet's Name"),t("smoothly-input-range",{key:"1db6e482e8e9dfff2a85e63bbd0b4ee68c6c7f29",name:"pets.0.age",max:100,step:1,label:"First Pet's Age"}),t("smoothly-input",{key:"5e2fbd3adb3b466914f50744bff8431419d9ee8b",name:"pets.1.name"},"Second Pet's Name"),t("smoothly-input-range",{key:"31f6bf08c0f8e34317f6b89a144e20953fc6a764",name:"pets.1.age",max:100,step:1,label:"Second Pet's Age"}),t("smoothly-input",{key:"25a5b5d189a8a36acb5b1d91b128d71d8483325a",name:"pets.2.name"},"Third Pet's Name"),t("smoothly-input-range",{key:"72e4cc632ac58f1726c0f15f1d42900eeaa3054f",name:"pets.2.age",max:100,step:1,label:"Third Pet's Age"}),t("smoothly-input-file",{key:"9100b7fc807914b6ddfc9f9c899a2653b8b77fe4",name:"profile",placeholder:"Click or drag your profile picture here..."},t("span",{key:"44fa5714baf0c2589673e9b002803a3c1cf22f87",slot:"label"},"Profile"),t("smoothly-icon",{key:"4324f2e51a50f2c4e6a93135deef3c1aeca87c9a",slot:"button",name:"person-circle-outline",size:"tiny",fill:"default"})),t("smoothly-input",{key:"06cacbee33b21ed926c28da95ca954e45613f646",type:"duration",name:"duration",value:{}},"Duration"),t("smoothly-input-clear",{key:"40370e9e2ed1cd6abc3905478fa602f3860d8f31",fill:"default",type:"form",color:"warning",slot:"clear",size:"icon",shape:"rounded"}),t("smoothly-input-edit",{key:"bcd3d7cd4a2e02392a7435dbdd8757ff24bca012",fill:"default",type:"form",color:"tertiary",slot:"edit",size:"icon",shape:"rounded"}),t("smoothly-input-reset",{key:"28104349d7e84bcc1bd08344361b0dda74b53136",fill:"default",type:"form",color:"warning",slot:"reset",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"9132ad785a35630de34b35dd6e7ddc2cfef59950",delete:true,slot:"delete",color:"danger",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"d8e762e2fa8133d09583f6a1fec6c997017812d5",fill:"default",color:"success",slot:"submit",size:"icon",shape:"rounded"})))}};const kr=class{constructor(t){e(this,t)}render(){return t(s,{key:"9b131a43df2d8b5279cd0efb2cc7396a487061e7"},t("h2",{key:"ef59d5297d4218d625922176e2d9a11d5fa764bb"},"Card"),t("smoothly-form",{key:"b6b5aa1655870826e4a559cc79580a4ad9992ce6",looks:"grid",onSmoothlyFormSubmit:e=>alert(JSON.stringify(e.detail))},t("smoothly-input",{key:"61101c45489123b34ad5ebde54ca1762afa257ad",type:"card-number",name:"card"},"Card #"),t("smoothly-input-submit",{key:"fbab612637278f6497f034499deb8586e69892b6",size:"icon",slot:"submit",color:"success",fill:"solid"}),t("smoothly-input",{key:"6516eb3313f574142c7a81d045997f98527d5e3e",type:"card-expires",name:"expires"},"Expires"),t("smoothly-input",{key:"7b2b4a7499a39285b90da3759e143944fde4d303",type:"card-csc",name:"csc"},"CVV/CVC"),t("smoothly-input",{key:"0f44231971a174ceeeae6bf66972931bdc11c97c",type:"text",name:"name.first"},"First Name"),t("smoothly-input",{key:"d064204b1e25b4192c955d4c4ae5e4c63e9763e0",type:"text",name:"name.last"},"Last Name")))}};const vr=class{constructor(t){e(this,t);this.currencies=["GBP","SEK","EUR","USD"];this.name="Initial name";this.currency="EUR";this.date=k.now()}nameChanged(e,t){console.log(`updated name from '${t}' to '${e}'`)}async submitHandler(e){e.stopPropagation();console.log("Received event. Processing...",e.detail);if(!(typeof e.detail.value.name=="string")){console.error("Bad input. Resolving false.")}else if(!(typeof e.detail.value.date=="string"))console.error("Bad input. Resolving false.");else if(!w.is(e.detail.value.currency))console.error("Bad input. Resolving false.");else{await new Promise((e=>window.setTimeout(e,1e3)));this.name=e.detail.value.name;this.date=e.detail.value.date;this.currency=e.detail.value.currency;console.log("Finished processing successfully. Resolving true.");e.detail.result(true)}e.detail.result(false)}render(){return t(s,{key:"1a39b78ff59692b8f790a0ca041960d4270bc8ab"},t("h2",{key:"4a3177a4e7d38a59f9fa65552767bb395714c27b"},"Controlled"),t("smoothly-form",{key:"bd1b3bc05d0879c45e6867a13dad70b2f6ce94e7",readonly:true,looks:"grid",onSmoothlyFormSubmit:e=>this.submitHandler(e)},t("smoothly-input",{key:"3918be00220566daef557039bc4c703fe8e09b50",type:"text",name:"name",value:this.name},"Name"),t("smoothly-input-select",{key:"a9206282200f7e681243999da8c5d2cdf9fac7b5",name:"currency"},t("span",{key:"53df31e738298a8f78681a4ac546e6599acfef6b",slot:"label"},"Currency"),this.currencies.map((e=>t("smoothly-item",{selected:e==this.currency,value:e},e)))),t("smoothly-input",{key:"6a1b06a8fadb7fd5a46d8b26b66339a342880fad"},"Dummy"),t("smoothly-input-month",{key:"3eb933f1cbbf7134db6c735d402478371271c3b3",name:"date",value:this.date,next:true,previous:true},t("span",{key:"344cc723f01f8df0710734ef2c5476f32e975187",slot:"year-label"},"Year"),t("span",{key:"1a2517f170acfa04c76770e51ab4a396518e2d7c",slot:"month-label"},"Month")),t("smoothly-input-edit",{key:"a1438be3092367b439956fa2ade8edf0a00f4255",slot:"edit",size:"icon",color:"primary",fill:"default"}),t("smoothly-input-reset",{key:"7ed2d852f6887e19acffc8ee6485df88a5c4cbec",slot:"reset",size:"icon",color:"warning",fill:"default"}),t("smoothly-input-submit",{key:"e51b75c4d335047d0faae77207f1135f164d8a79",slot:"submit",size:"icon",color:"success"})))}static get watchers(){return{name:["nameChanged"]}}};const xr=".sc-smoothly-form-demo-date-h{display:block}";const wr=xr;const Sr=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.validator=S({date:m("isoly.Date",k.is)})}async submitHandler(e){e.stopPropagation();if(!this.validator.is(e.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(L.failed(`Type is incomplete.`))}else{this.notice.emit(L.succeeded(`Type is complete!`));e.detail.result(true)}e.detail.result(false)}render(){return t(s,{key:"aa19ebb22d681b287b2ec81202c01482e4a83f60"},t("h2",{key:"88cf2ed5415dee5bf3a122b2a1a8abe20babe925"},"Date input"),t("smoothly-form",{key:"d8d010a2cc02a94b0f2f277c530d2cf3ca1a697f",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:e=>this.submitHandler(e)},t("smoothly-input-date",{key:"cd3a8896484802bea38f330d3cce6cd1f369b6cf",name:"date"},"Date"),t("smoothly-input-submit",{key:"370b34543bbef943c67d46ca46df7e5216e2759a",slot:"submit"},t("smoothly-icon",{key:"0be6193b0a290537c1d2579b22a4d962aa200296",name:"checkmark-outline"}))))}};Sr.style=wr;const Cr=".sc-smoothly-form-demo-date-range-h{display:block}";const zr=Cr;const jr=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.validator=S({range:m("isoly.DateRange",j.is)})}async submitHandler(e){e.stopPropagation();if(!this.validator.is(e.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(L.failed(`Type is incomplete.`))}else{this.notice.emit(L.succeeded(`Type is complete!`));e.detail.result(true)}e.detail.result(false)}render(){return t(s,{key:"022dd0567e2b7bf321d9879b83b49c66cd1f04bb"},t("h2",{key:"ce79ae7c7408ce41e1dd8528717d52efb644b8cc"},"Date-range input"),t("smoothly-form",{key:"9cb3a9b8a32949ea5dd0d472eecfef7793a7409b",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:e=>this.submitHandler(e)},t("smoothly-input-date-range",{key:"6f0f1eea169f5516fe5c994cd80a2369d33e5502",name:"range"},"Range"),t("smoothly-input-submit",{key:"93e8e2e6f5f3bf7656c6a6753265366b13dfbaef",slot:"submit"},t("smoothly-icon",{key:"28236dfe106123ad3ebefb3f5e64594d31fa388f",name:"checkmark-outline"}))))}};jr.style=zr;const _r=class{constructor(t){e(this,t)}render(){return t(s,{key:"559985f2133b7f86de5c22a88cfda3e8bd1a344a"},t("h2",{key:"693658791fff278e231556b4aadcac20c311190c"},"Login"),t("smoothly-form",{key:"fd420a522a1c7f51ce277c5250ad5cc2f300af7f",looks:"border"},t("smoothly-input",{key:"656686c2d6e54047aa05b2431e059da3bfb656ed",type:"text",name:"username"},"Username"),t("smoothly-input",{key:"ef679e989bea7e4c5af277fe2b1a6f4ad1fec063",type:"password",name:"password"},"Password"),t("smoothly-input-reset",{key:"e7f58c64563e0e2a6feb789a9dea1aca186631ae",slot:"reset",type:"form",size:"icon",color:"warning"}),t("smoothly-input-submit",{key:"abc12666abee47139e05db5c583bb9f458f21c8c",slot:"submit"})))}};const Tr='.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 Ir=Tr;const Lr=class{constructor(t){e(this,t);this.hasOwner=false;this.owner={};this.value=undefined}render(){var e,o;return t(s,{key:"f926cc45f0cc0291f2c24c7b398606a85b50d234"},t("h2",{key:"fb0ba15fe080450f09989315d3c145028217b692"},"Pet"),t("h3",{key:"d3dccbcc9b23b2cd8218936424e17a278feea2a4"},"Value"),t("smoothly-form",{key:"bf16fa9747ed9b5a6a0208cb6f412b3203077de7",looks:"border",onSmoothlyFormSubmit:e=>alert(JSON.stringify(e.detail)),onSmoothlyFormInput:e=>this.value=Object.assign({},e.detail)},t("smoothly-input",{key:"517b4234109763201875c4894ab5e9627f7f4abc",type:"text",name:"name.first"},"Name"),t("smoothly-input",{key:"ee6ac67d9818a76c10462980c445ca33ae46638b",type:"integer",name:"age"},"Age (Years)"),t("smoothly-input-checkbox",{key:"28b630a35af9ce0976bbb7057c4fdbb4c47cef58",name:"hasOwner",onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyInput:e=>{this.hasOwner=e.detail.hasOwner;e.stopPropagation()}},"Has Owner"),this.hasOwner&&t(i,{key:"8ee49fcf125cd50beaf4fcf593a16b58778e76cb"},t("smoothly-input",{key:"bfafcac88d20b89c67e5d1e222812f2851888633",type:"text",name:"owner.firstName",value:this.owner.firstName,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{firstName:e.detail["owner.firstName"]})},"Owner First Name"),t("smoothly-input",{key:"874b59bc35579337167b159cd64a80be4504bb2f",type:"text",name:"owner.lastName",value:this.owner.lastName,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{lastName:e.detail["owner.lastName"]})},"Owner Last Name"),t("smoothly-input-file",{key:"8a489e5bb6483336c2977a5f8b64220ea29ebbdf",name:"owner.picture"},t("span",{key:"e457cee963a8060ecfc4b6beeabf0457dd45c496",slot:"label"},"Owner picture")),t("smoothly-input-date",{key:"a6485e71de11cde954fb55f0a08013e9674c83b6",name:"owner.birthday",value:this.owner.birthday,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{birthday:e.detail["owner.birthday"]})},"Owner birthday"),t("smoothly-input-date-range",{key:"43ecabe7e035de133f1394ddfab21b0ca8866a2b",name:"owner.ownedRange",start:(e=this.owner.ownedRange)===null||e===void 0?void 0:e.start,end:(o=this.owner.ownedRange)===null||o===void 0?void 0:o.end,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{ownedRange:e.detail["owner.ownedRange"]})},"Owner ownedRange"),t("smoothly-input-range",{key:"5586a1e0ad8d9c76dc918f23b15ff653006ab436",name:"owner.height",step:1,max:250,value:this.owner.height,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{height:e.detail["owner.height"]})},"Owner's Height"),t("smoothly-input-select",{key:"418a7a9e76171c20d948c4175ed079b235c57f55",name:"owner.favoriteHat"},t("span",{key:"7be6a6723da871f52ca827f8e65d6c0416caf881",slot:"label"},"Owner's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,o)=>t("smoothly-item",{value:e,key:o,selected:this.owner.favoriteHat==e},e)))),t("smoothly-input-color",{key:"7d10d88c10060bdd6c686febed826ad0684fdda4",name:"owner.favoriteColor",value:this.owner.favoriteColor?y.toHex(this.owner.favoriteColor):undefined,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{favoriteColor:e.detail["owner.favoriteColor"]})},"Owner's Favorite Color"),t("smoothly-input-radio",{key:"51ae6d26dc3472dc34bc039f0a149e87d3a2f2f5",name:"owner.favoritePizza",value:this.owner.favoritePizza,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{favoritePizza:e.detail["owner.favoritePizza"]})},t("span",{key:"af419a86d160c269862e474de0c5e354453fd8a2",slot:"label"},"Owner's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,o)=>t("smoothly-input-radio-item",{value:e,key:o},e)))),t("smoothly-input-checkbox",{key:"003b5e3f6ed34ec8d73f2dccb1482350d2c25f86",name:"owner.hasPet",checked:this.owner.hasPet,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{hasPet:e.detail["owner.hasPet"]})},"Has Pet")),t("smoothly-summary",{key:"bb73afe0dd4b31f56ea336b9dc103367cdc627e3"},t("span",{key:"d8f5a03c901be8a2aa586011a0faef34ce712d5c",slot:"summary"},"Summary"),t("div",{key:"f7083c2d68d2e8d44ea3eb39a4f308816bdcda9a",slot:"content"},t("smoothly-input",{key:"b2efc307607f9933eec46f9b7a2c1fa9cc4d6cca",type:"price",name:"summary.price",currency:"EUR"},"Summary Price"),t("smoothly-input-file",{key:"0de58d7552d6fe19d3338251d7160d8fa07e4f41",name:"summary.picture"},t("span",{key:"f617802b638f635a38d60561098e14844dd22d50",slot:"label"},"Summary picture")),t("smoothly-input-date",{key:"12f8e38b0be8b6d4448a1a210b279f234723d089",name:"summary.birthday"},"Summary birthday"),t("smoothly-input-date-range",{key:"4183ad71048f2a2b83d9a3cc15c342e70d32eb36",name:"summary.ownedRange"},"Summary ownedRange"),t("smoothly-input-range",{key:"eaf4fd928b7cf9809236a25ae9aaece4db40ebee",name:"summary.height"},"Height"),t("smoothly-input-select",{key:"0340202daca1bf8be541d1065306abdb73994216",name:"summary.favoriteHat"},t("span",{key:"455bd818a3896e691344eee0290c8e4b2b6b99f9",slot:"label"},"Summary's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,o)=>t("smoothly-item",{value:e,key:o},e)))),t("smoothly-input-month",{key:"95cd6a00fa1310c8411f5449e86a8380ab23f893",name:"summary.month"},"Summary Month"),t("smoothly-input-color",{key:"aaea740dcda58e663d77fe278af20a37d23c3c29",name:"summary.color"},"Summary Color"),t("smoothly-input-radio",{key:"f0abc5f653d76d4a8e80db253f73478808772f26",name:"summary.favoritePizza"},t("span",{key:"2e8aae93b6f3023d90d46b0661da993069254ad9",slot:"label"},"Summary's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,o)=>t("smoothly-input-radio-item",{value:e,key:o},e)))),t("smoothly-input-checkbox",{key:"62fb76ee63e7ca04acace1d704b7162007dc6113",name:"summary.hasPet"},"Has Pet"))),t("smoothly-tabs",{key:"5694a29b9cb38faf9b5bda9872e6acc89e9b815b"},t("smoothly-tab",{key:"c8fdf7364cfd3e0ba67c0737585c460339860428",label:"Dog"},t("smoothly-input",{key:"73ba074a24956a96b8ae05c5d6e1b4ce0f2f5904",type:"text",name:"dog.breed"},"Breed"),t("smoothly-input-file",{key:"38635ba92663dba7ef33bbda1bbd28006795f9a3",name:"dog.picture"},t("span",{key:"69fe9e2e95cab3a6cf63a2b9032164e858da0056",slot:"label"},"Dog picture")),t("smoothly-input-date",{key:"873516c880d3be1b82fce0d2b170f26fc8edcb7a",name:"dog.birthday"},"Dog birthday"),t("smoothly-input-date-range",{key:"a4df495a378d7d69b36a3112815ab28eebdafb18",name:"dog.dateRange"},"Dog date range"),t("smoothly-input-select",{key:"4fd169248a34652e2afa5bd9c82f54ec80cc925f",name:"dog.favoriteHat"},t("span",{key:"c367310b392845a2b647c2c1ec18136da4d62982",slot:"label"},"Dog's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,o)=>t("smoothly-item",{value:e,key:o},e)))),t("smoothly-input-color",{key:"4c6c3d2b49b914f261dd2c96b720e6664e852f58",name:"dog.favoriteColor"},"Dog's Favorite Color"),t("smoothly-input-radio",{key:"47d1c6868f78ed5b1480385a430f81fec77de458",name:"dog.favoritePizza"},t("span",{key:"3af8fa1b379b9c7d2817c0f10c0651dbb440f478",slot:"label"},"Dog's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,o)=>t("smoothly-input-radio-item",{value:e,key:o},e)))),t("smoothly-input-checkbox",{key:"3eb0518c0833b098a68dcbac9171fc533015e34c",name:"dog.hasPet"},"Has Pet")),t("smoothly-tab",{key:"7828d4ca2378c3e7c21ac98c6696991f8ede4452",label:"Cat",open:true},t("smoothly-input",{key:"58a99bfe09285c7698f0463a4e9ad2c5dc94e300",name:"cat.favoriteFood"},"Favorite Food"))),t("smoothly-input-submit",{key:"21482df51ba28296f09a6f38c57008ceae652055",size:"icon",slot:"submit",color:"success",fill:"solid"})),t("smoothly-display",{key:"4aa5da7331a5af8db6b69a34c541d9ec23ab3529",type:"json",value:this.value}))}};Lr.style=Ir;const Or=class{constructor(t){e(this,t)}render(){return t(s,{key:"fefcedbfe8f22921bea912762f1f6d8caf6ea3e4"},t("h2",{key:"c18e909d513549a9a8cc28b2b1d8982b96703343"},"Prices"),t("smoothly-form",{key:"1eb8cab4a08f19f246c5cd46362452b416db1573",looks:"line"},t("smoothly-input",{key:"75439c727baa6c39b500deec470d0a32953fddc7",type:"price",name:"no"},"No currency"),t("smoothly-input",{key:"11b3a7ab0e4dd1626e7efea03c56ba4c1c5e9c27",type:"price",name:"crowns",currency:"SEK",toInteger:true},"SEK (toInteger)"),t("smoothly-input",{key:"837b810384d7818df18c2ed9d6d08eb965124627",type:"price",name:"usDollar",currency:"USD"},"USD"),t("smoothly-input",{key:"6ffb11da5cecbbeeef8b6482cbe3cee39e16b6ef",type:"price",name:"pounds",currency:"GBP"},"GBP"),t("smoothly-input",{key:"4409191ea5b5b0ded31bffc9408927c36bb1bd3b",type:"price",name:"peso",currency:"UYW"},"UYW"),t("smoothly-input",{key:"8dc492d719d9e2eabba22c402e0349fc5aa7dc9f",type:"price",name:"iceland",currency:"ISK"},"ISK"),t("smoothly-input",{key:"2def9348a43704dafc21e3738de05d074f189285",type:"price",name:"Palladium",currency:"XPD"},"XPD (Palladium)"),t("smoothly-input-reset",{key:"a788708ac62aedac125182d8b2e85ce1e9a62001",slot:"reset",fill:"default",type:"form",color:"warning"}),t("smoothly-input-submit",{key:"b8952a88dfb22db800ae00540c83d90feb160152",slot:"submit"})))}};const Er=class{constructor(t){e(this,t)}render(){return t(s,{key:"04a9b341275b0e795c4eb76aaacd3fb87df733d9"},t("h2",{key:"e91d5932abf4ccf5004b55fcbf112796654bd787"},"Transparent"),t("smoothly-form",{key:"e8e57518dbc350268b30c66283687d06ad269ac1",looks:"transparent",onSmoothlyFormSubmit:e=>console.log(e.detail.value)},t("smoothly-input-file",{key:"9f550901327e83cc39cc8d4ff35374eaba49637a",name:"file"},t("span",{key:"15b9a81653d0786929b179ff2ab84ec0ff2fc534",slot:"label"},"File"),t("smoothly-icon",{key:"f1c27d7dfeccd0cb9e2138ec9c41ecfedc4bf65e",slot:"button",name:"folder-open-outline",size:"small"})),t("smoothly-input",{key:"0997d66db8a8a8e3e1a6efcfd0a93179dab690a8",type:"duration",looks:"transparent",placeholder:"h:mm"},"Input"),t("smoothly-input-date",{key:"d8e809c2304d60c231a8cab78d5dc7aa5afdc218"},"Date"),t("smoothly-input-date-range",{key:"0739bbdd6fe540e8b1a8a722632d614d35fd0d1c"},"Date Range"),t("smoothly-input-select",{key:"be68afbc1bb355a9f8e220fb50a55ff7337fb162",name:"transport"},t("smoothly-item",{key:"694c5daca6cc3b1ca62e3483418951705cf3d2b1",value:"plane"},t("smoothly-icon",{key:"1620bcd508ce6edd6e39056c04a36c2ba96ce94e",name:"airplane-outline"})),t("smoothly-item",{key:"06a6bca3d2ff01577a12dde4aaaaee4d0c635f51",value:"car"},t("smoothly-icon",{key:"9e593b841666d8aa7afbe3c59f3da2848f3e4e1a",name:"car-outline"})),t("smoothly-item",{key:"35dc7d4d75ae3c9006567800c5d1029042746a53",value:"bus",selected:true},t("smoothly-icon",{key:"f22dfee878b8bec5950229e5baf0abe2e18207c6",name:"bus-outline"}))),t("smoothly-input-submit",{key:"71c442650bfb27d4ecf0556b1f4b917bc7033a8b",icon:"checkbox-outline"})))}};var Ar;(function(e){e.type=S({name:S({first:C(),middle:C().optional(),last:C()}),age:_((e=>18<=e&&e<=120)),country:m("CountryCode",T.is),birthday:m("Date",k.is)})})(Ar||(Ar={}));const Dr="";const Mr=Dr;const $r=class{constructor(t){e(this,t)}render(){return t(s,{key:"4ed477f128d5b098d3310aaa266c4af1922832a1"},t("h2",{key:"1e8f3c9b75144462366853f9f6cf5a1c5f0faf65"},"Typed Contact"),t("smoothly-form",{key:"a519b7dbafb502af88cbf9a5ba47901ef4be0cb6",validator:Ar.type},t("smoothly-input",{key:"f147113ea3704978efcd40cba1cc37f0ca0eb9bf",name:"name.first"},"First Name"),t("smoothly-input",{key:"a9a36af0fa69a2a05e96d8de774f5c688c9c1bfd",name:"name.middle"},"Middle Name (optional)"),t("smoothly-input",{key:"0717cf0ca06d930b20c9462b8d0b1e14ff6d82a1",name:"name.last"},"Last Name"),t("smoothly-input",{key:"57afba493b35c43327790befeb1269cdec67b605",name:"age",type:"integer"},"Age (18-120)"),t("smoothly-input-select",{key:"d01d7aa69d6f1e24e3790580867cdccfeeb5fc50",name:"country"},t("span",{key:"41d0cc36d65c3661101f9a17d37c037f76904a59",slot:"label"},"Country"),T.values.map((e=>t("smoothly-item",{value:e},O(e))))),t("smoothly-input-date",{key:"7e169ca0ec70c91d19b54c1b7a982947d40dcaee",name:"birthday"},"Date of birth"),t("smoothly-input-reset",{key:"b051e825afa1f684438e9190c8c26de4036473c9",slot:"reset",type:"form",size:"icon",color:"warning"}),t("smoothly-input-submit",{key:"02c15203368038bd7692528587764d27cc36b8e3",slot:"submit",size:"icon",color:"success"})))}};$r.style=Mr;const Rr=".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 Pr=Rr;const Nr=class{constructor(t){e(this,t);this.trigger=o(this,"trigger",7);this.message2=o(this,"message2",7);this.url=undefined;this.name=undefined;this.origin=undefined}get contentWindow(){const e=this.element&&this.element.firstElementChild?this.element.firstElementChild:undefined;return e&&e.contentWindow||undefined}get defaultOrigin(){const e=this.url.match(/^(([a-z]+\+)*[a-z]+:\/\/)?[^/^\n]+/);return e?e[0]:"*"}componentDidLoad(){var e;if(this.contentWindow)b.listen((e=this.origin)!==null&&e!==void 0?e:this.defaultOrigin,((e,t)=>{if(e==this.name)if(l.is(t))this.trigger.emit(t);else this.message2.emit({destination:e,content:t})}),window)}async send(e,t){var o,s;if(typeof e=="string")b.send(((o=this.origin)!==null&&o!==void 0?o:this.defaultOrigin)+"#"+e,t,this.contentWindow);else if(b.is(e)&&this.contentWindow)b.send({destination:((s=this.origin)!==null&&s!==void 0?s:this.defaultOrigin)+"#"+e.destination,content:e.destination},this.contentWindow)}render(){return[]}get element(){return a(this)}};Nr.style=Pr;const Fr="[size].sc-smoothly-icon-h{background:none}.sc-smoothly-icon-h{display:flex;align-items:center;justify-content:center}[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{width:1.2em;height:1.2em}[size=small].sc-smoothly-icon-h{width:1.4em;height:1.4em}[size=medium].sc-smoothly-icon-h{width:1.8em;height:1.8em}[size=large].sc-smoothly-icon-h{width:2.8em;height:2.8em}[size=xlarge].sc-smoothly-icon-h{width:4em;height:4em}.sc-smoothly-icon-h.sc-smoothly-icon-s>svg{width:100%}";const Hr=Fr;const Ur=class{constructor(t){e(this,t);this.color=undefined;this.fill="solid";this.name="empty";this.size="medium";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 e=this.latestPromise=u.load(this.name);let t=await e;if(e==this.latestPromise){t=t===null||t===void 0?void 0:t.replace(/(?<=^<svg\s?)/,`$& role="img"`).replace(` width="512" height="512"`,"").replace(/stroke:#000;/gi,"");if(!this.toolTip)t=t===null||t===void 0?void 0:t.replace(/<title>.*<\/title>/,"");else if(t===null||t===void 0?void 0:t.includes("<title>"))t=t.replace(/(<title>).*(<\/title>)/,`<title>${this.toolTip}</title>`);else t=t===null||t===void 0?void 0:t.replace(/(.*>)(<\/svg>$)/,`$1<title>${this.toolTip}</title>$2`);this.updateDocument(t)}}else this.updateDocument()}updateDocument(e){this.document=e!==null&&e!==void 0?e:`<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 e;return t(s,{key:"99949fe4d38654485d3b2df2e0941537b5928319",innerHTML:this.document,style:{["--rotation"]:`${(e=this.rotate)!==null&&e!==void 0?e:0}deg`}})}static get watchers(){return{toolTip:["nameChanged"],name:["nameChanged"]}}};Ur.style=Hr;const Yr=".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 Wr=Yr;const Br=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.page=0;this.display={};this.props={}}render(){return t(s,{key:"674cc4aedb027419d9df487644beefaef9a1533d"},t("h2",{key:"0c7b78cb56ad8db8c4c693b941bfafdf899b524d"},"Filter and Variants"),t("smoothly-form",{key:"5bac7acfbb224363829d2bb139f3607d25367fb0",onSmoothlyFormInput:e=>this.display=e.detail},t("smoothly-input",{key:"2b70aa984f91cfb64331d35a77fd7036e66d1a21",name:"filter"},"Filter"),t("smoothly-input-select",{key:"5acddcb3aedecf9e766ead9ea29c452ed99cad35",name:"variant"},t("span",{key:"2bb2ff71c921c2d27c022add44214b9ad03422fe",slot:"label"},"Variant"),t("smoothly-item",{key:"5306c841dc4a11685ac19cee1ab5afdecf756ecf",value:"outline"},"outline"),t("smoothly-item",{key:"9e33539f82e06e0f0d4a97bbbd967ea888b68dcd",value:"sharp"},"sharp"),t("smoothly-input-clear",{key:"1187b4c1921322c2ce13736a9ef587047666ffc5",slot:"end"}))),t("h2",{key:"4b81131f04c46e2079f39554a80216303350e1a6"},"Props"),t("smoothly-form",{key:"64b35110052a66a0363da63a8dff49e7adef340c",onSmoothlyFormInput:e=>this.props=e.detail},t("smoothly-input-select",{key:"6a49518ab85500b14c6f8b622cf77728e9c75e1f",name:"color"},t("span",{key:"ff1f1cd98b3de6f1b73cd64a04532500e9285250",slot:"label"},"Color"),r.types.map((e=>t("smoothly-item",{value:e,color:e},e))),t("smoothly-input-clear",{key:"1753e3e8cbb671ae14d52d5e853245f2e124d3eb",slot:"end"})),t("smoothly-input-select",{key:"7843e1ceb727c43ee40456c5a75db3f379875e01",name:"flip"},t("span",{key:"9ad5e11478ca98b0ce69fb73d446e1a08f9f7b6c",slot:"label"},"Flip"),t("smoothly-item",{key:"a7f0dc7f4fd11669a352ddfaa8653e5fa772640c",value:"x"},"x"),t("smoothly-item",{key:"9efeac6f3ff2c93ef983334b2e4b457787b0eb11",value:"y"},"y"),t("smoothly-input-clear",{key:"bf513c36b33cc280b8338a34e11a30f4a861dcba",slot:"end"})),t("smoothly-input-select",{key:"368d13edb99a8851e6ab0473e99b2970f062729e",name:"size"},t("span",{key:"1257ad59cc7a5e292e1845d1e2d0a9a9e87446dc",slot:"label"},"Size"),t("smoothly-item",{key:"29e89d7040869bca4c33163765b1786d95d4c27d",value:"tiny"},"tiny"),t("smoothly-item",{key:"d6f63b9c23cc7cda3ece629c447973ec6963ef05",value:"small"},"small"),t("smoothly-item",{key:"f9d77054fad8b3b4a546b55502c05e7d2b2b5db7",value:"medium"},"medium"),t("smoothly-item",{key:"c77d11dc47be389fd98c9f23ca43cb9966afb00f",value:"large"},"large"),t("smoothly-input-clear",{key:"f931d095db60103f2f18cbf3d38f440e508ce29b",slot:"end"})),t("smoothly-input-range",{key:"8a8015fe74c617fa36fe9e55a2edf46eaaa401bd",name:"rotate",step:1,min:-180,max:180,value:0},"Rotate",t("smoothly-input-clear",{key:"ae84a4483bafd836106d7e120feaef64c837329a",slot:"end"}))),t("h1",{key:"8887068f17681fa3056bd6b1114a5bdc427cd295"},"Icons"),t("div",{key:"7d94cac9fc59953fe9c4ffe6a3f7c969e0300481",class:"icons"},[...u.Name.values.filter((e=>!this.display.filter||e.includes(this.display.filter))).map((e=>this.display.variant?`${e}-${this.display.variant}`:e)),...u.Logo.values.filter((e=>!this.display.filter||e.includes(this.display.filter)))].map((e=>t("smoothly-icon",{name:e,toolTip:e,"data-name":e,color:this.props.color,flip:this.props.flip,size:this.props.size,rotate:this.props.rotate,onClick:()=>{navigator.clipboard.writeText(e);this.notice.emit(L.succeeded(`Copied "${e}"`))}})))))}};Br.style=Wr;var Vr;(function(e){function t(e,o){if(e===o)return true;if(typeof e=="object"&&typeof o=="object"){const s=Object.keys(e);if(s.length==Object.keys(o).length&&s.every((s=>t(e[s],o[s]))))return true}return false}e.equal=t;function o(e,o){return!t(e,o)}e.notEqual=o})(Vr||(Vr={}));var Gr;(function(e){function t(e,t,a){const i=/([^.-@\s]+)/gi;return a=="backward"?o(e,t,i):s(e,t,i)}e.getWordBreakIndex=t;function o(e,t,o){let s=0;let a;while((a=o.exec(e))!=null){if(o.lastIndex-a[0].length<t)s=o.lastIndex-a[0].length;else break}return s}function s(e,t,o){let s=0;while(o.exec(e)!=null){s=o.lastIndex;if(o.lastIndex>t)break}o.lastIndex<=t&&(s=e.length);return s}})(Gr||(Gr={}));class qr{constructor(e,t){this.formatter=e;this.type=t;this.keydownHandlers={ArrowLeft:(e,t)=>e.ctrlKey||e.metaKey?t:this.moveCursor(e,t),ArrowRight:(e,t)=>e.ctrlKey||e.metaKey?t:this.moveCursor(e,t)};this.eventHandlers={beforeinput:{insertText:(e,t)=>this.insert(e,t),insertFromPaste:(e,t)=>this.insert(e,t),insertFromDrop:(e,t)=>this.insert(e,t),deleteContentBackward:(e,t)=>{e.preventDefault();if(t.selection.start==t.selection.end)this.select(t,t.selection.start-1,t.selection.end);this.erase(t);return t},deleteContentForward:(e,t)=>{e.preventDefault();if(t.selection.start==t.selection.end)this.select(t,t.selection.start,t.selection.end+1);this.erase(t);return t},deleteWordBackward:(e,t,o)=>{let s=t;if(this.type!="password"){e.preventDefault();s=this.deleteWord(o,"backward")}return s},deleteWordForward:(e,t,o)=>{let s=t;if(this.type!="password"){e.preventDefault();s=this.deleteWord(o,"forward")}return s},deleteByCut:(e,t)=>{this.erase(t);return t}},input:{insertReplacementText:(e,t)=>Object.assign(Object.assign({},t),{value:e.target.value}),insertCompositionText:(e,t)=>Object.assign(Object.assign({},t),{value:e.target.value}),deleteWordBackward:(e,t)=>this.type=="password"?Object.assign(Object.assign({},t),{value:e.target.value}):t,deleteWordForward:(e,t)=>this.type=="password"?Object.assign(Object.assign({},t),{value:e.target.value}):t,undefined:(e,t)=>Object.assign(Object.assign({},t),{value:e.target.value})}}}static create(e,t){let o;switch(e){case"price":o=Ct("price",t);break;default:o=Ct(e,t);break}return new qr(o||Ct("text"),e)}onKeyDown(e,t){var o,s,a,i;let n=t;const l=this.keydownHandlers[e.key];if(l){const r=e.target;t.selection.start=(o=r.selectionStart)!==null&&o!==void 0?o:t.selection.start;t.selection.end=(s=r.selectionEnd)!==null&&s!==void 0?s:t.selection.end;t.selection.direction=(a=r.selectionDirection)!==null&&a!==void 0?a:t.selection.direction;const c=l(e,this.unformatState(t),t);const d=this.partialFormatState(c);if(e.defaultPrevented){r.selectionStart=d.selection.start;r.selectionEnd=d.selection.end;r.selectionDirection=(i=d.selection.direction)!==null&&i!==void 0?i:null}n=d}return n}moveCursor(e,t){e.preventDefault();let o=gt.getCursor(t.selection);let s=gt.getStalker(t.selection);o=Math.min(Math.max(o+(e.key=="ArrowLeft"?-1:1),0),t.value.length);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);return t}onFocus(e,t){const o=this.partialFormatState(this.unformatState(t));const s=e.target;s.value=o.value;return o}onBlur(e,t){const o=this.createFormattedState(t);const s=e.target;s.value=o.value;return o}onInputEvent(e,t){var o,s,a,i,n,l,r;const c=e.target;t.selection.start=(o=c.selectionStart)!==null&&o!==void 0?o:t.selection.start;t.selection.end=(s=c.selectionEnd)!==null&&s!==void 0?s:t.selection.end;t.selection.direction=(a=c.selectionDirection)!==null&&a!==void 0?a:t.selection.direction;const d=e.type=="beforeinput"||e.type=="input"?(l=(n=(i=this.eventHandlers[e.type])[e.inputType])===null||n===void 0?void 0:n.call(i,e,this.unformatState(t),t))!==null&&l!==void 0?l:t:t;const h=this.partialFormatState(d);if(e.defaultPrevented){c.value=h.value;c.selectionStart=h.selection.start;c.selectionEnd=h.selection.end;c.selectionDirection=(r=h.selection.direction)!==null&&r!==void 0?r:null}return h}insert(e,t){e.preventDefault();if(typeof e.data=="string")for(const o of e.data)this.formatter.allowed(o,t)&&this.replace(t,o);return t}deleteWord(e,t){const o=gt.getCursor(e.selection);const s=Gr.getWordBreakIndex(e.value,o,t);const a=this.unformatState(Object.assign(Object.assign({},e),{selection:{start:Math.min(o,s),end:Math.max(o,s),direction:"none"}}));const i=a.value.substring(0,a.selection.start)+a.value.substring(a.selection.end);a.value=i;a.selection.end=a.selection.start;return a}select(e,t,o,s){e.selection.start=t;e.selection.end=o;s&&(e.selection.direction=s)}erase(e){this.replace(e,"")}replace(e,t){e.value=e.value.substring(0,e.selection.start)+t+e.value.substring(e.selection.end);e.selection.start=e.selection.start+t.length;e.selection.end=e.selection.start}unformatState(e){return kt.copy(this.formatter.unformat(vt.copy(e)))}partialFormatState(e){return this.formatter.partialFormat(vt.copy(e))}createFormattedState(e){return this.formatter.format(vt.copy(this.formatter.unformat(vt.copy(e))))}toString(e){return this.formatter.toString(e)}initialState(e){const t=this.toString(e)||"";const o=t.length;const s=this.createFormattedState({value:t,selection:{start:o,end:o,direction:"none"}});return s}setValue(e,t,o){const s=Object.assign(Object.assign({},t),{value:this.createFormattedState({value:this.formatter.toString(o),selection:t.selection}).value});e.value=s.value;return s}getValue(e){return this.formatter.fromString(this.unformatState(e).value)}setSelection(e,t,o,s){e.focus();e.selectionStart=o;e.selectionEnd=s;this.select(t,o,s);return t}}const Kr='.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>div.sc-smoothly-input{position:relative;width:100%;height:100%}.sc-smoothly-input-h>div.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>div.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>div.sc-smoothly-input>div.ghost.sc-smoothly-input>div.value.sc-smoothly-input{display:inline;pointer-events:none;opacity:0}.sc-smoothly-input-h>div.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>div.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>div.sc-smoothly-input>smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}[invalid].sc-smoothly-input-h>div.sc-smoothly-input>smoothly-icon.sc-smoothly-input{display:block;z-index:2;cursor:pointer}.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 Zr=Kr;const Jr=class{constructor(t){e(this,t);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",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.invalid=false;this.changed=false;this.errorMessage=undefined;this.initialValue=undefined;this.state=undefined}async getValue(){return this.stateHandler.getValue(this.state)}async setValue(e){if(this.inputElement)this.state=this.stateHandler.setValue(this.inputElement,this.state,e)}async setFocus(){var e;(e=this.inputElement)===null||e===void 0?void 0:e.focus()}async setSelection(e,t){if(this.inputElement)this.state=this.stateHandler.setSelection(this.inputElement,this.state,e,t<0?this.inputElement.value.length+t+1:t)}async listen(e,t){this.listener[e]=t;t(this)}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async clear(){if(!this.uneditable&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,undefined)}}async edit(e){!this.uneditable&&(this.readonly=!e)}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 smoothlyInputLoadHandler(e){hr.registerSubAction(this,e)}typeChange(){var e,t;switch(this.type){case"price":this.stateHandler=qr.create("price",{currency:this.currency,toInteger:this.toInteger});break;default:this.stateHandler=qr.create(this.type,D());break}this.state=this.stateHandler.initialState((e=this.value)!==null&&e!==void 0?e:(t=this.state)===null||t===void 0?void 0:t.value)}stateChange(){var e,t;this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}valueChange(e){const t=this.stateHandler.getValue(this.state);if(Vr.notEqual(t,e)&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,e);this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)})}}readonlyChange(){var e,t;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentWillLoad(){var e,t;this.typeChange();this.initialValue=this.value;this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentDidLoad(){if(this.inputElement)this.inputElement.value=this.state.value}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}onEvent(e){this.state=this.stateHandler.onInputEvent(e,this.state)}render(){var e,o,a,i,n,l,r,c,d,h;return t(s,{key:"d570a6df90112060966459ec070cc49670988162",class:{"has-value":((e=this.state)===null||e===void 0?void 0:e.value)!=undefined&&((o=this.state)===null||o===void 0?void 0:o.value)!=""},onclick:()=>{var e;return(e=this.inputElement)===null||e===void 0?void 0:e.focus()}},t("slot",{key:"99187b7b55f338947c3103d411069a6f5d04eaef",name:"start"}),t("div",{key:"f0ff9602882718a92f178b29f7e702bc94076876"},t("div",{key:"f6f9d41e20311c5d21748eb4f2ef4ba43cf85114",class:"ghost"},t("div",{key:"a14612b0fe61fe024951bea1b5168a95efb73e33",class:"value"},(a=this.state)===null||a===void 0?void 0:a.value),t("div",{key:"d99405f3f2d1d6f5f6e62907e52eb397fdb02d82",class:"remainder"},(i=this.state)===null||i===void 0?void 0:i.remainder)),t("input",{key:"fabb2edec07c6a48503013ddc72f44e342b09d93",ref:e=>this.inputElement=e,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:((d=this.state)===null||d===void 0?void 0:d.pattern)&&((h=this.state)===null||h===void 0?void 0:h.pattern.source),onKeyDown:e=>{this.state=this.stateHandler.onKeyDown(e,this.state);if(e.key=="Enter")this.smoothlyBlur.emit()},onFocus:e=>!this.readonly&&(this.state=this.stateHandler.onFocus(e,this.state)),onBlur:e=>{if(!this.readonly){const t=this.stateHandler.getValue(this.state);this.state=this.stateHandler.onBlur(e,this.state);this.smoothlyBlur.emit();this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)});if(Vr.notEqual(t,this.stateHandler.getValue(this.state)))this.smoothlyChange.emit({[this.name]:this.stateHandler.getValue(this.state)})}}}),t("label",{key:"5ab290082747dad2c901ad348a680f6b47c0b52c",class:"label float-on-focus",htmlFor:this.name},t("slot",{key:"0b2125cc9efef1d8e4bf279295429d0e40468080"})),t("smoothly-icon",{key:"75e73932b48bfebd2ba219c4ed02f0dc20d13d64",name:"alert-circle",color:"danger",fill:"clear",size:"small",toolTip:this.errorMessage})),t("slot",{key:"f7bef2a0a645b33d96d2ee5873c2de29b7f35124",name:"end"}))}get element(){return a(this)}static get watchers(){return{currency:["typeChange"],type:["typeChange"],state:["stateChange"],value:["valueChange"],readonly:["readonlyChange"]}}};Jr.style=Zr;const Xr='.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 Qr=Xr;const ec=class{constructor(t){e(this,t);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 e,t;this.initialValue=this.checked;!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.checked}async clear(){!this.disabled&&!this.readonly&&(this.checked=false)}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){this.checked=this.initialValue}async setInitialValue(){this.initialValue=this.checked;this.changed=false}async elementCheck(){var e,t;this.changed=this.initialValue!==this.checked;this.smoothlyInput.emit({[this.name]:await this.getValue()});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}click(){!this.disabled&&!this.readonly&&(this.checked=!this.checked)}render(){return t(s,{key:"70df4c0650ffe6d9bce09712909a376247d038a0",onMouseDown:e=>this.mouseDownPosition={x:e.clientX,y:e.clientY},onMouseUp:e=>{var t;return((t=this.mouseDownPosition)===null||t===void 0?void 0:t.x)==e.clientX&&this.mouseDownPosition.y==e.clientY&&this.click()}},t("input",{key:"092644e6b2fbf348f5dfc5cea42ab7874f90a1e9",type:"checkbox",checked:this.checked}),this.checked&&t("smoothly-icon",{key:"e3f90fee414b5c257f0ebf0f550817773ed02b0e",name:"checkmark-outline",size:"tiny"}),t("label",{key:"0073f250da12bd83b6daaefbca16a72101b74636"},t("slot",{key:"5478e8791c8b957afa7a0935c38a08420634bab2"})))}get element(){return a(this)}static get watchers(){return{checked:["elementCheck"]}}};ec.style=Qr;const tc='[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 oc=tc;const sc=class{constructor(t){e(this,t);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((e=>{if(rr.is(e)){this.parent=e;if(cr.Element.is(e)){e.listen("changed",(async e=>{if(hr.is(e)){this.display=!e.readonly&&(typeof e.defined=="boolean"?e.defined:Boolean(await e.getValue()))}if(e instanceof br){this.disabled=e.readonly||Object.values(e.value).filter((e=>e)).length<1;this.display=!e.readonly}}))}}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.clear()}render(){var e;return t(s,{key:"135be2560f0a4859b73f0ddd6a5572b0d404c939",title:this.tooltip},t("smoothly-button",{key:"9dc3e2381407021be2a9a464774943698dc8259d",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(e=this.fill)!==null&&e!==void 0?e:this.type=="input"?"clear":undefined},t("slot",{key:"81d4ed34b419fcdd6c94158dd01719487b790b01"}),t("smoothly-icon",{key:"2706b2b7c553e4778dbffad5654aa530b524eac8",name:"close",size:"tiny"})))}};sc.style=oc;const ac='.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 ic=ac;const nc=class{constructor(t){e(this,t);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(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,this.color=t}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e))}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}smoothlyInputLoadHandler(e){hr.registerSubAction(this,e)}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.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(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e;this.open=false}async reset(){this.value=this.initialValue;this.open=false}async setInitialValue(){this.initialValue=this.value;this.open=false}async valueChanged(){var e,t;this.changed=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}handleSwitchMode(e){e.stopPropagation();this.sliderMode=e.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(e){if(e!==this.value){if(e&&r.Hex.type.is(e)){if(this.sliderMode==="hsl"||this.rgb.r===undefined){this.rgb=r.Hex.toRGB(e)}if(this.sliderMode==="rgb"||this.hsl.h===undefined){this.hsl=r.RGB.toHSL(r.Hex.toRGB(e))}}else if(!e||!r.Hex.type.is(e)){this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined}}this.value=e}}sliderInputHandler(e){var t;e.stopPropagation();const o=Object.keys(e.detail)[0];let s=this.sliderMode==="rgb"?this.rgb:this.hsl;if(!(e.detail[o]===undefined)){for(const a of Object.keys(s))if(a===o)s=Object.assign(Object.assign({},s),{[a]:a==="s"||a==="l"?+((t=e.detail[o])!==null&&t!==void 0?t:0)*100:e.detail[o]});else if(s[a]===undefined)s=Object.assign(Object.assign({},s),{[a]: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 e,o,a,i,n,l;return t(s,{key:"5bf7bca75257855d0f475be05dae42392fa37b6b",style:{"--hexCode":this.value,"--rgb-r":`${Math.round((e=this.rgb.r)!==null&&e!==void 0?e:0)}`,"--rgb-g":`${Math.round((o=this.rgb.g)!==null&&o!==void 0?o:0)}`,"--rgb-b":`${Math.round((a=this.rgb.b)!==null&&a!==void 0?a:0)}`,"--hsl-h":`${Math.round((i=this.hsl.h)!==null&&i!==void 0?i: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`}},t("smoothly-input",{key:"aeb2e4dcf34ef5dde693d3a0627c24846e4d99d9",value:this.value,name:this.name,looks:undefined,color:this.color,type:"hex-color",showLabel:this.showLabel,readonly:this.readonly,onSmoothlyInput:e=>(e===null||e===void 0?void 0:e.stopPropagation(),this.hexInputHandler(e.detail[this.name]))},t("slot",{key:"1448f81dfefd2ab6141716bc4c2549e5ca2d60a7"})),t("div",{key:"ec83428a03f990ad59c391b8f4485463290ddb63",class:"color-sample"}),t("smoothly-icon",{key:"13cb09c74b7827943fb3d21dcdd6b3968f0a27c5",color:this.color,name:"options-outline",size:"small",onClick:()=>!this.readonly&&this.openDropdown()}),t("div",{key:"8aec96224aebcbd91420f42993e7aa919e06ef26"},t("slot",{key:"5658e43f77e2ffd56852322f9eae6ea1dfd94b5f",name:"end"})),this.open&&!this.readonly&&t("div",{key:"e9d944bdac33e77bc053f7e455ac1911e30c7531",class:"rgb-sliders"},t("smoothly-toggle-switch",{key:"5a7862b24b66257d0cb82608e38260b0f418c47b",title:`${this.sliderMode==="rgb"?"To HSL":"To RGB"}`,onSmoothlyToggleSwitchChange:e=>this.handleSwitchMode(e),size:"tiny",checkmark:false,selected:this.sliderMode==="hsl"}),Object.entries(this.rgb).map((([e,o])=>t("smoothly-input-range",{style:this.sliderMode!="rgb"?{display:"none"}:{},name:e,min:0,max:255,color:undefined,type:"text",value:o,step:1,outputSide:"right",onSmoothlyInput:e=>this.sliderInputHandler(e),label:e.toUpperCase()}))),Object.entries(this.hsl).map((([e,o])=>t("smoothly-input-range",{style:this.sliderMode!="hsl"?{display:"none"}:{},name:e,min:0,max:e==="h"?359:1,color:undefined,type:e==="s"||e==="l"?"percent":"text",value:(e==="s"||e==="l")&&o?o/100:o,step:e==="s"||e==="l"?.01:1,outputSide:"right",onSmoothlyInput:e=>this.sliderInputHandler(e),label:e.toUpperCase()})))))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"]}}};nc.style=ic;const lc=class{constructor(t){e(this,t)}render(){return t(s,{key:"9c124314b12776a21c4fb18f061774ff2cf46985"},t("h2",{key:"63ed15658bc3cdeec16a69b154043256d1a76d17"},"Color"),t("smoothly-input-color",{key:"1d0df5f73becd460e39518ef5ec812c94875b59a",name:"color"},"Choose color"))}};lc.style="style.css";const rc='.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 cc=rc;const dc=class{constructor(t){e(this,t);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 e,t;this.setInitialValue();this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async listen(e,t){this.listener[e]=t;t(this)}async clear(){this.value=undefined}onStart(e){var t,o;this.smoothlyValueChange.emit(e);this.smoothlyInput.emit({[this.name]:e});(o=(t=this.listener).changed)===null||o===void 0?void 0:o.call(t,this)}smoothlyInputHandler(e){if(e.target!=this.element)e.stopPropagation()}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}smoothlyInputLoadHandler(e){hr.registerSubAction(this,e)}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async edit(e){this.readonly=!e}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.changed=false}dateSetHandler(e){this.open=false;e.stopPropagation()}render(){return t(s,{key:"d0aa2669b708dd54eb52c3c2c021d5d3dd243a75"},t("smoothly-input",{key:"5546c946cb664ac1ae41b882bced85ea2f653792",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:e=>e.stopPropagation(),onSmoothlyInput:e=>{e.stopPropagation();this.value=e.detail[this.name]}},t("slot",{key:"99977a8ca529f4cf48c170d01d9fd55bd78f2a04"})),t("span",{key:"c6bef02818d5f07c426c6584ede08a488a65d260",class:"icons"},t("slot",{key:"956733ea747dbf023ebab46936ed92da170c7b95",name:"end"})),this.open&&!this.readonly&&t("nav",{key:"e9c4a2034cc79163972d78300f1c29df2883bc3d"},t("smoothly-calendar",{key:"8b7d430ef9daf4a4c6475b1384813b516bd9b706",doubleInput:false,value:this.value,onSmoothlyValueChange:e=>{this.value=e.detail;e.stopPropagation()},max:this.max,min:this.min},t("div",{key:"e2239089b7e57b9841dbfe192959e78bc8d4fe38",slot:"year-label"},t("slot",{key:"efa0ea2ec671291aa801db4114ea015c50d9f6a6",name:"year-label"})),t("div",{key:"f026d9a5e9aa30eb7ecf9426978bc6cbb289c321",slot:"month-label"},t("slot",{key:"9367a4dd4b80e1ab6568005d394569687cbc652f",name:"month-label"})))))}get element(){return a(this)}static get watchers(){return{value:["onStart"]}}};dc.style=cc;const hc='.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;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 mc=hc;const yc=class{constructor(t){e(this,t);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 e,t;this.setInitialValue();this.updateValue();this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));this.start&&this.end&&this.smoothlyInput.emit({[this.name]:{start:this.start,end:this.end}});!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}inputHandler(e){const t="dateRangeInput"in e&&typeof e.dateRangeInput=="string"&&e.dateRangeInput.split(" - ");if(t&&t.length==2&&k.is(t[0])&&k.is(t[1])){this.start=t[0];this.end=t[1]}}updateValue(){this.value=this.start&&this.end?{start:this.start,end:this.end}:undefined}valueChanged(){var e,t;this.changed=this.initialStart!=this.start||this.initialEnd!=this.end;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}smoothlyInputLoadHandler(e){hr.registerSubAction(this,e)}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.start&&this.end?{start:this.start,end:this.end}:undefined}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}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 e=navigator.language;return t(s,{key:"8d0c83ab36b5392715311a6419d1edacfdede8ca",tabindex:0},t("section",{key:"99d6dda96a17e16314434a1819317a7d2b3e8acc",onClick:()=>!this.readonly&&(this.open=!this.open)},t("smoothly-input",{key:"42eedb4b26f847249b109342ffd60ef2aba62f06",type:"text",name:"dateRangeInput",readonly:this.readonly,value:this.start&&this.end?`${zt(this.start,"date",e)} — ${zt(this.end,"date",e)}`:undefined,invalid:this.invalid,placeholder:this.placeholder,showLabel:this.showLabel,onSmoothlyInput:e=>{e.stopPropagation();this.inputHandler(e.detail)}},t("slot",{key:"18df7411ef4fd886dfddd8352eaa7ad02f7880d6"}))),t("span",{key:"a3163b9d70827d440bfcd27ba5a3cf6d20d873ac",class:"icons"},t("slot",{key:"e74a80a35e7f3dbb1bb314df9a226c9b2d46a428",name:"end"})),this.open&&t("nav",{key:"d33e76fdc7030ab08592c4d1c8db6d5365b59fcb"},t("smoothly-calendar",{key:"d122e52bb71a2a9faa37f371b4340c1e25030ce3",doubleInput:true,onSmoothlyValueChange:e=>e.stopPropagation(),onSmoothlyStartChange:e=>{e.stopPropagation();this.start=e.detail},onSmoothlyEndChange:e=>{e.stopPropagation();this.end=e.detail},onSmoothlyDateSet:e=>e.stopPropagation(),onSmoothlyDateRangeSet:e=>{e.stopPropagation();this.open=false;this.smoothlyInput.emit({[this.name]:e.detail})},value:this.start,start:this.start,end:this.end,max:this.max,min:this.min})))}get element(){return a(this)}static get watchers(){return{start:["updateValue"],end:["updateValue"],value:["valueChanged"]}}};yc.style=mc;const bc=".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 uc=bc;const fc=class{constructor(t){e(this,t);this.duration={hours:8};this.alphanumeric="!@##"}render(){return t(s,{key:"4d22468a080d1988e357ceb32b5df876a4c6db20"},t("smoothly-input-demo-standard",{key:"fc7fb5262f36fd7f953751fcca8b5056f08eb858"}),t("div",{key:"e7b88f15dc9b8099bb60a9e336214e3b7b9f57db",class:"inputs"},t("h2",{key:"38b73daf079236b55df1c6eb8a9e62039d636cd4"},"Calendar"),t("smoothly-input-date",{key:"d0515c4d2d38fb373c9df8ce388df33667b40846",name:"some-date"},"Calendar"),t("h2",{key:"c2cc92d5fa683da3ac36918b7089e4d562bc3236"},"Date Range"),t("smoothly-input-date-range",{key:"01c970d18df033178939d14a7d690fc6eef35570",name:"testing",start:k.now(),end:k.nextMonth(k.now()),min:"2021-10-01",max:"2025-01-31"}),t("smoothly-input-date-range",{key:"7470398fa98ccb00d749bcbc5f8370234f1d5ab7",name:"testing",start:k.now(),end:k.nextMonth(k.now()),min:"2021-10-10",max:"2024-12-30"},t("smoothly-input-reset",{key:"ec7d4687d0e66aac5110a61f4db380f9aa677f30",slot:"end",size:"icon"})),t("smoothly-input-date-range",{key:"0c3d14c0cb2773bd20a8f894523a9f00b3da7d3d",looks:"grid",start:k.now(),end:k.nextMonth(k.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--smoothly-input-border-radius":"0.5rem"}},t("smoothly-input-clear",{key:"03ea6127b0abe9f8a99e65c3e9c0aee7f57b35d9",slot:"end",size:"icon"})),t("h2",{key:"d9f827401eac78533a5797f184971b0d9e45a1e7"},"Date"),t("smoothly-input-date",{key:"8afba635563e6833d94a0085b1623aeeb9e1cf00"},"Date"),t("smoothly-input-date",{key:"43084ccfa8d45e94e0b54d9bb18f9b3540c09a62",showLabel:false,value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),t("smoothly-input-date",{key:"884a35070dd150e600b40deeb611af0363f2b07a",value:"2021-10-28"},"Date",t("smoothly-input-reset",{key:"09171749b51c63cc8b6c319114c0bd7d570af033",slot:"end",size:"icon"})),t("smoothly-input-date",{key:"ee0f606241ecec42b70e4f92db3100acf8b1730d",value:"2021-10-28"},"Date",t("smoothly-input-clear",{key:"976e9376f119bc3e8196ef32177ca898362c0c99",slot:"end",size:"icon"})),t("h2",{key:"055cd19bcf92b14d77818a25b07a737da282c85f"},"Select"),t("div",{key:"7856e723310021883018078276ad28d38a76e900",class:"select-div"},t("smoothly-input-select",{key:"b147b8137ae583d9c3df8be484fcc5fa3034034a",name:"select-dessert",looks:"border"},t("label",{key:"cba34105b7c98d4956e4a9ec7931ae6bed50d0e7",slot:"label"},"Select with clear button"),t("smoothly-item",{key:"d085fb3d7667b8baf785660868e57e81603053b4",value:"1"},"Ice cream"),t("smoothly-item",{key:"cc9a94fcdd9270e89572a72f258ca1c70640c3a7",value:"2"},"Sponge cake"),t("smoothly-item",{key:"624c9e9ef3f76ceddb3eb54348739304fc537297",value:"3"},"Cookie"),t("smoothly-item",{key:"bfc710e98f216544dc76a68e602f0c16be88a599",value:"4"},"Croissant"),t("smoothly-item",{key:"ffc432e8854cc83883e0169cadafd19aff635cb9",value:"5"},"Chocolate fondue"),t("smoothly-input-clear",{key:"2c6ee00939da166c9ce3cb4c72f204e9c88a882a",size:"icon",slot:"end"})),t("smoothly-input-select",{key:"5592d116149f40ab8fc234276aef37d9e38e42a8",multiple:true,name:"select-dessert-multiple",looks:"border"},t("label",{key:"784bf8122cdcc84641ab9424f7092ad9c6ee5eba",slot:"label"},"Select multiple with reset button"),t("smoothly-item",{key:"4dc7f7b95a38860bad0888999f19ad38f66f414a",value:"ice cream"},"Ice cream"),t("smoothly-item",{key:"ad2b235845e8b1490fb2fb9b097e637724663fb4",value:"sponge cake"},"Sponge cake"),t("smoothly-item",{key:"aaf053c467477856fea93b48b61c899ad26b4a02",selected:true,value:"cookie"},"Cookie"),t("smoothly-item",{key:"75977992ad2bb03d68b43bd72f387917391a4201",value:"croissant"},"Croissant"),t("smoothly-item",{key:"26e4d2b1796807ebe3d68a39893096346669bd62",selected:true,value:"chocolate fondue"},"Chocolate fondue"),t("smoothly-input-reset",{key:"f3417f59ced46f59ac7262af4a8a065367732542",size:"icon",slot:"end"})),t("smoothly-input-select",{key:"906591c99263c695520f6f0c09d0d291e0a19bd4",name:"spirit-animals",looks:"border",mutable:true},t("label",{key:"1f26bb3c7429fea49657d60502e5a75439cafea9",slot:"label"},"Select or add new options"),t("smoothly-item",{key:"21698bc033c9cfa8059344213b1e714b949f2bc7",value:"manatee"},"Manatee"),t("smoothly-item",{key:"2728237616137cacc93a23ffac8427ef5093dd06",selected:true,value:"cthulu"},"Cthulu")),t("smoothly-input-select",{key:"512228c9a18f1b9f7acbad35db98eaadcc5a394e",name:"select-icon",clearable:false,showSelected:false},t("smoothly-item",{key:"b0305ab339117b64d8804b0e8c911b35c73daeb2",value:"folder",selected:true},t("smoothly-icon",{key:"778c15a8e46b9f5970b64a26d11f376205294075",size:"small",name:"folder-outline"})),t("smoothly-item",{key:"fec4a02325b69e05095690e9f058a011a056a643",value:"camera"},t("smoothly-icon",{key:"306687342fe6eae48619bb38721dc9cbef1c3cf5",size:"small",name:"camera-outline"}))),t("smoothly-input-select",{key:"36b1d351540b475aa68d78e265cf0f2d7a190990",ordered:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},t("label",{key:"d9f0f8fc58fa3645267bb2c3299e28405e10f42e",slot:"label"},"Alphabet ordered select"),Array.from({length:26}).map(((e,t)=>String.fromCharCode(t+65))).map((e=>t("smoothly-item",{value:e,selected:e=="H"},e)))),t("smoothly-input-select",{key:"5020ba6265bc99779adc5650e96e9dabfc10e075",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},t("label",{key:"24554f38718cf6d7004d259a3ba10ad4fb9f80d4",slot:"label"},"Month multiple select"),t("smoothly-item",{key:"b4963b60050f9efae657feac6e5b571705762ec8",value:"1"},"January"),t("smoothly-item",{key:"dd6e1ff7e14942c7b4ca1a64f338c9cf9c4e2fe1",value:"2"},"February"),t("smoothly-item",{key:"900f59510c01bea81d6781422b168a94c4613982",value:"3"},"March"),t("smoothly-item",{key:"1f2ff24ab65b57f691e84315294432ad50770ce4",value:"4"},"April"),t("smoothly-item",{key:"5cb75032b63fc55fc67097658e4f69ad4136107b",value:"5"},"May"),t("smoothly-item",{key:"9021507682e64aab64ab5de05fa4fce121111525",value:"6"},"June"),t("smoothly-item",{key:"a75a032f711d2ea85e201257dc31477687b71e83",value:"7"},"July"),t("smoothly-item",{key:"3f1866f398b3dc53b922e6e5e04b9462ee915fd1",value:"8"},"August"),t("smoothly-item",{key:"a64b2ffece74644ca9a8f9250eb7a4d1d0b706b1",value:"9"},"September"),t("smoothly-item",{key:"90c89adff7c4ff81e25420bea5f513b0f5f6af3f",value:"10"},"October"),t("smoothly-item",{key:"7f62a1baccaa22c0d922b6efd66ac7cd3fecca62",value:"11"},"November"),t("smoothly-item",{key:"653b0c116b9a5b27f1192ebe087acb130fe5f50b",value:"12"},"December"))),t("h2",{key:"f99e5afaa18b4c2369abf1d9a619b34ee805fc8d"},"Duration"),t("smoothly-input",{key:"9e93a731fc53e4a69e5cd9a5c07041160e43516f",name:"duration",type:"duration",placeholder:"hh:mm",value:this.duration,onSmoothlyInput:e=>{const t=e.detail.duration;this.duration=t}},"Duration"),t("smoothly-input",{key:"8ef85b5978a8a326278a36a592a926f6eaab6281",name:"duration",type:"duration",value:this.duration,placeholder:"-hh:mm",onSmoothlyInput:e=>{const t=e.detail.duration;this.duration=t}},"Duration"),t("h2",{key:"8eb690e348aea96c400404e7992472edac18795a"},"Invalid text with warning icon and tooltip"),t("smoothly-input",{key:"08b42135cc435ddbafb2131d9772accb42c5f4f1",name:"alphanumeric",invalid:!/^[a-zA-Z0-9]+$/.test(this.alphanumeric),errorMessage:"Only alphanumeric allowed",value:this.alphanumeric,onSmoothlyInput:e=>this.alphanumeric=e.detail.alphanumeric},"Alphanumeric"),t("h2",{key:"87aad539e0890e9e5eed23d95358de520aff3317"},"Identifiers"),t("smoothly-input",{key:"3a9e58436f5ab310fa00bea3aca46ecab5054025",type:"identifier-code"},"Code"),t("smoothly-input",{key:"6ac9a05ecc748e2dbfbc59b4991d484447ef1eee",type:"identifier-attribute"},"Attribute"),t("smoothly-input",{key:"fbf58d1f86bf1b59a54dbae539d4b4ec7fcb5319",type:"identifier-snake"},"Snake"),t("smoothly-input",{key:"284bd28fff1e622993e6c83065d08821676238e3",type:"identifier-pascal"},"Pascal"),t("smoothly-input",{key:"198bb3b455345ef55300defa7411d96af5156985",type:"identifier-camel"},"Camel"),t("h2",{key:"57326ca3da86d81501ba335b5b0e60ff8b322ef3"},"Input Alternatives"),t("smoothly-input",{key:"de23357ca03d0071ccfa4162bb460352c16c5960",type:"text",name:"name.last",onSmoothlyChange:e=>console.log("smoothly change event")},t("smoothly-icon",{key:"ed79db703b001d8f00599e2798c9189aef87be86",name:"checkmark-circle",slot:"start"}),"First Name"),t("smoothly-input",{key:"cebfd6b49ddd4dd79e0bc8126a77f1247ae4c88e",type:"text",name:"name.first",onSmoothlyChange:e=>console.log("smoothly change event")},"Last Name",t("smoothly-icon",{key:"c5eeb09907182ee27f89b6f04ac085a63614fab2",name:"checkmark-circle",slot:"end"})),t("smoothly-input",{key:"ab2ae9b2cea41d42bb7f07a22118ffcb6a1a0672",type:"text",name:"name.first",placeholder:"Smith",onSmoothlyChange:e=>console.log("smoothly change event")},"Last Name",t("smoothly-icon",{key:"6e4c13216c7b0e363f47ecccea6bd9f63a6340cc",name:"checkmark-circle",slot:"end"})),t("smoothly-input",{key:"3d284b7eb0bef9446f0c72a4a45fce496db0f398",placeholder:"test"}),t("smoothly-input-submit",{key:"1cc1c632686e13887b944ff8404c911ee1097062",slot:"submit",fill:"solid",onSubmit:e=>alert(e),color:"success"}),t("h4",{key:"96f73750c93ebb6f4a50499207a3a1a0d9076073"},"Smoothly checkboxes"),t("div",{key:"aa4929a5917cea5bcf8961d5f313805fedd9e109",class:"checkbox-group"},t("smoothly-input-checkbox",{key:"0f907e9eb97671d69efd0cadf0a4b1b002735b68",disabled:true,name:"first-checkbox"},t("smoothly-icon",{key:"25f477455d12951d0033c06f28a811a6f3255973",name:"checkmark-circle",slot:"start",size:"tiny"}),"First"),t("smoothly-input-checkbox",{key:"962bc40f831ddcc142ca159b26a1e2fe555aab89",name:"second-checkbox",checked:true},t("smoothly-icon",{key:"c439fe413fb5341c670c3f7b76e7c2945d021f34",name:"checkmark-circle",slot:"start",size:"tiny"}),"second",t("smoothly-input-clear",{key:"b858dec527a132f04e47468fd787757598978f53",size:"icon",slot:"end"})),t("smoothly-input-checkbox",{key:"38657e43d5d220e0bd839ab61bf3a1a0179f4df1",name:"third-checkbox"},"3rd")),t("h4",{key:"ec14c6fce7abdd68c29448feba56d19e64385ae0"},"Smoothly Radio Buttons"),t("smoothly-input-radio",{key:"2e478fb1582c26ef129ff6828d61598195f1803d",clearable:true,name:"radioFirstInput"},t("smoothly-icon",{key:"c940cf5f00400fd7d44907ffa14e7ac37628c32f",name:"checkmark-circle",slot:"start"}),t("label",{key:"fa0a5525d6c1bfff1eb43a4e9b05ead8560617a6",slot:"label"},"Clearable"),t("smoothly-input-radio-item",{key:"61241218e980c5709132079759b1b84c27e2ae98",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"91e2ec2e00a856e63c3d39075751dea0347c1cd4",selected:true,value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"65e6dc162f6c63e2b3c23b2be07a77f1c25854b3",value:"third"},"Label 3"),t("smoothly-input-clear",{key:"394c9e6f5c267f756008170e51c66552632883aa",size:"icon",slot:"end"})),t("smoothly-input-radio",{key:"7a8ad22f29f4b8f835d5ac6579a053547e408102",name:"radioSecondInput"},t("label",{key:"8ee8c01660d6cc0d29288b2eca40316fc6038d1a",slot:"label"},"Not clearable"),t("smoothly-input-radio-item",{key:"db0299fefc79b9467c2949c0a201dab87f08dbe9",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"11e05b7d42219a3053fa25521812244f2f0e7428",value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"f725a62deff05d78b6ca6cabefa4343193c7589f",value:"third"},"Label 3"),t("smoothly-input-radio-item",{key:"85d184fca2e5f1283f0775ebb544060d3bc8b8d6",value:"fourth"},"Label 4"),t("smoothly-input-radio-item",{key:"7d8aaafc412c456769667ed7174b86e025ce3ec0",value:"fifth"},"Label 5"),t("smoothly-input-radio-item",{key:"5b22de409c7c057c6d2e3b4bc5ac20e5313ac3ea",value:"sixth"},"Label 6")),t("smoothly-input-range-demo",{key:"8d51603cec738f75d64420c892d4f3ed70e56c0e"}),t("smoothly-input-color-demo",{key:"e5b826ed6916c0b1ed09ed126aa0d22cedaa0c13"}),t("smoothly-input-price-demo",{key:"9471cc31ced0f7a56855e9f31467bbfae382590d"}),t("smoothly-back-to-top",{key:"0ac3807cb7f8e57a286b8ee4a0beedbd6a0e5704"})))}};fc.style=uc;const pc='.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 gc=pc;const kc=class{constructor(t){e(this,t);this.duration={hours:8};this.options={showLabel:true}}connectedCallback(){this.updateInputHeightText()}componentDidRender(){this.updateInputHeightText()}updateInputHeightText(){const e=Number(getComputedStyle(document.documentElement).fontSize.replace("px",""));this.element.querySelectorAll(".height").forEach((t=>{const o=t.clientHeight;t.innerHTML=`<b>${o/e}rem</b> (${o}pixels)`}))}render(){const e=this.options.placeholder?"placeholder":undefined;return t(s,{key:"044fa8c4b9d8f5e7bfc3e57e4ec8c5549da8a011",class:{vertical:!!this.options.vertical}},t("div",{key:"3662aa7286e3c71ee96b38446ed734c370ad11fe",class:"description"},t("h2",{key:"831d2d5567a4a520b02730521c8e81a2973eaf5c"},"Input Standard"),t("p",{key:"05480bcb96442c64da4323f707781d27e3aae2ee"},"Height of input should be ",t("code",{key:"6c6c7ac45af02f09c11b1a4d62a5164e426a94ec"},"3rem")," including border. This is should result in a 48 pixel height at 100% zoom, assuming a root font-size of 16 pixels."),t("smoothly-form",{key:"0ce7d4bd476dfd902f835e858ab5f6ebe645a16f",looks:"grid",onSmoothlyFormInput:e=>this.options=e.detail},t("smoothly-input-select",{key:"25f2571c6d3f5ddbc9efd0899756024010e2773d",name:"looks"},t("span",{key:"ec4db36ee38f76903ff8df4379af65f2f0766646",slot:"label"},"Looks"),dr.types.map((e=>t("smoothly-item",{value:e},e)))),t("smoothly-input-checkbox",{key:"ebb2fc0c074c89af17e6df50d38a4caef91024bf",name:"readonly"},"Readonly"),t("smoothly-input-select",{key:"bd5cef034392cebc5c6000cd43b7c473368421b0",name:"color"},t("span",{key:"b6722cf63cb9f995f829704c21833e20d5d31232",slot:"label"},"Color"),r.types.map((e=>t("smoothly-item",{value:e},t("span",{color:e},e)))),t("smoothly-input-clear",{key:"d29d56ccb184ff45572f0b67e6a341a9a1ba2825",slot:"end"})),t("smoothly-input-checkbox",{key:"83d811121a1be17b1fed20014014e5c3c556881e",name:"vertical"},"Vertical Layout"),t("smoothly-input-checkbox",{key:"68aac64ededa8b02b761f3cd56cb3d6f31b45bdb",name:"showLabel",checked:this.options.showLabel},"Show Label"),t("smoothly-input-checkbox",{key:"128e2f5022cf0cedc5d2f69195e16458b9fc8c61",name:"placeholder",checked:this.options.placeholder},"Placeholder"),t("smoothly-input-range",{key:"787c162c2497211a78a0b68d44f6329d0858371b",label:"Border Radius (rem)",name:"borderRadius",value:this.options.borderRadius,min:0,max:2,step:.25}))),t("div",{key:"35c08c03e943a73a875ed852d739d738db13fabf",class:"input-wrapper",style:{"--smoothly-input-border-radius":`${this.options.borderRadius}rem`}},t("div",{key:"a0564063144d6db7656baff3776990e1ddf7fe70",class:"width"},"100%"),t("div",{key:"af1770e8636f7f4864b1e9f8d79d21310fc6d5a5",class:"left-padding"},"0.5rem - left padding"),t("smoothly-input",{key:"684c9e2fb3f232b3a13b7f87dda970a273e06ffe",name:"text",looks:this.options.looks,placeholder:e,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"56e2def6fb71ab72d3a3f156d674c4f0130b56d8"},"Text"),t("smoothly-input-clear",{key:"7eba7d6a4953d6198e1fda0ed2fdadc97b1ea3c1",slot:"end"})),t("div",{key:"78a7aae500ccc6197dfc64190a8b5e282adbdb35",class:"height"}),t("smoothly-input-select",{key:"064cbc97f54d9efea21c318c5598c2ea9e6a321e",name:"month",looks:this.options.looks,placeholder:e,readonly:this.options.readonly,color:this.options.color},this.options.showLabel&&t("label",{key:"ca332bfd4e40666e4454a9b10115f8adc345f6be",slot:"label"},"Select"),t("smoothly-item",{key:"c93d3bdbb3f77f4599552638a535bec594847468",value:"1"},"January"),t("smoothly-item",{key:"0c3d8ecce9c8dff3fe3ac0c13fcbc1d85a8a3d84",value:"2"},"February"),t("smoothly-item",{key:"47f2a838b2f26507d7f52559f5655dd0f6796b1d",value:"3"},"March"),t("smoothly-item",{key:"42a4dfe12c71630f4896003dde6b8acd96b02655",value:"4"},"April"),t("smoothly-item",{key:"4bb5861ee318b39b3ac1fa35ecd4f9b640a8229e",value:"5"},"May"),t("smoothly-item",{key:"3c43648f442f21c2856d4220aef7f1f622c70507",value:"6"},"June"),t("smoothly-item",{key:"d470ea78848fb51a989655d6de6c722cd2aaa9e8",value:"7"},"July"),t("smoothly-item",{key:"5bf658eb99e5d7ea1db8013de92f23e381d2f8b0",value:"8"},"August"),t("smoothly-item",{key:"d494ba5400321c08a46bb542717f734d49d5417d",value:"9"},"September"),t("smoothly-item",{key:"c75a04e1aaef26dc8ab3869671db48d2e39c097c",value:"10"},"October"),t("smoothly-item",{key:"9c996849ae914f908d0719a7cf08415b7509e951",value:"11"},"November"),t("smoothly-item",{key:"1bbdcd5845e428fbfeb91d773c0198ffb9c1cc60",value:"12"},"December"),t("smoothly-input-clear",{key:"cc274431a7236faef0147eef2c29c70403ae44b5",slot:"end"})),t("div",{key:"965e84ff3436d07777084992f391349e3e4e0969",class:"height"}),t("smoothly-input-checkbox",{key:"e25d58dee03f22d22708da8a26783944da473b19",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color},"Check"),t("div",{key:"f429538b28976aa446799e160a909f7b57c69ce9",class:"height"}),t("smoothly-input-radio",{key:"9854849f5c559481ca4c2b9e94f3b690f3818d0b",name:"radio",clearable:true,looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("label",{key:"318f3a3e48ce06b6af452f717cdc63ca1e3257c7",slot:"label"},"Radio"),t("smoothly-input-radio-item",{key:"cb47131f2fbbca8f080277e9185a726f59a8f831",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"221e96bbddd2cfff9f587d1ff4fb1b87cae9bc9f",selected:true,value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"e55e72b32046dd8ad8a7cfcb1c851a98ecc90fec",value:"third"},"Label 3"),t("smoothly-input-clear",{key:"091bd8d97c1181c7cc279e1d3ae9308734408f07",slot:"end"})),t("div",{key:"db06d7584c5aa208ee858e53f9ed5d0c5e0d95ba",class:"height"}),t("smoothly-input-file",{key:"39b93bde42d37989305380fba2979d33eded3156",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,placeholder:e,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"9c6247a33d43de0e5ed649515f33109caeacbe06",slot:"label"},"File"),t("smoothly-input-clear",{key:"1671d4ce52d245ee1e4cb0985e74dfc358e7c881",slot:"end"})),t("div",{key:"07677318b0ebcb654d4cdb53440380e1ad37e7a0",class:"height"}),t("smoothly-input-range",{key:"4e284dec0fc57a37eb4ab06d32d01d10ed3a5c6f",name:"range",label:this.options.showLabel?"Range":undefined,looks:this.options.looks,readonly:this.options.readonly,color:this.options.color},t("smoothly-input-clear",{key:"cdbb48fd450975c3781c6b95bad242634fa080c1",slot:"end"})),t("div",{key:"c24c1881a74e91831c2e4559ae13505d1027d376",class:"height"}),t("smoothly-input-color",{key:"b617db1b66a73dfd298aa6a17b48b0a537eec64a",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"21e5c0b4f020c63031da90d7668f70d659eb2bd4"},"Color"),t("smoothly-input-clear",{key:"33b518103b68f12837a4ee25d5f72ccfcbb3b8e7",slot:"end"})),t("div",{key:"e7706aa12b6cfabc23ae1d9499641d5b3df6bda2",class:"height"}),t("smoothly-input-date",{key:"47c0964845648b7ff59eafc7d9080692b11f8614",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"0a85480963e8f78279a9ee5751643576de0c7c26"},"Date"),t("smoothly-input-clear",{key:"3f1b5355882e84c53bfd571be1ee73754f257bcc",slot:"end"})),t("div",{key:"35a82c5f250b6e4d24ece68a0b02c01e53272441",class:"height"}),t("smoothly-input-date-range",{key:"8c06cad779884cadeaaced5c5f934b16776fca70",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,placeholder:e,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"a08d77047d018b960f60754359229a3681f2ce03"},"Date Range"),t("smoothly-input-clear",{key:"8ba119dc695c705749677ff7eafa7bde2d5eeb5f",slot:"end"})),t("div",{key:"216ac78045d830384411de3d5d2f4ee3bd4bca41",class:"height"}),t("div",{key:"24241b7d95382f3a3cd509e86d4a784195c825ff",class:{"guide-lines":true,"show-label":!!this.options.showLabel}},this.options.showLabel?"Aligned labels & values":"Center values")))}get element(){return a(this)}};kc.style=gc;const vc='[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 xc=vc;const wc=class{constructor(t){e(this,t);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((e=>{if(cr.type.is(e)){this.parent=e;e.listen("changed",(async e=>{this.display=e.readonly}))}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.edit(true)}render(){var e;return t(s,{key:"0b15d6fa5f06856dcf50fa85e6c70574cfb8f22e",title:this.toolTip},t("smoothly-button",{key:"ac8f4e69cc564c1c580b8d9650626f9c34486d0e",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(e=this.fill)!==null&&e!==void 0?e:this.type=="input"?"clear":undefined},t("slot",{key:"dedf30644a1b42cfdf39be7df53094457da4e698"}),t("smoothly-icon",{key:"f1237a29936486379e732f82f47595643e45596f",class:"default",name:"create-outline",size:"tiny"})))}};wc.style=xc;const Sc='.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 Cc=Sc;const zc=class{constructor(t){e(this,t);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(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e))}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}smoothlyInputLoadHandler(e){hr.registerSubAction(this,e)}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}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(e){var t,o,s;e.stopPropagation();if((o=(t=this.input)===null||t===void 0?void 0:t.files)===null||o===void 0?void 0:o.length)this.value=(s=this.input)===null||s===void 0?void 0:s.files[0]}dropHandler(e){var t;e.preventDefault();e.stopPropagation();this.dragging=false;if((t=e.dataTransfer)===null||t===void 0?void 0:t.files.length)this.value=e.dataTransfer.files[0]}clickHandler(e){var t;if(!this.readonly&&!e.composedPath().find((e=>e==this.input))){(t=this.input)===null||t===void 0?void 0:t.click()}}dragOverHandler(e){e.preventDefault();e.stopPropagation()}dragEnterHandler(e){e.preventDefault();!this.readonly&&(this.dragging=true)}dragLeaveHandler(e){e.stopPropagation();this.dragging=false}render(){var e,o,a;return t(s,{key:"6a8f4866c1fe41c863df77fc56867ea9ef894a1d",class:{dragging:this.dragging,"has-value":!!this.value},tabindex:0,onClick:e=>this.clickHandler(e),onDragOver:e=>this.dragOverHandler(e),onDragEnter:e=>this.dragEnterHandler(e)},t("label",{key:"1f4e0aa503fa8c7434d782e6255e270615d6dcba"},t("slot",{key:"40c4a96f6e5140cb0c42bfc3cbc2a76c3d8bd430",name:"label"})),t("div",{key:"ad4a5eba13f8743a7454d92c699a9356d8f7f1b8",class:"input"},t("smoothly-button",{key:"1ca0073fdfbaefc1c95cff97198ee0a846902857",color:this.color,fill:"clear",size:"flexible"},t("slot",{key:"8504273921a1b3ff6795592ccb4ad7a2d9242f84",name:"button"})),t("span",{key:"2d1d1293ec1d7621375598821e6e9607f45139bb"},(o=(e=this.value)===null||e===void 0?void 0:e.name)!==null&&o!==void 0?o:this.placeholder),t("div",{key:"b877d7af3e3cd96238b95e7b3599087c6e09b7d8",class:"drag-overlay",onDrop:e=>this.dropHandler(e),onDragLeave:e=>this.dragLeaveHandler(e)},t("smoothly-icon",{key:"816248a36d060bd217a01bd6b6dd4b5e9b7560fe",name:"document-attach-outline"})),t("input",{key:"cbe1e61cd982f89843f91652c728ff2c95cd4a00",ref:e=>this.input=e,type:"file",capture:this.camera=="back"?"environment":"user",accept:(a=this.accept)!==null&&a!==void 0?a:!this.camera?undefined:"image/jpeg",files:this.files,onInput:e=>this.inputHandler(e)})),t("div",{key:"dc9dde4d839683bed42ede9090308921479dc84c",class:"end",onClick:e=>e.stopPropagation()},t("slot",{key:"9ac84050b1dd036501fcfe89ccb59be8a3ac3589",name:"end"})))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"]}}};zc.style=Cc;const jc=".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 _c=jc;const Tc=class{constructor(t){e(this,t);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=k.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((e=>{var t;return this.looks=(t=this.looks)!==null&&t!==void 0?t:e}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));this.valueChanged()}valueChanged(){this.smoothlyInput.emit({[this.name]:this.value})}adjustMonth(e){var t;if(!this.readonly){const o=k.parse((t=this.value)!==null&&t!==void 0?t:k.now());o.setMonth(o.getMonth()+e);this.value=k.create(o)}}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}setAllowPreviousMonth(){var e,t;const o=k.previousMonth((e=this.value)!==null&&e!==void 0?e:k.now()).substring(0,7);const s=(t=this.min)===null||t===void 0?void 0:t.substring(0,7);this.allowPreviousMonth=!s||o>=s}setAllowNextMonth(){var e,t;const o=k.nextMonth((e=this.value)!==null&&e!==void 0?e:k.now()).substring(0,7);const s=(t=this.max)===null||t===void 0?void 0:t.substring(0,7);this.allowNextMonth=!s||o<=s}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){var e,t;(e=this.year)===null||e===void 0?void 0:e.clear();(t=this.month)===null||t===void 0?void 0:t.clear()}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){var e,t;(e=this.year)===null||e===void 0?void 0:e.reset();(t=this.month)===null||t===void 0?void 0:t.reset()}async setInitialValue(){var e,t;(e=this.year)===null||e===void 0?void 0:e.setInitialValue();(t=this.month)===null||t===void 0?void 0:t.setInitialValue()}inputHandler(e){if(e.target!=this.element){e.stopPropagation();const t=e.detail[`${this.name}-year`];const o=e.detail[`${this.name}-month`];if(o&&k.is(o))this.value=k.firstOfMonth(o);else if(t&&k.is(t))this.value=k.firstOfMonth(t)}}smoothlyInputLooksHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this.looks,this.color)}}async smoothlyInputLoadHandler(e){if(e.target!=this.element)e.stopPropagation()}render(){var e,o;return t(s,{key:"8326dd10b2cb03a49c3df12c484d794ee42422e5"},t("smoothly-icon",{key:"03d5ab4562e48c9d345dd28f8ba7260d8ca84534",name:"caret-back-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowPreviousMonth},onClick:()=>this.allowPreviousMonth&&this.adjustMonth(-1)}),t("smoothly-input-select",{key:"cd2085f09d9ccf1c49ab6e7716301b270449cb8c",ref:e=>this.year=e,name:`${this.name}-year`,readonly:this.readonly,changed:this.changed,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:e=>this.inputHandler(e),searchDisabled:true},t("div",{key:"026788ad6b0d4f12b71478b04fee7ab9ec5f705c",slot:"label"},t("slot",{key:"911d041691ed519c2485ba979f50a9936bd76611",name:"year-label"})),it((e=this.value)!==null&&e!==void 0?e:k.now(),this.min,this.max).map((e=>t("smoothly-item",{key:e.date,value:e.date,selected:e.selected||this.value==e.date},e.name)))),t("smoothly-input-select",{key:"08ada4e1dfd316a7c406e5e19f8c826f4e8a855e",ref:e=>this.month=e,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:e=>this.inputHandler(e),searchDisabled:true},t("div",{key:"8eff1f76b4388c488a773b234604794b83268bfa",slot:"label"},t("slot",{key:"c15e6145cb9bacc40843abdd1ad1a9cb7afe4baa",name:"month-label"})),at((o=this.value)!==null&&o!==void 0?o:k.now()).map((e=>t("smoothly-item",{key:e.date,value:e.date,selected:e.selected||this.value==e.date},e.name)))),t("smoothly-icon",{key:"f5f0e3b60b17279611012998265600b1a59f54e5",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 a(this)}static get watchers(){return{value:["valueChanged","setAllowPreviousMonth","setAllowNextMonth"],min:["setAllowPreviousMonth"],max:["setAllowNextMonth"]}}};Tc.style=_c;const Ic=".sc-smoothly-input-price-demo-h{display:block}";const Lc=Ic;const Oc=class{constructor(t){e(this,t);this.currencies=["EUR","USD","GBP"];this.currency="USD"}render(){return t(s,{key:"e0130489f4c93fd3d843f2462b2c5149f157b3fe"},t("h2",{key:"1995cbab87f15c67f143d463564ea7f36daae94f"},"State demo on smoothly-input"),t("p",{key:"125ab5ad3c3edd286fdeec42a751412dd0f48fd8"},"This demo/test the internal state of the smoothly-input component."),t("p",{key:"f7cb859f06e3e22661346c8784ab639410b72aaf"},"The currency of the price should update when switching between the currencies."),t("smoothly-input-radio",{key:"0cf33db6e4b836c71a5847e5a1ae084a75774b13",name:"currency",onSmoothlyInput:e=>this.currency=w.is(e.detail.currency)?e.detail.currency:undefined},this.currencies.map((e=>t("smoothly-input-radio-item",{key:e,selected:e==this.currency,value:e},e)))),t("smoothly-input",{key:"51f7e92ad5e05e7f0272859aa80fe65c01eb5874",type:"price",currency:this.currency},"price"))}};Oc.style=Lc;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 Ac=Ec;const Dc=class{constructor(t){e(this,t);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 e,t;this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,this.color=t}));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentDidLoad(){!this.valueReceivedOnLoad&&this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((e=>this.parent=e));this.initialValue=this.active}handleRegister(e){e.stopPropagation();e.detail(this.name)}smoothlyInputLoadHandler(e){hr.registerSubAction(this,e)}smoothlyRadioInputHandler(e){var t,o,s;e.stopPropagation();if(!this.readonly||!this.valueReceivedOnLoad){if(this.clearable&&((t=this.active)===null||t===void 0?void 0:t.value)===e.detail.value)this.clear();else if(((o=this.active)===null||o===void 0?void 0:o.value)!==e.detail.value){(s=this.active)===null||s===void 0?void 0:s.select(false);this.active=e.detail;this.value=this.active.value;this.active.select(true)}}!this.valueReceivedOnLoad&&(this.valueReceivedOnLoad=!this.valueReceivedOnLoad)}async listen(e,t){this.listener[e]=t;t(this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){var e;if(this.clearable){(e=this.active)===null||e===void 0?void 0:e.select(false);this.active=undefined;this.value=undefined}}async edit(e){this.readonly=!e}async reset(){var e,t,o;(e=this.active)===null||e===void 0?void 0:e.select(false);this.active=this.initialValue;this.value=(t=this.initialValue)===null||t===void 0?void 0:t.value;(o=this.active)===null||o===void 0?void 0:o.select(true)}async setInitialValue(){this.initialValue=this.active;this.valueChanged()}async valueChanged(){var e,t,o;this.valueReceivedOnLoad&&(this.changed=((e=this.initialValue)===null||e===void 0?void 0:e.value)!==this.value);this.smoothlyInput.emit({[this.name]:await this.getValue()});(o=(t=this.listener).changed)===null||o===void 0?void 0:o.call(t,this)}watchingReadonly(){var e,t;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}render(){return t(s,{key:"94325a8156ac640837a500e5c28f68ce2c06e72d",class:"floating-label"},t("slot",{key:"61a87a363ffc2667860db9af4ad52a08edd99b62",name:"start"}),t("div",{key:"6b7a40b69d699f420f3c610b3fbaddd477fe37ca"},t("slot",{key:"a6676f95118a14e4814a3704fbc9808077bd8c1a",name:"label"}),t("div",{key:"b8a3e6e7b6e173501e5e160db39791f6be61425a",class:"options"},t("slot",{key:"ecbed40f61155505265f5f8d6b3c7601dd6635e6"}))),t("slot",{key:"8dd360a537b119abb284c51243d3427d1a95c630",name:"end"}))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"],readonly:["watchingReadonly"]}}};Dc.style=Ac;const Mc=".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 $c=Mc;const Rc=class{constructor(t){e(this,t);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((e=>this.name=e));this.selected&&this.inputHandler()}inputHandler(){this.smoothlySelect.emit({value:this.value,selected:this.selected,select:e=>this.selected=e})}render(){return t(s,{key:"d881877d7a8cd254071fe0202554e25e359a78e5",onClick:()=>this.inputHandler()},t("input",{key:"ebd98073073f29821aae7ab753f19c3ffea0aec6",name:this.name,type:"radio",checked:this.selected}),t("smoothly-icon",{key:"ced600a185b7853039c093d855a699950c8e221c",name:this.selected?"checkmark-circle":"ellipse-outline",size:"small",fill:"outline",color:this.selected?"success":"medium",toolTip:"Select"}),t("label",{key:"fc9b714d55603e377ffe0c9341ec8ce242dc5881"},t("slot",{key:"6bb1ab286ea926069e31e48fb23415257299ab00"})))}get element(){return a(this)}};Rc.style=$c;const Pc='.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=Pc;const Fc=class{constructor(t){e(this,t);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(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,this.color=t}));this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));this.value&&(this.initialValue=this.value);this.valueChanged()}smoothlyInputLoadHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this)}}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.valueChanged()}valueChanged(){var e,t,o,s;const a=!this.step?undefined:(t=(e=this.step.toString().split(".")[1])===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0;this.value=Number.isNaN(this.value)||this.value==undefined?undefined:+this.value.toFixed(a);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(e){var t;if(e==undefined)this.value=undefined;else if(e<this.min)this.value=this.min;else if(e>this.max)this.value=this.max;else this.value=e;this.input&&(this.input.value=this.type=="text"?(t=this.value)===null||t===void 0?void 0:t.toString():this.value)}render(){var e,o,a;return t(s,{key:"90232044ed7c86886c63e0f3a3247cd9615416bb",class:{"output-side-right":this.outputSide==="right","show-label":this.outputSide==="left"&&!!this.label}},t("slot",{key:"7504c2e4c61bfa725571afed2f9081f4b86e8fb8",name:"start"}),t("div",{key:"d62e225b32966530fb7ec9c82c39520ac3bc1238"},t("label",{key:"5547ce5921cb8fda0a25a32c132c639c5eba10b9",htmlFor:this.name},this.label),t("smoothly-input",{key:"08d86ea1cb133fede356dc71d4342fe6802f738e",ref:e=>this.input=e,looks:undefined,color:this.color,name:this.name,showLabel:this.outputSide==="left"&&!!this.label,type:this.type,onSmoothlyInputLoad:async e=>(e.stopPropagation(),this.setValue(hr.Element.is(e.target)?Number(await e.target.getValue()):undefined)),onSmoothlyBlur:e=>e.stopPropagation(),onSmoothlyInput:async e=>{e.stopPropagation();this.setValue(hr.Element.is(e.target)?Number(await e.target.getValue()):undefined)},value:this.type=="percent"?this.value:(e=this.value)===null||e===void 0?void 0:e.toString(),placeholder:this.outputSide==="right"?"-":undefined,readonly:this.readonly},this.label),t("smoothly-display",{key:"7ee11f59b572f7ad3bc943154981ae582ea18bec",label:(this.type=="percent"?this.min*100:this.min).toString()}),t("input",{key:"4c96c9a690942a98638725062656861f331d66d1",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:e=>{e.stopPropagation();this.setValue(e.target.valueAsNumber)},value:(a=this.value)!==null&&a!==void 0?a:this.min}),t("smoothly-display",{key:"85d93077d0dfed541c2979132616981d1f5d231c",label:(this.type=="percent"?this.max*100:this.max).toString()})),t("slot",{key:"c671e7d73d701eab03855ec487bdcb967df01cc4",name:"end"}))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"]}}};Fc.style=Nc;const Hc=class{constructor(t){e(this,t)}render(){return t(s,{key:"4051df0b6e7e3616d4003fbf6041d7114e42bca5"},t("h2",{key:"1bc9976be3dd1bdd9cafb957804721bfc2d35e8f"},"Range"),t("h3",{key:"c2d36a50622ab5aa5a91e7d07128710042ead62b"},"Phone Number"),t("smoothly-input-range",{key:"9e3df23e6f60dee8edcb2dca05ff8fabc3f3f0b6",min:7e8,max:799999999,step:1,label:"Phone Number"}),t("h3",{key:"30124f483876140e0b75fbbeea412e34430c00ee"},"Stars out of ten"),t("smoothly-input-range",{key:"d4aa30a14fea1abe86520faa74db9671397c75c9",max:10,step:1,label:"Stars"}),t("h3",{key:"855cdcf0cf5968c42dc038d3cb636a4aa0c4c75c"},"Percent"),t("smoothly-input-range",{key:"78a4f0ddb5615947071bcc05cd2bdd6e14c83a96",type:"percent",max:1,step:.01,label:"Percent"}),t("h3",{key:"3ccd439f2d386f40d87d92d22b5e9539bb7a2b9c"},"With icon at start and clear button"),t("smoothly-input-range",{key:"3c1aa4fa46ac4c7e73fdf9df8628bf2459b354e5",step:1,name:"range2",label:"Select"},t("smoothly-icon",{key:"989b64f1e98a59d34e710eff806cdf7a2fec2e9b",name:"checkmark-circle",slot:"start"}),t("smoothly-input-clear",{key:"3cfabb3409c3ba4a3bb1ecd63dd51c2b79277552",size:"icon",slot:"end"})))}};const Uc='[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 Yc=Uc;const Wc=class{constructor(t){e(this,t);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((e=>{if(cr.Element.type.is(e)){this.parent=e;this.readonlyAtLoad=e.readonly;e.listen("changed",(async e=>{if(hr.is(e)){this.display=e.readonly?false:e.changed}if(e instanceof br){this.display=!e.readonly;this.disabled=!this.readonlyAtLoad&&!e.changed}}))}}))}clickHandler(e){var t,o;e.stopPropagation();(t=this.parent)===null||t===void 0?void 0:t.reset();this.parent instanceof br&&this.readonlyAtLoad&&((o=this.parent)===null||o===void 0?void 0:o.edit(false))}render(){var e;return t(s,{key:"3783efaed2304cc336fa8659579dfce6801fcd07",title:this.tooltip},t("smoothly-button",{key:"fbea13e6f94c40b97ff55ce8a6cc86bc50f4ce73",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(e=this.fill)!==null&&e!==void 0?e:this.type=="input"?"clear":undefined,onClick:e=>this.clickHandler(e)},t("slot",{key:"ad1384e929cb9414dfdfec1a3863b5b4106b041f"}),t("smoothly-icon",{key:"36d9df6c1bc74b62940a4de263cfc260e604bbdc",flip:"x",name:"refresh-outline",size:"tiny"})))}};Wc.style=Yc;var Bc;(function(e){let t;(function(e){e.type=S({value:E(),deselectable:z(),selected:z().optional(),filter:c()});e.is=e.type.is})(t=e.Element||(e.Element={}));e.type=t.type.extend({});e.is=e.type.is})(Bc||(Bc={}));const Vc='.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%;box-sizing:content-box;padding-inline:var(--input-padding-side)}.invalid.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.invalid.sc-smoothly-input-select{display:block}.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.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{padding:.7em .7em .7em .25em}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>smoothly-item:not([selectable]){display:flex;gap:1em;background-color:rgba(var(--smoothly-primary-tint), .5);color:var(--smoothly-color-contrast)}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item.sc-smoothly-input-select:not([selectable])>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}.invalid.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.sc-smoothly-input-select{display:block}';const Gc=Vc;const qc=class{constructor(t){e(this,t);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.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 e,t;this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentDidLoad(){this.selected&&!this.initialValueHandled&&(this.initialValue=[...this.selected]);this.initialValueHandled=true;this.onSelectedChange()}componentDidRender(){var e,t,o,s,a;this.itemHeight===undefined&&(this.itemHeight=(e=this.items.find((e=>e.clientHeight>0)))===null||e===void 0?void 0:e.clientHeight);if(this.menuHeight&&this.itemHeight){(t=this.element)===null||t===void 0?void 0:t.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`)}(a=this.element)===null||a===void 0?void 0:a.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(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return!this.multiple&&this.selected[0]?this.selected[0].value:this.multiple&&this.selected.length>0?this.selected.map((e=>e.value)):undefined}async getItems(){return this.items}async listen(e,t){this.listener[e]=t;t(this)}async reset(){this.selected.forEach((e=>e.selected=e.hidden=false));this.initialValue.forEach((e=>e.selected=true));this.selected=[...this.initialValue];this.displaySelected();this.changed=false;this.open&&this.handleShowOptions()}async clear(){var e;if(this.clearable){this.selected.forEach((e=>e.selected=e.hidden=false));this.selected=[];if(this.displaySelectedElement){this.displaySelectedElement.innerHTML=(e=this.placeholder)!==null&&e!==void 0?e:""}}}async edit(e){this.readonly=!e}async setInitialValue(){this.changed=false;this.initialValue=[...this.selected]}async onSelectedChange(){var e,t;this.initialValueHandled&&(this.changed=!this.areValuesEqual(this.selected,this.initialValue));this.defined=this.selected.length>0;this.smoothlyInput.emit({[this.name]:await this.getValue()});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}onRequiredChange(){this.items.forEach((e=>e.deselectable=!this.required))}async onFilterChange(e){e=e.toLowerCase();await Promise.all(this.items.map((t=>t.filter(e))))}watchingReadonly(){var e,t;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}async smoothlyInputLoadHandler(e){if(e.target&&("name"in e.target&&e.target.name!==this.name||e.composedPath().some((e=>e==this.iconsDiv))&&!e.composedPath().some((e=>e==this.toggle)))){e.stopPropagation()}else if(Bc.Element.is(e.target)){e.stopPropagation();e.target.deselectable=!this.required;this.items.push(e.target)}hr.registerSubAction(this,e);this.displaySelected()}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&this.handleShowOptions()}onItemSelect(e){e.stopPropagation();if(this.multiple){this.selected=e.detail.selected?[...this.selected,e.detail]:this.selected.filter((e=>e.selected))}else if(e.detail.selected||!this.items.some((e=>e.selected))){this.selected[0]&&(this.selected[0].hidden=this.selected[0].selected=false);this.selected=!e.detail.selected?this.selected.filter((e=>e.selected)):[e.detail];!this.showSelected&&e.detail.selected&&(e.detail.hidden=true)}this.displaySelected()}onClosed(e,t){this.lastOpen=t;if(!e){const e=this.items.find((e=>e.marked));if(e){e.marked=false}}}handleShowOptions(e){const t=(e===null||e===void 0?void 0:e.composedPath().some((e=>e==this.iconsDiv)))&&!e.composedPath().some((e=>e==this.toggle));const o=e===null||e===void 0?void 0:e.composedPath().find((e=>"tagName"in e&&e.tagName=="SMOOTHLY-ITEM"));!this.readonly&&!(o&&this.items.includes(o)&&this.multiple)&&!t&&(this.open=!this.open);this.filter=""}areValuesEqual(e,t){return e.length===t.length&&t.every((t=>e.includes(t)))}displaySelected(){var e;const t=this.selected.map((e=>`<div>${e.innerHTML}</div>`)).join("");this.displaySelectedElement&&(this.displaySelectedElement.innerHTML=this.selected.length>0?t:(e=this.placeholder)!==null&&e!==void 0?e:"")}onKeyDown(e){if(!this.searchDisabled){e.stopPropagation();const t=this.items.some((e=>e.getAttribute("hidden")===null));if(e.key!="Tab"&&!e.ctrlKey&&!e.metaKey)e.preventDefault();if(this.open){switch(e.key){case"ArrowUp":t&&this.move(-1);break;case"ArrowDown":t&&this.move(1);break;case"Escape":if(this.filter=="")this.open=false;else this.filter="";break;case"Backspace":this.filter=this.filter.slice(0,-1);break;case"Enter":const o=this.items.find((e=>e.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(e.key.length==1)this.filter+=e.key;break}}else{switch(e.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(e.key.length==1)this.filter+=e.key;break}}}}scrollToSelected(){const e=this.items.find((e=>e.selected));if(e){this.items.map((e=>e.marked=false));e.marked=true;this.scrollTo(e,"instant")}}move(e){let t=this.items.findIndex((e=>e.marked));if(t==-1)t=0;else{this.items[t].marked=false;t=(t+e+this.items.length)%this.items.length}if(this.items.some((e=>!e.hidden)))while(this.items[t].hidden){t=(t+e+this.items.length)%this.items.length}this.items[t].marked=true;this.scrollTo(this.items[t],"smooth")}scrollTo(e,t){var o,s,a;(o=this.optionsDiv)===null||o===void 0?void 0:o.scrollTo({top:e.offsetTop+e.offsetHeight/2-((a=(s=this.optionsDiv)===null||s===void 0?void 0:s.clientHeight)!==null&&a!==void 0?a:0)/2,behavior:t})}addItem(){this.addedItems=this.addedItems.concat(t("smoothly-item",{value:this.filter,selected:true},this.filter))}render(){return t(s,{key:"d1c9b93fad2d17379884f60c0629fdbee3982b33",tabIndex:0,class:{"has-value":this.selected.length!==0,open:this.open,invalid:!!this.invalid},onClick:e=>this.handleShowOptions(e)},t("div",{key:"d1ce88ad0cb990e44f3bbafcb07cd3ccb7477532",class:"select-display",ref:e=>this.displaySelectedElement=e},this.placeholder),t("div",{key:"ea9aaf7bdb1869f59bed2faaaae2634e40d7410b",class:"icons",ref:e=>this.iconsDiv=e},t("slot",{key:"fb62b83e6963f00b00d342bc7402c104bc80cd66",name:"end"}),this.looks=="border"&&!this.readonly&&t("smoothly-icon",{key:"2ca62cfc6d36dba10862225ac2fc09e44a65fffc",ref:e=>this.toggle=e,size:"tiny",name:this.open?"caret-down-outline":"caret-forward-outline"}),t("smoothly-icon",{key:"73a043a0f8ccb418a12391d3f4ab20bc1218a484",class:"invalid",name:"alert-circle",color:"danger",fill:"clear",size:"small"})),t("slot",{key:"01c93c6030d690fb9bd861a5b7f3c552dd426adb",name:"label"}),t("div",{key:"4d24b8e8614bb04edb492ce561d5ca76138936c4",class:{hidden:!this.open,options:true},ref:e=>this.optionsDiv=e},this.filter.length>0&&t("smoothly-item",{key:"a6e327236bbd8f883e171814f3e63da132e1f8a9",selectable:false},t("smoothly-icon",{key:"8e7f7ec093b93f555344fa6e4ffa3d6c8fe1f46c",name:"search-outline",size:"small"}),this.filter,t("smoothly-icon",{key:"cf74cf7b4cc2064b7f4b5f9072ac55f49abefb2a",name:"backspace-outline",size:"small",onClick:e=>{e.stopPropagation();this.filter="";this.element.focus()}}),this.mutable&&t("smoothly-icon",{key:"54e9d15f103ffbf92b3ef7cd97d98093b733c322",name:"add",size:"small",onClick:e=>{e.stopPropagation();this.addItem()}})),t("slot",{key:"5d7742c0f63cc8acabde6edf5ac675f5f2548b56"}),this.addedItems))}get element(){return a(this)}static get watchers(){return{selected:["onSelectedChange"],required:["onRequiredChange"],filter:["onFilterChange"],readonly:["watchingReadonly"],open:["onClosed"]}}};qc.style=Gc;var Kc;(function(e){function t(e){return e&&typeof e=="object"&&typeof e.submit=="function"}e.is=t})(Kc||(Kc={}));const Zc='[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=Zc;const Xc=class{constructor(t){e(this,t);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((e=>{if(Kc.is(e)&&cr.type.is(e)){this.parent=e;e.listen("changed",(async e=>{var t;this.display=!e.readonly;this.disabled=!this.delete&&(e.readonly||"validator"in e&&e.validator instanceof f&&!((t=e.validator)===null||t===void 0?void 0:t.is(e.value))||!e.changed)}))}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.submit(this.delete)}render(){var e,o;return t(s,{key:"5768d9069f8002611288580dec67d6119f4f4559",title:this.toolTip},this.delete==true?t("smoothly-button-confirm",{size:this.size,shape:this.shape,expand:this.expand,color:(e=this.color)!==null&&e!==void 0?e:"danger",fill:this.fill,onSmoothlyConfirm:()=>this.clickHandler()},t("slot",null),t("smoothly-icon",{name:"trash-outline",fill:"solid",size:"tiny"})):t("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()},t("slot",null),this.icon&&t("smoothly-icon",{name:this.icon,fill:"solid",size:"tiny"})))}};Xc.style=Jc;const Qc="[selected].sc-smoothly-item-h{background-color:rgb(var(--smoothly-input-selected-background));color:rgb(var(--smoothly-input-selected-foreground));border-left:.3em solid rgb(var(--smoothly-input-selected-border))}.sc-smoothly-item-h{padding:0.5em;cursor:pointer;border-left:.3em solid transparent;color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));box-sizing:border-box;min-height:3rem}.sc-smoothly-item-h.sc-smoothly-item-s>*{color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}[marked].sc-smoothly-item-h,.sc-smoothly-item-h:hover{background-color:rgb(var(--smoothly-input-hover-background));color:rgb(var(--smoothly-input-hover-foreground));fill:rgb(var(--smoothly-input-hover-foreground));stroke:rgb(var(--smoothly-input-hover-foreground))}.sc-smoothly-item-h[marked].sc-smoothly-item-s>*,.sc-smoothly-item-h:hover.sc-smoothly-item-s>*{color:rgb(var(--smoothly-input-hover-foreground));fill:rgb(var(--smoothly-input-hover-foreground));stroke:rgb(var(--smoothly-input-hover-foreground))}";const ed=Qc;const td=class{constructor(t){e(this,t);this.smoothlyItemSelect=o(this,"smoothlyItemSelect",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.value=undefined;this.selected=false;this.marked=undefined;this.selectable=true;this.deselectable=true}clickHandler(){if(this.selectable&&(!this.selected||this.deselectable))this.selected=!this.selected}selectedWatcher(){this.smoothlyItemSelect.emit(this.element)}componentWillLoad(){this.smoothlyInputLoad.emit((()=>{}))}componentDidLoad(){if(this.selected&&this.selectable)this.smoothlyItemSelect.emit(this.element)}async filter(e){var t;const o=typeof this.value==="string"?this.value:JSON.stringify((t=this.value)!==null&&t!==void 0?t:"");this.element.hidden=e&&this.selectable?!(o.includes(e)||this.element.innerText.toLowerCase().includes(e)):false}render(){return t(s,{key:"1ad7925c7766f48131a3b868e29a8d3b4ef81167",tabIndex:-1},t("slot",{key:"9b813b0b3f1caafd72cefebed40b6e6c48aace9e"}))}get element(){return a(this)}static get watchers(){return{selected:["selectedWatcher"]}}};td.style=ed;const od=".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 sd=od;const ad=class{constructor(t){e(this,t);this.hue=undefined;this.description=undefined;this.shape=undefined}render(){var e;return t(s,{key:"2e33f0d93baee1a2589bdcad782c57b52a63bc33",title:this.description,style:{"--hue":(e=this.hue)===null||e===void 0?void 0:e.toString()}},t("slot",{key:"645b66d7fea66cb7b5bf1045e7e2400358a22608"}))}};ad.style=sd;const id=".sc-smoothly-lazy-h{display:block}";const nd=id;const ld=class{constructor(t){e(this,t);this.show=false;this.content=undefined}loadMoreHandler(e){e.stopPropagation();this.show=true}render(){return t(s,{key:"35a95fb4af778600b397523dd64bdc8f36db6624"},t("slot",{key:"b5aa77a8c758fe97602d099e7cfa5af3cf981199",name:"before"}),t("smoothly-load-more",{key:"f469461edc4759aa9c898ae6edf8d0461b253c87",onSmoothlyLoadMore:e=>this.loadMoreHandler(e)}),this.show&&(typeof this.content=="function"?t(this.content,null):this.content),t("slot",{key:"41e879c9ddcebe32934aa54de2b34b700b6fb146"}))}};ld.style=nd;const rd=class{constructor(t){e(this,t);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 e;this.observer=new IntersectionObserver(((e,t)=>this.observationHandler(t,e)));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);(e=this.scrollableParent)===null||e===void 0?void 0:e.addEventListener("scroll",this.checkInView.bind(this),{once:!this.multiple})}}}disconnectedCallback(){var e;(e=this.scrollableParent)===null||e===void 0?void 0:e.removeEventListener("scroll",this.checkInView.bind(this));this.observer.disconnect()}observationHandler(e,t){var o,s;this.inView=((s=(o=t.find((e=>e.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&&(e.unobserve(this.element),e.disconnect())}}render(){return t(s,{key:"828ce432656973cd3dc94015a4f7a350cffc2814"})}get element(){return a(this)}};const cd='.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 dd=cd;const hd=class{constructor(t){e(this,t);this.smoothlyModalChange=o(this,"smoothlyModalChange",7);this.open=false;this.closable=false;this.align="center"}openChanged(){this.smoothlyModalChange.emit(this.open)}render(){return t(s,{key:"ca8c015be405179688f7eacb9becfd437733d136",role:"alertdialog"},t("div",{key:"05afa423533ecfe7eb42578bb32e93d3b0189916",class:"modal"},t("div",{key:"a1ad92a2aa33376be6a210cc3d2b356c61a6b612",class:"header"},t("slot",{key:"e446def80df406f67a7db346e665cc72ab6c3994",name:"header"}),this.closable&&t("smoothly-icon",{key:"73df336557af04d2cdc601c3e8d2f5c8a8a19222",name:"close-outline",fill:"solid",onClick:()=>this.open=false})),t("slot",{key:"aca2bb1c7221fbce49a00a2fd33539463414dbc5"}),t("div",{key:"802d7b631ae8fd42853120dc1c857fadb8c289ce",class:"actions"},t("slot",{key:"31e0f0cc09d4567cc4ddb8a0a4e1b46c5229f11b",name:"actions"}))))}static get watchers(){return{open:["openChanged"]}}};hd.style=dd;const md=".sc-smoothly-next-demo-h{display:grid;gap:5rem;box-sizing:border-box;max-width:80rem;width:100%;margin:auto;padding:2rem}";const yd=md;const bd=class{constructor(t){e(this,t)}render(){return t(s,{key:"623ee286c870010d07f78c86d65a5e0acfddc0fb"},t("smoothly-next-demo-group",{key:"ead07b554223bc4c8a178aaad2b933e6fcf6be29"}),t("smoothly-next-demo-colspan",{key:"d5da62f2f5c67b5ba2e2524050b631e927487a71"}),t("smoothly-next-demo-simple",{key:"50eaaaf73bbf68eff78068eaeace5eb793b7a979"}),t("smoothly-next-demo-nested",{key:"a695bb7ff0dcb529866b9484c01e33a5da5dc894"}),t("smoothly-next-table-demo-filtered",{key:"05246c90e3650d4e12279639e63b93944885e4a3"}))}};bd.style=yd;const ud=".sc-smoothly-next-demo-colspan-h{display:block}.sc-smoothly-next-demo-colspan-h smoothly-display.sc-smoothly-next-demo-colspan{display:inline}";const fd=ud;const pd=class{constructor(t){e(this,t)}render(){return t(s,{key:"9fae5ae5fd52417900b85cd1b7286226211988ae"},t("smoothly-next-table",{key:"7fa918696ff0cbc055fc9679fada1682d83c30db",columns:3},t("smoothly-next-table-head",{key:"953b379bc04dfbc70c48555be37634cc633bbe89"},t("smoothly-next-table-row",{key:"a57b92a5a37e839f5de4e33d2d0b1c36dfea9c4d"},t("smoothly-next-table-cell",{key:"93aae315bf7dd8067602f31497c7d88453551d4c"},"Date"),t("smoothly-next-table-cell",{key:"691050621549e189413af27ad3abebd7b1d06631"},"Skip"),t("smoothly-next-table-cell",{key:"769cca5e01095fd8c4a99f9c88d0c5ee605c0ce6"},"Total"))),t("smoothly-next-table-body",{key:"ba10a91dc9b7dd6e36c5251316365054190e5f65"},t("smoothly-next-table-row",{key:"0ef1e28d588a03cd17c49ec4b311d049404722df"},t("smoothly-next-table-cell",{key:"2f01f179122351a37aa4d9bfee49c3a9f7a9f1b0",span:2},t("smoothly-display",{key:"cdce0e78b6cc01a43fcad4cf4f8f2ef985b3b51e",type:"date",value:"2024-01-01"})),t("smoothly-next-table-cell",{key:"5d17373e81827518dfb5e719b6501aa2cad32f56"},t("smoothly-display",{key:"ac37b31a93d75ec0cc51b8f026a044fd5c38968c",type:"price",value:120,currency:"EUR"}))),t("smoothly-next-table-row",{key:"96632fe65093c0a5ffb0a99f13bbe673144e3cf6"},t("smoothly-next-table-expandable-cell",{key:"ccfd950b1e3f891501de681727fb04e30eb3e644",span:2},t("smoothly-display",{key:"133eab18da8f74a9b5a1b062c503d517fd6f5483",type:"date",value:"2024-01-02"}),t("smoothly-lazy",{key:"0038fc2344f62cd389599c8259b1c688c6d84e1f",slot:"detail",content:t("smoothly-display",{type:"date-time",value:"2024-01-02T13:37:00.000Z"})})),t("smoothly-next-table-expandable-cell",{key:"52ca0b3bc98dd236105cbd1070840f911f7088b1"},t("smoothly-display",{key:"835f4f495f37982e3eeccf4fd1fd52b3bf06a884",type:"price",value:220,currency:"EUR"}),t("smoothly-lazy",{key:"294b4a0bd1348ceafeb2bc97e7dd91ca7adfd1c2",slot:"detail",content:t("span",null,t("smoothly-display",{type:"price",value:120,currency:"EUR"})," + ",t("smoothly-display",{type:"price",value:100,currency:"EUR"}))}))),t("smoothly-next-table-row",{key:"a816070b9f7e2452e454c068ba820936158d32a9"},t("smoothly-next-table-cell",{key:"ba8caee508c08f738a05f94d77f94afff212a044"},t("smoothly-display",{key:"12e4191c74895446481c8ef2b18c562139f63781",type:"date",value:"2024-01-02"})),t("smoothly-next-table-cell",{key:"ac0a9f374fa3213b236b61eb703b8817f7e36faf"},"Not Skipped"),t("smoothly-next-table-cell",{key:"1281d3957bb7ba877a594c1b3fd39e659ebe6a95"},t("smoothly-display",{key:"e861b9022b6ade127f99014d24cb2a4767733f51",type:"price",value:320,currency:"EUR"}))))))}};pd.style=fd;const gd=".sc-smoothly-next-demo-group-h{display:block}.sc-smoothly-next-demo-group-h smoothly-display.sc-smoothly-next-demo-group{display:inline}.sc-smoothly-next-demo-group-h fake-cell-wrapper.span-2.sc-smoothly-next-demo-group{grid-column:span 2}.sc-smoothly-next-demo-group-h>smoothly-display.sc-smoothly-next-demo-group{display:inherit;font-size:2em}.sc-smoothly-next-demo-group-h>*.sc-smoothly-next-demo-group{margin-bottom:2rem}.sc-smoothly-next-demo-group-h fake-group-wrapper.sc-smoothly-next-demo-group,.sc-smoothly-next-demo-group-h fake-row-wrapper.sc-smoothly-next-demo-group,.sc-smoothly-next-demo-group-h fake-expandable-row-wrapper.sc-smoothly-next-demo-group{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}.sc-smoothly-next-demo-group-h fake-cell-wrapper.sc-smoothly-next-demo-group{grid-column:span 1;display:block}.sc-smoothly-next-demo-group-h fake-expandable-cell-wrapper.sc-smoothly-next-demo-group{display:contents}";const kd=gd;const vd=class{constructor(t){e(this,t)}render(){return t(s,{key:"6812f172370b2f33eff4df66ce64cba3ea507950"},t("smoothly-display",{key:"34e7fcda101824ebc5c838fd8a86b6c0b53f4e6d",type:"text",value:"Group"}),t("smoothly-next-table",{key:"ad19427f7f4f5429852c813e96f558703f0d896a",color:"primary",columns:2},t("smoothly-next-table-head",{key:"5d6082020030f6f62061d4478c09f133937e6f9f"},t("smoothly-next-table-row",{key:"a6429aace4d69831d5dfbfa202edd32c2a0be838"},t("smoothly-next-table-cell",{key:"67907d0e1f8b428f2e830a34e4431f94f2c31d92"},"Date"),t("smoothly-next-table-cell",{key:"4fd987d8b36cb50c326f0a244e6aeed180c584cb"},"Total"))),t("smoothly-next-table-body",{key:"08a6d5633c917d73b34bb1c3794ebb19cc58693c"},t("smoothly-next-table-row-group",{key:"2ef152f2278b642de82a4419320e079d8bdf2917",align:true},t("smoothly-display",{key:"f0c7e2c271d99ecbeb3b02bb118b1770f90c788c",slot:"start",type:"date",value:"2024-01-01"}),t("smoothly-display",{key:"738562449da05e24eddaf2b1a8870eb77eb871f4",slot:"end",type:"price",currency:"EUR",value:510}),t("smoothly-next-table-expandable-row",{key:"6f2e6dd98f8ea4e8fe1fa0a5d89c65e040618e35"},t("smoothly-next-table-cell",{key:"2033c732353e85743f88579d81e799fffbb8767a"},t("smoothly-display",{key:"29caa5fd660855ce740b9a5e62030f7ddab88d75",type:"date-time",value:"2024-01-01T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"8d52795adea316c6b0a6582a56b1506304362e0c"},t("smoothly-display",{key:"54c0b7d38b5d001693909e40c835a905bf06f18e",type:"price",currency:"EUR",value:250})),t("smoothly-lazy",{key:"afc33b08bdaa21b1c2b9718c6a3a20947ef4ccec",slot:"detail",content:t(i,null,"Details of 2024-01-01T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"003bc5f38a5a893f2f175a167d36aacb4e66bf55"},t("smoothly-next-table-cell",{key:"7679e43a33148cb91858ca51c1e003fefa54fbea"},t("smoothly-display",{key:"323ed36c5717aa2744dc8a0e4dd2179b992be795",type:"date-time",value:"2024-01-01T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"44f86caf0ab0eccc70b0daaeb61dd4a02673727d"},t("smoothly-display",{key:"7a0385eda926bc3685c178bd90bc62e1c40609e1",type:"price",currency:"EUR",value:260})),t("smoothly-lazy",{key:"2823addb8cb61d132f28fec06b201b669fe8a8df",slot:"detail",content:t(i,null,"Details of 2024-01-01T13:37:00.000Z")}))),t("smoothly-next-table-row",{key:"49de0ac612ab238e713281237c302c6b2d3fb08b"},t("smoothly-next-table-cell",{key:"17badf73bb16e2e2d032cfdc9c83242cf962fe90"},t("smoothly-display",{key:"37e150c03c577e514d1ffa2d520e92252ccf08ce",type:"date",value:"2024-01-02"})),t("smoothly-next-table-cell",{key:"6df8ac2e9838332a15eaad0e1b5fdf3385d11fe0"},t("smoothly-display",{key:"3ef7763132aa6820b981f80c08670949126ce1e4",type:"price",currency:"EUR",value:130}))),t("smoothly-next-table-row-group",{key:"5e52abbedd65ce832012b2851f866334d63f6ca4"},t("smoothly-display",{key:"29a670d47bb52e16ffcf455ca2526172877901c6",slot:"start",type:"date",value:"2024-01-03"}),t("smoothly-display",{key:"aa1d996473e2ccdd5b9b808150538d8c6c3dbe4f",slot:"end",type:"price",currency:"EUR",value:720}),t("smoothly-next-table-expandable-row",{key:"7270edcce4b824073f410b284a65e3bb88057f0c"},t("smoothly-next-table-cell",{key:"8a25cb24a0794394c5a5a8bc95e2edb7efaa25f1"},t("smoothly-display",{key:"22dc2fb4fd39a8647f88559cde0bb36b2a3d0d64",type:"date-time",value:"2024-01-03T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"b09d3259d98629932d8f65ac5b7cf0b4b9eb69f5"},t("smoothly-display",{key:"81f0c27f64cad92003cf51ab291a4c3633dc0d46",type:"price",currency:"EUR",value:320})),t("smoothly-lazy",{key:"19164346935e3b584774e91f9339c0044fbb1125",slot:"detail",content:t(i,null,"Details of 2024-01-03T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"ceb7e2376ad4572abe07e9a6a3dc032278583e7b"},t("smoothly-next-table-cell",{key:"af444c1d74c4b7698a9d475802340e8923841dbe"},t("smoothly-display",{key:"6019baf37aed2aeab3acd6a801e05d2e416e8269",type:"date-time",value:"2024-01-03T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"755825e84e1f80b5266ab4f212761b752c1a5f01"},t("smoothly-display",{key:"5489a5f9482863aa3016af95e7bef41977f9a038",type:"price",currency:"EUR",value:400})),t("smoothly-lazy",{key:"3e8c4bfb8d26f580bb0a67f16e6bdb0b3d24b0d2",slot:"detail",content:t(i,null,"Details of 2024-01-03T13:37:00.000Z")}))),t("smoothly-next-table-row-group",{key:"1415ea3d2c7dbdbad280b377d34dd46c6d1f2d6b"},t("smoothly-display",{key:"6968e1670f576d4f3d0aef3b55369e9bcad51a92",slot:"start",type:"date",value:"2024-01-04"}),t("smoothly-next-table-expandable-row",{key:"3e4f458a90d9845f29ba2220e1d5ac54f4b0e83e"},t("smoothly-next-table-cell",{key:"005d4bb9cf77c6776f58e48b7e09ae3e297dca41"},t("smoothly-display",{key:"7f71630981bc0f89d99fc6ee9cc5231a6053a12f",type:"date-time",value:"2024-01-04T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"cca41e35a46199eb5282b209b0d9dd40af0a40b7"},t("smoothly-display",{key:"c141ca1622aac2802fc9a6c2eadc6427f33ecddc",type:"price",currency:"EUR",value:320})),t("smoothly-lazy",{key:"ee6f89969c77c83a545e7350016723efd15b6920",slot:"detail",content:t(i,null,"Details of 2024-01-04T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"bd9fbcbab9f33fc30845cb6d6768483f6a5e3b4a"},t("smoothly-next-table-cell",{key:"f27f36c7ac11adf79cd434601a906b12927bf8ed"},t("smoothly-display",{key:"5e167c7a000590aa9ad80d10df9c8a6700305ee1",type:"date-time",value:"2024-01-04T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"4affa13546c2802454f88874ede921d609c9d1c2"},t("smoothly-display",{key:"6e6d9f7fb5cc6978f16dae939d54a9a86e589088",type:"price",currency:"EUR",value:400})),t("smoothly-lazy",{key:"2fb8b325d27a7491ec3350b66105bd46b2740057",slot:"detail",content:t(i,null,"Details of 2024-01-04T13:37:00.000Z")}))),t("smoothly-next-table-row-group",{key:"28c5673d8e2b70ba2d46aa7b573b3e28f829a78d"},t("smoothly-display",{key:"257db1a81e89f3ab4baeaca246e338a60733e044",slot:"end",type:"price",currency:"EUR",value:720}),t("smoothly-next-table-expandable-row",{key:"2589b697446de13a1803a46555f538c8183a91ef"},t("smoothly-next-table-cell",{key:"3242eac11e4baefe389723e5dfa01aea00b9bf4d"},t("smoothly-display",{key:"a9024aeffa7c484a641625141c5c503e2437694f",type:"date-time",value:"2024-01-05T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"11abfc5a4c581cf603a2d177956dec6b9943785d"},t("smoothly-display",{key:"59d018ad4bd98109206d36ad7506e7193b3b9e1b",type:"price",currency:"EUR",value:320})),t("smoothly-lazy",{key:"e6e9bc6ab1dbd9a199aa8b9a0a6269d6879a8538",slot:"detail",content:t(i,null,"Details of 2024-01-05T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"013fef3e59696278aaf3330cd3ff8fc8a74f8302"},t("smoothly-next-table-cell",{key:"88994bcdaa43d1bc01f4b0bcf632899690403ad4"},t("smoothly-display",{key:"34b22b944b032128277471dfed92934e774d74f4",type:"date-time",value:"2024-01-05T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"a49b3e12ae016f2f1a7bca634e1640bf92880883"},t("smoothly-display",{key:"63196fb68baa16350c0b21638332f34a7c0dfc05",type:"price",currency:"EUR",value:400})),t("smoothly-lazy",{key:"0dd6f9e4b9779241ec1932dc31e1f24b885fb0ff",slot:"detail",content:t(i,null,"Details of 2024-01-05T13:37:00.000Z")}))),t("fake-group-wrapper",{key:"2c4118b69e01d8bbcbe70e4af42d852f81f0d1ed"},t("smoothly-next-table-row-group",{key:"5279ebbaddc45369f9e4272b445816ea1413030e"},t("smoothly-display",{key:"5aa00f2016608e3aa26a6141220160851dd8d13f",slot:"start",type:"date",value:"2024-01-06"}),t("smoothly-display",{key:"79aaf1e8096a00b62a90b6eae78da7c064e61d84",slot:"end",type:"price",currency:"EUR",value:720}),t("fake-row-wrapper",{key:"4577c1485bc26468c22d122b21d31f4bfdd2c374"},t("smoothly-next-table-row",{key:"cc10b4565c1967a119ac785fcb52be8c26af2672"},t("fake-cell-wrapper",{key:"8825c2125fb69ba280c1d6aaba26f382a549be27"},t("smoothly-next-table-cell",{key:"ffcb5e9dcc8d4484052911432d702a81b998fe1b"},t("smoothly-display",{key:"ab21c5efd0cb92ca571cbb591cb75c985891c3c6",type:"date",value:"2024-01-02"}))),t("fake-expandable-cell-wrapper",{key:"2f236ad7a1ac83b3b0f4f2920f88a7876c46412e"},t("smoothly-next-table-expandable-cell",{key:"dde72163ce70689ecc2ade6feba3d73b120a84dd"},t("smoothly-display",{key:"a721d0ca5ecc6b1791dc718c9f4372325da7763d",type:"price",currency:"EUR",value:130}),t("smoothly-lazy",{key:"4abba2a13db57cb8a7dadbebd00900ad633f67bf",slot:"detail",content:t("span",null,t("smoothly-display",{type:"price",value:100,currency:"EUR"})," + ",t("smoothly-display",{type:"price",value:30,currency:"EUR"}))}))))),t("fake-expandable-row-wrapper",{key:"3a5f1574d5eb17004dd10b579a13e9002f216bdf"},t("smoothly-next-table-expandable-row",{key:"b6d9de9f3c3513fa225265c96162a4d23ad3f4f3"},t("fake-cell-wrapper",{key:"bbf2a862515fa0fcbcf375e57ece305bec73dad1",class:"span-2"},t("smoothly-next-table-cell",{key:"9f4623b7bd2e88ed451b28226fb5b714ae60e5e4",span:2},t("smoothly-display",{key:"1dde9cab0330ab4233bf35a156d33d588f2fdef2",type:"date",value:"2024-01-07"}))),t("smoothly-lazy",{key:"edcdd269b9acbbce57caa1bf30e25fdbd23f2d1d",slot:"detail",content:t("smoothly-display",{type:"date-time",value:"2024-01-07T13:37:00.000Z"})}))))),t("smoothly-next-table-row-group",{key:"1aa93e2c3a25258217f8675430797d343809d0b4"},t("smoothly-display",{key:"6c5ab0e9a2b94add4883f1d905fea7a1cf49f39c",slot:"start",type:"date",value:"2024-01-08"}),t("smoothly-display",{key:"3e86daea52b5404e33e8a50ac11f9b2099f3c31a",slot:"end",type:"price",currency:"EUR",value:720})))))}};vd.style=kd;const xd=[{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 wd=".sc-smoothly-next-demo-nested-h{display:block}.sc-smoothly-next-demo-nested-h>smoothly-display.sc-smoothly-next-demo-nested{font-size:2em}.sc-smoothly-next-demo-nested-h>*.sc-smoothly-next-demo-nested{margin-bottom:2rem}";const Sd=wd;const Cd=class{constructor(t){e(this,t)}render(){return t(s,{key:"afcb91d12b2188a832b5f344fa80aed2ae377917"},t("smoothly-display",{key:"4eb71bbf17e1ddbb233478e4faa2947c702e8b7f",type:"text",value:"Nested"}),t("smoothly-next-table",{key:"2c0bf69688b33746c0a274418df65a10464b420f",color:"primary",columns:8},t("smoothly-next-table-head",{key:"f5c1e7bd1ba7e218f2ad31a698598262413aa04c"},t("smoothly-next-table-row",{key:"2e7269938614a4677a793b4165e564c0085270a3"},t("smoothly-next-table-cell",{key:"a381ac27bad403059bc2a10d6b828ea6e595ad5d"},"Id"),t("smoothly-next-table-cell",{key:"558aa07a3d1deef689f80956374d3c3af547b604"},"Registered"),t("smoothly-next-table-cell",{key:"366b0cec95d3baffac284038cd5403c199f180c8"},"Name"),t("smoothly-next-table-cell",{key:"94b41c5aea9b089cd5a79b9be15c98cde5bc395b"},"Age"),t("smoothly-next-table-cell",{key:"b4fc9626909c9704ccdc27a0b82a9e69a6ea406b"},"Balance"),t("smoothly-next-table-cell",{key:"77fa6fa37704c286862b57bdfb7ab207fcccec51"},"EyeColor"),t("smoothly-next-table-cell",{key:"d7943dc79f9706f889b76bf0a661c91797072522"},"Gender"),t("smoothly-next-table-cell",{key:"9f222000a5c566ea794c195229150ef9b9821aaf"},"Company"))),t("smoothly-next-table-body",{key:"40f669ce19da8d005095220d43cea0234410cf5a"},xd.map((e=>t("smoothly-next-table-expandable-row",null,t("smoothly-next-demo-nested-inner",{color:"secondary",data:e.friends,slot:"detail"}),t("smoothly-next-table-cell",null,e.id),t("smoothly-next-table-cell",null,e.registered),t("smoothly-next-table-cell",null,e.name),t("smoothly-next-table-cell",null,e.age),t("smoothly-next-table-cell",null,e.balance),t("smoothly-next-table-cell",null,e.eyeColor),t("smoothly-next-table-cell",null,e.gender),t("smoothly-next-table-cell",null,e.company))))),t("smoothly-next-table-foot",{key:"31cb73ea50fe4cd712337a36b347496e2e4e4668"},t("smoothly-next-table-row",{key:"565ce53718e7e9e730e9864316242d166513af39"},t("smoothly-next-table-cell",{key:"8c26e7318ff853f3048e28c578b107780dca82e4"},"Footer Cell"),t("smoothly-next-table-cell",{key:"4996825b9fadaa50472fb905269db3acc02acb8e"},"Footer Cell")))))}};Cd.style=Sd;const zd=".sc-smoothly-next-demo-nested-inner-h{display:block;margin:1em auto;width:60%}";const jd=zd;const _d=class{constructor(t){e(this,t);this.data=undefined}render(){var e;return t(s,{key:"8db0be536678e9cf653acdcd8f65e70306483a7e"},t("smoothly-next-table",{key:"ea1ee8a17f81747b929e7a4fcef32f05292b22d8",columns:4},t("smoothly-next-table-head",{key:"4f97f9784254d15e28c2f71e80400fa562f5a8ba"},t("smoothly-next-table-row",{key:"0721f418e5240df4ca449cc481890eaaf93eed66"},t("smoothly-next-table-cell",{key:"197ed222bda59545ee2ca5d949a530330cc0605f"},"Id"),t("smoothly-next-table-cell",{key:"e2a4b1f2805500e9de651dc01ff3547dfb995d6c"},"Name"),t("smoothly-next-table-cell",{key:"e914bc23240d7e5a4e6a4b3f4a0c4fabb4254acb"},"Age"),t("smoothly-next-table-cell",{key:"fc23f3e454dea6711140804a6edc1cf7d27028c5"},"Balance"))),t("smoothly-next-table-body",{key:"a87388656c70945ca653606bf77400bcca3363e1"},(e=this.data)===null||e===void 0?void 0:e.map((e=>t("smoothly-next-table-expandable-row",null,t("smoothly-next-table-cell",null,e.id),t("smoothly-next-table-cell",null,e.name),t("smoothly-next-table-cell",null,e.age),t("smoothly-next-table-cell",null,e.balance)))))))}};_d.style=jd;const Td=".sc-smoothly-next-demo-simple-h{display:block}.sc-smoothly-next-demo-simple-h>smoothly-display.sc-smoothly-next-demo-simple{font-size:2em}.sc-smoothly-next-demo-simple-h>*.sc-smoothly-next-demo-simple{margin-bottom:2rem}";const Id=Td;const Ld=class{constructor(t){e(this,t)}render(){return t(s,{key:"6f6e02e1a0a93e11b4f9294b8c4d4dfcefc5b668"},t("smoothly-display",{key:"ad351c68be667eedb947ff37193d90ccc4ce4ce0",type:"text",value:"Simple"}),t("smoothly-next-table",{key:"3f8322372589ce9567ceb14e20005b20cbcf6aa1",color:"primary",columns:2},t("smoothly-next-table-head",{key:"da8c36a5d6758bb47c2d2c5add980a1c48bbdd0a"},t("smoothly-next-table-row",{key:"4df2b111e3e526162081e2751646e95c106e6cfd"},t("smoothly-next-table-cell",{key:"29c6e2bc7af77ea1431d31d870f8be515ac27138"},"Breed"),t("smoothly-next-table-cell",{key:"a58286cb4e77ca0ab1677aaaaa76f0ba32219e87"},"Coat"))),t("smoothly-next-table-body",{key:"1cf696614d12f2045f770b5f35c0470ba57760d0"},Od.map((e=>t("smoothly-next-table-row",null,t("smoothly-next-table-expandable-cell",null,e.breed,t("div",{slot:"detail"},"Country:",t("br",null),e.country)),t("smoothly-next-table-expandable-cell",null,e.coat,t("div",{slot:"detail"},"Pattern: ",e.pattern))))),t("smoothly-next-table-expandable-row",{key:"83d989d2bb55599a34b3fe361cfd91fa5ad04c7f"},t("div",{key:"ac585b05b9ac042998d35005455f46172bccc052",slot:"detail"},"Content",t("br",{key:"eec546625e2dbd862bc9aaf8ef3dee06a5ed2aa9"}),"of",t("br",{key:"e8b3e8e0c78c88150dace00999fd929cb52da2b5"}),"the",t("br",{key:"d81a9a180f2245b3320852f8789060876ba9ad45"}),"expandable",t("br",{key:"082a9157cbe26a0f37b82ee138c0d4ebe24da619"}),"row"),t("smoothly-next-table-cell",{key:"de3d20a98e85ecb572a0fe6c731140a63396dd30"},"Cell1 in expandable row"),t("smoothly-next-table-cell",{key:"b5927ae96248919daf9b63da397b371f14621b3c"},"Cell2 in expandable row")),t("smoothly-next-table-row",{key:"655aca493f190f32dbd6e4ac47a9e79351c64396"},t("smoothly-next-table-cell",{key:"1e8318d4f95eb194266c69bc44fd86ab8b98e68b"},"Cell5"),t("smoothly-next-table-expandable-cell",{key:"f24610489f8d76028e5ee8e8f9626bc295896f6c"},"Expandable Cell",t("div",{key:"338c13299f41207d1af53fbf1d157091e7382298",slot:"detail"},"Content of the expandable cell"))),t("smoothly-next-table-row",{key:"4164ed04dc06bf7a838bad2fc6c8346bf1ee87eb"},t("smoothly-next-table-expandable-cell",{key:"87c03514d1058a88c66378c88ad8939999184069"},"Expandable Cell 1",t("div",{key:"4d0030352cd904a3345502e753f25b2476656a87",slot:"detail"},"Content of the expandable cell 1")),t("smoothly-next-table-expandable-cell",{key:"c8b1493a54e009a8c42fc523c7ae2ab2bf1beaa1"},"Expandable Cell 2",t("div",{key:"32862c7611bb2cde4f107299fbc80ace9dbe10e7",slot:"detail"},"Content of the expandable cell 2")))),t("smoothly-next-table-foot",{key:"ffa7a9012106c1a48bf10cbf71fc22466710297e"},t("smoothly-next-table-row",{key:"18d3c18fb6baf2bc236b4a82662702ce26fac4da"},t("smoothly-next-table-cell",{key:"2ecec2cb536b241cb4fd870b0458295de107ee85"},"Footer Cell"),t("smoothly-next-table-cell",{key:"e412bf8b3200d5885dec739a0f71370fd750e2cb"},"Footer Cell")))))}};const Od=[{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"}];Ld.style=Id;const Ed=".sc-smoothly-next-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 Ad=Ed;const Dd=class{constructor(t){e(this,t);this.columns=1}smoothlyNextTableExpandableRowChange(e){e.stopPropagation()}smoothlyNextTableExpandableCellChange(e){e.stopPropagation()}render(){return t(s,{key:"30a81a52c27638385185481bf9c0f256d15a3297",style:{"--columns":this.columns.toString()}},t("slot",{key:"912dc85f766b048986cbaddd696219c8ef5d57d5"}))}};Dd.style=Ad;const Md=".sc-smoothly-next-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 $d=Md;const Rd=class{constructor(t){e(this,t)}render(){return t(s,{key:"c059ac18af9ca4e1548426337afbe190c68ccfb4"},t("slot",{key:"5b2a1ca990935fe0d36142c37319ed5f158aa639"}))}};Rd.style=$d;const Pd=".sc-smoothly-next-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 Nd=Pd;const Fd=class{constructor(t){e(this,t);this.span=1}render(){var e;return t(s,{key:"e1d89f9205ee275b8ca39f3804d8689bfd3ab45d",style:{"--smoothly-table-cell-span":(e=this.span)===null||e===void 0?void 0:e.toString(10)}},t("slot",{key:"f2edaf031290ab53caad9201b9ba74d1338d4d01"}))}};Fd.style=Nd;var Hd=undefined&&undefined.__classPrivateFieldGet||function(e,t,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(e):s?s.value:t.get(e)};var Ud=undefined&&undefined.__classPrivateFieldSet||function(e,t,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};var Yd;class Wd{get selected(){var e;return Ud(this,Yd,(e=Hd(this,Yd,"f"))!==null&&e!==void 0?e:Object.values(this.data),"f")}constructor(e,t={}){this.key=e;this.data=t;Yd.set(this,void 0)}handle(e){var t;return new Wd(this.key,"check-all"in e?(t=e["check-all"])!==null&&t!==void 0?t:{}:Object.fromEntries(Object.entries(Object.assign(Object.assign({},this.data),e)).filter((([e,t])=>t!=undefined))))}render(e){var o,s,a;return Array.isArray(e)?t("smoothly-checkbox",{name:"check-all",value:Object.fromEntries(e.map((e=>[e[this.key],e]))),intermediate:this.selected.length>0&&this.selected.length<e.length,checked:this.selected.length==e.length?true:this.selected.length==0&&false}):t("smoothly-checkbox",{name:(o=e[this.key])===null||o===void 0?void 0:o.toString(),value:e,checked:!!this.data[(a=(s=e[this.key])===null||s===void 0?void 0:s.toString())!==null&&a!==void 0?a:""]})}static create(e){return new Wd(e)}}Yd=new WeakMap;const Bd='.sc-smoothly-next-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-next-table-demo-filtered-h>smoothly-display.sc-smoothly-next-table-demo-filtered{font-size:2em;grid-area:header}.sc-smoothly-next-table-demo-filtered-h>smoothly-filter.sc-smoothly-next-table-demo-filtered{margin-left:auto;grid-area:filter;height:fit-content}.sc-smoothly-next-table-demo-filtered-h>*.sc-smoothly-next-table-demo-filtered{margin-bottom:2rem;grid-area:main}.sc-smoothly-next-table-demo-filtered-h>smoothly-next-table.sc-smoothly-next-table-demo-filtered{grid-template-columns:min-content repeat(calc(var(--columns) - 1), auto)}smoothly-next-table.sc-smoothly-next-table-demo-filtered>smoothly-next-table-row.sc-smoothly-next-table-demo-filtered>smoothly-next-table-cell.sc-smoothly-next-table-demo-filtered:nth-of-type(2),.sc-smoothly-next-table-demo-filtered-h>smoothly-next-table.sc-smoothly-next-table-demo-filtered>smoothly-next-table-head.sc-smoothly-next-table-demo-filtered>smoothly-next-table-row.sc-smoothly-next-table-demo-filtered>smoothly-next-table-cell.sc-smoothly-next-table-demo-filtered:nth-of-type(4){justify-content:end}';const Vd=Bd;const Gd=class{constructor(t){e(this,t);this.criteria={};this.cats=undefined;this.selector=Wd.create("breed")}onFilterUpdate(e){e.stopPropagation();this.criteria=e.detail}smoothlyInputHandler(e){e.stopPropagation();this.selector=this.selector.handle(e.detail)}async componentWillLoad(){const e=await sr("https://catfact.ninja/breeds?limit=15");this.cats=e.status==200&&(await e.body).data.map((e=>{var t,o;return Object.assign(Object.assign({},e),{price:[...e.breed].reduce(((e,t)=>e+t.charCodeAt(0)),0),nested:Object.assign(Object.assign({},e),{names:(t=qd[e.country])!==null&&t!==void 0?t:[]}),names:(o=qd[e.country])!==null&&o!==void 0?o:[]})}))}render(){const e=this.cats&&el(this.criteria,this.cats);return t(s,{key:"c404d58def3c3f7914736425f44b84ed0cf62441"},t("smoothly-display",{key:"a9cbe527936a663f454e7946397404f0d61af565",type:"text",value:"Filtered"}),t("smoothly-filter",{key:"00613bd320d8e7d244649e3aabb4ef8f35626abf"},t("smoothly-filter-toggle",{key:"dfdb7ef8c4ee1cb66836d1577a2b0315d3fc94ab",properties:{["nested.pattern"]:"Ticked",breed:""},icon:"add",toolTip:"Nested Ticked",slot:"bar"}),t("smoothly-filter-toggle",{key:"a53b725089f7909b8dba61c681be67f3b6a22648",properties:{pattern:"Ticked",breed:""},icon:"paw",toolTip:"Ticked cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"a9946e90151c488dca6cf485aecb7e9280eab2b1",properties:{breed:"Bombay",pattern:"Solid"},icon:"radio-button-on",toolTip:"Solid bombay cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"4d77c916108266c02800615a85ac4e86c035d002",properties:{pattern:"Colorpoint"},not:true,active:true,icon:"alert",toolTip:"Colored cats",slot:"bar"}),t("smoothly-filter-select",{key:"fc584e7577ae6cf7ffcf3cbb4376a113bca12041",menuHeight:"5items",label:"coat",property:"nested.coat",slot:"bar",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("div",{key:"cd47ae3e7fde506a0fee97fccc62a0fe2cb13758",slot:"detail"},t("smoothly-form",{key:"843a2f2d18ff4a5d226362c05271de9fdd208370",looks:"border"},t("smoothly-filter-select",{key:"ad9c7bf21e573c01fdadd3ebfe6bdc0a1ef58cf5",menuHeight:"5items",label:"coat",property:"nested.coat",multiple:true},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("smoothly-filter-select",{key:"f9e28061b92518d2f2c6fb76bab76232ea21611b",menuHeight:"5items",label:"breed",property:"breed",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.breed?Object.assign(Object.assign({},e),{[t.breed]:t}):e),{})).map((e=>e.breed&&t("smoothly-item",{slot:"items",value:e.breed},e.breed)))),t("smoothly-filter-select",{key:"20950cf227e487754578871d8cbf7f5d1ec341aa",menuHeight:"5items",label:"names",property:"nested.names",multiple:true,type:"array"},Object.keys(Object.values(qd).flat().reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:true})),{})).flatMap((e=>t("smoothly-item",{slot:"items",value:e},e)))),t("smoothly-filter-input",{key:"4ae6421aeff8d0d33c4d1241e27af31cfc58a536",label:"Coat",property:"coat"}),t("smoothly-filter-input",{key:"d9b10a96f555bc1ca6f468a58309cce0eab8fe35",label:"Nested Coat",property:"nested.coat"})))),!e?"Failed to load data.":t("smoothly-next-table",{columns:4},t("smoothly-next-table-head",null,t("smoothly-next-table-row",null,t("smoothly-next-table-cell",null,this.selector.render(e)),t("smoothly-next-table-cell",null,"Breed"),t("smoothly-next-table-cell",null,"Coat"),t("smoothly-next-table-cell",null,"Price"))),e.map((e=>t("smoothly-next-table-row",null,t("smoothly-next-table-cell",null,this.selector.render(e)),t("smoothly-next-table-expandable-cell",null,e.breed,t("div",{slot:"detail"},"Country: ",e.country)),t("smoothly-next-table-expandable-cell",null,e.coat,t("div",{slot:"detail"},"Pattern: ",e.pattern)),t("smoothly-next-table-cell",null,t("smoothly-display",{type:"price",value:e.price,currency:"SEK"}))))),t("smoothly-next-table-foot",null,t("smoothly-next-table-row",null,t("smoothly-next-table-cell",{span:3},t("smoothly-display",{type:"text",value:`Selected: ${this.selector.selected.length!=0?this.selector.selected.length:e?e.length:"?"}`}))))))}};const qd={"United States":["bill","bob","brad","joe","molly"],Australia:["nigel","bruce","sheila","brad","shane"],"United Kingdom":["nigel","james","molly","shane","bob"],Greece:["dionysius","demetrius","polikarpos"]};Gd.style=Vd;const Kd='.sc-smoothly-next-table-expandable-cell-h{display:contents}.sc-smoothly-next-table-expandable-cell-h>div.sc-smoothly-next-table-expandable-cell{padding:0.3rem 1.1rem}.sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-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-next-table-expandable-cell-h>div.content.sc-smoothly-next-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-next-table-expandable-cell-h>div.content.sc-smoothly-next-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-next-table-expandable-cell-h>div.content.sc-smoothly-next-table-expandable-cell::before{rotate:45deg}.sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-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-next-table-expandable-cell-h>div.sc-smoothly-next-table-expandable-cell:first-child{cursor:pointer}.sc-smoothly-next-table-expandable-cell-h>div.detail.sc-smoothly-next-table-expandable-cell{grid-column:1/-1;grid-row:2;position:relative}[open].sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-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-next-table-expandable-cell-h>div.sc-smoothly-next-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-next-table-expandable-cell-h:not([open])>div.detail.sc-smoothly-next-table-expandable-cell{display:none}.sc-smoothly-next-table-expandable-cell-h>div.detail.sc-smoothly-next-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-next-table-expandable-cell-h>div.detail.sc-smoothly-next-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 Zd=Kd;const Jd=class{constructor(t){e(this,t);this.smoothlyNextTableExpandableCellChange=o(this,"smoothlyNextTableExpandableCellChange",7);this.smoothlyNextTableExpandableCellRegister=o(this,"smoothlyNextTableExpandableCellRegister",7);this.span=1;this.open=false}componentWillLoad(){this.smoothlyNextTableExpandableCellRegister.emit()}async close(){this.open=false}clickHandler(){this.open=!this.open}openChange(){this.smoothlyNextTableExpandableCellChange.emit(this.open)}render(){var e;return t(s,{key:"3d39e6ee0042e2aeb858d759cf32e24b582401bb",style:{"--smoothly-table-cell-span":(e=this.span)===null||e===void 0?void 0:e.toString(10)}},t("div",{key:"76f58ea04fff2d99d957bf277800188d9c03224e",onClick:()=>this.clickHandler(),class:"content"},t("slot",{key:"b4950a570cd39ddfc184314edfa4fe72db9f1fa1"})),t("div",{key:"86bf0fa6dff3855667a125ec3771c8cf0b9a28e5",class:"detail"},t("slot",{key:"774928608a4a85370fd1d854466036d7a2f6f2f9",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};Jd.style=Zd;const Xd='.sc-smoothly-next-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-next-table-expandable-row-h.sc-smoothly-next-table-expandable-row-s>*{cursor:pointer}.sc-smoothly-next-table-expandable-row-h:has(>.sc-smoothly-next-table-expandable-row:not(:last-child):hover)>.sc-smoothly-next-table-expandable-row:not(:last-child){background-color:rgb(var(--smoothly-table-hover-background));color:rgb(var(--smoothly-table-hover-foreground))}[open].sc-smoothly-next-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-next-table-expandable-row-h>div.sc-smoothly-next-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-next-table-expandable-row-h>.sc-smoothly-next-table-expandable-row:first-child:not(:last-child){position:relative}.sc-smoothly-next-table-expandable-row-h>.sc-smoothly-next-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-next-table-expandable-row-h:has(>.sc-smoothly-next-table-expandable-row:not(:last-child):hover)>.sc-smoothly-next-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-next-table-expandable-row-h>.sc-smoothly-next-table-expandable-row:first-child:not(:last-child)::before{rotate:45deg}[open].sc-smoothly-next-table-expandable-row-h>div.sc-smoothly-next-table-expandable-row:last-child{overflow:visible;padding:0.3rem 1.1rem}.sc-smoothly-next-table-expandable-row-h>div.sc-smoothly-next-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-next-table-expandable-row-h>div.sc-smoothly-next-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 Qd=Xd;const eh=class{constructor(t){e(this,t);this.smoothlyNextTableExpandableRowChange=o(this,"smoothlyNextTableExpandableRowChange",7);this.open=false}clickHandler(e){this.div&&e.composedPath().includes(this.div)||(this.open=!this.open)}openChange(){this.smoothlyNextTableExpandableRowChange.emit(this.open)}render(){return t(s,{key:"50be61ce8020cebf50901b637bc1e7cbc7025f8f",onClick:e=>this.clickHandler(e)},t("slot",{key:"c82e4510eb7073106b846db0ab5e9051a73f11fd"}),t("div",{key:"b334189f1e50102b5f2e31b0a589dd69ddb037cf",ref:e=>this.div=e},t("slot",{key:"4afb77d300dc59eb316507ee996bf58d85b5a556",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};eh.style=Qd;const th=".sc-smoothly-next-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 oh=th;const sh=class{constructor(t){e(this,t)}render(){return t(s,{key:"fc642613d84473320dbcc35e96ddaecc8be9762e"},t("slot",{key:"03441f79c1ad49482323e7bb906919d8faca93f7"}))}};sh.style=oh;const ah=".sc-smoothly-next-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-next-table-head-h{box-shadow:var(--smoothly-table-header-shadow)}";const ih=ah;const nh=class{constructor(t){e(this,t);this.onScroll=e=>{if(e.target instanceof HTMLElement){this.scrollParent=e.target;const t=this.scrollParent.getBoundingClientRect();const o=this.element.getBoundingClientRect();this.scrolled=t.top==o.top}};this.scrolled=undefined}connectedCallback(){var e;this.scrollParent=n.findParent(this.element);(e=this.scrollParent)===null||e===void 0?void 0:e.addEventListener("scroll",this.onScroll)}disconnectedCallback(){var e;(e=this.scrollParent)===null||e===void 0?void 0:e.removeEventListener("scroll",this.onScroll)}render(){return t(s,{key:"1043bf4bd8d6c8a1bbba8bd41b5a0c9f2a02f0a6",class:{scrolled:!!this.scrolled}},t("slot",{key:"83f593f29da158b6db03989d657df67cf48d0d91"}))}get element(){return a(this)}};nh.style=ih;const lh=".sc-smoothly-next-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-next-table-row-h:has(smoothly-next-table-expandable-cell){grid-template-rows:auto 0fr 0fr}.sc-smoothly-next-table-row-h:has(smoothly-next-table-expandable-cell[open]){grid-template-rows:auto 1fr 0fr}";const rh=lh;const ch=class{constructor(t){e(this,t);this.expandableCells=new Set}smoothlyNextTableExpandableCellRegisterHandler(e){e.stopPropagation();this.expandableCells.add(e.target)}smoothlyNextTableExpandableCellChangeHandler(e){if(e.detail)for(const t of this.expandableCells)e.target!=t&&t.close()}render(){return t(s,{key:"ea3b4ac10c81442db3b99ce3e668d46db6a8fa09"},t("slot",{key:"edff1558674b1e24e9dcec1dff6664756ac88dbe"}))}};ch.style=rh;const dh=".sc-smoothly-next-table-row-group-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;margin-top:1px}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{grid-column:1 / -1;display:grid;position:relative;cursor:pointer}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:last-child{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}[align].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{grid-template-columns:subgrid}[align].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group{display:contents}[align].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group>*.sc-smoothly-next-table-row-group{padding:0.3rem 1.1rem}.sc-smoothly-next-table-row-group-h:not([align])>div.sc-smoothly-next-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-next-table-row-group-h:not([align])>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:first-child{justify-self:start;display:flex;gap:1rem}.sc-smoothly-next-table-row-group-h:not([align])>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:last-child{justify-self:end;display:flex;gap:1rem}.sc-smoothly-next-table-row-group-h:not([open]){grid-template-rows:auto 0fr}.sc-smoothly-next-table-row-group-h:not([open])>div.sc-smoothly-next-table-row-group:last-child{grid-row:2;overflow:hidden}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-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-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child:hover>div.sc-smoothly-next-table-row-group:first-child::before{opacity:1}[open].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:first-child::before{rotate:45deg}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{background-color:rgb(var(--smoothly-default-tint))}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{border-bottom:1px solid rgb(var(--smoothly-default-shade))}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child:hover{background-color:rgb(var(--smoothly-default-shade))}";const hh=dh;const mh=class{constructor(t){e(this,t);this.smoothlyNextTableRowGroupChange=o(this,"smoothlyNextTableRowGroupChange",7);this.align=false;this.open=false}clickHandler(){this.open=!this.open;this.smoothlyNextTableRowGroupChange.emit(this.open)}render(){return t(s,{key:"baeea3f08966fec8b30ead88b6cafd3c4f1fd176"},t("div",{key:"d20069252b79e2ab3808f7da0d466dc92500e69a",onClick:()=>this.clickHandler()},t("div",{key:"b7415fb8b61f4fb75526e944ea5f2dd1706e12f1"},t("slot",{key:"277dd8f6a037de979757a15d82541f996c6600a8",name:"start"})),t("div",{key:"c6c1744fa296a962aa0b0845870bcc53a7ce5f42"},t("slot",{key:"bbc0a96a039055237c37358b31f8cff7a4abab78",name:"end"}))),t("div",{key:"44c0c4335f4d894b406741b5f6d1d004f38f7b4c"},t("slot",{key:"a2f405015c0c8e5cb171308c35d1941af694f2e1"})))}};mh.style=hh;const yh=".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 bh=yh;const uh=class{constructor(t){e(this,t);this.remove=o(this,"remove",7);this.listener=e=>{if(e.state=="closed")this.remove.emit(e);else this.tick={}};this.notice=undefined;this.closable=true;this.icon=undefined;this.tick={}}get properties(){let e;switch(this.notice.state){case"delayed":case"warning":e=["warning","warning-outline"];break;case"success":e=["success","checkmark-circle"];break;case"executing":e=["light","hourglass-outline"];break;case"failed":e=["danger","alert-circle"];break;default:e=["light",undefined];break}return e}onTrigger(e){if(e.detail.name=="close"){e.stopPropagation();this.notice.close()}}onUpdatedNotice(e,t){if(t)t.unlisten(this.listener);e.listen(this.listener)}componentDidLoad(){this.onUpdatedNotice(this.notice)}render(){return t(s,{key:"43a3c3b3102412e3025e89cbb42b766e726ac713",color:this.properties[0],fill:"solid"},this.closable&&t("smoothly-trigger",{key:"7f642488fb4104d4150de311d08205fc2af23d48",fill:"clear",name:"close"},t("smoothly-icon",{key:"58ed12291f9fa6316e83beb67469ecc7186aa79d",name:"close-circle-outline"})),t("span",{key:"5a402e3a00398560ec1eda603a1492b4f1a6a3c8",class:this.icon?"icon":"clean"},this.icon&&t("smoothly-icon",{key:"b0d92f719da18df0ebab3075a278d0a468e73dc3",name:this.properties[1]}),t("p",{key:"5a488d2493680c97d67f5f94eb2a05d4a09e069f"},this.notice.message)))}static get watchers(){return{notice:["onUpdatedNotice"]}}};uh.style=bh;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(t){e(this,t);this.icon=false;this.notices=[]}onNotice(e){this.notices=[...this.notices,e.detail]}onRemove(e){this.notices=[...this.notices.filter((t=>t!=e.detail))]}render(){return[t("slot",{key:"e960448898c2c370923824509f94c86e7a32d3ba"}),t("aside",{key:"087ec28784d586acca0024579f71a9cf201ec091"},this.notices.map((e=>t("smoothly-notification",{notice:e,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 xh=class{constructor(t){e(this,t);this.size="large";this.overlay=undefined}render(){const e=this.size=="large"?6:this.size=="medium"?8:this.size=="icon"?8:12;return t(s,{key:"63eb430e6fab4330e9819884645455867633ff48",style:{"--spinner-size":this.size=="large"?"5em":this.size=="medium"?"3em":this.size=="icon"?"1.8em":"1.2em"}},t("svg",{key:"abc002cff5906b3c882d908382d41028dfa69dc8",class:"spinner",viewBox:`0 0 ${60+e} ${60+e}`,xmlns:"http://www.w3.org/2000/svg"},t("circle",{key:"ff47ae8ca20d0912e4faf98aa13b506ba5813232",class:"path",fill:"none","stroke-width":e,"stroke-linecap":"round",cx:`${30+e/2}`,cy:`${30+e/2}`,r:"30"})))}};xh.style=vh;const wh='[color=default].sc-smoothly-submit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-submit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-submit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-submit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-submit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-submit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-submit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-submit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-submit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-submit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-submit-h{--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-submit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-submit-h{display:inline}[disabled].sc-smoothly-submit-h{opacity:0.5;pointer-events:none}.sc-smoothly-submit-h>a.sc-smoothly-submit,.sc-smoothly-submit-h>button.sc-smoothly-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-submit-h>a.sc-smoothly-submit:empty,.sc-smoothly-submit-h>button.sc-smoothly-submit:empty{border-width:0}.sc-smoothly-submit-h>button.sc-smoothly-submit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-submit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-submit{padding:0.8em;min-width:8em}.sc-smoothly-submit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-submit{padding:0.6em}[size=icon].sc-smoothly-submit-h>button.sc-smoothly-submit{padding:0.5em}[type=button].sc-smoothly-submit-h>a.sc-smoothly-submit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:100%}[size=large].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:130%}.sc-smoothly-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-submit-h>button.sc-smoothly-submit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-submit-h{width:100%}[expand=full].sc-smoothly-submit-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-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-submit-h:not([fill=clear])>button.sc-smoothly-submit:hover,.sc-smoothly-submit-h>button.sc-smoothly-submit:focus-visible,[fill=outline].sc-smoothly-submit-h:active>button.sc-smoothly-submit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit:hover::before,[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit:focus-within::before,[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-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-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:hover,.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:focus-visible,.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-submit-h>button.sc-smoothly-submit,.sc-smoothly-submit-h.sc-smoothly-submit-s>smoothly-icon,.sc-smoothly-submit-h .sc-smoothly-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-submit-h{display:none}.sc-smoothly-submit-h{margin:1em 0em}';const Sh=wh;const Ch=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color="success";this.expand=undefined;this.fill=undefined;this.disabled=false;this.type=undefined;this.size=undefined;this.shape=undefined;this.prevent=true}async componentWillLoad(){this.smoothlyInputLoad.emit((e=>{if(Kc.is(e)){this.parent=e}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.submit()}render(){return t(We,{key:"4f0f55d055943d24903a135074e7a26bf616a821",disabled:this.disabled,type:this.type},t("slot",{key:"57ff7e6d9f789eae54a54d6ba6ce4636767de410"}))}};Ch.style=Sh;const zh=".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 jh=zh;const _h=class{constructor(t){e(this,t);this.smoothlySummaryOpen=o(this,"smoothlySummaryOpen",7);this.inputs={};this.open=false;this.color=undefined;this.fill="solid";this.size="tiny"}async toggleHandler(e){if(e.target instanceof HTMLDetailsElement){this.open=e.target.open;this.smoothlySummaryOpen.emit(this.open);this.open?await Promise.all(Object.values(this.inputs).map((e=>e.register()))):await Promise.all(Object.values(this.inputs).map((e=>e.unregister())))}}onInputLoad(e){if(hr.Element.is(e.target)){this.inputs[e.target.name]=e.target;if(!this.open)e.stopPropagation()}}render(){return t("details",{key:"a8d5d1503aeaa1ec9cc738ddae8603f2a3f6988c",onToggle:e=>this.toggleHandler(e),open:this.open},t("summary",{key:"d9982b3e2c4b3d273066dcbfd457fb239f54f0b4"},t("smoothly-icon",{key:"40949f769814b95525c7239c685cb61ae5d13173",name:"caret-forward",color:this.color,fill:this.fill,size:this.size}),t("slot",{key:"1d1fafd0549b8da6150c7299fc8fde77b8879dfc",name:"summary"})),t("slot",{key:"d02d70dcc5145413c1d34c51634f4b744f50b7d7",name:"content"}))}};_h.style=jh;const Th=".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 Ih=Th;const Lh=class{constructor(t){e(this,t);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((e=>e.register()))):await Promise.all(Object.values(this.inputs).map((e=>e.unregister())))}onClick(){this.open=true}connectedCallback(){this.smoothlyTabLoad.emit()}async componentDidLoad(){await this.openHandler()}onInputLoad(e){if(hr.Element.is(e.target)){this.inputs[e.target.name]=e.target;if(!this.open)e.stopPropagation()}}render(){return t(s,{key:"82fa93a5fd1668ad6920381496b4122b666b23fa"},t("div",{key:"def76d857153320a77e9ac5a7d5ac44217abae3a"},t("label",{key:"b6d0b9281fa9cdfcd663dcd2168f50d122a21768"},this.label)),t("div",{key:"7a5eec80d48636333f319b838bf8b309b8436157",hidden:!this.open},t("slot",{key:"5dc00e63cd6cea0151a4d895195c1c0f9dec733d"})))}static get watchers(){return{open:["openHandler"]}}};Lh.style=Ih;const Oh=".sc-smoothly-table-h{display:table;width:var(--table-width, 80%);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color))}[root].sc-smoothly-table-h{margin-left:1.5rem;margin-right:1.5rem}.sc-smoothly-table-h:not([root]){margin:0;width:100%}";const Eh=Oh;const Ah=class{constructor(t){e(this,t);this.smoothlyNestedTable=o(this,"smoothlyNestedTable",7);this.smoothlySpotlightChange=o(this,"smoothlySpotlightChange",7);this.smoothlyTableLoad=o(this,"smoothlyTableLoad",7);this.expandable=new WeakMap;this.expanded=new Set;this.root=true;this.color=undefined;this.align="middle";this.open=false}componentWillLoad(){this.smoothlyNestedTable.emit((()=>this.root=false));this.smoothlyTableLoad.emit((e=>this.owner=e))}handleExpandableLoaded(e){e.stopPropagation();e.target&&this.expandable.set(e.target,e.detail)}handleExpandableState(e){e.stopPropagation();e.target&&(e.detail?this.expanded.add(e.target):this.expanded.delete(e.target));this.smoothlySpotlightChange.emit({allowSpotlight:!this.expanded.size,owner:this.owner})}handleSpotlightState(e){var t;this.open=!!this.expanded.size;e.target!=this.element&&(e.stopPropagation(),e.detail.owner&&((t=this.expandable.get(e.detail.owner))===null||t===void 0?void 0:t.allowSpotlight(e.detail.allowSpotlight)))}handleNestedTable(e){e.target!=this.element&&(e.stopPropagation(),e.detail())}handleEvents(e){e.stopPropagation()}render(){return[t("slot",{key:"f820bba496a87eec4d3a16f455493511aafe9bfc"})]}get element(){return a(this)}};Ah.style=Eh;const Dh=".sc-smoothly-table-cell-h{display:table-cell;line-height:1.5rem;white-space:nowrap;padding:0.3rem .5rem;box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade))}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{display:none;width:1em;height:auto;aspect-ratio:1 / 1;margin:0 0.3rem;transition:transform 0.2s, opacity 0.1s;opacity:0.3}.sc-smoothly-table-cell-h:hover>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{opacity:1}smoothly-table-expandable-row>div .sc-smoothly-table-cell-h:last-of-type>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{display:flex}smoothly-table-expandable-row[open]>div>.sc-smoothly-table-cell-h:last-of-type>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{transform:rotate(90deg)}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell{display:grid;grid-template-columns:1fr auto;align-items:center}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell>div.sc-smoothly-table-cell{width:100%}smoothly-table[align=bottom] .sc-smoothly-table-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-cell-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-cell-h{vertical-align:top}";const Mh=Dh;const $h=class{constructor(t){e(this,t)}render(){return t(s,{key:"dbeaef35c8882ed996d835b1b43e4ec3aa426f0b"},t("div",{key:"f6be207b91e0b99e3fb829b7a83ac333502a0871"},t("div",{key:"3d879455c464bba77b6c73d58f24cbb0e1fb4740"},t("slot",{key:"c3709444fb691f18cd7adeca85ee6326b525a286"})),t("smoothly-icon",{key:"6319347b9432db0fe25beba8c978daa26fcc568c",name:"caret-forward-outline",size:"tiny"})))}};$h.style=Mh;const Rh=".sc-smoothly-table-demo-h{display:flex;flex-direction:column;align-items:center;gap:3rem;padding-bottom:10rem;margin-left:2rem;margin-right:2rem}.content.sc-smoothly-table-demo{display:contents}smoothly-lazy.sc-smoothly-table-demo{width:80%}";const Ph=Rh;const Nh=class{constructor(t){e(this,t)}render(){return t(s,{key:"c2d52ed632722eed2a62ad7a8a1579532d535ee9"},t("h4",{key:"6c2693b2a15e519fdfeaaad2babcc5a692d1df92"},"Demo table 1: Filtered & Checked Table")," ",t("smoothly-lazy",{key:"7370339c630782920d4ea3f87d9ca2a9fed09300",content:t("smoothly-table-demo-filtered",null)}),t("h4",{key:"ec5ddba9aab436b3ea95416de3253c96f2619c39"},"Demo table 2")," ",t("smoothly-table-testing",{key:"6aa1c41adfa38ae2a28fdae872105000feebae48"})," ",t("h4",{key:"939935ca5079dbb902054281239160cc8043ba61"},"Demo table 3"),t("smoothly-table",{key:"d6dd1dcd03f7a8536dd35d947875b123868f363c"},t("smoothly-table-row",{key:"44b5a11d7a6a946caf0026e987a7aecab47a46ba"},t("smoothly-table-header",{key:"5c82e46165bfc38e1da1c9bf16a7c622cdc1cbb2"},"Header A"),t("smoothly-table-header",{key:"9793a61c1baa8ed1a05385d8ba6d5ecc8feabca8"},"Header B"),t("smoothly-table-header",{key:"2fdcec65ab24358281cec2f9a234b20320fe7310"},"Header C"),t("smoothly-table-header",{key:"be4f0c72552082bf4db899dcdc7c817e613b525d"},"Header D")),t("smoothly-table-row",{key:"685202c84404570268fe43b9d15bded227d21412"},t("smoothly-table-expandable-cell",{key:"0c9a6e9f61e686a12ef51ddfd5573951838ffe08"},"normal row (exp.cell)",t("div",{key:"9cf941c6bd38cc9da27da2ec2003587a9d61245c",slot:"detail"},"expandable cell 1 content")),t("smoothly-table-expandable-cell",{key:"44f09c71e18c1dea662b7536e1b85e774e60b3fa"},"expandable cell",t("div",{key:"7cc27d884ef807845990859b6220bbc3a00e0f74",slot:"detail"},"expandable cell 2 content")),t("smoothly-table-expandable-cell",{key:"39ac19023b51b98928685c28453a62c175ece490"},"expandable cell",t("div",{key:"1feb7f59580a2d3236a754acaf3736c4b12a3522",slot:"detail"},"expandable cell 3 content")),t("smoothly-table-expandable-cell",{key:"4596552b8df58fa0fd7163db0e3dfa2ab8830a01"},"expandable cell",t("div",{key:"322cc72dffa047c63de26e76415b6405acb9c37f",slot:"detail"},"expandable cell 4 content"))),t("smoothly-table-row",{key:"b302f6bad02d9ff463f4d6d341f27b17839fbcdb"},t("smoothly-table-cell",{key:"f53be8bf1ac7d14b00f7d6d5ddce430e966df180"},'normal row (nor.cell)"'),t("smoothly-table-cell",{key:"8daf7d43483e973e62d10f189b4c9c340fce78b8"},"normal cell"),t("smoothly-table-expandable-cell",{key:"56d7c49a27529332278fc39e87c2882f311fe245"},"expandable cell",t("div",{key:"bff87d82c49e2e67863d6993d93a261d2eec6a13",slot:"detail"},"expandable cell details.")),t("smoothly-table-expandable-cell",{key:"53bfb99470e8de53b6ca24dd1ecfafbe0e74680f"},"expandable cell",t("div",{key:"1a708007780b119386020462e0c76f6accdaa789",slot:"detail"},"expandable cell details."))),t("smoothly-table-expandable-row",{key:"e18677d9c3a94f4836a10a536632ffc70f51b283"},t("smoothly-table-cell",{key:"7f978bf73194847f9febf4aaac80134ffcebb58d"},"expandable row (nor.cell)"),t("smoothly-table-cell",{key:"d528b2a72ddd039c82fdabd4e8851f7944e19f96"},"Normal cell"),t("smoothly-table-cell",{key:"6b0b4d3f30b31a95133defff1c1c02dba990b723"},"normal cell"),t("smoothly-table-cell",{key:"e0539d8af66a3ae4d17fd5ef02967dfda589b38c"},"Normal cell"),t("div",{key:"f49755576fda95ee0348da9e24169bd2bff01142",slot:"detail"},"expandable row content"))),t("h4",{key:"ba5f2843a357a782b0347d475ee4dd5360572813"},"Demo table 4"),t("smoothly-table",{key:"181ad9a0c236503c1288ff3e371e1fe323154cd0"},t("smoothly-table-row",{key:"a9dc6f2fb604e9f07355c87fc5ae13e45daefea2"},t("smoothly-table-header",{key:"1bd1d0e1549da881ce3040f6c927816455089259"},"Header A"),t("smoothly-table-expandable-cell",{key:"c119128d0589bf3b771d8165ee358a547650e51a"},"Header expansion",t("div",{key:"d0428eba89739b88956fb71a68be68c610b3861e",slot:"detail"},"Expansion content"))),t("smoothly-table-expandable-row",{key:"a54c5b76e8e8db3b63af0a98ec58a955bbf48a60"},t("smoothly-table-cell",{key:"e8a46e0600bed42f94985bcf09d7581a9f5f8f5b"},"A Content"),t("smoothly-table-cell",{key:"3941e1804625493e3e17963d83ab81f483072f0c"},"Expansion cell"),t("div",{key:"4df8506a7bafd4cfd53a328d8c68f93f017e99f4",slot:"detail"},t("smoothly-tab-switch",{key:"098ad77004c72f3fd0fbdd43364ae44a99aa1d96"},t("smoothly-tab",{key:"626f48ff879c4fa885c370b2635ecb19a20c5f28",label:"innertable 1",open:true},t("smoothly-table",{key:"d010ef824f9e9881871cd58748f9099d2ad9a33c"},t("smoothly-table-row",{key:"eabd83af25882bbd229998ea5e1f4c521206fba7"},t("smoothly-table-header",{key:"fc2c448bc2a04e81b51b21eba3df60316506b23c"},"Header B")),t("smoothly-table-expandable-row",{key:"ba8fadbebcf9171a41d49c5cb90c5ecfa29cd9aa"},"B Content"))),t("smoothly-tab",{key:"ba476cffc2b17330cbf507c61fb5b834297c1547",label:"innertable 2"},t("smoothly-table",{key:"3d25f6dea0616e0319de7b5dd61dba63b977babf"},t("smoothly-table-row",{key:"792b9a85a866175b6bbbe1f2aa8056d614b59212"},t("smoothly-table-header",{key:"f7d5eecb605554b95c6df5fafbce00ea69cac00b"},"Header C")),t("smoothly-table-expandable-row",{key:"ac614f28e0c29a952f5cc9915568a57deba9409a"},t("smoothly-table-cell",{key:"997018995ca3b0e127e1e58f60ac51a03b5a1d17"},"C Content"))))))),t("smoothly-table-row",{key:"cdae56eb4afb25d3ed32d2c4dd3a9593b60d58f9"},t("smoothly-table-cell",{key:"9dbb1105388962d101bd18aef1ed79c57baf017b"},"A Content"),t("smoothly-table-expandable-cell",{key:"ea35ad9b5073c97d68f31c9d825e5d751e8a09ab"},"Expandable cell",t("div",{key:"2eadd761c83b837d097194ab38d37668e6b57367",slot:"detail"},"Expansion content")))),t("h4",{key:"c0921bb24450881229d7c0144ac12d60c3bf8802"},"Demo table 5"),t("smoothly-table",{key:"8b8b27a06a924553770762449aae0d692dcffb02"},t("smoothly-table-row",{key:"ef0757b3eb3241dca02d69cb5b6ecff660788677"},t("smoothly-table-header",{key:"e2394dfc5ad2aae143ed754cfcf1b16b587cf678"},"A"),t("smoothly-table-header",{key:"976f42f99dfb0aa1ee9e44f41ef869762eb11273"},"B")),t("smoothly-table-expandable-row",{key:"ea9d260bc85c98fb1823a6d518e93fac6049cf16"},t("smoothly-table-cell",{key:"42b115fba57971d490fefbf952f0c5d254ec7ba1"},"nested expandable row"),t("smoothly-table-cell",{key:"3c7079b17695ae5dccc3a6ae5b5c482995cc8c53"},"b row"),t("div",{key:"164765386ecc86a447e4137e87e9d7e1cb573295",slot:"detail"},t("smoothly-table",{key:"75450c230a01788649351bc80de0853b1f8935df"},t("smoothly-table-row",{key:"b14c7ae5a9dd28decbe2128d0ceba6e5e80244b2"},t("smoothly-table-header",{key:"9057cc610f407115f0822c86a60a17568c78a603"},"C"),t("smoothly-table-header",{key:"efc795aee91ff54f23f4e7960229807a67f8cc30"},"D")),t("smoothly-table-expandable-row",{key:"91e50c30ceb62307e4ad1df65e38566659aad7af"},t("smoothly-table-cell",{key:"a24d04856a8497c8f25a4a1b7744e9e973cc1c14"},"c"),t("smoothly-table-cell",{key:"043e58686a7541ff38e98cc33e3586c2ff5f0c1e"},"d"),t("div",{key:"b7731de099d67a42654775781c3a96ee0810af2f",slot:"detail"},t("smoothly-table",{key:"ca775626562496b8dc0434079316b0f4fd1d89fa"},t("smoothly-table-row",{key:"eb1fefb44df5c188c4db01ff41d7cf7c00cc2b95"},t("smoothly-table-header",{key:"f3164f22ddac32daf151fcd5eba6f45bbba965dc"},"E"),t("smoothly-table-header",{key:"ab67b9c9e21dd0e6e6638c24cc9cd775054b1c91"},"F")),t("smoothly-table-expandable-row",{key:"356ed8bb3a77a72a20756b9af76e19ac0069afdf"},t("smoothly-table-cell",{key:"76b4d9fd59c7b553ba1ad1504ed16af968913f11"},"e row"),t("smoothly-table-cell",{key:"9bf94026759eb18cc35cde3e471e24e7528f4324"},"f row"),t("div",{key:"409341d673cf5dd2f9b0030a65068d913eaa362b",slot:"detail"},"nested expandable row expansion e f")))))))),t("smoothly-table-expandable-row",{key:"2d0eba2de8835b8fcbba2145bb554454d8690cdd"},t("smoothly-table-cell",{key:"177e9d24417f34c7d73b1053eaa81e5494deb6a5"},t("span",{key:"aa67f856f35c3abdc27d9c6e1c1f531c438b9e01"},"one"),t("span",{key:"7282142fb079c4732c462bbabd5d89e9e905140c"},"two"),t("span",{key:"abb82c348c566994a35a7989a9c7c23c98786b85"},"three")),t("smoothly-table-cell",{key:"b5365ce005d7a4e7f9ec6a13572a293b5c07117b"},"five",t("smoothly-icon",{key:"7b4594aa25c395070cf2f5abcad75798d89b9878",name:"paper-plane-sharp",size:"small"})),t("div",{key:"f0cb3e4fdee2c1593106f1504e2ef7a638089f07",slot:"detail"},"four")),t("smoothly-table-row",{key:"67341204442bc35d5e036cce9ebf7165e2e5beea"},t("smoothly-table-expandable-cell",{key:"1fd020b62e4752e4da359b9072b29a1c469164f1"},t("span",{key:"d9987a50b30c2dbbacf430950cec88b71df7c4bb"},"nested expandable cells"),t("div",{key:"7dca663955279cf553bdad10fa7ba1ba9ad849eb",slot:"detail"},t("smoothly-table",{key:"b12943e4c64294fe3dc852ea9a387f2bd4103f0e"},t("smoothly-table-row",{key:"815fcae633d87d07229b224bd285b45fd228a0cf"},t("smoothly-table-header",{key:"a4232bbf78259925b401c60b2e02a734e88d5992"},"E"),t("smoothly-table-header",{key:"87be1bbde66b839a61043266e4f74a081db84c6c"},"F")),t("smoothly-table-row",{key:"85bac83d081136be7b4e4641cec5565f141c647b"},t("smoothly-table-expandable-cell",{key:"db891efb53153b21e57f234536428607fe7ff8dc"},"e cell",t("div",{key:"d58b72b0d6d4e8c1a47cad77acaedbe3aa333277",slot:"detail"},t("smoothly-table",{key:"2d831b60e3916e9c55c996c77cc388fa90a9a6d8"},t("smoothly-table-row",{key:"341fc2cc9b75690d5992629e3860dc53884b3642"},t("smoothly-table-header",{key:"085c7ac43082a11505e6d790c65193221820016f"},"G"),t("smoothly-table-header",{key:"53d8981cb7b99a61d40ea23e2ffce1e88a2e5f4f"},"H")),t("smoothly-table-row",{key:"037a91700c10a9b9ad73aef8385ac5044b661cfc"},t("smoothly-table-expandable-cell",{key:"db716a543afa17ceba2227b6ab34e6b7f59223af"},"g cell",t("div",{key:"6e9f9921827564a4923dd73e67fc37a5f76beea6",slot:"detail"},"nested expandable cell expansion g")),t("smoothly-table-expandable-cell",{key:"ee77e6b9f6d335958d715180690f5a43b03e712d"},"h cell",t("div",{key:"f71a934e96a051fcc972d5fe931a6f424da334a5",slot:"detail"},"nested expandable cell expansion h")))))),t("smoothly-table-expandable-cell",{key:"e5aea1356b4b6e46b34cdbaf958355d31a43facb"},"f cell",t("div",{key:"f77e4852d7654966b1d2daca4b81f7c52e9a9118",slot:"detail"},"nested expandable cell expansion f")))))),t("smoothly-table-expandable-cell",{key:"21aedb52d291091d7dfad74c58eaebf11d21be54"},"b cell",t("div",{key:"47774e13cde8f000da0bd172b295bafb5630bb97",slot:"detail"},t("smoothly-table",{key:"59f9a71b6007d59160ae43f2167bf496f45b35d7"},t("smoothly-table-row",{key:"c446e2b029dbd5a2077906a8a965fd125013357c"},t("smoothly-table-header",{key:"6c03213f88f20ee03bd8afb43ede67e5a3311285"},"C"),t("smoothly-table-header",{key:"f5c41638e374d59a772907d419ce3cdcd7c5b46e"},"D")),t("smoothly-table-row",{key:"75a903bac35ab067415f6b3d2ea32eab3d1b50fe"},t("smoothly-table-expandable-cell",{key:"f3ef1fa6e1cb1fe528446bb4db238c13d1ec5328"},"c cell",t("div",{key:"0d1b95ea59a79821b834a593196107da82a15b80",slot:"detail"},"nested expandable cell expansion c")),t("smoothly-table-expandable-cell",{key:"0e7dee7e59a504516cf1dbfc564da6629e525ea7"},"d cell",t("div",{key:"8a1442355a0d1bcc5ceded1749450bf83bfd84a6",slot:"detail"},"nested expandable cell expansion d")))))))),t("h4",{key:"491844dd29dbea41bd33109e67bf58328718699c"},"Demo table 6"),t("smoothly-table",{key:"c71e325906a58796a3cb941a6d8d8195f838f7f4"},t("smoothly-table-row",{key:"2a299a63fbbd9504b4734042d313815205b74f26"},t("smoothly-table-header",{key:"10f8529b9ea32afb41a1879ef374b9e26659729e"},"display"),t("smoothly-table-header",{key:"e037e3c9674164926b2e1129446a2cd4bda1780c"},"contents")),t("smoothly-table-expandable-row",{key:"a7604f7aa4e574e04270edda2ce140dc9173d0cf"},t("div",{key:"6e6ee07f7c67bc6f1b5b3157ef7f3d6bd16f7995",class:"content"},t("smoothly-table-cell",{key:"c560559faf746657f3637acfc0e13b38bb7b5ac7"},"A"),t("smoothly-table-cell",{key:"ee15ec06c1246e4e5b234adbcf96514e746b7064"},"B")),t("div",{key:"dcd83cfcdf0a1f1002467bac155ea00a68d540db",slot:"detail"},"expansion"))),t("h4",{key:"c976d7cce548795f7776ac78013c5ead5ff46442"},"Demo table 7")," ",t("span",{key:"a41fff757011f21692cf7b48f8f6dceb710c90a8"},"nested 1 then normal"),t("smoothly-table",{key:"30fc70242dcb689f44c2d10c6da06f0bf4ff3b29"},t("smoothly-table-row",{key:"83ab53ecc50c0c58d5095a54dca7ef71dbfca94d"},t("smoothly-table-header",{key:"ba57eee8d8a906417da048536ddd4b7848abfa83"},"A"),t("smoothly-table-header",{key:"75070cc5d7f9b378ec5cf1dd09cf938ce2627466"},"B")),t("smoothly-table-expandable-row",{key:"5c238acce39b7b16fd29b5681b2fa0beb92f9d6a"},t("smoothly-table-cell",{key:"0e84b683e6dd2cab1fb9b56e7b3d634a1db6b6d2"},"a"),t("smoothly-table-cell",{key:"d0b5f45e24f7207b6e4929297f77960a893b5ea3"},"b"),t("div",{key:"2a4d70833716ba05f63f30bf414ef073ed544f5d",slot:"detail"},t("smoothly-table",{key:"91f965115edf80e695cfab022c333ea75580553e"},t("smoothly-table-row",{key:"0b16751c58986a2827bf86d9eb8609ac4149a6a2"},t("smoothly-table-header",{key:"694d93cc20a0de953d9a1ccce8531fa1a3be15d0"},"C"),t("smoothly-table-header",{key:"6e8f1b2412ca56766c02974e7b0f6c23c8b7e7c2"},"D")),t("smoothly-table-row",{key:"9dd5836a7780bc96b98dea02534a94d46f413b0f"},t("smoothly-table-cell",{key:"60d1507e3768c8e771fc2862204a75c6d65d0949"},"c"),t("smoothly-table-cell",{key:"2a234c36950600f5c038aed22db95f806d95fd78"},"d")),t("smoothly-table-row",{key:"06083e22aaa76953478b3d91b1cf1bfa33d36e91"},t("smoothly-table-cell",{key:"c29952966e7fe73c5c5487ab81a9ee79f9dc1ca0"},"ccc"),t("smoothly-table-cell",{key:"7b2a22e7c5698da2ff9ecd10c7b91bb489192ac3"},"ddd")),t("smoothly-table-expandable-row",{key:"067641facfd8e83d89d520155533feb17a19628c"},t("smoothly-table-cell",{key:"5a738afa3444170250850a7d00ce9ec5c52a0827"},"cccc"),t("smoothly-table-cell",{key:"34598e8935e09e660001548cd2f5f0049e0ba71d"},"dddd"),t("div",{key:"8350e5e1ef3fca4e1423987e3d99328683156703",slot:"detail"},"CONTENT")),t("smoothly-table-row",{key:"e4ee719169cc338d2420f7d3fa09b19ae022e6f7"},t("smoothly-table-cell",{key:"66f289b9d4e5bb8fe6bfce7f8ae0629143a28ea3"},"ccccc"),t("smoothly-table-cell",{key:"9e36c00f691b106ef5e58c25d3376618a1861759"},"ddd")),t("smoothly-table-expandable-row",{key:"67f476453f943b6b75249ce633b1a652e72c0838"},t("smoothly-table-cell",{key:"9218b679173b883967e4fd9f61622220a4e69cd5"},"cccc"),t("smoothly-table-cell",{key:"a0d921e79a8302d7e0b8f3fd702aead3c146a032"},"dddd"),t("div",{key:"32ff6ed3b7dd8fe2769838a0ec9c08457f578ac0",slot:"detail"},"CONTENT")))))),t("h4",{key:"a5b4ae5de351c406d071e8405307486b236ae22e"},"Demo table 8")," ",t("span",{key:"a7c396b267a5728a3ebd12033e0419c449bcacc6"},"not nested"),t("smoothly-table",{key:"2b940b2551b11b5eeeb44f9fb78955848a9bb88a"},t("smoothly-table-row",{key:"86a38a2dd5c238596452292bd5790d55436dc332"},t("smoothly-table-header",{key:"16b53657c35dc13eec74f7944418f736c62745a8"},"C"),t("smoothly-table-header",{key:"de229cdfa50eafa737b2782f94120eff5d26e897"},"D")),t("smoothly-table-row",{key:"f034a73023a7f8ef3718ad795cc52043e7c83001"},t("smoothly-table-cell",{key:"0fd9f2f32d6749d5cb66e7c8e70baec5eef46edf"},"c"),t("smoothly-table-cell",{key:"59e23af09d690d700d877e2db3a7ffa4f5a989a6"},"d")),t("smoothly-table-row",{key:"9d7c2e33cb3c81ca56eb444d044a04a155a618e5"},t("smoothly-table-cell",{key:"dc705b145b3731c6f32a1b2c8b6f67e10210be69"},"cc"),t("smoothly-table-cell",{key:"1e5af428e4e23992db8452c9cdf9d7ca5e24be0c"},"dd")),t("smoothly-table-row",{key:"536edadf240428490176429bd97e609164bd44fe"},t("smoothly-table-cell",{key:"a55ca0c9736ad2cc944a9055da21ba0dcd5b96b0"},"ccc"),t("smoothly-table-cell",{key:"e2e00ded28fe8cff0c7ba57b9911d9816e691171"},"ddd"))),t("h4",{key:"7151025dac0d88842ec049d208b68e6b6c8e8ccc"},"Demo table 9"),t("smoothly-table",{key:"a648bbeee0de8645e8feabeea36dd82cdcdb26b1"},t("smoothly-table-row",{key:"69f82749ace01c70f12e12bf973c4e68a7c0681f"},t("smoothly-table-header",{key:"6741692157f9711406703a258661d363d46ad9cc"},"First name"),t("smoothly-table-header",{key:"c6471154158fda30b2a85f247563340713d5544b"},"Last name"),t("smoothly-table-header",{key:"317bf1cd0457790c1185e2b0450ce1b23323374f",style:{width:"1px"}},t("smoothly-icon",{key:"a2d8633ddd3277777ca1754d1e0f6406ba4537e0",name:"alert-outline"}))),t("smoothly-table-expandable-row",{key:"2e0c8471bd93774be4d39229cb07fc06de847025"},t("smoothly-table-cell",{key:"ba8aa8597cde75f5fc3a8bbc49c5b1ec388c8205"},"Jessie"),t("smoothly-table-cell",{key:"be279abe4d48f4f72bb1b2e5daf7b5622be26469"},"Doe"),t("smoothly-table-cell",{key:"64375d0aaa75e484d51f1c19f6050c541feb8f70"}),t("div",{key:"701af93629039213c83f78009863eeb4f3cfa7fd",slot:"detail"},t("p",{key:"a2ef105c6d6e8c86604db5282cd91687a562be0a"},"This is Jessie")))),t("h4",{key:"3e4bdf297eb97a83987575d9e63094e0791e0dc6"},"Demo table 9 - Lazy expansion rows"),t("smoothly-table",{key:"c4b7b9e0579fc5687aef6648f0cfde1b38227cae"},t("smoothly-table-row",{key:"5e02e8b9fb5651300a9d3f7d73fb5b74ef56ecf1"},t("smoothly-table-header",{key:"0c11cf42e600eb64a75699311036f8321b45086a"},"Company")),t("smoothly-table-expandable-row",{key:"eed4aefbe379f9e1f48039dbc19c96e5d4c5acd1"},t("smoothly-table-cell",{key:"a25c1eaa63d072db92da7f2c62cc46488163a2ee"},"Proquse"),t("smoothly-lazy",{key:"c968706a18a250fc87eeadff46b7e64091e95456",slot:"detail",content:t("img",{src:"https://brand.proquse.com/logo/proquse-black.svg",alt:"Proquse Logotype."})})),t("smoothly-table-expandable-row",{key:"7733a8c3d37db1d3f4a0960567ce8e552e902cae"},t("smoothly-table-cell",{key:"0cc350bef843e7bfa88a48e134a3e38fb4cf8e6f"},"Pax2Pay"),t("smoothly-lazy",{key:"dd2acc4f5ba563f02c8d64534863b09164c38c83",slot:"detail",content:()=>t("img",{src:"https://dash.pax2pay.app/assets/pax2pay-dark-horizontal.svg",alt:"Pax2Pay Logotype."})}))),t("h4",{key:"e33c1260f6f6b78f81f5170444e9fb306d156554"},"Demo table 10 - Lazy expansion cells"),t("smoothly-table",{key:"ea08d324eb273bf135b601e3cee2fab094cea944"},t("smoothly-table-row",{key:"b1b3d06556f18f5e524f1ee9c090ec333aefaa77"},t("smoothly-table-header",{key:"53673b0956468b3eda784f2874140c1b331f5345"},"Company")),t("smoothly-table-row",{key:"32b918aef1324fdd92fe33b5697c25e7a34e32cc"},t("smoothly-table-expandable-cell",{key:"1c03cfc9d836db81f9347d816bc1c113b75cc845"},"Proquse",t("smoothly-lazy",{key:"90d9c35c58d99145dfb3e466b930231d4e9c5260",slot:"detail",content:t("img",{src:"https://brand.proquse.com/logo/proquse-black.svg",alt:"Proquse Logotype."})}))),t("smoothly-table-row",{key:"00c7267ef997b669765a6d842bc2592485ca9317"},t("smoothly-table-expandable-cell",{key:"a20dd3662febafb60d52bb67459c8418289e3bfb"},"Pax2Pay",t("smoothly-lazy",{key:"25f2445bcfc58807711963f3be6a123608adb212",slot:"detail",content:()=>t("img",{src:"https://dash.pax2pay.app/assets/pax2pay-dark-horizontal.svg",alt:"Pax2Pay Logotype."})})))),t("h4",{key:"ad5adf734d61be4daf3ade3b6a0371164ce6eed9"},"Demo table 11 - expandable cells"),t("smoothly-table",{key:"08eb6233562f117458dcfd19eb03524624506606"},t("smoothly-table-row",{key:"0426d4016fa6092d6b205ee100a881b26389f87f"},t("smoothly-table-header",{key:"125bf5f4ec3f13812556e94931999755128bf920"},"Name"),t("smoothly-table-header",{key:"bad40f5c6846cca62ceaa6da5567421c63928b77"},"Age"),t("smoothly-table-header",{key:"f09c9e0d0cbb39f2ca395b55ec69a63897137f9a"},"Location")),t("smoothly-table-row",{key:"0049a5c72aa974d066067d2e6a2092a08edfc830"},t("smoothly-table-expandable-cell",{key:"b712269f190e0b8d94dd37bc53b4f0e4a114f256"},"Jessie",t("div",{key:"3d8d620af2e9ac062a381ea1e3bb60b3e98f73e7",slot:"detail"},"Doe")),t("smoothly-table-expandable-cell",{key:"4ea5d099083a57923a8d64c1ac10300300347662"},(new Date).getFullYear()-2e3,t("div",{key:"e6823568399487c76df82e5078167cdc45310e5d",slot:"detail"},"2000-01-01")),t("smoothly-table-expandable-cell",{key:"c6fcc32668399cf74b2193982ac2cf02c968ae74"},"UK",t("div",{key:"012b0fad1a980d79e208382ea034638204eec7a6",slot:"detail"},"London")))))}};Nh.style=Ph;const Fh=".sc-smoothly-table-demo-filtered-h{display:block;width:80%}smoothly-table-cell.sc-smoothly-table-demo-filtered:nth-of-type(2){text-align:right}td.sc-smoothly-table-demo-filtered{padding-left:1.5em}";const Hh=Fh;const Uh=class{constructor(t){e(this,t);this.criteria={};this.cats=undefined;this.selector=Wd.create("breed")}onFilterUpdate(e){e.stopPropagation();this.criteria=e.detail}smoothlyInputHandler(e){e.stopPropagation();this.selector=this.selector.handle(e.detail)}async componentWillLoad(){const e=await sr("https://catfact.ninja/breeds?limit=15");this.cats=e.status==200&&(await e.body).data.map((e=>{var t,o;return Object.assign(Object.assign({},e),{price:[...e.breed].reduce(((e,t)=>e+t.charCodeAt(0)),0),nested:Object.assign(Object.assign({},e),{names:(t=Yh[e.country])!==null&&t!==void 0?t:[]}),names:(o=Yh[e.country])!==null&&o!==void 0?o:[]})}))}render(){const e=this.cats&&el(this.criteria,this.cats);return t(s,{key:"3b35faf2f32943e94a5725c1aad1dd3d7033da39"},t("smoothly-filter",{key:"72e0e3dba8da4581d2d50bae13a33149255f6787"},t("smoothly-filter-toggle",{key:"e363d96f0776dd90b33f4ea3a95d892a6a8e94d0",properties:{["nested.pattern"]:"Ticked",breed:""},icon:"add",toolTip:"Nested Ticked",slot:"bar"}),t("smoothly-filter-toggle",{key:"fd9fc1b5f89298dc58843376d6b0b10c2802160a",properties:{pattern:"Ticked",breed:""},icon:"paw",toolTip:"Ticked cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"8c79a61b500443cbf864a1bdea1b4fcecd820c4d",properties:{breed:"Bombay",pattern:"Solid"},icon:"radio-button-on",toolTip:"Solid bombay cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"a8c3692f45f65ca45c1f8298bc5ff4601e763b30",properties:{pattern:"Colorpoint"},not:true,active:true,icon:"alert",toolTip:"Colored cats",slot:"bar"}),t("smoothly-filter-select",{key:"d9fb4e55e7602277b5d341bba18564f523bad68d",label:"coat",property:"nested.coat",slot:"bar",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("div",{key:"4ee92bf8c746b76d6745e759ca05ded79aca5d88",slot:"detail"},t("smoothly-form",{key:"be533ea49efe25ee8f3f4fc8ec83fc09771ef048",looks:"border"},t("smoothly-filter-select",{key:"aaaca00a01cce7e5ffb54919e4c8ba9cf79cf118",label:"coat",property:"nested.coat",multiple:true},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("smoothly-filter-select",{key:"0a697f07d239d2e3c2f8565e83fc8e931206ebfa",label:"breed",property:"breed",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.breed?Object.assign(Object.assign({},e),{[t.breed]:t}):e),{})).map((e=>e.breed&&t("smoothly-item",{slot:"items",value:e.breed},e.breed)))),t("smoothly-filter-select",{key:"61801211fb2972c80aa8898e1b2ad1c33b2ed659",label:"names",property:"nested.names",multiple:true,type:"array"},Object.keys(Object.values(Yh).flat().reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:true})),{})).flatMap((e=>t("smoothly-item",{slot:"items",value:e},e)))),t("smoothly-filter-input",{key:"61bece7090400a19b727d79d95dd3a2afee1b0fd",label:"Coat",property:"coat"}),t("smoothly-filter-input",{key:"bfdeb6016c654179d12d7f7cf332d99c6b69f0e1",label:"Nested Coat",property:"nested.coat"})))),!e?"Failed to load data.":t("smoothly-table",null,t("smoothly-table-row",null,t("smoothly-table-header",null,this.selector.render(e)),t("smoothly-table-header",null,"Breed"),t("smoothly-table-header",null,"Coat"),t("smoothly-table-header",null,"Price")),e.map((e=>t("smoothly-table-row",null,t("smoothly-table-cell",null,this.selector.render(e)),t("smoothly-table-expandable-cell",null,e.breed,t("div",{slot:"detail"},"Country: ",e.country)),t("smoothly-table-expandable-cell",null,e.coat,t("div",{slot:"detail"},"Pattern: ",e.pattern)),t("smoothly-table-cell",null,t("smoothly-display",{type:"price",value:e.price,currency:"SEK"}))))),t("smoothly-table-footer",null,t("td",{colSpan:5},t("smoothly-display",{type:"text",value:`Selected: ${this.selector.selected.length!=0?this.selector.selected.length:e?e.length:"?"}`})))))}};const Yh={"United States":["bill","bob","brad","joe","molly"],Australia:["nigel","bruce","sheila","brad","shane"],"United Kingdom":["nigel","james","molly","shane","bob"],Greece:["dionysius","demetrius","polikarpos"]};Uh.style=Hh;const Wh='.sc-smoothly-table-expandable-cell-h{display:table-cell;padding:0.3rem 0.5rem 0.3rem 0.2rem;cursor:pointer;line-height:1.5rem}.sc-smoothly-table-expandable-cell-h:not([open]){box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)), 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}[open].sc-smoothly-table-expandable-cell-h{position:relative;z-index:3;background-color:rgb(var(--smoothly-color));box-shadow:1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{width:1em;padding-right:0.3rem;transition:transform 0.2s, opacity 0.1s;display:flex;height:auto;aspect-ratio:1 / 1;align-self:center;opacity:0.3}.sc-smoothly-table-expandable-cell-h:hover>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{opacity:1}[open].sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{transform:rotate(90deg) translateX(3px)}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell{display:grid;grid-template-columns:auto 1fr;align-items:center}.sc-smoothly-table-expandable-cell-h:not([open])>tr.sc-smoothly-table-expandable-cell>td.sc-smoothly-table-expandable-cell{display:none}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 1px);top:1px;left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}smoothly-table-row>tr.spotlight>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:calc(var(--expansion-border-width)) 0 0 0 rgb(var(--smoothly-tertiary-color)) inset}smoothly-table-row>tr:not(.spotlight)>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*::before{content:"";position:absolute;display:flex;top:-1px;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*::after{content:"";position:absolute;display:flex;top:-1px;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}smoothly-table[align=bottom] .sc-smoothly-table-expandable-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-expandable-cell-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-expandable-cell-h{vertical-align:top}';const Bh=Wh;const Vh=class{constructor(t){e(this,t);this.smoothlyExpansionOpen=o(this,"smoothlyExpansionOpen",7);this.smoothlyExpansionLoad=o(this,"smoothlyExpansionLoad",7);this.smoothlyExpandableChange=o(this,"smoothlyExpandableChange",7);this.smoothlyExpandableLoad=o(this,"smoothlyExpandableLoad",7);this.allowSpotlight=true;this.spotlight=true;this.open=undefined}openChanged(e){if(this.expansionElement)if(e)this.beginOpen=true;else this.element.append(this.expansionElement);this.smoothlyExpandableChange.emit(this.open)}handleSpotlight(){this.spotlight=this.open&&this.allowSpotlight}componentWillLoad(){this.smoothlyExpansionLoad.emit();this.smoothlyExpandableLoad.emit({allowSpotlight:e=>this.allowSpotlight=e})}componentDidRender(){if(this.beginOpen){this.beginOpen=false;this.smoothlyExpansionOpen.emit(this.expansionElement)}}onClick(){this.open=!this.open}handleTableLoaded(e){e.stopPropagation();e.detail(this.element)}render(){return t(s,{key:"c18073e79ed648b097932f65afc57b1a086d2aef"},t("div",{key:"7b1ca3f50b8c2c1e2ccd009188a883d606f8f89d"},t("smoothly-icon",{key:"38e25d23939f163e58e61541d5456d30842fc237",name:"caret-forward-outline"}),t("slot",{key:"6a6854a144d228579fd929a6454778e70c54a48b"})),t("tr",{key:"76832340657756d93f8257c7089ff4ec7a0c5b56",class:{spotlight:this.spotlight},ref:e=>this.expansionElement=e},t("td",{key:"e786ee682b26589bf7d66ef358f042111eb63749",colSpan:999},t("slot",{key:"fc7df9a42bd8b719fe1c486cd0d47e730401b195",name:"detail"}))))}get element(){return a(this)}static get watchers(){return{open:["openChanged","handleSpotlight"],allowSpotlight:["handleSpotlight"]}}};Vh.style=Bh;const Gh='.sc-smoothly-table-expandable-row-h{display:contents}.sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row{display:table-row;cursor:pointer;line-height:1.5rem}[open].sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row{position:relative;z-index:3;background-color:rgb(var(--smoothly-color))}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell,.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s>smoothly-table-cell{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h:not([open])>tr.sc-smoothly-table-expandable-row>td.sc-smoothly-table-expandable-row{display:none}.sc-smoothly-table-expandable-row-h>tr.sc-smoothly-table-expandable-row>td.sc-smoothly-table-expandable-row{position:relative}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 2px);left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}.sc-smoothly-table-expandable-row-h>tr.spotlight>td.sc-smoothly-table-expandable-row-s>*{box-shadow:calc(var(--expansion-border-width)) 0px 0px 0px rgb(var(--smoothly-tertiary-color)) inset}.sc-smoothly-table-expandable-row-h>tr:not(.spotlight)>td.sc-smoothly-table-expandable-row-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*::before{content:"";position:absolute;display:flex;top:0;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}';const qh=Gh;const Kh=class{constructor(t){e(this,t);this.smoothlyExpansionOpen=o(this,"smoothlyExpansionOpen",7);this.smoothlyExpandableChange=o(this,"smoothlyExpandableChange",7);this.smoothlyExpandableLoad=o(this,"smoothlyExpandableLoad",7);this.allowSpotlight=true;this.spotlight=true;this.open=undefined}handleSpotlight(){this.spotlight=this.open&&this.allowSpotlight}componentWillLoad(){this.smoothlyExpandableLoad.emit({allowSpotlight:e=>this.allowSpotlight=e})}handleTableLoaded(e){e.stopPropagation();e.detail(this.element)}render(){return t(s,{key:"362c94fec5a6a946fa4cd3bbb0a7f1cd4b90de30"},t("div",{key:"3f52cfe9f9bd4f40644473372b9917942659405a",onClick:()=>this.open=!this.open},t("slot",{key:"a9973318d66636bc402e25cfb41233f278169aab"})),t("tr",{key:"580cfcc88440342a6705e87a95218d662303bed2",class:{spotlight:this.spotlight}},t("td",{key:"833beb04554be089cc7b963287c5853216d8d90b",colSpan:999},t("slot",{key:"0a5baffcc73ef8a859235ea3796c81f40fdded8d",name:"detail"}))))}get element(){return a(this)}static get watchers(){return{open:["handleSpotlight"],allowSpotlight:["handleSpotlight"]}}};Kh.style=qh;const Zh=".sc-smoothly-table-footer-h{display:table-footer-group;position:sticky;bottom:0;background-color:rgb(var(--smoothly-color));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)),\n\t\tinset 0 1px 0 rgb(var(--smoothly-color-shade));line-height:2.5rem;font-weight:bold}";const Jh=Zh;const Xh=class{constructor(t){e(this,t)}render(){return t("slot",{key:"01a691843d07bc7434c9ffa2d86767ca3e45fa18"})}};Xh.style=Jh;const Qh=".sc-smoothly-table-header-h{display:table-cell;line-height:2.5rem;border-top:1px solid rgb(var(--smoothly-color-shade));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade));padding:0 .5rem;font-weight:bold}smoothly-table[align=bottom] .sc-smoothly-table-header-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-header-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-header-h{vertical-align:top}";const em=Qh;const tm=class{constructor(t){e(this,t);this.name=undefined}render(){return t(s,{key:"fb355436a7e5cdbc99236125054ea66721d6bda4"},t("slot",{key:"1ca0bc6b9058546578507cbd73f96c6aa306fb8f"}))}};tm.style=em;const om=".sc-smoothly-table-row-h{display:table-row-group;cursor:default;line-height:1.5rem}.hide.sc-smoothly-table-row{display:none}.sc-smoothly-table-row-h>div.sc-smoothly-table-row{display:contents}";const sm=om;const am=class{constructor(t){e(this,t);this.expansions=[];this.open=false}onExpansionLoad(e){this.expansions.push(e.target)}onExpansionChange(){this.open=this.expansions.some((e=>e.open))}onExpansionOpen(e){var t;this.expansions.forEach((t=>{if(t!=e.target)t.open=false}));if(e.detail)(t=this.element)===null||t===void 0?void 0:t.after(e.detail)}render(){return t("div",{key:"52a85d45e77f78a479c1e314650c38b7b97502e4",ref:e=>this.element=e},t("slot",{key:"7438dcbe1986dd6d286cd9c2961d51a34f181c37"}))}};am.style=sm;const im=[{type:"cat",name:"Lazie",age:3},{type:"dog",name:"Jessie",age:8},{type:"cat",name:"Snooz",age:5},{type:"bird",name:"Squeak",age:1},{type:"bird",name:"Quirk",age:2}];const nm=".sc-smoothly-table-testing-h{width:100%;display:flex;justify-content:center}smoothly-table.sc-smoothly-table-testing{width:80%}.tableCell.sc-smoothly-table-testing{height:3rem;display:flex;align-items:center}.tableCell.sc-smoothly-table-testing>div.sc-smoothly-table-testing{margin-left:3rem;margin-right:3rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:2rem}td.sc-smoothly-table-testing>div.footer.sc-smoothly-table-testing{display:flex;padding-left:1.5em;flex-direction:row;gap:1em}";const lm=nm;const rm=class{constructor(t){e(this,t);this.counter=0}render(){return t(s,{key:"19325eb2444ed608c0e080d3fa2d05632d5b01d5"},t("smoothly-table",{key:"84b5fc3a45ac4f5fe56deb66edbfe381b72dc905",color:"dark"},t("smoothly-table-row",{key:"389c265a2ee60633f7967170922d1092f90c4e24"},t("smoothly-table-header",{key:"4d7ea68b2fe5216e1cfb64ba8bf6f8869c0416df"},"Type"),t("smoothly-table-header",{key:"9c85bb77bf35c744f4f22943616c1ca041fb4341"},"Name"),t("smoothly-table-header",{key:"111bafb16e97d7e21f3672b0eab58d00d46f1e09"},"Age")),im.map((e=>t("smoothly-table-expandable-row",null,t("smoothly-table-cell",null,e.type),t("smoothly-table-cell",null,e.name),t("smoothly-table-cell",null,e.age),t("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},t("smoothly-input",{value:e.type},"Type"),t("smoothly-input",{value:e.name},"Name"),t("smoothly-input",null,e.age),t("smoothly-submit",{slot:"submit"},"Submit!"))))),im.map((e=>t("smoothly-table-row",null,t("smoothly-table-cell",null,e.type),t("smoothly-table-expandable-cell",null,e.name,t("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},t("smoothly-input",{value:e.name},"Name"),t("smoothly-submit",{slot:"submit"},"Submit!"))),t("smoothly-table-expandable-cell",null,e.age,t("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},t("smoothly-input",{value:e.type},"Type"),t("smoothly-input",{value:e.name},"Name"),t("smoothly-input",null,e.age),t("smoothly-submit",{slot:"submit"},"Submit!")))))),t("smoothly-table-footer",{key:"5c635161e1051765ca304cde3b91ed2c235bb773"},t("td",{key:"12728755d5bd9d560ed68f1cd5a7452f0b8a55af",colSpan:2},t("div",{key:"1f160cf8459caaca8511c1ad7b1fb6244f11908c",class:"footer"},"Currently viewing content from:",t("smoothly-display",{key:"0b5d373d788d1d6e05ebb5ea9f5ef9038219cf4f",type:"date",value:"2023-10-12"}))),t("smoothly-table-header",{key:"a1d3f62994b9c015c7fddff0208c88339d25f4f6"},"Total age: "+im.reduce(((e,t)=>e+t.age),0)))))}};rm.style=lm;const cm=".sc-smoothly-tabs-h{display:grid;grid-template-columns:repeat(var(--tabs), auto);grid-template-rows:auto auto}";const dm=cm;const hm=class{constructor(t){e(this,t);this.smoothlyTabOpen=o(this,"smoothlyTabOpen",7);this.tabs=[];this.selectedElement=undefined}onInputLoad(e){if(e.target instanceof HTMLElement&&!this.tabs.includes(e.target)){this.tabs=[...this.tabs,e.target]}}openChanged(e){if(e.target!=this.element){e.stopPropagation();this.selectedElement=e.target;this.smoothlyTabOpen.emit(e.detail)}}onSelectedChange(e,t){if(t)t.open=false}render(){return t(s,{key:"13265df1e5924c455ab8b94b2e1d3942722120c5",style:{"--tabs":`${this.tabs.length}`}},t("slot",{key:"ef457b562f8ea6c2d00f52c1049ae644bc0fadba"}))}get element(){return a(this)}static get watchers(){return{selectedElement:["onSelectedChange"]}}};hm.style=dm;const mm=".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 ym=mm;const bm=class{constructor(t){e(this,t)}render(){return t("smoothly-tabs",{key:"bf3e5c01fa0476ec17008f510c3627b12f41907e"},t("smoothly-tab",{key:"65819b7cabe33f935ff283400dc5f242894a8d1e",label:"test1",open:true},"Hello world!"),t("smoothly-tab",{key:"77baaf959e4bfe230e5699b8c684c364eb2290e9",label:"test2"},"this is a test message!"),t("smoothly-tab",{key:"6db948cc03dc3c952e2453b0a98bdac5fbc9e917",label:"test3"},"this is a test message again!"))}};bm.style=ym;const um=".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 fm=um;const pm=class{constructor(t){e(this,t);this.color=undefined}render(){return t(s,{key:"a7d4302217c958ba525227484df493bc8fa312e5"},this.color,["tint","color","shade"].map((e=>t("smoothly-theme-color-variant",{title:`${this.color} ${e}`,color:this.color,variant:e}))))}};pm.style=fm;const gm=".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 km=gm;const vm=class{constructor(t){e(this,t);this.color=undefined;this.variant="color"}render(){return"Aa"}};vm.style=km;const xm=".sc-smoothly-theme-colors-h{display:grid;grid-template-columns:repeat(3, 1fr);row-gap:1em;column-gap:1em;width:fit-content}";const wm=xm;const Sm=class{constructor(t){e(this,t)}render(){return["primary","secondary","tertiary","success","warning","danger","light","medium","dark","default"].map((e=>t("smoothly-theme-color",{color:e})))}};Sm.style=wm;const Cm=".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 zm=Cm;const jm=class{constructor(t){e(this,t)}render(){return t(s,{key:"67785f5a8f7b0dfcc05ed3db061b16847f0cf2be"},t("h2",{key:"010fc56a1a101557b8f6aa2d58e8e0d08f5e9a19"},"Theme"),t("smoothly-theme-picker",{key:"78859336f91dc966250d92714dd68669f8fea47e"},t("smoothly-item",{key:"7f7dfdc5179fcfe81129f0d29a057211ef37b7c0",selected:true,value:"assets/style/smoothly.css"},"Smoothly"),t("smoothly-item",{key:"5200084b7f82c9d2684d8891d2edabd3910c7af8",value:"https://app.issuefab.com/assets/style/index.css"},"Issuefab"),t("smoothly-item",{key:"842c142cf1c1e22d082ea773ecf68762d33955c4",value:"https://app.proquse.com/assets/style/index.css"},"Proquse"),t("smoothly-item",{key:"272f4ccd9f2a242ace94b07e49331d89af093c06",value:"https://app.weekmeter.com/assets/style/index.css"},"Weekmeter"),t("smoothly-item",{key:"cc4a39a589fc9b763b8f01f528537661929699eb",value:"https://dash.pax2pay.app/p2pdash.css"},"Pax2Pay Dashboard"),t("smoothly-item",{key:"dd9058c57fc46878af36f0a6957d7b010bc25f0c",value:"https://ui.pax2pay.app/assets/style/pax2pay.css"},"Pax2Pay Portal"),t("smoothly-item",{key:"da173ddd9a73cf8259adf9d5d292d2a799fb5bc9",value:"https://theme.payfunc.com/intergiro/index.css"},"Intergiro Monitor"),t("smoothly-item",{key:"44dbf248be4a3515834defd174f0dc2bea726f7c",value:"https://theme.payfunc.com/light/index.css"},"Payfunc Light"),t("smoothly-item",{key:"c5e345aa503265dd8e8ef9d3c4023493f4c8fc42",value:"https://theme.payfunc.com/dark/index.css"},"Payfunc Dark")),t("span",{key:"f3578ff957b2a03ccc96d99b21255edb29c582ba"},t("smoothly-theme-colors",{key:"5e293d62e394aa20f7e01f9d037cca5ecad36406"}),t("smoothly-theme-guide",{key:"447122ad26e6a3aa2944377e4417cab78c13988e"})),t("smoothly-button",{key:"13a8176fa6057cec8e980e9e327e52c4ebd405b0",type:"link",link:"/redirect"},"To redirect"),t("smoothly-button",{key:"c6e60ae0a148040df8880b44697f167d3b2802b9",type:"link",link:"/redirect"},"To /redirect"),t("smoothly-button",{key:"397c225e488ffd99c0054c18b807b2539f6ad961",type:"link",link:new URL("/redirect",window.location.origin).href},'To new URL("redirect")'),t("smoothly-button",{key:"e6651a36be501ac3e862512f83825e27c3b0f364",type:"link",link:"redirect/nested"},"To redirect nested"))}};jm.style=zm;const _m="";const Tm=_m;const Im=class{constructor(t){e(this,t)}render(){return[t("smoothly-display",{key:"d78f620cf75a4531322bf69c0b9edc1ad0760fb0"},"Tint is used as background to highlight, for example hovering an item in the select menu."),t("br",{key:"82afe82bdbf31fe782fe2a25a13b1786172ce8d9"}),t("smoothly-display",{key:"036aec35c1a3707770e0cc858050d7ad3cf80c2b"},"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."),t("br",{key:"6f78be3cf45e8a8a255ee14f8ebfe344f4a2e461"}),t("smoothly-display",{key:"7169ee0c18d1f5e96e4c8f5c813cb88699f3cf49"},"Shade is used as border and for symbols in buttons. It works as a semi-low contrast against color and tint."),t("br",{key:"c653eb38519794d49abbbc1c50375d624b07fb37"}),t("smoothly-display",{key:"437ed227e0ad31891c165849373cfbea265d333b"},"One can use the ","<smoothly-color>"," component to switch between what color set is used."," "),t("br",{key:"bd99df5526d7a1178779ba7810acdc2fef644924"})]}};Im.style=Tm;const Lm="";const Om=Lm;const Em=class{constructor(t){e(this,t);this.element="smoothly-css"}render(){return t(s,{key:"a2b3e60ee78f0d719db88d169a6a0acb63de474e"},t("smoothly-input-select",{key:"41cd3a9dcac297edd67e5e07e5f2fd634c3e021c",name:"theme",looks:"border",onSmoothlyInput:e=>{const t=document.querySelector(`#${this.element}`);if(t instanceof HTMLLinkElement&&typeof e.detail.theme=="string")t.href=e.detail.theme}},t("label",{key:"3e1f6a91391bfcb8baf9920e16e185f70a0a2b92",slot:"label"},"Select theme"),t("slot",{key:"e0499d19e385e8aa23ad10706b2efcc869efd9f8"})))}};Em.style=Om;const Am=".sc-smoothly-toggle-h{display:inline-block;border:none}.sc-smoothly-toggle-h>button.sc-smoothly-toggle{border:solid white 0.5px;display:flex;padding:0.6em;justify-content:center;font-size:110%;font-weight:400;color:rgb(var(--smoothly-default-tint));background-color:rgb(var(--smoothly-default-shade))}[shape=rounded].sc-smoothly-toggle-h{border-radius:0.6em}[shape=rounded].sc-smoothly-toggle-h>button.sc-smoothly-toggle{border-radius:0.5em}[selected].sc-smoothly-toggle-h>button.sc-smoothly-toggle{color:rgb(var(--smoothly-light-contrast))}.sc-smoothly-toggle-s>smoothly-icon{stroke:rgb(var(--smoothly-default-contrast));fill:rgb(var(--smoothly-default-contrast));font-size:110%}.sc-smoothly-toggle-h:not([selected])>.sc-smoothly-toggle-s>smoothly-icon{color:rgb(var(--smoothly-default-tint));fill:rgb(var(--smoothly-default-tint))}[disabled].sc-smoothly-toggle-h{opacity:0.5;pointer-events:none}";const Dm=Am;const Mm=class{constructor(t){e(this,t);this.selected=false;this.shape=undefined;this.disabled=false;this.name=undefined;this.value=undefined}onClick(e){this.selected=!this.selected}render(){return t("button",{key:"1197f56c537ebeac3d65e66f329eab2efe5bd5bd",type:"button"},t("slot",{key:"9e7d5c1bd176809c47809577281397fdb549c802",name:"icon-slot"}),t("slot",{key:"cedb75a43b1cdbe42460ac64964b3de48c962181"},this.name))}};Mm.style=Dm;const $m=".sc-smoothly-toggle-switch-h{display:block;width:3.6em;height:1.8em}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer;border:none;border-radius:3em;background-color:rgb(var(--smoothly-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;position:absolute;left:0;fill:rgb(var(--smoothly-color-contrast));stroke:rgb(var(--smoothly-color-contrast));font-size:1.2em;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{width:2.4em;height:1.2em}[size=small].sc-smoothly-toggle-switch-h{width:3.05em;height:1.5em}[size=large].sc-smoothly-toggle-switch-h{width:5.2em;height:2.5em}[size=tiny].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{font-size:.8em}[size=small].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{font-size:1em}[size=large].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{font-size:1.75em}";const Rm=$m;const Pm=class{constructor(t){e(this,t);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 t(s,{key:"96fc3020027e002266e463f12602426620acc78c"},t("button",{key:"54935f0112f0b8f5b9206929ed802900543a93e1",type:"button",disabled:this.disabled,onClick:()=>this.handleClick()},t("smoothly-icon",{key:"c978637753cd03f94fe222b3d4e9a0932f994bde",color:this.color,name:!this.checkmark?"ellipse":this.selected?"checkmark-circle":"close-circle",fill:"clear",class:{selected:this.selected}})))}};Pm.style=Rm;const Nm=".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 Fm=Nm;const Hm=class{constructor(t){e(this,t)}render(){return t(s,{key:"e4decc2823333a5a791092e8e34a92258d5b808c"},t("h4",{key:"8f2d3332e00c539d493ab8fd5a5f8f8ee6732715"},"Toggle switches"),t("div",{key:"6da6533cddf5fc818d2d6aa68427e8cfa1496ede"},t("p",{key:"766ebc883c9879d0e798309a88c3021f0387c54b"},"Checkmark"),t("span",{key:"6cafbd95e9157237ad07b78b22ef434f4494987d"},t("p",{key:"89c96abca44265f7b134a7fc971638d33c3b35cd"},"Tiny"),t("smoothly-toggle-switch",{key:"f41097e4819f5f18d68520b50111bf2c3b3303f7",disabled:false,size:"tiny"})),t("span",{key:"2abdefe0c854ddbe984d2cbfa228af0fb1c2be43"},t("p",{key:"25b22d0ba23a34b2b93f6272abdbd56dcb26f9f6"},"Small"),t("smoothly-toggle-switch",{key:"3152dc8eb87f3b70383942bfa9571d9c05dbef71",disabled:false,size:"small"})),t("span",{key:"6c49c1476a6145a3699bfaae389d67fa08284d97"},t("p",{key:"cdc8a155962f2db1314b4612f69c46f6e10e438e"},"Standard"),t("smoothly-toggle-switch",{key:"5567ecc1cb679afad70edf324cb9a683e933870b",disabled:false})),t("span",{key:"3651352629c6555d322cfae0433735d813656de3"},t("p",{key:"4698eba882ff962b05eb5e461e89b4a02abdba6e"},"Large"),t("smoothly-toggle-switch",{key:"ef884c9c8644f42d0f8a7c342e3e63026ccb454b",disabled:false,size:"large"})),t("p",{key:"6c4c2cf44cb00a6966456f1eb625ffe7a20ece0f"},"Colors checkmark"),t("span",{key:"06257fab92ae6fb47da27b1b42a7beb01509ae0e"},t("p",{key:"b02c3e1f9a7e4d977743b57711bc1167607c3f73"},"Danger"),t("smoothly-toggle-switch",{key:"68cf0c6ecaba81cbca33a41d646f90185897f61a",color:"danger",disabled:false,size:"small"})),t("span",{key:"31e12e703bd5b746a3bbb15520aab241cab92df8"},t("p",{key:"374d0ab72fe29c01a2e1aa0dfea8648eef8df5e2"},"Primary color"),t("smoothly-toggle-switch",{key:"8d6ee4f423a439c864882d5d1d731de6a4ea2c0a",color:"primary",disabled:false,size:"small"})),t("span",{key:"ba8c1546ca7bd9f8e2216a54b3fa801bbbf5f0c5"},t("p",{key:"4da8260d03362b0c42e298e9fa8528a278e6296a"},"Secondary color"),t("smoothly-toggle-switch",{key:"76e608995b4aff9912fe454e34253e25fe63b33d",color:"secondary",disabled:false,size:"small"})),t("p",{key:"cf18f647898cbdb270a936fa6c3f09384ec10308"}),t("p",{key:"3baf367e5396e228746af376bf600466adaf699a"},"Colors no checkmark"),t("span",{key:"82fdd9f4d57c6f1df933681a2585870e8a92f87b"},t("p",{key:"78e34f4bf07011afee3bf81afa6cc058d5f3cb00"},"Danger"),t("smoothly-toggle-switch",{key:"f15d080393f73866d7d83aa49037b14480de0608",checkmark:false,color:"danger",disabled:false,size:"small"})),t("span",{key:"50a556b0630714a435b706cd75aff01da5ac994c"},t("p",{key:"1a574f415960e5b32928d3123a378a383376250d"},"Primary color"),t("smoothly-toggle-switch",{key:"77f466f0e5fe38f0cbf46d41ea3d27ec64570cfb",checkmark:false,color:"primary",disabled:false,size:"small"})),t("span",{key:"b1ee16f7d6bc445afd7054325b5a7ec8edb469cb"},t("p",{key:"e1c2eabf3e079467052370dd47101f44daeee106"},"Secondary color"),t("smoothly-toggle-switch",{key:"96aaa6e9392f03a1843f8ec137d8dcfb1208d85a",checkmark:false,color:"secondary",disabled:false,size:"small"}))))}};Hm.style=Fm;const Um=".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 Ym=Um;const Wm=class{constructor(t){e(this,t);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(e){this.trigger.emit({name:this.name,value:this.value});e.stopPropagation();e.preventDefault()}render(){let e;switch(this.type){case"link":e=this.disabled?t("slot",null):t("a",{onClick:e=>this.onClick(e)},t("slot",null));break;case"button":e=t("button",{key:"d15f2a85ef75c7ff5e3c79b2a2c0fb26389532b1",disabled:this.disabled,name:this.name},t("slot",{key:"dabc32f8e23ccd3b63a3afe2acf4b828bc116032"}));break}return e}};Wm.style=Ym;export{R as smoothly_app,P as smoothly_app_demo,Re as smoothly_app_room,Fe as smoothly_back_to_top,Ye as smoothly_burger,Ke as smoothly_button,Xe as smoothly_button_confirm,tt as smoothly_button_demo,rt as smoothly_calendar,ht as smoothly_dialog,bt as smoothly_dialog_demo,no as smoothly_display,lo as smoothly_display_demo,co as smoothly_display_demo_json,uo as smoothly_display_json,go as smoothly_display_json_object,xo as smoothly_display_json_primitive,Co as smoothly_display_json_record_key,il as smoothly_filter,rl as smoothly_filter_field,hl as smoothly_filter_input,bl as smoothly_filter_select,pl as smoothly_filter_toggle,br as smoothly_form,pr as smoothly_form_demo,gr as smoothly_form_demo_all,kr as smoothly_form_demo_card,vr as smoothly_form_demo_controlled,Sr as smoothly_form_demo_date,jr as smoothly_form_demo_date_range,_r as smoothly_form_demo_login,Lr as smoothly_form_demo_pet,Or as smoothly_form_demo_prices,Er as smoothly_form_demo_transparent,$r as smoothly_form_demo_typed,Nr as smoothly_frame,Ur as smoothly_icon,Br as smoothly_icon_demo,Jr as smoothly_input,ec as smoothly_input_checkbox,sc as smoothly_input_clear,nc as smoothly_input_color,lc as smoothly_input_color_demo,dc as smoothly_input_date,yc as smoothly_input_date_range,fc as smoothly_input_demo,kc as smoothly_input_demo_standard,wc as smoothly_input_edit,zc as smoothly_input_file,Tc as smoothly_input_month,Oc as smoothly_input_price_demo,Dc as smoothly_input_radio,Rc as smoothly_input_radio_item,Fc as smoothly_input_range,Hc as smoothly_input_range_demo,Wc as smoothly_input_reset,qc as smoothly_input_select,Xc as smoothly_input_submit,td as smoothly_item,ad as smoothly_label,ld as smoothly_lazy,rd as smoothly_load_more,hd as smoothly_modal,bd as smoothly_next_demo,pd as smoothly_next_demo_colspan,vd as smoothly_next_demo_group,Cd as smoothly_next_demo_nested,_d as smoothly_next_demo_nested_inner,Ld as smoothly_next_demo_simple,Dd as smoothly_next_table,Rd as smoothly_next_table_body,Fd as smoothly_next_table_cell,Gd as smoothly_next_table_demo_filtered,Jd as smoothly_next_table_expandable_cell,eh as smoothly_next_table_expandable_row,sh as smoothly_next_table_foot,nh as smoothly_next_table_head,ch as smoothly_next_table_row,mh as smoothly_next_table_row_group,uh as smoothly_notification,gh as smoothly_notifier,xh as smoothly_spinner,Ch as smoothly_submit,_h as smoothly_summary,Lh as smoothly_tab,Ah as smoothly_table,$h as smoothly_table_cell,Nh as smoothly_table_demo,Uh as smoothly_table_demo_filtered,Vh as smoothly_table_expandable_cell,Kh as smoothly_table_expandable_row,Xh as smoothly_table_footer,tm as smoothly_table_header,am as smoothly_table_row,rm as smoothly_table_testing,hm as smoothly_tabs,bm as smoothly_tabs_demo,pm as smoothly_theme_color,vm as smoothly_theme_color_variant,Sm as smoothly_theme_colors,jm as smoothly_theme_demo,Im as smoothly_theme_guide,Em as smoothly_theme_picker,Mm as smoothly_toggle,Pm as smoothly_toggle_switch,Hm as smoothly_toggle_switch_demo,Wm as smoothly_trigger};
|
|
2
|
-
//# sourceMappingURL=p-8cc47619.entry.js.map
|