@boxcustodia/library 1.7.8 → 1.7.9

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 (465) hide show
  1. package/dist/index.d.ts +16 -3
  2. package/dist/index.es100.js +1 -1
  3. package/dist/index.es105.js +3 -310
  4. package/dist/index.es106.js +4 -13
  5. package/dist/index.es107.js +15 -27
  6. package/dist/index.es108.js +5 -20
  7. package/dist/index.es109.js +55 -257
  8. package/dist/index.es110.js +4 -7
  9. package/dist/index.es111.js +27 -12
  10. package/dist/index.es112.js +58 -3
  11. package/dist/index.es113.js +18 -4
  12. package/dist/index.es114.js +41 -15
  13. package/dist/index.es115.js +52 -5
  14. package/dist/index.es116.js +13 -57
  15. package/dist/index.es117.js +7 -6
  16. package/dist/index.es118.js +22 -55
  17. package/dist/index.es119.js +257 -59
  18. package/dist/index.es120.js +308 -112
  19. package/dist/index.es121.js +13 -44
  20. package/dist/index.es122.js +19 -24
  21. package/dist/index.es123.js +55 -31
  22. package/dist/index.es124.js +59 -56
  23. package/dist/index.es125.js +111 -1084
  24. package/dist/index.es126.js +44 -4
  25. package/dist/index.es127.js +25 -4
  26. package/dist/index.es128.js +31 -10
  27. package/dist/index.es129.js +24 -38
  28. package/dist/index.es130.js +1087 -18
  29. package/dist/index.es131.js +4 -41
  30. package/dist/index.es132.js +4 -22
  31. package/dist/index.es133.js +13 -39
  32. package/dist/index.es134.js +26 -14
  33. package/dist/index.es135.js +10 -22
  34. package/dist/index.es136.js +4 -4
  35. package/dist/index.es137.js +5 -5
  36. package/dist/index.es141.js +10 -240
  37. package/dist/index.es142.js +17 -17
  38. package/dist/index.es143.js +4 -10
  39. package/dist/index.es144.js +4 -10
  40. package/dist/index.es145.js +33 -18
  41. package/dist/index.es146.js +18 -43
  42. package/dist/index.es147.js +25 -67
  43. package/dist/index.es148.js +239 -32
  44. package/dist/index.es149.js +22 -10
  45. package/dist/index.es150.js +4 -13
  46. package/dist/index.es151.js +17 -26
  47. package/dist/index.es152.js +44 -4
  48. package/dist/index.es153.js +68 -5
  49. package/dist/index.es154.js +6 -4
  50. package/dist/index.es158.js +16 -215
  51. package/dist/index.es159.js +14 -17
  52. package/dist/index.es16.js +1 -1
  53. package/dist/index.es160.js +3 -4
  54. package/dist/index.es161.js +7 -6
  55. package/dist/index.es162.js +78 -14
  56. package/dist/index.es163.js +87 -73
  57. package/dist/index.es164.js +344 -84
  58. package/dist/index.es165.js +114 -342
  59. package/dist/index.es166.js +212 -120
  60. package/dist/index.es170.js +1 -1
  61. package/dist/index.es171.js +1 -1
  62. package/dist/index.es172.js +18 -14
  63. package/dist/index.es173.js +35 -32
  64. package/dist/index.es174.js +3674 -10
  65. package/dist/index.es175.js +5 -26
  66. package/dist/index.es176.js +2 -19
  67. package/dist/index.es177.js +24 -33
  68. package/dist/index.es178.js +205 -21
  69. package/dist/index.es179.js +17 -33
  70. package/dist/index.es18.js +1 -1
  71. package/dist/index.es180.js +33 -7
  72. package/dist/index.es181.js +10 -3674
  73. package/dist/index.es182.js +14 -5
  74. package/dist/index.es183.js +33 -2
  75. package/dist/index.es184.js +11 -205
  76. package/dist/index.es185.js +43 -5
  77. package/dist/index.es186.js +5 -66
  78. package/dist/index.es187.js +61 -118
  79. package/dist/index.es188.js +116 -126
  80. package/dist/index.es189.js +134 -13
  81. package/dist/index.es190.js +13 -14
  82. package/dist/index.es191.js +14 -8
  83. package/dist/index.es192.js +9 -50
  84. package/dist/index.es193.js +47 -42
  85. package/dist/index.es194.js +3 -217
  86. package/dist/index.es195.js +46 -4
  87. package/dist/index.es196.js +7 -3
  88. package/dist/index.es197.js +215 -43
  89. package/dist/index.es198.js +3 -7
  90. package/dist/index.es2.js +1 -1
  91. package/dist/index.es200.js +1 -1
  92. package/dist/index.es201.js +17 -17
  93. package/dist/index.es202.js +2 -3
  94. package/dist/index.es203.js +4 -2
  95. package/dist/index.es204.js +3 -2054
  96. package/dist/index.es205.js +2 -4
  97. package/dist/index.es206.js +2054 -2
  98. package/dist/index.es207.js +1 -1
  99. package/dist/index.es208.js +7 -7
  100. package/dist/index.es215.js +8 -19
  101. package/dist/index.es216.js +5 -14
  102. package/dist/index.es217.js +5 -6
  103. package/dist/index.es218.js +17 -6
  104. package/dist/index.es219.js +6 -53
  105. package/dist/index.es22.js +1 -1
  106. package/dist/index.es220.js +7 -11
  107. package/dist/index.es221.js +5 -6
  108. package/dist/index.es222.js +13 -10
  109. package/dist/index.es223.js +15 -7
  110. package/dist/index.es224.js +9 -17
  111. package/dist/index.es225.js +6 -6
  112. package/dist/index.es226.js +14 -6
  113. package/dist/index.es227.js +5 -8
  114. package/dist/index.es228.js +14 -14
  115. package/dist/index.es229.js +6 -10
  116. package/dist/index.es230.js +6 -7
  117. package/dist/index.es231.js +6 -5
  118. package/dist/index.es232.js +4 -5
  119. package/dist/index.es233.js +580 -17
  120. package/dist/index.es234.js +50 -6
  121. package/dist/index.es235.js +18 -7
  122. package/dist/index.es236.js +6 -5
  123. package/dist/index.es237.js +19 -14
  124. package/dist/index.es238.js +8 -15
  125. package/dist/index.es239.js +6 -8
  126. package/dist/index.es24.js +1 -1
  127. package/dist/index.es240.js +7 -6
  128. package/dist/index.es241.js +5 -5
  129. package/dist/index.es242.js +6 -4
  130. package/dist/index.es243.js +9 -580
  131. package/dist/index.es244.js +6 -50
  132. package/dist/index.es245.js +8 -17
  133. package/dist/index.es246.js +12 -6
  134. package/dist/index.es247.js +10 -19
  135. package/dist/index.es248.js +8 -8
  136. package/dist/index.es249.js +10 -6
  137. package/dist/index.es250.js +14 -7
  138. package/dist/index.es251.js +5 -5
  139. package/dist/index.es252.js +11 -6
  140. package/dist/index.es253.js +10 -9
  141. package/dist/index.es254.js +9 -4
  142. package/dist/index.es255.js +6 -8
  143. package/dist/index.es256.js +9 -12
  144. package/dist/index.es257.js +83 -9
  145. package/dist/index.es258.js +38 -10
  146. package/dist/index.es259.js +65 -15
  147. package/dist/index.es26.js +2 -2
  148. package/dist/index.es260.js +9 -5
  149. package/dist/index.es261.js +8 -11
  150. package/dist/index.es262.js +7 -9
  151. package/dist/index.es263.js +10 -83
  152. package/dist/index.es264.js +7 -38
  153. package/dist/index.es265.js +8 -65
  154. package/dist/index.es266.js +6 -9
  155. package/dist/index.es267.js +5 -8
  156. package/dist/index.es268.js +15 -7
  157. package/dist/index.es269.js +11 -7
  158. package/dist/index.es270.js +204 -5
  159. package/dist/index.es271.js +22 -16
  160. package/dist/index.es272.js +24 -11
  161. package/dist/index.es273.js +381 -193
  162. package/dist/index.es274.js +175 -19
  163. package/dist/index.es275.js +30 -24
  164. package/dist/index.es276.js +17 -391
  165. package/dist/index.es277.js +52 -30
  166. package/dist/index.es278.js +15 -176
  167. package/dist/index.es279.js +12 -8
  168. package/dist/index.es28.js +2 -2
  169. package/dist/index.es280.js +8 -2
  170. package/dist/index.es281.js +2 -23
  171. package/dist/index.es282.js +11 -11
  172. package/dist/index.es283.js +22 -20
  173. package/dist/index.es284.js +21 -2
  174. package/dist/index.es285.js +2 -9406
  175. package/dist/index.es286.js +8970 -14876
  176. package/dist/index.es287.js +15312 -3
  177. package/dist/index.es288.js +3 -61
  178. package/dist/index.es289.js +59 -8
  179. package/dist/index.es290.js +10 -3
  180. package/dist/index.es291.js +3 -5
  181. package/dist/index.es292.js +5 -12
  182. package/dist/index.es297.js +1 -1
  183. package/dist/index.es298.js +1 -1
  184. package/dist/index.es30.js +1 -1
  185. package/dist/index.es300.js +1 -1
  186. package/dist/index.es301.js +3 -3
  187. package/dist/index.es302.js +3 -3
  188. package/dist/index.es308.js +5 -5
  189. package/dist/index.es309.js +1 -1
  190. package/dist/index.es310.js +7 -7
  191. package/dist/index.es311.js +2 -2
  192. package/dist/index.es312.js +2 -2
  193. package/dist/index.es317.js +1 -1
  194. package/dist/index.es318.js +2 -2
  195. package/dist/index.es319.js +4 -4
  196. package/dist/index.es32.js +1 -1
  197. package/dist/index.es320.js +4 -4
  198. package/dist/index.es321.js +2 -2
  199. package/dist/index.es322.js +2 -2
  200. package/dist/index.es323.js +2 -2
  201. package/dist/index.es324.js +3 -3
  202. package/dist/index.es325.js +3 -3
  203. package/dist/index.es326.js +5 -5
  204. package/dist/index.es327.js +5 -5
  205. package/dist/index.es328.js +3 -3
  206. package/dist/index.es329.js +3 -3
  207. package/dist/index.es33.js +3 -3
  208. package/dist/index.es330.js +2 -2
  209. package/dist/index.es331.js +3 -3
  210. package/dist/index.es332.js +3 -3
  211. package/dist/index.es333.js +3 -3
  212. package/dist/index.es334.js +2 -2
  213. package/dist/index.es335.js +2 -2
  214. package/dist/index.es336.js +2 -2
  215. package/dist/index.es337.js +3 -3
  216. package/dist/index.es338.js +3 -3
  217. package/dist/index.es339.js +3 -3
  218. package/dist/index.es34.js +6 -6
  219. package/dist/index.es340.js +3 -3
  220. package/dist/index.es341.js +3 -3
  221. package/dist/index.es342.js +3 -3
  222. package/dist/index.es343.js +2 -2
  223. package/dist/index.es344.js +5 -5
  224. package/dist/index.es345.js +5 -5
  225. package/dist/index.es346.js +3 -3
  226. package/dist/index.es347.js +3 -3
  227. package/dist/index.es349.js +3 -3
  228. package/dist/index.es350.js +3 -3
  229. package/dist/index.es351.js +10 -2
  230. package/dist/index.es352.js +9 -7
  231. package/dist/index.es353.js +5 -2
  232. package/dist/index.es354.js +5 -2
  233. package/dist/index.es355.js +5 -2
  234. package/dist/index.es356.js +6 -9
  235. package/dist/index.es357.js +332 -8
  236. package/dist/index.es358.js +19 -5
  237. package/dist/index.es359.js +4 -5
  238. package/dist/index.es360.js +4 -4
  239. package/dist/index.es361.js +3 -7
  240. package/dist/index.es362.js +68 -330
  241. package/dist/index.es363.js +4 -19
  242. package/dist/index.es364.js +2 -4
  243. package/dist/index.es365.js +2 -5
  244. package/dist/index.es366.js +2 -3
  245. package/dist/index.es367.js +7 -71
  246. package/dist/index.es368.js +2 -4
  247. package/dist/index.es371.js +1 -1
  248. package/dist/index.es372.js +1 -1
  249. package/dist/index.es373.js +1 -1
  250. package/dist/index.es374.js +2 -2
  251. package/dist/index.es375.js +1 -1
  252. package/dist/index.es376.js +2 -2
  253. package/dist/index.es377.js +1 -1
  254. package/dist/index.es378.js +3 -3
  255. package/dist/index.es379.js +2 -2
  256. package/dist/index.es38.js +1 -1
  257. package/dist/index.es382.js +2 -2
  258. package/dist/index.es383.js +2 -2
  259. package/dist/index.es384.js +6 -6
  260. package/dist/index.es385.js +3 -3
  261. package/dist/index.es386.js +2 -2
  262. package/dist/index.es39.js +1 -1
  263. package/dist/index.es391.js +4 -4
  264. package/dist/index.es394.js +1 -1
  265. package/dist/index.es396.js +1 -1
  266. package/dist/index.es398.js +1 -1
  267. package/dist/index.es399.js +2 -2
  268. package/dist/index.es40.js +5 -5
  269. package/dist/index.es400.js +5 -68
  270. package/dist/index.es401.js +3 -31
  271. package/dist/index.es402.js +24 -16
  272. package/dist/index.es403.js +110 -141
  273. package/dist/index.es404.js +15 -113
  274. package/dist/index.es405.js +20 -2
  275. package/dist/index.es406.js +99 -229
  276. package/dist/index.es407.js +47 -234
  277. package/dist/index.es408.js +2 -20
  278. package/dist/index.es409.js +229 -99
  279. package/dist/index.es41.js +2 -2
  280. package/dist/index.es410.js +234 -47
  281. package/dist/index.es411.js +523 -5
  282. package/dist/index.es412.js +127 -3
  283. package/dist/index.es413.js +127 -22
  284. package/dist/index.es414.js +5 -109
  285. package/dist/index.es415.js +14 -15
  286. package/dist/index.es416.js +2 -523
  287. package/dist/index.es417.js +7 -126
  288. package/dist/index.es418.js +321 -123
  289. package/dist/index.es419.js +49 -5
  290. package/dist/index.es420.js +3 -14
  291. package/dist/index.es421.js +68 -2
  292. package/dist/index.es422.js +31 -8
  293. package/dist/index.es423.js +16 -327
  294. package/dist/index.es424.js +139 -48
  295. package/dist/index.es425.js +114 -2
  296. package/dist/index.es426.js +2 -28
  297. package/dist/index.es427.js +28 -2
  298. package/dist/index.es428.js +2 -2
  299. package/dist/index.es429.js +2 -27
  300. package/dist/index.es430.js +21 -92
  301. package/dist/index.es431.js +94 -50
  302. package/dist/index.es432.js +50 -14
  303. package/dist/index.es433.js +18 -2
  304. package/dist/index.es434.js +2 -29
  305. package/dist/index.es435.js +29 -2
  306. package/dist/index.es436.js +2 -2
  307. package/dist/index.es437.js +2 -2
  308. package/dist/index.es438.js +2 -2
  309. package/dist/index.es44.js +83 -81
  310. package/dist/index.es440.js +2 -11
  311. package/dist/index.es441.js +11 -2
  312. package/dist/index.es442.js +2 -2
  313. package/dist/index.es443.js +2 -48
  314. package/dist/index.es444.js +48 -2
  315. package/dist/index.es445.js +2 -2
  316. package/dist/index.es446.js +2 -8
  317. package/dist/index.es447.js +8 -2
  318. package/dist/index.es448.js +2 -4
  319. package/dist/index.es449.js +23 -270
  320. package/dist/index.es45.js +18 -16
  321. package/dist/index.es450.js +5 -79
  322. package/dist/index.es451.js +122 -160
  323. package/dist/index.es452.js +24 -24
  324. package/dist/index.es453.js +4 -5
  325. package/dist/index.es454.js +11 -126
  326. package/dist/index.es455.js +40 -22
  327. package/dist/index.es456.js +57 -4
  328. package/dist/index.es457.js +40 -11
  329. package/dist/index.es458.js +25 -39
  330. package/dist/index.es459.js +30 -56
  331. package/dist/index.es460.js +14 -41
  332. package/dist/index.es461.js +10 -28
  333. package/dist/index.es462.js +10 -31
  334. package/dist/index.es463.js +9 -14
  335. package/dist/index.es464.js +6 -10
  336. package/dist/index.es465.js +5 -10
  337. package/dist/index.es466.js +7 -9
  338. package/dist/index.es467.js +29 -6
  339. package/dist/index.es468.js +18 -5
  340. package/dist/index.es469.js +13 -7
  341. package/dist/index.es47.js +1 -1
  342. package/dist/index.es470.js +42 -28
  343. package/dist/index.es471.js +8 -18
  344. package/dist/index.es472.js +3 -14
  345. package/dist/index.es473.js +4 -43
  346. package/dist/index.es474.js +23 -7
  347. package/dist/index.es475.js +272 -3
  348. package/dist/index.es476.js +79 -4
  349. package/dist/index.es477.js +164 -23
  350. package/dist/index.es478.js +25 -52
  351. package/dist/index.es479.js +92 -5
  352. package/dist/index.es480.js +106 -280
  353. package/dist/index.es481.js +54 -36
  354. package/dist/index.es482.js +6 -24
  355. package/dist/index.es483.js +23 -90
  356. package/dist/index.es484.js +359 -85
  357. package/dist/index.es485.js +31 -52
  358. package/dist/index.es486.js +7 -10
  359. package/dist/index.es487.js +6 -25
  360. package/dist/index.es488.js +4 -381
  361. package/dist/index.es489.js +6 -33
  362. package/dist/index.es49.js +5 -5
  363. package/dist/index.es490.js +51 -7
  364. package/dist/index.es491.js +14 -6
  365. package/dist/index.es492.js +54 -4
  366. package/dist/index.es493.js +5 -6
  367. package/dist/index.es494.js +280 -49
  368. package/dist/index.es495.js +36 -14
  369. package/dist/index.es496.js +1 -1
  370. package/dist/index.es498.js +2 -2
  371. package/dist/index.es499.js +7 -7
  372. package/dist/index.es50.js +2 -2
  373. package/dist/index.es500.js +34 -2
  374. package/dist/index.es501.js +20 -52
  375. package/dist/index.es502.js +43 -63
  376. package/dist/index.es503.js +29 -7
  377. package/dist/index.es504.js +8 -33
  378. package/dist/index.es505.js +56 -20
  379. package/dist/index.es506.js +11 -43
  380. package/dist/index.es507.js +21 -29
  381. package/dist/index.es508.js +59 -8
  382. package/dist/index.es509.js +31 -54
  383. package/dist/index.es51.js +3 -3
  384. package/dist/index.es510.js +170 -11
  385. package/dist/index.es511.js +120 -20
  386. package/dist/index.es512.js +17 -57
  387. package/dist/index.es513.js +228 -30
  388. package/dist/index.es514.js +20 -170
  389. package/dist/index.es515.js +23 -115
  390. package/dist/index.es516.js +117 -18
  391. package/dist/index.es517.js +35 -229
  392. package/dist/index.es518.js +72 -22
  393. package/dist/index.es519.js +7 -29
  394. package/dist/index.es52.js +1 -1
  395. package/dist/index.es520.js +2 -119
  396. package/dist/index.es521.js +48 -33
  397. package/dist/index.es522.js +65 -72
  398. package/dist/index.es526.js +69 -16
  399. package/dist/index.es527.js +8 -28
  400. package/dist/index.es528.js +14 -13
  401. package/dist/index.es529.js +62 -7
  402. package/dist/index.es530.js +65 -2
  403. package/dist/index.es531.js +7 -2
  404. package/dist/index.es532.js +16 -69
  405. package/dist/index.es533.js +28 -8
  406. package/dist/index.es534.js +13 -14
  407. package/dist/index.es535.js +2 -62
  408. package/dist/index.es536.js +2 -65
  409. package/dist/index.es538.js +1 -1
  410. package/dist/index.es539.js +1 -1
  411. package/dist/index.es54.js +1 -1
  412. package/dist/index.es545.js +1 -1
  413. package/dist/index.es547.js +1 -1
  414. package/dist/index.es548.js +1 -1
  415. package/dist/index.es549.js +1 -1
  416. package/dist/index.es550.js +1 -1
  417. package/dist/index.es551.js +1 -1
  418. package/dist/index.es552.js +1 -1
  419. package/dist/index.es553.js +1 -1
  420. package/dist/index.es554.js +1 -1
  421. package/dist/index.es555.js +1 -1
  422. package/dist/index.es556.js +1 -1
  423. package/dist/index.es557.js +1 -1
  424. package/dist/index.es558.js +1 -1
  425. package/dist/index.es56.js +2 -2
  426. package/dist/index.es57.js +1 -1
  427. package/dist/index.es59.js +5 -5
  428. package/dist/index.es60.js +3 -3
  429. package/dist/index.es61.js +1 -1
  430. package/dist/index.es62.js +2 -2
  431. package/dist/index.es63.js +1 -1
  432. package/dist/index.es66.js +3 -3
  433. package/dist/index.es67.js +2 -2
  434. package/dist/index.es693.js +4 -21
  435. package/dist/index.es694.js +18 -79
  436. package/dist/index.es695.js +82 -4
  437. package/dist/index.es699.js +42 -2
  438. package/dist/index.es70.js +1 -1
  439. package/dist/index.es700.js +72 -2
  440. package/dist/index.es701.js +2 -42
  441. package/dist/index.es702.js +2 -72
  442. package/dist/index.es72.js +1 -1
  443. package/dist/index.es737.js +4 -2
  444. package/dist/index.es738.js +23 -2
  445. package/dist/index.es74.js +1 -1
  446. package/dist/index.es740.js +2 -2
  447. package/dist/index.es741.js +2 -2
  448. package/dist/index.es742.js +2 -2
  449. package/dist/index.es743.js +2 -2
  450. package/dist/index.es745.js +2 -2
  451. package/dist/index.es749.js +2 -2
  452. package/dist/index.es751.js +2 -2
  453. package/dist/index.es752.js +2 -4
  454. package/dist/index.es753.js +2 -23
  455. package/dist/index.es76.js +1 -1
  456. package/dist/index.es77.js +1 -1
  457. package/dist/index.es78.js +1 -1
  458. package/dist/index.es80.js +1 -1
  459. package/dist/index.es82.js +1 -1
  460. package/dist/index.es83.js +1 -1
  461. package/dist/index.es85.js +4 -4
  462. package/dist/index.es86.js +2 -2
  463. package/dist/index.es89.js +4 -4
  464. package/dist/index.es99.js +1 -1
  465. package/package.json +1 -1
@@ -1,53 +1,284 @@
1
- import { usePress as $ } from "./index.es488.js";
2
- import { getOwnerDocument as b } from "./index.es457.js";
3
- import { mergeProps as g } from "./index.es298.js";
4
- import { focusWithoutScrolling as P } from "./index.es458.js";
5
- import { useGlobalListeners as L } from "./index.es462.js";
6
- import { useDescription as x } from "./index.es470.js";
7
- import { useRef as y } from "react";
8
- const D = 500;
9
- function R(p) {
10
- let { isDisabled: o, onLongPressStart: s, onLongPressEnd: n, onLongPress: r, threshold: c = D, accessibilityDescription: f } = p;
11
- const t = y(void 0);
12
- let { addGlobalListener: i, removeGlobalListener: d } = L(), { pressProps: u } = $({
13
- isDisabled: o,
14
- onPressStart(e) {
15
- if (e.continuePropagation(), (e.pointerType === "mouse" || e.pointerType === "touch") && (s && s({
16
- ...e,
17
- type: "longpressstart"
18
- }), t.current = setTimeout(() => {
19
- e.target.dispatchEvent(new PointerEvent("pointercancel", {
20
- bubbles: !0
21
- })), b(e.target).activeElement !== e.target && P(e.target), r && r({
22
- ...e,
23
- type: "longpress"
24
- }), t.current = void 0;
25
- }, c), e.pointerType === "touch")) {
26
- let a = (m) => {
27
- m.preventDefault();
28
- };
29
- i(e.target, "contextmenu", a, {
30
- once: !0
31
- }), i(window, "pointerup", () => {
32
- setTimeout(() => {
33
- d(e.target, "contextmenu", a);
34
- }, 30);
35
- }, {
36
- once: !0
37
- });
38
- }
39
- },
40
- onPressEnd(e) {
41
- t.current && clearTimeout(t.current), n && (e.pointerType === "mouse" || e.pointerType === "touch") && n({
42
- ...e,
43
- type: "longpressend"
44
- });
1
+ import { Selection as n } from "./index.es493.js";
2
+ import { compareNodeOrder as r, getFirstItem as d, getChildNodes as u } from "./index.es495.js";
3
+ class h {
4
+ /**
5
+ * The type of selection that is allowed in the collection.
6
+ */
7
+ get selectionMode() {
8
+ return this.state.selectionMode;
9
+ }
10
+ /**
11
+ * Whether the collection allows empty selection.
12
+ */
13
+ get disallowEmptySelection() {
14
+ return this.state.disallowEmptySelection;
15
+ }
16
+ /**
17
+ * The selection behavior for the collection.
18
+ */
19
+ get selectionBehavior() {
20
+ return this.state.selectionBehavior;
21
+ }
22
+ /**
23
+ * Sets the selection behavior for the collection.
24
+ */
25
+ setSelectionBehavior(t) {
26
+ this.state.setSelectionBehavior(t);
27
+ }
28
+ /**
29
+ * Whether the collection is currently focused.
30
+ */
31
+ get isFocused() {
32
+ return this.state.isFocused;
33
+ }
34
+ /**
35
+ * Sets whether the collection is focused.
36
+ */
37
+ setFocused(t) {
38
+ this.state.setFocused(t);
39
+ }
40
+ /**
41
+ * The current focused key in the collection.
42
+ */
43
+ get focusedKey() {
44
+ return this.state.focusedKey;
45
+ }
46
+ /** Whether the first or last child of the focused key should receive focus. */
47
+ get childFocusStrategy() {
48
+ return this.state.childFocusStrategy;
49
+ }
50
+ /**
51
+ * Sets the focused key.
52
+ */
53
+ setFocusedKey(t, e) {
54
+ (t == null || this.collection.getItem(t)) && this.state.setFocusedKey(t, e);
55
+ }
56
+ /**
57
+ * The currently selected keys in the collection.
58
+ */
59
+ get selectedKeys() {
60
+ return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;
61
+ }
62
+ /**
63
+ * The raw selection value for the collection.
64
+ * Either 'all' for select all, or a set of keys.
65
+ */
66
+ get rawSelection() {
67
+ return this.state.selectedKeys;
68
+ }
69
+ /**
70
+ * Returns whether a key is selected.
71
+ */
72
+ isSelected(t) {
73
+ if (this.state.selectionMode === "none") return !1;
74
+ let e = this.getKey(t);
75
+ return e == null ? !1 : this.state.selectedKeys === "all" ? this.canSelectItem(e) : this.state.selectedKeys.has(e);
76
+ }
77
+ /**
78
+ * Whether the selection is empty.
79
+ */
80
+ get isEmpty() {
81
+ return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;
82
+ }
83
+ /**
84
+ * Whether all items in the collection are selected.
85
+ */
86
+ get isSelectAll() {
87
+ if (this.isEmpty) return !1;
88
+ if (this.state.selectedKeys === "all") return !0;
89
+ if (this._isSelectAll != null) return this._isSelectAll;
90
+ let t = this.getSelectAllKeys(), e = this.state.selectedKeys;
91
+ return this._isSelectAll = t.every((l) => e.has(l)), this._isSelectAll;
92
+ }
93
+ get firstSelectedKey() {
94
+ let t = null;
95
+ for (let l of this.state.selectedKeys) {
96
+ let s = this.collection.getItem(l);
97
+ (!t || s && r(this.collection, s, t) < 0) && (t = s);
98
+ }
99
+ var e;
100
+ return (e = t == null ? void 0 : t.key) !== null && e !== void 0 ? e : null;
101
+ }
102
+ get lastSelectedKey() {
103
+ let t = null;
104
+ for (let l of this.state.selectedKeys) {
105
+ let s = this.collection.getItem(l);
106
+ (!t || s && r(this.collection, s, t) > 0) && (t = s);
107
+ }
108
+ var e;
109
+ return (e = t == null ? void 0 : t.key) !== null && e !== void 0 ? e : null;
110
+ }
111
+ get disabledKeys() {
112
+ return this.state.disabledKeys;
113
+ }
114
+ get disabledBehavior() {
115
+ return this.state.disabledBehavior;
116
+ }
117
+ /**
118
+ * Extends the selection to the given key.
119
+ */
120
+ extendSelection(t) {
121
+ if (this.selectionMode === "none") return;
122
+ if (this.selectionMode === "single") {
123
+ this.replaceSelection(t);
124
+ return;
125
+ }
126
+ let e = this.getKey(t);
127
+ if (e == null) return;
128
+ let l;
129
+ if (this.state.selectedKeys === "all") l = new n([
130
+ e
131
+ ], e, e);
132
+ else {
133
+ let i = this.state.selectedKeys;
134
+ var s;
135
+ let a = (s = i.anchorKey) !== null && s !== void 0 ? s : e;
136
+ l = new n(i, a, e);
137
+ var o;
138
+ for (let c of this.getKeyRange(a, (o = i.currentKey) !== null && o !== void 0 ? o : e)) l.delete(c);
139
+ for (let c of this.getKeyRange(e, a)) this.canSelectItem(c) && l.add(c);
45
140
  }
46
- }), l = x(r && !o ? f : void 0);
47
- return {
48
- longPressProps: g(u, l)
49
- };
141
+ this.state.setSelectedKeys(l);
142
+ }
143
+ getKeyRange(t, e) {
144
+ let l = this.collection.getItem(t), s = this.collection.getItem(e);
145
+ return l && s ? r(this.collection, l, s) <= 0 ? this.getKeyRangeInternal(t, e) : this.getKeyRangeInternal(e, t) : [];
146
+ }
147
+ getKeyRangeInternal(t, e) {
148
+ var l;
149
+ if (!((l = this.layoutDelegate) === null || l === void 0) && l.getKeyRange) return this.layoutDelegate.getKeyRange(t, e);
150
+ let s = [], o = t;
151
+ for (; o != null; ) {
152
+ let i = this.collection.getItem(o);
153
+ if (i && (i.type === "item" || i.type === "cell" && this.allowsCellSelection) && s.push(o), o === e) return s;
154
+ o = this.collection.getKeyAfter(o);
155
+ }
156
+ return [];
157
+ }
158
+ getKey(t) {
159
+ let e = this.collection.getItem(t);
160
+ if (!e || e.type === "cell" && this.allowsCellSelection) return t;
161
+ for (; e && e.type !== "item" && e.parentKey != null; ) e = this.collection.getItem(e.parentKey);
162
+ return !e || e.type !== "item" ? null : e.key;
163
+ }
164
+ /**
165
+ * Toggles whether the given key is selected.
166
+ */
167
+ toggleSelection(t) {
168
+ if (this.selectionMode === "none") return;
169
+ if (this.selectionMode === "single" && !this.isSelected(t)) {
170
+ this.replaceSelection(t);
171
+ return;
172
+ }
173
+ let e = this.getKey(t);
174
+ if (e == null) return;
175
+ let l = new n(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
176
+ l.has(e) ? l.delete(e) : this.canSelectItem(e) && (l.add(e), l.anchorKey = e, l.currentKey = e), !(this.disallowEmptySelection && l.size === 0) && this.state.setSelectedKeys(l);
177
+ }
178
+ /**
179
+ * Replaces the selection with only the given key.
180
+ */
181
+ replaceSelection(t) {
182
+ if (this.selectionMode === "none") return;
183
+ let e = this.getKey(t);
184
+ if (e == null) return;
185
+ let l = this.canSelectItem(e) ? new n([
186
+ e
187
+ ], e, e) : new n();
188
+ this.state.setSelectedKeys(l);
189
+ }
190
+ /**
191
+ * Replaces the selection with the given keys.
192
+ */
193
+ setSelectedKeys(t) {
194
+ if (this.selectionMode === "none") return;
195
+ let e = new n();
196
+ for (let l of t) {
197
+ let s = this.getKey(l);
198
+ if (s != null && (e.add(s), this.selectionMode === "single"))
199
+ break;
200
+ }
201
+ this.state.setSelectedKeys(e);
202
+ }
203
+ getSelectAllKeys() {
204
+ let t = [], e = (l) => {
205
+ for (; l != null; ) {
206
+ if (this.canSelectItem(l)) {
207
+ var s;
208
+ let i = this.collection.getItem(l);
209
+ (i == null ? void 0 : i.type) === "item" && t.push(l);
210
+ var o;
211
+ i != null && i.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && e((o = (s = d(u(i, this.collection))) === null || s === void 0 ? void 0 : s.key) !== null && o !== void 0 ? o : null);
212
+ }
213
+ l = this.collection.getKeyAfter(l);
214
+ }
215
+ };
216
+ return e(this.collection.getFirstKey()), t;
217
+ }
218
+ /**
219
+ * Selects all items in the collection.
220
+ */
221
+ selectAll() {
222
+ !this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
223
+ }
224
+ /**
225
+ * Removes all keys from the selection.
226
+ */
227
+ clearSelection() {
228
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new n());
229
+ }
230
+ /**
231
+ * Toggles between select all and an empty selection.
232
+ */
233
+ toggleSelectAll() {
234
+ this.isSelectAll ? this.clearSelection() : this.selectAll();
235
+ }
236
+ select(t, e) {
237
+ this.selectionMode !== "none" && (this.selectionMode === "single" ? this.isSelected(t) && !this.disallowEmptySelection ? this.toggleSelection(t) : this.replaceSelection(t) : this.selectionBehavior === "toggle" || e && (e.pointerType === "touch" || e.pointerType === "virtual") ? this.toggleSelection(t) : this.replaceSelection(t));
238
+ }
239
+ /**
240
+ * Returns whether the current selection is equal to the given selection.
241
+ */
242
+ isSelectionEqual(t) {
243
+ if (t === this.state.selectedKeys) return !0;
244
+ let e = this.selectedKeys;
245
+ if (t.size !== e.size) return !1;
246
+ for (let l of t)
247
+ if (!e.has(l)) return !1;
248
+ for (let l of e)
249
+ if (!t.has(l)) return !1;
250
+ return !0;
251
+ }
252
+ canSelectItem(t) {
253
+ var e;
254
+ if (this.state.selectionMode === "none" || this.state.disabledKeys.has(t)) return !1;
255
+ let l = this.collection.getItem(t);
256
+ return !(!l || !(l == null || (e = l.props) === null || e === void 0) && e.isDisabled || l.type === "cell" && !this.allowsCellSelection);
257
+ }
258
+ isDisabled(t) {
259
+ var e, l;
260
+ return this.state.disabledBehavior === "all" && (this.state.disabledKeys.has(t) || !!(!((l = this.collection.getItem(t)) === null || l === void 0 || (e = l.props) === null || e === void 0) && e.isDisabled));
261
+ }
262
+ isLink(t) {
263
+ var e, l;
264
+ return !!(!((l = this.collection.getItem(t)) === null || l === void 0 || (e = l.props) === null || e === void 0) && e.href);
265
+ }
266
+ getItemProps(t) {
267
+ var e;
268
+ return (e = this.collection.getItem(t)) === null || e === void 0 ? void 0 : e.props;
269
+ }
270
+ withCollection(t) {
271
+ return new h(t, this.state, {
272
+ allowsCellSelection: this.allowsCellSelection,
273
+ layoutDelegate: this.layoutDelegate || void 0
274
+ });
275
+ }
276
+ constructor(t, e, l) {
277
+ this.collection = t, this.state = e;
278
+ var s;
279
+ this.allowsCellSelection = (s = l == null ? void 0 : l.allowsCellSelection) !== null && s !== void 0 ? s : !1, this._isSelectAll = null, this.layoutDelegate = (l == null ? void 0 : l.layoutDelegate) || null;
280
+ }
50
281
  }
51
282
  export {
52
- R as useLongPress
283
+ h as SelectionManager
53
284
  };
@@ -1,17 +1,39 @@
1
- import { getInteractionModality as a } from "./index.es484.js";
2
- import { getActiveElement as o } from "./index.es455.js";
3
- import { getOwnerDocument as i } from "./index.es457.js";
4
- import { focusWithoutScrolling as f } from "./index.es458.js";
5
- import { runAfterTransition as $ } from "./index.es461.js";
6
- function p(e) {
7
- const t = i(e), c = o(t);
8
- if (a() === "virtual") {
9
- let r = c;
10
- $(() => {
11
- o(t) === r && e.isConnected && f(e);
12
- });
13
- } else f(e);
1
+ function u(n, e) {
2
+ return typeof e.getChildren == "function" ? e.getChildren(n.key) : n.childNodes;
3
+ }
4
+ function s(n) {
5
+ return a(n);
6
+ }
7
+ function a(n, e) {
8
+ for (let t of n)
9
+ return t;
10
+ }
11
+ function l(n) {
12
+ let e;
13
+ for (let t of n) e = t;
14
+ return e;
15
+ }
16
+ function $(n, e, t) {
17
+ if (e.parentKey === t.parentKey) return e.index - t.index;
18
+ let r = [
19
+ ...d(n, e),
20
+ e
21
+ ], i = [
22
+ ...d(n, t),
23
+ t
24
+ ], c = r.slice(0, i.length).findIndex((f, o) => f !== i[o]);
25
+ return c !== -1 ? (e = r[c], t = i[c], e.index - t.index) : r.findIndex((f) => f === t) >= 0 ? 1 : (i.findIndex((f) => f === e) >= 0, -1);
26
+ }
27
+ function d(n, e) {
28
+ let t = [], r = e;
29
+ for (; (r == null ? void 0 : r.parentKey) != null; )
30
+ r = n.getItem(r.parentKey), r && t.unshift(r);
31
+ return t;
14
32
  }
15
33
  export {
16
- p as focusSafely
34
+ $ as compareNodeOrder,
35
+ u as getChildNodes,
36
+ s as getFirstItem,
37
+ l as getLastItem,
38
+ a as getNthItem
17
39
  };
@@ -1,4 +1,4 @@
1
- import { getOwnerWindow as c } from "./index.es457.js";
1
+ import { getOwnerWindow as c } from "./index.es454.js";
2
2
  function d(i) {
3
3
  const t = c(i);
4
4
  if (!(i instanceof t.HTMLElement) && !(i instanceof t.SVGElement)) return !1;
@@ -1,5 +1,5 @@
1
- import { getActiveElement as c } from "./index.es455.js";
2
- import { getOwnerDocument as n } from "./index.es457.js";
1
+ import { getActiveElement as c } from "./index.es452.js";
2
+ import { getOwnerDocument as n } from "./index.es454.js";
3
3
  function s(t) {
4
4
  let e = u(n(t));
5
5
  e !== t && (e && r(e, t), t && i(t, e));
@@ -1,10 +1,10 @@
1
- import { __module as r } from "./index.es500.js";
2
- import { __require as o } from "./index.es501.js";
3
- import { __require as i } from "./index.es502.js";
4
- var e;
5
- function u() {
6
- return e ? r.exports : (e = 1, process.env.NODE_ENV === "production" ? r.exports = o() : r.exports = i(), r.exports);
1
+ import { useDefaultLocale as t } from "./index.es500.js";
2
+ import f, { useContext as a } from "react";
3
+ const o = /* @__PURE__ */ f.createContext(null);
4
+ function l() {
5
+ let e = t();
6
+ return a(o) || e;
7
7
  }
8
8
  export {
9
- u as __require
9
+ l as useLocale
10
10
  };
@@ -1,5 +1,5 @@
1
- import { zodResolver as e } from "./index.es193.js";
2
- import { useForm as s } from "./index.es125.js";
1
+ import { zodResolver as e } from "./index.es185.js";
2
+ import { useForm as s } from "./index.es130.js";
3
3
  function u(r, o) {
4
4
  return s({
5
5
  ...o,
@@ -1,4 +1,36 @@
1
- var e = { exports: {} };
1
+ import { isRTL as l } from "./index.es699.js";
2
+ import { useState as f, useEffect as d } from "react";
3
+ import { useIsSSR as i } from "./index.es392.js";
4
+ const u = Symbol.for("react-aria.i18n.locale");
5
+ function n() {
6
+ let e = typeof window < "u" && window[u] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
7
+ try {
8
+ Intl.DateTimeFormat.supportedLocalesOf([
9
+ e
10
+ ]);
11
+ } catch {
12
+ e = "en-US";
13
+ }
14
+ return {
15
+ locale: e,
16
+ direction: l(e) ? "rtl" : "ltr"
17
+ };
18
+ }
19
+ let t = n(), a = /* @__PURE__ */ new Set();
20
+ function r() {
21
+ t = n();
22
+ for (let e of a) e(t);
23
+ }
24
+ function p() {
25
+ let e = i(), [c, o] = f(t);
26
+ return d(() => (a.size === 0 && window.addEventListener("languagechange", r), a.add(o), () => {
27
+ a.delete(o), a.size === 0 && window.removeEventListener("languagechange", r);
28
+ }), []), e ? {
29
+ locale: "en-US",
30
+ direction: "ltr"
31
+ } : c;
32
+ }
2
33
  export {
3
- e as __module
34
+ n as getDefaultLocale,
35
+ p as useDefaultLocale
4
36
  };
@@ -1,55 +1,23 @@
1
- import { __exports as i } from "./index.es699.js";
2
- import h from "react";
3
- /**
4
- * @license React
5
- * use-sync-external-store-shim.production.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var f;
13
- function x() {
14
- if (f) return i;
15
- f = 1;
16
- var u = h;
17
- function s(e, t) {
18
- return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
19
- }
20
- var S = typeof Object.is == "function" ? Object.is : s, d = u.useState, l = u.useEffect, p = u.useLayoutEffect, E = u.useDebugValue;
21
- function v(e, t) {
22
- var r = t(), a = d({ inst: { value: r, getSnapshot: t } }), n = a[0].inst, c = a[1];
23
- return p(
24
- function() {
25
- n.value = r, n.getSnapshot = t, o(n) && c({ inst: n });
26
- },
27
- [e, r, t]
28
- ), l(
29
- function() {
30
- return o(n) && c({ inst: n }), e(function() {
31
- o(n) && c({ inst: n });
32
- });
33
- },
34
- [e]
35
- ), E(r), r;
36
- }
37
- function o(e) {
38
- var t = e.getSnapshot;
39
- e = e.value;
40
- try {
41
- var r = t();
42
- return !S(e, r);
43
- } catch {
44
- return !0;
45
- }
46
- }
47
- function y(e, t) {
48
- return t();
49
- }
50
- var m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? y : v;
51
- return i.useSyncExternalStore = u.useSyncExternalStore !== void 0 ? u.useSyncExternalStore : m, i;
1
+ import { useLocale as f } from "./index.es499.js";
2
+ import { LocalizedStringDictionary as c } from "./index.es502.js";
3
+ import { LocalizedStringFormatter as i } from "./index.es503.js";
4
+ import { useMemo as n } from "react";
5
+ const r = /* @__PURE__ */ new WeakMap();
6
+ function $(e) {
7
+ let a = r.get(e);
8
+ return a || (a = new c(e), r.set(e, a)), a;
9
+ }
10
+ function b(e, a) {
11
+ return a && c.getGlobalDictionaryForPackage(a) || $(e);
12
+ }
13
+ function u(e, a) {
14
+ let { locale: o } = f(), t = b(e, a);
15
+ return n(() => new i(o, t), [
16
+ o,
17
+ t
18
+ ]);
52
19
  }
53
20
  export {
54
- x as __require
21
+ b as useLocalizedStringDictionary,
22
+ u as useLocalizedStringFormatter
55
23
  };
@@ -1,67 +1,47 @@
1
- import { __exports as s } from "./index.es700.js";
2
- import h from "react";
3
- /**
4
- * @license React
5
- * use-sync-external-store-shim.development.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var l;
13
- function A() {
14
- return l ? s : (l = 1, process.env.NODE_ENV !== "production" && function() {
15
- function d(e, t) {
16
- return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
1
+ const s = Symbol.for("react-aria.i18n.locale"), d = Symbol.for("react-aria.i18n.strings");
2
+ let o;
3
+ class l {
4
+ /** Returns a localized string for the given key and locale. */
5
+ getStringForLocale(t, r) {
6
+ let i = this.getStringsForLocale(r)[t];
7
+ if (!i) throw new Error(`Could not find intl message ${t} in ${r} locale`);
8
+ return i;
9
+ }
10
+ /** Returns all localized strings for the given locale. */
11
+ getStringsForLocale(t) {
12
+ let r = this.strings[t];
13
+ return r || (r = c(t, this.strings, this.defaultLocale), this.strings[t] = r), r;
14
+ }
15
+ static getGlobalDictionaryForPackage(t) {
16
+ if (typeof window > "u") return null;
17
+ let r = window[s];
18
+ if (o === void 0) {
19
+ let i = window[d];
20
+ if (!i) return null;
21
+ o = {};
22
+ for (let a in i) o[a] = new l({
23
+ [r]: i[a]
24
+ }, r);
17
25
  }
18
- function S(e, t) {
19
- f || o.startTransition === void 0 || (f = !0, console.error(
20
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
21
- ));
22
- var r = t();
23
- if (!c) {
24
- var u = t();
25
- _(r, u) || (console.error(
26
- "The result of getSnapshot should be cached to avoid an infinite loop"
27
- ), c = !0);
28
- }
29
- u = p({
30
- inst: { value: r, getSnapshot: t }
31
- });
32
- var n = u[0].inst, i = u[1];
33
- return L(
34
- function() {
35
- n.value = r, n.getSnapshot = t, a(n) && i({ inst: n });
36
- },
37
- [e, r, t]
38
- ), E(
39
- function() {
40
- return a(n) && i({ inst: n }), e(function() {
41
- a(n) && i({ inst: n });
42
- });
43
- },
44
- [e]
45
- ), y(r), r;
46
- }
47
- function a(e) {
48
- var t = e.getSnapshot;
49
- e = e.value;
50
- try {
51
- var r = t();
52
- return !_(e, r);
53
- } catch {
54
- return !0;
55
- }
56
- }
57
- function O(e, t) {
58
- return t();
59
- }
60
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
61
- var o = h, _ = typeof Object.is == "function" ? Object.is : d, p = o.useState, E = o.useEffect, L = o.useLayoutEffect, y = o.useDebugValue, f = !1, c = !1, v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? O : S;
62
- s.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : v, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
63
- }(), s);
26
+ let e = o == null ? void 0 : o[t];
27
+ if (!e) throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
28
+ return e;
29
+ }
30
+ constructor(t, r = "en-US") {
31
+ this.strings = Object.fromEntries(Object.entries(t).filter(([, e]) => e)), this.defaultLocale = r;
32
+ }
33
+ }
34
+ function c(n, t, r = "en-US") {
35
+ if (t[n]) return t[n];
36
+ let e = g(n);
37
+ if (t[e]) return t[e];
38
+ for (let i in t)
39
+ if (i.startsWith(e + "-")) return t[i];
40
+ return t[r];
41
+ }
42
+ function g(n) {
43
+ return Intl.Locale ? new Intl.Locale(n).language : n.split("-")[0];
64
44
  }
65
45
  export {
66
- A as __require
46
+ l as LocalizedStringDictionary
67
47
  };