@oiz/stzh-components 1.4.0-npmjstest → 1.5.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/README.md +1 -56
  2. package/dist/cjs/{app-globals-e07b8f5f.js → app-globals-3b6f75bd.js} +5 -3
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
  5. package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
  6. package/dist/cjs/stzh-badge_3.cjs.entry.js +1 -1
  7. package/dist/cjs/stzh-checkbox.cjs.entry.js +1 -1
  8. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +2 -4
  9. package/dist/cjs/stzh-components.cjs.js +2 -2
  10. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  11. package/dist/cjs/stzh-datepicker_4.cjs.entry.js +2 -4
  12. package/dist/cjs/stzh-dialog.cjs.entry.js +2 -2
  13. package/dist/cjs/stzh-dropdown.cjs.entry.js +30 -3
  14. package/dist/cjs/stzh-figure.cjs.entry.js +1 -1
  15. package/dist/cjs/stzh-footer.cjs.entry.js +1 -1
  16. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-header.cjs.entry.js +1 -1
  18. package/dist/cjs/stzh-input.cjs.entry.js +9 -4
  19. package/dist/cjs/stzh-link.cjs.entry.js +1 -1
  20. package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
  21. package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
  22. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +1 -1
  23. package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
  24. package/dist/cjs/stzh-servicecard-list.cjs.entry.js +20 -3
  25. package/dist/cjs/stzh-servicecard.cjs.entry.js +26 -4
  26. package/dist/cjs/stzh-sortable.cjs.entry.js +3214 -2441
  27. package/dist/cjs/stzh-table.cjs.entry.js +1 -1
  28. package/dist/cjs/stzh-toggle.cjs.entry.js +1 -1
  29. package/dist/cjs/stzh-upload.cjs.entry.js +44 -11
  30. package/dist/cjs/utils-8dc66449.js +76 -0
  31. package/dist/collection/assets/fonts.css +5 -5
  32. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +1 -3
  33. package/dist/collection/components/stzh-cspace/stzh-cspace.css +6 -0
  34. package/dist/collection/components/stzh-dialog/stzh-dialog.css +9 -1
  35. package/dist/collection/components/stzh-dialog/stzh-dialog.stories.js +18 -8
  36. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +2 -4
  37. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +79 -1
  38. package/dist/collection/components/stzh-dropdown/stzh-dropdown.stories.js +3328 -0
  39. package/dist/collection/components/stzh-input/stzh-input.css +13 -4
  40. package/dist/collection/components/stzh-input/stzh-input.js +79 -4
  41. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +0 -9
  42. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +1 -3
  43. package/dist/collection/components/stzh-servicecard/stzh-servicecard.css +4 -4
  44. package/dist/collection/components/stzh-servicecard/stzh-servicecard.js +24 -2
  45. package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.js +54 -11
  46. package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.stories.js +2 -1
  47. package/dist/collection/components/stzh-sortable/stzh-sortable.js +37 -8
  48. package/dist/collection/components/stzh-upload/stzh-upload.css +3 -0
  49. package/dist/collection/components/stzh-upload/stzh-upload.js +43 -10
  50. package/dist/collection/components/stzh-upload/stzh-upload.stories.js +10 -8
  51. package/dist/collection/global/js/helpers/autofocus.js +3 -1
  52. package/dist/collection/global/js/script.js +1 -1
  53. package/dist/collection/libraries/sortable.js +3791 -0
  54. package/dist/collection/utils/utils.js +39 -0
  55. package/dist/components/index.js +5 -3
  56. package/dist/components/stzh-checkboxgroup.js +1 -3
  57. package/dist/components/stzh-cspace.js +1 -1
  58. package/dist/components/stzh-dialog.js +1 -1
  59. package/dist/components/stzh-dropdown2.js +33 -3
  60. package/dist/components/stzh-input2.js +12 -3
  61. package/dist/components/stzh-portal-mitwirken.js +1 -1
  62. package/dist/components/stzh-radiogroup2.js +1 -3
  63. package/dist/components/stzh-servicecard-list.js +22 -4
  64. package/dist/components/stzh-servicecard.js +25 -3
  65. package/dist/components/stzh-sortable2.js +3216 -2442
  66. package/dist/components/stzh-upload.js +43 -10
  67. package/dist/components/utils.js +40 -1
  68. package/dist/esm/{app-globals-70c229e3.js → app-globals-c42494e9.js} +5 -3
  69. package/dist/esm/loader.js +2 -2
  70. package/dist/esm/stzh-actions.entry.js +1 -1
  71. package/dist/esm/stzh-appnav.entry.js +1 -1
  72. package/dist/esm/stzh-badge_3.entry.js +1 -1
  73. package/dist/esm/stzh-checkbox.entry.js +1 -1
  74. package/dist/esm/stzh-checkboxgroup.entry.js +2 -4
  75. package/dist/esm/stzh-components.js +2 -2
  76. package/dist/esm/stzh-cspace.entry.js +1 -1
  77. package/dist/esm/stzh-datepicker_4.entry.js +2 -4
  78. package/dist/esm/stzh-dialog.entry.js +2 -2
  79. package/dist/esm/stzh-dropdown.entry.js +30 -3
  80. package/dist/esm/stzh-figure.entry.js +1 -1
  81. package/dist/esm/stzh-footer.entry.js +1 -1
  82. package/dist/esm/stzh-ghettobox_2.entry.js +1 -1
  83. package/dist/esm/stzh-header.entry.js +1 -1
  84. package/dist/esm/stzh-input.entry.js +9 -4
  85. package/dist/esm/stzh-link.entry.js +1 -1
  86. package/dist/esm/stzh-menu_2.entry.js +1 -1
  87. package/dist/esm/stzh-pagetitle.entry.js +1 -1
  88. package/dist/esm/stzh-portal-mitwirken.entry.js +1 -1
  89. package/dist/esm/stzh-readspeaker.entry.js +1 -1
  90. package/dist/esm/stzh-servicecard-list.entry.js +20 -3
  91. package/dist/esm/stzh-servicecard.entry.js +26 -4
  92. package/dist/esm/stzh-sortable.entry.js +3214 -2441
  93. package/dist/esm/stzh-table.entry.js +1 -1
  94. package/dist/esm/stzh-toggle.entry.js +1 -1
  95. package/dist/esm/stzh-upload.entry.js +44 -11
  96. package/dist/esm/utils-68a28fce.js +72 -0
  97. package/dist/esm-es5/app-globals-c42494e9.js +1 -0
  98. package/dist/esm-es5/loader.js +1 -1
  99. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  100. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  101. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  102. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  103. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  104. package/dist/esm-es5/stzh-components.js +1 -1
  105. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  106. package/dist/esm-es5/stzh-datepicker_4.entry.js +1 -1
  107. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  108. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  109. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  110. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  111. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  112. package/dist/esm-es5/stzh-header.entry.js +1 -1
  113. package/dist/esm-es5/stzh-input.entry.js +1 -1
  114. package/dist/esm-es5/stzh-link.entry.js +1 -1
  115. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  116. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  117. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  118. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  119. package/dist/esm-es5/stzh-servicecard-list.entry.js +1 -1
  120. package/dist/esm-es5/stzh-servicecard.entry.js +1 -1
  121. package/dist/esm-es5/stzh-sortable.entry.js +2 -2
  122. package/dist/esm-es5/stzh-table.entry.js +1 -1
  123. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  124. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  125. package/dist/esm-es5/utils-68a28fce.js +1 -0
  126. package/dist/stzh-components/assets/fonts.css +5 -5
  127. package/dist/stzh-components/{p-30cb8bc0.system.entry.js → p-006135ed.system.entry.js} +1 -1
  128. package/dist/stzh-components/p-0230004d.system.js +1 -0
  129. package/dist/stzh-components/{p-c6ad1a8c.entry.js → p-03e2634c.entry.js} +1 -1
  130. package/dist/stzh-components/{p-6ec17efc.entry.js → p-04d7b18f.entry.js} +1 -1
  131. package/dist/stzh-components/{p-60b4f34c.system.entry.js → p-07772cd7.system.entry.js} +1 -1
  132. package/dist/stzh-components/{p-82d85c3a.system.entry.js → p-1c88ceff.system.entry.js} +1 -1
  133. package/dist/stzh-components/p-1f57d28e.js +1 -0
  134. package/dist/stzh-components/p-2b11d549.system.entry.js +1 -0
  135. package/dist/stzh-components/{p-07f16263.entry.js → p-32988d74.entry.js} +1 -1
  136. package/dist/stzh-components/{p-cb4a91b7.system.entry.js → p-33946fed.system.entry.js} +1 -1
  137. package/dist/stzh-components/{p-1d914f6c.entry.js → p-34190502.entry.js} +1 -1
  138. package/dist/stzh-components/{p-9e6c25ed.system.entry.js → p-370b82e7.system.entry.js} +1 -1
  139. package/dist/stzh-components/p-3ebd2c03.js +1 -0
  140. package/dist/stzh-components/{p-f544cf3d.entry.js → p-3ed69b16.entry.js} +1 -1
  141. package/dist/stzh-components/{p-e58d3bc7.entry.js → p-409c0d50.entry.js} +1 -1
  142. package/dist/stzh-components/{p-19344366.system.entry.js → p-4a398453.system.entry.js} +1 -1
  143. package/dist/stzh-components/{p-49e37004.entry.js → p-586cae98.entry.js} +1 -1
  144. package/dist/stzh-components/p-5e0cccc9.system.entry.js +1 -0
  145. package/dist/stzh-components/{p-2990206c.system.entry.js → p-5ea652ae.system.entry.js} +1 -1
  146. package/dist/stzh-components/{p-634095bd.system.entry.js → p-68a8b7b7.system.entry.js} +1 -1
  147. package/dist/stzh-components/{p-2f2cb544.system.entry.js → p-6c3b2508.system.entry.js} +1 -1
  148. package/dist/stzh-components/{p-a4100bd8.system.entry.js → p-6fc271d0.system.entry.js} +1 -1
  149. package/dist/stzh-components/p-7921db30.system.entry.js +1 -0
  150. package/dist/stzh-components/p-79bfc485.entry.js +1 -0
  151. package/dist/stzh-components/{p-4cfe83b5.system.entry.js → p-87ab53c4.system.entry.js} +1 -1
  152. package/dist/stzh-components/{p-b1976630.entry.js → p-8a60addb.entry.js} +1 -1
  153. package/dist/stzh-components/{p-298276e4.entry.js → p-8bd3ba06.entry.js} +1 -1
  154. package/dist/stzh-components/{p-0c92ee26.system.entry.js → p-90a10825.system.entry.js} +1 -1
  155. package/dist/stzh-components/{p-c2d58384.entry.js → p-95a297aa.entry.js} +1 -1
  156. package/dist/stzh-components/{p-86d3ce62.entry.js → p-95eb03b2.entry.js} +1 -1
  157. package/dist/stzh-components/p-983f6070.entry.js +1 -0
  158. package/dist/stzh-components/p-a7253852.entry.js +1 -0
  159. package/dist/stzh-components/{p-f8d9411d.system.entry.js → p-a760352a.system.entry.js} +1 -1
  160. package/dist/stzh-components/p-aaa2e48f.system.js +1 -0
  161. package/dist/stzh-components/p-b281b653.entry.js +8 -0
  162. package/dist/stzh-components/p-b35b0270.entry.js +1 -0
  163. package/dist/stzh-components/p-b4fc71ff.system.entry.js +1 -0
  164. package/dist/stzh-components/{p-79ca1ba6.entry.js → p-bb2e1dda.entry.js} +1 -1
  165. package/dist/stzh-components/{p-55188328.entry.js → p-bdba7714.entry.js} +1 -1
  166. package/dist/stzh-components/p-c581e798.system.entry.js +1 -0
  167. package/dist/stzh-components/p-c7c17bb7.system.entry.js +7 -0
  168. package/dist/stzh-components/{p-1ccbd2d6.system.entry.js → p-c863ffd0.system.entry.js} +1 -1
  169. package/dist/stzh-components/{p-3c4478b0.entry.js → p-d8471675.entry.js} +1 -1
  170. package/dist/stzh-components/{p-0433fff9.system.entry.js → p-da063c7e.system.entry.js} +1 -1
  171. package/dist/stzh-components/p-e12db90a.entry.js +1 -0
  172. package/dist/stzh-components/{p-2d0685e3.entry.js → p-ec3d4dd4.entry.js} +1 -1
  173. package/dist/stzh-components/p-ee5ceac4.entry.js +1 -0
  174. package/dist/stzh-components/p-f0ca6848.system.entry.js +1 -0
  175. package/dist/stzh-components/{p-bba52769.system.entry.js → p-f1a58a7c.system.entry.js} +1 -1
  176. package/dist/stzh-components/{p-1bfc1097.entry.js → p-f2050d1e.entry.js} +1 -1
  177. package/dist/stzh-components/{p-ff8a3e96.entry.js → p-f610f725.entry.js} +1 -1
  178. package/dist/stzh-components/p-faf20030.system.js +1 -0
  179. package/dist/stzh-components/{p-f9dc7a9b.entry.js → p-fba76dba.entry.js} +1 -1
  180. package/dist/stzh-components/{p-e987954a.system.entry.js → p-fce0e218.system.entry.js} +1 -1
  181. package/dist/stzh-components/{p-a6486f64.system.entry.js → p-fd16e20e.system.entry.js} +1 -1
  182. package/dist/stzh-components/stzh-components.css +1 -1
  183. package/dist/stzh-components/stzh-components.esm.js +1 -1
  184. package/dist/stzh-components/stzh-components.js +1 -1
  185. package/dist/types/components.d.ts +68 -2
  186. package/dist/types/index.d.ts +1 -0
  187. package/dist/types/utils/utils.d.ts +2 -0
  188. package/dist/vscode-data.json +20 -1
  189. package/package.json +1 -1
  190. package/dist/cjs/utils-d327c19d.js +0 -36
  191. package/dist/esm/utils-904416df.js +0 -33
  192. package/dist/esm-es5/app-globals-70c229e3.js +0 -1
  193. package/dist/esm-es5/utils-904416df.js +0 -1
  194. package/dist/stzh-components/p-043ab41e.system.entry.js +0 -1
  195. package/dist/stzh-components/p-323fdc2f.entry.js +0 -1
  196. package/dist/stzh-components/p-49ea222f.system.entry.js +0 -1
  197. package/dist/stzh-components/p-5f7b72c8.entry.js +0 -1
  198. package/dist/stzh-components/p-5f856307.system.js +0 -1
  199. package/dist/stzh-components/p-6c502e6e.js +0 -1
  200. package/dist/stzh-components/p-6ea5c23d.system.entry.js +0 -7
  201. package/dist/stzh-components/p-7279af4a.system.entry.js +0 -1
  202. package/dist/stzh-components/p-8462ba57.entry.js +0 -1
  203. package/dist/stzh-components/p-88bef2cd.entry.js +0 -1
  204. package/dist/stzh-components/p-a7c3b41a.entry.js +0 -1
  205. package/dist/stzh-components/p-aa4e28cc.system.js +0 -1
  206. package/dist/stzh-components/p-ac1da083.system.js +0 -1
  207. package/dist/stzh-components/p-b63d6ded.system.entry.js +0 -1
  208. package/dist/stzh-components/p-bcade28e.entry.js +0 -1
  209. package/dist/stzh-components/p-be21cebd.js +0 -1
  210. package/dist/stzh-components/p-d04e8743.system.entry.js +0 -1
  211. package/dist/stzh-components/p-d8819b74.system.entry.js +0 -1
  212. package/dist/stzh-components/p-e048de42.entry.js +0 -8
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-0e6d34c6.js";import{s as setPropsIfNull}from"./utils-904416df.js";var stzhReadspeakerCss=":host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-readspeaker{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}.stzh-readspeaker[hidden]{display:none}.stzh-readspeaker *,.stzh-readspeaker *::before,.stzh-readspeaker *::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-readspeaker .rsbtn_play{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-readspeaker .rsbtn_classic.rsexpanded .rsbtn_exp.rsimg{float:left;padding-bottom:0;-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover)}.rsbtn_classic.rsexpanded{position:absolute;max-width:100%;z-index:var(--stzh-z-index-sticky)}.rsbtn_classic.rsexpanded,.rsbtn_classic.rsexpanded *,.rsbtn_classic.rsexpanded *::after,.rsbtn_classic.rsexpanded *::before{-webkit-box-sizing:initial;box-sizing:initial}.rsbtn_classic.rsexpanded .rsbtn_playerarea{padding:0.625rem;border:none}.rsbtn_classic.rsexpanded .rsbtn_closer.rsimg{right:0.625rem;top:0.625rem}.rsbtn_classic.rsexpanded .rsbtn_settings .rsbtn_btnlabel.rsimg,.rsbtn_classic.rsexpanded .rsbtn_dl .rsbtn_btnlabel,.rsbtn_classic.rsexpanded .rsbtn_powered .rsbtn_btnlabel{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);height:auto}.rsbtn_classic.rsexpanded .rsbtn_bottomlinks{margin-top:0.3125rem}.rsbtn_classic.rsexpanded .rsbtn_topbar>*,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_icon,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_stop,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_pause,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_volume,.rsbtn_classic.rsexpanded .rsbtn_closer,.rsbtn_classic.rsexpanded .rsbtn_progress_container.rsimg{border:0.375rem solid var(--stzh-color-grey13);border-radius:0.3125rem}.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_icon{border:0.3125rem solid var(--stzh-color-grey13)}.rsbtn_classic.rsexpanded .rsbtn_progress_container.rsimg{border:0.4375rem solid var(--stzh-color-grey13)}.rsbtn_classic.rsexpanded .rsbtn_topbar{margin-right:2.5rem}.rsbtn_classic.rspopup.rscompact{z-index:var(--stzh-z-index-sticky);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border:none;padding:0.625rem}.rsbtn_classic.rspopup.rscompact .rsbtn_play{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:1.25rem;height:1.25rem}.rsbtn_classic.rspopup.rscompact .rsbtn_play .rsbtn_left,.rsbtn_classic.rspopup.rscompact .rsbtn_play .rsbtn_right{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.rsbtn_classic.rspopup.rscompact .rsbtn_exp .rsbtn_separator{height:0.0625rem}";var StzhReadspeaker=function(){function s(s){var e=this;registerInstance(this,s);this.onLinkClick=function(){e.readspeakerLink.click()};this.init=function(){e.addClickEvents();var s=e.element.querySelectorAll("stzh-link, stzh-button");s.forEach((function(s){s.addEventListener("click",e.onLinkClick);setPropsIfNull(s,{icon:"volume-medium"})}))}}s.prototype.addClickEvents=function(){if(window.ReadSpeaker){window.ReadSpeaker.init()}if(window.rspkr&&window.rspkr.ui){window.rspkr.ui.addClickEvents()}};s.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};s.prototype.disconnectedCallback=function(){this.observer.disconnect()};s.prototype.render=function(){var s=this;var e={"stzh-readspeaker":true};return h(Host,null,h("div",{class:e},h("slot",null),h("div",{class:"rs_skip rsbtn_classic rs_preserve right"},h("a",{"aria-hidden":"true",tabindex:"-1",rel:"nofollow",class:"rsbtn_play icon read",href:this.href,"data-rsevent-id":this.eventId,ref:function(e){return s.readspeakerLink=e}},h("span",{class:"rsbtn_text"},h("span",null,"readspeakerlink"))))))};Object.defineProperty(s.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return s}();StzhReadspeaker.style=stzhReadspeakerCss;export{StzhReadspeaker as stzh_readspeaker};
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-0e6d34c6.js";import{s as setPropsIfNull}from"./utils-68a28fce.js";var stzhReadspeakerCss=":host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-readspeaker{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}.stzh-readspeaker[hidden]{display:none}.stzh-readspeaker *,.stzh-readspeaker *::before,.stzh-readspeaker *::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-readspeaker .rsbtn_play{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-readspeaker .rsbtn_classic.rsexpanded .rsbtn_exp.rsimg{float:left;padding-bottom:0;-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover)}.rsbtn_classic.rsexpanded{position:absolute;max-width:100%;z-index:var(--stzh-z-index-sticky)}.rsbtn_classic.rsexpanded,.rsbtn_classic.rsexpanded *,.rsbtn_classic.rsexpanded *::after,.rsbtn_classic.rsexpanded *::before{-webkit-box-sizing:initial;box-sizing:initial}.rsbtn_classic.rsexpanded .rsbtn_playerarea{padding:0.625rem;border:none}.rsbtn_classic.rsexpanded .rsbtn_closer.rsimg{right:0.625rem;top:0.625rem}.rsbtn_classic.rsexpanded .rsbtn_settings .rsbtn_btnlabel.rsimg,.rsbtn_classic.rsexpanded .rsbtn_dl .rsbtn_btnlabel,.rsbtn_classic.rsexpanded .rsbtn_powered .rsbtn_btnlabel{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);height:auto}.rsbtn_classic.rsexpanded .rsbtn_bottomlinks{margin-top:0.3125rem}.rsbtn_classic.rsexpanded .rsbtn_topbar>*,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_icon,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_stop,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_pause,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_volume,.rsbtn_classic.rsexpanded .rsbtn_closer,.rsbtn_classic.rsexpanded .rsbtn_progress_container.rsimg{border:0.375rem solid var(--stzh-color-grey13);border-radius:0.3125rem}.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_icon{border:0.3125rem solid var(--stzh-color-grey13)}.rsbtn_classic.rsexpanded .rsbtn_progress_container.rsimg{border:0.4375rem solid var(--stzh-color-grey13)}.rsbtn_classic.rsexpanded .rsbtn_topbar{margin-right:2.5rem}.rsbtn_classic.rspopup.rscompact{z-index:var(--stzh-z-index-sticky);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border:none;padding:0.625rem}.rsbtn_classic.rspopup.rscompact .rsbtn_play{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:1.25rem;height:1.25rem}.rsbtn_classic.rspopup.rscompact .rsbtn_play .rsbtn_left,.rsbtn_classic.rspopup.rscompact .rsbtn_play .rsbtn_right{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.rsbtn_classic.rspopup.rscompact .rsbtn_exp .rsbtn_separator{height:0.0625rem}";var StzhReadspeaker=function(){function s(s){var e=this;registerInstance(this,s);this.onLinkClick=function(){e.readspeakerLink.click()};this.init=function(){e.addClickEvents();var s=e.element.querySelectorAll("stzh-link, stzh-button");s.forEach((function(s){s.addEventListener("click",e.onLinkClick);setPropsIfNull(s,{icon:"volume-medium"})}))}}s.prototype.addClickEvents=function(){if(window.ReadSpeaker){window.ReadSpeaker.init()}if(window.rspkr&&window.rspkr.ui){window.rspkr.ui.addClickEvents()}};s.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};s.prototype.disconnectedCallback=function(){this.observer.disconnect()};s.prototype.render=function(){var s=this;var e={"stzh-readspeaker":true};return h(Host,null,h("div",{class:e},h("slot",null),h("div",{class:"rs_skip rsbtn_classic rs_preserve right"},h("a",{"aria-hidden":"true",tabindex:"-1",rel:"nofollow",class:"rsbtn_play icon read",href:this.href,"data-rsevent-id":this.eventId,ref:function(e){return s.readspeakerLink=e}},h("span",{class:"rsbtn_text"},h("span",null,"readspeakerlink"))))))};Object.defineProperty(s.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return s}();StzhReadspeaker.style=stzhReadspeakerCss;export{StzhReadspeaker as stzh_readspeaker};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,s,i){function r(t){return t instanceof s?t:new s((function(e){e(t)}))}return new(s||(s=Promise))((function(s,a){function l(t){try{n(i.next(t))}catch(e){a(e)}}function c(t){try{n(i["throw"](t))}catch(e){a(e)}}function n(t){t.done?s(t.value):r(t.value).then(l,c)}n((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(t){return function(e){return n([t,e])}}function n(l){if(i)throw new TypeError("Generator is already executing.");while(s)try{if(i=1,r&&(a=l[0]&2?r["return"]:l[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;if(r=0,a)l=[l[0]&2,a.value];switch(l[0]){case 0:case 1:a=l;break;case 4:s.label++;return{value:l[1],done:false};case 5:s.label++;r=l[1];l=[0];continue;case 7:l=s.ops.pop();s.trys.pop();continue;default:if(!(a=s.trys,a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){s=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){s.label=l[1];break}if(l[0]===6&&s.label<a[1]){s.label=a[1];a=l;break}if(a&&s.label<a[2]){s.label=a[2];s.ops.push(l);break}if(a[2])s.ops.pop();s.trys.pop();continue}l=e.call(t,s)}catch(c){l=[6,c];r=0}finally{i=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};import{r as registerInstance,h,a as Host,g as getElement}from"./index-0e6d34c6.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";var stzhServicecardListCss=".sc-stzh-servicecard-list-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-servicecard-list-h{display:none}.sc-stzh-servicecard-list-h *.sc-stzh-servicecard-list,.sc-stzh-servicecard-list-h *.sc-stzh-servicecard-list::before,.sc-stzh-servicecard-list-h *.sc-stzh-servicecard-list::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-servicecard-list-h .sc-stzh-servicecard-list-s>*:not(:last-child):not([slot]){margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.sc-stzh-servicecard-list-h .sc-stzh-servicecard-list-s>*:not(:last-child):not([slot]){margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.sc-stzh-servicecard-list-h .sc-stzh-servicecard-list-s>*:not(:last-child):not([slot]){margin-bottom:var(--stzh-space-xlarge)}}.sc-stzh-servicecard-list-h .sc-stzh-servicecard-list-s>[slot=description] stzh-icon{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.sc-stzh-servicecard-list-h .sc-stzh-servicecard-list-s>stzh-text[slot=description]{--color:inherit}.stzh-servicecard-list__header.sc-stzh-servicecard-list{margin-bottom:var(--stzh-space-medium);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}@media screen and (min-width: 1024px){.stzh-servicecard-list__header.sc-stzh-servicecard-list{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard-list__header.sc-stzh-servicecard-list{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){.stzh-servicecard-list__header.sc-stzh-servicecard-list{-ms-flex-direction:row;flex-direction:row}}.stzh-servicecard-list__description.sc-stzh-servicecard-list{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);color:var(--stzh-base-lead-color)}@media screen and (min-width: 1024px){.stzh-servicecard-list__description.sc-stzh-servicecard-list{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-servicecard-list__description.sc-stzh-servicecard-list:not(:empty){margin-bottom:var(--stzh-space-xsmall)}@media screen and (min-width: 800px){.stzh-servicecard-list__description.sc-stzh-servicecard-list:not(:empty){margin-bottom:0}}.stzh-servicecard-list__switch.sc-stzh-servicecard-list{--color:var(--stzh-base-lead-color);-ms-flex-item-align:end;align-self:end}";var StzhServicecardList=function(){function t(t){var e=this;registerInstance(this,t);this.sortableDisabled=false;this.showToggleLink=false;this.sortableDataIdAttribute="data-id";this.allCollapsed=false;this.collapseClick=function(){var t=Array.from(e.element.querySelectorAll("stzh-servicecard"));t.forEach((function(t){if(t.collapsible){t.collapsed=!e.allCollapsed}}));e.allCollapsed=!e.allCollapsed};this.updateCollapsedState=function(){var t=Array.from(e.element.querySelectorAll("stzh-servicecard"));e.allCollapsed=!t.some((function(t){return!t.collapsed}))}}t.prototype.collapseListener=function(){this.updateCollapsedState()};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"servicecard-list")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentDidLoad=function(){this.updateCollapsedState()};t.prototype.render=function(){var t={"stzh-servicecard-list":true};return h(Host,null,h("div",{class:t},h("div",{class:"stzh-servicecard-list__header"},h("div",{class:"stzh-servicecard-list__description"},h("slot",{name:"description"})),this.showToggleLink&&h("stzh-link",{class:"stzh-servicecard-list__switch",icon:this.allCollapsed?"list-expanded":"list-shrinked",label:this.allCollapsed?this.localization.expandAll:this.localization.collapseAll,onClick:this.collapseClick})),h("stzh-sortable",{disabled:this.sortableDisabled,dataIdAttribute:this.sortableDataIdAttribute},h("div",{class:"stzh-servicecard-list__cards",role:"list"},h("slot",null)))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhServicecardList.style=stzhServicecardListCss;export{StzhServicecardList as stzh_servicecard_list};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,s,i){function r(t){return t instanceof s?t:new s((function(e){e(t)}))}return new(s||(s=Promise))((function(s,a){function l(t){try{n(i.next(t))}catch(e){a(e)}}function c(t){try{n(i["throw"](t))}catch(e){a(e)}}function n(t){t.done?s(t.value):r(t.value).then(l,c)}n((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(t){return function(e){return n([t,e])}}function n(l){if(i)throw new TypeError("Generator is already executing.");while(s)try{if(i=1,r&&(a=l[0]&2?r["return"]:l[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;if(r=0,a)l=[l[0]&2,a.value];switch(l[0]){case 0:case 1:a=l;break;case 4:s.label++;return{value:l[1],done:false};case 5:s.label++;r=l[1];l=[0];continue;case 7:l=s.ops.pop();s.trys.pop();continue;default:if(!(a=s.trys,a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){s=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){s.label=l[1];break}if(l[0]===6&&s.label<a[1]){s.label=a[1];a=l;break}if(a&&s.label<a[2]){s.label=a[2];s.ops.push(l);break}if(a[2])s.ops.pop();s.trys.pop();continue}l=e.call(t,s)}catch(c){l=[6,c];r=0}finally{i=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};import{r as registerInstance,h,a as Host,g as getElement}from"./index-0e6d34c6.js";import{c as cloneElement}from"./utils-68a28fce.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";var stzhServicecardListCss=".sc-stzh-servicecard-list-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-servicecard-list-h{display:none}.sc-stzh-servicecard-list-h *.sc-stzh-servicecard-list,.sc-stzh-servicecard-list-h *.sc-stzh-servicecard-list::before,.sc-stzh-servicecard-list-h *.sc-stzh-servicecard-list::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-servicecard-list-h .sc-stzh-servicecard-list-s>*:not(:last-child):not([slot]){margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.sc-stzh-servicecard-list-h .sc-stzh-servicecard-list-s>*:not(:last-child):not([slot]){margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.sc-stzh-servicecard-list-h .sc-stzh-servicecard-list-s>*:not(:last-child):not([slot]){margin-bottom:var(--stzh-space-xlarge)}}.sc-stzh-servicecard-list-h .sc-stzh-servicecard-list-s>[slot=description] stzh-icon{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.sc-stzh-servicecard-list-h .sc-stzh-servicecard-list-s>stzh-text[slot=description]{--color:inherit}.stzh-servicecard-list__header.sc-stzh-servicecard-list{margin-bottom:var(--stzh-space-medium);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}@media screen and (min-width: 1024px){.stzh-servicecard-list__header.sc-stzh-servicecard-list{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard-list__header.sc-stzh-servicecard-list{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){.stzh-servicecard-list__header.sc-stzh-servicecard-list{-ms-flex-direction:row;flex-direction:row}}.stzh-servicecard-list__description.sc-stzh-servicecard-list{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);color:var(--stzh-base-lead-color)}@media screen and (min-width: 1024px){.stzh-servicecard-list__description.sc-stzh-servicecard-list{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-servicecard-list__description.sc-stzh-servicecard-list:not(:empty){margin-bottom:var(--stzh-space-xsmall)}@media screen and (min-width: 800px){.stzh-servicecard-list__description.sc-stzh-servicecard-list:not(:empty){margin-bottom:0}}.stzh-servicecard-list__switch.sc-stzh-servicecard-list{--color:var(--stzh-base-lead-color);-ms-flex-item-align:end;align-self:end}";var StzhServicecardList=function(){function t(t){var e=this;registerInstance(this,t);this.showToggleLink=false;this.sortableDisabled=false;this.sortableDataIdAttribute="data-id";this.sortableGhostClone=function(t){var e=cloneElement(t),s=e[0],i=e[1],r=e[2];if(i&&r&&i.tagName.toLowerCase()==="stzh-servicecard"){var a=i;var l=r;a.heading=l.heading;a.subtitle=l.subtitle;a.actions=l.actions;a.hideMovementActions=l.hideMovementActions}return s};this.allCollapsed=false;this.collapseClick=function(){var t=Array.from(e.element.querySelectorAll("stzh-servicecard"));t.forEach((function(t){if(t.collapsible){t.collapsed=!e.allCollapsed}}));e.allCollapsed=!e.allCollapsed};this.updateCollapsedState=function(){var t=Array.from(e.element.querySelectorAll("stzh-servicecard"));e.allCollapsed=!t.some((function(t){return!t.collapsed}))}}t.prototype.collapseListener=function(){this.updateCollapsedState()};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"servicecard-list")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentDidLoad=function(){this.updateCollapsedState()};t.prototype.render=function(){var t={"stzh-servicecard-list":true};return h(Host,null,h("div",{class:t},h("div",{class:"stzh-servicecard-list__header"},h("div",{class:"stzh-servicecard-list__description"},h("slot",{name:"description"})),this.showToggleLink&&h("stzh-link",{class:"stzh-servicecard-list__switch",icon:this.allCollapsed?"list-expanded":"list-shrinked",label:this.allCollapsed?this.localization.expandAll:this.localization.collapseAll,onClick:this.collapseClick})),h("stzh-sortable",{disabled:this.sortableDisabled,dataIdAttribute:this.sortableDataIdAttribute,ghostClone:this.sortableGhostClone},h("div",{class:"stzh-servicecard-list__cards",role:"list"},h("slot",null)))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhServicecardList.style=stzhServicecardListCss;export{StzhServicecardList as stzh_servicecard_list};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,s,t,r){function i(e){return e instanceof t?e:new t((function(s){s(e)}))}return new(t||(t=Promise))((function(t,a){function c(e){try{d(r.next(e))}catch(s){a(s)}}function n(e){try{d(r["throw"](e))}catch(s){a(s)}}function d(e){e.done?t(e.value):i(e.value).then(c,n)}d((r=r.apply(e,s||[])).next())}))};var __generator=this&&this.__generator||function(e,s){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,c;return c={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function n(e){return function(s){return d([e,s])}}function d(c){if(r)throw new TypeError("Generator is already executing.");while(t)try{if(r=1,i&&(a=c[0]&2?i["return"]:c[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;if(i=0,a)c=[c[0]&2,a.value];switch(c[0]){case 0:case 1:a=c;break;case 4:t.label++;return{value:c[1],done:false};case 5:t.label++;i=c[1];c=[0];continue;case 7:c=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){t.label=c[1];break}if(c[0]===6&&t.label<a[1]){t.label=a[1];a=c;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(c);break}if(a[2])t.ops.pop();t.trys.pop();continue}c=s.call(e,t)}catch(n){c=[6,n];i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,i as forceUpdate,h,F as Fragment,a as Host,g as getElement}from"./index-0e6d34c6.js";import{h as hasSlot}from"./utils-904416df.js";import{m as media}from"./media-utils-9b041ceb.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";var stzhServicecardCss='.sc-stzh-servicecard-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-servicecard-h{display:none}.sc-stzh-servicecard-h *.sc-stzh-servicecard,.sc-stzh-servicecard-h *.sc-stzh-servicecard::before,.sc-stzh-servicecard-h *.sc-stzh-servicecard::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-servicecard-h{--box-shadow:var(--stzh-box-shadow-popover);--border:0.0625rem solid var(--stzh-base-border-color);--border-radius:0.1875rem;--dnd-visibility:hidden;--dnd-opacity:0;position:relative;border-radius:var(--border-radius)}.is-ghost.sc-stzh-servicecard-h::after{border-radius:var(--border-radius)}.is-selected.sc-stzh-servicecard-h,.is-chosen.sc-stzh-servicecard-h{--box-shadow:var(--stzh-box-shadow-overlay)}.is-ghost.sc-stzh-servicecard-h{--box-shadow:none;--border:0.0625rem solid transparent;overflow:hidden}.is-drag.sc-stzh-servicecard-h,.is-chosen.sc-stzh-servicecard-h,.is-ghost.sc-stzh-servicecard-h,.is-selected.sc-stzh-servicecard-h{--dnd-visibility:visible;--dnd-opacity:1}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>*{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing)}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table{border:0;border-spacing:0}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table th{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table td,.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table th{padding:0}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table td{color:var(--stzh-color-black);padding-left:var(--stzh-space-xsmall)}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>*:not(:first-child){margin-top:var(--stzh-space-medium)}.stzh-servicecard.sc-stzh-servicecard{background-color:var(--stzh-color-white);border-radius:var(--border-radius);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);border:var(--border);-webkit-transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed), -webkit-box-shadow var(--stzh-base-transition-animation-speed)}@media screen and (max-width: 1023px){.stzh-servicecard.sc-stzh-servicecard .show-medium.sc-stzh-servicecard{display:none}}@media screen and (min-width: 1024px){.stzh-servicecard.sc-stzh-servicecard .hide-medium.sc-stzh-servicecard{display:none}}.stzh-servicecard__dnd.sc-stzh-servicecard{--size:var(--stzh-icon-size-xsmall);position:absolute;left:0.1875rem;top:1.4375rem;display:-ms-flexbox;display:flex;visibility:var(--dnd-visibility);opacity:var(--dnd-opacity);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);display:none}@media screen and (min-width: 1024px){.stzh-servicecard__dnd.sc-stzh-servicecard{display:block}}@media screen and (min-width: 1260px){.stzh-servicecard__dnd.sc-stzh-servicecard{left:0.25rem;top:1.6875rem}}.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-xsmall);padding-bottom:var(--stzh-space-xsmall);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start;border-bottom:0.0625rem solid var(--stzh-base-border-color)}@media screen and (min-width: 600px){.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-large)}}@media screen and (min-width: 600px){.stzh-servicecard__header.sc-stzh-servicecard{padding-bottom:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-servicecard__header.sc-stzh-servicecard{padding-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-servicecard__header.sc-stzh-servicecard{padding-bottom:var(--stzh-space-large)}}.stzh-servicecard__header-left.sc-stzh-servicecard,.stzh-servicecard__header-right.sc-stzh-servicecard{display:-ms-flexbox;display:flex}.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-xsmall)}@media screen and (min-width: 600px){.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-large)}}.stzh-servicecard__header.sc-stzh-servicecard,.stzh-servicecard__columns.sc-stzh-servicecard{padding-left:var(--stzh-space-medium);padding-right:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-servicecard__header.sc-stzh-servicecard,.stzh-servicecard__columns.sc-stzh-servicecard{padding-left:var(--stzh-space-large);padding-right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__header.sc-stzh-servicecard,.stzh-servicecard__columns.sc-stzh-servicecard{padding-left:var(--stzh-space-xlarge);padding-right:var(--stzh-space-xlarge)}}.stzh-servicecard__left.sc-stzh-servicecard{-ms-flex-item-align:center;align-self:center}.stzh-servicecard__title-area.sc-stzh-servicecard{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden}.stzh-servicecard__title.sc-stzh-servicecard,.stzh-servicecard__subtitle.sc-stzh-servicecard{margin:0}.stzh-servicecard__title.sc-stzh-servicecard{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-curve-h3-default-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h3-default-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-default-heading-letter-spacing);color:var(--stzh-base-lead-color)}@media screen and (min-width: 600px){.stzh-servicecard__title.sc-stzh-servicecard{font-size:var(--stzh-font-curve-h3-small-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h3-small-heading-line-height, var(--stzh-font-deci-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-small-heading-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-servicecard__title.sc-stzh-servicecard{font-size:var(--stzh-font-curve-h3-medium-font-size, var(--stzh-font-regular-font-size));line-height:var(--stzh-font-curve-h3-medium-heading-line-height, var(--stzh-font-regular-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-medium-heading-letter-spacing)}}.stzh-servicecard__subtitle.sc-stzh-servicecard{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;text-decoration:none;margin-left:-0.5625em}@media screen and (min-width: 1024px){.stzh-servicecard__subtitle.sc-stzh-servicecard{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-servicecard__subtitle-text.sc-stzh-servicecard{position:relative;display:-ms-inline-flexbox;display:inline-flex;padding-left:0.5625em}.stzh-servicecard__subtitle-text.sc-stzh-servicecard::after{content:",";position:absolute;left:0}.stzh-servicecard__columns.sc-stzh-servicecard{margin-top:var(--stzh-space-medium);margin-bottom:var(--stzh-space-medium);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}@media screen and (min-width: 1024px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-top:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){.stzh-servicecard__columns.sc-stzh-servicecard{display:grid;grid-template-columns:50% 50%;grid-template-rows:auto auto;margin-left:calc(var(--stzh-space-medium) / -1);margin-right:calc(var(--stzh-space-medium) / -1)}}@media screen and (min-width: 1024px){.stzh-servicecard__columns.sc-stzh-servicecard{grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto;margin-left:calc(var(--stzh-space-large) / -1);margin-right:calc(var(--stzh-space-large) / -1)}}@media screen and (min-width: 1260px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-left:calc(var(--stzh-space-xlarge) / -1);margin-right:calc(var(--stzh-space-xlarge) / -1)}}@media screen and (min-width: 800px){.stzh-servicecard__column.sc-stzh-servicecard{padding-left:var(--stzh-space-medium);padding-right:var(--stzh-space-medium)}}@media screen and (min-width: 1024px){.stzh-servicecard__column.sc-stzh-servicecard{padding-left:var(--stzh-space-large);padding-right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__column.sc-stzh-servicecard{padding-left:var(--stzh-space-xlarge);padding-right:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 2}}@media screen and (min-width: 1024px){.stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 2;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-middle.sc-stzh-servicecard{grid-column:2/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-right.sc-stzh-servicecard{align-self:end;grid-column:2/span 1;grid-row:2/span 1}}@media screen and (min-width: 1024px){.stzh-servicecard__column.is-right.sc-stzh-servicecard{grid-column:3/span 1;grid-row:1/span 1}}.stzh-servicecard__column.sc-stzh-servicecard:not(:empty):not(:first-child):not(.has-no-spacing){margin-top:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-servicecard__column.sc-stzh-servicecard:not(:empty):not(:first-child):not(.has-no-spacing){margin-top:0}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-middle.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-right.sc-stzh-servicecard{margin-top:0}}.stzh-servicecard__column.is-left.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-middle.sc-stzh-servicecard:not(:empty),.stzh-servicecard__column.is-left.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-middle.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-right.sc-stzh-servicecard:not(:empty){margin-top:0}.stzh-servicecard__card-actions.sc-stzh-servicecard{display:-ms-inline-flexbox;display:inline-flex;white-space:nowrap}@media screen and (max-width: 1023px){.stzh-servicecard__card-action.sc-stzh-servicecard{--icon-text-margin:0;--badge-icon-text-margin:0}}.stzh-servicecard__card-action[variant=tertiary].sc-stzh-servicecard{--color:var(--stzh-color-grey70)}.stzh-servicecard__card-action.is-button.sc-stzh-servicecard{--icon-size:var(--stzh-icon-size-small)}.stzh-servicecard__card-action.is-placeholder.sc-stzh-servicecard{width:var(--stzh-space-xxlarge);height:var(--stzh-space-xxlarge)}.stzh-servicecard__card-action-popover.sc-stzh-servicecard{--width:auto}@media screen and (min-width: 800px){.stzh-servicecard--has-middle.sc-stzh-servicecard .stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 2}}@media screen and (min-width: 1024px){.stzh-servicecard--has-middle.sc-stzh-servicecard .stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-right.sc-stzh-servicecard .stzh-servicecard__column.is-middle.sc-stzh-servicecard{margin-top:0}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-right.sc-stzh-servicecard{grid-column:2/span 1;grid-row:1/span 2}}@media screen and (min-width: 1024px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-right.sc-stzh-servicecard{grid-column:3/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-middle.sc-stzh-servicecard{grid-column:1/span 1;grid-row:2/span 1}}@media screen and (min-width: 1024px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-middle.sc-stzh-servicecard{grid-column:2/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-right.sc-stzh-servicecard{margin-top:0}}.stzh-servicecard--has-subtitle-interactive.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard{cursor:pointer;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-servicecard--has-subtitle-interactive.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:hover,.stzh-servicecard--has-subtitle-interactive.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-servicecard--type-alert.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard{color:var(--stzh-color-error)}.stzh-servicecard--type-alert.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:hover,.stzh-servicecard--type-alert.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:focus{color:var(--stzh-color-error)}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .hide-when-collapsed.sc-stzh-servicecard,.stzh-servicecard--has-collapsed-header.sc-stzh-servicecard .stzh-servicecard__header.sc-stzh-servicecard .hide-when-collapsed.sc-stzh-servicecard{display:none}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .show-when-collapsed.sc-stzh-servicecard,.stzh-servicecard--has-collapsed-header.sc-stzh-servicecard .stzh-servicecard__header.sc-stzh-servicecard .show-when-collapsed.sc-stzh-servicecard{display:block}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .stzh-servicecard__header.sc-stzh-servicecard{border-bottom:none}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .stzh-servicecard__card-action.sc-stzh-servicecard,.stzh-servicecard--has-collapsed-header.sc-stzh-servicecard .stzh-servicecard__card-action.sc-stzh-servicecard{--icon-text-margin:0;--badge-icon-text-margin:0}.stzh-servicecard--is-starred.sc-stzh-servicecard .stzh-servicecard__card-action.is-star.sc-stzh-servicecard{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-servicecard--is-starred.sc-stzh-servicecard .stzh-servicecard__card-action.is-star.sc-stzh-servicecard:hover,.stzh-servicecard--is-starred.sc-stzh-servicecard .stzh-servicecard__card-action.is-star.sc-stzh-servicecard:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}';var StzhServicecard=function(){function e(e){var s=this;registerInstance(this,e);this.stzhCollapse=createEvent(this,"stzhCollapse",7);this.stzhSubtitleClick=createEvent(this,"stzhSubtitleClick",7);this.stzhStarClick=createEvent(this,"stzhStarClick",7);this.stzhActionClick=createEvent(this,"stzhActionClick",7);this.collapsed=false;this.starred=false;this.starrable=false;this.heading="";this.subtitle="";this._subtitles=[];this.actions=[];this.subtitleInteractive=false;this.type="default";this.middleVariant="to-right";this.middleVerticalSpacing="default";this.rightVerticalSpacing="default";this.sortableDisabled=false;this.collapsible=false;this.hideMovementActions=false;this.nodeChange=function(e){var t=false;e.forEach((function(e){if(e.target.closest("[slot]")||e.target.hasAttribute("slot")){t=true}}));if(t){forceUpdate(s.element)}};this.update=function(){s.mainElement.classList.remove("stzh-servicecard--has-collapsed-header");if(media("medium").matches){var e=s.headerElement.clientWidth;var t=s.headerLeftElement.clientWidth;var r=s.headerRightElement.clientWidth;if(e-t<=r){s.mainElement.classList.add("stzh-servicecard--has-collapsed-header")}}};this.headerClick=function(e){if(!s.collapsible){return}var t=["stzh-popover","stzh-tooltip","button","a","input","select","textarea","iframe","details","label","area"];var r=e.composedPath().map((function(e){var s;return(s=e.tagName)===null||s===void 0?void 0:s.toLowerCase()}));var i=r.some((function(e){return t.includes(e)}));if(!i){s.collapsed=!s.collapsed;s.stzhCollapse.emit({component:"stzh-servicecard",collapsed:s.collapsed})}};this.subtitleClick=function(){if(s.subtitleInteractive){s.stzhSubtitleClick.emit({component:"stzh-servicecard"})}};this.starToggleClick=function(){s.stzhStarClick.emit({component:"stzh-servicecard",starred:s.starred})};this.actionClick=function(e){s.stzhActionClick.emit({component:"stzh-servicecard",action:e})};this.arrowUpClick=function(){var e=s.element.closest("stzh-sortable");if(e){e.moveItem(s.element,"up")}};this.arrowDownClick=function(){var e=s.element.closest("stzh-sortable");if(e){e.moveItem(s.element,"down")}}}e.prototype.handleResize=function(){if(this.debounceResize){window.cancelAnimationFrame(this.debounceResize)}this.debounceResize=requestAnimationFrame(this.update)};e.prototype.subtitleWatcher=function(e){if(typeof e==="string"){try{this._subtitles=JSON.parse(e)}catch(s){this._subtitles=[e]}}else{this._subtitles=e}};e.prototype.actionsWatcher=function(e){if(typeof e==="string"){this._actions=JSON.parse(e)}else{this._actions=e}};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(s){switch(s.label){case 0:this.subtitleWatcher(this.subtitle);this.actionsWatcher(this.actions);if(!!this.localization)return[3,2];e=this;return[4,fetchTranslations(this.element,"servicecard")];case 1:e.localization=s.sent();s.label=2;case 2:return[2]}}))}))};e.prototype.connectedCallback=function(){this.observer=new MutationObserver(this.nodeChange);this.observer.observe(this.element,{childList:true,subtree:true})};e.prototype.disconnectedCallback=function(){this.observer.disconnect()};e.prototype.render=function(){var e;var s=this;var t=hasSlot(this.element,"left");var r=hasSlot(this.element,"middle");var i=hasSlot(this.element,"right");var a=(e={"stzh-servicecard":true,"stzh-servicecard--has-left":t,"stzh-servicecard--has-middle":r,"stzh-servicecard--has-right":i,"stzh-servicecard--has-subtitle":!!this.subtitle,"stzh-servicecard--has-subtitle-interactive":!!this.subtitle&&this.subtitleInteractive,"stzh-servicecard--is-collapsed":this.collapsed,"stzh-servicecard--is-starred":this.starred},e["stzh-servicecard--middle-".concat(this.middleVariant)]=!!this.middleVariant&&r,e["stzh-servicecard--type-".concat(this.type)]=!!this.type,e);var c="".concat(this.subtitleInteractive?"button":"span");return h(Host,{role:"listitem","aria-label":this.heading},h("article",{ref:function(e){return s.mainElement=e},class:a},h("stzh-icon",{class:"stzh-servicecard__dnd",name:"drag"}),h("header",{ref:function(e){return s.headerElement=e},class:"stzh-servicecard__header",onClick:this.headerClick},h("div",{ref:function(e){return s.headerLeftElement=e},class:"stzh-servicecard__header-left"},h("div",{class:"stzh-servicecard__title-area","data-dashboardmknlist":"title"},h("h3",{class:"stzh-servicecard__title","data-dashboardmknlist":"dnd"},this.heading),this._subtitles.length>0&&h(c,{class:"stzh-servicecard__subtitle",onClick:this.subtitleClick},this._subtitles.map((function(e){return h("span",{class:"stzh-servicecard__subtitle-text"},e)}))))),h("div",{ref:function(e){return s.headerRightElement=e},class:"stzh-servicecard__header-right"},h("div",{class:"stzh-servicecard__card-actions"},this._actions.map((function(e){return h("stzh-button",{class:{"stzh-servicecard__card-action":true,"is-button":true,"show-medium":!e.onlyCollapseText,"hide-when-collapsed":!e.onlyCollapseText,"hide-text-when-collapsed":e.onlyCollapseText},icon:e.icon,badge:e.badge,variant:"tertiary",size:"tiny",badgePosition:"icon",onClick:function(){s.actionClick(e)}},h("span",{class:{"show-medium":e.onlyCollapseText,"hide-when-collapsed":e.onlyCollapseText}},e.label))})),this.starrable&&h("stzh-tooltip",null,h("stzh-button",{class:"stzh-servicecard__card-action is-star",icon:this.starred?"star-filled":"star",variant:"tertiary",size:"tiny",iconOnly:true,onClick:this.starToggleClick}),h("div",{slot:"content"},this.starred?this.localization.actionRemove:this.localization.actionAdd)),h("stzh-popover",{label:this.localization.actionsPopoverLabel,placement:"bottom-end",class:"stzh-servicecard__card-action-popover"},h("stzh-button",{class:"stzh-servicecard__card-action is-further",variant:"tertiary",size:"tiny",icon:"more-vertical",iconOnly:true}),h("stzh-menu",{slot:"content"},this.starrable&&h("stzh-menu-item",{icon:this.starred?"star-filled":"star",onClick:this.starToggleClick},this.starred?this.localization.actionRemove:this.localization.actionAdd),this._actions.filter((function(e){return!e.onlyCollapseText})).map((function(e){return h("stzh-menu-item",{class:"hide-medium show-when-collapsed",icon:e.icon,badge:e.badge,onClick:function(){s.actionClick(e)}},e.label)})),!this.sortableDisabled&&!this.hideMovementActions&&h(Fragment,null,h("stzh-menu-item",{icon:"arrow-up",onClick:this.arrowUpClick},this.localization.actionMoveUp),h("stzh-menu-item",{icon:"arrow-down",onClick:this.arrowDownClick},this.localization.actionMoveDown))))))),h("div",{class:"stzh-servicecard__columns hide-when-collapsed"},h("div",{class:{"stzh-servicecard__column":true,"is-left":true}},h("slot",{name:"left"})),h("div",{class:{"stzh-servicecard__column":true,"is-middle":true,"has-no-spacing":this.middleVerticalSpacing==="none"}},h("slot",{name:"middle"})),h("div",{class:{"stzh-servicecard__column":true,"is-right":true,"has-no-spacing":this.rightVerticalSpacing==="none"}},h("slot",{name:"right"})))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{subtitle:["subtitleWatcher"],actions:["actionsWatcher"]}},enumerable:false,configurable:true});return e}();StzhServicecard.style=stzhServicecardCss;export{StzhServicecard as stzh_servicecard};
1
+ var __awaiter=this&&this.__awaiter||function(e,s,t,r){function i(e){return e instanceof t?e:new t((function(s){s(e)}))}return new(t||(t=Promise))((function(t,a){function c(e){try{d(r.next(e))}catch(s){a(s)}}function n(e){try{d(r["throw"](e))}catch(s){a(s)}}function d(e){e.done?t(e.value):i(e.value).then(c,n)}d((r=r.apply(e,s||[])).next())}))};var __generator=this&&this.__generator||function(e,s){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,c;return c={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function n(e){return function(s){return d([e,s])}}function d(c){if(r)throw new TypeError("Generator is already executing.");while(t)try{if(r=1,i&&(a=c[0]&2?i["return"]:c[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;if(i=0,a)c=[c[0]&2,a.value];switch(c[0]){case 0:case 1:a=c;break;case 4:t.label++;return{value:c[1],done:false};case 5:t.label++;i=c[1];c=[0];continue;case 7:c=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){t.label=c[1];break}if(c[0]===6&&t.label<a[1]){t.label=a[1];a=c;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(c);break}if(a[2])t.ops.pop();t.trys.pop();continue}c=s.call(e,t)}catch(n){c=[6,n];i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,i as forceUpdate,h,F as Fragment,a as Host,g as getElement}from"./index-0e6d34c6.js";import{h as hasSlot}from"./utils-68a28fce.js";import{m as media}from"./media-utils-9b041ceb.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";var stzhServicecardCss='.sc-stzh-servicecard-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-servicecard-h{display:none}.sc-stzh-servicecard-h *.sc-stzh-servicecard,.sc-stzh-servicecard-h *.sc-stzh-servicecard::before,.sc-stzh-servicecard-h *.sc-stzh-servicecard::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-servicecard-h{--box-shadow:var(--stzh-box-shadow-popover);--border:0.0625rem solid var(--stzh-base-border-color);--border-radius:0.1875rem;--dnd-visibility:hidden;--dnd-opacity:0;position:relative;border-radius:var(--border-radius)}.is-ghost.sc-stzh-servicecard-h::after,.is-ghost .sc-stzh-servicecard-h::after{border-radius:var(--border-radius)}.is-selected.sc-stzh-servicecard-h,.is-chosen.sc-stzh-servicecard-h,.is-selected .sc-stzh-servicecard-h,.is-chosen .sc-stzh-servicecard-h{--box-shadow:var(--stzh-box-shadow-overlay)}.is-ghost.sc-stzh-servicecard-h,.is-ghost .sc-stzh-servicecard-h{--box-shadow:none;--border:0.0625rem solid transparent;overflow:hidden}.is-drag.sc-stzh-servicecard-h,.is-chosen.sc-stzh-servicecard-h,.is-ghost.sc-stzh-servicecard-h,.is-selected.sc-stzh-servicecard-h,.is-drag .sc-stzh-servicecard-h,.is-chosen .sc-stzh-servicecard-h,.is-ghost .sc-stzh-servicecard-h,.is-selected .sc-stzh-servicecard-h{--dnd-visibility:visible;--dnd-opacity:1}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>*{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing)}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table{border:0;border-spacing:0}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table th{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table td,.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table th{padding:0}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table td{color:var(--stzh-color-black);padding-left:var(--stzh-space-xsmall)}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>*:not(:first-child){margin-top:var(--stzh-space-medium)}.stzh-servicecard.sc-stzh-servicecard{background-color:var(--stzh-color-white);border-radius:var(--border-radius);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);border:var(--border);-webkit-transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed), -webkit-box-shadow var(--stzh-base-transition-animation-speed)}@media screen and (max-width: 1023px){.stzh-servicecard.sc-stzh-servicecard .show-medium.sc-stzh-servicecard{display:none}}@media screen and (min-width: 1024px){.stzh-servicecard.sc-stzh-servicecard .hide-medium.sc-stzh-servicecard{display:none}}.stzh-servicecard__dnd.sc-stzh-servicecard{--size:var(--stzh-icon-size-xsmall);position:absolute;left:0.1875rem;top:1.4375rem;display:-ms-flexbox;display:flex;visibility:var(--dnd-visibility);opacity:var(--dnd-opacity);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);display:none}@media screen and (min-width: 1024px){.stzh-servicecard__dnd.sc-stzh-servicecard{display:block}}@media screen and (min-width: 1260px){.stzh-servicecard__dnd.sc-stzh-servicecard{left:0.25rem;top:1.6875rem}}.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-xsmall);padding-bottom:var(--stzh-space-xsmall);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start;border-bottom:0.0625rem solid var(--stzh-base-border-color)}@media screen and (min-width: 600px){.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-large)}}@media screen and (min-width: 600px){.stzh-servicecard__header.sc-stzh-servicecard{padding-bottom:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-servicecard__header.sc-stzh-servicecard{padding-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-servicecard__header.sc-stzh-servicecard{padding-bottom:var(--stzh-space-large)}}.stzh-servicecard__header-left.sc-stzh-servicecard,.stzh-servicecard__header-right.sc-stzh-servicecard{display:-ms-flexbox;display:flex}.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-xsmall)}@media screen and (min-width: 600px){.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-large)}}.stzh-servicecard__header.sc-stzh-servicecard,.stzh-servicecard__columns.sc-stzh-servicecard{padding-left:var(--stzh-space-medium);padding-right:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-servicecard__header.sc-stzh-servicecard,.stzh-servicecard__columns.sc-stzh-servicecard{padding-left:var(--stzh-space-large);padding-right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__header.sc-stzh-servicecard,.stzh-servicecard__columns.sc-stzh-servicecard{padding-left:var(--stzh-space-xlarge);padding-right:var(--stzh-space-xlarge)}}.stzh-servicecard__left.sc-stzh-servicecard{-ms-flex-item-align:center;align-self:center}.stzh-servicecard__title-area.sc-stzh-servicecard{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden}.stzh-servicecard__title.sc-stzh-servicecard,.stzh-servicecard__subtitle.sc-stzh-servicecard{margin:0}.stzh-servicecard__title.sc-stzh-servicecard{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-curve-h3-default-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h3-default-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-default-heading-letter-spacing);color:var(--stzh-base-lead-color)}@media screen and (min-width: 600px){.stzh-servicecard__title.sc-stzh-servicecard{font-size:var(--stzh-font-curve-h3-small-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h3-small-heading-line-height, var(--stzh-font-deci-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-small-heading-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-servicecard__title.sc-stzh-servicecard{font-size:var(--stzh-font-curve-h3-medium-font-size, var(--stzh-font-regular-font-size));line-height:var(--stzh-font-curve-h3-medium-heading-line-height, var(--stzh-font-regular-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-medium-heading-letter-spacing)}}.stzh-servicecard__subtitle.sc-stzh-servicecard{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;text-decoration:none;margin-left:-0.5625em}@media screen and (min-width: 1024px){.stzh-servicecard__subtitle.sc-stzh-servicecard{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-servicecard__subtitle-text.sc-stzh-servicecard{position:relative;display:-ms-inline-flexbox;display:inline-flex;padding-left:0.5625em}.stzh-servicecard__subtitle-text.sc-stzh-servicecard::after{content:",";position:absolute;left:0}.stzh-servicecard__columns.sc-stzh-servicecard{margin-top:var(--stzh-space-medium);margin-bottom:var(--stzh-space-medium);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}@media screen and (min-width: 1024px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-top:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){.stzh-servicecard__columns.sc-stzh-servicecard{display:grid;grid-template-columns:50% 50%;grid-template-rows:auto auto;margin-left:calc(var(--stzh-space-medium) / -1);margin-right:calc(var(--stzh-space-medium) / -1)}}@media screen and (min-width: 1024px){.stzh-servicecard__columns.sc-stzh-servicecard{grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto;margin-left:calc(var(--stzh-space-large) / -1);margin-right:calc(var(--stzh-space-large) / -1)}}@media screen and (min-width: 1260px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-left:calc(var(--stzh-space-xlarge) / -1);margin-right:calc(var(--stzh-space-xlarge) / -1)}}@media screen and (min-width: 800px){.stzh-servicecard__column.sc-stzh-servicecard{padding-left:var(--stzh-space-medium);padding-right:var(--stzh-space-medium)}}@media screen and (min-width: 1024px){.stzh-servicecard__column.sc-stzh-servicecard{padding-left:var(--stzh-space-large);padding-right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__column.sc-stzh-servicecard{padding-left:var(--stzh-space-xlarge);padding-right:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 2}}@media screen and (min-width: 1024px){.stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 2;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-middle.sc-stzh-servicecard{grid-column:2/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-right.sc-stzh-servicecard{align-self:end;grid-column:2/span 1;grid-row:2/span 1}}@media screen and (min-width: 1024px){.stzh-servicecard__column.is-right.sc-stzh-servicecard{grid-column:3/span 1;grid-row:1/span 1}}.stzh-servicecard__column.sc-stzh-servicecard:not(:empty):not(:first-child):not(.has-no-spacing){margin-top:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-servicecard__column.sc-stzh-servicecard:not(:empty):not(:first-child):not(.has-no-spacing){margin-top:0}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-middle.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-right.sc-stzh-servicecard{margin-top:0}}.stzh-servicecard__column.is-left.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-middle.sc-stzh-servicecard:not(:empty),.stzh-servicecard__column.is-left.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-middle.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-right.sc-stzh-servicecard:not(:empty){margin-top:0}.stzh-servicecard__card-actions.sc-stzh-servicecard{display:-ms-inline-flexbox;display:inline-flex;white-space:nowrap}@media screen and (max-width: 1023px){.stzh-servicecard__card-action.sc-stzh-servicecard{--icon-text-margin:0;--badge-icon-text-margin:0}}.stzh-servicecard__card-action[variant=tertiary].sc-stzh-servicecard{--color:var(--stzh-color-grey70)}.stzh-servicecard__card-action.is-button.sc-stzh-servicecard{--icon-size:var(--stzh-icon-size-small)}.stzh-servicecard__card-action.is-placeholder.sc-stzh-servicecard{width:var(--stzh-space-xxlarge);height:var(--stzh-space-xxlarge)}.stzh-servicecard__card-action-popover.sc-stzh-servicecard{--width:auto}@media screen and (min-width: 800px){.stzh-servicecard--has-middle.sc-stzh-servicecard .stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 2}}@media screen and (min-width: 1024px){.stzh-servicecard--has-middle.sc-stzh-servicecard .stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-right.sc-stzh-servicecard .stzh-servicecard__column.is-middle.sc-stzh-servicecard{margin-top:0}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-right.sc-stzh-servicecard{grid-column:2/span 1;grid-row:1/span 2}}@media screen and (min-width: 1024px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-right.sc-stzh-servicecard{grid-column:3/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-middle.sc-stzh-servicecard{grid-column:1/span 1;grid-row:2/span 1}}@media screen and (min-width: 1024px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-middle.sc-stzh-servicecard{grid-column:2/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-right.sc-stzh-servicecard{margin-top:0}}.stzh-servicecard--has-subtitle-interactive.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard{cursor:pointer;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-servicecard--has-subtitle-interactive.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:hover,.stzh-servicecard--has-subtitle-interactive.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-servicecard--type-alert.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard{color:var(--stzh-color-error)}.stzh-servicecard--type-alert.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:hover,.stzh-servicecard--type-alert.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:focus{color:var(--stzh-color-error)}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .hide-when-collapsed.sc-stzh-servicecard,.stzh-servicecard--has-collapsed-header.sc-stzh-servicecard .stzh-servicecard__header.sc-stzh-servicecard .hide-when-collapsed.sc-stzh-servicecard{display:none}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .show-when-collapsed.sc-stzh-servicecard,.stzh-servicecard--has-collapsed-header.sc-stzh-servicecard .stzh-servicecard__header.sc-stzh-servicecard .show-when-collapsed.sc-stzh-servicecard{display:block}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .stzh-servicecard__header.sc-stzh-servicecard{border-bottom:none}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .stzh-servicecard__card-action.sc-stzh-servicecard,.stzh-servicecard--has-collapsed-header.sc-stzh-servicecard .stzh-servicecard__card-action.sc-stzh-servicecard{--icon-text-margin:0;--badge-icon-text-margin:0}.stzh-servicecard--is-starred.sc-stzh-servicecard .stzh-servicecard__card-action.is-star.sc-stzh-servicecard{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-servicecard--is-starred.sc-stzh-servicecard .stzh-servicecard__card-action.is-star.sc-stzh-servicecard:hover,.stzh-servicecard--is-starred.sc-stzh-servicecard .stzh-servicecard__card-action.is-star.sc-stzh-servicecard:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}';var StzhServicecard=function(){function e(e){var s=this;registerInstance(this,e);this.stzhCollapse=createEvent(this,"stzhCollapse",7);this.stzhSubtitleClick=createEvent(this,"stzhSubtitleClick",7);this.stzhStarClick=createEvent(this,"stzhStarClick",7);this.stzhActionClick=createEvent(this,"stzhActionClick",7);this.collapsed=false;this.starred=false;this.starrable=false;this.heading="";this.subtitle="";this._subtitles=[];this.actions=[];this.subtitleInteractive=false;this.type="default";this.middleVariant="to-right";this.middleVerticalSpacing="default";this.rightVerticalSpacing="default";this.sortableDisabled=false;this.collapsible=false;this.hideMovementActions=false;this.nodeChange=function(e){var t=false;e.forEach((function(e){if(e.target.closest("[slot]")||e.target.hasAttribute("slot")){t=true}}));if(t){forceUpdate(s.element)}};this.update=function(){if(!s.mainElement){return}s.mainElement.classList.remove("stzh-servicecard--has-collapsed-header");if(media("medium").matches){var e=s.headerElement.clientWidth;var t=s.headerLeftElement.clientWidth;var r=s.headerRightElement.clientWidth;if(e-t<=r){s.mainElement.classList.add("stzh-servicecard--has-collapsed-header")}}};this.headerClick=function(e){if(!s.collapsible){return}var t=["stzh-popover","stzh-tooltip","button","a","input","select","textarea","iframe","details","label","area"];var r=e.composedPath().map((function(e){var s;return(s=e.tagName)===null||s===void 0?void 0:s.toLowerCase()}));var i=r.some((function(e){return t.includes(e)}));if(!i){s.collapsed=!s.collapsed;s.stzhCollapse.emit({component:"stzh-servicecard",collapsed:s.collapsed})}};this.subtitleClick=function(){if(s.subtitleInteractive){s.stzhSubtitleClick.emit({component:"stzh-servicecard"})}};this.starToggleClick=function(){s.stzhStarClick.emit({component:"stzh-servicecard",starred:s.starred})};this.actionClick=function(e){s.stzhActionClick.emit({component:"stzh-servicecard",action:e})};this.arrowUpClick=function(){var e=s.element.closest("stzh-sortable");if(e){var t=s.findSortableChildElement();e.moveItem(t,"up")}};this.arrowDownClick=function(){var e=s.element.closest("stzh-sortable");if(e){var t=s.findSortableChildElement();e.moveItem(t,"down")}}}e.prototype.handleResize=function(){if(this.debounceResize){window.cancelAnimationFrame(this.debounceResize)}this.debounceResize=requestAnimationFrame(this.update)};e.prototype.subtitleWatcher=function(e){if(typeof e==="string"){try{this._subtitles=JSON.parse(e)}catch(s){this._subtitles=[e]}}else{this._subtitles=e}};e.prototype.actionsWatcher=function(e){if(typeof e==="string"){this._actions=JSON.parse(e)}else{this._actions=e}};e.prototype.findSortableChildElement=function(){var e=this.element.closest("stzh-sortable");if(e){var s=this.element;var t=null;if(typeof e.container==="function"){t=e.container()}else{t=e.container}while(s.parentElement!==t){s=s.parentElement}return s}};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(s){switch(s.label){case 0:this.subtitleWatcher(this.subtitle);this.actionsWatcher(this.actions);if(!!this.localization)return[3,2];e=this;return[4,fetchTranslations(this.element,"servicecard")];case 1:e.localization=s.sent();s.label=2;case 2:return[2]}}))}))};e.prototype.connectedCallback=function(){this.observer=new MutationObserver(this.nodeChange);this.observer.observe(this.element,{childList:true,subtree:true})};e.prototype.disconnectedCallback=function(){this.observer.disconnect()};e.prototype.render=function(){var e;var s=this;var t=hasSlot(this.element,"left");var r=hasSlot(this.element,"middle");var i=hasSlot(this.element,"right");var a=(e={"stzh-servicecard":true,"stzh-servicecard--has-left":t,"stzh-servicecard--has-middle":r,"stzh-servicecard--has-right":i,"stzh-servicecard--has-subtitle":!!this.subtitle,"stzh-servicecard--has-subtitle-interactive":!!this.subtitle&&this.subtitleInteractive,"stzh-servicecard--is-collapsed":this.collapsed,"stzh-servicecard--is-starred":this.starred},e["stzh-servicecard--middle-".concat(this.middleVariant)]=!!this.middleVariant&&r,e["stzh-servicecard--type-".concat(this.type)]=!!this.type,e);var c="".concat(this.subtitleInteractive?"button":"span");return h(Host,{role:"listitem","aria-label":this.heading},h("article",{ref:function(e){return s.mainElement=e},class:a},h("stzh-icon",{class:"stzh-servicecard__dnd",name:"drag"}),h("header",{ref:function(e){return s.headerElement=e},class:"stzh-servicecard__header",onClick:this.headerClick},h("div",{ref:function(e){return s.headerLeftElement=e},class:"stzh-servicecard__header-left"},h("div",{class:"stzh-servicecard__title-area","data-dashboardmknlist":"title"},h("h3",{class:"stzh-servicecard__title","data-dashboardmknlist":"dnd"},this.heading),this._subtitles.length>0&&h(c,{class:"stzh-servicecard__subtitle",onClick:this.subtitleClick},this._subtitles.map((function(e){return h("span",{class:"stzh-servicecard__subtitle-text"},e)}))))),h("div",{ref:function(e){return s.headerRightElement=e},class:"stzh-servicecard__header-right"},h("div",{class:"stzh-servicecard__card-actions"},this._actions.map((function(e){return h("stzh-button",{class:{"stzh-servicecard__card-action":true,"is-button":true,"show-medium":!e.onlyCollapseText,"hide-when-collapsed":!e.onlyCollapseText,"hide-text-when-collapsed":e.onlyCollapseText},icon:e.icon,badge:e.badge,variant:"tertiary",size:"tiny",badgePosition:"icon",onClick:function(){s.actionClick(e)}},h("span",{class:{"show-medium":e.onlyCollapseText,"hide-when-collapsed":e.onlyCollapseText}},e.label))})),this.starrable&&h("stzh-tooltip",null,h("stzh-button",{class:"stzh-servicecard__card-action is-star",icon:this.starred?"star-filled":"star",variant:"tertiary",size:"tiny",iconOnly:true,onClick:this.starToggleClick}),h("div",{slot:"content"},this.starred?this.localization.actionRemove:this.localization.actionAdd)),h("stzh-popover",{label:this.localization.actionsPopoverLabel,placement:"bottom-end",class:"stzh-servicecard__card-action-popover"},h("stzh-button",{class:"stzh-servicecard__card-action is-further",variant:"tertiary",size:"tiny",icon:"more-vertical",iconOnly:true}),h("stzh-menu",{slot:"content"},this.starrable&&h("stzh-menu-item",{icon:this.starred?"star-filled":"star",onClick:this.starToggleClick},this.starred?this.localization.actionRemove:this.localization.actionAdd),this._actions.filter((function(e){return!e.onlyCollapseText})).map((function(e){return h("stzh-menu-item",{class:"hide-medium show-when-collapsed",icon:e.icon,badge:e.badge,onClick:function(){s.actionClick(e)}},e.label)})),!this.sortableDisabled&&!this.hideMovementActions&&h(Fragment,null,h("stzh-menu-item",{icon:"arrow-up",onClick:this.arrowUpClick},this.localization.actionMoveUp),h("stzh-menu-item",{icon:"arrow-down",onClick:this.arrowDownClick},this.localization.actionMoveDown))))))),h("div",{class:"stzh-servicecard__columns hide-when-collapsed"},h("div",{class:{"stzh-servicecard__column":true,"is-left":true}},h("slot",{name:"left"})),h("div",{class:{"stzh-servicecard__column":true,"is-middle":true,"has-no-spacing":this.middleVerticalSpacing==="none"}},h("slot",{name:"middle"})),h("div",{class:{"stzh-servicecard__column":true,"is-right":true,"has-no-spacing":this.rightVerticalSpacing==="none"}},h("slot",{name:"right"})))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{subtitle:["subtitleWatcher"],actions:["actionsWatcher"]}},enumerable:false,configurable:true});return e}();StzhServicecard.style=stzhServicecardCss;export{StzhServicecard as stzh_servicecard};
@@ -1,7 +1,7 @@
1
- var __awaiter=this&&this.__awaiter||function(t,o,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function l(t){try{c(r.next(t))}catch(e){a(e)}}function s(t){try{c(r["throw"](t))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(l,s)}c((r=r.apply(t,o||[])).next())}))};var __generator=this&&this.__generator||function(t,o){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(e){return function(t){return c([e,t])}}function c(l){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=l[0]&2?i["return"]:l[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;if(i=0,a)l=[l[0]&2,a.value];switch(l[0]){case 0:case 1:a=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;i=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){n.label=l[1];break}if(l[0]===6&&n.label<a[1]){n.label=a[1];a=l;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(l);break}if(a[2])n.ops.pop();n.trys.pop();continue}l=o.call(t,n)}catch(e){l=[6,e];i=0}finally{r=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-0e6d34c6.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";function t(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function e(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function n(t,o){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return e(n.overflowY,o)||e(n.overflowX,o)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(t)}return!1}function r(e,t,o,n,r,i,a,l){return i<e&&a>t||i>e&&a<t?0:i<=e&&l<=o||a>=t&&l>=o?i-e-n:a>t&&l<o||i<e&&l>o?a-t+r:0}function compute(e,o){var i=window,a=o.scrollMode,l=o.block,s=o.inline,c=o.boundary,u=o.skipOverflowHiddenElements,d="function"==typeof c?c:function(e){return e!==c};if(!t(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,h=[],g=e;t(g)&&d(g);){if((g=g.parentElement)===f){h.push(g);break}null!=g&&g===document.body&&n(g)&&!n(document.documentElement)||null!=g&&n(g,u)&&h.push(g)}for(var p=i.visualViewport?i.visualViewport.width:innerWidth,v=i.visualViewport?i.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,E=e.getBoundingClientRect(),S=E.height,w=E.width,y=E.top,_=E.right,x=E.bottom,I=E.left,D="start"===l||"nearest"===l?y:"end"===l?x:y+S/2,C="center"===s?I+w/2:"end"===s?_:I,T=[],A=0;A<h.length;A++){var O=h[A],P=O.getBoundingClientRect(),R=P.height,k=P.width,M=P.top,z=P.right,N=P.bottom,L=P.left;if("if-needed"===a&&y>=0&&I>=0&&x<=v&&_<=p&&y>=M&&x<=N&&I>=L&&_<=z)return T;var F=getComputedStyle(O),j=parseInt(F.borderLeftWidth,10),W=parseInt(F.borderTopWidth,10),B=parseInt(F.borderRightWidth,10),H=parseInt(F.borderBottomWidth,10),X=0,Y=0,G="offsetWidth"in O?O.offsetWidth-O.clientWidth-j-B:0,V="offsetHeight"in O?O.offsetHeight-O.clientHeight-W-H:0;if(f===O)X="start"===l?D:"end"===l?D-v:"nearest"===l?r(b,b+v,v,W,H,b+D,b+D+S,S):D-v/2,Y="start"===s?C:"center"===s?C-p/2:"end"===s?C-p:r(m,m+p,p,j,B,m+C,m+C+w,w),X=Math.max(0,X+b),Y=Math.max(0,Y+m);else{X="start"===l?D-M-W:"end"===l?D-N+H+V:"nearest"===l?r(M,N,R,W,H+V,D,D+S,S):D-(M+R/2)+V/2,Y="start"===s?C-L-j:"center"===s?C-(L+k/2)+G/2:"end"===s?C-z+B+G:r(L,z,k,j,B+G,C,C+w,w);var U=O.scrollLeft,q=O.scrollTop;D+=q-(X=Math.max(0,Math.min(q+X,O.scrollHeight-R+V))),C+=U-(Y=Math.max(0,Math.min(U+Y,O.scrollWidth-k+G)))}T.push({el:O,top:X,left:Y})}return T}function isOptionsObject(e){return e===Object(e)&&Object.keys(e).length!==0}function defaultBehavior(e,t){if(t===void 0){t="auto"}var o="scrollBehavior"in document.body.style;e.forEach((function(e){var n=e.el,r=e.top,i=e.left;if(n.scroll&&o){n.scroll({top:r,left:i,behavior:t})}else{n.scrollTop=r;n.scrollLeft=i}}))}function getOptions(e){if(e===false){return{block:"end",inline:"nearest"}}if(isOptionsObject(e)){return e}return{block:"start",inline:"nearest"}}function scrollIntoView(e,t){var o=e.isConnected||e.ownerDocument.documentElement.contains(e);if(isOptionsObject(t)&&typeof t.behavior==="function"){return t.behavior(o?compute(e,t):[])}if(!o){return}var n=getOptions(t);return defaultBehavior(compute(e,n),n.behavior)}
1
+ var __awaiter=this&&this.__awaiter||function(t,n,r,o){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,l){function a(t){try{c(o.next(t))}catch(e){l(e)}}function s(t){try{c(o["throw"](t))}catch(e){l(e)}}function c(e){e.done?r(e.value):i(e.value).then(a,s)}c((o=o.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},o,i,l,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(a){if(o)throw new TypeError("Generator is already executing.");while(r)try{if(o=1,i&&(l=a[0]&2?i["return"]:a[0]?i["throw"]||((l=i["return"])&&l.call(i),0):i.next)&&!(l=l.call(i,a[1])).done)return l;if(i=0,l)a=[a[0]&2,l.value];switch(a[0]){case 0:case 1:l=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;i=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(l=r.trys,l=l.length>0&&l[l.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!l||a[1]>l[0]&&a[1]<l[3])){r.label=a[1];break}if(a[0]===6&&r.label<l[1]){r.label=l[1];l=a;break}if(l&&r.label<l[2]){r.label=l[2];r.ops.push(a);break}if(l[2])r.ops.pop();r.trys.pop();continue}a=n.call(t,r)}catch(e){a=[6,e];i=0}finally{o=l=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-0e6d34c6.js";import{c as cloneElement}from"./utils-68a28fce.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";function t(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function e(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function n(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return e(r.overflowY,n)||e(r.overflowX,n)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(t)}return!1}function r(e,t,n,r,o,i,l,a){return i<e&&l>t||i>e&&l<t?0:i<=e&&a<=n||l>=t&&a>=n?i-e-r:l>t&&a<n||i<e&&a>n?l-t+o:0}function compute(e,o){var i=window,l=o.scrollMode,a=o.block,s=o.inline,c=o.boundary,u=o.skipOverflowHiddenElements,d="function"==typeof c?c:function(e){return e!==c};if(!t(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,h=[],g=e;t(g)&&d(g);){if((g=g.parentElement)===f){h.push(g);break}null!=g&&g===document.body&&n(g)&&!n(document.documentElement)||null!=g&&n(g,u)&&h.push(g)}for(var p=i.visualViewport?i.visualViewport.width:innerWidth,m=i.visualViewport?i.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),S=b.height,w=b.width,y=b.top,D=b.right,_=b.bottom,x=b.left,C="start"===a||"nearest"===a?y:"end"===a?_:y+S/2,I="center"===s?x+w/2:"end"===s?D:x,A=[],T=0;T<h.length;T++){var O=h[T],P=O.getBoundingClientRect(),M=P.height,R=P.width,k=P.top,N=P.right,z=P.bottom,L=P.left;if("if-needed"===l&&y>=0&&x>=0&&_<=m&&D<=p&&y>=k&&_<=z&&x>=L&&D<=N)return A;var F=getComputedStyle(O),H=parseInt(F.borderLeftWidth,10),j=parseInt(F.borderTopWidth,10),B=parseInt(F.borderRightWidth,10),W=parseInt(F.borderBottomWidth,10),X=0,Y=0,G="offsetWidth"in O?O.offsetWidth-O.clientWidth-H-B:0,$="offsetHeight"in O?O.offsetHeight-O.clientHeight-j-W:0;if(f===O)X="start"===a?C:"end"===a?C-m:"nearest"===a?r(E,E+m,m,j,W,E+C,E+C+S,S):C-m/2,Y="start"===s?I:"center"===s?I-p/2:"end"===s?I-p:r(v,v+p,p,H,B,v+I,v+I+w,w),X=Math.max(0,X+E),Y=Math.max(0,Y+v);else{X="start"===a?C-k-j:"end"===a?C-z+W+$:"nearest"===a?r(k,z,M,j,W+$,C,C+S,S):C-(k+M/2)+$/2,Y="start"===s?I-L-H:"center"===s?I-(L+R/2)+G/2:"end"===s?I-N+B+G:r(L,N,R,H,B+G,I,I+w,w);var K=O.scrollLeft,U=O.scrollTop;C+=U-(X=Math.max(0,Math.min(U+X,O.scrollHeight-M+$))),I+=K-(Y=Math.max(0,Math.min(K+Y,O.scrollWidth-R+G)))}A.push({el:O,top:X,left:Y})}return A}function isOptionsObject(e){return e===Object(e)&&Object.keys(e).length!==0}function defaultBehavior(e,t){if(t===void 0){t="auto"}var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;if(r.scroll&&n){r.scroll({top:o,left:i,behavior:t})}else{r.scrollTop=o;r.scrollLeft=i}}))}function getOptions(e){if(e===false){return{block:"end",inline:"nearest"}}if(isOptionsObject(e)){return e}return{block:"start",inline:"nearest"}}function scrollIntoView(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(isOptionsObject(t)&&typeof t.behavior==="function"){return t.behavior(n?compute(e,t):[])}if(!n){return}var r=getOptions(t);return defaultBehavior(compute(e,r),r.behavior)}
2
2
  /**!
3
3
  * Sortable 1.15.0
4
4
  * @author RubaXa <trash@rubaxa.org>
5
5
  * @author owenm <owen23355@gmail.com>
6
6
  * @license MIT
7
- */function ownKeys(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(t){n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}o.push.apply(o,n)}return o}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};if(t%2){ownKeys(Object(o),true).forEach((function(t){_defineProperty(e,t,o[t])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(o))}else{ownKeys(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}}return e}function _typeof(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function(e){return typeof e}}else{_typeof=function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}function _defineProperty(e,t,o){if(t in e){Object.defineProperty(e,t,{value:o,enumerable:true,configurable:true,writable:true})}else{e[t]=o}return e}function _extends(){_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o){if(Object.prototype.hasOwnProperty.call(o,n)){e[n]=o[n]}}}return e};return _extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var o={};var n=Object.keys(e);var r,i;for(i=0;i<n.length;i++){r=n[i];if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}function _objectWithoutProperties(e,t){if(e==null)return{};var o=_objectWithoutPropertiesLoose(e,t);var n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++){n=i[r];if(t.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,n))continue;o[n]=e[n]}}return o}var version="1.15.0";function userAgent(e){if(typeof window!=="undefined"&&window.navigator){return!!navigator.userAgent.match(e)}}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);var Edge=userAgent(/Edge/i);var FireFox=userAgent(/firefox/i);var Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i);var IOS=userAgent(/iP(ad|od|hone)/i);var ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i);var captureMode={capture:false,passive:false};function on(e,t,o){e.addEventListener(t,o,!IE11OrLess&&captureMode)}function off(e,t,o){e.removeEventListener(t,o,!IE11OrLess&&captureMode)}function matches(e,t){if(!t)return;t[0]===">"&&(t=t.substring(1));if(e){try{if(e.matches){return e.matches(t)}else if(e.msMatchesSelector){return e.msMatchesSelector(t)}else if(e.webkitMatchesSelector){return e.webkitMatchesSelector(t)}}catch(o){return false}}return false}function getParentOrHost(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function closest(e,t,o,n){if(e){o=o||document;do{if(t!=null&&(t[0]===">"?e.parentNode===o&&matches(e,t):matches(e,t))||n&&e===o){return e}if(e===o)break}while(e=getParentOrHost(e))}return null}var R_SPACE=/\s+/g;function toggleClass(e,t,o){if(e&&t){if(e.classList){e.classList[o?"add":"remove"](t)}else{var n=(" "+e.className+" ").replace(R_SPACE," ").replace(" "+t+" "," ");e.className=(n+(o?" "+t:"")).replace(R_SPACE," ")}}}function css(e,t,o){var n=e&&e.style;if(n){if(o===void 0){if(document.defaultView&&document.defaultView.getComputedStyle){o=document.defaultView.getComputedStyle(e,"")}else if(e.currentStyle){o=e.currentStyle}return t===void 0?o:o[t]}else{if(!(t in n)&&t.indexOf("webkit")===-1){t="-webkit-"+t}n[t]=o+(typeof o==="string"?"":"px")}}}function matrix(e,t){var o="";if(typeof e==="string"){o=e}else{do{var n=css(e,"transform");if(n&&n!=="none"){o=n+" "+o}}while(!t&&(e=e.parentNode))}var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(o)}function find(e,t,o){if(e){var n=e.getElementsByTagName(t),r=0,i=n.length;if(o){for(;r<i;r++){o(n[r],r)}}return n}return[]}function getWindowScrollingElement(){var e=document.scrollingElement;if(e){return e}else{return document.documentElement}}function getRect(e,t,o,n,r){if(!e.getBoundingClientRect&&e!==window)return;var i,a,l,s,c,u,d;if(e!==window&&e.parentNode&&e!==getWindowScrollingElement()){i=e.getBoundingClientRect();a=i.top;l=i.left;s=i.bottom;c=i.right;u=i.height;d=i.width}else{a=0;l=0;s=window.innerHeight;c=window.innerWidth;u=window.innerHeight;d=window.innerWidth}if((t||o)&&e!==window){r=r||e.parentNode;if(!IE11OrLess){do{if(r&&r.getBoundingClientRect&&(css(r,"transform")!=="none"||o&&css(r,"position")!=="static")){var f=r.getBoundingClientRect();a-=f.top+parseInt(css(r,"border-top-width"));l-=f.left+parseInt(css(r,"border-left-width"));s=a+i.height;c=l+i.width;break}}while(r=r.parentNode)}}if(n&&e!==window){var h=matrix(r||e),g=h&&h.a,p=h&&h.d;if(h){a/=p;l/=g;d/=g;u/=p;s=a+u;c=l+d}}return{top:a,left:l,bottom:s,right:c,width:d,height:u}}function isScrolledPast(e,t,o){var n=getParentAutoScrollElement(e,true),r=getRect(e)[t];while(n){var i=getRect(n)[o],a=void 0;if(o==="top"||o==="left"){a=r>=i}else{a=r<=i}if(!a)return n;if(n===getWindowScrollingElement())break;n=getParentAutoScrollElement(n,false)}return false}function getChild(e,t,o,n){var r=0,i=0,a=e.children;while(i<a.length){if(a[i].style.display!=="none"&&a[i]!==Sortable.ghost&&(n||a[i]!==Sortable.dragged)&&closest(a[i],o.draggable,e,false)){if(r===t){return a[i]}r++}i++}return null}function lastChild(e,t){var o=e.lastElementChild;while(o&&(o===Sortable.ghost||css(o,"display")==="none"||t&&!matches(o,t))){o=o.previousElementSibling}return o||null}function index(e,t){var o=0;if(!e||!e.parentNode){return-1}while(e=e.previousElementSibling){if(e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Sortable.clone&&(!t||matches(e,t))){o++}}return o}function getRelativeScrollOffset(e){var t=0,o=0,n=getWindowScrollingElement();if(e){do{var r=matrix(e),i=r.a,a=r.d;t+=e.scrollLeft*i;o+=e.scrollTop*a}while(e!==n&&(e=e.parentNode))}return[t,o]}function indexOfObject(e,t){for(var o in e){if(!e.hasOwnProperty(o))continue;for(var n in t){if(t.hasOwnProperty(n)&&t[n]===e[o][n])return Number(o)}}return-1}function getParentAutoScrollElement(e,t){if(!e||!e.getBoundingClientRect)return getWindowScrollingElement();var o=e;var n=false;do{if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var r=css(o);if(o.clientWidth<o.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return getWindowScrollingElement();if(n||t)return o;n=true}}}while(o=o.parentNode);return getWindowScrollingElement()}function extend(e,t){if(e&&t){for(var o in t){if(t.hasOwnProperty(o)){e[o]=t[o]}}}return e}function isRectEqual(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var _throttleTimeout;function throttle(e,t){return function(){if(!_throttleTimeout){var o=arguments,n=this;if(o.length===1){e.call(n,o[0])}else{e.apply(n,o)}_throttleTimeout=setTimeout((function(){_throttleTimeout=void 0}),t)}}}function cancelThrottle(){clearTimeout(_throttleTimeout);_throttleTimeout=void 0}function scrollBy(e,t,o){e.scrollLeft+=t;e.scrollTop+=o}function clone(e){var t=window.Polymer;var o=window.jQuery||window.Zepto;if(t&&t.dom){return t.dom(e).cloneNode(true)}else if(o){return o(e).clone(true)[0]}else{return e.cloneNode(true)}}var expando="Sortable"+(new Date).getTime();function AnimationStateManager(){var e=[],t;return{captureAnimationState:function t(){e=[];if(!this.options.animation)return;var o=[].slice.call(this.el.children);o.forEach((function(t){if(css(t,"display")==="none"||t===Sortable.ghost)return;e.push({target:t,rect:getRect(t)});var o=_objectSpread2({},e[e.length-1].rect);if(t.thisAnimationDuration){var n=matrix(t,true);if(n){o.top-=n.f;o.left-=n.e}}t.fromRect=o}))},addAnimationState:function t(o){e.push(o)},removeAnimationState:function t(o){e.splice(indexOfObject(e,{target:o}),1)},animateAll:function o(n){var r=this;if(!this.options.animation){clearTimeout(t);if(typeof n==="function")n();return}var i=false,a=0;e.forEach((function(e){var t=0,o=e.target,n=o.fromRect,l=getRect(o),s=o.prevFromRect,c=o.prevToRect,u=e.rect,d=matrix(o,true);if(d){l.top-=d.f;l.left-=d.e}o.toRect=l;if(o.thisAnimationDuration){if(isRectEqual(s,l)&&!isRectEqual(n,l)&&(u.top-l.top)/(u.left-l.left)===(n.top-l.top)/(n.left-l.left)){t=calculateRealTime(u,s,c,r.options)}}if(!isRectEqual(l,n)){o.prevFromRect=n;o.prevToRect=l;if(!t){t=r.options.animation}r.animate(o,u,l,t)}if(t){i=true;a=Math.max(a,t);clearTimeout(o.animationResetTimer);o.animationResetTimer=setTimeout((function(){o.animationTime=0;o.prevFromRect=null;o.fromRect=null;o.prevToRect=null;o.thisAnimationDuration=null}),t);o.thisAnimationDuration=t}}));clearTimeout(t);if(!i){if(typeof n==="function")n()}else{t=setTimeout((function(){if(typeof n==="function")n()}),a)}e=[]},animate:function e(t,o,n,r){if(r){css(t,"transition","");css(t,"transform","");var i=matrix(this.el),a=i&&i.a,l=i&&i.d,s=(o.left-n.left)/(a||1),c=(o.top-n.top)/(l||1);t.animatingX=!!s;t.animatingY=!!c;css(t,"transform","translate3d("+s+"px,"+c+"px,0)");this.forRepaintDummy=repaint(t);css(t,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:""));css(t,"transform","translate3d(0,0,0)");typeof t.animated==="number"&&clearTimeout(t.animated);t.animated=setTimeout((function(){css(t,"transition","");css(t,"transform","");t.animated=false;t.animatingX=false;t.animatingY=false}),r)}}}}function repaint(e){return e.offsetWidth}function calculateRealTime(e,t,o,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*n.animation}var plugins=[];var defaults={initializeByDefault:true};var PluginManager={mount:function e(t){for(var o in defaults){if(defaults.hasOwnProperty(o)&&!(o in t)){t[o]=defaults[o]}}plugins.forEach((function(e){if(e.pluginName===t.pluginName){throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}}));plugins.push(t)},pluginEvent:function e(t,o,n){var r=this;this.eventCanceled=false;n.cancel=function(){r.eventCanceled=true};var i=t+"Global";plugins.forEach((function(e){if(!o[e.pluginName])return;if(o[e.pluginName][i]){o[e.pluginName][i](_objectSpread2({sortable:o},n))}if(o.options[e.pluginName]&&o[e.pluginName][t]){o[e.pluginName][t](_objectSpread2({sortable:o},n))}}))},initializePlugins:function e(t,o,n,r){plugins.forEach((function(e){var r=e.pluginName;if(!t.options[r]&&!e.initializeByDefault)return;var i=new e(t,o,t.options);i.sortable=t;i.options=t.options;t[r]=i;_extends(n,i.defaults)}));for(var i in t.options){if(!t.options.hasOwnProperty(i))continue;var a=this.modifyOption(t,i,t.options[i]);if(typeof a!=="undefined"){t.options[i]=a}}},getEventProperties:function e(t,o){var n={};plugins.forEach((function(e){if(typeof e.eventProperties!=="function")return;_extends(n,e.eventProperties.call(o[e.pluginName],t))}));return n},modifyOption:function e(t,o,n){var r;plugins.forEach((function(e){if(!t[e.pluginName])return;if(e.optionListeners&&typeof e.optionListeners[o]==="function"){r=e.optionListeners[o].call(t[e.pluginName],n)}}));return r}};function dispatchEvent(e){var t=e.sortable,o=e.rootEl,n=e.name,r=e.targetEl,i=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,h=e.putSortable,g=e.extraEventProperties;t=t||o&&o[expando];if(!t)return;var p,v=t.options,m="on"+n.charAt(0).toUpperCase()+n.substr(1);if(window.CustomEvent&&!IE11OrLess&&!Edge){p=new CustomEvent(n,{bubbles:true,cancelable:true})}else{p=document.createEvent("Event");p.initEvent(n,true,true)}p.to=a||o;p.from=l||o;p.item=r||o;p.clone=i;p.oldIndex=s;p.newIndex=c;p.oldDraggableIndex=u;p.newDraggableIndex=d;p.originalEvent=f;p.pullMode=h?h.lastPutMode:undefined;var b=_objectSpread2(_objectSpread2({},g),PluginManager.getEventProperties(n,t));for(var E in b){p[E]=b[E]}if(o){o.dispatchEvent(p)}if(v[m]){v[m].call(t,p)}}var _excluded=["evt"];var pluginEvent=function e(t,o){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},r=n.evt,i=_objectWithoutProperties(n,_excluded);PluginManager.pluginEvent.bind(Sortable)(t,o,_objectSpread2({dragEl:dragEl,parentEl:parentEl,ghostEl:ghostEl,rootEl:rootEl,nextEl:nextEl,lastDownEl:lastDownEl,cloneEl:cloneEl,cloneHidden:cloneHidden,dragStarted:moved,putSortable:putSortable,activeSortable:Sortable.active,originalEvent:r,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function e(){cloneHidden=true},cloneNowShown:function e(){cloneHidden=false},dispatchSortableEvent:function e(t){_dispatchEvent({sortable:o,name:t,originalEvent:r})}},i))};function _dispatchEvent(e){dispatchEvent(_objectSpread2({putSortable:putSortable,cloneEl:cloneEl,targetEl:dragEl,rootEl:rootEl,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex},e))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=false,ignoreNextClick=false,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=false,isCircumstantialInvert=false,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=false,savedInputChecked=[];var documentExists=typeof document!=="undefined",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(!documentExists)return;if(IE11OrLess){return false}var e=document.createElement("x");e.style.cssText="pointer-events:auto";return e.style.pointerEvents==="auto"}(),_detectDirection=function e(t,o){var n=css(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=getChild(t,0,o),a=getChild(t,1,o),l=i&&css(i),s=a&&css(a),c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+getRect(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+getRect(a).width;if(n.display==="flex"){return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal"}if(n.display==="grid"){return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal"}if(i&&l["float"]&&l["float"]!=="none"){var d=l["float"]==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||c>=r&&n[CSSFloatProperty]==="none"||a&&n[CSSFloatProperty]==="none"&&c+u>r)?"vertical":"horizontal"},_dragElInRowColumn=function e(t,o,n){var r=n?t.left:t.top,i=n?t.right:t.bottom,a=n?t.width:t.height,l=n?o.left:o.top,s=n?o.right:o.bottom,c=n?o.width:o.height;return r===l||i===s||r+a/2===l+c/2},_detectNearestEmptySortable=function e(t,o){var n;sortables.some((function(e){var r=e[expando].options.emptyInsertThreshold;if(!r||lastChild(e))return;var i=getRect(e),a=t>=i.left-r&&t<=i.right+r,l=o>=i.top-r&&o<=i.bottom+r;if(a&&l){return n=e}}));return n},_prepareGroup=function e(t){function o(e,t){return function(n,r,i,a){var l=n.options.group.name&&r.options.group.name&&n.options.group.name===r.options.group.name;if(e==null&&(t||l)){return true}else if(e==null||e===false){return false}else if(t&&e==="clone"){return e}else if(typeof e==="function"){return o(e(n,r,i,a),t)(n,r,i,a)}else{var s=(t?n:r).options.group.name;return e===true||typeof e==="string"&&e===s||e.join&&e.indexOf(s)>-1}}}var n={};var r=t.group;if(!r||_typeof(r)!="object"){r={name:r}}n.name=r.name;n.checkPull=o(r.pull,true);n.checkPut=o(r.put);n.revertClone=r.revertClone;t.group=n},_hideGhostForTarget=function e(){if(!supportCssPointerEvents&&ghostEl){css(ghostEl,"display","none")}},_unhideGhostForTarget=function e(){if(!supportCssPointerEvents&&ghostEl){css(ghostEl,"display","")}};if(documentExists&&!ChromeForAndroid){document.addEventListener("click",(function(e){if(ignoreNextClick){e.preventDefault();e.stopPropagation&&e.stopPropagation();e.stopImmediatePropagation&&e.stopImmediatePropagation();ignoreNextClick=false;return false}}),true)}var nearestEmptyInsertDetectEvent=function e(t){if(dragEl){t=t.touches?t.touches[0]:t;var o=_detectNearestEmptySortable(t.clientX,t.clientY);if(o){var n={};for(var r in t){if(t.hasOwnProperty(r)){n[r]=t[r]}}n.target=n.rootEl=o;n.preventDefault=void 0;n.stopPropagation=void 0;o[expando]._onDragOver(n)}}};var _checkOutsideTargetEl=function e(t){if(dragEl){dragEl.parentNode[expando]._isOutsideThisEl(t.target)}};function Sortable(e,t){if(!(e&&e.nodeType&&e.nodeType===1)){throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e))}this.el=e;this.options=t=_extends({},t);e[expando]=this;var o={group:null,sort:true,disabled:false,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:false,invertedSwapThreshold:null,removeCloneOnHide:true,direction:function t(){return _detectDirection(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:true,animation:0,easing:null,setData:function e(t,o){t.setData("Text",o.textContent)},dropBubble:false,dragoverBubble:false,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:false,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:false,fallbackClass:"sortable-fallback",fallbackOnBody:false,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sortable.supportPointer!==false&&"PointerEvent"in window&&!Safari,emptyInsertThreshold:5};PluginManager.initializePlugins(this,e,o);for(var n in o){!(n in t)&&(t[n]=o[n])}_prepareGroup(t);for(var r in this){if(r.charAt(0)==="_"&&typeof this[r]==="function"){this[r]=this[r].bind(this)}}this.nativeDraggable=t.forceFallback?false:supportDraggable;if(this.nativeDraggable){this.options.touchStartThreshold=1}if(t.supportPointer){on(e,"pointerdown",this._onTapStart)}else{on(e,"mousedown",this._onTapStart);on(e,"touchstart",this._onTapStart)}if(this.nativeDraggable){on(e,"dragover",this);on(e,"dragenter",this)}sortables.push(this.el);t.store&&t.store.get&&this.sort(t.store.get(this)||[]);_extends(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function e(t){if(!this.el.contains(t)&&t!==this.el){lastTarget=null}},_getDirection:function e(t,o){return typeof this.options.direction==="function"?this.options.direction.call(this,t,o,dragEl):this.options.direction},_onTapStart:function e(t){if(!t.cancelable)return;var o=this,n=this.el,r=this.options,i=r.preventOnFilter,a=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,u=r.filter;_saveInputCheckedState(n);if(dragEl){return}if(/mousedown|pointerdown/.test(a)&&t.button!==0||r.disabled){return}if(c.isContentEditable){return}if(!this.nativeDraggable&&Safari&&s&&s.tagName.toUpperCase()==="SELECT"){return}s=closest(s,r.draggable,n,false);if(s&&s.animated){return}if(lastDownEl===s){return}oldIndex=index(s);oldDraggableIndex=index(s,r.draggable);if(typeof u==="function"){if(u.call(this,t,s,this)){_dispatchEvent({sortable:o,rootEl:c,name:"filter",targetEl:s,toEl:n,fromEl:n});pluginEvent("filter",o,{evt:t});i&&t.cancelable&&t.preventDefault();return}}else if(u){u=u.split(",").some((function(e){e=closest(c,e.trim(),n,false);if(e){_dispatchEvent({sortable:o,rootEl:e,name:"filter",targetEl:s,fromEl:n,toEl:n});pluginEvent("filter",o,{evt:t});return true}}));if(u){i&&t.cancelable&&t.preventDefault();return}}if(r.handle&&!closest(c,r.handle,n,false)){return}this._prepareDragStart(t,l,s)},_prepareDragStart:function e(t,o,n){var r=this,i=r.el,a=r.options,l=i.ownerDocument,s;if(n&&!dragEl&&n.parentNode===i){var c=getRect(n);rootEl=i;dragEl=n;parentEl=dragEl.parentNode;nextEl=dragEl.nextSibling;lastDownEl=n;activeGroup=a.group;Sortable.dragged=dragEl;tapEvt={target:dragEl,clientX:(o||t).clientX,clientY:(o||t).clientY};tapDistanceLeft=tapEvt.clientX-c.left;tapDistanceTop=tapEvt.clientY-c.top;this._lastX=(o||t).clientX;this._lastY=(o||t).clientY;dragEl.style["will-change"]="all";s=function e(){pluginEvent("delayEnded",r,{evt:t});if(Sortable.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents();if(!FireFox&&r.nativeDraggable){dragEl.draggable=true}r._triggerDragStart(t,o);_dispatchEvent({sortable:r,name:"choose",originalEvent:t});toggleClass(dragEl,a.chosenClass,true)};a.ignore.split(",").forEach((function(e){find(dragEl,e.trim(),_disableDraggable)}));on(l,"dragover",nearestEmptyInsertDetectEvent);on(l,"mousemove",nearestEmptyInsertDetectEvent);on(l,"touchmove",nearestEmptyInsertDetectEvent);on(l,"mouseup",r._onDrop);on(l,"touchend",r._onDrop);on(l,"touchcancel",r._onDrop);if(FireFox&&this.nativeDraggable){this.options.touchStartThreshold=4;dragEl.draggable=true}pluginEvent("delayStart",this,{evt:t});if(a.delay&&(!a.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}on(l,"mouseup",r._disableDelayedDrag);on(l,"touchend",r._disableDelayedDrag);on(l,"touchcancel",r._disableDelayedDrag);on(l,"mousemove",r._delayedDragTouchMoveHandler);on(l,"touchmove",r._delayedDragTouchMoveHandler);a.supportPointer&&on(l,"pointermove",r._delayedDragTouchMoveHandler);r._dragStartTimer=setTimeout(s,a.delay)}else{s()}}},_delayedDragTouchMoveHandler:function e(t){var o=t.touches?t.touches[0]:t;if(Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))){this._disableDelayedDrag()}},_disableDelayedDrag:function e(){dragEl&&_disableDraggable(dragEl);clearTimeout(this._dragStartTimer);this._disableDelayedDragEvents()},_disableDelayedDragEvents:function e(){var t=this.el.ownerDocument;off(t,"mouseup",this._disableDelayedDrag);off(t,"touchend",this._disableDelayedDrag);off(t,"touchcancel",this._disableDelayedDrag);off(t,"mousemove",this._delayedDragTouchMoveHandler);off(t,"touchmove",this._delayedDragTouchMoveHandler);off(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function e(t,o){o=o||t.pointerType=="touch"&&t;if(!this.nativeDraggable||o){if(this.options.supportPointer){on(document,"pointermove",this._onTouchMove)}else if(o){on(document,"touchmove",this._onTouchMove)}else{on(document,"mousemove",this._onTouchMove)}}else{on(dragEl,"dragend",this);on(rootEl,"dragstart",this._onDragStart)}try{if(document.selection){_nextTick((function(){document.selection.empty()}))}else{window.getSelection().removeAllRanges()}}catch(n){}},_dragStarted:function e(t,o){awaitingDragStarted=false;if(rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:o});if(this.nativeDraggable){on(document,"dragover",_checkOutsideTargetEl)}var n=this.options;!t&&toggleClass(dragEl,n.dragClass,false);toggleClass(dragEl,n.ghostClass,true);Sortable.active=this;t&&this._appendGhost();_dispatchEvent({sortable:this,name:"start",originalEvent:o})}else{this._nulling()}},_emulateDragOver:function e(){if(touchEvt){this._lastX=touchEvt.clientX;this._lastY=touchEvt.clientY;_hideGhostForTarget();var t=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY);var o=t;while(t&&t.shadowRoot){t=t.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY);if(t===o)break;o=t}dragEl.parentNode[expando]._isOutsideThisEl(t);if(o){do{if(o[expando]){var n=void 0;n=o[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:t,rootEl:o});if(n&&!this.options.dragoverBubble){break}}t=o}while(o=o.parentNode)}_unhideGhostForTarget()}},_onTouchMove:function e(t){if(tapEvt){var o=this.options,n=o.fallbackTolerance,r=o.fallbackOffset,i=t.touches?t.touches[0]:t,a=ghostEl&&matrix(ghostEl,true),l=ghostEl&&a&&a.a,s=ghostEl&&a&&a.d,c=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),u=(i.clientX-tapEvt.clientX+r.x)/(l||1)+(c?c[0]-ghostRelativeParentInitialScroll[0]:0)/(l||1),d=(i.clientY-tapEvt.clientY+r.y)/(s||1)+(c?c[1]-ghostRelativeParentInitialScroll[1]:0)/(s||1);if(!Sortable.active&&!awaitingDragStarted){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n){return}this._onDragStart(t,true)}if(ghostEl){if(a){a.e+=u-(lastDx||0);a.f+=d-(lastDy||0)}else{a={a:1,b:0,c:0,d:1,e:u,f:d}}var f="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");css(ghostEl,"webkitTransform",f);css(ghostEl,"mozTransform",f);css(ghostEl,"msTransform",f);css(ghostEl,"transform",f);lastDx=u;lastDy=d;touchEvt=i}t.cancelable&&t.preventDefault()}},_appendGhost:function e(){if(!ghostEl){var t=this.options.fallbackOnBody?document.body:rootEl,o=getRect(dragEl,true,PositionGhostAbsolutely,true,t),n=this.options;if(PositionGhostAbsolutely){ghostRelativeParent=t;while(css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document){ghostRelativeParent=ghostRelativeParent.parentNode}if(ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement){if(ghostRelativeParent===document)ghostRelativeParent=getWindowScrollingElement();o.top+=ghostRelativeParent.scrollTop;o.left+=ghostRelativeParent.scrollLeft}else{ghostRelativeParent=getWindowScrollingElement()}ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}ghostEl=dragEl.cloneNode(true);toggleClass(ghostEl,n.ghostClass,false);toggleClass(ghostEl,n.fallbackClass,true);toggleClass(ghostEl,n.dragClass,true);css(ghostEl,"transition","");css(ghostEl,"transform","");css(ghostEl,"box-sizing","border-box");css(ghostEl,"margin",0);css(ghostEl,"top",o.top);css(ghostEl,"left",o.left);css(ghostEl,"width",o.width);css(ghostEl,"height",o.height);css(ghostEl,"opacity","0.8");css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed");css(ghostEl,"zIndex","100000");css(ghostEl,"pointerEvents","none");Sortable.ghost=ghostEl;t.appendChild(ghostEl);css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function e(t,o){var n=this;var r=t.dataTransfer;var i=n.options;pluginEvent("dragStart",this,{evt:t});if(Sortable.eventCanceled){this._onDrop();return}pluginEvent("setupClone",this);if(!Sortable.eventCanceled){cloneEl=clone(dragEl);cloneEl.removeAttribute("id");cloneEl.draggable=false;cloneEl.style["will-change"]="";this._hideClone();toggleClass(cloneEl,this.options.chosenClass,false);Sortable.clone=cloneEl}n.cloneId=_nextTick((function(){pluginEvent("clone",n);if(Sortable.eventCanceled)return;if(!n.options.removeCloneOnHide){rootEl.insertBefore(cloneEl,dragEl)}n._hideClone();_dispatchEvent({sortable:n,name:"clone"})}));!o&&toggleClass(dragEl,i.dragClass,true);if(o){ignoreNextClick=true;n._loopId=setInterval(n._emulateDragOver,50)}else{off(document,"mouseup",n._onDrop);off(document,"touchend",n._onDrop);off(document,"touchcancel",n._onDrop);if(r){r.effectAllowed="move";i.setData&&i.setData.call(n,r,dragEl)}on(document,"drop",n);css(dragEl,"transform","translateZ(0)")}awaitingDragStarted=true;n._dragStartId=_nextTick(n._dragStarted.bind(n,o,t));on(document,"selectstart",n);moved=true;if(Safari){css(document.body,"user-select","none")}},_onDragOver:function e(t){var o=this.el,n=t.target,r,i,a,l=this.options,s=l.group,c=Sortable.active,u=activeGroup===s,d=l.sort,f=putSortable||c,h,g=this,p=false;if(_silent)return;function v(e,l){pluginEvent(e,g,_objectSpread2({evt:t,isOwner:u,axis:h?"vertical":"horizontal",revert:a,dragRect:r,targetRect:i,canSort:d,fromSortable:f,target:n,completed:b,onMove:function e(n,i){return _onMove(rootEl,o,dragEl,r,n,getRect(n),t,i)},changed:E},l))}function m(){v("dragOverAnimationCapture");g.captureAnimationState();if(g!==f){f.captureAnimationState()}}function b(e){v("dragOverCompleted",{insertion:e});if(e){if(u){c._hideClone()}else{c._showClone(g)}if(g!==f){toggleClass(dragEl,putSortable?putSortable.options.ghostClass:c.options.ghostClass,false);toggleClass(dragEl,l.ghostClass,true)}if(putSortable!==g&&g!==Sortable.active){putSortable=g}else if(g===Sortable.active&&putSortable){putSortable=null}if(f===g){g._ignoreWhileAnimating=n}g.animateAll((function(){v("dragOverAnimationComplete");g._ignoreWhileAnimating=null}));if(g!==f){f.animateAll();f._ignoreWhileAnimating=null}}if(n===dragEl&&!dragEl.animated||n===o&&!n.animated){lastTarget=null}if(!l.dragoverBubble&&!t.rootEl&&n!==document){dragEl.parentNode[expando]._isOutsideThisEl(t.target);!e&&nearestEmptyInsertDetectEvent(t)}!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation();return p=true}function E(){newIndex=index(dragEl);newDraggableIndex=index(dragEl,l.draggable);_dispatchEvent({sortable:g,name:"change",toEl:o,newIndex:newIndex,newDraggableIndex:newDraggableIndex,originalEvent:t})}if(t.preventDefault!==void 0){t.cancelable&&t.preventDefault()}n=closest(n,l.draggable,o,true);v("dragOver");if(Sortable.eventCanceled)return p;if(dragEl.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||g._ignoreWhileAnimating===n){return b(false)}ignoreNextClick=false;if(c&&!l.disabled&&(u?d||(a=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,c,dragEl,t))&&s.checkPut(this,c,dragEl,t))){h=this._getDirection(t,n)==="vertical";r=getRect(dragEl);v("dragOverValid");if(Sortable.eventCanceled)return p;if(a){parentEl=rootEl;m();this._hideClone();v("revert");if(!Sortable.eventCanceled){if(nextEl){rootEl.insertBefore(dragEl,nextEl)}else{rootEl.appendChild(dragEl)}}return b(true)}var S=lastChild(o,l.draggable);if(!S||_ghostIsLast(t,h,this)&&!S.animated){if(S===dragEl){return b(false)}if(S&&o===t.target){n=S}if(n){i=getRect(n)}if(_onMove(rootEl,o,dragEl,r,n,i,t,!!n)!==false){m();if(S&&S.nextSibling){o.insertBefore(dragEl,S.nextSibling)}else{o.appendChild(dragEl)}parentEl=o;E();return b(true)}}else if(S&&_ghostIsFirst(t,h,this)){var w=getChild(o,0,l,true);if(w===dragEl){return b(false)}n=w;i=getRect(n);if(_onMove(rootEl,o,dragEl,r,n,i,t,false)!==false){m();o.insertBefore(dragEl,w);parentEl=o;E();return b(true)}}else if(n.parentNode===o){i=getRect(n);var y=0,_,x=dragEl.parentNode!==o,I=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||r,n.animated&&n.toRect||i,h),D=h?"top":"left",C=isScrolledPast(n,"top","top")||isScrolledPast(dragEl,"top","top"),T=C?C.scrollTop:void 0;if(lastTarget!==n){_=i[D];pastFirstInvertThresh=false;isCircumstantialInvert=!I&&l.invertSwap||x}y=_getSwapDirection(t,n,i,h,I?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,isCircumstantialInvert,lastTarget===n);var A;if(y!==0){var O=index(dragEl);do{O-=y;A=parentEl.children[O]}while(A&&(css(A,"display")==="none"||A===ghostEl))}if(y===0||A===n){return b(false)}lastTarget=n;lastDirection=y;var P=n.nextElementSibling,R=false;R=y===1;var k=_onMove(rootEl,o,dragEl,r,n,i,t,R);if(k!==false){if(k===1||k===-1){R=k===1}_silent=true;setTimeout(_unsilent,30);m();if(R&&!P){o.appendChild(dragEl)}else{n.parentNode.insertBefore(dragEl,R?P:n)}if(C){scrollBy(C,0,T-C.scrollTop)}parentEl=dragEl.parentNode;if(_!==undefined&&!isCircumstantialInvert){targetMoveDistance=Math.abs(_-getRect(n)[D])}E();return b(true)}}if(o.contains(dragEl)){return b(false)}}return false},_ignoreWhileAnimating:null,_offMoveEvents:function e(){off(document,"mousemove",this._onTouchMove);off(document,"touchmove",this._onTouchMove);off(document,"pointermove",this._onTouchMove);off(document,"dragover",nearestEmptyInsertDetectEvent);off(document,"mousemove",nearestEmptyInsertDetectEvent);off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function e(){var t=this.el.ownerDocument;off(t,"mouseup",this._onDrop);off(t,"touchend",this._onDrop);off(t,"pointerup",this._onDrop);off(t,"touchcancel",this._onDrop);off(document,"selectstart",this)},_onDrop:function e(t){var o=this.el,n=this.options;newIndex=index(dragEl);newDraggableIndex=index(dragEl,n.draggable);pluginEvent("drop",this,{evt:t});parentEl=dragEl&&dragEl.parentNode;newIndex=index(dragEl);newDraggableIndex=index(dragEl,n.draggable);if(Sortable.eventCanceled){this._nulling();return}awaitingDragStarted=false;isCircumstantialInvert=false;pastFirstInvertThresh=false;clearInterval(this._loopId);clearTimeout(this._dragStartTimer);_cancelNextTick(this.cloneId);_cancelNextTick(this._dragStartId);if(this.nativeDraggable){off(document,"drop",this);off(o,"dragstart",this._onDragStart)}this._offMoveEvents();this._offUpEvents();if(Safari){css(document.body,"user-select","")}css(dragEl,"transform","");if(t){if(moved){t.cancelable&&t.preventDefault();!n.dropBubble&&t.stopPropagation()}ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl);if(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone"){cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl)}if(dragEl){if(this.nativeDraggable){off(dragEl,"dragend",this)}_disableDraggable(dragEl);dragEl.style["will-change"]="";if(moved&&!awaitingDragStarted){toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,false)}toggleClass(dragEl,this.options.chosenClass,false);_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:t});if(rootEl!==parentEl){if(newIndex>=0){_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:t});_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:t});_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:t});_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})}putSortable&&putSortable.save()}else{if(newIndex!==oldIndex){if(newIndex>=0){_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:t});_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})}}}if(Sortable.active){if(newIndex==null||newIndex===-1){newIndex=oldIndex;newDraggableIndex=oldDraggableIndex}_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:t});this.save()}}}this._nulling()},_nulling:function e(){pluginEvent("nulling",this);rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null;savedInputChecked.forEach((function(e){e.checked=true}));savedInputChecked.length=lastDx=lastDy=0},handleEvent:function e(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":if(dragEl){this._onDragOver(t);_globalDragOver(t)}break;case"selectstart":t.preventDefault();break}},toArray:function e(){var t=[],o,n=this.el.children,r=0,i=n.length,a=this.options;for(;r<i;r++){o=n[r];if(closest(o,a.draggable,this.el,false)){t.push(o.getAttribute(a.dataIdAttr)||_generateId(o))}}return t},sort:function e(t,o){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];if(closest(o,this.options.draggable,r,false)){n[e]=o}}),this);o&&this.captureAnimationState();t.forEach((function(e){if(n[e]){r.removeChild(n[e]);r.appendChild(n[e])}}));o&&this.animateAll()},save:function e(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function e(t,o){return closest(t,o||this.options.draggable,this.el,false)},option:function e(t,o){var n=this.options;if(o===void 0){return n[t]}else{var r=PluginManager.modifyOption(this,t,o);if(typeof r!=="undefined"){n[t]=r}else{n[t]=o}if(t==="group"){_prepareGroup(n)}}},destroy:function e(){pluginEvent("destroy",this);var t=this.el;t[expando]=null;off(t,"mousedown",this._onTapStart);off(t,"touchstart",this._onTapStart);off(t,"pointerdown",this._onTapStart);if(this.nativeDraggable){off(t,"dragover",this);off(t,"dragenter",this)}Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")}));this._onDrop();this._disableDelayedDragEvents();sortables.splice(sortables.indexOf(this.el),1);this.el=t=null},_hideClone:function e(){if(!cloneHidden){pluginEvent("hideClone",this);if(Sortable.eventCanceled)return;css(cloneEl,"display","none");if(this.options.removeCloneOnHide&&cloneEl.parentNode){cloneEl.parentNode.removeChild(cloneEl)}cloneHidden=true}},_showClone:function e(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden){pluginEvent("showClone",this);if(Sortable.eventCanceled)return;if(dragEl.parentNode==rootEl&&!this.options.group.revertClone){rootEl.insertBefore(cloneEl,dragEl)}else if(nextEl){rootEl.insertBefore(cloneEl,nextEl)}else{rootEl.appendChild(cloneEl)}if(this.options.group.revertClone){this.animate(dragEl,cloneEl)}css(cloneEl,"display","");cloneHidden=false}}};function _globalDragOver(e){if(e.dataTransfer){e.dataTransfer.dropEffect="move"}e.cancelable&&e.preventDefault()}function _onMove(e,t,o,n,r,i,a,l){var s,c=e[expando],u=c.options.onMove,d;if(window.CustomEvent&&!IE11OrLess&&!Edge){s=new CustomEvent("move",{bubbles:true,cancelable:true})}else{s=document.createEvent("Event");s.initEvent("move",true,true)}s.to=t;s.from=e;s.dragged=o;s.draggedRect=n;s.related=r||t;s.relatedRect=i||getRect(t);s.willInsertAfter=l;s.originalEvent=a;e.dispatchEvent(s);if(u){d=u.call(c,s,a)}return d}function _disableDraggable(e){e.draggable=false}function _unsilent(){_silent=false}function _ghostIsFirst(e,t,o){var n=getRect(getChild(o.el,0,o.options,true));var r=10;return t?e.clientX<n.left-r||e.clientY<n.top&&e.clientX<n.right:e.clientY<n.top-r||e.clientY<n.bottom&&e.clientX<n.left}function _ghostIsLast(e,t,o){var n=getRect(lastChild(o.el,o.options.draggable));var r=10;return t?e.clientX>n.right+r||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+r}function _getSwapDirection(e,t,o,n,r,i,a,l){var s=n?e.clientY:e.clientX,c=n?o.height:o.width,u=n?o.top:o.left,d=n?o.bottom:o.right,f=false;if(!a){if(l&&targetMoveDistance<c*r){if(!pastFirstInvertThresh&&(lastDirection===1?s>u+c*i/2:s<d-c*i/2)){pastFirstInvertThresh=true}if(!pastFirstInvertThresh){if(lastDirection===1?s<u+targetMoveDistance:s>d-targetMoveDistance){return-lastDirection}}else{f=true}}else{if(s>u+c*(1-r)/2&&s<d-c*(1-r)/2){return _getInsertDirection(t)}}}f=f||a;if(f){if(s<u+c*i/2||s>d-c*i/2){return s>u+c/2?1:-1}}return 0}function _getInsertDirection(e){if(index(dragEl)<index(e)){return 1}else{return-1}}function _generateId(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,n=0;while(o--){n+=t.charCodeAt(o)}return n.toString(36)}function _saveInputCheckedState(e){savedInputChecked.length=0;var t=e.getElementsByTagName("input");var o=t.length;while(o--){var n=t[o];n.checked&&savedInputChecked.push(n)}}function _nextTick(e){return setTimeout(e,0)}function _cancelNextTick(e){return clearTimeout(e)}if(documentExists){on(document,"touchmove",(function(e){if((Sortable.active||awaitingDragStarted)&&e.cancelable){e.preventDefault()}}))}Sortable.utils={on:on,off:off,css:css,find:find,is:function e(t,o){return!!closest(t,o,t,false)},extend:extend,throttle:throttle,closest:closest,toggleClass:toggleClass,clone:clone,index:index,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild:getChild};Sortable.get=function(e){return e[expando]};Sortable.mount=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++){t[o]=arguments[o]}if(t[0].constructor===Array)t=t[0];t.forEach((function(e){if(!e.prototype||!e.prototype.constructor){throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e))}if(e.utils)Sortable.utils=_objectSpread2(_objectSpread2({},Sortable.utils),e.utils);PluginManager.mount(e)}))};Sortable.create=function(e,t){return new Sortable(e,t)};Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=false,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function e(){this.defaults={scroll:true,forceAutoScrollFallback:false,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:true};for(var e in this){if(e.charAt(0)==="_"&&typeof this[e]==="function"){this[e]=this[e].bind(this)}}}e.prototype={dragStarted:function e(t){var o=t.originalEvent;if(this.sortable.nativeDraggable){on(document,"dragover",this._handleAutoScroll)}else{if(this.options.supportPointer){on(document,"pointermove",this._handleFallbackAutoScroll)}else if(o.touches){on(document,"touchmove",this._handleFallbackAutoScroll)}else{on(document,"mousemove",this._handleFallbackAutoScroll)}}},dragOverCompleted:function e(t){var o=t.originalEvent;if(!this.options.dragOverBubble&&!o.rootEl){this._handleAutoScroll(o)}},drop:function e(){if(this.sortable.nativeDraggable){off(document,"dragover",this._handleAutoScroll)}else{off(document,"pointermove",this._handleFallbackAutoScroll);off(document,"touchmove",this._handleFallbackAutoScroll);off(document,"mousemove",this._handleFallbackAutoScroll)}clearPointerElemChangedInterval();clearAutoScrolls();cancelThrottle()},nulling:function e(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null;autoScrolls.length=0},_handleFallbackAutoScroll:function e(t){this._handleAutoScroll(t,true)},_handleAutoScroll:function e(t,o){var n=this;var r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=document.elementFromPoint(r,i);touchEvt$1=t;if(o||this.options.forceAutoScrollFallback||Edge||IE11OrLess||Safari){autoScroll(t,this.options,a,o);var l=getParentAutoScrollElement(a,true);if(scrolling&&(!pointerElemChangedInterval||r!==lastAutoScrollX||i!==lastAutoScrollY)){pointerElemChangedInterval&&clearPointerElemChangedInterval();pointerElemChangedInterval=setInterval((function(){var e=getParentAutoScrollElement(document.elementFromPoint(r,i),true);if(e!==l){l=e;clearAutoScrolls()}autoScroll(t,n.options,e,o)}),10);lastAutoScrollX=r;lastAutoScrollY=i}}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(a,true)===getWindowScrollingElement()){clearAutoScrolls();return}autoScroll(t,this.options,getParentAutoScrollElement(a,false),false)}}};return _extends(e,{pluginName:"scroll",initializeByDefault:true})}function clearAutoScrolls(){autoScrolls.forEach((function(e){clearInterval(e.pid)}));autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle((function(e,t,o,n){if(!t.scroll)return;var r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,l=t.scrollSpeed,s=getWindowScrollingElement();var c=false,u;if(scrollRootEl!==o){scrollRootEl=o;clearAutoScrolls();scrollEl=t.scroll;u=t.scrollFn;if(scrollEl===true){scrollEl=getParentAutoScrollElement(o,true)}}var d=0;var f=scrollEl;do{var h=f,g=getRect(h),p=g.top,v=g.bottom,m=g.left,b=g.right,E=g.width,S=g.height,w=void 0,y=void 0,_=h.scrollWidth,x=h.scrollHeight,I=css(h),D=h.scrollLeft,C=h.scrollTop;if(h===s){w=E<_&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible");y=S<x&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")}else{w=E<_&&(I.overflowX==="auto"||I.overflowX==="scroll");y=S<x&&(I.overflowY==="auto"||I.overflowY==="scroll")}var T=w&&(Math.abs(b-r)<=a&&D+E<_)-(Math.abs(m-r)<=a&&!!D);var A=y&&(Math.abs(v-i)<=a&&C+S<x)-(Math.abs(p-i)<=a&&!!C);if(!autoScrolls[d]){for(var O=0;O<=d;O++){if(!autoScrolls[O]){autoScrolls[O]={}}}}if(autoScrolls[d].vx!=T||autoScrolls[d].vy!=A||autoScrolls[d].el!==h){autoScrolls[d].el=h;autoScrolls[d].vx=T;autoScrolls[d].vy=A;clearInterval(autoScrolls[d].pid);if(T!=0||A!=0){c=true;autoScrolls[d].pid=setInterval(function(){if(n&&this.layer===0){Sortable.active._onTouchMove(touchEvt$1)}var t=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*l:0;var o=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*l:0;if(typeof u==="function"){if(u.call(Sortable.dragged.parentNode[expando],o,t,e,touchEvt$1,autoScrolls[this.layer].el)!=="continue"){return}}scrollBy(autoScrolls[this.layer].el,o,t)}.bind({layer:d}),24)}}d++}while(t.bubbleScroll&&f!==s&&(f=getParentAutoScrollElement(f,false)));scrolling=c}),30);var drop=function e(t){var o=t.originalEvent,n=t.putSortable,r=t.dragEl,i=t.activeSortable,a=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(!o)return;var c=n||i;l();var u=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o;var d=document.elementFromPoint(u.clientX,u.clientY);s();if(c&&!c.el.contains(d)){a("spill");this.onSpill({dragEl:r,putSortable:n})}};function Revert(){}Revert.prototype={startIndex:null,dragStart:function e(t){var o=t.oldDraggableIndex;this.startIndex=o},onSpill:function e(t){var o=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState();if(n){n.captureAnimationState()}var r=getChild(this.sortable.el,this.startIndex,this.options);if(r){this.sortable.el.insertBefore(o,r)}else{this.sortable.el.appendChild(o)}this.sortable.animateAll();if(n){n.animateAll()}},drop:drop};_extends(Revert,{pluginName:"revertOnSpill"});function Remove(){}Remove.prototype={onSpill:function e(t){var o=t.dragEl,n=t.putSortable;var r=n||this.sortable;r.captureAnimationState();o.parentNode&&o.parentNode.removeChild(o);r.animateAll()},drop:drop};_extends(Remove,{pluginName:"removeOnSpill"});Sortable.mount(new AutoScrollPlugin);Sortable.mount(Remove,Revert);var stzhSortableCss='.sc-stzh-sortable-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-sortable-h{display:none}.sc-stzh-sortable-h *.sc-stzh-sortable,.sc-stzh-sortable-h *.sc-stzh-sortable::before,.sc-stzh-sortable-h *.sc-stzh-sortable::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-sortable-h{--unselected-item-opacity:0.6;--ghost-item-background:var(--stzh-color-grey5);--ghost-item-box-shadow:inset 0 0 0.5rem rgba(0, 0, 0, 0.32)}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item{position:relative;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:move;cursor:-webkit-grab;cursor:grab}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-chosen,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-selected{cursor:move;cursor:-webkit-grabbing;cursor:grabbing}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag{opacity:1 !important}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost{z-index:0}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost::after{z-index:99;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ghost-item-background);-webkit-box-shadow:var(--ghost-item-box-shadow);box-shadow:var(--ghost-item-box-shadow)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item{opacity:var(--unselected-item-opacity)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item.is-selected{opacity:1}.stzh-sortable__description.sc-stzh-sortable,.stzh-sortable__aria-live.sc-stzh-sortable{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}';var CLASS_ITEM="is-sortable-item";var CLASS_GHOST="is-ghost";var CLASS_SELECTED="is-selected";var CLASS_CHOSEN="is-chosen";var CLASS_DRAG="is-drag";var CLASS_PARENT_SELECTED="has-item-selected";var sortableCounter=0;var StzhSortable=function(){function e(e){var t=this;registerInstance(this,e);this.stzhUpdate=createEvent(this,"stzhUpdate",7);this.disabled=false;this.dataIdAttribute="data-id";this.container=function(){var e;return(e=t.containerElement)===null||e===void 0?void 0:e.firstElementChild};this.filterElements=["[data-stzh-sortable-filtered]","[sortable-disabled]","button","a[href]","input","select","textarea","label","iframe","details","area","stzh-sortable"];this.selectedItem=null;this.resetItemOnBlur=false;this.init=function(){if(!t.getContainer()){return}Array.from(t.getContainer().children).forEach((function(e){e.classList.add(CLASS_ITEM);e.addEventListener("blur",t.onBlur);e.addEventListener("keydown",t.onKeydown);e.setAttribute("tabindex","0");e.setAttribute("aria-describedby","".concat(t.sortableId,"-description"))}))};this.updated=function(e){return __awaiter(t,void 0,void 0,(function(){var t,o,n,r,i;var a;return __generator(this,(function(l){switch(l.label){case 0:if(e){t=e.newIndex;o=e.oldIndex;n=e.item}else{t=this.getIndexOfSelectedItem();o=this.lastIndex;n=this.selectedItem}if(!(t!==o))return[3,2];i=(r=this.stzhUpdate).emit;a={component:"stzh-sortable"};return[4,this.toArray()];case 1:i.apply(r,[(a.data=l.sent(),a.item=n,a.newIndex=t,a.oldIndex=o,a)]);l.label=2;case 2:return[2]}}))}))};this.onKeydown=function(e){var o=e.currentTarget;if(!t.getContainer()||t.disabled){return}if(e.key===" "||e.key==="Tab"&&t.selectedItem&&t.selectedItem===e.currentTarget){e.preventDefault()}var n=o.matches(t._filterElements.join(", "));if(e.key===" "&&!n){if(!t.selectedItem){t.selectedItem=o;t.selectedItem.parentElement.classList.add(CLASS_PARENT_SELECTED);t.selectedItem.classList.add(CLASS_SELECTED);t.lastIndex=t.getIndexOfSelectedItem();t.resetItemOnBlur=true;t.updateAriaLive(t.localization.started)}else{t.resetItemOnBlur=false;t.updateAriaLive(t.localization.dropped);t.updated();t.resetActiveItem()}}else if(e.key==="Escape"&&t.selectedItem){t.resetItemOnBlur=false;t.updateAriaLive(t.localization.canceled);t.resetActiveItem(true)}else if(e.key==="ArrowUp"){if(t.selectedItem){t.moveItem(t.selectedItem,"up")}else{t.focusItem(o.previousElementSibling)}}else if(e.key==="ArrowDown"){if(t.selectedItem){t.moveItem(t.selectedItem,"down")}else{t.focusItem(o.nextElementSibling)}}};this.onBlur=function(){if(t.resetItemOnBlur){t.resetItemOnBlur=false;t.updateAriaLive(t.localization.dropped);t.updated();t.resetActiveItem()}}}e.prototype.toArray=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.sortable.toArray()]}))}))};e.prototype.sort=function(e,t){if(t===void 0){t=true}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){return[2,this.sortable.sort(e,t)]}))}))};e.prototype.moveItem=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){if(!e||!e.nextElementSibling&&t==="down"||!e.previousElementSibling&&t==="up"){return[2]}this.resetItemOnBlur=false;if(t==="up"){e.previousElementSibling.before(e)}else if(t==="down"){e.nextElementSibling.after(e)}this.updateAriaLive(this.localization.moved,e);this.focusItem(e);this.resetItemOnBlur=true;return[2]}))}))};e.prototype.filterElementsWatcher=function(e){if(typeof e==="string"){this._filterElements=JSON.parse(e)}else{this._filterElements=e}};e.prototype.getContainer=function(){return typeof this.container==="function"?this.container():this.container};e.prototype.updateAriaLive=function(e,t){if(t===void 0){t=this.selectedItem}if(!this.getContainer()){return}if(t){var o=t.getAttribute("aria-label")||"";var n=this.getIndexOfSelectedItem(t);e=e.replace("{title}",o).replace("{current}",(n+1).toString())}var r=this.getContainer().children.length;e=e.replace("{total}",r.toString());this.ariaLiveElement.textContent=e};e.prototype.getIndexOfSelectedItem=function(e){if(e===void 0){e=this.selectedItem}if(e){return Array.from(e.parentElement.children).indexOf(e)}};e.prototype.resetActiveItem=function(e){if(e===void 0){e=false}if(!this.selectedItem){return}var t=this.getIndexOfSelectedItem();var o=this.selectedItem.parentElement;if(e&&this.lastIndex!==t){if(this.lastIndex>t){o.children[this.lastIndex].after(this.selectedItem)}else{o.children[this.lastIndex].before(this.selectedItem)}this.selectedItem.focus()}o.classList.remove(CLASS_PARENT_SELECTED);this.selectedItem.classList.remove(CLASS_SELECTED);this.selectedItem=null;this.lastIndex=null};e.prototype.focusItem=function(e){if(!e){return}e.focus();var t=document.querySelector("stzh-flyingfocus");if(t){t.reposition()}scrollIntoView(e,{scrollMode:"if-needed",block:"nearest",inline:"nearest"})};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:this.sortableId="stzh-sortable-".concat(sortableCounter++);this.filterElementsWatcher(this.filterElements);if(!!this.localization)return[3,2];e=this;return[4,fetchTranslations(this.element,"sortable")];case 1:e.localization=t.sent();t.label=2;case 2:return[2]}}))}))};e.prototype.componentWillUpdate=function(){if(this.sortable){this.sortable.destroy();this.sortable=null}};e.prototype.componentDidRender=function(){if(this.sortable){return}this.sortable=new Sortable(this.getContainer(),{animation:150,filter:this._filterElements.join(", "),ghostClass:CLASS_GHOST,chosenClass:CLASS_CHOSEN,dragClass:CLASS_DRAG,dataIdAttr:this.dataIdAttribute,preventOnFilter:false,forceFallback:true,delay:200,delayOnTouchOnly:true,disabled:this.disabled,onUpdate:this.updated})};e.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};e.prototype.disconnectedCallback=function(){this.observer.disconnect();if(this.sortable){this.sortable.destroy();this.sortable=null}};e.prototype.render=function(){var e=this;var t={"stzh-sortable":true};return h(Host,null,h("div",{class:t},h("div",{id:"".concat(this.sortableId,"-description"),class:"stzh-sortable__description"},this.localization.description),h("div",{ref:function(t){return e.ariaLiveElement=t},"aria-live":"assertive",class:"stzh-sortable__aria-live"}),h("div",{ref:function(t){return e.containerElement=t},class:"stzh-sortable__container"},h("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{filterElements:["filterElementsWatcher"]}},enumerable:false,configurable:true});return e}();StzhSortable.style=stzhSortableCss;export{StzhSortable as stzh_sortable};
7
+ */function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t){r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};if(t%2){ownKeys(Object(n),true).forEach((function(t){_defineProperty(e,t,n[t])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(n))}else{ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}}return e}function _typeof(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function(e){return typeof e}}else{_typeof=function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}function _defineProperty(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function _extends(){_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};return _extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var n={};var r=Object.keys(e);var o,i;for(i=0;i<r.length;i++){o=r[i];if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function _objectWithoutProperties(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose(e,t);var r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++){r=i[o];if(t.indexOf(r)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,r))continue;n[r]=e[r]}}return n}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _unsupportedIterableToArray(e,t){if(!e)return;if(typeof e==="string")return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}function _arrayLikeToArray(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var version="1.15.0";function userAgent(e){if(typeof window!=="undefined"&&window.navigator){return!!navigator.userAgent.match(e)}}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);var Edge=userAgent(/Edge/i);var FireFox=userAgent(/firefox/i);var Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i);var IOS=userAgent(/iP(ad|od|hone)/i);var ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i);var captureMode={capture:false,passive:false};function on(e,t,n){e.addEventListener(t,n,!IE11OrLess&&captureMode)}function off(e,t,n){e.removeEventListener(t,n,!IE11OrLess&&captureMode)}function matches(e,t){if(!t)return;t[0]===">"&&(t=t.substring(1));if(e){try{if(e.matches){return e.matches(t)}else if(e.msMatchesSelector){return e.msMatchesSelector(t)}else if(e.webkitMatchesSelector){return e.webkitMatchesSelector(t)}}catch(n){return false}}return false}function getParentOrHost(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function closest(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&matches(e,t):matches(e,t))||r&&e===n){return e}if(e===n)break}while(e=getParentOrHost(e))}return null}var R_SPACE=/\s+/g;function toggleClass(e,t,n){if(e&&t){if(e.classList){e.classList[n?"add":"remove"](t)}else{var r=(" "+e.className+" ").replace(R_SPACE," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(R_SPACE," ")}}}function css(e,t,n){var r=e&&e.style;if(r){if(n===void 0){if(document.defaultView&&document.defaultView.getComputedStyle){n=document.defaultView.getComputedStyle(e,"")}else if(e.currentStyle){n=e.currentStyle}return t===void 0?n:n[t]}else{if(!(t in r)&&t.indexOf("webkit")===-1){t="-webkit-"+t}r[t]=n+(typeof n==="string"?"":"px")}}}function matrix(e,t){var n="";if(typeof e==="string"){n=e}else{do{var r=css(e,"transform");if(r&&r!=="none"){n=r+" "+n}}while(!t&&(e=e.parentNode))}var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function find(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n){for(;o<i;o++){n(r[o],o)}}return r}return[]}function getWindowScrollingElement(){var e=document.scrollingElement;if(e){return e}else{return document.documentElement}}function getRect(e,t,n,r,o){if(!e.getBoundingClientRect&&e!==window)return;var i,l,a,s,c,u,d;if(e!==window&&e.parentNode&&e!==getWindowScrollingElement()){i=e.getBoundingClientRect();l=i.top;a=i.left;s=i.bottom;c=i.right;u=i.height;d=i.width}else{l=0;a=0;s=window.innerHeight;c=window.innerWidth;u=window.innerHeight;d=window.innerWidth}if((t||n)&&e!==window){o=o||e.parentNode;if(!IE11OrLess){do{if(o&&o.getBoundingClientRect&&(css(o,"transform")!=="none"||n&&css(o,"position")!=="static")){var f=o.getBoundingClientRect();l-=f.top+parseInt(css(o,"border-top-width"));a-=f.left+parseInt(css(o,"border-left-width"));s=l+i.height;c=a+i.width;break}}while(o=o.parentNode)}}if(r&&e!==window){var h=matrix(o||e),g=h&&h.a,p=h&&h.d;if(h){l/=p;a/=g;d/=g;u/=p;s=l+u;c=a+d}}return{top:l,left:a,bottom:s,right:c,width:d,height:u}}function isScrolledPast(e,t,n){var r=getParentAutoScrollElement(e,true),o=getRect(e)[t];while(r){var i=getRect(r)[n],l=void 0;if(n==="top"||n==="left"){l=o>=i}else{l=o<=i}if(!l)return r;if(r===getWindowScrollingElement())break;r=getParentAutoScrollElement(r,false)}return false}function getChild(e,t,n,r){var o=0,i=0,l=e.children;while(i<l.length){if(l[i].style.display!=="none"&&l[i]!==Sortable.ghost&&(r||l[i]!==Sortable.dragged)&&closest(l[i],n.draggable,e,false)){if(o===t){return l[i]}o++}i++}return null}function lastChild(e,t){var n=e.lastElementChild;while(n&&(n===Sortable.ghost||css(n,"display")==="none"||t&&!matches(n,t))){n=n.previousElementSibling}return n||null}function index(e,t){var n=0;if(!e||!e.parentNode){return-1}while(e=e.previousElementSibling){if(e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Sortable.clone&&(!t||matches(e,t))){n++}}return n}function getRelativeScrollOffset(e){var t=0,n=0,r=getWindowScrollingElement();if(e){do{var o=matrix(e),i=o.a,l=o.d;t+=e.scrollLeft*i;n+=e.scrollTop*l}while(e!==r&&(e=e.parentNode))}return[t,n]}function indexOfObject(e,t){for(var n in e){if(!e.hasOwnProperty(n))continue;for(var r in t){if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}}return-1}function getParentAutoScrollElement(e,t){if(!e||!e.getBoundingClientRect)return getWindowScrollingElement();var n=e;var r=false;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=css(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return getWindowScrollingElement();if(r||t)return n;r=true}}}while(n=n.parentNode);return getWindowScrollingElement()}function extend(e,t){if(e&&t){for(var n in t){if(t.hasOwnProperty(n)){e[n]=t[n]}}}return e}function isRectEqual(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var _throttleTimeout;function throttle(e,t){return function(){if(!_throttleTimeout){var n=arguments,r=this;if(n.length===1){e.call(r,n[0])}else{e.apply(r,n)}_throttleTimeout=setTimeout((function(){_throttleTimeout=void 0}),t)}}}function cancelThrottle(){clearTimeout(_throttleTimeout);_throttleTimeout=void 0}function scrollBy(e,t,n){e.scrollLeft+=t;e.scrollTop+=n}function clone(e){var t=window.Polymer;var n=window.jQuery||window.Zepto;if(t&&t.dom){return t.dom(e).cloneNode(true)}else if(n){return n(e).clone(true)[0]}else{return e.cloneNode(true)}}function setRect(e,t){css(e,"position","absolute");css(e,"top",t.top);css(e,"left",t.left);css(e,"width",t.width);css(e,"height",t.height)}function unsetRect(e){css(e,"position","");css(e,"top","");css(e,"left","");css(e,"width","");css(e,"height","")}var expando="Sortable"+(new Date).getTime();function AnimationStateManager(){var e=[],t;return{captureAnimationState:function t(){e=[];if(!this.options.animation)return;var n=[].slice.call(this.el.children);n.forEach((function(t){if(css(t,"display")==="none"||t===Sortable.ghost)return;e.push({target:t,rect:getRect(t)});var n=_objectSpread2({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=matrix(t,true);if(r){n.top-=r.f;n.left-=r.e}}t.fromRect=n}))},addAnimationState:function t(n){e.push(n)},removeAnimationState:function t(n){e.splice(indexOfObject(e,{target:n}),1)},animateAll:function n(r){var o=this;if(!this.options.animation){clearTimeout(t);if(typeof r==="function")r();return}var i=false,l=0;e.forEach((function(e){var t=0,n=e.target,r=n.fromRect,a=getRect(n),s=n.prevFromRect,c=n.prevToRect,u=e.rect,d=matrix(n,true);if(d){a.top-=d.f;a.left-=d.e}n.toRect=a;if(n.thisAnimationDuration){if(isRectEqual(s,a)&&!isRectEqual(r,a)&&(u.top-a.top)/(u.left-a.left)===(r.top-a.top)/(r.left-a.left)){t=calculateRealTime(u,s,c,o.options)}}if(!isRectEqual(a,r)){n.prevFromRect=r;n.prevToRect=a;if(!t){t=o.options.animation}o.animate(n,u,a,t)}if(t){i=true;l=Math.max(l,t);clearTimeout(n.animationResetTimer);n.animationResetTimer=setTimeout((function(){n.animationTime=0;n.prevFromRect=null;n.fromRect=null;n.prevToRect=null;n.thisAnimationDuration=null}),t);n.thisAnimationDuration=t}}));clearTimeout(t);if(!i){if(typeof r==="function")r()}else{t=setTimeout((function(){if(typeof r==="function")r()}),l)}e=[]},animate:function e(t,n,r,o){if(o){css(t,"transition","");css(t,"transform","");var i=matrix(this.el),l=i&&i.a,a=i&&i.d,s=(n.left-r.left)/(l||1),c=(n.top-r.top)/(a||1);t.animatingX=!!s;t.animatingY=!!c;css(t,"transform","translate3d("+s+"px,"+c+"px,0)");this.forRepaintDummy=repaint(t);css(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:""));css(t,"transform","translate3d(0,0,0)");typeof t.animated==="number"&&clearTimeout(t.animated);t.animated=setTimeout((function(){css(t,"transition","");css(t,"transform","");t.animated=false;t.animatingX=false;t.animatingY=false}),o)}}}}function repaint(e){return e.offsetWidth}function calculateRealTime(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var plugins=[];var defaults={initializeByDefault:true};var PluginManager={mount:function e(t){for(var n in defaults){if(defaults.hasOwnProperty(n)&&!(n in t)){t[n]=defaults[n]}}plugins.forEach((function(e){if(e.pluginName===t.pluginName){throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}}));plugins.push(t)},pluginEvent:function e(t,n,r){var o=this;this.eventCanceled=false;r.cancel=function(){o.eventCanceled=true};var i=t+"Global";plugins.forEach((function(e){if(!n[e.pluginName])return;if(n[e.pluginName][i]){n[e.pluginName][i](_objectSpread2({sortable:n},r))}if(n.options[e.pluginName]&&n[e.pluginName][t]){n[e.pluginName][t](_objectSpread2({sortable:n},r))}}))},initializePlugins:function e(t,n,r,o){plugins.forEach((function(e){var o=e.pluginName;if(!t.options[o]&&!e.initializeByDefault)return;var i=new e(t,n,t.options);i.sortable=t;i.options=t.options;t[o]=i;_extends(r,i.defaults)}));for(var i in t.options){if(!t.options.hasOwnProperty(i))continue;var l=this.modifyOption(t,i,t.options[i]);if(typeof l!=="undefined"){t.options[i]=l}}},getEventProperties:function e(t,n){var r={};plugins.forEach((function(e){if(typeof e.eventProperties!=="function")return;_extends(r,e.eventProperties.call(n[e.pluginName],t))}));return r},modifyOption:function e(t,n,r){var o;plugins.forEach((function(e){if(!t[e.pluginName])return;if(e.optionListeners&&typeof e.optionListeners[n]==="function"){o=e.optionListeners[n].call(t[e.pluginName],r)}}));return o}};function dispatchEvent(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,l=e.toEl,a=e.fromEl,s=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,h=e.putSortable,g=e.extraEventProperties;t=t||n&&n[expando];if(!t)return;var p,m=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);if(window.CustomEvent&&!IE11OrLess&&!Edge){p=new CustomEvent(r,{bubbles:true,cancelable:true})}else{p=document.createEvent("Event");p.initEvent(r,true,true)}p.to=l||n;p.from=a||n;p.item=o||n;p.clone=i;p.oldIndex=s;p.newIndex=c;p.oldDraggableIndex=u;p.newDraggableIndex=d;p.originalEvent=f;p.pullMode=h?h.lastPutMode:undefined;var E=_objectSpread2(_objectSpread2({},g),PluginManager.getEventProperties(r,t));for(var b in E){p[b]=E[b]}if(n){n.dispatchEvent(p)}if(m[v]){m[v].call(t,p)}}var _excluded=["evt"];var pluginEvent=function e(t,n){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},o=r.evt,i=_objectWithoutProperties(r,_excluded);PluginManager.pluginEvent.bind(Sortable)(t,n,_objectSpread2({dragEl:dragEl,parentEl:parentEl,ghostEl:ghostEl,rootEl:rootEl,nextEl:nextEl,lastDownEl:lastDownEl,cloneEl:cloneEl,cloneHidden:cloneHidden,dragStarted:moved,putSortable:putSortable,activeSortable:Sortable.active,originalEvent:o,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function e(){cloneHidden=true},cloneNowShown:function e(){cloneHidden=false},dispatchSortableEvent:function e(t){_dispatchEvent({sortable:n,name:t,originalEvent:o})}},i))};function _dispatchEvent(e){dispatchEvent(_objectSpread2({putSortable:putSortable,cloneEl:cloneEl,targetEl:dragEl,rootEl:rootEl,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex},e))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=false,ignoreNextClick=false,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=false,isCircumstantialInvert=false,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=false,savedInputChecked=[];var documentExists=typeof document!=="undefined",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(!documentExists)return;if(IE11OrLess){return false}var e=document.createElement("x");e.style.cssText="pointer-events:auto";return e.style.pointerEvents==="auto"}(),_detectDirection=function e(t,n){var r=css(t),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=getChild(t,0,n),l=getChild(t,1,n),a=i&&css(i),s=l&&css(l),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+getRect(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+getRect(l).width;if(r.display==="flex"){return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal"}if(r.display==="grid"){return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal"}if(i&&a["float"]&&a["float"]!=="none"){var d=a["float"]==="left"?"left":"right";return l&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return i&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||c>=o&&r[CSSFloatProperty]==="none"||l&&r[CSSFloatProperty]==="none"&&c+u>o)?"vertical":"horizontal"},_dragElInRowColumn=function e(t,n,r){var o=r?t.left:t.top,i=r?t.right:t.bottom,l=r?t.width:t.height,a=r?n.left:n.top,s=r?n.right:n.bottom,c=r?n.width:n.height;return o===a||i===s||o+l/2===a+c/2},_detectNearestEmptySortable=function e(t,n){var r;sortables.some((function(e){var o=e[expando].options.emptyInsertThreshold;if(!o||lastChild(e))return;var i=getRect(e),l=t>=i.left-o&&t<=i.right+o,a=n>=i.top-o&&n<=i.bottom+o;if(l&&a){return r=e}}));return r},_prepareGroup=function e(t){function n(e,t){return function(r,o,i,l){var a=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(e==null&&(t||a)){return true}else if(e==null||e===false){return false}else if(t&&e==="clone"){return e}else if(typeof e==="function"){return n(e(r,o,i,l),t)(r,o,i,l)}else{var s=(t?r:o).options.group.name;return e===true||typeof e==="string"&&e===s||e.join&&e.indexOf(s)>-1}}}var r={};var o=t.group;if(!o||_typeof(o)!="object"){o={name:o}}r.name=o.name;r.checkPull=n(o.pull,true);r.checkPut=n(o.put);r.revertClone=o.revertClone;t.group=r},_hideGhostForTarget=function e(){if(!supportCssPointerEvents&&ghostEl){css(ghostEl,"display","none")}},_unhideGhostForTarget=function e(){if(!supportCssPointerEvents&&ghostEl){css(ghostEl,"display","")}};if(documentExists&&!ChromeForAndroid){document.addEventListener("click",(function(e){if(ignoreNextClick){e.preventDefault();e.stopPropagation&&e.stopPropagation();e.stopImmediatePropagation&&e.stopImmediatePropagation();ignoreNextClick=false;return false}}),true)}var nearestEmptyInsertDetectEvent=function e(t){if(dragEl){t=t.touches?t.touches[0]:t;var n=_detectNearestEmptySortable(t.clientX,t.clientY);if(n){var r={};for(var o in t){if(t.hasOwnProperty(o)){r[o]=t[o]}}r.target=r.rootEl=n;r.preventDefault=void 0;r.stopPropagation=void 0;n[expando]._onDragOver(r)}}};var _checkOutsideTargetEl=function e(t){if(dragEl){dragEl.parentNode[expando]._isOutsideThisEl(t.target)}};function Sortable(e,t){if(!(e&&e.nodeType&&e.nodeType===1)){throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e))}this.el=e;this.options=t=_extends({},t);e[expando]=this;var n={group:null,sort:true,disabled:false,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:false,invertedSwapThreshold:null,removeCloneOnHide:true,direction:function t(){return _detectDirection(e,this.options)},ghostClone:function(e){return e.cloneNode(true)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:true,animation:0,easing:null,setData:function e(t,n){t.setData("Text",n.textContent)},dropBubble:false,dragoverBubble:false,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:false,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:false,fallbackClass:"sortable-fallback",fallbackOnBody:false,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sortable.supportPointer!==false&&"PointerEvent"in window&&!Safari,emptyInsertThreshold:5};PluginManager.initializePlugins(this,e,n);for(var r in n){!(r in t)&&(t[r]=n[r])}_prepareGroup(t);for(var o in this){if(o.charAt(0)==="_"&&typeof this[o]==="function"){this[o]=this[o].bind(this)}}this.nativeDraggable=t.forceFallback?false:supportDraggable;if(this.nativeDraggable){this.options.touchStartThreshold=1}if(t.supportPointer){on(e,"pointerdown",this._onTapStart)}else{on(e,"mousedown",this._onTapStart);on(e,"touchstart",this._onTapStart)}if(this.nativeDraggable){on(e,"dragover",this);on(e,"dragenter",this)}sortables.push(this.el);t.store&&t.store.get&&this.sort(t.store.get(this)||[]);_extends(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function e(t){if(!this.el.contains(t)&&t!==this.el){lastTarget=null}},_getDirection:function e(t,n){return typeof this.options.direction==="function"?this.options.direction.call(this,t,n,dragEl):this.options.direction},_onTapStart:function e(t){if(!t.cancelable)return;var n=this,r=this.el,o=this.options,i=o.preventOnFilter,l=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(a||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,u=o.filter;_saveInputCheckedState(r);if(dragEl){return}if(/mousedown|pointerdown/.test(l)&&t.button!==0||o.disabled){return}if(c.isContentEditable){return}if(!this.nativeDraggable&&Safari&&s&&s.tagName.toUpperCase()==="SELECT"){return}s=closest(s,o.draggable,r,false);if(s&&s.animated){return}if(lastDownEl===s){return}oldIndex=index(s);oldDraggableIndex=index(s,o.draggable);if(typeof u==="function"){if(u.call(this,t,s,this)){_dispatchEvent({sortable:n,rootEl:c,name:"filter",targetEl:s,toEl:r,fromEl:r});pluginEvent("filter",n,{evt:t});i&&t.cancelable&&t.preventDefault();return}}else if(u){u=u.split(",").some((function(e){e=closest(c,e.trim(),r,false);if(e){_dispatchEvent({sortable:n,rootEl:e,name:"filter",targetEl:s,fromEl:r,toEl:r});pluginEvent("filter",n,{evt:t});return true}}));if(u){i&&t.cancelable&&t.preventDefault();return}}if(o.handle&&!closest(c,o.handle,r,false)){return}this._prepareDragStart(t,a,s)},_prepareDragStart:function e(t,n,r){var o=this,i=o.el,l=o.options,a=i.ownerDocument,s;if(r&&!dragEl&&r.parentNode===i){var c=getRect(r);rootEl=i;dragEl=r;parentEl=dragEl.parentNode;nextEl=dragEl.nextSibling;lastDownEl=r;activeGroup=l.group;Sortable.dragged=dragEl;tapEvt={target:dragEl,clientX:(n||t).clientX,clientY:(n||t).clientY};tapDistanceLeft=tapEvt.clientX-c.left;tapDistanceTop=tapEvt.clientY-c.top;this._lastX=(n||t).clientX;this._lastY=(n||t).clientY;dragEl.style["will-change"]="all";s=function e(){pluginEvent("delayEnded",o,{evt:t});if(Sortable.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents();if(!FireFox&&o.nativeDraggable){dragEl.draggable=true}o._triggerDragStart(t,n);_dispatchEvent({sortable:o,name:"choose",originalEvent:t});toggleClass(dragEl,l.chosenClass,true)};l.ignore.split(",").forEach((function(e){find(dragEl,e.trim(),_disableDraggable)}));on(a,"dragover",nearestEmptyInsertDetectEvent);on(a,"mousemove",nearestEmptyInsertDetectEvent);on(a,"touchmove",nearestEmptyInsertDetectEvent);on(a,"mouseup",o._onDrop);on(a,"touchend",o._onDrop);on(a,"touchcancel",o._onDrop);if(FireFox&&this.nativeDraggable){this.options.touchStartThreshold=4;dragEl.draggable=true}pluginEvent("delayStart",this,{evt:t});if(l.delay&&(!l.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}on(a,"mouseup",o._disableDelayedDrag);on(a,"touchend",o._disableDelayedDrag);on(a,"touchcancel",o._disableDelayedDrag);on(a,"mousemove",o._delayedDragTouchMoveHandler);on(a,"touchmove",o._delayedDragTouchMoveHandler);l.supportPointer&&on(a,"pointermove",o._delayedDragTouchMoveHandler);o._dragStartTimer=setTimeout(s,l.delay)}else{s()}}},_delayedDragTouchMoveHandler:function e(t){var n=t.touches?t.touches[0]:t;if(Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))){this._disableDelayedDrag()}},_disableDelayedDrag:function e(){dragEl&&_disableDraggable(dragEl);clearTimeout(this._dragStartTimer);this._disableDelayedDragEvents()},_disableDelayedDragEvents:function e(){var t=this.el.ownerDocument;off(t,"mouseup",this._disableDelayedDrag);off(t,"touchend",this._disableDelayedDrag);off(t,"touchcancel",this._disableDelayedDrag);off(t,"mousemove",this._delayedDragTouchMoveHandler);off(t,"touchmove",this._delayedDragTouchMoveHandler);off(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function e(t,n){n=n||t.pointerType=="touch"&&t;if(!this.nativeDraggable||n){if(this.options.supportPointer){on(document,"pointermove",this._onTouchMove)}else if(n){on(document,"touchmove",this._onTouchMove)}else{on(document,"mousemove",this._onTouchMove)}}else{on(dragEl,"dragend",this);on(rootEl,"dragstart",this._onDragStart)}try{if(document.selection){_nextTick((function(){document.selection.empty()}))}else{window.getSelection().removeAllRanges()}}catch(r){}},_dragStarted:function e(t,n){awaitingDragStarted=false;if(rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:n});if(this.nativeDraggable){on(document,"dragover",_checkOutsideTargetEl)}var r=this.options;!t&&toggleClass(dragEl,r.dragClass,false);toggleClass(dragEl,r.ghostClass,true);Sortable.active=this;t&&this._appendGhost();_dispatchEvent({sortable:this,name:"start",originalEvent:n})}else{this._nulling()}},_emulateDragOver:function e(){if(touchEvt){this._lastX=touchEvt.clientX;this._lastY=touchEvt.clientY;_hideGhostForTarget();var t=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY);var n=t;while(t&&t.shadowRoot){t=t.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY);if(t===n)break;n=t}dragEl.parentNode[expando]._isOutsideThisEl(t);if(n){do{if(n[expando]){var r=void 0;r=n[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:t,rootEl:n});if(r&&!this.options.dragoverBubble){break}}t=n}while(n=n.parentNode)}_unhideGhostForTarget()}},_onTouchMove:function e(t){if(tapEvt){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,i=t.touches?t.touches[0]:t,l=ghostEl&&matrix(ghostEl,true),a=ghostEl&&l&&l.a,s=ghostEl&&l&&l.d,c=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),u=(i.clientX-tapEvt.clientX+o.x)/(a||1)+(c?c[0]-ghostRelativeParentInitialScroll[0]:0)/(a||1),d=(i.clientY-tapEvt.clientY+o.y)/(s||1)+(c?c[1]-ghostRelativeParentInitialScroll[1]:0)/(s||1);if(!Sortable.active&&!awaitingDragStarted){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r){return}this._onDragStart(t,true)}if(ghostEl){if(l){l.e+=u-(lastDx||0);l.f+=d-(lastDy||0)}else{l={a:1,b:0,c:0,d:1,e:u,f:d}}var f="matrix(".concat(l.a,",").concat(l.b,",").concat(l.c,",").concat(l.d,",").concat(l.e,",").concat(l.f,")");css(ghostEl,"webkitTransform",f);css(ghostEl,"mozTransform",f);css(ghostEl,"msTransform",f);css(ghostEl,"transform",f);lastDx=u;lastDy=d;touchEvt=i}t.cancelable&&t.preventDefault()}},_appendGhost:function e(){if(!ghostEl){var t=this.options.fallbackOnBody?document.body:rootEl,n=getRect(dragEl,true,PositionGhostAbsolutely,true,t),r=this.options;if(PositionGhostAbsolutely){ghostRelativeParent=t;while(css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document){ghostRelativeParent=ghostRelativeParent.parentNode}if(ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement){if(ghostRelativeParent===document)ghostRelativeParent=getWindowScrollingElement();n.top+=ghostRelativeParent.scrollTop;n.left+=ghostRelativeParent.scrollLeft}else{ghostRelativeParent=getWindowScrollingElement()}ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}ghostEl=r.ghostClone(dragEl);toggleClass(ghostEl,r.ghostClass,false);toggleClass(ghostEl,r.fallbackClass,true);toggleClass(ghostEl,r.dragClass,true);css(ghostEl,"transition","");css(ghostEl,"transform","");css(ghostEl,"box-sizing","border-box");css(ghostEl,"margin",0);css(ghostEl,"top",n.top);css(ghostEl,"left",n.left);css(ghostEl,"width",n.width);css(ghostEl,"height",n.height);css(ghostEl,"opacity","0.8");css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed");css(ghostEl,"zIndex","100000");css(ghostEl,"pointerEvents","none");Sortable.ghost=ghostEl;t.appendChild(ghostEl);css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function e(t,n){var r=this;var o=t.dataTransfer;var i=r.options;pluginEvent("dragStart",this,{evt:t});if(Sortable.eventCanceled){this._onDrop();return}pluginEvent("setupClone",this);if(!Sortable.eventCanceled){cloneEl=clone(dragEl);cloneEl.removeAttribute("id");cloneEl.draggable=false;cloneEl.style["will-change"]="";this._hideClone();toggleClass(cloneEl,this.options.chosenClass,false);Sortable.clone=cloneEl}r.cloneId=_nextTick((function(){pluginEvent("clone",r);if(Sortable.eventCanceled)return;if(!r.options.removeCloneOnHide){rootEl.insertBefore(cloneEl,dragEl)}r._hideClone();_dispatchEvent({sortable:r,name:"clone"})}));!n&&toggleClass(dragEl,i.dragClass,true);if(n){ignoreNextClick=true;r._loopId=setInterval(r._emulateDragOver,50)}else{off(document,"mouseup",r._onDrop);off(document,"touchend",r._onDrop);off(document,"touchcancel",r._onDrop);if(o){o.effectAllowed="move";i.setData&&i.setData.call(r,o,dragEl)}on(document,"drop",r);css(dragEl,"transform","translateZ(0)")}awaitingDragStarted=true;r._dragStartId=_nextTick(r._dragStarted.bind(r,n,t));on(document,"selectstart",r);moved=true;if(Safari){css(document.body,"user-select","none")}},_onDragOver:function e(t){var n=this.el,r=t.target,o,i,l,a=this.options,s=a.group,c=Sortable.active,u=activeGroup===s,d=a.sort,f=putSortable||c,h,g=this,p=false;if(_silent)return;function m(e,a){pluginEvent(e,g,_objectSpread2({evt:t,isOwner:u,axis:h?"vertical":"horizontal",revert:l,dragRect:o,targetRect:i,canSort:d,fromSortable:f,target:r,completed:E,onMove:function e(r,i){return _onMove(rootEl,n,dragEl,o,r,getRect(r),t,i)},changed:b},a))}function v(){m("dragOverAnimationCapture");g.captureAnimationState();if(g!==f){f.captureAnimationState()}}function E(e){m("dragOverCompleted",{insertion:e});if(e){if(u){c._hideClone()}else{c._showClone(g)}if(g!==f){toggleClass(dragEl,putSortable?putSortable.options.ghostClass:c.options.ghostClass,false);toggleClass(dragEl,a.ghostClass,true)}if(putSortable!==g&&g!==Sortable.active){putSortable=g}else if(g===Sortable.active&&putSortable){putSortable=null}if(f===g){g._ignoreWhileAnimating=r}g.animateAll((function(){m("dragOverAnimationComplete");g._ignoreWhileAnimating=null}));if(g!==f){f.animateAll();f._ignoreWhileAnimating=null}}if(r===dragEl&&!dragEl.animated||r===n&&!r.animated){lastTarget=null}if(!a.dragoverBubble&&!t.rootEl&&r!==document){dragEl.parentNode[expando]._isOutsideThisEl(t.target);!e&&nearestEmptyInsertDetectEvent(t)}!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation();return p=true}function b(){newIndex=index(dragEl);newDraggableIndex=index(dragEl,a.draggable);_dispatchEvent({sortable:g,name:"change",toEl:n,newIndex:newIndex,newDraggableIndex:newDraggableIndex,originalEvent:t})}if(t.preventDefault!==void 0){t.cancelable&&t.preventDefault()}r=closest(r,a.draggable,n,true);m("dragOver");if(Sortable.eventCanceled)return p;if(dragEl.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r){return E(false)}ignoreNextClick=false;if(c&&!a.disabled&&(u?d||(l=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,c,dragEl,t))&&s.checkPut(this,c,dragEl,t))){h=this._getDirection(t,r)==="vertical";o=getRect(dragEl);m("dragOverValid");if(Sortable.eventCanceled)return p;if(l){parentEl=rootEl;v();this._hideClone();m("revert");if(!Sortable.eventCanceled){if(nextEl){rootEl.insertBefore(dragEl,nextEl)}else{rootEl.appendChild(dragEl)}}return E(true)}var S=lastChild(n,a.draggable);if(!S||_ghostIsLast(t,h,this)&&!S.animated){if(S===dragEl){return E(false)}if(S&&n===t.target){r=S}if(r){i=getRect(r)}if(_onMove(rootEl,n,dragEl,o,r,i,t,!!r)!==false){v();if(S&&S.nextSibling){n.insertBefore(dragEl,S.nextSibling)}else{n.appendChild(dragEl)}parentEl=n;b();return E(true)}}else if(S&&_ghostIsFirst(t,h,this)){var w=getChild(n,0,a,true);if(w===dragEl){return E(false)}r=w;i=getRect(r);if(_onMove(rootEl,n,dragEl,o,r,i,t,false)!==false){v();n.insertBefore(dragEl,w);parentEl=n;b();return E(true)}}else if(r.parentNode===n){i=getRect(r);var y=0,D,_=dragEl.parentNode!==n,x=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||o,r.animated&&r.toRect||i,h),C=h?"top":"left",I=isScrolledPast(r,"top","top")||isScrolledPast(dragEl,"top","top"),A=I?I.scrollTop:void 0;if(lastTarget!==r){D=i[C];pastFirstInvertThresh=false;isCircumstantialInvert=!x&&a.invertSwap||_}y=_getSwapDirection(t,r,i,h,x?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,isCircumstantialInvert,lastTarget===r);var T;if(y!==0){var O=index(dragEl);do{O-=y;T=parentEl.children[O]}while(T&&(css(T,"display")==="none"||T===ghostEl))}if(y===0||T===r){return E(false)}lastTarget=r;lastDirection=y;var P=r.nextElementSibling,M=false;M=y===1;var R=_onMove(rootEl,n,dragEl,o,r,i,t,M);if(R!==false){if(R===1||R===-1){M=R===1}_silent=true;setTimeout(_unsilent,30);v();if(M&&!P){n.appendChild(dragEl)}else{r.parentNode.insertBefore(dragEl,M?P:r)}if(I){scrollBy(I,0,A-I.scrollTop)}parentEl=dragEl.parentNode;if(D!==undefined&&!isCircumstantialInvert){targetMoveDistance=Math.abs(D-getRect(r)[C])}b();return E(true)}}if(n.contains(dragEl)){return E(false)}}return false},_ignoreWhileAnimating:null,_offMoveEvents:function e(){off(document,"mousemove",this._onTouchMove);off(document,"touchmove",this._onTouchMove);off(document,"pointermove",this._onTouchMove);off(document,"dragover",nearestEmptyInsertDetectEvent);off(document,"mousemove",nearestEmptyInsertDetectEvent);off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function e(){var t=this.el.ownerDocument;off(t,"mouseup",this._onDrop);off(t,"touchend",this._onDrop);off(t,"pointerup",this._onDrop);off(t,"touchcancel",this._onDrop);off(document,"selectstart",this)},_onDrop:function e(t){var n=this.el,r=this.options;newIndex=index(dragEl);newDraggableIndex=index(dragEl,r.draggable);pluginEvent("drop",this,{evt:t});parentEl=dragEl&&dragEl.parentNode;newIndex=index(dragEl);newDraggableIndex=index(dragEl,r.draggable);if(Sortable.eventCanceled){this._nulling();return}awaitingDragStarted=false;isCircumstantialInvert=false;pastFirstInvertThresh=false;clearInterval(this._loopId);clearTimeout(this._dragStartTimer);_cancelNextTick(this.cloneId);_cancelNextTick(this._dragStartId);if(this.nativeDraggable){off(document,"drop",this);off(n,"dragstart",this._onDragStart)}this._offMoveEvents();this._offUpEvents();if(Safari){css(document.body,"user-select","")}css(dragEl,"transform","");if(t){if(moved){t.cancelable&&t.preventDefault();!r.dropBubble&&t.stopPropagation()}ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl);if(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone"){cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl)}if(dragEl){if(this.nativeDraggable){off(dragEl,"dragend",this)}_disableDraggable(dragEl);dragEl.style["will-change"]="";if(moved&&!awaitingDragStarted){toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,false)}toggleClass(dragEl,this.options.chosenClass,false);_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:t});if(rootEl!==parentEl){if(newIndex>=0){_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:t});_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:t});_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:t});_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})}putSortable&&putSortable.save()}else{if(newIndex!==oldIndex){if(newIndex>=0){_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:t});_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})}}}if(Sortable.active){if(newIndex==null||newIndex===-1){newIndex=oldIndex;newDraggableIndex=oldDraggableIndex}_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:t});this.save()}}}this._nulling()},_nulling:function e(){pluginEvent("nulling",this);rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null;savedInputChecked.forEach((function(e){e.checked=true}));savedInputChecked.length=lastDx=lastDy=0},handleEvent:function e(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":if(dragEl){this._onDragOver(t);_globalDragOver(t)}break;case"selectstart":t.preventDefault();break}},toArray:function e(){var t=[],n,r=this.el.children,o=0,i=r.length,l=this.options;for(;o<i;o++){n=r[o];if(closest(n,l.draggable,this.el,false)){t.push(n.getAttribute(l.dataIdAttr)||_generateId(n))}}return t},sort:function e(t,n){var r={},o=this.el;this.toArray().forEach((function(e,t){var n=o.children[t];if(closest(n,this.options.draggable,o,false)){r[e]=n}}),this);n&&this.captureAnimationState();t.forEach((function(e){if(r[e]){o.removeChild(r[e]);o.appendChild(r[e])}}));n&&this.animateAll()},save:function e(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function e(t,n){return closest(t,n||this.options.draggable,this.el,false)},option:function e(t,n){var r=this.options;if(n===void 0){return r[t]}else{var o=PluginManager.modifyOption(this,t,n);if(typeof o!=="undefined"){r[t]=o}else{r[t]=n}if(t==="group"){_prepareGroup(r)}}},destroy:function e(){pluginEvent("destroy",this);var t=this.el;t[expando]=null;off(t,"mousedown",this._onTapStart);off(t,"touchstart",this._onTapStart);off(t,"pointerdown",this._onTapStart);if(this.nativeDraggable){off(t,"dragover",this);off(t,"dragenter",this)}Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")}));this._onDrop();this._disableDelayedDragEvents();sortables.splice(sortables.indexOf(this.el),1);this.el=t=null},_hideClone:function e(){if(!cloneHidden){pluginEvent("hideClone",this);if(Sortable.eventCanceled)return;css(cloneEl,"display","none");if(this.options.removeCloneOnHide&&cloneEl.parentNode){cloneEl.parentNode.removeChild(cloneEl)}cloneHidden=true}},_showClone:function e(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden){pluginEvent("showClone",this);if(Sortable.eventCanceled)return;if(dragEl.parentNode==rootEl&&!this.options.group.revertClone){rootEl.insertBefore(cloneEl,dragEl)}else if(nextEl){rootEl.insertBefore(cloneEl,nextEl)}else{rootEl.appendChild(cloneEl)}if(this.options.group.revertClone){this.animate(dragEl,cloneEl)}css(cloneEl,"display","");cloneHidden=false}}};function _globalDragOver(e){if(e.dataTransfer){e.dataTransfer.dropEffect="move"}e.cancelable&&e.preventDefault()}function _onMove(e,t,n,r,o,i,l,a){var s,c=e[expando],u=c.options.onMove,d;if(window.CustomEvent&&!IE11OrLess&&!Edge){s=new CustomEvent("move",{bubbles:true,cancelable:true})}else{s=document.createEvent("Event");s.initEvent("move",true,true)}s.to=t;s.from=e;s.dragged=n;s.draggedRect=r;s.related=o||t;s.relatedRect=i||getRect(t);s.willInsertAfter=a;s.originalEvent=l;e.dispatchEvent(s);if(u){d=u.call(c,s,l)}return d}function _disableDraggable(e){e.draggable=false}function _unsilent(){_silent=false}function _ghostIsFirst(e,t,n){var r=getRect(getChild(n.el,0,n.options,true));var o=10;return t?e.clientX<r.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-o||e.clientY<r.bottom&&e.clientX<r.left}function _ghostIsLast(e,t,n){var r=getRect(lastChild(n.el,n.options.draggable));var o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}function _getSwapDirection(e,t,n,r,o,i,l,a){var s=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=false;if(!l){if(a&&targetMoveDistance<c*o){if(!pastFirstInvertThresh&&(lastDirection===1?s>u+c*i/2:s<d-c*i/2)){pastFirstInvertThresh=true}if(!pastFirstInvertThresh){if(lastDirection===1?s<u+targetMoveDistance:s>d-targetMoveDistance){return-lastDirection}}else{f=true}}else{if(s>u+c*(1-o)/2&&s<d-c*(1-o)/2){return _getInsertDirection(t)}}}f=f||l;if(f){if(s<u+c*i/2||s>d-c*i/2){return s>u+c/2?1:-1}}return 0}function _getInsertDirection(e){if(index(dragEl)<index(e)){return 1}else{return-1}}function _generateId(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--){r+=t.charCodeAt(n)}return r.toString(36)}function _saveInputCheckedState(e){savedInputChecked.length=0;var t=e.getElementsByTagName("input");var n=t.length;while(n--){var r=t[n];r.checked&&savedInputChecked.push(r)}}function _nextTick(e){return setTimeout(e,0)}function _cancelNextTick(e){return clearTimeout(e)}if(documentExists){on(document,"touchmove",(function(e){if((Sortable.active||awaitingDragStarted)&&e.cancelable){e.preventDefault()}}))}Sortable.utils={on:on,off:off,css:css,find:find,is:function e(t,n){return!!closest(t,n,t,false)},extend:extend,throttle:throttle,closest:closest,toggleClass:toggleClass,clone:clone,index:index,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild:getChild};Sortable.get=function(e){return e[expando]};Sortable.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}if(t[0].constructor===Array)t=t[0];t.forEach((function(e){if(!e.prototype||!e.prototype.constructor){throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e))}if(e.utils)Sortable.utils=_objectSpread2(_objectSpread2({},Sortable.utils),e.utils);PluginManager.mount(e)}))};Sortable.create=function(e,t){return new Sortable(e,t)};Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=false,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function e(){this.defaults={scroll:true,forceAutoScrollFallback:false,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:true};for(var e in this){if(e.charAt(0)==="_"&&typeof this[e]==="function"){this[e]=this[e].bind(this)}}}e.prototype={dragStarted:function e(t){var n=t.originalEvent;if(this.sortable.nativeDraggable){on(document,"dragover",this._handleAutoScroll)}else{if(this.options.supportPointer){on(document,"pointermove",this._handleFallbackAutoScroll)}else if(n.touches){on(document,"touchmove",this._handleFallbackAutoScroll)}else{on(document,"mousemove",this._handleFallbackAutoScroll)}}},dragOverCompleted:function e(t){var n=t.originalEvent;if(!this.options.dragOverBubble&&!n.rootEl){this._handleAutoScroll(n)}},drop:function e(){if(this.sortable.nativeDraggable){off(document,"dragover",this._handleAutoScroll)}else{off(document,"pointermove",this._handleFallbackAutoScroll);off(document,"touchmove",this._handleFallbackAutoScroll);off(document,"mousemove",this._handleFallbackAutoScroll)}clearPointerElemChangedInterval();clearAutoScrolls();cancelThrottle()},nulling:function e(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null;autoScrolls.length=0},_handleFallbackAutoScroll:function e(t){this._handleAutoScroll(t,true)},_handleAutoScroll:function e(t,n){var r=this;var o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,l=document.elementFromPoint(o,i);touchEvt$1=t;if(n||this.options.forceAutoScrollFallback||Edge||IE11OrLess||Safari){autoScroll(t,this.options,l,n);var a=getParentAutoScrollElement(l,true);if(scrolling&&(!pointerElemChangedInterval||o!==lastAutoScrollX||i!==lastAutoScrollY)){pointerElemChangedInterval&&clearPointerElemChangedInterval();pointerElemChangedInterval=setInterval((function(){var e=getParentAutoScrollElement(document.elementFromPoint(o,i),true);if(e!==a){a=e;clearAutoScrolls()}autoScroll(t,r.options,e,n)}),10);lastAutoScrollX=o;lastAutoScrollY=i}}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(l,true)===getWindowScrollingElement()){clearAutoScrolls();return}autoScroll(t,this.options,getParentAutoScrollElement(l,false),false)}}};return _extends(e,{pluginName:"scroll",initializeByDefault:true})}function clearAutoScrolls(){autoScrolls.forEach((function(e){clearInterval(e.pid)}));autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle((function(e,t,n,r){if(!t.scroll)return;var o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,a=t.scrollSpeed,s=getWindowScrollingElement();var c=false,u;if(scrollRootEl!==n){scrollRootEl=n;clearAutoScrolls();scrollEl=t.scroll;u=t.scrollFn;if(scrollEl===true){scrollEl=getParentAutoScrollElement(n,true)}}var d=0;var f=scrollEl;do{var h=f,g=getRect(h),p=g.top,m=g.bottom,v=g.left,E=g.right,b=g.width,S=g.height,w=void 0,y=void 0,D=h.scrollWidth,_=h.scrollHeight,x=css(h),C=h.scrollLeft,I=h.scrollTop;if(h===s){w=b<D&&(x.overflowX==="auto"||x.overflowX==="scroll"||x.overflowX==="visible");y=S<_&&(x.overflowY==="auto"||x.overflowY==="scroll"||x.overflowY==="visible")}else{w=b<D&&(x.overflowX==="auto"||x.overflowX==="scroll");y=S<_&&(x.overflowY==="auto"||x.overflowY==="scroll")}var A=w&&(Math.abs(E-o)<=l&&C+b<D)-(Math.abs(v-o)<=l&&!!C);var T=y&&(Math.abs(m-i)<=l&&I+S<_)-(Math.abs(p-i)<=l&&!!I);if(!autoScrolls[d]){for(var O=0;O<=d;O++){if(!autoScrolls[O]){autoScrolls[O]={}}}}if(autoScrolls[d].vx!=A||autoScrolls[d].vy!=T||autoScrolls[d].el!==h){autoScrolls[d].el=h;autoScrolls[d].vx=A;autoScrolls[d].vy=T;clearInterval(autoScrolls[d].pid);if(A!=0||T!=0){c=true;autoScrolls[d].pid=setInterval(function(){if(r&&this.layer===0){Sortable.active._onTouchMove(touchEvt$1)}var t=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*a:0;var n=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*a:0;if(typeof u==="function"){if(u.call(Sortable.dragged.parentNode[expando],n,t,e,touchEvt$1,autoScrolls[this.layer].el)!=="continue"){return}}scrollBy(autoScrolls[this.layer].el,n,t)}.bind({layer:d}),24)}}d++}while(t.bubbleScroll&&f!==s&&(f=getParentAutoScrollElement(f,false)));scrolling=c}),30);var drop=function e(t){var n=t.originalEvent,r=t.putSortable,o=t.dragEl,i=t.activeSortable,l=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(!n)return;var c=r||i;a();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n;var d=document.elementFromPoint(u.clientX,u.clientY);s();if(c&&!c.el.contains(d)){l("spill");this.onSpill({dragEl:o,putSortable:r})}};function Revert(){}Revert.prototype={startIndex:null,dragStart:function e(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function e(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState();if(r){r.captureAnimationState()}var o=getChild(this.sortable.el,this.startIndex,this.options);if(o){this.sortable.el.insertBefore(n,o)}else{this.sortable.el.appendChild(n)}this.sortable.animateAll();if(r){r.animateAll()}},drop:drop};_extends(Revert,{pluginName:"revertOnSpill"});function Remove(){}Remove.prototype={onSpill:function e(t){var n=t.dragEl,r=t.putSortable;var o=r||this.sortable;o.captureAnimationState();n.parentNode&&n.parentNode.removeChild(n);o.animateAll()},drop:drop};_extends(Remove,{pluginName:"removeOnSpill"});var lastSwapEl;function SwapPlugin(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}e.prototype={dragStart:function e(t){var n=t.dragEl;lastSwapEl=n},dragOverValid:function e(t){var n=t.completed,r=t.target,o=t.onMove,i=t.activeSortable,l=t.changed,a=t.cancel;if(!i.options.swap)return;var s=this.sortable.el,c=this.options;if(r&&r!==s){var u=lastSwapEl;if(o(r)!==false){toggleClass(r,c.swapClass,true);lastSwapEl=r}else{lastSwapEl=null}if(u&&u!==lastSwapEl){toggleClass(u,c.swapClass,false)}}l();n(true);a()},drop:function e(t){var n=t.activeSortable,r=t.putSortable,o=t.dragEl;var i=r||this.sortable;var l=this.options;lastSwapEl&&toggleClass(lastSwapEl,l.swapClass,false);if(lastSwapEl&&(l.swap||r&&r.options.swap)){if(o!==lastSwapEl){i.captureAnimationState();if(i!==n)n.captureAnimationState();swapNodes(o,lastSwapEl);i.animateAll();if(i!==n)n.animateAll()}}},nulling:function e(){lastSwapEl=null}};return _extends(e,{pluginName:"swap",eventProperties:function e(){return{swapItem:lastSwapEl}}})}function swapNodes(e,t){var n=e.parentNode,r=t.parentNode,o,i;if(!n||!r||n.isEqualNode(t)||r.isEqualNode(e))return;o=index(e);i=index(t);if(n.isEqualNode(r)&&o<i){i++}n.insertBefore(t,n.children[o]);r.insertBefore(e,r.children[i])}var multiDragElements=[],multiDragClones=[],lastMultiDragSelect,multiDragSortable,initialFolding=false,folding=false,dragStarted=false,dragEl$1,clonesFromRect,clonesHidden;function MultiDragPlugin(){function e(e){for(var t in this){if(t.charAt(0)==="_"&&typeof this[t]==="function"){this[t]=this[t].bind(this)}}if(!e.options.avoidImplicitDeselect){if(e.options.supportPointer){on(document,"pointerup",this._deselectMultiDrag)}else{on(document,"mouseup",this._deselectMultiDrag);on(document,"touchend",this._deselectMultiDrag)}}on(document,"keydown",this._checkKeyDown);on(document,"keyup",this._checkKeyUp);this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:false,setData:function t(n,r){var o="";if(multiDragElements.length&&multiDragSortable===e){multiDragElements.forEach((function(e,t){o+=(!t?"":", ")+e.textContent}))}else{o=r.textContent}n.setData("Text",o)}}}e.prototype={multiDragKeyDown:false,isMultiDrag:false,delayStartGlobal:function e(t){var n=t.dragEl;dragEl$1=n},delayEnded:function e(){this.isMultiDrag=~multiDragElements.indexOf(dragEl$1)},setupClone:function e(t){var n=t.sortable,r=t.cancel;if(!this.isMultiDrag)return;for(var o=0;o<multiDragElements.length;o++){multiDragClones.push(clone(multiDragElements[o]));multiDragClones[o].sortableIndex=multiDragElements[o].sortableIndex;multiDragClones[o].draggable=false;multiDragClones[o].style["will-change"]="";toggleClass(multiDragClones[o],this.options.selectedClass,false);multiDragElements[o]===dragEl$1&&toggleClass(multiDragClones[o],this.options.chosenClass,false)}n._hideClone();r()},clone:function e(t){var n=t.sortable,r=t.rootEl,o=t.dispatchSortableEvent,i=t.cancel;if(!this.isMultiDrag)return;if(!this.options.removeCloneOnHide){if(multiDragElements.length&&multiDragSortable===n){insertMultiDragClones(true,r);o("clone");i()}}},showClone:function e(t){var n=t.cloneNowShown,r=t.rootEl,o=t.cancel;if(!this.isMultiDrag)return;insertMultiDragClones(false,r);multiDragClones.forEach((function(e){css(e,"display","")}));n();clonesHidden=false;o()},hideClone:function e(t){var n=this;var r=t.cloneNowHidden,o=t.cancel;if(!this.isMultiDrag)return;multiDragClones.forEach((function(e){css(e,"display","none");if(n.options.removeCloneOnHide&&e.parentNode){e.parentNode.removeChild(e)}}));r();clonesHidden=true;o()},dragStartGlobal:function e(t){if(!this.isMultiDrag&&multiDragSortable){multiDragSortable.multiDrag._deselectMultiDrag()}multiDragElements.forEach((function(e){e.sortableIndex=index(e)}));multiDragElements=multiDragElements.sort((function(e,t){return e.sortableIndex-t.sortableIndex}));dragStarted=true},dragStarted:function e(t){var n=this;var r=t.sortable;if(!this.isMultiDrag)return;if(this.options.sort){r.captureAnimationState();if(this.options.animation){multiDragElements.forEach((function(e){if(e===dragEl$1)return;css(e,"position","absolute")}));var o=getRect(dragEl$1,false,true,true);multiDragElements.forEach((function(e){if(e===dragEl$1)return;setRect(e,o)}));folding=true;initialFolding=true}}r.animateAll((function(){folding=false;initialFolding=false;if(n.options.animation){multiDragElements.forEach((function(e){unsetRect(e)}))}if(n.options.sort){removeMultiDragElements()}}))},dragOver:function e(t){var n=t.target,r=t.completed,o=t.cancel;if(folding&&~multiDragElements.indexOf(n)){r(false);o()}},revert:function e(t){var n=t.fromSortable,r=t.rootEl,o=t.sortable,i=t.dragRect;if(multiDragElements.length>1){multiDragElements.forEach((function(e){o.addAnimationState({target:e,rect:folding?getRect(e):i});unsetRect(e);e.fromRect=i;n.removeAnimationState(e)}));folding=false;insertMultiDragElements(!this.options.removeCloneOnHide,r)}},dragOverCompleted:function e(t){var n=t.sortable,r=t.isOwner,o=t.insertion,i=t.activeSortable,l=t.parentEl,a=t.putSortable;var s=this.options;if(o){if(r){i._hideClone()}initialFolding=false;if(s.animation&&multiDragElements.length>1&&(folding||!r&&!i.options.sort&&!a)){var c=getRect(dragEl$1,false,true,true);multiDragElements.forEach((function(e){if(e===dragEl$1)return;setRect(e,c);l.appendChild(e)}));folding=true}if(!r){if(!folding){removeMultiDragElements()}if(multiDragElements.length>1){var u=clonesHidden;i._showClone(n);if(i.options.animation&&!clonesHidden&&u){multiDragClones.forEach((function(e){i.addAnimationState({target:e,rect:clonesFromRect});e.fromRect=clonesFromRect;e.thisAnimationDuration=null}))}}else{i._showClone(n)}}}},dragOverAnimationCapture:function e(t){var n=t.dragRect,r=t.isOwner,o=t.activeSortable;multiDragElements.forEach((function(e){e.thisAnimationDuration=null}));if(o.options.animation&&!r&&o.multiDrag.isMultiDrag){clonesFromRect=_extends({},n);var i=matrix(dragEl$1,true);clonesFromRect.top-=i.f;clonesFromRect.left-=i.e}},dragOverAnimationComplete:function e(){if(folding){folding=false;removeMultiDragElements()}},drop:function e(t){var n=t.originalEvent,r=t.rootEl,o=t.parentEl,i=t.sortable,l=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable;var c=s||this.sortable;if(!n)return;var u=this.options,d=o.children;if(!dragStarted){if(u.multiDragKey&&!this.multiDragKeyDown){this._deselectMultiDrag()}toggleClass(dragEl$1,u.selectedClass,!~multiDragElements.indexOf(dragEl$1));if(!~multiDragElements.indexOf(dragEl$1)){multiDragElements.push(dragEl$1);dispatchEvent({sortable:i,rootEl:r,name:"select",targetEl:dragEl$1,originalEvent:n});if(n.shiftKey&&lastMultiDragSelect&&i.el.contains(lastMultiDragSelect)){var f=index(lastMultiDragSelect),h=index(dragEl$1);if(~f&&~h&&f!==h){var g,p;if(h>f){p=f;g=h}else{p=h;g=f+1}for(;p<g;p++){if(~multiDragElements.indexOf(d[p]))continue;toggleClass(d[p],u.selectedClass,true);multiDragElements.push(d[p]);dispatchEvent({sortable:i,rootEl:r,name:"select",targetEl:d[p],originalEvent:n})}}}else{lastMultiDragSelect=dragEl$1}multiDragSortable=c}else{multiDragElements.splice(multiDragElements.indexOf(dragEl$1),1);lastMultiDragSelect=null;dispatchEvent({sortable:i,rootEl:r,name:"deselect",targetEl:dragEl$1,originalEvent:n})}}if(dragStarted&&this.isMultiDrag){folding=false;if((o[expando].options.sort||o!==r)&&multiDragElements.length>1){var m=getRect(dragEl$1),v=index(dragEl$1,":not(."+this.options.selectedClass+")");if(!initialFolding&&u.animation)dragEl$1.thisAnimationDuration=null;c.captureAnimationState();if(!initialFolding){if(u.animation){dragEl$1.fromRect=m;multiDragElements.forEach((function(e){e.thisAnimationDuration=null;if(e!==dragEl$1){var t=folding?getRect(e):m;e.fromRect=t;c.addAnimationState({target:e,rect:t})}}))}removeMultiDragElements();multiDragElements.forEach((function(e){if(d[v]){o.insertBefore(e,d[v])}else{o.appendChild(e)}v++}));if(a===index(dragEl$1)){var E=false;multiDragElements.forEach((function(e){if(e.sortableIndex!==index(e)){E=true;return}}));if(E){l("update")}}}multiDragElements.forEach((function(e){unsetRect(e)}));c.animateAll()}multiDragSortable=c}if(r===o||s&&s.lastPutMode!=="clone"){multiDragClones.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function e(){this.isMultiDrag=dragStarted=false;multiDragClones.length=0},destroyGlobal:function e(){this._deselectMultiDrag();off(document,"pointerup",this._deselectMultiDrag);off(document,"mouseup",this._deselectMultiDrag);off(document,"touchend",this._deselectMultiDrag);off(document,"keydown",this._checkKeyDown);off(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function e(t){if(typeof dragStarted!=="undefined"&&dragStarted)return;if(multiDragSortable!==this.sortable)return;if(t&&closest(t.target,this.options.draggable,this.sortable.el,false))return;if(t&&t.button!==0)return;while(multiDragElements.length){var n=multiDragElements[0];toggleClass(n,this.options.selectedClass,false);multiDragElements.shift();dispatchEvent({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvent:t})}},_checkKeyDown:function e(t){if(t.key===this.options.multiDragKey){this.multiDragKeyDown=true}},_checkKeyUp:function e(t){if(t.key===this.options.multiDragKey){this.multiDragKeyDown=false}}};return _extends(e,{pluginName:"multiDrag",utils:{select:function e(t){var n=t.parentNode[expando];if(!n||!n.options.multiDrag||~multiDragElements.indexOf(t))return;if(multiDragSortable&&multiDragSortable!==n){multiDragSortable.multiDrag._deselectMultiDrag();multiDragSortable=n}toggleClass(t,n.options.selectedClass,true);multiDragElements.push(t)},deselect:function e(t){var n=t.parentNode[expando],r=multiDragElements.indexOf(t);if(!n||!n.options.multiDrag||!~r)return;toggleClass(t,n.options.selectedClass,false);multiDragElements.splice(r,1)}},eventProperties:function e(){var t=this;var n=[],r=[];multiDragElements.forEach((function(e){n.push({multiDragElement:e,index:e.sortableIndex});var o;if(folding&&e!==dragEl$1){o=-1}else if(folding){o=index(e,":not(."+t.options.selectedClass+")")}else{o=index(e)}r.push({multiDragElement:e,index:o})}));return{items:_toConsumableArray(multiDragElements),clones:[].concat(multiDragClones),oldIndicies:n,newIndicies:r}},optionListeners:{multiDragKey:function e(t){t=t.toLowerCase();if(t==="ctrl"){t="Control"}else if(t.length>1){t=t.charAt(0).toUpperCase()+t.substr(1)}return t}}})}function insertMultiDragElements(e,t){multiDragElements.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];if(o){t.insertBefore(n,o)}else{t.appendChild(n)}}))}function insertMultiDragClones(e,t){multiDragClones.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];if(o){t.insertBefore(n,o)}else{t.appendChild(n)}}))}function removeMultiDragElements(){multiDragElements.forEach((function(e){if(e===dragEl$1)return;e.parentNode&&e.parentNode.removeChild(e)}))}Sortable.mount(new AutoScrollPlugin);Sortable.mount(Remove,Revert);Sortable.mount(new SwapPlugin);Sortable.mount(new MultiDragPlugin);var stzhSortableCss='.sc-stzh-sortable-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-sortable-h{display:none}.sc-stzh-sortable-h *.sc-stzh-sortable,.sc-stzh-sortable-h *.sc-stzh-sortable::before,.sc-stzh-sortable-h *.sc-stzh-sortable::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-sortable-h{--unselected-item-opacity:0.6;--ghost-item-background:var(--stzh-color-grey5);--ghost-item-box-shadow:inset 0 0 0.5rem rgba(0, 0, 0, 0.32)}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item{position:relative;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:move;cursor:-webkit-grab;cursor:grab}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-chosen,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-selected{cursor:move;cursor:-webkit-grabbing;cursor:grabbing}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag{opacity:1 !important}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost{z-index:0}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost::after{z-index:99;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ghost-item-background);-webkit-box-shadow:var(--ghost-item-box-shadow);box-shadow:var(--ghost-item-box-shadow)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item{opacity:var(--unselected-item-opacity)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item.is-selected{opacity:1}.stzh-sortable__description.sc-stzh-sortable,.stzh-sortable__aria-live.sc-stzh-sortable{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}';var CLASS_ITEM="is-sortable-item";var CLASS_GHOST="is-ghost";var CLASS_SELECTED="is-selected";var CLASS_CHOSEN="is-chosen";var CLASS_DRAG="is-drag";var CLASS_PARENT_SELECTED="has-item-selected";var sortableCounter=0;var StzhSortable=function(){function e(e){var t=this;registerInstance(this,e);this.stzhUpdate=createEvent(this,"stzhUpdate",7);this.disabled=false;this.dataIdAttribute="data-id";this.container=function(){var e;return(e=t.containerElement)===null||e===void 0?void 0:e.firstElementChild};this.ghostClone=function(e){var t=cloneElement(e)[0];return t};this.filterElements=["[data-stzh-sortable-filtered]","[sortable-disabled]","button","a[href]","input","select","textarea","label","iframe","details","area","stzh-sortable"];this.selectedItem=null;this.resetItemOnBlur=false;this.init=function(){if(!t.getContainer()){return}Array.from(t.getContainer().children).forEach((function(e){e.classList.add(CLASS_ITEM);e.addEventListener("blur",t.onBlur);e.addEventListener("keydown",t.onKeydown);e.setAttribute("tabindex","0");e.setAttribute("aria-describedby","".concat(t.sortableId,"-description"))}))};this.updated=function(e){return __awaiter(t,void 0,void 0,(function(){var t,n,r,o,i;var l;return __generator(this,(function(a){switch(a.label){case 0:if(e){t=e.newIndex;n=e.oldIndex;r=e.item}else{t=this.getIndexOfSelectedItem();n=this.lastIndex;r=this.selectedItem}if(!(t!==n))return[3,2];i=(o=this.stzhUpdate).emit;l={component:"stzh-sortable"};return[4,this.toArray()];case 1:i.apply(o,[(l.data=a.sent(),l.item=r,l.newIndex=t,l.oldIndex=n,l)]);a.label=2;case 2:return[2]}}))}))};this.onKeydown=function(e){var n=e.currentTarget;var r=e.target;if(!t.getContainer()||t.disabled){return}var o=r.matches(t._filterElements.join(", "));if(e.key===" "&&!o){e.preventDefault();if(!t.selectedItem){t.selectedItem=n;t.selectedItem.parentElement.classList.add(CLASS_PARENT_SELECTED);t.selectedItem.classList.add(CLASS_SELECTED);t.lastIndex=t.getIndexOfSelectedItem();t.resetItemOnBlur=true;t.updateAriaLive(t.localization.started)}else{t.resetItemOnBlur=false;t.updateAriaLive(t.localization.dropped);t.updated();t.resetActiveItem()}}else if(e.key==="Tab"&&t.selectedItem&&t.selectedItem===e.currentTarget){e.preventDefault()}else if(e.key==="Escape"&&t.selectedItem){t.resetItemOnBlur=false;t.updateAriaLive(t.localization.canceled);t.resetActiveItem(true)}else if(e.key==="ArrowUp"){if(t.selectedItem){t.moveItem(t.selectedItem,"up")}else{t.focusItem(n.previousElementSibling)}}else if(e.key==="ArrowDown"){if(t.selectedItem){t.moveItem(t.selectedItem,"down")}else{t.focusItem(n.nextElementSibling)}}};this.onBlur=function(){if(t.resetItemOnBlur){t.resetItemOnBlur=false;t.updateAriaLive(t.localization.dropped);t.updated();t.resetActiveItem()}}}e.prototype.toArray=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.sortable.toArray()]}))}))};e.prototype.sort=function(e,t){if(t===void 0){t=true}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,this.sortable.sort(e,t)]}))}))};e.prototype.moveItem=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){if(!e||!e.nextElementSibling&&t==="down"||!e.previousElementSibling&&t==="up"){return[2]}this.resetItemOnBlur=false;if(t==="up"){e.previousElementSibling.before(e)}else if(t==="down"){e.nextElementSibling.after(e)}this.updateAriaLive(this.localization.moved,e);this.focusItem(e);this.resetItemOnBlur=true;return[2]}))}))};e.prototype.filterElementsWatcher=function(e){if(typeof e==="string"){this._filterElements=JSON.parse(e)}else{this._filterElements=e}};e.prototype.getContainer=function(){return typeof this.container==="function"?this.container():this.container};e.prototype.updateAriaLive=function(e,t){if(t===void 0){t=this.selectedItem}if(!this.getContainer()){return}if(t){var n=t.getAttribute("aria-label")||"";var r=this.getIndexOfSelectedItem(t);e=e.replace("{title}",n).replace("{current}",(r+1).toString())}var o=this.getContainer().children.length;e=e.replace("{total}",o.toString());this.ariaLiveElement.textContent=e};e.prototype.getIndexOfSelectedItem=function(e){if(e===void 0){e=this.selectedItem}if(e){return Array.from(e.parentElement.children).indexOf(e)}};e.prototype.resetActiveItem=function(e){if(e===void 0){e=false}if(!this.selectedItem){return}var t=this.getIndexOfSelectedItem();var n=this.selectedItem.parentElement;if(e&&this.lastIndex!==t){if(this.lastIndex>t){n.children[this.lastIndex].after(this.selectedItem)}else{n.children[this.lastIndex].before(this.selectedItem)}this.selectedItem.focus()}n.classList.remove(CLASS_PARENT_SELECTED);this.selectedItem.classList.remove(CLASS_SELECTED);this.selectedItem=null;this.lastIndex=null};e.prototype.focusItem=function(e){if(!e){return}e.focus();var t=document.querySelector("stzh-flyingfocus");if(t){t.reposition()}scrollIntoView(e,{scrollMode:"if-needed",block:"nearest",inline:"nearest"})};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:this.sortableId="stzh-sortable-".concat(sortableCounter++);this.filterElementsWatcher(this.filterElements);if(!!this.localization)return[3,2];e=this;return[4,fetchTranslations(this.element,"sortable")];case 1:e.localization=t.sent();t.label=2;case 2:return[2]}}))}))};e.prototype.componentWillUpdate=function(){if(this.sortable){this.sortable.destroy();this.sortable=null}};e.prototype.componentDidRender=function(){if(this.sortable){return}this.sortable=new Sortable(this.getContainer(),{animation:150,filter:this._filterElements.join(", "),ghostClass:CLASS_GHOST,chosenClass:CLASS_CHOSEN,dragClass:CLASS_DRAG,dataIdAttr:this.dataIdAttribute,preventOnFilter:false,forceFallback:true,delay:200,delayOnTouchOnly:true,disabled:this.disabled,ghostClone:this.ghostClone,onUpdate:this.updated})};e.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};e.prototype.disconnectedCallback=function(){this.observer.disconnect();if(this.sortable){this.sortable.destroy();this.sortable=null}};e.prototype.render=function(){var e=this;var t={"stzh-sortable":true};return h(Host,null,h("div",{class:t},h("div",{id:"".concat(this.sortableId,"-description"),class:"stzh-sortable__description"},this.localization.description),h("div",{ref:function(t){return e.ariaLiveElement=t},"aria-live":"assertive",class:"stzh-sortable__aria-live"}),h("div",{ref:function(t){return e.containerElement=t},class:"stzh-sortable__container"},h("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{filterElements:["filterElementsWatcher"]}},enumerable:false,configurable:true});return e}();StzhSortable.style=stzhSortableCss;export{StzhSortable as stzh_sortable};