@rpcbase/ui 0.166.0 → 0.167.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 (679) hide show
  1. package/dist/index100.js +318 -8
  2. package/dist/index100.js.map +1 -1
  3. package/dist/index101.js +126 -38
  4. package/dist/index101.js.map +1 -1
  5. package/dist/index102.js +20 -4
  6. package/dist/index102.js.map +1 -1
  7. package/dist/index103.js +76 -52
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js +18 -4
  10. package/dist/index104.js.map +1 -1
  11. package/dist/index105.js +101 -4
  12. package/dist/index105.js.map +1 -1
  13. package/dist/index106.js +5 -16
  14. package/dist/index106.js.map +1 -1
  15. package/dist/index107.js +14 -5
  16. package/dist/index107.js.map +1 -1
  17. package/dist/index108.js +2 -8
  18. package/dist/index108.js.map +1 -1
  19. package/dist/index109.js +7 -16
  20. package/dist/index109.js.map +1 -1
  21. package/dist/index11.js +13 -4
  22. package/dist/index11.js.map +1 -1
  23. package/dist/index110.js +326 -4
  24. package/dist/index110.js.map +1 -1
  25. package/dist/index111.js +49 -4
  26. package/dist/index111.js.map +1 -1
  27. package/dist/index112.js +52 -6
  28. package/dist/index112.js.map +1 -1
  29. package/dist/index113.js +4 -5
  30. package/dist/index113.js.map +1 -1
  31. package/dist/index114.js +4 -4
  32. package/dist/index114.js.map +1 -1
  33. package/dist/index115.js +14 -3
  34. package/dist/index115.js.map +1 -1
  35. package/dist/index116.js +5 -6
  36. package/dist/index116.js.map +1 -1
  37. package/dist/index117.js +7 -24
  38. package/dist/index117.js.map +1 -1
  39. package/dist/index118.js +16 -6
  40. package/dist/index118.js.map +1 -1
  41. package/dist/index119.js +4 -4
  42. package/dist/index119.js.map +1 -1
  43. package/dist/index120.js +4 -6
  44. package/dist/index120.js.map +1 -1
  45. package/dist/index121.js +5 -5
  46. package/dist/index121.js.map +1 -1
  47. package/dist/index122.js +5 -4
  48. package/dist/index122.js.map +1 -1
  49. package/dist/index123.js +4 -5
  50. package/dist/index123.js.map +1 -1
  51. package/dist/index124.js +4 -4
  52. package/dist/index124.js.map +1 -1
  53. package/dist/index125.js +5 -7
  54. package/dist/index125.js.map +1 -1
  55. package/dist/index126.js +24 -5
  56. package/dist/index126.js.map +1 -1
  57. package/dist/index127.js +6 -4
  58. package/dist/index127.js.map +1 -1
  59. package/dist/index128.js +4 -4
  60. package/dist/index128.js.map +1 -1
  61. package/dist/index129.js +6 -6
  62. package/dist/index129.js.map +1 -1
  63. package/dist/index13.js +1 -1
  64. package/dist/index130.js +5 -145
  65. package/dist/index130.js.map +1 -1
  66. package/dist/index131.js +4 -39
  67. package/dist/index131.js.map +1 -1
  68. package/dist/index132.js +5 -4
  69. package/dist/index132.js.map +1 -1
  70. package/dist/index133.js +4 -7
  71. package/dist/index133.js.map +1 -1
  72. package/dist/index134.js +8 -13
  73. package/dist/index134.js.map +1 -1
  74. package/dist/index135.js +5 -13
  75. package/dist/index135.js.map +1 -1
  76. package/dist/index136.js +4 -7
  77. package/dist/index136.js.map +1 -1
  78. package/dist/index137.js +4 -31
  79. package/dist/index137.js.map +1 -1
  80. package/dist/index138.js +6 -10
  81. package/dist/index138.js.map +1 -1
  82. package/dist/index139.js +145 -10
  83. package/dist/index139.js.map +1 -1
  84. package/dist/index14.js +3 -3
  85. package/dist/index140.js +38 -7
  86. package/dist/index140.js.map +1 -1
  87. package/dist/index141.js +4 -13
  88. package/dist/index141.js.map +1 -1
  89. package/dist/index142.js +5 -99
  90. package/dist/index142.js.map +1 -1
  91. package/dist/index143.js +14 -20
  92. package/dist/index143.js.map +1 -1
  93. package/dist/index144.js +13 -53
  94. package/dist/index144.js.map +1 -1
  95. package/dist/index145.js +6 -71
  96. package/dist/index145.js.map +1 -1
  97. package/dist/index146.js +31 -9
  98. package/dist/index146.js.map +1 -1
  99. package/dist/index147.js +10 -20
  100. package/dist/index147.js.map +1 -1
  101. package/dist/index148.js +10 -16
  102. package/dist/index148.js.map +1 -1
  103. package/dist/index149.js +8 -23
  104. package/dist/index149.js.map +1 -1
  105. package/dist/index150.js +13 -6
  106. package/dist/index150.js.map +1 -1
  107. package/dist/index151.js +101 -5
  108. package/dist/index151.js.map +1 -1
  109. package/dist/index152.js +20 -24
  110. package/dist/index152.js.map +1 -1
  111. package/dist/index153.js +53 -34
  112. package/dist/index153.js.map +1 -1
  113. package/dist/index154.js +73 -16
  114. package/dist/index154.js.map +1 -1
  115. package/dist/index155.js +9 -6
  116. package/dist/index155.js.map +1 -1
  117. package/dist/index156.js +20 -4
  118. package/dist/index156.js.map +1 -1
  119. package/dist/index157.js +16 -4
  120. package/dist/index157.js.map +1 -1
  121. package/dist/index158.js +23 -4
  122. package/dist/index158.js.map +1 -1
  123. package/dist/index159.js +6 -4
  124. package/dist/index159.js.map +1 -1
  125. package/dist/index160.js +5 -3
  126. package/dist/index160.js.map +1 -1
  127. package/dist/index161.js +23 -6
  128. package/dist/index161.js.map +1 -1
  129. package/dist/index162.js +35 -24
  130. package/dist/index162.js.map +1 -1
  131. package/dist/index163.js +16 -8
  132. package/dist/index163.js.map +1 -1
  133. package/dist/index164.js +5 -5
  134. package/dist/index164.js.map +1 -1
  135. package/dist/index165.js +4 -5
  136. package/dist/index165.js.map +1 -1
  137. package/dist/index166.js +4 -3
  138. package/dist/index166.js.map +1 -1
  139. package/dist/index167.js +4 -3
  140. package/dist/index167.js.map +1 -1
  141. package/dist/index168.js +4 -4
  142. package/dist/index168.js.map +1 -1
  143. package/dist/index169.js +3 -3
  144. package/dist/index169.js.map +1 -1
  145. package/dist/index170.js +6 -4
  146. package/dist/index170.js.map +1 -1
  147. package/dist/index171.js +24 -4
  148. package/dist/index171.js.map +1 -1
  149. package/dist/index172.js +7 -3
  150. package/dist/index172.js.map +1 -1
  151. package/dist/index173.js +6 -3
  152. package/dist/index173.js.map +1 -1
  153. package/dist/index174.js +5 -24
  154. package/dist/index174.js.map +1 -1
  155. package/dist/index175.js +4 -29
  156. package/dist/index175.js.map +1 -1
  157. package/dist/index176.js +4 -5
  158. package/dist/index176.js.map +1 -1
  159. package/dist/index177.js +4 -67
  160. package/dist/index177.js.map +1 -1
  161. package/dist/index178.js +3 -180
  162. package/dist/index178.js.map +1 -1
  163. package/dist/index179.js +4 -46
  164. package/dist/index179.js.map +1 -1
  165. package/dist/index18.js +10 -1
  166. package/dist/index18.js.map +1 -1
  167. package/dist/index180.js +3 -13
  168. package/dist/index180.js.map +1 -1
  169. package/dist/index181.js +3 -154
  170. package/dist/index181.js.map +1 -1
  171. package/dist/index182.js +3 -30
  172. package/dist/index182.js.map +1 -1
  173. package/dist/index183.js +3 -9
  174. package/dist/index183.js.map +1 -1
  175. package/dist/index184.js +2 -48
  176. package/dist/index184.js.map +1 -1
  177. package/dist/index185.js +67 -11
  178. package/dist/index185.js.map +1 -1
  179. package/dist/index186.js +83 -43
  180. package/dist/index186.js.map +1 -1
  181. package/dist/index187.js +41 -90
  182. package/dist/index187.js.map +1 -1
  183. package/dist/index188.js +7 -86
  184. package/dist/index188.js.map +1 -1
  185. package/dist/index189.js +4 -105
  186. package/dist/index189.js.map +1 -1
  187. package/dist/index19.js +6 -6
  188. package/dist/index190.js +49 -50
  189. package/dist/index190.js.map +1 -1
  190. package/dist/index191.js +24 -11
  191. package/dist/index191.js.map +1 -1
  192. package/dist/index192.js +29 -38
  193. package/dist/index192.js.map +1 -1
  194. package/dist/index193.js +5 -9
  195. package/dist/index193.js.map +1 -1
  196. package/dist/index194.js +5 -116
  197. package/dist/index194.js.map +1 -1
  198. package/dist/index195.js +67 -16
  199. package/dist/index195.js.map +1 -1
  200. package/dist/index196.js +2 -16
  201. package/dist/index196.js.map +1 -1
  202. package/dist/index197.js +363 -3
  203. package/dist/index197.js.map +1 -1
  204. package/dist/index198.js +259 -34
  205. package/dist/index198.js.map +1 -1
  206. package/dist/index199.js +59 -19
  207. package/dist/index199.js.map +1 -1
  208. package/dist/index20.js +1 -1
  209. package/dist/index200.js +46 -9
  210. package/dist/index200.js.map +1 -1
  211. package/dist/index201.js +169 -8
  212. package/dist/index201.js.map +1 -1
  213. package/dist/index202.js +108 -18
  214. package/dist/index202.js.map +1 -1
  215. package/dist/index203.js +24 -28
  216. package/dist/index203.js.map +1 -1
  217. package/dist/index204.js +8 -17
  218. package/dist/index204.js.map +1 -1
  219. package/dist/index205.js +4 -58
  220. package/dist/index205.js.map +1 -1
  221. package/dist/index206.js +5 -8
  222. package/dist/index206.js.map +1 -1
  223. package/dist/index207.js +4 -66
  224. package/dist/index207.js.map +1 -1
  225. package/dist/index208.js +464 -17
  226. package/dist/index208.js.map +1 -1
  227. package/dist/index209.js +183 -14
  228. package/dist/index209.js.map +1 -1
  229. package/dist/index21.js +1 -1
  230. package/dist/index210.js +106 -4
  231. package/dist/index210.js.map +1 -1
  232. package/dist/index211.js +261 -4
  233. package/dist/index211.js.map +1 -1
  234. package/dist/index212.js +9 -6
  235. package/dist/index212.js.map +1 -1
  236. package/dist/index213.js +42 -4
  237. package/dist/index213.js.map +1 -1
  238. package/dist/index214.js +4 -7
  239. package/dist/index214.js.map +1 -1
  240. package/dist/index215.js +64 -17
  241. package/dist/index215.js.map +1 -1
  242. package/dist/index216.js +47 -4
  243. package/dist/index216.js.map +1 -1
  244. package/dist/index217.js +67 -5
  245. package/dist/index217.js.map +1 -1
  246. package/dist/index218.js +180 -13
  247. package/dist/index218.js.map +1 -1
  248. package/dist/index219.js +46 -10
  249. package/dist/index219.js.map +1 -1
  250. package/dist/index220.js +39 -14
  251. package/dist/index220.js.map +1 -1
  252. package/dist/index221.js +100 -14
  253. package/dist/index221.js.map +1 -1
  254. package/dist/index222.js +97 -5
  255. package/dist/index222.js.map +1 -1
  256. package/dist/index223.js +99 -6
  257. package/dist/index223.js.map +1 -1
  258. package/dist/index224.js +58 -7
  259. package/dist/index224.js.map +1 -1
  260. package/dist/index225.js +8 -6
  261. package/dist/index225.js.map +1 -1
  262. package/dist/index226.js +66 -9
  263. package/dist/index226.js.map +1 -1
  264. package/dist/index227.js +19 -5
  265. package/dist/index227.js.map +1 -1
  266. package/dist/index228.js +16 -5
  267. package/dist/index228.js.map +1 -1
  268. package/dist/index229.js +5 -9
  269. package/dist/index229.js.map +1 -1
  270. package/dist/index23.js +1 -1
  271. package/dist/index230.js +5 -5
  272. package/dist/index230.js.map +1 -1
  273. package/dist/index231.js +6 -5
  274. package/dist/index231.js.map +1 -1
  275. package/dist/index232.js +4 -4
  276. package/dist/index232.js.map +1 -1
  277. package/dist/index233.js +7 -11
  278. package/dist/index233.js.map +1 -1
  279. package/dist/index234.js +16 -9
  280. package/dist/index234.js.map +1 -1
  281. package/dist/index235.js +5 -10
  282. package/dist/index235.js.map +1 -1
  283. package/dist/index236.js +5 -11
  284. package/dist/index236.js.map +1 -1
  285. package/dist/index237.js +13 -11
  286. package/dist/index237.js.map +1 -1
  287. package/dist/index238.js +10 -10
  288. package/dist/index238.js.map +1 -1
  289. package/dist/index239.js +13 -6
  290. package/dist/index239.js.map +1 -1
  291. package/dist/index240.js +14 -6
  292. package/dist/index240.js.map +1 -1
  293. package/dist/index241.js +4 -4
  294. package/dist/index241.js.map +1 -1
  295. package/dist/index242.js +6 -6
  296. package/dist/index242.js.map +1 -1
  297. package/dist/index243.js +6 -6
  298. package/dist/index243.js.map +1 -1
  299. package/dist/index244.js +5 -5
  300. package/dist/index244.js.map +1 -1
  301. package/dist/index245.js +9 -55
  302. package/dist/index245.js.map +1 -1
  303. package/dist/index246.js +5 -23
  304. package/dist/index246.js.map +1 -1
  305. package/dist/index247.js +5 -16
  306. package/dist/index247.js.map +1 -1
  307. package/dist/index248.js +9 -7
  308. package/dist/index248.js.map +1 -1
  309. package/dist/index249.js +5 -10
  310. package/dist/index249.js.map +1 -1
  311. package/dist/index250.js +5 -10
  312. package/dist/index250.js.map +1 -1
  313. package/dist/index251.js +4 -21
  314. package/dist/index251.js.map +1 -1
  315. package/dist/index252.js +11 -10
  316. package/dist/index252.js.map +1 -1
  317. package/dist/index253.js +10 -9
  318. package/dist/index253.js.map +1 -1
  319. package/dist/index254.js +10 -9
  320. package/dist/index254.js.map +1 -1
  321. package/dist/index255.js +11 -4
  322. package/dist/index255.js.map +1 -1
  323. package/dist/index256.js +11 -5
  324. package/dist/index256.js.map +1 -1
  325. package/dist/index257.js +10 -16
  326. package/dist/index257.js.map +1 -1
  327. package/dist/index258.js +7 -9
  328. package/dist/index258.js.map +1 -1
  329. package/dist/index259.js +6 -18
  330. package/dist/index259.js.map +1 -1
  331. package/dist/index260.js +5 -15
  332. package/dist/index260.js.map +1 -1
  333. package/dist/index261.js +6 -12
  334. package/dist/index261.js.map +1 -1
  335. package/dist/index262.js +7 -29
  336. package/dist/index262.js.map +1 -1
  337. package/dist/index263.js +6 -12
  338. package/dist/index263.js.map +1 -1
  339. package/dist/index264.js +54 -24
  340. package/dist/index264.js.map +1 -1
  341. package/dist/index265.js +23 -5
  342. package/dist/index265.js.map +1 -1
  343. package/dist/index266.js +17 -5
  344. package/dist/index266.js.map +1 -1
  345. package/dist/index267.js +8 -3
  346. package/dist/index267.js.map +1 -1
  347. package/dist/index268.js +10 -23
  348. package/dist/index268.js.map +1 -1
  349. package/dist/index269.js +10 -112
  350. package/dist/index269.js.map +1 -1
  351. package/dist/index270.js +21 -15
  352. package/dist/index270.js.map +1 -1
  353. package/dist/index271.js +10 -524
  354. package/dist/index271.js.map +1 -1
  355. package/dist/index272.js +9 -127
  356. package/dist/index272.js.map +1 -1
  357. package/dist/index273.js +9 -133
  358. package/dist/index273.js.map +1 -1
  359. package/dist/index274.js +4 -20
  360. package/dist/index274.js.map +1 -1
  361. package/dist/index275.js +5 -4
  362. package/dist/index275.js.map +1 -1
  363. package/dist/index276.js +16 -18
  364. package/dist/index276.js.map +1 -1
  365. package/dist/index277.js +9 -12
  366. package/dist/index277.js.map +1 -1
  367. package/dist/index278.js +19 -69
  368. package/dist/index278.js.map +1 -1
  369. package/dist/index279.js +15 -8
  370. package/dist/index279.js.map +1 -1
  371. package/dist/index28.js +1 -1
  372. package/dist/index280.js +13 -14
  373. package/dist/index280.js.map +1 -1
  374. package/dist/index281.js +30 -66
  375. package/dist/index281.js.map +1 -1
  376. package/dist/index282.js +12 -64
  377. package/dist/index282.js.map +1 -1
  378. package/dist/index283.js +25 -5
  379. package/dist/index283.js.map +1 -1
  380. package/dist/index284.js +5 -5
  381. package/dist/index284.js.map +1 -1
  382. package/dist/index285.js +2 -4
  383. package/dist/index285.js.map +1 -1
  384. package/dist/index286.js +2 -16
  385. package/dist/index286.js.map +1 -1
  386. package/dist/index287.js +5 -9
  387. package/dist/index287.js.map +1 -1
  388. package/dist/index288.js +3 -6
  389. package/dist/index288.js.map +1 -1
  390. package/dist/index289.js +23 -4
  391. package/dist/index289.js.map +1 -1
  392. package/dist/index29.js +5 -5
  393. package/dist/index290.js +111 -544
  394. package/dist/index290.js.map +1 -1
  395. package/dist/index291.js +15 -46
  396. package/dist/index291.js.map +1 -1
  397. package/dist/index292.js +521 -14
  398. package/dist/index292.js.map +1 -1
  399. package/dist/index293.js +127 -6
  400. package/dist/index293.js.map +1 -1
  401. package/dist/index294.js +133 -8
  402. package/dist/index294.js.map +1 -1
  403. package/dist/index295.js +13 -7
  404. package/dist/index295.js.map +1 -1
  405. package/dist/index296.js +154 -8
  406. package/dist/index296.js.map +1 -1
  407. package/dist/index297.js +30 -12
  408. package/dist/index297.js.map +1 -1
  409. package/dist/index298.js +9 -9
  410. package/dist/index298.js.map +1 -1
  411. package/dist/index299.js +47 -13
  412. package/dist/index299.js.map +1 -1
  413. package/dist/index30.js +47 -231
  414. package/dist/index30.js.map +1 -1
  415. package/dist/index300.js +11 -3
  416. package/dist/index300.js.map +1 -1
  417. package/dist/index301.js +43 -21
  418. package/dist/index301.js.map +1 -1
  419. package/dist/index302.js +95 -4
  420. package/dist/index302.js.map +1 -1
  421. package/dist/index303.js +85 -54
  422. package/dist/index303.js.map +1 -1
  423. package/dist/index304.js +105 -67
  424. package/dist/index304.js.map +1 -1
  425. package/dist/index305.js +53 -31
  426. package/dist/index305.js.map +1 -1
  427. package/dist/index306.js +12 -9
  428. package/dist/index306.js.map +1 -1
  429. package/dist/index307.js +36 -151
  430. package/dist/index307.js.map +1 -1
  431. package/dist/index308.js +9 -108
  432. package/dist/index308.js.map +1 -1
  433. package/dist/index309.js +4 -23
  434. package/dist/index309.js.map +1 -1
  435. package/dist/index31.js +218 -49
  436. package/dist/index31.js.map +1 -1
  437. package/dist/index310.js +10 -13
  438. package/dist/index310.js.map +1 -1
  439. package/dist/index311.js +113 -24
  440. package/dist/index311.js.map +1 -1
  441. package/dist/index312.js +18 -5
  442. package/dist/index312.js.map +1 -1
  443. package/dist/index313.js +15 -15
  444. package/dist/index313.js.map +1 -1
  445. package/dist/index314.js +33 -25
  446. package/dist/index314.js.map +1 -1
  447. package/dist/index315.js +20 -12
  448. package/dist/index315.js.map +1 -1
  449. package/dist/index316.js +8 -6
  450. package/dist/index316.js.map +1 -1
  451. package/dist/index317.js +23 -0
  452. package/dist/index317.js.map +1 -0
  453. package/dist/index318.js +32 -0
  454. package/dist/index318.js.map +1 -0
  455. package/dist/index319.js +20 -0
  456. package/dist/index319.js.map +1 -0
  457. package/dist/index32.js +36 -2633
  458. package/dist/index32.js.map +1 -1
  459. package/dist/index320.js +8 -0
  460. package/dist/index320.js.map +1 -0
  461. package/dist/index321.js +22 -0
  462. package/dist/index321.js.map +1 -0
  463. package/dist/index322.js +16 -0
  464. package/dist/index322.js.map +1 -0
  465. package/dist/index323.js +72 -0
  466. package/dist/index323.js.map +1 -0
  467. package/dist/index324.js +12 -0
  468. package/dist/index324.js.map +1 -0
  469. package/dist/index325.js +17 -0
  470. package/dist/index325.js.map +1 -0
  471. package/dist/index326.js +69 -0
  472. package/dist/index326.js.map +1 -0
  473. package/dist/index327.js +68 -0
  474. package/dist/index327.js.map +1 -0
  475. package/dist/index328.js +24 -0
  476. package/dist/index328.js.map +1 -0
  477. package/dist/index329.js +9 -0
  478. package/dist/index329.js.map +1 -0
  479. package/dist/index33.js +35 -388
  480. package/dist/index33.js.map +1 -1
  481. package/dist/index330.js +9 -0
  482. package/dist/index330.js.map +1 -0
  483. package/dist/index331.js +7 -0
  484. package/dist/index331.js.map +1 -0
  485. package/dist/index332.js +19 -0
  486. package/dist/index332.js.map +1 -0
  487. package/dist/index333.js +12 -0
  488. package/dist/index333.js.map +1 -0
  489. package/dist/index334.js +9 -0
  490. package/dist/index334.js.map +1 -0
  491. package/dist/index335.js +8 -0
  492. package/dist/index335.js.map +1 -0
  493. package/dist/index336.js +549 -0
  494. package/dist/index336.js.map +1 -0
  495. package/dist/index337.js +50 -0
  496. package/dist/index337.js.map +1 -0
  497. package/dist/index338.js +21 -0
  498. package/dist/index338.js.map +1 -0
  499. package/dist/index339.js +10 -0
  500. package/dist/index339.js.map +1 -0
  501. package/dist/index34.js +26 -230
  502. package/dist/index34.js.map +1 -1
  503. package/dist/index340.js +12 -0
  504. package/dist/index340.js.map +1 -0
  505. package/dist/index341.js +11 -0
  506. package/dist/index341.js.map +1 -0
  507. package/dist/index342.js +12 -0
  508. package/dist/index342.js.map +1 -0
  509. package/dist/index343.js +16 -0
  510. package/dist/index343.js.map +1 -0
  511. package/dist/index344.js +13 -0
  512. package/dist/index344.js.map +1 -0
  513. package/dist/index345.js +17 -0
  514. package/dist/index345.js.map +1 -0
  515. package/dist/index346.js +7 -0
  516. package/dist/index346.js.map +1 -0
  517. package/dist/index347.js +26 -0
  518. package/dist/index347.js.map +1 -0
  519. package/dist/index348.js +8 -0
  520. package/dist/index348.js.map +1 -0
  521. package/dist/index349.js +59 -0
  522. package/dist/index349.js.map +1 -0
  523. package/dist/index35.js +44 -20
  524. package/dist/index35.js.map +1 -1
  525. package/dist/index350.js +71 -0
  526. package/dist/index350.js.map +1 -0
  527. package/dist/index351.js +34 -0
  528. package/dist/index351.js.map +1 -0
  529. package/dist/index352.js +12 -0
  530. package/dist/index352.js.map +1 -0
  531. package/dist/index353.js +156 -0
  532. package/dist/index353.js.map +1 -0
  533. package/dist/index354.js +111 -0
  534. package/dist/index354.js.map +1 -0
  535. package/dist/index355.js +26 -0
  536. package/dist/index355.js.map +1 -0
  537. package/dist/index356.js +16 -0
  538. package/dist/index356.js.map +1 -0
  539. package/dist/index357.js +31 -0
  540. package/dist/index357.js.map +1 -0
  541. package/dist/index358.js +8 -0
  542. package/dist/index358.js.map +1 -0
  543. package/dist/index359.js +19 -0
  544. package/dist/index359.js.map +1 -0
  545. package/dist/index36.js +27 -137
  546. package/dist/index36.js.map +1 -1
  547. package/dist/index360.js +32 -0
  548. package/dist/index360.js.map +1 -0
  549. package/dist/index361.js +16 -0
  550. package/dist/index361.js.map +1 -0
  551. package/dist/index362.js +10 -0
  552. package/dist/index362.js.map +1 -0
  553. package/dist/index37.js +22 -181
  554. package/dist/index37.js.map +1 -1
  555. package/dist/index38.js +23 -77
  556. package/dist/index38.js.map +1 -1
  557. package/dist/index39.js +127 -89
  558. package/dist/index39.js.map +1 -1
  559. package/dist/index40.js +231 -5
  560. package/dist/index40.js.map +1 -1
  561. package/dist/index41.js +51 -844
  562. package/dist/index41.js.map +1 -1
  563. package/dist/index42.js +2636 -61
  564. package/dist/index42.js.map +1 -1
  565. package/dist/index43.js +393 -7
  566. package/dist/index43.js.map +1 -1
  567. package/dist/index44.js +233 -2
  568. package/dist/index44.js.map +1 -1
  569. package/dist/index45.js +20 -22
  570. package/dist/index45.js.map +1 -1
  571. package/dist/index46.js +140 -232
  572. package/dist/index46.js.map +1 -1
  573. package/dist/index47.js +180 -198
  574. package/dist/index47.js.map +1 -1
  575. package/dist/index48.js +76 -3
  576. package/dist/index48.js.map +1 -1
  577. package/dist/index49.js +89 -5
  578. package/dist/index49.js.map +1 -1
  579. package/dist/index50.js +5 -47
  580. package/dist/index50.js.map +1 -1
  581. package/dist/index51.js +840 -23
  582. package/dist/index51.js.map +1 -1
  583. package/dist/index52.js +65 -50
  584. package/dist/index52.js.map +1 -1
  585. package/dist/index53.js +7 -7
  586. package/dist/index53.js.map +1 -1
  587. package/dist/index54.js +2 -15
  588. package/dist/index54.js.map +1 -1
  589. package/dist/index55.js +22 -132
  590. package/dist/index55.js.map +1 -1
  591. package/dist/index56.js +233 -10
  592. package/dist/index56.js.map +1 -1
  593. package/dist/index57.js +191 -203
  594. package/dist/index57.js.map +1 -1
  595. package/dist/index58.js +4 -13
  596. package/dist/index58.js.map +1 -1
  597. package/dist/index59.js +6 -33
  598. package/dist/index59.js.map +1 -1
  599. package/dist/index60.js +44 -43
  600. package/dist/index60.js.map +1 -1
  601. package/dist/index61.js +26 -7
  602. package/dist/index61.js.map +1 -1
  603. package/dist/index62.js +48 -47
  604. package/dist/index62.js.map +1 -1
  605. package/dist/index63.js +7 -3
  606. package/dist/index63.js.map +1 -1
  607. package/dist/index64.js +14 -5
  608. package/dist/index64.js.map +1 -1
  609. package/dist/index65.js +133 -27
  610. package/dist/index65.js.map +1 -1
  611. package/dist/index66.js +11 -50
  612. package/dist/index66.js.map +1 -1
  613. package/dist/index67.js +216 -8
  614. package/dist/index67.js.map +1 -1
  615. package/dist/index68.js +13 -2
  616. package/dist/index68.js.map +1 -1
  617. package/dist/index69.js +34 -2
  618. package/dist/index69.js.map +1 -1
  619. package/dist/index70.js +46 -11
  620. package/dist/index70.js.map +1 -1
  621. package/dist/index71.js +7 -53
  622. package/dist/index71.js.map +1 -1
  623. package/dist/index72.js +49 -5
  624. package/dist/index72.js.map +1 -1
  625. package/dist/index73.js +4 -8
  626. package/dist/index73.js.map +1 -1
  627. package/dist/index74.js +5 -5
  628. package/dist/index74.js.map +1 -1
  629. package/dist/index75.js +27 -46
  630. package/dist/index75.js.map +1 -1
  631. package/dist/index76.js +48 -204
  632. package/dist/index76.js.map +1 -1
  633. package/dist/index77.js +8 -21
  634. package/dist/index77.js.map +1 -1
  635. package/dist/index78.js +11 -24
  636. package/dist/index78.js.map +1 -1
  637. package/dist/index79.js +2 -400
  638. package/dist/index79.js.map +1 -1
  639. package/dist/index80.js +2 -47
  640. package/dist/index80.js.map +1 -1
  641. package/dist/index81.js +52 -604
  642. package/dist/index81.js.map +1 -1
  643. package/dist/index82.js +46 -5
  644. package/dist/index82.js.map +1 -1
  645. package/dist/index83.js +199 -62
  646. package/dist/index83.js.map +1 -1
  647. package/dist/index84.js +22 -2
  648. package/dist/index84.js.map +1 -1
  649. package/dist/index85.js +24 -363
  650. package/dist/index85.js.map +1 -1
  651. package/dist/index86.js +381 -243
  652. package/dist/index86.js.map +1 -1
  653. package/dist/index87.js +41 -55
  654. package/dist/index87.js.map +1 -1
  655. package/dist/index88.js +5 -46
  656. package/dist/index88.js.map +1 -1
  657. package/dist/index89.js +7 -169
  658. package/dist/index89.js.map +1 -1
  659. package/dist/index90.js +5 -109
  660. package/dist/index90.js.map +1 -1
  661. package/dist/index91.js +605 -24
  662. package/dist/index91.js.map +1 -1
  663. package/dist/index92.js +4 -8
  664. package/dist/index92.js.map +1 -1
  665. package/dist/index93.js +33 -4
  666. package/dist/index93.js.map +1 -1
  667. package/dist/index94.js +249 -5
  668. package/dist/index94.js.map +1 -1
  669. package/dist/index95.js +114 -4
  670. package/dist/index95.js.map +1 -1
  671. package/dist/index96.js +214 -461
  672. package/dist/index96.js.map +1 -1
  673. package/dist/index97.js +60 -179
  674. package/dist/index97.js.map +1 -1
  675. package/dist/index98.js +18 -105
  676. package/dist/index98.js.map +1 -1
  677. package/dist/index99.js +197 -250
  678. package/dist/index99.js.map +1 -1
  679. package/package.json +1 -1
package/dist/index32.js CHANGED
@@ -1,2644 +1,47 @@
1
- import M, { memo as Dn, useMemo as A, useReducer as xn, useState as K, useRef as P, useCallback as U, useEffect as O, createContext as Ne, useContext as de, forwardRef as Cn, cloneElement as Sn } from "react";
2
- import { unstable_batchedUpdates as Be, createPortal as Rn } from "react-dom";
3
- import { useLatestValue as Ae, useUniqueId as Ue, getEventCoordinates as $e, getWindow as J, add as ye, useIsomorphicLayoutEffect as fe, getOwnerDocument as me, isKeyboardEvent as at, subtract as Ke, useLazyMemo as Me, isHTMLElement as He, useNodeRef as Xe, canUseDOM as lt, useInterval as En, usePrevious as je, findFirstFocusableNode as An, useEvent as ct, isWindow as ut, isNode as On, isDocument as Ut, CSS as rt, isSVGElement as Nn } from "./index34.js";
4
- import { useAnnouncement as Mn, HiddenText as Tn, LiveRegion as Ln } from "./index71.js";
5
- const Ht = /* @__PURE__ */ Ne(null);
6
- function kn(e) {
7
- const t = de(Ht);
8
- O(() => {
9
- if (!t)
10
- throw new Error("useDndMonitor must be used within a children of <DndContext>");
11
- return t(e);
12
- }, [e, t]);
13
- }
14
- function In() {
15
- const [e] = K(() => /* @__PURE__ */ new Set()), t = U((r) => (e.add(r), () => e.delete(r)), [e]);
16
- return [U((r) => {
17
- let {
18
- type: i,
19
- event: o
20
- } = r;
21
- e.forEach((a) => {
22
- var s;
23
- return (s = a[i]) == null ? void 0 : s.call(a, o);
24
- });
25
- }, [e]), t];
26
- }
27
- const Pn = {
28
- draggable: `
29
- To pick up a draggable item, press the space bar.
30
- While dragging, use the arrow keys to move the item.
31
- Press space again to drop the item in its new position, or press escape to cancel.
32
- `
33
- }, zn = {
34
- onDragStart(e) {
35
- let {
36
- active: t
37
- } = e;
38
- return "Picked up draggable item " + t.id + ".";
39
- },
40
- onDragOver(e) {
41
- let {
42
- active: t,
43
- over: n
44
- } = e;
45
- return n ? "Draggable item " + t.id + " was moved over droppable area " + n.id + "." : "Draggable item " + t.id + " is no longer over a droppable area.";
46
- },
47
- onDragEnd(e) {
48
- let {
49
- active: t,
50
- over: n
51
- } = e;
52
- return n ? "Draggable item " + t.id + " was dropped over droppable area " + n.id : "Draggable item " + t.id + " was dropped.";
53
- },
54
- onDragCancel(e) {
55
- let {
56
- active: t
57
- } = e;
58
- return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
59
- }
60
- };
61
- function Bn(e) {
62
- let {
63
- announcements: t = zn,
64
- container: n,
65
- hiddenTextDescribedById: r,
66
- screenReaderInstructions: i = Pn
67
- } = e;
68
- const {
69
- announce: o,
70
- announcement: a
71
- } = Mn(), s = Ue("DndLiveRegion"), [l, c] = K(!1);
72
- if (O(() => {
73
- c(!0);
74
- }, []), kn(A(() => ({
75
- onDragStart(u) {
76
- let {
77
- active: h
78
- } = u;
79
- o(t.onDragStart({
80
- active: h
81
- }));
82
- },
83
- onDragMove(u) {
84
- let {
85
- active: h,
86
- over: f
87
- } = u;
88
- t.onDragMove && o(t.onDragMove({
89
- active: h,
90
- over: f
91
- }));
92
- },
93
- onDragOver(u) {
94
- let {
95
- active: h,
96
- over: f
97
- } = u;
98
- o(t.onDragOver({
99
- active: h,
100
- over: f
101
- }));
102
- },
103
- onDragEnd(u) {
104
- let {
105
- active: h,
106
- over: f
107
- } = u;
108
- o(t.onDragEnd({
109
- active: h,
110
- over: f
111
- }));
112
- },
113
- onDragCancel(u) {
114
- let {
115
- active: h,
116
- over: f
117
- } = u;
118
- o(t.onDragCancel({
119
- active: h,
120
- over: f
121
- }));
122
- }
123
- }), [o, t])), !l)
124
- return null;
125
- const d = M.createElement(M.Fragment, null, M.createElement(Tn, {
126
- id: r,
127
- value: i.draggable
128
- }), M.createElement(Ln, {
129
- id: s,
130
- announcement: a
131
- }));
132
- return n ? Rn(d, n) : d;
133
- }
134
- var N;
135
- (function(e) {
136
- e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
137
- })(N || (N = {}));
138
- function We() {
139
- }
140
- function to(e, t) {
141
- return A(
142
- () => ({
143
- sensor: e,
144
- options: t ?? {}
145
- }),
146
- // eslint-disable-next-line react-hooks/exhaustive-deps
147
- [e, t]
148
- );
149
- }
150
- function no() {
151
- for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
152
- t[n] = arguments[n];
153
- return A(
154
- () => [...t].filter((r) => r != null),
155
- // eslint-disable-next-line react-hooks/exhaustive-deps
156
- [...t]
157
- );
158
- }
159
- const H = /* @__PURE__ */ Object.freeze({
160
- x: 0,
161
- y: 0
162
- });
163
- function _t(e, t) {
164
- return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
165
- }
166
- function Fn(e, t) {
167
- const n = $e(e);
168
- if (!n)
169
- return "0 0";
170
- const r = {
171
- x: (n.x - t.left) / t.width * 100,
172
- y: (n.y - t.top) / t.height * 100
173
- };
174
- return r.x + "% " + r.y + "%";
175
- }
176
- function qt(e, t) {
177
- let {
178
- data: {
179
- value: n
180
- }
181
- } = e, {
182
- data: {
183
- value: r
184
- }
185
- } = t;
186
- return n - r;
187
- }
188
- function $n(e, t) {
189
- let {
190
- data: {
191
- value: n
192
- }
193
- } = e, {
194
- data: {
195
- value: r
196
- }
197
- } = t;
198
- return r - n;
199
- }
200
- function Lt(e) {
201
- let {
202
- left: t,
203
- top: n,
204
- height: r,
205
- width: i
206
- } = e;
207
- return [{
208
- x: t,
209
- y: n
210
- }, {
211
- x: t + i,
212
- y: n
213
- }, {
214
- x: t,
215
- y: n + r
216
- }, {
217
- x: t + i,
218
- y: n + r
219
- }];
220
- }
221
- function Kn(e, t) {
222
- if (!e || e.length === 0)
223
- return null;
224
- const [n] = e;
225
- return n[t];
226
- }
227
- function kt(e, t, n) {
228
- return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
229
- x: t + e.width * 0.5,
230
- y: n + e.height * 0.5
231
- };
232
- }
233
- const ro = (e) => {
234
- let {
235
- collisionRect: t,
236
- droppableRects: n,
237
- droppableContainers: r
238
- } = e;
239
- const i = kt(t, t.left, t.top), o = [];
240
- for (const a of r) {
241
- const {
242
- id: s
243
- } = a, l = n.get(s);
244
- if (l) {
245
- const c = _t(kt(l), i);
246
- o.push({
247
- id: s,
248
- data: {
249
- droppableContainer: a,
250
- value: c
251
- }
252
- });
253
- }
254
- }
255
- return o.sort(qt);
256
- }, oo = (e) => {
257
- let {
258
- collisionRect: t,
259
- droppableRects: n,
260
- droppableContainers: r
261
- } = e;
262
- const i = Lt(t), o = [];
263
- for (const a of r) {
264
- const {
265
- id: s
266
- } = a, l = n.get(s);
267
- if (l) {
268
- const c = Lt(l), d = i.reduce((h, f, D) => h + _t(c[D], f), 0), u = Number((d / 4).toFixed(4));
269
- o.push({
270
- id: s,
271
- data: {
272
- droppableContainer: a,
273
- value: u
274
- }
275
- });
276
- }
277
- }
278
- return o.sort(qt);
279
- };
280
- function Xn(e, t) {
281
- const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), i = Math.min(t.left + t.width, e.left + e.width), o = Math.min(t.top + t.height, e.top + e.height), a = i - r, s = o - n;
282
- if (r < i && n < o) {
283
- const l = t.width * t.height, c = e.width * e.height, d = a * s, u = d / (l + c - d);
284
- return Number(u.toFixed(4));
285
- }
286
- return 0;
287
- }
288
- const jn = (e) => {
289
- let {
290
- collisionRect: t,
291
- droppableRects: n,
292
- droppableContainers: r
293
- } = e;
294
- const i = [];
295
- for (const o of r) {
296
- const {
297
- id: a
298
- } = o, s = n.get(a);
299
- if (s) {
300
- const l = Xn(s, t);
301
- l > 0 && i.push({
302
- id: a,
303
- data: {
304
- droppableContainer: o,
305
- value: l
306
- }
307
- });
308
- }
309
- }
310
- return i.sort($n);
311
- };
312
- function Wn(e, t, n) {
313
- return {
314
- ...e,
315
- scaleX: t && n ? t.width / n.width : 1,
316
- scaleY: t && n ? t.height / n.height : 1
317
- };
318
- }
319
- function Jt(e, t) {
320
- return e && t ? {
321
- x: e.left - t.left,
322
- y: e.top - t.top
323
- } : H;
324
- }
325
- function Yn(e) {
326
- return function(n) {
327
- for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
328
- i[o - 1] = arguments[o];
329
- return i.reduce((a, s) => ({
330
- ...a,
331
- top: a.top + e * s.y,
332
- bottom: a.bottom + e * s.y,
333
- left: a.left + e * s.x,
334
- right: a.right + e * s.x
335
- }), {
336
- ...n
337
- });
338
- };
339
- }
340
- const Un = /* @__PURE__ */ Yn(1);
341
- function Vt(e) {
342
- if (e.startsWith("matrix3d(")) {
343
- const t = e.slice(9, -1).split(/, /);
344
- return {
345
- x: +t[12],
346
- y: +t[13],
347
- scaleX: +t[0],
348
- scaleY: +t[5]
349
- };
350
- } else if (e.startsWith("matrix(")) {
351
- const t = e.slice(7, -1).split(/, /);
352
- return {
353
- x: +t[4],
354
- y: +t[5],
355
- scaleX: +t[0],
356
- scaleY: +t[3]
357
- };
358
- }
359
- return null;
360
- }
361
- function Hn(e, t, n) {
362
- const r = Vt(t);
363
- if (!r)
364
- return e;
365
- const {
366
- scaleX: i,
367
- scaleY: o,
368
- x: a,
369
- y: s
370
- } = r, l = e.left - a - (1 - i) * parseFloat(n), c = e.top - s - (1 - o) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = i ? e.width / i : e.width, u = o ? e.height / o : e.height;
371
- return {
372
- width: d,
373
- height: u,
374
- top: c,
375
- right: l + d,
376
- bottom: c + u,
377
- left: l
378
- };
379
- }
380
- const _n = {
381
- ignoreTransform: !1
382
- };
383
- function Te(e, t) {
384
- t === void 0 && (t = _n);
385
- let n = e.getBoundingClientRect();
386
- if (t.ignoreTransform) {
387
- const {
388
- transform: c,
389
- transformOrigin: d
390
- } = J(e).getComputedStyle(e);
391
- c && (n = Hn(n, c, d));
392
- }
393
- const {
394
- top: r,
395
- left: i,
396
- width: o,
397
- height: a,
398
- bottom: s,
399
- right: l
400
- } = n;
401
- return {
402
- top: r,
403
- left: i,
404
- width: o,
405
- height: a,
406
- bottom: s,
407
- right: l
408
- };
409
- }
410
- function It(e) {
411
- return Te(e, {
412
- ignoreTransform: !0
413
- });
414
- }
415
- function qn(e) {
416
- const t = e.innerWidth, n = e.innerHeight;
417
- return {
418
- top: 0,
419
- left: 0,
420
- right: t,
421
- bottom: n,
422
- width: t,
423
- height: n
424
- };
425
- }
426
- function Jn(e, t) {
427
- return t === void 0 && (t = J(e).getComputedStyle(e)), t.position === "fixed";
428
- }
429
- function Vn(e, t) {
430
- t === void 0 && (t = J(e).getComputedStyle(e));
431
- const n = /(auto|scroll|overlay)/;
432
- return ["overflow", "overflowX", "overflowY"].some((i) => {
433
- const o = t[i];
434
- return typeof o == "string" ? n.test(o) : !1;
435
- });
436
- }
437
- function dt(e, t) {
438
- const n = [];
439
- function r(i) {
440
- if (t != null && n.length >= t || !i)
441
- return n;
442
- if (Ut(i) && i.scrollingElement != null && !n.includes(i.scrollingElement))
443
- return n.push(i.scrollingElement), n;
444
- if (!He(i) || Nn(i) || n.includes(i))
445
- return n;
446
- const o = J(e).getComputedStyle(i);
447
- return i !== e && Vn(i, o) && n.push(i), Jn(i, o) ? n : r(i.parentNode);
448
- }
449
- return e ? r(e) : n;
450
- }
451
- function Gt(e) {
452
- const [t] = dt(e, 1);
453
- return t ?? null;
454
- }
455
- function et(e) {
456
- return !lt || !e ? null : ut(e) ? e : On(e) ? Ut(e) || e === me(e).scrollingElement ? window : He(e) ? e : null : null;
457
- }
458
- function Qt(e) {
459
- return ut(e) ? e.scrollX : e.scrollLeft;
460
- }
461
- function Zt(e) {
462
- return ut(e) ? e.scrollY : e.scrollTop;
463
- }
464
- function ot(e) {
465
- return {
466
- x: Qt(e),
467
- y: Zt(e)
468
- };
469
- }
470
- var L;
471
- (function(e) {
472
- e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
473
- })(L || (L = {}));
474
- function en(e) {
475
- return !lt || !e ? !1 : e === document.scrollingElement;
476
- }
477
- function tn(e) {
478
- const t = {
479
- x: 0,
480
- y: 0
481
- }, n = en(e) ? {
482
- height: window.innerHeight,
483
- width: window.innerWidth
484
- } : {
485
- height: e.clientHeight,
486
- width: e.clientWidth
487
- }, r = {
488
- x: e.scrollWidth - n.width,
489
- y: e.scrollHeight - n.height
490
- }, i = e.scrollTop <= t.y, o = e.scrollLeft <= t.x, a = e.scrollTop >= r.y, s = e.scrollLeft >= r.x;
491
- return {
492
- isTop: i,
493
- isLeft: o,
494
- isBottom: a,
495
- isRight: s,
496
- maxScroll: r,
497
- minScroll: t
498
- };
499
- }
500
- const Gn = {
501
- x: 0.2,
502
- y: 0.2
503
- };
504
- function Qn(e, t, n, r, i) {
505
- let {
506
- top: o,
507
- left: a,
508
- right: s,
509
- bottom: l
510
- } = n;
511
- r === void 0 && (r = 10), i === void 0 && (i = Gn);
512
- const {
513
- isTop: c,
514
- isBottom: d,
515
- isLeft: u,
516
- isRight: h
517
- } = tn(e), f = {
518
- x: 0,
519
- y: 0
520
- }, D = {
521
- x: 0,
522
- y: 0
523
- }, g = {
524
- height: t.height * i.y,
525
- width: t.width * i.x
526
- };
527
- return !c && o <= t.top + g.height ? (f.y = L.Backward, D.y = r * Math.abs((t.top + g.height - o) / g.height)) : !d && l >= t.bottom - g.height && (f.y = L.Forward, D.y = r * Math.abs((t.bottom - g.height - l) / g.height)), !h && s >= t.right - g.width ? (f.x = L.Forward, D.x = r * Math.abs((t.right - g.width - s) / g.width)) : !u && a <= t.left + g.width && (f.x = L.Backward, D.x = r * Math.abs((t.left + g.width - a) / g.width)), {
528
- direction: f,
529
- speed: D
530
- };
531
- }
532
- function Zn(e) {
533
- if (e === document.scrollingElement) {
534
- const {
535
- innerWidth: o,
536
- innerHeight: a
537
- } = window;
538
- return {
539
- top: 0,
540
- left: 0,
541
- right: o,
542
- bottom: a,
543
- width: o,
544
- height: a
545
- };
546
- }
547
- const {
548
- top: t,
549
- left: n,
550
- right: r,
551
- bottom: i
552
- } = e.getBoundingClientRect();
553
- return {
554
- top: t,
555
- left: n,
556
- right: r,
557
- bottom: i,
558
- width: e.clientWidth,
559
- height: e.clientHeight
560
- };
561
- }
562
- function nn(e) {
563
- return e.reduce((t, n) => ye(t, ot(n)), H);
564
- }
565
- function er(e) {
566
- return e.reduce((t, n) => t + Qt(n), 0);
567
- }
568
- function tr(e) {
569
- return e.reduce((t, n) => t + Zt(n), 0);
570
- }
571
- function rn(e, t) {
572
- if (t === void 0 && (t = Te), !e)
573
- return;
574
- const {
575
- top: n,
576
- left: r,
577
- bottom: i,
578
- right: o
579
- } = t(e);
580
- Gt(e) && (i <= 0 || o <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
581
- block: "center",
582
- inline: "center"
583
- });
584
- }
585
- const nr = [["x", ["left", "right"], er], ["y", ["top", "bottom"], tr]];
586
- class ft {
587
- constructor(t, n) {
588
- this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
589
- const r = dt(n), i = nn(r);
590
- this.rect = {
591
- ...t
592
- }, this.width = t.width, this.height = t.height;
593
- for (const [o, a, s] of nr)
594
- for (const l of a)
595
- Object.defineProperty(this, l, {
596
- get: () => {
597
- const c = s(r), d = i[o] - c;
598
- return this.rect[l] + d;
599
- },
600
- enumerable: !0
601
- });
602
- Object.defineProperty(this, "rect", {
603
- enumerable: !1
604
- });
605
- }
606
- }
607
- class Se {
608
- constructor(t) {
609
- this.target = void 0, this.listeners = [], this.removeAll = () => {
610
- this.listeners.forEach((n) => {
611
- var r;
612
- return (r = this.target) == null ? void 0 : r.removeEventListener(...n);
613
- });
614
- }, this.target = t;
615
- }
616
- add(t, n, r) {
617
- var i;
618
- (i = this.target) == null || i.addEventListener(t, n, r), this.listeners.push([t, n, r]);
619
- }
620
- }
621
- function rr(e) {
622
- const {
623
- EventTarget: t
624
- } = J(e);
625
- return e instanceof t ? e : me(e);
626
- }
627
- function tt(e, t) {
628
- const n = Math.abs(e.x), r = Math.abs(e.y);
629
- return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t ? r > t.y : !1;
630
- }
631
- var j;
632
- (function(e) {
633
- e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
634
- })(j || (j = {}));
635
- function Pt(e) {
636
- e.preventDefault();
637
- }
638
- function or(e) {
639
- e.stopPropagation();
640
- }
641
- var x;
642
- (function(e) {
643
- e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
644
- })(x || (x = {}));
645
- const on = {
646
- start: [x.Space, x.Enter],
647
- cancel: [x.Esc],
648
- end: [x.Space, x.Enter, x.Tab]
649
- }, ir = (e, t) => {
650
- let {
651
- currentCoordinates: n
652
- } = t;
653
- switch (e.code) {
654
- case x.Right:
655
- return {
656
- ...n,
657
- x: n.x + 25
658
- };
659
- case x.Left:
660
- return {
661
- ...n,
662
- x: n.x - 25
663
- };
664
- case x.Down:
665
- return {
666
- ...n,
667
- y: n.y + 25
668
- };
669
- case x.Up:
670
- return {
671
- ...n,
672
- y: n.y - 25
673
- };
674
- }
675
- };
676
- class sn {
677
- constructor(t) {
678
- this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
679
- const {
680
- event: {
681
- target: n
682
- }
683
- } = t;
684
- this.props = t, this.listeners = new Se(me(n)), this.windowListeners = new Se(J(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
685
- }
686
- attach() {
687
- this.handleStart(), this.windowListeners.add(j.Resize, this.handleCancel), this.windowListeners.add(j.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(j.Keydown, this.handleKeyDown));
688
- }
689
- handleStart() {
690
- const {
691
- activeNode: t,
692
- onStart: n
693
- } = this.props, r = t.node.current;
694
- r && rn(r), n(H);
695
- }
696
- handleKeyDown(t) {
697
- if (at(t)) {
698
- const {
699
- active: n,
700
- context: r,
701
- options: i
702
- } = this.props, {
703
- keyboardCodes: o = on,
704
- coordinateGetter: a = ir,
705
- scrollBehavior: s = "smooth"
706
- } = i, {
707
- code: l
708
- } = t;
709
- if (o.end.includes(l)) {
710
- this.handleEnd(t);
711
- return;
712
- }
713
- if (o.cancel.includes(l)) {
714
- this.handleCancel(t);
715
- return;
716
- }
717
- const {
718
- collisionRect: c
719
- } = r.current, d = c ? {
720
- x: c.left,
721
- y: c.top
722
- } : H;
723
- this.referenceCoordinates || (this.referenceCoordinates = d);
724
- const u = a(t, {
725
- active: n,
726
- context: r.current,
727
- currentCoordinates: d
728
- });
729
- if (u) {
730
- const h = Ke(u, d), f = {
731
- x: 0,
732
- y: 0
733
- }, {
734
- scrollableAncestors: D
735
- } = r.current;
736
- for (const g of D) {
737
- const v = t.code, {
738
- isTop: y,
739
- isRight: w,
740
- isLeft: m,
741
- isBottom: T,
742
- maxScroll: C,
743
- minScroll: S
744
- } = tn(g), p = Zn(g), b = {
745
- x: Math.min(v === x.Right ? p.right - p.width / 2 : p.right, Math.max(v === x.Right ? p.left : p.left + p.width / 2, u.x)),
746
- y: Math.min(v === x.Down ? p.bottom - p.height / 2 : p.bottom, Math.max(v === x.Down ? p.top : p.top + p.height / 2, u.y))
747
- }, R = v === x.Right && !w || v === x.Left && !m, k = v === x.Down && !T || v === x.Up && !y;
748
- if (R && b.x !== u.x) {
749
- const E = g.scrollLeft + h.x, V = v === x.Right && E <= C.x || v === x.Left && E >= S.x;
750
- if (V && !h.y) {
751
- g.scrollTo({
752
- left: E,
753
- behavior: s
754
- });
755
- return;
756
- }
757
- V ? f.x = g.scrollLeft - E : f.x = v === x.Right ? g.scrollLeft - C.x : g.scrollLeft - S.x, f.x && g.scrollBy({
758
- left: -f.x,
759
- behavior: s
760
- });
761
- break;
762
- } else if (k && b.y !== u.y) {
763
- const E = g.scrollTop + h.y, V = v === x.Down && E <= C.y || v === x.Up && E >= S.y;
764
- if (V && !h.x) {
765
- g.scrollTo({
766
- top: E,
767
- behavior: s
768
- });
769
- return;
770
- }
771
- V ? f.y = g.scrollTop - E : f.y = v === x.Down ? g.scrollTop - C.y : g.scrollTop - S.y, f.y && g.scrollBy({
772
- top: -f.y,
773
- behavior: s
774
- });
775
- break;
776
- }
777
- }
778
- this.handleMove(t, ye(Ke(u, this.referenceCoordinates), f));
779
- }
780
- }
781
- }
782
- handleMove(t, n) {
783
- const {
784
- onMove: r
785
- } = this.props;
786
- t.preventDefault(), r(n);
787
- }
788
- handleEnd(t) {
789
- const {
790
- onEnd: n
791
- } = this.props;
792
- t.preventDefault(), this.detach(), n();
793
- }
794
- handleCancel(t) {
795
- const {
796
- onCancel: n
797
- } = this.props;
798
- t.preventDefault(), this.detach(), n();
799
- }
800
- detach() {
801
- this.listeners.removeAll(), this.windowListeners.removeAll();
802
- }
803
- }
804
- sn.activators = [{
805
- eventName: "onKeyDown",
806
- handler: (e, t, n) => {
807
- let {
808
- keyboardCodes: r = on,
809
- onActivation: i
810
- } = t, {
811
- active: o
812
- } = n;
813
- const {
814
- code: a
815
- } = e.nativeEvent;
816
- if (r.start.includes(a)) {
817
- const s = o.activatorNode.current;
818
- return s && e.target !== s ? !1 : (e.preventDefault(), i?.({
819
- event: e.nativeEvent
820
- }), !0);
821
- }
822
- return !1;
823
- }
824
- }];
825
- function zt(e) {
826
- return !!(e && "distance" in e);
827
- }
828
- function Bt(e) {
829
- return !!(e && "delay" in e);
830
- }
831
- class ht {
832
- constructor(t, n, r) {
833
- var i;
834
- r === void 0 && (r = rr(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
835
- const {
836
- event: o
837
- } = t, {
838
- target: a
839
- } = o;
840
- this.props = t, this.events = n, this.document = me(a), this.documentListeners = new Se(this.document), this.listeners = new Se(r), this.windowListeners = new Se(J(a)), this.initialCoordinates = (i = $e(o)) != null ? i : H, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
841
- }
842
- attach() {
843
- const {
844
- events: t,
845
- props: {
846
- options: {
847
- activationConstraint: n,
848
- bypassActivationConstraint: r
849
- }
850
- }
851
- } = this;
852
- if (this.listeners.add(t.move.name, this.handleMove, {
853
- passive: !1
854
- }), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(j.Resize, this.handleCancel), this.windowListeners.add(j.DragStart, Pt), this.windowListeners.add(j.VisibilityChange, this.handleCancel), this.windowListeners.add(j.ContextMenu, Pt), this.documentListeners.add(j.Keydown, this.handleKeydown), n) {
855
- if (r != null && r({
856
- event: this.props.event,
857
- activeNode: this.props.activeNode,
858
- options: this.props.options
859
- }))
860
- return this.handleStart();
861
- if (Bt(n)) {
862
- this.timeoutId = setTimeout(this.handleStart, n.delay), this.handlePending(n);
863
- return;
864
- }
865
- if (zt(n)) {
866
- this.handlePending(n);
867
- return;
868
- }
869
- }
870
- this.handleStart();
871
- }
872
- detach() {
873
- this.listeners.removeAll(), this.windowListeners.removeAll(), setTimeout(this.documentListeners.removeAll, 50), this.timeoutId !== null && (clearTimeout(this.timeoutId), this.timeoutId = null);
874
- }
875
- handlePending(t, n) {
876
- const {
877
- active: r,
878
- onPending: i
879
- } = this.props;
880
- i(r, t, this.initialCoordinates, n);
881
- }
882
- handleStart() {
883
- const {
884
- initialCoordinates: t
885
- } = this, {
886
- onStart: n
887
- } = this.props;
888
- t && (this.activated = !0, this.documentListeners.add(j.Click, or, {
889
- capture: !0
890
- }), this.removeTextSelection(), this.documentListeners.add(j.SelectionChange, this.removeTextSelection), n(t));
891
- }
892
- handleMove(t) {
893
- var n;
894
- const {
895
- activated: r,
896
- initialCoordinates: i,
897
- props: o
898
- } = this, {
899
- onMove: a,
900
- options: {
901
- activationConstraint: s
902
- }
903
- } = o;
904
- if (!i)
905
- return;
906
- const l = (n = $e(t)) != null ? n : H, c = Ke(i, l);
907
- if (!r && s) {
908
- if (zt(s)) {
909
- if (s.tolerance != null && tt(c, s.tolerance))
910
- return this.handleCancel();
911
- if (tt(c, s.distance))
912
- return this.handleStart();
913
- }
914
- if (Bt(s) && tt(c, s.tolerance))
915
- return this.handleCancel();
916
- this.handlePending(s, c);
917
- return;
918
- }
919
- t.cancelable && t.preventDefault(), a(l);
920
- }
921
- handleEnd() {
922
- const {
923
- onAbort: t,
924
- onEnd: n
925
- } = this.props;
926
- this.detach(), this.activated || t(this.props.active), n();
927
- }
928
- handleCancel() {
929
- const {
930
- onAbort: t,
931
- onCancel: n
932
- } = this.props;
933
- this.detach(), this.activated || t(this.props.active), n();
934
- }
935
- handleKeydown(t) {
936
- t.code === x.Esc && this.handleCancel();
937
- }
938
- removeTextSelection() {
939
- var t;
940
- (t = this.document.getSelection()) == null || t.removeAllRanges();
941
- }
942
- }
943
- const sr = {
944
- cancel: {
945
- name: "pointercancel"
946
- },
947
- move: {
948
- name: "pointermove"
949
- },
950
- end: {
951
- name: "pointerup"
952
- }
953
- };
954
- class an extends ht {
955
- constructor(t) {
956
- const {
957
- event: n
958
- } = t, r = me(n.target);
959
- super(t, sr, r);
960
- }
961
- }
962
- an.activators = [{
963
- eventName: "onPointerDown",
964
- handler: (e, t) => {
965
- let {
966
- nativeEvent: n
967
- } = e, {
968
- onActivation: r
969
- } = t;
970
- return !n.isPrimary || n.button !== 0 ? !1 : (r?.({
971
- event: n
972
- }), !0);
973
- }
974
- }];
975
- const ar = {
976
- move: {
977
- name: "mousemove"
978
- },
979
- end: {
980
- name: "mouseup"
981
- }
982
- };
983
- var it;
984
- (function(e) {
985
- e[e.RightClick = 2] = "RightClick";
986
- })(it || (it = {}));
987
- class lr extends ht {
988
- constructor(t) {
989
- super(t, ar, me(t.event.target));
990
- }
991
- }
992
- lr.activators = [{
993
- eventName: "onMouseDown",
994
- handler: (e, t) => {
995
- let {
996
- nativeEvent: n
997
- } = e, {
998
- onActivation: r
999
- } = t;
1000
- return n.button === it.RightClick ? !1 : (r?.({
1001
- event: n
1002
- }), !0);
1003
- }
1004
- }];
1005
- const nt = {
1006
- cancel: {
1007
- name: "touchcancel"
1008
- },
1009
- move: {
1010
- name: "touchmove"
1011
- },
1012
- end: {
1013
- name: "touchend"
1014
- }
1015
- };
1016
- class cr extends ht {
1017
- constructor(t) {
1018
- super(t, nt);
1019
- }
1020
- static setup() {
1021
- return window.addEventListener(nt.move.name, t, {
1022
- capture: !1,
1023
- passive: !1
1024
- }), function() {
1025
- window.removeEventListener(nt.move.name, t);
1026
- };
1027
- function t() {
1028
- }
1029
- }
1030
- }
1031
- cr.activators = [{
1032
- eventName: "onTouchStart",
1033
- handler: (e, t) => {
1034
- let {
1035
- nativeEvent: n
1036
- } = e, {
1037
- onActivation: r
1038
- } = t;
1039
- const {
1040
- touches: i
1041
- } = n;
1042
- return i.length > 1 ? !1 : (r?.({
1043
- event: n
1044
- }), !0);
1045
- }
1046
- }];
1047
- var Re;
1048
- (function(e) {
1049
- e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
1050
- })(Re || (Re = {}));
1051
- var Ye;
1052
- (function(e) {
1053
- e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
1054
- })(Ye || (Ye = {}));
1055
- function ur(e) {
1056
- let {
1057
- acceleration: t,
1058
- activator: n = Re.Pointer,
1059
- canScroll: r,
1060
- draggingRect: i,
1061
- enabled: o,
1062
- interval: a = 5,
1063
- order: s = Ye.TreeOrder,
1064
- pointerCoordinates: l,
1065
- scrollableAncestors: c,
1066
- scrollableAncestorRects: d,
1067
- delta: u,
1068
- threshold: h
1069
- } = e;
1070
- const f = fr({
1071
- delta: u,
1072
- disabled: !o
1073
- }), [D, g] = En(), v = P({
1074
- x: 0,
1075
- y: 0
1076
- }), y = P({
1077
- x: 0,
1078
- y: 0
1079
- }), w = A(() => {
1080
- switch (n) {
1081
- case Re.Pointer:
1082
- return l ? {
1083
- top: l.y,
1084
- bottom: l.y,
1085
- left: l.x,
1086
- right: l.x
1087
- } : null;
1088
- case Re.DraggableRect:
1089
- return i;
1090
- }
1091
- }, [n, i, l]), m = P(null), T = U(() => {
1092
- const S = m.current;
1093
- if (!S)
1094
- return;
1095
- const p = v.current.x * y.current.x, b = v.current.y * y.current.y;
1096
- S.scrollBy(p, b);
1097
- }, []), C = A(() => s === Ye.TreeOrder ? [...c].reverse() : c, [s, c]);
1098
- O(
1099
- () => {
1100
- if (!o || !c.length || !w) {
1101
- g();
1102
- return;
1103
- }
1104
- for (const S of C) {
1105
- if (r?.(S) === !1)
1106
- continue;
1107
- const p = c.indexOf(S), b = d[p];
1108
- if (!b)
1109
- continue;
1110
- const {
1111
- direction: R,
1112
- speed: k
1113
- } = Qn(S, b, w, t, h);
1114
- for (const E of ["x", "y"])
1115
- f[E][R[E]] || (k[E] = 0, R[E] = 0);
1116
- if (k.x > 0 || k.y > 0) {
1117
- g(), m.current = S, D(T, a), v.current = k, y.current = R;
1118
- return;
1119
- }
1120
- }
1121
- v.current = {
1122
- x: 0,
1123
- y: 0
1124
- }, y.current = {
1125
- x: 0,
1126
- y: 0
1127
- }, g();
1128
- },
1129
- // eslint-disable-next-line react-hooks/exhaustive-deps
1130
- [
1131
- t,
1132
- T,
1133
- r,
1134
- g,
1135
- o,
1136
- a,
1137
- // eslint-disable-next-line react-hooks/exhaustive-deps
1138
- JSON.stringify(w),
1139
- // eslint-disable-next-line react-hooks/exhaustive-deps
1140
- JSON.stringify(f),
1141
- D,
1142
- c,
1143
- C,
1144
- d,
1145
- // eslint-disable-next-line react-hooks/exhaustive-deps
1146
- JSON.stringify(h)
1147
- ]
1148
- );
1149
- }
1150
- const dr = {
1151
- x: {
1152
- [L.Backward]: !1,
1153
- [L.Forward]: !1
1154
- },
1155
- y: {
1156
- [L.Backward]: !1,
1157
- [L.Forward]: !1
1158
- }
1159
- };
1160
- function fr(e) {
1161
- let {
1162
- delta: t,
1163
- disabled: n
1164
- } = e;
1165
- const r = je(t);
1166
- return Me((i) => {
1167
- if (n || !r || !i)
1168
- return dr;
1169
- const o = {
1170
- x: Math.sign(t.x - r.x),
1171
- y: Math.sign(t.y - r.y)
1172
- };
1173
- return {
1174
- x: {
1175
- [L.Backward]: i.x[L.Backward] || o.x === -1,
1176
- [L.Forward]: i.x[L.Forward] || o.x === 1
1177
- },
1178
- y: {
1179
- [L.Backward]: i.y[L.Backward] || o.y === -1,
1180
- [L.Forward]: i.y[L.Forward] || o.y === 1
1181
- }
1182
- };
1183
- }, [n, t, r]);
1184
- }
1185
- function hr(e, t) {
1186
- const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
1187
- return Me((i) => {
1188
- var o;
1189
- return t == null ? null : (o = r ?? i) != null ? o : null;
1190
- }, [r, t]);
1191
- }
1192
- function gr(e, t) {
1193
- return A(() => e.reduce((n, r) => {
1194
- const {
1195
- sensor: i
1196
- } = r, o = i.activators.map((a) => ({
1197
- eventName: a.eventName,
1198
- handler: t(a.handler, r)
1199
- }));
1200
- return [...n, ...o];
1201
- }, []), [e, t]);
1202
- }
1203
- var Oe;
1204
- (function(e) {
1205
- e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
1206
- })(Oe || (Oe = {}));
1207
- var st;
1208
- (function(e) {
1209
- e.Optimized = "optimized";
1210
- })(st || (st = {}));
1211
- const Ft = /* @__PURE__ */ new Map();
1212
- function vr(e, t) {
1213
- let {
1214
- dragging: n,
1215
- dependencies: r,
1216
- config: i
1217
- } = t;
1218
- const [o, a] = K(null), {
1219
- frequency: s,
1220
- measure: l,
1221
- strategy: c
1222
- } = i, d = P(e), u = v(), h = Ae(u), f = U(function(y) {
1223
- y === void 0 && (y = []), !h.current && a((w) => w === null ? y : w.concat(y.filter((m) => !w.includes(m))));
1224
- }, [h]), D = P(null), g = Me((y) => {
1225
- if (u && !n)
1226
- return Ft;
1227
- if (!y || y === Ft || d.current !== e || o != null) {
1228
- const w = /* @__PURE__ */ new Map();
1229
- for (let m of e) {
1230
- if (!m)
1231
- continue;
1232
- if (o && o.length > 0 && !o.includes(m.id) && m.rect.current) {
1233
- w.set(m.id, m.rect.current);
1234
- continue;
1235
- }
1236
- const T = m.node.current, C = T ? new ft(l(T), T) : null;
1237
- m.rect.current = C, C && w.set(m.id, C);
1238
- }
1239
- return w;
1240
- }
1241
- return y;
1242
- }, [e, o, n, u, l]);
1243
- return O(() => {
1244
- d.current = e;
1245
- }, [e]), O(
1246
- () => {
1247
- u || f();
1248
- },
1249
- // eslint-disable-next-line react-hooks/exhaustive-deps
1250
- [n, u]
1251
- ), O(
1252
- () => {
1253
- o && o.length > 0 && a(null);
1254
- },
1255
- //eslint-disable-next-line react-hooks/exhaustive-deps
1256
- [JSON.stringify(o)]
1257
- ), O(
1258
- () => {
1259
- u || typeof s != "number" || D.current !== null || (D.current = setTimeout(() => {
1260
- f(), D.current = null;
1261
- }, s));
1262
- },
1263
- // eslint-disable-next-line react-hooks/exhaustive-deps
1264
- [s, u, f, ...r]
1265
- ), {
1266
- droppableRects: g,
1267
- measureDroppableContainers: f,
1268
- measuringScheduled: o != null
1269
- };
1270
- function v() {
1271
- switch (c) {
1272
- case Oe.Always:
1273
- return !1;
1274
- case Oe.BeforeDragging:
1275
- return n;
1276
- default:
1277
- return !n;
1278
- }
1279
- }
1280
- }
1281
- function gt(e, t) {
1282
- return Me((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
1283
- }
1284
- function pr(e, t) {
1285
- return gt(e, t);
1286
- }
1287
- function br(e) {
1288
- let {
1289
- callback: t,
1290
- disabled: n
1291
- } = e;
1292
- const r = ct(t), i = A(() => {
1293
- if (n || typeof window > "u" || typeof window.MutationObserver > "u")
1294
- return;
1295
- const {
1296
- MutationObserver: o
1297
- } = window;
1298
- return new o(r);
1299
- }, [r, n]);
1300
- return O(() => () => i?.disconnect(), [i]), i;
1301
- }
1302
- function _e(e) {
1303
- let {
1304
- callback: t,
1305
- disabled: n
1306
- } = e;
1307
- const r = ct(t), i = A(
1308
- () => {
1309
- if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
1310
- return;
1311
- const {
1312
- ResizeObserver: o
1313
- } = window;
1314
- return new o(r);
1315
- },
1316
- // eslint-disable-next-line react-hooks/exhaustive-deps
1317
- [n]
1318
- );
1319
- return O(() => () => i?.disconnect(), [i]), i;
1320
- }
1321
- function yr(e) {
1322
- return new ft(Te(e), e);
1323
- }
1324
- function $t(e, t, n) {
1325
- t === void 0 && (t = yr);
1326
- const [r, i] = K(null);
1327
- function o() {
1328
- i((l) => {
1329
- if (!e)
1330
- return null;
1331
- if (e.isConnected === !1) {
1332
- var c;
1333
- return (c = l ?? n) != null ? c : null;
1334
- }
1335
- const d = t(e);
1336
- return JSON.stringify(l) === JSON.stringify(d) ? l : d;
1337
- });
1338
- }
1339
- const a = br({
1340
- callback(l) {
1341
- if (e)
1342
- for (const c of l) {
1343
- const {
1344
- type: d,
1345
- target: u
1346
- } = c;
1347
- if (d === "childList" && u instanceof HTMLElement && u.contains(e)) {
1348
- o();
1349
- break;
1350
- }
1351
- }
1352
- }
1353
- }), s = _e({
1354
- callback: o
1355
- });
1356
- return fe(() => {
1357
- o(), e ? (s?.observe(e), a?.observe(document.body, {
1358
- childList: !0,
1359
- subtree: !0
1360
- })) : (s?.disconnect(), a?.disconnect());
1361
- }, [e]), r;
1362
- }
1363
- function mr(e) {
1364
- const t = gt(e);
1365
- return Jt(e, t);
1366
- }
1367
- const Kt = [];
1368
- function wr(e) {
1369
- const t = P(e), n = Me((r) => e ? r && r !== Kt && e && t.current && e.parentNode === t.current.parentNode ? r : dt(e) : Kt, [e]);
1370
- return O(() => {
1371
- t.current = e;
1372
- }, [e]), n;
1373
- }
1374
- function Dr(e) {
1375
- const [t, n] = K(null), r = P(e), i = U((o) => {
1376
- const a = et(o.target);
1377
- a && n((s) => s ? (s.set(a, ot(a)), new Map(s)) : null);
1378
- }, []);
1379
- return O(() => {
1380
- const o = r.current;
1381
- if (e !== o) {
1382
- a(o);
1383
- const s = e.map((l) => {
1384
- const c = et(l);
1385
- return c ? (c.addEventListener("scroll", i, {
1386
- passive: !0
1387
- }), [c, ot(c)]) : null;
1388
- }).filter((l) => l != null);
1389
- n(s.length ? new Map(s) : null), r.current = e;
1390
- }
1391
- return () => {
1392
- a(e), a(o);
1393
- };
1394
- function a(s) {
1395
- s.forEach((l) => {
1396
- const c = et(l);
1397
- c?.removeEventListener("scroll", i);
1398
- });
1399
- }
1400
- }, [i, e]), A(() => e.length ? t ? Array.from(t.values()).reduce((o, a) => ye(o, a), H) : nn(e) : H, [e, t]);
1401
- }
1402
- function Xt(e, t) {
1403
- t === void 0 && (t = []);
1404
- const n = P(null);
1405
- return O(
1406
- () => {
1407
- n.current = null;
1408
- },
1409
- // eslint-disable-next-line react-hooks/exhaustive-deps
1410
- t
1411
- ), O(() => {
1412
- const r = e !== H;
1413
- r && !n.current && (n.current = e), !r && n.current && (n.current = null);
1414
- }, [e]), n.current ? Ke(e, n.current) : H;
1415
- }
1416
- function xr(e) {
1417
- O(
1418
- () => {
1419
- if (!lt)
1420
- return;
1421
- const t = e.map((n) => {
1422
- let {
1423
- sensor: r
1424
- } = n;
1425
- return r.setup == null ? void 0 : r.setup();
1426
- });
1427
- return () => {
1428
- for (const n of t)
1429
- n?.();
1430
- };
1431
- },
1432
- // TO-DO: Sensors length could theoretically change which would not be a valid dependency
1433
- // eslint-disable-next-line react-hooks/exhaustive-deps
1434
- e.map((t) => {
1435
- let {
1436
- sensor: n
1437
- } = t;
1438
- return n;
1439
- })
1440
- );
1441
- }
1442
- function Cr(e, t) {
1443
- return A(() => e.reduce((n, r) => {
1444
- let {
1445
- eventName: i,
1446
- handler: o
1447
- } = r;
1448
- return n[i] = (a) => {
1449
- o(a, t);
1450
- }, n;
1451
- }, {}), [e, t]);
1452
- }
1453
- function ln(e) {
1454
- return A(() => e ? qn(e) : null, [e]);
1455
- }
1456
- const jt = [];
1457
- function Sr(e, t) {
1458
- t === void 0 && (t = Te);
1459
- const [n] = e, r = ln(n ? J(n) : null), [i, o] = K(jt);
1460
- function a() {
1461
- o(() => e.length ? e.map((l) => en(l) ? r : new ft(t(l), l)) : jt);
1462
- }
1463
- const s = _e({
1464
- callback: a
1465
- });
1466
- return fe(() => {
1467
- s?.disconnect(), a(), e.forEach((l) => s?.observe(l));
1468
- }, [e]), i;
1469
- }
1470
- function cn(e) {
1471
- if (!e)
1472
- return null;
1473
- if (e.children.length > 1)
1474
- return e;
1475
- const t = e.children[0];
1476
- return He(t) ? t : e;
1477
- }
1478
- function Rr(e) {
1479
- let {
1480
- measure: t
1481
- } = e;
1482
- const [n, r] = K(null), i = U((c) => {
1483
- for (const {
1484
- target: d
1485
- } of c)
1486
- if (He(d)) {
1487
- r((u) => {
1488
- const h = t(d);
1489
- return u ? {
1490
- ...u,
1491
- width: h.width,
1492
- height: h.height
1493
- } : h;
1494
- });
1495
- break;
1496
- }
1497
- }, [t]), o = _e({
1498
- callback: i
1499
- }), a = U((c) => {
1500
- const d = cn(c);
1501
- o?.disconnect(), d && o?.observe(d), r(d ? t(d) : null);
1502
- }, [t, o]), [s, l] = Xe(a);
1503
- return A(() => ({
1504
- nodeRef: s,
1505
- rect: n,
1506
- setRef: l
1507
- }), [n, s, l]);
1508
- }
1509
- const Er = [{
1510
- sensor: an,
1511
- options: {}
1512
- }, {
1513
- sensor: sn,
1514
- options: {}
1515
- }], Ar = {
1516
- current: {}
1517
- }, Fe = {
1518
- draggable: {
1519
- measure: It
1520
- },
1521
- droppable: {
1522
- measure: It,
1523
- strategy: Oe.WhileDragging,
1524
- frequency: st.Optimized
1525
- },
1526
- dragOverlay: {
1527
- measure: Te
1528
- }
1529
- };
1530
- class Ee extends Map {
1531
- get(t) {
1532
- var n;
1533
- return t != null && (n = super.get(t)) != null ? n : void 0;
1534
- }
1535
- toArray() {
1536
- return Array.from(this.values());
1537
- }
1538
- getEnabled() {
1539
- return this.toArray().filter((t) => {
1540
- let {
1541
- disabled: n
1542
- } = t;
1543
- return !n;
1544
- });
1545
- }
1546
- getNodeFor(t) {
1547
- var n, r;
1548
- return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
1549
- }
1550
- }
1551
- const Or = {
1552
- activatorEvent: null,
1553
- active: null,
1554
- activeNode: null,
1555
- activeNodeRect: null,
1556
- collisions: null,
1557
- containerNodeRect: null,
1558
- draggableNodes: /* @__PURE__ */ new Map(),
1559
- droppableRects: /* @__PURE__ */ new Map(),
1560
- droppableContainers: /* @__PURE__ */ new Ee(),
1561
- over: null,
1562
- dragOverlay: {
1563
- nodeRef: {
1564
- current: null
1565
- },
1566
- rect: null,
1567
- setRef: We
1568
- },
1569
- scrollableAncestors: [],
1570
- scrollableAncestorRects: [],
1571
- measuringConfiguration: Fe,
1572
- measureDroppableContainers: We,
1573
- windowRect: null,
1574
- measuringScheduled: !1
1575
- }, un = {
1576
- activatorEvent: null,
1577
- activators: [],
1578
- active: null,
1579
- activeNodeRect: null,
1580
- ariaDescribedById: {
1581
- draggable: ""
1582
- },
1583
- dispatch: We,
1584
- draggableNodes: /* @__PURE__ */ new Map(),
1585
- over: null,
1586
- measureDroppableContainers: We
1587
- }, Le = /* @__PURE__ */ Ne(un), dn = /* @__PURE__ */ Ne(Or);
1588
- function Nr() {
1589
- return {
1590
- draggable: {
1591
- active: null,
1592
- initialCoordinates: {
1593
- x: 0,
1594
- y: 0
1595
- },
1596
- nodes: /* @__PURE__ */ new Map(),
1597
- translate: {
1598
- x: 0,
1599
- y: 0
1600
- }
1601
- },
1602
- droppable: {
1603
- containers: new Ee()
1604
- }
1605
- };
1606
- }
1607
- function Mr(e, t) {
1608
- switch (t.type) {
1609
- case N.DragStart:
1
+ import { isObject as t, pick as o, isString as f } from "./index215.js";
2
+ import r from "./index92.js";
3
+ function d(e) {
4
+ if (e == null) throw new Error("mask property should be defined");
5
+ return e instanceof RegExp ? r.MaskedRegExp : f(e) ? r.MaskedPattern : e === Date ? r.MaskedDate : e === Number ? r.MaskedNumber : Array.isArray(e) || e === Array ? r.MaskedDynamic : r.Masked && e.prototype instanceof r.Masked ? e : r.Masked && e instanceof r.Masked ? e.constructor : e instanceof Function ? r.MaskedFunction : (console.warn("Mask not found for mask", e), r.Masked);
6
+ }
7
+ function k(e) {
8
+ if (!e) throw new Error("Options in not defined");
9
+ if (r.Masked) {
10
+ if (e.prototype instanceof r.Masked) return {
11
+ mask: e
12
+ };
13
+ const {
14
+ mask: n = void 0,
15
+ ...a
16
+ } = e instanceof r.Masked ? {
17
+ mask: e
18
+ } : t(e) && e.mask instanceof r.Masked ? e : {};
19
+ if (n) {
20
+ const s = n.mask;
1610
21
  return {
1611
- ...e,
1612
- draggable: {
1613
- ...e.draggable,
1614
- initialCoordinates: t.initialCoordinates,
1615
- active: t.active
1616
- }
1617
- };
1618
- case N.DragMove:
1619
- return e.draggable.active == null ? e : {
1620
- ...e,
1621
- draggable: {
1622
- ...e.draggable,
1623
- translate: {
1624
- x: t.coordinates.x - e.draggable.initialCoordinates.x,
1625
- y: t.coordinates.y - e.draggable.initialCoordinates.y
1626
- }
1627
- }
1628
- };
1629
- case N.DragEnd:
1630
- case N.DragCancel:
1631
- return {
1632
- ...e,
1633
- draggable: {
1634
- ...e.draggable,
1635
- active: null,
1636
- initialCoordinates: {
1637
- x: 0,
1638
- y: 0
1639
- },
1640
- translate: {
1641
- x: 0,
1642
- y: 0
1643
- }
1644
- }
1645
- };
1646
- case N.RegisterDroppable: {
1647
- const {
1648
- element: n
1649
- } = t, {
1650
- id: r
1651
- } = n, i = new Ee(e.droppable.containers);
1652
- return i.set(r, n), {
1653
- ...e,
1654
- droppable: {
1655
- ...e.droppable,
1656
- containers: i
1657
- }
22
+ ...o(n, (c, i) => !i.startsWith("_")),
23
+ mask: n.constructor,
24
+ _mask: s,
25
+ ...a
1658
26
  };
1659
27
  }
1660
- case N.SetDroppableDisabled: {
1661
- const {
1662
- id: n,
1663
- key: r,
1664
- disabled: i
1665
- } = t, o = e.droppable.containers.get(n);
1666
- if (!o || r !== o.key)
1667
- return e;
1668
- const a = new Ee(e.droppable.containers);
1669
- return a.set(n, {
1670
- ...o,
1671
- disabled: i
1672
- }), {
1673
- ...e,
1674
- droppable: {
1675
- ...e.droppable,
1676
- containers: a
1677
- }
1678
- };
1679
- }
1680
- case N.UnregisterDroppable: {
1681
- const {
1682
- id: n,
1683
- key: r
1684
- } = t, i = e.droppable.containers.get(n);
1685
- if (!i || r !== i.key)
1686
- return e;
1687
- const o = new Ee(e.droppable.containers);
1688
- return o.delete(n), {
1689
- ...e,
1690
- droppable: {
1691
- ...e.droppable,
1692
- containers: o
1693
- }
1694
- };
1695
- }
1696
- default:
1697
- return e;
1698
28
  }
1699
- }
1700
- function Tr(e) {
1701
- let {
1702
- disabled: t
1703
- } = e;
1704
- const {
1705
- active: n,
1706
- activatorEvent: r,
1707
- draggableNodes: i
1708
- } = de(Le), o = je(r), a = je(n?.id);
1709
- return O(() => {
1710
- if (!t && !r && o && a != null) {
1711
- if (!at(o) || document.activeElement === o.target)
1712
- return;
1713
- const s = i.get(a);
1714
- if (!s)
1715
- return;
1716
- const {
1717
- activatorNode: l,
1718
- node: c
1719
- } = s;
1720
- if (!l.current && !c.current)
1721
- return;
1722
- requestAnimationFrame(() => {
1723
- for (const d of [l.current, c.current]) {
1724
- if (!d)
1725
- continue;
1726
- const u = An(d);
1727
- if (u) {
1728
- u.focus();
1729
- break;
1730
- }
1731
- }
1732
- });
1733
- }
1734
- }, [r, t, i, a, o]), null;
1735
- }
1736
- function fn(e, t) {
1737
- let {
1738
- transform: n,
1739
- ...r
1740
- } = t;
1741
- return e != null && e.length ? e.reduce((i, o) => o({
1742
- transform: i,
1743
- ...r
1744
- }), n) : n;
1745
- }
1746
- function Lr(e) {
1747
- return A(
1748
- () => ({
1749
- draggable: {
1750
- ...Fe.draggable,
1751
- ...e?.draggable
1752
- },
1753
- droppable: {
1754
- ...Fe.droppable,
1755
- ...e?.droppable
1756
- },
1757
- dragOverlay: {
1758
- ...Fe.dragOverlay,
1759
- ...e?.dragOverlay
1760
- }
1761
- }),
1762
- // eslint-disable-next-line react-hooks/exhaustive-deps
1763
- [e?.draggable, e?.droppable, e?.dragOverlay]
1764
- );
1765
- }
1766
- function kr(e) {
1767
- let {
1768
- activeNode: t,
1769
- measure: n,
1770
- initialRect: r,
1771
- config: i = !0
1772
- } = e;
1773
- const o = P(!1), {
1774
- x: a,
1775
- y: s
1776
- } = typeof i == "boolean" ? {
1777
- x: i,
1778
- y: i
1779
- } : i;
1780
- fe(() => {
1781
- if (!a && !s || !t) {
1782
- o.current = !1;
1783
- return;
1784
- }
1785
- if (o.current || !r)
1786
- return;
1787
- const c = t?.node.current;
1788
- if (!c || c.isConnected === !1)
1789
- return;
1790
- const d = n(c), u = Jt(d, r);
1791
- if (a || (u.x = 0), s || (u.y = 0), o.current = !0, Math.abs(u.x) > 0 || Math.abs(u.y) > 0) {
1792
- const h = Gt(c);
1793
- h && h.scrollBy({
1794
- top: u.y,
1795
- left: u.x
1796
- });
1797
- }
1798
- }, [t, a, s, r, n]);
1799
- }
1800
- const qe = /* @__PURE__ */ Ne({
1801
- ...H,
1802
- scaleX: 1,
1803
- scaleY: 1
1804
- });
1805
- var se;
1806
- (function(e) {
1807
- e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
1808
- })(se || (se = {}));
1809
- const io = /* @__PURE__ */ Dn(function(t) {
1810
- var n, r, i, o;
1811
- let {
1812
- id: a,
1813
- accessibility: s,
1814
- autoScroll: l = !0,
1815
- children: c,
1816
- sensors: d = Er,
1817
- collisionDetection: u = jn,
1818
- measuring: h,
1819
- modifiers: f,
1820
- ...D
1821
- } = t;
1822
- const g = xn(Mr, void 0, Nr), [v, y] = g, [w, m] = In(), [T, C] = K(se.Uninitialized), S = T === se.Initialized, {
1823
- draggable: {
1824
- active: p,
1825
- nodes: b,
1826
- translate: R
1827
- },
1828
- droppable: {
1829
- containers: k
1830
- }
1831
- } = v, E = p != null ? b.get(p) : null, V = P({
1832
- initial: null,
1833
- translated: null
1834
- }), G = A(() => {
1835
- var z;
1836
- return p != null ? {
1837
- id: p,
1838
- // It's possible for the active node to unmount while dragging
1839
- data: (z = E?.data) != null ? z : Ar,
1840
- rect: V
1841
- } : null;
1842
- }, [p, E]), ee = P(null), [vt, pt] = K(null), [Q, bt] = K(null), ae = Ae(D, Object.values(D)), Je = Ue("DndDescribedBy", a), yt = A(() => k.getEnabled(), [k]), le = Lr(h), {
1843
- droppableRects: he,
1844
- measureDroppableContainers: ke,
1845
- measuringScheduled: mt
1846
- } = vr(yt, {
1847
- dragging: S,
1848
- dependencies: [R.x, R.y],
1849
- config: le.droppable
1850
- }), W = hr(b, p), wt = A(() => Q ? $e(Q) : null, [Q]), Dt = wn(), xt = pr(W, le.draggable.measure);
1851
- kr({
1852
- activeNode: p != null ? b.get(p) : null,
1853
- config: Dt.layoutShiftCompensation,
1854
- initialRect: xt,
1855
- measure: le.draggable.measure
1856
- });
1857
- const Y = $t(W, le.draggable.measure, xt), Ve = $t(W ? W.parentElement : null), ce = P({
1858
- activatorEvent: null,
1859
- active: null,
1860
- activeNode: W,
1861
- collisionRect: null,
1862
- collisions: null,
1863
- droppableRects: he,
1864
- draggableNodes: b,
1865
- draggingNode: null,
1866
- draggingNodeRect: null,
1867
- droppableContainers: k,
1868
- over: null,
1869
- scrollableAncestors: [],
1870
- scrollAdjustedTranslate: null
1871
- }), Ct = k.getNodeFor((n = ce.current.over) == null ? void 0 : n.id), ue = Rr({
1872
- measure: le.dragOverlay.measure
1873
- }), Ie = (r = ue.nodeRef.current) != null ? r : W, ge = S ? (i = ue.rect) != null ? i : Y : null, St = !!(ue.nodeRef.current && ue.rect), Rt = mr(St ? null : Y), Ge = ln(Ie ? J(Ie) : null), te = wr(S ? Ct ?? W : null), Pe = Sr(te), ze = fn(f, {
1874
- transform: {
1875
- x: R.x - Rt.x,
1876
- y: R.y - Rt.y,
1877
- scaleX: 1,
1878
- scaleY: 1
1879
- },
1880
- activatorEvent: Q,
1881
- active: G,
1882
- activeNodeRect: Y,
1883
- containerNodeRect: Ve,
1884
- draggingNodeRect: ge,
1885
- over: ce.current.over,
1886
- overlayNodeRect: ue.rect,
1887
- scrollableAncestors: te,
1888
- scrollableAncestorRects: Pe,
1889
- windowRect: Ge
1890
- }), Et = wt ? ye(wt, R) : null, At = Dr(te), hn = Xt(At), gn = Xt(At, [Y]), ve = ye(ze, hn), pe = ge ? Un(ge, ze) : null, we = G && pe ? u({
1891
- active: G,
1892
- collisionRect: pe,
1893
- droppableRects: he,
1894
- droppableContainers: yt,
1895
- pointerCoordinates: Et
1896
- }) : null, Ot = Kn(we, "id"), [ne, Nt] = K(null), vn = St ? ze : ye(ze, gn), pn = Wn(vn, (o = ne?.rect) != null ? o : null, Y), Qe = P(null), Mt = U(
1897
- (z, B) => {
1898
- let {
1899
- sensor: F,
1900
- options: re
1901
- } = B;
1902
- if (ee.current == null)
1903
- return;
1904
- const X = b.get(ee.current);
1905
- if (!X)
1906
- return;
1907
- const $ = z.nativeEvent, _ = new F({
1908
- active: ee.current,
1909
- activeNode: X,
1910
- event: $,
1911
- options: re,
1912
- // Sensors need to be instantiated with refs for arguments that change over time
1913
- // otherwise they are frozen in time with the stale arguments
1914
- context: ce,
1915
- onAbort(I) {
1916
- if (!b.get(I))
1917
- return;
1918
- const {
1919
- onDragAbort: q
1920
- } = ae.current, Z = {
1921
- id: I
1922
- };
1923
- q?.(Z), w({
1924
- type: "onDragAbort",
1925
- event: Z
1926
- });
1927
- },
1928
- onPending(I, oe, q, Z) {
1929
- if (!b.get(I))
1930
- return;
1931
- const {
1932
- onDragPending: xe
1933
- } = ae.current, ie = {
1934
- id: I,
1935
- constraint: oe,
1936
- initialCoordinates: q,
1937
- offset: Z
1938
- };
1939
- xe?.(ie), w({
1940
- type: "onDragPending",
1941
- event: ie
1942
- });
1943
- },
1944
- onStart(I) {
1945
- const oe = ee.current;
1946
- if (oe == null)
1947
- return;
1948
- const q = b.get(oe);
1949
- if (!q)
1950
- return;
1951
- const {
1952
- onDragStart: Z
1953
- } = ae.current, De = {
1954
- activatorEvent: $,
1955
- active: {
1956
- id: oe,
1957
- data: q.data,
1958
- rect: V
1959
- }
1960
- };
1961
- Be(() => {
1962
- Z?.(De), C(se.Initializing), y({
1963
- type: N.DragStart,
1964
- initialCoordinates: I,
1965
- active: oe
1966
- }), w({
1967
- type: "onDragStart",
1968
- event: De
1969
- }), pt(Qe.current), bt($);
1970
- });
1971
- },
1972
- onMove(I) {
1973
- y({
1974
- type: N.DragMove,
1975
- coordinates: I
1976
- });
1977
- },
1978
- onEnd: be(N.DragEnd),
1979
- onCancel: be(N.DragCancel)
1980
- });
1981
- Qe.current = _;
1982
- function be(I) {
1983
- return async function() {
1984
- const {
1985
- active: q,
1986
- collisions: Z,
1987
- over: De,
1988
- scrollAdjustedTranslate: xe
1989
- } = ce.current;
1990
- let ie = null;
1991
- if (q && xe) {
1992
- const {
1993
- cancelDrop: Ce
1994
- } = ae.current;
1995
- ie = {
1996
- activatorEvent: $,
1997
- active: q,
1998
- collisions: Z,
1999
- delta: xe,
2000
- over: De
2001
- }, I === N.DragEnd && typeof Ce == "function" && await Promise.resolve(Ce(ie)) && (I = N.DragCancel);
2002
- }
2003
- ee.current = null, Be(() => {
2004
- y({
2005
- type: I
2006
- }), C(se.Uninitialized), Nt(null), pt(null), bt(null), Qe.current = null;
2007
- const Ce = I === N.DragEnd ? "onDragEnd" : "onDragCancel";
2008
- if (ie) {
2009
- const Ze = ae.current[Ce];
2010
- Ze?.(ie), w({
2011
- type: Ce,
2012
- event: ie
2013
- });
2014
- }
2015
- });
2016
- };
2017
- }
2018
- },
2019
- // eslint-disable-next-line react-hooks/exhaustive-deps
2020
- [b]
2021
- ), bn = U((z, B) => (F, re) => {
2022
- const X = F.nativeEvent, $ = b.get(re);
2023
- if (
2024
- // Another sensor is already instantiating
2025
- ee.current !== null || // No active draggable
2026
- !$ || // Event has already been captured
2027
- X.dndKit || X.defaultPrevented
2028
- )
2029
- return;
2030
- const _ = {
2031
- active: $
2032
- };
2033
- z(F, B.options, _) === !0 && (X.dndKit = {
2034
- capturedBy: B.sensor
2035
- }, ee.current = re, Mt(F, B));
2036
- }, [b, Mt]), Tt = gr(d, bn);
2037
- xr(d), fe(() => {
2038
- Y && T === se.Initializing && C(se.Initialized);
2039
- }, [Y, T]), O(
2040
- () => {
2041
- const {
2042
- onDragMove: z
2043
- } = ae.current, {
2044
- active: B,
2045
- activatorEvent: F,
2046
- collisions: re,
2047
- over: X
2048
- } = ce.current;
2049
- if (!B || !F)
2050
- return;
2051
- const $ = {
2052
- active: B,
2053
- activatorEvent: F,
2054
- collisions: re,
2055
- delta: {
2056
- x: ve.x,
2057
- y: ve.y
2058
- },
2059
- over: X
2060
- };
2061
- Be(() => {
2062
- z?.($), w({
2063
- type: "onDragMove",
2064
- event: $
2065
- });
2066
- });
2067
- },
2068
- // eslint-disable-next-line react-hooks/exhaustive-deps
2069
- [ve.x, ve.y]
2070
- ), O(
2071
- () => {
2072
- const {
2073
- active: z,
2074
- activatorEvent: B,
2075
- collisions: F,
2076
- droppableContainers: re,
2077
- scrollAdjustedTranslate: X
2078
- } = ce.current;
2079
- if (!z || ee.current == null || !B || !X)
2080
- return;
2081
- const {
2082
- onDragOver: $
2083
- } = ae.current, _ = re.get(Ot), be = _ && _.rect.current ? {
2084
- id: _.id,
2085
- rect: _.rect.current,
2086
- data: _.data,
2087
- disabled: _.disabled
2088
- } : null, I = {
2089
- active: z,
2090
- activatorEvent: B,
2091
- collisions: F,
2092
- delta: {
2093
- x: X.x,
2094
- y: X.y
2095
- },
2096
- over: be
2097
- };
2098
- Be(() => {
2099
- Nt(be), $?.(I), w({
2100
- type: "onDragOver",
2101
- event: I
2102
- });
2103
- });
2104
- },
2105
- // eslint-disable-next-line react-hooks/exhaustive-deps
2106
- [Ot]
2107
- ), fe(() => {
2108
- ce.current = {
2109
- activatorEvent: Q,
2110
- active: G,
2111
- activeNode: W,
2112
- collisionRect: pe,
2113
- collisions: we,
2114
- droppableRects: he,
2115
- draggableNodes: b,
2116
- draggingNode: Ie,
2117
- draggingNodeRect: ge,
2118
- droppableContainers: k,
2119
- over: ne,
2120
- scrollableAncestors: te,
2121
- scrollAdjustedTranslate: ve
2122
- }, V.current = {
2123
- initial: ge,
2124
- translated: pe
2125
- };
2126
- }, [G, W, we, pe, b, Ie, ge, he, k, ne, te, ve]), ur({
2127
- ...Dt,
2128
- delta: R,
2129
- draggingRect: pe,
2130
- pointerCoordinates: Et,
2131
- scrollableAncestors: te,
2132
- scrollableAncestorRects: Pe
2133
- });
2134
- const yn = A(() => ({
2135
- active: G,
2136
- activeNode: W,
2137
- activeNodeRect: Y,
2138
- activatorEvent: Q,
2139
- collisions: we,
2140
- containerNodeRect: Ve,
2141
- dragOverlay: ue,
2142
- draggableNodes: b,
2143
- droppableContainers: k,
2144
- droppableRects: he,
2145
- over: ne,
2146
- measureDroppableContainers: ke,
2147
- scrollableAncestors: te,
2148
- scrollableAncestorRects: Pe,
2149
- measuringConfiguration: le,
2150
- measuringScheduled: mt,
2151
- windowRect: Ge
2152
- }), [G, W, Y, Q, we, Ve, ue, b, k, he, ne, ke, te, Pe, le, mt, Ge]), mn = A(() => ({
2153
- activatorEvent: Q,
2154
- activators: Tt,
2155
- active: G,
2156
- activeNodeRect: Y,
2157
- ariaDescribedById: {
2158
- draggable: Je
2159
- },
2160
- dispatch: y,
2161
- draggableNodes: b,
2162
- over: ne,
2163
- measureDroppableContainers: ke
2164
- }), [Q, Tt, G, Y, y, Je, b, ne, ke]);
2165
- return M.createElement(Ht.Provider, {
2166
- value: m
2167
- }, M.createElement(Le.Provider, {
2168
- value: mn
2169
- }, M.createElement(dn.Provider, {
2170
- value: yn
2171
- }, M.createElement(qe.Provider, {
2172
- value: pn
2173
- }, c)), M.createElement(Tr, {
2174
- disabled: s?.restoreFocus === !1
2175
- })), M.createElement(Bn, {
2176
- ...s,
2177
- hiddenTextDescribedById: Je
2178
- }));
2179
- function wn() {
2180
- const z = vt?.autoScrollEnabled === !1, B = typeof l == "object" ? l.enabled === !1 : l === !1, F = S && !z && !B;
2181
- return typeof l == "object" ? {
2182
- ...l,
2183
- enabled: F
2184
- } : {
2185
- enabled: F
2186
- };
2187
- }
2188
- }), Ir = /* @__PURE__ */ Ne(null), Wt = "button", Pr = "Draggable";
2189
- function so(e) {
2190
- let {
2191
- id: t,
2192
- data: n,
2193
- disabled: r = !1,
2194
- attributes: i
2195
- } = e;
2196
- const o = Ue(Pr), {
2197
- activators: a,
2198
- activatorEvent: s,
2199
- active: l,
2200
- activeNodeRect: c,
2201
- ariaDescribedById: d,
2202
- draggableNodes: u,
2203
- over: h
2204
- } = de(Le), {
2205
- role: f = Wt,
2206
- roleDescription: D = "draggable",
2207
- tabIndex: g = 0
2208
- } = i ?? {}, v = l?.id === t, y = de(v ? qe : Ir), [w, m] = Xe(), [T, C] = Xe(), S = Cr(a, t), p = Ae(n);
2209
- fe(
2210
- () => (u.set(t, {
2211
- id: t,
2212
- key: o,
2213
- node: w,
2214
- activatorNode: T,
2215
- data: p
2216
- }), () => {
2217
- const R = u.get(t);
2218
- R && R.key === o && u.delete(t);
2219
- }),
2220
- // eslint-disable-next-line react-hooks/exhaustive-deps
2221
- [u, t]
2222
- );
2223
- const b = A(() => ({
2224
- role: f,
2225
- tabIndex: g,
2226
- "aria-disabled": r,
2227
- "aria-pressed": v && f === Wt ? !0 : void 0,
2228
- "aria-roledescription": D,
2229
- "aria-describedby": d.draggable
2230
- }), [r, f, g, v, D, d.draggable]);
2231
- return {
2232
- active: l,
2233
- activatorEvent: s,
2234
- activeNodeRect: c,
2235
- attributes: b,
2236
- isDragging: v,
2237
- listeners: r ? void 0 : S,
2238
- node: w,
2239
- over: h,
2240
- setNodeRef: m,
2241
- setActivatorNodeRef: C,
2242
- transform: y
2243
- };
2244
- }
2245
- function zr() {
2246
- return de(dn);
2247
- }
2248
- const Br = "Droppable", Fr = {
2249
- timeout: 25
2250
- };
2251
- function ao(e) {
2252
- let {
2253
- data: t,
2254
- disabled: n = !1,
2255
- id: r,
2256
- resizeObserverConfig: i
2257
- } = e;
2258
- const o = Ue(Br), {
2259
- active: a,
2260
- dispatch: s,
2261
- over: l,
2262
- measureDroppableContainers: c
2263
- } = de(Le), d = P({
2264
- disabled: n
2265
- }), u = P(!1), h = P(null), f = P(null), {
2266
- disabled: D,
2267
- updateMeasurementsFor: g,
2268
- timeout: v
2269
- } = {
2270
- ...Fr,
2271
- ...i
2272
- }, y = Ae(g ?? r), w = U(
2273
- () => {
2274
- if (!u.current) {
2275
- u.current = !0;
2276
- return;
2277
- }
2278
- f.current != null && clearTimeout(f.current), f.current = setTimeout(() => {
2279
- c(Array.isArray(y.current) ? y.current : [y.current]), f.current = null;
2280
- }, v);
2281
- },
2282
- //eslint-disable-next-line react-hooks/exhaustive-deps
2283
- [v]
2284
- ), m = _e({
2285
- callback: w,
2286
- disabled: D || !a
2287
- }), T = U((b, R) => {
2288
- m && (R && (m.unobserve(R), u.current = !1), b && m.observe(b));
2289
- }, [m]), [C, S] = Xe(T), p = Ae(t);
2290
- return O(() => {
2291
- !m || !C.current || (m.disconnect(), u.current = !1, m.observe(C.current));
2292
- }, [C, m]), O(
2293
- () => (s({
2294
- type: N.RegisterDroppable,
2295
- element: {
2296
- id: r,
2297
- key: o,
2298
- disabled: n,
2299
- node: C,
2300
- rect: h,
2301
- data: p
2302
- }
2303
- }), () => s({
2304
- type: N.UnregisterDroppable,
2305
- key: o,
2306
- id: r
2307
- })),
2308
- // eslint-disable-next-line react-hooks/exhaustive-deps
2309
- [r]
2310
- ), O(() => {
2311
- n !== d.current.disabled && (s({
2312
- type: N.SetDroppableDisabled,
2313
- id: r,
2314
- key: o,
2315
- disabled: n
2316
- }), d.current.disabled = n);
2317
- }, [r, o, n, s]), {
2318
- active: a,
2319
- rect: h,
2320
- isOver: l?.id === r,
2321
- node: C,
2322
- over: l,
2323
- setNodeRef: S
2324
- };
2325
- }
2326
- function $r(e) {
2327
- let {
2328
- animation: t,
2329
- children: n
2330
- } = e;
2331
- const [r, i] = K(null), [o, a] = K(null), s = je(n);
2332
- return !n && !r && s && i(s), fe(() => {
2333
- if (!o)
2334
- return;
2335
- const l = r?.key, c = r?.props.id;
2336
- if (l == null || c == null) {
2337
- i(null);
2338
- return;
2339
- }
2340
- Promise.resolve(t(c, o)).then(() => {
2341
- i(null);
2342
- });
2343
- }, [t, r, o]), M.createElement(M.Fragment, null, n, r ? Sn(r, {
2344
- ref: a
2345
- }) : null);
2346
- }
2347
- const Kr = {
2348
- x: 0,
2349
- y: 0,
2350
- scaleX: 1,
2351
- scaleY: 1
2352
- };
2353
- function Xr(e) {
2354
- let {
2355
- children: t
2356
- } = e;
2357
- return M.createElement(Le.Provider, {
2358
- value: un
2359
- }, M.createElement(qe.Provider, {
2360
- value: Kr
2361
- }, t));
2362
- }
2363
- const jr = {
2364
- position: "fixed",
2365
- touchAction: "none"
2366
- }, Wr = (e) => at(e) ? "transform 250ms ease" : void 0, Yr = /* @__PURE__ */ Cn((e, t) => {
2367
- let {
2368
- as: n,
2369
- activatorEvent: r,
2370
- adjustScale: i,
2371
- children: o,
2372
- className: a,
2373
- rect: s,
2374
- style: l,
2375
- transform: c,
2376
- transition: d = Wr
2377
- } = e;
2378
- if (!s)
2379
- return null;
2380
- const u = i ? c : {
2381
- ...c,
2382
- scaleX: 1,
2383
- scaleY: 1
2384
- }, h = {
2385
- ...jr,
2386
- width: s.width,
2387
- height: s.height,
2388
- top: s.top,
2389
- left: s.left,
2390
- transform: rt.Transform.toString(u),
2391
- transformOrigin: i && r ? Fn(r, s) : void 0,
2392
- transition: typeof d == "function" ? d(r) : d,
2393
- ...l
2394
- };
2395
- return M.createElement(n, {
2396
- className: a,
2397
- style: h,
2398
- ref: t
2399
- }, o);
2400
- }), Ur = (e) => (t) => {
2401
- let {
2402
- active: n,
2403
- dragOverlay: r
2404
- } = t;
2405
- const i = {}, {
2406
- styles: o,
2407
- className: a
2408
- } = e;
2409
- if (o != null && o.active)
2410
- for (const [s, l] of Object.entries(o.active))
2411
- l !== void 0 && (i[s] = n.node.style.getPropertyValue(s), n.node.style.setProperty(s, l));
2412
- if (o != null && o.dragOverlay)
2413
- for (const [s, l] of Object.entries(o.dragOverlay))
2414
- l !== void 0 && r.node.style.setProperty(s, l);
2415
- return a != null && a.active && n.node.classList.add(a.active), a != null && a.dragOverlay && r.node.classList.add(a.dragOverlay), function() {
2416
- for (const [l, c] of Object.entries(i))
2417
- n.node.style.setProperty(l, c);
2418
- a != null && a.active && n.node.classList.remove(a.active);
2419
- };
2420
- }, Hr = (e) => {
2421
- let {
2422
- transform: {
2423
- initial: t,
2424
- final: n
2425
- }
2426
- } = e;
2427
- return [{
2428
- transform: rt.Transform.toString(t)
2429
- }, {
2430
- transform: rt.Transform.toString(n)
2431
- }];
2432
- }, _r = {
2433
- duration: 250,
2434
- easing: "ease",
2435
- keyframes: Hr,
2436
- sideEffects: /* @__PURE__ */ Ur({
2437
- styles: {
2438
- active: {
2439
- opacity: "0"
2440
- }
2441
- }
2442
- })
2443
- };
2444
- function qr(e) {
2445
- let {
2446
- config: t,
2447
- draggableNodes: n,
2448
- droppableContainers: r,
2449
- measuringConfiguration: i
2450
- } = e;
2451
- return ct((o, a) => {
2452
- if (t === null)
2453
- return;
2454
- const s = n.get(o);
2455
- if (!s)
2456
- return;
2457
- const l = s.node.current;
2458
- if (!l)
2459
- return;
2460
- const c = cn(a);
2461
- if (!c)
2462
- return;
2463
- const {
2464
- transform: d
2465
- } = J(a).getComputedStyle(a), u = Vt(d);
2466
- if (!u)
2467
- return;
2468
- const h = typeof t == "function" ? t : Jr(t);
2469
- return rn(l, i.draggable.measure), h({
2470
- active: {
2471
- id: o,
2472
- data: s.data,
2473
- node: l,
2474
- rect: i.draggable.measure(l)
2475
- },
2476
- draggableNodes: n,
2477
- dragOverlay: {
2478
- node: a,
2479
- rect: i.dragOverlay.measure(c)
2480
- },
2481
- droppableContainers: r,
2482
- measuringConfiguration: i,
2483
- transform: u
2484
- });
2485
- });
2486
- }
2487
- function Jr(e) {
2488
- const {
2489
- duration: t,
2490
- easing: n,
2491
- sideEffects: r,
2492
- keyframes: i
2493
- } = {
2494
- ..._r,
29
+ return t(e) ? {
2495
30
  ...e
2496
- };
2497
- return (o) => {
2498
- let {
2499
- active: a,
2500
- dragOverlay: s,
2501
- transform: l,
2502
- ...c
2503
- } = o;
2504
- if (!t)
2505
- return;
2506
- const d = {
2507
- x: s.rect.left - a.rect.left,
2508
- y: s.rect.top - a.rect.top
2509
- }, u = {
2510
- scaleX: l.scaleX !== 1 ? a.rect.width * l.scaleX / s.rect.width : 1,
2511
- scaleY: l.scaleY !== 1 ? a.rect.height * l.scaleY / s.rect.height : 1
2512
- }, h = {
2513
- x: l.x - d.x,
2514
- y: l.y - d.y,
2515
- ...u
2516
- }, f = i({
2517
- ...c,
2518
- active: a,
2519
- dragOverlay: s,
2520
- transform: {
2521
- initial: l,
2522
- final: h
2523
- }
2524
- }), [D] = f, g = f[f.length - 1];
2525
- if (JSON.stringify(D) === JSON.stringify(g))
2526
- return;
2527
- const v = r?.({
2528
- active: a,
2529
- dragOverlay: s,
2530
- ...c
2531
- }), y = s.node.animate(f, {
2532
- duration: t,
2533
- easing: n,
2534
- fill: "forwards"
2535
- });
2536
- return new Promise((w) => {
2537
- y.onfinish = () => {
2538
- v?.(), w();
2539
- };
2540
- });
31
+ } : {
32
+ mask: e
2541
33
  };
2542
34
  }
2543
- let Yt = 0;
2544
- function Vr(e) {
2545
- return A(() => {
2546
- if (e != null)
2547
- return Yt++, Yt;
2548
- }, [e]);
35
+ function u(e) {
36
+ if (r.Masked && e instanceof r.Masked) return e;
37
+ const n = k(e), a = d(n.mask);
38
+ if (!a) throw new Error("Masked class is not found for provided mask " + n.mask + ", appropriate module needs to be imported manually before creating mask.");
39
+ return n.mask === a && delete n.mask, n._mask && (n.mask = n._mask, delete n._mask), new a(n);
2549
40
  }
2550
- const lo = /* @__PURE__ */ M.memo((e) => {
2551
- let {
2552
- adjustScale: t = !1,
2553
- children: n,
2554
- dropAnimation: r,
2555
- style: i,
2556
- transition: o,
2557
- modifiers: a,
2558
- wrapperElement: s = "div",
2559
- className: l,
2560
- zIndex: c = 999
2561
- } = e;
2562
- const {
2563
- activatorEvent: d,
2564
- active: u,
2565
- activeNodeRect: h,
2566
- containerNodeRect: f,
2567
- draggableNodes: D,
2568
- droppableContainers: g,
2569
- dragOverlay: v,
2570
- over: y,
2571
- measuringConfiguration: w,
2572
- scrollableAncestors: m,
2573
- scrollableAncestorRects: T,
2574
- windowRect: C
2575
- } = zr(), S = de(qe), p = Vr(u?.id), b = fn(a, {
2576
- activatorEvent: d,
2577
- active: u,
2578
- activeNodeRect: h,
2579
- containerNodeRect: f,
2580
- draggingNodeRect: v.rect,
2581
- over: y,
2582
- overlayNodeRect: v.rect,
2583
- scrollableAncestors: m,
2584
- scrollableAncestorRects: T,
2585
- transform: S,
2586
- windowRect: C
2587
- }), R = gt(h), k = qr({
2588
- config: r,
2589
- draggableNodes: D,
2590
- droppableContainers: g,
2591
- measuringConfiguration: w
2592
- }), E = R ? v.setRef : void 0;
2593
- return M.createElement(Xr, null, M.createElement($r, {
2594
- animation: k
2595
- }, u && p ? M.createElement(Yr, {
2596
- key: p,
2597
- id: u.id,
2598
- ref: E,
2599
- as: s,
2600
- activatorEvent: d,
2601
- adjustScale: t,
2602
- className: l,
2603
- transition: o,
2604
- rect: R,
2605
- style: {
2606
- zIndex: c,
2607
- ...i
2608
- },
2609
- transform: b
2610
- }, n) : null));
2611
- });
41
+ r.createMask = u;
2612
42
  export {
2613
- Re as AutoScrollActivator,
2614
- io as DndContext,
2615
- lo as DragOverlay,
2616
- x as KeyboardCode,
2617
- sn as KeyboardSensor,
2618
- st as MeasuringFrequency,
2619
- Oe as MeasuringStrategy,
2620
- lr as MouseSensor,
2621
- an as PointerSensor,
2622
- cr as TouchSensor,
2623
- Ye as TraversalOrder,
2624
- fn as applyModifiers,
2625
- ro as closestCenter,
2626
- oo as closestCorners,
2627
- zn as defaultAnnouncements,
2628
- H as defaultCoordinates,
2629
- _r as defaultDropAnimation,
2630
- Ur as defaultDropAnimationSideEffects,
2631
- ir as defaultKeyboardCoordinateGetter,
2632
- Pn as defaultScreenReaderInstructions,
2633
- Te as getClientRect,
2634
- Kn as getFirstCollision,
2635
- dt as getScrollableAncestors,
2636
- jn as rectIntersection,
2637
- zr as useDndContext,
2638
- kn as useDndMonitor,
2639
- so as useDraggable,
2640
- ao as useDroppable,
2641
- to as useSensor,
2642
- no as useSensors
43
+ u as default,
44
+ d as maskedClass,
45
+ k as normalizeOpts
2643
46
  };
2644
47
  //# sourceMappingURL=index32.js.map