@boxcustodia/library 1.7.1 → 1.7.2

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 (483) hide show
  1. package/dist/index.es104.js +1 -1
  2. package/dist/index.es105.js +10 -310
  3. package/dist/index.es106.js +22 -13
  4. package/dist/index.es107.js +256 -55
  5. package/dist/index.es108.js +13 -39
  6. package/dist/index.es109.js +27 -13
  7. package/dist/index.es110.js +41 -14
  8. package/dist/index.es111.js +57 -54
  9. package/dist/index.es112.js +17 -54
  10. package/dist/index.es113.js +37 -110
  11. package/dist/index.es114.js +55 -44
  12. package/dist/index.es115.js +53 -23
  13. package/dist/index.es116.js +112 -29
  14. package/dist/index.es117.js +43 -40
  15. package/dist/index.es118.js +24 -17
  16. package/dist/index.es119.js +29 -39
  17. package/dist/index.es120.js +3 -10
  18. package/dist/index.es121.js +4 -13
  19. package/dist/index.es122.js +15 -22
  20. package/dist/index.es123.js +5 -26
  21. package/dist/index.es124.js +55 -257
  22. package/dist/index.es125.js +1085 -25
  23. package/dist/index.es126.js +4 -20
  24. package/dist/index.es127.js +4 -3
  25. package/dist/index.es128.js +39 -4
  26. package/dist/index.es129.js +8 -9
  27. package/dist/index.es130.js +13 -5
  28. package/dist/index.es131.js +307 -54
  29. package/dist/index.es132.js +13 -1087
  30. package/dist/index.es133.js +26 -4
  31. package/dist/index.es134.js +20 -4
  32. package/dist/index.es135.js +4 -10
  33. package/dist/index.es136.js +22 -10
  34. package/dist/index.es137.js +10 -22
  35. package/dist/index.es138.js +69 -13
  36. package/dist/index.es139.js +4 -10
  37. package/dist/index.es140.js +4 -4
  38. package/dist/index.es141.js +3 -6
  39. package/dist/index.es142.js +19 -15
  40. package/dist/index.es143.js +13 -44
  41. package/dist/index.es144.js +10 -224
  42. package/dist/index.es145.js +4 -4
  43. package/dist/index.es146.js +13 -41
  44. package/dist/index.es147.js +239 -5
  45. package/dist/index.es148.js +18 -68
  46. package/dist/index.es149.js +25 -238
  47. package/dist/index.es150.js +17 -18
  48. package/dist/index.es151.js +42 -25
  49. package/dist/index.es152.js +6 -4
  50. package/dist/index.es153.js +223 -32
  51. package/dist/index.es154.js +10 -22
  52. package/dist/index.es155.js +41 -10
  53. package/dist/index.es156.js +32 -847
  54. package/dist/index.es157.js +848 -4
  55. package/dist/index.es158.js +1 -1
  56. package/dist/index.es159.js +1 -1
  57. package/dist/index.es16.js +1 -1
  58. package/dist/index.es160.js +1 -1
  59. package/dist/index.es161.js +1 -1
  60. package/dist/index.es163.js +9 -9
  61. package/dist/index.es164.js +3 -3
  62. package/dist/index.es165.js +14 -14
  63. package/dist/index.es167.js +2 -2
  64. package/dist/index.es168.js +7 -18
  65. package/dist/index.es169.js +2 -36
  66. package/dist/index.es170.js +32 -7
  67. package/dist/index.es171.js +245 -2
  68. package/dist/index.es172.js +17 -31
  69. package/dist/index.es173.js +35 -244
  70. package/dist/index.es174.js +6 -14
  71. package/dist/index.es175.js +26 -32
  72. package/dist/index.es176.js +67 -10
  73. package/dist/index.es177.js +10 -26
  74. package/dist/index.es178.js +123 -19
  75. package/dist/index.es179.js +130 -32
  76. package/dist/index.es18.js +1 -1
  77. package/dist/index.es180.js +14 -11
  78. package/dist/index.es181.js +32 -204
  79. package/dist/index.es182.js +14 -6
  80. package/dist/index.es183.js +9 -68
  81. package/dist/index.es184.js +47 -122
  82. package/dist/index.es185.js +12 -132
  83. package/dist/index.es186.js +21 -14
  84. package/dist/index.es187.js +36 -14
  85. package/dist/index.es188.js +11 -9
  86. package/dist/index.es189.js +3674 -49
  87. package/dist/index.es190.js +5 -3674
  88. package/dist/index.es191.js +2 -6
  89. package/dist/index.es192.js +205 -2
  90. package/dist/index.es193.js +1 -1
  91. package/dist/index.es195.js +7 -7
  92. package/dist/index.es196.js +3 -649
  93. package/dist/index.es197.js +45 -3
  94. package/dist/index.es198.js +7 -45
  95. package/dist/index.es199.js +5 -7
  96. package/dist/index.es2.js +1 -1
  97. package/dist/index.es200.js +28 -6
  98. package/dist/index.es201.js +33 -26
  99. package/dist/index.es202.js +118 -2
  100. package/dist/index.es203.js +650 -2
  101. package/dist/index.es204.js +2 -35
  102. package/dist/index.es205.js +2 -118
  103. package/dist/index.es206.js +1 -1
  104. package/dist/index.es207.js +1 -1
  105. package/dist/index.es208.js +5 -5
  106. package/dist/index.es211.js +12 -25
  107. package/dist/index.es212.js +19 -11
  108. package/dist/index.es213.js +11 -32
  109. package/dist/index.es214.js +32 -12
  110. package/dist/index.es215.js +18 -6
  111. package/dist/index.es216.js +7 -83
  112. package/dist/index.es217.js +5 -5
  113. package/dist/index.es218.js +5 -17
  114. package/dist/index.es219.js +17 -9
  115. package/dist/index.es22.js +1 -1
  116. package/dist/index.es220.js +5 -6
  117. package/dist/index.es221.js +7 -6
  118. package/dist/index.es222.js +5 -14
  119. package/dist/index.es223.js +13 -11
  120. package/dist/index.es224.js +16 -19
  121. package/dist/index.es225.js +8 -14
  122. package/dist/index.es226.js +4 -4
  123. package/dist/index.es227.js +14 -6
  124. package/dist/index.es228.js +6 -53
  125. package/dist/index.es229.js +14 -10
  126. package/dist/index.es230.js +6 -6
  127. package/dist/index.es231.js +6 -10
  128. package/dist/index.es232.js +6 -7
  129. package/dist/index.es233.js +5 -17
  130. package/dist/index.es234.js +580 -6
  131. package/dist/index.es235.js +50 -7
  132. package/dist/index.es236.js +17 -8
  133. package/dist/index.es237.js +6 -10
  134. package/dist/index.es238.js +19 -12
  135. package/dist/index.es239.js +8 -7
  136. package/dist/index.es24.js +1 -1
  137. package/dist/index.es240.js +6 -5
  138. package/dist/index.es241.js +7 -5
  139. package/dist/index.es242.js +6 -7
  140. package/dist/index.es243.js +6 -5
  141. package/dist/index.es244.js +9 -13
  142. package/dist/index.es245.js +5 -15
  143. package/dist/index.es246.js +8 -8
  144. package/dist/index.es247.js +12 -5
  145. package/dist/index.es248.js +9 -4
  146. package/dist/index.es249.js +8 -580
  147. package/dist/index.es250.js +11 -50
  148. package/dist/index.es251.js +14 -17
  149. package/dist/index.es252.js +4 -5
  150. package/dist/index.es253.js +12 -19
  151. package/dist/index.es254.js +10 -8
  152. package/dist/index.es255.js +10 -6
  153. package/dist/index.es256.js +6 -7
  154. package/dist/index.es257.js +9 -5
  155. package/dist/index.es258.js +83 -6
  156. package/dist/index.es259.js +38 -9
  157. package/dist/index.es26.js +2 -2
  158. package/dist/index.es260.js +65 -6
  159. package/dist/index.es261.js +9 -8
  160. package/dist/index.es262.js +8 -12
  161. package/dist/index.es263.js +7 -9
  162. package/dist/index.es264.js +10 -10
  163. package/dist/index.es265.js +7 -14
  164. package/dist/index.es266.js +7 -38
  165. package/dist/index.es267.js +7 -65
  166. package/dist/index.es268.js +5 -9
  167. package/dist/index.es269.js +15 -8
  168. package/dist/index.es270.js +204 -7
  169. package/dist/index.es271.js +22 -8
  170. package/dist/index.es272.js +24 -15
  171. package/dist/index.es273.js +381 -193
  172. package/dist/index.es274.js +19 -22
  173. package/dist/index.es275.js +53 -25
  174. package/dist/index.es276.js +17 -393
  175. package/dist/index.es277.js +1 -1
  176. package/dist/index.es278.js +11 -177
  177. package/dist/index.es279.js +177 -7
  178. package/dist/index.es28.js +2 -2
  179. package/dist/index.es280.js +8 -2
  180. package/dist/index.es281.js +2 -23
  181. package/dist/index.es282.js +11 -11
  182. package/dist/index.es283.js +22 -20
  183. package/dist/index.es284.js +21 -2
  184. package/dist/index.es285.js +2 -9406
  185. package/dist/index.es286.js +8970 -14876
  186. package/dist/index.es287.js +15312 -3
  187. package/dist/index.es288.js +3 -61
  188. package/dist/index.es289.js +59 -8
  189. package/dist/index.es290.js +10 -3
  190. package/dist/index.es291.js +3 -5
  191. package/dist/index.es292.js +5 -15
  192. package/dist/index.es293.js +8 -3
  193. package/dist/index.es294.js +3 -8
  194. package/dist/index.es295.js +45 -3
  195. package/dist/index.es296.js +27 -43
  196. package/dist/index.es297.js +54 -26
  197. package/dist/index.es298.js +18 -55
  198. package/dist/index.es299.js +21 -19
  199. package/dist/index.es30.js +1 -1
  200. package/dist/index.es300.js +44 -21
  201. package/dist/index.es301.js +29 -42
  202. package/dist/index.es302.js +80 -28
  203. package/dist/index.es303.js +5 -82
  204. package/dist/index.es304.js +14 -6
  205. package/dist/index.es305.js +41 -12
  206. package/dist/index.es306.js +32 -42
  207. package/dist/index.es307.js +24 -30
  208. package/dist/index.es308.js +25 -27
  209. package/dist/index.es309.js +6 -24
  210. package/dist/index.es310.js +419 -6
  211. package/dist/index.es311.js +9 -417
  212. package/dist/index.es312.js +33 -11
  213. package/dist/index.es313.js +23 -33
  214. package/dist/index.es314.js +29 -12
  215. package/dist/index.es315.js +5 -25
  216. package/dist/index.es316.js +14 -28
  217. package/dist/index.es317.js +3 -5
  218. package/dist/index.es32.js +1 -1
  219. package/dist/index.es320.js +1 -1
  220. package/dist/index.es321.js +2 -2
  221. package/dist/index.es322.js +4 -4
  222. package/dist/index.es323.js +4 -4
  223. package/dist/index.es324.js +2 -2
  224. package/dist/index.es325.js +2 -2
  225. package/dist/index.es326.js +2 -2
  226. package/dist/index.es327.js +3 -3
  227. package/dist/index.es328.js +3 -3
  228. package/dist/index.es329.js +5 -5
  229. package/dist/index.es33.js +3 -3
  230. package/dist/index.es330.js +5 -5
  231. package/dist/index.es331.js +3 -3
  232. package/dist/index.es332.js +3 -3
  233. package/dist/index.es333.js +2 -2
  234. package/dist/index.es334.js +3 -3
  235. package/dist/index.es335.js +3 -3
  236. package/dist/index.es336.js +3 -3
  237. package/dist/index.es337.js +2 -2
  238. package/dist/index.es338.js +2 -2
  239. package/dist/index.es339.js +2 -2
  240. package/dist/index.es34.js +6 -6
  241. package/dist/index.es340.js +3 -3
  242. package/dist/index.es341.js +3 -3
  243. package/dist/index.es342.js +3 -3
  244. package/dist/index.es343.js +3 -3
  245. package/dist/index.es344.js +3 -3
  246. package/dist/index.es345.js +3 -3
  247. package/dist/index.es346.js +2 -2
  248. package/dist/index.es347.js +5 -5
  249. package/dist/index.es348.js +5 -5
  250. package/dist/index.es349.js +3 -3
  251. package/dist/index.es350.js +3 -3
  252. package/dist/index.es353.js +1 -1
  253. package/dist/index.es354.js +2 -2
  254. package/dist/index.es355.js +1 -1
  255. package/dist/index.es364.js +2 -2
  256. package/dist/index.es365.js +2 -8
  257. package/dist/index.es366.js +2 -2
  258. package/dist/index.es367.js +8 -2
  259. package/dist/index.es38.js +1 -1
  260. package/dist/index.es39.js +1 -1
  261. package/dist/index.es391.js +2 -2
  262. package/dist/index.es394.js +1 -1
  263. package/dist/index.es398.js +1 -1
  264. package/dist/index.es399.js +1 -1
  265. package/dist/index.es40.js +5 -5
  266. package/dist/index.es401.js +1 -1
  267. package/dist/index.es403.js +1 -1
  268. package/dist/index.es404.js +2 -2
  269. package/dist/index.es405.js +19 -67
  270. package/dist/index.es406.js +101 -31
  271. package/dist/index.es407.js +47 -16
  272. package/dist/index.es408.js +520 -138
  273. package/dist/index.es409.js +126 -113
  274. package/dist/index.es41.js +2 -2
  275. package/dist/index.es410.js +129 -2
  276. package/dist/index.es411.js +5 -230
  277. package/dist/index.es412.js +14 -233
  278. package/dist/index.es413.js +2 -20
  279. package/dist/index.es414.js +7 -100
  280. package/dist/index.es415.js +327 -47
  281. package/dist/index.es416.js +44 -517
  282. package/dist/index.es417.js +3 -126
  283. package/dist/index.es418.js +67 -128
  284. package/dist/index.es419.js +31 -6
  285. package/dist/index.es420.js +16 -15
  286. package/dist/index.es421.js +141 -2
  287. package/dist/index.es422.js +114 -8
  288. package/dist/index.es423.js +2 -327
  289. package/dist/index.es424.js +229 -48
  290. package/dist/index.es425.js +233 -3
  291. package/dist/index.es44.js +3 -3
  292. package/dist/index.es449.js +23 -270
  293. package/dist/index.es45.js +1 -1
  294. package/dist/index.es450.js +5 -79
  295. package/dist/index.es451.js +122 -160
  296. package/dist/index.es452.js +24 -24
  297. package/dist/index.es453.js +4 -5
  298. package/dist/index.es454.js +11 -126
  299. package/dist/index.es455.js +40 -22
  300. package/dist/index.es456.js +57 -4
  301. package/dist/index.es457.js +40 -11
  302. package/dist/index.es458.js +25 -39
  303. package/dist/index.es459.js +30 -56
  304. package/dist/index.es460.js +14 -41
  305. package/dist/index.es461.js +10 -28
  306. package/dist/index.es462.js +10 -31
  307. package/dist/index.es463.js +9 -14
  308. package/dist/index.es464.js +6 -10
  309. package/dist/index.es465.js +5 -10
  310. package/dist/index.es466.js +7 -9
  311. package/dist/index.es467.js +29 -6
  312. package/dist/index.es468.js +18 -5
  313. package/dist/index.es469.js +13 -7
  314. package/dist/index.es47.js +1 -1
  315. package/dist/index.es470.js +42 -28
  316. package/dist/index.es471.js +8 -18
  317. package/dist/index.es472.js +3 -14
  318. package/dist/index.es473.js +4 -43
  319. package/dist/index.es474.js +23 -7
  320. package/dist/index.es475.js +272 -3
  321. package/dist/index.es476.js +79 -4
  322. package/dist/index.es477.js +164 -23
  323. package/dist/index.es478.js +2 -2
  324. package/dist/index.es479.js +4 -4
  325. package/dist/index.es480.js +3 -3
  326. package/dist/index.es481.js +3 -3
  327. package/dist/index.es484.js +11 -11
  328. package/dist/index.es485.js +3 -3
  329. package/dist/index.es487.js +2 -2
  330. package/dist/index.es488.js +1 -1
  331. package/dist/index.es489.js +1 -1
  332. package/dist/index.es49.js +5 -5
  333. package/dist/index.es490.js +5 -5
  334. package/dist/index.es491.js +4 -4
  335. package/dist/index.es492.js +1 -1
  336. package/dist/index.es496.js +7 -19
  337. package/dist/index.es497.js +2 -32
  338. package/dist/index.es498.js +52 -29
  339. package/dist/index.es499.js +64 -7
  340. package/dist/index.es50.js +1 -1
  341. package/dist/index.es500.js +20 -2
  342. package/dist/index.es501.js +30 -51
  343. package/dist/index.es502.js +29 -64
  344. package/dist/index.es509.js +4 -4
  345. package/dist/index.es51.js +3 -3
  346. package/dist/index.es511.js +1 -1
  347. package/dist/index.es512.js +3 -3
  348. package/dist/index.es514.js +7 -7
  349. package/dist/index.es515.js +5 -5
  350. package/dist/index.es516.js +1 -1
  351. package/dist/index.es517.js +11 -11
  352. package/dist/index.es518.js +2 -2
  353. package/dist/index.es52.js +1 -1
  354. package/dist/index.es520.js +1 -1
  355. package/dist/index.es526.js +1 -1
  356. package/dist/index.es531.js +5 -14
  357. package/dist/index.es532.js +14 -27
  358. package/dist/index.es533.js +27 -11
  359. package/dist/index.es534.js +11 -5
  360. package/dist/index.es535.js +2 -2
  361. package/dist/index.es536.js +76 -2
  362. package/dist/index.es537.js +93 -2
  363. package/dist/index.es538.js +49 -73
  364. package/dist/index.es539.js +7 -92
  365. package/dist/index.es54.js +1 -1
  366. package/dist/index.es540.js +4 -51
  367. package/dist/index.es541.js +51 -7
  368. package/dist/index.es542.js +2 -5
  369. package/dist/index.es543.js +2 -52
  370. package/dist/index.es545.js +1 -1
  371. package/dist/index.es547.js +1 -1
  372. package/dist/index.es548.js +1 -1
  373. package/dist/index.es549.js +1 -1
  374. package/dist/index.es550.js +1 -1
  375. package/dist/index.es551.js +1 -1
  376. package/dist/index.es552.js +1 -1
  377. package/dist/index.es553.js +1 -1
  378. package/dist/index.es554.js +1 -1
  379. package/dist/index.es555.js +1 -1
  380. package/dist/index.es556.js +1 -1
  381. package/dist/index.es557.js +1 -1
  382. package/dist/index.es558.js +1 -1
  383. package/dist/index.es56.js +2 -2
  384. package/dist/index.es57.js +4 -4
  385. package/dist/index.es58.js +1 -1
  386. package/dist/index.es59.js +5 -5
  387. package/dist/index.es60.js +3 -3
  388. package/dist/index.es61.js +5 -5
  389. package/dist/index.es62.js +2 -2
  390. package/dist/index.es63.js +1 -1
  391. package/dist/index.es644.js +1 -1
  392. package/dist/index.es645.js +1 -1
  393. package/dist/index.es646.js +1 -1
  394. package/dist/index.es647.js +1 -1
  395. package/dist/index.es648.js +1 -1
  396. package/dist/index.es649.js +1 -1
  397. package/dist/index.es650.js +1 -1
  398. package/dist/index.es651.js +1 -1
  399. package/dist/index.es652.js +1 -1
  400. package/dist/index.es653.js +1 -1
  401. package/dist/index.es654.js +1 -1
  402. package/dist/index.es655.js +1 -1
  403. package/dist/index.es656.js +1 -1
  404. package/dist/index.es657.js +1 -1
  405. package/dist/index.es658.js +1 -1
  406. package/dist/index.es659.js +1 -1
  407. package/dist/index.es66.js +4 -4
  408. package/dist/index.es660.js +1 -1
  409. package/dist/index.es661.js +1 -1
  410. package/dist/index.es662.js +1 -1
  411. package/dist/index.es663.js +1 -1
  412. package/dist/index.es664.js +1 -1
  413. package/dist/index.es665.js +1 -1
  414. package/dist/index.es666.js +1 -1
  415. package/dist/index.es667.js +1 -1
  416. package/dist/index.es668.js +1 -1
  417. package/dist/index.es669.js +1 -1
  418. package/dist/index.es67.js +2 -2
  419. package/dist/index.es670.js +1 -1
  420. package/dist/index.es671.js +1 -1
  421. package/dist/index.es672.js +1 -1
  422. package/dist/index.es673.js +1 -1
  423. package/dist/index.es674.js +1 -1
  424. package/dist/index.es675.js +1 -1
  425. package/dist/index.es676.js +1 -1
  426. package/dist/index.es677.js +1 -1
  427. package/dist/index.es678.js +1 -1
  428. package/dist/index.es679.js +1 -1
  429. package/dist/index.es680.js +1 -1
  430. package/dist/index.es681.js +1 -1
  431. package/dist/index.es682.js +1 -1
  432. package/dist/index.es684.js +1 -1
  433. package/dist/index.es685.js +1 -1
  434. package/dist/index.es686.js +1 -1
  435. package/dist/index.es693.js +4 -21
  436. package/dist/index.es694.js +18 -79
  437. package/dist/index.es695.js +81 -2
  438. package/dist/index.es696.js +3 -4
  439. package/dist/index.es697.js +4 -4
  440. package/dist/index.es70.js +1 -1
  441. package/dist/index.es72.js +1 -1
  442. package/dist/index.es74.js +2 -2
  443. package/dist/index.es741.js +2 -2
  444. package/dist/index.es743.js +2 -2
  445. package/dist/index.es744.js +2 -2
  446. package/dist/index.es745.js +2 -2
  447. package/dist/index.es750.js +2 -2
  448. package/dist/index.es751.js +2 -2
  449. package/dist/index.es752.js +2 -2
  450. package/dist/index.es753.js +2 -2
  451. package/dist/index.es76.js +1 -1
  452. package/dist/index.es77.js +1 -1
  453. package/dist/index.es78.js +1 -1
  454. package/dist/index.es80.js +1 -1
  455. package/dist/index.es81.js +1 -1
  456. package/dist/index.es82.js +2 -2
  457. package/dist/index.es837.js +2 -2
  458. package/dist/index.es840.js +2 -2
  459. package/dist/index.es841.js +2 -2
  460. package/dist/index.es843.js +2 -2
  461. package/dist/index.es845.js +2 -2
  462. package/dist/index.es848.js +2 -2
  463. package/dist/index.es849.js +2 -2
  464. package/dist/index.es85.js +1 -1
  465. package/dist/index.es850.js +2 -2
  466. package/dist/index.es852.js +2 -2
  467. package/dist/index.es853.js +2 -2
  468. package/dist/index.es856.js +2 -2
  469. package/dist/index.es857.js +2 -2
  470. package/dist/index.es859.js +2 -2
  471. package/dist/index.es86.js +2 -2
  472. package/dist/index.es860.js +2 -2
  473. package/dist/index.es862.js +2 -2
  474. package/dist/index.es864.js +2 -2
  475. package/dist/index.es865.js +2 -2
  476. package/dist/index.es866.js +2 -2
  477. package/dist/index.es870.js +2 -2
  478. package/dist/index.es872.js +2 -2
  479. package/dist/index.es873.js +2 -2
  480. package/dist/index.es877.js +2 -2
  481. package/dist/index.es88.js +2 -2
  482. package/dist/index.es89.js +1 -1
  483. package/package.json +1 -1
@@ -1,168 +1,130 @@
1
- function i(a) {
2
- var e;
3
- return (
4
- // eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName
5
- (e = a.localName) !== null && e !== void 0 ? e : (
6
- // eslint-disable-next-line no-restricted-properties -- required for the fallback
7
- a.tagName.toLowerCase()
8
- )
9
- );
10
- }
11
- var n = {
12
- article: "article",
13
- aside: "complementary",
14
- button: "button",
15
- datalist: "listbox",
16
- dd: "definition",
17
- details: "group",
18
- dialog: "dialog",
19
- dt: "term",
20
- fieldset: "group",
21
- figure: "figure",
22
- // WARNING: Only with an accessible name
23
- form: "form",
24
- footer: "contentinfo",
25
- h1: "heading",
26
- h2: "heading",
27
- h3: "heading",
28
- h4: "heading",
29
- h5: "heading",
30
- h6: "heading",
31
- header: "banner",
32
- hr: "separator",
33
- html: "document",
34
- legend: "legend",
35
- li: "listitem",
36
- math: "math",
37
- main: "main",
38
- menu: "list",
39
- nav: "navigation",
40
- ol: "list",
41
- optgroup: "group",
42
- // WARNING: Only in certain context
43
- option: "option",
44
- output: "status",
45
- progress: "progressbar",
46
- // WARNING: Only with an accessible name
47
- section: "region",
48
- summary: "button",
49
- table: "table",
50
- tbody: "rowgroup",
51
- textarea: "textbox",
52
- tfoot: "rowgroup",
53
- // WARNING: Only in certain context
54
- td: "cell",
55
- th: "columnheader",
56
- thead: "rowgroup",
57
- tr: "row",
58
- ul: "list"
59
- }, o = {
60
- caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
61
- code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
62
- deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
63
- emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
64
- generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]),
65
- insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
66
- paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
67
- presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
68
- strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
69
- subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
70
- superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"])
71
- };
72
- function s(a, e) {
73
- return [
74
- "aria-atomic",
75
- "aria-busy",
76
- "aria-controls",
77
- "aria-current",
78
- "aria-describedby",
79
- "aria-details",
80
- // "disabled",
81
- "aria-dropeffect",
82
- // "errormessage",
83
- "aria-flowto",
84
- "aria-grabbed",
85
- // "haspopup",
86
- "aria-hidden",
87
- // "invalid",
88
- "aria-keyshortcuts",
89
- "aria-label",
90
- "aria-labelledby",
91
- "aria-live",
92
- "aria-owns",
93
- "aria-relevant",
94
- "aria-roledescription"
95
- ].some(function(r) {
96
- var t;
97
- return a.hasAttribute(r) && !((t = o[e]) !== null && t !== void 0 && t.has(r));
98
- });
99
- }
100
- function l(a, e) {
101
- return s(a, e);
102
- }
103
- function c(a) {
104
- var e = b(a);
105
- if (e === null || e === "presentation") {
106
- var r = u(a);
107
- if (e !== "presentation" || l(a, r || ""))
108
- return r;
1
+ import { nodeContains as l } from "./index.es452.js";
2
+ import { shadowDOM as h } from "./index.es453.js";
3
+ class u {
4
+ get currentNode() {
5
+ return this._currentNode;
109
6
  }
110
- return e;
111
- }
112
- function u(a) {
113
- var e = n[i(a)];
114
- if (e !== void 0)
115
- return e;
116
- switch (i(a)) {
117
- case "a":
118
- case "area":
119
- case "link":
120
- if (a.hasAttribute("href"))
121
- return "link";
122
- break;
123
- case "img":
124
- return a.getAttribute("alt") === "" && !l(a, "img") ? "presentation" : "img";
125
- case "input": {
126
- var r = a, t = r.type;
127
- switch (t) {
128
- case "button":
129
- case "image":
130
- case "reset":
131
- case "submit":
132
- return "button";
133
- case "checkbox":
134
- case "radio":
135
- return t;
136
- case "range":
137
- return "slider";
138
- case "email":
139
- case "tel":
140
- case "text":
141
- case "url":
142
- return a.hasAttribute("list") ? "combobox" : "textbox";
143
- case "search":
144
- return a.hasAttribute("list") ? "combobox" : "searchbox";
145
- case "number":
146
- return "spinbutton";
147
- default:
148
- return null;
7
+ set currentNode(t) {
8
+ if (!l(this.root, t)) throw new Error("Cannot set currentNode to a node that is not contained by the root node.");
9
+ const e = [];
10
+ let r = t, o = t;
11
+ for (this._currentNode = t; r && r !== this.root; ) if (r.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
12
+ const s = r, n = this._doc.createTreeWalker(s, this.whatToShow, {
13
+ acceptNode: this._acceptNode
14
+ });
15
+ e.push(n), n.currentNode = o, this._currentSetFor.add(n), r = o = s.host;
16
+ } else r = r.parentNode;
17
+ const i = this._doc.createTreeWalker(this.root, this.whatToShow, {
18
+ acceptNode: this._acceptNode
19
+ });
20
+ e.push(i), i.currentNode = o, this._currentSetFor.add(i), this._walkerStack = e;
21
+ }
22
+ get doc() {
23
+ return this._doc;
24
+ }
25
+ firstChild() {
26
+ let t = this.currentNode, e = this.nextNode();
27
+ return l(t, e) ? (e && (this.currentNode = e), e) : (this.currentNode = t, null);
28
+ }
29
+ lastChild() {
30
+ let e = this._walkerStack[0].lastChild();
31
+ return e && (this.currentNode = e), e;
32
+ }
33
+ nextNode() {
34
+ const t = this._walkerStack[0].nextNode();
35
+ if (t) {
36
+ if (t.shadowRoot) {
37
+ var e;
38
+ let o;
39
+ if (typeof this.filter == "function" ? o = this.filter(t) : !((e = this.filter) === null || e === void 0) && e.acceptNode && (o = this.filter.acceptNode(t)), o === NodeFilter.FILTER_ACCEPT)
40
+ return this.currentNode = t, t;
41
+ let i = this.nextNode();
42
+ return i && (this.currentNode = i), i;
149
43
  }
44
+ return t && (this.currentNode = t), t;
45
+ } else if (this._walkerStack.length > 1) {
46
+ this._walkerStack.shift();
47
+ let r = this.nextNode();
48
+ return r && (this.currentNode = r), r;
49
+ } else return null;
50
+ }
51
+ previousNode() {
52
+ const t = this._walkerStack[0];
53
+ if (t.currentNode === t.root) {
54
+ if (this._currentSetFor.has(t))
55
+ if (this._currentSetFor.delete(t), this._walkerStack.length > 1) {
56
+ this._walkerStack.shift();
57
+ let o = this.previousNode();
58
+ return o && (this.currentNode = o), o;
59
+ } else return null;
60
+ return null;
150
61
  }
151
- case "select":
152
- return a.hasAttribute("multiple") || a.size > 1 ? "listbox" : "combobox";
62
+ const e = t.previousNode();
63
+ if (e) {
64
+ if (e.shadowRoot) {
65
+ var r;
66
+ let i;
67
+ if (typeof this.filter == "function" ? i = this.filter(e) : !((r = this.filter) === null || r === void 0) && r.acceptNode && (i = this.filter.acceptNode(e)), i === NodeFilter.FILTER_ACCEPT)
68
+ return e && (this.currentNode = e), e;
69
+ let s = this.lastChild();
70
+ return s && (this.currentNode = s), s;
71
+ }
72
+ return e && (this.currentNode = e), e;
73
+ } else if (this._walkerStack.length > 1) {
74
+ this._walkerStack.shift();
75
+ let o = this.previousNode();
76
+ return o && (this.currentNode = o), o;
77
+ } else return null;
153
78
  }
154
- return null;
155
- }
156
- function b(a) {
157
- var e = a.getAttribute("role");
158
- if (e !== null) {
159
- var r = e.trim().split(" ")[0];
160
- if (r.length > 0)
161
- return r;
79
+ /**
80
+ * @deprecated
81
+ */
82
+ nextSibling() {
83
+ return null;
84
+ }
85
+ /**
86
+ * @deprecated
87
+ */
88
+ previousSibling() {
89
+ return null;
90
+ }
91
+ /**
92
+ * @deprecated
93
+ */
94
+ parentNode() {
95
+ return null;
162
96
  }
163
- return null;
97
+ constructor(t, e, r, o) {
98
+ this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (s) => {
99
+ if (s.nodeType === Node.ELEMENT_NODE) {
100
+ const d = s.shadowRoot;
101
+ if (d) {
102
+ const a = this._doc.createTreeWalker(d, this.whatToShow, {
103
+ acceptNode: this._acceptNode
104
+ });
105
+ return this._walkerStack.unshift(a), NodeFilter.FILTER_ACCEPT;
106
+ } else {
107
+ var n;
108
+ if (typeof this.filter == "function") return this.filter(s);
109
+ if (!((n = this.filter) === null || n === void 0) && n.acceptNode) return this.filter.acceptNode(s);
110
+ if (this.filter === null) return NodeFilter.FILTER_ACCEPT;
111
+ }
112
+ }
113
+ return NodeFilter.FILTER_SKIP;
114
+ }, this._doc = t, this.root = e, this.filter = o ?? null, this.whatToShow = r ?? NodeFilter.SHOW_ALL, this._currentNode = e, this._walkerStack.unshift(t.createTreeWalker(e, r, this._acceptNode));
115
+ const i = e.shadowRoot;
116
+ if (i) {
117
+ const s = this._doc.createTreeWalker(i, this.whatToShow, {
118
+ acceptNode: this._acceptNode
119
+ });
120
+ this._walkerStack.unshift(s);
121
+ }
122
+ }
123
+ }
124
+ function w(c, t, e, r) {
125
+ return h() ? new u(c, t, e, r) : c.createTreeWalker(t, e, r);
164
126
  }
165
127
  export {
166
- c as default,
167
- i as getLocalName
128
+ u as ShadowTreeWalker,
129
+ w as createShadowTreeWalker
168
130
  };
@@ -1,27 +1,27 @@
1
- import { useEffectEvent as u } from "./index.es472.js";
2
- import { useLayoutEffect as l } from "./index.es393.js";
3
- import { useState as o, useRef as s } from "react";
4
- function p(a) {
5
- let [f, c] = o(a), e = s(null), r = u(() => {
6
- if (!e.current) return;
7
- let t = e.current.next();
8
- if (t.done) {
9
- e.current = null;
10
- return;
11
- }
12
- f === t.value ? r() : c(t.value);
13
- });
14
- l(() => {
15
- e.current && r();
16
- });
17
- let n = u((t) => {
18
- e.current = t(f), r();
19
- });
20
- return [
21
- f,
22
- n
23
- ];
1
+ import { isShadowRoot as f } from "./index.es454.js";
2
+ import { shadowDOM as o } from "./index.es453.js";
3
+ function n(t, a) {
4
+ if (!o()) return a && t ? t.contains(a) : !1;
5
+ if (!t || !a) return !1;
6
+ let e = a;
7
+ for (; e !== null; ) {
8
+ if (e === t) return !0;
9
+ e.tagName === "SLOT" && e.assignedSlot ? e = e.assignedSlot.parentNode : f(e) ? e = e.host : e = e.parentNode;
10
+ }
11
+ return !1;
12
+ }
13
+ const s = (t = document) => {
14
+ var a;
15
+ if (!o()) return t.activeElement;
16
+ let e = t.activeElement;
17
+ for (; e && "shadowRoot" in e && (!((a = e.shadowRoot) === null || a === void 0) && a.activeElement); ) e = e.shadowRoot.activeElement;
18
+ return e;
19
+ };
20
+ function d(t) {
21
+ return o() && t.target.shadowRoot && t.composedPath ? t.composedPath()[0] : t.target;
24
22
  }
25
23
  export {
26
- p as useValueEffect
24
+ s as getActiveElement,
25
+ d as getEventTarget,
26
+ n as nodeContains
27
27
  };
@@ -1,8 +1,7 @@
1
- function o(...f) {
2
- return (...c) => {
3
- for (let e of f) typeof e == "function" && e(...c);
4
- };
1
+ let e = !1;
2
+ function f() {
3
+ return e;
5
4
  }
6
5
  export {
7
- o as chain
6
+ f as shadowDOM
8
7
  };
@@ -1,130 +1,15 @@
1
- import { nodeContains as l } from "./index.es455.js";
2
- import { shadowDOM as h } from "./index.es456.js";
3
- class u {
4
- get currentNode() {
5
- return this._currentNode;
6
- }
7
- set currentNode(t) {
8
- if (!l(this.root, t)) throw new Error("Cannot set currentNode to a node that is not contained by the root node.");
9
- const e = [];
10
- let r = t, o = t;
11
- for (this._currentNode = t; r && r !== this.root; ) if (r.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
12
- const s = r, n = this._doc.createTreeWalker(s, this.whatToShow, {
13
- acceptNode: this._acceptNode
14
- });
15
- e.push(n), n.currentNode = o, this._currentSetFor.add(n), r = o = s.host;
16
- } else r = r.parentNode;
17
- const i = this._doc.createTreeWalker(this.root, this.whatToShow, {
18
- acceptNode: this._acceptNode
19
- });
20
- e.push(i), i.currentNode = o, this._currentSetFor.add(i), this._walkerStack = e;
21
- }
22
- get doc() {
23
- return this._doc;
24
- }
25
- firstChild() {
26
- let t = this.currentNode, e = this.nextNode();
27
- return l(t, e) ? (e && (this.currentNode = e), e) : (this.currentNode = t, null);
28
- }
29
- lastChild() {
30
- let e = this._walkerStack[0].lastChild();
31
- return e && (this.currentNode = e), e;
32
- }
33
- nextNode() {
34
- const t = this._walkerStack[0].nextNode();
35
- if (t) {
36
- if (t.shadowRoot) {
37
- var e;
38
- let o;
39
- if (typeof this.filter == "function" ? o = this.filter(t) : !((e = this.filter) === null || e === void 0) && e.acceptNode && (o = this.filter.acceptNode(t)), o === NodeFilter.FILTER_ACCEPT)
40
- return this.currentNode = t, t;
41
- let i = this.nextNode();
42
- return i && (this.currentNode = i), i;
43
- }
44
- return t && (this.currentNode = t), t;
45
- } else if (this._walkerStack.length > 1) {
46
- this._walkerStack.shift();
47
- let r = this.nextNode();
48
- return r && (this.currentNode = r), r;
49
- } else return null;
50
- }
51
- previousNode() {
52
- const t = this._walkerStack[0];
53
- if (t.currentNode === t.root) {
54
- if (this._currentSetFor.has(t))
55
- if (this._currentSetFor.delete(t), this._walkerStack.length > 1) {
56
- this._walkerStack.shift();
57
- let o = this.previousNode();
58
- return o && (this.currentNode = o), o;
59
- } else return null;
60
- return null;
61
- }
62
- const e = t.previousNode();
63
- if (e) {
64
- if (e.shadowRoot) {
65
- var r;
66
- let i;
67
- if (typeof this.filter == "function" ? i = this.filter(e) : !((r = this.filter) === null || r === void 0) && r.acceptNode && (i = this.filter.acceptNode(e)), i === NodeFilter.FILTER_ACCEPT)
68
- return e && (this.currentNode = e), e;
69
- let s = this.lastChild();
70
- return s && (this.currentNode = s), s;
71
- }
72
- return e && (this.currentNode = e), e;
73
- } else if (this._walkerStack.length > 1) {
74
- this._walkerStack.shift();
75
- let o = this.previousNode();
76
- return o && (this.currentNode = o), o;
77
- } else return null;
78
- }
79
- /**
80
- * @deprecated
81
- */
82
- nextSibling() {
83
- return null;
84
- }
85
- /**
86
- * @deprecated
87
- */
88
- previousSibling() {
89
- return null;
90
- }
91
- /**
92
- * @deprecated
93
- */
94
- parentNode() {
95
- return null;
96
- }
97
- constructor(t, e, r, o) {
98
- this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (s) => {
99
- if (s.nodeType === Node.ELEMENT_NODE) {
100
- const d = s.shadowRoot;
101
- if (d) {
102
- const a = this._doc.createTreeWalker(d, this.whatToShow, {
103
- acceptNode: this._acceptNode
104
- });
105
- return this._walkerStack.unshift(a), NodeFilter.FILTER_ACCEPT;
106
- } else {
107
- var n;
108
- if (typeof this.filter == "function") return this.filter(s);
109
- if (!((n = this.filter) === null || n === void 0) && n.acceptNode) return this.filter.acceptNode(s);
110
- if (this.filter === null) return NodeFilter.FILTER_ACCEPT;
111
- }
112
- }
113
- return NodeFilter.FILTER_SKIP;
114
- }, this._doc = t, this.root = e, this.filter = o ?? null, this.whatToShow = r ?? NodeFilter.SHOW_ALL, this._currentNode = e, this._walkerStack.unshift(t.createTreeWalker(e, r, this._acceptNode));
115
- const i = e.shadowRoot;
116
- if (i) {
117
- const s = this._doc.createTreeWalker(i, this.whatToShow, {
118
- acceptNode: this._acceptNode
119
- });
120
- this._walkerStack.unshift(s);
121
- }
122
- }
1
+ const t = (o) => {
2
+ var n;
3
+ return (n = o == null ? void 0 : o.ownerDocument) !== null && n !== void 0 ? n : document;
4
+ }, e = (o) => o && "window" in o && o.window === o ? o : t(o).defaultView || window;
5
+ function d(o) {
6
+ return o !== null && typeof o == "object" && "nodeType" in o && typeof o.nodeType == "number";
123
7
  }
124
- function w(c, t, e, r) {
125
- return h() ? new u(c, t, e, r) : c.createTreeWalker(t, e, r);
8
+ function c(o) {
9
+ return d(o) && o.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in o;
126
10
  }
127
11
  export {
128
- u as ShadowTreeWalker,
129
- w as createShadowTreeWalker
12
+ t as getOwnerDocument,
13
+ e as getOwnerWindow,
14
+ c as isShadowRoot
130
15
  };
@@ -1,27 +1,45 @@
1
- import { isShadowRoot as f } from "./index.es457.js";
2
- import { shadowDOM as o } from "./index.es456.js";
3
- function n(t, a) {
4
- if (!o()) return a && t ? t.contains(a) : !1;
5
- if (!t || !a) return !1;
6
- let e = a;
7
- for (; e !== null; ) {
8
- if (e === t) return !0;
9
- e.tagName === "SLOT" && e.assignedSlot ? e = e.assignedSlot.parentNode : f(e) ? e = e.host : e = e.parentNode;
1
+ function f(l) {
2
+ if (c()) l.focus({
3
+ preventScroll: !0
4
+ });
5
+ else {
6
+ let e = n(l);
7
+ l.focus(), s(e);
10
8
  }
11
- return !1;
12
9
  }
13
- const s = (t = document) => {
14
- var a;
15
- if (!o()) return t.activeElement;
16
- let e = t.activeElement;
17
- for (; e && "shadowRoot" in e && (!((a = e.shadowRoot) === null || a === void 0) && a.activeElement); ) e = e.shadowRoot.activeElement;
18
- return e;
19
- };
20
- function d(t) {
21
- return o() && t.target.shadowRoot && t.composedPath ? t.composedPath()[0] : t.target;
10
+ let r = null;
11
+ function c() {
12
+ if (r == null) {
13
+ r = !1;
14
+ try {
15
+ document.createElement("div").focus({
16
+ get preventScroll() {
17
+ return r = !0, !0;
18
+ }
19
+ });
20
+ } catch {
21
+ }
22
+ }
23
+ return r;
24
+ }
25
+ function n(l) {
26
+ let e = l.parentNode, o = [], t = document.scrollingElement || document.documentElement;
27
+ for (; e instanceof HTMLElement && e !== t; )
28
+ (e.offsetHeight < e.scrollHeight || e.offsetWidth < e.scrollWidth) && o.push({
29
+ element: e,
30
+ scrollTop: e.scrollTop,
31
+ scrollLeft: e.scrollLeft
32
+ }), e = e.parentNode;
33
+ return t instanceof HTMLElement && o.push({
34
+ element: t,
35
+ scrollTop: t.scrollTop,
36
+ scrollLeft: t.scrollLeft
37
+ }), o;
38
+ }
39
+ function s(l) {
40
+ for (let { element: e, scrollTop: o, scrollLeft: t } of l)
41
+ e.scrollTop = o, e.scrollLeft = t;
22
42
  }
23
43
  export {
24
- s as getActiveElement,
25
- d as getEventTarget,
26
- n as nodeContains
44
+ f as focusWithoutScrolling
27
45
  };
@@ -1,7 +1,60 @@
1
- let e = !1;
2
- function f() {
3
- return e;
1
+ import { focusWithoutScrolling as s } from "./index.es455.js";
2
+ import { isFirefox as u, isWebKit as $, isMac as f, isIPad as y } from "./index.es457.js";
3
+ import { useContext as h, createContext as p } from "react";
4
+ const v = /* @__PURE__ */ p({
5
+ isNative: !0,
6
+ open: w,
7
+ useHref: (e) => e
8
+ });
9
+ function K() {
10
+ return h(v);
11
+ }
12
+ function r(e, a, t = !0) {
13
+ var i, n;
14
+ let { metaKey: d, ctrlKey: o, altKey: c, shiftKey: l } = a;
15
+ u() && (!((n = window.event) === null || n === void 0 || (i = n.type) === null || i === void 0) && i.startsWith("key")) && e.target === "_blank" && (f() ? d = !0 : o = !0);
16
+ let b = $() && f() && !y() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
17
+ keyIdentifier: "Enter",
18
+ metaKey: d,
19
+ ctrlKey: o,
20
+ altKey: c,
21
+ shiftKey: l
22
+ }) : new MouseEvent("click", {
23
+ metaKey: d,
24
+ ctrlKey: o,
25
+ altKey: c,
26
+ shiftKey: l,
27
+ bubbles: !0,
28
+ cancelable: !0
29
+ });
30
+ r.isOpening = t, s(e), e.dispatchEvent(b), r.isOpening = !1;
31
+ }
32
+ r.isOpening = !1;
33
+ function m(e, a) {
34
+ if (e instanceof HTMLAnchorElement) a(e);
35
+ else if (e.hasAttribute("data-href")) {
36
+ let t = document.createElement("a");
37
+ t.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (t.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (t.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (t.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (t.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (t.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(t), a(t), e.removeChild(t);
38
+ }
39
+ }
40
+ function w(e, a) {
41
+ m(e, (t) => r(t, a));
42
+ }
43
+ function _(e) {
44
+ let a = K();
45
+ var t;
46
+ const i = a.useHref((t = e.href) !== null && t !== void 0 ? t : "");
47
+ return {
48
+ "data-href": e.href ? i : void 0,
49
+ "data-target": e.target,
50
+ "data-rel": e.rel,
51
+ "data-download": e.download,
52
+ "data-ping": e.ping,
53
+ "data-referrer-policy": e.referrerPolicy
54
+ };
4
55
  }
5
56
  export {
6
- f as shadowDOM
57
+ r as openLink,
58
+ K as useRouter,
59
+ _ as useSyntheticLinkProps
7
60
  };