superapp-miniapp-invoke-native 1.10.0 → 1.10.2

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/lib/main.js CHANGED
@@ -11,20 +11,20 @@ var Ce = (t, e, r) => e in t ? Lr(t, e, { enumerable: !0, configurable: !0, writ
11
11
  return t;
12
12
  }, T = (t, e) => Ar(t, Or(e));
13
13
  var P = (t, e, r) => (Ce(t, typeof e != "symbol" ? e + "" : e, r), r);
14
- var a = (t, e, r) => new Promise((n, o) => {
15
- var i = (d) => {
14
+ var o = (t, e, r) => new Promise((n, a) => {
15
+ var i = (l) => {
16
16
  try {
17
- s(r.next(d));
18
- } catch (_) {
19
- o(_);
17
+ s(r.next(l));
18
+ } catch (u) {
19
+ a(u);
20
20
  }
21
- }, c = (d) => {
21
+ }, c = (l) => {
22
22
  try {
23
- s(r.throw(d));
24
- } catch (_) {
25
- o(_);
23
+ s(r.throw(l));
24
+ } catch (u) {
25
+ a(u);
26
26
  }
27
- }, s = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(i, c);
27
+ }, s = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(i, c);
28
28
  s((r = r.apply(t, e)).next());
29
29
  });
30
30
  /*! Capacitor: https://capacitorjs.com/ - MIT License */
@@ -32,10 +32,10 @@ const kr = (t) => t.CapacitorPlatforms = ((e) => {
32
32
  const r = /* @__PURE__ */ new Map();
33
33
  r.set("web", { name: "web" });
34
34
  const n = e.CapacitorPlatforms || { currentPlatform: { name: "web" }, platforms: r };
35
- return n.addPlatform = (o, i) => {
36
- n.platforms.set(o, i);
37
- }, n.setPlatform = (o) => {
38
- n.platforms.has(o) && (n.currentPlatform = n.platforms.get(o));
35
+ return n.addPlatform = (a, i) => {
36
+ n.platforms.set(a, i);
37
+ }, n.setPlatform = (a) => {
38
+ n.platforms.has(a) && (n.currentPlatform = n.platforms.get(a));
39
39
  }, n;
40
40
  })(t), je = kr(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {});
41
41
  var j;
@@ -48,26 +48,26 @@ class ve extends Error {
48
48
  }
49
49
  }
50
50
  const br = (t) => {
51
- var e, r, n, o, i;
52
- const c = t.CapacitorCustomPlatform || null, s = t.Capacitor || {}, d = s.Plugins = s.Plugins || {}, _ = t.CapacitorPlatforms, u = ((e = _ == null ? void 0 : _.currentPlatform) === null || e === void 0 ? void 0 : e.getPlatform) || (() => c !== null ? c.name : ((h) => {
51
+ var e, r, n, a, i;
52
+ const c = t.CapacitorCustomPlatform || null, s = t.Capacitor || {}, l = s.Plugins = s.Plugins || {}, u = t.CapacitorPlatforms, _ = ((e = u == null ? void 0 : u.currentPlatform) === null || e === void 0 ? void 0 : e.getPlatform) || (() => c !== null ? c.name : ((h) => {
53
53
  var m, N;
54
54
  return h != null && h.androidBridge ? "android" : !((N = (m = h == null ? void 0 : h.webkit) === null || m === void 0 ? void 0 : m.messageHandlers) === null || N === void 0) && N.bridge ? "ios" : "web";
55
- })(t)), p = ((r = _ == null ? void 0 : _.currentPlatform) === null || r === void 0 ? void 0 : r.isNativePlatform) || (() => u() !== "web"), f = ((n = _ == null ? void 0 : _.currentPlatform) === null || n === void 0 ? void 0 : n.isPluginAvailable) || ((h) => {
55
+ })(t)), p = ((r = u == null ? void 0 : u.currentPlatform) === null || r === void 0 ? void 0 : r.isNativePlatform) || (() => _() !== "web"), f = ((n = u == null ? void 0 : u.currentPlatform) === null || n === void 0 ? void 0 : n.isPluginAvailable) || ((h) => {
56
56
  const m = I.get(h);
57
- return !!(m != null && m.platforms.has(u())) || !!A(h);
58
- }), A = ((o = _ == null ? void 0 : _.currentPlatform) === null || o === void 0 ? void 0 : o.getPluginHeader) || ((h) => {
57
+ return !!(m != null && m.platforms.has(_())) || !!A(h);
58
+ }), A = ((a = u == null ? void 0 : u.currentPlatform) === null || a === void 0 ? void 0 : a.getPluginHeader) || ((h) => {
59
59
  var m;
60
60
  return (m = s.PluginHeaders) === null || m === void 0 ? void 0 : m.find((N) => N.name === h);
61
- }), I = /* @__PURE__ */ new Map(), C = ((i = _ == null ? void 0 : _.currentPlatform) === null || i === void 0 ? void 0 : i.registerPlugin) || ((h, m = {}) => {
61
+ }), I = /* @__PURE__ */ new Map(), C = ((i = u == null ? void 0 : u.currentPlatform) === null || i === void 0 ? void 0 : i.registerPlugin) || ((h, m = {}) => {
62
62
  const N = I.get(h);
63
63
  if (N)
64
64
  return console.warn(`Capacitor plugin "${h}" already registered. Cannot register plugins twice.`), N.proxy;
65
- const v = u(), $ = A(h);
65
+ const v = _(), $ = A(h);
66
66
  let k;
67
67
  const Ne = (O) => {
68
68
  let R;
69
69
  const x = (...Z) => {
70
- const q = (() => a(void 0, null, function* () {
70
+ const q = (() => o(void 0, null, function* () {
71
71
  return !k && v in m ? k = k = typeof m[v] == "function" ? yield m[v]() : m[v] : c !== null && !k && "web" in m && (k = k = typeof m.web == "function" ? yield m.web() : m.web), k;
72
72
  }))().then((K) => {
73
73
  const Fe = ((L, J) => {
@@ -91,17 +91,17 @@ const br = (t) => {
91
91
  }
92
92
  throw new ve(`"${h}.${O}()" is not implemented on ${v}`, j.Unimplemented);
93
93
  });
94
- return O === "addListener" && (q.remove = () => a(void 0, null, function* () {
94
+ return O === "addListener" && (q.remove = () => o(void 0, null, function* () {
95
95
  return R();
96
96
  })), q;
97
97
  };
98
98
  return x.toString = () => `${O.toString()}() { [capacitor code] }`, Object.defineProperty(x, "name", { value: O, writable: !1, configurable: !1 }), x;
99
99
  }, Ue = Ne("addListener"), We = Ne("removeListener"), Cr = (O, R) => {
100
- const x = Ue({ eventName: O }, R), Z = () => a(void 0, null, function* () {
100
+ const x = Ue({ eventName: O }, R), Z = () => o(void 0, null, function* () {
101
101
  const K = yield x;
102
102
  We({ eventName: O, callbackId: K }, R);
103
103
  }), q = new Promise((K) => x.then(() => K({ remove: Z })));
104
- return q.remove = () => a(void 0, null, function* () {
104
+ return q.remove = () => o(void 0, null, function* () {
105
105
  console.warn("Using addListener() without 'await' is deprecated."), yield Z();
106
106
  }), q;
107
107
  }, Me = new Proxy({}, { get(O, R) {
@@ -118,11 +118,11 @@ const br = (t) => {
118
118
  return Ne(R);
119
119
  }
120
120
  } });
121
- return d[h] = Me, I.set(h, { name: h, proxy: Me, platforms: /* @__PURE__ */ new Set([...Object.keys(m), ...$ ? [v] : []]) }), Me;
121
+ return l[h] = Me, I.set(h, { name: h, proxy: Me, platforms: /* @__PURE__ */ new Set([...Object.keys(m), ...$ ? [v] : []]) }), Me;
122
122
  });
123
- return s.convertFileSrc || (s.convertFileSrc = (h) => h), s.getPlatform = u, s.handleError = (h) => t.console.error(h), s.isNativePlatform = p, s.isPluginAvailable = f, s.pluginMethodNoop = (h, m, N) => Promise.reject(`${N} does not have an implementation of "${m}".`), s.registerPlugin = C, s.Exception = ve, s.DEBUG = !!s.DEBUG, s.isLoggingEnabled = !!s.isLoggingEnabled, s.platform = s.getPlatform(), s.isNative = s.isNativePlatform(), s;
124
- }, Tr = (t) => t.Capacitor = br(t), w = Tr(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {}), He = w.registerPlugin;
125
- w.Plugins;
123
+ return s.convertFileSrc || (s.convertFileSrc = (h) => h), s.getPlatform = _, s.handleError = (h) => t.console.error(h), s.isNativePlatform = p, s.isPluginAvailable = f, s.pluginMethodNoop = (h, m, N) => Promise.reject(`${N} does not have an implementation of "${m}".`), s.registerPlugin = C, s.Exception = ve, s.DEBUG = !!s.DEBUG, s.isLoggingEnabled = !!s.isLoggingEnabled, s.platform = s.getPlatform(), s.isNative = s.isNativePlatform(), s;
124
+ }, Tr = (t) => t.Capacitor = br(t), d = Tr(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {}), He = d.registerPlugin;
125
+ d.Plugins;
126
126
  class y {
127
127
  constructor(e) {
128
128
  this.listeners = {}, this.windowListeners = {}, e && (console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`), this.config = e);
@@ -131,15 +131,15 @@ class y {
131
131
  this.listeners[e] || (this.listeners[e] = []), this.listeners[e].push(r);
132
132
  const n = this.windowListeners[e];
133
133
  n && !n.registered && this.addWindowListener(n);
134
- const o = () => a(this, null, function* () {
134
+ const a = () => o(this, null, function* () {
135
135
  return this.removeListener(e, r);
136
- }), i = Promise.resolve({ remove: o });
137
- return Object.defineProperty(i, "remove", { value: () => a(this, null, function* () {
138
- console.warn("Using addListener() without 'await' is deprecated."), yield o();
136
+ }), i = Promise.resolve({ remove: a });
137
+ return Object.defineProperty(i, "remove", { value: () => o(this, null, function* () {
138
+ console.warn("Using addListener() without 'await' is deprecated."), yield a();
139
139
  }) }), i;
140
140
  }
141
141
  removeAllListeners() {
142
- return a(this, null, function* () {
142
+ return o(this, null, function* () {
143
143
  this.listeners = {};
144
144
  for (const e in this.windowListeners)
145
145
  this.removeWindowListener(this.windowListeners[e]);
@@ -148,7 +148,7 @@ class y {
148
148
  }
149
149
  notifyListeners(e, r) {
150
150
  const n = this.listeners[e];
151
- n && n.forEach((o) => o(r));
151
+ n && n.forEach((a) => a(r));
152
152
  }
153
153
  hasListeners(e) {
154
154
  return !!this.listeners[e].length;
@@ -159,18 +159,18 @@ class y {
159
159
  } };
160
160
  }
161
161
  unimplemented(e = "not implemented") {
162
- return new w.Exception(e, j.Unimplemented);
162
+ return new d.Exception(e, j.Unimplemented);
163
163
  }
164
164
  unavailable(e = "not available") {
165
- return new w.Exception(e, j.Unavailable);
165
+ return new d.Exception(e, j.Unavailable);
166
166
  }
167
167
  removeListener(e, r) {
168
- return a(this, null, function* () {
168
+ return o(this, null, function* () {
169
169
  const n = this.listeners[e];
170
170
  if (!n)
171
171
  return;
172
- const o = n.indexOf(r);
173
- this.listeners[e].splice(o, 1), this.listeners[e].length || this.removeWindowListener(this.windowListeners[e]);
172
+ const a = n.indexOf(r);
173
+ this.listeners[e].splice(a, 1), this.listeners[e].length || this.removeWindowListener(this.windowListeners[e]);
174
174
  });
175
175
  }
176
176
  addWindowListener(e) {
@@ -183,28 +183,28 @@ class y {
183
183
  const $e = (t) => encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), qe = (t) => t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
184
184
  class Br extends y {
185
185
  getCookies() {
186
- return a(this, null, function* () {
186
+ return o(this, null, function* () {
187
187
  const e = document.cookie, r = {};
188
188
  return e.split(";").forEach((n) => {
189
189
  if (n.length <= 0)
190
190
  return;
191
- let [o, i] = n.replace(/=/, "CAP_COOKIE").split("CAP_COOKIE");
192
- o = qe(o).trim(), i = qe(i).trim(), r[o] = i;
191
+ let [a, i] = n.replace(/=/, "CAP_COOKIE").split("CAP_COOKIE");
192
+ a = qe(a).trim(), i = qe(i).trim(), r[a] = i;
193
193
  }), r;
194
194
  });
195
195
  }
196
196
  setCookie(e) {
197
- return a(this, null, function* () {
197
+ return o(this, null, function* () {
198
198
  try {
199
- const r = $e(e.key), n = $e(e.value), o = `; expires=${(e.expires || "").replace("expires=", "")}`, i = (e.path || "/").replace("path=", ""), c = e.url != null && e.url.length > 0 ? `domain=${e.url}` : "";
200
- document.cookie = `${r}=${n || ""}${o}; path=${i}; ${c};`;
199
+ const r = $e(e.key), n = $e(e.value), a = `; expires=${(e.expires || "").replace("expires=", "")}`, i = (e.path || "/").replace("path=", ""), c = e.url != null && e.url.length > 0 ? `domain=${e.url}` : "";
200
+ document.cookie = `${r}=${n || ""}${a}; path=${i}; ${c};`;
201
201
  } catch (r) {
202
202
  return Promise.reject(r);
203
203
  }
204
204
  });
205
205
  }
206
206
  deleteCookie(e) {
207
- return a(this, null, function* () {
207
+ return o(this, null, function* () {
208
208
  try {
209
209
  document.cookie = `${e.key}=; Max-Age=0`;
210
210
  } catch (r) {
@@ -213,7 +213,7 @@ class Br extends y {
213
213
  });
214
214
  }
215
215
  clearCookies() {
216
- return a(this, null, function* () {
216
+ return o(this, null, function* () {
217
217
  try {
218
218
  const e = document.cookie.split(";") || [];
219
219
  for (const r of e)
@@ -224,7 +224,7 @@ class Br extends y {
224
224
  });
225
225
  }
226
226
  clearAllCookies() {
227
- return a(this, null, function* () {
227
+ return o(this, null, function* () {
228
228
  try {
229
229
  yield this.clearCookies();
230
230
  } catch (e) {
@@ -235,27 +235,27 @@ class Br extends y {
235
235
  }
236
236
  He("CapacitorCookies", { web: () => new Br() });
237
237
  const Vr = (t, e = {}) => {
238
- const r = Object.assign({ method: t.method || "GET", headers: t.headers }, e), n = ((o = {}) => {
239
- const i = Object.keys(o);
240
- return Object.keys(o).map((c) => c.toLocaleLowerCase()).reduce((c, s, d) => (c[s] = o[i[d]], c), {});
238
+ const r = Object.assign({ method: t.method || "GET", headers: t.headers }, e), n = ((a = {}) => {
239
+ const i = Object.keys(a);
240
+ return Object.keys(a).map((c) => c.toLocaleLowerCase()).reduce((c, s, l) => (c[s] = a[i[l]], c), {});
241
241
  })(t.headers)["content-type"] || "";
242
242
  if (typeof t.data == "string")
243
243
  r.body = t.data;
244
244
  else if (n.includes("application/x-www-form-urlencoded")) {
245
- const o = new URLSearchParams();
245
+ const a = new URLSearchParams();
246
246
  for (const [i, c] of Object.entries(t.data || {}))
247
- o.set(i, c);
248
- r.body = o.toString();
247
+ a.set(i, c);
248
+ r.body = a.toString();
249
249
  } else if (n.includes("multipart/form-data")) {
250
- const o = new FormData();
250
+ const a = new FormData();
251
251
  if (t.data instanceof FormData)
252
252
  t.data.forEach((c, s) => {
253
- o.append(s, c);
253
+ a.append(s, c);
254
254
  });
255
255
  else
256
256
  for (const c of Object.keys(t.data))
257
- o.append(c, t.data[c]);
258
- r.body = o;
257
+ a.append(c, t.data[c]);
258
+ r.body = a;
259
259
  const i = new Headers(r.headers);
260
260
  i.delete("content-type"), r.headers = i;
261
261
  } else
@@ -264,19 +264,19 @@ const Vr = (t, e = {}) => {
264
264
  };
265
265
  class Hr extends y {
266
266
  request(e) {
267
- return a(this, null, function* () {
267
+ return o(this, null, function* () {
268
268
  const r = Vr(e, e.webFetchExtra), n = ((p, f = !0) => p ? Object.entries(p).reduce((A, I) => {
269
269
  const [C, h] = I;
270
270
  let m, N;
271
271
  return Array.isArray(h) ? (N = "", h.forEach((v) => {
272
272
  m = f ? encodeURIComponent(v) : v, N += `${C}=${m}&`;
273
273
  }), N.slice(0, -1)) : (m = f ? encodeURIComponent(h) : h, N = `${C}=${m}`), `${A}&${N}`;
274
- }, "").substr(1) : null)(e.params, e.shouldEncodeUrlParams), o = n ? `${e.url}?${n}` : e.url, i = yield fetch(o, r), c = i.headers.get("content-type") || "";
275
- let s, d, { responseType: _ = "text" } = i.ok ? e : {};
276
- switch (c.includes("application/json") && (_ = "json"), _) {
274
+ }, "").substr(1) : null)(e.params, e.shouldEncodeUrlParams), a = n ? `${e.url}?${n}` : e.url, i = yield fetch(a, r), c = i.headers.get("content-type") || "";
275
+ let s, l, { responseType: u = "text" } = i.ok ? e : {};
276
+ switch (c.includes("application/json") && (u = "json"), u) {
277
277
  case "arraybuffer":
278
278
  case "blob":
279
- d = yield i.blob(), s = yield ((p) => a(this, null, function* () {
279
+ l = yield i.blob(), s = yield ((p) => o(this, null, function* () {
280
280
  return new Promise((f, A) => {
281
281
  const I = new FileReader();
282
282
  I.onload = () => {
@@ -284,7 +284,7 @@ class Hr extends y {
284
284
  f(C.indexOf(",") >= 0 ? C.split(",")[1] : C);
285
285
  }, I.onerror = (C) => A(C), I.readAsDataURL(p);
286
286
  });
287
- }))(d);
287
+ }))(l);
288
288
  break;
289
289
  case "json":
290
290
  s = yield i.json();
@@ -292,40 +292,40 @@ class Hr extends y {
292
292
  default:
293
293
  s = yield i.text();
294
294
  }
295
- const u = {};
295
+ const _ = {};
296
296
  return i.headers.forEach((p, f) => {
297
- u[f] = p;
298
- }), { data: s, headers: u, status: i.status, url: i.url };
297
+ _[f] = p;
298
+ }), { data: s, headers: _, status: i.status, url: i.url };
299
299
  });
300
300
  }
301
301
  get(e) {
302
- return a(this, null, function* () {
302
+ return o(this, null, function* () {
303
303
  return this.request(Object.assign(Object.assign({}, e), { method: "GET" }));
304
304
  });
305
305
  }
306
306
  post(e) {
307
- return a(this, null, function* () {
307
+ return o(this, null, function* () {
308
308
  return this.request(Object.assign(Object.assign({}, e), { method: "POST" }));
309
309
  });
310
310
  }
311
311
  put(e) {
312
- return a(this, null, function* () {
312
+ return o(this, null, function* () {
313
313
  return this.request(Object.assign(Object.assign({}, e), { method: "PUT" }));
314
314
  });
315
315
  }
316
316
  patch(e) {
317
- return a(this, null, function* () {
317
+ return o(this, null, function* () {
318
318
  return this.request(Object.assign(Object.assign({}, e), { method: "PATCH" }));
319
319
  });
320
320
  }
321
321
  delete(e) {
322
- return a(this, null, function* () {
322
+ return o(this, null, function* () {
323
323
  return this.request(Object.assign(Object.assign({}, e), { method: "DELETE" }));
324
324
  });
325
325
  }
326
326
  }
327
327
  function Le() {
328
- return w.getPlatform() === "android" ? JSON.parse(AndroidInitialContext.initialContext()) : window.portalInitialContext;
328
+ return d.getPlatform() === "android" ? JSON.parse(AndroidInitialContext.initialContext()) : window.portalInitialContext;
329
329
  }
330
330
  He("CapacitorHttp", { web: () => new Hr() }), /*! Ionic Portals: https://ionic.io/portals - Commercial License */
331
331
  He("Portals", { web: () => Promise.resolve().then(function() {
@@ -333,7 +333,7 @@ He("Portals", { web: () => Promise.resolve().then(function() {
333
333
  }).then((t) => new t.PortalsWeb()) });
334
334
  const Ur = Object.freeze({ __proto__: null, PortalsWeb: class extends y {
335
335
  publishNative(t) {
336
- return a(this, null, function* () {
336
+ return o(this, null, function* () {
337
337
  });
338
338
  }
339
339
  } }), ee = (t) => {
@@ -342,15 +342,15 @@ const Ur = Object.freeze({ __proto__: null, PortalsWeb: class extends y {
342
342
  if (typeof window == "undefined")
343
343
  return;
344
344
  if (Le && ((e = Le()) != null && e.value)) {
345
- const o = (n = (r = Le()) == null ? void 0 : r.value) != null ? n : null;
346
- if (!o)
345
+ const a = (n = (r = Le()) == null ? void 0 : r.value) != null ? n : null;
346
+ if (!a)
347
347
  return void console.error("native initialContext is undefine");
348
348
  if (!t)
349
349
  return void console.error("initialContext call back is undefine");
350
- t(o);
350
+ t(a);
351
351
  }
352
- } catch (o) {
353
- throw console.error("getInitialContextHandle error", o), o;
352
+ } catch (a) {
353
+ throw console.error("getInitialContextHandle error", a), a;
354
354
  }
355
355
  };
356
356
  class Wr {
@@ -383,11 +383,11 @@ class Wr {
383
383
  } else
384
384
  (({ callBack: r }) => {
385
385
  ee((n) => {
386
- var o;
386
+ var a;
387
387
  try {
388
388
  if (!(n != null && n.params))
389
389
  return void console.info("initial context native params is undefine");
390
- const i = (o = n == null ? void 0 : n.params) != null ? o : null;
390
+ const i = (a = n == null ? void 0 : n.params) != null ? a : null;
391
391
  if (!i)
392
392
  return;
393
393
  if (!r)
@@ -408,15 +408,15 @@ class Wr {
408
408
  return this.isNative() ? window.__MICRO_APP_ENVIRONMENT__ ? (r = window.rawWindow.__mini_app_hook__.getNativeInfo(e)) != null ? r : {} : (() => {
409
409
  try {
410
410
  let n = null;
411
- return ee((o) => {
412
- n = o != null ? o : null;
411
+ return ee((a) => {
412
+ n = a != null ? a : null;
413
413
  }), n;
414
414
  } catch (n) {
415
415
  throw console.error("getNativeInfoHandle error", n), n;
416
416
  }
417
417
  })() : ((n) => {
418
- var o;
419
- return (o = n == null ? void 0 : n.mockData) != null ? o : null;
418
+ var a;
419
+ return (a = n == null ? void 0 : n.mockData) != null ? a : null;
420
420
  })(e);
421
421
  } catch (n) {
422
422
  throw console.error("getNativeInfo error", n), n;
@@ -435,27 +435,27 @@ const M = () => {
435
435
  } catch (t) {
436
436
  throw console.error("isWinHandle error", t), t;
437
437
  }
438
- }, E = "CommunicatePlugin", g = w.registerPlugin(E, { web: () => Promise.resolve().then(() => ct).then((t) => new t.PluginsWeb()) }), re = M();
438
+ }, E = "CommunicatePlugin", g = d.registerPlugin(E, { web: () => Promise.resolve().then(() => ct).then((t) => new t.PluginsWeb()) }), re = M();
439
439
  re.removeAddListenerFab = () => null;
440
440
  const Fr = (t, e) => {
441
441
  var r, n;
442
442
  try {
443
443
  re.removeAddListenerFab && re.removeAddListenerFab();
444
- const o = [];
445
- if ((r = g.showFABMenu) == null || r.call(g, { fabMenu: o, position: null }), !t || !((n = Object.keys(t)) != null && n.length))
444
+ const a = [];
445
+ if ((r = g.showFABMenu) == null || r.call(g, { fabMenu: a, position: null }), !t || !((n = Object.keys(t)) != null && n.length))
446
446
  return;
447
447
  Object.keys(t).forEach((i) => {
448
- var c, s, d, _, u, p, f, A;
449
- o.push({ disable: (s = (c = t == null ? void 0 : t[i]) == null ? void 0 : c.disable) != null ? s : !1, icon: (_ = (d = t == null ? void 0 : t[i]) == null ? void 0 : d.icon) != null ? _ : "", id: (p = (u = t == null ? void 0 : t[i]) == null ? void 0 : u.id) != null ? p : "", name: (A = (f = t == null ? void 0 : t[i]) == null ? void 0 : f.title) != null ? A : "" });
448
+ var c, s, l, u, _, p, f, A;
449
+ a.push({ disable: (s = (c = t == null ? void 0 : t[i]) == null ? void 0 : c.disable) != null ? s : !1, icon: (u = (l = t == null ? void 0 : t[i]) == null ? void 0 : l.icon) != null ? u : "", id: (p = (_ = t == null ? void 0 : t[i]) == null ? void 0 : _.id) != null ? p : "", name: (A = (f = t == null ? void 0 : t[i]) == null ? void 0 : f.title) != null ? A : "" });
450
450
  }), queueMicrotask(() => {
451
451
  var i;
452
- (i = g.showFABMenu) == null || i.call(g, { fabMenu: o, position: e != null ? e : null });
452
+ (i = g.showFABMenu) == null || i.call(g, { fabMenu: a, position: e != null ? e : null });
453
453
  }), setTimeout(() => {
454
- ((i) => a(void 0, null, function* () {
455
- i && (re.removeAddListenerFab = yield ((c) => a(void 0, null, function* () {
454
+ ((i) => o(void 0, null, function* () {
455
+ i && (re.removeAddListenerFab = yield ((c) => o(void 0, null, function* () {
456
456
  try {
457
- if (w.addListener) {
458
- const s = yield w.addListener(E, "nativeSendFab", (d) => c && c(d));
457
+ if (d.addListener) {
458
+ const s = yield d.addListener(E, "nativeSendFab", (l) => c && c(l));
459
459
  return s != null && s.remove ? s.remove : () => null;
460
460
  }
461
461
  } catch (s) {
@@ -465,22 +465,22 @@ const Fr = (t, e) => {
465
465
  }))((i) => {
466
466
  let c;
467
467
  i != null && i.disable || i != null && i.id && (Object.keys(t).forEach((s) => {
468
- var d, _, u;
469
- (d = t == null ? void 0 : t[s]) != null && d.id && i.id === t[s].id && (c = (u = (_ = t[s]) == null ? void 0 : _.fn) != null ? u : () => null);
468
+ var l, u, _;
469
+ (l = t == null ? void 0 : t[s]) != null && l.id && i.id === t[s].id && (c = (_ = (u = t[s]) == null ? void 0 : u.fn) != null ? _ : () => null);
470
470
  }), typeof c == "function" && c());
471
471
  });
472
472
  });
473
- } catch (o) {
474
- throw console.error("fabBtnHandle error", o), o;
473
+ } catch (a) {
474
+ throw console.error("fabBtnHandle error", a), a;
475
475
  }
476
476
  }, B = M();
477
477
  B.addListenerBackRemoveHandle = () => null;
478
- const Ke = (t = () => null) => a(void 0, null, function* () {
478
+ const Ke = (t = () => null) => o(void 0, null, function* () {
479
479
  try {
480
- B != null && B.addListenerBackRemoveHandle && typeof B.addListenerBackRemoveHandle == "function" && B.addListenerBackRemoveHandle(), B.addListenerBackRemoveHandle = yield ((e) => a(void 0, null, function* () {
480
+ B != null && B.addListenerBackRemoveHandle && typeof B.addListenerBackRemoveHandle == "function" && B.addListenerBackRemoveHandle(), B.addListenerBackRemoveHandle = yield ((e) => o(void 0, null, function* () {
481
481
  try {
482
- if (w.addListener) {
483
- const r = yield w.addListener(E, "nativeSendBack", (n) => e && e(n));
482
+ if (d.addListener) {
483
+ const r = yield d.addListener(E, "nativeSendBack", (n) => e && e(n));
484
484
  return r != null && r.remove ? r.remove : () => null;
485
485
  }
486
486
  } catch (r) {
@@ -495,11 +495,11 @@ te.addListenerHomeHandle = () => null;
495
495
  const Dr = (t) => {
496
496
  try {
497
497
  te.addListenerHomeHandle && te.addListenerHomeHandle(), setTimeout(() => {
498
- ((e) => a(void 0, null, function* () {
499
- e && (te.addListenerHomeHandle = yield ((r) => a(void 0, null, function* () {
498
+ ((e) => o(void 0, null, function* () {
499
+ e && (te.addListenerHomeHandle = yield ((r) => o(void 0, null, function* () {
500
500
  try {
501
- if (w.addListener) {
502
- const n = yield w.addListener(E, "nativeSendHome", (o) => r && r(o));
501
+ if (d.addListener) {
502
+ const n = yield d.addListener(E, "nativeSendHome", (a) => r && r(a));
503
503
  return n != null && n.remove ? n.remove : () => null;
504
504
  }
505
505
  } catch (n) {
@@ -513,12 +513,12 @@ const Dr = (t) => {
513
513
  }
514
514
  }, V = M();
515
515
  V.addListenerTouchRemoveHandle = () => null;
516
- const Je = (t = () => null) => a(void 0, null, function* () {
516
+ const Je = (t = () => null) => o(void 0, null, function* () {
517
517
  try {
518
- V != null && V.addListenerTouchRemoveHandle && typeof V.addListenerTouchRemoveHandle == "function" && V.addListenerTouchRemoveHandle(), V.addListenerTouchRemoveHandle = yield ((e) => a(void 0, null, function* () {
518
+ V != null && V.addListenerTouchRemoveHandle && typeof V.addListenerTouchRemoveHandle == "function" && V.addListenerTouchRemoveHandle(), V.addListenerTouchRemoveHandle = yield ((e) => o(void 0, null, function* () {
519
519
  try {
520
- if (w.addListener) {
521
- const r = yield w.addListener(E, "nativeTouchListener", (n) => e && e(n));
520
+ if (d.addListener) {
521
+ const r = yield d.addListener(E, "nativeTouchListener", (n) => e && e(n));
522
522
  return r != null && r.remove ? r.remove : () => null;
523
523
  }
524
524
  } catch (r) {
@@ -530,14 +530,14 @@ const Je = (t = () => null) => a(void 0, null, function* () {
530
530
  }
531
531
  }), H = M();
532
532
  H.addListenerSendDeepLinkRemoveHandle = () => null;
533
- const Ge = (t = () => null) => a(void 0, null, function* () {
533
+ const Ge = (t = () => null) => o(void 0, null, function* () {
534
534
  try {
535
- H != null && H.addListenerSendDeepLinkRemoveHandle && typeof H.addListenerSendDeepLinkRemoveHandle == "function" && H.addListenerSendDeepLinkRemoveHandle(), H.addListenerSendDeepLinkRemoveHandle = yield ((e) => a(void 0, null, function* () {
535
+ H != null && H.addListenerSendDeepLinkRemoveHandle && typeof H.addListenerSendDeepLinkRemoveHandle == "function" && H.addListenerSendDeepLinkRemoveHandle(), H.addListenerSendDeepLinkRemoveHandle = yield ((e) => o(void 0, null, function* () {
536
536
  try {
537
537
  if (window.__MICRO_APP_ENVIRONMENT__)
538
538
  return e && window.rawWindow.__mini_app_hook__.getDeeplinkParams(e), { remove: () => null };
539
- if (w.addListener) {
540
- const r = yield w.addListener(E, "nativeSendDeeplinkCallbackListener", (n) => e && e(n));
539
+ if (d.addListener) {
540
+ const r = yield d.addListener(E, "nativeSendDeeplinkCallbackListener", (n) => e && e(n));
541
541
  return r != null && r.remove ? r.remove : () => null;
542
542
  }
543
543
  } catch (r) {
@@ -549,12 +549,12 @@ const Ge = (t = () => null) => a(void 0, null, function* () {
549
549
  }
550
550
  }), U = M();
551
551
  U.addListenerSwitchLanguageRemoveHandle = () => null;
552
- const Qe = (t = () => null) => a(void 0, null, function* () {
552
+ const Qe = (t = () => null) => o(void 0, null, function* () {
553
553
  try {
554
- U != null && U.addListenerSwitchLanguageRemoveHandle && typeof U.addListenerSwitchLanguageRemoveHandle == "function" && U.addListenerSwitchLanguageRemoveHandle(), U.addListenerSwitchLanguageRemoveHandle = yield ((e) => a(void 0, null, function* () {
554
+ U != null && U.addListenerSwitchLanguageRemoveHandle && typeof U.addListenerSwitchLanguageRemoveHandle == "function" && U.addListenerSwitchLanguageRemoveHandle(), U.addListenerSwitchLanguageRemoveHandle = yield ((e) => o(void 0, null, function* () {
555
555
  try {
556
- if (w.addListener) {
557
- const r = yield w.addListener(E, "nativeSendSwitchLanguage", (n) => e && e(n));
556
+ if (d.addListener) {
557
+ const r = yield d.addListener(E, "nativeSendSwitchLanguage", (n) => e && e(n));
558
558
  return r != null && r.remove ? r.remove : () => null;
559
559
  }
560
560
  if (window.__MICRO_APP_ENVIRONMENT__)
@@ -570,12 +570,12 @@ const Qe = (t = () => null) => a(void 0, null, function* () {
570
570
  }
571
571
  }), W = M();
572
572
  W.addListenerSetupMiniAppRemoveHandle = () => null;
573
- const Ye = (t = () => null) => a(void 0, null, function* () {
573
+ const Ye = (t = () => null) => o(void 0, null, function* () {
574
574
  try {
575
- W != null && W.addListenerSetupMiniAppRemoveHandle && typeof W.addListenerSetupMiniAppRemoveHandle == "function" && W.addListenerSetupMiniAppRemoveHandle(), W.addListenerSetupMiniAppRemoveHandle = yield ((e) => a(void 0, null, function* () {
575
+ W != null && W.addListenerSetupMiniAppRemoveHandle && typeof W.addListenerSetupMiniAppRemoveHandle == "function" && W.addListenerSetupMiniAppRemoveHandle(), W.addListenerSetupMiniAppRemoveHandle = yield ((e) => o(void 0, null, function* () {
576
576
  try {
577
- if (w.addListener) {
578
- const r = yield w.addListener(E, "nativeSetupMiniApp", (n) => e && e(n));
577
+ if (d.addListener) {
578
+ const r = yield d.addListener(E, "nativeSetupMiniApp", (n) => e && e(n));
579
579
  return r != null && r.remove ? r.remove : () => null;
580
580
  }
581
581
  } catch (r) {
@@ -587,12 +587,12 @@ const Ye = (t = () => null) => a(void 0, null, function* () {
587
587
  }
588
588
  }), F = M();
589
589
  F.addListenerSwitchStoreRemoveHandle = () => null;
590
- const Ze = (t = () => null) => a(void 0, null, function* () {
590
+ const Ze = (t = () => null) => o(void 0, null, function* () {
591
591
  try {
592
- F != null && F.addListenerSwitchStoreRemoveHandle && typeof F.addListenerSwitchStoreRemoveHandle == "function" && F.addListenerSwitchStoreRemoveHandle(), F.addListenerSwitchStoreRemoveHandle = yield ((e) => a(void 0, null, function* () {
592
+ F != null && F.addListenerSwitchStoreRemoveHandle && typeof F.addListenerSwitchStoreRemoveHandle == "function" && F.addListenerSwitchStoreRemoveHandle(), F.addListenerSwitchStoreRemoveHandle = yield ((e) => o(void 0, null, function* () {
593
593
  try {
594
- if (w.addListener) {
595
- const r = yield w.addListener(E, "nativeSendSwitchStore", (n) => e && e(n));
594
+ if (d.addListener) {
595
+ const r = yield d.addListener(E, "nativeSendSwitchStore", (n) => e && e(n));
596
596
  return r != null && r.remove ? r.remove : () => null;
597
597
  }
598
598
  if (window.__MICRO_APP_ENVIRONMENT__)
@@ -612,7 +612,7 @@ class xr {
612
612
  this.homeBtnSwitch({ isClick: !0 });
613
613
  }
614
614
  homeBtnSwitch(e) {
615
- return a(this, null, function* () {
615
+ return o(this, null, function* () {
616
616
  var r;
617
617
  try {
618
618
  return yield (r = g.homeIsClick) == null ? void 0 : r.call(g, e);
@@ -625,10 +625,10 @@ class xr {
625
625
  try {
626
626
  ((r) => {
627
627
  try {
628
- const { mounted: n, beforeUnmount: o, callBack: i } = r;
628
+ const { mounted: n, beforeUnmount: a, callBack: i } = r;
629
629
  n(() => {
630
630
  Ke(i);
631
- }), o(() => {
631
+ }), a(() => {
632
632
  Ke();
633
633
  });
634
634
  } catch (n) {
@@ -657,10 +657,10 @@ class xr {
657
657
  try {
658
658
  ((r) => {
659
659
  try {
660
- const { mounted: n, beforeUnmount: o, callBack: i } = r;
660
+ const { mounted: n, beforeUnmount: a, callBack: i } = r;
661
661
  n(() => {
662
662
  Je(i);
663
- }), o(() => {
663
+ }), a(() => {
664
664
  Je();
665
665
  });
666
666
  } catch (n) {
@@ -672,7 +672,7 @@ class xr {
672
672
  }
673
673
  }
674
674
  disableFAB(e) {
675
- return a(this, null, function* () {
675
+ return o(this, null, function* () {
676
676
  try {
677
677
  return yield g.disableFAB(e);
678
678
  } catch (r) {
@@ -681,7 +681,7 @@ class xr {
681
681
  });
682
682
  }
683
683
  disableBack(e) {
684
- return a(this, null, function* () {
684
+ return o(this, null, function* () {
685
685
  try {
686
686
  return yield g.disableBack(e);
687
687
  } catch (r) {
@@ -690,7 +690,7 @@ class xr {
690
690
  });
691
691
  }
692
692
  openMiniApp(e) {
693
- return a(this, null, function* () {
693
+ return o(this, null, function* () {
694
694
  try {
695
695
  return yield g.openMiniApp(e);
696
696
  } catch (r) {
@@ -699,7 +699,7 @@ class xr {
699
699
  });
700
700
  }
701
701
  showTitle(e) {
702
- return a(this, null, function* () {
702
+ return o(this, null, function* () {
703
703
  try {
704
704
  return yield g.showTitle(e);
705
705
  } catch (r) {
@@ -708,7 +708,7 @@ class xr {
708
708
  });
709
709
  }
710
710
  showSubMask(e) {
711
- return a(this, null, function* () {
711
+ return o(this, null, function* () {
712
712
  try {
713
713
  return yield g.showSubMask(e);
714
714
  } catch (r) {
@@ -717,7 +717,7 @@ class xr {
717
717
  });
718
718
  }
719
719
  setMiniAppVersion(e) {
720
- return a(this, null, function* () {
720
+ return o(this, null, function* () {
721
721
  try {
722
722
  return yield g.setMiniAppVersion(e);
723
723
  } catch (r) {
@@ -726,7 +726,7 @@ class xr {
726
726
  });
727
727
  }
728
728
  showNativeLoading() {
729
- return a(this, null, function* () {
729
+ return o(this, null, function* () {
730
730
  try {
731
731
  return yield g.showDialog();
732
732
  } catch (e) {
@@ -735,7 +735,7 @@ class xr {
735
735
  });
736
736
  }
737
737
  cancelNativeLoading() {
738
- return a(this, null, function* () {
738
+ return o(this, null, function* () {
739
739
  try {
740
740
  return yield g.cancelDialog();
741
741
  } catch (e) {
@@ -744,7 +744,7 @@ class xr {
744
744
  });
745
745
  }
746
746
  getMiniAppKong(e) {
747
- return a(this, null, function* () {
747
+ return o(this, null, function* () {
748
748
  try {
749
749
  return yield g.getMiniAppKong(e);
750
750
  } catch (r) {
@@ -756,10 +756,10 @@ class xr {
756
756
  try {
757
757
  ((r) => {
758
758
  try {
759
- const { mounted: n, beforeUnmount: o, callBack: i } = r;
759
+ const { mounted: n, beforeUnmount: a, callBack: i } = r;
760
760
  n(() => {
761
761
  Ge(i);
762
- }), o(() => {
762
+ }), a(() => {
763
763
  Ge();
764
764
  });
765
765
  } catch (n) {
@@ -774,10 +774,10 @@ class xr {
774
774
  try {
775
775
  ((r) => {
776
776
  try {
777
- const { mounted: n, beforeUnmount: o, callBack: i } = r;
777
+ const { mounted: n, beforeUnmount: a, callBack: i } = r;
778
778
  n(() => {
779
779
  Qe(i);
780
- }), o(() => {
780
+ }), a(() => {
781
781
  Qe();
782
782
  });
783
783
  } catch (n) {
@@ -792,10 +792,10 @@ class xr {
792
792
  try {
793
793
  ((r) => {
794
794
  try {
795
- const { mounted: n, beforeUnmount: o, callBack: i } = r;
795
+ const { mounted: n, beforeUnmount: a, callBack: i } = r;
796
796
  n(() => {
797
797
  Ye(i);
798
- }), o(() => {
798
+ }), a(() => {
799
799
  Ye();
800
800
  });
801
801
  } catch (n) {
@@ -810,10 +810,10 @@ class xr {
810
810
  try {
811
811
  ((r) => {
812
812
  try {
813
- const { mounted: n, beforeUnmount: o, callBack: i } = r;
813
+ const { mounted: n, beforeUnmount: a, callBack: i } = r;
814
814
  n(() => {
815
815
  Ze(i);
816
- }), o(() => {
816
+ }), a(() => {
817
817
  Ze();
818
818
  });
819
819
  } catch (n) {
@@ -825,7 +825,7 @@ class xr {
825
825
  }
826
826
  }
827
827
  closeMiniApp() {
828
- return a(this, null, function* () {
828
+ return o(this, null, function* () {
829
829
  try {
830
830
  return yield g.closeMiniApp();
831
831
  } catch (e) {
@@ -834,7 +834,7 @@ class xr {
834
834
  });
835
835
  }
836
836
  getStatus() {
837
- return a(this, null, function* () {
837
+ return o(this, null, function* () {
838
838
  try {
839
839
  return yield g.getStatus();
840
840
  } catch (e) {
@@ -843,7 +843,7 @@ class xr {
843
843
  });
844
844
  }
845
845
  dispatchToShell(e) {
846
- return a(this, null, function* () {
846
+ return o(this, null, function* () {
847
847
  try {
848
848
  return yield g.dispatchToShell(e);
849
849
  } catch (r) {
@@ -852,7 +852,7 @@ class xr {
852
852
  });
853
853
  }
854
854
  getMiniAppInfo(e) {
855
- return a(this, null, function* () {
855
+ return o(this, null, function* () {
856
856
  try {
857
857
  return yield g.getMiniAppInfo(e);
858
858
  } catch (r) {
@@ -864,21 +864,21 @@ class xr {
864
864
  let ne = null;
865
865
  var or;
866
866
  window.__MICRO_APP_ENVIRONMENT__ && (ne = (or = window.rawWindow.__mini_app_status_hook__) != null ? or : {});
867
- const Ae = w.registerPlugin("CameraScanPlugin", { web: new class extends y {
867
+ const Ae = d.registerPlugin("CameraScanPlugin", { web: new class extends y {
868
868
  pickCameraScan(t) {
869
- return a(this, null, function* () {
869
+ return o(this, null, function* () {
870
870
  return new Promise((e) => {
871
871
  e(t);
872
872
  });
873
873
  });
874
874
  }
875
875
  setCameraScanState() {
876
- return a(this, null, function* () {
876
+ return o(this, null, function* () {
877
877
  });
878
878
  }
879
879
  getStatus() {
880
880
  try {
881
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
881
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
882
882
  var e, r;
883
883
  t((yield (r = (e = ne == null ? void 0 : ne.cameraScan) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
884
884
  })) : new Promise((t) => {
@@ -892,7 +892,7 @@ const Ae = w.registerPlugin("CameraScanPlugin", { web: new class extends y {
892
892
  window.removeAddListenerCameraScan = () => null;
893
893
  class jr {
894
894
  pickCameraScan(e) {
895
- return a(this, null, function* () {
895
+ return o(this, null, function* () {
896
896
  try {
897
897
  return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScan(e) : yield Ae.pickCameraScan(e);
898
898
  } catch (r) {
@@ -901,7 +901,7 @@ class jr {
901
901
  });
902
902
  }
903
903
  setCameraScanState(e) {
904
- return a(this, null, function* () {
904
+ return o(this, null, function* () {
905
905
  try {
906
906
  return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraScanState(e) : yield Ae.setCameraScanState(e);
907
907
  } catch (r) {
@@ -910,7 +910,7 @@ class jr {
910
910
  });
911
911
  }
912
912
  getStatus() {
913
- return a(this, null, function* () {
913
+ return o(this, null, function* () {
914
914
  try {
915
915
  return yield Ae.getStatus();
916
916
  } catch (e) {
@@ -922,18 +922,18 @@ class jr {
922
922
  let oe = null;
923
923
  var ar;
924
924
  window.__MICRO_APP_ENVIRONMENT__ && (oe = (ar = window.rawWindow.__mini_app_status_hook__) != null ? ar : {});
925
- const Oe = w.registerPlugin("CameraScanMultiplePlugin", { web: new class extends y {
925
+ const Oe = d.registerPlugin("CameraScanMultiplePlugin", { web: new class extends y {
926
926
  pickCameraScanMultiple() {
927
- return a(this, null, function* () {
927
+ return o(this, null, function* () {
928
928
  });
929
929
  }
930
930
  setCameraScanMultipleState() {
931
- return a(this, null, function* () {
931
+ return o(this, null, function* () {
932
932
  });
933
933
  }
934
934
  getStatus() {
935
935
  try {
936
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
936
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
937
937
  var e, r;
938
938
  t((yield (r = (e = oe == null ? void 0 : oe.cameraScanMultiple) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
939
939
  })) : new Promise((t) => {
@@ -946,7 +946,7 @@ const Oe = w.registerPlugin("CameraScanMultiplePlugin", { web: new class extends
946
946
  }() });
947
947
  class $r {
948
948
  pickCameraScanMultiple(e) {
949
- return a(this, null, function* () {
949
+ return o(this, null, function* () {
950
950
  try {
951
951
  return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScanMultiple(e) : yield Oe.pickCameraScanMultiple(e);
952
952
  } catch (r) {
@@ -955,7 +955,7 @@ class $r {
955
955
  });
956
956
  }
957
957
  setCameraScanMultipleState(e) {
958
- return a(this, null, function* () {
958
+ return o(this, null, function* () {
959
959
  try {
960
960
  return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraScanMultipleState(e) : yield Oe.setCameraScanMultipleState(e);
961
961
  } catch (r) {
@@ -964,7 +964,7 @@ class $r {
964
964
  });
965
965
  }
966
966
  getStatus() {
967
- return a(this, null, function* () {
967
+ return o(this, null, function* () {
968
968
  try {
969
969
  return yield Oe.getStatus();
970
970
  } catch (e) {
@@ -976,18 +976,18 @@ class $r {
976
976
  let ae = null;
977
977
  var ir;
978
978
  window.__MICRO_APP_ENVIRONMENT__ && (ae = (ir = window.rawWindow.__mini_app_status_hook__) != null ? ir : {});
979
- const Ee = w.registerPlugin("CameraScanMultipleNoCountPlugin", { web: new class extends y {
979
+ const Ee = d.registerPlugin("CameraScanMultipleNoCountPlugin", { web: new class extends y {
980
980
  pickCameraScanMultipleNoCount() {
981
- return a(this, null, function* () {
981
+ return o(this, null, function* () {
982
982
  });
983
983
  }
984
984
  setCameraScanMultipleNoCountState() {
985
- return a(this, null, function* () {
985
+ return o(this, null, function* () {
986
986
  });
987
987
  }
988
988
  getStatus() {
989
989
  try {
990
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
990
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
991
991
  var e, r;
992
992
  t((yield (r = (e = ae == null ? void 0 : ae.cameraScanMultipleNoCount) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
993
993
  })) : new Promise((t) => {
@@ -1000,7 +1000,7 @@ const Ee = w.registerPlugin("CameraScanMultipleNoCountPlugin", { web: new class
1000
1000
  }() });
1001
1001
  class qr {
1002
1002
  pickCameraScanMultipleNoCount(e) {
1003
- return a(this, null, function* () {
1003
+ return o(this, null, function* () {
1004
1004
  try {
1005
1005
  return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScanMultipleNoCount(e) : yield Ee.pickCameraScanMultipleNoCount(e);
1006
1006
  } catch (r) {
@@ -1009,7 +1009,7 @@ class qr {
1009
1009
  });
1010
1010
  }
1011
1011
  setCameraScanMultipleNoCountState(e) {
1012
- return a(this, null, function* () {
1012
+ return o(this, null, function* () {
1013
1013
  try {
1014
1014
  return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraScanMultipleNoCountState(e) : yield Ee.setCameraScanMultipleNoCountState(e);
1015
1015
  } catch (r) {
@@ -1018,7 +1018,7 @@ class qr {
1018
1018
  });
1019
1019
  }
1020
1020
  getStatus() {
1021
- return a(this, null, function* () {
1021
+ return o(this, null, function* () {
1022
1022
  try {
1023
1023
  return yield Ee.getStatus();
1024
1024
  } catch (e) {
@@ -1030,18 +1030,18 @@ class qr {
1030
1030
  let ie = null;
1031
1031
  var sr;
1032
1032
  window.__MICRO_APP_ENVIRONMENT__ && (ie = (sr = window.rawWindow.__mini_app_status_hook__) != null ? sr : {});
1033
- const Re = w.registerPlugin("CameraScanSingleOrDualPlugin", { web: new class extends y {
1033
+ const Re = d.registerPlugin("CameraScanSingleOrDualPlugin", { web: new class extends y {
1034
1034
  pickCameraScanSingleOrDual() {
1035
- return a(this, null, function* () {
1035
+ return o(this, null, function* () {
1036
1036
  });
1037
1037
  }
1038
1038
  setCameraScanSingleOrDualState() {
1039
- return a(this, null, function* () {
1039
+ return o(this, null, function* () {
1040
1040
  });
1041
1041
  }
1042
1042
  getStatus() {
1043
1043
  try {
1044
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1044
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1045
1045
  var e, r;
1046
1046
  t((yield (r = (e = ie == null ? void 0 : ie.cameraScanSingleOrDual) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1047
1047
  })) : new Promise((t) => {
@@ -1054,7 +1054,7 @@ const Re = w.registerPlugin("CameraScanSingleOrDualPlugin", { web: new class ext
1054
1054
  }() });
1055
1055
  class Kr {
1056
1056
  pickCameraScanSingleOrDual(e) {
1057
- return a(this, null, function* () {
1057
+ return o(this, null, function* () {
1058
1058
  try {
1059
1059
  return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScanSingleOrDual(e) : yield Re.pickCameraScanSingleOrDual(e);
1060
1060
  } catch (r) {
@@ -1063,7 +1063,7 @@ class Kr {
1063
1063
  });
1064
1064
  }
1065
1065
  setCameraScanSingleOrDualState(e) {
1066
- return a(this, null, function* () {
1066
+ return o(this, null, function* () {
1067
1067
  try {
1068
1068
  return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.setCameraScanSingleOrDualState(e) : yield Re.setCameraScanSingleOrDualState(e);
1069
1069
  } catch (r) {
@@ -1072,7 +1072,7 @@ class Kr {
1072
1072
  });
1073
1073
  }
1074
1074
  getStatus() {
1075
- return a(this, null, function* () {
1075
+ return o(this, null, function* () {
1076
1076
  try {
1077
1077
  return yield Re.getStatus();
1078
1078
  } catch (e) {
@@ -1085,22 +1085,22 @@ const Sr = "LaserScanPlugin";
1085
1085
  let se = null;
1086
1086
  var cr;
1087
1087
  window.__MICRO_APP_ENVIRONMENT__ && (se = (cr = window.rawWindow.__mini_app_status_hook__) != null ? cr : {});
1088
- const X = w.registerPlugin(Sr, { web: new class extends y {
1088
+ const X = d.registerPlugin(Sr, { web: new class extends y {
1089
1089
  pickLaserScan() {
1090
- return a(this, null, function* () {
1090
+ return o(this, null, function* () {
1091
1091
  });
1092
1092
  }
1093
1093
  unPickLaserScan() {
1094
- return a(this, null, function* () {
1094
+ return o(this, null, function* () {
1095
1095
  });
1096
1096
  }
1097
1097
  setLaserState() {
1098
- return a(this, null, function* () {
1098
+ return o(this, null, function* () {
1099
1099
  });
1100
1100
  }
1101
1101
  getStatus() {
1102
1102
  try {
1103
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1103
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1104
1104
  var e, r;
1105
1105
  t((yield (r = (e = se == null ? void 0 : se.laserScan) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1106
1106
  })) : new Promise((t) => {
@@ -1115,15 +1115,15 @@ ce.removeAddListenerLaserScan = () => null;
1115
1115
  const Xe = (t = () => null) => {
1116
1116
  try {
1117
1117
  ce.removeAddListenerLaserScan && ce.removeAddListenerLaserScan();
1118
- const e = (r) => a(void 0, null, function* () {
1119
- r && (ce.removeAddListenerLaserScan = yield ((n) => a(void 0, null, function* () {
1118
+ const e = (r) => o(void 0, null, function* () {
1119
+ r && (ce.removeAddListenerLaserScan = yield ((n) => o(void 0, null, function* () {
1120
1120
  try {
1121
- if (w.addListener) {
1122
- const o = yield w.addListener(Sr, "nativeSendLaser", (i) => n && n(i));
1123
- return o != null && o.remove ? o.remove : () => null;
1121
+ if (d.addListener) {
1122
+ const a = yield d.addListener(Sr, "nativeSendLaser", (i) => n && n(i));
1123
+ return a != null && a.remove ? a.remove : () => null;
1124
1124
  }
1125
- } catch (o) {
1126
- throw console.error("addListenerLaserHandle error", o), o;
1125
+ } catch (a) {
1126
+ throw console.error("addListenerLaserHandle error", a), a;
1127
1127
  }
1128
1128
  }))(r));
1129
1129
  });
@@ -1139,7 +1139,7 @@ class Jr {
1139
1139
  this.pickLaserScan();
1140
1140
  }
1141
1141
  pickLaserScan() {
1142
- return a(this, null, function* () {
1142
+ return o(this, null, function* () {
1143
1143
  try {
1144
1144
  return yield X.pickLaserScan({ isContinue: !1 });
1145
1145
  } catch (e) {
@@ -1148,7 +1148,7 @@ class Jr {
1148
1148
  });
1149
1149
  }
1150
1150
  unPickLaserScan() {
1151
- return a(this, null, function* () {
1151
+ return o(this, null, function* () {
1152
1152
  try {
1153
1153
  return yield X.unPickLaserScan();
1154
1154
  } catch (e) {
@@ -1166,10 +1166,10 @@ class Jr {
1166
1166
  setLaserScan(e) {
1167
1167
  ((r) => {
1168
1168
  try {
1169
- const { mounted: n, beforeUnmount: o, callBack: i } = r;
1169
+ const { mounted: n, beforeUnmount: a, callBack: i } = r;
1170
1170
  n(() => {
1171
1171
  Xe(i);
1172
- }), o(() => {
1172
+ }), a(() => {
1173
1173
  Xe();
1174
1174
  });
1175
1175
  } catch (n) {
@@ -1178,7 +1178,7 @@ class Jr {
1178
1178
  })(e);
1179
1179
  }
1180
1180
  getStatus() {
1181
- return a(this, null, function* () {
1181
+ return o(this, null, function* () {
1182
1182
  try {
1183
1183
  return yield X.getStatus();
1184
1184
  } catch (e) {
@@ -1191,9 +1191,9 @@ const Nr = "CountAssistPlugin";
1191
1191
  let le = null;
1192
1192
  var lr;
1193
1193
  window.__MICRO_APP_ENVIRONMENT__ && (le = (lr = window.rawWindow.__mini_app_status_hook__) != null ? lr : {});
1194
- const z = w.registerPlugin(Nr, { web: new class extends y {
1194
+ const z = d.registerPlugin(Nr, { web: new class extends y {
1195
1195
  setCountAssistState(t) {
1196
- return a(this, null, function* () {
1196
+ return o(this, null, function* () {
1197
1197
  try {
1198
1198
  return new Promise((e) => {
1199
1199
  e(t);
@@ -1204,7 +1204,7 @@ const z = w.registerPlugin(Nr, { web: new class extends y {
1204
1204
  });
1205
1205
  }
1206
1206
  toggleCountAssist(t) {
1207
- return a(this, null, function* () {
1207
+ return o(this, null, function* () {
1208
1208
  try {
1209
1209
  return new Promise((e) => {
1210
1210
  e(t);
@@ -1215,7 +1215,7 @@ const z = w.registerPlugin(Nr, { web: new class extends y {
1215
1215
  });
1216
1216
  }
1217
1217
  getCountAssistToggleState() {
1218
- return a(this, null, function* () {
1218
+ return o(this, null, function* () {
1219
1219
  try {
1220
1220
  return new Promise((t) => {
1221
1221
  t(void 0);
@@ -1227,7 +1227,7 @@ const z = w.registerPlugin(Nr, { web: new class extends y {
1227
1227
  }
1228
1228
  getStatus() {
1229
1229
  try {
1230
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1230
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1231
1231
  var e, r;
1232
1232
  t((yield (r = (e = le == null ? void 0 : le.countAssist) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1233
1233
  })) : new Promise((t) => {
@@ -1239,12 +1239,12 @@ const z = w.registerPlugin(Nr, { web: new class extends y {
1239
1239
  }
1240
1240
  }() }), D = M();
1241
1241
  D.addListenerCountAssistRemoveHandle = () => null;
1242
- const ze = (t = () => null) => a(void 0, null, function* () {
1242
+ const ze = (t = () => null) => o(void 0, null, function* () {
1243
1243
  try {
1244
- D != null && D.addListenerCountAssistRemoveHandle && typeof D.addListenerCountAssistRemoveHandle == "function" && D.addListenerCountAssistRemoveHandle(), D.addListenerCountAssistRemoveHandle = yield ((e) => a(void 0, null, function* () {
1244
+ D != null && D.addListenerCountAssistRemoveHandle && typeof D.addListenerCountAssistRemoveHandle == "function" && D.addListenerCountAssistRemoveHandle(), D.addListenerCountAssistRemoveHandle = yield ((e) => o(void 0, null, function* () {
1245
1245
  try {
1246
- if (w.addListener) {
1247
- const r = yield w.addListener(Nr, "nativeSendCountAssist", (n) => e && e(n));
1246
+ if (d.addListener) {
1247
+ const r = yield d.addListener(Nr, "nativeSendCountAssist", (n) => e && e(n));
1248
1248
  return r != null && r.remove ? r.remove : () => null;
1249
1249
  }
1250
1250
  } catch (r) {
@@ -1257,7 +1257,7 @@ const ze = (t = () => null) => a(void 0, null, function* () {
1257
1257
  });
1258
1258
  class Gr {
1259
1259
  setCountAssistState(e) {
1260
- return a(this, null, function* () {
1260
+ return o(this, null, function* () {
1261
1261
  return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.setCountAssistState(e) : yield z.setCountAssistState(e);
1262
1262
  });
1263
1263
  }
@@ -1265,8 +1265,8 @@ class Gr {
1265
1265
  return ((r) => {
1266
1266
  try {
1267
1267
  let n = r != null ? r : !1;
1268
- return ee((o) => {
1269
- n = !!(o != null && o.countAssistState);
1268
+ return ee((a) => {
1269
+ n = !!(a != null && a.countAssistState);
1270
1270
  }), n;
1271
1271
  } catch (n) {
1272
1272
  throw console.error("getCountAssistStateHandle error", n), n;
@@ -1276,10 +1276,10 @@ class Gr {
1276
1276
  setCountAssistBtn(e) {
1277
1277
  ((r) => {
1278
1278
  try {
1279
- const { mounted: n, beforeUnmount: o, callBack: i } = r;
1279
+ const { mounted: n, beforeUnmount: a, callBack: i } = r;
1280
1280
  n(() => {
1281
1281
  ze(i);
1282
- }), o(() => {
1282
+ }), a(() => {
1283
1283
  ze();
1284
1284
  });
1285
1285
  } catch (n) {
@@ -1288,17 +1288,17 @@ class Gr {
1288
1288
  })(e);
1289
1289
  }
1290
1290
  toggleCountAssist(e) {
1291
- return a(this, null, function* () {
1291
+ return o(this, null, function* () {
1292
1292
  return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.toggleCountAssist(e) : yield z.toggleCountAssist(e);
1293
1293
  });
1294
1294
  }
1295
1295
  getCountAssistToggleState() {
1296
- return a(this, null, function* () {
1296
+ return o(this, null, function* () {
1297
1297
  return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.getCountAssistToggleState() : yield z.getCountAssistToggleState();
1298
1298
  });
1299
1299
  }
1300
1300
  getStatus() {
1301
- return a(this, null, function* () {
1301
+ return o(this, null, function* () {
1302
1302
  try {
1303
1303
  return yield z.getStatus();
1304
1304
  } catch (e) {
@@ -1310,16 +1310,16 @@ class Gr {
1310
1310
  let we = null;
1311
1311
  var wr;
1312
1312
  window.__MICRO_APP_ENVIRONMENT__ && (we = (wr = window.rawWindow.__mini_app_status_hook__) != null ? wr : {});
1313
- const ke = w.registerPlugin("ClickStreamPlugin", { web: new class extends y {
1313
+ const ke = d.registerPlugin("ClickStreamPlugin", { web: new class extends y {
1314
1314
  init() {
1315
- return a(this, null, function* () {
1315
+ return o(this, null, function* () {
1316
1316
  return new Promise((t) => {
1317
1317
  t(null);
1318
1318
  });
1319
1319
  });
1320
1320
  }
1321
1321
  trace(t) {
1322
- return a(this, null, function* () {
1322
+ return o(this, null, function* () {
1323
1323
  var e, r;
1324
1324
  try {
1325
1325
  return window.__MICRO_APP_ENVIRONMENT__ && ((r = (e = window.rawWindow.__mini_app_hook__).clickStream) == null || r.call(e, t.data)), new Promise((n) => {
@@ -1332,7 +1332,7 @@ const ke = w.registerPlugin("ClickStreamPlugin", { web: new class extends y {
1332
1332
  }
1333
1333
  getStatus() {
1334
1334
  try {
1335
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1335
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1336
1336
  var e, r;
1337
1337
  t((yield (r = (e = we == null ? void 0 : we.clickStream) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1338
1338
  })) : new Promise((t) => {
@@ -1348,7 +1348,7 @@ class Qr {
1348
1348
  this.init();
1349
1349
  }
1350
1350
  init() {
1351
- return a(this, null, function* () {
1351
+ return o(this, null, function* () {
1352
1352
  try {
1353
1353
  return yield ke.init();
1354
1354
  } catch (e) {
@@ -1357,7 +1357,7 @@ class Qr {
1357
1357
  });
1358
1358
  }
1359
1359
  trace(e) {
1360
- return a(this, null, function* () {
1360
+ return o(this, null, function* () {
1361
1361
  try {
1362
1362
  return yield ke.trace(e);
1363
1363
  } catch (r) {
@@ -1366,7 +1366,7 @@ class Qr {
1366
1366
  });
1367
1367
  }
1368
1368
  getStatus() {
1369
- return a(this, null, function* () {
1369
+ return o(this, null, function* () {
1370
1370
  try {
1371
1371
  return yield ke.getStatus();
1372
1372
  } catch (e) {
@@ -1380,18 +1380,18 @@ let de = null;
1380
1380
  var dr;
1381
1381
  window.__MICRO_APP_ENVIRONMENT__ && (de = (dr = window.rawWindow.__mini_app_status_hook__) != null ? dr : {});
1382
1382
  var Q = ((t) => (t.MINI_APP_BEFORE_UNMOUNT_PERMISSION = "mini_app_before_unmount_permission", t.MINI_APP_BEFORE_UNMOUNT_COMPLETION = "mini_app_before_unmount_completion", t))(Q || {});
1383
- const be = w.registerPlugin(Mr, { web: new class extends y {
1383
+ const be = d.registerPlugin(Mr, { web: new class extends y {
1384
1384
  setNativeUsagePermission() {
1385
- return a(this, null, function* () {
1385
+ return o(this, null, function* () {
1386
1386
  });
1387
1387
  }
1388
1388
  authorizeWebCallback() {
1389
- return a(this, null, function* () {
1389
+ return o(this, null, function* () {
1390
1390
  });
1391
1391
  }
1392
1392
  getStatus() {
1393
1393
  try {
1394
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1394
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1395
1395
  var e, r;
1396
1396
  t((yield (r = (e = de == null ? void 0 : de.lifecycle) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1397
1397
  })) : new Promise((t) => {
@@ -1406,19 +1406,19 @@ ue.removeAddListenerLifecycleMiniAppBeforeUnmount = () => null;
1406
1406
  const er = (t = () => null) => {
1407
1407
  try {
1408
1408
  ue.removeAddListenerLifecycleMiniAppBeforeUnmount && ue.removeAddListenerLifecycleMiniAppBeforeUnmount();
1409
- const e = (r) => a(void 0, null, function* () {
1410
- r && (ue.removeAddListenerLifecycleMiniAppBeforeUnmount = yield ((n) => a(void 0, null, function* () {
1409
+ const e = (r) => o(void 0, null, function* () {
1410
+ r && (ue.removeAddListenerLifecycleMiniAppBeforeUnmount = yield ((n) => o(void 0, null, function* () {
1411
1411
  try {
1412
- if (w.addListener) {
1413
- const o = yield w.addListener(Mr, "miniAppBeforeUnmount", (i) => n && n(i));
1414
- return o != null && o.remove ? o.remove : () => null;
1412
+ if (d.addListener) {
1413
+ const a = yield d.addListener(Mr, "miniAppBeforeUnmount", (i) => n && n(i));
1414
+ return a != null && a.remove ? a.remove : () => null;
1415
1415
  }
1416
- } catch (o) {
1417
- throw console.error("miniAppBeforeUnmountHandle error", o), o;
1416
+ } catch (a) {
1417
+ throw console.error("miniAppBeforeUnmountHandle error", a), a;
1418
1418
  }
1419
1419
  }))(r));
1420
1420
  });
1421
- setTimeout(() => a(void 0, null, function* () {
1421
+ setTimeout(() => o(void 0, null, function* () {
1422
1422
  yield e(t);
1423
1423
  }));
1424
1424
  } catch (e) {
@@ -1429,7 +1429,7 @@ class Yr {
1429
1429
  constructor() {
1430
1430
  }
1431
1431
  setNativeUsagePermission(e) {
1432
- return a(this, null, function* () {
1432
+ return o(this, null, function* () {
1433
1433
  try {
1434
1434
  return yield be.setNativeUsagePermission(e);
1435
1435
  } catch (r) {
@@ -1438,7 +1438,7 @@ class Yr {
1438
1438
  });
1439
1439
  }
1440
1440
  authorizeWebCallback(e) {
1441
- return a(this, null, function* () {
1441
+ return o(this, null, function* () {
1442
1442
  try {
1443
1443
  return yield be.authorizeWebCallback(e);
1444
1444
  } catch (r) {
@@ -1449,31 +1449,31 @@ class Yr {
1449
1449
  miniAppBeforeUnmount(e) {
1450
1450
  this.setNativeUsagePermission({ action: Q.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !0 }), ((r, n) => {
1451
1451
  try {
1452
- const { mounted: o, beforeUnmount: i, callBack: c } = r;
1453
- o(() => {
1454
- er((s) => a(this, null, function* () {
1455
- var d;
1452
+ const { mounted: a, beforeUnmount: i, callBack: c } = r;
1453
+ a(() => {
1454
+ er((s) => o(this, null, function* () {
1455
+ var l;
1456
1456
  if (c && c instanceof Function)
1457
1457
  try {
1458
- (d = c(s)) == null || d.then(() => a(this, null, function* () {
1458
+ (l = c(s)) == null || l.then(() => o(this, null, function* () {
1459
1459
  yield n.setNativeUsagePermission({ action: Q.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !1 }), yield n.authorizeWebCallback({ action: Q.MINI_APP_BEFORE_UNMOUNT_COMPLETION });
1460
1460
  }));
1461
- } catch (_) {
1461
+ } catch (u) {
1462
1462
  console.error("miniAppBeforeUnmount error callBack is not a function or promise");
1463
1463
  }
1464
1464
  else
1465
1465
  console.error("miniAppBeforeUnmount error callBack is not a function or promise");
1466
1466
  }));
1467
- }), i(() => a(this, null, function* () {
1467
+ }), i(() => o(this, null, function* () {
1468
1468
  er(), n.setNativeUsagePermission({ action: Q.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !1 });
1469
1469
  }));
1470
- } catch (o) {
1471
- throw console.error("miniAppBeforeUnmount error", o), o;
1470
+ } catch (a) {
1471
+ throw console.error("miniAppBeforeUnmount error", a), a;
1472
1472
  }
1473
1473
  })(e, this);
1474
1474
  }
1475
1475
  getStatus() {
1476
- return a(this, null, function* () {
1476
+ return o(this, null, function* () {
1477
1477
  try {
1478
1478
  return yield be.getStatus();
1479
1479
  } catch (e) {
@@ -1485,18 +1485,18 @@ class Yr {
1485
1485
  let _e = null;
1486
1486
  var ur;
1487
1487
  window.__MICRO_APP_ENVIRONMENT__ && (_e = (ur = window.rawWindow.__mini_app_status_hook__) != null ? ur : {});
1488
- const Te = w.registerPlugin("DeviceInteractionPlugin", { web: new class extends y {
1488
+ const Te = d.registerPlugin("DeviceInteractionPlugin", { web: new class extends y {
1489
1489
  callVibrate() {
1490
- return a(this, null, function* () {
1490
+ return o(this, null, function* () {
1491
1491
  });
1492
1492
  }
1493
1493
  callErrorBeep() {
1494
- return a(this, null, function* () {
1494
+ return o(this, null, function* () {
1495
1495
  });
1496
1496
  }
1497
1497
  getStatus() {
1498
1498
  try {
1499
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1499
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1500
1500
  var e, r;
1501
1501
  t((yield (r = (e = _e == null ? void 0 : _e.deviceInteraction) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1502
1502
  })) : new Promise((t) => {
@@ -1509,7 +1509,7 @@ const Te = w.registerPlugin("DeviceInteractionPlugin", { web: new class extends
1509
1509
  }() });
1510
1510
  class Zr {
1511
1511
  callVibrate() {
1512
- return a(this, null, function* () {
1512
+ return o(this, null, function* () {
1513
1513
  try {
1514
1514
  return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.callVibrate() : yield Te.callVibrate();
1515
1515
  } catch (e) {
@@ -1518,7 +1518,7 @@ class Zr {
1518
1518
  });
1519
1519
  }
1520
1520
  callErrorBeep() {
1521
- return a(this, null, function* () {
1521
+ return o(this, null, function* () {
1522
1522
  try {
1523
1523
  return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.callErrorBeep() : yield Te.callErrorBeep();
1524
1524
  } catch (e) {
@@ -1527,7 +1527,7 @@ class Zr {
1527
1527
  });
1528
1528
  }
1529
1529
  getStatus() {
1530
- return a(this, null, function* () {
1530
+ return o(this, null, function* () {
1531
1531
  try {
1532
1532
  return yield Te.getStatus();
1533
1533
  } catch (e) {
@@ -1540,18 +1540,18 @@ const fr = "PollingPlugin";
1540
1540
  let he = null;
1541
1541
  var _r;
1542
1542
  window.__MICRO_APP_ENVIRONMENT__ && (he = (_r = window.rawWindow.__mini_app_status_hook__) != null ? _r : {});
1543
- const Be = w.registerPlugin(fr, { web: new class extends y {
1543
+ const Be = d.registerPlugin(fr, { web: new class extends y {
1544
1544
  create() {
1545
- return a(this, null, function* () {
1545
+ return o(this, null, function* () {
1546
1546
  });
1547
1547
  }
1548
1548
  destroy() {
1549
- return a(this, null, function* () {
1549
+ return o(this, null, function* () {
1550
1550
  });
1551
1551
  }
1552
1552
  getStatus() {
1553
1553
  try {
1554
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1554
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1555
1555
  var e, r;
1556
1556
  t((yield (r = (e = he == null ? void 0 : he.polling) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1557
1557
  })) : new Promise((t) => {
@@ -1567,11 +1567,11 @@ const Xr = (t, e) => {
1567
1567
  try {
1568
1568
  pe.removeAddListenerPolling && pe.removeAddListenerPolling();
1569
1569
  const r = e.pollingId;
1570
- ((n) => a(void 0, null, function* () {
1571
- return n && (pe.removeAddListenerPolling = yield ((o) => a(void 0, null, function* () {
1570
+ ((n) => o(void 0, null, function* () {
1571
+ return n && (pe.removeAddListenerPolling = yield ((a) => o(void 0, null, function* () {
1572
1572
  try {
1573
- if (w.addListener) {
1574
- const i = yield w.addListener(fr, "nativeSendPolling", (c) => o && o(c));
1573
+ if (d.addListener) {
1574
+ const i = yield d.addListener(fr, "nativeSendPolling", (c) => a && a(c));
1575
1575
  return i != null && i.remove ? i.remove : () => null;
1576
1576
  }
1577
1577
  } catch (i) {
@@ -1579,8 +1579,8 @@ const Xr = (t, e) => {
1579
1579
  }
1580
1580
  }))(n));
1581
1581
  }))((n) => {
1582
- (n == null ? void 0 : n.pollingId) === r && (n != null && n.pollingId) && t.pollingList.forEach((o) => {
1583
- o != null && o.pollingId && (n == null ? void 0 : n.pollingId) === (o == null ? void 0 : o.pollingId) && typeof (o == null ? void 0 : o.callBack) == "function" && o.callBack(n);
1582
+ (n == null ? void 0 : n.pollingId) === r && (n != null && n.pollingId) && t.pollingList.forEach((a) => {
1583
+ a != null && a.pollingId && (n == null ? void 0 : n.pollingId) === (a == null ? void 0 : a.pollingId) && typeof (a == null ? void 0 : a.callBack) == "function" && a.callBack(n);
1584
1584
  });
1585
1585
  });
1586
1586
  } catch (r) {
@@ -1593,25 +1593,25 @@ class zr {
1593
1593
  this.pollingList = [];
1594
1594
  }
1595
1595
  create(e) {
1596
- var r, n, o;
1596
+ var r, n, a;
1597
1597
  if (window.__MICRO_APP_ENVIRONMENT__) {
1598
1598
  const { mounted: i, pollingParams: c, callBack: s } = e;
1599
1599
  return i(() => {
1600
- var d, _;
1601
- (_ = (d = window.rawWindow.__mini_app_hook__) == null ? void 0 : d.addPolling) == null || _.call(d, c, s);
1600
+ var l, u;
1601
+ (u = (l = window.rawWindow.__mini_app_hook__) == null ? void 0 : l.addPolling) == null || u.call(l, c, s);
1602
1602
  }), () => {
1603
1603
  this.destroy({ pollingId: c.pollingId });
1604
1604
  };
1605
1605
  }
1606
1606
  try {
1607
- (r = e == null ? void 0 : e.pollingParams) != null && r.pollingId && this.pollingList.push({ pollingId: (n = e == null ? void 0 : e.pollingParams) == null ? void 0 : n.pollingId, callBack: e == null ? void 0 : e.callBack }), this.pollingList = this.pollingList.filter((c, s, d) => s === d.findIndex((_) => _.pollingId === c.pollingId));
1608
- const i = ((o = e == null ? void 0 : e.pollingParams) == null ? void 0 : o.delay) / 1e3;
1607
+ (r = e == null ? void 0 : e.pollingParams) != null && r.pollingId && this.pollingList.push({ pollingId: (n = e == null ? void 0 : e.pollingParams) == null ? void 0 : n.pollingId, callBack: e == null ? void 0 : e.callBack }), this.pollingList = this.pollingList.filter((c, s, l) => s === l.findIndex((u) => u.pollingId === c.pollingId));
1608
+ const i = ((a = e == null ? void 0 : e.pollingParams) == null ? void 0 : a.delay) / 1e3;
1609
1609
  return Be.create(T(b({}, e == null ? void 0 : e.pollingParams), { delay: i })), ((c, s) => {
1610
1610
  try {
1611
- const { mounted: d, pollingParams: _ } = c;
1612
- d(() => Xr(s, _));
1613
- } catch (d) {
1614
- throw console.error("createPolling error", d), d;
1611
+ const { mounted: l, pollingParams: u } = c;
1612
+ l(() => Xr(s, u));
1613
+ } catch (l) {
1614
+ throw console.error("createPolling error", l), l;
1615
1615
  }
1616
1616
  })(e, this), () => {
1617
1617
  var c, s;
@@ -1622,20 +1622,20 @@ class zr {
1622
1622
  }
1623
1623
  }
1624
1624
  destroy(e) {
1625
- var r, n, o;
1625
+ var r, n, a;
1626
1626
  if (window.__MICRO_APP_ENVIRONMENT__) {
1627
1627
  const { pollingId: i } = e;
1628
1628
  (n = (r = window.rawWindow.__mini_app_hook__) == null ? void 0 : r.deletePolling) == null || n.call(r, i);
1629
1629
  } else
1630
1630
  try {
1631
1631
  const i = this.pollingList.map((c) => c.pollingId).indexOf(e.pollingId);
1632
- return (o = this.pollingList) != null && o.length && (Number(i) || Number(i) >= 0) && this.pollingList.splice(Number(i), 1), Be.destroy(e);
1632
+ return (a = this.pollingList) != null && a.length && (Number(i) || Number(i) >= 0) && this.pollingList.splice(Number(i), 1), Be.destroy(e);
1633
1633
  } catch (i) {
1634
1634
  throw console.error("pollingPlugin destroy error", i), i;
1635
1635
  }
1636
1636
  }
1637
1637
  getStatus() {
1638
- return a(this, null, function* () {
1638
+ return o(this, null, function* () {
1639
1639
  try {
1640
1640
  return yield Be.getStatus();
1641
1641
  } catch (e) {
@@ -1647,9 +1647,9 @@ class zr {
1647
1647
  let me = null;
1648
1648
  var hr;
1649
1649
  window.__MICRO_APP_ENVIRONMENT__ && (me = (hr = window.rawWindow.__mini_app_status_hook__) != null ? hr : {});
1650
- const rr = w.registerPlugin("PaymentPlugin", { web: new class extends y {
1650
+ const rr = d.registerPlugin("PaymentPlugin", { web: new class extends y {
1651
1651
  process(t) {
1652
- return a(this, null, function* () {
1652
+ return o(this, null, function* () {
1653
1653
  try {
1654
1654
  return new Promise((e) => {
1655
1655
  e(t);
@@ -1661,7 +1661,7 @@ const rr = w.registerPlugin("PaymentPlugin", { web: new class extends y {
1661
1661
  }
1662
1662
  getStatus() {
1663
1663
  try {
1664
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1664
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1665
1665
  var e, r;
1666
1666
  t((yield (r = (e = me == null ? void 0 : me.payment) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1667
1667
  })) : new Promise((t) => {
@@ -1674,7 +1674,7 @@ const rr = w.registerPlugin("PaymentPlugin", { web: new class extends y {
1674
1674
  }() });
1675
1675
  class et {
1676
1676
  process(e) {
1677
- return a(this, null, function* () {
1677
+ return o(this, null, function* () {
1678
1678
  try {
1679
1679
  return yield rr.process(e);
1680
1680
  } catch (r) {
@@ -1683,7 +1683,7 @@ class et {
1683
1683
  });
1684
1684
  }
1685
1685
  getStatus() {
1686
- return a(this, null, function* () {
1686
+ return o(this, null, function* () {
1687
1687
  try {
1688
1688
  return yield rr.getStatus();
1689
1689
  } catch (e) {
@@ -1695,18 +1695,18 @@ class et {
1695
1695
  let ge = null;
1696
1696
  var pr;
1697
1697
  window.__MICRO_APP_ENVIRONMENT__ && (ge = (pr = window.rawWindow.__mini_app_status_hook__) != null ? pr : {});
1698
- const Ve = w.registerPlugin("CameraForTakePhotoPlugin", { web: new class extends y {
1698
+ const Ve = d.registerPlugin("CameraForTakePhotoPlugin", { web: new class extends y {
1699
1699
  pickCameraForTakePhoto() {
1700
- return a(this, null, function* () {
1700
+ return o(this, null, function* () {
1701
1701
  });
1702
1702
  }
1703
1703
  setCameraForTakePhotoState() {
1704
- return a(this, null, function* () {
1704
+ return o(this, null, function* () {
1705
1705
  });
1706
1706
  }
1707
1707
  getStatus() {
1708
1708
  try {
1709
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1709
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1710
1710
  var e, r;
1711
1711
  t((yield (r = (e = ge == null ? void 0 : ge.cameraForTakePhoto) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1712
1712
  })) : new Promise((t) => {
@@ -1719,7 +1719,7 @@ const Ve = w.registerPlugin("CameraForTakePhotoPlugin", { web: new class extends
1719
1719
  }() });
1720
1720
  class rt {
1721
1721
  pickCameraForTakePhoto() {
1722
- return a(this, null, function* () {
1722
+ return o(this, null, function* () {
1723
1723
  try {
1724
1724
  return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraForTakePhoto() : yield Ve.pickCameraForTakePhoto();
1725
1725
  } catch (e) {
@@ -1728,7 +1728,7 @@ class rt {
1728
1728
  });
1729
1729
  }
1730
1730
  setCameraForTakePhotoState(e) {
1731
- return a(this, null, function* () {
1731
+ return o(this, null, function* () {
1732
1732
  try {
1733
1733
  return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraForTakePhotoState(e) : yield Ve.setCameraForTakePhotoState(e);
1734
1734
  } catch (r) {
@@ -1737,7 +1737,7 @@ class rt {
1737
1737
  });
1738
1738
  }
1739
1739
  getStatus() {
1740
- return a(this, null, function* () {
1740
+ return o(this, null, function* () {
1741
1741
  try {
1742
1742
  return yield Ve.getStatus();
1743
1743
  } catch (e) {
@@ -1749,9 +1749,9 @@ class rt {
1749
1749
  let Pe = null;
1750
1750
  var mr;
1751
1751
  window.__MICRO_APP_ENVIRONMENT__ && (Pe = (mr = window.rawWindow.__mini_app_status_hook__) != null ? mr : {});
1752
- const tr = w.registerPlugin("HttpPlugin", { web: new class extends y {
1752
+ const tr = d.registerPlugin("HttpPlugin", { web: new class extends y {
1753
1753
  request(t) {
1754
- return a(this, null, function* () {
1754
+ return o(this, null, function* () {
1755
1755
  return new Promise((e) => {
1756
1756
  e(t);
1757
1757
  });
@@ -1759,7 +1759,7 @@ const tr = w.registerPlugin("HttpPlugin", { web: new class extends y {
1759
1759
  }
1760
1760
  getStatus() {
1761
1761
  try {
1762
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1762
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1763
1763
  var e, r;
1764
1764
  t((yield (r = (e = Pe == null ? void 0 : Pe.http) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1765
1765
  })) : new Promise((t) => {
@@ -1772,7 +1772,7 @@ const tr = w.registerPlugin("HttpPlugin", { web: new class extends y {
1772
1772
  }() });
1773
1773
  class tt {
1774
1774
  request(e) {
1775
- return a(this, null, function* () {
1775
+ return o(this, null, function* () {
1776
1776
  try {
1777
1777
  if (window.__MICRO_APP_ENVIRONMENT__)
1778
1778
  return window.rawWindow.__mini_app_hook__.requestHttp(e);
@@ -1786,7 +1786,7 @@ class tt {
1786
1786
  });
1787
1787
  }
1788
1788
  getStatus() {
1789
- return a(this, null, function* () {
1789
+ return o(this, null, function* () {
1790
1790
  try {
1791
1791
  return yield tr.getStatus();
1792
1792
  } catch (e) {
@@ -1800,21 +1800,21 @@ for (let t = 0; t < 256; ++t)
1800
1800
  S.push((t + 256).toString(16).slice(1));
1801
1801
  const nt = new Uint8Array(16);
1802
1802
  function ot(t, e, r) {
1803
- return e || t || !crypto.randomUUID ? function(n, o, i) {
1804
- var s, d, _;
1803
+ return e || t || !crypto.randomUUID ? function(n, a, i) {
1804
+ var s, l, u;
1805
1805
  n = n || {};
1806
- const c = (_ = (d = n.random) != null ? d : (s = n.rng) == null ? void 0 : s.call(n)) != null ? _ : crypto.getRandomValues(nt);
1806
+ const c = (u = (l = n.random) != null ? l : (s = n.rng) == null ? void 0 : s.call(n)) != null ? u : crypto.getRandomValues(nt);
1807
1807
  if (c.length < 16)
1808
1808
  throw new Error("Random bytes length must be >= 16");
1809
- if (c[6] = 15 & c[6] | 64, c[8] = 63 & c[8] | 128, o) {
1810
- if ((i = i || 0) < 0 || i + 16 > o.length)
1809
+ if (c[6] = 15 & c[6] | 64, c[8] = 63 & c[8] | 128, a) {
1810
+ if ((i = i || 0) < 0 || i + 16 > a.length)
1811
1811
  throw new RangeError(`UUID byte range ${i}:${i + 15} is out of buffer bounds`);
1812
- for (let u = 0; u < 16; ++u)
1813
- o[i + u] = c[u];
1814
- return o;
1812
+ for (let _ = 0; _ < 16; ++_)
1813
+ a[i + _] = c[_];
1814
+ return a;
1815
1815
  }
1816
- return function(u, p = 0) {
1817
- return (S[u[p + 0]] + S[u[p + 1]] + S[u[p + 2]] + S[u[p + 3]] + "-" + S[u[p + 4]] + S[u[p + 5]] + "-" + S[u[p + 6]] + S[u[p + 7]] + "-" + S[u[p + 8]] + S[u[p + 9]] + "-" + S[u[p + 10]] + S[u[p + 11]] + S[u[p + 12]] + S[u[p + 13]] + S[u[p + 14]] + S[u[p + 15]]).toLowerCase();
1816
+ return function(_, p = 0) {
1817
+ return (S[_[p + 0]] + S[_[p + 1]] + S[_[p + 2]] + S[_[p + 3]] + "-" + S[_[p + 4]] + S[_[p + 5]] + "-" + S[_[p + 6]] + S[_[p + 7]] + "-" + S[_[p + 8]] + S[_[p + 9]] + "-" + S[_[p + 10]] + S[_[p + 11]] + S[_[p + 12]] + S[_[p + 13]] + S[_[p + 14]] + S[_[p + 15]]).toLowerCase();
1818
1818
  }(c);
1819
1819
  }(t, e, r) : crypto.randomUUID();
1820
1820
  }
@@ -1822,12 +1822,12 @@ const Ir = "PrintPlugin";
1822
1822
  let ye = null;
1823
1823
  var gr;
1824
1824
  window.__MICRO_APP_ENVIRONMENT__ && (ye = (gr = window.rawWindow.__mini_app_status_hook__) != null ? gr : {});
1825
- const nr = w.registerPlugin(Ir, { web: new class extends y {
1825
+ const nr = d.registerPlugin(Ir, { web: new class extends y {
1826
1826
  print() {
1827
1827
  }
1828
1828
  getStatus() {
1829
1829
  try {
1830
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1830
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1831
1831
  var e, r;
1832
1832
  t((yield (r = (e = ye == null ? void 0 : ye.print) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1833
1833
  })) : new Promise((t) => {
@@ -1843,11 +1843,11 @@ const at = (t, e) => {
1843
1843
  try {
1844
1844
  const r = e.printId;
1845
1845
  Y.removeAddListenerPrintList = T(b({}, Y.removeAddListenerPrintList), { printId: () => {
1846
- } }), ((n) => a(void 0, null, function* () {
1847
- return n && (Y.removeAddListenerPrintList[r] = yield ((o) => a(void 0, null, function* () {
1846
+ } }), ((n) => o(void 0, null, function* () {
1847
+ return n && (Y.removeAddListenerPrintList[r] = yield ((a) => o(void 0, null, function* () {
1848
1848
  try {
1849
- if (w.addListener) {
1850
- const i = yield w.addListener(Ir, "nativeSendPrint", (c) => o && o(c));
1849
+ if (d.addListener) {
1850
+ const i = yield d.addListener(Ir, "nativeSendPrint", (c) => a && a(c));
1851
1851
  return i != null && i.remove ? i.remove : () => null;
1852
1852
  }
1853
1853
  } catch (i) {
@@ -1855,9 +1855,9 @@ const at = (t, e) => {
1855
1855
  }
1856
1856
  }))(n));
1857
1857
  }))((n) => {
1858
- (n == null ? void 0 : n.printId) === r && (n != null && n.printId) && t.printList.forEach((o) => {
1858
+ (n == null ? void 0 : n.printId) === r && (n != null && n.printId) && t.printList.forEach((a) => {
1859
1859
  var i, c, s;
1860
- o != null && o.printId && (n == null ? void 0 : n.printId) === (o == null ? void 0 : o.printId) && (typeof (o == null ? void 0 : o.callBack) == "function" && o.callBack(n), (s = o.state == 5 || o.state == 6) != null || (c = (i = Y.removeAddListenerPrintList) == null ? void 0 : i[o == null ? void 0 : o.printId]) == null || c.call(i));
1860
+ a != null && a.printId && (n == null ? void 0 : n.printId) === (a == null ? void 0 : a.printId) && (typeof (a == null ? void 0 : a.callBack) == "function" && a.callBack(n), (s = a.state == 5 || a.state == 6) != null || (c = (i = Y.removeAddListenerPrintList) == null ? void 0 : i[a == null ? void 0 : a.printId]) == null || c.call(i));
1861
1861
  });
1862
1862
  });
1863
1863
  } catch (r) {
@@ -1870,30 +1870,30 @@ class it {
1870
1870
  this.printList = [];
1871
1871
  }
1872
1872
  print(e) {
1873
- var n;
1874
- const r = (((n = e == null ? void 0 : e.printParams) == null ? void 0 : n.miniAppName) || "") + ot().replace(/-/g, "");
1875
- if (this.printList.push({ printId: r, callBack: e == null ? void 0 : e.callBack }), this.printList = this.printList.filter((o, i, c) => i === c.findIndex((s) => s.printId === o.printId)), window.__MICRO_APP_ENVIRONMENT__) {
1876
- const { mounted: o, printParams: i, callBack: c } = e;
1877
- return o && o(() => {
1878
- var s, d;
1879
- (d = (s = window.rawWindow.__mini_app_hook__) == null ? void 0 : s.print) == null || d.call(s, T(b({}, i), { printId: r }), c);
1873
+ var n, a;
1874
+ const r = ((a = (n = e == null ? void 0 : e.printParams) == null ? void 0 : n.functionId) != null ? a : "") + ot().replace(/-/g, "");
1875
+ if (this.printList.push({ printId: r, callBack: e == null ? void 0 : e.callBack }), this.printList = this.printList.filter((i, c, s) => c === s.findIndex((l) => l.printId === i.printId)), window.__MICRO_APP_ENVIRONMENT__) {
1876
+ const { mounted: i, printParams: c, callBack: s } = e;
1877
+ return i && i(() => {
1878
+ var l, u;
1879
+ (u = (l = window.rawWindow.__mini_app_hook__) == null ? void 0 : l.print) == null || u.call(l, T(b({}, c), { printId: r }), s);
1880
1880
  }), { id: r };
1881
1881
  }
1882
1882
  try {
1883
- return nr.print(T(b({}, e == null ? void 0 : e.printParams), { printId: r })), ((o, i) => {
1883
+ return nr.print(T(b({}, e == null ? void 0 : e.printParams), { printId: r })), ((i, c) => {
1884
1884
  try {
1885
- const { mounted: c, printParams: s } = o;
1886
- c && c(() => at(i, s));
1887
- } catch (c) {
1888
- throw console.error("createPrint error", c), c;
1885
+ const { mounted: s, printParams: l } = i;
1886
+ s && s(() => at(c, l));
1887
+ } catch (s) {
1888
+ throw console.error("createPrint error", s), s;
1889
1889
  }
1890
1890
  })(T(b({}, e), { printParams: T(b({}, e.printParams), { printId: r }) }), this), { id: r };
1891
- } catch (o) {
1892
- throw console.error("printPlugin create error", o), o;
1891
+ } catch (i) {
1892
+ throw console.error("printPlugin create error", i), i;
1893
1893
  }
1894
1894
  }
1895
1895
  getStatus() {
1896
- return a(this, null, function* () {
1896
+ return o(this, null, function* () {
1897
1897
  try {
1898
1898
  return yield nr.getStatus();
1899
1899
  } catch (e) {
@@ -1923,21 +1923,21 @@ class st {
1923
1923
  }
1924
1924
  }
1925
1925
  const wt = new st();
1926
- let l = null, Se = null;
1926
+ let w = null, Se = null;
1927
1927
  var Pr, yr;
1928
- window.__MICRO_APP_ENVIRONMENT__ && (l = (Pr = window.rawWindow.__mini_app_hook__) != null ? Pr : {}, Se = (yr = window.rawWindow.__mini_app_status_hook__) != null ? yr : {});
1928
+ window.__MICRO_APP_ENVIRONMENT__ && (w = (Pr = window.rawWindow.__mini_app_hook__) != null ? Pr : {}, Se = (yr = window.rawWindow.__mini_app_status_hook__) != null ? yr : {});
1929
1929
  const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: class extends y {
1930
1930
  homeIsClick(t) {
1931
- return a(this, null, function* () {
1931
+ return o(this, null, function* () {
1932
1932
  var e;
1933
- window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch homeIsClick", t), (e = l.disabledMenu) == null || e.call(l, t));
1933
+ window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch homeIsClick", t), (e = w.disabledMenu) == null || e.call(w, t));
1934
1934
  });
1935
1935
  }
1936
1936
  openMiniApp(t) {
1937
- return a(this, null, function* () {
1937
+ return o(this, null, function* () {
1938
1938
  var e;
1939
1939
  try {
1940
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = l.openMiniApp) == null || e.call(l, t)), new Promise((r) => {
1940
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.openMiniApp) == null || e.call(w, t)), new Promise((r) => {
1941
1941
  r(t);
1942
1942
  });
1943
1943
  } catch (r) {
@@ -1946,10 +1946,10 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
1946
1946
  });
1947
1947
  }
1948
1948
  showTitle(t) {
1949
- return a(this, null, function* () {
1949
+ return o(this, null, function* () {
1950
1950
  var e;
1951
1951
  try {
1952
- return window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch showTitle", t), (e = l.showTitle) == null || e.call(l, t)), new Promise((r) => {
1952
+ return window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch showTitle", t), (e = w.showTitle) == null || e.call(w, t)), new Promise((r) => {
1953
1953
  r(t);
1954
1954
  });
1955
1955
  } catch (r) {
@@ -1958,10 +1958,10 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
1958
1958
  });
1959
1959
  }
1960
1960
  showFABMenu(t) {
1961
- return a(this, null, function* () {
1961
+ return o(this, null, function* () {
1962
1962
  var e;
1963
1963
  try {
1964
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = l.showFABMenu) == null || e.call(l, t)), new Promise((r) => {
1964
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.showFABMenu) == null || e.call(w, t)), new Promise((r) => {
1965
1965
  r(t);
1966
1966
  });
1967
1967
  } catch (r) {
@@ -1970,10 +1970,10 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
1970
1970
  });
1971
1971
  }
1972
1972
  disableFAB(t) {
1973
- return a(this, null, function* () {
1973
+ return o(this, null, function* () {
1974
1974
  var e;
1975
1975
  try {
1976
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = l.disableFAB) == null || e.call(l, t)), new Promise((r) => {
1976
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.disableFAB) == null || e.call(w, t)), new Promise((r) => {
1977
1977
  r(t);
1978
1978
  });
1979
1979
  } catch (r) {
@@ -1982,10 +1982,10 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
1982
1982
  });
1983
1983
  }
1984
1984
  disableBack(t) {
1985
- return a(this, null, function* () {
1985
+ return o(this, null, function* () {
1986
1986
  var e;
1987
1987
  try {
1988
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = l.disableBack) == null || e.call(l, t)), new Promise((r) => {
1988
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.disableBack) == null || e.call(w, t)), new Promise((r) => {
1989
1989
  r(t);
1990
1990
  });
1991
1991
  } catch (r) {
@@ -1994,10 +1994,10 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
1994
1994
  });
1995
1995
  }
1996
1996
  showSubMask(t) {
1997
- return a(this, null, function* () {
1997
+ return o(this, null, function* () {
1998
1998
  var e;
1999
1999
  try {
2000
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = l.showSubMask) == null || e.call(l, t)), new Promise((r) => {
2000
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.showSubMask) == null || e.call(w, t)), new Promise((r) => {
2001
2001
  r(t);
2002
2002
  });
2003
2003
  } catch (r) {
@@ -2006,10 +2006,10 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2006
2006
  });
2007
2007
  }
2008
2008
  setMiniAppVersion(t) {
2009
- return a(this, null, function* () {
2009
+ return o(this, null, function* () {
2010
2010
  var e;
2011
2011
  try {
2012
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = l.setMiniAppVersion) == null || e.call(l, t)), new Promise((r) => {
2012
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.setMiniAppVersion) == null || e.call(w, t)), new Promise((r) => {
2013
2013
  r(t);
2014
2014
  });
2015
2015
  } catch (r) {
@@ -2018,25 +2018,25 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2018
2018
  });
2019
2019
  }
2020
2020
  showDialog() {
2021
- return a(this, null, function* () {
2021
+ return o(this, null, function* () {
2022
2022
  var t;
2023
- window.__MICRO_APP_ENVIRONMENT__ && ((t = l.showDialog) == null || t.call(l));
2023
+ window.__MICRO_APP_ENVIRONMENT__ && ((t = w.showDialog) == null || t.call(w));
2024
2024
  });
2025
2025
  }
2026
2026
  cancelDialog() {
2027
- return a(this, null, function* () {
2027
+ return o(this, null, function* () {
2028
2028
  var t;
2029
- window.__MICRO_APP_ENVIRONMENT__ && ((t = l.cancelDialog) == null || t.call(l));
2029
+ window.__MICRO_APP_ENVIRONMENT__ && ((t = w.cancelDialog) == null || t.call(w));
2030
2030
  });
2031
2031
  }
2032
2032
  getMiniAppKong(t) {
2033
- return a(this, null, function* () {
2033
+ return o(this, null, function* () {
2034
2034
  var e, r;
2035
2035
  try {
2036
2036
  if (window.__MICRO_APP_ENVIRONMENT__) {
2037
- const n = (r = (e = l.getMiniAppKong) == null ? void 0 : e.call(l, t)) != null ? r : {};
2038
- return new Promise((o) => {
2039
- o(n);
2037
+ const n = (r = (e = w.getMiniAppKong) == null ? void 0 : e.call(w, t)) != null ? r : {};
2038
+ return new Promise((a) => {
2039
+ a(n);
2040
2040
  });
2041
2041
  }
2042
2042
  return new Promise((n) => {
@@ -2048,14 +2048,14 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2048
2048
  });
2049
2049
  }
2050
2050
  closeMiniApp() {
2051
- return a(this, null, function* () {
2051
+ return o(this, null, function* () {
2052
2052
  var t;
2053
- window.__MICRO_APP_ENVIRONMENT__ && ((t = l.closeMiniApp) == null || t.call(l));
2053
+ window.__MICRO_APP_ENVIRONMENT__ && ((t = w.closeMiniApp) == null || t.call(w));
2054
2054
  });
2055
2055
  }
2056
2056
  getStatus() {
2057
2057
  try {
2058
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
2058
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
2059
2059
  var e, r;
2060
2060
  t((yield (r = (e = Se == null ? void 0 : Se.communicate) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
2061
2061
  })) : new Promise((t) => {
@@ -2067,9 +2067,9 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2067
2067
  }
2068
2068
  dispatchToShell(t) {
2069
2069
  try {
2070
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((e) => a(this, null, function* () {
2070
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((e) => o(this, null, function* () {
2071
2071
  var r;
2072
- e((yield (r = l == null ? void 0 : l.dispatchToShell) == null ? void 0 : r.call(l, t)) || {});
2072
+ e((yield (r = w == null ? void 0 : w.dispatchToShell) == null ? void 0 : r.call(w, t)) || {});
2073
2073
  })) : new Promise((e) => {
2074
2074
  e(t);
2075
2075
  });
@@ -2079,9 +2079,9 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2079
2079
  }
2080
2080
  getMiniAppInfo(t) {
2081
2081
  try {
2082
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((e) => a(this, null, function* () {
2082
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((e) => o(this, null, function* () {
2083
2083
  var r;
2084
- e((yield (r = l == null ? void 0 : l.getMiniAppInfo) == null ? void 0 : r.call(l, t)) || {});
2084
+ e((yield (r = w == null ? void 0 : w.getMiniAppInfo) == null ? void 0 : r.call(w, t)) || {});
2085
2085
  })) : new Promise((e) => {
2086
2086
  e({});
2087
2087
  });