hylid-bridge 6.0.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/README.md +310 -310
  2. package/lib/bridges.d.ts +234 -234
  3. package/lib/bridges.js +365 -234
  4. package/lib/clients/mp_web/kakaopaysandbox/addPhoneContact.d.ts +2 -0
  5. package/lib/clients/mp_web/kakaopaysandbox/addPhoneContact.js +3 -0
  6. package/lib/clients/mp_web/kakaopaysandbox/alert.d.ts +2 -0
  7. package/lib/clients/mp_web/kakaopaysandbox/alert.js +3 -0
  8. package/lib/clients/mp_web/kakaopaysandbox/chooseFileFromDisk.d.ts +2 -0
  9. package/lib/clients/mp_web/kakaopaysandbox/chooseFileFromDisk.js +3 -0
  10. package/lib/clients/mp_web/kakaopaysandbox/chooseImage.d.ts +2 -0
  11. package/lib/clients/mp_web/kakaopaysandbox/chooseImage.js +3 -0
  12. package/lib/clients/mp_web/kakaopaysandbox/choosePhoneContact.d.ts +2 -0
  13. package/lib/clients/mp_web/kakaopaysandbox/choosePhoneContact.js +3 -0
  14. package/lib/clients/mp_web/kakaopaysandbox/chooseVideo.d.ts +2 -0
  15. package/lib/clients/mp_web/kakaopaysandbox/chooseVideo.js +3 -0
  16. package/lib/clients/mp_web/kakaopaysandbox/clearStorage.d.ts +2 -0
  17. package/lib/clients/mp_web/kakaopaysandbox/clearStorage.js +3 -0
  18. package/lib/clients/mp_web/kakaopaysandbox/closeBluetoothAdapter.d.ts +2 -0
  19. package/lib/clients/mp_web/kakaopaysandbox/closeBluetoothAdapter.js +3 -0
  20. package/lib/clients/mp_web/kakaopaysandbox/closeSocket.d.ts +2 -0
  21. package/lib/clients/mp_web/kakaopaysandbox/closeSocket.js +3 -0
  22. package/lib/clients/mp_web/kakaopaysandbox/compressImage.d.ts +2 -0
  23. package/lib/clients/mp_web/kakaopaysandbox/compressImage.js +3 -0
  24. package/lib/clients/mp_web/kakaopaysandbox/confirm.d.ts +2 -0
  25. package/lib/clients/mp_web/kakaopaysandbox/confirm.js +3 -0
  26. package/lib/clients/mp_web/kakaopaysandbox/connectBLEDevice.d.ts +2 -0
  27. package/lib/clients/mp_web/kakaopaysandbox/connectBLEDevice.js +3 -0
  28. package/lib/clients/mp_web/kakaopaysandbox/connectSocket.d.ts +2 -0
  29. package/lib/clients/mp_web/kakaopaysandbox/connectSocket.js +3 -0
  30. package/lib/clients/mp_web/kakaopaysandbox/datePicker.d.ts +2 -0
  31. package/lib/clients/mp_web/kakaopaysandbox/datePicker.js +3 -0
  32. package/lib/clients/mp_web/kakaopaysandbox/disconnectBLEDevice.d.ts +2 -0
  33. package/lib/clients/mp_web/kakaopaysandbox/disconnectBLEDevice.js +3 -0
  34. package/lib/clients/mp_web/kakaopaysandbox/downloadFile.d.ts +2 -0
  35. package/lib/clients/mp_web/kakaopaysandbox/downloadFile.js +3 -0
  36. package/lib/clients/mp_web/kakaopaysandbox/exitApp.d.ts +2 -0
  37. package/lib/clients/mp_web/kakaopaysandbox/exitApp.js +3 -0
  38. package/lib/clients/mp_web/kakaopaysandbox/getAppId.d.ts +2 -0
  39. package/lib/clients/mp_web/kakaopaysandbox/getAppId.js +3 -0
  40. package/lib/clients/mp_web/kakaopaysandbox/getAppToken.d.ts +2 -0
  41. package/lib/clients/mp_web/kakaopaysandbox/getAppToken.js +3 -0
  42. package/lib/clients/mp_web/kakaopaysandbox/getAuthCode.d.ts +2 -0
  43. package/lib/clients/mp_web/kakaopaysandbox/getAuthCode.js +3 -0
  44. package/lib/clients/mp_web/kakaopaysandbox/getBLEDeviceCharacteristics.d.ts +2 -0
  45. package/lib/clients/mp_web/kakaopaysandbox/getBLEDeviceCharacteristics.js +3 -0
  46. package/lib/clients/mp_web/kakaopaysandbox/getBLEDeviceServices.d.ts +2 -0
  47. package/lib/clients/mp_web/kakaopaysandbox/getBLEDeviceServices.js +3 -0
  48. package/lib/clients/mp_web/kakaopaysandbox/getBackgroundFetchData.d.ts +2 -0
  49. package/lib/clients/mp_web/kakaopaysandbox/getBackgroundFetchData.js +3 -0
  50. package/lib/clients/mp_web/kakaopaysandbox/getBatteryInfo.d.ts +2 -0
  51. package/lib/clients/mp_web/kakaopaysandbox/getBatteryInfo.js +3 -0
  52. package/lib/clients/mp_web/kakaopaysandbox/getBluetoothAdapterState.d.ts +2 -0
  53. package/lib/clients/mp_web/kakaopaysandbox/getBluetoothAdapterState.js +3 -0
  54. package/lib/clients/mp_web/kakaopaysandbox/getBluetoothDevices.d.ts +2 -0
  55. package/lib/clients/mp_web/kakaopaysandbox/getBluetoothDevices.js +3 -0
  56. package/lib/clients/mp_web/kakaopaysandbox/getClipboard.d.ts +2 -0
  57. package/lib/clients/mp_web/kakaopaysandbox/getClipboard.js +3 -0
  58. package/lib/clients/mp_web/kakaopaysandbox/getConnectedBluetoothDevices.d.ts +2 -0
  59. package/lib/clients/mp_web/kakaopaysandbox/getConnectedBluetoothDevices.js +3 -0
  60. package/lib/clients/mp_web/kakaopaysandbox/getCurrentPages.d.ts +2 -0
  61. package/lib/clients/mp_web/kakaopaysandbox/getCurrentPages.js +3 -0
  62. package/lib/clients/mp_web/kakaopaysandbox/getEnterOptionsSync.d.ts +2 -0
  63. package/lib/clients/mp_web/kakaopaysandbox/getEnterOptionsSync.js +3 -0
  64. package/lib/clients/mp_web/kakaopaysandbox/getFileInfo.d.ts +2 -0
  65. package/lib/clients/mp_web/kakaopaysandbox/getFileInfo.js +3 -0
  66. package/lib/clients/mp_web/kakaopaysandbox/getImageInfo.d.ts +2 -0
  67. package/lib/clients/mp_web/kakaopaysandbox/getImageInfo.js +3 -0
  68. package/lib/clients/mp_web/kakaopaysandbox/getLocation.d.ts +2 -0
  69. package/lib/clients/mp_web/kakaopaysandbox/getLocation.js +3 -0
  70. package/lib/clients/mp_web/kakaopaysandbox/getNetworkType.d.ts +2 -0
  71. package/lib/clients/mp_web/kakaopaysandbox/getNetworkType.js +3 -0
  72. package/lib/clients/mp_web/kakaopaysandbox/getOpenUserInfo.d.ts +2 -0
  73. package/lib/clients/mp_web/kakaopaysandbox/getOpenUserInfo.js +3 -0
  74. package/lib/clients/mp_web/kakaopaysandbox/getRunScene.d.ts +2 -0
  75. package/lib/clients/mp_web/kakaopaysandbox/getRunScene.js +3 -0
  76. package/lib/clients/mp_web/kakaopaysandbox/getSDKVersion.d.ts +2 -0
  77. package/lib/clients/mp_web/kakaopaysandbox/getSDKVersion.js +3 -0
  78. package/lib/clients/mp_web/kakaopaysandbox/getSavedFileInfo.d.ts +2 -0
  79. package/lib/clients/mp_web/kakaopaysandbox/getSavedFileInfo.js +3 -0
  80. package/lib/clients/mp_web/kakaopaysandbox/getSavedFileList.d.ts +2 -0
  81. package/lib/clients/mp_web/kakaopaysandbox/getSavedFileList.js +3 -0
  82. package/lib/clients/mp_web/kakaopaysandbox/getScreenBrightness.d.ts +2 -0
  83. package/lib/clients/mp_web/kakaopaysandbox/getScreenBrightness.js +3 -0
  84. package/lib/clients/mp_web/kakaopaysandbox/getServerTime.d.ts +2 -0
  85. package/lib/clients/mp_web/kakaopaysandbox/getServerTime.js +3 -0
  86. package/lib/clients/mp_web/kakaopaysandbox/getSetting.d.ts +2 -0
  87. package/lib/clients/mp_web/kakaopaysandbox/getSetting.js +3 -0
  88. package/lib/clients/mp_web/kakaopaysandbox/getSiteInfo.d.ts +2 -0
  89. package/lib/clients/mp_web/kakaopaysandbox/getSiteInfo.js +3 -0
  90. package/lib/clients/mp_web/kakaopaysandbox/getStorage.d.ts +2 -0
  91. package/lib/clients/mp_web/kakaopaysandbox/getStorage.js +3 -0
  92. package/lib/clients/mp_web/kakaopaysandbox/getSystemInfo.d.ts +2 -0
  93. package/lib/clients/mp_web/kakaopaysandbox/getSystemInfo.js +3 -0
  94. package/lib/clients/mp_web/kakaopaysandbox/hideBackHome.d.ts +2 -0
  95. package/lib/clients/mp_web/kakaopaysandbox/hideBackHome.js +3 -0
  96. package/lib/clients/mp_web/kakaopaysandbox/hideKeyboard.d.ts +2 -0
  97. package/lib/clients/mp_web/kakaopaysandbox/hideKeyboard.js +3 -0
  98. package/lib/clients/mp_web/kakaopaysandbox/hideLoading.d.ts +2 -0
  99. package/lib/clients/mp_web/kakaopaysandbox/hideLoading.js +3 -0
  100. package/lib/clients/mp_web/kakaopaysandbox/hideNavigationBarLoading.d.ts +2 -0
  101. package/lib/clients/mp_web/kakaopaysandbox/hideNavigationBarLoading.js +3 -0
  102. package/lib/clients/mp_web/kakaopaysandbox/hideTabBar.d.ts +2 -0
  103. package/lib/clients/mp_web/kakaopaysandbox/hideTabBar.js +3 -0
  104. package/lib/clients/mp_web/kakaopaysandbox/hideToast.d.ts +2 -0
  105. package/lib/clients/mp_web/kakaopaysandbox/hideToast.js +3 -0
  106. package/lib/clients/mp_web/kakaopaysandbox/index.d.ts +451 -0
  107. package/lib/clients/mp_web/kakaopaysandbox/index.js +261 -0
  108. package/lib/clients/mp_web/kakaopaysandbox/makePhoneCall.d.ts +2 -0
  109. package/lib/clients/mp_web/kakaopaysandbox/makePhoneCall.js +3 -0
  110. package/lib/clients/mp_web/kakaopaysandbox/multiLevelSelect.d.ts +2 -0
  111. package/lib/clients/mp_web/kakaopaysandbox/multiLevelSelect.js +3 -0
  112. package/lib/clients/mp_web/kakaopaysandbox/navigateBack.d.ts +2 -0
  113. package/lib/clients/mp_web/kakaopaysandbox/navigateBack.js +3 -0
  114. package/lib/clients/mp_web/kakaopaysandbox/navigateBackMiniProgram.d.ts +2 -0
  115. package/lib/clients/mp_web/kakaopaysandbox/navigateBackMiniProgram.js +3 -0
  116. package/lib/clients/mp_web/kakaopaysandbox/navigateTo.d.ts +2 -0
  117. package/lib/clients/mp_web/kakaopaysandbox/navigateTo.js +3 -0
  118. package/lib/clients/mp_web/kakaopaysandbox/navigateToBizScene.d.ts +2 -0
  119. package/lib/clients/mp_web/kakaopaysandbox/navigateToBizScene.js +3 -0
  120. package/lib/clients/mp_web/kakaopaysandbox/navigateToMiniProgram.d.ts +2 -0
  121. package/lib/clients/mp_web/kakaopaysandbox/navigateToMiniProgram.js +3 -0
  122. package/lib/clients/mp_web/kakaopaysandbox/notifyBLECharacteristicValueChange.d.ts +2 -0
  123. package/lib/clients/mp_web/kakaopaysandbox/notifyBLECharacteristicValueChange.js +3 -0
  124. package/lib/clients/mp_web/kakaopaysandbox/offAccelerometerChange.d.ts +2 -0
  125. package/lib/clients/mp_web/kakaopaysandbox/offAccelerometerChange.js +3 -0
  126. package/lib/clients/mp_web/kakaopaysandbox/offBLECharacteristicValueChange.d.ts +2 -0
  127. package/lib/clients/mp_web/kakaopaysandbox/offBLECharacteristicValueChange.js +3 -0
  128. package/lib/clients/mp_web/kakaopaysandbox/offBLEConnectionStateChanged.d.ts +2 -0
  129. package/lib/clients/mp_web/kakaopaysandbox/offBLEConnectionStateChanged.js +3 -0
  130. package/lib/clients/mp_web/kakaopaysandbox/offBluetoothAdapterStateChange.d.ts +2 -0
  131. package/lib/clients/mp_web/kakaopaysandbox/offBluetoothAdapterStateChange.js +3 -0
  132. package/lib/clients/mp_web/kakaopaysandbox/offBluetoothDeviceFound.d.ts +2 -0
  133. package/lib/clients/mp_web/kakaopaysandbox/offBluetoothDeviceFound.js +3 -0
  134. package/lib/clients/mp_web/kakaopaysandbox/offCompassChange.d.ts +2 -0
  135. package/lib/clients/mp_web/kakaopaysandbox/offCompassChange.js +3 -0
  136. package/lib/clients/mp_web/kakaopaysandbox/offMemoryWarning.d.ts +2 -0
  137. package/lib/clients/mp_web/kakaopaysandbox/offMemoryWarning.js +3 -0
  138. package/lib/clients/mp_web/kakaopaysandbox/offSocketClose.d.ts +2 -0
  139. package/lib/clients/mp_web/kakaopaysandbox/offSocketClose.js +3 -0
  140. package/lib/clients/mp_web/kakaopaysandbox/offSocketError.d.ts +2 -0
  141. package/lib/clients/mp_web/kakaopaysandbox/offSocketError.js +3 -0
  142. package/lib/clients/mp_web/kakaopaysandbox/offSocketMessage.d.ts +2 -0
  143. package/lib/clients/mp_web/kakaopaysandbox/offSocketMessage.js +3 -0
  144. package/lib/clients/mp_web/kakaopaysandbox/offSocketOpen.d.ts +2 -0
  145. package/lib/clients/mp_web/kakaopaysandbox/offSocketOpen.js +3 -0
  146. package/lib/clients/mp_web/kakaopaysandbox/offUserCaptureScreen.d.ts +2 -0
  147. package/lib/clients/mp_web/kakaopaysandbox/offUserCaptureScreen.js +3 -0
  148. package/lib/clients/mp_web/kakaopaysandbox/onAccelerometerChange.d.ts +2 -0
  149. package/lib/clients/mp_web/kakaopaysandbox/onAccelerometerChange.js +3 -0
  150. package/lib/clients/mp_web/kakaopaysandbox/onBLECharacteristicValueChange.d.ts +2 -0
  151. package/lib/clients/mp_web/kakaopaysandbox/onBLECharacteristicValueChange.js +3 -0
  152. package/lib/clients/mp_web/kakaopaysandbox/onBLEConnectionStateChanged.d.ts +2 -0
  153. package/lib/clients/mp_web/kakaopaysandbox/onBLEConnectionStateChanged.js +3 -0
  154. package/lib/clients/mp_web/kakaopaysandbox/onBluetoothAdapterStateChange.d.ts +2 -0
  155. package/lib/clients/mp_web/kakaopaysandbox/onBluetoothAdapterStateChange.js +3 -0
  156. package/lib/clients/mp_web/kakaopaysandbox/onBluetoothDeviceFound.d.ts +2 -0
  157. package/lib/clients/mp_web/kakaopaysandbox/onBluetoothDeviceFound.js +3 -0
  158. package/lib/clients/mp_web/kakaopaysandbox/onCompassChange.d.ts +2 -0
  159. package/lib/clients/mp_web/kakaopaysandbox/onCompassChange.js +3 -0
  160. package/lib/clients/mp_web/kakaopaysandbox/onMemoryWarning.d.ts +2 -0
  161. package/lib/clients/mp_web/kakaopaysandbox/onMemoryWarning.js +3 -0
  162. package/lib/clients/mp_web/kakaopaysandbox/onSocketClose.d.ts +2 -0
  163. package/lib/clients/mp_web/kakaopaysandbox/onSocketClose.js +3 -0
  164. package/lib/clients/mp_web/kakaopaysandbox/onSocketError.d.ts +2 -0
  165. package/lib/clients/mp_web/kakaopaysandbox/onSocketError.js +3 -0
  166. package/lib/clients/mp_web/kakaopaysandbox/onSocketMessage.d.ts +2 -0
  167. package/lib/clients/mp_web/kakaopaysandbox/onSocketMessage.js +3 -0
  168. package/lib/clients/mp_web/kakaopaysandbox/onSocketOpen.d.ts +2 -0
  169. package/lib/clients/mp_web/kakaopaysandbox/onSocketOpen.js +3 -0
  170. package/lib/clients/mp_web/kakaopaysandbox/onUserCaptureScreen.d.ts +2 -0
  171. package/lib/clients/mp_web/kakaopaysandbox/onUserCaptureScreen.js +3 -0
  172. package/lib/clients/mp_web/kakaopaysandbox/openBluetoothAdapter.d.ts +2 -0
  173. package/lib/clients/mp_web/kakaopaysandbox/openBluetoothAdapter.js +3 -0
  174. package/lib/clients/mp_web/kakaopaysandbox/openDocument.d.ts +2 -0
  175. package/lib/clients/mp_web/kakaopaysandbox/openDocument.js +3 -0
  176. package/lib/clients/mp_web/kakaopaysandbox/openSetting.d.ts +2 -0
  177. package/lib/clients/mp_web/kakaopaysandbox/openSetting.js +3 -0
  178. package/lib/clients/mp_web/kakaopaysandbox/pageScrollTo.d.ts +2 -0
  179. package/lib/clients/mp_web/kakaopaysandbox/pageScrollTo.js +3 -0
  180. package/lib/clients/mp_web/kakaopaysandbox/previewImage.d.ts +2 -0
  181. package/lib/clients/mp_web/kakaopaysandbox/previewImage.js +3 -0
  182. package/lib/clients/mp_web/kakaopaysandbox/prompt.d.ts +2 -0
  183. package/lib/clients/mp_web/kakaopaysandbox/prompt.js +3 -0
  184. package/lib/clients/mp_web/kakaopaysandbox/reLaunch.d.ts +2 -0
  185. package/lib/clients/mp_web/kakaopaysandbox/reLaunch.js +3 -0
  186. package/lib/clients/mp_web/kakaopaysandbox/readBLECharacteristicValue.d.ts +2 -0
  187. package/lib/clients/mp_web/kakaopaysandbox/readBLECharacteristicValue.js +3 -0
  188. package/lib/clients/mp_web/kakaopaysandbox/redirectTo.d.ts +2 -0
  189. package/lib/clients/mp_web/kakaopaysandbox/redirectTo.js +3 -0
  190. package/lib/clients/mp_web/kakaopaysandbox/removeSavedFile.d.ts +2 -0
  191. package/lib/clients/mp_web/kakaopaysandbox/removeSavedFile.js +3 -0
  192. package/lib/clients/mp_web/kakaopaysandbox/removeStorage.d.ts +2 -0
  193. package/lib/clients/mp_web/kakaopaysandbox/removeStorage.js +3 -0
  194. package/lib/clients/mp_web/kakaopaysandbox/request.d.ts +2 -0
  195. package/lib/clients/mp_web/kakaopaysandbox/request.js +3 -0
  196. package/lib/clients/mp_web/kakaopaysandbox/rpc.d.ts +2 -0
  197. package/lib/clients/mp_web/kakaopaysandbox/rpc.js +3 -0
  198. package/lib/clients/mp_web/kakaopaysandbox/saveFile.d.ts +2 -0
  199. package/lib/clients/mp_web/kakaopaysandbox/saveFile.js +3 -0
  200. package/lib/clients/mp_web/kakaopaysandbox/saveImage.d.ts +2 -0
  201. package/lib/clients/mp_web/kakaopaysandbox/saveImage.js +3 -0
  202. package/lib/clients/mp_web/kakaopaysandbox/scan.d.ts +2 -0
  203. package/lib/clients/mp_web/kakaopaysandbox/scan.js +3 -0
  204. package/lib/clients/mp_web/kakaopaysandbox/sendSocketMessage.d.ts +2 -0
  205. package/lib/clients/mp_web/kakaopaysandbox/sendSocketMessage.js +3 -0
  206. package/lib/clients/mp_web/kakaopaysandbox/setBackgroundColor.d.ts +2 -0
  207. package/lib/clients/mp_web/kakaopaysandbox/setBackgroundColor.js +3 -0
  208. package/lib/clients/mp_web/kakaopaysandbox/setCanPullDown.d.ts +2 -0
  209. package/lib/clients/mp_web/kakaopaysandbox/setCanPullDown.js +3 -0
  210. package/lib/clients/mp_web/kakaopaysandbox/setClipboard.d.ts +2 -0
  211. package/lib/clients/mp_web/kakaopaysandbox/setClipboard.js +3 -0
  212. package/lib/clients/mp_web/kakaopaysandbox/setKeepScreenOn.d.ts +2 -0
  213. package/lib/clients/mp_web/kakaopaysandbox/setKeepScreenOn.js +3 -0
  214. package/lib/clients/mp_web/kakaopaysandbox/setNavigationBar.d.ts +2 -0
  215. package/lib/clients/mp_web/kakaopaysandbox/setNavigationBar.js +3 -0
  216. package/lib/clients/mp_web/kakaopaysandbox/setScreenBrightness.d.ts +2 -0
  217. package/lib/clients/mp_web/kakaopaysandbox/setScreenBrightness.js +3 -0
  218. package/lib/clients/mp_web/kakaopaysandbox/setStorage.d.ts +2 -0
  219. package/lib/clients/mp_web/kakaopaysandbox/setStorage.js +3 -0
  220. package/lib/clients/mp_web/kakaopaysandbox/setTabBarItem.d.ts +2 -0
  221. package/lib/clients/mp_web/kakaopaysandbox/setTabBarItem.js +3 -0
  222. package/lib/clients/mp_web/kakaopaysandbox/setTabBarStyle.d.ts +2 -0
  223. package/lib/clients/mp_web/kakaopaysandbox/setTabBarStyle.js +3 -0
  224. package/lib/clients/mp_web/kakaopaysandbox/setTransparentTitle.d.ts +2 -0
  225. package/lib/clients/mp_web/kakaopaysandbox/setTransparentTitle.js +3 -0
  226. package/lib/clients/mp_web/kakaopaysandbox/showActionSheet.d.ts +2 -0
  227. package/lib/clients/mp_web/kakaopaysandbox/showActionSheet.js +3 -0
  228. package/lib/clients/mp_web/kakaopaysandbox/showAuthGuide.d.ts +2 -0
  229. package/lib/clients/mp_web/kakaopaysandbox/showAuthGuide.js +3 -0
  230. package/lib/clients/mp_web/kakaopaysandbox/showLoading.d.ts +2 -0
  231. package/lib/clients/mp_web/kakaopaysandbox/showLoading.js +3 -0
  232. package/lib/clients/mp_web/kakaopaysandbox/showNavigationBarLoading.d.ts +2 -0
  233. package/lib/clients/mp_web/kakaopaysandbox/showNavigationBarLoading.js +3 -0
  234. package/lib/clients/mp_web/kakaopaysandbox/showSharePanel.d.ts +2 -0
  235. package/lib/clients/mp_web/kakaopaysandbox/showSharePanel.js +3 -0
  236. package/lib/clients/mp_web/kakaopaysandbox/showTabBar.d.ts +2 -0
  237. package/lib/clients/mp_web/kakaopaysandbox/showTabBar.js +3 -0
  238. package/lib/clients/mp_web/kakaopaysandbox/showToast.d.ts +2 -0
  239. package/lib/clients/mp_web/kakaopaysandbox/showToast.js +3 -0
  240. package/lib/clients/mp_web/kakaopaysandbox/signContract.d.ts +2 -0
  241. package/lib/clients/mp_web/kakaopaysandbox/signContract.js +3 -0
  242. package/lib/clients/mp_web/kakaopaysandbox/startBluetoothDevicesDiscovery.d.ts +2 -0
  243. package/lib/clients/mp_web/kakaopaysandbox/startBluetoothDevicesDiscovery.js +3 -0
  244. package/lib/clients/mp_web/kakaopaysandbox/startPullDownRefresh.d.ts +2 -0
  245. package/lib/clients/mp_web/kakaopaysandbox/startPullDownRefresh.js +3 -0
  246. package/lib/clients/mp_web/kakaopaysandbox/stopBluetoothDevicesDiscovery.d.ts +2 -0
  247. package/lib/clients/mp_web/kakaopaysandbox/stopBluetoothDevicesDiscovery.js +3 -0
  248. package/lib/clients/mp_web/kakaopaysandbox/stopPullDownRefresh.d.ts +2 -0
  249. package/lib/clients/mp_web/kakaopaysandbox/stopPullDownRefresh.js +3 -0
  250. package/lib/clients/mp_web/kakaopaysandbox/switchTab.d.ts +2 -0
  251. package/lib/clients/mp_web/kakaopaysandbox/switchTab.js +3 -0
  252. package/lib/clients/mp_web/kakaopaysandbox/tradePay.d.ts +2 -0
  253. package/lib/clients/mp_web/kakaopaysandbox/tradePay.js +3 -0
  254. package/lib/clients/mp_web/kakaopaysandbox/uploadFile.d.ts +2 -0
  255. package/lib/clients/mp_web/kakaopaysandbox/uploadFile.js +3 -0
  256. package/lib/clients/mp_web/kakaopaysandbox/vibrate.d.ts +2 -0
  257. package/lib/clients/mp_web/kakaopaysandbox/vibrate.js +3 -0
  258. package/lib/clients/mp_web/kakaopaysandbox/watchShake.d.ts +2 -0
  259. package/lib/clients/mp_web/kakaopaysandbox/watchShake.js +3 -0
  260. package/lib/clients/mp_web/kakaopaysandbox/writeBLECharacteristicValue.d.ts +2 -0
  261. package/lib/clients/mp_web/kakaopaysandbox/writeBLECharacteristicValue.js +3 -0
  262. package/lib/common/apis/custom/web/changipay/getAuthCode.js +3 -0
  263. package/lib/common/apis/custom/web/h5/request.js +7 -0
  264. package/lib/dsl.d.ts +210 -210
  265. package/lib/dsl.js +210 -210
  266. package/lib/umd/index.js +1 -1
  267. package/lib/umd/mp_web_alipay.js +1 -1
  268. package/lib/umd/mp_web_kakaopaysandbox.js +1 -0
  269. package/lib/umd/mp_web_mpay.js +1 -1
  270. package/lib/umd/web_alipay.js +1 -1
  271. package/lib/umd/web_changipay.js +1 -1
  272. package/lib/umd/web_h5.js +1 -1
  273. package/lib/umd/web_kaspi.js +1 -1
  274. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see web_kaspi.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.my=e():t.my=e()}(self,()=>(()=>{"use strict";var t={4020:t=>{var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function o(t,e){try{return[decodeURIComponent(t.join(""))]}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],o(n),o(r))}function i(t){try{return decodeURIComponent(t)}catch(i){for(var e=t.match(n)||[],r=1;r<e.length;r++)e=(t=o(e,r).join("")).match(n)||[];return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(t);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(t){var o=i(n[0]);o!==n[0]&&(e[n[0]]=o)}n=r.exec(t)}e["%C2"]="�";for(var c=Object.keys(e),a=0;a<c.length;a++){var u=c[a];t=t.replace(new RegExp(u,"g"),e[u])}return t}(t)}}},6579:(t,e,n)=>{function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var o=n(4060);n(4020);function i(t,e){return e.encode?e.strict?o(t):encodeURIComponent(t):t}e.Pz=function(t,e){if(!t)return"";var n=function(t){switch(t.arrayFormat){case"index":return function(e){return function(n,o){var c=n.length;return void 0===o?n:[].concat(r(n),null===o?[[i(e,t),"[",c,"]"].join("")]:[[i(e,t),"[",i(c,t),"]=",i(o,t)].join("")])}};case"bracket":return function(e){return function(n,o){return void 0===o?n:[].concat(r(n),null===o?[[i(e,t),"[]"].join("")]:[[i(e,t),"[]=",i(o,t)].join("")])}};case"comma":return function(e){return function(n,r,o){return null==r||0===r.length?n:0===o?[[i(e,t),"=",i(r,t)].join("")]:[[n,i(r,t)].join(",")]}};default:return function(e){return function(n,o){return void 0===o?n:[].concat(r(n),null===o?[i(e,t)]:[[i(e,t),"=",i(o,t)].join("")])}}}}(e=Object.assign({encode:!0,strict:!0,arrayFormat:"none"},e)),o=Object.keys(t);return!1!==e.sort&&o.sort(e.sort),o.map(function(r){var o=t[r];return void 0===o?"":null===o?i(r,e):Array.isArray(o)?o.reduce(n(r),[]).join("&"):i(r,e)+"="+i(o,e)}).filter(function(t){return t.length>0}).join("&")}},4060:t=>{t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},2564:(t,e,n)=>{var r=n(9357).isUnitlessNumber,o=n(6521),i=Array.isArray,c=Object.keys,a=/^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/;function u(t,e){return r[t]||"number"!=typeof e?"content"!==t||a.test(e)||(e="'"+e.replace(/'/g,"\\'")+"'"):e+="px",o(t)+": "+e+"; "}t.exports=function(t){var e="";if(!t||0===c(t).length)return e;for(var n=c(t),r=0,o=n.length;r<o;r++){var a=n[r],l=t[a];if(i(l))for(var s=0,f=l.length;s<f;s++)e+=u(a,l[s]);else e+=u(a,l)}return e}},9357:t=>{var e={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},n=["Webkit","ms","Moz","O"];Object.keys(e).forEach(function(t){n.forEach(function(n){e[function(t,e){return t+e.charAt(0).toUpperCase()+e.substring(1)}(n,t)]=e[t]})});var r={isUnitlessNumber:e,shorthandPropertyExpansions:{background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}}};t.exports=r},6521:t=>{var e=/^ms-/,n=/([A-Z])/g;t.exports=function(t){return function(t){return t.replace(n,"-$1").toLowerCase()}(t).replace(e,"-ms-")}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{function t(t,e,n){!function(t){if(window.AlipayJSBridge)return t();document.addEventListener("AlipayJSBridgeReady",function(){return t()},!1)}(function(){var r=(n||{}).type,o=void 0===r?"async":r;"async"===o&&window.AlipayJSBridge.call(t,e,function(t){var n=e||{},r=n.success,o=n.fail,i=n.complete;t.error||t.errorCode?null==o||o(t):null==r||r(t),null==i||i(t)}),"callback"===o&&window.AlipayJSBridge.call(t,e)})}n.d(r,{default:()=>ve});function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(t){a=!0,o=t}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(){}function h(t){return t()}function m(){return Object.create(null)}function g(t){t.forEach(h)}function b(t){return"function"==typeof t}function w(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function x(t){return 0===Object.keys(t).length}function $(t,e,n,r){return t[1]&&r?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](r(e))):n.ctx}function O(t){return null==t?"":t}new Set;let j,A=!1;function S(t,e){t.appendChild(e)}function k(t,e,n){const r=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}(t);if(!r.getElementById(e)){const t=E("style");t.id=e,t.textContent=n,function(t,e){S(t.head||t,e)}(r,t)}}function P(t,e,n){t.insertBefore(e,n||null)}function C(t){t.parentNode.removeChild(t)}function E(t){return document.createElement(t)}function N(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function _(t){return document.createTextNode(t)}function T(){return _(" ")}function R(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function B(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function I(t){j=t}function F(){if(!j)throw new Error("Function called outside component initialization");return j}new Map;const M=[],L=[],z=[],H=[],D=Promise.resolve();let U=!1;function K(t){z.push(t)}const G=new Set;let W=0;function Y(){const t=j;do{for(;W<M.length;){const t=M[W];W++,I(t),q(t.$$)}for(I(null),M.length=0,W=0;L.length;)L.pop()();for(let t=0;t<z.length;t+=1){const e=z[t];G.has(e)||(G.add(e),e())}z.length=0}while(M.length);for(;H.length;)H.pop()();U=!1,G.clear(),I(t)}function q(t){if(null!==t.fragment){t.update(),g(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(K)}}const J=new Set;let V,Z;function Q(t,e){t&&t.i&&(J.delete(t),t.i(e))}function X(t,e,n,r){if(t&&t.o){if(J.has(t))return;J.add(t),V.c.push(()=>{J.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function tt(t){t&&t.c()}function et(t,e,n,r){const{fragment:o,on_mount:i,on_destroy:c,after_update:a}=t.$$;o&&o.m(e,n),r||K(()=>{const e=i.map(h).filter(b);c?c.push(...e):g(e),t.$$.on_mount=[]}),a.forEach(K)}function nt(t,e){const n=t.$$;null!==n.fragment&&(g(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function rt(t,e,n,r,o,i,c,a=[-1]){const u=j;I(t);const l=t.$$={fragment:null,ctx:null,props:i,update:v,not_equal:o,bound:m(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:m(),dirty:a,skip_bound:!1,root:e.target||u.$$.root};c&&c(l.root);let s=!1;if(l.ctx=n?n(t,e.props||{},(e,n,...r)=>{const i=r.length?r[0]:n;return l.ctx&&o(l.ctx[e],l.ctx[e]=i)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](i),s&&function(t,e){-1===t.$$.dirty[0]&&(M.push(t),U||(U=!0,D.then(Y)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n}):[],l.update(),s=!0,g(l.before_update),l.fragment=!!r&&r(l.ctx),e.target){if(e.hydrate){A=!0;const t=(f=e.target,Array.from(f.childNodes));l.fragment&&l.fragment.l(t),t.forEach(C)}else l.fragment&&l.fragment.c();e.intro&&Q(t.$$.fragment),et(t,e.target,e.anchor,e.customElement),A=!1,Y()}var f;I(u)}"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global,new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(Z=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(h).filter(b);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){g(this.$$.on_disconnect)}$destroy(){nt(this,1),this.$destroy=v}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!x(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class ot{$destroy(){nt(this,1),this.$destroy=v}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!x(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function it(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ct,at,ut;!function(t){t.EASYPAISA="EASYPAISA",t.TRUEMONEY="TRUEMONEY",t.KAKAOPAY="KAKAOPAY",t.BKASH="BKASH",t.ALIPAY_CN="ALIPAY_CN",t.ALIPAY_HK="ALIPAY_HK",t.ALIPAY_MO="ALIPAY_MO",t.GCASH="GCASH",t.TNG="TNG",t.DANA="DANA"}(ct||(ct={})),(ut=at||(at={})).alipayhk="alipayhk",ut.alipaymo="alipaymo",ut.gcash="gcash",ut.tngd="tngd",ut.dana="dana",ut.kakaopay="kakaopay",it(it(it(it(it(it({},ct.ALIPAY_HK,at.alipayhk),ct.ALIPAY_MO,at.alipaymo),ct.GCASH,at.gcash),ct.DANA,at.dana),ct.TNG,at.tngd),ct.KAKAOPAY,at.kakaopay);var lt,st,ft=function(t){return"".concat("alipay-mwj","-").concat(t)};(st=lt||(lt={})).STABLE="STABLE",st.TEST="TEST",st.PRE="PRE",st.PROD="PROD";var dt=function(){function t(){i(this,t)}return o(t,null,[{key:"isString",value:function(t){return"string"==typeof t}},{key:"isFunction",value:function(t){return"function"==typeof t}},{key:"isNotEmpty",value:function(t){return t&&t.length>0}},{key:"isEmpty",value:function(e){return!t.isNotEmpty(e)}},{key:"parseObjectSafe",value:function(t,e){try{return JSON.parse(t)}catch(t){console.warn("parseObjectSafe error: ",t)}return e}},{key:"encodeMap",value:function(t){if(t){var e=[];return function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push([n,t[n]]);return e}(t).forEach(function(t){var n=t[0],r=t[1];null!=r&&e.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r)))}),e.length>0?e.join("&"):void 0}}}]),t}(),pt=n(2564),yt=n.n(pt);function vt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(vt=function(){return!!t})()}function ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function mt(t){k(t,"svelte-1l3ztq7",".alipay-mwj-modal.svelte-1l3ztq7{width:100vw;height:100vh;position:fixed;left:0;top:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center}")}function gt(t){var e,n,r,o=t[7].default,i=function(t,e,n){if(t){const r=$(t,e,n,null);return t[0](r)}}(o,t,t[6]);return{c:function(){e=E("div"),i&&i.c(),R(e,"class",n=O(t[0]?"".concat(t[2]," ").concat(t[0]):t[2])+" svelte-1l3ztq7"),R(e,"style",t[1])},m:function(t,n){P(t,e,n),i&&i.m(e,null),r=!0},p:function(t,c){var a=y(c,1)[0];i&&i.p&&(!r||64&a)&&function(t,e,n,r,o,i){if(o){const c=$(e,n,r,i);t.p(c,o)}}(i,o,t,t[6],r?function(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}(o,t[6],a,null):function(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}(t[6]),null),(!r||1&a&&n!==(n=O(t[0]?"".concat(t[2]," ").concat(t[0]):t[2])+" svelte-1l3ztq7"))&&R(e,"class",n),(!r||2&a)&&R(e,"style",t[1])},i:function(t){r||(Q(i,t),r=!0)},o:function(t){X(i,t),r=!1},d:function(t){t&&C(e),i&&i.d(t)}}}function bt(t,e,n){var r,o=e.$$slots,i=void 0===o?{}:o,c=e.$$scope,a=ft("modal"),u=e.duration,l=void 0===u?void 0:u,s=e.afterClose,f=void 0===s?function(){}:s,d=e.className,p=void 0===d?"":d,y=e.style,v=void 0===y?{}:y;return setTimeout(function(){l&&l>0&&f()},l&&l>0?l:0),t.$$set=function(t){"duration"in t&&n(3,l=t.duration),"afterClose"in t&&n(4,f=t.afterClose),"className"in t&&n(0,p=t.className),"style"in t&&n(5,v=t.style),"$$scope"in t&&n(6,c=t.$$scope)},t.$$.update=function(){32&t.$$.dirty&&n(1,r=yt()(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ht(Object(n),!0).forEach(function(e){it(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({zIndex:999999},v)))},[p,r,a,l,f,v,c,i]}const wt=function(t){u(a,t);var e,n,r=(e=a,n=vt(),function(){var t,r=f(e);if(n){var o=f(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return s(this,t)});function a(t){var e;return i(this,a),rt(c(e=r.call(this)),t,bt,gt,w,{duration:3,afterClose:4,className:0,style:5},mt),e}return o(a)}(ot);function xt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(xt=function(){return!!t})()}function $t(t){k(t,"svelte-1pl0sex",".alipay-mwj-alert.svelte-1pl0sex{width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.4);display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-alert-content.svelte-1pl0sex{background-color:#fff;width:270px;border-radius:7px;padding-top:15px;text-align:center;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-alert-title.svelte-1pl0sex{font-size:18px;color:#000;padding:6px 15px 15px;word-break:break-word}.alipay-mwj-alert-text.svelte-1pl0sex{color:#888;font-size:15px;padding:0 15px 15px;overflow:auto;word-break:break-word}.alipay-mwj-alert-line.svelte-1pl0sex{width:100%;height:1px;background-color:#eee}.alipay-mwj-alert-button.svelte-1pl0sex{color:#3F8DE2;font-size:18px;height:50px;line-height:50px}")}function Ot(t){var e,n;return{c:function(){e=E("span"),n=_(t[1]),R(e,"class",t[5]+"-text svelte-1pl0sex")},m:function(t,r){P(t,e,r),S(e,n)},p:function(t,e){2&e&&B(n,t[1])},d:function(t){t&&C(e)}}}function jt(t){var e,n,r,o,i,c,a,u,l,s,f,d,p=(t[0]||"")+"",y=(t[2]||"OK")+"",v=t[4]&&Ot(t);return{c:function(){e=E("div"),n=E("div"),r=E("span"),o=_(p),i=T(),v&&v.c(),c=T(),a=E("div"),u=T(),l=E("span"),s=_(y),R(r,"class",t[5]+"-title svelte-1pl0sex"),R(a,"class",t[5]+"-line svelte-1pl0sex"),R(l,"class",t[5]+"-button svelte-1pl0sex"),R(n,"class",t[5]+"-content svelte-1pl0sex"),R(e,"class",O(t[5])+" svelte-1pl0sex")},m:function(p,y){var h,m,g,w;P(p,e,y),S(e,n),S(n,r),S(r,o),S(n,i),v&&v.m(n,null),S(n,c),S(n,a),S(n,u),S(n,l),S(l,s),f||(m="click",g=function(){b(t[3])&&t[3].apply(this,arguments)},(h=l).addEventListener(m,g,w),d=()=>h.removeEventListener(m,g,w),f=!0)},p:function(e,r){t=e,1&r&&p!==(p=(t[0]||"")+"")&&B(o,p),t[4]?v?v.p(t,r):((v=Ot(t)).c(),v.m(n,c)):v&&(v.d(1),v=null),4&r&&y!==(y=(t[2]||"OK")+"")&&B(s,y)},d:function(t){t&&C(e),v&&v.d(),f=!1,d()}}}function At(t){var e,n;return e=new wt({props:{$$slots:{default:[jt]},$$scope:{ctx:t}}}),{c:function(){tt(e.$$.fragment)},m:function(t,r){et(e,t,r),n=!0},p:function(t,n){var r=y(n,1)[0],o={};95&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i:function(t){n||(Q(e.$$.fragment,t),n=!0)},o:function(t){X(e.$$.fragment,t),n=!1},d:function(t){nt(e,t)}}}function St(t,e,n){var r,o=e.title,i=e.content,c=e.buttonText,a=e.onClose,u=ft("alert");return t.$$set=function(t){"title"in t&&n(0,o=t.title),"content"in t&&n(1,i=t.content),"buttonText"in t&&n(2,c=t.buttonText),"onClose"in t&&n(3,a=t.onClose)},t.$$.update=function(){2&t.$$.dirty&&n(4,r=dt.isNotEmpty(i))},[o,i,c,a,r,u]}const kt=function(t){u(a,t);var e,n,r=(e=a,n=xt(),function(){var t,r=f(e);if(n){var o=f(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return s(this,t)});function a(t){var e;return i(this,a),rt(c(e=r.call(this)),t,St,At,w,{title:0,content:1,buttonText:2,onClose:3},$t),e}return o(a)}(ot);function Pt(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var Ct,Et;(Et=Ct||(Ct={})).ToastHide="ToastHide",Et.LoadingHide="LoadingHide";const Nt=Ct;var _t=new(function(){function t(e){i(this,t),it(this,"managerName",void 0),it(this,"listenersMap",{}),this.managerName=e}return o(t,[{key:"addListener",value:function(t,e){var n=this;console.log("EventManager_".concat(this.managerName,"#addListener: ").concat(t));var r=this.listenersMap[t];return r||(r=[],this.listenersMap[t]=r),r.push(e),function(){n.removeListener(t,e)}}},{key:"removeListener",value:function(t,e){if(console.log("EventManager_".concat(this.managerName,"#removeListener: ").concat(t)),e){var n=this.listenersMap[t];n&&(this.listenersMap[t]=n.filter(function(t){return t!==e}))}else this.listenersMap[t]=[]}},{key:"notifyEvent",value:function(t,e){console.log("EventManager_".concat(this.managerName,"#notifyEvent: ").concat(t," -> "),e);var n,r=this.listenersMap[t];r&&(n=r,function(t){if(Array.isArray(t))return d(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||p(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach(function(n){return n(e,t)})}}]),t}())("default");function Tt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Tt=function(){return!!t})()}function Rt(t){var e,n,r,o;return{c:function(){e=N("svg"),n=N("g"),r=N("path"),o=N("path"),R(r,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),R(r,"fill","#FFF"),R(o,"stroke","#FFF"),R(o,"stroke-width","2"),R(o,"d","M19 34.54l11.545 11.923L52.815 24"),R(n,"fill","none"),R(n,"fill-rule","evenodd"),R(e,"class",t[0]),R(e,"xmlns","http://www.w3.org/2000/svg"),R(e,"viewBox","0 0 72 72")},m:function(t,i){P(t,e,i),S(e,n),S(n,r),S(n,o)},p:function(t,n){1&y(n,1)[0]&&R(e,"class",t[0])},i:v,o:v,d:function(t){t&&C(e)}}}function Bt(t,e,n){var r=e.className;return t.$$set=function(t){"className"in t&&n(0,r=t.className)},[r]}const It=function(t){u(a,t);var e,n,r=(e=a,n=Tt(),function(){var t,r=f(e);if(n){var o=f(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return s(this,t)});function a(t){var e;return i(this,a),rt(c(e=r.call(this)),t,Bt,Rt,w,{className:0}),e}return o(a)}(ot);function Ft(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ft=function(){return!!t})()}function Mt(t){var e,n,r,o;return{c:function(){e=N("svg"),n=N("g"),r=N("path"),o=N("path"),R(r,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),R(r,"fill","#FFF"),R(o,"d","M22 22l28.304 28.304m-28.304 0L50.304 22"),R(o,"stroke","#FFF"),R(o,"stroke-width","2"),R(n,"fill","none"),R(n,"fill-rule","evenodd"),R(e,"class",t[0]),R(e,"xmlns","http://www.w3.org/2000/svg"),R(e,"viewBox","0 0 72 72")},m:function(t,i){P(t,e,i),S(e,n),S(n,r),S(n,o)},p:function(t,n){1&y(n,1)[0]&&R(e,"class",t[0])},i:v,o:v,d:function(t){t&&C(e)}}}function Lt(t,e,n){var r=e.className;return t.$$set=function(t){"className"in t&&n(0,r=t.className)},[r]}const zt=function(t){u(a,t);var e,n,r=(e=a,n=Ft(),function(){var t,r=f(e);if(n){var o=f(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return s(this,t)});function a(t){var e;return i(this,a),rt(c(e=r.call(this)),t,Lt,Mt,w,{className:0}),e}return o(a)}(ot);function Ht(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ht=function(){return!!t})()}function Dt(t){var e,n,r,o,i;return{c:function(){e=N("svg"),n=N("g"),r=N("path"),o=N("path"),i=N("path"),R(r,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),R(r,"fill","#FFF"),R(o,"fill","#FFF"),R(o,"d","M47 22h2v6h-2zm-24 0h2v6h-2z"),R(i,"d","M21 51s4.6-7 15-7 15 7 15 7"),R(i,"stroke","#FFF"),R(i,"stroke-width","2"),R(n,"fill","none"),R(n,"fill-rule","evenodd"),R(e,"class",t[0]),R(e,"xmlns","http://www.w3.org/2000/svg"),R(e,"viewBox","0 0 72 72")},m:function(t,c){P(t,e,c),S(e,n),S(n,r),S(n,o),S(n,i)},p:function(t,n){1&y(n,1)[0]&&R(e,"class",t[0])},i:v,o:v,d:function(t){t&&C(e)}}}function Ut(t,e,n){var r=e.className;return t.$$set=function(t){"className"in t&&n(0,r=t.className)},[r]}const Kt=function(t){u(a,t);var e,n,r=(e=a,n=Ht(),function(){var t,r=f(e);if(n){var o=f(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return s(this,t)});function a(t){var e;return i(this,a),rt(c(e=r.call(this)),t,Ut,Dt,w,{className:0}),e}return o(a)}(ot);function Gt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Gt=function(){return!!t})()}function Wt(t){k(t,"svelte-13dnj4p",".alipay-mwj-toast.svelte-13dnj4p{background-color:rgba(58, 58, 58, 0.9);max-width:50%;min-width:72px;padding:15px;border-radius:5px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-toast-icon{width:72px;height:72px;margin-bottom:12px}.alipay-mwj-toast-text{color:#fff;font-size:14px;text-align:center;width:100%;display:block;word-wrap:break-word}")}function Yt(t){var e,n;return e=new Kt({props:{className:t[4]+"-icon"}}),{c:function(){tt(e.$$.fragment)},m:function(t,r){et(e,t,r),n=!0},p:v,i:function(t){n||(Q(e.$$.fragment,t),n=!0)},o:function(t){X(e.$$.fragment,t),n=!1},d:function(t){nt(e,t)}}}function qt(t){var e,n;return e=new zt({props:{className:t[4]+"-icon"}}),{c:function(){tt(e.$$.fragment)},m:function(t,r){et(e,t,r),n=!0},p:v,i:function(t){n||(Q(e.$$.fragment,t),n=!0)},o:function(t){X(e.$$.fragment,t),n=!1},d:function(t){nt(e,t)}}}function Jt(t){var e,n;return e=new It({props:{className:t[4]+"-icon"}}),{c:function(){tt(e.$$.fragment)},m:function(t,r){et(e,t,r),n=!0},p:v,i:function(t){n||(Q(e.$$.fragment,t),n=!0)},o:function(t){X(e.$$.fragment,t),n=!1},d:function(t){nt(e,t)}}}function Vt(t){var e,n,r,o,i,c,a,u=[Jt,qt,Yt],l=[];function s(t,e){return"success"===t[1]?0:"fail"===t[1]?1:"exception"===t[1]?2:-1}return~(n=s(t))&&(r=l[n]=u[n](t)),{c:function(){e=E("div"),r&&r.c(),o=T(),i=E("span"),c=_(t[0]),R(i,"class",t[4]+"-text svelte-13dnj4p"),R(e,"class",O(t[4])+" svelte-13dnj4p")},m:function(t,r){P(t,e,r),~n&&l[n].m(e,null),S(e,o),S(e,i),S(i,c),a=!0},p:function(t,i){var f=n;(n=s(t))===f?~n&&l[n].p(t,i):(r&&(V={r:0,c:[],p:V},X(l[f],1,1,function(){l[f]=null}),V.r||g(V.c),V=V.p),~n?((r=l[n])?r.p(t,i):(r=l[n]=u[n](t)).c(),Q(r,1),r.m(e,o)):r=null),(!a||1&i)&&B(c,t[0])},i:function(t){a||(Q(r),a=!0)},o:function(t){X(r),a=!1},d:function(t){t&&C(e),~n&&l[n].d()}}}function Zt(t){var e,n;return e=new wt({props:{duration:t[2],afterClose:t[3],$$slots:{default:[Vt]},$$scope:{ctx:t}}}),{c:function(){tt(e.$$.fragment)},m:function(t,r){et(e,t,r),n=!0},p:function(t,n){var r=y(n,1)[0],o={};4&r&&(o.duration=t[2]),8&r&&(o.afterClose=t[3]),35&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i:function(t){n||(Q(e.$$.fragment,t),n=!0)},o:function(t){X(e.$$.fragment,t),n=!1},d:function(t){nt(e,t)}}}function Qt(t,e,n){var r,o=e.content,i=e.type,c=e.duration,a=e.onClose,u=ft("toast");return r=function(){_t.addListener(Nt.ToastHide,a)},F().$$.on_mount.push(r),F().$$.on_destroy.push(function(){_t.removeListener(Nt.ToastHide,a)}),t.$$set=function(t){"content"in t&&n(0,o=t.content),"type"in t&&n(1,i=t.type),"duration"in t&&n(2,c=t.duration),"onClose"in t&&n(3,a=t.onClose)},[o,i,c,a,u]}const Xt=function(t){u(a,t);var e,n,r=(e=a,n=Gt(),function(){var t,r=f(e);if(n){var o=f(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return s(this,t)});function a(t){var e;return i(this,a),rt(c(e=r.call(this)),t,Qt,Zt,w,{content:0,type:1,duration:2,onClose:3},Wt),e}return o(a)}(ot);function te(t){return function(t){var e=t||{},n=e.content,r=e.type,o=e.duration,i=void 0===o?2e3:o,c=e.success,a=e.complete;if(n){var u=document.createElement("div");document.body.appendChild(u);var l=new Xt({target:u,props:{content:n,type:r,duration:i,onClose:function(){var t;null==c||c(),null==a||a(),l.$destroy(),null===(t=u.parentNode)||void 0===t||t.removeChild(u)}}})}}(t)}var ee=["scopes"];const ne=function(t){var e=t||{},n=e.scopes,r=(Pt(e,ee),function(t){return new Promise(function(e,n){var r,o,i,c,a,u,l="handleCPAuthCodeCallback_cb_"+Date.now()+"_"+Math.random().toString(36).slice(2,8);if(window[l]=function(t,r,o,i){delete window[l],t?e({authCode:t,grantedScopes:r}):(i.includes("The lp_cust_no field is required")&&te({type:"fail",content:"There is an error accessing A+ Travel Treat now. Please ensure you have Liquid Account.",duration:5e3}),n({errorCode:o,errorMsg:i}))},null!==(r=window)&&void 0!==r&&r.AlipayPlusRewardsBridge&&null!==(o=window)&&void 0!==o&&null!==(i=o.AlipayPlusRewardsBridge)&&void 0!==i&&i.getAuthCode)AlipayPlusRewardsBridge.getAuthCode(t,l);else if(null!==(c=window)&&void 0!==c&&c.webkit&&null!==(a=window)&&void 0!==a&&null!==(u=a.webkit)&&void 0!==u&&u.messageHandlers.AlipayPlusRewardsBridge){var s,f;null===(s=window)||void 0===s||null===(f=s.webkit)||void 0===f||f.messageHandlers.AlipayPlusRewardsBridge.postMessage({action:"getAuthCode",scopes:t,callback:l})}else n({errorCode:"NO_BRIDGE",errorMsg:"Bridge not found"})})});return r(n)};function re(t){setTimeout(t,0)}var oe;function ie(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ce(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ie(Object(n),!0).forEach(function(e){it(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ae(t,e,n,r,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,o)}function ue(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function c(t){ae(i,r,o,c,a,"next",t)}function a(t){ae(i,r,o,c,a,"throw",t)}c(void 0)})}}var le=n(6579),se=["success","fail"];function fe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function de(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fe(Object(n),!0).forEach(function(e){it(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function pe(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof a?r:a,l=Object.create(u.prototype);return ye(l,"_invoke",function(n,r,o){var i,a,u,l=0,s=o||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return i=e,a=0,u=t,d.n=n,c}};function p(n,r){for(a=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],p=d.p,y=i[2];n>3?(o=y===r)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=n<2&&p<i[1])?(a=0,d.v=r,d.n=i[1]):p<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,d.n=y,a=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,y),a=s,u=y;(e=a<2?t:u)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,u)):d.n=u:d.v=u);try{if(l=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==c)break}catch(e){i=t,a=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var c={};function a(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(ye(e={},r,function(){return this}),e),f=l.prototype=a.prototype=Object.create(s);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,ye(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,ye(f,"constructor",l),ye(l,"constructor",u),u.displayName="GeneratorFunction",ye(l,o,"GeneratorFunction"),ye(f),ye(f,o,"Generator"),ye(f,r,function(){return this}),ye(f,"toString",function(){return"[object Generator]"}),(pe=function(){return{w:i,m:d}})()}function ye(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}ye=function(t,e,n,r){function i(e,n){ye(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},ye(t,e,n,r)}const ve={getSystemInfoSync:function(e){return t("getSystemInfoSync",e,{type:"sync"})},redirectTo:function(e){return t("redirectTo",e,{type:"async"})},alert:function(t){return function(t){var e=t||{},n=e.title,r=e.content,o=e.buttonText,i=e.success,c=e.complete,a=document.createElement("div");document.body.appendChild(a);var u=new kt({target:a,props:{title:n,content:r,buttonText:o,onClose:function(){var t;null==i||i(),null==c||c(),u.$destroy(),null===(t=a.parentNode)||void 0===t||t.removeChild(a)}}})}(t)},getAuthCode:ne,getLocation:function(t){return function(t){var e=function(e){re(function(){var n,r,o={error:e};null===(n=t.fail)||void 0===n||n.call(t,o),null===(r=t.complete)||void 0===r||r.call(t,o)})},n=navigator.geolocation;n?n.getCurrentPosition(function(e){var n,r,o,i,c,a,u={accuracy:"".concat(null===(n=e.coords)||void 0===n?void 0:n.accuracy),horizontalAccuracy:"".concat(null===(r=e.coords)||void 0===r?void 0:r.altitudeAccuracy),latitude:"".concat(null===(o=e.coords)||void 0===o?void 0:o.latitude),longitude:"".concat(null===(i=e.coords)||void 0===i?void 0:i.longitude)};null===(c=t.success)||void 0===c||c.call(t,u),null===(a=t.complete)||void 0===a||a.call(t,u)},function(t){var n=1===t.code?11:13;e(n)},{timeout:1e4,maximumAge:t.cacheTimeout||3e4}):e(13)}(t)},getStorage:function(t){var e=t.key,n=t.success,r=t.fail,o=t.complete;try{var i=localStorage.getItem(e);null==n||n(i?JSON.parse(i):{data:null})}catch(t){null==r||r(t)}null==o||o()},getStorageSync:function(t){var e=t.key;try{var n=localStorage.getItem(e);return n?JSON.parse(n):{data:null}}catch(t){return console.error(t),{data:null}}},getSystemInfo:function(t){var e,n,r,o,i=(e=navigator.userAgent,n=/Android\s+([\d.]+)/.exec(e),r=/iPhone\sOS\s+([\d_]+)/.exec(e),o=/(Kaspi-(Android|iOS)\/([\d.]+))/.exec(e),{system:n?n[1]:r?r[1].replace("_","."):void 0,version:o?o[3]:void 0});return function(t){re(function(){try{var e;null===(e=t.success)||void 0===e||e.call(t,(oe||(o=Math.ceil(375/window.screen.width*window.screen.height),oe={platform:/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"iOS":/(Android)/i.test(navigator.userAgent)?"Android":"UNKNOWN",pixelRatio:window.devicePixelRatio,windowWidth:375,windowHeight:o-0-0,titleBarHeight:0,statusBarHeight:0,screenWidth:375,screenHeight:o,currentBattery:"100%",brand:"UNKNOWN",model:"UNKNOWN",system:"UNKNOWN",version:"UNKNOWN",storage:"",app:"h5",fontSizeSetting:16,language:navigator.language}),oe))}catch(e){var n;null===(n=t.fail)||void 0===n||n.call(t)}finally{var r;null===(r=t.complete)||void 0===r||r.call(t)}var o})}(ce(ce({},t),{},{success:function(e){var n,r=ce(ce({},e),{},{system:i.system,version:i.version});null===(n=t.success)||void 0===n||n.call(t,r)}}))},navigateTo:function(t){return function(t){var e=t.success,n=(t.fail,t.complete);window.location.href=t.url,null==e||e(),null==n||n()}(t)},removeStorage:function(t){var e=t||{},n=e.success,r=e.fail,o=e.complete;try{localStorage.removeItem(t.key||""),null==n||n()}catch(t){null==r||r(t)}null==o||o()},request:function(t){var e=t.success,n=t.fail;if(Pt(t,se)){var r=function(){var e=ue(pe().m(function e(n){return pe().w(function(e){for(;;)switch(e.n){case 0:if("text"!==t.dataType){e.n=2;break}return e.n=1,n.text();case 1:case 3:return e.a(2,e.v);case 2:return e.n=3,n.json()}},e)}));return function(t){return e.apply(this,arguments)}}(),o=t.method||"GET",i={method:o,mode:"cors",cache:"no-cache",credentials:"include",referrerPolicy:"no-referrer",headers:de(de({},t.headers),{},{Accept:"text"===t.dataType?"text/plain":"application/json"})},c=t.url;if("GET"===o){if(t.data){var a="string"==typeof t.data?t.data:(0,le.Pz)(t.data);-1!==c.indexOf("?")?c+=a:c=c+"?"+a}}else i.body="string"==typeof t.data?t.data:JSON.stringify(t.data);fetch(c,i).then(function(){var t=ue(pe().m(function t(n){var o,i,c,a;return pe().w(function(t){for(;;)switch(t.n){case 0:if(o={},n.headers.forEach(function(t,e){o[e.toLocaleLowerCase()]=t}),null!=e){t.n=1;break}t.n=3;break;case 1:return i=e,c=n.status,t.n=2,r(n);case 2:a=t.v,i({status:c,data:a,headers:o});case 3:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()).catch(function(t){null==n||n({error:19,errorMessage:"HTTP error."+(null==t?void 0:t.message)})})}else null==n||n({error:-103,errorMessage:"[request]: Wrong Param"})},setClipboard:function(t){return function(t){var e,n;if(!t.text)return null===(e=t.fail)||void 0===e||e.call(t),void(null===(n=t.complete)||void 0===n||n.call(t,{success:!1}));var r,o,i,c,a=document.createElement("input");a.style.position="fixed",a.style.opacity="0",a.style.zIndex="-1000",document.body.appendChild(a),a.setAttribute("readonly","readonly"),a.setAttribute("value",t.text),a.setSelectionRange(0,t.text.length),a.focus(),a.select(),document.execCommand("copy")?(null===(r=t.success)||void 0===r||r.call(t,{success:!0}),null===(o=t.complete)||void 0===o||o.call(t,{success:!0})):(null===(i=t.fail)||void 0===i||i.call(t),null===(c=t.complete)||void 0===c||c.call(t,{success:!1})),document.body.removeChild(a)}(t)},setStorage:function(t){var e=t.key,n=t.data,r=t.success,o=t.fail,i=t.complete;try{localStorage.setItem(e,JSON.stringify({data:n})),null==r||r()}catch(t){null==o||o(t)}null==i||i()},showToast:te}})(),r.default})());
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.my=e():t.my=e()}(self,()=>(()=>{"use strict";var t={4020:t=>{var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function o(t,e){try{return[decodeURIComponent(t.join(""))]}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],o(n),o(r))}function i(t){try{return decodeURIComponent(t)}catch(i){for(var e=t.match(n)||[],r=1;r<e.length;r++)e=(t=o(e,r).join("")).match(n)||[];return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(t);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(t){var o=i(n[0]);o!==n[0]&&(e[n[0]]=o)}n=r.exec(t)}e["%C2"]="�";for(var c=Object.keys(e),a=0;a<c.length;a++){var u=c[a];t=t.replace(new RegExp(u,"g"),e[u])}return t}(t)}}},6579:(t,e,n)=>{function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var o=n(4060);n(4020);function i(t,e){return e.encode?e.strict?o(t):encodeURIComponent(t):t}e.Pz=function(t,e){if(!t)return"";var n=function(t){switch(t.arrayFormat){case"index":return function(e){return function(n,o){var c=n.length;return void 0===o?n:[].concat(r(n),null===o?[[i(e,t),"[",c,"]"].join("")]:[[i(e,t),"[",i(c,t),"]=",i(o,t)].join("")])}};case"bracket":return function(e){return function(n,o){return void 0===o?n:[].concat(r(n),null===o?[[i(e,t),"[]"].join("")]:[[i(e,t),"[]=",i(o,t)].join("")])}};case"comma":return function(e){return function(n,r,o){return null==r||0===r.length?n:0===o?[[i(e,t),"=",i(r,t)].join("")]:[[n,i(r,t)].join(",")]}};default:return function(e){return function(n,o){return void 0===o?n:[].concat(r(n),null===o?[i(e,t)]:[[i(e,t),"=",i(o,t)].join("")])}}}}(e=Object.assign({encode:!0,strict:!0,arrayFormat:"none"},e)),o=Object.keys(t);return!1!==e.sort&&o.sort(e.sort),o.map(function(r){var o=t[r];return void 0===o?"":null===o?i(r,e):Array.isArray(o)?o.reduce(n(r),[]).join("&"):i(r,e)+"="+i(o,e)}).filter(function(t){return t.length>0}).join("&")}},4060:t=>{t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},2564:(t,e,n)=>{var r=n(9357).isUnitlessNumber,o=n(6521),i=Array.isArray,c=Object.keys,a=/^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/;function u(t,e){return r[t]||"number"!=typeof e?"content"!==t||a.test(e)||(e="'"+e.replace(/'/g,"\\'")+"'"):e+="px",o(t)+": "+e+"; "}t.exports=function(t){var e="";if(!t||0===c(t).length)return e;for(var n=c(t),r=0,o=n.length;r<o;r++){var a=n[r],l=t[a];if(i(l))for(var s=0,f=l.length;s<f;s++)e+=u(a,l[s]);else e+=u(a,l)}return e}},9357:t=>{var e={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},n=["Webkit","ms","Moz","O"];Object.keys(e).forEach(function(t){n.forEach(function(n){e[function(t,e){return t+e.charAt(0).toUpperCase()+e.substring(1)}(n,t)]=e[t]})});var r={isUnitlessNumber:e,shorthandPropertyExpansions:{background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}}};t.exports=r},6521:t=>{var e=/^ms-/,n=/([A-Z])/g;t.exports=function(t){return function(t){return t.replace(n,"-$1").toLowerCase()}(t).replace(e,"-ms-")}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{function t(t,e,n){!function(t){if(window.AlipayJSBridge)return t();document.addEventListener("AlipayJSBridgeReady",function(){return t()},!1)}(function(){var r=(n||{}).type,o=void 0===r?"async":r;"async"===o&&window.AlipayJSBridge.call(t,e,function(t){var n=e||{},r=n.success,o=n.fail,i=n.complete;t.error||t.errorCode?null==o||o(t):null==r||r(t),null==i||i(t)}),"callback"===o&&window.AlipayJSBridge.call(t,e)})}n.d(r,{default:()=>ve});function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(t){a=!0,o=t}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(){}function h(t){return t()}function m(){return Object.create(null)}function g(t){t.forEach(h)}function b(t){return"function"==typeof t}function w(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function x(t){return 0===Object.keys(t).length}function $(t,e,n,r){return t[1]&&r?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](r(e))):n.ctx}function O(t){return null==t?"":t}new Set;let j,A=!1;function S(t,e){t.appendChild(e)}function k(t,e,n){const r=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}(t);if(!r.getElementById(e)){const t=E("style");t.id=e,t.textContent=n,function(t,e){S(t.head||t,e)}(r,t)}}function P(t,e,n){t.insertBefore(e,n||null)}function C(t){t.parentNode.removeChild(t)}function E(t){return document.createElement(t)}function N(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function _(t){return document.createTextNode(t)}function T(){return _(" ")}function R(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function B(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function I(t){j=t}function F(){if(!j)throw new Error("Function called outside component initialization");return j}new Map;const M=[],L=[],z=[],H=[],D=Promise.resolve();let U=!1;function K(t){z.push(t)}const G=new Set;let W=0;function Y(){const t=j;do{for(;W<M.length;){const t=M[W];W++,I(t),q(t.$$)}for(I(null),M.length=0,W=0;L.length;)L.pop()();for(let t=0;t<z.length;t+=1){const e=z[t];G.has(e)||(G.add(e),e())}z.length=0}while(M.length);for(;H.length;)H.pop()();U=!1,G.clear(),I(t)}function q(t){if(null!==t.fragment){t.update(),g(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(K)}}const J=new Set;let V,Z;function Q(t,e){t&&t.i&&(J.delete(t),t.i(e))}function X(t,e,n,r){if(t&&t.o){if(J.has(t))return;J.add(t),V.c.push(()=>{J.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function tt(t){t&&t.c()}function et(t,e,n,r){const{fragment:o,on_mount:i,on_destroy:c,after_update:a}=t.$$;o&&o.m(e,n),r||K(()=>{const e=i.map(h).filter(b);c?c.push(...e):g(e),t.$$.on_mount=[]}),a.forEach(K)}function nt(t,e){const n=t.$$;null!==n.fragment&&(g(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function rt(t,e,n,r,o,i,c,a=[-1]){const u=j;I(t);const l=t.$$={fragment:null,ctx:null,props:i,update:v,not_equal:o,bound:m(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:m(),dirty:a,skip_bound:!1,root:e.target||u.$$.root};c&&c(l.root);let s=!1;if(l.ctx=n?n(t,e.props||{},(e,n,...r)=>{const i=r.length?r[0]:n;return l.ctx&&o(l.ctx[e],l.ctx[e]=i)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](i),s&&function(t,e){-1===t.$$.dirty[0]&&(M.push(t),U||(U=!0,D.then(Y)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n}):[],l.update(),s=!0,g(l.before_update),l.fragment=!!r&&r(l.ctx),e.target){if(e.hydrate){A=!0;const t=(f=e.target,Array.from(f.childNodes));l.fragment&&l.fragment.l(t),t.forEach(C)}else l.fragment&&l.fragment.c();e.intro&&Q(t.$$.fragment),et(t,e.target,e.anchor,e.customElement),A=!1,Y()}var f;I(u)}"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global,new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(Z=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(h).filter(b);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){g(this.$$.on_disconnect)}$destroy(){nt(this,1),this.$destroy=v}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!x(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class ot{$destroy(){nt(this,1),this.$destroy=v}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!x(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function it(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ct,at,ut;!function(t){t.EASYPAISA="EASYPAISA",t.TRUEMONEY="TRUEMONEY",t.KAKAOPAY="KAKAOPAY",t.BKASH="BKASH",t.ALIPAY_CN="ALIPAY_CN",t.ALIPAY_HK="ALIPAY_HK",t.ALIPAY_MO="ALIPAY_MO",t.GCASH="GCASH",t.TNG="TNG",t.DANA="DANA"}(ct||(ct={})),(ut=at||(at={})).alipayhk="alipayhk",ut.alipaymo="alipaymo",ut.gcash="gcash",ut.tngd="tngd",ut.dana="dana",ut.kakaopay="kakaopay",it(it(it(it(it(it({},ct.ALIPAY_HK,at.alipayhk),ct.ALIPAY_MO,at.alipaymo),ct.GCASH,at.gcash),ct.DANA,at.dana),ct.TNG,at.tngd),ct.KAKAOPAY,at.kakaopay);var lt,st,ft=function(t){return"".concat("alipay-mwj","-").concat(t)};(st=lt||(lt={})).STABLE="STABLE",st.TEST="TEST",st.PRE="PRE",st.PROD="PROD";var dt=function(){function t(){i(this,t)}return o(t,null,[{key:"isString",value:function(t){return"string"==typeof t}},{key:"isFunction",value:function(t){return"function"==typeof t}},{key:"isNotEmpty",value:function(t){return t&&t.length>0}},{key:"isEmpty",value:function(e){return!t.isNotEmpty(e)}},{key:"parseObjectSafe",value:function(t,e){try{return JSON.parse(t)}catch(t){console.warn("parseObjectSafe error: ",t)}return e}},{key:"encodeMap",value:function(t){if(t){var e=[];return function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push([n,t[n]]);return e}(t).forEach(function(t){var n=t[0],r=t[1];null!=r&&e.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r)))}),e.length>0?e.join("&"):void 0}}}]),t}(),pt=n(2564),yt=n.n(pt);function vt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(vt=function(){return!!t})()}function ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function mt(t){k(t,"svelte-1l3ztq7",".alipay-mwj-modal.svelte-1l3ztq7{width:100vw;height:100vh;position:fixed;left:0;top:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center}")}function gt(t){var e,n,r,o=t[7].default,i=function(t,e,n){if(t){const r=$(t,e,n,null);return t[0](r)}}(o,t,t[6]);return{c:function(){e=E("div"),i&&i.c(),R(e,"class",n=O(t[0]?"".concat(t[2]," ").concat(t[0]):t[2])+" svelte-1l3ztq7"),R(e,"style",t[1])},m:function(t,n){P(t,e,n),i&&i.m(e,null),r=!0},p:function(t,c){var a=y(c,1)[0];i&&i.p&&(!r||64&a)&&function(t,e,n,r,o,i){if(o){const c=$(e,n,r,i);t.p(c,o)}}(i,o,t,t[6],r?function(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}(o,t[6],a,null):function(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}(t[6]),null),(!r||1&a&&n!==(n=O(t[0]?"".concat(t[2]," ").concat(t[0]):t[2])+" svelte-1l3ztq7"))&&R(e,"class",n),(!r||2&a)&&R(e,"style",t[1])},i:function(t){r||(Q(i,t),r=!0)},o:function(t){X(i,t),r=!1},d:function(t){t&&C(e),i&&i.d(t)}}}function bt(t,e,n){var r,o=e.$$slots,i=void 0===o?{}:o,c=e.$$scope,a=ft("modal"),u=e.duration,l=void 0===u?void 0:u,s=e.afterClose,f=void 0===s?function(){}:s,d=e.className,p=void 0===d?"":d,y=e.style,v=void 0===y?{}:y;return setTimeout(function(){l&&l>0&&f()},l&&l>0?l:0),t.$$set=function(t){"duration"in t&&n(3,l=t.duration),"afterClose"in t&&n(4,f=t.afterClose),"className"in t&&n(0,p=t.className),"style"in t&&n(5,v=t.style),"$$scope"in t&&n(6,c=t.$$scope)},t.$$.update=function(){32&t.$$.dirty&&n(1,r=yt()(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ht(Object(n),!0).forEach(function(e){it(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({zIndex:999999},v)))},[p,r,a,l,f,v,c,i]}const wt=function(t){u(a,t);var e,n,r=(e=a,n=vt(),function(){var t,r=f(e);if(n){var o=f(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return s(this,t)});function a(t){var e;return i(this,a),rt(c(e=r.call(this)),t,bt,gt,w,{duration:3,afterClose:4,className:0,style:5},mt),e}return o(a)}(ot);function xt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(xt=function(){return!!t})()}function $t(t){k(t,"svelte-1pl0sex",".alipay-mwj-alert.svelte-1pl0sex{width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.4);display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-alert-content.svelte-1pl0sex{background-color:#fff;width:270px;border-radius:7px;padding-top:15px;text-align:center;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-alert-title.svelte-1pl0sex{font-size:18px;color:#000;padding:6px 15px 15px;word-break:break-word}.alipay-mwj-alert-text.svelte-1pl0sex{color:#888;font-size:15px;padding:0 15px 15px;overflow:auto;word-break:break-word}.alipay-mwj-alert-line.svelte-1pl0sex{width:100%;height:1px;background-color:#eee}.alipay-mwj-alert-button.svelte-1pl0sex{color:#3F8DE2;font-size:18px;height:50px;line-height:50px}")}function Ot(t){var e,n;return{c:function(){e=E("span"),n=_(t[1]),R(e,"class",t[5]+"-text svelte-1pl0sex")},m:function(t,r){P(t,e,r),S(e,n)},p:function(t,e){2&e&&B(n,t[1])},d:function(t){t&&C(e)}}}function jt(t){var e,n,r,o,i,c,a,u,l,s,f,d,p=(t[0]||"")+"",y=(t[2]||"OK")+"",v=t[4]&&Ot(t);return{c:function(){e=E("div"),n=E("div"),r=E("span"),o=_(p),i=T(),v&&v.c(),c=T(),a=E("div"),u=T(),l=E("span"),s=_(y),R(r,"class",t[5]+"-title svelte-1pl0sex"),R(a,"class",t[5]+"-line svelte-1pl0sex"),R(l,"class",t[5]+"-button svelte-1pl0sex"),R(n,"class",t[5]+"-content svelte-1pl0sex"),R(e,"class",O(t[5])+" svelte-1pl0sex")},m:function(p,y){var h,m,g,w;P(p,e,y),S(e,n),S(n,r),S(r,o),S(n,i),v&&v.m(n,null),S(n,c),S(n,a),S(n,u),S(n,l),S(l,s),f||(m="click",g=function(){b(t[3])&&t[3].apply(this,arguments)},(h=l).addEventListener(m,g,w),d=()=>h.removeEventListener(m,g,w),f=!0)},p:function(e,r){t=e,1&r&&p!==(p=(t[0]||"")+"")&&B(o,p),t[4]?v?v.p(t,r):((v=Ot(t)).c(),v.m(n,c)):v&&(v.d(1),v=null),4&r&&y!==(y=(t[2]||"OK")+"")&&B(s,y)},d:function(t){t&&C(e),v&&v.d(),f=!1,d()}}}function At(t){var e,n;return e=new wt({props:{$$slots:{default:[jt]},$$scope:{ctx:t}}}),{c:function(){tt(e.$$.fragment)},m:function(t,r){et(e,t,r),n=!0},p:function(t,n){var r=y(n,1)[0],o={};95&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i:function(t){n||(Q(e.$$.fragment,t),n=!0)},o:function(t){X(e.$$.fragment,t),n=!1},d:function(t){nt(e,t)}}}function St(t,e,n){var r,o=e.title,i=e.content,c=e.buttonText,a=e.onClose,u=ft("alert");return t.$$set=function(t){"title"in t&&n(0,o=t.title),"content"in t&&n(1,i=t.content),"buttonText"in t&&n(2,c=t.buttonText),"onClose"in t&&n(3,a=t.onClose)},t.$$.update=function(){2&t.$$.dirty&&n(4,r=dt.isNotEmpty(i))},[o,i,c,a,r,u]}const kt=function(t){u(a,t);var e,n,r=(e=a,n=xt(),function(){var t,r=f(e);if(n){var o=f(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return s(this,t)});function a(t){var e;return i(this,a),rt(c(e=r.call(this)),t,St,At,w,{title:0,content:1,buttonText:2,onClose:3},$t),e}return o(a)}(ot);function Pt(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var Ct,Et;(Et=Ct||(Ct={})).ToastHide="ToastHide",Et.LoadingHide="LoadingHide";const Nt=Ct;var _t=new(function(){function t(e){i(this,t),it(this,"managerName",void 0),it(this,"listenersMap",{}),this.managerName=e}return o(t,[{key:"addListener",value:function(t,e){var n=this;console.log("EventManager_".concat(this.managerName,"#addListener: ").concat(t));var r=this.listenersMap[t];return r||(r=[],this.listenersMap[t]=r),r.push(e),function(){n.removeListener(t,e)}}},{key:"removeListener",value:function(t,e){if(console.log("EventManager_".concat(this.managerName,"#removeListener: ").concat(t)),e){var n=this.listenersMap[t];n&&(this.listenersMap[t]=n.filter(function(t){return t!==e}))}else this.listenersMap[t]=[]}},{key:"notifyEvent",value:function(t,e){console.log("EventManager_".concat(this.managerName,"#notifyEvent: ").concat(t," -> "),e);var n,r=this.listenersMap[t];r&&(n=r,function(t){if(Array.isArray(t))return d(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||p(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach(function(n){return n(e,t)})}}]),t}())("default");function Tt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Tt=function(){return!!t})()}function Rt(t){var e,n,r,o;return{c:function(){e=N("svg"),n=N("g"),r=N("path"),o=N("path"),R(r,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),R(r,"fill","#FFF"),R(o,"stroke","#FFF"),R(o,"stroke-width","2"),R(o,"d","M19 34.54l11.545 11.923L52.815 24"),R(n,"fill","none"),R(n,"fill-rule","evenodd"),R(e,"class",t[0]),R(e,"xmlns","http://www.w3.org/2000/svg"),R(e,"viewBox","0 0 72 72")},m:function(t,i){P(t,e,i),S(e,n),S(n,r),S(n,o)},p:function(t,n){1&y(n,1)[0]&&R(e,"class",t[0])},i:v,o:v,d:function(t){t&&C(e)}}}function Bt(t,e,n){var r=e.className;return t.$$set=function(t){"className"in t&&n(0,r=t.className)},[r]}const It=function(t){u(a,t);var e,n,r=(e=a,n=Tt(),function(){var t,r=f(e);if(n){var o=f(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return s(this,t)});function a(t){var e;return i(this,a),rt(c(e=r.call(this)),t,Bt,Rt,w,{className:0}),e}return o(a)}(ot);function Ft(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ft=function(){return!!t})()}function Mt(t){var e,n,r,o;return{c:function(){e=N("svg"),n=N("g"),r=N("path"),o=N("path"),R(r,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),R(r,"fill","#FFF"),R(o,"d","M22 22l28.304 28.304m-28.304 0L50.304 22"),R(o,"stroke","#FFF"),R(o,"stroke-width","2"),R(n,"fill","none"),R(n,"fill-rule","evenodd"),R(e,"class",t[0]),R(e,"xmlns","http://www.w3.org/2000/svg"),R(e,"viewBox","0 0 72 72")},m:function(t,i){P(t,e,i),S(e,n),S(n,r),S(n,o)},p:function(t,n){1&y(n,1)[0]&&R(e,"class",t[0])},i:v,o:v,d:function(t){t&&C(e)}}}function Lt(t,e,n){var r=e.className;return t.$$set=function(t){"className"in t&&n(0,r=t.className)},[r]}const zt=function(t){u(a,t);var e,n,r=(e=a,n=Ft(),function(){var t,r=f(e);if(n){var o=f(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return s(this,t)});function a(t){var e;return i(this,a),rt(c(e=r.call(this)),t,Lt,Mt,w,{className:0}),e}return o(a)}(ot);function Ht(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ht=function(){return!!t})()}function Dt(t){var e,n,r,o,i;return{c:function(){e=N("svg"),n=N("g"),r=N("path"),o=N("path"),i=N("path"),R(r,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),R(r,"fill","#FFF"),R(o,"fill","#FFF"),R(o,"d","M47 22h2v6h-2zm-24 0h2v6h-2z"),R(i,"d","M21 51s4.6-7 15-7 15 7 15 7"),R(i,"stroke","#FFF"),R(i,"stroke-width","2"),R(n,"fill","none"),R(n,"fill-rule","evenodd"),R(e,"class",t[0]),R(e,"xmlns","http://www.w3.org/2000/svg"),R(e,"viewBox","0 0 72 72")},m:function(t,c){P(t,e,c),S(e,n),S(n,r),S(n,o),S(n,i)},p:function(t,n){1&y(n,1)[0]&&R(e,"class",t[0])},i:v,o:v,d:function(t){t&&C(e)}}}function Ut(t,e,n){var r=e.className;return t.$$set=function(t){"className"in t&&n(0,r=t.className)},[r]}const Kt=function(t){u(a,t);var e,n,r=(e=a,n=Ht(),function(){var t,r=f(e);if(n){var o=f(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return s(this,t)});function a(t){var e;return i(this,a),rt(c(e=r.call(this)),t,Ut,Dt,w,{className:0}),e}return o(a)}(ot);function Gt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Gt=function(){return!!t})()}function Wt(t){k(t,"svelte-13dnj4p",".alipay-mwj-toast.svelte-13dnj4p{background-color:rgba(58, 58, 58, 0.9);max-width:50%;min-width:72px;padding:15px;border-radius:5px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-toast-icon{width:72px;height:72px;margin-bottom:12px}.alipay-mwj-toast-text{color:#fff;font-size:14px;text-align:center;width:100%;display:block;word-wrap:break-word}")}function Yt(t){var e,n;return e=new Kt({props:{className:t[4]+"-icon"}}),{c:function(){tt(e.$$.fragment)},m:function(t,r){et(e,t,r),n=!0},p:v,i:function(t){n||(Q(e.$$.fragment,t),n=!0)},o:function(t){X(e.$$.fragment,t),n=!1},d:function(t){nt(e,t)}}}function qt(t){var e,n;return e=new zt({props:{className:t[4]+"-icon"}}),{c:function(){tt(e.$$.fragment)},m:function(t,r){et(e,t,r),n=!0},p:v,i:function(t){n||(Q(e.$$.fragment,t),n=!0)},o:function(t){X(e.$$.fragment,t),n=!1},d:function(t){nt(e,t)}}}function Jt(t){var e,n;return e=new It({props:{className:t[4]+"-icon"}}),{c:function(){tt(e.$$.fragment)},m:function(t,r){et(e,t,r),n=!0},p:v,i:function(t){n||(Q(e.$$.fragment,t),n=!0)},o:function(t){X(e.$$.fragment,t),n=!1},d:function(t){nt(e,t)}}}function Vt(t){var e,n,r,o,i,c,a,u=[Jt,qt,Yt],l=[];function s(t,e){return"success"===t[1]?0:"fail"===t[1]?1:"exception"===t[1]?2:-1}return~(n=s(t))&&(r=l[n]=u[n](t)),{c:function(){e=E("div"),r&&r.c(),o=T(),i=E("span"),c=_(t[0]),R(i,"class",t[4]+"-text svelte-13dnj4p"),R(e,"class",O(t[4])+" svelte-13dnj4p")},m:function(t,r){P(t,e,r),~n&&l[n].m(e,null),S(e,o),S(e,i),S(i,c),a=!0},p:function(t,i){var f=n;(n=s(t))===f?~n&&l[n].p(t,i):(r&&(V={r:0,c:[],p:V},X(l[f],1,1,function(){l[f]=null}),V.r||g(V.c),V=V.p),~n?((r=l[n])?r.p(t,i):(r=l[n]=u[n](t)).c(),Q(r,1),r.m(e,o)):r=null),(!a||1&i)&&B(c,t[0])},i:function(t){a||(Q(r),a=!0)},o:function(t){X(r),a=!1},d:function(t){t&&C(e),~n&&l[n].d()}}}function Zt(t){var e,n;return e=new wt({props:{duration:t[2],afterClose:t[3],$$slots:{default:[Vt]},$$scope:{ctx:t}}}),{c:function(){tt(e.$$.fragment)},m:function(t,r){et(e,t,r),n=!0},p:function(t,n){var r=y(n,1)[0],o={};4&r&&(o.duration=t[2]),8&r&&(o.afterClose=t[3]),35&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i:function(t){n||(Q(e.$$.fragment,t),n=!0)},o:function(t){X(e.$$.fragment,t),n=!1},d:function(t){nt(e,t)}}}function Qt(t,e,n){var r,o=e.content,i=e.type,c=e.duration,a=e.onClose,u=ft("toast");return r=function(){_t.addListener(Nt.ToastHide,a)},F().$$.on_mount.push(r),F().$$.on_destroy.push(function(){_t.removeListener(Nt.ToastHide,a)}),t.$$set=function(t){"content"in t&&n(0,o=t.content),"type"in t&&n(1,i=t.type),"duration"in t&&n(2,c=t.duration),"onClose"in t&&n(3,a=t.onClose)},[o,i,c,a,u]}const Xt=function(t){u(a,t);var e,n,r=(e=a,n=Gt(),function(){var t,r=f(e);if(n){var o=f(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return s(this,t)});function a(t){var e;return i(this,a),rt(c(e=r.call(this)),t,Qt,Zt,w,{content:0,type:1,duration:2,onClose:3},Wt),e}return o(a)}(ot);function te(t){return function(t){var e=t||{},n=e.content,r=e.type,o=e.duration,i=void 0===o?2e3:o,c=e.success,a=e.complete;if(n){var u=document.createElement("div");document.body.appendChild(u);var l=new Xt({target:u,props:{content:n,type:r,duration:i,onClose:function(){var t;null==c||c(),null==a||a(),l.$destroy(),null===(t=u.parentNode)||void 0===t||t.removeChild(u)}}})}}(t)}var ee=["scopes"];const ne=function(t){var e=t||{},n=e.scopes,r=(Pt(e,ee),function(t){return new Promise(function(e,n){var r,o,i,c,a,u,l="handleCPAuthCodeCallback_cb_"+Date.now()+"_"+Math.random().toString(36).slice(2,8);if(window[l]=function(t,r,o,i){delete window[l],t?e({authCode:t,grantedScopes:r}):(i.includes("The lp_cust_no field is required")&&te({type:"fail",content:"There is an error accessing A+ Travel Treat now. Please ensure you have Liquid Account.",duration:5e3}),n({errorCode:o,errorMsg:i}))},null!==(r=window)&&void 0!==r&&r.AlipayPlusRewardsBridge&&null!==(o=window)&&void 0!==o&&null!==(i=o.AlipayPlusRewardsBridge)&&void 0!==i&&i.getAuthCode)AlipayPlusRewardsBridge.getAuthCode(t,l);else if(null!==(c=window)&&void 0!==c&&c.webkit&&null!==(a=window)&&void 0!==a&&null!==(u=a.webkit)&&void 0!==u&&u.messageHandlers.AlipayPlusRewardsBridge){var s,f;null===(s=window)||void 0===s||null===(f=s.webkit)||void 0===f||f.messageHandlers.AlipayPlusRewardsBridge.postMessage({action:"getAuthCode",scopes:t,callback:l})}else n({errorCode:"NO_BRIDGE",errorMsg:"Bridge not found"})})});return r(n)};function re(t){setTimeout(t,0)}var oe;function ie(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ce(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ie(Object(n),!0).forEach(function(e){it(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ae(t,e,n,r,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,o)}function ue(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function c(t){ae(i,r,o,c,a,"next",t)}function a(t){ae(i,r,o,c,a,"throw",t)}c(void 0)})}}var le=n(6579),se=["success","fail"];function fe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function de(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fe(Object(n),!0).forEach(function(e){it(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function pe(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof a?r:a,l=Object.create(u.prototype);return ye(l,"_invoke",function(n,r,o){var i,a,u,l=0,s=o||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return i=e,a=0,u=t,d.n=n,c}};function p(n,r){for(a=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,i=s[e],p=d.p,y=i[2];n>3?(o=y===r)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=n<2&&p<i[1])?(a=0,d.v=r,d.n=i[1]):p<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,d.n=y,a=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,y),a=s,u=y;(e=a<2?t:u)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,u)):d.n=u:d.v=u);try{if(l=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==c)break}catch(e){i=t,a=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var c={};function a(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(ye(e={},r,function(){return this}),e),f=l.prototype=a.prototype=Object.create(s);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,ye(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,ye(f,"constructor",l),ye(l,"constructor",u),u.displayName="GeneratorFunction",ye(l,o,"GeneratorFunction"),ye(f),ye(f,o,"Generator"),ye(f,r,function(){return this}),ye(f,"toString",function(){return"[object Generator]"}),(pe=function(){return{w:i,m:d}})()}function ye(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}ye=function(t,e,n,r){function i(e,n){ye(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},ye(t,e,n,r)}const ve={getSystemInfoSync:function(e){return t("getSystemInfoSync",e,{type:"sync"})},redirectTo:function(e){return t("redirectTo",e,{type:"async"})},alert:function(t){return function(t){var e=t||{},n=e.title,r=e.content,o=e.buttonText,i=e.success,c=e.complete,a=document.createElement("div");document.body.appendChild(a);var u=new kt({target:a,props:{title:n,content:r,buttonText:o,onClose:function(){var t;null==i||i(),null==c||c(),u.$destroy(),null===(t=a.parentNode)||void 0===t||t.removeChild(a)}}})}(t)},getAuthCode:ne,getLocation:function(t){return function(t){var e=function(e){re(function(){var n,r,o={error:e};null===(n=t.fail)||void 0===n||n.call(t,o),null===(r=t.complete)||void 0===r||r.call(t,o)})},n=navigator.geolocation;n?n.getCurrentPosition(function(e){var n,r,o,i,c,a,u={accuracy:"".concat(null===(n=e.coords)||void 0===n?void 0:n.accuracy),horizontalAccuracy:"".concat(null===(r=e.coords)||void 0===r?void 0:r.altitudeAccuracy),latitude:"".concat(null===(o=e.coords)||void 0===o?void 0:o.latitude),longitude:"".concat(null===(i=e.coords)||void 0===i?void 0:i.longitude)};null===(c=t.success)||void 0===c||c.call(t,u),null===(a=t.complete)||void 0===a||a.call(t,u)},function(t){var n=1===t.code?11:13;e(n)},{timeout:1e4,maximumAge:t.cacheTimeout||3e4}):e(13)}(t)},getStorage:function(t){var e=t.key,n=t.success,r=t.fail,o=t.complete;try{var i=localStorage.getItem(e);null==n||n(i?JSON.parse(i):{data:null})}catch(t){null==r||r(t)}null==o||o()},getStorageSync:function(t){var e=t.key;try{var n=localStorage.getItem(e);return n?JSON.parse(n):{data:null}}catch(t){return console.error(t),{data:null}}},getSystemInfo:function(t){var e,n,r,o,i=(e=navigator.userAgent,n=/Android\s+([\d.]+)/.exec(e),r=/iPhone\sOS\s+([\d_]+)/.exec(e),o=/(Kaspi-(Android|iOS)\/([\d.]+))/.exec(e),{system:n?n[1]:r?r[1].replace("_","."):void 0,version:o?o[3]:void 0});return function(t){re(function(){try{var e;null===(e=t.success)||void 0===e||e.call(t,(oe||(o=Math.ceil(375/window.screen.width*window.screen.height),oe={platform:/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"iOS":/(Android)/i.test(navigator.userAgent)?"Android":"UNKNOWN",pixelRatio:window.devicePixelRatio,windowWidth:375,windowHeight:o-0-0,titleBarHeight:0,statusBarHeight:0,screenWidth:375,screenHeight:o,currentBattery:"100%",brand:"UNKNOWN",model:"UNKNOWN",system:"UNKNOWN",version:"UNKNOWN",storage:"",app:"h5",fontSizeSetting:16,language:navigator.language}),oe))}catch(e){var n;null===(n=t.fail)||void 0===n||n.call(t)}finally{var r;null===(r=t.complete)||void 0===r||r.call(t)}var o})}(ce(ce({},t),{},{success:function(e){var n,r=ce(ce({},e),{},{system:i.system,version:i.version});null===(n=t.success)||void 0===n||n.call(t,r)}}))},navigateTo:function(t){return function(t){var e=t.success,n=(t.fail,t.complete);window.location.href=t.url,null==e||e(),null==n||n()}(t)},removeStorage:function(t){var e=t||{},n=e.success,r=e.fail,o=e.complete;try{localStorage.removeItem(t.key||""),null==n||n()}catch(t){null==r||r(t)}null==o||o()},request:function(t){var e=t.success,n=t.fail;if(Pt(t,se)){var r=function(){var e=ue(pe().m(function e(n){return pe().w(function(e){for(;;)switch(e.p=e.n){case 0:if("text"!==t.dataType){e.n=2;break}return e.n=1,n.text();case 1:case 3:return e.a(2,e.v);case 2:return e.p=2,e.n=3,n.json();case 4:return e.p=4,e.v,e.a(2,{})}},e,null,[[2,4]])}));return function(t){return e.apply(this,arguments)}}(),o=t.method||"GET",i={method:o,mode:"cors",cache:"no-cache",credentials:"include",referrerPolicy:"no-referrer",headers:de(de({},t.headers),{},{Accept:"text"===t.dataType?"text/plain":"application/json"})},c=t.url;if("GET"===o){if(t.data){var a="string"==typeof t.data?t.data:(0,le.Pz)(t.data);-1!==c.indexOf("?")?c+=a:c=c+"?"+a}}else i.body="string"==typeof t.data?t.data:JSON.stringify(t.data);fetch(c,i).then(function(){var t=ue(pe().m(function t(n){var o,i,c,a;return pe().w(function(t){for(;;)switch(t.n){case 0:if(o={},n.headers.forEach(function(t,e){o[e.toLocaleLowerCase()]=t}),null!=e){t.n=1;break}t.n=3;break;case 1:return i=e,c=n.status,t.n=2,r(n);case 2:a=t.v,i({status:c,data:a,headers:o});case 3:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()).catch(function(t){null==n||n({error:19,errorMessage:"HTTP error."+(null==t?void 0:t.message)})})}else null==n||n({error:-103,errorMessage:"[request]: Wrong Param"})},setClipboard:function(t){return function(t){var e,n;if(!t.text)return null===(e=t.fail)||void 0===e||e.call(t),void(null===(n=t.complete)||void 0===n||n.call(t,{success:!1}));var r,o,i,c,a=document.createElement("input");a.style.position="fixed",a.style.opacity="0",a.style.zIndex="-1000",document.body.appendChild(a),a.setAttribute("readonly","readonly"),a.setAttribute("value",t.text),a.setSelectionRange(0,t.text.length),a.focus(),a.select(),document.execCommand("copy")?(null===(r=t.success)||void 0===r||r.call(t,{success:!0}),null===(o=t.complete)||void 0===o||o.call(t,{success:!0})):(null===(i=t.fail)||void 0===i||i.call(t),null===(c=t.complete)||void 0===c||c.call(t,{success:!1})),document.body.removeChild(a)}(t)},setStorage:function(t){var e=t.key,n=t.data,r=t.success,o=t.fail,i=t.complete;try{localStorage.setItem(e,JSON.stringify({data:n})),null==r||r()}catch(t){null==o||o(t)}null==i||i()},showToast:te}})(),r.default})());
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"hylid-bridge","version":"6.0.0","main":"lib/index.js","description":"Unite Api For MiniProgram Project","files":["lib","canIUse.json","api.config.json"],"keywords":["miniprogram"],"exports":{".":"./lib/index.js","./dsl":"./lib/dsl.js","./mp/alipay":"./lib/clients/mp/alipay/index.js","./mp/alipayhk":"./lib/clients/mp/alipayhk/index.js","./mp/chope":"./lib/clients/mp/chope/index.js","./mp/dana":"./lib/clients/mp/dana/index.js","./mp/demo":"./lib/clients/mp/demo/index.js","./mp/gcash":"./lib/clients/mp/gcash/index.js","./mp/tngd":"./lib/clients/mp/tngd/index.js","./mp/truemoney":"./lib/clients/mp/truemoney/index.js","./mp/wechat":"./lib/clients/mp/wechat/index.js","./mp_web/alipay":"./lib/clients/mp_web/alipay/index.js","./mp_web/alipayhk":"./lib/clients/mp_web/alipayhk/index.js","./mp_web/chope":"./lib/clients/mp_web/chope/index.js","./mp_web/dana":"./lib/clients/mp_web/dana/index.js","./mp_web/demo":"./lib/clients/mp_web/demo/index.js","./mp_web/gcash":"./lib/clients/mp_web/gcash/index.js","./mp_web/tngd":"./lib/clients/mp_web/tngd/index.js","./mp_web/truemoney":"./lib/clients/mp_web/truemoney/index.js","./web/alipay":"./lib/clients/web/alipay/index.js","./web/demo":"./lib/clients/web/demo/index.js","./web/h5":"./lib/clients/web/h5/index.js","./web/tngdh5ng":"./lib/clients/web/tngdh5ng/index.js","./package.json":"./package.json","./canIUse.json":"./canIUse.json","./babel-compact":{"import":"./lib/babel-compact.js","types":"./lib/index.d.ts"},"./direct-mp":"./lib/clients/mp/demo/index.js","./direct-mp_web":"./lib/clients/mp_web/demo/index.js","./direct-web":"./lib/clients/web/demo/index.js","./custom-jsapi":"./lib/custom-jsapi.js","./lib/*":"./lib/*","./mp_web/mpay":"./lib/clients/mp_web/mpay/index.js","./mp_web/toss":"./lib/clients/mp_web/toss/index.js","./mp_web/zalopay":"./lib/clients/mp_web/zalopay/index.js","./mp_web/tinaba":"./lib/clients/mp_web/tinaba/index.js","./mp_web/kakaopay":"./lib/clients/mp_web/kakaopay/index.js","./mp_web/hipay":"./lib/clients/mp_web/hipay/index.js","./mp_web/scb_planetplus":"./lib/clients/mp_web/scb_planetplus/index.js","./mp/tmn":"./lib/clients/mp/tmn/index.js","./mp_web/tmn":"./lib/clients/mp_web/tmn/index.js","./web/alipayhk":"./lib/clients/web/alipayhk/index.js","./web/changipay":"./lib/clients/web/changipay/index.js","./web/kaspi":"./lib/clients/web/kaspi/index.js"},"license":"MIT","dependencies":{"@babel/runtime":"7.18.9","@goldfishjs/utils":"^2.18.0","@hylid/call":"6.0.0","@hylid/custom-jsapi":"6.0.0","@hylid/env":"6.0.0","@hylid/types":"6.0.0","@types/miniprogram":"^1.0.3","miniapp-web-jsapi":"^4.0.33","qs-es5":"^6.8.4","url-parse":"^1.5.10"},"devDependencies":{"@types/url-parse":"^1.4.11"},"sideEffects":false,"registry":"https://registry.npmjs.org/","typesVersions":{"*":{".":["./lib/index.d.ts"],"dsl":["./lib/dsl.d.ts"],"mp/alipay":["./lib/clients/mp/alipay/index.d.ts"],"mp/alipayhk":["./lib/clients/mp/alipayhk/index.d.ts"],"mp/chope":["./lib/clients/mp/chope/index.d.ts"],"mp/dana":["./lib/clients/mp/dana/index.d.ts"],"mp/demo":["./lib/clients/mp/demo/index.d.ts"],"mp/gcash":["./lib/clients/mp/gcash/index.d.ts"],"mp/tngd":["./lib/clients/mp/tngd/index.d.ts"],"mp/truemoney":["./lib/clients/mp/truemoney/index.d.ts"],"mp/wechat":["./lib/clients/mp/wechat/index.d.ts"],"mp_web/alipay":["./lib/clients/mp_web/alipay/index.d.ts"],"mp_web/alipayhk":["./lib/clients/mp_web/alipayhk/index.d.ts"],"mp_web/chope":["./lib/clients/mp_web/chope/index.d.ts"],"mp_web/dana":["./lib/clients/mp_web/dana/index.d.ts"],"mp_web/demo":["./lib/clients/mp_web/demo/index.d.ts"],"mp_web/gcash":["./lib/clients/mp_web/gcash/index.d.ts"],"mp_web/tngd":["./lib/clients/mp_web/tngd/index.d.ts"],"mp_web/truemoney":["./lib/clients/mp_web/truemoney/index.d.ts"],"web/alipay":["./lib/clients/web/alipay/index.d.ts"],"web/demo":["./lib/clients/web/demo/index.d.ts"],"web/h5":["./lib/clients/web/h5/index.d.ts"],"web/tngdh5ng":["./lib/clients/web/tngdh5ng/index.d.ts"],"babel-compact":["./lib/index.d.ts"],"direct-mp":["./lib/clients/mp/demo/index.d.ts"],"direct-mp_web":["./lib/clients/mp_web/demo/index.d.ts"],"direct-web":["./lib/clients/web/demo/index.d.ts"],"custom-jsapi":["./lib/custom-jsapi.d.ts"],"mp_web/mpay":["./lib/clients/mp_web/mpay/index.d.ts"],"mp_web/toss":["./lib/clients/mp_web/toss/index.d.ts"],"mp_web/zalopay":["./lib/clients/mp_web/zalopay/index.d.ts"],"mp_web/tinaba":["./lib/clients/mp_web/tinaba/index.d.ts"],"mp_web/kakaopay":["./lib/clients/mp_web/kakaopay/index.d.ts"],"mp_web/hipay":["./lib/clients/mp_web/hipay/index.d.ts"],"mp_web/scb_planetplus":["./lib/clients/mp_web/scb_planetplus/index.d.ts"],"mp/tmn":["./lib/clients/mp/tmn/index.d.ts"],"mp_web/tmn":["./lib/clients/mp_web/tmn/index.d.ts"],"web/alipayhk":["./lib/clients/web/alipayhk/index.d.ts"]}},"repository":"git@code.alipay.com:ant-ife/hylid-bridge.git","private":false}
1
+ {"name":"hylid-bridge","version":"6.2.0","main":"lib/index.js","description":"Unite Api For MiniProgram Project","files":["lib","canIUse.json","api.config.json"],"keywords":["miniprogram"],"exports":{".":"./lib/index.js","./dsl":"./lib/dsl.js","./mp/alipay":"./lib/clients/mp/alipay/index.js","./mp/alipayhk":"./lib/clients/mp/alipayhk/index.js","./mp/chope":"./lib/clients/mp/chope/index.js","./mp/dana":"./lib/clients/mp/dana/index.js","./mp/demo":"./lib/clients/mp/demo/index.js","./mp/gcash":"./lib/clients/mp/gcash/index.js","./mp/tngd":"./lib/clients/mp/tngd/index.js","./mp/truemoney":"./lib/clients/mp/truemoney/index.js","./mp/wechat":"./lib/clients/mp/wechat/index.js","./mp_web/alipay":"./lib/clients/mp_web/alipay/index.js","./mp_web/alipayhk":"./lib/clients/mp_web/alipayhk/index.js","./mp_web/chope":"./lib/clients/mp_web/chope/index.js","./mp_web/dana":"./lib/clients/mp_web/dana/index.js","./mp_web/demo":"./lib/clients/mp_web/demo/index.js","./mp_web/gcash":"./lib/clients/mp_web/gcash/index.js","./mp_web/tngd":"./lib/clients/mp_web/tngd/index.js","./mp_web/truemoney":"./lib/clients/mp_web/truemoney/index.js","./web/alipay":"./lib/clients/web/alipay/index.js","./web/demo":"./lib/clients/web/demo/index.js","./web/h5":"./lib/clients/web/h5/index.js","./web/tngdh5ng":"./lib/clients/web/tngdh5ng/index.js","./package.json":"./package.json","./canIUse.json":"./canIUse.json","./babel-compact":{"import":"./lib/babel-compact.js","types":"./lib/index.d.ts"},"./direct-mp":"./lib/clients/mp/demo/index.js","./direct-mp_web":"./lib/clients/mp_web/demo/index.js","./direct-web":"./lib/clients/web/demo/index.js","./custom-jsapi":"./lib/custom-jsapi.js","./lib/*":"./lib/*","./mp_web/mpay":"./lib/clients/mp_web/mpay/index.js","./mp_web/toss":"./lib/clients/mp_web/toss/index.js","./mp_web/zalopay":"./lib/clients/mp_web/zalopay/index.js","./mp_web/tinaba":"./lib/clients/mp_web/tinaba/index.js","./mp_web/kakaopay":"./lib/clients/mp_web/kakaopay/index.js","./mp_web/hipay":"./lib/clients/mp_web/hipay/index.js","./mp_web/scb_planetplus":"./lib/clients/mp_web/scb_planetplus/index.js","./mp/tmn":"./lib/clients/mp/tmn/index.js","./mp_web/tmn":"./lib/clients/mp_web/tmn/index.js","./web/alipayhk":"./lib/clients/web/alipayhk/index.js","./mp_web/kakaopaysandbox":"./lib/clients/mp_web/kakaopaysandbox/index.js","./web/changipay":"./lib/clients/web/changipay/index.js","./web/kaspi":"./lib/clients/web/kaspi/index.js"},"license":"MIT","dependencies":{"@babel/runtime":"7.18.9","@goldfishjs/utils":"^2.18.0","@hylid/call":"6.2.0","@hylid/custom-jsapi":"6.2.0","@hylid/env":"6.2.0","@hylid/types":"6.2.0","@types/miniprogram":"^1.0.3","miniapp-web-jsapi":"^4.0.33","qs-es5":"^6.8.4","url-parse":"^1.5.10"},"devDependencies":{"@types/url-parse":"^1.4.11"},"sideEffects":false,"registry":"https://registry.npmjs.org/","typesVersions":{"*":{".":["./lib/index.d.ts"],"dsl":["./lib/dsl.d.ts"],"mp/alipay":["./lib/clients/mp/alipay/index.d.ts"],"mp/alipayhk":["./lib/clients/mp/alipayhk/index.d.ts"],"mp/chope":["./lib/clients/mp/chope/index.d.ts"],"mp/dana":["./lib/clients/mp/dana/index.d.ts"],"mp/demo":["./lib/clients/mp/demo/index.d.ts"],"mp/gcash":["./lib/clients/mp/gcash/index.d.ts"],"mp/tngd":["./lib/clients/mp/tngd/index.d.ts"],"mp/truemoney":["./lib/clients/mp/truemoney/index.d.ts"],"mp/wechat":["./lib/clients/mp/wechat/index.d.ts"],"mp_web/alipay":["./lib/clients/mp_web/alipay/index.d.ts"],"mp_web/alipayhk":["./lib/clients/mp_web/alipayhk/index.d.ts"],"mp_web/chope":["./lib/clients/mp_web/chope/index.d.ts"],"mp_web/dana":["./lib/clients/mp_web/dana/index.d.ts"],"mp_web/demo":["./lib/clients/mp_web/demo/index.d.ts"],"mp_web/gcash":["./lib/clients/mp_web/gcash/index.d.ts"],"mp_web/tngd":["./lib/clients/mp_web/tngd/index.d.ts"],"mp_web/truemoney":["./lib/clients/mp_web/truemoney/index.d.ts"],"web/alipay":["./lib/clients/web/alipay/index.d.ts"],"web/demo":["./lib/clients/web/demo/index.d.ts"],"web/h5":["./lib/clients/web/h5/index.d.ts"],"web/tngdh5ng":["./lib/clients/web/tngdh5ng/index.d.ts"],"babel-compact":["./lib/index.d.ts"],"direct-mp":["./lib/clients/mp/demo/index.d.ts"],"direct-mp_web":["./lib/clients/mp_web/demo/index.d.ts"],"direct-web":["./lib/clients/web/demo/index.d.ts"],"custom-jsapi":["./lib/custom-jsapi.d.ts"],"mp_web/mpay":["./lib/clients/mp_web/mpay/index.d.ts"],"mp_web/toss":["./lib/clients/mp_web/toss/index.d.ts"],"mp_web/zalopay":["./lib/clients/mp_web/zalopay/index.d.ts"],"mp_web/tinaba":["./lib/clients/mp_web/tinaba/index.d.ts"],"mp_web/kakaopay":["./lib/clients/mp_web/kakaopay/index.d.ts"],"mp_web/hipay":["./lib/clients/mp_web/hipay/index.d.ts"],"mp_web/scb_planetplus":["./lib/clients/mp_web/scb_planetplus/index.d.ts"],"mp/tmn":["./lib/clients/mp/tmn/index.d.ts"],"mp_web/tmn":["./lib/clients/mp_web/tmn/index.d.ts"],"web/alipayhk":["./lib/clients/web/alipayhk/index.d.ts"],"mp_web/kakaopaysandbox":["./lib/clients/mp_web/kakaopaysandbox/index.d.ts"],"web/changipay":["./lib/clients/web/changipay/index.d.ts"],"web/kaspi":["./lib/clients/web/kaspi/index.d.ts"]}},"repository":"git@code.alipay.com:ant-ife/hylid-bridge.git","private":false}