hylid-bridge 6.2.0 → 6.3.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.
- package/README.md +310 -310
- package/lib/bridges.d.ts +234 -234
- package/lib/bridges.js +234 -365
- package/lib/dsl.d.ts +210 -210
- package/lib/dsl.js +210 -210
- package/lib/umd/index.js +1 -1
- package/lib/umd/mp_web_alipay.js +1 -1
- package/lib/umd/mp_web_mpay.js +1 -1
- package/lib/umd/web_alipay.js +1 -1
- package/package.json +1 -1
- package/lib/clients/mp_web/kakaopaysandbox/addPhoneContact.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/addPhoneContact.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/alert.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/alert.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/chooseFileFromDisk.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/chooseFileFromDisk.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/chooseImage.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/chooseImage.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/choosePhoneContact.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/choosePhoneContact.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/chooseVideo.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/chooseVideo.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/clearStorage.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/clearStorage.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/closeBluetoothAdapter.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/closeBluetoothAdapter.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/closeSocket.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/closeSocket.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/compressImage.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/compressImage.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/confirm.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/confirm.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/connectBLEDevice.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/connectBLEDevice.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/connectSocket.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/connectSocket.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/datePicker.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/datePicker.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/disconnectBLEDevice.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/disconnectBLEDevice.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/downloadFile.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/downloadFile.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/exitApp.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/exitApp.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getAppId.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getAppId.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getAppToken.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getAppToken.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getAuthCode.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getAuthCode.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getBLEDeviceCharacteristics.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getBLEDeviceCharacteristics.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getBLEDeviceServices.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getBLEDeviceServices.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getBackgroundFetchData.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getBackgroundFetchData.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getBatteryInfo.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getBatteryInfo.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getBluetoothAdapterState.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getBluetoothAdapterState.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getBluetoothDevices.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getBluetoothDevices.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getClipboard.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getClipboard.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getConnectedBluetoothDevices.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getConnectedBluetoothDevices.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getCurrentPages.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getCurrentPages.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getEnterOptionsSync.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getEnterOptionsSync.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getFileInfo.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getFileInfo.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getImageInfo.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getImageInfo.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getLocation.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getLocation.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getNetworkType.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getNetworkType.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getOpenUserInfo.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getOpenUserInfo.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getRunScene.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getRunScene.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getSDKVersion.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getSDKVersion.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getSavedFileInfo.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getSavedFileInfo.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getSavedFileList.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getSavedFileList.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getScreenBrightness.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getScreenBrightness.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getServerTime.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getServerTime.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getSetting.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getSetting.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getSiteInfo.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getSiteInfo.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getStorage.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getStorage.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/getSystemInfo.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/getSystemInfo.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/hideBackHome.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/hideBackHome.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/hideKeyboard.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/hideKeyboard.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/hideLoading.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/hideLoading.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/hideNavigationBarLoading.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/hideNavigationBarLoading.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/hideTabBar.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/hideTabBar.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/hideToast.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/hideToast.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/index.d.ts +0 -451
- package/lib/clients/mp_web/kakaopaysandbox/index.js +0 -261
- package/lib/clients/mp_web/kakaopaysandbox/makePhoneCall.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/makePhoneCall.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/multiLevelSelect.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/multiLevelSelect.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/navigateBack.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/navigateBack.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/navigateBackMiniProgram.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/navigateBackMiniProgram.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/navigateTo.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/navigateTo.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/navigateToBizScene.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/navigateToBizScene.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/navigateToMiniProgram.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/navigateToMiniProgram.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/notifyBLECharacteristicValueChange.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/notifyBLECharacteristicValueChange.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/offAccelerometerChange.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/offAccelerometerChange.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/offBLECharacteristicValueChange.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/offBLECharacteristicValueChange.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/offBLEConnectionStateChanged.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/offBLEConnectionStateChanged.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/offBluetoothAdapterStateChange.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/offBluetoothAdapterStateChange.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/offBluetoothDeviceFound.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/offBluetoothDeviceFound.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/offCompassChange.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/offCompassChange.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/offMemoryWarning.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/offMemoryWarning.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/offSocketClose.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/offSocketClose.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/offSocketError.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/offSocketError.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/offSocketMessage.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/offSocketMessage.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/offSocketOpen.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/offSocketOpen.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/offUserCaptureScreen.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/offUserCaptureScreen.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/onAccelerometerChange.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/onAccelerometerChange.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/onBLECharacteristicValueChange.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/onBLECharacteristicValueChange.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/onBLEConnectionStateChanged.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/onBLEConnectionStateChanged.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/onBluetoothAdapterStateChange.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/onBluetoothAdapterStateChange.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/onBluetoothDeviceFound.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/onBluetoothDeviceFound.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/onCompassChange.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/onCompassChange.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/onMemoryWarning.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/onMemoryWarning.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/onSocketClose.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/onSocketClose.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/onSocketError.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/onSocketError.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/onSocketMessage.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/onSocketMessage.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/onSocketOpen.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/onSocketOpen.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/onUserCaptureScreen.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/onUserCaptureScreen.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/openBluetoothAdapter.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/openBluetoothAdapter.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/openDocument.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/openDocument.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/openSetting.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/openSetting.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/pageScrollTo.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/pageScrollTo.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/previewImage.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/previewImage.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/prompt.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/prompt.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/reLaunch.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/reLaunch.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/readBLECharacteristicValue.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/readBLECharacteristicValue.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/redirectTo.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/redirectTo.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/removeSavedFile.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/removeSavedFile.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/removeStorage.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/removeStorage.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/request.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/request.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/rpc.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/rpc.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/saveFile.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/saveFile.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/saveImage.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/saveImage.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/scan.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/scan.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/sendSocketMessage.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/sendSocketMessage.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/setBackgroundColor.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/setBackgroundColor.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/setCanPullDown.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/setCanPullDown.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/setClipboard.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/setClipboard.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/setKeepScreenOn.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/setKeepScreenOn.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/setNavigationBar.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/setNavigationBar.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/setScreenBrightness.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/setScreenBrightness.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/setStorage.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/setStorage.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/setTabBarItem.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/setTabBarItem.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/setTabBarStyle.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/setTabBarStyle.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/setTransparentTitle.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/setTransparentTitle.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/showActionSheet.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/showActionSheet.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/showAuthGuide.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/showAuthGuide.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/showLoading.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/showLoading.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/showNavigationBarLoading.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/showNavigationBarLoading.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/showSharePanel.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/showSharePanel.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/showTabBar.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/showTabBar.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/showToast.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/showToast.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/signContract.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/signContract.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/startBluetoothDevicesDiscovery.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/startBluetoothDevicesDiscovery.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/startPullDownRefresh.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/startPullDownRefresh.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/stopBluetoothDevicesDiscovery.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/stopBluetoothDevicesDiscovery.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/stopPullDownRefresh.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/stopPullDownRefresh.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/switchTab.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/switchTab.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/tradePay.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/tradePay.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/uploadFile.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/uploadFile.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/vibrate.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/vibrate.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/watchShake.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/watchShake.js +0 -3
- package/lib/clients/mp_web/kakaopaysandbox/writeBLECharacteristicValue.d.ts +0 -2
- package/lib/clients/mp_web/kakaopaysandbox/writeBLECharacteristicValue.js +0 -3
- package/lib/umd/mp_web_kakaopaysandbox.js +0 -1
package/lib/umd/web_alipay.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.my=e():t.my=e()}(self,()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{default:()=>sr});var n=function(t){if(window.AlipayJSBridge)return t();document.addEventListener("AlipayJSBridgeReady",function(){return t()},!1)};function r(t,e,r){n(function(){var n=(r||{}).type,i=void 0===n?"async":n;"async"===i&&window.AlipayJSBridge.call(t,e,function(t){var n=e||{},r=n.success,i=n.fail,o=n.complete;t.error||t.errorCode?null==i||i(t):null==r||r(t),null==o||o(t)}),"callback"===i&&window.AlipayJSBridge.call(t,e)})}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var a=["content","buttonText"];function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var s=["confirmButtonText","cancelButtonText","content"];function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var l=["format","currentDate","startDate","endDate"];function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var f={"HH:mm:ss":0,"yyyy-MM-dd":1,"yyyy-MM-dd HH:mm:ss":2};var h=["url"];function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var y=[{type:"image",exts:["jpg","jpeg","png","bmp","gif"]},{type:"video",exts:["mp4","3gp","avi","wmv"]},{type:"audio",exts:["mp3","wma","wav"]}];var v=["scopes"];function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var b=["type"];function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var O=["success"];function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function A(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push([n,t[n]]);return e}var S,k,C,j,x,T,M,D=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,n=[{key:"isString",value:function(t){return"string"==typeof t}},{key:"isFunction",value:function(t){return"function"==typeof t}},{key:"isNotEmpty",value:function(t){return t&&t.length>0}},{key:"isEmpty",value:function(e){return!t.isNotEmpty(e)}},{key:"parseObjectSafe",value:function(t,e){try{return JSON.parse(t)}catch(t){console.warn("parseObjectSafe error: ",t)}return e}},{key:"encodeMap",value:function(t){if(t){var e=[];return A(t).forEach(function(t){var n=t[0],r=t[1];null!=r&&e.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r)))}),e.length>0?e.join("&"):void 0}}}],null&&w(e.prototype,null),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function N(){var t,e=null===(t=j)||void 0===t?void 0:t.siteName;return D.isNotEmpty(e)?e:(e=(x||(x=function(){var t={};A(L(window.location.search)).forEach(function(e){var n=e[0],r=e[1],i=n.toLowerCase();if("query"===i)try{t.query=L(r)}catch(t){console.warn("parse query error: ",t)}else"referrerinfo"===i?t.referrerInfo=L(r):t[n]=r});var e=window.location.hash;if(e){var n=e.indexOf("?");t.hashPath=n>0?e.substring(1,n):e.substring(1),t.hashQuery=L(e)}return t}()),x).site,D.isNotEmpty(e)?e:void console.error("no siteName! please specify siteName in initWebPolyfill(...)"))}function L(t){var e,n={};if(D.isEmpty(t))return n;var r=t.indexOf("?");return r>=0&&(t=t.substring(r+1)),null===(e=t.split("&"))||void 0===e||e.forEach(function(t){var e=t.split("=");if(!(e.length<2)){var r=decodeURIComponent(e[0]);n[r]=decodeURIComponent(e[1])}}),n}!function(t){t.EASYPAISA="EASYPAISA",t.TRUEMONEY="TRUEMONEY",t.KAKAOPAY="KAKAOPAY",t.BKASH="BKASH",t.ALIPAY_CN="ALIPAY_CN",t.ALIPAY_HK="ALIPAY_HK",t.ALIPAY_MO="ALIPAY_MO",t.GCASH="GCASH",t.TNG="TNG",t.DANA="DANA"}(S||(S={})),(C=k||(k={})).alipayhk="alipayhk",C.alipaymo="alipaymo",C.gcash="gcash",C.tngd="tngd",C.dana="dana",C.kakaopay="kakaopay",i(i(i(i(i(i({},S.ALIPAY_HK,k.alipayhk),S.ALIPAY_MO,k.alipaymo),S.GCASH,k.gcash),S.DANA,k.dana),S.TNG,k.tngd),S.KAKAOPAY,k.kakaopay),(M=T||(T={})).STABLE="STABLE",M.TEST="TEST",M.PRE="PRE",M.PROD="PROD";var R=Object.prototype.hasOwnProperty,B=Object.assign||function(t,e){for(var n,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i<arguments.length;i++)for(var o in n=Object(arguments[i]))R.call(n,o)&&(r[o]=n[o]);return r},U=function(t,e){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},U(t,e)};function F(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}U(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var H=function(){return H=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},H.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var V=Function.prototype.apply.call.bind(Function.prototype.apply),Y=Function.prototype.bind;function K(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return V(t,e,n)}function G(t,e,n){return V(t,e,n)}function W(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return V(Y,t,e)}var q,J,z,$,Z,Q,X,tt,et,nt,rt=JSON.stringify,it=JSON.parse;function ot(){return J||(t="undefined"!=typeof Set,J=t?Set:function(){function t(){this.itemList=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.itemList.length},enumerable:!1,configurable:!0}),t.prototype.add=function(t){return-1===this.itemList.indexOf(t)&&this.itemList.push(t),this},t.prototype.delete=function(t){var e=this.itemList.indexOf(t);return-1!==e&&(this.itemList.splice(e,1),!0)},t.prototype.clear=function(){this.itemList=[]},t.prototype.has=function(t){return-1!==this.itemList.indexOf(t)},t.prototype.forEach=function(t){for(var e=0,n=this.itemList.slice();e<n.length;e++){var r=n[e];t(r,r,this)}},t}()),new J;var t}function at(t){return"number"==typeof t&&t>=0&&t<=8}function ct(t){var e=t.split(".");if(!e.length)return!1;var n=function(t){for(var e=(nt||"undefined"!=typeof __APPX_CAN_I_USE_DATA__&&(nt=__APPX_CAN_I_USE_DATA__),nt),n=0,r=t;n<r.length;n++){var i=r[n];if(void 0===(e=e&&e[i]))return;var o=e._;if(o){var a=o[et.default];if(a||(a=o[et[void 0]]),!a)return!1;if(void 0!==a[et.const])return Boolean(a[et.const]);var c=a[et.version_added];return void 0!==c&&void 0>=c}}}(e);return void 0!==n?n:function(t,e){if(!e.length)return!1;for(var n=void 0,r=0,i=e;r<i.length;r++){var o=i[r];if(void 0===(n=n&&n[o]))return;if("number"==typeof n._||"boolean"==typeof n._)return Boolean(n._);if("number"==typeof n||"boolean"==typeof n)return Boolean(n)}}(0,e)}z||(z="undefined"!=typeof WeakMap?WeakMap:function(){var t=Object.prototype.hasOwnProperty,e=function(t,e,n){Object.defineProperty?Object.defineProperty(t,e,{configurable:!0,value:n,writable:!0}):t[e]=n};function n(t){return Object(t)===t}function r(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(e(this,"_id","_WeakMap_"+o()+"."+o()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function i(e,r){if(!n(e)||!t.call(e,"_id"))throw new TypeError(r+" method called on incompatible receiver "+typeof e)}function o(){return Math.random().toString().substring(2)}return e(r.prototype,"delete",function(t){if(i(this,"delete"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t||(delete t[this._id],0))}),e(r.prototype,"get",function(t){if(i(this,"get"),n(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}}),e(r.prototype,"has",function(t){if(i(this,"has"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)}),e(r.prototype,"set",function(t,r){if(i(this,"set"),!n(t))throw new TypeError("Invalid value used as weak map key");var o=t[this._id];return o&&o[0]===t?(o[1]=r,this):(e(t,this._id,[t,r]),this)}),e(r,"_polyfill",!0),r}()),new z,"undefined"!=typeof SECURITY_FUNCTION_CALL&&(SECURITY_FUNCTION_CALL=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return"function"==typeof t?(V||(V=Function.prototype.apply.call.bind(Function.prototype.apply)),V(t,e,n)):t.call.apply(t,function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}([e],n,!1))}),"undefined"!=typeof SECURITY_FUNCTION_APPLY&&(SECURITY_FUNCTION_APPLY=function(t,e,n){return"function"==typeof t?(V||(V=Function.prototype.apply.call.bind(Function.prototype.apply)),V(t,e,n)):t.apply(e,n)}),function(t){t.CanvasContext="CanvasContext"}($||($={})),function(t){t[t.PLUGIN=1]="PLUGIN",t[t.SUB_PACKAGE=2]="SUB_PACKAGE"}(Z||(Z={})),function(t){t.PLUGIN="plugin",t.SUB_PACKAGE="subpackage"}(Q||(Q={})),function(t){t[t.Info=0]="Info",t[t.Warn=1]="Warn",t[t.Error=2]="Error"}(X||(X={})),function(t){t.AppxLifecycle="AppxLifecycle"}(tt||(tt={})),"undefined"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE,function(t){t.version_added="v",t.const="c",t.android="a",t.ios="i",t.default="d"}(et||(et={}));var st,pt={scope:void 0,type:"empty"};function lt(t){return t&&"empty"===t.type}function ut(t){return t&&"extension"===t.type}function ft(t){return t&&"openCapability"===t.type}function ht(){return st||(st=function(){try{return INSIDE_CONFIG_STATIC||{}}catch(t){return{}}}()),st}"undefined"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,"undefined"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT;var dt,yt,vt,gt=function(){function t(t){this.taskMap=Object.create(null),this.addEventListener=t}return t.prototype.hasMatcher=function(t,e){var n=this.taskMap[t];if(!n)return!1;if(void 0===e){var r=Object.keys(n.callbacks).some(function(t){var e=n.callbacks[t];return!!(e&&e.length>0)});return r}var i=n.callbacks[e];return!!i&&i.length>0},t.prototype.removeMatcher=function(t,e,n){var r=this.taskMap[t];if(!r)return 0;var i=r.callbacks[e];if(!i)return 0;if(n){var o=i.length;return r.callbacks[e]=i.filter(function(t){return t!==n}),o-r.callbacks[e].length}return o=i.length,i.length=0,o},t.prototype.addMatcher=function(t,e,n,r,i,o){var a=this.taskMap[t];a||(a=this.taskMap[t]={callbacks:Object.create(null)},this.addEventListener(t,W(this.onEventHandler,this,t,r,i),o));var c=a.callbacks[e];return c||(c=a.callbacks[e]=[]),c.indexOf(n)<0?(c.push(n),1):0},t.prototype.onEventHandler=function(t,e,n,r){var i=this.taskMap[t],o=e(r,i);if(o)for(var a=i.callbacks,c=0,s=o;c<s.length;c++){var p=a[s[c]];if(p){var l=n(r);if(l)for(var u=0,f=p;u<f.length;u++)(0,f[u])(l)}}},t}();function mt(t){return void 0===t}function bt(t){return t&&"object"==typeof t}function It(t){return"function"==typeof t}function Ot(t){return!!(t&&t.get&&t.update)}var Pt=function(t,e,n,r,i,o,a){e().getKernel().__BRIDGE_CALL__(o,n,r,i)},Et=function(t,e,n,r,i,o){return e().getKernel().__BRIDGE_CALL_SYNC__(i,n,r)};function _t(t,e){var n=t.jsApiCacheWhitelist;return!!(n&&"string"==typeof n&&n.indexOf(e)>=0)}function wt(t,e){return t[e]}var At={internalAPI:!0,openInBrowser:!0},St={};function kt(t,e,n,r,i,o,a,c){var s="".concat(o),p=!!(1&i),l=!!(2&i),u=!!(4&i),f=!1===p&&!0===l,h=f?t.getPublicCallProxyAPIInfoByName(s):t.getAPIInfoByName(s),d=f?"my.callSync":xt(h,o);if(h||(h=St),!At[s]){(p||l)&&(c=null);var y=re(h,n,r,p,u,c,e,s,a,{caller:d});try{return y.invoke()}finally{}}}function Ct(t,e,n,r,i,o,a,c,s){var p="".concat(o),l=!!(1&i),u=!!(2&i),f=!!(4&i),h=!1===l&&!0===u,d=St;t&&(d=h?t.getPublicCallProxyAPIInfoByName(p):t.getAPIInfoByName(p));var y=h?"my.call":xt(d,o);if(d||(d=St),!At[p]){(l||u)&&(s=null);var v=ne(d,n,r,l,f,s,e,p,a,c,{caller:y});try{return v.invoke()}finally{}}}function jt(t,e,n,r,i,o,a,c){var s=function(t,e,n,r,i,o,a,c,s,p){return new te(e,n,o,a,c,t,{caller:null==p?void 0:p.caller,callerContext:null==p?void 0:p.callerContext,directly:!0,inside:!1,shouldNotRewriteIdOrClass:s,viewId:null})}(t,r,i,0,0,n,e,o,a,c);return s.invoke()}function xt(t,e){if(t)return t.avaliableNamespace?"my.".concat(t.avaliableNamespace,".").concat(e):"my.".concat(e)}var Tt,Mt,Dt=function(){function t(t){this._context=t,this.__appxDomain=t.appxDomain.scope;var e=this._context.runtime().getEnv(),n=e.isIOS,r=e.isAndroid,i=e.isIDE;this.isIOS=n,this.isAndroid=r,this.isIDE=i}return t.prototype.callBridge=function(t,e,n){this._context.callDefaultBridge(t,e,n)},t.prototype.callBridgeSync=function(t,e){return this._context.callDefaultBridgeSync(t,e)},t.prototype.on=function(t,e){return this._context.runtime().getBridge().event.addEventListener(t,0,e)},t.prototype.off=function(t,e){return this._context.runtime().getBridge().event.removeEventListener(t,0,e)},t.prototype.getStartupParams=function(){return this._context.runtime().getEnv().originalStartupParams},t}();function Nt(t){var e;Tt||(q||(e="undefined"!=typeof Map,q=e?Map:function(){function t(){this.keyList=[],this.valueList=[]}return t.prototype.set=function(t,e){var n=this.keyList,r=n.indexOf(t);if(-1===r){var i=n.push(t)-1;this.valueList[i]=e}else this.valueList[r]=e;return this},t.prototype.get=function(t){var e=this.keyList.indexOf(t);return-1===e?void 0:this.valueList[e]},t.prototype.forEach=function(t){for(var e=this.keyList.slice(),n=this.valueList.slice(),r=e.length,i=0;i<r;i++){var o=e[i];t(n[i],o,this)}},Object.defineProperty(t.prototype,"size",{get:function(){return this.keyList.length},enumerable:!1,configurable:!0}),t.prototype.has=function(t){return-1!==this.keyList.indexOf(t)},t.prototype.delete=function(t){var e=this.keyList.indexOf(t);return-1!==e&&(this.keyList.splice(e,1),this.valueList.splice(e,1),!0)},t.prototype.clear=function(){this.keyList=[],this.valueList=[]},t}()),Tt=new q);var n=Tt.get(t);if(!n){n=ot(),Tt.set(t,n);for(var r=0,i=t;r<i.length;r++){var o=i[r];"string"==typeof o&&n.add(o)}}return n}function Lt(){return Mt||((Mt=ot()).add("success"),Mt.add("error"),Mt.add("errorMessage")),Mt}function Rt(t,e,n){if(t&&"object"==typeof t){for(var r=Nt(e),i={},o=0,a=Object.keys(t);o<a.length;o++){var c=a[o];r.has(c)||n&&n.has(c)?i[c]=t[c]:"undefined"!=typeof process&&process&&process.env}return i}return t}function Bt(t,e,n){var r=t,i=e;return It(t)&&(mt(e)||n()&&(i=t,r={})),function(t,e){var n=t,r=e;return mt(e)&&It(t)&&(r=t,n={}),bt(t)||void 0===t||(n={}),mt(n)&&(n={}),{callback:r,option:n}}(r,i)}function Ut(t,e,n){try{var r=ht().config;if(!r||"ap"!==r.clientName)return!0;if(e().getBehaviorManager().report("duplicated my.call(".concat(n,")")),t.getFlag("ignoreCallbackWhenInvokeMyCall"))return!0}catch(t){}return!1}function Ft(t){var e={};return It((t=t||{}).success)&&(e.success=t.success,delete t.success),It(t.fail)&&(e.fail=t.fail,delete t.fail),It(t.complete)&&(e.complete=t.complete,delete t.complete),e}var Ht=1,Vt={};function Yt(){}var Kt=Object.defineProperty;function Gt(t,e,n){Kt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n})}var Wt,qt=function(){function t(t,e,n,r,i,o,a,c){if(p=i,"[object Object]"===Object.prototype.toString.call(p)){var s=H({},i);void 0!==s.page&&(s.page=void 0),this.option=s}else this.option=i;var p;Gt(this,"ctx",t),Gt(this,"runtime",e),Gt(this,"extraInfo",c),Gt(this,"apiName",r),Gt(this,"appxDomain",n),Gt(this,"appxDomainIsNotEmpty",!lt(n)),Gt(this,"callback",a),Gt(this,"apiInfo",this.getFlag("freezeAPIInfo")?function(t){try{Object.isFrozen(t)||(Object.setPrototypeOf(t,null),Object.freeze(t))}finally{return t}}(H({},o)):o||{}),o.t&&(this.taskId=Ht++),this.startTime=(new Date).getTime(),this.initDependency(i,c.viewId,o,a),this.callStack=new Error("")}return t.prototype.invoke=function(){},t.prototype.callScopedBridge=function(t,e,n,r){var i=this.appxDomain;return i&&!lt(i)&&(e=H(H({},e),{__appxDomain:i.scope})),this.callDefaultBridge(t,e,n,r)},t.prototype.callScopedBridgeSync=function(t,e,n){var r=this.appxDomain;return r&&!lt(r)&&(e=H(H({},e),{__appxDomain:r.scope})),this.callDefaultBridgeSync(t,e,n)},t.prototype.callBridge=function(t,e,n,r){return this.callDefaultBridge(t,e,n,r)},t.prototype.callDefaultBridge=function(t,e,n,r){var i=this.runtime();if(i){var o=i.getBridge();o&&o.callBridge(t,e,n,void 0,{caller:this.extraInfo.caller})}},t.prototype.callDefaultBridgeSync=function(t,e,n){var r=this.runtime();if(r){var i=r.getBridge();if(i)return i.callBridgeSync(t,e,n,{caller:this.extraInfo.caller})}},t.prototype.callInternalAPI=function(t,e,n,r){var i=this.runtime();if(i){var o=i.getBridge();o&&o.callInternalAPI(t,e,n,r,{caller:this.extraInfo.caller})}},t.prototype.callInternalAPISync=function(t,e,n){var r=this.runtime();if(r){var i=r.getBridge();if(i)return i.callInternalAPISync(t,e,n,{caller:this.extraInfo.caller})}},t.prototype.getEnvAppBiz=function(){return"TinyAppBiz-".concat(this.getEnvAppId())},t.prototype.getEnvAppId=function(){var t=this.runtime().getEnv().startupParams.appId;return void 0===t?"":t},t.prototype.getEnvPlatformIOS=function(){return"ios"===this.runtime().getEnv().platform},t.prototype.invokeExternalElementMethod=function(t,e,n,r){if(t&&void 0!==t.$viewId){var i=t.$viewId,o=this.runtime().getPageManager().getInstanceById("".concat(i));o&&o.invokeClientElementMethod(e,"onHostExternalMessage",[n,r])}},t.prototype.getBridgeExtraInfo=function(){return this.runtime().getBridge().extraInfo},t.prototype.getEnvPlatformAndroid=function(){return"android"===this.runtime().getEnv().platform},t.prototype.getEnvOnlyCube=function(){return this.runtime().getEnv().isOnlyCube},t.prototype.invokeCallback=function(t,e){t?this.callbackUnion[t]&&this.callbackUnion[t](e):this.callback&&this.callback(e)},t.prototype.dispatchResultCallback=function(t){var e=!1;if("object"==typeof t&&(e="error"in t||"errorMessage"in t),e?(this.shouldEmitEvent()&&this.runtime().getTypedEventManager().invokeInternalEvent(8,[{key:this.apiName,option:this.option,result:t,type:"fail"}]),t=this.callHookAfterLog(t),this.invokeCallback("fail",t)):(this.shouldEmitEvent()&&this.runtime().getTypedEventManager().invokeInternalEvent(8,[{key:this.apiName,option:this.option,result:t,type:"success"}]),this.invokeCallback("success",t)),this.invokeCallback("complete",t),this.invokeCallback(null,t),!e)return t;if(!this.shouldNotReturnPromise()){var n=this.runtime();if(n&&"function"==typeof n.getLogger){var r=n.getLogger();r&&r.attachErrorSource&&r.attachErrorSource(t,{from:"api",method:this.apiName,payload:this.option,stack:this.callStack})}throw t}},t.prototype.shouldNotReturnPromise=function(){if(this.apiInfo.noPromise)return!0;var t=!!(this.callbackUnion.complete||this.callbackUnion.success||this.callbackUnion.fail||this.callback),e=this.apiInfo.allowAbort||this.apiInfo.progress||this.apiInfo.returnProto;return t&&!e},t.prototype.shouldEmitEvent=function(){return this.extraInfo.directly&&"object"==typeof this.option&&!Vt[this.apiName]},t.prototype.prepareOption=function(){return this.shouldEmitEvent()&&this.runtime().getTypedEventManager().invokeInternalEvent(8,[{key:this.apiName,type:"invoke"}]),this.callHookBefore()},t.prototype.getInsideContext=function(){var t=this.insideContext;return t||(t=this.insideContext=new Dt(this)),t},t.prototype.callHookValidate=function(){var t=this.apiInfo.tapMark;if("function"!=typeof t||this.extraInfo.inside||(t=K(t,this)),!0===t){var e=this.getPageInstance();e&&!e.getTapMarkManager().checkTapMark()&&(this.validateResult={error:5,errorMessage:"".concat(this.apiName," can only be invoked by user tap gesture")})}return void 0===this.validateResult&&this.apiInfo.v&&!this.extraInfo.inside&&(this.apiInfo.b_v&&(this.validateResult=K(this.apiInfo.b_v,this,this.option)),void 0===this.validateResult&&(this.validateResult=K(this.apiInfo.v,this,this.option)),void 0===this.validateResult&&this.apiInfo.a_v&&(this.validateResult=K(this.apiInfo.a_v,this,this.option))),this.validateResult},t.prototype.callHookBefore=function(){var t=this.option;return this.optionPageViewId||this.apiInfo.b?(t=H({},t),Array.isArray(this.apiInfo.in)&&(t=Rt(t,this.apiInfo.in,Lt())),this.optionPageViewId&&(t.viewId=this.optionPageViewId),this.apiInfo.b&&(this.apiInfo.b_b&&(t=this.extraInfo.inside?K(this.apiInfo.b_b,this.getInsideContext(),t,this.callback)||t:K(this.apiInfo.b_b,this,t,this.callback)||t),t=this.extraInfo.inside?K(this.apiInfo.b,this.getInsideContext(),t,this.callback)||t:K(this.apiInfo.b,this,t,this.callback)||t,this.apiInfo.a_b&&(t=this.extraInfo.inside?K(this.apiInfo.a_b,this.getInsideContext(),t,this.callback)||t:K(this.apiInfo.a_b,this,t,this.callback)||t))):Array.isArray(this.apiInfo.in)&&(t=Rt(t,this.apiInfo.in,Lt())),ft(this.appxDomain)?t.__openCapabilityId=this.appxDomain.origin:t.__openCapabilityId&&delete t.__openCapabilityId,t},t.prototype.callHookAfter=function(t){var e=t;return this.apiInfo.a&&(this.apiInfo.b_a&&(this.apiInfo.ignoreShadowCopyResponse||(e=H({},e)),e=!0===this.extraInfo.inside?K(this.apiInfo.b_a,this.getInsideContext(),e,this.finalOption,this.option)||e:K(this.apiInfo.b_a,this,e,this.finalOption,this.option)||e),this.apiInfo.ignoreShadowCopyResponse||(e=H({},e)),e=!0===this.extraInfo.inside?K(this.apiInfo.a,this.getInsideContext(),e,this.finalOption,this.option)||e:K(this.apiInfo.a,this,e,this.finalOption,this.option)||e,this.apiInfo.a_a&&(this.apiInfo.ignoreShadowCopyResponse||(e=H({},e)),e=!0===this.extraInfo.inside?K(this.apiInfo.a_a,this.getInsideContext(),e,this.finalOption,this.option)||e:K(this.apiInfo.a_a,this,e,this.finalOption,this.option)||e)),Array.isArray(this.apiInfo.out)&&(e=Rt(e,this.apiInfo.out,Lt())),e},t.prototype.callHookAfterLog=function(t){var e=t;return this.apiInfo.a_l&&(e=K(this.apiInfo.a_l,this,e,this.finalOption,this.option)||e),e},t.prototype.processResult=function(t){var e,n=t||{};n=this.callHookAfter(n);var r=!0;return(null===(e=this.extraInfo)||void 0===e?void 0:e.directly)&&this.getFlag("disablePublicCallErrorCodeNormalize")&&(r=!1),r&&(n=function(t){return"string"==typeof t.error&&(t.error=parseInt(t.error,10)),0===t.error&&(delete t.error,delete t.errorMessage),t}(n)),n},t.prototype.getRewriteIdWithAppxDomain=function(t){var e,n,r=t,i=this.appxDomain;return!ut(i)&&!ft(i)||this.extraInfo.shouldNotRewriteIdOrClass||(r=(e={type:4,value:i.origin},n={type:8,value:r},{type:9,value:"p-".concat(e.value,"-").concat(n.value)}).value),r},t.prototype.getPageInstance=function(){var t=this.pageInstance;return t&&!t.hasPageUnloaded()||(t&&(this.pageInstance=null),t=this.runtime().getNav().getTopInstance()),t},t.prototype.initDependency=function(t,e,n,r){var i,o,a=this.runtime(),c=t&&t.page&&t.page.$viewId||void 0,s=c||e||void 0;s&&(o=a.getPageManager().getInstanceById(s)),o&&!o.hasPageUnloaded()||(o=null===(i=a.getNav())||void 0===i?void 0:i.getTopInstance()),o&&(s=o.pageId,this.pageInstance=o),this.assignedViewId=s,this.optionPageViewId=c},t.prototype.getState=function(){return this.extraInfo.parentState},t.prototype.getProtoContext=function(){return this.extraInfo.parentProtoContext},t.prototype.getCallerContext=function(){return this.extraInfo.callerContext},t.prototype.callProtoAPI=function(t,e){return jt(t,this.apiName,this.appxDomain,this.ctx,this.runtime,e,this.extraInfo.shouldNotRewriteIdOrClass,{caller:this.extraInfo.caller,callerContext:this})},t.prototype.reportHostError=function(t,e,n,r,i){return this.runtime().getKernel().reportHostError(t,e,n,r,i)},t.prototype.getFlag=function(t){return this.ctx.getFlags()[t]},t.prototype.invokeCompositeElementMethod=function(t,e,n){var r;void 0===e&&(e=Yt);var i=null===(r=this.extraInfo)||void 0===r?void 0:r.scopedElementId;if(i){var o=n||this.apiName,a=function(t,e,n,r){if(t){var i=t.success,o=t.fail;return{complete:t.complete,data:function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["success","fail","complete"]),element:n,fail:o,success:i,viewId:e,action:r}}return{element:n,viewId:e,action:r}}(t,this.assignedViewId,i,o);this.pageInstance?this.pageInstance.invokeCompositeElementMethod(a,this,e):e({error:1,errorMessage:"page not found"})}},t}();var Jt,zt,$t=/^(?:on|off)([A-Z])(\w+)/;var Zt,Qt,Xt={},te=function(t){function e(e,n,r,i,o,a,c){return t.call(this,e,n,r,i,o,a,void 0,c)||this}return F(e,t),e.prototype.invoke=function(){for(var t=this,e=G(this.apiInfo.state,this,this.option),n={},r=function(r){var o=i.apiInfo.proto[r];if("function"==typeof o.feature&&!K(o.feature,i))return"continue";var a=i.apiName?"".concat(i.extractProtoEntityNameFromAPIInfo(i.apiName),".").concat(r):void 0,c=function(r){r.extraInfo.caller=a,r.extraInfo.scopedElementId=t.apiInfo.compositeElement?t.getRewriteIdWithAppxDomain(t.option[0]):void 0,r.extraInfo.parentState=e,r.extraInfo.parentProtoContext=n,r.extraInfo.callerContext=t.extraInfo.callerContext||t};if(o.getter){var s,p=function(t,e,n,r,i,o,a){return new ee(e,n,o,a,t,{caller:void 0,directly:!1,viewId:i,inside:!1,scopedElementId:void 0})}(o,i.ctx,i.runtime,0,i.assignedViewId,i.appxDomain,r);c(p);var l=!1;Object.defineProperty(n,r,{configurable:!0,enumerable:!0,get:function(){return l||(s=p.invoke()),s},set:function(t){return s=t,l=!0,!0}})}else n[r]=function(e,n){if(t.apiInfo.compositeElement&&!t.hasPermission())return t.invokeNoPermissionCallbackDirectly(a,r,e,n);var i=ne(o,t.ctx,t.runtime,!1,!1,t.assignedViewId,t.appxDomain,r,e,n);return c(i),i.invoke()}},i=this,o=0,a=Object.keys(this.apiInfo.proto);o<a.length;o++)r(a[o]);return n},e.prototype.initDependency=function(e,n,r,i){var o=r.createOptionIndex,a=!1===o?null:e[o];t.prototype.initDependency.call(this,a,n,r,null)},e.prototype.extractProtoEntityNameFromAPIInfo=function(t){var e=t.match(/^(create|get)(.*)$/);return e?e[2]:"".concat(t[0].toUpperCase()).concat(t.slice(1))},e.prototype.hasPermission=function(){var t=this.runtime().getPermissionManager();return!t||t.checkElementPermission4ContextAPI(this.apiInfo.compositeElement,this.appxDomain)},e.prototype.invokeNoPermissionCallbackDirectly=function(t,e,n,r){var i=this,o={error:4,errorMessage:"无权调用 ".concat(t)},a=Bt(n,r,function(){return Ut(i.ctx,i.runtime,e)}),c=a.option,s=a.callback,p=Ft(c),l=function(t){return i.runtime().getKernel().setTimeout(t,0)};p.fail&&l(function(){p.fail(o)}),p.complete&&l(function(){p.complete(o)}),s&&l(function(){s(o)})},e}(qt);var ee=function(t){function e(e,n,r,i,o,a){return t.call(this,e,n,r,i,null,o,null,a)||this}return F(e,t),e.prototype.invoke=function(){return K(this.apiInfo.getter,this)},e}(qt);function ne(t,e,n,r,i,o,a,c,s,p,l){if(t.fn)return new(zt||(zt=function(t){function e(e,n,r,i,o,a,c,s){return t.call(this,e,n,r,i,o,c,a,s)||this}return F(e,t),e.prototype.invoke=function(){return!0===this.extraInfo.inside?K(this.apiInfo.fn,this.getInsideContext(),this.option,this.callback):K(this.apiInfo.fn,this,this.option,this.callback)},e.prototype.initDependency=function(e,n,r,i){var o=r.fnOptionIndex,a=0===o?e:1===o?i:null;t.prototype.initDependency.call(this,a,n,r,null)},e}(qt)),zt)(e,n,a,c,s,p,t,{caller:void 0,directly:r,inside:i,viewId:o,scopedElementId:null==l?void 0:l.scopedElementId});var u=Bt(s,p,function(){return Ut(e,n,c)}),f=u.option,h=u.callback;return function(t){return/^(?:on|off)[A-Z](?:\w+)/.test(t)}(c)?new(Jt||(Jt=function(t){function e(e,n,r,i,o,a,c,s){var p=t.call(this,e,n,r,i,o,a,c,s)||this;return"function"==typeof a.e?p.eventName=K(a.e,p):p.eventName=function(t,e){var n="";if(e&&$t.test(t)){var r=t.match($t);"string"==typeof e.m&&(n=e.m),!n&&r[1]&&r[2]&&(n=r[1].toLowerCase()+r[2])}return n}(i,p.apiInfo),p}return F(e,t),e.prototype.invoke=function(){if(this.finalOption=this.prepareOption(),this.callbackUnion=Ft(this.finalOption),/^on/.test(this.apiName)){if(at(this.apiInfo.m))return"function"==typeof this.callback?this.runtime().getTypedEventManager().addEventListener(this.apiInfo.m,this.callback,!0):{remove:function(){}};if(this.apiInfo.task){if("function"==typeof this.callback){var t=this.apiInfo.task,e=t.id,n=t.getTaskId,r=t.getPayload,i=t.isolate,o="function"==typeof e?K(e,this):e;this.callHookEventTask("start",i,o),this.runtime().getBridge().event.taskManager.addMatcher(this.eventName,o,this.callback,n,r)}}else this.callHookEvent("start"),this.runtime().getBridge().event.addEventListener(this.eventName,1,W(this.processEventResult,this),this.callback)}else if(at(this.apiInfo.m))"function"==typeof this.callback&&this.runtime().getTypedEventManager().removeEventListener(this.apiInfo.m,this.callback);else if(this.apiInfo.task){if("function"==typeof this.callback){var a=this.apiInfo.task;e=a.id,i=a.isolate,o="function"==typeof e?K(e,this):e,this.runtime().getBridge().event.taskManager.removeMatcher(this.eventName,o,this.callback),this.callHookEventTask("end",i,o)}}else this.runtime().getBridge().event.removeEventListener(this.eventName,1,this.callback),this.callHookEvent("end")},e.prototype.processEventResult=function(t){var e,n;n={},mt((e=t).data)||(n=bt(n=e.data)?n:{data:n}),t=n;var r=this.processResult(t);this.dispatchResultCallback(r)},e.prototype.callHookEventTask=function(t,e,n){var r=this.runtime().getBridge().event.taskManager;(2===e?r.hasMatcher(this.eventName,n):1===e&&r.hasMatcher(this.eventName))||It(this.apiInfo[t])&&(this.extraInfo.inside?K(this.apiInfo[t],this.getInsideContext()):K(this.apiInfo[t],this))},e.prototype.callHookEvent=function(t){this.runtime().getBridge().event.hasEventListener(this.eventName,1)||It(this.apiInfo[t])&&(this.extraInfo.inside?K(this.apiInfo[t],this.getInsideContext()):K(this.apiInfo[t],this))},e}(qt)),Jt)(e,n,a,c,f,t,h,{caller:null==l?void 0:l.caller,directly:r,inside:i,viewId:o,scopedElementId:null==l?void 0:l.scopedElementId}):new(Wt||(Wt=function(t){function e(e,n,r,i,o,a,c,s){return t.call(this,e,n,r,i,o,a,c,s)||this}return F(e,t),e.prototype.invoke=function(){var t=this,e=this.invokeMethodAsync();if(!this.shouldNotReturnPromise()){var n=this.apiInfo,r=n.allowAbort,i=n.progress,o=n.returnEvent,a=n.returnProto;if(r||i||o||a){if(r){var c=this.apiInfo.cancelname||"abort";e[c]=function(){It(t.apiInfo.c)&&K(t.apiInfo.c,t),t.resolveImmediate&&t.resolveImmediate({error:9,errorMessage:"".concat(t.apiName,":fail abort")})}}if("object"==typeof o&&o)for(var s=function(n){var r=o[n],i=r.taskId,a=r.getTaskId,c=r.eventName,s=r.getPayload,l=r.feature;if("function"==typeof l&&!K(l,p))return"continue";var u=n[0].toUpperCase()+n.slice(1);e["on".concat(u)]=function(e){var n=t.runtime();if(n){var r=n.getBridge().event;if(r){var o="function"==typeof i?K(i,t):i;r.taskManager.addMatcher(c,o,e,a,s)}}},e["off".concat(u)]=function(e){var n=t.runtime();if(n){var r=n.getBridge().event;if(r){var o="function"==typeof i?K(i,t):i;r.taskManager.removeMatcher(c,o)}}}},p=this,l=0,u=Object.keys(o);l<u.length;l++)s(u[l]);if(i){var f=this.taskId,h=i.key,d=i.getPayload,y=i.getTaskId;e.onProgressUpdate=function(e){var n=t.runtime();if(n){var r=n.getBridge().event;r&&r.taskManager.addMatcher("".concat(h,"StateChange"),f,e,y,d)}}}if(a){var v=K(a,this);B(e,v)}}return e}},e.prototype.callHookDoingAsync=function(t){this.apiInfo.allowAbort&&(this.resolveImmediate=t);var e=this.getFlag("idempotentAPIWhiteList"),n=this.apiInfo.m||this.apiName;if(this.apiInfo.i||Array.isArray(e)&&e.indexOf(n)>-1){var r=this.getFlag("idempotentAPIBlackList");Array.isArray(r)&&r.indexOf(n)>-1?this.doingAsync(t):this.invokeIdempotentAPI(this.apiInfo.i,t)}else this.doingAsync(t)},e.prototype.doingAsync=function(t){It(this.apiInfo.d)?!0===this.extraInfo.inside?K(this.apiInfo.d,this.getInsideContext(),this.finalOption,t):K(this.apiInfo.d,this,this.finalOption,t):It(this.apiInfo.d_with_cache)?this.interceptBridgeCall4Cache(this.apiInfo.cache,t)||(!0===this.extraInfo.inside?K(this.apiInfo.d_with_cache,this.getInsideContext(),this.finalOption,t):K(this.apiInfo.d_with_cache,this,this.finalOption,t)):this.apiInfo.compositeElementAction?this.invokeCompositeElementMethod(this.finalOption,t):this.interceptBridgeCall4Cache(this.apiInfo.cache,t)||(this.shouldForbidAsyncJSAPI(this.apiInfo.m||this.apiName,this.finalOption)?(this.runtime().getEnv().packageAndRunSceneType,t({error:4,errorMessage:"API调用受限"})):Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,t,this.assignedViewId,{caller:this.extraInfo.caller}))},e.prototype.shouldForbidAsyncJSAPI=function(t,e){var n=!1;if("hideOptionMenuItem"===t){var r=this.getFlag("forbidAPIList");"favorite"===e.name&&r&&r.indexOf("hideOptionMenuItem")>-1&&(n=!0)}return n},e.prototype.interceptBridgeCall4Cache=function(t,e){var n=this;if(!t)return!1;var r=this.runtime(),i=r.getBridge(),o=t.key,a=r.getEnv().originalStartupParams;if(!_t(a,o))return!1;var c=i.extraInfo[o];if(c||(c=i.extraInfo[o]={cache:wt(a,o)}),Ot(t)){var s=K(t.get,null,c,this.finalOption);return s?((0,this.runtime().getKernel().setTimeout)(function(){e(s)},0),!0):(Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,function(r){K(t.update,null,c,n.finalOption,r),e(r)},this.assignedViewId,{caller:this.extraInfo.caller}),!0)}return t.set?(K(t.set,null,c,this.finalOption),!1):void 0},e.prototype.invokeMethodAsync=function(){var t=this,e=this.runtime(),n=e.getKernel(),r=n.Promise;return this.callHookValidate()?(this.callbackUnion=Ft(this.option),r.resolve().then(function(){return t.dispatchResultCallback(t.validateResult)})):(this.callbackUnion=Ft(this.option),this.finalOption=this.prepareOption(),new r(function(r,i){var o=1;t.callHookDoingAsync(function(a){var c=t.apiInfo,s=c.progress;if(s){var p=s.key,l=e.getBridge().event;l&&l.taskManager.removeMatcher("".concat(p,"StateChange"),t.taskId)}if(c.allowAbort){if(!t.resolveImmediate)return;t.resolveImmediate=null}var u=t.processResult(a);try{if(o)return void n.setTimeout(function(){try{r(t.dispatchResultCallback(u))}catch(t){i(t)}},2);r(t.dispatchResultCallback(u))}catch(t){i(t)}}),o=0}))},e.prototype.invokeIdempotentAPI=function(t,e){if(this.finalOption&&Object.keys(this.finalOption).length>0)return this.doingAsync(e);var n=this.runtime(),r=n.getBridge(),i=r.extraInfo.idempotenceInfo;i||(i=r.extraInfo.idempotenceInfo={});var o=this.apiInfo.m||this.apiName,a=void 0!==this.optionPageViewId?this.optionPageViewId:void 0!==this.assignedViewId?this.assignedViewId:"default",c=this.appxDomainIsNotEmpty?this.appxDomain.scope:"default",s="".concat(o,"-").concat(a,"-").concat(c),p=i[s];p||(p=i[s]={processing:!1,resolveQueue:[]}),p.processing?p.resolveQueue.push(e):(p.processing=!0,this.doingAsync(function(t){var r;p.processing=!1;try{r=it(rt(t))}catch(t){r={},n.getLogger().reportError(12,t)}e(t),p.resolveQueue&&p.resolveQueue.length>0&&(p.resolveQueue.forEach(function(t){t(it(rt(r)))}),p.resolveQueue=[])}))},e.prototype.abort=function(){this.resolveImmediate&&this.resolveImmediate({error:9,errorMessage:"".concat(this.apiName,":fail abort")})},e}(qt)),Wt)(e,n,a,c,f,t,h,{caller:null==l?void 0:l.caller,directly:r,inside:i,viewId:o,scopedElementId:null==l?void 0:l.scopedElementId})}function re(t,e,n,r,i,o,a,c,s,p){var l=Bt(s,void 0,function(){return Ut(e,n,c)}).option;return new(Qt||(Qt=function(t){function e(e,n,r,i,o,a,c){return t.call(this,e,n,r,i,o,a,null,c)||this}return F(e,t),e.prototype.interceptBridgeCallSync4Cache=function(t){if(t){var e=this.runtime(),n=e.getBridge(),r=t.key,i=e.getEnv().originalStartupParams;if(_t(i,r)){var o=n.extraInfo[r];if(o||(o=n.extraInfo[r]={cache:wt(i,r)}),Ot(t)){var a=K(t.get,null,o,this.finalOption);if(a)return{hit:!0,result:a};var c=Et(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,this.assignedViewId,{caller:this.extraInfo.caller});return K(t.update,null,o,this.finalOption,c),{hit:!1,result:c}}t.set&&K(t.set,null,o,this.finalOption)}}},e.prototype.callHookDoingSync=function(){var t;if(It(this.apiInfo.d))t=!0===this.extraInfo.inside?K(this.apiInfo.d,this.getInsideContext(),this.finalOption,void 0):K(this.apiInfo.d,this,this.finalOption,void 0);else if(It(this.apiInfo.d_with_cache_sync))(t=(e=this.interceptBridgeCallSync4Cache(this.apiInfo.cache))?e.result:!0===this.extraInfo.inside?K(this.apiInfo.d_with_cache_sync,this.getInsideContext(),this.finalOption,void 0):K(this.apiInfo.d_with_cache_sync,this,this.finalOption,void 0))&&(t=this.processResult(t)||t);else{var e;(t=(e=this.interceptBridgeCallSync4Cache(this.apiInfo.cache))?e.result:Et(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,this.assignedViewId,{caller:this.extraInfo.caller}))&&(t=this.processResult(t)||t)}return t||(t={error:999,errorMessage:"System Error: Return ".concat(t)}),t},e.prototype.invoke=function(){return this.callHookValidate()?this.validateResult:(this.finalOption=this.prepareOption(),It(this.apiInfo.responseProxy)&&!0!==this.extraInfo.inside&&this.getFlag("enableBridgeResponseProxy")&&(t=K(this.apiInfo.responseProxy,this,this.finalOption,W(this.callHookDoingSync,this),W(this.callHookDoingAsync4ResponseProxy,this))),t||(t=this.callHookDoingSync()),t);var t},e.prototype.callHookDoingAsync4ResponseProxy=function(t){var e=this,n=function(n){var r=e.processResult(n);t(r)};this.interceptBridgeCall4CacheAsync(this.apiInfo.cache,n)||Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,n,this.assignedViewId,{caller:this.extraInfo.caller})},e.prototype.interceptBridgeCall4CacheAsync=function(t,e){var n=this;if(!t)return!1;var r=this.runtime(),i=r.getBridge(),o=t.key,a=r.getEnv().originalStartupParams;if(!_t(a,o))return!1;var c=i.extraInfo[o];if(c||(c=i.extraInfo[o]={cache:wt(a,o)}),Ot(t)){var s=K(t.get,null,c,this.finalOption);return s?((0,this.runtime().getKernel().setTimeout)(function(){e(s)},0),!0):(Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,function(r){K(t.update,null,c,n.finalOption,r),e(r)},this.assignedViewId,{caller:this.extraInfo.caller}),!0)}return t.set?(K(t.set,null,c,this.finalOption),!1):void 0},e}(qt)),Qt)(e,n,a,c,l,t,{caller:null==p?void 0:p.caller,directly:r,inside:i,viewId:o})}function ie(t){var e=function(){};return e.prototype=t,ae(new e),t}function oe(t){return t.__MAGIC_SLOW_PROPERTY=1,delete t.__MAGIC_SLOW_PROPERTY,t}function ae(t){if(t===ae)throw ae;return t}var ce={SDKVersion:!0,call:!0,callSync:!0,canIUse:!0,emit:!0,off:!0,on:!0,renderTarget:!0};function se(t,e){if(!e.length)return!1;for(var n=t,r=0,i=e;r<i.length;r++){var o=i[r];if(!(n=n&&n[o]))return!1}return!0}function pe(t,e){if(!e.length)return!1;for(var n=t,r=0,i=e;r<i.length;r++){var o=i[r];if(null==(n=n&&n[o]))return!1}return!0}var le=function(){function t(t,e,n,r,i){this.collection=new fe,this.collectedCanIUseKeys=ot(),this.hasRegisteredCanIUseReportHandler=!1,this.ctx=n,this.getRuntime=r,this.appxDomain=e,this.unrefRuntime=i,this.callSync4PublicNamed=W(this.callSync4PublicNamed,this),this.callSync4PublicNamedInside=W(this.callSync4PublicNamedInside,this),this.call4PublicNamed=W(this.call4PublicNamed,this),this.call4PublicNamedInside=W(this.call4PublicNamedInside,this),this.call=W(this.call,this),this.callSync=W(this.callSync,this),this.canIUse=W(this.canIUse,this),this.call4LinkedContext=W(this.call4LinkedContext,this),this.call4ProtoContext=W(this.call4ProtoContext,this),this.call4PublicCall=W(this.call4PublicCall,this),this.callSync4PublicCall=W(this.callSync4PublicCall,this),ft(e)?this.publicInstance={canIUse:this.canIUse}:this.publicInstance={call:this.call4PublicCall,callSync:this.callSync4PublicCall,canIUse:this.canIUse,emit:t.emit,off:t.off,on:t.on}}return t.prototype.callSync4PublicNamed=function(t,e,n){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,1,t,e,n)},t.prototype.callSync4PublicNamedInside=function(t,e,n){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,5,t,e,n)},t.prototype.callSync4PublicCall=function(t,e,n){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,2,t,e,n)},t.prototype.call4PublicCall=function(t,e,n,r){return Ct(this.collection,this.appxDomain,this.ctx,this.getRuntime,2,t,e,n,r)},t.prototype.call4PublicNamed=function(t,e,n,r){return Ct(this.collection,this.appxDomain,this.ctx,this.getRuntime,1,t,e,n,r)},t.prototype.call4PublicNamedInside=function(t,e,n,r){return Ct(this.collection,this.appxDomain,this.ctx,this.getRuntime,5,t,e,n,r)},t.prototype.removeAPIs=function(t,e){this.collection.removeAPIs(t);for(var n=e?this.publicInstance[e]:this.publicInstance,r=0,i=t;r<i.length;r++){var o=i[r];n&&n[o]&&(n[o]=void 0)}},t.prototype.replaceAPI=function(t,e){this.collection.replaceAPI(t,e)},t.prototype.replacePublicCallProxyAPI=function(t,e){this.collection.replacePublicCallProxyAPI(t,e)},t.prototype.replaceLinkedContextAPI2Proto=function(t,e){this.replaceAPI(t,e),this.publicInstance[t]=W(this.call4ProtoContext,null,t,!1)},t.prototype.getCollection=function(){return this.collection},t.prototype.callSync=function(t,e,n){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,0,t,e,n)},t.prototype.canIUse=function(t){return"string"!=typeof t&&(t=String(t)),this.registerCanIUseReportHandler(),this.collectedCanIUseKeys.add(t),function(t,e,n,r,i,o){if(!r.getFlag("disableCanIUseByMetaInBridge")){var a=ct(o);if(void 0!==a)return a}var c=String(o).split(".");if(1===c.length&&ce[c[0]])return!0;var s=0,p=i();if(p){var l=p.getNav().getTopInstance();l&&(s=l.getEngineType())}return!!se(t.getCanIUseMap(r,i,s),c)||!!t.evaluateCanIUse(r,i,e,c)||!!(r.getFlag("enableCanIUseFix4PublicInstanceCheck")?pe:se)(n,c)}(this.collection,this.appxDomain,this.publicInstance,this.ctx,this.getRuntime,t)},t.prototype.call=function(t,e,n,r){return Ct(this.collection,this.appxDomain,this.ctx,this.getRuntime,0,t,e,n,r)},t.prototype.call4LinkedContext=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(t,e,n,r,i,o,a){var c="".concat(i),s=t.getAPIInfoByName(c)||St;if(!At[c]){xt(s,i);var p=function(t,e,n,r,i,o,a,c,s){return new(Zt||(Zt=function(t){function e(e,n,r,i,o,a,c){var s=t.call(this,e,n,r,i,o,a,void 0,c)||this;return s.cache4ApiInfo=Object.create(null),s.callLinkedCollection=W(s.callLinkedCollection,s),s.callAfterCompositeElementReady=W(s.callAfterCompositeElementReady,s),s.callSyncLinkedCollection=W(s.callSyncLinkedCollection,s),s}return F(e,t),e.prototype.invoke=function(){return G(this.apiInfo.create,this,this.option)},e.prototype.callScopedBridge=function(t,e,n,r){var i=this.appxDomain;i&&!lt(i)&&(e=H(H({},e),{__appxDomain:i.scope}));var o=this.runtime();if(o){var a=o.getBridge();a&&a.callBridge(t,e,n)}},e.prototype.callLinkedCollection=function(t,e,n){return ne(this.getApiInfoFromLinkedCollection(t),this.ctx,this.runtime,!1,!1,this.assignedViewId,this.appxDomain,t,e,n).invoke()},e.prototype.callSyncLinkedCollection=function(t,e){return re(this.getApiInfoFromLinkedCollection(t),this.ctx,this.runtime,!1,!1,this.assignedViewId,this.appxDomain,t,e).invoke()},e.prototype.callAfterCompositeElementReady=function(t,e){var n=this,r=this.getPageInstance();r&&r.whenCompositeElementReady(e.element,function(){n.callLinkedCollection(t,e)})},e.prototype.initDependency=function(e,n,r,i){var o=r.createOptionIndex,a=!1===o?null:e[o];t.prototype.initDependency.call(this,a,n,r,null)},e.prototype.getApiInfoFromLinkedCollection=function(t){if(!this.cache4ApiInfo[t]){var e,n=this.apiInfo.linked;e=n&&n[t]||Xt,this.cache4ApiInfo[t]=e}return this.cache4ApiInfo[t]},e}(qt)),Zt)(e,n,o,a,c,t,{caller:void 0,directly:!0,shouldNotRewriteIdOrClass:s,viewId:null})}(s,n,r,0,0,e,c,o,a);return p.invoke()}}(this.collection,this.appxDomain,this.ctx,this.getRuntime,t,n,e)},t.prototype.call4ProtoContext=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=this.collection.getAPIInfoByName(t),o=xt(i,t);return jt(i,t,this.appxDomain,this.ctx,this.getRuntime,n,e,{caller:o})},t.prototype.destroy=function(){this.publicInstance=null,this.collection=null,this.unrefRuntime&&this.unrefRuntime()},t.prototype.registerCanIUseReportHandler=function(){var t=this;if(!this.hasRegisteredCanIUseReportHandler){var e=this.getRuntime();this.ctx.getFlag("enableCanIUseReport")&&e.getEventManager().addEventListener("pause",function(){var n,r,i,o=[];t.collectedCanIUseKeys.forEach(function(t){o.push(t)}),o.length>0&&t.call("remoteLog",{actionId:"event",bizType:"TAC",param4:(n={key:o.join("|"),appxDomain:ut(t.appxDomain)||ft(t.appxDomain)?t.appxDomain.origin:e.getEnv().startupParams.appId},r=!0,n?"string"==typeof n?n:(i=n,i&&"object"==typeof i?Object.keys(i):[]).filter(function(t){return void 0!==n[t]||!r}).map(function(t){var e="".concat(t,"=");return e+=function(t){return null!==t&&"object"==typeof t?"function"==typeof t.toString?String(t):"":String(t)}(n[t]).replace(/,/g,";").replace(/\^/g,"@").replace(/\=/g,"~"),e}).join("^"):""),seedId:"miniapi.canIUse",type:"behavior"}),t.collectedCanIUseKeys.clear()}),this.hasRegisteredCanIUseReportHandler=!0}},t}();var ue=function(){function t(t,e,n){var r=this;this.extraInfo={},this.scope4Domain=Object.create(null),this.scopeList4Plugin=[],this.dynamicAPIs={},this.ctx=t,this.getRuntime=e,this.unrefRuntime=n,this.callBridge=function(t,e,n,i,o){return r.callBridgeImpl(t,e,n,i,o)},this.callBridgeSync=function(t,e,n,i){return r.callBridgeSyncImpl(t,e,n,i)},this.on=W(this.on,this),this.off=W(this.off,this),this.emit=W(this.emit,this),this.defaultScope=new le(this,pt,this.ctx,this.getRuntime)}return Object.defineProperty(t.prototype,"event",{get:function(){return this.getEventManager()},enumerable:!1,configurable:!0}),t.prototype.off=function(t,e){return this.getEventManager().removeEventListener(t,1,e)},t.prototype.on=function(t,e,n){var r=this.extraInfo;if(!r.reportMyOnComposite){var i=!0;try{var o=this.getRuntime().getBehaviorManager().get("reportMyOnComposite");o.report&&(t.startsWith("nbcomponent.")?o.report("myoncomposite"):i=!1)}catch(t){}i&&(r.reportMyOnComposite=!0)}return this.getEventManager().addEventListener(t,1,e,n)},t.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this.getEventManager().invokeTypedEvent(t,1,e)},t.prototype.callBridgeImpl=function(t,e,n,r,i){return Pt(this.ctx,this.getRuntime,t,e,n,void 0,i)},t.prototype.callBridgeSyncImpl=function(t,e,n,r){return Et(this.ctx,this.getRuntime,t,e,n,r)},t.prototype.dispose=function(){this.unrefRuntime&&this.unrefRuntime()},t.prototype.callInternalAPI=function(t,e,n,r,i){return function(t,e,n,r,i,o,a){if(e().getEnv()){var c=ht().config;c&&!0===c.noUseInternalAPI?Pt(t,e,n,r,i,o,a):Pt(t,e,"internalAPI",{method:n,param:r,viewId:r&&r.viewId},i,o,a)}}(this.ctx,this.getRuntime,t,e,n,r,i)},t.prototype.callInternalAPISync=function(t,e,n,r){return function(t,e,n,r,i,o){if(e().getEnv()){var a=ht().config;return a&&!0===a.noUseInternalAPI?Et(t,e,n,r,i,o):Et(t,e,"internalAPI",{method:n,param:r,viewId:r&&r.viewId},void 0,o)}}(this.ctx,this.getRuntime,t,e,n,r)},t.prototype.getPluginScopes=function(){return this.scopeList4Plugin},t.prototype.createScope=function(t){if(lt(t))return this.defaultScope;var e=this.scope4Domain,n=ut(t),r=n||ft(t)?t.origin:t.scope;if(!e[r]){var i=e[r]=new le(this,t,this.ctx,this.getRuntime);n&&this.scopeList4Plugin.push(i)}return e[r]},t.prototype.getScope=function(t){return lt(t)?this.defaultScope:this.scope4Domain[ut(t)||ft(t)?t.origin:t.scope]},t.prototype.getScopeByProviderInfo=function(t){if(function(t){return t&&1===t.providerType}(t)||function(t){return t&&2===t.providerType}(t))return this.scope4Domain[t.providerId];var e=this.getRuntime();return e?e.getKernel().isUsingExtensionMode?this.scope4Domain.app:this.defaultScope:void 0},t.prototype.setDynamicDistributedAPIs=function(t){this.dynamicAPIs=H(H({},this.dynamicAPIs),t)},t.prototype.getDynamicDistributedAPIs=function(){return this.dynamicAPIs},t.prototype.getEventManager=function(){var t,e;return this.eventInstance||(this.eventInstance=(t=this.getRuntime,e=function(){function e(){var t=this;this.eventMap=Object.create(null),this.eventInvokeMap=Object.create(null),this.taskManager=new gt(function(e,n,r){t.addEventListener(e,r?0:1,n)})}return e.prototype.hasEventListener=function(t,e){var n=this.getCustomTypeContext(t);return e?!(!n[e]||!n[e].length):!!(n[0].length||n[1].length||n[2].length)},e.prototype.addEventListener=function(t,e,n,r){var i=this;if(void 0===r&&(r=n),this.hasCustomEventMatched(t,e,r)||this.eventMap[t][e].push({cache:r,invoke:n}),this.registerListener(t),1===e)return{remove:function(){i.removeEventListener(t,e,r)}}},e.prototype.removeEventListener=function(t,e,n){e?(this.removeEventListener4Type(t,e,n),this.hasEventListener(t)||this.unregisterListener(t)):(this.eventMap[t]=null,this.unregisterListener(t))},e.prototype.removeEventListener4Type=function(t,e,n){var r=this.getCustomTypeContext(t);n||(r[e]=[]),r[e].length&&(r[e]=r[e].filter(function(t){return t.cache!==n}))},e.prototype.invokeTypedEvent=function(t,e,n){if(this.hasEventListener(t)){var r=this.getCustomTypeContext(t)[e];if(r&&r.length)for(var i=0,o=r;i<o.length;i++)o[i].invoke.apply(null,n)}},e.prototype.getCustomTypeContext=function(t){return this.eventMap[t]||(this.eventMap[t]=[[],[],[]]),this.eventMap[t]},e.prototype.hasCustomEventMatched=function(t,e,n){return this.getCustomTypeContext(t)[e].some(function(t){return t.cache===n})},e.prototype.registerListener=function(e){if(!this.eventInvokeMap[e]){var n=this.eventInvokeMap[e]=W(this.invokeEventImpl,this,e);t().getKernel().__EVENT_ADD_LISTENER__(e,n)}},e.prototype.unregisterListener=function(e){var n=this.eventInvokeMap[e];n&&(t().getKernel().__EVENT_REMOVE_LISTENER__(e,n),this.eventInvokeMap[e]=null)},e.prototype.invokeEventImpl=function(t,e){if(this.hasEventListener(t)){for(var n=this.getCustomTypeContext(t),r=0,i=n[0];r<i.length;r++)K(i[r].invoke,null,e);var o=n[1].length,a=n[2].length;(o||a)&&function(t,e){var n;if(!(!t||!t.data)){var r=t.data,i=(delete(n=H({},r)).appInstanceId,delete n.instanceId,delete n.pageName,n);t.data=i,e(t),t.data=r}else e(t)}(e,function(t){for(var e=0,r=n[1];e<r.length;e++)K(r[e].invoke,null,t);for(var i=0,o=n[2];i<o.length;i++)K(o[i].invoke,null,t.data)})}},e}(),new e)),this.eventInstance},t}(),fe=function(){function t(){this.apiMap=Object.create(null),this.publicProxyMap=Object.create(null)}return t.prototype.setCanIUses=function(t){this.typedCanIUseMapInfo=t},t.prototype.removeAPIs=function(t){for(var e=this.apiMap,n=0,r=t;n<r.length;n++)e[r[n]]=void 0},t.prototype.setAPIs=function(t){var e=this.apiMap;oe(e);for(var n=0,r=t;n<r.length;n++){for(var i=r[n],o=i.values,a=0,c=i.keys;a<c.length;a++)e[l=c[a]]=o[l];if(i.namespace)for(var s=0,p=i.keys;s<p.length;s++){var l;e[l=p[s]].avaliableNamespace=i.namespace}}return ie(e),e},t.prototype.replaceAPI=function(t,e){var n=this.apiMap;n[t]&&e&&(n[t]=e)},t.prototype.setPublicCallProxyAPIs=function(t){var e=this.publicProxyMap;oe(e);for(var n=0,r=t;n<r.length;n++)for(var i=r[n],o=i.values,a=0,c=i.keys;a<c.length;a++){var s=c[a];e[s]=o[s]}return ie(e),this.publicProxyMap=e,e},t.prototype.getPublicCallProxyAPIInfoByName=function(t){return this.publicProxyMap[t]},t.prototype.hasPublicCallProxyAPI=function(t){return!!this.publicProxyMap[t]},t.prototype.replacePublicCallProxyAPI=function(t,e){var n=this.publicProxyMap;n[t]&&e&&(n[t]=e)},t.prototype.has=function(t){return!!this.apiMap[t]},t.prototype.evaluateCanIUse=function(t,e,n,r){if(e()){var i=!n||lt(n)?"empty":"".concat(n.type,"_").concat(n.scope);this.typedCanIUseMap||(this.typedCanIUseMap=he(this.typedCanIUseMapInfo,t,e));var o=this.typedCanIUseMap.evaluate,a=o[i];o[i]||(a=o[i]={});var c=this.typedCanIUseMapInfo.evaluate;if(c)for(var s=0,p=c;s<p.length;s++){var l=(0,p[s])(t,e,n,r,a);if(void 0!==l)return l}}return 0},t.prototype.getCanIUseMap=function(t,e,n){if(e()){if(this.typedCanIUseMap||(this.typedCanIUseMap=he(this.typedCanIUseMapInfo,t,e)),1!==n&&2!==n){if(!this.typedCanIUseMap)return{};n=this.typedCanIUseMap.defaultType}return this.typedCanIUseMap?this.typedCanIUseMap[n]:{}}return{}},t.prototype.getAPIMap=function(){return this.apiMap},t.prototype.getAPIInfoByName=function(t){return this.apiMap[t]},t}();function he(t,e,n){for(var r,i=((r={defaultType:t.defaultType,evaluate:{}})[1]=Object.create(null),r[2]=Object.create(null),r),o=0,a=[1,2];o<a.length;o++){var c=a[o],s=t[c];if(s){for(var p=i[c],l=0,u=s(e,n);l<u.length;l++)p=de(p,u[l]);i[c]=p}}return i}function de(t,e){if(!t)return e;if(!e)return t;var n=1===t?{}:H({},t);if("object"==typeof e)for(var r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];n[o]=de(n[o],e[o])}return n}var ye=function(){function t(t){this.callbackMap=Object.create(null),this.implMap=Object.create(null),this.appInstanceId=t}return t.prototype.dispose=function(){var t=this;Object.keys(this.implMap).forEach(function(e){t.removeEventListeners(e)}),this.implMap=null,this.callbackMap=null},t.prototype.addEventListener=function(t,e){if("function"!=typeof e)throw new Error("callback is not function");if(!this.implMap[t]){var n=this.invokeEvent.bind(this,t);this.addEventImpl(t,n),this.implMap[t]=n}this.callbackMap[t]=this.callbackMap[t]||[];var r=this.callbackMap[t];r.indexOf(e)<0&&r.push(e)},t.prototype.removeEventListener=function(t,e){if("function"!=typeof e)throw new Error("callback is not function");this.callbackMap[t]=this.callbackMap[t]||[],this.callbackMap[t]=this.callbackMap[t].filter(function(t){return t!==e}),0===this.callbackMap[t].length&&(this.removeEventImpl(t,this.implMap[t]),delete this.implMap[t])},t.prototype.removeEventListeners=function(t){this.callbackMap[t]=[],this.removeEventImpl(t,this.implMap[t]),delete this.implMap[t]},t.prototype.invokeEvent=function(t,e){for(var n=0,r=this.callbackMap[t]||[];n<r.length;n++)(0,r[n])(e)},t.prototype.addEventImpl=function(t,e){document.addEventListener(t,e)},t.prototype.removeEventImpl=function(t,e){document.removeEventListener(t,e)},t}(),ve=function(){function t(){this.flag=0}return t.prototype.invokeInternalEvent=function(t,e){},t.prototype.addEventListener=function(t,e,n){var r=this;if(n)return{remove:function(){r.removeEventListener(t,e)}}},t.prototype.removeEventListener=function(t,e){},t}(),ge=function(){function t(){}return t.prototype.isFirstPage=function(){return!0},t.prototype.getTopViewId=function(){},t.prototype.getTopInstance=function(){},t}(),me=function(){},be=function(){function t(t,e){this.id="1",this.type=0,this._kernel=t,this._eventManager=e,this._nav=new ge,this._page={getInstanceById:function(){}},this._switch={get:me}}return t.prototype.getLogger=function(){},t.prototype.getMeta=function(){return{getAppBehavior:me,getTabBar:me,isTabPage:me,removeTabBarItem:me,getAppExt:me}},t.prototype.getBehaviorManager=function(){return{report:me}},t.prototype.getApp=function(){return{appInstanceId:this.getKernel().appInstanceId}},t.prototype.getSubPackageManager=function(){},t.prototype.getTypedEventManager=function(){return this._typedEventManager||(this._typedEventManager=new ve),this._typedEventManager},t.prototype.getRegistry=function(){},t.prototype.setRegistry=function(){},t.prototype.getMiniExtensionManager=function(){},t.prototype.getSwitchManager=function(){return this._switch},t.prototype.getPageManager=function(){return this._page},t.prototype.getNav=function(){return this._nav},t.prototype.getEnv=function(){return this._env},t.prototype.setEnv=function(t){this._env=t},t.prototype.setBridge=function(t){this._bridge=t},t.prototype.getBridge=function(){return this._bridge},t.prototype.getKernel=function(){return this._kernel},t.prototype.getEventManager=function(){return this._eventManager},t}(),Ie=function(){};function Oe(t,e,n,r,i){var o="smallfish",a=new ye(o),c={appInstanceId:o,userAgent:"",isDisableAppContext:!1,isUsingExtensionMode:!1,__BRIDGE_CALL__:function(t,e,n,r){"undefined"!=typeof AlipayJSBridge?AlipayJSBridge.call(e,n,r):document.addEventListener("AlipayJSBridgeReady",function(){AlipayJSBridge.call(e,n,r)})},__BRIDGE_CALL_SYNC__:function(t,e,n){return{error:10,errorMessage:"callSync is not avaliable in H5WebView"}},__EVENT_ADD_LISTENER__:a.addEventListener.bind(a),__EVENT_REMOVE_LISTENER__:a.removeEventListener.bind(a),__FATAL_ERROR__:Ie,__GET_PLATFORM_ELEMENTS__:function(){return[]},__GET_STARTUP_PARAMS__:function(){return"undefined"!=typeof AlipayJSBridge?AlipayJSBridge.startupParams:{}},__EVAL__:Ie,__IMPORT_SCRIPT__:Ie,__PERFORMANCE__:Ie,__REPORT_ERROR__:Ie,__SET_PAGE_CONTEXT_GETTER__:Ie,__SET_CURRENT_PAGE_ID_GETTER__:Ie,__SET_RUNTIME_ERROR_REPORTER__:Ie,Promise:t,setTimeout:"undefined"==typeof window?e:e.bind(window),clearTimeout:"undefined"==typeof window?n:n.bind(window),setInterval:"undefined"==typeof window?r:r.bind(window),clearInterval:"undefined"==typeof window?i:i.bind(window),getFrameworkContextSymbol:Ie,reportHostError:Ie},s=new be(c,a);return s.setEnv(function(t){var e,n="undefined"!=typeof navigator?navigator.userAgent:"",r=function(t){if(dt)return dt;var e=t.match(/Griver\/(\d+\.\d+\.\d+)/),n=t.match(/AliApp\((\S*)/),r=t.match(/AriverApp\((\S*)/),i=t.match(/GriverApp\((\S*)/),o=!!n&&2===n.length&&n[1].split("/")||!!r&&2===r.length&&r[1].split("/")||!!i&&2===i.length&&i[1].split("/"),a="unknown",c="0.0.0",s=0,p="",l=function(t){if(!yt){var e=t.match(/UCBS\/((\d+)\.(\d+))/);if(e){var n=e[1]||"",r=parseInt(e[2],10),i=parseInt(e[3],10);yt=[n,r,i]}else yt=["",0,0]}return yt}(t),u=!(!l||!l[0]),f=t.indexOf("AlipayIDE")>-1,h=t.match(/Language\/(\S+)/),d=t.indexOf("Android")>-1,y=!d&&!!t.match(/iPhone|iPad/i),v=y?"ios":d?"android":"unknown",g=function(t,e){if(!vt){if(e){var n=t.match(/OS (\d+)_(\d+)(?:_(\d+))?/);if(n){var r=parseInt(n[1],10),i=parseInt(n[2],10),o=parseInt(n[3]||"0",10);vt=[r,i,o]}}vt=vt||[0,0,0]}return vt}(t,y);if(o?(a=o[0],c=o[1].match(/(\d+\.\d+\.\d+)/)[0],p=o[1].match(/([\w.]+)/)[0]):e&&(a="Griver",p=c=e[0]),"string"==typeof c){var m=function(t){for(var e=[],n=0,r=t.split(".");n<r.length;n++){var i=r[n];e.push(parseInt(i,10))}return e}(c);s=(m[0]?1e6*m[0]:0)+(m[1]?1e3*m[1]:0)+(m[2]?1*m[2]:0)}return dt={alipayVersionSequence:s,clientName:a.toLowerCase(),clientVersion:c,clientVersionSequence:s,iosMajorVersion:g[0],iosMinorVersion:g[1],iosPatchVersion:g[2],isAndroid:d,isIDE:f,isIOS:y,isUCWebView:u,language:h?h[1]:"",originalClientName:a,originalClientVersion:p,platform:v,ucMajorVersion:l[1],ucMinorVersion:l[2],ucVersion:l[0]}}(n),i=r.alipayVersionSequence,o=r.clientName,a=r.clientVersion,c=r.clientVersionSequence,s=r.isAndroid,p=r.isIDE,l=r.isIOS,u=r.isUCWebView,f=r.language,h=r.originalClientName,d=r.platform,y=r.ucMajorVersion,v=r.ucMinorVersion,g=r.ucVersion;return{alipayVersionSequence:i,appxVersion:"2.0.0",clientName:o,clientVersion:a,clientVersionSequence:c,isAndroid:s,isIDE:p,isIOS:l,isUCWebView:u,language:f,iosMajorVersion:r.iosMajorVersion,iosMinorVersion:r.iosMinorVersion,iosPatchVersion:r.iosPatchVersion,isPortalWorkerScene:void 0,get originalStartupParams(){return e||(e=t.__GET_STARTUP_PARAMS__()),e},originalClientName:h,packageAndRunSceneType:17,platform:d,startupParams:{get appId(){return e||(e=t.__GET_STARTUP_PARAMS__()),e&&e.appId||""}},ucMajorVersion:y,ucMinorVersion:v,ucVersion:g,userAgent:n}}(c)),s}var Pe=function(){function t(){var t,e=this;this.flags=((t={}).idempotentAPIWhiteList=["getStartupParams","getUserInfo","getRunScene","getSystemInfo","getClientInfo"],t.idempotentAPIBlackList=void 0,t.forbidAPIList=void 0,t.filterAppxDomainForSecurity=void 0,t.invokeBridgeWithCaller=void 0,t.disablePublicCallErrorCodeNormalize=void 0,t.ignoreCallbackWhenInvokeMyCall=void 0,t.enableBridgeResponseProxy=1,t.disableCanIUseByMetaInBridge=void 0,t.authCodeMapping4Aplus=void 0,t.uep=void 0,t.fixTempFilePath=void 0,t.selectorQueryContextClearActions=void 0,t.validSignContractURL=void 0,t.enableOpenEmbeddedMiniProgramScopedBridgeCall=void 0,t.openEmbeddedMiniProgramDefaultBridgeCallExtensionsWhiteList=void 0,t.disableGetWidthFromUA=void 0,t.enableGetterFromState4Audio=void 0,t.compositeElement=void 0,t.cameraContextPermissionCheck=void 0,t.navigateToMiniProgramQuery=1,t.enableExtConfigFromStartupParms=void 0,t.enableNavigateToMiniProgramScopedBridgeCall=void 0,t.disableLoadFontFaceLoadCanvasFont=void 0,t.disableSubscribeMsgJSAPI=void 0,t.fixNavigateBackMiniProgram=void 0,t.iosVersion4GetSystemInfoProxy=void 0,t.disableSystemInfoTaskCache282=void 0,t.enableAppXStorageCache=void 0,t),this.getFlags=function(){return e.flags}}return t.prototype.getFlag=function(t){return this.flags[t]},t.prototype.getCurrentCallStep=function(){},t}();function Ee(t,e,n,r){var i;Pt=_e,Et=we;var o=function(t,e,n){var r=function(t,e,n){return new ue(t,e,n)}(t,e,n);return r}(new Pe,function(){return r}),a=o.defaultScope;return function(t,e,n,r){var i=r.getCollection();i.setCanIUses(n),i.setPublicCallProxyAPIs(e),function(t,e){var n=e.getCollection();n.setAPIs(t);var r=n.getAPIMap(),i=e.callSync4PublicNamed,o=e.callSync4PublicNamedInside,a=e.call4PublicNamed,c=e.call4PublicNamedInside,s=e.call4LinkedContext,p=e.call4ProtoContext,l=e.publicInstance;oe(l);for(var u=0,f=t;u<f.length;u++){var h=f[u],d=h.namespace,y=l;if(d&&(y[d]||(y[d]={}),oe(y=y[d])),h.linked)for(var v=0,g=h.keys;v<g.length;v++)r[E=g[v]]&&(y[E]=W(s,null,E,!1));else if(h.proto)for(var m=0,b=h.keys;m<b.length;m++)r[E=b[m]]&&(y[E]=W(p,null,E,!1));else for(var I=h.sync?h.inside?o:i:h.inside?c:a,O=0,P=h.keys;O<P.length;O++){var E;if(r[E=P[O]]){var _=r[E].feature;if("function"==typeof _&&!_())continue;y[E]=W(I,null,E)}}d&&ie(y)}ie(l)}(t,r),r.publicInstance}(t,e,((i={defaultType:1,evaluate:[]})[1]=function(){return n},i[2]=function(){return[]},i),a),r.setBridge(o),o}function _e(t,e,n,r,i,o){e().getKernel().__BRIDGE_CALL__(o,n,r,i)}function we(t,e,n,r,i){return e().getKernel().__BRIDGE_CALL_SYNC__(i,n,r)}var Ae=Object.prototype.hasOwnProperty,Se=Object.assign||function(t,e){for(var n,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i<arguments.length;i++)for(var o in n=Object(arguments[i]))Ae.call(n,o)&&(r[o]=n[o]);return r},ke=function(){return ke=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ke.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Ce=Function.prototype.apply.call.bind(Function.prototype.apply);Function.prototype.bind;var je,xe,Te,Me=JSON.stringify,De=JSON.parse,Ne=encodeURIComponent;function Le(t,e){return e.encode?e.strict?Ne(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):Ne(t):t}je||function(){var t="undefined"!=typeof WeakMap;je=t?WeakMap:function(){var t=Object.prototype.hasOwnProperty,e=function(t,e,n){Object.defineProperty?Object.defineProperty(t,e,{configurable:!0,value:n,writable:!0}):t[e]=n};function n(t){return Object(t)===t}function r(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(e(this,"_id","_WeakMap_"+o()+"."+o()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function i(e,r){if(!n(e)||!t.call(e,"_id"))throw new TypeError(r+" method called on incompatible receiver "+typeof e)}function o(){return Math.random().toString().substring(2)}return e(r.prototype,"delete",function(t){if(i(this,"delete"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t||(delete t[this._id],0))}),e(r.prototype,"get",function(t){if(i(this,"get"),n(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}}),e(r.prototype,"has",function(t){if(i(this,"has"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)}),e(r.prototype,"set",function(t,r){if(i(this,"set"),!n(t))throw new TypeError("Invalid value used as weak map key");var o=t[this._id];return o&&o[0]===t?(o[1]=r,this):(e(t,this._id,[t,r]),this)}),e(r,"_polyfill",!0),r}()}(),new je,"undefined"!=typeof SECURITY_FUNCTION_CALL&&(SECURITY_FUNCTION_CALL=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return"function"==typeof t?(Ce||(Ce=Function.prototype.apply.call.bind(Function.prototype.apply)),Ce(t,e,n)):t.call.apply(t,function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}([e],n,!1))}),"undefined"!=typeof SECURITY_FUNCTION_APPLY&&(SECURITY_FUNCTION_APPLY=function(t,e,n){return"function"==typeof t?(Ce||(Ce=Function.prototype.apply.call.bind(Function.prototype.apply)),Ce(t,e,n)):t.apply(e,n)}),function(t){t[t.Info=0]="Info",t[t.Warn=1]="Warn",t[t.Error=2]="Error"}(xe||(xe={})),function(t){t.AppxLifecycle="AppxLifecycle"}(Te||(Te={}));var Re="undefined"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE||function(t){return!1};function Be(t){return t&&"openCapability"===t.type}"undefined"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,"undefined"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT;var Ue="undefined"!=typeof nativeLog&&"undefined"!=typeof mqEnvironment;function Fe(t){return t&&"object"==typeof t?Object.keys(t):[]}function He(t,e){var n,r;return"%s"===t?e="object"==typeof(r=e)?Me(r):r+"":"%c"===t?e=function(t){var e=""+t;0===e.indexOf("#")&&(e=e.substr(1)),3===e.length&&(e=e.replace(/(.)/g,"$1$1"));var n,r=parseInt(e,16);return isNaN(r)&&(n="".concat(t," is invalid hex color."),Ue?nativeLog(n,Date.now()):console.error(n,Date.now())),r}(e):"%b"===t?("string"==typeof(n=e)&&(n=n.replace(/^data:(\/|\w|\-|\.)+;base64,/i,"")),e=n):"%d"===t?e=parseInt(e,10):"%f"===t&&(e=parseFloat(e)),e}function Ve(t,e,n){var r;return n=n||{},Fe(e).forEach(function(i){var o,a,c,s=e[i];a=((o=s)||"").match(/(\w+)(%\w)$/i),c={k:o},a&&(c.k=a[1],c.t=a[2]),void 0!==(s=(r=c).k)&&(i in t||i in n)&&void 0===t[s]&&(t[s]=He(r.t,void 0===n[i]?t[i]:n[i]),s!==i&&delete t[i])}),t}function Ye(t){return"[object ArrayBuffer]"===(e=t,Object.prototype.toString.call(e))&&void 0!==t.byteLength;var e}function Ke(t){return e=t,r=function(t){switch(t.arrayFormat){case"index":return function(e,n,r){return null===n?[Le(e,t),"[",r,"]"].join(""):[Le(e,t),"[",Le(r,t),"]=",Le(n,t)].join("")};case"bracket":return function(e,n){return null===n?Le(e,t):[Le(e,t),"[]=",Le(n,t)].join("")};default:return function(e,n){return null===n?Le(e,t):[Le(e,t),"=",Le(n,t)].join("")}}}(n=Se({encode:!0,strict:!0,arrayFormat:"none"},n)),e?Object.keys(e).sort().map(function(t){var i=e[t];if(void 0===i)return"";if(null===i)return Le(t,n);if(Array.isArray(i)){var o=[];return i.slice().forEach(function(e){void 0!==e&&o.push(r(t,e,o.length))}),o.join("&")}return Le(t,n)+"="+Le(i,n)}).filter(function(t){return t.length>0}).join("&"):"";var e,n,r}function Ge(t){return/^application\/x-www-form-urlencoded\b/i.test(t)}var We={allowAbort:!0,returnEvent:{headersReceived:{feature:function(){return Re("a_request_headersReceived_2_8_7")},eventName:"requestTaskHeadersReceived",getPayload:function(t){return{header:t.data.headers}},getTaskId:function(t){return[t.data.requestTaskId]},taskId:function(){return"".concat(this.taskId)}}},t:!0,b:function(t){Ve(t,{header:"headers"}),t.requestTaskId=this.taskId,t.method=(t.method||"GET").toUpperCase(),t.enableSubErrorCode=!0;var e=this.runtime();if(void 0!==t.dataType||"arraybuffer"!==t.responseType&&"text"!==t.responseType)t.dataType=(t.dataType||"json").toLowerCase(),t.responseType=t.dataType;else{var n=e.getBehaviorManager().get("requestBehaviors",0),r=n.standard,i=n.report;i&&i("request.dataType is undefined and has request.responseType",{url:t.url,responseType:t.responseType}),r?t.dataType=t.responseType:(t.dataType=(t.dataType||"json").toLowerCase(),t.responseType=t.dataType)}t.responseType="base64"!==t.responseType&&"arraybuffer"!==t.responseType?"text":t.responseType;var o,a,c,s,p=t.headers=t.headers||{},l="";for(var u in p)if("content-type"==u.toLowerCase()){l=p[u];break}if(l||(l=p["content-type"]="application/json"),this.getEnvPlatformAndroid()&&(t.headers=function(t){for(var e=[],n=0,r=Fe(t);n<r.length;n++){var i=r[n],o={};o[i]=t[i],e.push(o)}return e}(t.headers)),"GET"===t.method?(t.hasAssembleParams=!0,t.url=(a=t.url,c=function(t,e){var n=e;return Ge(t)&&"object"==typeof e&&(n=function(t,e){for(var n={},r=0,i=Fe(e);r<i.length;r++){var o=i[r];n[o]=t(e[o])}return n}(function(t){return"object"==typeof t?Me(t):t},e)),n}(l,t.data),s=c||"","object"==typeof c&&(s=Ke(c)),""===s?a:(/\?/.test(a)?/&$/.test(a)||/\?$/.test(a)||(s="&"+s):s="?"+s,a+s))):"DELETE"===t.method&&(t.hasAssembleParams=!1),"string"!=typeof t.data&&Ye(t.data)||(t.data=function(t,e){return void 0===e?e="":"string"!=typeof e&&(e=Ge(t)?Ke(e):/^application\/json\b/i.test(t)||"object"==typeof e?Me(e):e.toString()),e}(l,t.data)),!t.referrerStrategy)if((o=this.appxDomain)&&"empty"===o.type||function(t){return t&&"app"===t.type}(this.appxDomain)){var f=e.getMeta().getAppBehavior();f&&f.requestReferrerStrategy&&("page"===f.requestReferrerStrategy?t.referrerStrategy="page":"index"===f.requestReferrerStrategy&&(t.referrerStrategy="index"))}else if(function(t){return t&&"extension"===t.type}(this.appxDomain)){var h=e.getMiniExtensionManager().getMetaByExtensionId({type:4,value:this.appxDomain.origin});if(h&&h.config&&h.config.behavior){var d=h.config.behavior;d.requestReferrerStrategy&&("page"===d.requestReferrerStrategy?t.referrerStrategy="page":"index"===d.requestReferrerStrategy&&(t.referrerStrategy="index"))}}},a:function(t,e){switch(Ve(t,{header:"headers",statusCode:"status"}),e.dataType){case"json":if(t.data)try{t.data=De(t.data)}catch(e){void 0!==t.error&&0!==t.error||(t.error=14,t.errorMessage="JSON parse data error")}break;case"base64":t.data&&t.headers&&(t.data=(n=t.data,r=t.headers["Content-Type"]||t.headers["content-type"],n&&n.startsWith&&n.startsWith("data:")||n&&r&&(n="data:".concat(r,";base64,")+n),n));break;case"arraybuffer":if(t.data&&!Ye(t.data))try{t.data=function(t){for(var e=function(t){var e="",n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new Error('"atob" failed');for(var r=0,i=0,o=0,a=0;i=n.charAt(a);)a+=1,~(i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i))&&(r=o%4?64*r+i:i,o++%4&&(e+=String.fromCharCode(255&r>>(-2*o&6))));return e}(t),n=e.length,r=new Uint8Array(n),i=0;i<n;i++)r[i]=e.charCodeAt(i);return r.buffer}(t.data)}catch(e){void 0!==t.error&&0!==t.error||(t.error=14,t.errorMessage="parse arraybuffer data error")}}var n,r;if("status"in t){var i=t.status+"";/^[45]/.test(i)&&(void 0!==t.error&&0!==t.error||(t.error=19,t.errorMessage="http status error"))}t.appxProfile&&delete t.appxProfile,t.status&&(t.statusCode=t.status),t.headers&&(t.header=t.headers)},a_l:function(t){t.subErrorCode&&delete t.subErrorCode},c:function(){this.callScopedBridge("operateRequestTask",{operationType:"abort",requestTaskId:this.taskId})}},qe="_appx_open_capability_";function Je(t,e){return"".concat(qe).concat(t,"_").concat(e)}function ze(t,e,n){if(0===e.indexOf(qe)){var r=n().getBehaviorManager().get("enableIsolation4OCStorage");if(r.report&&r.report("unexpected key when using storage API: ".concat(e,", type: ").concat(t)),r.standard)return{error:15,errorMessage:"无效key,key不能以".concat(qe,"开头")}}}var $e,Ze,Qe,Xe,tn,en={m:"setTinyLocalStorage",v:function(t){return ze("setStorage",String(t.key),this.runtime)},b:function(t){t.value=Me({APDataStorage:t.data}),t.data=t.value,Re("a_setStorage_value_remove_2_8_16")&&this.getFlag("removeSetStorageParamValue")&&(t.value=void 0),Be(this.appxDomain)&&!Re("a_storage_open_capability_2_8_15")?t.key=Je(this.appxDomain.origin,String(t.key)):t.key=String(t.key),t.type="user"},cache:{key:"jsApi_tinyLocalStorage",set:function(t,e){t.cache||(t.cache={}),t.cache[e.key]={data:e.data}}}},nn={m:"getTinyLocalStorage",v:function(t){return ze("getStorage",String(t.key),this.runtime)},cache:{key:"jsApi_tinyLocalStorage",get:function(t,e){t.cache||(t.cache={});var n=t.cache[e.key];if(n&&"object"==typeof n){if(n.data)return{success:!0,data:n.data};if(11===n.error)return{success:!1,error:11}}},update:function(t,e,n){t.cache||(t.cache={}),n.data?t.cache[e.key]={data:n.data}:11===n.error&&(t.cache[e.key]={error:11})}},b:function(t){Be(this.appxDomain)&&!Re("a_storage_open_capability_2_8_15")?t.key=Je(this.appxDomain.origin,String(t.key)):t.key=String(t.key),t.type="user";var e=this.runtime().getNav();t.isAppFirstPage=e.isFirstPage()},a:function(t){if(11===t.error&&(t.data=null,delete t.error,delete t.errorMessage,delete t.success),t.data){var e=De(t.data);t.data=e.APDataStorage}}};function rn(){if(!Xe){var t=Oe(Promise,setTimeout,clearTimeout,setInterval,clearInterval);Xe=Ee([],[],[],t)}return Xe}function on(t,e){var n=function(t){if("undefined"==typeof navigator||!navigator||void 0===navigator.userAgent)return function(){throw new Error("API ".concat(t," should not initialized by smallfish. Please check your environment"))}}(t);if(n)return n;var r=(tn||(tn=rn().defaultScope.publicInstance),tn);if(!r[t]){var i=rn().defaultScope;i.getCollection().apiMap[t]=e;var o=i.call4PublicNamed;r[t]=o.bind(null,t)}return r[t]}$e||($e={}),Ze||(Ze={}),Qe||(Qe={});var an=on("setNavigationBar",{v:function(t){if(void 0!==t.frontColor){var e=He("%c",t.frontColor);if(16777215!==e&&0!==e)return{error:2,errorMessage:"frontColor 参数 ".concat(t.frontColor," 颜色值不合法")}}},b:function(t){t.reset&&(t.backgroundColor="#ffffff"),delete t.reset;var e,n="setTitle",r="setTitleColor",i="setBarBottomLineColor",o=this.optionPageViewId;return(e=o?{setTitle:{viewId:o},setTitleColor:{viewId:o},setBarBottomLineColor:{viewId:o}}:{setTitle:{},setTitleColor:{},setBarBottomLineColor:{}})[n]=Ve(e[n],{title:"title%s",image:"image%b"},t),e[r]=Ve(e[r],{backgroundColor:"color%c",frontColor:"frontColor%c"},t),e[i]=Ve(e[i],{borderBottomColor:"color%c"},t),e},d:function(t,e){var n="setTitle",r="setTitleColor",i="setBarBottomLineColor",o={};0!==Fe(t[n]).length&&this.callDefaultBridge(n,t[n],void 0,this.optionPageViewId),0!==Fe(t[i]).length&&(isNaN(t[i].color)?(o.error=2,o.errorMessage="borderBottomColor 颜色值不合法"):this.callDefaultBridge(i,t[i],void 0,this.optionPageViewId)),0!==Fe(t[r]).length?isNaN(t[r].color)?(o.error=2,o.errorMessage="frontColor 需和 backgroundColor 同时设置",e(o)):this.callDefaultBridge(r,t[r],function(t){o=ke(ke({},t),o),e(o)},this.optionPageViewId):e(o)}}),cn=on("request",We),sn=on("setStorage",en);const pn=on("getStorage",nn);function ln(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var un=["current","urls"];function fn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}const hn=cn;var dn=["url"];function yn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var vn=["keepScreenOn"];function gn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}const mn=an,bn=sn;function In(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var On=["items","cancelButtonText"];function Pn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function En(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var _n=["content"];function wn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var An=function(){return An=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},An.apply(this,arguments)};function Sn(t,e){var n=t.filter(function(t){return t.match.every(function(t){return t.test(e)})});if(n.length){var r=n[0].name;if(n.length>1){var i=n.map(function(t){return t.name}).join(",");Cn("Multiple clients have been identified(".concat(i,"), and the first one(").concat(r,")is used by default."))}return r}}function kn(t,e){return Object.keys(t).reduce(function(n,r){return n["is".concat(r)]=e===t[r],n},{})}function Cn(t){console.info("[hylid-env]: ".concat(t))}var jn={WEB:"web",MPWEB:"mpweb",MP:"mp"},xn={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"},Tn=/miniprogram/i,Mn=/^((?!miniprogram).)*$/i,Dn=/griver/i,Nn=/^((?!griver).)*$/i,Ln=[{name:xn.DEMO,match:[/demo/]},{name:xn.ALIPAYHK,match:[/alipayHK/]},{name:xn.TNGD,match:[/tngd/]},{name:xn.GCASH,match:[/gcash/]},{name:xn.TRUEMONEY,match:[/tmn/]},{name:xn.DANA,match:[/dana/]},{name:xn.TOSSPAY,match:[/toss/]},{name:xn.ALIPAY,match:[/alipay/]},{name:xn.MPAY,match:[/MPay/]},{name:xn.HIPAY,match:[/hipay/]},{name:xn.SCB_PLANETPLUS,match:[/scb/]}],Rn=[{name:xn.DEMO,match:[/alipayIDE/i]},{name:xn.ALIPAYHK,match:[Tn,Nn,/AlipayClientHK/]},{name:xn.TNGD,match:[Tn,/TNGKit|Touch 'n Go/]},{name:xn.GCASH,match:[Tn,Dn,/GCash/]},{name:xn.TRUEMONEY,match:[Tn,Dn,/TrueMoney/]},{name:xn.MPAY,match:[Tn,Nn,/mpay|macaupay/i]},{name:xn.ALIPAY,match:[Tn,Nn,/alipay/i]},{name:xn.DEMO,match:[Tn,Dn]},{name:xn.SCB_PLANETPLUS,match:[Tn,/scb/i]}];function Bn(){return Sn(Rn,window.navigator.userAgent)}var Un=[{name:xn.ALIPAYHK,match:[Mn,Nn,/AlipayClientHK/]},{name:xn.TNGD,match:[Mn,Dn,/TNGKit|Touch 'n Go/]},{name:xn.TNGD_H5NG,match:[Mn,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:xn.GCASH,match:[Mn,Dn,/GCash/]},{name:xn.TRUEMONEY,match:[Mn,Dn,/TrueMoney/i]},{name:xn.KAKAOPAY,match:[Mn,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:xn.KAKAOTALK,match:[Mn,/ALIPAYCONNECT_KAKAO_TALK/]},{name:xn.NAVERPAY,match:[Mn,/NAVER/]},{name:xn.MPAY,match:[Mn,/mpay|macaupay/i]},{name:xn.TOSSPAY,match:[Mn,/Toss/i]},{name:xn.ALIPAY,match:[Mn,Nn,/AlipayClient/]},{name:xn.DEMO,match:[Mn,Dn,/GriverDemo/]},{name:xn.WORLDFIRST,match:[Mn,Nn,/WorldFirst/]},{name:xn.CHANGIPAY,match:[Mn,Nn,/ChangiPay/]},{name:xn.KASPI,match:[Mn,Nn,/Kaspi/]}];function Fn(){return Sn(Un,window.navigator.userAgent)||xn.H5}var Hn=function(){var t,e;if("undefined"!=typeof my&&"string"==typeof my.SDKVersion)t=Sn(Ln,my.getSystemInfoSync().app),e=jn.MP;else{var n=function(){var t,e="__hy_env__",n=(null===(t=window.location.search)||void 0===t?void 0:t.match(/__app__=([^&]*)/))||[],r=n[1],i=(window.location.search.match(/__platform__=([^&]*)/)||[])[1],o=JSON.parse(localStorage.getItem(e)||"{}")||{};r&&(o.client=r),i&&(o.platform=i);try{localStorage.setItem(e,JSON.stringify(o))}catch(t){}if(n[1]){var a=window.location.search.replace(new RegExp("".concat(n[0],"(&)*")),""),c=window.location.hash||"",s="".concat(window.location.pathname).concat(a).concat(c);history.replaceState(null,"",s)}var p=JSON.parse(localStorage.getItem(e)||"{}"),l=localStorage.getItem("_CB__app__");return l?An(An({},p),{client:l}):p}();n.platform?(e=n.platform,t=n.client||("mpweb"===e?Bn():Fn())):(t=n.client||Bn())?e=jn.MPWEB:(t=Fn(),e=jn.WEB)}return e&&t||Cn("Cannot identify your client."),{client:t,platform:e}}(),Vn=Hn.client,Yn=Hn.platform;kn(xn,Vn),kn(jn,Yn);var Kn=!1,Gn=[];function Wn(t){return Gn.push(t),function(){Gn=Gn.filter(function(e){return e!==t})}}function qn(t){return Kn||(document.addEventListener("onToWebViewMessage",function(t){var e=t.data.res;if(e&&"message"===e.type){var n=JSON.parse(e.data);Gn.forEach(function(t){return t(n)})}}),Kn=!0),n(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:t})})}var Jn={NOTFOUND:{code:-1,message:function(t){return"".concat(t," is not found")}},NOTALLOWED:{code:-2,message:function(t){return"".concat(t," is not allowed")}},INVALID:{code:-3,message:function(t){return"".concat(t," is invalid")}},NOTBIND:{code:-4,message:function(t){return"".concat(t," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(t){return"".concat(t," exec fail, params error")}},TIMEOUT:{code:-6,message:function(t){return"".concat(t," exec fail, timeout")}}},zn=function(t,e){void 0===e&&(e="");var n=Jn[t];return{errorCode:n.code,errorMessage:(0,n.message)(e),errorSouce:"hylid"}},$n=function(){return $n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},$n.apply(this,arguments)},Zn={};function Qn(t,e,n){n=$n({timeout:0},n);var r=t+"_"+Math.floor(1e6*Math.random());e&&(Zn[r]=e),qn({source:"hylid",type:"apiCall",api:t,serialId:r,options:e,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var i=e;(null==n?void 0:n.timeout)&&(null==i?void 0:i.fail)&&setTimeout(function(){Zn[r]&&(delete Zn[r],i.fail(zn("TIMEOUT")))},n.timeout)}Wn(function(t){var e,n=t,r=n.serialId;if(r&&Zn[r]){var i=Zn[r],o=n.result;if("callback"===(null===(e=n.config)||void 0===e?void 0:e.type)){var a=o||{},c=a._data_;return"success"===a._type_?i(c):i(void 0,c)}var s=i||{},p=s.success,l=s.fail,u=s.complete,f=o||{},h=f._data_,d=f._type_;d?("success"===d&&(null==p||p(h)),"fail"===d&&(null==l||l(h)),null==u||u(h)):((null==o?void 0:o.error)?null==l||l(o):null==p||p(o),null==u||u(o)),delete Zn[r]}}),Qn.onMessage=Wn,Qn.postMessage=qn,Qn.broadcastGlobalData=function(t,e){qn({source:"hylid",type:"broadcast",from:window.location.href,key:t,result:e})},Qn.onReceiveGlobalData=function(t,e){return Wn(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===t){var i=r.result||{},o=i._data_;return"success"===i._type_?e(o,void 0,r.from):e(void 0,o,r.from)}})},Qn.onPageEvent=function(t,e){return qn({source:"hylid",type:"pageEvent",event:t}),Wn(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===t){var i=r.result||{},o=i._data_;return"success"===i._type_?e(o):e(void 0,o)}})};var Xn,tr,er=function(){var t={},e=!1;return function(r,i,o){return new Promise(function(a,c){var s,p=i||{},l=p.success,u=p.fail,f=o||{},h=f.timeout,d=void 0===h?2e4:h,y=f.isSync;d>0&&(s=setTimeout(function(){var t={error:-101,errorMessage:"[".concat(r,"]: Timeout")};c(t),null==u||u(t)},d));var v={apiName:r,options:$n($n({},i),{success:function(t){s&&clearTimeout(s),a(t),null==l||l(t)},fail:function(t){s&&clearTimeout(s),c(t),null==u||u(t)}}),isSync:y};n(function(){e||(document.addEventListener("onToWebViewMessage",function(e){var n=e.data.res;"message"===n.type&&function(e){var n,r=e.serialId;if(r&&t[r]){var i=t[r],o=e.result;if("callback"===(null===(n=e.config)||void 0===n?void 0:n.type)){var a=o||{},c=a._data_;return"success"===a._type_?i(c):i(void 0,c)}var s=i||{},p=s.success,l=s.fail,u=s.complete,f=o||{},h=f._data_,d=f._type_;d?("success"===d&&(null==p||p(h)),"fail"===d&&(null==l||l(h)),null==u||u(h)):((null==o?void 0:o.error)?null==l||l(o):null==p||p(o),null==u||u(o)),delete t[r]}}(JSON.parse(n.data))}),e=!0),function(e){var n,r=e.apiName,i=e.options,o=e.isSync,a=window,c=Math.floor(1e6*Math.random()),s="".concat(r,"_").concat(c);i&&(t[s]=i);var p={type:"apiCall",api:r,serialId:s,options:i,isSync:o,source:"hylid"};null===(n=a.AlipayJSBridge)||void 0===n||n.call("postWebViewMessage",{type:"message",detail:p})}(v)})})}}(),nr=((Xn={})[jn.MP]=function(t,e,n){var r=(n||{}).type,i=void 0===r?"async":r;return"sync"===i||(null==n?void 0:n.isSync)?my[t](e):("async"===i&&(my[t]?my[t](e):my.call(t,e)),"callback"===i&&my[t](e),"attribute"===i?my[t]:void 0)},Xn[jn.MPWEB]=Qn,Xn[jn.WEB]=r,Xn);(tr={})[jn.MPWEB]=er,tr[jn.WEB]=function(t,e,n){return new Promise(function(r,i){var o,a=e||{},c=(a.success,a.fail),s=(a.complete,(n||{}).timeout),p=void 0===s?2e4:s;p>0&&(o=setTimeout(function(){var e={error:-101,errorMessage:"[".concat(t,"]: Timeout")};i(e),null==c||c(e)},p)),window.AlipayJSBridge.call(t,e,function(t){var n=e||{},a=n.success,c=n.fail,s=n.complete;o&&clearTimeout(o),(null==t?void 0:t.error)?(i(t),null==c||c(t)):(r(t),null==a||a(t)),null==s||s(t)})})};var rr=["flowType"],ir=["fileName","fileType"];function or(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ar(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function cr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}const sr={addPhoneContact:function(t){return r("addPhoneContact",t,{type:"async"})},chooseImage:function(t){return r("chooseImage",t,{type:"async"})},exitApp:function(t){return r("exitApp",t,{type:"async"})},getAppToken:function(t){return r("getAppToken",t,{type:"async"})},getClientInfo:function(t){return r("getClientInfo",t,{type:"async"})},getBatteryInfo:function(t){return r("getBatteryInfo",t,{type:"async"})},getClipboard:function(t){return r("getClipboard",t,{type:"async"})},getFileInfo:function(t){return r("getFileInfo",t,{type:"async"})},getImageInfo:function(t){return r("getImageInfo",t,{type:"async"})},getSavedFileInfo:function(t){return r("getSavedFileInfo",t,{type:"async"})},getSavedFileList:function(t){return r("getSavedFileList",t,{type:"async"})},getScreenBrightness:function(t){return r("getScreenBrightness",t,{type:"async"})},getServerTime:function(t){return r("getServerTime",t,{type:"async"})},getSetting:function(t){return r("getSetting",t,{type:"async"})},getSystemInfo:function(t){return r("getSystemInfo",t,{type:"async"})},hideKeyboard:function(t){return r("hideKeyboard",t,{type:"async"})},hideLoading:function(t){return r("hideLoading",t,{type:"async"})},hideToast:function(t){return r("hideToast",t,{type:"async"})},makePhoneCall:function(t){return r("makePhoneCall",t,{type:"async"})},navigateBackMiniProgram:function(t){return r("navigateBackMiniProgram",t,{type:"async"})},navigateToMiniProgram:function(t){return r("navigateToMiniProgram",t,{type:"async"})},openDocument:function(t){return r("openDocument",t,{type:"async"})},openSetting:function(t){return r("openSetting",t,{type:"async"})},prompt:function(t){return r("prompt",t,{type:"async"})},removeSavedFile:function(t){return r("removeSavedFile",t,{type:"async"})},rpc:function(t){return r("rpc",t,{type:"async"})},saveFile:function(t){return r("saveFile",t,{type:"async"})},scan:function(t){return r("scan",t,{type:"async"})},setBackgroundColor:function(t){return r("setBackgroundColor",t,{type:"async"})},setCanPullDown:function(t){return r("setCanPullDown",t,{type:"async"})},setClipboard:function(t){return r("setClipboard",t,{type:"async"})},setOptionMenu:function(t){return r("setOptionMenu",t,{type:"async"})},setScreenBrightness:function(t){return r("setScreenBrightness",t,{type:"async"})},showLoading:function(t){return r("showLoading",t,{type:"async"})},signContract:function(t){return r("signContract",t,{type:"async"})},startApp:function(t){return r("startApp",t,{type:"async"})},startPullDownRefresh:function(t){return r("startPullDownRefresh",t,{type:"async"})},crossPay:function(t){return r("crossPay",t,{type:"async"})},vibrate:function(t){return r("vibrate",t,{type:"async"})},watchShake:function(t){return r("watchShake",t,{type:"async"})},setTransparentTitle:function(t){return r("setTransparentTitle",t,{type:"async"})},getRunScene:function(t){return r("getRunScene",t,{type:"async"})},chooseFileFromDisk:function(t){return r("chooseFileFromDisk",t,{type:"async"})},chooseVideo:function(t){return r("chooseVideo",t,{type:"async"})},compressImage:function(t){return r("compressImage",t,{type:"async"})},alert:function(t){var e=t||{};r("alert",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({message:e.content,button:e.buttonText},o(e,a)))},choosePhoneContact:function(t){r("contact",t)},clearStorage:function(t){r("clearTinyLocalStorage",t)},confirm:function(t){var e=t||{};r("confirm",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({okButton:e.confirmButtonText,cancelButton:e.cancelButtonText,message:e.content},o(e,s)))},datePicker:function(t){var e=t||{},n=e.format,a=(e.currentDate,e.startDate),c=e.endDate,s=o(e,l);r("datePicker",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({mode:f[n||"yyyy-MM-dd"],beginDate:a,minDate:a,maxDate:c},s))},downloadFile:function(t){var e,n,a=t||{},c=a.url,s=o(a,h),p=null===(e=c.match(/\.(\w+)$/))||void 0===e?void 0:e[1];r("downloadFile",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({url:c,type:null===(n=y.find(function(t){return t.exts.includes(p||"png")}))||void 0===n?void 0:n.type},s))},getAuthCode:function(t){var e=t||{},n=e.scopes,i=o(e,v);r("getAuthCode",m(m({scopeNicks:n},i),{},{success:function(t){var e;return null===(e=i.success)||void 0===e?void 0:e.call(i,m(m({},t),{},{authCode:t.authCode||t.authcode}))}}))},getLocation:function(t){var e=t||{},n=e.type,a=o(e,b);r("getCurrentLocation",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({bizType:(null==t?void 0:t.bizType)||"alipayIntl",requestType:n},a))},getNetworkType:function(t){var e=t.success;r("getNetworkType",E(E({},o(t,O)),{},{success:function(t){e&&e(E(E({},t),{},{networkType:t.networkInfo.toLocaleUpperCase()}))}}))},getPhoneNumber:function(t){r("appxrpc",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({requestData:[{method:"getPhoneNumber"}]},t))},getSiteInfo:function(t){return function(t){var e=t.success,n=t.fail,r=t.complete;setTimeout(function(){var t=N();t&&t.length?null==e||e({siteName:t}):null==n||n(new Error("siteName is empty!")),null==r||r()},0)}(t)},getStorage:pn,hideBackHome:function(){r("hideOptionMenuItem",{name:"backToHome"})},hideNavigationBarLoading:function(){r("hideTitleLoading")},hideTabBar:function(t){r("setTabBar",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ln(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({actionType:"hideTabBar"},t))},multiLevelSelect:function(t){r("beehiveMultilevelSelect",t)},navigateBack:function(t){r("popWindow",{options:t})},navigateTo:function(t){r("pushWindow",t)},onUserCaptureScreen:function(t){r("addScreenshotListener",t)},previewImage:function(t){var e=t.current,n=t.urls,a=void 0===n?[]:n,c=o(t,un);r("imageViewer",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fn(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({images:a.map(function(t){return{u:t}}),init:e},c))},redirectTo:function(t){var e=t||{},n=e.url,r=e.success,i=e.complete;window.location.replace(n),null==r||r({}),null==i||i({})},removeStorage:function(t){r("removeTinyLocalStorage",t)},request:hn,saveImage:function(t){var e=t||{};r("saveImage",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yn(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({src:e.url},o(e,dn)))},setKeepScreenOn:function(t){r("setScreenAutolock",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gn(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({actionType:t.keepScreenOn?"enable":"disable"},o(t,vn)))},setNavigationBar:mn,setStorage:bn,setTabBarStyle:function(t){r("setTabBar",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?In(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({actionType:"setTabbarStyle"},t))},showActionSheet:function(t){var e=t||{};r("actionSheet",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pn(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({btns:e.items,cancelBtn:e.cancelButtonText},o(e,On)))},showAuthGuide:function(t){r("showAuthGuide",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?En(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({bizType:(null==t?void 0:t.bizType)||"alipayIntl"},t))},showNavigationBarLoading:function(){r("showTitleLoading")},showToast:function(t){var e=t||{};r("toast",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wn(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({content:e.content||""},o(e,_n)))},stopPullDownRefresh:function(){r("restorePullToRefresh")},tradePay:function(t){var e,n,r,i=t||{},a=i.flowType,c=o(i,rr);e="a+"===a?"tradePayCrossApp":"tradePay",n=c,Yn?nr[Yn](e,n,r):function(t,e,n){var r;void 0===n&&(n={});var i=n.type,o=void 0===i?"async":i,a=zn("NOTFOUND",t);if("sync"===o)return a;"callback"===o&&(null==e||e(a)),"async"===o&&(null===(r=null==e?void 0:e.fail)||void 0===r||r.call(e,a))}(n,r)},uploadFile:function(t){var e=t||{};e.fileName,r("uploadFile",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?or(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({type:e.fileType},o(e,ir)))},setTabBarItem:function(t){r("setTabBar",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ar(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({actionType:"setTabBarItem"},t))},showTabBar:function(t){r("setTabBar",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cr(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({actionType:"showTabBar"},t))}};return e.default})());
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.my=e():t.my=e()}(self,()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{default:()=>sr});var n=function(t){if(window.AlipayJSBridge)return t();document.addEventListener("AlipayJSBridgeReady",function(){return t()},!1)};function r(t,e,r){n(function(){var n=(r||{}).type,i=void 0===n?"async":n;"async"===i&&window.AlipayJSBridge.call(t,e,function(t){var n=e||{},r=n.success,i=n.fail,o=n.complete;t.error||t.errorCode?null==i||i(t):null==r||r(t),null==o||o(t)}),"callback"===i&&window.AlipayJSBridge.call(t,e)})}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var a=["content","buttonText"];function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var s=["confirmButtonText","cancelButtonText","content"];function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var l=["format","currentDate","startDate","endDate"];function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var f={"HH:mm:ss":0,"yyyy-MM-dd":1,"yyyy-MM-dd HH:mm:ss":2};var h=["url"];function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var y=[{type:"image",exts:["jpg","jpeg","png","bmp","gif"]},{type:"video",exts:["mp4","3gp","avi","wmv"]},{type:"audio",exts:["mp3","wma","wav"]}];var v=["scopes"];function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var b=["type"];function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var O=["success"];function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function A(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push([n,t[n]]);return e}var S,k,C,j,x,T,M,D=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,n=[{key:"isString",value:function(t){return"string"==typeof t}},{key:"isFunction",value:function(t){return"function"==typeof t}},{key:"isNotEmpty",value:function(t){return t&&t.length>0}},{key:"isEmpty",value:function(e){return!t.isNotEmpty(e)}},{key:"parseObjectSafe",value:function(t,e){try{return JSON.parse(t)}catch(t){console.warn("parseObjectSafe error: ",t)}return e}},{key:"encodeMap",value:function(t){if(t){var e=[];return A(t).forEach(function(t){var n=t[0],r=t[1];null!=r&&e.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r)))}),e.length>0?e.join("&"):void 0}}}],null&&w(e.prototype,null),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function N(){var t,e=null===(t=j)||void 0===t?void 0:t.siteName;return D.isNotEmpty(e)?e:(e=(x||(x=function(){var t={};A(L(window.location.search)).forEach(function(e){var n=e[0],r=e[1],i=n.toLowerCase();if("query"===i)try{t.query=L(r)}catch(t){console.warn("parse query error: ",t)}else"referrerinfo"===i?t.referrerInfo=L(r):t[n]=r});var e=window.location.hash;if(e){var n=e.indexOf("?");t.hashPath=n>0?e.substring(1,n):e.substring(1),t.hashQuery=L(e)}return t}()),x).site,D.isNotEmpty(e)?e:void console.error("no siteName! please specify siteName in initWebPolyfill(...)"))}function L(t){var e,n={};if(D.isEmpty(t))return n;var r=t.indexOf("?");return r>=0&&(t=t.substring(r+1)),null===(e=t.split("&"))||void 0===e||e.forEach(function(t){var e=t.split("=");if(!(e.length<2)){var r=decodeURIComponent(e[0]);n[r]=decodeURIComponent(e[1])}}),n}!function(t){t.EASYPAISA="EASYPAISA",t.TRUEMONEY="TRUEMONEY",t.KAKAOPAY="KAKAOPAY",t.BKASH="BKASH",t.ALIPAY_CN="ALIPAY_CN",t.ALIPAY_HK="ALIPAY_HK",t.ALIPAY_MO="ALIPAY_MO",t.GCASH="GCASH",t.TNG="TNG",t.DANA="DANA"}(S||(S={})),(C=k||(k={})).alipayhk="alipayhk",C.alipaymo="alipaymo",C.gcash="gcash",C.tngd="tngd",C.dana="dana",C.kakaopay="kakaopay",i(i(i(i(i(i({},S.ALIPAY_HK,k.alipayhk),S.ALIPAY_MO,k.alipaymo),S.GCASH,k.gcash),S.DANA,k.dana),S.TNG,k.tngd),S.KAKAOPAY,k.kakaopay),(M=T||(T={})).STABLE="STABLE",M.TEST="TEST",M.PRE="PRE",M.PROD="PROD";var R=Object.prototype.hasOwnProperty,B=Object.assign||function(t,e){for(var n,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i<arguments.length;i++)for(var o in n=Object(arguments[i]))R.call(n,o)&&(r[o]=n[o]);return r},U=function(t,e){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},U(t,e)};function F(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}U(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var H=function(){return H=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},H.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var V=Function.prototype.apply.call.bind(Function.prototype.apply),Y=Function.prototype.bind;function K(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return V(t,e,n)}function G(t,e,n){return V(t,e,n)}function W(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return V(Y,t,e)}var q,J,z,$,Z,Q,X,tt,et,nt,rt=JSON.stringify,it=JSON.parse;function ot(){return J||(t="undefined"!=typeof Set,J=t?Set:function(){function t(){this.itemList=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.itemList.length},enumerable:!1,configurable:!0}),t.prototype.add=function(t){return-1===this.itemList.indexOf(t)&&this.itemList.push(t),this},t.prototype.delete=function(t){var e=this.itemList.indexOf(t);return-1!==e&&(this.itemList.splice(e,1),!0)},t.prototype.clear=function(){this.itemList=[]},t.prototype.has=function(t){return-1!==this.itemList.indexOf(t)},t.prototype.forEach=function(t){for(var e=0,n=this.itemList.slice();e<n.length;e++){var r=n[e];t(r,r,this)}},t}()),new J;var t}function at(t){return"number"==typeof t&&t>=0&&t<=8}function ct(t){var e=t.split(".");if(!e.length)return!1;var n=function(t){for(var e=(nt||"undefined"!=typeof __APPX_CAN_I_USE_DATA__&&(nt=__APPX_CAN_I_USE_DATA__),nt),n=0,r=t;n<r.length;n++){var i=r[n];if(void 0===(e=e&&e[i]))return;var o=e._;if(o){var a=o[et.default];if(a||(a=o[et[void 0]]),!a)return!1;if(void 0!==a[et.const])return Boolean(a[et.const]);var c=a[et.version_added];return void 0!==c&&void 0>=c}}}(e);return void 0!==n?n:function(t,e){if(!e.length)return!1;for(var n=void 0,r=0,i=e;r<i.length;r++){var o=i[r];if(void 0===(n=n&&n[o]))return;if("number"==typeof n._||"boolean"==typeof n._)return Boolean(n._);if("number"==typeof n||"boolean"==typeof n)return Boolean(n)}}(0,e)}z||(z="undefined"!=typeof WeakMap?WeakMap:function(){var t=Object.prototype.hasOwnProperty,e=function(t,e,n){Object.defineProperty?Object.defineProperty(t,e,{configurable:!0,value:n,writable:!0}):t[e]=n};function n(t){return Object(t)===t}function r(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(e(this,"_id","_WeakMap_"+o()+"."+o()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function i(e,r){if(!n(e)||!t.call(e,"_id"))throw new TypeError(r+" method called on incompatible receiver "+typeof e)}function o(){return Math.random().toString().substring(2)}return e(r.prototype,"delete",function(t){if(i(this,"delete"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t||(delete t[this._id],0))}),e(r.prototype,"get",function(t){if(i(this,"get"),n(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}}),e(r.prototype,"has",function(t){if(i(this,"has"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)}),e(r.prototype,"set",function(t,r){if(i(this,"set"),!n(t))throw new TypeError("Invalid value used as weak map key");var o=t[this._id];return o&&o[0]===t?(o[1]=r,this):(e(t,this._id,[t,r]),this)}),e(r,"_polyfill",!0),r}()),new z,"undefined"!=typeof SECURITY_FUNCTION_CALL&&(SECURITY_FUNCTION_CALL=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return"function"==typeof t?(V||(V=Function.prototype.apply.call.bind(Function.prototype.apply)),V(t,e,n)):t.call.apply(t,function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}([e],n,!1))}),"undefined"!=typeof SECURITY_FUNCTION_APPLY&&(SECURITY_FUNCTION_APPLY=function(t,e,n){return"function"==typeof t?(V||(V=Function.prototype.apply.call.bind(Function.prototype.apply)),V(t,e,n)):t.apply(e,n)}),function(t){t.CanvasContext="CanvasContext"}($||($={})),function(t){t[t.PLUGIN=1]="PLUGIN",t[t.SUB_PACKAGE=2]="SUB_PACKAGE"}(Z||(Z={})),function(t){t.PLUGIN="plugin",t.SUB_PACKAGE="subpackage"}(Q||(Q={})),function(t){t[t.Info=0]="Info",t[t.Warn=1]="Warn",t[t.Error=2]="Error"}(X||(X={})),function(t){t.AppxLifecycle="AppxLifecycle"}(tt||(tt={})),"undefined"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE,function(t){t.version_added="v",t.const="c",t.android="a",t.ios="i",t.default="d"}(et||(et={}));var st,pt={scope:void 0,type:"empty"};function lt(t){return t&&"empty"===t.type}function ut(t){return t&&"extension"===t.type}function ft(t){return t&&"openCapability"===t.type}function ht(){return st||(st=function(){try{return INSIDE_CONFIG_STATIC||{}}catch(t){return{}}}()),st}"undefined"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,"undefined"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT;var dt,yt,vt,gt=function(){function t(t){this.taskMap=Object.create(null),this.addEventListener=t}return t.prototype.hasMatcher=function(t,e){var n=this.taskMap[t];if(!n)return!1;if(void 0===e){var r=Object.keys(n.callbacks).some(function(t){var e=n.callbacks[t];return!!(e&&e.length>0)});return r}var i=n.callbacks[e];return!!i&&i.length>0},t.prototype.removeMatcher=function(t,e,n){var r=this.taskMap[t];if(!r)return 0;var i=r.callbacks[e];if(!i)return 0;if(n){var o=i.length;return r.callbacks[e]=i.filter(function(t){return t!==n}),o-r.callbacks[e].length}return o=i.length,i.length=0,o},t.prototype.addMatcher=function(t,e,n,r,i,o){var a=this.taskMap[t];a||(a=this.taskMap[t]={callbacks:Object.create(null)},this.addEventListener(t,W(this.onEventHandler,this,t,r,i),o));var c=a.callbacks[e];return c||(c=a.callbacks[e]=[]),c.indexOf(n)<0?(c.push(n),1):0},t.prototype.onEventHandler=function(t,e,n,r){var i=this.taskMap[t],o=e(r,i);if(o)for(var a=i.callbacks,c=0,s=o;c<s.length;c++){var p=a[s[c]];if(p){var l=n(r);if(l)for(var u=0,f=p;u<f.length;u++)(0,f[u])(l)}}},t}();function mt(t){return void 0===t}function bt(t){return t&&"object"==typeof t}function It(t){return"function"==typeof t}function Ot(t){return!!(t&&t.get&&t.update)}var Pt=function(t,e,n,r,i,o,a){e().getKernel().__BRIDGE_CALL__(o,n,r,i)},Et=function(t,e,n,r,i,o){return e().getKernel().__BRIDGE_CALL_SYNC__(i,n,r)};function _t(t,e){var n=t.jsApiCacheWhitelist;return!!(n&&"string"==typeof n&&n.indexOf(e)>=0)}function wt(t,e){return t[e]}var At={internalAPI:!0,openInBrowser:!0},St={};function kt(t,e,n,r,i,o,a,c){var s="".concat(o),p=!!(1&i),l=!!(2&i),u=!!(4&i),f=!1===p&&!0===l,h=f?t.getPublicCallProxyAPIInfoByName(s):t.getAPIInfoByName(s),d=f?"my.callSync":xt(h,o);if(h||(h=St),!At[s]){(p||l)&&(c=null);var y=re(h,n,r,p,u,c,e,s,a,{caller:d});try{return y.invoke()}finally{}}}function Ct(t,e,n,r,i,o,a,c,s){var p="".concat(o),l=!!(1&i),u=!!(2&i),f=!!(4&i),h=!1===l&&!0===u,d=St;t&&(d=h?t.getPublicCallProxyAPIInfoByName(p):t.getAPIInfoByName(p));var y=h?"my.call":xt(d,o);if(d||(d=St),!At[p]){(l||u)&&(s=null);var v=ne(d,n,r,l,f,s,e,p,a,c,{caller:y});try{return v.invoke()}finally{}}}function jt(t,e,n,r,i,o,a,c){var s=function(t,e,n,r,i,o,a,c,s,p){return new te(e,n,o,a,c,t,{caller:null==p?void 0:p.caller,callerContext:null==p?void 0:p.callerContext,directly:!0,inside:!1,shouldNotRewriteIdOrClass:s,viewId:null})}(t,r,i,0,0,n,e,o,a,c);return s.invoke()}function xt(t,e){if(t)return t.avaliableNamespace?"my.".concat(t.avaliableNamespace,".").concat(e):"my.".concat(e)}var Tt,Mt,Dt=function(){function t(t){this._context=t,this.__appxDomain=t.appxDomain.scope;var e=this._context.runtime().getEnv(),n=e.isIOS,r=e.isAndroid,i=e.isIDE;this.isIOS=n,this.isAndroid=r,this.isIDE=i}return t.prototype.callBridge=function(t,e,n){this._context.callDefaultBridge(t,e,n)},t.prototype.callBridgeSync=function(t,e){return this._context.callDefaultBridgeSync(t,e)},t.prototype.on=function(t,e){return this._context.runtime().getBridge().event.addEventListener(t,0,e)},t.prototype.off=function(t,e){return this._context.runtime().getBridge().event.removeEventListener(t,0,e)},t.prototype.getStartupParams=function(){return this._context.runtime().getEnv().originalStartupParams},t}();function Nt(t){var e;Tt||(q||(e="undefined"!=typeof Map,q=e?Map:function(){function t(){this.keyList=[],this.valueList=[]}return t.prototype.set=function(t,e){var n=this.keyList,r=n.indexOf(t);if(-1===r){var i=n.push(t)-1;this.valueList[i]=e}else this.valueList[r]=e;return this},t.prototype.get=function(t){var e=this.keyList.indexOf(t);return-1===e?void 0:this.valueList[e]},t.prototype.forEach=function(t){for(var e=this.keyList.slice(),n=this.valueList.slice(),r=e.length,i=0;i<r;i++){var o=e[i];t(n[i],o,this)}},Object.defineProperty(t.prototype,"size",{get:function(){return this.keyList.length},enumerable:!1,configurable:!0}),t.prototype.has=function(t){return-1!==this.keyList.indexOf(t)},t.prototype.delete=function(t){var e=this.keyList.indexOf(t);return-1!==e&&(this.keyList.splice(e,1),this.valueList.splice(e,1),!0)},t.prototype.clear=function(){this.keyList=[],this.valueList=[]},t}()),Tt=new q);var n=Tt.get(t);if(!n){n=ot(),Tt.set(t,n);for(var r=0,i=t;r<i.length;r++){var o=i[r];"string"==typeof o&&n.add(o)}}return n}function Lt(){return Mt||((Mt=ot()).add("success"),Mt.add("error"),Mt.add("errorMessage")),Mt}function Rt(t,e,n){if(t&&"object"==typeof t){for(var r=Nt(e),i={},o=0,a=Object.keys(t);o<a.length;o++){var c=a[o];r.has(c)||n&&n.has(c)?i[c]=t[c]:"undefined"!=typeof process&&process&&process.env}return i}return t}function Bt(t,e,n){var r=t,i=e;return It(t)&&(mt(e)||n()&&(i=t,r={})),function(t,e){var n=t,r=e;return mt(e)&&It(t)&&(r=t,n={}),bt(t)||void 0===t||(n={}),mt(n)&&(n={}),{callback:r,option:n}}(r,i)}function Ut(t,e,n){try{var r=ht().config;if(!r||"ap"!==r.clientName)return!0;if(e().getBehaviorManager().report("duplicated my.call(".concat(n,")")),t.getFlag("ignoreCallbackWhenInvokeMyCall"))return!0}catch(t){}return!1}function Ft(t){var e={};return It((t=t||{}).success)&&(e.success=t.success,delete t.success),It(t.fail)&&(e.fail=t.fail,delete t.fail),It(t.complete)&&(e.complete=t.complete,delete t.complete),e}var Ht=1,Vt={};function Yt(){}var Kt=Object.defineProperty;function Gt(t,e,n){Kt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n})}var Wt,qt=function(){function t(t,e,n,r,i,o,a,c){if(p=i,"[object Object]"===Object.prototype.toString.call(p)){var s=H({},i);void 0!==s.page&&(s.page=void 0),this.option=s}else this.option=i;var p;Gt(this,"ctx",t),Gt(this,"runtime",e),Gt(this,"extraInfo",c),Gt(this,"apiName",r),Gt(this,"appxDomain",n),Gt(this,"appxDomainIsNotEmpty",!lt(n)),Gt(this,"callback",a),Gt(this,"apiInfo",this.getFlag("freezeAPIInfo")?function(t){try{Object.isFrozen(t)||(Object.setPrototypeOf(t,null),Object.freeze(t))}finally{return t}}(H({},o)):o||{}),o.t&&(this.taskId=Ht++),this.startTime=(new Date).getTime(),this.initDependency(i,c.viewId,o,a),this.callStack=new Error("")}return t.prototype.invoke=function(){},t.prototype.callScopedBridge=function(t,e,n,r){var i=this.appxDomain;return i&&!lt(i)&&(e=H(H({},e),{__appxDomain:i.scope})),this.callDefaultBridge(t,e,n,r)},t.prototype.callScopedBridgeSync=function(t,e,n){var r=this.appxDomain;return r&&!lt(r)&&(e=H(H({},e),{__appxDomain:r.scope})),this.callDefaultBridgeSync(t,e,n)},t.prototype.callBridge=function(t,e,n,r){return this.callDefaultBridge(t,e,n,r)},t.prototype.callDefaultBridge=function(t,e,n,r){var i=this.runtime();if(i){var o=i.getBridge();o&&o.callBridge(t,e,n,void 0,{caller:this.extraInfo.caller})}},t.prototype.callDefaultBridgeSync=function(t,e,n){var r=this.runtime();if(r){var i=r.getBridge();if(i)return i.callBridgeSync(t,e,n,{caller:this.extraInfo.caller})}},t.prototype.callInternalAPI=function(t,e,n,r){var i=this.runtime();if(i){var o=i.getBridge();o&&o.callInternalAPI(t,e,n,r,{caller:this.extraInfo.caller})}},t.prototype.callInternalAPISync=function(t,e,n){var r=this.runtime();if(r){var i=r.getBridge();if(i)return i.callInternalAPISync(t,e,n,{caller:this.extraInfo.caller})}},t.prototype.getEnvAppBiz=function(){return"TinyAppBiz-".concat(this.getEnvAppId())},t.prototype.getEnvAppId=function(){var t=this.runtime().getEnv().startupParams.appId;return void 0===t?"":t},t.prototype.getEnvPlatformIOS=function(){return"ios"===this.runtime().getEnv().platform},t.prototype.invokeExternalElementMethod=function(t,e,n,r){if(t&&void 0!==t.$viewId){var i=t.$viewId,o=this.runtime().getPageManager().getInstanceById("".concat(i));o&&o.invokeClientElementMethod(e,"onHostExternalMessage",[n,r])}},t.prototype.getBridgeExtraInfo=function(){return this.runtime().getBridge().extraInfo},t.prototype.getEnvPlatformAndroid=function(){return"android"===this.runtime().getEnv().platform},t.prototype.getEnvOnlyCube=function(){return this.runtime().getEnv().isOnlyCube},t.prototype.invokeCallback=function(t,e){t?this.callbackUnion[t]&&this.callbackUnion[t](e):this.callback&&this.callback(e)},t.prototype.dispatchResultCallback=function(t){var e=!1;if("object"==typeof t&&(e="error"in t||"errorMessage"in t),e?(this.shouldEmitEvent()&&this.runtime().getTypedEventManager().invokeInternalEvent(8,[{key:this.apiName,option:this.option,result:t,type:"fail"}]),t=this.callHookAfterLog(t),this.invokeCallback("fail",t)):(this.shouldEmitEvent()&&this.runtime().getTypedEventManager().invokeInternalEvent(8,[{key:this.apiName,option:this.option,result:t,type:"success"}]),this.invokeCallback("success",t)),this.invokeCallback("complete",t),this.invokeCallback(null,t),!e)return t;if(!this.shouldNotReturnPromise()){var n=this.runtime();if(n&&"function"==typeof n.getLogger){var r=n.getLogger();r&&r.attachErrorSource&&r.attachErrorSource(t,{from:"api",method:this.apiName,payload:this.option,stack:this.callStack})}throw t}},t.prototype.shouldNotReturnPromise=function(){if(this.apiInfo.noPromise)return!0;var t=!!(this.callbackUnion.complete||this.callbackUnion.success||this.callbackUnion.fail||this.callback),e=this.apiInfo.allowAbort||this.apiInfo.progress||this.apiInfo.returnProto;return t&&!e},t.prototype.shouldEmitEvent=function(){return this.extraInfo.directly&&"object"==typeof this.option&&!Vt[this.apiName]},t.prototype.prepareOption=function(){return this.shouldEmitEvent()&&this.runtime().getTypedEventManager().invokeInternalEvent(8,[{key:this.apiName,type:"invoke"}]),this.callHookBefore()},t.prototype.getInsideContext=function(){var t=this.insideContext;return t||(t=this.insideContext=new Dt(this)),t},t.prototype.callHookValidate=function(){var t=this.apiInfo.tapMark;if("function"!=typeof t||this.extraInfo.inside||(t=K(t,this)),!0===t){var e=this.getPageInstance();e&&!e.getTapMarkManager().checkTapMark()&&(this.validateResult={error:5,errorMessage:"".concat(this.apiName," can only be invoked by user tap gesture")})}return void 0===this.validateResult&&this.apiInfo.v&&!this.extraInfo.inside&&(this.apiInfo.b_v&&(this.validateResult=K(this.apiInfo.b_v,this,this.option)),void 0===this.validateResult&&(this.validateResult=K(this.apiInfo.v,this,this.option)),void 0===this.validateResult&&this.apiInfo.a_v&&(this.validateResult=K(this.apiInfo.a_v,this,this.option))),this.validateResult},t.prototype.callHookBefore=function(){var t=this.option;return this.optionPageViewId||this.apiInfo.b?(t=H({},t),Array.isArray(this.apiInfo.in)&&(t=Rt(t,this.apiInfo.in,Lt())),this.optionPageViewId&&(t.viewId=this.optionPageViewId),this.apiInfo.b&&(this.apiInfo.b_b&&(t=this.extraInfo.inside?K(this.apiInfo.b_b,this.getInsideContext(),t,this.callback)||t:K(this.apiInfo.b_b,this,t,this.callback)||t),t=this.extraInfo.inside?K(this.apiInfo.b,this.getInsideContext(),t,this.callback)||t:K(this.apiInfo.b,this,t,this.callback)||t,this.apiInfo.a_b&&(t=this.extraInfo.inside?K(this.apiInfo.a_b,this.getInsideContext(),t,this.callback)||t:K(this.apiInfo.a_b,this,t,this.callback)||t))):Array.isArray(this.apiInfo.in)&&(t=Rt(t,this.apiInfo.in,Lt())),ft(this.appxDomain)?t.__openCapabilityId=this.appxDomain.origin:t.__openCapabilityId&&delete t.__openCapabilityId,t},t.prototype.callHookAfter=function(t){var e=t;return this.apiInfo.a&&(this.apiInfo.b_a&&(this.apiInfo.ignoreShadowCopyResponse||(e=H({},e)),e=!0===this.extraInfo.inside?K(this.apiInfo.b_a,this.getInsideContext(),e,this.finalOption,this.option)||e:K(this.apiInfo.b_a,this,e,this.finalOption,this.option)||e),this.apiInfo.ignoreShadowCopyResponse||(e=H({},e)),e=!0===this.extraInfo.inside?K(this.apiInfo.a,this.getInsideContext(),e,this.finalOption,this.option)||e:K(this.apiInfo.a,this,e,this.finalOption,this.option)||e,this.apiInfo.a_a&&(this.apiInfo.ignoreShadowCopyResponse||(e=H({},e)),e=!0===this.extraInfo.inside?K(this.apiInfo.a_a,this.getInsideContext(),e,this.finalOption,this.option)||e:K(this.apiInfo.a_a,this,e,this.finalOption,this.option)||e)),Array.isArray(this.apiInfo.out)&&(e=Rt(e,this.apiInfo.out,Lt())),e},t.prototype.callHookAfterLog=function(t){var e=t;return this.apiInfo.a_l&&(e=K(this.apiInfo.a_l,this,e,this.finalOption,this.option)||e),e},t.prototype.processResult=function(t){var e,n=t||{};n=this.callHookAfter(n);var r=!0;return(null===(e=this.extraInfo)||void 0===e?void 0:e.directly)&&this.getFlag("disablePublicCallErrorCodeNormalize")&&(r=!1),r&&(n=function(t){return"string"==typeof t.error&&(t.error=parseInt(t.error,10)),0===t.error&&(delete t.error,delete t.errorMessage),t}(n)),n},t.prototype.getRewriteIdWithAppxDomain=function(t){var e,n,r=t,i=this.appxDomain;return!ut(i)&&!ft(i)||this.extraInfo.shouldNotRewriteIdOrClass||(r=(e={type:4,value:i.origin},n={type:8,value:r},{type:9,value:"p-".concat(e.value,"-").concat(n.value)}).value),r},t.prototype.getPageInstance=function(){var t=this.pageInstance;return t&&!t.hasPageUnloaded()||(t&&(this.pageInstance=null),t=this.runtime().getNav().getTopInstance()),t},t.prototype.initDependency=function(t,e,n,r){var i,o,a=this.runtime(),c=t&&t.page&&t.page.$viewId||void 0,s=c||e||void 0;s&&(o=a.getPageManager().getInstanceById(s)),o&&!o.hasPageUnloaded()||(o=null===(i=a.getNav())||void 0===i?void 0:i.getTopInstance()),o&&(s=o.pageId,this.pageInstance=o),this.assignedViewId=s,this.optionPageViewId=c},t.prototype.getState=function(){return this.extraInfo.parentState},t.prototype.getProtoContext=function(){return this.extraInfo.parentProtoContext},t.prototype.getCallerContext=function(){return this.extraInfo.callerContext},t.prototype.callProtoAPI=function(t,e){return jt(t,this.apiName,this.appxDomain,this.ctx,this.runtime,e,this.extraInfo.shouldNotRewriteIdOrClass,{caller:this.extraInfo.caller,callerContext:this})},t.prototype.reportHostError=function(t,e,n,r,i){return this.runtime().getKernel().reportHostError(t,e,n,r,i)},t.prototype.getFlag=function(t){return this.ctx.getFlags()[t]},t.prototype.invokeCompositeElementMethod=function(t,e,n){var r;void 0===e&&(e=Yt);var i=null===(r=this.extraInfo)||void 0===r?void 0:r.scopedElementId;if(i){var o=n||this.apiName,a=function(t,e,n,r){if(t){var i=t.success,o=t.fail;return{complete:t.complete,data:function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["success","fail","complete"]),element:n,fail:o,success:i,viewId:e,action:r}}return{element:n,viewId:e,action:r}}(t,this.assignedViewId,i,o);this.pageInstance?this.pageInstance.invokeCompositeElementMethod(a,this,e):e({error:1,errorMessage:"page not found"})}},t}();var Jt,zt,$t=/^(?:on|off)([A-Z])(\w+)/;var Zt,Qt,Xt={},te=function(t){function e(e,n,r,i,o,a,c){return t.call(this,e,n,r,i,o,a,void 0,c)||this}return F(e,t),e.prototype.invoke=function(){for(var t=this,e=G(this.apiInfo.state,this,this.option),n={},r=function(r){var o=i.apiInfo.proto[r];if("function"==typeof o.feature&&!K(o.feature,i))return"continue";var a=i.apiName?"".concat(i.extractProtoEntityNameFromAPIInfo(i.apiName),".").concat(r):void 0,c=function(r){r.extraInfo.caller=a,r.extraInfo.scopedElementId=t.apiInfo.compositeElement?t.getRewriteIdWithAppxDomain(t.option[0]):void 0,r.extraInfo.parentState=e,r.extraInfo.parentProtoContext=n,r.extraInfo.callerContext=t.extraInfo.callerContext||t};if(o.getter){var s,p=function(t,e,n,r,i,o,a){return new ee(e,n,o,a,t,{caller:void 0,directly:!1,viewId:i,inside:!1,scopedElementId:void 0})}(o,i.ctx,i.runtime,0,i.assignedViewId,i.appxDomain,r);c(p);var l=!1;Object.defineProperty(n,r,{configurable:!0,enumerable:!0,get:function(){return l||(s=p.invoke()),s},set:function(t){return s=t,l=!0,!0}})}else n[r]=function(e,n){if(t.apiInfo.compositeElement&&!t.hasPermission())return t.invokeNoPermissionCallbackDirectly(a,r,e,n);var i=ne(o,t.ctx,t.runtime,!1,!1,t.assignedViewId,t.appxDomain,r,e,n);return c(i),i.invoke()}},i=this,o=0,a=Object.keys(this.apiInfo.proto);o<a.length;o++)r(a[o]);return n},e.prototype.initDependency=function(e,n,r,i){var o=r.createOptionIndex,a=!1===o?null:e[o];t.prototype.initDependency.call(this,a,n,r,null)},e.prototype.extractProtoEntityNameFromAPIInfo=function(t){var e=t.match(/^(create|get)(.*)$/);return e?e[2]:"".concat(t[0].toUpperCase()).concat(t.slice(1))},e.prototype.hasPermission=function(){var t=this.runtime().getPermissionManager();return!t||t.checkElementPermission4ContextAPI(this.apiInfo.compositeElement,this.appxDomain)},e.prototype.invokeNoPermissionCallbackDirectly=function(t,e,n,r){var i=this,o={error:4,errorMessage:"无权调用 ".concat(t)},a=Bt(n,r,function(){return Ut(i.ctx,i.runtime,e)}),c=a.option,s=a.callback,p=Ft(c),l=function(t){return i.runtime().getKernel().setTimeout(t,0)};p.fail&&l(function(){p.fail(o)}),p.complete&&l(function(){p.complete(o)}),s&&l(function(){s(o)})},e}(qt);var ee=function(t){function e(e,n,r,i,o,a){return t.call(this,e,n,r,i,null,o,null,a)||this}return F(e,t),e.prototype.invoke=function(){return K(this.apiInfo.getter,this)},e}(qt);function ne(t,e,n,r,i,o,a,c,s,p,l){if(t.fn)return new(zt||(zt=function(t){function e(e,n,r,i,o,a,c,s){return t.call(this,e,n,r,i,o,c,a,s)||this}return F(e,t),e.prototype.invoke=function(){return!0===this.extraInfo.inside?K(this.apiInfo.fn,this.getInsideContext(),this.option,this.callback):K(this.apiInfo.fn,this,this.option,this.callback)},e.prototype.initDependency=function(e,n,r,i){var o=r.fnOptionIndex,a=0===o?e:1===o?i:null;t.prototype.initDependency.call(this,a,n,r,null)},e}(qt)),zt)(e,n,a,c,s,p,t,{caller:void 0,directly:r,inside:i,viewId:o,scopedElementId:null==l?void 0:l.scopedElementId});var u=Bt(s,p,function(){return Ut(e,n,c)}),f=u.option,h=u.callback;return function(t){return/^(?:on|off)[A-Z](?:\w+)/.test(t)}(c)?new(Jt||(Jt=function(t){function e(e,n,r,i,o,a,c,s){var p=t.call(this,e,n,r,i,o,a,c,s)||this;return"function"==typeof a.e?p.eventName=K(a.e,p):p.eventName=function(t,e){var n="";if(e&&$t.test(t)){var r=t.match($t);"string"==typeof e.m&&(n=e.m),!n&&r[1]&&r[2]&&(n=r[1].toLowerCase()+r[2])}return n}(i,p.apiInfo),p}return F(e,t),e.prototype.invoke=function(){if(this.finalOption=this.prepareOption(),this.callbackUnion=Ft(this.finalOption),/^on/.test(this.apiName)){if(at(this.apiInfo.m))return"function"==typeof this.callback?this.runtime().getTypedEventManager().addEventListener(this.apiInfo.m,this.callback,!0):{remove:function(){}};if(this.apiInfo.task){if("function"==typeof this.callback){var t=this.apiInfo.task,e=t.id,n=t.getTaskId,r=t.getPayload,i=t.isolate,o="function"==typeof e?K(e,this):e;this.callHookEventTask("start",i,o),this.runtime().getBridge().event.taskManager.addMatcher(this.eventName,o,this.callback,n,r)}}else this.callHookEvent("start"),this.runtime().getBridge().event.addEventListener(this.eventName,1,W(this.processEventResult,this),this.callback)}else if(at(this.apiInfo.m))"function"==typeof this.callback&&this.runtime().getTypedEventManager().removeEventListener(this.apiInfo.m,this.callback);else if(this.apiInfo.task){if("function"==typeof this.callback){var a=this.apiInfo.task;e=a.id,i=a.isolate,o="function"==typeof e?K(e,this):e,this.runtime().getBridge().event.taskManager.removeMatcher(this.eventName,o,this.callback),this.callHookEventTask("end",i,o)}}else this.runtime().getBridge().event.removeEventListener(this.eventName,1,this.callback),this.callHookEvent("end")},e.prototype.processEventResult=function(t){var e,n;n={},mt((e=t).data)||(n=bt(n=e.data)?n:{data:n}),t=n;var r=this.processResult(t);this.dispatchResultCallback(r)},e.prototype.callHookEventTask=function(t,e,n){var r=this.runtime().getBridge().event.taskManager;(2===e?r.hasMatcher(this.eventName,n):1===e&&r.hasMatcher(this.eventName))||It(this.apiInfo[t])&&(this.extraInfo.inside?K(this.apiInfo[t],this.getInsideContext()):K(this.apiInfo[t],this))},e.prototype.callHookEvent=function(t){this.runtime().getBridge().event.hasEventListener(this.eventName,1)||It(this.apiInfo[t])&&(this.extraInfo.inside?K(this.apiInfo[t],this.getInsideContext()):K(this.apiInfo[t],this))},e}(qt)),Jt)(e,n,a,c,f,t,h,{caller:null==l?void 0:l.caller,directly:r,inside:i,viewId:o,scopedElementId:null==l?void 0:l.scopedElementId}):new(Wt||(Wt=function(t){function e(e,n,r,i,o,a,c,s){return t.call(this,e,n,r,i,o,a,c,s)||this}return F(e,t),e.prototype.invoke=function(){var t=this,e=this.invokeMethodAsync();if(!this.shouldNotReturnPromise()){var n=this.apiInfo,r=n.allowAbort,i=n.progress,o=n.returnEvent,a=n.returnProto;if(r||i||o||a){if(r){var c=this.apiInfo.cancelname||"abort";e[c]=function(){It(t.apiInfo.c)&&K(t.apiInfo.c,t),t.resolveImmediate&&t.resolveImmediate({error:9,errorMessage:"".concat(t.apiName,":fail abort")})}}if("object"==typeof o&&o)for(var s=function(n){var r=o[n],i=r.taskId,a=r.getTaskId,c=r.eventName,s=r.getPayload,l=r.feature;if("function"==typeof l&&!K(l,p))return"continue";var u=n[0].toUpperCase()+n.slice(1);e["on".concat(u)]=function(e){var n=t.runtime();if(n){var r=n.getBridge().event;if(r){var o="function"==typeof i?K(i,t):i;r.taskManager.addMatcher(c,o,e,a,s)}}},e["off".concat(u)]=function(e){var n=t.runtime();if(n){var r=n.getBridge().event;if(r){var o="function"==typeof i?K(i,t):i;r.taskManager.removeMatcher(c,o)}}}},p=this,l=0,u=Object.keys(o);l<u.length;l++)s(u[l]);if(i){var f=this.taskId,h=i.key,d=i.getPayload,y=i.getTaskId;e.onProgressUpdate=function(e){var n=t.runtime();if(n){var r=n.getBridge().event;r&&r.taskManager.addMatcher("".concat(h,"StateChange"),f,e,y,d)}}}if(a){var v=K(a,this);B(e,v)}}return e}},e.prototype.callHookDoingAsync=function(t){this.apiInfo.allowAbort&&(this.resolveImmediate=t);var e=this.getFlag("idempotentAPIWhiteList"),n=this.apiInfo.m||this.apiName;if(this.apiInfo.i||Array.isArray(e)&&e.indexOf(n)>-1){var r=this.getFlag("idempotentAPIBlackList");Array.isArray(r)&&r.indexOf(n)>-1?this.doingAsync(t):this.invokeIdempotentAPI(this.apiInfo.i,t)}else this.doingAsync(t)},e.prototype.doingAsync=function(t){It(this.apiInfo.d)?!0===this.extraInfo.inside?K(this.apiInfo.d,this.getInsideContext(),this.finalOption,t):K(this.apiInfo.d,this,this.finalOption,t):It(this.apiInfo.d_with_cache)?this.interceptBridgeCall4Cache(this.apiInfo.cache,t)||(!0===this.extraInfo.inside?K(this.apiInfo.d_with_cache,this.getInsideContext(),this.finalOption,t):K(this.apiInfo.d_with_cache,this,this.finalOption,t)):this.apiInfo.compositeElementAction?this.invokeCompositeElementMethod(this.finalOption,t):this.interceptBridgeCall4Cache(this.apiInfo.cache,t)||(this.shouldForbidAsyncJSAPI(this.apiInfo.m||this.apiName,this.finalOption)?(this.runtime().getEnv().packageAndRunSceneType,t({error:4,errorMessage:"API调用受限"})):Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,t,this.assignedViewId,{caller:this.extraInfo.caller}))},e.prototype.shouldForbidAsyncJSAPI=function(t,e){var n=!1;if("hideOptionMenuItem"===t){var r=this.getFlag("forbidAPIList");"favorite"===e.name&&r&&r.indexOf("hideOptionMenuItem")>-1&&(n=!0)}return n},e.prototype.interceptBridgeCall4Cache=function(t,e){var n=this;if(!t)return!1;var r=this.runtime(),i=r.getBridge(),o=t.key,a=r.getEnv().originalStartupParams;if(!_t(a,o))return!1;var c=i.extraInfo[o];if(c||(c=i.extraInfo[o]={cache:wt(a,o)}),Ot(t)){var s=K(t.get,null,c,this.finalOption);return s?((0,this.runtime().getKernel().setTimeout)(function(){e(s)},0),!0):(Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,function(r){K(t.update,null,c,n.finalOption,r),e(r)},this.assignedViewId,{caller:this.extraInfo.caller}),!0)}return t.set?(K(t.set,null,c,this.finalOption),!1):void 0},e.prototype.invokeMethodAsync=function(){var t=this,e=this.runtime(),n=e.getKernel(),r=n.Promise;return this.callHookValidate()?(this.callbackUnion=Ft(this.option),r.resolve().then(function(){return t.dispatchResultCallback(t.validateResult)})):(this.callbackUnion=Ft(this.option),this.finalOption=this.prepareOption(),new r(function(r,i){var o=1;t.callHookDoingAsync(function(a){var c=t.apiInfo,s=c.progress;if(s){var p=s.key,l=e.getBridge().event;l&&l.taskManager.removeMatcher("".concat(p,"StateChange"),t.taskId)}if(c.allowAbort){if(!t.resolveImmediate)return;t.resolveImmediate=null}var u=t.processResult(a);try{if(o)return void n.setTimeout(function(){try{r(t.dispatchResultCallback(u))}catch(t){i(t)}},2);r(t.dispatchResultCallback(u))}catch(t){i(t)}}),o=0}))},e.prototype.invokeIdempotentAPI=function(t,e){if(this.finalOption&&Object.keys(this.finalOption).length>0)return this.doingAsync(e);var n=this.runtime(),r=n.getBridge(),i=r.extraInfo.idempotenceInfo;i||(i=r.extraInfo.idempotenceInfo={});var o=this.apiInfo.m||this.apiName,a=void 0!==this.optionPageViewId?this.optionPageViewId:void 0!==this.assignedViewId?this.assignedViewId:"default",c=this.appxDomainIsNotEmpty?this.appxDomain.scope:"default",s="".concat(o,"-").concat(a,"-").concat(c),p=i[s];p||(p=i[s]={processing:!1,resolveQueue:[]}),p.processing?p.resolveQueue.push(e):(p.processing=!0,this.doingAsync(function(t){var r;p.processing=!1;try{r=it(rt(t))}catch(t){r={},n.getLogger().reportError(12,t)}e(t),p.resolveQueue&&p.resolveQueue.length>0&&(p.resolveQueue.forEach(function(t){t(it(rt(r)))}),p.resolveQueue=[])}))},e.prototype.abort=function(){this.resolveImmediate&&this.resolveImmediate({error:9,errorMessage:"".concat(this.apiName,":fail abort")})},e}(qt)),Wt)(e,n,a,c,f,t,h,{caller:null==l?void 0:l.caller,directly:r,inside:i,viewId:o,scopedElementId:null==l?void 0:l.scopedElementId})}function re(t,e,n,r,i,o,a,c,s,p){var l=Bt(s,void 0,function(){return Ut(e,n,c)}).option;return new(Qt||(Qt=function(t){function e(e,n,r,i,o,a,c){return t.call(this,e,n,r,i,o,a,null,c)||this}return F(e,t),e.prototype.interceptBridgeCallSync4Cache=function(t){if(t){var e=this.runtime(),n=e.getBridge(),r=t.key,i=e.getEnv().originalStartupParams;if(_t(i,r)){var o=n.extraInfo[r];if(o||(o=n.extraInfo[r]={cache:wt(i,r)}),Ot(t)){var a=K(t.get,null,o,this.finalOption);if(a)return{hit:!0,result:a};var c=Et(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,this.assignedViewId,{caller:this.extraInfo.caller});return K(t.update,null,o,this.finalOption,c),{hit:!1,result:c}}t.set&&K(t.set,null,o,this.finalOption)}}},e.prototype.callHookDoingSync=function(){var t;if(It(this.apiInfo.d))t=!0===this.extraInfo.inside?K(this.apiInfo.d,this.getInsideContext(),this.finalOption,void 0):K(this.apiInfo.d,this,this.finalOption,void 0);else if(It(this.apiInfo.d_with_cache_sync))(t=(e=this.interceptBridgeCallSync4Cache(this.apiInfo.cache))?e.result:!0===this.extraInfo.inside?K(this.apiInfo.d_with_cache_sync,this.getInsideContext(),this.finalOption,void 0):K(this.apiInfo.d_with_cache_sync,this,this.finalOption,void 0))&&(t=this.processResult(t)||t);else{var e;(t=(e=this.interceptBridgeCallSync4Cache(this.apiInfo.cache))?e.result:Et(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,this.assignedViewId,{caller:this.extraInfo.caller}))&&(t=this.processResult(t)||t)}return t||(t={error:999,errorMessage:"System Error: Return ".concat(t)}),t},e.prototype.invoke=function(){return this.callHookValidate()?this.validateResult:(this.finalOption=this.prepareOption(),It(this.apiInfo.responseProxy)&&!0!==this.extraInfo.inside&&this.getFlag("enableBridgeResponseProxy")&&(t=K(this.apiInfo.responseProxy,this,this.finalOption,W(this.callHookDoingSync,this),W(this.callHookDoingAsync4ResponseProxy,this))),t||(t=this.callHookDoingSync()),t);var t},e.prototype.callHookDoingAsync4ResponseProxy=function(t){var e=this,n=function(n){var r=e.processResult(n);t(r)};this.interceptBridgeCall4CacheAsync(this.apiInfo.cache,n)||Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,n,this.assignedViewId,{caller:this.extraInfo.caller})},e.prototype.interceptBridgeCall4CacheAsync=function(t,e){var n=this;if(!t)return!1;var r=this.runtime(),i=r.getBridge(),o=t.key,a=r.getEnv().originalStartupParams;if(!_t(a,o))return!1;var c=i.extraInfo[o];if(c||(c=i.extraInfo[o]={cache:wt(a,o)}),Ot(t)){var s=K(t.get,null,c,this.finalOption);return s?((0,this.runtime().getKernel().setTimeout)(function(){e(s)},0),!0):(Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,function(r){K(t.update,null,c,n.finalOption,r),e(r)},this.assignedViewId,{caller:this.extraInfo.caller}),!0)}return t.set?(K(t.set,null,c,this.finalOption),!1):void 0},e}(qt)),Qt)(e,n,a,c,l,t,{caller:null==p?void 0:p.caller,directly:r,inside:i,viewId:o})}function ie(t){var e=function(){};return e.prototype=t,ae(new e),t}function oe(t){return t.__MAGIC_SLOW_PROPERTY=1,delete t.__MAGIC_SLOW_PROPERTY,t}function ae(t){if(t===ae)throw ae;return t}var ce={SDKVersion:!0,call:!0,callSync:!0,canIUse:!0,emit:!0,off:!0,on:!0,renderTarget:!0};function se(t,e){if(!e.length)return!1;for(var n=t,r=0,i=e;r<i.length;r++){var o=i[r];if(!(n=n&&n[o]))return!1}return!0}function pe(t,e){if(!e.length)return!1;for(var n=t,r=0,i=e;r<i.length;r++){var o=i[r];if(null==(n=n&&n[o]))return!1}return!0}var le=function(){function t(t,e,n,r,i){this.collection=new fe,this.collectedCanIUseKeys=ot(),this.hasRegisteredCanIUseReportHandler=!1,this.ctx=n,this.getRuntime=r,this.appxDomain=e,this.unrefRuntime=i,this.callSync4PublicNamed=W(this.callSync4PublicNamed,this),this.callSync4PublicNamedInside=W(this.callSync4PublicNamedInside,this),this.call4PublicNamed=W(this.call4PublicNamed,this),this.call4PublicNamedInside=W(this.call4PublicNamedInside,this),this.call=W(this.call,this),this.callSync=W(this.callSync,this),this.canIUse=W(this.canIUse,this),this.call4LinkedContext=W(this.call4LinkedContext,this),this.call4ProtoContext=W(this.call4ProtoContext,this),this.call4PublicCall=W(this.call4PublicCall,this),this.callSync4PublicCall=W(this.callSync4PublicCall,this),ft(e)?this.publicInstance={canIUse:this.canIUse}:this.publicInstance={call:this.call4PublicCall,callSync:this.callSync4PublicCall,canIUse:this.canIUse,emit:t.emit,off:t.off,on:t.on}}return t.prototype.callSync4PublicNamed=function(t,e,n){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,1,t,e,n)},t.prototype.callSync4PublicNamedInside=function(t,e,n){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,5,t,e,n)},t.prototype.callSync4PublicCall=function(t,e,n){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,2,t,e,n)},t.prototype.call4PublicCall=function(t,e,n,r){return Ct(this.collection,this.appxDomain,this.ctx,this.getRuntime,2,t,e,n,r)},t.prototype.call4PublicNamed=function(t,e,n,r){return Ct(this.collection,this.appxDomain,this.ctx,this.getRuntime,1,t,e,n,r)},t.prototype.call4PublicNamedInside=function(t,e,n,r){return Ct(this.collection,this.appxDomain,this.ctx,this.getRuntime,5,t,e,n,r)},t.prototype.removeAPIs=function(t,e){this.collection.removeAPIs(t);for(var n=e?this.publicInstance[e]:this.publicInstance,r=0,i=t;r<i.length;r++){var o=i[r];n&&n[o]&&(n[o]=void 0)}},t.prototype.replaceAPI=function(t,e){this.collection.replaceAPI(t,e)},t.prototype.replacePublicCallProxyAPI=function(t,e){this.collection.replacePublicCallProxyAPI(t,e)},t.prototype.replaceLinkedContextAPI2Proto=function(t,e){this.replaceAPI(t,e),this.publicInstance[t]=W(this.call4ProtoContext,null,t,!1)},t.prototype.getCollection=function(){return this.collection},t.prototype.callSync=function(t,e,n){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,0,t,e,n)},t.prototype.canIUse=function(t){return"string"!=typeof t&&(t=String(t)),this.registerCanIUseReportHandler(),this.collectedCanIUseKeys.add(t),function(t,e,n,r,i,o){if(!r.getFlag("disableCanIUseByMetaInBridge")){var a=ct(o);if(void 0!==a)return a}var c=String(o).split(".");if(1===c.length&&ce[c[0]])return!0;var s=0,p=i();if(p){var l=p.getNav().getTopInstance();l&&(s=l.getEngineType())}return!!se(t.getCanIUseMap(r,i,s),c)||!!t.evaluateCanIUse(r,i,e,c)||!!(r.getFlag("enableCanIUseFix4PublicInstanceCheck")?pe:se)(n,c)}(this.collection,this.appxDomain,this.publicInstance,this.ctx,this.getRuntime,t)},t.prototype.call=function(t,e,n,r){return Ct(this.collection,this.appxDomain,this.ctx,this.getRuntime,0,t,e,n,r)},t.prototype.call4LinkedContext=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(t,e,n,r,i,o,a){var c="".concat(i),s=t.getAPIInfoByName(c)||St;if(!At[c]){xt(s,i);var p=function(t,e,n,r,i,o,a,c,s){return new(Zt||(Zt=function(t){function e(e,n,r,i,o,a,c){var s=t.call(this,e,n,r,i,o,a,void 0,c)||this;return s.cache4ApiInfo=Object.create(null),s.callLinkedCollection=W(s.callLinkedCollection,s),s.callAfterCompositeElementReady=W(s.callAfterCompositeElementReady,s),s.callSyncLinkedCollection=W(s.callSyncLinkedCollection,s),s}return F(e,t),e.prototype.invoke=function(){return G(this.apiInfo.create,this,this.option)},e.prototype.callScopedBridge=function(t,e,n,r){var i=this.appxDomain;i&&!lt(i)&&(e=H(H({},e),{__appxDomain:i.scope}));var o=this.runtime();if(o){var a=o.getBridge();a&&a.callBridge(t,e,n)}},e.prototype.callLinkedCollection=function(t,e,n){return ne(this.getApiInfoFromLinkedCollection(t),this.ctx,this.runtime,!1,!1,this.assignedViewId,this.appxDomain,t,e,n).invoke()},e.prototype.callSyncLinkedCollection=function(t,e){return re(this.getApiInfoFromLinkedCollection(t),this.ctx,this.runtime,!1,!1,this.assignedViewId,this.appxDomain,t,e).invoke()},e.prototype.callAfterCompositeElementReady=function(t,e){var n=this,r=this.getPageInstance();r&&r.whenCompositeElementReady(e.element,function(){n.callLinkedCollection(t,e)})},e.prototype.initDependency=function(e,n,r,i){var o=r.createOptionIndex,a=!1===o?null:e[o];t.prototype.initDependency.call(this,a,n,r,null)},e.prototype.getApiInfoFromLinkedCollection=function(t){if(!this.cache4ApiInfo[t]){var e,n=this.apiInfo.linked;e=n&&n[t]||Xt,this.cache4ApiInfo[t]=e}return this.cache4ApiInfo[t]},e}(qt)),Zt)(e,n,o,a,c,t,{caller:void 0,directly:!0,shouldNotRewriteIdOrClass:s,viewId:null})}(s,n,r,0,0,e,c,o,a);return p.invoke()}}(this.collection,this.appxDomain,this.ctx,this.getRuntime,t,n,e)},t.prototype.call4ProtoContext=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=this.collection.getAPIInfoByName(t),o=xt(i,t);return jt(i,t,this.appxDomain,this.ctx,this.getRuntime,n,e,{caller:o})},t.prototype.destroy=function(){this.publicInstance=null,this.collection=null,this.unrefRuntime&&this.unrefRuntime()},t.prototype.registerCanIUseReportHandler=function(){var t=this;if(!this.hasRegisteredCanIUseReportHandler){var e=this.getRuntime();this.ctx.getFlag("enableCanIUseReport")&&e.getEventManager().addEventListener("pause",function(){var n,r,i,o=[];t.collectedCanIUseKeys.forEach(function(t){o.push(t)}),o.length>0&&t.call("remoteLog",{actionId:"event",bizType:"TAC",param4:(n={key:o.join("|"),appxDomain:ut(t.appxDomain)||ft(t.appxDomain)?t.appxDomain.origin:e.getEnv().startupParams.appId},r=!0,n?"string"==typeof n?n:(i=n,i&&"object"==typeof i?Object.keys(i):[]).filter(function(t){return void 0!==n[t]||!r}).map(function(t){var e="".concat(t,"=");return e+=function(t){return null!==t&&"object"==typeof t?"function"==typeof t.toString?String(t):"":String(t)}(n[t]).replace(/,/g,";").replace(/\^/g,"@").replace(/\=/g,"~"),e}).join("^"):""),seedId:"miniapi.canIUse",type:"behavior"}),t.collectedCanIUseKeys.clear()}),this.hasRegisteredCanIUseReportHandler=!0}},t}();var ue=function(){function t(t,e,n){var r=this;this.extraInfo={},this.scope4Domain=Object.create(null),this.scopeList4Plugin=[],this.dynamicAPIs={},this.ctx=t,this.getRuntime=e,this.unrefRuntime=n,this.callBridge=function(t,e,n,i,o){return r.callBridgeImpl(t,e,n,i,o)},this.callBridgeSync=function(t,e,n,i){return r.callBridgeSyncImpl(t,e,n,i)},this.on=W(this.on,this),this.off=W(this.off,this),this.emit=W(this.emit,this),this.defaultScope=new le(this,pt,this.ctx,this.getRuntime)}return Object.defineProperty(t.prototype,"event",{get:function(){return this.getEventManager()},enumerable:!1,configurable:!0}),t.prototype.off=function(t,e){return this.getEventManager().removeEventListener(t,1,e)},t.prototype.on=function(t,e,n){var r=this.extraInfo;if(!r.reportMyOnComposite){var i=!0;try{var o=this.getRuntime().getBehaviorManager().get("reportMyOnComposite");o.report&&(t.startsWith("nbcomponent.")?o.report("myoncomposite"):i=!1)}catch(t){}i&&(r.reportMyOnComposite=!0)}return this.getEventManager().addEventListener(t,1,e,n)},t.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this.getEventManager().invokeTypedEvent(t,1,e)},t.prototype.callBridgeImpl=function(t,e,n,r,i){return Pt(this.ctx,this.getRuntime,t,e,n,void 0,i)},t.prototype.callBridgeSyncImpl=function(t,e,n,r){return Et(this.ctx,this.getRuntime,t,e,n,r)},t.prototype.dispose=function(){this.unrefRuntime&&this.unrefRuntime()},t.prototype.callInternalAPI=function(t,e,n,r,i){return function(t,e,n,r,i,o,a){if(e().getEnv()){var c=ht().config;c&&!0===c.noUseInternalAPI?Pt(t,e,n,r,i,o,a):Pt(t,e,"internalAPI",{method:n,param:r,viewId:r&&r.viewId},i,o,a)}}(this.ctx,this.getRuntime,t,e,n,r,i)},t.prototype.callInternalAPISync=function(t,e,n,r){return function(t,e,n,r,i,o){if(e().getEnv()){var a=ht().config;return a&&!0===a.noUseInternalAPI?Et(t,e,n,r,i,o):Et(t,e,"internalAPI",{method:n,param:r,viewId:r&&r.viewId},void 0,o)}}(this.ctx,this.getRuntime,t,e,n,r)},t.prototype.getPluginScopes=function(){return this.scopeList4Plugin},t.prototype.createScope=function(t){if(lt(t))return this.defaultScope;var e=this.scope4Domain,n=ut(t),r=n||ft(t)?t.origin:t.scope;if(!e[r]){var i=e[r]=new le(this,t,this.ctx,this.getRuntime);n&&this.scopeList4Plugin.push(i)}return e[r]},t.prototype.getScope=function(t){return lt(t)?this.defaultScope:this.scope4Domain[ut(t)||ft(t)?t.origin:t.scope]},t.prototype.getScopeByProviderInfo=function(t){if(function(t){return t&&1===t.providerType}(t)||function(t){return t&&2===t.providerType}(t))return this.scope4Domain[t.providerId];var e=this.getRuntime();return e?e.getKernel().isUsingExtensionMode?this.scope4Domain.app:this.defaultScope:void 0},t.prototype.setDynamicDistributedAPIs=function(t){this.dynamicAPIs=H(H({},this.dynamicAPIs),t)},t.prototype.getDynamicDistributedAPIs=function(){return this.dynamicAPIs},t.prototype.getEventManager=function(){var t,e;return this.eventInstance||(this.eventInstance=(t=this.getRuntime,e=function(){function e(){var t=this;this.eventMap=Object.create(null),this.eventInvokeMap=Object.create(null),this.taskManager=new gt(function(e,n,r){t.addEventListener(e,r?0:1,n)})}return e.prototype.hasEventListener=function(t,e){var n=this.getCustomTypeContext(t);return e?!(!n[e]||!n[e].length):!!(n[0].length||n[1].length||n[2].length)},e.prototype.addEventListener=function(t,e,n,r){var i=this;if(void 0===r&&(r=n),this.hasCustomEventMatched(t,e,r)||this.eventMap[t][e].push({cache:r,invoke:n}),this.registerListener(t),1===e)return{remove:function(){i.removeEventListener(t,e,r)}}},e.prototype.removeEventListener=function(t,e,n){e?(this.removeEventListener4Type(t,e,n),this.hasEventListener(t)||this.unregisterListener(t)):(this.eventMap[t]=null,this.unregisterListener(t))},e.prototype.removeEventListener4Type=function(t,e,n){var r=this.getCustomTypeContext(t);n||(r[e]=[]),r[e].length&&(r[e]=r[e].filter(function(t){return t.cache!==n}))},e.prototype.invokeTypedEvent=function(t,e,n){if(this.hasEventListener(t)){var r=this.getCustomTypeContext(t)[e];if(r&&r.length)for(var i=0,o=r;i<o.length;i++)o[i].invoke.apply(null,n)}},e.prototype.getCustomTypeContext=function(t){return this.eventMap[t]||(this.eventMap[t]=[[],[],[]]),this.eventMap[t]},e.prototype.hasCustomEventMatched=function(t,e,n){return this.getCustomTypeContext(t)[e].some(function(t){return t.cache===n})},e.prototype.registerListener=function(e){if(!this.eventInvokeMap[e]){var n=this.eventInvokeMap[e]=W(this.invokeEventImpl,this,e);t().getKernel().__EVENT_ADD_LISTENER__(e,n)}},e.prototype.unregisterListener=function(e){var n=this.eventInvokeMap[e];n&&(t().getKernel().__EVENT_REMOVE_LISTENER__(e,n),this.eventInvokeMap[e]=null)},e.prototype.invokeEventImpl=function(t,e){if(this.hasEventListener(t)){for(var n=this.getCustomTypeContext(t),r=0,i=n[0];r<i.length;r++)K(i[r].invoke,null,e);var o=n[1].length,a=n[2].length;(o||a)&&function(t,e){var n;if(!(!t||!t.data)){var r=t.data,i=(delete(n=H({},r)).appInstanceId,delete n.instanceId,delete n.pageName,n);t.data=i,e(t),t.data=r}else e(t)}(e,function(t){for(var e=0,r=n[1];e<r.length;e++)K(r[e].invoke,null,t);for(var i=0,o=n[2];i<o.length;i++)K(o[i].invoke,null,t.data)})}},e}(),new e)),this.eventInstance},t}(),fe=function(){function t(){this.apiMap=Object.create(null),this.publicProxyMap=Object.create(null)}return t.prototype.setCanIUses=function(t){this.typedCanIUseMapInfo=t},t.prototype.removeAPIs=function(t){for(var e=this.apiMap,n=0,r=t;n<r.length;n++)e[r[n]]=void 0},t.prototype.setAPIs=function(t){var e=this.apiMap;oe(e);for(var n=0,r=t;n<r.length;n++){for(var i=r[n],o=i.values,a=0,c=i.keys;a<c.length;a++)e[l=c[a]]=o[l];if(i.namespace)for(var s=0,p=i.keys;s<p.length;s++){var l;e[l=p[s]].avaliableNamespace=i.namespace}}return ie(e),e},t.prototype.replaceAPI=function(t,e){var n=this.apiMap;n[t]&&e&&(n[t]=e)},t.prototype.setPublicCallProxyAPIs=function(t){var e=this.publicProxyMap;oe(e);for(var n=0,r=t;n<r.length;n++)for(var i=r[n],o=i.values,a=0,c=i.keys;a<c.length;a++){var s=c[a];e[s]=o[s]}return ie(e),this.publicProxyMap=e,e},t.prototype.getPublicCallProxyAPIInfoByName=function(t){return this.publicProxyMap[t]},t.prototype.hasPublicCallProxyAPI=function(t){return!!this.publicProxyMap[t]},t.prototype.replacePublicCallProxyAPI=function(t,e){var n=this.publicProxyMap;n[t]&&e&&(n[t]=e)},t.prototype.has=function(t){return!!this.apiMap[t]},t.prototype.evaluateCanIUse=function(t,e,n,r){if(e()){var i=!n||lt(n)?"empty":"".concat(n.type,"_").concat(n.scope);this.typedCanIUseMap||(this.typedCanIUseMap=he(this.typedCanIUseMapInfo,t,e));var o=this.typedCanIUseMap.evaluate,a=o[i];o[i]||(a=o[i]={});var c=this.typedCanIUseMapInfo.evaluate;if(c)for(var s=0,p=c;s<p.length;s++){var l=(0,p[s])(t,e,n,r,a);if(void 0!==l)return l}}return 0},t.prototype.getCanIUseMap=function(t,e,n){if(e()){if(this.typedCanIUseMap||(this.typedCanIUseMap=he(this.typedCanIUseMapInfo,t,e)),1!==n&&2!==n){if(!this.typedCanIUseMap)return{};n=this.typedCanIUseMap.defaultType}return this.typedCanIUseMap?this.typedCanIUseMap[n]:{}}return{}},t.prototype.getAPIMap=function(){return this.apiMap},t.prototype.getAPIInfoByName=function(t){return this.apiMap[t]},t}();function he(t,e,n){for(var r,i=((r={defaultType:t.defaultType,evaluate:{}})[1]=Object.create(null),r[2]=Object.create(null),r),o=0,a=[1,2];o<a.length;o++){var c=a[o],s=t[c];if(s){for(var p=i[c],l=0,u=s(e,n);l<u.length;l++)p=de(p,u[l]);i[c]=p}}return i}function de(t,e){if(!t)return e;if(!e)return t;var n=1===t?{}:H({},t);if("object"==typeof e)for(var r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];n[o]=de(n[o],e[o])}return n}var ye=function(){function t(t){this.callbackMap=Object.create(null),this.implMap=Object.create(null),this.appInstanceId=t}return t.prototype.dispose=function(){var t=this;Object.keys(this.implMap).forEach(function(e){t.removeEventListeners(e)}),this.implMap=null,this.callbackMap=null},t.prototype.addEventListener=function(t,e){if("function"!=typeof e)throw new Error("callback is not function");if(!this.implMap[t]){var n=this.invokeEvent.bind(this,t);this.addEventImpl(t,n),this.implMap[t]=n}this.callbackMap[t]=this.callbackMap[t]||[];var r=this.callbackMap[t];r.indexOf(e)<0&&r.push(e)},t.prototype.removeEventListener=function(t,e){if("function"!=typeof e)throw new Error("callback is not function");this.callbackMap[t]=this.callbackMap[t]||[],this.callbackMap[t]=this.callbackMap[t].filter(function(t){return t!==e}),0===this.callbackMap[t].length&&(this.removeEventImpl(t,this.implMap[t]),delete this.implMap[t])},t.prototype.removeEventListeners=function(t){this.callbackMap[t]=[],this.removeEventImpl(t,this.implMap[t]),delete this.implMap[t]},t.prototype.invokeEvent=function(t,e){for(var n=0,r=this.callbackMap[t]||[];n<r.length;n++)(0,r[n])(e)},t.prototype.addEventImpl=function(t,e){document.addEventListener(t,e)},t.prototype.removeEventImpl=function(t,e){document.removeEventListener(t,e)},t}(),ve=function(){function t(){this.flag=0}return t.prototype.invokeInternalEvent=function(t,e){},t.prototype.addEventListener=function(t,e,n){var r=this;if(n)return{remove:function(){r.removeEventListener(t,e)}}},t.prototype.removeEventListener=function(t,e){},t}(),ge=function(){function t(){}return t.prototype.isFirstPage=function(){return!0},t.prototype.getTopViewId=function(){},t.prototype.getTopInstance=function(){},t}(),me=function(){},be=function(){function t(t,e){this.id="1",this.type=0,this._kernel=t,this._eventManager=e,this._nav=new ge,this._page={getInstanceById:function(){}},this._switch={get:me}}return t.prototype.getLogger=function(){},t.prototype.getMeta=function(){return{getAppBehavior:me,getTabBar:me,isTabPage:me,removeTabBarItem:me,getAppExt:me}},t.prototype.getBehaviorManager=function(){return{report:me}},t.prototype.getApp=function(){return{appInstanceId:this.getKernel().appInstanceId}},t.prototype.getSubPackageManager=function(){},t.prototype.getTypedEventManager=function(){return this._typedEventManager||(this._typedEventManager=new ve),this._typedEventManager},t.prototype.getRegistry=function(){},t.prototype.setRegistry=function(){},t.prototype.getMiniExtensionManager=function(){},t.prototype.getSwitchManager=function(){return this._switch},t.prototype.getPageManager=function(){return this._page},t.prototype.getNav=function(){return this._nav},t.prototype.getEnv=function(){return this._env},t.prototype.setEnv=function(t){this._env=t},t.prototype.setBridge=function(t){this._bridge=t},t.prototype.getBridge=function(){return this._bridge},t.prototype.getKernel=function(){return this._kernel},t.prototype.getEventManager=function(){return this._eventManager},t}(),Ie=function(){};function Oe(t,e,n,r,i){var o="smallfish",a=new ye(o),c={appInstanceId:o,userAgent:"",isDisableAppContext:!1,isUsingExtensionMode:!1,__BRIDGE_CALL__:function(t,e,n,r){"undefined"!=typeof AlipayJSBridge?AlipayJSBridge.call(e,n,r):document.addEventListener("AlipayJSBridgeReady",function(){AlipayJSBridge.call(e,n,r)})},__BRIDGE_CALL_SYNC__:function(t,e,n){return{error:10,errorMessage:"callSync is not avaliable in H5WebView"}},__EVENT_ADD_LISTENER__:a.addEventListener.bind(a),__EVENT_REMOVE_LISTENER__:a.removeEventListener.bind(a),__FATAL_ERROR__:Ie,__GET_PLATFORM_ELEMENTS__:function(){return[]},__GET_STARTUP_PARAMS__:function(){return"undefined"!=typeof AlipayJSBridge?AlipayJSBridge.startupParams:{}},__EVAL__:Ie,__IMPORT_SCRIPT__:Ie,__PERFORMANCE__:Ie,__REPORT_ERROR__:Ie,__SET_PAGE_CONTEXT_GETTER__:Ie,__SET_CURRENT_PAGE_ID_GETTER__:Ie,__SET_RUNTIME_ERROR_REPORTER__:Ie,Promise:t,setTimeout:"undefined"==typeof window?e:e.bind(window),clearTimeout:"undefined"==typeof window?n:n.bind(window),setInterval:"undefined"==typeof window?r:r.bind(window),clearInterval:"undefined"==typeof window?i:i.bind(window),getFrameworkContextSymbol:Ie,reportHostError:Ie},s=new be(c,a);return s.setEnv(function(t){var e,n="undefined"!=typeof navigator?navigator.userAgent:"",r=function(t){if(dt)return dt;var e=t.match(/Griver\/(\d+\.\d+\.\d+)/),n=t.match(/AliApp\((\S*)/),r=t.match(/AriverApp\((\S*)/),i=t.match(/GriverApp\((\S*)/),o=!!n&&2===n.length&&n[1].split("/")||!!r&&2===r.length&&r[1].split("/")||!!i&&2===i.length&&i[1].split("/"),a="unknown",c="0.0.0",s=0,p="",l=function(t){if(!yt){var e=t.match(/UCBS\/((\d+)\.(\d+))/);if(e){var n=e[1]||"",r=parseInt(e[2],10),i=parseInt(e[3],10);yt=[n,r,i]}else yt=["",0,0]}return yt}(t),u=!(!l||!l[0]),f=t.indexOf("AlipayIDE")>-1,h=t.match(/Language\/(\S+)/),d=t.indexOf("Android")>-1,y=!d&&!!t.match(/iPhone|iPad/i),v=y?"ios":d?"android":"unknown",g=function(t,e){if(!vt){if(e){var n=t.match(/OS (\d+)_(\d+)(?:_(\d+))?/);if(n){var r=parseInt(n[1],10),i=parseInt(n[2],10),o=parseInt(n[3]||"0",10);vt=[r,i,o]}}vt=vt||[0,0,0]}return vt}(t,y);if(o?(a=o[0],c=o[1].match(/(\d+\.\d+\.\d+)/)[0],p=o[1].match(/([\w.]+)/)[0]):e&&(a="Griver",p=c=e[0]),"string"==typeof c){var m=function(t){for(var e=[],n=0,r=t.split(".");n<r.length;n++){var i=r[n];e.push(parseInt(i,10))}return e}(c);s=(m[0]?1e6*m[0]:0)+(m[1]?1e3*m[1]:0)+(m[2]?1*m[2]:0)}return dt={alipayVersionSequence:s,clientName:a.toLowerCase(),clientVersion:c,clientVersionSequence:s,iosMajorVersion:g[0],iosMinorVersion:g[1],iosPatchVersion:g[2],isAndroid:d,isIDE:f,isIOS:y,isUCWebView:u,language:h?h[1]:"",originalClientName:a,originalClientVersion:p,platform:v,ucMajorVersion:l[1],ucMinorVersion:l[2],ucVersion:l[0]}}(n),i=r.alipayVersionSequence,o=r.clientName,a=r.clientVersion,c=r.clientVersionSequence,s=r.isAndroid,p=r.isIDE,l=r.isIOS,u=r.isUCWebView,f=r.language,h=r.originalClientName,d=r.platform,y=r.ucMajorVersion,v=r.ucMinorVersion,g=r.ucVersion;return{alipayVersionSequence:i,appxVersion:"2.0.0",clientName:o,clientVersion:a,clientVersionSequence:c,isAndroid:s,isIDE:p,isIOS:l,isUCWebView:u,language:f,iosMajorVersion:r.iosMajorVersion,iosMinorVersion:r.iosMinorVersion,iosPatchVersion:r.iosPatchVersion,isPortalWorkerScene:void 0,get originalStartupParams(){return e||(e=t.__GET_STARTUP_PARAMS__()),e},originalClientName:h,packageAndRunSceneType:17,platform:d,startupParams:{get appId(){return e||(e=t.__GET_STARTUP_PARAMS__()),e&&e.appId||""}},ucMajorVersion:y,ucMinorVersion:v,ucVersion:g,userAgent:n}}(c)),s}var Pe=function(){function t(){var t,e=this;this.flags=((t={}).idempotentAPIWhiteList=["getStartupParams","getUserInfo","getRunScene","getSystemInfo","getClientInfo"],t.idempotentAPIBlackList=void 0,t.forbidAPIList=void 0,t.filterAppxDomainForSecurity=void 0,t.invokeBridgeWithCaller=void 0,t.disablePublicCallErrorCodeNormalize=void 0,t.ignoreCallbackWhenInvokeMyCall=void 0,t.enableBridgeResponseProxy=1,t.disableCanIUseByMetaInBridge=void 0,t.authCodeMapping4Aplus=void 0,t.uep=void 0,t.fixTempFilePath=void 0,t.selectorQueryContextClearActions=void 0,t.validSignContractURL=void 0,t.enableOpenEmbeddedMiniProgramScopedBridgeCall=void 0,t.openEmbeddedMiniProgramDefaultBridgeCallExtensionsWhiteList=void 0,t.disableGetWidthFromUA=void 0,t.enableGetterFromState4Audio=void 0,t.compositeElement=void 0,t.cameraContextPermissionCheck=void 0,t.navigateToMiniProgramQuery=1,t.enableExtConfigFromStartupParms=void 0,t.enableNavigateToMiniProgramScopedBridgeCall=void 0,t.disableLoadFontFaceLoadCanvasFont=void 0,t.disableSubscribeMsgJSAPI=void 0,t.fixNavigateBackMiniProgram=void 0,t.iosVersion4GetSystemInfoProxy=void 0,t.disableSystemInfoTaskCache282=void 0,t.enableAppXStorageCache=void 0,t),this.getFlags=function(){return e.flags}}return t.prototype.getFlag=function(t){return this.flags[t]},t.prototype.getCurrentCallStep=function(){},t}();function Ee(t,e,n,r){var i;Pt=_e,Et=we;var o=function(t,e,n){var r=function(t,e,n){return new ue(t,e,n)}(t,e,n);return r}(new Pe,function(){return r}),a=o.defaultScope;return function(t,e,n,r){var i=r.getCollection();i.setCanIUses(n),i.setPublicCallProxyAPIs(e),function(t,e){var n=e.getCollection();n.setAPIs(t);var r=n.getAPIMap(),i=e.callSync4PublicNamed,o=e.callSync4PublicNamedInside,a=e.call4PublicNamed,c=e.call4PublicNamedInside,s=e.call4LinkedContext,p=e.call4ProtoContext,l=e.publicInstance;oe(l);for(var u=0,f=t;u<f.length;u++){var h=f[u],d=h.namespace,y=l;if(d&&(y[d]||(y[d]={}),oe(y=y[d])),h.linked)for(var v=0,g=h.keys;v<g.length;v++)r[E=g[v]]&&(y[E]=W(s,null,E,!1));else if(h.proto)for(var m=0,b=h.keys;m<b.length;m++)r[E=b[m]]&&(y[E]=W(p,null,E,!1));else for(var I=h.sync?h.inside?o:i:h.inside?c:a,O=0,P=h.keys;O<P.length;O++){var E;if(r[E=P[O]]){var _=r[E].feature;if("function"==typeof _&&!_())continue;y[E]=W(I,null,E)}}d&&ie(y)}ie(l)}(t,r),r.publicInstance}(t,e,((i={defaultType:1,evaluate:[]})[1]=function(){return n},i[2]=function(){return[]},i),a),r.setBridge(o),o}function _e(t,e,n,r,i,o){e().getKernel().__BRIDGE_CALL__(o,n,r,i)}function we(t,e,n,r,i){return e().getKernel().__BRIDGE_CALL_SYNC__(i,n,r)}var Ae=Object.prototype.hasOwnProperty,Se=Object.assign||function(t,e){for(var n,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i<arguments.length;i++)for(var o in n=Object(arguments[i]))Ae.call(n,o)&&(r[o]=n[o]);return r},ke=function(){return ke=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ke.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Ce=Function.prototype.apply.call.bind(Function.prototype.apply);Function.prototype.bind;var je,xe,Te,Me=JSON.stringify,De=JSON.parse,Ne=encodeURIComponent;function Le(t,e){return e.encode?e.strict?Ne(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):Ne(t):t}je||function(){var t="undefined"!=typeof WeakMap;je=t?WeakMap:function(){var t=Object.prototype.hasOwnProperty,e=function(t,e,n){Object.defineProperty?Object.defineProperty(t,e,{configurable:!0,value:n,writable:!0}):t[e]=n};function n(t){return Object(t)===t}function r(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(e(this,"_id","_WeakMap_"+o()+"."+o()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function i(e,r){if(!n(e)||!t.call(e,"_id"))throw new TypeError(r+" method called on incompatible receiver "+typeof e)}function o(){return Math.random().toString().substring(2)}return e(r.prototype,"delete",function(t){if(i(this,"delete"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t||(delete t[this._id],0))}),e(r.prototype,"get",function(t){if(i(this,"get"),n(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}}),e(r.prototype,"has",function(t){if(i(this,"has"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)}),e(r.prototype,"set",function(t,r){if(i(this,"set"),!n(t))throw new TypeError("Invalid value used as weak map key");var o=t[this._id];return o&&o[0]===t?(o[1]=r,this):(e(t,this._id,[t,r]),this)}),e(r,"_polyfill",!0),r}()}(),new je,"undefined"!=typeof SECURITY_FUNCTION_CALL&&(SECURITY_FUNCTION_CALL=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return"function"==typeof t?(Ce||(Ce=Function.prototype.apply.call.bind(Function.prototype.apply)),Ce(t,e,n)):t.call.apply(t,function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}([e],n,!1))}),"undefined"!=typeof SECURITY_FUNCTION_APPLY&&(SECURITY_FUNCTION_APPLY=function(t,e,n){return"function"==typeof t?(Ce||(Ce=Function.prototype.apply.call.bind(Function.prototype.apply)),Ce(t,e,n)):t.apply(e,n)}),function(t){t[t.Info=0]="Info",t[t.Warn=1]="Warn",t[t.Error=2]="Error"}(xe||(xe={})),function(t){t.AppxLifecycle="AppxLifecycle"}(Te||(Te={}));var Re="undefined"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE||function(t){return!1};function Be(t){return t&&"openCapability"===t.type}"undefined"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,"undefined"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT;var Ue="undefined"!=typeof nativeLog&&"undefined"!=typeof mqEnvironment;function Fe(t){return t&&"object"==typeof t?Object.keys(t):[]}function He(t,e){var n,r;return"%s"===t?e="object"==typeof(r=e)?Me(r):r+"":"%c"===t?e=function(t){var e=""+t;0===e.indexOf("#")&&(e=e.substr(1)),3===e.length&&(e=e.replace(/(.)/g,"$1$1"));var n,r=parseInt(e,16);return isNaN(r)&&(n="".concat(t," is invalid hex color."),Ue?nativeLog(n,Date.now()):console.error(n,Date.now())),r}(e):"%b"===t?("string"==typeof(n=e)&&(n=n.replace(/^data:(\/|\w|\-|\.)+;base64,/i,"")),e=n):"%d"===t?e=parseInt(e,10):"%f"===t&&(e=parseFloat(e)),e}function Ve(t,e,n){var r;return n=n||{},Fe(e).forEach(function(i){var o,a,c,s=e[i];a=((o=s)||"").match(/(\w+)(%\w)$/i),c={k:o},a&&(c.k=a[1],c.t=a[2]),void 0!==(s=(r=c).k)&&(i in t||i in n)&&void 0===t[s]&&(t[s]=He(r.t,void 0===n[i]?t[i]:n[i]),s!==i&&delete t[i])}),t}function Ye(t){return"[object ArrayBuffer]"===(e=t,Object.prototype.toString.call(e))&&void 0!==t.byteLength;var e}function Ke(t){return e=t,r=function(t){switch(t.arrayFormat){case"index":return function(e,n,r){return null===n?[Le(e,t),"[",r,"]"].join(""):[Le(e,t),"[",Le(r,t),"]=",Le(n,t)].join("")};case"bracket":return function(e,n){return null===n?Le(e,t):[Le(e,t),"[]=",Le(n,t)].join("")};default:return function(e,n){return null===n?Le(e,t):[Le(e,t),"=",Le(n,t)].join("")}}}(n=Se({encode:!0,strict:!0,arrayFormat:"none"},n)),e?Object.keys(e).sort().map(function(t){var i=e[t];if(void 0===i)return"";if(null===i)return Le(t,n);if(Array.isArray(i)){var o=[];return i.slice().forEach(function(e){void 0!==e&&o.push(r(t,e,o.length))}),o.join("&")}return Le(t,n)+"="+Le(i,n)}).filter(function(t){return t.length>0}).join("&"):"";var e,n,r}function Ge(t){return/^application\/x-www-form-urlencoded\b/i.test(t)}var We={allowAbort:!0,returnEvent:{headersReceived:{feature:function(){return Re("a_request_headersReceived_2_8_7")},eventName:"requestTaskHeadersReceived",getPayload:function(t){return{header:t.data.headers}},getTaskId:function(t){return[t.data.requestTaskId]},taskId:function(){return"".concat(this.taskId)}}},t:!0,b:function(t){Ve(t,{header:"headers"}),t.requestTaskId=this.taskId,t.method=(t.method||"GET").toUpperCase(),t.enableSubErrorCode=!0;var e=this.runtime();if(void 0!==t.dataType||"arraybuffer"!==t.responseType&&"text"!==t.responseType)t.dataType=(t.dataType||"json").toLowerCase(),t.responseType=t.dataType;else{var n=e.getBehaviorManager().get("requestBehaviors",0),r=n.standard,i=n.report;i&&i("request.dataType is undefined and has request.responseType",{url:t.url,responseType:t.responseType}),r?t.dataType=t.responseType:(t.dataType=(t.dataType||"json").toLowerCase(),t.responseType=t.dataType)}t.responseType="base64"!==t.responseType&&"arraybuffer"!==t.responseType?"text":t.responseType;var o,a,c,s,p=t.headers=t.headers||{},l="";for(var u in p)if("content-type"==u.toLowerCase()){l=p[u];break}if(l||(l=p["content-type"]="application/json"),this.getEnvPlatformAndroid()&&(t.headers=function(t){for(var e=[],n=0,r=Fe(t);n<r.length;n++){var i=r[n],o={};o[i]=t[i],e.push(o)}return e}(t.headers)),"GET"===t.method?(t.hasAssembleParams=!0,t.url=(a=t.url,c=function(t,e){var n=e;return Ge(t)&&"object"==typeof e&&(n=function(t,e){for(var n={},r=0,i=Fe(e);r<i.length;r++){var o=i[r];n[o]=t(e[o])}return n}(function(t){return"object"==typeof t?Me(t):t},e)),n}(l,t.data),s=c||"","object"==typeof c&&(s=Ke(c)),""===s?a:(/\?/.test(a)?/&$/.test(a)||/\?$/.test(a)||(s="&"+s):s="?"+s,a+s))):"DELETE"===t.method&&(t.hasAssembleParams=!1),"string"!=typeof t.data&&Ye(t.data)||(t.data=function(t,e){return void 0===e?e="":"string"!=typeof e&&(e=Ge(t)?Ke(e):/^application\/json\b/i.test(t)||"object"==typeof e?Me(e):e.toString()),e}(l,t.data)),!t.referrerStrategy)if((o=this.appxDomain)&&"empty"===o.type||function(t){return t&&"app"===t.type}(this.appxDomain)){var f=e.getMeta().getAppBehavior();f&&f.requestReferrerStrategy&&("page"===f.requestReferrerStrategy?t.referrerStrategy="page":"index"===f.requestReferrerStrategy&&(t.referrerStrategy="index"))}else if(function(t){return t&&"extension"===t.type}(this.appxDomain)){var h=e.getMiniExtensionManager().getMetaByExtensionId({type:4,value:this.appxDomain.origin});if(h&&h.config&&h.config.behavior){var d=h.config.behavior;d.requestReferrerStrategy&&("page"===d.requestReferrerStrategy?t.referrerStrategy="page":"index"===d.requestReferrerStrategy&&(t.referrerStrategy="index"))}}},a:function(t,e){switch(Ve(t,{header:"headers",statusCode:"status"}),e.dataType){case"json":if(t.data)try{t.data=De(t.data)}catch(e){void 0!==t.error&&0!==t.error||(t.error=14,t.errorMessage="JSON parse data error")}break;case"base64":t.data&&t.headers&&(t.data=(n=t.data,r=t.headers["Content-Type"]||t.headers["content-type"],n&&n.startsWith&&n.startsWith("data:")||n&&r&&(n="data:".concat(r,";base64,")+n),n));break;case"arraybuffer":if(t.data&&!Ye(t.data))try{t.data=function(t){for(var e=function(t){var e="",n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new Error('"atob" failed');for(var r=0,i=0,o=0,a=0;i=n.charAt(a);)a+=1,~(i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i))&&(r=o%4?64*r+i:i,o++%4&&(e+=String.fromCharCode(255&r>>(-2*o&6))));return e}(t),n=e.length,r=new Uint8Array(n),i=0;i<n;i++)r[i]=e.charCodeAt(i);return r.buffer}(t.data)}catch(e){void 0!==t.error&&0!==t.error||(t.error=14,t.errorMessage="parse arraybuffer data error")}}var n,r;if("status"in t){var i=t.status+"";/^[45]/.test(i)&&(void 0!==t.error&&0!==t.error||(t.error=19,t.errorMessage="http status error"))}t.appxProfile&&delete t.appxProfile,t.status&&(t.statusCode=t.status),t.headers&&(t.header=t.headers)},a_l:function(t){t.subErrorCode&&delete t.subErrorCode},c:function(){this.callScopedBridge("operateRequestTask",{operationType:"abort",requestTaskId:this.taskId})}},qe="_appx_open_capability_";function Je(t,e){return"".concat(qe).concat(t,"_").concat(e)}function ze(t,e,n){if(0===e.indexOf(qe)){var r=n().getBehaviorManager().get("enableIsolation4OCStorage");if(r.report&&r.report("unexpected key when using storage API: ".concat(e,", type: ").concat(t)),r.standard)return{error:15,errorMessage:"无效key,key不能以".concat(qe,"开头")}}}var $e,Ze,Qe,Xe,tn,en={m:"setTinyLocalStorage",v:function(t){return ze("setStorage",String(t.key),this.runtime)},b:function(t){t.value=Me({APDataStorage:t.data}),t.data=t.value,Re("a_setStorage_value_remove_2_8_16")&&this.getFlag("removeSetStorageParamValue")&&(t.value=void 0),Be(this.appxDomain)&&!Re("a_storage_open_capability_2_8_15")?t.key=Je(this.appxDomain.origin,String(t.key)):t.key=String(t.key),t.type="user"},cache:{key:"jsApi_tinyLocalStorage",set:function(t,e){t.cache||(t.cache={}),t.cache[e.key]={data:e.data}}}},nn={m:"getTinyLocalStorage",v:function(t){return ze("getStorage",String(t.key),this.runtime)},cache:{key:"jsApi_tinyLocalStorage",get:function(t,e){t.cache||(t.cache={});var n=t.cache[e.key];if(n&&"object"==typeof n){if(n.data)return{success:!0,data:n.data};if(11===n.error)return{success:!1,error:11}}},update:function(t,e,n){t.cache||(t.cache={}),n.data?t.cache[e.key]={data:n.data}:11===n.error&&(t.cache[e.key]={error:11})}},b:function(t){Be(this.appxDomain)&&!Re("a_storage_open_capability_2_8_15")?t.key=Je(this.appxDomain.origin,String(t.key)):t.key=String(t.key),t.type="user";var e=this.runtime().getNav();t.isAppFirstPage=e.isFirstPage()},a:function(t){if(11===t.error&&(t.data=null,delete t.error,delete t.errorMessage,delete t.success),t.data){var e=De(t.data);t.data=e.APDataStorage}}};function rn(){if(!Xe){var t=Oe(Promise,setTimeout,clearTimeout,setInterval,clearInterval);Xe=Ee([],[],[],t)}return Xe}function on(t,e){var n=function(t){if("undefined"==typeof navigator||!navigator||void 0===navigator.userAgent)return function(){throw new Error("API ".concat(t," should not initialized by smallfish. Please check your environment"))}}(t);if(n)return n;var r=(tn||(tn=rn().defaultScope.publicInstance),tn);if(!r[t]){var i=rn().defaultScope;i.getCollection().apiMap[t]=e;var o=i.call4PublicNamed;r[t]=o.bind(null,t)}return r[t]}$e||($e={}),Ze||(Ze={}),Qe||(Qe={});var an=on("setNavigationBar",{v:function(t){if(void 0!==t.frontColor){var e=He("%c",t.frontColor);if(16777215!==e&&0!==e)return{error:2,errorMessage:"frontColor 参数 ".concat(t.frontColor," 颜色值不合法")}}},b:function(t){t.reset&&(t.backgroundColor="#ffffff"),delete t.reset;var e,n="setTitle",r="setTitleColor",i="setBarBottomLineColor",o=this.optionPageViewId;return(e=o?{setTitle:{viewId:o},setTitleColor:{viewId:o},setBarBottomLineColor:{viewId:o}}:{setTitle:{},setTitleColor:{},setBarBottomLineColor:{}})[n]=Ve(e[n],{title:"title%s",image:"image%b"},t),e[r]=Ve(e[r],{backgroundColor:"color%c",frontColor:"frontColor%c"},t),e[i]=Ve(e[i],{borderBottomColor:"color%c"},t),e},d:function(t,e){var n="setTitle",r="setTitleColor",i="setBarBottomLineColor",o={};0!==Fe(t[n]).length&&this.callDefaultBridge(n,t[n],void 0,this.optionPageViewId),0!==Fe(t[i]).length&&(isNaN(t[i].color)?(o.error=2,o.errorMessage="borderBottomColor 颜色值不合法"):this.callDefaultBridge(i,t[i],void 0,this.optionPageViewId)),0!==Fe(t[r]).length?isNaN(t[r].color)?(o.error=2,o.errorMessage="frontColor 需和 backgroundColor 同时设置",e(o)):this.callDefaultBridge(r,t[r],function(t){o=ke(ke({},t),o),e(o)},this.optionPageViewId):e(o)}}),cn=on("request",We),sn=on("setStorage",en);const pn=on("getStorage",nn);function ln(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var un=["current","urls"];function fn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}const hn=cn;var dn=["url"];function yn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var vn=["keepScreenOn"];function gn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}const mn=an,bn=sn;function In(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var On=["items","cancelButtonText"];function Pn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function En(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var _n=["content"];function wn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var An=function(){return An=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},An.apply(this,arguments)};function Sn(t,e){var n=t.filter(function(t){return t.match.every(function(t){return t.test(e)})});if(n.length){var r=n[0].name;if(n.length>1){var i=n.map(function(t){return t.name}).join(",");Cn("Multiple clients have been identified(".concat(i,"), and the first one(").concat(r,")is used by default."))}return r}}function kn(t,e){return Object.keys(t).reduce(function(n,r){return n["is".concat(r)]=e===t[r],n},{})}function Cn(t){console.info("[hylid-env]: ".concat(t))}var jn={WEB:"web",MPWEB:"mpweb",MP:"mp"},xn={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"},Tn=/miniprogram/i,Mn=/^((?!miniprogram).)*$/i,Dn=/griver/i,Nn=/^((?!griver).)*$/i,Ln=[{name:xn.DEMO,match:[/demo/]},{name:xn.ALIPAYHK,match:[/alipayHK/]},{name:xn.TNGD,match:[/tngd/]},{name:xn.GCASH,match:[/gcash/]},{name:xn.TRUEMONEY,match:[/tmn/]},{name:xn.DANA,match:[/dana/]},{name:xn.TOSSPAY,match:[/toss/]},{name:xn.ALIPAY,match:[/alipay/]},{name:xn.MPAY,match:[/MPay/]},{name:xn.HIPAY,match:[/hipay/]},{name:xn.SCB_PLANETPLUS,match:[/scb/]}],Rn=[{name:xn.DEMO,match:[/alipayIDE/i]},{name:xn.ALIPAYHK,match:[Tn,Nn,/AlipayClientHK/]},{name:xn.TNGD,match:[Tn,/TNGKit|Touch 'n Go/]},{name:xn.GCASH,match:[Tn,Dn,/GCash/]},{name:xn.TRUEMONEY,match:[Tn,Dn,/TrueMoney/]},{name:xn.MPAY,match:[Tn,Nn,/mpay|macaupay/i]},{name:xn.ALIPAY,match:[Tn,Nn,/alipay/i]},{name:xn.DEMO,match:[Tn,Dn]},{name:xn.SCB_PLANETPLUS,match:[Tn,/scb/i]}];function Bn(){return Sn(Rn,window.navigator.userAgent)}var Un=[{name:xn.ALIPAYHK,match:[Mn,Nn,/AlipayClientHK/]},{name:xn.TNGD,match:[Mn,Dn,/TNGKit|Touch 'n Go/]},{name:xn.TNGD_H5NG,match:[Mn,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:xn.GCASH,match:[Mn,Dn,/GCash/]},{name:xn.TRUEMONEY,match:[Mn,Dn,/TrueMoney/i]},{name:xn.KAKAOPAY,match:[Mn,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:xn.KAKAOTALK,match:[Mn,/ALIPAYCONNECT_KAKAO_TALK/]},{name:xn.NAVERPAY,match:[Mn,/NAVER/]},{name:xn.MPAY,match:[Mn,/mpay|macaupay/i]},{name:xn.TOSSPAY,match:[Mn,/Toss/i]},{name:xn.ALIPAY,match:[Mn,Nn,/AlipayClient/]},{name:xn.DEMO,match:[Mn,Dn,/GriverDemo/]},{name:xn.WORLDFIRST,match:[Mn,Nn,/WorldFirst/]},{name:xn.CHANGIPAY,match:[Mn,Nn,/ChangiPay/]},{name:xn.KASPI,match:[Mn,Nn,/Kaspi/]}];function Fn(){return Sn(Un,window.navigator.userAgent)||xn.H5}var Hn=function(){var t,e;if("undefined"!=typeof my&&"string"==typeof my.SDKVersion)t=Sn(Ln,my.getSystemInfoSync().app),e=jn.MP;else{var n=function(){var t,e="__hy_env__",n=(null===(t=window.location.search)||void 0===t?void 0:t.match(/__app__=([^&]*)/))||[],r=n[1],i=(window.location.search.match(/__platform__=([^&]*)/)||[])[1],o=JSON.parse(localStorage.getItem(e)||"{}")||{};r&&(o.client=r),i&&(o.platform=i);try{localStorage.setItem(e,JSON.stringify(o))}catch(t){}if(n[1]){var a=window.location.search.replace(new RegExp("".concat(n[0],"(&)*")),""),c=window.location.hash||"",s="".concat(window.location.pathname).concat(a).concat(c);history.replaceState(null,"",s)}var p=JSON.parse(localStorage.getItem(e)||"{}"),l=localStorage.getItem("_CB__app__");return l?An(An({},p),{client:l}):p}();n.platform?(e=n.platform,t=n.client||("mpweb"===e?Bn():Fn())):(t=n.client||Bn())?e=jn.MPWEB:(t=Fn(),e=jn.WEB)}return e&&t||Cn("Cannot identify your client."),{client:t,platform:e}}(),Vn=Hn.client,Yn=Hn.platform;kn(xn,Vn),kn(jn,Yn);var Kn=!1,Gn=[];function Wn(t){return Gn.push(t),function(){Gn=Gn.filter(function(e){return e!==t})}}function qn(t){return Kn||(document.addEventListener("onToWebViewMessage",function(t){var e=t.data.res;if(e&&"message"===e.type){var n=JSON.parse(e.data);Gn.forEach(function(t){return t(n)})}}),Kn=!0),n(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:t})})}var Jn={NOTFOUND:{code:-1,message:function(t){return"".concat(t," is not found")}},NOTALLOWED:{code:-2,message:function(t){return"".concat(t," is not allowed")}},INVALID:{code:-3,message:function(t){return"".concat(t," is invalid")}},NOTBIND:{code:-4,message:function(t){return"".concat(t," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(t){return"".concat(t," exec fail, params error")}},TIMEOUT:{code:-6,message:function(t){return"".concat(t," exec fail, timeout")}}},zn=function(t,e){void 0===e&&(e="");var n=Jn[t];return{errorCode:n.code,errorMessage:(0,n.message)(e),errorSouce:"hylid"}},$n=function(){return $n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},$n.apply(this,arguments)},Zn={};function Qn(t,e,n){n=$n({timeout:0},n);var r=t+"_"+Math.floor(1e6*Math.random());e&&(Zn[r]=e),qn({source:"hylid",type:"apiCall",api:t,serialId:r,options:e,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var i=e;(null==n?void 0:n.timeout)&&(null==i?void 0:i.fail)&&setTimeout(function(){Zn[r]&&(delete Zn[r],i.fail(zn("TIMEOUT")))},n.timeout)}Wn(function(t){var e,n=t,r=n.serialId;if(r&&Zn[r]){var i=Zn[r],o=n.result;if("callback"===(null===(e=n.config)||void 0===e?void 0:e.type)){var a=o||{},c=a._data_;return"success"===a._type_?i(c):i(void 0,c)}var s=i||{},p=s.success,l=s.fail,u=s.complete,f=o||{},h=f._data_,d=f._type_;d?("success"===d&&(null==p||p(h)),"fail"===d&&(null==l||l(h)),null==u||u(h)):((null==o?void 0:o.error)?null==l||l(o):null==p||p(o),null==u||u(o)),delete Zn[r]}}),Qn.onMessage=Wn,Qn.postMessage=qn,Qn.broadcastGlobalData=function(t,e){qn({source:"hylid",type:"broadcast",from:window.location.href,key:t,result:e})},Qn.onReceiveGlobalData=function(t,e){return Wn(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===t){var i=r.result||{},o=i._data_;return"success"===i._type_?e(o,void 0,r.from):e(void 0,o,r.from)}})},Qn.onPageEvent=function(t,e){return qn({source:"hylid",type:"pageEvent",event:t}),Wn(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===t){var i=r.result||{},o=i._data_;return"success"===i._type_?e(o):e(void 0,o)}})};var Xn,tr,er=function(){var t={},e=!1;return function(r,i,o){return new Promise(function(a,c){var s,p=i||{},l=p.success,u=p.fail,f=o||{},h=f.timeout,d=void 0===h?2e4:h,y=f.isSync;d>0&&(s=setTimeout(function(){var t={error:-101,errorMessage:"[".concat(r,"]: Timeout")};c(t),null==u||u(t)},d));var v={apiName:r,options:$n($n({},i),{success:function(t){s&&clearTimeout(s),a(t),null==l||l(t)},fail:function(t){s&&clearTimeout(s),c(t),null==u||u(t)}}),isSync:y};n(function(){e||(document.addEventListener("onToWebViewMessage",function(e){var n=e.data.res;"message"===n.type&&function(e){var n,r=e.serialId;if(r&&t[r]){var i=t[r],o=e.result;if("callback"===(null===(n=e.config)||void 0===n?void 0:n.type)){var a=o||{},c=a._data_;return"success"===a._type_?i(c):i(void 0,c)}var s=i||{},p=s.success,l=s.fail,u=s.complete,f=o||{},h=f._data_,d=f._type_;d?("success"===d&&(null==p||p(h)),"fail"===d&&(null==l||l(h)),null==u||u(h)):((null==o?void 0:o.error)?null==l||l(o):null==p||p(o),null==u||u(o)),delete t[r]}}(JSON.parse(n.data))}),e=!0),function(e){var n,r=e.apiName,i=e.options,o=e.isSync,a=window,c=Math.floor(1e6*Math.random()),s="".concat(r,"_").concat(c);i&&(t[s]=i);var p={type:"apiCall",api:r,serialId:s,options:i,isSync:o,source:"hylid"};null===(n=a.AlipayJSBridge)||void 0===n||n.call("postWebViewMessage",{type:"message",detail:p})}(v)})})}}(),nr=((Xn={})[jn.MP]=function(t,e,n){var r=(n||{}).type,i=void 0===r?"async":r;return"sync"===i||(null==n?void 0:n.isSync)?my[t](e):("async"===i&&(my[t]?my[t](e):my.call(t,e)),"callback"===i&&my[t](e),"attribute"===i?my[t]:void 0)},Xn[jn.MPWEB]=Qn,Xn[jn.WEB]=r,Xn);(tr={})[jn.MPWEB]=er,tr[jn.WEB]=function(t,e,n){return new Promise(function(r,i){var o,a=e||{},c=(a.success,a.fail),s=(a.complete,(n||{}).timeout),p=void 0===s?2e4:s;p>0&&(o=setTimeout(function(){var e={error:-101,errorMessage:"[".concat(t,"]: Timeout")};i(e),null==c||c(e)},p)),window.AlipayJSBridge.call(t,e,function(t){var n=e||{},a=n.success,c=n.fail,s=n.complete;o&&clearTimeout(o),(null==t?void 0:t.error)?(i(t),null==c||c(t)):(r(t),null==a||a(t)),null==s||s(t)})})};var rr=["flowType"],ir=["fileName","fileType"];function or(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ar(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function cr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}const sr={addPhoneContact:function(t){return r("addPhoneContact",t,{type:"async"})},chooseImage:function(t){return r("chooseImage",t,{type:"async"})},exitApp:function(t){return r("exitApp",t,{type:"async"})},getAppToken:function(t){return r("getAppToken",t,{type:"async"})},getClientInfo:function(t){return r("getClientInfo",t,{type:"async"})},getBatteryInfo:function(t){return r("getBatteryInfo",t,{type:"async"})},getClipboard:function(t){return r("getClipboard",t,{type:"async"})},getFileInfo:function(t){return r("getFileInfo",t,{type:"async"})},getImageInfo:function(t){return r("getImageInfo",t,{type:"async"})},getSavedFileInfo:function(t){return r("getSavedFileInfo",t,{type:"async"})},getSavedFileList:function(t){return r("getSavedFileList",t,{type:"async"})},getScreenBrightness:function(t){return r("getScreenBrightness",t,{type:"async"})},getServerTime:function(t){return r("getServerTime",t,{type:"async"})},getSetting:function(t){return r("getSetting",t,{type:"async"})},getSystemInfo:function(t){return r("getSystemInfo",t,{type:"async"})},hideKeyboard:function(t){return r("hideKeyboard",t,{type:"async"})},hideLoading:function(t){return r("hideLoading",t,{type:"async"})},hideToast:function(t){return r("hideToast",t,{type:"async"})},makePhoneCall:function(t){return r("makePhoneCall",t,{type:"async"})},navigateBackMiniProgram:function(t){return r("navigateBackMiniProgram",t,{type:"async"})},navigateToMiniProgram:function(t){return r("navigateToMiniProgram",t,{type:"async"})},openDocument:function(t){return r("openDocument",t,{type:"async"})},openSetting:function(t){return r("openSetting",t,{type:"async"})},prompt:function(t){return r("prompt",t,{type:"async"})},removeSavedFile:function(t){return r("removeSavedFile",t,{type:"async"})},rpc:function(t){return r("rpc",t,{type:"async"})},saveFile:function(t){return r("saveFile",t,{type:"async"})},scan:function(t){return r("scan",t,{type:"async"})},setBackgroundColor:function(t){return r("setBackgroundColor",t,{type:"async"})},setCanPullDown:function(t){return r("setCanPullDown",t,{type:"async"})},setClipboard:function(t){return r("setClipboard",t,{type:"async"})},setOptionMenu:function(t){return r("setOptionMenu",t,{type:"async"})},setScreenBrightness:function(t){return r("setScreenBrightness",t,{type:"async"})},showLoading:function(t){return r("showLoading",t,{type:"async"})},signContract:function(t){return r("signContract",t,{type:"async"})},startApp:function(t){return r("startApp",t,{type:"async"})},startPullDownRefresh:function(t){return r("startPullDownRefresh",t,{type:"async"})},crossPay:function(t){return r("crossPay",t,{type:"async"})},vibrate:function(t){return r("vibrate",t,{type:"async"})},watchShake:function(t){return r("watchShake",t,{type:"async"})},setTransparentTitle:function(t){return r("setTransparentTitle",t,{type:"async"})},getRunScene:function(t){return r("getRunScene",t,{type:"async"})},chooseFileFromDisk:function(t){return r("chooseFileFromDisk",t,{type:"async"})},chooseVideo:function(t){return r("chooseVideo",t,{type:"async"})},compressImage:function(t){return r("compressImage",t,{type:"async"})},alert:function(t){var e=t||{};r("alert",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({message:e.content,button:e.buttonText},o(e,a)))},choosePhoneContact:function(t){r("contact",t)},clearStorage:function(t){r("clearTinyLocalStorage",t)},confirm:function(t){var e=t||{};r("confirm",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({okButton:e.confirmButtonText,cancelButton:e.cancelButtonText,message:e.content},o(e,s)))},datePicker:function(t){var e=t||{},n=e.format,a=(e.currentDate,e.startDate),c=e.endDate,s=o(e,l);r("datePicker",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({mode:f[n||"yyyy-MM-dd"],beginDate:a,minDate:a,maxDate:c},s))},downloadFile:function(t){var e,n,a=t||{},c=a.url,s=o(a,h),p=null===(e=c.match(/\.(\w+)$/))||void 0===e?void 0:e[1];r("downloadFile",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({url:c,type:null===(n=y.find(function(t){return t.exts.includes(p||"png")}))||void 0===n?void 0:n.type},s))},getAuthCode:function(t){var e=t||{},n=e.scopes,i=o(e,v);r("getAuthCode",m(m({scopeNicks:n},i),{},{success:function(t){var e;return null===(e=i.success)||void 0===e?void 0:e.call(i,m(m({},t),{},{authCode:t.authCode||t.authcode}))}}))},getLocation:function(t){var e=t||{},n=e.type,a=o(e,b);r("getCurrentLocation",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({bizType:(null==t?void 0:t.bizType)||"alipayIntl",requestType:n},a))},getNetworkType:function(t){var e=t.success;r("getNetworkType",E(E({},o(t,O)),{},{success:function(t){e&&e(E(E({},t),{},{networkType:t.networkInfo.toLocaleUpperCase()}))}}))},getPhoneNumber:function(t){r("appxrpc",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({requestData:[{method:"getPhoneNumber"}]},t))},getSiteInfo:function(t){return function(t){var e=t.success,n=t.fail,r=t.complete;setTimeout(function(){var t=N();t&&t.length?null==e||e({siteName:t}):null==n||n(new Error("siteName is empty!")),null==r||r()},0)}(t)},getStorage:pn,hideBackHome:function(){r("hideOptionMenuItem",{name:"backToHome"})},hideNavigationBarLoading:function(){r("hideTitleLoading")},hideTabBar:function(t){r("setTabBar",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ln(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({actionType:"hideTabBar"},t))},multiLevelSelect:function(t){r("beehiveMultilevelSelect",t)},navigateBack:function(t){r("popWindow",{options:t})},navigateTo:function(t){r("pushWindow",t)},onUserCaptureScreen:function(t){r("addScreenshotListener",t)},previewImage:function(t){var e=t.current,n=t.urls,a=void 0===n?[]:n,c=o(t,un);r("imageViewer",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fn(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({images:a.map(function(t){return{u:t}}),init:e},c))},redirectTo:function(t){var e=t||{},n=e.url,r=e.success,i=e.complete;window.location.replace(n),null==r||r({}),null==i||i({})},removeStorage:function(t){r("removeTinyLocalStorage",t)},request:hn,saveImage:function(t){var e=t||{};r("saveImage",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yn(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({src:e.url},o(e,dn)))},setKeepScreenOn:function(t){r("setScreenAutolock",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gn(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({actionType:t.keepScreenOn?"enable":"disable"},o(t,vn)))},setNavigationBar:mn,setStorage:bn,setTabBarStyle:function(t){r("setTabBar",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?In(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({actionType:"setTabbarStyle"},t))},showActionSheet:function(t){var e=t||{};r("actionSheet",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pn(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({btns:e.items,cancelBtn:e.cancelButtonText},o(e,On)))},showAuthGuide:function(t){r("showAuthGuide",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?En(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({bizType:(null==t?void 0:t.bizType)||"alipayIntl"},t))},showNavigationBarLoading:function(){r("showTitleLoading")},showToast:function(t){var e=t||{};r("toast",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wn(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({content:e.content||""},o(e,_n)))},stopPullDownRefresh:function(){r("restorePullToRefresh")},tradePay:function(t){var e,n,r,i=t||{},a=i.flowType,c=o(i,rr);e="a+"===a?"tradePayCrossApp":"tradePay",n=c,Yn?nr[Yn](e,n,r):function(t,e,n){var r;void 0===n&&(n={});var i=n.type,o=void 0===i?"async":i,a=zn("NOTFOUND",t);if("sync"===o)return a;"callback"===o&&(null==e||e(a)),"async"===o&&(null===(r=null==e?void 0:e.fail)||void 0===r||r.call(e,a))}(n,r)},uploadFile:function(t){var e=t||{};e.fileName,r("uploadFile",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?or(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({type:e.fileType},o(e,ir)))},setTabBarItem:function(t){r("setTabBar",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ar(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({actionType:"setTabBarItem"},t))},showTabBar:function(t){r("setTabBar",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cr(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({actionType:"showTabBar"},t))}};return e.default})());
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"hylid-bridge","version":"6.
|
|
1
|
+
{"name":"hylid-bridge","version":"6.3.0","main":"lib/index.js","description":"Unite Api For MiniProgram Project","files":["lib","canIUse.json","api.config.json"],"keywords":["miniprogram"],"exports":{".":"./lib/index.js","./dsl":"./lib/dsl.js","./mp/alipay":"./lib/clients/mp/alipay/index.js","./mp/alipayhk":"./lib/clients/mp/alipayhk/index.js","./mp/chope":"./lib/clients/mp/chope/index.js","./mp/dana":"./lib/clients/mp/dana/index.js","./mp/demo":"./lib/clients/mp/demo/index.js","./mp/gcash":"./lib/clients/mp/gcash/index.js","./mp/tngd":"./lib/clients/mp/tngd/index.js","./mp/truemoney":"./lib/clients/mp/truemoney/index.js","./mp/wechat":"./lib/clients/mp/wechat/index.js","./mp_web/alipay":"./lib/clients/mp_web/alipay/index.js","./mp_web/alipayhk":"./lib/clients/mp_web/alipayhk/index.js","./mp_web/chope":"./lib/clients/mp_web/chope/index.js","./mp_web/dana":"./lib/clients/mp_web/dana/index.js","./mp_web/demo":"./lib/clients/mp_web/demo/index.js","./mp_web/gcash":"./lib/clients/mp_web/gcash/index.js","./mp_web/tngd":"./lib/clients/mp_web/tngd/index.js","./mp_web/truemoney":"./lib/clients/mp_web/truemoney/index.js","./web/alipay":"./lib/clients/web/alipay/index.js","./web/demo":"./lib/clients/web/demo/index.js","./web/h5":"./lib/clients/web/h5/index.js","./web/tngdh5ng":"./lib/clients/web/tngdh5ng/index.js","./package.json":"./package.json","./canIUse.json":"./canIUse.json","./babel-compact":{"import":"./lib/babel-compact.js","types":"./lib/index.d.ts"},"./direct-mp":"./lib/clients/mp/demo/index.js","./direct-mp_web":"./lib/clients/mp_web/demo/index.js","./direct-web":"./lib/clients/web/demo/index.js","./custom-jsapi":"./lib/custom-jsapi.js","./lib/*":"./lib/*","./mp_web/mpay":"./lib/clients/mp_web/mpay/index.js","./mp_web/toss":"./lib/clients/mp_web/toss/index.js","./mp_web/zalopay":"./lib/clients/mp_web/zalopay/index.js","./mp_web/tinaba":"./lib/clients/mp_web/tinaba/index.js","./mp_web/kakaopay":"./lib/clients/mp_web/kakaopay/index.js","./mp_web/hipay":"./lib/clients/mp_web/hipay/index.js","./mp_web/scb_planetplus":"./lib/clients/mp_web/scb_planetplus/index.js","./mp/tmn":"./lib/clients/mp/tmn/index.js","./mp_web/tmn":"./lib/clients/mp_web/tmn/index.js","./web/alipayhk":"./lib/clients/web/alipayhk/index.js","./web/changipay":"./lib/clients/web/changipay/index.js","./web/kaspi":"./lib/clients/web/kaspi/index.js"},"license":"MIT","dependencies":{"@babel/runtime":"7.18.9","@goldfishjs/utils":"^2.18.0","@hylid/call":"6.3.0","@hylid/custom-jsapi":"6.3.0","@hylid/env":"6.3.0","@hylid/types":"6.3.0","@types/miniprogram":"^1.0.3","miniapp-web-jsapi":"^4.0.33","qs-es5":"^6.8.4","url-parse":"^1.5.10"},"devDependencies":{"@types/url-parse":"^1.4.11"},"sideEffects":false,"registry":"https://registry.npmjs.org/","typesVersions":{"*":{".":["./lib/index.d.ts"],"dsl":["./lib/dsl.d.ts"],"mp/alipay":["./lib/clients/mp/alipay/index.d.ts"],"mp/alipayhk":["./lib/clients/mp/alipayhk/index.d.ts"],"mp/chope":["./lib/clients/mp/chope/index.d.ts"],"mp/dana":["./lib/clients/mp/dana/index.d.ts"],"mp/demo":["./lib/clients/mp/demo/index.d.ts"],"mp/gcash":["./lib/clients/mp/gcash/index.d.ts"],"mp/tngd":["./lib/clients/mp/tngd/index.d.ts"],"mp/truemoney":["./lib/clients/mp/truemoney/index.d.ts"],"mp/wechat":["./lib/clients/mp/wechat/index.d.ts"],"mp_web/alipay":["./lib/clients/mp_web/alipay/index.d.ts"],"mp_web/alipayhk":["./lib/clients/mp_web/alipayhk/index.d.ts"],"mp_web/chope":["./lib/clients/mp_web/chope/index.d.ts"],"mp_web/dana":["./lib/clients/mp_web/dana/index.d.ts"],"mp_web/demo":["./lib/clients/mp_web/demo/index.d.ts"],"mp_web/gcash":["./lib/clients/mp_web/gcash/index.d.ts"],"mp_web/tngd":["./lib/clients/mp_web/tngd/index.d.ts"],"mp_web/truemoney":["./lib/clients/mp_web/truemoney/index.d.ts"],"web/alipay":["./lib/clients/web/alipay/index.d.ts"],"web/demo":["./lib/clients/web/demo/index.d.ts"],"web/h5":["./lib/clients/web/h5/index.d.ts"],"web/tngdh5ng":["./lib/clients/web/tngdh5ng/index.d.ts"],"babel-compact":["./lib/index.d.ts"],"direct-mp":["./lib/clients/mp/demo/index.d.ts"],"direct-mp_web":["./lib/clients/mp_web/demo/index.d.ts"],"direct-web":["./lib/clients/web/demo/index.d.ts"],"custom-jsapi":["./lib/custom-jsapi.d.ts"],"mp_web/mpay":["./lib/clients/mp_web/mpay/index.d.ts"],"mp_web/toss":["./lib/clients/mp_web/toss/index.d.ts"],"mp_web/zalopay":["./lib/clients/mp_web/zalopay/index.d.ts"],"mp_web/tinaba":["./lib/clients/mp_web/tinaba/index.d.ts"],"mp_web/kakaopay":["./lib/clients/mp_web/kakaopay/index.d.ts"],"mp_web/hipay":["./lib/clients/mp_web/hipay/index.d.ts"],"mp_web/scb_planetplus":["./lib/clients/mp_web/scb_planetplus/index.d.ts"],"mp/tmn":["./lib/clients/mp/tmn/index.d.ts"],"mp_web/tmn":["./lib/clients/mp_web/tmn/index.d.ts"],"web/alipayhk":["./lib/clients/web/alipayhk/index.d.ts"]}},"repository":"git@code.alipay.com:ant-ife/hylid-bridge.git","private":false}
|