@feedmepos/mf-payment 0.0.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (544) hide show
  1. package/README.md +1 -0
  2. package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js +42 -0
  3. package/dist/App.vue.d.ts +2 -0
  4. package/dist/AppSidebar.vue.d.ts +2 -0
  5. package/dist/Entry.vue.d.ts +2 -0
  6. package/dist/Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js +45 -0
  7. package/dist/PayoutAccount-CNFysD5Y.js +25270 -0
  8. package/dist/PayoutAccount-D4_KKT6o.js +266 -0
  9. package/dist/Settlement-C4IEccV6.js +136 -0
  10. package/dist/Settlement-D4gdbOE0.js +132 -0
  11. package/dist/SettlementTransactions-C3dnWHkD.js +297 -0
  12. package/dist/SettlementTransactions-DYelInkD.js +351 -0
  13. package/dist/Terminal-Co7KPrrb.js +204 -0
  14. package/dist/TerminalTransaction-CtVBUTMg.js +240 -0
  15. package/dist/Transaction-CvDEP2Uq.js +242 -0
  16. package/dist/Transaction-Rk0g5_Gn.js +241 -0
  17. package/dist/api/auth/index.d.ts +7 -0
  18. package/dist/api/index.d.ts +34 -0
  19. package/dist/api/payout/index.d.ts +15 -0
  20. package/dist/api/settlement/index.d.ts +31 -0
  21. package/dist/api/terminal/index.d.ts +10 -0
  22. package/dist/api/terminal-transaction/index.d.ts +11 -0
  23. package/dist/api/transaction/index.d.ts +20 -0
  24. package/dist/app.js +194 -0
  25. package/dist/assets/icons/index.d.ts +23 -0
  26. package/dist/assets-CZ2m5tCN.js +43 -0
  27. package/dist/components/AdminLayout.vue.d.ts +26 -0
  28. package/dist/components/CursorTable/FmTableSelection.vue.d.ts +13 -0
  29. package/dist/components/CursorTable/index.vue.d.ts +45 -0
  30. package/dist/components/Layout.vue.d.ts +26 -0
  31. package/dist/components/Modal.d.ts +3 -0
  32. package/dist/components/PDFViewer.vue.d.ts +27 -0
  33. package/dist/composable/loading/index.d.ts +8 -0
  34. package/dist/composable/query/index.d.ts +2 -0
  35. package/dist/dinero-CIVmXLL-.js +1255 -0
  36. package/dist/favicon.ico +0 -0
  37. package/dist/helpers/assets.d.ts +3 -0
  38. package/dist/helpers/clipboard.d.ts +1 -0
  39. package/dist/helpers/date.d.ts +22 -0
  40. package/dist/helpers/db.d.ts +2 -0
  41. package/dist/helpers/dinero.d.ts +2 -0
  42. package/dist/helpers/error.d.ts +1 -0
  43. package/dist/helpers/export.d.ts +12 -0
  44. package/dist/helpers/idToDate.d.ts +1 -0
  45. package/dist/helpers/iteration.d.ts +15 -0
  46. package/dist/helpers/number.d.ts +22 -0
  47. package/dist/helpers/object.d.ts +1 -0
  48. package/dist/helpers/string.d.ts +12 -0
  49. package/dist/helpers/time.d.ts +7 -0
  50. package/dist/helpers/validator.d.ts +4 -0
  51. package/dist/i18n.d.ts +10 -0
  52. package/dist/icons/anydesk.svg +1 -0
  53. package/dist/icons/sort.svg +3 -0
  54. package/dist/images/gateway/ccdc.svg +44 -0
  55. package/dist/images/gateway/fiuu.jpg +0 -0
  56. package/dist/images/gateway/fm.svg +44 -0
  57. package/dist/images/gateway/rm.jpg +0 -0
  58. package/dist/images/method/BNPL/Ablr/Ablr_SVG.svg +7 -0
  59. package/dist/images/method/BNPL/Ablr/Ablr_V1_ROU.svg +4 -0
  60. package/dist/images/method/BNPL/Ablr/Ablr_V1_SQU.svg +4 -0
  61. package/dist/images/method/BNPL/Ablr/Ablr_V2_ROU.svg +7 -0
  62. package/dist/images/method/BNPL/Ablr/Ablr_V2_SQU.svg +7 -0
  63. package/dist/images/method/BNPL/Atome/Atome_SVG.svg +4 -0
  64. package/dist/images/method/BNPL/Atome/Atome_V1_ROU.svg +4 -0
  65. package/dist/images/method/BNPL/Atome/Atome_V1_SQU.svg +4 -0
  66. package/dist/images/method/BNPL/Atome/Atome_V2_ROU.svg +4 -0
  67. package/dist/images/method/BNPL/Atome/Atome_V2_SQU.svg +4 -0
  68. package/dist/images/method/BNPL/Atome/Atome_V3_ROU.svg +5 -0
  69. package/dist/images/method/BNPL/Atome/Atome_V3_SQU.svg +5 -0
  70. package/dist/images/method/BNPL/IOUPay/IOUPay_SVG.svg +12 -0
  71. package/dist/images/method/BNPL/IOUPay/IOUPay_V1_ROU.svg +7 -0
  72. package/dist/images/method/BNPL/IOUPay/IOUPay_V1_SQU.svg +7 -0
  73. package/dist/images/method/BNPL/IOUPay/IOUPay_V2_ROU.svg +13 -0
  74. package/dist/images/method/BNPL/IOUPay/IOUPay_V2_SQU.svg +13 -0
  75. package/dist/images/method/BNPL/ShopBack/ShopBack_SVG.svg +6 -0
  76. package/dist/images/method/BNPL/ShopBack/ShopBack_V1_ROU.svg +6 -0
  77. package/dist/images/method/BNPL/ShopBack/ShopBack_V1_SQU.svg +6 -0
  78. package/dist/images/method/BNPL/ShopBack/ShopBack_V2_ROU.svg +4 -0
  79. package/dist/images/method/BNPL/ShopBack/ShopBack_V2_SQU.svg +4 -0
  80. package/dist/images/method/BNPL/Split/Split_SVG.svg +4 -0
  81. package/dist/images/method/BNPL/Split/Split_V1_ROU.svg +5 -0
  82. package/dist/images/method/BNPL/Split/Split_V1_SQU.svg +5 -0
  83. package/dist/images/method/BNPL/Split/Split_V2_ROU.svg +5 -0
  84. package/dist/images/method/BNPL/Split/Split_V2_SQU.svg +5 -0
  85. package/dist/images/method/BNPL/Split/Split_V3_ROU.svg +4 -0
  86. package/dist/images/method/BNPL/Split/Split_V3_SQU.svg +4 -0
  87. package/dist/images/method/BNPL/Split/Split_V4_ROU.svg +4 -0
  88. package/dist/images/method/BNPL/Split/Split_V4_SQU.svg +4 -0
  89. package/dist/images/method/Banks/AEONBank/AEONBank_SVG.svg +16 -0
  90. package/dist/images/method/Banks/AEONBank/AEONBank_V1_BSQU.svg +17 -0
  91. package/dist/images/method/Banks/AEONBank/AEONBank_V1_LG.svg +17 -0
  92. package/dist/images/method/Banks/AEONBank/AEONBank_V1_ROU.svg +6 -0
  93. package/dist/images/method/Banks/AEONBank/AEONBank_V1_SQU.svg +6 -0
  94. package/dist/images/method/Banks/AEONBank/AEONBank_V2_BSQU.svg +17 -0
  95. package/dist/images/method/Banks/AEONBank/AEONBank_V2_LG.svg +17 -0
  96. package/dist/images/method/Banks/AEONBank/AEONBank_V2_ROU.svg +6 -0
  97. package/dist/images/method/Banks/AEONBank/AEONBank_V2_SQU.svg +6 -0
  98. package/dist/images/method/Banks/AffinBank/AffinBank_SVG.svg +56 -0
  99. package/dist/images/method/Banks/AffinBank/AffinBank_V1_BSQU.svg +57 -0
  100. package/dist/images/method/Banks/AffinBank/AffinBank_V1_LG.svg +57 -0
  101. package/dist/images/method/Banks/AffinBank/AffinBank_V1_ROU.svg +10 -0
  102. package/dist/images/method/Banks/AffinBank/AffinBank_V1_SQU.svg +10 -0
  103. package/dist/images/method/Banks/AffinBank/AffinBank_V2_BSQU.svg +57 -0
  104. package/dist/images/method/Banks/AffinBank/AffinBank_V2_LG.svg +57 -0
  105. package/dist/images/method/Banks/AffinBank/AffinBank_V2_ROU.svg +10 -0
  106. package/dist/images/method/Banks/AffinBank/AffinBank_V2_SQU.svg +10 -0
  107. package/dist/images/method/Banks/AllianceBank/AllianceBank_SVG.svg +45 -0
  108. package/dist/images/method/Banks/AllianceBank/AllianceBank_V1_BSQU.svg +46 -0
  109. package/dist/images/method/Banks/AllianceBank/AllianceBank_V1_LG.svg +46 -0
  110. package/dist/images/method/Banks/AllianceBank/AllianceBank_V1_ROU.svg +34 -0
  111. package/dist/images/method/Banks/AllianceBank/AllianceBank_V1_SQU.svg +34 -0
  112. package/dist/images/method/Banks/AmBank/AmBank_SVG.svg +18 -0
  113. package/dist/images/method/Banks/AmBank/AmBank_V1_BSQU.svg +13 -0
  114. package/dist/images/method/Banks/AmBank/AmBank_V1_LG.svg +13 -0
  115. package/dist/images/method/Banks/AmBank/AmBank_V1_ROU.svg +7 -0
  116. package/dist/images/method/Banks/AmBank/AmBank_V1_SQU.svg +7 -0
  117. package/dist/images/method/Banks/AmBank/AmBank_V2_BSQU.svg +13 -0
  118. package/dist/images/method/Banks/AmBank/AmBank_V2_LG.svg +13 -0
  119. package/dist/images/method/Banks/AmBank/AmBank_V2_ROU.svg +7 -0
  120. package/dist/images/method/Banks/AmBank/AmBank_V2_SQU.svg +7 -0
  121. package/dist/images/method/Banks/AmBank/AmBank_V3_BSQU.svg +13 -0
  122. package/dist/images/method/Banks/AmBank/AmBank_V3_LG.svg +13 -0
  123. package/dist/images/method/Banks/AmBank/AmBank_V3_ROU.svg +7 -0
  124. package/dist/images/method/Banks/AmBank/AmBank_V3_SQU.svg +7 -0
  125. package/dist/images/method/Banks/AmBank/AmBank_V4_BSQU.svg +18 -0
  126. package/dist/images/method/Banks/AmBank/AmBank_V4_LG.svg +18 -0
  127. package/dist/images/method/Banks/AmBank/AmBank_V5_BSQU.svg +18 -0
  128. package/dist/images/method/Banks/AmBank/AmBank_V5_LG.svg +18 -0
  129. package/dist/images/method/Banks/ArgoBank/ArgoBank_SVG.svg +12 -0
  130. package/dist/images/method/Banks/ArgoBank/ArgoBank_V1_BSQU.svg +13 -0
  131. package/dist/images/method/Banks/ArgoBank/ArgoBank_V1_LG.svg +13 -0
  132. package/dist/images/method/Banks/ArgoBank/ArgoBank_V1_ROU.svg +4 -0
  133. package/dist/images/method/Banks/ArgoBank/ArgoBank_V1_SQU.svg +4 -0
  134. package/dist/images/method/Banks/BSN/BSN_SVG.svg +7 -0
  135. package/dist/images/method/Banks/BSN/BSN_V1_BSQU.svg +7 -0
  136. package/dist/images/method/Banks/BSN/BSN_V1_LG.svg +7 -0
  137. package/dist/images/method/Banks/BSN/BSN_V1_ROU.svg +4 -0
  138. package/dist/images/method/Banks/BSN/BSN_V1_SQU.svg +4 -0
  139. package/dist/images/method/Banks/BankIslam/BankIslam_SVG.svg +13 -0
  140. package/dist/images/method/Banks/BankIslam/BankIslam_V1_BSQU.svg +14 -0
  141. package/dist/images/method/Banks/BankIslam/BankIslam_V1_LG.svg +14 -0
  142. package/dist/images/method/Banks/BankIslam/BankIslam_V1_ROU.svg +14 -0
  143. package/dist/images/method/Banks/BankIslam/BankIslam_V1_SQU.svg +14 -0
  144. package/dist/images/method/Banks/BankMuamalat/BankMuamalat_SVG.svg +26 -0
  145. package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V1_BSQU.svg +24 -0
  146. package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V1_LG.svg +24 -0
  147. package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V1_ROU.svg +12 -0
  148. package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V1_SQU.svg +12 -0
  149. package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V2_BSQU.svg +26 -0
  150. package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V2_LG.svg +27 -0
  151. package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V2_ROU.svg +14 -0
  152. package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V2_SQU.svg +14 -0
  153. package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V3_ROU.svg +12 -0
  154. package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V3_SQU.svg +12 -0
  155. package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V4_ROU.svg +4 -0
  156. package/dist/images/method/Banks/BankMuamalat/BankMuamalat_V4_SQU.svg +4 -0
  157. package/dist/images/method/Banks/BankRakyat/BankRakyat_SVG.svg +18 -0
  158. package/dist/images/method/Banks/BankRakyat/BankRakyat_V1_BSQU.svg +18 -0
  159. package/dist/images/method/Banks/BankRakyat/BankRakyat_V1_LG.svg +18 -0
  160. package/dist/images/method/Banks/BankRakyat/BankRakyat_V1_ROU.svg +6 -0
  161. package/dist/images/method/Banks/BankRakyat/BankRakyat_V1_SQU.svg +6 -0
  162. package/dist/images/method/Banks/BankRakyat/BankRakyat_V2_BSQU.svg +18 -0
  163. package/dist/images/method/Banks/BankRakyat/BankRakyat_V2_LG.svg +18 -0
  164. package/dist/images/method/Banks/BankRakyat/BankRakyat_V2_ROU.svg +6 -0
  165. package/dist/images/method/Banks/BankRakyat/BankRakyat_V2_SQU.svg +6 -0
  166. package/dist/images/method/Banks/Cimb/Cimb_SVG.svg +16 -0
  167. package/dist/images/method/Banks/Cimb/Cimb_V1_BSQU.svg +13 -0
  168. package/dist/images/method/Banks/Cimb/Cimb_V1_LG.svg +13 -0
  169. package/dist/images/method/Banks/Cimb/Cimb_V1_ROU.svg +5 -0
  170. package/dist/images/method/Banks/Cimb/Cimb_V1_SQU.svg +5 -0
  171. package/dist/images/method/Banks/Cimb/Cimb_V2_BSQU.svg +13 -0
  172. package/dist/images/method/Banks/Cimb/Cimb_V2_LG.svg +13 -0
  173. package/dist/images/method/Banks/Cimb/Cimb_V2_ROU.svg +5 -0
  174. package/dist/images/method/Banks/Cimb/Cimb_V2_SQU.svg +5 -0
  175. package/dist/images/method/Banks/Cimb/Cimb_V3_BSQU.svg +19 -0
  176. package/dist/images/method/Banks/Cimb/Cimb_V3_LG.svg +19 -0
  177. package/dist/images/method/Banks/Cimb/Cimb_V3_ROU.svg +11 -0
  178. package/dist/images/method/Banks/Cimb/Cimb_V3_SQU.svg +11 -0
  179. package/dist/images/method/Banks/Cimb/Cimb_V4_BSQU.svg +14 -0
  180. package/dist/images/method/Banks/Cimb/Cimb_V4_LG.svg +14 -0
  181. package/dist/images/method/Banks/Cimb/Cimb_V5_LG.svg +14 -0
  182. package/dist/images/method/Banks/CitiBank/CitiBank_SVG.svg +4 -0
  183. package/dist/images/method/Banks/CitiBank/CitiBank_V1_BSQU.svg +5 -0
  184. package/dist/images/method/Banks/CitiBank/CitiBank_V1_LG.svg +5 -0
  185. package/dist/images/method/Banks/CitiBank/CitiBank_V1_ROU.svg +5 -0
  186. package/dist/images/method/Banks/CitiBank/CitiBank_V1_SQU.svg +5 -0
  187. package/dist/images/method/Banks/CitiBank/CitiBank_V2_BSQU.svg +5 -0
  188. package/dist/images/method/Banks/CitiBank/CitiBank_V2_LG.svg +5 -0
  189. package/dist/images/method/Banks/CitiBank/CitiBank_V2_ROU.svg +5 -0
  190. package/dist/images/method/Banks/CitiBank/CitiBank_V2_SQU.svg +5 -0
  191. package/dist/images/method/Banks/GXBank/GXBank_SVG.svg +10 -0
  192. package/dist/images/method/Banks/GXBank/GXBank_V1_BSQU.svg +4 -0
  193. package/dist/images/method/Banks/GXBank/GXBank_V1_LG.svg +4 -0
  194. package/dist/images/method/Banks/GXBank/GXBank_V1_ROU.svg +4 -0
  195. package/dist/images/method/Banks/GXBank/GXBank_V1_SQU.svg +4 -0
  196. package/dist/images/method/Banks/GXBank/GXBank_V2_BSQU.svg +4 -0
  197. package/dist/images/method/Banks/GXBank/GXBank_V2_LG.svg +4 -0
  198. package/dist/images/method/Banks/GXBank/GXBank_V2_ROU.svg +4 -0
  199. package/dist/images/method/Banks/GXBank/GXBank_V2_SQU.svg +4 -0
  200. package/dist/images/method/Banks/GXBank/GXBank_V3_BSQU.svg +10 -0
  201. package/dist/images/method/Banks/GXBank/GXBank_V3_LG.svg +10 -0
  202. package/dist/images/method/Banks/GXBank/GXBank_V3_ROU.svg +10 -0
  203. package/dist/images/method/Banks/GXBank/GXBank_V3_SQU.svg +10 -0
  204. package/dist/images/method/Banks/GXBank/GXBank_V4_BSQU.svg +10 -0
  205. package/dist/images/method/Banks/GXBank/GXBank_V4_LG.svg +10 -0
  206. package/dist/images/method/Banks/GXBank/GXBank_V4_ROU.svg +10 -0
  207. package/dist/images/method/Banks/GXBank/GXBank_V4_SQU.svg +10 -0
  208. package/dist/images/method/Banks/GXBank/GXBank_V5_BSQU.svg +10 -0
  209. package/dist/images/method/Banks/GXBank/GXBank_V5_LG.svg +10 -0
  210. package/dist/images/method/Banks/GXBank/GXBank_V5_ROU.svg +10 -0
  211. package/dist/images/method/Banks/GXBank/GXBank_V5_SQU.svg +10 -0
  212. package/dist/images/method/Banks/HSBC/HSBC_SVG.svg +11 -0
  213. package/dist/images/method/Banks/HSBC/HSBC_V1_BSQU.svg +12 -0
  214. package/dist/images/method/Banks/HSBC/HSBC_V1_LG.svg +12 -0
  215. package/dist/images/method/Banks/HSBC/HSBC_V1_ROU.svg +8 -0
  216. package/dist/images/method/Banks/HSBC/HSBC_V1_SQU.svg +8 -0
  217. package/dist/images/method/Banks/HongLeongBank/HongLeongBank_SVG.svg +27 -0
  218. package/dist/images/method/Banks/HongLeongBank/HongLeongBank_V1_BSQU.svg +22 -0
  219. package/dist/images/method/Banks/HongLeongBank/HongLeongBank_V1_LG.svg +22 -0
  220. package/dist/images/method/Banks/HongLeongBank/HongLeongBank_V1_ROU.svg +9 -0
  221. package/dist/images/method/Banks/HongLeongBank/HongLeongBank_V1_SQU.svg +9 -0
  222. package/dist/images/method/Banks/HongLeongBank/HongLeongBank_V2_BSQU.svg +18 -0
  223. package/dist/images/method/Banks/HongLeongBank/HongLeongBank_V2_LG.svg +18 -0
  224. package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_SVG.svg +5 -0
  225. package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V1_BSQU.svg +5 -0
  226. package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V1_LG.svg +5 -0
  227. package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V1_ROU.svg +4 -0
  228. package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V1_SQU.svg +4 -0
  229. package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V2_BSQU.svg +5 -0
  230. package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V2_LG.svg +5 -0
  231. package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V2_ROU.svg +4 -0
  232. package/dist/images/method/Banks/KuwaitFinanceHouse/KuwaitFinanceHouse_V2_SQU.svg +4 -0
  233. package/dist/images/method/Banks/Maybank/MayBank_SVG.svg +22 -0
  234. package/dist/images/method/Banks/Maybank/MayBank_V1_BSQU.svg +22 -0
  235. package/dist/images/method/Banks/Maybank/MayBank_V1_LG.svg +22 -0
  236. package/dist/images/method/Banks/Maybank/MayBank_V1_ROU.svg +15 -0
  237. package/dist/images/method/Banks/Maybank/MayBank_V1_SQU.svg +15 -0
  238. package/dist/images/method/Banks/OCBC/OCBC_SVG.svg +11 -0
  239. package/dist/images/method/Banks/OCBC/OCBC_V1_BSQU.svg +12 -0
  240. package/dist/images/method/Banks/OCBC/OCBC_V1_LG.svg +12 -0
  241. package/dist/images/method/Banks/OCBC/OCBC_V1_ROU.svg +4 -0
  242. package/dist/images/method/Banks/OCBC/OCBC_V1_SQU.svg +4 -0
  243. package/dist/images/method/Banks/OCBC/OCBC_V2_BSQU.svg +12 -0
  244. package/dist/images/method/Banks/OCBC/OCBC_V2_LG.svg +12 -0
  245. package/dist/images/method/Banks/OCBC/OCBC_V2_ROU.svg +4 -0
  246. package/dist/images/method/Banks/OCBC/OCBC_V2_SQU.svg +4 -0
  247. package/dist/images/method/Banks/PublicBank/PublicBank_SVG.svg +13 -0
  248. package/dist/images/method/Banks/PublicBank/PublicBank_V1_BSQU.svg +14 -0
  249. package/dist/images/method/Banks/PublicBank/PublicBank_V1_LG.svg +14 -0
  250. package/dist/images/method/Banks/PublicBank/PublicBank_V1_ROU.svg +4 -0
  251. package/dist/images/method/Banks/PublicBank/PublicBank_V1_SQU.svg +4 -0
  252. package/dist/images/method/Banks/RHB/RHB_SVG.svg +4 -0
  253. package/dist/images/method/Banks/RHB/RHB_V1_BSQU.svg +5 -0
  254. package/dist/images/method/Banks/RHB/RHB_V1_LG.svg +5 -0
  255. package/dist/images/method/Banks/RHB/RHB_V1_ROU.svg +5 -0
  256. package/dist/images/method/Banks/RHB/RHB_V1_SQU.svg +5 -0
  257. package/dist/images/method/Banks/RHB/RHB_V2_BSQU.svg +5 -0
  258. package/dist/images/method/Banks/RHB/RHB_V2_LG.svg +5 -0
  259. package/dist/images/method/Banks/RHB/RHB_V2_ROU.svg +5 -0
  260. package/dist/images/method/Banks/RHB/RHB_V2_SQU.svg +5 -0
  261. package/dist/images/method/Banks/StandardChartered/StandardChartered_SVG.svg +26 -0
  262. package/dist/images/method/Banks/StandardChartered/StandardChartered_V1_BSQU.svg +27 -0
  263. package/dist/images/method/Banks/StandardChartered/StandardChartered_V1_LG.svg +27 -0
  264. package/dist/images/method/Banks/StandardChartered/StandardChartered_V1_ROU.svg +10 -0
  265. package/dist/images/method/Banks/StandardChartered/StandardChartered_V1_SQU.svg +10 -0
  266. package/dist/images/method/Banks/UOB/UOB_SVG.svg +15 -0
  267. package/dist/images/method/Banks/UOB/UOB_V1_BSQU.svg +16 -0
  268. package/dist/images/method/Banks/UOB/UOB_V1_LG.svg +16 -0
  269. package/dist/images/method/Banks/UOB/UOB_V1_ROU.svg +4 -0
  270. package/dist/images/method/Banks/UOB/UOB_V1_SQU.svg +4 -0
  271. package/dist/images/method/Banks/UOB/UOB_V2_BSQU.svg +16 -0
  272. package/dist/images/method/Banks/UOB/UOB_V2_LG.svg +16 -0
  273. package/dist/images/method/Banks/UOB/UOB_V2_ROU.svg +4 -0
  274. package/dist/images/method/Banks/UOB/UOB_V2_SQU.svg +4 -0
  275. package/dist/images/method/Banks/UOB/UOB_V3_ROU.svg +5 -0
  276. package/dist/images/method/Banks/UOB/UOB_V3_SQU.svg +5 -0
  277. package/dist/images/method/Banks/UOB/UOB_V4_ROU.svg +5 -0
  278. package/dist/images/method/Banks/UOB/UOB_V4_SQU.svg +5 -0
  279. package/dist/images/method/Card/Gobiz/Gobiz_SVG.svg +10 -0
  280. package/dist/images/method/Card/Gobiz/Gobiz_V1_ROU.svg +11 -0
  281. package/dist/images/method/Card/Gobiz/Gobiz_V1_SQU.svg +11 -0
  282. package/dist/images/method/Card/Gobiz/Gobiz_V2_ROU.svg +11 -0
  283. package/dist/images/method/Card/Gobiz/Gobiz_V2_SQU.svg +11 -0
  284. package/dist/images/method/Card/Master/MASTER_SVG.svg +6 -0
  285. package/dist/images/method/Card/Master/MASTER_V1_ROU.svg +7 -0
  286. package/dist/images/method/Card/Master/MASTER_V1_SQU.svg +7 -0
  287. package/dist/images/method/Card/Master/MASTER_V1_TRSP.svg +6 -0
  288. package/dist/images/method/Card/Master/MASTER_V2_ROU.svg +7 -0
  289. package/dist/images/method/Card/Master/MASTER_V2_SQU.svg +7 -0
  290. package/dist/images/method/Card/Paydee/Paydee_SVG.svg +8 -0
  291. package/dist/images/method/Card/Paydee/Paydee_V1_ROU.svg +9 -0
  292. package/dist/images/method/Card/Paydee/Paydee_V1_SQU.svg +9 -0
  293. package/dist/images/method/Card/Paydee/Paydee_V2_ROU.svg +9 -0
  294. package/dist/images/method/Card/Paydee/Paydee_V2_SQU.svg +9 -0
  295. package/dist/images/method/Card/UnionPay/UNIONPAY_SVG.svg +17 -0
  296. package/dist/images/method/Card/UnionPay/UNIONPAY_V1_ROU.svg +18 -0
  297. package/dist/images/method/Card/UnionPay/UNIONPAY_V1_SQU.svg +18 -0
  298. package/dist/images/method/Card/UnionPay/UNIONPAY_V1_TRSP.svg +17 -0
  299. package/dist/images/method/Card/Visa/VISA_SVG.svg +3 -0
  300. package/dist/images/method/Card/Visa/VISA_V1_ROU.svg +4 -0
  301. package/dist/images/method/Card/Visa/VISA_V1_SQU.svg +4 -0
  302. package/dist/images/method/Card/Visa/VISA_V1_TRSP.svg +3 -0
  303. package/dist/images/method/Card/Visa/VISA_V2_ROU.svg +4 -0
  304. package/dist/images/method/Card/Visa/VISA_V2_SQU.svg +4 -0
  305. package/dist/images/method/Card/Visa/VISA_V2_TRSP.svg +3 -0
  306. package/dist/images/method/Mobile/ApplePay/ApplePay_SVG.svg +3 -0
  307. package/dist/images/method/Mobile/ApplePay/ApplePay_V1_ROU.svg +4 -0
  308. package/dist/images/method/Mobile/ApplePay/ApplePay_V1_SQU.svg +4 -0
  309. package/dist/images/method/Mobile/ApplePay/ApplePay_V1_TRSP.svg +3 -0
  310. package/dist/images/method/Mobile/ApplePay/ApplePay_V2_ROU.svg +4 -0
  311. package/dist/images/method/Mobile/ApplePay/ApplePay_V2_SQU.svg +4 -0
  312. package/dist/images/method/Mobile/ApplePay/ApplePay_V2_TRSP.svg +3 -0
  313. package/dist/images/method/Mobile/GooglePay/GooglePay_SVG.svg +7 -0
  314. package/dist/images/method/Mobile/GooglePay/GooglePay_V1_ROU.svg +8 -0
  315. package/dist/images/method/Mobile/GooglePay/GooglePay_V1_SQU.svg +8 -0
  316. package/dist/images/method/Mobile/GooglePay/GooglePay_V1_TRSP.svg +7 -0
  317. package/dist/images/method/Mobile/GooglePay/GooglePay_V2_ROU.svg +8 -0
  318. package/dist/images/method/Mobile/GooglePay/GooglePay_V2_SQU.svg +8 -0
  319. package/dist/images/method/Mobile/GooglePay/GooglePay_V2_TRSP.svg +7 -0
  320. package/dist/images/method/Mobile/GooglePay/GooglePay_V3_ROU.svg +7 -0
  321. package/dist/images/method/Mobile/GooglePay/GooglePay_V3_SQU.svg +7 -0
  322. package/dist/images/method/Mobile/GooglePay/GooglePay_V3_TRSP.svg +6 -0
  323. package/dist/images/method/Mobile/SamsungPay/SamsungPay_SVG.svg +12 -0
  324. package/dist/images/method/Mobile/SamsungPay/SamsungPay_V1_ROU.svg +13 -0
  325. package/dist/images/method/Mobile/SamsungPay/SamsungPay_V1_SQU.svg +13 -0
  326. package/dist/images/method/Mobile/SamsungPay/SamsungPay_V2_ROU.svg +13 -0
  327. package/dist/images/method/Mobile/SamsungPay/SamsungPay_V2_SQU.svg +13 -0
  328. package/dist/images/method/Mobile/SamsungPay/SamsungPay_V3_ROU.svg +6 -0
  329. package/dist/images/method/Mobile/SamsungPay/SamsungPay_V3_SQU.svg +6 -0
  330. package/dist/images/method/Other/DuitNow/DuitNow_SVG.svg +11 -0
  331. package/dist/images/method/Other/DuitNow/DuitNow_V1_ROU.svg +12 -0
  332. package/dist/images/method/Other/DuitNow/DuitNow_V1_SQU.svg +12 -0
  333. package/dist/images/method/Other/DuitNow/DuitNow_V2_ROU.svg +12 -0
  334. package/dist/images/method/Other/DuitNow/DuitNow_V2_SQU.svg +12 -0
  335. package/dist/images/method/Other/DuitNow/DuitNow_V3_ROU.svg +5 -0
  336. package/dist/images/method/Other/DuitNow/DuitNow_V3_SQU.svg +5 -0
  337. package/dist/images/method/Other/DuitNow/DuitNow_V4_ROU.svg +5 -0
  338. package/dist/images/method/Other/DuitNow/DuitNow_V4_SQU.svg +5 -0
  339. package/dist/images/method/Other/FPX/FPX_SVG.svg +28 -0
  340. package/dist/images/method/Other/FPX/FPX_V1_ROU.svg +29 -0
  341. package/dist/images/method/Other/FPX/FPX_V1_SQU.svg +29 -0
  342. package/dist/images/method/Other/FPX/FPX_V2_ROU.svg +8 -0
  343. package/dist/images/method/Other/FPX/FPX_V2_SQU.svg +8 -0
  344. package/dist/images/method/Other/FPX/FPX_V3_ROU.svg +5 -0
  345. package/dist/images/method/Other/FPX/FPX_V3_SQU.svg +5 -0
  346. package/dist/images/method/Other/MaybankQR/MaybankQR_V1_ROU.svg +35 -0
  347. package/dist/images/method/Other/MaybankQR/MaybankQR_V1_SQU.svg +35 -0
  348. package/dist/images/method/Other/MaybankQR/Maybank_SVG.svg +49 -0
  349. package/dist/images/method/Other/NetsPay/NetsPay_SVG.svg +5 -0
  350. package/dist/images/method/Other/NetsPay/NetsPay_V1_ROU.svg +6 -0
  351. package/dist/images/method/Other/NetsPay/NetsPay_V1_SQU.svg +6 -0
  352. package/dist/images/method/Wallet/Alipay/Alipay_SVG.svg +4 -0
  353. package/dist/images/method/Wallet/Alipay/Alipay_V1_ROU.svg +6 -0
  354. package/dist/images/method/Wallet/Alipay/Alipay_V1_SQU.svg +5 -0
  355. package/dist/images/method/Wallet/Alipay/Alipay_V2_ROU.svg +6 -0
  356. package/dist/images/method/Wallet/Alipay/Alipay_V2_SQU.svg +5 -0
  357. package/dist/images/method/Wallet/AlipayPlus/AlipayPlus_SVG.svg +7 -0
  358. package/dist/images/method/Wallet/AlipayPlus/AlipayPlus_V1_ROU.svg +8 -0
  359. package/dist/images/method/Wallet/AlipayPlus/AlipayPlus_V1_SQU.svg +8 -0
  360. package/dist/images/method/Wallet/AlipayPlus/AlipayPlus_V2_ROU.svg +6 -0
  361. package/dist/images/method/Wallet/AlipayPlus/AlipayPlus_V2_SQU.svg +6 -0
  362. package/dist/images/method/Wallet/Binfinite/Binfinite_SVG.svg +14 -0
  363. package/dist/images/method/Wallet/Binfinite/Binfinite_V1_ROU.svg +7 -0
  364. package/dist/images/method/Wallet/Binfinite/Binfinite_V1_SQU.svg +7 -0
  365. package/dist/images/method/Wallet/Binfinite/Binfinite_V2_ROU.svg +15 -0
  366. package/dist/images/method/Wallet/Binfinite/Binfinite_V2_SQU.svg +15 -0
  367. package/dist/images/method/Wallet/Binfinite/Binfinite_V3_ROU.svg +15 -0
  368. package/dist/images/method/Wallet/Binfinite/Binfinite_V3_SQU.svg +15 -0
  369. package/dist/images/method/Wallet/Boost/Boost_SVG.svg +10 -0
  370. package/dist/images/method/Wallet/Boost/Boost_V1_ROU.svg +6 -0
  371. package/dist/images/method/Wallet/Boost/Boost_V1_SQU.svg +6 -0
  372. package/dist/images/method/Wallet/Boost/Boost_V2_ROU.svg +11 -0
  373. package/dist/images/method/Wallet/Boost/Boost_V2_SQU.svg +11 -0
  374. package/dist/images/method/Wallet/Boost/Boost_V3_ROU.svg +11 -0
  375. package/dist/images/method/Wallet/Boost/Boost_V3_SQU.svg +11 -0
  376. package/dist/images/method/Wallet/FavePay/FavePay_SVG.svg +12 -0
  377. package/dist/images/method/Wallet/FavePay/FavePay_V1_ROU.svg +16 -0
  378. package/dist/images/method/Wallet/FavePay/FavePay_V1_SQU.svg +16 -0
  379. package/dist/images/method/Wallet/FavePay/FavePay_V2_ROU.svg +13 -0
  380. package/dist/images/method/Wallet/FavePay/FavePay_V2_SQU.svg +13 -0
  381. package/dist/images/method/Wallet/GoPayz/GoPayz_SVG.svg +12 -0
  382. package/dist/images/method/Wallet/GoPayz/GoPayz_V1_ROU.svg +11 -0
  383. package/dist/images/method/Wallet/GoPayz/GoPayz_V1_SQU.svg +11 -0
  384. package/dist/images/method/Wallet/GoPayz/GoPayz_V2_ROU.svg +5 -0
  385. package/dist/images/method/Wallet/GoPayz/GoPayz_V2_SQU.svg +5 -0
  386. package/dist/images/method/Wallet/GrabPay/GrabPay_SVG.svg +15 -0
  387. package/dist/images/method/Wallet/GrabPay/GrabPay_V1_ROU.svg +13 -0
  388. package/dist/images/method/Wallet/GrabPay/GrabPay_V1_SQU.svg +13 -0
  389. package/dist/images/method/Wallet/GrabPay/GrabPay_V2_ROU.svg +13 -0
  390. package/dist/images/method/Wallet/GrabPay/GrabPay_V2_SQU.svg +13 -0
  391. package/dist/images/method/Wallet/GrabPay/GrabPay_V3_ROU.svg +16 -0
  392. package/dist/images/method/Wallet/GrabPay/GrabPay_V3_SQU.svg +16 -0
  393. package/dist/images/method/Wallet/GrabPay/GrabPay_V4_ROU.svg +16 -0
  394. package/dist/images/method/Wallet/GrabPay/GrabPay_V4_SQU.svg +16 -0
  395. package/dist/images/method/Wallet/Lazada/Lazada_SVG.svg +44 -0
  396. package/dist/images/method/Wallet/Lazada/Lazada_V1_ROU.svg +39 -0
  397. package/dist/images/method/Wallet/Lazada/Lazada_V1_SQU.svg +39 -0
  398. package/dist/images/method/Wallet/Lazada/Lazada_V2_ROU.svg +45 -0
  399. package/dist/images/method/Wallet/Lazada/Lazada_V2_SQU.svg +45 -0
  400. package/dist/images/method/Wallet/MAE/MAE_SVG.svg +4 -0
  401. package/dist/images/method/Wallet/MAE/MAE_V1_ROU.svg +11 -0
  402. package/dist/images/method/Wallet/MAE/MAE_V1_SQU.svg +11 -0
  403. package/dist/images/method/Wallet/MCash/MCash_SVG.svg +7 -0
  404. package/dist/images/method/Wallet/MCash/MCash_V1_ROU.svg +8 -0
  405. package/dist/images/method/Wallet/MCash/MCash_V1_SQU.svg +8 -0
  406. package/dist/images/method/Wallet/MCash/MCash_V2_ROU.svg +8 -0
  407. package/dist/images/method/Wallet/MCash/MCash_V2_SQU.svg +8 -0
  408. package/dist/images/method/Wallet/Presto/Presto_SVG.svg +10 -0
  409. package/dist/images/method/Wallet/Presto/Presto_V1_ROU.svg +11 -0
  410. package/dist/images/method/Wallet/Presto/Presto_V1_SQU.svg +11 -0
  411. package/dist/images/method/Wallet/Presto/Presto_V2_ROU.svg +11 -0
  412. package/dist/images/method/Wallet/Presto/Presto_V2_SQU.svg +11 -0
  413. package/dist/images/method/Wallet/Presto/Presto_V3_ROU.svg +11 -0
  414. package/dist/images/method/Wallet/Presto/Presto_V3_SQU.svg +11 -0
  415. package/dist/images/method/Wallet/Presto/Presto_V4_ROU.svg +5 -0
  416. package/dist/images/method/Wallet/Presto/Presto_V4_SQU.svg +5 -0
  417. package/dist/images/method/Wallet/Presto/Presto_V5_ROU.svg +5 -0
  418. package/dist/images/method/Wallet/Presto/Presto_V5_SQU.svg +5 -0
  419. package/dist/images/method/Wallet/Razer/RazerPay_SVG.svg +11 -0
  420. package/dist/images/method/Wallet/Razer/RazerPay_V1_ROU.svg +12 -0
  421. package/dist/images/method/Wallet/Razer/RazerPay_V1_SQU.svg +12 -0
  422. package/dist/images/method/Wallet/SarawakPay/SarawakPay_SVG.svg +9 -0
  423. package/dist/images/method/Wallet/SarawakPay/SarawakPay_V1_ROU.svg +10 -0
  424. package/dist/images/method/Wallet/SarawakPay/SarawakPay_V1_SQU.svg +11 -0
  425. package/dist/images/method/Wallet/SarawakPay/SarawakPay_V2_ROU.svg +4 -0
  426. package/dist/images/method/Wallet/SarawakPay/SarawakPay_V2_SQU.svg +4 -0
  427. package/dist/images/method/Wallet/Senheng/Senheng_SVG.svg +9 -0
  428. package/dist/images/method/Wallet/Senheng/Senheng_V1_ROU.svg +4 -0
  429. package/dist/images/method/Wallet/Senheng/Senheng_V1_SQU.svg +4 -0
  430. package/dist/images/method/Wallet/Senheng/Senheng_V2_ROU.svg +4 -0
  431. package/dist/images/method/Wallet/Senheng/Senheng_V2_SQU.svg +4 -0
  432. package/dist/images/method/Wallet/Setel/Setel_SVG.svg +10 -0
  433. package/dist/images/method/Wallet/Setel/Setel_V1_ROU.svg +11 -0
  434. package/dist/images/method/Wallet/Setel/Setel_V1_SQU.svg +11 -0
  435. package/dist/images/method/Wallet/Setel/Setel_V2_ROU.svg +6 -0
  436. package/dist/images/method/Wallet/Setel/Setel_V2_SQU.svg +6 -0
  437. package/dist/images/method/Wallet/ShopeePay/ShopeePay_SVG.svg +13 -0
  438. package/dist/images/method/Wallet/ShopeePay/ShopeePay_V1_ROU.svg +14 -0
  439. package/dist/images/method/Wallet/ShopeePay/ShopeePay_V1_SQU.svg +14 -0
  440. package/dist/images/method/Wallet/ShopeePay/ShopeePay_V2_ROU.svg +12 -0
  441. package/dist/images/method/Wallet/ShopeePay/ShopeePay_V2_SQU.svg +12 -0
  442. package/dist/images/method/Wallet/ShopeePay/ShopeePay_V3_ROU.svg +5 -0
  443. package/dist/images/method/Wallet/ShopeePay/ShopeePay_V3_SQU.svg +5 -0
  444. package/dist/images/method/Wallet/ShopeePay/ShopeePay_V4_ROU.svg +5 -0
  445. package/dist/images/method/Wallet/ShopeePay/ShopeePay_V4_SQU.svg +5 -0
  446. package/dist/images/method/Wallet/TNG/TNG_SVG.svg +27 -0
  447. package/dist/images/method/Wallet/TNG/TNG_V1_ROU.svg +27 -0
  448. package/dist/images/method/Wallet/TNG/TNG_V1_SQU.svg +27 -0
  449. package/dist/images/method/Wallet/TaPay/TaPay_SVG.svg +25 -0
  450. package/dist/images/method/Wallet/TaPay/TaPay_V1_ROU.svg +25 -0
  451. package/dist/images/method/Wallet/TaPay/TaPay_V1_SQU.svg +25 -0
  452. package/dist/images/method/Wallet/TaPay/TaPay_V2_ROU.svg +25 -0
  453. package/dist/images/method/Wallet/TaPay/TaPay_V2_SQU.svg +25 -0
  454. package/dist/images/method/Wallet/Truemoney/Truemoney_SVG.svg +42 -0
  455. package/dist/images/method/Wallet/Truemoney/Truemoney_V1_ROU.svg +8 -0
  456. package/dist/images/method/Wallet/Truemoney/Truemoney_V1_SQU.svg +8 -0
  457. package/dist/images/method/Wallet/Truemoney/Truemoney_V2_ROU.svg +17 -0
  458. package/dist/images/method/Wallet/Truemoney/Truemoney_V2_SQU.svg +17 -0
  459. package/dist/images/method/Wallet/WechatPay/WeChat_SVG.svg +4 -0
  460. package/dist/images/method/Wallet/WechatPay/WeChat_V1_ROU.svg +4 -0
  461. package/dist/images/method/Wallet/WechatPay/WeChat_V1_SQU.svg +4 -0
  462. package/dist/images/method/Wallet/WechatPay/WeChat_V2_ROU.svg +4 -0
  463. package/dist/images/method/Wallet/WechatPay/WeChat_V2_SQU.svg +4 -0
  464. package/dist/images/method/Wallet/WechatPay/WeChat_V3_ROU.svg +5 -0
  465. package/dist/images/method/Wallet/WechatPay/WeChat_V3_SQU.svg +5 -0
  466. package/dist/images/method/Wallet/Zapp/Zapp_SVG.svg +6 -0
  467. package/dist/images/method/Wallet/Zapp/Zapp_V1_ROU.svg +7 -0
  468. package/dist/images/method/Wallet/Zapp/Zapp_V1_SQU.svg +7 -0
  469. package/dist/index-B8_4waUa.js +131 -0
  470. package/dist/index-CjCiGW2Y.js +61 -0
  471. package/dist/index-CkSi8Gnc.js +3348 -0
  472. package/dist/index-DvzXwr90.js +40075 -0
  473. package/dist/index.vue_vue_type_script_setup_true_lang-y4tchjya.js +150 -0
  474. package/dist/locales/en/business.json +4 -0
  475. package/dist/locales/en/common.json +272 -0
  476. package/dist/locales/en/country.json +4 -0
  477. package/dist/locales/en/payment.json +27 -0
  478. package/dist/locales/en/transaction.json +25 -0
  479. package/dist/locales/en/user.json +61 -0
  480. package/dist/locales/zh/business.json +4 -0
  481. package/dist/locales/zh/common.json +272 -0
  482. package/dist/locales/zh/country.json +6 -0
  483. package/dist/locales/zh/payment.json +27 -0
  484. package/dist/locales/zh/transaction.json +25 -0
  485. package/dist/locales/zh/user.json +61 -0
  486. package/dist/main.d.ts +1 -0
  487. package/dist/model/payout-account.d.ts +44 -0
  488. package/dist/model/transaction.d.ts +16 -0
  489. package/dist/moment-h96o7c8I.js +2578 -0
  490. package/dist/package.json +101 -0
  491. package/dist/plugins.d.ts +37 -0
  492. package/dist/router/admin.d.ts +3 -0
  493. package/dist/router/index.d.ts +9 -0
  494. package/dist/router/merchant.d.ts +3 -0
  495. package/dist/stores/iframe.d.ts +14 -0
  496. package/dist/stores/payoutAccount.d.ts +82 -0
  497. package/dist/style.css +1 -0
  498. package/dist/transaction-fdJNol6A.js +64 -0
  499. package/dist/tsconfig.app.tsbuildinfo +1 -0
  500. package/dist/views/admin/payout-account/PayoutAccount.vue.d.ts +2 -0
  501. package/dist/views/admin/payout-account/PayoutAccountSetting.vue.d.ts +2 -0
  502. package/dist/views/admin/payout-account/cell/Bank.vue.d.ts +9 -0
  503. package/dist/views/admin/payout-account/cell/IsActive.vue.d.ts +9 -0
  504. package/dist/views/admin/payout-account/cell/PersonInCharge.vue.d.ts +9 -0
  505. package/dist/views/admin/payout-account/cell/Status.vue.d.ts +9 -0
  506. package/dist/views/admin/settlement/Settlement.vue.d.ts +2 -0
  507. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +141 -0
  508. package/dist/views/admin/settlement/SettlementTransactions.vue.d.ts +12 -0
  509. package/dist/views/admin/settlement/cell/Actions.vue.d.ts +13 -0
  510. package/dist/views/admin/settlement/cell/Gateway.vue.d.ts +9 -0
  511. package/dist/views/admin/settlement/cell/Method.vue.d.ts +9 -0
  512. package/dist/views/admin/settlement/cell/Status.vue.d.ts +9 -0
  513. package/dist/views/admin/terminal/Terminal.vue.d.ts +2 -0
  514. package/dist/views/admin/terminal/TerminalBindCodeDialog.vue.d.ts +12 -0
  515. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +15 -0
  516. package/dist/views/admin/terminal/cell/ID.vue.d.ts +9 -0
  517. package/dist/views/admin/terminal-transaction/TerminalTransaction.vue.d.ts +2 -0
  518. package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +9 -0
  519. package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +9 -0
  520. package/dist/views/admin/transaction/Transaction.vue.d.ts +2 -0
  521. package/dist/views/admin/transaction/TransactionTable.vue.d.ts +26 -0
  522. package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +9 -0
  523. package/dist/views/admin/transaction/cell/Method.vue.d.ts +9 -0
  524. package/dist/views/admin/transaction/cell/Status.vue.d.ts +9 -0
  525. package/dist/views/payout-account/PayoutAccount.vue.d.ts +2 -0
  526. package/dist/views/payout-account/PayoutAccountDialog.vue.d.ts +92 -0
  527. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +161 -0
  528. package/dist/views/payout-account/cell/Bank.vue.d.ts +9 -0
  529. package/dist/views/payout-account/cell/IsActive.vue.d.ts +9 -0
  530. package/dist/views/payout-account/cell/PersonInCharge.vue.d.ts +9 -0
  531. package/dist/views/payout-account/cell/Status.vue.d.ts +9 -0
  532. package/dist/views/settlement/Settlement.vue.d.ts +2 -0
  533. package/dist/views/settlement/SettlementTable.vue.d.ts +141 -0
  534. package/dist/views/settlement/SettlementTransactions.vue.d.ts +12 -0
  535. package/dist/views/settlement/cell/Actions.vue.d.ts +13 -0
  536. package/dist/views/settlement/cell/Gateway.vue.d.ts +9 -0
  537. package/dist/views/settlement/cell/Method.vue.d.ts +9 -0
  538. package/dist/views/settlement/cell/Status.vue.d.ts +9 -0
  539. package/dist/views/transaction/Transaction.vue.d.ts +2 -0
  540. package/dist/views/transaction/TransactionTable.vue.d.ts +26 -0
  541. package/dist/views/transaction/cell/Gateway.vue.d.ts +9 -0
  542. package/dist/views/transaction/cell/Method.vue.d.ts +9 -0
  543. package/dist/views/transaction/cell/Status.vue.d.ts +9 -0
  544. package/package.json +101 -0
@@ -0,0 +1,3348 @@
1
+ import { d as Vt, f as Wt, _ as X, m as zt, g as Gt, b as Xe, a as ge, h as Ae } from "./index-DvzXwr90.js";
2
+ var qe = { npm_package_dependencies_change_case: "^4.1.2", TERM_PROGRAM: "vscode", NODE: "/opt/homebrew/Cellar/node@18/18.20.4/bin/node", npm_package_dependencies_vue3_lottie: "^2.2.3", INIT_CWD: "/Users/binbinliao/project/payment-service/mf-portal", npm_package_scripts_prod: "vite --mode prod", npm_package_dependencies_axios: "^0.27.2", npm_package_dependencies_moment: "^2.29.4", npm_package_devDependencies_typescript: "~5.4.0", npm_config_version_git_tag: "true", SHELL: "/opt/homebrew/bin/fish", TERM: "xterm-256color", npm_package_devDependencies_jest: "^29.6.3", npm_package_devDependencies_vite: "^5.2.11", TMPDIR: "/var/folders/59/2m_9ylk979b57yvk040bv3f00000gn/T/", npm_package_dependencies_i18next_http_backend: "^1.4.1", npm_package_scripts_lint: "eslint --ext .ts,vue --ignore-path .gitignore . --fix", npm_package_scripts_serve_prod: "yarn && vite --mode production", npm_config_init_license: "MIT", TERM_PROGRAM_VERSION: "1.94.2", npm_package_exports___style: "./dist/style.css", npm_package_scripts_dev: "vite --mode dev", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", MallocNanoZone: "0", npm_package_dependencies_uuid: "^9.0.0", TERM_SESSION_ID: "w0t3p0:ED0ABF6E-9626-422E-A8AC-56426D2191BE", npm_package_scripts_build_only_prod: "pnpm build:mf:prod && pnpm build:dts && pnpm build-types && cp package.json ./dist", npm_package_dependencies_vue_pdf_embed: "^2.1.0", npm_package_devDependencies__rushstack_eslint_patch: "^1.1.3", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_xlsx: "^0.18.5", USER: "binbinliao", npm_package_dependencies__feedmepos_mf_common: "^1.8.21", npm_package_devDependencies_jest_transform_stub: "^2.0.0", COMMAND_MODE: "unix2003", npm_package_dependencies__feedmepos_payment_entity: "^0.0.5-demo4", npm_package_exports___import: "./dist/app.js", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", npm_package_dependencies_vuedraggable: "^4.1.0", PNPM_SCRIPT_SRC_DIR: "/Users/binbinliao/project/payment-service/mf-portal", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.Z3wua9pG0j/Listeners", npm_package_dependencies_i18next_browser_languagedetector: "^6.1.4", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_dependencies_buffer: "^6.0.3", npm_package_devDependencies__types_jest: "^29.5.4", npm_package_devDependencies_eslint: "^8.17.0", npm_package_devDependencies_postcss: "^8.4.47", TERM_FEATURES: "T3LrMSc7UUw9Ts3BFGsSyHNoSxF", npm_config__feedmepos_registry: "https://npm.pkg.github.com/", npm_execpath: "/opt/homebrew/lib/node_modules/pnpm/bin/pnpm.cjs", npm_package_module: "./dist/app.js", npm_package_dependencies__feedmepos_core: "^2.6.0", npm_package_dependencies_google_maps: "^4.3.3", npm_config_frozen_lockfile: "", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", PATH: "/Users/binbinliao/project/payment-service/mf-portal/node_modules/.bin:/opt/homebrew/lib/node_modules/pnpm/dist/node-gyp-bin:/var/folders/59/2m_9ylk979b57yvk040bv3f00000gn/T/yarn--1729255464411-0.6061699528852116:/Users/binbinliao/project/payment-service/mf-portal/node_modules/.bin:/Users/binbinliao/.config/yarn/link/node_modules/.bin:/Users/binbinliao/.yarn/bin:/opt/homebrew/Cellar/node@18/18.20.4/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/Cellar/node@18/18.20.4/lib/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/Cellar/node@18/18.20.4/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/opt/node@18/bin:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/Users/binbinliao/development/flutter/flutter/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/iTerm.app/Contents/Resources/utilities", TERMINFO_DIRS: "/Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo", npm_config_argv: '{"remain":[],"cooked":["run","build-only:dev"],"original":["run","build-only:dev"]}', npm_package_dependencies_jspdf: "^2.5.1", _: "/Users/binbinliao/project/payment-service/mf-portal/node_modules/.bin/vite", LaunchInstanceID: "C42BF6EF-2715-4814-A781-68A54BC2AB1C", npm_package_dependencies_jsurl: "^0.1.5", npm_package_dependencies_vue: "^3.2.25", __CFBundleIdentifier: "com.microsoft.VSCode", npm_package_devDependencies_ts_jest: "^29.1.1", PWD: "/Users/binbinliao/project/payment-service/mf-portal", npm_package_devDependencies_tailwindcss: "^3.4.14", npm_command: "run-script", npm_package_scripts_preview: "vite preview", npm_package_scripts_deploy_dev: "pnpm run build-only:dev && pnpm publish --tag beta --no-git-checks .", npm_package_devDependencies__pinia_testing: "^0.1.3", npm_lifecycle_event: "build:mf:dev", LANG: "en_US.UTF-8", npm_package_name: "@feedmepos/mf-payment", ITERM_PROFILE: "Default", npm_package_dependencies_file_saver: "^2.0.5", npm_package_devDependencies__babel_preset_env: "^7.22.10", npm_package_exports___types: "./dist/app.d.ts", npm_package_devDependencies__vue_test_utils: "^2.4.1", npm_package_devDependencies_sass: "1.32.12", npm_config_version_commit_hooks: "true", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_package_dependencies_rasterizehtml: "^1.3.1", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_config_bin_links: "true", npm_package_dependencies_jszip: "^3.10.1", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_devDependencies_path: "^0.12.7", npm_config_node_gyp: "/opt/homebrew/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.0.0-beta.1", npm_package_devDependencies__types_jsurl: "^0.1.2", VSCODE_INJECTION: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_devDependencies_autoprefixer: "^10.4.20", COLORFGBG: "15;0", SHLVL: "5", HOME: "/Users/binbinliao", npm_package_type: "module", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_scripts_test: "jest", npm_package_dependencies_vue_advanced_cropper: "^2.8.6", npm_package_devDependencies_eslint_plugin_vue: "^9.1.0", LC_TERMINAL_VERSION: "3.5.3", npm_package_dependencies_dotenv: "^16.0.3", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_devDependencies__vue_vue3_jest: "^29.2.5", npm_config_version_git_message: "v%s", ITERM_SESSION_ID: "w0t3p0:ED0ABF6E-9626-422E-A8AC-56426D2191BE", npm_package_dependencies_firebase: "^10.14.0", npm_package_devDependencies__vue_eslint_config_typescript: "^10.0.0", npm_package_devDependencies_ts_node: "^10.9.1", LOGNAME: "binbinliao", YARN_WRAP_OUTPUT: "false", npm_package_scripts_build_only_dev: "pnpm build:mf:dev && pnpm build:dts && pnpm build-types && cp package.json ./dist && cd dist && pnpm version 0.0.0-beta.0 --no-git-tag-version", npm_package_dependencies_zod: "^3.23.8", npm_lifecycle_script: "vite build --mode fmmf:dev", XDG_DATA_DIRS: "/usr/local/share:/usr/share:/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/contrib/terminal/common/scripts/fish_xdg_data", VSCODE_GIT_IPC_HANDLE: "/var/folders/59/2m_9ylk979b57yvk040bv3f00000gn/T/vscode-git-b7145b54a5.sock", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_uuid: "^8.3.4", npm_config_user_agent: "pnpm/9.6.0 npm/? node/v18.20.4 darwin arm64", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", npm_package_devDependencies__types_file_saver: "^2.0.5", npm_package_devDependencies_cd: "^0.3.3", LC_TERMINAL: "iTerm2", npm_package_dependencies__casl_ability: "^3.2.0", npm_package_devDependencies_jest_environment_jsdom: "^29.4.1", npm_package_files_0: "dist", npm_package_devDependencies__types_qrcode: "^1.5.0", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_config_init_version: "1.0.0", SECURITYSESSIONID: "186a4", npm_package_scripts_deploy_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks .", npm_package_dependencies__feedmepos_ui_library: "^1.2.44", npm_package_dependencies_vue_router: "^4.2.5", npm_package_dependencies_i18next: "^21.8.8", COLORTERM: "truecolor", npm_package_dependencies_i18next_vue: "^2.0.0-beta.0", npm_package_dependencies_qrcode: "^1.5.1", npm_package_devDependencies_vue_tsc: "^2.0.11", npm_config_version_tag_prefix: "v", npm_node_execpath: "/opt/homebrew/Cellar/node@18/18.20.4/bin/node", NODE_ENV: "production", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", GOOGLE_MAP_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", MAIN_BACKEND_URL: "", AUTH_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4" };
3
+ /**
4
+ * @license
5
+ * Copyright 2017 Google LLC
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+ const _t = function(t) {
20
+ const e = [];
21
+ let n = 0;
22
+ for (let r = 0; r < t.length; r++) {
23
+ let s = t.charCodeAt(r);
24
+ s < 128 ? e[n++] = s : s < 2048 ? (e[n++] = s >> 6 | 192, e[n++] = s & 63 | 128) : (s & 64512) === 55296 && r + 1 < t.length && (t.charCodeAt(r + 1) & 64512) === 56320 ? (s = 65536 + ((s & 1023) << 10) + (t.charCodeAt(++r) & 1023), e[n++] = s >> 18 | 240, e[n++] = s >> 12 & 63 | 128, e[n++] = s >> 6 & 63 | 128, e[n++] = s & 63 | 128) : (e[n++] = s >> 12 | 224, e[n++] = s >> 6 & 63 | 128, e[n++] = s & 63 | 128);
25
+ }
26
+ return e;
27
+ }, Yt = function(t) {
28
+ const e = [];
29
+ let n = 0, r = 0;
30
+ for (; n < t.length; ) {
31
+ const s = t[n++];
32
+ if (s < 128)
33
+ e[r++] = String.fromCharCode(s);
34
+ else if (s > 191 && s < 224) {
35
+ const i = t[n++];
36
+ e[r++] = String.fromCharCode((s & 31) << 6 | i & 63);
37
+ } else if (s > 239 && s < 365) {
38
+ const i = t[n++], o = t[n++], a = t[n++], u = ((s & 7) << 18 | (i & 63) << 12 | (o & 63) << 6 | a & 63) - 65536;
39
+ e[r++] = String.fromCharCode(55296 + (u >> 10)), e[r++] = String.fromCharCode(56320 + (u & 1023));
40
+ } else {
41
+ const i = t[n++], o = t[n++];
42
+ e[r++] = String.fromCharCode((s & 15) << 12 | (i & 63) << 6 | o & 63);
43
+ }
44
+ }
45
+ return e.join("");
46
+ }, mt = {
47
+ /**
48
+ * Maps bytes to characters.
49
+ */
50
+ byteToCharMap_: null,
51
+ /**
52
+ * Maps characters to bytes.
53
+ */
54
+ charToByteMap_: null,
55
+ /**
56
+ * Maps bytes to websafe characters.
57
+ * @private
58
+ */
59
+ byteToCharMapWebSafe_: null,
60
+ /**
61
+ * Maps websafe characters to bytes.
62
+ * @private
63
+ */
64
+ charToByteMapWebSafe_: null,
65
+ /**
66
+ * Our default alphabet, shared between
67
+ * ENCODED_VALS and ENCODED_VALS_WEBSAFE
68
+ */
69
+ ENCODED_VALS_BASE: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
70
+ /**
71
+ * Our default alphabet. Value 64 (=) is special; it means "nothing."
72
+ */
73
+ get ENCODED_VALS() {
74
+ return this.ENCODED_VALS_BASE + "+/=";
75
+ },
76
+ /**
77
+ * Our websafe alphabet.
78
+ */
79
+ get ENCODED_VALS_WEBSAFE() {
80
+ return this.ENCODED_VALS_BASE + "-_.";
81
+ },
82
+ /**
83
+ * Whether this browser supports the atob and btoa functions. This extension
84
+ * started at Mozilla but is now implemented by many browsers. We use the
85
+ * ASSUME_* variables to avoid pulling in the full useragent detection library
86
+ * but still allowing the standard per-browser compilations.
87
+ *
88
+ */
89
+ HAS_NATIVE_SUPPORT: typeof atob == "function",
90
+ /**
91
+ * Base64-encode an array of bytes.
92
+ *
93
+ * @param input An array of bytes (numbers with
94
+ * value in [0, 255]) to encode.
95
+ * @param webSafe Boolean indicating we should use the
96
+ * alternative alphabet.
97
+ * @return The base64 encoded string.
98
+ */
99
+ encodeByteArray(t, e) {
100
+ if (!Array.isArray(t))
101
+ throw Error("encodeByteArray takes an array as a parameter");
102
+ this.init_();
103
+ const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
104
+ for (let s = 0; s < t.length; s += 3) {
105
+ const i = t[s], o = s + 1 < t.length, a = o ? t[s + 1] : 0, u = s + 2 < t.length, p = u ? t[s + 2] : 0, E = i >> 2, g = (i & 3) << 4 | a >> 4;
106
+ let w = (a & 15) << 2 | p >> 6, S = p & 63;
107
+ u || (S = 64, o || (w = 64)), r.push(n[E], n[g], n[w], n[S]);
108
+ }
109
+ return r.join("");
110
+ },
111
+ /**
112
+ * Base64-encode a string.
113
+ *
114
+ * @param input A string to encode.
115
+ * @param webSafe If true, we should use the
116
+ * alternative alphabet.
117
+ * @return The base64 encoded string.
118
+ */
119
+ encodeString(t, e) {
120
+ return this.HAS_NATIVE_SUPPORT && !e ? btoa(t) : this.encodeByteArray(_t(t), e);
121
+ },
122
+ /**
123
+ * Base64-decode a string.
124
+ *
125
+ * @param input to decode.
126
+ * @param webSafe True if we should use the
127
+ * alternative alphabet.
128
+ * @return string representing the decoded value.
129
+ */
130
+ decodeString(t, e) {
131
+ return this.HAS_NATIVE_SUPPORT && !e ? atob(t) : Yt(this.decodeStringToByteArray(t, e));
132
+ },
133
+ /**
134
+ * Base64-decode a string.
135
+ *
136
+ * In base-64 decoding, groups of four characters are converted into three
137
+ * bytes. If the encoder did not apply padding, the input length may not
138
+ * be a multiple of 4.
139
+ *
140
+ * In this case, the last group will have fewer than 4 characters, and
141
+ * padding will be inferred. If the group has one or two characters, it decodes
142
+ * to one byte. If the group has three characters, it decodes to two bytes.
143
+ *
144
+ * @param input Input to decode.
145
+ * @param webSafe True if we should use the web-safe alphabet.
146
+ * @return bytes representing the decoded value.
147
+ */
148
+ decodeStringToByteArray(t, e) {
149
+ this.init_();
150
+ const n = e ? this.charToByteMapWebSafe_ : this.charToByteMap_, r = [];
151
+ for (let s = 0; s < t.length; ) {
152
+ const i = n[t.charAt(s++)], a = s < t.length ? n[t.charAt(s)] : 0;
153
+ ++s;
154
+ const p = s < t.length ? n[t.charAt(s)] : 64;
155
+ ++s;
156
+ const g = s < t.length ? n[t.charAt(s)] : 64;
157
+ if (++s, i == null || a == null || p == null || g == null)
158
+ throw new Kt();
159
+ const w = i << 2 | a >> 4;
160
+ if (r.push(w), p !== 64) {
161
+ const S = a << 4 & 240 | p >> 2;
162
+ if (r.push(S), g !== 64) {
163
+ const T = p << 6 & 192 | g;
164
+ r.push(T);
165
+ }
166
+ }
167
+ }
168
+ return r;
169
+ },
170
+ /**
171
+ * Lazy static initialization function. Called before
172
+ * accessing any of the static map variables.
173
+ * @private
174
+ */
175
+ init_() {
176
+ if (!this.byteToCharMap_) {
177
+ this.byteToCharMap_ = {}, this.charToByteMap_ = {}, this.byteToCharMapWebSafe_ = {}, this.charToByteMapWebSafe_ = {};
178
+ for (let t = 0; t < this.ENCODED_VALS.length; t++)
179
+ this.byteToCharMap_[t] = this.ENCODED_VALS.charAt(t), this.charToByteMap_[this.byteToCharMap_[t]] = t, this.byteToCharMapWebSafe_[t] = this.ENCODED_VALS_WEBSAFE.charAt(t), this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]] = t, t >= this.ENCODED_VALS_BASE.length && (this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)] = t, this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)] = t);
180
+ }
181
+ }
182
+ };
183
+ class Kt extends Error {
184
+ constructor() {
185
+ super(...arguments), this.name = "DecodeBase64StringError";
186
+ }
187
+ }
188
+ const Xt = function(t) {
189
+ const e = _t(t);
190
+ return mt.encodeByteArray(e, !0);
191
+ }, Ee = function(t) {
192
+ return Xt(t).replace(/\./g, "");
193
+ }, qt = function(t) {
194
+ try {
195
+ return mt.decodeString(t, !0);
196
+ } catch (e) {
197
+ console.error("base64Decode failed: ", e);
198
+ }
199
+ return null;
200
+ };
201
+ /**
202
+ * @license
203
+ * Copyright 2022 Google LLC
204
+ *
205
+ * Licensed under the Apache License, Version 2.0 (the "License");
206
+ * you may not use this file except in compliance with the License.
207
+ * You may obtain a copy of the License at
208
+ *
209
+ * http://www.apache.org/licenses/LICENSE-2.0
210
+ *
211
+ * Unless required by applicable law or agreed to in writing, software
212
+ * distributed under the License is distributed on an "AS IS" BASIS,
213
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
214
+ * See the License for the specific language governing permissions and
215
+ * limitations under the License.
216
+ */
217
+ function Jt() {
218
+ if (typeof self < "u")
219
+ return self;
220
+ if (typeof window < "u")
221
+ return window;
222
+ if (typeof global < "u")
223
+ return global;
224
+ throw new Error("Unable to locate global object.");
225
+ }
226
+ /**
227
+ * @license
228
+ * Copyright 2022 Google LLC
229
+ *
230
+ * Licensed under the Apache License, Version 2.0 (the "License");
231
+ * you may not use this file except in compliance with the License.
232
+ * You may obtain a copy of the License at
233
+ *
234
+ * http://www.apache.org/licenses/LICENSE-2.0
235
+ *
236
+ * Unless required by applicable law or agreed to in writing, software
237
+ * distributed under the License is distributed on an "AS IS" BASIS,
238
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
239
+ * See the License for the specific language governing permissions and
240
+ * limitations under the License.
241
+ */
242
+ const Zt = () => Jt().__FIREBASE_DEFAULTS__, Qt = () => {
243
+ if (typeof process > "u" || typeof qe > "u")
244
+ return;
245
+ const t = qe.__FIREBASE_DEFAULTS__;
246
+ if (t)
247
+ return JSON.parse(t);
248
+ }, en = () => {
249
+ if (typeof document > "u")
250
+ return;
251
+ let t;
252
+ try {
253
+ t = document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/);
254
+ } catch {
255
+ return;
256
+ }
257
+ const e = t && qt(t[1]);
258
+ return e && JSON.parse(e);
259
+ }, gt = () => {
260
+ try {
261
+ return Zt() || Qt() || en();
262
+ } catch (t) {
263
+ console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);
264
+ return;
265
+ }
266
+ }, tn = (t) => {
267
+ var e, n;
268
+ return (n = (e = gt()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || n === void 0 ? void 0 : n[t];
269
+ }, nn = (t) => {
270
+ const e = tn(t);
271
+ if (!e)
272
+ return;
273
+ const n = e.lastIndexOf(":");
274
+ if (n <= 0 || n + 1 === e.length)
275
+ throw new Error(`Invalid host ${e} with no separate hostname and port!`);
276
+ const r = parseInt(e.substring(n + 1), 10);
277
+ return e[0] === "[" ? [e.substring(1, n - 1), r] : [e.substring(0, n), r];
278
+ }, bt = () => {
279
+ var t;
280
+ return (t = gt()) === null || t === void 0 ? void 0 : t.config;
281
+ };
282
+ /**
283
+ * @license
284
+ * Copyright 2017 Google LLC
285
+ *
286
+ * Licensed under the Apache License, Version 2.0 (the "License");
287
+ * you may not use this file except in compliance with the License.
288
+ * You may obtain a copy of the License at
289
+ *
290
+ * http://www.apache.org/licenses/LICENSE-2.0
291
+ *
292
+ * Unless required by applicable law or agreed to in writing, software
293
+ * distributed under the License is distributed on an "AS IS" BASIS,
294
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
295
+ * See the License for the specific language governing permissions and
296
+ * limitations under the License.
297
+ */
298
+ class rn {
299
+ constructor() {
300
+ this.reject = () => {
301
+ }, this.resolve = () => {
302
+ }, this.promise = new Promise((e, n) => {
303
+ this.resolve = e, this.reject = n;
304
+ });
305
+ }
306
+ /**
307
+ * Our API internals are not promisified and cannot because our callback APIs have subtle expectations around
308
+ * invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback
309
+ * and returns a node-style callback which will resolve or reject the Deferred's promise.
310
+ */
311
+ wrapCallback(e) {
312
+ return (n, r) => {
313
+ n ? this.reject(n) : this.resolve(r), typeof e == "function" && (this.promise.catch(() => {
314
+ }), e.length === 1 ? e(n) : e(n, r));
315
+ };
316
+ }
317
+ }
318
+ /**
319
+ * @license
320
+ * Copyright 2021 Google LLC
321
+ *
322
+ * Licensed under the Apache License, Version 2.0 (the "License");
323
+ * you may not use this file except in compliance with the License.
324
+ * You may obtain a copy of the License at
325
+ *
326
+ * http://www.apache.org/licenses/LICENSE-2.0
327
+ *
328
+ * Unless required by applicable law or agreed to in writing, software
329
+ * distributed under the License is distributed on an "AS IS" BASIS,
330
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
331
+ * See the License for the specific language governing permissions and
332
+ * limitations under the License.
333
+ */
334
+ function sn(t, e) {
335
+ if (t.uid)
336
+ throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
337
+ const n = {
338
+ alg: "none",
339
+ type: "JWT"
340
+ }, r = e || "demo-project", s = t.iat || 0, i = t.sub || t.user_id;
341
+ if (!i)
342
+ throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");
343
+ const o = Object.assign({
344
+ // Set all required fields to decent defaults
345
+ iss: `https://securetoken.google.com/${r}`,
346
+ aud: r,
347
+ iat: s,
348
+ exp: s + 3600,
349
+ auth_time: s,
350
+ sub: i,
351
+ user_id: i,
352
+ firebase: {
353
+ sign_in_provider: "custom",
354
+ identities: {}
355
+ }
356
+ }, t);
357
+ return [
358
+ Ee(JSON.stringify(n)),
359
+ Ee(JSON.stringify(o)),
360
+ ""
361
+ ].join(".");
362
+ }
363
+ function on() {
364
+ try {
365
+ return typeof indexedDB == "object";
366
+ } catch {
367
+ return !1;
368
+ }
369
+ }
370
+ function an() {
371
+ return new Promise((t, e) => {
372
+ try {
373
+ let n = !0;
374
+ const r = "validate-browser-context-for-indexeddb-analytics-module", s = self.indexedDB.open(r);
375
+ s.onsuccess = () => {
376
+ s.result.close(), n || self.indexedDB.deleteDatabase(r), t(!0);
377
+ }, s.onupgradeneeded = () => {
378
+ n = !1;
379
+ }, s.onerror = () => {
380
+ var i;
381
+ e(((i = s.error) === null || i === void 0 ? void 0 : i.message) || "");
382
+ };
383
+ } catch (n) {
384
+ e(n);
385
+ }
386
+ });
387
+ }
388
+ /**
389
+ * @license
390
+ * Copyright 2017 Google LLC
391
+ *
392
+ * Licensed under the Apache License, Version 2.0 (the "License");
393
+ * you may not use this file except in compliance with the License.
394
+ * You may obtain a copy of the License at
395
+ *
396
+ * http://www.apache.org/licenses/LICENSE-2.0
397
+ *
398
+ * Unless required by applicable law or agreed to in writing, software
399
+ * distributed under the License is distributed on an "AS IS" BASIS,
400
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
401
+ * See the License for the specific language governing permissions and
402
+ * limitations under the License.
403
+ */
404
+ const cn = "FirebaseError";
405
+ class re extends Error {
406
+ constructor(e, n, r) {
407
+ super(n), this.code = e, this.customData = r, this.name = cn, Object.setPrototypeOf(this, re.prototype), Error.captureStackTrace && Error.captureStackTrace(this, yt.prototype.create);
408
+ }
409
+ }
410
+ class yt {
411
+ constructor(e, n, r) {
412
+ this.service = e, this.serviceName = n, this.errors = r;
413
+ }
414
+ create(e, ...n) {
415
+ const r = n[0] || {}, s = `${this.service}/${e}`, i = this.errors[e], o = i ? un(i, r) : "Error", a = `${this.serviceName}: ${o} (${s}).`;
416
+ return new re(s, a, r);
417
+ }
418
+ }
419
+ function un(t, e) {
420
+ return t.replace(ln, (n, r) => {
421
+ const s = e[r];
422
+ return s != null ? String(s) : `<${r}?>`;
423
+ });
424
+ }
425
+ const ln = /\{\$([^}]+)}/g;
426
+ function Pe(t, e) {
427
+ if (t === e)
428
+ return !0;
429
+ const n = Object.keys(t), r = Object.keys(e);
430
+ for (const s of n) {
431
+ if (!r.includes(s))
432
+ return !1;
433
+ const i = t[s], o = e[s];
434
+ if (Je(i) && Je(o)) {
435
+ if (!Pe(i, o))
436
+ return !1;
437
+ } else if (i !== o)
438
+ return !1;
439
+ }
440
+ for (const s of r)
441
+ if (!n.includes(s))
442
+ return !1;
443
+ return !0;
444
+ }
445
+ function Je(t) {
446
+ return t !== null && typeof t == "object";
447
+ }
448
+ /**
449
+ * @license
450
+ * Copyright 2021 Google LLC
451
+ *
452
+ * Licensed under the Apache License, Version 2.0 (the "License");
453
+ * you may not use this file except in compliance with the License.
454
+ * You may obtain a copy of the License at
455
+ *
456
+ * http://www.apache.org/licenses/LICENSE-2.0
457
+ *
458
+ * Unless required by applicable law or agreed to in writing, software
459
+ * distributed under the License is distributed on an "AS IS" BASIS,
460
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
461
+ * See the License for the specific language governing permissions and
462
+ * limitations under the License.
463
+ */
464
+ function pe(t) {
465
+ return t && t._delegate ? t._delegate : t;
466
+ }
467
+ class ue {
468
+ /**
469
+ *
470
+ * @param name The public service name, e.g. app, auth, firestore, database
471
+ * @param instanceFactory Service factory responsible for creating the public interface
472
+ * @param type whether the service provided by the component is public or private
473
+ */
474
+ constructor(e, n, r) {
475
+ this.name = e, this.instanceFactory = n, this.type = r, this.multipleInstances = !1, this.serviceProps = {}, this.instantiationMode = "LAZY", this.onInstanceCreated = null;
476
+ }
477
+ setInstantiationMode(e) {
478
+ return this.instantiationMode = e, this;
479
+ }
480
+ setMultipleInstances(e) {
481
+ return this.multipleInstances = e, this;
482
+ }
483
+ setServiceProps(e) {
484
+ return this.serviceProps = e, this;
485
+ }
486
+ setInstanceCreatedCallback(e) {
487
+ return this.onInstanceCreated = e, this;
488
+ }
489
+ }
490
+ /**
491
+ * @license
492
+ * Copyright 2019 Google LLC
493
+ *
494
+ * Licensed under the Apache License, Version 2.0 (the "License");
495
+ * you may not use this file except in compliance with the License.
496
+ * You may obtain a copy of the License at
497
+ *
498
+ * http://www.apache.org/licenses/LICENSE-2.0
499
+ *
500
+ * Unless required by applicable law or agreed to in writing, software
501
+ * distributed under the License is distributed on an "AS IS" BASIS,
502
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
503
+ * See the License for the specific language governing permissions and
504
+ * limitations under the License.
505
+ */
506
+ const Q = "[DEFAULT]";
507
+ /**
508
+ * @license
509
+ * Copyright 2019 Google LLC
510
+ *
511
+ * Licensed under the Apache License, Version 2.0 (the "License");
512
+ * you may not use this file except in compliance with the License.
513
+ * You may obtain a copy of the License at
514
+ *
515
+ * http://www.apache.org/licenses/LICENSE-2.0
516
+ *
517
+ * Unless required by applicable law or agreed to in writing, software
518
+ * distributed under the License is distributed on an "AS IS" BASIS,
519
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
520
+ * See the License for the specific language governing permissions and
521
+ * limitations under the License.
522
+ */
523
+ class dn {
524
+ constructor(e, n) {
525
+ this.name = e, this.container = n, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
526
+ }
527
+ /**
528
+ * @param identifier A provider can provide multiple instances of a service
529
+ * if this.component.multipleInstances is true.
530
+ */
531
+ get(e) {
532
+ const n = this.normalizeInstanceIdentifier(e);
533
+ if (!this.instancesDeferred.has(n)) {
534
+ const r = new rn();
535
+ if (this.instancesDeferred.set(n, r), this.isInitialized(n) || this.shouldAutoInitialize())
536
+ try {
537
+ const s = this.getOrInitializeService({
538
+ instanceIdentifier: n
539
+ });
540
+ s && r.resolve(s);
541
+ } catch {
542
+ }
543
+ }
544
+ return this.instancesDeferred.get(n).promise;
545
+ }
546
+ getImmediate(e) {
547
+ var n;
548
+ const r = this.normalizeInstanceIdentifier(e == null ? void 0 : e.identifier), s = (n = e == null ? void 0 : e.optional) !== null && n !== void 0 ? n : !1;
549
+ if (this.isInitialized(r) || this.shouldAutoInitialize())
550
+ try {
551
+ return this.getOrInitializeService({
552
+ instanceIdentifier: r
553
+ });
554
+ } catch (i) {
555
+ if (s)
556
+ return null;
557
+ throw i;
558
+ }
559
+ else {
560
+ if (s)
561
+ return null;
562
+ throw Error(`Service ${this.name} is not available`);
563
+ }
564
+ }
565
+ getComponent() {
566
+ return this.component;
567
+ }
568
+ setComponent(e) {
569
+ if (e.name !== this.name)
570
+ throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);
571
+ if (this.component)
572
+ throw Error(`Component for ${this.name} has already been provided`);
573
+ if (this.component = e, !!this.shouldAutoInitialize()) {
574
+ if (hn(e))
575
+ try {
576
+ this.getOrInitializeService({ instanceIdentifier: Q });
577
+ } catch {
578
+ }
579
+ for (const [n, r] of this.instancesDeferred.entries()) {
580
+ const s = this.normalizeInstanceIdentifier(n);
581
+ try {
582
+ const i = this.getOrInitializeService({
583
+ instanceIdentifier: s
584
+ });
585
+ r.resolve(i);
586
+ } catch {
587
+ }
588
+ }
589
+ }
590
+ }
591
+ clearInstance(e = Q) {
592
+ this.instancesDeferred.delete(e), this.instancesOptions.delete(e), this.instances.delete(e);
593
+ }
594
+ // app.delete() will call this method on every provider to delete the services
595
+ // TODO: should we mark the provider as deleted?
596
+ async delete() {
597
+ const e = Array.from(this.instances.values());
598
+ await Promise.all([
599
+ ...e.filter((n) => "INTERNAL" in n).map((n) => n.INTERNAL.delete()),
600
+ ...e.filter((n) => "_delete" in n).map((n) => n._delete())
601
+ ]);
602
+ }
603
+ isComponentSet() {
604
+ return this.component != null;
605
+ }
606
+ isInitialized(e = Q) {
607
+ return this.instances.has(e);
608
+ }
609
+ getOptions(e = Q) {
610
+ return this.instancesOptions.get(e) || {};
611
+ }
612
+ initialize(e = {}) {
613
+ const { options: n = {} } = e, r = this.normalizeInstanceIdentifier(e.instanceIdentifier);
614
+ if (this.isInitialized(r))
615
+ throw Error(`${this.name}(${r}) has already been initialized`);
616
+ if (!this.isComponentSet())
617
+ throw Error(`Component ${this.name} has not been registered yet`);
618
+ const s = this.getOrInitializeService({
619
+ instanceIdentifier: r,
620
+ options: n
621
+ });
622
+ for (const [i, o] of this.instancesDeferred.entries()) {
623
+ const a = this.normalizeInstanceIdentifier(i);
624
+ r === a && o.resolve(s);
625
+ }
626
+ return s;
627
+ }
628
+ /**
629
+ *
630
+ * @param callback - a function that will be invoked after the provider has been initialized by calling provider.initialize().
631
+ * The function is invoked SYNCHRONOUSLY, so it should not execute any longrunning tasks in order to not block the program.
632
+ *
633
+ * @param identifier An optional instance identifier
634
+ * @returns a function to unregister the callback
635
+ */
636
+ onInit(e, n) {
637
+ var r;
638
+ const s = this.normalizeInstanceIdentifier(n), i = (r = this.onInitCallbacks.get(s)) !== null && r !== void 0 ? r : /* @__PURE__ */ new Set();
639
+ i.add(e), this.onInitCallbacks.set(s, i);
640
+ const o = this.instances.get(s);
641
+ return o && e(o, s), () => {
642
+ i.delete(e);
643
+ };
644
+ }
645
+ /**
646
+ * Invoke onInit callbacks synchronously
647
+ * @param instance the service instance`
648
+ */
649
+ invokeOnInitCallbacks(e, n) {
650
+ const r = this.onInitCallbacks.get(n);
651
+ if (r)
652
+ for (const s of r)
653
+ try {
654
+ s(e, n);
655
+ } catch {
656
+ }
657
+ }
658
+ getOrInitializeService({ instanceIdentifier: e, options: n = {} }) {
659
+ let r = this.instances.get(e);
660
+ if (!r && this.component && (r = this.component.instanceFactory(this.container, {
661
+ instanceIdentifier: pn(e),
662
+ options: n
663
+ }), this.instances.set(e, r), this.instancesOptions.set(e, n), this.invokeOnInitCallbacks(r, e), this.component.onInstanceCreated))
664
+ try {
665
+ this.component.onInstanceCreated(this.container, e, r);
666
+ } catch {
667
+ }
668
+ return r || null;
669
+ }
670
+ normalizeInstanceIdentifier(e = Q) {
671
+ return this.component ? this.component.multipleInstances ? e : Q : e;
672
+ }
673
+ shouldAutoInitialize() {
674
+ return !!this.component && this.component.instantiationMode !== "EXPLICIT";
675
+ }
676
+ }
677
+ function pn(t) {
678
+ return t === Q ? void 0 : t;
679
+ }
680
+ function hn(t) {
681
+ return t.instantiationMode === "EAGER";
682
+ }
683
+ /**
684
+ * @license
685
+ * Copyright 2019 Google LLC
686
+ *
687
+ * Licensed under the Apache License, Version 2.0 (the "License");
688
+ * you may not use this file except in compliance with the License.
689
+ * You may obtain a copy of the License at
690
+ *
691
+ * http://www.apache.org/licenses/LICENSE-2.0
692
+ *
693
+ * Unless required by applicable law or agreed to in writing, software
694
+ * distributed under the License is distributed on an "AS IS" BASIS,
695
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
696
+ * See the License for the specific language governing permissions and
697
+ * limitations under the License.
698
+ */
699
+ class fn {
700
+ constructor(e) {
701
+ this.name = e, this.providers = /* @__PURE__ */ new Map();
702
+ }
703
+ /**
704
+ *
705
+ * @param component Component being added
706
+ * @param overwrite When a component with the same name has already been registered,
707
+ * if overwrite is true: overwrite the existing component with the new component and create a new
708
+ * provider with the new component. It can be useful in tests where you want to use different mocks
709
+ * for different tests.
710
+ * if overwrite is false: throw an exception
711
+ */
712
+ addComponent(e) {
713
+ const n = this.getProvider(e.name);
714
+ if (n.isComponentSet())
715
+ throw new Error(`Component ${e.name} has already been registered with ${this.name}`);
716
+ n.setComponent(e);
717
+ }
718
+ addOrOverwriteComponent(e) {
719
+ this.getProvider(e.name).isComponentSet() && this.providers.delete(e.name), this.addComponent(e);
720
+ }
721
+ /**
722
+ * getProvider provides a type safe interface where it can only be called with a field name
723
+ * present in NameServiceMapping interface.
724
+ *
725
+ * Firebase SDKs providing services should extend NameServiceMapping interface to register
726
+ * themselves.
727
+ */
728
+ getProvider(e) {
729
+ if (this.providers.has(e))
730
+ return this.providers.get(e);
731
+ const n = new dn(e, this);
732
+ return this.providers.set(e, n), n;
733
+ }
734
+ getProviders() {
735
+ return Array.from(this.providers.values());
736
+ }
737
+ }
738
+ /**
739
+ * @license
740
+ * Copyright 2017 Google LLC
741
+ *
742
+ * Licensed under the Apache License, Version 2.0 (the "License");
743
+ * you may not use this file except in compliance with the License.
744
+ * You may obtain a copy of the License at
745
+ *
746
+ * http://www.apache.org/licenses/LICENSE-2.0
747
+ *
748
+ * Unless required by applicable law or agreed to in writing, software
749
+ * distributed under the License is distributed on an "AS IS" BASIS,
750
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
751
+ * See the License for the specific language governing permissions and
752
+ * limitations under the License.
753
+ */
754
+ var v;
755
+ (function(t) {
756
+ t[t.DEBUG = 0] = "DEBUG", t[t.VERBOSE = 1] = "VERBOSE", t[t.INFO = 2] = "INFO", t[t.WARN = 3] = "WARN", t[t.ERROR = 4] = "ERROR", t[t.SILENT = 5] = "SILENT";
757
+ })(v || (v = {}));
758
+ const _n = {
759
+ debug: v.DEBUG,
760
+ verbose: v.VERBOSE,
761
+ info: v.INFO,
762
+ warn: v.WARN,
763
+ error: v.ERROR,
764
+ silent: v.SILENT
765
+ }, mn = v.INFO, gn = {
766
+ [v.DEBUG]: "log",
767
+ [v.VERBOSE]: "log",
768
+ [v.INFO]: "info",
769
+ [v.WARN]: "warn",
770
+ [v.ERROR]: "error"
771
+ }, bn = (t, e, ...n) => {
772
+ if (e < t.logLevel)
773
+ return;
774
+ const r = (/* @__PURE__ */ new Date()).toISOString(), s = gn[e];
775
+ if (s)
776
+ console[s](`[${r}] ${t.name}:`, ...n);
777
+ else
778
+ throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
779
+ };
780
+ class yn {
781
+ /**
782
+ * Gives you an instance of a Logger to capture messages according to
783
+ * Firebase's logging scheme.
784
+ *
785
+ * @param name The name that the logs will be associated with
786
+ */
787
+ constructor(e) {
788
+ this.name = e, this._logLevel = mn, this._logHandler = bn, this._userLogHandler = null;
789
+ }
790
+ get logLevel() {
791
+ return this._logLevel;
792
+ }
793
+ set logLevel(e) {
794
+ if (!(e in v))
795
+ throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);
796
+ this._logLevel = e;
797
+ }
798
+ // Workaround for setter/getter having to be the same type.
799
+ setLogLevel(e) {
800
+ this._logLevel = typeof e == "string" ? _n[e] : e;
801
+ }
802
+ get logHandler() {
803
+ return this._logHandler;
804
+ }
805
+ set logHandler(e) {
806
+ if (typeof e != "function")
807
+ throw new TypeError("Value assigned to `logHandler` must be a function");
808
+ this._logHandler = e;
809
+ }
810
+ get userLogHandler() {
811
+ return this._userLogHandler;
812
+ }
813
+ set userLogHandler(e) {
814
+ this._userLogHandler = e;
815
+ }
816
+ /**
817
+ * The functions below are all based on the `console` interface
818
+ */
819
+ debug(...e) {
820
+ this._userLogHandler && this._userLogHandler(this, v.DEBUG, ...e), this._logHandler(this, v.DEBUG, ...e);
821
+ }
822
+ log(...e) {
823
+ this._userLogHandler && this._userLogHandler(this, v.VERBOSE, ...e), this._logHandler(this, v.VERBOSE, ...e);
824
+ }
825
+ info(...e) {
826
+ this._userLogHandler && this._userLogHandler(this, v.INFO, ...e), this._logHandler(this, v.INFO, ...e);
827
+ }
828
+ warn(...e) {
829
+ this._userLogHandler && this._userLogHandler(this, v.WARN, ...e), this._logHandler(this, v.WARN, ...e);
830
+ }
831
+ error(...e) {
832
+ this._userLogHandler && this._userLogHandler(this, v.ERROR, ...e), this._logHandler(this, v.ERROR, ...e);
833
+ }
834
+ }
835
+ const En = (t, e) => e.some((n) => t instanceof n);
836
+ let Ze, Qe;
837
+ function vn() {
838
+ return Ze || (Ze = [
839
+ IDBDatabase,
840
+ IDBObjectStore,
841
+ IDBIndex,
842
+ IDBCursor,
843
+ IDBTransaction
844
+ ]);
845
+ }
846
+ function wn() {
847
+ return Qe || (Qe = [
848
+ IDBCursor.prototype.advance,
849
+ IDBCursor.prototype.continue,
850
+ IDBCursor.prototype.continuePrimaryKey
851
+ ]);
852
+ }
853
+ const Et = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap();
854
+ function Sn(t) {
855
+ const e = new Promise((n, r) => {
856
+ const s = () => {
857
+ t.removeEventListener("success", i), t.removeEventListener("error", o);
858
+ }, i = () => {
859
+ n(Y(t.result)), s();
860
+ }, o = () => {
861
+ r(t.error), s();
862
+ };
863
+ t.addEventListener("success", i), t.addEventListener("error", o);
864
+ });
865
+ return e.then((n) => {
866
+ n instanceof IDBCursor && Et.set(n, t);
867
+ }).catch(() => {
868
+ }), je.set(e, t), e;
869
+ }
870
+ function Dn(t) {
871
+ if ($e.has(t))
872
+ return;
873
+ const e = new Promise((n, r) => {
874
+ const s = () => {
875
+ t.removeEventListener("complete", i), t.removeEventListener("error", o), t.removeEventListener("abort", o);
876
+ }, i = () => {
877
+ n(), s();
878
+ }, o = () => {
879
+ r(t.error || new DOMException("AbortError", "AbortError")), s();
880
+ };
881
+ t.addEventListener("complete", i), t.addEventListener("error", o), t.addEventListener("abort", o);
882
+ });
883
+ $e.set(t, e);
884
+ }
885
+ let Be = {
886
+ get(t, e, n) {
887
+ if (t instanceof IDBTransaction) {
888
+ if (e === "done")
889
+ return $e.get(t);
890
+ if (e === "objectStoreNames")
891
+ return t.objectStoreNames || vt.get(t);
892
+ if (e === "store")
893
+ return n.objectStoreNames[1] ? void 0 : n.objectStore(n.objectStoreNames[0]);
894
+ }
895
+ return Y(t[e]);
896
+ },
897
+ set(t, e, n) {
898
+ return t[e] = n, !0;
899
+ },
900
+ has(t, e) {
901
+ return t instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in t;
902
+ }
903
+ };
904
+ function An(t) {
905
+ Be = t(Be);
906
+ }
907
+ function In(t) {
908
+ return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
909
+ const r = t.call(Te(this), e, ...n);
910
+ return vt.set(r, e.sort ? e.sort() : [e]), Y(r);
911
+ } : wn().includes(t) ? function(...e) {
912
+ return t.apply(Te(this), e), Y(Et.get(this));
913
+ } : function(...e) {
914
+ return Y(t.apply(Te(this), e));
915
+ };
916
+ }
917
+ function Tn(t) {
918
+ return typeof t == "function" ? In(t) : (t instanceof IDBTransaction && Dn(t), En(t, vn()) ? new Proxy(t, Be) : t);
919
+ }
920
+ function Y(t) {
921
+ if (t instanceof IDBRequest)
922
+ return Sn(t);
923
+ if (Ie.has(t))
924
+ return Ie.get(t);
925
+ const e = Tn(t);
926
+ return e !== t && (Ie.set(t, e), je.set(e, t)), e;
927
+ }
928
+ const Te = (t) => je.get(t);
929
+ function kn(t, e, { blocked: n, upgrade: r, blocking: s, terminated: i } = {}) {
930
+ const o = indexedDB.open(t, e), a = Y(o);
931
+ return r && o.addEventListener("upgradeneeded", (u) => {
932
+ r(Y(o.result), u.oldVersion, u.newVersion, Y(o.transaction), u);
933
+ }), n && o.addEventListener("blocked", (u) => n(
934
+ // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
935
+ u.oldVersion,
936
+ u.newVersion,
937
+ u
938
+ )), a.then((u) => {
939
+ i && u.addEventListener("close", () => i()), s && u.addEventListener("versionchange", (p) => s(p.oldVersion, p.newVersion, p));
940
+ }).catch(() => {
941
+ }), a;
942
+ }
943
+ const Rn = ["get", "getKey", "getAll", "getAllKeys", "count"], On = ["put", "add", "delete", "clear"], ke = /* @__PURE__ */ new Map();
944
+ function et(t, e) {
945
+ if (!(t instanceof IDBDatabase && !(e in t) && typeof e == "string"))
946
+ return;
947
+ if (ke.get(e))
948
+ return ke.get(e);
949
+ const n = e.replace(/FromIndex$/, ""), r = e !== n, s = On.includes(n);
950
+ if (
951
+ // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
952
+ !(n in (r ? IDBIndex : IDBObjectStore).prototype) || !(s || Rn.includes(n))
953
+ )
954
+ return;
955
+ const i = async function(o, ...a) {
956
+ const u = this.transaction(o, s ? "readwrite" : "readonly");
957
+ let p = u.store;
958
+ return r && (p = p.index(a.shift())), (await Promise.all([
959
+ p[n](...a),
960
+ s && u.done
961
+ ]))[0];
962
+ };
963
+ return ke.set(e, i), i;
964
+ }
965
+ An((t) => ({
966
+ ...t,
967
+ get: (e, n, r) => et(e, n) || t.get(e, n, r),
968
+ has: (e, n) => !!et(e, n) || t.has(e, n)
969
+ }));
970
+ /**
971
+ * @license
972
+ * Copyright 2019 Google LLC
973
+ *
974
+ * Licensed under the Apache License, Version 2.0 (the "License");
975
+ * you may not use this file except in compliance with the License.
976
+ * You may obtain a copy of the License at
977
+ *
978
+ * http://www.apache.org/licenses/LICENSE-2.0
979
+ *
980
+ * Unless required by applicable law or agreed to in writing, software
981
+ * distributed under the License is distributed on an "AS IS" BASIS,
982
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
983
+ * See the License for the specific language governing permissions and
984
+ * limitations under the License.
985
+ */
986
+ class Cn {
987
+ constructor(e) {
988
+ this.container = e;
989
+ }
990
+ // In initial implementation, this will be called by installations on
991
+ // auth token refresh, and installations will send this string.
992
+ getPlatformInfoString() {
993
+ return this.container.getProviders().map((n) => {
994
+ if (Nn(n)) {
995
+ const r = n.getImmediate();
996
+ return `${r.library}/${r.version}`;
997
+ } else
998
+ return null;
999
+ }).filter((n) => n).join(" ");
1000
+ }
1001
+ }
1002
+ function Nn(t) {
1003
+ const e = t.getComponent();
1004
+ return (e == null ? void 0 : e.type) === "VERSION";
1005
+ }
1006
+ const Me = "@firebase/app", tt = "0.10.12";
1007
+ /**
1008
+ * @license
1009
+ * Copyright 2019 Google LLC
1010
+ *
1011
+ * Licensed under the Apache License, Version 2.0 (the "License");
1012
+ * you may not use this file except in compliance with the License.
1013
+ * You may obtain a copy of the License at
1014
+ *
1015
+ * http://www.apache.org/licenses/LICENSE-2.0
1016
+ *
1017
+ * Unless required by applicable law or agreed to in writing, software
1018
+ * distributed under the License is distributed on an "AS IS" BASIS,
1019
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1020
+ * See the License for the specific language governing permissions and
1021
+ * limitations under the License.
1022
+ */
1023
+ const V = new yn("@firebase/app"), Pn = "@firebase/app-compat", $n = "@firebase/analytics-compat", Bn = "@firebase/analytics", Mn = "@firebase/app-check-compat", Un = "@firebase/app-check", xn = "@firebase/auth", Ln = "@firebase/auth-compat", Fn = "@firebase/database", jn = "@firebase/data-connect", Hn = "@firebase/database-compat", Vn = "@firebase/functions", Wn = "@firebase/functions-compat", zn = "@firebase/installations", Gn = "@firebase/installations-compat", Yn = "@firebase/messaging", Kn = "@firebase/messaging-compat", Xn = "@firebase/performance", qn = "@firebase/performance-compat", Jn = "@firebase/remote-config", Zn = "@firebase/remote-config-compat", Qn = "@firebase/storage", er = "@firebase/storage-compat", tr = "@firebase/firestore", nr = "@firebase/vertexai-preview", rr = "@firebase/firestore-compat", sr = "firebase", ir = "10.14.0";
1024
+ /**
1025
+ * @license
1026
+ * Copyright 2019 Google LLC
1027
+ *
1028
+ * Licensed under the Apache License, Version 2.0 (the "License");
1029
+ * you may not use this file except in compliance with the License.
1030
+ * You may obtain a copy of the License at
1031
+ *
1032
+ * http://www.apache.org/licenses/LICENSE-2.0
1033
+ *
1034
+ * Unless required by applicable law or agreed to in writing, software
1035
+ * distributed under the License is distributed on an "AS IS" BASIS,
1036
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1037
+ * See the License for the specific language governing permissions and
1038
+ * limitations under the License.
1039
+ */
1040
+ const Ue = "[DEFAULT]", or = {
1041
+ [Me]: "fire-core",
1042
+ [Pn]: "fire-core-compat",
1043
+ [Bn]: "fire-analytics",
1044
+ [$n]: "fire-analytics-compat",
1045
+ [Un]: "fire-app-check",
1046
+ [Mn]: "fire-app-check-compat",
1047
+ [xn]: "fire-auth",
1048
+ [Ln]: "fire-auth-compat",
1049
+ [Fn]: "fire-rtdb",
1050
+ [jn]: "fire-data-connect",
1051
+ [Hn]: "fire-rtdb-compat",
1052
+ [Vn]: "fire-fn",
1053
+ [Wn]: "fire-fn-compat",
1054
+ [zn]: "fire-iid",
1055
+ [Gn]: "fire-iid-compat",
1056
+ [Yn]: "fire-fcm",
1057
+ [Kn]: "fire-fcm-compat",
1058
+ [Xn]: "fire-perf",
1059
+ [qn]: "fire-perf-compat",
1060
+ [Jn]: "fire-rc",
1061
+ [Zn]: "fire-rc-compat",
1062
+ [Qn]: "fire-gcs",
1063
+ [er]: "fire-gcs-compat",
1064
+ [tr]: "fire-fst",
1065
+ [rr]: "fire-fst-compat",
1066
+ [nr]: "fire-vertex",
1067
+ "fire-js": "fire-js",
1068
+ [sr]: "fire-js-all"
1069
+ };
1070
+ /**
1071
+ * @license
1072
+ * Copyright 2019 Google LLC
1073
+ *
1074
+ * Licensed under the Apache License, Version 2.0 (the "License");
1075
+ * you may not use this file except in compliance with the License.
1076
+ * You may obtain a copy of the License at
1077
+ *
1078
+ * http://www.apache.org/licenses/LICENSE-2.0
1079
+ *
1080
+ * Unless required by applicable law or agreed to in writing, software
1081
+ * distributed under the License is distributed on an "AS IS" BASIS,
1082
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1083
+ * See the License for the specific language governing permissions and
1084
+ * limitations under the License.
1085
+ */
1086
+ const ve = /* @__PURE__ */ new Map(), ar = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ new Map();
1087
+ function nt(t, e) {
1088
+ try {
1089
+ t.container.addComponent(e);
1090
+ } catch (n) {
1091
+ V.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
1092
+ }
1093
+ }
1094
+ function we(t) {
1095
+ const e = t.name;
1096
+ if (xe.has(e))
1097
+ return V.debug(`There were multiple attempts to register component ${e}.`), !1;
1098
+ xe.set(e, t);
1099
+ for (const n of ve.values())
1100
+ nt(n, t);
1101
+ for (const n of ar.values())
1102
+ nt(n, t);
1103
+ return !0;
1104
+ }
1105
+ function cr(t, e) {
1106
+ const n = t.container.getProvider("heartbeat").getImmediate({ optional: !0 });
1107
+ return n && n.triggerHeartbeat(), t.container.getProvider(e);
1108
+ }
1109
+ /**
1110
+ * @license
1111
+ * Copyright 2019 Google LLC
1112
+ *
1113
+ * Licensed under the Apache License, Version 2.0 (the "License");
1114
+ * you may not use this file except in compliance with the License.
1115
+ * You may obtain a copy of the License at
1116
+ *
1117
+ * http://www.apache.org/licenses/LICENSE-2.0
1118
+ *
1119
+ * Unless required by applicable law or agreed to in writing, software
1120
+ * distributed under the License is distributed on an "AS IS" BASIS,
1121
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1122
+ * See the License for the specific language governing permissions and
1123
+ * limitations under the License.
1124
+ */
1125
+ const ur = {
1126
+ "no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
1127
+ "bad-app-name": "Illegal App name: '{$appName}'",
1128
+ "duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
1129
+ "app-deleted": "Firebase App named '{$appName}' already deleted",
1130
+ "server-app-deleted": "Firebase Server App has been deleted",
1131
+ "no-options": "Need to provide options, when not being deployed to hosting via source.",
1132
+ "invalid-app-argument": "firebase.{$appName}() takes either no argument or a Firebase App instance.",
1133
+ "invalid-log-argument": "First argument to `onLog` must be null or a function.",
1134
+ "idb-open": "Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.",
1135
+ "idb-get": "Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",
1136
+ "idb-set": "Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",
1137
+ "idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
1138
+ "finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
1139
+ "invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
1140
+ }, K = new yt("app", "Firebase", ur);
1141
+ /**
1142
+ * @license
1143
+ * Copyright 2019 Google LLC
1144
+ *
1145
+ * Licensed under the Apache License, Version 2.0 (the "License");
1146
+ * you may not use this file except in compliance with the License.
1147
+ * You may obtain a copy of the License at
1148
+ *
1149
+ * http://www.apache.org/licenses/LICENSE-2.0
1150
+ *
1151
+ * Unless required by applicable law or agreed to in writing, software
1152
+ * distributed under the License is distributed on an "AS IS" BASIS,
1153
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1154
+ * See the License for the specific language governing permissions and
1155
+ * limitations under the License.
1156
+ */
1157
+ class lr {
1158
+ constructor(e, n, r) {
1159
+ this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, n), this._name = n.name, this._automaticDataCollectionEnabled = n.automaticDataCollectionEnabled, this._container = r, this.container.addComponent(new ue(
1160
+ "app",
1161
+ () => this,
1162
+ "PUBLIC"
1163
+ /* ComponentType.PUBLIC */
1164
+ ));
1165
+ }
1166
+ get automaticDataCollectionEnabled() {
1167
+ return this.checkDestroyed(), this._automaticDataCollectionEnabled;
1168
+ }
1169
+ set automaticDataCollectionEnabled(e) {
1170
+ this.checkDestroyed(), this._automaticDataCollectionEnabled = e;
1171
+ }
1172
+ get name() {
1173
+ return this.checkDestroyed(), this._name;
1174
+ }
1175
+ get options() {
1176
+ return this.checkDestroyed(), this._options;
1177
+ }
1178
+ get config() {
1179
+ return this.checkDestroyed(), this._config;
1180
+ }
1181
+ get container() {
1182
+ return this._container;
1183
+ }
1184
+ get isDeleted() {
1185
+ return this._isDeleted;
1186
+ }
1187
+ set isDeleted(e) {
1188
+ this._isDeleted = e;
1189
+ }
1190
+ /**
1191
+ * This function will throw an Error if the App has already been deleted -
1192
+ * use before performing API actions on the App.
1193
+ */
1194
+ checkDestroyed() {
1195
+ if (this.isDeleted)
1196
+ throw K.create("app-deleted", { appName: this._name });
1197
+ }
1198
+ }
1199
+ /**
1200
+ * @license
1201
+ * Copyright 2019 Google LLC
1202
+ *
1203
+ * Licensed under the Apache License, Version 2.0 (the "License");
1204
+ * you may not use this file except in compliance with the License.
1205
+ * You may obtain a copy of the License at
1206
+ *
1207
+ * http://www.apache.org/licenses/LICENSE-2.0
1208
+ *
1209
+ * Unless required by applicable law or agreed to in writing, software
1210
+ * distributed under the License is distributed on an "AS IS" BASIS,
1211
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
+ * See the License for the specific language governing permissions and
1213
+ * limitations under the License.
1214
+ */
1215
+ const dr = ir;
1216
+ function pr(t, e = {}) {
1217
+ let n = t;
1218
+ typeof e != "object" && (e = { name: e });
1219
+ const r = Object.assign({ name: Ue, automaticDataCollectionEnabled: !1 }, e), s = r.name;
1220
+ if (typeof s != "string" || !s)
1221
+ throw K.create("bad-app-name", {
1222
+ appName: String(s)
1223
+ });
1224
+ if (n || (n = bt()), !n)
1225
+ throw K.create(
1226
+ "no-options"
1227
+ /* AppError.NO_OPTIONS */
1228
+ );
1229
+ const i = ve.get(s);
1230
+ if (i) {
1231
+ if (Pe(n, i.options) && Pe(r, i.config))
1232
+ return i;
1233
+ throw K.create("duplicate-app", { appName: s });
1234
+ }
1235
+ const o = new fn(s);
1236
+ for (const u of xe.values())
1237
+ o.addComponent(u);
1238
+ const a = new lr(n, r, o);
1239
+ return ve.set(s, a), a;
1240
+ }
1241
+ function hr(t = Ue) {
1242
+ const e = ve.get(t);
1243
+ if (!e && t === Ue && bt())
1244
+ return pr();
1245
+ if (!e)
1246
+ throw K.create("no-app", { appName: t });
1247
+ return e;
1248
+ }
1249
+ function ae(t, e, n) {
1250
+ var r;
1251
+ let s = (r = or[t]) !== null && r !== void 0 ? r : t;
1252
+ n && (s += `-${n}`);
1253
+ const i = s.match(/\s|\//), o = e.match(/\s|\//);
1254
+ if (i || o) {
1255
+ const a = [
1256
+ `Unable to register library "${s}" with version "${e}":`
1257
+ ];
1258
+ i && a.push(`library name "${s}" contains illegal characters (whitespace or "/")`), i && o && a.push("and"), o && a.push(`version name "${e}" contains illegal characters (whitespace or "/")`), V.warn(a.join(" "));
1259
+ return;
1260
+ }
1261
+ we(new ue(
1262
+ `${s}-version`,
1263
+ () => ({ library: s, version: e }),
1264
+ "VERSION"
1265
+ /* ComponentType.VERSION */
1266
+ ));
1267
+ }
1268
+ /**
1269
+ * @license
1270
+ * Copyright 2021 Google LLC
1271
+ *
1272
+ * Licensed under the Apache License, Version 2.0 (the "License");
1273
+ * you may not use this file except in compliance with the License.
1274
+ * You may obtain a copy of the License at
1275
+ *
1276
+ * http://www.apache.org/licenses/LICENSE-2.0
1277
+ *
1278
+ * Unless required by applicable law or agreed to in writing, software
1279
+ * distributed under the License is distributed on an "AS IS" BASIS,
1280
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1281
+ * See the License for the specific language governing permissions and
1282
+ * limitations under the License.
1283
+ */
1284
+ const fr = "firebase-heartbeat-database", _r = 1, le = "firebase-heartbeat-store";
1285
+ let Re = null;
1286
+ function wt() {
1287
+ return Re || (Re = kn(fr, _r, {
1288
+ upgrade: (t, e) => {
1289
+ switch (e) {
1290
+ case 0:
1291
+ try {
1292
+ t.createObjectStore(le);
1293
+ } catch (n) {
1294
+ console.warn(n);
1295
+ }
1296
+ }
1297
+ }
1298
+ }).catch((t) => {
1299
+ throw K.create("idb-open", {
1300
+ originalErrorMessage: t.message
1301
+ });
1302
+ })), Re;
1303
+ }
1304
+ async function mr(t) {
1305
+ try {
1306
+ const n = (await wt()).transaction(le), r = await n.objectStore(le).get(St(t));
1307
+ return await n.done, r;
1308
+ } catch (e) {
1309
+ if (e instanceof re)
1310
+ V.warn(e.message);
1311
+ else {
1312
+ const n = K.create("idb-get", {
1313
+ originalErrorMessage: e == null ? void 0 : e.message
1314
+ });
1315
+ V.warn(n.message);
1316
+ }
1317
+ }
1318
+ }
1319
+ async function rt(t, e) {
1320
+ try {
1321
+ const r = (await wt()).transaction(le, "readwrite");
1322
+ await r.objectStore(le).put(e, St(t)), await r.done;
1323
+ } catch (n) {
1324
+ if (n instanceof re)
1325
+ V.warn(n.message);
1326
+ else {
1327
+ const r = K.create("idb-set", {
1328
+ originalErrorMessage: n == null ? void 0 : n.message
1329
+ });
1330
+ V.warn(r.message);
1331
+ }
1332
+ }
1333
+ }
1334
+ function St(t) {
1335
+ return `${t.name}!${t.options.appId}`;
1336
+ }
1337
+ /**
1338
+ * @license
1339
+ * Copyright 2021 Google LLC
1340
+ *
1341
+ * Licensed under the Apache License, Version 2.0 (the "License");
1342
+ * you may not use this file except in compliance with the License.
1343
+ * You may obtain a copy of the License at
1344
+ *
1345
+ * http://www.apache.org/licenses/LICENSE-2.0
1346
+ *
1347
+ * Unless required by applicable law or agreed to in writing, software
1348
+ * distributed under the License is distributed on an "AS IS" BASIS,
1349
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1350
+ * See the License for the specific language governing permissions and
1351
+ * limitations under the License.
1352
+ */
1353
+ const gr = 1024, br = 30 * 24 * 60 * 60 * 1e3;
1354
+ class yr {
1355
+ constructor(e) {
1356
+ this.container = e, this._heartbeatsCache = null;
1357
+ const n = this.container.getProvider("app").getImmediate();
1358
+ this._storage = new vr(n), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
1359
+ }
1360
+ /**
1361
+ * Called to report a heartbeat. The function will generate
1362
+ * a HeartbeatsByUserAgent object, update heartbeatsCache, and persist it
1363
+ * to IndexedDB.
1364
+ * Note that we only store one heartbeat per day. So if a heartbeat for today is
1365
+ * already logged, subsequent calls to this function in the same day will be ignored.
1366
+ */
1367
+ async triggerHeartbeat() {
1368
+ var e, n;
1369
+ try {
1370
+ const s = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), i = st();
1371
+ return ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((n = this._heartbeatsCache) === null || n === void 0 ? void 0 : n.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === i || this._heartbeatsCache.heartbeats.some((o) => o.date === i) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: i, agent: s }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((o) => {
1372
+ const a = new Date(o.date).valueOf();
1373
+ return Date.now() - a <= br;
1374
+ }), this._storage.overwrite(this._heartbeatsCache));
1375
+ } catch (r) {
1376
+ V.warn(r);
1377
+ }
1378
+ }
1379
+ /**
1380
+ * Returns a base64 encoded string which can be attached to the heartbeat-specific header directly.
1381
+ * It also clears all heartbeats from memory as well as in IndexedDB.
1382
+ *
1383
+ * NOTE: Consuming product SDKs should not send the header if this method
1384
+ * returns an empty string.
1385
+ */
1386
+ async getHeartbeatsHeader() {
1387
+ var e;
1388
+ try {
1389
+ if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
1390
+ return "";
1391
+ const n = st(), { heartbeatsToSend: r, unsentEntries: s } = Er(this._heartbeatsCache.heartbeats), i = Ee(JSON.stringify({ version: 2, heartbeats: r }));
1392
+ return this._heartbeatsCache.lastSentHeartbeatDate = n, s.length > 0 ? (this._heartbeatsCache.heartbeats = s, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), i;
1393
+ } catch (n) {
1394
+ return V.warn(n), "";
1395
+ }
1396
+ }
1397
+ }
1398
+ function st() {
1399
+ return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
1400
+ }
1401
+ function Er(t, e = gr) {
1402
+ const n = [];
1403
+ let r = t.slice();
1404
+ for (const s of t) {
1405
+ const i = n.find((o) => o.agent === s.agent);
1406
+ if (i) {
1407
+ if (i.dates.push(s.date), it(n) > e) {
1408
+ i.dates.pop();
1409
+ break;
1410
+ }
1411
+ } else if (n.push({
1412
+ agent: s.agent,
1413
+ dates: [s.date]
1414
+ }), it(n) > e) {
1415
+ n.pop();
1416
+ break;
1417
+ }
1418
+ r = r.slice(1);
1419
+ }
1420
+ return {
1421
+ heartbeatsToSend: n,
1422
+ unsentEntries: r
1423
+ };
1424
+ }
1425
+ class vr {
1426
+ constructor(e) {
1427
+ this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
1428
+ }
1429
+ async runIndexedDBEnvironmentCheck() {
1430
+ return on() ? an().then(() => !0).catch(() => !1) : !1;
1431
+ }
1432
+ /**
1433
+ * Read all heartbeats.
1434
+ */
1435
+ async read() {
1436
+ if (await this._canUseIndexedDBPromise) {
1437
+ const n = await mr(this.app);
1438
+ return n != null && n.heartbeats ? n : { heartbeats: [] };
1439
+ } else
1440
+ return { heartbeats: [] };
1441
+ }
1442
+ // overwrite the storage with the provided heartbeats
1443
+ async overwrite(e) {
1444
+ var n;
1445
+ if (await this._canUseIndexedDBPromise) {
1446
+ const s = await this.read();
1447
+ return rt(this.app, {
1448
+ lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
1449
+ heartbeats: e.heartbeats
1450
+ });
1451
+ } else
1452
+ return;
1453
+ }
1454
+ // add heartbeats
1455
+ async add(e) {
1456
+ var n;
1457
+ if (await this._canUseIndexedDBPromise) {
1458
+ const s = await this.read();
1459
+ return rt(this.app, {
1460
+ lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
1461
+ heartbeats: [
1462
+ ...s.heartbeats,
1463
+ ...e.heartbeats
1464
+ ]
1465
+ });
1466
+ } else
1467
+ return;
1468
+ }
1469
+ }
1470
+ function it(t) {
1471
+ return Ee(
1472
+ // heartbeatsCache wrapper properties
1473
+ JSON.stringify({ version: 2, heartbeats: t })
1474
+ ).length;
1475
+ }
1476
+ /**
1477
+ * @license
1478
+ * Copyright 2019 Google LLC
1479
+ *
1480
+ * Licensed under the Apache License, Version 2.0 (the "License");
1481
+ * you may not use this file except in compliance with the License.
1482
+ * You may obtain a copy of the License at
1483
+ *
1484
+ * http://www.apache.org/licenses/LICENSE-2.0
1485
+ *
1486
+ * Unless required by applicable law or agreed to in writing, software
1487
+ * distributed under the License is distributed on an "AS IS" BASIS,
1488
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1489
+ * See the License for the specific language governing permissions and
1490
+ * limitations under the License.
1491
+ */
1492
+ function wr(t) {
1493
+ we(new ue(
1494
+ "platform-logger",
1495
+ (e) => new Cn(e),
1496
+ "PRIVATE"
1497
+ /* ComponentType.PRIVATE */
1498
+ )), we(new ue(
1499
+ "heartbeat",
1500
+ (e) => new yr(e),
1501
+ "PRIVATE"
1502
+ /* ComponentType.PRIVATE */
1503
+ )), ae(Me, tt, t), ae(Me, tt, "esm2017"), ae("fire-js", "");
1504
+ }
1505
+ wr("");
1506
+ /**
1507
+ * @license
1508
+ * Copyright 2017 Google LLC
1509
+ *
1510
+ * Licensed under the Apache License, Version 2.0 (the "License");
1511
+ * you may not use this file except in compliance with the License.
1512
+ * You may obtain a copy of the License at
1513
+ *
1514
+ * http://www.apache.org/licenses/LICENSE-2.0
1515
+ *
1516
+ * Unless required by applicable law or agreed to in writing, software
1517
+ * distributed under the License is distributed on an "AS IS" BASIS,
1518
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1519
+ * See the License for the specific language governing permissions and
1520
+ * limitations under the License.
1521
+ */
1522
+ const Dt = "firebasestorage.googleapis.com", At = "storageBucket", Sr = 2 * 60 * 1e3, Dr = 10 * 60 * 1e3;
1523
+ /**
1524
+ * @license
1525
+ * Copyright 2017 Google LLC
1526
+ *
1527
+ * Licensed under the Apache License, Version 2.0 (the "License");
1528
+ * you may not use this file except in compliance with the License.
1529
+ * You may obtain a copy of the License at
1530
+ *
1531
+ * http://www.apache.org/licenses/LICENSE-2.0
1532
+ *
1533
+ * Unless required by applicable law or agreed to in writing, software
1534
+ * distributed under the License is distributed on an "AS IS" BASIS,
1535
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1536
+ * See the License for the specific language governing permissions and
1537
+ * limitations under the License.
1538
+ */
1539
+ class A extends re {
1540
+ /**
1541
+ * @param code - A `StorageErrorCode` string to be prefixed with 'storage/' and
1542
+ * added to the end of the message.
1543
+ * @param message - Error message.
1544
+ * @param status_ - Corresponding HTTP Status Code
1545
+ */
1546
+ constructor(e, n, r = 0) {
1547
+ super(Oe(e), `Firebase Storage: ${n} (${Oe(e)})`), this.status_ = r, this.customData = { serverResponse: null }, this._baseMessage = this.message, Object.setPrototypeOf(this, A.prototype);
1548
+ }
1549
+ get status() {
1550
+ return this.status_;
1551
+ }
1552
+ set status(e) {
1553
+ this.status_ = e;
1554
+ }
1555
+ /**
1556
+ * Compares a `StorageErrorCode` against this error's code, filtering out the prefix.
1557
+ */
1558
+ _codeEquals(e) {
1559
+ return Oe(e) === this.code;
1560
+ }
1561
+ /**
1562
+ * Optional response message that was added by the server.
1563
+ */
1564
+ get serverResponse() {
1565
+ return this.customData.serverResponse;
1566
+ }
1567
+ set serverResponse(e) {
1568
+ this.customData.serverResponse = e, this.customData.serverResponse ? this.message = `${this._baseMessage}
1569
+ ${this.customData.serverResponse}` : this.message = this._baseMessage;
1570
+ }
1571
+ }
1572
+ var D;
1573
+ (function(t) {
1574
+ t.UNKNOWN = "unknown", t.OBJECT_NOT_FOUND = "object-not-found", t.BUCKET_NOT_FOUND = "bucket-not-found", t.PROJECT_NOT_FOUND = "project-not-found", t.QUOTA_EXCEEDED = "quota-exceeded", t.UNAUTHENTICATED = "unauthenticated", t.UNAUTHORIZED = "unauthorized", t.UNAUTHORIZED_APP = "unauthorized-app", t.RETRY_LIMIT_EXCEEDED = "retry-limit-exceeded", t.INVALID_CHECKSUM = "invalid-checksum", t.CANCELED = "canceled", t.INVALID_EVENT_NAME = "invalid-event-name", t.INVALID_URL = "invalid-url", t.INVALID_DEFAULT_BUCKET = "invalid-default-bucket", t.NO_DEFAULT_BUCKET = "no-default-bucket", t.CANNOT_SLICE_BLOB = "cannot-slice-blob", t.SERVER_FILE_WRONG_SIZE = "server-file-wrong-size", t.NO_DOWNLOAD_URL = "no-download-url", t.INVALID_ARGUMENT = "invalid-argument", t.INVALID_ARGUMENT_COUNT = "invalid-argument-count", t.APP_DELETED = "app-deleted", t.INVALID_ROOT_OPERATION = "invalid-root-operation", t.INVALID_FORMAT = "invalid-format", t.INTERNAL_ERROR = "internal-error", t.UNSUPPORTED_ENVIRONMENT = "unsupported-environment";
1575
+ })(D || (D = {}));
1576
+ function Oe(t) {
1577
+ return "storage/" + t;
1578
+ }
1579
+ function He() {
1580
+ const t = "An unknown error occurred, please check the error payload for server response.";
1581
+ return new A(D.UNKNOWN, t);
1582
+ }
1583
+ function Ar(t) {
1584
+ return new A(D.OBJECT_NOT_FOUND, "Object '" + t + "' does not exist.");
1585
+ }
1586
+ function Ir(t) {
1587
+ return new A(D.QUOTA_EXCEEDED, "Quota for bucket '" + t + "' exceeded, please view quota on https://firebase.google.com/pricing/.");
1588
+ }
1589
+ function Tr() {
1590
+ const t = "User is not authenticated, please authenticate using Firebase Authentication and try again.";
1591
+ return new A(D.UNAUTHENTICATED, t);
1592
+ }
1593
+ function kr() {
1594
+ return new A(D.UNAUTHORIZED_APP, "This app does not have permission to access Firebase Storage on this project.");
1595
+ }
1596
+ function Rr(t) {
1597
+ return new A(D.UNAUTHORIZED, "User does not have permission to access '" + t + "'.");
1598
+ }
1599
+ function Or() {
1600
+ return new A(D.RETRY_LIMIT_EXCEEDED, "Max retry time for operation exceeded, please try again.");
1601
+ }
1602
+ function Cr() {
1603
+ return new A(D.CANCELED, "User canceled the upload/download.");
1604
+ }
1605
+ function Nr(t) {
1606
+ return new A(D.INVALID_URL, "Invalid URL '" + t + "'.");
1607
+ }
1608
+ function Pr(t) {
1609
+ return new A(D.INVALID_DEFAULT_BUCKET, "Invalid default bucket '" + t + "'.");
1610
+ }
1611
+ function $r() {
1612
+ return new A(D.NO_DEFAULT_BUCKET, "No default bucket found. Did you set the '" + At + "' property when initializing the app?");
1613
+ }
1614
+ function Br() {
1615
+ return new A(D.CANNOT_SLICE_BLOB, "Cannot slice blob for upload. Please retry the upload.");
1616
+ }
1617
+ function Mr() {
1618
+ return new A(D.NO_DOWNLOAD_URL, "The given file does not have any download URLs.");
1619
+ }
1620
+ function Ur(t) {
1621
+ return new A(D.UNSUPPORTED_ENVIRONMENT, `${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`);
1622
+ }
1623
+ function Le(t) {
1624
+ return new A(D.INVALID_ARGUMENT, t);
1625
+ }
1626
+ function It() {
1627
+ return new A(D.APP_DELETED, "The Firebase app was deleted.");
1628
+ }
1629
+ function xr(t) {
1630
+ return new A(D.INVALID_ROOT_OPERATION, "The operation '" + t + "' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').");
1631
+ }
1632
+ function ce(t, e) {
1633
+ return new A(D.INVALID_FORMAT, "String does not match format '" + t + "': " + e);
1634
+ }
1635
+ function oe(t) {
1636
+ throw new A(D.INTERNAL_ERROR, "Internal error: " + t);
1637
+ }
1638
+ /**
1639
+ * @license
1640
+ * Copyright 2017 Google LLC
1641
+ *
1642
+ * Licensed under the Apache License, Version 2.0 (the "License");
1643
+ * you may not use this file except in compliance with the License.
1644
+ * You may obtain a copy of the License at
1645
+ *
1646
+ * http://www.apache.org/licenses/LICENSE-2.0
1647
+ *
1648
+ * Unless required by applicable law or agreed to in writing, software
1649
+ * distributed under the License is distributed on an "AS IS" BASIS,
1650
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1651
+ * See the License for the specific language governing permissions and
1652
+ * limitations under the License.
1653
+ */
1654
+ class M {
1655
+ constructor(e, n) {
1656
+ this.bucket = e, this.path_ = n;
1657
+ }
1658
+ get path() {
1659
+ return this.path_;
1660
+ }
1661
+ get isRoot() {
1662
+ return this.path.length === 0;
1663
+ }
1664
+ fullServerUrl() {
1665
+ const e = encodeURIComponent;
1666
+ return "/b/" + e(this.bucket) + "/o/" + e(this.path);
1667
+ }
1668
+ bucketOnlyServerUrl() {
1669
+ return "/b/" + encodeURIComponent(this.bucket) + "/o";
1670
+ }
1671
+ static makeFromBucketSpec(e, n) {
1672
+ let r;
1673
+ try {
1674
+ r = M.makeFromUrl(e, n);
1675
+ } catch {
1676
+ return new M(e, "");
1677
+ }
1678
+ if (r.path === "")
1679
+ return r;
1680
+ throw Pr(e);
1681
+ }
1682
+ static makeFromUrl(e, n) {
1683
+ let r = null;
1684
+ const s = "([A-Za-z0-9.\\-_]+)";
1685
+ function i(C) {
1686
+ C.path.charAt(C.path.length - 1) === "/" && (C.path_ = C.path_.slice(0, -1));
1687
+ }
1688
+ const o = "(/(.*))?$", a = new RegExp("^gs://" + s + o, "i"), u = { bucket: 1, path: 3 };
1689
+ function p(C) {
1690
+ C.path_ = decodeURIComponent(C.path);
1691
+ }
1692
+ const E = "v[A-Za-z0-9_]+", g = n.replace(/[.]/g, "\\."), w = "(/([^?#]*).*)?$", S = new RegExp(`^https?://${g}/${E}/b/${s}/o${w}`, "i"), T = { bucket: 1, path: 3 }, j = n === Dt ? "(?:storage.googleapis.com|storage.cloud.google.com)" : n, O = "([^?#]*)", W = new RegExp(`^https?://${j}/${s}/${O}`, "i"), $ = [
1693
+ { regex: a, indices: u, postModify: i },
1694
+ {
1695
+ regex: S,
1696
+ indices: T,
1697
+ postModify: p
1698
+ },
1699
+ {
1700
+ regex: W,
1701
+ indices: { bucket: 1, path: 2 },
1702
+ postModify: p
1703
+ }
1704
+ ];
1705
+ for (let C = 0; C < $.length; C++) {
1706
+ const L = $[C], x = L.regex.exec(e);
1707
+ if (x) {
1708
+ const he = x[L.indices.bucket];
1709
+ let q = x[L.indices.path];
1710
+ q || (q = ""), r = new M(he, q), L.postModify(r);
1711
+ break;
1712
+ }
1713
+ }
1714
+ if (r == null)
1715
+ throw Nr(e);
1716
+ return r;
1717
+ }
1718
+ }
1719
+ class Lr {
1720
+ constructor(e) {
1721
+ this.promise_ = Promise.reject(e);
1722
+ }
1723
+ /** @inheritDoc */
1724
+ getPromise() {
1725
+ return this.promise_;
1726
+ }
1727
+ /** @inheritDoc */
1728
+ cancel(e = !1) {
1729
+ }
1730
+ }
1731
+ /**
1732
+ * @license
1733
+ * Copyright 2017 Google LLC
1734
+ *
1735
+ * Licensed under the Apache License, Version 2.0 (the "License");
1736
+ * you may not use this file except in compliance with the License.
1737
+ * You may obtain a copy of the License at
1738
+ *
1739
+ * http://www.apache.org/licenses/LICENSE-2.0
1740
+ *
1741
+ * Unless required by applicable law or agreed to in writing, software
1742
+ * distributed under the License is distributed on an "AS IS" BASIS,
1743
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1744
+ * See the License for the specific language governing permissions and
1745
+ * limitations under the License.
1746
+ */
1747
+ function Fr(t, e, n) {
1748
+ let r = 1, s = null, i = null, o = !1, a = 0;
1749
+ function u() {
1750
+ return a === 2;
1751
+ }
1752
+ let p = !1;
1753
+ function E(...O) {
1754
+ p || (p = !0, e.apply(null, O));
1755
+ }
1756
+ function g(O) {
1757
+ s = setTimeout(() => {
1758
+ s = null, t(S, u());
1759
+ }, O);
1760
+ }
1761
+ function w() {
1762
+ i && clearTimeout(i);
1763
+ }
1764
+ function S(O, ...W) {
1765
+ if (p) {
1766
+ w();
1767
+ return;
1768
+ }
1769
+ if (O) {
1770
+ w(), E.call(null, O, ...W);
1771
+ return;
1772
+ }
1773
+ if (u() || o) {
1774
+ w(), E.call(null, O, ...W);
1775
+ return;
1776
+ }
1777
+ r < 64 && (r *= 2);
1778
+ let $;
1779
+ a === 1 ? (a = 2, $ = 0) : $ = (r + Math.random()) * 1e3, g($);
1780
+ }
1781
+ let T = !1;
1782
+ function j(O) {
1783
+ T || (T = !0, w(), !p && (s !== null ? (O || (a = 2), clearTimeout(s), g(0)) : O || (a = 1)));
1784
+ }
1785
+ return g(0), i = setTimeout(() => {
1786
+ o = !0, j(!0);
1787
+ }, n), j;
1788
+ }
1789
+ function jr(t) {
1790
+ t(!1);
1791
+ }
1792
+ /**
1793
+ * @license
1794
+ * Copyright 2017 Google LLC
1795
+ *
1796
+ * Licensed under the Apache License, Version 2.0 (the "License");
1797
+ * you may not use this file except in compliance with the License.
1798
+ * You may obtain a copy of the License at
1799
+ *
1800
+ * http://www.apache.org/licenses/LICENSE-2.0
1801
+ *
1802
+ * Unless required by applicable law or agreed to in writing, software
1803
+ * distributed under the License is distributed on an "AS IS" BASIS,
1804
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1805
+ * See the License for the specific language governing permissions and
1806
+ * limitations under the License.
1807
+ */
1808
+ function Hr(t) {
1809
+ return t !== void 0;
1810
+ }
1811
+ function Vr(t) {
1812
+ return typeof t == "object" && !Array.isArray(t);
1813
+ }
1814
+ function Ve(t) {
1815
+ return typeof t == "string" || t instanceof String;
1816
+ }
1817
+ function ot(t) {
1818
+ return We() && t instanceof Blob;
1819
+ }
1820
+ function We() {
1821
+ return typeof Blob < "u";
1822
+ }
1823
+ function at(t, e, n, r) {
1824
+ if (r < e)
1825
+ throw Le(`Invalid value for '${t}'. Expected ${e} or greater.`);
1826
+ if (r > n)
1827
+ throw Le(`Invalid value for '${t}'. Expected ${n} or less.`);
1828
+ }
1829
+ /**
1830
+ * @license
1831
+ * Copyright 2017 Google LLC
1832
+ *
1833
+ * Licensed under the Apache License, Version 2.0 (the "License");
1834
+ * you may not use this file except in compliance with the License.
1835
+ * You may obtain a copy of the License at
1836
+ *
1837
+ * http://www.apache.org/licenses/LICENSE-2.0
1838
+ *
1839
+ * Unless required by applicable law or agreed to in writing, software
1840
+ * distributed under the License is distributed on an "AS IS" BASIS,
1841
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1842
+ * See the License for the specific language governing permissions and
1843
+ * limitations under the License.
1844
+ */
1845
+ function Se(t, e, n) {
1846
+ let r = e;
1847
+ return n == null && (r = `https://${e}`), `${n}://${r}/v0${t}`;
1848
+ }
1849
+ function Tt(t) {
1850
+ const e = encodeURIComponent;
1851
+ let n = "?";
1852
+ for (const r in t)
1853
+ if (t.hasOwnProperty(r)) {
1854
+ const s = e(r) + "=" + e(t[r]);
1855
+ n = n + s + "&";
1856
+ }
1857
+ return n = n.slice(0, -1), n;
1858
+ }
1859
+ var ee;
1860
+ (function(t) {
1861
+ t[t.NO_ERROR = 0] = "NO_ERROR", t[t.NETWORK_ERROR = 1] = "NETWORK_ERROR", t[t.ABORT = 2] = "ABORT";
1862
+ })(ee || (ee = {}));
1863
+ /**
1864
+ * @license
1865
+ * Copyright 2022 Google LLC
1866
+ *
1867
+ * Licensed under the Apache License, Version 2.0 (the "License");
1868
+ * you may not use this file except in compliance with the License.
1869
+ * You may obtain a copy of the License at
1870
+ *
1871
+ * http://www.apache.org/licenses/LICENSE-2.0
1872
+ *
1873
+ * Unless required by applicable law or agreed to in writing, software
1874
+ * distributed under the License is distributed on an "AS IS" BASIS,
1875
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1876
+ * See the License for the specific language governing permissions and
1877
+ * limitations under the License.
1878
+ */
1879
+ function Wr(t, e) {
1880
+ const n = t >= 500 && t < 600, s = [
1881
+ // Request Timeout: web server didn't receive full request in time.
1882
+ 408,
1883
+ // Too Many Requests: you're getting rate-limited, basically.
1884
+ 429
1885
+ ].indexOf(t) !== -1, i = e.indexOf(t) !== -1;
1886
+ return n || s || i;
1887
+ }
1888
+ /**
1889
+ * @license
1890
+ * Copyright 2017 Google LLC
1891
+ *
1892
+ * Licensed under the Apache License, Version 2.0 (the "License");
1893
+ * you may not use this file except in compliance with the License.
1894
+ * You may obtain a copy of the License at
1895
+ *
1896
+ * http://www.apache.org/licenses/LICENSE-2.0
1897
+ *
1898
+ * Unless required by applicable law or agreed to in writing, software
1899
+ * distributed under the License is distributed on an "AS IS" BASIS,
1900
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1901
+ * See the License for the specific language governing permissions and
1902
+ * limitations under the License.
1903
+ */
1904
+ class zr {
1905
+ constructor(e, n, r, s, i, o, a, u, p, E, g, w = !0) {
1906
+ this.url_ = e, this.method_ = n, this.headers_ = r, this.body_ = s, this.successCodes_ = i, this.additionalRetryCodes_ = o, this.callback_ = a, this.errorCallback_ = u, this.timeout_ = p, this.progressCallback_ = E, this.connectionFactory_ = g, this.retry = w, this.pendingConnection_ = null, this.backoffId_ = null, this.canceled_ = !1, this.appDelete_ = !1, this.promise_ = new Promise((S, T) => {
1907
+ this.resolve_ = S, this.reject_ = T, this.start_();
1908
+ });
1909
+ }
1910
+ /**
1911
+ * Actually starts the retry loop.
1912
+ */
1913
+ start_() {
1914
+ const e = (r, s) => {
1915
+ if (s) {
1916
+ r(!1, new be(!1, null, !0));
1917
+ return;
1918
+ }
1919
+ const i = this.connectionFactory_();
1920
+ this.pendingConnection_ = i;
1921
+ const o = (a) => {
1922
+ const u = a.loaded, p = a.lengthComputable ? a.total : -1;
1923
+ this.progressCallback_ !== null && this.progressCallback_(u, p);
1924
+ };
1925
+ this.progressCallback_ !== null && i.addUploadProgressListener(o), i.send(this.url_, this.method_, this.body_, this.headers_).then(() => {
1926
+ this.progressCallback_ !== null && i.removeUploadProgressListener(o), this.pendingConnection_ = null;
1927
+ const a = i.getErrorCode() === ee.NO_ERROR, u = i.getStatus();
1928
+ if (!a || Wr(u, this.additionalRetryCodes_) && this.retry) {
1929
+ const E = i.getErrorCode() === ee.ABORT;
1930
+ r(!1, new be(!1, null, E));
1931
+ return;
1932
+ }
1933
+ const p = this.successCodes_.indexOf(u) !== -1;
1934
+ r(!0, new be(p, i));
1935
+ });
1936
+ }, n = (r, s) => {
1937
+ const i = this.resolve_, o = this.reject_, a = s.connection;
1938
+ if (s.wasSuccessCode)
1939
+ try {
1940
+ const u = this.callback_(a, a.getResponse());
1941
+ Hr(u) ? i(u) : i();
1942
+ } catch (u) {
1943
+ o(u);
1944
+ }
1945
+ else if (a !== null) {
1946
+ const u = He();
1947
+ u.serverResponse = a.getErrorText(), this.errorCallback_ ? o(this.errorCallback_(a, u)) : o(u);
1948
+ } else if (s.canceled) {
1949
+ const u = this.appDelete_ ? It() : Cr();
1950
+ o(u);
1951
+ } else {
1952
+ const u = Or();
1953
+ o(u);
1954
+ }
1955
+ };
1956
+ this.canceled_ ? n(!1, new be(!1, null, !0)) : this.backoffId_ = Fr(e, n, this.timeout_);
1957
+ }
1958
+ /** @inheritDoc */
1959
+ getPromise() {
1960
+ return this.promise_;
1961
+ }
1962
+ /** @inheritDoc */
1963
+ cancel(e) {
1964
+ this.canceled_ = !0, this.appDelete_ = e || !1, this.backoffId_ !== null && jr(this.backoffId_), this.pendingConnection_ !== null && this.pendingConnection_.abort();
1965
+ }
1966
+ }
1967
+ class be {
1968
+ constructor(e, n, r) {
1969
+ this.wasSuccessCode = e, this.connection = n, this.canceled = !!r;
1970
+ }
1971
+ }
1972
+ function Gr(t, e) {
1973
+ e !== null && e.length > 0 && (t.Authorization = "Firebase " + e);
1974
+ }
1975
+ function Yr(t, e) {
1976
+ t["X-Firebase-Storage-Version"] = "webjs/" + (e ?? "AppManager");
1977
+ }
1978
+ function Kr(t, e) {
1979
+ e && (t["X-Firebase-GMPID"] = e);
1980
+ }
1981
+ function Xr(t, e) {
1982
+ e !== null && (t["X-Firebase-AppCheck"] = e);
1983
+ }
1984
+ function qr(t, e, n, r, s, i, o = !0) {
1985
+ const a = Tt(t.urlParams), u = t.url + a, p = Object.assign({}, t.headers);
1986
+ return Kr(p, e), Gr(p, n), Yr(p, i), Xr(p, r), new zr(u, t.method, p, t.body, t.successCodes, t.additionalRetryCodes, t.handler, t.errorHandler, t.timeout, t.progressCallback, s, o);
1987
+ }
1988
+ /**
1989
+ * @license
1990
+ * Copyright 2017 Google LLC
1991
+ *
1992
+ * Licensed under the Apache License, Version 2.0 (the "License");
1993
+ * you may not use this file except in compliance with the License.
1994
+ * You may obtain a copy of the License at
1995
+ *
1996
+ * http://www.apache.org/licenses/LICENSE-2.0
1997
+ *
1998
+ * Unless required by applicable law or agreed to in writing, software
1999
+ * distributed under the License is distributed on an "AS IS" BASIS,
2000
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2001
+ * See the License for the specific language governing permissions and
2002
+ * limitations under the License.
2003
+ */
2004
+ function Jr() {
2005
+ return typeof BlobBuilder < "u" ? BlobBuilder : typeof WebKitBlobBuilder < "u" ? WebKitBlobBuilder : void 0;
2006
+ }
2007
+ function Zr(...t) {
2008
+ const e = Jr();
2009
+ if (e !== void 0) {
2010
+ const n = new e();
2011
+ for (let r = 0; r < t.length; r++)
2012
+ n.append(t[r]);
2013
+ return n.getBlob();
2014
+ } else {
2015
+ if (We())
2016
+ return new Blob(t);
2017
+ throw new A(D.UNSUPPORTED_ENVIRONMENT, "This browser doesn't seem to support creating Blobs");
2018
+ }
2019
+ }
2020
+ function Qr(t, e, n) {
2021
+ return t.webkitSlice ? t.webkitSlice(e, n) : t.mozSlice ? t.mozSlice(e, n) : t.slice ? t.slice(e, n) : null;
2022
+ }
2023
+ /**
2024
+ * @license
2025
+ * Copyright 2021 Google LLC
2026
+ *
2027
+ * Licensed under the Apache License, Version 2.0 (the "License");
2028
+ * you may not use this file except in compliance with the License.
2029
+ * You may obtain a copy of the License at
2030
+ *
2031
+ * http://www.apache.org/licenses/LICENSE-2.0
2032
+ *
2033
+ * Unless required by applicable law or agreed to in writing, software
2034
+ * distributed under the License is distributed on an "AS IS" BASIS,
2035
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2036
+ * See the License for the specific language governing permissions and
2037
+ * limitations under the License.
2038
+ */
2039
+ function es(t) {
2040
+ if (typeof atob > "u")
2041
+ throw Ur("base-64");
2042
+ return atob(t);
2043
+ }
2044
+ /**
2045
+ * @license
2046
+ * Copyright 2017 Google LLC
2047
+ *
2048
+ * Licensed under the Apache License, Version 2.0 (the "License");
2049
+ * you may not use this file except in compliance with the License.
2050
+ * You may obtain a copy of the License at
2051
+ *
2052
+ * http://www.apache.org/licenses/LICENSE-2.0
2053
+ *
2054
+ * Unless required by applicable law or agreed to in writing, software
2055
+ * distributed under the License is distributed on an "AS IS" BASIS,
2056
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2057
+ * See the License for the specific language governing permissions and
2058
+ * limitations under the License.
2059
+ */
2060
+ const F = {
2061
+ /**
2062
+ * Indicates the string should be interpreted "raw", that is, as normal text.
2063
+ * The string will be interpreted as UTF-16, then uploaded as a UTF-8 byte
2064
+ * sequence.
2065
+ * Example: The string 'Hello! \\ud83d\\ude0a' becomes the byte sequence
2066
+ * 48 65 6c 6c 6f 21 20 f0 9f 98 8a
2067
+ */
2068
+ RAW: "raw",
2069
+ /**
2070
+ * Indicates the string should be interpreted as base64-encoded data.
2071
+ * Padding characters (trailing '='s) are optional.
2072
+ * Example: The string 'rWmO++E6t7/rlw==' becomes the byte sequence
2073
+ * ad 69 8e fb e1 3a b7 bf eb 97
2074
+ */
2075
+ BASE64: "base64",
2076
+ /**
2077
+ * Indicates the string should be interpreted as base64url-encoded data.
2078
+ * Padding characters (trailing '='s) are optional.
2079
+ * Example: The string 'rWmO--E6t7_rlw==' becomes the byte sequence
2080
+ * ad 69 8e fb e1 3a b7 bf eb 97
2081
+ */
2082
+ BASE64URL: "base64url",
2083
+ /**
2084
+ * Indicates the string is a data URL, such as one obtained from
2085
+ * canvas.toDataURL().
2086
+ * Example: the string 'data:application/octet-stream;base64,aaaa'
2087
+ * becomes the byte sequence
2088
+ * 69 a6 9a
2089
+ * (the content-type "application/octet-stream" is also applied, but can
2090
+ * be overridden in the metadata object).
2091
+ */
2092
+ DATA_URL: "data_url"
2093
+ };
2094
+ class Ce {
2095
+ constructor(e, n) {
2096
+ this.data = e, this.contentType = n || null;
2097
+ }
2098
+ }
2099
+ function ts(t, e) {
2100
+ switch (t) {
2101
+ case F.RAW:
2102
+ return new Ce(kt(e));
2103
+ case F.BASE64:
2104
+ case F.BASE64URL:
2105
+ return new Ce(Rt(t, e));
2106
+ case F.DATA_URL:
2107
+ return new Ce(rs(e), ss(e));
2108
+ }
2109
+ throw He();
2110
+ }
2111
+ function kt(t) {
2112
+ const e = [];
2113
+ for (let n = 0; n < t.length; n++) {
2114
+ let r = t.charCodeAt(n);
2115
+ if (r <= 127)
2116
+ e.push(r);
2117
+ else if (r <= 2047)
2118
+ e.push(192 | r >> 6, 128 | r & 63);
2119
+ else if ((r & 64512) === 55296)
2120
+ if (!(n < t.length - 1 && (t.charCodeAt(n + 1) & 64512) === 56320))
2121
+ e.push(239, 191, 189);
2122
+ else {
2123
+ const i = r, o = t.charCodeAt(++n);
2124
+ r = 65536 | (i & 1023) << 10 | o & 1023, e.push(240 | r >> 18, 128 | r >> 12 & 63, 128 | r >> 6 & 63, 128 | r & 63);
2125
+ }
2126
+ else
2127
+ (r & 64512) === 56320 ? e.push(239, 191, 189) : e.push(224 | r >> 12, 128 | r >> 6 & 63, 128 | r & 63);
2128
+ }
2129
+ return new Uint8Array(e);
2130
+ }
2131
+ function ns(t) {
2132
+ let e;
2133
+ try {
2134
+ e = decodeURIComponent(t);
2135
+ } catch {
2136
+ throw ce(F.DATA_URL, "Malformed data URL.");
2137
+ }
2138
+ return kt(e);
2139
+ }
2140
+ function Rt(t, e) {
2141
+ switch (t) {
2142
+ case F.BASE64: {
2143
+ const s = e.indexOf("-") !== -1, i = e.indexOf("_") !== -1;
2144
+ if (s || i)
2145
+ throw ce(t, "Invalid character '" + (s ? "-" : "_") + "' found: is it base64url encoded?");
2146
+ break;
2147
+ }
2148
+ case F.BASE64URL: {
2149
+ const s = e.indexOf("+") !== -1, i = e.indexOf("/") !== -1;
2150
+ if (s || i)
2151
+ throw ce(t, "Invalid character '" + (s ? "+" : "/") + "' found: is it base64 encoded?");
2152
+ e = e.replace(/-/g, "+").replace(/_/g, "/");
2153
+ break;
2154
+ }
2155
+ }
2156
+ let n;
2157
+ try {
2158
+ n = es(e);
2159
+ } catch (s) {
2160
+ throw s.message.includes("polyfill") ? s : ce(t, "Invalid character found");
2161
+ }
2162
+ const r = new Uint8Array(n.length);
2163
+ for (let s = 0; s < n.length; s++)
2164
+ r[s] = n.charCodeAt(s);
2165
+ return r;
2166
+ }
2167
+ class Ot {
2168
+ constructor(e) {
2169
+ this.base64 = !1, this.contentType = null;
2170
+ const n = e.match(/^data:([^,]+)?,/);
2171
+ if (n === null)
2172
+ throw ce(F.DATA_URL, "Must be formatted 'data:[<mediatype>][;base64],<data>");
2173
+ const r = n[1] || null;
2174
+ r != null && (this.base64 = is(r, ";base64"), this.contentType = this.base64 ? r.substring(0, r.length - 7) : r), this.rest = e.substring(e.indexOf(",") + 1);
2175
+ }
2176
+ }
2177
+ function rs(t) {
2178
+ const e = new Ot(t);
2179
+ return e.base64 ? Rt(F.BASE64, e.rest) : ns(e.rest);
2180
+ }
2181
+ function ss(t) {
2182
+ return new Ot(t).contentType;
2183
+ }
2184
+ function is(t, e) {
2185
+ return t.length >= e.length ? t.substring(t.length - e.length) === e : !1;
2186
+ }
2187
+ /**
2188
+ * @license
2189
+ * Copyright 2017 Google LLC
2190
+ *
2191
+ * Licensed under the Apache License, Version 2.0 (the "License");
2192
+ * you may not use this file except in compliance with the License.
2193
+ * You may obtain a copy of the License at
2194
+ *
2195
+ * http://www.apache.org/licenses/LICENSE-2.0
2196
+ *
2197
+ * Unless required by applicable law or agreed to in writing, software
2198
+ * distributed under the License is distributed on an "AS IS" BASIS,
2199
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2200
+ * See the License for the specific language governing permissions and
2201
+ * limitations under the License.
2202
+ */
2203
+ class G {
2204
+ constructor(e, n) {
2205
+ let r = 0, s = "";
2206
+ ot(e) ? (this.data_ = e, r = e.size, s = e.type) : e instanceof ArrayBuffer ? (n ? this.data_ = new Uint8Array(e) : (this.data_ = new Uint8Array(e.byteLength), this.data_.set(new Uint8Array(e))), r = this.data_.length) : e instanceof Uint8Array && (n ? this.data_ = e : (this.data_ = new Uint8Array(e.length), this.data_.set(e)), r = e.length), this.size_ = r, this.type_ = s;
2207
+ }
2208
+ size() {
2209
+ return this.size_;
2210
+ }
2211
+ type() {
2212
+ return this.type_;
2213
+ }
2214
+ slice(e, n) {
2215
+ if (ot(this.data_)) {
2216
+ const r = this.data_, s = Qr(r, e, n);
2217
+ return s === null ? null : new G(s);
2218
+ } else {
2219
+ const r = new Uint8Array(this.data_.buffer, e, n - e);
2220
+ return new G(r, !0);
2221
+ }
2222
+ }
2223
+ static getBlob(...e) {
2224
+ if (We()) {
2225
+ const n = e.map((r) => r instanceof G ? r.data_ : r);
2226
+ return new G(Zr.apply(null, n));
2227
+ } else {
2228
+ const n = e.map((o) => Ve(o) ? ts(F.RAW, o).data : o.data_);
2229
+ let r = 0;
2230
+ n.forEach((o) => {
2231
+ r += o.byteLength;
2232
+ });
2233
+ const s = new Uint8Array(r);
2234
+ let i = 0;
2235
+ return n.forEach((o) => {
2236
+ for (let a = 0; a < o.length; a++)
2237
+ s[i++] = o[a];
2238
+ }), new G(s, !0);
2239
+ }
2240
+ }
2241
+ uploadData() {
2242
+ return this.data_;
2243
+ }
2244
+ }
2245
+ /**
2246
+ * @license
2247
+ * Copyright 2017 Google LLC
2248
+ *
2249
+ * Licensed under the Apache License, Version 2.0 (the "License");
2250
+ * you may not use this file except in compliance with the License.
2251
+ * You may obtain a copy of the License at
2252
+ *
2253
+ * http://www.apache.org/licenses/LICENSE-2.0
2254
+ *
2255
+ * Unless required by applicable law or agreed to in writing, software
2256
+ * distributed under the License is distributed on an "AS IS" BASIS,
2257
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2258
+ * See the License for the specific language governing permissions and
2259
+ * limitations under the License.
2260
+ */
2261
+ function Ct(t) {
2262
+ let e;
2263
+ try {
2264
+ e = JSON.parse(t);
2265
+ } catch {
2266
+ return null;
2267
+ }
2268
+ return Vr(e) ? e : null;
2269
+ }
2270
+ /**
2271
+ * @license
2272
+ * Copyright 2017 Google LLC
2273
+ *
2274
+ * Licensed under the Apache License, Version 2.0 (the "License");
2275
+ * you may not use this file except in compliance with the License.
2276
+ * You may obtain a copy of the License at
2277
+ *
2278
+ * http://www.apache.org/licenses/LICENSE-2.0
2279
+ *
2280
+ * Unless required by applicable law or agreed to in writing, software
2281
+ * distributed under the License is distributed on an "AS IS" BASIS,
2282
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2283
+ * See the License for the specific language governing permissions and
2284
+ * limitations under the License.
2285
+ */
2286
+ function os(t) {
2287
+ if (t.length === 0)
2288
+ return null;
2289
+ const e = t.lastIndexOf("/");
2290
+ return e === -1 ? "" : t.slice(0, e);
2291
+ }
2292
+ function as(t, e) {
2293
+ const n = e.split("/").filter((r) => r.length > 0).join("/");
2294
+ return t.length === 0 ? n : t + "/" + n;
2295
+ }
2296
+ function Nt(t) {
2297
+ const e = t.lastIndexOf("/", t.length - 2);
2298
+ return e === -1 ? t : t.slice(e + 1);
2299
+ }
2300
+ /**
2301
+ * @license
2302
+ * Copyright 2017 Google LLC
2303
+ *
2304
+ * Licensed under the Apache License, Version 2.0 (the "License");
2305
+ * you may not use this file except in compliance with the License.
2306
+ * You may obtain a copy of the License at
2307
+ *
2308
+ * http://www.apache.org/licenses/LICENSE-2.0
2309
+ *
2310
+ * Unless required by applicable law or agreed to in writing, software
2311
+ * distributed under the License is distributed on an "AS IS" BASIS,
2312
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2313
+ * See the License for the specific language governing permissions and
2314
+ * limitations under the License.
2315
+ */
2316
+ function cs(t, e) {
2317
+ return e;
2318
+ }
2319
+ class P {
2320
+ constructor(e, n, r, s) {
2321
+ this.server = e, this.local = n || e, this.writable = !!r, this.xform = s || cs;
2322
+ }
2323
+ }
2324
+ let ye = null;
2325
+ function us(t) {
2326
+ return !Ve(t) || t.length < 2 ? t : Nt(t);
2327
+ }
2328
+ function Pt() {
2329
+ if (ye)
2330
+ return ye;
2331
+ const t = [];
2332
+ t.push(new P("bucket")), t.push(new P("generation")), t.push(new P("metageneration")), t.push(new P("name", "fullPath", !0));
2333
+ function e(i, o) {
2334
+ return us(o);
2335
+ }
2336
+ const n = new P("name");
2337
+ n.xform = e, t.push(n);
2338
+ function r(i, o) {
2339
+ return o !== void 0 ? Number(o) : o;
2340
+ }
2341
+ const s = new P("size");
2342
+ return s.xform = r, t.push(s), t.push(new P("timeCreated")), t.push(new P("updated")), t.push(new P("md5Hash", null, !0)), t.push(new P("cacheControl", null, !0)), t.push(new P("contentDisposition", null, !0)), t.push(new P("contentEncoding", null, !0)), t.push(new P("contentLanguage", null, !0)), t.push(new P("contentType", null, !0)), t.push(new P("metadata", "customMetadata", !0)), ye = t, ye;
2343
+ }
2344
+ function ls(t, e) {
2345
+ function n() {
2346
+ const r = t.bucket, s = t.fullPath, i = new M(r, s);
2347
+ return e._makeStorageReference(i);
2348
+ }
2349
+ Object.defineProperty(t, "ref", { get: n });
2350
+ }
2351
+ function ds(t, e, n) {
2352
+ const r = {};
2353
+ r.type = "file";
2354
+ const s = n.length;
2355
+ for (let i = 0; i < s; i++) {
2356
+ const o = n[i];
2357
+ r[o.local] = o.xform(r, e[o.server]);
2358
+ }
2359
+ return ls(r, t), r;
2360
+ }
2361
+ function $t(t, e, n) {
2362
+ const r = Ct(e);
2363
+ return r === null ? null : ds(t, r, n);
2364
+ }
2365
+ function ps(t, e, n, r) {
2366
+ const s = Ct(e);
2367
+ if (s === null || !Ve(s.downloadTokens))
2368
+ return null;
2369
+ const i = s.downloadTokens;
2370
+ if (i.length === 0)
2371
+ return null;
2372
+ const o = encodeURIComponent;
2373
+ return i.split(",").map((p) => {
2374
+ const E = t.bucket, g = t.fullPath, w = "/b/" + o(E) + "/o/" + o(g), S = Se(w, n, r), T = Tt({
2375
+ alt: "media",
2376
+ token: p
2377
+ });
2378
+ return S + T;
2379
+ })[0];
2380
+ }
2381
+ function hs(t, e) {
2382
+ const n = {}, r = e.length;
2383
+ for (let s = 0; s < r; s++) {
2384
+ const i = e[s];
2385
+ i.writable && (n[i.server] = t[i.local]);
2386
+ }
2387
+ return JSON.stringify(n);
2388
+ }
2389
+ class ze {
2390
+ constructor(e, n, r, s) {
2391
+ this.url = e, this.method = n, this.handler = r, this.timeout = s, this.urlParams = {}, this.headers = {}, this.body = null, this.errorHandler = null, this.progressCallback = null, this.successCodes = [200], this.additionalRetryCodes = [];
2392
+ }
2393
+ }
2394
+ /**
2395
+ * @license
2396
+ * Copyright 2017 Google LLC
2397
+ *
2398
+ * Licensed under the Apache License, Version 2.0 (the "License");
2399
+ * you may not use this file except in compliance with the License.
2400
+ * You may obtain a copy of the License at
2401
+ *
2402
+ * http://www.apache.org/licenses/LICENSE-2.0
2403
+ *
2404
+ * Unless required by applicable law or agreed to in writing, software
2405
+ * distributed under the License is distributed on an "AS IS" BASIS,
2406
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2407
+ * See the License for the specific language governing permissions and
2408
+ * limitations under the License.
2409
+ */
2410
+ function Bt(t) {
2411
+ if (!t)
2412
+ throw He();
2413
+ }
2414
+ function fs(t, e) {
2415
+ function n(r, s) {
2416
+ const i = $t(t, s, e);
2417
+ return Bt(i !== null), i;
2418
+ }
2419
+ return n;
2420
+ }
2421
+ function _s(t, e) {
2422
+ function n(r, s) {
2423
+ const i = $t(t, s, e);
2424
+ return Bt(i !== null), ps(i, s, t.host, t._protocol);
2425
+ }
2426
+ return n;
2427
+ }
2428
+ function Mt(t) {
2429
+ function e(n, r) {
2430
+ let s;
2431
+ return n.getStatus() === 401 ? /* This exact message string is the only consistent part of the */ /* server's error response that identifies it as an App Check error. */ n.getErrorText().includes("Firebase App Check token is invalid") ? s = kr() : s = Tr() : n.getStatus() === 402 ? s = Ir(t.bucket) : n.getStatus() === 403 ? s = Rr(t.path) : s = r, s.status = n.getStatus(), s.serverResponse = r.serverResponse, s;
2432
+ }
2433
+ return e;
2434
+ }
2435
+ function Ut(t) {
2436
+ const e = Mt(t);
2437
+ function n(r, s) {
2438
+ let i = e(r, s);
2439
+ return r.getStatus() === 404 && (i = Ar(t.path)), i.serverResponse = s.serverResponse, i;
2440
+ }
2441
+ return n;
2442
+ }
2443
+ function ms(t, e, n) {
2444
+ const r = e.fullServerUrl(), s = Se(r, t.host, t._protocol), i = "GET", o = t.maxOperationRetryTime, a = new ze(s, i, _s(t, n), o);
2445
+ return a.errorHandler = Ut(e), a;
2446
+ }
2447
+ function gs(t, e) {
2448
+ const n = e.fullServerUrl(), r = Se(n, t.host, t._protocol), s = "DELETE", i = t.maxOperationRetryTime;
2449
+ function o(u, p) {
2450
+ }
2451
+ const a = new ze(r, s, o, i);
2452
+ return a.successCodes = [200, 204], a.errorHandler = Ut(e), a;
2453
+ }
2454
+ function bs(t, e) {
2455
+ return t && t.contentType || e && e.type() || "application/octet-stream";
2456
+ }
2457
+ function ys(t, e, n) {
2458
+ const r = Object.assign({}, n);
2459
+ return r.fullPath = t.path, r.size = e.size(), r.contentType || (r.contentType = bs(null, e)), r;
2460
+ }
2461
+ function Es(t, e, n, r, s) {
2462
+ const i = e.bucketOnlyServerUrl(), o = {
2463
+ "X-Goog-Upload-Protocol": "multipart"
2464
+ };
2465
+ function a() {
2466
+ let $ = "";
2467
+ for (let C = 0; C < 2; C++)
2468
+ $ = $ + Math.random().toString().slice(2);
2469
+ return $;
2470
+ }
2471
+ const u = a();
2472
+ o["Content-Type"] = "multipart/related; boundary=" + u;
2473
+ const p = ys(e, r, s), E = hs(p, n), g = "--" + u + `\r
2474
+ Content-Type: application/json; charset=utf-8\r
2475
+ \r
2476
+ ` + E + `\r
2477
+ --` + u + `\r
2478
+ Content-Type: ` + p.contentType + `\r
2479
+ \r
2480
+ `, w = `\r
2481
+ --` + u + "--", S = G.getBlob(g, r, w);
2482
+ if (S === null)
2483
+ throw Br();
2484
+ const T = { name: p.fullPath }, j = Se(i, t.host, t._protocol), O = "POST", W = t.maxUploadRetryTime, H = new ze(j, O, fs(t, n), W);
2485
+ return H.urlParams = T, H.headers = o, H.body = S.uploadData(), H.errorHandler = Mt(e), H;
2486
+ }
2487
+ class vs {
2488
+ constructor() {
2489
+ this.sent_ = !1, this.xhr_ = new XMLHttpRequest(), this.initXhr(), this.errorCode_ = ee.NO_ERROR, this.sendPromise_ = new Promise((e) => {
2490
+ this.xhr_.addEventListener("abort", () => {
2491
+ this.errorCode_ = ee.ABORT, e();
2492
+ }), this.xhr_.addEventListener("error", () => {
2493
+ this.errorCode_ = ee.NETWORK_ERROR, e();
2494
+ }), this.xhr_.addEventListener("load", () => {
2495
+ e();
2496
+ });
2497
+ });
2498
+ }
2499
+ send(e, n, r, s) {
2500
+ if (this.sent_)
2501
+ throw oe("cannot .send() more than once");
2502
+ if (this.sent_ = !0, this.xhr_.open(n, e, !0), s !== void 0)
2503
+ for (const i in s)
2504
+ s.hasOwnProperty(i) && this.xhr_.setRequestHeader(i, s[i].toString());
2505
+ return r !== void 0 ? this.xhr_.send(r) : this.xhr_.send(), this.sendPromise_;
2506
+ }
2507
+ getErrorCode() {
2508
+ if (!this.sent_)
2509
+ throw oe("cannot .getErrorCode() before sending");
2510
+ return this.errorCode_;
2511
+ }
2512
+ getStatus() {
2513
+ if (!this.sent_)
2514
+ throw oe("cannot .getStatus() before sending");
2515
+ try {
2516
+ return this.xhr_.status;
2517
+ } catch {
2518
+ return -1;
2519
+ }
2520
+ }
2521
+ getResponse() {
2522
+ if (!this.sent_)
2523
+ throw oe("cannot .getResponse() before sending");
2524
+ return this.xhr_.response;
2525
+ }
2526
+ getErrorText() {
2527
+ if (!this.sent_)
2528
+ throw oe("cannot .getErrorText() before sending");
2529
+ return this.xhr_.statusText;
2530
+ }
2531
+ /** Aborts the request. */
2532
+ abort() {
2533
+ this.xhr_.abort();
2534
+ }
2535
+ getResponseHeader(e) {
2536
+ return this.xhr_.getResponseHeader(e);
2537
+ }
2538
+ addUploadProgressListener(e) {
2539
+ this.xhr_.upload != null && this.xhr_.upload.addEventListener("progress", e);
2540
+ }
2541
+ removeUploadProgressListener(e) {
2542
+ this.xhr_.upload != null && this.xhr_.upload.removeEventListener("progress", e);
2543
+ }
2544
+ }
2545
+ class ws extends vs {
2546
+ initXhr() {
2547
+ this.xhr_.responseType = "text";
2548
+ }
2549
+ }
2550
+ function Ge() {
2551
+ return new ws();
2552
+ }
2553
+ /**
2554
+ * @license
2555
+ * Copyright 2019 Google LLC
2556
+ *
2557
+ * Licensed under the Apache License, Version 2.0 (the "License");
2558
+ * you may not use this file except in compliance with the License.
2559
+ * You may obtain a copy of the License at
2560
+ *
2561
+ * http://www.apache.org/licenses/LICENSE-2.0
2562
+ *
2563
+ * Unless required by applicable law or agreed to in writing, software
2564
+ * distributed under the License is distributed on an "AS IS" BASIS,
2565
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2566
+ * See the License for the specific language governing permissions and
2567
+ * limitations under the License.
2568
+ */
2569
+ class te {
2570
+ constructor(e, n) {
2571
+ this._service = e, n instanceof M ? this._location = n : this._location = M.makeFromUrl(n, e.host);
2572
+ }
2573
+ /**
2574
+ * Returns the URL for the bucket and path this object references,
2575
+ * in the form gs://<bucket>/<object-path>
2576
+ * @override
2577
+ */
2578
+ toString() {
2579
+ return "gs://" + this._location.bucket + "/" + this._location.path;
2580
+ }
2581
+ _newRef(e, n) {
2582
+ return new te(e, n);
2583
+ }
2584
+ /**
2585
+ * A reference to the root of this object's bucket.
2586
+ */
2587
+ get root() {
2588
+ const e = new M(this._location.bucket, "");
2589
+ return this._newRef(this._service, e);
2590
+ }
2591
+ /**
2592
+ * The name of the bucket containing this reference's object.
2593
+ */
2594
+ get bucket() {
2595
+ return this._location.bucket;
2596
+ }
2597
+ /**
2598
+ * The full path of this object.
2599
+ */
2600
+ get fullPath() {
2601
+ return this._location.path;
2602
+ }
2603
+ /**
2604
+ * The short name of this object, which is the last component of the full path.
2605
+ * For example, if fullPath is 'full/path/image.png', name is 'image.png'.
2606
+ */
2607
+ get name() {
2608
+ return Nt(this._location.path);
2609
+ }
2610
+ /**
2611
+ * The `StorageService` instance this `StorageReference` is associated with.
2612
+ */
2613
+ get storage() {
2614
+ return this._service;
2615
+ }
2616
+ /**
2617
+ * A `StorageReference` pointing to the parent location of this `StorageReference`, or null if
2618
+ * this reference is the root.
2619
+ */
2620
+ get parent() {
2621
+ const e = os(this._location.path);
2622
+ if (e === null)
2623
+ return null;
2624
+ const n = new M(this._location.bucket, e);
2625
+ return new te(this._service, n);
2626
+ }
2627
+ /**
2628
+ * Utility function to throw an error in methods that do not accept a root reference.
2629
+ */
2630
+ _throwIfRoot(e) {
2631
+ if (this._location.path === "")
2632
+ throw xr(e);
2633
+ }
2634
+ }
2635
+ function Ss(t, e, n) {
2636
+ t._throwIfRoot("uploadBytes");
2637
+ const r = Es(t.storage, t._location, Pt(), new G(e, !0), n);
2638
+ return t.storage.makeRequestWithTokens(r, Ge).then((s) => ({
2639
+ metadata: s,
2640
+ ref: t
2641
+ }));
2642
+ }
2643
+ function Ds(t) {
2644
+ t._throwIfRoot("getDownloadURL");
2645
+ const e = ms(t.storage, t._location, Pt());
2646
+ return t.storage.makeRequestWithTokens(e, Ge).then((n) => {
2647
+ if (n === null)
2648
+ throw Mr();
2649
+ return n;
2650
+ });
2651
+ }
2652
+ function As(t) {
2653
+ t._throwIfRoot("deleteObject");
2654
+ const e = gs(t.storage, t._location);
2655
+ return t.storage.makeRequestWithTokens(e, Ge);
2656
+ }
2657
+ function Is(t, e) {
2658
+ const n = as(t._location.path, e), r = new M(t._location.bucket, n);
2659
+ return new te(t.storage, r);
2660
+ }
2661
+ /**
2662
+ * @license
2663
+ * Copyright 2017 Google LLC
2664
+ *
2665
+ * Licensed under the Apache License, Version 2.0 (the "License");
2666
+ * you may not use this file except in compliance with the License.
2667
+ * You may obtain a copy of the License at
2668
+ *
2669
+ * http://www.apache.org/licenses/LICENSE-2.0
2670
+ *
2671
+ * Unless required by applicable law or agreed to in writing, software
2672
+ * distributed under the License is distributed on an "AS IS" BASIS,
2673
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2674
+ * See the License for the specific language governing permissions and
2675
+ * limitations under the License.
2676
+ */
2677
+ function Ts(t) {
2678
+ return /^[A-Za-z]+:\/\//.test(t);
2679
+ }
2680
+ function ks(t, e) {
2681
+ return new te(t, e);
2682
+ }
2683
+ function xt(t, e) {
2684
+ if (t instanceof Ye) {
2685
+ const n = t;
2686
+ if (n._bucket == null)
2687
+ throw $r();
2688
+ const r = new te(n, n._bucket);
2689
+ return e != null ? xt(r, e) : r;
2690
+ } else
2691
+ return e !== void 0 ? Is(t, e) : t;
2692
+ }
2693
+ function Rs(t, e) {
2694
+ if (e && Ts(e)) {
2695
+ if (t instanceof Ye)
2696
+ return ks(t, e);
2697
+ throw Le("To use ref(service, url), the first argument must be a Storage instance.");
2698
+ } else
2699
+ return xt(t, e);
2700
+ }
2701
+ function ct(t, e) {
2702
+ const n = e == null ? void 0 : e[At];
2703
+ return n == null ? null : M.makeFromBucketSpec(n, t);
2704
+ }
2705
+ function Os(t, e, n, r = {}) {
2706
+ t.host = `${e}:${n}`, t._protocol = "http";
2707
+ const { mockUserToken: s } = r;
2708
+ s && (t._overrideAuthToken = typeof s == "string" ? s : sn(s, t.app.options.projectId));
2709
+ }
2710
+ class Ye {
2711
+ constructor(e, n, r, s, i) {
2712
+ this.app = e, this._authProvider = n, this._appCheckProvider = r, this._url = s, this._firebaseVersion = i, this._bucket = null, this._host = Dt, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = Sr, this._maxUploadRetryTime = Dr, this._requests = /* @__PURE__ */ new Set(), s != null ? this._bucket = M.makeFromBucketSpec(s, this._host) : this._bucket = ct(this._host, this.app.options);
2713
+ }
2714
+ /**
2715
+ * The host string for this service, in the form of `host` or
2716
+ * `host:port`.
2717
+ */
2718
+ get host() {
2719
+ return this._host;
2720
+ }
2721
+ set host(e) {
2722
+ this._host = e, this._url != null ? this._bucket = M.makeFromBucketSpec(this._url, e) : this._bucket = ct(e, this.app.options);
2723
+ }
2724
+ /**
2725
+ * The maximum time to retry uploads in milliseconds.
2726
+ */
2727
+ get maxUploadRetryTime() {
2728
+ return this._maxUploadRetryTime;
2729
+ }
2730
+ set maxUploadRetryTime(e) {
2731
+ at(
2732
+ "time",
2733
+ /* minValue=*/
2734
+ 0,
2735
+ /* maxValue= */
2736
+ Number.POSITIVE_INFINITY,
2737
+ e
2738
+ ), this._maxUploadRetryTime = e;
2739
+ }
2740
+ /**
2741
+ * The maximum time to retry operations other than uploads or downloads in
2742
+ * milliseconds.
2743
+ */
2744
+ get maxOperationRetryTime() {
2745
+ return this._maxOperationRetryTime;
2746
+ }
2747
+ set maxOperationRetryTime(e) {
2748
+ at(
2749
+ "time",
2750
+ /* minValue=*/
2751
+ 0,
2752
+ /* maxValue= */
2753
+ Number.POSITIVE_INFINITY,
2754
+ e
2755
+ ), this._maxOperationRetryTime = e;
2756
+ }
2757
+ async _getAuthToken() {
2758
+ if (this._overrideAuthToken)
2759
+ return this._overrideAuthToken;
2760
+ const e = this._authProvider.getImmediate({ optional: !0 });
2761
+ if (e) {
2762
+ const n = await e.getToken();
2763
+ if (n !== null)
2764
+ return n.accessToken;
2765
+ }
2766
+ return null;
2767
+ }
2768
+ async _getAppCheckToken() {
2769
+ const e = this._appCheckProvider.getImmediate({ optional: !0 });
2770
+ return e ? (await e.getToken()).token : null;
2771
+ }
2772
+ /**
2773
+ * Stop running requests and prevent more from being created.
2774
+ */
2775
+ _delete() {
2776
+ return this._deleted || (this._deleted = !0, this._requests.forEach((e) => e.cancel()), this._requests.clear()), Promise.resolve();
2777
+ }
2778
+ /**
2779
+ * Returns a new firebaseStorage.Reference object referencing this StorageService
2780
+ * at the given Location.
2781
+ */
2782
+ _makeStorageReference(e) {
2783
+ return new te(this, e);
2784
+ }
2785
+ /**
2786
+ * @param requestInfo - HTTP RequestInfo object
2787
+ * @param authToken - Firebase auth token
2788
+ */
2789
+ _makeRequest(e, n, r, s, i = !0) {
2790
+ if (this._deleted)
2791
+ return new Lr(It());
2792
+ {
2793
+ const o = qr(e, this._appId, r, s, n, this._firebaseVersion, i);
2794
+ return this._requests.add(o), o.getPromise().then(() => this._requests.delete(o), () => this._requests.delete(o)), o;
2795
+ }
2796
+ }
2797
+ async makeRequestWithTokens(e, n) {
2798
+ const [r, s] = await Promise.all([
2799
+ this._getAuthToken(),
2800
+ this._getAppCheckToken()
2801
+ ]);
2802
+ return this._makeRequest(e, n, r, s).getPromise();
2803
+ }
2804
+ }
2805
+ const ut = "@firebase/storage", lt = "0.13.2";
2806
+ /**
2807
+ * @license
2808
+ * Copyright 2020 Google LLC
2809
+ *
2810
+ * Licensed under the Apache License, Version 2.0 (the "License");
2811
+ * you may not use this file except in compliance with the License.
2812
+ * You may obtain a copy of the License at
2813
+ *
2814
+ * http://www.apache.org/licenses/LICENSE-2.0
2815
+ *
2816
+ * Unless required by applicable law or agreed to in writing, software
2817
+ * distributed under the License is distributed on an "AS IS" BASIS,
2818
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2819
+ * See the License for the specific language governing permissions and
2820
+ * limitations under the License.
2821
+ */
2822
+ const Lt = "storage";
2823
+ function Cs(t, e, n) {
2824
+ return t = pe(t), Ss(t, e, n);
2825
+ }
2826
+ function Ns(t) {
2827
+ return t = pe(t), Ds(t);
2828
+ }
2829
+ function Ps(t) {
2830
+ return t = pe(t), As(t);
2831
+ }
2832
+ function dt(t, e) {
2833
+ return t = pe(t), Rs(t, e);
2834
+ }
2835
+ function pt(t = hr(), e) {
2836
+ t = pe(t);
2837
+ const r = cr(t, Lt).getImmediate({
2838
+ identifier: e
2839
+ }), s = nn("storage");
2840
+ return s && $s(r, ...s), r;
2841
+ }
2842
+ function $s(t, e, n, r = {}) {
2843
+ Os(t, e, n, r);
2844
+ }
2845
+ function Bs(t, { instanceIdentifier: e }) {
2846
+ const n = t.getProvider("app").getImmediate(), r = t.getProvider("auth-internal"), s = t.getProvider("app-check-internal");
2847
+ return new Ye(n, r, s, e, dr);
2848
+ }
2849
+ function Ms() {
2850
+ we(new ue(
2851
+ Lt,
2852
+ Bs,
2853
+ "PUBLIC"
2854
+ /* ComponentType.PUBLIC */
2855
+ ).setMultipleInstances(!0)), ae(ut, lt, ""), ae(ut, lt, "esm2017");
2856
+ }
2857
+ Ms();
2858
+ const de = {
2859
+ async update(t, e, n) {
2860
+ const r = pt(void 0, n), s = dt(r, t);
2861
+ return await Cs(s, e), Ns(s);
2862
+ },
2863
+ async delete(t, e) {
2864
+ const n = pt(void 0, e), r = dt(n, t);
2865
+ await Ps(r);
2866
+ }
2867
+ };
2868
+ var Ft = { exports: {} };
2869
+ (function(t, e) {
2870
+ (function(n, r) {
2871
+ t.exports = r();
2872
+ })(Vt, function() {
2873
+ var n = 1e3, r = 6e4, s = 36e5, i = "millisecond", o = "second", a = "minute", u = "hour", p = "day", E = "week", g = "month", w = "quarter", S = "year", T = "date", j = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, W = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, H = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(f) {
2874
+ var d = ["th", "st", "nd", "rd"], c = f % 100;
2875
+ return "[" + f + (d[(c - 20) % 10] || d[c] || d[0]) + "]";
2876
+ } }, $ = function(f, d, c) {
2877
+ var h = String(f);
2878
+ return !h || h.length >= d ? f : "" + Array(d + 1 - h.length).join(c) + f;
2879
+ }, C = { s: $, z: function(f) {
2880
+ var d = -f.utcOffset(), c = Math.abs(d), h = Math.floor(c / 60), l = c % 60;
2881
+ return (d <= 0 ? "+" : "-") + $(h, 2, "0") + ":" + $(l, 2, "0");
2882
+ }, m: function f(d, c) {
2883
+ if (d.date() < c.date()) return -f(c, d);
2884
+ var h = 12 * (c.year() - d.year()) + (c.month() - d.month()), l = d.clone().add(h, g), _ = c - l < 0, m = d.clone().add(h + (_ ? -1 : 1), g);
2885
+ return +(-(h + (c - l) / (_ ? l - m : m - l)) || 0);
2886
+ }, a: function(f) {
2887
+ return f < 0 ? Math.ceil(f) || 0 : Math.floor(f);
2888
+ }, p: function(f) {
2889
+ return { M: g, y: S, w: E, d: p, D: T, h: u, m: a, s: o, ms: i, Q: w }[f] || String(f || "").toLowerCase().replace(/s$/, "");
2890
+ }, u: function(f) {
2891
+ return f === void 0;
2892
+ } }, L = "en", x = {};
2893
+ x[L] = H;
2894
+ var he = "$isDayjsObject", q = function(f) {
2895
+ return f instanceof _e || !(!f || !f[he]);
2896
+ }, fe = function f(d, c, h) {
2897
+ var l;
2898
+ if (!d) return L;
2899
+ if (typeof d == "string") {
2900
+ var _ = d.toLowerCase();
2901
+ x[_] && (l = _), c && (x[_] = c, l = _);
2902
+ var m = d.split("-");
2903
+ if (!l && m.length > 1) return f(m[0]);
2904
+ } else {
2905
+ var y = d.name;
2906
+ x[y] = d, l = y;
2907
+ }
2908
+ return !h && l && (L = l), l || !h && L;
2909
+ }, k = function(f, d) {
2910
+ if (q(f)) return f.clone();
2911
+ var c = typeof d == "object" ? d : {};
2912
+ return c.date = f, c.args = arguments, new _e(c);
2913
+ }, b = C;
2914
+ b.l = fe, b.i = q, b.w = function(f, d) {
2915
+ return k(f, { locale: d.$L, utc: d.$u, x: d.$x, $offset: d.$offset });
2916
+ };
2917
+ var _e = function() {
2918
+ function f(c) {
2919
+ this.$L = fe(c.locale, null, !0), this.parse(c), this.$x = this.$x || c.x || {}, this[he] = !0;
2920
+ }
2921
+ var d = f.prototype;
2922
+ return d.parse = function(c) {
2923
+ this.$d = function(h) {
2924
+ var l = h.date, _ = h.utc;
2925
+ if (l === null) return /* @__PURE__ */ new Date(NaN);
2926
+ if (b.u(l)) return /* @__PURE__ */ new Date();
2927
+ if (l instanceof Date) return new Date(l);
2928
+ if (typeof l == "string" && !/Z$/i.test(l)) {
2929
+ var m = l.match(O);
2930
+ if (m) {
2931
+ var y = m[2] - 1 || 0, I = (m[7] || "0").substring(0, 3);
2932
+ return _ ? new Date(Date.UTC(m[1], y, m[3] || 1, m[4] || 0, m[5] || 0, m[6] || 0, I)) : new Date(m[1], y, m[3] || 1, m[4] || 0, m[5] || 0, m[6] || 0, I);
2933
+ }
2934
+ }
2935
+ return new Date(l);
2936
+ }(c), this.init();
2937
+ }, d.init = function() {
2938
+ var c = this.$d;
2939
+ this.$y = c.getFullYear(), this.$M = c.getMonth(), this.$D = c.getDate(), this.$W = c.getDay(), this.$H = c.getHours(), this.$m = c.getMinutes(), this.$s = c.getSeconds(), this.$ms = c.getMilliseconds();
2940
+ }, d.$utils = function() {
2941
+ return b;
2942
+ }, d.isValid = function() {
2943
+ return this.$d.toString() !== j;
2944
+ }, d.isSame = function(c, h) {
2945
+ var l = k(c);
2946
+ return this.startOf(h) <= l && l <= this.endOf(h);
2947
+ }, d.isAfter = function(c, h) {
2948
+ return k(c) < this.startOf(h);
2949
+ }, d.isBefore = function(c, h) {
2950
+ return this.endOf(h) < k(c);
2951
+ }, d.$g = function(c, h, l) {
2952
+ return b.u(c) ? this[h] : this.set(l, c);
2953
+ }, d.unix = function() {
2954
+ return Math.floor(this.valueOf() / 1e3);
2955
+ }, d.valueOf = function() {
2956
+ return this.$d.getTime();
2957
+ }, d.startOf = function(c, h) {
2958
+ var l = this, _ = !!b.u(h) || h, m = b.p(c), y = function(Z, B) {
2959
+ var z = b.w(l.$u ? Date.UTC(l.$y, B, Z) : new Date(l.$y, B, Z), l);
2960
+ return _ ? z : z.endOf(p);
2961
+ }, I = function(Z, B) {
2962
+ return b.w(l.toDate()[Z].apply(l.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(B)), l);
2963
+ }, R = this.$W, N = this.$M, U = this.$D, ne = "set" + (this.$u ? "UTC" : "");
2964
+ switch (m) {
2965
+ case S:
2966
+ return _ ? y(1, 0) : y(31, 11);
2967
+ case g:
2968
+ return _ ? y(1, N) : y(0, N + 1);
2969
+ case E:
2970
+ var J = this.$locale().weekStart || 0, se = (R < J ? R + 7 : R) - J;
2971
+ return y(_ ? U - se : U + (6 - se), N);
2972
+ case p:
2973
+ case T:
2974
+ return I(ne + "Hours", 0);
2975
+ case u:
2976
+ return I(ne + "Minutes", 1);
2977
+ case a:
2978
+ return I(ne + "Seconds", 2);
2979
+ case o:
2980
+ return I(ne + "Milliseconds", 3);
2981
+ default:
2982
+ return this.clone();
2983
+ }
2984
+ }, d.endOf = function(c) {
2985
+ return this.startOf(c, !1);
2986
+ }, d.$set = function(c, h) {
2987
+ var l, _ = b.p(c), m = "set" + (this.$u ? "UTC" : ""), y = (l = {}, l[p] = m + "Date", l[T] = m + "Date", l[g] = m + "Month", l[S] = m + "FullYear", l[u] = m + "Hours", l[a] = m + "Minutes", l[o] = m + "Seconds", l[i] = m + "Milliseconds", l)[_], I = _ === p ? this.$D + (h - this.$W) : h;
2988
+ if (_ === g || _ === S) {
2989
+ var R = this.clone().set(T, 1);
2990
+ R.$d[y](I), R.init(), this.$d = R.set(T, Math.min(this.$D, R.daysInMonth())).$d;
2991
+ } else y && this.$d[y](I);
2992
+ return this.init(), this;
2993
+ }, d.set = function(c, h) {
2994
+ return this.clone().$set(c, h);
2995
+ }, d.get = function(c) {
2996
+ return this[b.p(c)]();
2997
+ }, d.add = function(c, h) {
2998
+ var l, _ = this;
2999
+ c = Number(c);
3000
+ var m = b.p(h), y = function(N) {
3001
+ var U = k(_);
3002
+ return b.w(U.date(U.date() + Math.round(N * c)), _);
3003
+ };
3004
+ if (m === g) return this.set(g, this.$M + c);
3005
+ if (m === S) return this.set(S, this.$y + c);
3006
+ if (m === p) return y(1);
3007
+ if (m === E) return y(7);
3008
+ var I = (l = {}, l[a] = r, l[u] = s, l[o] = n, l)[m] || 1, R = this.$d.getTime() + c * I;
3009
+ return b.w(R, this);
3010
+ }, d.subtract = function(c, h) {
3011
+ return this.add(-1 * c, h);
3012
+ }, d.format = function(c) {
3013
+ var h = this, l = this.$locale();
3014
+ if (!this.isValid()) return l.invalidDate || j;
3015
+ var _ = c || "YYYY-MM-DDTHH:mm:ssZ", m = b.z(this), y = this.$H, I = this.$m, R = this.$M, N = l.weekdays, U = l.months, ne = l.meridiem, J = function(B, z, ie, me) {
3016
+ return B && (B[z] || B(h, _)) || ie[z].slice(0, me);
3017
+ }, se = function(B) {
3018
+ return b.s(y % 12 || 12, B, "0");
3019
+ }, Z = ne || function(B, z, ie) {
3020
+ var me = B < 12 ? "AM" : "PM";
3021
+ return ie ? me.toLowerCase() : me;
3022
+ };
3023
+ return _.replace(W, function(B, z) {
3024
+ return z || function(ie) {
3025
+ switch (ie) {
3026
+ case "YY":
3027
+ return String(h.$y).slice(-2);
3028
+ case "YYYY":
3029
+ return b.s(h.$y, 4, "0");
3030
+ case "M":
3031
+ return R + 1;
3032
+ case "MM":
3033
+ return b.s(R + 1, 2, "0");
3034
+ case "MMM":
3035
+ return J(l.monthsShort, R, U, 3);
3036
+ case "MMMM":
3037
+ return J(U, R);
3038
+ case "D":
3039
+ return h.$D;
3040
+ case "DD":
3041
+ return b.s(h.$D, 2, "0");
3042
+ case "d":
3043
+ return String(h.$W);
3044
+ case "dd":
3045
+ return J(l.weekdaysMin, h.$W, N, 2);
3046
+ case "ddd":
3047
+ return J(l.weekdaysShort, h.$W, N, 3);
3048
+ case "dddd":
3049
+ return N[h.$W];
3050
+ case "H":
3051
+ return String(y);
3052
+ case "HH":
3053
+ return b.s(y, 2, "0");
3054
+ case "h":
3055
+ return se(1);
3056
+ case "hh":
3057
+ return se(2);
3058
+ case "a":
3059
+ return Z(y, I, !0);
3060
+ case "A":
3061
+ return Z(y, I, !1);
3062
+ case "m":
3063
+ return String(I);
3064
+ case "mm":
3065
+ return b.s(I, 2, "0");
3066
+ case "s":
3067
+ return String(h.$s);
3068
+ case "ss":
3069
+ return b.s(h.$s, 2, "0");
3070
+ case "SSS":
3071
+ return b.s(h.$ms, 3, "0");
3072
+ case "Z":
3073
+ return m;
3074
+ }
3075
+ return null;
3076
+ }(B) || m.replace(":", "");
3077
+ });
3078
+ }, d.utcOffset = function() {
3079
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
3080
+ }, d.diff = function(c, h, l) {
3081
+ var _, m = this, y = b.p(h), I = k(c), R = (I.utcOffset() - this.utcOffset()) * r, N = this - I, U = function() {
3082
+ return b.m(m, I);
3083
+ };
3084
+ switch (y) {
3085
+ case S:
3086
+ _ = U() / 12;
3087
+ break;
3088
+ case g:
3089
+ _ = U();
3090
+ break;
3091
+ case w:
3092
+ _ = U() / 3;
3093
+ break;
3094
+ case E:
3095
+ _ = (N - R) / 6048e5;
3096
+ break;
3097
+ case p:
3098
+ _ = (N - R) / 864e5;
3099
+ break;
3100
+ case u:
3101
+ _ = N / s;
3102
+ break;
3103
+ case a:
3104
+ _ = N / r;
3105
+ break;
3106
+ case o:
3107
+ _ = N / n;
3108
+ break;
3109
+ default:
3110
+ _ = N;
3111
+ }
3112
+ return l ? _ : b.a(_);
3113
+ }, d.daysInMonth = function() {
3114
+ return this.endOf(g).$D;
3115
+ }, d.$locale = function() {
3116
+ return x[this.$L];
3117
+ }, d.locale = function(c, h) {
3118
+ if (!c) return this.$L;
3119
+ var l = this.clone(), _ = fe(c, h, !0);
3120
+ return _ && (l.$L = _), l;
3121
+ }, d.clone = function() {
3122
+ return b.w(this.$d, this);
3123
+ }, d.toDate = function() {
3124
+ return new Date(this.valueOf());
3125
+ }, d.toJSON = function() {
3126
+ return this.isValid() ? this.toISOString() : null;
3127
+ }, d.toISOString = function() {
3128
+ return this.$d.toISOString();
3129
+ }, d.toString = function() {
3130
+ return this.$d.toUTCString();
3131
+ }, f;
3132
+ }(), Ke = _e.prototype;
3133
+ return k.prototype = Ke, [["$ms", i], ["$s", o], ["$m", a], ["$H", u], ["$W", p], ["$M", g], ["$y", S], ["$D", T]].forEach(function(f) {
3134
+ Ke[f[1]] = function(d) {
3135
+ return this.$g(d, f[0], f[1]);
3136
+ };
3137
+ }), k.extend = function(f, d) {
3138
+ return f.$i || (f(d, _e, k), f.$i = !0), k;
3139
+ }, k.locale = fe, k.isDayjs = q, k.unix = function(f) {
3140
+ return k(1e3 * f);
3141
+ }, k.en = x[L], k.Ls = x, k.p = {}, k;
3142
+ });
3143
+ })(Ft);
3144
+ var Us = Ft.exports;
3145
+ const xs = /* @__PURE__ */ Wt(Us);
3146
+ var Fe = function() {
3147
+ return Fe = Object.assign || function(e) {
3148
+ for (var n, r = 1, s = arguments.length; r < s; r++) {
3149
+ n = arguments[r];
3150
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
3151
+ }
3152
+ return e;
3153
+ }, Fe.apply(this, arguments);
3154
+ };
3155
+ function Ls(t) {
3156
+ return t.toLowerCase();
3157
+ }
3158
+ var Fs = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], js = /[^A-Z0-9]+/gi;
3159
+ function Hs(t, e) {
3160
+ e === void 0 && (e = {});
3161
+ for (var n = e.splitRegexp, r = n === void 0 ? Fs : n, s = e.stripRegexp, i = s === void 0 ? js : s, o = e.transform, a = o === void 0 ? Ls : o, u = e.delimiter, p = u === void 0 ? " " : u, E = ht(ht(t, r, "$1\0$2"), i, "\0"), g = 0, w = E.length; E.charAt(g) === "\0"; )
3162
+ g++;
3163
+ for (; E.charAt(w - 1) === "\0"; )
3164
+ w--;
3165
+ return E.slice(g, w).split("\0").map(a).join(p);
3166
+ }
3167
+ function ht(t, e, n) {
3168
+ return e instanceof RegExp ? t.replace(e, n) : e.reduce(function(r, s) {
3169
+ return r.replace(s, n);
3170
+ }, t);
3171
+ }
3172
+ function Vs(t) {
3173
+ return t.charAt(0).toUpperCase() + t.substr(1);
3174
+ }
3175
+ function Ws(t, e) {
3176
+ var n = t.toLowerCase();
3177
+ return e === 0 ? Vs(n) : n;
3178
+ }
3179
+ function De(t, e) {
3180
+ return e === void 0 && (e = {}), Hs(t, Fe({ delimiter: " ", transform: Ws }, e));
3181
+ }
3182
+ function zs(t, e = []) {
3183
+ const n = JSON.parse(JSON.stringify(t));
3184
+ return e.length > 0 && e.forEach((r) => {
3185
+ n[r] !== void 0 && delete n[r];
3186
+ }), n;
3187
+ }
3188
+ function Gs(t, e) {
3189
+ var r, s, i, o;
3190
+ const n = e ? zs(e) : void 0;
3191
+ return {
3192
+ _id: (n == null ? void 0 : n._id) ?? "",
3193
+ notifyUrl: (n == null ? void 0 : n.notifyUrl) ?? "",
3194
+ store: {
3195
+ id: (n == null ? void 0 : n.store.id) ?? "",
3196
+ event: (n == null ? void 0 : n.store.event) ?? X.F_PAYOUT_FOR.Enum.ORDERING,
3197
+ bank: {
3198
+ name: ((r = n == null ? void 0 : n.store.bank) == null ? void 0 : r.name) ?? jt[0].value,
3199
+ type: ((s = n == null ? void 0 : n.store.bank) == null ? void 0 : s.type) ?? Ht[0].value,
3200
+ holderName: ((i = n == null ? void 0 : n.store.bank) == null ? void 0 : i.holderName) ?? "",
3201
+ accountNumber: ((o = n == null ? void 0 : n.store.bank) == null ? void 0 : o.accountNumber) ?? ""
3202
+ },
3203
+ keyPerson: (n == null ? void 0 : n.store.keyPerson) ?? {
3204
+ name: "",
3205
+ phone: "",
3206
+ email: ""
3207
+ },
3208
+ ssm: (n == null ? void 0 : n.store.ssm) ?? "",
3209
+ bankStatement: (n == null ? void 0 : n.store.bankStatement) ?? "",
3210
+ exteriorPhoto: (n == null ? void 0 : n.store.exteriorPhoto) ?? ""
3211
+ },
3212
+ enable: (n == null ? void 0 : n.enable) ?? !1,
3213
+ methods: (n == null ? void 0 : n.methods) ?? [],
3214
+ status: (n == null ? void 0 : n.status) ?? X.F_PAYOUT_ACCOUNT_STATUS.Enum.NEW,
3215
+ businessId: t
3216
+ };
3217
+ }
3218
+ function Ys(t) {
3219
+ return t.reduce(
3220
+ (e, n) => ([X.F_PAYOUT_ACCOUNT_STATUS.Enum.NEW].some((r) => r == n.status) ? e.NEW.push({
3221
+ ...n
3222
+ }) : e.EXISTED.push({
3223
+ ...n
3224
+ }), e),
3225
+ {
3226
+ NEW: [],
3227
+ EXISTED: []
3228
+ }
3229
+ );
3230
+ }
3231
+ async function Ne(t) {
3232
+ await de.delete(t);
3233
+ }
3234
+ async function ft(t, e, n) {
3235
+ const r = xs().toISOString();
3236
+ if (t.restaurantId)
3237
+ return await de.update(
3238
+ `restaurant/${t.restaurantId}/documents/${e}/${r}.pdf`,
3239
+ n
3240
+ );
3241
+ if (t.businessId)
3242
+ return await de.update(
3243
+ `business/${t.businessId}/documents/${e}/${r}.pdf`,
3244
+ n
3245
+ );
3246
+ throw "Not implemented";
3247
+ }
3248
+ async function Ks(t, e) {
3249
+ if (t.restaurantId)
3250
+ return await de.update(
3251
+ `restaurant/${t.restaurantId}/exterior/photo`,
3252
+ e
3253
+ );
3254
+ if (t.businessId)
3255
+ return await de.update(
3256
+ `business/${t.businessId}/exterior/photo`,
3257
+ e
3258
+ );
3259
+ throw "Not implemented";
3260
+ }
3261
+ async function Xs(t, e, n) {
3262
+ e.store.ssm && n.newSSM && await Ne(e.store.ssm), e.store.bankStatement && n.newBankStatement && await Ne(e.store.bankStatement), e.store.exteriorPhoto && n.newExteriorPhoto && await Ne(e.store.exteriorPhoto);
3263
+ let r = e.store.ssm || "";
3264
+ n.newSSM && (r = await ft(t, "ssm", n.newSSM));
3265
+ let s = e.store.bankStatement || "";
3266
+ n.newBankStatement && (s = await ft(
3267
+ t,
3268
+ "bankStatement",
3269
+ n.newBankStatement
3270
+ ));
3271
+ let i = e.store.exteriorPhoto || "";
3272
+ return n.newExteriorPhoto && (i = await Ks(
3273
+ t,
3274
+ n.newExteriorPhoto
3275
+ )), {
3276
+ ...e,
3277
+ store: {
3278
+ ...e.store,
3279
+ id: n.payoutSetting.store.id,
3280
+ keyPerson: n.payoutSetting.store.keyPerson,
3281
+ bank: n.payoutSetting.store.bank,
3282
+ ssm: r,
3283
+ bankStatement: s,
3284
+ exteriorPhoto: i,
3285
+ event: n.payoutSetting.store.event
3286
+ },
3287
+ status: X.F_PAYOUT_ACCOUNT_STATUS.Enum.PENDING,
3288
+ notifyUrl: n.payoutSetting.store.event === X.F_PAYOUT_FOR.Enum.MARKETING ? "http://marketing-api-service:3000/customer/callback/store" : "http://order-backend:3000/backend/payment"
3289
+ };
3290
+ }
3291
+ const jt = Object.values(zt.F_BANK_NAME).map((t) => ({
3292
+ label: De(t),
3293
+ value: t
3294
+ })), Ht = Object.values(X.F_BANK_TYPE.Values).map((t) => ({
3295
+ label: De(t),
3296
+ value: t
3297
+ })), qs = Object.values(X.F_PAYOUT_FOR.Values).map((t) => ({
3298
+ label: De(t),
3299
+ value: t
3300
+ })), Js = Object.values(X.F_PAYOUT_ACCOUNT_STATUS.Values).map(
3301
+ (t) => ({
3302
+ label: De(t),
3303
+ value: t
3304
+ })
3305
+ ), Qs = {
3306
+ mergeData: Xs,
3307
+ initPayoutAccount: Gs,
3308
+ groupByStatus: Ys,
3309
+ bankTypeOptions: Ht,
3310
+ bankNameOptions: jt,
3311
+ storeEventOptions: qs,
3312
+ statusOptions: Js
3313
+ }, ei = {
3314
+ async read(t) {
3315
+ return Gt(
3316
+ await Xe().get("payout-accounts", {
3317
+ params: { ...t }
3318
+ })
3319
+ );
3320
+ },
3321
+ async updateById(t, e) {
3322
+ return ge(
3323
+ await Xe().put(`payout-accounts/${t}`, {
3324
+ ...e
3325
+ })
3326
+ );
3327
+ },
3328
+ async readBusinessPayoutAccounts() {
3329
+ return ge(await Ae().get("/payout-accounts"));
3330
+ },
3331
+ async createBusinessPayoutAccounts(t) {
3332
+ return ge(
3333
+ await Ae().post("/payout-accounts", { ...t })
3334
+ );
3335
+ },
3336
+ async updateBusinessPayoutAccounts(t, e) {
3337
+ return ge(
3338
+ await Ae().put(`/payout-accounts/${t}`, {
3339
+ ...e
3340
+ })
3341
+ );
3342
+ }
3343
+ };
3344
+ export {
3345
+ Qs as P,
3346
+ zs as c,
3347
+ ei as p
3348
+ };