@aquera/nile-elements 0.0.110 → 0.0.112

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 (447) hide show
  1. package/README.md +11 -0
  2. package/demo/filenames.txt +1 -1
  3. package/demo/variables.css +2 -0
  4. package/dist/{angular-ts-7f0ea228.cjs.js → angular-ts-f3444056.cjs.js} +2 -2
  5. package/dist/{angular-ts-7f0ea228.cjs.js.map → angular-ts-f3444056.cjs.js.map} +1 -1
  6. package/dist/{github-dark-default-2257ba5e.cjs.js → github-dark-default-450c7c01.cjs.js} +2 -2
  7. package/dist/{github-dark-default-2257ba5e.cjs.js.map → github-dark-default-450c7c01.cjs.js.map} +1 -1
  8. package/dist/{github-dark-default-5814263b.esm.js → github-dark-default-c8549d91.esm.js} +1 -1
  9. package/dist/{github-dark-dimmed-b7e46b3b.esm.js → github-dark-dimmed-2d99017f.esm.js} +1 -1
  10. package/dist/{github-dark-dimmed-5703df55.cjs.js → github-dark-dimmed-ef1406bd.cjs.js} +2 -2
  11. package/dist/{github-dark-dimmed-5703df55.cjs.js.map → github-dark-dimmed-ef1406bd.cjs.js.map} +1 -1
  12. package/dist/{github-dark-high-contrast-af204903.cjs.js → github-dark-high-contrast-60f6edfa.cjs.js} +2 -2
  13. package/dist/{github-dark-high-contrast-af204903.cjs.js.map → github-dark-high-contrast-60f6edfa.cjs.js.map} +1 -1
  14. package/dist/{github-dark-high-contrast-917c210a.esm.js → github-dark-high-contrast-eb093cb4.esm.js} +1 -1
  15. package/dist/{github-light-default-a8b27e0c.esm.js → github-light-default-97194ef6.esm.js} +1 -1
  16. package/dist/{github-light-default-f34de887.cjs.js → github-light-default-cf60a983.cjs.js} +2 -2
  17. package/dist/{github-light-default-f34de887.cjs.js.map → github-light-default-cf60a983.cjs.js.map} +1 -1
  18. package/dist/{github-light-high-contrast-17c40b3b.esm.js → github-light-high-contrast-0ddc875a.esm.js} +1 -1
  19. package/dist/{github-light-high-contrast-ef2e56e6.cjs.js → github-light-high-contrast-ab424680.cjs.js} +2 -2
  20. package/dist/{github-light-high-contrast-ef2e56e6.cjs.js.map → github-light-high-contrast-ab424680.cjs.js.map} +1 -1
  21. package/dist/hy-431f15f8.cjs.js +2 -0
  22. package/dist/hy-431f15f8.cjs.js.map +1 -0
  23. package/dist/hy-5e43d6c1.esm.js +1 -0
  24. package/dist/index.cjs.js +1 -1
  25. package/dist/index.esm.js +1 -1
  26. package/dist/{mermaid-7f9972ac.cjs.js → mermaid-76489bb0.cjs.js} +2 -2
  27. package/dist/{mermaid-7f9972ac.cjs.js.map → mermaid-76489bb0.cjs.js.map} +1 -1
  28. package/dist/{mermaid-94e78bd4.esm.js → mermaid-ca28664b.esm.js} +1 -1
  29. package/dist/mipsasm-535432b4.cjs.js +2 -0
  30. package/dist/mipsasm-535432b4.cjs.js.map +1 -0
  31. package/dist/mipsasm-57581c0d.esm.js +1 -0
  32. package/dist/nile-accordion/nile-accordion.cjs.js +1 -1
  33. package/dist/nile-accordion/nile-accordion.cjs.js.map +1 -1
  34. package/dist/nile-accordion/nile-accordion.esm.js +1 -1
  35. package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -1
  36. package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
  37. package/dist/nile-auto-complete/nile-auto-complete.esm.js +1 -1
  38. package/dist/nile-avatar/nile-avatar.cjs.js +1 -1
  39. package/dist/nile-avatar/nile-avatar.cjs.js.map +1 -1
  40. package/dist/nile-avatar/nile-avatar.esm.js +1 -1
  41. package/dist/nile-badge/index.cjs.js +1 -1
  42. package/dist/nile-badge/index.esm.js +1 -1
  43. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  44. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  45. package/dist/nile-badge/nile-badge.esm.js +1 -1
  46. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  47. package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -1
  48. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  49. package/dist/nile-breadcrumb/nile-breadcrumb.cjs.js +1 -1
  50. package/dist/nile-breadcrumb/nile-breadcrumb.cjs.js.map +1 -1
  51. package/dist/nile-breadcrumb/nile-breadcrumb.esm.js +1 -1
  52. package/dist/nile-breadcrumb-item/nile-breadcrumb-item.cjs.js +1 -1
  53. package/dist/nile-breadcrumb-item/nile-breadcrumb-item.cjs.js.map +1 -1
  54. package/dist/nile-breadcrumb-item/nile-breadcrumb-item.esm.js +2 -2
  55. package/dist/nile-button/index.cjs.js +1 -1
  56. package/dist/nile-button/index.esm.js +1 -1
  57. package/dist/nile-button/nile-button.cjs.js +1 -1
  58. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  59. package/dist/nile-button/nile-button.esm.js +1 -1
  60. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  61. package/dist/nile-button/nile-button.test.cjs.js.map +1 -1
  62. package/dist/nile-button/nile-button.test.esm.js +1 -1
  63. package/dist/nile-button-toggle/nile-button-toggle.cjs.js +1 -1
  64. package/dist/nile-button-toggle/nile-button-toggle.cjs.js.map +1 -1
  65. package/dist/nile-button-toggle/nile-button-toggle.esm.js +1 -1
  66. package/dist/nile-button-toggle-group/nile-button-toggle-group.cjs.js +1 -1
  67. package/dist/nile-button-toggle-group/nile-button-toggle-group.cjs.js.map +1 -1
  68. package/dist/nile-button-toggle-group/nile-button-toggle-group.esm.js +1 -1
  69. package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
  70. package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
  71. package/dist/nile-calendar/nile-calendar.esm.js +7 -7
  72. package/dist/nile-card/nile-card.cjs.js +1 -1
  73. package/dist/nile-card/nile-card.cjs.js.map +1 -1
  74. package/dist/nile-card/nile-card.esm.js +1 -1
  75. package/dist/nile-checkbox/nile-checkbox.cjs.js +1 -1
  76. package/dist/nile-checkbox/nile-checkbox.cjs.js.map +1 -1
  77. package/dist/nile-checkbox/nile-checkbox.esm.js +3 -3
  78. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  79. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  80. package/dist/nile-chip/nile-chip.esm.js +1 -1
  81. package/dist/nile-code-editor/nile-code-editor.cjs.js +1 -1
  82. package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
  83. package/dist/nile-code-editor/nile-code-editor.esm.js +1 -1
  84. package/dist/nile-content-editor/nile-content-editor.cjs.js +1 -1
  85. package/dist/nile-content-editor/nile-content-editor.cjs.js.map +1 -1
  86. package/dist/nile-content-editor/nile-content-editor.esm.js +5 -5
  87. package/dist/nile-date-picker/nile-date-picker.cjs.js +1 -1
  88. package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -1
  89. package/dist/nile-date-picker/nile-date-picker.esm.js +3 -5
  90. package/dist/nile-dialog/index.cjs.js +1 -1
  91. package/dist/nile-dialog/index.esm.js +1 -1
  92. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  93. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  94. package/dist/nile-dialog/nile-dialog.esm.js +8 -6
  95. package/dist/nile-drawer/index.cjs.js +1 -1
  96. package/dist/nile-drawer/index.esm.js +1 -1
  97. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  98. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  99. package/dist/nile-drawer/nile-drawer.esm.js +1 -1
  100. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  101. package/dist/nile-drawer/nile-drawer.test.cjs.js.map +1 -1
  102. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  103. package/dist/nile-empty-state/nile-empty-state.cjs.js +1 -1
  104. package/dist/nile-empty-state/nile-empty-state.cjs.js.map +1 -1
  105. package/dist/nile-empty-state/nile-empty-state.esm.js +1 -1
  106. package/dist/nile-highlighter/index.cjs.js +1 -1
  107. package/dist/nile-highlighter/index.esm.js +1 -1
  108. package/dist/nile-highlighter/nile-highlighter.cjs.js +1 -1
  109. package/dist/nile-highlighter/nile-highlighter.cjs.js.map +1 -1
  110. package/dist/nile-highlighter/nile-highlighter.esm.js +2 -2
  111. package/dist/nile-highlighter/theme-list.cjs.js +1 -1
  112. package/dist/nile-highlighter/theme-list.cjs.js.map +1 -1
  113. package/dist/nile-highlighter/theme-list.esm.js +1 -1
  114. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  115. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  116. package/dist/nile-icon/icons/svg/insert-at-cursor.cjs.js +2 -0
  117. package/dist/nile-icon/icons/svg/insert-at-cursor.cjs.js.map +1 -0
  118. package/dist/nile-icon/icons/svg/insert-at-cursor.esm.js +1 -0
  119. package/dist/nile-icon/icons/svg/warning-01.cjs.js +2 -0
  120. package/dist/nile-icon/icons/svg/warning-01.cjs.js.map +1 -0
  121. package/dist/nile-icon/icons/svg/warning-01.esm.js +1 -0
  122. package/dist/nile-icon/index.cjs.js +1 -1
  123. package/dist/nile-icon/index.cjs.js.map +1 -1
  124. package/dist/nile-icon/index.esm.js +2 -2
  125. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  126. package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
  127. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  128. package/dist/nile-icon-button/index.cjs.js +1 -1
  129. package/dist/nile-icon-button/index.esm.js +1 -1
  130. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  131. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  132. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  133. package/dist/nile-input/index.cjs.js +1 -1
  134. package/dist/nile-input/index.esm.js +1 -1
  135. package/dist/nile-input/nile-input.cjs.js +1 -1
  136. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  137. package/dist/nile-input/nile-input.esm.js +1 -1
  138. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  139. package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
  140. package/dist/nile-input/nile-input.test.esm.js +1 -1
  141. package/dist/nile-link/index.cjs.js +1 -1
  142. package/dist/nile-link/index.esm.js +1 -1
  143. package/dist/nile-link/nile-link.cjs.js +1 -1
  144. package/dist/nile-link/nile-link.cjs.js.map +1 -1
  145. package/dist/nile-link/nile-link.esm.js +4 -4
  146. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  147. package/dist/nile-link/nile-link.test.cjs.js.map +1 -1
  148. package/dist/nile-link/nile-link.test.esm.js +1 -1
  149. package/dist/nile-list/nile-list.cjs.js +1 -1
  150. package/dist/nile-list/nile-list.cjs.js.map +1 -1
  151. package/dist/nile-list/nile-list.esm.js +1 -1
  152. package/dist/nile-list-item/nile-list-item.cjs.js +1 -1
  153. package/dist/nile-list-item/nile-list-item.cjs.js.map +1 -1
  154. package/dist/nile-list-item/nile-list-item.esm.js +1 -1
  155. package/dist/nile-menu/nile-menu.cjs.js +1 -1
  156. package/dist/nile-menu/nile-menu.cjs.js.map +1 -1
  157. package/dist/nile-menu/nile-menu.esm.js +1 -1
  158. package/dist/nile-menu-item/index.cjs.js +1 -1
  159. package/dist/nile-menu-item/index.esm.js +1 -1
  160. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  161. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  162. package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
  163. package/dist/nile-option/index.cjs.js +1 -1
  164. package/dist/nile-option/index.esm.js +1 -1
  165. package/dist/nile-option/nile-option.cjs.js +1 -1
  166. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  167. package/dist/nile-option/nile-option.esm.js +1 -1
  168. package/dist/nile-popover/nile-popover.cjs.js +1 -1
  169. package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
  170. package/dist/nile-popover/nile-popover.esm.js +2 -2
  171. package/dist/nile-popup/nile-popup.cjs.js +1 -1
  172. package/dist/nile-popup/nile-popup.cjs.js.map +1 -1
  173. package/dist/nile-popup/nile-popup.esm.js +1 -1
  174. package/dist/nile-radio/nile-radio.cjs.js +1 -1
  175. package/dist/nile-radio/nile-radio.cjs.js.map +1 -1
  176. package/dist/nile-radio/nile-radio.esm.js +4 -4
  177. package/dist/nile-radio-group/nile-radio-group.cjs.js +1 -1
  178. package/dist/nile-radio-group/nile-radio-group.cjs.js.map +1 -1
  179. package/dist/nile-radio-group/nile-radio-group.esm.js +1 -1
  180. package/dist/nile-select/index.cjs.js +1 -1
  181. package/dist/nile-select/index.esm.js +1 -1
  182. package/dist/nile-select/nile-select.cjs.js +1 -1
  183. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  184. package/dist/nile-select/nile-select.esm.js +1 -1
  185. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js +1 -1
  186. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js.map +1 -1
  187. package/dist/nile-slide-toggle/nile-slide-toggle.esm.js +1 -1
  188. package/dist/nile-split-panel/nile-split-panel.cjs.js +1 -1
  189. package/dist/nile-split-panel/nile-split-panel.cjs.js.map +1 -1
  190. package/dist/nile-split-panel/nile-split-panel.esm.js +1 -1
  191. package/dist/nile-stepper/nile-stepper.cjs.js +1 -1
  192. package/dist/nile-stepper/nile-stepper.cjs.js.map +1 -1
  193. package/dist/nile-stepper/nile-stepper.esm.js +1 -1
  194. package/dist/nile-tab/index.cjs.js +1 -1
  195. package/dist/nile-tab/index.esm.js +1 -1
  196. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  197. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  198. package/dist/nile-tab/nile-tab.esm.js +1 -1
  199. package/dist/nile-tab-group/index.cjs.js +1 -1
  200. package/dist/nile-tab-group/index.esm.js +1 -1
  201. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  202. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  203. package/dist/nile-tab-group/nile-tab-group.esm.js +2 -2
  204. package/dist/nile-table-body/nile-table-body.cjs.js +1 -1
  205. package/dist/nile-table-body/nile-table-body.cjs.js.map +1 -1
  206. package/dist/nile-table-body/nile-table-body.esm.js +1 -1
  207. package/dist/nile-table-header-item/nile-table-header-item.cjs.js +1 -1
  208. package/dist/nile-table-header-item/nile-table-header-item.cjs.js.map +1 -1
  209. package/dist/nile-table-header-item/nile-table-header-item.esm.js +1 -1
  210. package/dist/nile-tag/index.cjs.js +1 -1
  211. package/dist/nile-tag/index.esm.js +1 -1
  212. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  213. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  214. package/dist/nile-tag/nile-tag.esm.js +1 -1
  215. package/dist/nile-textarea/nile-textarea.cjs.js +1 -1
  216. package/dist/nile-textarea/nile-textarea.cjs.js.map +1 -1
  217. package/dist/nile-textarea/nile-textarea.esm.js +1 -1
  218. package/dist/nile-toast/index.cjs.js +1 -1
  219. package/dist/nile-toast/index.esm.js +1 -1
  220. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  221. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  222. package/dist/nile-toast/nile-toast.esm.js +1 -1
  223. package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
  224. package/dist/nile-tooltip/nile-tooltip.cjs.js.map +1 -1
  225. package/dist/nile-tooltip/nile-tooltip.esm.js +1 -1
  226. package/dist/nile-tree/index.cjs.js +1 -1
  227. package/dist/nile-tree/index.esm.js +1 -1
  228. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  229. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  230. package/dist/nile-tree/nile-tree.esm.js +1 -1
  231. package/dist/nile-tree-item/index.cjs.js +1 -1
  232. package/dist/nile-tree-item/index.esm.js +1 -1
  233. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  234. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  235. package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
  236. package/dist/sass-16055185.esm.js +1 -0
  237. package/dist/sass-4bfa8a08.cjs.js +2 -0
  238. package/dist/sass-4bfa8a08.cjs.js.map +1 -0
  239. package/dist/{sparql-f0d04e05.cjs.js → sparql-ebe1ddf3.cjs.js} +2 -2
  240. package/dist/{sparql-f0d04e05.cjs.js.map → sparql-ebe1ddf3.cjs.js.map} +1 -1
  241. package/dist/src/nile-accordion/nile-accordion.d.ts +1 -0
  242. package/dist/src/nile-accordion/nile-accordion.js +1 -0
  243. package/dist/src/nile-accordion/nile-accordion.js.map +1 -1
  244. package/dist/src/nile-auto-complete/nile-auto-complete.d.ts +1 -0
  245. package/dist/src/nile-auto-complete/nile-auto-complete.js +1 -0
  246. package/dist/src/nile-auto-complete/nile-auto-complete.js.map +1 -1
  247. package/dist/src/nile-avatar/nile-avatar.d.ts +1 -0
  248. package/dist/src/nile-avatar/nile-avatar.js +1 -0
  249. package/dist/src/nile-avatar/nile-avatar.js.map +1 -1
  250. package/dist/src/nile-badge/nile-badge.d.ts +1 -0
  251. package/dist/src/nile-badge/nile-badge.js +1 -0
  252. package/dist/src/nile-badge/nile-badge.js.map +1 -1
  253. package/dist/src/nile-breadcrumb/nile-breadcrumb.d.ts +1 -0
  254. package/dist/src/nile-breadcrumb/nile-breadcrumb.js +5 -0
  255. package/dist/src/nile-breadcrumb/nile-breadcrumb.js.map +1 -1
  256. package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.d.ts +1 -0
  257. package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.js +1 -0
  258. package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.js.map +1 -1
  259. package/dist/src/nile-button/nile-button.d.ts +1 -0
  260. package/dist/src/nile-button/nile-button.js +1 -0
  261. package/dist/src/nile-button/nile-button.js.map +1 -1
  262. package/dist/src/nile-button-toggle/nile-button-toggle.d.ts +1 -0
  263. package/dist/src/nile-button-toggle/nile-button-toggle.js +1 -0
  264. package/dist/src/nile-button-toggle/nile-button-toggle.js.map +1 -1
  265. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.d.ts +1 -0
  266. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.js +1 -0
  267. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.js.map +1 -1
  268. package/dist/src/nile-calendar/nile-calendar.d.ts +5 -5
  269. package/dist/src/nile-calendar/nile-calendar.js +8 -17
  270. package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
  271. package/dist/src/nile-card/nile-card.d.ts +1 -0
  272. package/dist/src/nile-card/nile-card.js +1 -0
  273. package/dist/src/nile-card/nile-card.js.map +1 -1
  274. package/dist/src/nile-checkbox/nile-checkbox.d.ts +1 -0
  275. package/dist/src/nile-checkbox/nile-checkbox.js +3 -7
  276. package/dist/src/nile-checkbox/nile-checkbox.js.map +1 -1
  277. package/dist/src/nile-chip/nile-chip.d.ts +1 -0
  278. package/dist/src/nile-chip/nile-chip.js +1 -0
  279. package/dist/src/nile-chip/nile-chip.js.map +1 -1
  280. package/dist/src/nile-code-editor/nile-code-editor.d.ts +1 -0
  281. package/dist/src/nile-code-editor/nile-code-editor.js +1 -0
  282. package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
  283. package/dist/src/nile-content-editor/nile-content-editor.d.ts +1 -0
  284. package/dist/src/nile-content-editor/nile-content-editor.js +1 -0
  285. package/dist/src/nile-content-editor/nile-content-editor.js.map +1 -1
  286. package/dist/src/nile-date-picker/nile-date-picker.d.ts +1 -0
  287. package/dist/src/nile-date-picker/nile-date-picker.js +2 -4
  288. package/dist/src/nile-date-picker/nile-date-picker.js.map +1 -1
  289. package/dist/src/nile-dialog/nile-dialog.d.ts +1 -0
  290. package/dist/src/nile-dialog/nile-dialog.js +10 -7
  291. package/dist/src/nile-dialog/nile-dialog.js.map +1 -1
  292. package/dist/src/nile-drawer/nile-drawer.d.ts +1 -0
  293. package/dist/src/nile-drawer/nile-drawer.js +1 -0
  294. package/dist/src/nile-drawer/nile-drawer.js.map +1 -1
  295. package/dist/src/nile-empty-state/nile-empty-state.d.ts +1 -0
  296. package/dist/src/nile-empty-state/nile-empty-state.js +1 -0
  297. package/dist/src/nile-empty-state/nile-empty-state.js.map +1 -1
  298. package/dist/src/nile-highlighter/nile-highlighter.d.ts +2 -1
  299. package/dist/src/nile-highlighter/nile-highlighter.js +16 -11
  300. package/dist/src/nile-highlighter/nile-highlighter.js.map +1 -1
  301. package/dist/src/nile-icon/icons/svg/index.d.ts +2 -0
  302. package/dist/src/nile-icon/icons/svg/index.js +2 -0
  303. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  304. package/dist/src/nile-icon/icons/svg/insert-at-cursor.d.ts +5 -0
  305. package/dist/src/nile-icon/icons/svg/insert-at-cursor.js +5 -0
  306. package/dist/src/nile-icon/icons/svg/insert-at-cursor.js.map +1 -0
  307. package/dist/src/nile-icon/icons/svg/warning-01.d.ts +5 -0
  308. package/dist/src/nile-icon/icons/svg/warning-01.js +5 -0
  309. package/dist/src/nile-icon/icons/svg/warning-01.js.map +1 -0
  310. package/dist/src/nile-icon-button/nile-icon-button.d.ts +1 -0
  311. package/dist/src/nile-icon-button/nile-icon-button.js +1 -0
  312. package/dist/src/nile-icon-button/nile-icon-button.js.map +1 -1
  313. package/dist/src/nile-input/nile-input.d.ts +1 -0
  314. package/dist/src/nile-input/nile-input.js +1 -0
  315. package/dist/src/nile-input/nile-input.js.map +1 -1
  316. package/dist/src/nile-link/nile-link.d.ts +1 -0
  317. package/dist/src/nile-link/nile-link.js +2 -2
  318. package/dist/src/nile-link/nile-link.js.map +1 -1
  319. package/dist/src/nile-list/nile-list.d.ts +1 -0
  320. package/dist/src/nile-list/nile-list.js +5 -0
  321. package/dist/src/nile-list/nile-list.js.map +1 -1
  322. package/dist/src/nile-list-item/nile-list-item.d.ts +1 -0
  323. package/dist/src/nile-list-item/nile-list-item.js +1 -0
  324. package/dist/src/nile-list-item/nile-list-item.js.map +1 -1
  325. package/dist/src/nile-menu/nile-menu.d.ts +1 -0
  326. package/dist/src/nile-menu/nile-menu.js +1 -0
  327. package/dist/src/nile-menu/nile-menu.js.map +1 -1
  328. package/dist/src/nile-menu-item/nile-menu-item.d.ts +2 -0
  329. package/dist/src/nile-menu-item/nile-menu-item.js +3 -5
  330. package/dist/src/nile-menu-item/nile-menu-item.js.map +1 -1
  331. package/dist/src/nile-option/nile-option.d.ts +2 -0
  332. package/dist/src/nile-option/nile-option.js +3 -5
  333. package/dist/src/nile-option/nile-option.js.map +1 -1
  334. package/dist/src/nile-popover/nile-popover.d.ts +1 -0
  335. package/dist/src/nile-popover/nile-popover.js +3 -2
  336. package/dist/src/nile-popover/nile-popover.js.map +1 -1
  337. package/dist/src/nile-popup/nile-popup.d.ts +2 -0
  338. package/dist/src/nile-popup/nile-popup.js +2 -0
  339. package/dist/src/nile-popup/nile-popup.js.map +1 -1
  340. package/dist/src/nile-radio/nile-radio.js +2 -8
  341. package/dist/src/nile-radio/nile-radio.js.map +1 -1
  342. package/dist/src/nile-radio-group/nile-radio-group.d.ts +1 -0
  343. package/dist/src/nile-radio-group/nile-radio-group.js +1 -0
  344. package/dist/src/nile-radio-group/nile-radio-group.js.map +1 -1
  345. package/dist/src/nile-select/nile-select.d.ts +1 -0
  346. package/dist/src/nile-select/nile-select.js +1 -0
  347. package/dist/src/nile-select/nile-select.js.map +1 -1
  348. package/dist/src/nile-slide-toggle/nile-slide-toggle.d.ts +1 -0
  349. package/dist/src/nile-slide-toggle/nile-slide-toggle.js +2 -0
  350. package/dist/src/nile-slide-toggle/nile-slide-toggle.js.map +1 -1
  351. package/dist/src/nile-split-panel/nile-split-panel.d.ts +1 -0
  352. package/dist/src/nile-split-panel/nile-split-panel.js +1 -0
  353. package/dist/src/nile-split-panel/nile-split-panel.js.map +1 -1
  354. package/dist/src/nile-stepper/nile-stepper.d.ts +1 -0
  355. package/dist/src/nile-stepper/nile-stepper.js +1 -0
  356. package/dist/src/nile-stepper/nile-stepper.js.map +1 -1
  357. package/dist/src/nile-tab/nile-tab.d.ts +1 -0
  358. package/dist/src/nile-tab/nile-tab.js +3 -2
  359. package/dist/src/nile-tab/nile-tab.js.map +1 -1
  360. package/dist/src/nile-tab-group/nile-tab-group.d.ts +1 -0
  361. package/dist/src/nile-tab-group/nile-tab-group.js +3 -2
  362. package/dist/src/nile-tab-group/nile-tab-group.js.map +1 -1
  363. package/dist/src/nile-table-body/nile-table-body.d.ts +1 -0
  364. package/dist/src/nile-table-body/nile-table-body.js +1 -0
  365. package/dist/src/nile-table-body/nile-table-body.js.map +1 -1
  366. package/dist/src/nile-table-header-item/nile-table-header-item.d.ts +1 -0
  367. package/dist/src/nile-table-header-item/nile-table-header-item.js +1 -0
  368. package/dist/src/nile-table-header-item/nile-table-header-item.js.map +1 -1
  369. package/dist/src/nile-tag/nile-tag.d.ts +1 -0
  370. package/dist/src/nile-tag/nile-tag.js +1 -0
  371. package/dist/src/nile-tag/nile-tag.js.map +1 -1
  372. package/dist/src/nile-textarea/nile-textarea.d.ts +1 -0
  373. package/dist/src/nile-textarea/nile-textarea.js +1 -0
  374. package/dist/src/nile-textarea/nile-textarea.js.map +1 -1
  375. package/dist/src/nile-toast/nile-toast.d.ts +1 -0
  376. package/dist/src/nile-toast/nile-toast.js +1 -0
  377. package/dist/src/nile-toast/nile-toast.js.map +1 -1
  378. package/dist/src/nile-tooltip/nile-tooltip.d.ts +1 -0
  379. package/dist/src/nile-tooltip/nile-tooltip.js +1 -0
  380. package/dist/src/nile-tooltip/nile-tooltip.js.map +1 -1
  381. package/dist/src/nile-tree/nile-tree.d.ts +1 -0
  382. package/dist/src/nile-tree/nile-tree.js +1 -0
  383. package/dist/src/nile-tree/nile-tree.js.map +1 -1
  384. package/dist/src/nile-tree-item/nile-tree-item.d.ts +1 -0
  385. package/dist/src/nile-tree-item/nile-tree-item.js +1 -0
  386. package/dist/src/nile-tree-item/nile-tree-item.js.map +1 -1
  387. package/dist/tsconfig.tsbuildinfo +1 -1
  388. package/dist/{twig-4e6df20b.cjs.js → twig-2431875e.cjs.js} +2 -2
  389. package/dist/{twig-4e6df20b.cjs.js.map → twig-2431875e.cjs.js.map} +1 -1
  390. package/dist/{vue-html-4845664e.cjs.js → vue-html-36dd3960.cjs.js} +2 -2
  391. package/dist/{vue-html-4845664e.cjs.js.map → vue-html-36dd3960.cjs.js.map} +1 -1
  392. package/package.json +1 -1
  393. package/src/nile-accordion/nile-accordion.ts +1 -0
  394. package/src/nile-auto-complete/nile-auto-complete.ts +3 -1
  395. package/src/nile-avatar/nile-avatar.ts +2 -0
  396. package/src/nile-badge/nile-badge.ts +2 -0
  397. package/src/nile-breadcrumb/nile-breadcrumb.ts +2 -0
  398. package/src/nile-breadcrumb-item/nile-breadcrumb-item.ts +2 -0
  399. package/src/nile-button/nile-button.ts +2 -0
  400. package/src/nile-button-toggle/nile-button-toggle.ts +2 -0
  401. package/src/nile-button-toggle-group/nile-button-toggle-group.ts +2 -0
  402. package/src/nile-calendar/nile-calendar.ts +11 -19
  403. package/src/nile-card/nile-card.ts +2 -0
  404. package/src/nile-checkbox/nile-checkbox.ts +4 -9
  405. package/src/nile-chip/nile-chip.ts +2 -0
  406. package/src/nile-code-editor/nile-code-editor.ts +2 -0
  407. package/src/nile-content-editor/nile-content-editor.ts +2 -0
  408. package/src/nile-date-picker/nile-date-picker.ts +3 -4
  409. package/src/nile-dialog/nile-dialog.ts +12 -8
  410. package/src/nile-drawer/nile-drawer.ts +2 -0
  411. package/src/nile-empty-state/nile-empty-state.ts +2 -0
  412. package/src/nile-highlighter/nile-highlighter.ts +20 -13
  413. package/src/nile-icon/icons/svg/index.ts +2 -0
  414. package/src/nile-icon/icons/svg/insert-at-cursor.ts +5 -0
  415. package/src/nile-icon/icons/svg/warning-01.ts +5 -0
  416. package/src/nile-icon-button/nile-icon-button.ts +2 -0
  417. package/src/nile-input/nile-input.ts +2 -0
  418. package/src/nile-link/nile-link.ts +3 -1
  419. package/src/nile-list/nile-list.ts +2 -0
  420. package/src/nile-list-item/nile-list-item.ts +2 -0
  421. package/src/nile-menu/nile-menu.ts +3 -0
  422. package/src/nile-menu-item/nile-menu-item.ts +4 -5
  423. package/src/nile-option/nile-option.ts +4 -5
  424. package/src/nile-popover/nile-popover.ts +4 -2
  425. package/src/nile-popup/nile-popup.ts +3 -0
  426. package/src/nile-radio/nile-radio.ts +2 -12
  427. package/src/nile-radio-group/nile-radio-group.ts +2 -0
  428. package/src/nile-select/nile-select.ts +2 -0
  429. package/src/nile-slide-toggle/nile-slide-toggle.ts +3 -0
  430. package/src/nile-split-panel/nile-split-panel.ts +2 -0
  431. package/src/nile-stepper/nile-stepper.ts +2 -0
  432. package/src/nile-tab/nile-tab.ts +4 -2
  433. package/src/nile-tab-group/nile-tab-group.ts +4 -2
  434. package/src/nile-table-body/nile-table-body.ts +2 -0
  435. package/src/nile-table-header-item/nile-table-header-item.ts +2 -0
  436. package/src/nile-tag/nile-tag.ts +2 -0
  437. package/src/nile-textarea/nile-textarea.ts +2 -0
  438. package/src/nile-toast/nile-toast.ts +2 -0
  439. package/src/nile-tooltip/nile-tooltip.ts +2 -0
  440. package/src/nile-tree/nile-tree.ts +2 -0
  441. package/src/nile-tree-item/nile-tree-item.ts +2 -0
  442. package/dist/hy-70a23b1a.cjs.js +0 -2
  443. package/dist/hy-70a23b1a.cjs.js.map +0 -1
  444. package/dist/hy-c5d98bdd.esm.js +0 -1
  445. package/dist/sass-07548677.esm.js +0 -1
  446. package/dist/sass-836693eb.cjs.js +0 -2
  447. package/dist/sass-836693eb.cjs.js.map +0 -1
@@ -1,2 +1,2 @@
1
- System.register(["tslib","lit/directives/class-map.js","lit/decorators.js","lit","../internal/nile-element.cjs.js","./nile-popup.css.cjs.js","../index-c7ad3b47.cjs.js"],function(_export,_context){"use strict";var t,e,n,i,o,r,a,s,_templateObject,_templateObject2,_excluded,_excluded2,_excluded3,l,c,u,f,h,d,p,J,U,st,ct,ut,ft,ht,dt,pt,bt;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}}return target;}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}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.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function m(t,e,n){return c(t,l(e,n));}function y(t,e){return"function"==typeof t?t(e):t;}function b(t){return t.split("-")[0];}function g(t){return t.split("-")[1];}function v(t){return"x"===t?"y":"x";}function w(t){return"y"===t?"height":"width";}function x(t){return["top","bottom"].includes(b(t))?"y":"x";}function A(t){return v(x(t));}function z(t){return t.replace(/start|end/g,function(t){return p[t];});}function S(t){return t.replace(/left|right|bottom|top/g,function(t){return d[t];});}function k(t){return"number"!=typeof t?function(t){return _objectSpread({top:0,right:0,bottom:0,left:0},t);}(t):{top:t,right:t,bottom:t,left:t};}function P(t){var e=t.x,n=t.y,i=t.width,o=t.height;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n};}function $(t,e,n){var i=t.reference,o=t.floating;var r=x(e),a=A(e),s=w(a),l=b(e),c="y"===r,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;var d;switch(l){case"top":d={x:u,y:i.y-o.height};break;case"bottom":d={x:u,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-o.width,y:f};break;default:d={x:i.x,y:i.y};}switch(g(e)){case"start":d[a]-=h*(n&&c?-1:1);break;case"end":d[a]+=h*(n&&c?-1:1);}return d;}function O(_x,_x2){return _O.apply(this,arguments);}function _O(){_O=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(t,e){var n,i,o,r,a,s,l,_y5,_y5$boundary,c,_y5$rootBoundary,u,_y5$elementContext,f,_y5$altBoundary,h,_y5$padding,d,p,m,b,g,v,w,x;return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:void 0===e&&(e={});i=t.x;o=t.y;r=t.platform;a=t.rects;s=t.elements;l=t.strategy;_y5=y(e,t);_y5$boundary=_y5.boundary;c=_y5$boundary===void 0?"clippingAncestors":_y5$boundary;_y5$rootBoundary=_y5.rootBoundary;u=_y5$rootBoundary===void 0?"viewport":_y5$rootBoundary;_y5$elementContext=_y5.elementContext;f=_y5$elementContext===void 0?"floating":_y5$elementContext;_y5$altBoundary=_y5.altBoundary;h=_y5$altBoundary===void 0?!1:_y5$altBoundary;_y5$padding=_y5.padding;d=_y5$padding===void 0?0:_y5$padding;p=k(d);m=s[h?"floating"===f?"reference":"floating":f];_context14.t0=P;_context14.t1=r;_context14.next=24;return null==r.isElement?void 0:r.isElement(m);case 24:_context14.t3=n=_context14.sent;_context14.t2=null==_context14.t3;if(_context14.t2){_context14.next=28;break;}_context14.t2=n;case 28:if(!_context14.t2){_context14.next=32;break;}_context14.t4=m;_context14.next=38;break;case 32:_context14.t5=m.contextElement;if(_context14.t5){_context14.next=37;break;}_context14.next=36;return null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating);case 36:_context14.t5=_context14.sent;case 37:_context14.t4=_context14.t5;case 38:_context14.t6=_context14.t4;_context14.t7=c;_context14.t8=u;_context14.t9=l;_context14.t10={element:_context14.t6,boundary:_context14.t7,rootBoundary:_context14.t8,strategy:_context14.t9};_context14.next=45;return _context14.t1.getClippingRect.call(_context14.t1,_context14.t10);case 45:_context14.t11=_context14.sent;b=(0,_context14.t0)(_context14.t11);g="floating"===f?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference;_context14.next=50;return null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating);case 50:v=_context14.sent;_context14.next=53;return null==r.isElement?void 0:r.isElement(v);case 53:_context14.t13=_context14.sent;if(!_context14.t13){_context14.next=58;break;}_context14.next=57;return null==r.getScale?void 0:r.getScale(v);case 57:_context14.t13=_context14.sent;case 58:_context14.t12=_context14.t13;if(_context14.t12){_context14.next=61;break;}_context14.t12={x:1,y:1};case 61:w=_context14.t12;_context14.t14=P;if(!r.convertOffsetParentRelativeRectToViewportRelativeRect){_context14.next=69;break;}_context14.next=66;return r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:l});case 66:_context14.t15=_context14.sent;_context14.next=70;break;case 69:_context14.t15=g;case 70:_context14.t16=_context14.t15;x=(0,_context14.t14)(_context14.t16);return _context14.abrupt("return",{top:(b.top-x.top+p.top)/w.y,bottom:(x.bottom-b.bottom+p.bottom)/w.y,left:(b.left-x.left+p.left)/w.x,right:(x.right-b.right+p.right)/w.x});case 73:case"end":return _context14.stop();}},_callee13);}));return _O.apply(this,arguments);}function F(t){return B(t)?(t.nodeName||"").toLowerCase():"#document";}function R(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window;}function j(t){var e;return null==(e=(B(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement;}function B(t){return t instanceof Node||t instanceof R(t).Node;}function C(t){return t instanceof Element||t instanceof R(t).Element;}function E(t){return t instanceof HTMLElement||t instanceof R(t).HTMLElement;}function N(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof R(t).ShadowRoot);}function D(t){var _ref=_(t),e=_ref.overflow,n=_ref.overflowX,i=_ref.overflowY,o=_ref.display;return /auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o);}function T(t){return["table","td","th"].includes(F(t));}function M(t){var e=L(),n=_(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(function(t){return(n.willChange||"").includes(t);})||["paint","layout","strict","content"].some(function(t){return(n.contain||"").includes(t);});}function L(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none");}function H(t){return["html","body","#document"].includes(F(t));}function _(t){return R(t).getComputedStyle(t);}function I(t){return C(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset};}function q(t){if("html"===F(t))return t;var e=t.assignedSlot||t.parentNode||N(t)&&t.host||j(t);return N(e)?e.host:e;}function W(t){var e=q(t);return H(e)?t.ownerDocument?t.ownerDocument.body:t.body:E(e)&&D(e)?e:W(e);}function Y(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);var o=W(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),a=R(o);return r?e.concat(a,a.visualViewport||[],D(o)?o:[],a.frameElement&&n?Y(a.frameElement):[]):e.concat(o,Y(o,[],n));}function V(t){var e=_(t);var n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;var o=E(t),r=o?t.offsetWidth:n,a=o?t.offsetHeight:i,s=u(n)!==r||u(i)!==a;return s&&(n=r,i=a),{width:n,height:i,$:s};}function X(t){return C(t)?t:t.contextElement;}function G(t){var e=X(t);if(!E(e))return h(1);var n=e.getBoundingClientRect(),_V=V(e),i=_V.width,o=_V.height,r=_V.$;var a=(r?u(n.width):n.width)/i,s=(r?u(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s};}function K(t){var e=R(t);return L()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:J;}function Q(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);var o=t.getBoundingClientRect(),r=X(t);var a=h(1);e&&(i?C(i)&&(a=G(i)):a=G(t));var s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==R(t))&&e;}(r,n,i)?K(r):h(0);var l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(r){var _t=R(r),_e=i&&C(i)?R(i):i;var _n=_t,_o=_n.frameElement;for(;_o&&i&&_e!==_n;){var _t2=G(_o),_e2=_o.getBoundingClientRect(),_i=_(_o),_r=_e2.left+(_o.clientLeft+parseFloat(_i.paddingLeft))*_t2.x,_a=_e2.top+(_o.clientTop+parseFloat(_i.paddingTop))*_t2.y;l*=_t2.x,c*=_t2.y,u*=_t2.x,f*=_t2.y,l+=_r,c+=_a,_n=R(_o),_o=_n.frameElement;}}return P({width:u,height:f,x:l,y:c});}function Z(t){return U.some(function(e){try{return t.matches(e);}catch(t){return!1;}});}function tt(t){return Q(j(t)).left+I(t).scrollLeft;}function et(t,e,n){var i;if("viewport"===e)i=function(t,e){var n=R(t),i=j(t),o=n.visualViewport;var r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;var _t3=L();(!_t3||_t3&&"fixed"===e)&&(s=o.offsetLeft,l=o.offsetTop);}return{width:r,height:a,x:s,y:l};}(t,n);else if("document"===e)i=function(t){var e=j(t),n=I(t),i=t.ownerDocument.body,o=c(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=c(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);var a=-n.scrollLeft+tt(t);var s=-n.scrollTop;return"rtl"===_(i).direction&&(a+=c(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s};}(j(t));else if(C(e))i=function(t,e){var n=Q(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=E(t)?G(t):h(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y};}(e,n);else{var _n2=K(t);i=_objectSpread(_objectSpread({},e),{},{x:e.x-_n2.x,y:e.y-_n2.y});}return P(i);}function nt(t,e){var n=q(t);return!(n===e||!C(n)||H(n))&&("fixed"===_(n).position||nt(n,e));}function it(t,e,n){var i=E(e),o=j(e),r="fixed"===n,a=Q(t,!0,r,e);var s={scrollLeft:0,scrollTop:0};var l=h(0);if(i||!i&&!r)if(("body"!==F(e)||D(o))&&(s=I(e)),i){var _t4=Q(e,!0,r,e);l.x=_t4.x+e.clientLeft,l.y=_t4.y+e.clientTop;}else o&&(l.x=tt(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height};}function ot(t){return"static"===_(t).position;}function rt(t,e){return E(t)&&"fixed"!==_(t).position?e?e(t):t.offsetParent:null;}function at(t,e){var n=R(t);if(Z(t))return n;if(!E(t)){var _e3=q(t);for(;_e3&&!H(_e3);){if(C(_e3)&&!ot(_e3))return _e3;_e3=q(_e3);}return n;}var i=rt(t,e);for(;i&&T(i)&&ot(i);)i=rt(i,e);return i&&H(i)&&ot(i)&&!M(i)?n:i||function(t){var e=q(t);for(;E(e)&&!H(e);){if(M(e))return e;e=q(e);}return null;}(t)||n;}function lt(t,e,n,i){void 0===i&&(i={});var _i2=i,_i2$ancestorScroll=_i2.ancestorScroll,o=_i2$ancestorScroll===void 0?!0:_i2$ancestorScroll,_i2$ancestorResize=_i2.ancestorResize,r=_i2$ancestorResize===void 0?!0:_i2$ancestorResize,_i2$elementResize=_i2.elementResize,a=_i2$elementResize===void 0?"function"==typeof ResizeObserver:_i2$elementResize,_i2$layoutShift=_i2.layoutShift,s=_i2$layoutShift===void 0?"function"==typeof IntersectionObserver:_i2$layoutShift,_i2$animationFrame=_i2.animationFrame,u=_i2$animationFrame===void 0?!1:_i2$animationFrame,h=X(t),d=o||r?[].concat(_toConsumableArray(h?Y(h):[]),_toConsumableArray(Y(e))):[];d.forEach(function(t){o&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n);});var p=h&&s?function(t,e){var n,i=null;var o=j(t);function r(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null;}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),r();var _t$getBoundingClientR=t.getBoundingClientRect(),h=_t$getBoundingClientR.left,d=_t$getBoundingClientR.top,p=_t$getBoundingClientR.width,m=_t$getBoundingClientR.height;if(s||e(),!p||!m)return;var y={rootMargin:-f(d)+"px "+-f(o.clientWidth-(h+p))+"px "+-f(o.clientHeight-(d+m))+"px "+-f(h)+"px",threshold:c(0,l(1,u))||1};var b=!0;function g(t){var e=t[0].intersectionRatio;if(e!==u){if(!b)return a();e?a(!1,e):n=setTimeout(function(){a(!1,1e-7);},1e3);}b=!1;}try{i=new IntersectionObserver(g,_objectSpread(_objectSpread({},y),{},{root:o.ownerDocument}));}catch(t){i=new IntersectionObserver(g,y);}i.observe(t);}(!0),r;}(h,n):null;var m,y=-1,b=null;a&&(b=new ResizeObserver(function(t){var _t6=_slicedToArray(t,1),i=_t6[0];i&&i.target===h&&b&&(b.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame(function(){var t;null==(t=b)||t.observe(e);})),n();}),h&&!u&&b.observe(h),b.observe(e));var g=u?Q(t):null;return u&&function e(){var i=Q(t);!g||i.x===g.x&&i.y===g.y&&i.width===g.width&&i.height===g.height||n();g=i,m=requestAnimationFrame(e);}(),n(),function(){var t;d.forEach(function(t){o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n);}),null==p||p(),null==(t=b)||t.disconnect(),b=null,u&&cancelAnimationFrame(m);};}function mt(t){return function(t){for(var _e7=t;_e7;_e7=yt(_e7))if(_e7 instanceof Element&&"none"===getComputedStyle(_e7).display)return null;for(var _e8=yt(t);_e8;_e8=yt(_e8)){if(!(_e8 instanceof Element))continue;var _t15=getComputedStyle(_e8);if("contents"!==_t15.display){if("static"!==_t15.position||"none"!==_t15.filter)return _e8;if("BODY"===_e8.tagName)return _e8;}}return null;}(t);}function yt(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode;}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_litDirectivesClassMapJs){e=_litDirectivesClassMapJs.classMap;},function(_litDecoratorsJs){n=_litDecoratorsJs.query;i=_litDecoratorsJs.property;o=_litDecoratorsJs.customElement;},function(_lit){r=_lit.html;},function(_internalNileElementCjsJs){a=_internalNileElementCjsJs.N;},function(_nilePopupCssCjsJs){s=_nilePopupCssCjsJs.s;},function(_index001CjsJs){}],execute:function execute(){_excluded=["mainAxis","crossAxis","limiter"];_excluded2=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"];_excluded3=["apply"];l=Math.min;c=Math.max;u=Math.round;f=Math.floor;h=function h(t){return{x:t,y:t};};d={left:"right",right:"left",bottom:"top",top:"bottom"};p={start:"end",end:"start"};J=h(0);U=[":popover-open",":modal"];st={convertOffsetParentRelativeRectToViewportRelativeRect:function convertOffsetParentRelativeRectToViewportRelativeRect(t){var e=t.elements,n=t.rect,i=t.offsetParent,o=t.strategy;var r="fixed"===o,a=j(i),s=!!e&&Z(e.floating);if(i===a||s&&r)return n;var l={scrollLeft:0,scrollTop:0},c=h(1);var u=h(0),f=E(i);if((f||!f&&!r)&&(("body"!==F(i)||D(a))&&(l=I(i)),E(i))){var _t5=Q(i);c=G(i),u.x=_t5.x+i.clientLeft,u.y=_t5.y+i.clientTop;}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y};},getDocumentElement:j,getClippingRect:function getClippingRect(t){var e=t.element,n=t.boundary,i=t.rootBoundary,o=t.strategy;var r=[].concat(_toConsumableArray("clippingAncestors"===n?Z(e)?[]:function(t,e){var n=e.get(t);if(n)return n;var i=Y(t,[],!1).filter(function(t){return C(t)&&"body"!==F(t);}),o=null;var r="fixed"===_(t).position;var a=r?q(t):t;for(;C(a)&&!H(a);){var _e4=_(a),_n3=M(a);_n3||"fixed"!==_e4.position||(o=null),(r?!_n3&&!o:!_n3&&"static"===_e4.position&&o&&["absolute","fixed"].includes(o.position)||D(a)&&!_n3&&nt(t,a))?i=i.filter(function(t){return t!==a;}):o=_e4,a=q(a);}return e.set(t,i),i;}(e,this._c):[].concat(n)),[i]),a=r[0],s=r.reduce(function(t,n){var i=et(e,n,o);return t.top=c(i.top,t.top),t.right=l(i.right,t.right),t.bottom=l(i.bottom,t.bottom),t.left=c(i.left,t.left),t;},et(e,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top};},getOffsetParent:at,getElementRects:function(){var _getElementRects=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(t){var e,n,i;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:e=this.getOffsetParent||at;n=this.getDimensions;_context2.next=4;return n(t.floating);case 4:i=_context2.sent;_context2.t0=it;_context2.t1=t.reference;_context2.next=9;return e(t.floating);case 9:_context2.t2=_context2.sent;_context2.t3=t.strategy;_context2.t4=(0,_context2.t0)(_context2.t1,_context2.t2,_context2.t3);_context2.t5={x:0,y:0,width:i.width,height:i.height};return _context2.abrupt("return",{reference:_context2.t4,floating:_context2.t5});case 14:case"end":return _context2.stop();}},_callee,this);}));function getElementRects(_x3){return _getElementRects.apply(this,arguments);}return getElementRects;}(),getClientRects:function getClientRects(t){return Array.from(t.getClientRects());},getDimensions:function getDimensions(t){var _V2=V(t),e=_V2.width,n=_V2.height;return{width:e,height:n};},getScale:G,isElement:C,isRTL:function isRTL(t){return"rtl"===_(t).direction;}};ct=function ct(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var n,i,o,r,a,s,l;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:o=e.x;r=e.y;a=e.placement;s=e.middlewareData;_context4.next=6;return function(){var _ref2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(t,e){var n,i,o,r,a,s,l,c,u,f,_ref3,h,d,p;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:n=t.placement;i=t.platform;o=t.elements;_context3.next=5;return null==i.isRTL?void 0:i.isRTL(o.floating);case 5:r=_context3.sent;a=b(n);s=g(n);l="y"===x(n);c=["left","top"].includes(a)?-1:1;u=r&&l?-1:1;f=y(e,t);_ref3="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:_objectSpread({mainAxis:0,crossAxis:0,alignmentAxis:null},f),h=_ref3.mainAxis,d=_ref3.crossAxis,p=_ref3.alignmentAxis;return _context3.abrupt("return",(s&&"number"==typeof p&&(d="end"===s?-1*p:p),l?{x:d*u,y:h*c}:{x:h*c,y:d*u}));case 14:case"end":return _context3.stop();}},_callee2);}));return function(_x4,_x5){return _ref2.apply(this,arguments);};}()(e,t);case 6:l=_context4.sent;return _context4.abrupt("return",a===(null==(n=s.offset)?void 0:n.placement)&&null!=(i=s.arrow)&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:_objectSpread(_objectSpread({},l),{},{placement:a})});case 8:case"end":return _context4.stop();}},_callee3);}))();}};};ut=function ut(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var n,i,o,_y,_y$mainAxis,r,_y$crossAxis,a,_y$limiter,s,l,c,u,f,h,d,p,_t7,_t8,g;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:n=e.x;i=e.y;o=e.placement;_y=y(t,e);_y$mainAxis=_y.mainAxis;r=_y$mainAxis===void 0?!0:_y$mainAxis;_y$crossAxis=_y.crossAxis;a=_y$crossAxis===void 0?!1:_y$crossAxis;_y$limiter=_y.limiter;s=_y$limiter===void 0?{fn:function fn(t){var e=t.x,n=t.y;return{x:e,y:n};}}:_y$limiter;l=_objectWithoutProperties(_y,_excluded);c={x:n,y:i};_context5.next=14;return O(e,l);case 14:u=_context5.sent;f=x(b(o));h=v(f);d=c[h],p=c[f];if(r){_t7="y"===h?"bottom":"right";d=m(d+u["y"===h?"top":"left"],d,d-u[_t7]);}if(a){_t8="y"===f?"bottom":"right";p=m(p+u["y"===f?"top":"left"],p,p-u[_t8]);}g=s.fn(_objectSpread(_objectSpread({},e),{},_defineProperty(_defineProperty({},h,d),f,p)));return _context5.abrupt("return",_objectSpread(_objectSpread({},g),{},{data:{x:g.x-n,y:g.y-i}}));case 22:case"end":return _context5.stop();}},_callee4);}))();}};};ft=function ft(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var n,i,o,r,a,s,l,c,_y2,_y2$mainAxis,u,_y2$crossAxis,f,h,_y2$fallbackStrategy,d,_y2$fallbackAxisSideD,p,_y2$flipAlignment,m,v,x,k,P,$,F,R,j,B,_t9,C,E,_t10,_e5,_n4,N,_t11;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:o=e.placement,r=e.middlewareData,a=e.rects,s=e.initialPlacement,l=e.platform,c=e.elements,_y2=y(t,e),_y2$mainAxis=_y2.mainAxis,u=_y2$mainAxis===void 0?!0:_y2$mainAxis,_y2$crossAxis=_y2.crossAxis,f=_y2$crossAxis===void 0?!0:_y2$crossAxis,h=_y2.fallbackPlacements,_y2$fallbackStrategy=_y2.fallbackStrategy,d=_y2$fallbackStrategy===void 0?"bestFit":_y2$fallbackStrategy,_y2$fallbackAxisSideD=_y2.fallbackAxisSideDirection,p=_y2$fallbackAxisSideD===void 0?"none":_y2$fallbackAxisSideD,_y2$flipAlignment=_y2.flipAlignment,m=_y2$flipAlignment===void 0?!0:_y2$flipAlignment,v=_objectWithoutProperties(_y2,_excluded2);if(!(null!=(n=r.arrow)&&n.alignmentOffset)){_context6.next=3;break;}return _context6.abrupt("return",{});case 3:x=b(o);k=b(s)===s;_context6.next=7;return null==l.isRTL?void 0:l.isRTL(c.floating);case 7:P=_context6.sent;$=h||(k||!m?[S(s)]:function(t){var e=S(t);return[z(t),e,z(e)];}(s));h||"none"===p||$.push.apply($,_toConsumableArray(function(t,e,n,i){var o=g(t);var r=function(t,e,n){var i=["left","right"],o=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:a;default:return[];}}(b(t),"start"===n,i);return o&&(r=r.map(function(t){return t+"-"+o;}),e&&(r=r.concat(r.map(z)))),r;}(s,m,p,P)));F=[s].concat(_toConsumableArray($));_context6.next=13;return O(e,v);case 13:R=_context6.sent;j=[];B=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&j.push(R[x]),f){_t9=function(t,e,n){void 0===n&&(n=!1);var i=g(t),o=A(t),r=w(o);var a="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=S(a)),[a,S(a)];}(o,a,P);j.push(R[_t9[0]],R[_t9[1]]);}if(!(B=[].concat(_toConsumableArray(B),[{placement:o,overflows:j}]),!j.every(function(t){return t<=0;}))){_context6.next=32;break;}_t10=((null==(C=r.flip)?void 0:C.index)||0)+1,_e5=F[_t10];if(!_e5){_context6.next=21;break;}return _context6.abrupt("return",{data:{index:_t10,overflows:B},reset:{placement:_e5}});case 21:_n4=null==(E=B.filter(function(t){return t.overflows[0]<=0;}).sort(function(t,e){return t.overflows[1]-e.overflows[1];})[0])?void 0:E.placement;if(_n4){_context6.next=30;break;}_context6.t0=d;_context6.next=_context6.t0==="bestFit"?26:_context6.t0==="initialPlacement"?29:30;break;case 26:_t11=null==(N=B.map(function(t){return[t.placement,t.overflows.filter(function(t){return t>0;}).reduce(function(t,e){return t+e;},0)];}).sort(function(t,e){return t[1]-e[1];})[0])?void 0:N[0];_t11&&(_n4=_t11);return _context6.abrupt("break",30);case 29:_n4=s;case 30:if(!(o!==_n4)){_context6.next=32;break;}return _context6.abrupt("return",{reset:{placement:_n4}});case 32:return _context6.abrupt("return",{});case 33:case"end":return _context6.stop();}},_callee5);}))();}};};ht=function ht(t){return void 0===t&&(t={}),{name:"size",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var n,i,o,r,_y3,_y3$apply,a,s,u,f,h,d,_i$floating,p,m,v,w,A,z,S,k,P,_t12,_t13,_t14,_e6,_n5,_i3,$;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:n=e.placement;i=e.rects;o=e.platform;r=e.elements;_y3=y(t,e);_y3$apply=_y3.apply;a=_y3$apply===void 0?function(){}:_y3$apply;s=_objectWithoutProperties(_y3,_excluded3);_context7.next=10;return O(e,s);case 10:u=_context7.sent;f=b(n);h=g(n);d="y"===x(n);_i$floating=i.floating;p=_i$floating.width;m=_i$floating.height;if(!("top"===f||"bottom"===f)){_context7.next=36;break;}v=f;_context7.t0=h;_context7.next=22;return null==o.isRTL?void 0:o.isRTL(r.floating);case 22:if(!_context7.sent){_context7.next=26;break;}_context7.t1="start";_context7.next=27;break;case 26:_context7.t1="end";case 27:_context7.t2=_context7.t1;if(!(_context7.t0===_context7.t2)){_context7.next=32;break;}_context7.t3="left";_context7.next=33;break;case 32:_context7.t3="right";case 33:w=_context7.t3;_context7.next=37;break;case 36:w=f,v="end"===h?"top":"bottom";case 37:A=m-u[v],z=p-u[w],S=!e.middlewareData.shift;k=A,P=z;if(d){_t12=p-u.left-u.right;P=h||S?l(z,_t12):_t12;}else{_t13=m-u.top-u.bottom;k=h||S?l(A,_t13):_t13;}if(S&&!h){_t14=c(u.left,0),_e6=c(u.right,0),_n5=c(u.top,0),_i3=c(u.bottom,0);d?P=p-2*(0!==_t14||0!==_e6?_t14+_e6:c(u.left,u.right)):k=m-2*(0!==_n5||0!==_i3?_n5+_i3:c(u.top,u.bottom));}_context7.next=43;return a(_objectSpread(_objectSpread({},e),{},{availableWidth:P,availableHeight:k}));case 43:_context7.next=45;return o.getDimensions(r.floating);case 45:$=_context7.sent;return _context7.abrupt("return",p!==$.width||m!==$.height?{reset:{rects:!0}}:{});case 47:case"end":return _context7.stop();}},_callee6);}))();}};};dt=function dt(t){return{name:"arrow",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var n,i,o,r,a,s,c,_ref4,u,_ref4$padding,f,h,d,p,b,v,x,z,S,P,$,O,F,R,j,B,C,E,N,D,T,M,L,H;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:n=e.x,i=e.y,o=e.placement,r=e.rects,a=e.platform,s=e.elements,c=e.middlewareData,_ref4=y(t,e)||{},u=_ref4.element,_ref4$padding=_ref4.padding,f=_ref4$padding===void 0?0:_ref4$padding;if(!(null==u)){_context8.next=3;break;}return _context8.abrupt("return",{});case 3:h=k(f);d={x:n,y:i};p=A(o);b=w(p);_context8.next=9;return a.getDimensions(u);case 9:v=_context8.sent;x="y"===p;z=x?"top":"left";S=x?"bottom":"right";P=x?"clientHeight":"clientWidth";$=r.reference[b]+r.reference[p]-d[p]-r.floating[b];O=d[p]-r.reference[p];_context8.next=18;return null==a.getOffsetParent?void 0:a.getOffsetParent(u);case 18:F=_context8.sent;R=F?F[P]:0;_context8.t0=R;if(!_context8.t0){_context8.next=25;break;}_context8.next=24;return null==a.isElement?void 0:a.isElement(F);case 24:_context8.t0=_context8.sent;case 25:_context8.t1=_context8.t0;if(_context8.t1){_context8.next=28;break;}R=s.floating[P]||r.floating[b];case 28:j=$/2-O/2,B=R/2-v[b]/2-1,C=l(h[z],B),E=l(h[S],B),N=C,D=R-v[b]-E,T=R/2-v[b]/2+j,M=m(N,T,D),L=!c.arrow&&null!=g(o)&&T!==M&&r.reference[b]/2-(T<N?C:E)-v[b]/2<0,H=L?T<N?T-N:T-D:0;return _context8.abrupt("return",_defineProperty(_defineProperty(_defineProperty({},p,d[p]+H),"data",_objectSpread(_defineProperty(_defineProperty({},p,M),"centerOffset",T-M-H),L&&{alignmentOffset:H})),"reset",L));case 30:case"end":return _context8.stop();}},_callee7);}))();}};};pt=function pt(t,e,n){var i=new Map(),o=_objectSpread({platform:st},n),r=_objectSpread(_objectSpread({},o.platform),{},{_c:i});return function(){var _ref6=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(t,e,n){var _n$placement,i,_n$strategy,o,_n$middleware,r,a,s,l,c,_$,u,f,h,d,p,_n6,_$2,_s$_n,_r2,_m,_yield$m,_y4,_b,_g,v;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_n$placement=n.placement;i=_n$placement===void 0?"bottom":_n$placement;_n$strategy=n.strategy;o=_n$strategy===void 0?"absolute":_n$strategy;_n$middleware=n.middleware;r=_n$middleware===void 0?[]:_n$middleware;a=n.platform;s=r.filter(Boolean);_context9.next=10;return null==a.isRTL?void 0:a.isRTL(e);case 10:l=_context9.sent;_context9.next=13;return a.getElementRects({reference:t,floating:e,strategy:o});case 13:c=_context9.sent;_$=$(c,i,l);u=_$.x;f=_$.y;h=i;d={};p=0;_n6=0;case 21:if(!(_n6<s.length)){_context9.next=56;break;}_s$_n=s[_n6];_r2=_s$_n.name;_m=_s$_n.fn;_context9.next=27;return _m({x:u,y:f,initialPlacement:i,placement:h,strategy:o,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});case 27:_yield$m=_context9.sent;_y4=_yield$m.x;_b=_yield$m.y;_g=_yield$m.data;v=_yield$m.reset;u=null!=_y4?_y4:u;f=null!=_b?_b:f;d=_objectSpread(_objectSpread({},d),{},_defineProperty({},_r2,_objectSpread(_objectSpread({},d[_r2]),_g)));_context9.t0=v&&p<=50;if(!_context9.t0){_context9.next=53;break;}p++;_context9.t1="object"==_typeof(v);if(!_context9.t1){_context9.next=52;break;}v.placement&&(h=v.placement);_context9.t2=v.rects;if(!_context9.t2){_context9.next=51;break;}if(!(!0===v.rects)){_context9.next=49;break;}_context9.next=46;return a.getElementRects({reference:t,floating:e,strategy:o});case 46:_context9.t3=_context9.sent;_context9.next=50;break;case 49:_context9.t3=v.rects;case 50:c=_context9.t3;case 51:_$2=$(c,h,l),u=_$2.x,f=_$2.y;case 52:_n6=-1;case 53:_n6++;_context9.next=21;break;case 56:return _context9.abrupt("return",{x:u,y:f,placement:h,strategy:o,middlewareData:d});case 57:case"end":return _context9.stop();}},_callee8);}));return function(_x6,_x7,_x8){return _ref6.apply(this,arguments);};}()(t,e,_objectSpread(_objectSpread({},o),{},{platform:r}));};_export("N",bt=/*#__PURE__*/function(_a2){function bt(){var _this;_classCallCheck(this,bt);_this=_callSuper(this,bt,arguments),_this.active=!1,_this.placement="top",_this.strategy="absolute",_this.distance=0,_this.skidding=0,_this.arrow=!1,_this.arrowPlacement="anchor",_this.arrowPadding=10,_this.flip=!1,_this.flipFallbackPlacements="",_this.flipFallbackStrategy="best-fit",_this.flipPadding=0,_this.shift=!1,_this.shiftPadding=0,_this.autoSizePadding=0;return _this;}_inherits(bt,_a2);return _createClass(bt,[{key:"connectedCallback",value:function(){var _connectedCallback=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_get(_getPrototypeOf(bt.prototype),"connectedCallback",this).call(this);_context10.next=3;return this.updateComplete;case 3:this.start();case 4:case"end":return _context10.stop();}},_callee9,this);}));function connectedCallback(){return _connectedCallback.apply(this,arguments);}return connectedCallback;}()},{key:"disconnectedCallback",value:function disconnectedCallback(){this.stop();}},{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(t){return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_get(_getPrototypeOf(bt.prototype),"updated",this).call(this,t);t.has("active")&&(this.active?this.start():this.stop());t.has("anchor")&&this.handleAnchorChange();_context11.t0=this.active;if(!_context11.t0){_context11.next=8;break;}_context11.next=7;return this.updateComplete;case 7:this.reposition();case 8:case"end":return _context11.stop();}},_callee10,this);}));function updated(_x9){return _updated.apply(this,arguments);}return updated;}()},{key:"handleAnchorChange",value:function(){var _handleAnchorChange=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var _t16;return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return this.stop();case 2:if(!(this.anchor&&"string"==typeof this.anchor)){_context12.next=7;break;}_t16=this.getRootNode();this.anchorEl=_t16.getElementById(this.anchor);_context12.next=8;break;case 7:this.anchor instanceof Element?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');case 8:if(!(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)){_context12.next=10;break;}throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");case 10:this.start();case 11:case"end":return _context12.stop();}},_callee11,this);}));function handleAnchorChange(){return _handleAnchorChange.apply(this,arguments);}return handleAnchorChange;}()},{key:"start",value:function start(){var _this2=this;this.anchorEl&&(this.cleanup=lt(this.anchorEl,this.popup,function(){_this2.reposition();}));}},{key:"stop",value:function(){var _stop=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(){var _this3=this;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:return _context13.abrupt("return",new Promise(function(t){_this3.cleanup?(_this3.cleanup(),_this3.cleanup=void 0,_this3.removeAttribute("data-current-placement"),_this3.style.removeProperty("--auto-size-available-width"),_this3.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(function(){return t();})):t();}));case 1:case"end":return _context13.stop();}},_callee12);}));function stop(){return _stop.apply(this,arguments);}return stop;}()},{key:"reposition",value:function reposition(){var _this4=this;if(!this.active||!this.anchorEl)return;var t=[ct({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(ht({apply:function apply(_ref7){var t=_ref7.rects;var e="width"===_this4.sync||"both"===_this4.sync,n="height"===_this4.sync||"both"===_this4.sync;_this4.popup.style.width=e?"".concat(t.reference.width,"px"):"",_this4.popup.style.height=n?"".concat(t.reference.height,"px"):"";}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(ft({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(ut({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(ht({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:function apply(_ref8){var t=_ref8.availableWidth,e=_ref8.availableHeight;"vertical"===_this4.autoSize||"both"===_this4.autoSize?_this4.style.setProperty("--auto-size-available-height","".concat(e,"px")):_this4.style.removeProperty("--auto-size-available-height"),"horizontal"===_this4.autoSize||"both"===_this4.autoSize?_this4.style.setProperty("--auto-size-available-width","".concat(t,"px")):_this4.style.removeProperty("--auto-size-available-width");}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(dt({element:this.arrowEl,padding:this.arrowPadding}));var e="absolute"===this.strategy?function(t){return st.getOffsetParent(t,mt);}:st.getOffsetParent;pt(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:_objectSpread(_objectSpread({},st),{},{getOffsetParent:e})}).then(function(_ref9){var t=_ref9.x,e=_ref9.y,n=_ref9.middlewareData,i=_ref9.placement;var o="rtl"===getComputedStyle(_this4).direction,r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(_this4.setAttribute("data-current-placement",i),Object.assign(_this4.popup.style,{left:"".concat(t,"px"),top:"".concat(e,"px")}),_this4.arrow){var _t17=n.arrow.x,_e9=n.arrow.y;var _i4="",_a3="",_s="",_l="";if("start"===_this4.arrowPlacement){var _n7="number"==typeof _t17?"calc(".concat(_this4.arrowPadding,"px - var(--arrow-padding-offset))"):"";_i4="number"==typeof _e9?"calc(".concat(_this4.arrowPadding,"px - var(--arrow-padding-offset))"):"",_a3=o?_n7:"",_l=o?"":_n7;}else if("end"===_this4.arrowPlacement){var _n8="number"==typeof _t17?"calc(".concat(_this4.arrowPadding,"px - var(--arrow-padding-offset))"):"";_a3=o?"":_n8,_l=o?_n8:"",_s="number"==typeof _e9?"calc(".concat(_this4.arrowPadding,"px - var(--arrow-padding-offset))"):"";}else"center"===_this4.arrowPlacement?(_l="number"==typeof _t17?"calc(50% - var(--arrow-size-diagonal))":"",_i4="number"==typeof _e9?"calc(50% - var(--arrow-size-diagonal))":""):(_l="number"==typeof _t17?"".concat(_t17,"px"):"",_i4="number"==typeof _e9?"".concat(_e9,"px"):"");Object.assign(_this4.arrowEl.style,_defineProperty({top:_i4,right:_a3,bottom:_s,left:_l},r,"calc(var(--arrow-size-diagonal) * -1)"));}}),this.emit("reposition");}},{key:"render",value:function render(){return r(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <slot name=\"anchor\" @slotchange=","></slot>\n\n <div\n part=\"popup\"\n class=","\n >\n <slot></slot>\n ","\n </div>\n "])),this.handleAnchorChange,e({popup:!0,"popup--active":this.active,"popup--fixed":"fixed"===this.strategy,"popup--has-arrow":this.arrow}),this.arrow?r(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<div part=\"arrow\" class=\"popup__arrow\" role=\"presentation\"></div>"]))):"");}}]);}(a));bt.styles=s,t([n(".popup")],bt.prototype,"popup",void 0),t([n(".popup__arrow")],bt.prototype,"arrowEl",void 0),t([i()],bt.prototype,"anchor",void 0),t([i({type:Boolean,reflect:!0})],bt.prototype,"active",void 0),t([i({reflect:!0})],bt.prototype,"placement",void 0),t([i({reflect:!0})],bt.prototype,"strategy",void 0),t([i({type:Number})],bt.prototype,"distance",void 0),t([i({type:Number})],bt.prototype,"skidding",void 0),t([i({type:Boolean})],bt.prototype,"arrow",void 0),t([i({attribute:"arrow-placement"})],bt.prototype,"arrowPlacement",void 0),t([i({attribute:"arrow-padding",type:Number})],bt.prototype,"arrowPadding",void 0),t([i({type:Boolean})],bt.prototype,"flip",void 0),t([i({attribute:"flip-fallback-placements",converter:{fromAttribute:function fromAttribute(t){return t.split(" ").map(function(t){return t.trim();}).filter(function(t){return""!==t;});},toAttribute:function toAttribute(t){return t.join(" ");}}})],bt.prototype,"flipFallbackPlacements",void 0),t([i({attribute:"flip-fallback-strategy"})],bt.prototype,"flipFallbackStrategy",void 0),t([i({type:Object})],bt.prototype,"flipBoundary",void 0),t([i({attribute:"flip-padding",type:Number})],bt.prototype,"flipPadding",void 0),t([i({type:Boolean})],bt.prototype,"shift",void 0),t([i({type:Object})],bt.prototype,"shiftBoundary",void 0),t([i({attribute:"shift-padding",type:Number})],bt.prototype,"shiftPadding",void 0),t([i({attribute:"auto-size"})],bt.prototype,"autoSize",void 0),t([i()],bt.prototype,"sync",void 0),t([i({type:Object})],bt.prototype,"autoSizeBoundary",void 0),t([i({attribute:"auto-size-padding",type:Number})],bt.prototype,"autoSizePadding",void 0),_export("N",bt=t([o("nile-popup")],bt));}};});
1
+ System.register(["tslib","lit/directives/class-map.js","lit/decorators.js","lit","../internal/nile-element.cjs.js","./nile-popup.css.cjs.js","../index-c7ad3b47.cjs.js"],function(_export,_context){"use strict";var t,e,n,i,o,r,a,s,_templateObject,_templateObject2,_excluded,_excluded2,_excluded3,l,c,u,f,h,d,p,J,U,st,ct,ut,ft,ht,dt,pt,bt;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}}return target;}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}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.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function m(t,e,n){return c(t,l(e,n));}function y(t,e){return"function"==typeof t?t(e):t;}function b(t){return t.split("-")[0];}function g(t){return t.split("-")[1];}function v(t){return"x"===t?"y":"x";}function w(t){return"y"===t?"height":"width";}function x(t){return["top","bottom"].includes(b(t))?"y":"x";}function A(t){return v(x(t));}function z(t){return t.replace(/start|end/g,function(t){return p[t];});}function S(t){return t.replace(/left|right|bottom|top/g,function(t){return d[t];});}function k(t){return"number"!=typeof t?function(t){return _objectSpread({top:0,right:0,bottom:0,left:0},t);}(t):{top:t,right:t,bottom:t,left:t};}function P(t){var e=t.x,n=t.y,i=t.width,o=t.height;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n};}function $(t,e,n){var i=t.reference,o=t.floating;var r=x(e),a=A(e),s=w(a),l=b(e),c="y"===r,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;var d;switch(l){case"top":d={x:u,y:i.y-o.height};break;case"bottom":d={x:u,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-o.width,y:f};break;default:d={x:i.x,y:i.y};}switch(g(e)){case"start":d[a]-=h*(n&&c?-1:1);break;case"end":d[a]+=h*(n&&c?-1:1);}return d;}function O(_x,_x2){return _O.apply(this,arguments);}function _O(){_O=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(t,e){var n,i,o,r,a,s,l,_y5,_y5$boundary,c,_y5$rootBoundary,u,_y5$elementContext,f,_y5$altBoundary,h,_y5$padding,d,p,m,b,g,v,w,x;return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:void 0===e&&(e={});i=t.x;o=t.y;r=t.platform;a=t.rects;s=t.elements;l=t.strategy;_y5=y(e,t);_y5$boundary=_y5.boundary;c=_y5$boundary===void 0?"clippingAncestors":_y5$boundary;_y5$rootBoundary=_y5.rootBoundary;u=_y5$rootBoundary===void 0?"viewport":_y5$rootBoundary;_y5$elementContext=_y5.elementContext;f=_y5$elementContext===void 0?"floating":_y5$elementContext;_y5$altBoundary=_y5.altBoundary;h=_y5$altBoundary===void 0?!1:_y5$altBoundary;_y5$padding=_y5.padding;d=_y5$padding===void 0?0:_y5$padding;p=k(d);m=s[h?"floating"===f?"reference":"floating":f];_context14.t0=P;_context14.t1=r;_context14.next=24;return null==r.isElement?void 0:r.isElement(m);case 24:_context14.t3=n=_context14.sent;_context14.t2=null==_context14.t3;if(_context14.t2){_context14.next=28;break;}_context14.t2=n;case 28:if(!_context14.t2){_context14.next=32;break;}_context14.t4=m;_context14.next=38;break;case 32:_context14.t5=m.contextElement;if(_context14.t5){_context14.next=37;break;}_context14.next=36;return null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating);case 36:_context14.t5=_context14.sent;case 37:_context14.t4=_context14.t5;case 38:_context14.t6=_context14.t4;_context14.t7=c;_context14.t8=u;_context14.t9=l;_context14.t10={element:_context14.t6,boundary:_context14.t7,rootBoundary:_context14.t8,strategy:_context14.t9};_context14.next=45;return _context14.t1.getClippingRect.call(_context14.t1,_context14.t10);case 45:_context14.t11=_context14.sent;b=(0,_context14.t0)(_context14.t11);g="floating"===f?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference;_context14.next=50;return null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating);case 50:v=_context14.sent;_context14.next=53;return null==r.isElement?void 0:r.isElement(v);case 53:_context14.t13=_context14.sent;if(!_context14.t13){_context14.next=58;break;}_context14.next=57;return null==r.getScale?void 0:r.getScale(v);case 57:_context14.t13=_context14.sent;case 58:_context14.t12=_context14.t13;if(_context14.t12){_context14.next=61;break;}_context14.t12={x:1,y:1};case 61:w=_context14.t12;_context14.t14=P;if(!r.convertOffsetParentRelativeRectToViewportRelativeRect){_context14.next=69;break;}_context14.next=66;return r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:l});case 66:_context14.t15=_context14.sent;_context14.next=70;break;case 69:_context14.t15=g;case 70:_context14.t16=_context14.t15;x=(0,_context14.t14)(_context14.t16);return _context14.abrupt("return",{top:(b.top-x.top+p.top)/w.y,bottom:(x.bottom-b.bottom+p.bottom)/w.y,left:(b.left-x.left+p.left)/w.x,right:(x.right-b.right+p.right)/w.x});case 73:case"end":return _context14.stop();}},_callee13);}));return _O.apply(this,arguments);}function F(t){return B(t)?(t.nodeName||"").toLowerCase():"#document";}function R(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window;}function j(t){var e;return null==(e=(B(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement;}function B(t){return t instanceof Node||t instanceof R(t).Node;}function C(t){return t instanceof Element||t instanceof R(t).Element;}function E(t){return t instanceof HTMLElement||t instanceof R(t).HTMLElement;}function N(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof R(t).ShadowRoot);}function D(t){var _ref=_(t),e=_ref.overflow,n=_ref.overflowX,i=_ref.overflowY,o=_ref.display;return /auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o);}function T(t){return["table","td","th"].includes(F(t));}function M(t){var e=L(),n=_(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(function(t){return(n.willChange||"").includes(t);})||["paint","layout","strict","content"].some(function(t){return(n.contain||"").includes(t);});}function L(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none");}function H(t){return["html","body","#document"].includes(F(t));}function _(t){return R(t).getComputedStyle(t);}function I(t){return C(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset};}function q(t){if("html"===F(t))return t;var e=t.assignedSlot||t.parentNode||N(t)&&t.host||j(t);return N(e)?e.host:e;}function W(t){var e=q(t);return H(e)?t.ownerDocument?t.ownerDocument.body:t.body:E(e)&&D(e)?e:W(e);}function Y(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);var o=W(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),a=R(o);return r?e.concat(a,a.visualViewport||[],D(o)?o:[],a.frameElement&&n?Y(a.frameElement):[]):e.concat(o,Y(o,[],n));}function V(t){var e=_(t);var n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;var o=E(t),r=o?t.offsetWidth:n,a=o?t.offsetHeight:i,s=u(n)!==r||u(i)!==a;return s&&(n=r,i=a),{width:n,height:i,$:s};}function X(t){return C(t)?t:t.contextElement;}function G(t){var e=X(t);if(!E(e))return h(1);var n=e.getBoundingClientRect(),_V=V(e),i=_V.width,o=_V.height,r=_V.$;var a=(r?u(n.width):n.width)/i,s=(r?u(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s};}function K(t){var e=R(t);return L()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:J;}function Q(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);var o=t.getBoundingClientRect(),r=X(t);var a=h(1);e&&(i?C(i)&&(a=G(i)):a=G(t));var s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==R(t))&&e;}(r,n,i)?K(r):h(0);var l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(r){var _t=R(r),_e=i&&C(i)?R(i):i;var _n=_t,_o=_n.frameElement;for(;_o&&i&&_e!==_n;){var _t2=G(_o),_e2=_o.getBoundingClientRect(),_i=_(_o),_r=_e2.left+(_o.clientLeft+parseFloat(_i.paddingLeft))*_t2.x,_a=_e2.top+(_o.clientTop+parseFloat(_i.paddingTop))*_t2.y;l*=_t2.x,c*=_t2.y,u*=_t2.x,f*=_t2.y,l+=_r,c+=_a,_n=R(_o),_o=_n.frameElement;}}return P({width:u,height:f,x:l,y:c});}function Z(t){return U.some(function(e){try{return t.matches(e);}catch(t){return!1;}});}function tt(t){return Q(j(t)).left+I(t).scrollLeft;}function et(t,e,n){var i;if("viewport"===e)i=function(t,e){var n=R(t),i=j(t),o=n.visualViewport;var r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;var _t3=L();(!_t3||_t3&&"fixed"===e)&&(s=o.offsetLeft,l=o.offsetTop);}return{width:r,height:a,x:s,y:l};}(t,n);else if("document"===e)i=function(t){var e=j(t),n=I(t),i=t.ownerDocument.body,o=c(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=c(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);var a=-n.scrollLeft+tt(t);var s=-n.scrollTop;return"rtl"===_(i).direction&&(a+=c(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s};}(j(t));else if(C(e))i=function(t,e){var n=Q(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=E(t)?G(t):h(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y};}(e,n);else{var _n2=K(t);i=_objectSpread(_objectSpread({},e),{},{x:e.x-_n2.x,y:e.y-_n2.y});}return P(i);}function nt(t,e){var n=q(t);return!(n===e||!C(n)||H(n))&&("fixed"===_(n).position||nt(n,e));}function it(t,e,n){var i=E(e),o=j(e),r="fixed"===n,a=Q(t,!0,r,e);var s={scrollLeft:0,scrollTop:0};var l=h(0);if(i||!i&&!r)if(("body"!==F(e)||D(o))&&(s=I(e)),i){var _t4=Q(e,!0,r,e);l.x=_t4.x+e.clientLeft,l.y=_t4.y+e.clientTop;}else o&&(l.x=tt(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height};}function ot(t){return"static"===_(t).position;}function rt(t,e){return E(t)&&"fixed"!==_(t).position?e?e(t):t.offsetParent:null;}function at(t,e){var n=R(t);if(Z(t))return n;if(!E(t)){var _e3=q(t);for(;_e3&&!H(_e3);){if(C(_e3)&&!ot(_e3))return _e3;_e3=q(_e3);}return n;}var i=rt(t,e);for(;i&&T(i)&&ot(i);)i=rt(i,e);return i&&H(i)&&ot(i)&&!M(i)?n:i||function(t){var e=q(t);for(;E(e)&&!H(e);){if(M(e))return e;e=q(e);}return null;}(t)||n;}function lt(t,e,n,i){void 0===i&&(i={});var _i2=i,_i2$ancestorScroll=_i2.ancestorScroll,o=_i2$ancestorScroll===void 0?!0:_i2$ancestorScroll,_i2$ancestorResize=_i2.ancestorResize,r=_i2$ancestorResize===void 0?!0:_i2$ancestorResize,_i2$elementResize=_i2.elementResize,a=_i2$elementResize===void 0?"function"==typeof ResizeObserver:_i2$elementResize,_i2$layoutShift=_i2.layoutShift,s=_i2$layoutShift===void 0?"function"==typeof IntersectionObserver:_i2$layoutShift,_i2$animationFrame=_i2.animationFrame,u=_i2$animationFrame===void 0?!1:_i2$animationFrame,h=X(t),d=o||r?[].concat(_toConsumableArray(h?Y(h):[]),_toConsumableArray(Y(e))):[];d.forEach(function(t){o&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n);});var p=h&&s?function(t,e){var n,i=null;var o=j(t);function r(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null;}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),r();var _t$getBoundingClientR=t.getBoundingClientRect(),h=_t$getBoundingClientR.left,d=_t$getBoundingClientR.top,p=_t$getBoundingClientR.width,m=_t$getBoundingClientR.height;if(s||e(),!p||!m)return;var y={rootMargin:-f(d)+"px "+-f(o.clientWidth-(h+p))+"px "+-f(o.clientHeight-(d+m))+"px "+-f(h)+"px",threshold:c(0,l(1,u))||1};var b=!0;function g(t){var e=t[0].intersectionRatio;if(e!==u){if(!b)return a();e?a(!1,e):n=setTimeout(function(){a(!1,1e-7);},1e3);}b=!1;}try{i=new IntersectionObserver(g,_objectSpread(_objectSpread({},y),{},{root:o.ownerDocument}));}catch(t){i=new IntersectionObserver(g,y);}i.observe(t);}(!0),r;}(h,n):null;var m,y=-1,b=null;a&&(b=new ResizeObserver(function(t){var _t6=_slicedToArray(t,1),i=_t6[0];i&&i.target===h&&b&&(b.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame(function(){var t;null==(t=b)||t.observe(e);})),n();}),h&&!u&&b.observe(h),b.observe(e));var g=u?Q(t):null;return u&&function e(){var i=Q(t);!g||i.x===g.x&&i.y===g.y&&i.width===g.width&&i.height===g.height||n();g=i,m=requestAnimationFrame(e);}(),n(),function(){var t;d.forEach(function(t){o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n);}),null==p||p(),null==(t=b)||t.disconnect(),b=null,u&&cancelAnimationFrame(m);};}function mt(t){return function(t){for(var _e7=t;_e7;_e7=yt(_e7))if(_e7 instanceof Element&&"none"===getComputedStyle(_e7).display)return null;for(var _e8=yt(t);_e8;_e8=yt(_e8)){if(!(_e8 instanceof Element))continue;var _t15=getComputedStyle(_e8);if("contents"!==_t15.display){if("static"!==_t15.position||"none"!==_t15.filter)return _e8;if("BODY"===_e8.tagName)return _e8;}}return null;}(t);}function yt(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode;}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_litDirectivesClassMapJs){e=_litDirectivesClassMapJs.classMap;},function(_litDecoratorsJs){n=_litDecoratorsJs.query;i=_litDecoratorsJs.property;o=_litDecoratorsJs.customElement;},function(_lit){r=_lit.html;},function(_internalNileElementCjsJs){a=_internalNileElementCjsJs.N;},function(_nilePopupCssCjsJs){s=_nilePopupCssCjsJs.s;},function(_index001CjsJs){}],execute:function execute(){_excluded=["mainAxis","crossAxis","limiter"];_excluded2=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"];_excluded3=["apply"];l=Math.min;c=Math.max;u=Math.round;f=Math.floor;h=function h(t){return{x:t,y:t};};d={left:"right",right:"left",bottom:"top",top:"bottom"};p={start:"end",end:"start"};J=h(0);U=[":popover-open",":modal"];st={convertOffsetParentRelativeRectToViewportRelativeRect:function convertOffsetParentRelativeRectToViewportRelativeRect(t){var e=t.elements,n=t.rect,i=t.offsetParent,o=t.strategy;var r="fixed"===o,a=j(i),s=!!e&&Z(e.floating);if(i===a||s&&r)return n;var l={scrollLeft:0,scrollTop:0},c=h(1);var u=h(0),f=E(i);if((f||!f&&!r)&&(("body"!==F(i)||D(a))&&(l=I(i)),E(i))){var _t5=Q(i);c=G(i),u.x=_t5.x+i.clientLeft,u.y=_t5.y+i.clientTop;}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y};},getDocumentElement:j,getClippingRect:function getClippingRect(t){var e=t.element,n=t.boundary,i=t.rootBoundary,o=t.strategy;var r=[].concat(_toConsumableArray("clippingAncestors"===n?Z(e)?[]:function(t,e){var n=e.get(t);if(n)return n;var i=Y(t,[],!1).filter(function(t){return C(t)&&"body"!==F(t);}),o=null;var r="fixed"===_(t).position;var a=r?q(t):t;for(;C(a)&&!H(a);){var _e4=_(a),_n3=M(a);_n3||"fixed"!==_e4.position||(o=null),(r?!_n3&&!o:!_n3&&"static"===_e4.position&&o&&["absolute","fixed"].includes(o.position)||D(a)&&!_n3&&nt(t,a))?i=i.filter(function(t){return t!==a;}):o=_e4,a=q(a);}return e.set(t,i),i;}(e,this._c):[].concat(n)),[i]),a=r[0],s=r.reduce(function(t,n){var i=et(e,n,o);return t.top=c(i.top,t.top),t.right=l(i.right,t.right),t.bottom=l(i.bottom,t.bottom),t.left=c(i.left,t.left),t;},et(e,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top};},getOffsetParent:at,getElementRects:function(){var _getElementRects=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(t){var e,n,i;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:e=this.getOffsetParent||at;n=this.getDimensions;_context2.next=4;return n(t.floating);case 4:i=_context2.sent;_context2.t0=it;_context2.t1=t.reference;_context2.next=9;return e(t.floating);case 9:_context2.t2=_context2.sent;_context2.t3=t.strategy;_context2.t4=(0,_context2.t0)(_context2.t1,_context2.t2,_context2.t3);_context2.t5={x:0,y:0,width:i.width,height:i.height};return _context2.abrupt("return",{reference:_context2.t4,floating:_context2.t5});case 14:case"end":return _context2.stop();}},_callee,this);}));function getElementRects(_x3){return _getElementRects.apply(this,arguments);}return getElementRects;}(),getClientRects:function getClientRects(t){return Array.from(t.getClientRects());},getDimensions:function getDimensions(t){var _V2=V(t),e=_V2.width,n=_V2.height;return{width:e,height:n};},getScale:G,isElement:C,isRTL:function isRTL(t){return"rtl"===_(t).direction;}};ct=function ct(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var n,i,o,r,a,s,l;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:o=e.x;r=e.y;a=e.placement;s=e.middlewareData;_context4.next=6;return function(){var _ref2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(t,e){var n,i,o,r,a,s,l,c,u,f,_ref3,h,d,p;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:n=t.placement;i=t.platform;o=t.elements;_context3.next=5;return null==i.isRTL?void 0:i.isRTL(o.floating);case 5:r=_context3.sent;a=b(n);s=g(n);l="y"===x(n);c=["left","top"].includes(a)?-1:1;u=r&&l?-1:1;f=y(e,t);_ref3="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:_objectSpread({mainAxis:0,crossAxis:0,alignmentAxis:null},f),h=_ref3.mainAxis,d=_ref3.crossAxis,p=_ref3.alignmentAxis;return _context3.abrupt("return",(s&&"number"==typeof p&&(d="end"===s?-1*p:p),l?{x:d*u,y:h*c}:{x:h*c,y:d*u}));case 14:case"end":return _context3.stop();}},_callee2);}));return function(_x4,_x5){return _ref2.apply(this,arguments);};}()(e,t);case 6:l=_context4.sent;return _context4.abrupt("return",a===(null==(n=s.offset)?void 0:n.placement)&&null!=(i=s.arrow)&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:_objectSpread(_objectSpread({},l),{},{placement:a})});case 8:case"end":return _context4.stop();}},_callee3);}))();}};};ut=function ut(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var n,i,o,_y,_y$mainAxis,r,_y$crossAxis,a,_y$limiter,s,l,c,u,f,h,d,p,_t7,_t8,g;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:n=e.x;i=e.y;o=e.placement;_y=y(t,e);_y$mainAxis=_y.mainAxis;r=_y$mainAxis===void 0?!0:_y$mainAxis;_y$crossAxis=_y.crossAxis;a=_y$crossAxis===void 0?!1:_y$crossAxis;_y$limiter=_y.limiter;s=_y$limiter===void 0?{fn:function fn(t){var e=t.x,n=t.y;return{x:e,y:n};}}:_y$limiter;l=_objectWithoutProperties(_y,_excluded);c={x:n,y:i};_context5.next=14;return O(e,l);case 14:u=_context5.sent;f=x(b(o));h=v(f);d=c[h],p=c[f];if(r){_t7="y"===h?"bottom":"right";d=m(d+u["y"===h?"top":"left"],d,d-u[_t7]);}if(a){_t8="y"===f?"bottom":"right";p=m(p+u["y"===f?"top":"left"],p,p-u[_t8]);}g=s.fn(_objectSpread(_objectSpread({},e),{},_defineProperty(_defineProperty({},h,d),f,p)));return _context5.abrupt("return",_objectSpread(_objectSpread({},g),{},{data:{x:g.x-n,y:g.y-i}}));case 22:case"end":return _context5.stop();}},_callee4);}))();}};};ft=function ft(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var n,i,o,r,a,s,l,c,_y2,_y2$mainAxis,u,_y2$crossAxis,f,h,_y2$fallbackStrategy,d,_y2$fallbackAxisSideD,p,_y2$flipAlignment,m,v,x,k,P,$,F,R,j,B,_t9,C,E,_t10,_e5,_n4,N,_t11;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:o=e.placement,r=e.middlewareData,a=e.rects,s=e.initialPlacement,l=e.platform,c=e.elements,_y2=y(t,e),_y2$mainAxis=_y2.mainAxis,u=_y2$mainAxis===void 0?!0:_y2$mainAxis,_y2$crossAxis=_y2.crossAxis,f=_y2$crossAxis===void 0?!0:_y2$crossAxis,h=_y2.fallbackPlacements,_y2$fallbackStrategy=_y2.fallbackStrategy,d=_y2$fallbackStrategy===void 0?"bestFit":_y2$fallbackStrategy,_y2$fallbackAxisSideD=_y2.fallbackAxisSideDirection,p=_y2$fallbackAxisSideD===void 0?"none":_y2$fallbackAxisSideD,_y2$flipAlignment=_y2.flipAlignment,m=_y2$flipAlignment===void 0?!0:_y2$flipAlignment,v=_objectWithoutProperties(_y2,_excluded2);if(!(null!=(n=r.arrow)&&n.alignmentOffset)){_context6.next=3;break;}return _context6.abrupt("return",{});case 3:x=b(o);k=b(s)===s;_context6.next=7;return null==l.isRTL?void 0:l.isRTL(c.floating);case 7:P=_context6.sent;$=h||(k||!m?[S(s)]:function(t){var e=S(t);return[z(t),e,z(e)];}(s));h||"none"===p||$.push.apply($,_toConsumableArray(function(t,e,n,i){var o=g(t);var r=function(t,e,n){var i=["left","right"],o=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:a;default:return[];}}(b(t),"start"===n,i);return o&&(r=r.map(function(t){return t+"-"+o;}),e&&(r=r.concat(r.map(z)))),r;}(s,m,p,P)));F=[s].concat(_toConsumableArray($));_context6.next=13;return O(e,v);case 13:R=_context6.sent;j=[];B=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&j.push(R[x]),f){_t9=function(t,e,n){void 0===n&&(n=!1);var i=g(t),o=A(t),r=w(o);var a="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=S(a)),[a,S(a)];}(o,a,P);j.push(R[_t9[0]],R[_t9[1]]);}if(!(B=[].concat(_toConsumableArray(B),[{placement:o,overflows:j}]),!j.every(function(t){return t<=0;}))){_context6.next=32;break;}_t10=((null==(C=r.flip)?void 0:C.index)||0)+1,_e5=F[_t10];if(!_e5){_context6.next=21;break;}return _context6.abrupt("return",{data:{index:_t10,overflows:B},reset:{placement:_e5}});case 21:_n4=null==(E=B.filter(function(t){return t.overflows[0]<=0;}).sort(function(t,e){return t.overflows[1]-e.overflows[1];})[0])?void 0:E.placement;if(_n4){_context6.next=30;break;}_context6.t0=d;_context6.next=_context6.t0==="bestFit"?26:_context6.t0==="initialPlacement"?29:30;break;case 26:_t11=null==(N=B.map(function(t){return[t.placement,t.overflows.filter(function(t){return t>0;}).reduce(function(t,e){return t+e;},0)];}).sort(function(t,e){return t[1]-e[1];})[0])?void 0:N[0];_t11&&(_n4=_t11);return _context6.abrupt("break",30);case 29:_n4=s;case 30:if(!(o!==_n4)){_context6.next=32;break;}return _context6.abrupt("return",{reset:{placement:_n4}});case 32:return _context6.abrupt("return",{});case 33:case"end":return _context6.stop();}},_callee5);}))();}};};ht=function ht(t){return void 0===t&&(t={}),{name:"size",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var n,i,o,r,_y3,_y3$apply,a,s,u,f,h,d,_i$floating,p,m,v,w,A,z,S,k,P,_t12,_t13,_t14,_e6,_n5,_i3,$;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:n=e.placement;i=e.rects;o=e.platform;r=e.elements;_y3=y(t,e);_y3$apply=_y3.apply;a=_y3$apply===void 0?function(){}:_y3$apply;s=_objectWithoutProperties(_y3,_excluded3);_context7.next=10;return O(e,s);case 10:u=_context7.sent;f=b(n);h=g(n);d="y"===x(n);_i$floating=i.floating;p=_i$floating.width;m=_i$floating.height;if(!("top"===f||"bottom"===f)){_context7.next=36;break;}v=f;_context7.t0=h;_context7.next=22;return null==o.isRTL?void 0:o.isRTL(r.floating);case 22:if(!_context7.sent){_context7.next=26;break;}_context7.t1="start";_context7.next=27;break;case 26:_context7.t1="end";case 27:_context7.t2=_context7.t1;if(!(_context7.t0===_context7.t2)){_context7.next=32;break;}_context7.t3="left";_context7.next=33;break;case 32:_context7.t3="right";case 33:w=_context7.t3;_context7.next=37;break;case 36:w=f,v="end"===h?"top":"bottom";case 37:A=m-u[v],z=p-u[w],S=!e.middlewareData.shift;k=A,P=z;if(d){_t12=p-u.left-u.right;P=h||S?l(z,_t12):_t12;}else{_t13=m-u.top-u.bottom;k=h||S?l(A,_t13):_t13;}if(S&&!h){_t14=c(u.left,0),_e6=c(u.right,0),_n5=c(u.top,0),_i3=c(u.bottom,0);d?P=p-2*(0!==_t14||0!==_e6?_t14+_e6:c(u.left,u.right)):k=m-2*(0!==_n5||0!==_i3?_n5+_i3:c(u.top,u.bottom));}_context7.next=43;return a(_objectSpread(_objectSpread({},e),{},{availableWidth:P,availableHeight:k}));case 43:_context7.next=45;return o.getDimensions(r.floating);case 45:$=_context7.sent;return _context7.abrupt("return",p!==$.width||m!==$.height?{reset:{rects:!0}}:{});case 47:case"end":return _context7.stop();}},_callee6);}))();}};};dt=function dt(t){return{name:"arrow",options:t,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var n,i,o,r,a,s,c,_ref4,u,_ref4$padding,f,h,d,p,b,v,x,z,S,P,$,O,F,R,j,B,C,E,N,D,T,M,L,H;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:n=e.x,i=e.y,o=e.placement,r=e.rects,a=e.platform,s=e.elements,c=e.middlewareData,_ref4=y(t,e)||{},u=_ref4.element,_ref4$padding=_ref4.padding,f=_ref4$padding===void 0?0:_ref4$padding;if(!(null==u)){_context8.next=3;break;}return _context8.abrupt("return",{});case 3:h=k(f);d={x:n,y:i};p=A(o);b=w(p);_context8.next=9;return a.getDimensions(u);case 9:v=_context8.sent;x="y"===p;z=x?"top":"left";S=x?"bottom":"right";P=x?"clientHeight":"clientWidth";$=r.reference[b]+r.reference[p]-d[p]-r.floating[b];O=d[p]-r.reference[p];_context8.next=18;return null==a.getOffsetParent?void 0:a.getOffsetParent(u);case 18:F=_context8.sent;R=F?F[P]:0;_context8.t0=R;if(!_context8.t0){_context8.next=25;break;}_context8.next=24;return null==a.isElement?void 0:a.isElement(F);case 24:_context8.t0=_context8.sent;case 25:_context8.t1=_context8.t0;if(_context8.t1){_context8.next=28;break;}R=s.floating[P]||r.floating[b];case 28:j=$/2-O/2,B=R/2-v[b]/2-1,C=l(h[z],B),E=l(h[S],B),N=C,D=R-v[b]-E,T=R/2-v[b]/2+j,M=m(N,T,D),L=!c.arrow&&null!=g(o)&&T!==M&&r.reference[b]/2-(T<N?C:E)-v[b]/2<0,H=L?T<N?T-N:T-D:0;return _context8.abrupt("return",_defineProperty(_defineProperty(_defineProperty({},p,d[p]+H),"data",_objectSpread(_defineProperty(_defineProperty({},p,M),"centerOffset",T-M-H),L&&{alignmentOffset:H})),"reset",L));case 30:case"end":return _context8.stop();}},_callee7);}))();}};};pt=function pt(t,e,n){var i=new Map(),o=_objectSpread({platform:st},n),r=_objectSpread(_objectSpread({},o.platform),{},{_c:i});return function(){var _ref6=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(t,e,n){var _n$placement,i,_n$strategy,o,_n$middleware,r,a,s,l,c,_$,u,f,h,d,p,_n6,_$2,_s$_n,_r2,_m,_yield$m,_y4,_b,_g,v;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_n$placement=n.placement;i=_n$placement===void 0?"bottom":_n$placement;_n$strategy=n.strategy;o=_n$strategy===void 0?"absolute":_n$strategy;_n$middleware=n.middleware;r=_n$middleware===void 0?[]:_n$middleware;a=n.platform;s=r.filter(Boolean);_context9.next=10;return null==a.isRTL?void 0:a.isRTL(e);case 10:l=_context9.sent;_context9.next=13;return a.getElementRects({reference:t,floating:e,strategy:o});case 13:c=_context9.sent;_$=$(c,i,l);u=_$.x;f=_$.y;h=i;d={};p=0;_n6=0;case 21:if(!(_n6<s.length)){_context9.next=56;break;}_s$_n=s[_n6];_r2=_s$_n.name;_m=_s$_n.fn;_context9.next=27;return _m({x:u,y:f,initialPlacement:i,placement:h,strategy:o,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});case 27:_yield$m=_context9.sent;_y4=_yield$m.x;_b=_yield$m.y;_g=_yield$m.data;v=_yield$m.reset;u=null!=_y4?_y4:u;f=null!=_b?_b:f;d=_objectSpread(_objectSpread({},d),{},_defineProperty({},_r2,_objectSpread(_objectSpread({},d[_r2]),_g)));_context9.t0=v&&p<=50;if(!_context9.t0){_context9.next=53;break;}p++;_context9.t1="object"==_typeof(v);if(!_context9.t1){_context9.next=52;break;}v.placement&&(h=v.placement);_context9.t2=v.rects;if(!_context9.t2){_context9.next=51;break;}if(!(!0===v.rects)){_context9.next=49;break;}_context9.next=46;return a.getElementRects({reference:t,floating:e,strategy:o});case 46:_context9.t3=_context9.sent;_context9.next=50;break;case 49:_context9.t3=v.rects;case 50:c=_context9.t3;case 51:_$2=$(c,h,l),u=_$2.x,f=_$2.y;case 52:_n6=-1;case 53:_n6++;_context9.next=21;break;case 56:return _context9.abrupt("return",{x:u,y:f,placement:h,strategy:o,middlewareData:d});case 57:case"end":return _context9.stop();}},_callee8);}));return function(_x6,_x7,_x8){return _ref6.apply(this,arguments);};}()(t,e,_objectSpread(_objectSpread({},o),{},{platform:r}));};_export("N",bt=/*#__PURE__*/function(_a2){function bt(){var _this;_classCallCheck(this,bt);_this=_callSuper(this,bt,arguments),_this.BUBBLES=!1,_this.COMPOSED=!1,_this.active=!1,_this.placement="top",_this.strategy="absolute",_this.distance=0,_this.skidding=0,_this.arrow=!1,_this.arrowPlacement="anchor",_this.arrowPadding=10,_this.flip=!1,_this.flipFallbackPlacements="",_this.flipFallbackStrategy="best-fit",_this.flipPadding=0,_this.shift=!1,_this.shiftPadding=0,_this.autoSizePadding=0;return _this;}_inherits(bt,_a2);return _createClass(bt,[{key:"connectedCallback",value:function(){var _connectedCallback=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_get(_getPrototypeOf(bt.prototype),"connectedCallback",this).call(this);_context10.next=3;return this.updateComplete;case 3:this.start();case 4:case"end":return _context10.stop();}},_callee9,this);}));function connectedCallback(){return _connectedCallback.apply(this,arguments);}return connectedCallback;}()},{key:"disconnectedCallback",value:function disconnectedCallback(){this.stop();}},{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(t){return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_get(_getPrototypeOf(bt.prototype),"updated",this).call(this,t);t.has("active")&&(this.active?this.start():this.stop());t.has("anchor")&&this.handleAnchorChange();_context11.t0=this.active;if(!_context11.t0){_context11.next=8;break;}_context11.next=7;return this.updateComplete;case 7:this.reposition();case 8:case"end":return _context11.stop();}},_callee10,this);}));function updated(_x9){return _updated.apply(this,arguments);}return updated;}()},{key:"handleAnchorChange",value:function(){var _handleAnchorChange=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var _t16;return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return this.stop();case 2:if(!(this.anchor&&"string"==typeof this.anchor)){_context12.next=7;break;}_t16=this.getRootNode();this.anchorEl=_t16.getElementById(this.anchor);_context12.next=8;break;case 7:this.anchor instanceof Element?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');case 8:if(!(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)){_context12.next=10;break;}throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");case 10:this.start();case 11:case"end":return _context12.stop();}},_callee11,this);}));function handleAnchorChange(){return _handleAnchorChange.apply(this,arguments);}return handleAnchorChange;}()},{key:"start",value:function start(){var _this2=this;this.anchorEl&&(this.cleanup=lt(this.anchorEl,this.popup,function(){_this2.reposition();}));}},{key:"stop",value:function(){var _stop=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(){var _this3=this;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:return _context13.abrupt("return",new Promise(function(t){_this3.cleanup?(_this3.cleanup(),_this3.cleanup=void 0,_this3.removeAttribute("data-current-placement"),_this3.style.removeProperty("--auto-size-available-width"),_this3.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(function(){return t();})):t();}));case 1:case"end":return _context13.stop();}},_callee12);}));function stop(){return _stop.apply(this,arguments);}return stop;}()},{key:"reposition",value:function reposition(){var _this4=this;if(!this.active||!this.anchorEl)return;var t=[ct({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(ht({apply:function apply(_ref7){var t=_ref7.rects;var e="width"===_this4.sync||"both"===_this4.sync,n="height"===_this4.sync||"both"===_this4.sync;_this4.popup.style.width=e?"".concat(t.reference.width,"px"):"",_this4.popup.style.height=n?"".concat(t.reference.height,"px"):"";}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(ft({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(ut({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(ht({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:function apply(_ref8){var t=_ref8.availableWidth,e=_ref8.availableHeight;"vertical"===_this4.autoSize||"both"===_this4.autoSize?_this4.style.setProperty("--auto-size-available-height","".concat(e,"px")):_this4.style.removeProperty("--auto-size-available-height"),"horizontal"===_this4.autoSize||"both"===_this4.autoSize?_this4.style.setProperty("--auto-size-available-width","".concat(t,"px")):_this4.style.removeProperty("--auto-size-available-width");}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(dt({element:this.arrowEl,padding:this.arrowPadding}));var e="absolute"===this.strategy?function(t){return st.getOffsetParent(t,mt);}:st.getOffsetParent;pt(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:_objectSpread(_objectSpread({},st),{},{getOffsetParent:e})}).then(function(_ref9){var t=_ref9.x,e=_ref9.y,n=_ref9.middlewareData,i=_ref9.placement;var o="rtl"===getComputedStyle(_this4).direction,r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(_this4.setAttribute("data-current-placement",i),Object.assign(_this4.popup.style,{left:"".concat(t,"px"),top:"".concat(e,"px")}),_this4.arrow){var _t17=n.arrow.x,_e9=n.arrow.y;var _i4="",_a3="",_s="",_l="";if("start"===_this4.arrowPlacement){var _n7="number"==typeof _t17?"calc(".concat(_this4.arrowPadding,"px - var(--arrow-padding-offset))"):"";_i4="number"==typeof _e9?"calc(".concat(_this4.arrowPadding,"px - var(--arrow-padding-offset))"):"",_a3=o?_n7:"",_l=o?"":_n7;}else if("end"===_this4.arrowPlacement){var _n8="number"==typeof _t17?"calc(".concat(_this4.arrowPadding,"px - var(--arrow-padding-offset))"):"";_a3=o?"":_n8,_l=o?_n8:"",_s="number"==typeof _e9?"calc(".concat(_this4.arrowPadding,"px - var(--arrow-padding-offset))"):"";}else"center"===_this4.arrowPlacement?(_l="number"==typeof _t17?"calc(50% - var(--arrow-size-diagonal))":"",_i4="number"==typeof _e9?"calc(50% - var(--arrow-size-diagonal))":""):(_l="number"==typeof _t17?"".concat(_t17,"px"):"",_i4="number"==typeof _e9?"".concat(_e9,"px"):"");Object.assign(_this4.arrowEl.style,_defineProperty({top:_i4,right:_a3,bottom:_s,left:_l},r,"calc(var(--arrow-size-diagonal) * -1)"));}}),this.emit("reposition");}},{key:"render",value:function render(){return r(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <slot name=\"anchor\" @slotchange=","></slot>\n\n <div\n part=\"popup\"\n class=","\n >\n <slot></slot>\n ","\n </div>\n "])),this.handleAnchorChange,e({popup:!0,"popup--active":this.active,"popup--fixed":"fixed"===this.strategy,"popup--has-arrow":this.arrow}),this.arrow?r(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<div part=\"arrow\" class=\"popup__arrow\" role=\"presentation\"></div>"]))):"");}}]);}(a));bt.styles=s,t([n(".popup")],bt.prototype,"popup",void 0),t([n(".popup__arrow")],bt.prototype,"arrowEl",void 0),t([i()],bt.prototype,"anchor",void 0),t([i({type:Boolean,reflect:!0})],bt.prototype,"active",void 0),t([i({reflect:!0})],bt.prototype,"placement",void 0),t([i({reflect:!0})],bt.prototype,"strategy",void 0),t([i({type:Number})],bt.prototype,"distance",void 0),t([i({type:Number})],bt.prototype,"skidding",void 0),t([i({type:Boolean})],bt.prototype,"arrow",void 0),t([i({attribute:"arrow-placement"})],bt.prototype,"arrowPlacement",void 0),t([i({attribute:"arrow-padding",type:Number})],bt.prototype,"arrowPadding",void 0),t([i({type:Boolean})],bt.prototype,"flip",void 0),t([i({attribute:"flip-fallback-placements",converter:{fromAttribute:function fromAttribute(t){return t.split(" ").map(function(t){return t.trim();}).filter(function(t){return""!==t;});},toAttribute:function toAttribute(t){return t.join(" ");}}})],bt.prototype,"flipFallbackPlacements",void 0),t([i({attribute:"flip-fallback-strategy"})],bt.prototype,"flipFallbackStrategy",void 0),t([i({type:Object})],bt.prototype,"flipBoundary",void 0),t([i({attribute:"flip-padding",type:Number})],bt.prototype,"flipPadding",void 0),t([i({type:Boolean})],bt.prototype,"shift",void 0),t([i({type:Object})],bt.prototype,"shiftBoundary",void 0),t([i({attribute:"shift-padding",type:Number})],bt.prototype,"shiftPadding",void 0),t([i({attribute:"auto-size"})],bt.prototype,"autoSize",void 0),t([i()],bt.prototype,"sync",void 0),t([i({type:Object})],bt.prototype,"autoSizeBoundary",void 0),t([i({attribute:"auto-size-padding",type:Number})],bt.prototype,"autoSizePadding",void 0),_export("N",bt=t([o("nile-popup")],bt));}};});
2
2
  //# sourceMappingURL=nile-popup.cjs.js.map