@unchainedshop/admin-ui 5.0.0-alpha.11 → 5.0.0-alpha.12

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 (752) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-WPLOTFGW.js → chunk-2HTCKO4E.js} +12 -3
  3. package/dist/{chunk-BMDNY67T.js → chunk-33ZO52Z7.js} +3241 -1753
  4. package/dist/{chunk-PJLYVMUM.js → chunk-4MXPTVDL.js} +2 -2
  5. package/dist/{chunk-I64TXIE7.js → chunk-ATZJXTRA.js} +1 -1
  6. package/dist/{chunk-QHR23GVH.js → chunk-CUYIP5XG.js} +1 -1
  7. package/dist/{chunk-5WPFHQZN.js → chunk-E6HDJYA6.js} +3 -3
  8. package/dist/{chunk-FDHXLNZQ.js → chunk-EAVP6XZQ.js} +1 -1
  9. package/dist/{chunk-E77YIMGR.js → chunk-ED2FP42R.js} +1 -1
  10. package/dist/{chunk-HJKRGBDG.js → chunk-GWMLIF3C.js} +1 -1
  11. package/dist/{chunk-3L6EZQ6P.js → chunk-NFJE5EJG.js} +1 -1
  12. package/dist/{chunk-ICJH36K4.js → chunk-YUXHILXY.js} +1 -1
  13. package/dist/components/ui/Loading.d.ts +8 -1
  14. package/dist/components/ui/Loading.d.ts.map +1 -1
  15. package/dist/components/ui/index.d.ts +1 -0
  16. package/dist/components/ui/index.d.ts.map +1 -1
  17. package/dist/form.js +797 -286
  18. package/dist/gql/schema-types.d.ts +3 -2
  19. package/dist/gql/schema-types.d.ts.map +1 -1
  20. package/dist/hooks.js +3 -3
  21. package/dist/modal.js +5 -5
  22. package/dist/modules/accounts.js +1 -1
  23. package/dist/modules/assortment.js +1 -1
  24. package/dist/modules/country.js +1 -1
  25. package/dist/modules/currency.js +1 -1
  26. package/dist/modules/delivery-provider.js +1 -1
  27. package/dist/modules/enrollment.js +1 -1
  28. package/dist/modules/event.js +1 -1
  29. package/dist/modules/filter.js +1 -1
  30. package/dist/modules/language.js +1 -1
  31. package/dist/modules/order.js +1 -1
  32. package/dist/modules/payment-providers.js +1 -1
  33. package/dist/modules/product-review.js +1 -1
  34. package/dist/modules/product.js +5 -5
  35. package/dist/modules/quotation.js +1 -1
  36. package/dist/modules/token.js +1 -1
  37. package/dist/modules/warehousing-providers.js +1 -1
  38. package/dist/modules/work.js +1 -1
  39. package/dist/plugins.js +1 -1
  40. package/dist/providers.js +5 -5
  41. package/dist/shims/admin-ui-plugins.js +1 -1
  42. package/dist/shims/apollo-client-react.js +1 -1
  43. package/dist/shims/apollo-client.js +1 -1
  44. package/dist/shims/next-head.js +1 -1
  45. package/dist/shims/next-image.js +1 -1
  46. package/dist/shims/next-link.js +1 -1
  47. package/dist/shims/next-router.js +1 -1
  48. package/dist/shims/react-dom-client.js +1 -1
  49. package/dist/shims/react-dom.js +1 -1
  50. package/dist/shims/react-hook-form.js +1 -1
  51. package/dist/shims/react-intl.js +1 -1
  52. package/dist/shims/react-jsx-runtime.js +1 -1
  53. package/dist/shims/react-toastify.js +1 -1
  54. package/dist/shims/react.js +1 -1
  55. package/dist/theme.js +1 -1
  56. package/dist/ui.js +3933 -3416
  57. package/out/403/index.html +3 -3
  58. package/out/404/index.html +3 -3
  59. package/out/404.html +3 -3
  60. package/out/423/index.html +3 -3
  61. package/out/500/index.html +3 -3
  62. package/out/_next/static/bg3Z_ZBjStiTvJAHlsPDE/_buildManifest.js +262 -0
  63. package/out/_next/static/chunks/0-kvzk5p0hp-4.js +11 -0
  64. package/out/_next/static/chunks/0-nzk-g6k41e-.js +119 -0
  65. package/out/_next/static/chunks/00wlebfe9j80r.js +24 -0
  66. package/out/_next/static/chunks/01isyk4v59s_4.js +5 -0
  67. package/out/_next/static/chunks/01otzjqxk372n.js +1 -0
  68. package/out/_next/static/chunks/03x_mgpai_kbn.js +1 -0
  69. package/out/_next/static/chunks/04327_1fq5i7-.js +9 -0
  70. package/out/_next/static/chunks/04_r4qnsjmy81.js +4 -0
  71. package/out/_next/static/chunks/04egfa7kckou_.js +165 -0
  72. package/out/_next/static/chunks/05474mknnr_tw.js +4 -0
  73. package/out/_next/static/chunks/{2ajr0rk0_yax6.js → 06kqbwwnuu3te.js} +1 -1
  74. package/out/_next/static/chunks/0728622u98g6r.js +1 -0
  75. package/out/_next/static/chunks/09irjy-7k1922.js +1 -0
  76. package/out/_next/static/chunks/0_3suta3t3lus.js +5 -0
  77. package/out/_next/static/chunks/0_a5fzdztv84p.js +272 -0
  78. package/out/_next/static/chunks/0_ppdn6x6ci0v.js +31 -0
  79. package/out/_next/static/chunks/0br42_xli8-2x.js +6 -0
  80. package/out/_next/static/chunks/0cdk-eqghrgee.js +5 -0
  81. package/out/_next/static/chunks/0d54jo566j9ka.js +12 -0
  82. package/out/_next/static/chunks/0gfia1t8drmnx.js +182 -0
  83. package/out/_next/static/chunks/0gwd6ju8j_bwr.js +39 -0
  84. package/out/_next/static/chunks/{0_pn7w49dpkak.js → 0hv3x0mo1tt7i.js} +2 -2
  85. package/out/_next/static/chunks/0i481ym5-ss1t.js +5 -0
  86. package/out/_next/static/chunks/0iohwbogpxe5r.js +1 -0
  87. package/out/_next/static/chunks/0j46qnxaxeqk_.js +1 -0
  88. package/out/_next/static/chunks/{1jmdpa0tc5puj.js → 0mcu2o1ir2t_w.js} +3 -3
  89. package/out/_next/static/chunks/0o4aj3bm49d_h.js +61 -0
  90. package/out/_next/static/chunks/0op3htrvd-ix6.js +5 -0
  91. package/out/_next/static/chunks/0p55j-ysba0wq.js +63 -0
  92. package/out/_next/static/chunks/0qv2nce7okzy5.js +103 -0
  93. package/out/_next/static/chunks/0rrhyxuk32t3n.js +95 -0
  94. package/out/_next/static/chunks/0rt4le6syjqdj.js +21 -0
  95. package/out/_next/static/chunks/0s2jvi6_qj0lc.js +16 -0
  96. package/out/_next/static/chunks/0uef4ugmc_g10.js +1 -0
  97. package/out/_next/static/chunks/0v1tb34y7e1y4.js +5 -0
  98. package/out/_next/static/chunks/0w9d4swf95hvu.js +33 -0
  99. package/out/_next/static/chunks/0we1tw4xvdb7o.js +7 -0
  100. package/out/_next/static/chunks/0zlzflyq18hhy.js +4 -0
  101. package/out/_next/static/chunks/0zqdvl0b4w5nc.js +7 -0
  102. package/out/_next/static/chunks/1-wbp_4f-c4-3.js +837 -0
  103. package/out/_next/static/chunks/11vnr4kb9qkjr.js +1 -0
  104. package/out/_next/static/chunks/12cy_5m_0fj96.js +44 -0
  105. package/out/_next/static/chunks/131uuhqexo4si.js +4 -0
  106. package/out/_next/static/chunks/14eqp21pspjud.js +234 -0
  107. package/out/_next/static/chunks/14jd75j8ij4u2.js +3 -0
  108. package/out/_next/static/chunks/153-_av1r1ssb.js +4 -0
  109. package/out/_next/static/chunks/{0m73vd78oga92.js → 157ndq6b9jcvv.js} +11 -11
  110. package/out/_next/static/chunks/177p92k5pdloo.js +1 -0
  111. package/out/_next/static/chunks/19-1z6h5eeq_w.js +134 -0
  112. package/out/_next/static/chunks/1bxznw06g-5u2.js +5 -0
  113. package/out/_next/static/chunks/1bypzyw5fs3w2.js +59 -0
  114. package/out/_next/static/chunks/1cz2fp89ssu5d.js +4 -0
  115. package/out/_next/static/chunks/1e2jykfql801f.js +16 -0
  116. package/out/_next/static/chunks/1eokbzdgdicpa.js +33 -0
  117. package/out/_next/static/chunks/1f0t23r6y0hni.js +1 -0
  118. package/out/_next/static/chunks/1fehej_7rgmmo.js +5 -0
  119. package/out/_next/static/chunks/1gl4h7w9t850f.js +1 -0
  120. package/out/_next/static/chunks/1gv0k-w7m83om.js +41 -0
  121. package/out/_next/static/chunks/1hzt0aoixrv4_.js +7 -0
  122. package/out/_next/static/chunks/1ia6hdgf7pj9y.js +174 -0
  123. package/out/_next/static/chunks/1in8spfokcjsp.js +8 -0
  124. package/out/_next/static/chunks/1j2gw9gyg8j80.js +5 -0
  125. package/out/_next/static/chunks/1k06h8wbfrx_v.js +5 -0
  126. package/out/_next/static/chunks/1kdcu-0jkya-b.js +61 -0
  127. package/out/_next/static/chunks/1msc4qrgaanh7.js +43 -0
  128. package/out/_next/static/chunks/{1iamjw8qh1m4o.js → 1mx0p6r-9c5u_.js} +1 -1
  129. package/out/_next/static/chunks/1oqc8etm-romv.js +1 -0
  130. package/out/_next/static/chunks/1p5lt4tkyouxz.js +4 -0
  131. package/out/_next/static/chunks/1q7wxp4rlhy0x.js +12 -0
  132. package/out/_next/static/chunks/1r61kgm2ct0nf.js +74 -0
  133. package/out/_next/static/chunks/1rmlm4404fsge.js +15 -0
  134. package/out/_next/static/chunks/1s3ool53utm9o.js +39 -0
  135. package/out/_next/static/chunks/1sc2ug6_szd_d.js +2 -0
  136. package/out/_next/static/chunks/{12yd8t4k6c0t1.js → 1t8jj0-6g8uyd.js} +1 -1
  137. package/out/_next/static/chunks/1tbd6m-xvx0um.js +353 -0
  138. package/out/_next/static/chunks/1th1-x1szvnq8.js +5 -0
  139. package/out/_next/static/chunks/1tosw188dr9d6.js +44 -0
  140. package/out/_next/static/chunks/1tw97cvdosb89.js +5 -0
  141. package/out/_next/static/chunks/1ubmbegreszhk.js +1 -0
  142. package/out/_next/static/chunks/{43uqmej6-s4am.js → 1ug1ie2lrhi0a.js} +3 -3
  143. package/out/_next/static/chunks/1uw7hr3o4w5cj.js +8 -0
  144. package/out/_next/static/chunks/1vzs8hvrsoslf.js +5 -0
  145. package/out/_next/static/chunks/1w6gc_cygbi6h.js +5 -0
  146. package/out/_next/static/chunks/1xybsisfyvqrj.js +115 -0
  147. package/out/_next/static/chunks/1yvl8l5yx1rj8.js +4 -0
  148. package/out/_next/static/chunks/{3dcwbsiechj8e.js → 1z-etrje5tsj6.js} +3 -3
  149. package/out/_next/static/chunks/1z1d11slpalrq.js +4 -0
  150. package/out/_next/static/chunks/1zdral15la_p7.js +99 -0
  151. package/out/_next/static/chunks/2-qo63s4vlxol.js +156 -0
  152. package/out/_next/static/chunks/20au-bdji0nu2.js +14 -0
  153. package/out/_next/static/chunks/21zghy5-42i1e.js +1 -0
  154. package/out/_next/static/chunks/22duvsj-priip.js +7 -0
  155. package/out/_next/static/chunks/22rdge7enz4nd.js +12 -0
  156. package/out/_next/static/chunks/{3m_9ozv0orvze.js → 249b4cg2ev597.js} +3 -3
  157. package/out/_next/static/chunks/24caedynuzux0.js +5 -0
  158. package/out/_next/static/chunks/25ite4-jpq_mo.js +4 -0
  159. package/out/_next/static/chunks/25vdihxswn7dy.js +1 -0
  160. package/out/_next/static/chunks/26guwpx1_pkxv.js +1 -0
  161. package/out/_next/static/chunks/28o6402k4vuky.js +11 -0
  162. package/out/_next/static/chunks/29x7cj-318eaa.js +1 -0
  163. package/out/_next/static/chunks/2_0v0fw6x71zy.js +46 -0
  164. package/out/_next/static/chunks/2a9dpzjx5mfjp.js +4 -0
  165. package/out/_next/static/chunks/2apnv1hcv-4zc.js +23 -0
  166. package/out/_next/static/chunks/2b4k5t_myq-pa.js +1 -0
  167. package/out/_next/static/chunks/2bugi3kot5jtu.js +1 -0
  168. package/out/_next/static/chunks/2bxdh-td1el8z.js +5 -0
  169. package/out/_next/static/chunks/2dz0_3jf4m9cy.js +31 -0
  170. package/out/_next/static/chunks/2ege1545af18d.js +4 -0
  171. package/out/_next/static/chunks/2erqawjj0rnih.js +117 -0
  172. package/out/_next/static/chunks/2gfzt_fdr-h96.js +81 -0
  173. package/out/_next/static/chunks/2grm6dtosrvoq.js +1 -0
  174. package/out/_next/static/chunks/2hc3d38gb0q-v.js +1 -0
  175. package/out/_next/static/chunks/2hci18oosfv5d.js +5 -0
  176. package/out/_next/static/chunks/2imf3_f1_ex86.js +1 -0
  177. package/out/_next/static/chunks/{3fpgg_wy6j2ph.js → 2ipcn3vy6d4_6.js} +1 -1
  178. package/out/_next/static/chunks/2iwst7mjldlcz.js +1 -0
  179. package/out/_next/static/chunks/2ja0dztzyw8zw.js +1 -0
  180. package/out/_next/static/chunks/2ja1--2x_gs49.js +83 -0
  181. package/out/_next/static/chunks/2lec5u8obskt6.js +5 -0
  182. package/out/_next/static/chunks/2m38nntt3z8zi.js +103 -0
  183. package/out/_next/static/chunks/2pogx3xggqd8y.js +1 -0
  184. package/out/_next/static/chunks/2q988j4vovsiy.js +8 -0
  185. package/out/_next/static/chunks/2s-0q8i8lr2p2.js +5 -0
  186. package/out/_next/static/chunks/{0a_gulnq-c7to.js → 2u64ldp2xfy8a.js} +7 -7
  187. package/out/_next/static/chunks/2ud5j0_nqocf4.js +5 -0
  188. package/out/_next/static/chunks/2uo6puoi0y082.js +5 -0
  189. package/out/_next/static/chunks/2w3z7kqh6nbmw.js +23 -0
  190. package/out/_next/static/chunks/2y11qf38baxpu.js +14 -0
  191. package/out/_next/static/chunks/{2yw5sk06gdixu.js → 2y8uau15r3p-o.js} +1 -1
  192. package/out/_next/static/chunks/2zb-xmda5rbn0.js +1 -0
  193. package/out/_next/static/chunks/2zsvxbghbsuz1.js +4 -0
  194. package/out/_next/static/chunks/{0s6u_6w75ggbw.js → 3205eg3ochzp4.js} +7 -7
  195. package/out/_next/static/chunks/32g5gxee1kcdc.js +28 -0
  196. package/out/_next/static/chunks/32whi9clpxjd0.js +5 -0
  197. package/out/_next/static/chunks/3368kg846t33d.js +57 -0
  198. package/out/_next/static/chunks/33oz-znvi5-m6.js +1 -0
  199. package/out/_next/static/chunks/345s7967cwd02.js +5 -0
  200. package/out/_next/static/chunks/34wf3lz_fft3k.js +2 -0
  201. package/out/_next/static/chunks/{3btkj1_irjkq7.js → 36x7q29atus_r.js} +6 -6
  202. package/out/_next/static/chunks/37jjn1wguhj-a.js +5 -0
  203. package/out/_next/static/chunks/{1so6ouxrq_ffa.js → 393--hagnnm97.js} +3 -3
  204. package/out/_next/static/chunks/39moagn46hde9.js +5 -0
  205. package/out/_next/static/chunks/3_0q-dmk8few_.css +1 -0
  206. package/out/_next/static/chunks/3_adkt8r_brx4.js +165 -0
  207. package/out/_next/static/chunks/3b1kt-r_75q1a.js +43 -0
  208. package/out/_next/static/chunks/3e38rrs6dszgt.js +8 -0
  209. package/out/_next/static/chunks/{01xy3u9ybz9ts.js → 3e7d8sb4289js.js} +2 -2
  210. package/out/_next/static/chunks/3ek1bahoqa_ll.js +5 -0
  211. package/out/_next/static/chunks/3ek680kdzjdr7.js +1 -0
  212. package/out/_next/static/chunks/3eth7s2-06yuz.js +1 -0
  213. package/out/_next/static/chunks/3exy4ii5maq4x.js +54 -0
  214. package/out/_next/static/chunks/3fevbt4ysloo8.js +8 -0
  215. package/out/_next/static/chunks/3fu072xwkf88o.js +6 -0
  216. package/out/_next/static/chunks/3h6a3clw5m5ro.js +4 -0
  217. package/out/_next/static/chunks/3hmoy4f23y1s4.js +147 -0
  218. package/out/_next/static/chunks/3i4_3b36nutw7.js +33 -0
  219. package/out/_next/static/chunks/3jfe0uesrzz7a.js +1 -0
  220. package/out/_next/static/chunks/3k01tdsm6l20w.js +54 -0
  221. package/out/_next/static/chunks/3lr6hkso67d68.js +6 -0
  222. package/out/_next/static/chunks/3lzin6_25n8rs.js +30 -0
  223. package/out/_next/static/chunks/3nrrzhhoy8amt.js +4 -0
  224. package/out/_next/static/chunks/3o-h2po9z09dk.js +4 -0
  225. package/out/_next/static/chunks/3onharcadlou0.js +327 -0
  226. package/out/_next/static/chunks/3pls-kicv4xu9.js +175 -0
  227. package/out/_next/static/chunks/3t48n1yk76zoa.js +1 -0
  228. package/out/_next/static/chunks/3t_520l4ihlg3.js +54 -0
  229. package/out/_next/static/chunks/3tg_clsx6ux4o.js +1 -0
  230. package/out/_next/static/chunks/3ttz1zgoq3xmp.js +1 -0
  231. package/out/_next/static/chunks/3uekb_s0jaboj.js +1 -0
  232. package/out/_next/static/chunks/3ujdligrod612.js +5 -0
  233. package/out/_next/static/chunks/3www97fxyknos.js +4 -0
  234. package/out/_next/static/chunks/3x_gia2m5w9_l.js +147 -0
  235. package/out/_next/static/chunks/{3j25u7rzawm9f.js → 3xs_undkbcqp7.js} +5 -5
  236. package/out/_next/static/chunks/3yktizlgzr6vc.js +4 -0
  237. package/out/_next/static/chunks/3ytp87o76hzmx.js +100 -0
  238. package/out/_next/static/chunks/40kvu3lk3s9h2.js +276 -0
  239. package/out/_next/static/chunks/41c4n9whpyrjc.js +7 -0
  240. package/out/_next/static/chunks/42dygj7ul4k54.js +33 -0
  241. package/out/_next/static/chunks/449x6nw2kd7l6.js +119 -0
  242. package/out/_next/static/chunks/44b7_q6pkf1k9.js +5 -0
  243. package/out/_next/static/chunks/44qc0zn0tudui.js +2 -0
  244. package/out/_next/static/chunks/45c05mbjow5wz.js +4 -0
  245. package/out/_next/static/chunks/{turbopack-2c3mg3r-05n1w.js → turbopack-077hmtqrhcoji.js} +1 -1
  246. package/out/_offline/index.html +3 -3
  247. package/out/account/forgot-password/index.html +3 -3
  248. package/out/account/index.html +3 -3
  249. package/out/assortments/AssortmentDetailPage/index.html +3 -3
  250. package/out/assortments/index.html +3 -3
  251. package/out/assortments/new/index.html +3 -3
  252. package/out/copilot/index.html +3 -3
  253. package/out/country/CountryDetailPage/index.html +3 -3
  254. package/out/country/index.html +3 -3
  255. package/out/country/new/index.html +3 -3
  256. package/out/currency/CurrencyDetailPage/index.html +3 -3
  257. package/out/currency/index.html +3 -3
  258. package/out/currency/new/index.html +3 -3
  259. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
  260. package/out/delivery-provider/index.html +3 -3
  261. package/out/delivery-provider/new/index.html +3 -3
  262. package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
  263. package/out/enrollments/index.html +3 -3
  264. package/out/events/EventDetailPage/index.html +3 -3
  265. package/out/events/index.html +3 -3
  266. package/out/exports/index.html +3 -3
  267. package/out/ext/[[...slug]]/index.html +3 -3
  268. package/out/external/index.html +3 -3
  269. package/out/filters/FilterDetailPage/index.html +3 -3
  270. package/out/filters/index.html +3 -3
  271. package/out/filters/new/index.html +3 -3
  272. package/out/index.html +3 -3
  273. package/out/install/index.html +3 -3
  274. package/out/language/LanguageDetailPage/index.html +3 -3
  275. package/out/language/index.html +3 -3
  276. package/out/language/new/index.html +3 -3
  277. package/out/log-in/index.html +3 -3
  278. package/out/orders/OrderDetailPage/index.html +3 -3
  279. package/out/orders/index.html +3 -3
  280. package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
  281. package/out/payment-provider/index.html +3 -3
  282. package/out/payment-provider/new/index.html +3 -3
  283. package/out/products/ProductDetailPage/index.html +3 -3
  284. package/out/products/index.html +3 -3
  285. package/out/products/new/index.html +3 -3
  286. package/out/quotations/QuotationDetailPage/index.html +3 -3
  287. package/out/quotations/index.html +3 -3
  288. package/out/reset-password/index.html +3 -3
  289. package/out/sign-up/index.html +3 -3
  290. package/out/styleguide/index.html +3 -3
  291. package/out/tokens/TokenDetailPage/index.html +3 -3
  292. package/out/tokens/index.html +3 -3
  293. package/out/users/UserDetailPage/index.html +3 -3
  294. package/out/users/index.html +3 -3
  295. package/out/users/new/index.html +3 -3
  296. package/out/verify-email/index.html +3 -3
  297. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
  298. package/out/warehousing-provider/index.html +3 -3
  299. package/out/warehousing-provider/new/index.html +3 -3
  300. package/out/works/WorkDetailPage/index.html +3 -3
  301. package/out/works/WorkQueueListView/index.html +3 -3
  302. package/out/works/index.html +3 -3
  303. package/out/works/management/index.html +3 -3
  304. package/package.json +10 -10
  305. package/src/modules/accounts/hooks/logOut.ts +26 -0
  306. package/src/modules/accounts/hooks/useAddEmail.ts +34 -0
  307. package/src/modules/accounts/hooks/useAddWeb3Address.ts +38 -0
  308. package/src/modules/accounts/hooks/useAddWebAuthnCredentials.ts +48 -0
  309. package/src/modules/accounts/hooks/useBulkUserOperations.ts +91 -0
  310. package/src/modules/accounts/hooks/useChangePassword.ts +36 -0
  311. package/src/modules/accounts/hooks/useCreateUser.ts +74 -0
  312. package/src/modules/accounts/hooks/useCreateWebAuthnCredentialCreationOptions.ts +31 -0
  313. package/src/modules/accounts/hooks/useCreateWebAuthnCredentialRequestOptions.ts +30 -0
  314. package/src/modules/accounts/hooks/useCurrentUser.ts +44 -0
  315. package/src/modules/accounts/hooks/useDeleteUser.ts +26 -0
  316. package/src/modules/accounts/hooks/useEnrollUser.ts +48 -0
  317. package/src/modules/accounts/hooks/useForgotPassword.ts +35 -0
  318. package/src/modules/accounts/hooks/useGenerateLoginCredentials.ts +80 -0
  319. package/src/modules/accounts/hooks/useGenerateWebAuthCredentials.ts +102 -0
  320. package/src/modules/accounts/hooks/useLoginWithPassword.ts +65 -0
  321. package/src/modules/accounts/hooks/useLoginWithWebAuthn.ts +38 -0
  322. package/src/modules/accounts/hooks/useLogoutAllSessions.ts +27 -0
  323. package/src/modules/accounts/hooks/useRemoveBookmark.ts +36 -0
  324. package/src/modules/accounts/hooks/useRemoveEmail.ts +40 -0
  325. package/src/modules/accounts/hooks/useRemoveWeb3Address.ts +38 -0
  326. package/src/modules/accounts/hooks/useRemoveWebAuthCredentials.ts +36 -0
  327. package/src/modules/accounts/hooks/useResetPassword.ts +46 -0
  328. package/src/modules/accounts/hooks/useSendVerificationEmail.ts +35 -0
  329. package/src/modules/accounts/hooks/useSetPassword.ts +38 -0
  330. package/src/modules/accounts/hooks/useSetRoles.ts +40 -0
  331. package/src/modules/accounts/hooks/useSetUserTags.ts +48 -0
  332. package/src/modules/accounts/hooks/useSetUsername.ts +40 -0
  333. package/src/modules/accounts/hooks/useUpdateUserAvatar.ts +49 -0
  334. package/src/modules/accounts/hooks/useUpdateUserProfile.ts +40 -0
  335. package/src/modules/accounts/hooks/useUser.ts +201 -0
  336. package/src/modules/accounts/hooks/useUserBookmarks.ts +51 -0
  337. package/src/modules/accounts/hooks/useUserExport.ts +107 -0
  338. package/src/modules/accounts/hooks/useUserWebAuthnCredentials.ts +44 -0
  339. package/src/modules/accounts/hooks/useUsers.ts +82 -0
  340. package/src/modules/accounts/hooks/useUsersCount.ts +50 -0
  341. package/src/modules/accounts/hooks/useValidateEmailVerificationToken.ts +34 -0
  342. package/src/modules/accounts/hooks/useValidateResetPasswordToken.ts +35 -0
  343. package/src/modules/accounts/hooks/useVerifyEmail.ts +41 -0
  344. package/src/modules/accounts/hooks/useVerifyWeb3Address.ts +40 -0
  345. package/src/modules/assortment/fragments/AssortmentChildrenFragment.ts +16 -0
  346. package/src/modules/assortment/fragments/AssortmentFragment.ts +31 -0
  347. package/src/modules/assortment/fragments/AssortmentLinkFragment.ts +18 -0
  348. package/src/modules/assortment/fragments/AssortmentMediaFragment.ts +19 -0
  349. package/src/modules/assortment/fragments/AssortmentMediaTextsFragment.ts +12 -0
  350. package/src/modules/assortment/fragments/AssortmentTextsFragment.ts +14 -0
  351. package/src/modules/assortment/hooks/useAddAssortmentFilter.ts +46 -0
  352. package/src/modules/assortment/hooks/useAddAssortmentLink.ts +46 -0
  353. package/src/modules/assortment/hooks/useAddAssortmentMedia.ts +52 -0
  354. package/src/modules/assortment/hooks/useAddAssortmentProduct.ts +46 -0
  355. package/src/modules/assortment/hooks/useAssortment.ts +56 -0
  356. package/src/modules/assortment/hooks/useAssortmentChildren.ts +58 -0
  357. package/src/modules/assortment/hooks/useAssortmentExport.ts +60 -0
  358. package/src/modules/assortment/hooks/useAssortmentFilters.ts +51 -0
  359. package/src/modules/assortment/hooks/useAssortmentLinks.ts +54 -0
  360. package/src/modules/assortment/hooks/useAssortmentMedia.ts +57 -0
  361. package/src/modules/assortment/hooks/useAssortmentPaths.ts +39 -0
  362. package/src/modules/assortment/hooks/useAssortmentProducts.ts +62 -0
  363. package/src/modules/assortment/hooks/useAssortments.ts +103 -0
  364. package/src/modules/assortment/hooks/useAssortmentsCount.ts +51 -0
  365. package/src/modules/assortment/hooks/useBulkAssortmentOperations.ts +100 -0
  366. package/src/modules/assortment/hooks/useCreateAssortment.ts +55 -0
  367. package/src/modules/assortment/hooks/usePrepareAssortmentImport.ts +211 -0
  368. package/src/modules/assortment/hooks/useRemoveAssortment.ts +36 -0
  369. package/src/modules/assortment/hooks/useRemoveAssortmentFilter.ts +36 -0
  370. package/src/modules/assortment/hooks/useRemoveAssortmentLink.ts +36 -0
  371. package/src/modules/assortment/hooks/useRemoveAssortmentMedia.ts +36 -0
  372. package/src/modules/assortment/hooks/useRemoveAssortmentProduct.ts +36 -0
  373. package/src/modules/assortment/hooks/useReorderAssortmentFilters.ts +39 -0
  374. package/src/modules/assortment/hooks/useReorderAssortmentLinks.ts +37 -0
  375. package/src/modules/assortment/hooks/useReorderAssortmentMedia.ts +37 -0
  376. package/src/modules/assortment/hooks/useReorderAssortmentProducts.ts +39 -0
  377. package/src/modules/assortment/hooks/useTranslatedAssortmentMediaTexts.ts +41 -0
  378. package/src/modules/assortment/hooks/useTranslatedAssortmentTexts.ts +40 -0
  379. package/src/modules/assortment/hooks/useUpdateAssortment.ts +43 -0
  380. package/src/modules/assortment/hooks/useUpdateAssortmentMediaTexts.ts +45 -0
  381. package/src/modules/assortment/hooks/useUpdateAssortmentTexts.ts +42 -0
  382. package/src/modules/common/fragments/AddressFragment.ts +16 -0
  383. package/src/modules/common/hooks/useApp.ts +11 -0
  384. package/src/modules/common/hooks/useBulkActionConfirmation.tsx +68 -0
  385. package/src/modules/common/hooks/useBulkResultHandler.ts +83 -0
  386. package/src/modules/common/hooks/useBulkSelection.ts +86 -0
  387. package/src/modules/common/hooks/useCSVExport.ts +94 -0
  388. package/src/modules/common/hooks/useCSVImport.ts +69 -0
  389. package/src/modules/common/hooks/useChatEndpointChecker.ts +25 -0
  390. package/src/modules/common/hooks/useConfirmMediaUpload.ts +45 -0
  391. package/src/modules/common/hooks/useDashboardMetrics.ts +42 -0
  392. package/src/modules/common/hooks/useLocalStorage.ts +34 -0
  393. package/src/modules/common/hooks/useOrderAnalytics.ts +139 -0
  394. package/src/modules/common/hooks/useOrderItemsAnalytics.ts +107 -0
  395. package/src/modules/common/hooks/useOutsideClick.ts +29 -0
  396. package/src/modules/common/hooks/usePortal.ts +54 -0
  397. package/src/modules/common/hooks/useScrollRestoration.ts +123 -0
  398. package/src/modules/common/hooks/useShopConfiguration.ts +83 -0
  399. package/src/modules/common/hooks/useShopInfo.ts +65 -0
  400. package/src/modules/common/hooks/useStatusTypes.ts +29 -0
  401. package/src/modules/common/hooks/useSystemRoles.ts +29 -0
  402. package/src/modules/common/hooks/useTheme.ts +14 -0
  403. package/src/modules/copilot/hooks/useAvailableTools.ts +92 -0
  404. package/src/modules/copilot/hooks/useChatManager.ts +169 -0
  405. package/src/modules/copilot/hooks/useToolTextNormalizer.ts +84 -0
  406. package/src/modules/country/fragments/CountryFragment.ts +17 -0
  407. package/src/modules/country/hooks/useCountries.ts +66 -0
  408. package/src/modules/country/hooks/useCountry.ts +34 -0
  409. package/src/modules/country/hooks/useCreateCountry.ts +41 -0
  410. package/src/modules/country/hooks/useRemoveCountry.ts +38 -0
  411. package/src/modules/country/hooks/useUpdateCountry.ts +42 -0
  412. package/src/modules/currency/fragments/CurrencyFragment.ts +13 -0
  413. package/src/modules/currency/hooks/useCreateCurrency.ts +48 -0
  414. package/src/modules/currency/hooks/useCurrencies.ts +68 -0
  415. package/src/modules/currency/hooks/useCurrency.ts +34 -0
  416. package/src/modules/currency/hooks/useRemoveCurrency.ts +38 -0
  417. package/src/modules/currency/hooks/useUpdateCurrency.ts +47 -0
  418. package/src/modules/delivery-provider/hooks/useCreateDeliveryProvider.ts +67 -0
  419. package/src/modules/delivery-provider/hooks/useDeliveryInterfacesByType.ts +38 -0
  420. package/src/modules/delivery-provider/hooks/useDeliveryProvider.ts +60 -0
  421. package/src/modules/delivery-provider/hooks/useDeliveryProviderTypes.ts +34 -0
  422. package/src/modules/delivery-provider/hooks/useDeliveryProviders.ts +59 -0
  423. package/src/modules/delivery-provider/hooks/useRemoveDeliveryProvider.ts +38 -0
  424. package/src/modules/delivery-provider/hooks/useUpdateDeliveryProvider.ts +68 -0
  425. package/src/modules/enrollment/fragments/EnrollmentDetailFragment.ts +110 -0
  426. package/src/modules/enrollment/fragments/EnrollmentFragment.ts +66 -0
  427. package/src/modules/enrollment/hooks/useActivateEnrollment.ts +36 -0
  428. package/src/modules/enrollment/hooks/useEnrollment.ts +39 -0
  429. package/src/modules/enrollment/hooks/useEnrollments.ts +70 -0
  430. package/src/modules/enrollment/hooks/useSendEnrollmentEmail.ts +35 -0
  431. package/src/modules/enrollment/hooks/useSuspendEnrollment.ts +29 -0
  432. package/src/modules/enrollment/hooks/useTerminateEnrollment.ts +36 -0
  433. package/src/modules/enrollment/hooks/useUpdateEnrollmentPlan.ts +45 -0
  434. package/src/modules/enrollment/hooks/useUserEnrollments.ts +61 -0
  435. package/src/modules/event/fragments/EventFragment.ts +12 -0
  436. package/src/modules/event/hooks/useEvent.ts +32 -0
  437. package/src/modules/event/hooks/useEventTypes.ts +29 -0
  438. package/src/modules/event/hooks/useEvents.ts +77 -0
  439. package/src/modules/filter/fragments/FilterFragment.ts +24 -0
  440. package/src/modules/filter/fragments/FilterOptionFragment.ts +16 -0
  441. package/src/modules/filter/fragments/FilterTextsFragment.ts +12 -0
  442. package/src/modules/filter/hooks/useBulkFilterOperations.ts +59 -0
  443. package/src/modules/filter/hooks/useCreateFilter.ts +44 -0
  444. package/src/modules/filter/hooks/useCreateFilterOption.ts +42 -0
  445. package/src/modules/filter/hooks/useFilter.ts +44 -0
  446. package/src/modules/filter/hooks/useFilterExport.ts +35 -0
  447. package/src/modules/filter/hooks/useFilterOptions.ts +40 -0
  448. package/src/modules/filter/hooks/useFilterTypes.ts +34 -0
  449. package/src/modules/filter/hooks/useFilters.ts +78 -0
  450. package/src/modules/filter/hooks/useFiltersCount.ts +37 -0
  451. package/src/modules/filter/hooks/usePrepareFilterImport.ts +142 -0
  452. package/src/modules/filter/hooks/useRemoveFilter.ts +34 -0
  453. package/src/modules/filter/hooks/useRemoveFilterOption.ts +40 -0
  454. package/src/modules/filter/hooks/useTranslatedFilterTexts.ts +40 -0
  455. package/src/modules/filter/hooks/useUpdateFilter.ts +38 -0
  456. package/src/modules/filter/hooks/useUpdateFilterTexts.ts +48 -0
  457. package/src/modules/forms/hooks/useField.ts +151 -0
  458. package/src/modules/forms/hooks/useForm.ts +210 -0
  459. package/src/modules/forms/hooks/useFormContext.ts +7 -0
  460. package/src/modules/language/fragments/LanguageFragment.ts +13 -0
  461. package/src/modules/language/hooks/useCreateLanguage.ts +40 -0
  462. package/src/modules/language/hooks/useLanguage.ts +34 -0
  463. package/src/modules/language/hooks/useLanguages.ts +64 -0
  464. package/src/modules/language/hooks/useRemoveLanguage.ts +38 -0
  465. package/src/modules/language/hooks/useUpdateLanguage.ts +42 -0
  466. package/src/modules/modal/hooks/useModal.ts +8 -0
  467. package/src/modules/order/fragments/OrderDetailFragment.ts +255 -0
  468. package/src/modules/order/fragments/OrderFragment.ts +42 -0
  469. package/src/modules/order/hooks/useConfirmOrder.ts +36 -0
  470. package/src/modules/order/hooks/useDeliverOrder.ts +36 -0
  471. package/src/modules/order/hooks/useOrder.ts +35 -0
  472. package/src/modules/order/hooks/useOrders.ts +105 -0
  473. package/src/modules/order/hooks/usePayOrder.ts +36 -0
  474. package/src/modules/order/hooks/useRejectOrder.ts +36 -0
  475. package/src/modules/order/hooks/useRemoveOrder.ts +36 -0
  476. package/src/modules/order/hooks/useUserCart.ts +71 -0
  477. package/src/modules/order/hooks/useUserOrders.ts +65 -0
  478. package/src/modules/payment-providers/fragments/PaymentProviderFragment.ts +21 -0
  479. package/src/modules/payment-providers/hooks/useCreatePaymentProvider.ts +43 -0
  480. package/src/modules/payment-providers/hooks/usePaymentInterfacesByType.ts +38 -0
  481. package/src/modules/payment-providers/hooks/usePaymentProvider.ts +39 -0
  482. package/src/modules/payment-providers/hooks/usePaymentProviderTypes.ts +34 -0
  483. package/src/modules/payment-providers/hooks/usePaymentProviders.ts +42 -0
  484. package/src/modules/payment-providers/hooks/useRemovePaymentProvider.ts +38 -0
  485. package/src/modules/payment-providers/hooks/useUpdatePaymentProvider.ts +47 -0
  486. package/src/modules/product/fragments/ProductAssignmentFragment.ts +39 -0
  487. package/src/modules/product/fragments/ProductBriefFragment.ts +57 -0
  488. package/src/modules/product/fragments/ProductCatalogPriceFragment.ts +23 -0
  489. package/src/modules/product/fragments/ProductDetailFragment.ts +51 -0
  490. package/src/modules/product/fragments/ProductDimensionFragment.ts +12 -0
  491. package/src/modules/product/fragments/ProductMediaFragment.ts +24 -0
  492. package/src/modules/product/fragments/ProductMediaTextsFragment.ts +12 -0
  493. package/src/modules/product/fragments/ProductPlanConfigurationFragment.ts +14 -0
  494. package/src/modules/product/fragments/ProductTextsFragment.ts +17 -0
  495. package/src/modules/product/fragments/ProductVariationFragment.ts +27 -0
  496. package/src/modules/product/fragments/TokenFragment.ts +24 -0
  497. package/src/modules/product/hooks/useAddProductAssignment.ts +46 -0
  498. package/src/modules/product/hooks/useAddProductMedia.ts +47 -0
  499. package/src/modules/product/hooks/useBulkProductOperations.ts +123 -0
  500. package/src/modules/product/hooks/useCreateProduct.ts +72 -0
  501. package/src/modules/product/hooks/useCreateProductBundleItem.ts +40 -0
  502. package/src/modules/product/hooks/useCreateProductVariation.ts +46 -0
  503. package/src/modules/product/hooks/useCreateProductVariationOption.ts +46 -0
  504. package/src/modules/product/hooks/useExportToken.ts +51 -0
  505. package/src/modules/product/hooks/useMenuPosition.ts +34 -0
  506. package/src/modules/product/hooks/usePrepareProductImport.ts +350 -0
  507. package/src/modules/product/hooks/useProduct.ts +93 -0
  508. package/src/modules/product/hooks/useProductAssignments.ts +71 -0
  509. package/src/modules/product/hooks/useProductBundleItems.ts +61 -0
  510. package/src/modules/product/hooks/useProductCatalogPrices.ts +39 -0
  511. package/src/modules/product/hooks/useProductExport.ts +90 -0
  512. package/src/modules/product/hooks/useProductFulfillmentSimulation.ts +137 -0
  513. package/src/modules/product/hooks/useProductMedia.ts +44 -0
  514. package/src/modules/product/hooks/useProductPlan.ts +50 -0
  515. package/src/modules/product/hooks/useProductPlanConfigurationOptions.ts +42 -0
  516. package/src/modules/product/hooks/useProductReviews.ts +62 -0
  517. package/src/modules/product/hooks/useProductSupply.ts +52 -0
  518. package/src/modules/product/hooks/useProductTokenization.ts +51 -0
  519. package/src/modules/product/hooks/useProductVariationTypes.ts +34 -0
  520. package/src/modules/product/hooks/useProductVariations.ts +50 -0
  521. package/src/modules/product/hooks/useProductWarehousing.ts +45 -0
  522. package/src/modules/product/hooks/useProducts.ts +111 -0
  523. package/src/modules/product/hooks/useProductsCount.ts +50 -0
  524. package/src/modules/product/hooks/usePublishProduct.ts +39 -0
  525. package/src/modules/product/hooks/useReOrderProductMedia.ts +36 -0
  526. package/src/modules/product/hooks/useRemoveBundleItem.ts +37 -0
  527. package/src/modules/product/hooks/useRemoveProduct.ts +36 -0
  528. package/src/modules/product/hooks/useRemoveProductAssignment.ts +40 -0
  529. package/src/modules/product/hooks/useRemoveProductMedia.ts +36 -0
  530. package/src/modules/product/hooks/useRemoveProductVariation.ts +36 -0
  531. package/src/modules/product/hooks/useRemoveProductVariationOption.ts +43 -0
  532. package/src/modules/product/hooks/useScaffoldBundleItem.ts +38 -0
  533. package/src/modules/product/hooks/useScaffoldVariationProduct.ts +50 -0
  534. package/src/modules/product/hooks/useSmartContractStandards.ts +34 -0
  535. package/src/modules/product/hooks/useTranslatedProductMediaTexts.ts +39 -0
  536. package/src/modules/product/hooks/useTranslatedProductTexts.ts +42 -0
  537. package/src/modules/product/hooks/useUnPublishProduct.ts +39 -0
  538. package/src/modules/product/hooks/useUpdateProduct.ts +46 -0
  539. package/src/modules/product/hooks/useUpdateProductCommerce.ts +61 -0
  540. package/src/modules/product/hooks/useUpdateProductMediaTexts.ts +42 -0
  541. package/src/modules/product/hooks/useUpdateProductPlan.ts +54 -0
  542. package/src/modules/product/hooks/useUpdateProductSupply.ts +60 -0
  543. package/src/modules/product/hooks/useUpdateProductTexts.ts +39 -0
  544. package/src/modules/product/hooks/useUpdateProductTokenization.ts +51 -0
  545. package/src/modules/product/hooks/useUpdateProductVariationTexts.ts +50 -0
  546. package/src/modules/product/hooks/useUpdateProductWarehousing.ts +50 -0
  547. package/src/modules/product/hooks/useUserTokens.ts +48 -0
  548. package/src/modules/product-review/fragments/ProductReviewDetailFragment.ts +55 -0
  549. package/src/modules/product-review/hooks/useAddProductReviewVote.ts +55 -0
  550. package/src/modules/product-review/hooks/useCreateProductReview.ts +47 -0
  551. package/src/modules/product-review/hooks/useProductReviewsByProductId.ts +70 -0
  552. package/src/modules/product-review/hooks/useRemoveProductReview.ts +38 -0
  553. package/src/modules/product-review/hooks/useRemoveProductReviewVote.ts +43 -0
  554. package/src/modules/product-review/hooks/useUserProductReviews.ts +92 -0
  555. package/src/modules/quotation/fragments/QuotationDetailFragment.ts +70 -0
  556. package/src/modules/quotation/fragments/QuotationFragment.ts +54 -0
  557. package/src/modules/quotation/hooks/useMakeQuotationProposal.ts +41 -0
  558. package/src/modules/quotation/hooks/useQuotation.ts +37 -0
  559. package/src/modules/quotation/hooks/useQuotations.ts +61 -0
  560. package/src/modules/quotation/hooks/useRejectQuotation.ts +41 -0
  561. package/src/modules/quotation/hooks/useUserQuotations.ts +60 -0
  562. package/src/modules/quotation/hooks/useVerifyQuotation.ts +41 -0
  563. package/src/modules/search/fragments/GlobalSearchFragment.ts +20 -0
  564. package/src/modules/search/hooks/useGlobalSearch.ts +168 -0
  565. package/src/modules/token/hooks/useInvalidateTicket.ts +27 -0
  566. package/src/modules/token/hooks/useToken.ts +64 -0
  567. package/src/modules/token/hooks/useTokens.ts +72 -0
  568. package/src/modules/warehousing-providers/fragments/WarehousingProviderFragment.ts +21 -0
  569. package/src/modules/warehousing-providers/hooks/useCreateWarehousingProvider.ts +46 -0
  570. package/src/modules/warehousing-providers/hooks/useRemoveWarehousingProvider.ts +38 -0
  571. package/src/modules/warehousing-providers/hooks/useUpdateWarehousingProvider.ts +47 -0
  572. package/src/modules/warehousing-providers/hooks/useWarehousingInterfacesByType.ts +38 -0
  573. package/src/modules/warehousing-providers/hooks/useWarehousingProvider.ts +39 -0
  574. package/src/modules/warehousing-providers/hooks/useWarehousingProviderTypes.ts +34 -0
  575. package/src/modules/warehousing-providers/hooks/useWarehousingProviders.ts +41 -0
  576. package/src/modules/work/fragments/WorkFragment.ts +24 -0
  577. package/src/modules/work/hooks/useActiveWorkTypes.ts +29 -0
  578. package/src/modules/work/hooks/useAddWork.ts +62 -0
  579. package/src/modules/work/hooks/useAllocateWork.ts +40 -0
  580. package/src/modules/work/hooks/useRecentExports.ts +129 -0
  581. package/src/modules/work/hooks/useRegisteredWorkTypes.ts +27 -0
  582. package/src/modules/work/hooks/useRemoveWork.ts +36 -0
  583. package/src/modules/work/hooks/useWork.ts +42 -0
  584. package/src/modules/work/hooks/useWorkQueue.ts +98 -0
  585. package/src/sdk/README.md +2 -2
  586. package/out/_next/static/BPoacQET3TJr2q9E370Ez/_buildManifest.js +0 -262
  587. package/out/_next/static/chunks/02ir8k2vqhw7u.js +0 -4
  588. package/out/_next/static/chunks/03mdkmx9pb3yx.js +0 -28
  589. package/out/_next/static/chunks/03spbldywp99b.js +0 -31
  590. package/out/_next/static/chunks/0531sa8v36e39.js +0 -1
  591. package/out/_next/static/chunks/065ltxdt7s8b2.js +0 -134
  592. package/out/_next/static/chunks/06b1jza2fvc6f.js +0 -4
  593. package/out/_next/static/chunks/0701uizxsgs75.js +0 -4
  594. package/out/_next/static/chunks/09olk50zbo5r6.js +0 -5
  595. package/out/_next/static/chunks/09pabifvs84zb.js +0 -12
  596. package/out/_next/static/chunks/0agx-csdwbk-x.js +0 -5
  597. package/out/_next/static/chunks/0clmvy-auef0p.js +0 -14
  598. package/out/_next/static/chunks/0czktxcs2aa12.js +0 -1
  599. package/out/_next/static/chunks/0d_qylr054ab-.js +0 -5
  600. package/out/_next/static/chunks/0e2znhpcecrqs.js +0 -175
  601. package/out/_next/static/chunks/0ef4vp3ehm369.js +0 -4
  602. package/out/_next/static/chunks/0fggi8jpi5gjk.js +0 -165
  603. package/out/_next/static/chunks/0gyabz3vqllr6.js +0 -83
  604. package/out/_next/static/chunks/0j05dboa5_xkw.js +0 -5
  605. package/out/_next/static/chunks/0kr4ift9_1a3s.js +0 -1
  606. package/out/_next/static/chunks/0l8tmlevl_6p0.js +0 -1
  607. package/out/_next/static/chunks/0o91usftba97q.js +0 -54
  608. package/out/_next/static/chunks/0oi1kpp0levnm.js +0 -1
  609. package/out/_next/static/chunks/0p86ng98eiz5q.js +0 -11
  610. package/out/_next/static/chunks/0pw1zl8_l93xl.js +0 -5
  611. package/out/_next/static/chunks/0py8-umjmwiwi.js +0 -156
  612. package/out/_next/static/chunks/0q0m2pv-3b2e2.js +0 -4
  613. package/out/_next/static/chunks/0r57e83u39trg.js +0 -5
  614. package/out/_next/static/chunks/0r9a_mcjh1k24.js +0 -6
  615. package/out/_next/static/chunks/0rgtc82y8z7_x.js +0 -5
  616. package/out/_next/static/chunks/0rxhx_x-7dojh.js +0 -182
  617. package/out/_next/static/chunks/0teb3b5h78855.js +0 -44
  618. package/out/_next/static/chunks/0thsuuvsozjop.js +0 -54
  619. package/out/_next/static/chunks/0v6x3uondh5hw.js +0 -5
  620. package/out/_next/static/chunks/0v_uz3j8jolmq.js +0 -4
  621. package/out/_next/static/chunks/0vwmp6qrw7odm.js +0 -7
  622. package/out/_next/static/chunks/0w6t6v_jzrudq.js +0 -4
  623. package/out/_next/static/chunks/0w7gz501ry22r.js +0 -4
  624. package/out/_next/static/chunks/0xgn-89s97a5w.js +0 -1
  625. package/out/_next/static/chunks/0xqtemh7t38y9.js +0 -119
  626. package/out/_next/static/chunks/1-1rj15j67dqt.js +0 -1
  627. package/out/_next/static/chunks/10drou7w-k58p.js +0 -4
  628. package/out/_next/static/chunks/11w7hldkge7sg.js +0 -8
  629. package/out/_next/static/chunks/130c8cta7pec6.js +0 -1
  630. package/out/_next/static/chunks/13qi39a_b6gkv.js +0 -1
  631. package/out/_next/static/chunks/15142badc5ufq.js +0 -4
  632. package/out/_next/static/chunks/155boltbcvwo-.js +0 -63
  633. package/out/_next/static/chunks/15_nwd8p454gd.js +0 -1
  634. package/out/_next/static/chunks/15s4qkdyz56pg.js +0 -115
  635. package/out/_next/static/chunks/15vdx0kewzv-6.js +0 -33
  636. package/out/_next/static/chunks/16shuavdpgni8.js +0 -327
  637. package/out/_next/static/chunks/170j06y4-47o4.js +0 -5
  638. package/out/_next/static/chunks/18a5kibvycb6u.js +0 -1
  639. package/out/_next/static/chunks/1_bckhq06wfmb.js +0 -4
  640. package/out/_next/static/chunks/1_ymf_rfke1aw.js +0 -6
  641. package/out/_next/static/chunks/1a1m389awxw4k.js +0 -1
  642. package/out/_next/static/chunks/1albq_5cppsa1.js +0 -5
  643. package/out/_next/static/chunks/1bhibqf8k2-z1.js +0 -117
  644. package/out/_next/static/chunks/1bxesp6kakz8_.js +0 -353
  645. package/out/_next/static/chunks/1d80ahah359g5.js +0 -174
  646. package/out/_next/static/chunks/1dbjry-rs_5we.js +0 -1
  647. package/out/_next/static/chunks/1dlr1eig6zpl1.js +0 -12
  648. package/out/_next/static/chunks/1gq8ickcg_vmv.js +0 -147
  649. package/out/_next/static/chunks/1gyrsx1nip-lm.js +0 -2
  650. package/out/_next/static/chunks/1hma23kynopdj.js +0 -3
  651. package/out/_next/static/chunks/1i996uxxmc736.js +0 -234
  652. package/out/_next/static/chunks/1ivhp-mi-5l--.js +0 -57
  653. package/out/_next/static/chunks/1ktkks-wpk8q-.js +0 -1
  654. package/out/_next/static/chunks/1kz62r46jwi0y.js +0 -5
  655. package/out/_next/static/chunks/1lex3myb5hmsw.js +0 -1
  656. package/out/_next/static/chunks/1lha1nklxo2g7.js +0 -1
  657. package/out/_next/static/chunks/1mwmcucidjio0.js +0 -8
  658. package/out/_next/static/chunks/1mzejejof4s6g.js +0 -147
  659. package/out/_next/static/chunks/1os6pvhjeb16o.js +0 -1
  660. package/out/_next/static/chunks/1p937fyqa7ssz.js +0 -1
  661. package/out/_next/static/chunks/1po7d3udj6iv4.js +0 -5
  662. package/out/_next/static/chunks/1qxxbcidu-hmv.js +0 -1
  663. package/out/_next/static/chunks/1re4i2t_po4sr.js +0 -95
  664. package/out/_next/static/chunks/1s4oi1bw8zl5d.js +0 -31
  665. package/out/_next/static/chunks/1sb04cqudnfpj.js +0 -4
  666. package/out/_next/static/chunks/1uom050rz5iol.js +0 -272
  667. package/out/_next/static/chunks/1uymuiqrms2h8.js +0 -103
  668. package/out/_next/static/chunks/1wijj_fal57co.js +0 -2
  669. package/out/_next/static/chunks/1wpen9t3_zbte.js +0 -1
  670. package/out/_next/static/chunks/1wpv1sl7vwg04.js +0 -99
  671. package/out/_next/static/chunks/1y3poj860g968.js +0 -24
  672. package/out/_next/static/chunks/1yk0pxcl4urkd.js +0 -4
  673. package/out/_next/static/chunks/1z2rl3h7scna4.js +0 -7
  674. package/out/_next/static/chunks/1zyhq82pkterc.js +0 -61
  675. package/out/_next/static/chunks/2-zr9-ri30va5.css +0 -1
  676. package/out/_next/static/chunks/20j8cdot33hql.js +0 -13
  677. package/out/_next/static/chunks/21fo9zerxyx-l.js +0 -59
  678. package/out/_next/static/chunks/22sxsq82r3cwy.js +0 -41
  679. package/out/_next/static/chunks/23nwkbry8kz0-.js +0 -1
  680. package/out/_next/static/chunks/259ckrmoldaqg.js +0 -5
  681. package/out/_next/static/chunks/25y2dqqrhstuq.js +0 -5
  682. package/out/_next/static/chunks/28myh-gi8t3t7.js +0 -7
  683. package/out/_next/static/chunks/29y82c6-u55hj.js +0 -5
  684. package/out/_next/static/chunks/2ahlen2u4lbnm.js +0 -16
  685. package/out/_next/static/chunks/2c3ehieqiwiw8.js +0 -119
  686. package/out/_next/static/chunks/2c5gq6izeq6nx.js +0 -81
  687. package/out/_next/static/chunks/2cj8g3fxmitaa.js +0 -1
  688. package/out/_next/static/chunks/2d9lzme_uzwvq.js +0 -1
  689. package/out/_next/static/chunks/2dqoft2pp4355.js +0 -1
  690. package/out/_next/static/chunks/2gso7_8v7owco.js +0 -1
  691. package/out/_next/static/chunks/2hc4nowrexhn3.js +0 -100
  692. package/out/_next/static/chunks/2hoi6cb1lromr.js +0 -4
  693. package/out/_next/static/chunks/2hw2_8kkf_2fg.js +0 -1
  694. package/out/_next/static/chunks/2kd4p_esjbozz.js +0 -21
  695. package/out/_next/static/chunks/2lwhn1ypqwukz.js +0 -11
  696. package/out/_next/static/chunks/2oz432iieo_c6.js +0 -43
  697. package/out/_next/static/chunks/2qjnhmz4c5fq1.js +0 -23
  698. package/out/_next/static/chunks/2rdjgc7_za785.js +0 -9
  699. package/out/_next/static/chunks/2ru66cyp0hbxn.js +0 -103
  700. package/out/_next/static/chunks/2ung-az_h871_.js +0 -4
  701. package/out/_next/static/chunks/2v4rvvdyh028e.js +0 -1
  702. package/out/_next/static/chunks/2vsl3-revotpl.js +0 -43
  703. package/out/_next/static/chunks/2wbc_9uwtsjbp.js +0 -15
  704. package/out/_next/static/chunks/2xixk0t9e9mnw.js +0 -1
  705. package/out/_next/static/chunks/2y6i_xssusr93.js +0 -1
  706. package/out/_next/static/chunks/2y_t26eglpeka.js +0 -4
  707. package/out/_next/static/chunks/3-hgyqm9mhcm9.js +0 -33
  708. package/out/_next/static/chunks/364y5vueeinvz.js +0 -276
  709. package/out/_next/static/chunks/366b9y413lk4d.js +0 -33
  710. package/out/_next/static/chunks/36vauyb71ot_b.js +0 -61
  711. package/out/_next/static/chunks/394m309ssmlo3.js +0 -5
  712. package/out/_next/static/chunks/39pveojee3ma1.js +0 -33
  713. package/out/_next/static/chunks/3_--novhq2u1q.js +0 -807
  714. package/out/_next/static/chunks/3apnk6kuvwze8.js +0 -5
  715. package/out/_next/static/chunks/3b0868kyqqkn3.js +0 -5
  716. package/out/_next/static/chunks/3dyd0ilb-ee5w.js +0 -8
  717. package/out/_next/static/chunks/3eftzknnu45-s.js +0 -1
  718. package/out/_next/static/chunks/3ejsx4af27cct.js +0 -7
  719. package/out/_next/static/chunks/3es4yddhl8uwc.js +0 -7
  720. package/out/_next/static/chunks/3inp15oicq85k.js +0 -1
  721. package/out/_next/static/chunks/3kd-t_qz3nxh7.js +0 -30
  722. package/out/_next/static/chunks/3kl8vv7w9jkjr.js +0 -23
  723. package/out/_next/static/chunks/3kmfx3f7oyfdm.js +0 -5
  724. package/out/_next/static/chunks/3koj4-48a7p_9.js +0 -4
  725. package/out/_next/static/chunks/3l7glrtu8ueuo.js +0 -4
  726. package/out/_next/static/chunks/3lgq9oa_2erwo.js +0 -5
  727. package/out/_next/static/chunks/3muxcxam24i5z.js +0 -1
  728. package/out/_next/static/chunks/3nimt7ngr5zv6.js +0 -46
  729. package/out/_next/static/chunks/3pwezwpggrz59.js +0 -74
  730. package/out/_next/static/chunks/3r02t7a7jknrv.js +0 -7
  731. package/out/_next/static/chunks/3s40iuaou1rt4.js +0 -1
  732. package/out/_next/static/chunks/3selzn479n73i.js +0 -16
  733. package/out/_next/static/chunks/3srflqnqdfd60.js +0 -5
  734. package/out/_next/static/chunks/3t57k35xu2eo8.js +0 -5
  735. package/out/_next/static/chunks/3tu90a7do336z.js +0 -12
  736. package/out/_next/static/chunks/3ukgj2jzxf10n.js +0 -5
  737. package/out/_next/static/chunks/3vosu-lpiis6v.js +0 -5
  738. package/out/_next/static/chunks/3xaz8fvw2x6b3.js +0 -5
  739. package/out/_next/static/chunks/3xgjhwzul66dp.js +0 -4
  740. package/out/_next/static/chunks/3zze6y1x00k__.js +0 -165
  741. package/out/_next/static/chunks/40730dyt912zu.js +0 -5
  742. package/out/_next/static/chunks/40f26tfp8txip.js +0 -5
  743. package/out/_next/static/chunks/40kc42ezz2dri.js +0 -1
  744. package/out/_next/static/chunks/41f60q88qcigi.js +0 -39
  745. package/out/_next/static/chunks/41l5iphw-rna3.js +0 -44
  746. package/out/_next/static/chunks/423kk9x5t9_b8.js +0 -5
  747. package/out/_next/static/chunks/42k5e3tr3uyzs.js +0 -54
  748. package/out/_next/static/chunks/4481d7yj7bm2q.js +0 -5
  749. package/out/_next/static/chunks/448is1kpt9eaa.js +0 -39
  750. package/out/_next/static/chunks/44fkzg2e80pqt.js +0 -8
  751. /package/out/_next/static/{BPoacQET3TJr2q9E370Ez → bg3Z_ZBjStiTvJAHlsPDE}/_clientMiddlewareManifest.js +0 -0
  752. /package/out/_next/static/{BPoacQET3TJr2q9E370Ez → bg3Z_ZBjStiTvJAHlsPDE}/_ssgManifest.js +0 -0
@@ -0,0 +1,28 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3326,15845,4216,e=>{"use strict";var t,r,i,n,s,o,a=e.i(91788);function h(e,t){let r=t&&t.cache?t.cache:f,i=t&&t.serializer?t.serializer:c;return(t&&t.strategy?t.strategy:function(e,t){var r,i;let n=1===e.length?l:u;return r=t.cache.create(),i=t.serializer,n.bind(this,e,r,i)})(e,{cache:r,serializer:i})}function l(e,t,r,i){let n=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),s=t.get(n);return void 0===s&&(s=e.call(this,i),t.set(n,s)),s}function u(e,t,r){let i=Array.prototype.slice.call(arguments,3),n=r(i),s=t.get(n);return void 0===s&&(s=e.apply(this,i),t.set(n,s)),s}let c=function(){return JSON.stringify(arguments)};var m=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};let f={create:function(){return new m}},p={variadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,u.bind(this,e,r,i)},monadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,l.bind(this,e,r,i)}};e.s(["Z",0,h,"f",0,p],15845);let g=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,d=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,b=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,y=/^(@+)?(\+|#+)?[rs]?$/g,E=/(\*)(0+)|(#+)(0+)|(0+)/g,H=/^(0+)$/;function T(e){let t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(y,function(e,r,i){return"string"!=typeof i?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===i?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof i?i.length:0)),""}),t}function B(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function I(e){let t=B(e);return t||{}}let S=((t={})[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG",t),P=((r={})[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag",r);function N(e){return!!(e&&"object"==typeof e&&0===e.type)}function A(e){return!!(e&&"object"==typeof e&&1===e.type)}let D=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,L=/([^\t-\r -\/:-@\[-\^`\{-~\x85\xA0-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u1680\u2000-\u200A\u2010-\u2029\u202F-\u203E\u2041-\u2053\u2055-\u205F\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3000-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]*)/g,_={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HT:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["hB","hb","H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},v=RegExp(`^${D.source}*`),R=RegExp(`${D.source}*$`);function F(e,t){return{start:e,end:t}}let M=!!Object.fromEntries,O=!!String.prototype.trimStart,w=!!String.prototype.trimEnd,C=M?Object.fromEntries:function(e){let t={};for(let[r,i]of e)t[r]=i;return t},G=O?function(e){return e.trimStart()}:function(e){return e.replace(v,"")},U=w?function(e){return e.trimEnd()}:function(e){return e.replace(R,"")},x=function(){try{let e=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");if(e.exec("a ")?.[1]==="a")return e}catch{}return L}();var k=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons,this.captureEscapes=!!t.captureEscapes}parse(){if(0!==this.offset())throw Error("parser can only be used once");if(this.message.length>0){let e=this.message.charCodeAt(0);if(35!==e&&39!==e&&60!==e&&123!==e&&125!==e){let e=function(e){if(0===e.length)return null;let t=1,r=1;for(let i=0;i<e.length;){let n=e.charCodeAt(i);switch(n){case 35:case 39:case 60:case 123:case 125:return null}if(10===n)t++,r=1,i++;else if(r++,n>=55296&&n<=56319&&i+1<e.length){let t=e.charCodeAt(i+1);i+=t>=56320&&t<=57343?2:1}else i++}return{offset:e.length,line:t,column:r}}(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,...this.captureEscapes&&{rawValue:this.message},location:F(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let i=[];for(;!this.isEOF();){let n=this.char();if(123===n){let t=this.parseArgument(e,r);if(t.err)return t;i.push(t.val)}else if(125===n&&e>0)break;else if(35===n&&("plural"===t||"selectordinal"===t)){let e=this.clonePosition();this.bump(),i.push({type:7,location:F(e,this.clonePosition())})}else if(60!==n||this.ignoreTag||47!==this.peek())if(60===n&&!this.ignoreTag&&j(this.peek()||0)){let r=this.parseTag(e,t);if(r.err)return r;i.push(r.val)}else{let r=this.parseLiteral(e,t);if(r.err)return r;i.push(r.val)}else if(!r)return this.error(26,F(this.clonePosition(),this.clonePosition()));else break}return{val:i,err:null}}parseTag(e,t){let r=this.clonePosition();this.bump();let i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:0,value:`<${i}/>`,location:F(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(23,F(r,this.clonePosition()));{let n=this.parseMessage(e+1,t,!0);if(n.err)return n;let s=n.val,o=this.clonePosition();if(!this.bumpIf("</"))return this.error(27,F(r,this.clonePosition()));{if(this.isEOF()||!j(this.char()))return this.error(23,F(o,this.clonePosition()));let e=this.clonePosition();return i!==this.parseTagName()?this.error(26,F(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:8,value:i,children:s,location:F(r,this.clonePosition())},err:null}:this.error(23,F(o,this.clonePosition()))}}}parseTagName(){var e;let t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())}parseLiteral(e,t){let r=this.clonePosition(),i="";for(;;){let r=this.tryParseQuote(t);if(r){i+=r;continue}let n=this.tryParseUnquoted(e,t);if(n){i+=n;continue}let s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}return{val:{type:0,value:i,location:F(r,this.clonePosition()),...this.captureEscapes&&{rawValue:this.message.slice(r.offset,this.offset())}},err:null}}tryParseLeftAngleBracket(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(j(e=this.peek()||0)||47===e)?null:(this.bump(),"<")}tryParseQuote(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(39===e)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){let r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,F(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(2,F(r,this.clonePosition()));let i=this.parseIdentifierIfPossible().value;if(!i)return this.error(3,F(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,F(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:i,location:F(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,F(r,this.clonePosition()));return this.parseArgumentOptions(e,t,i,r);default:return this.error(3,F(r,this.clonePosition()))}}parseIdentifierIfPossible(){var e;let t=this.clonePosition(),r=this.offset(),i=(e=this.message,x.lastIndex=r,x.exec(e)[1]??""),n=r+i.length;return this.bumpTo(n),{value:i,location:F(t,this.clonePosition())}}parseArgumentOptions(e,t,r,i){let n=this.clonePosition(),s=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(s){case"":return this.error(4,F(n,o));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();let t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;let i=U(r.val);if(0===i.length)return this.error(6,F(this.clonePosition(),this.clonePosition()));e={style:i,styleLocation:F(t,this.clonePosition())}}let t=this.tryParseArgumentClose(i);if(t.err)return t;let n=F(i,this.clonePosition());if(e&&e.style.startsWith("::")){let t=G(e.style.slice(2));if("number"===s){let i=this.parseNumberSkeletonFromString(t,e.styleLocation);if(i.err)return i;return{val:{type:2,value:r,location:n,style:i.val},err:null}}{let i;if(0===t.length)return this.error(10,n);let o=t;return this.locale&&(o=function(e,t){let r="";for(let i=0;i<e.length;i++){let n=e.charAt(i);if("j"===n){let s=0;for(;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;let o=1+(1&s),a=s<2?1:3+(s>>1),h=function(e){let t,r=e.hourCycle;if(void 0===r&&(r=e.getHourCycles?.()[0]??e.hourCycles?.[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}let i=e.language;return"root"!==i&&(t=e.maximize().region),(_[`${i}-${t}`]||_[t||""]||_[i||""]||_[`${i}-001`]||_["001"])[0].charAt(0)}(t);for(("H"==h||"k"==h)&&(a=0);a-- >0;)r+="a";for(;o-- >0;)r=h+r}else"J"===n?r+="H":r+=n}return r}(t,this.locale)),{val:{type:"date"===s?3:4,value:r,location:n,style:{type:1,pattern:o,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},o.replace(g,e=>{let t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-3];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-3];break;case"a":i.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}}},err:null}}}return{val:{type:"number"===s?2:"date"===s?3:4,value:r,location:n,style:e?.style??null},err:null}}case"plural":case"selectordinal":case"select":{let n=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,F(n,{...n}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),a=0;if("select"!==s&&"offset"===o.value){if(!this.bumpIf(":"))return this.error(13,F(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),a=e.val}let h=this.tryParsePluralOrSelectOptions(e,s,t,o);if(h.err)return h;let l=this.tryParseArgumentClose(i);if(l.err)return l;let u=F(i,this.clonePosition());if("select"===s)return{val:{type:5,value:r,options:C(h.val),location:u},err:null};return{val:{type:6,value:r,options:C(h.val),offset:a,pluralType:"plural"===s?"cardinal":"ordinal",location:u},err:null}}default:return this.error(5,F(n,o))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(1,F(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil("'"))return this.error(11,F(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");let t=e.split(d).filter(e=>e.length>0),r=[];for(let e of t){let t=e.split("/");if(0===t.length)throw Error("Invalid number skeleton");let[i,...n]=t;for(let e of n)if(0===e.length)throw Error("Invalid number skeleton");r.push({stem:i,options:n})}return r}(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){let t={};for(let r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"unit":t.style="unit",t.unit=r.options[0];continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...r.options.reduce((e,t)=>({...e,...I(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((e,t)=>({...e,...I(t)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(E,function(e,r,i,n,s,o){if(r)t.minimumIntegerDigits=i.length;else if(n&&s)throw Error("We currently do not support maximum integer digits");else if(o)throw Error("We currently do not support exact integer digits");return""});continue}if(H.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(b.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(b,function(e,r,i,n,s,o){return"*"===i?t.minimumFractionDigits=r.length:n&&"#"===n[0]?t.maximumFractionDigits=n.length:s&&o?(t.minimumFractionDigits=s.length,t.maximumFractionDigits=s.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});let e=r.options[0];"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...T(e)});continue}if(y.test(r.stem)){t={...t,...T(r.stem)};continue}let e=B(r.stem);e&&(t={...t,...e});let i=function(e){let t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){let r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!H.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);i&&(t={...t,...i})}return t}(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,i){let n=!1,s=[],o=new Set,{value:a,location:h}=i;for(;;){if(0===a.length){let e=this.clonePosition();if("select"!==t&&this.bumpIf("=")){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;h=F(e,this.clonePosition()),a=this.message.slice(e.offset,this.offset())}else break}if(o.has(a))return this.error("select"===t?21:20,h);"other"===a&&(n=!0),this.bumpSpace();let i=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?17:18,F(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,r);if(l.err)return l;let u=this.tryParseArgumentClose(i);if(u.err)return u;s.push([a,{value:l.val,location:F(i,this.clonePosition())}]),o.add(a),this.bumpSpace(),{value:a,location:h}=this.parseIdentifierIfPossible()}return 0===s.length?this.error("select"===t?15:16,F(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(22,F(this.clonePosition(),this.clonePosition())):{val:s,err:null}}tryParseDecimalInteger(e,t){let r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let n=!1,s=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)n=!0,s=10*s+(e-48),this.bump();else break}let o=F(i,this.clonePosition());return n?Number.isSafeInteger(s*=r)?{val:s,err:null}:this.error(t,o):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");let t=this.message.codePointAt(e);if(void 0===t)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){let t=this.offset();if(this.message.slice(t,t+e.length)===e){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var e;!this.isEOF()&&((e=this.char())>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e);)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function j(e){return e>=97&&e<=122||e>=65&&e<=90}function $(e,t={}){let r=new k(e,t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t}).parse();if(r.err){let e=SyntaxError(S[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return t?.captureLocation||function e(t){t.forEach(t=>{if(delete t.location,5===t.type||6===t.type)for(let r in t.options)delete t.options[r].location,e(t.options[r].value);else 2===t.type&&N(t.style)||(3===t.type||4===t.type)&&A(t.style)?delete t.style.location:8===t.type&&e(t.children)})}(r.val),r.val}let V=((i={}).MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API",i);var K=class extends Error{constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},Z=class extends K{constructor(e,t,r,i){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,"INVALID_VALUE",i)}},X=class extends K{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,"INVALID_VALUE",r)}},Y=class extends K{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,"MISSING_VALUE",t)}};function W(e){return"function"==typeof e}function z(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}var J=class e{constructor(t,r=e.defaultLocale,i,n){var s;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(1===t.length)return t[0].value;let r=t.reduce((e,t)=>(e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e),[]);return r.length<=1?r[0]||"":r},this.formatToParts=e=>(function e(t,r,i,n,s,o,a){if(1===t.length&&0===t[0].type)return[{type:0,value:t[0].value}];let h=[];for(let l of t){if(0===l.type){h.push({type:0,value:l.value});continue}if(7===l.type){"number"==typeof o&&h.push({type:0,value:i.getNumberFormat(r).format(o)});continue}let{value:t}=l;if(!(s&&t in s))throw new Y(t,a);let u=s[t];if(1===l.type){u&&"string"!=typeof u&&"number"!=typeof u&&"bigint"!=typeof u||(u="string"==typeof u||"number"==typeof u||"bigint"==typeof u?String(u):""),h.push({type:+("string"!=typeof u),value:u});continue}if(3===l.type){let e="string"==typeof l.style?n.date[l.style]:A(l.style)?l.style.parsedOptions:void 0;h.push({type:0,value:i.getDateTimeFormat(r,e).format(u)});continue}if(4===l.type){let e="string"==typeof l.style?n.time[l.style]:A(l.style)?l.style.parsedOptions:n.time.medium;h.push({type:0,value:i.getDateTimeFormat(r,e).format(u)});continue}if(2===l.type){let e="string"==typeof l.style?n.number[l.style]:N(l.style)?l.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if("bigint"==typeof u){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);u*=BigInt(t)}else u*=t}h.push({type:0,value:i.getNumberFormat(r,e).format(u)});continue}if(8===l.type){let{children:t,value:u}=l,c=s[u];if(!W(c))throw new X(u,"function",a);let m=c(e(t,r,i,n,s,o).map(e=>e.value));Array.isArray(m)||(m=[m]),h.push(...m.map(e=>({type:+("string"!=typeof e),value:e})))}if(5===l.type){let t=u,o=(Object.prototype.hasOwnProperty.call(l.options,t)?l.options[t]:void 0)||l.options.other;if(!o)throw new Z(l.value,u,Object.keys(l.options),a);h.push(...e(o.value,r,i,n,s));continue}if(6===l.type){let t=`=${u}`,o=Object.prototype.hasOwnProperty.call(l.options,t)?l.options[t]:void 0;if(!o){if(!Intl.PluralRules)throw new K(`Intl.PluralRules is not available in this environment.
2
+ Try polyfilling it using "@formatjs/intl-pluralrules"
3
+ `,"MISSING_INTL_API",a);let e="bigint"==typeof u?Number(u):u,t=i.getPluralRules(r,{type:l.pluralType}).select(e-(l.offset||0));o=(Object.prototype.hasOwnProperty.call(l.options,t)?l.options[t]:void 0)||l.options.other}if(!o)throw new Z(l.value,u,Object.keys(l.options),a);let c="bigint"==typeof u?Number(u):u;h.push(...e(o.value,r,i,n,s,c-(l.offset||0)));continue}}return h.length<2?h:h.reduce((e,t)=>{let r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e},[])})(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...r}=n||{};this.ast=e.__parse(t,{...r,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(s=e.formats,i?Object.keys(s).reduce((e,t)=>{var r,n;return e[t]=(r=s[t],(n=i[t])?{...r,...n,...Object.keys(r).reduce((e,t)=>(e[t]={...r[t],...n[t]},e),{})}:r),e},{...s}):s),this.formatters=n&&n.formatters||function(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:h((...e)=>new Intl.NumberFormat(...e),{cache:z(e.number),strategy:p.variadic}),getDateTimeFormat:h((...e)=>new Intl.DateTimeFormat(...e),{cache:z(e.dateTime),strategy:p.variadic}),getPluralRules:h((...e)=>new Intl.PluralRules(...e),{cache:z(e.pluralRules),strategy:p.variadic})}}(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(void 0===Intl.Locale)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}}static{this.__parse=$}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}};let q=((n={}).FORMAT_ERROR="FORMAT_ERROR",n.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",n.INVALID_CONFIG="INVALID_CONFIG",n.MISSING_DATA="MISSING_DATA",n.MISSING_TRANSLATION="MISSING_TRANSLATION",n);var Q=class e extends Error{constructor(t,r,i){let n=i?i instanceof Error?i:Error(String(i)):void 0;super(`[@formatjs/intl Error ${t}] ${r}
4
+ ${n?`
5
+ ${n.message}
6
+ ${n.stack}`:""}`),this.code=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}},ee=class extends Q{constructor(e,t){super("UNSUPPORTED_FORMATTER",e,t)}},et=class extends Q{constructor(e,t){super("INVALID_CONFIG",e,t)}},er=class extends Q{constructor(e,t){super("MISSING_DATA",e,t)}},ei=class extends Q{constructor(e,t,r){super("FORMAT_ERROR",`${e}
7
+ Locale: ${t}
8
+ `,r),this.locale=t}},en=class extends ei{constructor(e,t,r,i){super(`${e}
9
+ MessageID: ${r?.id}
10
+ Default Message: ${r?.defaultMessage}
11
+ Description: ${r?.description}
12
+ `,t,i),this.descriptor=r,this.locale=t}},es=class extends Q{constructor(e,t){super("MISSING_TRANSLATION",`Missing message: "${e.id}" for locale "${t}", using ${e.defaultMessage?`default message (${"string"==typeof e.defaultMessage?e.defaultMessage:e.defaultMessage.map(e=>e.value??JSON.stringify(e)).join()})`:"id"} as fallback.`),this.descriptor=e}};function eo(e,t,r={}){return t.reduce((t,i)=>(i in e?t[i]=e[i]:i in r&&(t[i]=r[i]),t),{})}let ea={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:e=>{},onWarn:e=>{}};function eh(){return{dateTime:{},number:{},message:{},duration:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function el(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}function eu(e,t,r,i){let n,s=e&&e[t];if(s&&(n=s[r]),n)return n;i(new ee(`No ${t} format named: ${r}`))}function ec(e,t){return Object.keys(e).reduce((r,i)=>(r[i]={timeZone:t,...e[i]},r),{})}function em(e,t){return Object.keys({...e,...t}).reduce((r,i)=>(r[i]={...e[i],...t[i]},r),{})}function ef(e,t){if(!t)return e;let r=J.formats;return{...r,...e,date:em(ec(r.date,t),ec(e.date||{},t)),time:em(ec(r.time,t),ec(e.time||{},t))}}let ep=({locale:e,formats:t,messages:r,defaultLocale:i,defaultFormats:n,fallbackOnEmptyString:s,onError:o,timeZone:a,defaultRichTextElements:h},l,u={id:""},c,m)=>{let{id:f,defaultMessage:p}=u;f||function(e,t,r=Error){if(!e)throw new r(t)}(!1,`[@formatjs/intl] An \`id\` must be provided to format a message. You can either:
13
+ 1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)
14
+ or [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR
15
+ 2. Configure your \`eslint\` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)
16
+ to autofix this issue${function(e){let{defaultMessage:t}=e;try{return void 0!==t?`
17
+ Default Message: ${"string"==typeof t?t:JSON.stringify(t)}`:`
18
+ Message Descriptor: ${JSON.stringify(e)}`}catch{return""}}(u)}`);let g=String(f),d=r&&Object.prototype.hasOwnProperty.call(r,g)&&r[g];if(Array.isArray(d)&&1===d.length&&d[0].type===P.literal)return d[0].value;if(c={...h,...c},t=ef(t,a),n=ef(n,a),!d){if(!1===s&&""===d)return d;if((!p||e&&e.toLowerCase()!==i.toLowerCase())&&o(new es(u,e)),p)try{return l.getMessageFormat(p,i,n,m).format(c)}catch(t){return o(new en(`Error formatting default message for: "${g}", rendering default message verbatim`,e,u,t)),"string"==typeof p?p:g}return g}try{return l.getMessageFormat(d,e,t,{formatters:l,...m}).format(c)}catch(t){o(new en(`Error formatting message: "${g}", using ${p?"default message":"id"} as fallback.`,e,u,t))}if(p)try{return l.getMessageFormat(p,i,n,m).format(c)}catch(t){o(new en(`Error formatting the default message for: "${g}", rendering message verbatim`,e,u,t))}return"string"==typeof d?d:"string"==typeof p?p:g},eg=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ed({locale:e,formats:t,onError:r,timeZone:i},n,s,o={}){let{format:a}=o,h=eo(o,eg,{...i&&{timeZone:i},...a&&eu(t,n,a,r)});return"time"!==n||h.hour||h.minute||h.second||h.timeStyle||h.dateStyle||(h={...h,hour:"numeric",minute:"numeric"}),s(e,h)}function eb(e,t,r,i={}){let n="string"==typeof r?new Date(r||0):r;try{return ed(e,"date",t,i).format(n)}catch(t){e.onError(new ei("Error formatting date.",e.locale,t))}return String(n)}function ey(e,t,r,i={}){let n="string"==typeof r?new Date(r||0):r;try{return ed(e,"time",t,i).format(n)}catch(t){e.onError(new ei("Error formatting time.",e.locale,t))}return String(n)}function eE(e,t,r,i,n={}){let s="string"==typeof r?new Date(r||0):r,o="string"==typeof i?new Date(i||0):i;try{return ed(e,"dateTimeRange",t,n).formatRange(s,o)}catch(t){e.onError(new ei("Error formatting date time range.",e.locale,t))}return String(s)}function eH(e,t,r,i={}){let n="string"==typeof r?new Date(r||0):r;try{return ed(e,"date",t,i).formatToParts(n)}catch(t){e.onError(new ei("Error formatting date.",e.locale,t))}return[]}function eT(e,t,r,i={}){let n="string"==typeof r?new Date(r||0):r;try{return ed(e,"time",t,i).formatToParts(n)}catch(t){e.onError(new ei("Error formatting time.",e.locale,t))}return[]}let eB=["style","numberingSystem","years","yearsDisplay","months","monthsDisplay","weeks","weeksDisplay","days","daysDisplay","hours","hoursDisplay","minutes","minutesDisplay","seconds","secondsDisplay","milliseconds","millisecondsDisplay","microseconds","microsecondsDisplay","nanoseconds","nanosecondsDisplay","fractionalDigits"];function eI({locale:e,formats:t,onError:r},i,n){if(!Intl.DurationFormat)return void r(new K('Intl.DurationFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-durationformat"',V.MISSING_INTL_API));let{format:s}=n;return i(e,eo(n,eB,s&&eu(t,"duration",s,r)||{}))}function eS(e,t,r,i={}){try{return eI(e,t,i)?.format(r)??""}catch(t){e.onError(new ei("Error formatting duration.",e.locale,t))}return""}function eP(e,t,r,i={}){try{return eI(e,t,i)?.formatToParts(r)??[]}catch(t){e.onError(new ei("Error formatting duration.",e.locale,t))}return[]}let eN=["style","type","fallback","languageDisplay"];function eA({locale:e,onError:t},r,i,n){Intl.DisplayNames||t(new K(`Intl.DisplayNames is not available in this environment.
19
+ Try polyfilling it using "@formatjs/intl-displaynames"
20
+ `,V.MISSING_INTL_API));let s=eo(n,eN);try{return r(e,s).of(i)}catch(r){t(new ei("Error formatting display name.",e,r))}}let eD=["type","style"],eL=Date.now();function e_(e,t,r,i={}){let n=ev(e,t,r,i).reduce((e,t)=>{let r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[]);return 1===n.length?n[0]:0===n.length?"":n}function ev({locale:e,onError:t},r,i,n={}){Intl.ListFormat||t(new K(`Intl.ListFormat is not available in this environment.
21
+ Try polyfilling it using "@formatjs/intl-listformat"
22
+ `,V.MISSING_INTL_API));let s=eo(n,eD);try{let t={},n=Array.from(i).map((e,r)=>{if("object"==typeof e&&null!==e){let i=`${eL}_${r}_${eL}`;return t[i]=e,i}return String(e)});return r(e,s).formatToParts(n).map(e=>"literal"===e.type?e:{...e,value:t[e.value]||e.value})}catch(r){t(new ei("Error formatting list.",e,r))}return i}let eR=["type"];function eF({locale:e,onError:t},r,i,n={}){Intl.PluralRules||t(new K(`Intl.PluralRules is not available in this environment.
23
+ Try polyfilling it using "@formatjs/intl-pluralrules"
24
+ `,V.MISSING_INTL_API));let s=eo(n,eR);try{return r(e,s).select(i)}catch(r){t(new ei("Error formatting plural.",e,r))}return"other"}let eM=["numeric","style"];function eO(e,t,r,i,n={}){i||(i="second"),Intl.RelativeTimeFormat||e.onError(new K(`Intl.RelativeTimeFormat is not available in this environment.
25
+ Try polyfilling it using "@formatjs/intl-relativetimeformat"
26
+ `,V.MISSING_INTL_API));try{return(function({locale:e,formats:t,onError:r},i,n={}){let{format:s}=n;return i(e,eo(n,eM,!!s&&eu(t,"relative",s,r)||{}))})(e,t,n).format(r,i)}catch(t){e.onError(new ei("Error formatting relative time.",e.locale,t))}return String(r)}let ew=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function eC({locale:e,formats:t,onError:r},i,n={}){let{format:s}=n;return i(e,eo(n,ew,s&&eu(t,"number",s,r)||{}))}function eG(e,t,r,i={}){try{return eC(e,t,i).format(r)}catch(t){e.onError(new ei("Error formatting number.",e.locale,t))}return String(r)}function eU(e,t,r,i={}){try{return eC(e,t,i).formatToParts(r)}catch(t){e.onError(new ei("Error formatting number.",e.locale,t))}return[]}function ex(e,t){var r;let i=function(e=eh()){let t=Intl.RelativeTimeFormat,r=Intl.ListFormat,i=Intl.DisplayNames,n=h((...e)=>new Intl.DateTimeFormat(...e),{cache:el(e.dateTime),strategy:p.variadic}),s=h((...e)=>new Intl.NumberFormat(...e),{cache:el(e.number),strategy:p.variadic}),o=h((...e)=>new Intl.PluralRules(...e),{cache:el(e.pluralRules),strategy:p.variadic});return{getDateTimeFormat:n,getNumberFormat:s,getMessageFormat:h((e,t,r,i)=>new J(e,t,r,{formatters:{getNumberFormat:s,getDateTimeFormat:n,getPluralRules:o},...i}),{cache:el(e.message),strategy:p.variadic}),getDurationFormat:h((...e)=>new Intl.DurationFormat(...e),{cache:el(e.duration),strategy:p.variadic}),getRelativeTimeFormat:h((...e)=>new t(...e),{cache:el(e.relativeTime),strategy:p.variadic}),getPluralRules:o,getListFormat:h((...e)=>new r(...e),{cache:el(e.list),strategy:p.variadic}),getDisplayNames:h((...e)=>new i(...e),{cache:el(e.displayNames),strategy:p.variadic})}}(t),n={...ea,...e},{locale:s,defaultLocale:o,onError:a}=n;return s?!Intl.NumberFormat.supportedLocalesOf(s).length&&a?a(new er(`Missing locale data for locale: "${s}" in Intl.NumberFormat. Using default locale: "${o}" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details`)):!Intl.DateTimeFormat.supportedLocalesOf(s).length&&a&&a(new er(`Missing locale data for locale: "${s}" in Intl.DateTimeFormat. Using default locale: "${o}" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details`)):(a&&a(new et(`"locale" was not configured, using "${o}" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details`)),n.locale=n.defaultLocale||"en"),n.onWarn&&n.defaultRichTextElements&&"string"==typeof(r=n.messages||{})[Object.keys(r)[0]]&&n.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
27
+ Please consider using "@formatjs/cli" to pre-compile your messages for performance.
28
+ For more details see https://formatjs.github.io/docs/getting-started/message-distribution`),{...n,formatters:i,formatNumber:eG.bind(null,n,i.getNumberFormat),formatNumberToParts:eU.bind(null,n,i.getNumberFormat),formatDuration:eS.bind(null,n,i.getDurationFormat),formatDurationToParts:eP.bind(null,n,i.getDurationFormat),formatRelativeTime:eO.bind(null,n,i.getRelativeTimeFormat),formatDate:eb.bind(null,n,i.getDateTimeFormat),formatDateToParts:eH.bind(null,n,i.getDateTimeFormat),formatTime:ey.bind(null,n,i.getDateTimeFormat),formatDateTimeRange:eE.bind(null,n,i.getDateTimeFormat),formatTimeToParts:eT.bind(null,n,i.getDateTimeFormat),formatPlural:eF.bind(null,n,i.getPluralRules),formatMessage:ep.bind(null,n,i),$t:ep.bind(null,n,i),formatList:e_.bind(null,n,i.getListFormat),formatListToParts:ev.bind(null,n,i.getListFormat),formatDisplayName:eA.bind(null,n,i.getDisplayNames)}}e.s(["e",0,ea,"T",0,Q,"p",0,q,"V",0,et,"X",0,en,"C",0,er,"t",0,es,"G",0,ee,"b",0,ex,"D",0,eh,"U",0,function(e,t){return e},"x",0,ep],4216);var ek=e.i(91398);function ej(e,t,r=Error){if(!e)throw new r(t)}function e$(e){ej(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}let eV={...ea,textComponent:a.Fragment},eK=e=>a.Children.toArray(e).map((e,t)=>a.isValidElement(e)?(0,ek.jsx)(a.Fragment,{children:e},t):e);function eZ(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),i=Object.keys(t),n=r.length;if(i.length!==n)return!1;for(var s=0;s<n;s++){var o=r[s];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}let eX=a.createContext(null),eY=eX.Provider;function eW(){let e=a.useContext(eX);return e$(e),e}var ez=((s=ez||{}).formatDate="FormattedDate",s.formatTime="FormattedTime",s.formatNumber="FormattedNumber",s.formatList="FormattedList",s.formatDuration="FormattedDuration",s.formatDisplayName="FormattedDisplayName",s),eJ=((o=eJ||{}).formatDate="FormattedDateParts",o.formatTime="FormattedTimeParts",o.formatNumber="FormattedNumberParts",o.formatList="FormattedListParts",o);let eq=e=>{let t=eW(),{value:r,children:i,...n}=e;return i(t.formatNumberToParts(r,n))};eq.displayName="FormattedNumberParts";let eQ=e=>{let t=eW(),{value:r,children:i,...n}=e;return i(t.formatDurationToParts(r,n))};eQ.displayName="FormattedDurationParts";let e0=e=>{let t=eW(),{value:r,children:i,...n}=e;return i(t.formatListToParts(r,n))};function e1(e){let t=t=>{let r=eW(),{value:i,children:n,...s}=t,o="string"==typeof i?new Date(i||0):i;return n("formatDate"===e?r.formatDateToParts(o,s):r.formatTimeToParts(o,s))};return t.displayName=eJ[e],t}function e2(e){let t=t=>{let r=eW(),{value:i,children:n,...s}=t,o=r[e](i,s);if("function"==typeof n)return n(o);let h=r.textComponent||a.Fragment;return(0,ek.jsx)(h,{children:o})};return t.displayName=ez[e],t}function e3(e){return e?Object.keys(e).reduce((t,r)=>{let i=e[r];return t[r]=W(i)?function(e){return i(eK(e))}:i,t},{}):e}e0.displayName="FormattedListParts";let e5=(e,t,r,i,...n)=>{let s=ep(e,t,r,e3(i),...n);return Array.isArray(s)?eK(s):s},e6=({defaultRichTextElements:e,...t},r)=>{let i=e3(e),n=ex({...eV,...t,defaultRichTextElements:i},r),s={locale:n.locale,timeZone:n.timeZone,fallbackOnEmptyString:n.fallbackOnEmptyString,formats:n.formats,defaultLocale:n.defaultLocale,defaultFormats:n.defaultFormats,messages:n.messages,onError:n.onError,defaultRichTextElements:i};return{...n,formatMessage:e5.bind(null,s,n.formatters),$t:e5.bind(null,s,n.formatters)}},e4=e=>{let t=eW(),{from:r,to:i,children:n,...s}=e,o=t.formatDateTimeRange(r,i,s);if("function"==typeof n)return n(o);let h=t.textComponent||a.Fragment;return(0,ek.jsx)(h,{children:o})};function e8(e){let{formatMessage:t,textComponent:r=a.Fragment}=eW(),{id:i,description:n,defaultMessage:s,values:o,children:h,tagName:l=r,ignoreTag:u}=e,c=t({id:i,description:n,defaultMessage:s},o,{ignoreTag:u});return"function"==typeof h?h(Array.isArray(c)?c:[c]):l?(0,ek.jsx)(l,{children:c}):(0,ek.jsx)(ek.Fragment,{children:c})}e4.displayName="FormattedDateTimeRange",e8.displayName="FormattedMessage";let e9=a.memo(e8,function(e,t){let{values:r,...i}=e,{values:n,...s}=t;return eZ(n,r)&&eZ(i,s)});e9.displayName="MemoizedFormattedMessage";let e7=e=>{let{formatPlural:t,textComponent:r}=eW(),{value:i,other:n,children:s}=e,o=e[t(i,e)]||n;return"function"==typeof s?s(o):r?(0,ek.jsx)(r,{children:o}):o};function te(e){var t;let r=a.useRef(eh()),i=a.useRef(void 0),n=a.useRef(void 0),s={};for(let t in e)void 0!==e[t]&&(s[t]=e[t]);let o={locale:(t={...eV,...s}).locale,timeZone:t.timeZone,fallbackOnEmptyString:t.fallbackOnEmptyString,formats:t.formats,textComponent:t.textComponent,messages:t.messages,defaultLocale:t.defaultLocale,defaultFormats:t.defaultFormats,onError:t.onError,onWarn:t.onWarn,wrapRichTextChunksInFragment:t.wrapRichTextChunksInFragment,defaultRichTextElements:t.defaultRichTextElements};return i.current&&eZ(i.current,o)||(i.current=o,n.current=e6(o,r.current)),e$(n.current),(0,ek.jsx)(eY,{value:n.current,children:e.children})}function tt(e){let t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":"day"}function tr(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return 3600;default:return 86400}}e7.displayName="FormattedPlural",te.displayName="IntlProvider";let ti=["second","minute","hour"];function tn(e="second"){return ti.indexOf(e)>-1}let ts=e=>{let{formatRelativeTime:t,textComponent:r}=eW(),{children:i,value:n,unit:s,...o}=e,a=t(n||0,s,o);return"function"==typeof i?i(a):r?(0,ek.jsx)(r,{children:a}):(0,ek.jsx)(ek.Fragment,{children:a})},to=({value:e=0,unit:t="second",updateIntervalInSeconds:r,...i})=>{ej(!r||!!(r&&tn(t)),"Cannot schedule update with unit longer than hour");let[n,s]=a.useState(),[o,h]=a.useState(0),[l,u]=a.useState(0),c=a.useRef(void 0);(t!==n||e!==o)&&(h(e||0),s(t),u(tn(t)?function(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return 3600*e}}(e,t):0)),a.useEffect(()=>{function e(){clearTimeout(c.current)}if(e(),!r||!tn(t))return e;let i=l-r,n=tt(i);if("day"===n)return e;let s=tr(n),o=i-i%s,a=o>=l?o-s:o,h=Math.abs(a-l);return l!==a&&(c.current=setTimeout(()=>u(a),1e3*h)),e},[l,r,t]);let m=e||0,f=t;if(tn(t)&&"number"==typeof l&&r){let e=tr(f=tt(l));m=Math.round(l/e)}return(0,ek.jsx)(ts,{value:m,unit:f,...i})};to.displayName="FormattedRelativeTime";let ta=e2("formatDate"),th=e2("formatTime"),tl=e2("formatNumber"),tu=e2("formatDuration"),tc=e2("formatList"),tm=e2("formatDisplayName"),tf=e1("formatDate"),tp=e1("formatTime");e.s(["Q",0,ta,"i",0,tf,"T",0,e4,"U",0,tm,"C",0,tu,"K",0,eQ,"W",0,tc,"S",0,e0,"L",0,e9,"Z",0,tl,"D",0,eq,"d",0,e7,"c",0,to,"H",0,th,"B",0,tp,"N",0,eX,"R",0,te,"P",0,eY,"b",0,e6,"V",0,function(e,t){return e},"X",0,eW],3326)}]);
@@ -0,0 +1,5 @@
1
+ __turbopack_load_page_chunks__("/country/new", [
2
+ "static/chunks/1s3ool53utm9o.js",
3
+ "static/chunks/3eth7s2-06yuz.js",
4
+ "static/chunks/turbopack-077hmtqrhcoji.js"
5
+ ])
@@ -0,0 +1,57 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,85741,(e,t,s)=>{let i="/products";(window.__NEXT_P=window.__NEXT_P||[]).push([i,()=>e.r(22e3)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([i])})},75155,e=>{"use strict";var t=e.i(91398),s=e.i(3326),i=e.i(42469);let a={DRAFT:"yellow",ACTIVE:"emerald",DELETED:"amber",null:"yellow",undefined:"yellow"};e.s(["f",0,({status:e})=>{let{formatMessage:r}=(0,s.X)();return r({id:"pending",defaultMessage:"PENDING"}),r({id:"confirmed",defaultMessage:"CONFIRMED"}),r({id:"open",defaultMessage:"OPEN"}),r({id:"fulfilled",defaultMessage:"FULFILLED"}),r({id:"rejected",defaultMessage:"REJECTED"}),(0,t.jsx)(i.f,{text:(e=>{switch(e){case"ACTIVE":return r({id:"active",defaultMessage:"Active"});case"DRAFT":default:return r({id:"draft",defaultMessage:"Draft"});case"DELETED":return r({id:"deleted",defaultMessage:"Deleted"})}})(e),color:a[e]||"yellow",square:!0,dotted:!0})}])},92615,e=>{"use strict";var t=e.i(59080),s=e.i(32171);let i=t.a`
2
+ query ProductsCount(
3
+ $queryString: String
4
+ $tags: [LowerCaseString!]
5
+ $slugs: [String!]
6
+ $includeDrafts: Boolean
7
+ ) {
8
+ productsCount(
9
+ tags: $tags
10
+ slugs: $slugs
11
+ includeDrafts: $includeDrafts
12
+ queryString: $queryString
13
+ )
14
+ }
15
+ `;e.s(["f",0,({queryString:e="",tags:t=null,includeDrafts:a=!0})=>{let{data:r,loading:l,error:d}=(0,s.f)(i,{errorPolicy:"all",variables:{queryString:e,includeDrafts:a,tags:t}});return{productsCount:r?.productsCount,loading:l,error:d}}])},22e3,e=>{"use strict";var t=e.i(91398),s=e.i(3326);e.i(51523);var i=e.i(19518),a=e.i(3828),r=e.i(50595),l=e.i(70553),d=e.i(25327),o=e.i(6634),n=e.i(60193),u=e.i(53576),c=e.i(78704),p=e.i(8918),f=e.i(71800),g=e.i(97224),m=e.i(24112),h=e.i(59080),x=e.i(76204);let v=h.a`
16
+ mutation BulkSetProductStatus($productIds: [ID!]!, $status: ProductStatus!) {
17
+ bulkSetProductStatus(productIds: $productIds, status: $status) {
18
+ successCount
19
+ failedCount
20
+ failedIds
21
+ }
22
+ }
23
+ `,_=h.a`
24
+ mutation BulkUpdateProductTags(
25
+ $productIds: [ID!]!
26
+ $add: [LowerCaseString!]
27
+ $remove: [LowerCaseString!]
28
+ ) {
29
+ bulkUpdateProductTags(productIds: $productIds, add: $add, remove: $remove) {
30
+ successCount
31
+ failedCount
32
+ failedIds
33
+ }
34
+ }
35
+ `,y=h.a`
36
+ mutation BulkRemoveProducts($productIds: [ID!]!) {
37
+ bulkRemoveProducts(productIds: $productIds) {
38
+ successCount
39
+ failedCount
40
+ failedIds
41
+ }
42
+ }
43
+ `,b=h.a`
44
+ mutation BulkAssignProductsToAssortment(
45
+ $productIds: [ID!]!
46
+ $assortmentId: ID!
47
+ ) {
48
+ bulkAssignProductsToAssortment(
49
+ productIds: $productIds
50
+ assortmentId: $assortmentId
51
+ ) {
52
+ successCount
53
+ failedCount
54
+ failedIds
55
+ }
56
+ }
57
+ `,C=["Products","ProductsCount","ShopStatus","ShopInfo"];var w=e.i(70050),I=e.i(71977),M=e.i(58971),k=e.i(41158),j=e.i(42469),S=e.i(77043),P=e.i(3095),N=e.i(1880),T=e.i(6607),D=e.i(15971),E=e.i(41418),q=e.i(88604),V=e.i(75155);let $=({product:e,showAvatar:r=!1,hideSortIndex:l=!1,isSelected:d=!1,onToggleSelect:o,showCheckbox:n=!1})=>{let{formatMessage:u}=(0,s.X)(),c=(0,a.useRouter)(),{hasRole:f}=(0,M.f)(),{setModal:g}=(0,T.f)(),{updateProduct:m}=(0,E.f)(),{removeProduct:h}=(0,q.f)(),x=async t=>{t.target.value&&await m({productId:e?._id,product:{sequence:parseInt(t.target.value,10)}})},v=async()=>{await g((0,t.jsx)(D.f,{onCancelClick:async()=>g(""),message:u({id:"delete_product_warning",defaultMessage:"This action will permanently delete this product and all associated data. Are you sure you want to continue?"}),onOkClick:async()=>{g(""),await h({productId:e._id})},okText:u({id:"delete_product",defaultMessage:"Delete Product"})}))},_=`/products?slug=${(0,N.U)(e)}`,y=(0,t.jsx)("span",{className:"text-xs mt-1 px-2 py-0.5 bg-surface-raised text-text-secondary rounded w-fit",children:(e.__typename||e.type||"SimpleProduct").replace("Product","")||"Simple"});return(0,t.jsxs)(p.f.Row,{className:"group",children:[n&&(0,t.jsx)(p.f.Cell,{children:(0,t.jsx)("input",{type:"checkbox",checked:d,onChange:o,className:"h-4 w-4 rounded border-slate-300 text-slate-800 focus:ring-slate-800 cursor-pointer",onClick:e=>e.stopPropagation()})}),(0,t.jsx)(p.f.Cell,{children:e?.status!=="DELETED"?(0,t.jsxs)(k.default,{href:_,className:"flex items-center text-sm text-text-primary group-hover:text-slate-700 dark:group-hover:text-slate-100",children:[r&&(0,t.jsx)(S.f,{file:e?.media?.length&&e.media[0].file,className:"mr-3"}),(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("div",{className:"flex items-center gap-2",children:e?.texts?.title||(0,t.jsxs)(t.Fragment,{children:[e._id," ",(0,t.jsx)(j.f,{color:"yellow",text:u({id:"title_not_found",defaultMessage:"Title not found"})})]})})})]}):(0,t.jsxs)("div",{className:"flex items-center text-sm text-slate-900",children:[r&&(0,t.jsx)(S.f,{file:e?.media?.length&&e.media[0].file,className:"mr-3"}),(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("div",{className:"flex items-center gap-2",children:e?.texts?.title||(0,t.jsxs)(t.Fragment,{children:[e._id," ",(0,t.jsx)(j.f,{color:"yellow",text:u({id:"title_not_found",defaultMessage:"Title not found"})})]})})})]})}),(0,t.jsx)(p.f.Cell,{className:"whitespace-nowrap px-6",children:y}),(0,t.jsx)(p.f.Cell,{className:"whitespace-nowrap px-6",children:e?.status!=="DELETED"?(0,t.jsx)(k.default,{href:_,className:"block",children:(0,t.jsx)(V.f,{status:e?.status})}):(0,t.jsx)(V.f,{status:e?.status})}),(0,t.jsx)(p.f.Cell,{children:e?.status!=="DELETED"?(0,t.jsx)(k.default,{href:_,className:"block",children:(0,t.jsx)("div",{className:"flex max-w-xs flex-wrap gap-2",children:e.tags?.map(e=>(0,t.jsx)(j.f,{text:e,color:"slate"},e))})}):(0,t.jsx)("div",{className:"flex max-w-xs flex-wrap gap-2",children:e.tags?.map(e=>(0,t.jsx)(j.f,{text:e,color:"slate"},e))})}),l?null:(0,t.jsx)(p.f.Cell,{children:(0,t.jsx)("input",{type:"number",id:`${e?._id}-sequence`,className:"text-center w-16 shadow-xs focus:ring-focus-ring dark:bg-slate-800 dark:border-slate-700 focus:border-slate-900 block text-sm border-slate-300 rounded-md mr-2 font-semibold text-text-primary",defaultValue:e?.sequence,disabled:!f(i.C.ManageProducts),onBlur:x,onClick:e=>e.stopPropagation(),onFocus:e=>e.stopPropagation()})}),(0,t.jsx)(p.f.Cell,{className:"text-right",children:(0,t.jsx)(P.f,{onEdit:e?.status!=="DELETED"?()=>{e?.status!=="DELETED"&&c.push(`/products?slug=${(0,N.U)(e)}`)}:void 0,onDelete:f(i.C.ManageProducts)&&e?.status==="DRAFT"?v:void 0,showEdit:e?.status!=="DELETED",showDelete:f(i.C.ManageProducts)&&e?.status==="DRAFT"&&!e?.proxies?.length})})]})};var R=e.i(57561),A=e.i(70316);let O=({showAvatar:e=!0,queryString:a,limit:r,offset:l,tags:d,sortKeys:o,includeDrafts:n,sortable:h,availableTagOptions:k=[]})=>{let{formatMessage:j}=(0,s.X)(),{selectedLocale:S}=(0,R.f)(),{hasRole:P}=(0,M.f)(),{products:N,loading:T,loadMore:D,hasMore:E}=(0,m.f)({queryString:a,includeDrafts:n,limit:r,offset:l,tags:d,sort:o,forceLocale:S}),q=N?.map(e=>e._id)||[],{selectedIds:V,selectedCount:O,allSelected:U,toggle:L,selectAll:F,clearAll:B,isSelected:X,toggleAll:z}=(0,w.f)(q),{bulkSetProductStatus:W,bulkUpdateProductTags:G,bulkRemoveProducts:K}=(()=>{let[e]=(0,x.f)(v),[t]=(0,x.f)(_),[s]=(0,x.f)(y),[i]=(0,x.f)(b);return{bulkSetProductStatus:(t,s)=>e({variables:{productIds:t,status:s},refetchQueries:C,awaitRefetchQueries:!0}),bulkUpdateProductTags:(e,s,i)=>t({variables:{productIds:e,add:s,remove:i},refetchQueries:C,awaitRefetchQueries:!0}),bulkRemoveProducts:e=>s({variables:{productIds:e},refetchQueries:C,awaitRefetchQueries:!0}),bulkAssignProductsToAssortment:(e,t)=>i({variables:{productIds:e,assortmentId:t},refetchQueries:C,awaitRefetchQueries:!0})}})(),Q=(0,I.f)(),Z=(0,A.f)(),J=P(i.C.BulkSetProductStatus),H=P(i.C.BulkUpdateProductTags),Y=P(i.C.BulkRemoveProducts),ee=[...J?[{key:"set-active",label:j({id:"bulk_set_active",defaultMessage:"Set Active"}),onAction:e=>Q(()=>W(e,i.X.Active),"bulkSetProductStatus")},{key:"set-draft",label:j({id:"bulk_set_draft",defaultMessage:"Set Draft"}),onAction:e=>Q(()=>W(e,i.X.Draft),"bulkSetProductStatus")}]:[],...H?[{key:"update-tags",label:j({id:"bulk_update_tags",defaultMessage:"Update Tags"}),renderForm:({onSubmit:e,onCancel:s,loading:i})=>(0,t.jsx)(g.f,{onSubmit:e,onCancel:s,loading:i,availableTagOptions:k}),onAction:(e,t)=>{let{add:s,remove:i}=t||{};return Q(()=>G(e,s,i),"bulkUpdateProductTags")}}]:[],...Y?[{key:"delete",label:j({id:"bulk_delete",defaultMessage:"Delete"}),variant:"danger",onAction:e=>Z({message:j({id:"bulk_delete_products_warning",defaultMessage:"This will permanently delete {count} products. Are you sure?"},{count:e.length}),okText:j({id:"delete_products",defaultMessage:"Delete Products"}),onConfirm:()=>Q(()=>K(e),"bulkRemoveProducts")})}]:[]],et=ee.length>0;return T&&N?.length===0?(0,t.jsx)(u.f,{variant:"list"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f.f,{selectedCount:O,selectedIds:V,onClear:B,onSelectionChange:F,actions:ee}),(0,t.jsx)(c.f,{loading:T,hasMore:E,onLoadMore:D,children:(0,t.jsxs)(p.f,{className:"min-w-full ",children:[N?.map(e=>(0,t.jsxs)(p.f.Row,{header:!0,enablesort:h,children:[et&&(0,t.jsx)(p.f.Cell,{children:(0,t.jsx)("input",{type:"checkbox",checked:U,onChange:z,className:"h-4 w-4 rounded border-slate-300 text-slate-800 focus:ring-slate-800 cursor-pointer",onClick:e=>e.stopPropagation()})}),(0,t.jsx)(p.f.Cell,{children:j({id:"name",defaultMessage:"Name"})}),(0,t.jsx)(p.f.Cell,{sortKey:"type",children:j({id:"type",defaultMessage:"Type"})}),(0,t.jsx)(p.f.Cell,{sortKey:"status",children:j({id:"status",defaultMessage:"Status"})}),(0,t.jsx)(p.f.Cell,{children:j({id:"tags",defaultMessage:"Tags"})}),(0,t.jsx)(p.f.Cell,{sortKey:"sequence",defaultSortDirection:"ASC",children:j({id:"sequence",defaultMessage:"Display Order"})}),(0,t.jsx)(p.f.Cell,{children:" "})]},e._id)),N?.map(s=>(0,t.jsx)($,{product:s,showAvatar:e,isSelected:X(s._id),onToggleSelect:()=>L(s._id),showCheckbox:et},`${s?._id}-body`))]})})]})};var U=e.i(83147),L=e.i(51128),F=e.i(92615),B=e.i(30311),X=e.i(11056),z=e.i(25093),W=e.i(91788),G=e.i(21623),K=e.i(60513);let Q=["_id","sku","baseUnit","sequence","status","tags","updated","published","type"],Z=["title","subtitle","description","vendor","brand","labels","slug"],J=["productId","amount","currencyCode","countryCode","isTaxable","isNetPrice","minQuantity"],H=["productId","bundleItemProductId","quantity","configuration"],Y=["productId","variationId","key","type"],ee=["title","subtitle"],et=["variationId","value"],es=["title","subtitle"];var ei=e.i(75284);let ea=({queryString:e,includeDrafts:i,tags:a})=>{let{setModal:r}=(0,T.f)(),{productsCount:l,loading:d}=(0,F.f)({queryString:e,includeDrafts:i,tags:a}),{exportProducts:o,isExporting:n}=(()=>{let{exportCSV:e,isExporting:t}=(0,K.f)();return{exportProducts:(0,W.useCallback)(async t=>{await e({type:"PRODUCTS",...t})},[e]),isExporting:t}})(),{formatMessage:u}=(0,s.X)(),c=[{key:"exportProducts",label:u({id:"products",defaultMessage:"Products"})},{key:"exportPrices",label:u({id:"prices",defaultMessage:"Prices"})},{key:"exportBundleItems",label:u({id:"bundle_items",defaultMessage:"Bundle items"})},{key:"exportVariations",label:u({id:"variations",defaultMessage:"Variations"})},{key:"exportVariationOptions",label:u({id:"variation_options",defaultMessage:"Variation options"})}],p=(0,W.useCallback)(async t=>{await o({queryString:e,includeDrafts:i,tags:a,...t}),r(null)},[e,i,a,o,r]);return d?null:(0,t.jsx)(G.f,{onClick:()=>{r((0,t.jsx)(ei.f,{options:c,onSubmit:p,loading:n}))},disabled:n||!l,variant:"secondary",text:u(n?{id:"exporting",defaultMessage:"Exporting..."}:{id:"export",defaultMessage:"Export"})})};var er=e.i(78193),el=e.i(22003),ed=e.i(10878);let eo=e=>{let t={};return Object.entries(e).forEach(([e,s])=>{if(!e.startsWith("texts."))return;let[,i,a]=e.split(".");t[i]||={},"labels"===a?t[i][a]=s?s.split(";"):[]:t[i][a]=s||""}),t},en=({productsCSV:e,pricesCSV:t,bundleItemsCSV:s,variationOptionsCSV:a,variationsCSV:r},l)=>{let d=[];for(let t of e)Object.values(ed.f).includes(t?.type)||d.push(l.formatMessage({id:"product_import.validation.invalid_type",defaultMessage:"Invalid product type: {type}"},{type:t.type})),t.sequence||d.push(l.formatMessage({id:"product_import_sequence_required",defaultMessage:"Required field sequence missing"})),t.status&&![i.X.Active,i.X.Draft,i.X.Deleted].includes(t.status)&&d.push(l.formatMessage({id:"product_import_status_invalid",defaultMessage:"Invalid status value given ({status})"},{status:t.status}));for(let e of t)e.productId||d.push(l.formatMessage({id:"product_price_import_product_id_required",defaultMessage:"Required field productId missing"})),e.amount||d.push(l.formatMessage({id:"product_price_import_amount_required",defaultMessage:"Required field amount missing"})),e.countryCode||d.push(l.formatMessage({id:"product_price_import_countryCode_required",defaultMessage:"Required field countryCode missing"})),e.currencyCode||d.push(l.formatMessage({id:"product_price_import_currencyCode_required",defaultMessage:"Required field currencyCode missing"}));for(let e of s)e.productId||d.push(l.formatMessage({id:"product_bundle_import_product_id_required",defaultMessage:"Required field variation productId missing"})),e.bundleItemProductId||d.push(l.formatMessage({id:"product_bundle_import_item_id_required",defaultMessage:"Required field bundleItemProductId missing"}));for(let e of r)e.productId||d.push(l.formatMessage({id:"product_variation_import_product_id_required",defaultMessage:"Required field variation productId missing"})),e.variationId||d.push(l.formatMessage({id:"product_variation_import_variation_id_required",defaultMessage:"Required field variationId missing"})),e.type||d.push(l.formatMessage({id:"product_variation_import_type_required",defaultMessage:"Required field variation type missing"})),e.type&&![i.k.Color,i.k.Text].includes(e.type)&&d.push(l.formatMessage({id:"product_variation_import_invalid_type_required",defaultMessage:"Invalid variation type given ({type})"},{type:e.type}));for(let e of a)e.variationId||d.push(l.formatMessage({id:"product_variation_option_import_variation_id_required",defaultMessage:"Required field variation id missing"})),e.value||d.push(l.formatMessage({id:"product_variation_option_import_value_required",defaultMessage:"Required field variation option value missing"}));return d};var eu=e.i(42912),ec=e.i(72552),ep=e.i(16785);let ef={productsCSV:Q,pricesCSV:J,bundleItemsCSV:H,variationOptionsCSV:et,variationsCSV:Y},eg=({onImport:e})=>{let i=(0,W.useRef)({}),{formatMessage:a}=(0,s.X)(),{languageDialectList:r}=(0,R.f)(),l=r?.map(e=>e.isoCode)||[],[d,o]=(0,W.useState)({}),[n,u]=(0,W.useState)({productsCSV:[],pricesCSV:[],bundleItemsCSV:[],variationsCSV:[],variationOptionsCSV:[]}),[c,p]=(0,W.useState)(!1),f=[{key:"productsCSV",label:a({id:"product_csv_file",defaultMessage:"Products CSV"})},{key:"pricesCSV",label:a({id:"product_price_csv_file",defaultMessage:"Product prices CSV (Optional)"}),optional:!0},{key:"bundleItemsCSV",label:a({id:"product_bundle_item_csv_file",defaultMessage:"Product bundle items CSV (Optional)"}),optional:!0},{key:"variationsCSV",label:a({id:"product_variations_csv_file",defaultMessage:"Product variations CSV (Optional)"}),optional:!0},{key:"variationOptionsCSV",label:a({id:"product_variation_options_csv_file",defaultMessage:"Product variation options CSV (Optional)"}),optional:!0}],g=async e=>{let t=await e.text();return ec.default.parse(t,{header:!0,skipEmptyLines:!0}).data},m=async(e,t)=>{if(!t)return;let s=await g(t),i=((e,t)=>{if(!t.length)return!1;let s=Object.keys(t[0]),i=ef[e].filter(e=>!s.includes(e));return i.length?(o(t=>({...t,[e]:a({id:"csv_missing_fields",defaultMessage:"Missing required columns: {fields}"},{fields:i.join(", ")})})),!1):(o(t=>({...t,[e]:void 0})),!0)})(e,s);u(t=>({...t,[e]:i?s:[]}))},h=async(e,t)=>{let s=e.target.files?.[0];await m(t,s),e.target.value=""},x=(0,W.useCallback)(async()=>{p(!0);try{await e(n)}finally{p(!1)}},[n,e]),v=n.productsCSV.length>0,_=Object.values(d).some(Boolean);return(0,t.jsxs)("div",{className:"sm:max-w-full w-full max-w-xl mx-auto p-6 bg-white border border-gray-200 rounded-lg shadow-md flex flex-col gap-6",children:[(0,t.jsx)("h3",{className:"text-center text-lg font-semibold",children:a({id:"products_import_title",defaultMessage:"Import Products"})}),(0,t.jsx)("p",{className:"text-center text-sm text-gray-600",children:a({id:"product_import_description",defaultMessage:"Select your products CSV and optional CSV files, then click Import."})}),f.map(({key:e,label:s,optional:r})=>(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("input",{ref:t=>{i.current[e]=t??null},type:"file",accept:".csv",onChange:t=>h(t,e),className:"hidden"}),(0,t.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,t.jsx)(G.f,{text:n[e].length?a({id:`${e}_file_selected`,defaultMessage:`${s} Selected`}):a({id:`select_${e}`,defaultMessage:`Select ${s}`}),onClick:()=>i.current[e]?.click(),variant:"secondary",className:"flex-1",disabled:c||!v&&r}),(0,t.jsx)("button",{type:"button",className:"text-xs text-blue-600 hover:underline",title:"Download a CSV template with required columns",onClick:()=>((e,t,s=[])=>{let i=((e,t=[])=>{if("productsCSV"===e)return[...Q,...t.flatMap(e=>Z.map(t=>`texts.${e}.${t}`)),"supply.weightInGram","supply.heightInMillimeters","supply.lengthInMillimeters","supply.widthInMillimeters"];if("bundleItemsCSV"===e)return[...H];if("pricesCSV"===e)return[...J];if("variationsCSV"===e)return[...Y,...t.flatMap(e=>ee.map(t=>`texts.${e}.${t}`))];if("variationOptionsCSV"===e)return[...et,...t.flatMap(e=>es.map(t=>`texts.${e}.${t}`))];return[]})(e,s).join(",");(0,ep.f)(i,t)})(e,`${e}_template.csv`,l),children:a({id:"download_csv_template",defaultMessage:"Download template"})})]}),d[e]&&(0,t.jsxs)("p",{className:"text-red-600 text-xs flex items-center gap-1",children:["⚠ ",d[e]]})]},e)),(0,t.jsx)(G.f,{text:c?"Importing…":"Import",onClick:x,disabled:c||!v||_,variant:"primary",className:"w-full flex justify-center items-center gap-2",children:c&&(0,t.jsx)("span",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"})}),v&&!_&&(0,t.jsx)("p",{className:"text-center text-xs text-gray-500",children:a({id:"ready_to_import",defaultMessage:"Ready to import {products} products{prices}{bundleItems}{variations}{variationOptions}."},{products:n.productsCSV.length,prices:n.pricesCSV.length?` with ${n.pricesCSV.length} prices`:"",bundleItems:n.bundleItemsCSV.length?` with ${n.bundleItemsCSV.length} bundle items`:"",variations:n.variationsCSV.length?` with ${n.variationsCSV.length} variations`:"",variationOptions:n.variationOptionsCSV.length?` with ${n.variationOptionsCSV.length} variation options`:""})})]})};var em=e.i(28401);let eh=()=>{let{formatMessage:e}=(0,s.X)(),{hasRole:a}=(0,M.f)(),{setModal:r}=(0,T.f)(),{prepareProductImport:l}={prepareProductImport:async({productsCSV:e,pricesCSV:t,bundleItemsCSV:s,variationsCSV:i,variationOptionsCSV:a})=>(e||[]).map(e=>{let r,l,d,o,n,u,c,p=(t||[]).filter(t=>t.productId===e._id),f=(s||[]).filter(t=>t.productId===e._id),g=(i||[]).filter(t=>t.productId===e._id);return p.length&&(r=p.map(({amount:e,minQuantity:t,isNetPrice:s,isTaxable:i,...a})=>({...a,amount:parseInt(e)??0,isNetPrice:"true"===s,isTaxable:"true"===i,minQuantity:parseInt(t,10)||0}))),f.length&&(l=f.map(({bundleItemProductId:e,quantity:t,configuration:s})=>({productId:e,quantity:Number(t||1),configuration:(s||"").split(";").map(e=>{let[t,s]=e.split(":");return{key:t,value:s}})}))),g.length&&(d=g.map(({variationId:e,type:t,key:s,configuration:i,...r})=>({variationId:e,key:s,type:t,content:eo(r),options:(a||[]).filter(t=>t.variationId===e).map(e=>({value:e?.value??"",content:eo(e)}))}))),(({variations:e=[],...t})=>{let s=new Date;return{entity:"PRODUCT",operation:"CREATE",payload:{_id:t._id,specification:{...t,published:"ACTIVE"===t.status?s:null,status:"ACTIVE"===t.status?"ACTIVE":null,warehousing:{sku:t.sku,baseUnit:t.baseUnit},commerce:t.commerce?{pricing:t.commerce}:void 0,bundleItems:t?.bundleItems},variations:e?.length?e:void 0}}})({...(o=e["supply.weightInGram"]||e["supply.heightInMillimeters"]||e["supply.lengthInMillimeters"]||e["supply.widthInMillimeters"],n=e.sku||e.baseUnit,u=eo(e),c=(0,el.f)(e.meta),{_id:e._id||void 0,warehousing:n?{sku:e.sku||void 0,baseUnit:e.baseUnit||void 0}:void 0,sequence:"string"==typeof e.sequence?parseInt(e.sequence||"0",10):e.sequence||0,status:e.status||null,type:e.type,tags:e.tags?e.tags.split(";"):[],updated:e.updated||void 0,published:e.published||void 0,content:u,supply:o?{weightInGram:e["supply.weightInGram"]?parseFloat(e["supply.weightInGram"])??void 0:void 0,heightInMillimeters:e["supply.heightInMillimeters"]?parseFloat(e["supply.heightInMillimeters"])??void 0:void 0,lengthInMillimeters:e["supply.lengthInMillimeters"]?parseFloat(e["supply.lengthInMillimeters"])??void 0:void 0,widthInMillimeters:e["supply.widthInMillimeters"]?parseFloat(e["supply.widthInMillimeters"])??void 0:void 0}:void 0,meta:c}),commerce:r,bundleItems:l,variations:d})})},{isImporting:d,importItems:o}=(0,er.f)({validate:en,process:l});return a(i.C.ManageProducts)?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(G.f,{onClick:()=>{r((0,t.jsx)(eg,{onImport:async e=>{let s=await o(e);r(null),(0,em.toast)((0,t.jsx)(eu.f,{result:s,entityName:"products"}))}}))},disabled:d,variant:"secondary",text:e(d?{id:"importing",defaultMessage:"Importing..."}:{id:"import",defaultMessage:"Import"})})}):null};e.s(["default",0,()=>{let{formatMessage:e}=(0,s.X)(),{shopInfo:u}=(0,R.f)(),{query:c,push:p}=(0,a.useRouter)(),f=parseInt(c?.limit,10)||n.h,g=parseInt(c?.skip,10)||0,m=c?.includeDrafts==="true"||!c?.includeDrafts,h=c.tags?.split(",")||void 0,x=c.sort||"",{hasRole:v}=(0,M.f)(),{queryString:_,slug:y,...b}=c,C=(0,U.R)(x),{productsCount:w}=(0,F.f)({queryString:_,includeDrafts:m,tags:h});if(y)return(0,t.jsx)(B.default,{slug:y});let I=1===w?e({id:"products_header",defaultMessage:"1 Product"}):e({id:"products_count_header",defaultMessage:"{count} Products"},{count:(0,t.jsx)(z.f,{value:w??0})}),k=(u?.adminUiConfig?.productTags||[]).map(e=>({value:e,label:e}));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.f,{}),(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)(d.f,{title:e({id:"product_page_title",defaultMessage:"{count, plural, one {# Product} other {# Products}}"},{count:w}),headerText:I,addPath:v(i.C.ManageProducts)&&"/products/new",addButtonText:e({id:"add_product",defaultMessage:"Add Product"}),children:[(0,t.jsx)(ea,{includeDrafts:m,queryString:_,tags:h}),(0,t.jsx)(eh,{})]})}),(0,t.jsxs)("div",{className:"min-w-full overflow-x-auto px-1",children:[(0,t.jsx)(l.f,{children:(0,t.jsx)(o.f,{toggleText:e({id:"include_drafts",defaultMessage:"Include drafts"}),toggleKey:"includeDrafts",active:m})}),(0,t.jsx)(L.f,{onSearchChange:e=>{let{skip:t,...s}=b;e?p({query:(0,U._)(s,e,"queryString")}):p({query:(0,U._)(b)})},defaultSearchValue:_,showTagFilter:!0,availableTagOptions:k,children:(0,t.jsx)(X.f,{onlyFull:!0,children:(0,t.jsx)(O,{sortable:!0,availableTagOptions:k,queryString:_,includeDrafts:m,limit:f,offset:g,tags:h,sortKeys:C})})})]})]})}],22e3)},31004,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...i},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},i),e?t.createElement("title",{id:s},e):null,t.createElement("path",{d:"M7 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM14.5 9a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM1.615 16.428a1.224 1.224 0 0 1-.569-1.175 6.002 6.002 0 0 1 11.908 0c.058.467-.172.92-.57 1.174A9.953 9.953 0 0 1 7 18a9.953 9.953 0 0 1-5.385-1.572ZM14.5 16h-.106c.07-.297.088-.611.048-.933a7.47 7.47 0 0 0-1.588-3.755 4.502 4.502 0 0 1 5.874 2.636.818.818 0 0 1-.36.98A7.465 7.465 0 0 1 14.5 16Z"}))});e.s(["f",0,s],31004)},57748,e=>{"use strict";var t=e.i(69059);e.s(["f",()=>t.f])},56417,27028,e=>{"use strict";var t=e.i(43944);e.s(["f",()=>t.f],56417);var s=e.i(82798);e.s(["f",()=>s.f],27028)},5270,e=>{"use strict";var t=e.i(91788);let s=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},a=(0,t.createContext)({}),r=(0,t.forwardRef)(({color:e,size:r,width:l,height:d,strokeWidth:o,absoluteStrokeWidth:n,nonScalingStroke:u,className:c="",children:p,iconNode:f=[],icon:g={node:f,aliases:[],size:24},...m},h)=>{let{size:x=24,strokeWidth:v=2,absoluteStrokeWidth:_=!1,nonScalingStroke:y=!1,color:b="currentColor",className:C=""}=(0,t.useContext)(a)??{},w=!!p||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(m),[I,M,k=[]]=function(e,t={}){return function(e,t={}){let a=t.attributeNames??{},r=e=>a[e]??e,l=e.size??e.width??i.width,d=e.size??e.height??i.height,o=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],n=[...e.name?[`lucide-${e.name}`]:[],...o],u=t.className?.split(" ").filter(Boolean)??[],c=!1===t.includeDefaultClasses?s(...u):s("lucide",...n,...u),p=t.absoluteStrokeWidth?Number(t.strokeWidth??i["stroke-width"])*Number(e.size??e.width??i.width)/Number(t.size??t.width??i.width):t.strokeWidth??i["stroke-width"];return["svg",{...Object.entries(i).reduce((e,[t,s])=>(e[r(t)]=s,e),{}),..."color"in t&&t.color&&{[r("stroke")]:t.color},..."size"in t&&null!=t.size&&{[r("width")]:t.size,[r("height")]:t.size},..."width"in t&&null!=t.width&&{[r("width")]:t.width},..."height"in t&&null!=t.height&&{[r("height")]:t.height},[r("stroke-width")]:p,...c&&{[r("class")]:c},[r("viewBox")]:`0 0 ${l} ${d}`,...!1===t.hasA11yProp?{[r("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[s,i,a]=e,l=t.nonScalingStroke?{[r("vector-effect")]:"non-scaling-stroke",...i}:i;return a?[s,l,a]:[s,l]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(g,{color:e??b,width:l??r??x,height:d??r??x,strokeWidth:o??v,absoluteStrokeWidth:n??_,nonScalingStroke:u??y,className:s(C,c),hasA11yProp:w,attributes:m});return(0,t.createElement)(I,{ref:h,...M},[...k.map(([e,s])=>(0,t.createElement)(e,s)),...Array.isArray(p)?p:[p]])});e.s(["f",0,function(e,s=[],i=[]){let a,l="string"==typeof e?function(e,t,s=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...s.length>0?{aliases:s}:{}}}(e,s,i):e,d=(0,t.forwardRef)(({className:e,...s},i)=>(0,t.createElement)(r,{ref:i,icon:l,className:e,...s}));return l.name&&(d.displayName=(a=(e=>{let t="",s=!1;for(let i of e){if("-"===i||"_"===i||i<=" "){s=t.length>0;continue}0===t.length?t+=i.toLowerCase():t+=s?i.toUpperCase():i,s=!1}return t})(l.name)).charAt(0).toUpperCase()+a.slice(1)),d}],5270)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,51523,19518,e=>{"use strict";var t,r,i,n,o,s,a,u,l,c,d,f,v=((t={}).Pickup="PICKUP",t.Shipping="SHIPPING",t),h=((r={}).Active="ACTIVE",r.Initial="INITIAL",r.Paused="PAUSED",r.Suspended="SUSPENDED",r.Terminated="TERMINATED",r),p=((i={}).MultiChoice="MULTI_CHOICE",i.Range="RANGE",i.SingleChoice="SINGLE_CHOICE",i.Switch="SWITCH",i),y=((n={}).Generic="GENERIC",n.Invoice="INVOICE",n),w=((o={}).Active="ACTIVE",o.Deleted="DELETED",o.Draft="DRAFT",o),m=((s={}).BundleProduct="BUNDLE_PRODUCT",s.ConfigurableProduct="CONFIGURABLE_PRODUCT",s.PlanProduct="PLAN_PRODUCT",s.SimpleProduct="SIMPLE_PRODUCT",s.TokenizedProduct="TOKENIZED_PRODUCT",s),g=((a={}).Color="COLOR",a.Text="TEXT",a),b=((u={}).AddCartQuotation="addCartQuotation",u.AnswerQuotation="answerQuotation",u.BookmarkProduct="bookmarkProduct",u.BulkAssignProductsToAssortment="bulkAssignProductsToAssortment",u.BulkImport="bulkImport",u.BulkRemoveAssortments="bulkRemoveAssortments",u.BulkRemoveFilters="bulkRemoveFilters",u.BulkRemoveProducts="bulkRemoveProducts",u.BulkRemoveUsers="bulkRemoveUsers",u.BulkSetAssortmentActive="bulkSetAssortmentActive",u.BulkSetFilterActive="bulkSetFilterActive",u.BulkSetProductStatus="bulkSetProductStatus",u.BulkSetUserRoles="bulkSetUserRoles",u.BulkUpdateAssortmentTags="bulkUpdateAssortmentTags",u.BulkUpdateProductTags="bulkUpdateProductTags",u.BulkUpdateUserTags="bulkUpdateUserTags",u.ChangePassword="changePassword",u.CheckoutCart="checkoutCart",u.ConfirmMediaUpload="confirmMediaUpload",u.CreateBookmark="createBookmark",u.CreateCart="createCart",u.CreateEnrollment="createEnrollment",u.CreateUser="createUser",u.DownloadFile="downloadFile",u.EnrollUser="enrollUser",u.ForgotPassword="forgotPassword",u.Heartbeat="heartbeat",u.Impersonate="impersonate",u.LoginAsGuest="loginAsGuest",u.LoginWithPassword="loginWithPassword",u.LoginWithWebAuthn="loginWithWebAuthn",u.Logout="logout",u.LogoutAllSessions="logoutAllSessions",u.ManageAssortments="manageAssortments",u.ManageBookmarks="manageBookmarks",u.ManageCountries="manageCountries",u.ManageCurrencies="manageCurrencies",u.ManageDeliveryProviders="manageDeliveryProviders",u.ManageEnrollments="manageEnrollments",u.ManageFilters="manageFilters",u.ManageLanguages="manageLanguages",u.ManagePaymentCredentials="managePaymentCredentials",u.ManagePaymentProviders="managePaymentProviders",u.ManagePrivilegedUsers="managePrivilegedUsers",u.ManageProductReviews="manageProductReviews",u.ManageProducts="manageProducts",u.ManageQuotations="manageQuotations",u.ManageUsers="manageUsers",u.ManageWarehousingProviders="manageWarehousingProviders",u.ManageWorker="manageWorker",u.MarkOrderConfirmed="markOrderConfirmed",u.MarkOrderDelivered="markOrderDelivered",u.MarkOrderPaid="markOrderPaid",u.MarkOrderRejected="markOrderRejected",u.PageView="pageView",u.RegisterPaymentCredentials="registerPaymentCredentials",u.RemoveUser="removeUser",u.RequestQuotation="requestQuotation",u.ResetPassword="resetPassword",u.ReviewProduct="reviewProduct",u.Search="search",u.SendEmail="sendEmail",u.StopImpersonation="stopImpersonation",u.UpdateCart="updateCart",u.UpdateEnrollment="updateEnrollment",u.UpdateOrder="updateOrder",u.UpdateOrderDelivery="updateOrderDelivery",u.UpdateOrderDiscount="updateOrderDiscount",u.UpdateOrderItem="updateOrderItem",u.UpdateOrderPayment="updateOrderPayment",u.UpdateProductReview="updateProductReview",u.UpdateToken="updateToken",u.UpdateUser="updateUser",u.UpdateUserMeta="updateUserMeta",u.UpdateUsername="updateUsername",u.UploadTempFile="uploadTempFile",u.UploadUserAvatar="uploadUserAvatar",u.UseWebAuthn="useWebAuthn",u.VerifyEmail="verifyEmail",u.ViewAssortment="viewAssortment",u.ViewAssortments="viewAssortments",u.ViewCountries="viewCountries",u.ViewCountry="viewCountry",u.ViewCurrencies="viewCurrencies",u.ViewCurrency="viewCurrency",u.ViewDeliveryInterfaces="viewDeliveryInterfaces",u.ViewDeliveryProvider="viewDeliveryProvider",u.ViewDeliveryProviders="viewDeliveryProviders",u.ViewEnrollment="viewEnrollment",u.ViewEnrollments="viewEnrollments",u.ViewEvent="viewEvent",u.ViewEvents="viewEvents",u.ViewFilter="viewFilter",u.ViewFilters="viewFilters",u.ViewLanguage="viewLanguage",u.ViewLanguages="viewLanguages",u.ViewLogs="viewLogs",u.ViewOrder="viewOrder",u.ViewOrders="viewOrders",u.ViewPaymentInterfaces="viewPaymentInterfaces",u.ViewPaymentProvider="viewPaymentProvider",u.ViewPaymentProviders="viewPaymentProviders",u.ViewProduct="viewProduct",u.ViewProducts="viewProducts",u.ViewQuotation="viewQuotation",u.ViewQuotations="viewQuotations",u.ViewShopInfo="viewShopInfo",u.ViewStatistics="viewStatistics",u.ViewToken="viewToken",u.ViewTokens="viewTokens",u.ViewTranslations="viewTranslations",u.ViewUser="viewUser",u.ViewUserContactInfos="viewUserContactInfos",u.ViewUserCount="viewUserCount",u.ViewUserEnrollments="viewUserEnrollments",u.ViewUserOrders="viewUserOrders",u.ViewUserPrivateInfos="viewUserPrivateInfos",u.ViewUserProductReviews="viewUserProductReviews",u.ViewUserPublicInfos="viewUserPublicInfos",u.ViewUserQuotations="viewUserQuotations",u.ViewUserRoles="viewUserRoles",u.ViewUserTokens="viewUserTokens",u.ViewUsers="viewUsers",u.ViewWarehousingInterfaces="viewWarehousingInterfaces",u.ViewWarehousingProvider="viewWarehousingProvider",u.ViewWarehousingProviders="viewWarehousingProviders",u.ViewWork="viewWork",u.ViewWorkQueue="viewWorkQueue",u.VoteProductReview="voteProductReview",u),P=((l={}).Asc="ASC",l.Desc="DESC",l),E=((c={}).Physical="PHYSICAL",c.Virtual="VIRTUAL",c),U=((d={}).Allocated="ALLOCATED",d.Deleted="DELETED",d.Failed="FAILED",d.New="NEW",d.Success="SUCCESS",d),T=((f={}).Budgetsms="BUDGETSMS",f.Bulkgate="BULKGATE",f.BulkExport="BULK_EXPORT",f.BulkImport="BULK_IMPORT",f.Email="EMAIL",f.EnrollmentOrderGenerator="ENROLLMENT_ORDER_GENERATOR",f.ErrorNotifications="ERROR_NOTIFICATIONS",f.ExportToken="EXPORT_TOKEN",f.External="EXTERNAL",f.GcGuests="GC_GUESTS",f.Heartbeat="HEARTBEAT",f.HttpRequest="HTTP_REQUEST",f.InvalidateCarts="INVALIDATE_CARTS",f.Message="MESSAGE",f.Push="PUSH",f.RefreshTokens="REFRESH_TOKENS",f.Twilio="TWILIO",f.Unknown="UNKNOWN",f.UpdateCoinbaseRates="UPDATE_COINBASE_RATES",f.UpdateEcbRates="UPDATE_ECB_RATES",f.UpdateTokenOwnership="UPDATE_TOKEN_OWNERSHIP",f.ZombieKiller="ZOMBIE_KILLER",f);e.s(["F",()=>v,"h",()=>h,"J",()=>p,"R",()=>y,"X",()=>w,"f",()=>m,"k",()=>g,"C",()=>b,"A",()=>P,"_",()=>E,"i",()=>U,"j",()=>T],19518),e.s([],51523)},76810,e=>{"use strict";var t,r;(r=t||(t={}))[r.loading=1]="loading",r[r.setVariables=2]="setVariables",r[r.fetchMore=3]="fetchMore",r[r.refetch=4]="refetch",r[r.poll=6]="poll",r[r.ready=7]="ready",r[r.error=8]="error",r[r.streaming=9]="streaming",e.s(["f",0,t])},1151,e=>{"use strict";let t=Symbol.for("apollo.skipToken");e.s(["f",0,t])},28775,e=>{"use strict";var t=e.i(24669),r=e.i(91788);e.s(["f",0,function(e,i){let n=r.useRef(void 0);return n.current&&(0,t.f)(n.current.deps,i)||(n.current={value:e(),deps:i}),n.current.value}])},97046,e=>{"use strict";var t=e.i(91788);let r=Symbol.for("apollo.hook.wrappers");var i=e.i(21805);e.s(["f",0,function(e,n,o){let s=[o.queryManager,e.startsWith("use")?t.useContext((0,i.f)()):void 0],a=n;for(let t of s){let i=t?.[r]?.[e];i&&(a=i(a))}return a}],97046)},32171,e=>{"use strict";var t=e.i(24669),r=e.i(91788),i=e.i(18018),n=e.i(32106),o=e.i(76810),s=e.i(91584),a=e.i(30928),u=e.i(15953),l=e.i(1151),c=e.i(28775),d=e.i(97046),f=e.i(98926),v=e.i(32854);let h=Symbol(),p=function(e,...[t]){return(0,d.f)("useQuery",y,(0,f.f)("object"==typeof t?t.client:void 0))(e,t)};function y(e,o={}){var s,d,m,g,b,P,E,U;let T,A=(0,f.f)("object"==typeof o?o.client:void 0),{ssr:k}="object"==typeof o?o:{},I=(s=e,d=o,m=A.defaultOptions.watchQuery,(0,c.f)(()=>{if(d===l.f){let e={...(0,a.f)(m,{query:s,fetchPolicy:"standby"}),[u.N]:!0};return e[w]=!0,e}let e=(0,a.f)(m,{...d,query:s});return d.skip&&(e.initialFetchPolicy=d.initialFetchPolicy||d.fetchPolicy,e.fetchPolicy="standby"),e},[s,d,m]));function S(t){let r=A.watchQuery(I);return{client:A,query:e,observable:r,resultData:{current:r.getCurrentResult(),previousData:t?.resultData.current.data,variables:r.variables}}}let[C,_]=r.useState(S);(A!==C.client||e!==C.query)&&_(C=S(C));let{observable:O,resultData:R}=C;g=I,b=O,g.fetchPolicy||(g.fetchPolicy=b.options.initialFetchPolicy),function(e,r,i){if(r[h]&&!(0,t.f)(r[h],i)){var n,o;r[h][w]&&!i.initialFetchPolicy&&(i.initialFetchPolicy=i.fetchPolicy),(n=r[h],o=i,n.query===o.query&&(0,t.f)(n.variables,o.variables)&&(n.fetchPolicy===o.fetchPolicy||"standby"!==o.fetchPolicy&&"standby"!==n.fetchPolicy))?r.applyOptions(i):r.reobserve(i);let s=r.getCurrentResult();(0,t.f)(s.data,e.current.data)||(e.previousData=e.current.data||e.previousData),e.current=s,e.variables=r.variables}r[h]=i}(R,O,I);let V=(P=O,E=R,U=k,T=P.options.fetchPolicy,(0,v.f)(r.useCallback(e=>{let r=P.pipe((0,n.f)(i.f)).subscribe(r=>{let i=E.current;(0,t.f)(i,r)&&(0,t.f)(E.variables,P.variables)||(E.variables=P.variables,i.data&&!(0,t.f)(i.data,r.data)&&(E.previousData=i.data),E.current=r,e())});return()=>{setTimeout(()=>r.unsubscribe())}},[P,E]),()=>E.current,()=>"standby"!==T&&!1===U||"no-cache"===T?p.ssrDisabledResult:E.current)),D=r.useMemo(()=>({refetch:O.refetch.bind(O),fetchMore:O.fetchMore.bind(O),updateQuery:O.updateQuery.bind(O),startPolling:O.startPolling.bind(O),stopPolling:O.stopPolling.bind(O),subscribeToMore:O.subscribeToMore.bind(O)}),[O]),M=R.previousData;return r.useMemo(()=>{let{partial:e,...t}=V;return{...t,client:A,observable:O,variables:O.variables,previousData:M,...D}},[V,A,O,M,D])}let w=Symbol();p.ssrDisabledResult=(0,s.f)({loading:!0,data:void 0,dataState:"empty",error:void 0,networkStatus:o.f.loading,partial:!0}),e.s(["f",0,p])},32854,e=>{"use strict";var t=e.i(91788),r=e.i(29520),i=e.i(21953),n=e.i(22420),o=e.i(93532);let s=!1,a=t.useSyncExternalStore,u="ReactNative"==(0,n.f)(()=>navigator.product),l=(0,n.f)(()=>navigator.userAgent.indexOf("jsdom")>=0)||!1,c=(i.f||u)&&!l,d=a||((e,i,n)=>{let a=i();r.f&&!s&&a!==i()&&(s=!0,o.k.error(36));let[{inst:u},l]=t.useState({inst:{value:a,getSnapshot:i}});return c?t.useLayoutEffect(()=>{Object.assign(u,{value:a,getSnapshot:i}),f(u)&&l({inst:u})},[e,a,i]):Object.assign(u,{value:a,getSnapshot:i}),t.useEffect(()=>(f(u)&&l({inst:u}),e(function(){f(u)&&l({inst:u})})),[e]),a});function f({value:e,getSnapshot:t}){try{return e!==t()}catch{return!0}}e.s(["f",0,d])},91584,66930,15953,e=>{"use strict";var t=e.i(29520);function r(e){return null!==e&&"object"==typeof e}e.s(["f",0,r],66930),e.s(["f",0,function(e){let i;return t.f&&(i=new Set([e])).forEach(e=>{r(e)&&function(e){if(t.f&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(t=>{r(e[t])&&i.add(e[t])})}),e}],91584);let i=Symbol.for("apollo.result.extensions"),n=Symbol.for("apollo.result.streamInfo"),o=Symbol.for("apollo.observableQuery.variablesUnknown"),s=Symbol.for("apollo.cache.handleIncremental");e.s(["K",0,i,"q",0,s,"j",0,n,"N",0,o],15953)},61340,57070,72572,e=>{"use strict";var t=e.i(89280),r=e.i(49363);function i(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}e.s(["f",0,i],57070);var n=i(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function o(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}e.s(["f",0,o],72572);var s=function(){var e;function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,i,o,s,a,l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=(0,t._)(l),d=c.next();!d.done;d=c.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(e)throw e.error}}else l.remove(this);var f=this.initialTeardown;if((0,r.f)(f))try{f()}catch(e){a=e instanceof n?e.errors:[e]}var v=this._finalizers;if(v){this._finalizers=null;try{for(var h=(0,t._)(v),p=h.next();!p.done;p=h.next()){var y=p.value;try{u(y)}catch(e){a=null!=a?a:[],e instanceof n?a=(0,t.p)((0,t.p)([],(0,t.J)(a)),(0,t.J)(e.errors)):a.push(e)}}}catch(e){o={error:e}}finally{try{p&&!p.done&&(s=h.return)&&s.call(h)}finally{if(o)throw o.error}}}if(a)throw new n(a)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)u(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&o(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&o(t,e),e instanceof i&&e._removeParent(this)},(e=new i).closed=!0,i.EMPTY=e,i}(),a=s.EMPTY;function u(e){(0,r.f)(e)?e():e.unsubscribe()}e.s(["N",0,a,"l",0,s,"E",0,function(e){return e instanceof s||e&&"closed"in e&&(0,r.f)(e.remove)&&(0,r.f)(e.add)&&(0,r.f)(e.unsubscribe)}],61340)},99657,80406,33229,58365,13616,e=>{"use strict";var t=e.i(89280),r=e.i(49363),i=e.i(61340),n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};e.s(["f",0,n],80406);var o={setTimeout:function(e,r){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var s=o.delegate;return(null==s?void 0:s.setTimeout)?s.setTimeout.apply(s,(0,t.p)([e,r],(0,t.J)(i))):setTimeout.apply(void 0,(0,t.p)([e,r],(0,t.J)(i)))},clearTimeout:function(e){var t=o.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function s(e){o.setTimeout(function(){var t=n.onUnhandledError;if(t)t(e);else throw e})}function a(){}e.s(["f",0,s],33229);var u=l("C",void 0,void 0);function l(e,t,r){return{kind:e,value:t,error:r}}var c=null;function d(e){n.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=e)}e.s(["a",0,d,"N",0,function(e){if(n.useDeprecatedSynchronousErrorHandling){var t=!c;if(t&&(c={errorThrown:!1,error:null}),e(),t){var r=c,i=r.errorThrown,o=r.error;if(c=null,i)throw o}}else e()}],58365);var f=function(e){function r(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,i.E)(t)&&t.add(r)):r.destination=g,r}return(0,t.w)(r,e),r.create=function(e,t,r){return new y(e,t,r)},r.prototype.next=function(e){this.isStopped?m(l("N",e,void 0),this):this._next(e)},r.prototype.error=function(e){this.isStopped?m(l("E",void 0,e),this):(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped?m(u,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(i.l),v=Function.prototype.bind;function h(e,t){return v.call(e,t)}var p=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){w(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){w(e)}else w(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){w(e)}},e}(),y=function(e){function i(t,i,o){var s,a,u=e.call(this)||this;return(0,r.f)(t)||!t?s={next:null!=t?t:void 0,error:null!=i?i:void 0,complete:null!=o?o:void 0}:u&&n.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return u.unsubscribe()},s={next:t.next&&h(t.next,a),error:t.error&&h(t.error,a),complete:t.complete&&h(t.complete,a)}):s=t,u.destination=new p(s),u}return(0,t.w)(i,e),i}(f);function w(e){n.useDeprecatedSynchronousErrorHandling?d(e):s(e)}function m(e,t){var r=n.onStoppedNotification;r&&o.setTimeout(function(){return r(e,t)})}var g={closed:!0,next:a,error:function(e){throw e},complete:a};e.s(["N",0,y,"P",0,f],13616);var b=function(e){function r(t,r,i,n,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=n?function(e){try{n(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=i?function(){try{i()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,t.w)(r,e),r.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},r}(f);e.s(["f",0,function(e,t,r,i,n){return new b(e,t,r,i,n)}],99657)},32106,e=>{"use strict";var t=e.i(95065),r=e.i(81288),i=e.i(99657);e.s(["f",0,function(e,n){return void 0===n&&(n=0),(0,r.f)(function(r,o){r.subscribe((0,i.f)(o,function(r){return(0,t.f)(o,e,function(){return o.next(r)},n)},function(){return(0,t.f)(o,e,function(){return o.complete()},n)},function(r){return(0,t.f)(o,e,function(){return o.error(r)},n)}))})}])},42410,e=>{"use strict";var t,r=e.i(89280),i=e.i(87268),n=1,o={};function s(e){return e in o&&(delete o[e],!0)}var a=function(e){var r=n++;return o[r]=!0,t||(t=Promise.resolve()),t.then(function(){return s(r)&&e()}),r},u=function(e){s(e)},l={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=l.delegate;return((null==i?void 0:i.setImmediate)||a).apply(void 0,(0,r.p)([],(0,r.J)(e)))},clearImmediate:function(e){var t=l.delegate;return((null==t?void 0:t.clearImmediate)||u)(e)},delegate:void 0},c=function(e){function t(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return(0,r.w)(t,e),t.prototype.requestAsyncId=function(t,r,i){return(void 0===i&&(i=0),null!==i&&i>0)?e.prototype.requestAsyncId.call(this,t,r,i):(t.actions.push(this),t._scheduled||(t._scheduled=l.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,i){if(void 0===i&&(i=0),null!=i?i>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,i);var n,o=t.actions;null!=r&&(null==(n=o[o.length-1])?void 0:n.id)!==r&&(l.clearImmediate(r),t._scheduled===r&&(t._scheduled=void 0))},t}(i.f);e.s(["f",0,c],42410)},87268,e=>{"use strict";var t=e.i(89280),r=function(e){function r(t,r){return e.call(this)||this}return(0,t.w)(r,e),r.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},r}(e.i(61340).l),i={setInterval:function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var s=i.delegate;return(null==s?void 0:s.setInterval)?s.setInterval.apply(s,(0,t.p)([e,r],(0,t.J)(n))):setInterval.apply(void 0,(0,t.p)([e,r],(0,t.J)(n)))},clearInterval:function(e){var t=i.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},n=e.i(72572),o=function(e){function r(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.pending=!1,i}return(0,t.w)(r,e),r.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,t)),this.pending=!0,this.delay=t,this.id=null!=(r=this.id)?r:this.requestAsyncId(n,this.id,t),this},r.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),i.setInterval(e.flush.bind(e,this),r)},r.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&i.clearInterval(t)},r.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},r.prototype._execute=function(e,t){var r,i=!1;try{this.work(e)}catch(e){i=!0,r=e||Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r},r.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,i=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,n.f)(i,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},r}(r);e.s(["f",0,o],87268)},12884,e=>{"use strict";var t=e.i(89280),r=e.i(68827),i=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=r.f.now,e}(),n=function(e){function r(t,r){void 0===r&&(r=i.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return(0,t.w)(r,e),r.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift())if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},r}(i);e.s(["f",0,n],12884)},18018,e=>{"use strict";var t=e.i(42410),r=e.i(89280),i=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.w)(t,e),t.prototype.flush=function(e){this._active=!0;var t,r=this._scheduled;this._scheduled=void 0;var i=this.actions;e=e||i.shift();do if(t=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===r&&i.shift())if(this._active=!1,t){for(;(e=i[0])&&e.id===r&&i.shift();)e.unsubscribe();throw t}},t}(e.i(12884).f))(t.f);e.s(["f",0,i],18018)},68827,e=>{"use strict";var t={now:function(){return(t.delegate||Date).now()},delegate:void 0};e.s(["f",0,t])},95065,e=>{"use strict";e.s(["f",0,function(e,t,r,i,n){void 0===i&&(i=0),void 0===n&&(n=!1);var o=t.schedule(function(){r(),n?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(o),!n)return o}])},49363,e=>{"use strict";e.s(["f",0,function(e){return"function"==typeof e}])},81288,e=>{"use strict";var t=e.i(49363);e.s(["f",0,function(e){return function(r){if((0,t.f)(null==r?void 0:r.lift))return r.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}])}]);
@@ -0,0 +1,5 @@
1
+ __turbopack_load_page_chunks__("/assortments/new", [
2
+ "static/chunks/20au-bdji0nu2.js",
3
+ "static/chunks/3eth7s2-06yuz.js",
4
+ "static/chunks/turbopack-077hmtqrhcoji.js"
5
+ ])
@@ -0,0 +1,2 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21805,e=>{"use strict";var t=e.i(91788),i=e.i(93532);let n=Symbol.for("__APOLLO_CONTEXT__");e.s(["f",0,function(){(0,i.k)("createContext"in t,39);let e=t.createContext[n];return e||(Object.defineProperty(t.createContext,n,{value:e=t.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}])},98926,e=>{"use strict";var t=e.i(91788),i=e.i(93532),n=e.i(21805);e.s(["f",0,function(e){let r=t.useContext((0,n.f)()),s=e||r.client;return(0,i.k)(!!s,30),s}])},29520,e=>{"use strict";e.s(["f",0,!1])},22420,e=>{"use strict";e.s(["f",0,function(e){try{return e()}catch{}}])},93532,42950,99849,27422,7057,e=>{"use strict";var t=e.i(29520),i=e.i(22420);let n=(0,i.f)(()=>globalThis)||(0,i.f)(()=>window)||(0,i.f)(()=>self)||(0,i.f)(()=>e.g)||(0,i.f)(function(){return i.f.constructor("return this")()});e.s(["f",0,n],42950);let r="4.3.8";e.s(["D",0,"esm","U",0,r],99849);let s=new Map;function o(e){let t=s.get(e)||1;return s.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}function a(e,t=0){let i=o("stringifyForDisplay");return JSON.stringify(e,(e,t)=>void 0===t?i:t,t).split(JSON.stringify(i)).join("<undefined>")}e.s(["f",0,o],27422),e.s(["f",0,a],7057);let c="Invariant Violation";class l extends Error{constructor(e=c){super(e),this.name=c,Object.setPrototypeOf(this,l.prototype)}}let u=["debug","log","warn","error","silent"],h=u.indexOf(t.f?"log":"silent");function p(e,...t){if(!e)throw d(...t)}function f(e){return function(t,...i){if(u.indexOf(e)>=h){let n=console[e]||console.log;if("number"==typeof t){let e=t;(t=m(e))||(t=N(e,i),i=[])}n(t,...i)}}}function d(e,...t){return new l(m(e,t)||N(e,t))}p.debug=f("debug"),p.log=f("log"),p.warn=f("warn"),p.error=f("error");let E=Symbol.for("ApolloErrorMessageHandler_"+r);function T(e){if("string"==typeof e)return e;try{return a(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function m(e,t=[]){if(e)return n[E]&&n[E](e,t.map(T))}function N(e,t=[]){if(e)return"string"==typeof e?t.reduce((e,t)=>e.replace(/%[sdfo]/,T(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:r,message:e,args:t.map(T)}))}`}e.s(["k",0,p,"b",0,d,"f",0,function(e){let t=u[h];return h=Math.max(0,u.indexOf(e)),t}],93532)},59080,e=>{"use strict";var t,i=e.i(89280),n=e.i(48418),r=e.i(57636),s=e.i(42341),o=e.i(59570),a=e.i(64305),c=e.i(73929),l=e.i(57817),u=e.i(76256),h=e.i(13740),p=e.i(86538),f=e.i(5359),d=e.i(51599),E=e.i(20507),T=e.i(12909),m=e.i(42629),N=e.i(68333),I=e.i(54507),_=e.i(48301),y=e.i(10062),O=e.i(2697),A=e.i(11260),x=e.i(20420),v=e.i(12858),D=e.i(30314),C=e.i(70671),k=e.i(45738),g=e.i(7535),S=e.i(1284),b=e.i(561),R=e.i(10489),L=e.i(18667),F=e.i(19038),w=e.i(17030),P=e.i(9479),M=e.i(36378),U=e.i(76692),B=e.i(32676),V=e.i(57883),j=e.i(13886),K=e.i(9152),G=e.i(35565),Y=e.i(30412),$=e.i(70998),J=e.i(40147),q=e.i(31778),X=e.i(57340),Q=e.i(30118),z=e.i(417),H=e.i(33056),W=e.i(41500),Z=e.i(28897),ee=e.i(46582),et=e.i(45755),ei=e.i(66255),en=e.i(29730),er=e.i(17405);let es=Symbol("Source");class eo{constructor(e,t="GraphQL request",i={line:1,column:1}){this.__kind=es,this.body=e,this.name=t,this.locationOffset=i,this.locationOffset.line>0||(0,er.f)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,er.f)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}var ea=e.i(477);function ec(e,t){let i=new el(e,t),n=i.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:i.tokenCount}),n}class el{constructor(e,t={}){let{lexer:i,...r}=t;if(i)this._lexer=i;else{let t=e?.__kind===es?e:new eo(e);this._lexer=new en.Y(t)}this._options=r,this._tokenCounter=0,this._lexer._maxComments=r.maxComments,this._lexer._commentCount=0;let s=r.maxSourceLength;if(void 0!==s&&this._lexer.source.body.length>s)throw(0,n.f)(this._lexer.source,s,`Source contains more than ${s} UTF-16 code units. Parsing aborted.`)}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(ea.f.NAME);return this.node(e,{kind:a.f.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.f.DOCUMENT,definitions:this.many(ea.f.SOF,this.parseDefinition,ea.f.EOF)})}parseDefinition(){if(this.peek(ea.f.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===ea.f.BRACE_L)throw(0,n.f)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===ea.f.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw(0,n.f)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(ea.f.BRACE_L))return this.node(t,{kind:l.f.OPERATION_DEFINITION,operation:s.E.QUERY,description:void 0,name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:this.parseSelectionSet()});let i=this.parseDescription(),n=this.parseOperationType();return this.peek(ea.f.NAME)&&(e=this.parseName()),this.node(t,{kind:l.f.OPERATION_DEFINITION,operation:n,description:i,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(ea.f.NAME);switch(e.value){case"query":return s.E.QUERY;case"mutation":return s.E.MUTATION;case"subscription":return s.E.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(ea.f.PAREN_L,this.parseVariableDefinition,ea.f.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:u.f.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(ea.f.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ea.f.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(ea.f.DOLLAR),this.node(e,{kind:h.f.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:p.f.SELECTION_SET,selections:!1===this._options.allowEmptySelectionSets?this.many(ea.f.BRACE_L,this.parseSelection,ea.f.BRACE_R):this.any(ea.f.BRACE_L,this.parseSelection,ea.f.BRACE_R)})}parseSelection(){return this.peek(ea.f.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,i=this._lexer.token,n=this.parseName();return this.expectOptionalToken(ea.f.COLON)?(e=n,t=this.parseName()):t=n,this.node(i,{kind:f.f.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ea.f.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(ea.f.PAREN_L,t,ea.f.PAREN_R)}parseFragmentArguments(){let e=this.parseFragmentArgument;return this.optionalMany(ea.f.PAREN_L,e,ea.f.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,i=this.parseName();return this.expectToken(ea.f.COLON),this.node(t,{kind:d.f.ARGUMENT,name:i,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragmentArgument(){let e=this._lexer.token,t=this.parseName();return this.expectToken(ea.f.COLON),this.node(e,{kind:E.f.FRAGMENT_ARGUMENT,name:t,value:this.parseValueLiteral(!1)})}parseFragment(){let e=this._lexer.token;this.expectToken(ea.f.SPREAD);let t=this.expectOptionalKeyword("on");if(!t&&this.peek(ea.f.NAME)){let t=this.parseFragmentName();return this.peek(ea.f.PAREN_L)&&this._options.experimentalFragmentArguments?this.node(e,{kind:m.f.FRAGMENT_SPREAD,name:t,arguments:this.parseFragmentArguments(),directives:this.parseDirectives(!1)}):this.node(e,{kind:m.f.FRAGMENT_SPREAD,name:t,directives:this.parseDirectives(!1)})}return this.node(e,{kind:T.f.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.experimentalFragmentArguments)?this.node(e,{kind:N.f.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:N.f.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case ea.f.BRACKET_L:return this.parseList(e);case ea.f.BRACE_L:return this.parseObject(e);case ea.f.INT:return this.advanceLexer(),this.node(t,{kind:I.f.INT,value:t.value});case ea.f.FLOAT:return this.advanceLexer(),this.node(t,{kind:_.f.FLOAT,value:t.value});case ea.f.STRING:case ea.f.BLOCK_STRING:return this.parseStringLiteral();case ea.f.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:y.f.BOOLEAN,value:!0});case"false":return this.node(t,{kind:y.f.BOOLEAN,value:!1});case"null":return this.node(t,{kind:O.f.NULL});default:return this.node(t,{kind:A.f.ENUM,value:t.value})}case ea.f.DOLLAR:if(e){if(this.expectToken(ea.f.DOLLAR),this._lexer.token.kind===ea.f.NAME){let e=this._lexer.token.value;throw(0,n.f)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:x.f.STRING,value:e.value,block:e.kind===ea.f.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:v.f.LIST,values:this.any(ea.f.BRACKET_L,t,ea.f.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:D.f.OBJECT,fields:this.any(ea.f.BRACE_L,t,ea.f.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,i=this.parseName();return this.expectToken(ea.f.COLON),this.node(t,{kind:C.f.OBJECT_FIELD,name:i,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(ea.f.AT);)t.push(this.parseDirective(e));if(t.length)return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(ea.f.AT),this.node(t,{kind:k.f.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(ea.f.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(ea.f.BRACKET_R),e=this.node(t,{kind:g.f.LIST_TYPE,type:i})}else e=this.parseNamedType();return this.expectOptionalToken(ea.f.BANG)?this.node(t,{kind:S.f.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:b.f.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ea.f.STRING)||this.peek(ea.f.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let i=this.parseConstDirectives(),n=this.many(ea.f.BRACE_L,this.parseOperationTypeDefinition,ea.f.BRACE_R);return this.node(e,{kind:R.f.SCHEMA_DEFINITION,description:t,directives:i,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(ea.f.COLON);let i=this.parseNamedType();return this.node(e,{kind:L.f.OPERATION_TYPE_DEFINITION,operation:t,type:i})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:F.f.SCALAR_TYPE_DEFINITION,description:t,name:i,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:w.f.OBJECT_TYPE_DEFINITION,description:t,name:i,interfaces:n,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(ea.f.AMP,this.parseNamedType):void 0}parseFieldsDefinition(){return this.optionalMany(ea.f.BRACE_L,this.parseFieldDefinition,ea.f.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseName(),n=this.parseArgumentDefs();this.expectToken(ea.f.COLON);let r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:P.f.FIELD_DEFINITION,description:t,name:i,arguments:n,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(ea.f.PAREN_L,this.parseInputValueDef,ea.f.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,i=this.parseDescription(),n=this.parseName();this.expectToken(ea.f.COLON);let r=this.parseTypeReference();this.expectOptionalToken(ea.f.EQUALS)&&(e=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:M.f.INPUT_VALUE_DEFINITION,description:i,name:n,type:r,defaultValue:e,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:U.f.INTERFACE_TYPE_DEFINITION,description:t,name:i,interfaces:n,directives:r,fields:s})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:B.f.UNION_TYPE_DEFINITION,description:t,name:i,directives:n,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(ea.f.EQUALS)?this.delimitedMany(ea.f.PIPE,this.parseNamedType):void 0}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:V.f.ENUM_TYPE_DEFINITION,description:t,name:i,directives:n,values:r})}parseEnumValuesDefinition(){return this.optionalMany(ea.f.BRACE_L,this.parseEnumValueDefinition,ea.f.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:j.f.ENUM_VALUE_DEFINITION,description:t,name:i,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,n.f)(this._lexer.source,this._lexer.token.start,`${eu(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let i=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:K.f.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:i,directives:n,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(ea.f.BRACE_L,this.parseInputValueDef,ea.f.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===ea.f.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":return this.parseDirectiveExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),i=this.optionalMany(ea.f.BRACE_L,this.parseOperationTypeDefinition,ea.f.BRACE_R);if(void 0===t&&void 0===i)throw this.unexpected();return this.node(e,{kind:G.f.SCHEMA_EXTENSION,directives:t,operationTypes:i})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),i=this.parseConstDirectives();if(void 0===i)throw this.unexpected();return this.node(e,{kind:Y.f.SCALAR_TYPE_EXTENSION,name:t,directives:i})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(void 0===i&&void 0===n&&void 0===r)throw this.unexpected();return this.node(e,{kind:$.f.OBJECT_TYPE_EXTENSION,name:t,interfaces:i,directives:n,fields:r})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(void 0===i&&void 0===n&&void 0===r)throw this.unexpected();return this.node(e,{kind:J.f.INTERFACE_TYPE_EXTENSION,name:t,interfaces:i,directives:n,fields:r})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),i=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(void 0===i&&void 0===n)throw this.unexpected();return this.node(e,{kind:q.f.UNION_TYPE_EXTENSION,name:t,directives:i,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),i=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(void 0===i&&void 0===n)throw this.unexpected();return this.node(e,{kind:X.f.ENUM_TYPE_EXTENSION,name:t,directives:i,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),i=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(void 0===i&&void 0===n)throw this.unexpected();return this.node(e,{kind:Q.f.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:i,fields:n})}parseDirectiveExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(ea.f.AT);let t=this.parseName(),i=this.parseConstDirectives();if(void 0===i)throw this.unexpected();return this.node(e,{kind:z.f.DIRECTIVE_EXTENSION,name:t,directives:i})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ea.f.AT);let i=this.parseName(),n=this.parseArgumentDefs(),r=this.parseConstDirectives(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:H.f.DIRECTIVE_DEFINITION,description:t,name:i,arguments:n,directives:r,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(ea.f.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.hasOwn(o.f,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,i=this._lexer.token,n=this.expectOptionalToken(ea.f.AT),r=this.parseName();return(!n&&this.expectOptionalToken(ea.f.DOT)&&(e=this.parseName()),(n||e)&&this.expectOptionalToken(ea.f.PAREN_L)&&(t=this.parseName(),this.expectToken(ea.f.COLON),this.expectToken(ea.f.PAREN_R)),n)?t?this.node(i,{kind:ei.f.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:t}):this.node(i,{kind:et.f.DIRECTIVE_COORDINATE,name:r}):e?t?this.node(i,{kind:ee.f.ARGUMENT_COORDINATE,name:r,fieldName:e,argumentName:t}):this.node(i,{kind:Z.f.MEMBER_COORDINATE,name:r,memberName:e}):this.node(i,{kind:W.f.TYPE_COORDINATE,name:r})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new s.a(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,n.f)(this._lexer.source,t.start,`Expected ${eh(e)}, found ${eu(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===ea.f.NAME&&t.value===e)this.advanceLexer();else throw(0,n.f)(this._lexer.source,t.start,`Expected "${e}", found ${eu(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===ea.f.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=e??this._lexer.token;return(0,n.f)(this._lexer.source,t.start,`Unexpected ${eu(t)}.`)}any(e,t,i){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(i);)n.push(t.call(this));return n}optionalMany(e,t,i){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(i))return e}}many(e,t,i){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(i))return n}delimitedMany(e,t){this.expectOptionalToken(e);let i=[];do i.push(t.call(this));while(this.expectOptionalToken(e))return i}advanceLexer(){let{maxLexicalTokens:e=this._options.maxTokens}=this._options,t=this._lexer.advance();if(t.kind!==ea.f.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw(0,n.f)(this._lexer.source,t.start,`Document contains more than ${e} tokens. Parsing aborted.`)}}function eu(e){let t=e.value;return eh(e.kind)+(null!=t?` "${t}"`:"")}function eh(e){return(0,en.l)(e)?`"${e}"`:e}var ep=new Map,ef=new Map,ed=!0,eE=!1;function eT(e){return e.replace(/[\s,]+/g," ").trim()}function em(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var s=e[0];return t.forEach(function(t,i){t&&"Document"===t.kind?s+=t.loc.source.body:s+=t,s+=e[i+1]}),function(e){var t=eT(e);if(!ep.has(t)){var n,s,o,a,c,l,u=(n={experimentalFragmentVariables:eE,allowLegacyFragmentVariables:eE,experimentalFragmentArguments:eE},(0,r.E)(r.p)?r.p.traceSync(()=>ec(e,n),{source:e}):ec(e,n));if(!u||"Document"!==u.kind)throw Error("Not a valid GraphQL document.");ep.set(t,((c=new Set((s=new Set,o=[],u.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,n=eT((t=e.loc).source.body.substring(t.start,t.end)),r=ef.get(i);r&&!r.has(n)?ed&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):r||ef.set(i,r=new Set),r.add(n),s.has(n)||(s.add(n),o.push(e))}else o.push(e)}),a=(0,i.u)((0,i.u)({},u),{definitions:o})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var i=e[t];i&&"object"==typeof i&&c.add(i)})}),(l=a.loc)&&(delete l.startToken,delete l.endToken),a))}return ep.get(t)}(s)}function eN(){ep.clear(),ef.clear()}function eI(){ed=!1}function e_(){eE=!0}function ey(){eE=!1}var eO=em;(t=em||(em={})).gql=eO,t.resetCaches=eN,t.disableFragmentWarnings=eI,t.enableExperimentalFragmentVariables=e_,t.disableExperimentalFragmentVariables=ey,em.default=em,e.s(["Z",0,ey,"R",0,eI,"o",0,e_,"a",0,em,"s",0,eN],59080)},48418,57636,e=>{"use strict";class t extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(e,t){let i=this.get(e);void 0===i?this.set(e,[t]):i.push(t)}}let i=/\r\n|[\n\r]/g;function n(e,t){let n=e.body.matchAll(i),r=n.next().value,s=1,o=0;for(;void 0!==r&&r.index<t;)o=r.index+r[0].length,s++,r=n.next().value;return{line:s,column:t+1-o}}function r(e){if(e.length<2)return e.map(({source:e,start:t})=>n(e,t));let r=new t;e.forEach(({source:e,start:t},i)=>{r.add(e,{position:t,index:i})});let s=Array(e.length);for(let[e,t]of r){let n=e.body.matchAll(i),r=n.next().value,o=1,a=0;for(let{position:e,index:i}of t.toSorted((e,t)=>e.position-t.position)){for(;void 0!==r&&r.index<e;)a=r.index+r[0].length,o++,r=n.next().value;s[i]={line:o,column:e+1-a}}}return s}function s(e,t){let i=e.locationOffset.column-1,n="".padStart(i)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,c=1===t.line?i:0,l=t.column+c,u=`${e.name}:${a}:${l}
2
+ `,h=n.split(/\r\n|[\n\r]/g),p=h[r];if(p.length>120){let e=[];for(let t=0;t<p.length;t+=80)e.push(p.slice(t,t+80));let t=Math.min(Math.floor((l-1)/80),e.length-1);return u+o([[`${a} |`,e[0]],...e.slice(1,t+1).map(e=>["|",e]),["|","^".padStart(l-80*t)],["|",e[t+1]]])}return u+o([[`${a-1} |`,h[r-1]],[`${a} |`,p],["|","^".padStart(l)],[`${a+1} |`,h[r+1]]])}function o(e){let t=e.filter(([e,t])=>void 0!==t),i=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(i)+(t?" "+t:"")).join("\n")}class a extends Error{constructor(e,t={}){var i;let{nodes:n,source:s,positions:o,path:l,originalError:u,cause:h,extensions:p}=t,f="cause"in t,d=f?h:u;super(e,f||null!=u?{cause:d}:void 0),this.name="GraphQLError",this.path=l??void 0;let E=u??(h instanceof Error?h:void 0);this.originalError=E,this.nodes=c(Array.isArray(n)?n:n?[n]:void 0);let T=c(this.nodes?.map(e=>e.loc).filter(e=>null!=e));this.source=s??T?.[0]?.source,this.positions=o??T?.map(e=>e.start),this.locations=o&&s?r(o.map(e=>({source:s,start:e}))):T&&r(T);let m="object"==typeof(i=E?.extensions)&&null!==i?E.extensions:void 0;this.extensions=p??m??Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),u?.stack!=null?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):null!=Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let i of this.nodes){var t;i.loc&&(e+="\n\n"+s((t=i.loc).source,n(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+s(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function c(e){return void 0===e||0===e.length?void 0:e}e.s(["f",0,function(e,t,i){return new a(`Syntax Error: ${i}`,{source:e,positions:[t]})}],48418);let l=function(){let e;try{let t=globalThis.process;"function"==typeof t?.getBuiltinModule&&(e=t.getBuiltinModule("node:diagnostics_channel"))}catch{}return e}(),u=l?.tracingChannel("graphql:parse");l?.tracingChannel("graphql:validate"),l?.tracingChannel("graphql:execute"),l?.tracingChannel("graphql:execute:variableCoercion"),l?.tracingChannel("graphql:execute:rootSelectionSet"),l?.tracingChannel("graphql:subscribe"),l?.tracingChannel("graphql:resolve");let h=["start","end","asyncStart","asyncEnd","error"];e.s(["p",0,u,"E",0,function(e){if(null==e)return!1;let t=e.hasSubscribers;if(void 0!==t)return t;for(let t of h)if(e[t].hasSubscribers)return!0;return!1}],57636)},17405,e=>{"use strict";e.s(["f",0,function(e,t){if(!e)throw Error(t)}])},42341,e=>{"use strict";class t{constructor(e,t,i){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,i,n,r,s){this.kind=e,this.start=t,this.end=i,this.line=n,this.column=r,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let n={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentArgument:["name","value"],FragmentSpread:["name","arguments","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},r=new Set(Object.keys(n));e.s(["a",0,t,"E",0,{QUERY:"query",MUTATION:"mutation",SUBSCRIPTION:"subscription"},"Q",0,n,"_",0,i,"t",0,function(e){let t=e?.kind;return"string"==typeof t&&r.has(t)}])},67757,10696,e=>{"use strict";function t(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function n(e){return e>=97&&e<=122||e>=65&&e<=90}e.s(["J",0,i,"E",0,function(e){return n(e)||i(e)||95===e},"C",0,function(e){return n(e)||95===e},"S",0,t],10696),e.s(["X",0,function(e){let i=Number.MAX_SAFE_INTEGER,n=null,r=-1;for(let s=0;s<e.length;++s){let o=e[s],a=function(e){let i=0;for(;i<e.length&&t(e.charCodeAt(i));)++i;return i}(o);a!==o.length&&(n??=s,r=s,0!==s&&a<i&&(i=a))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(n??0,r+1)},"V",0,function(e,i){let n=e.replaceAll('"""','\\"""'),r=n.split(/\r\n|[\n\r]/g),s=1===r.length,o=r.length>1&&r.slice(1).every(e=>0===e.length||t(e.charCodeAt(0))),a=n.endsWith('\\"""'),c=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=c||l,h=!i?.minimize&&(!s||e.length>70||u||o||a),p="",f=s&&t(e.charCodeAt(0));return(h&&!f||o)&&(p+="\n"),p+=n,(h||u)&&(p+="\n"),'"""'+p+'"""'}],67757)},59570,e=>{"use strict";e.s(["f",0,{QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",FRAGMENT_VARIABLE_DEFINITION:"FRAGMENT_VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION",DIRECTIVE_DEFINITION:"DIRECTIVE_DEFINITION"}])},83197,e=>{"use strict";e.s(["ARGUMENT",0,"Argument","ARGUMENT_COORDINATE",0,"ArgumentCoordinate","BOOLEAN",0,"BooleanValue","DIRECTIVE",0,"Directive","DIRECTIVE_ARGUMENT_COORDINATE",0,"DirectiveArgumentCoordinate","DIRECTIVE_COORDINATE",0,"DirectiveCoordinate","DIRECTIVE_DEFINITION",0,"DirectiveDefinition","DIRECTIVE_EXTENSION",0,"DirectiveExtension","DOCUMENT",0,"Document","ENUM",0,"EnumValue","ENUM_TYPE_DEFINITION",0,"EnumTypeDefinition","ENUM_TYPE_EXTENSION",0,"EnumTypeExtension","ENUM_VALUE_DEFINITION",0,"EnumValueDefinition","FIELD",0,"Field","FIELD_DEFINITION",0,"FieldDefinition","FLOAT",0,"FloatValue","FRAGMENT_ARGUMENT",0,"FragmentArgument","FRAGMENT_DEFINITION",0,"FragmentDefinition","FRAGMENT_SPREAD",0,"FragmentSpread","INLINE_FRAGMENT",0,"InlineFragment","INPUT_OBJECT_TYPE_DEFINITION",0,"InputObjectTypeDefinition","INPUT_OBJECT_TYPE_EXTENSION",0,"InputObjectTypeExtension","INPUT_VALUE_DEFINITION",0,"InputValueDefinition","INT",0,"IntValue","INTERFACE_TYPE_DEFINITION",0,"InterfaceTypeDefinition","INTERFACE_TYPE_EXTENSION",0,"InterfaceTypeExtension","LIST",0,"ListValue","LIST_TYPE",0,"ListType","MEMBER_COORDINATE",0,"MemberCoordinate","NAME",0,"Name","NAMED_TYPE",0,"NamedType","NON_NULL_TYPE",0,"NonNullType","NULL",0,"NullValue","OBJECT",0,"ObjectValue","OBJECT_FIELD",0,"ObjectField","OBJECT_TYPE_DEFINITION",0,"ObjectTypeDefinition","OBJECT_TYPE_EXTENSION",0,"ObjectTypeExtension","OPERATION_DEFINITION",0,"OperationDefinition","OPERATION_TYPE_DEFINITION",0,"OperationTypeDefinition","SCALAR_TYPE_DEFINITION",0,"ScalarTypeDefinition","SCALAR_TYPE_EXTENSION",0,"ScalarTypeExtension","SCHEMA_DEFINITION",0,"SchemaDefinition","SCHEMA_EXTENSION",0,"SchemaExtension","SELECTION_SET",0,"SelectionSet","STRING",0,"StringValue","TYPE_COORDINATE",0,"TypeCoordinate","UNION_TYPE_DEFINITION",0,"UnionTypeDefinition","UNION_TYPE_EXTENSION",0,"UnionTypeExtension","VARIABLE",0,"Variable","VARIABLE_DEFINITION",0,"VariableDefinition"])},64305,73929,57817,76256,13740,86538,5359,51599,20507,12909,42629,68333,54507,48301,10062,2697,11260,20420,12858,30314,70671,45738,7535,1284,561,10489,18667,19038,17030,9479,36378,76692,32676,57883,13886,9152,35565,30412,70998,40147,31778,57340,30118,417,33056,41500,28897,46582,45755,66255,e=>{"use strict";var t=e.i(83197);e.s(["f",0,t],64305),e.s(["f",0,t],73929),e.s(["f",0,t],57817),e.s(["f",0,t],76256),e.s(["f",0,t],13740),e.s(["f",0,t],86538),e.s(["f",0,t],5359),e.s(["f",0,t],51599),e.s(["f",0,t],20507),e.s(["f",0,t],12909),e.s(["f",0,t],42629),e.s(["f",0,t],68333),e.s(["f",0,t],54507),e.s(["f",0,t],48301),e.s(["f",0,t],10062),e.s(["f",0,t],2697),e.s(["f",0,t],11260),e.s(["f",0,t],20420),e.s(["f",0,t],12858),e.s(["f",0,t],30314),e.s(["f",0,t],70671),e.s(["f",0,t],45738),e.s(["f",0,t],7535),e.s(["f",0,t],1284),e.s(["f",0,t],561),e.s(["f",0,t],10489),e.s(["f",0,t],18667),e.s(["f",0,t],19038),e.s(["f",0,t],17030),e.s(["f",0,t],9479),e.s(["f",0,t],36378),e.s(["f",0,t],76692),e.s(["f",0,t],32676),e.s(["f",0,t],57883),e.s(["f",0,t],13886),e.s(["f",0,t],9152),e.s(["f",0,t],35565),e.s(["f",0,t],30412),e.s(["f",0,t],70998),e.s(["f",0,t],40147),e.s(["f",0,t],31778),e.s(["f",0,t],57340),e.s(["f",0,t],30118),e.s(["f",0,t],417),e.s(["f",0,t],33056),e.s(["f",0,t],41500),e.s(["f",0,t],28897),e.s(["f",0,t],46582),e.s(["f",0,t],45755),e.s(["f",0,t],66255)},29730,477,e=>{"use strict";var t=e.i(48418),i=e.i(42341),n=e.i(67757),r=e.i(10696);let s={SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",DOT:".",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"};e.s(["f",0,s],477);class o{constructor(e){let t=new i._(s.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0,this._maxComments=void 0,this._commentCount=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.EOF)do if(e.next)e=e.next;else{let i=function(e,i){let o=e.source.body,T=o.length,m=i;for(;m<T;){let i=o.charCodeAt(m);switch(i){case 65279:case 9:case 32:case 44:++m;continue;case 10:++m,++e.line,e.lineStart=m;continue;case 13:10===o.charCodeAt(m+1)?m+=2:++m,++e.line,e.lineStart=m;continue;case 35:return function(e,i){let n=e._maxComments;if(void 0!==n){let r=e._commentCount+1;if(r>n)throw(0,t.f)(e.source,i,`Document contains more than ${n} comments. Parsing aborted.`);e._commentCount=r}let r=e.source.body,o=r.length,l=i+1;for(;l<o;){let e=r.charCodeAt(l);if(10===e||13===e)break;if(a(e))++l;else if(c(r,l))l+=2;else break}return p(e,s.COMMENT,i,l,r.slice(i+1,l))}(e,m);case 33:return p(e,s.BANG,m,m+1);case 36:return p(e,s.DOLLAR,m,m+1);case 38:return p(e,s.AMP,m,m+1);case 40:return p(e,s.PAREN_L,m,m+1);case 41:return p(e,s.PAREN_R,m,m+1);case 46:{let i=o.charCodeAt(m+1);if(46===i&&46===o.charCodeAt(m+2))return p(e,s.SPREAD,m,m+3);if(46===i)throw(0,t.f)(e.source,m,'Unexpected "..", did you mean "..."?');if((0,r.J)(i)){let n=e.source.body.slice(m+1,f(e,m+1,i));throw(0,t.f)(e.source,m,`Invalid number, expected digit before ".", did you mean "0.${n}"?`)}break}case 58:return p(e,s.COLON,m,m+1);case 61:return p(e,s.EQUALS,m,m+1);case 64:return p(e,s.AT,m,m+1);case 91:return p(e,s.BRACKET_L,m,m+1);case 93:return p(e,s.BRACKET_R,m,m+1);case 123:return p(e,s.BRACE_L,m,m+1);case 124:return p(e,s.PIPE,m,m+1);case 125:return p(e,s.BRACE_R,m,m+1);case 34:if(34===o.charCodeAt(m+1)&&34===o.charCodeAt(m+2))return function(e,i){let r=e.source.body,o=r.length,l=e.lineStart,u=i+3,f=u,d="",E=[];for(;u<o;){let o=r.charCodeAt(u);if(34===o&&34===r.charCodeAt(u+1)&&34===r.charCodeAt(u+2)){d+=r.slice(f,u),E.push(d);let t=p(e,s.BLOCK_STRING,i,u+3,(0,n.X)(E).join("\n"));return e.line+=E.length-1,e.lineStart=l,t}if(92===o&&34===r.charCodeAt(u+1)&&34===r.charCodeAt(u+2)&&34===r.charCodeAt(u+3)){d+=r.slice(f,u),f=u+1,u+=4;continue}if(10===o||13===o){d+=r.slice(f,u),E.push(d),13===o&&10===r.charCodeAt(u+1)?u+=2:++u,d="",f=u,l=u;continue}if(a(o))++u;else if(c(r,u))u+=2;else throw(0,t.f)(e.source,u,`Invalid character within String: ${h(e,u)}.`)}throw(0,t.f)(e.source,u,"Unterminated string.")}(e,m);return function(e,i){let n=e.source.body,r=n.length,o=i+1,f=o,T="";for(;o<r;){let r=n.charCodeAt(o);if(34===r)return T+=n.slice(f,o),p(e,s.STRING,i,o+1,T);if(92===r){T+=n.slice(f,o);let i=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?function(e,i){let n=e.source.body,r=0,s=3;for(;s<12;){let e=n.charCodeAt(i+s++);if(125===e){if(s<5||!a(r))break;return{value:String.fromCodePoint(r),size:s}}if((r=r<<4|E(e))<0)break}throw(0,t.f)(e.source,i,`Invalid Unicode escape sequence: "${n.slice(i,i+s)}".`)}(e,o):function(e,i){let n=e.source.body,r=d(n,i+2);if(a(r))return{value:String.fromCodePoint(r),size:6};if(l(r)&&92===n.charCodeAt(i+6)&&117===n.charCodeAt(i+7)){let e=d(n,i+8);if(u(e))return{value:String.fromCodePoint(r,e),size:12}}throw(0,t.f)(e.source,i,`Invalid Unicode escape sequence: "${n.slice(i,i+6)}".`)}(e,o):function(e,i){let n=e.source.body;switch(n.charCodeAt(i+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,t.f)(e.source,i,`Invalid character escape sequence: "${n.slice(i,i+2)}".`)}(e,o);T+=i.value,o+=i.size,f=o;continue}if(10===r||13===r)break;if(a(r))++o;else if(c(n,o))o+=2;else throw(0,t.f)(e.source,o,`Invalid character within String: ${h(e,o)}.`)}throw(0,t.f)(e.source,o,"Unterminated string.")}(e,m)}if((0,r.J)(i)||45===i)return function(e,i,n){let o=e.source.body,a=i,c=n,l=!1;if(45===c&&(c=o.charCodeAt(++a)),48===c){if(c=o.charCodeAt(++a),(0,r.J)(c))throw(0,t.f)(e.source,a,`Invalid number, unexpected digit after 0: ${h(e,a)}.`)}else a=f(e,a,c),c=o.charCodeAt(a);if(46===c&&(l=!0,c=o.charCodeAt(++a),a=f(e,a,c),c=o.charCodeAt(a)),(69===c||101===c)&&(l=!0,(43===(c=o.charCodeAt(++a))||45===c)&&(c=o.charCodeAt(++a)),a=f(e,a,c),c=o.charCodeAt(a)),46===c||(0,r.C)(c))throw(0,t.f)(e.source,a,`Invalid number, expected digit but got: ${h(e,a)}.`);return p(e,l?s.FLOAT:s.INT,i,a,o.slice(i,a))}(e,m,i);if((0,r.C)(i))return function(e,t){let i=e.source.body,n=i.length,o=t+1;for(;o<n;){let e=i.charCodeAt(o);if((0,r.E)(e))++o;else break}return p(e,s.NAME,t,o,i.slice(t,o))}(e,m);throw(0,t.f)(e.source,m,39===i?"Unexpected single quote character ('), did you mean to use a double quote (\")?":a(i)||c(o,m)?`Unexpected character: ${h(e,m)}.`:`Invalid character: ${h(e,m)}.`)}return p(e,s.EOF,T,T)}(this,e.end);e.next=i,i.prev=e,e=i}while(e.kind===s.COMMENT)return e}}function a(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function c(e,t){return l(e.charCodeAt(t))&&u(e.charCodeAt(t+1))}function l(e){return e>=55296&&e<=56319}function u(e){return e>=56320&&e<=57343}function h(e,t){let i=e.source.body.codePointAt(t);if(void 0===i)return s.EOF;if(i>=32&&i<=126){let e=String.fromCodePoint(i);return'"'===e?"'\"'":`"${e}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function p(e,t,n,r,s){let o=e.line,a=1+n-e.lineStart;return new i._(t,n,r,o,a,s)}function f(e,i,n){if(!(0,r.J)(n))throw(0,t.f)(e.source,i,`Invalid number, expected digit but got: ${h(e,i)}.`);let s=e.source.body,o=i+1;for(;(0,r.J)(s.charCodeAt(o));)++o;return o}function d(e,t){return E(e.charCodeAt(t))<<12|E(e.charCodeAt(t+1))<<8|E(e.charCodeAt(t+2))<<4|E(e.charCodeAt(t+3))}function E(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}e.s(["Y",0,o,"l",0,function(e){return e===s.BANG||e===s.DOLLAR||e===s.AMP||e===s.PAREN_L||e===s.PAREN_R||e===s.DOT||e===s.SPREAD||e===s.COLON||e===s.EQUALS||e===s.AT||e===s.BRACKET_L||e===s.BRACKET_R||e===s.BRACE_L||e===s.PIPE||e===s.BRACE_R}],29730)},89280,e=>{"use strict";var t=function(e,i){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,i)},i=function(){return(i=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function n(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(e){return this instanceof r?(this.v=e,this):new r(e)}"function"==typeof SuppressedError&&SuppressedError,e.s(["u",()=>i,"Q",0,function(e,t,i){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,s=i.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){s[e]&&(n[e]=function(t){return new Promise(function(i,n){o.push([e,t,i,n])>1||c(e,t)})},t&&(n[e]=t(n[e])))}function c(e,t){try{var i;(i=s[e](t)).value instanceof r?Promise.resolve(i.value.v).then(l,u):h(o[0][2],i)}catch(e){h(o[0][3],e)}}function l(e){c("next",e)}function u(e){c("throw",e)}function h(e,t){e(t),o.shift(),o.length&&c(o[0][0],o[0][1])}},"I",0,function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e=n(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(t){return new Promise(function(n,r){var s,o,a;s=n,o=r,a=(t=e[i](t)).done,Promise.resolve(t.value).then(function(e){s({value:e,done:a})},o)})}}},"Z",0,r,"W",0,function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function o(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(o,a)}c((n=n.apply(e,t||[])).next())})},"w",0,function(e,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)},"t",0,function(e,t){var i,n,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){var l=[a,c];if(i)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(s=0)),s;)try{if(i=1,n&&(r=2&l[0]?n.return:l[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;switch(n=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,n=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===l[0]||2===l[0])){s=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){s.label=l[1];break}if(6===l[0]&&s.label<r[1]){s.label=r[1],r=l;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(l);break}r[2]&&s.ops.pop(),s.trys.pop();continue}l=t.call(e,s)}catch(e){l=[6,e],n=0}finally{i=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}},"J",0,function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,s=i.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o},"z",0,function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i},"p",0,function(e,t,i){if(i||2==arguments.length)for(var n,r=0,s=t.length;r<s;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},"_",0,n])}]);
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[30434,e=>{var r=e.i(91398),s=e.i(56206),t=e.i(60741);e.s(["f",0,e=>{let{disabled:a,labelClassName:i,containerClassName:d,inputClassName:l,...o}=e,n=(0,t.f)({...e,type:"checkbox"});return(0,r.jsxs)("div",{className:(0,s.U)("",{"text-rose-600":!!n.error,checkbox:!0,disabled:n.disabled,required:n.required},d),children:[(0,r.jsx)("input",{checked:!!n.value,disabled:a,id:n.name,name:n.name,onChange:n.onChange,onBlur:n.onBlur,type:"checkbox",className:(0,s.U)("h-4 w-4 rounded-xs border-border-default bg-white dark:!bg-slate-800 text-indigo-600 dark:text-slate-200 focus:ring-focus-ring",l,e.className),...o}),(0,r.jsx)("label",{htmlFor:n.name,className:(0,s.U)("text-sm text-text-primary",i,{"text-danger":!!n.error}),children:n.label})]})}])},60513,75284,e=>{var r=e.i(91788),s=e.i(28401),t=e.i(69322),a=e.i(30086);e.i(51523);var i=e.i(19518),d=e.i(98926),l=e.i(63104),o=e.i(3828);e.s(["f",0,()=>{let[e,n]=(0,r.useState)(!1),u=(0,d.f)(),c=(0,o.useRouter)(),{addWork:f}=(0,a.f)(),{formatMessage:m}=(0,t.X)(),p=(0,r.useCallback)(async e=>{let{data:r}=await u.query({query:(0,l.k)(),variables:{workId:e},fetchPolicy:"network-only"});return r?.work??null},[u]);return{isExporting:e,exportCSV:(0,r.useCallback)(async({type:e,pollInterval:r=2e3,...t})=>{n(!0);try{let s=await f({type:i.j.BulkExport,input:{type:e,...t}}),a=s?.data?.addWork?._id;if(!a)throw Error("Failed to create export work");await new Promise((e,s)=>{let t=setInterval(async()=>{try{let r=await p(a);if(!r)throw Error("Work not found");(r.status===i.i.Success||r.status===i.i.Failed)&&(clearInterval(t),r.status===i.i.Success&&r.success?(c.push(`/exports?workId=${r._id}`),e(r)):s(r.error||Error("Export failed")))}catch(e){clearInterval(t),s(e)}},r)})}catch(e){return console.error("Export failed:",e),s.toast.error(m({id:"export_failed",defaultMessage:"Export failed. Please try again."})),null}finally{n(!1)}},[f,p,c,m])}}],60513);var n=e.i(91398),u=e.i(69211),c=e.i(30434),f=e.i(98949),m=e.i(21128);e.s(["f",0,function({options:e,onSubmit:s,loading:a=!1,successMessage:i=""}){let{formatMessage:d}=(0,t.X)(),l=(0,r.useMemo)(()=>e.reduce((e,r)=>(e[r.key]=r.defaultChecked??!0,e),{}),[e]),o=async e=>(await s(e),{success:!0}),p=(0,f.f)({successMessage:i||d({id:"export_completed",defaultMessage:"Data exported successfully"}),submit:o,enableReinitialize:!0,initialValues:l});return(0,n.jsx)(u.f,{form:p,children:p.api.isSubmitting?(0,n.jsxs)("div",{className:"flex items-center gap-3 p-4 mb-4 rounded-lg animate-pulse",children:[(0,n.jsx)("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),(0,n.jsx)("span",{className:"text-sm font-medium text-blue-700 dark:text-blue-300",children:d({id:"exporting_message",defaultMessage:"Generating your export files. This may take a moment..."})})]}):(0,n.jsxs)("fieldset",{disabled:a,style:{border:"none",padding:0},children:[(0,n.jsxs)("h3",{children:[" ",d({id:"export_options",defaultMessage:"Export options"})]}),e.map(e=>(0,n.jsx)(c.f,{name:e.key,label:e.label,hideLabel:!0,className:"mr-2 h-4 w-4 justify-between rounded-sm border-border-default bg-white text-slate-950 focus:ring-focus-ring lg:items-center",type:"checkbox"},e.key)),(0,n.jsx)(m.f,{label:d({id:"submit",defaultMessage:"Submit"}),disabled:a})]})})}],75284)},30086,e=>{var r=e.i(59080),s=e.i(76204);let t=r.a`
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36792,(e,r,s)=>{let t="/users/UserDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([t,()=>e.r(2385)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([t])})},30434,e=>{"use strict";var r=e.i(91398),s=e.i(56206),t=e.i(60741);e.s(["f",0,e=>{let{disabled:i,labelClassName:a,containerClassName:d,inputClassName:l,...o}=e,n=(0,t.f)({...e,type:"checkbox"});return(0,r.jsxs)("div",{className:(0,s.U)("",{"text-rose-600":!!n.error,checkbox:!0,disabled:n.disabled,required:n.required},d),children:[(0,r.jsx)("input",{checked:!!n.value,disabled:i,id:n.name,name:n.name,onChange:n.onChange,onBlur:n.onBlur,type:"checkbox",className:(0,s.U)("h-4 w-4 rounded-xs border-border-default bg-white dark:!bg-slate-800 text-indigo-600 dark:text-slate-200 focus:ring-focus-ring",l,e.className),...o}),(0,r.jsx)("label",{htmlFor:n.name,className:(0,s.U)("text-sm text-text-primary",a,{"text-danger":!!n.error}),children:n.label})]})}])},60513,75284,e=>{"use strict";var r=e.i(91788),s=e.i(28401),t=e.i(3326),i=e.i(30086);e.i(51523);var a=e.i(19518),d=e.i(98926),l=e.i(63104),o=e.i(3828);e.s(["f",0,()=>{let[e,n]=(0,r.useState)(!1),u=(0,d.f)(),c=(0,o.useRouter)(),{addWork:f}=(0,i.f)(),{formatMessage:m}=(0,t.X)(),p=(0,r.useCallback)(async e=>{let{data:r}=await u.query({query:(0,l.k)(),variables:{workId:e},fetchPolicy:"network-only"});return r?.work??null},[u]);return{isExporting:e,exportCSV:(0,r.useCallback)(async({type:e,pollInterval:r=2e3,...t})=>{n(!0);try{let s=await f({type:a.j.BulkExport,input:{type:e,...t}}),i=s?.data?.addWork?._id;if(!i)throw Error("Failed to create export work");await new Promise((e,s)=>{let t=setInterval(async()=>{try{let r=await p(i);if(!r)throw Error("Work not found");(r.status===a.i.Success||r.status===a.i.Failed)&&(clearInterval(t),r.status===a.i.Success&&r.success?(c.push(`/exports?workId=${r._id}`),e(r)):s(r.error||Error("Export failed")))}catch(e){clearInterval(t),s(e)}},r)})}catch(e){return console.error("Export failed:",e),s.toast.error(m({id:"export_failed",defaultMessage:"Export failed. Please try again."})),null}finally{n(!1)}},[f,p,c,m])}}],60513);var n=e.i(91398),u=e.i(69211),c=e.i(30434),f=e.i(98949),m=e.i(21128);e.s(["f",0,function({options:e,onSubmit:s,loading:i=!1,successMessage:a=""}){let{formatMessage:d}=(0,t.X)(),l=(0,r.useMemo)(()=>e.reduce((e,r)=>(e[r.key]=r.defaultChecked??!0,e),{}),[e]),o=async e=>(await s(e),{success:!0}),p=(0,f.f)({successMessage:a||d({id:"export_completed",defaultMessage:"Data exported successfully"}),submit:o,enableReinitialize:!0,initialValues:l});return(0,n.jsx)(u.f,{form:p,children:p.api.isSubmitting?(0,n.jsxs)("div",{className:"flex items-center gap-3 p-4 mb-4 rounded-lg animate-pulse",children:[(0,n.jsx)("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),(0,n.jsx)("span",{className:"text-sm font-medium text-blue-700 dark:text-blue-300",children:d({id:"exporting_message",defaultMessage:"Generating your export files. This may take a moment..."})})]}):(0,n.jsxs)("fieldset",{disabled:i,style:{border:"none",padding:0},children:[(0,n.jsxs)("h3",{children:[" ",d({id:"export_options",defaultMessage:"Export options"})]}),e.map(e=>(0,n.jsx)(c.f,{name:e.key,label:e.label,hideLabel:!0,className:"mr-2 h-4 w-4 justify-between rounded-sm border-border-default bg-white text-slate-950 focus:ring-focus-ring lg:items-center",type:"checkbox"},e.key)),(0,n.jsx)(m.f,{label:d({id:"submit",defaultMessage:"Submit"}),disabled:i})]})})}],75284)},30086,e=>{"use strict";var r=e.i(59080),s=e.i(76204);let t=r.a`
2
2
  mutation AddWork(
3
3
  $type: WorkType!
4
4
  $priority: Int! = 0
@@ -18,7 +18,7 @@
18
18
  _id
19
19
  }
20
20
  }
21
- `;e.s(["f",0,()=>{let[e]=(0,s.f)(t);return{addWork:async({type:r,priority:s,input:t,originalWorkId:a,scheduled:i=null,retries:d})=>e({variables:{type:r,priority:s,input:t,originalWorkId:a,scheduled:i,retries:d},refetchQueries:["WorkQueue"]})}}])},63104,e=>{var r=e.i(59080),s=e.i(32171),t=e.i(70693),a=e.i(94672);let i=(e="")=>r.a`
21
+ `;e.s(["f",0,()=>{let[e]=(0,s.f)(t);return{addWork:async({type:r,priority:s,input:t,originalWorkId:i,scheduled:a=null,retries:d})=>e({variables:{type:r,priority:s,input:t,originalWorkId:i,scheduled:a,retries:d},refetchQueries:["WorkQueue"]})}}])},63104,e=>{"use strict";var r=e.i(59080),s=e.i(32171),t=e.i(70693),i=e.i(94672);let a=(e="")=>r.a`
22
22
  query Work($workId: ID!) {
23
23
  work(workId: $workId) {
24
24
  ...WorkFragment
@@ -29,15 +29,15 @@
29
29
  timeout
30
30
  }
31
31
  }
32
- ${a.f}
33
- `;e.s(["k",0,i,"U",0,({workId:e=null,...r})=>{let{customProperties:a}=(0,t.f)(),{data:d,loading:l,error:o,previousData:n}=(0,s.f)(i(a?.Work),{skip:!e,variables:{workId:e},...r});return{work:d?.work||n?.work,loading:l,error:o}}])},2385,e=>{var r=e.i(91398),s=e.i(3828);e.i(51523);var t=e.i(19518),a=e.i(69322),i=e.i(59080),d=e.i(32171),l=e.i(70693),o=e.i(2228);let n=i.a`
32
+ ${i.f}
33
+ `;e.s(["k",0,a,"U",0,({workId:e=null,...r})=>{let{customProperties:i}=(0,t.f)(),{data:d,loading:l,error:o,previousData:n}=(0,s.f)(a(i?.Work),{skip:!e,variables:{workId:e},...r});return{work:d?.work||n?.work,loading:l,error:o}}])},2385,e=>{"use strict";var r=e.i(91398),s=e.i(3828);e.i(51523);var t=e.i(19518),i=e.i(3326),a=e.i(59080),d=e.i(32171),l=e.i(70693),o=e.i(2228);let n=a.a`
34
34
  query UserPermissions($userId: ID!) {
35
35
  user(userId: $userId) {
36
36
  _id
37
37
  viewerAllowedActions
38
38
  }
39
39
  }
40
- `;var u=e.i(50595),c=e.i(25327),f=e.i(62274),m=e.i(23745),p=e.i(91788),k=e.i(6607),y=e.i(15971),x=e.i(28401),g=e.i(93380),b=e.i(21623),h=e.i(60513),w=e.i(75284);let v=({userId:e,disabled:s=!1})=>{let{setModal:t}=(0,k.f)(),{exportUser:i,isExporting:d}=(()=>{let{exportCSV:e,isExporting:r}=(0,h.f)();return{exportUser:(0,p.useCallback)(async r=>{await e({type:"User",...r})},[e]),isExporting:r}})(),{formatMessage:l}=(0,a.X)(),o=[{key:"exportBookmarks",label:l({id:"bookmarks",defaultMessage:"Bookmarks"}),defaultChecked:!0},{key:"exportOrders",label:l({id:"orders",defaultMessage:"Orders"}),defaultChecked:!0},{key:"exportReviews",label:l({id:"reviews",defaultMessage:"Reviews"}),defaultChecked:!0},{key:"exportQuotations",label:l({id:"quotations",defaultMessage:"Quotations"}),defaultChecked:!0},{key:"exportEnrollments",label:l({id:"enrollments",defaultMessage:"Enrollments"}),defaultChecked:!0}],n=(0,p.useCallback)(async r=>{await i({userId:e,...r}),t(null)},[e,i,t]);return(0,r.jsx)(b.f,{onClick:()=>{t((0,r.jsx)(w.f,{options:o,onSubmit:n,loading:d}))},disabled:d||s,variant:"secondary",text:l(d?{id:"exporting",defaultMessage:"Exporting..."}:{id:"export",defaultMessage:"Export"})})};var _=e.i(72419);e.s(["default",0,({userId:e})=>{let{formatMessage:b}=(0,a.X)(),{setModal:h}=(0,k.f)(),{deleteUser:w}=(0,m.f)(),{user:C,extendedData:I}=(({userId:e=null}={})=>{let{customProperties:r,hydrateFragment:s}=(0,l.f)(),a=!e,{data:u,loading:c,error:f}=(0,d.f)(n,{skip:a,variables:{userId:e},fetchPolicy:"network-only"}),m=u?.user?._id===e?u.user:null,p=m?.viewerAllowedActions,k=e=>p?.includes(e)??!1,{data:y,loading:x,error:g}=(0,d.f)(((e="")=>i.a`
40
+ `;var u=e.i(50595),c=e.i(25327),f=e.i(62274),m=e.i(23745),p=e.i(91788),k=e.i(6607),y=e.i(15971),x=e.i(28401),g=e.i(93380),b=e.i(21623),h=e.i(60513),w=e.i(75284);let v=({userId:e,disabled:s=!1})=>{let{setModal:t}=(0,k.f)(),{exportUser:a,isExporting:d}=(()=>{let{exportCSV:e,isExporting:r}=(0,h.f)();return{exportUser:(0,p.useCallback)(async r=>{await e({type:"User",...r})},[e]),isExporting:r}})(),{formatMessage:l}=(0,i.X)(),o=[{key:"exportBookmarks",label:l({id:"bookmarks",defaultMessage:"Bookmarks"}),defaultChecked:!0},{key:"exportOrders",label:l({id:"orders",defaultMessage:"Orders"}),defaultChecked:!0},{key:"exportReviews",label:l({id:"reviews",defaultMessage:"Reviews"}),defaultChecked:!0},{key:"exportQuotations",label:l({id:"quotations",defaultMessage:"Quotations"}),defaultChecked:!0},{key:"exportEnrollments",label:l({id:"enrollments",defaultMessage:"Enrollments"}),defaultChecked:!0}],n=(0,p.useCallback)(async r=>{await a({userId:e,...r}),t(null)},[e,a,t]);return(0,r.jsx)(b.f,{onClick:()=>{t((0,r.jsx)(w.f,{options:o,onSubmit:n,loading:d}))},disabled:d||s,variant:"secondary",text:l(d?{id:"exporting",defaultMessage:"Exporting..."}:{id:"export",defaultMessage:"Export"})})};var _=e.i(72419);e.s(["default",0,({userId:e})=>{let{formatMessage:b}=(0,i.X)(),{setModal:h}=(0,k.f)(),{deleteUser:w}=(0,m.f)(),{user:C,extendedData:I}=(({userId:e=null}={})=>{let{customProperties:r,hydrateFragment:s}=(0,l.f)(),i=!e,{data:u,loading:c,error:f}=(0,d.f)(n,{skip:i,variables:{userId:e},fetchPolicy:"network-only"}),m=u?.user?._id===e?u.user:null,p=m?.viewerAllowedActions,k=e=>p?.includes(e)??!1,{data:y,loading:x,error:g}=(0,d.f)(((e="")=>a.a`
41
41
  query User(
42
42
  $userId: ID!
43
43
  $includePrivateInfos: Boolean!
@@ -158,4 +158,4 @@
158
158
  }
159
159
  }
160
160
  ${o.f}
161
- `)(r?.User),{skip:a||!m,variables:{userId:e,includePrivateInfos:k(t.C.ViewUserPrivateInfos),includeRoles:k(t.C.ViewUserRoles),includeOrders:k(t.C.ViewUserOrders)}}),b=m&&y?.user?._id===e?{...m,...y.user}:null,h=k(t.C.ViewUserPrivateInfos)?s(r?.User,b):null;return{user:b,loading:c||x,error:f||g,extendedData:h}})({userId:e}),$=(0,s.useRouter)(),M=C?.viewerAllowedActions?.includes(t.C.RemoveUser),j=(0,p.useCallback)(async()=>{await h((0,r.jsx)(y.f,{onCancelClick:async()=>h(""),message:b({id:"delete_user_account_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it "}),onOkClick:async()=>{h("");try{await w(C._id),x.toast.success(b({id:"user_deleted",defaultMessage:"User deleted successfully"})),$.push("/users")}catch(e){x.toast.error((0,_.f)(e,b))}},okText:b({id:"delete_user_account",defaultMessage:"Delete user"})}))},[C]);return(0,r.jsxs)("div",{className:" max-w-6xl",children:[(0,r.jsx)(u.f,{currentPageTitle:C?`${C?.name}`:""}),(0,r.jsx)(c.f,{headerText:(0,g.f)(C)||b({id:"users_setting_list_header",defaultMessage:"User settings"}),onDelete:!C?.deleted&&M?j:null,title:b({id:"user_detail_title",defaultMessage:"User {id}"},{id:C?.username}),children:(0,r.jsx)(v,{userId:e,disabled:!C})}),(0,r.jsx)(f.f,{user:C,extendedData:I})]})}],2385)}],36792,(e,r,s)=>{let t="/users/UserDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([t,()=>e.r(2385)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([t])})}]);
161
+ `)(r?.User),{skip:i||!m,variables:{userId:e,includePrivateInfos:k(t.C.ViewUserPrivateInfos),includeRoles:k(t.C.ViewUserRoles),includeOrders:k(t.C.ViewUserOrders)}}),b=m&&y?.user?._id===e?{...m,...y.user}:null,h=k(t.C.ViewUserPrivateInfos)?s(r?.User,b):null;return{user:b,loading:c||x,error:f||g,extendedData:h}})({userId:e}),$=(0,s.useRouter)(),M=C?.viewerAllowedActions?.includes(t.C.RemoveUser),j=(0,p.useCallback)(async()=>{await h((0,r.jsx)(y.f,{onCancelClick:async()=>h(""),message:b({id:"delete_user_account_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it "}),onOkClick:async()=>{h("");try{await w(C._id),x.toast.success(b({id:"user_deleted",defaultMessage:"User deleted successfully"})),$.push("/users")}catch(e){x.toast.error((0,_.f)(e,b))}},okText:b({id:"delete_user_account",defaultMessage:"Delete user"})}))},[C]);return(0,r.jsxs)("div",{className:" max-w-6xl",children:[(0,r.jsx)(u.f,{currentPageTitle:C?`${C?.name}`:""}),(0,r.jsx)(c.f,{headerText:(0,g.f)(C)||b({id:"users_setting_list_header",defaultMessage:"User settings"}),onDelete:!C?.deleted&&M?j:null,title:b({id:"user_detail_title",defaultMessage:"User {id}"},{id:C?.username}),children:(0,r.jsx)(v,{userId:e,disabled:!C})}),(0,r.jsx)(f.f,{user:C,extendedData:I})]})}],2385)}]);
@@ -0,0 +1,5 @@
1
+ __turbopack_load_page_chunks__("/language/LanguageDetailPage", [
2
+ "static/chunks/2apnv1hcv-4zc.js",
3
+ "static/chunks/1oqc8etm-romv.js",
4
+ "static/chunks/turbopack-077hmtqrhcoji.js"
5
+ ])