@opexa/portal-components 0.0.11 → 0.0.13

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 (533) hide show
  1. package/dist/{hooks → client/hooks}/useAccountQuery.d.ts +1 -1
  2. package/dist/client/hooks/useAccountQuery.js +1 -0
  3. package/dist/client/hooks/useAccountQuery.mjs +38 -0
  4. package/dist/{hooks → client/hooks}/useAuthenticateMutation.d.ts +1 -1
  5. package/dist/client/hooks/useAuthenticateMutation.js +1 -0
  6. package/dist/client/hooks/useAuthenticateMutation.mjs +24 -0
  7. package/dist/{hooks → client/hooks}/useAvailablePromosQuery.d.ts +1 -1
  8. package/dist/client/hooks/useAvailablePromosQuery.js +1 -0
  9. package/dist/client/hooks/useAvailablePromosQuery.mjs +38 -0
  10. package/dist/{hooks → client/hooks}/useBetRecordsQuery.d.ts +1 -1
  11. package/dist/client/hooks/useBetRecordsQuery.js +1 -0
  12. package/dist/client/hooks/useBetRecordsQuery.mjs +47 -0
  13. package/dist/{hooks → client/hooks}/useCashbacksQuery.d.ts +1 -1
  14. package/dist/client/hooks/useCashbacksQuery.js +1 -0
  15. package/dist/client/hooks/useCashbacksQuery.mjs +23 -0
  16. package/dist/{hooks → client/hooks}/useCreateGCashDepositMutation.d.ts +1 -1
  17. package/dist/client/hooks/useCreateGCashDepositMutation.js +1 -0
  18. package/dist/{hooks → client/hooks}/useCreateGCashDepositMutation.mjs +16 -19
  19. package/dist/{hooks → client/hooks}/useCreateGameSessionMutation.d.ts +1 -1
  20. package/dist/client/hooks/useCreateGameSessionMutation.js +1 -0
  21. package/dist/{hooks → client/hooks}/useCreateGameSessionMutation.mjs +21 -24
  22. package/dist/{hooks → client/hooks}/useCreateMayaAppDepositMutation.d.ts +1 -1
  23. package/dist/client/hooks/useCreateMayaAppDepositMutation.js +1 -0
  24. package/dist/client/hooks/useCreateMayaAppDepositMutation.mjs +66 -0
  25. package/dist/{hooks → client/hooks}/useCreateMayaDepositMutation.d.ts +1 -1
  26. package/dist/client/hooks/useCreateMayaDepositMutation.js +1 -0
  27. package/dist/client/hooks/useCreateMayaDepositMutation.mjs +66 -0
  28. package/dist/{hooks → client/hooks}/useCreateOnlineBankDepositMutation.d.ts +1 -1
  29. package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +1 -0
  30. package/dist/{hooks → client/hooks}/useCreateOnlineBankDepositMutation.mjs +15 -18
  31. package/dist/{hooks → client/hooks}/useCreateQRPHDepositMutation.d.ts +1 -1
  32. package/dist/client/hooks/useCreateQRPHDepositMutation.js +1 -0
  33. package/dist/{hooks → client/hooks}/useCreateQRPHDepositMutation.mjs +15 -18
  34. package/dist/{hooks → client/hooks}/useDepositQuery.d.ts +1 -1
  35. package/dist/client/hooks/useDepositQuery.js +1 -0
  36. package/dist/client/hooks/useDepositQuery.mjs +39 -0
  37. package/dist/{hooks → client/hooks}/useDepositRecordsQuery.d.ts +1 -1
  38. package/dist/client/hooks/useDepositRecordsQuery.js +1 -0
  39. package/dist/client/hooks/useDepositRecordsQuery.mjs +47 -0
  40. package/dist/{hooks → client/hooks}/useDepositsCountQuery.d.ts +1 -1
  41. package/dist/client/hooks/useDepositsCountQuery.js +1 -0
  42. package/dist/client/hooks/useDepositsCountQuery.mjs +38 -0
  43. package/dist/{hooks → client/hooks}/useEndGameSessionMutation.d.ts +1 -1
  44. package/dist/client/hooks/useEndGameSessionMutation.js +1 -0
  45. package/dist/{hooks → client/hooks}/useEndGameSessionMutation.mjs +12 -15
  46. package/dist/{hooks → client/hooks}/useGamesQuery.d.ts +1 -1
  47. package/dist/client/hooks/useGamesQuery.js +1 -0
  48. package/dist/client/hooks/useGamesQuery.mjs +39 -0
  49. package/dist/{hooks → client/hooks}/useInfiniteQueryHelper.d.ts +1 -1
  50. package/dist/{hooks → client/hooks}/useInstapayBankListQuery.d.ts +1 -1
  51. package/dist/client/hooks/useInstapayBankListQuery.js +1 -0
  52. package/dist/client/hooks/useInstapayBankListQuery.mjs +38 -0
  53. package/dist/{hooks → client/hooks}/useIsMayaSessionValidQuery.d.ts +1 -1
  54. package/dist/client/hooks/useIsMayaSessionValidQuery.js +1 -0
  55. package/dist/client/hooks/useIsMayaSessionValidQuery.mjs +48 -0
  56. package/dist/{hooks → client/hooks}/useJackpotsQuery.d.ts +1 -1
  57. package/dist/client/hooks/useJackpotsQuery.js +1 -0
  58. package/dist/client/hooks/useJackpotsQuery.mjs +31 -0
  59. package/dist/client/hooks/useLocaleInfo.d.ts +1 -0
  60. package/dist/client/hooks/useLocaleInfo.js +1 -0
  61. package/dist/client/hooks/useLocaleInfo.mjs +15 -0
  62. package/dist/{hooks → client/hooks}/useMemberVerificationQuery.d.ts +1 -1
  63. package/dist/client/hooks/useMemberVerificationQuery.js +1 -0
  64. package/dist/client/hooks/useMemberVerificationQuery.mjs +38 -0
  65. package/dist/{hooks → client/hooks}/usePaymentSettingsQuery.d.ts +1 -1
  66. package/dist/client/hooks/usePaymentSettingsQuery.js +1 -0
  67. package/dist/client/hooks/usePaymentSettingsQuery.mjs +38 -0
  68. package/dist/{hooks → client/hooks}/usePlatformQuery.d.ts +1 -1
  69. package/dist/client/hooks/usePlatformQuery.js +1 -0
  70. package/dist/client/hooks/usePlatformQuery.mjs +21 -0
  71. package/dist/{hooks → client/hooks}/usePromoQuery.d.ts +1 -1
  72. package/dist/client/hooks/usePromoQuery.js +1 -0
  73. package/dist/client/hooks/usePromoQuery.mjs +24 -0
  74. package/dist/{hooks → client/hooks}/usePromosQuery.d.ts +1 -1
  75. package/dist/client/hooks/usePromosQuery.js +1 -0
  76. package/dist/client/hooks/usePromosQuery.mjs +23 -0
  77. package/dist/{hooks → client/hooks}/useSendVerificationCodeMutation.d.ts +1 -1
  78. package/dist/client/hooks/useSendVerificationCodeMutation.js +1 -0
  79. package/dist/client/hooks/useSendVerificationCodeMutation.mjs +24 -0
  80. package/dist/{hooks → client/hooks}/useSessionQuery.d.ts +1 -1
  81. package/dist/client/hooks/useSessionQuery.js +1 -0
  82. package/dist/client/hooks/useSessionQuery.mjs +19 -0
  83. package/dist/{hooks → client/hooks}/useSignInMutation.d.ts +1 -1
  84. package/dist/client/hooks/useSignInMutation.js +1 -0
  85. package/dist/client/hooks/useSignInMutation.mjs +25 -0
  86. package/dist/{hooks → client/hooks}/useSignOutMutation.d.ts +1 -1
  87. package/dist/client/hooks/useSignOutMutation.js +1 -0
  88. package/dist/client/hooks/useSignOutMutation.mjs +22 -0
  89. package/dist/{hooks → client/hooks}/useSignUpMutation.d.ts +1 -1
  90. package/dist/client/hooks/useSignUpMutation.js +1 -0
  91. package/dist/client/hooks/useSignUpMutation.mjs +25 -0
  92. package/dist/{hooks → client/hooks}/useSiteQuery.d.ts +1 -1
  93. package/dist/client/hooks/useSiteQuery.js +1 -0
  94. package/dist/client/hooks/useSiteQuery.mjs +23 -0
  95. package/dist/{hooks → client/hooks}/useTopWinsQuery.d.ts +1 -1
  96. package/dist/client/hooks/useTopWinsQuery.js +1 -0
  97. package/dist/client/hooks/useTopWinsQuery.mjs +22 -0
  98. package/dist/{hooks → client/hooks}/useTournamentsQuery.d.ts +1 -1
  99. package/dist/client/hooks/useTournamentsQuery.js +1 -0
  100. package/dist/client/hooks/useTournamentsQuery.mjs +32 -0
  101. package/dist/{hooks → client/hooks}/useTransactionRecordsQuery.d.ts +1 -1
  102. package/dist/client/hooks/useTransactionRecordsQuery.js +1 -0
  103. package/dist/{hooks → client/hooks}/useTransactionRecordsQuery.mjs +17 -20
  104. package/dist/{hooks → client/hooks}/useWalletQuery.d.ts +1 -1
  105. package/dist/client/hooks/useWalletQuery.js +1 -0
  106. package/dist/client/hooks/useWalletQuery.mjs +38 -0
  107. package/dist/{hooks → client/hooks}/useWithdrawalRecordsQuery.d.ts +1 -1
  108. package/dist/client/hooks/useWithdrawalRecordsQuery.js +1 -0
  109. package/dist/client/hooks/useWithdrawalRecordsQuery.mjs +47 -0
  110. package/dist/client/services/authenticate.js +1 -0
  111. package/dist/{services → client/services}/authenticate.mjs +1 -1
  112. package/dist/{services → client/services}/getSession.d.ts +1 -1
  113. package/dist/client/services/signIn.js +1 -0
  114. package/dist/{services → client/services}/signIn.mjs +1 -1
  115. package/dist/client/utils/createRecipeContext.js +1 -0
  116. package/dist/client/utils/createRecipeContext.mjs +55 -0
  117. package/dist/client/utils/index.d.ts +2 -0
  118. package/dist/client/utils/toaster.d.ts +2 -0
  119. package/dist/client/utils/toaster.js +1 -0
  120. package/dist/client/utils/toaster.mjs +11 -0
  121. package/dist/client-hooks.d.ts +2 -0
  122. package/dist/client-hooks.js +1 -0
  123. package/dist/client-hooks.mjs +88 -0
  124. package/dist/client-services.d.ts +2 -0
  125. package/dist/client-services.js +1 -0
  126. package/dist/client-services.mjs +10 -0
  127. package/dist/client-utils.d.ts +2 -0
  128. package/dist/client-utils.js +1 -0
  129. package/dist/client-utils.mjs +6 -0
  130. package/dist/components/Account/Account.js +1 -1
  131. package/dist/components/Account/Account.mjs +21 -22
  132. package/dist/components/Banner/Banner.js +1 -1
  133. package/dist/components/Banner/Banner.mjs +16 -17
  134. package/dist/components/BetRecords/BetRecords.js +1 -1
  135. package/dist/components/BetRecords/BetRecords.mjs +7 -8
  136. package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
  137. package/dist/components/DepositWithdrawal/AmountChoices.mjs +11 -12
  138. package/dist/components/DepositWithdrawal/AvailablePromos.js +1 -1
  139. package/dist/components/DepositWithdrawal/AvailablePromos.mjs +21 -22
  140. package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
  141. package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +31 -55
  142. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
  143. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +43 -43
  144. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
  145. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +48 -48
  146. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
  147. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +43 -43
  148. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
  149. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +10 -11
  150. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
  151. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +6 -8
  152. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
  153. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +10 -10
  154. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
  155. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +9 -10
  156. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
  157. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +6 -8
  158. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
  159. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +6 -8
  160. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
  161. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +10 -10
  162. package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
  163. package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +29 -30
  164. package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
  165. package/dist/components/DepositWithdrawal/PaymentMethods.mjs +11 -12
  166. package/dist/components/Disclaimer/Disclaimer.js +1 -1
  167. package/dist/components/Disclaimer/Disclaimer.mjs +2 -3
  168. package/dist/components/Disclaimer/useDisclaimer.js +1 -1
  169. package/dist/components/Disclaimer/useDisclaimer.mjs +5 -5
  170. package/dist/components/GameLaunch/GameLaunch.js +1 -1
  171. package/dist/components/GameLaunch/GameLaunch.mjs +34 -35
  172. package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
  173. package/dist/components/GameLaunch/GameLaunchTrigger.mjs +12 -12
  174. package/dist/components/Games/Games.client.d.ts +2 -0
  175. package/dist/components/Games/Games.client.js +1 -0
  176. package/dist/components/Games/Games.client.mjs +150 -0
  177. package/dist/components/Games/Games.d.ts +1 -1
  178. package/dist/components/Games/Games.js +1 -1
  179. package/dist/components/Games/Games.mjs +11 -140
  180. package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
  181. package/dist/components/JackpotCounter/JackpotCounter.mjs +6 -7
  182. package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
  183. package/dist/components/JackpotCounter/JackpotCounterItem.mjs +15 -16
  184. package/dist/components/PortalProvider/PortalProvider.d.ts +1 -1
  185. package/dist/components/PortalProvider/PortalProvider.js +1 -1
  186. package/dist/components/PortalProvider/PortalProvider.mjs +18 -58
  187. package/dist/components/PortalProvider/Providers.d.ts +2 -0
  188. package/dist/components/PortalProvider/Providers.js +1 -0
  189. package/dist/components/PortalProvider/Providers.mjs +65 -0
  190. package/dist/components/Promo/PromoContent.js +1 -1
  191. package/dist/components/Promo/PromoContent.mjs +7 -8
  192. package/dist/components/Promos/PromoCarousel.js +1 -1
  193. package/dist/components/Promos/PromoCarousel.mjs +17 -18
  194. package/dist/components/Promos/PromoGrid.js +1 -1
  195. package/dist/components/Promos/PromoGrid.mjs +11 -12
  196. package/dist/components/Promos/PromoItem.js +1 -1
  197. package/dist/components/Promos/PromoItem.mjs +2 -4
  198. package/dist/components/Protected/Protected.js +1 -1
  199. package/dist/components/Protected/Protected.mjs +7 -9
  200. package/dist/components/SignIn/SignIn.js +1 -1
  201. package/dist/components/SignIn/SignIn.mjs +17 -18
  202. package/dist/components/SignIn/SignInForm.js +1 -1
  203. package/dist/components/SignIn/SignInForm.mjs +33 -33
  204. package/dist/components/SignUp/SignUp.js +1 -1
  205. package/dist/components/SignUp/SignUp.mjs +27 -28
  206. package/dist/components/SignUp/SignUpForm.js +1 -1
  207. package/dist/components/SignUp/SignUpForm.mjs +30 -30
  208. package/dist/components/TopWins/TopWins.client.d.ts +2 -0
  209. package/dist/components/TopWins/TopWins.client.js +1 -0
  210. package/dist/components/TopWins/TopWins.client.mjs +64 -0
  211. package/dist/components/TopWins/TopWins.d.ts +1 -1
  212. package/dist/components/TopWins/TopWins.js +1 -1
  213. package/dist/components/TopWins/TopWins.mjs +12 -61
  214. package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
  215. package/dist/components/TournamentCounter/TournamentCounter.mjs +6 -7
  216. package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
  217. package/dist/components/TournamentCounter/TournamentCounterItem.mjs +6 -7
  218. package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
  219. package/dist/components/TransactionRecords/DepositRecordsTable.mjs +7 -8
  220. package/dist/components/TransactionRecords/TableFilters.js +1 -1
  221. package/dist/components/TransactionRecords/TableFilters.mjs +6 -7
  222. package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
  223. package/dist/components/TransactionRecords/TransactionRecords.mjs +4 -6
  224. package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
  225. package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +7 -8
  226. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
  227. package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +7 -8
  228. package/dist/components/index.d.ts +0 -1
  229. package/dist/components.js +1 -1
  230. package/dist/components.mjs +34 -39
  231. package/dist/dist/constants/index.js +1 -0
  232. package/dist/dist/constants/index.mjs +27 -0
  233. package/dist/dist/server/utils/prefetchTopWinsQuery.js +1 -0
  234. package/dist/dist/server/utils/prefetchTopWinsQuery.mjs +22 -0
  235. package/dist/dist/utils/getLocaleInfo.js +1 -0
  236. package/dist/dist/utils/getLocaleInfo.mjs +397 -0
  237. package/dist/dist/utils/getQueryClient.js +1 -0
  238. package/dist/dist/utils/getQueryClient.mjs +23 -0
  239. package/dist/dist/utils/isMobile.js +1 -0
  240. package/dist/dist/utils/isMobile.mjs +7 -0
  241. package/dist/dist/utils/parseDecimal.js +1 -0
  242. package/dist/dist/utils/parseDecimal.mjs +8 -0
  243. package/dist/dist/utils/queryKeys.js +1 -0
  244. package/dist/dist/utils/queryKeys.mjs +4 -0
  245. package/dist/handlers.d.ts +1 -1
  246. package/dist/server/utils/prefetchAccountQuery.js +1 -1
  247. package/dist/server/utils/prefetchAccountQuery.mjs +9 -12
  248. package/dist/server/utils/prefetchAvailablePromosQuery.js +1 -1
  249. package/dist/server/utils/prefetchAvailablePromosQuery.mjs +10 -13
  250. package/dist/server/utils/prefetchBetRecordsQuery.js +1 -1
  251. package/dist/server/utils/prefetchBetRecordsQuery.mjs +8 -11
  252. package/dist/server/utils/prefetchCashbacksQuery.js +1 -1
  253. package/dist/server/utils/prefetchCashbacksQuery.mjs +10 -13
  254. package/dist/server/utils/prefetchDepositQuery.js +1 -1
  255. package/dist/server/utils/prefetchDepositQuery.mjs +13 -16
  256. package/dist/server/utils/prefetchDepositRecordsQuery.js +1 -1
  257. package/dist/server/utils/prefetchDepositRecordsQuery.mjs +13 -16
  258. package/dist/server/utils/prefetchGamesQuery.js +1 -1
  259. package/dist/server/utils/prefetchGamesQuery.mjs +9 -12
  260. package/dist/server/utils/prefetchInstapayBankListQuery.js +1 -1
  261. package/dist/server/utils/prefetchInstapayBankListQuery.mjs +8 -11
  262. package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +1 -1
  263. package/dist/server/utils/prefetchIsMayaSessionValidQuery.mjs +12 -15
  264. package/dist/server/utils/prefetchJackpotsQuery.js +1 -1
  265. package/dist/server/utils/prefetchJackpotsQuery.mjs +9 -12
  266. package/dist/server/utils/prefetchMemberVerificationQuery.js +1 -1
  267. package/dist/server/utils/prefetchMemberVerificationQuery.mjs +8 -11
  268. package/dist/server/utils/prefetchPaymentSettingsQuery.js +1 -1
  269. package/dist/server/utils/prefetchPaymentSettingsQuery.mjs +2 -5
  270. package/dist/server/utils/prefetchPlatformQuery.js +1 -1
  271. package/dist/server/utils/prefetchPlatformQuery.mjs +2 -5
  272. package/dist/server/utils/prefetchPromoQuery.js +1 -1
  273. package/dist/server/utils/prefetchPromoQuery.mjs +7 -10
  274. package/dist/server/utils/prefetchPromosQuery.js +1 -1
  275. package/dist/server/utils/prefetchPromosQuery.mjs +7 -10
  276. package/dist/server/utils/prefetchSessionQuery.js +1 -1
  277. package/dist/server/utils/prefetchSessionQuery.mjs +2 -5
  278. package/dist/server/utils/prefetchSiteQuery.js +1 -1
  279. package/dist/server/utils/prefetchSiteQuery.mjs +6 -9
  280. package/dist/server/utils/prefetchTopWinsQuery.js +1 -1
  281. package/dist/server/utils/prefetchTopWinsQuery.mjs +6 -9
  282. package/dist/server/utils/prefetchTournamentsQuery.js +1 -1
  283. package/dist/server/utils/prefetchTournamentsQuery.mjs +2 -5
  284. package/dist/server/utils/prefetchTransactionRecordsQuery.js +1 -1
  285. package/dist/server/utils/prefetchTransactionRecordsQuery.mjs +6 -9
  286. package/dist/server/utils/prefetchWalletQuery.js +1 -1
  287. package/dist/server/utils/prefetchWalletQuery.mjs +11 -14
  288. package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +1 -1
  289. package/dist/server/utils/prefetchWithdrawalRecordsQuery.mjs +2 -5
  290. package/dist/ui/AlertDialog/AlertDialog.js +1 -1
  291. package/dist/ui/AlertDialog/AlertDialog.mjs +15 -21
  292. package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
  293. package/dist/ui/AlertDialog/alertDialog.recipe.mjs +2 -5
  294. package/dist/ui/Avatar/Avatar.js +1 -1
  295. package/dist/ui/Avatar/Avatar.mjs +8 -14
  296. package/dist/ui/Avatar/avatar.recipe.js +1 -1
  297. package/dist/ui/Avatar/avatar.recipe.mjs +5 -8
  298. package/dist/ui/Badge/Badge.js +1 -1
  299. package/dist/ui/Badge/Badge.mjs +10 -16
  300. package/dist/ui/Badge/badge.recipe.js +1 -1
  301. package/dist/ui/Badge/badge.recipe.mjs +2 -5
  302. package/dist/ui/Button/Button.js +1 -1
  303. package/dist/ui/Button/Button.mjs +2 -4
  304. package/dist/ui/Checkbox/Checkbox.js +1 -1
  305. package/dist/ui/Checkbox/Checkbox.mjs +12 -18
  306. package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
  307. package/dist/ui/Checkbox/checkbox.recipe.mjs +5 -8
  308. package/dist/ui/Clipboard/Clipboard.js +1 -1
  309. package/dist/ui/Clipboard/Clipboard.mjs +11 -17
  310. package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
  311. package/dist/ui/Clipboard/clipboard.recipe.mjs +2 -5
  312. package/dist/ui/DatePicker/DatePicker.js +1 -1
  313. package/dist/ui/DatePicker/DatePicker.mjs +31 -37
  314. package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
  315. package/dist/ui/DatePicker/datePicker.recipe.mjs +2 -5
  316. package/dist/ui/Dialog/Dialog.js +1 -1
  317. package/dist/ui/Dialog/Dialog.mjs +15 -21
  318. package/dist/ui/Dialog/dialog.recipe.js +1 -1
  319. package/dist/ui/Dialog/dialog.recipe.mjs +2 -5
  320. package/dist/ui/Drawer/Drawer.js +1 -1
  321. package/dist/ui/Drawer/Drawer.mjs +15 -21
  322. package/dist/ui/Drawer/drawer.recipe.js +1 -1
  323. package/dist/ui/Drawer/drawer.recipe.mjs +5 -8
  324. package/dist/ui/Field/Field.js +1 -1
  325. package/dist/ui/Field/Field.mjs +11 -17
  326. package/dist/ui/Field/field.recipe.js +1 -1
  327. package/dist/ui/Field/field.recipe.mjs +2 -5
  328. package/dist/ui/IconButton/IconButton.js +1 -1
  329. package/dist/ui/IconButton/IconButton.mjs +2 -4
  330. package/dist/ui/NumberInput/NumberInput.js +1 -1
  331. package/dist/ui/NumberInput/NumberInput.mjs +17 -23
  332. package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
  333. package/dist/ui/NumberInput/numberInput.recipe.mjs +2 -5
  334. package/dist/ui/PinInput/PinInput.js +1 -1
  335. package/dist/ui/PinInput/PinInput.mjs +10 -16
  336. package/dist/ui/PinInput/pinInput.recipe.js +1 -1
  337. package/dist/ui/PinInput/pinInput.recipe.mjs +2 -5
  338. package/dist/ui/Popover/Popover.js +1 -1
  339. package/dist/ui/Popover/Popover.mjs +15 -21
  340. package/dist/ui/Popover/popover.recipe.js +1 -1
  341. package/dist/ui/Popover/popover.recipe.mjs +5 -8
  342. package/dist/ui/Presence.js +1 -1
  343. package/dist/ui/Presence.mjs +7 -6
  344. package/dist/ui/SegmentGroup/SegmentGroup.js +1 -1
  345. package/dist/ui/SegmentGroup/SegmentGroup.mjs +12 -18
  346. package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
  347. package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +4 -7
  348. package/dist/ui/Select/Select.js +1 -1
  349. package/dist/ui/Select/Select.mjs +23 -29
  350. package/dist/ui/Select/select.recipe.js +1 -1
  351. package/dist/ui/Select/select.recipe.mjs +5 -8
  352. package/dist/ui/Table/Table.js +1 -1
  353. package/dist/ui/Table/Table.mjs +10 -16
  354. package/dist/ui/Table/table.recipe.js +1 -1
  355. package/dist/ui/Table/table.recipe.mjs +2 -5
  356. package/dist/ui/Tabs/Tabs.js +1 -1
  357. package/dist/ui/Tabs/Tabs.mjs +10 -16
  358. package/dist/ui/Tabs/tabs.recipe.js +1 -1
  359. package/dist/ui/Tabs/tabs.recipe.mjs +4 -7
  360. package/dist/utils/index.d.ts +0 -2
  361. package/dist/utils.js +1 -1
  362. package/dist/utils.mjs +54 -58
  363. package/package.json +143 -128
  364. package/dist/_virtual/_commonjsHelpers.js +0 -1
  365. package/dist/_virtual/_commonjsHelpers.mjs +0 -8
  366. package/dist/_virtual/browser.js +0 -1
  367. package/dist/_virtual/browser.mjs +0 -5
  368. package/dist/_virtual/browser2.js +0 -1
  369. package/dist/_virtual/browser2.mjs +0 -7
  370. package/dist/_virtual/browser3.js +0 -1
  371. package/dist/_virtual/browser3.mjs +0 -4
  372. package/dist/_virtual/browser4.js +0 -1
  373. package/dist/_virtual/browser4.mjs +0 -4
  374. package/dist/_virtual/index.js +0 -1
  375. package/dist/_virtual/index.mjs +0 -7
  376. package/dist/_virtual/index2.js +0 -1
  377. package/dist/_virtual/index2.mjs +0 -4
  378. package/dist/_virtual/index3.js +0 -1
  379. package/dist/_virtual/index3.mjs +0 -4
  380. package/dist/_virtual/index4.js +0 -1
  381. package/dist/_virtual/index4.mjs +0 -4
  382. package/dist/_virtual/index5.js +0 -1
  383. package/dist/_virtual/index5.mjs +0 -4
  384. package/dist/components/FeatureFlagProvider/FeatureFlagContext.d.ts +0 -6
  385. package/dist/components/FeatureFlagProvider/FeatureFlagContext.js +0 -1
  386. package/dist/components/FeatureFlagProvider/FeatureFlagContext.mjs +0 -13
  387. package/dist/components/FeatureFlagProvider/FeatureFlagProvider.d.ts +0 -6
  388. package/dist/components/FeatureFlagProvider/FeatureFlagProvider.js +0 -1
  389. package/dist/components/FeatureFlagProvider/FeatureFlagProvider.mjs +0 -64
  390. package/dist/components/FeatureFlagProvider/index.d.ts +0 -2
  391. package/dist/components/FeatureFlagProvider/useFeatureFlag.d.ts +0 -8
  392. package/dist/components/FeatureFlagProvider/useFeatureFlag.js +0 -1
  393. package/dist/components/FeatureFlagProvider/useFeatureFlag.mjs +0 -22
  394. package/dist/hooks/useAccountQuery.js +0 -1
  395. package/dist/hooks/useAccountQuery.mjs +0 -41
  396. package/dist/hooks/useAuthenticateMutation.js +0 -1
  397. package/dist/hooks/useAuthenticateMutation.mjs +0 -27
  398. package/dist/hooks/useAvailablePromosQuery.js +0 -1
  399. package/dist/hooks/useAvailablePromosQuery.mjs +0 -41
  400. package/dist/hooks/useBetRecordsQuery.js +0 -1
  401. package/dist/hooks/useBetRecordsQuery.mjs +0 -50
  402. package/dist/hooks/useCashbacksQuery.js +0 -1
  403. package/dist/hooks/useCashbacksQuery.mjs +0 -26
  404. package/dist/hooks/useCreateGCashDepositMutation.js +0 -1
  405. package/dist/hooks/useCreateGameSessionMutation.js +0 -1
  406. package/dist/hooks/useCreateMayaAppDepositMutation.js +0 -1
  407. package/dist/hooks/useCreateMayaAppDepositMutation.mjs +0 -69
  408. package/dist/hooks/useCreateMayaDepositMutation.js +0 -1
  409. package/dist/hooks/useCreateMayaDepositMutation.mjs +0 -69
  410. package/dist/hooks/useCreateOnlineBankDepositMutation.js +0 -1
  411. package/dist/hooks/useCreateQRPHDepositMutation.js +0 -1
  412. package/dist/hooks/useDepositQuery.js +0 -1
  413. package/dist/hooks/useDepositQuery.mjs +0 -42
  414. package/dist/hooks/useDepositRecordsQuery.js +0 -1
  415. package/dist/hooks/useDepositRecordsQuery.mjs +0 -50
  416. package/dist/hooks/useDepositsCountQuery.js +0 -1
  417. package/dist/hooks/useDepositsCountQuery.mjs +0 -41
  418. package/dist/hooks/useEndGameSessionMutation.js +0 -1
  419. package/dist/hooks/useGamesQuery.js +0 -1
  420. package/dist/hooks/useGamesQuery.mjs +0 -42
  421. package/dist/hooks/useInstapayBankListQuery.js +0 -1
  422. package/dist/hooks/useInstapayBankListQuery.mjs +0 -41
  423. package/dist/hooks/useIsMayaSessionValidQuery.js +0 -1
  424. package/dist/hooks/useIsMayaSessionValidQuery.mjs +0 -51
  425. package/dist/hooks/useJackpotsQuery.js +0 -1
  426. package/dist/hooks/useJackpotsQuery.mjs +0 -34
  427. package/dist/hooks/useLocaleInfo.d.ts +0 -1
  428. package/dist/hooks/useLocaleInfo.js +0 -1
  429. package/dist/hooks/useLocaleInfo.mjs +0 -18
  430. package/dist/hooks/useMemberVerificationQuery.js +0 -1
  431. package/dist/hooks/useMemberVerificationQuery.mjs +0 -41
  432. package/dist/hooks/usePaymentSettingsQuery.js +0 -1
  433. package/dist/hooks/usePaymentSettingsQuery.mjs +0 -41
  434. package/dist/hooks/usePlatformQuery.js +0 -1
  435. package/dist/hooks/usePlatformQuery.mjs +0 -24
  436. package/dist/hooks/usePromoQuery.js +0 -1
  437. package/dist/hooks/usePromoQuery.mjs +0 -27
  438. package/dist/hooks/usePromosQuery.js +0 -1
  439. package/dist/hooks/usePromosQuery.mjs +0 -26
  440. package/dist/hooks/useSendVerificationCodeMutation.js +0 -1
  441. package/dist/hooks/useSendVerificationCodeMutation.mjs +0 -27
  442. package/dist/hooks/useSessionQuery.js +0 -1
  443. package/dist/hooks/useSessionQuery.mjs +0 -22
  444. package/dist/hooks/useSignInMutation.js +0 -1
  445. package/dist/hooks/useSignInMutation.mjs +0 -28
  446. package/dist/hooks/useSignOutMutation.js +0 -1
  447. package/dist/hooks/useSignOutMutation.mjs +0 -25
  448. package/dist/hooks/useSignUpMutation.js +0 -1
  449. package/dist/hooks/useSignUpMutation.mjs +0 -28
  450. package/dist/hooks/useSiteQuery.js +0 -1
  451. package/dist/hooks/useSiteQuery.mjs +0 -26
  452. package/dist/hooks/useTopWinsQuery.js +0 -1
  453. package/dist/hooks/useTopWinsQuery.mjs +0 -25
  454. package/dist/hooks/useTournamentsQuery.js +0 -1
  455. package/dist/hooks/useTournamentsQuery.mjs +0 -35
  456. package/dist/hooks/useTransactionRecordsQuery.js +0 -1
  457. package/dist/hooks/useWalletQuery.js +0 -1
  458. package/dist/hooks/useWalletQuery.mjs +0 -41
  459. package/dist/hooks/useWithdrawalRecordsQuery.js +0 -1
  460. package/dist/hooks/useWithdrawalRecordsQuery.mjs +0 -50
  461. package/dist/hooks.d.ts +0 -2
  462. package/dist/hooks.js +0 -1
  463. package/dist/hooks.mjs +0 -88
  464. package/dist/node_modules/.pnpm/@ark-ui_react@5.9.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@ark-ui/react/dist/components/toast/create-toaster.js +0 -1
  465. package/dist/node_modules/.pnpm/@ark-ui_react@5.9.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@ark-ui/react/dist/components/toast/create-toaster.mjs +0 -6
  466. package/dist/node_modules/.pnpm/@opexa_portal-sdk-core@0.0.22/node_modules/@opexa/portal-sdk-core/dist/object-id.js +0 -1
  467. package/dist/node_modules/.pnpm/@opexa_portal-sdk-core@0.0.22/node_modules/@opexa/portal-sdk-core/dist/object-id.mjs +0 -66
  468. package/dist/node_modules/.pnpm/@zag-js_anatomy@1.12.4/node_modules/@zag-js/anatomy/dist/index.js +0 -1
  469. package/dist/node_modules/.pnpm/@zag-js_anatomy@1.12.4/node_modules/@zag-js/anatomy/dist/index.mjs +0 -25
  470. package/dist/node_modules/.pnpm/@zag-js_toast@1.12.4/node_modules/@zag-js/toast/dist/index.js +0 -1
  471. package/dist/node_modules/.pnpm/@zag-js_toast@1.12.4/node_modules/@zag-js/toast/dist/index.mjs +0 -123
  472. package/dist/node_modules/.pnpm/@zag-js_utils@1.12.4/node_modules/@zag-js/utils/dist/index.js +0 -1
  473. package/dist/node_modules/.pnpm/@zag-js_utils@1.12.4/node_modules/@zag-js/utils/dist/index.mjs +0 -21
  474. package/dist/node_modules/.pnpm/base-x@4.0.0/node_modules/base-x/src/index.js +0 -1
  475. package/dist/node_modules/.pnpm/base-x@4.0.0/node_modules/base-x/src/index.mjs +0 -76
  476. package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js +0 -1
  477. package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.mjs +0 -52
  478. package/dist/node_modules/.pnpm/bs58@5.0.0/node_modules/bs58/index.js +0 -1
  479. package/dist/node_modules/.pnpm/bs58@5.0.0/node_modules/bs58/index.mjs +0 -8
  480. package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js +0 -6
  481. package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.mjs +0 -953
  482. package/dist/node_modules/.pnpm/crypto-hash@1.3.0/node_modules/crypto-hash/browser.js +0 -1
  483. package/dist/node_modules/.pnpm/crypto-hash@1.3.0/node_modules/crypto-hash/browser.mjs +0 -34
  484. package/dist/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js +0 -1
  485. package/dist/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.mjs +0 -30
  486. package/dist/node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/browser.js +0 -2
  487. package/dist/node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/browser.mjs +0 -32
  488. package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js +0 -1
  489. package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.mjs +0 -38
  490. package/dist/node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/react/shallow.js +0 -1
  491. package/dist/node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/react/shallow.mjs +0 -12
  492. package/dist/node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/vanilla/shallow.js +0 -1
  493. package/dist/node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/vanilla/shallow.mjs +0 -30
  494. package/dist/services/authenticate.js +0 -1
  495. package/dist/services/signIn.js +0 -1
  496. package/dist/services.d.ts +0 -2
  497. package/dist/services.js +0 -1
  498. package/dist/services.mjs +0 -10
  499. package/dist/utils/createRecipeContext.js +0 -1
  500. package/dist/utils/createRecipeContext.mjs +0 -49
  501. package/dist/utils/toaster.d.ts +0 -2
  502. package/dist/utils/toaster.js +0 -1
  503. package/dist/utils/toaster.mjs +0 -11
  504. /package/dist/{hooks → client/hooks}/index.d.ts +0 -0
  505. /package/dist/{hooks → client/hooks}/useControllableState.d.ts +0 -0
  506. /package/dist/{hooks → client/hooks}/useControllableState.js +0 -0
  507. /package/dist/{hooks → client/hooks}/useControllableState.mjs +0 -0
  508. /package/dist/{hooks → client/hooks}/useCooldown.d.ts +0 -0
  509. /package/dist/{hooks → client/hooks}/useCooldown.js +0 -0
  510. /package/dist/{hooks → client/hooks}/useCooldown.mjs +0 -0
  511. /package/dist/{hooks → client/hooks}/useDisclosure.d.ts +0 -0
  512. /package/dist/{hooks → client/hooks}/useDisclosure.js +0 -0
  513. /package/dist/{hooks → client/hooks}/useDisclosure.mjs +0 -0
  514. /package/dist/{hooks → client/hooks}/useGlobalStore.d.ts +0 -0
  515. /package/dist/{hooks → client/hooks}/useGlobalStore.js +0 -0
  516. /package/dist/{hooks → client/hooks}/useGlobalStore.mjs +0 -0
  517. /package/dist/{hooks → client/hooks}/useInfiniteQueryHelper.js +0 -0
  518. /package/dist/{hooks → client/hooks}/useInfiniteQueryHelper.mjs +0 -0
  519. /package/dist/{hooks → client/hooks}/useMobileNumberParser.d.ts +0 -0
  520. /package/dist/{hooks → client/hooks}/useMobileNumberParser.js +0 -0
  521. /package/dist/{hooks → client/hooks}/useMobileNumberParser.mjs +0 -0
  522. /package/dist/{hooks → client/hooks}/useOnMMA.d.ts +0 -0
  523. /package/dist/{hooks → client/hooks}/useOnMMA.js +0 -0
  524. /package/dist/{hooks → client/hooks}/useOnMMA.mjs +0 -0
  525. /package/dist/{services → client/services}/authenticate.d.ts +0 -0
  526. /package/dist/{services → client/services}/getSession.js +0 -0
  527. /package/dist/{services → client/services}/getSession.mjs +0 -0
  528. /package/dist/{services → client/services}/index.d.ts +0 -0
  529. /package/dist/{services → client/services}/signIn.d.ts +0 -0
  530. /package/dist/{services → client/services}/signOut.d.ts +0 -0
  531. /package/dist/{services → client/services}/signOut.js +0 -0
  532. /package/dist/{services → client/services}/signOut.mjs +0 -0
  533. /package/dist/{utils → client/utils}/createRecipeContext.d.ts +0 -0
@@ -1,6 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../../../../../_virtual/index3.js"),Fr=require("../../../base64-js@1.5.1/node_modules/base64-js/index.js"),Ur=require("../../../ieee754@1.2.1/node_modules/ieee754/index.js");/*!
2
- * The buffer module from node.js, for the browser.
3
- *
4
- * @author Feross Aboukhadijeh <https://feross.org>
5
- * @license MIT
6
- */var Z;function Ar(){return Z||(Z=1,function(d){const R=Fr.__require(),m=Ur.__require(),k=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;d.Buffer=u,d.SlowBuffer=nr,d.INSPECT_MAX_BYTES=50;const U=2147483647;d.kMaxLength=U,u.TYPED_ARRAY_SUPPORT=Q(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Q(){try{const i=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(i,r),i.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function x(i){if(i>U)throw new RangeError('The value "'+i+'" is invalid for option "size"');const r=new Uint8Array(i);return Object.setPrototypeOf(r,u.prototype),r}function u(i,r,t){if(typeof i=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return T(i)}return $(i,r,t)}u.poolSize=8192;function $(i,r,t){if(typeof i=="string")return rr(i,r);if(ArrayBuffer.isView(i))return tr(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(a(i,ArrayBuffer)||i&&a(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(a(i,SharedArrayBuffer)||i&&a(i.buffer,SharedArrayBuffer)))return S(i,r,t);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const n=i.valueOf&&i.valueOf();if(n!=null&&n!==i)return u.from(n,r,t);const e=ir(i);if(e)return e;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return u.from(i[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}u.from=function(i,r,t){return $(i,r,t)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function P(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function v(i,r,t){return P(i),i<=0?x(i):r!==void 0?typeof t=="string"?x(i).fill(r,t):x(i).fill(r):x(i)}u.alloc=function(i,r,t){return v(i,r,t)};function T(i){return P(i),x(i<0?0:C(i)|0)}u.allocUnsafe=function(i){return T(i)},u.allocUnsafeSlow=function(i){return T(i)};function rr(i,r){if((typeof r!="string"||r==="")&&(r="utf8"),!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);const t=M(i,r)|0;let n=x(t);const e=n.write(i,r);return e!==t&&(n=n.slice(0,e)),n}function _(i){const r=i.length<0?0:C(i.length)|0,t=x(r);for(let n=0;n<r;n+=1)t[n]=i[n]&255;return t}function tr(i){if(a(i,Uint8Array)){const r=new Uint8Array(i);return S(r.buffer,r.byteOffset,r.byteLength)}return _(i)}function S(i,r,t){if(r<0||i.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return r===void 0&&t===void 0?n=new Uint8Array(i):t===void 0?n=new Uint8Array(i,r):n=new Uint8Array(i,r,t),Object.setPrototypeOf(n,u.prototype),n}function ir(i){if(u.isBuffer(i)){const r=C(i.length)|0,t=x(r);return t.length===0||i.copy(t,0,0,r),t}if(i.length!==void 0)return typeof i.length!="number"||D(i.length)?x(0):_(i);if(i.type==="Buffer"&&Array.isArray(i.data))return _(i.data)}function C(i){if(i>=U)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+U.toString(16)+" bytes");return i|0}function nr(i){return+i!=i&&(i=0),u.alloc(+i)}u.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==u.prototype},u.compare=function(r,t){if(a(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),a(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(r)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,e=t.length;for(let o=0,h=Math.min(n,e);o<h;++o)if(r[o]!==t[o]){n=r[o],e=t[o];break}return n<e?-1:e<n?1:0},u.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;const e=u.allocUnsafe(t);let o=0;for(n=0;n<r.length;++n){let h=r[n];if(a(h,Uint8Array))o+h.length>e.length?(u.isBuffer(h)||(h=u.from(h)),h.copy(e,o)):Uint8Array.prototype.set.call(e,h,o);else if(u.isBuffer(h))h.copy(e,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=h.length}return e};function M(i,r){if(u.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||a(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);const t=i.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let e=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return L(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return K(i).length;default:if(e)return n?-1:L(i).length;r=(""+r).toLowerCase(),e=!0}}u.byteLength=M;function er(i,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(i||(i="utf8");;)switch(i){case"hex":return wr(this,r,t);case"utf8":case"utf-8":return G(this,r,t);case"ascii":return sr(this,r,t);case"latin1":case"binary":return yr(this,r,t);case"base64":return pr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ar(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function E(i,r,t){const n=i[r];i[r]=i[t],i[t]=n}u.prototype.swap16=function(){const r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)E(this,t,t+1);return this},u.prototype.swap32=function(){const r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)E(this,t,t+3),E(this,t+1,t+2);return this},u.prototype.swap64=function(){const r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)E(this,t,t+7),E(this,t+1,t+6),E(this,t+2,t+5),E(this,t+3,t+4);return this},u.prototype.toString=function(){const r=this.length;return r===0?"":arguments.length===0?G(this,0,r):er.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(r){if(!u.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0},u.prototype.inspect=function(){let r="";const t=d.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"},k&&(u.prototype[k]=u.prototype.inspect),u.prototype.compare=function(r,t,n,e,o){if(a(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),e===void 0&&(e=0),o===void 0&&(o=this.length),t<0||n>r.length||e<0||o>this.length)throw new RangeError("out of range index");if(e>=o&&t>=n)return 0;if(e>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,e>>>=0,o>>>=0,this===r)return 0;let h=o-e,f=n-t;const l=Math.min(h,f),p=this.slice(e,o),s=r.slice(t,n);for(let c=0;c<l;++c)if(p[c]!==s[c]){h=p[c],f=s[c];break}return h<f?-1:f<h?1:0};function O(i,r,t,n,e){if(i.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,D(t)&&(t=e?0:i.length-1),t<0&&(t=i.length+t),t>=i.length){if(e)return-1;t=i.length-1}else if(t<0)if(e)t=0;else return-1;if(typeof r=="string"&&(r=u.from(r,n)),u.isBuffer(r))return r.length===0?-1:q(i,r,t,n,e);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?e?Uint8Array.prototype.indexOf.call(i,r,t):Uint8Array.prototype.lastIndexOf.call(i,r,t):q(i,[r],t,n,e);throw new TypeError("val must be string, number or Buffer")}function q(i,r,t,n,e){let o=1,h=i.length,f=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(i.length<2||r.length<2)return-1;o=2,h/=2,f/=2,t/=2}function l(s,c){return o===1?s[c]:s.readUInt16BE(c*o)}let p;if(e){let s=-1;for(p=t;p<h;p++)if(l(i,p)===l(r,s===-1?0:p-s)){if(s===-1&&(s=p),p-s+1===f)return s*o}else s!==-1&&(p-=p-s),s=-1}else for(t+f>h&&(t=h-f),p=t;p>=0;p--){let s=!0;for(let c=0;c<f;c++)if(l(i,p+c)!==l(r,c)){s=!1;break}if(s)return p}return-1}u.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1},u.prototype.indexOf=function(r,t,n){return O(this,r,t,n,!0)},u.prototype.lastIndexOf=function(r,t,n){return O(this,r,t,n,!1)};function or(i,r,t,n){t=Number(t)||0;const e=i.length-t;n?(n=Number(n),n>e&&(n=e)):n=e;const o=r.length;n>o/2&&(n=o/2);let h;for(h=0;h<n;++h){const f=parseInt(r.substr(h*2,2),16);if(D(f))return h;i[t+h]=f}return h}function ur(i,r,t,n){return A(L(r,i.length-t),i,t,n)}function hr(i,r,t,n){return A(mr(r),i,t,n)}function fr(i,r,t,n){return A(K(r),i,t,n)}function cr(i,r,t,n){return A(gr(r,i.length-t),i,t,n)}u.prototype.write=function(r,t,n,e){if(t===void 0)e="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")e=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,e===void 0&&(e="utf8")):(e=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const o=this.length-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");let h=!1;for(;;)switch(e){case"hex":return or(this,r,t,n);case"utf8":case"utf-8":return ur(this,r,t,n);case"ascii":case"latin1":case"binary":return hr(this,r,t,n);case"base64":return fr(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return cr(this,r,t,n);default:if(h)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),h=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pr(i,r,t){return r===0&&t===i.length?R.fromByteArray(i):R.fromByteArray(i.slice(r,t))}function G(i,r,t){t=Math.min(i.length,t);const n=[];let e=r;for(;e<t;){const o=i[e];let h=null,f=o>239?4:o>223?3:o>191?2:1;if(e+f<=t){let l,p,s,c;switch(f){case 1:o<128&&(h=o);break;case 2:l=i[e+1],(l&192)===128&&(c=(o&31)<<6|l&63,c>127&&(h=c));break;case 3:l=i[e+1],p=i[e+2],(l&192)===128&&(p&192)===128&&(c=(o&15)<<12|(l&63)<<6|p&63,c>2047&&(c<55296||c>57343)&&(h=c));break;case 4:l=i[e+1],p=i[e+2],s=i[e+3],(l&192)===128&&(p&192)===128&&(s&192)===128&&(c=(o&15)<<18|(l&63)<<12|(p&63)<<6|s&63,c>65535&&c<1114112&&(h=c))}}h===null?(h=65533,f=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|h&1023),n.push(h),e+=f}return lr(n)}const Y=4096;function lr(i){const r=i.length;if(r<=Y)return String.fromCharCode.apply(String,i);let t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,i.slice(n,n+=Y));return t}function sr(i,r,t){let n="";t=Math.min(i.length,t);for(let e=r;e<t;++e)n+=String.fromCharCode(i[e]&127);return n}function yr(i,r,t){let n="";t=Math.min(i.length,t);for(let e=r;e<t;++e)n+=String.fromCharCode(i[e]);return n}function wr(i,r,t){const n=i.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);let e="";for(let o=r;o<t;++o)e+=Ir[i[o]];return e}function ar(i,r,t){const n=i.slice(r,t);let e="";for(let o=0;o<n.length-1;o+=2)e+=String.fromCharCode(n[o]+n[o+1]*256);return e}u.prototype.slice=function(r,t){const n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);const e=this.subarray(r,t);return Object.setPrototypeOf(e,u.prototype),e};function y(i,r,t){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+r>t)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);let e=this[r],o=1,h=0;for(;++h<t&&(o*=256);)e+=this[r+h]*o;return e},u.prototype.readUintBE=u.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);let e=this[r+--t],o=1;for(;t>0&&(o*=256);)e+=this[r+--t]*o;return e},u.prototype.readUint8=u.prototype.readUInt8=function(r,t){return r=r>>>0,t||y(r,1,this.length),this[r]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||y(r,2,this.length),this[r]|this[r+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||y(r,2,this.length),this[r]<<8|this[r+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||y(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||y(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},u.prototype.readBigUInt64LE=B(function(r){r=r>>>0,I(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&F(r,this.length-8);const e=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,o=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(e)+(BigInt(o)<<BigInt(32))}),u.prototype.readBigUInt64BE=B(function(r){r=r>>>0,I(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&F(r,this.length-8);const e=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],o=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return(BigInt(e)<<BigInt(32))+BigInt(o)}),u.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);let e=this[r],o=1,h=0;for(;++h<t&&(o*=256);)e+=this[r+h]*o;return o*=128,e>=o&&(e-=Math.pow(2,8*t)),e},u.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||y(r,t,this.length);let e=t,o=1,h=this[r+--e];for(;e>0&&(o*=256);)h+=this[r+--e]*o;return o*=128,h>=o&&(h-=Math.pow(2,8*t)),h},u.prototype.readInt8=function(r,t){return r=r>>>0,t||y(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},u.prototype.readInt16LE=function(r,t){r=r>>>0,t||y(r,2,this.length);const n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},u.prototype.readInt16BE=function(r,t){r=r>>>0,t||y(r,2,this.length);const n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},u.prototype.readInt32LE=function(r,t){return r=r>>>0,t||y(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},u.prototype.readInt32BE=function(r,t){return r=r>>>0,t||y(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},u.prototype.readBigInt64LE=B(function(r){r=r>>>0,I(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&F(r,this.length-8);const e=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return(BigInt(e)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),u.prototype.readBigInt64BE=B(function(r){r=r>>>0,I(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&F(r,this.length-8);const e=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(e)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n)}),u.prototype.readFloatLE=function(r,t){return r=r>>>0,t||y(r,4,this.length),m.read(this,r,!0,23,4)},u.prototype.readFloatBE=function(r,t){return r=r>>>0,t||y(r,4,this.length),m.read(this,r,!1,23,4)},u.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||y(r,8,this.length),m.read(this,r,!0,52,8)},u.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||y(r,8,this.length),m.read(this,r,!1,52,8)};function w(i,r,t,n,e,o){if(!u.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>e||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>i.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(r,t,n,e){if(r=+r,t=t>>>0,n=n>>>0,!e){const f=Math.pow(2,8*n)-1;w(this,r,t,n,f,0)}let o=1,h=0;for(this[t]=r&255;++h<n&&(o*=256);)this[t+h]=r/o&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(r,t,n,e){if(r=+r,t=t>>>0,n=n>>>0,!e){const f=Math.pow(2,8*n)-1;w(this,r,t,n,f,0)}let o=n-1,h=1;for(this[t+o]=r&255;--o>=0&&(h*=256);)this[t+o]=r/h&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,1,255,0),this[t]=r&255,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function W(i,r,t,n,e){J(r,n,e,i,t,7);let o=Number(r&BigInt(4294967295));i[t++]=o,o=o>>8,i[t++]=o,o=o>>8,i[t++]=o,o=o>>8,i[t++]=o;let h=Number(r>>BigInt(32)&BigInt(4294967295));return i[t++]=h,h=h>>8,i[t++]=h,h=h>>8,i[t++]=h,h=h>>8,i[t++]=h,t}function j(i,r,t,n,e){J(r,n,e,i,t,7);let o=Number(r&BigInt(4294967295));i[t+7]=o,o=o>>8,i[t+6]=o,o=o>>8,i[t+5]=o,o=o>>8,i[t+4]=o;let h=Number(r>>BigInt(32)&BigInt(4294967295));return i[t+3]=h,h=h>>8,i[t+2]=h,h=h>>8,i[t+1]=h,h=h>>8,i[t]=h,t+8}u.prototype.writeBigUInt64LE=B(function(r,t=0){return W(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=B(function(r,t=0){return j(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(r,t,n,e){if(r=+r,t=t>>>0,!e){const l=Math.pow(2,8*n-1);w(this,r,t,n,l-1,-l)}let o=0,h=1,f=0;for(this[t]=r&255;++o<n&&(h*=256);)r<0&&f===0&&this[t+o-1]!==0&&(f=1),this[t+o]=(r/h>>0)-f&255;return t+n},u.prototype.writeIntBE=function(r,t,n,e){if(r=+r,t=t>>>0,!e){const l=Math.pow(2,8*n-1);w(this,r,t,n,l-1,-l)}let o=n-1,h=1,f=0;for(this[t+o]=r&255;--o>=0&&(h*=256);)r<0&&f===0&&this[t+o+1]!==0&&(f=1),this[t+o]=(r/h>>0)-f&255;return t+n},u.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},u.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},u.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},u.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},u.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||w(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},u.prototype.writeBigInt64LE=B(function(r,t=0){return W(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=B(function(r,t=0){return j(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function V(i,r,t,n,e,o){if(t+n>i.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function X(i,r,t,n,e){return r=+r,t=t>>>0,e||V(i,r,t,4),m.write(i,r,t,n,23,4),t+4}u.prototype.writeFloatLE=function(r,t,n){return X(this,r,t,!0,n)},u.prototype.writeFloatBE=function(r,t,n){return X(this,r,t,!1,n)};function z(i,r,t,n,e){return r=+r,t=t>>>0,e||V(i,r,t,8),m.write(i,r,t,n,52,8),t+8}u.prototype.writeDoubleLE=function(r,t,n){return z(this,r,t,!0,n)},u.prototype.writeDoubleBE=function(r,t,n){return z(this,r,t,!1,n)},u.prototype.copy=function(r,t,n,e){if(!u.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!e&&e!==0&&(e=this.length),t>=r.length&&(t=r.length),t||(t=0),e>0&&e<n&&(e=n),e===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),r.length-t<e-n&&(e=r.length-t+n);const o=e-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,e):Uint8Array.prototype.set.call(r,this.subarray(n,e),t),o},u.prototype.fill=function(r,t,n,e){if(typeof r=="string"){if(typeof t=="string"?(e=t,t=0,n=this.length):typeof n=="string"&&(e=n,n=this.length),e!==void 0&&typeof e!="string")throw new TypeError("encoding must be a string");if(typeof e=="string"&&!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);if(r.length===1){const h=r.charCodeAt(0);(e==="utf8"&&h<128||e==="latin1")&&(r=h)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let o;if(typeof r=="number")for(o=t;o<n;++o)this[o]=r;else{const h=u.isBuffer(r)?r:u.from(r,e),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=h[o%f]}return this};const g={};function b(i,r,t){g[i]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${i}]`,this.stack,delete this.name}get code(){return i}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${i}]: ${this.message}`}}}b("ERR_BUFFER_OUT_OF_BOUNDS",function(i){return i?`${i} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),b("ERR_INVALID_ARG_TYPE",function(i,r){return`The "${i}" argument must be of type number. Received type ${typeof r}`},TypeError),b("ERR_OUT_OF_RANGE",function(i,r,t){let n=`The value of "${i}" is out of range.`,e=t;return Number.isInteger(t)&&Math.abs(t)>2**32?e=H(String(t)):typeof t=="bigint"&&(e=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(e=H(e)),e+="n"),n+=` It must be ${r}. Received ${e}`,n},RangeError);function H(i){let r="",t=i.length;const n=i[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${i.slice(t-3,t)}${r}`;return`${i.slice(0,t)}${r}`}function xr(i,r,t){I(r,"offset"),(i[r]===void 0||i[r+t]===void 0)&&F(r,i.length-(t+1))}function J(i,r,t,n,e,o){if(i>t||i<r){const h=typeof r=="bigint"?"n":"";let f;throw r===0||r===BigInt(0)?f=`>= 0${h} and < 2${h} ** ${(o+1)*8}${h}`:f=`>= -(2${h} ** ${(o+1)*8-1}${h}) and < 2 ** ${(o+1)*8-1}${h}`,new g.ERR_OUT_OF_RANGE("value",f,i)}xr(n,e,o)}function I(i,r){if(typeof i!="number")throw new g.ERR_INVALID_ARG_TYPE(r,"number",i)}function F(i,r,t){throw Math.floor(i)!==i?(I(i,t),new g.ERR_OUT_OF_RANGE("offset","an integer",i)):r<0?new g.ERR_BUFFER_OUT_OF_BOUNDS:new g.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${r}`,i)}const Br=/[^+/0-9A-Za-z-_]/g;function Er(i){if(i=i.split("=")[0],i=i.trim().replace(Br,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function L(i,r){r=r||1/0;let t;const n=i.length;let e=null;const o=[];for(let h=0;h<n;++h){if(t=i.charCodeAt(h),t>55295&&t<57344){if(!e){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(h+1===n){(r-=3)>-1&&o.push(239,191,189);continue}e=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),e=t;continue}t=(e-55296<<10|t-56320)+65536}else e&&(r-=3)>-1&&o.push(239,191,189);if(e=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function mr(i){const r=[];for(let t=0;t<i.length;++t)r.push(i.charCodeAt(t)&255);return r}function gr(i,r){let t,n,e;const o=[];for(let h=0;h<i.length&&!((r-=2)<0);++h)t=i.charCodeAt(h),n=t>>8,e=t%256,o.push(e),o.push(n);return o}function K(i){return R.toByteArray(Er(i))}function A(i,r,t,n){let e;for(e=0;e<n&&!(e+t>=r.length||e>=i.length);++e)r[e+t]=i[e];return e}function a(i,r){return i instanceof r||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===r.name}function D(i){return i!==i}const Ir=function(){const i="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){const n=t*16;for(let e=0;e<16;++e)r[n+e]=i[t]+i[e]}return r}();function B(i){return typeof BigInt>"u"?dr:i}function dr(){throw new Error("BigInt not supported")}}(N.__exports)),N.__exports}exports.__require=Ar;