jubo-sdk 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +383 -383
- package/dist/index.cjs.js +203 -216
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +203 -216
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +203 -216
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -0
- package/package.json +6 -6
package/dist/index.cjs.js
CHANGED
|
@@ -4,11 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
6
|
|
|
7
|
-
function
|
|
8
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
var fails$o = function (exec) {
|
|
7
|
+
var fails$n = function (exec) {
|
|
12
8
|
try {
|
|
13
9
|
return !!exec();
|
|
14
10
|
} catch (error) {
|
|
@@ -16,17 +12,17 @@ var fails$o = function (exec) {
|
|
|
16
12
|
}
|
|
17
13
|
};
|
|
18
14
|
|
|
19
|
-
var fails$
|
|
15
|
+
var fails$m = fails$n;
|
|
20
16
|
|
|
21
17
|
// Detect IE8's incomplete defineProperty implementation
|
|
22
|
-
var descriptors = !fails$
|
|
18
|
+
var descriptors = !fails$m(function () {
|
|
23
19
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
24
20
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
25
21
|
});
|
|
26
22
|
|
|
27
|
-
var fails$
|
|
23
|
+
var fails$l = fails$n;
|
|
28
24
|
|
|
29
|
-
var functionBindNative = !fails$
|
|
25
|
+
var functionBindNative = !fails$l(function () {
|
|
30
26
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
31
27
|
var test = (function () { /* empty */ }).bind();
|
|
32
28
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -68,12 +64,12 @@ var $Object$3 = Object;
|
|
|
68
64
|
|
|
69
65
|
// `ToObject` abstract operation
|
|
70
66
|
// https://tc39.es/ecma262/#sec-toobject
|
|
71
|
-
var toObject$
|
|
67
|
+
var toObject$6 = function (argument) {
|
|
72
68
|
return $Object$3(requireObjectCoercible$5(argument));
|
|
73
69
|
};
|
|
74
70
|
|
|
75
71
|
var uncurryThis$q = functionUncurryThis;
|
|
76
|
-
var toObject$
|
|
72
|
+
var toObject$5 = toObject$6;
|
|
77
73
|
|
|
78
74
|
var hasOwnProperty = uncurryThis$q({}.hasOwnProperty);
|
|
79
75
|
|
|
@@ -81,7 +77,7 @@ var hasOwnProperty = uncurryThis$q({}.hasOwnProperty);
|
|
|
81
77
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
82
78
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
83
79
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
84
|
-
return hasOwnProperty(toObject$
|
|
80
|
+
return hasOwnProperty(toObject$5(it), key);
|
|
85
81
|
};
|
|
86
82
|
|
|
87
83
|
var DESCRIPTORS$c = descriptors;
|
|
@@ -102,7 +98,11 @@ var functionName = {
|
|
|
102
98
|
CONFIGURABLE: CONFIGURABLE$1
|
|
103
99
|
};
|
|
104
100
|
|
|
105
|
-
var
|
|
101
|
+
var makeBuiltInExports = {};
|
|
102
|
+
var makeBuiltIn$3 = {
|
|
103
|
+
get exports(){ return makeBuiltInExports; },
|
|
104
|
+
set exports(v){ makeBuiltInExports = v; },
|
|
105
|
+
};
|
|
106
106
|
|
|
107
107
|
var documentAll$2 = typeof document == 'object' && document.all;
|
|
108
108
|
|
|
@@ -132,7 +132,7 @@ var check = function (it) {
|
|
|
132
132
|
};
|
|
133
133
|
|
|
134
134
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
135
|
-
var global$
|
|
135
|
+
var global$m =
|
|
136
136
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
137
137
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
138
138
|
check(typeof window == 'object' && window) ||
|
|
@@ -140,26 +140,26 @@ var global$n =
|
|
|
140
140
|
check(typeof self == 'object' && self) ||
|
|
141
141
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
142
142
|
// eslint-disable-next-line no-new-func -- fallback
|
|
143
|
-
(function () { return this; })() ||
|
|
143
|
+
(function () { return this; })() || Function('return this')();
|
|
144
144
|
|
|
145
|
-
var global$
|
|
145
|
+
var global$l = global$m;
|
|
146
146
|
|
|
147
147
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
148
148
|
var defineProperty$7 = Object.defineProperty;
|
|
149
149
|
|
|
150
150
|
var defineGlobalProperty$3 = function (key, value) {
|
|
151
151
|
try {
|
|
152
|
-
defineProperty$7(global$
|
|
152
|
+
defineProperty$7(global$l, key, { value: value, configurable: true, writable: true });
|
|
153
153
|
} catch (error) {
|
|
154
|
-
global$
|
|
154
|
+
global$l[key] = value;
|
|
155
155
|
} return value;
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
-
var global$
|
|
158
|
+
var global$k = global$m;
|
|
159
159
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
160
160
|
|
|
161
161
|
var SHARED = '__core-js_shared__';
|
|
162
|
-
var store$3 = global$
|
|
162
|
+
var store$3 = global$k[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
163
163
|
|
|
164
164
|
var sharedStore = store$3;
|
|
165
165
|
|
|
@@ -178,10 +178,10 @@ if (!isCallable$j(store$2.inspectSource)) {
|
|
|
178
178
|
|
|
179
179
|
var inspectSource$3 = store$2.inspectSource;
|
|
180
180
|
|
|
181
|
-
var global$
|
|
181
|
+
var global$j = global$m;
|
|
182
182
|
var isCallable$i = isCallable$k;
|
|
183
183
|
|
|
184
|
-
var WeakMap$1 = global$
|
|
184
|
+
var WeakMap$1 = global$j.WeakMap;
|
|
185
185
|
|
|
186
186
|
var weakMapBasicDetection = isCallable$i(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
187
187
|
|
|
@@ -198,10 +198,10 @@ var isObject$a = $documentAll.IS_HTMLDDA ? function (it) {
|
|
|
198
198
|
|
|
199
199
|
var objectDefineProperty = {};
|
|
200
200
|
|
|
201
|
-
var global$
|
|
201
|
+
var global$i = global$m;
|
|
202
202
|
var isObject$9 = isObject$a;
|
|
203
203
|
|
|
204
|
-
var document$3 = global$
|
|
204
|
+
var document$3 = global$i.document;
|
|
205
205
|
// typeof document.createElement is 'object' in old IE
|
|
206
206
|
var EXISTS = isObject$9(document$3) && isObject$9(document$3.createElement);
|
|
207
207
|
|
|
@@ -210,11 +210,11 @@ var documentCreateElement$2 = function (it) {
|
|
|
210
210
|
};
|
|
211
211
|
|
|
212
212
|
var DESCRIPTORS$b = descriptors;
|
|
213
|
-
var fails$
|
|
213
|
+
var fails$k = fails$n;
|
|
214
214
|
var createElement$1 = documentCreateElement$2;
|
|
215
215
|
|
|
216
216
|
// Thanks to IE8 for its funny defineProperty
|
|
217
|
-
var ie8DomDefine = !DESCRIPTORS$b && !fails$
|
|
217
|
+
var ie8DomDefine = !DESCRIPTORS$b && !fails$k(function () {
|
|
218
218
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
219
219
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
220
220
|
get: function () { return 7; }
|
|
@@ -222,11 +222,11 @@ var ie8DomDefine = !DESCRIPTORS$b && !fails$l(function () {
|
|
|
222
222
|
});
|
|
223
223
|
|
|
224
224
|
var DESCRIPTORS$a = descriptors;
|
|
225
|
-
var fails$
|
|
225
|
+
var fails$j = fails$n;
|
|
226
226
|
|
|
227
227
|
// V8 ~ Chrome 36-
|
|
228
228
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
229
|
-
var v8PrototypeDefineBug = DESCRIPTORS$a && fails$
|
|
229
|
+
var v8PrototypeDefineBug = DESCRIPTORS$a && fails$j(function () {
|
|
230
230
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
231
231
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
232
232
|
value: 42,
|
|
@@ -236,13 +236,13 @@ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$k(function () {
|
|
|
236
236
|
|
|
237
237
|
var isObject$8 = isObject$a;
|
|
238
238
|
|
|
239
|
-
var $String$
|
|
239
|
+
var $String$4 = String;
|
|
240
240
|
var $TypeError$e = TypeError;
|
|
241
241
|
|
|
242
242
|
// `Assert: Type(argument) is Object`
|
|
243
243
|
var anObject$f = function (argument) {
|
|
244
244
|
if (isObject$8(argument)) return argument;
|
|
245
|
-
throw $TypeError$e($String$
|
|
245
|
+
throw $TypeError$e($String$4(argument) + ' is not an object');
|
|
246
246
|
};
|
|
247
247
|
|
|
248
248
|
var NATIVE_BIND$2 = functionBindNative;
|
|
@@ -253,7 +253,7 @@ var functionCall = NATIVE_BIND$2 ? call$h.bind(call$h) : function () {
|
|
|
253
253
|
return call$h.apply(call$h, arguments);
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
var global$
|
|
256
|
+
var global$h = global$m;
|
|
257
257
|
var isCallable$g = isCallable$k;
|
|
258
258
|
|
|
259
259
|
var aFunction = function (argument) {
|
|
@@ -261,7 +261,7 @@ var aFunction = function (argument) {
|
|
|
261
261
|
};
|
|
262
262
|
|
|
263
263
|
var getBuiltIn$7 = function (namespace, method) {
|
|
264
|
-
return arguments.length < 2 ? aFunction(global$
|
|
264
|
+
return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method];
|
|
265
265
|
};
|
|
266
266
|
|
|
267
267
|
var uncurryThis$o = functionUncurryThis;
|
|
@@ -270,50 +270,45 @@ var objectIsPrototypeOf = uncurryThis$o({}.isPrototypeOf);
|
|
|
270
270
|
|
|
271
271
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
272
272
|
|
|
273
|
-
var global$
|
|
273
|
+
var global$g = global$m;
|
|
274
274
|
var userAgent$3 = engineUserAgent;
|
|
275
275
|
|
|
276
|
-
var process$4 = global$
|
|
277
|
-
var Deno$1 = global$
|
|
276
|
+
var process$4 = global$g.process;
|
|
277
|
+
var Deno$1 = global$g.Deno;
|
|
278
278
|
var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
|
|
279
279
|
var v8 = versions && versions.v8;
|
|
280
|
-
var match, version$
|
|
280
|
+
var match, version$1;
|
|
281
281
|
|
|
282
282
|
if (v8) {
|
|
283
283
|
match = v8.split('.');
|
|
284
284
|
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
285
285
|
// but their correct versions are not interesting for us
|
|
286
|
-
version$
|
|
286
|
+
version$1 = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
290
290
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
291
|
-
if (!version$
|
|
291
|
+
if (!version$1 && userAgent$3) {
|
|
292
292
|
match = userAgent$3.match(/Edge\/(\d+)/);
|
|
293
293
|
if (!match || match[1] >= 74) {
|
|
294
294
|
match = userAgent$3.match(/Chrome\/(\d+)/);
|
|
295
|
-
if (match) version$
|
|
295
|
+
if (match) version$1 = +match[1];
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
var engineV8Version = version$
|
|
299
|
+
var engineV8Version = version$1;
|
|
300
300
|
|
|
301
301
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
302
302
|
|
|
303
303
|
var V8_VERSION$3 = engineV8Version;
|
|
304
|
-
var fails$
|
|
305
|
-
var global$g = global$n;
|
|
306
|
-
|
|
307
|
-
var $String$4 = global$g.String;
|
|
304
|
+
var fails$i = fails$n;
|
|
308
305
|
|
|
309
306
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
310
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
307
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$i(function () {
|
|
311
308
|
var symbol = Symbol();
|
|
312
309
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
313
310
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
314
|
-
|
|
315
|
-
// of course, fail.
|
|
316
|
-
return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
311
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
317
312
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
318
313
|
!Symbol.sham && V8_VERSION$3 && V8_VERSION$3 < 41;
|
|
319
314
|
});
|
|
@@ -387,7 +382,11 @@ var ordinaryToPrimitive$1 = function (input, pref) {
|
|
|
387
382
|
throw $TypeError$c("Can't convert object to primitive value");
|
|
388
383
|
};
|
|
389
384
|
|
|
390
|
-
var
|
|
385
|
+
var sharedExports = {};
|
|
386
|
+
var shared$4 = {
|
|
387
|
+
get exports(){ return sharedExports; },
|
|
388
|
+
set exports(v){ sharedExports = v; },
|
|
389
|
+
};
|
|
391
390
|
|
|
392
391
|
var isPure = false;
|
|
393
392
|
|
|
@@ -396,15 +395,13 @@ var store$1 = sharedStore;
|
|
|
396
395
|
(shared$4.exports = function (key, value) {
|
|
397
396
|
return store$1[key] || (store$1[key] = value !== undefined ? value : {});
|
|
398
397
|
})('versions', []).push({
|
|
399
|
-
version: '3.
|
|
398
|
+
version: '3.30.1',
|
|
400
399
|
mode: 'global',
|
|
401
400
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
402
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
401
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE',
|
|
403
402
|
source: 'https://github.com/zloirock/core-js'
|
|
404
403
|
});
|
|
405
404
|
|
|
406
|
-
var sharedExports = shared$4.exports;
|
|
407
|
-
|
|
408
405
|
var uncurryThis$n = functionUncurryThis;
|
|
409
406
|
|
|
410
407
|
var id = 0;
|
|
@@ -415,7 +412,7 @@ var uid$2 = function (key) {
|
|
|
415
412
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$9(++id + postfix, 36);
|
|
416
413
|
};
|
|
417
414
|
|
|
418
|
-
var global$f = global$
|
|
415
|
+
var global$f = global$m;
|
|
419
416
|
var shared$3 = sharedExports;
|
|
420
417
|
var hasOwn$9 = hasOwnProperty_1;
|
|
421
418
|
var uid$1 = uid$2;
|
|
@@ -546,7 +543,7 @@ var sharedKey$2 = function (key) {
|
|
|
546
543
|
var hiddenKeys$4 = {};
|
|
547
544
|
|
|
548
545
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
549
|
-
var global$e = global$
|
|
546
|
+
var global$e = global$m;
|
|
550
547
|
var isObject$5 = isObject$a;
|
|
551
548
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
552
549
|
var hasOwn$8 = hasOwnProperty_1;
|
|
@@ -617,7 +614,7 @@ var internalState = {
|
|
|
617
614
|
};
|
|
618
615
|
|
|
619
616
|
var uncurryThis$m = functionUncurryThis;
|
|
620
|
-
var fails$
|
|
617
|
+
var fails$h = fails$n;
|
|
621
618
|
var isCallable$c = isCallable$k;
|
|
622
619
|
var hasOwn$7 = hasOwnProperty_1;
|
|
623
620
|
var DESCRIPTORS$7 = descriptors;
|
|
@@ -634,7 +631,7 @@ var stringSlice$6 = uncurryThis$m(''.slice);
|
|
|
634
631
|
var replace$3 = uncurryThis$m(''.replace);
|
|
635
632
|
var join = uncurryThis$m([].join);
|
|
636
633
|
|
|
637
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$7 && !fails$
|
|
634
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$7 && !fails$h(function () {
|
|
638
635
|
return defineProperty$6(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
639
636
|
});
|
|
640
637
|
|
|
@@ -671,8 +668,6 @@ Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
|
671
668
|
return isCallable$c(this) && getInternalState$1(this).source || inspectSource$2(this);
|
|
672
669
|
}, 'toString');
|
|
673
670
|
|
|
674
|
-
var makeBuiltInExports = makeBuiltIn$3.exports;
|
|
675
|
-
|
|
676
671
|
var makeBuiltIn$1 = makeBuiltInExports;
|
|
677
672
|
var defineProperty$5 = objectDefineProperty;
|
|
678
673
|
|
|
@@ -800,14 +795,14 @@ var classofRaw$2 = function (it) {
|
|
|
800
795
|
};
|
|
801
796
|
|
|
802
797
|
var uncurryThis$j = functionUncurryThis;
|
|
803
|
-
var fails$
|
|
798
|
+
var fails$g = fails$n;
|
|
804
799
|
var classof$8 = classofRaw$2;
|
|
805
800
|
|
|
806
801
|
var $Object$1 = Object;
|
|
807
802
|
var split = uncurryThis$j(''.split);
|
|
808
803
|
|
|
809
804
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
810
|
-
var indexedObject = fails$
|
|
805
|
+
var indexedObject = fails$g(function () {
|
|
811
806
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
812
807
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
813
808
|
return !$Object$1('z').propertyIsEnumerable(0);
|
|
@@ -1042,7 +1037,7 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
|
1042
1037
|
}
|
|
1043
1038
|
};
|
|
1044
1039
|
|
|
1045
|
-
var fails$
|
|
1040
|
+
var fails$f = fails$n;
|
|
1046
1041
|
var isCallable$a = isCallable$k;
|
|
1047
1042
|
|
|
1048
1043
|
var replacement = /#|\.prototype\./;
|
|
@@ -1051,7 +1046,7 @@ var isForced$3 = function (feature, detection) {
|
|
|
1051
1046
|
var value = data[normalize(feature)];
|
|
1052
1047
|
return value == POLYFILL ? true
|
|
1053
1048
|
: value == NATIVE ? false
|
|
1054
|
-
: isCallable$a(detection) ? fails$
|
|
1049
|
+
: isCallable$a(detection) ? fails$f(detection)
|
|
1055
1050
|
: !!detection;
|
|
1056
1051
|
};
|
|
1057
1052
|
|
|
@@ -1065,7 +1060,7 @@ var POLYFILL = isForced$3.POLYFILL = 'P';
|
|
|
1065
1060
|
|
|
1066
1061
|
var isForced_1 = isForced$3;
|
|
1067
1062
|
|
|
1068
|
-
var global$d = global$
|
|
1063
|
+
var global$d = global$m;
|
|
1069
1064
|
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
1070
1065
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
1071
1066
|
var defineBuiltIn$5 = defineBuiltIn$6;
|
|
@@ -1193,7 +1188,7 @@ var classof$6 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
|
|
1193
1188
|
};
|
|
1194
1189
|
|
|
1195
1190
|
var uncurryThis$e = functionUncurryThis;
|
|
1196
|
-
var fails$
|
|
1191
|
+
var fails$e = fails$n;
|
|
1197
1192
|
var isCallable$8 = isCallable$k;
|
|
1198
1193
|
var classof$5 = classof$6;
|
|
1199
1194
|
var getBuiltIn$4 = getBuiltIn$7;
|
|
@@ -1237,7 +1232,7 @@ isConstructorLegacy.sham = true;
|
|
|
1237
1232
|
|
|
1238
1233
|
// `IsConstructor` abstract operation
|
|
1239
1234
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1240
|
-
var isConstructor$2 = !construct || fails$
|
|
1235
|
+
var isConstructor$2 = !construct || fails$e(function () {
|
|
1241
1236
|
var called;
|
|
1242
1237
|
return isConstructorModern(isConstructorModern.call)
|
|
1243
1238
|
|| !isConstructorModern(Object)
|
|
@@ -1279,7 +1274,7 @@ var arraySpeciesCreate$2 = function (originalArray, length) {
|
|
|
1279
1274
|
var bind$4 = functionBindContext;
|
|
1280
1275
|
var uncurryThis$d = functionUncurryThis;
|
|
1281
1276
|
var IndexedObject$2 = indexedObject;
|
|
1282
|
-
var toObject$
|
|
1277
|
+
var toObject$4 = toObject$6;
|
|
1283
1278
|
var lengthOfArrayLike$3 = lengthOfArrayLike$5;
|
|
1284
1279
|
var arraySpeciesCreate$1 = arraySpeciesCreate$2;
|
|
1285
1280
|
|
|
@@ -1295,7 +1290,7 @@ var createMethod$3 = function (TYPE) {
|
|
|
1295
1290
|
var IS_FILTER_REJECT = TYPE == 7;
|
|
1296
1291
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
1297
1292
|
return function ($this, callbackfn, that, specificCreate) {
|
|
1298
|
-
var O = toObject$
|
|
1293
|
+
var O = toObject$4($this);
|
|
1299
1294
|
var self = IndexedObject$2(O);
|
|
1300
1295
|
var boundFunction = bind$4(callbackfn, that);
|
|
1301
1296
|
var length = lengthOfArrayLike$3(self);
|
|
@@ -1350,7 +1345,7 @@ var arrayIteration = {
|
|
|
1350
1345
|
filterReject: createMethod$3(7)
|
|
1351
1346
|
};
|
|
1352
1347
|
|
|
1353
|
-
var fails$
|
|
1348
|
+
var fails$d = fails$n;
|
|
1354
1349
|
var wellKnownSymbol$b = wellKnownSymbol$g;
|
|
1355
1350
|
var V8_VERSION$2 = engineV8Version;
|
|
1356
1351
|
|
|
@@ -1360,7 +1355,7 @@ var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
|
|
|
1360
1355
|
// We can't use this feature detection in V8 since it causes
|
|
1361
1356
|
// deoptimization and serious performance degradation
|
|
1362
1357
|
// https://github.com/zloirock/core-js/issues/677
|
|
1363
|
-
return V8_VERSION$2 >= 51 || !fails$
|
|
1358
|
+
return V8_VERSION$2 >= 51 || !fails$d(function () {
|
|
1364
1359
|
var array = [];
|
|
1365
1360
|
var constructor = array.constructor = {};
|
|
1366
1361
|
constructor[SPECIES$4] = function () {
|
|
@@ -1370,7 +1365,7 @@ var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
|
|
|
1370
1365
|
});
|
|
1371
1366
|
};
|
|
1372
1367
|
|
|
1373
|
-
var $$
|
|
1368
|
+
var $$j = _export;
|
|
1374
1369
|
var $map = arrayIteration.map;
|
|
1375
1370
|
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
|
|
1376
1371
|
|
|
@@ -1379,7 +1374,7 @@ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$1('map');
|
|
|
1379
1374
|
// `Array.prototype.map` method
|
|
1380
1375
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
1381
1376
|
// with adding support of @@species
|
|
1382
|
-
$$
|
|
1377
|
+
$$j({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
1383
1378
|
map: function map(callbackfn /* , thisArg */) {
|
|
1384
1379
|
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
1385
1380
|
}
|
|
@@ -1429,8 +1424,8 @@ var stringTrim = {
|
|
|
1429
1424
|
trim: createMethod$2(3)
|
|
1430
1425
|
};
|
|
1431
1426
|
|
|
1432
|
-
var global$c = global$
|
|
1433
|
-
var fails$
|
|
1427
|
+
var global$c = global$m;
|
|
1428
|
+
var fails$c = fails$n;
|
|
1434
1429
|
var uncurryThis$b = functionUncurryThis;
|
|
1435
1430
|
var toString$5 = toString$7;
|
|
1436
1431
|
var trim$1 = stringTrim.trim;
|
|
@@ -1443,7 +1438,7 @@ var hex = /^[+-]?0x/i;
|
|
|
1443
1438
|
var exec$1 = uncurryThis$b(hex.exec);
|
|
1444
1439
|
var FORCED$4 = $parseInt$1(whitespaces$1 + '08') !== 8 || $parseInt$1(whitespaces$1 + '0x16') !== 22
|
|
1445
1440
|
// MS Edge 18- broken with boxed symbols
|
|
1446
|
-
|| (ITERATOR$3 && !fails$
|
|
1441
|
+
|| (ITERATOR$3 && !fails$c(function () { $parseInt$1(Object(ITERATOR$3)); }));
|
|
1447
1442
|
|
|
1448
1443
|
// `parseInt` method
|
|
1449
1444
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
@@ -1452,20 +1447,20 @@ var numberParseInt = FORCED$4 ? function parseInt(string, radix) {
|
|
|
1452
1447
|
return $parseInt$1(S, (radix >>> 0) || (exec$1(hex, S) ? 16 : 10));
|
|
1453
1448
|
} : $parseInt$1;
|
|
1454
1449
|
|
|
1455
|
-
var $$
|
|
1450
|
+
var $$i = _export;
|
|
1456
1451
|
var $parseInt = numberParseInt;
|
|
1457
1452
|
|
|
1458
1453
|
// `parseInt` method
|
|
1459
1454
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
1460
|
-
$$
|
|
1455
|
+
$$i({ global: true, forced: parseInt != $parseInt }, {
|
|
1461
1456
|
parseInt: $parseInt
|
|
1462
1457
|
});
|
|
1463
1458
|
|
|
1464
|
-
var fails$
|
|
1459
|
+
var fails$b = fails$n;
|
|
1465
1460
|
|
|
1466
1461
|
var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) {
|
|
1467
1462
|
var method = [][METHOD_NAME];
|
|
1468
|
-
return !!method && fails$
|
|
1463
|
+
return !!method && fails$b(function () {
|
|
1469
1464
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1470
1465
|
method.call(null, argument || function () { return 1; }, 1);
|
|
1471
1466
|
});
|
|
@@ -1483,13 +1478,13 @@ var arrayForEach = !STRICT_METHOD$1 ? function forEach(callbackfn /* , thisArg *
|
|
|
1483
1478
|
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1484
1479
|
} : [].forEach;
|
|
1485
1480
|
|
|
1486
|
-
var $$
|
|
1481
|
+
var $$h = _export;
|
|
1487
1482
|
var forEach$1 = arrayForEach;
|
|
1488
1483
|
|
|
1489
1484
|
// `Array.prototype.forEach` method
|
|
1490
1485
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
1491
1486
|
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1492
|
-
$$
|
|
1487
|
+
$$h({ target: 'Array', proto: true, forced: [].forEach != forEach$1 }, {
|
|
1493
1488
|
forEach: forEach$1
|
|
1494
1489
|
});
|
|
1495
1490
|
|
|
@@ -1556,7 +1551,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1556
1551
|
|
|
1557
1552
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1558
1553
|
|
|
1559
|
-
var global$b = global$
|
|
1554
|
+
var global$b = global$m;
|
|
1560
1555
|
var DOMIterables = domIterables;
|
|
1561
1556
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1562
1557
|
var forEach = arrayForEach;
|
|
@@ -1728,12 +1723,12 @@ var userAgent$2 = engineUserAgent;
|
|
|
1728
1723
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
1729
1724
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
1730
1725
|
|
|
1731
|
-
var global$a = global$
|
|
1726
|
+
var global$a = global$m;
|
|
1732
1727
|
var apply$1 = functionApply;
|
|
1733
1728
|
var bind$3 = functionBindContext;
|
|
1734
1729
|
var isCallable$6 = isCallable$k;
|
|
1735
1730
|
var hasOwn$2 = hasOwnProperty_1;
|
|
1736
|
-
var fails$
|
|
1731
|
+
var fails$a = fails$n;
|
|
1737
1732
|
var html$1 = html$2;
|
|
1738
1733
|
var arraySlice = arraySlice$1;
|
|
1739
1734
|
var createElement = documentCreateElement$2;
|
|
@@ -1751,9 +1746,9 @@ var String$1 = global$a.String;
|
|
|
1751
1746
|
var counter = 0;
|
|
1752
1747
|
var queue$2 = {};
|
|
1753
1748
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
1754
|
-
var $location, defer, channel
|
|
1749
|
+
var $location, defer, channel, port;
|
|
1755
1750
|
|
|
1756
|
-
fails$
|
|
1751
|
+
fails$a(function () {
|
|
1757
1752
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
1758
1753
|
$location = global$a.location;
|
|
1759
1754
|
});
|
|
@@ -1809,9 +1804,9 @@ if (!set || !clear) {
|
|
|
1809
1804
|
// Browsers with MessageChannel, includes WebWorkers
|
|
1810
1805
|
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
1811
1806
|
} else if (MessageChannel && !IS_IOS$1) {
|
|
1812
|
-
channel
|
|
1813
|
-
port = channel
|
|
1814
|
-
channel
|
|
1807
|
+
channel = new MessageChannel();
|
|
1808
|
+
port = channel.port2;
|
|
1809
|
+
channel.port1.onmessage = eventListener;
|
|
1815
1810
|
defer = bind$3(port.postMessage, port);
|
|
1816
1811
|
// Browsers with postMessage, skip WebWorkers
|
|
1817
1812
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
@@ -1820,7 +1815,7 @@ if (!set || !clear) {
|
|
|
1820
1815
|
isCallable$6(global$a.postMessage) &&
|
|
1821
1816
|
!global$a.importScripts &&
|
|
1822
1817
|
$location && $location.protocol !== 'file:' &&
|
|
1823
|
-
!fails$
|
|
1818
|
+
!fails$a(globalPostMessageDefer)
|
|
1824
1819
|
) {
|
|
1825
1820
|
defer = globalPostMessageDefer;
|
|
1826
1821
|
global$a.addEventListener('message', eventListener, false);
|
|
@@ -1878,7 +1873,7 @@ var userAgent = engineUserAgent;
|
|
|
1878
1873
|
|
|
1879
1874
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
1880
1875
|
|
|
1881
|
-
var global$9 = global$
|
|
1876
|
+
var global$9 = global$m;
|
|
1882
1877
|
var bind$2 = functionBindContext;
|
|
1883
1878
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
1884
1879
|
var macrotask = task$1.set;
|
|
@@ -1974,7 +1969,7 @@ var perform$3 = function (exec) {
|
|
|
1974
1969
|
}
|
|
1975
1970
|
};
|
|
1976
1971
|
|
|
1977
|
-
var global$8 = global$
|
|
1972
|
+
var global$8 = global$m;
|
|
1978
1973
|
|
|
1979
1974
|
var promiseNativeConstructor = global$8.Promise;
|
|
1980
1975
|
|
|
@@ -1989,7 +1984,7 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$2
|
|
|
1989
1984
|
&& typeof window == 'object'
|
|
1990
1985
|
&& typeof document == 'object';
|
|
1991
1986
|
|
|
1992
|
-
var global$7 = global$
|
|
1987
|
+
var global$7 = global$m;
|
|
1993
1988
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
1994
1989
|
var isCallable$5 = isCallable$k;
|
|
1995
1990
|
var isForced$1 = isForced_1;
|
|
@@ -2057,9 +2052,9 @@ newPromiseCapability$2.f = function (C) {
|
|
|
2057
2052
|
return new PromiseCapability(C);
|
|
2058
2053
|
};
|
|
2059
2054
|
|
|
2060
|
-
var $$
|
|
2055
|
+
var $$g = _export;
|
|
2061
2056
|
var IS_NODE$1 = engineIsNode;
|
|
2062
|
-
var global$6 = global$
|
|
2057
|
+
var global$6 = global$m;
|
|
2063
2058
|
var call$c = functionCall;
|
|
2064
2059
|
var defineBuiltIn$3 = defineBuiltIn$6;
|
|
2065
2060
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
@@ -2337,7 +2332,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2337
2332
|
}
|
|
2338
2333
|
}
|
|
2339
2334
|
|
|
2340
|
-
$$
|
|
2335
|
+
$$g({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
2341
2336
|
Promise: PromiseConstructor
|
|
2342
2337
|
});
|
|
2343
2338
|
|
|
@@ -2525,7 +2520,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
2525
2520
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
2526
2521
|
});
|
|
2527
2522
|
|
|
2528
|
-
var $$
|
|
2523
|
+
var $$f = _export;
|
|
2529
2524
|
var call$8 = functionCall;
|
|
2530
2525
|
var aCallable$2 = aCallable$9;
|
|
2531
2526
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
@@ -2535,7 +2530,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
|
2535
2530
|
|
|
2536
2531
|
// `Promise.all` method
|
|
2537
2532
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
2538
|
-
$$
|
|
2533
|
+
$$f({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
2539
2534
|
all: function all(iterable) {
|
|
2540
2535
|
var C = this;
|
|
2541
2536
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
@@ -2564,7 +2559,7 @@ $$g({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2564
2559
|
}
|
|
2565
2560
|
});
|
|
2566
2561
|
|
|
2567
|
-
var $$
|
|
2562
|
+
var $$e = _export;
|
|
2568
2563
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2569
2564
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
2570
2565
|
var getBuiltIn$1 = getBuiltIn$7;
|
|
@@ -2575,7 +2570,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
|
|
|
2575
2570
|
|
|
2576
2571
|
// `Promise.prototype.catch` method
|
|
2577
2572
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
2578
|
-
$$
|
|
2573
|
+
$$e({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
2579
2574
|
'catch': function (onRejected) {
|
|
2580
2575
|
return this.then(undefined, onRejected);
|
|
2581
2576
|
}
|
|
@@ -2589,7 +2584,7 @@ if (isCallable$3(NativePromiseConstructor)) {
|
|
|
2589
2584
|
}
|
|
2590
2585
|
}
|
|
2591
2586
|
|
|
2592
|
-
var $$
|
|
2587
|
+
var $$d = _export;
|
|
2593
2588
|
var call$7 = functionCall;
|
|
2594
2589
|
var aCallable$1 = aCallable$9;
|
|
2595
2590
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
@@ -2599,7 +2594,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
|
2599
2594
|
|
|
2600
2595
|
// `Promise.race` method
|
|
2601
2596
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
2602
|
-
$$
|
|
2597
|
+
$$d({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
2603
2598
|
race: function race(iterable) {
|
|
2604
2599
|
var C = this;
|
|
2605
2600
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
@@ -2615,14 +2610,14 @@ $$e({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2615
2610
|
}
|
|
2616
2611
|
});
|
|
2617
2612
|
|
|
2618
|
-
var $$
|
|
2613
|
+
var $$c = _export;
|
|
2619
2614
|
var call$6 = functionCall;
|
|
2620
2615
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2621
2616
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2622
2617
|
|
|
2623
2618
|
// `Promise.reject` method
|
|
2624
2619
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
2625
|
-
$$
|
|
2620
|
+
$$c({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
2626
2621
|
reject: function reject(r) {
|
|
2627
2622
|
var capability = newPromiseCapabilityModule.f(this);
|
|
2628
2623
|
call$6(capability.reject, undefined, r);
|
|
@@ -2643,7 +2638,7 @@ var promiseResolve$1 = function (C, x) {
|
|
|
2643
2638
|
return promiseCapability.promise;
|
|
2644
2639
|
};
|
|
2645
2640
|
|
|
2646
|
-
var $$
|
|
2641
|
+
var $$b = _export;
|
|
2647
2642
|
var getBuiltIn = getBuiltIn$7;
|
|
2648
2643
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
2649
2644
|
var promiseResolve = promiseResolve$1;
|
|
@@ -2652,7 +2647,7 @@ getBuiltIn('Promise');
|
|
|
2652
2647
|
|
|
2653
2648
|
// `Promise.resolve` method
|
|
2654
2649
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
2655
|
-
$$
|
|
2650
|
+
$$b({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
2656
2651
|
resolve: function resolve(x) {
|
|
2657
2652
|
return promiseResolve(this, x);
|
|
2658
2653
|
}
|
|
@@ -2676,11 +2671,11 @@ var createProperty$1 = function (object, key, value) {
|
|
|
2676
2671
|
else object[propertyKey] = value;
|
|
2677
2672
|
};
|
|
2678
2673
|
|
|
2679
|
-
var $$
|
|
2680
|
-
var fails$
|
|
2674
|
+
var $$a = _export;
|
|
2675
|
+
var fails$9 = fails$n;
|
|
2681
2676
|
var isArray$1 = isArray$3;
|
|
2682
2677
|
var isObject$1 = isObject$a;
|
|
2683
|
-
var toObject$
|
|
2678
|
+
var toObject$3 = toObject$6;
|
|
2684
2679
|
var lengthOfArrayLike$1 = lengthOfArrayLike$5;
|
|
2685
2680
|
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
2686
2681
|
var createProperty = createProperty$1;
|
|
@@ -2694,7 +2689,7 @@ var IS_CONCAT_SPREADABLE = wellKnownSymbol$3('isConcatSpreadable');
|
|
|
2694
2689
|
// We can't use this feature detection in V8 since it causes
|
|
2695
2690
|
// deoptimization and serious performance degradation
|
|
2696
2691
|
// https://github.com/zloirock/core-js/issues/679
|
|
2697
|
-
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$
|
|
2692
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$9(function () {
|
|
2698
2693
|
var array = [];
|
|
2699
2694
|
array[IS_CONCAT_SPREADABLE] = false;
|
|
2700
2695
|
return array.concat()[0] !== array;
|
|
@@ -2711,10 +2706,10 @@ var FORCED$3 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('c
|
|
|
2711
2706
|
// `Array.prototype.concat` method
|
|
2712
2707
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
|
2713
2708
|
// with adding support of @@isConcatSpreadable and @@species
|
|
2714
|
-
$$
|
|
2709
|
+
$$a({ target: 'Array', proto: true, arity: 1, forced: FORCED$3 }, {
|
|
2715
2710
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2716
2711
|
concat: function concat(arg) {
|
|
2717
|
-
var O = toObject$
|
|
2712
|
+
var O = toObject$3(this);
|
|
2718
2713
|
var A = arraySpeciesCreate(O, 0);
|
|
2719
2714
|
var n = 0;
|
|
2720
2715
|
var i, k, length, len, E;
|
|
@@ -2820,14 +2815,14 @@ function updateNotifier(name, version) {
|
|
|
2820
2815
|
});
|
|
2821
2816
|
}
|
|
2822
2817
|
|
|
2823
|
-
var $$
|
|
2818
|
+
var $$9 = _export;
|
|
2824
2819
|
var DESCRIPTORS$3 = descriptors;
|
|
2825
2820
|
var defineProperty$3 = objectDefineProperty.f;
|
|
2826
2821
|
|
|
2827
2822
|
// `Object.defineProperty` method
|
|
2828
2823
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
2829
2824
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2830
|
-
$$
|
|
2825
|
+
$$9({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty$3, sham: !DESCRIPTORS$3 }, {
|
|
2831
2826
|
defineProperty: defineProperty$3
|
|
2832
2827
|
});
|
|
2833
2828
|
|
|
@@ -2844,11 +2839,11 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
2844
2839
|
var DESCRIPTORS$2 = descriptors;
|
|
2845
2840
|
var uncurryThis$8 = functionUncurryThis;
|
|
2846
2841
|
var call$5 = functionCall;
|
|
2847
|
-
var fails$
|
|
2842
|
+
var fails$8 = fails$n;
|
|
2848
2843
|
var objectKeys$1 = objectKeys$2;
|
|
2849
2844
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
2850
2845
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
2851
|
-
var toObject$
|
|
2846
|
+
var toObject$2 = toObject$6;
|
|
2852
2847
|
var IndexedObject$1 = indexedObject;
|
|
2853
2848
|
|
|
2854
2849
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
@@ -2859,7 +2854,7 @@ var concat$1 = uncurryThis$8([].concat);
|
|
|
2859
2854
|
|
|
2860
2855
|
// `Object.assign` method
|
|
2861
2856
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2862
|
-
var objectAssign = !$assign || fails$
|
|
2857
|
+
var objectAssign = !$assign || fails$8(function () {
|
|
2863
2858
|
// should have correct order of operations (Edge bug)
|
|
2864
2859
|
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
|
|
2865
2860
|
enumerable: true,
|
|
@@ -2880,7 +2875,7 @@ var objectAssign = !$assign || fails$9(function () {
|
|
|
2880
2875
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
2881
2876
|
return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
|
|
2882
2877
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
2883
|
-
var T = toObject$
|
|
2878
|
+
var T = toObject$2(target);
|
|
2884
2879
|
var argumentsLength = arguments.length;
|
|
2885
2880
|
var index = 1;
|
|
2886
2881
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
@@ -2898,31 +2893,16 @@ var objectAssign = !$assign || fails$9(function () {
|
|
|
2898
2893
|
} return T;
|
|
2899
2894
|
} : $assign;
|
|
2900
2895
|
|
|
2901
|
-
var $$
|
|
2896
|
+
var $$8 = _export;
|
|
2902
2897
|
var assign = objectAssign;
|
|
2903
2898
|
|
|
2904
2899
|
// `Object.assign` method
|
|
2905
2900
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2906
2901
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
2907
|
-
$$
|
|
2902
|
+
$$8({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
2908
2903
|
assign: assign
|
|
2909
2904
|
});
|
|
2910
2905
|
|
|
2911
|
-
var $$8 = _export;
|
|
2912
|
-
var toObject$2 = toObject$7;
|
|
2913
|
-
var nativeKeys = objectKeys$2;
|
|
2914
|
-
var fails$8 = fails$o;
|
|
2915
|
-
|
|
2916
|
-
var FAILS_ON_PRIMITIVES = fails$8(function () { nativeKeys(1); });
|
|
2917
|
-
|
|
2918
|
-
// `Object.keys` method
|
|
2919
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
|
2920
|
-
$$8({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
|
2921
|
-
keys: function keys(it) {
|
|
2922
|
-
return nativeKeys(toObject$2(it));
|
|
2923
|
-
}
|
|
2924
|
-
});
|
|
2925
|
-
|
|
2926
2906
|
/*
|
|
2927
2907
|
* @Author: Lanrri
|
|
2928
2908
|
* @Email: lanrri@163.com
|
|
@@ -3247,8 +3227,6 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
3247
3227
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3248
3228
|
PERFORMANCE OF THIS SOFTWARE.
|
|
3249
3229
|
***************************************************************************** */
|
|
3250
|
-
/* global Reflect, Promise */
|
|
3251
|
-
|
|
3252
3230
|
|
|
3253
3231
|
var __assign = function() {
|
|
3254
3232
|
__assign = Object.assign || function __assign(t) {
|
|
@@ -3289,8 +3267,8 @@ var regexpFlags$1 = function () {
|
|
|
3289
3267
|
return result;
|
|
3290
3268
|
};
|
|
3291
3269
|
|
|
3292
|
-
var fails$7 = fails$
|
|
3293
|
-
var global$5 = global$
|
|
3270
|
+
var fails$7 = fails$n;
|
|
3271
|
+
var global$5 = global$m;
|
|
3294
3272
|
|
|
3295
3273
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
3296
3274
|
var $RegExp$2 = global$5.RegExp;
|
|
@@ -3320,8 +3298,8 @@ var regexpStickyHelpers = {
|
|
|
3320
3298
|
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
3321
3299
|
};
|
|
3322
3300
|
|
|
3323
|
-
var fails$6 = fails$
|
|
3324
|
-
var global$4 = global$
|
|
3301
|
+
var fails$6 = fails$n;
|
|
3302
|
+
var global$4 = global$m;
|
|
3325
3303
|
|
|
3326
3304
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
3327
3305
|
var $RegExp$1 = global$4.RegExp;
|
|
@@ -3331,8 +3309,8 @@ var regexpUnsupportedDotAll = fails$6(function () {
|
|
|
3331
3309
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
3332
3310
|
});
|
|
3333
3311
|
|
|
3334
|
-
var fails$5 = fails$
|
|
3335
|
-
var global$3 = global$
|
|
3312
|
+
var fails$5 = fails$n;
|
|
3313
|
+
var global$3 = global$m;
|
|
3336
3314
|
|
|
3337
3315
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
3338
3316
|
var $RegExp = global$3.RegExp;
|
|
@@ -3474,7 +3452,7 @@ $$5({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
|
3474
3452
|
var uncurryThis$5 = functionUncurryThisClause;
|
|
3475
3453
|
var defineBuiltIn$1 = defineBuiltIn$6;
|
|
3476
3454
|
var regexpExec$1 = regexpExec$2;
|
|
3477
|
-
var fails$4 = fails$
|
|
3455
|
+
var fails$4 = fails$n;
|
|
3478
3456
|
var wellKnownSymbol$1 = wellKnownSymbol$g;
|
|
3479
3457
|
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
3480
3458
|
|
|
@@ -3589,7 +3567,7 @@ var advanceStringIndex$2 = function (S, index, unicode) {
|
|
|
3589
3567
|
};
|
|
3590
3568
|
|
|
3591
3569
|
var uncurryThis$3 = functionUncurryThis;
|
|
3592
|
-
var toObject$1 = toObject$
|
|
3570
|
+
var toObject$1 = toObject$6;
|
|
3593
3571
|
|
|
3594
3572
|
var floor = Math.floor;
|
|
3595
3573
|
var charAt = uncurryThis$3(''.charAt);
|
|
@@ -3659,7 +3637,7 @@ var apply = functionApply;
|
|
|
3659
3637
|
var call$2 = functionCall;
|
|
3660
3638
|
var uncurryThis$2 = functionUncurryThis;
|
|
3661
3639
|
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
3662
|
-
var fails$3 = fails$
|
|
3640
|
+
var fails$3 = fails$n;
|
|
3663
3641
|
var anObject$2 = anObject$f;
|
|
3664
3642
|
var isCallable$1 = isCallable$k;
|
|
3665
3643
|
var isNullOrUndefined$1 = isNullOrUndefined$6;
|
|
@@ -3809,7 +3787,7 @@ var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
|
|
|
3809
3787
|
var defineBuiltIn = defineBuiltIn$6;
|
|
3810
3788
|
var anObject$1 = anObject$f;
|
|
3811
3789
|
var $toString = toString$7;
|
|
3812
|
-
var fails$2 = fails$
|
|
3790
|
+
var fails$2 = fails$n;
|
|
3813
3791
|
var getRegExpFlags = regexpGetFlags;
|
|
3814
3792
|
|
|
3815
3793
|
var TO_STRING = 'toString';
|
|
@@ -4126,7 +4104,7 @@ var browserType = BrowserType({
|
|
|
4126
4104
|
});
|
|
4127
4105
|
|
|
4128
4106
|
var aCallable = aCallable$9;
|
|
4129
|
-
var toObject = toObject$
|
|
4107
|
+
var toObject = toObject$6;
|
|
4130
4108
|
var IndexedObject = indexedObject;
|
|
4131
4109
|
var lengthOfArrayLike = lengthOfArrayLike$5;
|
|
4132
4110
|
|
|
@@ -4188,7 +4166,7 @@ $$2({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
|
4188
4166
|
}
|
|
4189
4167
|
});
|
|
4190
4168
|
|
|
4191
|
-
var global$2 = global$
|
|
4169
|
+
var global$2 = global$m;
|
|
4192
4170
|
|
|
4193
4171
|
var path$1 = global$2;
|
|
4194
4172
|
|
|
@@ -4220,7 +4198,7 @@ var thisNumberValue$1 = uncurryThis$1(1.0.valueOf);
|
|
|
4220
4198
|
var $$1 = _export;
|
|
4221
4199
|
var IS_PURE = isPure;
|
|
4222
4200
|
var DESCRIPTORS = descriptors;
|
|
4223
|
-
var global$1 = global$
|
|
4201
|
+
var global$1 = global$m;
|
|
4224
4202
|
var path = path$1;
|
|
4225
4203
|
var uncurryThis = functionUncurryThis;
|
|
4226
4204
|
var isForced = isForced_1;
|
|
@@ -4229,7 +4207,7 @@ var inheritIfRequired = inheritIfRequired$1;
|
|
|
4229
4207
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
4230
4208
|
var isSymbol = isSymbol$3;
|
|
4231
4209
|
var toPrimitive = toPrimitive$2;
|
|
4232
|
-
var fails$1 = fails$
|
|
4210
|
+
var fails$1 = fails$n;
|
|
4233
4211
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
4234
4212
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
4235
4213
|
var defineProperty = objectDefineProperty.f;
|
|
@@ -4320,7 +4298,7 @@ var copyConstructorProperties = function (target, source) {
|
|
|
4320
4298
|
if (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);
|
|
4321
4299
|
|
|
4322
4300
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
4323
|
-
var fails = fails$
|
|
4301
|
+
var fails = fails$n;
|
|
4324
4302
|
var whitespaces = whitespaces$3;
|
|
4325
4303
|
|
|
4326
4304
|
var non = '\u200B\u0085\u180E';
|
|
@@ -4621,7 +4599,11 @@ var getOjbUrlFn = function getOjbUrlFn(url, newOjbRouterArr) {
|
|
|
4621
4599
|
}
|
|
4622
4600
|
};
|
|
4623
4601
|
|
|
4624
|
-
var
|
|
4602
|
+
var weixinJsSdkExports = {};
|
|
4603
|
+
var weixinJsSdk = {
|
|
4604
|
+
get exports(){ return weixinJsSdkExports; },
|
|
4605
|
+
set exports(v){ weixinJsSdkExports = v; },
|
|
4606
|
+
};
|
|
4625
4607
|
|
|
4626
4608
|
!(function(e, n) {
|
|
4627
4609
|
weixinJsSdk.exports = n(e);
|
|
@@ -5522,9 +5504,6 @@ var weixinJsSdk = {exports: {}};
|
|
|
5522
5504
|
}
|
|
5523
5505
|
});
|
|
5524
5506
|
|
|
5525
|
-
var weixinJsSdkExports = weixinJsSdk.exports;
|
|
5526
|
-
var wx$1 = /*@__PURE__*/getDefaultExportFromCjs(weixinJsSdkExports);
|
|
5527
|
-
|
|
5528
5507
|
var bridge = {
|
|
5529
5508
|
default:commonjsGlobal,// for typescript
|
|
5530
5509
|
call: function (method, args, cb) {
|
|
@@ -5658,13 +5637,7 @@ var bridge = {
|
|
|
5658
5637
|
|
|
5659
5638
|
var dsbridge = bridge;
|
|
5660
5639
|
|
|
5661
|
-
var dsBridge = /*@__PURE__*/getDefaultExportFromCjs(dsbridge);
|
|
5662
|
-
|
|
5663
5640
|
var APP_HOME$1 = 'ojb://ip_home';
|
|
5664
|
-
var device$2 = ls.get('device') || '';
|
|
5665
|
-
var isfull$2 = ls.get('isfull') || '';
|
|
5666
|
-
var version$2 = ls.get('version') || browserType.getShell('airmart') || '';
|
|
5667
|
-
var channel$1 = ls.get('channel') || browserType.getShell('channel') || '';
|
|
5668
5641
|
var OldJuboSdk = /** @class */function () {
|
|
5669
5642
|
function OldJuboSdk(options) {
|
|
5670
5643
|
Object.defineProperty(this, "options", {
|
|
@@ -5720,20 +5693,20 @@ var OldJuboSdk = /** @class */function () {
|
|
|
5720
5693
|
enumerable: true,
|
|
5721
5694
|
configurable: true,
|
|
5722
5695
|
writable: true,
|
|
5723
|
-
value:
|
|
5696
|
+
value: void 0
|
|
5724
5697
|
});
|
|
5725
5698
|
/** 渠道 */
|
|
5726
5699
|
Object.defineProperty(this, "channel", {
|
|
5727
5700
|
enumerable: true,
|
|
5728
5701
|
configurable: true,
|
|
5729
5702
|
writable: true,
|
|
5730
|
-
value:
|
|
5703
|
+
value: void 0
|
|
5731
5704
|
});
|
|
5732
5705
|
Object.defineProperty(this, "isfull", {
|
|
5733
5706
|
enumerable: true,
|
|
5734
5707
|
configurable: true,
|
|
5735
5708
|
writable: true,
|
|
5736
|
-
value:
|
|
5709
|
+
value: void 0
|
|
5737
5710
|
});
|
|
5738
5711
|
Object.defineProperty(this, "isOldApp", {
|
|
5739
5712
|
enumerable: true,
|
|
@@ -5741,13 +5714,20 @@ var OldJuboSdk = /** @class */function () {
|
|
|
5741
5714
|
writable: true,
|
|
5742
5715
|
value: true
|
|
5743
5716
|
});
|
|
5717
|
+
var device = ls.get('device') || '';
|
|
5718
|
+
var isfull = ls.get('isfull') || '';
|
|
5719
|
+
var version = browserType.getShell('airmart') || ls.get('version') || '';
|
|
5720
|
+
var channel = browserType.getShell('channel') || ls.get('channel') || '';
|
|
5744
5721
|
this.options = options;
|
|
5745
5722
|
this.name = options.name;
|
|
5746
|
-
this.isApp = browserType.isShell('airmart') || device
|
|
5747
|
-
this.isMiniProgram = browserType.isShell('wechat-miniprogram') || device
|
|
5748
|
-
this.isIos = browserType.system === 'ios' || device
|
|
5723
|
+
this.isApp = browserType.isShell('airmart') || device === 'ios' || device === 'android';
|
|
5724
|
+
this.isMiniProgram = browserType.isShell('wechat-miniprogram') || device === 'wx';
|
|
5725
|
+
this.isIos = browserType.system === 'ios' || device === 'ios';
|
|
5749
5726
|
this.device = this.isMiniProgram ? 'wx' : this.isApp ? browserType.system : '';
|
|
5750
|
-
this.isCanShowNav = this.isApp && compareVersions(version
|
|
5727
|
+
this.isCanShowNav = this.isApp && compareVersions(version, '2.5.0') >= 0 && isfull;
|
|
5728
|
+
this.version = version;
|
|
5729
|
+
this.channel = channel;
|
|
5730
|
+
this.isfull = isfull;
|
|
5751
5731
|
return this;
|
|
5752
5732
|
}
|
|
5753
5733
|
Object.defineProperty(OldJuboSdk.prototype, "detection", {
|
|
@@ -5816,7 +5796,7 @@ var OldJuboSdk = /** @class */function () {
|
|
|
5816
5796
|
});
|
|
5817
5797
|
break;
|
|
5818
5798
|
case 'wx':
|
|
5819
|
-
|
|
5799
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
5820
5800
|
url: '/pages/login/index'
|
|
5821
5801
|
});
|
|
5822
5802
|
break;
|
|
@@ -5863,16 +5843,16 @@ var OldJuboSdk = /** @class */function () {
|
|
|
5863
5843
|
return url_1.indexOf(e) !== -1;
|
|
5864
5844
|
});
|
|
5865
5845
|
if (flag) {
|
|
5866
|
-
|
|
5846
|
+
weixinJsSdkExports.miniProgram.switchTab({
|
|
5867
5847
|
url: url_1
|
|
5868
5848
|
});
|
|
5869
5849
|
} else {
|
|
5870
5850
|
if (isRedirect) {
|
|
5871
|
-
|
|
5851
|
+
weixinJsSdkExports.miniProgram.redirectTo({
|
|
5872
5852
|
url: url_1
|
|
5873
5853
|
});
|
|
5874
5854
|
} else {
|
|
5875
|
-
|
|
5855
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
5876
5856
|
url: url_1
|
|
5877
5857
|
});
|
|
5878
5858
|
}
|
|
@@ -5922,7 +5902,7 @@ var OldJuboSdk = /** @class */function () {
|
|
|
5922
5902
|
}));
|
|
5923
5903
|
break;
|
|
5924
5904
|
case 'wx':
|
|
5925
|
-
|
|
5905
|
+
weixinJsSdkExports.miniProgram.postMessage({
|
|
5926
5906
|
data: {
|
|
5927
5907
|
shareData: {
|
|
5928
5908
|
title: options.title,
|
|
@@ -6109,7 +6089,7 @@ var OldJuboSdk = /** @class */function () {
|
|
|
6109
6089
|
window.webkit.messageHandlers.juboOnPay.postMessage(options);
|
|
6110
6090
|
break;
|
|
6111
6091
|
case 'wx':
|
|
6112
|
-
|
|
6092
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
6113
6093
|
url: "/pages/webPay/index?activity_id=".concat(activityId, "&price=").concat(amount, "&success=").concat(success, "&fail=").concat(fail)
|
|
6114
6094
|
});
|
|
6115
6095
|
break;
|
|
@@ -6267,18 +6247,19 @@ var OldJuboSdk = /** @class */function () {
|
|
|
6267
6247
|
return new Promise(function (resolve, reject) {
|
|
6268
6248
|
var _a, _b;
|
|
6269
6249
|
if (!_this.detection && _this.isMiniProgram) return reject();
|
|
6250
|
+
var device = _this.device;
|
|
6270
6251
|
try {
|
|
6271
6252
|
var isNetworkConnected = false;
|
|
6272
|
-
if (device
|
|
6253
|
+
if (device === 'android') {
|
|
6273
6254
|
isNetworkConnected = window.jubo.isNetworkConnected();
|
|
6274
|
-
} else if (device
|
|
6255
|
+
} else if (device === 'ios') {
|
|
6275
6256
|
isNetworkConnected = ((_a = window.isNetworkConnected) === null || _a === void 0 ? void 0 : _a.call(window)) || false;
|
|
6276
6257
|
}
|
|
6277
6258
|
if (isNetworkConnected) {
|
|
6278
6259
|
var isWifiConnected = false;
|
|
6279
|
-
if (device
|
|
6260
|
+
if (device === 'android') {
|
|
6280
6261
|
isWifiConnected = window.jubo.isWifiConnected();
|
|
6281
|
-
} else if (device
|
|
6262
|
+
} else if (device === 'ios') {
|
|
6282
6263
|
isWifiConnected = ((_b = window.isWifiConnected) === null || _b === void 0 ? void 0 : _b.call(window)) || false;
|
|
6283
6264
|
}
|
|
6284
6265
|
resolve(isWifiConnected ? 2 : 1);
|
|
@@ -6373,10 +6354,6 @@ window.JuboSdk = OldJuboSdk;
|
|
|
6373
6354
|
|
|
6374
6355
|
var APP_HOME = 'ojb://ip_home';
|
|
6375
6356
|
var MINI_PROGRAM_LOGIN = '/pages/login/index';
|
|
6376
|
-
var device$1 = ls.get('device') || '';
|
|
6377
|
-
var isfull$1 = ls.get('isfull') || '';
|
|
6378
|
-
var version$1 = ls.get('version') || browserType.getShell('airmart') || '';
|
|
6379
|
-
var channel = ls.get('channel') || browserType.getShell('channel') || '';
|
|
6380
6357
|
var JuboSdk = /** @class */function () {
|
|
6381
6358
|
function JuboSdk(options) {
|
|
6382
6359
|
Object.defineProperty(this, "options", {
|
|
@@ -6432,20 +6409,20 @@ var JuboSdk = /** @class */function () {
|
|
|
6432
6409
|
enumerable: true,
|
|
6433
6410
|
configurable: true,
|
|
6434
6411
|
writable: true,
|
|
6435
|
-
value:
|
|
6412
|
+
value: void 0
|
|
6436
6413
|
});
|
|
6437
6414
|
/** 渠道 */
|
|
6438
6415
|
Object.defineProperty(this, "channel", {
|
|
6439
6416
|
enumerable: true,
|
|
6440
6417
|
configurable: true,
|
|
6441
6418
|
writable: true,
|
|
6442
|
-
value:
|
|
6419
|
+
value: void 0
|
|
6443
6420
|
});
|
|
6444
6421
|
Object.defineProperty(this, "isfull", {
|
|
6445
6422
|
enumerable: true,
|
|
6446
6423
|
configurable: true,
|
|
6447
6424
|
writable: true,
|
|
6448
|
-
value:
|
|
6425
|
+
value: void 0
|
|
6449
6426
|
});
|
|
6450
6427
|
Object.defineProperty(this, "isOldApp", {
|
|
6451
6428
|
enumerable: true,
|
|
@@ -6453,14 +6430,21 @@ var JuboSdk = /** @class */function () {
|
|
|
6453
6430
|
writable: true,
|
|
6454
6431
|
value: false
|
|
6455
6432
|
});
|
|
6433
|
+
var device = ls.get('device') || '';
|
|
6434
|
+
var isfull = ls.get('isfull') || '';
|
|
6435
|
+
var version = browserType.getShell('airmart') || ls.get('version') || '';
|
|
6436
|
+
var channel = browserType.getShell('channel') || ls.get('channel') || '';
|
|
6456
6437
|
this.options = options;
|
|
6457
6438
|
this.name = options.name;
|
|
6458
|
-
this.isApp = browserType.isShell('airmart') || device
|
|
6459
|
-
this.isMiniProgram = browserType.isShell('wechat-miniprogram') || device
|
|
6460
|
-
this.isIos = browserType.system === 'ios' || device
|
|
6439
|
+
this.isApp = browserType.isShell('airmart') || device === 'ios' || device === 'android';
|
|
6440
|
+
this.isMiniProgram = browserType.isShell('wechat-miniprogram') || device === 'wx';
|
|
6441
|
+
this.isIos = browserType.system === 'ios' || device === 'ios';
|
|
6461
6442
|
this.device = this.isMiniProgram ? 'wx' : this.isApp ? browserType.system : '';
|
|
6462
6443
|
this.isCanShowNav = this.isApp && true;
|
|
6463
|
-
this.
|
|
6444
|
+
this.version = version;
|
|
6445
|
+
this.channel = channel;
|
|
6446
|
+
this.isfull = isfull;
|
|
6447
|
+
this.isOldApp = this.isApp && compareVersions(version, this.options.oldAppVersion) <= 0;
|
|
6464
6448
|
if (this.isOldApp) {
|
|
6465
6449
|
return new OldJuboSdk(options);
|
|
6466
6450
|
}
|
|
@@ -6492,7 +6476,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6492
6476
|
console.log('juboSDK.getToken');
|
|
6493
6477
|
if (!this.detection && this.isMiniProgram) return '';
|
|
6494
6478
|
try {
|
|
6495
|
-
var res =
|
|
6479
|
+
var res = dsbridge.call('getToken', {});
|
|
6496
6480
|
return res === null || res === void 0 ? void 0 : res.token;
|
|
6497
6481
|
} catch (error) {
|
|
6498
6482
|
console.error('juboSDK.getToken error', error);
|
|
@@ -6516,12 +6500,12 @@ var JuboSdk = /** @class */function () {
|
|
|
6516
6500
|
if (!_this.detection) return reject();
|
|
6517
6501
|
try {
|
|
6518
6502
|
if (_this.isMiniProgram) {
|
|
6519
|
-
|
|
6503
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
6520
6504
|
url: _this.options.miniProgramLogin || MINI_PROGRAM_LOGIN
|
|
6521
6505
|
});
|
|
6522
6506
|
resolve('');
|
|
6523
6507
|
} else {
|
|
6524
|
-
|
|
6508
|
+
dsbridge.call('toLogin', {}, function (res) {
|
|
6525
6509
|
var resData = JSON.parse(res);
|
|
6526
6510
|
resolve(resData === null || resData === void 0 ? void 0 : resData.token);
|
|
6527
6511
|
});
|
|
@@ -6555,23 +6539,23 @@ var JuboSdk = /** @class */function () {
|
|
|
6555
6539
|
return url_1.indexOf(e) !== -1;
|
|
6556
6540
|
});
|
|
6557
6541
|
if (flag) {
|
|
6558
|
-
|
|
6542
|
+
weixinJsSdkExports.miniProgram.switchTab({
|
|
6559
6543
|
url: url_1
|
|
6560
6544
|
});
|
|
6561
6545
|
} else {
|
|
6562
6546
|
if (isRedirect) {
|
|
6563
|
-
|
|
6547
|
+
weixinJsSdkExports.miniProgram.redirectTo({
|
|
6564
6548
|
url: url_1
|
|
6565
6549
|
});
|
|
6566
6550
|
} else {
|
|
6567
|
-
|
|
6551
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
6568
6552
|
url: url_1
|
|
6569
6553
|
});
|
|
6570
6554
|
}
|
|
6571
6555
|
}
|
|
6572
6556
|
}
|
|
6573
6557
|
} else {
|
|
6574
|
-
|
|
6558
|
+
dsbridge.call('goRoute', {
|
|
6575
6559
|
url: route
|
|
6576
6560
|
});
|
|
6577
6561
|
}
|
|
@@ -6607,7 +6591,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6607
6591
|
};
|
|
6608
6592
|
try {
|
|
6609
6593
|
if (this.isMiniProgram) {
|
|
6610
|
-
|
|
6594
|
+
weixinJsSdkExports.miniProgram.postMessage({
|
|
6611
6595
|
data: {
|
|
6612
6596
|
shareData: {
|
|
6613
6597
|
title: options.title,
|
|
@@ -6621,7 +6605,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6621
6605
|
}
|
|
6622
6606
|
});
|
|
6623
6607
|
} else {
|
|
6624
|
-
|
|
6608
|
+
dsbridge.call('shareMiniProgram', {
|
|
6625
6609
|
imgUrl: options.thumbImage,
|
|
6626
6610
|
title: options.title,
|
|
6627
6611
|
base64: options.base64,
|
|
@@ -6657,7 +6641,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6657
6641
|
console.log('juboSDK.postReport', keyName, data);
|
|
6658
6642
|
if (!this.detection && this.isMiniProgram) return;
|
|
6659
6643
|
try {
|
|
6660
|
-
|
|
6644
|
+
dsbridge.call('postReport', {
|
|
6661
6645
|
keyName: keyName,
|
|
6662
6646
|
data: data
|
|
6663
6647
|
});
|
|
@@ -6680,7 +6664,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6680
6664
|
console.log('juboSDK.sensorsReport', keyName, data);
|
|
6681
6665
|
if (!this.detection && this.isMiniProgram) return;
|
|
6682
6666
|
try {
|
|
6683
|
-
|
|
6667
|
+
dsbridge.call('sensorsReport', {
|
|
6684
6668
|
keyName: keyName,
|
|
6685
6669
|
data: data
|
|
6686
6670
|
});
|
|
@@ -6704,7 +6688,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6704
6688
|
console.log('juboSDK.shareWXImg', data);
|
|
6705
6689
|
if (!this.detection && this.isMiniProgram) return;
|
|
6706
6690
|
try {
|
|
6707
|
-
|
|
6691
|
+
dsbridge.call('shareWXImg', data);
|
|
6708
6692
|
} catch (error) {
|
|
6709
6693
|
console.log('🚀 ~ juboSDK.shareWXImg', error);
|
|
6710
6694
|
}
|
|
@@ -6723,7 +6707,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6723
6707
|
console.log('juboSDK.setNavTitle', title);
|
|
6724
6708
|
if (!this.detection && this.isMiniProgram) return;
|
|
6725
6709
|
try {
|
|
6726
|
-
|
|
6710
|
+
dsbridge.call('setNavTitle', {
|
|
6727
6711
|
title: title
|
|
6728
6712
|
});
|
|
6729
6713
|
} catch (error) {
|
|
@@ -6744,7 +6728,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6744
6728
|
console.log('juboSDK.hideNavBar');
|
|
6745
6729
|
if (!this.detection && this.isMiniProgram) return;
|
|
6746
6730
|
try {
|
|
6747
|
-
|
|
6731
|
+
dsbridge.call('hideNavBar', {
|
|
6748
6732
|
isHide: isHide
|
|
6749
6733
|
});
|
|
6750
6734
|
} catch (error) {
|
|
@@ -6765,7 +6749,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6765
6749
|
console.log('juboSDK.setOrientation');
|
|
6766
6750
|
if (!this.detection && this.isMiniProgram) return;
|
|
6767
6751
|
try {
|
|
6768
|
-
|
|
6752
|
+
dsbridge.call('setOrientation', {
|
|
6769
6753
|
isLandscape: isLandscape
|
|
6770
6754
|
});
|
|
6771
6755
|
} catch (error) {
|
|
@@ -6788,12 +6772,12 @@ var JuboSdk = /** @class */function () {
|
|
|
6788
6772
|
if (!_this.detection) return reject();
|
|
6789
6773
|
try {
|
|
6790
6774
|
if (_this.isMiniProgram) {
|
|
6791
|
-
|
|
6775
|
+
weixinJsSdkExports.miniProgram.navigateTo({
|
|
6792
6776
|
url: "".concat(_this.options.miniProgramPayPage || '/pages/webPay/index', "?activity_id=").concat(options.activityId, "&price=").concat(options.amount, "&success=").concat(options.success, "&fail=").concat(options.fail)
|
|
6793
6777
|
});
|
|
6794
6778
|
resolve('');
|
|
6795
6779
|
} else {
|
|
6796
|
-
|
|
6780
|
+
dsbridge.call('toPayPage', options, function (res) {
|
|
6797
6781
|
var resData = JSON.parse(res);
|
|
6798
6782
|
resolve(resData === null || resData === void 0 ? void 0 : resData.isSuccess);
|
|
6799
6783
|
});
|
|
@@ -6818,7 +6802,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6818
6802
|
console.log('juboSDK.hideStatusBar');
|
|
6819
6803
|
if (!this.detection && this.isMiniProgram) return;
|
|
6820
6804
|
try {
|
|
6821
|
-
|
|
6805
|
+
dsbridge.call('hideStatusBar', {
|
|
6822
6806
|
isHide: isHide
|
|
6823
6807
|
});
|
|
6824
6808
|
} catch (error) {
|
|
@@ -6838,7 +6822,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6838
6822
|
console.log('juboSDK.quit');
|
|
6839
6823
|
if (!this.detection && this.isMiniProgram) return;
|
|
6840
6824
|
try {
|
|
6841
|
-
|
|
6825
|
+
dsbridge.call('quit', {});
|
|
6842
6826
|
} catch (error) {
|
|
6843
6827
|
console.log('🚀 ~ juboSDK.quit', error);
|
|
6844
6828
|
}
|
|
@@ -6856,7 +6840,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6856
6840
|
console.log('juboSDK.goBack');
|
|
6857
6841
|
if (!this.detection && this.isMiniProgram) return;
|
|
6858
6842
|
try {
|
|
6859
|
-
|
|
6843
|
+
dsbridge.call('goBack', {});
|
|
6860
6844
|
} catch (error) {
|
|
6861
6845
|
console.log('🚀 ~ juboSDK.goBack', error);
|
|
6862
6846
|
}
|
|
@@ -6877,7 +6861,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6877
6861
|
var data = __assign({
|
|
6878
6862
|
type: 0
|
|
6879
6863
|
}, options);
|
|
6880
|
-
|
|
6864
|
+
dsbridge.call('shareHtml', data);
|
|
6881
6865
|
} catch (error) {
|
|
6882
6866
|
console.log('🚀 ~ juboSDK.shareHtml', error);
|
|
6883
6867
|
}
|
|
@@ -6897,7 +6881,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6897
6881
|
return new Promise(function (resolve, reject) {
|
|
6898
6882
|
if (!_this.detection && _this.isMiniProgram) return reject();
|
|
6899
6883
|
try {
|
|
6900
|
-
|
|
6884
|
+
dsbridge.call('checkAppNotice', {}, function (res) {
|
|
6901
6885
|
var resData = JSON.parse(res);
|
|
6902
6886
|
resolve(resData === null || resData === void 0 ? void 0 : resData.isOpen);
|
|
6903
6887
|
});
|
|
@@ -6923,7 +6907,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6923
6907
|
return new Promise(function (resolve, reject) {
|
|
6924
6908
|
if (!_this.detection && _this.isMiniProgram) return reject();
|
|
6925
6909
|
try {
|
|
6926
|
-
|
|
6910
|
+
dsbridge.call('checkNetStatus', {}, function (res) {
|
|
6927
6911
|
var resData = JSON.parse(res);
|
|
6928
6912
|
resolve(resData === null || resData === void 0 ? void 0 : resData.status);
|
|
6929
6913
|
});
|
|
@@ -6948,7 +6932,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6948
6932
|
return new Promise(function (resolve, reject) {
|
|
6949
6933
|
if (!_this.detection && _this.isMiniProgram) return reject();
|
|
6950
6934
|
try {
|
|
6951
|
-
|
|
6935
|
+
dsbridge.call('hcAuthorization', options, function (res) {
|
|
6952
6936
|
var resData = JSON.parse(res);
|
|
6953
6937
|
resolve(resData);
|
|
6954
6938
|
});
|
|
@@ -6976,7 +6960,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6976
6960
|
if (this.isIos) {
|
|
6977
6961
|
return window.screen.height >= 812 && window.devicePixelRatio >= 2 ? 44 : 20;
|
|
6978
6962
|
} else {
|
|
6979
|
-
var res =
|
|
6963
|
+
var res = dsbridge.call('getStatusBarHeight', {});
|
|
6980
6964
|
return res === null || res === void 0 ? void 0 : res.height;
|
|
6981
6965
|
}
|
|
6982
6966
|
} catch (error) {
|
|
@@ -7007,6 +6991,9 @@ var url = location.href;
|
|
|
7007
6991
|
var urlData = urlToParams(url);
|
|
7008
6992
|
var device = urlData.device || ls.get('device') || '';
|
|
7009
6993
|
var isfull = urlData.isfull || ls.get('isfull') || '';
|
|
6994
|
+
setTimeout(function () {
|
|
6995
|
+
console.log('🚀 ~ file: index.ts:20 ~ urlData.isfull || ls.get(\'isfull\'):', isfull, urlData.isfull);
|
|
6996
|
+
}, 1000);
|
|
7010
6997
|
var version = urlData.version || ls.get('version') || '';
|
|
7011
6998
|
ls.set('device', device);
|
|
7012
6999
|
ls.set('isfull', isfull);
|
|
@@ -7019,6 +7006,6 @@ exports.default = JuboSdk;
|
|
|
7019
7006
|
exports.ls = ls;
|
|
7020
7007
|
|
|
7021
7008
|
if(typeof window !== 'undefined') {
|
|
7022
|
-
window._juboSDK_VERSION_ = '1.0.
|
|
7009
|
+
window._juboSDK_VERSION_ = '1.0.2'
|
|
7023
7010
|
}
|
|
7024
7011
|
//# sourceMappingURL=index.cjs.js.map
|