hylid-bridge 4.1.0 → 5.0.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 (1382) hide show
  1. package/README.md +495 -495
  2. package/lib/bridges.d.ts +260 -260
  3. package/lib/bridges.js +969 -260
  4. package/lib/clients/mp_web/hipay/addPhoneContact.d.ts +2 -0
  5. package/lib/clients/mp_web/hipay/addPhoneContact.js +3 -0
  6. package/lib/clients/mp_web/hipay/alert.d.ts +2 -0
  7. package/lib/clients/mp_web/hipay/alert.js +3 -0
  8. package/lib/clients/mp_web/hipay/chooseFileFromDisk.d.ts +2 -0
  9. package/lib/clients/mp_web/hipay/chooseFileFromDisk.js +3 -0
  10. package/lib/clients/mp_web/hipay/chooseImage.d.ts +2 -0
  11. package/lib/clients/mp_web/hipay/chooseImage.js +3 -0
  12. package/lib/clients/mp_web/hipay/choosePhoneContact.d.ts +2 -0
  13. package/lib/clients/mp_web/hipay/choosePhoneContact.js +3 -0
  14. package/lib/clients/mp_web/hipay/chooseVideo.d.ts +2 -0
  15. package/lib/clients/mp_web/hipay/chooseVideo.js +3 -0
  16. package/lib/clients/mp_web/hipay/clearStorage.d.ts +2 -0
  17. package/lib/clients/mp_web/hipay/clearStorage.js +3 -0
  18. package/lib/clients/mp_web/hipay/closeBluetoothAdapter.d.ts +2 -0
  19. package/lib/clients/mp_web/hipay/closeBluetoothAdapter.js +3 -0
  20. package/lib/clients/mp_web/hipay/closeSocket.d.ts +2 -0
  21. package/lib/clients/mp_web/hipay/closeSocket.js +3 -0
  22. package/lib/clients/mp_web/hipay/compressImage.d.ts +2 -0
  23. package/lib/clients/mp_web/hipay/compressImage.js +3 -0
  24. package/lib/clients/mp_web/hipay/confirm.d.ts +2 -0
  25. package/lib/clients/mp_web/hipay/confirm.js +3 -0
  26. package/lib/clients/mp_web/hipay/connectBLEDevice.d.ts +2 -0
  27. package/lib/clients/mp_web/hipay/connectBLEDevice.js +3 -0
  28. package/lib/clients/mp_web/hipay/connectSocket.d.ts +2 -0
  29. package/lib/clients/mp_web/hipay/connectSocket.js +3 -0
  30. package/lib/clients/mp_web/hipay/datePicker.d.ts +2 -0
  31. package/lib/clients/mp_web/hipay/datePicker.js +3 -0
  32. package/lib/clients/mp_web/hipay/disconnectBLEDevice.d.ts +2 -0
  33. package/lib/clients/mp_web/hipay/disconnectBLEDevice.js +3 -0
  34. package/lib/clients/mp_web/hipay/downloadFile.d.ts +2 -0
  35. package/lib/clients/mp_web/hipay/downloadFile.js +3 -0
  36. package/lib/clients/mp_web/hipay/exitApp.d.ts +2 -0
  37. package/lib/clients/mp_web/hipay/exitApp.js +3 -0
  38. package/lib/clients/mp_web/hipay/getAppId.d.ts +2 -0
  39. package/lib/clients/mp_web/hipay/getAppId.js +3 -0
  40. package/lib/clients/mp_web/hipay/getAppToken.d.ts +2 -0
  41. package/lib/clients/mp_web/hipay/getAppToken.js +3 -0
  42. package/lib/clients/mp_web/hipay/getAuthCode.d.ts +2 -0
  43. package/lib/clients/mp_web/hipay/getAuthCode.js +3 -0
  44. package/lib/clients/mp_web/hipay/getBLEDeviceCharacteristics.d.ts +2 -0
  45. package/lib/clients/mp_web/hipay/getBLEDeviceCharacteristics.js +3 -0
  46. package/lib/clients/mp_web/hipay/getBLEDeviceServices.d.ts +2 -0
  47. package/lib/clients/mp_web/hipay/getBLEDeviceServices.js +3 -0
  48. package/lib/clients/mp_web/hipay/getBackgroundFetchData.d.ts +2 -0
  49. package/lib/clients/mp_web/hipay/getBackgroundFetchData.js +3 -0
  50. package/lib/clients/mp_web/hipay/getBatteryInfo.d.ts +2 -0
  51. package/lib/clients/mp_web/hipay/getBatteryInfo.js +3 -0
  52. package/lib/clients/mp_web/hipay/getBluetoothAdapterState.d.ts +2 -0
  53. package/lib/clients/mp_web/hipay/getBluetoothAdapterState.js +3 -0
  54. package/lib/clients/mp_web/hipay/getBluetoothDevices.d.ts +2 -0
  55. package/lib/clients/mp_web/hipay/getBluetoothDevices.js +3 -0
  56. package/lib/clients/mp_web/hipay/getClipboard.d.ts +2 -0
  57. package/lib/clients/mp_web/hipay/getClipboard.js +3 -0
  58. package/lib/clients/mp_web/hipay/getConnectedBluetoothDevices.d.ts +2 -0
  59. package/lib/clients/mp_web/hipay/getConnectedBluetoothDevices.js +3 -0
  60. package/lib/clients/mp_web/hipay/getCurrentPages.d.ts +2 -0
  61. package/lib/clients/mp_web/hipay/getCurrentPages.js +3 -0
  62. package/lib/clients/mp_web/hipay/getEnterOptionsSync.d.ts +2 -0
  63. package/lib/clients/mp_web/hipay/getEnterOptionsSync.js +3 -0
  64. package/lib/clients/mp_web/hipay/getFileInfo.d.ts +2 -0
  65. package/lib/clients/mp_web/hipay/getFileInfo.js +3 -0
  66. package/lib/clients/mp_web/hipay/getImageInfo.d.ts +2 -0
  67. package/lib/clients/mp_web/hipay/getImageInfo.js +3 -0
  68. package/lib/clients/mp_web/hipay/getLocation.d.ts +2 -0
  69. package/lib/clients/mp_web/hipay/getLocation.js +3 -0
  70. package/lib/clients/mp_web/hipay/getNetworkType.d.ts +2 -0
  71. package/lib/clients/mp_web/hipay/getNetworkType.js +3 -0
  72. package/lib/clients/mp_web/hipay/getOpenUserInfo.d.ts +2 -0
  73. package/lib/clients/mp_web/hipay/getOpenUserInfo.js +3 -0
  74. package/lib/clients/mp_web/hipay/getRunScene.d.ts +2 -0
  75. package/lib/clients/mp_web/hipay/getRunScene.js +3 -0
  76. package/lib/clients/mp_web/hipay/getSDKVersion.d.ts +2 -0
  77. package/lib/clients/mp_web/hipay/getSDKVersion.js +3 -0
  78. package/lib/clients/mp_web/hipay/getSavedFileInfo.d.ts +2 -0
  79. package/lib/clients/mp_web/hipay/getSavedFileInfo.js +3 -0
  80. package/lib/clients/mp_web/hipay/getSavedFileList.d.ts +2 -0
  81. package/lib/clients/mp_web/hipay/getSavedFileList.js +3 -0
  82. package/lib/clients/mp_web/hipay/getScreenBrightness.d.ts +2 -0
  83. package/lib/clients/mp_web/hipay/getScreenBrightness.js +3 -0
  84. package/lib/clients/mp_web/hipay/getServerTime.d.ts +2 -0
  85. package/lib/clients/mp_web/hipay/getServerTime.js +3 -0
  86. package/lib/clients/mp_web/hipay/getSetting.d.ts +2 -0
  87. package/lib/clients/mp_web/hipay/getSetting.js +3 -0
  88. package/lib/clients/mp_web/hipay/getSiteInfo.d.ts +2 -0
  89. package/lib/clients/mp_web/hipay/getSiteInfo.js +3 -0
  90. package/lib/clients/mp_web/hipay/getStorage.d.ts +2 -0
  91. package/lib/clients/mp_web/hipay/getStorage.js +3 -0
  92. package/lib/clients/mp_web/hipay/getSystemInfo.d.ts +2 -0
  93. package/lib/clients/mp_web/hipay/getSystemInfo.js +3 -0
  94. package/lib/clients/mp_web/hipay/hideBackHome.d.ts +2 -0
  95. package/lib/clients/mp_web/hipay/hideBackHome.js +3 -0
  96. package/lib/clients/mp_web/hipay/hideKeyboard.d.ts +2 -0
  97. package/lib/clients/mp_web/hipay/hideKeyboard.js +3 -0
  98. package/lib/clients/mp_web/hipay/hideLoading.d.ts +2 -0
  99. package/lib/clients/mp_web/hipay/hideLoading.js +3 -0
  100. package/lib/clients/mp_web/hipay/hideNavigationBarLoading.d.ts +2 -0
  101. package/lib/clients/mp_web/hipay/hideNavigationBarLoading.js +3 -0
  102. package/lib/clients/mp_web/hipay/hideTabBar.d.ts +2 -0
  103. package/lib/clients/mp_web/hipay/hideTabBar.js +3 -0
  104. package/lib/clients/mp_web/hipay/hideToast.d.ts +2 -0
  105. package/lib/clients/mp_web/hipay/hideToast.js +3 -0
  106. package/lib/clients/mp_web/hipay/index.d.ts +451 -0
  107. package/lib/clients/mp_web/hipay/index.js +261 -0
  108. package/lib/clients/mp_web/hipay/makePhoneCall.d.ts +2 -0
  109. package/lib/clients/mp_web/hipay/makePhoneCall.js +3 -0
  110. package/lib/clients/mp_web/hipay/multiLevelSelect.d.ts +2 -0
  111. package/lib/clients/mp_web/hipay/multiLevelSelect.js +3 -0
  112. package/lib/clients/mp_web/hipay/navigateBack.d.ts +2 -0
  113. package/lib/clients/mp_web/hipay/navigateBack.js +3 -0
  114. package/lib/clients/mp_web/hipay/navigateBackMiniProgram.d.ts +2 -0
  115. package/lib/clients/mp_web/hipay/navigateBackMiniProgram.js +3 -0
  116. package/lib/clients/mp_web/hipay/navigateTo.d.ts +2 -0
  117. package/lib/clients/mp_web/hipay/navigateTo.js +3 -0
  118. package/lib/clients/mp_web/hipay/navigateToBizScene.d.ts +2 -0
  119. package/lib/clients/mp_web/hipay/navigateToBizScene.js +3 -0
  120. package/lib/clients/mp_web/hipay/navigateToMiniProgram.d.ts +2 -0
  121. package/lib/clients/mp_web/hipay/navigateToMiniProgram.js +3 -0
  122. package/lib/clients/mp_web/hipay/notifyBLECharacteristicValueChange.d.ts +2 -0
  123. package/lib/clients/mp_web/hipay/notifyBLECharacteristicValueChange.js +3 -0
  124. package/lib/clients/mp_web/hipay/offAccelerometerChange.d.ts +2 -0
  125. package/lib/clients/mp_web/hipay/offAccelerometerChange.js +3 -0
  126. package/lib/clients/mp_web/hipay/offBLECharacteristicValueChange.d.ts +2 -0
  127. package/lib/clients/mp_web/hipay/offBLECharacteristicValueChange.js +3 -0
  128. package/lib/clients/mp_web/hipay/offBLEConnectionStateChanged.d.ts +2 -0
  129. package/lib/clients/mp_web/hipay/offBLEConnectionStateChanged.js +3 -0
  130. package/lib/clients/mp_web/hipay/offBluetoothAdapterStateChange.d.ts +2 -0
  131. package/lib/clients/mp_web/hipay/offBluetoothAdapterStateChange.js +3 -0
  132. package/lib/clients/mp_web/hipay/offBluetoothDeviceFound.d.ts +2 -0
  133. package/lib/clients/mp_web/hipay/offBluetoothDeviceFound.js +3 -0
  134. package/lib/clients/mp_web/hipay/offCompassChange.d.ts +2 -0
  135. package/lib/clients/mp_web/hipay/offCompassChange.js +3 -0
  136. package/lib/clients/mp_web/hipay/offMemoryWarning.d.ts +2 -0
  137. package/lib/clients/mp_web/hipay/offMemoryWarning.js +3 -0
  138. package/lib/clients/mp_web/hipay/offSocketClose.d.ts +2 -0
  139. package/lib/clients/mp_web/hipay/offSocketClose.js +3 -0
  140. package/lib/clients/mp_web/hipay/offSocketError.d.ts +2 -0
  141. package/lib/clients/mp_web/hipay/offSocketError.js +3 -0
  142. package/lib/clients/mp_web/hipay/offSocketMessage.d.ts +2 -0
  143. package/lib/clients/mp_web/hipay/offSocketMessage.js +3 -0
  144. package/lib/clients/mp_web/hipay/offSocketOpen.d.ts +2 -0
  145. package/lib/clients/mp_web/hipay/offSocketOpen.js +3 -0
  146. package/lib/clients/mp_web/hipay/offUserCaptureScreen.d.ts +2 -0
  147. package/lib/clients/mp_web/hipay/offUserCaptureScreen.js +3 -0
  148. package/lib/clients/mp_web/hipay/onAccelerometerChange.d.ts +2 -0
  149. package/lib/clients/mp_web/hipay/onAccelerometerChange.js +3 -0
  150. package/lib/clients/mp_web/hipay/onBLECharacteristicValueChange.d.ts +2 -0
  151. package/lib/clients/mp_web/hipay/onBLECharacteristicValueChange.js +3 -0
  152. package/lib/clients/mp_web/hipay/onBLEConnectionStateChanged.d.ts +2 -0
  153. package/lib/clients/mp_web/hipay/onBLEConnectionStateChanged.js +3 -0
  154. package/lib/clients/mp_web/hipay/onBluetoothAdapterStateChange.d.ts +2 -0
  155. package/lib/clients/mp_web/hipay/onBluetoothAdapterStateChange.js +3 -0
  156. package/lib/clients/mp_web/hipay/onBluetoothDeviceFound.d.ts +2 -0
  157. package/lib/clients/mp_web/hipay/onBluetoothDeviceFound.js +3 -0
  158. package/lib/clients/mp_web/hipay/onCompassChange.d.ts +2 -0
  159. package/lib/clients/mp_web/hipay/onCompassChange.js +3 -0
  160. package/lib/clients/mp_web/hipay/onMemoryWarning.d.ts +2 -0
  161. package/lib/clients/mp_web/hipay/onMemoryWarning.js +3 -0
  162. package/lib/clients/mp_web/hipay/onSocketClose.d.ts +2 -0
  163. package/lib/clients/mp_web/hipay/onSocketClose.js +3 -0
  164. package/lib/clients/mp_web/hipay/onSocketError.d.ts +2 -0
  165. package/lib/clients/mp_web/hipay/onSocketError.js +3 -0
  166. package/lib/clients/mp_web/hipay/onSocketMessage.d.ts +2 -0
  167. package/lib/clients/mp_web/hipay/onSocketMessage.js +3 -0
  168. package/lib/clients/mp_web/hipay/onSocketOpen.d.ts +2 -0
  169. package/lib/clients/mp_web/hipay/onSocketOpen.js +3 -0
  170. package/lib/clients/mp_web/hipay/onUserCaptureScreen.d.ts +2 -0
  171. package/lib/clients/mp_web/hipay/onUserCaptureScreen.js +3 -0
  172. package/lib/clients/mp_web/hipay/openBluetoothAdapter.d.ts +2 -0
  173. package/lib/clients/mp_web/hipay/openBluetoothAdapter.js +3 -0
  174. package/lib/clients/mp_web/hipay/openDocument.d.ts +2 -0
  175. package/lib/clients/mp_web/hipay/openDocument.js +3 -0
  176. package/lib/clients/mp_web/hipay/openSetting.d.ts +2 -0
  177. package/lib/clients/mp_web/hipay/openSetting.js +3 -0
  178. package/lib/clients/mp_web/hipay/pageScrollTo.d.ts +2 -0
  179. package/lib/clients/mp_web/hipay/pageScrollTo.js +3 -0
  180. package/lib/clients/mp_web/hipay/previewImage.d.ts +2 -0
  181. package/lib/clients/mp_web/hipay/previewImage.js +3 -0
  182. package/lib/clients/mp_web/hipay/prompt.d.ts +2 -0
  183. package/lib/clients/mp_web/hipay/prompt.js +3 -0
  184. package/lib/clients/mp_web/hipay/reLaunch.d.ts +2 -0
  185. package/lib/clients/mp_web/hipay/reLaunch.js +3 -0
  186. package/lib/clients/mp_web/hipay/readBLECharacteristicValue.d.ts +2 -0
  187. package/lib/clients/mp_web/hipay/readBLECharacteristicValue.js +3 -0
  188. package/lib/clients/mp_web/hipay/redirectTo.d.ts +2 -0
  189. package/lib/clients/mp_web/hipay/redirectTo.js +3 -0
  190. package/lib/clients/mp_web/hipay/removeSavedFile.d.ts +2 -0
  191. package/lib/clients/mp_web/hipay/removeSavedFile.js +3 -0
  192. package/lib/clients/mp_web/hipay/removeStorage.d.ts +2 -0
  193. package/lib/clients/mp_web/hipay/removeStorage.js +3 -0
  194. package/lib/clients/mp_web/hipay/request.d.ts +2 -0
  195. package/lib/clients/mp_web/hipay/request.js +3 -0
  196. package/lib/clients/mp_web/hipay/rpc.d.ts +2 -0
  197. package/lib/clients/mp_web/hipay/rpc.js +3 -0
  198. package/lib/clients/mp_web/hipay/saveFile.d.ts +2 -0
  199. package/lib/clients/mp_web/hipay/saveFile.js +3 -0
  200. package/lib/clients/mp_web/hipay/saveImage.d.ts +2 -0
  201. package/lib/clients/mp_web/hipay/saveImage.js +3 -0
  202. package/lib/clients/mp_web/hipay/scan.d.ts +2 -0
  203. package/lib/clients/mp_web/hipay/scan.js +3 -0
  204. package/lib/clients/mp_web/hipay/sendSocketMessage.d.ts +2 -0
  205. package/lib/clients/mp_web/hipay/sendSocketMessage.js +3 -0
  206. package/lib/clients/mp_web/hipay/setBackgroundColor.d.ts +2 -0
  207. package/lib/clients/mp_web/hipay/setBackgroundColor.js +3 -0
  208. package/lib/clients/mp_web/hipay/setCanPullDown.d.ts +2 -0
  209. package/lib/clients/mp_web/hipay/setCanPullDown.js +3 -0
  210. package/lib/clients/mp_web/hipay/setClipboard.d.ts +2 -0
  211. package/lib/clients/mp_web/hipay/setClipboard.js +3 -0
  212. package/lib/clients/mp_web/hipay/setKeepScreenOn.d.ts +2 -0
  213. package/lib/clients/mp_web/hipay/setKeepScreenOn.js +3 -0
  214. package/lib/clients/mp_web/hipay/setNavigationBar.d.ts +2 -0
  215. package/lib/clients/mp_web/hipay/setNavigationBar.js +3 -0
  216. package/lib/clients/mp_web/hipay/setScreenBrightness.d.ts +2 -0
  217. package/lib/clients/mp_web/hipay/setScreenBrightness.js +3 -0
  218. package/lib/clients/mp_web/hipay/setStorage.d.ts +2 -0
  219. package/lib/clients/mp_web/hipay/setStorage.js +3 -0
  220. package/lib/clients/mp_web/hipay/setTabBarItem.d.ts +2 -0
  221. package/lib/clients/mp_web/hipay/setTabBarItem.js +3 -0
  222. package/lib/clients/mp_web/hipay/setTabBarStyle.d.ts +2 -0
  223. package/lib/clients/mp_web/hipay/setTabBarStyle.js +3 -0
  224. package/lib/clients/mp_web/hipay/setTransparentTitle.d.ts +2 -0
  225. package/lib/clients/mp_web/hipay/setTransparentTitle.js +3 -0
  226. package/lib/clients/mp_web/hipay/showActionSheet.d.ts +2 -0
  227. package/lib/clients/mp_web/hipay/showActionSheet.js +3 -0
  228. package/lib/clients/mp_web/hipay/showAuthGuide.d.ts +2 -0
  229. package/lib/clients/mp_web/hipay/showAuthGuide.js +3 -0
  230. package/lib/clients/mp_web/hipay/showLoading.d.ts +2 -0
  231. package/lib/clients/mp_web/hipay/showLoading.js +3 -0
  232. package/lib/clients/mp_web/hipay/showNavigationBarLoading.d.ts +2 -0
  233. package/lib/clients/mp_web/hipay/showNavigationBarLoading.js +3 -0
  234. package/lib/clients/mp_web/hipay/showSharePanel.d.ts +2 -0
  235. package/lib/clients/mp_web/hipay/showSharePanel.js +3 -0
  236. package/lib/clients/mp_web/hipay/showTabBar.d.ts +2 -0
  237. package/lib/clients/mp_web/hipay/showTabBar.js +3 -0
  238. package/lib/clients/mp_web/hipay/showToast.d.ts +2 -0
  239. package/lib/clients/mp_web/hipay/showToast.js +3 -0
  240. package/lib/clients/mp_web/hipay/signContract.d.ts +2 -0
  241. package/lib/clients/mp_web/hipay/signContract.js +3 -0
  242. package/lib/clients/mp_web/hipay/startBluetoothDevicesDiscovery.d.ts +2 -0
  243. package/lib/clients/mp_web/hipay/startBluetoothDevicesDiscovery.js +3 -0
  244. package/lib/clients/mp_web/hipay/startPullDownRefresh.d.ts +2 -0
  245. package/lib/clients/mp_web/hipay/startPullDownRefresh.js +3 -0
  246. package/lib/clients/mp_web/hipay/stopBluetoothDevicesDiscovery.d.ts +2 -0
  247. package/lib/clients/mp_web/hipay/stopBluetoothDevicesDiscovery.js +3 -0
  248. package/lib/clients/mp_web/hipay/stopPullDownRefresh.d.ts +2 -0
  249. package/lib/clients/mp_web/hipay/stopPullDownRefresh.js +3 -0
  250. package/lib/clients/mp_web/hipay/switchTab.d.ts +2 -0
  251. package/lib/clients/mp_web/hipay/switchTab.js +3 -0
  252. package/lib/clients/mp_web/hipay/tradePay.d.ts +2 -0
  253. package/lib/clients/mp_web/hipay/tradePay.js +3 -0
  254. package/lib/clients/mp_web/hipay/uploadFile.d.ts +2 -0
  255. package/lib/clients/mp_web/hipay/uploadFile.js +3 -0
  256. package/lib/clients/mp_web/hipay/vibrate.d.ts +2 -0
  257. package/lib/clients/mp_web/hipay/vibrate.js +3 -0
  258. package/lib/clients/mp_web/hipay/watchShake.d.ts +2 -0
  259. package/lib/clients/mp_web/hipay/watchShake.js +3 -0
  260. package/lib/clients/mp_web/hipay/writeBLECharacteristicValue.d.ts +2 -0
  261. package/lib/clients/mp_web/hipay/writeBLECharacteristicValue.js +3 -0
  262. package/lib/clients/mp_web/kakaopay/addPhoneContact.d.ts +2 -0
  263. package/lib/clients/mp_web/kakaopay/addPhoneContact.js +3 -0
  264. package/lib/clients/mp_web/kakaopay/alert.d.ts +2 -0
  265. package/lib/clients/mp_web/kakaopay/alert.js +3 -0
  266. package/lib/clients/mp_web/kakaopay/chooseFileFromDisk.d.ts +2 -0
  267. package/lib/clients/mp_web/kakaopay/chooseFileFromDisk.js +3 -0
  268. package/lib/clients/mp_web/kakaopay/chooseImage.d.ts +2 -0
  269. package/lib/clients/mp_web/kakaopay/chooseImage.js +3 -0
  270. package/lib/clients/mp_web/kakaopay/choosePhoneContact.d.ts +2 -0
  271. package/lib/clients/mp_web/kakaopay/choosePhoneContact.js +3 -0
  272. package/lib/clients/mp_web/kakaopay/chooseVideo.d.ts +2 -0
  273. package/lib/clients/mp_web/kakaopay/chooseVideo.js +3 -0
  274. package/lib/clients/mp_web/kakaopay/clearStorage.d.ts +2 -0
  275. package/lib/clients/mp_web/kakaopay/clearStorage.js +3 -0
  276. package/lib/clients/mp_web/kakaopay/closeBluetoothAdapter.d.ts +2 -0
  277. package/lib/clients/mp_web/kakaopay/closeBluetoothAdapter.js +3 -0
  278. package/lib/clients/mp_web/kakaopay/closeSocket.d.ts +2 -0
  279. package/lib/clients/mp_web/kakaopay/closeSocket.js +3 -0
  280. package/lib/clients/mp_web/kakaopay/compressImage.d.ts +2 -0
  281. package/lib/clients/mp_web/kakaopay/compressImage.js +3 -0
  282. package/lib/clients/mp_web/kakaopay/confirm.d.ts +2 -0
  283. package/lib/clients/mp_web/kakaopay/confirm.js +3 -0
  284. package/lib/clients/mp_web/kakaopay/connectBLEDevice.d.ts +2 -0
  285. package/lib/clients/mp_web/kakaopay/connectBLEDevice.js +3 -0
  286. package/lib/clients/mp_web/kakaopay/connectSocket.d.ts +2 -0
  287. package/lib/clients/mp_web/kakaopay/connectSocket.js +3 -0
  288. package/lib/clients/mp_web/kakaopay/datePicker.d.ts +2 -0
  289. package/lib/clients/mp_web/kakaopay/datePicker.js +3 -0
  290. package/lib/clients/mp_web/kakaopay/disconnectBLEDevice.d.ts +2 -0
  291. package/lib/clients/mp_web/kakaopay/disconnectBLEDevice.js +3 -0
  292. package/lib/clients/mp_web/kakaopay/downloadFile.d.ts +2 -0
  293. package/lib/clients/mp_web/kakaopay/downloadFile.js +3 -0
  294. package/lib/clients/mp_web/kakaopay/exitApp.d.ts +2 -0
  295. package/lib/clients/mp_web/kakaopay/exitApp.js +3 -0
  296. package/lib/clients/mp_web/kakaopay/getAppId.d.ts +2 -0
  297. package/lib/clients/mp_web/kakaopay/getAppId.js +3 -0
  298. package/lib/clients/mp_web/kakaopay/getAppToken.d.ts +2 -0
  299. package/lib/clients/mp_web/kakaopay/getAppToken.js +3 -0
  300. package/lib/clients/mp_web/kakaopay/getAuthCode.d.ts +2 -0
  301. package/lib/clients/mp_web/kakaopay/getAuthCode.js +3 -0
  302. package/lib/clients/mp_web/kakaopay/getBLEDeviceCharacteristics.d.ts +2 -0
  303. package/lib/clients/mp_web/kakaopay/getBLEDeviceCharacteristics.js +3 -0
  304. package/lib/clients/mp_web/kakaopay/getBLEDeviceServices.d.ts +2 -0
  305. package/lib/clients/mp_web/kakaopay/getBLEDeviceServices.js +3 -0
  306. package/lib/clients/mp_web/kakaopay/getBackgroundFetchData.d.ts +2 -0
  307. package/lib/clients/mp_web/kakaopay/getBackgroundFetchData.js +3 -0
  308. package/lib/clients/mp_web/kakaopay/getBatteryInfo.d.ts +2 -0
  309. package/lib/clients/mp_web/kakaopay/getBatteryInfo.js +3 -0
  310. package/lib/clients/mp_web/kakaopay/getBluetoothAdapterState.d.ts +2 -0
  311. package/lib/clients/mp_web/kakaopay/getBluetoothAdapterState.js +3 -0
  312. package/lib/clients/mp_web/kakaopay/getBluetoothDevices.d.ts +2 -0
  313. package/lib/clients/mp_web/kakaopay/getBluetoothDevices.js +3 -0
  314. package/lib/clients/mp_web/kakaopay/getClipboard.d.ts +2 -0
  315. package/lib/clients/mp_web/kakaopay/getClipboard.js +3 -0
  316. package/lib/clients/mp_web/kakaopay/getConnectedBluetoothDevices.d.ts +2 -0
  317. package/lib/clients/mp_web/kakaopay/getConnectedBluetoothDevices.js +3 -0
  318. package/lib/clients/mp_web/kakaopay/getCurrentPages.d.ts +2 -0
  319. package/lib/clients/mp_web/kakaopay/getCurrentPages.js +3 -0
  320. package/lib/clients/mp_web/kakaopay/getEnterOptionsSync.d.ts +2 -0
  321. package/lib/clients/mp_web/kakaopay/getEnterOptionsSync.js +3 -0
  322. package/lib/clients/mp_web/kakaopay/getFileInfo.d.ts +2 -0
  323. package/lib/clients/mp_web/kakaopay/getFileInfo.js +3 -0
  324. package/lib/clients/mp_web/kakaopay/getImageInfo.d.ts +2 -0
  325. package/lib/clients/mp_web/kakaopay/getImageInfo.js +3 -0
  326. package/lib/clients/mp_web/kakaopay/getLocation.d.ts +2 -0
  327. package/lib/clients/mp_web/kakaopay/getLocation.js +3 -0
  328. package/lib/clients/mp_web/kakaopay/getNetworkType.d.ts +2 -0
  329. package/lib/clients/mp_web/kakaopay/getNetworkType.js +3 -0
  330. package/lib/clients/mp_web/kakaopay/getOpenUserInfo.d.ts +2 -0
  331. package/lib/clients/mp_web/kakaopay/getOpenUserInfo.js +3 -0
  332. package/lib/clients/mp_web/kakaopay/getRunScene.d.ts +2 -0
  333. package/lib/clients/mp_web/kakaopay/getRunScene.js +3 -0
  334. package/lib/clients/mp_web/kakaopay/getSDKVersion.d.ts +2 -0
  335. package/lib/clients/mp_web/kakaopay/getSDKVersion.js +3 -0
  336. package/lib/clients/mp_web/kakaopay/getSavedFileInfo.d.ts +2 -0
  337. package/lib/clients/mp_web/kakaopay/getSavedFileInfo.js +3 -0
  338. package/lib/clients/mp_web/kakaopay/getSavedFileList.d.ts +2 -0
  339. package/lib/clients/mp_web/kakaopay/getSavedFileList.js +3 -0
  340. package/lib/clients/mp_web/kakaopay/getScreenBrightness.d.ts +2 -0
  341. package/lib/clients/mp_web/kakaopay/getScreenBrightness.js +3 -0
  342. package/lib/clients/mp_web/kakaopay/getServerTime.d.ts +2 -0
  343. package/lib/clients/mp_web/kakaopay/getServerTime.js +3 -0
  344. package/lib/clients/mp_web/kakaopay/getSetting.d.ts +2 -0
  345. package/lib/clients/mp_web/kakaopay/getSetting.js +3 -0
  346. package/lib/clients/mp_web/kakaopay/getSiteInfo.d.ts +2 -0
  347. package/lib/clients/mp_web/kakaopay/getSiteInfo.js +3 -0
  348. package/lib/clients/mp_web/kakaopay/getStorage.d.ts +2 -0
  349. package/lib/clients/mp_web/kakaopay/getStorage.js +3 -0
  350. package/lib/clients/mp_web/kakaopay/getSystemInfo.d.ts +2 -0
  351. package/lib/clients/mp_web/kakaopay/getSystemInfo.js +3 -0
  352. package/lib/clients/mp_web/kakaopay/hideBackHome.d.ts +2 -0
  353. package/lib/clients/mp_web/kakaopay/hideBackHome.js +3 -0
  354. package/lib/clients/mp_web/kakaopay/hideKeyboard.d.ts +2 -0
  355. package/lib/clients/mp_web/kakaopay/hideKeyboard.js +3 -0
  356. package/lib/clients/mp_web/kakaopay/hideLoading.d.ts +2 -0
  357. package/lib/clients/mp_web/kakaopay/hideLoading.js +3 -0
  358. package/lib/clients/mp_web/kakaopay/hideNavigationBarLoading.d.ts +2 -0
  359. package/lib/clients/mp_web/kakaopay/hideNavigationBarLoading.js +3 -0
  360. package/lib/clients/mp_web/kakaopay/hideTabBar.d.ts +2 -0
  361. package/lib/clients/mp_web/kakaopay/hideTabBar.js +3 -0
  362. package/lib/clients/mp_web/kakaopay/hideToast.d.ts +2 -0
  363. package/lib/clients/mp_web/kakaopay/hideToast.js +3 -0
  364. package/lib/clients/mp_web/kakaopay/index.d.ts +451 -0
  365. package/lib/clients/mp_web/kakaopay/index.js +261 -0
  366. package/lib/clients/mp_web/kakaopay/makePhoneCall.d.ts +2 -0
  367. package/lib/clients/mp_web/kakaopay/makePhoneCall.js +3 -0
  368. package/lib/clients/mp_web/kakaopay/multiLevelSelect.d.ts +2 -0
  369. package/lib/clients/mp_web/kakaopay/multiLevelSelect.js +3 -0
  370. package/lib/clients/mp_web/kakaopay/navigateBack.d.ts +2 -0
  371. package/lib/clients/mp_web/kakaopay/navigateBack.js +3 -0
  372. package/lib/clients/mp_web/kakaopay/navigateBackMiniProgram.d.ts +2 -0
  373. package/lib/clients/mp_web/kakaopay/navigateBackMiniProgram.js +3 -0
  374. package/lib/clients/mp_web/kakaopay/navigateTo.d.ts +2 -0
  375. package/lib/clients/mp_web/kakaopay/navigateTo.js +3 -0
  376. package/lib/clients/mp_web/kakaopay/navigateToBizScene.d.ts +2 -0
  377. package/lib/clients/mp_web/kakaopay/navigateToBizScene.js +3 -0
  378. package/lib/clients/mp_web/kakaopay/navigateToMiniProgram.d.ts +2 -0
  379. package/lib/clients/mp_web/kakaopay/navigateToMiniProgram.js +3 -0
  380. package/lib/clients/mp_web/kakaopay/notifyBLECharacteristicValueChange.d.ts +2 -0
  381. package/lib/clients/mp_web/kakaopay/notifyBLECharacteristicValueChange.js +3 -0
  382. package/lib/clients/mp_web/kakaopay/offAccelerometerChange.d.ts +2 -0
  383. package/lib/clients/mp_web/kakaopay/offAccelerometerChange.js +3 -0
  384. package/lib/clients/mp_web/kakaopay/offBLECharacteristicValueChange.d.ts +2 -0
  385. package/lib/clients/mp_web/kakaopay/offBLECharacteristicValueChange.js +3 -0
  386. package/lib/clients/mp_web/kakaopay/offBLEConnectionStateChanged.d.ts +2 -0
  387. package/lib/clients/mp_web/kakaopay/offBLEConnectionStateChanged.js +3 -0
  388. package/lib/clients/mp_web/kakaopay/offBluetoothAdapterStateChange.d.ts +2 -0
  389. package/lib/clients/mp_web/kakaopay/offBluetoothAdapterStateChange.js +3 -0
  390. package/lib/clients/mp_web/kakaopay/offBluetoothDeviceFound.d.ts +2 -0
  391. package/lib/clients/mp_web/kakaopay/offBluetoothDeviceFound.js +3 -0
  392. package/lib/clients/mp_web/kakaopay/offCompassChange.d.ts +2 -0
  393. package/lib/clients/mp_web/kakaopay/offCompassChange.js +3 -0
  394. package/lib/clients/mp_web/kakaopay/offMemoryWarning.d.ts +2 -0
  395. package/lib/clients/mp_web/kakaopay/offMemoryWarning.js +3 -0
  396. package/lib/clients/mp_web/kakaopay/offSocketClose.d.ts +2 -0
  397. package/lib/clients/mp_web/kakaopay/offSocketClose.js +3 -0
  398. package/lib/clients/mp_web/kakaopay/offSocketError.d.ts +2 -0
  399. package/lib/clients/mp_web/kakaopay/offSocketError.js +3 -0
  400. package/lib/clients/mp_web/kakaopay/offSocketMessage.d.ts +2 -0
  401. package/lib/clients/mp_web/kakaopay/offSocketMessage.js +3 -0
  402. package/lib/clients/mp_web/kakaopay/offSocketOpen.d.ts +2 -0
  403. package/lib/clients/mp_web/kakaopay/offSocketOpen.js +3 -0
  404. package/lib/clients/mp_web/kakaopay/offUserCaptureScreen.d.ts +2 -0
  405. package/lib/clients/mp_web/kakaopay/offUserCaptureScreen.js +3 -0
  406. package/lib/clients/mp_web/kakaopay/onAccelerometerChange.d.ts +2 -0
  407. package/lib/clients/mp_web/kakaopay/onAccelerometerChange.js +3 -0
  408. package/lib/clients/mp_web/kakaopay/onBLECharacteristicValueChange.d.ts +2 -0
  409. package/lib/clients/mp_web/kakaopay/onBLECharacteristicValueChange.js +3 -0
  410. package/lib/clients/mp_web/kakaopay/onBLEConnectionStateChanged.d.ts +2 -0
  411. package/lib/clients/mp_web/kakaopay/onBLEConnectionStateChanged.js +3 -0
  412. package/lib/clients/mp_web/kakaopay/onBluetoothAdapterStateChange.d.ts +2 -0
  413. package/lib/clients/mp_web/kakaopay/onBluetoothAdapterStateChange.js +3 -0
  414. package/lib/clients/mp_web/kakaopay/onBluetoothDeviceFound.d.ts +2 -0
  415. package/lib/clients/mp_web/kakaopay/onBluetoothDeviceFound.js +3 -0
  416. package/lib/clients/mp_web/kakaopay/onCompassChange.d.ts +2 -0
  417. package/lib/clients/mp_web/kakaopay/onCompassChange.js +3 -0
  418. package/lib/clients/mp_web/kakaopay/onMemoryWarning.d.ts +2 -0
  419. package/lib/clients/mp_web/kakaopay/onMemoryWarning.js +3 -0
  420. package/lib/clients/mp_web/kakaopay/onSocketClose.d.ts +2 -0
  421. package/lib/clients/mp_web/kakaopay/onSocketClose.js +3 -0
  422. package/lib/clients/mp_web/kakaopay/onSocketError.d.ts +2 -0
  423. package/lib/clients/mp_web/kakaopay/onSocketError.js +3 -0
  424. package/lib/clients/mp_web/kakaopay/onSocketMessage.d.ts +2 -0
  425. package/lib/clients/mp_web/kakaopay/onSocketMessage.js +3 -0
  426. package/lib/clients/mp_web/kakaopay/onSocketOpen.d.ts +2 -0
  427. package/lib/clients/mp_web/kakaopay/onSocketOpen.js +3 -0
  428. package/lib/clients/mp_web/kakaopay/onUserCaptureScreen.d.ts +2 -0
  429. package/lib/clients/mp_web/kakaopay/onUserCaptureScreen.js +3 -0
  430. package/lib/clients/mp_web/kakaopay/openBluetoothAdapter.d.ts +2 -0
  431. package/lib/clients/mp_web/kakaopay/openBluetoothAdapter.js +3 -0
  432. package/lib/clients/mp_web/kakaopay/openDocument.d.ts +2 -0
  433. package/lib/clients/mp_web/kakaopay/openDocument.js +3 -0
  434. package/lib/clients/mp_web/kakaopay/openSetting.d.ts +2 -0
  435. package/lib/clients/mp_web/kakaopay/openSetting.js +3 -0
  436. package/lib/clients/mp_web/kakaopay/pageScrollTo.d.ts +2 -0
  437. package/lib/clients/mp_web/kakaopay/pageScrollTo.js +3 -0
  438. package/lib/clients/mp_web/kakaopay/previewImage.d.ts +2 -0
  439. package/lib/clients/mp_web/kakaopay/previewImage.js +3 -0
  440. package/lib/clients/mp_web/kakaopay/prompt.d.ts +2 -0
  441. package/lib/clients/mp_web/kakaopay/prompt.js +3 -0
  442. package/lib/clients/mp_web/kakaopay/reLaunch.d.ts +2 -0
  443. package/lib/clients/mp_web/kakaopay/reLaunch.js +3 -0
  444. package/lib/clients/mp_web/kakaopay/readBLECharacteristicValue.d.ts +2 -0
  445. package/lib/clients/mp_web/kakaopay/readBLECharacteristicValue.js +3 -0
  446. package/lib/clients/mp_web/kakaopay/redirectTo.d.ts +2 -0
  447. package/lib/clients/mp_web/kakaopay/redirectTo.js +3 -0
  448. package/lib/clients/mp_web/kakaopay/removeSavedFile.d.ts +2 -0
  449. package/lib/clients/mp_web/kakaopay/removeSavedFile.js +3 -0
  450. package/lib/clients/mp_web/kakaopay/removeStorage.d.ts +2 -0
  451. package/lib/clients/mp_web/kakaopay/removeStorage.js +3 -0
  452. package/lib/clients/mp_web/kakaopay/request.d.ts +2 -0
  453. package/lib/clients/mp_web/kakaopay/request.js +3 -0
  454. package/lib/clients/mp_web/kakaopay/rpc.d.ts +2 -0
  455. package/lib/clients/mp_web/kakaopay/rpc.js +3 -0
  456. package/lib/clients/mp_web/kakaopay/saveFile.d.ts +2 -0
  457. package/lib/clients/mp_web/kakaopay/saveFile.js +3 -0
  458. package/lib/clients/mp_web/kakaopay/saveImage.d.ts +2 -0
  459. package/lib/clients/mp_web/kakaopay/saveImage.js +3 -0
  460. package/lib/clients/mp_web/kakaopay/scan.d.ts +2 -0
  461. package/lib/clients/mp_web/kakaopay/scan.js +3 -0
  462. package/lib/clients/mp_web/kakaopay/sendSocketMessage.d.ts +2 -0
  463. package/lib/clients/mp_web/kakaopay/sendSocketMessage.js +3 -0
  464. package/lib/clients/mp_web/kakaopay/setBackgroundColor.d.ts +2 -0
  465. package/lib/clients/mp_web/kakaopay/setBackgroundColor.js +3 -0
  466. package/lib/clients/mp_web/kakaopay/setCanPullDown.d.ts +2 -0
  467. package/lib/clients/mp_web/kakaopay/setCanPullDown.js +3 -0
  468. package/lib/clients/mp_web/kakaopay/setClipboard.d.ts +2 -0
  469. package/lib/clients/mp_web/kakaopay/setClipboard.js +3 -0
  470. package/lib/clients/mp_web/kakaopay/setKeepScreenOn.d.ts +2 -0
  471. package/lib/clients/mp_web/kakaopay/setKeepScreenOn.js +3 -0
  472. package/lib/clients/mp_web/kakaopay/setNavigationBar.d.ts +2 -0
  473. package/lib/clients/mp_web/kakaopay/setNavigationBar.js +3 -0
  474. package/lib/clients/mp_web/kakaopay/setScreenBrightness.d.ts +2 -0
  475. package/lib/clients/mp_web/kakaopay/setScreenBrightness.js +3 -0
  476. package/lib/clients/mp_web/kakaopay/setStorage.d.ts +2 -0
  477. package/lib/clients/mp_web/kakaopay/setStorage.js +3 -0
  478. package/lib/clients/mp_web/kakaopay/setTabBarItem.d.ts +2 -0
  479. package/lib/clients/mp_web/kakaopay/setTabBarItem.js +3 -0
  480. package/lib/clients/mp_web/kakaopay/setTabBarStyle.d.ts +2 -0
  481. package/lib/clients/mp_web/kakaopay/setTabBarStyle.js +3 -0
  482. package/lib/clients/mp_web/kakaopay/setTransparentTitle.d.ts +2 -0
  483. package/lib/clients/mp_web/kakaopay/setTransparentTitle.js +3 -0
  484. package/lib/clients/mp_web/kakaopay/showActionSheet.d.ts +2 -0
  485. package/lib/clients/mp_web/kakaopay/showActionSheet.js +3 -0
  486. package/lib/clients/mp_web/kakaopay/showAuthGuide.d.ts +2 -0
  487. package/lib/clients/mp_web/kakaopay/showAuthGuide.js +3 -0
  488. package/lib/clients/mp_web/kakaopay/showLoading.d.ts +2 -0
  489. package/lib/clients/mp_web/kakaopay/showLoading.js +3 -0
  490. package/lib/clients/mp_web/kakaopay/showNavigationBarLoading.d.ts +2 -0
  491. package/lib/clients/mp_web/kakaopay/showNavigationBarLoading.js +3 -0
  492. package/lib/clients/mp_web/kakaopay/showSharePanel.d.ts +2 -0
  493. package/lib/clients/mp_web/kakaopay/showSharePanel.js +3 -0
  494. package/lib/clients/mp_web/kakaopay/showTabBar.d.ts +2 -0
  495. package/lib/clients/mp_web/kakaopay/showTabBar.js +3 -0
  496. package/lib/clients/mp_web/kakaopay/showToast.d.ts +2 -0
  497. package/lib/clients/mp_web/kakaopay/showToast.js +3 -0
  498. package/lib/clients/mp_web/kakaopay/signContract.d.ts +2 -0
  499. package/lib/clients/mp_web/kakaopay/signContract.js +3 -0
  500. package/lib/clients/mp_web/kakaopay/startBluetoothDevicesDiscovery.d.ts +2 -0
  501. package/lib/clients/mp_web/kakaopay/startBluetoothDevicesDiscovery.js +3 -0
  502. package/lib/clients/mp_web/kakaopay/startPullDownRefresh.d.ts +2 -0
  503. package/lib/clients/mp_web/kakaopay/startPullDownRefresh.js +3 -0
  504. package/lib/clients/mp_web/kakaopay/stopBluetoothDevicesDiscovery.d.ts +2 -0
  505. package/lib/clients/mp_web/kakaopay/stopBluetoothDevicesDiscovery.js +3 -0
  506. package/lib/clients/mp_web/kakaopay/stopPullDownRefresh.d.ts +2 -0
  507. package/lib/clients/mp_web/kakaopay/stopPullDownRefresh.js +3 -0
  508. package/lib/clients/mp_web/kakaopay/switchTab.d.ts +2 -0
  509. package/lib/clients/mp_web/kakaopay/switchTab.js +3 -0
  510. package/lib/clients/mp_web/kakaopay/tradePay.d.ts +2 -0
  511. package/lib/clients/mp_web/kakaopay/tradePay.js +3 -0
  512. package/lib/clients/mp_web/kakaopay/uploadFile.d.ts +2 -0
  513. package/lib/clients/mp_web/kakaopay/uploadFile.js +3 -0
  514. package/lib/clients/mp_web/kakaopay/vibrate.d.ts +2 -0
  515. package/lib/clients/mp_web/kakaopay/vibrate.js +3 -0
  516. package/lib/clients/mp_web/kakaopay/watchShake.d.ts +2 -0
  517. package/lib/clients/mp_web/kakaopay/watchShake.js +3 -0
  518. package/lib/clients/mp_web/kakaopay/writeBLECharacteristicValue.d.ts +2 -0
  519. package/lib/clients/mp_web/kakaopay/writeBLECharacteristicValue.js +3 -0
  520. package/lib/clients/mp_web/scb/addPhoneContact.d.ts +2 -0
  521. package/lib/clients/mp_web/scb/addPhoneContact.js +3 -0
  522. package/lib/clients/mp_web/scb/alert.d.ts +2 -0
  523. package/lib/clients/mp_web/scb/alert.js +3 -0
  524. package/lib/clients/mp_web/scb/chooseFileFromDisk.d.ts +2 -0
  525. package/lib/clients/mp_web/scb/chooseFileFromDisk.js +3 -0
  526. package/lib/clients/mp_web/scb/chooseImage.d.ts +2 -0
  527. package/lib/clients/mp_web/scb/chooseImage.js +3 -0
  528. package/lib/clients/mp_web/scb/choosePhoneContact.d.ts +2 -0
  529. package/lib/clients/mp_web/scb/choosePhoneContact.js +3 -0
  530. package/lib/clients/mp_web/scb/chooseVideo.d.ts +2 -0
  531. package/lib/clients/mp_web/scb/chooseVideo.js +3 -0
  532. package/lib/clients/mp_web/scb/clearStorage.d.ts +2 -0
  533. package/lib/clients/mp_web/scb/clearStorage.js +3 -0
  534. package/lib/clients/mp_web/scb/closeBluetoothAdapter.d.ts +2 -0
  535. package/lib/clients/mp_web/scb/closeBluetoothAdapter.js +3 -0
  536. package/lib/clients/mp_web/scb/closeSocket.d.ts +2 -0
  537. package/lib/clients/mp_web/scb/closeSocket.js +3 -0
  538. package/lib/clients/mp_web/scb/compressImage.d.ts +2 -0
  539. package/lib/clients/mp_web/scb/compressImage.js +3 -0
  540. package/lib/clients/mp_web/scb/confirm.d.ts +2 -0
  541. package/lib/clients/mp_web/scb/confirm.js +3 -0
  542. package/lib/clients/mp_web/scb/connectBLEDevice.d.ts +2 -0
  543. package/lib/clients/mp_web/scb/connectBLEDevice.js +3 -0
  544. package/lib/clients/mp_web/scb/connectSocket.d.ts +2 -0
  545. package/lib/clients/mp_web/scb/connectSocket.js +3 -0
  546. package/lib/clients/mp_web/scb/datePicker.d.ts +2 -0
  547. package/lib/clients/mp_web/scb/datePicker.js +3 -0
  548. package/lib/clients/mp_web/scb/disconnectBLEDevice.d.ts +2 -0
  549. package/lib/clients/mp_web/scb/disconnectBLEDevice.js +3 -0
  550. package/lib/clients/mp_web/scb/downloadFile.d.ts +2 -0
  551. package/lib/clients/mp_web/scb/downloadFile.js +3 -0
  552. package/lib/clients/mp_web/scb/exitApp.d.ts +2 -0
  553. package/lib/clients/mp_web/scb/exitApp.js +3 -0
  554. package/lib/clients/mp_web/scb/getAppId.d.ts +2 -0
  555. package/lib/clients/mp_web/scb/getAppId.js +3 -0
  556. package/lib/clients/mp_web/scb/getAppToken.d.ts +2 -0
  557. package/lib/clients/mp_web/scb/getAppToken.js +3 -0
  558. package/lib/clients/mp_web/scb/getAuthCode.d.ts +2 -0
  559. package/lib/clients/mp_web/scb/getAuthCode.js +3 -0
  560. package/lib/clients/mp_web/scb/getBLEDeviceCharacteristics.d.ts +2 -0
  561. package/lib/clients/mp_web/scb/getBLEDeviceCharacteristics.js +3 -0
  562. package/lib/clients/mp_web/scb/getBLEDeviceServices.d.ts +2 -0
  563. package/lib/clients/mp_web/scb/getBLEDeviceServices.js +3 -0
  564. package/lib/clients/mp_web/scb/getBackgroundFetchData.d.ts +2 -0
  565. package/lib/clients/mp_web/scb/getBackgroundFetchData.js +3 -0
  566. package/lib/clients/mp_web/scb/getBatteryInfo.d.ts +2 -0
  567. package/lib/clients/mp_web/scb/getBatteryInfo.js +3 -0
  568. package/lib/clients/mp_web/scb/getBluetoothAdapterState.d.ts +2 -0
  569. package/lib/clients/mp_web/scb/getBluetoothAdapterState.js +3 -0
  570. package/lib/clients/mp_web/scb/getBluetoothDevices.d.ts +2 -0
  571. package/lib/clients/mp_web/scb/getBluetoothDevices.js +3 -0
  572. package/lib/clients/mp_web/scb/getClipboard.d.ts +2 -0
  573. package/lib/clients/mp_web/scb/getClipboard.js +3 -0
  574. package/lib/clients/mp_web/scb/getConnectedBluetoothDevices.d.ts +2 -0
  575. package/lib/clients/mp_web/scb/getConnectedBluetoothDevices.js +3 -0
  576. package/lib/clients/mp_web/scb/getCurrentPages.d.ts +2 -0
  577. package/lib/clients/mp_web/scb/getCurrentPages.js +3 -0
  578. package/lib/clients/mp_web/scb/getEnterOptionsSync.d.ts +2 -0
  579. package/lib/clients/mp_web/scb/getEnterOptionsSync.js +3 -0
  580. package/lib/clients/mp_web/scb/getFileInfo.d.ts +2 -0
  581. package/lib/clients/mp_web/scb/getFileInfo.js +3 -0
  582. package/lib/clients/mp_web/scb/getImageInfo.d.ts +2 -0
  583. package/lib/clients/mp_web/scb/getImageInfo.js +3 -0
  584. package/lib/clients/mp_web/scb/getLocation.d.ts +2 -0
  585. package/lib/clients/mp_web/scb/getLocation.js +3 -0
  586. package/lib/clients/mp_web/scb/getNetworkType.d.ts +2 -0
  587. package/lib/clients/mp_web/scb/getNetworkType.js +3 -0
  588. package/lib/clients/mp_web/scb/getOpenUserInfo.d.ts +2 -0
  589. package/lib/clients/mp_web/scb/getOpenUserInfo.js +3 -0
  590. package/lib/clients/mp_web/scb/getRunScene.d.ts +2 -0
  591. package/lib/clients/mp_web/scb/getRunScene.js +3 -0
  592. package/lib/clients/mp_web/scb/getSDKVersion.d.ts +2 -0
  593. package/lib/clients/mp_web/scb/getSDKVersion.js +3 -0
  594. package/lib/clients/mp_web/scb/getSavedFileInfo.d.ts +2 -0
  595. package/lib/clients/mp_web/scb/getSavedFileInfo.js +3 -0
  596. package/lib/clients/mp_web/scb/getSavedFileList.d.ts +2 -0
  597. package/lib/clients/mp_web/scb/getSavedFileList.js +3 -0
  598. package/lib/clients/mp_web/scb/getScreenBrightness.d.ts +2 -0
  599. package/lib/clients/mp_web/scb/getScreenBrightness.js +3 -0
  600. package/lib/clients/mp_web/scb/getServerTime.d.ts +2 -0
  601. package/lib/clients/mp_web/scb/getServerTime.js +3 -0
  602. package/lib/clients/mp_web/scb/getSetting.d.ts +2 -0
  603. package/lib/clients/mp_web/scb/getSetting.js +3 -0
  604. package/lib/clients/mp_web/scb/getSiteInfo.d.ts +2 -0
  605. package/lib/clients/mp_web/scb/getSiteInfo.js +3 -0
  606. package/lib/clients/mp_web/scb/getStorage.d.ts +2 -0
  607. package/lib/clients/mp_web/scb/getStorage.js +3 -0
  608. package/lib/clients/mp_web/scb/getSystemInfo.d.ts +2 -0
  609. package/lib/clients/mp_web/scb/getSystemInfo.js +3 -0
  610. package/lib/clients/mp_web/scb/hideBackHome.d.ts +2 -0
  611. package/lib/clients/mp_web/scb/hideBackHome.js +3 -0
  612. package/lib/clients/mp_web/scb/hideKeyboard.d.ts +2 -0
  613. package/lib/clients/mp_web/scb/hideKeyboard.js +3 -0
  614. package/lib/clients/mp_web/scb/hideLoading.d.ts +2 -0
  615. package/lib/clients/mp_web/scb/hideLoading.js +3 -0
  616. package/lib/clients/mp_web/scb/hideNavigationBarLoading.d.ts +2 -0
  617. package/lib/clients/mp_web/scb/hideNavigationBarLoading.js +3 -0
  618. package/lib/clients/mp_web/scb/hideTabBar.d.ts +2 -0
  619. package/lib/clients/mp_web/scb/hideTabBar.js +3 -0
  620. package/lib/clients/mp_web/scb/hideToast.d.ts +2 -0
  621. package/lib/clients/mp_web/scb/hideToast.js +3 -0
  622. package/lib/clients/mp_web/scb/index.d.ts +451 -0
  623. package/lib/clients/mp_web/scb/index.js +261 -0
  624. package/lib/clients/mp_web/scb/makePhoneCall.d.ts +2 -0
  625. package/lib/clients/mp_web/scb/makePhoneCall.js +3 -0
  626. package/lib/clients/mp_web/scb/multiLevelSelect.d.ts +2 -0
  627. package/lib/clients/mp_web/scb/multiLevelSelect.js +3 -0
  628. package/lib/clients/mp_web/scb/navigateBack.d.ts +2 -0
  629. package/lib/clients/mp_web/scb/navigateBack.js +3 -0
  630. package/lib/clients/mp_web/scb/navigateBackMiniProgram.d.ts +2 -0
  631. package/lib/clients/mp_web/scb/navigateBackMiniProgram.js +3 -0
  632. package/lib/clients/mp_web/scb/navigateTo.d.ts +2 -0
  633. package/lib/clients/mp_web/scb/navigateTo.js +3 -0
  634. package/lib/clients/mp_web/scb/navigateToBizScene.d.ts +2 -0
  635. package/lib/clients/mp_web/scb/navigateToBizScene.js +3 -0
  636. package/lib/clients/mp_web/scb/navigateToMiniProgram.d.ts +2 -0
  637. package/lib/clients/mp_web/scb/navigateToMiniProgram.js +3 -0
  638. package/lib/clients/mp_web/scb/notifyBLECharacteristicValueChange.d.ts +2 -0
  639. package/lib/clients/mp_web/scb/notifyBLECharacteristicValueChange.js +3 -0
  640. package/lib/clients/mp_web/scb/offAccelerometerChange.d.ts +2 -0
  641. package/lib/clients/mp_web/scb/offAccelerometerChange.js +3 -0
  642. package/lib/clients/mp_web/scb/offBLECharacteristicValueChange.d.ts +2 -0
  643. package/lib/clients/mp_web/scb/offBLECharacteristicValueChange.js +3 -0
  644. package/lib/clients/mp_web/scb/offBLEConnectionStateChanged.d.ts +2 -0
  645. package/lib/clients/mp_web/scb/offBLEConnectionStateChanged.js +3 -0
  646. package/lib/clients/mp_web/scb/offBluetoothAdapterStateChange.d.ts +2 -0
  647. package/lib/clients/mp_web/scb/offBluetoothAdapterStateChange.js +3 -0
  648. package/lib/clients/mp_web/scb/offBluetoothDeviceFound.d.ts +2 -0
  649. package/lib/clients/mp_web/scb/offBluetoothDeviceFound.js +3 -0
  650. package/lib/clients/mp_web/scb/offCompassChange.d.ts +2 -0
  651. package/lib/clients/mp_web/scb/offCompassChange.js +3 -0
  652. package/lib/clients/mp_web/scb/offMemoryWarning.d.ts +2 -0
  653. package/lib/clients/mp_web/scb/offMemoryWarning.js +3 -0
  654. package/lib/clients/mp_web/scb/offSocketClose.d.ts +2 -0
  655. package/lib/clients/mp_web/scb/offSocketClose.js +3 -0
  656. package/lib/clients/mp_web/scb/offSocketError.d.ts +2 -0
  657. package/lib/clients/mp_web/scb/offSocketError.js +3 -0
  658. package/lib/clients/mp_web/scb/offSocketMessage.d.ts +2 -0
  659. package/lib/clients/mp_web/scb/offSocketMessage.js +3 -0
  660. package/lib/clients/mp_web/scb/offSocketOpen.d.ts +2 -0
  661. package/lib/clients/mp_web/scb/offSocketOpen.js +3 -0
  662. package/lib/clients/mp_web/scb/offUserCaptureScreen.d.ts +2 -0
  663. package/lib/clients/mp_web/scb/offUserCaptureScreen.js +3 -0
  664. package/lib/clients/mp_web/scb/onAccelerometerChange.d.ts +2 -0
  665. package/lib/clients/mp_web/scb/onAccelerometerChange.js +3 -0
  666. package/lib/clients/mp_web/scb/onBLECharacteristicValueChange.d.ts +2 -0
  667. package/lib/clients/mp_web/scb/onBLECharacteristicValueChange.js +3 -0
  668. package/lib/clients/mp_web/scb/onBLEConnectionStateChanged.d.ts +2 -0
  669. package/lib/clients/mp_web/scb/onBLEConnectionStateChanged.js +3 -0
  670. package/lib/clients/mp_web/scb/onBluetoothAdapterStateChange.d.ts +2 -0
  671. package/lib/clients/mp_web/scb/onBluetoothAdapterStateChange.js +3 -0
  672. package/lib/clients/mp_web/scb/onBluetoothDeviceFound.d.ts +2 -0
  673. package/lib/clients/mp_web/scb/onBluetoothDeviceFound.js +3 -0
  674. package/lib/clients/mp_web/scb/onCompassChange.d.ts +2 -0
  675. package/lib/clients/mp_web/scb/onCompassChange.js +3 -0
  676. package/lib/clients/mp_web/scb/onMemoryWarning.d.ts +2 -0
  677. package/lib/clients/mp_web/scb/onMemoryWarning.js +3 -0
  678. package/lib/clients/mp_web/scb/onSocketClose.d.ts +2 -0
  679. package/lib/clients/mp_web/scb/onSocketClose.js +3 -0
  680. package/lib/clients/mp_web/scb/onSocketError.d.ts +2 -0
  681. package/lib/clients/mp_web/scb/onSocketError.js +3 -0
  682. package/lib/clients/mp_web/scb/onSocketMessage.d.ts +2 -0
  683. package/lib/clients/mp_web/scb/onSocketMessage.js +3 -0
  684. package/lib/clients/mp_web/scb/onSocketOpen.d.ts +2 -0
  685. package/lib/clients/mp_web/scb/onSocketOpen.js +3 -0
  686. package/lib/clients/mp_web/scb/onUserCaptureScreen.d.ts +2 -0
  687. package/lib/clients/mp_web/scb/onUserCaptureScreen.js +3 -0
  688. package/lib/clients/mp_web/scb/openBluetoothAdapter.d.ts +2 -0
  689. package/lib/clients/mp_web/scb/openBluetoothAdapter.js +3 -0
  690. package/lib/clients/mp_web/scb/openDocument.d.ts +2 -0
  691. package/lib/clients/mp_web/scb/openDocument.js +3 -0
  692. package/lib/clients/mp_web/scb/openSetting.d.ts +2 -0
  693. package/lib/clients/mp_web/scb/openSetting.js +3 -0
  694. package/lib/clients/mp_web/scb/pageScrollTo.d.ts +2 -0
  695. package/lib/clients/mp_web/scb/pageScrollTo.js +3 -0
  696. package/lib/clients/mp_web/scb/previewImage.d.ts +2 -0
  697. package/lib/clients/mp_web/scb/previewImage.js +3 -0
  698. package/lib/clients/mp_web/scb/prompt.d.ts +2 -0
  699. package/lib/clients/mp_web/scb/prompt.js +3 -0
  700. package/lib/clients/mp_web/scb/reLaunch.d.ts +2 -0
  701. package/lib/clients/mp_web/scb/reLaunch.js +3 -0
  702. package/lib/clients/mp_web/scb/readBLECharacteristicValue.d.ts +2 -0
  703. package/lib/clients/mp_web/scb/readBLECharacteristicValue.js +3 -0
  704. package/lib/clients/mp_web/scb/redirectTo.d.ts +2 -0
  705. package/lib/clients/mp_web/scb/redirectTo.js +3 -0
  706. package/lib/clients/mp_web/scb/removeSavedFile.d.ts +2 -0
  707. package/lib/clients/mp_web/scb/removeSavedFile.js +3 -0
  708. package/lib/clients/mp_web/scb/removeStorage.d.ts +2 -0
  709. package/lib/clients/mp_web/scb/removeStorage.js +3 -0
  710. package/lib/clients/mp_web/scb/request.d.ts +2 -0
  711. package/lib/clients/mp_web/scb/request.js +3 -0
  712. package/lib/clients/mp_web/scb/rpc.d.ts +2 -0
  713. package/lib/clients/mp_web/scb/rpc.js +3 -0
  714. package/lib/clients/mp_web/scb/saveFile.d.ts +2 -0
  715. package/lib/clients/mp_web/scb/saveFile.js +3 -0
  716. package/lib/clients/mp_web/scb/saveImage.d.ts +2 -0
  717. package/lib/clients/mp_web/scb/saveImage.js +3 -0
  718. package/lib/clients/mp_web/scb/scan.d.ts +2 -0
  719. package/lib/clients/mp_web/scb/scan.js +3 -0
  720. package/lib/clients/mp_web/scb/sendSocketMessage.d.ts +2 -0
  721. package/lib/clients/mp_web/scb/sendSocketMessage.js +3 -0
  722. package/lib/clients/mp_web/scb/setBackgroundColor.d.ts +2 -0
  723. package/lib/clients/mp_web/scb/setBackgroundColor.js +3 -0
  724. package/lib/clients/mp_web/scb/setCanPullDown.d.ts +2 -0
  725. package/lib/clients/mp_web/scb/setCanPullDown.js +3 -0
  726. package/lib/clients/mp_web/scb/setClipboard.d.ts +2 -0
  727. package/lib/clients/mp_web/scb/setClipboard.js +3 -0
  728. package/lib/clients/mp_web/scb/setKeepScreenOn.d.ts +2 -0
  729. package/lib/clients/mp_web/scb/setKeepScreenOn.js +3 -0
  730. package/lib/clients/mp_web/scb/setNavigationBar.d.ts +2 -0
  731. package/lib/clients/mp_web/scb/setNavigationBar.js +3 -0
  732. package/lib/clients/mp_web/scb/setScreenBrightness.d.ts +2 -0
  733. package/lib/clients/mp_web/scb/setScreenBrightness.js +3 -0
  734. package/lib/clients/mp_web/scb/setStorage.d.ts +2 -0
  735. package/lib/clients/mp_web/scb/setStorage.js +3 -0
  736. package/lib/clients/mp_web/scb/setTabBarItem.d.ts +2 -0
  737. package/lib/clients/mp_web/scb/setTabBarItem.js +3 -0
  738. package/lib/clients/mp_web/scb/setTabBarStyle.d.ts +2 -0
  739. package/lib/clients/mp_web/scb/setTabBarStyle.js +3 -0
  740. package/lib/clients/mp_web/scb/setTransparentTitle.d.ts +2 -0
  741. package/lib/clients/mp_web/scb/setTransparentTitle.js +3 -0
  742. package/lib/clients/mp_web/scb/showActionSheet.d.ts +2 -0
  743. package/lib/clients/mp_web/scb/showActionSheet.js +3 -0
  744. package/lib/clients/mp_web/scb/showAuthGuide.d.ts +2 -0
  745. package/lib/clients/mp_web/scb/showAuthGuide.js +3 -0
  746. package/lib/clients/mp_web/scb/showLoading.d.ts +2 -0
  747. package/lib/clients/mp_web/scb/showLoading.js +3 -0
  748. package/lib/clients/mp_web/scb/showNavigationBarLoading.d.ts +2 -0
  749. package/lib/clients/mp_web/scb/showNavigationBarLoading.js +3 -0
  750. package/lib/clients/mp_web/scb/showSharePanel.d.ts +2 -0
  751. package/lib/clients/mp_web/scb/showSharePanel.js +3 -0
  752. package/lib/clients/mp_web/scb/showTabBar.d.ts +2 -0
  753. package/lib/clients/mp_web/scb/showTabBar.js +3 -0
  754. package/lib/clients/mp_web/scb/showToast.d.ts +2 -0
  755. package/lib/clients/mp_web/scb/showToast.js +3 -0
  756. package/lib/clients/mp_web/scb/signContract.d.ts +2 -0
  757. package/lib/clients/mp_web/scb/signContract.js +3 -0
  758. package/lib/clients/mp_web/scb/startBluetoothDevicesDiscovery.d.ts +2 -0
  759. package/lib/clients/mp_web/scb/startBluetoothDevicesDiscovery.js +3 -0
  760. package/lib/clients/mp_web/scb/startPullDownRefresh.d.ts +2 -0
  761. package/lib/clients/mp_web/scb/startPullDownRefresh.js +3 -0
  762. package/lib/clients/mp_web/scb/stopBluetoothDevicesDiscovery.d.ts +2 -0
  763. package/lib/clients/mp_web/scb/stopBluetoothDevicesDiscovery.js +3 -0
  764. package/lib/clients/mp_web/scb/stopPullDownRefresh.d.ts +2 -0
  765. package/lib/clients/mp_web/scb/stopPullDownRefresh.js +3 -0
  766. package/lib/clients/mp_web/scb/switchTab.d.ts +2 -0
  767. package/lib/clients/mp_web/scb/switchTab.js +3 -0
  768. package/lib/clients/mp_web/scb/tradePay.d.ts +2 -0
  769. package/lib/clients/mp_web/scb/tradePay.js +3 -0
  770. package/lib/clients/mp_web/scb/uploadFile.d.ts +2 -0
  771. package/lib/clients/mp_web/scb/uploadFile.js +3 -0
  772. package/lib/clients/mp_web/scb/vibrate.d.ts +2 -0
  773. package/lib/clients/mp_web/scb/vibrate.js +3 -0
  774. package/lib/clients/mp_web/scb/watchShake.d.ts +2 -0
  775. package/lib/clients/mp_web/scb/watchShake.js +3 -0
  776. package/lib/clients/mp_web/scb/writeBLECharacteristicValue.d.ts +2 -0
  777. package/lib/clients/mp_web/scb/writeBLECharacteristicValue.js +3 -0
  778. package/lib/clients/mp_web/tinaba/addPhoneContact.d.ts +2 -0
  779. package/lib/clients/mp_web/tinaba/addPhoneContact.js +3 -0
  780. package/lib/clients/mp_web/tinaba/alert.d.ts +2 -0
  781. package/lib/clients/mp_web/tinaba/alert.js +3 -0
  782. package/lib/clients/mp_web/tinaba/chooseFileFromDisk.d.ts +2 -0
  783. package/lib/clients/mp_web/tinaba/chooseFileFromDisk.js +3 -0
  784. package/lib/clients/mp_web/tinaba/chooseImage.d.ts +2 -0
  785. package/lib/clients/mp_web/tinaba/chooseImage.js +3 -0
  786. package/lib/clients/mp_web/tinaba/choosePhoneContact.d.ts +2 -0
  787. package/lib/clients/mp_web/tinaba/choosePhoneContact.js +3 -0
  788. package/lib/clients/mp_web/tinaba/chooseVideo.d.ts +2 -0
  789. package/lib/clients/mp_web/tinaba/chooseVideo.js +3 -0
  790. package/lib/clients/mp_web/tinaba/clearStorage.d.ts +2 -0
  791. package/lib/clients/mp_web/tinaba/clearStorage.js +3 -0
  792. package/lib/clients/mp_web/tinaba/closeBluetoothAdapter.d.ts +2 -0
  793. package/lib/clients/mp_web/tinaba/closeBluetoothAdapter.js +3 -0
  794. package/lib/clients/mp_web/tinaba/closeSocket.d.ts +2 -0
  795. package/lib/clients/mp_web/tinaba/closeSocket.js +3 -0
  796. package/lib/clients/mp_web/tinaba/compressImage.d.ts +2 -0
  797. package/lib/clients/mp_web/tinaba/compressImage.js +3 -0
  798. package/lib/clients/mp_web/tinaba/confirm.d.ts +2 -0
  799. package/lib/clients/mp_web/tinaba/confirm.js +3 -0
  800. package/lib/clients/mp_web/tinaba/connectBLEDevice.d.ts +2 -0
  801. package/lib/clients/mp_web/tinaba/connectBLEDevice.js +3 -0
  802. package/lib/clients/mp_web/tinaba/connectSocket.d.ts +2 -0
  803. package/lib/clients/mp_web/tinaba/connectSocket.js +3 -0
  804. package/lib/clients/mp_web/tinaba/datePicker.d.ts +2 -0
  805. package/lib/clients/mp_web/tinaba/datePicker.js +3 -0
  806. package/lib/clients/mp_web/tinaba/disconnectBLEDevice.d.ts +2 -0
  807. package/lib/clients/mp_web/tinaba/disconnectBLEDevice.js +3 -0
  808. package/lib/clients/mp_web/tinaba/downloadFile.d.ts +2 -0
  809. package/lib/clients/mp_web/tinaba/downloadFile.js +3 -0
  810. package/lib/clients/mp_web/tinaba/exitApp.d.ts +2 -0
  811. package/lib/clients/mp_web/tinaba/exitApp.js +3 -0
  812. package/lib/clients/mp_web/tinaba/getAppId.d.ts +2 -0
  813. package/lib/clients/mp_web/tinaba/getAppId.js +3 -0
  814. package/lib/clients/mp_web/tinaba/getAppToken.d.ts +2 -0
  815. package/lib/clients/mp_web/tinaba/getAppToken.js +3 -0
  816. package/lib/clients/mp_web/tinaba/getAuthCode.d.ts +2 -0
  817. package/lib/clients/mp_web/tinaba/getAuthCode.js +3 -0
  818. package/lib/clients/mp_web/tinaba/getBLEDeviceCharacteristics.d.ts +2 -0
  819. package/lib/clients/mp_web/tinaba/getBLEDeviceCharacteristics.js +3 -0
  820. package/lib/clients/mp_web/tinaba/getBLEDeviceServices.d.ts +2 -0
  821. package/lib/clients/mp_web/tinaba/getBLEDeviceServices.js +3 -0
  822. package/lib/clients/mp_web/tinaba/getBackgroundFetchData.d.ts +2 -0
  823. package/lib/clients/mp_web/tinaba/getBackgroundFetchData.js +3 -0
  824. package/lib/clients/mp_web/tinaba/getBatteryInfo.d.ts +2 -0
  825. package/lib/clients/mp_web/tinaba/getBatteryInfo.js +3 -0
  826. package/lib/clients/mp_web/tinaba/getBluetoothAdapterState.d.ts +2 -0
  827. package/lib/clients/mp_web/tinaba/getBluetoothAdapterState.js +3 -0
  828. package/lib/clients/mp_web/tinaba/getBluetoothDevices.d.ts +2 -0
  829. package/lib/clients/mp_web/tinaba/getBluetoothDevices.js +3 -0
  830. package/lib/clients/mp_web/tinaba/getClipboard.d.ts +2 -0
  831. package/lib/clients/mp_web/tinaba/getClipboard.js +3 -0
  832. package/lib/clients/mp_web/tinaba/getConnectedBluetoothDevices.d.ts +2 -0
  833. package/lib/clients/mp_web/tinaba/getConnectedBluetoothDevices.js +3 -0
  834. package/lib/clients/mp_web/tinaba/getCurrentPages.d.ts +2 -0
  835. package/lib/clients/mp_web/tinaba/getCurrentPages.js +3 -0
  836. package/lib/clients/mp_web/tinaba/getEnterOptionsSync.d.ts +2 -0
  837. package/lib/clients/mp_web/tinaba/getEnterOptionsSync.js +3 -0
  838. package/lib/clients/mp_web/tinaba/getFileInfo.d.ts +2 -0
  839. package/lib/clients/mp_web/tinaba/getFileInfo.js +3 -0
  840. package/lib/clients/mp_web/tinaba/getImageInfo.d.ts +2 -0
  841. package/lib/clients/mp_web/tinaba/getImageInfo.js +3 -0
  842. package/lib/clients/mp_web/tinaba/getLocation.d.ts +2 -0
  843. package/lib/clients/mp_web/tinaba/getLocation.js +3 -0
  844. package/lib/clients/mp_web/tinaba/getNetworkType.d.ts +2 -0
  845. package/lib/clients/mp_web/tinaba/getNetworkType.js +3 -0
  846. package/lib/clients/mp_web/tinaba/getOpenUserInfo.d.ts +2 -0
  847. package/lib/clients/mp_web/tinaba/getOpenUserInfo.js +3 -0
  848. package/lib/clients/mp_web/tinaba/getRunScene.d.ts +2 -0
  849. package/lib/clients/mp_web/tinaba/getRunScene.js +3 -0
  850. package/lib/clients/mp_web/tinaba/getSDKVersion.d.ts +2 -0
  851. package/lib/clients/mp_web/tinaba/getSDKVersion.js +3 -0
  852. package/lib/clients/mp_web/tinaba/getSavedFileInfo.d.ts +2 -0
  853. package/lib/clients/mp_web/tinaba/getSavedFileInfo.js +3 -0
  854. package/lib/clients/mp_web/tinaba/getSavedFileList.d.ts +2 -0
  855. package/lib/clients/mp_web/tinaba/getSavedFileList.js +3 -0
  856. package/lib/clients/mp_web/tinaba/getScreenBrightness.d.ts +2 -0
  857. package/lib/clients/mp_web/tinaba/getScreenBrightness.js +3 -0
  858. package/lib/clients/mp_web/tinaba/getServerTime.d.ts +2 -0
  859. package/lib/clients/mp_web/tinaba/getServerTime.js +3 -0
  860. package/lib/clients/mp_web/tinaba/getSetting.d.ts +2 -0
  861. package/lib/clients/mp_web/tinaba/getSetting.js +3 -0
  862. package/lib/clients/mp_web/tinaba/getSiteInfo.d.ts +2 -0
  863. package/lib/clients/mp_web/tinaba/getSiteInfo.js +3 -0
  864. package/lib/clients/mp_web/tinaba/getStorage.d.ts +2 -0
  865. package/lib/clients/mp_web/tinaba/getStorage.js +3 -0
  866. package/lib/clients/mp_web/tinaba/getSystemInfo.d.ts +2 -0
  867. package/lib/clients/mp_web/tinaba/getSystemInfo.js +3 -0
  868. package/lib/clients/mp_web/tinaba/hideBackHome.d.ts +2 -0
  869. package/lib/clients/mp_web/tinaba/hideBackHome.js +3 -0
  870. package/lib/clients/mp_web/tinaba/hideKeyboard.d.ts +2 -0
  871. package/lib/clients/mp_web/tinaba/hideKeyboard.js +3 -0
  872. package/lib/clients/mp_web/tinaba/hideLoading.d.ts +2 -0
  873. package/lib/clients/mp_web/tinaba/hideLoading.js +3 -0
  874. package/lib/clients/mp_web/tinaba/hideNavigationBarLoading.d.ts +2 -0
  875. package/lib/clients/mp_web/tinaba/hideNavigationBarLoading.js +3 -0
  876. package/lib/clients/mp_web/tinaba/hideTabBar.d.ts +2 -0
  877. package/lib/clients/mp_web/tinaba/hideTabBar.js +3 -0
  878. package/lib/clients/mp_web/tinaba/hideToast.d.ts +2 -0
  879. package/lib/clients/mp_web/tinaba/hideToast.js +3 -0
  880. package/lib/clients/mp_web/tinaba/index.d.ts +451 -0
  881. package/lib/clients/mp_web/tinaba/index.js +261 -0
  882. package/lib/clients/mp_web/tinaba/makePhoneCall.d.ts +2 -0
  883. package/lib/clients/mp_web/tinaba/makePhoneCall.js +3 -0
  884. package/lib/clients/mp_web/tinaba/multiLevelSelect.d.ts +2 -0
  885. package/lib/clients/mp_web/tinaba/multiLevelSelect.js +3 -0
  886. package/lib/clients/mp_web/tinaba/navigateBack.d.ts +2 -0
  887. package/lib/clients/mp_web/tinaba/navigateBack.js +3 -0
  888. package/lib/clients/mp_web/tinaba/navigateBackMiniProgram.d.ts +2 -0
  889. package/lib/clients/mp_web/tinaba/navigateBackMiniProgram.js +3 -0
  890. package/lib/clients/mp_web/tinaba/navigateTo.d.ts +2 -0
  891. package/lib/clients/mp_web/tinaba/navigateTo.js +3 -0
  892. package/lib/clients/mp_web/tinaba/navigateToBizScene.d.ts +2 -0
  893. package/lib/clients/mp_web/tinaba/navigateToBizScene.js +3 -0
  894. package/lib/clients/mp_web/tinaba/navigateToMiniProgram.d.ts +2 -0
  895. package/lib/clients/mp_web/tinaba/navigateToMiniProgram.js +3 -0
  896. package/lib/clients/mp_web/tinaba/notifyBLECharacteristicValueChange.d.ts +2 -0
  897. package/lib/clients/mp_web/tinaba/notifyBLECharacteristicValueChange.js +3 -0
  898. package/lib/clients/mp_web/tinaba/offAccelerometerChange.d.ts +2 -0
  899. package/lib/clients/mp_web/tinaba/offAccelerometerChange.js +3 -0
  900. package/lib/clients/mp_web/tinaba/offBLECharacteristicValueChange.d.ts +2 -0
  901. package/lib/clients/mp_web/tinaba/offBLECharacteristicValueChange.js +3 -0
  902. package/lib/clients/mp_web/tinaba/offBLEConnectionStateChanged.d.ts +2 -0
  903. package/lib/clients/mp_web/tinaba/offBLEConnectionStateChanged.js +3 -0
  904. package/lib/clients/mp_web/tinaba/offBluetoothAdapterStateChange.d.ts +2 -0
  905. package/lib/clients/mp_web/tinaba/offBluetoothAdapterStateChange.js +3 -0
  906. package/lib/clients/mp_web/tinaba/offBluetoothDeviceFound.d.ts +2 -0
  907. package/lib/clients/mp_web/tinaba/offBluetoothDeviceFound.js +3 -0
  908. package/lib/clients/mp_web/tinaba/offCompassChange.d.ts +2 -0
  909. package/lib/clients/mp_web/tinaba/offCompassChange.js +3 -0
  910. package/lib/clients/mp_web/tinaba/offMemoryWarning.d.ts +2 -0
  911. package/lib/clients/mp_web/tinaba/offMemoryWarning.js +3 -0
  912. package/lib/clients/mp_web/tinaba/offSocketClose.d.ts +2 -0
  913. package/lib/clients/mp_web/tinaba/offSocketClose.js +3 -0
  914. package/lib/clients/mp_web/tinaba/offSocketError.d.ts +2 -0
  915. package/lib/clients/mp_web/tinaba/offSocketError.js +3 -0
  916. package/lib/clients/mp_web/tinaba/offSocketMessage.d.ts +2 -0
  917. package/lib/clients/mp_web/tinaba/offSocketMessage.js +3 -0
  918. package/lib/clients/mp_web/tinaba/offSocketOpen.d.ts +2 -0
  919. package/lib/clients/mp_web/tinaba/offSocketOpen.js +3 -0
  920. package/lib/clients/mp_web/tinaba/offUserCaptureScreen.d.ts +2 -0
  921. package/lib/clients/mp_web/tinaba/offUserCaptureScreen.js +3 -0
  922. package/lib/clients/mp_web/tinaba/onAccelerometerChange.d.ts +2 -0
  923. package/lib/clients/mp_web/tinaba/onAccelerometerChange.js +3 -0
  924. package/lib/clients/mp_web/tinaba/onBLECharacteristicValueChange.d.ts +2 -0
  925. package/lib/clients/mp_web/tinaba/onBLECharacteristicValueChange.js +3 -0
  926. package/lib/clients/mp_web/tinaba/onBLEConnectionStateChanged.d.ts +2 -0
  927. package/lib/clients/mp_web/tinaba/onBLEConnectionStateChanged.js +3 -0
  928. package/lib/clients/mp_web/tinaba/onBluetoothAdapterStateChange.d.ts +2 -0
  929. package/lib/clients/mp_web/tinaba/onBluetoothAdapterStateChange.js +3 -0
  930. package/lib/clients/mp_web/tinaba/onBluetoothDeviceFound.d.ts +2 -0
  931. package/lib/clients/mp_web/tinaba/onBluetoothDeviceFound.js +3 -0
  932. package/lib/clients/mp_web/tinaba/onCompassChange.d.ts +2 -0
  933. package/lib/clients/mp_web/tinaba/onCompassChange.js +3 -0
  934. package/lib/clients/mp_web/tinaba/onMemoryWarning.d.ts +2 -0
  935. package/lib/clients/mp_web/tinaba/onMemoryWarning.js +3 -0
  936. package/lib/clients/mp_web/tinaba/onSocketClose.d.ts +2 -0
  937. package/lib/clients/mp_web/tinaba/onSocketClose.js +3 -0
  938. package/lib/clients/mp_web/tinaba/onSocketError.d.ts +2 -0
  939. package/lib/clients/mp_web/tinaba/onSocketError.js +3 -0
  940. package/lib/clients/mp_web/tinaba/onSocketMessage.d.ts +2 -0
  941. package/lib/clients/mp_web/tinaba/onSocketMessage.js +3 -0
  942. package/lib/clients/mp_web/tinaba/onSocketOpen.d.ts +2 -0
  943. package/lib/clients/mp_web/tinaba/onSocketOpen.js +3 -0
  944. package/lib/clients/mp_web/tinaba/onUserCaptureScreen.d.ts +2 -0
  945. package/lib/clients/mp_web/tinaba/onUserCaptureScreen.js +3 -0
  946. package/lib/clients/mp_web/tinaba/openBluetoothAdapter.d.ts +2 -0
  947. package/lib/clients/mp_web/tinaba/openBluetoothAdapter.js +3 -0
  948. package/lib/clients/mp_web/tinaba/openDocument.d.ts +2 -0
  949. package/lib/clients/mp_web/tinaba/openDocument.js +3 -0
  950. package/lib/clients/mp_web/tinaba/openSetting.d.ts +2 -0
  951. package/lib/clients/mp_web/tinaba/openSetting.js +3 -0
  952. package/lib/clients/mp_web/tinaba/pageScrollTo.d.ts +2 -0
  953. package/lib/clients/mp_web/tinaba/pageScrollTo.js +3 -0
  954. package/lib/clients/mp_web/tinaba/previewImage.d.ts +2 -0
  955. package/lib/clients/mp_web/tinaba/previewImage.js +3 -0
  956. package/lib/clients/mp_web/tinaba/prompt.d.ts +2 -0
  957. package/lib/clients/mp_web/tinaba/prompt.js +3 -0
  958. package/lib/clients/mp_web/tinaba/reLaunch.d.ts +2 -0
  959. package/lib/clients/mp_web/tinaba/reLaunch.js +3 -0
  960. package/lib/clients/mp_web/tinaba/readBLECharacteristicValue.d.ts +2 -0
  961. package/lib/clients/mp_web/tinaba/readBLECharacteristicValue.js +3 -0
  962. package/lib/clients/mp_web/tinaba/redirectTo.d.ts +2 -0
  963. package/lib/clients/mp_web/tinaba/redirectTo.js +3 -0
  964. package/lib/clients/mp_web/tinaba/removeSavedFile.d.ts +2 -0
  965. package/lib/clients/mp_web/tinaba/removeSavedFile.js +3 -0
  966. package/lib/clients/mp_web/tinaba/removeStorage.d.ts +2 -0
  967. package/lib/clients/mp_web/tinaba/removeStorage.js +3 -0
  968. package/lib/clients/mp_web/tinaba/request.d.ts +2 -0
  969. package/lib/clients/mp_web/tinaba/request.js +3 -0
  970. package/lib/clients/mp_web/tinaba/rpc.d.ts +2 -0
  971. package/lib/clients/mp_web/tinaba/rpc.js +3 -0
  972. package/lib/clients/mp_web/tinaba/saveFile.d.ts +2 -0
  973. package/lib/clients/mp_web/tinaba/saveFile.js +3 -0
  974. package/lib/clients/mp_web/tinaba/saveImage.d.ts +2 -0
  975. package/lib/clients/mp_web/tinaba/saveImage.js +3 -0
  976. package/lib/clients/mp_web/tinaba/scan.d.ts +2 -0
  977. package/lib/clients/mp_web/tinaba/scan.js +3 -0
  978. package/lib/clients/mp_web/tinaba/sendSocketMessage.d.ts +2 -0
  979. package/lib/clients/mp_web/tinaba/sendSocketMessage.js +3 -0
  980. package/lib/clients/mp_web/tinaba/setBackgroundColor.d.ts +2 -0
  981. package/lib/clients/mp_web/tinaba/setBackgroundColor.js +3 -0
  982. package/lib/clients/mp_web/tinaba/setCanPullDown.d.ts +2 -0
  983. package/lib/clients/mp_web/tinaba/setCanPullDown.js +3 -0
  984. package/lib/clients/mp_web/tinaba/setClipboard.d.ts +2 -0
  985. package/lib/clients/mp_web/tinaba/setClipboard.js +3 -0
  986. package/lib/clients/mp_web/tinaba/setKeepScreenOn.d.ts +2 -0
  987. package/lib/clients/mp_web/tinaba/setKeepScreenOn.js +3 -0
  988. package/lib/clients/mp_web/tinaba/setNavigationBar.d.ts +2 -0
  989. package/lib/clients/mp_web/tinaba/setNavigationBar.js +3 -0
  990. package/lib/clients/mp_web/tinaba/setScreenBrightness.d.ts +2 -0
  991. package/lib/clients/mp_web/tinaba/setScreenBrightness.js +3 -0
  992. package/lib/clients/mp_web/tinaba/setStorage.d.ts +2 -0
  993. package/lib/clients/mp_web/tinaba/setStorage.js +3 -0
  994. package/lib/clients/mp_web/tinaba/setTabBarItem.d.ts +2 -0
  995. package/lib/clients/mp_web/tinaba/setTabBarItem.js +3 -0
  996. package/lib/clients/mp_web/tinaba/setTabBarStyle.d.ts +2 -0
  997. package/lib/clients/mp_web/tinaba/setTabBarStyle.js +3 -0
  998. package/lib/clients/mp_web/tinaba/setTransparentTitle.d.ts +2 -0
  999. package/lib/clients/mp_web/tinaba/setTransparentTitle.js +3 -0
  1000. package/lib/clients/mp_web/tinaba/showActionSheet.d.ts +2 -0
  1001. package/lib/clients/mp_web/tinaba/showActionSheet.js +3 -0
  1002. package/lib/clients/mp_web/tinaba/showAuthGuide.d.ts +2 -0
  1003. package/lib/clients/mp_web/tinaba/showAuthGuide.js +3 -0
  1004. package/lib/clients/mp_web/tinaba/showLoading.d.ts +2 -0
  1005. package/lib/clients/mp_web/tinaba/showLoading.js +3 -0
  1006. package/lib/clients/mp_web/tinaba/showNavigationBarLoading.d.ts +2 -0
  1007. package/lib/clients/mp_web/tinaba/showNavigationBarLoading.js +3 -0
  1008. package/lib/clients/mp_web/tinaba/showSharePanel.d.ts +2 -0
  1009. package/lib/clients/mp_web/tinaba/showSharePanel.js +3 -0
  1010. package/lib/clients/mp_web/tinaba/showTabBar.d.ts +2 -0
  1011. package/lib/clients/mp_web/tinaba/showTabBar.js +3 -0
  1012. package/lib/clients/mp_web/tinaba/showToast.d.ts +2 -0
  1013. package/lib/clients/mp_web/tinaba/showToast.js +3 -0
  1014. package/lib/clients/mp_web/tinaba/signContract.d.ts +2 -0
  1015. package/lib/clients/mp_web/tinaba/signContract.js +3 -0
  1016. package/lib/clients/mp_web/tinaba/startBluetoothDevicesDiscovery.d.ts +2 -0
  1017. package/lib/clients/mp_web/tinaba/startBluetoothDevicesDiscovery.js +3 -0
  1018. package/lib/clients/mp_web/tinaba/startPullDownRefresh.d.ts +2 -0
  1019. package/lib/clients/mp_web/tinaba/startPullDownRefresh.js +3 -0
  1020. package/lib/clients/mp_web/tinaba/stopBluetoothDevicesDiscovery.d.ts +2 -0
  1021. package/lib/clients/mp_web/tinaba/stopBluetoothDevicesDiscovery.js +3 -0
  1022. package/lib/clients/mp_web/tinaba/stopPullDownRefresh.d.ts +2 -0
  1023. package/lib/clients/mp_web/tinaba/stopPullDownRefresh.js +3 -0
  1024. package/lib/clients/mp_web/tinaba/switchTab.d.ts +2 -0
  1025. package/lib/clients/mp_web/tinaba/switchTab.js +3 -0
  1026. package/lib/clients/mp_web/tinaba/tradePay.d.ts +2 -0
  1027. package/lib/clients/mp_web/tinaba/tradePay.js +3 -0
  1028. package/lib/clients/mp_web/tinaba/uploadFile.d.ts +2 -0
  1029. package/lib/clients/mp_web/tinaba/uploadFile.js +3 -0
  1030. package/lib/clients/mp_web/tinaba/vibrate.d.ts +2 -0
  1031. package/lib/clients/mp_web/tinaba/vibrate.js +3 -0
  1032. package/lib/clients/mp_web/tinaba/watchShake.d.ts +2 -0
  1033. package/lib/clients/mp_web/tinaba/watchShake.js +3 -0
  1034. package/lib/clients/mp_web/tinaba/writeBLECharacteristicValue.d.ts +2 -0
  1035. package/lib/clients/mp_web/tinaba/writeBLECharacteristicValue.js +3 -0
  1036. package/lib/clients/mp_web/zalopay/addPhoneContact.d.ts +2 -0
  1037. package/lib/clients/mp_web/zalopay/addPhoneContact.js +3 -0
  1038. package/lib/clients/mp_web/zalopay/alert.d.ts +2 -0
  1039. package/lib/clients/mp_web/zalopay/alert.js +3 -0
  1040. package/lib/clients/mp_web/zalopay/chooseFileFromDisk.d.ts +2 -0
  1041. package/lib/clients/mp_web/zalopay/chooseFileFromDisk.js +3 -0
  1042. package/lib/clients/mp_web/zalopay/chooseImage.d.ts +2 -0
  1043. package/lib/clients/mp_web/zalopay/chooseImage.js +3 -0
  1044. package/lib/clients/mp_web/zalopay/choosePhoneContact.d.ts +2 -0
  1045. package/lib/clients/mp_web/zalopay/choosePhoneContact.js +3 -0
  1046. package/lib/clients/mp_web/zalopay/chooseVideo.d.ts +2 -0
  1047. package/lib/clients/mp_web/zalopay/chooseVideo.js +3 -0
  1048. package/lib/clients/mp_web/zalopay/clearStorage.d.ts +2 -0
  1049. package/lib/clients/mp_web/zalopay/clearStorage.js +3 -0
  1050. package/lib/clients/mp_web/zalopay/closeBluetoothAdapter.d.ts +2 -0
  1051. package/lib/clients/mp_web/zalopay/closeBluetoothAdapter.js +3 -0
  1052. package/lib/clients/mp_web/zalopay/closeSocket.d.ts +2 -0
  1053. package/lib/clients/mp_web/zalopay/closeSocket.js +3 -0
  1054. package/lib/clients/mp_web/zalopay/compressImage.d.ts +2 -0
  1055. package/lib/clients/mp_web/zalopay/compressImage.js +3 -0
  1056. package/lib/clients/mp_web/zalopay/confirm.d.ts +2 -0
  1057. package/lib/clients/mp_web/zalopay/confirm.js +3 -0
  1058. package/lib/clients/mp_web/zalopay/connectBLEDevice.d.ts +2 -0
  1059. package/lib/clients/mp_web/zalopay/connectBLEDevice.js +3 -0
  1060. package/lib/clients/mp_web/zalopay/connectSocket.d.ts +2 -0
  1061. package/lib/clients/mp_web/zalopay/connectSocket.js +3 -0
  1062. package/lib/clients/mp_web/zalopay/datePicker.d.ts +2 -0
  1063. package/lib/clients/mp_web/zalopay/datePicker.js +3 -0
  1064. package/lib/clients/mp_web/zalopay/disconnectBLEDevice.d.ts +2 -0
  1065. package/lib/clients/mp_web/zalopay/disconnectBLEDevice.js +3 -0
  1066. package/lib/clients/mp_web/zalopay/downloadFile.d.ts +2 -0
  1067. package/lib/clients/mp_web/zalopay/downloadFile.js +3 -0
  1068. package/lib/clients/mp_web/zalopay/exitApp.d.ts +2 -0
  1069. package/lib/clients/mp_web/zalopay/exitApp.js +3 -0
  1070. package/lib/clients/mp_web/zalopay/getAppId.d.ts +2 -0
  1071. package/lib/clients/mp_web/zalopay/getAppId.js +3 -0
  1072. package/lib/clients/mp_web/zalopay/getAppToken.d.ts +2 -0
  1073. package/lib/clients/mp_web/zalopay/getAppToken.js +3 -0
  1074. package/lib/clients/mp_web/zalopay/getAuthCode.d.ts +2 -0
  1075. package/lib/clients/mp_web/zalopay/getAuthCode.js +3 -0
  1076. package/lib/clients/mp_web/zalopay/getBLEDeviceCharacteristics.d.ts +2 -0
  1077. package/lib/clients/mp_web/zalopay/getBLEDeviceCharacteristics.js +3 -0
  1078. package/lib/clients/mp_web/zalopay/getBLEDeviceServices.d.ts +2 -0
  1079. package/lib/clients/mp_web/zalopay/getBLEDeviceServices.js +3 -0
  1080. package/lib/clients/mp_web/zalopay/getBackgroundFetchData.d.ts +2 -0
  1081. package/lib/clients/mp_web/zalopay/getBackgroundFetchData.js +3 -0
  1082. package/lib/clients/mp_web/zalopay/getBatteryInfo.d.ts +2 -0
  1083. package/lib/clients/mp_web/zalopay/getBatteryInfo.js +3 -0
  1084. package/lib/clients/mp_web/zalopay/getBluetoothAdapterState.d.ts +2 -0
  1085. package/lib/clients/mp_web/zalopay/getBluetoothAdapterState.js +3 -0
  1086. package/lib/clients/mp_web/zalopay/getBluetoothDevices.d.ts +2 -0
  1087. package/lib/clients/mp_web/zalopay/getBluetoothDevices.js +3 -0
  1088. package/lib/clients/mp_web/zalopay/getClipboard.d.ts +2 -0
  1089. package/lib/clients/mp_web/zalopay/getClipboard.js +3 -0
  1090. package/lib/clients/mp_web/zalopay/getConnectedBluetoothDevices.d.ts +2 -0
  1091. package/lib/clients/mp_web/zalopay/getConnectedBluetoothDevices.js +3 -0
  1092. package/lib/clients/mp_web/zalopay/getCurrentPages.d.ts +2 -0
  1093. package/lib/clients/mp_web/zalopay/getCurrentPages.js +3 -0
  1094. package/lib/clients/mp_web/zalopay/getEnterOptionsSync.d.ts +2 -0
  1095. package/lib/clients/mp_web/zalopay/getEnterOptionsSync.js +3 -0
  1096. package/lib/clients/mp_web/zalopay/getFileInfo.d.ts +2 -0
  1097. package/lib/clients/mp_web/zalopay/getFileInfo.js +3 -0
  1098. package/lib/clients/mp_web/zalopay/getImageInfo.d.ts +2 -0
  1099. package/lib/clients/mp_web/zalopay/getImageInfo.js +3 -0
  1100. package/lib/clients/mp_web/zalopay/getLocation.d.ts +2 -0
  1101. package/lib/clients/mp_web/zalopay/getLocation.js +3 -0
  1102. package/lib/clients/mp_web/zalopay/getNetworkType.d.ts +2 -0
  1103. package/lib/clients/mp_web/zalopay/getNetworkType.js +3 -0
  1104. package/lib/clients/mp_web/zalopay/getOpenUserInfo.d.ts +2 -0
  1105. package/lib/clients/mp_web/zalopay/getOpenUserInfo.js +3 -0
  1106. package/lib/clients/mp_web/zalopay/getRunScene.d.ts +2 -0
  1107. package/lib/clients/mp_web/zalopay/getRunScene.js +3 -0
  1108. package/lib/clients/mp_web/zalopay/getSDKVersion.d.ts +2 -0
  1109. package/lib/clients/mp_web/zalopay/getSDKVersion.js +3 -0
  1110. package/lib/clients/mp_web/zalopay/getSavedFileInfo.d.ts +2 -0
  1111. package/lib/clients/mp_web/zalopay/getSavedFileInfo.js +3 -0
  1112. package/lib/clients/mp_web/zalopay/getSavedFileList.d.ts +2 -0
  1113. package/lib/clients/mp_web/zalopay/getSavedFileList.js +3 -0
  1114. package/lib/clients/mp_web/zalopay/getScreenBrightness.d.ts +2 -0
  1115. package/lib/clients/mp_web/zalopay/getScreenBrightness.js +3 -0
  1116. package/lib/clients/mp_web/zalopay/getServerTime.d.ts +2 -0
  1117. package/lib/clients/mp_web/zalopay/getServerTime.js +3 -0
  1118. package/lib/clients/mp_web/zalopay/getSetting.d.ts +2 -0
  1119. package/lib/clients/mp_web/zalopay/getSetting.js +3 -0
  1120. package/lib/clients/mp_web/zalopay/getSiteInfo.d.ts +2 -0
  1121. package/lib/clients/mp_web/zalopay/getSiteInfo.js +3 -0
  1122. package/lib/clients/mp_web/zalopay/getStorage.d.ts +2 -0
  1123. package/lib/clients/mp_web/zalopay/getStorage.js +3 -0
  1124. package/lib/clients/mp_web/zalopay/getSystemInfo.d.ts +2 -0
  1125. package/lib/clients/mp_web/zalopay/getSystemInfo.js +3 -0
  1126. package/lib/clients/mp_web/zalopay/hideBackHome.d.ts +2 -0
  1127. package/lib/clients/mp_web/zalopay/hideBackHome.js +3 -0
  1128. package/lib/clients/mp_web/zalopay/hideKeyboard.d.ts +2 -0
  1129. package/lib/clients/mp_web/zalopay/hideKeyboard.js +3 -0
  1130. package/lib/clients/mp_web/zalopay/hideLoading.d.ts +2 -0
  1131. package/lib/clients/mp_web/zalopay/hideLoading.js +3 -0
  1132. package/lib/clients/mp_web/zalopay/hideNavigationBarLoading.d.ts +2 -0
  1133. package/lib/clients/mp_web/zalopay/hideNavigationBarLoading.js +3 -0
  1134. package/lib/clients/mp_web/zalopay/hideTabBar.d.ts +2 -0
  1135. package/lib/clients/mp_web/zalopay/hideTabBar.js +3 -0
  1136. package/lib/clients/mp_web/zalopay/hideToast.d.ts +2 -0
  1137. package/lib/clients/mp_web/zalopay/hideToast.js +3 -0
  1138. package/lib/clients/mp_web/zalopay/index.d.ts +451 -0
  1139. package/lib/clients/mp_web/zalopay/index.js +261 -0
  1140. package/lib/clients/mp_web/zalopay/makePhoneCall.d.ts +2 -0
  1141. package/lib/clients/mp_web/zalopay/makePhoneCall.js +3 -0
  1142. package/lib/clients/mp_web/zalopay/multiLevelSelect.d.ts +2 -0
  1143. package/lib/clients/mp_web/zalopay/multiLevelSelect.js +3 -0
  1144. package/lib/clients/mp_web/zalopay/navigateBack.d.ts +2 -0
  1145. package/lib/clients/mp_web/zalopay/navigateBack.js +3 -0
  1146. package/lib/clients/mp_web/zalopay/navigateBackMiniProgram.d.ts +2 -0
  1147. package/lib/clients/mp_web/zalopay/navigateBackMiniProgram.js +3 -0
  1148. package/lib/clients/mp_web/zalopay/navigateTo.d.ts +2 -0
  1149. package/lib/clients/mp_web/zalopay/navigateTo.js +3 -0
  1150. package/lib/clients/mp_web/zalopay/navigateToBizScene.d.ts +2 -0
  1151. package/lib/clients/mp_web/zalopay/navigateToBizScene.js +3 -0
  1152. package/lib/clients/mp_web/zalopay/navigateToMiniProgram.d.ts +2 -0
  1153. package/lib/clients/mp_web/zalopay/navigateToMiniProgram.js +3 -0
  1154. package/lib/clients/mp_web/zalopay/notifyBLECharacteristicValueChange.d.ts +2 -0
  1155. package/lib/clients/mp_web/zalopay/notifyBLECharacteristicValueChange.js +3 -0
  1156. package/lib/clients/mp_web/zalopay/offAccelerometerChange.d.ts +2 -0
  1157. package/lib/clients/mp_web/zalopay/offAccelerometerChange.js +3 -0
  1158. package/lib/clients/mp_web/zalopay/offBLECharacteristicValueChange.d.ts +2 -0
  1159. package/lib/clients/mp_web/zalopay/offBLECharacteristicValueChange.js +3 -0
  1160. package/lib/clients/mp_web/zalopay/offBLEConnectionStateChanged.d.ts +2 -0
  1161. package/lib/clients/mp_web/zalopay/offBLEConnectionStateChanged.js +3 -0
  1162. package/lib/clients/mp_web/zalopay/offBluetoothAdapterStateChange.d.ts +2 -0
  1163. package/lib/clients/mp_web/zalopay/offBluetoothAdapterStateChange.js +3 -0
  1164. package/lib/clients/mp_web/zalopay/offBluetoothDeviceFound.d.ts +2 -0
  1165. package/lib/clients/mp_web/zalopay/offBluetoothDeviceFound.js +3 -0
  1166. package/lib/clients/mp_web/zalopay/offCompassChange.d.ts +2 -0
  1167. package/lib/clients/mp_web/zalopay/offCompassChange.js +3 -0
  1168. package/lib/clients/mp_web/zalopay/offMemoryWarning.d.ts +2 -0
  1169. package/lib/clients/mp_web/zalopay/offMemoryWarning.js +3 -0
  1170. package/lib/clients/mp_web/zalopay/offSocketClose.d.ts +2 -0
  1171. package/lib/clients/mp_web/zalopay/offSocketClose.js +3 -0
  1172. package/lib/clients/mp_web/zalopay/offSocketError.d.ts +2 -0
  1173. package/lib/clients/mp_web/zalopay/offSocketError.js +3 -0
  1174. package/lib/clients/mp_web/zalopay/offSocketMessage.d.ts +2 -0
  1175. package/lib/clients/mp_web/zalopay/offSocketMessage.js +3 -0
  1176. package/lib/clients/mp_web/zalopay/offSocketOpen.d.ts +2 -0
  1177. package/lib/clients/mp_web/zalopay/offSocketOpen.js +3 -0
  1178. package/lib/clients/mp_web/zalopay/offUserCaptureScreen.d.ts +2 -0
  1179. package/lib/clients/mp_web/zalopay/offUserCaptureScreen.js +3 -0
  1180. package/lib/clients/mp_web/zalopay/onAccelerometerChange.d.ts +2 -0
  1181. package/lib/clients/mp_web/zalopay/onAccelerometerChange.js +3 -0
  1182. package/lib/clients/mp_web/zalopay/onBLECharacteristicValueChange.d.ts +2 -0
  1183. package/lib/clients/mp_web/zalopay/onBLECharacteristicValueChange.js +3 -0
  1184. package/lib/clients/mp_web/zalopay/onBLEConnectionStateChanged.d.ts +2 -0
  1185. package/lib/clients/mp_web/zalopay/onBLEConnectionStateChanged.js +3 -0
  1186. package/lib/clients/mp_web/zalopay/onBluetoothAdapterStateChange.d.ts +2 -0
  1187. package/lib/clients/mp_web/zalopay/onBluetoothAdapterStateChange.js +3 -0
  1188. package/lib/clients/mp_web/zalopay/onBluetoothDeviceFound.d.ts +2 -0
  1189. package/lib/clients/mp_web/zalopay/onBluetoothDeviceFound.js +3 -0
  1190. package/lib/clients/mp_web/zalopay/onCompassChange.d.ts +2 -0
  1191. package/lib/clients/mp_web/zalopay/onCompassChange.js +3 -0
  1192. package/lib/clients/mp_web/zalopay/onMemoryWarning.d.ts +2 -0
  1193. package/lib/clients/mp_web/zalopay/onMemoryWarning.js +3 -0
  1194. package/lib/clients/mp_web/zalopay/onSocketClose.d.ts +2 -0
  1195. package/lib/clients/mp_web/zalopay/onSocketClose.js +3 -0
  1196. package/lib/clients/mp_web/zalopay/onSocketError.d.ts +2 -0
  1197. package/lib/clients/mp_web/zalopay/onSocketError.js +3 -0
  1198. package/lib/clients/mp_web/zalopay/onSocketMessage.d.ts +2 -0
  1199. package/lib/clients/mp_web/zalopay/onSocketMessage.js +3 -0
  1200. package/lib/clients/mp_web/zalopay/onSocketOpen.d.ts +2 -0
  1201. package/lib/clients/mp_web/zalopay/onSocketOpen.js +3 -0
  1202. package/lib/clients/mp_web/zalopay/onUserCaptureScreen.d.ts +2 -0
  1203. package/lib/clients/mp_web/zalopay/onUserCaptureScreen.js +3 -0
  1204. package/lib/clients/mp_web/zalopay/openBluetoothAdapter.d.ts +2 -0
  1205. package/lib/clients/mp_web/zalopay/openBluetoothAdapter.js +3 -0
  1206. package/lib/clients/mp_web/zalopay/openDocument.d.ts +2 -0
  1207. package/lib/clients/mp_web/zalopay/openDocument.js +3 -0
  1208. package/lib/clients/mp_web/zalopay/openSetting.d.ts +2 -0
  1209. package/lib/clients/mp_web/zalopay/openSetting.js +3 -0
  1210. package/lib/clients/mp_web/zalopay/pageScrollTo.d.ts +2 -0
  1211. package/lib/clients/mp_web/zalopay/pageScrollTo.js +3 -0
  1212. package/lib/clients/mp_web/zalopay/previewImage.d.ts +2 -0
  1213. package/lib/clients/mp_web/zalopay/previewImage.js +3 -0
  1214. package/lib/clients/mp_web/zalopay/prompt.d.ts +2 -0
  1215. package/lib/clients/mp_web/zalopay/prompt.js +3 -0
  1216. package/lib/clients/mp_web/zalopay/reLaunch.d.ts +2 -0
  1217. package/lib/clients/mp_web/zalopay/reLaunch.js +3 -0
  1218. package/lib/clients/mp_web/zalopay/readBLECharacteristicValue.d.ts +2 -0
  1219. package/lib/clients/mp_web/zalopay/readBLECharacteristicValue.js +3 -0
  1220. package/lib/clients/mp_web/zalopay/redirectTo.d.ts +2 -0
  1221. package/lib/clients/mp_web/zalopay/redirectTo.js +3 -0
  1222. package/lib/clients/mp_web/zalopay/removeSavedFile.d.ts +2 -0
  1223. package/lib/clients/mp_web/zalopay/removeSavedFile.js +3 -0
  1224. package/lib/clients/mp_web/zalopay/removeStorage.d.ts +2 -0
  1225. package/lib/clients/mp_web/zalopay/removeStorage.js +3 -0
  1226. package/lib/clients/mp_web/zalopay/request.d.ts +2 -0
  1227. package/lib/clients/mp_web/zalopay/request.js +3 -0
  1228. package/lib/clients/mp_web/zalopay/rpc.d.ts +2 -0
  1229. package/lib/clients/mp_web/zalopay/rpc.js +3 -0
  1230. package/lib/clients/mp_web/zalopay/saveFile.d.ts +2 -0
  1231. package/lib/clients/mp_web/zalopay/saveFile.js +3 -0
  1232. package/lib/clients/mp_web/zalopay/saveImage.d.ts +2 -0
  1233. package/lib/clients/mp_web/zalopay/saveImage.js +3 -0
  1234. package/lib/clients/mp_web/zalopay/scan.d.ts +2 -0
  1235. package/lib/clients/mp_web/zalopay/scan.js +3 -0
  1236. package/lib/clients/mp_web/zalopay/sendSocketMessage.d.ts +2 -0
  1237. package/lib/clients/mp_web/zalopay/sendSocketMessage.js +3 -0
  1238. package/lib/clients/mp_web/zalopay/setBackgroundColor.d.ts +2 -0
  1239. package/lib/clients/mp_web/zalopay/setBackgroundColor.js +3 -0
  1240. package/lib/clients/mp_web/zalopay/setCanPullDown.d.ts +2 -0
  1241. package/lib/clients/mp_web/zalopay/setCanPullDown.js +3 -0
  1242. package/lib/clients/mp_web/zalopay/setClipboard.d.ts +2 -0
  1243. package/lib/clients/mp_web/zalopay/setClipboard.js +3 -0
  1244. package/lib/clients/mp_web/zalopay/setKeepScreenOn.d.ts +2 -0
  1245. package/lib/clients/mp_web/zalopay/setKeepScreenOn.js +3 -0
  1246. package/lib/clients/mp_web/zalopay/setNavigationBar.d.ts +2 -0
  1247. package/lib/clients/mp_web/zalopay/setNavigationBar.js +3 -0
  1248. package/lib/clients/mp_web/zalopay/setScreenBrightness.d.ts +2 -0
  1249. package/lib/clients/mp_web/zalopay/setScreenBrightness.js +3 -0
  1250. package/lib/clients/mp_web/zalopay/setStorage.d.ts +2 -0
  1251. package/lib/clients/mp_web/zalopay/setStorage.js +3 -0
  1252. package/lib/clients/mp_web/zalopay/setTabBarItem.d.ts +2 -0
  1253. package/lib/clients/mp_web/zalopay/setTabBarItem.js +3 -0
  1254. package/lib/clients/mp_web/zalopay/setTabBarStyle.d.ts +2 -0
  1255. package/lib/clients/mp_web/zalopay/setTabBarStyle.js +3 -0
  1256. package/lib/clients/mp_web/zalopay/setTransparentTitle.d.ts +2 -0
  1257. package/lib/clients/mp_web/zalopay/setTransparentTitle.js +3 -0
  1258. package/lib/clients/mp_web/zalopay/showActionSheet.d.ts +2 -0
  1259. package/lib/clients/mp_web/zalopay/showActionSheet.js +3 -0
  1260. package/lib/clients/mp_web/zalopay/showAuthGuide.d.ts +2 -0
  1261. package/lib/clients/mp_web/zalopay/showAuthGuide.js +3 -0
  1262. package/lib/clients/mp_web/zalopay/showLoading.d.ts +2 -0
  1263. package/lib/clients/mp_web/zalopay/showLoading.js +3 -0
  1264. package/lib/clients/mp_web/zalopay/showNavigationBarLoading.d.ts +2 -0
  1265. package/lib/clients/mp_web/zalopay/showNavigationBarLoading.js +3 -0
  1266. package/lib/clients/mp_web/zalopay/showSharePanel.d.ts +2 -0
  1267. package/lib/clients/mp_web/zalopay/showSharePanel.js +3 -0
  1268. package/lib/clients/mp_web/zalopay/showTabBar.d.ts +2 -0
  1269. package/lib/clients/mp_web/zalopay/showTabBar.js +3 -0
  1270. package/lib/clients/mp_web/zalopay/showToast.d.ts +2 -0
  1271. package/lib/clients/mp_web/zalopay/showToast.js +3 -0
  1272. package/lib/clients/mp_web/zalopay/signContract.d.ts +2 -0
  1273. package/lib/clients/mp_web/zalopay/signContract.js +3 -0
  1274. package/lib/clients/mp_web/zalopay/startBluetoothDevicesDiscovery.d.ts +2 -0
  1275. package/lib/clients/mp_web/zalopay/startBluetoothDevicesDiscovery.js +3 -0
  1276. package/lib/clients/mp_web/zalopay/startPullDownRefresh.d.ts +2 -0
  1277. package/lib/clients/mp_web/zalopay/startPullDownRefresh.js +3 -0
  1278. package/lib/clients/mp_web/zalopay/stopBluetoothDevicesDiscovery.d.ts +2 -0
  1279. package/lib/clients/mp_web/zalopay/stopBluetoothDevicesDiscovery.js +3 -0
  1280. package/lib/clients/mp_web/zalopay/stopPullDownRefresh.d.ts +2 -0
  1281. package/lib/clients/mp_web/zalopay/stopPullDownRefresh.js +3 -0
  1282. package/lib/clients/mp_web/zalopay/switchTab.d.ts +2 -0
  1283. package/lib/clients/mp_web/zalopay/switchTab.js +3 -0
  1284. package/lib/clients/mp_web/zalopay/tradePay.d.ts +2 -0
  1285. package/lib/clients/mp_web/zalopay/tradePay.js +3 -0
  1286. package/lib/clients/mp_web/zalopay/uploadFile.d.ts +2 -0
  1287. package/lib/clients/mp_web/zalopay/uploadFile.js +3 -0
  1288. package/lib/clients/mp_web/zalopay/vibrate.d.ts +2 -0
  1289. package/lib/clients/mp_web/zalopay/vibrate.js +3 -0
  1290. package/lib/clients/mp_web/zalopay/watchShake.d.ts +2 -0
  1291. package/lib/clients/mp_web/zalopay/watchShake.js +3 -0
  1292. package/lib/clients/mp_web/zalopay/writeBLECharacteristicValue.d.ts +2 -0
  1293. package/lib/clients/mp_web/zalopay/writeBLECharacteristicValue.js +3 -0
  1294. package/lib/clients/web/changipay/alert.d.ts +2 -0
  1295. package/lib/clients/web/changipay/alert.js +3 -0
  1296. package/lib/clients/web/changipay/getAuthCode.d.ts +2 -0
  1297. package/lib/clients/web/changipay/getAuthCode.js +3 -0
  1298. package/lib/clients/web/changipay/getLocation.d.ts +2 -0
  1299. package/lib/clients/web/changipay/getLocation.js +3 -0
  1300. package/lib/clients/web/changipay/getStorage.d.ts +2 -0
  1301. package/lib/clients/web/changipay/getStorage.js +3 -0
  1302. package/lib/clients/web/changipay/getStorageSync.d.ts +2 -0
  1303. package/lib/clients/web/changipay/getStorageSync.js +3 -0
  1304. package/lib/clients/web/changipay/getSystemInfo.d.ts +2 -0
  1305. package/lib/clients/web/changipay/getSystemInfo.js +3 -0
  1306. package/lib/clients/web/changipay/getSystemInfoSync.d.ts +2 -0
  1307. package/lib/clients/web/changipay/getSystemInfoSync.js +3 -0
  1308. package/lib/clients/web/changipay/index.d.ts +53 -0
  1309. package/lib/clients/web/changipay/index.js +33 -0
  1310. package/lib/clients/web/changipay/navigateTo.d.ts +2 -0
  1311. package/lib/clients/web/changipay/navigateTo.js +3 -0
  1312. package/lib/clients/web/changipay/redirectTo.d.ts +2 -0
  1313. package/lib/clients/web/changipay/redirectTo.js +3 -0
  1314. package/lib/clients/web/changipay/removeStorage.d.ts +2 -0
  1315. package/lib/clients/web/changipay/removeStorage.js +3 -0
  1316. package/lib/clients/web/changipay/request.d.ts +2 -0
  1317. package/lib/clients/web/changipay/request.js +3 -0
  1318. package/lib/clients/web/changipay/setClipboard.d.ts +2 -0
  1319. package/lib/clients/web/changipay/setClipboard.js +3 -0
  1320. package/lib/clients/web/changipay/setStorage.d.ts +2 -0
  1321. package/lib/clients/web/changipay/setStorage.js +3 -0
  1322. package/lib/clients/web/changipay/showToast.d.ts +2 -0
  1323. package/lib/clients/web/changipay/showToast.js +3 -0
  1324. package/lib/clients/web/kaspi/alert.d.ts +2 -0
  1325. package/lib/clients/web/kaspi/alert.js +3 -0
  1326. package/lib/clients/web/kaspi/getAuthCode.d.ts +2 -0
  1327. package/lib/clients/web/kaspi/getAuthCode.js +3 -0
  1328. package/lib/clients/web/kaspi/getLocation.d.ts +2 -0
  1329. package/lib/clients/web/kaspi/getLocation.js +3 -0
  1330. package/lib/clients/web/kaspi/getStorage.d.ts +2 -0
  1331. package/lib/clients/web/kaspi/getStorage.js +3 -0
  1332. package/lib/clients/web/kaspi/getStorageSync.d.ts +2 -0
  1333. package/lib/clients/web/kaspi/getStorageSync.js +3 -0
  1334. package/lib/clients/web/kaspi/getSystemInfo.d.ts +2 -0
  1335. package/lib/clients/web/kaspi/getSystemInfo.js +3 -0
  1336. package/lib/clients/web/kaspi/getSystemInfoSync.d.ts +2 -0
  1337. package/lib/clients/web/kaspi/getSystemInfoSync.js +3 -0
  1338. package/lib/clients/web/kaspi/index.d.ts +53 -0
  1339. package/lib/clients/web/kaspi/index.js +33 -0
  1340. package/lib/clients/web/kaspi/navigateTo.d.ts +2 -0
  1341. package/lib/clients/web/kaspi/navigateTo.js +3 -0
  1342. package/lib/clients/web/kaspi/redirectTo.d.ts +2 -0
  1343. package/lib/clients/web/kaspi/redirectTo.js +3 -0
  1344. package/lib/clients/web/kaspi/removeStorage.d.ts +2 -0
  1345. package/lib/clients/web/kaspi/removeStorage.js +3 -0
  1346. package/lib/clients/web/kaspi/request.d.ts +2 -0
  1347. package/lib/clients/web/kaspi/request.js +3 -0
  1348. package/lib/clients/web/kaspi/setClipboard.d.ts +2 -0
  1349. package/lib/clients/web/kaspi/setClipboard.js +3 -0
  1350. package/lib/clients/web/kaspi/setStorage.d.ts +2 -0
  1351. package/lib/clients/web/kaspi/setStorage.js +3 -0
  1352. package/lib/clients/web/kaspi/showToast.d.ts +2 -0
  1353. package/lib/clients/web/kaspi/showToast.js +3 -0
  1354. package/lib/code/authLoginSrcCode.js +38 -13
  1355. package/lib/common/apis/custom/web/changipay/getAuthCode.d.ts +3 -0
  1356. package/lib/common/apis/custom/web/changipay/getAuthCode.js +66 -0
  1357. package/lib/common/apis/custom/web/changipay/getSystemInfo.d.ts +2 -0
  1358. package/lib/common/apis/custom/web/changipay/getSystemInfo.js +36 -0
  1359. package/lib/common/apis/custom/web/kaspi/getAuthCode.d.ts +3 -0
  1360. package/lib/common/apis/custom/web/kaspi/getAuthCode.js +66 -0
  1361. package/lib/common/apis/custom/web/kaspi/getSystemInfo.d.ts +2 -0
  1362. package/lib/common/apis/custom/web/kaspi/getSystemInfo.js +36 -0
  1363. package/lib/common/apis/generated/web/getSystemInfoSync.d.ts +2 -0
  1364. package/lib/common/apis/generated/web/getSystemInfoSync.js +7 -0
  1365. package/lib/common/apis/generated/web/redirectTo.d.ts +9 -0
  1366. package/lib/common/apis/generated/web/redirectTo.js +14 -0
  1367. package/lib/dsl.d.ts +236 -236
  1368. package/lib/dsl.js +236 -236
  1369. package/lib/umd/index.js +1 -1
  1370. package/lib/umd/mp_web_alipay.js +1 -1
  1371. package/lib/umd/mp_web_hipay.js +1 -0
  1372. package/lib/umd/mp_web_kakaopay.js +1 -0
  1373. package/lib/umd/mp_web_mpay.js +1 -1
  1374. package/lib/umd/mp_web_scb.js +1 -0
  1375. package/lib/umd/mp_web_tinaba.js +1 -0
  1376. package/lib/umd/mp_web_zalopay.js +1 -0
  1377. package/lib/umd/web_alipay.js +1 -1
  1378. package/lib/umd/web_changipay.js +2 -0
  1379. package/lib/umd/web_changipay.js.LICENSE.txt +1 -0
  1380. package/lib/umd/web_kaspi.js +2 -0
  1381. package/lib/umd/web_kaspi.js.LICENSE.txt +1 -0
  1382. package/package.json +1 -1
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>Y});var n=function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)},r=!1,a=[];function o(e){return a.push(e),function(){a=a.filter(function(t){return t!==e})}}function c(e){return r||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);a.forEach(function(e){return e(n)})}}),r=!0),n(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var i={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},u=function(e,t){void 0===t&&(t="");var n=i[e];return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}},s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},s.apply(this,arguments)},l={};function y(e,t,n){n=s({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(l[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var a=t;(null==n?void 0:n.timeout)&&(null==a?void 0:a.fail)&&setTimeout(function(){l[r]&&(delete l[r],a.fail(u("TIMEOUT")))},n.timeout)}o(function(e){var t,n=e,r=n.serialId;if(r&&l[r]){var a=l[r],o=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var c=o||{},i=c._data_;return"success"===c._type_?a(i):a(void 0,i)}var u=a||{},s=u.success,y=u.fail,f=u.complete,p=o||{},g=p._data_,d=p._type_;d?("success"===d&&(null==s||s(g)),"fail"===d&&(null==y||y(g)),null==f||f(g)):((null==o?void 0:o.error)?null==y||y(o):null==s||s(o),null==f||f(o)),delete l[r]}}),y.onMessage=o,y.postMessage=c,y.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},y.onReceiveGlobalData=function(e,t){return o(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var a=r.result||{},o=a._data_;return"success"===a._type_?t(o,void 0,r.from):t(void 0,o,r.from)}})},y.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var a=r.result||{},o=a._data_;return"success"===a._type_?t(o):t(void 0,o)}})};var f=function(){var e={},t=!1;return function(r,a,o){return new Promise(function(c,i){var u,l=a||{},y=l.success,f=l.fail,p=o||{},g=p.timeout,d=void 0===g?2e4:g,h=p.isSync;d>0&&(u=setTimeout(function(){var e={error:-101,errorMessage:"[".concat(r,"]: Timeout")};i(e),null==f||f(e)},d));var m={apiName:r,options:s(s({},a),{success:function(e){u&&clearTimeout(u),c(e),null==y||y(e)},fail:function(e){u&&clearTimeout(u),i(e),null==f||f(e)}}),isSync:h};n(function(){t||(document.addEventListener("onToWebViewMessage",function(t){var n=t.data.res;"message"===n.type&&function(t){var n,r=t.serialId;if(r&&e[r]){var a=e[r],o=t.result;if("callback"===(null===(n=t.config)||void 0===n?void 0:n.type)){var c=o||{},i=c._data_;return"success"===c._type_?a(i):a(void 0,i)}var u=a||{},s=u.success,l=u.fail,y=u.complete,f=o||{},p=f._data_,g=f._type_;g?("success"===g&&(null==s||s(p)),"fail"===g&&(null==l||l(p)),null==y||y(p)):((null==o?void 0:o.error)?null==l||l(o):null==s||s(o),null==y||y(o)),delete e[r]}}(JSON.parse(n.data))}),t=!0),function(t){var n,r=t.apiName,a=t.options,o=t.isSync,c=window,i=Math.floor(1e6*Math.random()),u="".concat(r,"_").concat(i);a&&(e[u]=a);var s={type:"apiCall",api:r,serialId:u,options:a,isSync:o,source:"hylid"};null===(n=c.AlipayJSBridge)||void 0===n||n.call("postWebViewMessage",{type:"message",detail:s})}(m)})})}}();var p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},p.apply(this,arguments)};function g(e,t){var n=e.filter(function(e){return e.match.every(function(e){return e.test(t)})});if(n.length){var r=n[0].name;if(n.length>1){var a=n.map(function(e){return e.name}).join(",");h("Multiple clients have been identified(".concat(a,"), and the first one(").concat(r,")is used by default."))}return r}}function d(e,t){return Object.keys(e).reduce(function(n,r){return n["is".concat(r)]=t===e[r],n},{})}function h(e){console.info("[hylid-env]: ".concat(e))}var m={WEB:"web",MPWEB:"mpweb",MP:"mp"},v={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"tmn",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng",WORLDFIRST:"worldfirst"},S=/miniprogram/i,b=/^((?!miniprogram).)*$/i,A=/griver/i,O=/^((?!griver).)*$/i,C=[{name:v.DEMO,match:[/demo/]},{name:v.ALIPAYHK,match:[/alipayHK/]},{name:v.TNGD,match:[/tngd/]},{name:v.GCASH,match:[/gcash/]},{name:v.TRUEMONEY,match:[/tmn/]},{name:v.DANA,match:[/dana/]},{name:v.TOSSPAY,match:[/toss/]},{name:v.ALIPAY,match:[/alipay/]},{name:v.MPAY,match:[/MPay/]},{name:v.HIPAY,match:[/hipay/]}],P=[{name:v.DEMO,match:[/alipayIDE/i]},{name:v.ALIPAYHK,match:[S,O,/AlipayClientHK/]},{name:v.TNGD,match:[S,/TNGKit|Touch 'n Go/]},{name:v.GCASH,match:[S,A,/GCash/]},{name:v.TRUEMONEY,match:[S,A,/TrueMoney/]},{name:v.MPAY,match:[S,O,/mpay|macaupay/i]},{name:v.ALIPAY,match:[S,O,/alipay/i]},{name:v.DEMO,match:[S,A]}];function w(){return g(P,window.navigator.userAgent)}var B=[{name:v.ALIPAYHK,match:[b,O,/AlipayClientHK/]},{name:v.TNGD,match:[b,A,/TNGKit|Touch 'n Go/]},{name:v.TNGD_H5NG,match:[b,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:v.GCASH,match:[b,A,/GCash/]},{name:v.TRUEMONEY,match:[b,A,/TrueMoney/i]},{name:v.KAKAOPAY,match:[b,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:v.KAKAOTALK,match:[b,/ALIPAYCONNECT_KAKAO_TALK/]},{name:v.NAVERPAY,match:[b,/NAVER/]},{name:v.MPAY,match:[b,/mpay|macaupay/i]},{name:v.TOSSPAY,match:[b,/Toss/i]},{name:v.ALIPAY,match:[b,O,/AlipayClient/]},{name:v.DEMO,match:[b,A,/GriverDemo/]},{name:v.WORLDFIRST,match:[b,O,/WorldFirst/]}];function k(){return g(B,window.navigator.userAgent)||v.H5}var T=function(){var e,t;if("undefined"!=typeof my&&"string"==typeof my.SDKVersion)e=g(C,my.getSystemInfoSync().app),t=m.MP;else{var n=function(){var e,t="__hy_env__",n=(null===(e=window.location.search)||void 0===e?void 0:e.match(/__app__=([^&]*)/))||[],r=n[1],a=(window.location.search.match(/__platform__=([^&]*)/)||[])[1],o=JSON.parse(localStorage.getItem(t)||"{}")||{};r&&(o.client=r),a&&(o.platform=a);try{localStorage.setItem(t,JSON.stringify(o))}catch(e){}if(n[1]){var c=window.location.search.replace(new RegExp("".concat(n[0],"(&)*")),""),i=window.location.hash||"",u="".concat(window.location.pathname).concat(c).concat(i);history.replaceState(null,"",u)}var s=JSON.parse(localStorage.getItem(t)||"{}"),l=localStorage.getItem("_CB__app__");return l?p(p({},s),{client:l}):s}();n.platform?(t=n.platform,e=n.client||("mpweb"===t?w():k())):(e=n.client||w())?t=m.MPWEB:(e=k(),t=m.WEB)}return t&&e||h("Cannot identify your client."),{client:e,platform:t}}(),E=T.client,D=T.platform;d(v,E),d(m,D);var I,L,M=((I={})[m.MP]=function(e,t,n){var r=(n||{}).type,a=void 0===r?"async":r;return"sync"===a||(null==n?void 0:n.isSync)?my[e](t):("async"===a&&(my[e]?my[e](t):my.call(e,t)),"callback"===a&&my[e](t),"attribute"===a?my[e]:void 0)},I[m.MPWEB]=y,I[m.WEB]=function(e,t,r){n(function(){var n=(r||{}).type,a=void 0===n?"async":n;"async"===a&&window.AlipayJSBridge.call(e,t,function(e){var n=t||{},r=n.success,a=n.fail,o=n.complete;e.error||e.errorCode?null==a||a(e):null==r||r(e),null==o||o(e)}),"callback"===a&&window.AlipayJSBridge.call(e,t)})},I);(L={})[m.MPWEB]=f,L[m.WEB]=function(e,t,n){return new Promise(function(r,a){var o,c=t||{},i=(c.success,c.fail),u=(c.complete,(n||{}).timeout),s=void 0===u?2e4:u;s>0&&(o=setTimeout(function(){var t={error:-101,errorMessage:"[".concat(e,"]: Timeout")};a(t),null==i||i(t)},s)),window.AlipayJSBridge.call(e,t,function(e){var n=t||{},c=n.success,i=n.fail,u=n.complete;o&&clearTimeout(o),(null==e?void 0:e.error)?(a(e),null==i||i(e)):(r(e),null==c||c(e)),null==u||u(e)})})};var _=["flowType"];function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const Y={addPhoneContact:function(e){return y("addPhoneContact",e,{type:"async"})},alert:function(e){return y("alert",e,{type:"async"})},chooseImage:function(e){return y("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return y("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return y("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return y("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return y("closeSocket",e,{type:"async"})},confirm:function(e){return y("confirm",e,{type:"async"})},connectBLEDevice:function(e){return y("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return y("connectSocket",e,{type:"async"})},datePicker:function(e){return y("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return y("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return y("downloadFile",e,{type:"async"})},getAuthCode:function(e){return y("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return y("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return y("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return y("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return y("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return y("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return y("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return y("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return y("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return y("getImageInfo",e,{type:"async"})},getLocation:function(e){return y("getLocation",e,{type:"async"})},getNetworkType:function(e){return y("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return y("getOpenUserInfo",e,{type:"async"})},getPhoneNumber:function(e){return y("getPhoneNumber",e,{type:"async"})},getSavedFileInfo:function(e){return y("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return y("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return y("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return y("getServerTime",e,{type:"async"})},getSetting:function(e){return y("getSetting",e,{type:"async"})},getSiteInfo:function(e){return y("getSiteInfo",e,{type:"async"})},getStorage:function(e){return y("getStorage",e,{type:"async"})},getSystemInfo:function(e){return y("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return y("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return y("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return y("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return y("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return y("hideTabBar",e,{type:"async"})},hideToast:function(e){return y("hideToast",e,{type:"async"})},makePhoneCall:function(e){return y("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return y("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return y("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return y("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return y("navigateTo",e,{type:"async"})},navigateToMiniProgram:function(e){return y("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return y("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return y("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return y("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return y("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return y("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return y("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return y("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return y("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return y("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return y("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return y("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return y("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return y("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return y("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return y("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return y("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return y("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return y("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return y("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return y("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return y("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return y("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return y("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return y("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return y("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return y("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return y("openDocument",e,{type:"async"})},openSetting:function(e){return y("openSetting",e,{type:"async"})},pageScrollTo:function(e){return y("pageScrollTo",e,{type:"async"})},previewImage:function(e){return y("previewImage",e,{type:"async"})},prompt:function(e){return y("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return y("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return y("redirectTo",e,{type:"async"})},reLaunch:function(e){return y("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return y("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return y("removeStorage",e,{type:"async"})},request:function(e){return y("request",e,{type:"async"})},rpc:function(e){return y("rpc",e,{type:"async"})},saveFile:function(e){return y("saveFile",e,{type:"async"})},saveImage:function(e){return y("saveImage",e,{type:"async"})},scan:function(e){return y("scan",e,{type:"async"})},sendSocketMessage:function(e){return y("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return y("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return y("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return y("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return y("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return y("setNavigationBar",e,{type:"async"})},setOptionMenu:function(e){return y("setOptionMenu",e,{type:"async"})},setScreenBrightness:function(e){return y("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return y("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return y("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return y("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return y("showAuthGuide",e,{type:"async"})},showLoading:function(e){return y("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return y("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return y("showToast",e,{type:"async"})},signContract:function(e){return y("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return y("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return y("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return y("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return y("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return y("switchTab",e,{type:"async"})},crossPay:function(e){return y("crossPay",e,{type:"async"})},uploadFile:function(e){return y("uploadFile",e,{type:"async"})},vibrate:function(e){return y("vibrate",e,{type:"async"})},watchShake:function(e){return y("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return y("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return y("showSharePanel",e,{type:"async"})},getBackgroundFetchData:function(e){return y("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return y("getEnterOptionsSync",e,{type:"async"})},tradePay:function(e){var t,n,r,a=e||{},o=a.flowType,c=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(a,_);t="a+"===o?"tradePayCrossApp":"tradePay",n=c,D?M[D](t,n,r):function(e,t,n){var r;void 0===n&&(n={});var a=n.type,o=void 0===a?"async":a,c=u("NOTFOUND",e);if("sync"===o)return c;"callback"===o&&(null==t||t(c)),"async"===o&&(null===(r=null==t?void 0:t.fail)||void 0===r||r.call(t,c))}(n,r)},getAppId:function(e){y("getAppIdSync",e,{type:"sync",isSync:!0})},getCurrentPages:function(e){y("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){y("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>Y});var n=function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)},r=!1,a=[];function o(e){return a.push(e),function(){a=a.filter(function(t){return t!==e})}}function c(e){return r||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);a.forEach(function(e){return e(n)})}}),r=!0),n(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var i={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},u=function(e,t){void 0===t&&(t="");var n=i[e];return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}},s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},s.apply(this,arguments)},l={};function y(e,t,n){n=s({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(l[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var a=t;(null==n?void 0:n.timeout)&&(null==a?void 0:a.fail)&&setTimeout(function(){l[r]&&(delete l[r],a.fail(u("TIMEOUT")))},n.timeout)}o(function(e){var t,n=e,r=n.serialId;if(r&&l[r]){var a=l[r],o=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var c=o||{},i=c._data_;return"success"===c._type_?a(i):a(void 0,i)}var u=a||{},s=u.success,y=u.fail,f=u.complete,p=o||{},g=p._data_,d=p._type_;d?("success"===d&&(null==s||s(g)),"fail"===d&&(null==y||y(g)),null==f||f(g)):((null==o?void 0:o.error)?null==y||y(o):null==s||s(o),null==f||f(o)),delete l[r]}}),y.onMessage=o,y.postMessage=c,y.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},y.onReceiveGlobalData=function(e,t){return o(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var a=r.result||{},o=a._data_;return"success"===a._type_?t(o,void 0,r.from):t(void 0,o,r.from)}})},y.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var a=r.result||{},o=a._data_;return"success"===a._type_?t(o):t(void 0,o)}})};var f=function(){var e={},t=!1;return function(r,a,o){return new Promise(function(c,i){var u,l=a||{},y=l.success,f=l.fail,p=o||{},g=p.timeout,d=void 0===g?2e4:g,m=p.isSync;d>0&&(u=setTimeout(function(){var e={error:-101,errorMessage:"[".concat(r,"]: Timeout")};i(e),null==f||f(e)},d));var h={apiName:r,options:s(s({},a),{success:function(e){u&&clearTimeout(u),c(e),null==y||y(e)},fail:function(e){u&&clearTimeout(u),i(e),null==f||f(e)}}),isSync:m};n(function(){t||(document.addEventListener("onToWebViewMessage",function(t){var n=t.data.res;"message"===n.type&&function(t){var n,r=t.serialId;if(r&&e[r]){var a=e[r],o=t.result;if("callback"===(null===(n=t.config)||void 0===n?void 0:n.type)){var c=o||{},i=c._data_;return"success"===c._type_?a(i):a(void 0,i)}var u=a||{},s=u.success,l=u.fail,y=u.complete,f=o||{},p=f._data_,g=f._type_;g?("success"===g&&(null==s||s(p)),"fail"===g&&(null==l||l(p)),null==y||y(p)):((null==o?void 0:o.error)?null==l||l(o):null==s||s(o),null==y||y(o)),delete e[r]}}(JSON.parse(n.data))}),t=!0),function(t){var n,r=t.apiName,a=t.options,o=t.isSync,c=window,i=Math.floor(1e6*Math.random()),u="".concat(r,"_").concat(i);a&&(e[u]=a);var s={type:"apiCall",api:r,serialId:u,options:a,isSync:o,source:"hylid"};null===(n=c.AlipayJSBridge)||void 0===n||n.call("postWebViewMessage",{type:"message",detail:s})}(h)})})}}();var p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},p.apply(this,arguments)};function g(e,t){var n=e.filter(function(e){return e.match.every(function(e){return e.test(t)})});if(n.length){var r=n[0].name;if(n.length>1){var a=n.map(function(e){return e.name}).join(",");m("Multiple clients have been identified(".concat(a,"), and the first one(").concat(r,")is used by default."))}return r}}function d(e,t){return Object.keys(e).reduce(function(n,r){return n["is".concat(r)]=t===e[r],n},{})}function m(e){console.info("[hylid-env]: ".concat(e))}var h={WEB:"web",MPWEB:"mpweb",MP:"mp"},v={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"tmn",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng",WORLDFIRST:"worldfirst"},S=/miniprogram/i,A=/^((?!miniprogram).)*$/i,b=/griver/i,O=/^((?!griver).)*$/i,C=[{name:v.DEMO,match:[/demo/]},{name:v.ALIPAYHK,match:[/alipayHK/]},{name:v.TNGD,match:[/tngd/]},{name:v.GCASH,match:[/gcash/]},{name:v.TRUEMONEY,match:[/tmn/]},{name:v.DANA,match:[/dana/]},{name:v.TOSSPAY,match:[/toss/]},{name:v.ALIPAY,match:[/alipay/]},{name:v.MPAY,match:[/MPay/]},{name:v.HIPAY,match:[/hipay/]}],P=[{name:v.DEMO,match:[/alipayIDE/i]},{name:v.ALIPAYHK,match:[S,O,/AlipayClientHK/]},{name:v.TNGD,match:[S,/TNGKit|Touch 'n Go/]},{name:v.GCASH,match:[S,b,/GCash/]},{name:v.TRUEMONEY,match:[S,b,/TrueMoney/]},{name:v.MPAY,match:[S,O,/mpay|macaupay/i]},{name:v.ALIPAY,match:[S,O,/alipay/i]},{name:v.DEMO,match:[S,b]}];function w(){return g(P,window.navigator.userAgent)}var B=[{name:v.ALIPAYHK,match:[A,O,/AlipayClientHK/]},{name:v.TNGD,match:[A,b,/TNGKit|Touch 'n Go/]},{name:v.TNGD_H5NG,match:[A,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:v.GCASH,match:[A,b,/GCash/]},{name:v.TRUEMONEY,match:[A,b,/TrueMoney/i]},{name:v.KAKAOPAY,match:[A,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:v.KAKAOTALK,match:[A,/ALIPAYCONNECT_KAKAO_TALK/]},{name:v.NAVERPAY,match:[A,/NAVER/]},{name:v.MPAY,match:[A,/mpay|macaupay/i]},{name:v.TOSSPAY,match:[A,/Toss/i]},{name:v.ALIPAY,match:[A,O,/AlipayClient/]},{name:v.DEMO,match:[A,b,/GriverDemo/]},{name:v.WORLDFIRST,match:[A,O,/WorldFirst/]},{name:v.CHANGIPAY,match:[A,O,/ChangiPay/]},{name:v.KASPI,match:[A,O,/Kaspi/]}];function k(){return g(B,window.navigator.userAgent)||v.H5}var T=function(){var e,t;if("undefined"!=typeof my&&"string"==typeof my.SDKVersion)e=g(C,my.getSystemInfoSync().app),t=h.MP;else{var n=function(){var e,t="__hy_env__",n=(null===(e=window.location.search)||void 0===e?void 0:e.match(/__app__=([^&]*)/))||[],r=n[1],a=(window.location.search.match(/__platform__=([^&]*)/)||[])[1],o=JSON.parse(localStorage.getItem(t)||"{}")||{};r&&(o.client=r),a&&(o.platform=a);try{localStorage.setItem(t,JSON.stringify(o))}catch(e){}if(n[1]){var c=window.location.search.replace(new RegExp("".concat(n[0],"(&)*")),""),i=window.location.hash||"",u="".concat(window.location.pathname).concat(c).concat(i);history.replaceState(null,"",u)}var s=JSON.parse(localStorage.getItem(t)||"{}"),l=localStorage.getItem("_CB__app__");return l?p(p({},s),{client:l}):s}();n.platform?(t=n.platform,e=n.client||("mpweb"===t?w():k())):(e=n.client||w())?t=h.MPWEB:(e=k(),t=h.WEB)}return t&&e||m("Cannot identify your client."),{client:e,platform:t}}(),E=T.client,D=T.platform;d(v,E),d(h,D);var I,L,M=((I={})[h.MP]=function(e,t,n){var r=(n||{}).type,a=void 0===r?"async":r;return"sync"===a||(null==n?void 0:n.isSync)?my[e](t):("async"===a&&(my[e]?my[e](t):my.call(e,t)),"callback"===a&&my[e](t),"attribute"===a?my[e]:void 0)},I[h.MPWEB]=y,I[h.WEB]=function(e,t,r){n(function(){var n=(r||{}).type,a=void 0===n?"async":n;"async"===a&&window.AlipayJSBridge.call(e,t,function(e){var n=t||{},r=n.success,a=n.fail,o=n.complete;e.error||e.errorCode?null==a||a(e):null==r||r(e),null==o||o(e)}),"callback"===a&&window.AlipayJSBridge.call(e,t)})},I);(L={})[h.MPWEB]=f,L[h.WEB]=function(e,t,n){return new Promise(function(r,a){var o,c=t||{},i=(c.success,c.fail),u=(c.complete,(n||{}).timeout),s=void 0===u?2e4:u;s>0&&(o=setTimeout(function(){var t={error:-101,errorMessage:"[".concat(e,"]: Timeout")};a(t),null==i||i(t)},s)),window.AlipayJSBridge.call(e,t,function(e){var n=t||{},c=n.success,i=n.fail,u=n.complete;o&&clearTimeout(o),(null==e?void 0:e.error)?(a(e),null==i||i(e)):(r(e),null==c||c(e)),null==u||u(e)})})};var N=["flowType"];function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const Y={addPhoneContact:function(e){return y("addPhoneContact",e,{type:"async"})},alert:function(e){return y("alert",e,{type:"async"})},chooseImage:function(e){return y("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return y("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return y("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return y("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return y("closeSocket",e,{type:"async"})},confirm:function(e){return y("confirm",e,{type:"async"})},connectBLEDevice:function(e){return y("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return y("connectSocket",e,{type:"async"})},datePicker:function(e){return y("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return y("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return y("downloadFile",e,{type:"async"})},getAuthCode:function(e){return y("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return y("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return y("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return y("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return y("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return y("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return y("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return y("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return y("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return y("getImageInfo",e,{type:"async"})},getLocation:function(e){return y("getLocation",e,{type:"async"})},getNetworkType:function(e){return y("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return y("getOpenUserInfo",e,{type:"async"})},getPhoneNumber:function(e){return y("getPhoneNumber",e,{type:"async"})},getSavedFileInfo:function(e){return y("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return y("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return y("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return y("getServerTime",e,{type:"async"})},getSetting:function(e){return y("getSetting",e,{type:"async"})},getSiteInfo:function(e){return y("getSiteInfo",e,{type:"async"})},getStorage:function(e){return y("getStorage",e,{type:"async"})},getSystemInfo:function(e){return y("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return y("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return y("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return y("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return y("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return y("hideTabBar",e,{type:"async"})},hideToast:function(e){return y("hideToast",e,{type:"async"})},makePhoneCall:function(e){return y("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return y("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return y("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return y("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return y("navigateTo",e,{type:"async"})},navigateToMiniProgram:function(e){return y("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return y("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return y("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return y("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return y("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return y("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return y("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return y("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return y("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return y("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return y("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return y("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return y("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return y("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return y("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return y("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return y("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return y("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return y("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return y("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return y("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return y("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return y("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return y("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return y("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return y("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return y("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return y("openDocument",e,{type:"async"})},openSetting:function(e){return y("openSetting",e,{type:"async"})},pageScrollTo:function(e){return y("pageScrollTo",e,{type:"async"})},previewImage:function(e){return y("previewImage",e,{type:"async"})},prompt:function(e){return y("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return y("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return y("redirectTo",e,{type:"async"})},reLaunch:function(e){return y("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return y("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return y("removeStorage",e,{type:"async"})},request:function(e){return y("request",e,{type:"async"})},rpc:function(e){return y("rpc",e,{type:"async"})},saveFile:function(e){return y("saveFile",e,{type:"async"})},saveImage:function(e){return y("saveImage",e,{type:"async"})},scan:function(e){return y("scan",e,{type:"async"})},sendSocketMessage:function(e){return y("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return y("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return y("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return y("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return y("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return y("setNavigationBar",e,{type:"async"})},setOptionMenu:function(e){return y("setOptionMenu",e,{type:"async"})},setScreenBrightness:function(e){return y("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return y("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return y("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return y("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return y("showAuthGuide",e,{type:"async"})},showLoading:function(e){return y("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return y("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return y("showToast",e,{type:"async"})},signContract:function(e){return y("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return y("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return y("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return y("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return y("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return y("switchTab",e,{type:"async"})},crossPay:function(e){return y("crossPay",e,{type:"async"})},uploadFile:function(e){return y("uploadFile",e,{type:"async"})},vibrate:function(e){return y("vibrate",e,{type:"async"})},watchShake:function(e){return y("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return y("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return y("showSharePanel",e,{type:"async"})},getBackgroundFetchData:function(e){return y("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return y("getEnterOptionsSync",e,{type:"async"})},tradePay:function(e){var t,n,r,a=e||{},o=a.flowType,c=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(a,N);t="a+"===o?"tradePayCrossApp":"tradePay",n=c,D?M[D](t,n,r):function(e,t,n){var r;void 0===n&&(n={});var a=n.type,o=void 0===a?"async":a,c=u("NOTFOUND",e);if("sync"===o)return c;"callback"===o&&(null==t||t(c)),"async"===o&&(null===(r=null==t?void 0:t.fail)||void 0===r||r.call(t,c))}(n,r)},getAppId:function(e){y("getAppIdSync",e,{type:"sync",isSync:!0})},getCurrentPages:function(e){y("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){y("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>l});var n=!1,r=[];function o(e){return r.push(e),function(){r=r.filter(function(t){return t!==e})}}function c(e){return n||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);r.forEach(function(e){return e(n)})}}),n=!0),function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)}(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var a={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},u={};function s(e,t,n){n=i({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(u[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout(function(){u[r]&&(delete u[r],o.fail(function(e,t){void 0===t&&(t="");var n=a.TIMEOUT;return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}}()))},n.timeout)}o(function(e){var t,n=e,r=n.serialId;if(r&&u[r]){var o=u[r],c=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var a=c||{},i=a._data_;return"success"===a._type_?o(i):o(void 0,i)}var s=o||{},y=s.success,f=s.fail,p=s.complete,l=c||{},g=l._data_,d=l._type_;d?("success"===d&&(null==y||y(g)),"fail"===d&&(null==f||f(g)),null==p||p(g)):((null==c?void 0:c.error)?null==f||f(c):null==y||y(c),null==p||p(c)),delete u[r]}}),s.onMessage=o,s.postMessage=c,s.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},s.onReceiveGlobalData=function(e,t){return o(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c,void 0,r.from):t(void 0,c,r.from)}})},s.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c):t(void 0,c)}})};function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const l={addPhoneContact:function(e){return s("addPhoneContact",e,{type:"async"})},alert:function(e){return s("alert",e,{type:"async"})},chooseImage:function(e){return s("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return s("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return s("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return s("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return s("closeSocket",e,{type:"async"})},confirm:function(e){return s("confirm",e,{type:"async"})},connectBLEDevice:function(e){return s("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return s("connectSocket",e,{type:"async"})},datePicker:function(e){return s("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return s("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return s("downloadFile",e,{type:"async"})},exitApp:function(e){return s("exitApp",e,{type:"async"})},getAppToken:function(e){return s("getAppToken",e,{type:"async"})},getAuthCode:function(e){return s("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return s("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return s("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return s("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return s("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return s("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return s("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return s("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return s("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return s("getImageInfo",e,{type:"async"})},getLocation:function(e){return s("getLocation",e,{type:"async"})},getNetworkType:function(e){return s("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return s("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return s("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return s("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return s("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return s("getServerTime",e,{type:"async"})},getSetting:function(e){return s("getSetting",e,{type:"async"})},getSiteInfo:function(e){return s("getSiteInfo",e,{type:"async"})},getStorage:function(e){return s("getStorage",e,{type:"async"})},getSystemInfo:function(e){return s("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return s("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return s("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return s("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return s("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return s("hideTabBar",e,{type:"async"})},hideToast:function(e){return s("hideToast",e,{type:"async"})},makePhoneCall:function(e){return s("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return s("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return s("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return s("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return s("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return s("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return s("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return s("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return s("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return s("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return s("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return s("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return s("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return s("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return s("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return s("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return s("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return s("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return s("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return s("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return s("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return s("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return s("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return s("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return s("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return s("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return s("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return s("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return s("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return s("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return s("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return s("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return s("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return s("openDocument",e,{type:"async"})},openSetting:function(e){return s("openSetting",e,{type:"async"})},pageScrollTo:function(e){return s("pageScrollTo",e,{type:"async"})},previewImage:function(e){return s("previewImage",e,{type:"async"})},prompt:function(e){return s("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return s("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return s("redirectTo",e,{type:"async"})},reLaunch:function(e){return s("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return s("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return s("removeStorage",e,{type:"async"})},request:function(e){return s("request",e,{type:"async"})},rpc:function(e){return s("rpc",e,{type:"async"})},saveFile:function(e){return s("saveFile",e,{type:"async"})},saveImage:function(e){return s("saveImage",e,{type:"async"})},scan:function(e){return s("scan",e,{type:"async"})},sendSocketMessage:function(e){return s("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return s("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return s("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return s("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return s("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return s("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return s("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return s("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return s("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return s("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return s("showAuthGuide",e,{type:"async"})},showLoading:function(e){return s("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return s("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return s("showToast",e,{type:"async"})},signContract:function(e){return s("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return s("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return s("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return s("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return s("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return s("switchTab",e,{type:"async"})},tradePay:function(e){return s("tradePay",e,{type:"async"})},uploadFile:function(e){return s("uploadFile",e,{type:"async"})},vibrate:function(e){return s("vibrate",e,{type:"async"})},watchShake:function(e){return s("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return s("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return s("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return s("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return s("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return s("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return s("chooseVideo",e,{type:"async"})},compressImage:function(e){return s("compressImage",e,{type:"async"})},setTabBarItem:function(e){return s("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return s("showTabBar",e,{type:"async"})},getBackgroundFetchData:function(e){return s("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return s("getEnterOptionsSync",e,{type:"async"})},getAppId:function(e){s("getAppIdSync",e,{type:"sync",isSync:!0})},getCurrentPages:function(e){s("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){s("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>l});var n=!1,r=[];function o(e){return r.push(e),function(){r=r.filter(function(t){return t!==e})}}function c(e){return n||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);r.forEach(function(e){return e(n)})}}),n=!0),function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)}(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var a={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},u={};function s(e,t,n){n=i({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(u[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout(function(){u[r]&&(delete u[r],o.fail(function(e,t){void 0===t&&(t="");var n=a.TIMEOUT;return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}}()))},n.timeout)}o(function(e){var t,n=e,r=n.serialId;if(r&&u[r]){var o=u[r],c=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var a=c||{},i=a._data_;return"success"===a._type_?o(i):o(void 0,i)}var s=o||{},y=s.success,f=s.fail,p=s.complete,l=c||{},g=l._data_,d=l._type_;d?("success"===d&&(null==y||y(g)),"fail"===d&&(null==f||f(g)),null==p||p(g)):((null==c?void 0:c.error)?null==f||f(c):null==y||y(c),null==p||p(c)),delete u[r]}}),s.onMessage=o,s.postMessage=c,s.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},s.onReceiveGlobalData=function(e,t){return o(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c,void 0,r.from):t(void 0,c,r.from)}})},s.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c):t(void 0,c)}})};function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const l={addPhoneContact:function(e){return s("addPhoneContact",e,{type:"async"})},alert:function(e){return s("alert",e,{type:"async"})},chooseImage:function(e){return s("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return s("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return s("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return s("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return s("closeSocket",e,{type:"async"})},confirm:function(e){return s("confirm",e,{type:"async"})},connectBLEDevice:function(e){return s("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return s("connectSocket",e,{type:"async"})},datePicker:function(e){return s("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return s("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return s("downloadFile",e,{type:"async"})},exitApp:function(e){return s("exitApp",e,{type:"async"})},getAppToken:function(e){return s("getAppToken",e,{type:"async"})},getAuthCode:function(e){return s("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return s("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return s("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return s("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return s("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return s("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return s("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return s("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return s("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return s("getImageInfo",e,{type:"async"})},getLocation:function(e){return s("getLocation",e,{type:"async"})},getNetworkType:function(e){return s("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return s("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return s("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return s("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return s("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return s("getServerTime",e,{type:"async"})},getSetting:function(e){return s("getSetting",e,{type:"async"})},getSiteInfo:function(e){return s("getSiteInfo",e,{type:"async"})},getStorage:function(e){return s("getStorage",e,{type:"async"})},getSystemInfo:function(e){return s("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return s("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return s("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return s("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return s("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return s("hideTabBar",e,{type:"async"})},hideToast:function(e){return s("hideToast",e,{type:"async"})},makePhoneCall:function(e){return s("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return s("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return s("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return s("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return s("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return s("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return s("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return s("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return s("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return s("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return s("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return s("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return s("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return s("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return s("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return s("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return s("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return s("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return s("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return s("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return s("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return s("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return s("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return s("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return s("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return s("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return s("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return s("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return s("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return s("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return s("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return s("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return s("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return s("openDocument",e,{type:"async"})},openSetting:function(e){return s("openSetting",e,{type:"async"})},pageScrollTo:function(e){return s("pageScrollTo",e,{type:"async"})},previewImage:function(e){return s("previewImage",e,{type:"async"})},prompt:function(e){return s("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return s("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return s("redirectTo",e,{type:"async"})},reLaunch:function(e){return s("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return s("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return s("removeStorage",e,{type:"async"})},request:function(e){return s("request",e,{type:"async"})},rpc:function(e){return s("rpc",e,{type:"async"})},saveFile:function(e){return s("saveFile",e,{type:"async"})},saveImage:function(e){return s("saveImage",e,{type:"async"})},scan:function(e){return s("scan",e,{type:"async"})},sendSocketMessage:function(e){return s("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return s("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return s("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return s("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return s("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return s("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return s("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return s("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return s("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return s("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return s("showAuthGuide",e,{type:"async"})},showLoading:function(e){return s("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return s("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return s("showToast",e,{type:"async"})},signContract:function(e){return s("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return s("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return s("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return s("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return s("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return s("switchTab",e,{type:"async"})},tradePay:function(e){return s("tradePay",e,{type:"async"})},uploadFile:function(e){return s("uploadFile",e,{type:"async"})},vibrate:function(e){return s("vibrate",e,{type:"async"})},watchShake:function(e){return s("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return s("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return s("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return s("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return s("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return s("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return s("chooseVideo",e,{type:"async"})},compressImage:function(e){return s("compressImage",e,{type:"async"})},setTabBarItem:function(e){return s("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return s("showTabBar",e,{type:"async"})},getBackgroundFetchData:function(e){return s("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return s("getEnterOptionsSync",e,{type:"async"})},getAppId:function(e){s("getAppIdSync",e,{type:"sync",isSync:!0})},getCurrentPages:function(e){s("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){s("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see mp_web_mpay.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>z});var n=function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)},r=!1,o=[];function a(e){return o.push(e),function(){o=o.filter(function(t){return t!==e})}}function c(e){return r||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);o.forEach(function(e){return e(n)})}}),r=!0),n(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var i={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},u=function(e,t){void 0===t&&(t="");var n=i[e];return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}},s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},l={};function f(e,t,n){n=s({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(l[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout(function(){l[r]&&(delete l[r],o.fail(u("TIMEOUT")))},n.timeout)}a(function(e){var t,n=e,r=n.serialId;if(r&&l[r]){var o=l[r],a=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var c=a||{},i=c._data_;return"success"===c._type_?o(i):o(void 0,i)}var u=o||{},s=u.success,f=u.fail,y=u.complete,p=a||{},d=p._data_,g=p._type_;g?("success"===g&&(null==s||s(d)),"fail"===g&&(null==f||f(d)),null==y||y(d)):((null==a?void 0:a.error)?null==f||f(a):null==s||s(a),null==y||y(a)),delete l[r]}}),f.onMessage=a,f.postMessage=c,f.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},f.onReceiveGlobalData=function(e,t){return a(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a,void 0,r.from):t(void 0,a,r.from)}})},f.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),a(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a):t(void 0,a)}})};var y=function(){var e={},t=!1;return function(r,o,a){return new Promise(function(c,i){var u,l=o||{},f=l.success,y=l.fail,p=a||{},d=p.timeout,g=void 0===d?2e4:d,h=p.isSync;g>0&&(u=setTimeout(function(){var e={error:-101,errorMessage:"[".concat(r,"]: Timeout")};i(e),null==y||y(e)},g));var m={apiName:r,options:s(s({},o),{success:function(e){u&&clearTimeout(u),c(e),null==f||f(e)},fail:function(e){u&&clearTimeout(u),i(e),null==y||y(e)}}),isSync:h};n(function(){t||(document.addEventListener("onToWebViewMessage",function(t){var n=t.data.res;"message"===n.type&&function(t){var n,r=t.serialId;if(r&&e[r]){var o=e[r],a=t.result;if("callback"===(null===(n=t.config)||void 0===n?void 0:n.type)){var c=a||{},i=c._data_;return"success"===c._type_?o(i):o(void 0,i)}var u=o||{},s=u.success,l=u.fail,f=u.complete,y=a||{},p=y._data_,d=y._type_;d?("success"===d&&(null==s||s(p)),"fail"===d&&(null==l||l(p)),null==f||f(p)):((null==a?void 0:a.error)?null==l||l(a):null==s||s(a),null==f||f(a)),delete e[r]}}(JSON.parse(n.data))}),t=!0),function(t){var n,r=t.apiName,o=t.options,a=t.isSync,c=window,i=Math.floor(1e6*Math.random()),u="".concat(r,"_").concat(i);o&&(e[u]=o);var s={type:"apiCall",api:r,serialId:u,options:o,isSync:a,source:"hylid"};null===(n=c.AlipayJSBridge)||void 0===n||n.call("postWebViewMessage",{type:"message",detail:s})}(m)})})}}();function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t,n,r,o,a,c){try{var i=e[a](c),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(r,o)}var g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)};function h(e,t){var n=e.filter(function(e){return e.match.every(function(e){return e.test(t)})});if(n.length){var r=n[0].name;if(n.length>1){var o=n.map(function(e){return e.name}).join(",");v("Multiple clients have been identified(".concat(o,"), and the first one(").concat(r,")is used by default."))}return r}}function m(e,t){return Object.keys(e).reduce(function(n,r){return n["is".concat(r)]=t===e[r],n},{})}function v(e){console.info("[hylid-env]: ".concat(e))}var b={WEB:"web",MPWEB:"mpweb",MP:"mp"},S={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"tmn",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng",WORLDFIRST:"worldfirst"},O=/miniprogram/i,A=/^((?!miniprogram).)*$/i,w=/griver/i,P=/^((?!griver).)*$/i,C=[{name:S.DEMO,match:[/demo/]},{name:S.ALIPAYHK,match:[/alipayHK/]},{name:S.TNGD,match:[/tngd/]},{name:S.GCASH,match:[/gcash/]},{name:S.TRUEMONEY,match:[/tmn/]},{name:S.DANA,match:[/dana/]},{name:S.TOSSPAY,match:[/toss/]},{name:S.ALIPAY,match:[/alipay/]},{name:S.MPAY,match:[/MPay/]},{name:S.HIPAY,match:[/hipay/]}],B=[{name:S.DEMO,match:[/alipayIDE/i]},{name:S.ALIPAYHK,match:[O,P,/AlipayClientHK/]},{name:S.TNGD,match:[O,/TNGKit|Touch 'n Go/]},{name:S.GCASH,match:[O,w,/GCash/]},{name:S.TRUEMONEY,match:[O,w,/TrueMoney/]},{name:S.MPAY,match:[O,P,/mpay|macaupay/i]},{name:S.ALIPAY,match:[O,P,/alipay/i]},{name:S.DEMO,match:[O,w]}];function T(){return h(B,window.navigator.userAgent)}var k=[{name:S.ALIPAYHK,match:[A,P,/AlipayClientHK/]},{name:S.TNGD,match:[A,w,/TNGKit|Touch 'n Go/]},{name:S.TNGD_H5NG,match:[A,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:S.GCASH,match:[A,w,/GCash/]},{name:S.TRUEMONEY,match:[A,w,/TrueMoney/i]},{name:S.KAKAOPAY,match:[A,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:S.KAKAOTALK,match:[A,/ALIPAYCONNECT_KAKAO_TALK/]},{name:S.NAVERPAY,match:[A,/NAVER/]},{name:S.MPAY,match:[A,/mpay|macaupay/i]},{name:S.TOSSPAY,match:[A,/Toss/i]},{name:S.ALIPAY,match:[A,P,/AlipayClient/]},{name:S.DEMO,match:[A,w,/GriverDemo/]},{name:S.WORLDFIRST,match:[A,P,/WorldFirst/]}];function E(){return h(k,window.navigator.userAgent)||S.H5}var D=function(){var e,t;if("undefined"!=typeof my&&"string"==typeof my.SDKVersion)e=h(C,my.getSystemInfoSync().app),t=b.MP;else{var n=function(){var e,t="__hy_env__",n=(null===(e=window.location.search)||void 0===e?void 0:e.match(/__app__=([^&]*)/))||[],r=n[1],o=(window.location.search.match(/__platform__=([^&]*)/)||[])[1],a=JSON.parse(localStorage.getItem(t)||"{}")||{};r&&(a.client=r),o&&(a.platform=o);try{localStorage.setItem(t,JSON.stringify(a))}catch(e){}if(n[1]){var c=window.location.search.replace(new RegExp("".concat(n[0],"(&)*")),""),i=window.location.hash||"",u="".concat(window.location.pathname).concat(c).concat(i);history.replaceState(null,"",u)}var s=JSON.parse(localStorage.getItem(t)||"{}"),l=localStorage.getItem("_CB__app__");return l?g(g({},s),{client:l}):s}();n.platform?(t=n.platform,e=n.client||("mpweb"===t?T():E())):(e=n.client||T())?t=b.MPWEB:(e=E(),t=b.WEB)}return t&&e||v("Cannot identify your client."),{client:e,platform:t}}(),I=D.client,j=D.platform;m(S,I),m(b,j);var L,M,_=((L={})[b.MP]=function(e,t,n){var r=(n||{}).type,o=void 0===r?"async":r;return"sync"===o||(null==n?void 0:n.isSync)?my[e](t):("async"===o&&(my[e]?my[e](t):my.call(e,t)),"callback"===o&&my[e](t),"attribute"===o?my[e]:void 0)},L[b.MPWEB]=f,L[b.WEB]=function(e,t,r){n(function(){var n=(r||{}).type,o=void 0===n?"async":n;"async"===o&&window.AlipayJSBridge.call(e,t,function(e){var n=t||{},r=n.success,o=n.fail,a=n.complete;e.error||e.errorCode?null==o||o(e):null==r||r(e),null==a||a(e)}),"callback"===o&&window.AlipayJSBridge.call(e,t)})},L);function N(e,t,n){return j?_[j](e,t,n):function(e,t,n){var r;void 0===n&&(n={});var o=n.type,a=void 0===o?"async":o,c=u("NOTFOUND",e);if("sync"===a)return c;"callback"===a&&(null==t||t(c)),"async"===a&&(null===(r=null==t?void 0:t.fail)||void 0===r||r.call(t,c))}(t,n)}(M={})[b.MPWEB]=y,M[b.WEB]=function(e,t,n){return new Promise(function(r,o){var a,c=t||{},i=(c.success,c.fail),u=(c.complete,(n||{}).timeout),s=void 0===u?2e4:u;s>0&&(a=setTimeout(function(){var t={error:-101,errorMessage:"[".concat(e,"]: Timeout")};o(t),null==i||i(t)},s)),window.AlipayJSBridge.call(e,t,function(e){var n=t||{},c=n.success,i=n.fail,u=n.complete;a&&clearTimeout(a),(null==e?void 0:e.error)?(o(e),null==i||i(e)):(r(e),null==c||c(e)),null==u||u(e)})})};var K=function(){return K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},K.apply(this,arguments)};function G(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var u=r&&r.prototype instanceof i?r:i,s=Object.create(u.prototype);return F(s,"_invoke",function(n,r,o){var a,i,u,s=0,l=o||[],f=!1,y={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,i=0,u=e,y.n=n,c}};function p(n,r){for(i=n,u=r,t=0;!f&&s&&!o&&t<l.length;t++){var o,a=l[t],p=y.p,d=a[2];n>3?(o=d===r)&&(u=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(i=0,y.v=r,y.n=a[1]):p<d&&(o=n<3||a[0]>r||r>d)&&(a[4]=n,a[5]=r,y.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,l,d){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,d),i=l,u=d;(t=i<2?e:u)||!f;){a||(i?i<3?(i>1&&(y.n=-1),p(i,u)):y.n=u:y.v=u);try{if(s=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=y.n<0)?u:n.call(r,y))!==c)break}catch(t){a=e,i=1,u=t}finally{s=1}}return{value:t,done:f}}}(n,o,a),!0),s}var c={};function i(){}function u(){}function s(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),f=s.prototype=i.prototype=Object.create(l);function y(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,F(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=s,F(f,"constructor",s),F(s,"constructor",u),u.displayName="GeneratorFunction",F(s,o,"GeneratorFunction"),F(f),F(f,o,"Generator"),F(f,r,function(){return this}),F(f,"toString",function(){return"[object Generator]"}),(G=function(){return{w:a,m:y}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function a(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},F(e,t,n,r)}var Y,V=(Y=function(e){return f("getSystemInfo",e,{type:"async"})},function(e){return new Promise(function(t,n){var r=K(K({},e),{success:function(n){var r;t(n),null===(r=null==e?void 0:e.success)||void 0===r||r.call(e,n)},fail:function(t){var r;n(t),null===(r=null==e?void 0:e.fail)||void 0===r||r.call(e,t)}});Y(r)})}),R=function(){return new Promise(function(e){N("getMPayUtdid",{success:function(t){e((null==t?void 0:t.utdid)||"")},fail:function(){e("")}})})};const H=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function c(e){d(a,r,o,c,i,"next",e)}function i(e){d(a,r,o,c,i,"throw",e)}c(void 0)})}}(G().m(function e(t){var n,r,o;return G().w(function(e){for(;;)switch(e.n){case 0:n=t.success,r=t.fail,o=t.complete,Promise.all([R(),V()]).then(function(e){var t,r,o=(r=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],c=!0,i=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(e){i=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(i)throw o}}return a}}(t,r)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(t,r)||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.")}()),a=o[0],c=o[1],i=c.brand,u=c.model,s=c.platform,l={apdid:a,brand:i,model:u,appVersion:c.version,osType:s,osVersion:c.system,terminalType:"miniapp"},f=JSON.stringify(l);null==n||n({appToken:f})}).catch(function(e){null==r||r(e)}).finally(function(){null==o||o()});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}();function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=["fail"];function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const z={addPhoneContact:function(e){return f("addPhoneContact",e,{type:"async"})},alert:function(e){return f("alert",e,{type:"async"})},chooseImage:function(e){return f("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return f("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return f("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return f("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return f("closeSocket",e,{type:"async"})},confirm:function(e){return f("confirm",e,{type:"async"})},connectBLEDevice:function(e){return f("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return f("connectSocket",e,{type:"async"})},datePicker:function(e){return f("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return f("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return f("downloadFile",e,{type:"async"})},getAuthCode:function(e){return f("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return f("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return f("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return f("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return f("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return f("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return f("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return f("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return f("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return f("getImageInfo",e,{type:"async"})},getNetworkType:function(e){return f("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return f("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return f("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return f("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return f("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return f("getServerTime",e,{type:"async"})},getSetting:function(e){return f("getSetting",e,{type:"async"})},getSiteInfo:function(e){return f("getSiteInfo",e,{type:"async"})},getStorage:function(e){return f("getStorage",e,{type:"async"})},getSystemInfo:function(e){return f("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return f("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return f("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return f("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return f("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return f("hideTabBar",e,{type:"async"})},hideToast:function(e){return f("hideToast",e,{type:"async"})},makePhoneCall:function(e){return f("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return f("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return f("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return f("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return f("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return f("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return f("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return f("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return f("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return f("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return f("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return f("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return f("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return f("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return f("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return f("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return f("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return f("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return f("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return f("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return f("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return f("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return f("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return f("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return f("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return f("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return f("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return f("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return f("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return f("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return f("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return f("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return f("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return f("openDocument",e,{type:"async"})},openSetting:function(e){return f("openSetting",e,{type:"async"})},pageScrollTo:function(e){return f("pageScrollTo",e,{type:"async"})},previewImage:function(e){return f("previewImage",e,{type:"async"})},prompt:function(e){return f("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return f("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return f("redirectTo",e,{type:"async"})},reLaunch:function(e){return f("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return f("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return f("removeStorage",e,{type:"async"})},request:function(e){return f("request",e,{type:"async"})},saveFile:function(e){return f("saveFile",e,{type:"async"})},saveImage:function(e){return f("saveImage",e,{type:"async"})},scan:function(e){return f("scan",e,{type:"async"})},sendSocketMessage:function(e){return f("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return f("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return f("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return f("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return f("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return f("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return f("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return f("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return f("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return f("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return f("showAuthGuide",e,{type:"async"})},showLoading:function(e){return f("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return f("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return f("showToast",e,{type:"async"})},signContract:function(e){return f("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return f("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return f("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return f("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return f("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return f("switchTab",e,{type:"async"})},tradePay:function(e){return f("tradePay",e,{type:"async"})},uploadFile:function(e){return f("uploadFile",e,{type:"async"})},vibrate:function(e){return f("vibrate",e,{type:"async"})},watchShake:function(e){return f("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return f("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return f("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return f("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return f("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return f("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return f("chooseVideo",e,{type:"async"})},compressImage:function(e){return f("compressImage",e,{type:"async"})},setTabBarItem:function(e){return f("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return f("showTabBar",e,{type:"async"})},getBackgroundFetchData:function(e){return f("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return f("getEnterOptionsSync",e,{type:"async"})},getAppToken:H,getLocation:function(e){var t=e||{},n=t.fail;N("getLocation",J(J({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,U)),{},{fail:function(e){5===(null==e?void 0:e.error)&&(e.error=11),null==n||n(e)}}))},getAppId:function(e){N("getMPayAppIdSync",e)},getCurrentPages:function(e){f("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){f("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>z});var n=function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)},r=!1,o=[];function a(e){return o.push(e),function(){o=o.filter(function(t){return t!==e})}}function c(e){return r||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);o.forEach(function(e){return e(n)})}}),r=!0),n(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var i={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},u=function(e,t){void 0===t&&(t="");var n=i[e];return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}},s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},l={};function f(e,t,n){n=s({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(l[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout(function(){l[r]&&(delete l[r],o.fail(u("TIMEOUT")))},n.timeout)}a(function(e){var t,n=e,r=n.serialId;if(r&&l[r]){var o=l[r],a=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var c=a||{},i=c._data_;return"success"===c._type_?o(i):o(void 0,i)}var u=o||{},s=u.success,f=u.fail,y=u.complete,p=a||{},d=p._data_,g=p._type_;g?("success"===g&&(null==s||s(d)),"fail"===g&&(null==f||f(d)),null==y||y(d)):((null==a?void 0:a.error)?null==f||f(a):null==s||s(a),null==y||y(a)),delete l[r]}}),f.onMessage=a,f.postMessage=c,f.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},f.onReceiveGlobalData=function(e,t){return a(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a,void 0,r.from):t(void 0,a,r.from)}})},f.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),a(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a):t(void 0,a)}})};var y=function(){var e={},t=!1;return function(r,o,a){return new Promise(function(c,i){var u,l=o||{},f=l.success,y=l.fail,p=a||{},d=p.timeout,g=void 0===d?2e4:d,h=p.isSync;g>0&&(u=setTimeout(function(){var e={error:-101,errorMessage:"[".concat(r,"]: Timeout")};i(e),null==y||y(e)},g));var m={apiName:r,options:s(s({},o),{success:function(e){u&&clearTimeout(u),c(e),null==f||f(e)},fail:function(e){u&&clearTimeout(u),i(e),null==y||y(e)}}),isSync:h};n(function(){t||(document.addEventListener("onToWebViewMessage",function(t){var n=t.data.res;"message"===n.type&&function(t){var n,r=t.serialId;if(r&&e[r]){var o=e[r],a=t.result;if("callback"===(null===(n=t.config)||void 0===n?void 0:n.type)){var c=a||{},i=c._data_;return"success"===c._type_?o(i):o(void 0,i)}var u=o||{},s=u.success,l=u.fail,f=u.complete,y=a||{},p=y._data_,d=y._type_;d?("success"===d&&(null==s||s(p)),"fail"===d&&(null==l||l(p)),null==f||f(p)):((null==a?void 0:a.error)?null==l||l(a):null==s||s(a),null==f||f(a)),delete e[r]}}(JSON.parse(n.data))}),t=!0),function(t){var n,r=t.apiName,o=t.options,a=t.isSync,c=window,i=Math.floor(1e6*Math.random()),u="".concat(r,"_").concat(i);o&&(e[u]=o);var s={type:"apiCall",api:r,serialId:u,options:o,isSync:a,source:"hylid"};null===(n=c.AlipayJSBridge)||void 0===n||n.call("postWebViewMessage",{type:"message",detail:s})}(m)})})}}();function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t,n,r,o,a,c){try{var i=e[a](c),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(r,o)}var g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)};function h(e,t){var n=e.filter(function(e){return e.match.every(function(e){return e.test(t)})});if(n.length){var r=n[0].name;if(n.length>1){var o=n.map(function(e){return e.name}).join(",");v("Multiple clients have been identified(".concat(o,"), and the first one(").concat(r,")is used by default."))}return r}}function m(e,t){return Object.keys(e).reduce(function(n,r){return n["is".concat(r)]=t===e[r],n},{})}function v(e){console.info("[hylid-env]: ".concat(e))}var b={WEB:"web",MPWEB:"mpweb",MP:"mp"},S={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"tmn",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng",WORLDFIRST:"worldfirst"},O=/miniprogram/i,A=/^((?!miniprogram).)*$/i,w=/griver/i,P=/^((?!griver).)*$/i,C=[{name:S.DEMO,match:[/demo/]},{name:S.ALIPAYHK,match:[/alipayHK/]},{name:S.TNGD,match:[/tngd/]},{name:S.GCASH,match:[/gcash/]},{name:S.TRUEMONEY,match:[/tmn/]},{name:S.DANA,match:[/dana/]},{name:S.TOSSPAY,match:[/toss/]},{name:S.ALIPAY,match:[/alipay/]},{name:S.MPAY,match:[/MPay/]},{name:S.HIPAY,match:[/hipay/]}],B=[{name:S.DEMO,match:[/alipayIDE/i]},{name:S.ALIPAYHK,match:[O,P,/AlipayClientHK/]},{name:S.TNGD,match:[O,/TNGKit|Touch 'n Go/]},{name:S.GCASH,match:[O,w,/GCash/]},{name:S.TRUEMONEY,match:[O,w,/TrueMoney/]},{name:S.MPAY,match:[O,P,/mpay|macaupay/i]},{name:S.ALIPAY,match:[O,P,/alipay/i]},{name:S.DEMO,match:[O,w]}];function T(){return h(B,window.navigator.userAgent)}var k=[{name:S.ALIPAYHK,match:[A,P,/AlipayClientHK/]},{name:S.TNGD,match:[A,w,/TNGKit|Touch 'n Go/]},{name:S.TNGD_H5NG,match:[A,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:S.GCASH,match:[A,w,/GCash/]},{name:S.TRUEMONEY,match:[A,w,/TrueMoney/i]},{name:S.KAKAOPAY,match:[A,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:S.KAKAOTALK,match:[A,/ALIPAYCONNECT_KAKAO_TALK/]},{name:S.NAVERPAY,match:[A,/NAVER/]},{name:S.MPAY,match:[A,/mpay|macaupay/i]},{name:S.TOSSPAY,match:[A,/Toss/i]},{name:S.ALIPAY,match:[A,P,/AlipayClient/]},{name:S.DEMO,match:[A,w,/GriverDemo/]},{name:S.WORLDFIRST,match:[A,P,/WorldFirst/]},{name:S.CHANGIPAY,match:[A,P,/ChangiPay/]},{name:S.KASPI,match:[A,P,/Kaspi/]}];function E(){return h(k,window.navigator.userAgent)||S.H5}var D=function(){var e,t;if("undefined"!=typeof my&&"string"==typeof my.SDKVersion)e=h(C,my.getSystemInfoSync().app),t=b.MP;else{var n=function(){var e,t="__hy_env__",n=(null===(e=window.location.search)||void 0===e?void 0:e.match(/__app__=([^&]*)/))||[],r=n[1],o=(window.location.search.match(/__platform__=([^&]*)/)||[])[1],a=JSON.parse(localStorage.getItem(t)||"{}")||{};r&&(a.client=r),o&&(a.platform=o);try{localStorage.setItem(t,JSON.stringify(a))}catch(e){}if(n[1]){var c=window.location.search.replace(new RegExp("".concat(n[0],"(&)*")),""),i=window.location.hash||"",u="".concat(window.location.pathname).concat(c).concat(i);history.replaceState(null,"",u)}var s=JSON.parse(localStorage.getItem(t)||"{}"),l=localStorage.getItem("_CB__app__");return l?g(g({},s),{client:l}):s}();n.platform?(t=n.platform,e=n.client||("mpweb"===t?T():E())):(e=n.client||T())?t=b.MPWEB:(e=E(),t=b.WEB)}return t&&e||v("Cannot identify your client."),{client:e,platform:t}}(),I=D.client,j=D.platform;m(S,I),m(b,j);var L,M,_=((L={})[b.MP]=function(e,t,n){var r=(n||{}).type,o=void 0===r?"async":r;return"sync"===o||(null==n?void 0:n.isSync)?my[e](t):("async"===o&&(my[e]?my[e](t):my.call(e,t)),"callback"===o&&my[e](t),"attribute"===o?my[e]:void 0)},L[b.MPWEB]=f,L[b.WEB]=function(e,t,r){n(function(){var n=(r||{}).type,o=void 0===n?"async":n;"async"===o&&window.AlipayJSBridge.call(e,t,function(e){var n=t||{},r=n.success,o=n.fail,a=n.complete;e.error||e.errorCode?null==o||o(e):null==r||r(e),null==a||a(e)}),"callback"===o&&window.AlipayJSBridge.call(e,t)})},L);function N(e,t,n){return j?_[j](e,t,n):function(e,t,n){var r;void 0===n&&(n={});var o=n.type,a=void 0===o?"async":o,c=u("NOTFOUND",e);if("sync"===a)return c;"callback"===a&&(null==t||t(c)),"async"===a&&(null===(r=null==t?void 0:t.fail)||void 0===r||r.call(t,c))}(t,n)}(M={})[b.MPWEB]=y,M[b.WEB]=function(e,t,n){return new Promise(function(r,o){var a,c=t||{},i=(c.success,c.fail),u=(c.complete,(n||{}).timeout),s=void 0===u?2e4:u;s>0&&(a=setTimeout(function(){var t={error:-101,errorMessage:"[".concat(e,"]: Timeout")};o(t),null==i||i(t)},s)),window.AlipayJSBridge.call(e,t,function(e){var n=t||{},c=n.success,i=n.fail,u=n.complete;a&&clearTimeout(a),(null==e?void 0:e.error)?(o(e),null==i||i(e)):(r(e),null==c||c(e)),null==u||u(e)})})};var K=function(){return K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},K.apply(this,arguments)};function G(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var u=r&&r.prototype instanceof i?r:i,s=Object.create(u.prototype);return Y(s,"_invoke",function(n,r,o){var a,i,u,s=0,l=o||[],f=!1,y={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,i=0,u=e,y.n=n,c}};function p(n,r){for(i=n,u=r,t=0;!f&&s&&!o&&t<l.length;t++){var o,a=l[t],p=y.p,d=a[2];n>3?(o=d===r)&&(u=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(i=0,y.v=r,y.n=a[1]):p<d&&(o=n<3||a[0]>r||r>d)&&(a[4]=n,a[5]=r,y.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,l,d){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,d),i=l,u=d;(t=i<2?e:u)||!f;){a||(i?i<3?(i>1&&(y.n=-1),p(i,u)):y.n=u:y.v=u);try{if(s=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=y.n<0)?u:n.call(r,y))!==c)break}catch(t){a=e,i=1,u=t}finally{s=1}}return{value:t,done:f}}}(n,o,a),!0),s}var c={};function i(){}function u(){}function s(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Y(t={},r,function(){return this}),t),f=s.prototype=i.prototype=Object.create(l);function y(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Y(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=s,Y(f,"constructor",s),Y(s,"constructor",u),u.displayName="GeneratorFunction",Y(s,o,"GeneratorFunction"),Y(f),Y(f,o,"Generator"),Y(f,r,function(){return this}),Y(f,"toString",function(){return"[object Generator]"}),(G=function(){return{w:a,m:y}})()}function Y(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Y=function(e,t,n,r){function a(t,n){Y(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Y(e,t,n,r)}var F,V=(F=function(e){return f("getSystemInfo",e,{type:"async"})},function(e){return new Promise(function(t,n){var r=K(K({},e),{success:function(n){var r;t(n),null===(r=null==e?void 0:e.success)||void 0===r||r.call(e,n)},fail:function(t){var r;n(t),null===(r=null==e?void 0:e.fail)||void 0===r||r.call(e,t)}});F(r)})}),R=function(){return new Promise(function(e){N("getMPayUtdid",{success:function(t){e((null==t?void 0:t.utdid)||"")},fail:function(){e("")}})})};const H=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function c(e){d(a,r,o,c,i,"next",e)}function i(e){d(a,r,o,c,i,"throw",e)}c(void 0)})}}(G().m(function e(t){var n,r,o;return G().w(function(e){for(;;)switch(e.n){case 0:n=t.success,r=t.fail,o=t.complete,Promise.all([R(),V()]).then(function(e){var t,r,o=(r=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],c=!0,i=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(e){i=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(i)throw o}}return a}}(t,r)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(t,r)||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.")}()),a=o[0],c=o[1],i=c.brand,u=c.model,s=c.platform,l={apdid:a,brand:i,model:u,appVersion:c.version,osType:s,osVersion:c.system,terminalType:"miniapp"},f=JSON.stringify(l);null==n||n({appToken:f})}).catch(function(e){null==r||r(e)}).finally(function(){null==o||o()});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}();function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=["fail"];function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const z={addPhoneContact:function(e){return f("addPhoneContact",e,{type:"async"})},alert:function(e){return f("alert",e,{type:"async"})},chooseImage:function(e){return f("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return f("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return f("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return f("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return f("closeSocket",e,{type:"async"})},confirm:function(e){return f("confirm",e,{type:"async"})},connectBLEDevice:function(e){return f("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return f("connectSocket",e,{type:"async"})},datePicker:function(e){return f("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return f("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return f("downloadFile",e,{type:"async"})},getAuthCode:function(e){return f("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return f("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return f("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return f("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return f("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return f("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return f("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return f("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return f("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return f("getImageInfo",e,{type:"async"})},getNetworkType:function(e){return f("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return f("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return f("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return f("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return f("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return f("getServerTime",e,{type:"async"})},getSetting:function(e){return f("getSetting",e,{type:"async"})},getSiteInfo:function(e){return f("getSiteInfo",e,{type:"async"})},getStorage:function(e){return f("getStorage",e,{type:"async"})},getSystemInfo:function(e){return f("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return f("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return f("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return f("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return f("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return f("hideTabBar",e,{type:"async"})},hideToast:function(e){return f("hideToast",e,{type:"async"})},makePhoneCall:function(e){return f("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return f("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return f("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return f("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return f("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return f("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return f("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return f("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return f("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return f("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return f("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return f("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return f("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return f("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return f("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return f("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return f("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return f("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return f("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return f("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return f("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return f("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return f("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return f("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return f("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return f("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return f("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return f("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return f("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return f("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return f("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return f("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return f("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return f("openDocument",e,{type:"async"})},openSetting:function(e){return f("openSetting",e,{type:"async"})},pageScrollTo:function(e){return f("pageScrollTo",e,{type:"async"})},previewImage:function(e){return f("previewImage",e,{type:"async"})},prompt:function(e){return f("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return f("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return f("redirectTo",e,{type:"async"})},reLaunch:function(e){return f("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return f("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return f("removeStorage",e,{type:"async"})},request:function(e){return f("request",e,{type:"async"})},saveFile:function(e){return f("saveFile",e,{type:"async"})},saveImage:function(e){return f("saveImage",e,{type:"async"})},scan:function(e){return f("scan",e,{type:"async"})},sendSocketMessage:function(e){return f("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return f("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return f("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return f("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return f("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return f("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return f("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return f("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return f("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return f("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return f("showAuthGuide",e,{type:"async"})},showLoading:function(e){return f("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return f("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return f("showToast",e,{type:"async"})},signContract:function(e){return f("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return f("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return f("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return f("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return f("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return f("switchTab",e,{type:"async"})},tradePay:function(e){return f("tradePay",e,{type:"async"})},uploadFile:function(e){return f("uploadFile",e,{type:"async"})},vibrate:function(e){return f("vibrate",e,{type:"async"})},watchShake:function(e){return f("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return f("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return f("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return f("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return f("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return f("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return f("chooseVideo",e,{type:"async"})},compressImage:function(e){return f("compressImage",e,{type:"async"})},setTabBarItem:function(e){return f("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return f("showTabBar",e,{type:"async"})},getBackgroundFetchData:function(e){return f("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return f("getEnterOptionsSync",e,{type:"async"})},getAppToken:H,getLocation:function(e){var t=e||{},n=t.fail;N("getLocation",J(J({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,U)),{},{fail:function(e){5===(null==e?void 0:e.error)&&(e.error=11),null==n||n(e)}}))},getAppId:function(e){N("getMPayAppIdSync",e)},getCurrentPages:function(e){f("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){f("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>l});var n=!1,r=[];function o(e){return r.push(e),function(){r=r.filter(function(t){return t!==e})}}function c(e){return n||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);r.forEach(function(e){return e(n)})}}),n=!0),function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)}(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var a={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},u={};function s(e,t,n){n=i({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(u[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout(function(){u[r]&&(delete u[r],o.fail(function(e,t){void 0===t&&(t="");var n=a.TIMEOUT;return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}}()))},n.timeout)}o(function(e){var t,n=e,r=n.serialId;if(r&&u[r]){var o=u[r],c=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var a=c||{},i=a._data_;return"success"===a._type_?o(i):o(void 0,i)}var s=o||{},y=s.success,f=s.fail,p=s.complete,l=c||{},g=l._data_,d=l._type_;d?("success"===d&&(null==y||y(g)),"fail"===d&&(null==f||f(g)),null==p||p(g)):((null==c?void 0:c.error)?null==f||f(c):null==y||y(c),null==p||p(c)),delete u[r]}}),s.onMessage=o,s.postMessage=c,s.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},s.onReceiveGlobalData=function(e,t){return o(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c,void 0,r.from):t(void 0,c,r.from)}})},s.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c):t(void 0,c)}})};function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const l={addPhoneContact:function(e){return s("addPhoneContact",e,{type:"async"})},alert:function(e){return s("alert",e,{type:"async"})},chooseImage:function(e){return s("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return s("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return s("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return s("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return s("closeSocket",e,{type:"async"})},confirm:function(e){return s("confirm",e,{type:"async"})},connectBLEDevice:function(e){return s("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return s("connectSocket",e,{type:"async"})},datePicker:function(e){return s("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return s("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return s("downloadFile",e,{type:"async"})},exitApp:function(e){return s("exitApp",e,{type:"async"})},getAppToken:function(e){return s("getAppToken",e,{type:"async"})},getAuthCode:function(e){return s("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return s("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return s("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return s("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return s("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return s("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return s("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return s("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return s("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return s("getImageInfo",e,{type:"async"})},getLocation:function(e){return s("getLocation",e,{type:"async"})},getNetworkType:function(e){return s("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return s("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return s("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return s("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return s("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return s("getServerTime",e,{type:"async"})},getSetting:function(e){return s("getSetting",e,{type:"async"})},getSiteInfo:function(e){return s("getSiteInfo",e,{type:"async"})},getStorage:function(e){return s("getStorage",e,{type:"async"})},getSystemInfo:function(e){return s("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return s("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return s("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return s("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return s("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return s("hideTabBar",e,{type:"async"})},hideToast:function(e){return s("hideToast",e,{type:"async"})},makePhoneCall:function(e){return s("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return s("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return s("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return s("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return s("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return s("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return s("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return s("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return s("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return s("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return s("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return s("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return s("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return s("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return s("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return s("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return s("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return s("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return s("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return s("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return s("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return s("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return s("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return s("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return s("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return s("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return s("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return s("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return s("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return s("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return s("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return s("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return s("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return s("openDocument",e,{type:"async"})},openSetting:function(e){return s("openSetting",e,{type:"async"})},pageScrollTo:function(e){return s("pageScrollTo",e,{type:"async"})},previewImage:function(e){return s("previewImage",e,{type:"async"})},prompt:function(e){return s("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return s("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return s("redirectTo",e,{type:"async"})},reLaunch:function(e){return s("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return s("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return s("removeStorage",e,{type:"async"})},request:function(e){return s("request",e,{type:"async"})},rpc:function(e){return s("rpc",e,{type:"async"})},saveFile:function(e){return s("saveFile",e,{type:"async"})},saveImage:function(e){return s("saveImage",e,{type:"async"})},scan:function(e){return s("scan",e,{type:"async"})},sendSocketMessage:function(e){return s("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return s("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return s("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return s("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return s("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return s("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return s("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return s("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return s("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return s("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return s("showAuthGuide",e,{type:"async"})},showLoading:function(e){return s("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return s("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return s("showToast",e,{type:"async"})},signContract:function(e){return s("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return s("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return s("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return s("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return s("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return s("switchTab",e,{type:"async"})},tradePay:function(e){return s("tradePay",e,{type:"async"})},uploadFile:function(e){return s("uploadFile",e,{type:"async"})},vibrate:function(e){return s("vibrate",e,{type:"async"})},watchShake:function(e){return s("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return s("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return s("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return s("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return s("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return s("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return s("chooseVideo",e,{type:"async"})},compressImage:function(e){return s("compressImage",e,{type:"async"})},setTabBarItem:function(e){return s("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return s("showTabBar",e,{type:"async"})},getBackgroundFetchData:function(e){return s("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return s("getEnterOptionsSync",e,{type:"async"})},getAppId:function(e){s("getAppIdSync",e,{type:"sync",isSync:!0})},getCurrentPages:function(e){s("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){s("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>l});var n=!1,r=[];function o(e){return r.push(e),function(){r=r.filter(function(t){return t!==e})}}function c(e){return n||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);r.forEach(function(e){return e(n)})}}),n=!0),function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)}(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var a={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},u={};function s(e,t,n){n=i({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(u[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout(function(){u[r]&&(delete u[r],o.fail(function(e,t){void 0===t&&(t="");var n=a.TIMEOUT;return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}}()))},n.timeout)}o(function(e){var t,n=e,r=n.serialId;if(r&&u[r]){var o=u[r],c=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var a=c||{},i=a._data_;return"success"===a._type_?o(i):o(void 0,i)}var s=o||{},y=s.success,f=s.fail,p=s.complete,l=c||{},g=l._data_,d=l._type_;d?("success"===d&&(null==y||y(g)),"fail"===d&&(null==f||f(g)),null==p||p(g)):((null==c?void 0:c.error)?null==f||f(c):null==y||y(c),null==p||p(c)),delete u[r]}}),s.onMessage=o,s.postMessage=c,s.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},s.onReceiveGlobalData=function(e,t){return o(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c,void 0,r.from):t(void 0,c,r.from)}})},s.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c):t(void 0,c)}})};function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const l={addPhoneContact:function(e){return s("addPhoneContact",e,{type:"async"})},alert:function(e){return s("alert",e,{type:"async"})},chooseImage:function(e){return s("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return s("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return s("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return s("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return s("closeSocket",e,{type:"async"})},confirm:function(e){return s("confirm",e,{type:"async"})},connectBLEDevice:function(e){return s("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return s("connectSocket",e,{type:"async"})},datePicker:function(e){return s("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return s("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return s("downloadFile",e,{type:"async"})},exitApp:function(e){return s("exitApp",e,{type:"async"})},getAppToken:function(e){return s("getAppToken",e,{type:"async"})},getAuthCode:function(e){return s("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return s("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return s("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return s("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return s("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return s("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return s("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return s("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return s("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return s("getImageInfo",e,{type:"async"})},getLocation:function(e){return s("getLocation",e,{type:"async"})},getNetworkType:function(e){return s("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return s("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return s("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return s("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return s("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return s("getServerTime",e,{type:"async"})},getSetting:function(e){return s("getSetting",e,{type:"async"})},getSiteInfo:function(e){return s("getSiteInfo",e,{type:"async"})},getStorage:function(e){return s("getStorage",e,{type:"async"})},getSystemInfo:function(e){return s("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return s("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return s("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return s("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return s("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return s("hideTabBar",e,{type:"async"})},hideToast:function(e){return s("hideToast",e,{type:"async"})},makePhoneCall:function(e){return s("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return s("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return s("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return s("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return s("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return s("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return s("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return s("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return s("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return s("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return s("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return s("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return s("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return s("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return s("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return s("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return s("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return s("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return s("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return s("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return s("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return s("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return s("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return s("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return s("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return s("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return s("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return s("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return s("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return s("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return s("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return s("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return s("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return s("openDocument",e,{type:"async"})},openSetting:function(e){return s("openSetting",e,{type:"async"})},pageScrollTo:function(e){return s("pageScrollTo",e,{type:"async"})},previewImage:function(e){return s("previewImage",e,{type:"async"})},prompt:function(e){return s("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return s("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return s("redirectTo",e,{type:"async"})},reLaunch:function(e){return s("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return s("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return s("removeStorage",e,{type:"async"})},request:function(e){return s("request",e,{type:"async"})},rpc:function(e){return s("rpc",e,{type:"async"})},saveFile:function(e){return s("saveFile",e,{type:"async"})},saveImage:function(e){return s("saveImage",e,{type:"async"})},scan:function(e){return s("scan",e,{type:"async"})},sendSocketMessage:function(e){return s("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return s("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return s("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return s("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return s("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return s("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return s("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return s("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return s("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return s("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return s("showAuthGuide",e,{type:"async"})},showLoading:function(e){return s("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return s("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return s("showToast",e,{type:"async"})},signContract:function(e){return s("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return s("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return s("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return s("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return s("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return s("switchTab",e,{type:"async"})},tradePay:function(e){return s("tradePay",e,{type:"async"})},uploadFile:function(e){return s("uploadFile",e,{type:"async"})},vibrate:function(e){return s("vibrate",e,{type:"async"})},watchShake:function(e){return s("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return s("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return s("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return s("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return s("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return s("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return s("chooseVideo",e,{type:"async"})},compressImage:function(e){return s("compressImage",e,{type:"async"})},setTabBarItem:function(e){return s("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return s("showTabBar",e,{type:"async"})},getBackgroundFetchData:function(e){return s("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return s("getEnterOptionsSync",e,{type:"async"})},getAppId:function(e){s("getAppIdSync",e,{type:"sync",isSync:!0})},getCurrentPages:function(e){s("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){s("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>l});var n=!1,r=[];function o(e){return r.push(e),function(){r=r.filter(function(t){return t!==e})}}function c(e){return n||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);r.forEach(function(e){return e(n)})}}),n=!0),function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)}(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var a={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},u={};function s(e,t,n){n=i({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(u[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout(function(){u[r]&&(delete u[r],o.fail(function(e,t){void 0===t&&(t="");var n=a.TIMEOUT;return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}}()))},n.timeout)}o(function(e){var t,n=e,r=n.serialId;if(r&&u[r]){var o=u[r],c=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var a=c||{},i=a._data_;return"success"===a._type_?o(i):o(void 0,i)}var s=o||{},y=s.success,f=s.fail,p=s.complete,l=c||{},g=l._data_,d=l._type_;d?("success"===d&&(null==y||y(g)),"fail"===d&&(null==f||f(g)),null==p||p(g)):((null==c?void 0:c.error)?null==f||f(c):null==y||y(c),null==p||p(c)),delete u[r]}}),s.onMessage=o,s.postMessage=c,s.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},s.onReceiveGlobalData=function(e,t){return o(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c,void 0,r.from):t(void 0,c,r.from)}})},s.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c):t(void 0,c)}})};function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const l={addPhoneContact:function(e){return s("addPhoneContact",e,{type:"async"})},alert:function(e){return s("alert",e,{type:"async"})},chooseImage:function(e){return s("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return s("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return s("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return s("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return s("closeSocket",e,{type:"async"})},confirm:function(e){return s("confirm",e,{type:"async"})},connectBLEDevice:function(e){return s("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return s("connectSocket",e,{type:"async"})},datePicker:function(e){return s("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return s("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return s("downloadFile",e,{type:"async"})},exitApp:function(e){return s("exitApp",e,{type:"async"})},getAppToken:function(e){return s("getAppToken",e,{type:"async"})},getAuthCode:function(e){return s("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return s("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return s("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return s("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return s("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return s("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return s("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return s("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return s("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return s("getImageInfo",e,{type:"async"})},getLocation:function(e){return s("getLocation",e,{type:"async"})},getNetworkType:function(e){return s("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return s("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return s("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return s("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return s("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return s("getServerTime",e,{type:"async"})},getSetting:function(e){return s("getSetting",e,{type:"async"})},getSiteInfo:function(e){return s("getSiteInfo",e,{type:"async"})},getStorage:function(e){return s("getStorage",e,{type:"async"})},getSystemInfo:function(e){return s("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return s("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return s("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return s("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return s("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return s("hideTabBar",e,{type:"async"})},hideToast:function(e){return s("hideToast",e,{type:"async"})},makePhoneCall:function(e){return s("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return s("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return s("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return s("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return s("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return s("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return s("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return s("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return s("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return s("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return s("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return s("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return s("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return s("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return s("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return s("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return s("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return s("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return s("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return s("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return s("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return s("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return s("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return s("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return s("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return s("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return s("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return s("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return s("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return s("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return s("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return s("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return s("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return s("openDocument",e,{type:"async"})},openSetting:function(e){return s("openSetting",e,{type:"async"})},pageScrollTo:function(e){return s("pageScrollTo",e,{type:"async"})},previewImage:function(e){return s("previewImage",e,{type:"async"})},prompt:function(e){return s("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return s("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return s("redirectTo",e,{type:"async"})},reLaunch:function(e){return s("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return s("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return s("removeStorage",e,{type:"async"})},request:function(e){return s("request",e,{type:"async"})},rpc:function(e){return s("rpc",e,{type:"async"})},saveFile:function(e){return s("saveFile",e,{type:"async"})},saveImage:function(e){return s("saveImage",e,{type:"async"})},scan:function(e){return s("scan",e,{type:"async"})},sendSocketMessage:function(e){return s("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return s("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return s("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return s("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return s("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return s("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return s("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return s("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return s("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return s("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return s("showAuthGuide",e,{type:"async"})},showLoading:function(e){return s("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return s("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return s("showToast",e,{type:"async"})},signContract:function(e){return s("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return s("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return s("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return s("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return s("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return s("switchTab",e,{type:"async"})},tradePay:function(e){return s("tradePay",e,{type:"async"})},uploadFile:function(e){return s("uploadFile",e,{type:"async"})},vibrate:function(e){return s("vibrate",e,{type:"async"})},watchShake:function(e){return s("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return s("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return s("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return s("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return s("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return s("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return s("chooseVideo",e,{type:"async"})},compressImage:function(e){return s("compressImage",e,{type:"async"})},setTabBarItem:function(e){return s("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return s("showTabBar",e,{type:"async"})},getBackgroundFetchData:function(e){return s("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return s("getEnterOptionsSync",e,{type:"async"})},getAppId:function(e){s("getAppIdSync",e,{type:"sync",isSync:!0})},getCurrentPages:function(e){s("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){s("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());