@boxcustodia/library 0.0.10 → 0.1.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 (724) hide show
  1. package/dist/index.d.ts +7 -3
  2. package/dist/index.es100.js +33 -55
  3. package/dist/index.es101.js +44 -53
  4. package/dist/index.es102.js +29 -89
  5. package/dist/index.es103.js +12 -37
  6. package/dist/index.es104.js +9 -24
  7. package/dist/index.es105.js +257 -28
  8. package/dist/index.es106.js +12 -259
  9. package/dist/index.es107.js +29 -12
  10. package/dist/index.es111.js +11 -29
  11. package/dist/index.es112.js +7 -7
  12. package/dist/index.es113.js +1 -1
  13. package/dist/index.es114.js +1 -1
  14. package/dist/index.es116.js +238 -19
  15. package/dist/index.es117.js +21 -12
  16. package/dist/index.es118.js +5 -4
  17. package/dist/index.es119.js +3 -4
  18. package/dist/index.es120.js +5 -4
  19. package/dist/index.es121.js +21 -21
  20. package/dist/index.es122.js +1 -1
  21. package/dist/index.es123.js +1 -1
  22. package/dist/index.es124.js +2 -2
  23. package/dist/index.es125.js +30 -237
  24. package/dist/index.es126.js +13 -88
  25. package/dist/index.es128.js +85 -30
  26. package/dist/index.es129.js +13 -13
  27. package/dist/index.es130.js +5 -12
  28. package/dist/index.es131.js +2 -6
  29. package/dist/index.es132.js +216 -2
  30. package/dist/index.es134.js +1 -1
  31. package/dist/index.es135.js +1 -1
  32. package/dist/index.es136.js +15 -6
  33. package/dist/index.es137.js +199 -3
  34. package/dist/index.es138.js +39 -2051
  35. package/dist/index.es139.js +11 -13
  36. package/dist/index.es140.js +10 -196
  37. package/dist/index.es141.js +19 -40
  38. package/dist/index.es142.js +36 -12
  39. package/dist/index.es143.js +10 -11
  40. package/dist/index.es144.js +12 -205
  41. package/dist/index.es145.js +205 -11
  42. package/dist/index.es146.js +5 -19
  43. package/dist/index.es147.js +63 -35
  44. package/dist/index.es148.js +10 -10
  45. package/dist/index.es149.js +123 -5
  46. package/dist/index.es150.js +128 -58
  47. package/dist/index.es151.js +14 -11
  48. package/dist/index.es152.js +30 -122
  49. package/dist/index.es153.js +14 -134
  50. package/dist/index.es154.js +7 -12
  51. package/dist/index.es155.js +49 -32
  52. package/dist/index.es156.js +646 -11
  53. package/dist/index.es157.js +217 -8
  54. package/dist/index.es158.js +3 -49
  55. package/dist/index.es159.js +3 -649
  56. package/dist/index.es160.js +44 -42
  57. package/dist/index.es161.js +8 -4
  58. package/dist/index.es162.js +5 -3
  59. package/dist/index.es163.js +27 -45
  60. package/dist/index.es164.js +44 -8
  61. package/dist/index.es165.js +114 -214
  62. package/dist/index.es166.js +32 -5
  63. package/dist/index.es167.js +2 -28
  64. package/dist/index.es168.js +2 -118
  65. package/dist/index.es169.js +15 -33
  66. package/dist/index.es170.js +3 -2
  67. package/dist/index.es171.js +10 -2
  68. package/dist/index.es172.js +5 -9
  69. package/dist/index.es173.js +13 -5
  70. package/dist/index.es174.js +81 -12
  71. package/dist/index.es175.js +14 -81
  72. package/dist/index.es176.js +32 -14
  73. package/dist/index.es177.js +127 -27
  74. package/dist/index.es178.js +164 -122
  75. package/dist/index.es179.js +11 -175
  76. package/dist/index.es180.js +79 -12
  77. package/dist/index.es181.js +16 -77
  78. package/dist/index.es182.js +9 -18
  79. package/dist/index.es183.js +50 -8
  80. package/dist/index.es184.js +7 -50
  81. package/dist/index.es185.js +5 -7
  82. package/dist/index.es186.js +4 -5
  83. package/dist/index.es187.js +17 -4
  84. package/dist/index.es188.js +5 -17
  85. package/dist/index.es189.js +5 -5
  86. package/dist/index.es190.js +8 -5
  87. package/dist/index.es191.js +6 -9
  88. package/dist/index.es192.js +7 -6
  89. package/dist/index.es193.js +15 -6
  90. package/dist/index.es194.js +13 -15
  91. package/dist/index.es195.js +12 -12
  92. package/dist/index.es196.js +6 -13
  93. package/dist/index.es197.js +6 -6
  94. package/dist/index.es198.js +6 -6
  95. package/dist/index.es199.js +4 -6
  96. package/dist/index.es200.js +515 -4
  97. package/dist/index.es201.js +48 -514
  98. package/dist/index.es202.js +18 -50
  99. package/dist/index.es203.js +9 -17
  100. package/dist/index.es204.js +19 -10
  101. package/dist/index.es205.js +8 -18
  102. package/dist/index.es206.js +7 -8
  103. package/dist/index.es207.js +7 -7
  104. package/dist/index.es208.js +5 -7
  105. package/dist/index.es209.js +6 -5
  106. package/dist/index.es210.js +9 -6
  107. package/dist/index.es211.js +5 -9
  108. package/dist/index.es212.js +8 -5
  109. package/dist/index.es213.js +12 -8
  110. package/dist/index.es214.js +9 -12
  111. package/dist/index.es215.js +8 -9
  112. package/dist/index.es216.js +10 -8
  113. package/dist/index.es217.js +14 -10
  114. package/dist/index.es218.js +6 -14
  115. package/dist/index.es219.js +6 -6
  116. package/dist/index.es22.js +2 -2
  117. package/dist/index.es220.js +6 -6
  118. package/dist/index.es221.js +6 -6
  119. package/dist/index.es222.js +6 -6
  120. package/dist/index.es223.js +9 -6
  121. package/dist/index.es224.js +84 -9
  122. package/dist/index.es225.js +65 -85
  123. package/dist/index.es226.js +38 -65
  124. package/dist/index.es227.js +9 -37
  125. package/dist/index.es228.js +8 -9
  126. package/dist/index.es229.js +6 -7
  127. package/dist/index.es230.js +10 -7
  128. package/dist/index.es231.js +7 -10
  129. package/dist/index.es232.js +7 -7
  130. package/dist/index.es233.js +6 -7
  131. package/dist/index.es234.js +5 -6
  132. package/dist/index.es235.js +15 -5
  133. package/dist/index.es236.js +11 -15
  134. package/dist/index.es237.js +21 -12
  135. package/dist/index.es238.js +9 -2
  136. package/dist/index.es239.js +35 -395
  137. package/dist/index.es240.js +15 -720
  138. package/dist/index.es241.js +6 -283
  139. package/dist/index.es242.js +3 -63
  140. package/dist/index.es243.js +2052 -8
  141. package/dist/index.es244.js +19 -29
  142. package/dist/index.es245.js +53 -198
  143. package/dist/index.es246.js +16 -21
  144. package/dist/index.es247.js +178 -9
  145. package/dist/index.es248.js +201 -38
  146. package/dist/index.es249.js +22 -18
  147. package/dist/index.es250.js +25 -15
  148. package/dist/index.es251.js +371 -3
  149. package/dist/index.es252.js +26 -19
  150. package/dist/index.es253.js +5 -54
  151. package/dist/index.es254.js +8 -16
  152. package/dist/index.es255.js +13 -177
  153. package/dist/index.es256.js +13 -200
  154. package/dist/index.es257.js +134 -21
  155. package/dist/index.es258.js +31 -24
  156. package/dist/index.es259.js +454 -362
  157. package/dist/index.es260.js +131 -25
  158. package/dist/index.es261.js +27 -5
  159. package/dist/index.es262.js +4 -7
  160. package/dist/index.es263.js +25 -12
  161. package/dist/index.es264.js +7 -13
  162. package/dist/index.es265.js +11 -134
  163. package/dist/index.es266.js +27 -30
  164. package/dist/index.es267.js +46 -460
  165. package/dist/index.es268.js +28 -129
  166. package/dist/index.es269.js +43 -26
  167. package/dist/index.es27.js +1 -1
  168. package/dist/index.es270.js +158 -4
  169. package/dist/index.es271.js +30 -23
  170. package/dist/index.es272.js +2 -8
  171. package/dist/index.es273.js +77 -9
  172. package/dist/index.es274.js +18 -28
  173. package/dist/index.es275.js +24 -48
  174. package/dist/index.es276.js +16 -31
  175. package/dist/index.es277.js +8 -44
  176. package/dist/index.es278.js +4 -159
  177. package/dist/index.es279.js +13 -33
  178. package/dist/index.es28.js +1 -1
  179. package/dist/index.es280.js +15 -2
  180. package/dist/index.es281.js +4 -79
  181. package/dist/index.es282.js +57 -19
  182. package/dist/index.es283.js +28 -4
  183. package/dist/index.es284.js +46 -13
  184. package/dist/index.es285.js +66 -14
  185. package/dist/index.es286.js +35 -22
  186. package/dist/index.es287.js +19 -16
  187. package/dist/index.es288.js +68 -8
  188. package/dist/index.es289.js +67 -4
  189. package/dist/index.es29.js +3 -3
  190. package/dist/index.es290.js +66 -54
  191. package/dist/index.es291.js +61 -20
  192. package/dist/index.es292.js +37 -38
  193. package/dist/index.es293.js +28 -48
  194. package/dist/index.es294.js +44 -23
  195. package/dist/index.es295.js +43 -13
  196. package/dist/index.es296.js +26 -51
  197. package/dist/index.es297.js +47 -43
  198. package/dist/index.es298.js +46 -43
  199. package/dist/index.es299.js +74 -46
  200. package/dist/index.es30.js +6 -6
  201. package/dist/index.es300.js +39 -38
  202. package/dist/index.es301.js +39 -39
  203. package/dist/index.es302.js +39 -51
  204. package/dist/index.es303.js +21 -39
  205. package/dist/index.es304.js +21 -34
  206. package/dist/index.es305.js +21 -63
  207. package/dist/index.es306.js +22 -63
  208. package/dist/index.es307.js +21 -88
  209. package/dist/index.es308.js +22 -39
  210. package/dist/index.es309.js +14 -41
  211. package/dist/index.es310.js +38 -39
  212. package/dist/index.es311.js +38 -23
  213. package/dist/index.es312.js +13 -23
  214. package/dist/index.es313.js +14 -24
  215. package/dist/index.es314.js +23 -29
  216. package/dist/index.es315.js +29 -30
  217. package/dist/index.es316.js +5 -30
  218. package/dist/index.es317.js +2 -20
  219. package/dist/index.es318.js +393 -41
  220. package/dist/index.es319.js +720 -43
  221. package/dist/index.es32.js +4 -4
  222. package/dist/index.es320.js +279 -16
  223. package/dist/index.es321.js +57 -16
  224. package/dist/index.es322.js +10 -2
  225. package/dist/index.es323.js +29 -2
  226. package/dist/index.es324.js +198 -24
  227. package/dist/index.es325.js +10 -29
  228. package/dist/index.es326.js +5 -5
  229. package/dist/index.es327.js +13 -2
  230. package/dist/index.es328.js +5 -106
  231. package/dist/index.es329.js +5 -74
  232. package/dist/index.es33.js +2 -2
  233. package/dist/index.es330.js +334 -35
  234. package/dist/index.es331.js +20 -64
  235. package/dist/index.es332.js +4 -33
  236. package/dist/index.es333.js +5 -65
  237. package/dist/index.es334.js +4 -113
  238. package/dist/index.es335.js +70 -91
  239. package/dist/index.es336.js +5 -43
  240. package/dist/index.es337.js +6 -2
  241. package/dist/index.es338.js +34 -2
  242. package/dist/index.es339.js +26 -2
  243. package/dist/index.es340.js +18 -2
  244. package/dist/index.es341.js +5 -2
  245. package/dist/index.es342.js +231 -2
  246. package/dist/index.es343.js +100 -2
  247. package/dist/index.es344.js +28 -2
  248. package/dist/index.es345.js +55 -2
  249. package/dist/index.es346.js +319 -224
  250. package/dist/index.es347.js +33 -384
  251. package/dist/index.es348.js +18 -168
  252. package/dist/index.es349.js +30 -152
  253. package/dist/index.es35.js +5 -5
  254. package/dist/index.es350.js +30 -141
  255. package/dist/index.es351.js +5 -2
  256. package/dist/index.es352.js +2 -2
  257. package/dist/index.es353.js +54 -2
  258. package/dist/index.es354.js +59 -2
  259. package/dist/index.es355.js +68 -2
  260. package/dist/index.es356.js +31 -2
  261. package/dist/index.es357.js +9 -10
  262. package/dist/index.es358.js +153 -5
  263. package/dist/index.es359.js +108 -13
  264. package/dist/index.es36.js +2 -2
  265. package/dist/index.es360.js +19 -4
  266. package/dist/index.es361.js +99 -5
  267. package/dist/index.es362.js +46 -333
  268. package/dist/index.es363.js +2 -19
  269. package/dist/index.es364.js +2 -4
  270. package/dist/index.es365.js +5 -5
  271. package/dist/index.es366.js +3 -3
  272. package/dist/index.es367.js +20 -68
  273. package/dist/index.es368.js +110 -4
  274. package/dist/index.es369.js +16 -6
  275. package/dist/index.es370.js +68 -34
  276. package/dist/index.es371.js +30 -25
  277. package/dist/index.es372.js +16 -18
  278. package/dist/index.es373.js +140 -4
  279. package/dist/index.es374.js +112 -229
  280. package/dist/index.es375.js +509 -90
  281. package/dist/index.es376.js +126 -27
  282. package/dist/index.es377.js +118 -47
  283. package/dist/index.es378.js +5 -333
  284. package/dist/index.es379.js +2 -31
  285. package/dist/index.es380.js +8 -17
  286. package/dist/index.es381.js +326 -28
  287. package/dist/index.es382.js +50 -29
  288. package/dist/index.es383.js +4 -5
  289. package/dist/index.es384.js +2 -68
  290. package/dist/index.es385.js +106 -31
  291. package/dist/index.es386.js +76 -9
  292. package/dist/index.es387.js +35 -153
  293. package/dist/index.es388.js +63 -108
  294. package/dist/index.es389.js +34 -3
  295. package/dist/index.es39.js +1 -1
  296. package/dist/index.es390.js +64 -53
  297. package/dist/index.es391.js +110 -57
  298. package/dist/index.es392.js +93 -20
  299. package/dist/index.es393.js +43 -102
  300. package/dist/index.es394.js +2 -47
  301. package/dist/index.es395.js +2 -2
  302. package/dist/index.es396.js +2 -8
  303. package/dist/index.es397.js +2 -46
  304. package/dist/index.es398.js +2 -2
  305. package/dist/index.es399.js +2 -6
  306. package/dist/index.es40.js +1 -1
  307. package/dist/index.es400.js +4 -24
  308. package/dist/index.es401.js +2 -2
  309. package/dist/index.es402.js +4 -35
  310. package/dist/index.es403.js +238 -174
  311. package/dist/index.es404.js +381 -86
  312. package/dist/index.es405.js +166 -14
  313. package/dist/index.es406.js +153 -4
  314. package/dist/index.es407.js +142 -4
  315. package/dist/index.es410.js +2 -24
  316. package/dist/index.es412.js +2 -5
  317. package/dist/index.es413.js +2 -3
  318. package/dist/index.es414.js +2 -24
  319. package/dist/index.es415.js +44 -107
  320. package/dist/index.es416.js +82 -15
  321. package/dist/index.es417.js +11 -272
  322. package/dist/index.es418.js +333 -72
  323. package/dist/index.es419.js +68 -159
  324. package/dist/index.es42.js +1 -1
  325. package/dist/index.es420.js +11 -68
  326. package/dist/index.es421.js +24 -30
  327. package/dist/index.es422.js +11 -16
  328. package/dist/index.es423.js +33 -141
  329. package/dist/index.es424.js +29 -113
  330. package/dist/index.es425.js +11 -5
  331. package/dist/index.es426.js +2 -2
  332. package/dist/index.es427.js +2 -8
  333. package/dist/index.es428.js +3 -327
  334. package/dist/index.es429.js +103 -46
  335. package/dist/index.es43.js +1 -1
  336. package/dist/index.es430.js +6 -3
  337. package/dist/index.es431.js +13 -516
  338. package/dist/index.es432.js +25 -123
  339. package/dist/index.es433.js +11 -124
  340. package/dist/index.es434.js +69 -2
  341. package/dist/index.es435.js +9 -47
  342. package/dist/index.es436.js +13 -82
  343. package/dist/index.es437.js +60 -14
  344. package/dist/index.es438.js +57 -333
  345. package/dist/index.es439.js +2 -75
  346. package/dist/index.es440.js +75 -10
  347. package/dist/index.es441.js +92 -24
  348. package/dist/index.es442.js +51 -10
  349. package/dist/index.es443.js +7 -32
  350. package/dist/index.es444.js +4 -29
  351. package/dist/index.es445.js +51 -11
  352. package/dist/index.es446.js +2 -3
  353. package/dist/index.es447.js +8 -107
  354. package/dist/index.es448.js +46 -2
  355. package/dist/index.es449.js +2 -2
  356. package/dist/index.es45.js +1 -1
  357. package/dist/index.es450.js +6 -7
  358. package/dist/index.es451.js +23 -17
  359. package/dist/index.es452.js +2 -29
  360. package/dist/index.es453.js +34 -14
  361. package/dist/index.es454.js +173 -4
  362. package/dist/index.es455.js +89 -4
  363. package/dist/index.es456.js +17 -4
  364. package/dist/index.es457.js +2 -79
  365. package/dist/index.es458.js +2 -96
  366. package/dist/index.es459.js +4 -27
  367. package/dist/index.es46.js +1 -1
  368. package/dist/index.es460.js +2 -2
  369. package/dist/index.es461.js +26 -21
  370. package/dist/index.es462.js +4 -24
  371. package/dist/index.es463.js +4 -28
  372. package/dist/index.es464.js +4 -21
  373. package/dist/index.es465.js +277 -25
  374. package/dist/index.es466.js +82 -49
  375. package/dist/index.es467.js +168 -36
  376. package/dist/index.es468.js +45 -21
  377. package/dist/index.es469.js +65 -23
  378. package/dist/index.es47.js +15 -14
  379. package/dist/index.es470.js +21 -21
  380. package/dist/index.es471.js +7 -21
  381. package/dist/index.es472.js +45 -23
  382. package/dist/index.es473.js +5 -2
  383. package/dist/index.es474.js +14 -2
  384. package/dist/index.es475.js +14 -2
  385. package/dist/index.es476.js +60 -2
  386. package/dist/index.es477.js +4 -2
  387. package/dist/index.es478.js +23 -2
  388. package/dist/index.es479.js +2 -2
  389. package/dist/index.es48.js +4 -4
  390. package/dist/index.es481.js +8 -4
  391. package/dist/index.es482.js +2 -2
  392. package/dist/index.es483.js +2 -2
  393. package/dist/index.es484.js +79 -2
  394. package/dist/index.es485.js +98 -29
  395. package/dist/index.es486.js +24 -23
  396. package/dist/index.es487.js +4 -32
  397. package/dist/index.es488.js +5 -13
  398. package/dist/index.es489.js +8 -11
  399. package/dist/index.es49.js +1 -1
  400. package/dist/index.es490.js +11 -9
  401. package/dist/index.es491.js +11 -62
  402. package/dist/index.es492.js +13 -14
  403. package/dist/index.es493.js +33 -16
  404. package/dist/index.es494.js +19 -27
  405. package/dist/index.es495.js +8 -13
  406. package/dist/index.es496.js +12 -35
  407. package/dist/index.es497.js +11 -113
  408. package/dist/index.es498.js +8 -33
  409. package/dist/index.es499.js +9 -13
  410. package/dist/index.es50.js +22 -18
  411. package/dist/index.es500.js +4 -26
  412. package/dist/index.es501.js +4 -26
  413. package/dist/index.es502.js +4 -26
  414. package/dist/index.es503.js +4 -23
  415. package/dist/index.es504.js +4 -30
  416. package/dist/index.es505.js +4 -26
  417. package/dist/index.es506.js +4 -21
  418. package/dist/index.es507.js +4 -26
  419. package/dist/index.es508.js +4 -48
  420. package/dist/index.es509.js +4 -118
  421. package/dist/index.es51.js +1 -1
  422. package/dist/index.es510.js +4 -24
  423. package/dist/index.es511.js +4 -36
  424. package/dist/index.es512.js +6 -21
  425. package/dist/index.es513.js +8 -37
  426. package/dist/index.es514.js +14 -26
  427. package/dist/index.es515.js +8 -5
  428. package/dist/index.es516.js +8 -24
  429. package/dist/index.es517.js +4 -14
  430. package/dist/index.es518.js +30 -20
  431. package/dist/index.es519.js +9 -19
  432. package/dist/index.es52.js +1 -1
  433. package/dist/index.es520.js +16 -7
  434. package/dist/index.es521.js +25 -7
  435. package/dist/index.es522.js +5 -9
  436. package/dist/index.es523.js +34 -9
  437. package/dist/index.es524.js +105 -8
  438. package/dist/index.es525.js +19 -16
  439. package/dist/index.es526.js +8 -9
  440. package/dist/index.es527.js +11 -27
  441. package/dist/index.es528.js +10 -12
  442. package/dist/index.es529.js +10 -12
  443. package/dist/index.es53.js +1 -1
  444. package/dist/index.es530.js +8 -17
  445. package/dist/index.es531.js +8 -4
  446. package/dist/index.es532.js +11 -6
  447. package/dist/index.es533.js +2 -2
  448. package/dist/index.es534.js +10 -27
  449. package/dist/index.es535.js +29 -7
  450. package/dist/index.es536.js +96 -8
  451. package/dist/index.es537.js +6 -15
  452. package/dist/index.es538.js +18 -18
  453. package/dist/index.es539.js +22 -9
  454. package/dist/index.es540.js +31 -19
  455. package/dist/index.es541.js +30 -20
  456. package/dist/index.es542.js +7 -17
  457. package/dist/index.es543.js +14 -12
  458. package/dist/index.es544.js +24 -18
  459. package/dist/index.es545.js +49 -8
  460. package/dist/index.es546.js +16 -14
  461. package/dist/index.es547.js +7 -17
  462. package/dist/index.es548.js +9 -24
  463. package/dist/index.es549.js +9 -16
  464. package/dist/index.es550.js +6 -14
  465. package/dist/index.es551.js +3 -3
  466. package/dist/index.es552.js +27 -10
  467. package/dist/index.es553.js +11 -9
  468. package/dist/index.es554.js +25 -11
  469. package/dist/index.es555.js +16 -16
  470. package/dist/index.es556.js +14 -15
  471. package/dist/index.es557.js +15 -13
  472. package/dist/index.es558.js +10 -5
  473. package/dist/index.es559.js +5 -15
  474. package/dist/index.es56.js +1 -1
  475. package/dist/index.es560.js +7 -92
  476. package/dist/index.es561.js +27 -10
  477. package/dist/index.es562.js +11 -6
  478. package/dist/index.es563.js +12 -10
  479. package/dist/index.es564.js +20 -8
  480. package/dist/index.es565.js +20 -11
  481. package/dist/index.es566.js +16 -6
  482. package/dist/index.es567.js +32 -15
  483. package/dist/index.es568.js +34 -4
  484. package/dist/index.es569.js +36 -4
  485. package/dist/index.es57.js +1 -1
  486. package/dist/index.es570.js +41 -4
  487. package/dist/index.es571.js +30 -4
  488. package/dist/index.es572.js +21 -4
  489. package/dist/index.es573.js +34 -4
  490. package/dist/index.es574.js +33 -4
  491. package/dist/index.es575.js +41 -4
  492. package/dist/index.es576.js +37 -4
  493. package/dist/index.es577.js +29 -4
  494. package/dist/index.es578.js +26 -4
  495. package/dist/index.es579.js +26 -4
  496. package/dist/index.es58.js +2 -2
  497. package/dist/index.es580.js +26 -4
  498. package/dist/index.es581.js +28 -4
  499. package/dist/index.es582.js +28 -4
  500. package/dist/index.es583.js +29 -4
  501. package/dist/index.es584.js +30 -4
  502. package/dist/index.es585.js +21 -4
  503. package/dist/index.es586.js +31 -4
  504. package/dist/index.es587.js +106 -4
  505. package/dist/index.es588.js +26 -4
  506. package/dist/index.es589.js +21 -4
  507. package/dist/index.es590.js +28 -4
  508. package/dist/index.es591.js +21 -4
  509. package/dist/index.es592.js +27 -4
  510. package/dist/index.es593.js +21 -4
  511. package/dist/index.es594.js +26 -4
  512. package/dist/index.es595.js +2 -2
  513. package/dist/index.es596.js +2 -2
  514. package/dist/index.es597.js +2 -2
  515. package/dist/index.es60.js +1 -1
  516. package/dist/index.es600.js +2 -2
  517. package/dist/index.es602.js +2 -2
  518. package/dist/index.es603.js +2 -2
  519. package/dist/index.es604.js +2 -2
  520. package/dist/index.es605.js +2 -2
  521. package/dist/index.es607.js +2 -2
  522. package/dist/index.es609.js +2 -2
  523. package/dist/index.es612.js +2 -2
  524. package/dist/index.es613.js +2 -2
  525. package/dist/index.es614.js +2 -2
  526. package/dist/index.es617.js +2 -2
  527. package/dist/index.es618.js +2 -2
  528. package/dist/index.es62.js +1 -1
  529. package/dist/index.es621.js +2 -2
  530. package/dist/index.es624.js +2 -2
  531. package/dist/index.es625.js +2 -2
  532. package/dist/index.es627.js +2 -2
  533. package/dist/index.es628.js +2 -2
  534. package/dist/index.es63.js +1 -1
  535. package/dist/index.es630.js +2 -2
  536. package/dist/index.es631.js +2 -2
  537. package/dist/index.es632.js +2 -2
  538. package/dist/index.es633.js +2 -2
  539. package/dist/index.es634.js +2 -2
  540. package/dist/index.es635.js +2 -2
  541. package/dist/index.es636.js +2 -2
  542. package/dist/index.es638.js +2 -2
  543. package/dist/index.es64.js +2 -2
  544. package/dist/index.es640.js +2 -2
  545. package/dist/index.es644.js +2 -2
  546. package/dist/index.es645.js +2 -2
  547. package/dist/index.es646.js +2 -2
  548. package/dist/index.es647.js +2 -2
  549. package/dist/index.es648.js +2 -2
  550. package/dist/index.es649.js +2 -2
  551. package/dist/index.es65.js +1 -1
  552. package/dist/index.es651.js +4 -32
  553. package/dist/index.es652.js +4 -32
  554. package/dist/index.es653.js +4 -32
  555. package/dist/index.es654.js +4 -32
  556. package/dist/index.es655.js +4 -29
  557. package/dist/index.es656.js +4 -32
  558. package/dist/index.es657.js +4 -32
  559. package/dist/index.es658.js +4 -29
  560. package/dist/index.es659.js +4 -32
  561. package/dist/index.es66.js +3 -3
  562. package/dist/index.es660.js +4 -32
  563. package/dist/index.es661.js +4 -32
  564. package/dist/index.es662.js +4 -32
  565. package/dist/index.es663.js +4 -32
  566. package/dist/index.es664.js +4 -32
  567. package/dist/index.es665.js +4 -32
  568. package/dist/index.es666.js +4 -32
  569. package/dist/index.es667.js +4 -32
  570. package/dist/index.es668.js +4 -32
  571. package/dist/index.es669.js +4 -32
  572. package/dist/index.es67.js +18 -16
  573. package/dist/index.es670.js +4 -32
  574. package/dist/index.es671.js +4 -27
  575. package/dist/index.es672.js +4 -32
  576. package/dist/index.es673.js +4 -32
  577. package/dist/index.es674.js +4 -32
  578. package/dist/index.es675.js +4 -29
  579. package/dist/index.es676.js +4 -32
  580. package/dist/index.es677.js +4 -32
  581. package/dist/index.es678.js +9 -6
  582. package/dist/index.es679.js +5 -5
  583. package/dist/index.es68.js +1 -1
  584. package/dist/index.es680.js +5 -4
  585. package/dist/index.es681.js +2 -2
  586. package/dist/index.es682.js +3 -6
  587. package/dist/index.es683.js +5 -5
  588. package/dist/index.es684.js +2 -2
  589. package/dist/index.es685.js +11 -8
  590. package/dist/index.es686.js +5 -5
  591. package/dist/index.es687.js +4 -4
  592. package/dist/index.es688.js +2 -2
  593. package/dist/index.es689.js +5 -5
  594. package/dist/index.es690.js +32 -4
  595. package/dist/index.es691.js +32 -4
  596. package/dist/index.es692.js +32 -4
  597. package/dist/index.es693.js +32 -4
  598. package/dist/index.es694.js +32 -4
  599. package/dist/index.es695.js +32 -4
  600. package/dist/index.es696.js +32 -4
  601. package/dist/index.es697.js +32 -4
  602. package/dist/index.es698.js +27 -4
  603. package/dist/index.es699.js +32 -4
  604. package/dist/index.es700.js +32 -4
  605. package/dist/index.es701.js +32 -4
  606. package/dist/index.es702.js +29 -4
  607. package/dist/index.es703.js +32 -4
  608. package/dist/index.es704.js +32 -4
  609. package/dist/index.es705.js +29 -4
  610. package/dist/index.es706.js +32 -4
  611. package/dist/index.es707.js +31 -4
  612. package/dist/index.es708.js +32 -4
  613. package/dist/index.es709.js +32 -4
  614. package/dist/index.es710.js +32 -4
  615. package/dist/index.es711.js +32 -4
  616. package/dist/index.es712.js +26 -4
  617. package/dist/index.es713.js +32 -4
  618. package/dist/index.es714.js +32 -4
  619. package/dist/index.es715.js +32 -4
  620. package/dist/index.es716.js +32 -4
  621. package/dist/index.es717.js +2 -2
  622. package/dist/index.es718.js +2 -2
  623. package/dist/index.es719.js +2 -2
  624. package/dist/index.es722.js +2 -2
  625. package/dist/index.es725.js +2 -2
  626. package/dist/index.es726.js +2 -2
  627. package/dist/index.es729.js +4 -42
  628. package/dist/index.es730.js +4 -46
  629. package/dist/index.es731.js +4 -27
  630. package/dist/index.es732.js +2 -2
  631. package/dist/index.es733.js +2 -2
  632. package/dist/index.es735.js +2 -69
  633. package/dist/index.es736.js +2 -9
  634. package/dist/index.es737.js +2 -14
  635. package/dist/index.es738.js +2 -60
  636. package/dist/index.es739.js +2 -65
  637. package/dist/index.es740.js +2 -22
  638. package/dist/index.es741.js +2 -83
  639. package/dist/index.es742.js +2 -2
  640. package/dist/index.es743.js +2 -76
  641. package/dist/index.es744.js +2 -93
  642. package/dist/index.es745.js +2 -52
  643. package/dist/index.es746.js +2 -8
  644. package/dist/index.es747.js +2 -5
  645. package/dist/index.es748.js +2 -52
  646. package/dist/index.es749.js +2 -2
  647. package/dist/index.es750.js +2 -2
  648. package/dist/index.es751.js +2 -43
  649. package/dist/index.es752.js +2 -63
  650. package/dist/index.es753.js +2 -19
  651. package/dist/index.es754.js +2 -5
  652. package/dist/index.es755.js +2 -43
  653. package/dist/index.es756.js +42 -7
  654. package/dist/index.es757.js +46 -16
  655. package/dist/index.es758.js +27 -16
  656. package/dist/index.es759.js +2 -60
  657. package/dist/index.es760.js +2 -2
  658. package/dist/index.es761.js +2 -2
  659. package/dist/index.es762.js +21 -3
  660. package/dist/index.es763.js +82 -22
  661. package/dist/index.es764.js +24 -2
  662. package/dist/index.es765.js +8 -2
  663. package/dist/index.es766.js +64 -21
  664. package/dist/index.es767.js +52 -8
  665. package/dist/index.es768.js +60 -56
  666. package/dist/index.es769.js +5 -52
  667. package/dist/index.es770.js +15 -69
  668. package/dist/index.es771.js +8 -5
  669. package/dist/index.es772.js +54 -15
  670. package/dist/index.es773.js +18 -7
  671. package/dist/index.es774.js +23 -56
  672. package/dist/index.es775.js +13 -19
  673. package/dist/index.es776.js +25 -20
  674. package/dist/index.es777.js +4 -12
  675. package/dist/index.es778.js +2 -28
  676. package/dist/index.es779.js +2 -5
  677. package/dist/index.es781.js +3 -3
  678. package/dist/index.es783.js +1 -1
  679. package/dist/index.es784.js +1 -1
  680. package/dist/index.es787.js +56 -20
  681. package/dist/index.es788.js +9 -57
  682. package/dist/index.es789.js +14 -9
  683. package/dist/index.es79.js +1 -1
  684. package/dist/index.es790.js +6 -14
  685. package/dist/index.es791.js +21 -6
  686. package/dist/index.es792.js +1 -1
  687. package/dist/index.es798.js +1 -1
  688. package/dist/index.es799.js +1 -1
  689. package/dist/index.es80.js +1 -1
  690. package/dist/index.es800.js +1 -1
  691. package/dist/index.es801.js +1 -1
  692. package/dist/index.es802.js +1 -1
  693. package/dist/index.es803.js +1 -1
  694. package/dist/index.es805.js +1 -1
  695. package/dist/index.es807.js +8 -10
  696. package/dist/index.es808.js +9 -7
  697. package/dist/index.es809.js +1 -1
  698. package/dist/index.es810.js +10 -8
  699. package/dist/index.es811.js +7 -9
  700. package/dist/index.es824.js +1 -1
  701. package/dist/index.es826.js +25 -38
  702. package/dist/index.es827.js +38 -25
  703. package/dist/index.es828.js +1 -1
  704. package/dist/index.es83.js +2 -2
  705. package/dist/index.es830.js +1 -1
  706. package/dist/index.es831.js +1 -1
  707. package/dist/index.es832.js +1 -1
  708. package/dist/index.es84.js +2 -2
  709. package/dist/index.es86.js +298 -207
  710. package/dist/index.es87.js +12 -307
  711. package/dist/index.es88.js +33 -12
  712. package/dist/index.es89.js +30 -33
  713. package/dist/index.es90.js +4 -33
  714. package/dist/index.es91.js +14 -46
  715. package/dist/index.es92.js +5 -30
  716. package/dist/index.es93.js +55 -28
  717. package/dist/index.es94.js +55 -12
  718. package/dist/index.es95.js +54 -3
  719. package/dist/index.es96.js +90 -14
  720. package/dist/index.es97.js +37 -5
  721. package/dist/index.es98.js +23 -56
  722. package/dist/index.es99.js +30 -9
  723. package/dist/style.css +96 -130
  724. package/package.json +1 -1
@@ -1,373 +1,465 @@
1
- import { offset as et, shift as it, flip as nt, size as ot, hide as st, computePosition as rt, arrow as ct, limitShift as lt } from "./index.es431.js";
2
- import { createCoords as b, rectToClientRect as X, round as A, floor as z, max as T, min as V } from "./index.es432.js";
3
- import { getOverflowAncestors as $, isElement as x, getWindow as E, getFrameElement as U, getComputedStyle as y, getDocumentElement as C, isHTMLElement as R, isWebKit as j, isTopLayer as S, getNodeName as M, isOverflowElement as _, getNodeScroll as N, getParentNode as W, isLastTraversableNode as D, isTableElement as ft, isContainingBlock as G, getContainingBlock as ut } from "./index.es433.js";
4
- function J(t) {
5
- const e = y(t);
6
- let n = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
7
- const o = R(t), c = o ? t.offsetWidth : n, s = o ? t.offsetHeight : i, r = A(n) !== c || A(i) !== s;
8
- return r && (n = c, i = s), {
9
- width: n,
10
- height: i,
11
- $: r
12
- };
13
- }
14
- function k(t) {
15
- return x(t) ? t : t.contextElement;
16
- }
17
- function F(t) {
18
- const e = k(t);
19
- if (!R(e))
20
- return b(1);
21
- const n = e.getBoundingClientRect(), {
22
- width: i,
23
- height: o,
24
- $: c
25
- } = J(e);
26
- let s = (c ? A(n.width) : n.width) / i, r = (c ? A(n.height) : n.height) / o;
27
- return (!s || !Number.isFinite(s)) && (s = 1), (!r || !Number.isFinite(r)) && (r = 1), {
28
- x: s,
29
- y: r
30
- };
31
- }
32
- const ht = /* @__PURE__ */ b(0);
33
- function Q(t) {
34
- const e = E(t);
35
- return !j() || !e.visualViewport ? ht : {
36
- x: e.visualViewport.offsetLeft,
37
- y: e.visualViewport.offsetTop
38
- };
39
- }
40
- function at(t, e, n) {
41
- return e === void 0 && (e = !1), !n || e && n !== E(t) ? !1 : e;
42
- }
43
- function L(t, e, n, i) {
44
- e === void 0 && (e = !1), n === void 0 && (n = !1);
45
- const o = t.getBoundingClientRect(), c = k(t);
46
- let s = b(1);
47
- e && (i ? x(i) && (s = F(i)) : s = F(t));
48
- const r = at(c, n, i) ? Q(c) : b(0);
49
- let l = (o.left + r.x) / s.x, f = (o.top + r.y) / s.y, u = o.width / s.x, h = o.height / s.y;
50
- if (c) {
51
- const w = E(c), g = i && x(i) ? E(i) : i;
52
- let v = w, a = U(v);
53
- for (; a && i && g !== v; ) {
54
- const p = F(a), d = a.getBoundingClientRect(), m = y(a), O = d.left + (a.clientLeft + parseFloat(m.paddingLeft)) * p.x, B = d.top + (a.clientTop + parseFloat(m.paddingTop)) * p.y;
55
- l *= p.x, f *= p.y, u *= p.x, h *= p.y, l += O, f += B, v = E(a), a = U(v);
56
- }
1
+ import * as T from "./index.es260.js";
2
+ import { access as p, identifyNull as D, getInsertParentId as R, getInsertIndex as O, isDescendant as C, dfs as P, walk as x, waitFor as A } from "./index.es260.js";
3
+ import { DefaultCursor as E } from "./index.es261.js";
4
+ import { DefaultRow as M } from "./index.es262.js";
5
+ import { DefaultNode as B } from "./index.es263.js";
6
+ import { edit as m } from "./index.es264.js";
7
+ import { focus as u, treeBlur as L } from "./index.es265.js";
8
+ import { createRoot as I, ROOT_ID as k } from "./index.es258.js";
9
+ import { actions as b } from "./index.es266.js";
10
+ import { actions as d } from "./index.es267.js";
11
+ import { actions as w } from "./index.es268.js";
12
+ import { DefaultDragPreview as z } from "./index.es269.js";
13
+ import { DefaultContainer as $ } from "./index.es270.js";
14
+ import { createList as _ } from "./index.es271.js";
15
+ import { createIndex as S } from "./index.es272.js";
16
+ var N = function(y, t, e, s) {
17
+ function i(n) {
18
+ return n instanceof e ? n : new e(function(r) {
19
+ r(n);
20
+ });
57
21
  }
58
- return X({
59
- width: u,
60
- height: h,
61
- x: l,
62
- y: f
63
- });
64
- }
65
- function dt(t) {
66
- let {
67
- elements: e,
68
- rect: n,
69
- offsetParent: i,
70
- strategy: o
71
- } = t;
72
- const c = o === "fixed", s = C(i), r = e ? S(e.floating) : !1;
73
- if (i === s || r && c)
74
- return n;
75
- let l = {
76
- scrollLeft: 0,
77
- scrollTop: 0
78
- }, f = b(1);
79
- const u = b(0), h = R(i);
80
- if ((h || !h && !c) && ((M(i) !== "body" || _(s)) && (l = N(i)), R(i))) {
81
- const w = L(i);
82
- f = F(i), u.x = w.x + i.clientLeft, u.y = w.y + i.clientTop;
83
- }
84
- return {
85
- width: n.width * f.x,
86
- height: n.height * f.y,
87
- x: n.x * f.x - l.scrollLeft * f.x + u.x,
88
- y: n.y * f.y - l.scrollTop * f.y + u.y
89
- };
90
- }
91
- function gt(t) {
92
- return Array.from(t.getClientRects());
93
- }
94
- function Y(t) {
95
- return L(C(t)).left + N(t).scrollLeft;
96
- }
97
- function pt(t) {
98
- const e = C(t), n = N(t), i = t.ownerDocument.body, o = T(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), c = T(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
99
- let s = -n.scrollLeft + Y(t);
100
- const r = -n.scrollTop;
101
- return y(i).direction === "rtl" && (s += T(e.clientWidth, i.clientWidth) - o), {
102
- width: o,
103
- height: c,
104
- x: s,
105
- y: r
106
- };
107
- }
108
- function mt(t, e) {
109
- const n = E(t), i = C(t), o = n.visualViewport;
110
- let c = i.clientWidth, s = i.clientHeight, r = 0, l = 0;
111
- if (o) {
112
- c = o.width, s = o.height;
113
- const f = j();
114
- (!f || f && e === "fixed") && (r = o.offsetLeft, l = o.offsetTop);
115
- }
116
- return {
117
- width: c,
118
- height: s,
119
- x: r,
120
- y: l
121
- };
122
- }
123
- function wt(t, e) {
124
- const n = L(t, !0, e === "fixed"), i = n.top + t.clientTop, o = n.left + t.clientLeft, c = R(t) ? F(t) : b(1), s = t.clientWidth * c.x, r = t.clientHeight * c.y, l = o * c.x, f = i * c.y;
125
- return {
126
- width: s,
127
- height: r,
128
- x: l,
129
- y: f
130
- };
131
- }
132
- function K(t, e, n) {
133
- let i;
134
- if (e === "viewport")
135
- i = mt(t, n);
136
- else if (e === "document")
137
- i = pt(C(t));
138
- else if (x(e))
139
- i = wt(e, n);
140
- else {
141
- const o = Q(t);
142
- i = {
143
- ...e,
144
- x: e.x - o.x,
145
- y: e.y - o.y
146
- };
147
- }
148
- return X(i);
149
- }
150
- function Z(t, e) {
151
- const n = W(t);
152
- return n === e || !x(n) || D(n) ? !1 : y(n).position === "fixed" || Z(n, e);
153
- }
154
- function vt(t, e) {
155
- const n = e.get(t);
156
- if (n)
157
- return n;
158
- let i = $(t, [], !1).filter((r) => x(r) && M(r) !== "body"), o = null;
159
- const c = y(t).position === "fixed";
160
- let s = c ? W(t) : t;
161
- for (; x(s) && !D(s); ) {
162
- const r = y(s), l = G(s);
163
- !l && r.position === "fixed" && (o = null), (c ? !l && !o : !l && r.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _(s) && !l && Z(t, s)) ? i = i.filter((u) => u !== s) : o = r, s = W(s);
164
- }
165
- return e.set(t, i), i;
166
- }
167
- function xt(t) {
168
- let {
169
- element: e,
170
- boundary: n,
171
- rootBoundary: i,
172
- strategy: o
173
- } = t;
174
- const s = [...n === "clippingAncestors" ? S(e) ? [] : vt(e, this._c) : [].concat(n), i], r = s[0], l = s.reduce((f, u) => {
175
- const h = K(e, u, o);
176
- return f.top = T(h.top, f.top), f.right = V(h.right, f.right), f.bottom = V(h.bottom, f.bottom), f.left = T(h.left, f.left), f;
177
- }, K(e, r, o));
178
- return {
179
- width: l.right - l.left,
180
- height: l.bottom - l.top,
181
- x: l.left,
182
- y: l.top
183
- };
184
- }
185
- function yt(t) {
186
- const {
187
- width: e,
188
- height: n
189
- } = J(t);
190
- return {
191
- width: e,
192
- height: n
193
- };
194
- }
195
- function bt(t, e, n) {
196
- const i = R(e), o = C(e), c = n === "fixed", s = L(t, !0, c, e);
197
- let r = {
198
- scrollLeft: 0,
199
- scrollTop: 0
200
- };
201
- const l = b(0);
202
- if (i || !i && !c)
203
- if ((M(e) !== "body" || _(o)) && (r = N(e)), i) {
204
- const h = L(e, !0, c, e);
205
- l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
206
- } else o && (l.x = Y(o));
207
- const f = s.left + r.scrollLeft - l.x, u = s.top + r.scrollTop - l.y;
208
- return {
209
- x: f,
210
- y: u,
211
- width: s.width,
212
- height: s.height
213
- };
214
- }
215
- function I(t) {
216
- return y(t).position === "static";
217
- }
218
- function P(t, e) {
219
- return !R(t) || y(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
220
- }
221
- function tt(t, e) {
222
- const n = E(t);
223
- if (S(t))
224
- return n;
225
- if (!R(t)) {
226
- let o = W(t);
227
- for (; o && !D(o); ) {
228
- if (x(o) && !I(o))
229
- return o;
230
- o = W(o);
22
+ return new (e || (e = Promise))(function(n, r) {
23
+ function h(c) {
24
+ try {
25
+ g(s.next(c));
26
+ } catch (v) {
27
+ r(v);
28
+ }
231
29
  }
232
- return n;
233
- }
234
- let i = P(t, e);
235
- for (; i && ft(i) && I(i); )
236
- i = P(i, e);
237
- return i && D(i) && I(i) && !G(i) ? n : i || ut(t) || n;
238
- }
239
- const Rt = async function(t) {
240
- const e = this.getOffsetParent || tt, n = this.getDimensions, i = await n(t.floating);
241
- return {
242
- reference: bt(t.reference, await e(t.floating), t.strategy),
243
- floating: {
244
- x: 0,
245
- y: 0,
246
- width: i.width,
247
- height: i.height
30
+ function F(c) {
31
+ try {
32
+ g(s.throw(c));
33
+ } catch (v) {
34
+ r(v);
35
+ }
248
36
  }
249
- };
250
- };
251
- function Ct(t) {
252
- return y(t).direction === "rtl";
253
- }
254
- const Ot = {
255
- convertOffsetParentRelativeRectToViewportRelativeRect: dt,
256
- getDocumentElement: C,
257
- getClippingRect: xt,
258
- getOffsetParent: tt,
259
- getElementRects: Rt,
260
- getClientRects: gt,
261
- getDimensions: yt,
262
- getScale: F,
263
- isElement: x,
264
- isRTL: Ct
37
+ function g(c) {
38
+ c.done ? n(c.value) : i(c.value).then(h, F);
39
+ }
40
+ g((s = s.apply(y, t || [])).next());
41
+ });
265
42
  };
266
- function Et(t, e) {
267
- let n = null, i;
268
- const o = C(t);
269
- function c() {
270
- var r;
271
- clearTimeout(i), (r = n) == null || r.disconnect(), n = null;
272
- }
273
- function s(r, l) {
274
- r === void 0 && (r = !1), l === void 0 && (l = 1), c();
275
- const {
276
- left: f,
277
- top: u,
278
- width: h,
279
- height: w
280
- } = t.getBoundingClientRect();
281
- if (r || e(), !h || !w)
43
+ const { safeRun: o, identify: a, identifyNull: l } = T;
44
+ class f {
45
+ constructor(t, e, s, i) {
46
+ this.store = t, this.props = e, this.list = s, this.listEl = i, this.visibleStartIndex = 0, this.visibleStopIndex = 0, this.root = I(this), this.visibleNodes = _(this), this.idToIndex = S(this.visibleNodes);
47
+ }
48
+ /* Changes here must also be made in constructor() */
49
+ update(t) {
50
+ this.props = t, this.root = I(this), this.visibleNodes = _(this), this.idToIndex = S(this.visibleNodes);
51
+ }
52
+ /* Store helpers */
53
+ dispatch(t) {
54
+ return this.store.dispatch(t);
55
+ }
56
+ get state() {
57
+ return this.store.getState();
58
+ }
59
+ get openState() {
60
+ return this.state.nodes.open.unfiltered;
61
+ }
62
+ /* Tree Props */
63
+ get width() {
64
+ var t;
65
+ return (t = this.props.width) !== null && t !== void 0 ? t : 300;
66
+ }
67
+ get height() {
68
+ var t;
69
+ return (t = this.props.height) !== null && t !== void 0 ? t : 500;
70
+ }
71
+ get indent() {
72
+ var t;
73
+ return (t = this.props.indent) !== null && t !== void 0 ? t : 24;
74
+ }
75
+ get rowHeight() {
76
+ var t;
77
+ return (t = this.props.rowHeight) !== null && t !== void 0 ? t : 24;
78
+ }
79
+ get overscanCount() {
80
+ var t;
81
+ return (t = this.props.overscanCount) !== null && t !== void 0 ? t : 1;
82
+ }
83
+ get searchTerm() {
84
+ return (this.props.searchTerm || "").trim();
85
+ }
86
+ get matchFn() {
87
+ var t;
88
+ const e = (t = this.props.searchMatch) !== null && t !== void 0 ? t : (s, i) => JSON.stringify(Object.values(s.data)).toLocaleLowerCase().includes(i.toLocaleLowerCase());
89
+ return (s) => e(s, this.searchTerm);
90
+ }
91
+ accessChildren(t) {
92
+ var e;
93
+ const s = this.props.childrenAccessor || "children";
94
+ return (e = p(t, s)) !== null && e !== void 0 ? e : null;
95
+ }
96
+ accessId(t) {
97
+ const e = this.props.idAccessor || "id", s = p(t, e);
98
+ if (!s)
99
+ throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");
100
+ return s;
101
+ }
102
+ /* Node Access */
103
+ get firstNode() {
104
+ var t;
105
+ return (t = this.visibleNodes[0]) !== null && t !== void 0 ? t : null;
106
+ }
107
+ get lastNode() {
108
+ var t;
109
+ return (t = this.visibleNodes[this.visibleNodes.length - 1]) !== null && t !== void 0 ? t : null;
110
+ }
111
+ get focusedNode() {
112
+ var t;
113
+ return (t = this.get(this.state.nodes.focus.id)) !== null && t !== void 0 ? t : null;
114
+ }
115
+ get mostRecentNode() {
116
+ var t;
117
+ return (t = this.get(this.state.nodes.selection.mostRecent)) !== null && t !== void 0 ? t : null;
118
+ }
119
+ get nextNode() {
120
+ const t = this.indexOf(this.focusedNode);
121
+ return t === null ? null : this.at(t + 1);
122
+ }
123
+ get prevNode() {
124
+ const t = this.indexOf(this.focusedNode);
125
+ return t === null ? null : this.at(t - 1);
126
+ }
127
+ get(t) {
128
+ return t && t in this.idToIndex && this.visibleNodes[this.idToIndex[t]] || null;
129
+ }
130
+ at(t) {
131
+ return this.visibleNodes[t] || null;
132
+ }
133
+ nodesBetween(t, e) {
134
+ var s;
135
+ if (t === null || e === null)
136
+ return [];
137
+ const i = (s = this.indexOf(t)) !== null && s !== void 0 ? s : 0, n = this.indexOf(e);
138
+ if (n === null)
139
+ return [];
140
+ const r = Math.min(i, n), h = Math.max(i, n);
141
+ return this.visibleNodes.slice(r, h + 1);
142
+ }
143
+ indexOf(t) {
144
+ const e = D(t);
145
+ return e ? this.idToIndex[e] : null;
146
+ }
147
+ /* Data Operations */
148
+ get editingId() {
149
+ return this.state.nodes.edit.id;
150
+ }
151
+ createInternal() {
152
+ return this.create({ type: "internal" });
153
+ }
154
+ createLeaf() {
155
+ return this.create({ type: "leaf" });
156
+ }
157
+ create(t = {}) {
158
+ var e, s;
159
+ return N(this, void 0, void 0, function* () {
160
+ const i = t.parentId === void 0 ? R(this) : t.parentId, n = (e = t.index) !== null && e !== void 0 ? e : O(this), r = (s = t.type) !== null && s !== void 0 ? s : "leaf", h = yield o(this.props.onCreate, {
161
+ type: r,
162
+ parentId: i,
163
+ index: n,
164
+ parentNode: this.get(i)
165
+ });
166
+ h && (this.focus(h), setTimeout(() => {
167
+ this.edit(h).then(() => {
168
+ this.select(h), this.activate(h);
169
+ });
170
+ }));
171
+ });
172
+ }
173
+ delete(t) {
174
+ return N(this, void 0, void 0, function* () {
175
+ if (!t)
176
+ return;
177
+ const s = (Array.isArray(t) ? t : [t]).map(a), i = s.map((n) => this.get(n)).filter((n) => !!n);
178
+ yield o(this.props.onDelete, { nodes: i, ids: s });
179
+ });
180
+ }
181
+ edit(t) {
182
+ const e = a(t);
183
+ return this.resolveEdit({ cancelled: !0 }), this.scrollTo(e), this.dispatch(m(e)), new Promise((s) => {
184
+ f.editPromise = s;
185
+ });
186
+ }
187
+ submit(t, e) {
188
+ return N(this, void 0, void 0, function* () {
189
+ if (!t)
190
+ return;
191
+ const s = a(t);
192
+ yield o(this.props.onRename, {
193
+ id: s,
194
+ name: e,
195
+ node: this.get(s)
196
+ }), this.dispatch(m(null)), this.resolveEdit({ cancelled: !1, value: e }), setTimeout(() => this.onFocus());
197
+ });
198
+ }
199
+ reset() {
200
+ this.dispatch(m(null)), this.resolveEdit({ cancelled: !0 }), setTimeout(() => this.onFocus());
201
+ }
202
+ activate(t) {
203
+ const e = this.get(l(t));
204
+ e && o(this.props.onActivate, e);
205
+ }
206
+ resolveEdit(t) {
207
+ const e = f.editPromise;
208
+ e && e(t), f.editPromise = null;
209
+ }
210
+ /* Focus and Selection */
211
+ get selectedIds() {
212
+ return this.state.nodes.selection.ids;
213
+ }
214
+ get selectedNodes() {
215
+ let t = [];
216
+ for (let e of Array.from(this.selectedIds)) {
217
+ const s = this.get(e);
218
+ s && t.push(s);
219
+ }
220
+ return t;
221
+ }
222
+ focus(t, e = {}) {
223
+ t && (this.props.selectionFollowsFocus ? this.select(t) : (this.dispatch(u(a(t))), e.scroll !== !1 && this.scrollTo(t), this.focusedNode && o(this.props.onFocus, this.focusedNode)));
224
+ }
225
+ pageUp() {
226
+ var t, e;
227
+ const s = this.visibleStartIndex, n = this.visibleStopIndex - s;
228
+ let r = (e = (t = this.focusedNode) === null || t === void 0 ? void 0 : t.rowIndex) !== null && e !== void 0 ? e : 0;
229
+ r > s ? r = s : r = Math.max(s - n, 0), this.focus(this.at(r));
230
+ }
231
+ pageDown() {
232
+ var t, e;
233
+ const s = this.visibleStartIndex, i = this.visibleStopIndex, n = i - s;
234
+ let r = (e = (t = this.focusedNode) === null || t === void 0 ? void 0 : t.rowIndex) !== null && e !== void 0 ? e : 0;
235
+ r < i ? r = i : r = Math.min(r + n, this.visibleNodes.length - 1), this.focus(this.at(r));
236
+ }
237
+ select(t, e = {}) {
238
+ if (!t)
282
239
  return;
283
- const g = z(u), v = z(o.clientWidth - (f + h)), a = z(o.clientHeight - (u + w)), p = z(f), m = {
284
- rootMargin: -g + "px " + -v + "px " + -a + "px " + -p + "px",
285
- threshold: T(0, V(1, l)) || 1
286
- };
287
- let O = !0;
288
- function B(q) {
289
- const H = q[0].intersectionRatio;
290
- if (H !== l) {
291
- if (!O)
292
- return s();
293
- H ? s(!1, H) : i = setTimeout(() => {
294
- s(!1, 1e-7);
295
- }, 1e3);
296
- }
297
- O = !1;
240
+ const s = e.focus !== !1, i = a(t);
241
+ s && this.dispatch(u(i)), this.dispatch(d.only(i)), this.dispatch(d.anchor(i)), this.dispatch(d.mostRecent(i)), this.scrollTo(i, e.align), this.focusedNode && s && o(this.props.onFocus, this.focusedNode), o(this.props.onSelect, this.selectedNodes);
242
+ }
243
+ deselect(t) {
244
+ if (!t)
245
+ return;
246
+ const e = a(t);
247
+ this.dispatch(d.remove(e));
248
+ }
249
+ selectMulti(t) {
250
+ const e = this.get(l(t));
251
+ e && (this.dispatch(u(e.id)), this.dispatch(d.add(e.id)), this.dispatch(d.anchor(e.id)), this.dispatch(d.mostRecent(e.id)), this.scrollTo(e), this.focusedNode && o(this.props.onFocus, this.focusedNode), o(this.props.onSelect, this.selectedNodes));
252
+ }
253
+ selectContiguous(t) {
254
+ if (!t)
255
+ return;
256
+ const e = a(t), { anchor: s, mostRecent: i } = this.state.nodes.selection;
257
+ this.dispatch(u(e)), this.dispatch(d.remove(this.nodesBetween(s, i))), this.dispatch(d.add(this.nodesBetween(s, l(e)))), this.dispatch(d.mostRecent(e)), this.scrollTo(e), this.focusedNode && o(this.props.onFocus, this.focusedNode), o(this.props.onSelect, this.selectedNodes);
258
+ }
259
+ deselectAll() {
260
+ this.setSelection({ ids: [], anchor: null, mostRecent: null }), o(this.props.onSelect, this.selectedNodes);
261
+ }
262
+ selectAll() {
263
+ var t;
264
+ this.setSelection({
265
+ ids: Object.keys(this.idToIndex),
266
+ anchor: this.firstNode,
267
+ mostRecent: this.lastNode
268
+ }), this.dispatch(u((t = this.lastNode) === null || t === void 0 ? void 0 : t.id)), this.focusedNode && o(this.props.onFocus, this.focusedNode), o(this.props.onSelect, this.selectedNodes);
269
+ }
270
+ setSelection(t) {
271
+ var e;
272
+ const s = new Set((e = t.ids) === null || e === void 0 ? void 0 : e.map(a)), i = l(t.anchor), n = l(t.mostRecent);
273
+ this.dispatch(d.set({ ids: s, anchor: i, mostRecent: n })), o(this.props.onSelect, this.selectedNodes);
274
+ }
275
+ /* Drag and Drop */
276
+ get cursorParentId() {
277
+ const { cursor: t } = this.state.dnd;
278
+ switch (t.type) {
279
+ case "highlight":
280
+ return t.id;
281
+ default:
282
+ return null;
298
283
  }
299
- try {
300
- n = new IntersectionObserver(B, {
301
- ...m,
302
- // Handle <iframe>s
303
- root: o.ownerDocument
304
- });
305
- } catch {
306
- n = new IntersectionObserver(B, m);
284
+ }
285
+ get cursorOverFolder() {
286
+ return this.state.dnd.cursor.type === "highlight";
287
+ }
288
+ get dragNodes() {
289
+ return this.state.dnd.dragIds.map((t) => this.get(t)).filter((t) => !!t);
290
+ }
291
+ get dragNode() {
292
+ return this.get(this.state.nodes.drag.id);
293
+ }
294
+ get dragDestinationParent() {
295
+ return this.get(this.state.nodes.drag.destinationParentId);
296
+ }
297
+ get dragDestinationIndex() {
298
+ return this.state.nodes.drag.destinationIndex;
299
+ }
300
+ canDrop() {
301
+ var t;
302
+ if (this.isFiltered)
303
+ return !1;
304
+ const e = (t = this.get(this.state.dnd.parentId)) !== null && t !== void 0 ? t : this.root, s = this.dragNodes, i = this.props.disableDrop;
305
+ for (const n of s)
306
+ if (!n || !e || n.isInternal && C(e, n))
307
+ return !1;
308
+ return typeof i == "function" ? !i({
309
+ parentNode: e,
310
+ dragNodes: this.dragNodes,
311
+ index: this.state.dnd.index || 0
312
+ }) : typeof i == "string" ? !e.data[i] : typeof i == "boolean" ? !i : !0;
313
+ }
314
+ hideCursor() {
315
+ this.dispatch(w.cursor({ type: "none" }));
316
+ }
317
+ showCursor(t) {
318
+ this.dispatch(w.cursor(t));
319
+ }
320
+ /* Visibility */
321
+ open(t) {
322
+ const e = l(t);
323
+ e && (this.isOpen(e) || (this.dispatch(b.open(e, this.isFiltered)), o(this.props.onToggle, e)));
324
+ }
325
+ close(t) {
326
+ const e = l(t);
327
+ e && this.isOpen(e) && (this.dispatch(b.close(e, this.isFiltered)), o(this.props.onToggle, e));
328
+ }
329
+ toggle(t) {
330
+ const e = l(t);
331
+ if (e)
332
+ return this.isOpen(e) ? this.close(e) : this.open(e);
333
+ }
334
+ openParents(t) {
335
+ const e = l(t);
336
+ if (!e)
337
+ return;
338
+ const s = P(this.root, e);
339
+ let i = s == null ? void 0 : s.parent;
340
+ for (; i; )
341
+ this.open(i.id), i = i.parent;
342
+ }
343
+ openSiblings(t) {
344
+ const e = t.parent;
345
+ if (!e)
346
+ this.toggle(t.id);
347
+ else if (e.children) {
348
+ const s = t.isOpen;
349
+ for (let i of e.children)
350
+ i.isInternal && (s ? this.close(i.id) : this.open(i.id));
351
+ this.scrollTo(this.focusedNode);
307
352
  }
308
- n.observe(t);
309
353
  }
310
- return s(!0), c;
311
- }
312
- function Wt(t, e, n, i) {
313
- i === void 0 && (i = {});
314
- const {
315
- ancestorScroll: o = !0,
316
- ancestorResize: c = !0,
317
- elementResize: s = typeof ResizeObserver == "function",
318
- layoutShift: r = typeof IntersectionObserver == "function",
319
- animationFrame: l = !1
320
- } = i, f = k(t), u = o || c ? [...f ? $(f) : [], ...$(e)] : [];
321
- u.forEach((d) => {
322
- o && d.addEventListener("scroll", n, {
323
- passive: !0
324
- }), c && d.addEventListener("resize", n);
325
- });
326
- const h = f && r ? Et(f, n) : null;
327
- let w = -1, g = null;
328
- s && (g = new ResizeObserver((d) => {
329
- let [m] = d;
330
- m && m.target === f && g && (g.unobserve(e), cancelAnimationFrame(w), w = requestAnimationFrame(() => {
331
- var O;
332
- (O = g) == null || O.observe(e);
333
- })), n();
334
- }), f && !l && g.observe(f), g.observe(e));
335
- let v, a = l ? L(t) : null;
336
- l && p();
337
- function p() {
338
- const d = L(t);
339
- a && (d.x !== a.x || d.y !== a.y || d.width !== a.width || d.height !== a.height) && n(), a = d, v = requestAnimationFrame(p);
340
- }
341
- return n(), () => {
342
- var d;
343
- u.forEach((m) => {
344
- o && m.removeEventListener("scroll", n), c && m.removeEventListener("resize", n);
345
- }), h == null || h(), (d = g) == null || d.disconnect(), g = null, l && cancelAnimationFrame(v);
346
- };
354
+ openAll() {
355
+ x(this.root, (t) => {
356
+ t.isInternal && t.open();
357
+ });
358
+ }
359
+ closeAll() {
360
+ x(this.root, (t) => {
361
+ t.isInternal && t.close();
362
+ });
363
+ }
364
+ /* Scrolling */
365
+ scrollTo(t, e = "smart") {
366
+ if (!t)
367
+ return;
368
+ const s = a(t);
369
+ return this.openParents(s), A(() => s in this.idToIndex).then(() => {
370
+ var i;
371
+ const n = this.idToIndex[s];
372
+ n !== void 0 && ((i = this.list.current) === null || i === void 0 || i.scrollToItem(n, e));
373
+ }).catch(() => {
374
+ });
375
+ }
376
+ /* State Checks */
377
+ get isEditing() {
378
+ return this.state.nodes.edit.id !== null;
379
+ }
380
+ get isFiltered() {
381
+ var t;
382
+ return !!(!((t = this.props.searchTerm) === null || t === void 0) && t.trim());
383
+ }
384
+ get hasFocus() {
385
+ return this.state.nodes.focus.treeFocused;
386
+ }
387
+ get hasNoSelection() {
388
+ return this.state.nodes.selection.ids.size === 0;
389
+ }
390
+ get hasOneSelection() {
391
+ return this.state.nodes.selection.ids.size === 1;
392
+ }
393
+ get hasMultipleSelections() {
394
+ return this.state.nodes.selection.ids.size > 1;
395
+ }
396
+ isSelected(t) {
397
+ return t ? this.state.nodes.selection.ids.has(t) : !1;
398
+ }
399
+ isOpen(t) {
400
+ var e, s, i;
401
+ if (!t)
402
+ return !1;
403
+ if (t === k)
404
+ return !0;
405
+ const n = (e = this.props.openByDefault) !== null && e !== void 0 ? e : !0;
406
+ return this.isFiltered ? (s = this.state.nodes.open.filtered[t]) !== null && s !== void 0 ? s : !0 : (i = this.state.nodes.open.unfiltered[t]) !== null && i !== void 0 ? i : n;
407
+ }
408
+ isEditable(t) {
409
+ var e;
410
+ const s = this.props.disableEdit || (() => !1);
411
+ return (e = !p(t, s)) !== null && e !== void 0 ? e : !0;
412
+ }
413
+ isDraggable(t) {
414
+ var e;
415
+ const s = this.props.disableDrag || (() => !1);
416
+ return (e = !p(t, s)) !== null && e !== void 0 ? e : !0;
417
+ }
418
+ isDragging(t) {
419
+ const e = l(t);
420
+ return e ? this.state.nodes.drag.id === e : !1;
421
+ }
422
+ isFocused(t) {
423
+ return this.hasFocus && this.state.nodes.focus.id === t;
424
+ }
425
+ isMatch(t) {
426
+ return this.matchFn(t);
427
+ }
428
+ willReceiveDrop(t) {
429
+ const e = l(t);
430
+ if (!e)
431
+ return !1;
432
+ const { destinationParentId: s, destinationIndex: i } = this.state.nodes.drag;
433
+ return e === s && i === null;
434
+ }
435
+ /* Tree Event Handlers */
436
+ onFocus() {
437
+ const t = this.focusedNode || this.firstNode;
438
+ t && this.dispatch(u(t.id));
439
+ }
440
+ onBlur() {
441
+ this.dispatch(L());
442
+ }
443
+ onItemsRendered(t) {
444
+ this.visibleStartIndex = t.visibleStartIndex, this.visibleStopIndex = t.visibleStopIndex;
445
+ }
446
+ /* Get Renderers */
447
+ get renderContainer() {
448
+ return this.props.renderContainer || $;
449
+ }
450
+ get renderRow() {
451
+ return this.props.renderRow || M;
452
+ }
453
+ get renderNode() {
454
+ return this.props.children || B;
455
+ }
456
+ get renderDragPreview() {
457
+ return this.props.renderDragPreview || z;
458
+ }
459
+ get renderCursor() {
460
+ return this.props.renderCursor || E;
461
+ }
347
462
  }
348
- const Bt = et, zt = it, At = nt, Dt = ot, Nt = st, Ht = ct, It = lt, Vt = (t, e, n) => {
349
- const i = /* @__PURE__ */ new Map(), o = {
350
- platform: Ot,
351
- ...n
352
- }, c = {
353
- ...o.platform,
354
- _c: i
355
- };
356
- return rt(t, e, {
357
- ...o,
358
- platform: c
359
- });
360
- };
361
463
  export {
362
- Ht as arrow,
363
- Wt as autoUpdate,
364
- Vt as computePosition,
365
- At as flip,
366
- $ as getOverflowAncestors,
367
- Nt as hide,
368
- It as limitShift,
369
- Bt as offset,
370
- Ot as platform,
371
- zt as shift,
372
- Dt as size
464
+ f as TreeApi
373
465
  };