hylid-bridge 6.0.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/README.md +310 -310
  2. package/lib/bridges.d.ts +234 -234
  3. package/lib/bridges.js +365 -234
  4. package/lib/clients/mp_web/kakaopaysandbox/addPhoneContact.d.ts +2 -0
  5. package/lib/clients/mp_web/kakaopaysandbox/addPhoneContact.js +3 -0
  6. package/lib/clients/mp_web/kakaopaysandbox/alert.d.ts +2 -0
  7. package/lib/clients/mp_web/kakaopaysandbox/alert.js +3 -0
  8. package/lib/clients/mp_web/kakaopaysandbox/chooseFileFromDisk.d.ts +2 -0
  9. package/lib/clients/mp_web/kakaopaysandbox/chooseFileFromDisk.js +3 -0
  10. package/lib/clients/mp_web/kakaopaysandbox/chooseImage.d.ts +2 -0
  11. package/lib/clients/mp_web/kakaopaysandbox/chooseImage.js +3 -0
  12. package/lib/clients/mp_web/kakaopaysandbox/choosePhoneContact.d.ts +2 -0
  13. package/lib/clients/mp_web/kakaopaysandbox/choosePhoneContact.js +3 -0
  14. package/lib/clients/mp_web/kakaopaysandbox/chooseVideo.d.ts +2 -0
  15. package/lib/clients/mp_web/kakaopaysandbox/chooseVideo.js +3 -0
  16. package/lib/clients/mp_web/kakaopaysandbox/clearStorage.d.ts +2 -0
  17. package/lib/clients/mp_web/kakaopaysandbox/clearStorage.js +3 -0
  18. package/lib/clients/mp_web/kakaopaysandbox/closeBluetoothAdapter.d.ts +2 -0
  19. package/lib/clients/mp_web/kakaopaysandbox/closeBluetoothAdapter.js +3 -0
  20. package/lib/clients/mp_web/kakaopaysandbox/closeSocket.d.ts +2 -0
  21. package/lib/clients/mp_web/kakaopaysandbox/closeSocket.js +3 -0
  22. package/lib/clients/mp_web/kakaopaysandbox/compressImage.d.ts +2 -0
  23. package/lib/clients/mp_web/kakaopaysandbox/compressImage.js +3 -0
  24. package/lib/clients/mp_web/kakaopaysandbox/confirm.d.ts +2 -0
  25. package/lib/clients/mp_web/kakaopaysandbox/confirm.js +3 -0
  26. package/lib/clients/mp_web/kakaopaysandbox/connectBLEDevice.d.ts +2 -0
  27. package/lib/clients/mp_web/kakaopaysandbox/connectBLEDevice.js +3 -0
  28. package/lib/clients/mp_web/kakaopaysandbox/connectSocket.d.ts +2 -0
  29. package/lib/clients/mp_web/kakaopaysandbox/connectSocket.js +3 -0
  30. package/lib/clients/mp_web/kakaopaysandbox/datePicker.d.ts +2 -0
  31. package/lib/clients/mp_web/kakaopaysandbox/datePicker.js +3 -0
  32. package/lib/clients/mp_web/kakaopaysandbox/disconnectBLEDevice.d.ts +2 -0
  33. package/lib/clients/mp_web/kakaopaysandbox/disconnectBLEDevice.js +3 -0
  34. package/lib/clients/mp_web/kakaopaysandbox/downloadFile.d.ts +2 -0
  35. package/lib/clients/mp_web/kakaopaysandbox/downloadFile.js +3 -0
  36. package/lib/clients/mp_web/kakaopaysandbox/exitApp.d.ts +2 -0
  37. package/lib/clients/mp_web/kakaopaysandbox/exitApp.js +3 -0
  38. package/lib/clients/mp_web/kakaopaysandbox/getAppId.d.ts +2 -0
  39. package/lib/clients/mp_web/kakaopaysandbox/getAppId.js +3 -0
  40. package/lib/clients/mp_web/kakaopaysandbox/getAppToken.d.ts +2 -0
  41. package/lib/clients/mp_web/kakaopaysandbox/getAppToken.js +3 -0
  42. package/lib/clients/mp_web/kakaopaysandbox/getAuthCode.d.ts +2 -0
  43. package/lib/clients/mp_web/kakaopaysandbox/getAuthCode.js +3 -0
  44. package/lib/clients/mp_web/kakaopaysandbox/getBLEDeviceCharacteristics.d.ts +2 -0
  45. package/lib/clients/mp_web/kakaopaysandbox/getBLEDeviceCharacteristics.js +3 -0
  46. package/lib/clients/mp_web/kakaopaysandbox/getBLEDeviceServices.d.ts +2 -0
  47. package/lib/clients/mp_web/kakaopaysandbox/getBLEDeviceServices.js +3 -0
  48. package/lib/clients/mp_web/kakaopaysandbox/getBackgroundFetchData.d.ts +2 -0
  49. package/lib/clients/mp_web/kakaopaysandbox/getBackgroundFetchData.js +3 -0
  50. package/lib/clients/mp_web/kakaopaysandbox/getBatteryInfo.d.ts +2 -0
  51. package/lib/clients/mp_web/kakaopaysandbox/getBatteryInfo.js +3 -0
  52. package/lib/clients/mp_web/kakaopaysandbox/getBluetoothAdapterState.d.ts +2 -0
  53. package/lib/clients/mp_web/kakaopaysandbox/getBluetoothAdapterState.js +3 -0
  54. package/lib/clients/mp_web/kakaopaysandbox/getBluetoothDevices.d.ts +2 -0
  55. package/lib/clients/mp_web/kakaopaysandbox/getBluetoothDevices.js +3 -0
  56. package/lib/clients/mp_web/kakaopaysandbox/getClipboard.d.ts +2 -0
  57. package/lib/clients/mp_web/kakaopaysandbox/getClipboard.js +3 -0
  58. package/lib/clients/mp_web/kakaopaysandbox/getConnectedBluetoothDevices.d.ts +2 -0
  59. package/lib/clients/mp_web/kakaopaysandbox/getConnectedBluetoothDevices.js +3 -0
  60. package/lib/clients/mp_web/kakaopaysandbox/getCurrentPages.d.ts +2 -0
  61. package/lib/clients/mp_web/kakaopaysandbox/getCurrentPages.js +3 -0
  62. package/lib/clients/mp_web/kakaopaysandbox/getEnterOptionsSync.d.ts +2 -0
  63. package/lib/clients/mp_web/kakaopaysandbox/getEnterOptionsSync.js +3 -0
  64. package/lib/clients/mp_web/kakaopaysandbox/getFileInfo.d.ts +2 -0
  65. package/lib/clients/mp_web/kakaopaysandbox/getFileInfo.js +3 -0
  66. package/lib/clients/mp_web/kakaopaysandbox/getImageInfo.d.ts +2 -0
  67. package/lib/clients/mp_web/kakaopaysandbox/getImageInfo.js +3 -0
  68. package/lib/clients/mp_web/kakaopaysandbox/getLocation.d.ts +2 -0
  69. package/lib/clients/mp_web/kakaopaysandbox/getLocation.js +3 -0
  70. package/lib/clients/mp_web/kakaopaysandbox/getNetworkType.d.ts +2 -0
  71. package/lib/clients/mp_web/kakaopaysandbox/getNetworkType.js +3 -0
  72. package/lib/clients/mp_web/kakaopaysandbox/getOpenUserInfo.d.ts +2 -0
  73. package/lib/clients/mp_web/kakaopaysandbox/getOpenUserInfo.js +3 -0
  74. package/lib/clients/mp_web/kakaopaysandbox/getRunScene.d.ts +2 -0
  75. package/lib/clients/mp_web/kakaopaysandbox/getRunScene.js +3 -0
  76. package/lib/clients/mp_web/kakaopaysandbox/getSDKVersion.d.ts +2 -0
  77. package/lib/clients/mp_web/kakaopaysandbox/getSDKVersion.js +3 -0
  78. package/lib/clients/mp_web/kakaopaysandbox/getSavedFileInfo.d.ts +2 -0
  79. package/lib/clients/mp_web/kakaopaysandbox/getSavedFileInfo.js +3 -0
  80. package/lib/clients/mp_web/kakaopaysandbox/getSavedFileList.d.ts +2 -0
  81. package/lib/clients/mp_web/kakaopaysandbox/getSavedFileList.js +3 -0
  82. package/lib/clients/mp_web/kakaopaysandbox/getScreenBrightness.d.ts +2 -0
  83. package/lib/clients/mp_web/kakaopaysandbox/getScreenBrightness.js +3 -0
  84. package/lib/clients/mp_web/kakaopaysandbox/getServerTime.d.ts +2 -0
  85. package/lib/clients/mp_web/kakaopaysandbox/getServerTime.js +3 -0
  86. package/lib/clients/mp_web/kakaopaysandbox/getSetting.d.ts +2 -0
  87. package/lib/clients/mp_web/kakaopaysandbox/getSetting.js +3 -0
  88. package/lib/clients/mp_web/kakaopaysandbox/getSiteInfo.d.ts +2 -0
  89. package/lib/clients/mp_web/kakaopaysandbox/getSiteInfo.js +3 -0
  90. package/lib/clients/mp_web/kakaopaysandbox/getStorage.d.ts +2 -0
  91. package/lib/clients/mp_web/kakaopaysandbox/getStorage.js +3 -0
  92. package/lib/clients/mp_web/kakaopaysandbox/getSystemInfo.d.ts +2 -0
  93. package/lib/clients/mp_web/kakaopaysandbox/getSystemInfo.js +3 -0
  94. package/lib/clients/mp_web/kakaopaysandbox/hideBackHome.d.ts +2 -0
  95. package/lib/clients/mp_web/kakaopaysandbox/hideBackHome.js +3 -0
  96. package/lib/clients/mp_web/kakaopaysandbox/hideKeyboard.d.ts +2 -0
  97. package/lib/clients/mp_web/kakaopaysandbox/hideKeyboard.js +3 -0
  98. package/lib/clients/mp_web/kakaopaysandbox/hideLoading.d.ts +2 -0
  99. package/lib/clients/mp_web/kakaopaysandbox/hideLoading.js +3 -0
  100. package/lib/clients/mp_web/kakaopaysandbox/hideNavigationBarLoading.d.ts +2 -0
  101. package/lib/clients/mp_web/kakaopaysandbox/hideNavigationBarLoading.js +3 -0
  102. package/lib/clients/mp_web/kakaopaysandbox/hideTabBar.d.ts +2 -0
  103. package/lib/clients/mp_web/kakaopaysandbox/hideTabBar.js +3 -0
  104. package/lib/clients/mp_web/kakaopaysandbox/hideToast.d.ts +2 -0
  105. package/lib/clients/mp_web/kakaopaysandbox/hideToast.js +3 -0
  106. package/lib/clients/mp_web/kakaopaysandbox/index.d.ts +451 -0
  107. package/lib/clients/mp_web/kakaopaysandbox/index.js +261 -0
  108. package/lib/clients/mp_web/kakaopaysandbox/makePhoneCall.d.ts +2 -0
  109. package/lib/clients/mp_web/kakaopaysandbox/makePhoneCall.js +3 -0
  110. package/lib/clients/mp_web/kakaopaysandbox/multiLevelSelect.d.ts +2 -0
  111. package/lib/clients/mp_web/kakaopaysandbox/multiLevelSelect.js +3 -0
  112. package/lib/clients/mp_web/kakaopaysandbox/navigateBack.d.ts +2 -0
  113. package/lib/clients/mp_web/kakaopaysandbox/navigateBack.js +3 -0
  114. package/lib/clients/mp_web/kakaopaysandbox/navigateBackMiniProgram.d.ts +2 -0
  115. package/lib/clients/mp_web/kakaopaysandbox/navigateBackMiniProgram.js +3 -0
  116. package/lib/clients/mp_web/kakaopaysandbox/navigateTo.d.ts +2 -0
  117. package/lib/clients/mp_web/kakaopaysandbox/navigateTo.js +3 -0
  118. package/lib/clients/mp_web/kakaopaysandbox/navigateToBizScene.d.ts +2 -0
  119. package/lib/clients/mp_web/kakaopaysandbox/navigateToBizScene.js +3 -0
  120. package/lib/clients/mp_web/kakaopaysandbox/navigateToMiniProgram.d.ts +2 -0
  121. package/lib/clients/mp_web/kakaopaysandbox/navigateToMiniProgram.js +3 -0
  122. package/lib/clients/mp_web/kakaopaysandbox/notifyBLECharacteristicValueChange.d.ts +2 -0
  123. package/lib/clients/mp_web/kakaopaysandbox/notifyBLECharacteristicValueChange.js +3 -0
  124. package/lib/clients/mp_web/kakaopaysandbox/offAccelerometerChange.d.ts +2 -0
  125. package/lib/clients/mp_web/kakaopaysandbox/offAccelerometerChange.js +3 -0
  126. package/lib/clients/mp_web/kakaopaysandbox/offBLECharacteristicValueChange.d.ts +2 -0
  127. package/lib/clients/mp_web/kakaopaysandbox/offBLECharacteristicValueChange.js +3 -0
  128. package/lib/clients/mp_web/kakaopaysandbox/offBLEConnectionStateChanged.d.ts +2 -0
  129. package/lib/clients/mp_web/kakaopaysandbox/offBLEConnectionStateChanged.js +3 -0
  130. package/lib/clients/mp_web/kakaopaysandbox/offBluetoothAdapterStateChange.d.ts +2 -0
  131. package/lib/clients/mp_web/kakaopaysandbox/offBluetoothAdapterStateChange.js +3 -0
  132. package/lib/clients/mp_web/kakaopaysandbox/offBluetoothDeviceFound.d.ts +2 -0
  133. package/lib/clients/mp_web/kakaopaysandbox/offBluetoothDeviceFound.js +3 -0
  134. package/lib/clients/mp_web/kakaopaysandbox/offCompassChange.d.ts +2 -0
  135. package/lib/clients/mp_web/kakaopaysandbox/offCompassChange.js +3 -0
  136. package/lib/clients/mp_web/kakaopaysandbox/offMemoryWarning.d.ts +2 -0
  137. package/lib/clients/mp_web/kakaopaysandbox/offMemoryWarning.js +3 -0
  138. package/lib/clients/mp_web/kakaopaysandbox/offSocketClose.d.ts +2 -0
  139. package/lib/clients/mp_web/kakaopaysandbox/offSocketClose.js +3 -0
  140. package/lib/clients/mp_web/kakaopaysandbox/offSocketError.d.ts +2 -0
  141. package/lib/clients/mp_web/kakaopaysandbox/offSocketError.js +3 -0
  142. package/lib/clients/mp_web/kakaopaysandbox/offSocketMessage.d.ts +2 -0
  143. package/lib/clients/mp_web/kakaopaysandbox/offSocketMessage.js +3 -0
  144. package/lib/clients/mp_web/kakaopaysandbox/offSocketOpen.d.ts +2 -0
  145. package/lib/clients/mp_web/kakaopaysandbox/offSocketOpen.js +3 -0
  146. package/lib/clients/mp_web/kakaopaysandbox/offUserCaptureScreen.d.ts +2 -0
  147. package/lib/clients/mp_web/kakaopaysandbox/offUserCaptureScreen.js +3 -0
  148. package/lib/clients/mp_web/kakaopaysandbox/onAccelerometerChange.d.ts +2 -0
  149. package/lib/clients/mp_web/kakaopaysandbox/onAccelerometerChange.js +3 -0
  150. package/lib/clients/mp_web/kakaopaysandbox/onBLECharacteristicValueChange.d.ts +2 -0
  151. package/lib/clients/mp_web/kakaopaysandbox/onBLECharacteristicValueChange.js +3 -0
  152. package/lib/clients/mp_web/kakaopaysandbox/onBLEConnectionStateChanged.d.ts +2 -0
  153. package/lib/clients/mp_web/kakaopaysandbox/onBLEConnectionStateChanged.js +3 -0
  154. package/lib/clients/mp_web/kakaopaysandbox/onBluetoothAdapterStateChange.d.ts +2 -0
  155. package/lib/clients/mp_web/kakaopaysandbox/onBluetoothAdapterStateChange.js +3 -0
  156. package/lib/clients/mp_web/kakaopaysandbox/onBluetoothDeviceFound.d.ts +2 -0
  157. package/lib/clients/mp_web/kakaopaysandbox/onBluetoothDeviceFound.js +3 -0
  158. package/lib/clients/mp_web/kakaopaysandbox/onCompassChange.d.ts +2 -0
  159. package/lib/clients/mp_web/kakaopaysandbox/onCompassChange.js +3 -0
  160. package/lib/clients/mp_web/kakaopaysandbox/onMemoryWarning.d.ts +2 -0
  161. package/lib/clients/mp_web/kakaopaysandbox/onMemoryWarning.js +3 -0
  162. package/lib/clients/mp_web/kakaopaysandbox/onSocketClose.d.ts +2 -0
  163. package/lib/clients/mp_web/kakaopaysandbox/onSocketClose.js +3 -0
  164. package/lib/clients/mp_web/kakaopaysandbox/onSocketError.d.ts +2 -0
  165. package/lib/clients/mp_web/kakaopaysandbox/onSocketError.js +3 -0
  166. package/lib/clients/mp_web/kakaopaysandbox/onSocketMessage.d.ts +2 -0
  167. package/lib/clients/mp_web/kakaopaysandbox/onSocketMessage.js +3 -0
  168. package/lib/clients/mp_web/kakaopaysandbox/onSocketOpen.d.ts +2 -0
  169. package/lib/clients/mp_web/kakaopaysandbox/onSocketOpen.js +3 -0
  170. package/lib/clients/mp_web/kakaopaysandbox/onUserCaptureScreen.d.ts +2 -0
  171. package/lib/clients/mp_web/kakaopaysandbox/onUserCaptureScreen.js +3 -0
  172. package/lib/clients/mp_web/kakaopaysandbox/openBluetoothAdapter.d.ts +2 -0
  173. package/lib/clients/mp_web/kakaopaysandbox/openBluetoothAdapter.js +3 -0
  174. package/lib/clients/mp_web/kakaopaysandbox/openDocument.d.ts +2 -0
  175. package/lib/clients/mp_web/kakaopaysandbox/openDocument.js +3 -0
  176. package/lib/clients/mp_web/kakaopaysandbox/openSetting.d.ts +2 -0
  177. package/lib/clients/mp_web/kakaopaysandbox/openSetting.js +3 -0
  178. package/lib/clients/mp_web/kakaopaysandbox/pageScrollTo.d.ts +2 -0
  179. package/lib/clients/mp_web/kakaopaysandbox/pageScrollTo.js +3 -0
  180. package/lib/clients/mp_web/kakaopaysandbox/previewImage.d.ts +2 -0
  181. package/lib/clients/mp_web/kakaopaysandbox/previewImage.js +3 -0
  182. package/lib/clients/mp_web/kakaopaysandbox/prompt.d.ts +2 -0
  183. package/lib/clients/mp_web/kakaopaysandbox/prompt.js +3 -0
  184. package/lib/clients/mp_web/kakaopaysandbox/reLaunch.d.ts +2 -0
  185. package/lib/clients/mp_web/kakaopaysandbox/reLaunch.js +3 -0
  186. package/lib/clients/mp_web/kakaopaysandbox/readBLECharacteristicValue.d.ts +2 -0
  187. package/lib/clients/mp_web/kakaopaysandbox/readBLECharacteristicValue.js +3 -0
  188. package/lib/clients/mp_web/kakaopaysandbox/redirectTo.d.ts +2 -0
  189. package/lib/clients/mp_web/kakaopaysandbox/redirectTo.js +3 -0
  190. package/lib/clients/mp_web/kakaopaysandbox/removeSavedFile.d.ts +2 -0
  191. package/lib/clients/mp_web/kakaopaysandbox/removeSavedFile.js +3 -0
  192. package/lib/clients/mp_web/kakaopaysandbox/removeStorage.d.ts +2 -0
  193. package/lib/clients/mp_web/kakaopaysandbox/removeStorage.js +3 -0
  194. package/lib/clients/mp_web/kakaopaysandbox/request.d.ts +2 -0
  195. package/lib/clients/mp_web/kakaopaysandbox/request.js +3 -0
  196. package/lib/clients/mp_web/kakaopaysandbox/rpc.d.ts +2 -0
  197. package/lib/clients/mp_web/kakaopaysandbox/rpc.js +3 -0
  198. package/lib/clients/mp_web/kakaopaysandbox/saveFile.d.ts +2 -0
  199. package/lib/clients/mp_web/kakaopaysandbox/saveFile.js +3 -0
  200. package/lib/clients/mp_web/kakaopaysandbox/saveImage.d.ts +2 -0
  201. package/lib/clients/mp_web/kakaopaysandbox/saveImage.js +3 -0
  202. package/lib/clients/mp_web/kakaopaysandbox/scan.d.ts +2 -0
  203. package/lib/clients/mp_web/kakaopaysandbox/scan.js +3 -0
  204. package/lib/clients/mp_web/kakaopaysandbox/sendSocketMessage.d.ts +2 -0
  205. package/lib/clients/mp_web/kakaopaysandbox/sendSocketMessage.js +3 -0
  206. package/lib/clients/mp_web/kakaopaysandbox/setBackgroundColor.d.ts +2 -0
  207. package/lib/clients/mp_web/kakaopaysandbox/setBackgroundColor.js +3 -0
  208. package/lib/clients/mp_web/kakaopaysandbox/setCanPullDown.d.ts +2 -0
  209. package/lib/clients/mp_web/kakaopaysandbox/setCanPullDown.js +3 -0
  210. package/lib/clients/mp_web/kakaopaysandbox/setClipboard.d.ts +2 -0
  211. package/lib/clients/mp_web/kakaopaysandbox/setClipboard.js +3 -0
  212. package/lib/clients/mp_web/kakaopaysandbox/setKeepScreenOn.d.ts +2 -0
  213. package/lib/clients/mp_web/kakaopaysandbox/setKeepScreenOn.js +3 -0
  214. package/lib/clients/mp_web/kakaopaysandbox/setNavigationBar.d.ts +2 -0
  215. package/lib/clients/mp_web/kakaopaysandbox/setNavigationBar.js +3 -0
  216. package/lib/clients/mp_web/kakaopaysandbox/setScreenBrightness.d.ts +2 -0
  217. package/lib/clients/mp_web/kakaopaysandbox/setScreenBrightness.js +3 -0
  218. package/lib/clients/mp_web/kakaopaysandbox/setStorage.d.ts +2 -0
  219. package/lib/clients/mp_web/kakaopaysandbox/setStorage.js +3 -0
  220. package/lib/clients/mp_web/kakaopaysandbox/setTabBarItem.d.ts +2 -0
  221. package/lib/clients/mp_web/kakaopaysandbox/setTabBarItem.js +3 -0
  222. package/lib/clients/mp_web/kakaopaysandbox/setTabBarStyle.d.ts +2 -0
  223. package/lib/clients/mp_web/kakaopaysandbox/setTabBarStyle.js +3 -0
  224. package/lib/clients/mp_web/kakaopaysandbox/setTransparentTitle.d.ts +2 -0
  225. package/lib/clients/mp_web/kakaopaysandbox/setTransparentTitle.js +3 -0
  226. package/lib/clients/mp_web/kakaopaysandbox/showActionSheet.d.ts +2 -0
  227. package/lib/clients/mp_web/kakaopaysandbox/showActionSheet.js +3 -0
  228. package/lib/clients/mp_web/kakaopaysandbox/showAuthGuide.d.ts +2 -0
  229. package/lib/clients/mp_web/kakaopaysandbox/showAuthGuide.js +3 -0
  230. package/lib/clients/mp_web/kakaopaysandbox/showLoading.d.ts +2 -0
  231. package/lib/clients/mp_web/kakaopaysandbox/showLoading.js +3 -0
  232. package/lib/clients/mp_web/kakaopaysandbox/showNavigationBarLoading.d.ts +2 -0
  233. package/lib/clients/mp_web/kakaopaysandbox/showNavigationBarLoading.js +3 -0
  234. package/lib/clients/mp_web/kakaopaysandbox/showSharePanel.d.ts +2 -0
  235. package/lib/clients/mp_web/kakaopaysandbox/showSharePanel.js +3 -0
  236. package/lib/clients/mp_web/kakaopaysandbox/showTabBar.d.ts +2 -0
  237. package/lib/clients/mp_web/kakaopaysandbox/showTabBar.js +3 -0
  238. package/lib/clients/mp_web/kakaopaysandbox/showToast.d.ts +2 -0
  239. package/lib/clients/mp_web/kakaopaysandbox/showToast.js +3 -0
  240. package/lib/clients/mp_web/kakaopaysandbox/signContract.d.ts +2 -0
  241. package/lib/clients/mp_web/kakaopaysandbox/signContract.js +3 -0
  242. package/lib/clients/mp_web/kakaopaysandbox/startBluetoothDevicesDiscovery.d.ts +2 -0
  243. package/lib/clients/mp_web/kakaopaysandbox/startBluetoothDevicesDiscovery.js +3 -0
  244. package/lib/clients/mp_web/kakaopaysandbox/startPullDownRefresh.d.ts +2 -0
  245. package/lib/clients/mp_web/kakaopaysandbox/startPullDownRefresh.js +3 -0
  246. package/lib/clients/mp_web/kakaopaysandbox/stopBluetoothDevicesDiscovery.d.ts +2 -0
  247. package/lib/clients/mp_web/kakaopaysandbox/stopBluetoothDevicesDiscovery.js +3 -0
  248. package/lib/clients/mp_web/kakaopaysandbox/stopPullDownRefresh.d.ts +2 -0
  249. package/lib/clients/mp_web/kakaopaysandbox/stopPullDownRefresh.js +3 -0
  250. package/lib/clients/mp_web/kakaopaysandbox/switchTab.d.ts +2 -0
  251. package/lib/clients/mp_web/kakaopaysandbox/switchTab.js +3 -0
  252. package/lib/clients/mp_web/kakaopaysandbox/tradePay.d.ts +2 -0
  253. package/lib/clients/mp_web/kakaopaysandbox/tradePay.js +3 -0
  254. package/lib/clients/mp_web/kakaopaysandbox/uploadFile.d.ts +2 -0
  255. package/lib/clients/mp_web/kakaopaysandbox/uploadFile.js +3 -0
  256. package/lib/clients/mp_web/kakaopaysandbox/vibrate.d.ts +2 -0
  257. package/lib/clients/mp_web/kakaopaysandbox/vibrate.js +3 -0
  258. package/lib/clients/mp_web/kakaopaysandbox/watchShake.d.ts +2 -0
  259. package/lib/clients/mp_web/kakaopaysandbox/watchShake.js +3 -0
  260. package/lib/clients/mp_web/kakaopaysandbox/writeBLECharacteristicValue.d.ts +2 -0
  261. package/lib/clients/mp_web/kakaopaysandbox/writeBLECharacteristicValue.js +3 -0
  262. package/lib/common/apis/custom/web/changipay/getAuthCode.js +3 -0
  263. package/lib/common/apis/custom/web/h5/request.js +7 -0
  264. package/lib/dsl.d.ts +210 -210
  265. package/lib/dsl.js +210 -210
  266. package/lib/umd/index.js +1 -1
  267. package/lib/umd/mp_web_alipay.js +1 -1
  268. package/lib/umd/mp_web_kakaopaysandbox.js +1 -0
  269. package/lib/umd/mp_web_mpay.js +1 -1
  270. package/lib/umd/web_alipay.js +1 -1
  271. package/lib/umd/web_changipay.js +1 -1
  272. package/lib/umd/web_h5.js +1 -1
  273. package/lib/umd/web_kaspi.js +1 -1
  274. package/package.json +1 -1
@@ -1 +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 a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})},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)},a=!1,r=[];function o(e){return r.push(e),function(){r=r.filter(function(t){return t!==e})}}function c(e){return a||(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)})}}),a=!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,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)},l={};function y(e,t,n){n=s({timeout:0},n);var a=e+"_"+Math.floor(1e6*Math.random());t&&(l[a]=t),c({source:"hylid",type:"apiCall",api:e,serialId:a,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var r=t;(null==n?void 0:n.timeout)&&(null==r?void 0:r.fail)&&setTimeout(function(){l[a]&&(delete l[a],r.fail(u("TIMEOUT")))},n.timeout)}o(function(e){var t,n=e,a=n.serialId;if(a&&l[a]){var r=l[a],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_?r(i):r(void 0,i)}var u=r||{},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[a]}}),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 a=n;if("hylid"===a.source&&"broadcast"===a.type&&a.key===e){var r=a.result||{},o=r._data_;return"success"===r._type_?t(o,void 0,a.from):t(void 0,o,a.from)}})},y.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var a=n;if("hylid"===a.source&&"pageEvent"===a.type&&a.event===e){var r=a.result||{},o=r._data_;return"success"===r._type_?t(o):t(void 0,o)}})};var f=function(){var e={},t=!1;return function(a,r,o){return new Promise(function(c,i){var u,l=r||{},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(a,"]: Timeout")};i(e),null==f||f(e)},d));var h={apiName:a,options:s(s({},r),{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,a=t.serialId;if(a&&e[a]){var r=e[a],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_?r(i):r(void 0,i)}var u=r||{},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[a]}}(JSON.parse(n.data))}),t=!0),function(t){var n,a=t.apiName,r=t.options,o=t.isSync,c=window,i=Math.floor(1e6*Math.random()),u="".concat(a,"_").concat(i);r&&(e[u]=r);var s={type:"apiCall",api:a,serialId:u,options:r,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,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);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 a=n[0].name;if(n.length>1){var r=n.map(function(e){return e.name}).join(",");m("Multiple clients have been identified(".concat(r,"), and the first one(").concat(a,")is used by default."))}return a}}function d(e,t){return Object.keys(e).reduce(function(n,a){return n["is".concat(a)]=t===e[a],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",SCB_PLANETPLUS:"scb_planetplus",ZALOPAY:"zalopay"},S=/miniprogram/i,A=/^((?!miniprogram).)*$/i,b=/griver/i,O=/^((?!griver).)*$/i,P=[{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/]},{name:v.SCB_PLANETPLUS,match:[/scb/]}],C=[{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]},{name:v.SCB_PLANETPLUS,match:[S,/scb/i]}];function w(){return g(C,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(P,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__=([^&]*)/))||[],a=n[1],r=(window.location.search.match(/__platform__=([^&]*)/)||[])[1],o=JSON.parse(localStorage.getItem(t)||"{}")||{};a&&(o.client=a),r&&(o.platform=r);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 L,I,M=((L={})[h.MP]=function(e,t,n){var a=(n||{}).type,r=void 0===a?"async":a;return"sync"===r||(null==n?void 0:n.isSync)?my[e](t):("async"===r&&(my[e]?my[e](t):my.call(e,t)),"callback"===r&&my[e](t),"attribute"===r?my[e]:void 0)},L[h.MPWEB]=y,L[h.WEB]=function(e,t,a){n(function(){var n=(a||{}).type,r=void 0===n?"async":n;"async"===r&&window.AlipayJSBridge.call(e,t,function(e){var n=t||{},a=n.success,r=n.fail,o=n.complete;e.error||e.errorCode?null==r||r(e):null==a||a(e),null==o||o(e)}),"callback"===r&&window.AlipayJSBridge.call(e,t)})},L);(I={})[h.MPWEB]=f,I[h.WEB]=function(e,t,n){return new Promise(function(a,r){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")};r(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)?(r(e),null==i||i(e)):(a(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 a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}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,a,r=e||{},o=r.flowType,c=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(r,_);t="a+"===o?"tradePayCrossApp":"tradePay",n=c,D?M[D](t,n,a):function(e,t,n){var a;void 0===n&&(n={});var r=n.type,o=void 0===r?"async":r,c=u("NOTFOUND",e);if("sync"===o)return c;"callback"===o&&(null==t||t(c)),"async"===o&&(null===(a=null==t?void 0:t.fail)||void 0===a||a.call(t,c))}(n,a)},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 a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})},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)},a=!1,r=[];function o(e){return r.push(e),function(){r=r.filter(function(t){return t!==e})}}function c(e){return a||(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)})}}),a=!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,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)},l={};function y(e,t,n){n=s({timeout:0},n);var a=e+"_"+Math.floor(1e6*Math.random());t&&(l[a]=t),c({source:"hylid",type:"apiCall",api:e,serialId:a,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var r=t;(null==n?void 0:n.timeout)&&(null==r?void 0:r.fail)&&setTimeout(function(){l[a]&&(delete l[a],r.fail(u("TIMEOUT")))},n.timeout)}o(function(e){var t,n=e,a=n.serialId;if(a&&l[a]){var r=l[a],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_?r(i):r(void 0,i)}var u=r||{},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[a]}}),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 a=n;if("hylid"===a.source&&"broadcast"===a.type&&a.key===e){var r=a.result||{},o=r._data_;return"success"===r._type_?t(o,void 0,a.from):t(void 0,o,a.from)}})},y.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var a=n;if("hylid"===a.source&&"pageEvent"===a.type&&a.event===e){var r=a.result||{},o=r._data_;return"success"===r._type_?t(o):t(void 0,o)}})};var f=function(){var e={},t=!1;return function(a,r,o){return new Promise(function(c,i){var u,l=r||{},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(a,"]: Timeout")};i(e),null==f||f(e)},d));var h={apiName:a,options:s(s({},r),{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,a=t.serialId;if(a&&e[a]){var r=e[a],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_?r(i):r(void 0,i)}var u=r||{},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[a]}}(JSON.parse(n.data))}),t=!0),function(t){var n,a=t.apiName,r=t.options,o=t.isSync,c=window,i=Math.floor(1e6*Math.random()),u="".concat(a,"_").concat(i);r&&(e[u]=r);var s={type:"apiCall",api:a,serialId:u,options:r,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,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);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 a=n[0].name;if(n.length>1){var r=n.map(function(e){return e.name}).join(",");m("Multiple clients have been identified(".concat(r,"), and the first one(").concat(a,")is used by default."))}return a}}function d(e,t){return Object.keys(e).reduce(function(n,a){return n["is".concat(a)]=t===e[a],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",KAKAOPAYSANDBOX:"kakaopaysandbox",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",SCB_PLANETPLUS:"scb_planetplus",ZALOPAY:"zalopay"},S=/miniprogram/i,A=/^((?!miniprogram).)*$/i,b=/griver/i,O=/^((?!griver).)*$/i,P=[{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/]},{name:v.SCB_PLANETPLUS,match:[/scb/]}],C=[{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]},{name:v.SCB_PLANETPLUS,match:[S,/scb/i]}];function B(){return g(C,window.navigator.userAgent)}var w=[{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(w,window.navigator.userAgent)||v.H5}var T=function(){var e,t;if("undefined"!=typeof my&&"string"==typeof my.SDKVersion)e=g(P,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__=([^&]*)/))||[],a=n[1],r=(window.location.search.match(/__platform__=([^&]*)/)||[])[1],o=JSON.parse(localStorage.getItem(t)||"{}")||{};a&&(o.client=a),r&&(o.platform=r);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?B():k())):(e=n.client||B())?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 L,I,M=((L={})[h.MP]=function(e,t,n){var a=(n||{}).type,r=void 0===a?"async":a;return"sync"===r||(null==n?void 0:n.isSync)?my[e](t):("async"===r&&(my[e]?my[e](t):my.call(e,t)),"callback"===r&&my[e](t),"attribute"===r?my[e]:void 0)},L[h.MPWEB]=y,L[h.WEB]=function(e,t,a){n(function(){var n=(a||{}).type,r=void 0===n?"async":n;"async"===r&&window.AlipayJSBridge.call(e,t,function(e){var n=t||{},a=n.success,r=n.fail,o=n.complete;e.error||e.errorCode?null==r||r(e):null==a||a(e),null==o||o(e)}),"callback"===r&&window.AlipayJSBridge.call(e,t)})},L);(I={})[h.MPWEB]=f,I[h.WEB]=function(e,t,n){return new Promise(function(a,r){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")};r(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)?(r(e),null==i||i(e)):(a(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 K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}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,a,r=e||{},o=r.flowType,c=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(r,N);t="a+"===o?"tradePayCrossApp":"tradePay",n=c,D?M[D](t,n,a):function(e,t,n){var a;void 0===n&&(n={});var r=n.type,o=void 0===r?"async":r,c=u("NOTFOUND",e);if("sync"===o)return c;"callback"===o&&(null==t||t(c)),"async"===o&&(null===(a=null==t?void 0:t.fail)||void 0===a||a.call(t,c))}(n,a)},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?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}({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?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}({},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:()=>q});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,m=p.isSync;g>0&&(u=setTimeout(function(){var e={error:-101,errorMessage:"[".concat(r,"]: Timeout")};i(e),null==y||y(e)},g));var h={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: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 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})}(h)})})}}();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 m(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 h(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",SCB_PLANETPLUS:"scb_planetplus",ZALOPAY:"zalopay"},O=/miniprogram/i,A=/^((?!miniprogram).)*$/i,P=/griver/i,w=/^((?!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/]},{name:S.SCB_PLANETPLUS,match:[/scb/]}],B=[{name:S.DEMO,match:[/alipayIDE/i]},{name:S.ALIPAYHK,match:[O,w,/AlipayClientHK/]},{name:S.TNGD,match:[O,/TNGKit|Touch 'n Go/]},{name:S.GCASH,match:[O,P,/GCash/]},{name:S.TRUEMONEY,match:[O,P,/TrueMoney/]},{name:S.MPAY,match:[O,w,/mpay|macaupay/i]},{name:S.ALIPAY,match:[O,w,/alipay/i]},{name:S.DEMO,match:[O,P]},{name:S.SCB_PLANETPLUS,match:[O,/scb/i]}];function T(){return m(B,window.navigator.userAgent)}var k=[{name:S.ALIPAYHK,match:[A,w,/AlipayClientHK/]},{name:S.TNGD,match:[A,P,/TNGKit|Touch 'n Go/]},{name:S.TNGD_H5NG,match:[A,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:S.GCASH,match:[A,P,/GCash/]},{name:S.TRUEMONEY,match:[A,P,/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,w,/AlipayClient/]},{name:S.DEMO,match:[A,P,/GriverDemo/]},{name:S.WORLDFIRST,match:[A,w,/WorldFirst/]},{name:S.CHANGIPAY,match:[A,w,/ChangiPay/]},{name:S.KASPI,match:[A,w,/Kaspi/]}];function E(){return m(k,window.navigator.userAgent)||S.H5}var D=function(){var e,t;if("undefined"!=typeof my&&"string"==typeof my.SDKVersion)e=m(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,L=D.platform;h(S,I),h(b,L);var _,j,M=((_={})[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)},_[b.MPWEB]=f,_[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)})},_);function N(e,t,n){return L?M[L](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)}(j={})[b.MPWEB]=y,j[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 z(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 $(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 q={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?z(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(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?$(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}({},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:()=>q});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,m=p.isSync;g>0&&(u=setTimeout(function(){var e={error:-101,errorMessage:"[".concat(r,"]: Timeout")};i(e),null==y||y(e)},g));var h={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: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 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})}(h)})})}}();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 m(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 h(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",KAKAOPAYSANDBOX:"kakaopaysandbox",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",SCB_PLANETPLUS:"scb_planetplus",ZALOPAY:"zalopay"},O=/miniprogram/i,A=/^((?!miniprogram).)*$/i,P=/griver/i,w=/^((?!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/]},{name:S.SCB_PLANETPLUS,match:[/scb/]}],B=[{name:S.DEMO,match:[/alipayIDE/i]},{name:S.ALIPAYHK,match:[O,w,/AlipayClientHK/]},{name:S.TNGD,match:[O,/TNGKit|Touch 'n Go/]},{name:S.GCASH,match:[O,P,/GCash/]},{name:S.TRUEMONEY,match:[O,P,/TrueMoney/]},{name:S.MPAY,match:[O,w,/mpay|macaupay/i]},{name:S.ALIPAY,match:[O,w,/alipay/i]},{name:S.DEMO,match:[O,P]},{name:S.SCB_PLANETPLUS,match:[O,/scb/i]}];function T(){return m(B,window.navigator.userAgent)}var k=[{name:S.ALIPAYHK,match:[A,w,/AlipayClientHK/]},{name:S.TNGD,match:[A,P,/TNGKit|Touch 'n Go/]},{name:S.TNGD_H5NG,match:[A,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:S.GCASH,match:[A,P,/GCash/]},{name:S.TRUEMONEY,match:[A,P,/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,w,/AlipayClient/]},{name:S.DEMO,match:[A,P,/GriverDemo/]},{name:S.WORLDFIRST,match:[A,w,/WorldFirst/]},{name:S.CHANGIPAY,match:[A,w,/ChangiPay/]},{name:S.KASPI,match:[A,w,/Kaspi/]}];function E(){return m(k,window.navigator.userAgent)||S.H5}var D=function(){var e,t;if("undefined"!=typeof my&&"string"==typeof my.SDKVersion)e=m(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,L=D.platform;h(S,I),h(b,L);var _,j,M=((_={})[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)},_[b.MPWEB]=f,_[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)})},_);function N(e,t,n){return L?M[L](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)}(j={})[b.MPWEB]=y,j[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 Y(){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 G(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]())):(G(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,G(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=s,G(f,"constructor",s),G(s,"constructor",u),u.displayName="GeneratorFunction",G(s,o,"GeneratorFunction"),G(f),G(f,o,"Generator"),G(f,r,function(){return this}),G(f,"toString",function(){return"[object Generator]"}),(Y=function(){return{w:a,m:y}})()}function G(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}G=function(e,t,n,r){function a(t,n){G(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))},G(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)})}}(Y().m(function e(t){var n,r,o;return Y().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 z(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 $(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 q={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?z(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(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?$(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}({},e),{type:"attribute"})}};return t.default})());