@aquera/nile-elements 2.0.20 → 2.0.21

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 (134) hide show
  1. package/README.md +3 -0
  2. package/dist/floating-ui.dom-9df9f37b.cjs.js +2 -0
  3. package/dist/floating-ui.dom-9df9f37b.cjs.js.map +1 -0
  4. package/dist/floating-ui.dom-c4ea6a32.esm.js +1 -0
  5. package/dist/index.cjs.js +1 -1
  6. package/dist/index.esm.js +1 -1
  7. package/dist/index.js +523 -486
  8. package/dist/nile-auto-complete/index.cjs.js +1 -1
  9. package/dist/nile-auto-complete/index.esm.js +1 -1
  10. package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -1
  11. package/dist/nile-auto-complete/nile-auto-complete.esm.js +1 -1
  12. package/dist/nile-auto-complete/portal-manager.cjs.js +1 -1
  13. package/dist/nile-auto-complete/portal-manager.esm.js +1 -1
  14. package/dist/nile-button/nile-button.cjs.js +1 -1
  15. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  16. package/dist/nile-button/nile-button.css.cjs.js +1 -1
  17. package/dist/nile-button/nile-button.css.cjs.js.map +1 -1
  18. package/dist/nile-button/nile-button.css.esm.js +46 -9
  19. package/dist/nile-button/nile-button.esm.js +6 -6
  20. package/dist/nile-color-picker/index.cjs.js +1 -1
  21. package/dist/nile-color-picker/index.esm.js +1 -1
  22. package/dist/nile-color-picker/nile-color-picker.cjs.js +1 -1
  23. package/dist/nile-color-picker/nile-color-picker.esm.js +1 -1
  24. package/dist/nile-combobox/index.cjs.js +1 -1
  25. package/dist/nile-combobox/index.esm.js +1 -1
  26. package/dist/nile-combobox/nile-combobox.cjs.js +1 -1
  27. package/dist/nile-combobox/nile-combobox.esm.js +1 -1
  28. package/dist/nile-combobox/portal-manager.cjs.js +1 -1
  29. package/dist/nile-combobox/portal-manager.esm.js +1 -1
  30. package/dist/nile-dropdown/index.cjs.js +1 -1
  31. package/dist/nile-dropdown/index.esm.js +1 -1
  32. package/dist/nile-dropdown/nile-dropdown.cjs.js +1 -1
  33. package/dist/nile-dropdown/nile-dropdown.esm.js +1 -1
  34. package/dist/nile-dropdown/portal-manager.cjs.js +1 -1
  35. package/dist/nile-dropdown/portal-manager.esm.js +1 -1
  36. package/dist/nile-markdown-editor/index.cjs.js +1 -1
  37. package/dist/nile-markdown-editor/index.esm.js +1 -1
  38. package/dist/nile-markdown-editor/nile-markdown-editor.cjs.js +1 -1
  39. package/dist/nile-markdown-editor/nile-markdown-editor.esm.js +1 -1
  40. package/dist/nile-popover/index.cjs.js +1 -1
  41. package/dist/nile-popover/index.esm.js +1 -1
  42. package/dist/nile-popover/nile-popover.cjs.js +1 -1
  43. package/dist/nile-popover/nile-popover.esm.js +1 -1
  44. package/dist/nile-popover/portal-manager.cjs.js +1 -1
  45. package/dist/nile-popover/portal-manager.esm.js +1 -1
  46. package/dist/nile-popup/index.cjs.js +1 -1
  47. package/dist/nile-popup/index.esm.js +1 -1
  48. package/dist/nile-popup/nile-popup.cjs.js +1 -1
  49. package/dist/nile-popup/nile-popup.esm.js +1 -1
  50. package/dist/nile-select/index.cjs.js +1 -1
  51. package/dist/nile-select/index.esm.js +1 -1
  52. package/dist/nile-select/nile-select.cjs.js +1 -1
  53. package/dist/nile-select/nile-select.esm.js +1 -1
  54. package/dist/nile-select/portal-manager.cjs.js +1 -1
  55. package/dist/nile-select/portal-manager.esm.js +1 -1
  56. package/dist/nile-side-bar-action/index.cjs.js +1 -1
  57. package/dist/nile-side-bar-action/index.esm.js +1 -1
  58. package/dist/nile-side-bar-action/nile-side-bar-action.cjs.js +1 -1
  59. package/dist/nile-side-bar-action/nile-side-bar-action.esm.js +1 -1
  60. package/dist/nile-side-bar-action/portal-manager.cjs.js +1 -1
  61. package/dist/nile-side-bar-action/portal-manager.esm.js +1 -1
  62. package/dist/nile-tooltip/index.cjs.js +1 -1
  63. package/dist/nile-tooltip/index.esm.js +1 -1
  64. package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
  65. package/dist/nile-tooltip/nile-tooltip.esm.js +1 -1
  66. package/dist/nile-virtual-select/index.cjs.js +1 -1
  67. package/dist/nile-virtual-select/index.esm.js +1 -1
  68. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +1 -1
  69. package/dist/nile-virtual-select/nile-virtual-select.esm.js +1 -1
  70. package/dist/nile-virtual-select/portal-manager.cjs.js +1 -1
  71. package/dist/nile-virtual-select/portal-manager.esm.js +1 -1
  72. package/dist/nile-wysiwyg-editor/index.cjs.js +1 -1
  73. package/dist/nile-wysiwyg-editor/index.esm.js +1 -1
  74. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js +1 -1
  75. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.esm.js +1 -1
  76. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/index.cjs.js +1 -1
  77. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/index.esm.js +1 -1
  78. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.cjs.js +1 -1
  79. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.esm.js +1 -1
  80. package/dist/src/nile-button/nile-button.css.js +46 -9
  81. package/dist/src/nile-button/nile-button.css.js.map +1 -1
  82. package/dist/src/nile-button/nile-button.d.ts +2 -2
  83. package/dist/src/nile-button/nile-button.js +13 -5
  84. package/dist/src/nile-button/nile-button.js.map +1 -1
  85. package/dist/src/nile-button/nile-button.test.js +140 -2
  86. package/dist/src/nile-button/nile-button.test.js.map +1 -1
  87. package/dist/src/nile-date-time-picker/nile-date-time-picker.phases-1.test.d.ts +47 -0
  88. package/dist/src/nile-date-time-picker/nile-date-time-picker.phases-1.test.js +578 -0
  89. package/dist/src/nile-date-time-picker/nile-date-time-picker.phases-1.test.js.map +1 -0
  90. package/dist/src/nile-date-time-picker/nile-date-time-picker.phases-2.test.d.ts +3 -0
  91. package/dist/src/nile-date-time-picker/nile-date-time-picker.phases-2.test.js +109 -0
  92. package/dist/src/nile-date-time-picker/nile-date-time-picker.phases-2.test.js.map +1 -0
  93. package/dist/src/nile-date-time-picker/nile-date-time-picker.phases-3.test.d.ts +3 -0
  94. package/dist/src/nile-date-time-picker/nile-date-time-picker.phases-3.test.js +356 -0
  95. package/dist/src/nile-date-time-picker/nile-date-time-picker.phases-3.test.js.map +1 -0
  96. package/dist/src/nile-date-time-picker/nile-date-time-picker.phases-4.test.d.ts +4 -0
  97. package/dist/src/nile-date-time-picker/nile-date-time-picker.phases-4.test.js +339 -0
  98. package/dist/src/nile-date-time-picker/nile-date-time-picker.phases-4.test.js.map +1 -0
  99. package/dist/src/nile-date-time-picker/nile-date-time-picker.regressions.test.d.ts +3 -0
  100. package/dist/src/nile-date-time-picker/nile-date-time-picker.regressions.test.js +1472 -0
  101. package/dist/src/nile-date-time-picker/nile-date-time-picker.regressions.test.js.map +1 -0
  102. package/dist/src/nile-date-time-picker/nile-date-time-picker.test-helpers.d.ts +103 -0
  103. package/dist/src/nile-date-time-picker/nile-date-time-picker.test-helpers.js +331 -0
  104. package/dist/src/nile-date-time-picker/nile-date-time-picker.test-helpers.js.map +1 -0
  105. package/dist/src/nile-date-time-picker/nile-date-time-picker.test.d.ts +0 -140
  106. package/dist/src/nile-date-time-picker/nile-date-time-picker.test.js +1 -4495
  107. package/dist/src/nile-date-time-picker/nile-date-time-picker.test.js.map +1 -1
  108. package/dist/src/nile-date-time-picker/nile-date-time-picker.year-handling.test.d.ts +3 -0
  109. package/dist/src/nile-date-time-picker/nile-date-time-picker.year-handling.test.js +1440 -0
  110. package/dist/src/nile-date-time-picker/nile-date-time-picker.year-handling.test.js.map +1 -0
  111. package/dist/src/version.js +1 -1
  112. package/dist/src/version.js.map +1 -1
  113. package/dist/tsconfig.tsbuildinfo +1 -1
  114. package/package.json +2 -2
  115. package/rollup.config.js +1 -0
  116. package/scripts/component-metrics.mjs +145 -0
  117. package/scripts/merge-coverage.cjs +33 -0
  118. package/src/nile-button/nile-button.css.ts +46 -9
  119. package/src/nile-button/nile-button.test.ts +162 -2
  120. package/src/nile-button/nile-button.ts +13 -4
  121. package/src/nile-date-time-picker/nile-date-time-picker.phases-1.test.ts +607 -0
  122. package/src/nile-date-time-picker/nile-date-time-picker.phases-2.test.ts +112 -0
  123. package/src/nile-date-time-picker/nile-date-time-picker.phases-3.test.ts +389 -0
  124. package/src/nile-date-time-picker/nile-date-time-picker.phases-4.test.ts +329 -0
  125. package/src/nile-date-time-picker/nile-date-time-picker.regressions.test.ts +1618 -0
  126. package/src/nile-date-time-picker/nile-date-time-picker.test-helpers.ts +381 -0
  127. package/src/nile-date-time-picker/nile-date-time-picker.test.ts +1 -4771
  128. package/src/nile-date-time-picker/nile-date-time-picker.year-handling.test.ts +1499 -0
  129. package/test-timings.json +41 -0
  130. package/vscode-html-custom-data.json +19 -1
  131. package/web-test-runner.config.mjs +72 -2
  132. package/dist/floating-ui.dom-007bbe96.cjs.js +0 -2
  133. package/dist/floating-ui.dom-007bbe96.cjs.js.map +0 -1
  134. package/dist/floating-ui.dom-cc9126da.esm.js +0 -1
@@ -0,0 +1,41 @@
1
+ {
2
+ "nile-date-time-picker/nile-date-time-picker.phases-1.test.js": 122980,
3
+ "nile-date-time-picker/nile-date-time-picker.phases-2.test.js": 98332,
4
+ "nile-date-time-picker/nile-date-time-picker.phases-4.test.js": 88192,
5
+ "nile-date-time-picker/nile-date-time-picker.phases-3.test.js": 76213,
6
+ "nile-calendar/nile-calendar.test.js": 51819,
7
+ "nile-date-time-picker/nile-date-time-picker.year-handling.test.js": 39163,
8
+ "nile-select/nile-select.test.js": 30500,
9
+ "nile-app-shell/nile-app-shell.test.js": 15210,
10
+ "nile-wysiwyg-editor/nile-wysiwyg-editor.test.js": 12161,
11
+ "nile-wysiwyg-editor/nile-wysiwyg-editor-email-fidelity.test.js": 11427,
12
+ "nile-date-time-picker/nile-date-time-picker.test.js": 11258,
13
+ "nile-virtual-select/nile-virtual-select.test.js": 10602,
14
+ "nile-command-menu/nile-command-menu.test.js": 9593,
15
+ "nile-detail/nile-detail.test.js": 8122,
16
+ "nile-date-time-picker/nile-date-time-picker.regressions.test.js": 7684,
17
+ "nile-minimap/nile-minimap.test.js": 6438,
18
+ "nile-empty-state/nile-empty-state.test.js": 4624,
19
+ "nile-drawer/nile-drawer.test.js": 3811,
20
+ "nile-nav-tab-group/nile-nav-tab-group.test.js": 3701,
21
+ "nile-combobox/nile-combobox.test.js": 2599,
22
+ "nile-nav-tab/nile-nav-tab.test.js": 1899,
23
+ "nile-wysiwyg-editor/engine/productivity.test.js": 1889,
24
+ "nile-segmented-progress-bar/nile-segmented-progress-bar.test.js": 1875,
25
+ "nile-wysiwyg-editor/engine/pm.test.js": 1837,
26
+ "nile-wysiwyg-editor/engine/markdown-parse.test.js": 1754,
27
+ "nile-markdown-editor/nile-markdown-editor.test.js": 1483,
28
+ "nile-qr-code/nile-qr-code.test.js": 1483,
29
+ "nile-wysiwyg-editor/engine/export.test.js": 1392,
30
+ "nile-tab/nile-tab.test.js": 1367,
31
+ "nile-dialog/nile-dialog.test.js": 1353,
32
+ "nile-badge/nile-badge.test.js": 1334,
33
+ "nile-option/nile-option.test.js": 1326,
34
+ "nile-input/nile-input.test.js": 1305,
35
+ "nile-tab-group/nile-tab-group.test.js": 1302,
36
+ "nile-toast/nile-toast.test.js": 1295,
37
+ "nile-icon/nile-icon.test.js": 1258,
38
+ "nile-app-shell/nile-app-shell-regions.test.js": 1236,
39
+ "nile-pagination/nile-pagination.test.js": 1230,
40
+ "nile-tag/nile-tag.test.js": 1202
41
+ }
@@ -707,7 +707,7 @@
707
707
  },
708
708
  {
709
709
  "name": "nile-button",
710
- "description": "Events:\n\n * `nile-blur` {} - Emitted when the button loses focus.\n\n * `nile-focus` {} - Emitted when the button gains focus.\n\n * `nile-invalid` {} - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\nSlots:\n\n * ` ` {} - The button's label.\n\n * `prefix` {} - A presentational prefix icon or similar element.\n\n * `suffix` {} - A presentational suffix icon or similar element.\n\nAttributes:\n\n * `title` {`string`} - \n\n * `variant` {`\"primary\" | \"secondary\" | \"tertiary\" | \"caution\" | \"ghost\" | \"destructive\" | \"secondary-grey\" | \"secondary-blue\"`} - The button's theme variant.\n\n * `caret` {`boolean`} - Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior.\n\n * `loading` {`boolean`} - Draws the button in a loading state.\n\n * `outline` {`boolean`} - Draws an outlined button.\n\n * `pill` {`boolean`} - Draws a pill-style button with rounded edges.\n\n * `circle` {`boolean`} - Draws a circular icon button. When this attribute is present, the button expects a single `<nile-icon>` in the\ndefault slot.\n\n * `type` {`\"button\" | \"submit\" | \"reset\"`} - The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native\n`<button>` elements behave. When the type is `submit`, the button will submit the surrounding form.\n\n * `href` {`string`} - When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.\n\n * `target` {`\"_blank\" | \"_parent\" | \"_self\" | \"_top\"`} - Tells the browser where to open the link. Only used when `href` is present.\n\n * `rel` {`string`} - When using `href`, this attribute will map to the underlying link's `rel` attribute. Unlike regular links, the\ndefault is `noreferrer noopener` to prevent security exploits. However, if you're using `target` to point to a\nspecific tab/window, this will prevent that from working correctly. You can remove or change the default value by\nsetting the attribute to an empty string or a value of your choice, respectively.\n\n * `download` {`string | undefined`} - Tells the browser to download the linked file as this filename. Only used when `href` is present.\n\n * `formaction` {`string`} - Used to override the form owner's `action` attribute.\n\n * `formenctype` {`\"application/x-www-form-urlencoded\" | \"multipart/form-data\" | \"text/plain\"`} - Used to override the form owner's `enctype` attribute.\n\n * `formmethod` {`\"post\" | \"get\"`} - Used to override the form owner's `method` attribute.\n\n * `formnovalidate` {`boolean`} - Used to override the form owner's `novalidate` attribute.\n\n * `formtarget` {`string`} - Used to override the form owner's `target` attribute.\n\n * `hide-border` {`boolean`} - \n\n * `name` {`string`} - The name of the button, submitted as a name/value pair with form data, but only when this button is the submitter.\nThis attribute is ignored when `href` is present.\n\n * `value` {`string`} - The value of the button, submitted as a pair with the button's name as part of the form data, but only when this\nbutton is the submitter. This attribute is ignored when `href` is present.\n\n * `disabled` {`boolean`} - Disables the button.\n\n * `form` {`string`} - The \"form owner\" to associate the button with. If omitted, the closest containing form will be used instead. The\nvalue of this attribute must be an id of a form in the same document or shadow root as the button.\n\nProperties:\n\n * `styles` - \n\n * `formControlController` - \n\n * `hasSlotController` - \n\n * `button` {`HTMLButtonElement | HTMLLinkElement`} - \n\n * `hasFocus` {`boolean`} - \n\n * `invalid` {`boolean`} - \n\n * `title` {`string`} - \n\n * `variant` {`\"primary\" | \"secondary\" | \"tertiary\" | \"caution\" | \"ghost\" | \"destructive\" | \"secondary-grey\" | \"secondary-blue\"`} - The button's theme variant.\n\n * `size` {`string`} - The button's size.\n\n * `caret` {`boolean`} - Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior.\n\n * `loading` {`boolean`} - Draws the button in a loading state.\n\n * `outline` {`boolean`} - Draws an outlined button.\n\n * `pill` {`boolean`} - Draws a pill-style button with rounded edges.\n\n * `circle` {`boolean`} - Draws a circular icon button. When this attribute is present, the button expects a single `<nile-icon>` in the\ndefault slot.\n\n * `type` {`\"button\" | \"submit\" | \"reset\"`} - The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native\n`<button>` elements behave. When the type is `submit`, the button will submit the surrounding form.\n\n * `href` {`string`} - When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.\n\n * `target` {`\"_blank\" | \"_parent\" | \"_self\" | \"_top\"`} - Tells the browser where to open the link. Only used when `href` is present.\n\n * `rel` {`string`} - When using `href`, this attribute will map to the underlying link's `rel` attribute. Unlike regular links, the\ndefault is `noreferrer noopener` to prevent security exploits. However, if you're using `target` to point to a\nspecific tab/window, this will prevent that from working correctly. You can remove or change the default value by\nsetting the attribute to an empty string or a value of your choice, respectively.\n\n * `download` {`string | undefined`} - Tells the browser to download the linked file as this filename. Only used when `href` is present.\n\n * `formAction` {`string`} - Used to override the form owner's `action` attribute.\n\n * `formEnctype` {`\"application/x-www-form-urlencoded\" | \"multipart/form-data\" | \"text/plain\"`} - Used to override the form owner's `enctype` attribute.\n\n * `formMethod` {`\"post\" | \"get\"`} - Used to override the form owner's `method` attribute.\n\n * `formNoValidate` {`boolean`} - Used to override the form owner's `novalidate` attribute.\n\n * `formTarget` {`string`} - Used to override the form owner's `target` attribute.\n\n * `hideBorder` {`boolean`} - \n\n * `name` {`string`} - The name of the button, submitted as a name/value pair with form data, but only when this button is the submitter.\nThis attribute is ignored when `href` is present.\n\n * `value` {`string`} - The value of the button, submitted as a pair with the button's name as part of the form data, but only when this\nbutton is the submitter. This attribute is ignored when `href` is present.\n\n * `disabled` {`boolean`} - Disables the button.\n\n * `defaultValue` {`unknown`} - \n\n * `defaultChecked` {`boolean | undefined`} - \n\n * `form` {`string`} - The \"form owner\" to associate the button with. If omitted, the closest containing form will be used instead. The\nvalue of this attribute must be an id of a form in the same document or shadow root as the button.\n\n * `pattern` {`string | undefined`} - \n\n * `min` {`string | number | Date | undefined`} - \n\n * `max` {`string | number | Date | undefined`} - \n\n * `step` {`number | \"any\" | undefined`} - \n\n * `required` {`boolean | undefined`} - \n\n * `minlength` {`number | undefined`} - \n\n * `maxlength` {`number | undefined`} - \n\n * `validity` {`ValidityState`} - Gets the validity state object\n\n * `validationMessage` {`string`} - Gets the validation message\n\n * `checkValidity` - \n\n * `getForm` - \n\n * `reportValidity` - \n\n * `setCustomValidity` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
710
+ "description": "Events:\n\n * `nile-blur` {} - Emitted when the button loses focus.\n\n * `nile-focus` {} - Emitted when the button gains focus.\n\n * `nile-invalid` {} - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\nSlots:\n\n * ` ` {} - The button's label.\n\n * `prefix` {} - A presentational prefix icon or similar element.\n\n * `suffix` {} - A presentational suffix icon or similar element.\n\nAttributes:\n\n * `title` {`string`} - \n\n * `variant` {`\"primary\" | \"secondary\" | \"tertiary\" | \"caution\" | \"ghost\" | \"destructive\" | \"secondary-grey\" | \"secondary-blue\"`} - The button's theme variant.\n\n * `size` {`\"sm\" | \"md\" | \"lg\" | \"xl\"`} - The button's size. Unknown values fall back to `md`.\n\n * `caret` {`boolean`} - Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior.\n\n * `loading` {`boolean`} - Draws the button in a loading state.\n\n * `outline` {`boolean`} - Draws an outlined button.\n\n * `pill` {`boolean`} - Draws a pill-style button with rounded edges.\n\n * `circle` {`boolean`} - Draws a circular icon button. When this attribute is present, the button expects a single `<nile-icon>` in the\ndefault slot.\n\n * `type` {`\"button\" | \"submit\" | \"reset\"`} - The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native\n`<button>` elements behave. When the type is `submit`, the button will submit the surrounding form.\n\n * `href` {`string`} - When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.\n\n * `target` {`\"_blank\" | \"_parent\" | \"_self\" | \"_top\"`} - Tells the browser where to open the link. Only used when `href` is present.\n\n * `rel` {`string`} - When using `href`, this attribute will map to the underlying link's `rel` attribute. Unlike regular links, the\ndefault is `noreferrer noopener` to prevent security exploits. However, if you're using `target` to point to a\nspecific tab/window, this will prevent that from working correctly. You can remove or change the default value by\nsetting the attribute to an empty string or a value of your choice, respectively.\n\n * `download` {`string | undefined`} - Tells the browser to download the linked file as this filename. Only used when `href` is present.\n\n * `formaction` {`string`} - Used to override the form owner's `action` attribute.\n\n * `formenctype` {`\"application/x-www-form-urlencoded\" | \"multipart/form-data\" | \"text/plain\"`} - Used to override the form owner's `enctype` attribute.\n\n * `formmethod` {`\"post\" | \"get\"`} - Used to override the form owner's `method` attribute.\n\n * `formnovalidate` {`boolean`} - Used to override the form owner's `novalidate` attribute.\n\n * `formtarget` {`string`} - Used to override the form owner's `target` attribute.\n\n * `hide-border` {`boolean`} - \n\n * `name` {`string`} - The name of the button, submitted as a name/value pair with form data, but only when this button is the submitter.\nThis attribute is ignored when `href` is present.\n\n * `value` {`string`} - The value of the button, submitted as a pair with the button's name as part of the form data, but only when this\nbutton is the submitter. This attribute is ignored when `href` is present.\n\n * `disabled` {`boolean`} - Disables the button.\n\n * `form` {`string`} - The \"form owner\" to associate the button with. If omitted, the closest containing form will be used instead. The\nvalue of this attribute must be an id of a form in the same document or shadow root as the button.\n\nProperties:\n\n * `styles` - \n\n * `formControlController` - \n\n * `hasSlotController` - \n\n * `button` {`HTMLButtonElement | HTMLLinkElement`} - \n\n * `hasFocus` {`boolean`} - \n\n * `invalid` {`boolean`} - \n\n * `title` {`string`} - \n\n * `variant` {`\"primary\" | \"secondary\" | \"tertiary\" | \"caution\" | \"ghost\" | \"destructive\" | \"secondary-grey\" | \"secondary-blue\"`} - The button's theme variant.\n\n * `size` {`\"sm\" | \"md\" | \"lg\" | \"xl\"`} - The button's size. Unknown values fall back to `md`.\n\n * `caret` {`boolean`} - Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior.\n\n * `loading` {`boolean`} - Draws the button in a loading state.\n\n * `outline` {`boolean`} - Draws an outlined button.\n\n * `pill` {`boolean`} - Draws a pill-style button with rounded edges.\n\n * `circle` {`boolean`} - Draws a circular icon button. When this attribute is present, the button expects a single `<nile-icon>` in the\ndefault slot.\n\n * `type` {`\"button\" | \"submit\" | \"reset\"`} - The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native\n`<button>` elements behave. When the type is `submit`, the button will submit the surrounding form.\n\n * `href` {`string`} - When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.\n\n * `target` {`\"_blank\" | \"_parent\" | \"_self\" | \"_top\"`} - Tells the browser where to open the link. Only used when `href` is present.\n\n * `rel` {`string`} - When using `href`, this attribute will map to the underlying link's `rel` attribute. Unlike regular links, the\ndefault is `noreferrer noopener` to prevent security exploits. However, if you're using `target` to point to a\nspecific tab/window, this will prevent that from working correctly. You can remove or change the default value by\nsetting the attribute to an empty string or a value of your choice, respectively.\n\n * `download` {`string | undefined`} - Tells the browser to download the linked file as this filename. Only used when `href` is present.\n\n * `formAction` {`string`} - Used to override the form owner's `action` attribute.\n\n * `formEnctype` {`\"application/x-www-form-urlencoded\" | \"multipart/form-data\" | \"text/plain\"`} - Used to override the form owner's `enctype` attribute.\n\n * `formMethod` {`\"post\" | \"get\"`} - Used to override the form owner's `method` attribute.\n\n * `formNoValidate` {`boolean`} - Used to override the form owner's `novalidate` attribute.\n\n * `formTarget` {`string`} - Used to override the form owner's `target` attribute.\n\n * `hideBorder` {`boolean`} - \n\n * `name` {`string`} - The name of the button, submitted as a name/value pair with form data, but only when this button is the submitter.\nThis attribute is ignored when `href` is present.\n\n * `value` {`string`} - The value of the button, submitted as a pair with the button's name as part of the form data, but only when this\nbutton is the submitter. This attribute is ignored when `href` is present.\n\n * `disabled` {`boolean`} - Disables the button.\n\n * `defaultValue` {`unknown`} - \n\n * `defaultChecked` {`boolean | undefined`} - \n\n * `form` {`string`} - The \"form owner\" to associate the button with. If omitted, the closest containing form will be used instead. The\nvalue of this attribute must be an id of a form in the same document or shadow root as the button.\n\n * `pattern` {`string | undefined`} - \n\n * `min` {`string | number | Date | undefined`} - \n\n * `max` {`string | number | Date | undefined`} - \n\n * `step` {`number | \"any\" | undefined`} - \n\n * `required` {`boolean | undefined`} - \n\n * `minlength` {`number | undefined`} - \n\n * `maxlength` {`number | undefined`} - \n\n * `validity` {`ValidityState`} - Gets the validity state object\n\n * `validationMessage` {`string`} - Gets the validation message\n\n * `checkValidity` - \n\n * `getForm` - \n\n * `reportValidity` - \n\n * `setCustomValidity` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
711
711
  "attributes": [
712
712
  {
713
713
  "name": "title",
@@ -743,6 +743,24 @@
743
743
  }
744
744
  ]
745
745
  },
746
+ {
747
+ "name": "size",
748
+ "description": "`size` {`\"sm\" | \"md\" | \"lg\" | \"xl\"`} - The button's size. Unknown values fall back to `md`.\n\nProperty: size\n\nDefault: md",
749
+ "values": [
750
+ {
751
+ "name": "sm"
752
+ },
753
+ {
754
+ "name": "md"
755
+ },
756
+ {
757
+ "name": "lg"
758
+ },
759
+ {
760
+ "name": "xl"
761
+ }
762
+ ]
763
+ },
746
764
  {
747
765
  "name": "caret",
748
766
  "description": "`caret` {`boolean`} - Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior.\n\nProperty: caret\n\nDefault: false",
@@ -1,16 +1,83 @@
1
+ import { defaultReporter } from '@web/test-runner';
1
2
  import { puppeteerLauncher } from '@web/test-runner-puppeteer';
2
3
  import { fromRollup } from '@web/dev-server-rollup';
3
4
  import rollupReplace from '@rollup/plugin-replace';
4
5
  import rollupCommonjs from '@rollup/plugin-commonjs';
5
6
 
7
+ import { readdirSync, readFileSync } from 'node:fs';
8
+ import { join, relative } from 'node:path';
9
+
6
10
  const replace = fromRollup(rollupReplace);
7
11
  const commonjs = fromRollup(rollupCommonjs);
8
12
 
9
13
  const filteredLogs = ['Running in dev mode', 'lit-html is in dev mode', 'Multiple versions of Lit loaded', 'The main \'lit-element\' module entrypoint is deprecated'];
10
14
 
15
+ const TEST_GLOB = 'dist/src/**/*.test.js';
16
+
17
+ // CI sharding: WTR_SHARD="<index>/<total>" (1-based) runs one slice of the test files, so the
18
+ // pipeline can spread the suite over parallel steps. Each file still runs serially, as below.
19
+ // Files are packed greedily by measured run time (test-timings.json, ms per file; files not in it
20
+ // count as DEFAULT_TEST_MS) so the shards finish at roughly the same time. Every CI run writes a
21
+ // fresh test-results/test-timings.json artifact; copy it over test-timings.json when the split
22
+ // drifts. Coverage goes to coverage/shard-<index> and is merged by scripts/merge-coverage.cjs.
23
+ const shard = /^(\d+)\/(\d+)$/.exec(process.env.WTR_SHARD ?? '');
24
+ const DEFAULT_TEST_MS = 900;
25
+
26
+ function loadTimings() {
27
+ try {
28
+ return JSON.parse(readFileSync('test-timings.json', 'utf8'));
29
+ } catch {
30
+ return {};
31
+ }
32
+ }
33
+
34
+ function shardFiles(index, total) {
35
+ const found = [];
36
+ const walk = dir => {
37
+ for (const entry of readdirSync(dir, { withFileTypes: true })) {
38
+ const path = join(dir, entry.name);
39
+ if (entry.isDirectory()) walk(path);
40
+ else if (entry.name.endsWith('.test.js')) found.push({ path, ms: timings[relative(root, path)] ?? DEFAULT_TEST_MS });
41
+ }
42
+ };
43
+ const root = 'dist/src';
44
+ const timings = loadTimings();
45
+ walk(root);
46
+ found.sort((a, b) => b.ms - a.ms || a.path.localeCompare(b.path));
47
+ const bins = Array.from({ length: total }, () => ({ ms: 0, files: [] }));
48
+ for (const file of found) {
49
+ const bin = bins.reduce((min, b) => (b.ms < min.ms ? b : min));
50
+ bin.ms += file.ms;
51
+ bin.files.push(file.path);
52
+ }
53
+ return bins[index - 1].files;
54
+ }
55
+
56
+ // Sharded runs also print each file's wall time ("[timing] <ms> <file>", slowest first), so the
57
+ // shard split can be checked against real durations. Files run one at a time, so the gap between
58
+ // consecutive file results is that file's time.
59
+ function timingReporter() {
60
+ const times = [];
61
+ let last = 0;
62
+ return {
63
+ start() {
64
+ last = Date.now();
65
+ },
66
+ reportTestFileResults({ testFile }) {
67
+ const now = Date.now();
68
+ times.push([now - last, testFile.replace(/^.*dist\/src\//, '')]);
69
+ last = now;
70
+ },
71
+ onTestRunFinished() {
72
+ times.sort((a, b) => b[0] - a[0]);
73
+ for (const [ms, file] of times) console.log(`[timing] ${ms} ${file}`);
74
+ },
75
+ };
76
+ }
77
+
11
78
  export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
12
79
  /** Test files to run */
13
- files: 'dist/src/**/*.test.js',
80
+ files: shard ? shardFiles(Number(shard[1]), Number(shard[2])) : TEST_GLOB,
14
81
 
15
82
  /** Resolve bare module imports */
16
83
  nodeResolve: {
@@ -36,6 +103,8 @@ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
36
103
  testsStartTimeout: 60000,
37
104
  testsFinishTimeout: 300000,
38
105
 
106
+ reporters: shard ? [defaultReporter(), timingReporter()] : [defaultReporter()],
107
+
39
108
  /** Browsers to run tests on */
40
109
  browsers: [
41
110
  puppeteerLauncher({
@@ -67,7 +136,8 @@ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
67
136
  /** Coverage configuration */
68
137
  coverageConfig: {
69
138
  include: ['dist/src/**/*.js'],
70
- exclude: ['dist/src/**/*.test.js'],
139
+ exclude: ['dist/src/**/*.test.js', 'dist/src/**/*.test-helpers.js'],
140
+ reportDir: shard ? `coverage/shard-${shard[1]}` : 'coverage',
71
141
  reporters: ['html', 'text-summary', 'lcov', 'json', 'cobertura'],
72
142
  thresholds: {
73
143
  statements: 100,
@@ -1,2 +0,0 @@
1
- System.register([],function(_export,_context){"use strict";var _excluded,_excluded2,_excluded3,t,n,e,o,r,i,l,V,nt,rt,it,lt,at,ct,st;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(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_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(r){if(Array.isArray(r))return r;}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(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_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(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}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(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}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 a(e,o,r){return n(e,t(o,r));}function c(t,n){return"function"==typeof t?t(n):t;}function s(t){return t.split("-")[0];}function u(t){return t.split("-")[1];}function f(t){return"x"===t?"y":"x";}function d(t){return"y"===t?"height":"width";}function m(t){return["top","bottom"].includes(s(t))?"y":"x";}function h(t){return f(m(t));}function y(t){return t.replace(/start|end/g,function(t){return l[t];});}function p(t){return t.replace(/left|right|bottom|top/g,function(t){return i[t];});}function g(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 w(t){var n=t.x,e=t.y,o=t.width,r=t.height;return{width:o,height:r,top:e,left:n,right:n+o,bottom:e+r,x:n,y:e};}function x(t,n,e){var o=t.reference,r=t.floating;var i=m(n),l=h(n),a=d(l),c=s(n),f="y"===i,y=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,g=o[a]/2-r[a]/2;var w;switch(c){case"top":w={x:y,y:o.y-r.height};break;case"bottom":w={x:y,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:p};break;case"left":w={x:o.x-r.width,y:p};break;default:w={x:o.x,y:o.y};}switch(u(n)){case"start":w[l]-=g*(e&&f?-1:1);break;case"end":w[l]+=g*(e&&f?-1:1);}return w;}function v(_x,_x2){return _v.apply(this,arguments);}function _v(){_v=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(t,n){var e,o,r,i,l,a,s,_c4,_c4$boundary,u,_c4$rootBoundary,f,_c4$elementContext,d,_c4$altBoundary,m,_c4$padding,h,y,p,x,v,b,A,R;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:void 0===n&&(n={});o=t.x;r=t.y;i=t.platform;l=t.rects;a=t.elements;s=t.strategy;_c4=c(n,t);_c4$boundary=_c4.boundary;u=_c4$boundary===void 0?"clippingAncestors":_c4$boundary;_c4$rootBoundary=_c4.rootBoundary;f=_c4$rootBoundary===void 0?"viewport":_c4$rootBoundary;_c4$elementContext=_c4.elementContext;d=_c4$elementContext===void 0?"floating":_c4$elementContext;_c4$altBoundary=_c4.altBoundary;m=_c4$altBoundary===void 0?!1:_c4$altBoundary;_c4$padding=_c4.padding;h=_c4$padding===void 0?0:_c4$padding;y=g(h);p=a[m?"floating"===d?"reference":"floating":d];_context10.t0=w;_context10.t1=i;_context10.next=24;return null==i.isElement?void 0:i.isElement(p);case 24:_context10.t3=e=_context10.sent;_context10.t2=null==_context10.t3;if(_context10.t2){_context10.next=28;break;}_context10.t2=e;case 28:if(!_context10.t2){_context10.next=32;break;}_context10.t4=p;_context10.next=38;break;case 32:_context10.t5=p.contextElement;if(_context10.t5){_context10.next=37;break;}_context10.next=36;return null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating);case 36:_context10.t5=_context10.sent;case 37:_context10.t4=_context10.t5;case 38:_context10.t6=_context10.t4;_context10.t7=u;_context10.t8=f;_context10.t9=s;_context10.t10={element:_context10.t6,boundary:_context10.t7,rootBoundary:_context10.t8,strategy:_context10.t9};_context10.next=45;return _context10.t1.getClippingRect.call(_context10.t1,_context10.t10);case 45:_context10.t11=_context10.sent;x=(0,_context10.t0)(_context10.t11);v="floating"===d?{x:o,y:r,width:l.floating.width,height:l.floating.height}:l.reference;_context10.next=50;return null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating);case 50:b=_context10.sent;_context10.next=53;return null==i.isElement?void 0:i.isElement(b);case 53:_context10.t13=_context10.sent;if(!_context10.t13){_context10.next=58;break;}_context10.next=57;return null==i.getScale?void 0:i.getScale(b);case 57:_context10.t13=_context10.sent;case 58:_context10.t12=_context10.t13;if(_context10.t12){_context10.next=61;break;}_context10.t12={x:1,y:1};case 61:A=_context10.t12;_context10.t14=w;if(!i.convertOffsetParentRelativeRectToViewportRelativeRect){_context10.next=69;break;}_context10.next=66;return i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:b,strategy:s});case 66:_context10.t15=_context10.sent;_context10.next=70;break;case 69:_context10.t15=v;case 70:_context10.t16=_context10.t15;R=(0,_context10.t14)(_context10.t16);return _context10.abrupt("return",{top:(x.top-R.top+y.top)/A.y,bottom:(R.bottom-x.bottom+y.bottom)/A.y,left:(x.left-R.left+y.left)/A.x,right:(R.right-x.right+y.right)/A.x});case 73:case"end":return _context10.stop();}},_callee9);}));return _v.apply(this,arguments);}function b(){return"undefined"!=typeof window;}function A(t){return k(t)?(t.nodeName||"").toLowerCase():"#document";}function R(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window;}function S(t){var n;return null==(n=(k(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement;}function k(t){return!!b()&&(t instanceof Node||t instanceof R(t).Node);}function F(t){return!!b()&&(t instanceof Element||t instanceof R(t).Element);}function O(t){return!!b()&&(t instanceof HTMLElement||t instanceof R(t).HTMLElement);}function T(t){return!(!b()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof R(t).ShadowRoot);}function D(t){var _B=B(t),n=_B.overflow,e=_B.overflowX,o=_B.overflowY,r=_B.display;return /auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r);}function P(t){return["table","td","th"].includes(A(t));}function z(t){return[":popover-open",":modal"].some(function(n){try{return t.matches(n);}catch(t){return!1;}});}function M(t){var n=C(),e=F(t)?B(t):t;return["transform","translate","scale","rotate","perspective"].some(function(t){return!!e[t]&&"none"!==e[t];})||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","translate","scale","rotate","perspective","filter"].some(function(t){return(e.willChange||"").includes(t);})||["paint","layout","strict","content"].some(function(t){return(e.contain||"").includes(t);});}function C(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none");}function L(t){return["html","body","#document"].includes(A(t));}function B(t){return R(t).getComputedStyle(t);}function E(t){return F(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY};}function H(t){if("html"===A(t))return t;var n=t.assignedSlot||t.parentNode||T(t)&&t.host||S(t);return T(n)?n.host:n;}function I(t){var n=H(t);return L(n)?t.ownerDocument?t.ownerDocument.body:t.body:O(n)&&D(n)?n:I(n);}function N(t,n,e){var o;void 0===n&&(n=[]),void 0===e&&(e=!0);var r=I(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),l=R(r);if(i){var _t=j(l);return n.concat(l,l.visualViewport||[],D(r)?r:[],_t&&e?N(_t):[]);}return n.concat(r,N(r,[],e));}function j(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null;}function q(t){var n=B(t);var o=parseFloat(n.width)||0,r=parseFloat(n.height)||0;var i=O(t),l=i?t.offsetWidth:o,a=i?t.offsetHeight:r,c=e(o)!==l||e(r)!==a;return c&&(o=l,r=a),{width:o,height:r,$:c};}function W(t){return F(t)?t:t.contextElement;}function $(t){var n=W(t);if(!O(n))return r(1);var o=n.getBoundingClientRect(),_q=q(n),i=_q.width,l=_q.height,a=_q.$;var c=(a?e(o.width):o.width)/i,s=(a?e(o.height):o.height)/l;return c&&Number.isFinite(c)||(c=1),s&&Number.isFinite(s)||(s=1),{x:c,y:s};}function X(t){var n=R(t);return C()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:V;}function Y(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);var i=t.getBoundingClientRect(),l=W(t);var a=r(1);n&&(o?F(o)&&(a=$(o)):a=$(t));var c=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==R(t))&&n;}(l,e,o)?X(l):r(0);var s=(i.left+c.x)/a.x,u=(i.top+c.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l){var _t2=R(l),_n=o&&F(o)?R(o):o;var _e=_t2,_r=j(_e);for(;_r&&o&&_n!==_e;){var _t3=$(_r),_n2=_r.getBoundingClientRect(),_o=B(_r),_i=_n2.left+(_r.clientLeft+parseFloat(_o.paddingLeft))*_t3.x,_l=_n2.top+(_r.clientTop+parseFloat(_o.paddingTop))*_t3.y;s*=_t3.x,u*=_t3.y,f*=_t3.x,d*=_t3.y,s+=_i,u+=_l,_e=R(_r),_r=j(_e);}}return w({width:f,height:d,x:s,y:u});}function _(t,n){var e=E(t).scrollLeft;return n?n.left+e:Y(S(t)).left+e;}function G(t,n,e){void 0===e&&(e=!1);var o=t.getBoundingClientRect();return{x:o.left+n.scrollLeft-(e?0:_(t,o)),y:o.top+n.scrollTop};}function J(t,e,o){var i;if("viewport"===e)i=function(t,n){var e=R(t),o=S(t),r=e.visualViewport;var i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(r){i=r.width,l=r.height;var _t4=C();(!_t4||_t4&&"fixed"===n)&&(a=r.offsetLeft,c=r.offsetTop);}return{width:i,height:l,x:a,y:c};}(t,o);else if("document"===e)i=function(t){var e=S(t),o=E(t),r=t.ownerDocument.body,i=n(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),l=n(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);var a=-o.scrollLeft+_(t);var c=-o.scrollTop;return"rtl"===B(r).direction&&(a+=n(e.clientWidth,r.clientWidth)-i),{width:i,height:l,x:a,y:c};}(S(t));else if(F(e))i=function(t,n){var e=Y(t,!0,"fixed"===n),o=e.top+t.clientTop,i=e.left+t.clientLeft,l=O(t)?$(t):r(1);return{width:t.clientWidth*l.x,height:t.clientHeight*l.y,x:i*l.x,y:o*l.y};}(e,o);else{var _n3=X(t);i={x:e.x-_n3.x,y:e.y-_n3.y,width:e.width,height:e.height};}return w(i);}function K(t,n){var e=H(t);return!(e===n||!F(e)||L(e))&&("fixed"===B(e).position||K(e,n));}function Q(t,n,e){var o=O(n),i=S(n),l="fixed"===e,a=Y(t,!0,l,n);var c={scrollLeft:0,scrollTop:0};var s=r(0);if(o||!o&&!l)if(("body"!==A(n)||D(i))&&(c=E(n)),o){var _t5=Y(n,!0,l,n);s.x=_t5.x+n.clientLeft,s.y=_t5.y+n.clientTop;}else i&&(s.x=_(i));var u=!i||o||l?r(0):G(i,c);return{x:a.left+c.scrollLeft-s.x-u.x,y:a.top+c.scrollTop-s.y-u.y,width:a.width,height:a.height};}function U(t){return"static"===B(t).position;}function Z(t,n){if(!O(t)||"fixed"===B(t).position)return null;if(n)return n(t);var e=t.offsetParent;return S(t)===e&&(e=e.ownerDocument.body),e;}function tt(t,n){var e=R(t);if(z(t))return e;if(!O(t)){var _n4=H(t);for(;_n4&&!L(_n4);){if(F(_n4)&&!U(_n4))return _n4;_n4=H(_n4);}return e;}var o=Z(t,n);for(;o&&P(o)&&U(o);)o=Z(o,n);return o&&L(o)&&U(o)&&!M(o)?e:o||function(t){var n=H(t);for(;O(n)&&!L(n);){if(M(n))return n;if(z(n))return null;n=H(n);}return null;}(t)||e;}function et(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height;}function ot(e,r,i,l){void 0===l&&(l={});var _l2=l,_l2$ancestorScroll=_l2.ancestorScroll,a=_l2$ancestorScroll===void 0?!0:_l2$ancestorScroll,_l2$ancestorResize=_l2.ancestorResize,c=_l2$ancestorResize===void 0?!0:_l2$ancestorResize,_l2$elementResize=_l2.elementResize,s=_l2$elementResize===void 0?"function"==typeof ResizeObserver:_l2$elementResize,_l2$layoutShift=_l2.layoutShift,u=_l2$layoutShift===void 0?"function"==typeof IntersectionObserver:_l2$layoutShift,_l2$animationFrame=_l2.animationFrame,f=_l2$animationFrame===void 0?!1:_l2$animationFrame,d=W(e),m=a||c?[].concat(_toConsumableArray(d?N(d):[]),_toConsumableArray(N(r))):[];m.forEach(function(t){a&&t.addEventListener("scroll",i,{passive:!0}),c&&t.addEventListener("resize",i);});var h=d&&u?function(e,r){var i,l=null;var a=S(e);function c(){var t;clearTimeout(i),null==(t=l)||t.disconnect(),l=null;}return function s(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),c();var d=e.getBoundingClientRect(),m=d.left,h=d.top,y=d.width,p=d.height;if(u||r(),!y||!p)return;var g={rootMargin:-o(h)+"px "+-o(a.clientWidth-(m+y))+"px "+-o(a.clientHeight-(h+p))+"px "+-o(m)+"px",threshold:n(0,t(1,f))||1};var w=!0;function x(t){var n=t[0].intersectionRatio;if(n!==f){if(!w)return s();n?s(!1,n):i=setTimeout(function(){s(!1,1e-7);},1e3);}1!==n||et(d,e.getBoundingClientRect())||s(),w=!1;}try{l=new IntersectionObserver(x,_objectSpread(_objectSpread({},g),{},{root:a.ownerDocument}));}catch(t){l=new IntersectionObserver(x,g);}l.observe(e);}(!0),c;}(d,i):null;var y,p=-1,g=null;s&&(g=new ResizeObserver(function(t){var _t7=_slicedToArray(t,1),n=_t7[0];n&&n.target===d&&g&&(g.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame(function(){var t;null==(t=g)||t.observe(r);})),i();}),d&&!f&&g.observe(d),g.observe(r));var w=f?Y(e):null;return f&&function t(){var n=Y(e);w&&!et(w,n)&&i();w=n,y=requestAnimationFrame(t);}(),i(),function(){var t;m.forEach(function(t){a&&t.removeEventListener("scroll",i),c&&t.removeEventListener("resize",i);}),null==h||h(),null==(t=g)||t.disconnect(),g=null,f&&cancelAnimationFrame(y);};}_export("b",ot);return{setters:[],execute:function execute(){_excluded=["mainAxis","crossAxis","limiter"],_excluded2=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],_excluded3=["apply"];t=Math.min,n=Math.max,e=Math.round,o=Math.floor,r=function r(t){return{x:t,y:t};},i={left:"right",right:"left",bottom:"top",top:"bottom"},l={start:"end",end:"start"};V=r(0);_export("p",nt={convertOffsetParentRelativeRectToViewportRelativeRect:function convertOffsetParentRelativeRectToViewportRelativeRect(t){var n=t.elements,e=t.rect,o=t.offsetParent,i=t.strategy;var l="fixed"===i,a=S(o),c=!!n&&z(n.floating);if(o===a||c&&l)return e;var s={scrollLeft:0,scrollTop:0},u=r(1);var f=r(0),d=O(o);if((d||!d&&!l)&&(("body"!==A(o)||D(a))&&(s=E(o)),O(o))){var _t6=Y(o);u=$(o),f.x=_t6.x+o.clientLeft,f.y=_t6.y+o.clientTop;}var m=!a||d||l?r(0):G(a,s,!0);return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-s.scrollLeft*u.x+f.x+m.x,y:e.y*u.y-s.scrollTop*u.y+f.y+m.y};},getDocumentElement:S,getClippingRect:function getClippingRect(e){var o=e.element,r=e.boundary,i=e.rootBoundary,l=e.strategy;var a=[].concat(_toConsumableArray("clippingAncestors"===r?z(o)?[]:function(t,n){var e=n.get(t);if(e)return e;var o=N(t,[],!1).filter(function(t){return F(t)&&"body"!==A(t);}),r=null;var i="fixed"===B(t).position;var l=i?H(t):t;for(;F(l)&&!L(l);){var _n5=B(l),_e2=M(l);_e2||"fixed"!==_n5.position||(r=null),(i?!_e2&&!r:!_e2&&"static"===_n5.position&&r&&["absolute","fixed"].includes(r.position)||D(l)&&!_e2&&K(t,l))?o=o.filter(function(t){return t!==l;}):r=_n5,l=H(l);}return n.set(t,o),o;}(o,this._c):[].concat(r)),[i]),c=a[0],s=a.reduce(function(e,r){var i=J(o,r,l);return e.top=n(i.top,e.top),e.right=t(i.right,e.right),e.bottom=t(i.bottom,e.bottom),e.left=n(i.left,e.left),e;},J(o,c,l));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top};},getOffsetParent:tt,getElementRects:function(){var _getElementRects=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(t){var n,e,o;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:n=this.getOffsetParent||tt;e=this.getDimensions;_context2.next=4;return e(t.floating);case 4:o=_context2.sent;_context2.t0=Q;_context2.t1=t.reference;_context2.next=9;return n(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:o.width,height:o.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 _q2=q(t),n=_q2.width,e=_q2.height;return{width:n,height:e};},getScale:$,isElement:F,isRTL:function isRTL(t){return"rtl"===B(t).direction;}});_export("o",rt=function rt(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function fn(n){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var e,o,r,i,l,a,f;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:r=n.x;i=n.y;l=n.placement;a=n.middlewareData;_context4.next=6;return function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(t,n){var e,o,r,i,l,a,f,d,h,y,_ref2,p,g,w;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:e=t.placement;o=t.platform;r=t.elements;_context3.next=5;return null==o.isRTL?void 0:o.isRTL(r.floating);case 5:i=_context3.sent;l=s(e);a=u(e);f="y"===m(e);d=["left","top"].includes(l)?-1:1;h=i&&f?-1:1;y=c(n,t);_ref2="number"==typeof y?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis},p=_ref2.mainAxis,g=_ref2.crossAxis,w=_ref2.alignmentAxis;return _context3.abrupt("return",(a&&"number"==typeof w&&(g="end"===a?-1*w:w),f?{x:g*h,y:p*d}:{x:p*d,y:g*h}));case 14:case"end":return _context3.stop();}},_callee2);}));return function(_x4,_x5){return _ref.apply(this,arguments);};}()(n,t);case 6:f=_context4.sent;return _context4.abrupt("return",l===(null==(e=a.offset)?void 0:e.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:r+f.x,y:i+f.y,data:_objectSpread(_objectSpread({},f),{},{placement:l})});case 8:case"end":return _context4.stop();}},_callee3);}))();}};}),_export("a",it=function it(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function fn(n){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var e,o,r,_c,_c$mainAxis,i,_c$crossAxis,l,_c$limiter,u,d,h,y,p,g,w,x,_t8,_t9,b;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:e=n.x;o=n.y;r=n.placement;_c=c(t,n);_c$mainAxis=_c.mainAxis;i=_c$mainAxis===void 0?!0:_c$mainAxis;_c$crossAxis=_c.crossAxis;l=_c$crossAxis===void 0?!1:_c$crossAxis;_c$limiter=_c.limiter;u=_c$limiter===void 0?{fn:function fn(t){var n=t.x,e=t.y;return{x:n,y:e};}}:_c$limiter;d=_objectWithoutProperties(_c,_excluded);h={x:e,y:o};_context5.next=14;return v(n,d);case 14:y=_context5.sent;p=m(s(r));g=f(p);w=h[g],x=h[p];if(i){_t8="y"===g?"bottom":"right";w=a(w+y["y"===g?"top":"left"],w,w-y[_t8]);}if(l){_t9="y"===p?"bottom":"right";x=a(x+y["y"===p?"top":"left"],x,x-y[_t9]);}b=u.fn(_objectSpread(_objectSpread({},n),{},_defineProperty(_defineProperty({},g,w),p,x)));return _context5.abrupt("return",_objectSpread(_objectSpread({},b),{},{data:{x:b.x-e,y:b.y-o,enabled:_defineProperty(_defineProperty({},g,i),p,l)}}));case 22:case"end":return _context5.stop();}},_callee4);}))();}};}),_export("f",lt=function lt(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function fn(n){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var e,o,r,i,l,a,f,g,_c2,_c2$mainAxis,w,_c2$crossAxis,x,b,_c2$fallbackStrategy,A,_c2$fallbackAxisSideD,R,_c2$flipAlignment,S,k,F,O,T,D,P,z,M,C,L,B,_t10,E,H,_t11,_n6,_e3,I,_t12;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:r=n.placement,i=n.middlewareData,l=n.rects,a=n.initialPlacement,f=n.platform,g=n.elements,_c2=c(t,n),_c2$mainAxis=_c2.mainAxis,w=_c2$mainAxis===void 0?!0:_c2$mainAxis,_c2$crossAxis=_c2.crossAxis,x=_c2$crossAxis===void 0?!0:_c2$crossAxis,b=_c2.fallbackPlacements,_c2$fallbackStrategy=_c2.fallbackStrategy,A=_c2$fallbackStrategy===void 0?"bestFit":_c2$fallbackStrategy,_c2$fallbackAxisSideD=_c2.fallbackAxisSideDirection,R=_c2$fallbackAxisSideD===void 0?"none":_c2$fallbackAxisSideD,_c2$flipAlignment=_c2.flipAlignment,S=_c2$flipAlignment===void 0?!0:_c2$flipAlignment,k=_objectWithoutProperties(_c2,_excluded2);if(!(null!=(e=i.arrow)&&e.alignmentOffset)){_context6.next=3;break;}return _context6.abrupt("return",{});case 3:F=s(r);O=m(a);T=s(a)===a;_context6.next=8;return null==f.isRTL?void 0:f.isRTL(g.floating);case 8:D=_context6.sent;P=b||(T||!S?[p(a)]:function(t){var n=p(t);return[y(t),n,y(n)];}(a));z="none"!==R;!b&&z&&P.push.apply(P,_toConsumableArray(function(t,n,e,o){var r=u(t);var i=function(t,n,e){var o=["left","right"],r=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:l;default:return[];}}(s(t),"start"===e,o);return r&&(i=i.map(function(t){return t+"-"+r;}),n&&(i=i.concat(i.map(y)))),i;}(a,S,R,D)));M=[a].concat(_toConsumableArray(P));_context6.next=15;return v(n,k);case 15:C=_context6.sent;L=[];B=(null==(o=i.flip)?void 0:o.overflows)||[];if(w&&L.push(C[F]),x){_t10=function(t,n,e){void 0===e&&(e=!1);var o=u(t),r=h(t),i=d(r);var l="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(l=p(l)),[l,p(l)];}(r,l,D);L.push(C[_t10[0]],C[_t10[1]]);}if(!(B=[].concat(_toConsumableArray(B),[{placement:r,overflows:L}]),!L.every(function(t){return t<=0;}))){_context6.next=34;break;}_t11=((null==(E=i.flip)?void 0:E.index)||0)+1,_n6=M[_t11];if(!_n6){_context6.next=23;break;}return _context6.abrupt("return",{data:{index:_t11,overflows:B},reset:{placement:_n6}});case 23:_e3=null==(H=B.filter(function(t){return t.overflows[0]<=0;}).sort(function(t,n){return t.overflows[1]-n.overflows[1];})[0])?void 0:H.placement;if(_e3){_context6.next=32;break;}_context6.t0=A;_context6.next=_context6.t0==="bestFit"?28:_context6.t0==="initialPlacement"?31:32;break;case 28:_t12=null==(I=B.filter(function(t){if(z){var _n7=m(t.placement);return _n7===O||"y"===_n7;}return!0;}).map(function(t){return[t.placement,t.overflows.filter(function(t){return t>0;}).reduce(function(t,n){return t+n;},0)];}).sort(function(t,n){return t[1]-n[1];})[0])?void 0:I[0];_t12&&(_e3=_t12);return _context6.abrupt("break",32);case 31:_e3=a;case 32:if(!(r!==_e3)){_context6.next=34;break;}return _context6.abrupt("return",{reset:{placement:_e3}});case 34:return _context6.abrupt("return",{});case 35:case"end":return _context6.stop();}},_callee5);}))();}};}),_export("s",at=function at(e){return void 0===e&&(e={}),{name:"size",options:e,fn:function fn(o){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var r,i,l,a,f,d,_c3,_c3$apply,h,y,p,g,w,x,_a$floating,b,A,R,S,k,F,O,T,D,P,z,_t13,_e4,_o2,_r2,M;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:l=o.placement;a=o.rects;f=o.platform;d=o.elements;_c3=c(e,o);_c3$apply=_c3.apply;h=_c3$apply===void 0?function(){}:_c3$apply;y=_objectWithoutProperties(_c3,_excluded3);_context7.next=10;return v(o,y);case 10:p=_context7.sent;g=s(l);w=u(l);x="y"===m(l);_a$floating=a.floating;b=_a$floating.width;A=_a$floating.height;if(!("top"===g||"bottom"===g)){_context7.next=36;break;}R=g;_context7.t0=w;_context7.next=22;return null==f.isRTL?void 0:f.isRTL(d.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:S=_context7.t3;_context7.next=37;break;case 36:S=g,R="end"===w?"top":"bottom";case 37:k=A-p.top-p.bottom,F=b-p.left-p.right,O=t(A-p[R],k),T=t(b-p[S],F),D=!o.middlewareData.shift;P=O,z=T;if(null!=(r=o.middlewareData.shift)&&r.enabled.x&&(z=F),null!=(i=o.middlewareData.shift)&&i.enabled.y&&(P=k),D&&!w){_t13=n(p.left,0),_e4=n(p.right,0),_o2=n(p.top,0),_r2=n(p.bottom,0);x?z=b-2*(0!==_t13||0!==_e4?_t13+_e4:n(p.left,p.right)):P=A-2*(0!==_o2||0!==_r2?_o2+_r2:n(p.top,p.bottom));}_context7.next=42;return h(_objectSpread(_objectSpread({},o),{},{availableWidth:z,availableHeight:P}));case 42:_context7.next=44;return f.getDimensions(d.floating);case 44:M=_context7.sent;return _context7.abrupt("return",b!==M.width||A!==M.height?{reset:{rects:!0}}:{});case 46:case"end":return _context7.stop();}},_callee6);}))();}};}),_export("d",ct=function ct(n){return{name:"arrow",options:n,fn:function fn(e){return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var o,r,i,l,s,f,m,_ref3,y,_ref3$padding,p,w,x,v,b,A,R,S,k,F,O,T,D,P,z,M,C,L,B,E,H,I,N,j;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:o=e.x,r=e.y,i=e.placement,l=e.rects,s=e.platform,f=e.elements,m=e.middlewareData,_ref3=c(n,e)||{},y=_ref3.element,_ref3$padding=_ref3.padding,p=_ref3$padding===void 0?0:_ref3$padding;if(!(null==y)){_context8.next=3;break;}return _context8.abrupt("return",{});case 3:w=g(p);x={x:o,y:r};v=h(i);b=d(v);_context8.next=9;return s.getDimensions(y);case 9:A=_context8.sent;R="y"===v;S=R?"top":"left";k=R?"bottom":"right";F=R?"clientHeight":"clientWidth";O=l.reference[b]+l.reference[v]-x[v]-l.floating[b];T=x[v]-l.reference[v];_context8.next=18;return null==s.getOffsetParent?void 0:s.getOffsetParent(y);case 18:D=_context8.sent;P=D?D[F]:0;_context8.t0=P;if(!_context8.t0){_context8.next=25;break;}_context8.next=24;return null==s.isElement?void 0:s.isElement(D);case 24:_context8.t0=_context8.sent;case 25:_context8.t1=_context8.t0;if(_context8.t1){_context8.next=28;break;}P=f.floating[F]||l.floating[b];case 28:z=O/2-T/2,M=P/2-A[b]/2-1,C=t(w[S],M),L=t(w[k],M),B=C,E=P-A[b]-L,H=P/2-A[b]/2+z,I=a(B,H,E),N=!m.arrow&&null!=u(i)&&H!==I&&l.reference[b]/2-(H<B?C:L)-A[b]/2<0,j=N?H<B?H-B:H-E:0;return _context8.abrupt("return",_defineProperty(_defineProperty(_defineProperty({},v,x[v]+j),"data",_objectSpread(_defineProperty(_defineProperty({},v,I),"centerOffset",H-I-j),N&&{alignmentOffset:j})),"reset",N));case 30:case"end":return _context8.stop();}},_callee7);}))();}};}),_export("c",st=function st(t,n,e){var o=new Map(),r=_objectSpread({platform:nt},e),i=_objectSpread(_objectSpread({},r.platform),{},{_c:o});return function(){var _ref5=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(t,n,e){var _e$placement,o,_e$strategy,r,_e$middleware,i,l,a,c,s,_x9,u,f,d,m,h,_e5,_x10,_a$_e,_i2,_y,_yield$y,_p,_g,_w,_v2;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_e$placement=e.placement;o=_e$placement===void 0?"bottom":_e$placement;_e$strategy=e.strategy;r=_e$strategy===void 0?"absolute":_e$strategy;_e$middleware=e.middleware;i=_e$middleware===void 0?[]:_e$middleware;l=e.platform;a=i.filter(Boolean);_context9.next=10;return null==l.isRTL?void 0:l.isRTL(n);case 10:c=_context9.sent;_context9.next=13;return l.getElementRects({reference:t,floating:n,strategy:r});case 13:s=_context9.sent;_x9=x(s,o,c);u=_x9.x;f=_x9.y;d=o;m={};h=0;_e5=0;case 21:if(!(_e5<a.length)){_context9.next=56;break;}_a$_e=a[_e5];_i2=_a$_e.name;_y=_a$_e.fn;_context9.next=27;return _y({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:m,rects:s,platform:l,elements:{reference:t,floating:n}});case 27:_yield$y=_context9.sent;_p=_yield$y.x;_g=_yield$y.y;_w=_yield$y.data;_v2=_yield$y.reset;u=null!=_p?_p:u;f=null!=_g?_g:f;m=_objectSpread(_objectSpread({},m),{},_defineProperty({},_i2,_objectSpread(_objectSpread({},m[_i2]),_w)));_context9.t0=_v2&&h<=50;if(!_context9.t0){_context9.next=53;break;}h++;_context9.t1="object"==_typeof(_v2);if(!_context9.t1){_context9.next=52;break;}_v2.placement&&(d=_v2.placement);_context9.t2=_v2.rects;if(!_context9.t2){_context9.next=51;break;}if(!(!0===_v2.rects)){_context9.next=49;break;}_context9.next=46;return l.getElementRects({reference:t,floating:n,strategy:r});case 46:_context9.t3=_context9.sent;_context9.next=50;break;case 49:_context9.t3=_v2.rects;case 50:s=_context9.t3;case 51:_x10=x(s,d,c),u=_x10.x,f=_x10.y;case 52:_e5=-1;case 53:_e5++;_context9.next=21;break;case 56:return _context9.abrupt("return",{x:u,y:f,placement:d,strategy:r,middlewareData:m});case 57:case"end":return _context9.stop();}},_callee8);}));return function(_x6,_x7,_x8){return _ref5.apply(this,arguments);};}()(t,n,_objectSpread(_objectSpread({},r),{},{platform:i}));});}};});
2
- //# sourceMappingURL=floating-ui.dom-007bbe96.cjs.js.map