Created
August 24, 2018 05:28
-
-
Save ksky521/c6032edb6bef199decdc7f033762024b to your computer and use it in GitHub Desktop.
微信小程序的 WAService.js
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;var __WAServiceStartTime__ = Date.now(); | |
(function() { | |
var __exportGlobal__ = {}; | |
var WeixinJSBridge = function(e) { | |
"function" == typeof logxx && logxx("jsbridge start"); | |
var t = "undefined" != typeof __devtoolssubcontext && __devtoolssubcontext; | |
if (e.navigator && e.navigator.userAgent) { | |
var n = e.navigator.userAgent; | |
(n.indexOf("appservice") > -1 || n.indexOf("wechatdevtools") > -1) && (t = !0) | |
} | |
if (t) { | |
var o = e.WeixinJSBridge; | |
return delete e.WeixinJSBridge, | |
o | |
} | |
var r = e.__wxConfig || {} | |
, a = e.hasOwnProperty("document") | |
, i = r.isWK | |
, u = {} | |
, c = 0 | |
, s = {} | |
, l = {}; | |
if (a) { | |
var n = e.navigator.userAgent; | |
!(-1 != n.indexOf("Android")) | |
} | |
var f = e.webkit | |
, d = e.WeixinJSCore; | |
"object" == typeof d && "function" != typeof d.publishHandler && (d.publishHandler = function() {} | |
), | |
delete e.webkit, | |
delete e.WeixinJSCore; | |
var p = JSON.parse | |
, h = JSON.stringify | |
, v = function(e, t) { | |
if (void 0 !== e && "function" == typeof u[t] && "" !== e && null !== e) { | |
try { | |
e = p(e), | |
e = WeixinNativeBuffer.unpack(e) | |
} catch (t) { | |
e = {} | |
} | |
u[t](e), | |
delete u[t] | |
} | |
} | |
, g = function(e, t, n) { | |
if (d) { | |
var o = d.invokeHandler(e, t, n); | |
v(o, n) | |
} else { | |
var r = { | |
event: e, | |
paramsString: t, | |
callbackId: n | |
}; | |
if (i) { | |
var o = prompt("webgame_invoke", h(r)); | |
v(o, n) | |
} else | |
f.messageHandlers.invokeHandler.postMessage(r) | |
} | |
} | |
, _ = function(e, t, n) { | |
d ? d.publishHandler(e, t, n) : f.messageHandlers.publishHandler.postMessage({ | |
event: e, | |
paramsString: t, | |
webviewIds: n | |
}) | |
} | |
, y = function(e, t, n) { | |
t = WeixinNativeBuffer.pack(t); | |
var o = h(t || {}) | |
, r = ++c; | |
u[r] = n, | |
g(e, o, r) | |
} | |
, b = function(e, t) { | |
t = WeixinNativeBuffer.unpack(t); | |
var n = u[e]; | |
"function" == typeof n && n(t), | |
delete u[e] | |
} | |
, m = function(e, t) { | |
s[e] = t | |
} | |
, w = function(e, t, n) { | |
n = n || [], | |
n = h(n); | |
var o = "custom_event_" + e | |
, r = h(t); | |
_(o, r, n) | |
} | |
, k = function(e, t) { | |
l["custom_event_" + e] = t | |
} | |
, S = function(e, t, n, o) { | |
t = WeixinNativeBuffer.unpack(t); | |
var r; | |
"function" == typeof (r = -1 != e.indexOf("custom_event_") ? l[e] : s[e]) && r(t, n, o) | |
}; | |
return e.WeixinJSBridge = { | |
get invokeCallbackHandler() { | |
return b | |
}, | |
get subscribeHandler() { | |
return S | |
} | |
}, | |
r && r.clientDebug && (e.WeixinJSBridge = { | |
on: m, | |
publish: w, | |
invoke: y, | |
subscribe: k, | |
get invokeCallbackHandler() { | |
return b | |
}, | |
get subscribeHandler() { | |
return S | |
} | |
}), | |
{ | |
on: m, | |
publish: w, | |
invoke: y, | |
subscribe: k, | |
get invokeCallbackHandler() { | |
return b | |
}, | |
get subscribeHandler() { | |
return S | |
} | |
} | |
}(this); | |
!function(e) { | |
var t = e.__wxConfig || {} | |
, n = "undefined" != typeof __devtoolssubcontext && __devtoolssubcontext | |
, o = "undefined" != typeof __clientsubcontext && __clientsubcontext | |
, r = n || o | |
, a = !0 === t.preload | |
, i = !!r || !a | |
, u = [] | |
, c = function(t) { | |
i ? void 0 !== e.__wxConfig && t(e.__wxConfig) : "function" == typeof t && u.push(t) | |
} | |
, s = function() { | |
void 0 !== e.__wxConfig && (delete e.__wxConfig.__readyHandler, | |
i = !0, | |
e.__wxConfig.onReady = c, | |
u.forEach(function(t) { | |
t(e.__wxConfig) | |
})) | |
}; | |
a && function(e) { | |
void 0 !== WeixinJSBridge ? e() : document.addEventListener("WeixinJSBridgeReady", e, !1) | |
}(function() { | |
WeixinJSBridge.on("onWxConfigReady", s) | |
}), | |
e.__wxConfig = e.__wxConfig || {}, | |
e.__wxConfig.onReady = c, | |
e.__wxConfig.__readyHandler = s | |
}(this); | |
var NativeBuffer = function(e) { | |
var t = e.WeixinNativeBuffer | |
, n = e.getNativeBufferId | |
, o = e.setNativeBuffer | |
, r = e.getNativeBuffer | |
, a = e.__wxConfig || {} | |
, i = !1; | |
"android" === a.platform ? i = "function" == typeof n && "function" == typeof o && "function" == typeof r && a.nativeBufferEnabled : "ios" === a.platform && (i = null != t); | |
var u = function(e) { | |
if (e.__proto__ = ArrayBuffer.prototype, | |
t) | |
return t.new(e); | |
if ("function" == typeof n && "function" == typeof o) { | |
var r = n(); | |
return o(r, e), | |
r | |
} | |
return -1 | |
} | |
, c = function(e) { | |
return t ? t.get(e) : "function" == typeof r ? r(e) : void 0 | |
} | |
, s = function(e) { | |
t && t.useCompatibleMode(e) | |
} | |
, l = function(e) { | |
var t = {}; | |
return i ? t.id = u(e) : t.base64 = v(e), | |
t | |
} | |
, f = function(e) { | |
if (null != e) | |
return i && void 0 !== e.id ? c(e.id) : void 0 !== e.base64 ? g(e.base64) : void 0 | |
} | |
, d = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" | |
, p = p || function(e) { | |
for (var t, n, o = String(e), r = "", a = 0, i = d; o.charAt(0 | a) || (i = "=", | |
a % 1); r += i.charAt(63 & t >> 8 - a % 1 * 8)) { | |
if ((n = o.charCodeAt(a += .75)) > 255) | |
throw new Error('"btoa" failed'); | |
t = t << 8 | n | |
} | |
return r | |
} | |
, h = h || function(e) { | |
var t = String(e).replace(/=+$/, "") | |
, n = ""; | |
if (t.length % 4 == 1) | |
throw new Error('"atob" failed'); | |
for (var o, r, a = 0, i = 0; r = t.charAt(i++); ~r && (o = a % 4 ? 64 * o + r : r, | |
a++ % 4) ? n += String.fromCharCode(255 & o >> (-2 * a & 6)) : 0) | |
r = d.indexOf(r); | |
return n | |
} | |
, v = function(e) { | |
for (var t = "", n = new Uint8Array(e), o = n.byteLength, r = 0; r < o; r++) | |
t += String.fromCharCode(n[r]); | |
return p(t) | |
} | |
, g = function(e) { | |
for (var t = h(e), n = t.length, o = new Uint8Array(n), r = 0; r < n; r++) | |
o[r] = t.charCodeAt(r); | |
return o.buffer | |
} | |
, _ = function(e) { | |
if (null == e) | |
return e; | |
var t = []; | |
for (var n in e) { | |
var o = e[n]; | |
if (void 0 !== o && "ArrayBuffer" === b(o) && void 0 !== o.byteLength) { | |
var r = l(o); | |
r.key = n, | |
t.push(r) | |
} | |
} | |
if (t.length > 0) { | |
for (var a = 0; a < t.length; a++) { | |
var r = t[a]; | |
delete e[r.key] | |
} | |
e.__nativeBuffers__ = t | |
} | |
return e | |
} | |
, y = function(e) { | |
if (null == e || null == e.__nativeBuffers__) | |
return e; | |
var t = e.__nativeBuffers__; | |
delete e.__nativeBuffers__; | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
if (null != o) { | |
var r = f(o); | |
void 0 !== r && "ArrayBuffer" === b(r) && (e[o.key] = r) | |
} | |
} | |
return e | |
} | |
, b = function(e) { | |
return Object.prototype.toString.call(e).split(" ")[1].split("]")[0] | |
}; | |
return delete e.WeixinNativeBuffer, | |
delete e.getNativeBufferId, | |
delete e.setNativeBuffer, | |
delete e.getNativeBuffer, | |
{ | |
new: l, | |
get: f, | |
useCompatibleMode: s, | |
pack: _, | |
unpack: y | |
} | |
}(this) | |
, WeixinNativeBuffer = NativeBuffer; | |
NativeBuffer = null; | |
var wxConsole = function() { | |
var e = function(e) { | |
return Array.prototype.unshift.call(e, "[system]"), | |
e | |
} | |
, t = function(t) { | |
return function() { | |
console[t].apply(console, e(arguments)) | |
} | |
}; | |
return { | |
log: t("log"), | |
info: t("info"), | |
warn: t("warn"), | |
error: t("error"), | |
debug: t("debug"), | |
time: t("time"), | |
timeEnd: t("timeEnd"), | |
group: t("group"), | |
groupEnd: t("groupEnd") | |
} | |
}() | |
, WeixinWorker = function(e) { | |
var t = (e.__wxConfig, | |
!1); | |
if (e.navigator && e.navigator.userAgent) { | |
var n = e.navigator.userAgent; | |
(n.indexOf("appservice") > -1 || n.indexOf("wechatdevtools") > -1) && (t = !0) | |
} | |
var o = e.WeixinWorker || {} | |
, r = [] | |
, a = [] | |
, i = [] | |
, u = function() { | |
if ("function" == typeof o.create) | |
return o.create.apply(o, arguments) | |
} | |
, c = function() { | |
if ("function" == typeof o.terminate) | |
return o.terminate.apply(o, arguments) | |
} | |
, s = function(e) { | |
try { | |
e = WeixinNativeBuffer.pack(e), | |
e = JSON.stringify(e), | |
o.postMsgToAppService(e) | |
} catch (e) { | |
console.error(e) | |
} | |
} | |
, l = function(e, t) { | |
try { | |
t = WeixinNativeBuffer.pack(t), | |
t = JSON.stringify(t), | |
o.postMsgToWorker(e, t) | |
} catch (e) { | |
console.error(e) | |
} | |
} | |
, f = function(e) { | |
r.push(e) | |
} | |
, d = function(e) { | |
a.push(e) | |
} | |
, p = function(e) { | |
i.push(e) | |
} | |
, h = function(e) { | |
e = WeixinNativeBuffer.unpack(e), | |
a.forEach(function(t) { | |
"function" == typeof t && t(e) | |
}) | |
} | |
, v = function(e, t) { | |
t = WeixinNativeBuffer.unpack(t), | |
r.forEach(function(n) { | |
"function" == typeof n && n(e, t) | |
}) | |
} | |
, g = function(e) { | |
i.forEach(function(t) { | |
"function" == typeof t && t(e) | |
}) | |
} | |
, _ = { | |
get appServiceMsgHandler() { | |
return h | |
}, | |
get workerMsgHandler() { | |
return v | |
}, | |
get errorHandler() { | |
return g | |
}, | |
get __workerId__() { | |
return o.__workerId__ | |
} | |
} | |
, y = { | |
create: u, | |
terminate: c, | |
postMsgToAppService: s, | |
postMsgToWorker: l, | |
onWorkerMsg: f, | |
onAppServiceMsg: d, | |
onError: p | |
}; | |
return t && (y.appServiceMsgHandler = _.appServiceMsgHandler, | |
y.workerMsgHandler = _.workerMsgHandler, | |
y.errorHandler = _.errorHandler, | |
y.__workerId__ = _.__workerId__), | |
e.WeixinWorker = _, | |
y | |
}(this) | |
, JSContext = function(e) { | |
function t(o) { | |
if (n[o]) | |
return n[o].exports; | |
var r = n[o] = { | |
exports: {}, | |
id: o, | |
loaded: !1 | |
}; | |
return e[o].call(r.exports, r, r.exports, t), | |
r.loaded = !0, | |
r.exports | |
} | |
var n = {}; | |
return t.m = e, | |
t.c = n, | |
t.p = "", | |
t(0) | |
}([function(e, t, n) { | |
(function(t) { | |
"use strict"; | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
, a = n(1) | |
, i = o(a) | |
, u = n(4) | |
, c = o(u) | |
, s = n(5) | |
, l = o(s) | |
, f = void 0 | |
, d = function() { | |
return void 0 !== (void 0 === t ? "undefined" : r(t)) ? t : this | |
}(); | |
if (void 0 !== d.WeixinJSContext) { | |
f = Object.getPrototypeOf(d.WeixinJSContext) === Object.prototype ? i.default : c.default, | |
f.__init__(WeixinJSContext) | |
} else | |
f = l.default; | |
delete f.__init__, | |
d.WeixinJSContext = void 0, | |
e.exports = f | |
} | |
).call(t, function() { | |
return this | |
}()) | |
} | |
, function(e, t, n) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(2) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, a = n(3) | |
, i = {} | |
, u = {} | |
, c = [] | |
, s = void 0 | |
, l = 0 | |
, f = void 0 | |
, d = void 0 | |
, p = void 0 | |
, h = [] | |
, v = function(e) { | |
void 0 === s && void 0 !== e && (s = e, | |
g()) | |
} | |
, g = function() { | |
s.register = m, | |
s.subscribeHandler = k, | |
f = s.create, | |
d = s.destroy, | |
p = s.evaluateScriptFile, | |
delete s.create, | |
delete s.destroy, | |
delete s.evaluateScriptFile | |
} | |
, _ = function(e) { | |
for (var t = c.length, n = 0; n < t; n++) { | |
var o = c[n]; | |
if (u[o] === e) | |
return o | |
} | |
} | |
, y = function(e) { | |
return "function" == typeof f ? f.call(s, e) : -9999 | |
} | |
, b = function(e) { | |
return "function" == typeof d ? d(e) : -9999 | |
} | |
, m = function(e, t) { | |
if (void 0 !== t && void 0 !== e && e === s) | |
return u[++l] = t, | |
c.push(l), | |
h.forEach(function(e) { | |
"function" == typeof e && e(l) | |
}), | |
l | |
} | |
, w = function(e) { | |
h.push(e) | |
} | |
, k = function(e, t, n, o) { | |
var a = arguments.length > 4 && void 0 !== arguments[4] && arguments[4]; | |
if (void 0 !== e && e === s) { | |
var u = _(t); | |
if (void 0 !== u) { | |
a || (n = n.valueOf(), | |
o = new r.default(o)); | |
var c = i[n]; | |
"function" == typeof c && c(o, u) | |
} | |
} | |
} | |
, S = function(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {} | |
, n = arguments[2] | |
, o = arguments.length > 3 && void 0 !== arguments[3] && arguments[3] | |
, i = (0, | |
a.getDataType)(t); | |
if ("Object" !== i && "Undefined" !== i) | |
throw new Error("params should be an object."); | |
o || (e = e.valueOf(), | |
t = new r.default(t)), | |
n.forEach(function(n) { | |
var r = u[n]; | |
r && r.subscribeHandler(s, e, t, 0, o) | |
}) | |
} | |
, C = function(e, t) { | |
i[e] = t | |
} | |
, P = function(e, t) { | |
return p(e, t) | |
} | |
, M = { | |
__init__: v, | |
publish: S, | |
subscribe: C, | |
onRegister: w, | |
evaluateScriptFile: P, | |
create: y, | |
destroy: b | |
}; | |
t.default = M | |
} | |
, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var r = n(3) | |
, a = ["constructor", "__proto__", "__defineGetter__", "__defineSetter__"] | |
, i = "undefined" != typeof WeakMap ? new WeakMap : {} | |
, u = "undefined" != typeof WeakMap ? new WeakMap : {} | |
, c = function(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1] | |
, n = u.get(e); | |
return void 0 !== n ? n : (n = function() { | |
for (var n = arguments.length, o = Array(n), r = 0; r < n; r++) | |
o[r] = arguments[r]; | |
for (var a = 0; a < o.length; a++) { | |
var u = o[a]; | |
o[a] = l(u) | |
} | |
var c = t ? i.get(this) : void 0 | |
, s = e.call.apply(e, [c].concat(o)); | |
return l(s) | |
} | |
, | |
u.set(e, n), | |
n) | |
} | |
, s = function(e) { | |
for (var t = [], n = 0; n < e.length; n++) { | |
var o = e[n]; | |
t.push(l(o)) | |
} | |
return t | |
} | |
, l = function(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1] | |
, n = (0, | |
r.getDataType)(e); | |
return "String" === n || "Number" === n || "Boolean" === n ? e.valueOf() : "Object" === n ? new v(e) : "Array" === n ? s(e) : "Function" === n ? c(e, t) : "Undefined" !== n && "Null" === n ? null : void 0 | |
} | |
, f = function(e) { | |
return function() { | |
var t = i.get(this); | |
if (void 0 !== t) { | |
if (null === t) | |
return null; | |
var n = t[e]; | |
return l(n, !0) | |
} | |
} | |
} | |
, d = function(e) { | |
return function(t) { | |
var n = i.get(this); | |
if (void 0 !== n) | |
return null === n ? null : void (n[e] = l(t)) | |
} | |
} | |
, p = function(e) { | |
for (var t = 0; t < a.length; t++) { | |
if (a[t] === e) | |
return !0 | |
} | |
return !1 | |
} | |
, h = function() { | |
for (var e = i.get(this), t = (0, | |
r.getAllPropertyDescs)(e), n = 0; n < t.length; n++) { | |
var o = t[n] | |
, a = o.name; | |
p(a) || (a in this || (delete o.value, | |
delete o.writable, | |
(0, | |
r.ObjDefProp)(this, a, Object.assign(o, { | |
get: f(a), | |
set: d(a) | |
})))) | |
} | |
} | |
, v = function e(t) { | |
o(this, e), | |
i.set(this, t), | |
h.call(this) | |
}; | |
t.default = v | |
} | |
, function(e, t) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var n = Object.prototype.toString | |
, o = Object.getPrototypeOf | |
, r = Object.getOwnPropertyNames | |
, a = Object.getOwnPropertyDescriptor; | |
t.ObjDefProp = Object.defineProperty, | |
t.getDataType = function(e) { | |
return n.call(e).split(" ")[1].split("]")[0] | |
} | |
, | |
t.getAllPropertyDescs = function(e) { | |
for (var t = [], n = e; n; n = o(n)) { | |
var i = r(n) | |
, u = !0 | |
, c = !1 | |
, s = void 0; | |
try { | |
for (var l, f = i[Symbol.iterator](); !(u = (l = f.next()).done); u = !0) { | |
var d = l.value | |
, p = a(n, d); | |
void 0 !== p && (p.name = d, | |
t.push(p)) | |
} | |
} catch (e) { | |
c = !0, | |
s = e | |
} finally { | |
try { | |
!u && f.return && f.return() | |
} finally { | |
if (c) | |
throw s | |
} | |
} | |
} | |
return t | |
} | |
} | |
, function(e, t, n) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(2) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, a = n(3) | |
, i = {} | |
, u = void 0 | |
, c = void 0 | |
, s = function(e) { | |
void 0 === u && void 0 !== e && (u = e, | |
c = u.register(e, p)) | |
} | |
, l = function(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {} | |
, n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2] | |
, o = (0, | |
a.getDataType)(t); | |
if ("Object" !== o && "Undefined" !== o) | |
throw new Error("params should be an object."); | |
var i = e.valueOf() | |
, c = void 0; | |
c = n ? t || {} : void 0 === t ? {} : new r.default(t), | |
u.subscribeHandler(u, p, i, c, n) | |
} | |
, f = function(e, t) { | |
i[e] = t | |
} | |
, d = function(e, t) { | |
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {} | |
, o = (arguments[3], | |
arguments.length > 4 && void 0 !== arguments[4] && arguments[4]); | |
if (void 0 !== e && e === u) { | |
o || (t = t.valueOf(), | |
n = new r.default(n)); | |
var a = i[t]; | |
"function" == typeof a && a(n) | |
} | |
} | |
, p = { | |
subscribeHandler: d | |
} | |
, h = { | |
__init__: s, | |
publish: l, | |
subscribe: f | |
}; | |
"undefined" != typeof __wxConfig && !0 === __wxConfig.jestTest && (h.subscribeHandler = d), | |
t.default = h | |
} | |
, function(e, t) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.default = { | |
create: function() { | |
return -9999 | |
}, | |
destroy: function() { | |
return -9999 | |
}, | |
publish: function() {}, | |
subscribe: function() {} | |
} | |
} | |
]); | |
!function(e, t, n) { | |
"use strict"; | |
!function(e) { | |
function t(o) { | |
if (n[o]) | |
return n[o].exports; | |
var r = n[o] = { | |
i: o, | |
l: !1, | |
exports: {} | |
}; | |
return e[o].call(r.exports, r, r.exports, t), | |
r.l = !0, | |
r.exports | |
} | |
var n = {}; | |
t.m = e, | |
t.c = n, | |
t.d = function(e, n, o) { | |
t.o(e, n) || Object.defineProperty(e, n, { | |
configurable: !1, | |
enumerable: !0, | |
get: o | |
}) | |
} | |
, | |
t.n = function(e) { | |
var n = e && e.__esModule ? function() { | |
return e.default | |
} | |
: function() { | |
return e | |
} | |
; | |
return t.d(n, "a", n), | |
n | |
} | |
, | |
t.o = function(e, t) { | |
return Object.prototype.hasOwnProperty.call(e, t) | |
} | |
, | |
t.p = "", | |
t(t.s = 104) | |
}([function(e, t, o) { | |
var r = o(3) | |
, a = o(30) | |
, i = o(14) | |
, u = o(11) | |
, c = o(16) | |
, s = function(e, t, o) { | |
var l, f, d, p, h = e & s.F, v = e & s.G, g = e & s.S, _ = e & s.P, y = e & s.B, b = v ? r : g ? r[t] || (r[t] = {}) : (r[t] || {}).prototype, m = v ? a : a[t] || (a[t] = {}), w = m.prototype || (m.prototype = {}); | |
v && (o = t); | |
for (l in o) | |
f = !h && b && b[l] !== n, | |
d = (f ? b : o)[l], | |
p = y && f ? c(d, r) : _ && "function" == typeof d ? c(Function.call, d) : d, | |
b && u(b, l, d, e & s.U), | |
m[l] != d && i(m, l, p), | |
_ && w[l] != d && (w[l] = d) | |
}; | |
r.core = a, | |
s.F = 1, | |
s.G = 2, | |
s.S = 4, | |
s.P = 8, | |
s.B = 16, | |
s.W = 32, | |
s.U = 64, | |
s.R = 128, | |
e.exports = s | |
} | |
, function(e, t) { | |
e.exports = function(e) { | |
try { | |
return !!e() | |
} catch (e) { | |
return !0 | |
} | |
} | |
} | |
, function(e, t) { | |
e.exports = function(e) { | |
return "object" == typeof e ? null !== e : "function" == typeof e | |
} | |
} | |
, function(e, n) { | |
var o = e.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); | |
"number" == typeof t && (t = o) | |
} | |
, function(e, t, n) { | |
var o = n(2); | |
e.exports = function(e) { | |
if (!o(e)) | |
throw TypeError(e + " is not an object!"); | |
return e | |
} | |
} | |
, function(e, t, n) { | |
var o = n(57)("wks") | |
, r = n(31) | |
, a = n(3).Symbol | |
, i = "function" == typeof a; | |
(e.exports = function(e) { | |
return o[e] || (o[e] = i && a[e] || (i ? a : r)("Symbol." + e)) | |
} | |
).store = o | |
} | |
, function(e, t, n) { | |
var o = n(4) | |
, r = n(79) | |
, a = n(24) | |
, i = Object.defineProperty; | |
t.f = n(7) ? Object.defineProperty : function(e, t, n) { | |
if (o(e), | |
t = a(t, !0), | |
o(n), | |
r) | |
try { | |
return i(e, t, n) | |
} catch (e) {} | |
if ("get"in n || "set"in n) | |
throw TypeError("Accessors not supported!"); | |
return "value"in n && (e[t] = n.value), | |
e | |
} | |
} | |
, function(e, t, n) { | |
e.exports = !n(1)(function() { | |
return 7 != Object.defineProperty({}, "a", { | |
get: function() { | |
return 7 | |
} | |
}).a | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(21) | |
, r = Math.min; | |
e.exports = function(e) { | |
return e > 0 ? r(o(e), 9007199254740991) : 0 | |
} | |
} | |
, function(e, t) { | |
var n = {}.hasOwnProperty; | |
e.exports = function(e, t) { | |
return n.call(e, t) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(1) | |
, a = n(26) | |
, i = /"/g | |
, u = function(e, t, n, o) { | |
var r = String(a(e)) | |
, u = "<" + t; | |
return "" !== n && (u += " " + n + '="' + String(o).replace(i, """) + '"'), | |
u + ">" + r + "</" + t + ">" | |
}; | |
e.exports = function(e, t) { | |
var n = {}; | |
n[e] = t(u), | |
o(o.P + o.F * r(function() { | |
var t = ""[e]('"'); | |
return t !== t.toLowerCase() || t.split('"').length > 3 | |
}), "String", n) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(3) | |
, r = n(14) | |
, a = n(9) | |
, i = n(31)("src") | |
, u = Function.toString | |
, c = ("" + u).split("toString"); | |
n(30).inspectSource = function(e) { | |
return u.call(e) | |
} | |
, | |
(e.exports = function(e, t, n, u) { | |
var s = "function" == typeof n; | |
s && (a(n, "name") || r(n, "name", t)), | |
e[t] !== n && (s && (a(n, i) || r(n, i, e[t] ? "" + e[t] : c.join(String(t)))), | |
e === o ? e[t] = n : u ? e[t] ? e[t] = n : r(e, t, n) : (delete e[t], | |
r(e, t, n))) | |
} | |
)(Function.prototype, "toString", function() { | |
return "function" == typeof this && this[i] || u.call(this) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(42) | |
, r = n(26); | |
e.exports = function(e) { | |
return o(r(e)) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(26); | |
e.exports = function(e) { | |
return Object(o(e)) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(6) | |
, r = n(25); | |
e.exports = n(7) ? function(e, t, n) { | |
return o.f(e, t, r(1, n)) | |
} | |
: function(e, t, n) { | |
return e[t] = n, | |
e | |
} | |
} | |
, function(e, t, n) { | |
var o = n(1); | |
e.exports = function(e, t) { | |
return !!e && o(function() { | |
t ? e.call(null, function() {}, 1) : e.call(null) | |
}) | |
} | |
} | |
, function(e, t, o) { | |
var r = o(17); | |
e.exports = function(e, t, o) { | |
if (r(e), | |
t === n) | |
return e; | |
switch (o) { | |
case 1: | |
return function(n) { | |
return e.call(t, n) | |
} | |
; | |
case 2: | |
return function(n, o) { | |
return e.call(t, n, o) | |
} | |
; | |
case 3: | |
return function(n, o, r) { | |
return e.call(t, n, o, r) | |
} | |
} | |
return function() { | |
return e.apply(t, arguments) | |
} | |
} | |
} | |
, function(e, t) { | |
e.exports = function(e) { | |
if ("function" != typeof e) | |
throw TypeError(e + " is not a function!"); | |
return e | |
} | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(30) | |
, a = n(1); | |
e.exports = function(e, t) { | |
var n = (r.Object || {})[e] || Object[e] | |
, i = {}; | |
i[e] = t(n), | |
o(o.S + o.F * a(function() { | |
n(1) | |
}), "Object", i) | |
} | |
} | |
, function(e, t, o) { | |
var r = o(16) | |
, a = o(42) | |
, i = o(13) | |
, u = o(8) | |
, c = o(201); | |
e.exports = function(e, t) { | |
var o = 1 == e | |
, s = 2 == e | |
, l = 3 == e | |
, f = 4 == e | |
, d = 6 == e | |
, p = 5 == e || d | |
, h = t || c; | |
return function(t, c, v) { | |
for (var g, _, y = i(t), b = a(y), m = r(c, v, 3), w = u(b.length), k = 0, S = o ? h(t, w) : s ? h(t, 0) : n; w > k; k++) | |
if ((p || k in b) && (g = b[k], | |
_ = m(g, k, y), | |
e)) | |
if (o) | |
S[k] = _; | |
else if (_) | |
switch (e) { | |
case 3: | |
return !0; | |
case 5: | |
return g; | |
case 6: | |
return k; | |
case 2: | |
S.push(g) | |
} | |
else if (f) | |
return !1; | |
return d ? -1 : l || f ? f : S | |
} | |
} | |
} | |
, function(e, t) { | |
var n = {}.toString; | |
e.exports = function(e) { | |
return n.call(e).slice(8, -1) | |
} | |
} | |
, function(e, t) { | |
var n = Math.ceil | |
, o = Math.floor; | |
e.exports = function(e) { | |
return isNaN(e = +e) ? 0 : (e > 0 ? o : n)(e) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(47) | |
, r = n(25) | |
, a = n(12) | |
, i = n(24) | |
, u = n(9) | |
, c = n(79) | |
, s = Object.getOwnPropertyDescriptor; | |
t.f = n(7) ? s : function(e, t) { | |
if (e = a(e), | |
t = i(t, !0), | |
c) | |
try { | |
return s(e, t) | |
} catch (e) {} | |
if (u(e, t)) | |
return r(!o.f.call(e, t), e[t]) | |
} | |
} | |
, function(e, t, o) { | |
if (o(7)) { | |
var r = o(37) | |
, a = o(3) | |
, i = o(1) | |
, u = o(0) | |
, c = o(52) | |
, s = o(76) | |
, l = o(16) | |
, f = o(40) | |
, d = o(25) | |
, p = o(14) | |
, h = o(39) | |
, v = o(21) | |
, g = o(8) | |
, _ = o(101) | |
, y = o(33) | |
, b = o(24) | |
, m = o(9) | |
, w = o(44) | |
, k = o(2) | |
, S = o(13) | |
, C = o(60) | |
, P = o(27) | |
, M = o(28) | |
, I = o(34).f | |
, O = o(61) | |
, T = o(31) | |
, E = o(5) | |
, x = o(19) | |
, A = o(55) | |
, j = o(77) | |
, B = o(97) | |
, D = o(35) | |
, R = o(49) | |
, N = o(38) | |
, L = o(74) | |
, F = o(96) | |
, W = o(6) | |
, V = o(22) | |
, U = W.f | |
, H = V.f | |
, G = a.RangeError | |
, q = a.TypeError | |
, K = a.Uint8Array | |
, z = Array.prototype | |
, J = s.ArrayBuffer | |
, Y = s.DataView | |
, X = x(0) | |
, $ = x(2) | |
, Q = x(3) | |
, Z = x(4) | |
, ee = x(5) | |
, te = x(6) | |
, ne = A(!0) | |
, oe = A(!1) | |
, re = B.values | |
, ae = B.keys | |
, ie = B.entries | |
, ue = z.lastIndexOf | |
, ce = z.reduce | |
, se = z.reduceRight | |
, le = z.join | |
, fe = z.sort | |
, de = z.slice | |
, pe = z.toString | |
, he = z.toLocaleString | |
, ve = E("iterator") | |
, ge = E("toStringTag") | |
, _e = T("typed_constructor") | |
, ye = T("def_constructor") | |
, be = c.CONSTR | |
, me = c.TYPED | |
, we = c.VIEW | |
, ke = x(1, function(e, t) { | |
return Ie(j(e, e[ye]), t) | |
}) | |
, Se = i(function() { | |
return 1 === new K(new Uint16Array([1]).buffer)[0] | |
}) | |
, Ce = !!K && !!K.prototype.set && i(function() { | |
new K(1).set({}) | |
}) | |
, Pe = function(e, t) { | |
var n = v(e); | |
if (n < 0 || n % t) | |
throw G("Wrong offset!"); | |
return n | |
} | |
, Me = function(e) { | |
if (k(e) && me in e) | |
return e; | |
throw q(e + " is not a typed array!") | |
} | |
, Ie = function(e, t) { | |
if (!(k(e) && _e in e)) | |
throw q("It is not a typed array constructor!"); | |
return new e(t) | |
} | |
, Oe = function(e, t) { | |
return Te(j(e, e[ye]), t) | |
} | |
, Te = function(e, t) { | |
for (var n = 0, o = t.length, r = Ie(e, o); o > n; ) | |
r[n] = t[n++]; | |
return r | |
} | |
, Ee = function(e, t, n) { | |
U(e, t, { | |
get: function() { | |
return this._d[n] | |
} | |
}) | |
} | |
, xe = function(e) { | |
var t, o, r, a, i, u, c = S(e), s = arguments.length, f = s > 1 ? arguments[1] : n, d = f !== n, p = O(c); | |
if (p != n && !C(p)) { | |
for (u = p.call(c), | |
r = [], | |
t = 0; !(i = u.next()).done; t++) | |
r.push(i.value); | |
c = r | |
} | |
for (d && s > 2 && (f = l(f, arguments[2], 2)), | |
t = 0, | |
o = g(c.length), | |
a = Ie(this, o); o > t; t++) | |
a[t] = d ? f(c[t], t) : c[t]; | |
return a | |
} | |
, Ae = function() { | |
for (var e = 0, t = arguments.length, n = Ie(this, t); t > e; ) | |
n[e] = arguments[e++]; | |
return n | |
} | |
, je = !!K && i(function() { | |
he.call(new K(1)) | |
}) | |
, Be = function() { | |
return he.apply(je ? de.call(Me(this)) : Me(this), arguments) | |
} | |
, De = { | |
copyWithin: function(e, t) { | |
return F.call(Me(this), e, t, arguments.length > 2 ? arguments[2] : n) | |
}, | |
every: function(e) { | |
return Z(Me(this), e, arguments.length > 1 ? arguments[1] : n) | |
}, | |
fill: function(e) { | |
return L.apply(Me(this), arguments) | |
}, | |
filter: function(e) { | |
return Oe(this, $(Me(this), e, arguments.length > 1 ? arguments[1] : n)) | |
}, | |
find: function(e) { | |
return ee(Me(this), e, arguments.length > 1 ? arguments[1] : n) | |
}, | |
findIndex: function(e) { | |
return te(Me(this), e, arguments.length > 1 ? arguments[1] : n) | |
}, | |
forEach: function(e) { | |
X(Me(this), e, arguments.length > 1 ? arguments[1] : n) | |
}, | |
indexOf: function(e) { | |
return oe(Me(this), e, arguments.length > 1 ? arguments[1] : n) | |
}, | |
includes: function(e) { | |
return ne(Me(this), e, arguments.length > 1 ? arguments[1] : n) | |
}, | |
join: function(e) { | |
return le.apply(Me(this), arguments) | |
}, | |
lastIndexOf: function(e) { | |
return ue.apply(Me(this), arguments) | |
}, | |
map: function(e) { | |
return ke(Me(this), e, arguments.length > 1 ? arguments[1] : n) | |
}, | |
reduce: function(e) { | |
return ce.apply(Me(this), arguments) | |
}, | |
reduceRight: function(e) { | |
return se.apply(Me(this), arguments) | |
}, | |
reverse: function() { | |
for (var e, t = this, n = Me(t).length, o = Math.floor(n / 2), r = 0; r < o; ) | |
e = t[r], | |
t[r++] = t[--n], | |
t[n] = e; | |
return t | |
}, | |
some: function(e) { | |
return Q(Me(this), e, arguments.length > 1 ? arguments[1] : n) | |
}, | |
sort: function(e) { | |
return fe.call(Me(this), e) | |
}, | |
subarray: function(e, t) { | |
var o = Me(this) | |
, r = o.length | |
, a = y(e, r); | |
return new (j(o, o[ye]))(o.buffer,o.byteOffset + a * o.BYTES_PER_ELEMENT,g((t === n ? r : y(t, r)) - a)) | |
} | |
} | |
, Re = function(e, t) { | |
return Oe(this, de.call(Me(this), e, t)) | |
} | |
, Ne = function(e) { | |
Me(this); | |
var t = Pe(arguments[1], 1) | |
, n = this.length | |
, o = S(e) | |
, r = g(o.length) | |
, a = 0; | |
if (r + t > n) | |
throw G("Wrong length!"); | |
for (; a < r; ) | |
this[t + a] = o[a++] | |
} | |
, Le = { | |
entries: function() { | |
return ie.call(Me(this)) | |
}, | |
keys: function() { | |
return ae.call(Me(this)) | |
}, | |
values: function() { | |
return re.call(Me(this)) | |
} | |
} | |
, Fe = function(e, t) { | |
return k(e) && e[me] && "symbol" != typeof t && t in e && String(+t) == String(t) | |
} | |
, We = function(e, t) { | |
return Fe(e, t = b(t, !0)) ? d(2, e[t]) : H(e, t) | |
} | |
, Ve = function(e, t, n) { | |
return !(Fe(e, t = b(t, !0)) && k(n) && m(n, "value")) || m(n, "get") || m(n, "set") || n.configurable || m(n, "writable") && !n.writable || m(n, "enumerable") && !n.enumerable ? U(e, t, n) : (e[t] = n.value, | |
e) | |
}; | |
be || (V.f = We, | |
W.f = Ve), | |
u(u.S + u.F * !be, "Object", { | |
getOwnPropertyDescriptor: We, | |
defineProperty: Ve | |
}), | |
i(function() { | |
pe.call({}) | |
}) && (pe = he = function() { | |
return le.call(this) | |
} | |
); | |
var Ue = h({}, De); | |
h(Ue, Le), | |
p(Ue, ve, Le.values), | |
h(Ue, { | |
slice: Re, | |
set: Ne, | |
constructor: function() {}, | |
toString: pe, | |
toLocaleString: Be | |
}), | |
Ee(Ue, "buffer", "b"), | |
Ee(Ue, "byteOffset", "o"), | |
Ee(Ue, "byteLength", "l"), | |
Ee(Ue, "length", "e"), | |
U(Ue, ge, { | |
get: function() { | |
return this[me] | |
} | |
}), | |
e.exports = function(e, t, o, s) { | |
s = !!s; | |
var l = e + (s ? "Clamped" : "") + "Array" | |
, d = "get" + e | |
, h = "set" + e | |
, v = a[l] | |
, y = v || {} | |
, b = v && M(v) | |
, m = !v || !c.ABV | |
, S = {} | |
, C = v && v.prototype | |
, O = function(e, n) { | |
var o = e._d; | |
return o.v[d](n * t + o.o, Se) | |
} | |
, T = function(e, n, o) { | |
var r = e._d; | |
s && (o = (o = Math.round(o)) < 0 ? 0 : o > 255 ? 255 : 255 & o), | |
r.v[h](n * t + r.o, o, Se) | |
} | |
, E = function(e, t) { | |
U(e, t, { | |
get: function() { | |
return O(this, t) | |
}, | |
set: function(e) { | |
return T(this, t, e) | |
}, | |
enumerable: !0 | |
}) | |
}; | |
m ? (v = o(function(e, o, r, a) { | |
f(e, v, l, "_d"); | |
var i, u, c, s, d = 0, h = 0; | |
if (k(o)) { | |
if (!(o instanceof J || "ArrayBuffer" == (s = w(o)) || "SharedArrayBuffer" == s)) | |
return me in o ? Te(v, o) : xe.call(v, o); | |
i = o, | |
h = Pe(r, t); | |
var y = o.byteLength; | |
if (a === n) { | |
if (y % t) | |
throw G("Wrong length!"); | |
if ((u = y - h) < 0) | |
throw G("Wrong length!") | |
} else if ((u = g(a) * t) + h > y) | |
throw G("Wrong length!"); | |
c = u / t | |
} else | |
c = _(o), | |
u = c * t, | |
i = new J(u); | |
for (p(e, "_d", { | |
b: i, | |
o: h, | |
l: u, | |
e: c, | |
v: new Y(i) | |
}); d < c; ) | |
E(e, d++) | |
}), | |
C = v.prototype = P(Ue), | |
p(C, "constructor", v)) : i(function() { | |
v(1) | |
}) && i(function() { | |
new v(-1) | |
}) && R(function(e) { | |
new v, | |
new v(null), | |
new v(1.5), | |
new v(e) | |
}, !0) || (v = o(function(e, o, r, a) { | |
f(e, v, l); | |
var i; | |
return k(o) ? o instanceof J || "ArrayBuffer" == (i = w(o)) || "SharedArrayBuffer" == i ? a !== n ? new y(o,Pe(r, t),a) : r !== n ? new y(o,Pe(r, t)) : new y(o) : me in o ? Te(v, o) : xe.call(v, o) : new y(_(o)) | |
}), | |
X(b !== Function.prototype ? I(y).concat(I(b)) : I(y), function(e) { | |
e in v || p(v, e, y[e]) | |
}), | |
v.prototype = C, | |
r || (C.constructor = v)); | |
var x = C[ve] | |
, A = !!x && ("values" == x.name || x.name == n) | |
, j = Le.values; | |
p(v, _e, !0), | |
p(C, me, l), | |
p(C, we, !0), | |
p(C, ye, v), | |
(s ? new v(1)[ge] == l : ge in C) || U(C, ge, { | |
get: function() { | |
return l | |
} | |
}), | |
S[l] = v, | |
u(u.G + u.W + u.F * (v != y), S), | |
u(u.S, l, { | |
BYTES_PER_ELEMENT: t | |
}), | |
u(u.S + u.F * i(function() { | |
y.of.call(v, 1) | |
}), l, { | |
from: xe, | |
of: Ae | |
}), | |
"BYTES_PER_ELEMENT"in C || p(C, "BYTES_PER_ELEMENT", t), | |
u(u.P, l, De), | |
N(l), | |
u(u.P + u.F * Ce, l, { | |
set: Ne | |
}), | |
u(u.P + u.F * !A, l, Le), | |
r || C.toString == pe || (C.toString = pe), | |
u(u.P + u.F * i(function() { | |
new v(1).slice() | |
}), l, { | |
slice: Re | |
}), | |
u(u.P + u.F * (i(function() { | |
return [1, 2].toLocaleString() != new v([1, 2]).toLocaleString() | |
}) || !i(function() { | |
C.toLocaleString.call([1, 2]) | |
})), l, { | |
toLocaleString: Be | |
}), | |
D[l] = A ? x : j, | |
r || A || p(C, ve, j) | |
} | |
} else | |
e.exports = function() {} | |
} | |
, function(e, t, n) { | |
var o = n(2); | |
e.exports = function(e, t) { | |
if (!o(e)) | |
return e; | |
var n, r; | |
if (t && "function" == typeof (n = e.toString) && !o(r = n.call(e))) | |
return r; | |
if ("function" == typeof (n = e.valueOf) && !o(r = n.call(e))) | |
return r; | |
if (!t && "function" == typeof (n = e.toString) && !o(r = n.call(e))) | |
return r; | |
throw TypeError("Can't convert object to primitive value") | |
} | |
} | |
, function(e, t) { | |
e.exports = function(e, t) { | |
return { | |
enumerable: !(1 & e), | |
configurable: !(2 & e), | |
writable: !(4 & e), | |
value: t | |
} | |
} | |
} | |
, function(e, t) { | |
e.exports = function(e) { | |
if (e == n) | |
throw TypeError("Can't call method on " + e); | |
return e | |
} | |
} | |
, function(e, t, o) { | |
var r = o(4) | |
, a = o(81) | |
, i = o(58) | |
, u = o(56)("IE_PROTO") | |
, c = function() {} | |
, s = function() { | |
var e, t = o(53)("iframe"), n = i.length; | |
for (t.style.display = "none", | |
o(59).appendChild(t), | |
t.src = "javascript:", | |
e = t.contentWindow.document, | |
e.open(), | |
e.write("<script>document.F=Object<\/script>"), | |
e.close(), | |
s = e.F; n--; ) | |
delete s.prototype[i[n]]; | |
return s() | |
}; | |
e.exports = Object.create || function(e, t) { | |
var o; | |
return null !== e ? (c.prototype = r(e), | |
o = new c, | |
c.prototype = null, | |
o[u] = e) : o = s(), | |
t === n ? o : a(o, t) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(9) | |
, r = n(13) | |
, a = n(56)("IE_PROTO") | |
, i = Object.prototype; | |
e.exports = Object.getPrototypeOf || function(e) { | |
return e = r(e), | |
o(e, a) ? e[a] : "function" == typeof e.constructor && e instanceof e.constructor ? e.constructor.prototype : e instanceof Object ? i : null | |
} | |
} | |
, function(e, t, n) { | |
var o = n(31)("meta") | |
, r = n(2) | |
, a = n(9) | |
, i = n(6).f | |
, u = 0 | |
, c = Object.isExtensible || function() { | |
return !0 | |
} | |
, s = !n(1)(function() { | |
return c(Object.preventExtensions({})) | |
}) | |
, l = function(e) { | |
i(e, o, { | |
value: { | |
i: "O" + ++u, | |
w: {} | |
} | |
}) | |
} | |
, f = function(e, t) { | |
if (!r(e)) | |
return "symbol" == typeof e ? e : ("string" == typeof e ? "S" : "P") + e; | |
if (!a(e, o)) { | |
if (!c(e)) | |
return "F"; | |
if (!t) | |
return "E"; | |
l(e) | |
} | |
return e[o].i | |
} | |
, d = function(e, t) { | |
if (!a(e, o)) { | |
if (!c(e)) | |
return !0; | |
if (!t) | |
return !1; | |
l(e) | |
} | |
return e[o].w | |
} | |
, p = function(e) { | |
return s && h.NEED && c(e) && !a(e, o) && l(e), | |
e | |
} | |
, h = e.exports = { | |
KEY: o, | |
NEED: !1, | |
fastKey: f, | |
getWeak: d, | |
onFreeze: p | |
} | |
} | |
, function(t, n) { | |
var o = t.exports = { | |
version: "2.5.1" | |
}; | |
"number" == typeof e && (e = o) | |
} | |
, function(e, t) { | |
var o = 0 | |
, r = Math.random(); | |
e.exports = function(e) { | |
return "Symbol(".concat(e === n ? "" : e, ")_", (++o + r).toString(36)) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(80) | |
, r = n(58); | |
e.exports = Object.keys || function(e) { | |
return o(e, r) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(21) | |
, r = Math.max | |
, a = Math.min; | |
e.exports = function(e, t) { | |
return e = o(e), | |
e < 0 ? r(e + t, 0) : a(e, t) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(80) | |
, r = n(58).concat("length", "prototype"); | |
t.f = Object.getOwnPropertyNames || function(e) { | |
return o(e, r) | |
} | |
} | |
, function(e, t) { | |
e.exports = {} | |
} | |
, function(e, t, n) { | |
var o = n(6).f | |
, r = n(9) | |
, a = n(5)("toStringTag"); | |
e.exports = function(e, t, n) { | |
e && !r(e = n ? e : e.prototype, a) && o(e, a, { | |
configurable: !0, | |
value: t | |
}) | |
} | |
} | |
, function(e, t) { | |
e.exports = !1 | |
} | |
, function(e, t, n) { | |
var o = n(3) | |
, r = n(6) | |
, a = n(7) | |
, i = n(5)("species"); | |
e.exports = function(e) { | |
var t = o[e]; | |
a && t && !t[i] && r.f(t, i, { | |
configurable: !0, | |
get: function() { | |
return this | |
} | |
}) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(11); | |
e.exports = function(e, t, n) { | |
for (var r in t) | |
o(e, r, t[r], n); | |
return e | |
} | |
} | |
, function(e, t) { | |
e.exports = function(e, t, o, r) { | |
if (!(e instanceof t) || r !== n && r in e) | |
throw TypeError(o + ": incorrect invocation!"); | |
return e | |
} | |
} | |
, function(e, t, n) { | |
var o = n(2); | |
e.exports = function(e, t) { | |
if (!o(e) || e._t !== t) | |
throw TypeError("Incompatible receiver, " + t + " required!"); | |
return e | |
} | |
} | |
, function(e, t, n) { | |
var o = n(20); | |
e.exports = Object("z").propertyIsEnumerable(0) ? Object : function(e) { | |
return "String" == o(e) ? e.split("") : Object(e) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(16) | |
, r = n(82) | |
, a = n(60) | |
, i = n(4) | |
, u = n(8) | |
, c = n(61) | |
, s = {} | |
, l = {} | |
, t = e.exports = function(e, t, n, f, d) { | |
var p, h, v, g, _ = d ? function() { | |
return e | |
} | |
: c(e), y = o(n, f, t ? 2 : 1), b = 0; | |
if ("function" != typeof _) | |
throw TypeError(e + " is not iterable!"); | |
if (a(_)) { | |
for (p = u(e.length); p > b; b++) | |
if ((g = t ? y(i(h = e[b])[0], h[1]) : y(e[b])) === s || g === l) | |
return g | |
} else | |
for (v = _.call(e); !(h = v.next()).done; ) | |
if ((g = r(v, y, h.value, t)) === s || g === l) | |
return g | |
} | |
; | |
t.BREAK = s, | |
t.RETURN = l | |
} | |
, function(e, t, o) { | |
var r = o(20) | |
, a = o(5)("toStringTag") | |
, i = "Arguments" == r(function() { | |
return arguments | |
}()) | |
, u = function(e, t) { | |
try { | |
return e[t] | |
} catch (e) {} | |
}; | |
e.exports = function(e) { | |
var t, o, c; | |
return e === n ? "Undefined" : null === e ? "Null" : "string" == typeof (o = u(t = Object(e), a)) ? o : i ? r(t) : "Object" == (c = r(t)) && "function" == typeof t.callee ? "Arguments" : c | |
} | |
} | |
, function(e, t, o) { | |
var r = o(5)("unscopables") | |
, a = Array.prototype; | |
a[r] == n && o(14)(a, r, {}), | |
e.exports = function(e) { | |
a[r][e] = !0 | |
} | |
} | |
, function(e, t) { | |
t.f = Object.getOwnPropertySymbols | |
} | |
, function(e, t) { | |
t.f = {}.propertyIsEnumerable | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(26) | |
, a = n(1) | |
, i = n(66) | |
, u = "[" + i + "]" | |
, c = " " | |
, s = RegExp("^" + u + u + "*") | |
, l = RegExp(u + u + "*$") | |
, f = function(e, t, n) { | |
var r = {} | |
, u = a(function() { | |
return !!i[e]() || c[e]() != c | |
}) | |
, s = r[e] = u ? t(d) : i[e]; | |
n && (r[n] = s), | |
o(o.P + o.F * u, "String", r) | |
} | |
, d = f.trim = function(e, t) { | |
return e = String(r(e)), | |
1 & t && (e = e.replace(s, "")), | |
2 & t && (e = e.replace(l, "")), | |
e | |
} | |
; | |
e.exports = f | |
} | |
, function(e, t, n) { | |
var o = n(5)("iterator") | |
, r = !1; | |
try { | |
var a = [7][o](); | |
a.return = function() { | |
r = !0 | |
} | |
, | |
Array.from(a, function() { | |
throw 2 | |
}) | |
} catch (e) {} | |
e.exports = function(e, t) { | |
if (!t && !r) | |
return !1; | |
var n = !1; | |
try { | |
var a = [7] | |
, i = a[o](); | |
i.next = function() { | |
return { | |
done: n = !0 | |
} | |
} | |
, | |
a[o] = function() { | |
return i | |
} | |
, | |
e(a) | |
} catch (e) {} | |
return n | |
} | |
} | |
, function(e, t, n) { | |
var o = n(14) | |
, r = n(11) | |
, a = n(1) | |
, i = n(26) | |
, u = n(5); | |
e.exports = function(e, t, n) { | |
var c = u(e) | |
, s = n(i, c, ""[e]) | |
, l = s[0] | |
, f = s[1]; | |
a(function() { | |
var t = {}; | |
return t[c] = function() { | |
return 7 | |
} | |
, | |
7 != ""[e](t) | |
}) && (r(String.prototype, e, l), | |
o(RegExp.prototype, c, 2 == t ? function(e, t) { | |
return f.call(e, this, t) | |
} | |
: function(e) { | |
return f.call(e, this) | |
} | |
)) | |
} | |
} | |
, function(e, t, o) { | |
var r = o(3) | |
, a = o(0) | |
, i = o(11) | |
, u = o(39) | |
, c = o(29) | |
, s = o(43) | |
, l = o(40) | |
, f = o(2) | |
, d = o(1) | |
, p = o(49) | |
, h = o(36) | |
, v = o(67); | |
e.exports = function(e, t, o, g, _, y) { | |
var b = r[e] | |
, m = b | |
, w = _ ? "set" : "add" | |
, k = m && m.prototype | |
, S = {} | |
, C = function(e) { | |
var t = k[e]; | |
i(k, e, "delete" == e ? function(e) { | |
return !(y && !f(e)) && t.call(this, 0 === e ? 0 : e) | |
} | |
: "has" == e ? function(e) { | |
return !(y && !f(e)) && t.call(this, 0 === e ? 0 : e) | |
} | |
: "get" == e ? function(e) { | |
return y && !f(e) ? n : t.call(this, 0 === e ? 0 : e) | |
} | |
: "add" == e ? function(e) { | |
return t.call(this, 0 === e ? 0 : e), | |
this | |
} | |
: function(e, n) { | |
return t.call(this, 0 === e ? 0 : e, n), | |
this | |
} | |
) | |
}; | |
if ("function" == typeof m && (y || k.forEach && !d(function() { | |
(new m).entries().next() | |
}))) { | |
var P = new m | |
, M = P[w](y ? {} : -0, 1) != P | |
, I = d(function() { | |
P.has(1) | |
}) | |
, O = p(function(e) { | |
new m(e) | |
}) | |
, T = !y && d(function() { | |
for (var e = new m, t = 5; t--; ) | |
e[w](t, t); | |
return !e.has(-0) | |
}); | |
O || (m = t(function(t, o) { | |
l(t, m, e); | |
var r = v(new b, t, m); | |
return o != n && s(o, _, r[w], r), | |
r | |
}), | |
m.prototype = k, | |
k.constructor = m), | |
(I || T) && (C("delete"), | |
C("has"), | |
_ && C("get")), | |
(T || M) && C(w), | |
y && k.clear && delete k.clear | |
} else | |
m = g.getConstructor(t, e, _, w), | |
u(m.prototype, o), | |
c.NEED = !0; | |
return h(m, e), | |
S[e] = m, | |
a(a.G + a.W + a.F * (m != b), S), | |
y || g.setStrong(m, e, _), | |
m | |
} | |
} | |
, function(e, t, n) { | |
for (var o, r = n(3), a = n(14), i = n(31), u = i("typed_array"), c = i("view"), s = !(!r.ArrayBuffer || !r.DataView), l = s, f = 0, d = "Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(","); f < 9; ) | |
(o = r[d[f++]]) ? (a(o.prototype, u, !0), | |
a(o.prototype, c, !0)) : l = !1; | |
e.exports = { | |
ABV: s, | |
CONSTR: l, | |
TYPED: u, | |
VIEW: c | |
} | |
} | |
, function(e, t, n) { | |
var o = n(2) | |
, r = n(3).document | |
, a = o(r) && o(r.createElement); | |
e.exports = function(e) { | |
return a ? r.createElement(e) : {} | |
} | |
} | |
, function(e, t, n) { | |
var o = n(32) | |
, r = n(46) | |
, a = n(47) | |
, i = n(13) | |
, u = n(42) | |
, c = Object.assign; | |
e.exports = !c || n(1)(function() { | |
var e = {} | |
, t = {} | |
, n = Symbol() | |
, o = "abcdefghijklmnopqrst"; | |
return e[n] = 7, | |
o.split("").forEach(function(e) { | |
t[e] = e | |
}), | |
7 != c({}, e)[n] || Object.keys(c({}, t)).join("") != o | |
}) ? function(e, t) { | |
for (var n = i(e), c = arguments.length, s = 1, l = r.f, f = a.f; c > s; ) | |
for (var d, p = u(arguments[s++]), h = l ? o(p).concat(l(p)) : o(p), v = h.length, g = 0; v > g; ) | |
f.call(p, d = h[g++]) && (n[d] = p[d]); | |
return n | |
} | |
: c | |
} | |
, function(e, t, n) { | |
var o = n(12) | |
, r = n(8) | |
, a = n(33); | |
e.exports = function(e) { | |
return function(t, n, i) { | |
var u, c = o(t), s = r(c.length), l = a(i, s); | |
if (e && n != n) { | |
for (; s > l; ) | |
if ((u = c[l++]) != u) | |
return !0 | |
} else | |
for (; s > l; l++) | |
if ((e || l in c) && c[l] === n) | |
return e || l || 0; | |
return !e && -1 | |
} | |
} | |
} | |
, function(e, t, n) { | |
var o = n(57)("keys") | |
, r = n(31); | |
e.exports = function(e) { | |
return o[e] || (o[e] = r(e)) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(3) | |
, r = o["__core-js_shared__"] || (o["__core-js_shared__"] = {}); | |
e.exports = function(e) { | |
return r[e] || (r[e] = {}) | |
} | |
} | |
, function(e, t) { | |
e.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",") | |
} | |
, function(e, t, n) { | |
var o = n(3).document; | |
e.exports = o && o.documentElement | |
} | |
, function(e, t, o) { | |
var r = o(35) | |
, a = o(5)("iterator") | |
, i = Array.prototype; | |
e.exports = function(e) { | |
return e !== n && (r.Array === e || i[a] === e) | |
} | |
} | |
, function(e, t, o) { | |
var r = o(44) | |
, a = o(5)("iterator") | |
, i = o(35); | |
e.exports = o(30).getIteratorMethod = function(e) { | |
if (e != n) | |
return e[a] || e["@@iterator"] || i[r(e)] | |
} | |
} | |
, function(e, t, n) { | |
var o = n(27) | |
, r = n(25) | |
, a = n(36) | |
, i = {}; | |
n(14)(i, n(5)("iterator"), function() { | |
return this | |
}), | |
e.exports = function(e, t, n) { | |
e.prototype = o(i, { | |
next: r(1, n) | |
}), | |
a(e, t + " Iterator") | |
} | |
} | |
, function(e, t) { | |
e.exports = function(e, t) { | |
return { | |
value: t, | |
done: !!e | |
} | |
} | |
} | |
, function(e, t, n) { | |
var o = n(20); | |
e.exports = Array.isArray || function(e) { | |
return "Array" == o(e) | |
} | |
} | |
, function(e, t, o) { | |
var r = o(2) | |
, a = o(4) | |
, i = function(e, t) { | |
if (a(e), | |
!r(t) && null !== t) | |
throw TypeError(t + ": can't set as prototype!") | |
}; | |
e.exports = { | |
set: Object.setPrototypeOf || ("__proto__"in {} ? function(e, t, n) { | |
try { | |
n = o(16)(Function.call, o(22).f(Object.prototype, "__proto__").set, 2), | |
n(e, []), | |
t = !(e instanceof Array) | |
} catch (e) { | |
t = !0 | |
} | |
return function(e, o) { | |
return i(e, o), | |
t ? e.__proto__ = o : n(e, o), | |
e | |
} | |
}({}, !1) : n), | |
check: i | |
} | |
} | |
, function(e, t) { | |
e.exports = "\t\n\v\f\r \u2028\u2029\ufeff" | |
} | |
, function(e, t, n) { | |
var o = n(2) | |
, r = n(65).set; | |
e.exports = function(e, t, n) { | |
var a, i = t.constructor; | |
return i !== n && "function" == typeof i && (a = i.prototype) !== n.prototype && o(a) && r && r(e, a), | |
e | |
} | |
} | |
, function(e, t) { | |
e.exports = Math.sign || function(e) { | |
return 0 == (e = +e) || e != e ? e : e < 0 ? -1 : 1 | |
} | |
} | |
, function(e, t) { | |
var n = Math.expm1; | |
e.exports = !n || n(10) > 22025.465794806718 || n(10) < 22025.465794806718 || -2e-17 != n(-2e-17) ? function(e) { | |
return 0 == (e = +e) ? e : e > -1e-6 && e < 1e-6 ? e + e * e / 2 : Math.exp(e) - 1 | |
} | |
: n | |
} | |
, function(e, t, o) { | |
var r = o(37) | |
, a = o(0) | |
, i = o(11) | |
, u = o(14) | |
, c = o(9) | |
, s = o(35) | |
, l = o(62) | |
, f = o(36) | |
, d = o(28) | |
, p = o(5)("iterator") | |
, h = !([].keys && "next"in [].keys()) | |
, v = function() { | |
return this | |
}; | |
e.exports = function(e, t, o, g, _, y, b) { | |
l(o, t, g); | |
var m, w, k, S = function(e) { | |
if (!h && e in I) | |
return I[e]; | |
switch (e) { | |
case "keys": | |
case "values": | |
return function() { | |
return new o(this,e) | |
} | |
} | |
return function() { | |
return new o(this,e) | |
} | |
}, C = t + " Iterator", P = "values" == _, M = !1, I = e.prototype, O = I[p] || I["@@iterator"] || _ && I[_], T = O || S(_), E = _ ? P ? S("entries") : T : n, x = "Array" == t ? I.entries || O : O; | |
if (x && (k = d(x.call(new e))) !== Object.prototype && k.next && (f(k, C, !0), | |
r || c(k, p) || u(k, p, v)), | |
P && O && "values" !== O.name && (M = !0, | |
T = function() { | |
return O.call(this) | |
} | |
), | |
r && !b || !h && !M && I[p] || u(I, p, T), | |
s[t] = T, | |
s[C] = v, | |
_) | |
if (m = { | |
values: P ? T : S("values"), | |
keys: y ? T : S("keys"), | |
entries: E | |
}, | |
b) | |
for (w in m) | |
w in I || i(I, w, m[w]); | |
else | |
a(a.P + a.F * (h || M), t, m); | |
return m | |
} | |
} | |
, function(e, t, n) { | |
var o = n(72) | |
, r = n(26); | |
e.exports = function(e, t, n) { | |
if (o(t)) | |
throw TypeError("String#" + n + " doesn't accept regex!"); | |
return String(r(e)) | |
} | |
} | |
, function(e, t, o) { | |
var r = o(2) | |
, a = o(20) | |
, i = o(5)("match"); | |
e.exports = function(e) { | |
var t; | |
return r(e) && ((t = e[i]) !== n ? !!t : "RegExp" == a(e)) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(5)("match"); | |
e.exports = function(e) { | |
var t = /./; | |
try { | |
"/./"[e](t) | |
} catch (n) { | |
try { | |
return t[o] = !1, | |
!"/./"[e](t) | |
} catch (e) {} | |
} | |
return !0 | |
} | |
} | |
, function(e, t, o) { | |
var r = o(13) | |
, a = o(33) | |
, i = o(8); | |
e.exports = function(e) { | |
for (var t = r(this), o = i(t.length), u = arguments.length, c = a(u > 1 ? arguments[1] : n, o), s = u > 2 ? arguments[2] : n, l = s === n ? o : a(s, o); l > c; ) | |
t[c++] = e; | |
return t | |
} | |
} | |
, function(e, t, n) { | |
var o = n(4); | |
e.exports = function() { | |
var e = o(this) | |
, t = ""; | |
return e.global && (t += "g"), | |
e.ignoreCase && (t += "i"), | |
e.multiline && (t += "m"), | |
e.unicode && (t += "u"), | |
e.sticky && (t += "y"), | |
t | |
} | |
} | |
, function(e, t, o) { | |
function r(e, t, n) { | |
var o, r, a, i = Array(n), u = 8 * n - t - 1, c = (1 << u) - 1, s = c >> 1, l = 23 === t ? F(2, -24) - F(2, -77) : 0, f = 0, d = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0; | |
for (e = L(e), | |
e != e || e === R ? (r = e != e ? 1 : 0, | |
o = c) : (o = W(V(e) / U), | |
e * (a = F(2, -o)) < 1 && (o--, | |
a *= 2), | |
e += o + s >= 1 ? l / a : l * F(2, 1 - s), | |
e * a >= 2 && (o++, | |
a /= 2), | |
o + s >= c ? (r = 0, | |
o = c) : o + s >= 1 ? (r = (e * a - 1) * F(2, t), | |
o += s) : (r = e * F(2, s - 1) * F(2, t), | |
o = 0)); t >= 8; i[f++] = 255 & r, | |
r /= 256, | |
t -= 8) | |
; | |
for (o = o << t | r, | |
u += t; u > 0; i[f++] = 255 & o, | |
o /= 256, | |
u -= 8) | |
; | |
return i[--f] |= 128 * d, | |
i | |
} | |
function a(e, t, n) { | |
var o, r = 8 * n - t - 1, a = (1 << r) - 1, i = a >> 1, u = r - 7, c = n - 1, s = e[c--], l = 127 & s; | |
for (s >>= 7; u > 0; l = 256 * l + e[c], | |
c--, | |
u -= 8) | |
; | |
for (o = l & (1 << -u) - 1, | |
l >>= -u, | |
u += t; u > 0; o = 256 * o + e[c], | |
c--, | |
u -= 8) | |
; | |
if (0 === l) | |
l = 1 - i; | |
else { | |
if (l === a) | |
return o ? NaN : s ? -R : R; | |
o += F(2, t), | |
l -= i | |
} | |
return (s ? -1 : 1) * o * F(2, l - t) | |
} | |
function i(e) { | |
return e[3] << 24 | e[2] << 16 | e[1] << 8 | e[0] | |
} | |
function u(e) { | |
return [255 & e] | |
} | |
function c(e) { | |
return [255 & e, e >> 8 & 255] | |
} | |
function s(e) { | |
return [255 & e, e >> 8 & 255, e >> 16 & 255, e >> 24 & 255] | |
} | |
function l(e) { | |
return r(e, 52, 8) | |
} | |
function f(e) { | |
return r(e, 23, 4) | |
} | |
function d(e, t, n) { | |
I(e[E], t, { | |
get: function() { | |
return this[n] | |
} | |
}) | |
} | |
function p(e, t, n, o) { | |
var r = +n | |
, a = P(r); | |
if (a + t > e[G]) | |
throw D(x); | |
var i = e[H]._b | |
, u = a + e[q] | |
, c = i.slice(u, u + t); | |
return o ? c : c.reverse() | |
} | |
function h(e, t, n, o, r, a) { | |
var i = +n | |
, u = P(i); | |
if (u + t > e[G]) | |
throw D(x); | |
for (var c = e[H]._b, s = u + e[q], l = o(+r), f = 0; f < t; f++) | |
c[s + f] = l[a ? f : t - f - 1] | |
} | |
var v = o(3) | |
, g = o(7) | |
, _ = o(37) | |
, y = o(52) | |
, b = o(14) | |
, m = o(39) | |
, w = o(1) | |
, k = o(40) | |
, S = o(21) | |
, C = o(8) | |
, P = o(101) | |
, M = o(34).f | |
, I = o(6).f | |
, O = o(74) | |
, T = o(36) | |
, E = "prototype" | |
, x = "Wrong index!" | |
, A = v.ArrayBuffer | |
, j = v.DataView | |
, B = v.Math | |
, D = v.RangeError | |
, R = v.Infinity | |
, N = A | |
, L = B.abs | |
, F = B.pow | |
, W = B.floor | |
, V = B.log | |
, U = B.LN2 | |
, H = g ? "_b" : "buffer" | |
, G = g ? "_l" : "byteLength" | |
, q = g ? "_o" : "byteOffset"; | |
if (y.ABV) { | |
if (!w(function() { | |
A(1) | |
}) || !w(function() { | |
new A(-1) | |
}) || w(function() { | |
return new A, | |
new A(1.5), | |
new A(NaN), | |
"ArrayBuffer" != A.name | |
})) { | |
A = function(e) { | |
return k(this, A), | |
new N(P(e)) | |
} | |
; | |
for (var K, z = A[E] = N[E], J = M(N), Y = 0; J.length > Y; ) | |
(K = J[Y++])in A || b(A, K, N[K]); | |
_ || (z.constructor = A) | |
} | |
var X = new j(new A(2)) | |
, $ = j[E].setInt8; | |
X.setInt8(0, 2147483648), | |
X.setInt8(1, 2147483649), | |
!X.getInt8(0) && X.getInt8(1) || m(j[E], { | |
setInt8: function(e, t) { | |
$.call(this, e, t << 24 >> 24) | |
}, | |
setUint8: function(e, t) { | |
$.call(this, e, t << 24 >> 24) | |
} | |
}, !0) | |
} else | |
A = function(e) { | |
k(this, A, "ArrayBuffer"); | |
var t = P(e); | |
this._b = O.call(Array(t), 0), | |
this[G] = t | |
} | |
, | |
j = function(e, t, o) { | |
k(this, j, "DataView"), | |
k(e, A, "DataView"); | |
var r = e[G] | |
, a = S(t); | |
if (a < 0 || a > r) | |
throw D("Wrong offset!"); | |
if (o = o === n ? r - a : C(o), | |
a + o > r) | |
throw D("Wrong length!"); | |
this[H] = e, | |
this[q] = a, | |
this[G] = o | |
} | |
, | |
g && (d(A, "byteLength", "_l"), | |
d(j, "buffer", "_b"), | |
d(j, "byteLength", "_l"), | |
d(j, "byteOffset", "_o")), | |
m(j[E], { | |
getInt8: function(e) { | |
return p(this, 1, e)[0] << 24 >> 24 | |
}, | |
getUint8: function(e) { | |
return p(this, 1, e)[0] | |
}, | |
getInt16: function(e) { | |
var t = p(this, 2, e, arguments[1]); | |
return (t[1] << 8 | t[0]) << 16 >> 16 | |
}, | |
getUint16: function(e) { | |
var t = p(this, 2, e, arguments[1]); | |
return t[1] << 8 | t[0] | |
}, | |
getInt32: function(e) { | |
return i(p(this, 4, e, arguments[1])) | |
}, | |
getUint32: function(e) { | |
return i(p(this, 4, e, arguments[1])) >>> 0 | |
}, | |
getFloat32: function(e) { | |
return a(p(this, 4, e, arguments[1]), 23, 4) | |
}, | |
getFloat64: function(e) { | |
return a(p(this, 8, e, arguments[1]), 52, 8) | |
}, | |
setInt8: function(e, t) { | |
h(this, 1, e, u, t) | |
}, | |
setUint8: function(e, t) { | |
h(this, 1, e, u, t) | |
}, | |
setInt16: function(e, t) { | |
h(this, 2, e, c, t, arguments[2]) | |
}, | |
setUint16: function(e, t) { | |
h(this, 2, e, c, t, arguments[2]) | |
}, | |
setInt32: function(e, t) { | |
h(this, 4, e, s, t, arguments[2]) | |
}, | |
setUint32: function(e, t) { | |
h(this, 4, e, s, t, arguments[2]) | |
}, | |
setFloat32: function(e, t) { | |
h(this, 4, e, f, t, arguments[2]) | |
}, | |
setFloat64: function(e, t) { | |
h(this, 8, e, l, t, arguments[2]) | |
} | |
}); | |
T(A, "ArrayBuffer"), | |
T(j, "DataView"), | |
b(j[E], y.VIEW, !0), | |
t.ArrayBuffer = A, | |
t.DataView = j | |
} | |
, function(e, t, o) { | |
var r = o(4) | |
, a = o(17) | |
, i = o(5)("species"); | |
e.exports = function(e, t) { | |
var o, u = r(e).constructor; | |
return u === n || (o = r(u)[i]) == n ? t : a(o) | |
} | |
} | |
, function(e, t) { | |
var n = !0; | |
try { | |
new Proxy({},{}); | |
n = !1 | |
} catch (e) {} | |
var o = !1; | |
"undefined" != typeof __wxConfig && void 0 !== __wxConfig.platform && "ios" === __wxConfig.platform.toLowerCase() && (o = !0), | |
void 0 !== WeixinJSBridge && WeixinJSBridge.invoke("getSystemInfo", {}, function(e) { | |
e && e.platform && "ios" === e.platform.toLowerCase() && (o = !0) | |
}), | |
e.exports = { | |
needCoreJS: n, | |
isIOS: o | |
} | |
} | |
, function(e, t, n) { | |
e.exports = !n(7) && !n(1)(function() { | |
return 7 != Object.defineProperty(n(53)("div"), "a", { | |
get: function() { | |
return 7 | |
} | |
}).a | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(9) | |
, r = n(12) | |
, a = n(55)(!1) | |
, i = n(56)("IE_PROTO"); | |
e.exports = function(e, t) { | |
var n, u = r(e), c = 0, s = []; | |
for (n in u) | |
n != i && o(u, n) && s.push(n); | |
for (; t.length > c; ) | |
o(u, n = t[c++]) && (~a(s, n) || s.push(n)); | |
return s | |
} | |
} | |
, function(e, t, n) { | |
var o = n(6) | |
, r = n(4) | |
, a = n(32); | |
e.exports = n(7) ? Object.defineProperties : function(e, t) { | |
r(e); | |
for (var n, i = a(t), u = i.length, c = 0; u > c; ) | |
o.f(e, n = i[c++], t[n]); | |
return e | |
} | |
} | |
, function(e, t, o) { | |
var r = o(4); | |
e.exports = function(e, t, o, a) { | |
try { | |
return a ? t(r(o)[0], o[1]) : t(o) | |
} catch (t) { | |
var i = e.return; | |
throw i !== n && r(i.call(e)), | |
t | |
} | |
} | |
} | |
, function(e, t, n) { | |
t.f = n(5) | |
} | |
, function(e, t, n) { | |
var o = n(12) | |
, r = n(34).f | |
, a = {}.toString | |
, i = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [] | |
, u = function(e) { | |
try { | |
return r(e) | |
} catch (e) { | |
return i.slice() | |
} | |
}; | |
e.exports.f = function(e) { | |
return i && "[object Window]" == a.call(e) ? u(e) : r(o(e)) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(17) | |
, r = n(2) | |
, a = n(86) | |
, i = [].slice | |
, u = {} | |
, c = function(e, t, n) { | |
if (!(t in u)) { | |
for (var o = [], r = 0; r < t; r++) | |
o[r] = "a[" + r + "]"; | |
u[t] = Function("F,a", "return new F(" + o.join(",") + ")") | |
} | |
return u[t](e, n) | |
}; | |
e.exports = Function.bind || function(e) { | |
var t = o(this) | |
, n = i.call(arguments, 1) | |
, u = function() { | |
var o = n.concat(i.call(arguments)); | |
return this instanceof u ? c(t, o.length, o) : a(t, o, e) | |
}; | |
return r(t.prototype) && (u.prototype = t.prototype), | |
u | |
} | |
} | |
, function(e, t) { | |
e.exports = function(e, t, o) { | |
var r = o === n; | |
switch (t.length) { | |
case 0: | |
return r ? e() : e.call(o); | |
case 1: | |
return r ? e(t[0]) : e.call(o, t[0]); | |
case 2: | |
return r ? e(t[0], t[1]) : e.call(o, t[0], t[1]); | |
case 3: | |
return r ? e(t[0], t[1], t[2]) : e.call(o, t[0], t[1], t[2]); | |
case 4: | |
return r ? e(t[0], t[1], t[2], t[3]) : e.call(o, t[0], t[1], t[2], t[3]) | |
} | |
return e.apply(o, t) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(3).parseInt | |
, r = n(48).trim | |
, a = n(66) | |
, i = /^[-+]?0[xX]/; | |
e.exports = 8 !== o(a + "08") || 22 !== o(a + "0x16") ? function(e, t) { | |
var n = r(String(e), 3); | |
return o(n, t >>> 0 || (i.test(n) ? 16 : 10)) | |
} | |
: o | |
} | |
, function(e, t, n) { | |
var o = n(3).parseFloat | |
, r = n(48).trim; | |
e.exports = 1 / o(n(66) + "-0") != -1 / 0 ? function(e) { | |
var t = r(String(e), 3) | |
, n = o(t); | |
return 0 === n && "-" == t.charAt(0) ? -0 : n | |
} | |
: o | |
} | |
, function(e, t, n) { | |
var o = n(20); | |
e.exports = function(e, t) { | |
if ("number" != typeof e && "Number" != o(e)) | |
throw TypeError(t); | |
return +e | |
} | |
} | |
, function(e, t, n) { | |
var o = n(21) | |
, r = n(26); | |
e.exports = function(e) { | |
var t = String(r(this)) | |
, n = "" | |
, a = o(e); | |
if (a < 0 || a == 1 / 0) | |
throw RangeError("Count can't be negative"); | |
for (; a > 0; (a >>>= 1) && (t += t)) | |
1 & a && (n += t); | |
return n | |
} | |
} | |
, function(e, t, n) { | |
var o = n(2) | |
, r = Math.floor; | |
e.exports = function(e) { | |
return !o(e) && isFinite(e) && r(e) === e | |
} | |
} | |
, function(e, t) { | |
e.exports = Math.log1p || function(e) { | |
return (e = +e) > -1e-8 && e < 1e-8 ? e - e * e / 2 : Math.log(1 + e) | |
} | |
} | |
, function(e, t, o) { | |
var r = o(21) | |
, a = o(26); | |
e.exports = function(e) { | |
return function(t, o) { | |
var i, u, c = String(a(t)), s = r(o), l = c.length; | |
return s < 0 || s >= l ? e ? "" : n : (i = c.charCodeAt(s), | |
i < 55296 || i > 56319 || s + 1 === l || (u = c.charCodeAt(s + 1)) < 56320 || u > 57343 ? e ? c.charAt(s) : i : e ? c.slice(s, s + 2) : u - 56320 + (i - 55296 << 10) + 65536) | |
} | |
} | |
} | |
, function(e, t, n) { | |
var o = n(6) | |
, r = n(25); | |
e.exports = function(e, t, n) { | |
t in e ? o.f(e, t, r(0, n)) : e[t] = n | |
} | |
} | |
, function(e, t, n) { | |
var o = n(17) | |
, r = n(13) | |
, a = n(42) | |
, i = n(8); | |
e.exports = function(e, t, n, u, c) { | |
o(t); | |
var s = r(e) | |
, l = a(s) | |
, f = i(s.length) | |
, d = c ? f - 1 : 0 | |
, p = c ? -1 : 1; | |
if (n < 2) | |
for (; ; ) { | |
if (d in l) { | |
u = l[d], | |
d += p; | |
break | |
} | |
if (d += p, | |
c ? d < 0 : f <= d) | |
throw TypeError("Reduce of empty array with no initial value") | |
} | |
for (; c ? d >= 0 : f > d; d += p) | |
d in l && (u = t(u, l[d], d, s)); | |
return u | |
} | |
} | |
, function(e, t, o) { | |
var r = o(13) | |
, a = o(33) | |
, i = o(8); | |
e.exports = [].copyWithin || function(e, t) { | |
var o = r(this) | |
, u = i(o.length) | |
, c = a(e, u) | |
, s = a(t, u) | |
, l = arguments.length > 2 ? arguments[2] : n | |
, f = Math.min((l === n ? u : a(l, u)) - s, u - c) | |
, d = 1; | |
for (s < c && c < s + f && (d = -1, | |
s += f - 1, | |
c += f - 1); f-- > 0; ) | |
s in o ? o[c] = o[s] : delete o[c], | |
c += d, | |
s += d; | |
return o | |
} | |
} | |
, function(e, t, o) { | |
var r = o(45) | |
, a = o(63) | |
, i = o(35) | |
, u = o(12); | |
e.exports = o(70)(Array, "Array", function(e, t) { | |
this._t = u(e), | |
this._i = 0, | |
this._k = t | |
}, function() { | |
var e = this._t | |
, t = this._k | |
, o = this._i++; | |
return !e || o >= e.length ? (this._t = n, | |
a(1)) : "keys" == t ? a(0, o) : "values" == t ? a(0, e[o]) : a(0, [o, e[o]]) | |
}, "values"), | |
i.Arguments = i.Array, | |
r("keys"), | |
r("values"), | |
r("entries") | |
} | |
, function(e, t, n) { | |
n(7) && "g" != /./g.flags && n(6).f(RegExp.prototype, "flags", { | |
configurable: !0, | |
get: n(75) | |
}) | |
} | |
, function(e, t, o) { | |
var r = o(6).f | |
, a = o(27) | |
, i = o(39) | |
, u = o(16) | |
, c = o(40) | |
, s = o(43) | |
, l = o(70) | |
, f = o(63) | |
, d = o(38) | |
, p = o(7) | |
, h = o(29).fastKey | |
, v = o(41) | |
, g = p ? "_s" : "size" | |
, _ = function(e, t) { | |
var n, o = h(t); | |
if ("F" !== o) | |
return e._i[o]; | |
for (n = e._f; n; n = n.n) | |
if (n.k == t) | |
return n | |
}; | |
e.exports = { | |
getConstructor: function(e, t, o, l) { | |
var f = e(function(e, r) { | |
c(e, f, t, "_i"), | |
e._t = t, | |
e._i = a(null), | |
e._f = n, | |
e._l = n, | |
e[g] = 0, | |
r != n && s(r, o, e[l], e) | |
}); | |
return i(f.prototype, { | |
clear: function() { | |
for (var e = v(this, t), o = e._i, r = e._f; r; r = r.n) | |
r.r = !0, | |
r.p && (r.p = r.p.n = n), | |
delete o[r.i]; | |
e._f = e._l = n, | |
e[g] = 0 | |
}, | |
delete: function(e) { | |
var n = v(this, t) | |
, o = _(n, e); | |
if (o) { | |
var r = o.n | |
, a = o.p; | |
delete n._i[o.i], | |
o.r = !0, | |
a && (a.n = r), | |
r && (r.p = a), | |
n._f == o && (n._f = r), | |
n._l == o && (n._l = a), | |
n[g]-- | |
} | |
return !!o | |
}, | |
forEach: function(e) { | |
v(this, t); | |
for (var o, r = u(e, arguments.length > 1 ? arguments[1] : n, 3); o = o ? o.n : this._f; ) | |
for (r(o.v, o.k, this); o && o.r; ) | |
o = o.p | |
}, | |
has: function(e) { | |
return !!_(v(this, t), e) | |
} | |
}), | |
p && r(f.prototype, "size", { | |
get: function() { | |
return v(this, t)[g] | |
} | |
}), | |
f | |
}, | |
def: function(e, t, o) { | |
var r, a, i = _(e, t); | |
return i ? i.v = o : (e._l = i = { | |
i: a = h(t, !0), | |
k: t, | |
v: o, | |
p: r = e._l, | |
n: n, | |
r: !1 | |
}, | |
e._f || (e._f = i), | |
r && (r.n = i), | |
e[g]++, | |
"F" !== a && (e._i[a] = i)), | |
e | |
}, | |
getEntry: _, | |
setStrong: function(e, t, o) { | |
l(e, t, function(e, o) { | |
this._t = v(e, t), | |
this._k = o, | |
this._l = n | |
}, function() { | |
for (var e = this, t = e._k, o = e._l; o && o.r; ) | |
o = o.p; | |
return e._t && (e._l = o = o ? o.n : e._t._f) ? "keys" == t ? f(0, o.k) : "values" == t ? f(0, o.v) : f(0, [o.k, o.v]) : (e._t = n, | |
f(1)) | |
}, o ? "entries" : "values", !o, !0), | |
d(t) | |
} | |
} | |
} | |
, function(e, t, o) { | |
var r = o(39) | |
, a = o(29).getWeak | |
, i = o(4) | |
, u = o(2) | |
, c = o(40) | |
, s = o(43) | |
, l = o(19) | |
, f = o(9) | |
, d = o(41) | |
, p = l(5) | |
, h = l(6) | |
, v = 0 | |
, g = function(e) { | |
return e._l || (e._l = new _) | |
} | |
, _ = function() { | |
this.a = [] | |
} | |
, y = function(e, t) { | |
return p(e.a, function(e) { | |
return e[0] === t | |
}) | |
}; | |
_.prototype = { | |
get: function(e) { | |
var t = y(this, e); | |
if (t) | |
return t[1] | |
}, | |
has: function(e) { | |
return !!y(this, e) | |
}, | |
set: function(e, t) { | |
var n = y(this, e); | |
n ? n[1] = t : this.a.push([e, t]) | |
}, | |
delete: function(e) { | |
var t = h(this.a, function(t) { | |
return t[0] === e | |
}); | |
return ~t && this.a.splice(t, 1), | |
!!~t | |
} | |
}, | |
e.exports = { | |
getConstructor: function(e, t, o, i) { | |
var l = e(function(e, r) { | |
c(e, l, t, "_i"), | |
e._t = t, | |
e._i = v++, | |
e._l = n, | |
r != n && s(r, o, e[i], e) | |
}); | |
return r(l.prototype, { | |
delete: function(e) { | |
if (!u(e)) | |
return !1; | |
var n = a(e); | |
return !0 === n ? g(d(this, t)).delete(e) : n && f(n, this._i) && delete n[this._i] | |
}, | |
has: function(e) { | |
if (!u(e)) | |
return !1; | |
var n = a(e); | |
return !0 === n ? g(d(this, t)).has(e) : n && f(n, this._i) | |
} | |
}), | |
l | |
}, | |
def: function(e, t, n) { | |
var o = a(i(t), !0); | |
return !0 === o ? g(e).set(t, n) : o[e._i] = n, | |
e | |
}, | |
ufstore: g | |
} | |
} | |
, function(e, t, o) { | |
var r = o(21) | |
, a = o(8); | |
e.exports = function(e) { | |
if (e === n) | |
return 0; | |
var t = r(e) | |
, o = a(t); | |
if (t !== o) | |
throw RangeError("Wrong length!"); | |
return o | |
} | |
} | |
, function(e, t, n) { | |
var o, r, a, i = n(16), u = n(86), c = n(59), s = n(53), l = n(3), f = l.process, d = l.setImmediate, p = l.clearImmediate, h = l.MessageChannel, v = l.Dispatch, g = 0, _ = {}, y = function() { | |
var e = +this; | |
if (_.hasOwnProperty(e)) { | |
var t = _[e]; | |
delete _[e], | |
t() | |
} | |
}, b = function(e) { | |
y.call(e.data) | |
}; | |
d && p || (d = function(e) { | |
for (var t = [], n = 1; arguments.length > n; ) | |
t.push(arguments[n++]); | |
return _[++g] = function() { | |
u("function" == typeof e ? e : Function(e), t) | |
} | |
, | |
o(g), | |
g | |
} | |
, | |
p = function(e) { | |
delete _[e] | |
} | |
, | |
"process" == n(20)(f) ? o = function(e) { | |
f.nextTick(i(y, e, 1)) | |
} | |
: v && v.now ? o = function(e) { | |
v.now(i(y, e, 1)) | |
} | |
: h ? (r = new h, | |
a = r.port2, | |
r.port1.onmessage = b, | |
o = i(a.postMessage, a, 1)) : l.addEventListener && "function" == typeof postMessage && !l.importScripts ? (o = function(e) { | |
l.postMessage(e + "", "*") | |
} | |
, | |
l.addEventListener("message", b, !1)) : o = "onreadystatechange"in s("script") ? function(e) { | |
c.appendChild(s("script")).onreadystatechange = function() { | |
c.removeChild(this), | |
y.call(e) | |
} | |
} | |
: function(e) { | |
setTimeout(i(y, e, 1), 0) | |
} | |
), | |
e.exports = { | |
set: d, | |
clear: p | |
} | |
} | |
, function(e, t, o) { | |
function r(e) { | |
var t, o; | |
this.promise = new e(function(e, r) { | |
if (t !== n || o !== n) | |
throw TypeError("Bad Promise constructor"); | |
t = e, | |
o = r | |
} | |
), | |
this.resolve = a(t), | |
this.reject = a(o) | |
} | |
var a = o(17); | |
e.exports.f = function(e) { | |
return new r(e) | |
} | |
} | |
, function(e, t, n) { | |
e.exports = n(105) | |
} | |
, function(e, t, o) { | |
var r = o(78) | |
, a = r.needCoreJS || r.isIOS; | |
a && "undefined" != typeof Promise && (Promise = n), | |
o(3), | |
r.needCoreJS && (o(106), | |
o(109), | |
o(112), | |
o(113), | |
o(114), | |
o(115), | |
o(116), | |
o(117), | |
o(118), | |
o(119), | |
o(120), | |
o(121), | |
o(122), | |
o(123), | |
o(124), | |
o(125), | |
o(126), | |
o(128), | |
o(129), | |
o(130), | |
o(131), | |
o(132), | |
o(133), | |
o(134), | |
o(135), | |
o(136), | |
o(137), | |
o(138), | |
o(139), | |
o(140), | |
o(141), | |
o(142), | |
o(143), | |
o(144), | |
o(145), | |
o(146), | |
o(147), | |
o(148), | |
o(149), | |
o(150), | |
o(151), | |
o(152), | |
o(153), | |
o(154), | |
o(156), | |
o(157), | |
o(158), | |
o(159), | |
o(160), | |
o(161), | |
o(162), | |
o(163), | |
o(164), | |
o(165), | |
o(166), | |
o(167), | |
o(168), | |
o(169), | |
o(170), | |
o(171), | |
o(172), | |
o(173), | |
o(174), | |
o(175), | |
o(176), | |
o(177), | |
o(178), | |
o(179), | |
o(180), | |
o(181), | |
o(182), | |
o(183), | |
o(184), | |
o(185), | |
o(186), | |
o(187), | |
o(188), | |
o(189), | |
o(191), | |
o(192), | |
o(194), | |
o(195), | |
o(196), | |
o(197), | |
o(198), | |
o(199), | |
o(200), | |
o(203), | |
o(204), | |
o(205), | |
o(206), | |
o(207), | |
o(208), | |
o(209), | |
o(210), | |
o(211), | |
o(212), | |
o(213), | |
o(214), | |
o(215), | |
o(97), | |
o(216), | |
o(217), | |
o(98), | |
o(218), | |
o(219), | |
o(220), | |
o(221), | |
o(222), | |
o(223), | |
o(224), | |
o(225), | |
o(226), | |
o(227), | |
o(228), | |
o(229), | |
o(230), | |
o(231), | |
o(232), | |
o(233), | |
o(234), | |
o(235), | |
o(236), | |
o(237), | |
o(238), | |
o(239), | |
o(240), | |
o(241), | |
o(242), | |
o(243), | |
o(244), | |
o(245), | |
o(246), | |
o(247), | |
o(249), | |
o(250), | |
o(251)), | |
a && o(252) | |
} | |
, function(e, t, o) { | |
function r(e) { | |
var t = h(null); | |
return e != n && (w(e) ? m(e, !0, function(e, n) { | |
t[e] = n | |
}) : p(t, e)), | |
t | |
} | |
function a(e, t, n) { | |
b(t); | |
var o, r, a = P(e), i = g(a), u = i.length, c = 0; | |
if (arguments.length < 3) { | |
if (!u) | |
throw TypeError("Reduce of empty object with no initial value"); | |
o = a[i[c++]] | |
} else | |
o = Object(n); | |
for (; u > c; ) | |
I(a, r = i[c++]) && (o = t(o, a[r], r, e)); | |
return o | |
} | |
function i(e, t) { | |
return (t == t ? y(e, t) : T(e, function(e) { | |
return e != e | |
})) !== n | |
} | |
function u(e, t) { | |
if (I(e, t)) | |
return e[t] | |
} | |
function c(e, t, n) { | |
return M && t in Object ? _.f(e, t, d(0, n)) : e[t] = n, | |
e | |
} | |
function s(e) { | |
return C(e) && v(e) === r.prototype | |
} | |
var l = o(16) | |
, f = o(0) | |
, d = o(25) | |
, p = o(54) | |
, h = o(27) | |
, v = o(28) | |
, g = o(32) | |
, _ = o(6) | |
, y = o(107) | |
, b = o(17) | |
, m = o(43) | |
, w = o(108) | |
, k = o(62) | |
, S = o(63) | |
, C = o(2) | |
, P = o(12) | |
, M = o(7) | |
, I = o(9) | |
, O = function(e) { | |
var t = 1 == e | |
, o = 4 == e; | |
return function(a, i, u) { | |
var c, s, f, d = l(i, u, 3), p = P(a), h = t || 7 == e || 2 == e ? new ("function" == typeof this ? this : r) : n; | |
for (c in p) | |
if (I(p, c) && (s = p[c], | |
f = d(s, c, a), | |
e)) | |
if (t) | |
h[c] = f; | |
else if (f) | |
switch (e) { | |
case 2: | |
h[c] = s; | |
break; | |
case 3: | |
return !0; | |
case 5: | |
return s; | |
case 6: | |
return c; | |
case 7: | |
h[f[0]] = f[1] | |
} | |
else if (o) | |
return !1; | |
return 3 == e || o ? o : h | |
} | |
} | |
, T = O(6) | |
, E = function(e) { | |
return function(t) { | |
return new x(t,e) | |
} | |
} | |
, x = function(e, t) { | |
this._t = P(e), | |
this._a = g(e), | |
this._i = 0, | |
this._k = t | |
}; | |
k(x, "Dict", function() { | |
var e, t = this, o = t._t, r = t._a, a = t._k; | |
do { | |
if (t._i >= r.length) | |
return t._t = n, | |
S(1) | |
} while (!I(o, e = r[t._i++]));return "keys" == a ? S(0, e) : "values" == a ? S(0, o[e]) : S(0, [e, o[e]]) | |
}), | |
r.prototype = null, | |
f(f.G + f.F, { | |
Dict: r | |
}), | |
f(f.S, "Dict", { | |
keys: E("keys"), | |
values: E("values"), | |
entries: E("entries"), | |
forEach: O(0), | |
map: O(1), | |
filter: O(2), | |
some: O(3), | |
every: O(4), | |
find: O(5), | |
findKey: T, | |
mapPairs: O(7), | |
reduce: a, | |
keyOf: y, | |
includes: i, | |
has: I, | |
get: u, | |
set: c, | |
isDict: s | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(32) | |
, r = n(12); | |
e.exports = function(e, t) { | |
for (var n, a = r(e), i = o(a), u = i.length, c = 0; u > c; ) | |
if (a[n = i[c++]] === t) | |
return n | |
} | |
} | |
, function(e, t, o) { | |
var r = o(44) | |
, a = o(5)("iterator") | |
, i = o(35); | |
e.exports = o(30).isIterable = function(e) { | |
var t = Object(e); | |
return t[a] !== n || "@@iterator"in t || i.hasOwnProperty(r(t)) | |
} | |
} | |
, function(e, t, o) { | |
var r = o(3) | |
, a = o(9) | |
, i = o(7) | |
, u = o(0) | |
, c = o(11) | |
, s = o(29).KEY | |
, l = o(1) | |
, f = o(57) | |
, d = o(36) | |
, p = o(31) | |
, h = o(5) | |
, v = o(83) | |
, g = o(110) | |
, _ = o(111) | |
, y = o(64) | |
, b = o(4) | |
, m = o(12) | |
, w = o(24) | |
, k = o(25) | |
, S = o(27) | |
, C = o(84) | |
, P = o(22) | |
, M = o(6) | |
, I = o(32) | |
, O = P.f | |
, T = M.f | |
, E = C.f | |
, x = r.Symbol | |
, A = r.JSON | |
, j = A && A.stringify | |
, B = h("_hidden") | |
, D = h("toPrimitive") | |
, R = {}.propertyIsEnumerable | |
, N = f("symbol-registry") | |
, L = f("symbols") | |
, F = f("op-symbols") | |
, W = Object.prototype | |
, V = "function" == typeof x | |
, U = r.QObject | |
, H = !U || !U.prototype || !U.prototype.findChild | |
, G = i && l(function() { | |
return 7 != S(T({}, "a", { | |
get: function() { | |
return T(this, "a", { | |
value: 7 | |
}).a | |
} | |
})).a | |
}) ? function(e, t, n) { | |
var o = O(W, t); | |
o && delete W[t], | |
T(e, t, n), | |
o && e !== W && T(W, t, o) | |
} | |
: T | |
, q = function(e) { | |
var t = L[e] = S(x.prototype); | |
return t._k = e, | |
t | |
} | |
, K = V && "symbol" == typeof x.iterator ? function(e) { | |
return "symbol" == typeof e | |
} | |
: function(e) { | |
return e instanceof x | |
} | |
, z = function(e, t, n) { | |
return e === W && z(F, t, n), | |
b(e), | |
t = w(t, !0), | |
b(n), | |
a(L, t) ? (n.enumerable ? (a(e, B) && e[B][t] && (e[B][t] = !1), | |
n = S(n, { | |
enumerable: k(0, !1) | |
})) : (a(e, B) || T(e, B, k(1, {})), | |
e[B][t] = !0), | |
G(e, t, n)) : T(e, t, n) | |
} | |
, J = function(e, t) { | |
b(e); | |
for (var n, o = _(t = m(t)), r = 0, a = o.length; a > r; ) | |
z(e, n = o[r++], t[n]); | |
return e | |
} | |
, Y = function(e, t) { | |
return t === n ? S(e) : J(S(e), t) | |
} | |
, X = function(e) { | |
var t = R.call(this, e = w(e, !0)); | |
return !(this === W && a(L, e) && !a(F, e)) && (!(t || !a(this, e) || !a(L, e) || a(this, B) && this[B][e]) || t) | |
} | |
, $ = function(e, t) { | |
if (e = m(e), | |
t = w(t, !0), | |
e !== W || !a(L, t) || a(F, t)) { | |
var n = O(e, t); | |
return !n || !a(L, t) || a(e, B) && e[B][t] || (n.enumerable = !0), | |
n | |
} | |
} | |
, Q = function(e) { | |
for (var t, n = E(m(e)), o = [], r = 0; n.length > r; ) | |
a(L, t = n[r++]) || t == B || t == s || o.push(t); | |
return o | |
} | |
, Z = function(e) { | |
for (var t, n = e === W, o = E(n ? F : m(e)), r = [], i = 0; o.length > i; ) | |
!a(L, t = o[i++]) || n && !a(W, t) || r.push(L[t]); | |
return r | |
}; | |
V || (x = function() { | |
if (this instanceof x) | |
throw TypeError("Symbol is not a constructor!"); | |
var e = p(arguments.length > 0 ? arguments[0] : n) | |
, t = function(n) { | |
this === W && t.call(F, n), | |
a(this, B) && a(this[B], e) && (this[B][e] = !1), | |
G(this, e, k(1, n)) | |
}; | |
return i && H && G(W, e, { | |
configurable: !0, | |
set: t | |
}), | |
q(e) | |
} | |
, | |
c(x.prototype, "toString", function() { | |
return this._k | |
}), | |
P.f = $, | |
M.f = z, | |
o(34).f = C.f = Q, | |
o(47).f = X, | |
o(46).f = Z, | |
i && !o(37) && c(W, "propertyIsEnumerable", X, !0), | |
v.f = function(e) { | |
return q(h(e)) | |
} | |
), | |
u(u.G + u.W + u.F * !V, { | |
Symbol: x | |
}); | |
for (var ee = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), te = 0; ee.length > te; ) | |
h(ee[te++]); | |
for (var ne = I(h.store), oe = 0; ne.length > oe; ) | |
g(ne[oe++]); | |
u(u.S + u.F * !V, "Symbol", { | |
for: function(e) { | |
return a(N, e += "") ? N[e] : N[e] = x(e) | |
}, | |
keyFor: function(e) { | |
if (!K(e)) | |
throw TypeError(e + " is not a symbol!"); | |
for (var t in N) | |
if (N[t] === e) | |
return t | |
}, | |
useSetter: function() { | |
H = !0 | |
}, | |
useSimple: function() { | |
H = !1 | |
} | |
}), | |
u(u.S + u.F * !V, "Object", { | |
create: Y, | |
defineProperty: z, | |
defineProperties: J, | |
getOwnPropertyDescriptor: $, | |
getOwnPropertyNames: Q, | |
getOwnPropertySymbols: Z | |
}), | |
A && u(u.S + u.F * (!V || l(function() { | |
var e = x(); | |
return "[null]" != j([e]) || "{}" != j({ | |
a: e | |
}) || "{}" != j(Object(e)) | |
})), "JSON", { | |
stringify: function(e) { | |
if (e !== n && !K(e)) { | |
for (var t, o, r = [e], a = 1; arguments.length > a; ) | |
r.push(arguments[a++]); | |
return t = r[1], | |
"function" == typeof t && (o = t), | |
!o && y(t) || (t = function(e, t) { | |
if (o && (t = o.call(this, e, t)), | |
!K(t)) | |
return t | |
} | |
), | |
r[1] = t, | |
j.apply(A, r) | |
} | |
} | |
}), | |
x.prototype[D] || o(14)(x.prototype, D, x.prototype.valueOf), | |
d(x, "Symbol"), | |
d(Math, "Math", !0), | |
d(r.JSON, "JSON", !0) | |
} | |
, function(e, t, n) { | |
var o = n(3) | |
, r = n(30) | |
, a = n(37) | |
, i = n(83) | |
, u = n(6).f; | |
e.exports = function(e) { | |
var t = r.Symbol || (r.Symbol = a ? {} : o.Symbol || {}); | |
"_" == e.charAt(0) || e in t || u(t, e, { | |
value: i.f(e) | |
}) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(32) | |
, r = n(46) | |
, a = n(47); | |
e.exports = function(e) { | |
var t = o(e) | |
, n = r.f; | |
if (n) | |
for (var i, u = n(e), c = a.f, s = 0; u.length > s; ) | |
c.call(e, i = u[s++]) && t.push(i); | |
return t | |
} | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Object", { | |
create: n(27) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S + o.F * !n(7), "Object", { | |
defineProperty: n(6).f | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S + o.F * !n(7), "Object", { | |
defineProperties: n(81) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(12) | |
, r = n(22).f; | |
n(18)("getOwnPropertyDescriptor", function() { | |
return function(e, t) { | |
return r(o(e), t) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(13) | |
, r = n(28); | |
n(18)("getPrototypeOf", function() { | |
return function(e) { | |
return r(o(e)) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(13) | |
, r = n(32); | |
n(18)("keys", function() { | |
return function(e) { | |
return r(o(e)) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(18)("getOwnPropertyNames", function() { | |
return n(84).f | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(2) | |
, r = n(29).onFreeze; | |
n(18)("freeze", function(e) { | |
return function(t) { | |
return e && o(t) ? e(r(t)) : t | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(2) | |
, r = n(29).onFreeze; | |
n(18)("seal", function(e) { | |
return function(t) { | |
return e && o(t) ? e(r(t)) : t | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(2) | |
, r = n(29).onFreeze; | |
n(18)("preventExtensions", function(e) { | |
return function(t) { | |
return e && o(t) ? e(r(t)) : t | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(2); | |
n(18)("isFrozen", function(e) { | |
return function(t) { | |
return !o(t) || !!e && e(t) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(2); | |
n(18)("isSealed", function(e) { | |
return function(t) { | |
return !o(t) || !!e && e(t) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(2); | |
n(18)("isExtensible", function(e) { | |
return function(t) { | |
return !!o(t) && (!e || e(t)) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S + o.F, "Object", { | |
assign: n(54) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Object", { | |
is: n(127) | |
}) | |
} | |
, function(e, t) { | |
e.exports = Object.is || function(e, t) { | |
return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t | |
} | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Object", { | |
setPrototypeOf: n(65).set | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(44) | |
, r = {}; | |
r[n(5)("toStringTag")] = "z", | |
r + "" != "[object z]" && n(11)(Object.prototype, "toString", function() { | |
return "[object " + o(this) + "]" | |
}, !0) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.P, "Function", { | |
bind: n(85) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(6).f | |
, r = Function.prototype | |
, a = /^\s*function ([^ (]*)/; | |
"name"in r || n(7) && o(r, "name", { | |
configurable: !0, | |
get: function() { | |
try { | |
return ("" + this).match(a)[1] | |
} catch (e) { | |
return "" | |
} | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(2) | |
, r = n(28) | |
, a = n(5)("hasInstance") | |
, i = Function.prototype; | |
a in i || n(6).f(i, a, { | |
value: function(e) { | |
if ("function" != typeof this || !o(e)) | |
return !1; | |
if (!o(this.prototype)) | |
return e instanceof this; | |
for (; e = r(e); ) | |
if (this.prototype === e) | |
return !0; | |
return !1 | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(87); | |
o(o.G + o.F * (parseInt != r), { | |
parseInt: r | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(88); | |
o(o.G + o.F * (parseFloat != r), { | |
parseFloat: r | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(3) | |
, r = n(9) | |
, a = n(20) | |
, i = n(67) | |
, u = n(24) | |
, c = n(1) | |
, s = n(34).f | |
, l = n(22).f | |
, f = n(6).f | |
, d = n(48).trim | |
, p = o.Number | |
, h = p | |
, v = p.prototype | |
, g = "Number" == a(n(27)(v)) | |
, _ = "trim"in String.prototype | |
, y = function(e) { | |
var t = u(e, !1); | |
if ("string" == typeof t && t.length > 2) { | |
t = _ ? t.trim() : d(t, 3); | |
var n, o, r, a = t.charCodeAt(0); | |
if (43 === a || 45 === a) { | |
if (88 === (n = t.charCodeAt(2)) || 120 === n) | |
return NaN | |
} else if (48 === a) { | |
switch (t.charCodeAt(1)) { | |
case 66: | |
case 98: | |
o = 2, | |
r = 49; | |
break; | |
case 79: | |
case 111: | |
o = 8, | |
r = 55; | |
break; | |
default: | |
return +t | |
} | |
for (var i, c = t.slice(2), s = 0, l = c.length; s < l; s++) | |
if ((i = c.charCodeAt(s)) < 48 || i > r) | |
return NaN; | |
return parseInt(c, o) | |
} | |
} | |
return +t | |
}; | |
if (!p(" 0o1") || !p("0b1") || p("+0x1")) { | |
p = function(e) { | |
var t = arguments.length < 1 ? 0 : e | |
, n = this; | |
return n instanceof p && (g ? c(function() { | |
v.valueOf.call(n) | |
}) : "Number" != a(n)) ? i(new h(y(t)), n, p) : y(t) | |
} | |
; | |
for (var b, m = n(7) ? s(h) : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","), w = 0; m.length > w; w++) | |
r(h, b = m[w]) && !r(p, b) && f(p, b, l(h, b)); | |
p.prototype = v, | |
v.constructor = p, | |
n(11)(o, "Number", p) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(21) | |
, a = n(89) | |
, i = n(90) | |
, u = 1..toFixed | |
, c = Math.floor | |
, s = [0, 0, 0, 0, 0, 0] | |
, l = "Number.toFixed: incorrect invocation!" | |
, f = function(e, t) { | |
for (var n = -1, o = t; ++n < 6; ) | |
o += e * s[n], | |
s[n] = o % 1e7, | |
o = c(o / 1e7) | |
} | |
, d = function(e) { | |
for (var t = 6, n = 0; --t >= 0; ) | |
n += s[t], | |
s[t] = c(n / e), | |
n = n % e * 1e7 | |
} | |
, p = function() { | |
for (var e = 6, t = ""; --e >= 0; ) | |
if ("" !== t || 0 === e || 0 !== s[e]) { | |
var n = String(s[e]); | |
t = "" === t ? n : t + i.call("0", 7 - n.length) + n | |
} | |
return t | |
} | |
, h = function(e, t, n) { | |
return 0 === t ? n : t % 2 == 1 ? h(e, t - 1, n * e) : h(e * e, t / 2, n) | |
} | |
, v = function(e) { | |
for (var t = 0, n = e; n >= 4096; ) | |
t += 12, | |
n /= 4096; | |
for (; n >= 2; ) | |
t += 1, | |
n /= 2; | |
return t | |
}; | |
o(o.P + o.F * (!!u && ("0.000" !== 8e-5.toFixed(3) || "1" !== .9.toFixed(0) || "1.25" !== 1.255.toFixed(2) || "1000000000000000128" !== (0xde0b6b3a7640080).toFixed(0)) || !n(1)(function() { | |
u.call({}) | |
})), "Number", { | |
toFixed: function(e) { | |
var t, n, o, u, c = a(this, l), s = r(e), g = "", _ = "0"; | |
if (s < 0 || s > 20) | |
throw RangeError(l); | |
if (c != c) | |
return "NaN"; | |
if (c <= -1e21 || c >= 1e21) | |
return String(c); | |
if (c < 0 && (g = "-", | |
c = -c), | |
c > 1e-21) | |
if (t = v(c * h(2, 69, 1)) - 69, | |
n = t < 0 ? c * h(2, -t, 1) : c / h(2, t, 1), | |
n *= 4503599627370496, | |
(t = 52 - t) > 0) { | |
for (f(0, n), | |
o = s; o >= 7; ) | |
f(1e7, 0), | |
o -= 7; | |
for (f(h(10, o, 1), 0), | |
o = t - 1; o >= 23; ) | |
d(1 << 23), | |
o -= 23; | |
d(1 << o), | |
f(1, 1), | |
d(2), | |
_ = p() | |
} else | |
f(0, n), | |
f(1 << -t, 0), | |
_ = p() + i.call("0", s); | |
return s > 0 ? (u = _.length, | |
_ = g + (u <= s ? "0." + i.call("0", s - u) + _ : _.slice(0, u - s) + "." + _.slice(u - s))) : _ = g + _, | |
_ | |
} | |
}) | |
} | |
, function(e, t, o) { | |
var r = o(0) | |
, a = o(1) | |
, i = o(89) | |
, u = 1..toPrecision; | |
r(r.P + r.F * (a(function() { | |
return "1" !== u.call(1, n) | |
}) || !a(function() { | |
u.call({}) | |
})), "Number", { | |
toPrecision: function(e) { | |
var t = i(this, "Number#toPrecision: incorrect invocation!"); | |
return e === n ? u.call(t) : u.call(t, e) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Number", { | |
EPSILON: Math.pow(2, -52) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(3).isFinite; | |
o(o.S, "Number", { | |
isFinite: function(e) { | |
return "number" == typeof e && r(e) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Number", { | |
isInteger: n(91) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Number", { | |
isNaN: function(e) { | |
return e != e | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(91) | |
, a = Math.abs; | |
o(o.S, "Number", { | |
isSafeInteger: function(e) { | |
return r(e) && a(e) <= 9007199254740991 | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Number", { | |
MAX_SAFE_INTEGER: 9007199254740991 | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Number", { | |
MIN_SAFE_INTEGER: -9007199254740991 | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(88); | |
o(o.S + o.F * (Number.parseFloat != r), "Number", { | |
parseFloat: r | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(87); | |
o(o.S + o.F * (Number.parseInt != r), "Number", { | |
parseInt: r | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(92) | |
, a = Math.sqrt | |
, i = Math.acosh; | |
o(o.S + o.F * !(i && 710 == Math.floor(i(Number.MAX_VALUE)) && i(1 / 0) == 1 / 0), "Math", { | |
acosh: function(e) { | |
return (e = +e) < 1 ? NaN : e > 94906265.62425156 ? Math.log(e) + Math.LN2 : r(e - 1 + a(e - 1) * a(e + 1)) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return isFinite(e = +e) && 0 != e ? e < 0 ? -o(-e) : Math.log(e + Math.sqrt(e * e + 1)) : e | |
} | |
var r = n(0) | |
, a = Math.asinh; | |
r(r.S + r.F * !(a && 1 / a(0) > 0), "Math", { | |
asinh: o | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = Math.atanh; | |
o(o.S + o.F * !(r && 1 / r(-0) < 0), "Math", { | |
atanh: function(e) { | |
return 0 == (e = +e) ? e : Math.log((1 + e) / (1 - e)) / 2 | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(68); | |
o(o.S, "Math", { | |
cbrt: function(e) { | |
return r(e = +e) * Math.pow(Math.abs(e), 1 / 3) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Math", { | |
clz32: function(e) { | |
return (e >>>= 0) ? 31 - Math.floor(Math.log(e + .5) * Math.LOG2E) : 32 | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = Math.exp; | |
o(o.S, "Math", { | |
cosh: function(e) { | |
return (r(e = +e) + r(-e)) / 2 | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(69); | |
o(o.S + o.F * (r != Math.expm1), "Math", { | |
expm1: r | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Math", { | |
fround: n(155) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(68) | |
, r = Math.pow | |
, a = r(2, -52) | |
, i = r(2, -23) | |
, u = r(2, 127) * (2 - i) | |
, c = r(2, -126) | |
, s = function(e) { | |
return e + 1 / a - 1 / a | |
}; | |
e.exports = Math.fround || function(e) { | |
var t, n, r = Math.abs(e), l = o(e); | |
return r < c ? l * s(r / c / i) * c * i : (t = (1 + i / a) * r, | |
n = t - (t - r), | |
n > u || n != n ? l * (1 / 0) : l * n) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = Math.abs; | |
o(o.S, "Math", { | |
hypot: function(e, t) { | |
for (var n, o, a = 0, i = 0, u = arguments.length, c = 0; i < u; ) | |
n = r(arguments[i++]), | |
c < n ? (o = c / n, | |
a = a * o * o + 1, | |
c = n) : n > 0 ? (o = n / c, | |
a += o * o) : a += n; | |
return c === 1 / 0 ? 1 / 0 : c * Math.sqrt(a) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = Math.imul; | |
o(o.S + o.F * n(1)(function() { | |
return -5 != r(4294967295, 5) || 2 != r.length | |
}), "Math", { | |
imul: function(e, t) { | |
var n = +e | |
, o = +t | |
, r = 65535 & n | |
, a = 65535 & o; | |
return 0 | r * a + ((65535 & n >>> 16) * a + r * (65535 & o >>> 16) << 16 >>> 0) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Math", { | |
log10: function(e) { | |
return Math.log(e) * Math.LOG10E | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Math", { | |
log1p: n(92) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Math", { | |
log2: function(e) { | |
return Math.log(e) / Math.LN2 | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Math", { | |
sign: n(68) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(69) | |
, a = Math.exp; | |
o(o.S + o.F * n(1)(function() { | |
return -2e-17 != !Math.sinh(-2e-17) | |
}), "Math", { | |
sinh: function(e) { | |
return Math.abs(e = +e) < 1 ? (r(e) - r(-e)) / 2 : (a(e - 1) - a(-e - 1)) * (Math.E / 2) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(69) | |
, a = Math.exp; | |
o(o.S, "Math", { | |
tanh: function(e) { | |
var t = r(e = +e) | |
, n = r(-e); | |
return t == 1 / 0 ? 1 : n == 1 / 0 ? -1 : (t - n) / (a(e) + a(-e)) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Math", { | |
trunc: function(e) { | |
return (e > 0 ? Math.floor : Math.ceil)(e) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(33) | |
, a = String.fromCharCode | |
, i = String.fromCodePoint; | |
o(o.S + o.F * (!!i && 1 != i.length), "String", { | |
fromCodePoint: function(e) { | |
for (var t, n = [], o = arguments.length, i = 0; o > i; ) { | |
if (t = +arguments[i++], | |
r(t, 1114111) !== t) | |
throw RangeError(t + " is not a valid code point"); | |
n.push(t < 65536 ? a(t) : a(55296 + ((t -= 65536) >> 10), t % 1024 + 56320)) | |
} | |
return n.join("") | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(12) | |
, a = n(8); | |
o(o.S, "String", { | |
raw: function(e) { | |
for (var t = r(e.raw), n = a(t.length), o = arguments.length, i = [], u = 0; n > u; ) | |
i.push(String(t[u++])), | |
u < o && i.push(String(arguments[u])); | |
return i.join("") | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(48)("trim", function(e) { | |
return function() { | |
return e(this, 3) | |
} | |
}) | |
} | |
, function(e, t, o) { | |
var r = o(93)(!0); | |
o(70)(String, "String", function(e) { | |
this._t = String(e), | |
this._i = 0 | |
}, function() { | |
var e, t = this._t, o = this._i; | |
return o >= t.length ? { | |
value: n, | |
done: !0 | |
} : (e = r(t, o), | |
this._i += e.length, | |
{ | |
value: e, | |
done: !1 | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(93)(!1); | |
o(o.P, "String", { | |
codePointAt: function(e) { | |
return r(this, e) | |
} | |
}) | |
} | |
, function(e, t, o) { | |
var r = o(0) | |
, a = o(8) | |
, i = o(71) | |
, u = "".endsWith; | |
r(r.P + r.F * o(73)("endsWith"), "String", { | |
endsWith: function(e) { | |
var t = i(this, e, "endsWith") | |
, o = arguments.length > 1 ? arguments[1] : n | |
, r = a(t.length) | |
, c = o === n ? r : Math.min(a(o), r) | |
, s = String(e); | |
return u ? u.call(t, s, c) : t.slice(c - s.length, c) === s | |
} | |
}) | |
} | |
, function(e, t, o) { | |
var r = o(0) | |
, a = o(71); | |
r(r.P + r.F * o(73)("includes"), "String", { | |
includes: function(e) { | |
return !!~a(this, e, "includes").indexOf(e, arguments.length > 1 ? arguments[1] : n) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.P, "String", { | |
repeat: n(90) | |
}) | |
} | |
, function(e, t, o) { | |
var r = o(0) | |
, a = o(8) | |
, i = o(71) | |
, u = "".startsWith; | |
r(r.P + r.F * o(73)("startsWith"), "String", { | |
startsWith: function(e) { | |
var t = i(this, e, "startsWith") | |
, o = a(Math.min(arguments.length > 1 ? arguments[1] : n, t.length)) | |
, r = String(e); | |
return u ? u.call(t, r, o) : t.slice(o, o + r.length) === r | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(10)("anchor", function(e) { | |
return function(t) { | |
return e(this, "a", "name", t) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(10)("big", function(e) { | |
return function() { | |
return e(this, "big", "", "") | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(10)("blink", function(e) { | |
return function() { | |
return e(this, "blink", "", "") | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(10)("bold", function(e) { | |
return function() { | |
return e(this, "b", "", "") | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(10)("fixed", function(e) { | |
return function() { | |
return e(this, "tt", "", "") | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(10)("fontcolor", function(e) { | |
return function(t) { | |
return e(this, "font", "color", t) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(10)("fontsize", function(e) { | |
return function(t) { | |
return e(this, "font", "size", t) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(10)("italics", function(e) { | |
return function() { | |
return e(this, "i", "", "") | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(10)("link", function(e) { | |
return function(t) { | |
return e(this, "a", "href", t) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(10)("small", function(e) { | |
return function() { | |
return e(this, "small", "", "") | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(10)("strike", function(e) { | |
return function() { | |
return e(this, "strike", "", "") | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(10)("sub", function(e) { | |
return function() { | |
return e(this, "sub", "", "") | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(10)("sup", function(e) { | |
return function() { | |
return e(this, "sup", "", "") | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Date", { | |
now: function() { | |
return (new Date).getTime() | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(13) | |
, a = n(24); | |
o(o.P + o.F * n(1)(function() { | |
return null !== new Date(NaN).toJSON() || 1 !== Date.prototype.toJSON.call({ | |
toISOString: function() { | |
return 1 | |
} | |
}) | |
}), "Date", { | |
toJSON: function(e) { | |
var t = r(this) | |
, n = a(t); | |
return "number" != typeof n || isFinite(n) ? t.toISOString() : null | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(190); | |
o(o.P + o.F * (Date.prototype.toISOString !== r), "Date", { | |
toISOString: r | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(1) | |
, r = Date.prototype.getTime | |
, a = Date.prototype.toISOString | |
, i = function(e) { | |
return e > 9 ? e : "0" + e | |
}; | |
e.exports = o(function() { | |
return "0385-07-25T07:06:39.999Z" != a.call(new Date(-5e13 - 1)) | |
}) || !o(function() { | |
a.call(new Date(NaN)) | |
}) ? function() { | |
if (!isFinite(r.call(this))) | |
throw RangeError("Invalid time value"); | |
var e = this | |
, t = e.getUTCFullYear() | |
, n = e.getUTCMilliseconds() | |
, o = t < 0 ? "-" : t > 9999 ? "+" : ""; | |
return o + ("00000" + Math.abs(t)).slice(o ? -6 : -4) + "-" + i(e.getUTCMonth() + 1) + "-" + i(e.getUTCDate()) + "T" + i(e.getUTCHours()) + ":" + i(e.getUTCMinutes()) + ":" + i(e.getUTCSeconds()) + "." + (n > 99 ? n : "0" + i(n)) + "Z" | |
} | |
: a | |
} | |
, function(e, t, n) { | |
var o = Date.prototype | |
, r = o.toString | |
, a = o.getTime; | |
new Date(NaN) + "" != "Invalid Date" && n(11)(o, "toString", function() { | |
var e = a.call(this); | |
return e === e ? r.call(this) : "Invalid Date" | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(5)("toPrimitive") | |
, r = Date.prototype; | |
o in r || n(14)(r, o, n(193)) | |
} | |
, function(e, t, n) { | |
var o = n(4) | |
, r = n(24); | |
e.exports = function(e) { | |
if ("string" !== e && "number" !== e && "default" !== e) | |
throw TypeError("Incorrect hint"); | |
return r(o(this), "number" != e) | |
} | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Array", { | |
isArray: n(64) | |
}) | |
} | |
, function(e, t, o) { | |
var r = o(16) | |
, a = o(0) | |
, i = o(13) | |
, u = o(82) | |
, c = o(60) | |
, s = o(8) | |
, l = o(94) | |
, f = o(61); | |
a(a.S + a.F * !o(49)(function(e) { | |
Array.from(e) | |
}), "Array", { | |
from: function(e) { | |
var t, o, a, d, p = i(e), h = "function" == typeof this ? this : Array, v = arguments.length, g = v > 1 ? arguments[1] : n, _ = g !== n, y = 0, b = f(p); | |
if (_ && (g = r(g, v > 2 ? arguments[2] : n, 2)), | |
b == n || h == Array && c(b)) | |
for (t = s(p.length), | |
o = new h(t); t > y; y++) | |
l(o, y, _ ? g(p[y], y) : p[y]); | |
else | |
for (d = b.call(p), | |
o = new h; !(a = d.next()).done; y++) | |
l(o, y, _ ? u(d, g, [a.value, y], !0) : a.value); | |
return o.length = y, | |
o | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(94); | |
o(o.S + o.F * n(1)(function() { | |
function e() {} | |
return !(Array.of.call(e)instanceof e) | |
}), "Array", { | |
of: function() { | |
for (var e = 0, t = arguments.length, n = new ("function" == typeof this ? this : Array)(t); t > e; ) | |
r(n, e, arguments[e++]); | |
return n.length = t, | |
n | |
} | |
}) | |
} | |
, function(e, t, o) { | |
var r = o(0) | |
, a = o(12) | |
, i = [].join; | |
r(r.P + r.F * (o(42) != Object || !o(15)(i)), "Array", { | |
join: function(e) { | |
return i.call(a(this), e === n ? "," : e) | |
} | |
}) | |
} | |
, function(e, t, o) { | |
var r = o(0) | |
, a = o(59) | |
, i = o(20) | |
, u = o(33) | |
, c = o(8) | |
, s = [].slice; | |
r(r.P + r.F * o(1)(function() { | |
a && s.call(a) | |
}), "Array", { | |
slice: function(e, t) { | |
var o = c(this.length) | |
, r = i(this); | |
if (t = t === n ? o : t, | |
"Array" == r) | |
return s.call(this, e, t); | |
for (var a = u(e, o), l = u(t, o), f = c(l - a), d = Array(f), p = 0; p < f; p++) | |
d[p] = "String" == r ? this.charAt(a + p) : this[a + p]; | |
return d | |
} | |
}) | |
} | |
, function(e, t, o) { | |
var r = o(0) | |
, a = o(17) | |
, i = o(13) | |
, u = o(1) | |
, c = [].sort | |
, s = [1, 2, 3]; | |
r(r.P + r.F * (u(function() { | |
s.sort(n) | |
}) || !u(function() { | |
s.sort(null) | |
}) || !o(15)(c)), "Array", { | |
sort: function(e) { | |
return e === n ? c.call(i(this)) : c.call(i(this), a(e)) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(19)(0) | |
, a = n(15)([].forEach, !0); | |
o(o.P + o.F * !a, "Array", { | |
forEach: function(e) { | |
return r(this, e, arguments[1]) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(202); | |
e.exports = function(e, t) { | |
return new (o(e))(t) | |
} | |
} | |
, function(e, t, o) { | |
var r = o(2) | |
, a = o(64) | |
, i = o(5)("species"); | |
e.exports = function(e) { | |
var t; | |
return a(e) && (t = e.constructor, | |
"function" != typeof t || t !== Array && !a(t.prototype) || (t = n), | |
r(t) && null === (t = t[i]) && (t = n)), | |
t === n ? Array : t | |
} | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(19)(1); | |
o(o.P + o.F * !n(15)([].map, !0), "Array", { | |
map: function(e) { | |
return r(this, e, arguments[1]) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(19)(2); | |
o(o.P + o.F * !n(15)([].filter, !0), "Array", { | |
filter: function(e) { | |
return r(this, e, arguments[1]) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(19)(3); | |
o(o.P + o.F * !n(15)([].some, !0), "Array", { | |
some: function(e) { | |
return r(this, e, arguments[1]) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(19)(4); | |
o(o.P + o.F * !n(15)([].every, !0), "Array", { | |
every: function(e) { | |
return r(this, e, arguments[1]) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(95); | |
o(o.P + o.F * !n(15)([].reduce, !0), "Array", { | |
reduce: function(e) { | |
return r(this, e, arguments.length, arguments[1], !1) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(95); | |
o(o.P + o.F * !n(15)([].reduceRight, !0), "Array", { | |
reduceRight: function(e) { | |
return r(this, e, arguments.length, arguments[1], !0) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(55)(!1) | |
, a = [].indexOf | |
, i = !!a && 1 / [1].indexOf(1, -0) < 0; | |
o(o.P + o.F * (i || !n(15)(a)), "Array", { | |
indexOf: function(e) { | |
return i ? a.apply(this, arguments) || 0 : r(this, e, arguments[1]) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(12) | |
, a = n(21) | |
, i = n(8) | |
, u = [].lastIndexOf | |
, c = !!u && 1 / [1].lastIndexOf(1, -0) < 0; | |
o(o.P + o.F * (c || !n(15)(u)), "Array", { | |
lastIndexOf: function(e) { | |
if (c) | |
return u.apply(this, arguments) || 0; | |
var t = r(this) | |
, n = i(t.length) | |
, o = n - 1; | |
for (arguments.length > 1 && (o = Math.min(o, a(arguments[1]))), | |
o < 0 && (o = n + o); o >= 0; o--) | |
if (o in t && t[o] === e) | |
return o || 0; | |
return -1 | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.P, "Array", { | |
copyWithin: n(96) | |
}), | |
n(45)("copyWithin") | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.P, "Array", { | |
fill: n(74) | |
}), | |
n(45)("fill") | |
} | |
, function(e, t, o) { | |
var r = o(0) | |
, a = o(19)(5) | |
, i = !0; | |
"find"in [] && Array(1).find(function() { | |
i = !1 | |
}), | |
r(r.P + r.F * i, "Array", { | |
find: function(e) { | |
return a(this, e, arguments.length > 1 ? arguments[1] : n) | |
} | |
}), | |
o(45)("find") | |
} | |
, function(e, t, o) { | |
var r = o(0) | |
, a = o(19)(6) | |
, i = "findIndex" | |
, u = !0; | |
i in [] && Array(1)[i](function() { | |
u = !1 | |
}), | |
r(r.P + r.F * u, "Array", { | |
findIndex: function(e) { | |
return a(this, e, arguments.length > 1 ? arguments[1] : n) | |
} | |
}), | |
o(45)(i) | |
} | |
, function(e, t, n) { | |
n(38)("Array") | |
} | |
, function(e, t, o) { | |
var r = o(3) | |
, a = o(67) | |
, i = o(6).f | |
, u = o(34).f | |
, c = o(72) | |
, s = o(75) | |
, l = r.RegExp | |
, f = l | |
, d = l.prototype | |
, p = /a/g | |
, h = /a/g | |
, v = new l(p) !== p; | |
if (o(7) && (!v || o(1)(function() { | |
return h[o(5)("match")] = !1, | |
l(p) != p || l(h) == h || "/a/i" != l(p, "i") | |
}))) { | |
l = function(e, t) { | |
var o = this instanceof l | |
, r = c(e) | |
, i = t === n; | |
return !o && r && e.constructor === l && i ? e : a(v ? new f(r && !i ? e.source : e,t) : f((r = e instanceof l) ? e.source : e, r && i ? s.call(e) : t), o ? this : d, l) | |
} | |
; | |
for (var g = u(f), _ = 0; g.length > _; ) | |
!function(e) { | |
e in l || i(l, e, { | |
configurable: !0, | |
get: function() { | |
return f[e] | |
}, | |
set: function(t) { | |
f[e] = t | |
} | |
}) | |
}(g[_++]); | |
d.constructor = l, | |
l.prototype = d, | |
o(11)(r, "RegExp", l) | |
} | |
o(38)("RegExp") | |
} | |
, function(e, t, o) { | |
o(98); | |
var r = o(4) | |
, a = o(75) | |
, i = o(7) | |
, u = /./.toString | |
, c = function(e) { | |
o(11)(RegExp.prototype, "toString", e, !0) | |
}; | |
o(1)(function() { | |
return "/a/b" != u.call({ | |
source: "a", | |
flags: "b" | |
}) | |
}) ? c(function() { | |
var e = r(this); | |
return "/".concat(e.source, "/", "flags"in e ? e.flags : !i && e instanceof RegExp ? a.call(e) : n) | |
}) : "toString" != u.name && c(function() { | |
return u.call(this) | |
}) | |
} | |
, function(e, t, o) { | |
o(50)("match", 1, function(e, t, o) { | |
return [function(o) { | |
var r = e(this) | |
, a = o == n ? n : o[t]; | |
return a !== n ? a.call(o, r) : new RegExp(o)[t](String(r)) | |
} | |
, o] | |
}) | |
} | |
, function(e, t, o) { | |
o(50)("replace", 2, function(e, t, o) { | |
return [function(r, a) { | |
var i = e(this) | |
, u = r == n ? n : r[t]; | |
return u !== n ? u.call(r, i, a) : o.call(String(i), r, a) | |
} | |
, o] | |
}) | |
} | |
, function(e, t, o) { | |
o(50)("search", 1, function(e, t, o) { | |
return [function(o) { | |
var r = e(this) | |
, a = o == n ? n : o[t]; | |
return a !== n ? a.call(o, r) : new RegExp(o)[t](String(r)) | |
} | |
, o] | |
}) | |
} | |
, function(e, t, o) { | |
o(50)("split", 2, function(e, t, r) { | |
var a = o(72) | |
, i = r | |
, u = [].push | |
, c = "length"; | |
if ("c" == "abbc".split(/(b)*/)[1] || 4 != "test".split(/(?:)/, -1)[c] || 2 != "ab".split(/(?:ab)*/)[c] || 4 != ".".split(/(.?)(.?)/)[c] || ".".split(/()()/)[c] > 1 || "".split(/.?/)[c]) { | |
var s = /()??/.exec("")[1] === n; | |
r = function(e, t) { | |
var o = String(this); | |
if (e === n && 0 === t) | |
return []; | |
if (!a(e)) | |
return i.call(o, e, t); | |
var r, l, f, d, p, h = [], v = (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.unicode ? "u" : "") + (e.sticky ? "y" : ""), g = 0, _ = t === n ? 4294967295 : t >>> 0, y = new RegExp(e.source,v + "g"); | |
for (s || (r = new RegExp("^" + y.source + "$(?!\\s)",v)); (l = y.exec(o)) && !((f = l.index + l[0][c]) > g && (h.push(o.slice(g, l.index)), | |
!s && l[c] > 1 && l[0].replace(r, function() { | |
for (p = 1; p < arguments[c] - 2; p++) | |
arguments[p] === n && (l[p] = n) | |
}), | |
l[c] > 1 && l.index < o[c] && u.apply(h, l.slice(1)), | |
d = l[0][c], | |
g = f, | |
h[c] >= _)); ) | |
y.lastIndex === l.index && y.lastIndex++; | |
return g === o[c] ? !d && y.test("") || h.push("") : h.push(o.slice(g)), | |
h[c] > _ ? h.slice(0, _) : h | |
} | |
} else | |
"0".split(n, 0)[c] && (r = function(e, t) { | |
return e === n && 0 === t ? [] : i.call(this, e, t) | |
} | |
); | |
return [function(o, a) { | |
var i = e(this) | |
, u = o == n ? n : o[t]; | |
return u !== n ? u.call(o, i, a) : r.call(String(i), o, a) | |
} | |
, r] | |
}) | |
} | |
, function(e, t, o) { | |
var r = o(99) | |
, a = o(41); | |
e.exports = o(51)("Map", function(e) { | |
return function() { | |
return e(this, arguments.length > 0 ? arguments[0] : n) | |
} | |
}, { | |
get: function(e) { | |
var t = r.getEntry(a(this, "Map"), e); | |
return t && t.v | |
}, | |
set: function(e, t) { | |
return r.def(a(this, "Map"), 0 === e ? 0 : e, t) | |
} | |
}, r, !0) | |
} | |
, function(e, t, o) { | |
var r = o(99) | |
, a = o(41); | |
e.exports = o(51)("Set", function(e) { | |
return function() { | |
return e(this, arguments.length > 0 ? arguments[0] : n) | |
} | |
}, { | |
add: function(e) { | |
return r.def(a(this, "Set"), e = 0 === e ? 0 : e, e) | |
} | |
}, r) | |
} | |
, function(e, t, o) { | |
var r, a = o(19)(0), i = o(11), u = o(29), c = o(54), s = o(100), l = o(2), f = o(1), d = o(41), p = u.getWeak, h = Object.isExtensible, v = s.ufstore, g = {}; | |
if (o(3).WeakMap === n) { | |
var _ = function(e) { | |
return function() { | |
return e(this, arguments.length > 0 ? arguments[0] : n) | |
} | |
} | |
, y = { | |
get: function(e) { | |
if (l(e)) { | |
var t = p(e); | |
return !0 === t ? v(d(this, "WeakMap")).get(e) : t ? t[this._i] : n | |
} | |
}, | |
set: function(e, t) { | |
return s.def(d(this, "WeakMap"), e, t) | |
} | |
} | |
, b = e.exports = o(51)("WeakMap", _, y, s, !0, !0); | |
f(function() { | |
return 7 != (new b).set((Object.freeze || Object)(g), 7).get(g) | |
}) && (r = s.getConstructor(_, "WeakMap"), | |
c(r.prototype, y), | |
u.NEED = !0, | |
a(["delete", "has", "get", "set"], function(e) { | |
var t = b.prototype | |
, n = t[e]; | |
i(t, e, function(t, o) { | |
if (l(t) && !h(t)) { | |
this._f || (this._f = new r); | |
var a = this._f[e](t, o); | |
return "set" == e ? this : a | |
} | |
return n.call(this, t, o) | |
}) | |
})) | |
} | |
} | |
, function(e, t, o) { | |
var r = o(100) | |
, a = o(41); | |
o(51)("WeakSet", function(e) { | |
return function() { | |
return e(this, arguments.length > 0 ? arguments[0] : n) | |
} | |
}, { | |
add: function(e) { | |
return r.def(a(this, "WeakSet"), e, !0) | |
} | |
}, r, !1, !0) | |
} | |
, function(e, t, o) { | |
var r = o(0) | |
, a = o(52) | |
, i = o(76) | |
, u = o(4) | |
, c = o(33) | |
, s = o(8) | |
, l = o(2) | |
, f = o(3).ArrayBuffer | |
, d = o(77) | |
, p = i.ArrayBuffer | |
, h = i.DataView | |
, v = a.ABV && f.isView | |
, g = p.prototype.slice | |
, _ = a.VIEW; | |
r(r.G + r.W + r.F * (f !== p), { | |
ArrayBuffer: p | |
}), | |
r(r.S + r.F * !a.CONSTR, "ArrayBuffer", { | |
isView: function(e) { | |
return v && v(e) || l(e) && _ in e | |
} | |
}), | |
r(r.P + r.U + r.F * o(1)(function() { | |
return !new p(2).slice(1, n).byteLength | |
}), "ArrayBuffer", { | |
slice: function(e, t) { | |
if (g !== n && t === n) | |
return g.call(u(this), e); | |
for (var o = u(this).byteLength, r = c(e, o), a = c(t === n ? o : t, o), i = new (d(this, p))(s(a - r)), l = new h(this), f = new h(i), v = 0; r < a; ) | |
f.setUint8(v++, l.getUint8(r++)); | |
return i | |
} | |
}), | |
o(38)("ArrayBuffer") | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.G + o.W + o.F * !n(52).ABV, { | |
DataView: n(76).DataView | |
}) | |
} | |
, function(e, t, n) { | |
n(23)("Int8", 1, function(e) { | |
return function(t, n, o) { | |
return e(this, t, n, o) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(23)("Uint8", 1, function(e) { | |
return function(t, n, o) { | |
return e(this, t, n, o) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(23)("Uint8", 1, function(e) { | |
return function(t, n, o) { | |
return e(this, t, n, o) | |
} | |
}, !0) | |
} | |
, function(e, t, n) { | |
n(23)("Int16", 2, function(e) { | |
return function(t, n, o) { | |
return e(this, t, n, o) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(23)("Uint16", 2, function(e) { | |
return function(t, n, o) { | |
return e(this, t, n, o) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(23)("Int32", 4, function(e) { | |
return function(t, n, o) { | |
return e(this, t, n, o) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(23)("Uint32", 4, function(e) { | |
return function(t, n, o) { | |
return e(this, t, n, o) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(23)("Float32", 4, function(e) { | |
return function(t, n, o) { | |
return e(this, t, n, o) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
n(23)("Float64", 8, function(e) { | |
return function(t, n, o) { | |
return e(this, t, n, o) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(17) | |
, a = n(4) | |
, i = (n(3).Reflect || {}).apply | |
, u = Function.apply; | |
o(o.S + o.F * !n(1)(function() { | |
i(function() {}) | |
}), "Reflect", { | |
apply: function(e, t, n) { | |
var o = r(e) | |
, c = a(n); | |
return i ? i(o, t, c) : u.call(o, t, c) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(27) | |
, a = n(17) | |
, i = n(4) | |
, u = n(2) | |
, c = n(1) | |
, s = n(85) | |
, l = (n(3).Reflect || {}).construct | |
, f = c(function() { | |
function e() {} | |
return !(l(function() {}, [], e)instanceof e) | |
}) | |
, d = !c(function() { | |
l(function() {}) | |
}); | |
o(o.S + o.F * (f || d), "Reflect", { | |
construct: function(e, t) { | |
a(e), | |
i(t); | |
var n = arguments.length < 3 ? e : a(arguments[2]); | |
if (d && !f) | |
return l(e, t, n); | |
if (e == n) { | |
switch (t.length) { | |
case 0: | |
return new e; | |
case 1: | |
return new e(t[0]); | |
case 2: | |
return new e(t[0],t[1]); | |
case 3: | |
return new e(t[0],t[1],t[2]); | |
case 4: | |
return new e(t[0],t[1],t[2],t[3]) | |
} | |
var o = [null]; | |
return o.push.apply(o, t), | |
new (s.apply(e, o)) | |
} | |
var c = n.prototype | |
, p = r(u(c) ? c : Object.prototype) | |
, h = Function.apply.call(e, p, t); | |
return u(h) ? h : p | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(6) | |
, r = n(0) | |
, a = n(4) | |
, i = n(24); | |
r(r.S + r.F * n(1)(function() { | |
Reflect.defineProperty(o.f({}, 1, { | |
value: 1 | |
}), 1, { | |
value: 2 | |
}) | |
}), "Reflect", { | |
defineProperty: function(e, t, n) { | |
a(e), | |
t = i(t, !0), | |
a(n); | |
try { | |
return o.f(e, t, n), | |
!0 | |
} catch (e) { | |
return !1 | |
} | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(22).f | |
, a = n(4); | |
o(o.S, "Reflect", { | |
deleteProperty: function(e, t) { | |
var n = r(a(e), t); | |
return !(n && !n.configurable) && delete e[t] | |
} | |
}) | |
} | |
, function(e, t, o) { | |
var r = o(0) | |
, a = o(4) | |
, i = function(e) { | |
this._t = a(e), | |
this._i = 0; | |
var t, n = this._k = []; | |
for (t in e) | |
n.push(t) | |
}; | |
o(62)(i, "Object", function() { | |
var e, t = this, o = t._k; | |
do { | |
if (t._i >= o.length) | |
return { | |
value: n, | |
done: !0 | |
} | |
} while (!((e = o[t._i++])in t._t));return { | |
value: e, | |
done: !1 | |
} | |
}), | |
r(r.S, "Reflect", { | |
enumerate: function(e) { | |
return new i(e) | |
} | |
}) | |
} | |
, function(e, t, o) { | |
function r(e, t) { | |
var o, c, f = arguments.length < 3 ? e : arguments[2]; | |
return l(e) === f ? e[t] : (o = a.f(e, t)) ? u(o, "value") ? o.value : o.get !== n ? o.get.call(f) : n : s(c = i(e)) ? r(c, t, f) : void 0 | |
} | |
var a = o(22) | |
, i = o(28) | |
, u = o(9) | |
, c = o(0) | |
, s = o(2) | |
, l = o(4); | |
c(c.S, "Reflect", { | |
get: r | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(22) | |
, r = n(0) | |
, a = n(4); | |
r(r.S, "Reflect", { | |
getOwnPropertyDescriptor: function(e, t) { | |
return o.f(a(e), t) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(28) | |
, a = n(4); | |
o(o.S, "Reflect", { | |
getPrototypeOf: function(e) { | |
return r(a(e)) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Reflect", { | |
has: function(e, t) { | |
return t in e | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(4) | |
, a = Object.isExtensible; | |
o(o.S, "Reflect", { | |
isExtensible: function(e) { | |
return r(e), | |
!a || a(e) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0); | |
o(o.S, "Reflect", { | |
ownKeys: n(248) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(34) | |
, r = n(46) | |
, a = n(4) | |
, i = n(3).Reflect; | |
e.exports = i && i.ownKeys || function(e) { | |
var t = o.f(a(e)) | |
, n = r.f; | |
return n ? t.concat(n(e)) : t | |
} | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(4) | |
, a = Object.preventExtensions; | |
o(o.S, "Reflect", { | |
preventExtensions: function(e) { | |
r(e); | |
try { | |
return a && a(e), | |
!0 | |
} catch (e) { | |
return !1 | |
} | |
} | |
}) | |
} | |
, function(e, t, o) { | |
function r(e, t, o) { | |
var s, p, h = arguments.length < 4 ? e : arguments[3], v = i.f(f(e), t); | |
if (!v) { | |
if (d(p = u(e))) | |
return r(p, t, o, h); | |
v = l(0) | |
} | |
return c(v, "value") ? !(!1 === v.writable || !d(h)) && (s = i.f(h, t) || l(0), | |
s.value = o, | |
a.f(h, t, s), | |
!0) : v.set !== n && (v.set.call(h, o), | |
!0) | |
} | |
var a = o(6) | |
, i = o(22) | |
, u = o(28) | |
, c = o(9) | |
, s = o(0) | |
, l = o(25) | |
, f = o(4) | |
, d = o(2); | |
s(s.S, "Reflect", { | |
set: r | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(0) | |
, r = n(65); | |
r && o(o.S, "Reflect", { | |
setPrototypeOf: function(e, t) { | |
r.check(e, t); | |
try { | |
return r.set(e, t), | |
!0 | |
} catch (e) { | |
return !1 | |
} | |
} | |
}) | |
} | |
, function(e, t, o) { | |
var r, a, i, u, c = o(78), s = o(37), l = o(3), f = o(16), d = o(44), p = o(0), h = o(2), v = o(17), g = o(40), _ = o(43), y = o(77), b = o(102).set, m = o(253)(), w = o(103), k = o(254), S = o(255), C = l.TypeError, P = l.process, M = l.Promise, I = "process" == d(P), O = function() {}, T = a = w.f, E = !!function() { | |
try { | |
var e = M.resolve(1) | |
, t = (e.constructor = {})[o(5)("species")] = function(e) { | |
e(O, O) | |
} | |
; | |
return (I || "function" == typeof PromiseRejectionEvent) && e.then(O)instanceof t | |
} catch (e) {} | |
}(); | |
c.isIOS && (E = !1); | |
var x = function(e) { | |
var t; | |
return !(!h(e) || "function" != typeof (t = e.then)) && t | |
} | |
, A = function(e, t) { | |
if (!e._n) { | |
e._n = !0; | |
var n = e._c; | |
m(function() { | |
for (var o = e._v, r = 1 == e._s, a = 0; n.length > a; ) | |
!function(t) { | |
var n, a, i = r ? t.ok : t.fail, u = t.resolve, c = t.reject, s = t.domain; | |
try { | |
i ? (r || (2 == e._h && D(e), | |
e._h = 1), | |
!0 === i ? n = o : (s && s.enter(), | |
n = i(o), | |
s && s.exit()), | |
n === t.promise ? c(C("Promise-chain cycle")) : (a = x(n)) ? a.call(n, u, c) : u(n)) : c(o) | |
} catch (e) { | |
c(e) | |
} | |
}(n[a++]); | |
e._c = [], | |
e._n = !1, | |
t && !e._h && j(e) | |
}) | |
} | |
} | |
, j = function(e) { | |
b.call(l, function() { | |
var t, o, r, a = e._v, i = B(e); | |
if (i && (t = k(function() { | |
I ? P.emit("unhandledRejection", a, e) : (o = l.onunhandledrejection) ? o({ | |
promise: e, | |
reason: a | |
}) : (r = l.console) && r.error && r.error("Unhandled promise rejection", a) | |
}), | |
e._h = I || B(e) ? 2 : 1), | |
e._a = n, | |
i && t.e) | |
throw t.v | |
}) | |
} | |
, B = function(e) { | |
if (1 == e._h) | |
return !1; | |
for (var t, n = e._a || e._c, o = 0; n.length > o; ) | |
if (t = n[o++], | |
t.fail || !B(t.promise)) | |
return !1; | |
return !0 | |
} | |
, D = function(e) { | |
b.call(l, function() { | |
var t; | |
I ? P.emit("rejectionHandled", e) : (t = l.onrejectionhandled) && t({ | |
promise: e, | |
reason: e._v | |
}) | |
}) | |
} | |
, R = function(e) { | |
var t = this; | |
t._d || (t._d = !0, | |
t = t._w || t, | |
t._v = e, | |
t._s = 2, | |
t._a || (t._a = t._c.slice()), | |
A(t, !0)) | |
} | |
, N = function(e) { | |
var t, n = this; | |
if (!n._d) { | |
n._d = !0, | |
n = n._w || n; | |
try { | |
if (n === e) | |
throw C("Promise can't be resolved itself"); | |
(t = x(e)) ? m(function() { | |
var o = { | |
_w: n, | |
_d: !1 | |
}; | |
try { | |
t.call(e, f(N, o, 1), f(R, o, 1)) | |
} catch (e) { | |
R.call(o, e) | |
} | |
}) : (n._v = e, | |
n._s = 1, | |
A(n, !1)) | |
} catch (e) { | |
R.call({ | |
_w: n, | |
_d: !1 | |
}, e) | |
} | |
} | |
}; | |
E || (M = function(e) { | |
g(this, M, "Promise", "_h"), | |
v(e), | |
r.call(this); | |
try { | |
e(f(N, this, 1), f(R, this, 1)) | |
} catch (e) { | |
R.call(this, e) | |
} | |
} | |
, | |
r = function(e) { | |
this._c = [], | |
this._a = n, | |
this._s = 0, | |
this._d = !1, | |
this._v = n, | |
this._h = 0, | |
this._n = !1 | |
} | |
, | |
r.prototype = o(39)(M.prototype, { | |
then: function(e, t) { | |
var o = T(y(this, M)); | |
return o.ok = "function" != typeof e || e, | |
o.fail = "function" == typeof t && t, | |
o.domain = I ? P.domain : n, | |
this._c.push(o), | |
this._a && this._a.push(o), | |
this._s && A(this, !1), | |
o.promise | |
}, | |
catch: function(e) { | |
return this.then(n, e) | |
} | |
}), | |
i = function() { | |
var e = new r; | |
this.promise = e, | |
this.resolve = f(N, e, 1), | |
this.reject = f(R, e, 1) | |
} | |
, | |
w.f = T = function(e) { | |
return e === M || e === u ? new i(e) : a(e) | |
} | |
), | |
p(p.G + p.W + p.F * !E, { | |
Promise: M | |
}), | |
o(36)(M, "Promise"), | |
o(38)("Promise"), | |
u = o(30).Promise, | |
p(p.S + p.F * !E, "Promise", { | |
reject: function(e) { | |
var t = T(this); | |
return (0, | |
t.reject)(e), | |
t.promise | |
} | |
}), | |
p(p.S + p.F * (s || !E), "Promise", { | |
resolve: function(e) { | |
return S(s && this === u ? M : this, e) | |
} | |
}), | |
p(p.S + p.F * !(E && o(49)(function(e) { | |
M.all(e).catch(O) | |
})), "Promise", { | |
all: function(e) { | |
var t = this | |
, o = T(t) | |
, r = o.resolve | |
, a = o.reject | |
, i = k(function() { | |
var o = [] | |
, i = 0 | |
, u = 1; | |
_(e, !1, function(e) { | |
var c = i++ | |
, s = !1; | |
o.push(n), | |
u++, | |
t.resolve(e).then(function(e) { | |
s || (s = !0, | |
o[c] = e, | |
--u || r(o)) | |
}, a) | |
}), | |
--u || r(o) | |
}); | |
return i.e && a(i.v), | |
o.promise | |
}, | |
race: function(e) { | |
var t = this | |
, n = T(t) | |
, o = n.reject | |
, r = k(function() { | |
_(e, !1, function(e) { | |
t.resolve(e).then(n.resolve, o) | |
}) | |
}); | |
return r.e && o(r.v), | |
n.promise | |
} | |
}) | |
} | |
, function(e, t, o) { | |
var r = o(3) | |
, a = o(102).set | |
, i = r.MutationObserver || r.WebKitMutationObserver | |
, u = r.process | |
, c = r.Promise | |
, s = "process" == o(20)(u); | |
e.exports = function() { | |
var e, t, o, l = function() { | |
var r, a; | |
for (s && (r = u.domain) && r.exit(); e; ) { | |
a = e.fn, | |
e = e.next; | |
try { | |
a() | |
} catch (r) { | |
throw e ? o() : t = n, | |
r | |
} | |
} | |
t = n, | |
r && r.enter() | |
}; | |
if (s) | |
o = function() { | |
u.nextTick(l) | |
} | |
; | |
else if (i) { | |
var f = !0 | |
, d = document.createTextNode(""); | |
new i(l).observe(d, { | |
characterData: !0 | |
}), | |
o = function() { | |
d.data = f = !f | |
} | |
} else if (c && c.resolve) { | |
var p = c.resolve(); | |
o = function() { | |
p.then(l) | |
} | |
} else | |
o = function() { | |
a.call(r, l) | |
} | |
; | |
return function(r) { | |
var a = { | |
fn: r, | |
next: n | |
}; | |
t && (t.next = a), | |
e || (e = a, | |
o()), | |
t = a | |
} | |
} | |
} | |
, function(e, t) { | |
e.exports = function(e) { | |
try { | |
return { | |
e: !1, | |
v: e() | |
} | |
} catch (e) { | |
return { | |
e: !0, | |
v: e | |
} | |
} | |
} | |
} | |
, function(e, t, n) { | |
var o = n(4) | |
, r = n(2) | |
, a = n(103); | |
e.exports = function(e, t) { | |
if (o(e), | |
r(t) && t.constructor === e) | |
return t; | |
var n = a.f(e); | |
return (0, | |
n.resolve)(t), | |
n.promise | |
} | |
} | |
]), | |
"undefined" != typeof module && module.exports ? module.exports = e : "function" == typeof define && define.amd ? define(function() { | |
return e | |
}) : t.core = e | |
}(1, 1); | |
var Protect = function(e) { | |
function t(o) { | |
if (n[o]) | |
return n[o].exports; | |
var r = n[o] = { | |
i: o, | |
l: !1, | |
exports: {} | |
}; | |
return e[o].call(r.exports, r, r.exports, t), | |
r.l = !0, | |
r.exports | |
} | |
var n = {}; | |
return t.m = e, | |
t.c = n, | |
t.d = function(e, n, o) { | |
t.o(e, n) || Object.defineProperty(e, n, { | |
enumerable: !0, | |
get: o | |
}) | |
} | |
, | |
t.r = function(e) { | |
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { | |
value: "Module" | |
}), | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}) | |
} | |
, | |
t.t = function(e, n) { | |
if (1 & n && (e = t(e)), | |
8 & n) | |
return e; | |
if (4 & n && "object" == typeof e && e && e.__esModule) | |
return e; | |
var o = Object.create(null); | |
if (t.r(o), | |
Object.defineProperty(o, "default", { | |
enumerable: !0, | |
value: e | |
}), | |
2 & n && "string" != typeof e) | |
for (var r in e) | |
t.d(o, r, function(t) { | |
return e[t] | |
} | |
.bind(null, r)); | |
return o | |
} | |
, | |
t.n = function(e) { | |
var n = e && e.__esModule ? function() { | |
return e.default | |
} | |
: function() { | |
return e | |
} | |
; | |
return t.d(n, "a", n), | |
n | |
} | |
, | |
t.o = function(e, t) { | |
return Object.prototype.hasOwnProperty.call(e, t) | |
} | |
, | |
t.p = "", | |
t(t.s = 0) | |
}([function(e, t, n) { | |
var o = n(1) | |
, r = n(2); | |
n(4); | |
var a = n(5); | |
e.exports = { | |
overwriteSetPrototypeOf: r.overwriteSetPrototypeOf, | |
doNotWriteGlobalObjs: r.doNotWriteGlobalObjs, | |
doNotWriteObj: r.doNotWriteObj, | |
globalEsObjs: o.GlobalEsObjs, | |
hijack: a.hijack | |
} | |
} | |
, function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
t.GlobalEsObjs = ["Array", "ArrayBuffer", "AsyncFunction", "Atomics", "Boolean", "DataView", "Date", "Error", "EvalError", "Float32Array", "Float64Array", "Function", "Generator", "GeneratorFunction", "Infinity", "Int16Array", "Int32Array", "Int8Array", "InternalError", "Intl", "Intl.Collator", "Intl.DateTimeFormat", "Intl.NumberFormat", "Iterator", "JSON", "Map", "Math", "NaN", "Number", "Object", "Promise", "Proxy", "RangeError", "ReferenceError", "Reflect", "RegExp", "Set", "SharedArrayBuffer", "String", "Symbol", "SyntaxError", "TypeError", "TypedArray", "URIError", "Uint16Array", "Uint32Array", "Uint8Array", "Uint8ClampedArray", "WeakMap", "WeakSet", "WebAssembly", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "eval", "isFinite", "isNaN", "null", "parseFloat", "parseInt", "undefined", "unescape", "uneval"], | |
t.GlobalWAObjs = ["App", "getApp", "Page", "getCurrentPages", "define", "require", "Reporter", "wx", "Protect", "requirePlugin", "definePlugin"], | |
t.global = function() { | |
return this | |
}() | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.doNotWriteObj = t.doNotWriteGlobalObjs = t.overwriteSetPrototypeOf = void 0; | |
var o = n(1) | |
, r = n(3) | |
, a = o.GlobalEsObjs.concat(o.GlobalWAObjs) | |
, i = function() { | |
Object.defineProperty(o.global.Object, "setPrototypeOf", { | |
value: function(e, t) { | |
e.__proto__ = t | |
}, | |
configurable: !0 | |
}) | |
} | |
, u = function() { | |
try { | |
for (var e = (new Date, | |
0); e < a.length; ++e) { | |
var t = a[e]; | |
if (o.global[t]) { | |
new Date; | |
(0, | |
r.doNotWriteObj)(o.global, t, t, !1) | |
} | |
} | |
} catch (e) {} | |
} | |
, c = function(e, t, n) { | |
return (0, | |
r.doNotWriteObj)(e, t, n, !1) | |
}; | |
t.overwriteSetPrototypeOf = i, | |
t.doNotWriteGlobalObjs = u, | |
t.doNotWriteObj = c | |
} | |
, function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
; | |
t.doNotWriteObj = function e(t, o, r, a) { | |
if (t && o && -1 === o.indexOf("constructor")) { | |
var i = void 0; | |
try { | |
i = t[o] | |
} catch (e) { | |
return | |
} | |
if (i) { | |
var u = Object.getOwnPropertyDescriptor(t, o); | |
if (a || u || "__proto__" === o) { | |
u = u || { | |
enumerable: !!a, | |
configurable: !0 | |
}; | |
var c = void 0 === i ? "undefined" : n(i); | |
if (i && ("function" === c || "object" === c) && (u.configurable && Object.defineProperty(t, o, { | |
get: function() { | |
return i | |
}, | |
set: function(u) { | |
if (this !== t) | |
return e(this, o, r, !0), | |
void (this[o] = u); | |
if (i !== u) | |
if (a) | |
try { | |
i = u | |
} catch (e) { | |
return | |
} | |
else | |
console.error('[non-writable] modification of global variable "' + r + '" is not allowed when using plugins at app.json.'), | |
"object" == (void 0 === Reporter ? "undefined" : n(Reporter)) && (Reporter.reportKeyValue({ | |
key: "GlobalReadOnly", | |
value: r | |
}), | |
Reporter.reportIDKey({ | |
key: "global_objs_readonly" | |
})) | |
}, | |
enumerable: u.enumerable, | |
configurable: !!a && u.configurable | |
}), | |
!a && "__proto__" !== o)) { | |
var s = Object.getOwnPropertyNames(i); | |
"object" === (void 0 === i ? "undefined" : n(i)) && e(i, "__proto__", r + ".__proto__", !1); | |
for (var l = 0; l < s.length; ++l) { | |
var f = s[l]; | |
e(i, f, r + "." + f, !1) | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
, function(e, t) { | |
if ("undefined" == typeof navigator) { | |
try { | |
new Function("const GeneratorFunction = Object.getPrototypeOf(function *() {}).constructor; const f = new GeneratorFunction('', 'console.log(0)'); f().__proto__.__proto__.next = () => {};")() | |
} catch (e) {} | |
try { | |
new Function("const AsyncFunctionProto = Object.getPrototypeOf(async function() {}); Object.defineProperty(AsyncFunctionProto, 'constructor', { value: function(){} });")() | |
} catch (e) {} | |
} | |
} | |
, function(e, t, n) { | |
(function(e) { | |
function o() { | |
var t = !(arguments.length > 0 && void 0 !== arguments[0]) || arguments[0]; | |
if ("undefined" != typeof Function && !i.default.karmaTest) { | |
var n = function() { | |
if (arguments.length > 0 && "return this" === arguments[arguments.length - 1]) | |
return function() { | |
return e | |
} | |
}; | |
e = {}, | |
n.prototype = Function.prototype, | |
Function.prototype.constructor = n, | |
Function = n | |
} | |
var o = function() { | |
return this | |
}(); | |
if ("undefined" != typeof eval && (eval = void 0), | |
"undefined" != typeof setTimeout && t) { | |
var a = setTimeout; | |
setTimeout = function(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; | |
if ("function" != typeof e) | |
throw new TypeError("setTimetout expects a function as first argument but got " + (void 0 === e ? "undefined" : r(e)) + "."); | |
var n = Reporter.surroundThirdByTryCatch(e, "at setTimeout callback function") | |
, i = [].slice.call(arguments, 2); | |
return a(function() { | |
n.apply(o, i) | |
}, t) | |
} | |
; | |
var u = setInterval; | |
setInterval = function(e, t) { | |
if ("function" != typeof e) | |
throw new TypeError("setInterval expects a function as first argument but got " + (void 0 === e ? "undefined" : r(e)) + "."); | |
var n = Reporter.surroundThirdByTryCatch(e, "at setInterval callback function") | |
, a = [].slice.call(arguments, 2); | |
return u(function() { | |
n.apply(o, a) | |
}, t) | |
} | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.hijack = void 0; | |
var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
, a = n(7) | |
, i = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(a); | |
t.hijack = o | |
} | |
).call(this, n(6)) | |
} | |
, function(e, t) { | |
var n; | |
n = function() { | |
return this | |
}(); | |
try { | |
n = n || Function("return this")() || (0, | |
eval)("this") | |
} catch (e) { | |
"object" == typeof window && (n = window) | |
} | |
e.exports = n | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(8) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, a = void 0; | |
a = r.default.__wxConfig ? r.default.__wxConfig : __wxConfig, | |
a.onReady(function() { | |
Object.assign(a, __wxConfig) | |
}), | |
t.default = a | |
} | |
, function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var n = void 0; | |
n = "undefined" != typeof NativeGlobal ? NativeGlobal : {}, | |
t.default = n | |
} | |
]) | |
, Reporter = function(e) { | |
function t(o) { | |
if (n[o]) | |
return n[o].exports; | |
var r = n[o] = { | |
i: o, | |
l: !1, | |
exports: {} | |
}; | |
return e[o].call(r.exports, r, r.exports, t), | |
r.l = !0, | |
r.exports | |
} | |
var n = {}; | |
return t.m = e, | |
t.c = n, | |
t.d = function(e, n, o) { | |
t.o(e, n) || Object.defineProperty(e, n, { | |
enumerable: !0, | |
get: o | |
}) | |
} | |
, | |
t.r = function(e) { | |
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { | |
value: "Module" | |
}), | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}) | |
} | |
, | |
t.t = function(e, n) { | |
if (1 & n && (e = t(e)), | |
8 & n) | |
return e; | |
if (4 & n && "object" == typeof e && e && e.__esModule) | |
return e; | |
var o = Object.create(null); | |
if (t.r(o), | |
Object.defineProperty(o, "default", { | |
enumerable: !0, | |
value: e | |
}), | |
2 & n && "string" != typeof e) | |
for (var r in e) | |
t.d(o, r, function(t) { | |
return e[t] | |
} | |
.bind(null, r)); | |
return o | |
} | |
, | |
t.n = function(e) { | |
var n = e && e.__esModule ? function() { | |
return e.default | |
} | |
: function() { | |
return e | |
} | |
; | |
return t.d(n, "a", n), | |
n | |
} | |
, | |
t.o = function(e, t) { | |
return Object.prototype.hasOwnProperty.call(e, t) | |
} | |
, | |
t.p = "", | |
t(t.s = 0) | |
}([function(e, t, n) { | |
function o(e) { | |
void 0 !== WeixinJSBridge ? e() : "undefined" != typeof document && document.addEventListener("WeixinJSBridgeReady", e, !1) | |
} | |
function r() { | |
var e = arguments; | |
o(function() { | |
WeixinJSBridge.invoke.apply(WeixinJSBridge, e) | |
}) | |
} | |
function a() { | |
var e = arguments; | |
o(function() { | |
WeixinJSBridge.publish.apply(WeixinJSBridge, e) | |
}) | |
} | |
function i() { | |
return "undefined" != typeof wx ? wx.version && wx.version.version || "" : "" | |
} | |
function u() { | |
!p || p.length <= 0 || (r("reportKeyValue", { | |
dataArray: p | |
}), | |
p = []) | |
} | |
function c() { | |
!h || h.length <= 0 || (r("reportIDKey", { | |
dataArray: h | |
}), | |
h = []) | |
} | |
function s() { | |
!v || v.length <= 0 || (r("systemLog", { | |
dataArray: v | |
}), | |
v = []) | |
} | |
function l() { | |
return "undefined" != typeof window && window.navigator ? window.navigator.userAgent.indexOf("appservice") > -1 ? "devtools" : window.navigator.userAgent.toLowerCase().indexOf("android") > -1 ? "android" : "ios" : "android" === __wxConfig.platform ? "android" : "devtools" === __wxConfig.platform ? "devtools" : "ios" | |
} | |
function f(e) { | |
return function() { | |
try { | |
return e.apply(e, arguments) | |
} catch (e) { | |
console.error("reporter error:" + e.message) | |
} | |
} | |
} | |
var d = n(1) | |
, p = [] | |
, h = [] | |
, v = [] | |
, g = 0 | |
, _ = 0 | |
, y = 0 | |
, b = 0 | |
, m = 0 | |
, w = {} | |
, k = {} | |
, S = {} | |
, C = "ios" === l() | |
, P = (l(), | |
function() {} | |
) | |
, M = function() {} | |
, I = "" | |
, O = "" | |
, T = "" | |
, E = "" | |
, x = -1 | |
, A = d.RunType.APP; | |
"undefined" != typeof __wxConfig && __wxConfig.onReady(function() { | |
void 0 !== __wxConfig.appType && (x = __wxConfig.appType) | |
}); | |
var j = { | |
surroundThirdByTryCatch: function(e, t) { | |
var n = ""; | |
return T && (n = "at " + T + " " + E + " function;"), | |
function() { | |
var o = void 0; | |
try { | |
var r = Date.now(); | |
o = e.apply(e, arguments); | |
var a = Date.now() - r; | |
a > 1e3 && j.slowReport({ | |
key: "apiCallback", | |
cost: a, | |
extend: n + t | |
}) | |
} catch (e) { | |
j.thirdErrorReport({ | |
error: e, | |
extend: n + t | |
}) | |
} | |
return o | |
} | |
}, | |
slowReport: function(e) { | |
var t = e.key | |
, n = e.cost | |
, o = e.extend | |
, r = e.force | |
, a = d.SlowValueType[t] | |
, i = Date.now(); | |
if (a && (r || !(i - m < 500)) && !(Object.keys(S).length > 50 || (S[o] || (S[o] = 0), | |
++S[o] > 3))) { | |
m = i; | |
var u = n + "," + encodeURIComponent(o) + "," + a + "," + j.getAppType(); | |
j.reportKeyValue({ | |
key: "Slow", | |
value: u, | |
force: !0 | |
}) | |
} | |
}, | |
speedReport: function(e) { | |
var t = e.key | |
, n = e.data | |
, o = e.timeMark | |
, r = e.force | |
, a = d.SpeedValueType[t] | |
, i = Date.now() | |
, u = 0 | |
, c = o.nativeTime; | |
if (a && (r || !(i - (w[a] || 0) < 500)) && o.startTime && o.endTime && (1 != a && 2 != a || c)) { | |
n && (u = JSON.stringify(n).length), | |
w[a] = i; | |
var s = a + "," + o.startTime + "," + c + "," + c + "," + o.endTime + "," + u + "," + j.getAppType(); | |
j.reportKeyValue({ | |
key: "Speed", | |
value: s, | |
force: !0 | |
}) | |
} | |
}, | |
reportKeyValue: function(e) { | |
var t = e.key | |
, n = e.value | |
, o = e.force; | |
d.KeyValueType[t] && (!o && Date.now() - g < 50 || (g = Date.now(), | |
p.push({ | |
key: d.KeyValueType[t], | |
value: n | |
}), | |
p.length >= 20 && u())) | |
}, | |
reportIDKey: function(e) { | |
var t = e.id | |
, n = e.key | |
, o = e.force; | |
d.IDKeyType[n] && (!o && Date.now() - _ < 20 || (_ = Date.now(), | |
h.push({ | |
id: t || (C ? "356" : "358"), | |
key: d.IDKeyType[n], | |
value: 1 | |
}), | |
h.length >= 1 && c())) | |
}, | |
thirdErrorReport: function(e) { | |
var t = e.key | |
, n = void 0 === t ? A : t | |
, o = e.error | |
, r = e.extend | |
, a = e.triggerErrorCallback | |
, i = void 0 === a || a; | |
j.errorReport({ | |
key: d.ThirdScriptErrorKey[n], | |
error: o, | |
extend: r, | |
triggerErrorCallback: i, | |
isThirdScriptError: !0 | |
}) | |
}, | |
errorReport: function(e) { | |
var t = e.key | |
, n = e.error | |
, o = e.extend | |
, r = e.isThirdScriptError | |
, l = void 0 !== r && r | |
, f = e.triggerErrorCallback | |
, p = void 0 === f || f; | |
if (d.ErrorType[t]) { | |
"function" == typeof __wxSourceMapRetrace__ && (n = __wxSourceMapRetrace__(n)); | |
var h = o ? n.message + ";" + o : n.message | |
, v = t + "\n" + h + "\n" + n.stack; | |
if (console.error(v), | |
!(v.toLowerCase().indexOf("subcontext.js") >= 0 || ("undefined" != typeof window && void 0 !== window.__webviewId__ ? a("WEBVIEW_ERROR_MSG", { | |
data: { | |
msg: v | |
}, | |
options: { | |
timestamp: Date.now() | |
} | |
}) : p && (j.triggerErrorMessage(v), | |
l && j.triggerThirdErrorMessage(v)), | |
Object.keys(k).length > 50))) { | |
var g = d.ErrorType[t] + "," + n.name + "," + encodeURIComponent(h) + "," + encodeURIComponent(n.stack) + "," + encodeURIComponent(i()) + "," + j.getAppType(); | |
if (k[g] || (k[g] = 0), | |
k[g]++, | |
!(l && k[g] > 3 || k[g] > 3) && (j.reportIDKey({ | |
key: t, | |
force: !0 | |
}), | |
j.reportKeyValue({ | |
key: "Error", | |
value: g, | |
force: !0 | |
}), | |
c(), | |
u(), | |
s(), | |
__wxConfig.karmaTest)) | |
throw n | |
} | |
} | |
}, | |
log: function(e, t) { | |
e && "string" == typeof e && (!t && Date.now() - y < 50 || (y = Date.now(), | |
v.push(e + ""), | |
v.length >= 50 && s())) | |
}, | |
submit: function() { | |
Date.now() - b < 50 || (b = Date.now(), | |
c(), | |
u(), | |
s()) | |
}, | |
registerErrorListener: function(e) { | |
"function" == typeof e && (P = e) | |
}, | |
unRegisterErrorListener: function() { | |
P = function() {} | |
}, | |
registerThirdErrorListener: function(e) { | |
"function" == typeof e && (M = e) | |
}, | |
unRegisterThirdErrorListener: function() { | |
M = func | |
}, | |
triggerErrorMessage: function(e) { | |
I != e && (I = e, | |
setTimeout(function() { | |
try { | |
P(e) | |
} catch (e) { | |
console.error(e.message, "at onError callback function") | |
} | |
}, 0)) | |
}, | |
triggerThirdErrorMessage: function(e) { | |
O != e && (O = e, | |
setTimeout(function() { | |
try { | |
M(e) | |
} catch (e) { | |
console.error(e.message, "at onError callback function") | |
} | |
}, 0)) | |
}, | |
setAsWidget: function() { | |
A = d.RunType.WIDGET | |
}, | |
setAsGame: function() { | |
A = d.RunType.GAME | |
}, | |
setAsGameSubContext: function() { | |
A = d.RunType.GAME_SUBCONTEXT | |
}, | |
getAppType: function() { | |
return -1 === x ? 0 : x + 1e3 | |
} | |
} | |
, B = {}; | |
for (var D in j) | |
!function(e) { | |
B.__defineGetter__(e, function() { | |
return f(j[e]) | |
}) | |
}(D); | |
B.__defineSetter__("__route__", function(e) { | |
T = e | |
}), | |
B.__defineSetter__("__method__", function(e) { | |
E = e | |
}), | |
B.RunType = d.RunType, | |
"undefined" != typeof window && (window.onbeforeunload = function() { | |
j.submit() | |
} | |
), | |
e.exports = B | |
} | |
, function(e, t) { | |
function n(e, t, n) { | |
return t in e ? Object.defineProperty(e, t, { | |
value: n, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0 | |
}) : e[t] = n, | |
e | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o, r = t.RunType = { | |
APP: 0, | |
WIDGET: 1, | |
GAME: 2, | |
GAME_SUBCONTEXT: 3 | |
}; | |
t.IDKeyType = { | |
login: 1, | |
login_cancel: 2, | |
login_fail: 3, | |
request_fail: 4, | |
connectSocket_fail: 5, | |
closeSocket_fail: 6, | |
sendSocketMessage_fail: 7, | |
uploadFile_fail: 8, | |
downloadFile_fail: 9, | |
redirectTo_fail: 10, | |
navigateTo_fail: 11, | |
navigateBack_fail: 12, | |
appServiceSDKScriptError: 13, | |
webviewSDKScriptError: 14, | |
jsEnginScriptError: 15, | |
thirdScriptError: 16, | |
webviewScriptError: 17, | |
exparserScriptError: 18, | |
widgetEnginScriptError: 113, | |
widgetThirdScriptError: 114, | |
gameSDKScriptError: 135, | |
gameSubContextSDKScriptError: 136, | |
gameThirdScriptError: 137, | |
gameSubContextThirdScriptError: 138, | |
startRecord: 19, | |
startRecord_fail: 20, | |
getLocation: 21, | |
getLocation_fail: 22, | |
chooseLocation: 23, | |
chooseLocation_fail: 24, | |
openAddress: 25, | |
openAddress_fail: 26, | |
openLocation: 27, | |
openLocation_fail: 28, | |
makePhoneCall: 29, | |
makePhoneCall_fail: 30, | |
operateWXData: 31, | |
operateWXData_fail: 32, | |
checkLogin: 33, | |
checkLogin_fail: 34, | |
refreshSession: 35, | |
refreshSession_fail: 36, | |
chooseVideo: 37, | |
chooseVideo_fail: 38, | |
chooseImage: 39, | |
chooseImage_fail: 40, | |
verifyPaymentPassword: 41, | |
verifyPaymentPassword_fail: 42, | |
requestPayment: 43, | |
requestPayment_fail: 44, | |
bindPaymentCard: 45, | |
bindPaymentCard_fail: 46, | |
requestPaymentToBank: 47, | |
requestPaymentToBank_fail: 48, | |
openDocument: 49, | |
openDocument_fail: 50, | |
chooseContact: 51, | |
chooseContact_fail: 52, | |
operateMusicPlayer: 53, | |
operateMusicPlayer_fail: 54, | |
getMusicPlayerState_fail: 55, | |
playVoice_fail: 56, | |
setNavigationBarTitle_fail: 57, | |
switchTab_fail: 58, | |
getImageInfo_fail: 59, | |
enableCompass_fail: 60, | |
enableAccelerometer_fail: 61, | |
getStorage_fail: 62, | |
setStorage_fail: 63, | |
clearStorage_fail: 64, | |
removeStorage_fail: 65, | |
getStorageInfo_fail: 66, | |
getStorageSync_fail: 67, | |
setStorageSync_fail: 68, | |
addCard_fail: 69, | |
openCard_fail: 70, | |
openSetting_fail: 71, | |
reLaunch_fail: 72, | |
getClipboardData_fail: 73, | |
setClipboardData_fail: 74, | |
showShareMenu_fail: 75, | |
hideShareMenu_fail: 76, | |
showToast_fail: 77, | |
hideToast_fail: 78, | |
openBluetoothAdapter_fail: 79, | |
closeBluetoothAdapter_fail: 80, | |
getBluetoothAdapterState_fail: 81, | |
startBluetoothDevicesDiscovery_fail: 82, | |
stopBluetoothDevicesDiscovery_fail: 83, | |
getBluetoothDevices_fail: 84, | |
getConnectedBluetoothDevices_fail: 85, | |
createBLEConnection_fail: 86, | |
closeBLEConnection_fail: 87, | |
getBLEDeviceServices_fail: 88, | |
getBLEDeviceCharacteristics_fail: 89, | |
notifyBLECharacteristicValueChanged_fail: 90, | |
readBLECharacteristicValue_fail: 91, | |
checkIsSupportFacialRecognition_fail: 92, | |
startFacialRecognitionVerify_fail: 93, | |
startFacialRecognitionVerifyAndUploadVideo_fail: 94, | |
startBeaconDiscovery_fail: 95, | |
stopBeaconDiscovery_fail: 96, | |
getBeacons_fail: 97, | |
getSetting_fail: 98, | |
setScreenBrightness_fail: 99, | |
getScreenBrightness_fail: 100, | |
vibrateShort_fail: 101, | |
vibrateLong_fail: 102, | |
shareAppMessage: 103, | |
shareAppMessage_fail: 104, | |
shareAppMessage_cancel: 105, | |
shareAppMessageDirectly: 106, | |
shareAppMessageDirectly_fail: 107, | |
shareAppMessageDirectly_cancel: 108, | |
sendBizRedPacket_fail: 109, | |
addPhoneContact_fail: 110, | |
saveImageToPhotosAlbum_fail: 111, | |
saveVideoToPhotosAlbum_fail: 112, | |
setTopBarText_fail: 115, | |
setNavigationBarRightButton_fail: 116, | |
setEnableDebug_fail: 117, | |
captureScreen_fail: 118, | |
setKeepScreenOn_fail: 119, | |
createRequestTask: 120, | |
createRequestTask_fail: 121, | |
createDownloadTask: 122, | |
createDownloadTask_fail: 123, | |
createUploadTask: 124, | |
createUploadTask_fail: 125, | |
checkIsSupportSoterAuthentication_fail: 126, | |
startSoterAuthentication_fail: 127, | |
navigateToMiniProgram_fail: 128, | |
navigateBackMiniProgram_fail: 129, | |
openDeliveryList_fail: 130, | |
setNavigationBarColor_fail: 131, | |
setStatusBarStyle_fail: 132, | |
getFileInfo_fail: 133, | |
global_objs_readonly: 134, | |
adData_error: 140, | |
adExposureReport_fail: 141, | |
adClickReport_fail: 142, | |
adNavigateToMiniProgram_fail: 143, | |
adOpenUrl_fail: 144, | |
initGameIsolatedContext: 145, | |
initGameIsolatedContext_fail: 146, | |
initGameOpenDataContext: 147, | |
initGameOpenDataContext_fail: 148, | |
initAppIsolatedContext: 149, | |
initAppIsolatedContext_fail: 150, | |
adFollowReport_fail: 151, | |
adAddContact_fail: 152, | |
adDownloadAppInternal_fail: 153, | |
adGetInstallState_fail: 154, | |
adQueryDownloadTask_fail: 155, | |
adAddDownloadTaskStraight_fail: 156, | |
adPauseDownloadTask_fail: 157, | |
adResumeDownloadTask_fail: 158, | |
adInstallDownloadTask_fail: 159, | |
pluginDisplayInPage: 160, | |
functionalPageSuccess: 161, | |
functionalPageFail: 162, | |
functionalPageReject: 163, | |
clientRestoreWebview_fail: 200 | |
}, | |
t.KeyValueType = { | |
Speed: 13544, | |
Error: 13582, | |
Slow: 13968, | |
Clipboard: 14367, | |
NetworkAPI: 14480, | |
Display: 15496, | |
WebviewRecycle: 15352, | |
WebviewRestore: 15353, | |
PluginDisplay: 15364, | |
functionalPageOperation: 15804, | |
APIRecycle: 15649, | |
GameReportKV: 15677, | |
RecycleView: 15864 | |
}, | |
t.SpeedValueType = { | |
webview2AppService: 1, | |
appService2Webview: 2, | |
funcReady: 3, | |
firstGetData: 4, | |
firstRenderTime: 5, | |
reRenderTime: 6, | |
forceUpdateRenderTime: 7, | |
appRoute2newPage: 8, | |
newPage2pageReady: 9, | |
thirdScriptRunTime: 10, | |
pageframe: 11, | |
WAWebview: 12, | |
WAWidget: 13, | |
widgetCanvasReady: 14, | |
widgetFirstDataPush: 15 | |
}, | |
t.SlowValueType = { | |
apiCallback: 1, | |
pageInvoke: 2, | |
widgetInvoke: 3 | |
}, | |
t.ErrorType = { | |
appServiceSDKScriptError: 1, | |
webviewSDKScriptError: 2, | |
jsEnginScriptError: 3, | |
thirdScriptError: 4, | |
webviewScriptError: 5, | |
exparserScriptError: 6, | |
widgetEnginScriptError: 7, | |
widgetThirdScriptError: 8, | |
gameSDKScriptError: 10, | |
gameSubContextSDKScriptError: 12, | |
gameThirdScriptError: 13, | |
gameSubContextThirdScriptError: 14 | |
}, | |
t.ThirdScriptErrorKey = (o = {}, | |
n(o, r.APP, "thirdScriptError"), | |
n(o, r.WIDGET, "widgetThirdScriptError"), | |
n(o, r.GAME, "gameThirdScriptError"), | |
n(o, r.GAME_SUBCONTEXT, "gameSubContextThirdScriptError"), | |
o) | |
} | |
]) | |
, __subContextEngine__ = function(e) { | |
function t(o) { | |
if (n[o]) | |
return n[o].exports; | |
var r = n[o] = { | |
exports: {}, | |
id: o, | |
loaded: !1 | |
}; | |
return e[o].call(r.exports, r, r.exports, t), | |
r.loaded = !0, | |
r.exports | |
} | |
var n = {}; | |
return t.m = e, | |
t.c = n, | |
t.p = "", | |
t(0) | |
}([function(e, t, n) { | |
var o = n(1) | |
, r = n(4) | |
, a = n(5) | |
, i = n(3) | |
, u = n(6); | |
n(7); | |
var c = function() { | |
return this | |
}() | |
, s = function(e) { | |
for (var t in e) | |
c[t] = e[t]; | |
__wxConfig.onReady(function() { | |
for (var t in e) | |
c[t] = e[t]; | |
(0, | |
i.isIsolateContext)() && (0, | |
i.callInitFunc)(function() { | |
(0, | |
i.freezeGlobal)(), | |
(0, | |
u.addToPool)((0, | |
o.getAppContext)()), | |
(0, | |
o.initAppContext)(e) | |
}, "initAppIsolatedContext"), | |
!(0, | |
i.isIsolateContext)() && __wxConfig.plugins && (Protect.overwriteSetPrototypeOf(), | |
Protect.doNotWriteGlobalObjs()) | |
}) | |
} | |
, l = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
i.isIsolateContext)() && (0, | |
i.callInitFunc)(function() { | |
(0, | |
i.freezeGlobal)(), | |
(0, | |
u.addToPool)((0, | |
r.getGameContext)()), | |
(0, | |
r.initGameContext)(e.game) | |
}, "initGameIsolatedContext"), | |
(0, | |
i.callInitFunc)(function() { | |
(0, | |
u.addToPool)((0, | |
a.getGameOpenDataContext)()), | |
(0, | |
a.initGameOpenDataContext)(e.gameOpenData) | |
}, "initGameOpenDataContext") | |
}; | |
e.exports = { | |
initAppRelatedContexts: s, | |
initGameRelatedContexts: l, | |
getAppContext: o.getAppContext, | |
getGameContext: r.getGameContext, | |
getGameOpenDataContext: a.getGameOpenDataContext, | |
isIsolateContext: i.isIsolateContext | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getAppContext = t.initAppContext = void 0; | |
var o = n(2) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, a = n(3) | |
, i = new r.default({ | |
name: "app", | |
entry: "app-service.js", | |
secure: !1 | |
}) | |
, u = (0, | |
a.surroundByTryCatchFactory)("appServiceSDKScriptError", function(e, t) { | |
var n = t.moduleName; | |
"string" != typeof n && console.error("SubContext onSubPackageReady error: moduleName is empty"), | |
n.endsWith("/") || (n += "/"), | |
i.evaluateScriptFile(n + "app-service.js") | |
}) | |
, c = function() { | |
var e = new Safeway(i) | |
, t = { | |
console: Object.assign({ | |
group: function() {}, | |
groupEnd: function() {} | |
}, console), | |
setTimeout: setTimeout, | |
clearTimeout: clearTimeout, | |
setInterval: setInterval, | |
clearInterval: clearInterval, | |
safeway: e, | |
__wxConfig: __wxConfig, | |
Reporter: Reporter | |
}; | |
e.onSubpackageReady(u), | |
i.setExportEnv(t), | |
i.init() | |
} | |
, s = function() { | |
return i | |
}; | |
t.initAppContext = c, | |
t.getAppContext = s | |
} | |
, function(e, t) { | |
function n(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}() | |
, r = {} | |
, a = {} | |
, i = {} | |
, u = {} | |
, c = {} | |
, s = {} | |
, l = void 0 | |
, f = 0; | |
JSContext.subscribe("subContextMessage", function(e, t) { | |
var n = i[t]; | |
n && n.__onMessageHandler(e) | |
}), | |
JSContext.subscribe("subContextReady", function(e, t) { | |
l && (l.__onReadyHandler(t, e), | |
l = void 0) | |
}); | |
var d = function(e) { | |
var t = JSContext.create(e); | |
return t <= 0 && setTimeout(function() {}, 0), | |
t | |
} | |
, p = function(e, t) { | |
Object.defineProperty(this, e, { | |
value: t, | |
writable: !1, | |
configurable: !1 | |
}) | |
} | |
, h = function() { | |
var e = this; | |
void 0 !== a[this.__guid__] && (s[this.__guid__].forEach(function(t) { | |
e.postMessage(t) | |
}), | |
s[this.__guid__] = []) | |
} | |
, v = function() { | |
function e(t) { | |
var o = t.name | |
, r = t.entry | |
, a = t.secure | |
, i = void 0 === a || a | |
, u = t.env | |
, l = void 0 === u ? {} : u; | |
n(this, e), | |
p.call(this, "__name__", o), | |
p.call(this, "__guid__", f++), | |
p.call(this, "__entry__", r), | |
p.call(this, "__secure__", i), | |
this.contextGlobal = function() { | |
return this | |
}(), | |
this.setExportEnv(l), | |
c[this.__guid__] = [], | |
s[this.__guid__] = [] | |
} | |
return o(e, [{ | |
key: "init", | |
value: function() { | |
l = this; | |
var e = d.call(this, this.__entry__); | |
r[this.__guid__] = e | |
} | |
}, { | |
key: "onMessage", | |
value: function(e) { | |
var t = this; | |
if (this.__onMsgCallback = e, | |
"function" == typeof this.__onMsgCallback) { | |
c[this.__guid__].forEach(function(e) { | |
t.__onMsgCallback(e) | |
}), | |
c[this.__guid__] = [] | |
} | |
} | |
}, { | |
key: "postMessage", | |
value: function(e) { | |
var t = a[this.__guid__]; | |
if (void 0 !== t) | |
JSContext.publish("mainContextMessage", e, [t]); | |
else { | |
s[this.__guid__].push(e) | |
} | |
} | |
}, { | |
key: "onInitReady", | |
value: function(e) { | |
this.__onInitReadyCallbacks = this.__onInitReadyCallbacks || [], | |
this.__onInitReadyCallbacks.push(e) | |
} | |
}, { | |
key: "setExportEnv", | |
value: function(e) { | |
e.contextName = this.__name__, | |
e.contextSecure = this.__secure__, | |
u[this.__guid__] = e | |
} | |
}, { | |
key: "evaluateScriptFile", | |
value: function(e) { | |
var t = r[this.__guid__]; | |
if (void 0 !== t) { | |
var n = JSContext.evaluateScriptFile(t, e); | |
if (n <= 0) | |
throw new Error("SubContext evaluateScriptFile failed: error code " + n) | |
} | |
} | |
}, { | |
key: "destroy", | |
value: function() { | |
var e = r[this.__guid__] | |
, t = a[this.__guid__]; | |
e > 0 && (JSContext.publish("subContextDestroy", {}, [t]), | |
JSContext.destroy(e)), | |
delete i[t], | |
delete r[this.__guid__], | |
delete a[this.__guid__], | |
delete u[this.__guid__], | |
delete c[this.__guid__], | |
delete s[this.__guid__], | |
delete this.__guid__, | |
delete this.contextGlobal | |
} | |
}, { | |
key: "__onMessageHandler", | |
value: function(e) { | |
if ("function" == typeof this.__onMsgCallback) | |
this.__onMsgCallback(e); | |
else { | |
c[this.__guid__].push(e) | |
} | |
} | |
}, { | |
key: "__onReadyHandler", | |
value: function(e, t) { | |
i[e] = this, | |
a[this.__guid__] = e, | |
this.contextGlobal = t.contextGlobal; | |
var n = u[this.__guid__]; | |
n && JSContext.publish("subContextEnvReady", n, [e], !0), | |
this.__onInitReadyCallbacks && (this.__onInitReadyCallbacks.forEach(function(e) { | |
e(t) | |
}), | |
delete this.__onInitReadyCallbacks), | |
delete this.__onReadyHandler, | |
h.call(this) | |
} | |
}]), | |
e | |
}(); | |
t.default = v | |
} | |
, function(e, t) { | |
function n(e) { | |
return Object.freeze(e), | |
Object.getOwnPropertyNames(e).forEach(function(t) { | |
var r = void 0; | |
try { | |
r = e[t] | |
} catch (e) {} | |
"object" !== (void 0 === r ? "undefined" : o(r)) && "function" != typeof r || Object.isFrozen(r) || n(r) | |
}), | |
e | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
; | |
t.deepFreeze = n; | |
t.isIsolateContext = function() { | |
return "undefined" != typeof __wxConfig && __wxConfig.isIsolateContext | |
} | |
, | |
t.freezeGlobal = function() { | |
var e = function() { | |
return this | |
}(); | |
Protect.globalEsObjs.concat(["console"]).forEach(function(t) { | |
e[t] && (n(e[t]), | |
Object.defineProperty(e, t, { | |
value: e[t], | |
configurable: !1, | |
writable: !1 | |
})) | |
}) | |
} | |
, | |
t.callInitFunc = function(e, t) { | |
Reporter.reportIDKey({ | |
key: t | |
}); | |
try { | |
e() | |
} catch (e) { | |
Reporter.reportIDKey({ | |
key: t + "_fail", | |
force: !0 | |
}); | |
var n = t.indexOf("initGame") >= 0 ? "gameSDKScriptError" : "appServiceSDKScriptError"; | |
Reporter.errorReport({ | |
key: n, | |
error: e, | |
extend: "" | |
}) | |
} | |
} | |
, | |
t.surroundByTryCatchFactory = function(e, t) { | |
return function() { | |
try { | |
return t.apply(t, arguments) | |
} catch (t) { | |
Reporter.errorReport({ | |
key: e, | |
error: t, | |
extend: "" | |
}) | |
} | |
} | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getGameContext = t.initGameContext = void 0; | |
var o = n(2) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, a = new r.default({ | |
name: "game", | |
entry: "game.js", | |
secure: !1 | |
}) | |
, i = function(e) { | |
e.__wxConfig = __wxConfig, | |
a.setExportEnv(e), | |
a.init() | |
} | |
, u = function() { | |
return a | |
}; | |
t.initGameContext = i, | |
t.getGameContext = u | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getGameOpenDataContext = t.initGameOpenDataContext = void 0; | |
var o = n(2) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, a = new r.default({ | |
name: "gameopendata", | |
entry: "subContext.js", | |
secure: !0 | |
}) | |
, i = function(e) { | |
e.__wxConfig = __wxConfig, | |
a.setExportEnv(e), | |
a.init() | |
} | |
, u = function() { | |
return a | |
}; | |
t.initGameOpenDataContext = i, | |
t.getGameOpenDataContext = u | |
} | |
, function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var n = []; | |
t.addToPool = function(e) { | |
n.push(e) | |
} | |
, | |
t.getPool = function() { | |
return n | |
} | |
} | |
, function(e, t, n) { | |
var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
, r = n(6); | |
__wxConfig.onReady(function() { | |
"undefined" != typeof __wxSourceMap && (__wxSourceMap.get = function(e) { | |
if (__wxSourceMap[e]) | |
return __wxSourceMap[e]; | |
for (var t = (0, | |
r.getPool)(), n = 0; n < t.length; n++) { | |
var a = t[n] | |
, i = a.contextGlobal.__wxSourceMap; | |
if ("object" === (void 0 === i ? "undefined" : o(i)) && i[e]) { | |
var u = void 0; | |
try { | |
u = JSON.parse(JSON.stringify(i[e])) | |
} catch (e) { | |
console.error("[SourceMap] clone soucemap failed.") | |
} | |
return u | |
} | |
} | |
} | |
) | |
}) | |
} | |
]) | |
, Safeway = function(e) { | |
function t(o) { | |
if (n[o]) | |
return n[o].exports; | |
var r = n[o] = { | |
i: o, | |
l: !1, | |
exports: {} | |
}; | |
return e[o].call(r.exports, r, r.exports, t), | |
r.l = !0, | |
r.exports | |
} | |
var n = {}; | |
return t.m = e, | |
t.c = n, | |
t.d = function(e, n, o) { | |
t.o(e, n) || Object.defineProperty(e, n, { | |
enumerable: !0, | |
get: o | |
}) | |
} | |
, | |
t.r = function(e) { | |
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { | |
value: "Module" | |
}), | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}) | |
} | |
, | |
t.t = function(e, n) { | |
if (1 & n && (e = t(e)), | |
8 & n) | |
return e; | |
if (4 & n && "object" == typeof e && e && e.__esModule) | |
return e; | |
var o = Object.create(null); | |
if (t.r(o), | |
Object.defineProperty(o, "default", { | |
enumerable: !0, | |
value: e | |
}), | |
2 & n && "string" != typeof e) | |
for (var r in e) | |
t.d(o, r, function(t) { | |
return e[t] | |
} | |
.bind(null, r)); | |
return o | |
} | |
, | |
t.n = function(e) { | |
var n = e && e.__esModule ? function() { | |
return e.default | |
} | |
: function() { | |
return e | |
} | |
; | |
return t.d(n, "a", n), | |
n | |
} | |
, | |
t.o = function(e, t) { | |
return Object.prototype.hasOwnProperty.call(e, t) | |
} | |
, | |
t.p = "", | |
t(t.s = 0) | |
}([function(e, t, n) { | |
function o(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function r(e, t, n) { | |
for (var o = !(arguments.length > 3 && void 0 !== arguments[3]) || arguments[3], r = Object.keys(e), a = 0; a < r.length; a++) { | |
var u = r[a] | |
, c = e[u]; | |
if ("function" != typeof c) | |
throw new Error("Export value of Safeway must be a function, key " + u + " func " + (void 0 === c ? "undefined" : i(c))); | |
n && void 0 !== __subContextEngine__ && __subContextEngine__.isIsolateContext() ? t[u] = new f.default(n,c,{ | |
cloneArgs: o | |
}) : t[u] = c | |
} | |
} | |
function a(e) { | |
var t = (0, | |
u.createBridge)() | |
, n = (0, | |
c.createWorker)(); | |
r(t, t, e, { | |
cloneArgs: !1 | |
}), | |
r(n, n, e), | |
this.bridge = t, | |
this.worker = n, | |
r({ | |
onSubpackageReady: s.onSubpackageReady | |
}, this, e) | |
} | |
var i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
, u = n(1) | |
, c = n(2) | |
, s = n(3) | |
, l = n(4) | |
, f = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(l) | |
, d = function e(t) { | |
o(this, e), | |
a.call(this, t) | |
}; | |
e.exports = d | |
} | |
, function(e, t) { | |
function n() { | |
return { | |
invoke: function(e, t, n) { | |
return WeixinJSBridge.invoke(e, t, n) | |
}, | |
on: function(e, t) { | |
return WeixinJSBridge.on(e, t) | |
}, | |
publish: function(e, t, n) { | |
return WeixinJSBridge.publish(e, t, n) | |
}, | |
subscribe: function(e, t) { | |
return WeixinJSBridge.subscribe(e, t) | |
} | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.createBridge = n | |
} | |
, function(e, t) { | |
function n() { | |
return { | |
create: function(e) { | |
return WeixinWorker.create(e) | |
}, | |
onWorkerMsg: function(e) { | |
return WeixinWorker.onWorkerMsg(e) | |
}, | |
postMsgToWorker: function(e, t) { | |
return WeixinWorker.postMsgToWorker(e, t) | |
}, | |
terminate: function(e) { | |
return WeixinWorker.terminate(e) | |
} | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.createWorker = n | |
} | |
, function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var n = !1 | |
, o = []; | |
t.onSubpackageReady = function(e) { | |
o.push(e), | |
n || (this.bridge.on("onSubPackageReady", function(e) { | |
o.forEach(function(t) { | |
"function" == typeof t && t(void 0, e) | |
}) | |
}), | |
n = !0) | |
} | |
} | |
, function(e, t, n) { | |
function o(e, t) { | |
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {} | |
, o = n.cloneArgs | |
, i = void 0 === o || o; | |
return function() { | |
for (var n = [], o = 0; o < arguments.length; o++) | |
"function" == typeof arguments[o] ? n[o] = new r(e,arguments[o]) : n[o] = i ? (0, | |
a.recursiveDeepCopy)(arguments[o], { | |
parse: JSON.parse, | |
stringify: JSON.stringify | |
}) : arguments[o]; | |
var u = t.apply(this, n); | |
return (0, | |
a.recursiveDeepCopy)(u, { | |
parse: e.jsonParse, | |
stringify: e.jsonStringify | |
}) | |
} | |
} | |
function r(e, t) { | |
return function() { | |
for (var n = [], o = 0; o < arguments.length; o++) | |
n[o] = (0, | |
a.recursiveDeepCopy)(arguments[o], { | |
parse: e.jsonParse, | |
stringify: e.jsonStringify | |
}); | |
t.apply(this, n) | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.default = o; | |
var a = n(5) | |
} | |
, function(e, t) { | |
function n(e) { | |
return Object.prototype.toString.call(e).split(" ")[1].split("]")[0] | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
; | |
t.getDataType = n; | |
t.recursiveDeepCopy = function(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {} | |
, r = t.stringify | |
, a = void 0 === r ? JSON.stringify : r | |
, i = t.parse | |
, u = void 0 === i ? JSON.parse : i; | |
if (!e) | |
return e; | |
var c = void 0 === e ? "undefined" : o(e); | |
if ("function" === c) | |
throw new Error("[Safeway] not allow to pass function."); | |
if ("object" !== c) | |
return e.valueOf(); | |
for (var s = Object.keys(e), l = {}, f = 0; f < s.length; f++) { | |
var d = s[f] | |
, p = e[d]; | |
void 0 !== p && "ArrayBuffer" === n(p) && void 0 !== p.byteLength && (l[d] = p) | |
} | |
var h = void 0; | |
try { | |
h = u(a(e)) | |
} catch (e) { | |
throw new Error("[Safeway] data clone error " + e.toString()) | |
} | |
for (var v = Object.keys(l), g = 0; g < v.length; g++) { | |
var _ = v[g]; | |
h[_] = l[_] | |
} | |
return h | |
} | |
} | |
]) | |
, __safeway__ = new Safeway | |
, __waServiceInit__ = function() { | |
var e = function(e) { | |
function t(o) { | |
if (n[o]) | |
return n[o].exports; | |
var r = n[o] = { | |
i: o, | |
l: !1, | |
exports: {} | |
}; | |
return e[o].call(r.exports, r, r.exports, t), | |
r.l = !0, | |
r.exports | |
} | |
var n = {}; | |
return t.m = e, | |
t.c = n, | |
t.d = function(e, n, o) { | |
t.o(e, n) || Object.defineProperty(e, n, { | |
enumerable: !0, | |
get: o | |
}) | |
} | |
, | |
t.r = function(e) { | |
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { | |
value: "Module" | |
}), | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}) | |
} | |
, | |
t.t = function(e, n) { | |
if (1 & n && (e = t(e)), | |
8 & n) | |
return e; | |
if (4 & n && "object" == typeof e && e && e.__esModule) | |
return e; | |
var o = Object.create(null); | |
if (t.r(o), | |
Object.defineProperty(o, "default", { | |
enumerable: !0, | |
value: e | |
}), | |
2 & n && "string" != typeof e) | |
for (var r in e) | |
t.d(o, r, function(t) { | |
return e[t] | |
} | |
.bind(null, r)); | |
return o | |
} | |
, | |
t.n = function(e) { | |
var n = e && e.__esModule ? function() { | |
return e.default | |
} | |
: function() { | |
return e | |
} | |
; | |
return t.d(n, "a", n), | |
n | |
} | |
, | |
t.o = function(e, t) { | |
return Object.prototype.hasOwnProperty.call(e, t) | |
} | |
, | |
t.p = "", | |
t(t.s = 0) | |
}([function(e, t, n) { | |
function r(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function a(e, t) { | |
var n = (0, | |
q.apiCategoryValue)(e, "log"); | |
if (!n) | |
return t; | |
var o = 0 | |
, r = "request" === e; | |
return function() { | |
var a = r ? " with seq " + o : ""; | |
o++; | |
var u = arguments[0]; | |
1 === n && u && "object" === (void 0 === u ? "undefined" : i(u)) && ["success", "fail"].forEach(function(t) { | |
var n = u[t]; | |
"function" == typeof n && (u[t] = function(o) { | |
"function" == typeof n && n.apply(null, arguments), | |
Qe.log("wx." + e + " " + t + " callback" + (o && o.errMsg ? " with msg " + o.errMsg : " ") + a) | |
} | |
) | |
}), | |
3 === n && "function" == typeof u && (arguments[0] = function() { | |
u.apply(null, arguments), | |
Qe.log("wx." + e + " callback invoke") | |
} | |
), | |
Qe.log("wx." + e + " api invoke" + a); | |
var c = t.apply($e, arguments); | |
return 2 === n && Qe.log("wx." + e + " return"), | |
c | |
} | |
} | |
var i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
, u = n(1) | |
, c = n(2) | |
, s = n(12); | |
n(146), | |
n(147), | |
n(205), | |
n(211), | |
n(212), | |
n(213); | |
var l = n(55) | |
, f = n(214) | |
, d = n(216) | |
, p = n(219) | |
, h = n(220) | |
, v = r(h) | |
, g = n(221) | |
, _ = r(g) | |
, y = n(5) | |
, b = r(y) | |
, m = n(3) | |
, w = (r(m), | |
n(222)) | |
, k = n(223) | |
, S = n(225) | |
, C = n(226) | |
, P = n(84) | |
, M = n(241) | |
, I = n(252) | |
, O = n(57) | |
, T = n(257) | |
, E = n(148) | |
, x = n(140) | |
, A = n(112) | |
, j = n(38) | |
, B = n(261) | |
, D = n(262) | |
, R = n(263) | |
, N = n(273) | |
, L = n(277) | |
, F = n(278) | |
, W = n(285) | |
, V = n(312) | |
, U = r(V) | |
, H = n(313) | |
, G = n(229) | |
, q = n(8) | |
, K = n(317) | |
, z = n(318) | |
, J = n(16); | |
Protect.hijack(), | |
(0, | |
l.initCheckCookies)(); | |
var Y = C.socket.connectSocket | |
, X = C.socket.closeSocket | |
, $ = C.socket.sendSocketMessage | |
, Q = C.socket.onSocketOpen | |
, Z = C.socket.onSocketClose | |
, ee = C.socket.onSocketMessage | |
, te = C.socket.onSocketError | |
, ne = P.image.chooseImage | |
, oe = P.image.previewImage | |
, re = P.image.getImageInfo | |
, ae = P.image.saveImageToPhotosAlbum | |
, ie = P.record.startRecord | |
, ue = P.record.stopRecord | |
, ce = P.video.chooseVideo | |
, se = P.video.saveVideoToPhotosAlbum | |
, le = P.voice.playVoice | |
, fe = P.voice.pauseVoice | |
, de = P.voice.stopVoice | |
, pe = P.voice.onVoicePlayEnd | |
, he = P.fontFace.loadFontFace | |
, ve = P.backgroundAudio.getBackgroundAudioPlayerState | |
, ge = P.backgroundAudio.playBackgroundAudio | |
, _e = P.backgroundAudio.pauseBackgroundAudio | |
, ye = P.backgroundAudio.seekBackgroundAudio | |
, be = P.backgroundAudio.stopBackgroundAudio | |
, me = P.backgroundAudio.onBackgroundAudioPlay | |
, we = P.backgroundAudio.onBackgroundAudioPause | |
, ke = P.backgroundAudio.onBackgroundAudioStop | |
, Se = E.screen.captureScreen | |
, Ce = E.screen.onUserCaptureScreen | |
, Pe = E.screen.setKeepScreenOn | |
, Me = E.screen.setScreenBrightness | |
, Ie = E.screen.getScreenBrightness | |
, Oe = E.vibrate.vibrateShort | |
, Te = E.vibrate.vibrateLong | |
, Ee = E.contact.chooseContact | |
, xe = E.contact.chooseWeChatContact | |
, Ae = E.contact.addPhoneContact | |
, je = A.interaction.showToast | |
, Be = A.interaction.hideToast | |
, De = A.interaction.showLoading | |
, Re = A.interaction.hideLoading | |
, Ne = A.interaction.showModal | |
, Le = A.interaction.showActionSheet | |
, Fe = A.navigationBar.setNavigationBarTitle | |
, We = A.navigationBar.showNavigationBarLoading | |
, Ve = A.navigationBar.hideNavigationBarLoading | |
, Ue = A.navigationBar.setNavigationBarColor | |
, He = A.navigationBar.setNavigationBarAlpha | |
, Ge = A.navigationBar.setNavigationBarRightButton | |
, qe = A.navigationBar.onTapNavigationBarRightButton | |
, Ke = j.share.getShareInfo | |
, ze = j.share.showShareMenu | |
, Je = j.share.hideShareMenu | |
, Ye = j.share.updateShareMenu | |
, Xe = {} | |
, $e = { | |
invokeWebviewMethod: w.invokeWebviewMethod, | |
drawCanvas: x.drawCanvas, | |
createContext: x.createContext, | |
createCanvasContext: x.createCanvasContext, | |
canvasToTempFilePath: x.canvasToTempFilePath, | |
canvasGetImageData: x.canvasGetImageData, | |
canvasPutImageData: x.canvasPutImageData, | |
getShareInfo: Ke, | |
pageScrollTo: A.pageScrollTo, | |
chooseInvoiceTitle: j.chooseInvoiceTitle, | |
arrayBufferToBase64: Reporter.surroundThirdByTryCatch(c.arrayBufferToBase64), | |
base64ToArrayBuffer: Reporter.surroundThirdByTryCatch(c.base64ToArrayBuffer), | |
openSetting: j.openSetting, | |
getExtConfig: d.getExtConfig, | |
chooseMedia: P.chooseMedia, | |
chooseWeChatContact: xe, | |
uploadEncryptedFileToCDN: C.CDN.uploadEncryptedFileToCDN, | |
onUploadEncryptedFileToCDNProgress: C.CDN.onUploadEncryptedFileToCDNProgress, | |
getExtConfigSync: d.getExtConfigSync, | |
showShareMenu: ze, | |
hideShareMenu: Je, | |
updateShareMenu: Ye, | |
openUrl: R.web.openUrl, | |
setNavigationBarColor: Ue, | |
setNavigationBarAlpha: He, | |
vibrateShort: Oe, | |
vibrateLong: Te, | |
getSetting: j.getSetting, | |
checkIsSupportFacialRecognition: j.facialRecognition.checkIsSupportFacialRecognition, | |
startFacialRecognitionVerify: j.facialRecognition.startFacialRecognitionVerify, | |
startFacialRecognitionVerifyAndUploadVideo: j.facialRecognition.startFacialRecognitionVerifyAndUploadVideo, | |
sendBizRedPacket: j.redPacket.sendBizRedPacket, | |
sendGoldenRedPacket: j.redPacket.sendGoldenRedPacket, | |
openGoldenRedPacketDetail: j.redPacket.openGoldenRedPacketDetail, | |
addPhoneContact: Ae, | |
setScreenBrightness: Me, | |
getScreenBrightness: Ie, | |
getWeRunData: j.getWeRunData, | |
uploadWeRunData: j.uploadWeRunData, | |
addWeRunData: j.addWeRunData, | |
canIUse: T.canIUse, | |
setPageStyle: A.setPageStyle, | |
triggerGettingWidgetData: k.triggerGettingWidgetData, | |
navigateToMiniProgram: R.miniProgram.navigateToMiniProgram, | |
navigateToDevMiniProgram: R.miniProgram.navigateToDevMiniProgram, | |
navigateBackMiniProgram: R.miniProgram.navigateBackMiniProgram, | |
setNavigationBarRightButton: Ge, | |
onTapNavigationBarRightButton: qe, | |
setTopBarText: A.topBar.setTopBarText, | |
setTabBarBadge: A.tabBar.setTabBarBadge, | |
removeTabBarBadge: A.tabBar.removeTabBarBadge, | |
showTabBarRedDot: A.tabBar.showTabBarRedDot, | |
hideTabBarRedDot: A.tabBar.hideTabBarRedDot, | |
showTabBar: A.tabBar.showTabBar, | |
hideTabBar: A.tabBar.hideTabBar, | |
setTabBarStyle: A.tabBar.setTabBarStyle, | |
setTabBarItem: A.tabBar.setTabBarItem, | |
setBackgroundColor: A.setBackgroundColor, | |
setBackgroundTextStyle: A.setBackgroundTextStyle, | |
setEnableDebug: N.setEnableDebug, | |
captureScreen: Se, | |
onUserCaptureScreen: Ce, | |
setKeepScreenOn: Pe, | |
checkIsSupportSoterAuthentication: j.soter.checkIsSupportSoterAuthentication, | |
startSoterAuthentication: j.soter.startSoterAuthentication, | |
checkIsSoterEnrolledInDevice: j.soter.checkIsSoterEnrolledInDevice, | |
openDeliveryList: R.web.openDeliveryList, | |
reportIDKey: S.reportIDKey, | |
reportKeyValue: S.reportKeyValue, | |
setNavigationBarTitle: Fe, | |
showNavigationBarLoading: We, | |
hideNavigationBarLoading: Ve, | |
startPullDownRefresh: A.startPullDownRefresh, | |
stopPullDownRefresh: A.stopPullDownRefresh, | |
operateWXData: j.operateWXData, | |
getOpenDeviceId: j.getOpenDeviceId, | |
getMenuButtonBoundingClientRect: A.getMenuButtonBoundingClientRect, | |
openBluetoothAdapter: E.bluetooth.openBluetoothAdapter, | |
closeBluetoothAdapter: E.bluetooth.closeBluetoothAdapter, | |
getBluetoothAdapterState: E.bluetooth.getBluetoothAdapterState, | |
onBluetoothAdapterStateChange: E.bluetooth.onBluetoothAdapterStateChange, | |
startBluetoothDevicesDiscovery: E.bluetooth.startBluetoothDevicesDiscovery, | |
stopBluetoothDevicesDiscovery: E.bluetooth.stopBluetoothDevicesDiscovery, | |
getBluetoothDevices: E.bluetooth.getBluetoothDevices, | |
getConnectedBluetoothDevices: E.bluetooth.getConnectedBluetoothDevices, | |
createBLEConnection: E.bluetooth.createBLEConnection, | |
closeBLEConnection: E.bluetooth.closeBLEConnection, | |
getBLEDeviceServices: E.bluetooth.getBLEDeviceServices, | |
getBLEDeviceCharacteristics: E.bluetooth.getBLEDeviceCharacteristics, | |
notifyBLECharacteristicValueChanged: E.bluetooth.notifyBLECharacteristicValueChanged, | |
notifyBLECharacteristicValueChange: E.bluetooth.notifyBLECharacteristicValueChange, | |
readBLECharacteristicValue: E.bluetooth.readBLECharacteristicValue, | |
writeBLECharacteristicValue: E.bluetooth.writeBLECharacteristicValue, | |
onBluetoothDeviceFound: E.bluetooth.onBluetoothDeviceFound, | |
onBLEConnectionStateChanged: E.bluetooth.onBLEConnectionStateChanged, | |
onBLEConnectionStateChange: E.bluetooth.onBLEConnectionStateChange, | |
onBLECharacteristicValueChange: E.bluetooth.onBLECharacteristicValueChange, | |
startBeaconDiscovery: E.iBeacon.startBeaconDiscovery, | |
stopBeaconDiscovery: E.iBeacon.stopBeaconDiscovery, | |
getBeacons: E.iBeacon.getBeacons, | |
onBeaconUpdate: E.iBeacon.onBeaconUpdate, | |
onBeaconServiceChange: E.iBeacon.onBeaconServiceChange, | |
startWifi: E.wifi.startWifi, | |
stopWifi: E.wifi.stopWifi, | |
getWifiList: E.wifi.getWifiList, | |
getConnectedWifi: E.wifi.getConnectedWifi, | |
connectWifi: E.wifi.connectWifi, | |
presetWifiList: E.wifi.presetWifiList, | |
setWifiList: E.wifi.setWifiList, | |
onGetWifiList: E.wifi.onGetWifiList, | |
onWifiConnected: E.wifi.onWifiConnected, | |
onEvaluateWifi: E.wifi.onEvaluateWifi, | |
getHCEState: E.nfc.getHCEState, | |
startHCE: E.nfc.startHCE, | |
stopHCE: E.nfc.stopHCE, | |
sendHCEMessage: E.nfc.sendHCEMessage, | |
onHCEMessage: E.nfc.onHCEMessage, | |
redirectTo: A.route.redirectTo, | |
reLaunch: A.route.reLaunch, | |
navigateTo: A.route.navigateTo, | |
switchTab: A.route.switchTab, | |
navigateBack: A.route.navigateBack, | |
onAppShow: J.onAppShow, | |
offAppShow: J.offAppShow, | |
onAppHide: J.onAppHide, | |
offAppHide: J.offAppHide, | |
onError: J.onError, | |
offError: J.offError, | |
getLaunchOptionsSync: J.getLaunchOptionsSync, | |
getStorage: O.getStorage, | |
getStorageSync: O.getStorageSync, | |
setStorage: O.setStorage, | |
setStorageSync: O.setStorageSync, | |
removeStorage: O.removeStorage, | |
removeStorageSync: O.removeStorageSync, | |
clearStorage: O.clearStorage, | |
clearStorageSync: O.clearStorageSync, | |
getStorageInfo: O.getStorageInfo, | |
getStorageInfoSync: O.getStorageInfoSync, | |
request: C.request, | |
connectSocket: Y, | |
closeSocket: X, | |
sendSocketMessage: $, | |
onSocketOpen: Q, | |
onSocketClose: Z, | |
onSocketMessage: ee, | |
onSocketError: te, | |
uploadFile: C.uploadFile, | |
downloadFile: C.downloadFile, | |
addNativeDownloadTask: C.addNativeDownloadTask, | |
calRqt: C.calRqt, | |
chooseImage: ne, | |
previewImage: oe, | |
getImageInfo: re, | |
saveImageToPhotosAlbum: ae, | |
startRecord: ie, | |
stopRecord: ue, | |
playVoice: le, | |
pauseVoice: fe, | |
stopVoice: de, | |
onVoicePlayEnd: pe, | |
chooseVideo: ce, | |
saveVideoToPhotosAlbum: se, | |
loadFontFace: he, | |
getLocation: f.getLocation, | |
openLocation: f.openLocation, | |
chooseLocation: f.chooseLocation, | |
startLocationUpdate: f.startLocationUpdate, | |
stopLocationUpdate: f.stopLocationUpdate, | |
onLocationChange: f.onLocationChange, | |
getNetworkType: E.network.getNetworkType, | |
onNetworkStatusChange: E.network.onNetworkStatusChange, | |
getSystemInfo: E.systemInfo.getSystemInfo, | |
getSystemInfoSync: E.systemInfo.getSystemInfoSync, | |
getBatteryInfo: E.batteryInfo.getBatteryInfo, | |
getBatteryInfoSync: E.batteryInfo.getBatteryInfoSync, | |
startAccelerometer: E.accelerometer.startAccelerometer, | |
stopAccelerometer: E.accelerometer.stopAccelerometer, | |
onAccelerometerChange: E.accelerometer.onAccelerometerChange, | |
startCompass: E.compass.startCompass, | |
stopCompass: E.compass.stopCompass, | |
onCompassChange: E.compass.onCompassChange, | |
reportAction: S.reportAction, | |
getBackgroundAudioManager: P.backgroundAudio.getBackgroundAudioManager, | |
getRecorderManager: P.record.getRecorderManager, | |
getBackgroundAudioPlayerState: ve, | |
playBackgroundAudio: ge, | |
pauseBackgroundAudio: _e, | |
seekBackgroundAudio: ye, | |
stopBackgroundAudio: be, | |
onBackgroundAudioPlay: me, | |
onBackgroundAudioPause: we, | |
onBackgroundAudioStop: ke, | |
login: j.login, | |
checkSession: j.checkSession, | |
authorize: j.authorize, | |
getUserInfo: j.getUserInfo, | |
requestPayment: j.payment.requestPayment, | |
verifyPaymentPassword: j.payment.verifyPaymentPassword, | |
bindPaymentCard: j.payment.bindPaymentCard, | |
requestPaymentToBank: j.payment.requestPaymentToBank, | |
requestVirtualPayment: j.payment.requestVirtualPayment, | |
openOfflinePayView: j.payment.openOfflinePayView, | |
openWCPayCardList: j.payment.openWCPayCardList, | |
requestMallPayment: j.payment.requestMallPayment, | |
addCard: j.card.addCard, | |
openCard: j.card.openCard, | |
scanCode: E.scan.scanCode, | |
openQRCode: E.scan.openQRCode, | |
chooseAddress: j.chooseAddress, | |
saveFile: M.saveFile, | |
openDocument: M.openDocument, | |
getSavedFileList: M.getSavedFileList, | |
getSavedFileInfo: M.getSavedFileInfo, | |
getFileInfo: M.getFileInfo, | |
removeSavedFile: M.removeSavedFile, | |
getFileSystemManager: I.getFileSystemManager, | |
chooseContact: Ee, | |
removeUserCloudStorage: B.removeUserCloudStorage, | |
setUserCloudStorage: D.setUserCloudStorage, | |
makePhoneCall: E.phone.makePhoneCall, | |
makeVoIPCall: E.phone.makeVoIPCall, | |
onAppRoute: J.onAppRoute, | |
onAppRouteDone: J.onAppRouteDone, | |
onAppEnterBackground: J.onAppEnterBackground, | |
onAppEnterForeground: J.onAppEnterForeground, | |
onAppUnhang: J.onAppUnhang, | |
onPageReload: function(e) { | |
A.route.onPageReload.call($e, e) | |
}, | |
onPageNotFound: J.onPageNotFound, | |
offPageNotFound: J.offPageNotFound, | |
createAnimation: A.createAnimation, | |
createInnerAudioContext: s.createInnerAudioContext, | |
getAvailableAudioSources: P.getAvailableAudioSources, | |
createAudioContext: function(e, t) { | |
var n = t && t.__wxExparserNodeId__ && t.__wxExparserNodeId__ !== o.getRootNodeId(b.default.currentWebviewId) ? t.__wxExparserNodeId__ : ""; | |
return s.createAudioContext.call($e, e, b.default.currentWebviewId, n) | |
}, | |
createVideoContext: function(e, t) { | |
var n = t && t.__wxExparserNodeId__ && t.__wxExparserNodeId__ !== o.getRootNodeId(b.default.currentWebviewId) ? t.__wxExparserNodeId__ : ""; | |
return s.createVideoContext.call($e, e, b.default.currentWebviewId, n) | |
}, | |
createMapContext: function(e, t) { | |
var n = t && t.__wxExparserNodeId__ && t.__wxExparserNodeId__ !== o.getRootNodeId(b.default.currentWebviewId) ? t.__wxExparserNodeId__ : ""; | |
return s.createMapContext.call($e, e, b.default.currentWebviewId, n) | |
}, | |
createCameraContext: function() { | |
return s.createCameraContext.call($e, null, b.default.currentWebviewId) | |
}, | |
createLivePlayerContext: function(e, t) { | |
var n = t && t.__wxExparserNodeId__ && t.__wxExparserNodeId__ !== o.getRootNodeId(b.default.currentWebviewId) ? t.__wxExparserNodeId__ : ""; | |
return s.createLivePlayerContext.call($e, e, b.default.currentWebviewId, n) | |
}, | |
createLivePusherContext: function() { | |
return s.createLivePusherContext.call($e, null, b.default.currentWebviewId) | |
}, | |
onWebviewEvent: A.event.onWebviewEvent, | |
onNativeEvent: A.event.onNativeEvent, | |
hideKeyboard: A.hideKeyboard, | |
getPublicLibVersion: N.getPublicLibVersion, | |
showModal: Ne, | |
showToast: je, | |
hideToast: Be, | |
showLoading: De, | |
hideLoading: Re, | |
showActionSheet: Le, | |
reportAnalytics: S.reportAnalytics, | |
reportMonitor: S.reportMonitor, | |
getClipboardData: E.clipboard.getClipboardData, | |
setClipboardData: E.clipboard.setClipboardData, | |
createSelectorQuery: p.createSelectorQuery, | |
createIntersectionObserver: p.createIntersectionObserver, | |
updatePerfData: L.updatePerfData, | |
traceEvent: L.traceEvent, | |
onMemoryWarning: L.onMemoryWarning, | |
getUpdateManager: F.getUpdateManager, | |
createWorker: H.createWorker, | |
voiceSplitJoint: P.voiceSplitJoint, | |
uploadSilkVoice: P.uploadSilkVoice, | |
downloadSilkVoice: P.downloadSilkVoice, | |
getResPath: P.getResPath, | |
setResPath: P.setResPath, | |
env: U.default, | |
getLogManager: N.getLogManager | |
}; | |
["login", "getUserInfo", "getShareInfo", "getWeRunData"].forEach(function(e) { | |
var t = $e[e]; | |
$e[e] = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
G.timeout)(t, e) | |
} | |
}), | |
(0, | |
u.subscribe)("INVOKE_METHOD", function(e, t) { | |
var n = e.name | |
, o = e.args; | |
$e[n](o, !0) | |
}), | |
(0, | |
u.subscribe)("WEBVIEW_ERROR_MSG", function(e, t) { | |
var n = e.msg; | |
Reporter.triggerErrorMessage(n) | |
}), | |
(0, | |
u.onMethod)("onError", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; | |
"function" == typeof __wxSourceMapRetrace__ && (e = __wxSourceMapRetrace__(e)), | |
console.error("thirdScriptError", "\n", "sdk uncaught third Error", "\n", e.message, "\n", e.stack) | |
}); | |
var Qe = (0, | |
N.getLogManager)(); | |
for (var Ze in $e) | |
!function(e) { | |
Xe.__defineGetter__(e, function() { | |
var t = $e[e] | |
, n = this; | |
if ("function" == typeof t) | |
return (0, | |
c.surroundByTryCatchFactory)(function(o) { | |
if (!(0, | |
u.checkWxInterfacePermission)(e, "")) { | |
if ("Sync" === e.slice(-4)) | |
throw new c.AppServiceSdkKnownError(e + ":fail rejected due to no permission currently"); | |
return void (o && o.fail && setTimeout(function() { | |
(0, | |
u.beforeInvokeFail)(e, o, "rejected due to no permission currently") | |
}, 0)) | |
} | |
return a(e, t).apply(n, arguments) | |
}, " at wx." + e); | |
if (!(0, | |
u.checkWxInterfacePermission)(e, "")) | |
throw new c.AppServiceSdkKnownError(e + ":fail rejected due to no permission currently"); | |
return t | |
}) | |
}(Ze); | |
var et = { | |
wx: Xe, | |
createPluginWX: W.createPluginWX, | |
showShareMenu: ze, | |
setWxInterfaceDisabled: u.setWxInterfaceDisabled, | |
_createSelectorQuery: v.default, | |
_createIntersectionObserver: _.default, | |
pluginInfos: W.pluginInfos, | |
_virtualDOMTunnel: (0, | |
K.VDTunnelFactory)(u.publish, u.subscribe) | |
}; | |
(0, | |
z.exportToAppServiceSDK)(et, z.appServiceEngineAPIs, $e), | |
(0, | |
z.exportToAppServiceSDK)(et, z.subContextEngineAPIs, $e), | |
!0 === __wxConfig.karmaTest && (et = $e), | |
e.exports = et | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function a(e, t, n) { | |
"background" === w.default.runningStatus && -1 !== k.BackgroudAPIBlackList.indexOf(e) ? n({ | |
errMsg: e + ":fail can not be invoked in background running status" | |
}) : "active" !== w.default.runningStatus && -1 !== k.NotActiveAPIBlackList.indexOf(e) ? n({ | |
errMsg: e + ":fail can only be invokeed in acitve running status" | |
}) : __safeway__.bridge.invoke(e, t, n) | |
} | |
function i(e, t) { | |
__safeway__.bridge.on(e, t) | |
} | |
function u(e, t, n) { | |
var o = { | |
data: t, | |
options: { | |
timestamp: Date.now() | |
} | |
}; | |
__safeway__.bridge.publish(e, o, n) | |
} | |
function c(e, t) { | |
var n = function(e, n) { | |
var o = e.data | |
, r = e.options | |
, a = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {} | |
, i = r && r.timestamp || 0 | |
, u = Date.now(); | |
"function" == typeof t && t(o, n), | |
Reporter.speedReport({ | |
key: "webview2AppService", | |
data: o || {}, | |
timeMark: { | |
startTime: i, | |
endTime: u, | |
nativeTime: a.nativeTime || 0 | |
} | |
}) | |
}; | |
__safeway__.bridge.subscribe(e, n) | |
} | |
function s(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {} | |
, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; | |
t = (0, | |
b.assign)({}, t); | |
var o = {}; | |
for (var r in t) | |
"function" == typeof t[r] && (!0 === M.default.karmaTest ? o[r] = t[r] : o[r] = Reporter.surroundThirdByTryCatch(t[r], "at api " + e + " " + r + " callback function"), | |
delete t[r]); | |
var i = {}; | |
for (var u in n) | |
"function" == typeof n[u] && (i[u] = (0, | |
b.surroundByTryCatchFactory)(n[u], "at api " + e + " " + u + " callback function"), | |
i[u]._argumentsLength = n[u].length); | |
a(e, t, function(t) { | |
t.errMsg = t.errMsg || e + ":ok"; | |
var n = 0 === t.errMsg.indexOf(e + ":ok") | |
, r = 0 === t.errMsg.indexOf(e + ":cancel") | |
, a = 0 === t.errMsg.indexOf(e + ":fail"); | |
if ("function" == typeof i.beforeAll && i.beforeAll(t), | |
n) { | |
var u = function() { | |
"function" == typeof o.success && o.success(t), | |
"function" == typeof i.afterSuccess && i.afterSuccess(t) | |
}; | |
"function" == typeof i.beforeSuccess ? 2 === i.beforeSuccess._argumentsLength ? i.beforeSuccess(t, u) : (i.beforeSuccess(t), | |
u()) : u() | |
} else if (r) | |
t.errMsg = t.errMsg.replace(e + ":cancel", e + ":fail cancel"), | |
"function" == typeof o.fail && o.fail(t), | |
"function" == typeof i.beforeCancel && i.beforeCancel(t), | |
"function" == typeof o.cancel && o.cancel(t), | |
"function" == typeof i.afterCancel && i.afterCancel(t); | |
else if (a) { | |
"function" == typeof i.beforeFail && i.beforeFail(t), | |
"function" == typeof o.fail && o.fail(t); | |
var c = !0; | |
"function" == typeof i.afterFail && (c = i.afterFail(t)), | |
!1 !== c && Reporter.reportIDKey({ | |
key: e + "_fail" | |
}) | |
} | |
"function" == typeof o.complete && o.complete(t), | |
"function" == typeof i.afterAll && i.afterAll(t), | |
(0, | |
S.reportJSAPI)(e, n, a, r, t.errMsg) | |
}), | |
Reporter.reportIDKey({ | |
key: e | |
}) | |
} | |
function l(e, t) { | |
i(e, (0, | |
b.surroundByTryCatchFactory)(t, "at api " + e + " callback function")) | |
} | |
function f() {} | |
function d(e, t, n) { | |
var o = (0, | |
b.paramCheck)(t, n); | |
return !o || (p(e, t, "parameter error: " + o), | |
!1) | |
} | |
function p(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {} | |
, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "" | |
, o = arguments[3] | |
, r = e + ":fail " + n; | |
console.error(r); | |
var a = Reporter.surroundThirdByTryCatch(t.fail || f, "at api " + e + " fail callback function") | |
, i = Reporter.surroundThirdByTryCatch(t.complete || f, "at api " + e + " complete callback function") | |
, u = { | |
errMsg: r | |
}; | |
"number" == typeof o && (u.errCode = o), | |
a(u), | |
i(u) | |
} | |
function h(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {} | |
, n = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2] | |
, o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : "" | |
, r = arguments[4] | |
, a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : {} | |
, i = n ? e + ":ok" : e + ":fail " + o; | |
n || console.error(i); | |
var u = Reporter.surroundThirdByTryCatch((n ? t.success : t.fail) || f, "at api " + e + " " + (n ? "success" : "fail") + " callback function") | |
, c = Reporter.surroundThirdByTryCatch(t.complete || f, "at api " + e + " complete callback function"); | |
a.errMsg = i, | |
"number" == typeof r && (a.errCode = r), | |
u(a), | |
c(a) | |
} | |
function v(e, t, n) { | |
var o = t.replace(/\.html\?.*|\.html$/, ""); | |
return !!r.hasPageRoute(o) || (p(e, n, 'page "' + (0, | |
b.removeHtmlSuffixFromUrl)(t) + '" is not found'), | |
!1) | |
} | |
function g(e) { | |
I = !!e.state, | |
e.success && e.success({ | |
state: I | |
}) | |
} | |
function _(e, t) { | |
var n = (0, | |
C.apiCategoryValue)(e, "ui"); | |
if (n > 0 && I) | |
return !1; | |
if (n >= 20) | |
if (void 0 === r) { | |
if (t) | |
return !1 | |
} else { | |
var o = r.getCurrentRoute() || ""; | |
if (/^\/?__wx__\//.test(o)) | |
return !1; | |
var a = o.match(/(?:^|\/)__plugin__\/(.*?)\//) | |
, i = a ? a[1] : ""; | |
if (i !== t && n >= 30) | |
return !1 | |
} | |
return !0 | |
} | |
function y(e, t) { | |
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {} | |
, o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {} | |
, r = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : function() {} | |
, a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : function() {} | |
; | |
return function(i) { | |
n = r(i), | |
s("operateWXData", Object.assign({}, i, { | |
data: Object.assign({ | |
api_name: t | |
}, o, n ? { | |
data: n | |
} : void 0) | |
}), { | |
beforeAll: function(t) { | |
t.errMsg = t.errMsg.replace("operateWXData", e) | |
}, | |
beforeSuccess: function(e) { | |
if ("android" === (0, | |
b.getPlatform)() && (e.data = JSON.parse(e.data)), | |
e.data.data) { | |
e.rawData = e.data.data; | |
var t = JSON.parse(e.data.data); | |
e = Object.assign(e, t) | |
} | |
e.data.signature && (e.signature = e.data.signature), | |
e.data.encryptedData && (e.encryptedData = e.data.encryptedData, | |
e.iv = e.data.iv), | |
delete e.data, | |
e = a(e) | |
} | |
}) | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.invoke = a, | |
t.on = i, | |
t.publish = u, | |
t.subscribe = c, | |
t.invokeMethod = s, | |
t.onMethod = l, | |
t.noop = f, | |
t.beforeInvoke = d, | |
t.beforeInvokeFail = p, | |
t.beforeInvokeCallback = h, | |
t.checkUrlInConfig = v, | |
t.setWxInterfaceDisabled = g, | |
t.checkWxInterfacePermission = _, | |
t.operateWXDataFactory = y; | |
var b = n(2) | |
, m = n(5) | |
, w = o(m) | |
, k = n(6) | |
, S = n(7) | |
, C = n(8) | |
, P = n(3) | |
, M = o(P) | |
, I = !1 | |
} | |
, function(e, t, o) { | |
function a(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function i(e, t) { | |
if (!e) | |
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return !t || "object" != typeof t && "function" != typeof t ? e : t | |
} | |
function u(e, t) { | |
if ("function" != typeof t && null !== t) | |
throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
e.prototype = Object.create(t && t.prototype, { | |
constructor: { | |
value: e, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), | |
t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
} | |
function c(e, t) { | |
return !0 === D.default.karmaTest ? e : function() { | |
try { | |
return e.apply(e, arguments) | |
} catch (e) { | |
if ("[object Error]" === Object.prototype.toString.apply(e)) { | |
if ("AppServiceSdkKnownError" == e.type) | |
throw e; | |
"ThirdScriptError" === e.type ? Reporter.thirdErrorReport({ | |
error: e, | |
extend: t | |
}) : Reporter.errorReport({ | |
key: "appServiceSDKScriptError", | |
error: e, | |
extend: t | |
}) | |
} | |
} | |
} | |
} | |
function s(e) { | |
var t = Object.prototype.toString.call(e).split(" ")[1].split("]")[0]; | |
if ("Array" == t || "Object" == t) | |
try { | |
e = JSON.stringify(e) | |
} catch (e) { | |
throw e.type = "AppServiceSdkKnownError", | |
e | |
} | |
else | |
e = "String" == t || "Number" == t || "Boolean" == t ? e.toString() : "Date" == t ? e.getTime().toString() : "Undefined" == t ? "undefined" : "Null" == t ? "null" : ""; | |
return { | |
data: e, | |
dataType: t | |
} | |
} | |
function l(e, t) { | |
return e = "String" == t ? e : "Array" == t || "Object" == t ? JSON.parse(e) : "Number" == t ? parseFloat(e) : "Boolean" == t ? "true" == e : "Date" == t ? new Date(parseInt(e)) : "Undefined" == t ? void 0 : "Null" == t ? null : "" | |
} | |
function f(e) { | |
return Object.prototype.toString.call(e).split(" ")[1].split("]")[0] | |
} | |
function d(e) { | |
return "Object" === f(e) | |
} | |
function p(e, t) { | |
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "parameter" | |
, o = f(t) | |
, r = f(e); | |
if (r != o) | |
return n + " should be " + o + " instead of " + r + ";"; | |
var a = ""; | |
switch (o) { | |
case "Object": | |
for (var i in t) | |
a += p(e[i], t[i], n + "." + i); | |
break; | |
case "Array": | |
if (e.length < t.length) | |
return n + " should have at least " + t.length + " item;"; | |
for (var u = 0; u < t.length; ++u) | |
a += p(e[u], t[u], n + "[" + u + "]") | |
} | |
return a | |
} | |
function h(e, t) { | |
if ((!(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]) && (t = k(t)), | |
0 === t.indexOf("/")) | |
return t.substr(1); | |
if (0 === t.indexOf("./")) | |
return h(e, t.substr(2), !1); | |
var n, o, r = t.split("/"); | |
for (n = 0, | |
o = r.length; n < o && ".." === r[n]; n++) | |
; | |
r.splice(0, n); | |
var t = r.join("/") | |
, a = e.length > 0 ? e.split("/") : []; | |
return a.splice(a.length - n - 1, n + 1), | |
a.concat(r).join("/") | |
} | |
function v(e, t) { | |
for (var o = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; ; ) { | |
var a = t.match(/^[-+a-zA-Z0-9]+:\/\//); | |
if (!a) | |
break; | |
var i = a[0]; | |
if ("plugin://" === i) { | |
var u = i.length | |
, c = t.indexOf("/", u); | |
if (c >= 0) { | |
var s = t.slice(u, c) | |
, l = D.default.plugins && D.default.plugins[s] ? D.default.plugins[s].provider : s; | |
t = t.slice(0, u) + l + t.slice(c) | |
} | |
var f = t.indexOf("?"); | |
f < 0 && (f = t.length); | |
var d = t.slice(0, f) | |
, p = n.Component._list[d]; | |
if (!p) | |
throw new R('Page "' + d + '" is not found'); | |
t = p.is + t.slice(f) | |
} else { | |
if ("plugin-private://" !== i) | |
throw new R('Unknown URL protocol "' + i + '"'); | |
var v = t.indexOf("?"); | |
v < 0 && (v = t.length); | |
var g = t.slice(0, v); | |
t = "/" + r.convertComponentAliasToRoute(g) + t.slice(v) | |
} | |
} | |
return h(e, t, o) | |
} | |
function g() { | |
return "android" === D.default.platform ? "android" : "devtools" === D.default.platform ? "devtools" : "ios" | |
} | |
function _(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; | |
if ("object" !== (void 0 === e ? "undefined" : j(e))) | |
return e; | |
var n = []; | |
for (var o in e) | |
if (e.hasOwnProperty(o)) | |
if (t) | |
try { | |
n.push(encodeURIComponent(o) + "=" + encodeURIComponent(e[o])) | |
} catch (t) { | |
n.push(o + "=" + e[o]) | |
} | |
else | |
n.push(o + "=" + e[o]); | |
return n.join("&") | |
} | |
function y(e, t) { | |
if ("string" == typeof e && "object" === (void 0 === t ? "undefined" : j(t)) && null !== t && Object.keys(t).length > 0) { | |
var n = e.split("?"); | |
return n[0] + "?" + _(m((n[1] || "").split("&").reduce(function(e, t) { | |
if ("string" == typeof t && t.length > 0) { | |
var n = t.split("=") | |
, o = n[0] | |
, r = n[1]; | |
e[o] = r | |
} | |
return e | |
}, {}), Object.keys(t).reduce(function(e, n) { | |
return "object" === j(t[n]) ? e[encodeURIComponent(n)] = encodeURIComponent(JSON.stringify(t[n])) : e[encodeURIComponent(n)] = encodeURIComponent(t[n]), | |
e | |
}, {}))) | |
} | |
return e | |
} | |
function b(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "http"; | |
return "http" === t ? /^(http|https):\/\/.*/i.test(e) : "websocket" === t ? /^(ws|wss):\/\/.*/i.test(e) : void 0 | |
} | |
function m() { | |
for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) | |
t[n] = arguments[n]; | |
return t.reduce(function(e, t) { | |
for (var n in t) | |
e[n] = t[n]; | |
return e | |
}, {}) | |
} | |
function w(e) { | |
if ("string" == typeof e) { | |
var t = e.split("?") | |
, n = t[0] | |
, o = (t[1] || "").split("&").reduce(function(e, t) { | |
if ("string" == typeof t && t.length > 0) { | |
var n = t.split("=") | |
, o = n[0] | |
, r = n[1]; | |
e[o] = r | |
} | |
return e | |
}, {}) | |
, r = []; | |
for (var a in o) | |
o.hasOwnProperty(a) && r.push(a + "=" + encodeURIComponent(o[a])); | |
return r.length > 0 ? n + "?" + r.join("&") : e | |
} | |
return e | |
} | |
function k(e) { | |
if ("string" != typeof e) | |
return e; | |
var t = e.split("?")[0] | |
, n = e.split("?")[1]; | |
return t += ".html", | |
void 0 !== n ? t + "?" + n : t | |
} | |
function S(e) { | |
return "string" == typeof e ? -1 !== e.indexOf("?") ? e.replace(/\.html\?/, "?") : e.replace(/\.html$/, "") : e | |
} | |
function C(e, t) { | |
for (var n in t) | |
e[n] = t[n]; | |
return e | |
} | |
function P(e) { | |
for (var t = "", n = new Uint8Array(e), o = n.byteLength, r = 0; r < o; r++) | |
t += String.fromCharCode(n[r]); | |
return L(t) | |
} | |
function M(e) { | |
for (var t = F(e), n = t.length, o = new Uint8Array(n), r = 0; r < n; r++) | |
o[r] = t.charCodeAt(r); | |
return o.buffer | |
} | |
function I(e, t) { | |
var n = new FileReader; | |
n.onload = function() { | |
t(this.result) | |
} | |
, | |
n.readAsArrayBuffer(e) | |
} | |
function O(e) { | |
return Object.keys(e).reduce(function(t, n) { | |
return "string" == typeof e[n] ? t[n] = e[n] : "number" == typeof e[n] ? t[n] = e[n] + "" : t[n] = Object.prototype.toString.apply(e[n]), | |
t | |
}, {}) | |
} | |
function T() { | |
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) { | |
var t = 16 * Math.random() | 0; | |
return ("x" == e ? t : 3 & t | 8).toString(16) | |
}) | |
} | |
function E(e, t) { | |
switch (g()) { | |
case "devtools": | |
return !0; | |
case "ios": | |
return W > e; | |
case "android": | |
return W > t | |
} | |
return !1 | |
} | |
function x(e, t, n) { | |
!1 !== d(e) && t != n && e.hasOwnProperty(t) && (e[n] = e[t], | |
delete e[t]) | |
} | |
function A(e, t) { | |
e = e.split("."), | |
t = t.split("."); | |
for (var n = Math.max(e.length, t.length); e.length < n; ) | |
e.push("0"); | |
for (; t.length < n; ) | |
t.push("0"); | |
for (var o = 0; o < n; o++) { | |
var r = parseInt(e[o]) | |
, a = parseInt(t[o]); | |
if (r > a) | |
return 1; | |
if (r < a) | |
return -1 | |
} | |
return 0 | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.ThirdScriptError = t.AppServiceSdkKnownError = t.stringToAnyType = t.anyTypeToString = void 0; | |
var j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
; | |
t.surroundByTryCatchFactory = c, | |
t.getDataType = f, | |
t.isObject = d, | |
t.paramCheck = p, | |
t.getRealRoute = h, | |
t.getRealRouteWithProtocol = v, | |
t.getPlatform = g, | |
t.urlEncodeFormData = _, | |
t.addQueryStringToUrl = y, | |
t.validateUrl = b, | |
t.assign = m, | |
t.encodeUrlQuery = w, | |
t.transWxmlToHtml = k, | |
t.removeHtmlSuffixFromUrl = S, | |
t.extend = C, | |
t.arrayBufferToBase64 = P, | |
t.base64ToArrayBuffer = M, | |
t.blobToArrayBuffer = I, | |
t.convertObjectValueToString = O, | |
t.guid = T, | |
t.checkClientVersion = E, | |
t.renameProperty = x, | |
t.compareVersion = A; | |
var B = o(3) | |
, D = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(B) | |
, R = (t.anyTypeToString = c(s, "anyTypeToString"), | |
t.stringToAnyType = c(l, "stringToAnyType"), | |
t.AppServiceSdkKnownError = function(e) { | |
function t(e) { | |
a(this, t); | |
var n = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, "APP-SERVICE-SDK:" + e)); | |
return n.type = "AppServiceSdkKnownError", | |
n | |
} | |
return u(t, e), | |
t | |
}(Error)) | |
, N = (t.ThirdScriptError = function(e) { | |
function t(e) { | |
a(this, t); | |
var n = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, "" + e)); | |
return n.type = "ThirdScriptError", | |
n | |
} | |
return u(t, e), | |
t | |
}(Error), | |
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=") | |
, L = L || function(e) { | |
for (var t, n, o = String(e), r = "", a = 0, i = N; o.charAt(0 | a) || (i = "=", | |
a % 1); r += i.charAt(63 & t >> 8 - a % 1 * 8)) { | |
if ((n = o.charCodeAt(a += .75)) > 255) | |
throw new Error('"btoa" failed'); | |
t = t << 8 | n | |
} | |
return r | |
} | |
, F = F || function(e) { | |
var t = String(e).replace(/=+$/, "") | |
, n = ""; | |
if (t.length % 4 == 1) | |
throw new Error('"atob" failed'); | |
for (var o, r, a = 0, i = 0; r = t.charAt(i++); ~r && (o = a % 4 ? 64 * o + r : r, | |
a++ % 4) ? n += String.fromCharCode(255 & o >> (-2 * a & 6)) : 0) | |
r = N.indexOf(r); | |
return n | |
} | |
, W = D.default.clientVersion || 1 | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(4) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, a = void 0; | |
a = r.default.__wxConfig ? r.default.__wxConfig : __wxConfig, | |
a.onReady(function() { | |
Object.assign(a, __wxConfig) | |
}), | |
t.default = a | |
} | |
, function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var n = void 0; | |
n = "undefined" != typeof NativeGlobal ? NativeGlobal : {}, | |
t.default = n | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(6); | |
t.default = { | |
lastRoute: "", | |
query: {}, | |
runningStatus: "active", | |
navigatorLock: !1, | |
openUrlLock: !1, | |
possessingBackgroundAudioPlayer: !1, | |
webviewEventCallback: null, | |
hanged: !1, | |
appStatus: o.AppStatus.FORE_GROUND | |
} | |
} | |
, function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
t.LOG_LIMIT = 1024, | |
t.AppStatus = { | |
FORE_GROUND: 0, | |
BACK_GROUND: 1, | |
LOCK: 2 | |
}, | |
t.BackgroudAPIBlackList = [], | |
t.NotActiveAPIBlackList = [] | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.reportJSAPI = void 0; | |
var o = n(1) | |
, r = {} | |
, a = {} | |
, i = {} | |
, u = 0 | |
, c = function(e, t) { | |
var n = Object.keys(t).map(function(n) { | |
return Object.keys(t[n]).map(function(o) { | |
return { | |
func: n, | |
result: e, | |
errMsg: o, | |
count: t[n][o] | |
} | |
}) | |
}); | |
return [].concat.apply([], n) | |
} | |
, s = function() { | |
r = {}, | |
a = {}, | |
i = {} | |
} | |
, l = function() { | |
var e = c(1, r) | |
, t = c(2, a) | |
, n = c(3, i) | |
, u = [].concat(e, t, n); | |
0 !== u.length && (0, | |
o.invokeMethod)("reportRealtimeAction", { | |
actionData: JSON.stringify({ | |
business: "mmbizwxajsapi", | |
dataType: 1, | |
dataArray: u, | |
appType: Reporter.getAppType() | |
}) | |
}), | |
s() | |
} | |
, f = function(e, t, n, o, c) { | |
var s = t ? r : n ? a : i; | |
s[e] = s[e] || {}, | |
s[e][c] = (s[e][c] || 0) + 1, | |
Date.now() - u >= 6e4 && (u = Date.now(), | |
setTimeout(l, 6e4)) | |
}; | |
t.reportJSAPI = f | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.listApisWithCategoryValue = t.apiCategoryValue = t.categories = void 0; | |
var r = n(9) | |
, a = o(r) | |
, i = n(10) | |
, u = o(i) | |
, c = n(11) | |
, s = o(c) | |
, l = t.categories = { | |
sample: a.default, | |
ui: u.default, | |
log: s.default | |
}; | |
t.apiCategoryValue = function(e, t) { | |
return l[t][e] | |
} | |
, | |
t.listApisWithCategoryValue = function(e, t) { | |
var n = l[e] | |
, o = []; | |
for (var r in n) | |
n[r] === t && o.push(r); | |
return o | |
} | |
} | |
, function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var n = { | |
invokeWebviewMethod: null, | |
drawCanvas: null, | |
createContext: null, | |
createCanvasContext: null, | |
canvasToTempFilePath: null, | |
canvasGetImageData: null, | |
canvasPutImageData: null, | |
getShareInfo: null, | |
pageScrollTo: null, | |
chooseInvoiceTitle: null, | |
ShareInfoStorage: null, | |
arrayBufferToBase64: null, | |
base64ToArrayBuffer: null, | |
openSetting: null, | |
getExtConfig: null, | |
chooseMedia: null, | |
chooseWeChatContact: null, | |
uploadEncryptedFileToCDN: null, | |
onUploadEncryptedFileToCDNProgress: null, | |
getExtConfigSync: null, | |
showShareMenu: null, | |
hideShareMenu: null, | |
updateShareMenu: null, | |
openUrl: null, | |
setNavigationBarColor: null, | |
setNavigationBarAlpha: null, | |
_getRealRoute: null, | |
vibrateShort: null, | |
vibrateLong: null, | |
getSetting: null, | |
checkIsSupportFacialRecognition: null, | |
startFacialRecognitionVerify: null, | |
startFacialRecognitionVerifyAndUploadVideo: null, | |
sendBizRedPacket: null, | |
sendGoldenRedPacket: null, | |
openGoldenRedPacketDetail: null, | |
addPhoneContact: null, | |
setScreenBrightness: null, | |
getScreenBrightness: null, | |
getWeRunData: null, | |
uploadWeRunData: null, | |
canIUse: null, | |
setPageStyle: null, | |
triggerGettingWidgetData: null, | |
navigateToMiniProgram: null, | |
navigateToDevMiniProgram: null, | |
navigateBackMiniProgram: null, | |
setNavigationBarRightButton: null, | |
onTapNavigationBarRightButton: null, | |
setTopBarText: null, | |
setTabBarBadge: null, | |
removeTabBarBadge: null, | |
showTabBarRedDot: null, | |
hideTabBarRedDot: null, | |
showTabBar: null, | |
hideTabBar: null, | |
setTabBarStyle: null, | |
setTabBarItem: null, | |
setEnableDebug: null, | |
captureScreen: null, | |
onUserCaptureScreen: null, | |
setKeepScreenOn: null, | |
checkIsSupportSoterAuthentication: null, | |
startSoterAuthentication: null, | |
checkIsSoterEnrolledInDevice: null, | |
openDeliveryList: null, | |
reportIDKey: null, | |
reportKeyValue: null, | |
setNavigationBarTitle: null, | |
showNavigationBarLoading: null, | |
hideNavigationBarLoading: null, | |
startPullDownRefresh: null, | |
stopPullDownRefresh: null, | |
operateWXData: null, | |
getOpenDeviceId: null, | |
openBluetoothAdapter: null, | |
closeBluetoothAdapter: null, | |
getBluetoothAdapterState: null, | |
onBluetoothAdapterStateChange: null, | |
startBluetoothDevicesDiscovery: null, | |
stopBluetoothDevicesDiscovery: null, | |
getBluetoothDevices: null, | |
getConnectedBluetoothDevices: null, | |
createBLEConnection: null, | |
closeBLEConnection: null, | |
getBLEDeviceServices: null, | |
getBLEDeviceCharacteristics: null, | |
notifyBLECharacteristicValueChanged: null, | |
notifyBLECharacteristicValueChange: null, | |
readBLECharacteristicValue: null, | |
writeBLECharacteristicValue: null, | |
onBluetoothDeviceFound: null, | |
onBLEConnectionStateChanged: null, | |
onBLEConnectionStateChange: null, | |
onBLECharacteristicValueChange: null, | |
startBeaconDiscovery: null, | |
stopBeaconDiscovery: null, | |
getBeacons: null, | |
onBeaconUpdate: null, | |
onBeaconServiceChange: null, | |
startWifi: null, | |
stopWifi: null, | |
getWifiList: null, | |
getConnectedWifi: null, | |
connectWifi: null, | |
presetWifiList: null, | |
setWifiList: null, | |
onGetWifiList: null, | |
onWifiConnected: null, | |
onEvaluateWifi: null, | |
getHCEState: null, | |
startHCE: null, | |
stopHCE: null, | |
sendHCEMessage: null, | |
onHCEMessage: null, | |
redirectTo: null, | |
reLaunch: null, | |
navigateTo: null, | |
switchTab: null, | |
navigateBack: null, | |
_triggerBeforeUnloadPage: null, | |
_triggerBeforeShareAppMessage: null, | |
navigateBackApplication: null, | |
launchApplication: null, | |
getStorage: null, | |
getStorageSync: null, | |
setStorage: null, | |
setStorageSync: null, | |
removeStorage: null, | |
removeStorageSync: null, | |
clearStorage: null, | |
clearStorageSync: null, | |
getStorageInfo: null, | |
getStorageInfoSync: null, | |
request: null, | |
connectSocket: null, | |
closeSocket: null, | |
sendSocketMessage: null, | |
onSocketOpen: null, | |
onSocketClose: null, | |
onSocketMessage: null, | |
onSocketError: null, | |
uploadFile: null, | |
downloadFile: null, | |
addNativeDownloadTask: null, | |
chooseImage: null, | |
previewImage: null, | |
getImageInfo: null, | |
saveImageToPhotosAlbum: null, | |
startRecord: null, | |
stopRecord: null, | |
playVoice: null, | |
pauseVoice: null, | |
stopVoice: null, | |
onVoicePlayEnd: null, | |
chooseVideo: null, | |
saveVideoToPhotosAlbum: null, | |
getLocation: null, | |
openLocation: null, | |
chooseLocation: null, | |
startLocationUpdate: null, | |
stopLocationUpdate: null, | |
onLocationChange: null, | |
getNetworkType: null, | |
onNetworkStatusChange: null, | |
getSystemInfo: null, | |
getSystemInfoSync: null, | |
getBatteryInfo: null, | |
getBatteryInfoSync: null, | |
startAccelerometer: null, | |
stopAccelerometer: null, | |
onAccelerometerChange: null, | |
startCompass: null, | |
stopCompass: null, | |
onCompassChange: null, | |
reportAction: null, | |
getBackgroundAudioManager: null, | |
getRecorderManager: null, | |
getBackgroundAudioPlayerState: null, | |
playBackgroundAudio: null, | |
pauseBackgroundAudio: null, | |
seekBackgroundAudio: null, | |
stopBackgroundAudio: null, | |
onBackgroundAudioPlay: null, | |
onBackgroundAudioPause: null, | |
onBackgroundAudioStop: null, | |
login: null, | |
checkSession: null, | |
authorize: null, | |
getUserInfo: null, | |
requestPayment: null, | |
verifyPaymentPassword: null, | |
bindPaymentCard: null, | |
requestPaymentToBank: null, | |
requestVirtualPayment: null, | |
openOfflinePayView: null, | |
openWCPayCardList: null, | |
requestMallPayment: null, | |
addCard: null, | |
openCard: null, | |
scanCode: null, | |
openQRCode: null, | |
chooseAddress: null, | |
saveFile: null, | |
openDocument: null, | |
getSavedFileList: null, | |
getSavedFileInfo: null, | |
getFileInfo: null, | |
removeSavedFile: null, | |
getFileSystemManager: null, | |
chooseContact: null, | |
removeUserCloudStorage: null, | |
setUserCloudStorage: null, | |
makePhoneCall: null, | |
makeVoIPCall: null, | |
onAppRoute: null, | |
onAppRouteDone: null, | |
onAppEnterBackground: null, | |
onAppEnterForeground: null, | |
onAppUnhang: null, | |
onPageReload: null, | |
onPageNotFound: null, | |
offPageNotFound: null, | |
onAppShow: null, | |
offAppShow: null, | |
onAppHide: null, | |
offAppHide: null, | |
onError: null, | |
offError: null, | |
getLaunchOptionsSync: null, | |
createAnimation: null, | |
createInnerAudioContext: null, | |
createAudioContext: null, | |
createVideoContext: null, | |
createMapContext: null, | |
createCameraContext: null, | |
createLivePlayerContext: null, | |
createLivePusherContext: null, | |
onWebviewEvent: null, | |
onNativeEvent: null, | |
hideKeyboard: null, | |
getPublicLibVersion: null, | |
showModal: null, | |
showToast: null, | |
hideToast: null, | |
showLoading: null, | |
hideLoading: null, | |
showActionSheet: null, | |
reportAnalytics: null, | |
getClipboardData: null, | |
setClipboardData: null, | |
createSelectorQuery: null, | |
createIntersectionObserver: null, | |
updatePerfData: null, | |
traceEvent: null, | |
onMemoryWarning: null, | |
getUpdateManager: null, | |
createWorker: null, | |
voiceSplitJoint: null, | |
uploadSilkVoice: null, | |
downloadSilkVoice: null, | |
getResPath: null, | |
setResPath: null, | |
env: null, | |
appStatus: null, | |
hanged: null, | |
getLogManager: null, | |
loadFontFace: null, | |
addWeRunData: null, | |
setBackgroundColor: null, | |
setBackgroundTextStyle: null, | |
getMenuButtonBoundingClientRect: null, | |
calRqt: null, | |
getAvailableAudioSources: null, | |
reportMonitor: null | |
}; | |
t.default = n | |
} | |
, function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var n = { | |
invokeWebviewMethod: 0, | |
drawCanvas: 20, | |
createContext: 20, | |
createCanvasContext: 20, | |
canvasToTempFilePath: 20, | |
canvasGetImageData: 20, | |
canvasPutImageData: 20, | |
getShareInfo: 30, | |
pageScrollTo: 30, | |
chooseInvoiceTitle: 10, | |
ShareInfoStorage: 10, | |
arrayBufferToBase64: 10, | |
base64ToArrayBuffer: 10, | |
openSetting: 30, | |
getExtConfig: 0, | |
chooseMedia: 20, | |
chooseWeChatContact: 20, | |
uploadEncryptedFileToCDN: 10, | |
onUploadEncryptedFileToCDNProgress: 10, | |
getExtConfigSync: 0, | |
showShareMenu: 30, | |
hideShareMenu: 30, | |
updateShareMenu: 30, | |
openUrl: 20, | |
setNavigationBarColor: 30, | |
setNavigationBarAlpha: 30, | |
_getRealRoute: 20, | |
vibrateShort: 10, | |
vibrateLong: 10, | |
getSetting: 10, | |
checkIsSupportFacialRecognition: 10, | |
startFacialRecognitionVerify: 20, | |
startFacialRecognitionVerifyAndUploadVideo: 20, | |
sendBizRedPacket: 10, | |
sendGoldenRedPacket: 10, | |
openGoldenRedPacketDetail: 10, | |
addPhoneContact: 10, | |
setScreenBrightness: 20, | |
getScreenBrightness: 20, | |
getWeRunData: 10, | |
uploadWeRunData: 10, | |
addWeRunData: 10, | |
canIUse: 0, | |
setPageStyle: 30, | |
triggerGettingWidgetData: 10, | |
navigateToMiniProgram: 30, | |
navigateToDevMiniProgram: 30, | |
navigateBackMiniProgram: 30, | |
setNavigationBarRightButton: 30, | |
onTapNavigationBarRightButton: 30, | |
setTopBarText: 30, | |
setTabBarBadge: 30, | |
removeTabBarBadge: 30, | |
showTabBarRedDot: 30, | |
hideTabBarRedDot: 30, | |
showTabBar: 30, | |
hideTabBar: 30, | |
setTabBarStyle: 30, | |
setTabBarItem: 30, | |
setEnableDebug: 30, | |
captureScreen: 30, | |
onUserCaptureScreen: 30, | |
setKeepScreenOn: 10, | |
checkIsSupportSoterAuthentication: 10, | |
startSoterAuthentication: 10, | |
checkIsSoterEnrolledInDevice: 10, | |
openDeliveryList: 20, | |
reportIDKey: 0, | |
reportKeyValue: 0, | |
setNavigationBarTitle: 30, | |
showNavigationBarLoading: 30, | |
hideNavigationBarLoading: 30, | |
startPullDownRefresh: 30, | |
stopPullDownRefresh: 30, | |
operateWXData: 10, | |
getOpenDeviceId: 10, | |
openBluetoothAdapter: 10, | |
closeBluetoothAdapter: 10, | |
getBluetoothAdapterState: 10, | |
onBluetoothAdapterStateChange: 10, | |
startBluetoothDevicesDiscovery: 10, | |
stopBluetoothDevicesDiscovery: 10, | |
getBluetoothDevices: 10, | |
getConnectedBluetoothDevices: 10, | |
createBLEConnection: 10, | |
closeBLEConnection: 10, | |
getBLEDeviceServices: 10, | |
getBLEDeviceCharacteristics: 10, | |
notifyBLECharacteristicValueChanged: 10, | |
notifyBLECharacteristicValueChange: 10, | |
readBLECharacteristicValue: 10, | |
writeBLECharacteristicValue: 10, | |
onBluetoothDeviceFound: 10, | |
onBLEConnectionStateChanged: 10, | |
onBLEConnectionStateChange: 10, | |
onBLECharacteristicValueChange: 10, | |
startBeaconDiscovery: 10, | |
stopBeaconDiscovery: 10, | |
getBeacons: 10, | |
onBeaconUpdate: 10, | |
onBeaconServiceChange: 10, | |
startWifi: 10, | |
stopWifi: 10, | |
getWifiList: 10, | |
getConnectedWifi: 10, | |
connectWifi: 10, | |
presetWifiList: 10, | |
setWifiList: 10, | |
onGetWifiList: 10, | |
onWifiConnected: 10, | |
onEvaluateWifi: 10, | |
getHCEState: 10, | |
startHCE: 10, | |
stopHCE: 10, | |
sendHCEMessage: 10, | |
onHCEMessage: 10, | |
redirectTo: 30, | |
reLaunch: 30, | |
navigateTo: 30, | |
switchTab: 30, | |
navigateBack: 30, | |
_triggerBeforeUnloadPage: 30, | |
_triggerBeforeShareAppMessage: 30, | |
navigateBackApplication: 30, | |
launchApplication: 30, | |
getStorage: 10, | |
getStorageSync: 10, | |
setStorage: 10, | |
setStorageSync: 10, | |
removeStorage: 10, | |
removeStorageSync: 10, | |
clearStorage: 10, | |
clearStorageSync: 10, | |
getStorageInfo: 10, | |
getStorageInfoSync: 10, | |
request: 10, | |
connectSocket: 10, | |
closeSocket: 10, | |
sendSocketMessage: 10, | |
onSocketOpen: 10, | |
onSocketClose: 10, | |
onSocketMessage: 10, | |
onSocketError: 10, | |
uploadFile: 10, | |
downloadFile: 10, | |
addNativeDownloadTask: 10, | |
chooseImage: 20, | |
previewImage: 20, | |
getImageInfo: 10, | |
saveImageToPhotosAlbum: 10, | |
startRecord: 20, | |
stopRecord: 20, | |
playVoice: 20, | |
pauseVoice: 20, | |
stopVoice: 20, | |
onVoicePlayEnd: 20, | |
chooseVideo: 20, | |
saveVideoToPhotosAlbum: 10, | |
getLocation: 20, | |
openLocation: 20, | |
chooseLocation: 20, | |
startLocationUpdate: 20, | |
stopLocationUpdate: 20, | |
onLocationChange: 20, | |
getNetworkType: 0, | |
onAppRoute: 30, | |
onAppRouteDone: 30, | |
onAppEnterBackground: 30, | |
onAppEnterForeground: 30, | |
onAppUnhang: 30, | |
onPageReload: 30, | |
onPageNotFound: 30, | |
offPageNotFound: 30, | |
onAppShow: 30, | |
offAppShow: 30, | |
onAppHide: 30, | |
offAppHide: 30, | |
onError: 30, | |
offError: 30, | |
getLaunchOptionsSync: 30, | |
createAnimation: 0, | |
createInnerAudioContext: 20, | |
createAudioContext: 20, | |
createVideoContext: 20, | |
createMapContext: 20, | |
createCameraContext: 20, | |
createLivePlayerContext: 20, | |
createLivePusherContext: 20, | |
onWebviewEvent: 20, | |
onNativeEvent: 20, | |
hideKeyboard: 20, | |
getPublicLibVersion: 0, | |
showModal: 20, | |
showToast: 20, | |
hideToast: 20, | |
showLoading: 20, | |
hideLoading: 20, | |
showActionSheet: 20, | |
reportAnalytics: 10, | |
getClipboardData: 20, | |
setClipboardData: 20, | |
createSelectorQuery: 0, | |
createIntersectionObserver: 0, | |
updatePerfData: 10, | |
traceEvent: 10, | |
onMemoryWarning: 10, | |
getUpdateManager: 10, | |
createWorker: 10, | |
voiceSplitJoint: 10, | |
uploadSilkVoice: 10, | |
downloadSilkVoice: 10, | |
getResPath: 0, | |
setResPath: 0, | |
env: 0, | |
appStatus: 0, | |
hanged: 0, | |
getLogManager: 0, | |
loadFontFace: 20, | |
setBackgroundColor: 30, | |
setBackgroundTextStyle: 30, | |
getMenuButtonBoundingClientRect: 20, | |
calRqt: 10, | |
onNetworkStatusChange: 10, | |
getSystemInfo: 10, | |
getSystemInfoSync: 10, | |
getBatteryInfo: 10, | |
getBatteryInfoSync: 10, | |
startAccelerometer: 10, | |
stopAccelerometer: 10, | |
onAccelerometerChange: 10, | |
startCompass: 10, | |
stopCompass: 10, | |
onCompassChange: 10, | |
reportAction: 10, | |
getBackgroundAudioManager: 10, | |
getRecorderManager: 10, | |
getBackgroundAudioPlayerState: 10, | |
playBackgroundAudio: 10, | |
pauseBackgroundAudio: 10, | |
seekBackgroundAudio: 10, | |
stopBackgroundAudio: 10, | |
onBackgroundAudioPlay: 10, | |
onBackgroundAudioPause: 10, | |
onBackgroundAudioStop: 10, | |
login: 10, | |
checkSession: 10, | |
authorize: 20, | |
getUserInfo: 20, | |
requestPayment: 20, | |
verifyPaymentPassword: 20, | |
bindPaymentCard: 20, | |
requestPaymentToBank: 20, | |
requestVirtualPayment: 20, | |
openOfflinePayView: 20, | |
openWCPayCardList: 20, | |
requestMallPayment: 20, | |
addCard: 20, | |
openCard: 20, | |
scanCode: 20, | |
openQRCode: 20, | |
chooseAddress: 20, | |
saveFile: 10, | |
openDocument: 20, | |
getSavedFileList: 10, | |
getSavedFileInfo: 10, | |
getFileInfo: 10, | |
removeSavedFile: 10, | |
getFileSystemManager: 10, | |
chooseContact: 20, | |
removeUserCloudStorage: 10, | |
setUserCloudStorage: 10, | |
makePhoneCall: 20, | |
makeVoIPCall: 20, | |
getAvailableAudioSources: 10, | |
reportMonitor: 10 | |
}; | |
t.default = n | |
} | |
, function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var n = { | |
invokeWebviewMethod: 0, | |
drawCanvas: 0, | |
createContext: 0, | |
createCanvasContext: 2, | |
canvasToTempFilePath: 2, | |
canvasGetImageData: 2, | |
canvasPutImageData: 2, | |
getShareInfo: 1, | |
pageScrollTo: 1, | |
chooseInvoiceTitle: 1, | |
ShareInfoStorage: 0, | |
arrayBufferToBase64: 0, | |
base64ToArrayBuffer: 0, | |
openSetting: 1, | |
getExtConfig: 1, | |
chooseMedia: 0, | |
chooseWeChatContact: 0, | |
uploadEncryptedFileToCDN: 0, | |
onUploadEncryptedFileToCDNProgress: 0, | |
getExtConfigSync: 2, | |
showShareMenu: 1, | |
hideShareMenu: 1, | |
updateShareMenu: 1, | |
openUrl: 0, | |
setNavigationBarColor: 1, | |
setNavigationBarAlpha: 0, | |
_getRealRoute: 0, | |
vibrateShort: 1, | |
vibrateLong: 1, | |
getSetting: 1, | |
checkIsSupportFacialRecognition: 0, | |
startFacialRecognitionVerify: 0, | |
startFacialRecognitionVerifyAndUploadVideo: 0, | |
sendBizRedPacket: 0, | |
sendGoldenRedPacket: 0, | |
openGoldenRedPacketDetail: 0, | |
addPhoneContact: 1, | |
setScreenBrightness: 1, | |
getScreenBrightness: 1, | |
getWeRunData: 1, | |
canIUse: 1, | |
setPageStyle: 0, | |
triggerGettingWidgetData: 0, | |
navigateToMiniProgram: 1, | |
navigateToDevMiniProgram: 0, | |
navigateBackMiniProgram: 1, | |
setNavigationBarRightButton: 0, | |
onTapNavigationBarRightButton: 0, | |
setTopBarText: 1, | |
setTabBarBadge: 1, | |
removeTabBarBadge: 1, | |
showTabBarRedDot: 1, | |
hideTabBarRedDot: 1, | |
showTabBar: 1, | |
hideTabBar: 1, | |
setTabBarStyle: 1, | |
setTabBarItem: 1, | |
setEnableDebug: 1, | |
captureScreen: 0, | |
onUserCaptureScreen: 3, | |
setKeepScreenOn: 1, | |
checkIsSupportSoterAuthentication: 1, | |
startSoterAuthentication: 1, | |
checkIsSoterEnrolledInDevice: 1, | |
openDeliveryList: 0, | |
reportIDKey: 0, | |
reportKeyValue: 0, | |
setNavigationBarTitle: 1, | |
showNavigationBarLoading: 1, | |
hideNavigationBarLoading: 1, | |
startPullDownRefresh: 1, | |
stopPullDownRefresh: 1, | |
operateWXData: 0, | |
getOpenDeviceId: 0, | |
openBluetoothAdapter: 1, | |
closeBluetoothAdapter: 1, | |
getBluetoothAdapterState: 1, | |
onBluetoothAdapterStateChange: 3, | |
startBluetoothDevicesDiscovery: 1, | |
stopBluetoothDevicesDiscovery: 1, | |
getBluetoothDevices: 1, | |
getConnectedBluetoothDevices: 1, | |
createBLEConnection: 1, | |
closeBLEConnection: 1, | |
getBLEDeviceServices: 1, | |
getBLEDeviceCharacteristics: 1, | |
notifyBLECharacteristicValueChanged: 1, | |
notifyBLECharacteristicValueChange: 1, | |
readBLECharacteristicValue: 1, | |
writeBLECharacteristicValue: 1, | |
onBluetoothDeviceFound: 3, | |
onBLEConnectionStateChanged: 3, | |
onBLEConnectionStateChange: 3, | |
onBLECharacteristicValueChange: 3, | |
startBeaconDiscovery: 1, | |
stopBeaconDiscovery: 1, | |
getBeacons: 1, | |
onBeaconUpdate: 1, | |
onBeaconServiceChange: 1, | |
startWifi: 1, | |
stopWifi: 1, | |
getWifiList: 1, | |
getConnectedWifi: 1, | |
connectWifi: 1, | |
presetWifiList: 1, | |
setWifiList: 1, | |
onGetWifiList: 3, | |
onWifiConnected: 3, | |
onEvaluateWifi: 3, | |
getHCEState: 1, | |
startHCE: 1, | |
stopHCE: 1, | |
sendHCEMessage: 1, | |
onHCEMessage: 3, | |
redirectTo: 1, | |
reLaunch: 1, | |
navigateTo: 1, | |
switchTab: 1, | |
navigateBack: 1, | |
_triggerBeforeUnloadPage: 0, | |
_triggerBeforeShareAppMessage: 0, | |
navigateBackApplication: 0, | |
launchApplication: 0, | |
getStorage: 1, | |
getStorageSync: 2, | |
setStorage: 1, | |
setStorageSync: 2, | |
removeStorage: 1, | |
removeStorageSync: 2, | |
clearStorage: 1, | |
clearStorageSync: 2, | |
getStorageInfo: 1, | |
getStorageInfoSync: 2, | |
request: 1, | |
connectSocket: 1, | |
closeSocket: 1, | |
sendSocketMessage: 1, | |
onSocketOpen: 3, | |
onSocketClose: 3, | |
onSocketMessage: 3, | |
onSocketError: 3, | |
uploadFile: 1, | |
downloadFile: 1, | |
addNativeDownloadTask: 0, | |
chooseImage: 1, | |
previewImage: 1, | |
getImageInfo: 1, | |
saveImageToPhotosAlbum: 1, | |
startRecord: 1, | |
stopRecord: 1, | |
playVoice: 1, | |
pauseVoice: 1, | |
stopVoice: 1, | |
onVoicePlayEnd: 1, | |
chooseVideo: 1, | |
saveVideoToPhotosAlbum: 1, | |
getLocation: 1, | |
openLocation: 1, | |
chooseLocation: 1, | |
startLocationUpdate: 0, | |
stopLocationUpdate: 0, | |
onLocationChange: 0, | |
getNetworkType: 1, | |
onNetworkStatusChange: 3, | |
getSystemInfo: 1, | |
getSystemInfoSync: 2, | |
getBatteryInfo: 1, | |
getBatteryInfoSync: 2, | |
startAccelerometer: 1, | |
stopAccelerometer: 1, | |
onAccelerometerChange: 3, | |
startCompass: 1, | |
stopCompass: 1, | |
onCompassChange: 3, | |
reportAction: 0, | |
getBackgroundAudioManager: 2, | |
getRecorderManager: 2, | |
getBackgroundAudioPlayerState: 1, | |
playBackgroundAudio: 1, | |
pauseBackgroundAudio: 1, | |
seekBackgroundAudio: 1, | |
stopBackgroundAudio: 1, | |
onBackgroundAudioPlay: 3, | |
onBackgroundAudioPause: 3, | |
onBackgroundAudioStop: 3, | |
login: 1, | |
checkSession: 1, | |
authorize: 1, | |
getUserInfo: 1, | |
requestPayment: 1, | |
verifyPaymentPassword: 0, | |
bindPaymentCard: 0, | |
requestPaymentToBank: 0, | |
requestVirtualPayment: 0, | |
openOfflinePayView: 0, | |
openWCPayCardList: 0, | |
requestMallPayment: 0, | |
addCard: 1, | |
openCard: 1, | |
scanCode: 1, | |
openQRCode: 1, | |
chooseAddress: 1, | |
saveFile: 1, | |
openDocument: 1, | |
getSavedFileList: 1, | |
getSavedFileInfo: 1, | |
getFileInfo: 1, | |
removeSavedFile: 1, | |
getFileSystemManager: 0, | |
chooseContact: 0, | |
removeUserCloudStorage: 0, | |
setUserCloudStorage: 0, | |
makePhoneCall: 1, | |
makeVoIPCall: 0, | |
onAppRoute: 0, | |
onAppRouteDone: 0, | |
onAppEnterBackground: 0, | |
onAppEnterForeground: 0, | |
onAppUnhang: 0, | |
onPageReload: 0, | |
onPageNotFound: 0, | |
createAnimation: 2, | |
createInnerAudioContext: 2, | |
createAudioContext: 0, | |
createVideoContext: 2, | |
createMapContext: 2, | |
createCameraContext: 2, | |
createLivePlayerContext: 2, | |
createLivePusherContext: 2, | |
onWebviewEvent: 0, | |
onNativeEvent: 0, | |
hideKeyboard: 0, | |
getPublicLibVersion: 0, | |
showModal: 1, | |
showToast: 1, | |
hideToast: 1, | |
showLoading: 1, | |
hideLoading: 1, | |
showActionSheet: 1, | |
reportAnalytics: 0, | |
getClipboardData: 1, | |
setClipboardData: 1, | |
createSelectorQuery: 1, | |
createIntersectionObserver: 1, | |
updatePerfData: 0, | |
traceEvent: 0, | |
onMemoryWarning: 0, | |
getUpdateManager: 2, | |
createWorker: 2, | |
voiceSplitJoint: 0, | |
uploadSilkVoice: 0, | |
downloadSilkVoice: 0, | |
getResPath: 0, | |
setResPath: 0, | |
env: 0, | |
appStatus: 0, | |
hanged: 0, | |
getLogManager: 0, | |
loadFontFace: 1, | |
uploadWeRunData: 0, | |
addWeRunData: 0, | |
setBackgroundColor: 1, | |
setBackgroundTextStyle: 1, | |
getMenuButtonBoundingClientRect: 1, | |
onAppShow: 3, | |
offAppShow: 0, | |
onAppHide: 3, | |
offAppHide: 0, | |
onError: 3, | |
offError: 0, | |
getLaunchOptionsSync: 2, | |
calRqt: 0, | |
offPageNotFound: 0, | |
getAvailableAudioSources: 1, | |
reportMonitor: 1 | |
}; | |
t.default = n | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.createAudioContext = t.createVideoContext = t.createLivePusherContext = t.createLivePlayerContext = t.createInnerAudioContext = t.createMapContext = t.createCameraContext = void 0; | |
var r = n(13); | |
Object.defineProperty(t, "createCameraContext", { | |
enumerable: !0, | |
get: function() { | |
return r.createCameraContext | |
} | |
}); | |
var a = n(80); | |
Object.defineProperty(t, "createMapContext", { | |
enumerable: !0, | |
get: function() { | |
return a.createMapContext | |
} | |
}); | |
var i = n(82); | |
Object.defineProperty(t, "createInnerAudioContext", { | |
enumerable: !0, | |
get: function() { | |
return i.createInnerAudioContext | |
} | |
}); | |
var u = n(109); | |
Object.defineProperty(t, "createLivePlayerContext", { | |
enumerable: !0, | |
get: function() { | |
return u.createLivePlayerContext | |
} | |
}); | |
var c = n(111); | |
Object.defineProperty(t, "createLivePusherContext", { | |
enumerable: !0, | |
get: function() { | |
return c.createLivePusherContext | |
} | |
}), | |
n(135); | |
var s = n(144) | |
, l = o(s) | |
, f = n(145) | |
, d = o(f); | |
t.createVideoContext = l.default, | |
t.createAudioContext = d.default | |
} | |
, function(e, t, n) { | |
function o(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function a(e, t, n) { | |
var o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : ""; | |
return new m(t,o) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.cameraInfo = t.createCameraContext = void 0; | |
var i = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}() | |
, u = n(1) | |
, c = n(2) | |
, s = n(14) | |
, l = n(16) | |
, f = n(38) | |
, d = {} | |
, p = {} | |
, h = {} | |
, v = [] | |
, g = {} | |
, _ = new s.EventEmitter2 | |
, y = new WeakMap | |
, b = function(e) { | |
var t = [] | |
, n = 1; | |
return (0, | |
u.subscribe)(e, function(e) { | |
t.forEach(function(t) { | |
var n = t[0] | |
, o = t[1]; | |
n.cid === e.cid && n.cameraId === e.cameraId && o(e) | |
}), | |
t = [] | |
}), | |
function(e, o) { | |
e.cid = n++, | |
t.push([e, o]) | |
} | |
}("onOperateCameraCallback"); | |
(0, | |
u.subscribe)("cameraInserted", function(e, t) { | |
var n = e.cameraId | |
, o = e.pluginId | |
, r = e.bindings; | |
d[t + "_" + o] = n, | |
p[t + "_" + n] = r, | |
_.emit("cameraInsert") | |
}), | |
(0, | |
u.subscribe)("cameraUpdated", function(e, t) { | |
var n = e.cameraId | |
, o = e.hidden; | |
h[t + "_" + n] = o | |
}), | |
(0, | |
u.subscribe)("cameraRemoved", function(e, t) { | |
var n = e.cameraId | |
, o = e.pluginId; | |
delete d[t + "_" + o], | |
delete p[t + "_" + n], | |
delete h[t + "_" + n] | |
}), | |
(0, | |
l.onAppRouteDone)(function(e) { | |
if ("function" == typeof r.getCurrentPagesByDomain) { | |
var t = r.getCurrentPagesByDomain("") | |
, n = t.map(function(e) { | |
return e.__wxWebviewId__ | |
}); | |
Object.keys(d).forEach(function(e) { | |
var t = e.split("_").shift(); | |
-1 === n.indexOf(Number(t)) && (delete p[t + "_" + d[e]], | |
delete h[t + "_" + d[e]], | |
delete d[e], | |
g[t] && (g[t].forEach(function(e) { | |
clearTimeout(e) | |
}), | |
delete g[t])) | |
}) | |
} | |
}), | |
(0, | |
u.onMethod)("onCameraVideoTaken", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; | |
v.forEach(function(n) { | |
n(e, t) | |
}) | |
}); | |
var m = function() { | |
function e(t, n) { | |
o(this, e), | |
this.webviewId = t, | |
this.pluginId = n | |
} | |
return i(e, [{ | |
key: "_invoke", | |
value: function(e, t) { | |
var n = (0, | |
c.getPlatform)(); | |
t.type = e, | |
"ios" === n || "android" === n ? (0, | |
u.invokeMethod)("operateCamera", t) : (b(t, function(n) { | |
function o(t, n) { | |
(0, | |
u.invokeMethod)("base64ToTempFilePath", Object.assign({ | |
fileType: "jpg", | |
base64Data: r | |
}, t), { | |
beforeAll: function(o) { | |
"takePhoto" === t.type ? o.tempImagePath = o.tempFilePath : o.tempFilePath && (o.tempThumbPath = o.tempFilePath), | |
n && (o.tempVideoPath = n), | |
o.errMsg = o.errMsg.replace("base64ToTempFilePath", e), | |
delete o.tempFilePath | |
} | |
}) | |
} | |
var r = n.imageData | |
, a = n.videoData; | |
a ? (0, | |
u.invokeMethod)("base64ToTempFilePath", { | |
fileType: "webm", | |
base64Data: a, | |
complete: function(e) { | |
o(t, e.tempFilePath) | |
} | |
}) : "startRecord" === e ? ("function" == typeof t.success && t.success({ | |
errMsg: "startRecord:ok" | |
}), | |
"function" == typeof t.complete && t.complete({ | |
errMsg: "startRecord:ok" | |
})) : o(t) | |
}), | |
(0, | |
u.publish)("operateCamera", t, [this.webviewId])) | |
} | |
}, { | |
key: "_invokeMethod", | |
value: function(e, t) { | |
var n = this | |
, o = this.webviewId + "_" + this.pluginId; | |
if ("number" == typeof d[o] || d[o]) { | |
var r = p[this.webviewId + "_" + d[o]]; | |
if (r.isCancelAuth) | |
return "function" == typeof t.fail && t.fail({ | |
errMsg: "user cancel auth" | |
}), | |
void ("function" == typeof t.complete && t.complete({ | |
errMsg: "user cancel auth" | |
})); | |
if ("scanCode" === r.mode && ("takePhoto" === e || "startRecord" === e)) | |
return "function" == typeof t.fail && t.fail({ | |
errMsg: "Not allow to invoke takePhoto in 'scanCode' mode." | |
}), | |
void ("function" == typeof t.complete && t.complete({ | |
errMsg: "Not allow to invoke takePhoto in 'scanCode' mode." | |
})); | |
t.cameraId = d[o], | |
this._invoke(e, t) | |
} else | |
_.once("cameraInsert", function() { | |
n._invokeMethod(e, t) | |
}) | |
} | |
}, { | |
key: "takePhoto", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = this.webviewId + "_" + this.pluginId; | |
if (h[this.webviewId + "_" + d[t]]) | |
return "function" == typeof e.fail && e.fail({ | |
errMsg: "Not allow to invoke takePhoto if camera is hidden." | |
}), | |
void ("function" == typeof e.complete && e.complete({ | |
errMsg: "Not allow to invoke takePhoto if camera is hidden." | |
})); | |
this._invokeMethod("takePhoto", e) | |
} | |
}, { | |
key: "startRecord", | |
value: function() { | |
var e = this | |
, t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
f.authorize)({ | |
scope: "scope.record", | |
success: function() { | |
y.set(e, !0), | |
e._startRecord(t) | |
}, | |
fail: function() { | |
"function" == typeof t.fail && t.fail({ | |
errMsg: "Failed to invoke 'startRecord' on 'CameraContext': not allowed to use microphone." | |
}), | |
"function" == typeof t.complete && t.complete({ | |
errMsg: "Failed to invoke 'startRecord' on 'CameraContext': not allowed to use microphone." | |
}) | |
} | |
}) | |
} | |
}, { | |
key: "_startRecord", | |
value: function() { | |
var e = this | |
, t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if (y.get(this)) { | |
var n = this.webviewId + "_" + this.pluginId; | |
if (h[this.webviewId + "_" + d[n]]) | |
return "function" == typeof t.fail && t.fail({ | |
errMsg: "Not allow to invoke takePhoto if camera is hidden." | |
}), | |
void ("function" == typeof t.complete && t.complete({ | |
errMsg: "Not allow to invoke takePhoto if camera is hidden." | |
})); | |
var o = t.timeoutCallback | |
, r = t.fail; | |
if (t.fail = function(t) { | |
e._isRecording = !1, | |
clearTimeout(i), | |
"function" == typeof r && r(t) | |
} | |
, | |
this._invokeMethod("startRecord", t), | |
!this._isRecording) { | |
this._isRecording = !0; | |
var a = "number" == typeof t.timeout ? Math.max(0, t.timeout) : 30 | |
, i = this._timer = setTimeout(function() { | |
e._isRecording && (e.stopRecord({ | |
complete: o || function() {} | |
}), | |
e._isRecording = !1) | |
}, 1e3 * a); | |
0 === a ? clearTimeout(i) : g[this.webviewId] ? g[this.webviewId].push(i) : g[this.webviewId] = [i]; | |
var u = this._videoTaken = function(t, n) { | |
var r = n + "_" + e.pluginId; | |
if (t.cameraId === d[r]) { | |
var a = v.indexOf(u); | |
a > -1 && v.splice(a, 1), | |
e._isRecording && (delete t.cameraId, | |
"function" == typeof o && o(t), | |
e._isRecording = !1, | |
clearTimeout(i)) | |
} | |
} | |
; | |
v.push(u) | |
} | |
} | |
} | |
}, { | |
key: "stopRecord", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = v.indexOf(this._videoTaken); | |
t > -1 && (v.splice(t, 1), | |
this._videoTaken = null), | |
this._invokeMethod("stopRecord", e), | |
this._isRecording = !1, | |
clearTimeout(this._timer) | |
} | |
}]), | |
e | |
}(); | |
t.createCameraContext = a, | |
t.cameraInfo = p | |
} | |
, function(e, t, n) { | |
(function(o) { | |
var r; | |
!function(a) { | |
function i() { | |
this._events = {}, | |
this._conf && u.call(this, this._conf) | |
} | |
function u(e) { | |
e ? (this._conf = e, | |
e.delimiter && (this.delimiter = e.delimiter), | |
this._maxListeners = e.maxListeners !== a ? e.maxListeners : p, | |
e.wildcard && (this.wildcard = e.wildcard), | |
e.newListener && (this._newListener = e.newListener), | |
e.removeListener && (this._removeListener = e.removeListener), | |
e.verboseMemoryLeak && (this.verboseMemoryLeak = e.verboseMemoryLeak), | |
this.wildcard && (this.listenerTree = {})) : this._maxListeners = p | |
} | |
function c(e, t) { | |
var n = "(node) warning: possible EventEmitter memory leak detected. " + e + " listeners added. Use emitter.setMaxListeners() to increase limit."; | |
if (this.verboseMemoryLeak && (n += " Event name: " + t + "."), | |
void 0 !== o && o.emitWarning) { | |
var r = new Error(n); | |
r.name = "MaxListenersExceededWarning", | |
r.emitter = this, | |
r.count = e, | |
o.emitWarning(r) | |
} else | |
console.error(n), | |
console.trace && console.trace() | |
} | |
function s(e) { | |
this._events = {}, | |
this._newListener = !1, | |
this._removeListener = !1, | |
this.verboseMemoryLeak = !1, | |
u.call(this, e) | |
} | |
function l(e, t, n, o) { | |
if (!n) | |
return []; | |
var r, a, i, u, c, s, f, d = [], p = t.length, h = t[o], v = t[o + 1]; | |
if (o === p && n._listeners) { | |
if ("function" == typeof n._listeners) | |
return e && e.push(n._listeners), | |
[n]; | |
for (r = 0, | |
a = n._listeners.length; r < a; r++) | |
e && e.push(n._listeners[r]); | |
return [n] | |
} | |
if ("*" === h || "**" === h || n[h]) { | |
if ("*" === h) { | |
for (i in n) | |
"_listeners" !== i && n.hasOwnProperty(i) && (d = d.concat(l(e, t, n[i], o + 1))); | |
return d | |
} | |
if ("**" === h) { | |
f = o + 1 === p || o + 2 === p && "*" === v, | |
f && n._listeners && (d = d.concat(l(e, t, n, p))); | |
for (i in n) | |
"_listeners" !== i && n.hasOwnProperty(i) && ("*" === i || "**" === i ? (n[i]._listeners && !f && (d = d.concat(l(e, t, n[i], p))), | |
d = d.concat(l(e, t, n[i], o))) : d = i === v ? d.concat(l(e, t, n[i], o + 2)) : d.concat(l(e, t, n[i], o))); | |
return d | |
} | |
d = d.concat(l(e, t, n[h], o + 1)) | |
} | |
if (u = n["*"], | |
u && l(e, t, u, o + 1), | |
c = n["**"]) | |
if (o < p) { | |
c._listeners && l(e, t, c, p); | |
for (i in c) | |
"_listeners" !== i && c.hasOwnProperty(i) && (i === v ? l(e, t, c[i], o + 2) : i === h ? l(e, t, c[i], o + 1) : (s = {}, | |
s[i] = c[i], | |
l(e, t, { | |
"**": s | |
}, o + 1))) | |
} else | |
c._listeners ? l(e, t, c, p) : c["*"] && c["*"]._listeners && l(e, t, c["*"], p); | |
return d | |
} | |
function f(e, t) { | |
e = "string" == typeof e ? e.split(this.delimiter) : e.slice(); | |
for (var n = 0, o = e.length; n + 1 < o; n++) | |
if ("**" === e[n] && "**" === e[n + 1]) | |
return; | |
for (var r = this.listenerTree, i = e.shift(); i !== a; ) { | |
if (r[i] || (r[i] = {}), | |
r = r[i], | |
0 === e.length) | |
return r._listeners ? ("function" == typeof r._listeners && (r._listeners = [r._listeners]), | |
r._listeners.push(t), | |
!r._listeners.warned && this._maxListeners > 0 && r._listeners.length > this._maxListeners && (r._listeners.warned = !0, | |
c.call(this, r._listeners.length, i))) : r._listeners = t, | |
!0; | |
i = e.shift() | |
} | |
return !0 | |
} | |
var d = Array.isArray ? Array.isArray : function(e) { | |
return "[object Array]" === Object.prototype.toString.call(e) | |
} | |
, p = 10; | |
s.EventEmitter2 = s, | |
s.prototype.delimiter = ".", | |
s.prototype.setMaxListeners = function(e) { | |
e !== a && (this._maxListeners = e, | |
this._conf || (this._conf = {}), | |
this._conf.maxListeners = e) | |
} | |
, | |
s.prototype.event = "", | |
s.prototype.once = function(e, t) { | |
return this._once(e, t, !1) | |
} | |
, | |
s.prototype.prependOnceListener = function(e, t) { | |
return this._once(e, t, !0) | |
} | |
, | |
s.prototype._once = function(e, t, n) { | |
return this._many(e, 1, t, n), | |
this | |
} | |
, | |
s.prototype.many = function(e, t, n) { | |
return this._many(e, t, n, !1) | |
} | |
, | |
s.prototype.prependMany = function(e, t, n) { | |
return this._many(e, t, n, !0) | |
} | |
, | |
s.prototype._many = function(e, t, n, o) { | |
function r() { | |
return 0 == --t && a.off(e, r), | |
n.apply(this, arguments) | |
} | |
var a = this; | |
if ("function" != typeof n) | |
throw new Error("many only accepts instances of Function"); | |
return r._origin = n, | |
this._on(e, r, o), | |
a | |
} | |
, | |
s.prototype.emit = function() { | |
this._events || i.call(this); | |
var e = arguments[0]; | |
if ("newListener" === e && !this._newListener && !this._events.newListener) | |
return !1; | |
var t, n, o, r, a, u = arguments.length; | |
if (this._all && this._all.length) { | |
if (a = this._all.slice(), | |
u > 3) | |
for (t = new Array(u), | |
r = 0; r < u; r++) | |
t[r] = arguments[r]; | |
for (o = 0, | |
n = a.length; o < n; o++) | |
switch (this.event = e, | |
u) { | |
case 1: | |
a[o].call(this, e); | |
break; | |
case 2: | |
a[o].call(this, e, arguments[1]); | |
break; | |
case 3: | |
a[o].call(this, e, arguments[1], arguments[2]); | |
break; | |
default: | |
a[o].apply(this, t) | |
} | |
} | |
if (this.wildcard) { | |
a = []; | |
var c = "string" == typeof e ? e.split(this.delimiter) : e.slice(); | |
l.call(this, a, c, this.listenerTree, 0) | |
} else { | |
if ("function" == typeof (a = this._events[e])) { | |
switch (this.event = e, | |
u) { | |
case 1: | |
a.call(this); | |
break; | |
case 2: | |
a.call(this, arguments[1]); | |
break; | |
case 3: | |
a.call(this, arguments[1], arguments[2]); | |
break; | |
default: | |
for (t = new Array(u - 1), | |
r = 1; r < u; r++) | |
t[r - 1] = arguments[r]; | |
a.apply(this, t) | |
} | |
return !0 | |
} | |
a && (a = a.slice()) | |
} | |
if (a && a.length) { | |
if (u > 3) | |
for (t = new Array(u - 1), | |
r = 1; r < u; r++) | |
t[r - 1] = arguments[r]; | |
for (o = 0, | |
n = a.length; o < n; o++) | |
switch (this.event = e, | |
u) { | |
case 1: | |
a[o].call(this); | |
break; | |
case 2: | |
a[o].call(this, arguments[1]); | |
break; | |
case 3: | |
a[o].call(this, arguments[1], arguments[2]); | |
break; | |
default: | |
a[o].apply(this, t) | |
} | |
return !0 | |
} | |
if (!this._all && "error" === e) | |
throw arguments[1]instanceof Error ? arguments[1] : new Error("Uncaught, unspecified 'error' event."); | |
return !!this._all | |
} | |
, | |
s.prototype.emitAsync = function() { | |
this._events || i.call(this); | |
var e = arguments[0]; | |
if ("newListener" === e && !this._newListener && !this._events.newListener) | |
return Promise.resolve([!1]); | |
var t, n, o, r, a, u = [], c = arguments.length; | |
if (this._all) { | |
if (c > 3) | |
for (t = new Array(c), | |
r = 1; r < c; r++) | |
t[r] = arguments[r]; | |
for (o = 0, | |
n = this._all.length; o < n; o++) | |
switch (this.event = e, | |
c) { | |
case 1: | |
u.push(this._all[o].call(this, e)); | |
break; | |
case 2: | |
u.push(this._all[o].call(this, e, arguments[1])); | |
break; | |
case 3: | |
u.push(this._all[o].call(this, e, arguments[1], arguments[2])); | |
break; | |
default: | |
u.push(this._all[o].apply(this, t)) | |
} | |
} | |
if (this.wildcard) { | |
a = []; | |
var s = "string" == typeof e ? e.split(this.delimiter) : e.slice(); | |
l.call(this, a, s, this.listenerTree, 0) | |
} else | |
a = this._events[e]; | |
if ("function" == typeof a) | |
switch (this.event = e, | |
c) { | |
case 1: | |
u.push(a.call(this)); | |
break; | |
case 2: | |
u.push(a.call(this, arguments[1])); | |
break; | |
case 3: | |
u.push(a.call(this, arguments[1], arguments[2])); | |
break; | |
default: | |
for (t = new Array(c - 1), | |
r = 1; r < c; r++) | |
t[r - 1] = arguments[r]; | |
u.push(a.apply(this, t)) | |
} | |
else if (a && a.length) { | |
if (a = a.slice(), | |
c > 3) | |
for (t = new Array(c - 1), | |
r = 1; r < c; r++) | |
t[r - 1] = arguments[r]; | |
for (o = 0, | |
n = a.length; o < n; o++) | |
switch (this.event = e, | |
c) { | |
case 1: | |
u.push(a[o].call(this)); | |
break; | |
case 2: | |
u.push(a[o].call(this, arguments[1])); | |
break; | |
case 3: | |
u.push(a[o].call(this, arguments[1], arguments[2])); | |
break; | |
default: | |
u.push(a[o].apply(this, t)) | |
} | |
} else if (!this._all && "error" === e) | |
return arguments[1]instanceof Error ? Promise.reject(arguments[1]) : Promise.reject("Uncaught, unspecified 'error' event."); | |
return Promise.all(u) | |
} | |
, | |
s.prototype.on = function(e, t) { | |
return this._on(e, t, !1) | |
} | |
, | |
s.prototype.prependListener = function(e, t) { | |
return this._on(e, t, !0) | |
} | |
, | |
s.prototype.onAny = function(e) { | |
return this._onAny(e, !1) | |
} | |
, | |
s.prototype.prependAny = function(e) { | |
return this._onAny(e, !0) | |
} | |
, | |
s.prototype.addListener = s.prototype.on, | |
s.prototype._onAny = function(e, t) { | |
if ("function" != typeof e) | |
throw new Error("onAny only accepts instances of Function"); | |
return this._all || (this._all = []), | |
t ? this._all.unshift(e) : this._all.push(e), | |
this | |
} | |
, | |
s.prototype._on = function(e, t, n) { | |
if ("function" == typeof e) | |
return this._onAny(e, t), | |
this; | |
if ("function" != typeof t) | |
throw new Error("on only accepts instances of Function"); | |
return this._events || i.call(this), | |
this._newListener && this.emit("newListener", e, t), | |
this.wildcard ? (f.call(this, e, t), | |
this) : (this._events[e] ? ("function" == typeof this._events[e] && (this._events[e] = [this._events[e]]), | |
n ? this._events[e].unshift(t) : this._events[e].push(t), | |
!this._events[e].warned && this._maxListeners > 0 && this._events[e].length > this._maxListeners && (this._events[e].warned = !0, | |
c.call(this, this._events[e].length, e))) : this._events[e] = t, | |
this) | |
} | |
, | |
s.prototype.off = function(e, t) { | |
function n(e) { | |
if (e !== a) { | |
var t = Object.keys(e); | |
for (var o in t) { | |
var r = t[o] | |
, i = e[r]; | |
i instanceof Function || "object" != typeof i || null === i || (Object.keys(i).length > 0 && n(e[r]), | |
0 === Object.keys(i).length && delete e[r]) | |
} | |
} | |
} | |
if ("function" != typeof t) | |
throw new Error("removeListener only takes instances of Function"); | |
var o, r = []; | |
if (this.wildcard) { | |
var i = "string" == typeof e ? e.split(this.delimiter) : e.slice(); | |
r = l.call(this, null, i, this.listenerTree, 0) | |
} else { | |
if (!this._events[e]) | |
return this; | |
o = this._events[e], | |
r.push({ | |
_listeners: o | |
}) | |
} | |
for (var u = 0; u < r.length; u++) { | |
var c = r[u]; | |
if (o = c._listeners, | |
d(o)) { | |
for (var s = -1, f = 0, p = o.length; f < p; f++) | |
if (o[f] === t || o[f].listener && o[f].listener === t || o[f]._origin && o[f]._origin === t) { | |
s = f; | |
break | |
} | |
if (s < 0) | |
continue; | |
return this.wildcard ? c._listeners.splice(s, 1) : this._events[e].splice(s, 1), | |
0 === o.length && (this.wildcard ? delete c._listeners : delete this._events[e]), | |
this._removeListener && this.emit("removeListener", e, t), | |
this | |
} | |
(o === t || o.listener && o.listener === t || o._origin && o._origin === t) && (this.wildcard ? delete c._listeners : delete this._events[e], | |
this._removeListener && this.emit("removeListener", e, t)) | |
} | |
return n(this.listenerTree), | |
this | |
} | |
, | |
s.prototype.offAny = function(e) { | |
var t, n = 0, o = 0; | |
if (e && this._all && this._all.length > 0) { | |
for (t = this._all, | |
n = 0, | |
o = t.length; n < o; n++) | |
if (e === t[n]) | |
return t.splice(n, 1), | |
this._removeListener && this.emit("removeListenerAny", e), | |
this | |
} else { | |
if (t = this._all, | |
this._removeListener) | |
for (n = 0, | |
o = t.length; n < o; n++) | |
this.emit("removeListenerAny", t[n]); | |
this._all = [] | |
} | |
return this | |
} | |
, | |
s.prototype.removeListener = s.prototype.off, | |
s.prototype.removeAllListeners = function(e) { | |
if (e === a) | |
return !this._events || i.call(this), | |
this; | |
if (this.wildcard) | |
for (var t = "string" == typeof e ? e.split(this.delimiter) : e.slice(), n = l.call(this, null, t, this.listenerTree, 0), o = 0; o < n.length; o++) { | |
var r = n[o]; | |
r._listeners = null | |
} | |
else | |
this._events && (this._events[e] = null); | |
return this | |
} | |
, | |
s.prototype.listeners = function(e) { | |
if (this.wildcard) { | |
var t = [] | |
, n = "string" == typeof e ? e.split(this.delimiter) : e.slice(); | |
return l.call(this, t, n, this.listenerTree, 0), | |
t | |
} | |
return this._events || i.call(this), | |
this._events[e] || (this._events[e] = []), | |
d(this._events[e]) || (this._events[e] = [this._events[e]]), | |
this._events[e] | |
} | |
, | |
s.prototype.eventNames = function() { | |
return Object.keys(this._events) | |
} | |
, | |
s.prototype.listenerCount = function(e) { | |
return this.listeners(e).length | |
} | |
, | |
s.prototype.listenersAny = function() { | |
return this._all ? this._all : [] | |
} | |
, | |
(r = function() { | |
return s | |
} | |
.call(t, n, t, e)) !== a && (e.exports = r) | |
}() | |
} | |
).call(this, n(15)) | |
} | |
, function(e, t) { | |
function n() { | |
throw new Error("setTimeout has not been defined") | |
} | |
function o() { | |
throw new Error("clearTimeout has not been defined") | |
} | |
function r(e) { | |
if (l === setTimeout) | |
return setTimeout(e, 0); | |
if ((l === n || !l) && setTimeout) | |
return l = setTimeout, | |
setTimeout(e, 0); | |
try { | |
return l(e, 0) | |
} catch (t) { | |
try { | |
return l.call(null, e, 0) | |
} catch (t) { | |
return l.call(this, e, 0) | |
} | |
} | |
} | |
function a(e) { | |
if (f === clearTimeout) | |
return clearTimeout(e); | |
if ((f === o || !f) && clearTimeout) | |
return f = clearTimeout, | |
clearTimeout(e); | |
try { | |
return f(e) | |
} catch (t) { | |
try { | |
return f.call(null, e) | |
} catch (t) { | |
return f.call(this, e) | |
} | |
} | |
} | |
function i() { | |
v && p && (v = !1, | |
p.length ? h = p.concat(h) : g = -1, | |
h.length && u()) | |
} | |
function u() { | |
if (!v) { | |
var e = r(i); | |
v = !0; | |
for (var t = h.length; t; ) { | |
for (p = h, | |
h = []; ++g < t; ) | |
p && p[g].run(); | |
g = -1, | |
t = h.length | |
} | |
p = null, | |
v = !1, | |
a(e) | |
} | |
} | |
function c(e, t) { | |
this.fun = e, | |
this.array = t | |
} | |
function s() {} | |
var l, f, d = e.exports = {}; | |
!function() { | |
try { | |
l = "function" == typeof setTimeout ? setTimeout : n | |
} catch (e) { | |
l = n | |
} | |
try { | |
f = "function" == typeof clearTimeout ? clearTimeout : o | |
} catch (e) { | |
f = o | |
} | |
}(); | |
var p, h = [], v = !1, g = -1; | |
d.nextTick = function(e) { | |
var t = new Array(arguments.length - 1); | |
if (arguments.length > 1) | |
for (var n = 1; n < arguments.length; n++) | |
t[n - 1] = arguments[n]; | |
h.push(new c(e,t)), | |
1 !== h.length || v || r(u) | |
} | |
, | |
c.prototype.run = function() { | |
this.fun.apply(null, this.array) | |
} | |
, | |
d.title = "browser", | |
d.browser = !0, | |
d.env = {}, | |
d.argv = [], | |
d.version = "", | |
d.versions = {}, | |
d.on = s, | |
d.addListener = s, | |
d.once = s, | |
d.off = s, | |
d.removeListener = s, | |
d.removeAllListeners = s, | |
d.emit = s, | |
d.prependListener = s, | |
d.prependOnceListener = s, | |
d.listeners = function(e) { | |
return [] | |
} | |
, | |
d.binding = function(e) { | |
throw new Error("process.binding is not supported") | |
} | |
, | |
d.cwd = function() { | |
return "/" | |
} | |
, | |
d.chdir = function(e) { | |
throw new Error("process.chdir is not supported") | |
} | |
, | |
d.umask = function() { | |
return 0 | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(17); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}); | |
var r = n(26); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}); | |
var a = n(18); | |
Object.keys(a).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return a[e] | |
} | |
}) | |
}); | |
var i = n(20); | |
Object.keys(i).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return i[e] | |
} | |
}) | |
}); | |
var u = n(27); | |
Object.keys(u).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return u[e] | |
} | |
}) | |
}); | |
var c = n(25); | |
Object.keys(c).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return c[e] | |
} | |
}) | |
}); | |
var s = n(28); | |
Object.keys(s).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return s[e] | |
} | |
}) | |
}); | |
var l = n(29); | |
Object.keys(l).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return l[e] | |
} | |
}) | |
}); | |
var f = n(35); | |
Object.keys(f).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return f[e] | |
} | |
}) | |
}); | |
var d = n(30); | |
Object.keys(d).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return d[e] | |
} | |
}) | |
}); | |
var p = n(36); | |
Object.keys(p).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return p[e] | |
} | |
}) | |
}); | |
var h = n(37); | |
Object.keys(h).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return h[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(18) | |
, r = n(20) | |
, a = n(25) | |
, i = n(6) | |
, u = n(5) | |
, c = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(u); | |
c.default.appStatus = i.AppStatus.FORE_GROUND, | |
c.default.hanged = !1, | |
(0, | |
r.onAppEnterForeground)(function() { | |
c.default.appStatus = i.AppStatus.FORE_GROUND | |
}), | |
(0, | |
o.onAppEnterBackground)(function(e) { | |
"hide" === e.mode ? c.default.appStatus = i.AppStatus.LOCK : c.default.appStatus = i.AppStatus.BACK_GROUND, | |
"close" === e.mode ? c.default.hanged = !1 : "hang" === e.mode && (c.default.hanged = !0) | |
}), | |
(0, | |
a.onAppUnhang)(function() { | |
c.default.hanged = !1 | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onAppEnterBackground = void 0; | |
var o = n(1) | |
, r = n(19) | |
, a = (0, | |
r.getEventManager)("AppEnterBackground") | |
, i = a.internalOnMethod; | |
(0, | |
o.onMethod)("onAppEnterBackground", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
a.emit(e), | |
(0, | |
o.publish)("onAppEnterBackground", e) | |
}), | |
t.onAppEnterBackground = i | |
} | |
, function(e, t, n) { | |
function o(e, t) { | |
return "function" != typeof t ? (console.error("on" + e + " should accept a function instead of " + (void 0 === t ? "undefined" : i(t))), | |
null) : Reporter.surroundThirdByTryCatch(t, "at api on" + e + " callback function") | |
} | |
function r(e, t) { | |
return !t || "function" == typeof t || (console.error("off" + e + " should accept a function instead of " + (void 0 === t ? "undefined" : i(t))), | |
!1) | |
} | |
function a(e) { | |
if (e = e[0].toUpperCase() + e.slice(1), | |
!f[e]) { | |
var t = new WeakMap; | |
f[e] = { | |
getGlobalListeners: function() { | |
return s.listeners(e) | |
}, | |
getInternalListeners: function() { | |
return l.listeners(e) | |
}, | |
emit: function() { | |
for (var t = arguments.length, n = Array(t), o = 0; o < t; o++) | |
n[o] = arguments[o]; | |
l.emit.apply(l, [e].concat(n)), | |
s.emit.apply(s, [e].concat(n)) | |
}, | |
emitGlobal: function() { | |
for (var t = arguments.length, n = Array(t), o = 0; o < t; o++) | |
n[o] = arguments[o]; | |
s.emit.apply(s, [e].concat(n)) | |
}, | |
emitInternal: function() { | |
for (var t = arguments.length, n = Array(t), o = 0; o < t; o++) | |
n[o] = arguments[o]; | |
l.emit.apply(l, [e].concat(n)) | |
}, | |
internalOnMethod: function(t) { | |
"function" == typeof t && l.on(e, t) | |
}, | |
internalOffMethod: function(t) { | |
"function" == typeof t && l.off(e, t) | |
}, | |
onMethod: function(n) { | |
var r = o(e, n); | |
r && (t.set(n, r), | |
s.on(e, r)) | |
}, | |
offMethod: function(n) { | |
if (r(e, n)) | |
if (n) { | |
if (t.has(n)) { | |
var o = t.get(n); | |
t.delete(n), | |
s.off(e, o) | |
} | |
} else | |
t = new WeakMap, | |
s.removeAllListeners(e) | |
} | |
} | |
} | |
return f[e] | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
; | |
t.getEventManager = a; | |
var u = n(14) | |
, c = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(u) | |
, s = new c.default({ | |
maxListeners: 100, | |
newListener: !1 | |
}) | |
, l = new c.default({ | |
maxListeners: 15, | |
newListener: !1 | |
}) | |
, f = {} | |
} | |
, function(e, t, n) { | |
function o(e) { | |
e = (0, | |
c.filterInfo)(e, !1), | |
e.__public = (0, | |
c.filterPublicInfo)(e), | |
d = e, | |
l.emit(e) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onAppEnterForeground = void 0; | |
var r = n(1) | |
, a = n(21) | |
, i = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(a) | |
, u = n(23) | |
, c = n(24) | |
, s = n(19) | |
, l = (0, | |
s.getEventManager)("AppEnterForeground") | |
, f = l.internalOnMethod | |
, d = void 0; | |
(0, | |
r.subscribe)("getAppEnterForegroundInfo", function(e) { | |
var t = e.callbackId; | |
(0, | |
r.publish)("appEnterForegroundInfoGot", { | |
data: { | |
info: d, | |
sceneHistory: i.default.sceneHistory, | |
appId: i.default.appId | |
}, | |
callbackId: t | |
}) | |
}), | |
(0, | |
r.onMethod)("onAppEnterForeground", function(e) { | |
!(0, | |
u.checkNeedAppEnterForegroundPatch)() || 1 !== e.reLaunch && !0 !== e.reLaunch ? o(e) : i.default.emitter.once("onAppRoute", function() { | |
o(e) | |
}), | |
(0, | |
r.publish)("onAppEnterForeground", e) | |
}), | |
t.onAppEnterForeground = f | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var r = n(22) | |
, a = o(r) | |
, i = n(14) | |
, u = o(i) | |
, c = new u.default | |
, s = { | |
appLaunchInfo: null, | |
appLaunchShareInfo: null, | |
sceneHistory: [], | |
appId: "", | |
ShareInfoStorage: a.default, | |
emitter: c | |
}; | |
t.default = s | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(2) | |
, r = {} | |
, a = { | |
lastShareTicket: null, | |
get: function(e) { | |
return r[e] | |
}, | |
set: function(e, t) { | |
var n = (0, | |
o.guid)(); | |
return r[n] = { | |
shareKey: e, | |
shareName: t | |
}, | |
n | |
} | |
}; | |
t.default = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.checkNeedAppEnterForegroundPatch = void 0; | |
var o = (n(1), | |
n(2)) | |
, r = n(3) | |
, a = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(r) | |
, i = function() { | |
var e = !1; | |
return "ios" === (0, | |
o.getPlatform)() ? e = !0 : "android" === (0, | |
o.getPlatform)() && a.default.clientVersion >= 637865520 && (e = !0), | |
function() { | |
return e | |
} | |
}(); | |
t.checkNeedAppEnterForegroundPatch = i | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function r() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = arguments[1]; | |
if (e.scene = e.scene ? parseInt(e.scene, 10) : e.scene, | |
e.query = (t ? e.query : f.default.query) || {}, | |
e.path = t ? (0, | |
s.removeHtmlSuffixFromUrl)(e.path) : (0, | |
s.removeHtmlSuffixFromUrl)(f.default.lastRoute), | |
e.referrerInfo = e.referrerInfo || {}, | |
t || (1044 !== e.scene || e.shareInfo || (e.shareInfo = c.default.appLaunchShareInfo), | |
1044 === e.scene ? f.default.lastShareInfo = { | |
shareInfo: e.shareInfo, | |
path: e.path, | |
query: e.query | |
} : f.default.lastShareInfo = void 0), | |
c.default.sceneHistory.push(e.scene), | |
e.referrerInfo.appId && (c.default.appId = e.referrerInfo.appId), | |
"object" === i(e.shareInfo) && null !== e.shareInfo) { | |
var n = e.shareInfo; | |
n.shareKey && n.shareName && (e.shareTicket = c.default.ShareInfoStorage.set(n.shareKey, n.shareName), | |
c.default.ShareInfoStorage.lastShareTicket = e.shareTicket), | |
delete e.shareInfo | |
} | |
return e | |
} | |
function a() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
return 0 === e.scene ? e.scene = d : d = e.scene, | |
{ | |
path: e.path, | |
query: e.query, | |
scene: e.scene, | |
shareTicket: e.shareTicket, | |
referrerInfo: e.referrerInfo.appId ? { | |
appId: e.referrerInfo.appId, | |
extraData: e.referrerInfo.extraData | |
} : {} | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
; | |
t.filterInfo = r, | |
t.filterPublicInfo = a; | |
var u = n(21) | |
, c = o(u) | |
, s = n(2) | |
, l = n(5) | |
, f = o(l) | |
, d = void 0 | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onAppUnhang = t._onAppUnhang = void 0; | |
var o = n(1) | |
, r = n(19) | |
, a = (0, | |
r.getEventManager)("AppUnhang") | |
, i = a.internalOnMethod | |
, u = a.onMethod; | |
(0, | |
o.onMethod)("onAppUnhang", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
a.emit(e) | |
}), | |
t._onAppUnhang = i, | |
t.onAppUnhang = u | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t._getLaunchOptionsSync = t.getLaunchOptionsSync = void 0; | |
var r = n(1) | |
, a = n(21) | |
, i = o(a) | |
, u = n(24) | |
, c = n(3) | |
, s = o(c); | |
(0, | |
r.subscribe)("getLaunchInfo", function(e) { | |
var t = e.callbackId; | |
(0, | |
r.publish)("launchInfoGot", { | |
data: { | |
info: i.default.appLaunchInfo, | |
sceneHistory: i.default.sceneHistory, | |
appId: i.default.appId | |
}, | |
callbackId: t | |
}) | |
}); | |
var l = void 0 | |
, f = void 0; | |
s.default.onReady(function() { | |
var e = s.default.appLaunchInfo || {}; | |
i.default.appLaunchInfo = e, | |
i.default.appLaunchShareInfo = e.shareInfo, | |
f = (0, | |
u.filterInfo)(e, !0), | |
l = (0, | |
u.filterPublicInfo)(f), | |
f.__public = l | |
}); | |
var d = function() { | |
return l | |
} | |
, p = function() { | |
return f | |
}; | |
t.getLaunchOptionsSync = d, | |
t._getLaunchOptionsSync = p | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onAppRunningStatusChange = void 0; | |
var o = n(1) | |
, r = n(5) | |
, a = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(r) | |
, i = n(19) | |
, u = (0, | |
i.getEventManager)("AppRunningStatusChange") | |
, c = u.internalOnMethod; | |
(0, | |
o.onMethod)("onAppRunningStatusChange", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
a.default.runningStatus = e.status, | |
u.emit(e) | |
}), | |
t.onAppRunningStatusChange = c | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t._onAppHide = t.offAppHide = t.onAppHide = void 0; | |
var o = n(18) | |
, r = n(19) | |
, a = (0, | |
r.getEventManager)("AppHide") | |
, i = a.onMethod | |
, u = a.offMethod | |
, c = a.internalOnMethod; | |
(0, | |
o.onAppEnterBackground)(function(e) { | |
a.emitInternal(e), | |
a.emitGlobal() | |
}), | |
t.onAppHide = i, | |
t.offAppHide = u, | |
t._onAppHide = c | |
} | |
, function(e, t, n) { | |
function o(e) { | |
"appLaunch" === e.openType && (c.emit((0, | |
i.getLaunchOptionsSync)()), | |
(0, | |
u.offAppRoute)(o)) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t._onAppShow = t.offAppShow = t.onAppShow = void 0; | |
var r = n(20) | |
, a = n(19) | |
, i = n(26) | |
, u = n(30) | |
, c = (0, | |
a.getEventManager)("AppShow") | |
, s = c.onMethod | |
, l = c.offMethod | |
, f = c.internalOnMethod; | |
(0, | |
r.onAppEnterForeground)(function(e) { | |
c.emitInternal(e), | |
c.emitGlobal(e.__public) | |
}), | |
(0, | |
u.onAppRoute)(o), | |
t.onAppShow = s, | |
t.offAppShow = l, | |
t._onAppShow = f | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.offAppRoute = t.onAppRoute = void 0; | |
var r = n(1) | |
, a = n(5) | |
, i = o(a) | |
, u = n(31) | |
, c = n(23) | |
, s = n(21) | |
, l = o(s) | |
, f = n(2) | |
, d = n(19) | |
, p = (0, | |
d.getEventManager)("AppRoute") | |
, h = p.internalOnMethod | |
, v = p.internalOffMethod; | |
(0, | |
r.onMethod)("onAppRoute", function(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; | |
if (e.path = (0, | |
f.removeHtmlSuffixFromUrl)(e.path), | |
e.webviewId = void 0 !== e.webviewId ? e.webviewId : t, | |
i.default.lastRoute = e.path, | |
"appLaunch" !== e.openType && "autoReLaunch" !== e.openType) | |
for (var n in e.query) | |
try { | |
e.query[n] = decodeURIComponent(e.query[n]) | |
} catch (e) {} | |
i.default.query = e.query, | |
"navigateBack" !== e.openType && "redirectTo" !== e.openType || (0, | |
u.clearOldWebviewCanvas)(), | |
i.default.currentWebviewId = e.webviewId, | |
(0, | |
r.publish)("onAppRoute", {}, [e.webviewId]), | |
(0, | |
c.checkNeedAppEnterForegroundPatch)() && l.default.emitter.emit("onAppRoute"), | |
p.emit(e) | |
}), | |
t.onAppRoute = h, | |
t.offAppRoute = v | |
} | |
, function(e, t, n) { | |
function r() { | |
for (var e in x) | |
e.indexOf("canvas_" + M.default.currentWebviewId + "_") > -1 && delete x[e] | |
} | |
function a(e, t, n) { | |
var o = { | |
errMsg: e + ": " + (n || "fail canvas is empty") | |
} | |
, r = Reporter.surroundThirdByTryCatch(t.fail || O, "at api " + e + " fail callback function") | |
, a = Reporter.surroundThirdByTryCatch(t.complete || O, "at api " + e + " complete callback function"); | |
r(o), | |
a(o) | |
} | |
function i(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "" | |
, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "" | |
, o = (0, | |
C.getPlatform)() | |
, r = (0, | |
I.concatId)(M.default.currentWebviewId, e.canvasId, n, t) | |
, i = (0, | |
C.assign)({}, e); | |
if ("number" == typeof x[r]) { | |
if (i.canvasId = x[r], | |
i.jsInvokedAt = Date.now(), | |
i.x = Number(i.x) || 0, | |
i.y = Number(i.y) || 0, | |
i.width = Number(i.width) || 0, | |
i.height = Number(i.height) || 0, | |
0 === i.width) | |
return void a("canvasGetImageData", e, "the source width is 0"); | |
if (0 === i.height) | |
return void a("canvasGetImageData", e, "the source height is 0"); | |
if ("ios" === o || "android" === o) { | |
var u = i.success | |
, c = i.fail; | |
i.success = function(e) { | |
"[object ArrayBuffer]" === Object.prototype.toString.call(e.data) ? (e.width = i.width, | |
e.height = i.height, | |
e.data = new Uint8ClampedArray(e.data), | |
"function" == typeof u && u(e)) : (delete e.data, | |
e.errMsg = "canvasGetImageData: fail", | |
"function" == typeof c && c(e)) | |
} | |
, | |
(0, | |
k.invokeMethod)("canvasGetImageData", i) | |
} else | |
i.method = "getImageData", | |
N(i, function(t) { | |
var n = { | |
width: t.width, | |
height: t.height, | |
data: (0, | |
I.base64ToUint8ClampedArray)(t.data) | |
}; | |
"function" == typeof e.success && e.success(n), | |
"function" == typeof e.complete && e.complete(n) | |
}), | |
(0, | |
k.publish)("invokeCanvasMethod", i) | |
} else | |
a("canvasGetImageData", e) | |
} | |
function u(e, t) { | |
i(e, t && t.__wxExparserNodeId__ && t.__wxExparserNodeId__ !== o.getRootNodeId(M.default.currentWebviewId) ? t.__wxExparserNodeId__ : "") | |
} | |
function c(e, t, n) { | |
i(e, n, t) | |
} | |
function s(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "" | |
, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "" | |
, o = (0, | |
C.getPlatform)() | |
, r = (0, | |
I.concatId)(M.default.currentWebviewId, e.canvasId, n, t) | |
, i = (0, | |
C.assign)({}, e); | |
return "number" != typeof i.width ? void a("canvasPutImageData", e, "invalid width argument") : i.data && "[object Uint8ClampedArray]" === Object.prototype.toString.call(i.data) ? void ("number" == typeof x[r] ? (i.canvasId = x[r], | |
i.jsInvokedAt = Date.now(), | |
i.x = Number(i.x) || 0, | |
i.y = Number(i.y) || 0, | |
i.height = "number" == typeof i.height ? i.height : i.data.length / i.width / 4 | 0, | |
"ios" === o || "android" === o ? (i.data = i.data.buffer, | |
(0, | |
k.invokeMethod)("canvasPutImageData", i)) : (i.data = (0, | |
I.uint8ClampedArrayToBase64)(i.data), | |
i.method = "putImageData", | |
(0, | |
k.publish)("invokeCanvasMethod", i), | |
"function" == typeof e.success && e.success({ | |
errMsg: "canvasPutImageData:ok" | |
}), | |
"function" == typeof e.complete && e.complete({ | |
errMsg: "canvasPutImageData:ok" | |
}))) : a("canvasPutImageData", e)) : void a("canvasPutImageData", e, "data argument must be an Uint8ClampedArray") | |
} | |
function l(e, t) { | |
s(e, t && t.__wxExparserNodeId__ && t.__wxExparserNodeId__ !== o.getRootNodeId(M.default.currentWebviewId) ? t.__wxExparserNodeId__ : "") | |
} | |
function f(e, t, n) { | |
s(e, n, t) | |
} | |
function d(e, t) { | |
var n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2] | |
, o = arguments[3] | |
, r = arguments[4] | |
, a = arguments[5] | |
, i = arguments[6] | |
, u = (0, | |
C.getPlatform)(); | |
if ("ios" == u || "android" == u) | |
(0, | |
k.invokeMethod)("drawCanvas", { | |
canvasId: e, | |
reserve: n, | |
useHardwareAccelerate: o, | |
actions: t, | |
success: r, | |
fail: a, | |
complete: i | |
}); | |
else { | |
var c = { | |
actions: t, | |
reserve: n, | |
canvasId: e | |
}; | |
L(c, function(e) { | |
"function" == typeof i && i({ | |
errMsg: e.errMsg | |
}) | |
}), | |
(0, | |
k.publish)("canvasActionsChanged", c) | |
} | |
} | |
function p(e) { | |
var t = e.isWidgetCanvas | |
, n = e.canvasId | |
, o = e.actions | |
, r = e.reserve | |
, a = e.useHardwareAccelerate | |
, i = e.success | |
, u = e.fail | |
, c = e.complete | |
, s = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : M.default.currentWebviewId | |
, l = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "" | |
, f = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : "" | |
, p = R(); | |
if (Array.isArray(o)) { | |
if (t) { | |
if (p - j < D) { | |
var h = { | |
errMsg: "drawCanvas:fail 调用 draw 过于频繁。" | |
}; | |
return B += 1, | |
B > 500 && (B = 0, | |
console.warn(h.errMsg)), | |
void ("function" == typeof u && u(h)) | |
} | |
return j = p, | |
void (0, | |
k.invokeMethod)("drawCanvas", { | |
canvasId: g, | |
reserve: r, | |
actions: o, | |
success: i, | |
fail: u, | |
complete: c | |
}) | |
} | |
if (n) { | |
var v = (0, | |
I.concatId)(s, n, l, f); | |
if ("number" == typeof x[v]) { | |
var g = x[v]; | |
d(g, o, r, a, i, u, c) | |
} else | |
A[v] = A[v] || [], | |
A[v] = A[v].concat({ | |
actions: o, | |
reserve: r, | |
useHardwareAccelerate: a, | |
success: i, | |
fail: u, | |
complete: c | |
}) | |
} | |
} | |
} | |
function h(e) { | |
p(e) | |
} | |
function v(e, t, n) { | |
p(e, M.default.currentWebviewId, t, n) | |
} | |
function g(e) { | |
var t = (0, | |
C.getPlatform)(); | |
e.fileType = ["jpg", "png"].indexOf(e.fileType) > -1 ? e.fileType : "png", | |
e.quality = "jpg" === e.fileType ? e.quality < 0 || e.quality > 1 ? 1 : e.quality : 1, | |
e.jpgQuality = e.quality, | |
"ios" === t || "android" === t ? F ? U(F, e) : (0, | |
k.invokeMethod)("getSystemInfo", {}, { | |
beforeSuccess: function(t) { | |
F = t, | |
U(F, e) | |
} | |
}) : (e.method = "toDataURL", | |
N(e, function(t) { | |
var n = t.dataUrl; | |
(0, | |
k.invokeMethod)("base64ToTempFilePath", (0, | |
C.assign)({ | |
base64Data: n | |
}, e), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("base64ToTempFilePath", "canvasToTempFilePath") | |
} | |
}) | |
}), | |
(0, | |
k.publish)("invokeCanvasMethod", e)) | |
} | |
function _(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "" | |
, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : ""; | |
if (e.canvasId) { | |
var o = (0, | |
I.concatId)(M.default.currentWebviewId, e.canvasId, n, t); | |
"number" == typeof x[o] ? (e.canvasId = x[o], | |
g(e)) : a("canvasToTempFilePath", e) | |
} | |
} | |
function y(e, t) { | |
_(e, t && t.__wxExparserNodeId__ && t.__wxExparserNodeId__ !== o.getRootNodeId(M.default.currentWebviewId) ? t.__wxExparserNodeId__ : "") | |
} | |
function b(e, t, n) { | |
_(e, n, t) | |
} | |
function m(e) { | |
var t = (0, | |
C.getPlatform)(); | |
"ios" === t || "android" === t ? (0, | |
k.invokeMethod)("canvasToData", e) : (e.method = "toDataURL", | |
N(e, function(t) { | |
var n = t.dataUrl; | |
e.success({ | |
data: n | |
}) | |
}), | |
(0, | |
k.publish)("invokeCanvasMethod", e)) | |
} | |
function w() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = (0, | |
I.concatId)(M.default.currentWebviewId, e.canvasId) | |
, n = Object.assign({}, e) | |
, o = n.success | |
, r = n.complete; | |
n.success = function(e) { | |
var t = "data:image/" + (n.fileType || "png") | |
, a = t + ";base64," + e.data; | |
"function" == typeof o && o({ | |
dataURL: a | |
}), | |
"function" == typeof r && r({ | |
dataURL: a | |
}) | |
} | |
, | |
n.complete = O, | |
"number" == typeof x[t] ? (n.canvasId = x[t], | |
m(n)) : a("canvasToDataURL", e) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.canvasPutImageData = t.canvasGetImageData = t.canvasToDataURL = t.canvasPutImageData4Plugin = t.canvasGetImageData4Plugin = t.createCanvasContext4Plugin = t.canvasToTempFilePath4Plugin = t.drawCanvas4Plugin = t.createCanvasContext = t.canvasToTempFilePath = t.drawCanvas = t.drawCanvasImpl = t.createWidgetContext = t.createContext = t.clearOldWebviewCanvas = t.onCanvasMethodCallbackOnce = t.canvasInfo = t.canvas = void 0; | |
var k = n(1) | |
, S = n(32) | |
, C = n(2) | |
, P = n(5) | |
, M = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(P) | |
, I = n(34) | |
, O = function() {} | |
, T = {} | |
, E = {} | |
, x = {} | |
, A = {} | |
, j = 0 | |
, B = 0 | |
, D = 4500 | |
, R = Date.now | |
, N = (0, | |
I.subscribeOnce)("onCanvasMethodCallback") | |
, L = (0, | |
I.subscribeOnce)("onDrawCanvas"); | |
"undefined" != typeof __widgetConfig__ && (D = "number" == typeof __widgetConfig__.drawMinInterval ? __widgetConfig__.drawMinInterval : 25), | |
(0, | |
k.subscribe)("canvasInsert", function(e, t) { | |
var n = e.canvasId | |
, o = e.canvasNumber | |
, r = e.pluginId | |
, a = e.data | |
, i = e.position | |
, u = e.nodeId | |
, c = e.compPath | |
, s = (0, | |
I.concatId)(t, n, r, u); | |
T[o] = { | |
lastTouches: [], | |
data: a, | |
compPath: c | |
}, | |
x[s] = o, | |
E[o] = i, | |
Array.isArray(A[s]) && (A[s].forEach(function(e) { | |
d(o, e.actions, e.reserve, e.useHardwareAccelerate, e.success, e.fail, e.complete) | |
}), | |
delete A[s]) | |
}), | |
(0, | |
k.subscribe)("canvasUpdate", function(e, t) { | |
var n = (e.canvasId, | |
e.canvasNumber) | |
, o = e.position; | |
E.hasOwnProperty(n) && (E[n] = o) | |
}), | |
(0, | |
k.subscribe)("canvasRemove", function(e, t) { | |
var n = e.canvasId | |
, o = e.pluginId | |
, r = e.nodeId | |
, a = (0, | |
I.concatId)(t, n, o, r); | |
x[a] && delete x[a] | |
}); | |
var F = void 0; | |
(0, | |
k.invokeMethod)("getSystemInfo", {}, { | |
beforeSuccess: function(e) { | |
F = e | |
} | |
}); | |
var W = function(e, t, n, o) { | |
n *= t, | |
o *= t, | |
e.x = e.x ? e.x * t : 0, | |
e.y = e.y ? e.y * t : 0, | |
(e.x < 0 || e.x > n) && (e.x = 0), | |
(e.y < 0 || e.y > o) && (e.y = 0), | |
e.width = e.width ? Math.min(n - e.x, e.width * t) : n - e.x, | |
e.height = e.height ? Math.min(o - e.y, e.height * t) : o - e.y, | |
e.destWidth = e.destWidth ? e.destWidth / t : e.width / t, | |
e.destHeight = e.destHeight ? e.destHeight / t : e.height / t | |
} | |
, V = function(e, t, n, o) { | |
e.x = e.x ? e.x : 0, | |
e.y = e.y ? e.y : 0, | |
(e.x < 0 || e.x > n) && (e.x = 0), | |
(e.y < 0 || e.y > o) && (e.y = 0), | |
e.width = e.width ? Math.min(n - e.x, e.width) : n - e.x, | |
e.height = e.height ? Math.min(o - e.y, e.height) : o - e.y, | |
e.destWidth = e.destWidth ? e.destWidth : e.width * t, | |
e.destHeight = e.destHeight ? e.destHeight : e.height * t | |
} | |
, U = function(e, t) { | |
var n = (0, | |
C.assign)({}, t); | |
n.success = t.success, | |
n.fail = t.fail, | |
n.complete = t.complete; | |
var o = 300 | |
, r = 150; | |
E.hasOwnProperty(t.canvasId) && (o = E[t.canvasId].width, | |
r = E[t.canvasId].height), | |
"ios" !== (0, | |
C.getPlatform)() || "6.5.10" !== e.version && "6.5.11" !== e.version && "6.5.12" !== e.version ? V(n, e.pixelRatio, o, r) : W(n, e.pixelRatio, o, r), | |
(0, | |
k.invokeMethod)("canvasToTempFilePath", n) | |
} | |
, H = function() { | |
return new S.Context | |
} | |
, G = function() { | |
var e = new S.Context; | |
return e.isWidgetCanvas = !0, | |
e | |
} | |
, q = function(e, t) { | |
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "" | |
, o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : ""; | |
return new S.Context(e,t,n,o) | |
} | |
, K = function(e, t) { | |
var n = t && t.__wxExparserNodeId__ && t.__wxExparserNodeId__ !== o.getRootNodeId(M.default.currentWebviewId) ? t.__wxExparserNodeId__ : ""; | |
return q(M.default.currentWebviewId, e, n) | |
} | |
, z = function(e, t, n) { | |
return q(M.default.currentWebviewId, e, n, t) | |
}; | |
t.canvas = x, | |
t.canvasInfo = T, | |
t.onCanvasMethodCallbackOnce = N, | |
t.clearOldWebviewCanvas = r, | |
t.createContext = H, | |
t.createWidgetContext = G, | |
t.drawCanvasImpl = p, | |
t.drawCanvas = h, | |
t.canvasToTempFilePath = y, | |
t.createCanvasContext = K, | |
t.drawCanvas4Plugin = v, | |
t.canvasToTempFilePath4Plugin = b, | |
t.createCanvasContext4Plugin = z, | |
t.canvasGetImageData4Plugin = c, | |
t.canvasPutImageData4Plugin = f, | |
t.canvasToDataURL = w, | |
t.canvasGetImageData = u, | |
t.canvasPutImageData = l | |
} | |
, function(e, t, n) { | |
function r(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function a(e) { | |
return "number" == typeof e | |
} | |
function i(e) { | |
var t = null; | |
if (null != (t = /^#([0-9|A-F|a-f]{6})$/.exec(e))) { | |
var n = parseInt(t[1].slice(0, 2), 16) | |
, o = parseInt(t[1].slice(2, 4), 16) | |
, r = parseInt(t[1].slice(4), 16); | |
return [n, o, r, 255] | |
} | |
if (null != (t = /^#([0-9|A-F|a-f]{3})$/.exec(e))) { | |
var n = t[1].slice(0, 1) | |
, o = t[1].slice(1, 2) | |
, r = t[1].slice(2, 3); | |
return n = parseInt(n + n, 16), | |
o = parseInt(o + o, 16), | |
r = parseInt(r + r, 16), | |
[n, o, r, 255] | |
} | |
if (null != (t = /^rgb\((.+)\)$/.exec(e))) | |
return t[1].split(",").map(function(e) { | |
return Math.min(255, parseInt(e.trim())) | |
}).concat(255); | |
if (null != (t = /^rgba\((.+)\)$/.exec(e))) | |
return t[1].split(",").map(function(e, t) { | |
return 3 == t ? Math.floor(255 * parseFloat(e.trim())) : Math.min(255, parseInt(e.trim())) | |
}); | |
var a = e.toLowerCase(); | |
if (v.predefinedColor.hasOwnProperty(a)) { | |
t = /^#([0-9|A-F|a-f]{6,8})$/.exec(v.predefinedColor[a]); | |
var n = parseInt(t[1].slice(0, 2), 16) | |
, o = parseInt(t[1].slice(2, 4), 16) | |
, r = parseInt(t[1].slice(4, 6), 16) | |
, i = parseInt(t[1].slice(6, 8), 16); | |
return i = i >= 0 ? i : 255, | |
[n, o, r, i] | |
} | |
return console.group("非法颜色: " + e), | |
console.error("不支持颜色:" + e), | |
console.groupEnd(), | |
[0, 0, 0, 255] | |
} | |
function u(e) { | |
if (Array.isArray(e)) { | |
var t = []; | |
return e.forEach(function(e) { | |
t.push(u(e)) | |
}), | |
t | |
} | |
if ("object" == (void 0 === e ? "undefined" : f(e))) { | |
var t = {}; | |
for (var n in e) | |
t[n] = u(e[n]); | |
return t | |
} | |
return e | |
} | |
function c(e, t, n) { | |
"string" == typeof n ? e.actions.push({ | |
method: t, | |
data: ["normal", i(n)] | |
}) : "object" == (void 0 === n ? "undefined" : f(n)) && n instanceof P ? e.actions.push({ | |
method: t, | |
data: [n.type, n.data, n.colorStop] | |
}) : n instanceof I && e.actions.push({ | |
method: t, | |
data: ["pattern", n.image, n.repetition] | |
}) | |
} | |
function s(e, t) { | |
if ("devtools" !== k && !/wxfile:\/\//.test(t)) | |
if (e.pluginId || e.nodeId) { | |
var n = e.pluginId.split("/")[0] | |
, r = o.getNodeById(e.nodeId, e.webviewId) | |
, a = r && r.is || ""; | |
t = n ? "__plugin__/" + n + "/" + (0, | |
p.getRealRoute)(a, t, !1).replace(/\.html$/, "") : (0, | |
p.getRealRoute)(a, t, !1).replace(/\.html$/, "") | |
} else | |
t = (0, | |
p.getRealRoute)(_.default.lastRoute, t, !1).replace(/.html$/, ""); | |
return t | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.Context = void 0; | |
var l = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}() | |
, f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
, d = n(1) | |
, p = n(2) | |
, h = n(31) | |
, v = n(33) | |
, g = n(5) | |
, _ = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(g) | |
, y = n(34) | |
, b = ["scale", "rotate", "translate", "setTransform", "transform"] | |
, m = ["drawImage", "fillText", "fill", "stroke", "fillRect", "strokeRect", "clearRect", "strokeText"] | |
, w = ["setFillStyle", "setTextAlign", "setStrokeStyle", "setGlobalAlpha", "setShadow", "setFontSize", "setLineCap", "setLineJoin", "setLineWidth", "setMiterLimit", "setTextBaseline", "setLineDash"] | |
, k = void 0 | |
, S = {} | |
, C = {} | |
, P = function() { | |
function e(t, n) { | |
r(this, e), | |
this.type = t, | |
this.data = n, | |
this.colorStop = [] | |
} | |
return l(e, [{ | |
key: "addColorStop", | |
value: function(e, t) { | |
this.colorStop.push([e, i(t)]) | |
} | |
}]), | |
e | |
}() | |
, M = function e(t) { | |
r(this, e), | |
this.width = t | |
} | |
, I = function e(t, n) { | |
r(this, e), | |
this.image = t, | |
this.repetition = n | |
} | |
, O = function() { | |
function e(t, n, o, a) { | |
if (r(this, e), | |
this.actions = [], | |
this.path = [], | |
this.subpath = [], | |
this.webviewId = t, | |
this.canvasId = n, | |
this.pluginId = a, | |
this.useHardwareAccelerate = !0, | |
this.nodeId = o, | |
this._id = (0, | |
y.concatId)(t, n, a, o), | |
this.drawingState = S[this._id] = S[this._id] || [], | |
this.state = C[this._id] = C[this._id] || { | |
lineDash: [0, 0], | |
shadowOffsetX: 0, | |
shadowOffsetY: 0, | |
shadowBlur: 0, | |
shadowColor: "ios" === k ? [] : [0, 0, 0, 0], | |
font: "10px sans-serif", | |
fontSize: 10, | |
fontWeight: "normal", | |
fontStyle: "normal", | |
fontFamily: "sans-serif" | |
}, | |
"devtools" === (k = k || (0, | |
p.getPlatform)())) { | |
var i = document.createElement("canvas"); | |
this._context = i.getContext("2d") | |
} | |
} | |
return l(e, [{ | |
key: "getActions", | |
value: function() { | |
var e = u(this.actions); | |
return this.actions = [], | |
this.path = [], | |
this.subpath = [], | |
e | |
} | |
}, { | |
key: "clearActions", | |
value: function() { | |
this.actions = [], | |
this.path = [], | |
this.subpath = [] | |
} | |
}, { | |
key: "draw", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0] | |
, t = arguments[1] | |
, n = this.canvasId | |
, o = (this.pluginId, | |
u(this.actions)) | |
, r = this.useHardwareAccelerate; | |
this.actions = [], | |
this.path = [], | |
this.useHardwareAccelerate = !0, | |
this.isWidgetCanvas ? (0, | |
h.drawCanvasImpl)({ | |
isWidgetCanvas: !0, | |
actions: o, | |
reserve: e | |
}) : (0, | |
h.drawCanvasImpl)({ | |
canvasId: n, | |
actions: o, | |
reserve: e, | |
useHardwareAccelerate: r, | |
complete: t | |
}, this.webviewId, this.pluginId, this.nodeId) | |
} | |
}, { | |
key: "createLinearGradient", | |
value: function(e, t, n, o) { | |
return new P("linear",[e, t, n, o]) | |
} | |
}, { | |
key: "createCircularGradient", | |
value: function(e, t, n) { | |
return new P("radial",[e, t, n]) | |
} | |
}, { | |
key: "createPattern", | |
value: function(e, t) { | |
return void 0 === t ? void console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.") : -1 === ["repeat", "repeat-x", "repeat-y", "no-repeat"].indexOf(t) ? void console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('" + t + "') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.") : (e = s(this, e), | |
new I(e,t)) | |
} | |
}, { | |
key: "measureText", | |
value: function(e) { | |
var t = void 0; | |
return "devtools" === k ? (this._context.font = this.state.font, | |
t = this._context.measureText(e)) : (0, | |
d.invokeMethod)("measureText", { | |
text: e, | |
fontSize: this.state.fontSize, | |
fontFamily: this.state.fontFamily, | |
fontWeight: this.state.fontWeight, | |
fontStyle: this.state.fontStyle, | |
complete: function(e) { | |
t = { | |
width: e.width || 0 | |
} | |
} | |
}), | |
new M(t.width || 0) | |
} | |
}, { | |
key: "save", | |
value: function() { | |
this.actions.push({ | |
method: "save", | |
data: [] | |
}), | |
this.drawingState.push(this.state) | |
} | |
}, { | |
key: "restore", | |
value: function() { | |
this.actions.push({ | |
method: "restore", | |
data: [] | |
}), | |
this.state = C[this._id] = this.drawingState.pop() || { | |
lineDash: [0, 0], | |
shadowOffsetX: 0, | |
shadowOffsetY: 0, | |
shadowBlur: 0, | |
shadowColor: "ios" === k ? [] : [0, 0, 0, 0], | |
font: "10px sans-serif", | |
fontSize: 10, | |
fontWeight: "normal", | |
fontStyle: "normal", | |
fontFamily: "sans-serif" | |
} | |
} | |
}, { | |
key: "getLineDash", | |
value: function() { | |
return this.state.lineDash | |
} | |
}, { | |
key: "beginPath", | |
value: function() { | |
this.path = [], | |
this.subpath = [] | |
} | |
}, { | |
key: "moveTo", | |
value: function(e, t) { | |
this.path.push({ | |
method: "moveTo", | |
data: [e, t] | |
}), | |
this.subpath = [[e, t]] | |
} | |
}, { | |
key: "closePath", | |
value: function() { | |
this.path.push({ | |
method: "closePath", | |
data: [] | |
}), | |
this.subpath.length && (this.subpath = [this.subpath.shift()]) | |
} | |
}, { | |
key: "lineTo", | |
value: function(e, t) { | |
0 === this.path.length && 0 === this.subpath.length ? this.path.push({ | |
method: "moveTo", | |
data: [].slice.apply(arguments) | |
}) : this.path.push({ | |
method: "lineTo", | |
data: [].slice.apply(arguments) | |
}), | |
this.subpath.push([e, t]) | |
} | |
}, { | |
key: "quadraticCurveTo", | |
value: function(e, t, n, o) { | |
this.path.push({ | |
method: "quadraticCurveTo", | |
data: [e, t, n, o] | |
}), | |
this.subpath.push([n, o]) | |
} | |
}, { | |
key: "bezierCurveTo", | |
value: function(e, t, n, o, r, a) { | |
this.path.push({ | |
method: "bezierCurveTo", | |
data: [e, t, n, o, r, a] | |
}), | |
this.subpath.push([r, a]) | |
} | |
}, { | |
key: "arc", | |
value: function(e, t, n, o, r) { | |
var a = arguments.length > 5 && void 0 !== arguments[5] && arguments[5]; | |
if ("android" !== k) | |
return this.path.push({ | |
method: "arc", | |
data: [e, t, n, o, r, a] | |
}), | |
void this.subpath.push([e, t]); | |
var i = e + Math.cos(o) * n | |
, u = t + Math.sin(o) * n; | |
if (this.subpath.push([i, u]), | |
a && o - r >= 2 * Math.PI || !a && r - o >= 2 * Math.PI) | |
this.subpath.push([i, u]); | |
else { | |
var c = e + Math.cos(r) * n | |
, s = t + Math.sin(r) * n; | |
this.subpath.push([c, s]) | |
} | |
this.path.push({ | |
method: "arc", | |
data: [e, t, n, o, r, a] | |
}) | |
} | |
}, { | |
key: "rect", | |
value: function(e, t, n, o) { | |
this.path.push({ | |
method: "rect", | |
data: [e, t, n, o] | |
}), | |
this.subpath = [[e, t]], | |
"android" === k && this.path.push({ | |
method: "closePath", | |
data: [] | |
}) | |
} | |
}, { | |
key: "arcTo", | |
value: function(e, t, n, o, r, a) { | |
if ("android" !== k && !a) | |
return this.path.push({ | |
method: "arcTo", | |
data: [e, t, n, o, r] | |
}), | |
void this.subpath.push([n, o]); | |
var i = this.subpath[this.subpath.length - 1] | |
, u = i[0] | |
, c = i[1]; | |
if (u === e && c === t || e === n && t === o || 0 === r) | |
return this.actions.push({ | |
method: "lineTo", | |
data: [e, t] | |
}), | |
void this.subpath.push([e, t]); | |
if (u === e && u === n || c === t && c === o) | |
return this.actions.push({ | |
method: "lineTo", | |
data: [e, t] | |
}), | |
void this.subpath.push([e, t]); | |
var s = Math.sqrt | |
, l = Math.acos | |
, f = Math.sin | |
, d = Math.tan | |
, p = (Math.cos, | |
Math.atan) | |
, h = Math.abs | |
, v = Math.PI | |
, g = function(e) { | |
return Math.pow(e, 2) | |
} | |
, _ = u - e | |
, y = c - t | |
, b = n - e | |
, m = o - t | |
, w = (_ * b + y * m) / (s(g(_) + g(y)) * s(g(b) + g(m))) | |
, S = l(w) / 2 | |
, C = r / f(S) | |
, P = r / d(S) | |
, M = void 0 | |
, I = void 0; | |
if (u - e == 0) | |
M = e, | |
I = c - t > 0 ? t + P : t - P; | |
else { | |
var O = (c - t) / (u - e) | |
, T = c - O * u; | |
M = (s(g(_) + g(y)) * P + _ * e + y * t - T * y) / (_ + O * y), | |
I = O * M + T | |
} | |
var E = void 0 | |
, x = void 0; | |
if (n - e == 0) | |
E = e, | |
x = o - t > 0 ? t + P : t - P; | |
else { | |
var A = (o - t) / (n - e) | |
, j = o - A * n; | |
E = (s(g(b) + g(b)) * P + b * e + m * t - j * m) / (b + A * m), | |
x = A * E + j | |
} | |
var B = void 0 | |
, D = void 0 | |
, R = (M + E) / 2 - e | |
, N = (I + x) / 2 - t; | |
if (0 === N) | |
B = e, | |
D = N > 0 ? t + C : t - C; | |
else { | |
var L = N / R | |
, F = t - L * e; | |
B = (s(g(R) + g(N)) * C + e * R + t * N - F * N) / (R + L * N), | |
D = L * B + F | |
} | |
var W = 0 | |
, V = 0 | |
, U = I - D | |
, H = M - B | |
, G = v - 2 * S | |
, q = p(h(U) / h(H)); | |
H <= 0 && U <= 0 ? q = v + q : H <= 0 && U >= 0 ? q = v - q : H >= 0 && U <= 0 && (q = -q), | |
(M - B) * (x - D) - (I - D) * (E - B) > 0 ? (W = q, | |
V = q + G) : (W = q - G, | |
V = q), | |
this.path.push({ | |
method: "arc", | |
data: [B, D, r, W, V, !1] | |
}) | |
} | |
}, { | |
key: "clip", | |
value: function() { | |
this.actions.push({ | |
method: "clip", | |
data: u(this.path) | |
}) | |
} | |
}, { | |
key: "lineDashOffset", | |
set: function(e) { | |
if ("devtools" !== k) { | |
var t = this.state.lineDash || [0, 0]; | |
this.actions.push({ | |
method: "setLineDash", | |
data: [t, e] | |
}) | |
} else | |
this.actions.push({ | |
method: "setLineDashOffset", | |
data: [e] | |
}) | |
} | |
}, { | |
key: "globalCompositeOperation", | |
set: function(e) { | |
this.actions.push({ | |
method: "setGlobalCompositeOperation", | |
data: [e] | |
}) | |
} | |
}, { | |
key: "shadowBlur", | |
set: function(e) { | |
if ("devtools" === k) | |
return void this.actions.push({ | |
method: "setShadowBlur", | |
data: [e] | |
}); | |
this.actions.push({ | |
method: "setShadow", | |
data: [this.state.shadowOffsetX, this.state.shadowOffsetY, e, this.state.shadowColor] | |
}), | |
this.state.shadowBlur = e | |
} | |
}, { | |
key: "shadowColor", | |
set: function(e) { | |
if ("devtools" === k) | |
return void this.actions.push({ | |
method: "setShadowColor", | |
data: [e] | |
}); | |
var t = void 0; | |
t = "ios" === k && 0 === this.state.shadowBlur ? [] : i(e), | |
this.actions.push({ | |
method: "setShadow", | |
data: [this.state.shadowOffsetX, this.state.shadowOffsetY, this.state.shadowBlur, t] | |
}), | |
this.state.shadowColor = t | |
} | |
}, { | |
key: "shadowOffsetX", | |
set: function(e) { | |
if ("devtools" === k) | |
return void this.actions.push({ | |
method: "setShadowOffsetX", | |
data: [e] | |
}); | |
this.actions.push({ | |
method: "setShadow", | |
data: [e, this.state.shadowOffsetY, this.state.shadowBlur, this.state.shadowColor] | |
}), | |
this.state.shadowOffsetX = e | |
} | |
}, { | |
key: "shadowOffsetY", | |
set: function(e) { | |
if ("devtools" === k) | |
return void this.actions.push({ | |
method: "setShadowOffsetY", | |
data: [e] | |
}); | |
this.actions.push({ | |
method: "setShadow", | |
data: [this.state.shadowOffsetX, e, this.state.shadowBlur, this.state.shadowColor] | |
}), | |
this.state.shadowOffsetY = e | |
} | |
}, { | |
key: "font", | |
set: function(e) { | |
function t() { | |
c.push({ | |
method: "setFontStyle", | |
data: ["normal"] | |
}), | |
l.state.fontStyle = "normal" | |
} | |
function n() { | |
c.push({ | |
method: "setFontWeight", | |
data: ["normal"] | |
}), | |
l.state.fontWeight = "normal" | |
} | |
var o = this; | |
this.state.font = e; | |
var r = e.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/); | |
if (!r) | |
return void console.warn("Failed to set 'font' on 'CanvasContext': invalid format."); | |
var a = r[1].trim().split(/\s/) | |
, i = parseFloat(r[3]) | |
, u = r[7] | |
, c = [] | |
, s = "" | |
, l = this; | |
if (a.forEach(function(e, r) { | |
["italic", "oblique", "normal"].indexOf(e) > -1 ? (c.push({ | |
method: "setFontStyle", | |
data: [e] | |
}), | |
o.state.fontStyle = e) : ["bold", "normal"].indexOf(e) > -1 ? (c.push({ | |
method: "setFontWeight", | |
data: [e] | |
}), | |
o.state.fontWeight = e) : 0 === r ? t() : 1 === r && n() | |
}), | |
1 === a.length && n(), | |
s = c.map(function(e) { | |
return e.data[0] | |
}).join(" "), | |
this.state.fontSize = i, | |
this.state.fontFamily = u, | |
"devtools" === k) | |
return s = s + " " + i + "px " + u, | |
void this.actions.push({ | |
method: "setFont", | |
data: [s] | |
}); | |
this.actions.push.apply(this.actions, c), | |
this.actions.push({ | |
method: "setFontSize", | |
data: [i] | |
}, { | |
method: "setFontFamily", | |
data: [u] | |
}) | |
}, | |
get: function() { | |
return this.state.font | |
} | |
}, { | |
key: "fillStyle", | |
set: function(e) { | |
c(this, "setFillStyle", e) | |
} | |
}, { | |
key: "strokeStyle", | |
set: function(e) { | |
c(this, "setStrokeStyle", e) | |
} | |
}, { | |
key: "globalAlpha", | |
set: function(e) { | |
e = Math.floor(255 * parseFloat(e)), | |
this.actions.push({ | |
method: "setGlobalAlpha", | |
data: [e] | |
}) | |
} | |
}, { | |
key: "textAlign", | |
set: function(e) { | |
this.actions.push({ | |
method: "setTextAlign", | |
data: [e] | |
}) | |
} | |
}, { | |
key: "lineCap", | |
set: function(e) { | |
this.actions.push({ | |
method: "setLineCap", | |
data: [e] | |
}) | |
} | |
}, { | |
key: "lineJoin", | |
set: function(e) { | |
this.actions.push({ | |
method: "setLineJoin", | |
data: [e] | |
}) | |
} | |
}, { | |
key: "lineWidth", | |
set: function(e) { | |
this.actions.push({ | |
method: "setLineWidth", | |
data: [e] | |
}) | |
} | |
}, { | |
key: "miterLimit", | |
set: function(e) { | |
this.actions.push({ | |
method: "setMiterLimit", | |
data: [e] | |
}) | |
} | |
}, { | |
key: "textBaseline", | |
set: function(e) { | |
this.actions.push({ | |
method: "setTextBaseline", | |
data: [e] | |
}) | |
} | |
}]), | |
e | |
}(); | |
[].concat(b, m).forEach(function(e) { | |
O.prototype[e] = "fill" == e || "stroke" == e ? function() { | |
this.actions.push({ | |
method: e + "Path", | |
data: u(this.path) | |
}) | |
} | |
: "fillRect" === e ? function(e, t, n, o) { | |
this.actions.push({ | |
method: "fillPath", | |
data: [{ | |
method: "rect", | |
data: [e, t, n, o] | |
}] | |
}) | |
} | |
: "strokeRect" === e ? function(e, t, n, o) { | |
this.actions.push({ | |
method: "strokePath", | |
data: [{ | |
method: "rect", | |
data: [e, t, n, o] | |
}] | |
}) | |
} | |
: "fillText" === e || "strokeText" === e ? function(t, n, o, r) { | |
var a = [t.toString(), n, o]; | |
"number" == typeof r && a.push(r), | |
this.actions.push({ | |
method: e, | |
data: a | |
}) | |
} | |
: "drawImage" == e ? function(t, n, o, r, i, u, c, l, f) { | |
t = s(this, t), | |
void 0 === f && (u = n, | |
c = o, | |
l = r, | |
f = i, | |
n = void 0, | |
o = void 0, | |
r = void 0, | |
i = void 0); | |
var d = void 0; | |
d = a(n) && a(o) && a(r) && a(i) ? [t, u, c, l, f, n, o, r, i] : a(l) && a(f) ? [t, u, c, l, f] : [t, u, c], | |
this.actions.push({ | |
method: e, | |
data: d | |
}) | |
} | |
: "clearRect" === e ? function() { | |
this.useHardwareAccelerate = !1, | |
this.actions.push({ | |
method: e, | |
data: [].slice.apply(arguments) | |
}) | |
} | |
: function() { | |
this.actions.push({ | |
method: e, | |
data: [].slice.apply(arguments) | |
}) | |
} | |
}), | |
w.forEach(function(e) { | |
"setFillStyle" == e || "setStrokeStyle" == e ? O.prototype[e] = function() { | |
var t = arguments[0]; | |
c(this, e, t) | |
} | |
: "setGlobalAlpha" === e ? O.prototype[e] = function() { | |
var t = [].slice.apply(arguments, [0, 1]); | |
t[0] = Math.floor(255 * parseFloat(t[0])), | |
this.actions.push({ | |
method: e, | |
data: t | |
}) | |
} | |
: "setShadow" == e ? O.prototype[e] = function() { | |
var t = [].slice.apply(arguments, [0, 4]); | |
t[3] = "ios" === k && 0 === t[2] ? [] : i(t[3]), | |
this.actions.push({ | |
method: e, | |
data: t | |
}), | |
this.state.shadowBlur = t[2], | |
this.state.shadowColor = t[3], | |
this.state.shadowOffsetX = t[0], | |
this.state.shadowOffsetY = t[1] | |
} | |
: "setLineDash" == e ? O.prototype[e] = function() { | |
var t = [].slice.apply(arguments, [0, 2]); | |
t[0] = t[0] || [0, 0], | |
t[1] = t[1] || 0, | |
this.actions.push({ | |
method: e, | |
data: t | |
}), | |
this.state.lineDash = t[0] | |
} | |
: "setFontSize" === e ? O.prototype.setFontSize = function(e) { | |
this.state.font = this.state.font.replace(/\d+\.?\d*px/, e + "px"), | |
this.state.fontSize = e, | |
this.actions.push({ | |
method: "setFontSize", | |
data: [e] | |
}) | |
} | |
: O.prototype[e] = function() { | |
this.actions.push({ | |
method: e, | |
data: [].slice.apply(arguments, [0, 1]) | |
}) | |
} | |
}), | |
t.Context = O | |
} | |
, function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var n = { | |
aliceblue: "#f0f8ff", | |
antiquewhite: "#faebd7", | |
aqua: "#00ffff", | |
aquamarine: "#7fffd4", | |
azure: "#f0ffff", | |
beige: "#f5f5dc", | |
bisque: "#ffe4c4", | |
black: "#000000", | |
blanchedalmond: "#ffebcd", | |
blue: "#0000ff", | |
blueviolet: "#8a2be2", | |
brown: "#a52a2a", | |
burlywood: "#deb887", | |
cadetblue: "#5f9ea0", | |
chartreuse: "#7fff00", | |
chocolate: "#d2691e", | |
coral: "#ff7f50", | |
cornflowerblue: "#6495ed", | |
cornsilk: "#fff8dc", | |
crimson: "#dc143c", | |
cyan: "#00ffff", | |
darkblue: "#00008b", | |
darkcyan: "#008b8b", | |
darkgoldenrod: "#b8860b", | |
darkgray: "#a9a9a9", | |
darkgrey: "#a9a9a9", | |
darkgreen: "#006400", | |
darkkhaki: "#bdb76b", | |
darkmagenta: "#8b008b", | |
darkolivegreen: "#556b2f", | |
darkorange: "#ff8c00", | |
darkorchid: "#9932cc", | |
darkred: "#8b0000", | |
darksalmon: "#e9967a", | |
darkseagreen: "#8fbc8f", | |
darkslateblue: "#483d8b", | |
darkslategray: "#2f4f4f", | |
darkslategrey: "#2f4f4f", | |
darkturquoise: "#00ced1", | |
darkviolet: "#9400d3", | |
deeppink: "#ff1493", | |
deepskyblue: "#00bfff", | |
dimgray: "#696969", | |
dimgrey: "#696969", | |
dodgerblue: "#1e90ff", | |
firebrick: "#b22222", | |
floralwhite: "#fffaf0", | |
forestgreen: "#228b22", | |
fuchsia: "#ff00ff", | |
gainsboro: "#dcdcdc", | |
ghostwhite: "#f8f8ff", | |
gold: "#ffd700", | |
goldenrod: "#daa520", | |
gray: "#808080", | |
grey: "#808080", | |
green: "#008000", | |
greenyellow: "#adff2f", | |
honeydew: "#f0fff0", | |
hotpink: "#ff69b4", | |
indianred: "#cd5c5c", | |
indigo: "#4b0082", | |
ivory: "#fffff0", | |
khaki: "#f0e68c", | |
lavender: "#e6e6fa", | |
lavenderblush: "#fff0f5", | |
lawngreen: "#7cfc00", | |
lemonchiffon: "#fffacd", | |
lightblue: "#add8e6", | |
lightcoral: "#f08080", | |
lightcyan: "#e0ffff", | |
lightgoldenrodyellow: "#fafad2", | |
lightgray: "#d3d3d3", | |
lightgrey: "#d3d3d3", | |
lightgreen: "#90ee90", | |
lightpink: "#ffb6c1", | |
lightsalmon: "#ffa07a", | |
lightseagreen: "#20b2aa", | |
lightskyblue: "#87cefa", | |
lightslategray: "#778899", | |
lightslategrey: "#778899", | |
lightsteelblue: "#b0c4de", | |
lightyellow: "#ffffe0", | |
lime: "#00ff00", | |
limegreen: "#32cd32", | |
linen: "#faf0e6", | |
magenta: "#ff00ff", | |
maroon: "#800000", | |
mediumaquamarine: "#66cdaa", | |
mediumblue: "#0000cd", | |
mediumorchid: "#ba55d3", | |
mediumpurple: "#9370db", | |
mediumseagreen: "#3cb371", | |
mediumslateblue: "#7b68ee", | |
mediumspringgreen: "#00fa9a", | |
mediumturquoise: "#48d1cc", | |
mediumvioletred: "#c71585", | |
midnightblue: "#191970", | |
mintcream: "#f5fffa", | |
mistyrose: "#ffe4e1", | |
moccasin: "#ffe4b5", | |
navajowhite: "#ffdead", | |
navy: "#000080", | |
oldlace: "#fdf5e6", | |
olive: "#808000", | |
olivedrab: "#6b8e23", | |
orange: "#ffa500", | |
orangered: "#ff4500", | |
orchid: "#da70d6", | |
palegoldenrod: "#eee8aa", | |
palegreen: "#98fb98", | |
paleturquoise: "#afeeee", | |
palevioletred: "#db7093", | |
papayawhip: "#ffefd5", | |
peachpuff: "#ffdab9", | |
peru: "#cd853f", | |
pink: "#ffc0cb", | |
plum: "#dda0dd", | |
powderblue: "#b0e0e6", | |
purple: "#800080", | |
rebeccapurple: "#663399", | |
red: "#ff0000", | |
rosybrown: "#bc8f8f", | |
royalblue: "#4169e1", | |
saddlebrown: "#8b4513", | |
salmon: "#fa8072", | |
sandybrown: "#f4a460", | |
seagreen: "#2e8b57", | |
seashell: "#fff5ee", | |
sienna: "#a0522d", | |
silver: "#c0c0c0", | |
skyblue: "#87ceeb", | |
slateblue: "#6a5acd", | |
slategray: "#708090", | |
slategrey: "#708090", | |
snow: "#fffafa", | |
springgreen: "#00ff7f", | |
steelblue: "#4682b4", | |
tan: "#d2b48c", | |
teal: "#008080", | |
thistle: "#d8bfd8", | |
tomato: "#ff6347", | |
turquoise: "#40e0d0", | |
violet: "#ee82ee", | |
wheat: "#f5deb3", | |
white: "#ffffff", | |
whitesmoke: "#f5f5f5", | |
yellow: "#ffff00", | |
yellowgreen: "#9acd32", | |
transparent: "#00000000" | |
}; | |
t.predefinedColor = n | |
} | |
, function(e, t, n) { | |
function r(e, t) { | |
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "" | |
, r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : "" | |
, a = "canvas_" + e + "_" + t + "_" + n + "_"; | |
return r && r !== o.getRootNodeId(e) && (a += r), | |
a | |
} | |
function a(e) { | |
var t = [] | |
, n = 1; | |
return (0, | |
c.subscribe)(e, function(e) { | |
t.forEach(function(t) { | |
var n = t[0] | |
, o = t[1]; | |
n.cid === e.cid && n.canvasId === e.canvasId && o(e) | |
}), | |
t = [] | |
}), | |
function(e, o) { | |
e.cid = n++, | |
t.push([e, o]) | |
} | |
} | |
function i(e) { | |
for (var t = "", n = 0; n < e.length; n++) | |
t += String.fromCharCode(e[n]); | |
return window.__global.btoa(t) | |
} | |
function u(e) { | |
for (var t = window.atob(e), n = t.length, o = new Uint8ClampedArray(n), r = 0; r < n; r++) | |
o[r] = t.charCodeAt(r); | |
return o | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.ImageData = void 0, | |
t.concatId = r, | |
t.subscribeOnce = a, | |
t.uint8ClampedArrayToBase64 = i, | |
t.base64ToUint8ClampedArray = u; | |
var c = n(1) | |
, s = t.ImageData = void 0 !== s ? s : function(e, t, n) { | |
if ("[object Uint8ClampedArray]" !== Object.prototype.toString.call(e)) | |
return void console.error("parameter 1 is not of type 'Uint8ClampedArray'"); | |
Object.defineProperty(this, "data", { | |
value: e, | |
enumerable: !0 | |
}), | |
Object.defineProperty(this, "width", { | |
value: t, | |
enumerable: !0 | |
}), | |
Object.defineProperty(this, "height", { | |
value: n, | |
enumerable: !0 | |
}), | |
this.constructor.prototype.constructor = function() {} | |
, | |
this.__proto__ && "undefined" != typeof Symbol && (this.__proto__[Symbol.toStringTag] = "ImageData") | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.offError = t.onError = void 0; | |
var o = n(19) | |
, r = (0, | |
o.getEventManager)("AppService-Error") | |
, a = r.onMethod | |
, i = r.offMethod; | |
Reporter.registerErrorListener(function(e) { | |
r.emit(e) | |
}), | |
t.onError = a, | |
t.offError = i | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onAppRouteDone = void 0; | |
var o = n(1) | |
, r = n(5) | |
, a = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(r) | |
, i = n(19) | |
, u = (0, | |
i.getEventManager)("AppRouteDone") | |
, c = u.internalOnMethod; | |
(0, | |
o.onMethod)("onAppRouteDone", function(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; | |
a.default.navigatorLock = !1, | |
e.path = e.path.substring(0, e.path.length - 5), | |
e.webviewId = void 0 !== e.webviewId ? e.webviewId : t, | |
a.default.lastRoute = e.path, | |
u.emit(e), | |
(0, | |
o.publish)("onAppRouteDone", {}, [t]) | |
}), | |
t.onAppRouteDone = c | |
} | |
, function(e, t, n) { | |
function o(e) { | |
for (var t = {}, n = e.split("&"), o = 0; o < n.length; o++) { | |
var r = n[o].split("="); | |
if (r.length > 1) | |
try { | |
t[r[0]] = decodeURIComponent(r[1]) | |
} catch (e) {} | |
} | |
return t | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.offPageNotFound = t.onPageNotFound = void 0; | |
var r = n(1) | |
, a = n(5) | |
, i = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(a) | |
, u = n(2) | |
, c = n(19) | |
, s = (0, | |
c.getEventManager)("PageNotFound") | |
, l = s.onMethod | |
, f = s.offMethod | |
, d = { | |
page: void 0, | |
time: Date.now(), | |
count: 0 | |
}; | |
(0, | |
r.onMethod)("onPageNotFound", function(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; | |
i.default.lastRoute = "", | |
e && "string" == typeof e.path && e.path.endsWith(".html") && (e.path = (0, | |
u.removeHtmlSuffixFromUrl)(e.path)), | |
e && "string" == typeof e.query && (e.query = o(e.query)), | |
d.page && d.page === e.path ? d.count++ : d = { | |
page: e.path, | |
time: Date.now(), | |
count: 1 | |
}; | |
var n = !0; | |
Date.now() - d.time <= 3e3 && d.count > 3 ? (n = !1, | |
console.error('onPageNotFound Error: Can not found page "' + e.page + '".')) : s.emit(e), | |
(0, | |
r.invokeMethod)("pageNotFoundCallback", { | |
hasHandler: s.getGlobalListeners().length > 0 && n, | |
webviewId: t | |
}) | |
}), | |
t.onPageNotFound = l, | |
t.offPageNotFound = f | |
} | |
, function(e, t, n) { | |
function o(e) { | |
if (e && e.__esModule) | |
return e; | |
var t = {}; | |
if (null != e) | |
for (var n in e) | |
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); | |
return t.default = e, | |
t | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.checkIsUserAdvisedToRest = t.facialRecognition = t.redPacket = t.soter = t.card = t.share = t.payment = t.operateWXData = t.reportGroupShare = t.sendGroupMessage = void 0; | |
var r = n(39); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}); | |
var a = n(40); | |
Object.keys(a).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return a[e] | |
} | |
}) | |
}); | |
var i = n(41); | |
Object.keys(i).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return i[e] | |
} | |
}) | |
}); | |
var u = n(42); | |
Object.keys(u).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return u[e] | |
} | |
}) | |
}); | |
var c = n(43); | |
Object.keys(c).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return c[e] | |
} | |
}) | |
}); | |
var s = n(47); | |
Object.keys(s).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return s[e] | |
} | |
}) | |
}); | |
var l = n(48); | |
Object.keys(l).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return l[e] | |
} | |
}) | |
}); | |
var f = n(49); | |
Object.keys(f).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return f[e] | |
} | |
}) | |
}); | |
var d = n(50); | |
Object.keys(d).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return d[e] | |
} | |
}) | |
}); | |
var p = n(51); | |
Object.defineProperty(t, "sendGroupMessage", { | |
enumerable: !0, | |
get: function() { | |
return p.sendGroupMessage | |
} | |
}); | |
var h = n(52); | |
Object.defineProperty(t, "reportGroupShare", { | |
enumerable: !0, | |
get: function() { | |
return h.reportGroupShare | |
} | |
}), | |
Object.defineProperty(t, "operateWXData", { | |
enumerable: !0, | |
get: function() { | |
return f.operateWXData | |
} | |
}); | |
var v = n(53); | |
Object.defineProperty(t, "checkIsUserAdvisedToRest", { | |
enumerable: !0, | |
get: function() { | |
return v.checkIsUserAdvisedToRest | |
} | |
}); | |
var g = n(54) | |
, _ = o(g) | |
, y = n(59) | |
, b = o(y) | |
, m = n(65) | |
, w = o(m) | |
, k = n(66) | |
, S = o(k) | |
, C = n(70) | |
, P = o(C) | |
, M = n(76) | |
, I = o(M); | |
t.payment = _, | |
t.share = b, | |
t.card = w, | |
t.soter = S, | |
t.redPacket = P, | |
t.facialRecognition = I | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.checkSession = t.login = void 0; | |
var o = n(1) | |
, r = void 0 | |
, a = function(e) { | |
(0, | |
o.invokeMethod)("login", e) | |
} | |
, i = function(e) { | |
r && clearTimeout(r), | |
(0, | |
o.invokeMethod)("refreshSession", e, { | |
beforeSuccess: function(e) { | |
r = setTimeout(function() { | |
(0, | |
o.invokeMethod)("refreshSession") | |
}, 1e3 * e.expireIn), | |
delete e.err_code, | |
delete e.expireIn | |
}, | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("refreshSession", "checkSession") | |
} | |
}) | |
}; | |
t.login = a, | |
t.checkSession = i | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.authorize = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("authorize", e, { | |
scope: "" | |
}) && (0, | |
o.invokeMethod)("authorize", (0, | |
r.assign)(e, { | |
scope: [e.scope] | |
}), { | |
beforeAll: function(e) { | |
delete e.body, | |
void 0 !== e.err_code && (e.errCode = e.err_code, | |
delete e.err_code) | |
} | |
}) | |
}; | |
t.authorize = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getUserInfo = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("operateWXData", (0, | |
r.assign)({}, e, { | |
data: { | |
api_name: "webapi_getuserinfo", | |
with_credentials: "boolean" != typeof e.withCredentials || e.withCredentials, | |
data: { | |
lang: e.lang || "en" | |
} | |
} | |
}), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("operateWXData", "getUserInfo") | |
}, | |
beforeSuccess: function(e) { | |
"android" === (0, | |
r.getPlatform)() && "string" == typeof e.data && (e.data = JSON.parse(e.data)), | |
e.data || (e.data = {}), | |
void 0 !== e.data.data && (e.rawData = e.data.data); | |
try { | |
e.userInfo = JSON.parse(e.data.data), | |
e.signature = e.data.signature, | |
e.data.encryptedData && (e.encryptedData = e.data.encryptedData, | |
e.iv = e.data.iv), | |
delete e.data | |
} catch (e) {} | |
} | |
}) | |
}; | |
t.getUserInfo = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.chooseAddress = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function(e) { | |
(0, | |
o.invokeMethod)("openAddress", e, { | |
beforeSuccess: function(e) { | |
(0, | |
r.renameProperty)(e, "addressPostalCode", "postalCode"), | |
(0, | |
r.renameProperty)(e, "proviceFirstStageName", "provinceName"), | |
(0, | |
r.renameProperty)(e, "addressCitySecondStageName", "cityName"), | |
(0, | |
r.renameProperty)(e, "addressCountiesThirdStageName", "countyName"), | |
(0, | |
r.renameProperty)(e, "addressDetailInfo", "detailInfo") | |
}, | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("openAddress", "chooseAddress"), | |
delete e.err_msg | |
} | |
}) | |
}; | |
t.chooseAddress = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(44); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}); | |
var r = n(45); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getSetting = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("getSetting", e, { | |
beforeSuccess: function(e) { | |
e.authSetting; | |
e.authSetting = e.authSetting.reduce(function(e, t) { | |
return e[t.scope] = 1 === t.state, | |
e | |
}, {}) | |
} | |
}) | |
}; | |
t.getSetting = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t._openSetting = t.openSetting = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = n(46) | |
, i = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("openSetting", e, { | |
beforeSuccess: function(e) { | |
var t = e.authSetting || []; | |
e.authSetting = t.reduce(function(e, t) { | |
return e[t.scope] = 1 === t.state, | |
e | |
}, {}) | |
} | |
}) | |
} | |
, u = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
"devtools" === (0, | |
r.getPlatform)() ? (0, | |
o.beforeInvokeFail)("openSetting", e, "此接口已废弃,请使用 OpenSetting 组件") : ((0, | |
a.reportAPIRecycle)({ | |
name: "openSetting", | |
scene: 0 | |
}), | |
i(e)) | |
}; | |
t.openSetting = u, | |
t._openSetting = i | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.reportAPIRecycle = void 0; | |
var o = n(5) | |
, a = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, i = function(e) { | |
var t = e.name | |
, n = e.scene | |
, o = void 0; | |
void 0 !== r && (o = r.getCurrentPagesByDomain("").find(function(e) { | |
return e.__wxWebviewId__ === a.default.currentWebviewId | |
}) || {}); | |
var i = [t, n, Reporter.getAppType(), o ? o.route : ""].map(encodeURIComponent).join(","); | |
Reporter.reportKeyValue({ | |
key: "APIRecycle", | |
value: i, | |
force: !0 | |
}) | |
}; | |
t.reportAPIRecycle = i | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.addWeRunData = t.uploadWeRunData = t.getWeRunData = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("openWeRunSetting", { | |
checkSupport: !0, | |
success: function() { | |
(0, | |
o.invokeMethod)("operateWXData", (0, | |
r.assign)({ | |
data: { | |
api_name: "webapi_getwerunstep_history" | |
} | |
}, e), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("operateWXData", "getWeRunData") | |
}, | |
beforeSuccess: function(e) { | |
"android" === (0, | |
r.getPlatform)() && (e.data = JSON.parse(e.data)), | |
void 0 !== e.data.data && (e.rawData = e.data.data), | |
e.data.encryptedData && (e.encryptedData = e.data.encryptedData, | |
e.iv = e.data.iv), | |
delete e.data | |
} | |
}) | |
}, | |
fail: function(t) { | |
t.errMsg = t.errMsg.replace("openWeRunSetting", "getWeRunData"), | |
"function" == typeof e.fail && Reporter.surroundThirdByTryCatch(e.fail, "at api getWeRunData fail callback function")(t), | |
"function" == typeof e.complete && Reporter.surroundThirdByTryCatch(e.complete, "at api getWeRunData fail callback function")(t) | |
} | |
}) | |
} | |
, i = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ("number" != typeof e.step || e.step < 0) | |
return void (0, | |
o.beforeInvokeFail)("uploadWeRunData", e, "parameter error: step should be number and greater or equal to 0"); | |
(0, | |
o.invokeMethod)("openWeRunSetting", { | |
checkSupport: !1, | |
success: function() { | |
(0, | |
o.invokeMethod)("uploadWeRunData", e, {}) | |
}, | |
fail: function(t) { | |
t.errMsg = t.errMsg.replace("openWeRunSetting", "uploadWeRunData"), | |
"function" == typeof e.fail && Reporter.surroundThirdByTryCatch(e.fail, "at api uploadWeRunData fail callback function")(t), | |
"function" == typeof e.complete && Reporter.surroundThirdByTryCatch(e.complete, "at api uploadWeRunData fail callback function")(t) | |
} | |
}) | |
} | |
, u = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ("number" != typeof e.step || e.step < 0) | |
return void (0, | |
o.beforeInvokeFail)("addWeRunData", e, "parameter error: step should be number and greater or equal to 0"); | |
(0, | |
o.invokeMethod)("openWeRunSetting", { | |
checkSupport: !1, | |
success: function() { | |
(0, | |
o.invokeMethod)("addWeRunData", e, {}) | |
}, | |
fail: function(t) { | |
t.errMsg = t.errMsg.replace("openWeRunSetting", "addWeRunData"), | |
"function" == typeof e.fail && Reporter.surroundThirdByTryCatch(e.fail, "at api addWeRunData fail callback function")(t), | |
"function" == typeof e.complete && Reporter.surroundThirdByTryCatch(e.complete, "at api addWeRunData fail callback function")(t) | |
} | |
}) | |
}; | |
t.getWeRunData = a, | |
t.uploadWeRunData = i, | |
t.addWeRunData = u | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.chooseInvoiceTitle = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("chooseInvoiceTitle", e, { | |
beforeSuccess: function(e) { | |
var t = e.invoiceTitleInfo || e.choose_invoice_title_info; | |
if (t) | |
try { | |
var n = JSON.parse(t); | |
delete e.invoiceTitleInfo, | |
delete e.choose_invoice_title_info, | |
e = Object.assign(e, n) | |
} catch (e) {} | |
} | |
}) | |
}; | |
t.chooseInvoiceTitle = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t._pluginOperateWXData = t.constructOperateWXData = t._operateWXData = t.operateWXData = void 0; | |
var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
, r = n(1) | |
, a = n(2) | |
, i = function() { | |
var e = !(arguments.length > 0 && void 0 !== arguments[0]) || arguments[0] | |
, t = arguments[1] | |
, n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2]; | |
return function() { | |
var i = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
r.beforeInvoke)("operateWXData", i, { | |
apiName: "" | |
})) { | |
var u = { | |
api_name: i.apiName, | |
data: i.reqData || {}, | |
operate_directly: e | |
}; | |
n && (u.plugin_appid = i.pluginId), | |
(0, | |
r.invokeMethod)("operateWXData", Object.assign({}, { | |
data: u | |
}, i), { | |
beforeAll: function(e) { | |
void 0 !== (void 0 === t ? "undefined" : o(t)) && (e.errMsg = e.errMsg.replace("operateWXData", t)) | |
}, | |
beforeSuccess: function(e) { | |
"android" === (0, | |
a.getPlatform)() && (e.data = JSON.parse(e.data)), | |
void 0 !== e.data.data && (e.rawData = e.data.data), | |
e.data.encryptedData && (e.encryptedData = e.data.encryptedData, | |
e.iv = e.data.iv), | |
e.respData = e.data, | |
delete e.data | |
} | |
}) | |
} | |
} | |
} | |
, u = i(!0) | |
, c = i(!1) | |
, s = i(!1, void 0, !0); | |
t.operateWXData = u, | |
t._operateWXData = c, | |
t.constructOperateWXData = i, | |
t._pluginOperateWXData = s | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getOpenDeviceId = void 0; | |
var o = n(1) | |
, r = (0, | |
o.operateWXDataFactory)("getOpenDeviceId", "webapi_getdeviceinfo"); | |
t.getOpenDeviceId = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.sendGroupMessage = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvokeFail)("sendGroupMessage", e, "sendGroupMessage 接口已废弃") | |
}; | |
t.sendGroupMessage = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.reportGroupShare = void 0; | |
var o = n(49) | |
, r = function(e) { | |
(0, | |
o._operateWXData)({ | |
apiName: "webapi_reportgroupshare", | |
reqData: e | |
}) | |
}; | |
t.reportGroupShare = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.checkIsUserAdvisedToRest = void 0; | |
var o = n(1) | |
, r = (0, | |
o.operateWXDataFactory)("checkIsUserAdvisedToRest ", "webapi_getplaytimelimit", {}, {}, function(e) { | |
var t = e.todayPlayedTime; | |
return { | |
today_played_seconds: void 0 === t ? 0 : t | |
} | |
}, function(e) { | |
e.result = !e.is_healthy, | |
delete e.is_healthy | |
}) | |
, a = function(e) { | |
(0, | |
o.beforeInvoke)("checkIsUserAdvisedToRest", e, { | |
todayPlayedTime: 0 | |
}) && r(e) | |
}; | |
t.checkIsUserAdvisedToRest = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.requestMallPayment = t.openWCPayCardList = t.openOfflinePayView = t.requestVirtualPayment = t.requestPaymentToBank = t.bindPaymentCard = t.verifyPaymentPassword = t.requestPayment = void 0; | |
var o = n(1) | |
, r = n(55) | |
, a = function(e) { | |
if ((0, | |
o.beforeInvoke)("requestPayment", e, { | |
timeStamp: "", | |
nonceStr: "", | |
package: "", | |
signType: "", | |
paySign: "" | |
})) { | |
var t = (0, | |
r.getPayCookieString)(); | |
t ? e.cookie = t : delete e.cookie, | |
(0, | |
o.invokeMethod)("requestPayment", Object.assign({}, e, { | |
grantMessageQuota: !0 | |
})) | |
} | |
} | |
, i = function(e) { | |
(0, | |
o.invokeMethod)("verifyPaymentPassword", e) | |
} | |
, u = function(e) { | |
(0, | |
o.invokeMethod)("bindPaymentCard", e) | |
} | |
, c = function(e) { | |
(0, | |
o.invokeMethod)("requestPaymentToBank", e) | |
} | |
, s = function(e) { | |
(0, | |
o.invokeMethod)("requestVirtualPayment", e) | |
} | |
, l = function(e) { | |
(0, | |
o.invokeMethod)("openOfflinePayView", e) | |
} | |
, f = function(e) { | |
(0, | |
o.invokeMethod)("openWCPayCardList", e) | |
} | |
, d = function(e) { | |
(0, | |
o.invokeMethod)("requestMallPayment", e) | |
}; | |
t.requestPayment = a, | |
t.verifyPaymentPassword = i, | |
t.bindPaymentCard = u, | |
t.requestPaymentToBank = c, | |
t.requestVirtualPayment = s, | |
t.openOfflinePayView = l, | |
t.openWCPayCardList = f, | |
t.requestMallPayment = d | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(56); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
function o(e, t, n) { | |
return t in e ? Object.defineProperty(e, t, { | |
value: n, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0 | |
}) : e[t] = n, | |
e | |
} | |
function r(e) { | |
(0, | |
f.wxprivate_getStorage)({ | |
key: v, | |
success: function(e) { | |
var t = e.data; | |
t && u(t, !1, g) | |
}, | |
complete: function() { | |
e && e() | |
} | |
}) | |
} | |
function a() { | |
var e = Date.now() | |
, t = []; | |
g.forEach(function(n) { | |
var o = n.expires || n.__wxprivate_calc_expires__; | |
if (o && 1e3 * o > e) { | |
var r = []; | |
for (var a in n) | |
_.indexOf(a) >= 0 && r.push(encodeURIComponent(a) + "=" + encodeURIComponent(n[a])); | |
r.push(encodeURIComponent(n.name) + "=" + encodeURIComponent(n.value)), | |
t.push(r.join("; ")) | |
} | |
}); | |
var n = t.join(";; "); | |
n.length >= 4096 || (0, | |
f.wxprivate_setStorage)({ | |
key: v, | |
data: n | |
}) | |
} | |
function i(e, t) { | |
for (var n = 0, o = t.length; n < o; n++) { | |
var r = t[n]; | |
if (e.busid === r.busid && e.name === r.name) | |
return !0 | |
} | |
return !1 | |
} | |
function u(e, t, n) { | |
if ("string" == typeof e) { | |
var o = Date.now(); | |
e.split(";;").forEach(function(e) { | |
var t = void 0; | |
if (e.split(";").forEach(function(e) { | |
t = t || {}, | |
e = e.split("="); | |
var n = e[0].trim() | |
, o = e[1] && e[1].trim(); | |
"expires" !== n && "indate" !== n || (o = +o, | |
o = isNaN(o) ? void 0 : o), | |
n && void 0 !== o && (_.indexOf(n) >= 0 ? t[decodeURIComponent(n)] = decodeURIComponent(o) : (t.name = decodeURIComponent(n), | |
t.value = decodeURIComponent(o))) | |
}), | |
t) { | |
var r = t.expires || t.__wxprivate_calc_expires__; | |
r && !(1e3 * r > o) || i(t, n) || n.push(t), | |
h.default.accountInfo && h.default.accountInfo.appId && t.spread && (t.spread = "*" === t.spread ? "" : t.spread + ":", | |
t.spread += h.default.accountInfo.appId) | |
} | |
}) | |
} | |
} | |
function c(e) { | |
var t = []; | |
for (var n in e) | |
_.indexOf(n) >= 0 && t.push(encodeURIComponent(n) + "=" + encodeURIComponent(e[n])); | |
return t.push(encodeURIComponent(e.name) + "=" + encodeURIComponent(e.value)), | |
t.join("; ") | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getPayCookieString = t.getPassCookieString = t.initCheckCookies = t.GET_COOKIES_INDEX = t.SET_COOKIES_INDEX = void 0; | |
var s, l = n(1), f = n(57), d = n(16), p = (n(2), | |
n(3)), h = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(p), v = "cookies", g = [], _ = ["expires", "domain", "path", "busid", "indate", "receivetime", "spread"], y = t.SET_COOKIES_INDEX = 502, b = t.GET_COOKIES_INDEX = 503, m = (s = {}, | |
o(s, y, null), | |
o(s, b, null), | |
t.initCheckCookies = function() { | |
h.default.onReady(function() { | |
var e = h.default.appLaunchInfo || {} | |
, t = +h.default.appLaunchInfo.scene | |
, n = e.referrerInfo && e.referrerInfo.privateExtraData | |
, o = e.referrerInfo && e.referrerInfo.messageExtraData | |
, i = n && n.cookies || o && o.cookies; | |
"string" == typeof i && u(i, 1037 !== t, g), | |
r(a) | |
}), | |
(0, | |
d.onAppEnterForeground)(function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = +e.scene | |
, n = e.referrerInfo && e.referrerInfo.privateExtraData | |
, o = e.referrerInfo && e.referrerInfo.messageExtraData | |
, i = n && n.cookies || o && o.cookies; | |
"string" == typeof i && u(i, 1037 !== t, g), | |
r(a) | |
}), | |
(0, | |
l.subscribe)("getPassCookieString", function(e, t) { | |
var n = m(); | |
(0, | |
l.publish)("sendPassCookieString", { | |
cookies: n | |
}, [t]) | |
}) | |
} | |
, | |
t.getPassCookieString = function(e) { | |
var t = Date.now() | |
, n = []; | |
g.forEach(function(e) { | |
var o = e.expires || e.__wxprivate_calc_expires__; | |
e.domain && "*" === e.domain && (!o || 1e3 * o > t) && n.push(c(e)) | |
}); | |
var o = n.join(";; "); | |
return e && e.success && e.success({ | |
cookies: o | |
}), | |
o | |
} | |
); | |
t.getPayCookieString = function() { | |
var e = Date.now() | |
, t = []; | |
return g.forEach(function(n) { | |
var o = n.expires || n.__wxprivate_calc_expires__; | |
(!o || 1e3 * o > e) && t.push(c(n)) | |
}), | |
t.join(";; ") | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(58); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(1) | |
, r = n(2) | |
, a = function(e) { | |
(0, | |
o.beforeInvoke)("getStorage", e, { | |
key: "" | |
}) && (0, | |
o.invokeMethod)("getStorage", e, { | |
beforeSuccess: function(e) { | |
e.data = (0, | |
r.stringToAnyType)(e.data, e.dataType), | |
delete e.dataType | |
}, | |
afterFail: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if (e.errMsg && e.errMsg.indexOf("data not found") > 0) | |
return !1 | |
} | |
}) | |
} | |
, i = function(e) { | |
if ((0, | |
o.beforeInvoke)("getStorageSync", e, "")) { | |
var t = "ios" === (0, | |
r.getPlatform)() ? "getStorage" : "getStorageSync" | |
, n = void 0; | |
return (0, | |
o.invokeMethod)(t, { | |
key: e | |
}, { | |
beforeAll: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
n = (0, | |
r.stringToAnyType)(e.data, e.dataType) | |
}, | |
afterFail: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if (e.errMsg && e.errMsg.indexOf("data not found") > 0) | |
return !1 | |
} | |
}), | |
n | |
} | |
} | |
, u = function(e) { | |
if ((0, | |
o.beforeInvoke)("setStorage", e, { | |
key: "" | |
})) | |
try { | |
var t = (0, | |
r.anyTypeToString)(e.data) | |
, n = t.data | |
, a = t.dataType; | |
(0, | |
o.invokeMethod)("setStorage", { | |
key: e.key, | |
data: n, | |
dataType: a, | |
success: e.success, | |
fail: e.fail, | |
complete: e.complete | |
}) | |
} catch (t) { | |
"function" == typeof e.fail && e.fail({ | |
errMsg: "setStorage:fail " + t.message | |
}), | |
"function" == typeof e.complete && e.complete({ | |
errMsg: "setStorage:fail " + t.message | |
}) | |
} | |
} | |
, c = function(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : ""; | |
if ((0, | |
o.beforeInvoke)("setStorage", e, "")) { | |
var n = "ios" === (0, | |
r.getPlatform)() ? "setStorage" : "setStorageSync" | |
, a = (0, | |
r.anyTypeToString)(t) | |
, i = a.data | |
, u = a.dataType | |
, c = !1 | |
, s = ""; | |
if ((0, | |
o.invokeMethod)(n, { | |
key: e, | |
data: i, | |
dataType: u, | |
fail: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
c = !0, | |
s = e.errMsg.replace("setStorage:", "setStorageSync:") | |
} | |
}), | |
c) | |
throw new r.AppServiceSdkKnownError(s) | |
} | |
} | |
, s = function(e) { | |
(0, | |
o.beforeInvoke)("removeStorage", e, { | |
key: "" | |
}) && (0, | |
o.invokeMethod)("removeStorage", e) | |
} | |
, l = function(e) { | |
(0, | |
o.beforeInvoke)("removeStorageSync", e, "") && (0, | |
o.invokeMethod)("removeStorageSync", { | |
key: e | |
}) | |
} | |
, f = function(e) { | |
(0, | |
o.invokeMethod)("clearStorage", e) | |
} | |
, d = function() { | |
var e = "ios" === (0, | |
r.getPlatform)() ? "clearStorage" : "clearStorageSync"; | |
(0, | |
o.invokeMethod)(e) | |
} | |
, p = function(e) { | |
return Array.isArray(e) ? e.filter(function(e) { | |
return "string" == typeof e && !e.startsWith("__plugins__") && !e.startsWith("__wxprivate__") | |
}) : [] | |
} | |
, h = function(e) { | |
(0, | |
o.invokeMethod)("getStorageInfo", e, { | |
beforeAll: function(e) { | |
e.keys = p(e.keys) | |
} | |
}) | |
} | |
, v = function() { | |
var e = void 0; | |
return (0, | |
o.invokeMethod)("getStorageInfoSync", {}, { | |
beforeAll: function(t) { | |
e = t, | |
t.keys = p(t.keys), | |
delete t.errMsg | |
} | |
}), | |
e | |
} | |
, g = { | |
setStorage: u, | |
setStorageSync: c, | |
getStorage: a, | |
getStorageSync: i, | |
getStorageInfo: h, | |
getStorageInfoSync: v, | |
removeStorage: s, | |
removeStorageSync: l, | |
clearStorage: f, | |
clearStorageSync: d | |
} | |
, _ = {}; | |
["setStorage", "getStorage", "getStorageInfo", "removeStorage", "clearStorage"].forEach(function(e) { | |
_[e] = function() { | |
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if (t.key) { | |
var n = t.key.toString(); | |
if (n.startsWith("__plugins__") || n.startsWith("__wxprivate__")) | |
return void (0, | |
o.beforeInvokeFail)(e, t, 'invalid key "' + t.key + '"') | |
} | |
return g["" + e](t) | |
} | |
, | |
_[e + "Sync"] = function(t) { | |
for (var n, o = arguments.length, r = Array(o > 1 ? o - 1 : 0), a = 1; a < o; a++) | |
r[a - 1] = arguments[a]; | |
if (!t || !t.toString().startsWith("__plugins__") && !t.toString().startsWith("__wxprivate__")) | |
return (n = g[e + "Sync"]).call.apply(n, [void 0, t].concat(r)) | |
} | |
; | |
var t = "plugin_" + e; | |
_[t] = function() { | |
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
return t.key && (t.key = "__plugins__/" + t.key), | |
g["" + e](t) | |
} | |
, | |
_[t + "Sync"] = function(t) { | |
for (var n, o = arguments.length, r = Array(o > 1 ? o - 1 : 0), a = 1; a < o; a++) | |
r[a - 1] = arguments[a]; | |
return t && (t = "__plugins__/" + t), | |
(n = g[e + "Sync"]).call.apply(n, [void 0, t].concat(r)) | |
} | |
; | |
var n = "wxprivate_" + e; | |
_[n] = function() { | |
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
return t.key && (t.key = "__wxprivate__/" + t.key), | |
g["" + e](t) | |
} | |
, | |
_[n + "Sync"] = function(t) { | |
for (var n, o = arguments.length, r = Array(o > 1 ? o - 1 : 0), a = 1; a < o; a++) | |
r[a - 1] = arguments[a]; | |
return t && (t = "__wxprivate__/" + t), | |
(n = g[e + "Sync"]).call.apply(n, [void 0, t].concat(r)) | |
} | |
}), | |
e.exports = _ | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.ShareInfoStorage = void 0; | |
var o = n(60); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}); | |
var r = n(61); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}); | |
var a = n(62); | |
Object.keys(a).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return a[e] | |
} | |
}) | |
}); | |
var i = n(63); | |
Object.keys(i).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return i[e] | |
} | |
}) | |
}); | |
var u = n(64); | |
Object.keys(u).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return u[e] | |
} | |
}) | |
}); | |
var c = n(22) | |
, s = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(c); | |
t.ShareInfoStorage = s.default | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getShareInfo = void 0; | |
var o = n(1) | |
, r = n(22) | |
, a = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(r) | |
, i = n(2) | |
, u = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = a.default.get(e.shareTicket); | |
if (t) | |
(0, | |
o.invokeMethod)("operateWXData", (0, | |
i.assign)({ | |
data: { | |
api_name: "webapi_getshareinfo", | |
data: { | |
share_key: t.shareKey, | |
share_name: t.shareName | |
} | |
} | |
}, e), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("operateWXData", "getShareInfo") | |
}, | |
beforeSuccess: function(e) { | |
"android" === (0, | |
i.getPlatform)() && "string" == typeof e.data && (e.data = JSON.parse(e.data)), | |
e.data || (e.data = {}), | |
void 0 !== e.data.data && (e.rawData = e.data.data); | |
try { | |
var t = JSON.parse(e.data.data); | |
t.roomTopic && (e.roomTopic = t.roomTopic) | |
} catch (e) {} | |
e.iv = e.data.iv, | |
e.encryptedData = e.data.encryptedData, | |
delete e.data | |
} | |
}); | |
else { | |
(0, | |
o.beforeInvokeFail)("getShareInfo", e, "invalid shareTicket") | |
} | |
}; | |
t.getShareInfo = u | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.showShareMenu = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
!0 === e.withShareTicket ? (0, | |
o.invokeMethod)("showShareMenuWithShareTicket", e, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("showShareMenuWithShareTicket", "showShareMenu") | |
}, | |
beforeFail: function(e) { | |
e.errMsg += ", with arg withShareTicket: true" | |
} | |
}) : (0, | |
o.invokeMethod)("showShareMenu", e, {}) | |
}; | |
t.showShareMenu = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.hideShareMenu = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("hideShareMenu", e, {}) | |
}; | |
t.hideShareMenu = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.updateShareMenu = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
Promise.all([new Promise(function(t, n) { | |
if ("boolean" == typeof e.dynamic || "boolean" == typeof e.widget) { | |
var r = void 0; | |
r = "boolean" == typeof e.widget ? e.widget : e.dynamic, | |
(0, | |
o.invokeMethod)("updateShareMenuDynamic", { | |
isDynamic: r, | |
success: t, | |
fail: n | |
}, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("updateShareMenuDynamic", "updateShareMenu") | |
}, | |
beforeFail: function(e) { | |
e.errMsg += ', with arg "dynamic": true' | |
} | |
}) | |
} else | |
t({ | |
errMsg: "updateShareMenu:ok" | |
}) | |
} | |
), new Promise(function(t, n) { | |
"boolean" == typeof e.withShareTicket ? (0, | |
o.invokeMethod)("updateShareMenuShareTicket", { | |
withShareTicket: e.withShareTicket, | |
success: t, | |
fail: n | |
}, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("updateShareMenuShareTicket", "updateShareMenu") | |
}, | |
beforeFail: function(e) { | |
e.errMsg += ', with arg "withShareTicket": true' | |
} | |
}) : t({ | |
errMsg: "updateShareMenu:ok" | |
}) | |
} | |
), new Promise(function(t, n) { | |
"boolean" == typeof e.updatable ? (0, | |
o.invokeMethod)("updateShareMenuUpdatable", { | |
updatable: e.updatable, | |
templateId: e.updatableMessageTemplateId, | |
success: t, | |
fail: n, | |
complete: wxConsole.log | |
}) : t({ | |
errMsg: "updateShareMenu:ok" | |
}) | |
} | |
)]).then(function(t) { | |
"function" == typeof e.success && Reporter.surroundThirdByTryCatch(e.success, "at api updateShareMenu success callback function")(t[0]), | |
"function" == typeof e.complete && Reporter.surroundThirdByTryCatch(e.complete, "at api updateShareMenu complete callback function")(t[0]) | |
}, function(t) { | |
"function" == typeof e.fail && Reporter.surroundThirdByTryCatch(e.fail, "at api updateShareMenu fail callback function")(t), | |
"function" == typeof e.complete && Reporter.surroundThirdByTryCatch(e.complete, "at api updateShareMenu complete callback function")(t) | |
}) | |
}; | |
t.updateShareMenu = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.showUpdatableMessageSubscribeButton = void 0; | |
var o = n(1) | |
, r = n(22) | |
, a = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(r) | |
, i = function(e) { | |
var t = a.default.get(e.shareTicket); | |
t ? (0, | |
o.invokeMethod)("showUpdatableMessageSubscribeButton", Object.assign({}, e, { | |
shareKey: t.shareKey | |
})) : (0, | |
o.beforeInvokeFail)("showUpdatableMessageSubscribeButton", e, "invalid shareTicket") | |
}; | |
t.showUpdatableMessageSubscribeButton = i | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.openCard = t.addCard = void 0; | |
var o = n(1) | |
, r = function(e) { | |
(0, | |
o.beforeInvoke)("addCard", e, { | |
cardList: [] | |
}) && (0, | |
o.invokeMethod)("addCard", e) | |
} | |
, a = function(e) { | |
(0, | |
o.beforeInvoke)("openCard", e, { | |
cardList: [] | |
}) && (0, | |
o.invokeMethod)("openCard", e) | |
}; | |
t.addCard = r, | |
t.openCard = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(67); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}); | |
var r = n(68); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}); | |
var a = n(69); | |
Object.keys(a).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return a[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.checkIsSupportSoterAuthentication = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("checkIsSupportSoterAuthentication", e, {}) | |
}; | |
t.checkIsSupportSoterAuthentication = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.startSoterAuthentication = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
o.beforeInvoke)("startSoterAuthentication", e, { | |
challenge: "" | |
})) { | |
var t = e.success; | |
(0, | |
o.invokeMethod)("startSoterAuthentication", Object.assign({}, e, { | |
success: function(n) { | |
0 !== n.errCode ? "function" == typeof e.fail && Reporter.surroundThirdByTryCatch(e.fail, "at api startSoterAuthentication fail callback function")(n) : "function" == typeof t && Reporter.surroundThirdByTryCatch(t, "at api startSoterAuthentication success callback function")(n) | |
} | |
}), { | |
beforeSuccess: function(e) { | |
"number" == typeof e.errCode && 0 !== e.errCode && (e.errMsg = "startSoterAuthentication:fail") | |
} | |
}) | |
} | |
}; | |
t.startSoterAuthentication = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.checkIsSoterEnrolledInDevice = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("checkIsSoterEnrolledInDevice", e, { | |
checkAuthMode: "" | |
}) && (0, | |
o.invokeMethod)("checkIsSoterEnrolledInDevice", e, {}) | |
}; | |
t.checkIsSoterEnrolledInDevice = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(71); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}); | |
var r = n(72); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}); | |
var a = n(73); | |
Object.keys(a).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return a[e] | |
} | |
}) | |
}); | |
var i = n(74); | |
Object.keys(i).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return i[e] | |
} | |
}) | |
}); | |
var u = n(75); | |
Object.keys(u).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return u[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.openGoldenRedPacketDetail = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("openGoldenRedPacketDetail", e, {}) | |
}; | |
t.openGoldenRedPacketDetail = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.sendGoldenRedPacket = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("sendGoldenRedPacket", e, {}) | |
}; | |
t.sendGoldenRedPacket = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.sendBizRedPacket = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("sendBizRedPacket", e, {}) | |
}; | |
t.sendBizRedPacket = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.sendRedPacket = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("sendRedPacket", e, {}) | |
}; | |
t.sendRedPacket = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.openRedPacket = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("openRedPacket", e, {}) | |
}; | |
t.openRedPacket = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(77); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}); | |
var r = n(78); | |
Object.defineProperty(t, "startFacialRecognitionVerify", { | |
enumerable: !0, | |
get: function() { | |
return r.startFacialRecognitionVerify | |
} | |
}); | |
var a = n(79); | |
Object.keys(a).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return a[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.checkIsSupportFacialRecognition = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("checkIsSupportFacialRecognition", e, {}) | |
}; | |
t.checkIsSupportFacialRecognition = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.startFacialRecognitionVerify = t.packageRequestVerifyPreInfo = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function(e) { | |
return JSON.stringify({ | |
name: e.name, | |
id_card_number: e.idCardNumber, | |
mobile: e.mobile, | |
outer_verify_id: e.outerVerifyId, | |
user_id_key: e.userIdKey | |
}) | |
} | |
, i = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = a(e); | |
(0, | |
o.invokeMethod)("startFacialRecognitionVerify", (0, | |
r.assign)(e, { | |
requestVerifyPreInfo: t | |
}), {}) | |
}; | |
t.packageRequestVerifyPreInfo = a, | |
t.startFacialRecognitionVerify = i | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.startFacialRecognitionVerifyAndUploadVideo = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = n(78) | |
, i = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = (0, | |
a.packageRequestVerifyPreInfo)(e); | |
(0, | |
o.invokeMethod)("startFacialRecognitionVerifyAndUploadVideo", (0, | |
r.assign)(e, { | |
requestVerifyPreInfo: t | |
}), {}) | |
}; | |
t.startFacialRecognitionVerifyAndUploadVideo = i | |
} | |
, function(e, t, n) { | |
function r(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function a(e) { | |
h[e] || (h[e] = !0, | |
(0, | |
l.onBeforeUnloadPage)(e, function(e) { | |
delete h[e], | |
Object.keys(f).forEach(function(t) { | |
new RegExp("^" + e).test(t) && (delete d[e + "_" + f[t]], | |
delete f[t]) | |
}) | |
})) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.mapInfo = t.createMapContext = void 0; | |
var i = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}() | |
, u = n(1) | |
, c = n(2) | |
, s = n(14) | |
, l = n(81) | |
, f = (n(38), | |
{}) | |
, d = {} | |
, p = new s.EventEmitter2 | |
, h = {} | |
, v = 0; | |
(0, | |
u.subscribe)("mapInsert", function(e, t) { | |
var n = e.domId | |
, r = e.mapId | |
, i = e.pluginId | |
, u = e.bindregionchange | |
, c = e.bindtap | |
, s = e.showLocation | |
, l = e.target | |
, h = e.nodeId | |
, v = t + "_" + i + "_" + n + "_"; | |
h && h !== o.getRootNodeId(t) && (v += h), | |
f[v] = r, | |
d[t + "_" + r] = { | |
bindregionchange: u, | |
bindtap: c, | |
showLocation: s, | |
target: l, | |
nodeId: h | |
}, | |
p.emit("mapInsert"), | |
a(t) | |
}), | |
(0, | |
u.subscribe)("mapRemove", function(e, t) { | |
var n = e.domId | |
, r = e.mapId | |
, a = e.pluginId | |
, i = e.nodeId | |
, u = t + "_" + a + "_" + n + "_"; | |
i && i !== o.getRootNodeId(t) && (u += i), | |
delete f[u], | |
delete d[t + "_" + r] | |
}); | |
var g = function() { | |
function e(t, n, o, a) { | |
var i = this; | |
if (r(this, e), | |
"string" != typeof t) | |
throw new c.ThirdScriptError("Parameter 1 should be a string"); | |
this.domId = t, | |
this.pluginId = a, | |
this.webviewId = n, | |
this.nodeId = o, | |
this._lastMarkerPos = {}, | |
this._lastMarkerDeg = {}, | |
this._translating = {}, | |
this._delayTranslate = {}, | |
this._isGetMarkerPos = {}, | |
(0, | |
u.subscribe)("doMapActionCallback", function(e, t) { | |
var n = e.callbackId; | |
n && "function" == typeof i[n] && (i[n](e), | |
delete i[n]) | |
}) | |
} | |
return i(e, [{ | |
key: "_invoke", | |
value: function(e, t) { | |
var n = (0, | |
c.getPlatform)() | |
, o = ["includeMapPoints", "getMapMarker"] | |
, r = d[this.webviewId + "_" + t.mapId]; | |
if ("moveToMapLocation" === e && r && !r.showLocation) | |
return void console.warn("only show-location set to true can invoke moveToLocation"); | |
if ("ios" !== n && "android" !== n || -1 !== o.indexOf(e)) { | |
t.method = e; | |
var a = "callback" + this.webviewId + "_" + t.mapId + "_" + v++; | |
this[a] = function(e) { | |
delete e.callbackId, | |
delete e.mapId, | |
delete e.method, | |
e.errMsg && (e.errMsg.indexOf(":ok") > -1 ? "function" == typeof t.success && t.success(e) : e.errMsg.indexOf(":fail") > -1 && "function" == typeof t.fail && t.fail(e)), | |
"function" == typeof t.complete && t.complete(e) | |
} | |
, | |
t.callbackId = a, | |
(0, | |
u.publish)("doMapAction" + t.mapId, t, [this.webviewId]) | |
} else | |
(0, | |
u.invokeMethod)(e, t) | |
} | |
}, { | |
key: "_invokeMethod", | |
value: function(e, t) { | |
var n = this | |
, o = this.webviewId + "_" + this.pluginId + "_" + this.domId + "_" + this.nodeId; | |
"number" == typeof f[o] || f[o] ? (t.mapId = f[o], | |
this._invoke(e, t)) : p.on("mapInsert", function() { | |
t.mapId = f[o], | |
n._invoke(e, t) | |
}) | |
} | |
}, { | |
key: "getCenterLocation", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("getMapCenterLocation", e) | |
} | |
}, { | |
key: "getScale", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("getMapScale", e) | |
} | |
}, { | |
key: "getRegion", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("getMapRegion", e) | |
} | |
}, { | |
key: "moveToLocation", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("moveToMapLocation", e) | |
} | |
}, { | |
key: "translateMarker", | |
value: function() { | |
var e = this | |
, t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, n = t.markerId; | |
if (void 0 === n) | |
return void console.warn("MapContext.translateMarker: require markerId"); | |
if (!t.destination) | |
return void console.warn("MapContext.translateMarker: require destination"); | |
if (this._translating[n]) | |
return void (this._delayTranslate[n] ? this._delayTranslate[n].push(t) : this._delayTranslate[n] = [t]); | |
var o = { | |
markerId: n, | |
keyFrames: [{ | |
longitude: t.destination.longitude, | |
latitude: t.destination.latitude, | |
duration: t.duration || 1e3 | |
}], | |
success: function(n) { | |
"function" == typeof t.success && t.success.call(e, n), | |
"function" == typeof t.animationEnd && t.animationEnd.call(e) | |
}, | |
fail: function(o) { | |
e._delayTranslate[n] = [], | |
"function" == typeof t.fail && t.fail.call(e, o) | |
}, | |
complete: function() { | |
e._translating[n] = !1; | |
var t = e._delayTranslate[n]; | |
t && t.length && e.translateMarker(t.shift()) | |
} | |
} | |
, r = this._lastMarkerPos[n] | |
, a = t.destination; | |
if (t.autoRotate || "number" != typeof t.rotate) { | |
var i = void 0 | |
, u = void 0; | |
if (r) { | |
var c = a.latitude - r.latitude | |
, s = a.longitude - r.longitude | |
, l = c / s || 0; | |
i = Math.abs((s < 0 ? 180 : 0) - Math.abs(180 * Math.atan(l) / Math.PI)) * (c > 0 ? -1 : 1) | |
} else if (!this._isGetMarkerPos[n]) | |
return this._translating[n] = !0, | |
this._invokeMethod("getMapMarker", { | |
markerId: n, | |
success: function(t) { | |
e._lastMarkerPos[n] = t.pos | |
}, | |
complete: function() { | |
e._isGetMarkerPos[n] = !0, | |
e._translating[n] = !1; | |
var t = e._delayTranslate[n]; | |
t && t.length && e.translateMarker(t.shift()) | |
} | |
}), | |
void (this._delayTranslate[n] ? this._delayTranslate[n].push(t) : this._delayTranslate[n] = [t]); | |
"number" == typeof this._lastMarkerDeg[n] && (u = i - this._lastMarkerDeg[n], | |
Math.abs(u) > 180 && (u = u > 0 ? u - 360 : u + 360), | |
Math.abs(u) > 3 && t.autoRotate && o.keyFrames.unshift({ | |
rotate: u, | |
duration: Math.abs(u) < 10 ? 100 : 500 | |
})), | |
(Math.abs(u) > 3 && t.autoRotate || void 0 === this._lastMarkerDeg[n]) && (this._lastMarkerDeg[n] = i) | |
} else { | |
var f = t.rotate - (this._lastMarkerDeg[n] || 0); | |
Math.abs(f) > 3 && (Math.abs(f) > 180 && (f = f > 0 ? f - 360 : f + 360), | |
o.keyFrames.unshift({ | |
rotate: f, | |
duration: Math.abs(f) < 10 ? 100 : 500 | |
}), | |
this._lastMarkerDeg[n] = t.rotate) | |
} | |
r && r.latitude === a.latitude && r.longitude === a.longitude && (o.keyFrames.pop(), | |
t.autoRotate && (o.keyFrames = [])), | |
o.keyFrames.length > 0 ? (this._translating[n] = !0, | |
this._invokeMethod("translateMapMarker", o)) : setTimeout(function() { | |
o.success(), | |
o.complete() | |
}), | |
this._lastMarkerPos[n] = t.destination | |
} | |
}, { | |
key: "includePoints", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if (e.points && e.points instanceof Array) { | |
e.points.forEach(function(e) { | |
e.latitude = Number(e.latitude), | |
e.longitude = Number(e.longitude) | |
}); | |
var t = e.padding; | |
e.padding = [0, 0, 0, 0], | |
t && (e.padding[0] = Number(t[0]) || 0, | |
e.padding[1] = Number(t[1]) || 0, | |
e.padding[2] = Number(t[2]) || 0, | |
e.padding[3] = Number(t[3]) || 0), | |
this._invokeMethod("includeMapPoints", e) | |
} | |
} | |
}]), | |
e | |
}() | |
, _ = function(e, t) { | |
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "" | |
, o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : ""; | |
return new g(e,t,n,o) | |
}; | |
t.createMapContext = _, | |
t.mapInfo = d | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onBeforeShareAppMessage = t.triggerBeforeShareAppMessage = t.onBeforeUnloadPage = t.triggerBeforeUnloadPage = t.onPageReload = void 0; | |
var o = n(1) | |
, r = n(14) | |
, a = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(r) | |
, i = n(2) | |
, u = new a.default; | |
(0, | |
o.onMethod)("onPageReload", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; | |
e.webviewId = t, | |
u.emit("onPageReload", e) | |
}); | |
var c = function(e) { | |
u.on("onPageReload", function(t) { | |
t.path && (t.path = (0, | |
i.removeHtmlSuffixFromUrl)(t.path)), | |
"function" == typeof e && e(t) | |
}) | |
} | |
, s = function(e) { | |
u.emit("onBeforeUnloadPage_" + e, e), | |
u.removeAllListeners("onBeforeShareAppMessage_" + e) | |
} | |
, l = function(e, t) { | |
u.once("onBeforeUnloadPage_" + e, function(e) { | |
"function" == typeof t && t(e) | |
}) | |
} | |
, f = function(e) { | |
u.emit("onBeforeShareAppMessage_" + e, e) | |
} | |
, d = function(e, t) { | |
u.on("onBeforeShareAppMessage_" + e, function(e) { | |
"function" == typeof t && t(e) | |
}) | |
}; | |
t.onPageReload = c, | |
t.triggerBeforeUnloadPage = s, | |
t.onBeforeUnloadPage = l, | |
t.triggerBeforeShareAppMessage = f, | |
t.onBeforeShareAppMessage = d | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.createInnerAudioContext = void 0; | |
var o = n(83) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, a = function() { | |
return new r.default | |
}; | |
t.createInnerAudioContext = a | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function r(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function a(e, t, n) { | |
return t in e ? Object.defineProperty(e, t, { | |
value: n, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0 | |
}) : e[t] = n, | |
e | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var i = ("function" == typeof Symbol && Symbol.iterator, | |
function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}()) | |
, u = n(1) | |
, c = n(14) | |
, s = o(c) | |
, l = n(5) | |
, f = o(l) | |
, d = n(4) | |
, p = o(d) | |
, h = n(84) | |
, v = new WeakMap | |
, g = new WeakMap | |
, _ = new WeakMap | |
, y = new WeakMap | |
, b = new WeakMap | |
, m = new WeakMap | |
, w = new Set | |
, k = {}; | |
p.default.EventHandler && (p.default.EventHandler.onbindingobjectdestruct = function(e) { | |
var t = k[e]; | |
(0, | |
u.invokeMethod)("getAudioState", { | |
audioId: t, | |
success: function(e) { | |
w.delete(t), | |
!0 === e.paused && (0, | |
u.invokeMethod)("destroyAudioInstance", { | |
audioId: t, | |
complete: function(e) {} | |
}) | |
} | |
}) | |
} | |
); | |
var S = new s.default; | |
(0, | |
u.onMethod)("onAudioStateChange", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
e.state = e.state.toLowerCase(); | |
var t = e.state | |
, n = e.audioId; | |
delete e.audioId, | |
delete e.state, | |
S.emit(n + "_onAudioStateChange_" + t, e) | |
}); | |
var C = function() { | |
return function(e, t) { | |
var n = this; | |
g.set(this, Object.assign(g.get(this), a({}, e, t))), | |
"src" === e && g.set(this, Object.assign(g.get(this), { | |
paused: !0 | |
})), | |
y.get(this) && (setTimeout(function() { | |
var o = Object.assign({}, g.get(n), b.get(n), { | |
audioId: v.get(n), | |
success: function() { | |
g.set(n, Object.assign(g.get(n), a({}, e, t))) | |
}, | |
fail: function() { | |
P.call(n) | |
}, | |
complete: function(e) {} | |
}); | |
(0, | |
h.checkIsApplicationAudioInterruption)() && (o.autoplay = !1), | |
(0, | |
u.invokeMethod)("setAudioState", o), | |
y.set(n, !0) | |
}, 0), | |
y.set(this, !1)), | |
b.set(this, Object.assign(b.get(this), a({}, e, t))) | |
} | |
}() | |
, P = function(e, t) { | |
var n = this | |
, o = g.get(this)[e]; | |
return (0, | |
u.invokeMethod)("getAudioState", { | |
audioId: v.get(this), | |
success: function(r) { | |
delete r.errMsg, | |
g.set(n, Object.assign(g.get(n), r)), | |
o = r[e], | |
"function" == typeof t && t(o) | |
} | |
}), | |
o | |
} | |
, M = function(e) { | |
var t = v.get(this); | |
(0, | |
u.invokeMethod)("operateAudio", Object.assign({ | |
audioId: t, | |
fail: function(e) { | |
var t = e.errMsg; | |
T("error", { | |
errMsg: t, | |
errCode: -1 | |
}) | |
} | |
}, e), { | |
beforeAll: function(e) {} | |
}) | |
} | |
, I = function(e, t) { | |
var n = this | |
, o = v.get(this) + "_onAudioStateChange_" + e | |
, r = function(o) { | |
var r = "play" !== e; | |
g.set(n, Object.assign(g.get(n), { | |
paused: r | |
})), | |
Reporter.surroundThirdByTryCatch(t, "at audioContext.on" + e + " callback function")(o) | |
}; | |
m.set(t, r), | |
S.on(o, r) | |
} | |
, O = function(e, t) { | |
var n = v.get(this) + "_onAudioStateChange_" + e; | |
if ("function" == typeof t) { | |
var o = m.get(t); | |
S.off(n, o) | |
} else | |
S.removeAllListeners(n) | |
} | |
, T = function(e, t) { | |
S.emit(v.get(this) + "_onAudioStateChange_" + e, t) | |
} | |
, E = function() { | |
function e() { | |
var t = this; | |
r(this, e); | |
var n = void 0; | |
if (g.set(this, {}), | |
b.set(this, {}), | |
_.set(this, void 0), | |
y.set(this, !0), | |
(0, | |
u.invokeMethod)("createAudioInstance", { | |
success: function(e) { | |
if (w.add(e.audioId), | |
v.set(t, e.audioId), | |
g.set(t, { | |
src: "", | |
startTime: 0, | |
paused: !0, | |
currentTime: 0, | |
duration: 0, | |
obeyMuteSwitch: !0, | |
volume: 1, | |
autoplay: !1, | |
loop: !1, | |
buffered: 0 | |
}), | |
p.default.BindingObject) { | |
var n = new p.default.BindingObject; | |
t.__bindingObject = n, | |
k[n.__id] = e.audioId | |
} | |
}, | |
fail: function(e) { | |
n = e.errMsg | |
}, | |
complete: function(e) {} | |
}), | |
n) | |
throw new Error(n); | |
["Play", "Pause", "Stop", "Canplay", "Error", "Ended", "Waiting", "Seeking", "Seeked"].forEach(function(e) { | |
t["on" + e] = function(n) { | |
I.call(t, e.toLowerCase(), n) | |
} | |
, | |
t["off" + e] = function(n) { | |
O.call(t, e.toLowerCase(), n) | |
} | |
}) | |
} | |
return i(e, [{ | |
key: "play", | |
value: function() { | |
var e = this; | |
!1 === (0, | |
h.checkIsApplicationAudioInterruption)() && setTimeout(function() { | |
M.call(e, { | |
operationType: "play" | |
}) | |
}, 0) | |
} | |
}, { | |
key: "pause", | |
value: function() { | |
var e = this; | |
setTimeout(function() { | |
M.call(e, { | |
operationType: "pause" | |
}) | |
}, 0) | |
} | |
}, { | |
key: "stop", | |
value: function() { | |
var e = this; | |
setTimeout(function() { | |
M.call(e, { | |
operationType: "stop" | |
}) | |
}, 0) | |
} | |
}, { | |
key: "seek", | |
value: function(e) { | |
var t = this; | |
if ("number" != typeof e || e < 0) | |
return void T("error", { | |
errMsg: "Failed to seek, the currentTime " + e + " is invalid." | |
}); | |
setTimeout(function() { | |
M.call(t, { | |
operationType: "seek", | |
currentTime: 1e3 * e | |
}) | |
}, 0) | |
} | |
}, { | |
key: "destroy", | |
value: function() { | |
var e = v.get(this); | |
["play", "pause", "stop", "canplay", "error", "ended", "waiting", "seeking", "seeked"].forEach(function(t) { | |
var n = e + "_onAudioStateChange_" + t; | |
S.removeAllListeners(n) | |
}), | |
w.delete(e), | |
(0, | |
u.invokeMethod)("destroyAudioInstance", { | |
audioId: e | |
}) | |
} | |
}, { | |
key: "onTimeUpdate", | |
value: function(e) { | |
var t = this | |
, n = v.get(this) + "_onAudioStateChange_timeupdate"; | |
void 0 === _.get(this) && _.set(this, setInterval(function() { | |
if ("active" === f.default.runningStatus && !0 !== g.get(t).paused && 1 !== g.get(t).paused) { | |
var e = g.get(t).currentTime; | |
P.call(t, "currentTime", function(t) { | |
t !== e && S.emit(n) | |
}) | |
} | |
}, 250)), | |
S.removeAllListeners(n), | |
S.on(n, function() { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at audioContext.onTimeUpdate callback function")() | |
}) | |
} | |
}, { | |
key: "offTimeUpdate", | |
value: function(e) { | |
O.call(this, "timeupdate", e) | |
} | |
}, { | |
key: "src", | |
get: function() { | |
return P.call(this, "src") | |
}, | |
set: function(e) { | |
if ("string" != typeof e || 0 === e.length) | |
return void T.call(this, "error", { | |
errMsg: "Failed to set src, the src " + e + " is invalid." | |
}); | |
C.call(this, "src", e) | |
} | |
}, { | |
key: "startTime", | |
get: function() { | |
return P.call(this, "startTime") / 1e3 | |
}, | |
set: function(e) { | |
if ("number" != typeof e) | |
return void T("error", { | |
errMsg: "Failed to set startTime, the startTime " + e + " is invalid." | |
}); | |
C.call(this, "startTime", 1e3 * e) | |
} | |
}, { | |
key: "autoplay", | |
set: function(e) { | |
"boolean" == typeof e && C.call(this, "autoplay", e) | |
}, | |
get: function() { | |
return P.call(this, "autoplay") | |
} | |
}, { | |
key: "loop", | |
set: function(e) { | |
"boolean" == typeof e && C.call(this, "loop", e) | |
}, | |
get: function() { | |
return P.call(this, "loop") | |
} | |
}, { | |
key: "obeyMuteSwitch", | |
set: function(e) { | |
"boolean" == typeof e && C.call(this, "obeyMuteSwitch", e) | |
}, | |
get: function() { | |
return P.call(this, "obeyMuteSwitch") | |
} | |
}, { | |
key: "volume", | |
set: function(e) { | |
"number" != typeof e || e < 0 || e > 1 || C.call(this, "volume", e) | |
}, | |
get: function() { | |
return P.call(this, "volume") | |
} | |
}, { | |
key: "paused", | |
get: function() { | |
return P.call(this, "paused") | |
} | |
}, { | |
key: "duration", | |
get: function() { | |
return P.call(this, "duration") / 1e3 | |
} | |
}, { | |
key: "currentTime", | |
get: function() { | |
return P.call(this, "currentTime") / 1e3 | |
} | |
}, { | |
key: "buffered", | |
get: function() { | |
return P.call(this, "buffered") / 1e3 | |
} | |
}], [{ | |
key: "pauseAllAudio", | |
value: function() { | |
w.forEach(function(e) { | |
(0, | |
u.invokeMethod)("operateAudio", { | |
audioId: e, | |
operationType: "pause", | |
complete: function(e) {} | |
}) | |
}) | |
} | |
}]), | |
e | |
}(); | |
t.default = E | |
} | |
, function(e, t, n) { | |
function o(e) { | |
if (e && e.__esModule) | |
return e; | |
var t = {}; | |
if (null != e) | |
for (var n in e) | |
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); | |
return t.default = e, | |
t | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.setResPath = t.getResPath = t.downloadSilkVoice = t.uploadSilkVoice = t.voiceSplitJoint = t.fontFace = t.video = t.image = void 0; | |
var r = n(85); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}); | |
var a = n(92); | |
Object.keys(a).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return a[e] | |
} | |
}) | |
}); | |
var i = n(93); | |
Object.defineProperty(t, "voiceSplitJoint", { | |
enumerable: !0, | |
get: function() { | |
return i.voiceSplitJoint | |
} | |
}); | |
var u = n(94); | |
Object.defineProperty(t, "uploadSilkVoice", { | |
enumerable: !0, | |
get: function() { | |
return u.uploadSilkVoice | |
} | |
}); | |
var c = n(95); | |
Object.defineProperty(t, "downloadSilkVoice", { | |
enumerable: !0, | |
get: function() { | |
return c.downloadSilkVoice | |
} | |
}); | |
var s = n(96); | |
Object.defineProperty(t, "getResPath", { | |
enumerable: !0, | |
get: function() { | |
return s.getResPath | |
} | |
}); | |
var l = n(97); | |
Object.defineProperty(t, "setResPath", { | |
enumerable: !0, | |
get: function() { | |
return l.setResPath | |
} | |
}); | |
var f = n(98); | |
Object.keys(f).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return f[e] | |
} | |
}) | |
}); | |
var d = n(101) | |
, p = o(d) | |
, h = n(107) | |
, v = o(h) | |
, g = n(108) | |
, _ = o(g); | |
t.image = p, | |
t.video = v, | |
t.fontFace = _ | |
} | |
, function(e, t, n) { | |
function o(e) { | |
if (e && e.__esModule) | |
return e; | |
var t = {}; | |
if (null != e) | |
for (var n in e) | |
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); | |
return t.default = e, | |
t | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.backgroundAudio = t.record = t.voice = void 0; | |
var r = n(86); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}); | |
var a = n(87) | |
, i = o(a) | |
, u = n(88) | |
, c = o(u) | |
, s = n(89) | |
, l = n(90) | |
, f = o(l) | |
, d = n(91); | |
c.getRecorderManager = d.getRecorderManager, | |
f.getBackgroundAudioManager = s.getBackgroundAudioManager, | |
t.voice = i, | |
t.record = c, | |
t.backgroundAudio = f | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getAvailableAudioSources = void 0; | |
var o = n(1) | |
, r = function(e) { | |
(0, | |
o.invokeMethod)("getAvailableAudioSources", e) | |
}; | |
t.getAvailableAudioSources = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onVoicePlayEnd = t.stopVoice = t.pauseVoice = t.playVoice = void 0; | |
var o = n(1) | |
, r = function(e) { | |
(0, | |
o.beforeInvoke)("playVoice", e, { | |
filePath: "" | |
}) && (0, | |
o.invokeMethod)("playVoice", e) | |
} | |
, a = function(e) { | |
(0, | |
o.invokeMethod)("pauseVoice", e) | |
} | |
, i = function(e) { | |
(0, | |
o.invokeMethod)("stopVoice", e) | |
} | |
, u = function(e) { | |
(0, | |
o.onMethod)("onVoicePlayEnd", Reporter.surroundThirdByTryCatch(e, "at onVoicePlayEnd callback function")) | |
}; | |
t.playVoice = r, | |
t.pauseVoice = a, | |
t.stopVoice = i, | |
t.onVoicePlayEnd = u | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.stopRecord = t.startRecord = void 0; | |
var o = n(1) | |
, r = function(e) { | |
(0, | |
o.invokeMethod)("startRecord", e) | |
} | |
, a = function(e) { | |
(0, | |
o.invokeMethod)("stopRecord", e) | |
}; | |
t.startRecord = r, | |
t.stopRecord = a | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function r(e) { | |
(0, | |
c.invokeMethod)("operateBackgroundAudio", e) | |
} | |
function a(e, t) { | |
if (!1 !== p.default.possessingBackgroundAudioPlayer) { | |
var n = g[e]; | |
return (0, | |
c.invokeMethod)("getBackgroundAudioState", { | |
success: function(o) { | |
void 0 === o.paused && (o.paused = !0), | |
g = (0, | |
f.assign)(g, o), | |
n = g[e], | |
"function" == typeof t && t(n) | |
}, | |
fail: function(e) { | |
e.errMsg | |
}, | |
complete: function(e) {} | |
}), | |
n | |
} | |
} | |
function i(e, t) { | |
if ("src" === e && !t) | |
throw new Error("invalid wx.backgroundAudio.src: " + t); | |
if ("active" !== p.default.runningStatus && !1 === p.default.possessingBackgroundAudioPlayer) | |
throw new f.AppServiceSdkKnownError("Can not set wx.backgroundAudio." + e + ", background audio is preempted."); | |
y[e] = t, | |
1 === Object.keys(y).length && setTimeout(function() { | |
var e = (0, | |
f.assign)({}, y); | |
(0, | |
c.invokeMethod)("setBackgroundAudioState", (0, | |
f.assign)({}, y, { | |
success: function() { | |
g = (0, | |
f.assign)({}, g, e) | |
}, | |
fail: function(e) { | |
var t = e.errMsg; | |
throw new Error(t.replace(/^setBackgroundAudioState: fail /, "")) | |
}, | |
complete: function(e) {} | |
})), | |
y = {} | |
}, 0) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getBackgroundAudioManager = void 0; | |
var u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
, c = n(1) | |
, s = n(14) | |
, l = o(s) | |
, f = n(2) | |
, d = n(5) | |
, p = o(d) | |
, h = new l.default | |
, v = void 0 | |
, g = { | |
src: "", | |
currentTime: 0, | |
duration: 0, | |
paused: !0, | |
buffered: 0, | |
title: "", | |
coverImgUrl: "", | |
description: "", | |
startTime: 0 | |
}; | |
(0, | |
c.onMethod)("onBackgroundAudioNext", function() { | |
h.emit("onBackgroundAudioNext") | |
}), | |
(0, | |
c.onMethod)("onBackgroundAudioPrev", function() { | |
h.emit("onBackgroundAudioPrev") | |
}), | |
(0, | |
c.onMethod)("onBackgroundAudioStateChange", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = e.state; | |
delete e.state, | |
"play" === t ? (g.paused = !1, | |
p.default.possessingBackgroundAudioPlayer = !0) : "preempted" === t || "occupied" === t ? (p.default.possessingBackgroundAudioPlayer = !1, | |
h.emit("onBackgroundAudioStateChange_stop", e)) : "pause" === t ? g.paused = !0 : "stop" === t && (g.paused = !0), | |
h.emit("onBackgroundAudioStateChange_" + t, e) | |
}); | |
var _ = { | |
play: function() { | |
r({ | |
operationType: "play" | |
}) | |
}, | |
pause: function() { | |
r({ | |
operationType: "pause" | |
}) | |
}, | |
seek: function(e) { | |
if ("number" != typeof e) | |
throw new Error("wx.backgroundAudio.seek(currentTime): unexpected type " + (void 0 === e ? "undefined" : u(e))); | |
r({ | |
currentTime: e, | |
operationType: "seek" | |
}) | |
}, | |
stop: function() { | |
r({ | |
operationType: "stop" | |
}) | |
}, | |
onCanplay: function(e) { | |
h.removeAllListeners("onBackgroundAudioStateChange_canplay"), | |
h.on("onBackgroundAudioStateChange_canplay", function() { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at wx.backgroundAudio.onCanplay callback function")() | |
}) | |
}, | |
onWaiting: function(e) { | |
h.removeAllListeners("onBackgroundAudioStateChange_waiting"), | |
h.on("onBackgroundAudioStateChange_waiting", function() { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at wx.backgroundAudio.onWaiting callback function")() | |
}) | |
}, | |
onError: function(e) { | |
h.removeAllListeners("onBackgroundAudioStateChange_error"), | |
h.on("onBackgroundAudioStateChange_error", function(t) { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at wx.backgroundAudio.onError callback function")(t) | |
}) | |
}, | |
onPlay: function(e) { | |
h.removeAllListeners("onBackgroundAudioStateChange_play"), | |
h.on("onBackgroundAudioStateChange_play", function() { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at wx.backgroundAudio.onPlay callback function")() | |
}) | |
}, | |
onPause: function(e) { | |
h.removeAllListeners("onBackgroundAudioStateChange_pause"), | |
h.on("onBackgroundAudioStateChange_pause", function() { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at wx.backgroundAudio.onPause callback function")() | |
}) | |
}, | |
onEnded: function(e) { | |
h.removeAllListeners("onBackgroundAudioStateChange_ended"), | |
h.on("onBackgroundAudioStateChange_ended", function() { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at wx.backgroundAudio.onEnded callback function")() | |
}) | |
}, | |
onStop: function(e) { | |
h.removeAllListeners("onBackgroundAudioStateChange_stop"), | |
h.on("onBackgroundAudioStateChange_stop", function() { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at wx.backgroundAudio.onStop callback function")() | |
}) | |
}, | |
onTimeUpdate: function(e) { | |
var t = this; | |
void 0 === v && (v = setInterval(function() { | |
var e = g.currentTime; | |
a("currentTime", function(n) { | |
"active" === p.default.runningStatus && !1 !== p.default.possessingBackgroundAudioPlayer && t.currentTime !== e && h.emit("onBackgroundAudioStateChange_timeupdate") | |
}) | |
}, 250)), | |
h.removeAllListeners("onBackgroundAudioStateChange_timeupdate"), | |
h.on("onBackgroundAudioStateChange_timeupdate", function() { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at wx.backgroundAudio.onTimeUpdate callback function")() | |
}) | |
}, | |
onNext: function(e) { | |
h.removeAllListeners("onBackgroundAudioNext"), | |
h.on("onBackgroundAudioNext", function() { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at wx.backgroundAudio.onNext callback function")() | |
}) | |
}, | |
onPrev: function(e) { | |
h.removeAllListeners("onBackgroundAudioPrev"), | |
h.on("onBackgroundAudioPrev", function() { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at wx.backgroundAudio.onPrev callback function")() | |
}) | |
} | |
}; | |
["src", "title", "epname", "singer", "startTime", "coverImgUrl", "currentTime", "duration", "paused", "buffered", "webUrl", "protocol"].forEach(function(e) { | |
Object.defineProperty(_, e, { | |
get: function() { | |
return a(e) | |
}, | |
set: function(t) { | |
["src", "title", "epname", "singer", "coverImgUrl", "startTime", "webUrl", "protocol"].indexOf(e) > -1 && i(e, t) | |
} | |
}) | |
}); | |
var y = {} | |
, b = function() { | |
return _ | |
}; | |
t.getBackgroundAudioManager = b | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onBackgroundAudioStop = t.onBackgroundAudioPause = t.onBackgroundAudioPlay = t.stopBackgroundAudio = t.seekBackgroundAudio = t.pauseBackgroundAudio = t.playBackgroundAudio = t.getBackgroundAudioPlayerState = void 0; | |
var r = n(1) | |
, a = n(2) | |
, i = n(14) | |
, u = o(i) | |
, c = n(5) | |
, s = o(c) | |
, l = function(e) { | |
if (!1 === s.default.possessingBackgroundAudioPlayer) { | |
var t = { | |
errMsg: "getBackgroundAudioPlayerState: fail not playing" | |
}; | |
"function" == typeof e.fail && e.fail(t), | |
"function" == typeof e.complete && e.complete(t) | |
} else | |
(0, | |
r.invokeMethod)("getMusicPlayerState", e, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("getMusicPlayerState", "getBackgroundAudioPlayerState") | |
} | |
}) | |
} | |
, f = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
r.invokeMethod)("operateMusicPlayer", (0, | |
a.assign)({ | |
operationType: "play" | |
}, e), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("operateMusicPlayer", "playBackgroundAudio") | |
} | |
}) | |
} | |
, d = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
r.invokeMethod)("operateMusicPlayer", (0, | |
a.assign)({ | |
operationType: "pause" | |
}, e), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("operateMusicPlayer", "pauseBackgroundAudio") | |
} | |
}) | |
} | |
, p = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
r.beforeInvoke)("seekBackgroundAudio", e, { | |
position: 1 | |
}) && (0, | |
r.invokeMethod)("operateMusicPlayer", (0, | |
a.assign)({ | |
operationType: "seek" | |
}, e), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("operateMusicPlayer", "seekBackgroundAudio") | |
} | |
}) | |
} | |
, h = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
r.invokeMethod)("operateMusicPlayer", (0, | |
a.assign)({ | |
operationType: "stop" | |
}, e), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("operateMusicPlayer", "stopBackgroundAudio") | |
} | |
}) | |
} | |
, v = new u.default; | |
(0, | |
r.onMethod)("onMusicPlay", function() { | |
s.default.possessingBackgroundAudioPlayer = !0, | |
v.emit("onBackgroundAudioPlay") | |
}); | |
var g = function(e) { | |
v.removeAllListeners("onBackgroundAudioPlay"), | |
v.on("onBackgroundAudioPlay", function() { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at wx.onBackgroundAudioPlay callback function")() | |
}) | |
} | |
, _ = function(e) { | |
(0, | |
r.onMethod)("onMusicPause", Reporter.surroundThirdByTryCatch(e, "at onBackgroundAudioPause callback function")) | |
} | |
, y = function(e) { | |
(0, | |
r.onMethod)("onMusicEnd", Reporter.surroundThirdByTryCatch(e, "at onBackgroundAudioStop callback function")) | |
}; | |
t.getBackgroundAudioPlayerState = l, | |
t.playBackgroundAudio = f, | |
t.pauseBackgroundAudio = d, | |
t.seekBackgroundAudio = p, | |
t.stopBackgroundAudio = h, | |
t.onBackgroundAudioPlay = g, | |
t.onBackgroundAudioPause = _, | |
t.onBackgroundAudioStop = y | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getRecorderManager = void 0; | |
var o = n(1) | |
, r = n(14) | |
, a = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(r) | |
, i = new a.default | |
, u = { | |
8e3: [16e3, 48e3], | |
11025: [16e3, 48e3], | |
12e3: [24e3, 64e3], | |
16e3: [24e3, 96e3], | |
22050: [32e3, 128e3], | |
24e3: [32e3, 128e3], | |
32e3: [48e3, 192e3], | |
44100: [64e3, 32e4], | |
48e3: [64e3, 32e4] | |
}; | |
(0, | |
o.onMethod)("onRecorderStateChange", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = e.state; | |
delete e.state, | |
i.emit("onRecorderStateChange_" + t, e) | |
}); | |
var c = function(e) { | |
(0, | |
o.invokeMethod)("operateRecorder", Object.assign({}, e)) | |
} | |
, s = { | |
start: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = Object.assign({ | |
format: "aac", | |
sampleRate: 8e3, | |
encodeBitRate: 48e3, | |
numberOfChannels: 2, | |
audioSource: "auto" | |
}, e); | |
if (-1 === Object.keys(u).map(function(e) { | |
return parseInt(e) | |
}).indexOf(t.sampleRate)) | |
throw new Error('invalid sampleRate "' + t.sampleRate + '", sampleRate should be one of ' + JSON.stringify(Object.keys(u))); | |
if (t.encodeBitRate > u[t.sampleRate][1] || t.encodeBitRate < u[t.sampleRate][0]) | |
throw new Error('invalid encodeBitRate "' + t.encodeBitRate + '", encodeBitRate should be greater than ' + u[t.sampleRate][0] + " and less than " + u[t.sampleRate][1]); | |
t.operationType = "start", | |
t.fail = function(e) { | |
i.emit("onRecorderStateChange_error", e) | |
} | |
, | |
c(t) | |
}, | |
pause: function() { | |
c({ | |
operationType: "pause", | |
fail: function(e) { | |
i.emit("onRecorderStateChange_error", e) | |
} | |
}) | |
}, | |
resume: function() { | |
c({ | |
operationType: "resume", | |
success: function() { | |
i.emit("onRecorderStateChange_resume") | |
}, | |
fail: function(e) { | |
i.emit("onRecorderStateChange_error", e) | |
} | |
}) | |
}, | |
stop: function() { | |
c({ | |
operationType: "stop", | |
fail: function(e) { | |
i.emit("onRecorderStateChange_error", e) | |
} | |
}) | |
}, | |
onStart: function(e) { | |
i.removeAllListeners("onRecorderStateChange_start"), | |
i.on("onRecorderStateChange_start", function() { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at recorderManager.onPause callback function")() | |
}) | |
}, | |
onResume: function(e) { | |
i.removeAllListeners("onRecorderStateChange_resume"), | |
i.on("onRecorderStateChange_resume", function() { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at recorderManager.onResume callback function")() | |
}) | |
}, | |
onPause: function(e) { | |
i.removeAllListeners("onRecorderStateChange_pause"), | |
i.on("onRecorderStateChange_pause", function() { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at recorderManager.onPause callback function")() | |
}) | |
}, | |
onStop: function(e) { | |
i.removeAllListeners("onRecorderStateChange_stop"), | |
i.on("onRecorderStateChange_stop", function(t) { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at recorderManager.onStop callback function")(t) | |
}) | |
}, | |
onFrameRecorded: function(e) { | |
i.removeAllListeners("onRecorderStateChange_frameRecorded"), | |
i.on("onRecorderStateChange_frameRecorded", function(t) { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at recorderManager.onFrameRecorded callback function")(t) | |
}) | |
}, | |
onError: function(e) { | |
i.removeAllListeners("onRecorderStateChange_error"), | |
i.on("onRecorderStateChange_error", function(t) { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at recorderManager.onError callback function")(t) | |
}) | |
} | |
}; | |
t.default = s; | |
t.getRecorderManager = function() { | |
return s | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.chooseMedia = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("chooseMedia", e) | |
}; | |
t.chooseMedia = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.voiceSplitJoint = void 0; | |
var o = n(1); | |
t.voiceSplitJoint = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("voiceSplitJoint", e) | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.uploadSilkVoice = void 0; | |
var o = n(1); | |
t.uploadSilkVoice = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("uploadSilkVoice", e) | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.downloadSilkVoice = void 0; | |
var o = n(1); | |
t.downloadSilkVoice = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("downloadSilkVoice", e) | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getResPath = void 0; | |
var o = n(1); | |
t.getResPath = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("getResPath", e) | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.setResPath = void 0; | |
var o = n(1); | |
t.setResPath = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("setResPath", e) | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.checkIsApplicationAudioInterruption = t.endAudioInterruption = t.beginAudioInterruption = t.offAudioInterruptionEnd = t.onAudioInterruptionEnd = t.offAudioInterruptionBegin = t.onAudioInterruptionBegin = void 0; | |
var o = n(99) | |
, r = n(100) | |
, a = n(1) | |
, i = n(83) | |
, u = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(i) | |
, c = !1 | |
, s = !1; | |
(0, | |
a.onMethod)("onAudioInterruptionBegin", function(e) { | |
c = !0, | |
!1 === s && o.audioInterruptionBeginEventManager.emit(e) | |
}), | |
(0, | |
a.onMethod)("onAudioInterruptionEnd", function(e) { | |
c = !1, | |
!1 === s && r.audioInterruptionEndEventManager.emit(e) | |
}); | |
var l = function() { | |
!1 === c && !1 === s && (u.default.pauseAllAudio(), | |
o.audioInterruptionBeginEventManager.emit({})), | |
s = !0 | |
} | |
, f = function() { | |
!1 === c && !0 === s && r.audioInterruptionEndEventManager.emit({}), | |
s = !1 | |
} | |
, d = function() { | |
return s | |
}; | |
t.onAudioInterruptionBegin = o.onAudioInterruptionBegin, | |
t.offAudioInterruptionBegin = o.offAudioInterruptionBegin, | |
t.onAudioInterruptionEnd = r.onAudioInterruptionEnd, | |
t.offAudioInterruptionEnd = r.offAudioInterruptionEnd, | |
t.beginAudioInterruption = l, | |
t.endAudioInterruption = f, | |
t.checkIsApplicationAudioInterruption = d | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.audioInterruptionBeginEventManager = t._offAudioInterruptionBegin = t._onAudioInterruptionBegin = t.offAudioInterruptionBegin = t.onAudioInterruptionBegin = void 0; | |
var o = n(19) | |
, r = (0, | |
o.getEventManager)("AudioInterruptionBegin") | |
, a = r.onMethod | |
, i = r.offMethod | |
, u = r.internalOnMethod | |
, c = r.internalOffMethod; | |
t.onAudioInterruptionBegin = a, | |
t.offAudioInterruptionBegin = i, | |
t._onAudioInterruptionBegin = u, | |
t._offAudioInterruptionBegin = c, | |
t.audioInterruptionBeginEventManager = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.audioInterruptionEndEventManager = t._offAudioInterruptionEnd = t._onAudioInterruptionEnd = t.offAudioInterruptionEnd = t.onAudioInterruptionEnd = void 0; | |
var o = n(19) | |
, r = (0, | |
o.getEventManager)("AudioInterruptionEnd") | |
, a = r.onMethod | |
, i = r.offMethod | |
, u = r.internalOnMethod | |
, c = r.internalOffMethod; | |
t.onAudioInterruptionEnd = a, | |
t.offAudioInterruptionEnd = i, | |
t._onAudioInterruptionEnd = u, | |
t._offAudioInterruptionEnd = c, | |
t.audioInterruptionEndEventManager = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.saveImageToPhotosAlbum = t.getImageInfo = t._getImageInfoWithDownloadFile = t.previewImage = t.chooseImage = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = n(5) | |
, i = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(a) | |
, u = n(102) | |
, c = n(106) | |
, s = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("chooseImage", (0, | |
r.assign)({ | |
count: 9, | |
sizeType: ["original", "compressed"], | |
sourceType: ["album", "camera"] | |
}, e), { | |
beforeSuccess: function(e) { | |
e.tempFileSizes ? e.tempFiles = (e.tempFilePaths || []).filter(function(e) { | |
return e | |
}).map(function(t, n) { | |
return { | |
path: t, | |
size: e.tempFileSizes[n] | |
} | |
}) : e.tempFiles = (e.tempFiles || []).filter(function(e) { | |
return e.path && "number" == typeof e.size | |
}), | |
delete e.tempFileSizes | |
} | |
}) | |
} | |
, l = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("previewImage", e, { | |
urls: [""] | |
}) && (e.urls && (e.urls = e.urls.map(function(e) { | |
return c.FakeTempFilePathMap.get(e) || e | |
})), | |
(0, | |
o.invokeMethod)("previewImage", e)) | |
} | |
, f = function(e) { | |
return d(e, u.downloadFile) | |
} | |
, d = function(e, t) { | |
(0, | |
o.beforeInvoke)("getImageInfo", e, { | |
src: "" | |
}) && (/^(http|https):\/\//.test(e.src) ? t({ | |
url: e.src, | |
success: function(t) { | |
e.src = t.tempFilePath, | |
(0, | |
o.invokeMethod)("getImageInfo", e, { | |
beforeSuccess: function(t) { | |
t.path = e.src | |
} | |
}) | |
}, | |
fail: function(t) { | |
(0, | |
o.beforeInvokeFail)("getImageInfo", e, "download image fail") | |
} | |
}) : /^wxfile:\/\//.test(e.src) ? (0, | |
o.invokeMethod)("getImageInfo", e, { | |
beforeSuccess: function(t) { | |
t.path = e.src | |
} | |
}) : (e.src = (0, | |
r.getRealRoute)(i.default.lastRoute, e.src, !1), | |
(0, | |
o.invokeMethod)("getImageInfo", e, { | |
beforeSuccess: function(t) { | |
t.path = e.src | |
} | |
}))) | |
} | |
, p = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
e.filePath = c.FakeTempFilePathMap.get(e.filePath) || e.filePath, | |
(0, | |
o.invokeMethod)("saveImageToPhotosAlbum", e, {}) | |
}; | |
t.chooseImage = s, | |
t.previewImage = l, | |
t._getImageInfoWithDownloadFile = d, | |
t.getImageInfo = f, | |
t.saveImageToPhotosAlbum = p | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t._downloadFileSkipCheckDomain = t.downloadFile = void 0; | |
var o = n(1) | |
, r = n(103) | |
, a = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(r) | |
, i = (n(2), | |
function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
return e = Object.assign({ | |
__skipDomainCheck__: !1 | |
}, e), | |
function() { | |
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
o.beforeInvoke)("downloadFile", t, { | |
url: "" | |
})) { | |
t.__skipDomainCheck__ = e.__skipDomainCheck__; | |
try { | |
return new a.default(t) | |
} catch (e) { | |
(0, | |
o.beforeInvokeFail)("downloadFile", t, e.message) | |
} | |
} | |
} | |
} | |
) | |
, u = i() | |
, c = i({ | |
__skipDomainCheck__: !0 | |
}); | |
t.downloadFile = u, | |
t._downloadFileSkipCheckDomain = c | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function r(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function a() { | |
var e = this | |
, t = y.get(this); | |
_.set(this, "sending"), | |
b.set(this, Date.now()); | |
var n = void 0; | |
(0, | |
u.invokeMethod)("createDownloadTask", { | |
url: t.url, | |
header: t.header, | |
filePath: t.filePath, | |
__skipDomainCheck__: t.__skipDomainCheck__, | |
success: function(t) { | |
g.set(e, t.downloadTaskId), | |
m += 1, | |
k[t.downloadTaskId] = e | |
}, | |
fail: function(o) { | |
n = o.errMsg; | |
var r = t.url | |
, a = Date.now() - b.get(e) | |
, i = t.__skipDomainCheck__; | |
(0, | |
l.reportNetworkAPI)("downloadFile", r, 2, a, n, "", i) | |
}, | |
complete: function(e) { | |
_.set(this, "done") | |
} | |
}), | |
n ? setTimeout(function() { | |
var e = { | |
errMsg: n.replace("createDownloadTask", "downloadFile") | |
}; | |
"function" == typeof t.fail && t.fail(e), | |
"function" == typeof t.complete && t.complete(e) | |
}, 0) : (S.on(g.get(this) + "success", function(e) { | |
e.errMsg = "downloadFile:ok", | |
e.statusCode = parseInt(e.statusCode), | |
-1 === [200, 304].indexOf(e.statusCode) && delete e.tempPath, | |
delete e.timeInterval, | |
"function" == typeof t.success && t.success(e), | |
"function" == typeof t.complete && t.complete(e) | |
}), | |
S.on(g.get(this) + "fail", function(e) { | |
e.errMsg = "downloadFile:fail " + e.errMsg, | |
"function" == typeof t.fail && t.fail(e), | |
"function" == typeof t.complete && t.complete(e) | |
})) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var i = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}() | |
, u = n(1) | |
, c = n(14) | |
, s = o(c) | |
, l = n(104) | |
, f = n(3) | |
, d = o(f) | |
, p = 10; | |
try { | |
"number" == typeof d.default.wxAppInfo.maxDownloadConcurrent && (p = d.default.wxAppInfo.maxDownloadConcurrent) | |
} catch (e) {} | |
var h = 0 | |
, v = new WeakMap | |
, g = new WeakMap | |
, _ = (new WeakMap, | |
new WeakMap) | |
, y = new WeakMap | |
, b = new WeakMap | |
, m = 0 | |
, w = [] | |
, k = {} | |
, S = new s.default; | |
(0, | |
u.onMethod)("onDownloadTaskStateChange", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = e.state | |
, n = e.downloadTaskId; | |
if (delete e.state, | |
delete e.downloadTaskId, | |
S.emit("" + n + t, e), | |
"success" === t || "fail" === t) { | |
m -= 1, | |
w.length > 0 && a.call(w.shift().item); | |
try { | |
var o = k[n] | |
, r = y.get(o).url | |
, i = "success" === t ? 1 : 2 | |
, u = Date.now() - b.get(o) | |
, c = e.errMsg | |
, s = e.statusCode | |
, f = y.get(o).__skipDomainCheck__; | |
(0, | |
l.reportNetworkAPI)("downloadFile", r, i, u, c, s, f) | |
} catch (e) {} | |
delete k[n], | |
S.removeAllListeners(n + "success"), | |
S.removeAllListeners(n + "fail"), | |
S.removeAllListeners(n + "progressUpdate") | |
} | |
}); | |
var C = function() { | |
function e(t) { | |
r(this, e); | |
var n = h++; | |
if (v.set(this, n), | |
_.set(this, "waiting"), | |
["success", "fail", "complete"].forEach(function(e) { | |
"function" == typeof t[e] && (t[e] = Reporter.surroundThirdByTryCatch(t[e], "at api downloadFile " + e + " callback function")) | |
}), | |
y.set(this, t), | |
m >= p) | |
return void w.push({ | |
id: n, | |
item: this | |
}); | |
a.call(this) | |
} | |
return i(e, [{ | |
key: "abort", | |
value: function() { | |
(0, | |
u.invokeMethod)("operateDownloadTask", { | |
downloadTaskId: g.get(this), | |
operationType: "abort" | |
}) | |
} | |
}, { | |
key: "onProgressUpdate", | |
value: function(e) { | |
S.on(g.get(this) + "progressUpdate", function(t) { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at DownloadTask.onProgressUpdate callback function")(t) | |
}) | |
} | |
}, { | |
key: "offProgressUpdate", | |
value: function(e) { | |
"function" == typeof e ? S.off(g.get(this) + "progressUpdate", e) : S.removeAllListeners(g.get(this) + "progressUpdate") | |
} | |
}, { | |
key: "onHeadersReceived", | |
value: function(e) { | |
S.on(g.get(this) + "headersReceived", function(t) { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at DownloadTask.onHeadersReceived callback function")(t) | |
}) | |
} | |
}, { | |
key: "offHeadersReceived", | |
value: function(e) { | |
"function" == typeof e ? S.off(g.get(this) + "headersReceived", e) : S.removeAllListeners(g.get(this) + "headersReceived") | |
} | |
}]), | |
e | |
}(); | |
t.default = C | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.reportNetworkAPI = void 0; | |
var o = n(105) | |
, r = (n(1), | |
0) | |
, a = [] | |
, i = function() { | |
var e = JSON.stringify({ | |
business: "mmbizwxaservicequality", | |
dataArray: a, | |
appType: Reporter.getAppType() | |
}, null, 2); | |
WeixinJSBridge.invoke("reportRealtimeAction", { | |
actionData: e | |
}), | |
a = [] | |
} | |
, u = function(e, t, n, u, c, s, l) { | |
var f = arguments.length > 7 && void 0 !== arguments[7] ? arguments[7] : 0 | |
, d = [e, t, n, u, c, Reporter.getAppType(), s, f].map(encodeURIComponent).join(","); | |
Reporter.reportKeyValue({ | |
key: "NetworkAPI", | |
value: d | |
}), | |
Reporter.reportIDKey({ | |
key: e + "_" + (1 === n ? "ok" : "fail") | |
}), | |
a.push([e, t, n, s || "", u, c, (0, | |
o._getCurrentNetworkType)(), l ? "1" : "0", Reporter.getAppType(), f].map(encodeURIComponent).join(",")), | |
Date.now() - r >= 6e4 && (r = Date.now(), | |
setTimeout(i, 6e4)) | |
}; | |
t.reportNetworkAPI = u | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t._getCurrentNetworkType = t.onNetworkStatusChange = t.getNetworkType = void 0; | |
var o = n(1) | |
, r = n(3) | |
, a = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(r) | |
, i = [] | |
, u = "" | |
, c = function(e) { | |
(0, | |
o.invokeMethod)("getNetworkType", e) | |
} | |
, s = function(e) { | |
i.push(Reporter.surroundThirdByTryCatch(e, "onNetworkStatusChange")) | |
} | |
, l = function() { | |
return u | |
}; | |
(0, | |
o.onMethod)("onNetworkStatusChange", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; | |
u = e.networkType, | |
i.forEach(function(t) { | |
"function" == typeof t && t(e) | |
}) | |
}), | |
a.default.onReady(function() { | |
c({ | |
success: function(e) { | |
u = e.networkType | |
} | |
}) | |
}), | |
t.getNetworkType = c, | |
t.onNetworkStatusChange = s, | |
t._getCurrentNetworkType = l | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.FakeTempFilePathMap = t.GlobalEmitter = void 0; | |
var o = n(14) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, a = n(2) | |
, i = new r.default | |
, u = { | |
map: {}, | |
set: function(e) { | |
var t = (0, | |
a.guid)(); | |
return this.map[t] = e, | |
t | |
}, | |
get: function(e) { | |
var t = this; | |
return e ? this.map[e] : Object.keys(this.map).map(function(e) { | |
return t.map[e] | |
}) | |
} | |
}; | |
t.GlobalEmitter = i, | |
t.FakeTempFilePathMap = u | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.saveVideoToPhotosAlbum = t.chooseVideo = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
e.sourceType = e.sourceType || ["album", "camera"], | |
e.camera = e.camera || ["front", "back"], | |
"boolean" != typeof e.compressed && (e.compressed = !0), | |
(0, | |
o.invokeMethod)("chooseVideo", e) | |
} | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("saveVideoToPhotosAlbum", e, {}) | |
}; | |
t.chooseVideo = r, | |
t.saveVideoToPhotosAlbum = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.loadFontFace = void 0; | |
var o = n(1) | |
, r = 0 | |
, a = [{}]; | |
(0, | |
o.subscribe)("loadedFontFace", function(e) { | |
if (e.cbID) { | |
var t = a[e.cbID]; | |
t && ("loaded" == e.status ? "function" == typeof t[0] && t[0](e) : "function" == typeof t[1] && t[1](e), | |
"function" == typeof t[2] && t[2](e)) | |
} | |
}); | |
var i = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("loadFontFace", e, { | |
family: "", | |
source: "" | |
}) && (e.cbID = ++r, | |
a.push([e.success, e.fail, e.complete]), | |
(0, | |
o.publish)("loadFontFace", e)) | |
}; | |
t.loadFontFace = i | |
} | |
, function(e, t, n) { | |
function r(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function a(e) { | |
m[e] || (m[e] = !0, | |
(0, | |
d.onBeforeUnloadPage)(e, function(e) { | |
delete m[e], | |
Object.keys(_).forEach(function(t) { | |
new RegExp("^" + e).test(t) && (delete y[e + "_" + _[t]], | |
delete _[t]) | |
}), | |
(0, | |
p.clearEveneDataCache)(e) | |
})) | |
} | |
function i(e, t) { | |
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "" | |
, o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : "" | |
, r = new k(e,t,n,o); | |
return r._getAppStatus = function() { | |
return v.default.appStatus | |
} | |
, | |
r._getHanged = function() { | |
return v.default.hanged | |
} | |
, | |
r | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.playerInfo = t.createLivePlayerContext = void 0; | |
var u = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}() | |
, c = n(1) | |
, s = n(2) | |
, l = n(14) | |
, f = n(6) | |
, d = n(81) | |
, p = n(110) | |
, h = n(5) | |
, v = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(h) | |
, g = "ios" !== (0, | |
s.getPlatform)() && "android" !== (0, | |
s.getPlatform)() | |
, _ = {} | |
, y = {} | |
, b = new l.EventEmitter2 | |
, m = {}; | |
(0, | |
c.subscribe)("livePlayerInsert", function(e, t) { | |
var n = e.domId | |
, r = e.playerId | |
, i = e.pluginId | |
, u = e.data | |
, c = e.nodeId | |
, s = t + "_" + i + "_" + n + "_"; | |
c && c !== o.getRootNodeId(t) && (s += c), | |
_[s] = r, | |
y[t + "_" + r] = u || {}, | |
b.emit("livePlayerInsert"), | |
a(t), | |
(0, | |
p.replayPlayerEvent)(t) | |
}), | |
(0, | |
c.subscribe)("livePlayerRemoved", function(e, t) { | |
var n = e.domId | |
, r = e.playerId | |
, a = e.pluginId | |
, i = e.nodeId | |
, u = t + "_" + a + "_" + n + "_"; | |
i && i !== o.getRootNodeId(t) && (u += i), | |
delete _[u], | |
delete y[t + "_" + r] | |
}); | |
var w = new WeakMap | |
, k = function() { | |
function e(t, n, o, a) { | |
if (r(this, e), | |
"string" != typeof t) | |
throw new s.ThirdScriptError("Parameter 1 should be a string"); | |
this.domId = t, | |
this.webviewId = n, | |
this.nodeId = o, | |
this.pluginId = a | |
} | |
return u(e, [{ | |
key: "play", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = this._getAppStatus(); | |
t === f.AppStatus.BACK_GROUND || t === f.AppStatus.LOCK || this._invokeMethod("play", [], e) | |
} | |
}, { | |
key: "stop", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("stop", [], e) | |
} | |
}, { | |
key: "mute", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("mute", [], e) | |
} | |
}, { | |
key: "pause", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("pause", [], e) | |
} | |
}, { | |
key: "resume", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("resume", [], e) | |
} | |
}, { | |
key: "requestFullScreen", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = e.direction; | |
[0, 90, -90].indexOf(t) > -1 ? this._invokeMethod("requestFullScreen", [t], e) : this._invokeMethod("requestFullScreen", [], e), | |
w.set(this, !0) | |
} | |
}, { | |
key: "exitFullScreen", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("exitFullScreen", [], e), | |
this.showStatusBar(), | |
w.set(this, !1) | |
} | |
}, { | |
key: "showStatusBar", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
c.invokeMethod)("showStatusBar", e) | |
} | |
}, { | |
key: "hideStatusBar", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if (!w.get(this)) { | |
var t = "hideStatusBar:fail cannot be invoked but in fullscreen."; | |
return "function" == typeof e.fail && e.fail({ | |
errMsg: t | |
}), | |
void ("function" == typeof e.complete && e.complete({ | |
errMsg: t | |
})) | |
} | |
(0, | |
c.invokeMethod)("hideStatusBar", e) | |
} | |
}, { | |
key: "_invokeMethod", | |
value: function(e, t, n) { | |
function o() { | |
(0, | |
c.invokeMethod)("operateLivePlayer", { | |
data: t, | |
type: e, | |
livePlayerId: _[a], | |
success: n.success, | |
fail: n.fail, | |
complete: n.complete | |
}) | |
} | |
var r = this | |
, a = this.webviewId + "_" + this.pluginId + "_" + this.domId + "_" + this.nodeId; | |
"number" == typeof _[a] ? (g && (n.type = e, | |
n.playerId = _[a], | |
(0, | |
c.publish)("operateLivePlayer", n, [this.webviewId])), | |
o.apply(this)) : b.once("livePlayerInsert", function() { | |
r._invokeMethod(e, t, n) | |
}) | |
} | |
}]), | |
e | |
}(); | |
t.createLivePlayerContext = i, | |
t.playerInfo = y | |
} | |
, function(e, t, n) { | |
function o(e) { | |
var t = f[e]; | |
if (f[e] = [], | |
t) | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
a(o[0], o[1], o[2]) | |
} | |
} | |
function r(e) { | |
delete f[e] | |
} | |
function a(e, t, n) { | |
var o = s.playerInfo[n + "_" + t.livePlayerId] | |
, r = l[e]; | |
if (!o) | |
return f[n] = f[n] || [], | |
void f[n].push([e, t, n]); | |
if (o.handlers[r] && "function" == typeof u.default.webviewEventCallback) { | |
var a = {}; | |
switch (e) { | |
case "onLivePlayerEvent": | |
a.code = t.errCode, | |
a.message = t.errMsg; | |
break; | |
case "onLivePlayerNetStatus": | |
t.info = t.info || {}, | |
a.info = { | |
videoBitrate: t.info.VIDEO_BITRATE, | |
audioBitrate: t.info.AUDIO_BITRATE, | |
videoFPS: t.info.VIDEO_FPS, | |
videoGOP: t.info.VIDEO_GOP, | |
netSpeed: t.info.NET_SPEED, | |
netJitter: t.info.NET_JITTER, | |
videoWidth: t.info.VIDEO_WIDTH, | |
videoHeight: t.info.VIDEO_HEIGHT | |
} | |
} | |
u.default.webviewEventCallback({ | |
data: { | |
type: r.replace("bind", ""), | |
target: o.target, | |
currentTarget: o.target, | |
timeStamp: Date.now() - o.createdTimeStamp, | |
touches: [], | |
detail: a | |
}, | |
eventName: o.handlers[r], | |
webviewId: n, | |
nodeId: o.nodeId | |
}) | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.clearEveneDataCache = t.replayPlayerEvent = void 0; | |
var i = n(5) | |
, u = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(i) | |
, c = n(1) | |
, s = n(109) | |
, l = { | |
onLivePlayerEvent: "bindstatechange", | |
onLivePlayerNetStatus: "bindnetstatus" | |
} | |
, f = {}; | |
["onLivePlayerEvent", "onLivePlayerNetStatus"].forEach(function(e) { | |
(0, | |
c.onMethod)(e, function() { | |
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, n = arguments[1]; | |
a(e, t, n) | |
}) | |
}), | |
(0, | |
c.onMethod)("onLivePlayerFullScreenChange", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = arguments[1]; | |
(0, | |
c.publish)("videoFullScreenChange", e, [t]); | |
var n = s.playerInfo[t + "_" + e.livePlayerId]; | |
n && n.handlers.bindfullscreenchange && "function" == typeof u.default.webviewEventCallback && u.default.webviewEventCallback({ | |
data: { | |
type: "fullscreenchange", | |
target: n.target, | |
currentTarget: n.target, | |
timeStamp: Date.now() - n.createdTimeStamp, | |
touches: [], | |
detail: { | |
fullScreen: e.fullScreen, | |
direction: 0 === e.direction || 180 === e.direction || "vertical" === e.direction ? "vertical" : "horizontal" | |
} | |
}, | |
eventName: n.handlers.bindfullscreenchange, | |
webviewId: t, | |
nodeId: n.nodeId | |
}) | |
}), | |
t.replayPlayerEvent = o, | |
t.clearEveneDataCache = r | |
} | |
, function(e, t, n) { | |
function o(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function r(e) { | |
v[e] || (v[e] = !0, | |
(0, | |
l.onBeforeUnloadPage)(e, function(e) { | |
delete v[e], | |
Object.keys(d).forEach(function(t) { | |
new RegExp("^" + e).test(t) && (delete p[e + "_" + d[t]], | |
delete d[t]) | |
}), | |
(0, | |
f.clearEveneDataCache)(e) | |
})) | |
} | |
function a(e, t, n) { | |
var o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : ""; | |
return new g(t,o) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.pusherInfo = t.createLivePusherContext = void 0; | |
var i = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}() | |
, u = n(1) | |
, c = n(2) | |
, s = n(14) | |
, l = (n(112), | |
n(81)) | |
, f = n(134) | |
, d = {} | |
, p = {} | |
, h = new s.EventEmitter2 | |
, v = {}; | |
(0, | |
u.subscribe)("livePusherInserted", function(e, t) { | |
var n = e.pusherId | |
, o = e.pluginId | |
, a = e.data; | |
d[t + "_" + o] = n, | |
p[t + "_" + n] = a, | |
h.emit("livePusherInserted"), | |
r(t), | |
(0, | |
f.replayPusherEvent)(t) | |
}), | |
(0, | |
u.subscribe)("livePusherRemoved", function(e, t) { | |
var n = e.pusherId | |
, o = e.pluginId; | |
delete d[t + "_" + o], | |
delete p[t + "_" + n] | |
}); | |
var g = function() { | |
function e(t, n) { | |
o(this, e), | |
this.webviewId = t, | |
this.pluginId = n | |
} | |
return i(e, [{ | |
key: "_invoke", | |
value: function(e, t) { | |
var n = (0, | |
c.getPlatform)(); | |
"ios" === n || "android" === n ? (0, | |
u.invokeMethod)("operateLivePusher", t) : console.warn("开发者工具暂不支持调用 LivePusherContext." + e + " 方法") | |
} | |
}, { | |
key: "_invokeMethod", | |
value: function(e, t) { | |
var n = this | |
, o = this.webviewId + "_" + this.pluginId; | |
"number" == typeof d[o] ? (t.livePusherId = d[o], | |
t.type = e, | |
this._invoke(e, t)) : h.once("livePusherInserted", function() { | |
n._invokeMethod(e, t) | |
}) | |
} | |
}, { | |
key: "start", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("start", e) | |
} | |
}, { | |
key: "stop", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("stop", e) | |
} | |
}, { | |
key: "pause", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("pause", e) | |
} | |
}, { | |
key: "resume", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("resume", e) | |
} | |
}, { | |
key: "switchCamera", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("switchCamera", e) | |
} | |
}, { | |
key: "snapshot", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("snapshot", e) | |
} | |
}, { | |
key: "toggleTorch", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
this._invokeMethod("toggleTorch", e) | |
} | |
}]), | |
e | |
}(); | |
t.createLivePusherContext = a, | |
t.pusherInfo = p | |
} | |
, function(e, t, n) { | |
function o(e) { | |
if (e && e.__esModule) | |
return e; | |
var t = {}; | |
if (null != e) | |
for (var n in e) | |
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); | |
return t.default = e, | |
t | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getMenuButtonBoundingClientRect = t.event = t.route = t.tabBar = t.topBar = t.navigationBar = t.interaction = void 0; | |
var r = n(113); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}); | |
var a = n(114); | |
Object.keys(a).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return a[e] | |
} | |
}) | |
}); | |
var i = n(115); | |
Object.keys(i).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return i[e] | |
} | |
}) | |
}); | |
var u = n(116); | |
Object.keys(u).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return u[e] | |
} | |
}) | |
}); | |
var c = n(117); | |
Object.keys(c).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return c[e] | |
} | |
}) | |
}); | |
var s = n(118); | |
Object.keys(s).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return s[e] | |
} | |
}) | |
}); | |
var l = n(119); | |
Object.defineProperty(t, "getMenuButtonBoundingClientRect", { | |
enumerable: !0, | |
get: function() { | |
return l.getMenuButtonBoundingClientRect | |
} | |
}); | |
var f = n(120) | |
, d = o(f) | |
, p = n(121) | |
, h = o(p) | |
, v = n(126) | |
, g = o(v) | |
, _ = n(127) | |
, y = o(_) | |
, b = n(130) | |
, m = o(b) | |
, w = n(133) | |
, k = o(w); | |
t.interaction = d, | |
t.navigationBar = h, | |
t.topBar = g, | |
t.tabBar = k, | |
t.route = y, | |
t.event = m | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.pageScrollTo = void 0; | |
var o = n(1); | |
t.pageScrollTo = function(e) { | |
var t = r.getCurrentPagesByDomain("") | |
, n = t[t.length - 1].__wxWebviewId__; | |
e.hasOwnProperty("page") && e.page.hasOwnProperty("__wxWebviewId__") && (n = e.page.__wxWebviewId__), | |
(0, | |
o.publish)("pageScrollTo", e, [n]) | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.stopPullDownRefresh = t.startPullDownRefresh = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("startPullDownRefresh", e, {}) | |
} | |
, a = function(e) { | |
(0, | |
o.invokeMethod)("stopPullDownRefresh", e) | |
}; | |
t.startPullDownRefresh = r, | |
t.stopPullDownRefresh = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.setPageStyle = void 0; | |
var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
, r = n(1) | |
, a = n(5) | |
, i = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(a) | |
, u = 0 | |
, c = {} | |
, s = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
c[u] = { | |
success: e.success, | |
fail: e.fail, | |
complete: e.complete | |
}, | |
(0, | |
r.publish)("setPageStyle", { | |
callbackId: u, | |
style: e.style | |
}, [i.default.currentWebviewId]), | |
u += 1 | |
}; | |
(0, | |
r.subscribe)("callbackSetPageStyle", function(e) { | |
var t = e.res | |
, n = e.callbackId | |
, r = t.errMsg | |
, a = 0 === r.indexOf("setPageStyle:ok") | |
, i = 0 === r.indexOf("setPageStyle:fail") | |
, u = c[n]; | |
delete c[n], | |
"object" === (void 0 === u ? "undefined" : o(u)) && (a ? "function" == typeof u.success && u.success(t) : i && "function" == typeof u.fail && u.fail(t), | |
"function" == typeof u.complete && u.complete(t)) | |
}), | |
t.setPageStyle = s | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.hideKeyboard = void 0; | |
var o = n(2) | |
, r = n(1); | |
t.hideKeyboard = function(e) { | |
"devtools" == (0, | |
o.getPlatform)() ? (0, | |
r.publish)("hideKeyboard", {}) : (0, | |
r.invokeMethod)("hideKeyboard", e) | |
} | |
} | |
, function(e, t, n) { | |
function o(e) { | |
if (Array.isArray(e)) { | |
for (var t = 0, n = Array(e.length); t < e.length; t++) | |
n[t] = e[t]; | |
return n | |
} | |
return Array.from(e) | |
} | |
function r(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.createAnimation = void 0; | |
var a = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}() | |
, i = n(1) | |
, u = function() { | |
function e() { | |
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
r(this, e), | |
this.actions = [], | |
this.currentTransform = [], | |
this.currentStepAnimates = [], | |
this.option = { | |
transition: { | |
duration: void 0 !== t.duration ? t.duration : 400, | |
timingFunction: void 0 !== t.timingFunction ? t.timingFunction : "linear", | |
delay: void 0 !== t.delay ? t.delay : 0 | |
}, | |
transformOrigin: t.transformOrigin || "50% 50% 0" | |
} | |
} | |
return a(e, [{ | |
key: "export", | |
value: function() { | |
var e = this.actions; | |
return this.actions = [], | |
{ | |
actions: e | |
} | |
} | |
}, { | |
key: "step", | |
value: function() { | |
var e = this | |
, t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
return this.currentStepAnimates.forEach(function(t) { | |
"style" !== t.type ? e.currentTransform[t.type] = t : e.currentTransform[t.type + "." + t.args[0]] = t | |
}), | |
this.actions.push({ | |
animates: Object.keys(this.currentTransform).reduce(function(t, n) { | |
return [].concat(o(t), [e.currentTransform[n]]) | |
}, []), | |
option: { | |
transformOrigin: void 0 !== t.transformOrigin ? t.transformOrigin : this.option.transformOrigin, | |
transition: { | |
duration: void 0 !== t.duration ? t.duration : this.option.transition.duration, | |
timingFunction: void 0 !== t.timingFunction ? t.timingFunction : this.option.transition.timingFunction, | |
delay: void 0 !== t.delay ? t.delay : this.option.transition.delay | |
} | |
} | |
}), | |
this.currentStepAnimates = [], | |
this | |
} | |
}, { | |
key: "matrix", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1 | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0 | |
, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0 | |
, o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 1 | |
, r = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : 1 | |
, a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : 1; | |
return this.currentStepAnimates.push({ | |
type: "matrix", | |
args: [e, t, n, o, r, a] | |
}), | |
this | |
} | |
}, { | |
key: "matrix3d", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1 | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0 | |
, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0 | |
, o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0 | |
, r = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : 0 | |
, a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : 1 | |
, i = arguments.length > 6 && void 0 !== arguments[6] ? arguments[6] : 0 | |
, u = arguments.length > 7 && void 0 !== arguments[7] ? arguments[7] : 0 | |
, c = arguments.length > 8 && void 0 !== arguments[8] ? arguments[8] : 0 | |
, s = arguments.length > 9 && void 0 !== arguments[9] ? arguments[9] : 0 | |
, l = arguments.length > 10 && void 0 !== arguments[10] ? arguments[10] : 1 | |
, f = arguments.length > 11 && void 0 !== arguments[11] ? arguments[11] : 0 | |
, d = arguments.length > 12 && void 0 !== arguments[12] ? arguments[12] : 0 | |
, p = arguments.length > 13 && void 0 !== arguments[13] ? arguments[13] : 0 | |
, h = arguments.length > 14 && void 0 !== arguments[14] ? arguments[14] : 0 | |
, v = arguments.length > 15 && void 0 !== arguments[15] ? arguments[15] : 1; | |
return this.currentStepAnimates.push({ | |
type: "matrix3d", | |
args: [e, t, n, o, r, a, i, u, c, s, l, f, d, p, h, v] | |
}), | |
this.stepping = !1, | |
this | |
} | |
}, { | |
key: "rotate", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0; | |
return this.currentStepAnimates.push({ | |
type: "rotate", | |
args: [e] | |
}), | |
this | |
} | |
}, { | |
key: "rotate3d", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0 | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0 | |
, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0 | |
, o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0; | |
return this.currentStepAnimates.push({ | |
type: "rotate3d", | |
args: [e, t, n, o] | |
}), | |
this.stepping = !1, | |
this | |
} | |
}, { | |
key: "rotateX", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0; | |
return this.currentStepAnimates.push({ | |
type: "rotateX", | |
args: [e] | |
}), | |
this.stepping = !1, | |
this | |
} | |
}, { | |
key: "rotateY", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0; | |
return this.currentStepAnimates.push({ | |
type: "rotateY", | |
args: [e] | |
}), | |
this.stepping = !1, | |
this | |
} | |
}, { | |
key: "rotateZ", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0; | |
return this.currentStepAnimates.push({ | |
type: "rotateZ", | |
args: [e] | |
}), | |
this.stepping = !1, | |
this | |
} | |
}, { | |
key: "scale", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1 | |
, t = arguments[1]; | |
return t = void 0 !== t ? t : e, | |
this.currentStepAnimates.push({ | |
type: "scale", | |
args: [e, t] | |
}), | |
this | |
} | |
}, { | |
key: "scale3d", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1 | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1 | |
, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 1; | |
return this.currentStepAnimates.push({ | |
type: "scale3d", | |
args: [e, t, n] | |
}), | |
this | |
} | |
}, { | |
key: "scaleX", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1; | |
return this.currentStepAnimates.push({ | |
type: "scaleX", | |
args: [e] | |
}), | |
this | |
} | |
}, { | |
key: "scaleY", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1; | |
return this.currentStepAnimates.push({ | |
type: "scaleY", | |
args: [e] | |
}), | |
this | |
} | |
}, { | |
key: "scaleZ", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1; | |
return this.currentStepAnimates.push({ | |
type: "scaleZ", | |
args: [e] | |
}), | |
this | |
} | |
}, { | |
key: "skew", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0 | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; | |
return this.currentStepAnimates.push({ | |
type: "skew", | |
args: [e, t] | |
}), | |
this | |
} | |
}, { | |
key: "skewX", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0; | |
return this.currentStepAnimates.push({ | |
type: "skewX", | |
args: [e] | |
}), | |
this | |
} | |
}, { | |
key: "skewY", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0; | |
return this.currentStepAnimates.push({ | |
type: "skewY", | |
args: [e] | |
}), | |
this | |
} | |
}, { | |
key: "translate", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0 | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; | |
return this.currentStepAnimates.push({ | |
type: "translate", | |
args: [e, t] | |
}), | |
this | |
} | |
}, { | |
key: "translate3d", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0 | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0 | |
, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0; | |
return this.currentStepAnimates.push({ | |
type: "translate3d", | |
args: [e, t, n] | |
}), | |
this | |
} | |
}, { | |
key: "translateX", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0; | |
return this.currentStepAnimates.push({ | |
type: "translateX", | |
args: [e] | |
}), | |
this | |
} | |
}, { | |
key: "translateY", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0; | |
return this.currentStepAnimates.push({ | |
type: "translateY", | |
args: [e] | |
}), | |
this | |
} | |
}, { | |
key: "translateZ", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0; | |
return this.currentStepAnimates.push({ | |
type: "translateZ", | |
args: [e] | |
}), | |
this | |
} | |
}, { | |
key: "opacity", | |
value: function(e) { | |
return this.currentStepAnimates.push({ | |
type: "style", | |
args: ["opacity", e] | |
}), | |
this | |
} | |
}, { | |
key: "backgroundColor", | |
value: function(e) { | |
return this.currentStepAnimates.push({ | |
type: "style", | |
args: ["background-color", e] | |
}), | |
this | |
} | |
}, { | |
key: "width", | |
value: function(e) { | |
return "number" == typeof e && (e += "px"), | |
this.currentStepAnimates.push({ | |
type: "style", | |
args: ["width", e] | |
}), | |
this | |
} | |
}, { | |
key: "height", | |
value: function(e) { | |
return "number" == typeof e && (e += "px"), | |
this.currentStepAnimates.push({ | |
type: "style", | |
args: ["height", e] | |
}), | |
this | |
} | |
}, { | |
key: "left", | |
value: function(e) { | |
return "number" == typeof e && (e += "px"), | |
this.currentStepAnimates.push({ | |
type: "style", | |
args: ["left", e] | |
}), | |
this | |
} | |
}, { | |
key: "right", | |
value: function(e) { | |
return "number" == typeof e && (e += "px"), | |
this.currentStepAnimates.push({ | |
type: "style", | |
args: ["right", e] | |
}), | |
this | |
} | |
}, { | |
key: "top", | |
value: function(e) { | |
return "number" == typeof e && (e += "px"), | |
this.currentStepAnimates.push({ | |
type: "style", | |
args: ["top", e] | |
}), | |
this | |
} | |
}, { | |
key: "bottom", | |
value: function(e) { | |
return "number" == typeof e && (e += "px"), | |
this.currentStepAnimates.push({ | |
type: "style", | |
args: ["bottom", e] | |
}), | |
this | |
} | |
}]), | |
e | |
}() | |
, c = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
i.beforeInvoke)("createAnimation", e, {})) | |
return new u(e) | |
}; | |
t.createAnimation = c | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.setBackgroundTextStyle = t.setBackgroundColor = void 0; | |
var o = n(1) | |
, r = function(e) { | |
return /^#[0-9a-fA-F]{6}$/.test(e) | |
} | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
e = Object.assign({}, e), | |
e.backgroundColor && !r(e.backgroundColor) && delete e.backgroundColor, | |
e.backgroundColorTop && !r(e.backgroundColorTop) && delete e.backgroundColorTop, | |
e.backgroundColorBottom && !r(e.backgroundColorBottom) && delete e.backgroundColorBottom, | |
(e.backgroundColor || e.backgroundColorTop || e.backgroundColorBottom) && (0, | |
o.invokeMethod)("setBackgroundColor", e) | |
} | |
, i = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if (-1 === ["dark", "light"].indexOf(e.textStyle)) | |
return void (0, | |
o.beforeInvokeFail)("setBackgroundTextStyle", e, 'invalid textStyle "' + e.textStyle + '"'); | |
(0, | |
o.invokeMethod)("setBackgroundTextStyle", e) | |
}; | |
t.setBackgroundColor = a, | |
t.setBackgroundTextStyle = i | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getMenuButtonBoundingClientRect = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function(e) { | |
var t = {} | |
, n = void 0; | |
if ((0, | |
o.invokeMethod)("getMenuButtonBoundingClientRect", { | |
success: function(e) { | |
Object.assign(t, e), | |
delete t.errMsg | |
}, | |
fail: function(e) { | |
n = e.errMsg | |
} | |
}), | |
n) | |
throw new r.ThirdScriptError(n); | |
return t | |
}; | |
t.getMenuButtonBoundingClientRect = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.showActionSheet = t.showModal = t.hideLoading = t.showLoading = t.hideToast = t.showToast = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = n(5) | |
, i = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(a) | |
, u = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = { | |
title: "", | |
content: "", | |
confirmText: "确定", | |
cancelText: "取消", | |
showCancel: !0, | |
confirmColor: "#3CC51F", | |
cancelColor: "#000000" | |
}; | |
if (t = (0, | |
r.extend)(t, e), | |
(0, | |
o.beforeInvoke)("showModal", t, { | |
title: "", | |
content: "", | |
confirmText: "", | |
cancelText: "", | |
confirmColor: "", | |
cancelColor: "" | |
})) | |
return t.confirmText.replace(/[^\x00-\xff]/g, "##").length > 8 ? void (0, | |
o.beforeInvokeFail)("showModal", e, "confirmText length should not larger than 4 Chinese characters") : t.cancelText.replace(/[^\x00-\xff]/g, "##").length > 8 ? void (0, | |
o.beforeInvokeFail)("showModal", e, "cancelText length should not larger than 4 Chinese characters") : void (0, | |
o.invokeMethod)("showModal", t, { | |
beforeSuccess: function(e) { | |
e.confirm = Boolean(e.confirm), | |
"ios" === (0, | |
r.getPlatform)() ? e.cancel = !e.confirm : e.cancel = !e.confirm && Boolean(e.cancel) | |
} | |
}) | |
} | |
, c = 1 | |
, s = !1 | |
, l = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = { | |
duration: 1500, | |
title: "", | |
icon: "success", | |
mask: !1 | |
}; | |
t = (0, | |
r.extend)(t, e), | |
e.image && (t.image = (0, | |
r.getRealRoute)(i.default.lastRoute, e.image, !1)), | |
["success", "loading", "none"].indexOf(t.icon) < 0 && (t.icon = "success"), | |
"none" === t.icon && (t.icon = ""), | |
(0, | |
o.beforeInvoke)("showToast", t, { | |
duration: 1, | |
title: "", | |
icon: "" | |
}) && (s = c++, | |
setTimeout(function() { | |
s = !1 | |
}, t.duration), | |
(0, | |
o.invokeMethod)("showToast", t)) | |
} | |
, f = function(e) { | |
if ("devtools" === (0, | |
r.getPlatform)() && d && (!s || s < d)) | |
return s = !1, | |
e && "function" == typeof e.success && setTimeout(function() { | |
e.success({ | |
errMsg: "hideToast:ok" | |
}) | |
}), | |
e && "function" == typeof e.complete && setTimeout(function() { | |
e.complete({ | |
errMsg: "hideToast:ok" | |
}) | |
}), | |
void console.warn("请注意 showToast 与 hideToast 必须配对使用"); | |
s = !1, | |
(0, | |
o.invokeMethod)("hideToast", e) | |
} | |
, d = !1 | |
, p = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = { | |
title: "", | |
icon: "loading", | |
mask: !1, | |
duration: 1e8 | |
}; | |
t = (0, | |
r.extend)(t, e), | |
t.icon = "loading", | |
delete t.image, | |
(0, | |
o.beforeInvoke)("showLoading", t, { | |
duration: 1, | |
title: "" | |
}) && (d = c++, | |
(0, | |
o.invokeMethod)("showToast", t, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("showToast", "showLoading") | |
} | |
})) | |
} | |
, h = function(e) { | |
if ("devtools" === (0, | |
r.getPlatform)() && s && (!d || d < s)) | |
return d = !1, | |
e && "function" == typeof e.success && setTimeout(function() { | |
e.success({ | |
errMsg: "hideLoading:ok" | |
}) | |
}), | |
e && "function" == typeof e.complete && setTimeout(function() { | |
e.complete({ | |
errMsg: "hideLoading:ok" | |
}) | |
}), | |
void console.warn("请注意 showLoading 与 hideLoading 必须配对使用"); | |
d = !1, | |
(0, | |
o.invokeMethod)("hideToast", e, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("hideToast", "hideLoading") | |
} | |
}) | |
} | |
, v = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = { | |
itemList: [], | |
itemColor: "#000000" | |
}; | |
if (t = (0, | |
r.extend)(t, e), | |
delete t.cancelText, | |
delete t.cancelColor, | |
(0, | |
o.beforeInvoke)("showActionSheet", t, { | |
itemList: ["1"], | |
itemColor: "" | |
})) | |
return e.itemList.length > 6 ? void (0, | |
o.beforeInvokeFail)("showActionSheet", e, "parameter error: itemList should not be large than 6") : void (0, | |
o.invokeMethod)("showActionSheet", t) | |
}; | |
t.showToast = l, | |
t.hideToast = f, | |
t.showLoading = p, | |
t.hideLoading = h, | |
t.showModal = u, | |
t.showActionSheet = v | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(122); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}); | |
var r = n(123); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}); | |
var a = n(124); | |
Object.keys(a).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return a[e] | |
} | |
}) | |
}); | |
var i = n(125); | |
Object.keys(i).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return i[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.hideNavigationBarLoading = t.showNavigationBarLoading = t.setNavigationBarTitle = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("setNavigationBarTitle", e, { | |
title: "" | |
}) && (0, | |
o.invokeMethod)("setNavigationBarTitle", e) | |
} | |
, a = function(e) { | |
(0, | |
o.invokeMethod)("showNavigationBarLoading", e) | |
} | |
, i = function(e) { | |
(0, | |
o.invokeMethod)("hideNavigationBarLoading", e) | |
}; | |
t.setNavigationBarTitle = r, | |
t.showNavigationBarLoading = a, | |
t.hideNavigationBarLoading = i | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.setNavigationBarColor = t.setNavigationBarAlpha = void 0; | |
var r = n(1) | |
, a = n(5) | |
, i = o(a) | |
, u = n(16) | |
, c = n(3) | |
, s = o(c) | |
, l = "#000000"; | |
s.default.onReady(function() { | |
(0, | |
u.onAppRoute)(function() { | |
void 0 !== s.default && s.default.global && s.default.global.window && (l = s.default.global.window.navigationBarBackgroundColor || l); | |
var e = i.default.lastRoute + ".html"; | |
void 0 !== s.default && s.default.page && s.default.page[e] && s.default.page[e].window && (l = s.default.page[e].window.navigationBarBackgroundColor || l) | |
}) | |
}); | |
var f = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
r.beforeInvoke)("setNavigationBarColor", e, { | |
frontColor: "", | |
backgroundColor: "" | |
})) { | |
if (-1 === ["#ffffff", "#000000"].indexOf(e.frontColor)) | |
return void (0, | |
r.beforeInvokeFail)("setNavigationBarColor", e, 'invalid frontColor "' + e.frontColor + '"'); | |
"#ffffff" === e.frontColor ? (0, | |
r.invokeMethod)("setStatusBarStyle", { | |
color: "white" | |
}) : "#000000" === e.frontColor && (0, | |
r.invokeMethod)("setStatusBarStyle", { | |
color: "black" | |
}); | |
var t = Object.assign({}, e); | |
l = e.backgroundColor, | |
(0, | |
r.invokeMethod)("setNavigationBarColor", t) | |
} | |
} | |
, d = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = Object.assign({}, e); | |
t.backgroundColor = l, | |
(0, | |
r.invokeMethod)("setNavigationBarColor", t, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("setNavigationBarColor", "setNavigationBarAlpha") | |
} | |
}) | |
}; | |
t.setNavigationBarAlpha = d, | |
t.setNavigationBarColor = f | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.setNavigationBarRightButton = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("setNavigationBarRightButton", e, { | |
hide: !0 | |
}) && (0, | |
o.invokeMethod)("setNavigationBarRightButton", e, {}) | |
}; | |
t.setNavigationBarRightButton = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onTapNavigationBarRightButton = void 0; | |
var o = n(1) | |
, r = function(e) { | |
(0, | |
o.onMethod)("onTapNavigationBarRightButton", Reporter.surroundThirdByTryCatch(e, "at onTapNavigationBarRightButton callback function")) | |
}; | |
t.onTapNavigationBarRightButton = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.setTopBarText = void 0; | |
var o = n(1) | |
, r = 0 | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
return e.text ? Date.now() - r < 5e3 ? void (0, | |
o.beforeInvokeFail)("setTopBarText", e, "invoke too frequently") : void (0, | |
o.invokeMethod)("setTopBarText", e, { | |
beforeSuccess: function() { | |
r = Date.now() | |
} | |
}) : void (0, | |
o.beforeInvokeFail)("setTopBarText", e, "invalid text") | |
}; | |
t.setTopBarText = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(128); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}); | |
var r = n(129); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.reLaunch = t.navigateBack = t.switchTab = t.redirectTo = t.navigateTo = void 0; | |
var o = n(1) | |
, a = n(2) | |
, i = n(5) | |
, u = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(i) | |
, c = function(e) { | |
arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; | |
(0, | |
o.beforeInvoke)("redirectTo", e, { | |
url: "" | |
}) && (e.url = (0, | |
a.getRealRouteWithProtocol)(u.default.lastRoute, e.url), | |
e.url = (0, | |
a.encodeUrlQuery)(e.url), | |
(0, | |
o.checkUrlInConfig)("redirectTo", e.url, e) && (u.default.navigatorLock = !0, | |
(0, | |
o.invokeMethod)("redirectTo", e, { | |
afterFail: function() { | |
u.default.navigatorLock = !1 | |
} | |
}))) | |
} | |
, s = function(e) { | |
arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; | |
if ("active" !== u.default.runningStatus) | |
return void (0, | |
o.beforeInvokeFail)("reLaunch", e, "can not invoke reLaunch in background"); | |
(0, | |
o.beforeInvoke)("reLaunch", e, { | |
url: "" | |
}) && (e.url = (0, | |
a.getRealRouteWithProtocol)(u.default.lastRoute, e.url), | |
e.url = (0, | |
a.encodeUrlQuery)(e.url), | |
(0, | |
o.checkUrlInConfig)("reLaunch", e.url, e) && (u.default.navigatorLock = !0, | |
(0, | |
o.invokeMethod)("reLaunch", e, { | |
afterFail: function() { | |
u.default.navigatorLock = !1 | |
} | |
}))) | |
} | |
, l = function(e) { | |
arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; | |
(0, | |
o.beforeInvoke)("navigateTo", e, { | |
url: "" | |
}) && (e.url = (0, | |
a.getRealRouteWithProtocol)(u.default.lastRoute, e.url), | |
e.url = (0, | |
a.encodeUrlQuery)(e.url), | |
(0, | |
o.checkUrlInConfig)("navigateTo", e.url, e) && (u.default.navigatorLock = !0, | |
(0, | |
o.invokeMethod)("navigateTo", e, { | |
afterFail: function() { | |
u.default.navigatorLock = !1 | |
} | |
}))) | |
} | |
, f = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("switchTab", e, { | |
url: "" | |
}) && (/\?.*$/.test(e.url) && (console.warn("wx.switchTab: url 不支持 queryString"), | |
e.url = e.url.replace(/\?.*$/, "")), | |
e.url = (0, | |
a.getRealRouteWithProtocol)(u.default.lastRoute, e.url), | |
e.url = (0, | |
a.encodeUrlQuery)(e.url), | |
(0, | |
o.checkUrlInConfig)("switchTab", e.url, e) && (u.default.navigatorLock = !0, | |
(0, | |
o.invokeMethod)("switchTab", e, { | |
afterFail: function() { | |
u.default.navigatorLock = !1 | |
} | |
}))) | |
} | |
, d = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ("number" != typeof e.delta ? e.delta = 1 : (e.delta = parseInt(e.delta), | |
e.delta < 1 && (e.delta = 1)), | |
"function" == typeof r.getCurrentPagesByDomain) { | |
if (r.getCurrentPagesByDomain("").length <= 1) | |
return | |
} | |
(0, | |
o.invokeMethod)("navigateBack", e) | |
}; | |
t.navigateTo = l, | |
t.redirectTo = c, | |
t.switchTab = f, | |
t.navigateBack = d, | |
t.reLaunch = s | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t._triggerBeforeShareAppMessage = t._triggerBeforeUnloadPage = t.onPageReload = void 0; | |
var o = n(81) | |
, r = function(e) { | |
if (e && e.__esModule) | |
return e; | |
var t = {}; | |
if (null != e) | |
for (var n in e) | |
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); | |
return t.default = e, | |
t | |
}(o) | |
, a = r.onPageReload | |
, i = r.triggerBeforeUnloadPage | |
, u = r.triggerBeforeShareAppMessage; | |
t.onPageReload = a, | |
t._triggerBeforeUnloadPage = i, | |
t._triggerBeforeShareAppMessage = u | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(131); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}); | |
var r = n(132); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onWebviewEvent = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = n(5) | |
, i = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(a); | |
"devtools" === (0, | |
r.getPlatform)() && (0, | |
o.subscribe)("SPECIAL_PAGE_EVENT", function(e) { | |
var t = e.data | |
, n = e.eventName | |
, a = e.ext | |
, u = e.nodeId | |
, c = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; | |
if (t && "input" == t.type && "function" == typeof i.default.webviewEventCallback) { | |
var s = i.default.webviewEventCallback({ | |
data: t, | |
eventName: n, | |
webviewId: c, | |
nodeId: u | |
}) | |
, l = t.detail.value; | |
if (a && a.setKeyboardValue) | |
if (void 0 === s) | |
; | |
else if ("Object" === (0, | |
r.getDataType)(s)) { | |
var f = {}; | |
l != s.value && (f.value = s.value + ""), | |
isNaN(parseInt(s.cursor)) || (f.cursor = parseInt(s.cursor)), | |
(0, | |
o.publish)("setKeyboardValue", f, [c]) | |
} else | |
l != s && (0, | |
o.publish)("setKeyboardValue", { | |
value: s + "", | |
cursor: -1 | |
}, [c]) | |
} | |
}); | |
t.onWebviewEvent = function(e, t) { | |
i.default.webviewEventCallback = e, | |
(0, | |
o.subscribe)("PAGE_EVENT", function(t) { | |
var n = t.data | |
, o = t.eventName | |
, r = t.nodeId | |
, a = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; | |
e({ | |
data: n, | |
eventName: o, | |
webviewId: a, | |
nodeId: r | |
}) | |
}) | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onNativeEvent = void 0; | |
var o = n(1); | |
t.onNativeEvent = function(e) { | |
["onCanvasTouchStart", "onCanvasTouchMove", "onCanvasTouchEnd"].forEach(function(t) { | |
(0, | |
o.onMethod)(t, function(n, o) { | |
e({ | |
data: n, | |
eventName: t, | |
webviewId: o | |
}) | |
}) | |
}) | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.setTabBarItem = t.setTabBarStyle = t.hideTabBar = t.showTabBar = t.hideTabBarRedDot = t.showTabBarRedDot = t.removeTabBarBadge = t.setTabBarBadge = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
o.beforeInvoke)("setTabBarBadge", e, { | |
index: 0, | |
text: "" | |
})) { | |
var t = Object.assign({}, e); | |
t.badgeValue = t.text, | |
t.type = "text", | |
(0, | |
o.invokeMethod)("setTabBarBadge", t) | |
} | |
} | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
o.beforeInvoke)("setTabBarBadge", e, { | |
index: 0 | |
})) { | |
var t = Object.assign({}, e); | |
t.type = "none", | |
(0, | |
o.invokeMethod)("setTabBarBadge", t, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("setTabBarBadge", "removeTabBarBadge") | |
} | |
}) | |
} | |
} | |
, i = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
o.beforeInvoke)("setTabBarBadge", e, { | |
index: 0 | |
})) { | |
var t = Object.assign({}, e); | |
t.type = "redDot", | |
(0, | |
o.invokeMethod)("setTabBarBadge", t, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("setTabBarBadge", "showTabBarRedDot") | |
} | |
}) | |
} | |
} | |
, u = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
o.beforeInvoke)("setTabBarBadge", e, { | |
index: 0 | |
})) { | |
var t = Object.assign({}, e); | |
t.type = "none", | |
(0, | |
o.invokeMethod)("setTabBarBadge", t, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("setTabBarBadge", "hideTabBarRedDot") | |
} | |
}) | |
} | |
} | |
, c = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
void 0 === e.animation && (e.animation = !1), | |
(0, | |
o.beforeInvoke)("showTabBar", e, { | |
animation: !0 | |
}) && (0, | |
o.invokeMethod)("showTabBar", e) | |
} | |
, s = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
void 0 === e.animation && (e.animation = !1), | |
(0, | |
o.beforeInvoke)("hideTabBar", e, { | |
animation: !0 | |
}) && (0, | |
o.invokeMethod)("hideTabBar", e) | |
} | |
, l = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("setTabBarStyle", e) | |
} | |
, f = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("setTabBarItem", e, { | |
index: 0 | |
}) && (0, | |
o.invokeMethod)("setTabBarItem", e) | |
}; | |
t.setTabBarBadge = r, | |
t.removeTabBarBadge = a, | |
t.showTabBarRedDot = i, | |
t.hideTabBarRedDot = u, | |
t.showTabBar = c, | |
t.hideTabBar = s, | |
t.setTabBarStyle = l, | |
t.setTabBarItem = f | |
} | |
, function(e, t, n) { | |
function o(e) { | |
var t = f[e]; | |
if (f[e] = [], | |
t) | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
a(o[0], o[1], o[2]) | |
} | |
} | |
function r(e) { | |
delete f[e] | |
} | |
function a(e, t, n) { | |
var o = s.pusherInfo[n + "_" + t.livePusherId] | |
, r = l[e]; | |
if (!o) | |
return f[n] = f[n] || [], | |
void f[n].push([e, t, n]); | |
if (o.handlers[r] && "function" == typeof u.default.webviewEventCallback) { | |
var a = {}; | |
switch (e) { | |
case "onLivePusherEvent": | |
a.code = t.errCode, | |
a.message = t.errMsg; | |
break; | |
case "onLivePusherNetStatus": | |
t.info = t.info || {}, | |
a.info = { | |
videoBitrate: t.info.VIDEO_BITRATE, | |
audioBitrate: t.info.AUDIO_BITRATE, | |
videoFPS: t.info.VIDEO_FPS, | |
videoGOP: t.info.VIDEO_GOP, | |
netSpeed: t.info.NET_SPEED, | |
netJitter: t.info.NET_JITTER, | |
videoWidth: t.info.VIDEO_WIDTH, | |
videoHeight: t.info.VIDEO_HEIGHT | |
} | |
} | |
u.default.webviewEventCallback({ | |
data: { | |
type: r.replace("bind", ""), | |
target: o.target, | |
currentTarget: o.target, | |
timeStamp: Date.now() - o.createdTimeStamp, | |
touches: [], | |
detail: a | |
}, | |
eventName: o.handlers[r], | |
webviewId: n, | |
nodeId: o.nodeId | |
}) | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.clearEveneDataCache = t.replayPusherEvent = void 0; | |
var i = n(5) | |
, u = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(i) | |
, c = n(1) | |
, s = n(111) | |
, l = { | |
onLivePusherEvent: "bindstatechange", | |
onLivePusherNetStatus: "bindnetstatus" | |
} | |
, f = {}; | |
["onLivePusherEvent", "onLivePusherNetStatus"].forEach(function(e) { | |
(0, | |
c.onMethod)(e, function() { | |
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; | |
a(e, t, n) | |
}) | |
}), | |
t.replayPusherEvent = o, | |
t.clearEveneDataCache = r | |
} | |
, function(e, t, n) { | |
n(136), | |
n(137), | |
n(138), | |
n(141), | |
n(142), | |
n(143), | |
n(110), | |
n(134) | |
} | |
, function(e, t, n) { | |
var o = n(5) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, a = n(2) | |
, i = n(1); | |
(0, | |
i.onMethod)("onKeyboardValueChange", function(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0 | |
, n = e.value | |
, o = e.cursor; | |
if ((0, | |
i.publish)("setKeyboardValue", { | |
value: n, | |
cursor: o, | |
inputId: e.inputId | |
}, [t]), | |
e.data && "function" == typeof r.default.webviewEventCallback) { | |
var u = JSON.parse(e.data); | |
if (u.bindinput) { | |
var c = void 0; | |
try { | |
c = r.default.webviewEventCallback({ | |
data: { | |
type: "input", | |
target: u.target, | |
currentTarget: u.target, | |
timeStamp: Date.now(), | |
touches: [], | |
detail: { | |
value: e.value, | |
cursor: e.cursor, | |
keyCode: e.keyCode | |
} | |
}, | |
eventName: u.bindinput, | |
webviewId: t, | |
nodeId: u.nodeId | |
}) | |
} catch (e) { | |
throw new a.AppServiceSdkKnownError("bind key input error") | |
} | |
if (u.setKeyboardValue) | |
if (void 0 === c || null === c || !1 === c) | |
; | |
else if ("Object" === (0, | |
a.getDataType)(c)) { | |
var s = { | |
inputId: e.inputId | |
}; | |
n != c.value && (s.value = c.value + ""), | |
isNaN(parseInt(c.cursor)) || (s.cursor = parseInt(c.cursor), | |
void 0 === s.value && (s.value = n), | |
s.cursor > s.value.length && (s.cursor = -1)), | |
(0, | |
i.invokeMethod)("setKeyboardValue", s) | |
} else | |
n != c && (0, | |
i.invokeMethod)("setKeyboardValue", { | |
value: c + "", | |
cursor: -1, | |
inputId: e.inputId | |
}) | |
} | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(1) | |
, r = n(5) | |
, a = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(r) | |
, i = n(80); | |
(0, | |
o.onMethod)("onMapMarkerClick", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; | |
if (e.data && "function" == typeof a.default.webviewEventCallback) { | |
var n = JSON.parse(e.data); | |
n.bindmarkertap && a.default.webviewEventCallback({ | |
data: { | |
type: "markertap", | |
target: n.target, | |
currentTarget: n.target, | |
timeStamp: Date.now(), | |
touches: [], | |
detail: { | |
markerId: n.markerId | |
}, | |
markerId: n.markerId | |
}, | |
eventName: n.bindmarkertap, | |
webviewId: t, | |
nodeId: n.nodeId | |
}) | |
} | |
}), | |
(0, | |
o.onMethod)("onMapCalloutClick", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; | |
if (e.data && "function" == typeof a.default.webviewEventCallback) { | |
var n = JSON.parse(e.data); | |
n.bindcallouttap && a.default.webviewEventCallback({ | |
data: { | |
type: "callouttap", | |
target: n.target, | |
currentTarget: n.target, | |
timeStamp: Date.now(), | |
touches: [], | |
detail: { | |
markerId: n.markerId | |
}, | |
markerId: n.markerId | |
}, | |
eventName: n.bindcallouttap, | |
webviewId: t, | |
nodeId: n.nodeId | |
}) | |
} | |
}), | |
(0, | |
o.onMethod)("onMapControlClick", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; | |
if (e.data && "function" == typeof a.default.webviewEventCallback) { | |
var n = JSON.parse(e.data); | |
n.bindcontroltap && a.default.webviewEventCallback({ | |
data: { | |
type: "controltap", | |
target: n.target, | |
currentTarget: n.target, | |
timeStamp: Date.now(), | |
touches: [], | |
detail: { | |
controlId: n.controlId | |
}, | |
controlId: n.controlId | |
}, | |
eventName: n.bindcontroltap, | |
webviewId: t, | |
nodeId: n.nodeId | |
}) | |
} | |
}), | |
(0, | |
o.onMethod)("onMapRegionChange", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0 | |
, n = i.mapInfo[t + "_" + e.mapId]; | |
n && n.bindregionchange && "function" == typeof a.default.webviewEventCallback && a.default.webviewEventCallback({ | |
data: { | |
target: n.target, | |
currentTarget: n.target, | |
timeStamp: Date.now(), | |
touches: [], | |
detail: { | |
type: e.type | |
}, | |
type: e.type | |
}, | |
eventName: n.bindregionchange, | |
webviewId: t, | |
nodeId: n.nodeId | |
}) | |
}), | |
(0, | |
o.onMethod)("onMapClick", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0 | |
, n = i.mapInfo[t + "_" + e.mapId]; | |
n && n.bindtap && "function" == typeof a.default.webviewEventCallback && a.default.webviewEventCallback({ | |
data: { | |
type: "tap", | |
target: n.target, | |
currentTarget: n.target, | |
timeStamp: Date.now(), | |
touches: [], | |
detail: {} | |
}, | |
eventName: n.bindtap, | |
webviewId: t, | |
nodeId: n.nodeId | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(5) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, a = n(1) | |
, i = n(139) | |
, u = n(140); | |
["onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onLongPress"].forEach(function(e) { | |
(0, | |
a.onMethod)(e, function(t) { | |
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0 | |
, o = JSON.parse(t.data || "{}") | |
, a = o.canvasNumber | |
, c = o.type; | |
if ("TextView" !== c && "ImageView" !== c) { | |
if (!u.canvasInfo.hasOwnProperty(a)) | |
return void console.error("No such canvas " + a + " register in " + n + ", but trigger " + e + " event."); | |
var s = u.canvasInfo[a].data | |
, l = (0, | |
i.calTouches)(s.lastTouches, e, t) | |
, f = l.touches | |
, d = l.changedTouches; | |
s.lastTouches = f, | |
s[e] && "function" == typeof r.default.webviewEventCallback && ("onTouchMove" === e && 0 === d.length || r.default.webviewEventCallback({ | |
data: { | |
type: i.touchType[e], | |
timeStamp: new Date - s.startTime, | |
target: s.target, | |
touches: f, | |
changedTouches: d | |
}, | |
eventName: s[e], | |
webviewId: n, | |
nodeId: o.nodeId | |
})) | |
} | |
}) | |
}) | |
} | |
, function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var n = function(e, t, n) { | |
var o = [] | |
, r = []; | |
if ("onTouchStart" === t) { | |
for (var a in e) | |
o.push(e[a]); | |
var i = { | |
x: n.touch.x, | |
y: n.touch.y, | |
identifier: n.touch.id | |
}; | |
r.push(i), | |
o.push(i) | |
} else if ("onTouchMove" === t) | |
for (var u in e) { | |
var c = e[u] | |
, s = !1; | |
for (var l in n.touches) { | |
var f = { | |
x: n.touches[l].x, | |
y: n.touches[l].y, | |
identifier: n.touches[l].id | |
}; | |
if (f.identifier === c.identifier && (c.x !== f.x || c.y !== f.y)) { | |
o.push(f), | |
r.push(f), | |
s = !0; | |
break | |
} | |
} | |
s || o.push(c) | |
} | |
else if ("onTouchEnd" === t) { | |
var d = { | |
x: n.touch.x, | |
y: n.touch.y, | |
identifier: n.touch.id | |
}; | |
for (var p in e) { | |
var h = e[p]; | |
h.identifier === d.identifier ? r.push(d) : o.push(h) | |
} | |
} else if ("onTouchCancel" === t) | |
for (var v in n.touches) { | |
var g = { | |
x: n.touches[v].x, | |
y: n.touches[v].y, | |
identifier: n.touches[v].id | |
}; | |
r.push(g) | |
} | |
else if ("onLongPress" === t) { | |
var _ = { | |
x: n.touch.x, | |
y: n.touch.y, | |
identifier: n.touch.id | |
}; | |
for (var y in e) | |
e[y].identifier === _.identifier ? o.push(_) : o.push(e[y]); | |
r.push(_) | |
} | |
return { | |
touches: o, | |
changedTouches: r | |
} | |
} | |
, o = { | |
onTouchStart: "touchstart", | |
onTouchMove: "touchmove", | |
onTouchEnd: "touchend", | |
onTouchCancel: "touchcancel", | |
onLongPress: "longtap" | |
}; | |
t.calTouches = n, | |
t.touchType = o | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(31); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(5) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, a = n(1); | |
["onVideoPlay", "onVideoPause", "onVideoEnded", "onVideoTimeUpdate", "onVideoClickFullScreenBtn", "onVideoClickDanmuBtn", "onVideoFullScreenChange", "onVideoWaiting", "onVideoError", "onVideoLoadedData", "onVideoLoadedMetaData", "onVideoLoadStart", "onVideoSeeked", "onVideoSeeking"].forEach(function(e) { | |
(0, | |
a.onMethod)(e, function() { | |
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, n = arguments[1] | |
, o = "bind" + e.substring(7).toLowerCase() | |
, i = JSON.parse(t.data) | |
, u = i.handlers | |
, c = i.event | |
, s = i.createdTimestamp | |
, l = i.nodeId; | |
if ("onVideoFullScreenChange" === e && (0, | |
a.publish)("videoFullScreenChange", t, [n]), | |
u[o] && "function" == typeof r.default.webviewEventCallback) { | |
var f = { | |
type: o.substring(4), | |
target: c.target, | |
currentTarget: c.currentTarget, | |
timeStamp: (t.timeStamp || Date.now()) - s, | |
detail: {} | |
}; | |
if ("bindtimeupdate" === o && (f.detail = { | |
currentTime: t.position, | |
duration: t.duration | |
}), | |
"bindfullscreenchange" === o) { | |
var d = t.direction; | |
d = 0 === d || 180 === d || "vertical" === d ? "vertical" : "horizontal", | |
f.detail = { | |
fullScreen: t.fullScreen, | |
direction: d | |
} | |
} | |
"binderror" === o && (f.detail = { | |
errMsg: t.errMsg | |
}), | |
r.default.webviewEventCallback({ | |
data: f, | |
eventName: u[o], | |
webviewId: n, | |
nodeId: l | |
}) | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(5) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o); | |
(0, | |
n(1).onMethod)("onScrollViewScroll", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; | |
if (e.data && "function" == typeof r.default.webviewEventCallback) { | |
var n = JSON.parse(e.data); | |
n.bindscroll && r.default.webviewEventCallback({ | |
data: { | |
type: "scroll", | |
target: n.target, | |
currentTarget: n.target, | |
detail: { | |
scrollHeight: e.scrollHeight, | |
scrollWidth: e.scrollWidth, | |
scrollLeft: e.scrollLeft, | |
scrollTop: e.scrollTop | |
}, | |
timeStamp: Date.now() - n.timeStamp | |
}, | |
eventName: n.bindscroll, | |
webviewId: t, | |
nodeId: n.nodeId | |
}) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
var o = n(5) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, a = n(1) | |
, i = n(13); | |
(0, | |
a.onMethod)("onCameraNeedAuthCancel", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0 | |
, n = i.cameraInfo[t + "_" + e.cameraId]; | |
n && n.binderror && "function" == typeof r.default.webviewEventCallback && r.default.webviewEventCallback({ | |
data: { | |
type: "error", | |
target: n.target, | |
currentTarget: n.target, | |
timeStamp: Date.now() - n.createdTimeStamp, | |
detail: { | |
msg: "user cancel auth" | |
} | |
}, | |
eventName: n.binderror, | |
webviewId: t, | |
nodeId: n.nodeId | |
}), | |
n && (n.isCancelAuth = !0) | |
}), | |
(0, | |
a.onMethod)("onCameraStop", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0 | |
, n = i.cameraInfo[t + "_" + e.cameraId]; | |
n && n.bindstop && "function" == typeof r.default.webviewEventCallback && r.default.webviewEventCallback({ | |
data: { | |
type: "stop", | |
target: n.target, | |
currentTarget: n.target, | |
timeStamp: Date.now() - n.createdTimeStamp, | |
detail: {} | |
}, | |
eventName: n.bindstop, | |
webviewId: t, | |
nodeId: n.nodeId | |
}) | |
}), | |
(0, | |
a.onMethod)("onCameraScanCode", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0 | |
, n = i.cameraInfo[t + "_" + e.cameraId]; | |
n && n.bindscancode && "function" == typeof r.default.webviewEventCallback && r.default.webviewEventCallback({ | |
data: { | |
type: "scancode", | |
target: n.target, | |
currentTarget: n.target, | |
timeStamp: Date.now() - n.createdTimeStamp, | |
detail: { | |
type: e.type, | |
result: e.result | |
} | |
}, | |
eventName: n.bindscancode, | |
webviewId: t, | |
nodeId: n.nodeId | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
function r(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function a(e) { | |
m[e] || (m[e] = !0, | |
(0, | |
d.onBeforeUnloadPage)(e, function(e) { | |
delete m[e], | |
Object.keys(y).forEach(function(t) { | |
new RegExp("^" + e).test(t) && delete y[t] | |
}) | |
})) | |
} | |
function i(e, t) { | |
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "" | |
, o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : "" | |
, r = new k(e,t,n,o); | |
return r._getAppStatus = function() { | |
return v.default.appStatus | |
} | |
, | |
r._getHanged = function() { | |
return v.default.hanged | |
} | |
, | |
p.onAppEnterBackground.call(this, function() { | |
r.pause() | |
}), | |
r | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var u = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}(); | |
t.default = i; | |
var c = n(1) | |
, s = n(2) | |
, l = n(14) | |
, f = n(6) | |
, d = n(81) | |
, p = n(16) | |
, h = n(5) | |
, v = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(h) | |
, g = "ios" !== (0, | |
s.getPlatform)() && "android" !== (0, | |
s.getPlatform)() | |
, _ = "android" === (0, | |
s.getPlatform)() | |
, y = {} | |
, b = new l.EventEmitter2 | |
, m = {}; | |
(0, | |
c.subscribe)("videoPlayerInsert", function(e, t) { | |
var n = e.domId | |
, r = e.videoPlayerId | |
, i = e.pluginId | |
, u = e.nodeId | |
, c = t + "_" + i + "_" + n + "_"; | |
u && u !== o.getRootNodeId(t) && (c += u), | |
y[c] = r, | |
b.emit("videoPlayerInsert"), | |
a(t) | |
}), | |
(0, | |
c.subscribe)("videoPlayerRemoved", function(e, t) { | |
var n = e.domId | |
, r = (e.videoPlayerId, | |
e.pluginId) | |
, a = e.nodeId | |
, i = t + "_" + r + "_" + n + "_"; | |
a && a !== o.getRootNodeId(t) && (i += a), | |
delete y[i] | |
}); | |
var w = new WeakMap | |
, k = function() { | |
function e(t, n, o, a) { | |
if (r(this, e), | |
"string" != typeof t) | |
throw new s.ThirdScriptError("Parameter 1 should be a string"); | |
this.domId = t, | |
this.webviewId = n, | |
this.pluginId = a, | |
this.nodeId = o | |
} | |
return u(e, [{ | |
key: "play", | |
value: function() { | |
var e = this._getAppStatus(); | |
e === f.AppStatus.BACK_GROUND || e === f.AppStatus.LOCK || this._invokeMethod("play") | |
} | |
}, { | |
key: "pause", | |
value: function() { | |
this._invokeMethod("pause") | |
} | |
}, { | |
key: "stop", | |
value: function() { | |
this._invokeMethod("stop") | |
} | |
}, { | |
key: "seek", | |
value: function(e) { | |
this._invokeMethod("seek", [e]) | |
} | |
}, { | |
key: "sendDanmu", | |
value: function(e) { | |
var t = e.text | |
, n = e.color; | |
this._invokeMethod("sendDanmu", [t, n]) | |
} | |
}, { | |
key: "playbackRate", | |
value: function(e) { | |
.5 !== (e = parseFloat(e.toFixed(2))) && .8 !== e && 1 !== e && 1.25 !== e && 1.5 !== e || this._invokeMethod("playbackRate", [e]) | |
} | |
}, { | |
key: "requestFullScreen", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = e.direction; | |
[0, 90, -90].indexOf(t) > -1 ? this._invokeMethod("requestFullScreen", [t]) : this._invokeMethod("requestFullScreen"), | |
w.set(this, !0) | |
} | |
}, { | |
key: "exitFullScreen", | |
value: function() { | |
this._invokeMethod("exitFullScreen"), | |
this.showStatusBar(), | |
w.set(this, !1) | |
} | |
}, { | |
key: "showStatusBar", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
c.invokeMethod)("showStatusBar", e) | |
} | |
}, { | |
key: "hideStatusBar", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if (_) { | |
return "function" == typeof e.success && e.success({ | |
errMsg: "hideStatusBar:ok" | |
}), | |
void ("function" == typeof e.complete && e.complete({ | |
errMsg: "hideStatusBar:ok" | |
})) | |
} | |
if (!w.get(this)) { | |
var t = "hideStatusBar:fail cannot be invoked but in fullscreen."; | |
return "function" == typeof e.fail && e.fail({ | |
errMsg: t | |
}), | |
void ("function" == typeof e.complete && e.complete({ | |
errMsg: t | |
})) | |
} | |
(0, | |
c.invokeMethod)("hideStatusBar", e) | |
} | |
}, { | |
key: "_invokeMethod", | |
value: function(e, t) { | |
function n() { | |
g ? (this.action = { | |
method: e, | |
data: t | |
}, | |
this._sendAction(y[r])) : (0, | |
c.invokeMethod)("operateVideoPlayer", { | |
data: t, | |
videoPlayerId: y[r], | |
type: e | |
}) | |
} | |
var o = this | |
, r = this.webviewId + "_" + this.pluginId + "_" + this.domId + "_" + this.nodeId; | |
"number" == typeof y[r] ? n.apply(this) : b.once("videoPlayerInsert", function() { | |
o._invokeMethod(e, t) | |
}) | |
} | |
}, { | |
key: "_sendAction", | |
value: function(e) { | |
(0, | |
c.publish)("video_" + this.pluginId + "_" + this.domId + "_" + e + "_" + this.nodeId + "_actionChanged", this.action, [this.webviewId]) | |
} | |
}]), | |
e | |
}() | |
} | |
, function(e, t, n) { | |
function r(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function a(e) { | |
y[e] || (y[e] = !0, | |
(0, | |
d.onBeforeUnloadPage)(e, function(e) { | |
delete y[e], | |
Object.keys(g).forEach(function(t) { | |
new RegExp("^" + e).test(t) && delete g[t] | |
}) | |
})) | |
} | |
function i(e, t) { | |
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "" | |
, o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : "" | |
, r = new b(e,t,n,o); | |
return r._getAppStatus = function() { | |
return v.default.appStatus | |
} | |
, | |
r._getHanged = function() { | |
return v.default.hanged | |
} | |
, | |
p.onAppEnterBackground.call(this, function() { | |
r.pause() | |
}), | |
r | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var u = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}(); | |
t.default = i; | |
var c = n(1) | |
, s = n(2) | |
, l = n(14) | |
, f = n(6) | |
, d = n(81) | |
, p = n(16) | |
, h = n(5) | |
, v = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(h) | |
, g = {} | |
, _ = new l.EventEmitter2 | |
, y = {}; | |
(0, | |
c.subscribe)("audioInsert", function(e, t) { | |
var n = e.audioId | |
, r = e.pluginId | |
, i = e.nodeId | |
, u = t + "_" + r + "_" + n + "_"; | |
i && i !== o.getRootNodeId(t) && (u += i), | |
g[u] = !0, | |
_.emit("audioInsert_" + u), | |
a(t) | |
}), | |
(0, | |
c.subscribe)("audioRemove", function(e, t) { | |
var n = e.audioId | |
, r = e.pluginId | |
, a = e.nodeId | |
, i = t + "_" + r + "_" + n + "_"; | |
a && a !== o.getRootNodeId(t) && (i += a), | |
delete g[i] | |
}); | |
var b = function() { | |
function e(t, n, o, a) { | |
if (r(this, e), | |
"string" != typeof t) | |
throw new s.ThirdScriptError("Parameter 1 should be a string"); | |
this.audioId = t, | |
this.webviewId = n, | |
this.pluginId = a, | |
this.nodeId = o | |
} | |
return u(e, [{ | |
key: "setSrc", | |
value: function(e) { | |
this._sendAction({ | |
method: "setSrc", | |
data: e | |
}) | |
} | |
}, { | |
key: "play", | |
value: function() { | |
var e = this._getAppStatus(); | |
this._getHanged(); | |
e === f.AppStatus.BACK_GROUND || this._sendAction({ | |
method: "play" | |
}) | |
} | |
}, { | |
key: "pause", | |
value: function() { | |
this._sendAction({ | |
method: "pause" | |
}) | |
} | |
}, { | |
key: "seek", | |
value: function(e) { | |
this._sendAction({ | |
method: "setCurrentTime", | |
data: e | |
}) | |
} | |
}, { | |
key: "_ready", | |
value: function(e) { | |
var t = this.webviewId + "_" + this.pluginId + "_" + this.audioId + "_" + this.nodeId; | |
g[t] ? e() : _.on("audioInsert_" + t, function() { | |
e() | |
}) | |
} | |
}, { | |
key: "_sendAction", | |
value: function(e) { | |
var t = this; | |
this._ready(function() { | |
(0, | |
c.publish)("audio_" + t.pluginId + "_" + t.audioId + "_" + t.nodeId + "_actionChanged", e, [t.webviewId]) | |
}) | |
} | |
}]), | |
e | |
}() | |
} | |
, function(e, t, n) { | |
var o = n(1) | |
, r = n(2) | |
, a = n(6) | |
, i = n(3) | |
, u = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(i); | |
if ("devtools" !== (0, | |
r.getPlatform)() && !u.default.karmaTest) { | |
var c = [] | |
, s = [] | |
, l = !1 | |
, f = ["log", "warn", "error", "info", "debug"] | |
, d = {}; | |
f.forEach(function(e) { | |
d[e] = console[e], | |
console[e] = function() { | |
c.length > a.LOG_LIMIT && c.shift(); | |
var t = Array.prototype.slice.call(arguments); | |
c.push({ | |
method: e, | |
log: t | |
}), | |
d[e].apply(console, arguments), | |
l && s.length > 0 && (0, | |
o.publish)(e, { | |
log: t | |
}, s) | |
} | |
}), | |
(0, | |
o.subscribe)("GenerateFuncReady", function(e, t) { | |
s.push(t), | |
l && (0, | |
o.publish)("initLogs", { | |
logs: c | |
}, [t]) | |
}), | |
(0, | |
o.subscribe)("webviewClearLog", function(e, t) { | |
var n = s.filter(function(e) { | |
return e !== t | |
}); | |
(0, | |
o.publish)("serviceClearLog", { | |
triggerWebViewId: t | |
}, n), | |
c.length = 0 | |
}), | |
u.default.onReady(function() { | |
u.default.debug ? (l = !0, | |
s.length > 0 && (0, | |
o.publish)("initLogs", { | |
logs: c | |
}, s)) : f.forEach(function(e) { | |
console[e] = d[e].bind(console) | |
}) | |
}) | |
} | |
void 0 === console.group && (console.group = function() {} | |
), | |
void 0 === console.groupEnd && (console.groupEnd = function() {} | |
) | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function r() { | |
(0, | |
d.invokeMethod)("getClipboardData", { | |
success: function(e) { | |
u.default.currentClipBoardData = e.data | |
} | |
}) | |
} | |
var a = n(16) | |
, i = n(5) | |
, u = o(i) | |
, c = n(3) | |
, s = o(c) | |
, l = n(148) | |
, f = n(157) | |
, d = n(1); | |
l.clipboard.getClipboardData; | |
s.default.onReady(r), | |
(0, | |
a.onAppEnterForeground)(r), | |
(0, | |
a.onAppEnterBackground)(function() { | |
(0, | |
d.invokeMethod)("getClipboardData", { | |
success: function(e) { | |
e.data !== u.default.currentClipBoardData && (u.default.currentClipBoardData = e.data, | |
(0, | |
f.reportClipBoardData)(!1)) | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
function o(e) { | |
if (e && e.__esModule) | |
return e; | |
var t = {}; | |
if (null != e) | |
for (var n in e) | |
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); | |
return t.default = e, | |
t | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.nfc = t.wifi = t.bluetooth = t.contact = t.vibrate = t.screen = t.iBeacon = t.clipboard = t.scan = t.phone = t.compass = t.accelerometer = t.network = t.batteryInfo = t.systemInfo = void 0; | |
var r = n(149) | |
, a = o(r) | |
, i = n(151) | |
, u = o(i) | |
, c = n(105) | |
, s = o(c) | |
, l = n(152) | |
, f = o(l) | |
, d = n(153) | |
, p = o(d) | |
, h = n(154) | |
, v = o(h) | |
, g = n(155) | |
, _ = o(g) | |
, y = n(156) | |
, b = o(y) | |
, m = n(158) | |
, w = o(m) | |
, k = n(159) | |
, S = o(k) | |
, C = n(165) | |
, P = o(C) | |
, M = n(166) | |
, I = o(M) | |
, O = n(167) | |
, T = o(O) | |
, E = n(188) | |
, x = o(E) | |
, A = n(199) | |
, j = o(A); | |
t.systemInfo = a, | |
t.batteryInfo = u, | |
t.network = s, | |
t.accelerometer = f, | |
t.compass = p, | |
t.phone = v, | |
t.scan = _, | |
t.clipboard = b, | |
t.iBeacon = w, | |
t.screen = S, | |
t.vibrate = P, | |
t.contact = I, | |
t.bluetooth = T, | |
t.wifi = x, | |
t.nfc = j | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getSystemInfoSync = t.getSystemInfo = void 0; | |
var r = n(1) | |
, a = n(2) | |
, i = n(150) | |
, u = o(i) | |
, c = n(3) | |
, s = o(c) | |
, l = function(e) { | |
var t = (0, | |
a.getPlatform)(); | |
(0, | |
r.invokeMethod)("getSystemInfo", e, { | |
beforeSuccess: function(e) { | |
"ios" === t && (e.brand = "iPhone"), | |
"devtools" === t && "devtools" !== e.brand && (t = "iPhone" === e.brand ? "ios" : "android"), | |
e.platform = t, | |
e.SDKVersion = u.default.SDKVersion, | |
s.default.devicePixelRatio && (e.devicePixelRatio = s.default.devicePixelRatio) | |
} | |
}) | |
} | |
, f = function() { | |
var e = {}; | |
return l({ | |
success: function(t) { | |
delete t.errMsg, | |
e = t | |
} | |
}), | |
e | |
}; | |
t.getSystemInfo = l, | |
t.getSystemInfoSync = f | |
} | |
, function(e, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.default = { | |
SDKVersion: "2.2.1" | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getBatteryInfoSync = t.getBatteryInfo = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = (n(149), | |
(0, | |
r.getPlatform)()) | |
, i = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ("ios" === a) | |
return (0, | |
o.invokeMethod)("getBatteryInfo", e); | |
setTimeout(function() { | |
var t = {}; | |
try { | |
t = u(), | |
"function" == typeof e.success && e.success(t) | |
} catch (t) { | |
"function" == typeof e.fail && e.fail(t) | |
} | |
"function" == typeof e.complete && e.complete(t) | |
}, 0) | |
} | |
, u = function() { | |
var e = (arguments.length > 0 && void 0 !== arguments[0] && arguments[0], | |
{ | |
level: 100, | |
isCharging: !0 | |
}); | |
if ((0, | |
o.invokeMethod)("getBatteryInfo", { | |
complete: function(t) { | |
return e = t | |
} | |
}), | |
e.errMsg = e.errMsg ? e.errMsg.replace("getBatteryInfo", "getBatteryInfoSync") : "getBatteryInfoSync:ok", | |
/fail/.test(e.errMsg)) | |
throw new Error(e.errMsg); | |
return e | |
}; | |
t.getBatteryInfo = i, | |
t.getBatteryInfoSync = u | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onAccelerometerChange = t.stopAccelerometer = t.startAccelerometer = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = !1 | |
, i = [] | |
, u = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = { | |
fast: 0, | |
game: 20, | |
ui: 60, | |
normal: 200 | |
} | |
, n = void 0 !== t[e.interval] ? t[e.interval] : t.normal | |
, i = (0, | |
r.assign)(e, { | |
interval: n, | |
enable: !0 | |
}); | |
(0, | |
o.invokeMethod)("enableAccelerometer", i, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("enableAccelerometer", "startAccelerometer") | |
} | |
}), | |
a = !0 | |
} | |
, c = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("enableAccelerometer", (0, | |
r.assign)(e, { | |
enable: !1 | |
}), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("enableAccelerometer", "stopAccelerometer") | |
} | |
}), | |
a = !1 | |
} | |
, s = function(e) { | |
a || ((0, | |
o.invokeMethod)("enableAccelerometer", { | |
enable: !0 | |
}), | |
a = !0), | |
i.push(Reporter.surroundThirdByTryCatch(e, "at onAccelerometerChange callback function")) | |
}; | |
(0, | |
o.onMethod)("onAccelerometerChange", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; | |
i.forEach(function(t) { | |
"function" == typeof t && t(e) | |
}) | |
}), | |
t.startAccelerometer = u, | |
t.stopAccelerometer = c, | |
t.onAccelerometerChange = s | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onCompassChange = t.stopCompass = t.startCompass = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = !1 | |
, i = [] | |
, u = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("enableCompass", (0, | |
r.assign)(e, { | |
enable: !0 | |
}), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("enableCompass", "startCompass") | |
} | |
}), | |
a = !0 | |
} | |
, c = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("enableCompass", (0, | |
r.assign)(e, { | |
enable: !1 | |
}), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("enableCompass", "stopCompass") | |
} | |
}), | |
a = !1 | |
} | |
, s = function(e) { | |
a || ((0, | |
o.invokeMethod)("enableCompass", { | |
enable: !0 | |
}), | |
a = !0), | |
i.push(Reporter.surroundThirdByTryCatch(e, "at onCompassChange callback function")) | |
}; | |
(0, | |
o.onMethod)("onCompassChange", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; | |
i.forEach(function(t) { | |
"function" == typeof t && t(e) | |
}) | |
}), | |
t.startCompass = u, | |
t.stopCompass = c, | |
t.onCompassChange = s | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.makeVoIPCall = t.makePhoneCall = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("makePhoneCall", e, { | |
phoneNumber: "" | |
}) && (0, | |
o.invokeMethod)("makePhoneCall", e) | |
} | |
, i = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("makeVoIPCall", (0, | |
r.assign)({ | |
allowBackCamera: !1, | |
showOther: !1 | |
}, e)) | |
}; | |
t.makePhoneCall = a, | |
t.makeVoIPCall = i | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.openQRCode = t.scanCode = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("scanCode", e, {}) && (0, | |
o.invokeMethod)("scanCode", e, { | |
beforeSuccess: function(e) { | |
"string" == typeof e.path && (e.path = e.path.replace(/\.html$/, ""), | |
e.path = e.path.replace(/\.html\?/, "?")) | |
} | |
}) | |
} | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("openQRCode", e, {}) && (0, | |
o.invokeMethod)("openQRCode", e) | |
}; | |
t.scanCode = r, | |
t.openQRCode = a | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.setClipboardData = t.getClipboardData = void 0; | |
var r = n(1) | |
, a = n(157) | |
, i = n(5) | |
, u = o(i) | |
, c = n(3) | |
, s = o(c) | |
, l = s.default.accountInfo ? s.default.accountInfo : {}; | |
s.default.onReady(function() { | |
l = s.default.accountInfo | |
}); | |
var f = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
r.invokeMethod)("getClipboardData", Object.assign({}, e, { | |
success: function(t) { | |
var n = t.data; | |
(0, | |
r.beforeInvokeCallback)("getClipboardData", e, !0, "", null, { | |
data: n | |
}) | |
}, | |
complete: function() {} | |
}), {}) | |
} | |
, d = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
r.beforeInvoke)("setClipboardData", e, { | |
data: "" | |
}) && (0, | |
r.invokeMethod)("setClipboardData", e, { | |
beforeSuccess: function() { | |
(0, | |
r.invokeMethod)("showToast", { | |
duration: 1500, | |
title: "内容已复制", | |
icon: "none", | |
mask: !1 | |
}); | |
try { | |
u.default.currentClipBoardData = e.data, | |
(0, | |
a.reportClipBoardData)(!0) | |
} catch (e) {} | |
} | |
}) | |
}; | |
t.getClipboardData = f, | |
t.setClipboardData = d | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.reportClipBoardData = void 0; | |
var o = (n(1), | |
n(5)) | |
, a = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, i = function(e) { | |
if ("" !== a.default.currentClipBoardData) { | |
var t = void 0; | |
void 0 !== r && (t = r.getCurrentPagesByDomain("").find(function(e) { | |
return e.__wxWebviewId__ === a.default.currentWebviewId | |
}) || {}); | |
var n = [a.default.currentClipBoardData, t ? t.route : "", e ? 1 : 0, t ? Object.keys(t.options).map(function(e) { | |
return encodeURIComponent(e) + "=" + encodeURIComponent(t.options[e]) | |
}).join("&") : "", Reporter.getAppType()].map(encodeURIComponent).join(","); | |
Reporter.reportKeyValue({ | |
key: "Clipboard", | |
value: n, | |
force: !0 | |
}) | |
} | |
}; | |
t.reportClipBoardData = i | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onBeaconServiceChange = t.onBeaconUpdate = t.getBeacons = t.stopBeaconDiscovery = t.startBeaconDiscovery = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if (!e.uuids) | |
return void (0, | |
o.beforeInvokeFail)("startBeaconDiscovery", e, "must have uuid"); | |
if (!Array.isArray(e.uuids)) | |
return void (0, | |
o.beforeInvokeFail)("startBeaconDiscovery", e, "uuid must be an Array"); | |
if (0 !== e.uuids.length) { | |
var t = new RegExp(/^[0-9a-f]{4}$|^[0-9a-f]{8}$|^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i); | |
if (!e.uuids.some(function(e) { | |
return "string" == typeof e && t.test(e) | |
})) | |
return void (0, | |
o.beforeInvokeFail)("startBeaconDiscovery", e, "invalid service uuid") | |
} | |
(0, | |
o.invokeMethod)("startBeaconDiscovery", e) | |
} | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("stopBeaconDiscovery", e) | |
} | |
, i = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("getBeacons", e) | |
} | |
, u = function(e) { | |
(0, | |
o.beforeInvoke)("onBeaconUpdate", e, o.noop) && (0, | |
o.onMethod)("onBeaconUpdated", Reporter.surroundThirdByTryCatch(e, "at onBeaconUpdate callback function")) | |
} | |
, c = function(e) { | |
(0, | |
o.beforeInvoke)("onBeaconServiceChange", e, o.noop) && (0, | |
o.onMethod)("onBeaconServiceChanged", Reporter.surroundThirdByTryCatch(e, "at onBeaconServiceChange callback function")) | |
}; | |
t.startBeaconDiscovery = r, | |
t.stopBeaconDiscovery = a, | |
t.getBeacons = i, | |
t.onBeaconUpdate = u, | |
t.onBeaconServiceChange = c | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(160); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}); | |
var r = n(161); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}); | |
var a = n(162); | |
Object.keys(a).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return a[e] | |
} | |
}) | |
}); | |
var i = n(163); | |
Object.keys(i).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return i[e] | |
} | |
}) | |
}); | |
var u = n(164); | |
Object.keys(u).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return u[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.captureScreen = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("captureScreen", e, {}) | |
}; | |
t.captureScreen = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onUserCaptureScreen = void 0; | |
var o = n(1) | |
, r = function(e) { | |
(0, | |
o.onMethod)("onUserCaptureScreen", Reporter.surroundThirdByTryCatch(e, "at onUserCaptureScreen callback function")) | |
}; | |
t.onUserCaptureScreen = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getScreenBrightness = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("getScreenBrightness", e, {}) | |
}; | |
t.getScreenBrightness = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.setScreenBrightness = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("setScreenBrightness", e, {}) | |
}; | |
t.setScreenBrightness = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.setKeepScreenOn = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("setKeepScreenOn", e, { | |
keepScreenOn: !0 | |
}) && (0, | |
o.invokeMethod)("setKeepScreenOn", e, {}) | |
}; | |
t.setKeepScreenOn = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.vibrateLong = t.vibrateShort = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("vibrateShort", e, {}) | |
} | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("vibrateLong", e, {}) | |
}; | |
t.vibrateShort = r, | |
t.vibrateLong = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.addPhoneContact = t.chooseWeChatContact = t.chooseContact = void 0; | |
var o = n(1) | |
, r = function(e) { | |
(0, | |
o.invokeMethod)("chooseContact", e) | |
} | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("chooseWeChatContact", e) | |
} | |
, i = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("addPhoneContact", e, {}) | |
}; | |
t.chooseContact = r, | |
t.chooseWeChatContact = a, | |
t.addPhoneContact = i | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(168); | |
Object.defineProperty(t, "openBluetoothAdapter", { | |
enumerable: !0, | |
get: function() { | |
return o.openBluetoothAdapter | |
} | |
}); | |
var r = n(169); | |
Object.defineProperty(t, "closeBluetoothAdapter", { | |
enumerable: !0, | |
get: function() { | |
return r.closeBluetoothAdapter | |
} | |
}); | |
var a = n(170); | |
Object.defineProperty(t, "getBluetoothAdapterState", { | |
enumerable: !0, | |
get: function() { | |
return a.getBluetoothAdapterState | |
} | |
}); | |
var i = n(171); | |
Object.defineProperty(t, "onBluetoothAdapterStateChange", { | |
enumerable: !0, | |
get: function() { | |
return i.onBluetoothAdapterStateChange | |
} | |
}); | |
var u = n(172); | |
Object.defineProperty(t, "startBluetoothDevicesDiscovery", { | |
enumerable: !0, | |
get: function() { | |
return u.startBluetoothDevicesDiscovery | |
} | |
}); | |
var c = n(173); | |
Object.defineProperty(t, "stopBluetoothDevicesDiscovery", { | |
enumerable: !0, | |
get: function() { | |
return c.stopBluetoothDevicesDiscovery | |
} | |
}); | |
var s = n(174); | |
Object.defineProperty(t, "getBluetoothDevices", { | |
enumerable: !0, | |
get: function() { | |
return s.getBluetoothDevices | |
} | |
}); | |
var l = n(175); | |
Object.defineProperty(t, "getConnectedBluetoothDevices", { | |
enumerable: !0, | |
get: function() { | |
return l.getConnectedBluetoothDevices | |
} | |
}); | |
var f = n(176); | |
Object.defineProperty(t, "createBLEConnection", { | |
enumerable: !0, | |
get: function() { | |
return f.createBLEConnection | |
} | |
}); | |
var d = n(177); | |
Object.defineProperty(t, "closeBLEConnection", { | |
enumerable: !0, | |
get: function() { | |
return d.closeBLEConnection | |
} | |
}); | |
var p = n(178); | |
Object.defineProperty(t, "getBLEDeviceServices", { | |
enumerable: !0, | |
get: function() { | |
return p.getBLEDeviceServices | |
} | |
}); | |
var h = n(179); | |
Object.defineProperty(t, "getBLEDeviceCharacteristics", { | |
enumerable: !0, | |
get: function() { | |
return h.getBLEDeviceCharacteristics | |
} | |
}); | |
var v = n(180); | |
Object.defineProperty(t, "notifyBLECharacteristicValueChanged", { | |
enumerable: !0, | |
get: function() { | |
return v.notifyBLECharacteristicValueChanged | |
} | |
}); | |
var g = n(181); | |
Object.defineProperty(t, "notifyBLECharacteristicValueChange", { | |
enumerable: !0, | |
get: function() { | |
return g.notifyBLECharacteristicValueChange | |
} | |
}); | |
var _ = n(182); | |
Object.defineProperty(t, "onBluetoothDeviceFound", { | |
enumerable: !0, | |
get: function() { | |
return _.onBluetoothDeviceFound | |
} | |
}); | |
var y = n(183); | |
Object.defineProperty(t, "readBLECharacteristicValue", { | |
enumerable: !0, | |
get: function() { | |
return y.readBLECharacteristicValue | |
} | |
}); | |
var b = n(184); | |
Object.defineProperty(t, "writeBLECharacteristicValue", { | |
enumerable: !0, | |
get: function() { | |
return b.writeBLECharacteristicValue | |
} | |
}); | |
var m = n(185); | |
Object.defineProperty(t, "onBLEConnectionStateChanged", { | |
enumerable: !0, | |
get: function() { | |
return m.onBLEConnectionStateChanged | |
} | |
}); | |
var w = n(186); | |
Object.defineProperty(t, "onBLEConnectionStateChange", { | |
enumerable: !0, | |
get: function() { | |
return w.onBLEConnectionStateChange | |
} | |
}); | |
var k = n(187); | |
Object.defineProperty(t, "onBLECharacteristicValueChange", { | |
enumerable: !0, | |
get: function() { | |
return k.onBLECharacteristicValueChange | |
} | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.openBluetoothAdapter = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("openBluetoothAdapter", e, {}) | |
}; | |
t.openBluetoothAdapter = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.closeBluetoothAdapter = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("closeBluetoothAdapter", e, {}) | |
}; | |
t.closeBluetoothAdapter = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getBluetoothAdapterState = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("getBluetoothAdapterState", e, {}) | |
}; | |
t.getBluetoothAdapterState = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onBluetoothAdapterStateChange = void 0; | |
var o = n(1) | |
, r = function(e) { | |
(0, | |
o.onMethod)("onBluetoothAdapterStateChange", Reporter.surroundThirdByTryCatch(e, "at onBluetoothAdapterStateChange callback function")) | |
}; | |
t.onBluetoothAdapterStateChange = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.startBluetoothDevicesDiscovery = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if (e.services) { | |
if (!Array.isArray(e.services)) | |
return void (0, | |
o.beforeInvokeFail)("startBluetoothDevicesDiscovery", {}, "services must be an Array"); | |
if (0 !== e.services.length) { | |
var t = new RegExp(/^[0-9a-f]{4}$|^[0-9a-f]{8}$|^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i); | |
if (!e.services.some(function(e) { | |
return "string" == typeof e && t.test(e) | |
})) | |
return void (0, | |
o.beforeInvokeFail)("startBluetoothDevicesDiscovery", {}, "invalid service uuid"); | |
e.services = e.services.map(function(e) { | |
return "android" === (0, | |
r.getPlatform)() && (e = e.toUpperCase()), | |
4 === e.length ? "0000" + e + "-0000-1000-8000-00805F9B34FB" : 8 === e.length ? e + "-0000-1000-8000-00805F9B34FB" : e | |
}) | |
} | |
} | |
(0, | |
o.invokeMethod)("startBluetoothDevicesDiscovery", e, {}) | |
}; | |
t.startBluetoothDevicesDiscovery = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.stopBluetoothDevicesDiscovery = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("stopBluetoothDevicesDiscovery", e, {}) | |
}; | |
t.stopBluetoothDevicesDiscovery = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getBluetoothDevices = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("getBluetoothDevices", e, { | |
beforeSuccess: function(e) { | |
Array.isArray(e.devices) || (e.devices = []), | |
e.devices.map(function(e) { | |
if (e.name || (e.name = "未知设备"), | |
e.advertisData && (e.advertisData = (0, | |
r.base64ToArrayBuffer)(e.advertisData)), | |
e.serviceData) { | |
var t = e.serviceData; | |
Object.keys(t).forEach(function(e) { | |
t[e] && (t[e] = (0, | |
r.base64ToArrayBuffer)(t[e])) | |
}) | |
} | |
return e | |
}) | |
} | |
}) | |
}; | |
t.getBluetoothDevices = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getConnectedBluetoothDevices = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if (e.services) { | |
if (!Array.isArray(e.services)) | |
return void (0, | |
o.beforeInvokeFail)("getConnectedBluetoothDevices", e, "services must be an Array"); | |
if (0 !== e.services.length) { | |
var t = new RegExp(/^[0-9a-f]{4}$|^[0-9a-f]{8}$|^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i); | |
if (!e.services.some(function(e) { | |
return "string" == typeof e && t.test(e) | |
})) | |
return void (0, | |
o.beforeInvokeFail)("getConnectedBluetoothDevices", {}, "invalid service uuid"); | |
e.services = e.services.map(function(e) { | |
return console.warn((0, | |
r.getPlatform)()), | |
"android" === (0, | |
r.getPlatform)() && (e = e.toUpperCase()), | |
4 === e.length ? "0000" + e + "-0000-1000-8000-00805F9B34FB" : 8 === e.length ? e + "-0000-1000-8000-00805F9B34FB" : e | |
}) | |
} | |
} | |
(0, | |
o.invokeMethod)("getConnectedBluetoothDevices", e, { | |
beforeSuccess: function(e) { | |
Array.isArray(e.devices) || (e.devices = []), | |
e.devices = e.devices.map(function(e) { | |
return e.name || (e.name = "未知设备"), | |
e.advertisData && (e.advertisData = (0, | |
r.base64ToArrayBuffer)(e.advertisData)), | |
e | |
}) | |
} | |
}) | |
}; | |
t.getConnectedBluetoothDevices = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.createBLEConnection = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("createBLEConnection", e, { | |
deviceId: "" | |
}) && (0, | |
o.invokeMethod)("createBLEConnection", e, {}) | |
}; | |
t.createBLEConnection = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.closeBLEConnection = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("closeBLEConnection", e, { | |
deviceId: "" | |
}) && (0, | |
o.invokeMethod)("closeBLEConnection", e, {}) | |
}; | |
t.closeBLEConnection = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getBLEDeviceServices = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("getBLEDeviceServices", e, { | |
deviceId: "" | |
}) && (0, | |
o.invokeMethod)("getBLEDeviceServices", e, { | |
beforeSuccess: function(e) { | |
Array.isArray(e.services) || (e.services = []), | |
void 0 === e.errCode && (e.errCode = 0) | |
} | |
}) | |
}; | |
t.getBLEDeviceServices = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getBLEDeviceCharacteristics = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("getBLEDeviceCharacteristics", e, { | |
deviceId: "", | |
serviceId: "" | |
}) && (0, | |
o.invokeMethod)("getBLEDeviceCharacteristics", Object.assign({}, e, { | |
serviceId: "android" === (0, | |
r.getPlatform)() ? e.serviceId.toUpperCase() : e.serviceId | |
}), { | |
beforeSuccess: function(e) { | |
Array.isArray(e.characteristics) || (e.characteristics = []) | |
} | |
}) | |
}; | |
t.getBLEDeviceCharacteristics = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.notifyBLECharacteristicValueChanged = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
o.beforeInvoke)("notifyBLECharacteristicValueChanged", e, { | |
state: !0, | |
deviceId: "", | |
serviceId: "", | |
characteristicId: "" | |
})) { | |
var t = "android" === (0, | |
r.getPlatform)(); | |
(0, | |
o.invokeMethod)("notifyBLECharacteristicValueChanged", Object.assign({}, e, { | |
serviceId: t ? e.serviceId.toUpperCase() : e.serviceId, | |
characteristicId: t ? e.characteristicId.toUpperCase() : e.characteristicId | |
}), {}) | |
} | |
}; | |
t.notifyBLECharacteristicValueChanged = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.notifyBLECharacteristicValueChange = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
o.beforeInvoke)("notifyBLECharacteristicValueChange", e, { | |
state: !0, | |
deviceId: "", | |
serviceId: "", | |
characteristicId: "" | |
})) { | |
var t = "android" === (0, | |
r.getPlatform)(); | |
(0, | |
o.invokeMethod)("notifyBLECharacteristicValueChanged", Object.assign({}, e, { | |
serviceId: t ? e.serviceId.toUpperCase() : e.serviceId, | |
characteristicId: t ? e.characteristicId.toUpperCase() : e.characteristicId | |
}), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("notifyBLECharacteristicValueChanged", "notifyBLECharacteristicValueChange") | |
} | |
}) | |
} | |
}; | |
t.notifyBLECharacteristicValueChange = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onBluetoothDeviceFound = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function(e) { | |
(0, | |
o.onMethod)("onBluetoothDeviceFound", function() { | |
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, n = []; | |
Array.isArray(t.devices) ? n = t.devices : n.push(t), | |
n = n.map(function(e) { | |
try { | |
e.advertisData = (0, | |
r.base64ToArrayBuffer)(e.advertisData) | |
} catch (e) {} | |
try { | |
var t = e.serviceData || {}; | |
Object.keys(t).forEach(function(e) { | |
t[e] && (t[e] = (0, | |
r.base64ToArrayBuffer)(t[e])) | |
}) | |
} catch (e) {} | |
return e | |
}), | |
Reporter.surroundThirdByTryCatch(e, "at onBluetoothDeviceFound callback function")({ | |
devices: n | |
}) | |
}) | |
}; | |
t.onBluetoothDeviceFound = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.readBLECharacteristicValue = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
o.beforeInvoke)("readBLECharacteristicValue", e, { | |
deviceId: "", | |
serviceId: "", | |
characteristicId: "" | |
})) { | |
var t = "android" === (0, | |
r.getPlatform)(); | |
(0, | |
o.invokeMethod)("readBLECharacteristicValue", Object.assign({}, e, { | |
serviceId: t ? e.serviceId.toUpperCase() : e.serviceId, | |
characteristicId: t ? e.characteristicId.toUpperCase() : e.characteristicId | |
}), {}) | |
} | |
}; | |
t.readBLECharacteristicValue = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.writeBLECharacteristicValue = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("writeBLECharacteristicValue", e, { | |
value: new ArrayBuffer(0), | |
deviceId: "", | |
serviceId: "", | |
characteristicId: "" | |
}) && (0, | |
o.invokeMethod)("writeBLECharacteristicValue", Object.assign({}, e, { | |
value: (0, | |
r.arrayBufferToBase64)(e.value), | |
serviceId: e.serviceId.toUpperCase(), | |
characteristicId: "android" === (0, | |
r.getPlatform)() ? e.characteristicId.toUpperCase() : e.characteristicId | |
}), {}) | |
}; | |
t.writeBLECharacteristicValue = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onBLEConnectionStateChanged = void 0; | |
var o = n(1) | |
, r = function(e) { | |
(0, | |
o.onMethod)("onBLEConnectionStateChanged", Reporter.surroundThirdByTryCatch(e, "at onBLEConnectionStateChanged callback function")) | |
}; | |
t.onBLEConnectionStateChanged = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onBLEConnectionStateChange = void 0; | |
var o = n(1) | |
, r = function(e) { | |
(0, | |
o.onMethod)("onBLEConnectionStateChanged", Reporter.surroundThirdByTryCatch(e, "at onBLEConnectionStateChange callback function")) | |
}; | |
t.onBLEConnectionStateChange = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onBLECharacteristicValueChange = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function(e) { | |
(0, | |
o.onMethod)("onBLECharacteristicValueChange", function() { | |
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
"string" == typeof t.value && (t.value = (0, | |
r.base64ToArrayBuffer)(t.value)), | |
Reporter.surroundThirdByTryCatch(e, "at onBLECharacteristicValueChange callback function")(t) | |
}) | |
}; | |
t.onBLECharacteristicValueChange = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(189); | |
Object.defineProperty(t, "startWifi", { | |
enumerable: !0, | |
get: function() { | |
return o.startWifi | |
} | |
}); | |
var r = n(190); | |
Object.defineProperty(t, "stopWifi", { | |
enumerable: !0, | |
get: function() { | |
return r.stopWifi | |
} | |
}); | |
var a = n(191); | |
Object.defineProperty(t, "getWifiList", { | |
enumerable: !0, | |
get: function() { | |
return a.getWifiList | |
} | |
}); | |
var i = n(192); | |
Object.defineProperty(t, "getConnectedWifi", { | |
enumerable: !0, | |
get: function() { | |
return i.getConnectedWifi | |
} | |
}); | |
var u = n(193); | |
Object.defineProperty(t, "connectWifi", { | |
enumerable: !0, | |
get: function() { | |
return u.connectWifi | |
} | |
}); | |
var c = n(194); | |
Object.defineProperty(t, "presetWifiList", { | |
enumerable: !0, | |
get: function() { | |
return c.presetWifiList | |
} | |
}); | |
var s = n(195); | |
Object.defineProperty(t, "setWifiList", { | |
enumerable: !0, | |
get: function() { | |
return s.setWifiList | |
} | |
}); | |
var l = n(196); | |
Object.defineProperty(t, "onGetWifiList", { | |
enumerable: !0, | |
get: function() { | |
return l.onGetWifiList | |
} | |
}); | |
var f = n(197); | |
Object.defineProperty(t, "onWifiConnected", { | |
enumerable: !0, | |
get: function() { | |
return f.onWifiConnected | |
} | |
}); | |
var d = n(198); | |
Object.defineProperty(t, "onEvaluateWifi", { | |
enumerable: !0, | |
get: function() { | |
return d.onEvaluateWifi | |
} | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.startWifi = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("startWifi", e, {}) | |
}; | |
t.startWifi = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.stopWifi = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("stopWifi", e, {}) | |
}; | |
t.stopWifi = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getWifiList = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("getWifiList", e, {}) | |
}; | |
t.getWifiList = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getConnectedWifi = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("getConnectedWifi", e, {}) | |
}; | |
t.getConnectedWifi = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.connectWifi = void 0; | |
var o = n(1) | |
, r = (n(2), | |
function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("connectWifi", e, { | |
SSID: "", | |
password: "" | |
}) && (0, | |
o.invokeMethod)("connectWifi", e, {}) | |
} | |
); | |
t.connectWifi = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.presetWifiList = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ("ios" !== (0, | |
r.getPlatform)()) | |
return void (0, | |
o.beforeInvokeFail)("presetWifiList", e, "presetWifiList must be invoked on iOS platform"); | |
(0, | |
o.beforeInvoke)("presetWifiList", e, { | |
wifiList: [] | |
}) && (0, | |
o.invokeMethod)("presetWifiList", e, {}) | |
}; | |
t.presetWifiList = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.setWifiList = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ("ios" !== (0, | |
r.getPlatform)()) | |
return void (0, | |
o.beforeInvokeFail)("setWifiList", e, "setWifiList must be invoked on iOS platform"); | |
(0, | |
o.beforeInvoke)("setWifiList", e, { | |
wifiList: [] | |
}) && (0, | |
o.invokeMethod)("setWifiList", e, {}) | |
}; | |
t.setWifiList = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onGetWifiList = void 0; | |
var o = n(1) | |
, r = function(e) { | |
(0, | |
o.onMethod)("onGetWifiList", Reporter.surroundThirdByTryCatch(e, "at onGetWifiList callback function")) | |
}; | |
t.onGetWifiList = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onWifiConnected = void 0; | |
var o = n(1) | |
, r = function(e) { | |
(0, | |
o.onMethod)("onWifiConnected", Reporter.surroundThirdByTryCatch(e, "at onWifiConnected callback function")) | |
}; | |
t.onWifiConnected = r | |
} | |
, function(e, t, n) { | |
function o(e) { | |
var t = { | |
SSID: e.wifi.SSID, | |
BSSID: e.wifi.BSSID, | |
confidence: "none" | |
}; | |
if ("function" == typeof a) { | |
var n = void 0; | |
try { | |
n = a(e) || {} | |
} finally { | |
i.find(function(e) { | |
return e === n.confidence | |
}) && (t.confidence = n.confidence), | |
(0, | |
r.invokeMethod)("evaluateWifi", t, {}) | |
} | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onEvaluateWifi = void 0; | |
var r = n(1) | |
, a = null | |
, i = ["none", "low", "high"] | |
, u = function(e) { | |
"function" == typeof e && (a = e) | |
}; | |
(0, | |
r.onMethod)("onEvaluateWifi", Reporter.surroundThirdByTryCatch(o, "at onEvaluateWifi callback function")), | |
t.onEvaluateWifi = u | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(200); | |
Object.defineProperty(t, "getHCEState", { | |
enumerable: !0, | |
get: function() { | |
return o.getHCEState | |
} | |
}); | |
var r = n(201); | |
Object.defineProperty(t, "startHCE", { | |
enumerable: !0, | |
get: function() { | |
return r.startHCE | |
} | |
}); | |
var a = n(202); | |
Object.defineProperty(t, "stopHCE", { | |
enumerable: !0, | |
get: function() { | |
return a.stopHCE | |
} | |
}); | |
var i = n(203); | |
Object.defineProperty(t, "sendHCEMessage", { | |
enumerable: !0, | |
get: function() { | |
return i.sendHCEMessage | |
} | |
}); | |
var u = n(204); | |
Object.defineProperty(t, "onHCEMessage", { | |
enumerable: !0, | |
get: function() { | |
return u.onHCEMessage | |
} | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getHCEState = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("getHCEState", e, {}) | |
}; | |
t.getHCEState = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.startHCE = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("startHCE", e, {}) | |
}; | |
t.startHCE = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.stopHCE = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("stopHCE", e, {}) | |
}; | |
t.stopHCE = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.sendHCEMessage = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("sendHCEMessage", e, { | |
data: new ArrayBuffer(0) | |
}) && (0, | |
o.invokeMethod)("sendHCEMessage", Object.assign({}, e, { | |
data: (0, | |
r.arrayBufferToBase64)(e.data) | |
}), {}) | |
}; | |
t.sendHCEMessage = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onHCEMessage = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function(e) { | |
(0, | |
o.onMethod)("onHCEMessage", function() { | |
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
"string" == typeof t.data && (t.data = (0, | |
r.base64ToArrayBuffer)(t.data)), | |
Reporter.surroundThirdByTryCatch(e, "at onHCEMessage callback function")(t) | |
}) | |
}; | |
t.onHCEMessage = a | |
} | |
, function(e, n, o) { | |
var r = o(1) | |
, a = o(206) | |
, i = o(128) | |
, u = o(207) | |
, c = o(209) | |
, s = o(210) | |
, l = o(46) | |
, f = { | |
getCurrentRoute: a.getCurrentRoute, | |
setWxInterfaceDisabled: r.setWxInterfaceDisabled, | |
navigateTo: i.navigateTo, | |
redirectTo: i.redirectTo, | |
switchTab: i.switchTab, | |
navigateBack: i.navigateBack, | |
reLaunch: i.reLaunch, | |
getUserCloudStorage: u.getUserCloudStorage, | |
getFriendCloudStorage: c.getFriendCloudStorage, | |
getGroupCloudStorage: s.getGroupCloudStorage, | |
reportAPIRecycle: l.reportAPIRecycle | |
} | |
, d = function(e, t, n, o) { | |
(0, | |
r.publish)("callbackAppServiceMethod", { | |
res: e, | |
isSuccess: t, | |
callbackId: n | |
}, [o]) | |
}; | |
(0, | |
r.subscribe)("invokeAppServiceMethod", function(e, n) { | |
var o = e.name | |
, a = e.type | |
, i = e.args | |
, u = e.callbackId; | |
try { | |
if ("bridge" === a) | |
(0, | |
r.invoke)(o, i, function(e) { | |
e.errMsg = e.errMsg || o + ":ok", | |
-1 !== e.errMsg.indexOf(o + ":ok") ? d(e, !0, u, n) : d(e, !1, u, n) | |
}); | |
else { | |
i.success = function(e) { | |
d(e, !0, u, n) | |
} | |
, | |
i.fail = function(e) { | |
d(e, !1, u, n) | |
} | |
; | |
("wx" === a ? t[o] : f[o])(i) | |
} | |
} catch (e) { | |
var c = { | |
errMsg: o + ": fail " + e.message | |
}; | |
d(c, !1, u, n) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getCurrentRoute = void 0; | |
var o = n(5) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, a = function() { | |
(arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}).success({ | |
currentRoute: r.default.lastRoute | |
}) | |
}; | |
t.getCurrentRoute = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getUserCloudStorage = void 0; | |
var o = n(1) | |
, r = n(208) | |
, a = (0, | |
o.operateWXDataFactory)("getUserCloudStorage", "webapi_getselfuserstorage", {}, {}, function(e) { | |
var t = e.keyList; | |
return { | |
key: void 0 === t ? [] : t | |
} | |
}, function(e) { | |
return e.KVDataList = e.kv_list || [], | |
delete e.kv_list, | |
delete e.rawData, | |
e | |
}) | |
, i = function(e) { | |
var t = (0, | |
r.checkKeyList)(e.keyList); | |
if (t) | |
return void (0, | |
o.beforeInvokeFail)("getUserCloudStorage", e, t); | |
a(e) | |
}; | |
t.getUserCloudStorage = i | |
} | |
, function(e, t) { | |
function n(e) { | |
if (Array.isArray(e) && e.some(function(e) { | |
return "string" != typeof e || 0 === e.length | |
})) | |
return "invalid keyList" | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.checkKeyList = n | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getFriendCloudStorage = void 0; | |
var o = n(1) | |
, r = n(208) | |
, a = (0, | |
o.operateWXDataFactory)("getFriendCloudStorage", "webapi_getfrienduserstorage", {}, {}, function(e) { | |
var t = e.keyList; | |
return { | |
key: void 0 === t ? [] : t | |
} | |
}, function(e) { | |
return e.user_item = e.user_item ? e.user_item : [], | |
e.data = e.user_item.map(function(e) { | |
return e.KVDataList = e.kv_list || [], | |
delete e.kv_list, | |
e | |
}), | |
delete e.user_item, | |
delete e.rawData, | |
e | |
}) | |
, i = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = (0, | |
r.checkKeyList)(e.keyList); | |
if (t) | |
return void (0, | |
o.beforeInvokeFail)("getFriendCloudStorage", e, t); | |
a(e) | |
}; | |
t.getFriendCloudStorage = i | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getGroupCloudStorage = void 0; | |
var o = n(38) | |
, r = n(1) | |
, a = n(208) | |
, i = o.share.ShareInfoStorage | |
, u = (0, | |
r.operateWXDataFactory)("getGroupCloudStorage", "webapi_getgroupuserstorage", {}, {}, function(e) { | |
var t = e.keyList | |
, n = void 0 === t ? [] : t | |
, o = e.shareTicket | |
, r = i.get(o); | |
return { | |
key: n, | |
share_key: r.shareKey, | |
share_name: r.shareName | |
} | |
}, function(e) { | |
return e.user_item = e.user_item ? e.user_item : [], | |
e.data = e.user_item.map(function(e) { | |
return e.KVDataList = e.kv_list || [], | |
delete e.kv_list, | |
e | |
}), | |
delete e.user_item, | |
delete e.rawData, | |
e | |
}) | |
, c = function(e) { | |
var t = (0, | |
a.checkKeyList)(e.keyList); | |
if (t) | |
return void (0, | |
r.beforeInvokeFail)("getGroupCloudStorage", e, t); | |
setTimeout(function() { | |
e.shareTicket || i.lastShareTicket; | |
if (e.shareTicket) | |
return void (i.get(e.shareTicket) ? u(e) : (0, | |
r.beforeInvokeFail)("getGroupCloudStorage", e, "参数 shareTicket 不正确")); | |
i.lastShareTicket ? u(Object.assign({ | |
shareTicket: i.lastShareTicket | |
}, e)) : (0, | |
r.beforeInvokeFail)("getGroupCloudStorage", e, "当前小程序不是从群分享卡片打开") | |
}, 1e3 / 60) | |
}; | |
t.getGroupCloudStorage = c | |
} | |
, function(e, t, n) { | |
var o = n(1) | |
, a = n(5) | |
, i = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(a); | |
(0, | |
o.onMethod)("onStartReportPageData", function() { | |
var e = void 0 !== r ? r.getCurrentPagesByDomain("") : [] | |
, t = e.find(function(e) { | |
return e.__wxWebviewId__ === i.default.currentWebviewId | |
}); | |
t && (0, | |
o.invokeMethod)("reportPageData", { | |
isUserReport: !0, | |
pageData: JSON.stringify(t.data), | |
pageRoute: t.__route__, | |
complete: function(e) {} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
function o(e) { | |
var t = p[e] | |
, n = d[e]; | |
n && n.length && t && t.bindmessage && c.default.webviewEventCallback && c.default.webviewEventCallback({ | |
data: { | |
type: "message", | |
target: t.target, | |
currentTarget: t.target, | |
timeStamp: Date.now() - t.createdTimestamp, | |
detail: { | |
data: n | |
} | |
}, | |
eventName: t.bindmessage, | |
webviewId: e, | |
nodeId: t.nodeId | |
}) | |
} | |
function r(e, t) { | |
var n = e.name | |
, o = e.arg; | |
"android" === (0, | |
f.getPlatform)() && (t = c.default.currentWebviewId), | |
"navigateBack" === n ? i.route.navigateBack({ | |
delta: o.delta | |
}) : "navigateTo" === n ? i.route.navigateTo({ | |
url: o.url | |
}) : "redirectTo" === n ? i.route.redirectTo({ | |
url: o.url | |
}) : "reLaunch" === n ? i.route.reLaunch({ | |
url: o.url | |
}) : "switchTab" === n ? i.route.switchTab({ | |
url: o.url | |
}) : "postMessage" === n && d[t] && d[t].push(o) | |
} | |
var a = n(1) | |
, i = n(112) | |
, u = n(5) | |
, c = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(u) | |
, s = n(81) | |
, l = function(e) { | |
if (e && e.__esModule) | |
return e; | |
var t = {}; | |
if (null != e) | |
for (var n in e) | |
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); | |
return t.default = e, | |
t | |
}(s) | |
, f = n(2) | |
, d = {} | |
, p = {}; | |
(0, | |
a.subscribe)("webViewInserted", function(e, t) { | |
p[t] = e, | |
d[t] = [], | |
l.onBeforeUnloadPage(t, function(e) { | |
o(e), | |
delete p[e], | |
delete d[e] | |
}), | |
l.onBeforeShareAppMessage(t, o) | |
}), | |
(0, | |
a.subscribe)("webViewRemoved", function(e, t) { | |
o(t), | |
delete p[t], | |
delete d[t] | |
}), | |
(0, | |
a.onMethod)("onWebInvokeAppService", r), | |
(0, | |
a.onMethod)("WEB_INVOKE_APPSERVICE", r) | |
} | |
, function(e, t, n) { | |
var o = n(1) | |
, r = function(e, t, n) { | |
setTimeout(function() { | |
(0, | |
o.publish)("callbackMiniProgramFunction", { | |
callbackId: t, | |
argArr: n | |
}, [e]) | |
}, 0) | |
}; | |
(0, | |
o.subscribe)("callMiniProgramFunction", function(e, t) { | |
var n = e.callbackId | |
, o = e.path | |
, a = e.funcName | |
, u = e.argArr | |
, c = null; | |
try { | |
".js" !== o.slice(-3) && (o += ".js"), | |
c = i(o) | |
} catch (e) {} | |
if (c) | |
if ("function" != typeof c[a]) { | |
var s = [{ | |
errMsg: "callMiniProgramFunction:fail Function not found" | |
}]; | |
r(t, n, s) | |
} else | |
u.push(function() { | |
for (var e = arguments.length, o = Array(e), a = 0; a < e; a++) | |
o[a] = arguments[a]; | |
r(t, n, o) | |
}), | |
c[a].apply({}, u); | |
else { | |
r(t, n, [{ | |
errMsg: "callMiniProgramFunction:fail File not found" | |
}]) | |
} | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(215); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onLocationChange = t.stopLocationUpdate = t.startLocationUpdate = t.chooseLocation = t.openLocation = t.getLocation = void 0; | |
var o = n(1) | |
, r = !1 | |
, a = [] | |
, i = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
!0 === r ? a.push(e) : (r = !0, | |
(0, | |
o.invokeMethod)("getLocation", e, { | |
beforeAll: function() { | |
r = !1 | |
}, | |
afterAll: function(e) { | |
a.forEach(function(t) { | |
"function" == typeof t.complete && Reporter.surroundThirdByTryCatch(t.complete, "at getLocation complete callback function")(e) | |
}), | |
a = [] | |
}, | |
afterSuccess: function(e) { | |
a.forEach(function(t) { | |
"function" == typeof t.success && Reporter.surroundThirdByTryCatch(t.success, "at getLocation success callback function")(e) | |
}) | |
}, | |
afterFail: function(e) { | |
a.forEach(function(t) { | |
"function" == typeof t.fail && Reporter.surroundThirdByTryCatch(t.fail, "at getLocation fail callback function")(e) | |
}) | |
} | |
})) | |
} | |
, u = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("openLocation", e, { | |
latitude: 1, | |
longitude: 1 | |
}) && (0, | |
o.invokeMethod)("openLocation", e) | |
} | |
, c = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("chooseLocation", e) | |
} | |
, s = !1 | |
, l = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("enableLocationUpdate", Object.assign({}, e, { | |
enable: !0 | |
}), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("enableLocationUpdate", "startLocationUpdate") | |
} | |
}), | |
s = !0 | |
} | |
, f = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("enableLocationUpdate", Object.assign({}, e, { | |
enable: !1 | |
}), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("enableLocationUpdate", "stopLocationUpdate") | |
} | |
}), | |
s = !1 | |
} | |
, d = function(e) { | |
s || ((0, | |
o.invokeMethod)("enableLocationUpdate", { | |
enable: !0 | |
}), | |
s = !0), | |
(0, | |
o.onMethod)("onLocationChange", function() { | |
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
Reporter.surroundThirdByTryCatch(e, "at onLocationChange callback function")(t) | |
}) | |
}; | |
t.getLocation = i, | |
t.openLocation = u, | |
t.chooseLocation = c, | |
t.startLocationUpdate = l, | |
t.stopLocationUpdate = f, | |
t.onLocationChange = d | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(217); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}); | |
var r = n(218); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getExtConfig = void 0; | |
var o = n(218) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
setTimeout(function() { | |
var t = { | |
errMsg: "getExtConfig: ok", | |
extConfig: (0, | |
o.getExtConfigSync)() | |
}; | |
"function" == typeof e.success && e.success(t), | |
"function" == typeof e.complete && e.complete(t) | |
}, 0) | |
}; | |
t.getExtConfig = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getExtConfigSync = void 0; | |
var o = n(3) | |
, r = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(o) | |
, a = function() { | |
if (!r.default.ext) | |
return {}; | |
try { | |
return JSON.parse(JSON.stringify(r.default.ext)) | |
} catch (e) { | |
return {} | |
} | |
}; | |
t.getExtConfigSync = a | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.createIntersectionObserver = t.createSelectorQuery = void 0; | |
var r = n(220) | |
, a = o(r) | |
, i = n(221) | |
, u = o(i); | |
t.createSelectorQuery = function(e) { | |
return (0, | |
a.default)(e, "") | |
} | |
, | |
t.createIntersectionObserver = function(e, t) { | |
return (0, | |
u.default)(e, t, "") | |
} | |
} | |
, function(e, t, n) { | |
function a(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function i(e, t) { | |
return p[t] || (p[t] = h(t)), | |
new p[t](e) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var u = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}(); | |
t.default = i; | |
var c = n(1) | |
, s = 1 | |
, l = {} | |
, f = function(e, t, n) { | |
var o = s++; | |
if (!e) | |
return void console.warn("An SelectorQuery call is ignored because no proper page or component is found. Please considering using `SelectorQuery.in` to specify a proper one."); | |
l[o] = n, | |
(0, | |
c.publish)("requestComponentInfo", { | |
reqId: o, | |
reqs: t | |
}, [e]) | |
}; | |
(0, | |
c.subscribe)("responseComponentInfo", function(e) { | |
var t = e.reqId | |
, n = l[t]; | |
n && (delete l[t], | |
n(e.res)) | |
}); | |
var d = function() { | |
function e(t, n, o, r) { | |
a(this, e), | |
this._selectorQuery = t, | |
this._component = n, | |
this._selector = o, | |
this._single = r | |
} | |
return u(e, [{ | |
key: "fields", | |
value: function(e, t) { | |
return this._selectorQuery._push(this._selector, this._component, this._single, e, t), | |
this._selectorQuery | |
} | |
}, { | |
key: "boundingClientRect", | |
value: function(e) { | |
return this._selectorQuery._push(this._selector, this._component, this._single, { | |
id: !0, | |
dataset: !0, | |
rect: !0, | |
size: !0 | |
}, e), | |
this._selectorQuery | |
} | |
}, { | |
key: "scrollOffset", | |
value: function(e) { | |
return this._selectorQuery._push(this._selector, this._component, this._single, { | |
id: !0, | |
dataset: !0, | |
scrollOffset: !0 | |
}, e), | |
this._selectorQuery | |
} | |
}]), | |
e | |
}() | |
, p = {} | |
, h = function(e) { | |
return function() { | |
function t(e) { | |
if (a(this, t), | |
e && e.page) | |
this._component = this._defaultComponent = e.page, | |
this._webviewId = this._defaultComponent.__wxWebviewId__; | |
else { | |
var n = r.getCurrentPagesByDomain(""); | |
this._defaultComponent = n[n.length - 1], | |
this._component = null, | |
this._webviewId = null | |
} | |
this._queue = [], | |
this._queueCb = [] | |
} | |
return u(t, [{ | |
key: "in", | |
value: function(e) { | |
return null === this._webviewId ? (this._webviewId = e.__wxWebviewId__, | |
this._component = e) : this._webviewId !== e.__wxWebviewId__ ? console.error("A single SelectorQuery could not work in components in different pages. A SelectorQuery#in call has been ignored.") : this._component = e, | |
this | |
} | |
}, { | |
key: "select", | |
value: function(e) { | |
return new d(this,this._component,e,!0) | |
} | |
}, { | |
key: "selectAll", | |
value: function(e) { | |
return new d(this,this._component,e,!1) | |
} | |
}, { | |
key: "selectViewport", | |
value: function() { | |
return new d(this,0,"",!0) | |
} | |
}, { | |
key: "_push", | |
value: function(t, n, r, a, i) { | |
null === this._webviewId && (this._webviewId = this._defaultComponent ? this._defaultComponent.__wxWebviewId__ : void 0); | |
var u = e ? "" : o.getRootNodeId(this._webviewId); | |
this._queue.push({ | |
component: null != n ? 0 === n ? 0 : n.__wxExparserNodeId__ : u, | |
selector: t, | |
single: r, | |
fields: a | |
}), | |
this._queueCb.push(i || null) | |
} | |
}, { | |
key: "exec", | |
value: function(t) { | |
var n = this; | |
f(this._webviewId, { | |
pluginId: e, | |
queue: this._queue | |
}, function(e) { | |
var o = n._queueCb; | |
e.forEach(function(e, t) { | |
"function" == typeof o[t] && o[t].call(n, e) | |
}), | |
"function" == typeof t && t.call(n, e) | |
}) | |
} | |
}]), | |
t | |
}() | |
} | |
} | |
, function(e, t, n) { | |
function a(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function i(e, t, n) { | |
return d[n] || (d[n] = p(n)), | |
new d[n](e,t) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var u = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}(); | |
t.default = i; | |
var c = n(1) | |
, s = 1 | |
, l = {} | |
, f = function(e, t, n) { | |
var o = s++; | |
l[o] = n, | |
(0, | |
c.publish)("requestComponentObserver", { | |
reqId: o, | |
req: t | |
}, [e]) | |
}; | |
(0, | |
c.subscribe)("responseComponentObserver", function(e) { | |
var t = e.reqId | |
, n = l[t]; | |
if (e.reqEnd && delete l[t], | |
n) | |
return e.reqEnd ? void 0 : void n(e.res) | |
}); | |
var d = {} | |
, p = function(e) { | |
return function() { | |
function t(e, n) { | |
if (a(this, t), | |
this._component = e, | |
this._options = n, | |
this._relativeInfo = [], | |
this._observerId = null, | |
this._disconnected = !1, | |
e) | |
this._webviewId = e.__wxWebviewId__; | |
else { | |
var o = r.getCurrentPagesByDomain(""); | |
this._webviewId = o[o.length - 1].__wxWebviewId__ | |
} | |
} | |
return u(t, [{ | |
key: "relativeTo", | |
value: function(e, t) { | |
if (null !== this._observerId) | |
throw new Error('Relative nodes cannot be added after "observe" call in IntersectionObserver'); | |
return this._relativeInfo.push({ | |
selector: e, | |
margins: t | |
}), | |
this | |
} | |
}, { | |
key: "relativeToViewport", | |
value: function(e) { | |
if (null !== this._observerId) | |
throw new Error('Relative nodes cannot be added after "observe" call in IntersectionObserver'); | |
return this._relativeInfo.push({ | |
selector: null, | |
margins: e | |
}), | |
this | |
} | |
}, { | |
key: "observe", | |
value: function(t, n) { | |
var r = this; | |
if (null !== this._observerId) | |
throw new Error('"observe" call can be only called once in IntersectionObserver'); | |
this._observerId = ""; | |
var a = this._component; | |
f(this._webviewId, { | |
type: "addIntersectionObserver", | |
pluginId: e, | |
nodeId: a ? a.__wxExparserNodeId__ : o.getRootNodeId(this._webviewId), | |
targetSelector: t, | |
relativeInfo: this._relativeInfo, | |
options: this._options | |
}, function(e) { | |
r._disconnected || (e.observerId && (r._observerId = e.observerId), | |
e.info && n.call(r, e.info)) | |
}) | |
} | |
}, { | |
key: "disconnect", | |
value: function() { | |
f(this._webviewId, { | |
type: "removeIntersectionObserver", | |
observerId: this._observerId | |
}), | |
this._disconnected = !0 | |
} | |
}]), | |
t | |
}() | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.invokeWebviewMethod = void 0; | |
var o = n(1) | |
, r = n(5) | |
, a = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(r) | |
, i = 0 | |
, u = [] | |
, c = [] | |
, s = function() {} | |
, l = function(e) { | |
var t = e.name | |
, n = e.args | |
, r = void 0 === n ? {} : n | |
, l = e.webviewIds | |
, f = e.ext | |
, d = void 0 === f ? {} : f; | |
u[i] = { | |
success: r.success || s, | |
fail: r.fail || s, | |
complete: r.complete || s | |
}, | |
c[i] = { | |
beforeAll: d.beforeAll || s, | |
beforeSuccess: d.beforeSuccess || s, | |
afterSuccess: d.afterSuccess || s, | |
beforeFail: d.beforeFail || s, | |
afterFail: d.afterFail || s, | |
afterAll: d.afterAll || s | |
}, | |
(0, | |
o.publish)("invokeWebviewMethod", { | |
name: t, | |
args: r, | |
callbackId: i | |
}, void 0 === l ? [a.default.currentWebviewId] : l), | |
i += 1 | |
}; | |
(0, | |
o.subscribe)("callbackWebviewMethod", function(e) { | |
var t = e.res | |
, n = e.isSuccess | |
, o = e.callbackId | |
, r = u[o] | |
, a = c[o]; | |
a.beforeAll(t), | |
n ? (a.beforeSuccess(t), | |
r.success(t), | |
a.afterSuccess(t)) : (a.beforeFail(t), | |
r.fail(t), | |
a.afterFail(t)), | |
r.complete(t), | |
a.afterAll(t) | |
}), | |
t.invokeWebviewMethod = l | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(224); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.triggerGettingWidgetData = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("triggerGettingWidgetData", e, { | |
cacheKey: "" | |
}) && (0, | |
o.invokeMethod)("triggerGettingWidgetData", e, {}) | |
}; | |
t.triggerGettingWidgetData = r | |
} | |
, function(e, n, o) { | |
Object.defineProperty(n, "__esModule", { | |
value: !0 | |
}), | |
n.reportMonitor = n.reportKeyValue = n.reportIDKey = n.reportAnalytics = n.reportAction = void 0; | |
var a = o(1) | |
, i = o(2); | |
n.reportAction = function(e) { | |
(0, | |
a.invokeMethod)("reportAction", e) | |
} | |
, | |
n.reportAnalytics = function(e, n) { | |
var o = void 0 !== r.getCurrentPagesByDomain && r.getCurrentPagesByDomain("") | |
, u = o && o.pop && o.pop() | |
, c = { | |
business: "mmbizwxaanalytics", | |
eventID: e, | |
data: n || {}, | |
page: u && u.__route__, | |
uid: Date.now().toString(16) + Math.random().toString(16).substr(2), | |
type: 1, | |
version: t && t.version && t.version.version || 0 | |
}; | |
"devtools" !== (0, | |
i.getPlatform)() && (console.info("[自定义分析] 上报成功"), | |
console.info(c)), | |
(0, | |
a.invokeMethod)("reportRealtimeAction", { | |
actionData: JSON.stringify(c) | |
}) | |
} | |
, | |
n.reportIDKey = function(e, t) {} | |
, | |
n.reportKeyValue = function(e, t) {} | |
, | |
n.reportMonitor = function(e, t) { | |
if (!e) | |
return void console.error("wx.reportMonitor: require 'name' argument."); | |
if (void 0 === t && (t = 1), | |
"number" != typeof t) | |
return void console.error("wx.reportMonitor: 'value' argument must be a Number."); | |
var n = JSON.stringify({ | |
business: "mmbizwxamonitor", | |
name: e, | |
value: t, | |
timeStamp: Date.now() | |
}); | |
(0, | |
a.invokeMethod)("reportRealtimeAction", { | |
actionData: n | |
}) | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.calRqt = t.cancelDownloadAppTask = t.queryDownloadAppTask = t.getAppInstallState = t.downloadApp = t.addNativeDownloadTask = t.CDN = t.socket = t.uploadFile = t.downloadFile = t._requestSkipCheckDomain = t.request = void 0; | |
var o = n(227); | |
Object.defineProperty(t, "request", { | |
enumerable: !0, | |
get: function() { | |
return o.request | |
} | |
}), | |
Object.defineProperty(t, "_requestSkipCheckDomain", { | |
enumerable: !0, | |
get: function() { | |
return o._requestSkipCheckDomain | |
} | |
}); | |
var r = n(102); | |
Object.defineProperty(t, "downloadFile", { | |
enumerable: !0, | |
get: function() { | |
return r.downloadFile | |
} | |
}); | |
var a = n(230); | |
Object.defineProperty(t, "uploadFile", { | |
enumerable: !0, | |
get: function() { | |
return a.uploadFile | |
} | |
}); | |
var i = n(232); | |
Object.defineProperty(t, "socket", { | |
enumerable: !0, | |
get: function() { | |
return i.socket | |
} | |
}); | |
var u = n(234); | |
Object.defineProperty(t, "addNativeDownloadTask", { | |
enumerable: !0, | |
get: function() { | |
return u.addNativeDownloadTask | |
} | |
}); | |
var c = n(235); | |
Object.defineProperty(t, "downloadApp", { | |
enumerable: !0, | |
get: function() { | |
return c.downloadApp | |
} | |
}), | |
Object.defineProperty(t, "getAppInstallState", { | |
enumerable: !0, | |
get: function() { | |
return c.getAppInstallState | |
} | |
}), | |
Object.defineProperty(t, "queryDownloadAppTask", { | |
enumerable: !0, | |
get: function() { | |
return c.queryDownloadAppTask | |
} | |
}), | |
Object.defineProperty(t, "cancelDownloadAppTask", { | |
enumerable: !0, | |
get: function() { | |
return c.cancelDownloadAppTask | |
} | |
}); | |
var s = n(237); | |
Object.defineProperty(t, "calRqt", { | |
enumerable: !0, | |
get: function() { | |
return s.calRqt | |
} | |
}); | |
var l = n(238) | |
, f = function(e) { | |
if (e && e.__esModule) | |
return e; | |
var t = {}; | |
if (null != e) | |
for (var n in e) | |
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); | |
return t.default = e, | |
t | |
}(l); | |
t.CDN = f | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t._requestSkipCheckDomain = t.request = void 0; | |
var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
, r = n(1) | |
, a = n(2) | |
, i = n(228) | |
, u = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(i) | |
, c = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
return e = Object.assign({ | |
__skipDomainCheck__: !1 | |
}, e), | |
function() { | |
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
r.beforeInvoke)("request", t, { | |
url: "" | |
})) { | |
if (!1 === (0, | |
a.validateUrl)(t.url)) | |
return void (0, | |
r.beforeInvokeFail)("request", t, 'invalid url "' + t.url + '"'); | |
if ("function" === t.data) | |
return void (0, | |
r.beforeInvokeFail)("request", t, "data should not be Function"); | |
var n = (0, | |
a.getDataType)(t.header); | |
t.header = t.header || {}, | |
t.header = (0, | |
a.convertObjectValueToString)(t.header), | |
"Undefined" !== n && "Object" !== n && (console.warn("wx.request: header must be an object"), | |
t.header = {}), | |
t.header = Object.keys(t.header).reduce(function(e, n) { | |
return "content-type" === n.toLowerCase() ? e[n.toLowerCase()] = t.header[n] : e[n] = t.header[n], | |
e | |
}, {}); | |
var i = "text"; | |
t.responseType && (i = t.responseType.toLowerCase()); | |
var c = t.header || {} | |
, s = "GET"; | |
"string" == typeof t.method && (s = t.method.toUpperCase()); | |
var l = void 0; | |
t.dataType = t.dataType || "json", | |
c["content-type"] = c["content-type"] || "application/json", | |
l = void 0 === t.data ? "" : "string" != typeof t.data && "ArrayBuffer" !== (0, | |
a.getDataType)(t.data) ? c["content-type"].indexOf("application/x-www-form-urlencoded") > -1 ? (0, | |
a.urlEncodeFormData)(t.data, !0) : c["content-type"].indexOf("application/json") > -1 ? JSON.stringify(t.data) : "object" === o(t.data) ? JSON.stringify(t.data) : l.toString() : t.data, | |
"GET" == s && (t.url = (0, | |
a.addQueryStringToUrl)(t.url, t.data)); | |
try { | |
return new u.default(Object.assign({}, t, { | |
header: c, | |
method: s, | |
responseType: i, | |
data: l, | |
__skipDomainCheck__: e.__skipDomainCheck__ | |
})) | |
} catch (e) { | |
(0, | |
r.beforeInvokeFail)("request", t, e.message) | |
} | |
} | |
} | |
} | |
, s = c() | |
, l = c({ | |
__skipDomainCheck__: !0 | |
}); | |
t.request = s, | |
t._requestSkipCheckDomain = l | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function r(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function a() { | |
var e = this | |
, t = m.get(this); | |
b.set(this, "sending"), | |
w.set(this, Date.now()); | |
var n = void 0; | |
(0, | |
c.invokeMethod)("createRequestTask", { | |
data: t.data, | |
url: t.url, | |
header: t.header, | |
method: t.method, | |
responseType: t.responseType, | |
__skipDomainCheck__: t.__skipDomainCheck__, | |
success: function(t) { | |
y.set(e, t.requestTaskId), | |
k += 1, | |
C[t.requestTaskId] = e | |
}, | |
fail: function(o) { | |
n = o.errMsg; | |
var r = t.url | |
, a = Date.now() - w.get(e) | |
, i = t.__skipDomainCheck__; | |
(0, | |
f.reportNetworkAPI)("request", r, 2, a, n, "", i) | |
}, | |
complete: function(t) { | |
b.set(e, "done") | |
} | |
}), | |
n ? setTimeout(function() { | |
var e = { | |
errMsg: n.replace("createRequestTask", "request") | |
}; | |
"function" == typeof t.fail && t.fail(e), | |
"function" == typeof t.complete && t.complete(e) | |
}, 0) : (P.on(y.get(this) + "success", function(e) { | |
if (e.errMsg = "request:ok", | |
"string" == typeof e.data && 65279 === e.data.charCodeAt(0) && (e.data = e.data.substr(1)), | |
"json" === t.dataType) | |
try { | |
e.data = JSON.parse(e.data) | |
} catch (e) {} | |
e.statusCode = parseInt(e.statusCode), | |
"object" === u(e.header) && (e.header = Object.keys(e.header).reduce(function(t, n) { | |
return Array.isArray(e.header[n]) ? t[n] = e.header[n].join(",") : "string" == typeof e.header[n] && (t[n] = e.header[n]), | |
t | |
}, {})), | |
"function" == typeof t.success && t.success(e), | |
"function" == typeof t.complete && t.complete(e) | |
}), | |
P.on(y.get(this) + "fail", function(e) { | |
e.errMsg = "request:fail " + e.errMsg, | |
"function" == typeof t.fail && t.fail(e), | |
"function" == typeof t.complete && t.complete(e) | |
})) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var i = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}() | |
, u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
, c = n(1) | |
, s = n(14) | |
, l = o(s) | |
, f = n(104) | |
, d = n(3) | |
, p = o(d) | |
, h = n(229) | |
, v = 10 | |
, g = 0 | |
, _ = new WeakMap | |
, y = new WeakMap | |
, b = (new WeakMap, | |
new WeakMap) | |
, m = new WeakMap | |
, w = new WeakMap | |
, k = 0 | |
, S = [] | |
, C = {} | |
, P = new l.default; | |
p.default.onReady(function() { | |
try { | |
"number" == typeof p.default.wxAppInfo.maxRequestConcurrent && (v = p.default.wxAppInfo.maxRequestConcurrent) | |
} catch (e) {} | |
}), | |
(0, | |
c.onMethod)("onRequestTaskStateChange", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = e.state | |
, n = e.requestTaskId; | |
if (delete e.state, | |
delete e.requestTaskId, | |
"success" !== t && "fail" !== t || (k -= 1, | |
S.length > 0 && a.call(S.shift().item)), | |
P.emit("" + n + t, e), | |
"success" === t || "fail" === t) { | |
var o = C[n]; | |
if (!o) | |
return; | |
var r = m.get(o).url | |
, i = "success" === t ? 1 : 2 | |
, u = Date.now() - w.get(o) | |
, c = e.errMsg | |
, s = e.statusCode | |
, l = m.get(o).__skipDomainCheck__ | |
, d = (0, | |
h.getDataLength)(m.get(o).data); | |
(0, | |
f.reportNetworkAPI)("request", r, i, u, c, s, l, d), | |
delete C[n], | |
P.removeAllListeners(n + "success"), | |
P.removeAllListeners(n + "fail"), | |
P.removeAllListeners(n + "headersReceived") | |
} | |
}); | |
var M = function() { | |
function e(t) { | |
r(this, e); | |
var n = g++; | |
if (_.set(this, n), | |
b.set(this, "waiting"), | |
["success", "fail", "complete"].forEach(function(e) { | |
"function" == typeof t[e] && (t[e] = Reporter.surroundThirdByTryCatch(t[e], "at api request " + e + " callback function")) | |
}), | |
m.set(this, t), | |
k >= v) | |
return void S.push({ | |
id: n, | |
item: this | |
}); | |
a.call(this) | |
} | |
return i(e, [{ | |
key: "abort", | |
value: function() { | |
var e = this; | |
if ("waiting" == typeof b.get(this)) { | |
var t = S.findIndex(function(t) { | |
return t.id === _.get(e) | |
}); | |
t > -1 && (S.splice(t, 1), | |
k -= 1), | |
b.set(this, "done") | |
} else { | |
(0, | |
c.invokeMethod)("operateRequestTask", { | |
requestTaskId: y.get(this), | |
operationType: "abort" | |
}) | |
} | |
} | |
}, { | |
key: "onHeadersReceived", | |
value: function(e) { | |
P.on(y.get(this) + "headersReceived", function(t) { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at RequestTask.onHeadersReceived callback function")(t) | |
}) | |
} | |
}, { | |
key: "offHeadersReceived", | |
value: function(e) { | |
"function" == typeof e ? P.off(y.get(this) + "headersReceived", e) : P.removeAllListeners(y.get(this) + "headersReceived") | |
} | |
}]), | |
e | |
}(); | |
t.default = M | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function r(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function a(e) { | |
switch (void 0 === e ? "undefined" : p(e)) { | |
case "function": | |
return "" === e.name ? "[function anonymous]" : "[function " + e.name + "]"; | |
case "undefined": | |
return "undefined"; | |
default: | |
return e | |
} | |
} | |
function i(e) { | |
var t = {}; | |
for (var n in e) { | |
var o = e[n]; | |
"object" === (void 0 === o ? "undefined" : p(o)) && null !== o ? t[n] = i(o) : t[n] = a(o) | |
} | |
return t | |
} | |
function u(e, t, n) { | |
return !0 === _.default.karmaTest ? e : function() { | |
try { | |
return e.apply(e, arguments) | |
} catch (e) { | |
if ("[object Error]" === Object.prototype.toString.apply(e)) { | |
if ("AppServiceSdkKnownError" == e.type) | |
throw e; | |
"ThirdScriptError" === e.type ? Reporter.thirdErrorReport({ | |
error: e, | |
extend: t | |
}) : Reporter.errorReport({ | |
key: n, | |
error: e, | |
extend: t | |
}) | |
} | |
} | |
} | |
} | |
function c(e, t, n, o) { | |
e.__defineGetter__(n, function() { | |
return "function" == typeof t[n] ? u(t[n], "wx." + n, o) : t[n] | |
}) | |
} | |
function s(e) { | |
return Object.prototype.toString.call(e).split(" ")[1].split("]")[0] | |
} | |
function l(e) { | |
return Object.freeze(e), | |
Object.getOwnPropertyNames(e).forEach(function(t) { | |
var n = void 0; | |
try { | |
n = e[t] | |
} catch (e) {} | |
"object" !== (void 0 === n ? "undefined" : p(n)) && "function" != typeof n || Object.isFrozen(n) || l(n) | |
}), | |
e | |
} | |
function f(e) { | |
return "string" == typeof e ? e.length : "object" === (void 0 === e ? "undefined" : p(e)) && "number" == typeof e.byteLength ? e.byteLength : 0 | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.EventEmitter = t.timeout = t.surroundWXByTryCatch = t.transformLogArgs = t.isArray = t.isString = t.isNull = t.isUndefined = t.isVirtualText = t.isVirtualNode = t.isEmptyObject = t.isObject = void 0; | |
var d = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}() | |
, p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
; | |
t.surroundByTryCatchFactory = u, | |
t.getDataType = s, | |
t.deepFreeze = l, | |
t.getDataLength = f; | |
var h = n(14) | |
, v = o(h) | |
, g = n(3) | |
, _ = o(g); | |
t.isObject = function(e) { | |
return "object" === (void 0 === e ? "undefined" : p(e)) && null !== e | |
} | |
, | |
t.isEmptyObject = function(e) { | |
for (var t in e) | |
return !1; | |
return !0 | |
} | |
, | |
t.isVirtualNode = function(e) { | |
return e && "WxVirtualNode" === e.type | |
} | |
, | |
t.isVirtualText = function(e) { | |
return e && "WxVirtualText" === e.type | |
} | |
, | |
t.isUndefined = function(e) { | |
return "[object Undefined]" === Object.prototype.toString.call(e) | |
} | |
, | |
t.isNull = function(e) { | |
return "[object Null]" === Object.prototype.toString.call(e) | |
} | |
, | |
t.isString = function(e) { | |
return "[object String]" === Object.prototype.toString.call(e) | |
} | |
, | |
t.isArray = function(e) { | |
return Array.isArray ? Array.isArray(e) : "[object Array]" === Object.prototype.toString.call(e) | |
} | |
, | |
t.transformLogArgs = function(e) { | |
for (var t = Array.prototype.slice.call(e), n = 0; n < t.length; n++) { | |
var o = t[n]; | |
try { | |
JSON.stringify(o) | |
} catch (e) { | |
return void console.error("An object with circular reference can't be logged") | |
} | |
} | |
return t.map(function(e) { | |
return "object" === (void 0 === e ? "undefined" : p(e)) && null !== e ? i(e) : a(e) | |
}) | |
} | |
, | |
t.surroundWXByTryCatch = function(e, t) { | |
var n = {}; | |
for (var o in e) | |
c(n, e, o, t); | |
return n | |
} | |
, | |
t.timeout = function(e, t) { | |
var n = t.timeout; | |
if ("number" != typeof n) | |
return void e(t); | |
var o = !1 | |
, r = setTimeout(function() { | |
var e = { | |
errMsg: "request timeout" | |
}; | |
o = !0, | |
"function" == typeof t.fail && t.fail(e), | |
"function" == typeof t.complete && t.complete(e) | |
}, n) | |
, a = ["success", "fail", "complete"].reduce(function(e, n) { | |
return e[n] = function(e) { | |
o || (clearTimeout(r), | |
"function" == typeof t[n] && t[n](e)) | |
} | |
, | |
e | |
}, {}); | |
e(Object.assign({}, t, a)) | |
} | |
, | |
t.EventEmitter = function() { | |
function e() { | |
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : { | |
maxListeners: 2e3 | |
}; | |
r(this, e), | |
this.emitter = new v.default(t), | |
this.callbackMap = "undefined" != typeof WeakMap ? new WeakMap : {} | |
} | |
return d(e, [{ | |
key: "emit", | |
value: function(e, t) { | |
this.emitter.emit(e, t) | |
} | |
}, { | |
key: "on", | |
value: function(e, t) { | |
if (t && "function" == typeof t) { | |
var n = Reporter.surroundThirdByTryCatch(t, "at " + e + " callback function"); | |
this.callbackMap.set(t, n), | |
this.emitter.on(e, n) | |
} | |
} | |
}, { | |
key: "off", | |
value: function(e, t) { | |
if (t && "function" == typeof t) { | |
var n = this.callbackMap.get(t); | |
this.emitter.off(e, n) | |
} else | |
this.emitter.removeAllListeners(e) | |
} | |
}, { | |
key: "listeners", | |
value: function(e) { | |
return this.emitter.listeners(e) | |
} | |
}]), | |
e | |
}() | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t._uploadFileSkipCheckDomain = t.uploadFile = void 0; | |
var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
, r = n(1) | |
, a = n(2) | |
, i = n(231) | |
, u = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(i) | |
, c = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
return e = Object.assign({ | |
__skipDomainCheck__: !1 | |
}, e), | |
function() { | |
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
r.beforeInvoke)("uploadFile", t, { | |
url: "", | |
filePath: "", | |
name: "" | |
})) { | |
"object" !== o(t.header) && void 0 !== t.header && (console.warn("uploadFile: header must be an object"), | |
delete t.header), | |
"object" !== o(t.formData) && void 0 !== t.formData && (console.warn("uploadFile: formData must be an object"), | |
delete t.formData); | |
var n = {} | |
, i = {}; | |
t.header && (n = (0, | |
a.convertObjectValueToString)(t.header)), | |
t.formData && (i = (0, | |
a.convertObjectValueToString)(t.formData)); | |
try { | |
return new u.default(Object.assign({}, t, { | |
header: n, | |
formData: i, | |
__skipDomainCheck__: e.__skipDomainCheck__ | |
})) | |
} catch (e) { | |
(0, | |
r.beforeInvokeFail)("uploadFile", t, e.message) | |
} | |
} | |
} | |
} | |
, s = c() | |
, l = c({ | |
__skipDomainCheck__: !0 | |
}); | |
t.uploadFile = s, | |
t._uploadFileSkipCheckDomain = l | |
} | |
, function(e, t, n) { | |
function o(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var r = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}() | |
, a = n(1) | |
, i = n(14) | |
, u = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(i) | |
, c = n(104) | |
, s = new WeakMap | |
, l = (new WeakMap, | |
new WeakMap) | |
, f = new WeakMap | |
, d = {} | |
, p = new u.default; | |
(0, | |
a.onMethod)("onUploadTaskStateChange", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = e.state | |
, n = e.uploadTaskId; | |
if (delete e.state, | |
delete e.uploadTaskId, | |
p.emit("" + n + t, e), | |
"success" === t || "fail" === t) { | |
try { | |
var o = d[n] | |
, r = l.get(o).url | |
, a = "success" === t ? 1 : 2 | |
, i = Date.now() - f.get(o) | |
, u = e.errMsg | |
, s = e.statusCode | |
, h = l.get(o).__skipDomainCheck__; | |
(0, | |
c.reportNetworkAPI)("uploadFile", r, a, i, u, s, h) | |
} catch (e) {} | |
delete d[n], | |
p.removeAllListeners(n + "success"), | |
p.removeAllListeners(n + "fail"), | |
p.removeAllListeners(n + "progressUpdate") | |
} | |
}); | |
var h = function() { | |
function e(t) { | |
var n = this; | |
o(this, e); | |
var r = void 0; | |
if (["success", "fail", "complete"].forEach(function(e) { | |
"function" == typeof t[e] && (t[e] = Reporter.surroundThirdByTryCatch(t[e], "at api uploadFile " + e + " callback function")) | |
}), | |
l.set(this, t), | |
f.set(this, Date.now()), | |
(0, | |
a.invokeMethod)("createUploadTask", { | |
url: t.url, | |
header: t.header, | |
filePath: t.filePath, | |
name: t.name, | |
formData: t.formData, | |
__skipDomainCheck__: t.__skipDomainCheck__, | |
success: function(e) { | |
s.set(n, e.uploadTaskId), | |
d[e.uploadTaskId] = n | |
}, | |
fail: function(e) { | |
r = e.errMsg; | |
var o = t.url | |
, a = Date.now() - f.get(n) | |
, i = t.__skipDomainCheck__; | |
(0, | |
c.reportNetworkAPI)("uploadFile", o, 2, a, r, "", i) | |
}, | |
complete: function(e) {} | |
}), | |
r) | |
throw new Error(r); | |
p.on(s.get(this) + "success", function(e) { | |
e.errMsg = "uploadFile:ok", | |
e.statusCode = parseInt(e.statusCode), | |
-1 === [200, 304].indexOf(e.statusCode) && delete e.tempPath, | |
"function" == typeof t.success && t.success(e), | |
"function" == typeof t.complete && t.complete(e) | |
}), | |
p.on(s.get(this) + "fail", function(e) { | |
e.errMsg = "uploadFile:fail " + e.errMsg, | |
"function" == typeof t.fail && t.fail(e), | |
"function" == typeof t.complete && t.complete(e) | |
}) | |
} | |
return r(e, [{ | |
key: "abort", | |
value: function() { | |
(0, | |
a.invokeMethod)("operateUploadTask", { | |
uploadTaskId: s.get(this), | |
operationType: "abort" | |
}) | |
} | |
}, { | |
key: "onProgressUpdate", | |
value: function(e) { | |
p.on(s.get(this) + "progressUpdate", function(t) { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at UploadTask.onProgressUpdate callback function")(t) | |
}) | |
} | |
}, { | |
key: "offProgressUpdate", | |
value: function(e) { | |
"function" == typeof e ? p.off(s.get(this) + "progressUpdate", e) : p.removeAllListeners(s.get(this) + "progressUpdate") | |
} | |
}, { | |
key: "onHeadersReceived", | |
value: function(e) { | |
p.on(s.get(this) + "headersReceived", function(t) { | |
"function" == typeof e && Reporter.surroundThirdByTryCatch(e, "at UploadTask.onHeadersReceived callback function")(t) | |
}) | |
} | |
}, { | |
key: "offHeadersReceived", | |
value: function(e) { | |
"function" == typeof e ? p.off(s.get(this) + "headersReceived", e) : p.removeAllListeners(s.get(this) + "headersReceived") | |
} | |
}]), | |
e | |
}(); | |
t.default = h | |
} | |
, function(e, t, n) { | |
function o(e, t) { | |
return l[t] || (l[t] = new WeakMap, | |
u.emitter.on("onSocket" + t, r(t))), | |
function(n) { | |
(0, | |
i.beforeInvoke)("onSocket" + t, n, i.noop) && l[t].set(e, n) | |
} | |
} | |
function r(e) { | |
return function(t, n) { | |
var o = n.__socketInstance__ | |
, r = l[e].get(o) | |
, a = s.get(o); | |
r && n === a && Reporter.surroundThirdByTryCatch(r, "at onSocket" + e + " callback function")(t) | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t._socketSkipCheckDomainFactory = t.socket = void 0; | |
var a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
, i = n(1) | |
, u = n(233) | |
, c = n(2) | |
, s = new WeakMap | |
, l = {} | |
, f = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
e = Object.assign({ | |
__skipDomainCheck__: !1 | |
}, e); | |
var t = {}; | |
return { | |
connectSocket: function(n) { | |
if ((0, | |
i.beforeInvoke)("connectSocket", n, { | |
url: "" | |
})) { | |
if (!1 === (0, | |
c.validateUrl)(n.url, "websocket")) | |
return void (0, | |
i.beforeInvokeFail)("request", n, 'invalid url "' + n.url + '"'); | |
"object" !== a(n.header) && void 0 !== n.header && delete n.header; | |
var o = {}; | |
n.header && (o = (0, | |
c.convertObjectValueToString)(n.header)), | |
n.__skipDomainCheck__ = e.__skipDomainCheck__; | |
try { | |
var r = s.get(t) | |
, l = new u.SocketTask(t,Object.assign({}, n, { | |
header: o | |
})); | |
return r && r.readyState !== r.CLOSED || s.set(t, l), | |
l | |
} catch (e) { | |
(0, | |
i.beforeInvokeFail)("connectSocket", n, e.message) | |
} | |
} | |
}, | |
closeSocket: function(e) { | |
var n = s.get(t); | |
n && n.readyState !== n.CLOSED ? (n.readyState = n.CLOSED, | |
n.close(e)) : (0, | |
i.beforeInvokeFail)("closeSocket", e, "WebSocket is not connected"); | |
for (var o in u.socketTaskMap) { | |
var r = u.socketTaskMap[o]; | |
r.__socketInstance__ === t && (r.readyState = r.CLOSED, | |
r !== n && r.close()) | |
} | |
}, | |
sendSocketMessage: function(e) { | |
var n = s.get(t); | |
n && n.readyState === n.OPEN ? n.send(e) : (0, | |
i.beforeInvokeFail)("sendSocketMessage", e, "WebSocket is not connected") | |
}, | |
onSocketOpen: o(t, "Open"), | |
onSocketClose: o(t, "Close"), | |
onSocketMessage: o(t, "Message"), | |
onSocketError: o(t, "Error") | |
} | |
} | |
, d = f() | |
, p = function() { | |
return f({ | |
__skipDomainCheck__: !0 | |
}) | |
}; | |
t.socket = d, | |
t._socketSkipCheckDomainFactory = p | |
} | |
, function(e, t, n) { | |
function o(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.socketTaskMap = t.emitter = t.SocketTask = void 0; | |
var r = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}() | |
, a = n(1) | |
, i = n(14) | |
, u = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(i) | |
, c = n(104) | |
, s = n(229) | |
, l = 0 | |
, f = new WeakMap | |
, d = new WeakMap | |
, p = new WeakMap | |
, h = (new WeakMap, | |
new WeakMap) | |
, v = {} | |
, g = new u.default; | |
(0, | |
a.onMethod)("onSocketTaskStateChange", function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} | |
, t = e.state | |
, n = e.socketTaskId | |
, o = v[n]; | |
if (o) { | |
var r = f.get(o); | |
if (delete e.state, | |
delete e.socketTaskId, | |
o) { | |
if ("open" === t) { | |
o.readyState = o.OPEN; | |
var a = p.get(o).url | |
, i = Date.now() - h.get(o) | |
, u = e.statusCode | |
, s = p.get(o).__skipDomainCheck__; | |
(0, | |
c.reportNetworkAPI)("connectSocket", a, 1, i, "", u, s, 0) | |
} else | |
"close" !== t && "error" !== t || (o.readyState = o.CLOSED); | |
g.emit("" + r + t, e), | |
g.emit("onSocket" + (t[0].toUpperCase() + t.substr(1)), e, o), | |
"close" === t && (delete v[n], | |
g.removeAllListeners(r + "open"), | |
g.removeAllListeners(r + "close"), | |
g.removeAllListeners(r + "error"), | |
g.removeAllListeners(r + "message")) | |
} | |
} | |
}); | |
var _ = function(e, t) { | |
f.get(this); | |
g.on("" + f.get(this) + e, Reporter.surroundThirdByTryCatch(t, "at socketTask.on" + e + " callback function")) | |
} | |
, y = function() { | |
function e(t, n) { | |
var r = this; | |
o(this, e), | |
this.CONNECTING = 0, | |
this.OPEN = 1, | |
this.CLOSING = 2, | |
this.CLOSED = 3, | |
this.readyState = this.CONNECTING; | |
var i = l++; | |
f.set(this, i), | |
p.set(this, n), | |
Object.defineProperty(this, "__socketInstance__", { | |
value: t, | |
writable: !1, | |
configurable: !1, | |
enumerable: !1 | |
}), | |
["success", "fail", "complete"].forEach(function(e) { | |
"function" == typeof n[e] && (n[e] = Reporter.surroundThirdByTryCatch(n[e], "at api connectSocket " + e + " callback function")) | |
}), | |
h.set(this, Date.now()); | |
var u = void 0; | |
(0, | |
a.invokeMethod)("createSocketTask", n, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("createSocketTask", "connectSocket") | |
}, | |
beforeSuccess: function(e) { | |
d.set(r, e.socketTaskId), | |
v[e.socketTaskId] = r | |
}, | |
beforeFail: function(e) { | |
var t = n.url | |
, o = Date.now() - h.get(r) | |
, a = n.__skipDomainCheck__; | |
u = e.errMsg, | |
(0, | |
c.reportNetworkAPI)("connectSocket", t, 2, o, u, "", a, 0) | |
} | |
}), | |
u && (this.readyState = this.CLOSED, | |
setTimeout(function() { | |
g.emit(i + "error", { | |
errMsg: u | |
}) | |
}, 0)) | |
} | |
return r(e, [{ | |
key: "send", | |
value: function(e) { | |
var t = this; | |
if (this.readyState === this.OPEN) { | |
var n = Date.now(); | |
(0, | |
a.invokeMethod)("operateSocketTask", Object.assign({}, e, { | |
operationType: "send", | |
socketTaskId: d.get(this) | |
}), { | |
beforeAll: function(o) { | |
if (o.errMsg = o.errMsg.replace("operateSocketTask", "sendSocketMessage"), | |
Math.random() > .99) { | |
var r = p.get(t).url | |
, a = o.errMsg.indexOf("ok") > -1 ? 1 : 2 | |
, i = Date.now() - n | |
, u = o.errMsg | |
, l = p.get(t).__skipDomainCheck__ | |
, f = (0, | |
s.getDataLength)(e.data); | |
(0, | |
c.reportNetworkAPI)("sendSocketMessage", r, a, i, u, "", l, f) | |
} | |
} | |
}) | |
} else | |
(0, | |
a.beforeInvokeFail)("SocketTask.send", e, "SocketTask.readState is not OPEN") | |
} | |
}, { | |
key: "close", | |
value: function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
a.invokeMethod)("operateSocketTask", Object.assign({}, e, { | |
operationType: "close", | |
code: 1e3, | |
socketTaskId: d.get(this) | |
}), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("operateSocketTask", "closeSocket") | |
} | |
}) | |
} | |
}, { | |
key: "onOpen", | |
value: function(e) { | |
_.call(this, "open", e) | |
} | |
}, { | |
key: "onClose", | |
value: function(e) { | |
_.call(this, "close", e) | |
} | |
}, { | |
key: "onMessage", | |
value: function(e) { | |
_.call(this, "message", e) | |
} | |
}, { | |
key: "onError", | |
value: function(e) { | |
_.call(this, "error", e) | |
} | |
}]), | |
e | |
}(); | |
t.SocketTask = y, | |
t.emitter = g, | |
t.socketTaskMap = v | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.addNativeDownloadTask = void 0; | |
var o = n(1) | |
, r = n(2); | |
t.addNativeDownloadTask = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ("ios" === (0, | |
r.getPlatform)()) | |
return void (0, | |
o.beforeInvokeFail)("addNativeDownloadTask", e, "iOS not supported"); | |
(0, | |
o.invokeMethod)("addNativeDownloadTask", e, {}) | |
} | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.cancelDownloadAppTask = t.queryDownloadAppTask = t.getAppInstallState = t.downloadApp = void 0; | |
var o = n(1) | |
, r = n(236) | |
, a = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(r) | |
, i = n(2); | |
t.downloadApp = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ("ios" === (0, | |
i.getPlatform)()) | |
return void (0, | |
o.beforeInvokeFail)("downloadApp", e, "iOS not supported"); | |
if (!(0, | |
o.beforeInvoke)("downloadApplication", e, { | |
taskName: "", | |
taskUrl: "", | |
fileMd5: "" | |
})) | |
return null; | |
e.fileType = e.fileType || 1; | |
try { | |
return new a.default(e) | |
} catch (t) { | |
return (0, | |
o.beforeInvokeFail)("downloadApp", e, t.message), | |
null | |
} | |
} | |
, | |
t.getAppInstallState = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
return "ios" === (0, | |
i.getPlatform)() ? void (0, | |
o.beforeInvokeFail)("getAppInstallState", e, "iOS not supported") : e.packageName || e.packageNameArray ? void (0, | |
o.invokeMethod)("getInstallState", e, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("getInstallState", "getAppInstallState") | |
} | |
}) : void (0, | |
o.beforeInvokeFail)("getAppInstallState", e, "parameter error: require packageName or packageNameArray") | |
} | |
, | |
t.queryDownloadAppTask = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
return "ios" === (0, | |
i.getPlatform)() ? void (0, | |
o.beforeInvokeFail)("queryDownloadAppTask", e, "iOS not supported") : e.downloadId || e.downloadIdArray || e.appIdArray ? void (0, | |
o.invokeMethod)("queryDownloadTask", e, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("queryDownloadTask", "queryDownloadAppTask"), | |
"download_succ" === e.state && (e.progress = 100), | |
(e.result || []).forEach(function(e) { | |
"download_succ" === e.state && (e.progress = 100) | |
}) | |
} | |
}) : void (0, | |
o.beforeInvokeFail)("queryDownloadAppTask", e, "parameter error: require downloadId or downloadIdArray or appIdArray") | |
} | |
, | |
t.cancelDownloadAppTask = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ("ios" === (0, | |
i.getPlatform)()) | |
return void (0, | |
o.beforeInvokeFail)("cancelDownloadAppTask", e, "iOS not supported"); | |
(0, | |
o.beforeInvoke)("cancelDownloadAppTask", e, { | |
downloadIdArray: [] | |
}) && (0, | |
o.invokeMethod)("cancelDownloadTask", e, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("cancelDownloadTask", "cancelDownloadAppTask") | |
} | |
}) | |
} | |
} | |
, function(e, t, n) { | |
function o(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function r(e) { | |
if (Array.isArray(e)) { | |
for (var t = 0, n = Array(e.length); t < e.length; t++) | |
n[t] = e[t]; | |
return n | |
} | |
return Array.from(e) | |
} | |
function a(e) { | |
var t = this | |
, n = e.success | |
, o = e.fail | |
, a = e.complete; | |
(0, | |
c.invokeMethod)("addDownloadTask", Object.assign(e, { | |
success: function(e) { | |
delete e.errMsg, | |
t.taskId = e.downloadId, | |
p.on(t.taskId + ":success", function(e) { | |
e.errMsg = "downloadApp:ok", | |
"function" == typeof n && n(e), | |
"function" == typeof a && a(e) | |
}), | |
p.on(t.taskId + ":fail", function(e) { | |
e.errMsg = "downloadFile:fail " + e.errMsg, | |
"function" == typeof o && o(e), | |
"function" == typeof a && a(e) | |
}); | |
var u = d.get(t) || []; | |
f.set(t, "ready"), | |
u.forEach(function(e) { | |
i.call.apply(i, [t, e[0]].concat(r(e[1]))) | |
}), | |
p.emit(t.taskId + ":created", e) | |
}, | |
fail: function(e) { | |
"function" == typeof o && o(e), | |
"function" == typeof a && a(e) | |
}, | |
complete: function() { | |
d.set(t, []) | |
} | |
}), { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace("addDownloadTask", "downloadApp") | |
} | |
}) | |
} | |
function i(e) { | |
for (var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) | |
n[o - 1] = arguments[o]; | |
if ("ready" !== f.get(this)) { | |
var r = d.get(this) || []; | |
return r.push([e, n]), | |
void d.set(this, r) | |
} | |
switch (e) { | |
case "cancel": | |
(0, | |
c.invokeMethod)("cancelDownloadTask", { | |
downloadIdArray: [this.taskId] | |
}); | |
break; | |
case "onProgressUpdate": | |
p.on(this.taskId + ":progressUpdate", function(e) { | |
"function" == typeof n[0] && Reporter.surroundThirdByTryCatch(n[0], "at DownloadAppTask.onProgressUpdate callback function")(e) | |
}); | |
break; | |
case "onCreated": | |
p.on(this.taskId + ":created", function(e) { | |
"function" == typeof n[0] && Reporter.surroundThirdByTryCatch(n[0], "at DownloadAppTask.onCreated callback function")(e) | |
}); | |
break; | |
default: | |
(0, | |
c.invokeMethod)(e + "DownloadTask", { | |
downloadId: this.taskId | |
}) | |
} | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var u = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}() | |
, c = n(1) | |
, s = n(14) | |
, l = function(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
}(s) | |
, f = new WeakMap | |
, d = new WeakMap | |
, p = new l.default; | |
(0, | |
c.onMethod)("onDownloadAppStateChange", function(e) { | |
var t = e.state | |
, n = e.downloadId; | |
e.appId; | |
switch (delete e.state, | |
delete e.downloadId, | |
delete e.appId, | |
t) { | |
case "download_succ": | |
p.emit(n + ":progressUpdate", e), | |
p.emit(n + ":success", e); | |
break; | |
case "download_failed": | |
p.emit(n + ":fail", e); | |
break; | |
case "download_progress_changed": | |
p.emit(n + ":progressUpdate", e) | |
} | |
"download_succ" !== t && "download_failed" !== t || (p.removeAllListeners(n + ":success"), | |
p.removeAllListeners(n + ":fail"), | |
p.removeAllListeners(n + ":progressUpdate")) | |
}); | |
var h = function() { | |
function e(t) { | |
o(this, e), | |
this.taskId = null, | |
["success", "fail", "complete"].forEach(function(e) { | |
"function" == typeof t[e] && (t[e] = Reporter.surroundThirdByTryCatch(t[e], "at api downloadApp " + e + " callback function")) | |
}), | |
a.call(this, t) | |
} | |
return u(e, [{ | |
key: "pause", | |
value: function() { | |
i.call(this, "pause") | |
} | |
}, { | |
key: "resume", | |
value: function() { | |
i.call(this, "resume") | |
} | |
}, { | |
key: "cancel", | |
value: function() { | |
i.call(this, "cancel") | |
} | |
}, { | |
key: "install", | |
value: function() { | |
i.call(this, "install") | |
} | |
}, { | |
key: "onCreated", | |
value: function(e) { | |
i.call(this, "onCreated", e) | |
} | |
}, { | |
key: "onProgressUpdate", | |
value: function(e) { | |
i.call(this, "onProgressUpdate", e) | |
} | |
}]), | |
e | |
}(); | |
t.default = h | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.calRqt = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("calRqt", e, { | |
rqt: "" | |
}) && (0, | |
o.invokeMethod)("calRqt", e) | |
}; | |
t.calRqt = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(239); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}); | |
var r = n(240); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.uploadEncryptedFileToCDN = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("uploadEncryptedFileToCDN", e, {}) | |
}; | |
t.uploadEncryptedFileToCDN = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.onUploadEncryptedFileToCDNProgress = void 0; | |
var o = n(1) | |
, r = function(e) { | |
(0, | |
o.onMethod)("onUploadEncryptedFileToCDNProgress", e) | |
}; | |
t.onUploadEncryptedFileToCDNProgress = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(242); | |
Object.keys(o).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return o[e] | |
} | |
}) | |
}); | |
var r = n(243); | |
Object.keys(r).forEach(function(e) { | |
"default" !== e && "__esModule" !== e && Object.defineProperty(t, e, { | |
enumerable: !0, | |
get: function() { | |
return r[e] | |
} | |
}) | |
}); | |
var a = n(244); | |
Object.defineProperty(t, "readFile", { | |
enumerable: !0, | |
get: function() { | |
return a.readFile | |
} | |
}); | |
var i = n(245); | |
Object.defineProperty(t, "writeFile", { | |
enumerable: !0, | |
get: function() { | |
return i.writeFile | |
} | |
}); | |
var u = n(246); | |
Object.defineProperty(t, "mkdir", { | |
enumerable: !0, | |
get: function() { | |
return u.mkdir | |
} | |
}); | |
var c = n(247); | |
Object.defineProperty(t, "rmdir", { | |
enumerable: !0, | |
get: function() { | |
return c.rmdir | |
} | |
}); | |
var s = n(248); | |
Object.defineProperty(t, "readdir", { | |
enumerable: !0, | |
get: function() { | |
return s.readdir | |
} | |
}); | |
var l = n(249); | |
Object.defineProperty(t, "access", { | |
enumerable: !0, | |
get: function() { | |
return l.access | |
} | |
}); | |
var f = n(250); | |
Object.defineProperty(t, "unlink", { | |
enumerable: !0, | |
get: function() { | |
return f.unlink | |
} | |
}); | |
var d = n(251); | |
Object.defineProperty(t, "stat", { | |
enumerable: !0, | |
get: function() { | |
return d.stat | |
} | |
}) | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.openDocument = t.removeSavedFile = t.getSavedFileInfo = t.getSavedFileList = t.saveFileSync = t.saveFile = void 0; | |
var o = n(1) | |
, r = function(e) { | |
(0, | |
o.beforeInvoke)("saveFile", e, { | |
tempFilePath: "" | |
}) && (0, | |
o.invokeMethod)("saveFile", e) | |
} | |
, a = function(e, t) { | |
if (!e || "string" != typeof e) | |
throw new Error("tempFilePath must be a string"); | |
if (void 0 !== t && "string" != typeof t) | |
throw new Error("filePath must be a string"); | |
var n = void 0 | |
, r = void 0; | |
if ((0, | |
o.invokeMethod)("saveFileSync", { | |
tempFilePath: e, | |
filePath: t, | |
success: function(e) { | |
r = e.savedFilePath | |
}, | |
fail: function(e) { | |
n = e.errMsg | |
} | |
}), | |
n) | |
throw new Error(n); | |
return r | |
} | |
, i = function(e) { | |
(0, | |
o.beforeInvoke)("openDocument", e, { | |
filePath: "" | |
}) && (0, | |
o.invokeMethod)("openDocument", e) | |
} | |
, u = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.invokeMethod)("getSavedFileList", e) | |
} | |
, c = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("getSavedFileInfo", e, { | |
filePath: "" | |
}) && (0, | |
o.invokeMethod)("getSavedFileInfo", e) | |
} | |
, s = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("removeSavedFile", e, { | |
filePath: "" | |
}) && (0, | |
o.invokeMethod)("removeSavedFile", e) | |
}; | |
t.saveFile = r, | |
t.saveFileSync = a, | |
t.getSavedFileList = u, | |
t.getSavedFileInfo = c, | |
t.removeSavedFile = s, | |
t.openDocument = i | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getFileInfo = void 0; | |
var o = n(1) | |
, r = n(2) | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
o.beforeInvoke)("getFileInfo", e, { | |
filePath: "" | |
})) { | |
if (void 0 !== e.digestAlgorithm) { | |
var t = (0, | |
r.paramCheck)(e, { | |
digestAlgorithm: "" | |
}); | |
if (t) | |
return void (0, | |
o.beforeInvokeFail)("getFileInfo", e, "parameter error: " + t); | |
if (-1 === ["md5", "sha1"].indexOf(e.digestAlgorithm)) | |
return void (0, | |
o.beforeInvokeFail)("getFileInfo", e, 'parameter error: invalid digestAlgorithm "' + e.digestAlgorithm + '"') | |
} | |
(0, | |
o.invokeMethod)("getFileInfo", e, {}) | |
} | |
}; | |
t.getFileInfo = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.readFileSync = t.readFile = void 0; | |
var o = n(1) | |
, r = (n(2), | |
function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("readFile", e, { | |
filePath: "" | |
}) && (0, | |
o.invokeMethod)("readFile", e) | |
} | |
) | |
, a = function(e, t) { | |
if (!e || "string" != typeof e) | |
throw new Error("filePath must be a string"); | |
if (t && "string" != typeof t) | |
throw new Error("encoding must be a string"); | |
var n = void 0 | |
, r = void 0; | |
if ((0, | |
o.invokeMethod)("readFileSync", { | |
filePath: e, | |
encoding: t, | |
success: function(e) { | |
n = e.data | |
}, | |
fail: function(e) { | |
r = e.errMsg | |
} | |
}), | |
r) | |
throw new Error(r); | |
return n | |
}; | |
t.readFile = r, | |
t.readFileSync = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.writeFileSync = t.writeFile = void 0; | |
var o = n(1) | |
, r = ["ascii", "base64", "binary", "hex", "ucs2", "ucs-2", "utf16le", "utf-16le", "utf8", "utf-8", "latin1"] | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
o.beforeInvoke)("writeFile", e, { | |
filePath: "" | |
})) | |
return e.encoding && -1 === r.indexOf(e.encoding) ? void (0, | |
o.beforeInvokeFail)("writeFile", e, 'invalid encoding "' + e.encoding + '"') : void (0, | |
o.invokeMethod)("writeFile", e, {}) | |
} | |
, i = function(e, t, n) { | |
if (!e || "string" != typeof e) | |
throw new Error("path must be a string"); | |
if (n && -1 === r.indexOf(n)) | |
throw new Error('invalid encoding "' + n + '"'); | |
var a = void 0; | |
if ((0, | |
o.invokeMethod)("writeFileSync", { | |
filePath: e, | |
data: t, | |
encoding: n, | |
fail: function(e) { | |
a = e.errMsg | |
} | |
}), | |
a) | |
throw new Error(a) | |
}; | |
t.writeFile = a, | |
t.writeFileSync = i | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.mkdirSync = t.mkdir = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("mkdir", e, { | |
dirPath: "" | |
}) && (0, | |
o.invokeMethod)("mkdir", e) | |
} | |
, a = function(e) { | |
if (!e || "string" != typeof e) | |
throw new TypeError("dirPath must be a string"); | |
var t = void 0; | |
if ((0, | |
o.invokeMethod)("mkdirSync", { | |
dirPath: e, | |
fail: function(e) { | |
t = e.errMsg | |
} | |
}), | |
t) | |
throw new Error(t) | |
}; | |
t.mkdir = r, | |
t.mkdirSync = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.rmdirSync = t.rmdir = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("rmdir", e, { | |
dirPath: "" | |
}) && (0, | |
o.invokeMethod)("rmdir", e) | |
} | |
, a = function(e) { | |
if (!e || "string" != typeof e) | |
throw new Error("dirPath must be a string"); | |
var t = void 0; | |
if ((0, | |
o.invokeMethod)("rmdirSync", { | |
dirPath: e, | |
fail: function(e) { | |
t = e.errMsg | |
} | |
}), | |
t) | |
throw new Error(t) | |
}; | |
t.rmdir = r, | |
t.rmdirSync = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.readdirSync = t.readdir = void 0; | |
var o = n(1) | |
, r = n(106) | |
, a = function(e) { | |
var t = r.FakeTempFilePathMap.get(); | |
e.files = e.files.filter(function(e) { | |
return -1 === t.indexOf(e) | |
}) | |
} | |
, i = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("readdir", e, { | |
dirPath: "" | |
}) && (0, | |
o.invokeMethod)("readdir", e, { | |
beforeSuccess: a | |
}) | |
} | |
, u = function(e) { | |
if (!e || "string" != typeof e) | |
throw new TypeError("dirPath must be a string"); | |
var t = void 0 | |
, n = void 0; | |
if ((0, | |
o.invokeMethod)("readdirSync", { | |
dirPath: e, | |
success: function(e) { | |
t = e.files | |
}, | |
fail: function(e) { | |
n = e.errMsg | |
} | |
}, { | |
beforeSuccess: a | |
}), | |
n) | |
throw new Error(n); | |
return t | |
}; | |
t.readdir = i, | |
t.readdirSync = u | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.accessSync = t.access = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("access", e, { | |
path: "" | |
}) && (0, | |
o.invokeMethod)("access", e) | |
} | |
, a = function(e) { | |
if (!e || "string" != typeof e) | |
throw new TypeError("path must be a string"); | |
var t = void 0; | |
if ((0, | |
o.invokeMethod)("accessSync", { | |
path: e, | |
fail: function(e) { | |
t = e.errMsg | |
} | |
}), | |
t) | |
throw new Error(t) | |
}; | |
t.access = r, | |
t.accessSync = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.unlinkSync = t.unlink = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("unlink", e, { | |
filePath: "" | |
}) && (0, | |
o.invokeMethod)("unlink", e) | |
} | |
, a = function(e) { | |
if (!e || "string" != typeof e) | |
throw new Error("filePath must be a string"); | |
var t = void 0; | |
if ((0, | |
o.invokeMethod)("unlink", { | |
filePath: e, | |
fail: function(e) { | |
t = e.errMsg | |
} | |
}), | |
t) | |
throw new Error(t) | |
}; | |
t.unlink = r, | |
t.unlinkSync = a | |
} | |
, function(e, t, n) { | |
function o(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.statSync = t.stat = void 0; | |
var r = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), | |
o && e(t, o), | |
t | |
} | |
}() | |
, a = n(1) | |
, i = function() { | |
function e(t) { | |
var n = t.mode | |
, r = t.size | |
, a = t.lastAccessedTime | |
, i = t.lastModifiedTime; | |
o(this, e), | |
this.mode = n, | |
this.size = r, | |
this.lastAccessedTime = a, | |
this.lastModifiedTime = i | |
} | |
return r(e, [{ | |
key: "_checkModeProperty", | |
value: function(e) { | |
return (61440 & this.mode) === e | |
} | |
}, { | |
key: "isDirectory", | |
value: function() { | |
return this._checkModeProperty(16384) | |
} | |
}, { | |
key: "isFile", | |
value: function() { | |
return this._checkModeProperty(32768) | |
} | |
}]), | |
e | |
}() | |
, u = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
a.beforeInvoke)("stat", e, { | |
path: "" | |
}) && (0, | |
a.invokeMethod)("stat", e, { | |
beforeSuccess: function(e) { | |
e.stats = new i(e), | |
delete e.mode, | |
delete e.size, | |
delete e.lastAccessedTime, | |
delete e.lastModifiedTime | |
} | |
}) | |
} | |
, c = function(e) { | |
if (!e || "string" != typeof e) | |
throw new Error("path must be a string"); | |
var t = void 0 | |
, n = void 0; | |
if ((0, | |
a.invokeMethod)("statSync", { | |
path: e, | |
success: function(e) { | |
t = new i(e) | |
}, | |
fail: function(e) { | |
n = e.errMsg | |
} | |
}), | |
n) | |
throw new Error(n); | |
return t | |
}; | |
t.stat = u, | |
t.statSync = c | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.getFileSystemManager = void 0; | |
var o = n(242) | |
, r = n(243) | |
, a = n(244) | |
, i = n(245) | |
, u = n(246) | |
, c = n(247) | |
, s = n(248) | |
, l = n(249) | |
, f = n(250) | |
, d = n(251) | |
, p = n(253) | |
, h = n(254) | |
, v = n(255) | |
, g = n(256) | |
, _ = { | |
saveFile: o.saveFile, | |
saveFileSync: o.saveFileSync, | |
getSavedFileList: o.getSavedFileList, | |
getSavedFileInfo: o.getSavedFileInfo, | |
removeSavedFile: o.removeSavedFile, | |
getFileInfo: r.getFileInfo, | |
readFile: a.readFile, | |
readFileSync: a.readFileSync, | |
writeFile: i.writeFile, | |
writeFileSync: i.writeFileSync, | |
mkdir: u.mkdir, | |
mkdirSync: u.mkdirSync, | |
rmdir: c.rmdir, | |
rmdirSync: c.rmdirSync, | |
readdir: s.readdir, | |
readdirSync: s.readdirSync, | |
access: l.access, | |
accessSync: l.accessSync, | |
unlink: f.unlink, | |
unlinkSync: f.unlinkSync, | |
stat: d.stat, | |
statSync: d.statSync, | |
unzip: p.unzip, | |
copyFile: h.copyFile, | |
copyFileSync: h.copyFileSync, | |
rename: v.rename, | |
renameSync: v.renameSync, | |
appendFile: g.appendFile, | |
appendFileSync: g.appendFileSync | |
} | |
, y = function() { | |
return _ | |
}; | |
t.getFileSystemManager = y | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.unzip = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("unzip", e, { | |
zipFilePath: "", | |
targetPath: "" | |
}) && (0, | |
o.invokeMethod)("unzip", Object.assign({}, e, { | |
targetDirectory: e.targetPath | |
})) | |
}; | |
t.unzip = r | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.copyFileSync = t.copyFile = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("copyFile", e, { | |
srcPath: "", | |
destPath: "" | |
}) && (0, | |
o.invokeMethod)("fs_copyFile", e, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace(/^fs_/, "") | |
} | |
}) | |
} | |
, a = function(e, t) { | |
if (!e || "string" != typeof e) | |
throw new Error("srcPath must be a string"); | |
if (!t || "string" != typeof t) | |
throw new Error("destPath must be a string"); | |
var n = void 0; | |
if ((0, | |
o.invokeMethod)("fs_copyFileSync", { | |
srcPath: e, | |
destPath: t, | |
fail: function(e) { | |
n = e.errMsg.replace(/^fs_/, "") | |
} | |
}), | |
n) | |
throw new Error(n) | |
}; | |
t.copyFile = r, | |
t.copyFileSync = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.renameSync = t.rename = void 0; | |
var o = n(1) | |
, r = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
o.beforeInvoke)("rename", e, { | |
oldPath: "", | |
newPath: "" | |
}) && (0, | |
o.invokeMethod)("fs_rename", e, { | |
beforeAll: function(e) { | |
e.errMsg = e.errMsg.replace(/^fs_/, "") | |
} | |
}) | |
} | |
, a = function(e, t) { | |
if (!e || "string" != typeof e) | |
throw new Error("oldPath must be a string"); | |
if (!t || "string" != typeof t) | |
throw new Error("newPath must be a string"); | |
var n = void 0; | |
if ((0, | |
o.invokeMethod)("fs_renameSync", { | |
oldPath: e, | |
newPath: t, | |
fail: function(e) { | |
n = e.errMsg.replace(/^fs_/, "") | |
} | |
}), | |
n) | |
throw new Error(n) | |
}; | |
t.rename = r, | |
t.renameSync = a | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.appendFileSync = t.appendFile = void 0; | |
var o = n(1) | |
, r = ["ascii", "base64", "binary", "hex", "ucs2", "ucs-2", "utf16le", "utf-16le", "utf8", "utf-8", "latin1"] | |
, a = function() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
if ((0, | |
o.beforeInvoke)("appendFile", e, { | |
filePath: "" | |
})) | |
return e.encoding && -1 === r.indexOf(e.encoding) ? void (0, | |
o.beforeInvokeFail)("appendFile", e, 'invalid encoding "' + e.encoding + '"') : void (0, | |
o.invokeMethod)("fs_appendFile", e, {}) | |
} | |
, i = function(e, t, n) { | |
if (!e || "string" != typeof e) | |
throw new Error("path must be a string"); | |
if (n && -1 === r.indexOf(n)) | |
throw new Error('invalid encoding "' + n + '"'); | |
var a = void 0; | |
if ((0, | |
o.invokeMethod)("fs_appendFileSync", { | |
filePath: e, | |
data: t, | |
encoding: n, | |
fail: function(e) { | |
a = e.errMsg | |
} | |
}), | |
a) | |
throw new Error(a) | |
}; | |
t.appendFile = a, | |
t.appendFileSync = i | |
} | |
, function(e, t, n) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(258); | |
Object.defineProperty(t, "canIUse", { | |
enumerable: !0, | |
get: function() { | |
return o.canIUse | |
} | |
}) | |
} | |
, function(e, t, n) { | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function r(e) { | |
if (Array.isArray(e)) { | |
for (var t = 0, n = Array(e.length); t < e.length; t++) | |
n[t] = e[t]; | |
return n | |
} | |
return Array.from(e) | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), | |
t.canIUse = void 0; | |
var a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { | |
return typeof e | |
} | |
: function(e) { | |
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
} | |
, i = n(259) | |
, u = o(i) | |
, c = n(260) | |
, s = o(c) | |
, l = n(2) | |
, f = n(150) | |
, d = o(f) | |
, p = (Object.keys(u.default), | |
Object.keys(s.default), | |
function(e, t, n) { | |
if (!t) | |
return []; | |
var o = Object.keys(n) | |
, r = o.indexOf(t); | |
if (-1 === r) | |
return []; | |
var a = n[o[r]]; | |
return Object.keys(a).filter(function(t) { | |
return (0, | |
l.compareVersion)(t, e) <= 0 | |
}) | |
} | |
) | |
, h = function(e, t, n) { | |
for (var o = void 0, r = 0; r < e.length; r++) | |
for (var i = t[e[r]], u = 0; u < i.length; u++) { | |
var c = i[u]; | |
if ("string" == typeof c && c === n) { | |
void 0 === o && (o = []); | |
break | |
} | |
if ("object" === (void 0 === c ? "undefined" : a(c)) && c.hasOwnProperty(n)) { | |
o = void 0 === o ? c[n] : o.concat(c[n]); | |
break | |
} | |
} | |
return o | |
} | |
, v = function(e, t) { | |
for (var n = 0; n < e.length; n++) { | |
if ("string" == typeof e[n] && e[n] === t) | |
return []; | |
if ("object" === a(e[n]) && e[n].hasOwnProperty(t)) | |
return e[n][t] | |
} | |
} | |
, g = function(e, t, n) { | |
return h(e, t, n) | |
} | |
, _ = function(e, t, n) { | |
return h(e, t, n) | |
} | |
, y = f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment