@uselets/ui 1.16.1 → 1.17.0

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 (843) hide show
  1. package/README.md +1 -0
  2. package/dist/accordion-BCo2odjy.js +2 -0
  3. package/dist/accordion-BCo2odjy.js.map +1 -0
  4. package/dist/accordion-DtSr3uiA.d.ts +15 -0
  5. package/dist/alert-CJRgRQVF.js +2 -0
  6. package/dist/alert-CJRgRQVF.js.map +1 -0
  7. package/dist/alert-dialog-B_nAiD4Y.js +2 -0
  8. package/dist/alert-dialog-B_nAiD4Y.js.map +1 -0
  9. package/dist/alert-dialog-Bf41-OnT.d.ts +34 -0
  10. package/dist/alert-eivgSC_S.d.ts +18 -0
  11. package/dist/anchor-DCOyn0Xa.d.ts +15 -0
  12. package/dist/anchor-srhmShjN.js +2 -0
  13. package/dist/anchor-srhmShjN.js.map +1 -0
  14. package/dist/area-chart-DdDy8Vm3.js +2 -0
  15. package/dist/area-chart-DdDy8Vm3.js.map +1 -0
  16. package/dist/area-chart-F_4ZL20j.d.ts +40 -0
  17. package/dist/avatar-2ZS3Tx76.d.ts +21 -0
  18. package/dist/avatar-CFUwrOwG.js +2 -0
  19. package/dist/avatar-CFUwrOwG.js.map +1 -0
  20. package/dist/badge-BqpQcDFd.d.ts +16 -0
  21. package/dist/badge-Cuq_DqRS.js +2 -0
  22. package/dist/badge-Cuq_DqRS.js.map +1 -0
  23. package/dist/badge-DEgLmZYC.js +2 -0
  24. package/dist/badge-DEgLmZYC.js.map +1 -0
  25. package/dist/badge-gkezuSZY.d.ts +19 -0
  26. package/dist/bar-chart-DIgSnh_j.js +2 -0
  27. package/dist/bar-chart-DIgSnh_j.js.map +1 -0
  28. package/dist/bar-chart-DRrrfMQR.d.ts +42 -0
  29. package/dist/breadcrumb-CqNDAI8V.js +2 -0
  30. package/dist/breadcrumb-CqNDAI8V.js.map +1 -0
  31. package/dist/breadcrumb-DZFS9htN.d.ts +22 -0
  32. package/dist/button-BNGy28pv.d.ts +17 -0
  33. package/dist/button-CQbH5Glc.d.ts +19 -0
  34. package/dist/button-DGewx2nE.js +2 -0
  35. package/dist/button-DGewx2nE.js.map +1 -0
  36. package/dist/button-group-DRgqsyjS.d.ts +18 -0
  37. package/dist/button-group-WJ5LeouK.js +2 -0
  38. package/dist/button-group-WJ5LeouK.js.map +1 -0
  39. package/dist/button-oI3hbOgp.js +2 -0
  40. package/dist/button-oI3hbOgp.js.map +1 -0
  41. package/dist/calendar-C1GgjzIA.d.ts +17 -0
  42. package/dist/calendar-CW1kGXom.js +2 -0
  43. package/dist/calendar-CW1kGXom.js.map +1 -0
  44. package/dist/card-Bx6iiocl.js +2 -0
  45. package/dist/card-Bx6iiocl.js.map +1 -0
  46. package/dist/card-pWjtkTKw.d.ts +22 -0
  47. package/dist/carousel-C6e4eRJD.d.ts +43 -0
  48. package/dist/carousel-D0OTImO7.js +2 -0
  49. package/dist/carousel-D0OTImO7.js.map +1 -0
  50. package/dist/center-CFQDr205.d.ts +13 -0
  51. package/dist/center-Dl1rnq7S.js +2 -0
  52. package/dist/center-Dl1rnq7S.js.map +1 -0
  53. package/dist/chart-Ci4V8B8v.js +8 -0
  54. package/dist/chart-Ci4V8B8v.js.map +1 -0
  55. package/dist/checkbox-DPvW_m7k.js +2 -0
  56. package/dist/checkbox-DPvW_m7k.js.map +1 -0
  57. package/dist/checkbox-y0XBdH4a.d.ts +21 -0
  58. package/dist/code-A6JERAsm.js +2 -0
  59. package/dist/code-A6JERAsm.js.map +1 -0
  60. package/dist/code-Cqoacc61.d.ts +8 -0
  61. package/dist/collapsible-BH8BqfTd.js +2 -0
  62. package/dist/collapsible-BH8BqfTd.js.map +1 -0
  63. package/dist/collapsible-CLSCZ630.d.ts +12 -0
  64. package/dist/color-DJvQFSl5.d.ts +19 -0
  65. package/dist/color-Don4qaht.js +2 -0
  66. package/dist/color-Don4qaht.js.map +1 -0
  67. package/dist/combobox-DkCRXUxd.d.ts +51 -0
  68. package/dist/combobox-fNAIovsN.js +2 -0
  69. package/dist/combobox-fNAIovsN.js.map +1 -0
  70. package/dist/command-0wTb46Ym.js +2 -0
  71. package/dist/command-0wTb46Ym.js.map +1 -0
  72. package/dist/command-D4pNOx0J.d.ts +31 -0
  73. package/dist/components/accordion.d.ts +2 -15
  74. package/dist/components/accordion.js +1 -2
  75. package/dist/components/accordion.spec.d.ts +1 -0
  76. package/dist/components/accordion.spec.js +2 -0
  77. package/dist/components/accordion.spec.js.map +1 -0
  78. package/dist/components/alert-dialog.d.ts +2 -34
  79. package/dist/components/alert-dialog.js +1 -2
  80. package/dist/components/alert-dialog.spec.d.ts +1 -0
  81. package/dist/components/alert-dialog.spec.js +2 -0
  82. package/dist/components/alert-dialog.spec.js.map +1 -0
  83. package/dist/components/alert.d.ts +2 -18
  84. package/dist/components/alert.js +1 -2
  85. package/dist/components/alert.spec.d.ts +1 -0
  86. package/dist/components/alert.spec.js +2 -0
  87. package/dist/components/alert.spec.js.map +1 -0
  88. package/dist/components/anchor.d.ts +2 -15
  89. package/dist/components/anchor.js +1 -2
  90. package/dist/components/anchor.spec.d.ts +1 -0
  91. package/dist/components/anchor.spec.js +2 -0
  92. package/dist/components/anchor.spec.js.map +1 -0
  93. package/dist/components/area-chart.d.ts +2 -40
  94. package/dist/components/area-chart.js +1 -2
  95. package/dist/components/area-chart.spec.d.ts +1 -0
  96. package/dist/components/area-chart.spec.js +2 -0
  97. package/dist/components/area-chart.spec.js.map +1 -0
  98. package/dist/components/avatar.d.ts +2 -21
  99. package/dist/components/avatar.js +1 -2
  100. package/dist/components/avatar.spec.d.ts +1 -0
  101. package/dist/components/avatar.spec.js +2 -0
  102. package/dist/components/avatar.spec.js.map +1 -0
  103. package/dist/components/badge.d.ts +2 -16
  104. package/dist/components/badge.js +1 -2
  105. package/dist/components/badge.spec.d.ts +1 -0
  106. package/dist/components/badge.spec.js +2 -0
  107. package/dist/components/badge.spec.js.map +1 -0
  108. package/dist/components/bar-chart.d.ts +2 -42
  109. package/dist/components/bar-chart.js +1 -2
  110. package/dist/components/bar-chart.spec.d.ts +1 -0
  111. package/dist/components/bar-chart.spec.js +2 -0
  112. package/dist/components/bar-chart.spec.js.map +1 -0
  113. package/dist/components/breadcrumb.d.ts +2 -22
  114. package/dist/components/breadcrumb.js +1 -2
  115. package/dist/components/breadcrumb.spec.d.ts +1 -0
  116. package/dist/components/breadcrumb.spec.js +2 -0
  117. package/dist/components/breadcrumb.spec.js.map +1 -0
  118. package/dist/components/button-group.d.ts +2 -18
  119. package/dist/components/button-group.js +1 -2
  120. package/dist/components/button-group.spec.d.ts +1 -0
  121. package/dist/components/button-group.spec.js +2 -0
  122. package/dist/components/button-group.spec.js.map +1 -0
  123. package/dist/components/button.d.ts +2 -17
  124. package/dist/components/button.js +1 -2
  125. package/dist/components/button.spec.d.ts +1 -0
  126. package/dist/components/button.spec.js +2 -0
  127. package/dist/components/button.spec.js.map +1 -0
  128. package/dist/components/calendar.d.ts +2 -17
  129. package/dist/components/calendar.js +1 -2
  130. package/dist/components/calendar.spec.d.ts +1 -0
  131. package/dist/components/calendar.spec.js +2 -0
  132. package/dist/components/calendar.spec.js.map +1 -0
  133. package/dist/components/card.d.ts +2 -22
  134. package/dist/components/card.js +1 -2
  135. package/dist/components/card.spec.d.ts +1 -0
  136. package/dist/components/card.spec.js +2 -0
  137. package/dist/components/card.spec.js.map +1 -0
  138. package/dist/components/carousel.d.ts +2 -43
  139. package/dist/components/carousel.js +1 -2
  140. package/dist/components/carousel.spec.js +1 -93
  141. package/dist/components/carousel.spec.js.map +1 -1
  142. package/dist/components/center.d.ts +2 -13
  143. package/dist/components/center.js +1 -2
  144. package/dist/components/center.spec.d.ts +1 -0
  145. package/dist/components/center.spec.js +2 -0
  146. package/dist/components/center.spec.js.map +1 -0
  147. package/dist/components/chart.js +1 -8
  148. package/dist/components/chart.spec.d.ts +1 -0
  149. package/dist/components/chart.spec.js +2 -0
  150. package/dist/components/chart.spec.js.map +1 -0
  151. package/dist/components/checkbox.d.ts +2 -21
  152. package/dist/components/checkbox.js +1 -2
  153. package/dist/components/checkbox.spec.d.ts +1 -0
  154. package/dist/components/checkbox.spec.js +2 -0
  155. package/dist/components/checkbox.spec.js.map +1 -0
  156. package/dist/components/code.d.ts +2 -8
  157. package/dist/components/code.js +1 -2
  158. package/dist/components/code.spec.d.ts +1 -0
  159. package/dist/components/code.spec.js +2 -0
  160. package/dist/components/code.spec.js.map +1 -0
  161. package/dist/components/collapsible.d.ts +2 -12
  162. package/dist/components/collapsible.js +1 -2
  163. package/dist/components/collapsible.spec.d.ts +1 -0
  164. package/dist/components/collapsible.spec.js +2 -0
  165. package/dist/components/collapsible.spec.js.map +1 -0
  166. package/dist/components/combobox.d.ts +2 -51
  167. package/dist/components/combobox.js +1 -2
  168. package/dist/components/combobox.spec.d.ts +1 -0
  169. package/dist/components/combobox.spec.js +2 -0
  170. package/dist/components/combobox.spec.js.map +1 -0
  171. package/dist/components/command.d.ts +2 -31
  172. package/dist/components/command.js +1 -2
  173. package/dist/components/command.spec.d.ts +1 -0
  174. package/dist/components/command.spec.js +2 -0
  175. package/dist/components/command.spec.js.map +1 -0
  176. package/dist/components/container.d.ts +2 -12
  177. package/dist/components/container.js +1 -2
  178. package/dist/components/container.spec.d.ts +1 -0
  179. package/dist/components/container.spec.js +2 -0
  180. package/dist/components/container.spec.js.map +1 -0
  181. package/dist/components/data-table.d.ts +2 -111
  182. package/dist/components/data-table.js +1 -2
  183. package/dist/components/data-table.spec.d.ts +1 -0
  184. package/dist/components/data-table.spec.js +2 -0
  185. package/dist/components/data-table.spec.js.map +1 -0
  186. package/dist/components/date-range-picker.d.ts +3 -55
  187. package/dist/components/date-range-picker.js +1 -2
  188. package/dist/components/date-range-picker.spec.d.ts +1 -0
  189. package/dist/components/date-range-picker.spec.js +2 -0
  190. package/dist/components/date-range-picker.spec.js.map +1 -0
  191. package/dist/components/dialog.d.ts +2 -42
  192. package/dist/components/dialog.js +1 -2
  193. package/dist/components/dialog.spec.d.ts +1 -0
  194. package/dist/components/dialog.spec.js +2 -0
  195. package/dist/components/dialog.spec.js.map +1 -0
  196. package/dist/components/donut-chart.d.ts +2 -13
  197. package/dist/components/donut-chart.js +1 -2
  198. package/dist/components/donut-chart.spec.d.ts +1 -0
  199. package/dist/components/donut-chart.spec.js +2 -0
  200. package/dist/components/donut-chart.spec.js.map +1 -0
  201. package/dist/components/drawer.d.ts +2 -43
  202. package/dist/components/drawer.js +1 -2
  203. package/dist/components/drawer.spec.d.ts +1 -0
  204. package/dist/components/drawer.spec.js +2 -0
  205. package/dist/components/drawer.spec.js.map +1 -0
  206. package/dist/components/dropdown-menu.d.ts +2 -48
  207. package/dist/components/dropdown-menu.js +1 -2
  208. package/dist/components/dropdown-menu.spec.d.ts +1 -0
  209. package/dist/components/dropdown-menu.spec.js +2 -0
  210. package/dist/components/dropdown-menu.spec.js.map +1 -0
  211. package/dist/components/dropzone.d.ts +2 -102
  212. package/dist/components/dropzone.js +1 -2
  213. package/dist/components/dropzone.spec.d.ts +1 -0
  214. package/dist/components/dropzone.spec.js +2 -0
  215. package/dist/components/dropzone.spec.js.map +1 -0
  216. package/dist/components/empty.d.ts +2 -21
  217. package/dist/components/empty.js +1 -2
  218. package/dist/components/empty.spec.d.ts +1 -0
  219. package/dist/components/empty.spec.js +2 -0
  220. package/dist/components/empty.spec.js.map +1 -0
  221. package/dist/components/field.d.ts +2 -39
  222. package/dist/components/field.js +1 -2
  223. package/dist/components/field.spec.js +1 -1
  224. package/dist/components/field.spec.js.map +1 -1
  225. package/dist/components/flex.d.ts +2 -16
  226. package/dist/components/flex.js +1 -2
  227. package/dist/components/flex.spec.d.ts +1 -0
  228. package/dist/components/flex.spec.js +2 -0
  229. package/dist/components/flex.spec.js.map +1 -0
  230. package/dist/components/grid.d.ts +2 -20
  231. package/dist/components/grid.js +1 -2
  232. package/dist/components/grid.spec.d.ts +1 -0
  233. package/dist/components/grid.spec.js +2 -0
  234. package/dist/components/grid.spec.js.map +1 -0
  235. package/dist/components/group.d.ts +2 -15
  236. package/dist/components/group.js +1 -2
  237. package/dist/components/group.spec.d.ts +1 -0
  238. package/dist/components/group.spec.js +2 -0
  239. package/dist/components/group.spec.js.map +1 -0
  240. package/dist/components/heading.d.ts +2 -14
  241. package/dist/components/heading.js +1 -2
  242. package/dist/components/heading.spec.d.ts +1 -0
  243. package/dist/components/heading.spec.js +2 -0
  244. package/dist/components/heading.spec.js.map +1 -0
  245. package/dist/components/hover-card.d.ts +2 -13
  246. package/dist/components/hover-card.js +1 -2
  247. package/dist/components/hover-card.spec.d.ts +1 -0
  248. package/dist/components/hover-card.spec.js +2 -0
  249. package/dist/components/hover-card.spec.js.map +1 -0
  250. package/dist/components/input-group.d.ts +2 -26
  251. package/dist/components/input-group.js +1 -2
  252. package/dist/components/input-group.spec.d.ts +1 -0
  253. package/dist/components/input-group.spec.js +2 -0
  254. package/dist/components/input-group.spec.js.map +1 -0
  255. package/dist/components/input-otp.d.ts +2 -19
  256. package/dist/components/input-otp.js +1 -2
  257. package/dist/components/input-otp.spec.d.ts +1 -0
  258. package/dist/components/input-otp.spec.js +2 -0
  259. package/dist/components/input-otp.spec.js.map +1 -0
  260. package/dist/components/input.d.ts +2 -8
  261. package/dist/components/input.js +1 -2
  262. package/dist/components/input.spec.d.ts +1 -0
  263. package/dist/components/input.spec.js +2 -0
  264. package/dist/components/input.spec.js.map +1 -0
  265. package/dist/components/kbd.d.ts +2 -10
  266. package/dist/components/kbd.js +1 -2
  267. package/dist/components/kbd.spec.d.ts +1 -0
  268. package/dist/components/kbd.spec.js +2 -0
  269. package/dist/components/kbd.spec.js.map +1 -0
  270. package/dist/components/label.d.ts +2 -9
  271. package/dist/components/label.js +1 -2
  272. package/dist/components/label.spec.d.ts +1 -0
  273. package/dist/components/label.spec.js +2 -0
  274. package/dist/components/label.spec.js.map +1 -0
  275. package/dist/components/list.d.ts +2 -25
  276. package/dist/components/list.js +1 -2
  277. package/dist/components/list.spec.d.ts +1 -0
  278. package/dist/components/list.spec.js +2 -0
  279. package/dist/components/list.spec.js.map +1 -0
  280. package/dist/components/logo.d.ts +2 -0
  281. package/dist/components/logo.js +1 -0
  282. package/dist/components/logo.spec.d.ts +1 -0
  283. package/dist/components/logo.spec.js +2 -0
  284. package/dist/components/logo.spec.js.map +1 -0
  285. package/dist/components/marker.d.ts +2 -18
  286. package/dist/components/marker.js +1 -2
  287. package/dist/components/marker.spec.d.ts +1 -0
  288. package/dist/components/marker.spec.js +2 -0
  289. package/dist/components/marker.spec.js.map +1 -0
  290. package/dist/components/mask-input.d.ts +2 -16
  291. package/dist/components/mask-input.js +1 -2
  292. package/dist/components/mask-input.spec.d.ts +1 -0
  293. package/dist/components/mask-input.spec.js +2 -0
  294. package/dist/components/mask-input.spec.js.map +1 -0
  295. package/dist/components/native-select.d.ts +2 -14
  296. package/dist/components/native-select.js +1 -2
  297. package/dist/components/native-select.spec.d.ts +1 -0
  298. package/dist/components/native-select.spec.js +2 -0
  299. package/dist/components/native-select.spec.js.map +1 -0
  300. package/dist/components/navigation-menu.d.ts +2 -26
  301. package/dist/components/navigation-menu.js +1 -2
  302. package/dist/components/navigation-menu.spec.d.ts +1 -0
  303. package/dist/components/navigation-menu.spec.js +2 -0
  304. package/dist/components/navigation-menu.spec.js.map +1 -0
  305. package/dist/components/number-field.d.ts +2 -35
  306. package/dist/components/number-field.js +1 -2
  307. package/dist/components/number-field.spec.d.ts +1 -0
  308. package/dist/components/number-field.spec.js +2 -0
  309. package/dist/components/number-field.spec.js.map +1 -0
  310. package/dist/components/pagination.d.ts +2 -27
  311. package/dist/components/pagination.js +1 -2
  312. package/dist/components/pagination.spec.d.ts +1 -0
  313. package/dist/components/pagination.spec.js +2 -0
  314. package/dist/components/pagination.spec.js.map +1 -0
  315. package/dist/components/phone-input.d.ts +2 -13
  316. package/dist/components/phone-input.js +1 -2
  317. package/dist/components/phone-input.spec.d.ts +1 -0
  318. package/dist/components/phone-input.spec.js +2 -0
  319. package/dist/components/phone-input.spec.js.map +1 -0
  320. package/dist/components/pie-chart.d.ts +2 -42
  321. package/dist/components/pie-chart.js +1 -2
  322. package/dist/components/pie-chart.spec.d.ts +1 -0
  323. package/dist/components/pie-chart.spec.js +2 -0
  324. package/dist/components/pie-chart.spec.js.map +1 -0
  325. package/dist/components/popover.d.ts +2 -21
  326. package/dist/components/popover.js +1 -2
  327. package/dist/components/popover.spec.d.ts +1 -0
  328. package/dist/components/popover.spec.js +2 -0
  329. package/dist/components/popover.spec.js.map +1 -0
  330. package/dist/components/progress.d.ts +2 -14
  331. package/dist/components/progress.js +1 -2
  332. package/dist/components/progress.spec.d.ts +1 -0
  333. package/dist/components/progress.spec.js +2 -0
  334. package/dist/components/progress.spec.js.map +1 -0
  335. package/dist/components/radio-group.d.ts +2 -25
  336. package/dist/components/radio-group.js +1 -2
  337. package/dist/components/radio-group.spec.d.ts +1 -0
  338. package/dist/components/radio-group.spec.js +2 -0
  339. package/dist/components/radio-group.spec.js.map +1 -0
  340. package/dist/components/resizable.d.ts +2 -14
  341. package/dist/components/resizable.js +1 -2
  342. package/dist/components/resizable.spec.d.ts +1 -0
  343. package/dist/components/resizable.spec.js +2 -0
  344. package/dist/components/resizable.spec.js.map +1 -0
  345. package/dist/components/ring-progress.d.ts +2 -17
  346. package/dist/components/ring-progress.js +1 -2
  347. package/dist/components/ring-progress.spec.d.ts +1 -0
  348. package/dist/components/ring-progress.spec.js +2 -0
  349. package/dist/components/ring-progress.spec.js.map +1 -0
  350. package/dist/components/scroll-area.d.ts +2 -11
  351. package/dist/components/scroll-area.js +1 -2
  352. package/dist/components/scroll-area.spec.d.ts +1 -0
  353. package/dist/components/scroll-area.spec.js +2 -0
  354. package/dist/components/scroll-area.spec.js.map +1 -0
  355. package/dist/components/select.d.ts +2 -29
  356. package/dist/components/select.js +1 -2
  357. package/dist/components/select.spec.d.ts +1 -0
  358. package/dist/components/select.spec.js +2 -0
  359. package/dist/components/select.spec.js.map +1 -0
  360. package/dist/components/separator.d.ts +2 -9
  361. package/dist/components/separator.js +1 -2
  362. package/dist/components/separator.spec.d.ts +1 -0
  363. package/dist/components/separator.spec.js +2 -0
  364. package/dist/components/separator.spec.js.map +1 -0
  365. package/dist/components/sidebar.d.ts +2 -96
  366. package/dist/components/sidebar.js +1 -2
  367. package/dist/components/sidebar.spec.d.ts +1 -0
  368. package/dist/components/sidebar.spec.js +2 -0
  369. package/dist/components/sidebar.spec.js.map +1 -0
  370. package/dist/components/simple-grid.d.ts +2 -14
  371. package/dist/components/simple-grid.js +1 -2
  372. package/dist/components/simple-grid.spec.d.ts +1 -0
  373. package/dist/components/simple-grid.spec.js +2 -0
  374. package/dist/components/simple-grid.spec.js.map +1 -0
  375. package/dist/components/skeleton.d.ts +2 -10
  376. package/dist/components/skeleton.js +1 -2
  377. package/dist/components/skeleton.spec.js +1 -1
  378. package/dist/components/skeleton.spec.js.map +1 -1
  379. package/dist/components/slider.d.ts +2 -9
  380. package/dist/components/slider.js +1 -2
  381. package/dist/components/slider.spec.d.ts +1 -0
  382. package/dist/components/slider.spec.js +2 -0
  383. package/dist/components/slider.spec.js.map +1 -0
  384. package/dist/components/sonner.d.ts +2 -8
  385. package/dist/components/sonner.js +1 -2
  386. package/dist/components/sonner.spec.d.ts +1 -0
  387. package/dist/components/sonner.spec.js +2 -0
  388. package/dist/components/sonner.spec.js.map +1 -0
  389. package/dist/components/spinner.d.ts +2 -12
  390. package/dist/components/spinner.js +1 -2
  391. package/dist/components/spinner.spec.d.ts +1 -0
  392. package/dist/components/spinner.spec.js +2 -0
  393. package/dist/components/spinner.spec.js.map +1 -0
  394. package/dist/components/stack.d.ts +2 -14
  395. package/dist/components/stack.js +1 -2
  396. package/dist/components/stack.spec.d.ts +1 -0
  397. package/dist/components/stack.spec.js +2 -0
  398. package/dist/components/stack.spec.js.map +1 -0
  399. package/dist/components/stepper.d.ts +2 -71
  400. package/dist/components/stepper.js +1 -2
  401. package/dist/components/stepper.spec.d.ts +1 -0
  402. package/dist/components/stepper.spec.js +2 -0
  403. package/dist/components/stepper.spec.js.map +1 -0
  404. package/dist/components/switch.d.ts +2 -17
  405. package/dist/components/switch.js +1 -2
  406. package/dist/components/switch.spec.d.ts +1 -0
  407. package/dist/components/switch.spec.js +2 -0
  408. package/dist/components/switch.spec.js.map +1 -0
  409. package/dist/components/table.d.ts +2 -33
  410. package/dist/components/table.js +1 -2
  411. package/dist/components/table.spec.d.ts +1 -0
  412. package/dist/components/table.spec.js +2 -0
  413. package/dist/components/table.spec.js.map +1 -0
  414. package/dist/components/tabs.d.ts +2 -21
  415. package/dist/components/tabs.js +1 -2
  416. package/dist/components/tabs.spec.d.ts +1 -0
  417. package/dist/components/tabs.spec.js +2 -0
  418. package/dist/components/tabs.spec.js.map +1 -0
  419. package/dist/components/text.d.ts +2 -14
  420. package/dist/components/text.js +1 -2
  421. package/dist/components/text.spec.d.ts +1 -0
  422. package/dist/components/text.spec.js +2 -0
  423. package/dist/components/text.spec.js.map +1 -0
  424. package/dist/components/textarea.d.ts +2 -8
  425. package/dist/components/textarea.js +1 -2
  426. package/dist/components/textarea.spec.d.ts +1 -0
  427. package/dist/components/textarea.spec.js +2 -0
  428. package/dist/components/textarea.spec.js.map +1 -0
  429. package/dist/components/theme.d.ts +2 -22
  430. package/dist/components/theme.js +1 -2
  431. package/dist/components/theme.spec.d.ts +1 -0
  432. package/dist/components/theme.spec.js +2 -0
  433. package/dist/components/theme.spec.js.map +1 -0
  434. package/dist/components/timeline.d.ts +2 -61
  435. package/dist/components/timeline.js +1 -2
  436. package/dist/components/timeline.spec.d.ts +1 -0
  437. package/dist/components/timeline.spec.js +2 -0
  438. package/dist/components/timeline.spec.js.map +1 -0
  439. package/dist/components/toggle-group.d.ts +2 -16
  440. package/dist/components/toggle-group.js +1 -2
  441. package/dist/components/toggle-group.spec.d.ts +1 -0
  442. package/dist/components/toggle-group.spec.js +2 -0
  443. package/dist/components/toggle-group.spec.js.map +1 -0
  444. package/dist/components/toggle.d.ts +2 -15
  445. package/dist/components/toggle.js +1 -2
  446. package/dist/components/toggle.spec.d.ts +1 -0
  447. package/dist/components/toggle.spec.js +2 -0
  448. package/dist/components/toggle.spec.js.map +1 -0
  449. package/dist/components/tooltip.d.ts +2 -21
  450. package/dist/components/tooltip.js +1 -2
  451. package/dist/components/tooltip.spec.d.ts +1 -0
  452. package/dist/components/tooltip.spec.js +2 -0
  453. package/dist/components/tooltip.spec.js.map +1 -0
  454. package/dist/components/unstyled-button.d.ts +2 -10
  455. package/dist/components/unstyled-button.js +1 -2
  456. package/dist/components/unstyled-button.spec.d.ts +1 -0
  457. package/dist/components/unstyled-button.spec.js +2 -0
  458. package/dist/components/unstyled-button.spec.js.map +1 -0
  459. package/dist/components/visibility.d.ts +2 -17
  460. package/dist/components/visibility.js +1 -2
  461. package/dist/components/visibility.spec.d.ts +1 -0
  462. package/dist/components/visibility.spec.js +2 -0
  463. package/dist/components/visibility.spec.js.map +1 -0
  464. package/dist/compose-refs-DUtp7lGn.js +2 -0
  465. package/dist/compose-refs-DUtp7lGn.js.map +1 -0
  466. package/dist/compose-refs-GP3zdokU.d.ts +8 -0
  467. package/dist/container-B8-lt-oX.d.ts +12 -0
  468. package/dist/container-CikeKdez.js +2 -0
  469. package/dist/container-CikeKdez.js.map +1 -0
  470. package/dist/data-table-BT75MSO9.d.ts +111 -0
  471. package/dist/data-table-DcyKClKz.js +2 -0
  472. package/dist/data-table-DcyKClKz.js.map +1 -0
  473. package/dist/date-range-picker-BngvCWcR.d.ts +55 -0
  474. package/dist/date-range-picker-CJVpTZdT.js +2 -0
  475. package/dist/date-range-picker-CJVpTZdT.js.map +1 -0
  476. package/dist/dialog-B7I4Ky1i.js +2 -0
  477. package/dist/dialog-B7I4Ky1i.js.map +1 -0
  478. package/dist/dialog-Ej7pnact.d.ts +42 -0
  479. package/dist/donut-chart-BDJR8TXh.d.ts +13 -0
  480. package/dist/donut-chart-BHU4kDE6.js +2 -0
  481. package/dist/donut-chart-BHU4kDE6.js.map +1 -0
  482. package/dist/drawer-BO4mP6y1.js +2 -0
  483. package/dist/drawer-BO4mP6y1.js.map +1 -0
  484. package/dist/drawer-DUfJzrKE.d.ts +43 -0
  485. package/dist/dropdown-menu-CVDIf0Rd.d.ts +48 -0
  486. package/dist/dropdown-menu-zRuQQS5S.js +2 -0
  487. package/dist/dropdown-menu-zRuQQS5S.js.map +1 -0
  488. package/dist/dropzone-43h3L9Ko.d.ts +102 -0
  489. package/dist/dropzone-BLZkZThJ.js +2 -0
  490. package/dist/dropzone-BLZkZThJ.js.map +1 -0
  491. package/dist/empty-BhKsDYZ5.js +2 -0
  492. package/dist/empty-BhKsDYZ5.js.map +1 -0
  493. package/dist/empty-D8ZiTCVK.d.ts +21 -0
  494. package/dist/field-C209yHO9.d.ts +39 -0
  495. package/dist/field-DzR-XrO7.js +2 -0
  496. package/dist/field-DzR-XrO7.js.map +1 -0
  497. package/dist/flex-BC4Diiy4.js +2 -0
  498. package/dist/flex-BC4Diiy4.js.map +1 -0
  499. package/dist/flex-aJXipTAz.d.ts +16 -0
  500. package/dist/grid-B3He1bGe.js +2 -0
  501. package/dist/grid-B3He1bGe.js.map +1 -0
  502. package/dist/grid-D_aEANA7.d.ts +20 -0
  503. package/dist/group-B6n_lMc4.js +2 -0
  504. package/dist/group-B6n_lMc4.js.map +1 -0
  505. package/dist/group-DBtx8eSe.d.ts +15 -0
  506. package/dist/heading-BTXl4JfI.d.ts +14 -0
  507. package/dist/heading-DaxKLVRm.js +2 -0
  508. package/dist/heading-DaxKLVRm.js.map +1 -0
  509. package/dist/hooks/use-breakpoint-value.d.ts +2 -8
  510. package/dist/hooks/use-breakpoint-value.js +1 -2
  511. package/dist/hooks/use-breakpoint-value.spec.js +34 -1
  512. package/dist/hooks/use-breakpoint-value.spec.js.map +1 -1
  513. package/dist/hooks/use-breakpoint.d.ts +2 -8
  514. package/dist/hooks/use-breakpoint.js +1 -2
  515. package/dist/hooks/use-breakpoint.spec.js +1 -1
  516. package/dist/hooks/use-breakpoint.spec.js.map +1 -1
  517. package/dist/hooks/use-disclosure.d.ts +2 -22
  518. package/dist/hooks/use-disclosure.js +1 -2
  519. package/dist/hooks/use-disclosure.spec.js +1 -1
  520. package/dist/hooks/use-disclosure.spec.js.map +1 -1
  521. package/dist/hooks/use-document-visibility.d.ts +2 -6
  522. package/dist/hooks/use-document-visibility.js +1 -2
  523. package/dist/hooks/use-document-visibility.spec.js +1 -1
  524. package/dist/hooks/use-document-visibility.spec.js.map +1 -1
  525. package/dist/hooks/use-hotkeys.spec.js +1 -1
  526. package/dist/hooks/use-idle.d.ts +2 -13
  527. package/dist/hooks/use-idle.js +1 -2
  528. package/dist/hooks/use-idle.spec.js +1 -1
  529. package/dist/hooks/use-idle.spec.js.map +1 -1
  530. package/dist/hooks/use-interval.d.ts +2 -24
  531. package/dist/hooks/use-interval.js +1 -2
  532. package/dist/hooks/use-interval.spec.js +1 -1
  533. package/dist/hooks/use-local-storage.d.ts +2 -16
  534. package/dist/hooks/use-local-storage.js +1 -2
  535. package/dist/hooks/use-local-storage.spec.js +1 -1
  536. package/dist/hooks/use-local-storage.spec.js.map +1 -1
  537. package/dist/hooks/use-mask.d.ts +2 -8
  538. package/dist/hooks/use-mask.js +1 -2
  539. package/dist/hooks/use-mask.spec.d.ts +1 -0
  540. package/dist/hooks/use-mask.spec.js +2 -0
  541. package/dist/hooks/use-mask.spec.js.map +1 -0
  542. package/dist/hooks/use-mobile.d.ts +2 -6
  543. package/dist/hooks/use-mobile.js +1 -2
  544. package/dist/hooks/use-mobile.spec.js +1 -1
  545. package/dist/hover-card-C3yz2zQi.d.ts +13 -0
  546. package/dist/hover-card-Dc8yLsm-.js +2 -0
  547. package/dist/hover-card-Dc8yLsm-.js.map +1 -0
  548. package/dist/index.d.ts +94 -93
  549. package/dist/index.js +1 -1
  550. package/dist/input-CI3RPXz0.d.ts +8 -0
  551. package/dist/input-Cmjl8YdK.js +2 -0
  552. package/dist/input-Cmjl8YdK.js.map +1 -0
  553. package/dist/input-group-CBn36aMg.d.ts +26 -0
  554. package/dist/input-group-DsO2W3Lw.js +2 -0
  555. package/dist/input-group-DsO2W3Lw.js.map +1 -0
  556. package/dist/input-otp-CzfRHf2V.js +2 -0
  557. package/dist/input-otp-CzfRHf2V.js.map +1 -0
  558. package/dist/input-otp-gIEkdiIC.d.ts +19 -0
  559. package/dist/kbd-BTl3AgkY.js +2 -0
  560. package/dist/kbd-BTl3AgkY.js.map +1 -0
  561. package/dist/kbd-DELCQBD0.d.ts +10 -0
  562. package/dist/label-BQDEej_c.js +2 -0
  563. package/dist/label-BQDEej_c.js.map +1 -0
  564. package/dist/label-KZl6I5Ey.d.ts +9 -0
  565. package/dist/lib/badge.d.ts +2 -19
  566. package/dist/lib/badge.js +1 -2
  567. package/dist/lib/badge.spec.d.ts +1 -0
  568. package/dist/lib/badge.spec.js +2 -0
  569. package/dist/lib/badge.spec.js.map +1 -0
  570. package/dist/lib/button.d.ts +2 -19
  571. package/dist/lib/button.js +1 -2
  572. package/dist/lib/button.spec.d.ts +1 -0
  573. package/dist/lib/button.spec.js +2 -0
  574. package/dist/lib/button.spec.js.map +1 -0
  575. package/dist/lib/color.d.ts +2 -19
  576. package/dist/lib/color.js +1 -2
  577. package/dist/lib/color.spec.d.ts +1 -0
  578. package/dist/lib/color.spec.js +2 -0
  579. package/dist/lib/color.spec.js.map +1 -0
  580. package/dist/lib/compose-refs.d.ts +2 -8
  581. package/dist/lib/compose-refs.js +1 -2
  582. package/dist/lib/compose-refs.spec.d.ts +1 -0
  583. package/dist/lib/compose-refs.spec.js +2 -0
  584. package/dist/lib/compose-refs.spec.js.map +1 -0
  585. package/dist/lib/progress.d.ts +2 -19
  586. package/dist/lib/progress.js +1 -2
  587. package/dist/lib/progress.spec.d.ts +1 -0
  588. package/dist/lib/progress.spec.js +2 -0
  589. package/dist/lib/progress.spec.js.map +1 -0
  590. package/dist/lib/utils.d.ts +2 -8
  591. package/dist/lib/utils.js +1 -2
  592. package/dist/lib/utils.spec.d.ts +1 -0
  593. package/dist/lib/utils.spec.js +2 -0
  594. package/dist/lib/utils.spec.js.map +1 -0
  595. package/dist/list-BbCg-ndB.js +2 -0
  596. package/dist/list-BbCg-ndB.js.map +1 -0
  597. package/dist/list-DMa2j1rk.d.ts +25 -0
  598. package/dist/logo-B0v9bNJH.js +2 -0
  599. package/dist/logo-B0v9bNJH.js.map +1 -0
  600. package/dist/logo-Buo7sqqn.d.ts +69 -0
  601. package/dist/marker-4_EnMIHk.js +2 -0
  602. package/dist/marker-4_EnMIHk.js.map +1 -0
  603. package/dist/marker-C4wLa1c0.d.ts +18 -0
  604. package/dist/mask-input-B4R5K1h6.d.ts +16 -0
  605. package/dist/mask-input-ssK7U_Pl.js +2 -0
  606. package/dist/mask-input-ssK7U_Pl.js.map +1 -0
  607. package/dist/native-select-BVmdMkHY.d.ts +14 -0
  608. package/dist/native-select-DZW3Y7nq.js +2 -0
  609. package/dist/native-select-DZW3Y7nq.js.map +1 -0
  610. package/dist/navigation-menu-B6drNL1-.js +2 -0
  611. package/dist/navigation-menu-B6drNL1-.js.map +1 -0
  612. package/dist/navigation-menu-siQVRMUF.d.ts +26 -0
  613. package/dist/number-field-IdgO_BUa.d.ts +35 -0
  614. package/dist/number-field-rEMfZa6A.js +2 -0
  615. package/dist/number-field-rEMfZa6A.js.map +1 -0
  616. package/dist/pagination-BZ3xMXsy.d.ts +27 -0
  617. package/dist/pagination-gnUKddCN.js +2 -0
  618. package/dist/pagination-gnUKddCN.js.map +1 -0
  619. package/dist/phone-input-By5lNF03.d.ts +13 -0
  620. package/dist/phone-input-D72tVPWH.js +2 -0
  621. package/dist/phone-input-D72tVPWH.js.map +1 -0
  622. package/dist/pie-chart-CvG27kFN.d.ts +42 -0
  623. package/dist/pie-chart-S4nMKbsW.js +2 -0
  624. package/dist/pie-chart-S4nMKbsW.js.map +1 -0
  625. package/dist/popover-BtX3tX8M.js +2 -0
  626. package/dist/popover-BtX3tX8M.js.map +1 -0
  627. package/dist/popover-DchAqyKn.d.ts +21 -0
  628. package/dist/progress-DeXRCHUw.d.ts +19 -0
  629. package/dist/progress-QvpY7tiy.js +2 -0
  630. package/dist/progress-QvpY7tiy.js.map +1 -0
  631. package/dist/progress-icFwrvnE.js +2 -0
  632. package/dist/progress-icFwrvnE.js.map +1 -0
  633. package/dist/progress-mEAw9ZhK.d.ts +14 -0
  634. package/dist/radio-group-BNbepK_U.d.ts +25 -0
  635. package/dist/radio-group-DM8n0XPS.js +2 -0
  636. package/dist/radio-group-DM8n0XPS.js.map +1 -0
  637. package/dist/{react.esm-D5AipFQb.js → react.esm-BkhVXJ8s.js} +2 -2
  638. package/dist/{react.esm-D5AipFQb.js.map → react.esm-BkhVXJ8s.js.map} +1 -1
  639. package/dist/resizable-DMQG3xF_.d.ts +14 -0
  640. package/dist/resizable-Dbg7r7nF.js +2 -0
  641. package/dist/resizable-Dbg7r7nF.js.map +1 -0
  642. package/dist/ring-progress-65ccdTQQ.d.ts +17 -0
  643. package/dist/ring-progress-Bfqq_HHA.js +2 -0
  644. package/dist/ring-progress-Bfqq_HHA.js.map +1 -0
  645. package/dist/scroll-area-DFcj5q66.d.ts +11 -0
  646. package/dist/scroll-area-DKS4QPHg.js +2 -0
  647. package/dist/scroll-area-DKS4QPHg.js.map +1 -0
  648. package/dist/select-BoYp-Xyc.d.ts +29 -0
  649. package/dist/select-C3QYNv4t.js +2 -0
  650. package/dist/select-C3QYNv4t.js.map +1 -0
  651. package/dist/separator-BsRLiqWE.d.ts +9 -0
  652. package/dist/separator-CCMmbXL0.js +2 -0
  653. package/dist/separator-CCMmbXL0.js.map +1 -0
  654. package/dist/sidebar-B5bEgDy5.js +2 -0
  655. package/dist/sidebar-B5bEgDy5.js.map +1 -0
  656. package/dist/sidebar-D7HQlj5O.d.ts +96 -0
  657. package/dist/simple-grid-9EryoUWI.js +2 -0
  658. package/dist/simple-grid-9EryoUWI.js.map +1 -0
  659. package/dist/simple-grid-B2zjpwZ3.d.ts +14 -0
  660. package/dist/skeleton-Cn3zBJRe.js +2 -0
  661. package/dist/skeleton-Cn3zBJRe.js.map +1 -0
  662. package/dist/skeleton-Co8pevj-.d.ts +10 -0
  663. package/dist/skills/uselets-ui/references/component-catalog.md +3 -0
  664. package/dist/slider-CC-gQawq.js +2 -0
  665. package/dist/slider-CC-gQawq.js.map +1 -0
  666. package/dist/slider-DmZ1YfLg.d.ts +9 -0
  667. package/dist/sonner-Binx8JJ2.d.ts +8 -0
  668. package/dist/sonner-DrKqhTDI.js +2 -0
  669. package/dist/sonner-DrKqhTDI.js.map +1 -0
  670. package/dist/spinner-Dz63Ltq-.d.ts +12 -0
  671. package/dist/spinner-ntLrcDLN.js +2 -0
  672. package/dist/spinner-ntLrcDLN.js.map +1 -0
  673. package/dist/stack-BbLllsqk.js +2 -0
  674. package/dist/stack-BbLllsqk.js.map +1 -0
  675. package/dist/stack-WiND8Dxq.d.ts +14 -0
  676. package/dist/stepper-BQ-59_UO.js +2 -0
  677. package/dist/stepper-BQ-59_UO.js.map +1 -0
  678. package/dist/stepper-DK5_o7RG.d.ts +71 -0
  679. package/dist/switch-DjdOGECT.js +2 -0
  680. package/dist/switch-DjdOGECT.js.map +1 -0
  681. package/dist/switch-OtBakZHc.d.ts +17 -0
  682. package/dist/table-CuE0Aenj.js +2 -0
  683. package/dist/table-CuE0Aenj.js.map +1 -0
  684. package/dist/table-qIAtG7Y5.d.ts +33 -0
  685. package/dist/tabs-BgWxTTah.d.ts +21 -0
  686. package/dist/tabs-DK9-RHkP.js +2 -0
  687. package/dist/tabs-DK9-RHkP.js.map +1 -0
  688. package/dist/text-CKFZ9Xsj.d.ts +14 -0
  689. package/dist/text-Kg1xuinT.js +2 -0
  690. package/dist/text-Kg1xuinT.js.map +1 -0
  691. package/dist/textarea-C8zrf9Rz.js +2 -0
  692. package/dist/textarea-C8zrf9Rz.js.map +1 -0
  693. package/dist/textarea-Cr9_P-bV.d.ts +8 -0
  694. package/dist/theme-BwEhfTyl.d.ts +22 -0
  695. package/dist/theme-DZJ_cJYp.js +2 -0
  696. package/dist/theme-DZJ_cJYp.js.map +1 -0
  697. package/dist/timeline-BDY3YzeJ.d.ts +61 -0
  698. package/dist/timeline-pBm0t1tb.js +2 -0
  699. package/dist/timeline-pBm0t1tb.js.map +1 -0
  700. package/dist/toggle-DJJkcqDy.js +2 -0
  701. package/dist/toggle-DJJkcqDy.js.map +1 -0
  702. package/dist/toggle-group-C3iNDYqI.d.ts +16 -0
  703. package/dist/toggle-group-D0OIpZN-.js +2 -0
  704. package/dist/toggle-group-D0OIpZN-.js.map +1 -0
  705. package/dist/toggle-jc8s_Z3T.d.ts +15 -0
  706. package/dist/tooltip-BZjnEqw5.d.ts +21 -0
  707. package/dist/tooltip-CNUNWZvs.js +2 -0
  708. package/dist/tooltip-CNUNWZvs.js.map +1 -0
  709. package/dist/unstyled-button-C-Zs4Qv2.d.ts +10 -0
  710. package/dist/unstyled-button-lGbDJA55.js +2 -0
  711. package/dist/unstyled-button-lGbDJA55.js.map +1 -0
  712. package/dist/use-breakpoint-D6YACz8C.js +2 -0
  713. package/dist/use-breakpoint-D6YACz8C.js.map +1 -0
  714. package/dist/use-breakpoint-DDuQFekj.d.ts +8 -0
  715. package/dist/use-breakpoint-value-BDjKflDX.js +2 -0
  716. package/dist/use-breakpoint-value-BDjKflDX.js.map +1 -0
  717. package/dist/use-breakpoint-value-CRbHqGAu.d.ts +8 -0
  718. package/dist/use-disclosure-CNaFpYFQ.d.ts +22 -0
  719. package/dist/use-disclosure-Cr405eRD.js +2 -0
  720. package/dist/use-disclosure-Cr405eRD.js.map +1 -0
  721. package/dist/use-document-visibility-CoWjCswu.js +2 -0
  722. package/dist/use-document-visibility-CoWjCswu.js.map +1 -0
  723. package/dist/use-document-visibility-DIzUN4tB.d.ts +6 -0
  724. package/dist/use-idle-Bsi10VE9.d.ts +13 -0
  725. package/dist/use-idle-DgheJlxd.js +2 -0
  726. package/dist/use-idle-DgheJlxd.js.map +1 -0
  727. package/dist/use-interval-B1aNo3tA.js +2 -0
  728. package/dist/use-interval-B1aNo3tA.js.map +1 -0
  729. package/dist/use-interval-CJVmE_lC.d.ts +24 -0
  730. package/dist/use-local-storage-CJBqB1GC.js +2 -0
  731. package/dist/use-local-storage-CJBqB1GC.js.map +1 -0
  732. package/dist/use-local-storage-Cmq4PWJc.d.ts +16 -0
  733. package/dist/use-mask-DBvFShXA.js +2 -0
  734. package/dist/use-mask-DBvFShXA.js.map +1 -0
  735. package/dist/use-mask-DRJVVcdh.d.ts +8 -0
  736. package/dist/use-mobile-BYwiljVq.d.ts +6 -0
  737. package/dist/use-mobile-OMmp56u2.js +2 -0
  738. package/dist/use-mobile-OMmp56u2.js.map +1 -0
  739. package/dist/utils-DGsdoA5l.d.ts +8 -0
  740. package/dist/utils-DP9KtG7I.js +2 -0
  741. package/dist/utils-DP9KtG7I.js.map +1 -0
  742. package/dist/visibility-_3zV3l-A.d.ts +17 -0
  743. package/dist/visibility-twHwe9Xp.js +2 -0
  744. package/dist/visibility-twHwe9Xp.js.map +1 -0
  745. package/package.json +10 -8
  746. package/skills/uselets-ui/references/component-catalog.md +3 -0
  747. package/dist/components/accordion.js.map +0 -1
  748. package/dist/components/alert-dialog.js.map +0 -1
  749. package/dist/components/alert.js.map +0 -1
  750. package/dist/components/anchor.js.map +0 -1
  751. package/dist/components/area-chart.js.map +0 -1
  752. package/dist/components/avatar.js.map +0 -1
  753. package/dist/components/badge.js.map +0 -1
  754. package/dist/components/bar-chart.js.map +0 -1
  755. package/dist/components/breadcrumb.js.map +0 -1
  756. package/dist/components/button-group.js.map +0 -1
  757. package/dist/components/button.js.map +0 -1
  758. package/dist/components/calendar.js.map +0 -1
  759. package/dist/components/card.js.map +0 -1
  760. package/dist/components/carousel.js.map +0 -1
  761. package/dist/components/center.js.map +0 -1
  762. package/dist/components/chart.js.map +0 -1
  763. package/dist/components/checkbox.js.map +0 -1
  764. package/dist/components/code.js.map +0 -1
  765. package/dist/components/collapsible.js.map +0 -1
  766. package/dist/components/combobox.js.map +0 -1
  767. package/dist/components/command.js.map +0 -1
  768. package/dist/components/container.js.map +0 -1
  769. package/dist/components/data-table.js.map +0 -1
  770. package/dist/components/date-range-picker.js.map +0 -1
  771. package/dist/components/dialog.js.map +0 -1
  772. package/dist/components/donut-chart.js.map +0 -1
  773. package/dist/components/drawer.js.map +0 -1
  774. package/dist/components/dropdown-menu.js.map +0 -1
  775. package/dist/components/dropzone.js.map +0 -1
  776. package/dist/components/empty.js.map +0 -1
  777. package/dist/components/field.js.map +0 -1
  778. package/dist/components/flex.js.map +0 -1
  779. package/dist/components/grid.js.map +0 -1
  780. package/dist/components/group.js.map +0 -1
  781. package/dist/components/heading.js.map +0 -1
  782. package/dist/components/hover-card.js.map +0 -1
  783. package/dist/components/input-group.js.map +0 -1
  784. package/dist/components/input-otp.js.map +0 -1
  785. package/dist/components/input.js.map +0 -1
  786. package/dist/components/kbd.js.map +0 -1
  787. package/dist/components/label.js.map +0 -1
  788. package/dist/components/list.js.map +0 -1
  789. package/dist/components/marker.js.map +0 -1
  790. package/dist/components/mask-input.js.map +0 -1
  791. package/dist/components/native-select.js.map +0 -1
  792. package/dist/components/navigation-menu.js.map +0 -1
  793. package/dist/components/number-field.js.map +0 -1
  794. package/dist/components/pagination.js.map +0 -1
  795. package/dist/components/phone-input.js.map +0 -1
  796. package/dist/components/pie-chart.js.map +0 -1
  797. package/dist/components/popover.js.map +0 -1
  798. package/dist/components/progress.js.map +0 -1
  799. package/dist/components/radio-group.js.map +0 -1
  800. package/dist/components/resizable.js.map +0 -1
  801. package/dist/components/ring-progress.js.map +0 -1
  802. package/dist/components/scroll-area.js.map +0 -1
  803. package/dist/components/select.js.map +0 -1
  804. package/dist/components/separator.js.map +0 -1
  805. package/dist/components/sidebar.js.map +0 -1
  806. package/dist/components/simple-grid.js.map +0 -1
  807. package/dist/components/skeleton.js.map +0 -1
  808. package/dist/components/slider.js.map +0 -1
  809. package/dist/components/sonner.js.map +0 -1
  810. package/dist/components/spinner.js.map +0 -1
  811. package/dist/components/stack.js.map +0 -1
  812. package/dist/components/stepper.js.map +0 -1
  813. package/dist/components/switch.js.map +0 -1
  814. package/dist/components/table.js.map +0 -1
  815. package/dist/components/tabs.js.map +0 -1
  816. package/dist/components/text.js.map +0 -1
  817. package/dist/components/textarea.js.map +0 -1
  818. package/dist/components/theme.js.map +0 -1
  819. package/dist/components/timeline.js.map +0 -1
  820. package/dist/components/toggle-group.js.map +0 -1
  821. package/dist/components/toggle.js.map +0 -1
  822. package/dist/components/tooltip.js.map +0 -1
  823. package/dist/components/unstyled-button.js.map +0 -1
  824. package/dist/components/visibility.js.map +0 -1
  825. package/dist/hooks/use-breakpoint-value.js.map +0 -1
  826. package/dist/hooks/use-breakpoint.js.map +0 -1
  827. package/dist/hooks/use-disclosure.js.map +0 -1
  828. package/dist/hooks/use-document-visibility.js.map +0 -1
  829. package/dist/hooks/use-idle.js.map +0 -1
  830. package/dist/hooks/use-interval.js.map +0 -1
  831. package/dist/hooks/use-local-storage.js.map +0 -1
  832. package/dist/hooks/use-mask.js.map +0 -1
  833. package/dist/hooks/use-mobile.js.map +0 -1
  834. package/dist/lib/badge.js.map +0 -1
  835. package/dist/lib/button.js.map +0 -1
  836. package/dist/lib/color.js.map +0 -1
  837. package/dist/lib/compose-refs.js.map +0 -1
  838. package/dist/lib/progress.js.map +0 -1
  839. package/dist/lib/utils.js.map +0 -1
  840. package/dist/magic-string.es-oADFB1hu.js +0 -15
  841. package/dist/magic-string.es-oADFB1hu.js.map +0 -1
  842. package/dist/utils-Cj3IZeiu.js +0 -37
  843. package/dist/utils-Cj3IZeiu.js.map +0 -1
@@ -1,94 +1,2 @@
1
- import{n as e}from"../rolldown-runtime-Bdj-bS2b.js";import{Carousel as t,CarouselContent as n,CarouselIndicators as r,CarouselItem as i}from"./carousel.js";import{a,n as o,r as s}from"../react.esm-D5AipFQb.js";import{_ as c,a as l,c as u,d,f,g as p,h as m,i as h,l as g,m as _,n as v,o as y,p as b,r as x,s as S,t as C,u as ee,v as w,y as T}from"../utils-Cj3IZeiu.js";import{jsx as E,jsxs as te}from"react/jsx-runtime";var Diff=class{0;1;constructor(e,t){this[0]=e,this[1]=t}};function diff_commonPrefix(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(a,i)===t.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function diff_commonSuffix(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(e.length-i,e.length-a)===t.substring(t.length-i,t.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function diff_commonOverlap_(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let i=Math.min(n,r);if(e===t)return i;let a=0,o=1;for(;;){let n=e.substring(i-o),r=t.indexOf(n);if(r===-1)return a;o+=r,(r===0||e.substring(i-o)===t.substring(0,o))&&(a=o,o++)}}function diff_cleanupSemantic(e){let t=!1,n=[],r=0,i=null,a=0,o=0,s=0,c=0,l=0;for(;a<e.length;)e[a][0]===0?(n[r++]=a,o=c,s=l,c=0,l=0,i=e[a][1]):(e[a][0]===1?c+=e[a][1].length:l+=e[a][1].length,i&&i.length<=Math.max(o,s)&&i.length<=Math.max(c,l)&&(e.splice(n[r-1],0,new Diff(-1,i)),e[n[r-1]+1][0]=1,r--,r--,a=r>0?n[r-1]:-1,o=0,s=0,c=0,l=0,i=null,t=!0)),a++;for(t&&diff_cleanupMerge(e),diff_cleanupSemanticLossless(e),a=1;a<e.length;){if(e[a-1][0]===-1&&e[a][0]===1){let t=e[a-1][1],n=e[a][1],r=diff_commonOverlap_(t,n),i=diff_commonOverlap_(n,t);r>=i?(r>=t.length/2||r>=n.length/2)&&(e.splice(a,0,new Diff(0,n.substring(0,r))),e[a-1][1]=t.substring(0,t.length-r),e[a+1][1]=n.substring(r),a++):(i>=t.length/2||i>=n.length/2)&&(e.splice(a,0,new Diff(0,t.substring(0,i))),e[a-1][0]=1,e[a-1][1]=n.substring(0,n.length-i),e[a+1][0]=-1,e[a+1][1]=t.substring(i),a++),a++}a++}}const ne=/[^a-z0-9]/i,re=/\s/,ie=/[\r\n]/,ae=/\n\r?\n$/,oe=/^\r?\n\r?\n/;function diff_cleanupSemanticLossless(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===0&&e[t+1][0]===0){let n=e[t-1][1],r=e[t][1],i=e[t+1][1],a=diff_commonSuffix(n,r);if(a){let e=r.substring(r.length-a);n=n.substring(0,n.length-a),r=e+r.substring(0,r.length-a),i=e+i}let o=n,s=r,c=i,l=diff_cleanupSemanticScore_(n,r)+diff_cleanupSemanticScore_(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);let e=diff_cleanupSemanticScore_(n,r)+diff_cleanupSemanticScore_(r,i);e>=l&&(l=e,o=n,s=r,c=i)}e[t-1][1]!==o&&(o?e[t-1][1]=o:(e.splice(t-1,1),t--),e[t][1]=s,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}function diff_cleanupMerge(e){e.push(new Diff(0,``));let t=0,n=0,r=0,i=``,a=``,o;for(;t<e.length;)switch(e[t][0]){case 1:r++,a+=e[t][1],t++;break;case-1:n++,i+=e[t][1],t++;break;case 0:n+r>1?(n!==0&&r!==0&&(o=diff_commonPrefix(a,i),o!==0&&(t-n-r>0&&e[t-n-r-1][0]===0?e[t-n-r-1][1]+=a.substring(0,o):(e.splice(0,0,new Diff(0,a.substring(0,o))),t++),a=a.substring(o),i=i.substring(o)),o=diff_commonSuffix(a,i),o!==0&&(e[t][1]=a.substring(a.length-o)+e[t][1],a=a.substring(0,a.length-o),i=i.substring(0,i.length-o))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,new Diff(-1,i)),t++),a.length&&(e.splice(t,0,new Diff(1,a)),t++),t++):t!==0&&e[t-1][0]===0?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,i=``,a=``;break}e.at(-1)?.[1]===``&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===0&&e[t+1][0]===0&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&diff_cleanupMerge(e)}function diff_cleanupSemanticScore_(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(ne),a=r.match(ne),o=i&&n.match(re),s=a&&r.match(re),c=o&&n.match(ie),l=s&&r.match(ie),u=c&&e.match(ae),d=l&&t.match(oe);return u||d?5:c||l?4:i&&!o&&s?3:o||s?2:i||a?1:0}const se=`Compared values have no visual difference.`;function getDefaultExportFromCjs$1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}e(getDefaultExportFromCjs$1,`getDefaultExportFromCjs`);var D={},ce;function requireBuild(){if(ce)return D;ce=1,Object.defineProperty(D,"__esModule",{value:!0}),D.default=diffSequence;let e=`diff-sequences`,countCommonItemsF=(e,t,n,r,i)=>{let a=0;for(;e<t&&n<r&&i(e,n);)e+=1,n+=1,a+=1;return a},countCommonItemsR=(e,t,n,r,i)=>{let a=0;for(;e<=t&&n<=r&&i(t,r);)--t,--r,a+=1;return a},extendPathsF=(e,t,n,r,i,a,o)=>{let s=0,c=-e,l=a[s],u=l;a[s]+=countCommonItemsF(l+1,t,r+l-c+1,n,i);let d=e<o?e:o;for(s+=1,c+=2;s<=d;s+=1,c+=2){if(s!==e&&u<a[s])l=a[s];else if(l=u+1,t<=l)return s-1;u=a[s],a[s]=l+countCommonItemsF(l+1,t,r+l-c+1,n,i)}return o},extendPathsR=(e,t,n,r,i,a,o)=>{let s=0,c=e,l=a[s],u=l;a[s]-=countCommonItemsR(t,l-1,n,r+l-c-1,i);let d=e<o?e:o;for(s+=1,c-=2;s<=d;s+=1,c-=2){if(s!==e&&a[s]<u)l=a[s];else if(l=u-1,l<t)return s-1;u=a[s],a[s]=l-countCommonItemsR(t,l-1,n,r+l-c-1,i)}return o},extendOverlappablePathsF=(e,t,n,r,i,a,o,s,c,l,u)=>{let d=r-t,f=n-t,p=i-r-f,m=-p-(e-1),h=-p+(e-1),g=0,_=e<s?e:s;for(let s=0,f=-e;s<=_;s+=1,f+=2){let _=s===0||s!==e&&g<o[s],v=_?o[s]:g,y=_?v:v+1,b=d+y-f,x=countCommonItemsF(y+1,n,b+1,i,a),S=y+x;if(g=o[s],o[s]=S,m<=f&&f<=h){let o=(e-1-(f+p))/2;if(o<=l&&c[o]-1<=S){let o=d+v-(_?f+1:f-1),s=countCommonItemsR(t,v,r,o,a),c=v-s,l=o-s,p=c+1,m=l+1;u.nChangePreceding=e-1,e-1===p+m-t-r?(u.aEndPreceding=t,u.bEndPreceding=r):(u.aEndPreceding=p,u.bEndPreceding=m),u.nCommonPreceding=s,s!==0&&(u.aCommonPreceding=p,u.bCommonPreceding=m),u.nCommonFollowing=x,x!==0&&(u.aCommonFollowing=y+1,u.bCommonFollowing=b+1);let h=S+1,g=b+x+1;return u.nChangeFollowing=e-1,e-1===n+i-h-g?(u.aStartFollowing=n,u.bStartFollowing=i):(u.aStartFollowing=h,u.bStartFollowing=g),!0}}}return!1},extendOverlappablePathsR=(e,t,n,r,i,a,o,s,c,l,u)=>{let d=i-n,f=n-t,p=i-r-f,m=p-e,h=p+e,g=0,_=e<l?e:l;for(let l=0,f=e;l<=_;l+=1,f-=2){let _=l===0||l!==e&&c[l]<g,v=_?c[l]:g,y=_?v:v-1,b=d+y-f,x=countCommonItemsR(t,y-1,r,b-1,a),S=y-x;if(g=c[l],c[l]=S,m<=f&&f<=h){let c=(e+(f-p))/2;if(c<=s&&S-1<=o[c]){let o=b-x;if(u.nChangePreceding=e,e===S+o-t-r?(u.aEndPreceding=t,u.bEndPreceding=r):(u.aEndPreceding=S,u.bEndPreceding=o),u.nCommonPreceding=x,x!==0&&(u.aCommonPreceding=S,u.bCommonPreceding=o),u.nChangeFollowing=e-1,e===1)u.nCommonFollowing=0,u.aStartFollowing=n,u.bStartFollowing=i;else{let t=d+v-(_?f-1:f+1),r=countCommonItemsF(v,n,t,i,a);u.nCommonFollowing=r,r!==0&&(u.aCommonFollowing=v,u.bCommonFollowing=t);let o=v+r,s=t+r;e-1===n+i-o-s?(u.aStartFollowing=n,u.bStartFollowing=i):(u.aStartFollowing=o,u.bStartFollowing=s)}return!0}}}return!1},divide=(t,n,r,i,a,o,s,c,l)=>{let u=i-n,d=a-r,f=r-n,p=a-i,m=p-f,h=f,g=f;if(s[0]=n-1,c[0]=r,m%2==0){let e=(t||m)/2,_=(f+p)/2;for(let t=1;t<=_;t+=1)if(h=extendPathsF(t,r,a,u,o,s,h),t<e)g=extendPathsR(t,n,i,d,o,c,g);else if(extendOverlappablePathsR(t,n,r,i,a,o,s,h,c,g,l))return}else{let e=((t||m)+1)/2,_=(f+p+1)/2,v=1;for(h=extendPathsF(v,r,a,u,o,s,h),v+=1;v<=_;v+=1)if(g=extendPathsR(v-1,n,i,d,o,c,g),v<e)h=extendPathsF(v,r,a,u,o,s,h);else if(extendOverlappablePathsF(v,n,r,i,a,o,s,h,c,g,l))return}throw Error(`${e}: no overlap aStart=${n} aEnd=${r} bStart=${i} bEnd=${a}`)},findSubsequences=(e,t,n,r,i,a,o,s,c,l)=>{if(i-r<n-t){if(a=!a,a&&o.length===1){let{foundSubsequence:e,isCommon:t}=o[0];o[1]={foundSubsequence:(t,n,r)=>{e(t,r,n)},isCommon:(e,n)=>t(n,e)}}let e=t,s=n;t=r,n=i,r=e,i=s}let{foundSubsequence:u,isCommon:d}=o[+!!a];divide(e,t,n,r,i,d,s,c,l);let{nChangePreceding:f,aEndPreceding:p,bEndPreceding:m,nCommonPreceding:h,aCommonPreceding:g,bCommonPreceding:_,nCommonFollowing:v,aCommonFollowing:y,bCommonFollowing:b,nChangeFollowing:x,aStartFollowing:S,bStartFollowing:C}=l;t<p&&r<m&&findSubsequences(f,t,p,r,m,a,o,s,c,l),h!==0&&u(h,g,_),v!==0&&u(v,y,b),S<n&&C<i&&findSubsequences(x,S,n,C,i,a,o,s,c,l)},validateLength=(t,n)=>{if(typeof n!=`number`)throw TypeError(`${e}: ${t} typeof ${typeof n} is not a number`);if(!Number.isSafeInteger(n))throw RangeError(`${e}: ${t} value ${n} is not a safe integer`);if(n<0)throw RangeError(`${e}: ${t} value ${n} is a negative integer`)},validateCallback=(t,n)=>{let r=typeof n;if(r!==`function`)throw TypeError(`${e}: ${t} typeof ${r} is not a function`)};function diffSequence(e,t,n,r){validateLength(`aLength`,e),validateLength(`bLength`,t),validateCallback(`isCommon`,n),validateCallback(`foundSubsequence`,r);let i=countCommonItemsF(0,e,0,t,n);if(i!==0&&r(i,0,0),e!==i||t!==i){let a=i,o=i,s=countCommonItemsR(a,e-1,o,t-1,n),c=e-s,l=t-s,u=i+s;e!==u&&t!==u&&findSubsequences(0,a,c,o,l,!1,[{foundSubsequence:r,isCommon:n}],[0],[0],{aCommonFollowing:0,aCommonPreceding:0,aEndPreceding:0,aStartFollowing:0,bCommonFollowing:0,bCommonPreceding:0,bEndPreceding:0,bStartFollowing:0,nChangeFollowing:0,nChangePreceding:0,nCommonFollowing:0,nCommonPreceding:0}),s!==0&&r(s,c,l)}}return D}var le=getDefaultExportFromCjs$1(requireBuild());function formatTrailingSpaces(e,t){return e.replace(/\s+$/,e=>t(e))}function printDiffLine(e,t,n,r,i,a){return e.length===0?r===` `?t&&a.length!==0?n(`${r} ${a}`):``:n(r):n(`${r} ${formatTrailingSpaces(e,i)}`)}function printDeleteLine(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return printDiffLine(e,t,n,r,i,a)}function printInsertLine(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return printDiffLine(e,t,n,r,i,a)}function printCommonLine(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return printDiffLine(e,t,n,r,i,a)}function createPatchMark(e,t,n,r,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}function joinAlignedDiffsNoExpand(e,t){let n=e.length,r=t.contextLines,i=r+r,a=n,o=!1,s=0,c=0;for(;c!==n;){let t=c;for(;c!==n&&e[c][0]===0;)c+=1;if(t!==c)if(t===0)c>r&&(a-=c-r,o=!0);else if(c===n){let e=c-t;e>r&&(a-=e-r,o=!0)}else{let e=c-t;e>i&&(a-=e-i,s+=1)}for(;c!==n&&e[c][0]!==0;)c+=1}let l=s!==0||o;s===0?o&&(a+=1):a+=s+1;let u=a-1,d=[],f=0;l&&d.push(``);let p=0,m=0,h=0,g=0,pushCommonLine=e=>{let n=d.length;d.push(printCommonLine(e,n===0||n===u,t)),h+=1,g+=1},pushDeleteLine=e=>{let n=d.length;d.push(printDeleteLine(e,n===0||n===u,t)),h+=1},pushInsertLine=e=>{let n=d.length;d.push(printInsertLine(e,n===0||n===u,t)),g+=1};for(c=0;c!==n;){let a=c;for(;c!==n&&e[c][0]===0;)c+=1;if(a!==c)if(a===0){c>r&&(a=c-r,p=a,m=a,h=p,g=m);for(let t=a;t!==c;t+=1)pushCommonLine(e[t][1])}else if(c===n){let t=c-a>r?a+r:c;for(let n=a;n!==t;n+=1)pushCommonLine(e[n][1])}else{let n=c-a;if(n>i){let o=a+r;for(let t=a;t!==o;t+=1)pushCommonLine(e[t][1]);d[f]=createPatchMark(p,h,m,g,t),f=d.length,d.push(``);let s=n-i;p=h+s,m=g+s,h=p,g=m;for(let t=c-r;t!==c;t+=1)pushCommonLine(e[t][1])}else for(let t=a;t!==c;t+=1)pushCommonLine(e[t][1])}for(;c!==n&&e[c][0]===-1;)pushDeleteLine(e[c][1]),c+=1;for(;c!==n&&e[c][0]===1;)pushInsertLine(e[c][1]),c+=1}return l&&(d[f]=createPatchMark(p,h,m,g,t)),d.join(`
2
- `)}function joinAlignedDiffsExpand(e,t){return e.map((e,n,r)=>{let i=e[1],a=n===0||n===r.length-1;switch(e[0]){case-1:return printDeleteLine(i,a,t);case 1:return printInsertLine(i,a,t);default:return printCommonLine(i,a,t)}}).join(`
3
- `)}const noColor=e=>e;function getDefaultOptions(){return{aAnnotation:`Expected`,aColor:T.green,aIndicator:`-`,bAnnotation:`Received`,bColor:T.red,bIndicator:`+`,changeColor:T.inverse,changeLineTrailingSpaceColor:noColor,commonColor:T.dim,commonIndicator:` `,commonLineTrailingSpaceColor:noColor,compareKeys:void 0,contextLines:5,emptyFirstOrLastLinePlaceholder:``,expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:T.yellow,printBasicPrototype:!1,truncateThreshold:0,truncateAnnotation:`... Diff result is truncated`,truncateAnnotationColor:noColor}}function getCompareKeys(e){return e&&typeof e==`function`?e:void 0}function getContextLines(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:5}function normalizeDiffOptions(e={}){return{...getDefaultOptions(),...e,compareKeys:getCompareKeys(e.compareKeys),contextLines:getContextLines(e.contextLines)}}function isEmptyString(e){return e.length===1&&e[0].length===0}function countChanges(e){let t=0,n=0;return e.forEach(e=>{switch(e[0]){case-1:t+=1;break;case 1:n+=1;break}}),{a:t,b:n}}function printAnnotation({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:i,bIndicator:a,includeChangeCounts:o,omitAnnotationLines:s},c){if(s)return``;let l=``,u=``;if(o){let t=String(c.a),i=String(c.b),o=r.length-e.length,s=` `.repeat(Math.max(0,o)),d=` `.repeat(Math.max(0,-o)),f=i.length-t.length,p=` `.repeat(Math.max(0,f)),m=` `.repeat(Math.max(0,-f));l=`${s} ${n} ${p}${t}`,u=`${d} ${a} ${m}${i}`}let d=`${n} ${e}${l}`,f=`${a} ${r}${u}`;return`${t(d)}\n${i(f)}\n\n`}function printDiffLines(e,t,n){return printAnnotation(n,countChanges(e))+(n.expand?joinAlignedDiffsExpand(e,n):joinAlignedDiffsNoExpand(e,n))+(t?n.truncateAnnotationColor(`\n${n.truncateAnnotation}`):``)}function diffLinesUnified(e,t,n){let r=normalizeDiffOptions(n),[i,a]=diffLinesRaw(isEmptyString(e)?[]:e,isEmptyString(t)?[]:t,r);return printDiffLines(i,a,r)}function diffLinesUnified2(e,t,n,r,i){if(isEmptyString(e)&&isEmptyString(n)&&(e=[],n=[]),isEmptyString(t)&&isEmptyString(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return diffLinesUnified(e,t,i);let[a,o]=diffLinesRaw(n,r,i),s=0,c=0;return a.forEach(n=>{switch(n[0]){case-1:n[1]=e[s],s+=1;break;case 1:n[1]=t[c],c+=1;break;default:n[1]=t[c],s+=1,c+=1}}),printDiffLines(a,o,normalizeDiffOptions(i))}function diffLinesRaw(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=r?Math.min(e.length,i):e.length,o=r?Math.min(t.length,i):t.length,s=a!==e.length||o!==t.length,isCommon=(n,r)=>e[n]===t[r],c=[],l=0,u=0,foundSubsequence=(n,r,i)=>{for(;l!==r;l+=1)c.push(new Diff(-1,e[l]));for(;u!==i;u+=1)c.push(new Diff(1,t[u]));for(;n!==0;--n,l+=1,u+=1)c.push(new Diff(0,t[u]))};for(le(a,o,isCommon,foundSubsequence);l!==a;l+=1)c.push(new Diff(-1,e[l]));for(;u!==o;u+=1)c.push(new Diff(1,t[u]));return[c,s]}function getType(e){if(e===void 0)return`undefined`;if(e===null)return`null`;if(Array.isArray(e))return`array`;if(typeof e==`boolean`)return`boolean`;if(typeof e==`function`)return`function`;if(typeof e==`number`)return`number`;if(typeof e==`string`)return`string`;if(typeof e==`bigint`)return`bigint`;if(typeof e==`object`){if(e!=null){if(e.constructor===RegExp)return`regexp`;if(e.constructor===Map)return`map`;if(e.constructor===Set)return`set`;if(e.constructor===Date)return`date`}return`object`}else if(typeof e==`symbol`)return`symbol`;throw Error(`value of unknown type: ${e}`)}function getNewLineSymbol(e){return e.includes(`\r
4
- `)?`\r
5
- `:`
6
- `}function diffStrings(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=e.length,o=t.length;if(r){let n=e.includes(`
7
- `),r=t.includes(`
8
- `),s=getNewLineSymbol(e),c=getNewLineSymbol(t),l=n?`${e.split(s,i).join(s)}\n`:e,u=r?`${t.split(c,i).join(c)}\n`:t;a=l.length,o=u.length}let s=a!==e.length||o!==t.length,isCommon=(n,r)=>e[n]===t[r],c=0,l=0,u=[],foundSubsequence=(n,r,i)=>{c!==r&&u.push(new Diff(-1,e.slice(c,r))),l!==i&&u.push(new Diff(1,t.slice(l,i))),c=r+n,l=i+n,u.push(new Diff(0,t.slice(i,l)))};return le(a,o,isCommon,foundSubsequence),c!==a&&u.push(new Diff(-1,e.slice(c))),l!==o&&u.push(new Diff(1,t.slice(l))),[u,s]}function concatenateRelevantDiffs(e,t,n){return t.reduce((t,r)=>t+(r[0]===0?r[1]:r[0]===e&&r[1].length!==0?n(r[1]):``),``)}var ChangeBuffer=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Diff(this.op,e))}pushLine(){this.lines.push(this.line.length===1?this.line[0][0]===this.op?this.line[0]:new Diff(this.op,this.line[0][1]):new Diff(this.op,concatenateRelevantDiffs(this.op,this.line,this.changeColor))),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
9
- `)){let e=t.split(`
10
- `),n=e.length-1;e.forEach((e,t)=>{t<n?(this.pushSubstring(e),this.pushLine()):e.length!==0&&this.pushSubstring(e)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},CommonBuffer=class{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],n=e[1];if(n.includes(`
11
- `)){let e=n.split(`
12
- `),r=e.length-1;e.forEach((e,n)=>{if(n===0){let n=new Diff(t,e);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(n)):(this.pushDiffChangeLines(n),this.flushChangeLines())}else n<r?this.pushDiffCommonLine(new Diff(t,e)):e.length!==0&&this.pushDiffChangeLines(new Diff(t,e))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function getAlignedDiffs(e,t){let n=new ChangeBuffer(-1,t),r=new ChangeBuffer(1,t),i=new CommonBuffer(n,r);return e.forEach(e=>{switch(e[0]){case-1:n.align(e);break;case 1:r.align(e);break;default:i.align(e)}}),i.getLines()}function hasCommonDiff(e,t){if(t){let t=e.length-1;return e.some((e,n)=>e[0]===0&&(n!==t||e[1]!==`
13
- `))}return e.some(e=>e[0]===0)}function diffStringsUnified(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
14
- `)||t.includes(`
15
- `),[i,a]=diffStringsRaw(r?`${e}\n`:e,r?`${t}\n`:t,!0,n);if(hasCommonDiff(i,r)){let e=normalizeDiffOptions(n);return printDiffLines(getAlignedDiffs(i,e.changeColor),a,e)}}return diffLinesUnified(e.split(`
16
- `),t.split(`
17
- `),n)}function diffStringsRaw(e,t,n,r){let[i,a]=diffStrings(e,t,r);return n&&diff_cleanupSemantic(i),[i,a]}function getCommonMessage(e,t){let{commonColor:n}=normalizeDiffOptions(t);return n(e)}const{AsymmetricMatcher:ue,DOMCollection:de,DOMElement:fe,Immutable:pe,ReactElement:me,ReactTestComponent:he}=w,ge=[he,me,fe,de,pe,ue,w.Error],O={maxDepth:20,plugins:ge},_e={callToJSON:!1,maxDepth:8,plugins:ge},DEFAULT_MEMORIZE=(e,t)=>t;function diff(e,t,n,r=DEFAULT_MEMORIZE){if(Object.is(e,t))return``;let i=getType(e),a=i,o=!1;if(i===`object`&&typeof e.asymmetricMatch==`function`){if(e.$$typeof!==Symbol.for(`jest.asymmetricMatcher`)||typeof e.getExpectedType!=`function`)return;a=e.getExpectedType(),o=a===`string`}if(a!==getType(t)){let{aAnnotation:i,aColor:a,aIndicator:o,bAnnotation:s,bColor:l,bIndicator:u}=normalizeDiffOptions(n),d=getFormatOptions(_e,n),f=c(e,d),p=c(t,d),m=1e5;function truncate(e){return e.length<=m?e:`${e.slice(0,m)}...`}return f=r(`expected`,truncate(f)),p=r(`actual`,truncate(p)),`${`${a(`${o} ${i}:`)}\n${f}`}\n\n${`${l(`${u} ${s}:`)}\n${p}`}`}if(!o)switch(i){case`string`:return diffLinesUnified(e.split(`
18
- `),t.split(`
19
- `),n);case`boolean`:case`number`:return comparePrimitive(e,t,n,r);case`map`:return compareObjects(sortMap(e),sortMap(t),n,r);case`set`:return compareObjects(sortSet(e),sortSet(t),n,r);default:return compareObjects(e,t,n,r)}}function createMemorize(e){return(t,n)=>(e[t]=n,n)}function comparePrimitive(e,t,n,r=DEFAULT_MEMORIZE){let i=r(`expected`,c(e,O)),a=r(`actual`,c(t,O));return i===a?``:diffLinesUnified(i.split(`
20
- `),a.split(`
21
- `),n)}function sortMap(e){return new Map(Array.from(e.entries()).sort())}function sortSet(e){return new Set(Array.from(e.values()).sort())}function compareObjects(e,t,n,r=DEFAULT_MEMORIZE){let i,a=!1;try{i=getObjectsDifference(e,t,getFormatOptions(O,n),n,r)}catch{a=!0}let o=getCommonMessage(se,n);return(i===void 0||i===o)&&(i=getObjectsDifference(e,t,getFormatOptions(_e,n),n,r),i!==o&&!a&&(i=`${getCommonMessage("Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",n)}\n\n${i}`)),i}function getDefaultFormatOptions(e){return getFormatOptions(O,e)}function getFormatOptions(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:i}=normalizeDiffOptions(t);return{...e,compareKeys:n,printBasicPrototype:r,maxDepth:i??e.maxDepth}}function getObjectsDifference(e,t,n,r,i=DEFAULT_MEMORIZE){let a={...n,indent:0},o=c(e,a),s=c(t,a);if(o===s)return getCommonMessage(se,r);{let a=i(`expected`,c(e,n)),l=i(`actual`,c(t,n));return diffLinesUnified2(a.split(`
22
- `),l.split(`
23
- `),o.split(`
24
- `),s.split(`
25
- `),r)}}const ve=2e4;function isAsymmetricMatcher(e){return f(e)===`Object`&&typeof e.asymmetricMatch==`function`}function isReplaceable(e,t){let n=f(e);return n===f(t)&&(n===`Object`||n===`Array`)}function printDiffOrStringify(e,t,n,r){let{aAnnotation:i,bAnnotation:a}=normalizeDiffOptions(n);if(typeof t==`string`&&typeof e==`string`&&t.length>0&&e.length>0&&t.length<=ve&&e.length<=ve&&t!==e){if(t.includes(`
26
- `)||e.includes(`
27
- `))return diffStringsUnified(t,e,n);let[r]=diffStringsRaw(t,e,!0),o=r.some(e=>e[0]===0),s=getLabelPrinter(i,a);return`${s(i)+printExpected$1(getCommonAndChangedSubstrings(r,-1,o))}\n${s(a)+printReceived$1(getCommonAndChangedSubstrings(r,1,o))}`}let o=g(t,{forceWritable:!0}),{replacedExpected:s,replacedActual:c}=replaceAsymmetricMatcher(g(e,{forceWritable:!0}),o);return diff(s,c,n,r?createMemorize(r):DEFAULT_MEMORIZE)}function replaceAsymmetricMatcher(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&e.cause!==void 0&&t.cause===void 0?(delete e.cause,{replacedActual:e,replacedExpected:t}):!isReplaceable(e,t)||n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),d(t).forEach(i=>{let a=t[i],o=e[i];if(isAsymmetricMatcher(a)){if(a.asymmetricMatch(o))t[i]=o;else if(`sample`in a&&a.sample!==void 0&&isReplaceable(o,a.sample)){let s=replaceAsymmetricMatcher(o,a.sample,n,r);e[i]=s.replacedActual,t[i]=s.replacedExpected}}else if(isAsymmetricMatcher(o)){if(o.asymmetricMatch(a))e[i]=a;else if(`sample`in o&&o.sample!==void 0&&isReplaceable(o.sample,a)){let s=replaceAsymmetricMatcher(o.sample,a,n,r);e[i]=s.replacedActual,t[i]=s.replacedExpected}}else if(isReplaceable(o,a)){let s=replaceAsymmetricMatcher(o,a,n,r);e[i]=s.replacedActual,t[i]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t})}function getLabelPrinter(...e){let t=e.reduce((e,t)=>t.length>e?t.length:e,0);return e=>`${e}: ${` `.repeat(t-e.length)}`}function replaceTrailingSpaces$1(e){return e.replace(/\s+$/gm,e=>`·`.repeat(e.length))}e(replaceTrailingSpaces$1,`replaceTrailingSpaces`);function printReceived$1(e){return T.red(replaceTrailingSpaces$1(p(e)))}e(printReceived$1,`printReceived`);function printExpected$1(e){return T.green(replaceTrailingSpaces$1(p(e)))}e(printExpected$1,`printExpected`);function getCommonAndChangedSubstrings(e,t,n){return e.reduce((e,r)=>e+(r[0]===0?r[1]:r[0]===t?n?T.inverse(r[1]):r[1]:``),``)}function isImmutable(e){return e&&(e[`@@__IMMUTABLE_ITERABLE__@@`]||e[`@@__IMMUTABLE_RECORD__@@`])}const ye=Object.getPrototypeOf({});function getUnserializableMessage(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e==`string`?`<unserializable>: ${e}`:`<unserializable>`}function serializeValue(e,t=new WeakMap){if(!e||typeof e==`string`)return e;if(e instanceof Error&&`toJSON`in e&&typeof e.toJSON==`function`){let n=e.toJSON();return n&&n!==e&&typeof n==`object`&&(typeof e.message==`string`&&safe(()=>n.message??=normalizeErrorMessage(e.message)),typeof e.stack==`string`&&safe(()=>n.stack??=e.stack),typeof e.name==`string`&&safe(()=>n.name??=e.name),e.cause!=null&&safe(()=>n.cause??=serializeValue(e.cause,t))),serializeValue(n,t)}if(typeof e==`function`)return`Function<${e.name||`anonymous`}>`;if(typeof e==`symbol`)return e.toString();if(typeof e!=`object`)return e;if(typeof Buffer<`u`&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<`u`&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(isImmutable(e))return serializeValue(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype===`AsyncFunction`)return`Promise`;if(typeof Element<`u`&&e instanceof Element)return e.tagName;if(typeof e.toJSON==`function`)return serializeValue(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=Array(e.length);return t.set(e,n),e.forEach((e,r)=>{try{n[r]=serializeValue(e,t)}catch(e){n[r]=getUnserializableMessage(e)}}),n}else{let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==ye;)Object.getOwnPropertyNames(r).forEach(r=>{if(!(r in n))try{n[r]=serializeValue(e[r],t)}catch(e){delete n[r],n[r]=getUnserializableMessage(e)}}),r=Object.getPrototypeOf(r);return e instanceof Error&&safe(()=>n.message=normalizeErrorMessage(e.message)),n}}function safe(e){try{return e()}catch{}}function normalizeErrorMessage(e){return e.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,`$1`).replace(/__(vite_ssr_import|vi_import)_\d+__\./g,``).replace(/getByTestId('__vitest_\d+__')/g,`page`)}function processError(e,t,n=new WeakSet){if(!e||typeof e!=`object`)return{message:String(e)};let r=e;if(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0){let e={...t,...r.diffOptions};r.diff=printDiffOrStringify(r.actual,r.expected,e,r),r.expected=prettifyValue(r.expected,e),r.actual=prettifyValue(r.actual,e)}try{!n.has(r)&&typeof r.cause==`object`&&(n.add(r),r.cause=processError(r.cause,t,n))}catch{}try{return serializeValue(r)}catch(e){return serializeValue(Error(`Failed to fully serialize error: ${e?.message}\nInner error message: ${r?.message}`))}}function prettifyValue(e,t){return typeof e==`string`?e:c(e,getDefaultFormatOptions(t))}function getWorkerState(){let e=globalThis.__vitest_worker__;if(!e)throw Error(`Vitest failed to access its internal state.
28
-
29
- One of the following is possible:
30
- - "vitest" is imported directly without running "vitest" command
31
- - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
32
- - "vitest" is imported inside Vite / Vitest config file
33
- - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
34
- `);return e}function isChildProcess(){return typeof process<`u`&&!!process.send}function resetModules(e,t=!1){let n=[/\/vitest\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...t?[]:[/^mock:/]];e.idToModuleMap.forEach((e,t)=>{n.some(e=>e.test(t))||(e.promise=void 0,e.exports=void 0,e.evaluated=!1,e.importers.clear())})}function waitNextTick(){let{setTimeout:e}=y();return new Promise(t=>e(t,0))}async function waitForImportsToResolve(){await waitNextTick();let e=getWorkerState(),t=[],n=e.resolvingModules.size;for(let[n,r]of e.evaluatedModules.idToModuleMap)r.promise&&!r.evaluated&&t.push(r.promise);!t.length&&!n||(await Promise.allSettled(t),await waitForImportsToResolve())}function isMockFunction(e){return typeof e==`function`&&`_isMockFunction`in e&&e._isMockFunction===!0}const be=new Set,xe=new Set,Se=new WeakMap;function createMockInstance(e={}){let{originalImplementation:t,restore:n,mockImplementation:r,resetToMockImplementation:i,resetToMockName:a}=e;n&&be.add(n);let o=getDefaultConfig(t),s=getDefaultState(),c=createMock({config:o,state:s,...e}),l=(r||t)?.length??0;return Object.defineProperty(c,"length",{writable:!0,enumerable:!1,value:l,configurable:!0}),a&&(o.mockName=c.name||`vi.fn()`),Se.set(c,o),xe.add(c),c._isMockFunction=!0,c.getMockImplementation=()=>o.onceMockImplementations[0]||o.mockImplementation,Object.defineProperty(c,"mock",{configurable:!1,enumerable:!0,writable:!1,value:s}),c.mockImplementation=function mockImplementation(e){return o.mockImplementation=e,c},c.mockImplementationOnce=function mockImplementationOnce(e){return o.onceMockImplementations.push(e),c},c.withImplementation=function withImplementation(e,t){let n=o.mockImplementation,r=o.onceMockImplementations,reset=()=>{o.mockImplementation=n,o.onceMockImplementations=r};o.mockImplementation=e,o.onceMockImplementations=[];let i=t();return typeof i==`object`&&typeof i?.then==`function`?i.then(()=>(reset(),c)):(reset(),c)},c.mockReturnThis=function mockReturnThis(){return c.mockImplementation(function(){return this})},c.mockReturnValue=function mockReturnValue(e){return c.mockImplementation(function(){return new.target&&throwConstructorError(`mockReturnValue`),e})},c.mockReturnValueOnce=function mockReturnValueOnce(e){return c.mockImplementationOnce(function(){return new.target&&throwConstructorError(`mockReturnValueOnce`),e})},c.mockThrow=function mockThrow(e){return c.mockImplementation(function(){throw e})},c.mockThrowOnce=function mockThrowOnce(e){return c.mockImplementationOnce(function(){throw e})},c.mockResolvedValue=function mockResolvedValue(e){return c.mockImplementation(function(){return new.target&&throwConstructorError(`mockResolvedValue`),Promise.resolve(e)})},c.mockResolvedValueOnce=function mockResolvedValueOnce(e){return c.mockImplementationOnce(function(){return new.target&&throwConstructorError(`mockResolvedValueOnce`),Promise.resolve(e)})},c.mockRejectedValue=function mockRejectedValue(e){return c.mockImplementation(function(){return new.target&&throwConstructorError(`mockRejectedValue`),Promise.reject(e)})},c.mockRejectedValueOnce=function mockRejectedValueOnce(e){return c.mockImplementationOnce(function(){return new.target&&throwConstructorError(`mockRejectedValueOnce`),Promise.reject(e)})},c.mockClear=function mockClear(){return s.calls=[],s.contexts=[],s.instances=[],s.invocationCallOrder=[],s.results=[],s.settledResults=[],c},c.mockReset=function mockReset(){return c.mockClear(),o.mockImplementation=i?r:void 0,o.mockName=a&&c.name||`vi.fn()`,o.onceMockImplementations=[],c},c.mockRestore=function mockRestore(){return c.mockReset(),n?.()},c.mockName=function mockName(e){return typeof e==`string`&&(o.mockName=e),c},c.getMockName=function getMockName(){return o.mockName||`vi.fn()`},Symbol.dispose&&(c[Symbol.dispose]=()=>c.mockRestore()),r&&c.mockImplementation(r),c}function fn(e){return e!=null&&isMockFunction(e)?e:createMockInstance({mockImplementation:e,resetToMockImplementation:!0})}function spyOn(e,t,n){assert$2(e!=null,`The vi.spyOn() function could not find an object to spy upon. The first argument must be defined.`),assert$2(typeof e==`object`||typeof e==`function`,`Vitest cannot spy on a primitive value.`);let[r,i]=getDescriptor(e,t)||[];assert$2(i||t in e,`The property "${String(t)}" is not defined on the ${typeof e}.`);let a=n||`value`,o=!1;a===`value`&&i&&i.value==null&&i.get&&(a=`get`,o=!0);let s;i?(s=i[a],s==null&&a===`value`&&(s=e[t])):s=a===`value`?e[t]:()=>e[t];let c=o&&s?s():s,l=typeof c;if(assert$2(l===`function`||a!==`value`&&s==null,`vi.spyOn() can only spy on a function. Received ${l}.`),isMockFunction(c))return c;let reassign=n=>{let{value:r,...o}=i||{configurable:!0,writable:!0};a!==`value`&&delete o.writable,o[a]=n,Object.defineProperty(e,t,o)},restore=()=>{r===e?i&&!s?Object.defineProperty(e,t,i):reassign(s):Reflect.deleteProperty(e,t)},u=createMockInstance({restore,originalImplementation:c,resetToMockName:!0});try{reassign(o?()=>u:u)}catch(n){throw n instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]===`Module`&&(n.message.includes(`Cannot redefine property`)||n.message.includes(`Cannot replace module namespace`)||n.message.includes(`can't redefine non-configurable property`))?TypeError(`Cannot spy on export "${String(t)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:n}):n}return u}function getDescriptor(e,t){let n=Object.getOwnPropertyDescriptor(e,t);if(n)return[e,n];let r=Object.getPrototypeOf(e);for(;r!==null;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return[r,e];r=Object.getPrototypeOf(r)}}function assert$2(e,t){if(!e)throw Error(t)}e(assert$2,`assert`);let Ce=1;function createMock({state:e,config:t,name:n,prototypeState:r,prototypeConfig:i,keepMembersImplementation:a,mockImplementation:o,prototypeMembers:s=[]}){let c=t.mockOriginal,l=o,u=n||c?.name||`Mock`,d={[u]:(function(...n){registerCalls(n,e,r),registerInvocationOrder(Ce++,e,r);let o={type:`incomplete`,value:void 0},l={type:`incomplete`,value:void 0};registerResult(o,e,r),registerSettledResult(l,e,r);let p=new.target?void 0:this,[m,h]=registerInstance(p,e,r),[g,_]=registerContext(p,e,r),v=t.onceMockImplementations.shift()||t.mockImplementation||i?.onceMockImplementations.shift()||i?.mockImplementation||c||function(){},y,b,x=!1;try{if(new.target){y=Reflect.construct(v,n,new.target);for(let e of s){let t=y[e];if(t!==f.prototype[e])continue;let n=isMockFunction(t),r=n?t.mock:void 0,i=n?Se.get(t):void 0;y[e]=createMockInstance({originalImplementation:a?i?.mockOriginal:void 0,prototypeState:r,prototypeConfig:i,keepMembersImplementation:a})}}else y=v.apply(this,n)}catch(e){throw b=e,x=!0,e instanceof TypeError&&e.message.includes(`is not a constructor`)&&console.warn(`[vitest] The ${d[u].getMockName()} mock did not use 'function' or 'class' in its implementation, see https://vitest.dev/api/vi#vi-spyon for examples.`),e}finally{x?(o.type=`throw`,o.value=b,l.type=`rejected`,l.value=b):(o.type=`return`,o.value=y,new.target&&(e.contexts[g-1]=y,e.instances[m-1]=y,_!=null&&r&&(r.contexts[_-1]=y),h!=null&&r&&(r.instances[h-1]=y)),y instanceof Promise?y.then(e=>{l.type=`fulfilled`,l.value=e},e=>{l.type=`rejected`,l.value=e}):(l.type=`fulfilled`,l.value=y))}return y})},f=d[u],p=c||l;return p&&copyOriginalStaticProperties(f,p),f}function registerCalls(e,t,n){t.calls.push(e),n?.calls.push(e)}function registerInvocationOrder(e,t,n){t.invocationCallOrder.push(e),n?.invocationCallOrder.push(e)}function registerResult(e,t,n){t.results.push(e),n?.results.push(e)}function registerSettledResult(e,t,n){t.settledResults.push(e),n?.settledResults.push(e)}function registerInstance(e,t,n){return[t.instances.push(e),n?.instances.push(e)]}function registerContext(e,t,n){return[t.contexts.push(e),n?.contexts.push(e)]}function copyOriginalStaticProperties(e,t){let{properties:n,descriptors:r}=getAllProperties(t);for(let t of n){let n=r[t];getDescriptor(e,t)||Object.defineProperty(e,t,n)}}const we=new Set([`length`,`name`,`prototype`,Symbol.for(`nodejs.util.promisify.custom`)]);function getAllProperties(e){let t=new Set,n={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let i of r)n[i]||we.has(i)||(t.add(i),n[i]=Object.getOwnPropertyDescriptor(e,i));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:n}}function getDefaultConfig(e){return{mockImplementation:void 0,mockOriginal:e,mockName:`vi.fn()`,onceMockImplementations:[]}}function getDefaultState(){let e={calls:[],contexts:[],instances:[],invocationCallOrder:[],settledResults:[],results:[],get lastCall(){return e.calls.at(-1)}};return e}function restoreAllMocks(){for(let e of be)e();be.clear()}function clearAllMocks(){xe.forEach(e=>e.mockClear())}function resetAllMocks(){xe.forEach(e=>e.mockReset())}function throwConstructorError(e){throw TypeError(`Cannot use \`${e}\` when called with \`new\`. Use \`mockImplementation\` with a \`class\` keyword instead. See https://vitest.dev/api/mock#class-support for more information.`)}var k=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__name=(e,t)=>k(e,`name`,{value:t,configurable:!0}),__export=(e,t)=>{for(var n in t)k(e,n,{get:t[n],enumerable:!0})},__publicField=(e,t,n)=>__defNormalProp(e,typeof t==`symbol`?t:t+``,n),A={};__export(A,{addChainableMethod:()=>addChainableMethod,addLengthGuard:()=>addLengthGuard,addMethod:()=>addMethod,addProperty:()=>addProperty,checkError:()=>j,compareByInspect:()=>compareByInspect,eql:()=>Ke,events:()=>I,expectTypes:()=>expectTypes,flag:()=>flag,getActual:()=>getActual,getMessage:()=>getMessage2,getName:()=>getName,getOperator:()=>getOperator,getOwnEnumerableProperties:()=>getOwnEnumerableProperties,getOwnEnumerablePropertySymbols:()=>getOwnEnumerablePropertySymbols,getPathInfo:()=>getPathInfo,hasProperty:()=>hasProperty,inspect:()=>inspect2,isNaN:()=>L,isNumeric:()=>isNumeric,isProxyEnabled:()=>isProxyEnabled,isRegExp:()=>isRegExp2,objDisplay:()=>objDisplay,overwriteChainableMethod:()=>overwriteChainableMethod,overwriteMethod:()=>overwriteMethod,overwriteProperty:()=>overwriteProperty,proxify:()=>proxify,test:()=>test$1,transferFlags:()=>transferFlags,type:()=>type});var j={};__export(j,{compatibleConstructor:()=>compatibleConstructor,compatibleInstance:()=>compatibleInstance,compatibleMessage:()=>compatibleMessage,getConstructorName:()=>getConstructorName,getMessage:()=>getMessage});function isErrorInstance(e){return e instanceof Error||Object.prototype.toString.call(e)===`[object Error]`}__name(isErrorInstance,`isErrorInstance`);function isRegExp(e){return Object.prototype.toString.call(e)===`[object RegExp]`}__name(isRegExp,`isRegExp`);function compatibleInstance(e,t){return isErrorInstance(t)&&e===t}__name(compatibleInstance,`compatibleInstance`);function compatibleConstructor(e,t){return isErrorInstance(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t==`object`||typeof t==`function`)&&t.prototype?e.constructor===t||e instanceof t:!1}__name(compatibleConstructor,`compatibleConstructor`);function compatibleMessage(e,t){let n=typeof e==`string`?e:e.message;return isRegExp(t)?t.test(n):typeof t==`string`&&n.indexOf(t)!==-1}__name(compatibleMessage,`compatibleMessage`);function getConstructorName(e){let t=e;return isErrorInstance(e)?t=e.constructor.name:typeof e==`function`&&(t=e.name,t===``&&(t=new e().name||t)),t}__name(getConstructorName,`getConstructorName`);function getMessage(e){let t=``;return e&&e.message?t=e.message:typeof e==`string`&&(t=e),t}__name(getMessage,`getMessage`);function flag(e,t,n){let r=e.__flags||=Object.create(null);if(arguments.length===3)r[t]=n;else return r[t]}__name(flag,`flag`);function test$1(e,t){let n=flag(e,`negate`),r=t[0];return n?!r:r}e(test$1,`test`),__name(test$1,`test`);function type(e){if(e===void 0)return`undefined`;if(e===null)return`null`;let t=e[Symbol.toStringTag];return typeof t==`string`?t:Object.prototype.toString.call(e).slice(8,-1)}__name(type,`type`);var Te=`captureStackTrace`in Error,Ee=class _AssertionError extends Error{constructor(e=`Unspecified AssertionError`,t,n){super(e),__publicField(this,`message`),this.message=e,Te&&Error.captureStackTrace(this,n||_AssertionError);for(let e in t)e in this||(this[e]=t[e])}get name(){return`AssertionError`}get ok(){return!1}toJSON(e){return{...this,name:this.name,message:this.message,ok:!1,stack:e===!1?void 0:this.stack}}};__name(Ee,`AssertionError`);var M=Ee;function expectTypes(e,t){let n=flag(e,`message`),r=flag(e,`ssfi`);n=n?n+`: `:``,e=flag(e,`object`),t=t.map(function(e){return e.toLowerCase()}),t.sort();let i=t.map(function(e,n){let r=~[`a`,`e`,`i`,`o`,`u`].indexOf(e.charAt(0))?`an`:`a`;return(t.length>1&&n===t.length-1?`or `:``)+r+` `+e}).join(`, `),a=type(e).toLowerCase();if(!t.some(function(e){return a===e}))throw new M(n+`object tested must be `+i+`, but `+a+` given`,void 0,r)}__name(expectTypes,`expectTypes`);function getActual(e,t){return t.length>4?t[4]:e._obj}__name(getActual,`getActual`);var De={bold:[`1`,`22`],dim:[`2`,`22`],italic:[`3`,`23`],underline:[`4`,`24`],inverse:[`7`,`27`],hidden:[`8`,`28`],strike:[`9`,`29`],black:[`30`,`39`],red:[`31`,`39`],green:[`32`,`39`],yellow:[`33`,`39`],blue:[`34`,`39`],magenta:[`35`,`39`],cyan:[`36`,`39`],white:[`37`,`39`],brightblack:[`30;1`,`39`],brightred:[`31;1`,`39`],brightgreen:[`32;1`,`39`],brightyellow:[`33;1`,`39`],brightblue:[`34;1`,`39`],brightmagenta:[`35;1`,`39`],brightcyan:[`36;1`,`39`],brightwhite:[`37;1`,`39`],grey:[`90`,`39`]},Oe={special:`cyan`,number:`yellow`,bigint:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,symbol:`green`,date:`magenta`,regexp:`red`},N=`…`;function colorise(e,t){let n=De[Oe[t]]||De[t]||``;return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}__name(colorise,`colorise`);function normaliseOptions({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:o=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(o),truncate:Number(c),seen:s,inspect:u,stylize:l};return d.colors&&(d.stylize=colorise),d}__name(normaliseOptions,`normaliseOptions`);function isHighSurrogate(e){return e>=`\ud800`&&e<=`\udbff`}__name(isHighSurrogate,`isHighSurrogate`);function truncate(e,t,n=N){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let i=t-r;return i>0&&isHighSurrogate(e[i-1])&&--i,`${e.slice(0,i)}${n}`}return e}__name(truncate,`truncate`);function inspectList(e,t,n,r=`, `){n||=t.inspect;let i=e.length;if(i===0)return``;let a=t.truncate,o=``,s=``,c=``;for(let l=0;l<i;l+=1){let i=l+1===e.length,u=l+2===e.length;c=`${N}(${e.length-l})`;let d=e[l];t.truncate=a-o.length-(i?0:r.length);let f=s||n(d,t)+(i?``:r),p=o.length+f.length,m=p+c.length;if(i&&p>a&&o.length+c.length<=a||!i&&!u&&m>a||(s=i?``:n(e[l+1],t)+(u?``:r),!i&&u&&m>a&&p+s.length>a))break;if(o+=f,!i&&!u&&p+s.length>=a){c=`${N}(${e.length-l-1})`;break}c=``}return`${o}${c}`}__name(inspectList,`inspectList`);function quoteComplexKey(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`)}__name(quoteComplexKey,`quoteComplexKey`);function inspectProperty([e,t],n){return n.truncate-=2,typeof e==`string`?e=quoteComplexKey(e):typeof e!=`number`&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}__name(inspectProperty,`inspectProperty`);function inspectArray(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`[]`;t.truncate-=4;let r=inspectList(e,t);t.truncate-=r.length;let i=``;return n.length&&(i=inspectList(n.map(t=>[t,e[t]]),t,inspectProperty)),`[ ${r}${i?`, ${i}`:``} ]`}__name(inspectArray,`inspectArray`);var ke=__name(e=>typeof Buffer==`function`&&e instanceof Buffer?`Buffer`:e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,`getArrayName`);function inspectTypedArray(e,t){let n=ke(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i=``;for(let n=0;n<e.length;n++){let r=`${t.stylize(truncate(e[n],t.truncate),`number`)}${n===e.length-1?``:`, `}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`${N}(${e.length-e[n]+1})`;break}i+=r}let a=``;return r.length&&(a=inspectList(r.map(t=>[t,e[t]]),t,inspectProperty)),`${n}[ ${i}${a?`, ${a}`:``} ]`}__name(inspectTypedArray,`inspectTypedArray`);function inspectDate(e,t){let n=e.toJSON();if(n===null)return`Invalid Date`;let r=n.split(`T`),i=r[0];return t.stylize(`${i}T${truncate(r[1],t.truncate-i.length-1)}`,`date`)}__name(inspectDate,`inspectDate`);function inspectFunction(e,t){let n=e[Symbol.toStringTag]||`Function`,r=e.name;return r?t.stylize(`[${n} ${truncate(r,t.truncate-11)}]`,`special`):t.stylize(`[${n}]`,`special`)}__name(inspectFunction,`inspectFunction`);function inspectMapEntry([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}__name(inspectMapEntry,`inspectMapEntry`);function mapToEntries(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}__name(mapToEntries,`mapToEntries`);function inspectMap(e,t){return e.size===0?`Map{}`:(t.truncate-=7,`Map{ ${inspectList(mapToEntries(e),t,inspectMapEntry)} }`)}__name(inspectMap,`inspectMap`);var Ae=Number.isNaN||(e=>e!==e);function inspectNumber(e,t){return Ae(e)?t.stylize(`NaN`,`number`):e===1/0?t.stylize(`Infinity`,`number`):e===-1/0?t.stylize(`-Infinity`,`number`):e===0?t.stylize(1/e==1/0?`+0`:`-0`,`number`):t.stylize(truncate(String(e),t.truncate),`number`)}__name(inspectNumber,`inspectNumber`);function inspectBigInt(e,t){let n=truncate(e.toString(),t.truncate-1);return n!==N&&(n+=`n`),t.stylize(n,`bigint`)}__name(inspectBigInt,`inspectBigInt`);function inspectRegExp(e,t){let n=e.toString().split(`/`)[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${truncate(i,r)}/${n}`,`regexp`)}__name(inspectRegExp,`inspectRegExp`);function arrayFromSet(e){let t=[];return e.forEach(e=>{t.push(e)}),t}__name(arrayFromSet,`arrayFromSet`);function inspectSet(e,t){return e.size===0?`Set{}`:(t.truncate-=7,`Set{ ${inspectList(arrayFromSet(e),t)} }`)}__name(inspectSet,`inspectSet`);var je=RegExp(`['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]`,`g`),Me={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`},Ne=16,Pe=4;function escape(e){return Me[e]||`\\u${`0000${e.charCodeAt(0).toString(Ne)}`.slice(-Pe)}`}__name(escape,`escape`);function inspectString(e,t){return je.test(e)&&(e=e.replace(je,escape)),t.stylize(`'${truncate(e,t.truncate-2)}'`,`string`)}__name(inspectString,`inspectString`);function inspectSymbol(e){return`description`in Symbol.prototype?e.description?`Symbol(${e.description})`:`Symbol()`:e.toString()}__name(inspectSymbol,`inspectSymbol`);var Fe=__name(()=>`Promise{…}`,`getPromiseValue`);function inspectObject(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return`{}`;if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let i=inspectList(n.map(t=>[t,e[t]]),t,inspectProperty),a=inspectList(r.map(t=>[t,e[t]]),t,inspectProperty);t.seen.pop();let o=``;return i&&a&&(o=`, `),`{ ${i}${o}${a} }`}__name(inspectObject,`inspectObject`);var Ie=typeof Symbol<`u`&&Symbol.toStringTag?Symbol.toStringTag:!1;function inspectClass(e,t){let n=``;return Ie&&Ie in e&&(n=e[Ie]),n||=e.constructor.name,(!n||n===`_class`)&&(n=`<Anonymous Class>`),t.truncate-=n.length,`${n}${inspectObject(e,t)}`}__name(inspectClass,`inspectClass`);function inspectArguments(e,t){return e.length===0?`Arguments[]`:(t.truncate-=13,`Arguments[ ${inspectList(e,t)} ]`)}__name(inspectArguments,`inspectArguments`);var Le=[`stack`,`line`,`column`,`name`,`message`,`fileName`,`lineNumber`,`columnNumber`,`number`,`description`,`cause`];function inspectObject2(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>Le.indexOf(e)===-1),r=e.name;t.truncate-=r.length;let i=``;if(typeof e.message==`string`?i=truncate(e.message,t.truncate):n.unshift(`message`),i=i?`: ${i}`:``,t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let a=inspectList(n.map(t=>[t,e[t]]),t,inspectProperty);return`${r}${i}${a?` { ${a} }`:``}`}__name(inspectObject2,`inspectObject`);function inspectAttribute([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),`yellow`)}=${n.stylize(`"${t}"`,`string`)}`:`${n.stylize(String(e),`yellow`)}`}__name(inspectAttribute,`inspectAttribute`);function inspectNodeCollection(e,t){return inspectList(e,t,inspectNode,`
35
- `)}__name(inspectNodeCollection,`inspectNodeCollection`);function inspectNode(e,t){switch(e.nodeType){case 1:return inspectHTML(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}__name(inspectNode,`inspectNode`);function inspectHTML(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,`special`),a=t.stylize(`>`,`special`),o=t.stylize(`</${r}>`,`special`);t.truncate-=r.length*2+5;let s=``;n.length>0&&(s+=` `,s+=inspectList(n.map(t=>[t,e.getAttribute(t)]),t,inspectAttribute,` `)),t.truncate-=s.length;let c=t.truncate,l=inspectNodeCollection(e.children,t);return l&&l.length>c&&(l=`${N}(${e.children.length})`),`${i}${s}${a}${l}${o}`}__name(inspectHTML,`inspectHTML`);var Re=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`chai/inspect`):`@@chai/inspect`,ze=Symbol.for(`nodejs.util.inspect.custom`),Be=new WeakMap,Ve={},He={undefined:__name((e,t)=>t.stylize(`undefined`,`undefined`),`undefined`),null:__name((e,t)=>t.stylize(`null`,`null`),`null`),boolean:__name((e,t)=>t.stylize(String(e),`boolean`),`boolean`),Boolean:__name((e,t)=>t.stylize(String(e),`boolean`),`Boolean`),number:inspectNumber,Number:inspectNumber,bigint:inspectBigInt,BigInt:inspectBigInt,string:inspectString,String:inspectString,function:inspectFunction,Function:inspectFunction,symbol:inspectSymbol,Symbol:inspectSymbol,Array:inspectArray,Date:inspectDate,Map:inspectMap,Set:inspectSet,RegExp:inspectRegExp,Promise:Fe,WeakSet:__name((e,t)=>t.stylize(`WeakSet{…}`,`special`),`WeakSet`),WeakMap:__name((e,t)=>t.stylize(`WeakMap{…}`,`special`),`WeakMap`),Arguments:inspectArguments,Int8Array:inspectTypedArray,Uint8Array:inspectTypedArray,Uint8ClampedArray:inspectTypedArray,Int16Array:inspectTypedArray,Uint16Array:inspectTypedArray,Int32Array:inspectTypedArray,Uint32Array:inspectTypedArray,Float32Array:inspectTypedArray,Float64Array:inspectTypedArray,Generator:__name(()=>``,`Generator`),DataView:__name(()=>``,`DataView`),ArrayBuffer:__name(()=>``,`ArrayBuffer`),Error:inspectObject2,HTMLCollection:inspectNodeCollection,NodeList:inspectNodeCollection},Ue=__name((e,t,n,r)=>Re in e&&typeof e[Re]==`function`?e[Re](t):ze in e&&typeof e[ze]==`function`?e[ze](t.depth,t,r):`inspect`in e&&typeof e.inspect==`function`?e.inspect(t.depth,t):`constructor`in e&&Be.has(e.constructor)?Be.get(e.constructor)(e,t):Ve[n]?Ve[n](e,t):``,`inspectCustom`),We=Object.prototype.toString;function inspect(e,t={}){let n=normaliseOptions(t,inspect),{customInspect:r}=n,i=e===null?`null`:typeof e;if(i===`object`&&(i=We.call(e).slice(8,-1)),i in He)return He[i](e,n);if(r&&e){let t=Ue(e,n,i,inspect);if(t)return typeof t==`string`?t:inspect(t,n)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?inspectObject(e,n):e&&typeof HTMLElement==`function`&&e instanceof HTMLElement?inspectHTML(e,n):`constructor`in e?e.constructor===Object?inspectObject(e,n):inspectClass(e,n):e===Object(e)?inspectObject(e,n):n.stylize(String(e),i)}__name(inspect,`inspect`);var P={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:[`then`,`catch`,`inspect`,`toJSON`],deepEqual:null};function inspect2(e,t,n,r){return inspect(e,{colors:r,depth:n===void 0?2:n,showHidden:t,truncate:P.truncateThreshold?P.truncateThreshold:1/0})}__name(inspect2,`inspect`);function objDisplay(e){let t=inspect2(e),n=Object.prototype.toString.call(e);if(P.truncateThreshold&&t.length>=P.truncateThreshold){if(n===`[object Function]`)return!e.name||e.name===``?`[Function]`:`[Function: `+e.name+`]`;if(n===`[object Array]`)return`[ Array(`+e.length+`) ]`;if(n===`[object Object]`){let t=Object.keys(e);return`{ Object (`+(t.length>2?t.splice(0,2).join(`, `)+`, ...`:t.join(`, `))+`) }`}else return t}else return t}__name(objDisplay,`objDisplay`);function getMessage2(e,t){let n=flag(e,`negate`),r=flag(e,`object`),i=t[3],a=getActual(e,t),o=n?t[2]:t[1],s=flag(e,`message`);return typeof o==`function`&&(o=o()),o||=``,o=o.replace(/#\{this\}/g,function(){return objDisplay(r)}).replace(/#\{act\}/g,function(){return objDisplay(a)}).replace(/#\{exp\}/g,function(){return objDisplay(i)}),s?s+`: `+o:o}__name(getMessage2,`getMessage`);function transferFlags(e,t,n){let r=e.__flags||=Object.create(null);t.__flags||=Object.create(null),n=arguments.length!==3||n;for(let e in r)(n||e!==`object`&&e!==`ssfi`&&e!==`lockSsfi`&&e!=`message`)&&(t.__flags[e]=r[e])}__name(transferFlags,`transferFlags`);function type2(e){if(e===void 0)return`undefined`;if(e===null)return`null`;let t=e[Symbol.toStringTag];return typeof t==`string`?t:Object.prototype.toString.call(e).slice(8,-1)}__name(type2,`type`);function FakeMap(){this._key=`chai/deep-eql__`+Math.random()+Date.now()}__name(FakeMap,`FakeMap`),FakeMap.prototype={get:__name(function get(e){return e[this._key]},`get`),set:__name(function set(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},`set`)};var Ge=typeof WeakMap==`function`?WeakMap:FakeMap;function memoizeCompare(e,t,n){if(!n||isPrimitive(e)||isPrimitive(t))return null;var r=n.get(e);if(r){var i=r.get(t);if(typeof i==`boolean`)return i}return null}__name(memoizeCompare,`memoizeCompare`);function memoizeSet(e,t,n,r){if(!(!n||isPrimitive(e)||isPrimitive(t))){var i=n.get(e);i?i.set(t,r):(i=new Ge,i.set(t,r),n.set(e,i))}}__name(memoizeSet,`memoizeSet`);var Ke=deepEqual;function deepEqual(e,t,n){if(n&&n.comparator)return extensiveDeepEqual(e,t,n);var r=simpleEqual(e,t);return r===null?extensiveDeepEqual(e,t,n):r}__name(deepEqual,`deepEqual`);function simpleEqual(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t?!0:isPrimitive(e)||isPrimitive(t)?!1:null}__name(simpleEqual,`simpleEqual`);function extensiveDeepEqual(e,t,n){n||={},n.memoize=n.memoize===!1?!1:n.memoize||new Ge;var r=n&&n.comparator,i=memoizeCompare(e,t,n.memoize);if(i!==null)return i;var a=memoizeCompare(t,e,n.memoize);if(a!==null)return a;if(r){var o=r(e,t);if(o===!1||o===!0)return memoizeSet(e,t,n.memoize,o),o;var s=simpleEqual(e,t);if(s!==null)return s}var c=type2(e);if(c!==type2(t))return memoizeSet(e,t,n.memoize,!1),!1;memoizeSet(e,t,n.memoize,!0);var l=extensiveDeepEqualByType(e,t,c,n);return memoizeSet(e,t,n.memoize,l),l}__name(extensiveDeepEqual,`extensiveDeepEqual`);function extensiveDeepEqualByType(e,t,n,r){switch(n){case`String`:case`Number`:case`Boolean`:case`Date`:return deepEqual(e.valueOf(),t.valueOf());case`Promise`:case`Symbol`:case`function`:case`WeakMap`:case`WeakSet`:return e===t;case`Error`:return keysEqual(e,t,[`name`,`message`,`code`],r);case`Arguments`:case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`Array`:return iterableEqual(e,t,r);case`RegExp`:return regexpEqual(e,t);case`Generator`:return generatorEqual(e,t,r);case`DataView`:return iterableEqual(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case`ArrayBuffer`:return iterableEqual(new Uint8Array(e),new Uint8Array(t),r);case`Set`:return entriesEqual(e,t,r);case`Map`:return entriesEqual(e,t,r);case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.Instant`:case`Temporal.ZonedDateTime`:case`Temporal.PlainYearMonth`:case`Temporal.PlainMonthDay`:return e.equals(t);case`Temporal.Duration`:return e.total(`nanoseconds`)===t.total(`nanoseconds`);case`Temporal.TimeZone`:case`Temporal.Calendar`:return e.toString()===t.toString();default:return objectEqual(e,t,r)}}__name(extensiveDeepEqualByType,`extensiveDeepEqualByType`);function regexpEqual(e,t){return e.toString()===t.toString()}__name(regexpEqual,`regexpEqual`);function entriesEqual(e,t,n){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var r=[],i=[];return e.forEach(__name(function gatherEntries(e,t){r.push([e,t])},`gatherEntries`)),t.forEach(__name(function gatherEntries(e,t){i.push([e,t])},`gatherEntries`)),iterableEqual(r.sort(),i.sort(),n)}__name(entriesEqual,`entriesEqual`);function iterableEqual(e,t,n){var r=e.length;if(r!==t.length)return!1;if(r===0)return!0;for(var i=-1;++i<r;)if(deepEqual(e[i],t[i],n)===!1)return!1;return!0}__name(iterableEqual,`iterableEqual`);function generatorEqual(e,t,n){return iterableEqual(getGeneratorEntries(e),getGeneratorEntries(t),n)}__name(generatorEqual,`generatorEqual`);function hasIteratorFunction(e){return typeof Symbol<`u`&&typeof e==`object`&&Symbol.iterator!==void 0&&typeof e[Symbol.iterator]==`function`}__name(hasIteratorFunction,`hasIteratorFunction`);function getIteratorEntries(e){if(hasIteratorFunction(e))try{return getGeneratorEntries(e[Symbol.iterator]())}catch{return[]}return[]}__name(getIteratorEntries,`getIteratorEntries`);function getGeneratorEntries(e){for(var t=e.next(),n=[t.value];t.done===!1;)t=e.next(),n.push(t.value);return n}__name(getGeneratorEntries,`getGeneratorEntries`);function getEnumerableKeys(e){var t=[];for(var n in e)t.push(n);return t}__name(getEnumerableKeys,`getEnumerableKeys`);function getEnumerableSymbols(e){for(var t=[],n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r+=1){var i=n[r];Object.getOwnPropertyDescriptor(e,i).enumerable&&t.push(i)}return t}__name(getEnumerableSymbols,`getEnumerableSymbols`);function keysEqual(e,t,n,r){var i=n.length;if(i===0)return!0;for(var a=0;a<i;a+=1)if(deepEqual(e[n[a]],t[n[a]],r)===!1)return!1;return!0}__name(keysEqual,`keysEqual`);function objectEqual(e,t,n){var r=getEnumerableKeys(e),i=getEnumerableKeys(t),a=getEnumerableSymbols(e),o=getEnumerableSymbols(t);if(r=r.concat(a),i=i.concat(o),r.length&&r.length===i.length)return iterableEqual(mapSymbols(r).sort(),mapSymbols(i).sort())!==!1&&keysEqual(e,t,r,n);var s=getIteratorEntries(e),c=getIteratorEntries(t);return s.length&&s.length===c.length?(s.sort(),c.sort(),iterableEqual(s,c,n)):r.length===0&&s.length===0&&i.length===0&&c.length===0}__name(objectEqual,`objectEqual`);function isPrimitive(e){return typeof e!=`object`||!e}__name(isPrimitive,`isPrimitive`);function mapSymbols(e){return e.map(__name(function mapSymbol(e){return typeof e==`symbol`?e.toString():e},`mapSymbol`))}__name(mapSymbols,`mapSymbols`);function hasProperty(e,t){return e!=null&&t in Object(e)}__name(hasProperty,`hasProperty`);function parsePath(e){return e.replace(/([^\\])\[/g,`$1.[`).match(/(\\\.|[^.]+?)+/g).map(e=>{if(e===`constructor`||e===`__proto__`||e===`prototype`)return{};let t=/^\[(\d+)\]$/.exec(e),n=null;return n=t?{i:parseFloat(t[1])}:{p:e.replace(/\\([.[\]])/g,`$1`)},n})}__name(parsePath,`parsePath`);function internalGetPathValue(e,t,n){let r=e,i=null;n=n===void 0?t.length:n;for(let e=0;e<n;e++){let a=t[e];r&&(r=a.p===void 0?r[a.i]:r[a.p],e===n-1&&(i=r))}return i}__name(internalGetPathValue,`internalGetPathValue`);function getPathInfo(e,t){let n=parsePath(t),r=n[n.length-1],i={parent:n.length>1?internalGetPathValue(e,n,n.length-1):e,name:r.p||r.i,value:internalGetPathValue(e,n)};return i.exists=hasProperty(i.parent,i.name),i}__name(getPathInfo,`getPathInfo`);var qe=class _Assertion{constructor(e,t,n,r){return __publicField(this,`__flags`,{}),flag(this,`ssfi`,n||_Assertion),flag(this,`lockSsfi`,r),flag(this,`object`,e),flag(this,`message`,t),flag(this,`eql`,P.deepEqual||Ke),proxify(this)}static get includeStack(){return console.warn(`Assertion.includeStack is deprecated, use chai.config.includeStack instead.`),P.includeStack}static set includeStack(e){console.warn(`Assertion.includeStack is deprecated, use chai.config.includeStack instead.`),P.includeStack=e}static get showDiff(){return console.warn(`Assertion.showDiff is deprecated, use chai.config.showDiff instead.`),P.showDiff}static set showDiff(e){console.warn(`Assertion.showDiff is deprecated, use chai.config.showDiff instead.`),P.showDiff=e}static addProperty(e,t){addProperty(this.prototype,e,t)}static addMethod(e,t){addMethod(this.prototype,e,t)}static addChainableMethod(e,t,n){addChainableMethod(this.prototype,e,t,n)}static overwriteProperty(e,t){overwriteProperty(this.prototype,e,t)}static overwriteMethod(e,t){overwriteMethod(this.prototype,e,t)}static overwriteChainableMethod(e,t,n){overwriteChainableMethod(this.prototype,e,t,n)}assert(e,t,n,r,i,a){let o=test$1(this,arguments);if(!1!==a&&(a=!0),r===void 0&&i===void 0&&(a=!1),!0!==P.showDiff&&(a=!1),!o){t=getMessage2(this,arguments);let e={actual:getActual(this,arguments),expected:r,showDiff:a},n=getOperator(this,arguments);throw n&&(e.operator=n),new M(t,e,P.includeStack?this.assert:flag(this,`ssfi`))}}get _obj(){return flag(this,`object`)}set _obj(e){flag(this,`object`,e)}};__name(qe,`Assertion`);var F=qe,I=new EventTarget,Je=class _PluginEvent extends Event{constructor(e,t,n){super(e),this.name=String(t),this.fn=n}};__name(Je,`PluginEvent`);var Ye=Je;function isProxyEnabled(){return P.useProxy&&typeof Proxy<`u`&&typeof Reflect<`u`}__name(isProxyEnabled,`isProxyEnabled`);function addProperty(e,t,n){n=n===void 0?function(){}:n,Object.defineProperty(e,t,{get:__name(function propertyGetter(){!isProxyEnabled()&&!flag(this,`lockSsfi`)&&flag(this,`ssfi`,propertyGetter);let e=n.call(this);if(e!==void 0)return e;let t=new F;return transferFlags(this,t),t},`propertyGetter`),configurable:!0}),I.dispatchEvent(new Ye(`addProperty`,t,n))}__name(addProperty,`addProperty`);var Xe=Object.getOwnPropertyDescriptor(function(){},`length`);function addLengthGuard(e,t,n){return Xe.configurable&&Object.defineProperty(e,"length",{get:__name(function(){throw Error(n?`Invalid Chai property: `+t+`.length. Due to a compatibility issue, "length" cannot directly follow "`+t+`". Use "`+t+`.lengthOf" instead.`:`Invalid Chai property: `+t+`.length. See docs for proper usage of "`+t+`".`)},`get`)}),e}__name(addLengthGuard,`addLengthGuard`);function getProperties(e){let t=Object.getOwnPropertyNames(e);function addProperty2(e){t.indexOf(e)===-1&&t.push(e)}__name(addProperty2,`addProperty`);let n=Object.getPrototypeOf(e);for(;n!==null;)Object.getOwnPropertyNames(n).forEach(addProperty2),n=Object.getPrototypeOf(n);return t}__name(getProperties,`getProperties`);var Ze=[`__flags`,`__methods`,`_obj`,`assert`];function proxify(e,t){return isProxyEnabled()?new Proxy(e,{get:__name(function proxyGetter(e,n){if(typeof n==`string`&&P.proxyExcludedKeys.indexOf(n)===-1&&!Reflect.has(e,n)){if(t)throw Error(`Invalid Chai property: `+t+`.`+n+`. See docs for proper usage of "`+t+`".`);let r=null,i=4;throw getProperties(e).forEach(function(e){if(!Object.prototype.hasOwnProperty(e)&&Ze.indexOf(e)===-1){let t=stringDistanceCapped(n,e,i);t<i&&(r=e,i=t)}}),Error(r===null?`Invalid Chai property: `+n:`Invalid Chai property: `+n+`. Did you mean "`+r+`"?`)}return Ze.indexOf(n)===-1&&!flag(e,`lockSsfi`)&&flag(e,`ssfi`,proxyGetter),Reflect.get(e,n)},`proxyGetter`)}):e}__name(proxify,`proxify`);function stringDistanceCapped(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;let r=[];for(let n=0;n<=e.length;n++)r[n]=Array(t.length+1).fill(0),r[n][0]=n;for(let e=0;e<t.length;e++)r[0][e]=e;for(let i=1;i<=e.length;i++){let a=e.charCodeAt(i-1);for(let e=1;e<=t.length;e++){if(Math.abs(i-e)>=n){r[i][e]=n;continue}r[i][e]=Math.min(r[i-1][e]+1,r[i][e-1]+1,r[i-1][e-1]+(a===t.charCodeAt(e-1)?0:1))}}return r[e.length][t.length]}__name(stringDistanceCapped,`stringDistanceCapped`);function addMethod(e,t,n){let r=__name(function(){flag(this,`lockSsfi`)||flag(this,`ssfi`,r);let e=n.apply(this,arguments);if(e!==void 0)return e;let t=new F;return transferFlags(this,t),t},`methodWrapper`);addLengthGuard(r,t,!1),e[t]=proxify(r,t),I.dispatchEvent(new Ye(`addMethod`,t,n))}__name(addMethod,`addMethod`);function overwriteProperty(e,t,n){let r=Object.getOwnPropertyDescriptor(e,t),i=__name(function(){},`_super`);r&&typeof r.get==`function`&&(i=r.get),Object.defineProperty(e,t,{get:__name(function overwritingPropertyGetter(){!isProxyEnabled()&&!flag(this,`lockSsfi`)&&flag(this,`ssfi`,overwritingPropertyGetter);let e=flag(this,`lockSsfi`);flag(this,`lockSsfi`,!0);let t=n(i).call(this);if(flag(this,`lockSsfi`,e),t!==void 0)return t;let r=new F;return transferFlags(this,r),r},`overwritingPropertyGetter`),configurable:!0})}__name(overwriteProperty,`overwriteProperty`);function overwriteMethod(e,t,n){let r=e[t],i=__name(function(){throw Error(t+` is not a function`)},`_super`);r&&typeof r==`function`&&(i=r);let a=__name(function(){flag(this,`lockSsfi`)||flag(this,`ssfi`,a);let e=flag(this,`lockSsfi`);flag(this,`lockSsfi`,!0);let t=n(i).apply(this,arguments);if(flag(this,`lockSsfi`,e),t!==void 0)return t;let r=new F;return transferFlags(this,r),r},`overwritingMethodWrapper`);addLengthGuard(a,t,!1),e[t]=proxify(a,t)}__name(overwriteMethod,`overwriteMethod`);var Qe=typeof Object.setPrototypeOf==`function`,$e=__name(function(){},`testFn`),et=Object.getOwnPropertyNames($e).filter(function(e){let t=Object.getOwnPropertyDescriptor($e,e);return typeof t!=`object`||!t.configurable}),tt=Function.prototype.call,nt=Function.prototype.apply,rt=class _PluginAddChainableMethodEvent extends Ye{constructor(e,t,n,r){super(e,t,n),this.chainingBehavior=r}};__name(rt,`PluginAddChainableMethodEvent`);var at=rt;function addChainableMethod(e,t,n,r){typeof r!=`function`&&(r=__name(function(){},`chainingBehavior`));let i={method:n,chainingBehavior:r};e.__methods||={},e.__methods[t]=i,Object.defineProperty(e,t,{get:__name(function chainableMethodGetter(){i.chainingBehavior.call(this);let n=__name(function(){flag(this,`lockSsfi`)||flag(this,`ssfi`,n);let e=i.method.apply(this,arguments);if(e!==void 0)return e;let t=new F;return transferFlags(this,t),t},`chainableMethodWrapper`);if(addLengthGuard(n,t,!0),Qe){let e=Object.create(this);e.call=tt,e.apply=nt,Object.setPrototypeOf(n,e)}else Object.getOwnPropertyNames(e).forEach(function(t){if(et.indexOf(t)!==-1)return;let r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r)});return transferFlags(this,n),proxify(n)},`chainableMethodGetter`),configurable:!0}),I.dispatchEvent(new at(`addChainableMethod`,t,n,r))}__name(addChainableMethod,`addChainableMethod`);function overwriteChainableMethod(e,t,n,r){let i=e.__methods[t],a=i.chainingBehavior;i.chainingBehavior=__name(function overwritingChainableMethodGetter(){let e=r(a).call(this);if(e!==void 0)return e;let t=new F;return transferFlags(this,t),t},`overwritingChainableMethodGetter`);let o=i.method;i.method=__name(function overwritingChainableMethodWrapper(){let e=n(o).apply(this,arguments);if(e!==void 0)return e;let t=new F;return transferFlags(this,t),t},`overwritingChainableMethodWrapper`)}__name(overwriteChainableMethod,`overwriteChainableMethod`);function compareByInspect(e,t){return inspect2(e)<inspect2(t)?-1:1}__name(compareByInspect,`compareByInspect`);function getOwnEnumerablePropertySymbols(e){return typeof Object.getOwnPropertySymbols==`function`?Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}):[]}__name(getOwnEnumerablePropertySymbols,`getOwnEnumerablePropertySymbols`);function getOwnEnumerableProperties(e){return Object.keys(e).concat(getOwnEnumerablePropertySymbols(e))}__name(getOwnEnumerableProperties,`getOwnEnumerableProperties`);var L=Number.isNaN;function isObjectType(e){let t=type(e);return[`Array`,`Object`,`Function`].indexOf(t)!==-1}__name(isObjectType,`isObjectType`);function getOperator(e,t){let n=flag(e,`operator`),r=flag(e,`negate`),i=t[3],a=r?t[2]:t[1];if(n)return n;if(typeof a==`function`&&(a=a()),a||=``,!a||/\shave\s/.test(a))return;let o=isObjectType(i);return/\snot\s/.test(a)?o?`notDeepStrictEqual`:`notStrictEqual`:o?`deepStrictEqual`:`strictEqual`}__name(getOperator,`getOperator`);function getName(e){return e.name}__name(getName,`getName`);function isRegExp2(e){return Object.prototype.toString.call(e)===`[object RegExp]`}__name(isRegExp2,`isRegExp`);function isNumeric(e){return[`Number`,`BigInt`].includes(type(e))}__name(isNumeric,`isNumeric`);var{flag:R}=A;[`to`,`be`,`been`,`is`,`and`,`has`,`have`,`with`,`that`,`which`,`at`,`of`,`same`,`but`,`does`,`still`,`also`].forEach(function(e){F.addProperty(e)}),F.addProperty(`not`,function(){R(this,`negate`,!0)}),F.addProperty(`deep`,function(){R(this,`deep`,!0)}),F.addProperty(`nested`,function(){R(this,`nested`,!0)}),F.addProperty(`own`,function(){R(this,`own`,!0)}),F.addProperty(`ordered`,function(){R(this,`ordered`,!0)}),F.addProperty(`any`,function(){R(this,`any`,!0),R(this,`all`,!1)}),F.addProperty(`all`,function(){R(this,`all`,!0),R(this,`any`,!1)});var ot={function:[`function`,`asyncfunction`,`generatorfunction`,`asyncgeneratorfunction`],asyncfunction:[`asyncfunction`,`asyncgeneratorfunction`],generatorfunction:[`generatorfunction`,`asyncgeneratorfunction`],asyncgeneratorfunction:[`asyncgeneratorfunction`]};function an(e,t){t&&R(this,`message`,t),e=e.toLowerCase();let n=R(this,`object`),r=~[`a`,`e`,`i`,`o`,`u`].indexOf(e.charAt(0))?`an `:`a `,i=type(n).toLowerCase();ot.function.includes(e)?this.assert(ot[e].includes(i),`expected #{this} to be `+r+e,`expected #{this} not to be `+r+e):this.assert(e===i,`expected #{this} to be `+r+e,`expected #{this} not to be `+r+e)}__name(an,`an`),F.addChainableMethod(`an`,an),F.addChainableMethod(`a`,an);function SameValueZero(e,t){return L(e)&&L(t)||e===t}__name(SameValueZero,`SameValueZero`);function includeChainingBehavior(){R(this,`contains`,!0)}__name(includeChainingBehavior,`includeChainingBehavior`);function include(e,t){t&&R(this,`message`,t);let n=R(this,`object`),r=type(n).toLowerCase(),i=R(this,`message`),a=R(this,`negate`),o=R(this,`ssfi`),s=R(this,`deep`),c=s?`deep `:``,l=s?R(this,`eql`):SameValueZero;i=i?i+`: `:``;let u=!1;switch(r){case`string`:u=n.indexOf(e)!==-1;break;case`weakset`:if(s)throw new M(i+`unable to use .deep.include with WeakSet`,void 0,o);u=n.has(e);break;case`map`:n.forEach(function(t){u||=l(t,e)});break;case`set`:s?n.forEach(function(t){u||=l(t,e)}):u=n.has(e);break;case`array`:u=s?n.some(function(t){return l(t,e)}):n.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new M(i+`the given combination of arguments (`+r+` and `+type(e).toLowerCase()+`) is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a `+type(e).toLowerCase(),void 0,o);let t=Object.keys(e),s=null,c=0;if(t.forEach(function(r){let i=new F(n);if(transferFlags(this,i,!0),R(i,`lockSsfi`,!0),!a||t.length===1){i.property(r,e[r]);return}try{i.property(r,e[r])}catch(e){if(!j.compatibleConstructor(e,M))throw e;s===null&&(s=e),c++}},this),a&&t.length>1&&c===t.length)throw s;return}}this.assert(u,`expected #{this} to `+c+`include `+inspect2(e),`expected #{this} to not `+c+`include `+inspect2(e))}__name(include,`include`),F.addChainableMethod(`include`,include,includeChainingBehavior),F.addChainableMethod(`contain`,include,includeChainingBehavior),F.addChainableMethod(`contains`,include,includeChainingBehavior),F.addChainableMethod(`includes`,include,includeChainingBehavior),F.addProperty(`ok`,function(){this.assert(R(this,`object`),`expected #{this} to be truthy`,`expected #{this} to be falsy`)}),F.addProperty(`true`,function(){this.assert(!0===R(this,`object`),`expected #{this} to be true`,`expected #{this} to be false`,!R(this,`negate`))}),F.addProperty(`numeric`,function(){let e=R(this,`object`);this.assert([`Number`,`BigInt`].includes(type(e)),`expected #{this} to be numeric`,`expected #{this} to not be numeric`,!R(this,`negate`))}),F.addProperty(`callable`,function(){let e=R(this,`object`),t=R(this,`ssfi`),n=R(this,`message`),r=n?`${n}: `:``,i=R(this,`negate`),a=i?`${r}expected ${inspect2(e)} not to be a callable function`:`${r}expected ${inspect2(e)} to be a callable function`,o=[`Function`,`AsyncFunction`,`GeneratorFunction`,`AsyncGeneratorFunction`].includes(type(e));if(o&&i||!o&&!i)throw new M(a,void 0,t)}),F.addProperty(`false`,function(){this.assert(!1===R(this,`object`),`expected #{this} to be false`,`expected #{this} to be true`,!!R(this,`negate`))}),F.addProperty(`null`,function(){this.assert(R(this,`object`)===null,`expected #{this} to be null`,`expected #{this} not to be null`)}),F.addProperty(`undefined`,function(){this.assert(R(this,`object`)===void 0,`expected #{this} to be undefined`,`expected #{this} not to be undefined`)}),F.addProperty(`NaN`,function(){this.assert(L(R(this,`object`)),`expected #{this} to be NaN`,`expected #{this} not to be NaN`)});function assertExist(){let e=R(this,`object`);this.assert(e!=null,`expected #{this} to exist`,`expected #{this} to not exist`)}__name(assertExist,`assertExist`),F.addProperty(`exist`,assertExist),F.addProperty(`exists`,assertExist),F.addProperty(`empty`,function(){let e=R(this,`object`),t=R(this,`ssfi`),n=R(this,`message`),r;switch(n=n?n+`: `:``,type(e).toLowerCase()){case`array`:case`string`:r=e.length;break;case`map`:case`set`:r=e.size;break;case`weakmap`:case`weakset`:throw new M(n+`.empty was passed a weak collection`,void 0,t);case`function`:throw new M((n+`.empty was passed a function `+getName(e)).trim(),void 0,t);default:if(e!==Object(e))throw new M(n+`.empty was passed non-string primitive `+inspect2(e),void 0,t);r=Object.keys(e).length}this.assert(r===0,`expected #{this} to be empty`,`expected #{this} not to be empty`)});function checkArguments(){let e=type(R(this,`object`));this.assert(e===`Arguments`,`expected #{this} to be arguments but got `+e,`expected #{this} to not be arguments`)}__name(checkArguments,`checkArguments`),F.addProperty(`arguments`,checkArguments),F.addProperty(`Arguments`,checkArguments);function assertEqual(e,t){t&&R(this,`message`,t);let n=R(this,`object`);if(R(this,`deep`)){let t=R(this,`lockSsfi`);R(this,`lockSsfi`,!0),this.eql(e),R(this,`lockSsfi`,t)}else this.assert(e===n,`expected #{this} to equal #{exp}`,`expected #{this} to not equal #{exp}`,e,this._obj,!0)}__name(assertEqual,`assertEqual`),F.addMethod(`equal`,assertEqual),F.addMethod(`equals`,assertEqual),F.addMethod(`eq`,assertEqual);function assertEql(e,t){t&&R(this,`message`,t);let n=R(this,`eql`);this.assert(n(e,R(this,`object`)),`expected #{this} to deeply equal #{exp}`,`expected #{this} to not deeply equal #{exp}`,e,this._obj,!0)}__name(assertEql,`assertEql`),F.addMethod(`eql`,assertEql),F.addMethod(`eqls`,assertEql);function assertAbove(e,t){t&&R(this,`message`,t);let n=R(this,`object`),r=R(this,`doLength`),i=R(this,`message`),a=i?i+`: `:``,o=R(this,`ssfi`),s=type(n).toLowerCase(),c=type(e).toLowerCase();if(r&&s!==`map`&&s!==`set`&&new F(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)throw new M(a+`the argument to above must be a date`,void 0,o);if(!isNumeric(e)&&(r||isNumeric(n)))throw new M(a+`the argument to above must be a number`,void 0,o);if(!r&&s!==`date`&&!isNumeric(n)){let e=s===`string`?`'`+n+`'`:n;throw new M(a+`expected `+e+` to be a number or a date`,void 0,o)}if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r>e,`expected #{this} to have a `+t+` above #{exp} but got #{act}`,`expected #{this} to not have a `+t+` above #{exp}`,e,r)}else this.assert(n>e,`expected #{this} to be above #{exp}`,`expected #{this} to be at most #{exp}`,e)}__name(assertAbove,`assertAbove`),F.addMethod(`above`,assertAbove),F.addMethod(`gt`,assertAbove),F.addMethod(`greaterThan`,assertAbove);function assertLeast(e,t){t&&R(this,`message`,t);let n=R(this,`object`),r=R(this,`doLength`),i=R(this,`message`),a=i?i+`: `:``,o=R(this,`ssfi`),s=type(n).toLowerCase(),c=type(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new F(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to least must be a date`;else if(!isNumeric(e)&&(r||isNumeric(n)))l=a+`the argument to least must be a number`;else if(!r&&s!==`date`&&!isNumeric(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new M(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r>=e,`expected #{this} to have a `+t+` at least #{exp} but got #{act}`,`expected #{this} to have a `+t+` below #{exp}`,e,r)}else this.assert(n>=e,`expected #{this} to be at least #{exp}`,`expected #{this} to be below #{exp}`,e)}__name(assertLeast,`assertLeast`),F.addMethod(`least`,assertLeast),F.addMethod(`gte`,assertLeast),F.addMethod(`greaterThanOrEqual`,assertLeast);function assertBelow(e,t){t&&R(this,`message`,t);let n=R(this,`object`),r=R(this,`doLength`),i=R(this,`message`),a=i?i+`: `:``,o=R(this,`ssfi`),s=type(n).toLowerCase(),c=type(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new F(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to below must be a date`;else if(!isNumeric(e)&&(r||isNumeric(n)))l=a+`the argument to below must be a number`;else if(!r&&s!==`date`&&!isNumeric(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new M(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r<e,`expected #{this} to have a `+t+` below #{exp} but got #{act}`,`expected #{this} to not have a `+t+` below #{exp}`,e,r)}else this.assert(n<e,`expected #{this} to be below #{exp}`,`expected #{this} to be at least #{exp}`,e)}__name(assertBelow,`assertBelow`),F.addMethod(`below`,assertBelow),F.addMethod(`lt`,assertBelow),F.addMethod(`lessThan`,assertBelow);function assertMost(e,t){t&&R(this,`message`,t);let n=R(this,`object`),r=R(this,`doLength`),i=R(this,`message`),a=i?i+`: `:``,o=R(this,`ssfi`),s=type(n).toLowerCase(),c=type(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new F(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to most must be a date`;else if(!isNumeric(e)&&(r||isNumeric(n)))l=a+`the argument to most must be a number`;else if(!r&&s!==`date`&&!isNumeric(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new M(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r<=e,`expected #{this} to have a `+t+` at most #{exp} but got #{act}`,`expected #{this} to have a `+t+` above #{exp}`,e,r)}else this.assert(n<=e,`expected #{this} to be at most #{exp}`,`expected #{this} to be above #{exp}`,e)}__name(assertMost,`assertMost`),F.addMethod(`most`,assertMost),F.addMethod(`lte`,assertMost),F.addMethod(`lessThanOrEqual`,assertMost),F.addMethod(`within`,function(e,t,n){n&&R(this,`message`,n);let r=R(this,`object`),i=R(this,`doLength`),a=R(this,`message`),o=a?a+`: `:``,s=R(this,`ssfi`),c=type(r).toLowerCase(),l=type(e).toLowerCase(),u=type(t).toLowerCase(),d,f=!0,p=l===`date`&&u===`date`?e.toISOString()+`..`+t.toISOString():e+`..`+t;if(i&&c!==`map`&&c!==`set`&&new F(r,a,s,!0).to.have.property(`length`),!i&&c===`date`&&(l!==`date`||u!==`date`))d=o+`the arguments to within must be dates`;else if((!isNumeric(e)||!isNumeric(t))&&(i||isNumeric(r)))d=o+`the arguments to within must be numbers`;else if(!i&&c!==`date`&&!isNumeric(r)){let e=c===`string`?`'`+r+`'`:r;d=o+`expected `+e+` to be a number or a date`}else f=!1;if(f)throw new M(d,void 0,s);if(i){let n=`length`,i;c===`map`||c===`set`?(n=`size`,i=r.size):i=r.length,this.assert(i>=e&&i<=t,`expected #{this} to have a `+n+` within `+p,`expected #{this} to not have a `+n+` within `+p)}else this.assert(r>=e&&r<=t,`expected #{this} to be within `+p,`expected #{this} to not be within `+p)});function assertInstanceOf(e,t){t&&R(this,`message`,t);let n=R(this,`object`),r=R(this,`ssfi`),i=R(this,`message`),a;try{a=n instanceof e}catch(t){throw t instanceof TypeError?(i=i?i+`: `:``,new M(i+`The instanceof assertion needs a constructor but `+type(e)+` was given.`,void 0,r)):t}let o=getName(e);o??=`an unnamed constructor`,this.assert(a,`expected #{this} to be an instance of `+o,`expected #{this} to not be an instance of `+o)}__name(assertInstanceOf,`assertInstanceOf`),F.addMethod(`instanceof`,assertInstanceOf),F.addMethod(`instanceOf`,assertInstanceOf);function assertProperty(e,t,n){n&&R(this,`message`,n);let r=R(this,`nested`),i=R(this,`own`),a=R(this,`message`),o=R(this,`object`),s=R(this,`ssfi`),c=typeof e;if(a=a?a+`: `:``,r){if(c!==`string`)throw new M(a+`the argument to property must be a string when using nested syntax`,void 0,s)}else if(c!==`string`&&c!==`number`&&c!==`symbol`)throw new M(a+`the argument to property must be a string, number, or symbol`,void 0,s);if(r&&i)throw new M(a+`The "nested" and "own" flags cannot be combined.`,void 0,s);if(o==null)throw new M(a+`Target cannot be null or undefined.`,void 0,s);let l=R(this,`deep`),u=R(this,`negate`),d=r?getPathInfo(o,e):null,f=r?d.value:o[e],p=l?R(this,`eql`):(e,t)=>e===t,m=``;l&&(m+=`deep `),i&&(m+=`own `),r&&(m+=`nested `),m+=`property `;let h;h=i?Object.prototype.hasOwnProperty.call(o,e):r?d.exists:hasProperty(o,e),(!u||arguments.length===1)&&this.assert(h,`expected #{this} to have `+m+inspect2(e),`expected #{this} to not have `+m+inspect2(e)),arguments.length>1&&this.assert(h&&p(t,f),`expected #{this} to have `+m+inspect2(e)+` of #{exp}, but got #{act}`,`expected #{this} to not have `+m+inspect2(e)+` of #{act}`,t,f),R(this,`object`,f)}__name(assertProperty,`assertProperty`),F.addMethod(`property`,assertProperty);function assertOwnProperty(e,t,n){R(this,`own`,!0),assertProperty.apply(this,arguments)}__name(assertOwnProperty,`assertOwnProperty`),F.addMethod(`ownProperty`,assertOwnProperty),F.addMethod(`haveOwnProperty`,assertOwnProperty);function assertOwnPropertyDescriptor(e,t,n){typeof t==`string`&&(n=t,t=null),n&&R(this,`message`,n);let r=R(this,`object`),i=Object.getOwnPropertyDescriptor(Object(r),e),a=R(this,`eql`);i&&t?this.assert(a(t,i),`expected the own property descriptor for `+inspect2(e)+` on #{this} to match `+inspect2(t)+`, got `+inspect2(i),`expected the own property descriptor for `+inspect2(e)+` on #{this} to not match `+inspect2(t),t,i,!0):this.assert(i,`expected #{this} to have an own property descriptor for `+inspect2(e),`expected #{this} to not have an own property descriptor for `+inspect2(e)),R(this,`object`,i)}__name(assertOwnPropertyDescriptor,`assertOwnPropertyDescriptor`),F.addMethod(`ownPropertyDescriptor`,assertOwnPropertyDescriptor),F.addMethod(`haveOwnPropertyDescriptor`,assertOwnPropertyDescriptor);function assertLengthChain(){R(this,`doLength`,!0)}__name(assertLengthChain,`assertLengthChain`);function assertLength(e,t){t&&R(this,`message`,t);let n=R(this,`object`),r=type(n).toLowerCase(),i=R(this,`message`),a=R(this,`ssfi`),o=`length`,s;switch(r){case`map`:case`set`:o=`size`,s=n.size;break;default:new F(n,i,a,!0).to.have.property(`length`),s=n.length}this.assert(s==e,`expected #{this} to have a `+o+` of #{exp} but got #{act}`,`expected #{this} to not have a `+o+` of #{act}`,e,s)}__name(assertLength,`assertLength`),F.addChainableMethod(`length`,assertLength,assertLengthChain),F.addChainableMethod(`lengthOf`,assertLength,assertLengthChain);function assertMatch(e,t){t&&R(this,`message`,t);let n=R(this,`object`);this.assert(e.exec(n),`expected #{this} to match `+e,`expected #{this} not to match `+e)}__name(assertMatch,`assertMatch`),F.addMethod(`match`,assertMatch),F.addMethod(`matches`,assertMatch),F.addMethod(`string`,function(e,t){t&&R(this,`message`,t);let n=R(this,`object`);new F(n,R(this,`message`),R(this,`ssfi`),!0).is.a(`string`),this.assert(~n.indexOf(e),`expected #{this} to contain `+inspect2(e),`expected #{this} to not contain `+inspect2(e))});function assertKeys(e){let t=R(this,`object`),n=type(t),r=type(e),i=R(this,`ssfi`),a=R(this,`deep`),o,s=``,c,l=!0,u=R(this,`message`);u=u?u+`: `:``;let d=u+`when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments`;if(n===`Map`||n===`Set`)s=a?`deeply `:``,c=[],t.forEach(function(e,t){c.push(t)}),r!==`Array`&&(e=Array.prototype.slice.call(arguments));else{switch(c=getOwnEnumerableProperties(t),r){case`Array`:if(arguments.length>1)throw new M(d,void 0,i);break;case`Object`:if(arguments.length>1)throw new M(d,void 0,i);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(e){return typeof e==`symbol`?e:String(e)})}if(!e.length)throw new M(u+`keys required`,void 0,i);let f=e.length,p=R(this,`any`),m=R(this,`all`),h=e,g=a?R(this,`eql`):(e,t)=>e===t;if(!p&&!m&&(m=!0),p&&(l=h.some(function(e){return c.some(function(t){return g(e,t)})})),m&&(l=h.every(function(e){return c.some(function(t){return g(e,t)})}),R(this,`contains`)||(l&&=e.length==c.length)),f>1){e=e.map(function(e){return inspect2(e)});let t=e.pop();m&&(o=e.join(`, `)+`, and `+t),p&&(o=e.join(`, `)+`, or `+t)}else o=inspect2(e[0]);o=(f>1?`keys `:`key `)+o,o=(R(this,`contains`)?`contain `:`have `)+o,this.assert(l,`expected #{this} to `+s+o,`expected #{this} to not `+s+o,h.slice(0).sort(compareByInspect),c.sort(compareByInspect),!0)}__name(assertKeys,`assertKeys`),F.addMethod(`keys`,assertKeys),F.addMethod(`key`,assertKeys);function assertThrows(e,t,n){n&&R(this,`message`,n);let r=R(this,`object`),i=R(this,`ssfi`),a=R(this,`message`),o=R(this,`negate`)||!1;new F(r,a,i,!0).is.a(`function`),(isRegExp2(e)||typeof e==`string`)&&(t=e,e=null);let s,c=!1;try{r()}catch(e){c=!0,s=e}let l=e===void 0&&t===void 0,u=!!(e&&t),d=!1,f=!1;if(l||!l&&!o){let t=`an error`;e instanceof Error?t=`#{exp}`:e&&(t=j.getConstructorName(e));let n=s;if(s instanceof Error)n=s.toString();else if(typeof s==`string`)n=s;else if(s&&(typeof s==`object`||typeof s==`function`))try{n=j.getConstructorName(s)}catch{}this.assert(c,`expected #{this} to throw `+t,`expected #{this} to not throw an error but #{act} was thrown`,e&&e.toString(),n)}if(e&&s&&(e instanceof Error&&j.compatibleInstance(s,e)===o&&(u&&o?d=!0:this.assert(o,`expected #{this} to throw #{exp} but #{act} was thrown`,`expected #{this} to not throw #{exp}`+(s&&!o?` but #{act} was thrown`:``),e.toString(),s.toString())),j.compatibleConstructor(s,e)===o&&(u&&o?d=!0:this.assert(o,`expected #{this} to throw #{exp} but #{act} was thrown`,`expected #{this} to not throw #{exp}`+(s?` but #{act} was thrown`:``),e instanceof Error?e.toString():e&&j.getConstructorName(e),s instanceof Error?s.toString():s&&j.getConstructorName(s)))),s&&t!=null){let e=`including`;isRegExp2(t)&&(e=`matching`),j.compatibleMessage(s,t)===o&&(u&&o?f=!0:this.assert(o,`expected #{this} to throw error `+e+` #{exp} but got #{act}`,`expected #{this} to throw error not `+e+` #{exp}`,t,j.getMessage(s)))}d&&f&&this.assert(o,`expected #{this} to throw #{exp} but #{act} was thrown`,`expected #{this} to not throw #{exp}`+(s?` but #{act} was thrown`:``),e instanceof Error?e.toString():e&&j.getConstructorName(e),s instanceof Error?s.toString():s&&j.getConstructorName(s)),R(this,`object`,s)}__name(assertThrows,`assertThrows`),F.addMethod(`throw`,assertThrows),F.addMethod(`throws`,assertThrows),F.addMethod(`Throw`,assertThrows);function respondTo(e,t){t&&R(this,`message`,t);let n=R(this,`object`),r=R(this,`itself`),i=typeof n==`function`&&!r?n.prototype[e]:n[e];this.assert(typeof i==`function`,`expected #{this} to respond to `+inspect2(e),`expected #{this} to not respond to `+inspect2(e))}__name(respondTo,`respondTo`),F.addMethod(`respondTo`,respondTo),F.addMethod(`respondsTo`,respondTo),F.addProperty(`itself`,function(){R(this,`itself`,!0)});function satisfy(e,t){t&&R(this,`message`,t);let n=e(R(this,`object`));this.assert(n,`expected #{this} to satisfy `+objDisplay(e),`expected #{this} to not satisfy`+objDisplay(e),!R(this,`negate`),n)}__name(satisfy,`satisfy`),F.addMethod(`satisfy`,satisfy),F.addMethod(`satisfies`,satisfy);function closeTo(e,t,n){n&&R(this,`message`,n);let r=R(this,`object`),i=R(this,`message`),a=R(this,`ssfi`);new F(r,i,a,!0).is.numeric;let o="A `delta` value is required for `closeTo`";if(t==null||(new F(t,i,a,!0).is.numeric,o="A `expected` value is required for `closeTo`",e==null))throw new M(i?`${i}: ${o}`:o,void 0,a);new F(e,i,a,!0).is.numeric;let s=__name(e=>e<0?-e:e,`abs`),c=__name(e=>parseFloat(parseFloat(e).toPrecision(12)),`strip`);this.assert(c(s(r-e))<=t,`expected #{this} to be close to `+e+` +/- `+t,`expected #{this} not to be close to `+e+` +/- `+t)}__name(closeTo,`closeTo`),F.addMethod(`closeTo`,closeTo),F.addMethod(`approximately`,closeTo);function isSubsetOf(e,t,n,r,i){let a=Array.from(t),o=Array.from(e);if(!r){if(o.length!==a.length)return!1;a=a.slice()}return o.every(function(e,t){if(i)return n?n(e,a[t]):e===a[t];if(!n){let t=a.indexOf(e);return t===-1?!1:(r||a.splice(t,1),!0)}return a.some(function(t,i){return n(e,t)?(r||a.splice(i,1),!0):!1})})}__name(isSubsetOf,`isSubsetOf`),F.addMethod(`members`,function(e,t){t&&R(this,`message`,t);let n=R(this,`object`),r=R(this,`message`),i=R(this,`ssfi`);new F(n,r,i,!0).to.be.iterable,new F(e,r,i,!0).to.be.iterable;let a=R(this,`contains`),o=R(this,`ordered`),s,c,l;a?(s=o?`an ordered superset`:`a superset`,c=`expected #{this} to be `+s+` of #{exp}`,l=`expected #{this} to not be `+s+` of #{exp}`):(s=o?`ordered members`:`members`,c=`expected #{this} to have the same `+s+` as #{exp}`,l=`expected #{this} to not have the same `+s+` as #{exp}`);let u=R(this,`deep`)?R(this,`eql`):void 0;this.assert(isSubsetOf(e,n,u,a,o),c,l,e,n,!0)}),F.addProperty(`iterable`,function(e){e&&R(this,`message`,e);let t=R(this,`object`);this.assert(t!=null&&t[Symbol.iterator],`expected #{this} to be an iterable`,`expected #{this} to not be an iterable`,t)});function oneOf(e,t){t&&R(this,`message`,t);let n=R(this,`object`),r=R(this,`message`),i=R(this,`ssfi`),a=R(this,`contains`),o=R(this,`deep`),s=R(this,`eql`);new F(e,r,i,!0).to.be.an(`array`),a?this.assert(e.some(function(e){return n.indexOf(e)>-1}),`expected #{this} to contain one of #{exp}`,`expected #{this} to not contain one of #{exp}`,e,n):o?this.assert(e.some(function(e){return s(n,e)}),`expected #{this} to deeply equal one of #{exp}`,`expected #{this} to deeply equal one of #{exp}`,e,n):this.assert(e.indexOf(n)>-1,`expected #{this} to be one of #{exp}`,`expected #{this} to not be one of #{exp}`,e,n)}__name(oneOf,`oneOf`),F.addMethod(`oneOf`,oneOf);function assertChanges(e,t,n){n&&R(this,`message`,n);let r=R(this,`object`),i=R(this,`message`),a=R(this,`ssfi`);new F(r,i,a,!0).is.a(`function`);let o;t?(new F(e,i,a,!0).to.have.property(t),o=e[t]):(new F(e,i,a,!0).is.a(`function`),o=e()),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;R(this,`deltaMsgObj`,c),R(this,`initialDeltaValue`,o),R(this,`finalDeltaValue`,s),R(this,`deltaBehavior`,`change`),R(this,`realDelta`,s!==o),this.assert(o!==s,`expected `+c+` to change`,`expected `+c+` to not change`)}__name(assertChanges,`assertChanges`),F.addMethod(`change`,assertChanges),F.addMethod(`changes`,assertChanges);function assertIncreases(e,t,n){n&&R(this,`message`,n);let r=R(this,`object`),i=R(this,`message`),a=R(this,`ssfi`);new F(r,i,a,!0).is.a(`function`);let o;t?(new F(e,i,a,!0).to.have.property(t),o=e[t]):(new F(e,i,a,!0).is.a(`function`),o=e()),new F(o,i,a,!0).is.a(`number`),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;R(this,`deltaMsgObj`,c),R(this,`initialDeltaValue`,o),R(this,`finalDeltaValue`,s),R(this,`deltaBehavior`,`increase`),R(this,`realDelta`,s-o),this.assert(s-o>0,`expected `+c+` to increase`,`expected `+c+` to not increase`)}__name(assertIncreases,`assertIncreases`),F.addMethod(`increase`,assertIncreases),F.addMethod(`increases`,assertIncreases);function assertDecreases(e,t,n){n&&R(this,`message`,n);let r=R(this,`object`),i=R(this,`message`),a=R(this,`ssfi`);new F(r,i,a,!0).is.a(`function`);let o;t?(new F(e,i,a,!0).to.have.property(t),o=e[t]):(new F(e,i,a,!0).is.a(`function`),o=e()),new F(o,i,a,!0).is.a(`number`),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;R(this,`deltaMsgObj`,c),R(this,`initialDeltaValue`,o),R(this,`finalDeltaValue`,s),R(this,`deltaBehavior`,`decrease`),R(this,`realDelta`,o-s),this.assert(s-o<0,`expected `+c+` to decrease`,`expected `+c+` to not decrease`)}__name(assertDecreases,`assertDecreases`),F.addMethod(`decrease`,assertDecreases),F.addMethod(`decreases`,assertDecreases);function assertDelta(e,t){t&&R(this,`message`,t);let n=R(this,`deltaMsgObj`),r=R(this,`initialDeltaValue`),i=R(this,`finalDeltaValue`),a=R(this,`deltaBehavior`),o=R(this,`realDelta`),s;s=a===`change`?Math.abs(i-r)===Math.abs(e):o===Math.abs(e),this.assert(s,`expected `+n+` to `+a+` by `+e,`expected `+n+` to not `+a+` by `+e)}__name(assertDelta,`assertDelta`),F.addMethod(`by`,assertDelta),F.addProperty(`extensible`,function(){let e=R(this,`object`),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,`expected #{this} to be extensible`,`expected #{this} to not be extensible`)}),F.addProperty(`sealed`,function(){let e=R(this,`object`),t=e!==Object(e)||Object.isSealed(e);this.assert(t,`expected #{this} to be sealed`,`expected #{this} to not be sealed`)}),F.addProperty(`frozen`,function(){let e=R(this,`object`),t=e!==Object(e)||Object.isFrozen(e);this.assert(t,`expected #{this} to be frozen`,`expected #{this} to not be frozen`)}),F.addProperty(`finite`,function(e){let t=R(this,`object`);this.assert(typeof t==`number`&&isFinite(t),`expected #{this} to be a finite number`,`expected #{this} to not be a finite number`)});function compareSubset(e,t){return e===t?!0:typeof t==typeof e?typeof e!=`object`||!e?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(e){return t.some(function(t){return compareSubset(e,t)})}):!1:e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Object.keys(e).every(function(n){let r=e[n],i=t[n];return typeof r==`object`&&r&&i!==null?compareSubset(r,i):typeof r==`function`?r(i):i===r}):!1:!1}__name(compareSubset,`compareSubset`),F.addMethod(`containSubset`,function(e){let t=flag(this,`object`),n=P.showDiff;this.assert(compareSubset(e,t),`expected #{act} to contain subset #{exp}`,`expected #{act} to not contain subset #{exp}`,e,t,n)});function expect$1(e,t){return new F(e,t)}e(expect$1,`expect`),__name(expect$1,`expect`),expect$1.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n||=`expect.fail()`,new M(n,{actual:e,expected:t,operator:r},expect$1.fail)};var st={};__export(st,{Should:()=>lt,should:()=>ct});function loadShould(){function shouldGetter(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol==`function`&&this instanceof Symbol||typeof BigInt==`function`&&this instanceof BigInt?new F(this.valueOf(),null,shouldGetter):new F(this,null,shouldGetter)}__name(shouldGetter,`shouldGetter`);function shouldSetter(e){Object.defineProperty(this,"should",{value:e,enumerable:!0,configurable:!0,writable:!0})}__name(shouldSetter,`shouldSetter`),Object.defineProperty(Object.prototype,"should",{set:shouldSetter,get:shouldGetter,configurable:!0});let e={};return e.fail=function(t,n,r,i){throw arguments.length<2&&(r=t,t=void 0),r||=`should.fail()`,new M(r,{actual:t,expected:n,operator:i},e.fail)},e.equal=function(e,t,n){new F(e,n).to.equal(t)},e.Throw=function(e,t,n,r){new F(e,r).to.Throw(t,n)},e.exist=function(e,t){new F(e,t).to.exist},e.not={},e.not.equal=function(e,t,n){new F(e,n).to.not.equal(t)},e.not.Throw=function(e,t,n,r){new F(e,r).to.not.Throw(t,n)},e.not.exist=function(e,t){new F(e,t).to.not.exist},e.throw=e.Throw,e.not.throw=e.not.Throw,e}__name(loadShould,`loadShould`);var ct=loadShould,lt=loadShould;function assert$1(e,t){new F(null,null,assert$1,!0).assert(e,t,`[ negation message unavailable ]`)}e(assert$1,`assert`),__name(assert$1,`assert`),assert$1.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n||=`assert.fail()`,new M(n,{actual:e,expected:t,operator:r},assert$1.fail)},assert$1.isOk=function(e,t){new F(e,t,assert$1.isOk,!0).is.ok},assert$1.isNotOk=function(e,t){new F(e,t,assert$1.isNotOk,!0).is.not.ok},assert$1.equal=function(e,t,n){let r=new F(e,n,assert$1.equal,!0);r.assert(t==flag(r,`object`),`expected #{this} to equal #{exp}`,`expected #{this} to not equal #{act}`,t,e,!0)},assert$1.notEqual=function(e,t,n){let r=new F(e,n,assert$1.notEqual,!0);r.assert(t!=flag(r,`object`),`expected #{this} to not equal #{exp}`,`expected #{this} to equal #{act}`,t,e,!0)},assert$1.strictEqual=function(e,t,n){new F(e,n,assert$1.strictEqual,!0).to.equal(t)},assert$1.notStrictEqual=function(e,t,n){new F(e,n,assert$1.notStrictEqual,!0).to.not.equal(t)},assert$1.deepEqual=assert$1.deepStrictEqual=function(e,t,n){new F(e,n,assert$1.deepEqual,!0).to.eql(t)},assert$1.notDeepEqual=function(e,t,n){new F(e,n,assert$1.notDeepEqual,!0).to.not.eql(t)},assert$1.isAbove=function(e,t,n){new F(e,n,assert$1.isAbove,!0).to.be.above(t)},assert$1.isAtLeast=function(e,t,n){new F(e,n,assert$1.isAtLeast,!0).to.be.least(t)},assert$1.isBelow=function(e,t,n){new F(e,n,assert$1.isBelow,!0).to.be.below(t)},assert$1.isAtMost=function(e,t,n){new F(e,n,assert$1.isAtMost,!0).to.be.most(t)},assert$1.isTrue=function(e,t){new F(e,t,assert$1.isTrue,!0).is.true},assert$1.isNotTrue=function(e,t){new F(e,t,assert$1.isNotTrue,!0).to.not.equal(!0)},assert$1.isFalse=function(e,t){new F(e,t,assert$1.isFalse,!0).is.false},assert$1.isNotFalse=function(e,t){new F(e,t,assert$1.isNotFalse,!0).to.not.equal(!1)},assert$1.isNull=function(e,t){new F(e,t,assert$1.isNull,!0).to.equal(null)},assert$1.isNotNull=function(e,t){new F(e,t,assert$1.isNotNull,!0).to.not.equal(null)},assert$1.isNaN=function(e,t){new F(e,t,assert$1.isNaN,!0).to.be.NaN},assert$1.isNotNaN=function(e,t){new F(e,t,assert$1.isNotNaN,!0).not.to.be.NaN},assert$1.exists=function(e,t){new F(e,t,assert$1.exists,!0).to.exist},assert$1.notExists=function(e,t){new F(e,t,assert$1.notExists,!0).to.not.exist},assert$1.isUndefined=function(e,t){new F(e,t,assert$1.isUndefined,!0).to.equal(void 0)},assert$1.isDefined=function(e,t){new F(e,t,assert$1.isDefined,!0).to.not.equal(void 0)},assert$1.isCallable=function(e,t){new F(e,t,assert$1.isCallable,!0).is.callable},assert$1.isNotCallable=function(e,t){new F(e,t,assert$1.isNotCallable,!0).is.not.callable},assert$1.isObject=function(e,t){new F(e,t,assert$1.isObject,!0).to.be.a(`object`)},assert$1.isNotObject=function(e,t){new F(e,t,assert$1.isNotObject,!0).to.not.be.a(`object`)},assert$1.isArray=function(e,t){new F(e,t,assert$1.isArray,!0).to.be.an(`array`)},assert$1.isNotArray=function(e,t){new F(e,t,assert$1.isNotArray,!0).to.not.be.an(`array`)},assert$1.isString=function(e,t){new F(e,t,assert$1.isString,!0).to.be.a(`string`)},assert$1.isNotString=function(e,t){new F(e,t,assert$1.isNotString,!0).to.not.be.a(`string`)},assert$1.isNumber=function(e,t){new F(e,t,assert$1.isNumber,!0).to.be.a(`number`)},assert$1.isNotNumber=function(e,t){new F(e,t,assert$1.isNotNumber,!0).to.not.be.a(`number`)},assert$1.isNumeric=function(e,t){new F(e,t,assert$1.isNumeric,!0).is.numeric},assert$1.isNotNumeric=function(e,t){new F(e,t,assert$1.isNotNumeric,!0).is.not.numeric},assert$1.isFinite=function(e,t){new F(e,t,assert$1.isFinite,!0).to.be.finite},assert$1.isBoolean=function(e,t){new F(e,t,assert$1.isBoolean,!0).to.be.a(`boolean`)},assert$1.isNotBoolean=function(e,t){new F(e,t,assert$1.isNotBoolean,!0).to.not.be.a(`boolean`)},assert$1.typeOf=function(e,t,n){new F(e,n,assert$1.typeOf,!0).to.be.a(t)},assert$1.notTypeOf=function(e,t,n){new F(e,n,assert$1.notTypeOf,!0).to.not.be.a(t)},assert$1.instanceOf=function(e,t,n){new F(e,n,assert$1.instanceOf,!0).to.be.instanceOf(t)},assert$1.notInstanceOf=function(e,t,n){new F(e,n,assert$1.notInstanceOf,!0).to.not.be.instanceOf(t)},assert$1.include=function(e,t,n){new F(e,n,assert$1.include,!0).include(t)},assert$1.notInclude=function(e,t,n){new F(e,n,assert$1.notInclude,!0).not.include(t)},assert$1.deepInclude=function(e,t,n){new F(e,n,assert$1.deepInclude,!0).deep.include(t)},assert$1.notDeepInclude=function(e,t,n){new F(e,n,assert$1.notDeepInclude,!0).not.deep.include(t)},assert$1.nestedInclude=function(e,t,n){new F(e,n,assert$1.nestedInclude,!0).nested.include(t)},assert$1.notNestedInclude=function(e,t,n){new F(e,n,assert$1.notNestedInclude,!0).not.nested.include(t)},assert$1.deepNestedInclude=function(e,t,n){new F(e,n,assert$1.deepNestedInclude,!0).deep.nested.include(t)},assert$1.notDeepNestedInclude=function(e,t,n){new F(e,n,assert$1.notDeepNestedInclude,!0).not.deep.nested.include(t)},assert$1.ownInclude=function(e,t,n){new F(e,n,assert$1.ownInclude,!0).own.include(t)},assert$1.notOwnInclude=function(e,t,n){new F(e,n,assert$1.notOwnInclude,!0).not.own.include(t)},assert$1.deepOwnInclude=function(e,t,n){new F(e,n,assert$1.deepOwnInclude,!0).deep.own.include(t)},assert$1.notDeepOwnInclude=function(e,t,n){new F(e,n,assert$1.notDeepOwnInclude,!0).not.deep.own.include(t)},assert$1.match=function(e,t,n){new F(e,n,assert$1.match,!0).to.match(t)},assert$1.notMatch=function(e,t,n){new F(e,n,assert$1.notMatch,!0).to.not.match(t)},assert$1.property=function(e,t,n){new F(e,n,assert$1.property,!0).to.have.property(t)},assert$1.notProperty=function(e,t,n){new F(e,n,assert$1.notProperty,!0).to.not.have.property(t)},assert$1.propertyVal=function(e,t,n,r){new F(e,r,assert$1.propertyVal,!0).to.have.property(t,n)},assert$1.notPropertyVal=function(e,t,n,r){new F(e,r,assert$1.notPropertyVal,!0).to.not.have.property(t,n)},assert$1.deepPropertyVal=function(e,t,n,r){new F(e,r,assert$1.deepPropertyVal,!0).to.have.deep.property(t,n)},assert$1.notDeepPropertyVal=function(e,t,n,r){new F(e,r,assert$1.notDeepPropertyVal,!0).to.not.have.deep.property(t,n)},assert$1.ownProperty=function(e,t,n){new F(e,n,assert$1.ownProperty,!0).to.have.own.property(t)},assert$1.notOwnProperty=function(e,t,n){new F(e,n,assert$1.notOwnProperty,!0).to.not.have.own.property(t)},assert$1.ownPropertyVal=function(e,t,n,r){new F(e,r,assert$1.ownPropertyVal,!0).to.have.own.property(t,n)},assert$1.notOwnPropertyVal=function(e,t,n,r){new F(e,r,assert$1.notOwnPropertyVal,!0).to.not.have.own.property(t,n)},assert$1.deepOwnPropertyVal=function(e,t,n,r){new F(e,r,assert$1.deepOwnPropertyVal,!0).to.have.deep.own.property(t,n)},assert$1.notDeepOwnPropertyVal=function(e,t,n,r){new F(e,r,assert$1.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,n)},assert$1.nestedProperty=function(e,t,n){new F(e,n,assert$1.nestedProperty,!0).to.have.nested.property(t)},assert$1.notNestedProperty=function(e,t,n){new F(e,n,assert$1.notNestedProperty,!0).to.not.have.nested.property(t)},assert$1.nestedPropertyVal=function(e,t,n,r){new F(e,r,assert$1.nestedPropertyVal,!0).to.have.nested.property(t,n)},assert$1.notNestedPropertyVal=function(e,t,n,r){new F(e,r,assert$1.notNestedPropertyVal,!0).to.not.have.nested.property(t,n)},assert$1.deepNestedPropertyVal=function(e,t,n,r){new F(e,r,assert$1.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,n)},assert$1.notDeepNestedPropertyVal=function(e,t,n,r){new F(e,r,assert$1.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,n)},assert$1.lengthOf=function(e,t,n){new F(e,n,assert$1.lengthOf,!0).to.have.lengthOf(t)},assert$1.hasAnyKeys=function(e,t,n){new F(e,n,assert$1.hasAnyKeys,!0).to.have.any.keys(t)},assert$1.hasAllKeys=function(e,t,n){new F(e,n,assert$1.hasAllKeys,!0).to.have.all.keys(t)},assert$1.containsAllKeys=function(e,t,n){new F(e,n,assert$1.containsAllKeys,!0).to.contain.all.keys(t)},assert$1.doesNotHaveAnyKeys=function(e,t,n){new F(e,n,assert$1.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)},assert$1.doesNotHaveAllKeys=function(e,t,n){new F(e,n,assert$1.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)},assert$1.hasAnyDeepKeys=function(e,t,n){new F(e,n,assert$1.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)},assert$1.hasAllDeepKeys=function(e,t,n){new F(e,n,assert$1.hasAllDeepKeys,!0).to.have.all.deep.keys(t)},assert$1.containsAllDeepKeys=function(e,t,n){new F(e,n,assert$1.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)},assert$1.doesNotHaveAnyDeepKeys=function(e,t,n){new F(e,n,assert$1.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)},assert$1.doesNotHaveAllDeepKeys=function(e,t,n){new F(e,n,assert$1.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)},assert$1.throws=function(e,t,n,r){return(typeof t==`string`||t instanceof RegExp)&&(n=t,t=null),flag(new F(e,r,assert$1.throws,!0).to.throw(t,n),`object`)},assert$1.doesNotThrow=function(e,t,n,r){(typeof t==`string`||t instanceof RegExp)&&(n=t,t=null),new F(e,r,assert$1.doesNotThrow,!0).to.not.throw(t,n)},assert$1.operator=function(e,t,n,r){let i;switch(t){case`==`:i=e==n;break;case`===`:i=e===n;break;case`>`:i=e>n;break;case`>=`:i=e>=n;break;case`<`:i=e<n;break;case`<=`:i=e<=n;break;case`!=`:i=e!=n;break;case`!==`:i=e!==n;break;default:throw r&&=r+`: `,new M(r+`Invalid operator "`+t+`"`,void 0,assert$1.operator)}let a=new F(i,r,assert$1.operator,!0);a.assert(!0===flag(a,`object`),`expected `+inspect2(e)+` to be `+t+` `+inspect2(n),`expected `+inspect2(e)+` to not be `+t+` `+inspect2(n))},assert$1.closeTo=function(e,t,n,r){new F(e,r,assert$1.closeTo,!0).to.be.closeTo(t,n)},assert$1.approximately=function(e,t,n,r){new F(e,r,assert$1.approximately,!0).to.be.approximately(t,n)},assert$1.sameMembers=function(e,t,n){new F(e,n,assert$1.sameMembers,!0).to.have.same.members(t)},assert$1.notSameMembers=function(e,t,n){new F(e,n,assert$1.notSameMembers,!0).to.not.have.same.members(t)},assert$1.sameDeepMembers=function(e,t,n){new F(e,n,assert$1.sameDeepMembers,!0).to.have.same.deep.members(t)},assert$1.notSameDeepMembers=function(e,t,n){new F(e,n,assert$1.notSameDeepMembers,!0).to.not.have.same.deep.members(t)},assert$1.sameOrderedMembers=function(e,t,n){new F(e,n,assert$1.sameOrderedMembers,!0).to.have.same.ordered.members(t)},assert$1.notSameOrderedMembers=function(e,t,n){new F(e,n,assert$1.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)},assert$1.sameDeepOrderedMembers=function(e,t,n){new F(e,n,assert$1.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)},assert$1.notSameDeepOrderedMembers=function(e,t,n){new F(e,n,assert$1.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)},assert$1.includeMembers=function(e,t,n){new F(e,n,assert$1.includeMembers,!0).to.include.members(t)},assert$1.notIncludeMembers=function(e,t,n){new F(e,n,assert$1.notIncludeMembers,!0).to.not.include.members(t)},assert$1.includeDeepMembers=function(e,t,n){new F(e,n,assert$1.includeDeepMembers,!0).to.include.deep.members(t)},assert$1.notIncludeDeepMembers=function(e,t,n){new F(e,n,assert$1.notIncludeDeepMembers,!0).to.not.include.deep.members(t)},assert$1.includeOrderedMembers=function(e,t,n){new F(e,n,assert$1.includeOrderedMembers,!0).to.include.ordered.members(t)},assert$1.notIncludeOrderedMembers=function(e,t,n){new F(e,n,assert$1.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)},assert$1.includeDeepOrderedMembers=function(e,t,n){new F(e,n,assert$1.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)},assert$1.notIncludeDeepOrderedMembers=function(e,t,n){new F(e,n,assert$1.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)},assert$1.oneOf=function(e,t,n){new F(e,n,assert$1.oneOf,!0).to.be.oneOf(t)},assert$1.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${inspect2(e)} to be an iterable`:`expected ${inspect2(e)} to be an iterable`,new M(t,void 0,assert$1.isIterable)},assert$1.changes=function(e,t,n,r){arguments.length===3&&typeof t==`function`&&(r=n,n=null),new F(e,r,assert$1.changes,!0).to.change(t,n)},assert$1.changesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new F(e,i,assert$1.changesBy,!0).to.change(t,n).by(r)},assert$1.doesNotChange=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new F(e,r,assert$1.doesNotChange,!0).to.not.change(t,n)},assert$1.changesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new F(e,i,assert$1.changesButNotBy,!0).to.change(t,n).but.not.by(r)},assert$1.increases=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new F(e,r,assert$1.increases,!0).to.increase(t,n)},assert$1.increasesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new F(e,i,assert$1.increasesBy,!0).to.increase(t,n).by(r)},assert$1.doesNotIncrease=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new F(e,r,assert$1.doesNotIncrease,!0).to.not.increase(t,n)},assert$1.increasesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new F(e,i,assert$1.increasesButNotBy,!0).to.increase(t,n).but.not.by(r)},assert$1.decreases=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new F(e,r,assert$1.decreases,!0).to.decrease(t,n)},assert$1.decreasesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new F(e,i,assert$1.decreasesBy,!0).to.decrease(t,n).by(r)},assert$1.doesNotDecrease=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new F(e,r,assert$1.doesNotDecrease,!0).to.not.decrease(t,n)},assert$1.doesNotDecreaseBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);return new F(e,i,assert$1.doesNotDecreaseBy,!0).to.not.decrease(t,n).by(r)},assert$1.decreasesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new F(e,i,assert$1.decreasesButNotBy,!0).to.decrease(t,n).but.not.by(r)},assert$1.ifError=function(e){if(e)throw e},assert$1.isExtensible=function(e,t){new F(e,t,assert$1.isExtensible,!0).to.be.extensible},assert$1.isNotExtensible=function(e,t){new F(e,t,assert$1.isNotExtensible,!0).to.not.be.extensible},assert$1.isSealed=function(e,t){new F(e,t,assert$1.isSealed,!0).to.be.sealed},assert$1.isNotSealed=function(e,t){new F(e,t,assert$1.isNotSealed,!0).to.not.be.sealed},assert$1.isFrozen=function(e,t){new F(e,t,assert$1.isFrozen,!0).to.be.frozen},assert$1.isNotFrozen=function(e,t){new F(e,t,assert$1.isNotFrozen,!0).to.not.be.frozen},assert$1.isEmpty=function(e,t){new F(e,t,assert$1.isEmpty,!0).to.be.empty},assert$1.isNotEmpty=function(e,t){new F(e,t,assert$1.isNotEmpty,!0).to.not.be.empty},assert$1.containsSubset=function(e,t,n){new F(e,n).to.containSubset(t)},assert$1.doesNotContainSubset=function(e,t,n){new F(e,n).to.not.containSubset(t)};for(let[e,t]of[[`isOk`,`ok`],[`isNotOk`,`notOk`],[`throws`,`throw`],[`throws`,`Throw`],[`isExtensible`,`extensible`],[`isNotExtensible`,`notExtensible`],[`isSealed`,`sealed`],[`isNotSealed`,`notSealed`],[`isFrozen`,`frozen`],[`isNotFrozen`,`notFrozen`],[`isEmpty`,`empty`],[`isNotEmpty`,`notEmpty`],[`isCallable`,`isFunction`],[`isNotCallable`,`isNotFunction`],[`containsSubset`,`containSubset`]])assert$1[t]=assert$1[e];var ut=[];function use(e){let t={use,AssertionError:M,util:A,config:P,expect:expect$1,assert:assert$1,Assertion:F,...st};return~ut.indexOf(e)||(e(t,A),ut.push(e)),t}__name(use,`use`);const ChaiStyleAssertions=(e,t)=>{function defProperty(n,r){t.addProperty(e.Assertion.prototype,n,function(){let t=e.Assertion.prototype[r];if(!t)throw Error(`Cannot delegate to ${String(r)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);return t.call(this)})}function defPropertyWithArgs(n,r,...i){t.addProperty(e.Assertion.prototype,n,function(){let t=e.Assertion.prototype[r];if(!t)throw Error(`Cannot delegate to ${String(r)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);return t.call(this,...i)})}function defMethod(n,r){t.addMethod(e.Assertion.prototype,n,function(...t){let n=e.Assertion.prototype[r];if(!n)throw Error(`Cannot delegate to ${String(r)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);return n.call(this,...t)})}defProperty(`called`,`toHaveBeenCalled`),defProperty(`calledOnce`,`toHaveBeenCalledOnce`),defPropertyWithArgs(`calledTwice`,`toHaveBeenCalledTimes`,2),defPropertyWithArgs(`calledThrice`,`toHaveBeenCalledTimes`,3),defMethod(`callCount`,`toHaveBeenCalledTimes`),defMethod(`calledWith`,`toHaveBeenCalledWith`),defMethod(`calledOnceWith`,`toHaveBeenCalledExactlyOnceWith`),defMethod(`lastCalledWith`,`toHaveBeenLastCalledWith`),defMethod(`nthCalledWith`,`toHaveBeenNthCalledWith`),defMethod(`returned`,`toHaveReturned`),defMethod(`returnedWith`,`toHaveReturnedWith`),defMethod(`returnedTimes`,`toHaveReturnedTimes`),defMethod(`lastReturnedWith`,`toHaveLastReturnedWith`),defMethod(`nthReturnedWith`,`toHaveNthReturnedWith`),defMethod(`calledBefore`,`toHaveBeenCalledBefore`),defMethod(`calledAfter`,`toHaveBeenCalledAfter`)},z=Symbol.for(`matchers-object`),B=Symbol.for(`$$jest-matchers-object`),V=Symbol.for(`expect-global`),dt=Symbol.for(`asymmetric-matchers-object`),ft={toSatisfy(e,t,n){let{printReceived:r,printExpected:i,matcherHint:a}=this.utils,o=t(e);return{pass:o,message:()=>o?`\
36
- ${a(`.not.toSatisfy`,`received`,``)}
37
-
38
- Expected value to not satisfy:
39
- ${n||i(t)}
40
- Received:
41
- ${r(e)}`:`\
42
- ${a(`.toSatisfy`,`received`,``)}
43
-
44
- Expected value to satisfy:
45
- ${n||i(t)}
46
-
47
- Received:
48
- ${r(e)}`}},toBeOneOf(e,t){let{equals:n,customTesters:r}=this,{printReceived:i,printExpected:a,matcherHint:o}=this.utils,s;if(Array.isArray(t))s=t.length===0||t.some(t=>n(t,e,r));else if(t instanceof Set)s=t.size===0||t.has(e)||[...t].some(t=>n(t,e,r));else throw TypeError(`You must provide an array or set to ${o(`.toBeOneOf`)}, not '${typeof t}'.`);return{pass:s,message:()=>s?`\
49
- ${o(`.not.toBeOneOf`,`received`,``)}
50
-
51
- Expected value to not be one of:
52
- ${a(t)}
53
- Received:
54
- ${i(e)}`:`\
55
- ${o(`.toBeOneOf`,`received`,``)}
56
-
57
- Expected value to be one of:
58
- ${a(t)}
59
-
60
- Received:
61
- ${i(e)}`}}},H=T.green,pt=T.red,mt=T.inverse,ht=T.bold,U=T.dim;function matcherHint(e,t=`received`,n=`expected`,r={}){let{comment:i=``,isDirectExpectCall:a=!1,isNot:o=!1,promise:s=``,secondArgument:c=``,expectedColor:l=H,receivedColor:u=pt,secondArgumentColor:d=H}=r,f=``,p=`expect`;return!a&&t!==``&&(f+=U(`${p}(`)+u(t),p=`)`),s!==``&&(f+=U(`${p}.`)+s,p=``),o&&(f+=`${U(`${p}.`)}not`,p=``),e.includes(`.`)?p+=e:(f+=U(`${p}.`)+e,p=``),n===``?p+=`()`:(f+=U(`${p}(`)+l(n),c&&(f+=U(`, `)+d(c)),p=`)`),i!==``&&(p+=` // ${i}`),p!==``&&(f+=U(p)),f}function replaceTrailingSpaces(e){return e.replace(/\s+$/gm,e=>`·`.repeat(e.length))}function printReceived(e){return pt(replaceTrailingSpaces(p(e)))}function printExpected(e){return H(replaceTrailingSpaces(p(e)))}function getMatcherUtils(){return{EXPECTED_COLOR:H,RECEIVED_COLOR:pt,INVERTED_COLOR:mt,BOLD_WEIGHT:ht,DIM_COLOR:U,diff,matcherHint,printReceived,printExpected,printDiffOrStringify,printWithType}}function printWithType(e,t,n){let r=f(t);return(r!==`null`&&r!==`undefined`?`${e} has type: ${r}\n`:``)+`${e} has value: ${n(t)}`}function addCustomEqualityTesters(e){if(!Array.isArray(e))throw TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${f(e)}"`);globalThis[B].customEqualityTesters.push(...e)}function getCustomEqualityTesters(){return globalThis[B].customEqualityTesters}function equals(e,t,n,r){return n||=[],eq(e,t,[],[],n,r?hasKey:hasDefinedKey)}Function.prototype.toString;function isAsymmetric(e){return!!e&&typeof e==`object`&&`asymmetricMatch`in e&&isA(`Function`,e.asymmetricMatch)}function asymmetricMatch(e,t,n){let r=isAsymmetric(e),i=isAsymmetric(t);if(!(r&&i)){if(r)return e.asymmetricMatch(t,n);if(i)return t.asymmetricMatch(e,n)}}function isError(e){if(typeof Error.isError==`function`)return Error.isError(e);switch(Object.prototype.toString.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:return!0;default:return e instanceof Error}}function eq(e,t,n,r,i,a){let o=!0,s=asymmetricMatch(e,t,i);if(s!==void 0)return s;let c={equals};for(let n=0;n<i.length;n++){let r=i[n].call(c,e,t,i);if(r!==void 0)return r}if(typeof URL==`function`&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;let l=Object.prototype.toString.call(e);if(l!==Object.prototype.toString.call(t))return!1;switch(l){case`[object Boolean]`:case`[object String]`:case`[object Number]`:return typeof e==typeof t?typeof e!=`object`&&typeof t!=`object`?Object.is(e,t):Object.is(e.valueOf(),t.valueOf()):!1;case`[object Date]`:{let n=+e,r=+t;return n===r||Number.isNaN(n)&&Number.isNaN(r)}case`[object RegExp]`:return e.source===t.source&&e.flags===t.flags;case`[object Temporal.Instant]`:case`[object Temporal.ZonedDateTime]`:case`[object Temporal.PlainDateTime]`:case`[object Temporal.PlainDate]`:case`[object Temporal.PlainTime]`:case`[object Temporal.PlainYearMonth]`:case`[object Temporal.PlainMonthDay]`:return e.equals(t);case`[object Temporal.Duration]`:return e.toString()===t.toString()}if(typeof e!=`object`||typeof t!=`object`)return!1;if(isDomNode(e)&&isDomNode(t))return e.isEqualNode(t);let u=n.length;for(;u--;)if(n[u]===e)return r[u]===t;else if(r[u]===t)return!1;if(n.push(e),r.push(t),l===`[object Array]`&&e.length!==t.length)return!1;if(isError(e)&&isError(t))try{return isErrorEqual(e,t,n,r,i,a)}finally{n.pop(),r.pop()}let d=keys(e,a),f,p=d.length;if(keys(t,a).length!==p)return!1;for(;p--;)if(f=d[p],o=a(t,f)&&eq(e[f],t[f],n,r,i,a),!o)return!1;return n.pop(),r.pop(),o}function isErrorEqual(e,t,n,r,i,a){let o=Object.prototype.toString.call(e)===Object.prototype.toString.call(t)&&e.name===t.name&&e.message===t.message;return t.cause!==void 0&&(o&&=eq(e.cause,t.cause,n,r,i,a)),e instanceof AggregateError&&t instanceof AggregateError&&(o&&=eq(e.errors,t.errors,n,r,i,a)),o&&=eq({...e},{...t},n,r,i,a),o}function keys(e,t){let n=[];for(let r in e)t(e,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable))}function hasDefinedKey(e,t){return hasKey(e,t)&&e[t]!==void 0}function hasKey(e,t){return Object.hasOwn(e,t)}function isA(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function isDomNode(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`&&`nodeName`in e&&typeof e.nodeName==`string`&&`isEqualNode`in e&&typeof e.isEqualNode==`function`}const gt=`@@__IMMUTABLE_KEYED__@@`,_t=`@@__IMMUTABLE_SET__@@`,W=`@@__IMMUTABLE_ORDERED__@@`;function isImmutableUnorderedKeyed(e){return!!(e&&e[gt]&&!e[W])}function isImmutableUnorderedSet(e){return!!(e&&e[_t]&&!e[W])}function isObjectLiteral(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function isImmutableList(e){return!!(e&&isObjectLiteral(e)&&e[`@@__IMMUTABLE_LIST__@@`])}function isImmutableOrderedKeyed(e){return!!(e&&isObjectLiteral(e)&&e[gt]&&e[W])}function isImmutableOrderedSet(e){return!!(e&&isObjectLiteral(e)&&e[_t]&&e[W])}function isImmutableRecord(e){return!!(e&&isObjectLiteral(e)&&e[`@@__IMMUTABLE_RECORD__@@`])}const vt=Symbol.iterator;function hasIterator(e){return!!(e!=null&&e[vt])}function iterableEquality(e,t,n=[],r=[],i=[]){if(typeof e!=`object`||typeof t!=`object`||Array.isArray(e)||Array.isArray(t)||!hasIterator(e)||!hasIterator(t))return;if(e.constructor!==t.constructor)return!1;let a=r.length;for(;a--;)if(r[a]===e)return i[a]===t;r.push(e),i.push(t);let o=[...n.filter(e=>e!==iterableEquality),iterableEqualityWithStack];function iterableEqualityWithStack(e,t){return iterableEquality(e,t,[...n],[...r],[...i])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(isA(`Set`,e)||isImmutableUnorderedSet(e)){let n=!0;for(let r of e)if(!t.has(r)){let e=!1;for(let n of t)equals(r,n,o)===!0&&(e=!0);if(e===!1){n=!1;break}}return r.pop(),i.pop(),n}else if(isA(`Map`,e)||isImmutableUnorderedKeyed(e)){let n=!0;for(let r of e)if(!t.has(r[0])||!equals(r[1],t.get(r[0]),o)){let e=!1;for(let n of t){let t=equals(r[0],n[0],o),i=!1;t===!0&&(i=equals(r[1],n[1],o)),i===!0&&(e=!0)}if(e===!1){n=!1;break}}return r.pop(),i.pop(),n}}let s=t[vt]();for(let t of e){let e=s.next();if(e.done||!equals(t,e.value,o))return!1}return!s.next().done||!isImmutableList(e)&&!isImmutableOrderedKeyed(e)&&!isImmutableOrderedSet(e)&&!isImmutableRecord(e)&&!equals(Object.entries(e),Object.entries(t),o)?!1:(r.pop(),i.pop(),!0)}function hasPropertyInObject(e,t){return!e||typeof e!=`object`||e===Object.prototype?!1:Object.hasOwn(e,t)||hasPropertyInObject(Object.getPrototypeOf(e),t)}function isObjectWithKeys(e){return b(e)&&!isError(e)&&!Array.isArray(e)&&!(e instanceof Date)&&!(e instanceof Set)&&!(e instanceof Map)}function subsetEquality(e,t,n=[]){let r=n.filter(e=>e!==subsetEquality),subsetEqualityWithContext=(e=new WeakMap)=>(t,n)=>{if(isObjectWithKeys(n))return Object.keys(n).every(i=>{if(n[i]!=null&&typeof n[i]==`object`){if(e.has(n[i]))return equals(t[i],n[i],r);e.set(n[i],!0)}let a=t!=null&&hasPropertyInObject(t,i)&&equals(t[i],n[i],[...r,subsetEqualityWithContext(e)]);return e.delete(n[i]),a})};return subsetEqualityWithContext()(e,t)}function typeEquality(e,t){if(e!=null&&t!=null&&e.constructor!==t.constructor)return!1}function arrayBufferEquality(e,t){let n=e,r=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{n=new DataView(e),r=new DataView(t)}catch{return}}if(n.byteLength!==r.byteLength)return!1;for(let e=0;e<n.byteLength;e++)if(n.getUint8(e)!==r.getUint8(e))return!1;return!0}function sparseArrayEquality(e,t,n=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let r=Object.keys(e),i=Object.keys(t);return equals(e,t,n.filter(e=>e!==sparseArrayEquality),!0)&&equals(r,i)}function generateToBeMessage(e,t=`#{this}`,n=`#{exp}`){let r=`expected ${t} to be ${n} // Object.is equality`;return[`toStrictEqual`,`toEqual`].includes(e)?`${r}\n\nIf it should pass with deep equality, replace "toBe" with "${e}"\n\nExpected: ${t}\nReceived: serializes to the same string\n`:r}function pluralize(e,t){return`${t} ${e}${t===1?``:`s`}`}function getObjectKeys(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t)?.enumerable)]}function getObjectSubset(e,t,n){let r=0,getObjectSubsetWithContext=(e=new WeakMap)=>(t,i)=>{if(Array.isArray(t)){if(Array.isArray(i)&&i.length===t.length)return i.map((n,r)=>getObjectSubsetWithContext(e)(t[r],n))}else if(t instanceof Date)return t;else if(b(t)&&b(i)){if(equals(t,i,[...n,iterableEquality,subsetEquality]))return i;let a={};e.set(t,a),typeof t.constructor==`function`&&typeof t.constructor.name==`string`&&Object.defineProperty(a,"constructor",{enumerable:!1,value:t.constructor});for(let n of getObjectKeys(t))hasPropertyInObject(i,n)?a[n]=e.has(t[n])?e.get(t[n]):getObjectSubsetWithContext(e)(t[n],i[n]):e.has(t[n])||(r+=1,b(t[n])&&(r+=getObjectKeys(t[n]).length),getObjectSubsetWithContext(e)(t[n],i[n]));if(getObjectKeys(a).length>0)return a}return t};return{subset:getObjectSubsetWithContext()(e,t),stripped:r}}function isStandardSchema(e){return!!e&&(typeof e==`object`||typeof e==`function`)&&e[`~standard`]&&typeof e[`~standard`].validate==`function`}if(!Object.hasOwn(globalThis,z)){let e=new WeakMap,t=Object.create(null),n=[],r=Object.create(null);Object.defineProperty(globalThis,z,{get:()=>e}),Object.defineProperty(globalThis,B,{configurable:!0,get:()=>({state:e.get(globalThis[V]),matchers:t,customEqualityTesters:n})}),Object.defineProperty(globalThis,dt,{get:()=>r})}function getState(e){return globalThis[z].get(e)}function setState(e,t){let n=globalThis[z],r=n.get(t)||{},i=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(e)});n.set(t,i)}var AsymmetricMatcher$1=class{static{e(this,`AsymmetricMatcher`)}$$typeof=Symbol.for(`jest.asymmetricMatcher`);constructor(e,t=!1){this.sample=e,this.inverse=t}getMatcherContext(e){return{...getState(e||globalThis[V]),equals,isNot:this.inverse,customTesters:getCustomEqualityTesters(),utils:{...getMatcherUtils(),diff,stringify:p,iterableEquality,subsetEquality}}}};AsymmetricMatcher$1.prototype[Symbol.for(`chai/inspect`)]=function(e){let t=p(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var StringContaining=class extends AsymmetricMatcher$1{constructor(e,t=!1){if(!isA(`String`,e))throw Error(`Expected is not a string`);super(e,t)}asymmetricMatch(e){let t=isA(`String`,e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?`Not`:``}Containing`}getExpectedType(){return`string`}},Anything=class extends AsymmetricMatcher$1{asymmetricMatch(e){return e!=null}toString(){return`Anything`}toAsymmetricMatcher(){return`Anything`}},ObjectContaining=class extends AsymmetricMatcher$1{constructor(e,t=!1){super(e,t)}getPrototype(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.constructor.prototype===e?null:e.constructor.prototype}hasProperty(e,t){return e?Object.hasOwn(e,t)?!0:this.hasProperty(this.getPrototype(e),t):!1}getProperties(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t)?.enumerable)]}asymmetricMatch(e,t){if(typeof this.sample!=`object`)throw TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let n=!0,r=this.getProperties(this.sample);for(let i of r){if(!this.hasProperty(e,i)){n=!1;break}let r=this.sample[i],a=e[i];if(!equals(r,a,t)){n=!1;break}}return this.inverse?!n:n}toString(){return`Object${this.inverse?`Not`:``}Containing`}getExpectedType(){return`object`}},ArrayContaining=class extends AsymmetricMatcher$1{constructor(e,t=!1){super(e,t)}asymmetricMatch(e,t){if(!Array.isArray(this.sample))throw TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let n=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(e=>equals(n,e,t)));return this.inverse?!n:n}toString(){return`Array${this.inverse?`Not`:``}Containing`}getExpectedType(){return`array`}},Any=class extends AsymmetricMatcher$1{constructor(e){if(e===void 0)throw TypeError(`any() expects to be passed a constructor function. Please pass one or use anything() to match any object.`);super(e)}fnNameFor(e){if(e.name)return e.name;let t=Function.prototype.toString.call(e).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return t?t[1]:`<anonymous>`}asymmetricMatch(e){return this.sample===String?typeof e==`string`||e instanceof String:this.sample===Number?typeof e==`number`||e instanceof Number:this.sample===Function?typeof e==`function`||typeof e==`function`:this.sample===Boolean?typeof e==`boolean`||e instanceof Boolean:this.sample===BigInt?typeof e==`bigint`||e instanceof BigInt:this.sample===Symbol?typeof e==`symbol`||e instanceof Symbol:this.sample===Object?typeof e==`object`:e instanceof this.sample}toString(){return`Any`}getExpectedType(){return this.sample===String?`string`:this.sample===Number?`number`:this.sample===Function?`function`:this.sample===Object?`object`:this.sample===Boolean?`boolean`:this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}},StringMatching=class extends AsymmetricMatcher$1{constructor(e,t=!1){if(!isA(`String`,e)&&!isA(`RegExp`,e))throw Error(`Expected is not a String or a RegExp`);super(new RegExp(e),t)}asymmetricMatch(e){let t=isA(`String`,e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?`Not`:``}Matching`}getExpectedType(){return`string`}},CloseTo=class extends AsymmetricMatcher$1{precision;constructor(e,t=2,n=!1){if(!isA(`Number`,e))throw Error(`Expected is not a Number`);if(!isA(`Number`,t))throw Error(`Precision is not a Number`);super(e),this.inverse=n,this.precision=t}asymmetricMatch(e){if(!isA(`Number`,e))return!1;let t=!1;return t=e===1/0&&this.sample===1/0||e===-1/0&&this.sample===-1/0||Math.abs(this.sample-e)<10**-this.precision/2,this.inverse?!t:t}toString(){return`Number${this.inverse?`Not`:``}CloseTo`}getExpectedType(){return`number`}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${pluralize(`digit`,this.precision)})`].join(` `)}},SchemaMatching=class extends AsymmetricMatcher$1{result;constructor(e,t=!1){if(!isStandardSchema(e))throw TypeError(`SchemaMatching expected to receive a Standard Schema.`);super(e,t)}asymmetricMatch(e){let t=this.sample[`~standard`].validate(e);if(t instanceof Promise)throw TypeError(`Async schema validation is not supported in asymmetric matchers.`);this.result=t;let n=!this.result.issues||this.result.issues.length===0;return this.inverse?!n:n}toString(){return`Schema${this.inverse?`Not`:``}Matching`}getExpectedType(){return`object`}toAsymmetricMatcher(){let{utils:e}=this.getMatcherContext();return(this.result?.issues||[]).length>0?`${this.toString()} ${e.stringify(this.result,void 0,{printBasicPrototype:!1})}`:this.toString()}};const JestAsymmetricMatchers=(e,t)=>{t.addMethod(e.expect,`anything`,()=>new Anything),t.addMethod(e.expect,`any`,e=>new Any(e)),t.addMethod(e.expect,`stringContaining`,e=>new StringContaining(e)),t.addMethod(e.expect,`objectContaining`,e=>new ObjectContaining(e)),t.addMethod(e.expect,`arrayContaining`,e=>new ArrayContaining(e)),t.addMethod(e.expect,`stringMatching`,e=>new StringMatching(e)),t.addMethod(e.expect,`closeTo`,(e,t)=>new CloseTo(e,t)),t.addMethod(e.expect,`schemaMatching`,e=>new SchemaMatching(e)),e.expect.not={stringContaining:e=>new StringContaining(e,!0),objectContaining:e=>new ObjectContaining(e,!0),arrayContaining:e=>new ArrayContaining(e,!0),stringMatching:e=>new StringMatching(e,!0),closeTo:(e,t)=>new CloseTo(e,t,!0),schemaMatching:e=>new SchemaMatching(e,!0)}};function createAssertionMessage(e,t,n){let r=e.flag(t,`soft`)?`.soft`:``,i=e.flag(t,`negate`)?`not.`:``,a=`${e.flag(t,`_name`)}(${n?`expected`:``})`,o=e.flag(t,`promise`);return`expect${r}(actual)${o?`.${o}`:``}.${i}${a}`}function recordAsyncExpect(e,t,n,r,i){let a=e;if(a&&t instanceof Promise){t=t.finally(()=>{if(!a.promises)return;let e=a.promises.indexOf(t);e!==-1&&a.promises.splice(e,1)}),a.promises||=[],i&&(t=t.then(_,e=>{handleTestError(a,e)})),a.promises.push(t);let e=!1;return a.onFinished??=[],a.onFinished.push(()=>{if(!e){let e=(globalThis.__vitest_worker__?.onFilterStackTrace||(e=>e||``))(r.stack);console.warn([`Promise returned by \`${n}\` was not awaited. `,`Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in the next Vitest major. `,`Please remember to await the assertion.
62
- `,e].join(``))}}),{then(n,r){return e=!0,t.then(n,r)},catch(n){return e=!0,t.catch(n)},finally(n){return e=!0,t.finally(n)},[Symbol.toStringTag]:`Promise`}}return t}function handleTestError(e,t){e.result||={state:`fail`},e.result.state=`fail`,e.result.errors||=[],e.result.errors.push(processError(t))}function wrapAssertion(e,t,n){return function(...r){if(t!==`withTest`&&e.flag(this,`_name`,t),!e.flag(this,`soft`))try{return n.apply(this,r)}finally{}let i=e.flag(this,`vitest-test`);if(!i)throw Error(`expect.soft() can only be used inside a test`);try{let e=n.apply(this,r);return e&&typeof e==`object`&&typeof e.then==`function`?e.then(_,e=>{handleTestError(i,e)}):e}catch(e){handleTestError(i,e)}}}const JestChaiExpect=(e,t)=>{let{AssertionError:n}=e,r=getCustomEqualityTesters();function def(n,r){let addMethod=n=>{let i=wrapAssertion(t,n,r);t.addMethod(e.Assertion.prototype,n,i),t.addMethod(globalThis[B].matchers,n,i)};Array.isArray(n)?n.forEach(e=>addMethod(e)):addMethod(n)}[`throw`,`throws`,`Throw`].forEach(r=>{t.overwriteMethod(e.Assertion.prototype,r,e=>function(...r){let i=t.flag(this,`promise`),a=t.flag(this,`object`),o=t.flag(this,`negate`);if(i===`rejects`)t.flag(this,`object`,()=>{throw a});else if(i===`resolves`&&typeof a!=`function`){if(o)return;{let e=t.flag(this,`message`)||`expected promise to throw an error, but it didn't`;throw new n(e,{showDiff:!1},t.flag(this,`ssfi`))}}e.apply(this,r)})}),def(`withTest`,function(e){return t.flag(this,`vitest-test`,e),this}),def(`toEqual`,function(e){let n=t.flag(this,`object`),i=equals(n,e,[...r,iterableEquality]);return this.assert(i,`expected #{this} to deeply equal #{exp}`,`expected #{this} to not deeply equal #{exp}`,e,n)}),def(`toStrictEqual`,function(e){let n=t.flag(this,`object`),i=equals(n,e,[...r,iterableEquality,typeEquality,sparseArrayEquality,arrayBufferEquality],!0);return this.assert(i,`expected #{this} to strictly equal #{exp}`,`expected #{this} to not strictly equal #{exp}`,e,n)}),def(`toBe`,function(e){let t=this._obj,n=Object.is(t,e),i=``;return n||(equals(t,e,[...r,iterableEquality,typeEquality,sparseArrayEquality,arrayBufferEquality],!0)?i=`toStrictEqual`:equals(t,e,[...r,iterableEquality])&&(i=`toEqual`)),this.assert(n,generateToBeMessage(i),`expected #{this} not to be #{exp} // Object.is equality`,e,t)}),def(`toMatchObject`,function(e){let i=this._obj,a=equals(i,e,[...r,iterableEquality,subsetEquality]),o=t.flag(this,`negate`),{subset:s,stripped:c}=getObjectSubset(i,e,r);if(a&&o||!a&&!o){let r=t.getMessage(this,[a,`expected #{this} to match object #{exp}`,`expected #{this} to not match object #{exp}`,e,s,!1]),i=c===0?r:`${r}\n(${c} matching ${c===1?`property`:`properties`} omitted from actual)`;throw new n(i,{showDiff:!0,expected:e,actual:s})}}),def(`toMatch`,function(e){let t=this._obj;if(typeof t!=`string`)throw TypeError(`.toMatch() expects to receive a string, but got ${typeof t}`);return this.assert(typeof e==`string`?t.includes(e):t.match(e),`expected #{this} to match #{exp}`,`expected #{this} not to match #{exp}`,e,t)}),def(`toContain`,function(e){let n=this._obj;if(typeof Node<`u`&&n instanceof Node){if(!(e instanceof Node))throw TypeError(`toContain() expected a DOM node as the argument, but got ${typeof e}`);return this.assert(n.contains(e),`expected #{this} to contain element #{exp}`,`expected #{this} not to contain element #{exp}`,e,n)}if(typeof DOMTokenList<`u`&&n instanceof DOMTokenList){S(e,`class name`,[`string`]);let r=t.flag(this,`negate`)?n.value.replace(e,``).trim():`${n.value} ${e}`;return this.assert(n.contains(e),`expected "${n.value}" to contain "${e}"`,`expected "${n.value}" not to contain "${e}"`,r,n.value)}return typeof n==`string`&&typeof e==`string`?this.assert(n.includes(e),`expected #{this} to contain #{exp}`,`expected #{this} not to contain #{exp}`,e,n):(n!=null&&typeof n!=`string`&&t.flag(this,`object`,Array.from(n)),this.contain(e))}),def(`toContainEqual`,function(e){let n=t.flag(this,`object`),i=Array.from(n).findIndex(t=>equals(t,e,r));this.assert(i!==-1,`expected #{this} to deep equally contain #{exp}`,`expected #{this} to not deep equally contain #{exp}`,e)}),def(`toBeTruthy`,function(){let e=t.flag(this,`object`);this.assert(!!e,`expected #{this} to be truthy`,`expected #{this} to not be truthy`,!0,e)}),def(`toBeFalsy`,function(){let e=t.flag(this,`object`);this.assert(!e,`expected #{this} to be falsy`,`expected #{this} to not be falsy`,!1,e)}),def(`toBeGreaterThan`,function(e){let t=this._obj;return S(t,`actual`,[`number`,`bigint`]),S(e,`expected`,[`number`,`bigint`]),this.assert(t>e,`expected ${t} to be greater than ${e}`,`expected ${t} to be not greater than ${e}`,e,t,!1)}),def(`toBeGreaterThanOrEqual`,function(e){let t=this._obj;return S(t,`actual`,[`number`,`bigint`]),S(e,`expected`,[`number`,`bigint`]),this.assert(t>=e,`expected ${t} to be greater than or equal to ${e}`,`expected ${t} to be not greater than or equal to ${e}`,e,t,!1)}),def(`toBeLessThan`,function(e){let t=this._obj;return S(t,`actual`,[`number`,`bigint`]),S(e,`expected`,[`number`,`bigint`]),this.assert(t<e,`expected ${t} to be less than ${e}`,`expected ${t} to be not less than ${e}`,e,t,!1)}),def(`toBeLessThanOrEqual`,function(e){let t=this._obj;return S(t,`actual`,[`number`,`bigint`]),S(e,`expected`,[`number`,`bigint`]),this.assert(t<=e,`expected ${t} to be less than or equal to ${e}`,`expected ${t} to be not less than or equal to ${e}`,e,t,!1)}),def(`toBeNaN`,function(){let e=t.flag(this,`object`);this.assert(Number.isNaN(e),`expected #{this} to be NaN`,`expected #{this} not to be NaN`,NaN,e)}),def(`toBeUndefined`,function(){let e=t.flag(this,`object`);this.assert(e===void 0,`expected #{this} to be undefined`,`expected #{this} not to be undefined`,void 0,e)}),def(`toBeNull`,function(){let e=t.flag(this,`object`);this.assert(e===null,`expected #{this} to be null`,`expected #{this} not to be null`,null,e)}),def(`toBeNullable`,function(){let e=t.flag(this,`object`);this.assert(e==null,`expected #{this} to be nullish`,`expected #{this} not to be nullish`,null,e)}),def(`toBeDefined`,function(){let e=t.flag(this,`object`);this.assert(e!==void 0,`expected #{this} to be defined`,`expected #{this} to be undefined`,e)}),def(`toBeTypeOf`,function(e){let t=typeof this._obj,n=e===t;return this.assert(n,`expected #{this} to be type of #{exp}`,`expected #{this} not to be type of #{exp}`,e,t)}),def(`toBeInstanceOf`,function(e){return this.instanceOf(e)}),def(`toHaveLength`,function(e){return this.have.length(e)}),def(`toHaveProperty`,function(...e){Array.isArray(e[0])&&(e[0]=e[0].map(e=>String(e).replace(/([.[\]])/g,`\\$1`)).join(`.`));let n=this._obj,[i,a]=e,getValue=()=>Object.hasOwn(n,i)?{value:n[i],exists:!0}:t.getPathInfo(n,i),{value:o,exists:s}=getValue(),c=s&&(e.length===1||equals(a,o,r)),l=e.length===1?``:` with value ${t.objDisplay(a)}`;return this.assert(c,`expected #{this} to have property "${i}"${l}`,`expected #{this} to not have property "${i}"${l}`,a,s?o:void 0)}),def(`toBeCloseTo`,function(e,t=2){let n=this._obj,r=!1,i=0,a=0;return e===1/0&&n===1/0||e===-1/0&&n===-1/0?r=!0:(i=10**-t/2,a=Math.abs(n-e),r=a<i),this.assert(r,`expected #{this} to be close to #{exp}, received difference is ${a}, but expected ${i}`,`expected #{this} to not be close to #{exp}, received difference is ${a}, but expected ${i}`,e,n,!1)});function assertIsMock(e){if(!isMockFunction(e._obj))throw TypeError(`${t.inspect(e._obj)} is not a spy or a call to a spy!`)}function getSpy(e){return assertIsMock(e),e._obj}def([`toHaveBeenCalledTimes`,`toBeCalledTimes`],function(e){let t=getSpy(this),n=t.getMockName(),r=t.mock.calls.length;return this.assert(r===e,`expected "${n}" to be called #{exp} times, but got ${r} times`,`expected "${n}" to not be called #{exp} times`,e,r,!1)}),def(`toHaveBeenCalledOnce`,function(){let e=getSpy(this),t=e.getMockName(),n=e.mock.calls.length;return this.assert(n===1,`expected "${t}" to be called once, but got ${n} times`,`expected "${t}" to not be called once`,1,n,!1)}),def([`toHaveBeenCalled`,`toBeCalled`],function(){let e=getSpy(this),r=e.getMockName(),i=e.mock.calls.length,a=i>0,o=t.flag(this,`negate`),s=t.getMessage(this,[a,`expected "${r}" to be called at least once`,`expected "${r}" to not be called at all, but actually been called ${i} times`,!0,a]);if(a&&o&&(s=formatCalls(e,s)),a&&o||!a&&!o)throw new n(s)});function equalsArgumentArray(e,t){return e.length===t.length&&e.every((e,n)=>equals(e,t[n],[...r,iterableEquality]))}def([`toHaveBeenCalledWith`,`toBeCalledWith`],function(...e){let r=getSpy(this),i=r.getMockName(),a=r.mock.calls.some(t=>equalsArgumentArray(t,e)),o=t.flag(this,`negate`),s=t.getMessage(this,[a,`expected "${i}" to be called with arguments: #{exp}`,`expected "${i}" to not be called with arguments: #{exp}`,e]);if(a&&o||!a&&!o)throw new n(formatCalls(r,s,e))}),def(`toHaveBeenCalledExactlyOnceWith`,function(...e){let r=getSpy(this),i=r.getMockName(),a=r.mock.calls.length,o=r.mock.calls.some(t=>equalsArgumentArray(t,e))&&a===1,s=t.flag(this,`negate`),c=t.getMessage(this,[o,`expected "${i}" to be called once with arguments: #{exp}`,`expected "${i}" to not be called once with arguments: #{exp}`,e]);if(o&&s||!o&&!s)throw new n(formatCalls(r,c,e))}),def(`toHaveBeenNthCalledWith`,function(e,...t){let n=getSpy(this),r=n.getMockName(),i=n.mock.calls[e-1],a=n.mock.calls.length,o=e<=a;this.assert(i&&equalsArgumentArray(i,t),`expected ${m(e)} "${r}" call to have been called with #{exp}${o?``:`, but called only ${a} times`}`,`expected ${m(e)} "${r}" call to not have been called with #{exp}`,t,i,o)}),def(`toHaveBeenLastCalledWith`,function(...e){let t=getSpy(this),n=t.getMockName(),r=t.mock.calls.at(-1);this.assert(r&&equalsArgumentArray(r,e),`expected last "${n}" call to have been called with #{exp}`,`expected last "${n}" call to not have been called with #{exp}`,e,r)});function isSpyCalledBeforeAnotherSpy(e,t,n){let r=e.mock.invocationCallOrder,i=t.mock.invocationCallOrder;return r.length===0?!n:i.length!==0&&r[0]<i[0]}def([`toHaveBeenCalledBefore`],function(e,n=!0){let r=getSpy(this);if(!isMockFunction(e))throw TypeError(`${t.inspect(e)} is not a spy or a call to a spy`);this.assert(isSpyCalledBeforeAnotherSpy(r,e,n),`expected "${r.getMockName()}" to have been called before "${e.getMockName()}"`,`expected "${r.getMockName()}" to not have been called before "${e.getMockName()}"`,e,r)}),def([`toHaveBeenCalledAfter`],function(e,n=!0){let r=getSpy(this);if(!isMockFunction(e))throw TypeError(`${t.inspect(e)} is not a spy or a call to a spy`);this.assert(isSpyCalledBeforeAnotherSpy(e,r,n),`expected "${r.getMockName()}" to have been called after "${e.getMockName()}"`,`expected "${r.getMockName()}" to not have been called after "${e.getMockName()}"`,e,r)}),def([`toThrow`,`toThrowError`],function(e){if(typeof e==`string`||e===void 0||e instanceof RegExp)return this.throws(e===``?/^$/:e);let i=this._obj,a=t.flag(this,`promise`),o=t.flag(this,`negate`),s=null;if(a===`rejects`)s=i;else if(a===`resolves`&&typeof i!=`function`){if(o)return;{let e=t.flag(this,`message`)||`expected promise to throw an error, but it didn't`;throw new n(e,{showDiff:!1},t.flag(this,`ssfi`))}}else{let e=!1;try{i()}catch(t){e=!0,s=t}if(!e&&!o){let e=t.flag(this,`message`)||`expected function to throw an error, but it didn't`;throw new n(e,{showDiff:!1},t.flag(this,`ssfi`))}}if(typeof e==`function`){let t=e.name||e.prototype.constructor.name;return this.assert(s&&s instanceof e,`expected error to be instance of ${t}`,`expected error not to be instance of ${t}`,e,s)}if(isError(e)){let t=equals(s,e,[...r,iterableEquality]);return this.assert(t,`expected a thrown error to be #{exp}`,`expected a thrown error not to be #{exp}`,e,s)}if(typeof e==`object`&&`asymmetricMatch`in e&&typeof e.asymmetricMatch==`function`){let t=e;return this.assert(s&&t.asymmetricMatch(s),`expected error to match asymmetric matcher`,`expected error not to match asymmetric matcher`,t,s)}let c=equals(s,e,[...r,iterableEquality]);return this.assert(c,`expected a thrown value to equal #{exp}`,`expected a thrown value not to equal #{exp}`,e,s)}),[{name:`toHaveResolved`,condition:e=>e.mock.settledResults.length>0&&e.mock.settledResults.some(({type:e})=>e===`fulfilled`),action:`resolved`},{name:[`toHaveReturned`,`toReturn`],condition:e=>e.mock.calls.length>0&&e.mock.results.some(({type:e})=>e!==`throw`),action:`called`}].forEach(({name:e,condition:t,action:n})=>{def(e,function(){let e=getSpy(this),r=e.getMockName(),i=t(e);this.assert(i,`expected "${r}" to be successfully ${n} at least once`,`expected "${r}" to not be successfully ${n}`,i,!i,!1)})}),[{name:`toHaveResolvedTimes`,condition:(e,t)=>e.mock.settledResults.reduce((e,{type:t})=>t===`fulfilled`?++e:e,0)===t,action:`resolved`},{name:[`toHaveReturnedTimes`,`toReturnTimes`],condition:(e,t)=>e.mock.results.reduce((e,{type:t})=>t===`throw`?e:++e,0)===t,action:`called`}].forEach(({name:e,condition:t,action:n})=>{def(e,function(e){let r=getSpy(this),i=r.getMockName(),a=t(r,e);this.assert(a,`expected "${i}" to be successfully ${n} ${e} times`,`expected "${i}" to not be successfully ${n} ${e} times`,`expected resolved times: ${e}`,`received resolved times: ${a}`,!1)})}),[{name:`toHaveResolvedWith`,condition:(e,t)=>e.mock.settledResults.some(({type:e,value:n})=>e===`fulfilled`&&equals(t,n)),action:`resolve`},{name:[`toHaveReturnedWith`,`toReturnWith`],condition:(e,t)=>e.mock.results.some(({type:e,value:n})=>e===`return`&&equals(t,n)),action:`return`}].forEach(({name:e,condition:r,action:i})=>{def(e,function(e){let a=getSpy(this),o=r(a,e),s=t.flag(this,`negate`);if(o&&s||!o&&!s){let r=a.getMockName(),s=t.getMessage(this,[o,`expected "${r}" to ${i} with: #{exp} at least once`,`expected "${r}" to not ${i} with: #{exp}`,e]),c=i===`return`?a.mock.results:a.mock.settledResults;throw new n(formatReturns(a,c,s,e))}})}),[{name:`toHaveLastResolvedWith`,condition:(e,t)=>{let n=e.mock.settledResults.at(-1);return!!(n&&n.type===`fulfilled`&&equals(n.value,t))},action:`resolve`},{name:`toHaveLastReturnedWith`,condition:(e,t)=>{let n=e.mock.results.at(-1);return!!(n&&n.type===`return`&&equals(n.value,t))},action:`return`}].forEach(({name:e,condition:t,action:n})=>{def(e,function(e){let r=getSpy(this),i=(n===`return`?r.mock.results:r.mock.settledResults).at(-1),a=r.getMockName();this.assert(t(r,e),`expected last "${a}" call to ${n} #{exp}`,`expected last "${a}" call to not ${n} #{exp}`,e,i?.value)})}),[{name:`toHaveNthResolvedWith`,condition:(e,t,n)=>{let r=e.mock.settledResults[t-1];return r&&r.type===`fulfilled`&&equals(r.value,n)},action:`resolve`},{name:`toHaveNthReturnedWith`,condition:(e,t,n)=>{let r=e.mock.results[t-1];return r&&r.type===`return`&&equals(r.value,n)},action:`return`}].forEach(({name:e,condition:t,action:n})=>{def(e,function(e,r){let i=getSpy(this),a=i.getMockName(),o=(n===`return`?i.mock.results:i.mock.settledResults)[e-1],s=`${m(e)} call`;this.assert(t(i,e,r),`expected ${s} "${a}" call to ${n} #{exp}`,`expected ${s} "${a}" call to not ${n} #{exp}`,r,o?.value)})}),def(`withContext`,function(e){for(let n in e)t.flag(this,n,e[n]);return this}),t.addProperty(e.Assertion.prototype,`resolves`,function __VITEST_RESOLVES__(){let r=Error(`resolves`);t.flag(this,`promise`,`resolves`),t.flag(this,`error`,r);let i=t.flag(this,`vitest-test`),a=t.flag(this,`object`);if(t.flag(this,`poll`))throw SyntaxError(`expect.poll() is not supported in combination with .resolves`);if(typeof a?.then!=`function`)throw TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof a}'.`);let o=new Proxy(this,{get:(s,c,l)=>{let u=Reflect.get(s,c,l);return typeof u==`function`?(...e)=>{t.flag(this,`_name`,c);let o=Promise.resolve(a).then(n=>(t.flag(this,`object`,n),u.call(this,...e)),e=>{let r=new n(`promise rejected "${t.inspect(e)}" instead of resolving`,{showDiff:!1});throw r.cause=e,r}).catch(e=>{throw isError(e)&&r.stack&&(e.stack=r.stack.replace(r.message,e.message)),e});return recordAsyncExpect(i,o,createAssertionMessage(t,this,!!e.length),r,t.flag(this,`soft`))}:u instanceof e.Assertion?o:u}});return o}),t.addProperty(e.Assertion.prototype,`rejects`,function __VITEST_REJECTS__(){let r=Error(`rejects`);t.flag(this,`promise`,`rejects`),t.flag(this,`error`,r);let i=t.flag(this,`vitest-test`),a=t.flag(this,`object`),o=typeof a==`function`?a():a;if(t.flag(this,`poll`))throw SyntaxError(`expect.poll() is not supported in combination with .rejects`);if(typeof o?.then!=`function`)throw TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof o}'.`);let s=new Proxy(this,{get:(a,c,l)=>{let u=Reflect.get(a,c,l);return typeof u==`function`?(...e)=>{t.flag(this,`_name`,c);let a=Promise.resolve(o).then(e=>{throw new n(`promise resolved "${t.inspect(e)}" instead of rejecting`,{showDiff:!0,expected:Error(`rejected promise`),actual:e})},n=>(t.flag(this,`object`,n),u.call(this,...e))).catch(e=>{throw isError(e)&&r.stack&&(e.stack=r.stack.replace(r.message,e.message)),e});return recordAsyncExpect(i,a,createAssertionMessage(t,this,!!e.length),r,t.flag(this,`soft`))}:u instanceof e.Assertion?s:u}});return s})};function formatCalls(e,t,n){return e.mock.calls.length&&(t+=T.gray(`\n\nReceived:\n\n${e.mock.calls.map((t,r)=>{let i=T.bold(` ${m(r+1)} ${e.getMockName()} call:\n\n`);return n?i+=diff(n,t,{omitAnnotationLines:!0}):i+=p(t).split(`
63
- `).map(e=>` ${e}`).join(`
64
- `),i+=`
65
- `,i}).join(`
66
- `)}`)),t+=T.gray(`\n\nNumber of calls: ${T.bold(e.mock.calls.length)}\n`),t}function formatReturns(e,t,n,r){return t.length&&(n+=T.gray(`\n\nReceived:\n\n${t.map((t,n)=>{let i=T.bold(` ${m(n+1)} ${e.getMockName()} call return:\n\n`);return r?i+=diff(r,t.value,{omitAnnotationLines:!0}):i+=p(t).split(`
67
- `).map(e=>` ${e}`).join(`
68
- `),i+=`
69
- `,i}).join(`
70
- `)}`)),n+=T.gray(`\n\nNumber of calls: ${T.bold(e.mock.calls.length)}\n`),n}function getMatcherState(e,t){let n=e._obj,r=A.flag(e,`negate`),i=A.flag(e,`promise`)||``,a=A.flag(e,`message`),o={...getMatcherUtils(),diff,stringify:p,iterableEquality,subsetEquality},s=A.flag(e,`vitest-test`),c=s?.fullTestName??``;s?.type!==`test`&&(s=void 0);let l={...getState(t),currentTestName:c,customTesters:getCustomEqualityTesters(),isNot:r,utils:o,promise:i,equals,suppressedErrors:[],soft:A.flag(e,`soft`),poll:A.flag(e,`poll`),assertion:e};return Object.assign(l,{task:s}),{state:l,isNot:r,obj:n,customMessage:a}}var JestExtendError=class extends Error{constructor(e,t,n,r){super(e),this.actual=t,this.expected=n,this.__vitest_error_context__=r}};function JestExtendPlugin(e,t,n){return(r,i)=>{Object.entries(n).forEach(([n,r])=>{function __VITEST_EXTEND_ASSERTION__(...e){let{state:i,isNot:a,obj:o,customMessage:s}=getMatcherState(this,t),c=r.call(i,o,...e);if(c&&typeof c==`object`&&typeof c.then==`function`)return c.then(({pass:e,message:t,actual:r,expected:i,meta:o})=>{if(e&&a||!e&&!a)throw new JestExtendError((s?`${s}: `:``)+t(),r,i,{assertionName:n,meta:o})});let{pass:l,message:u,actual:d,expected:f,meta:p}=c;if(l&&a||!l&&!a)throw new JestExtendError((s?`${s}: `:``)+u(),d,f,{assertionName:n,meta:p})}let a=wrapAssertion(i,n,__VITEST_EXTEND_ASSERTION__);if(i.addMethod(globalThis[B].matchers,n,a),i.addMethod(e.Assertion.prototype,n,a),r.__vitest_poll_takeover__){let t=e.Assertion.prototype[n];Object.defineProperty(t,"__vitest_poll_takeover__",{value:!0})}class CustomMatcher extends AsymmetricMatcher$1{constructor(e=!1,...t){super(t,e)}asymmetricMatch(e){let{pass:n}=r.call(this.getMatcherContext(t),e,...this.sample);return this.inverse?!n:n}toString(){return`${this.inverse?`not.`:``}${n}`}getExpectedType(){return`any`}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(e=>p(e)).join(`, `)}>`}}let customMatcher=(...e)=>new CustomMatcher(!1,...e);Object.defineProperty(t,n,{configurable:!0,enumerable:!0,value:customMatcher,writable:!0}),Object.defineProperty(t.not,n,{configurable:!0,enumerable:!0,value:(...e)=>new CustomMatcher(!0,...e),writable:!0}),Object.defineProperty(globalThis[dt],n,{configurable:!0,enumerable:!0,value:customMatcher,writable:!0})})}}const JestExtend=(e,t)=>{t.addMethod(e.expect,`extend`,(t,n)=>{use(JestExtendPlugin(e,t,n))})},G=/\r?\n/;function positionToOffset(e,t,n){let r=e.split(G),i=/\r\n/.test(e)?2:1,a=0;if(t>r.length)return e.length;for(let e=0;e<t-1;e++)a+=r[e].length+i;return a+n}function offsetToLineNumber(e,t){if(t>e.length)throw Error(`offset is longer than source length! offset ${t} > length ${e.length}`);let n=e.split(G),r=/\r\n/.test(e)?2:1,i=0,a=0;for(;a<n.length;a++){let e=n[a].length+r;if(i+e>=t)break;i+=e}return a+1}var K=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};const q=Date;let yt=null;var J=class MockDate extends q{constructor(e,t,n,r,i,a,o){super();let s;switch(arguments.length){case 0:s=yt===null?new q:new q(yt.valueOf());break;case 1:s=new q(e);break;default:n=n===void 0?1:n,r||=0,i||=0,a||=0,o||=0,s=new q(e,t,n,r,i,a,o);break}return Object.setPrototypeOf(s,MockDate.prototype),s}};J.UTC=q.UTC,J.now=function(){return new J().valueOf()},J.parse=function(e){return q.parse(e)},J.toString=function(){return q.toString()};function mockDate(e){let t=new q(e.valueOf());if(Number.isNaN(t.getTime()))throw TypeError(`mockdate: The time set is an invalid date: ${e}`);globalThis.Date=J,yt=t.valueOf()}function resetDate(){globalThis.Date=q}const{get:bt}=Reflect;function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var xt={exports:{}},St;function requireNaturalCompare(){if(St)return xt.exports;St=1;
71
- /*
72
- * @version 1.4.0
73
- * @date 2015-10-26
74
- * @stability 3 - Stable
75
- * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
76
- * @license MIT License
77
- */
78
- var naturalCompare=function(e,t){var n,r,i=1,a=0,o=0,s=String.alphabet;function getCode(e,t,r){if(r){for(n=t;r=getCode(e,n),r<76&&r>65;)++n;return+e.slice(t-1,n)}return r=s&&s.indexOf(e.charAt(t)),r>-1?r+76:(r=e.charCodeAt(t)||0,r<45||r>127?r:r<46?65:r<48?r-1:r<58?r+18:r<65?r-11:r<91?r+11:r<97?r-37:r<123?r+5:r-63)}if((e+=``)!=(t+=``)){for(;i;)if(r=getCode(e,a++),i=getCode(t,o++),r<76&&i<76&&r>66&&i>66&&(r=getCode(e,a,a),i=getCode(t,o,a=n),o=n),r!=i)return r<i?-1:1}return 0};try{xt.exports=naturalCompare}catch{String.naturalCompare=naturalCompare}return xt.exports}var Ct=getDefaultExportFromCjs(requireNaturalCompare());const serialize$1=(e,t,n,r,i,a)=>{let o=e.getMockName(),s=o===`vi.fn()`?``:` ${o}`,c=``;if(e.mock.calls.length!==0){let o=n+t.indent;c=` {${t.spacingOuter}${o}"calls": ${a(e.mock.calls,t,o,r,i)}${t.min?`, `:`,`}${t.spacingOuter}${o}"results": ${a(e.mock.results,t,o,r,i)}${t.min?``:`,`}${t.spacingOuter}${n}}`}return`[MockFunction${s}]${c}`},test=e=>e&&!!e._isMockFunction,wt={serialize:serialize$1,test},{DOMCollection:Tt,DOMElement:Et,Immutable:Dt,ReactElement:Ot,ReactTestComponent:kt,AsymmetricMatcher:At}=w;let jt=[kt,Ot,Et,Tt,Dt,At,wt];function addSerializer(e){jt=[e].concat(jt)}function getSerializers(){return jt}function testNameToKey(e,t){return`${e} ${t}`}function keyToTestName(e){if(!/ \d+$/.test(e))throw Error(`Snapshot keys must end with a number.`);return e.replace(/ \d+$/,``)}function getSnapshotData(e,t){let n=t.updateSnapshot,r=Object.create(null),i=``,a=!1;if(e!=null)try{i=e,Function(`exports`,i)(r)}catch{}return(n===`all`||n===`new`)&&i&&(a=!0),{data:r,dirty:a}}function addExtraLineBreaks(e){return e.includes(`
79
- `)?`\n${e}\n`:e}function removeExtraLineBreaks(e){return e.length>2&&e[0]===`
80
- `&&e.endsWith(`
81
- `)?e.slice(1,-1):e}function serialize(e,t=2,n={}){return normalizeNewlines(c(e,{escapeRegex:!0,indent:t,plugins:getSerializers(),printFunctionName:!1,...n}))}function escapeBacktickString(e){return e.replace(/`|\\|\$\{/g,`\\$&`)}function printBacktickString(e){return`\`${escapeBacktickString(e)}\``}function normalizeNewlines(e){return e.replace(/\r\n|\r/g,`
82
- `)}async function saveSnapshotFile(e,t,n){let r=Object.keys(t).sort(Ct).map(e=>`exports[${printBacktickString(e)}] = ${printBacktickString(normalizeNewlines(t[e]))};`),i=`${e.getHeader()}\n\n${r.join(`
83
-
84
- `)}\n`,a=await e.readSnapshotFile(n);(a==null||a!==i)&&await e.saveSnapshotFile(n,i)}function deepMergeArray(e=[],t=[]){let n=Array.from(e);return t.forEach((t,r)=>{let i=n[r];Array.isArray(e[r])?n[r]=deepMergeArray(e[r],t):b(i)?n[r]=deepMergeSnapshot(e[r],t):n[r]=t}),n}function deepMergeSnapshot(e,t){if(b(e)&&b(t)){let n={...e};return Object.keys(t).forEach(r=>{b(t[r])&&!t[r].$$typeof?r in e?n[r]=deepMergeSnapshot(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Array.isArray(t[r])?n[r]=deepMergeArray(e[r],t[r]):Object.assign(n,{[r]:t[r]})}),n}else if(Array.isArray(e)&&Array.isArray(t))return deepMergeArray(e,t);return e}var DefaultMap=class extends Map{constructor(e,t){super(t),this.defaultFn=e}get(e){return this.has(e)||this.set(e,this.defaultFn(e)),super.get(e)}},CounterMap=class extends DefaultMap{constructor(){super(()=>0)}_total;valueOf(){return this._total=this.total()}increment(e){this._total!==void 0&&this._total++,this.set(e,this.get(e)+1)}total(){if(this._total!==void 0)return this._total;let e=0;for(let t of this.values())e+=t;return e}};function memo(e){let t=new Map;return n=>(t.has(n)||t.set(n,e(n)),t.get(n))}async function saveInlineSnapshots(e,t){let n=(await import(`../magic-string.es-oADFB1hu.js`)).default,r=new Set(t.map(e=>e.file));await Promise.all(Array.from(r).map(async r=>{let i=t.filter(e=>e.file===r),a=await e.readSnapshotFile(r);if(a==null)throw Error(`cannot read ${r} when saving inline snapshot`);let o=new n(a);for(let e of i)replaceInlineSnap(a,o,positionToOffset(a,e.line,e.column),e.snapshot,e.assertionName);let s=o.toString();s!==a&&await e.saveSnapshotFile(r,s)}))}const Mt=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}const Nt=memo(e=>{let t=Mt.source.replace(`toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot`,escapeRegExp(e));return new RegExp(t)});function replaceObjectSnap(e,t,n,r,i){let a=e.slice(n),o=(i?Nt(i):Mt).exec(a);if(!o)return!1;a=a.slice(o.index);let s=ee(a);if(s===null)return!1;s+=n+o.index;let c=getObjectShapeEndIndex(e,n+o.index+o[0].length),l=`, ${prepareSnapString(r,e,n)}`;return c===s?t.appendLeft(s,l):t.overwrite(c,s,l),!0}function getObjectShapeEndIndex(e,t){let n=1,r=0;for(;n!==r&&t<e.length;){let i=e[t++];i===`{`?n++:i===`}`&&r++}return t}function prepareSnapString(e,t,n){let r=offsetToLineNumber(t,n),i=t.split(G)[r-1].match(/^\s*/)[0]||``,a=i.includes(` `)?`${i}\t`:`${i} `,o=e.trim().replace(/\\/g,`\\\\`).split(/\n/g);return o.length<=1?`\`${o.join(`
85
- `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}\``:`\`\n${o.map(e=>e?a+e:``).join(`
86
- `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}\n${i}\``}const Pt=[`toMatchInlineSnapshot`,`toThrowErrorMatchingInlineSnapshot`];function getCodeStartingAtIndex(e,t,n){for(let r of n){let n=t-r.length;if(n>=0&&e.slice(n,t)===r)return{code:e.slice(n),index:n}}return{code:e.slice(t),index:t}}const Ft=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*[\w$]*(['"`)])/,It=memo(e=>{let t=Ft.source.replace(`toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot`,escapeRegExp(e));return new RegExp(t)});function replaceInlineSnap(e,t,n,r,i){let{code:a,index:o}=getCodeStartingAtIndex(e,n,i?[i]:Pt),s=(i?It(i):Ft).exec(a),c=(i?new RegExp(escapeRegExp(i)):/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/).exec(a);if(!s||s.index!==c?.index)return replaceObjectSnap(e,t,o,r,i);let l=s[1],u=o+s.index+s[0].length,d=prepareSnapString(r,e,o);if(l===`)`)return t.appendRight(u-1,d),!0;let f=RegExp(`(?:^|[^\\\\])${l}`).exec(e.slice(u));if(!f)return!1;let p=u+f.index+f[0].length;return t.overwrite(u-1,p,d),!0}const Lt=/^([^\S\n]*)\S/m;function stripSnapshotIndentation(e){let t=e.match(Lt);if(!t||!t[1])return e;let n=t[1],r=e.split(/\n/g);if(r.length<=2||r[0].trim()!==``||r.at(-1)?.trim()!==``)return e;for(let t=1;t<r.length-1;t++)if(r[t]!==``){if(r[t].indexOf(n)!==0)return e;r[t]=r[t].substring(n.length)}return r[r.length-1]=``,e=r.join(`
87
- `),e}async function saveRawSnapshots(e,t){await Promise.all(t.map(async t=>{t.readonly||await e.saveSnapshotFile(t.file,t.snapshot)}))}function isSameStackPosition(e,t){return e.file===t.file&&e.column===t.column&&e.line===t.line}var Rt=class SnapshotState{_counters=new CounterMap;_dirty;_updateSnapshot;_snapshotData;_initialData;_inlineSnapshots;_inlineSnapshotStacks;_testIdToKeys=new DefaultMap(()=>[]);_rawSnapshots;_uncheckedKeys;_snapshotFormat;_environment;_fileExists;expand;_added=new CounterMap;_matched=new CounterMap;_unmatched=new CounterMap;_updated=new CounterMap;get added(){return this._added}set added(e){this._added._total=e}get matched(){return this._matched}set matched(e){this._matched._total=e}get unmatched(){return this._unmatched}set unmatched(e){this._unmatched._total=e}get updated(){return this._updated}set updated(e){this._updated._total=e}constructor(e,t,n,r){this.testFilePath=e,this.snapshotPath=t;let{data:i,dirty:a}=getSnapshotData(n,r);this._fileExists=n!=null,this._initialData={...i},this._snapshotData={...i},this._dirty=a,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=r.expand||!1,this._updateSnapshot=r.updateSnapshot,this._snapshotFormat={printBasicPrototype:!1,escapeString:!1,maxOutputLength:2**27,...r.snapshotFormat},this._environment=r.snapshotEnvironment}static async create(e,t){let n=await t.snapshotEnvironment.resolvePath(e),r=await t.snapshotEnvironment.readSnapshotFile(n);return new SnapshotState(e,n,r,t)}get snapshotUpdateState(){return this._updateSnapshot}get environment(){return this._environment}markSnapshotsAsCheckedForTest(e){this._uncheckedKeys.forEach(t=>{/ \d+$| > /.test(t.slice(e.length))&&this._uncheckedKeys.delete(t)})}clearTest(e){this._inlineSnapshots=this._inlineSnapshots.filter(t=>t.testId!==e),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter(t=>t.testId!==e);for(let t of this._testIdToKeys.get(e)){let e=keyToTestName(t),n=this._counters.get(e);n>0&&((t in this._snapshotData||t in this._initialData)&&(this._snapshotData[t]=this._initialData[t]),this._counters.set(e,n-1))}this._testIdToKeys.delete(e),this.added.delete(e),this.updated.delete(e),this.matched.delete(e),this.unmatched.delete(e)}_inferInlineSnapshotStack(e){let t=e.findIndex(e=>e.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(t!==-1)return e[t+3];let n=e.findIndex(e=>e.method.match(/__VITEST_POLL_CHAIN__/));if(n!==-1)return e[n+1];for(let t=0;t<e.length;t++){let n=e[t].method.match(/__INLINE_SNAPSHOT_OFFSET_(\d+)__/);if(n)return e[t+Number(n[1])]??null}let r=e.findIndex(e=>e.method.includes(`__VITEST_EXTEND_ASSERTION__`));if(r!==-1)return e[r+3]??null;let i=e.findIndex(e=>e.method.includes(`__INLINE_SNAPSHOT__`));return i===-1?null:e[i+2]}_addSnapshot(e,t,n){this._dirty=!0,n.stack?this._inlineSnapshots.push({...n.stack,snapshot:t,testId:n.testId,assertionName:n.assertionName}):n.rawSnapshot?this._rawSnapshots.push({...n.rawSnapshot,snapshot:t}):this._snapshotData[e]=t}_resolveKey(e,t,n){this._counters.increment(t);let r=this._counters.get(t);return n||=testNameToKey(t,r),this._testIdToKeys.get(e).push(n),{key:n,count:r}}_resolveInlineStack(e){let{testId:t,snapshot:n,assertionName:r,error:i}=e,a=x(i,{ignoreStackEntries:[]}),o=this._inferInlineSnapshotStack(a);if(!o){let e=a.map(e=>` ${e.file}:${e.line}:${e.column}${e.method?` (${e.method})`:``}`).join(`
88
- `);throw Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.\n${e}`)}let s=this.environment.processStackTrace?.(o)||o;s.column--;let c=this._inlineSnapshotStacks.filter(e=>isSameStackPosition(e,s));if(c.length>0){this._inlineSnapshots=this._inlineSnapshots.filter(e=>!isSameStackPosition(e,s));let e=c.find(e=>e.snapshot!==n);if(e)throw Object.assign(Error(`${r} with different snapshots cannot be called at the same location`),{actual:n,expected:e.snapshot})}return this._inlineSnapshotStacks.push({...s,testId:t,snapshot:n}),s}_reconcile(e){return e.hasSnapshot&&this._updateSnapshot===`all`||(!e.hasSnapshot||!e.snapshotIsPersisted)&&(this._updateSnapshot===`new`||this._updateSnapshot===`all`)?(this._updateSnapshot===`all`?e.pass?this.matched.increment(e.testId):(e.hasSnapshot?this.updated.increment(e.testId):this.added.increment(e.testId),this._addSnapshot(e.key,e.addValue,{stack:e.stack,testId:e.testId,rawSnapshot:e.rawSnapshot,assertionName:e.assertionName})):(this._addSnapshot(e.key,e.addValue,{stack:e.stack,testId:e.testId,rawSnapshot:e.rawSnapshot,assertionName:e.assertionName}),this.added.increment(e.testId)),{actual:``,count:e.count,expected:``,key:e.key,pass:!0}):e.pass?(this.matched.increment(e.testId),{actual:``,count:e.count,expected:``,key:e.key,pass:!0}):(this.unmatched.increment(e.testId),{actual:e.actualDisplay,count:e.count,expected:e.expectedDisplay,key:e.key,pass:!1})}async save(){let e=Object.keys(this._snapshotData).length,t=this._inlineSnapshots.length,n=this._rawSnapshots.length,r=!e&&!t&&!n,i={deleted:!1,saved:!1};return(this._dirty||this._uncheckedKeys.size)&&!r?(e&&(await saveSnapshotFile(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=!0),t&&await saveInlineSnapshots(this._environment,this._inlineSnapshots),n&&await saveRawSnapshots(this._environment,this._rawSnapshots),i.saved=!0):!e&&this._fileExists&&(this._updateSnapshot===`all`&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=!1),i.deleted=!0),i}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){this._updateSnapshot===`all`&&this._uncheckedKeys.size&&(this._dirty=!0,this._uncheckedKeys.forEach(e=>delete this._snapshotData[e]),this._uncheckedKeys.clear())}probeExpectedSnapshot(e){let t=this._counters.get(e.testName)+1,n=testNameToKey(e.testName,t);return{key:n,count:t,data:e?.isInline?e.inlineSnapshot:this._snapshotData[n],markAsChecked:()=>{this._counters.increment(e.testName),this._testIdToKeys.get(e.testId).push(n),this._uncheckedKeys.delete(n)}}}match({testId:e,testName:t,received:n,key:r,inlineSnapshot:i,isInline:a,error:o,rawSnapshot:s,assertionName:c}){let l=this._resolveKey(e,t,r);r=l.key;let u=l.count;a&&this._snapshotData[r]!==void 0||this._uncheckedKeys.delete(r);let d=s&&typeof n==`string`?n:serialize(n,void 0,this._snapshotFormat);s||(d=addExtraLineBreaks(d)),s&&s.content&&s.content.match(/\r\n/)&&!d.match(/\r\n/)&&(s.content=normalizeNewlines(s.content));let f=a?i:s?s.content:this._snapshotData[r],p=s?f:f?.trim(),m=p===(s?d:d.trim()),h=f!==void 0,g=a||this._fileExists||s&&s.content!=null;m&&!a&&!s&&(this._snapshotData[r]=d);let _=a?this._resolveInlineStack({testId:e,snapshot:d,assertionName:c||`toMatchInlineSnapshot`,error:o||Error(`snapshot`)}):void 0;return this._reconcile({testId:e,key:r,count:u,pass:m,hasSnapshot:h,snapshotIsPersisted:!!g,addValue:d,actualDisplay:s?d:removeExtraLineBreaks(d),expectedDisplay:p===void 0?void 0:s?p:removeExtraLineBreaks(p),stack:_,rawSnapshot:s,assertionName:c})}processDomainSnapshot({testId:e,received:t,expectedSnapshot:n,matchResult:r,isInline:i,error:a,assertionName:o}){let s=i?this._resolveInlineStack({testId:e,snapshot:t,assertionName:o,error:a||Error(`STACK_TRACE_ERROR`)}):void 0,c=r?.resolved??t,l=r?.expected??n.data;return this._reconcile({testId:e,key:n.key,count:n.count,pass:r?.pass??!1,hasSnapshot:!!n.data,snapshotIsPersisted:i?!0:this._fileExists,addValue:c,actualDisplay:removeExtraLineBreaks(c),expectedDisplay:l===void 0?void 0:removeExtraLineBreaks(l),stack:s,assertionName:o})}async pack(){let e={filepath:this.testFilePath,added:0,fileDeleted:!1,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},t=this.getUncheckedCount(),n=this.getUncheckedKeys();t&&this.removeUncheckedKeys();let r=await this.save();return e.fileDeleted=r.deleted,e.added=this.added.total(),e.matched=this.matched.total(),e.unmatched=this.unmatched.total(),e.updated=this.updated.total(),e.unchecked=r.deleted?0:t,e.uncheckedKeys=Array.from(n),e}};function createMismatchError(e,t,n,r){let i=Error(e);return Object.defineProperty(i,"actual",{value:n,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,"expected",{value:r,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,"diffOptions",{value:{expand:t}}),i}var SnapshotClient=class{snapshotStateMap=new Map;constructor(e={}){this.options=e}async setup(e,t){this.snapshotStateMap.has(e)||this.snapshotStateMap.set(e,await Rt.create(e,t))}async finish(e){let t=await this.getSnapshotState(e).pack();return this.snapshotStateMap.delete(e),t}skipTest(e,t){this.getSnapshotState(e).markSnapshotsAsCheckedForTest(t)}clearTest(e,t){this.getSnapshotState(e).clearTest(t)}getSnapshotState(e){let t=this.snapshotStateMap.get(e);if(!t)throw Error(`The snapshot state for '${e}' is not found. Did you call 'SnapshotClient.setup()'?`);return t}match(e){let{filepath:t,name:n,testId:r=n,message:i,isInline:a=!1,properties:o,inlineSnapshot:s,error:c,errorMessage:l,rawSnapshot:u,assertionName:d}=e,{received:f}=e;if(!t)throw Error(`Snapshot cannot be used outside of test`);let p=this.getSnapshotState(t),m=[n,...i?[i]:[]].join(` > `),h=p.probeExpectedSnapshot({testName:m,testId:r,isInline:a,inlineSnapshot:s});if(typeof o==`object`){if(typeof f!=`object`||!f)throw h.markAsChecked(),Error(`Received value must be an object when the matcher has properties`);let e;try{e=this.options.isEqual?.(f,o)??!1}catch(e){throw h.markAsChecked(),e}if(!e)return h.markAsChecked(),{pass:!1,message:()=>l||`Snapshot properties mismatched`,actual:f,expected:o};f=deepMergeSnapshot(f,o)}let{actual:g,expected:_,key:v,pass:y}=p.match({testId:r,testName:m,received:f,isInline:a,error:c,inlineSnapshot:s,rawSnapshot:u,assertionName:d});return{pass:y,message:()=>`Snapshot \`${v||`unknown`}\` mismatched`,actual:u?g:g?.trim(),expected:u?_:_?.trim()}}assert(e){let t=this.match(e);if(!t.pass){let n=this.getSnapshotState(e.filepath);throw createMismatchError(t.message(),n.expand,t.actual,t.expected)}}matchDomain(e){let{received:t,filepath:n,name:r,testId:i=r,message:a,adapter:o,isInline:s=!1,inlineSnapshot:c,error:l}=e;if(!n)throw Error(`Snapshot cannot be used outside of test`);let u=o.capture(t),d=o.render(u),f=this.getSnapshotState(n),p=[r,...a?[a]:[]].join(` > `),m=f.probeExpectedSnapshot({testName:p,testId:i,isInline:s,inlineSnapshot:c});m.markAsChecked();let h=m.data?o.match(u,o.parseExpected(m.data)):void 0,{actual:g,expected:_,key:v,pass:y}=f.processDomainSnapshot({testId:i,received:d,expectedSnapshot:m,matchResult:h,isInline:s,error:l,assertionName:e.assertionName});return{pass:y,message:()=>`Snapshot \`${v}\` mismatched`,actual:g?.trim(),expected:_?.trim()}}async pollMatchDomain(e){let{poll:t,filepath:n,name:r,testId:i=r,message:a,adapter:o,isInline:s=!1,inlineSnapshot:c,error:l,timeout:u=1e3,interval:d=50}=e;if(!n)throw Error(`Snapshot cannot be used outside of test`);let f=this.getSnapshotState(n),p=[r,...a?[a]:[]].join(` > `),m=f.probeExpectedSnapshot({testName:p,testId:i,isInline:s,inlineSnapshot:c}),h=m.data&&f.snapshotUpdateState!==`all`?o.parseExpected(m.data):void 0,g=await getStableSnapshot({adapter:o,poll:t,interval:d,timedOut:u>0?new Promise(e=>setTimeout(e,u)):void 0,match:h?e=>o.match(e,h).pass:void 0});if(m.markAsChecked(),!g?.rendered){if(g?.lastPollError)throw g.lastPollError;return{pass:!1,message:()=>`poll() did not produce a stable snapshot within the timeout`}}let _=m.data?o.match(g.captured,o.parseExpected(m.data)):void 0,{actual:v,expected:y,key:b,pass:x}=f.processDomainSnapshot({testId:i,received:g.rendered,expectedSnapshot:m,matchResult:_,isInline:s,error:l,assertionName:e.assertionName});return{pass:x,message:()=>`Snapshot \`${b}\` mismatched`,actual:v?.trim(),expected:y?.trim()}}async assertRaw(e){if(!e.rawSnapshot)throw Error(`Raw snapshot is required`);let{filepath:t,rawSnapshot:n}=e;if(n.content==null){if(!t)throw Error(`Snapshot cannot be used outside of test`);let r=this.getSnapshotState(t);e.filepath||=t,n.file=await r.environment.resolveRawPath(t,n.file),n.content=await r.environment.readSnapshotFile(n.file)??void 0}return this.assert(e)}clear(){this.snapshotStateMap.clear()}};async function getStableSnapshot({adapter:e,poll:t,interval:n,timedOut:r,match:i}){let a,o,s;for(;;){try{let n=await raceWith(Promise.resolve(t()),r);if(!n.ok)break;let o=e.capture(n.value),c=e.render(o);if(a!==void 0&&c===a){if(s={captured:o,rendered:c},!i||i(o))break}else a=c,s=void 0}catch(e){a=void 0,s=void 0,o=e}if(!(await raceWith(new Promise(e=>setTimeout(e,n)),r)).ok)break}return{...s,lastPollError:o}}function raceWith(e,t){let n=e.then(e=>({ok:!0,value:e}));return t?Promise.race([n,t.then(e=>({ok:!1,value:e}))]):n}var Y={},zt,Bt;function requireGlobal(){return Bt?zt:(Bt=1,zt=K===void 0?typeof window<`u`?window:self:K,zt)}var Vt,Ht;function requireThrowsOnProto(){if(Ht)return Vt;Ht=1;let e;try{({}).__proto__,e=!1}catch{e=!0}return Vt=e,Vt}var Ut,Wt;function requireCopyPrototypeMethods(){if(Wt)return Ut;Wt=1;var e=Function.call,t=requireThrowsOnProto(),n=[`size`,`caller`,`callee`,`arguments`];return t&&n.push(`__proto__`),Ut=function copyPrototypeMethods(t){return Object.getOwnPropertyNames(t).reduce(function(r,i){return n.includes(i)||typeof t[i]!=`function`||(r[i]=e.bind(t[i])),r},Object.create(null))},Ut}var Gt,Kt;function requireArray(){return Kt?Gt:(Kt=1,Gt=requireCopyPrototypeMethods()(Array.prototype),Gt)}var qt,Jt;function requireCalledInOrder(){if(Jt)return qt;Jt=1;var e=requireArray().every;function hasCallsLeft(e,t){return e[t.id]===void 0&&(e[t.id]=0),e[t.id]<t.callCount}function checkAdjacentCalls(e,t,n,r){var i=!0;return n!==r.length-1&&(i=t.calledBefore(r[n+1])),hasCallsLeft(e,t)&&i?(e[t.id]+=1,!0):!1}function calledInOrder(t){return e(arguments.length>1?arguments:t,checkAdjacentCalls.bind(null,{}))}return qt=calledInOrder,qt}var Yt,Xt;function requireClassName(){if(Xt)return Yt;Xt=1;function className(e){return e.constructor&&e.constructor.name||null}return Yt=className,Yt}var Zt={},Qt;function requireDeprecated(){return Qt?Zt:(Qt=1,(function(e){e.wrap=function(t,n){var wrapped=function(){return e.printWarning(n),t.apply(this,arguments)};return t.prototype&&(wrapped.prototype=t.prototype),wrapped},e.defaultMsg=function(e,t){return`${e}.${t} is deprecated and will be removed from the public API in a future version of ${e}.`},e.printWarning=function(e){typeof process==`object`&&process.emitWarning?process.emitWarning(e):console.info?console.info(e):console.log(e)}})(Zt),Zt)}var $t,en;function requireEvery(){return en?$t:(en=1,$t=function every(e,t){var n=!0;try{e.forEach(function(){if(!t.apply(this,arguments))throw Error()})}catch{n=!1}return n},$t)}var tn,nn;function requireFunctionName(){return nn?tn:(nn=1,tn=function functionName(e){if(!e)return``;try{return e.displayName||e.name||(String(e).match(/function ([^\s(]+)/)||[])[1]}catch{return``}},tn)}var rn,on;function requireOrderByFirstCall(){if(on)return rn;on=1;var e=requireArray().sort,t=requireArray().slice;function comparator(e,t){var n=e.getCall(0),r=t.getCall(0);return(n&&n.callId||-1)<(r&&r.callId||-1)?-1:1}function orderByFirstCall(n){return e(t(n),comparator)}return rn=orderByFirstCall,rn}var sn,cn;function require_function(){return cn?sn:(cn=1,sn=requireCopyPrototypeMethods()(Function.prototype),sn)}var ln,un;function requireMap(){return un?ln:(un=1,ln=requireCopyPrototypeMethods()(Map.prototype),ln)}var dn,pn;function requireObject(){return pn?dn:(pn=1,dn=requireCopyPrototypeMethods()(Object.prototype),dn)}var X,mn;function requireSet(){return mn?X:(mn=1,X=requireCopyPrototypeMethods()(Set.prototype),X)}var hn,gn;function requireString(){return gn?hn:(gn=1,hn=requireCopyPrototypeMethods()(String.prototype),hn)}var _n,vn;function requirePrototypes(){return vn?_n:(vn=1,_n={array:requireArray(),function:require_function(),map:requireMap(),object:requireObject(),set:requireSet(),string:requireString()},_n)}var Z={exports:{}},yn=Z.exports,bn;function requireTypeDetect(){return bn?Z.exports:(bn=1,(function(e,t){(function(t,n){e.exports=n()})(yn,(function(){var e=typeof Promise==`function`,t=typeof self==`object`?self:K,n=typeof Symbol<`u`,r=typeof Map<`u`,i=typeof Set<`u`,a=typeof WeakMap<`u`,o=typeof WeakSet<`u`,s=typeof DataView<`u`,c=n&&Symbol.iterator!==void 0,l=n&&Symbol.toStringTag!==void 0,u=i&&typeof Set.prototype.entries==`function`,d=r&&typeof Map.prototype.entries==`function`,f=u&&Object.getPrototypeOf(new Set().entries()),p=d&&Object.getPrototypeOf(new Map().entries()),m=c&&typeof Array.prototype[Symbol.iterator]==`function`,h=m&&Object.getPrototypeOf([][Symbol.iterator]()),g=c&&typeof String.prototype[Symbol.iterator]==`function`,_=g&&Object.getPrototypeOf(``[Symbol.iterator]()),v=8,y=-1;function typeDetect(n){var c=typeof n;if(c!==`object`)return c;if(n===null)return`null`;if(n===t)return`global`;if(Array.isArray(n)&&(l===!1||!(Symbol.toStringTag in n)))return`Array`;if(typeof window==`object`&&window!==null){if(typeof window.location==`object`&&n===window.location)return`Location`;if(typeof window.document==`object`&&n===window.document)return`Document`;if(typeof window.navigator==`object`){if(typeof window.navigator.mimeTypes==`object`&&n===window.navigator.mimeTypes)return`MimeTypeArray`;if(typeof window.navigator.plugins==`object`&&n===window.navigator.plugins)return`PluginArray`}if((typeof window.HTMLElement==`function`||typeof window.HTMLElement==`object`)&&n instanceof window.HTMLElement){if(n.tagName===`BLOCKQUOTE`)return`HTMLQuoteElement`;if(n.tagName===`TD`)return`HTMLTableDataCellElement`;if(n.tagName===`TH`)return`HTMLTableHeaderCellElement`}}var u=l&&n[Symbol.toStringTag];if(typeof u==`string`)return u;var d=Object.getPrototypeOf(n);return d===RegExp.prototype?`RegExp`:d===Date.prototype?`Date`:e&&d===Promise.prototype?`Promise`:i&&d===Set.prototype?`Set`:r&&d===Map.prototype?`Map`:o&&d===WeakSet.prototype?`WeakSet`:a&&d===WeakMap.prototype?`WeakMap`:s&&d===DataView.prototype?`DataView`:r&&d===p?`Map Iterator`:i&&d===f?`Set Iterator`:m&&d===h?`Array Iterator`:g&&d===_?`String Iterator`:d===null?`Object`:Object.prototype.toString.call(n).slice(v,y)}return typeDetect}))})(Z),Z.exports)}var xn,Sn;function requireTypeOf(){if(Sn)return xn;Sn=1;var e=requireTypeDetect();return xn=function typeOf(t){return e(t).toLowerCase()},xn}var Cn,wn;function requireValueToString(){if(wn)return Cn;wn=1;function valueToString(e){return e&&e.toString?e.toString():String(e)}return Cn=valueToString,Cn}var Tn,En;function requireLib(){return En?Tn:(En=1,Tn={global:requireGlobal(),calledInOrder:requireCalledInOrder(),className:requireClassName(),deprecated:requireDeprecated(),every:requireEvery(),functionName:requireFunctionName(),orderByFirstCall:requireOrderByFirstCall(),prototypes:requirePrototypes(),typeOf:requireTypeOf(),valueToString:requireValueToString()},Tn)}var Dn;function requireFakeTimersSrc(){if(Dn)return Y;Dn=1;let e=requireLib().global,t,n;if(typeof __vitest_required__<`u`){try{t=__vitest_required__.timers}catch{}try{n=__vitest_required__.timersPromises}catch{}}function withGlobal(r){let i=2**31-1,a=0xe8d4a51000,NOOP=function(){},NOOP_ARRAY=function(){return[]},o={},s,c=!1;r.setTimeout&&(o.setTimeout=!0,s=r.setTimeout(NOOP,0),c=typeof s==`object`),o.clearTimeout=!!r.clearTimeout,o.setInterval=!!r.setInterval,o.clearInterval=!!r.clearInterval,o.hrtime=r.process&&typeof r.process.hrtime==`function`,o.hrtimeBigint=o.hrtime&&typeof r.process.hrtime.bigint==`function`,o.nextTick=r.process&&typeof r.process.nextTick==`function`;let l=r.process&&r.__vitest_required__&&r.__vitest_required__.util.promisify;o.performance=r.performance&&typeof r.performance.now==`function`;let u=r.Performance&&(typeof r.Performance).match(/^(function|object)$/),d=r.performance&&r.performance.constructor&&r.performance.constructor.prototype;o.queueMicrotask=r.hasOwnProperty(`queueMicrotask`),o.requestAnimationFrame=r.requestAnimationFrame&&typeof r.requestAnimationFrame==`function`,o.cancelAnimationFrame=r.cancelAnimationFrame&&typeof r.cancelAnimationFrame==`function`,o.requestIdleCallback=r.requestIdleCallback&&typeof r.requestIdleCallback==`function`,o.cancelIdleCallbackPresent=r.cancelIdleCallback&&typeof r.cancelIdleCallback==`function`,o.setImmediate=r.setImmediate&&typeof r.setImmediate==`function`,o.clearImmediate=r.clearImmediate&&typeof r.clearImmediate==`function`,o.Intl=r.Intl&&typeof r.Intl==`object`,r.clearTimeout&&r.clearTimeout(s);let f=r.Date,p=o.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(r.Intl)):void 0,m=a;if(f===void 0)throw Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");o.Date=!0;class FakePerformanceEntry{constructor(e,t,n,r){this.name=e,this.entryType=t,this.startTime=n,this.duration=r}toJSON(){return JSON.stringify({...this})}}function isNumberFinite(e){return Number.isFinite?Number.isFinite(e):isFinite(e)}let h=!1;function checkIsNearInfiniteLimit(e,t){e.loopLimit&&t===e.loopLimit-1&&(h=!0)}function resetIsNearInfiniteLimit(){h=!1}function parseTime(e){if(!e)return 0;let t=e.split(`:`),n=t.length,r=n,i=0,a;if(n>3||!/^(\d\d:){0,2}\d\d?$/.test(e))throw Error(`tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits`);for(;r--;){if(a=parseInt(t[r],10),a>=60)throw Error(`Invalid time ${e}`);i+=a*60**(n-r-1)}return i*1e3}function nanoRemainder(e){let t=1e6,n=e*1e6%t,r=n<0?n+t:n;return Math.floor(r)}function getEpoch(e){if(!e)return 0;if(typeof e.getTime==`function`)return e.getTime();if(typeof e==`number`)return e;throw TypeError(`now should be milliseconds since UNIX epoch`)}function inRange(e,t,n){return n&&n.callAt>=e&&n.callAt<=t}function getInfiniteLoopError(e,t){let n=Error(`Aborting after running ${e.loopLimit} timers, assuming an infinite loop!`);if(!t.error)return n;let r=/target\.*[<|(|[].*?[>|\]|)]\s*/,i=new RegExp(String(Object.keys(e).join(`|`)));c&&(i=RegExp(`\\s+at (Object\\.)?(?:${Object.keys(e).join(`|`)})\\s+`));let a=-1;t.error.stack.split(`
89
- `).some(function(e,t){return e.match(r)?(a=t,!0):e.match(i)?(a=t,!1):a>=0});let o=`${n}\n${t.type||`Microtask`} - ${t.func.name||`anonymous`}\n${t.error.stack.split(`
90
- `).slice(a+1).join(`
91
- `)}`;try{Object.defineProperty(n,"stack",{value:o})}catch{}return n}function createDate(){class ClockDate extends f{constructor(e,t,n,r,i,a,o){arguments.length===0?super(ClockDate.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:f,enumerable:!1})}static[Symbol.hasInstance](e){return e instanceof f}}return ClockDate.isFake=!0,f.now&&(ClockDate.now=function now(){return ClockDate.clock.now}),f.toSource&&(ClockDate.toSource=function toSource(){return f.toSource()}),ClockDate.toString=function toString(){return f.toString()},new Proxy(ClockDate,{apply(){if(this instanceof ClockDate)throw TypeError("A Proxy should only capture `new` calls with the `construct` handler. This is not supposed to be possible, so check the logic.");return new f(ClockDate.clock.now).toString()}})}function createIntl(){let e={};return Object.getOwnPropertyNames(p).forEach(t=>e[t]=p[t]),e.DateTimeFormat=function(...t){let n=new p.DateTimeFormat(...t),r={};return[`formatRange`,`formatRangeToParts`,`resolvedOptions`].forEach(e=>{r[e]=n[e].bind(n)}),[`format`,`formatToParts`].forEach(t=>{r[t]=function(r){return n[t](r||e.clock.now)}}),r},e.DateTimeFormat.prototype=Object.create(p.DateTimeFormat.prototype),e.DateTimeFormat.supportedLocalesOf=p.DateTimeFormat.supportedLocalesOf,e}function enqueueJob(e,t){e.jobs||=[],e.jobs.push(t)}function runJobs(e){if(e.jobs){for(let t=0;t<e.jobs.length;t++){let n=e.jobs[t];if(n.func.apply(null,n.args),checkIsNearInfiniteLimit(e,t),e.loopLimit&&t>e.loopLimit)throw getInfiniteLoopError(e,n)}resetIsNearInfiniteLimit(),e.jobs=[]}}function addTimer(e,t){if(t.func===void 0)throw Error(`Callback must be provided to timer calls`);if(c&&typeof t.func!=`function`)throw TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${t.func} of type ${typeof t.func}`);if(h&&(t.error=Error()),t.type=t.immediate?`Immediate`:`Timeout`,t.hasOwnProperty(`delay`)&&(typeof t.delay!=`number`&&(t.delay=parseInt(t.delay,10)),isNumberFinite(t.delay)||(t.delay=0),t.delay=t.delay>i?1:t.delay,t.delay=Math.max(0,t.delay)),t.hasOwnProperty(`interval`)&&(t.type=`Interval`,t.interval=t.interval>i?1:t.interval),t.hasOwnProperty(`animation`)&&(t.type=`AnimationFrame`,t.animation=!0),t.hasOwnProperty(`idleCallback`)&&(t.type=`IdleCallback`,t.idleCallback=!0),e.timers||={},t.id=m++,t.createdAt=e.now,t.callAt=e.now+(parseInt(t.delay)||+!!e.duringTick),e.timers[t.id]=t,c){let n={refed:!0,ref:function(){return this.refed=!0,n},unref:function(){return this.refed=!1,n},hasRef:function(){return this.refed},refresh:function(){return t.callAt=e.now+(parseInt(t.delay)||+!!e.duringTick),e.timers[t.id]=t,n},[Symbol.toPrimitive]:function(){return t.id}};return n}return t.id}function compareTimers(e,t){if(e.callAt<t.callAt)return-1;if(e.callAt>t.callAt)return 1;if(e.immediate&&!t.immediate)return-1;if(!e.immediate&&t.immediate)return 1;if(e.createdAt<t.createdAt)return-1;if(e.createdAt>t.createdAt)return 1;if(e.id<t.id)return-1;if(e.id>t.id)return 1}function firstTimerInRange(e,t,n){let r=e.timers,i=null,a,o;for(a in r)r.hasOwnProperty(a)&&(o=inRange(t,n,r[a]),o&&(!i||compareTimers(i,r[a])===1)&&(i=r[a]));return i}function firstTimer(e){let t=e.timers,n=null,r;for(r in t)t.hasOwnProperty(r)&&(!n||compareTimers(n,t[r])===1)&&(n=t[r]);return n}function lastTimer(e){let t=e.timers,n=null,r;for(r in t)t.hasOwnProperty(r)&&(!n||compareTimers(n,t[r])===-1)&&(n=t[r]);return n}function callTimer(e,t){if(typeof t.interval==`number`?e.timers[t.id].callAt+=t.interval:delete e.timers[t.id],typeof t.func==`function`)t.func.apply(null,t.args);else{let e=eval;(function(){e(t.func)})()}}function getClearHandler(e){return e===`IdleCallback`||e===`AnimationFrame`?`cancel${e}`:`clear${e}`}function getScheduleHandler(e){return e===`IdleCallback`||e===`AnimationFrame`?`request${e}`:`set${e}`}function createWarnOnce(){let e=0;return function(t){!e++&&console.warn(t)}}let g=createWarnOnce();function clearTimer(e,t,n){if(!t)return;e.timers||={};let r=Number(t);if(Number.isNaN(r)||r<a){let r=getClearHandler(n);if(e.shouldClearNativeTimers===!0){let n=e[`_${r}`];return typeof n==`function`?n(t):void 0}g(`FakeTimers: ${r} was invoked to clear a native timer instead of one created by this library.
92
- To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`)}if(e.timers.hasOwnProperty(r)){let t=e.timers[r];if(t.type===n||t.type===`Timeout`&&n===`Interval`||t.type===`Interval`&&n===`Timeout`)delete e.timers[r];else{let e=getClearHandler(n),r=getScheduleHandler(t.type);throw Error(`Cannot clear timer: timer created with ${r}() but cleared with ${e}()`)}}}function uninstall(e){let i,a,o;for(a=0,o=e.methods.length;a<o;a++){if(i=e.methods[a],i===`hrtime`&&r.process)r.process.hrtime=e._hrtime;else if(i===`nextTick`&&r.process)r.process.nextTick=e._nextTick;else if(i===`performance`){let t=Object.getOwnPropertyDescriptor(e,`_${i}`);t&&t.get&&!t.set?Object.defineProperty(r,i,t):t.configurable&&(r[i]=e[`_${i}`])}else if(r[i]&&r[i].hadOwnProperty)r[i]=e[`_${i}`];else try{delete r[i]}catch{}if(e.timersModuleMethods!==void 0)for(let n=0;n<e.timersModuleMethods.length;n++){let r=e.timersModuleMethods[n];t[r.methodName]=r.original}if(e.timersPromisesModuleMethods!==void 0)for(let t=0;t<e.timersPromisesModuleMethods.length;t++){let r=e.timersPromisesModuleMethods[t];n[r.methodName]=r.original}}e.setTickMode(`manual`),e.methods=[];for(let[t,n]of e.abortListenerMap.entries())n.removeEventListener(`abort`,t),e.abortListenerMap.delete(t);return e.timers?Object.keys(e.timers).map(function mapper(t){return e.timers[t]}):[]}function hijackMethod(e,t,n){if(n[t].hadOwnProperty=Object.prototype.hasOwnProperty.call(e,t),n[`_${t}`]=e[t],t===`Date`)e[t]=n[t];else if(t===`Intl`)e[t]=n[t];else if(t===`performance`){let r=Object.getOwnPropertyDescriptor(e,t);if(r&&r.get&&!r.set){Object.defineProperty(n,`_${t}`,r);let i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i)}else e[t]=n[t]}else e[t]=function(){return n[t].apply(n,arguments)},Object.defineProperties(e[t],Object.getOwnPropertyDescriptors(n[t]));e[t].clock=n}function doIntervalTick(e,t){e.tick(t)}let _={setTimeout:r.setTimeout,clearTimeout:r.clearTimeout,setInterval:r.setInterval,clearInterval:r.clearInterval,Date:r.Date};o.setImmediate&&(_.setImmediate=r.setImmediate),o.clearImmediate&&(_.clearImmediate=r.clearImmediate),o.hrtime&&(_.hrtime=r.process.hrtime),o.nextTick&&(_.nextTick=r.process.nextTick),o.performance&&(_.performance=r.performance),o.requestAnimationFrame&&(_.requestAnimationFrame=r.requestAnimationFrame),o.queueMicrotask&&(_.queueMicrotask=r.queueMicrotask),o.cancelAnimationFrame&&(_.cancelAnimationFrame=r.cancelAnimationFrame),o.requestIdleCallback&&(_.requestIdleCallback=r.requestIdleCallback),o.cancelIdleCallback&&(_.cancelIdleCallback=r.cancelIdleCallback),o.Intl&&(_.Intl=p);let v=r.setImmediate||r.setTimeout,y=r.clearInterval,b=r.setInterval;function createClock(e,t){e=Math.floor(getEpoch(e)),t||=1e3;let n=0,i=[0,0],a={now:e,Date:createDate(),loopLimit:t,tickMode:{mode:`manual`,counter:0,delta:void 0}};a.Date.clock=a;function getTimeToNextFrame(){return 16-(a.now-e)%16}function hrtime(t){let r=a.now-i[0]-e,o=Math.floor(r/1e3),s=(r-o*1e3)*1e6+n-i[1];if(Array.isArray(t)){if(t[1]>1e9)throw TypeError(`Number of nanoseconds can't exceed a billion`);let e=t[0],n=s-t[1],r=o-e;return n<0&&(n+=1e9,--r),[r,n]}return[o,s]}function fakePerformanceNow(){let e=hrtime();return e[0]*1e3+e[1]/1e6}o.hrtimeBigint&&(hrtime.bigint=function(){let e=hrtime();return BigInt(e[0])*BigInt(1e9)+BigInt(e[1])}),o.Intl&&(a.Intl=createIntl(),a.Intl.clock=a),a.setTickMode=function(e){let{mode:t,delta:n}=e,{mode:r,delta:i}=a.tickMode;(t!==r||n!==i)&&(r===`interval`&&y(a.attachedInterval),a.tickMode={counter:a.tickMode.counter+1,mode:t,delta:n},t===`nextAsync`?advanceUntilModeChanges():t===`interval`&&createIntervalTick(a,n||20))};async function advanceUntilModeChanges(){async function newMacrotask(){let e=new MessageChannel;await new Promise(t=>{e.port1.onmessage=()=>{t(),e.port1.close()},e.port2.postMessage(void 0)}),e.port1.close(),e.port2.close(),await new Promise(e=>{v(e)})}let{counter:e}=a.tickMode;for(;a.tickMode.counter===e;){if(await newMacrotask(),a.tickMode.counter!==e)return;a.next()}}function pauseAutoTickUntilFinished(e){return a.tickMode.mode===`nextAsync`?(a.setTickMode({mode:`manual`}),e.finally(()=>{a.setTickMode({mode:`nextAsync`})})):e}a.requestIdleCallback=function requestIdleCallback(e,t){let n=0;a.countTimers()>0&&(n=50);let r=addTimer(a,{func:e,args:Array.prototype.slice.call(arguments,2),delay:t===void 0?n:Math.min(t,n),idleCallback:!0});return Number(r)},a.cancelIdleCallback=function cancelIdleCallback(e){return clearTimer(a,e,`IdleCallback`)},a.setTimeout=function setTimeout(e,t){return addTimer(a,{func:e,args:Array.prototype.slice.call(arguments,2),delay:t})},r.Promise!==void 0&&l&&(a.setTimeout[l.custom]=function promisifiedSetTimeout(e,t){return new r.Promise(function setTimeoutExecutor(n){addTimer(a,{func:n,args:[t],delay:e})})}),a.clearTimeout=function clearTimeout(e){return clearTimer(a,e,`Timeout`)},a.nextTick=function nextTick(e){return enqueueJob(a,{func:e,args:Array.prototype.slice.call(arguments,1),error:h?Error():null})},a.queueMicrotask=function queueMicrotask(e){return a.nextTick(e)},a.setInterval=function setInterval(e,t){return t=parseInt(t,10),addTimer(a,{func:e,args:Array.prototype.slice.call(arguments,2),delay:t,interval:t})},a.clearInterval=function clearInterval(e){return clearTimer(a,e,`Interval`)},o.setImmediate&&(a.setImmediate=function setImmediate(e){return addTimer(a,{func:e,args:Array.prototype.slice.call(arguments,1),immediate:!0})},r.Promise!==void 0&&l&&(a.setImmediate[l.custom]=function promisifiedSetImmediate(e){return new r.Promise(function setImmediateExecutor(t){addTimer(a,{func:t,args:[e],immediate:!0})})}),a.clearImmediate=function clearImmediate(e){return clearTimer(a,e,`Immediate`)}),a.countTimers=function countTimers(){return Object.keys(a.timers||{}).length+(a.jobs||[]).length},a.requestAnimationFrame=function requestAnimationFrame(e){let t=addTimer(a,{func:e,delay:getTimeToNextFrame(),get args(){return[fakePerformanceNow()]},animation:!0});return Number(t)},a.cancelAnimationFrame=function cancelAnimationFrame(e){return clearTimer(a,e,`AnimationFrame`)},a.runMicrotasks=function runMicrotasks(){runJobs(a)};function doTick(e,t,r,i){let o=typeof e==`number`?e:parseTime(e),s=Math.floor(o),c=nanoRemainder(o),l=n+c,u=a.now+s;if(o<0)throw TypeError(`Negative ticks are not supported`);l>=1e6&&(u+=1,l-=1e6),n=l;let d=a.now,f=a.now,p,m,h,g,compensationCheck,postTimerCall;a.duringTick=!0,h=a.now,runJobs(a),h!==a.now&&(d+=a.now-h,u+=a.now-h);function doTickInner(){for(p=firstTimerInRange(a,d,u);p&&d<=u;){if(a.timers[p.id]){d=p.callAt,a.now=p.callAt,h=a.now;try{runJobs(a),callTimer(a,p)}catch(e){m||=e}if(t){v(g);return}compensationCheck()}postTimerCall()}if(h=a.now,runJobs(a),h!==a.now&&(d+=a.now-h,u+=a.now-h),a.duringTick=!1,p=firstTimerInRange(a,d,u),p)try{a.tick(u-a.now)}catch(e){m||=e}else a.now=u,n=l;if(m)throw m;if(t)r(a.now);else return a.now}return g=t&&function(){try{compensationCheck(),postTimerCall(),doTickInner()}catch(e){i(e)}},compensationCheck=function(){h!==a.now&&(d+=a.now-h,u+=a.now-h,f+=a.now-h)},postTimerCall=function(){p=firstTimerInRange(a,f,u),f=d},doTickInner()}return a.tick=function tick(e){return doTick(e,!1)},r.Promise!==void 0&&(a.tickAsync=function tickAsync(e){return pauseAutoTickUntilFinished(new r.Promise(function(t,n){v(function(){try{doTick(e,!0,t,n)}catch(e){n(e)}})}))}),a.next=function next(){runJobs(a);let e=firstTimer(a);if(!e)return a.now;a.duringTick=!0;try{return a.now=e.callAt,callTimer(a,e),runJobs(a),a.now}finally{a.duringTick=!1}},r.Promise!==void 0&&(a.nextAsync=function nextAsync(){return pauseAutoTickUntilFinished(new r.Promise(function(e,t){v(function(){try{let n=firstTimer(a);if(!n){e(a.now);return}let r;a.duringTick=!0,a.now=n.callAt;try{callTimer(a,n)}catch(e){r=e}a.duringTick=!1,v(function(){r?t(r):e(a.now)})}catch(e){t(e)}})}))}),a.runAll=function runAll(){let e,t;for(runJobs(a),t=0;t<a.loopLimit;t++){if(!a.timers||(e=Object.keys(a.timers).length,e===0))return resetIsNearInfiniteLimit(),a.now;a.next(),checkIsNearInfiniteLimit(a,t)}let n=firstTimer(a);throw getInfiniteLoopError(a,n)},a.runToFrame=function runToFrame(){return a.tick(getTimeToNextFrame())},r.Promise!==void 0&&(a.runAllAsync=function runAllAsync(){return pauseAutoTickUntilFinished(new r.Promise(function(e,t){let n=0;function doRun(){v(function(){try{runJobs(a);let r;if(n<a.loopLimit){if(!a.timers){resetIsNearInfiniteLimit(),e(a.now);return}if(r=Object.keys(a.timers).length,r===0){resetIsNearInfiniteLimit(),e(a.now);return}a.next(),n++,doRun(),checkIsNearInfiniteLimit(a,n);return}let i=firstTimer(a);t(getInfiniteLoopError(a,i))}catch(e){t(e)}})}doRun()}))}),a.runToLast=function runToLast(){let e=lastTimer(a);return e?a.tick(e.callAt-a.now):(runJobs(a),a.now)},r.Promise!==void 0&&(a.runToLastAsync=function runToLastAsync(){return pauseAutoTickUntilFinished(new r.Promise(function(e,t){v(function(){try{let t=lastTimer(a);t||(runJobs(a),e(a.now)),e(a.tickAsync(t.callAt-a.now))}catch(e){t(e)}})}))}),a.reset=function reset(){n=0,a.timers={},a.jobs=[],a.now=e},a.setSystemTime=function setSystemTime(e){let t=getEpoch(e),r=t-a.now,o,s;for(o in i[0]+=r,i[1]+=n,a.now=t,n=0,a.timers)a.timers.hasOwnProperty(o)&&(s=a.timers[o],s.createdAt+=r,s.callAt+=r)},a.jump=function jump(e){let t=typeof e==`number`?e:parseTime(e),n=Math.floor(t);for(let e of Object.values(a.timers))a.now+n>e.callAt&&(e.callAt=a.now+n);a.tick(n)},o.performance&&(a.performance=Object.create(null),a.performance.now=fakePerformanceNow),o.hrtime&&(a.hrtime=hrtime),a}function createIntervalTick(e,t){let n=doIntervalTick.bind(null,e,t);e.attachedInterval=b(n,t)}function install(i){if(arguments.length>1||i instanceof Date||Array.isArray(i)||typeof i==`number`)throw TypeError(`FakeTimers.install called with ${String(i)} install requires an object parameter`);if(r.Date.isFake===!0)throw TypeError(`Can't install fake timers twice on the same global object.`);if(i=i===void 0?{}:i,i.shouldAdvanceTime=i.shouldAdvanceTime||!1,i.advanceTimeDelta=i.advanceTimeDelta||20,i.shouldClearNativeTimers=i.shouldClearNativeTimers||!1,i.target)throw TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function handleMissingTimer(e){if(!i.ignoreMissingTimers)throw ReferenceError(`non-existent timers and/or objects cannot be faked: '${e}'`)}let a,s,c=createClock(i.now,i.loopLimit);if(c.shouldClearNativeTimers=i.shouldClearNativeTimers,c.uninstall=function(){return uninstall(c)},c.abortListenerMap=new Map,c.methods=i.toFake||[],c.methods.length===0&&(c.methods=Object.keys(_)),i.shouldAdvanceTime===!0&&c.setTickMode({mode:`interval`,delta:i.advanceTimeDelta}),c.methods.includes(`performance`)){let e=(()=>{if(d)return r.performance.constructor.prototype;if(u)return r.Performance.prototype})();if(e)Object.getOwnPropertyNames(e).forEach(function(e){e!==`now`&&(c.performance[e]=e.indexOf(`getEntries`)===0?NOOP_ARRAY:NOOP)}),c.performance.mark=e=>new FakePerformanceEntry(e,`mark`,0,0),c.performance.measure=e=>new FakePerformanceEntry(e,`measure`,0,100),c.performance.timeOrigin=getEpoch(i.now);else if((i.toFake||[]).includes(`performance`))return handleMissingTimer(`performance`)}for(r===e&&t&&(c.timersModuleMethods=[]),r===e&&n&&(c.timersPromisesModuleMethods=[]),a=0,s=c.methods.length;a<s;a++){let e=c.methods[a];if(!o[e]){handleMissingTimer(e);continue}if(e===`hrtime`?r.process&&typeof r.process.hrtime==`function`&&hijackMethod(r.process,e,c):e===`nextTick`?r.process&&typeof r.process.nextTick==`function`&&hijackMethod(r.process,e,c):hijackMethod(r,e,c),c.timersModuleMethods!==void 0&&t[e]){let n=t[e];c.timersModuleMethods.push({methodName:e,original:n}),t[e]=r[e]}c.timersPromisesModuleMethods!==void 0&&(e===`setTimeout`?(c.timersPromisesModuleMethods.push({methodName:`setTimeout`,original:n.setTimeout}),n.setTimeout=(e,t,n={})=>new Promise((r,i)=>{let abort=()=>{n.signal.removeEventListener(`abort`,abort),c.abortListenerMap.delete(abort),c.clearTimeout(a),i(n.signal.reason)},a=c.setTimeout(()=>{n.signal&&(n.signal.removeEventListener(`abort`,abort),c.abortListenerMap.delete(abort)),r(t)},e);n.signal&&(n.signal.aborted?abort():(n.signal.addEventListener(`abort`,abort),c.abortListenerMap.set(abort,n.signal)))})):e===`setImmediate`?(c.timersPromisesModuleMethods.push({methodName:`setImmediate`,original:n.setImmediate}),n.setImmediate=(e,t={})=>new Promise((n,r)=>{let abort=()=>{t.signal.removeEventListener(`abort`,abort),c.abortListenerMap.delete(abort),c.clearImmediate(i),r(t.signal.reason)},i=c.setImmediate(()=>{t.signal&&(t.signal.removeEventListener(`abort`,abort),c.abortListenerMap.delete(abort)),n(e)});t.signal&&(t.signal.aborted?abort():(t.signal.addEventListener(`abort`,abort),c.abortListenerMap.set(abort,t.signal)))})):e===`setInterval`&&(c.timersPromisesModuleMethods.push({methodName:`setInterval`,original:n.setInterval}),n.setInterval=(e,t,n={})=>({[Symbol.asyncIterator]:()=>{let createResolvable=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},r=!1,i=!1,a,o=0,s=[],l=c.setInterval(()=>{s.length>0?s.shift().resolve():o++},e),abort=()=>{n.signal.removeEventListener(`abort`,abort),c.abortListenerMap.delete(abort),c.clearInterval(l),r=!0;for(let e of s)e.resolve()};return n.signal&&(n.signal.aborted?r=!0:(n.signal.addEventListener(`abort`,abort),c.abortListenerMap.set(abort,n.signal))),{next:async()=>{if(n.signal?.aborted&&!i)throw i=!0,n.signal.reason;if(r)return{done:!0,value:void 0};if(o>0)return o--,{done:!1,value:t};let e=createResolvable();if(s.push(e),await e,a&&s.length===0&&a.resolve(),n.signal?.aborted&&!i)throw i=!0,n.signal.reason;return r?{done:!0,value:void 0}:{done:!1,value:t}},return:async()=>r?{done:!0,value:void 0}:(s.length>0&&(a=createResolvable(),await a),c.clearInterval(l),r=!0,n.signal&&(n.signal.removeEventListener(`abort`,abort),c.abortListenerMap.delete(abort)),{done:!0,value:void 0})}}})))}return c}return{timers:_,createClock,install,withGlobal}}let r=withGlobal(e);return Y.timers=r.timers,Y.createClock=r.createClock,Y.install=r.install,Y.withGlobal=withGlobal,Y}var On=requireFakeTimersSrc(),FakeTimers=class{_global;_clock;_fakingTime;_fakingDate;_fakeTimers;_userConfig;_now=q.now;constructor({global:e,config:t}){this._userConfig=t,this._fakingDate=null,this._fakingTime=!1,this._fakeTimers=On.withGlobal(e),this._global=e}clearAllTimers(){this._fakingTime&&this._clock.reset()}dispose(){this.useRealTimers()}runAllTimers(){this._checkFakeTimers()&&this._clock.runAll()}async runAllTimersAsync(){this._checkFakeTimers()&&await this._clock.runAllAsync()}runOnlyPendingTimers(){this._checkFakeTimers()&&this._clock.runToLast()}async runOnlyPendingTimersAsync(){this._checkFakeTimers()&&await this._clock.runToLastAsync()}advanceTimersToNextTimer(e=1){if(this._checkFakeTimers())for(let t=e;t>0&&(this._clock.next(),this._clock.tick(0),this._clock.countTimers()!==0);t--);}async advanceTimersToNextTimerAsync(e=1){if(this._checkFakeTimers())for(let t=e;t>0&&(await this._clock.nextAsync(),this._clock.tick(0),this._clock.countTimers()!==0);t--);}advanceTimersByTime(e){this._checkFakeTimers()&&this._clock.tick(e)}async advanceTimersByTimeAsync(e){this._checkFakeTimers()&&await this._clock.tickAsync(e)}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame()}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks()}useRealTimers(){this._fakingDate&&=(resetDate(),null),this._fakingTime&&=(this._clock.uninstall(),!1)}useFakeTimers(){let e=this._fakingDate||Date.now();this._fakingDate&&=(resetDate(),null),this._fakingTime&&this._clock.uninstall();let t=Object.keys(this._fakeTimers.timers).filter(e=>e!==`nextTick`&&e!==`queueMicrotask`);if(this._userConfig?.toFake?.includes(`nextTick`)&&isChildProcess())throw Error(`process.nextTick cannot be mocked inside child_process`);this._clock=this._fakeTimers.install({now:e,...this._userConfig,toFake:this._userConfig?.toFake||t,ignoreMissingTimers:!0}),this._fakingTime=!0}reset(){if(this._checkFakeTimers()){let{now:e}=this._clock;this._clock.reset(),this._clock.setSystemTime(e)}}setSystemTime(e){let t=e===void 0||e instanceof Date?e:new Date(e);this._fakingTime?this._clock.setSystemTime(t):(this._fakingDate=t??new Date(this.getRealSystemTime()),mockDate(this._fakingDate))}getMockedSystemTime(){return this._fakingTime?new Date(this._clock.now):this._fakingDate}getRealSystemTime(){return this._now()}getTimerCount(){return this._checkFakeTimers()?this._clock.countTimers():0}setTimerTickMode(e,t){if(this._checkFakeTimers())if(e===`manual`)this._clock.setTickMode({mode:`manual`});else if(e===`nextTimerAsync`)this._clock.setTickMode({mode:`nextAsync`});else if(e===`interval`)this._clock.setTickMode({mode:`interval`,delta:t});else throw Error(`Invalid tick mode: ${e}`)}configure(e){this._userConfig=e}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw Error("A function to advance timers was called but the timers APIs are not mocked. Call `vi.useFakeTimers()` in the test file first.");return this._fakingTime}};function copyStackTrace$1(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}function waitFor(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:i,clearInterval:a}=y(),{interval:o=50,timeout:s=1e3}=typeof t==`number`?{timeout:t}:t,c=Error(`STACK_TRACE_ERROR`);return new Promise((t,l)=>{let u,d=`idle`,f,p,onResolve=e=>{f&&i(f),p&&a(p),t(e)},handleTimeout=()=>{p&&a(p);let e=u;e||=copyStackTrace$1(Error(`Timed out in waitFor!`),c),l(e)},checkCallback=()=>{if(Q.isFakeTimers()&&Q.advanceTimersByTime(o),d!==`pending`)try{let t=e();if(typeof t==`object`&&t&&typeof t.then==`function`){let e=t;d=`pending`,e.then(e=>{d=`resolved`,onResolve(e)},e=>{d=`rejected`,u=e})}else return onResolve(t),!0}catch(e){u=e}};checkCallback()!==!0&&(f=n(handleTimeout,s),p=r(checkCallback,o))})}function waitUntil(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:i,clearInterval:a}=y(),{interval:o=50,timeout:s=1e3}=typeof t==`number`?{timeout:t}:t,c=Error(`STACK_TRACE_ERROR`);return new Promise((t,l)=>{let u=`idle`,d,f,onReject=e=>{f&&a(f),e||=copyStackTrace$1(Error(`Timed out in waitUntil!`),c),l(e)},onResolve=e=>{if(e)return d&&i(d),f&&a(f),t(e),!0},checkCallback=()=>{if(Q.isFakeTimers()&&Q.advanceTimersByTime(o),u!==`pending`)try{let t=e();if(typeof t==`object`&&t&&typeof t.then==`function`){let e=t;u=`pending`,e.then(e=>{u=`resolved`,onResolve(e)},e=>{u=`rejected`,onReject(e)})}else return onResolve(t)}catch(e){onReject(e)}};checkCallback()!==!0&&(d=n(onReject,s),f=r(checkCallback,o))})}function createVitest(){let e=null,state=()=>getWorkerState(),t,timers=()=>t||=new FakeTimers({global:globalThis,config:state().config.fakeTimers}),n=new Map,r=new Map,i=[`PROD`,`DEV`,`SSR`],a={useFakeTimers(e){if(isChildProcess()&&(e?.toFake?.includes(`nextTick`)||state().config?.fakeTimers?.toFake?.includes(`nextTick`)))throw Error(`vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.`);return e?timers().configure({...state().config.fakeTimers,...e}):timers().configure(state().config.fakeTimers),timers().useFakeTimers(),a},isFakeTimers(){return timers().isFakeTimers()},useRealTimers(){return timers().useRealTimers(),a},runOnlyPendingTimers(){return timers().runOnlyPendingTimers(),a},async runOnlyPendingTimersAsync(){return await timers().runOnlyPendingTimersAsync(),a},runAllTimers(){return timers().runAllTimers(),a},async runAllTimersAsync(){return await timers().runAllTimersAsync(),a},runAllTicks(){return timers().runAllTicks(),a},advanceTimersByTime(e){return timers().advanceTimersByTime(e),a},async advanceTimersByTimeAsync(e){return await timers().advanceTimersByTimeAsync(e),a},advanceTimersToNextTimer(){return timers().advanceTimersToNextTimer(),a},async advanceTimersToNextTimerAsync(){return await timers().advanceTimersToNextTimerAsync(),a},advanceTimersToNextFrame(){return timers().advanceTimersToNextFrame(),a},getTimerCount(){return timers().getTimerCount()},setSystemTime(e){return timers().setSystemTime(e),a},getMockedSystemTime(){return timers().getMockedSystemTime()},getRealSystemTime(){return timers().getRealSystemTime()},clearAllTimers(){return timers().clearAllTimers(),a},setTimerTickMode(e,t){return timers().setTimerTickMode(e,t),a},spyOn,fn,waitFor,waitUntil,defineHelper:e=>function __VITEST_HELPER__(...t){let n=e.apply(this,t);return n&&typeof n==`object`&&typeof n.then==`function`?(async function __VITEST_HELPER__(){return await n})():n},hoisted(e){return S(e,`"vi.hoisted" factory`,[`function`]),e()},mock(e,t){if(typeof e!=`string`)throw TypeError(`vi.mock() expects a string path, but received a ${typeof e}`);let n=getImporter(`mock`);_mocker().queueMock(e,n,typeof t==`function`?()=>t(()=>_mocker().importActual(e,n,_mocker().getMockContext().callstack)):t)},unmock(e){if(typeof e!=`string`)throw TypeError(`vi.unmock() expects a string path, but received a ${typeof e}`);_mocker().queueUnmock(e,getImporter(`unmock`))},doMock(e,t){if(typeof e!=`string`)throw TypeError(`vi.doMock() expects a string path, but received a ${typeof e}`);let n=getImporter(`doMock`);_mocker().queueMock(e,n,typeof t==`function`?()=>t(()=>_mocker().importActual(e,n,_mocker().getMockContext().callstack)):t);let r={};return Symbol.dispose&&(r[Symbol.dispose]=()=>{_mocker().queueUnmock(e,n)}),r},doUnmock(e){if(typeof e!=`string`)throw TypeError(`vi.doUnmock() expects a string path, but received a ${typeof e}`);let t=getImporter(`doUnmock`);_mocker().queueUnmock(e,t)},async importActual(e){let t=getImporter(`importActual`);return _mocker().importActual(e,t,_mocker().getMockContext().callstack)},async importMock(e){let t=getImporter(`importMock`);return _mocker().importMock(e,t)},mockObject(e,t){return _mocker().mockObject({value:e},void 0,t?.spy?`autospy`:`automock`).value},mocked(e,t={}){return e},isMockFunction(e){return isMockFunction(e)},clearAllMocks(){return clearAllMocks(),a},resetAllMocks(){return resetAllMocks(),a},restoreAllMocks(){return restoreAllMocks(),a},stubGlobal(e,t){return n.has(e)||n.set(e,Object.getOwnPropertyDescriptor(globalThis,e)),Object.defineProperty(globalThis,e,{value:t,writable:!0,configurable:!0,enumerable:!0}),a},stubEnv(e,t){let n=state().metaEnv;return r.has(e)||r.set(e,n[e]),i.includes(e)?n[e]=t?`1`:``:t===void 0?delete n[e]:n[e]=String(t),a},unstubAllGlobals(){return n.forEach((e,t)=>{e?Object.defineProperty(globalThis,t,e):Reflect.deleteProperty(globalThis,t)}),n.clear(),a},unstubAllEnvs(){let e=state().metaEnv;return r.forEach((t,n)=>{t===void 0?delete e[n]:e[n]=t}),r.clear(),a},resetModules(){return resetModules(state().evaluatedModules),a},async dynamicImportSettled(){return waitForImportsToResolve()},setConfig(t){e||={...state().config},Object.assign(state().config,t)},resetConfig(){e&&Object.assign(state().config,e)}};return a}const Q=createVitest();function _mocker(){return typeof __vitest_mocker__<`u`?__vitest_mocker__:new Proxy({},{get(e,t){throw Error(`Vitest mocker was not initialized in this environment. vi.${String(t)}() is forbidden.`)}})}function getImporter(e){let t=u({stackTraceLimit:5}).split(`
93
- `);return h(t[t.findLastIndex(t=>t.includes(` at Object.${e}`)||t.includes(`${e}@`)||t.includes(` at ${e} (`))+1])?.file||``}const kn=[`matchSnapshot`,`toMatchSnapshot`,`toMatchInlineSnapshot`,`toThrowErrorMatchingSnapshot`,`toThrowErrorMatchingInlineSnapshot`,`throws`,`Throw`,`throw`,`toThrow`,`toThrowError`];function throwWithCause(e,t){throw e.cause??=Error(`Matcher did not succeed in time.`),copyStackTrace(e,t)}function createExpectPoll(e){return function poll(t,n={}){let r=getWorkerState().config.expect?.poll??{},{interval:i=r.interval??50,timeout:a=r.timeout??1e3,message:o}=n,s=e(null,o).withContext({poll:!0});t=t.bind(s),A.flag(s,`_poll.fn`,t),A.flag(s,`_poll.timeout`,a),A.flag(s,`_poll.interval`,i);let c=A.flag(s,`vitest-test`);if(!c)throw Error(`expect.poll() must be called inside a test`);let u=new Proxy(s,{get(e,n,r){let o=Reflect.get(e,n,r);if(typeof o!=`function`)return o instanceof F?u:o;if(n===`assert`)return o;if(typeof n==`string`&&kn.includes(n))throw SyntaxError(`expect.poll() is not supported in combination with .${n}(). Use vi.waitFor() if your assertion condition is unstable.`);return function __VITEST_POLL_CHAIN__(...e){let r=Error(`STACK_TRACE_ERROR`),promise=async()=>{A.flag(s,`_name`,n),A.flag(s,`error`,r);let c=A.flag(s,`_poll.onSettled`);if(Object.getOwnPropertyDescriptor(o,`__vitest_poll_takeover__`)?.value)try{let t=await o.call(s,...e);return await c?.({assertion:s,status:`pass`}),t}catch(e){await c?.({assertion:s,status:`fail`}),throwWithCause(e,r)}let{setTimeout:u,clearTimeout:d}=y(),f=`fn`,p=!1,m=u(()=>{p=!0},a);try{for(;;){let n=p;n&&A.flag(s,`_isLastPollAttempt`,!0);try{f=`fn`;let n=await t();A.flag(s,`object`,n),f=`assertion`;let r=await o.call(s,...e);return await c?.({assertion:s,status:`pass`}),r}catch(e){(n||f===`assertion`&&A.flag(s,`_poll.assert_once`))&&(await c?.({assertion:s,status:`fail`}),throwWithCause(e,r)),await l(i,u),Q.isFakeTimers()&&Q.advanceTimersByTime(i)}}}finally{d(m)}},u=!1;c.onFinished??=[],c.onFinished.push(()=>{if(!u){let e=A.flag(s,`negate`)?`not.`:``,t=`expect.${A.flag(s,`_poll.element`)?`element(locator)`:`poll(assertion)`}.${e}${String(n)}()`;throw copyStackTrace(Error(`${t} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:\n\nawait ${t}\n`),r)}});let d;return{then(e,t){return u=!0,(d||=promise()).then(e,t)},catch(e){return u=!0,(d||=promise()).catch(e)},finally(e){return u=!0,(d||=promise()).finally(e)},[Symbol.toStringTag]:`Promise`}}}});return u}}function copyStackTrace(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}let An;function getSnapshotClient(){return An||=new SnapshotClient({isEqual:(e,t)=>equals(e,t,[iterableEquality,subsetEquality])}),An}function getError(e,t){if(typeof e!=`function`){if(!t)throw Error(`expected must be a function, received ${typeof e}`);return e}try{e()}catch(e){return e}throw Error(`snapshot function didn't throw`)}function getTestNames(e){return{filepath:e.file.filepath,name:v(e).slice(1).join(` > `),testId:e.id}}function getAssertionName(e){let t=A.flag(e,`_name`);if(!t)throw Error(`Assertion name is not set. This is a bug in Vitest. Please, open a new issue with reproduction.`);return t}function getTest(e){let t=A.flag(e,`vitest-test`);if(!t)throw Error(`'${getAssertionName(e)}' cannot be used without test context`);return t}function validateAssertion(e){if(A.flag(e,`negate`))throw Error(`${getAssertionName(e)} cannot be used with "not"`)}const SnapshotPlugin=(e,t)=>{for(let n of[`matchSnapshot`,`toMatchSnapshot`])t.addMethod(e.Assertion.prototype,n,wrapAssertion(t,n,function(n,r){return assertMatchResult(toMatchSnapshotImpl({assertion:this,received:t.flag(this,`object`),...normalizeArguments(n,r)}),e.util.flag(this,`message`))}));t.addMethod(e.Assertion.prototype,`toMatchFileSnapshot`,function(n,r){t.flag(this,`_name`,`toMatchFileSnapshot`),validateAssertion(this);let i=toMatchFileSnapshotImpl({assertion:this,received:t.flag(this,`object`),filepath:n,hint:r}).then(t=>assertMatchResult(t,e.util.flag(this,`message`)));return recordAsyncExpect(getTest(this),i,createAssertionMessage(t,this,!0),Error(`resolves`),t.flag(this,`soft`))}),t.addMethod(e.Assertion.prototype,`toMatchInlineSnapshot`,wrapAssertion(t,`toMatchInlineSnapshot`,function __INLINE_SNAPSHOT_OFFSET_3__(n,r,i){return assertMatchResult(toMatchSnapshotImpl({assertion:this,received:t.flag(this,`object`),isInline:!0,...normalizeInlineArguments(n,r,i)}),e.util.flag(this,`message`))})),t.addMethod(e.Assertion.prototype,`toThrowErrorMatchingSnapshot`,wrapAssertion(t,`toThrowErrorMatchingSnapshot`,function(n,r){validateAssertion(this);let i=t.flag(this,`object`),a=t.flag(this,`promise`);return assertMatchResult(toMatchSnapshotImpl({assertion:this,received:getError(i,a),...normalizeArguments(n,r)}),e.util.flag(this,`message`))})),t.addMethod(e.Assertion.prototype,`toThrowErrorMatchingInlineSnapshot`,wrapAssertion(t,`toThrowErrorMatchingInlineSnapshot`,function __INLINE_SNAPSHOT_OFFSET_3__(n,r){validateAssertion(this);let i=t.flag(this,`object`),a=t.flag(this,`promise`);return assertMatchResult(toMatchSnapshotImpl({assertion:this,received:getError(i,a),isInline:!0,...normalizeInlineArguments(void 0,n,r)}),e.util.flag(this,`message`))})),t.addMethod(e.expect,`addSnapshotSerializer`,addSerializer)};function normalizeArguments(e,t){return typeof e==`string`?{hint:e}:{properties:e,hint:t}}function normalizeInlineArguments(e,t,n){let r;return typeof e==`string`?(r=stripSnapshotIndentation(e),{inlineSnapshot:r,hint:t}):(t&&(r=stripSnapshotIndentation(t)),{properties:e,inlineSnapshot:r,hint:n})}function toMatchSnapshotImpl(e){let{assertion:t}=e;validateAssertion(t);let n=getAssertionName(t),r=getTest(t);return getSnapshotClient().match({received:e.received,properties:e.properties,message:e.hint,isInline:e.isInline,inlineSnapshot:e.inlineSnapshot,assertionName:n,error:A.flag(t,`error`),...getTestNames(r)})}async function toMatchFileSnapshotImpl(e){let{assertion:t}=e;validateAssertion(t);let n=getTestNames(getTest(t)),r=getSnapshotClient().getSnapshotState(n.filepath),i=await r.environment.resolveRawPath(n.filepath,e.filepath),a=await r.environment.readSnapshotFile(i);return getSnapshotClient().match({received:e.received,message:e.hint,rawSnapshot:{file:i,content:a??void 0},...n})}function assertMatchResult(e,t){if(!e.pass){let n=(t?`${t}: `:``)+e.message();throw Object.assign(Error(n),{actual:e.actual,expected:e.expected,diffOptions:{expand:getWorkerState().config.snapshotOptions.expand}})}}use(JestExtend),use(JestChaiExpect),use(ChaiStyleAssertions),use(SnapshotPlugin),use(JestAsymmetricMatchers);function createExpect(e){let expect=((t,n)=>{let{assertionCalls:r}=getState(expect);setState({assertionCalls:r+1},expect);let i=expect$1(t,n),a=e||C();return a?i.withTest(a):i});Object.assign(expect,expect$1),Object.assign(expect,globalThis[dt]),expect.getState=()=>getState(expect),expect.setState=e=>setState(e,expect);let t=getState(globalThis[V])||{};setState({...t,assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,get testPath(){return getWorkerState().filepath},currentTestName:e?e.fullTestName??``:t.currentTestName},expect),expect.assert=assert$1,expect.extend=e=>expect$1.extend(expect,e),expect.addEqualityTesters=e=>addCustomEqualityTesters(e),expect.soft=(...e)=>expect(...e).withContext({soft:!0}),expect.poll=createExpectPoll(expect),expect.unreachable=e=>{assert$1.fail(`expected${e?` "${e}" `:` `}not to be reached`)};function assertions(e){let errorGen=()=>Error(`expected number of assertions to be ${e}, but got ${expect.getState().assertionCalls}`);Error.captureStackTrace&&Error.captureStackTrace(errorGen(),assertions),expect.setState({expectedAssertionsNumber:e,expectedAssertionsNumberErrorGen:errorGen})}function hasAssertions(){let e=Error(`expected any number of assertion, but got none`);Error.captureStackTrace&&Error.captureStackTrace(e,hasAssertions),expect.setState({isExpectingAssertions:!0,isExpectingAssertionsError:e})}return A.addMethod(expect,`assertions`,assertions),A.addMethod(expect,`hasAssertions`,hasAssertions),expect.extend(ft),expect}const jn=createExpect();Object.defineProperty(globalThis,V,{value:jn,writable:!0,configurable:!0});const $=Q.hoisted(()=>({api:{canScrollPrev:Q.fn(),canScrollNext:Q.fn(),selectedScrollSnap:Q.fn(),scrollSnapList:Q.fn(),scrollPrev:Q.fn(),scrollNext:Q.fn(),scrollTo:Q.fn(),on:Q.fn(),off:Q.fn()}}));Q.mock(`embla-carousel-react`,()=>({default:Q.fn(()=>[Q.fn(),$.api])}));function renderCarousel(){return s(te(t,{children:[te(n,{children:[E(i,{children:`First`}),E(i,{children:`Second`}),E(i,{children:`Third`})]}),E(r,{})]}))}describe(`CarouselIndicators`,()=>{beforeEach(()=>{$.api.canScrollPrev.mockReturnValue(!0),$.api.canScrollNext.mockReturnValue(!0),$.api.selectedScrollSnap.mockReturnValue(1),$.api.scrollSnapList.mockReturnValue([0,1,2])}),it(`renders one indicator button per scroll snap`,async()=>{renderCarousel(),expect(await a.findAllByRole(`button`)).toHaveLength(3)}),it(`marks the selected indicator as active`,async()=>{renderCarousel();let e=await a.findByRole(`button`,{name:`Go to slide 2`});expect(e.getAttribute(`data-active`)).toBe(`true`),expect(a.getByRole(`button`,{name:`Go to slide 1`}).getAttribute(`data-active`)).toBeNull()}),it(`scrolls to the indicator index when clicked`,async()=>{renderCarousel(),o.click(await a.findByRole(`button`,{name:`Go to slide 3`})),expect($.api.scrollTo).toHaveBeenCalledWith(2)}),it(`does not render indicators when there are no scroll snaps`,()=>{$.api.scrollSnapList.mockReturnValue([]);let{container:e}=renderCarousel();expect(e.querySelector(`[data-slot="carousel-indicators"]`)).toBeNull()})});
1
+ import"../rolldown-runtime-Bdj-bS2b.js";import{a as e,i as t,n,r,t as i}from"../react.esm-BkhVXJ8s.js";import{jsx as a,jsxs as o}from"react/jsx-runtime";const{emblaMock:s,useEmblaCarouselMock:c}=vi.hoisted(()=>{let e={canScrollPrev:vi.fn(),canScrollNext:vi.fn(),selectedScrollSnap:vi.fn(),scrollSnapList:vi.fn(),scrollPrev:vi.fn(),scrollNext:vi.fn(),scrollTo:vi.fn(),on:vi.fn(),off:vi.fn()},t=vi.fn((...t)=>[vi.fn(),e]);return{emblaMock:{api:e},useEmblaCarouselMock:t}});vi.mock(`embla-carousel-react`,()=>({default:c}));const{Carousel:l,CarouselContent:u,CarouselIndicators:d,CarouselItem:f,CarouselNext:p,CarouselPrevious:m,useCarousel:h}=await import(`./carousel.js`);function triggerSelect(){let e=s.api.on.mock.calls.find(([e])=>e===`select`)?.[1];i(()=>e?.(s.api))}function renderCarousel(e={}){return r(o(l,{...e,children:[o(u,{children:[a(f,{children:`First`}),a(f,{children:`Second`}),a(f,{children:`Third`})]}),a(m,{}),a(p,{}),a(d,{})]}))}describe(`Carousel`,()=>{beforeEach(()=>{s.api.canScrollPrev.mockReturnValue(!1),s.api.canScrollNext.mockReturnValue(!1),s.api.selectedScrollSnap.mockReturnValue(0),s.api.scrollSnapList.mockReturnValue([])}),it(`throws when used outside a <Carousel />`,()=>{expect(()=>t(()=>h())).toThrow(`useCarousel must be used within a <Carousel />`)}),it(`renders the section with the carousel data-slot and merges a custom className`,()=>{let{container:e}=renderCarousel({className:`custom-carousel`}),t=e.querySelector(`[data-slot="carousel"]`);expect(t?.tagName).toBe(`SECTION`),expect(t?.className).toContain(`custom-carousel`)}),it(`defaults to the horizontal axis`,()=>{renderCarousel();let e=c.mock.calls.at(-1)?.[0];expect(e?.axis).toBe(`x`)}),it(`maps the vertical orientation to the y axis`,()=>{renderCarousel({orientation:`vertical`});let e=c.mock.calls.at(-1)?.[0];expect(e?.axis).toBe(`y`)}),it(`calls setApi with the embla api once mounted`,()=>{let e=vi.fn();renderCarousel({setApi:e}),expect(e).toHaveBeenCalledWith(s.api)}),it(`subscribes to reInit/select on mount and unsubscribes on unmount`,()=>{let{unmount:e}=renderCarousel();expect(s.api.on).toHaveBeenCalledWith(`reInit`,expect.any(Function)),expect(s.api.on).toHaveBeenCalledWith(`select`,expect.any(Function)),e(),expect(s.api.off).toHaveBeenCalledWith(`reInit`,expect.any(Function)),expect(s.api.off).toHaveBeenCalledWith(`select`,expect.any(Function))}),it(`scrolls to the previous slide on ArrowLeft and prevents the default action`,()=>{let{container:e}=renderCarousel(),t=e.querySelector(`[data-slot="carousel"]`),r=n.keyDown(t,{key:`ArrowLeft`});expect(r).toBe(!1),expect(s.api.scrollPrev).toHaveBeenCalledTimes(1)}),it(`scrolls to the next slide on ArrowRight and prevents the default action`,()=>{let{container:e}=renderCarousel(),t=e.querySelector(`[data-slot="carousel"]`),r=n.keyDown(t,{key:`ArrowRight`});expect(r).toBe(!1),expect(s.api.scrollNext).toHaveBeenCalledTimes(1)}),it(`ignores unrelated keys`,()=>{let{container:e}=renderCarousel(),t=e.querySelector(`[data-slot="carousel"]`);n.keyDown(t,{key:`Enter`}),expect(s.api.scrollPrev).not.toHaveBeenCalled(),expect(s.api.scrollNext).not.toHaveBeenCalled()}),describe(`CarouselContent`,()=>{it(`uses the horizontal offset classes by default`,()=>{let{container:e}=renderCarousel(),t=e.querySelector(`[data-slot="carousel-content"]`).firstElementChild;expect(t.className).toContain(`-ml-4`)}),it(`uses the vertical offset classes when the carousel is vertical`,()=>{let{container:e}=renderCarousel({orientation:`vertical`}),t=e.querySelector(`[data-slot="carousel-content"]`).firstElementChild;expect(t.className).toContain(`-mt-4`),expect(t.className).toContain(`flex-col`)})}),describe(`CarouselItem`,()=>{it(`uses the horizontal padding class by default`,()=>{let{container:e}=renderCarousel();expect(e.querySelector(`[data-slot="carousel-item"]`)?.className).toContain(`pl-4`)}),it(`uses the vertical padding class when the carousel is vertical`,()=>{let{container:e}=renderCarousel({orientation:`vertical`});expect(e.querySelector(`[data-slot="carousel-item"]`)?.className).toContain(`pt-4`)})}),describe(`CarouselPrevious`,()=>{it(`is disabled when the carousel cannot scroll back and enabled once the api reports it can`,()=>{s.api.canScrollPrev.mockReturnValue(!1),renderCarousel();let t=e.getByRole(`button`,{name:`Previous slide`});expect(t.hasAttribute(`disabled`)).toBe(!0),s.api.canScrollPrev.mockReturnValue(!0),triggerSelect(),expect(t.hasAttribute(`disabled`)).toBe(!1)}),it(`calls scrollPrev when clicked`,()=>{s.api.canScrollPrev.mockReturnValue(!0),renderCarousel(),n.click(e.getByRole(`button`,{name:`Previous slide`})),expect(s.api.scrollPrev).toHaveBeenCalledTimes(1)})}),describe(`CarouselNext`,()=>{it(`is disabled when the carousel cannot scroll forward and enabled once the api reports it can`,()=>{s.api.canScrollNext.mockReturnValue(!1),renderCarousel();let t=e.getByRole(`button`,{name:`Next slide`});expect(t.hasAttribute(`disabled`)).toBe(!0),s.api.canScrollNext.mockReturnValue(!0),triggerSelect(),expect(t.hasAttribute(`disabled`)).toBe(!1)}),it(`calls scrollNext when clicked`,()=>{s.api.canScrollNext.mockReturnValue(!0),renderCarousel(),n.click(e.getByRole(`button`,{name:`Next slide`})),expect(s.api.scrollNext).toHaveBeenCalledTimes(1)})}),describe(`CarouselIndicators`,()=>{beforeEach(()=>{s.api.canScrollPrev.mockReturnValue(!0),s.api.canScrollNext.mockReturnValue(!0),s.api.selectedScrollSnap.mockReturnValue(1),s.api.scrollSnapList.mockReturnValue([0,1,2])}),it(`renders one indicator button per scroll snap`,async()=>{renderCarousel(),expect(await e.findAllByRole(`button`,{name:/Go to slide/})).toHaveLength(3)}),it(`marks the selected indicator as active`,async()=>{renderCarousel();let t=await e.findByRole(`button`,{name:`Go to slide 2`});expect(t.getAttribute(`data-active`)).toBe(`true`),expect(e.getByRole(`button`,{name:`Go to slide 1`}).getAttribute(`data-active`)).toBeNull()}),it(`scrolls to the indicator index when clicked`,async()=>{renderCarousel(),n.click(await e.findByRole(`button`,{name:`Go to slide 3`})),expect(s.api.scrollTo).toHaveBeenCalledWith(2)}),it(`does not render indicators when there are no scroll snaps`,()=>{s.api.scrollSnapList.mockReturnValue([]);let{container:e}=renderCarousel();expect(e.querySelector(`[data-slot="carousel-indicators"]`)).toBeNull()})})});
94
2
  //# sourceMappingURL=carousel.spec.js.map