commit 88cbb311a3b8b2dc46c24d357233aeeb5f1ff791
Author: wpf <2187978347@qq.com>
Date: Sun Jan 7 14:26:19 2024 +0800
初始化
diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
new file mode 100644
index 0000000..4ccd172
--- /dev/null
+++ b/.hbuilderx/launch.json
@@ -0,0 +1,20 @@
+{
+ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
+ // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
+ "version" : "0.0",
+ "configurations" : [
+ {
+ "app-plus" : {
+ "launchtype" : "local"
+ },
+ "default" : {
+ "launchtype" : "local"
+ },
+ "type" : "uniCloud"
+ },
+ {
+ "playground" : "custom",
+ "type" : "uni-app:app-android"
+ }
+ ]
+}
diff --git a/App.vue b/App.vue
new file mode 100644
index 0000000..8c2b732
--- /dev/null
+++ b/App.vue
@@ -0,0 +1,17 @@
+
+
+
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..c3ff205
--- /dev/null
+++ b/index.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/main.js b/main.js
new file mode 100644
index 0000000..c1caf36
--- /dev/null
+++ b/main.js
@@ -0,0 +1,22 @@
+import App from './App'
+
+// #ifndef VUE3
+import Vue from 'vue'
+import './uni.promisify.adaptor'
+Vue.config.productionTip = false
+App.mpType = 'app'
+const app = new Vue({
+ ...App
+})
+app.$mount()
+// #endif
+
+// #ifdef VUE3
+import { createSSRApp } from 'vue'
+export function createApp() {
+ const app = createSSRApp(App)
+ return {
+ app
+ }
+}
+// #endif
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
new file mode 100644
index 0000000..86b40f9
--- /dev/null
+++ b/manifest.json
@@ -0,0 +1,106 @@
+{
+ "name" : "work_order",
+ "appid" : "__UNI__BAAC5A9",
+ "description" : "",
+ "versionName" : "1.0.0",
+ "versionCode" : "100",
+ "transformPx" : false,
+ /* 5+App特有相关 */
+ "app-plus" : {
+ "usingComponents" : true,
+ "nvueStyleCompiler" : "uni-app",
+ "compilerVersion" : 3,
+ "splashscreen" : {
+ "alwaysShowBeforeRender" : true,
+ "waiting" : true,
+ "autoclose" : true,
+ "delay" : 0
+ },
+ /* 模块配置 */
+ "modules" : {
+ "Geolocation" : {}
+ },
+ /* 应用发布信息 */
+ "distribute" : {
+ /* android打包配置 */
+ "android" : {
+ "permissions" : [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ ]
+ },
+ /* ios打包配置 */
+ "ios" : {
+ "dSYMs" : false
+ },
+ /* SDK配置 */
+ "sdkConfigs" : {
+ "geolocation" : {
+ "system" : {
+ "__platform__" : [ "ios", "android" ]
+ },
+ "amap" : {
+ "name" : "amaptOT5SLwK",
+ "__platform__" : [ "android" ],
+ "appkey_ios" : "",
+ "appkey_android" : "2ad33d95be57c3169cb881a7d2b1712f"
+ }
+ },
+ "ad" : {}
+ }
+ },
+ "nativePlugins" : {
+ "SLY-AMapHelper" : {
+ "__plugin_info__" : {
+ "name" : "后台持续定位、轨迹追踪、可锁屏",
+ "description" : "基于高德地图的后台持续定位、轨迹追踪、后台保活、锁屏定位。已处理主流系统权限申请流程,省心快速接入,提供演示程序下载[问题反馈:404342398@qq.com]",
+ "platforms" : "Android",
+ "url" : "https://ext.dcloud.net.cn/plugin?id=6267",
+ "android_package_name" : "uni.UNIBAAC5A9",
+ "ios_bundle_id" : "",
+ "isCloud" : true,
+ "bought" : 1,
+ "pid" : "6267",
+ "parameters" : {}
+ }
+ }
+ }
+ },
+ /* 快应用特有相关 */
+ "quickapp" : {},
+ /* 小程序特有相关 */
+ "mp-weixin" : {
+ "appid" : "",
+ "setting" : {
+ "urlCheck" : false
+ },
+ "usingComponents" : true
+ },
+ "mp-alipay" : {
+ "usingComponents" : true
+ },
+ "mp-baidu" : {
+ "usingComponents" : true
+ },
+ "mp-toutiao" : {
+ "usingComponents" : true
+ },
+ "uniStatistics" : {
+ "enable" : false
+ },
+ "vueVersion" : "2"
+}
diff --git a/pages.json b/pages.json
new file mode 100644
index 0000000..3e299ab
--- /dev/null
+++ b/pages.json
@@ -0,0 +1,41 @@
+{
+ "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
+ {
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "定位测试"
+ }
+ },
+ {
+ "path" : "pages/test/test",
+ "style" :
+ {
+ "navigationBarTitleText" : "",
+ "enablePullDownRefresh" : false
+ }
+ }
+ ],
+ "tabBar": {
+ "color": "#333",
+ "selectedColor": "#0074e8",
+ "borderStyle": "white",
+ "backgroundColor": "#eee",
+ "list": [
+ {
+ "pagePath": "pages/index/index",
+ "text": "高德"
+ },
+ {
+ "pagePath": "pages/test/test",
+ "text": "本机"
+ }
+ ]
+ },
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "工单系统",
+ "navigationBarBackgroundColor": "#F8F8F8",
+ "backgroundColor": "#F8F8F8"
+ },
+ "uniIdRouter": {}
+}
diff --git a/pages/index/index.vue b/pages/index/index.vue
new file mode 100644
index 0000000..fdd0eae
--- /dev/null
+++ b/pages/index/index.vue
@@ -0,0 +1,168 @@
+
+
+
+
+
+
+
+
+
+
+ {{result}}
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/test/test.vue b/pages/test/test.vue
new file mode 100644
index 0000000..b844717
--- /dev/null
+++ b/pages/test/test.vue
@@ -0,0 +1,82 @@
+
+
+
+
+
+ {{item.a}}
+ {{item.b}}
+
+
+
+
+
+
+
diff --git a/static/logo.png b/static/logo.png
new file mode 100644
index 0000000..b5771e2
Binary files /dev/null and b/static/logo.png differ
diff --git a/uni.promisify.adaptor.js b/uni.promisify.adaptor.js
new file mode 100644
index 0000000..47fbce1
--- /dev/null
+++ b/uni.promisify.adaptor.js
@@ -0,0 +1,10 @@
+uni.addInterceptor({
+ returnValue (res) {
+ if (!(!!res && (typeof res === "object" || typeof res === "function") && typeof res.then === "function")) {
+ return res;
+ }
+ return new Promise((resolve, reject) => {
+ res.then((res) => res[0] ? reject(res[0]) : resolve(res[1]));
+ });
+ },
+});
\ No newline at end of file
diff --git a/uni.scss b/uni.scss
new file mode 100644
index 0000000..a05adb4
--- /dev/null
+++ b/uni.scss
@@ -0,0 +1,76 @@
+/**
+ * 这里是uni-app内置的常用样式变量
+ *
+ * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
+ * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
+ *
+ */
+
+/**
+ * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
+ *
+ * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
+ */
+
+/* 颜色变量 */
+
+/* 行为相关颜色 */
+$uni-color-primary: #007aff;
+$uni-color-success: #4cd964;
+$uni-color-warning: #f0ad4e;
+$uni-color-error: #dd524d;
+
+/* 文字基本颜色 */
+$uni-text-color:#333;//基本色
+$uni-text-color-inverse:#fff;//反色
+$uni-text-color-grey:#999;//辅助灰色,如加载更多的提示信息
+$uni-text-color-placeholder: #808080;
+$uni-text-color-disable:#c0c0c0;
+
+/* 背景颜色 */
+$uni-bg-color:#ffffff;
+$uni-bg-color-grey:#f8f8f8;
+$uni-bg-color-hover:#f1f1f1;//点击状态颜色
+$uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色
+
+/* 边框颜色 */
+$uni-border-color:#c8c7cc;
+
+/* 尺寸变量 */
+
+/* 文字尺寸 */
+$uni-font-size-sm:12px;
+$uni-font-size-base:14px;
+$uni-font-size-lg:16;
+
+/* 图片尺寸 */
+$uni-img-size-sm:20px;
+$uni-img-size-base:26px;
+$uni-img-size-lg:40px;
+
+/* Border Radius */
+$uni-border-radius-sm: 2px;
+$uni-border-radius-base: 3px;
+$uni-border-radius-lg: 6px;
+$uni-border-radius-circle: 50%;
+
+/* 水平间距 */
+$uni-spacing-row-sm: 5px;
+$uni-spacing-row-base: 10px;
+$uni-spacing-row-lg: 15px;
+
+/* 垂直间距 */
+$uni-spacing-col-sm: 4px;
+$uni-spacing-col-base: 8px;
+$uni-spacing-col-lg: 12px;
+
+/* 透明度 */
+$uni-opacity-disabled: 0.3; // 组件禁用态的透明度
+
+/* 文章场景相关 */
+$uni-color-title: #2C405A; // 文章标题颜色
+$uni-font-size-title:20px;
+$uni-color-subtitle: #555555; // 二级标题颜色
+$uni-font-size-subtitle:26px;
+$uni-color-paragraph: #3F536E; // 文章段落颜色
+$uni-font-size-paragraph:15px;
diff --git a/uni_modules/fdm-keepalive/changelog.md b/uni_modules/fdm-keepalive/changelog.md
new file mode 100644
index 0000000..5e0abab
--- /dev/null
+++ b/uni_modules/fdm-keepalive/changelog.md
@@ -0,0 +1,6 @@
+## 1.0.0(2023-05-19)
+import addKeepalive from '../../uni_modules/fdm-keepalive'
+在合适的地方调用该函数
+addKeepalive();
+会检测用户是否将软件退出电池优化 未退出会弹窗提示是否退出
+注意 会开启唤醒锁且 唤醒锁只有在软件关闭时才会释放
diff --git a/uni_modules/fdm-keepalive/package.json b/uni_modules/fdm-keepalive/package.json
new file mode 100644
index 0000000..0f32751
--- /dev/null
+++ b/uni_modules/fdm-keepalive/package.json
@@ -0,0 +1,83 @@
+{
+ "id": "fdm-keepalive",
+ "displayName": "keepalive,fdm",
+ "version": "1.0.0",
+ "description": "keepalive 该插件会检测用户是否将软件退出电池优化 未退出会弹窗提示是否退出且会开启唤醒锁,一种类似加入白名单的保活思路",
+ "keywords": [
+ "fdm-keepalive"
+],
+ "repository": "",
+ "engines": {
+ "HBuilderX": "^3.6.8"
+ },
+ "dcloudext": {
+ "type": "uts",
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "无",
+ "data": "插件不采集任何数据",
+ "permissions": "\r\n"
+ },
+ "npmurl": ""
+ },
+ "uni_modules": {
+ "dependencies": [],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "y",
+ "aliyun": "y"
+ },
+ "client": {
+ "Vue": {
+ "vue2": "y",
+ "vue3": "y"
+ },
+ "App": {
+ "app-android": {
+ "minVersion": "23"
+ },
+ "app-ios": "n"
+ },
+ "H5-mobile": {
+ "Safari": "n",
+ "Android Browser": "n",
+ "微信浏览器(Android)": "n",
+ "QQ浏览器(Android)": "n"
+ },
+ "H5-pc": {
+ "Chrome": "n",
+ "IE": "n",
+ "Edge": "n",
+ "Firefox": "n",
+ "Safari": "n"
+ },
+ "小程序": {
+ "微信": "n",
+ "阿里": "n",
+ "百度": "n",
+ "字节跳动": "n",
+ "QQ": "n",
+ "钉钉": "n",
+ "快手": "n",
+ "飞书": "n",
+ "京东": "n"
+ },
+ "快应用": {
+ "华为": "n",
+ "联盟": "n"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/uni_modules/fdm-keepalive/readme.md b/uni_modules/fdm-keepalive/readme.md
new file mode 100644
index 0000000..016e46d
--- /dev/null
+++ b/uni_modules/fdm-keepalive/readme.md
@@ -0,0 +1,6 @@
+# fdm-keepalive
+### 开发文档
+[UTS 语法](https://uniapp.dcloud.net.cn/tutorial/syntax-uts.html)
+[UTS API插件](https://uniapp.dcloud.net.cn/plugin/uts-plugin.html)
+[UTS 组件插件](https://uniapp.dcloud.net.cn/plugin/uts-component.html)
+[Hello UTS](https://gitcode.net/dcloud/hello-uts)
\ No newline at end of file
diff --git a/uni_modules/fdm-keepalive/utssdk/app-android/AndroidManifest.xml b/uni_modules/fdm-keepalive/utssdk/app-android/AndroidManifest.xml
new file mode 100644
index 0000000..d559fd4
--- /dev/null
+++ b/uni_modules/fdm-keepalive/utssdk/app-android/AndroidManifest.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
diff --git a/uni_modules/fdm-keepalive/utssdk/app-android/config.json b/uni_modules/fdm-keepalive/utssdk/app-android/config.json
new file mode 100644
index 0000000..0957f43
--- /dev/null
+++ b/uni_modules/fdm-keepalive/utssdk/app-android/config.json
@@ -0,0 +1,3 @@
+{
+ "minSdkVersion": "23"
+}
\ No newline at end of file
diff --git a/uni_modules/fdm-keepalive/utssdk/app-android/index.uts b/uni_modules/fdm-keepalive/utssdk/app-android/index.uts
new file mode 100644
index 0000000..e324985
--- /dev/null
+++ b/uni_modules/fdm-keepalive/utssdk/app-android/index.uts
@@ -0,0 +1,40 @@
+import Context from "android.content.Context";
+import { UTSAndroid } from "io.dcloud.uts";
+import PowerManager from 'android.os.PowerManager';
+import Intent from 'android.content.Intent';
+import Settings from 'android.provider.Settings';
+import Uri from 'android.net.Uri';
+
+class WakeLockHelper{
+ context: Context
+ private wakeLock: PowerManager.WakeLock | null = null;
+ constructor(context: Context){
+ this.context = context
+ }
+ acquireWakeLock(){
+ let powerManager = this.context.getSystemService(Context.POWER_SERVICE) as PowerManager;
+ this.wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,"MyApp::TestWakeLock");
+ this.wakeLock?.acquire();
+ }
+ releaseWakeLock() {
+ this.wakeLock?.release();
+ this.wakeLock = null
+ }
+}
+
+export default function addKeepalive(){
+ const context = UTSAndroid.getAppContext();
+ const pageName = context!.getPackageName();
+ const manager = context!.getSystemService(
+ Context.POWER_SERVICE
+ ) as PowerManager;
+ if(!manager.isIgnoringBatteryOptimizations(pageName)){
+ let jumpUrl: Uri = Uri.parse("package:" + pageName);
+ let intent = new Intent(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS, jumpUrl);
+ intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
+ UTSAndroid.getAppContext()!.startActivity(intent);
+ }
+ let wakeCtrl = new WakeLockHelper(context);
+ wakeCtrl.acquireWakeLock();
+ console.log(manager.isInteractive());
+}
\ No newline at end of file
diff --git a/uni_modules/fdm-keepalive/utssdk/app-ios/index.uts b/uni_modules/fdm-keepalive/utssdk/app-ios/index.uts
new file mode 100644
index 0000000..e69de29
diff --git a/unpackage/cache/app-android/uts/uni_modules/fdm-keepalive/classes.dex b/unpackage/cache/app-android/uts/uni_modules/fdm-keepalive/classes.dex
new file mode 100644
index 0000000..8edad79
Binary files /dev/null and b/unpackage/cache/app-android/uts/uni_modules/fdm-keepalive/classes.dex differ
diff --git a/unpackage/cache/app-android/uts/uni_modules/fdm-keepalive/index.jar b/unpackage/cache/app-android/uts/uni_modules/fdm-keepalive/index.jar
new file mode 100644
index 0000000..5cf658f
Binary files /dev/null and b/unpackage/cache/app-android/uts/uni_modules/fdm-keepalive/index.jar differ
diff --git a/unpackage/cache/app-android/uts/uni_modules/fdm-keepalive/index.kt.map b/unpackage/cache/app-android/uts/uni_modules/fdm-keepalive/index.kt.map
new file mode 100644
index 0000000..e7fcb08
--- /dev/null
+++ b/unpackage/cache/app-android/uts/uni_modules/fdm-keepalive/index.kt.map
@@ -0,0 +1 @@
+{"version":3,"sources":["uni_modules/fdm-keepalive/utssdk/app-android/index.uts"],"sourcesContent":["import Context from \"android.content.Context\";\nimport { UTSAndroid } from \"io.dcloud.uts\";\nimport PowerManager from 'android.os.PowerManager';\nimport Intent from 'android.content.Intent';\nimport Settings from 'android.provider.Settings';\nimport Uri from 'android.net.Uri';\n\nclass WakeLockHelper{\n\tcontext: Context\n\tprivate wakeLock: PowerManager.WakeLock | null = null;\n\tconstructor(context: Context){\n\t\tthis.context = context\n\t}\n\tacquireWakeLock(){\n\t\tlet powerManager = this.context.getSystemService(Context.POWER_SERVICE) as PowerManager;\n\t\tthis.wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,\"MyApp::TestWakeLock\");\n\t\tthis.wakeLock?.acquire();\n\t}\n\treleaseWakeLock() {\n\t\tthis.wakeLock?.release();\n\t\tthis.wakeLock = null\n\t}\n}\n\nexport default function addKeepalive(){\n\tconst context = UTSAndroid.getAppContext();\n\tconst pageName = context!.getPackageName();\n\tconst manager = context!.getSystemService(\n\t\tContext.POWER_SERVICE\n\t) as PowerManager;\n\tif(!manager.isIgnoringBatteryOptimizations(pageName)){\n\t\tlet jumpUrl: Uri = Uri.parse(\"package:\" + pageName);\n\t\tlet intent = new Intent(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS, jumpUrl);\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tUTSAndroid.getAppContext()!.startActivity(intent);\n\t}\n\tlet wakeCtrl = new WakeLockHelper(context);\n\twakeCtrl.acquireWakeLock();\n\tconsole.log(manager.isInteractive());\n}\n"],"names":[],"mappings":";;;;;;;AAAA,OAAoB,uBAAyB,CAAC;AAC9C;AACA,OAAyB,uBAAyB,CAAC;AACnD,OAAmB,sBAAwB,CAAC;AAC5C,OAAqB,yBAA2B,CAAC;AACjD,OAAgB,eAAiB,CAAC;AAElC,WAAM;IACL,SAAA,SAAS,QAAO;IAChB,YAAQ,UAAU,aAAa,YAAkB,IAAI,CAAC;IACtD,YAAY,SAAS,OAAO,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG;IAChB;IACA,SAAA,kBAAiB;QAChB,IAAI,eAAe,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,aAAa,KAAK;QAC3E,IAAI,CAAC,QAAQ,GAAG,aAAa,WAAW,CAAC,aAAa,iBAAiB,EAAC;QACxE,IAAI,CAAC,QAAQ,EAAE;IAChB;IACA,SAAA,kBAAkB;QACjB,IAAI,CAAC,QAAQ,EAAE;QACf,IAAI,CAAC,QAAQ,GAAG,IAAI;IACrB;AACD;AAEe,IAAS,eAAc;IACrC,IAAM,UAAU,WAAW,aAAa;IACxC,IAAM,WAAW,UAAS,cAAc;IACxC,IAAM,UAAU,UAAS,gBAAgB,CACxC,QAAQ,aAAa,KACjB;IACL,IAAG,CAAC,QAAQ,8BAA8B,CAAC,WAAU;QACpD,IAAI,SAAS,MAAM,IAAI,KAAK,CAAC,aAAa;QAC1C,IAAI,SAAS,AAAI,OAAO,SAAS,2CAA2C,EAAE;QAC9E,OAAO,QAAQ,CAAC,OAAO,sBAAsB;QAC7C,WAAW,aAAa,KAAI,aAAa,CAAC;IAC3C;IACA,IAAI,WAAW,AAAI,eAAe;IAClC,SAAS,eAAe;IACxB,QAAQ,GAAG,CAAC,QAAQ,aAAa;AAClC"}
\ No newline at end of file
diff --git a/unpackage/cache/app-android/uts/uni_modules/fdm-keepalive/manifest.json b/unpackage/cache/app-android/uts/uni_modules/fdm-keepalive/manifest.json
new file mode 100644
index 0000000..37e8313
--- /dev/null
+++ b/unpackage/cache/app-android/uts/uni_modules/fdm-keepalive/manifest.json
@@ -0,0 +1,20 @@
+{
+ "version": "1",
+ "env": {
+ "compilerVersion": "3.0.0-3080720230630001"
+ },
+ "files": {
+ "utssdk/app-android/index.uts": {
+ "md5": "2941540f85b8319ebb4b1e037e800400"
+ },
+ "package.json": {
+ "md5": "abd8bdc28aa16ec02660cf67704aa18c"
+ },
+ "utssdk/app-android/AndroidManifest.xml": {
+ "md5": "8ad9237e5e2a09e1aa7c64e9e981ff65"
+ },
+ "utssdk/app-android/config.json": {
+ "md5": "c03b88b32cee2468ec84ccd94349139a"
+ }
+ }
+}
\ No newline at end of file
diff --git a/unpackage/cache/uts_custom_android/app-android/uts/uni_modules/fdm-keepalive/index.kt.map b/unpackage/cache/uts_custom_android/app-android/uts/uni_modules/fdm-keepalive/index.kt.map
new file mode 100644
index 0000000..e7fcb08
--- /dev/null
+++ b/unpackage/cache/uts_custom_android/app-android/uts/uni_modules/fdm-keepalive/index.kt.map
@@ -0,0 +1 @@
+{"version":3,"sources":["uni_modules/fdm-keepalive/utssdk/app-android/index.uts"],"sourcesContent":["import Context from \"android.content.Context\";\nimport { UTSAndroid } from \"io.dcloud.uts\";\nimport PowerManager from 'android.os.PowerManager';\nimport Intent from 'android.content.Intent';\nimport Settings from 'android.provider.Settings';\nimport Uri from 'android.net.Uri';\n\nclass WakeLockHelper{\n\tcontext: Context\n\tprivate wakeLock: PowerManager.WakeLock | null = null;\n\tconstructor(context: Context){\n\t\tthis.context = context\n\t}\n\tacquireWakeLock(){\n\t\tlet powerManager = this.context.getSystemService(Context.POWER_SERVICE) as PowerManager;\n\t\tthis.wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,\"MyApp::TestWakeLock\");\n\t\tthis.wakeLock?.acquire();\n\t}\n\treleaseWakeLock() {\n\t\tthis.wakeLock?.release();\n\t\tthis.wakeLock = null\n\t}\n}\n\nexport default function addKeepalive(){\n\tconst context = UTSAndroid.getAppContext();\n\tconst pageName = context!.getPackageName();\n\tconst manager = context!.getSystemService(\n\t\tContext.POWER_SERVICE\n\t) as PowerManager;\n\tif(!manager.isIgnoringBatteryOptimizations(pageName)){\n\t\tlet jumpUrl: Uri = Uri.parse(\"package:\" + pageName);\n\t\tlet intent = new Intent(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS, jumpUrl);\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tUTSAndroid.getAppContext()!.startActivity(intent);\n\t}\n\tlet wakeCtrl = new WakeLockHelper(context);\n\twakeCtrl.acquireWakeLock();\n\tconsole.log(manager.isInteractive());\n}\n"],"names":[],"mappings":";;;;;;;AAAA,OAAoB,uBAAyB,CAAC;AAC9C;AACA,OAAyB,uBAAyB,CAAC;AACnD,OAAmB,sBAAwB,CAAC;AAC5C,OAAqB,yBAA2B,CAAC;AACjD,OAAgB,eAAiB,CAAC;AAElC,WAAM;IACL,SAAA,SAAS,QAAO;IAChB,YAAQ,UAAU,aAAa,YAAkB,IAAI,CAAC;IACtD,YAAY,SAAS,OAAO,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG;IAChB;IACA,SAAA,kBAAiB;QAChB,IAAI,eAAe,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,aAAa,KAAK;QAC3E,IAAI,CAAC,QAAQ,GAAG,aAAa,WAAW,CAAC,aAAa,iBAAiB,EAAC;QACxE,IAAI,CAAC,QAAQ,EAAE;IAChB;IACA,SAAA,kBAAkB;QACjB,IAAI,CAAC,QAAQ,EAAE;QACf,IAAI,CAAC,QAAQ,GAAG,IAAI;IACrB;AACD;AAEe,IAAS,eAAc;IACrC,IAAM,UAAU,WAAW,aAAa;IACxC,IAAM,WAAW,UAAS,cAAc;IACxC,IAAM,UAAU,UAAS,gBAAgB,CACxC,QAAQ,aAAa,KACjB;IACL,IAAG,CAAC,QAAQ,8BAA8B,CAAC,WAAU;QACpD,IAAI,SAAS,MAAM,IAAI,KAAK,CAAC,aAAa;QAC1C,IAAI,SAAS,AAAI,OAAO,SAAS,2CAA2C,EAAE;QAC9E,OAAO,QAAQ,CAAC,OAAO,sBAAsB;QAC7C,WAAW,aAAa,KAAI,aAAa,CAAC;IAC3C;IACA,IAAI,WAAW,AAAI,eAAe;IAClC,SAAS,eAAe;IACxB,QAAQ,GAAG,CAAC,QAAQ,aAAa;AAClC"}
\ No newline at end of file
diff --git a/unpackage/cache/uts_custom_android/app-android/uts/uni_modules/fdm-keepalive/manifest.json b/unpackage/cache/uts_custom_android/app-android/uts/uni_modules/fdm-keepalive/manifest.json
new file mode 100644
index 0000000..f973f06
--- /dev/null
+++ b/unpackage/cache/uts_custom_android/app-android/uts/uni_modules/fdm-keepalive/manifest.json
@@ -0,0 +1,20 @@
+{
+ "version": "1",
+ "env": {
+ "compilerVersion": "3.99.2023122611"
+ },
+ "files": {
+ "utssdk/app-android/index.uts": {
+ "md5": "2941540f85b8319ebb4b1e037e800400"
+ },
+ "package.json": {
+ "md5": "abd8bdc28aa16ec02660cf67704aa18c"
+ },
+ "utssdk/app-android/AndroidManifest.xml": {
+ "md5": "8ad9237e5e2a09e1aa7c64e9e981ff65"
+ },
+ "utssdk/app-android/config.json": {
+ "md5": "c03b88b32cee2468ec84ccd94349139a"
+ }
+ }
+}
\ No newline at end of file
diff --git a/unpackage/cache/uts_standard_android/app-android/uts/uni_modules/fdm-keepalive/classes.dex b/unpackage/cache/uts_standard_android/app-android/uts/uni_modules/fdm-keepalive/classes.dex
new file mode 100644
index 0000000..39aa9a8
Binary files /dev/null and b/unpackage/cache/uts_standard_android/app-android/uts/uni_modules/fdm-keepalive/classes.dex differ
diff --git a/unpackage/cache/uts_standard_android/app-android/uts/uni_modules/fdm-keepalive/index.jar b/unpackage/cache/uts_standard_android/app-android/uts/uni_modules/fdm-keepalive/index.jar
new file mode 100644
index 0000000..058a7df
Binary files /dev/null and b/unpackage/cache/uts_standard_android/app-android/uts/uni_modules/fdm-keepalive/index.jar differ
diff --git a/unpackage/cache/uts_standard_android/app-android/uts/uni_modules/fdm-keepalive/index.kt.map b/unpackage/cache/uts_standard_android/app-android/uts/uni_modules/fdm-keepalive/index.kt.map
new file mode 100644
index 0000000..f453ff8
--- /dev/null
+++ b/unpackage/cache/uts_standard_android/app-android/uts/uni_modules/fdm-keepalive/index.kt.map
@@ -0,0 +1 @@
+{"version":3,"sources":["uni_modules/fdm-keepalive/utssdk/app-android/index.uts"],"sourcesContent":["import Context from \"android.content.Context\";\nimport { UTSAndroid } from \"io.dcloud.uts\";\nimport PowerManager from 'android.os.PowerManager';\nimport Intent from 'android.content.Intent';\nimport Settings from 'android.provider.Settings';\nimport Uri from 'android.net.Uri';\n\nclass WakeLockHelper{\n\tcontext: Context\n\tprivate wakeLock: PowerManager.WakeLock | null = null;\n\tconstructor(context: Context){\n\t\tthis.context = context\n\t}\n\tacquireWakeLock(){\n\t\tlet powerManager = this.context.getSystemService(Context.POWER_SERVICE) as PowerManager;\n\t\tthis.wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,\"MyApp::TestWakeLock\");\n\t\tthis.wakeLock?.acquire();\n\t}\n\treleaseWakeLock() {\n\t\tthis.wakeLock?.release();\n\t\tthis.wakeLock = null\n\t}\n}\n\nexport default function addKeepalive(){\n\tconst context = UTSAndroid.getAppContext();\n\tconst pageName = context!.getPackageName();\n\tconst manager = context!.getSystemService(\n\t\tContext.POWER_SERVICE\n\t) as PowerManager;\n\tif(!manager.isIgnoringBatteryOptimizations(pageName)){\n\t\tlet jumpUrl: Uri = Uri.parse(\"package:\" + pageName);\n\t\tlet intent = new Intent(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS, jumpUrl);\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tUTSAndroid.getAppContext()!.startActivity(intent);\n\t}\n\tlet wakeCtrl = new WakeLockHelper(context);\n\twakeCtrl.acquireWakeLock();\n\tconsole.log(manager.isInteractive());\n}\n"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAoB,uBAAyB,CAAC;AAG9C,OAAmB,sBAAwB,CAAC;AAD5C,OAAyB,uBAAyB,CAAC;AAEnD,OAAqB,yBAA2B,CAAC;AAHjD,qBAAS;AAIT,OAAgB,eAAiB,CAAC;AAElC,WAAM;IACL,SAAA,SAAS,QAAO;IAChB,YAAQ,UAAU,aAAa,YAAkB,IAAI,CAAC;IACtD,YAAY,SAAS,OAAO,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG;IAChB;IACA,SAAA,kBAAiB;QAChB,IAAI,eAAe,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,aAAa,EAAE,EAAE,CAAC;QAC3E,IAAI,CAAC,QAAQ,GAAG,aAAa,WAAW,CAAC,aAAa,iBAAiB,EAAC;QACxE,IAAI,CAAC,QAAQ,EAAE;IAChB;IACA,SAAA,kBAAkB;QACjB,IAAI,CAAC,QAAQ,EAAE;QACf,IAAI,CAAC,QAAQ,GAAG,IAAI;IACrB;AACD;AAEe,IAAS,eAAc;IACrC,IAAM,UAAU,WAAW,aAAa;IACxC,IAAM,WAAW,UAAS,cAAc;IACxC,IAAM,UAAU,UAAS,gBAAgB,CACxC,QAAQ,aAAa,EACpB,EAAE,CAAC;IACL,IAAG,CAAC,QAAQ,8BAA8B,CAAC,WAAU;QACpD,IAAI,SAAS,MAAM,IAAI,KAAK,CAAC,aAAa;QAC1C,IAAI,SAAS,AAAI,OAAO,SAAS,2CAA2C,EAAE;QAC9E,OAAO,QAAQ,CAAC,OAAO,sBAAsB;QAC7C,WAAW,aAAa,KAAI,aAAa,CAAC;IAC3C;IACA,IAAI,WAAW,AAAI,eAAe;IAClC,SAAS,eAAe;IACxB,QAAQ,GAAG,CAAC,QAAQ,aAAa;AAClC"}
\ No newline at end of file
diff --git a/unpackage/cache/uts_standard_android/app-android/uts/uni_modules/fdm-keepalive/manifest.json b/unpackage/cache/uts_standard_android/app-android/uts/uni_modules/fdm-keepalive/manifest.json
new file mode 100644
index 0000000..f973f06
--- /dev/null
+++ b/unpackage/cache/uts_standard_android/app-android/uts/uni_modules/fdm-keepalive/manifest.json
@@ -0,0 +1,20 @@
+{
+ "version": "1",
+ "env": {
+ "compilerVersion": "3.99.2023122611"
+ },
+ "files": {
+ "utssdk/app-android/index.uts": {
+ "md5": "2941540f85b8319ebb4b1e037e800400"
+ },
+ "package.json": {
+ "md5": "abd8bdc28aa16ec02660cf67704aa18c"
+ },
+ "utssdk/app-android/AndroidManifest.xml": {
+ "md5": "8ad9237e5e2a09e1aa7c64e9e981ff65"
+ },
+ "utssdk/app-android/config.json": {
+ "md5": "c03b88b32cee2468ec84ccd94349139a"
+ }
+ }
+}
\ No newline at end of file
diff --git a/unpackage/cache/wgt/__UNI__BAAC5A9/.manifest/HXDependencies/app-android/uts/uni_modules/fdm-keepalive/index.kt.map b/unpackage/cache/wgt/__UNI__BAAC5A9/.manifest/HXDependencies/app-android/uts/uni_modules/fdm-keepalive/index.kt.map
new file mode 100644
index 0000000..e7fcb08
--- /dev/null
+++ b/unpackage/cache/wgt/__UNI__BAAC5A9/.manifest/HXDependencies/app-android/uts/uni_modules/fdm-keepalive/index.kt.map
@@ -0,0 +1 @@
+{"version":3,"sources":["uni_modules/fdm-keepalive/utssdk/app-android/index.uts"],"sourcesContent":["import Context from \"android.content.Context\";\nimport { UTSAndroid } from \"io.dcloud.uts\";\nimport PowerManager from 'android.os.PowerManager';\nimport Intent from 'android.content.Intent';\nimport Settings from 'android.provider.Settings';\nimport Uri from 'android.net.Uri';\n\nclass WakeLockHelper{\n\tcontext: Context\n\tprivate wakeLock: PowerManager.WakeLock | null = null;\n\tconstructor(context: Context){\n\t\tthis.context = context\n\t}\n\tacquireWakeLock(){\n\t\tlet powerManager = this.context.getSystemService(Context.POWER_SERVICE) as PowerManager;\n\t\tthis.wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,\"MyApp::TestWakeLock\");\n\t\tthis.wakeLock?.acquire();\n\t}\n\treleaseWakeLock() {\n\t\tthis.wakeLock?.release();\n\t\tthis.wakeLock = null\n\t}\n}\n\nexport default function addKeepalive(){\n\tconst context = UTSAndroid.getAppContext();\n\tconst pageName = context!.getPackageName();\n\tconst manager = context!.getSystemService(\n\t\tContext.POWER_SERVICE\n\t) as PowerManager;\n\tif(!manager.isIgnoringBatteryOptimizations(pageName)){\n\t\tlet jumpUrl: Uri = Uri.parse(\"package:\" + pageName);\n\t\tlet intent = new Intent(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS, jumpUrl);\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tUTSAndroid.getAppContext()!.startActivity(intent);\n\t}\n\tlet wakeCtrl = new WakeLockHelper(context);\n\twakeCtrl.acquireWakeLock();\n\tconsole.log(manager.isInteractive());\n}\n"],"names":[],"mappings":";;;;;;;AAAA,OAAoB,uBAAyB,CAAC;AAC9C;AACA,OAAyB,uBAAyB,CAAC;AACnD,OAAmB,sBAAwB,CAAC;AAC5C,OAAqB,yBAA2B,CAAC;AACjD,OAAgB,eAAiB,CAAC;AAElC,WAAM;IACL,SAAA,SAAS,QAAO;IAChB,YAAQ,UAAU,aAAa,YAAkB,IAAI,CAAC;IACtD,YAAY,SAAS,OAAO,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG;IAChB;IACA,SAAA,kBAAiB;QAChB,IAAI,eAAe,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,aAAa,KAAK;QAC3E,IAAI,CAAC,QAAQ,GAAG,aAAa,WAAW,CAAC,aAAa,iBAAiB,EAAC;QACxE,IAAI,CAAC,QAAQ,EAAE;IAChB;IACA,SAAA,kBAAkB;QACjB,IAAI,CAAC,QAAQ,EAAE;QACf,IAAI,CAAC,QAAQ,GAAG,IAAI;IACrB;AACD;AAEe,IAAS,eAAc;IACrC,IAAM,UAAU,WAAW,aAAa;IACxC,IAAM,WAAW,UAAS,cAAc;IACxC,IAAM,UAAU,UAAS,gBAAgB,CACxC,QAAQ,aAAa,KACjB;IACL,IAAG,CAAC,QAAQ,8BAA8B,CAAC,WAAU;QACpD,IAAI,SAAS,MAAM,IAAI,KAAK,CAAC,aAAa;QAC1C,IAAI,SAAS,AAAI,OAAO,SAAS,2CAA2C,EAAE;QAC9E,OAAO,QAAQ,CAAC,OAAO,sBAAsB;QAC7C,WAAW,aAAa,KAAI,aAAa,CAAC;IAC3C;IACA,IAAI,WAAW,AAAI,eAAe;IAClC,SAAS,eAAe;IACxB,QAAQ,GAAG,CAAC,QAAQ,aAAa;AAClC"}
\ No newline at end of file
diff --git a/unpackage/cache/wgt/__UNI__BAAC5A9/.manifest/HXDependencies/app-android/uts/uni_modules/fdm-keepalive/manifest.json b/unpackage/cache/wgt/__UNI__BAAC5A9/.manifest/HXDependencies/app-android/uts/uni_modules/fdm-keepalive/manifest.json
new file mode 100644
index 0000000..f973f06
--- /dev/null
+++ b/unpackage/cache/wgt/__UNI__BAAC5A9/.manifest/HXDependencies/app-android/uts/uni_modules/fdm-keepalive/manifest.json
@@ -0,0 +1,20 @@
+{
+ "version": "1",
+ "env": {
+ "compilerVersion": "3.99.2023122611"
+ },
+ "files": {
+ "utssdk/app-android/index.uts": {
+ "md5": "2941540f85b8319ebb4b1e037e800400"
+ },
+ "package.json": {
+ "md5": "abd8bdc28aa16ec02660cf67704aa18c"
+ },
+ "utssdk/app-android/AndroidManifest.xml": {
+ "md5": "8ad9237e5e2a09e1aa7c64e9e981ff65"
+ },
+ "utssdk/app-android/config.json": {
+ "md5": "c03b88b32cee2468ec84ccd94349139a"
+ }
+ }
+}
\ No newline at end of file
diff --git a/unpackage/cache/wgt/__UNI__BAAC5A9/__uniappchooselocation.js b/unpackage/cache/wgt/__UNI__BAAC5A9/__uniappchooselocation.js
new file mode 100644
index 0000000..bd11f4b
--- /dev/null
+++ b/unpackage/cache/wgt/__UNI__BAAC5A9/__uniappchooselocation.js
@@ -0,0 +1 @@
+!function(e){var t={};function A(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,A),i.l=!0,i.exports}A.m=e,A.c=t,A.d=function(e,t,a){A.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},A.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},A.t=function(e,t){if(1&t&&(e=A(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(A.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)A.d(a,i,function(t){return e[t]}.bind(null,i));return a},A.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return A.d(t,"a",t),t},A.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},A.p="",A(A.s=41)}([function(e,t){e.exports={}},function(e,t,A){"use strict";function a(e,t,A,a,i,n,o,s,r,c){var l,u="function"==typeof e?e.options:e;if(r){u.components||(u.components={});var d=Object.prototype.hasOwnProperty;for(var h in r)d.call(r,h)&&!d.call(u.components,h)&&(u.components[h]=r[h])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(u.mixins||(u.mixins=[])).push(c)),t&&(u.render=t,u.staticRenderFns=A,u._compiled=!0),a&&(u.functional=!0),n&&(u._scopeId="data-v-"+n),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var f=u.render;u.render=function(e,t){return l.call(t),f(e,t)}}else{var g=u.beforeCreate;u.beforeCreate=g?[].concat(g,l):[l]}return{exports:e,options:u}}A.d(t,"a",(function(){return a}))},function(e,t,A){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.weexPlus=t.default=void 0,a="function"==typeof getUni?getUni:function(){var e=function(e){return"function"==typeof e},t=function(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))},A=/^\$|^on|^create|Sync$|Manager$|^pause/,a=["os","getCurrentSubNVue","getSubNVueById","stopRecord","stopVoice","stopBackgroundAudio","stopPullDownRefresh","hideKeyboard","hideToast","hideLoading","showNavigationBarLoading","hideNavigationBarLoading","canIUse","navigateBack","closeSocket","pageScrollTo","drawCanvas"],n=function(e){return(!A.test(e)||"createBLEConnection"===e)&&!~a.indexOf(e)},o=function(A){return function(){for(var a=arguments.length,i=Array(a>1?a-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{};return e(o.success)||e(o.fail)||e(o.complete)?A.apply(void 0,[o].concat(i)):t(new Promise((function(e,t){A.apply(void 0,[Object.assign({},o,{success:e,fail:t})].concat(i)),Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(A){return t.resolve(e()).then((function(){return A}))}),(function(A){return t.resolve(e()).then((function(){throw A}))}))}})))}},s=[],r=void 0;function c(e){s.forEach((function(t){return t({origin:r,data:e})}))}var l=i.webview.currentWebview().id,u=new BroadcastChannel("UNI-APP-SUBNVUE");function d(e){var t=i.webview.getWebviewById(e);return t&&!t.$processed&&function(e){e.$processed=!0;var t=i.webview.currentWebview().id===e.id,A="uniNView"===e.__uniapp_origin_type&&e.__uniapp_origin_id,a=e.id;if(e.postMessage=function(e){A?u.postMessage({data:e,to:t?A:a}):w({type:"UniAppSubNVue",data:e})},e.onMessage=function(e){s.push(e)},e.__uniapp_mask_id){r=e.__uniapp_host;var n=e.__uniapp_mask,o=i.webview.getWebviewById(e.__uniapp_mask_id);o=o.parent()||o;var c=e.show,l=e.hide,d=e.close,h=function(){o.setStyle({mask:n})},f=function(){o.setStyle({mask:"none"})};e.show=function(){h();for(var t=arguments.length,A=Array(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:"GET",A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/x-www-form-urlencoded";return"object"===(void 0===e?"undefined":j(e))?"POST"===t.toUpperCase()&&"application/json"===A.toLowerCase()?JSON.stringify(e):Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&"):e},G=weex.requireModule("plusstorage"),T=weex.requireModule("clipboard"),Q=function(){if("function"==typeof getUniEmitter)return getUniEmitter;var e={$on:function(){console.warn("uni.$on failed")},$off:function(){console.warn("uni.$off failed")},$once:function(){console.warn("uni.$once failed")},$emit:function(){console.warn("uni.$emit failed")}};return function(){return e}}();function U(e,t,A){return e[t].apply(e,A)}var F=Object.freeze({loadFontFace:function(t){var A=t.family,a=t.source,i=(t.desc,t.success),n=(t.fail,t.complete);E.addRule("fontFace",{fontFamily:A,src:a.replace(/"/g,"'")});var o={errMsg:"loadFontFace:ok",status:"loaded"};e(i)&&i(o),e(n)&&n(o)},ready:N,request:function(t){var A=t.url,a=t.data,i=t.header,n=t.method,o=void 0===n?"GET":n,s=t.dataType,r=void 0===s?"json":s,c=(t.responseType,t.success),l=t.fail,u=t.complete,d=!1,h=!1,f={};if(i)for(var g in i)h||"content-type"!==g.toLowerCase()?f[g]=i[g]:(h=!0,f["Content-Type"]=i[g]);return"GET"===o&&a&&(A=A+(~A.indexOf("?")?"&"===A.substr(-1)||"?"===A.substr(-1)?"":"&":"?")+P(a)),O.fetch({url:A,method:o,headers:f,type:"json"===r?"json":"text",body:"GET"!==o?P(a,o,f["Content-Type"]):""},(function(t){var A=t.status,a=(t.ok,t.statusText,t.data),i=t.headers,n={};!A||-1===A||d?(n.errMsg="request:fail",e(l)&&l(n)):(n.data=a,n.statusCode=A,n.header=i,e(c)&&c(n)),e(u)&&u(n)})),{abort:function(){d=!0}}},getStorage:function(t){var A=t.key,a=(t.data,t.success),i=t.fail,n=t.complete;G.getItem(A+"__TYPE",(function(t){if("success"===t.result){var o=t.data;G.getItem(A,(function(t){if("success"===t.result){var A=t.data;o&&A?("String"!==o&&(A=JSON.parse(A)),e(a)&&a({errMsg:"getStorage:ok",data:A})):(t.errMsg="setStorage:fail",e(i)&&i(t))}else t.errMsg="setStorage:fail",e(i)&&i(t);e(n)&&n(t)}))}else t.errMsg="setStorage:fail",e(i)&&i(t),e(n)&&n(t)}))},setStorage:function(t){var A=t.key,a=t.data,i=t.success,n=t.fail,o=t.complete,s="String";"object"===(void 0===a?"undefined":j(a))&&(s="Object",a=JSON.stringify(a)),G.setItem(A,a,(function(t){"success"===t.result?G.setItem(A+"__TYPE",s,(function(t){"success"===t.result?e(i)&&i({errMsg:"setStorage:ok"}):(t.errMsg="setStorage:fail",e(n)&&n(t))})):(t.errMsg="setStorage:fail",e(n)&&n(t)),e(o)&&o(t)}))},removeStorage:function(t){var A=t.key,a=(t.data,t.success),i=t.fail,n=t.complete;G.removeItem(A,(function(t){"success"===t.result?e(a)&&a({errMsg:"removeStorage:ok"}):(t.errMsg="removeStorage:fail",e(i)&&i(t)),e(n)&&n(t)})),G.removeItem(A+"__TYPE")},clearStorage:function(e){e.key,e.data,e.success,e.fail,e.complete},getClipboardData:function(t){var A=t.success,a=(t.fail,t.complete);T.getString((function(t){var i={errMsg:"getClipboardData:ok",data:t.data};e(A)&&A(i),e(a)&&a(i)}))},setClipboardData:function(t){var A=t.data,a=t.success,i=(t.fail,t.complete),n={errMsg:"setClipboardData:ok"};T.setString(A),e(a)&&a(n),e(i)&&i(n)},onSubNVueMessage:c,getSubNVueById:d,getCurrentSubNVue:function(){return d(i.webview.currentWebview().id)},$on:function(){return U(Q(),"$on",[].concat(Array.prototype.slice.call(arguments)))},$off:function(){return U(Q(),"$off",[].concat(Array.prototype.slice.call(arguments)))},$once:function(){return U(Q(),"$once",[].concat(Array.prototype.slice.call(arguments)))},$emit:function(){return U(Q(),"$emit",[].concat(Array.prototype.slice.call(arguments)))}}),R={os:{nvue:!0}},V={};return"undefined"!=typeof Proxy?V=new Proxy({},{get:function(e,t){if("os"===t)return{nvue:!0};if("postMessage"===t)return w;if("requireNativePlugin"===t)return I;if("onNavigationBarButtonTap"===t)return S;if("onNavigationBarSearchInputChanged"===t)return C;if("onNavigationBarSearchInputConfirmed"===t)return D;if("onNavigationBarSearchInputClicked"===t)return L;var A=F[t];return A||(A=b(t)),n(t)?o(A):A}}):(Object.keys(R).forEach((function(e){V[e]=R[e]})),V.postMessage=w,V.requireNativePlugin=I,V.onNavigationBarButtonTap=S,V.onNavigationBarSearchInputChanged=C,V.onNavigationBarSearchInputConfirmed=D,V.onNavigationBarSearchInputClicked=L,Object.keys({uploadFile:!0,downloadFile:!0,chooseImage:!0,previewImage:!0,getImageInfo:!0,saveImageToPhotosAlbum:!0,chooseVideo:!0,saveVideoToPhotosAlbum:!0,saveFile:!0,getSavedFileList:!0,getSavedFileInfo:!0,removeSavedFile:!0,openDocument:!0,setStorage:!0,getStorage:!0,getStorageInfo:!0,removeStorage:!0,clearStorage:!0,getLocation:!0,chooseLocation:!0,openLocation:!0,getSystemInfo:!0,getNetworkType:!0,makePhoneCall:!0,scanCode:!0,setScreenBrightness:!0,getScreenBrightness:!0,setKeepScreenOn:!0,vibrateLong:!0,vibrateShort:!0,addPhoneContact:!0,showToast:!0,showLoading:!0,hideToast:!0,hideLoading:!0,showModal:!0,showActionSheet:!0,setNavigationBarTitle:!0,setNavigationBarColor:!0,navigateTo:!0,redirectTo:!0,reLaunch:!0,switchTab:!0,navigateBack:!0,getProvider:!0,login:!0,getUserInfo:!0,share:!0,requestPayment:!0,subscribePush:!0,unsubscribePush:!0,onPush:!0,offPush:!0}).forEach((function(e){var t=F[e];t||(t=b(e)),n(e)?V[e]=o(t):V[e]=t}))),V};var i=new WeexPlus(weex);t.weexPlus=i;var n=a(weex,i,BroadcastChannel);t.default=n},function(e,t,A){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(A(4).default,Vue.prototype.__$appStyle__)},function(e,t,A){"use strict";A.r(t);var a=A(0),i=A.n(a);for(var n in a)"default"!==n&&function(e){A.d(t,e,(function(){return a[e]}))}(n);t.default=i.a},function(e,t,A){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var A={onLoad:function(){this.initMessage()},methods:{initMessage:function(){var t=this,A=e.webview.currentWebview().extras||{},a=A.from,i=(A.callback,A.runtime),n=A.data,o=void 0===n?{}:n,s=A.useGlobalEvent;this.__from=a,this.__runtime=i,this.__page=e.webview.currentWebview().id,this.__useGlobalEvent=s,this.data=JSON.parse(JSON.stringify(o)),e.key.addEventListener("backbutton",(function(){"function"==typeof t.onClose?t.onClose():e.webview.currentWebview().close("auto")}));var r=this,c=function(e){var t=e.data&&e.data.__message;t&&r.__onMessageCallback&&r.__onMessageCallback(t.data)};this.__useGlobalEvent?weex.requireModule("globalEvent").addEventListener("plusMessage",c):new BroadcastChannel(this.__page).onmessage=c},postMessage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},A=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:t,keep:A}})),i=this.__from;if("v8"===this.__runtime)if(this.__useGlobalEvent)e.webview.postMessageToUniNView(a,i);else{var n=new BroadcastChannel(i);n.postMessage(a)}else{var o=e.webview.getWebviewById(i);o&&o.evalJS("__plusMessage&&__plusMessage(".concat(JSON.stringify({data:a}),")"))}},onMessage:function(e){this.__onMessageCallback=e}}};t.default=A}).call(this,A(2).weexPlus)},function(e,t,A){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var A={data:function(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"完成",cancel:"取消"},"zh-hans":{},"zh-hant":{},messages:{}}}},onLoad:function(){this.initLocale()},created:function(){this.initLocale()},methods:{initLocale:function(){if(!this.__initLocale){this.__initLocale=!0;var t=(e.webview.currentWebview().extras||{}).data||{};if(t.messages&&(this.localization.messages=t.messages),t.locale)this.locale=t.locale.toLowerCase();else{var A=e.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),a=A[1];a&&(A[1]={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"}[a]||a),A.length=A.length>2?2:A.length,this.locale=A.join("-")}}},localize:function(e){var t=this.locale,A=t.split("-")[0],a=this.fallbackLocale,i=this.localization;function n(e){return i[e]||{}}return n("messages")[e]||n(t)[e]||n(A)[e]||n(a)[e]||e}}};t.default=A}).call(this,A(2).weexPlus)},function(e,t,A){"use strict";var a=A(29),i=A(12),n=A(1);var o=Object(n.a)(i.default,a.b,a.c,!1,null,null,"14d2bcf2",!1,a.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(A(36).default,this.options.style):Object.assign(this.options.style,A(36).default)}).call(o),t.default=o.exports},,,,,function(e,t,A){"use strict";var a=A(13),i=A.n(a);t.default=i.a},function(e,t,A){"use strict";(function(e,a){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(A(5)),n=o(A(6));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,a)}return A}function r(e,t,A){return t in e?Object.defineProperty(e,t,{value:A,enumerable:!0,configurable:!0,writable:!0}):e[t]=A,e}weex.requireModule("dom").addRule("fontFace",{fontFamily:"unichooselocation",src:"url('data:font/truetype;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzI8gE4kAAABfAAAAFZjbWFw4nGd6QAAAegAAAGyZ2x5Zn61L/EAAAOoAAACJGhlYWQXJ/zZAAAA4AAAADZoaGVhB94DhgAAALwAAAAkaG10eBQAAAAAAAHUAAAAFGxvY2EBUAGyAAADnAAAAAxtYXhwARMAZgAAARgAAAAgbmFtZWs+cdAAAAXMAAAC2XBvc3SV1XYLAAAIqAAAAE4AAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAUAAQAAAAEAAFP+qyxfDzz1AAsEAAAAAADaBFxuAAAAANoEXG4AAP+gBAADYAAAAAgAAgAAAAAAAAABAAAABQBaAAQAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQQAAZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5grsMgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAAAAAFAAAAAwAAACwAAAAEAAABcgABAAAAAABsAAMAAQAAACwAAwAKAAABcgAEAEAAAAAKAAgAAgAC5grmHOZR7DL//wAA5grmHOZR7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UXkH+XMWzfh1Dte1i2Pe3QkC77Zel7aehpO8wyHG6Dtt0NjKxhN6I4uSli/TqJiJJDUQ4NDCURXTrXRy1XcumyD24M+AzhD1RXIIZsl/LoyZmurJHDM7s8lvB2FQ/PmPJ6PseAXP5HGMYAAC7ABbgAF+ACXIALcAEuwAW4ABfgAlyAC3ABLsAFuID/d8Cx4NEt8/byOf0wLnis8zjMq9/Kp7bWw4JOj8u8TlhRl+G/Mp2wpOX48GffvvZ1CyL4B53LAS6zb08EAAAAAElFTkSuQmCC";var u={mixins:[i.default,n.default],data:function(){return{positionIcon:l,mapScale:16,userKeyword:"",showLocation:!0,latitude:39.908692,longitude:116.397477,nearList:[],nearSelectedIndex:-1,nearLoading:!1,nearLoadingEnd:!1,noNearData:!1,isUserLocation:!1,statusBarHeight:20,mapHeight:250,markers:[{id:"location",latitude:39.908692,longitude:116.397477,zIndex:"1",iconPath:l,width:26,height:36}],showSearch:!1,searchList:[],searchSelectedIndex:-1,searchLoading:!1,searchEnd:!1,noSearchData:!1,localization:{en:{search_tips:"Search for a place",no_found:"No results found",nearby:"Nearby",more:"More"},zh:{search_tips:"搜索地点",no_found:"对不起,没有搜索到相关数据",nearby:"附近",more:"更多"}},searchNearFlag:!0,searchMethod:"poiSearchNearBy"}},computed:{disableOK:function(){return this.nearSelectedIndex<0&&this.searchSelectedIndex<0},searchMethods:function(){return[{title:this.localize("nearby"),method:"poiSearchNearBy"},{title:this.localize("more"),method:"poiKeywordsSearch"}]}},filters:{distance:function(e){return e>100?"".concat(e>1e3?(e/1e3).toFixed(1)+"k":e.toFixed(0),"m | "):e>0?"100m内 | ":""}},watch:{searchMethod:function(){this._searchPageIndex=1,this.searchEnd=!1,this.searchList=[],this._searchKeyword&&this.search()}},onLoad:function(){this.statusBarHeight=e.navigator.getStatusbarHeight(),this.mapHeight=e.screen.resolutionHeight/2;var t=this.data;this.userKeyword=t.keyword||"",this._searchInputTimer=null,this._searchPageIndex=1,this._searchKeyword="",this._nearPageIndex=1,this._hasUserLocation=!1,this._userLatitude=0,this._userLongitude=0},onReady:function(){this.mapContext=this.$refs.map1,this.data.latitude&&this.data.longitude?(this._hasUserLocation=!0,this.moveToCenter({latitude:this.data.latitude,longitude:this.data.longitude})):this.getUserLocation()},onUnload:function(){this.clearSearchTimer()},methods:{cancelClick:function(){this.postMessage({event:"cancel"})},doneClick:function(){if(!this.disableOK){var e=this.showSearch&&this.searchSelectedIndex>=0?this.searchList[this.searchSelectedIndex]:this.nearList[this.nearSelectedIndex],t={name:e.name,address:e.address,latitude:e.location.latitude,longitude:e.location.longitude};this.postMessage({event:"selected",detail:t})}},getUserLocation:function(){var t=this;e.geolocation.getCurrentPosition((function(e){var A=e.coordsType,a=e.coords;"wgs84"===A.toLowerCase()?t.wgs84togcjo2(a,(function(e){t.getUserLocationSuccess(e)})):t.getUserLocationSuccess(a)}),(function(e){t._hasUserLocation=!0,a("log","Gelocation Error: code - "+e.code+"; message - "+e.message," at template/__uniappchooselocation.nvue:292")}),{geocode:!1})},getUserLocationSuccess:function(e){this._userLatitude=e.latitude,this._userLongitude=e.longitude,this._hasUserLocation=!0,this.moveToCenter({latitude:e.latitude,longitude:e.longitude})},searchclick:function(t){this.showSearch=t,!1===t&&e.key.hideSoftKeybord()},showSearchView:function(){this.searchList=[],this.showSearch=!0},hideSearchView:function(){this.showSearch=!1,e.key.hideSoftKeybord(),this.noSearchData=!1,this.searchSelectedIndex=-1,this._searchKeyword=""},onregionchange:function(e){var t=this,A=e.detail,a=A.type||e.type;"drag"===(A.causedBy||e.causedBy)&&"end"===a&&this.mapContext.getCenterLocation((function(e){t.searchNearFlag?t.moveToCenter({latitude:e.latitude,longitude:e.longitude}):t.searchNearFlag=!t.searchNearFlag}))},onItemClick:function(e,t){this.searchNearFlag=!1,t.stopPropagation&&t.stopPropagation(),this.nearSelectedIndex!==e&&(this.nearSelectedIndex=e),this.moveToLocation(this.nearList[e]&&this.nearList[e].location)},moveToCenter:function(e){this.latitude===e.latitude&&this.longitude===e.longitude||(this.latitude=e.latitude,this.longitude=e.longitude,this.updateCenter(e),this.moveToLocation(e),this.isUserLocation=this._userLatitude===e.latitude&&this._userLongitude===e.longitude)},updateCenter:function(e){var t=this;this.nearSelectedIndex=-1,this.nearList=[],this._hasUserLocation&&(this._nearPageIndex=1,this.nearLoadingEnd=!1,this.reverseGeocode(e),this.searchNearByPoint(e),this.onItemClick(0,{stopPropagation:function(){t.searchNearFlag=!0}}),this.$refs.nearListLoadmore.resetLoadmore())},searchNear:function(){this.nearLoadingEnd||this.searchNearByPoint({latitude:this.latitude,longitude:this.longitude})},searchNearByPoint:function(e){var t=this;this.noNearData=!1,this.nearLoading=!0,c.poiSearchNearBy({point:{latitude:e.latitude,longitude:e.longitude},key:this.userKeyword,sortrule:1,index:this._nearPageIndex,radius:1e3},(function(e){t.nearLoading=!1,t._nearPageIndex=e.pageIndex+1,t.nearLoadingEnd=e.pageIndex===e.pageNumber,e.poiList&&e.poiList.length?(t.fixPois(e.poiList),t.nearList=t.nearList.concat(e.poiList),t.fixNearList()):t.noNearData=0===t.nearList.length}))},moveToLocation:function(e){e&&this.mapContext.moveToLocation(function(e){for(var t=1;t=2&&"地图位置"===e[0].name){var t=this.getAddressStart(e[1]),A=e[0].address;A.startsWith(t)&&(e[0].name=A.substring(t.length))}},onsearchinput:function(e){var t=this,A=e.detail.value.replace(/^\s+|\s+$/g,"");this.clearSearchTimer(),this._searchInputTimer=setTimeout((function(){clearTimeout(t._searchInputTimer),t._searchPageIndex=1,t.searchEnd=!1,t._searchKeyword=A,t.searchList=[],t.search()}),300)},clearSearchTimer:function(){this._searchInputTimer&&clearTimeout(this._searchInputTimer)},search:function(){var e=this;0===this._searchKeyword.length||this._searchEnd||this.searchLoading||(this.searchLoading=!0,this.noSearchData=!1,c[this.searchMethod]({point:{latitude:this.latitude,longitude:this.longitude},key:this._searchKeyword,sortrule:1,index:this._searchPageIndex,radius:5e4},(function(t){e.searchLoading=!1,e._searchPageIndex=t.pageIndex+1,e.searchEnd=t.pageIndex===t.pageNumber,t.poiList&&t.poiList.length?(e.fixPois(t.poiList),e.searchList=e.searchList.concat(t.poiList)):e.noSearchData=0===e.searchList.length})))},onSearchListTouchStart:function(){e.key.hideSoftKeybord()},onSearchItemClick:function(e,t){t.stopPropagation(),this.searchSelectedIndex!==e&&(this.searchSelectedIndex=e),this.moveToLocation(this.searchList[e]&&this.searchList[e].location)},getAddressStart:function(e){var t=e.addressOrigin||e.address;return e.province+(e.province===e.city?"":e.city)+(/^\d+$/.test(e.district)?"":t.startsWith(e.district)?"":e.district)},fixPois:function(e){for(var t=0;t1?t-1:0),a=1;a1){var r=o.pop();s=o.join("---COMMA---"),0===r.indexOf(" at ")?s+=r:s+="---COMMA---"+r}else s=o[0];console[n](s)}},function(e,t,A){"use strict";A.r(t);var a=A(14),i=A.n(a);for(var n in a)"default"!==n&&function(e){A.d(t,e,(function(){return a[e]}))}(n);t.default=i.a},,,,,function(e,t,A){"use strict";A.r(t);A(3);var a=A(7);a.default.mpType="page",a.default.route="template/__uniappchooselocation",a.default.el="#root",new Vue(a.default)}]);
\ No newline at end of file
diff --git a/unpackage/cache/wgt/__UNI__BAAC5A9/__uniapperror.png b/unpackage/cache/wgt/__UNI__BAAC5A9/__uniapperror.png
new file mode 100644
index 0000000..4743b25
Binary files /dev/null and b/unpackage/cache/wgt/__UNI__BAAC5A9/__uniapperror.png differ
diff --git a/unpackage/cache/wgt/__UNI__BAAC5A9/__uniappes6.js b/unpackage/cache/wgt/__UNI__BAAC5A9/__uniappes6.js
new file mode 100644
index 0000000..d4018e8
--- /dev/null
+++ b/unpackage/cache/wgt/__UNI__BAAC5A9/__uniappes6.js
@@ -0,0 +1 @@
+!function(t){"use strict";!function(t){var r={};function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)n.d(e,o,function(r){return t[r]}.bind(null,o));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=0)}([function(t,r,n){n(1),n(54),n(61),n(66),n(68),n(69),n(70),n(71),n(73),n(74),n(76),n(84),n(85),n(86),n(95),n(96),n(98),n(99),n(100),n(102),n(103),n(104),n(105),n(106),n(107),n(109),n(110),n(111),n(112),n(121),n(124),n(125),n(127),n(129),n(130),n(131),n(132),n(133),n(135),n(137),n(140),n(141),n(143),n(145),n(146),n(147),n(148),n(150),n(151),n(152),n(153),n(154),n(156),n(157),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(170),n(171),n(172),n(174),n(178),n(179),n(180),n(181),n(187),n(189),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(201),n(202),n(203),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),t.exports=n(217)},function(r,n,e){var o=e(2),i=e(6),u=e(45),c=e(14),a=e(46),f=e(39),s=e(47),l=e(48),p=e(51),g=e(49),v=e(52),h=g("isConcatSpreadable"),d=v>=51||!i(function(){var t=[];return t[h]=!1,t.concat()[0]!==t}),x=p("concat"),y=function(r){if(!c(r))return!1;var n=r[h];return n!==t?!!n:u(r)};o({target:"Array",proto:!0,forced:!d||!x},{concat:function(t){var r,n,e,o,i,u=a(this),c=l(u,0),p=0;for(r=-1,e=arguments.length;r9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(c,p++,i)}return c.length=p,c}})},function(r,n,e){var o=e(3),i=e(4).f,u=e(18),c=e(21),a=e(25),f=e(32),s=e(44);r.exports=function(r,n){var e,l,p,g,v,h=r.target,d=r.global,x=r.stat;if(e=d?o:x?o[h]||a(h,{}):(o[h]||{}).prototype)for(l in n){if(g=n[l],p=r.noTargetGet?(v=i(e,l))&&v.value:e[l],!s(d?l:h+(x?".":"#")+l,r.forced)&&p!==t){if(typeof g==typeof p)continue;f(g,p)}(r.sham||p&&p.sham)&&u(g,"sham",!0),c(e,l,g,r)}}},function(t,r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},function(t,r,n){var e=n(5),o=n(7),i=n(8),u=n(9),c=n(13),a=n(15),f=n(16),s=Object.getOwnPropertyDescriptor;r.f=e?s:function(t,r){if(t=u(t),r=c(r,!0),f)try{return s(t,r)}catch(t){}if(a(t,r))return i(!o.f.call(t,r),t[r])}},function(t,r,n){var e=n(6);t.exports=!e(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,r){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,r,n){var e={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!e.call({1:2},1);r.f=i?function(t){var r=o(this,t);return!!r&&r.enumerable}:e},function(t,r){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},function(t,r,n){var e=n(10),o=n(12);t.exports=function(t){return e(o(t))}},function(t,r,n){var e=n(6),o=n(11),i="".split;t.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,r){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(r,n){r.exports=function(r){if(r==t)throw TypeError("Can't call method on "+r);return r}},function(t,r,n){var e=n(14);t.exports=function(t,r){if(!e(t))return t;var n,o;if(r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!e(o=n.call(t)))return o;if(!r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,r){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,r){var n={}.hasOwnProperty;t.exports=function(t,r){return n.call(t,r)}},function(t,r,n){var e=n(5),o=n(6),i=n(17);t.exports=!e&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(t,r,n){var e=n(3),o=n(14),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,r,n){var e=n(5),o=n(19),i=n(8);t.exports=e?function(t,r,n){return o.f(t,r,i(1,n))}:function(t,r,n){return t[r]=n,t}},function(t,r,n){var e=n(5),o=n(16),i=n(20),u=n(13),c=Object.defineProperty;r.f=e?c:function(t,r,n){if(i(t),r=u(r,!0),i(n),o)try{return c(t,r,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},function(t,r,n){var e=n(14);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},function(t,r,n){var e=n(3),o=n(22),i=n(18),u=n(15),c=n(25),a=n(26),f=n(27),s=f.get,l=f.enforce,p=String(a).split("toString");o("inspectSource",function(t){return a.call(t)}),(t.exports=function(t,r,n,o){var a=!!o&&!!o.unsafe,f=!!o&&!!o.enumerable,s=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof r||u(n,"name")||i(n,"name",r),l(n).source=p.join("string"==typeof r?r:"")),t!==e?(a?!s&&t[r]&&(f=!0):delete t[r],f?t[r]=n:i(t,r,n)):f?t[r]=n:c(r,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&s(this).source||a.call(this)})},function(r,n,e){var o=e(23),i=e(24);(r.exports=function(r,n){return i[r]||(i[r]=n!==t?n:{})})("versions",[]).push({version:"3.3.6",mode:o?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,r){t.exports=!1},function(t,r,n){var e=n(3),o=n(25),i=e["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,r,n){var e=n(3),o=n(18);t.exports=function(t,r){try{o(e,t,r)}catch(n){e[t]=r}return r}},function(t,r,n){var e=n(22);t.exports=e("native-function-to-string",Function.toString)},function(t,r,n){var e,o,i,u=n(28),c=n(3),a=n(14),f=n(18),s=n(15),l=n(29),p=n(31),g=c.WeakMap;if(u){var v=new g,h=v.get,d=v.has,x=v.set;e=function(t,r){return x.call(v,t,r),r},o=function(t){return h.call(v,t)||{}},i=function(t){return d.call(v,t)}}else{var y=l("state");p[y]=!0,e=function(t,r){return f(t,y,r),r},o=function(t){return s(t,y)?t[y]:{}},i=function(t){return s(t,y)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(r){var n;if(!a(r)||(n=o(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,r,n){var e=n(3),o=n(26),i=e.WeakMap;t.exports="function"==typeof i&&/native code/.test(o.call(i))},function(t,r,n){var e=n(22),o=n(30),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(r,n){var e=0,o=Math.random();r.exports=function(r){return"Symbol("+String(r===t?"":r)+")_"+(++e+o).toString(36)}},function(t,r){t.exports={}},function(t,r,n){var e=n(15),o=n(33),i=n(4),u=n(19);t.exports=function(t,r){for(var n=o(r),c=u.f,a=i.f,f=0;fa;)e(c,n=r[a++])&&(~i(f,n)||f.push(n));return f}},function(t,r,n){var e=n(9),o=n(39),i=n(41),u=function(t){return function(r,n,u){var c,a=e(r),f=o(a.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,r,n){var e=n(40),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,r){var n=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:n)(t)}},function(t,r,n){var e=n(40),o=Math.max,i=Math.min;t.exports=function(t,r){var n=e(t);return n<0?o(n+r,0):i(n,r)}},function(t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,r){r.f=Object.getOwnPropertySymbols},function(t,r,n){var e=n(6),o=/#|\.prototype\./,i=function(t,r){var n=c[u(t)];return n==f||n!=a&&("function"==typeof r?e(r):!!r)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,r,n){var e=n(11);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,r,n){var e=n(12);t.exports=function(t){return Object(e(t))}},function(t,r,n){var e=n(13),o=n(19),i=n(8);t.exports=function(t,r,n){var u=e(r);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(r,n,e){var o=e(14),i=e(45),u=e(49)("species");r.exports=function(r,n){var e;return i(r)&&("function"!=typeof(e=r.constructor)||e!==Array&&!i(e.prototype)?o(e)&&null===(e=e[u])&&(e=t):e=t),new(e===t?Array:e)(0===n?0:n)}},function(t,r,n){var e=n(3),o=n(22),i=n(30),u=n(50),c=e.Symbol,a=o("wks");t.exports=function(t){return a[t]||(a[t]=u&&c[t]||(u?c:i)("Symbol."+t))}},function(t,r,n){var e=n(6);t.exports=!!Object.getOwnPropertySymbols&&!e(function(){return!String(Symbol())})},function(t,r,n){var e=n(6),o=n(49),i=n(52),u=o("species");t.exports=function(t){return i>=51||!e(function(){var r=[];return(r.constructor={})[u]=function(){return{foo:1}},1!==r[t](Boolean).foo})}},function(t,r,n){var e,o,i=n(3),u=n(53),c=i.process,a=c&&c.versions,f=a&&a.v8;f?o=(e=f.split("."))[0]+e[1]:u&&(!(e=u.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=u.match(/Chrome\/(\d+)/))&&(o=e[1]),t.exports=o&&+o},function(t,r,n){var e=n(34);t.exports=e("navigator","userAgent")||""},function(t,r,n){var e=n(2),o=n(55),i=n(56);e({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},function(r,n,e){var o=e(46),i=e(41),u=e(39),c=Math.min;r.exports=[].copyWithin||function(r,n){var e=o(this),a=u(e.length),f=i(r,a),s=i(n,a),l=arguments.length>2?arguments[2]:t,p=c((l===t?a:i(l,a))-s,a-f),g=1;for(s0;)s in e?e[f]=e[s]:delete e[f],f+=g,s+=g;return e}},function(r,n,e){var o=e(49),i=e(57),u=e(18),c=o("unscopables"),a=Array.prototype;a[c]==t&&u(a,c,i(null)),r.exports=function(t){a[c][t]=!0}},function(r,n,e){var o=e(20),i=e(58),u=e(42),c=e(31),a=e(60),f=e(17),s=e(29)("IE_PROTO"),l=function(){},p=function(){var t,r=f("iframe"),n=u.length;for(r.style.display="none",a.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write("
+ View
+
+
+
+
+
+
+
+
+
+
+