@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
@@ -1 +1 @@
1
- {"version":3,"file":"index86.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js"],"sourcesContent":["function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport { DIGIT_PLACEHOLDER, countOccurences, repeat, cutAndStripNonPairedParens, closeNonPairedParens, stripNonPairedParens, populateTemplateWithDigits } from './AsYouTypeFormatter.util.js';\nimport formatCompleteNumber, { canFormatCompleteNumber } from './AsYouTypeFormatter.complete.js';\nimport PatternMatcher from './AsYouTypeFormatter.PatternMatcher.js';\nimport parseDigits from './helpers/parseDigits.js';\nexport { DIGIT_PLACEHOLDER } from './AsYouTypeFormatter.util.js';\nimport { FIRST_GROUP_PATTERN } from './helpers/formatNationalNumberUsingFormat.js';\nimport { VALID_PUNCTUATION } from './constants.js';\nimport applyInternationalSeparatorStyle from './helpers/applyInternationalSeparatorStyle.js';\n\n// Used in phone number format template creation.\n// Could be any digit, I guess.\nvar DUMMY_DIGIT = '9';\n// I don't know why is it exactly `15`\nvar LONGEST_NATIONAL_PHONE_NUMBER_LENGTH = 15;\n// Create a phone number consisting only of the digit 9 that matches the\n// `number_pattern` by applying the pattern to the \"longest phone number\" string.\nvar LONGEST_DUMMY_PHONE_NUMBER = repeat(DUMMY_DIGIT, LONGEST_NATIONAL_PHONE_NUMBER_LENGTH);\n\n// A set of characters that, if found in a national prefix formatting rules, are an indicator to\n// us that we should separate the national prefix from the number when formatting.\nvar NATIONAL_PREFIX_SEPARATORS_PATTERN = /[- ]/;\n\n// Deprecated: Google has removed some formatting pattern related code from their repo.\n// https://github.com/googlei18n/libphonenumber/commit/a395b4fef3caf57c4bc5f082e1152a4d2bd0ba4c\n// \"We no longer have numbers in formatting matching patterns, only \\d.\"\n// Because this library supports generating custom metadata\n// some users may still be using old metadata so the relevant\n// code seems to stay until some next major version update.\nvar SUPPORT_LEGACY_FORMATTING_PATTERNS = true;\n\n// A pattern that is used to match character classes in regular expressions.\n// An example of a character class is \"[1-4]\".\nvar CREATE_CHARACTER_CLASS_PATTERN = SUPPORT_LEGACY_FORMATTING_PATTERNS && function () {\n return /\\[([^\\[\\]])*\\]/g;\n};\n\n// Any digit in a regular expression that actually denotes a digit. For\n// example, in the regular expression \"80[0-2]\\d{6,10}\", the first 2 digits\n// (8 and 0) are standalone digits, but the rest are not.\n// Two look-aheads are needed because the number following \\\\d could be a\n// two-digit number, since the phone number can be as long as 15 digits.\nvar CREATE_STANDALONE_DIGIT_PATTERN = SUPPORT_LEGACY_FORMATTING_PATTERNS && function () {\n return /\\d(?=[^,}][^,}])/g;\n};\n\n// A regular expression that is used to determine if a `format` is\n// suitable to be used in the \"as you type formatter\".\n// A `format` is suitable when the resulting formatted number has\n// the same digits as the user has entered.\n//\n// In the simplest case, that would mean that the format\n// doesn't add any additional digits when formatting a number.\n// Google says that it also shouldn't add \"star\" (`*`) characters,\n// like it does in some Israeli formats.\n// Such basic format would only contain \"valid punctuation\"\n// and \"captured group\" identifiers ($1, $2, etc).\n//\n// An example of a format that adds additional digits:\n//\n// Country: `AR` (Argentina).\n// Format:\n// {\n// \"pattern\": \"(\\\\d)(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\n// \"leading_digits_patterns\": [\"91\"],\n// \"national_prefix_formatting_rule\": \"0$1\",\n// \"format\": \"$2 15-$3-$4\",\n// \"international_format\": \"$1 $2 $3-$4\"\n// }\n//\n// In the format above, the `format` adds `15` to the digits when formatting a number.\n// A sidenote: this format actually is suitable because `national_prefix_for_parsing`\n// has previously removed `15` from a national number, so re-adding `15` in `format`\n// doesn't actually result in any extra digits added to user's input.\n// But verifying that would be a complex procedure, so the code chooses a simpler path:\n// it simply filters out all `format`s that contain anything but \"captured group\" ids.\n//\n// This regular expression is called `ELIGIBLE_FORMAT_PATTERN` in Google's\n// `libphonenumber` code.\n//\nvar NON_ALTERING_FORMAT_REG_EXP = new RegExp('[' + VALID_PUNCTUATION + ']*' +\n// Google developers say:\n// \"We require that the first matching group is present in the\n// output pattern to ensure no data is lost while formatting.\"\n'\\\\$1' + '[' + VALID_PUNCTUATION + ']*' + '(\\\\$\\\\d[' + VALID_PUNCTUATION + ']*)*' + '$');\n\n// This is the minimum length of the leading digits of a phone number\n// to guarantee the first \"leading digits pattern\" for a phone number format\n// to be preemptive.\nvar MIN_LEADING_DIGITS_LENGTH = 3;\nvar AsYouTypeFormatter = /*#__PURE__*/function () {\n function AsYouTypeFormatter(_ref) {\n var state = _ref.state,\n metadata = _ref.metadata;\n _classCallCheck(this, AsYouTypeFormatter);\n this.metadata = metadata;\n this.resetFormat();\n }\n return _createClass(AsYouTypeFormatter, [{\n key: \"resetFormat\",\n value: function resetFormat() {\n this.chosenFormat = undefined;\n this.template = undefined;\n this.nationalNumberTemplate = undefined;\n this.populatedNationalNumberTemplate = undefined;\n this.populatedNationalNumberTemplatePosition = -1;\n }\n }, {\n key: \"reset\",\n value: function reset(numberingPlan, state) {\n this.resetFormat();\n if (numberingPlan) {\n this.isNANP = numberingPlan.callingCode() === '1';\n this.matchingFormats = numberingPlan.formats();\n if (state.nationalSignificantNumber) {\n this.narrowDownMatchingFormats(state);\n }\n } else {\n this.isNANP = undefined;\n this.matchingFormats = [];\n }\n }\n\n /**\r\n * Formats an updated phone number.\r\n * @param {string} nextDigits — Additional phone number digits.\r\n * @param {object} state — `AsYouType` state.\r\n * @return {[string]} Returns undefined if the updated phone number can't be formatted using any of the available formats.\r\n */\n }, {\n key: \"format\",\n value: function format(nextDigits, state) {\n var _this = this;\n // See if the phone number digits can be formatted as a complete phone number.\n // If not, use the results from `formatNationalNumberWithNextDigits()`,\n // which formats based on the chosen formatting pattern.\n //\n // Attempting to format complete phone number first is how it's done\n // in Google's `libphonenumber`, so this library just follows it.\n // Google's `libphonenumber` code doesn't explain in detail why does it\n // attempt to format digits as a complete phone number\n // instead of just going with a previoulsy (or newly) chosen `format`:\n //\n // \"Checks to see if there is an exact pattern match for these digits.\n // If so, we should use this instead of any other formatting template\n // whose leadingDigitsPattern also matches the input.\"\n //\n if (canFormatCompleteNumber(state.nationalSignificantNumber, state.country, this.metadata)) {\n for (var _iterator = _createForOfIteratorHelperLoose(this.matchingFormats), _step; !(_step = _iterator()).done;) {\n var _format = _step.value;\n var formattedCompleteNumber = formatCompleteNumber(state, _format, {\n metadata: this.metadata,\n shouldTryNationalPrefixFormattingRule: function shouldTryNationalPrefixFormattingRule(format) {\n return _this.shouldTryNationalPrefixFormattingRule(format, {\n international: state.international,\n nationalPrefix: state.nationalPrefix\n });\n },\n getSeparatorAfterNationalPrefix: function getSeparatorAfterNationalPrefix(format) {\n return _this.getSeparatorAfterNationalPrefix(format);\n }\n });\n if (formattedCompleteNumber) {\n this.resetFormat();\n this.chosenFormat = _format;\n this.setNationalNumberTemplate(formattedCompleteNumber.replace(/\\d/g, DIGIT_PLACEHOLDER), state);\n this.populatedNationalNumberTemplate = formattedCompleteNumber;\n // With a new formatting template, the matched position\n // using the old template needs to be reset.\n this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(DIGIT_PLACEHOLDER);\n return formattedCompleteNumber;\n }\n }\n }\n // Format the digits as a partial (incomplete) phone number\n // using the previously chosen formatting pattern (or a newly chosen one).\n return this.formatNationalNumberWithNextDigits(nextDigits, state);\n }\n\n // Formats the next phone number digits.\n }, {\n key: \"formatNationalNumberWithNextDigits\",\n value: function formatNationalNumberWithNextDigits(nextDigits, state) {\n var previouslyChosenFormat = this.chosenFormat;\n\n // Choose a format from the list of matching ones.\n var newlyChosenFormat = this.chooseFormat(state);\n if (newlyChosenFormat) {\n if (newlyChosenFormat === previouslyChosenFormat) {\n // If it can format the next (current) digits\n // using the previously chosen phone number format\n // then return the updated formatted number.\n return this.formatNextNationalNumberDigits(nextDigits);\n } else {\n // If a more appropriate phone number format\n // has been chosen for these \"leading digits\",\n // then re-format the national phone number part\n // using the newly selected format.\n return this.formatNextNationalNumberDigits(state.getNationalDigits());\n }\n }\n }\n }, {\n key: \"narrowDownMatchingFormats\",\n value: function narrowDownMatchingFormats(_ref2) {\n var _this2 = this;\n var nationalSignificantNumber = _ref2.nationalSignificantNumber,\n nationalPrefix = _ref2.nationalPrefix,\n international = _ref2.international;\n var leadingDigits = nationalSignificantNumber;\n\n // \"leading digits\" pattern list starts with a\n // \"leading digits\" pattern fitting a maximum of 3 leading digits.\n // So, after a user inputs 3 digits of a national (significant) phone number\n // this national (significant) number can already be formatted.\n // The next \"leading digits\" pattern is for 4 leading digits max,\n // and the \"leading digits\" pattern after it is for 5 leading digits max, etc.\n\n // This implementation is different from Google's\n // in that it searches for a fitting format\n // even if the user has entered less than\n // `MIN_LEADING_DIGITS_LENGTH` digits of a national number.\n // Because some leading digit patterns already match for a single first digit.\n var leadingDigitsPatternIndex = leadingDigits.length - MIN_LEADING_DIGITS_LENGTH;\n if (leadingDigitsPatternIndex < 0) {\n leadingDigitsPatternIndex = 0;\n }\n this.matchingFormats = this.matchingFormats.filter(function (format) {\n return _this2.formatSuits(format, international, nationalPrefix) && _this2.formatMatches(format, leadingDigits, leadingDigitsPatternIndex);\n });\n\n // If there was a phone number format chosen\n // and it no longer holds given the new leading digits then reset it.\n // The test for this `if` condition is marked as:\n // \"Reset a chosen format when it no longer holds given the new leading digits\".\n // To construct a valid test case for this one can find a country\n // in `PhoneNumberMetadata.xml` yielding one format for 3 `<leadingDigits>`\n // and yielding another format for 4 `<leadingDigits>` (Australia in this case).\n if (this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1) {\n this.resetFormat();\n }\n }\n }, {\n key: \"formatSuits\",\n value: function formatSuits(format, international, nationalPrefix) {\n // When a prefix before a national (significant) number is\n // simply a national prefix, then it's parsed as `this.nationalPrefix`.\n // In more complex cases, a prefix before national (significant) number\n // could include a national prefix as well as some \"capturing groups\",\n // and in that case there's no info whether a national prefix has been parsed.\n // If national prefix is not used when formatting a phone number\n // using this format, but a national prefix has been entered by the user,\n // and was extracted, then discard such phone number format.\n // In Google's \"AsYouType\" formatter code, the equivalent would be this part:\n // https://github.com/google/libphonenumber/blob/0a45cfd96e71cad8edb0e162a70fcc8bd9728933/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L175-L184\n if (nationalPrefix && !format.usesNationalPrefix() &&\n // !format.domesticCarrierCodeFormattingRule() &&\n !format.nationalPrefixIsOptionalWhenFormattingInNationalFormat()) {\n return false;\n }\n // If national prefix is mandatory for this phone number format\n // and there're no guarantees that a national prefix is present in user input\n // then discard this phone number format as not suitable.\n // In Google's \"AsYouType\" formatter code, the equivalent would be this part:\n // https://github.com/google/libphonenumber/blob/0a45cfd96e71cad8edb0e162a70fcc8bd9728933/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L185-L193\n if (!international && !nationalPrefix && format.nationalPrefixIsMandatoryWhenFormattingInNationalFormat()) {\n return false;\n }\n return true;\n }\n }, {\n key: \"formatMatches\",\n value: function formatMatches(format, leadingDigits, leadingDigitsPatternIndex) {\n var leadingDigitsPatternsCount = format.leadingDigitsPatterns().length;\n\n // If this format is not restricted to a certain\n // leading digits pattern then it fits.\n // The test case could be found by searching for \"leadingDigitsPatternsCount === 0\".\n if (leadingDigitsPatternsCount === 0) {\n return true;\n }\n\n // Start narrowing down the list of possible formats based on the leading digits.\n // (only previously matched formats take part in the narrowing down process)\n\n // `leading_digits_patterns` start with 3 digits min\n // and then go up from there one digit at a time.\n leadingDigitsPatternIndex = Math.min(leadingDigitsPatternIndex, leadingDigitsPatternsCount - 1);\n var leadingDigitsPattern = format.leadingDigitsPatterns()[leadingDigitsPatternIndex];\n\n // Google imposes a requirement on the leading digits\n // to be minimum 3 digits long in order to be eligible\n // for checking those with a leading digits pattern.\n //\n // Since `leading_digits_patterns` start with 3 digits min,\n // Google's original `libphonenumber` library only starts\n // excluding any non-matching formats only when the\n // national number entered so far is at least 3 digits long,\n // otherwise format matching would give false negatives.\n //\n // For example, when the digits entered so far are `2`\n // and the leading digits pattern is `21` –\n // it's quite obvious in this case that the format could be the one\n // but due to the absence of further digits it would give false negative.\n //\n // Also, `leading_digits_patterns` doesn't always correspond to a single\n // digits count. For example, `60|8` pattern would already match `8`\n // but the `60` part would require having at least two leading digits,\n // so the whole pattern would require inputting two digits first in order to\n // decide on whether it matches the input, even when the input is \"80\".\n //\n // This library — `libphonenumber-js` — allows filtering by `leading_digits_patterns`\n // even when there's only 1 or 2 digits of the national (significant) number.\n // To do that, it uses a non-strict pattern matcher written specifically for that.\n //\n if (leadingDigits.length < MIN_LEADING_DIGITS_LENGTH) {\n // Before leading digits < 3 matching was implemented:\n // return true\n //\n // After leading digits < 3 matching was implemented:\n try {\n return new PatternMatcher(leadingDigitsPattern).match(leadingDigits, {\n allowOverflow: true\n }) !== undefined;\n } catch (error) /* istanbul ignore next */{\n // There's a slight possibility that there could be some undiscovered bug\n // in the pattern matcher code. Since the \"leading digits < 3 matching\"\n // feature is not \"essential\" for operation, it can fall back to the old way\n // in case of any issues rather than halting the application's execution.\n console.error(error);\n return true;\n }\n }\n\n // If at least `MIN_LEADING_DIGITS_LENGTH` digits of a national number are\n // available then use the usual regular expression matching.\n //\n // The whole pattern is wrapped in round brackets (`()`) because\n // the pattern can use \"or\" operator (`|`) at the top level of the pattern.\n //\n return new RegExp(\"^(\".concat(leadingDigitsPattern, \")\")).test(leadingDigits);\n }\n }, {\n key: \"getFormatFormat\",\n value: function getFormatFormat(format, international) {\n return international ? format.internationalFormat() : format.format();\n }\n }, {\n key: \"chooseFormat\",\n value: function chooseFormat(state) {\n var _this3 = this;\n var _loop = function _loop() {\n var format = _step2.value;\n // If this format is currently being used\n // and is still suitable, then stick to it.\n if (_this3.chosenFormat === format) {\n return 0; // break\n }\n // Sometimes, a formatting rule inserts additional digits in a phone number,\n // and \"as you type\" formatter can't do that: it should only use the digits\n // that the user has input.\n //\n // For example, in Argentina, there's a format for mobile phone numbers:\n //\n // {\n // \"pattern\": \"(\\\\d)(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\n // \"leading_digits_patterns\": [\"91\"],\n // \"national_prefix_formatting_rule\": \"0$1\",\n // \"format\": \"$2 15-$3-$4\",\n // \"international_format\": \"$1 $2 $3-$4\"\n // }\n //\n // In that format, `international_format` is used instead of `format`\n // because `format` inserts `15` in the formatted number,\n // and `AsYouType` formatter should only use the digits\n // the user has actually input, without adding any extra digits.\n // In this case, it wouldn't make a difference, because the `15`\n // is first stripped when applying `national_prefix_for_parsing`\n // and then re-added when using `format`, so in reality it doesn't\n // add any new digits to the number, but to detect that, the code\n // would have to be more complex: it would have to try formatting\n // the digits using the format and then see if any digits have\n // actually been added or removed, and then, every time a new digit\n // is input, it should re-check whether the chosen format doesn't\n // alter the digits.\n //\n // Google's code doesn't go that far, and so does this library:\n // it simply requires that a `format` doesn't add any additonal\n // digits to user's input.\n //\n // Also, people in general should move from inputting phone numbers\n // in national format (possibly with national prefixes)\n // and use international phone number format instead:\n // it's a logical thing in the modern age of mobile phones,\n // globalization and the internet.\n //\n /* istanbul ignore if */\n if (!NON_ALTERING_FORMAT_REG_EXP.test(_this3.getFormatFormat(format, state.international))) {\n return 1; // continue\n }\n if (!_this3.createTemplateForFormat(format, state)) {\n // Remove the format if it can't generate a template.\n _this3.matchingFormats = _this3.matchingFormats.filter(function (_) {\n return _ !== format;\n });\n return 1; // continue\n }\n _this3.chosenFormat = format;\n return 0; // break\n },\n _ret;\n // When there are multiple available formats, the formatter uses the first\n // format where a formatting template could be created.\n //\n // For some weird reason, `istanbul` says \"else path not taken\"\n // for the `for of` line below. Supposedly that means that\n // the loop doesn't ever go over the last element in the list.\n // That's true because there always is `this.chosenFormat`\n // when `this.matchingFormats` is non-empty.\n // And, for some weird reason, it doesn't think that the case\n // with empty `this.matchingFormats` qualifies for a valid \"else\" path.\n // So simply muting this `istanbul` warning.\n // It doesn't skip the contents of the `for of` loop,\n // it just skips the `for of` line.\n //\n /* istanbul ignore next */\n for (var _iterator2 = _createForOfIteratorHelperLoose(this.matchingFormats.slice()), _step2; !(_step2 = _iterator2()).done;) {\n _ret = _loop();\n if (_ret === 0) break;\n if (_ret === 1) continue;\n }\n if (!this.chosenFormat) {\n // No format matches the national (significant) phone number.\n this.resetFormat();\n }\n return this.chosenFormat;\n }\n }, {\n key: \"createTemplateForFormat\",\n value: function createTemplateForFormat(format, state) {\n // The formatter doesn't format numbers when numberPattern contains '|', e.g.\n // (20|3)\\d{4}. In those cases we quickly return.\n // (Though there's no such format in current metadata)\n /* istanbul ignore if */\n if (SUPPORT_LEGACY_FORMATTING_PATTERNS && format.pattern().indexOf('|') >= 0) {\n return;\n }\n // Get formatting template for this phone number format\n var template = this.getTemplateForFormat(format, state);\n // If the national number entered is too long\n // for any phone number format, then abort.\n if (template) {\n this.setNationalNumberTemplate(template, state);\n return true;\n }\n }\n }, {\n key: \"getSeparatorAfterNationalPrefix\",\n value: function getSeparatorAfterNationalPrefix(format) {\n // `US` metadata doesn't have a `national_prefix_formatting_rule`,\n // so the `if` condition below doesn't apply to `US`,\n // but in reality there shoudl be a separator\n // between a national prefix and a national (significant) number.\n // So `US` national prefix separator is a \"special\" \"hardcoded\" case.\n if (this.isNANP) {\n return ' ';\n }\n // If a `format` has a `national_prefix_formatting_rule`\n // and that rule has a separator after a national prefix,\n // then it means that there should be a separator\n // between a national prefix and a national (significant) number.\n if (format && format.nationalPrefixFormattingRule() && NATIONAL_PREFIX_SEPARATORS_PATTERN.test(format.nationalPrefixFormattingRule())) {\n return ' ';\n }\n // At this point, there seems to be no clear evidence that\n // there should be a separator between a national prefix\n // and a national (significant) number. So don't insert one.\n return '';\n }\n }, {\n key: \"getInternationalPrefixBeforeCountryCallingCode\",\n value: function getInternationalPrefixBeforeCountryCallingCode(_ref3, options) {\n var IDDPrefix = _ref3.IDDPrefix,\n missingPlus = _ref3.missingPlus;\n if (IDDPrefix) {\n return options && options.spacing === false ? IDDPrefix : IDDPrefix + ' ';\n }\n if (missingPlus) {\n return '';\n }\n return '+';\n }\n }, {\n key: \"getTemplate\",\n value: function getTemplate(state) {\n if (!this.template) {\n return;\n }\n // `this.template` holds the template for a \"complete\" phone number.\n // The currently entered phone number is most likely not \"complete\",\n // so trim all non-populated digits.\n var index = -1;\n var i = 0;\n var internationalPrefix = state.international ? this.getInternationalPrefixBeforeCountryCallingCode(state, {\n spacing: false\n }) : '';\n while (i < internationalPrefix.length + state.getDigitsWithoutInternationalPrefix().length) {\n index = this.template.indexOf(DIGIT_PLACEHOLDER, index + 1);\n i++;\n }\n return cutAndStripNonPairedParens(this.template, index + 1);\n }\n }, {\n key: \"setNationalNumberTemplate\",\n value: function setNationalNumberTemplate(template, state) {\n this.nationalNumberTemplate = template;\n this.populatedNationalNumberTemplate = template;\n // With a new formatting template, the matched position\n // using the old template needs to be reset.\n this.populatedNationalNumberTemplatePosition = -1;\n // For convenience, the public `.template` property\n // contains the whole international number\n // if the phone number being input is international:\n // 'x' for the '+' sign, 'x'es for the country phone code,\n // a spacebar and then the template for the formatted national number.\n if (state.international) {\n this.template = this.getInternationalPrefixBeforeCountryCallingCode(state).replace(/[\\d\\+]/g, DIGIT_PLACEHOLDER) + repeat(DIGIT_PLACEHOLDER, state.callingCode.length) + ' ' + template;\n } else {\n this.template = template;\n }\n }\n\n /**\r\n * Generates formatting template for a national phone number,\r\n * optionally containing a national prefix, for a format.\r\n * @param {Format} format\r\n * @param {string} nationalPrefix\r\n * @return {string}\r\n */\n }, {\n key: \"getTemplateForFormat\",\n value: function getTemplateForFormat(format, _ref4) {\n var nationalSignificantNumber = _ref4.nationalSignificantNumber,\n international = _ref4.international,\n nationalPrefix = _ref4.nationalPrefix,\n prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = _ref4.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix;\n var pattern = format.pattern();\n\n /* istanbul ignore else */\n if (SUPPORT_LEGACY_FORMATTING_PATTERNS) {\n pattern = pattern\n // Replace anything in the form of [..] with \\d\n .replace(CREATE_CHARACTER_CLASS_PATTERN(), '\\\\d')\n // Replace any standalone digit (not the one in `{}`) with \\d\n .replace(CREATE_STANDALONE_DIGIT_PATTERN(), '\\\\d');\n }\n\n // Generate a dummy national number (consisting of `9`s)\n // that fits this format's `pattern`.\n //\n // This match will always succeed,\n // because the \"longest dummy phone number\"\n // has enough length to accomodate any possible\n // national phone number format pattern.\n //\n var digits = LONGEST_DUMMY_PHONE_NUMBER.match(pattern)[0];\n\n // If the national number entered is too long\n // for any phone number format, then abort.\n if (nationalSignificantNumber.length > digits.length) {\n return;\n }\n\n // Get a formatting template which can be used to efficiently format\n // a partial number where digits are added one by one.\n\n // Below `strictPattern` is used for the\n // regular expression (with `^` and `$`).\n // This wasn't originally in Google's `libphonenumber`\n // and I guess they don't really need it\n // because they're not using \"templates\" to format phone numbers\n // but I added `strictPattern` after encountering\n // South Korean phone number formatting bug.\n //\n // Non-strict regular expression bug demonstration:\n //\n // this.nationalSignificantNumber : `111111111` (9 digits)\n //\n // pattern : (\\d{2})(\\d{3,4})(\\d{4})\n // format : `$1 $2 $3`\n // digits : `9999999999` (10 digits)\n //\n // '9999999999'.replace(new RegExp(/(\\d{2})(\\d{3,4})(\\d{4})/g), '$1 $2 $3') = \"99 9999 9999\"\n //\n // template : xx xxxx xxxx\n //\n // But the correct template in this case is `xx xxx xxxx`.\n // The template was generated incorrectly because of the\n // `{3,4}` variability in the `pattern`.\n //\n // The fix is, if `this.nationalSignificantNumber` has already sufficient length\n // to satisfy the `pattern` completely then `this.nationalSignificantNumber`\n // is used instead of `digits`.\n\n var strictPattern = new RegExp('^' + pattern + '$');\n var nationalNumberDummyDigits = nationalSignificantNumber.replace(/\\d/g, DUMMY_DIGIT);\n\n // If `this.nationalSignificantNumber` has already sufficient length\n // to satisfy the `pattern` completely then use it\n // instead of `digits`.\n if (strictPattern.test(nationalNumberDummyDigits)) {\n digits = nationalNumberDummyDigits;\n }\n var numberFormat = this.getFormatFormat(format, international);\n var nationalPrefixIncludedInTemplate;\n\n // If a user did input a national prefix (and that's guaranteed),\n // and if a `format` does have a national prefix formatting rule,\n // then see if that national prefix formatting rule\n // prepends exactly the same national prefix the user has input.\n // If that's the case, then use the `format` with the national prefix formatting rule.\n // Otherwise, use the `format` without the national prefix formatting rule,\n // and prepend a national prefix manually to it.\n if (this.shouldTryNationalPrefixFormattingRule(format, {\n international: international,\n nationalPrefix: nationalPrefix\n })) {\n var numberFormatWithNationalPrefix = numberFormat.replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule());\n // If `national_prefix_formatting_rule` of a `format` simply prepends\n // national prefix at the start of a national (significant) number,\n // then such formatting can be used with `AsYouType` formatter.\n // There seems to be no `else` case: everywhere in metadata,\n // national prefix formatting rule is national prefix + $1,\n // or `($1)`, in which case such format isn't even considered\n // when the user has input a national prefix.\n /* istanbul ignore else */\n if (parseDigits(format.nationalPrefixFormattingRule()) === (nationalPrefix || '') + parseDigits('$1')) {\n numberFormat = numberFormatWithNationalPrefix;\n nationalPrefixIncludedInTemplate = true;\n // Replace all digits of the national prefix in the formatting template\n // with `DIGIT_PLACEHOLDER`s.\n if (nationalPrefix) {\n var i = nationalPrefix.length;\n while (i > 0) {\n numberFormat = numberFormat.replace(/\\d/, DIGIT_PLACEHOLDER);\n i--;\n }\n }\n }\n }\n\n // Generate formatting template for this phone number format.\n var template = digits\n // Format the dummy phone number according to the format.\n .replace(new RegExp(pattern), numberFormat)\n // Replace each dummy digit with a DIGIT_PLACEHOLDER.\n .replace(new RegExp(DUMMY_DIGIT, 'g'), DIGIT_PLACEHOLDER);\n\n // If a prefix of a national (significant) number is not as simple\n // as just a basic national prefix, then just prepend such prefix\n // before the national (significant) number, optionally spacing\n // the two with a whitespace.\n if (!nationalPrefixIncludedInTemplate) {\n if (prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix) {\n // Prepend the prefix to the template manually.\n template = repeat(DIGIT_PLACEHOLDER, prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix.length) + ' ' + template;\n } else if (nationalPrefix) {\n // Prepend national prefix to the template manually.\n template = repeat(DIGIT_PLACEHOLDER, nationalPrefix.length) + this.getSeparatorAfterNationalPrefix(format) + template;\n }\n }\n if (international) {\n template = applyInternationalSeparatorStyle(template);\n }\n return template;\n }\n }, {\n key: \"formatNextNationalNumberDigits\",\n value: function formatNextNationalNumberDigits(digits) {\n var result = populateTemplateWithDigits(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, digits);\n if (!result) {\n // Reset the format.\n this.resetFormat();\n return;\n }\n this.populatedNationalNumberTemplate = result[0];\n this.populatedNationalNumberTemplatePosition = result[1];\n\n // Return the formatted phone number so far.\n return cutAndStripNonPairedParens(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);\n\n // The old way which was good for `input-format` but is not so good\n // for `react-phone-number-input`'s default input (`InputBasic`).\n // return closeNonPairedParens(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1)\n // \t.replace(new RegExp(DIGIT_PLACEHOLDER, 'g'), ' ')\n }\n }, {\n key: \"shouldTryNationalPrefixFormattingRule\",\n value: function shouldTryNationalPrefixFormattingRule(format, _ref5) {\n var international = _ref5.international,\n nationalPrefix = _ref5.nationalPrefix;\n if (format.nationalPrefixFormattingRule()) {\n // In some countries, `national_prefix_formatting_rule` is `($1)`,\n // so it applies even if the user hasn't input a national prefix.\n // `format.usesNationalPrefix()` detects such cases.\n var usesNationalPrefix = format.usesNationalPrefix();\n if (usesNationalPrefix && nationalPrefix || !usesNationalPrefix && !international) {\n return true;\n }\n }\n }\n }]);\n}();\nexport { AsYouTypeFormatter as default };\n//# sourceMappingURL=AsYouTypeFormatter.js.map"],"names":["_typeof","o","_createForOfIteratorHelperLoose","e","_unsupportedIterableToArray","_arrayLikeToArray","n","_classCallCheck","a","_defineProperties","r","_toPropertyKey","_createClass","t","i","_toPrimitive","DUMMY_DIGIT","LONGEST_NATIONAL_PHONE_NUMBER_LENGTH","LONGEST_DUMMY_PHONE_NUMBER","repeat","NATIONAL_PREFIX_SEPARATORS_PATTERN","CREATE_CHARACTER_CLASS_PATTERN","CREATE_STANDALONE_DIGIT_PATTERN","NON_ALTERING_FORMAT_REG_EXP","VALID_PUNCTUATION","MIN_LEADING_DIGITS_LENGTH","AsYouTypeFormatter","_ref","metadata","numberingPlan","state","nextDigits","_this","canFormatCompleteNumber","_iterator","_step","_format","formattedCompleteNumber","formatCompleteNumber","format","DIGIT_PLACEHOLDER","previouslyChosenFormat","newlyChosenFormat","_ref2","_this2","nationalSignificantNumber","nationalPrefix","international","leadingDigits","leadingDigitsPatternIndex","leadingDigitsPatternsCount","leadingDigitsPattern","PatternMatcher","error","_this3","_loop","_step2","_","_ret","_iterator2","template","_ref3","options","IDDPrefix","missingPlus","index","internationalPrefix","cutAndStripNonPairedParens","_ref4","prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix","pattern","digits","strictPattern","nationalNumberDummyDigits","numberFormat","nationalPrefixIncludedInTemplate","numberFormatWithNationalPrefix","FIRST_GROUP_PATTERN","parseDigits","applyInternationalSeparatorStyle","result","populateTemplateWithDigits","_ref5","usesNationalPrefix"],"mappings":";;;;;;;AAAA,SAASA,EAAQC,GAAG;AAAE;AAA2B,SAAOD,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAUC,GAAG;AAAE,WAAO,OAAOA;AAAA,EAAG,IAAI,SAAUA,GAAG;AAAE,WAAOA,KAAmB,OAAO,UAArB,cAA+BA,EAAE,gBAAgB,UAAUA,MAAM,OAAO,YAAY,WAAW,OAAOA;AAAA,EAAG,GAAGD,EAAQC,CAAC;AAAG;AAC7T,SAASC,EAAgC,GAAGC,GAAG;AAAE,MAAI,IAAmB,OAAO,SAAtB,OAAgC,EAAE,OAAO,QAAQ,KAAK,EAAE,YAAY;AAAG,MAAI,EAAG,SAAQ,IAAI,EAAE,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC;AAAG,MAAI,MAAM,QAAQ,CAAC,MAAM,IAAIC,EAA4B,CAAC,MAAMD,GAAuC;AAAE,UAAM,IAAI;AAAI,QAAIF,IAAI;AAAG,WAAO,WAAY;AAAE,aAAOA,KAAK,EAAE,SAAS,EAAE,MAAM,GAAE,IAAK,EAAE,MAAM,IAAI,OAAO,EAAEA,GAAG,EAAC;AAAA,IAAI;AAAA,EAAG;AAAE,QAAM,IAAI,UAAU;AAAA,mFAAuI;AAAG;AACziB,SAASG,EAA4B,GAAG,GAAG;AAAE,MAAI,GAAG;AAAE,QAAgB,OAAO,KAAnB,SAAsB,QAAOC,EAAkB,GAAG,CAAC;AAAG,QAAI,IAAI,CAAA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K,0CAA0C,CAAC;AAAA,IAM1H;AAAA,EACJ,GAAK;AAAA,IACD,KAAK;AAAA,IACL,OAAO,SAA+C5B,GAAQ2C,GAAO;AACnE,UAAInC,IAAgBmC,EAAM,eACxBpC,IAAiBoC,EAAM;AACzB,UAAI3C,EAAO,gCAAgC;AAIzC,YAAI4C,IAAqB5C,EAAO,mBAAkB;AAClD,YAAI4C,KAAsBrC,KAAkB,CAACqC,KAAsB,CAACpC;AAClE,iBAAO;AAAA,MAEX;AAAA,IACF;AAAA,EACJ,CAAG,CAAC;AACJ,GAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index86.js","sources":["../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"],"sourcesContent":["import { rectToClientRect, arrow as arrow$1, autoPlacement as autoPlacement$1, detectOverflow as detectOverflow$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1, computePosition as computePosition$1 } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle as getComputedStyle$1, isHTMLElement, isElement, getWindow, isWebKit, getFrameElement, getNodeScroll, getDocumentElement, isTopLayer, getNodeName, isOverflowElement, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle$1(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n $: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return createCoords(1);\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n $\n } = getCssDimensions(domElement);\n let x = ($ ? round(rect.width) : rect.width) / width;\n let y = ($ ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n const win = getWindow(element);\n if (!isWebKit() || !win.visualViewport) {\n return noOffsets;\n }\n return {\n x: win.visualViewport.offsetLeft,\n y: win.visualViewport.offsetTop\n };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n return false;\n }\n return isFixed;\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = createCoords(1);\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentWin = win;\n let currentIFrame = getFrameElement(currentWin);\n while (currentIFrame && offsetParent && offsetWin !== currentWin) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle$1(currentIFrame);\n const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += left;\n y += top;\n currentWin = getWindow(currentIFrame);\n currentIFrame = getFrameElement(currentWin);\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\n// If <html> has a CSS width greater than the viewport, then this will be\n// incorrect for RTL.\nfunction getWindowScrollBarX(element, rect) {\n const leftScroll = getNodeScroll(element).scrollLeft;\n if (!rect) {\n return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;\n }\n return rect.left + leftScroll;\n}\n\nfunction getHTMLOffset(documentElement, scroll) {\n const htmlRect = documentElement.getBoundingClientRect();\n const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);\n const y = htmlRect.top + scroll.scrollTop;\n return {\n x,\n y\n };\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n elements,\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isFixed = strategy === 'fixed';\n const documentElement = getDocumentElement(offsetParent);\n const topLayer = elements ? isTopLayer(elements.floating) : false;\n if (offsetParent === documentElement || topLayer && isFixed) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createCoords(1);\n const offsets = createCoords(0);\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y\n };\n}\n\nfunction getClientRects(element) {\n return Array.from(element.getClientRects());\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle$1(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Safety check: ensure the scrollbar space is reasonable in case this\n// calculation is affected by unusual styles.\n// Most scrollbars leave 15-18px of space.\nconst SCROLLBAR_MAX = 25;\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isWebKit();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n const windowScrollbarX = getWindowScrollBarX(html);\n // <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the\n // visual width of the <html> but this is not considered in the size\n // of `html.clientWidth`.\n if (windowScrollbarX <= 0) {\n const doc = html.ownerDocument;\n const body = doc.body;\n const bodyStyles = getComputedStyle(body);\n const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;\n const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);\n if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {\n width -= clippingStableScrollbarWidth;\n }\n } else if (windowScrollbarX <= SCROLLBAR_MAX) {\n // If the <body> scrollbar is on the left, the width needs to be extended\n // by the scrollbar amount so there isn't extra space on the right.\n width += windowScrollbarX;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\nconst absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y,\n width: clippingAncestor.width,\n height: clippingAncestor.height\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle$1(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle$1(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstClippingAncestor = clippingAncestors[0];\n const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n return {\n width: clippingRect.right - clippingRect.left,\n height: clippingRect.bottom - clippingRect.top,\n x: clippingRect.left,\n y: clippingRect.top\n };\n}\n\nfunction getDimensions(element) {\n const {\n width,\n height\n } = getCssDimensions(element);\n return {\n width,\n height\n };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = createCoords(0);\n\n // If the <body> scrollbar appears on the left (e.g. RTL systems). Use\n // Firefox with layout.scrollbar.side = 3 in about:config to test this.\n function setLeftRTLScrollbarOffset() {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n setLeftRTLScrollbarOffset();\n }\n }\n if (isFixed && !isOffsetParentAnElement && documentElement) {\n setLeftRTLScrollbarOffset();\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;\n const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;\n return {\n x,\n y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction isStaticPositioned(element) {\n return getComputedStyle$1(element).position === 'static';\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n let rawOffsetParent = element.offsetParent;\n\n // Firefox returns the <html> element as the offsetParent if it's non-static,\n // while Chrome and Safari return the <body> element. The <body> element must\n // be used to perform the correct calculations even if the <html> element is\n // non-static.\n if (getDocumentElement(element) === rawOffsetParent) {\n rawOffsetParent = rawOffsetParent.ownerDocument.body;\n }\n return rawOffsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const win = getWindow(element);\n if (isTopLayer(element)) {\n return win;\n }\n if (!isHTMLElement(element)) {\n let svgOffsetParent = getParentNode(element);\n while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {\n if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {\n return svgOffsetParent;\n }\n svgOffsetParent = getParentNode(svgOffsetParent);\n }\n return win;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {\n return win;\n }\n return offsetParent || getContainingBlock(element) || win;\n}\n\nconst getElementRects = async function (data) {\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n const floatingDimensions = await getDimensionsFn(data.floating);\n return {\n reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),\n floating: {\n x: 0,\n y: 0,\n width: floatingDimensions.width,\n height: floatingDimensions.height\n }\n };\n};\n\nfunction isRTL(element) {\n return getComputedStyle$1(element).direction === 'rtl';\n}\n\nconst platform = {\n convertOffsetParentRelativeRectToViewportRelativeRect,\n getDocumentElement,\n getClippingRect,\n getOffsetParent,\n getElementRects,\n getClientRects,\n getDimensions,\n getScale,\n isElement,\n isRTL\n};\n\nfunction rectsAreEqual(a, b) {\n return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;\n}\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove) {\n let io = null;\n let timeoutId;\n const root = getDocumentElement(element);\n function cleanup() {\n var _io;\n clearTimeout(timeoutId);\n (_io = io) == null || _io.disconnect();\n io = null;\n }\n function refresh(skip, threshold) {\n if (skip === void 0) {\n skip = false;\n }\n if (threshold === void 0) {\n threshold = 1;\n }\n cleanup();\n const elementRectForRootMargin = element.getBoundingClientRect();\n const {\n left,\n top,\n width,\n height\n } = elementRectForRootMargin;\n if (!skip) {\n onMove();\n }\n if (!width || !height) {\n return;\n }\n const insetTop = floor(top);\n const insetRight = floor(root.clientWidth - (left + width));\n const insetBottom = floor(root.clientHeight - (top + height));\n const insetLeft = floor(left);\n const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n const options = {\n rootMargin,\n threshold: max(0, min(1, threshold)) || 1\n };\n let isFirstUpdate = true;\n function handleObserve(entries) {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (!ratio) {\n // If the reference is clipped, the ratio is 0. Throttle the refresh\n // to prevent an infinite loop of updates.\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 1000);\n } else {\n refresh(false, ratio);\n }\n }\n if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {\n // It's possible that even though the ratio is reported as 1, the\n // element is not actually fully within the IntersectionObserver's root\n // area anymore. This can happen under performance constraints. This may\n // be a bug in the browser's IntersectionObserver implementation. To\n // work around this, we compare the element's bounding rect now with\n // what it was at the time we created the IntersectionObserver. If they\n // are not equal then the element moved, so we refresh.\n refresh();\n }\n isFirstUpdate = false;\n }\n\n // Older browsers don't support a `document` as the root and will throw an\n // error.\n try {\n io = new IntersectionObserver(handleObserve, {\n ...options,\n // Handle <iframe>s\n root: root.ownerDocument\n });\n } catch (_e) {\n io = new IntersectionObserver(handleObserve, options);\n }\n io.observe(element);\n }\n refresh(true);\n return cleanup;\n}\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n if (options === void 0) {\n options = {};\n }\n const {\n ancestorScroll = true,\n ancestorResize = true,\n elementResize = typeof ResizeObserver === 'function',\n layoutShift = typeof IntersectionObserver === 'function',\n animationFrame = false\n } = options;\n const referenceEl = unwrapElement(reference);\n const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.addEventListener('scroll', update, {\n passive: true\n });\n ancestorResize && ancestor.addEventListener('resize', update);\n });\n const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n let reobserveFrame = -1;\n let resizeObserver = null;\n if (elementResize) {\n resizeObserver = new ResizeObserver(_ref => {\n let [firstEntry] = _ref;\n if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {\n // Prevent update loops when using the `size` middleware.\n // https://github.com/floating-ui/floating-ui/issues/1740\n resizeObserver.unobserve(floating);\n cancelAnimationFrame(reobserveFrame);\n reobserveFrame = requestAnimationFrame(() => {\n var _resizeObserver;\n (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);\n });\n }\n update();\n });\n if (referenceEl && !animationFrame) {\n resizeObserver.observe(referenceEl);\n }\n resizeObserver.observe(floating);\n }\n let frameId;\n let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n if (animationFrame) {\n frameLoop();\n }\n function frameLoop() {\n const nextRefRect = getBoundingClientRect(reference);\n if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {\n update();\n }\n prevRefRect = nextRefRect;\n frameId = requestAnimationFrame(frameLoop);\n }\n update();\n return () => {\n var _resizeObserver2;\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.removeEventListener('scroll', update);\n ancestorResize && ancestor.removeEventListener('resize', update);\n });\n cleanupIo == null || cleanupIo();\n (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();\n resizeObserver = null;\n if (animationFrame) {\n cancelAnimationFrame(frameId);\n }\n };\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nconst detectOverflow = detectOverflow$1;\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = offset$1;\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = autoPlacement$1;\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = shift$1;\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = flip$1;\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = size$1;\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = hide$1;\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = arrow$1;\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = inline$1;\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = limitShift$1;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n */\nconst computePosition = (reference, floating, options) => {\n // This caches the expensive `getClippingElementAncestors` function so that\n // multiple lifecycle resets re-use the same result. It only lives for a\n // single call. If other functions become expensive, we can add them as well.\n const cache = new Map();\n const mergedOptions = {\n platform,\n ...options\n };\n const platformWithCache = {\n ...mergedOptions.platform,\n _c: cache\n };\n return computePosition$1(reference, floating, {\n ...mergedOptions,\n platform: platformWithCache\n });\n};\n\nexport { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, platform, shift, size };\n"],"names":["getCssDimensions","element","css","getComputedStyle$1","width","height","hasOffset","isHTMLElement","offsetWidth","offsetHeight","shouldFallback","round","unwrapElement","isElement","getScale","domElement","createCoords","rect","$","x","y","noOffsets","getVisualOffsets","win","getWindow","isWebKit","shouldAddVisualOffsets","isFixed","floatingOffsetParent","getBoundingClientRect","includeScale","isFixedStrategy","offsetParent","clientRect","scale","visualOffsets","offsetWin","currentWin","currentIFrame","getFrameElement","iframeScale","iframeRect","left","top","rectToClientRect","getWindowScrollBarX","leftScroll","getNodeScroll","getDocumentElement","getHTMLOffset","documentElement","scroll","htmlRect","convertOffsetParentRelativeRectToViewportRelativeRect","_ref","elements","strategy","topLayer","isTopLayer","offsets","isOffsetParentAnElement","getNodeName","isOverflowElement","offsetRect","htmlOffset","getClientRects","getDocumentRect","html","body","max","SCROLLBAR_MAX","getViewportRect","visualViewport","visualViewportBased","windowScrollbarX","doc","bodyStyles","bodyMarginInline","clippingStableScrollbarWidth","absoluteOrFixed","getInnerBoundingClientRect","getClientRectFromClippingAncestor","clippingAncestor","hasFixedPositionAncestor","stopNode","parentNode","getParentNode","isLastTraversableNode","getClippingElementAncestors","cache","cachedResult","result","getOverflowAncestors","el","currentContainingBlockComputedStyle","elementIsFixed","currentNode","computedStyle","currentNodeIsContaining","isContainingBlock","ancestor","getClippingRect","boundary","rootBoundary","clippingAncestors","firstClippingAncestor","clippingRect","accRect","min","getDimensions","getRectRelativeToOffsetParent","setLeftRTLScrollbarOffset","isStaticPositioned","getTrueOffsetParent","polyfill","rawOffsetParent","getOffsetParent","svgOffsetParent","isTableElement","getContainingBlock","getElementRects","data","getOffsetParentFn","getDimensionsFn","floatingDimensions","isRTL","platform","rectsAreEqual","a","b","observeMove","onMove","io","timeoutId","root","cleanup","_io","refresh","skip","threshold","elementRectForRootMargin","insetTop","floor","insetRight","insetBottom","insetLeft","options","isFirstUpdate","handleObserve","entries","ratio","autoUpdate","reference","floating","update","ancestorScroll","ancestorResize","elementResize","layoutShift","animationFrame","referenceEl","ancestors","cleanupIo","reobserveFrame","resizeObserver","firstEntry","_resizeObserver","frameId","prevRefRect","frameLoop","nextRefRect","_resizeObserver2","offset","offset$1","shift","shift$1","flip","flip$1","size","size$1","hide","hide$1","arrow","arrow$1","limitShift","limitShift$1","computePosition","mergedOptions","platformWithCache","computePosition$1"],"mappings":";;;AAKA,SAASA,EAAiBC,GAAS;AACjC,QAAMC,IAAMC,EAAmBF,CAAO;AAGtC,MAAIG,IAAQ,WAAWF,EAAI,KAAK,KAAK,GACjCG,IAAS,WAAWH,EAAI,MAAM,KAAK;AACvC,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AAiBlI,EAAsB2H,CAAS,IAAI;AACtE,EAAIO,KACFU,EAAS;AAEX,WAASA,IAAY;AACnB,UAAMC,IAAc7I,EAAsB2H,CAAS;AACnD,IAAIgB,KAAe,CAACzC,GAAcyC,GAAaE,CAAW,KACxDhB,EAAM,GAERc,IAAcE,GACdH,IAAU,sBAAsBE,CAAS;AAAA,EAC3C;AACA,SAAAf,EAAM,GACC,MAAM;AACX,QAAIiB;AACJ,IAAAV,EAAU,QAAQ,CAAA7D,MAAY;AAC5B,MAAAuD,KAAkBvD,EAAS,oBAAoB,UAAUsD,CAAM,GAC/DE,KAAkBxD,EAAS,oBAAoB,UAAUsD,CAAM;AAAA,IACjE,CAAC,GACoBQ,IAAS,IAC7BS,IAAmBP,MAAmB,QAAQO,EAAiB,WAAU,GAC1EP,IAAiB,MACbL,KACF,qBAAqBQ,CAAO;AAAA,EAEhC;AACF;AAmBK,MAACK,KAASC,IAeTC,KAAQC,IAQRC,KAAOC,IAQPC,KAAOC,IAOPC,KAAOC,IAOPC,KAAQC,IAYRC,KAAaC,IAMbC,KAAkB,CAAClC,GAAWC,GAAUP,MAAY;AAIxD,QAAMzD,IAAQ,oBAAI,IAAG,GACfkG,IAAgB;AAAA,IACpB,UAAA7D;AAAA,IACA,GAAGoB;AAAA,EACP,GACQ0C,IAAoB;AAAA,IACxB,GAAGD,EAAc;AAAA,IACjB,IAAIlG;AAAA,EACR;AACE,SAAOoG,GAAkBrC,GAAWC,GAAU;AAAA,IAC5C,GAAGkC;AAAA,IACH,UAAUC;AAAA,EACd,CAAG;AACH;","x_google_ignoreList":[0]}
package/dist/index87.js CHANGED
@@ -1,64 +1,50 @@
1
- function f(r, t) {
2
- var e = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
3
- if (e) return (e = e.call(r)).next.bind(e);
4
- if (Array.isArray(r) || (e = v(r)) || t) {
5
- e && (r = e);
6
- var n = 0;
7
- return function() {
8
- return n >= r.length ? { done: !0 } : { done: !1, value: r[n++] };
9
- };
10
- }
11
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
12
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
13
- }
14
- function v(r, t) {
15
- if (r) {
16
- if (typeof r == "string") return c(r, t);
17
- var e = {}.toString.call(r).slice(8, -1);
18
- return e === "Object" && r.constructor && (e = r.constructor.name), e === "Map" || e === "Set" ? Array.from(r) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? c(r, t) : void 0;
19
- }
1
+ import * as l from "react";
2
+ import { composeRefs as m } from "./index61.js";
3
+ import { j as u } from "./index28.js";
4
+ // @__NO_SIDE_EFFECTS__
5
+ function x(e) {
6
+ const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
7
+ const { children: i, ...c } = o, s = l.Children.toArray(i), a = s.find(g);
8
+ if (a) {
9
+ const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
10
+ return /* @__PURE__ */ u.jsx(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
11
+ }
12
+ return /* @__PURE__ */ u.jsx(r, { ...c, ref: n, children: i });
13
+ });
14
+ return t.displayName = `${e}.Slot`, t;
20
15
  }
21
- function c(r, t) {
22
- (t == null || t > r.length) && (t = r.length);
23
- for (var e = 0, n = Array(t); e < t; e++) n[e] = r[e];
24
- return n;
16
+ // @__NO_SIDE_EFFECTS__
17
+ function y(e) {
18
+ const r = l.forwardRef((t, o) => {
19
+ const { children: n, ...i } = t;
20
+ if (l.isValidElement(n)) {
21
+ const c = R(n), s = C(i, n.props);
22
+ return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
23
+ }
24
+ return l.Children.count(n) > 1 ? l.Children.only(null) : null;
25
+ });
26
+ return r.displayName = `${e}.SlotClone`, r;
25
27
  }
26
- var h = "x", u = new RegExp(h);
27
- function s(r, t) {
28
- if (t < 1)
29
- return "";
30
- for (var e = ""; t > 1; )
31
- t & 1 && (e += r), t >>= 1, r += r;
32
- return e + r;
28
+ var E = /* @__PURE__ */ Symbol("radix.slottable");
29
+ function g(e) {
30
+ return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === E;
33
31
  }
34
- function y(r, t) {
35
- return r[t] === ")" && t++, p(r.slice(0, t));
36
- }
37
- function p(r) {
38
- for (var t = [], e = 0; e < r.length; )
39
- r[e] === "(" ? t.push(e) : r[e] === ")" && t.pop(), e++;
40
- var n = 0, a = "";
41
- t.push(r.length);
42
- for (var o = 0, l = t; o < l.length; o++) {
43
- var i = l[o];
44
- a += r.slice(n, i), n = i + 1;
32
+ function C(e, r) {
33
+ const t = { ...r };
34
+ for (const o in r) {
35
+ const n = e[o], i = r[o];
36
+ /^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
37
+ const a = i(...s);
38
+ return n(...s), a;
39
+ } : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
45
40
  }
46
- return a;
41
+ return { ...e, ...t };
47
42
  }
48
- function d(r, t, e) {
49
- for (var n = f(e.split("")), a; !(a = n()).done; ) {
50
- var o = a.value;
51
- if (r.slice(t + 1).search(u) < 0)
52
- return;
53
- t = r.search(u), r = r.replace(u, o);
54
- }
55
- return [r, t];
43
+ function R(e) {
44
+ let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
45
+ return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
56
46
  }
57
47
  export {
58
- h as DIGIT_PLACEHOLDER,
59
- y as cutAndStripNonPairedParens,
60
- d as populateTemplateWithDigits,
61
- s as repeat,
62
- p as stripNonPairedParens
48
+ x as createSlot
63
49
  };
64
50
  //# sourceMappingURL=index87.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index87.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js"],"sourcesContent":["function _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n// Should be the same as `DIGIT_PLACEHOLDER` in `libphonenumber-metadata-generator`.\nexport var DIGIT_PLACEHOLDER = 'x'; // '\\u2008' (punctuation space)\nvar DIGIT_PLACEHOLDER_MATCHER = new RegExp(DIGIT_PLACEHOLDER);\n\n// Counts all occurences of a symbol in a string.\n// Unicode-unsafe (because using `.split()`).\nexport function countOccurences(symbol, string) {\n var count = 0;\n // Using `.split('')` to iterate through a string here\n // to avoid requiring `Symbol.iterator` polyfill.\n // `.split('')` is generally not safe for Unicode,\n // but in this particular case for counting brackets it is safe.\n // for (const character of string)\n for (var _iterator = _createForOfIteratorHelperLoose(string.split('')), _step; !(_step = _iterator()).done;) {\n var character = _step.value;\n if (character === symbol) {\n count++;\n }\n }\n return count;\n}\n\n// Repeats a string (or a symbol) N times.\n// http://stackoverflow.com/questions/202605/repeat-string-javascript\nexport function repeat(string, times) {\n if (times < 1) {\n return '';\n }\n var result = '';\n while (times > 1) {\n if (times & 1) {\n result += string;\n }\n times >>= 1;\n string += string;\n }\n return result + string;\n}\nexport function cutAndStripNonPairedParens(string, cutBeforeIndex) {\n if (string[cutBeforeIndex] === ')') {\n cutBeforeIndex++;\n }\n return stripNonPairedParens(string.slice(0, cutBeforeIndex));\n}\nexport function closeNonPairedParens(template, cut_before) {\n var retained_template = template.slice(0, cut_before);\n var opening_braces = countOccurences('(', retained_template);\n var closing_braces = countOccurences(')', retained_template);\n var dangling_braces = opening_braces - closing_braces;\n while (dangling_braces > 0 && cut_before < template.length) {\n if (template[cut_before] === ')') {\n dangling_braces--;\n }\n cut_before++;\n }\n return template.slice(0, cut_before);\n}\nexport function stripNonPairedParens(string) {\n var dangling_braces = [];\n var i = 0;\n while (i < string.length) {\n if (string[i] === '(') {\n dangling_braces.push(i);\n } else if (string[i] === ')') {\n dangling_braces.pop();\n }\n i++;\n }\n var start = 0;\n var cleared_string = '';\n dangling_braces.push(string.length);\n for (var _i = 0, _dangling_braces = dangling_braces; _i < _dangling_braces.length; _i++) {\n var index = _dangling_braces[_i];\n cleared_string += string.slice(start, index);\n start = index + 1;\n }\n return cleared_string;\n}\nexport function populateTemplateWithDigits(template, position, digits) {\n // Using `.split('')` to iterate through a string here\n // to avoid requiring `Symbol.iterator` polyfill.\n // `.split('')` is generally not safe for Unicode,\n // but in this particular case for `digits` it is safe.\n // for (const digit of digits)\n for (var _iterator2 = _createForOfIteratorHelperLoose(digits.split('')), _step2; !(_step2 = _iterator2()).done;) {\n var digit = _step2.value;\n // If there is room for more digits in current `template`,\n // then set the next digit in the `template`,\n // and return the formatted digits so far.\n // If more digits are entered than the current format could handle.\n if (template.slice(position + 1).search(DIGIT_PLACEHOLDER_MATCHER) < 0) {\n return;\n }\n position = template.search(DIGIT_PLACEHOLDER_MATCHER);\n template = template.replace(DIGIT_PLACEHOLDER_MATCHER, digit);\n }\n return [template, position];\n}\n//# sourceMappingURL=AsYouTypeFormatter.util.js.map"],"names":["_createForOfIteratorHelperLoose","e","t","_unsupportedIterableToArray","o","a","_arrayLikeToArray","DIGIT_PLACEHOLDER","DIGIT_PLACEHOLDER_MATCHER","repeat","string","times","result","cutAndStripNonPairedParens","cutBeforeIndex","stripNonPairedParens","dangling_braces","i","start","cleared_string","_i","_dangling_braces","index","populateTemplateWithDigits","template","position","digits","_iterator2","_step2","digit"],"mappings":"AAAA,SAASA,EAAgC,GAAGC,GAAG;AAAE,MAAIC,IAAmB,OAAO,SAAtB,OAAgC,EAAE,OAAO,QAAQ,KAAK,EAAE,YAAY;AAAG,MAAIA,EAAG,SAAQA,IAAIA,EAAE,KAAK,CAAC,GAAG,KAAK,KAAKA,CAAC;AAAG,MAAI,MAAM,QAAQ,CAAC,MAAMA,IAAIC,EAA4B,CAAC,MAAMF,GAAuC;AAAE,IAAAC,MAAM,IAAIA;AAAI,QAAIE,IAAI;AAAG,WAAO,WAAY;AAAE,aAAOA,KAAK,EAAE,SAAS,EAAE,MAAM,GAAE,IAAK,EAAE,MAAM,IAAI,OAAO,EAAEA,GAAG,EAAC;AAAA,IAAI;AAAA,EAAG;AAAE,QAAM,IAAI,UAAU;AAAA,mFAAuI;AAAG;AACziB,SAASD,EAA4B,GAAGE,GAAG;AAAE,MAAI,GAAG;AAAE,QAAgB,OAAO,KAAnB,SAAsB,QAAOC,EAAkB,GAAGD,CAAC;AAAG,QAAIH,IAAI,CAAA,EAAG,SAAS,KAAK,CAAC,EAAE,MAAM,GAAG,EAAE;AAAG,WAAoBA,MAAb,YAAkB,EAAE,gBAAgBA,IAAI,EAAE,YAAY,OAAiBA,MAAV,SAAyBA,MAAV,QAAc,MAAM,KAAK,CAAC,IAAoBA,MAAhB,eAAqB,2CAA2C,KAAKA,CAAC,IAAII,EAAkB,GAAGD,CAAC,IAAI;AAAA,EAAQ;AAAE;AACzX,SAASC,EAAkB,GAAGD,GAAG;A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,EAAE,OAAOjB,CAAyB,IAAI;AACnE;AAEF,IAAAiB,IAAWD,EAAS,OAAOhB,CAAyB,GACpDgB,IAAWA,EAAS,QAAQhB,GAA2BqB,CAAK;AAAA,EAC9D;AACA,SAAO,CAACL,GAAUC,CAAQ;AAC5B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index87.js","sources":["../../../node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","element","getter","mayWarn"],"mappings":";;;;AAKA,SAASA,EAAWC,GAAW;AAC7B,QAAMC,IAA4B,gBAAAC,EAAgBF,CAAS,GACrDG,IAAQC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACtD,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH,GAC7BI,IAAgBL,EAAM,SAAS,QAAQG,CAAQ,GAC/CG,IAAYD,EAAc,KAAKE,CAAW;AAChD,QAAID,GAAW;AACb,YAAME,IAAaF,EAAU,MAAM,UAC7BG,IAAcJ,EAAc,IAAI,CAACK,MACjCA,MAAUJ,IACRN,EAAM,SAAS,MAAMQ,CAAU,IAAI,IAAUR,EAAM,SAAS,KAAK,IAAI,IAClEA,EAAM,eAAeQ,CAAU,IAAIA,EAAW,MAAM,WAAW,OAE/DE,CAEV;AACD,aAAuBC,gBAAAA,EAAAA,IAAId,GAAW,EAAE,GAAGO,GAAW,KAAKF,GAAc,UAAUF,EAAM,eAAeQ,CAAU,IAAIR,EAAM,aAAaQ,GAAY,QAAQC,CAAW,IAAI,MAAM;AAAA,IACpL;AACA,WAAuBE,gBAAAA,EAAAA,IAAId,GAAW,EAAE,GAAGO,GAAW,KAAKF,GAAc,UAAAC,GAAU;AAAA,EACrF,CAAC;AACD,SAAAJ,EAAM,cAAc,GAAGH,CAAS,SACzBG;AACT;AAAA;AAGA,SAASD,EAAgBF,GAAW;AAClC,QAAMC,IAAYG,EAAM,WAAW,CAACC,GAAOC,MAAiB;AAC1D,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH;AACnC,QAAID,EAAM,eAAeG,CAAQ,GAAG;AAClC,YAAMS,IAAcC,EAAcV,CAAQ,GACpCW,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A,EAAO;AAC7D,SAAIC,IACKF,EAAQ,OAEjBC,IAAS,OAAO,yBAAyBD,GAAS,KAAK,GAAG,KAC1DE,IAAUD,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDC,IACKF,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
package/dist/index88.js CHANGED
@@ -1,50 +1,9 @@
1
- import f from "./index180.js";
2
- import u from "./index90.js";
3
- import m from "./index91.js";
4
- function p(a, t, r) {
5
- var e = r.metadata, n = r.shouldTryNationalPrefixFormattingRule, o = r.getSeparatorAfterNationalPrefix, i = new RegExp("^(?:".concat(t.pattern(), ")$"));
6
- if (i.test(a.nationalSignificantNumber))
7
- return N(a, t, {
8
- metadata: e,
9
- shouldTryNationalPrefixFormattingRule: n,
10
- getSeparatorAfterNationalPrefix: o
11
- });
12
- }
13
- function c(a, t, r) {
14
- return f(a, t, r) === "IS_POSSIBLE";
15
- }
16
- function N(a, t, r) {
17
- var e = r.metadata, n = r.shouldTryNationalPrefixFormattingRule, o = r.getSeparatorAfterNationalPrefix;
18
- if (a.nationalSignificantNumber, a.international, a.nationalPrefix, a.carrierCode, n(t)) {
19
- var i = l(a, t, {
20
- useNationalPrefixFormattingRule: !0,
21
- getSeparatorAfterNationalPrefix: o,
22
- metadata: e
23
- });
24
- if (i)
25
- return i;
26
- }
27
- return l(a, t, {
28
- useNationalPrefixFormattingRule: !1,
29
- getSeparatorAfterNationalPrefix: o,
30
- metadata: e
31
- });
32
- }
33
- function l(a, t, r) {
34
- var e = r.metadata, n = r.useNationalPrefixFormattingRule, o = r.getSeparatorAfterNationalPrefix, i = m(a.nationalSignificantNumber, t, {
35
- carrierCode: a.carrierCode,
36
- useInternationalFormat: a.international,
37
- withNationalPrefix: n,
38
- metadata: e
39
- });
40
- if (n || (a.nationalPrefix ? i = a.nationalPrefix + o(t) + i : a.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (i = a.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + i)), g(i, a))
41
- return i;
42
- }
43
- function g(a, t) {
44
- return u(a) === t.getNationalDigits();
1
+ import { getCountries as E } from "./index206.js";
2
+ const n = ["IM", "GG", "JE"], o = new Set(n), e = E().filter((t) => !o.has(t));
3
+ function s() {
4
+ return e;
45
5
  }
46
6
  export {
47
- c as canFormatCompleteNumber,
48
- p as default
7
+ s as getCountryList
49
8
  };
50
9
  //# sourceMappingURL=index88.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index88.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js"],"sourcesContent":["import checkNumberLength from './helpers/checkNumberLength.js';\nimport parseDigits from './helpers/parseDigits.js';\nimport formatNationalNumberUsingFormat from './helpers/formatNationalNumberUsingFormat.js';\nexport default function formatCompleteNumber(state, format, _ref) {\n var metadata = _ref.metadata,\n shouldTryNationalPrefixFormattingRule = _ref.shouldTryNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix = _ref.getSeparatorAfterNationalPrefix;\n var matcher = new RegExp(\"^(?:\".concat(format.pattern(), \")$\"));\n if (matcher.test(state.nationalSignificantNumber)) {\n return formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state, format, {\n metadata: metadata,\n shouldTryNationalPrefixFormattingRule: shouldTryNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix\n });\n }\n}\nexport function canFormatCompleteNumber(nationalSignificantNumber, country, metadata) {\n return checkNumberLength(nationalSignificantNumber, country, metadata) === 'IS_POSSIBLE';\n}\nfunction formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state, format, _ref2) {\n var metadata = _ref2.metadata,\n shouldTryNationalPrefixFormattingRule = _ref2.shouldTryNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix = _ref2.getSeparatorAfterNationalPrefix;\n // `format` has already been checked for `nationalPrefix` requirement.\n\n var nationalSignificantNumber = state.nationalSignificantNumber,\n international = state.international,\n nationalPrefix = state.nationalPrefix,\n carrierCode = state.carrierCode;\n\n // Format the number with using `national_prefix_formatting_rule`.\n // If the resulting formatted number is a valid formatted number, then return it.\n //\n // Google's AsYouType formatter is different in a way that it doesn't try\n // to format using the \"national prefix formatting rule\", and instead it\n // simply prepends a national prefix followed by a \" \" character.\n // This code does that too, but as a fallback.\n // The reason is that \"national prefix formatting rule\" may use parentheses,\n // which wouldn't be included has it used the simpler Google's way.\n //\n if (shouldTryNationalPrefixFormattingRule(format)) {\n var formattedNumber = formatNationalNumber(state, format, {\n useNationalPrefixFormattingRule: true,\n getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix,\n metadata: metadata\n });\n if (formattedNumber) {\n return formattedNumber;\n }\n }\n\n // Format the number without using `national_prefix_formatting_rule`.\n return formatNationalNumber(state, format, {\n useNationalPrefixFormattingRule: false,\n getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix,\n metadata: metadata\n });\n}\nfunction formatNationalNumber(state, format, _ref3) {\n var metadata = _ref3.metadata,\n useNationalPrefixFormattingRule = _ref3.useNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix = _ref3.getSeparatorAfterNationalPrefix;\n var formattedNationalNumber = formatNationalNumberUsingFormat(state.nationalSignificantNumber, format, {\n carrierCode: state.carrierCode,\n useInternationalFormat: state.international,\n withNationalPrefix: useNationalPrefixFormattingRule,\n metadata: metadata\n });\n if (!useNationalPrefixFormattingRule) {\n if (state.nationalPrefix) {\n // If a national prefix was extracted, then just prepend it,\n // followed by a \" \" character.\n formattedNationalNumber = state.nationalPrefix + getSeparatorAfterNationalPrefix(format) + formattedNationalNumber;\n } else if (state.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix) {\n formattedNationalNumber = state.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + ' ' + formattedNationalNumber;\n }\n }\n if (isValidFormattedNationalNumber(formattedNationalNumber, state)) {\n return formattedNationalNumber;\n }\n}\n\n// Check that the formatted phone number contains exactly\n// the same digits that have been input by the user.\n// For example, when \"0111523456789\" is input for `AR` country,\n// the extracted `this.nationalSignificantNumber` is \"91123456789\",\n// which means that the national part of `this.digits` isn't simply equal to\n// `this.nationalPrefix` + `this.nationalSignificantNumber`.\n//\n// Also, a `format` can add extra digits to the `this.nationalSignificantNumber`\n// being formatted via `metadata[country].national_prefix_transform_rule`.\n// For example, for `VI` country, it prepends `340` to the national number,\n// and if this check hasn't been implemented, then there would be a bug\n// when `340` \"area coude\" is \"duplicated\" during input for `VI` country:\n// https://github.com/catamphetamine/libphonenumber-js/issues/318\n//\n// So, all these \"gotchas\" are filtered out.\n//\n// In the original Google's code, the comments say:\n// \"Check that we didn't remove nor add any extra digits when we matched\n// this formatting pattern. This usually happens after we entered the last\n// digit during AYTF. Eg: In case of MX, we swallow mobile token (1) when\n// formatted but AYTF should retain all the number entered and not change\n// in order to match a format (of same leading digits and length) display\n// in that way.\"\n// \"If it's the same (i.e entered number and format is same), then it's\n// safe to return this in formatted number as nothing is lost / added.\"\n// Otherwise, don't use this format.\n// https://github.com/google/libphonenumber/commit/3e7c1f04f5e7200f87fb131e6f85c6e99d60f510#diff-9149457fa9f5d608a11bb975c6ef4bc5\n// https://github.com/google/libphonenumber/commit/3ac88c7106e7dcb553bcc794b15f19185928a1c6#diff-2dcb77e833422ee304da348b905cde0b\n//\nfunction isValidFormattedNationalNumber(formattedNationalNumber, state) {\n return parseDigits(formattedNationalNumber) === state.getNationalDigits();\n}\n//# sourceMappingURL=AsYouTypeFormatter.complete.js.map"],"names":["formatCompleteNumber","state","format","_ref","metadata","shouldTryNationalPrefixFormattingRule","getSeparatorAfterNationalPrefix","matcher","formatNationalNumberWithAndWithoutNationalPrefixFormattingRule","canFormatCompleteNumber","nationalSignificantNumber","country","checkNumberLength","_ref2","formattedNumber","formatNationalNumber","_ref3","useNationalPrefixFormattingRule","formattedNationalNumber","formatNationalNumberUsingFormat","isValidFormattedNationalNumber","parseDigits"],"mappings":";;;AAGe,SAASA,EAAqBC,GA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BK,EAAgCJ,CAAM,IAAIgB,IAClFjB,EAAM,iEACfiB,IAA0BjB,EAAM,+DAA+D,MAAMiB,KAGrGE,EAA+BF,GAAyBjB,CAAK;AAC/D,WAAOiB;AAEX;AA+BA,SAASE,EAA+BF,GAAyBjB,GAAO;AACtE,SAAOoB,EAAYH,CAAuB,MAAMjB,EAAM,kBAAiB;AACzE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index88.js","sources":["../src/components/PhoneNumberInput/countries.ts"],"sourcesContent":["import { getCountries } from \"libphonenumber-js\"\nimport type { CountryCode } from \"libphonenumber-js\"\n\n\nconst EXCLUDED_COUNTRIES: CountryCode[] = [\"IM\", \"GG\", \"JE\"]\nconst EXCLUDED_SET = new Set(EXCLUDED_COUNTRIES)\n\nconst FILTERED_COUNTRIES = getCountries().filter((code) => !EXCLUDED_SET.has(code))\n\nexport function getCountryList(): CountryCode[] {\n return FILTERED_COUNTRIES\n}\n"],"names":["EXCLUDED_COUNTRIES","EXCLUDED_SET","FILTERED_COUNTRIES","getCountries","code","getCountryList"],"mappings":";AAIA,MAAMA,IAAoC,CAAC,MAAM,MAAM,IAAI,GACrDC,IAAe,IAAI,IAAID,CAAkB,GAEzCE,IAAqBC,EAAA,EAAe,OAAO,CAACC,MAAS,CAACH,EAAa,IAAIG,CAAI,CAAC;AAE3E,SAASC,IAAgC;AAC9C,SAAOH;AACT;"}